vendor: 19,007 bytes, lines 1-33
1var H4=Object.defineProperty;var z4=(n,e,t)=>e in n?H4(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var de=(n,e,t)=>(z4(n,typeof e!="symbol"?e+"":e,t),t);function W4(n,e){for(var t=0;t<e.length;t++){const r=e[t];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in n)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(n,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const a of s.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function t(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=t(i);fetch(i.href,s)}})();var La=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function jm(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var wT={exports:{}},Rm={},ST={exports:{}},Qe={};/** 2 * @license React 3 * react.production.min.js 4 * 5 * Copyright (c) Facebook, Inc. and its affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var If=Symbol.for("react.element"),U4=Symbol.for("react.portal"),G4=Symbol.for("react.fragment"),X4=Symbol.for("react.strict_mode"),q4=Symbol.for("react.profiler"),K4=Symbol.for("react.provider"),Q4=Symbol.for("react.context"),Z4=Symbol.for("react.forward_ref"),J4=Symbol.for("react.suspense"),eY=Symbol.for("react.memo"),tY=Symbol.for("react.lazy"),Tk=Symbol.iterator;function nY(n){return n===null||typeof n!="object"?null:(n=Tk&&n[Tk]||n["@@iterator"],typeof n=="function"?n:null)}var DT={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},kT=Object.assign,PT={};function fc(n,e,t){this.props=n,this.context=e,this.refs=PT,this.updater=t||DT}fc.prototype.isReactComponent={};fc.prototype.setState=function(n,e){if(typeof n!="object"&&typeof n!="function"&&n!=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,n,e,"setState")};fc.prototype.forceUpdate=function(n){this.updater.enqueueForceUpdate(this,n,"forceUpdate")};function CT(){}CT.prototype=fc.prototype;function Hx(n,e,t){this.props=n,this.context=e,this.refs=PT,this.updater=t||DT}var zx=Hx.prototype=new CT;zx.constructor=Hx;kT(zx,fc.prototype);zx.isPureReactComponent=!0;var Ok=Array.isArray,ET=Object.prototype.hasOwnProperty,Wx={current:null},MT={key:!0,ref:!0,__self:!0,__source:!0};function TT(n,e,t){var r,i={},s=null,a=null;if(e!=null)for(r in e.ref!==void 0&&(a=e.ref),e.key!==void 0&&(s=""+e.key),e)ET.call(e,r)&&!MT.hasOwnProperty(r)&&(i[r]=e[r]);var o=arguments.length-2;if(o===1)i.children=t;else if(1<o){for(var l=Array(o),u=0;u<o;u++)l[u]=arguments[u+2];i.children=l}if(n&&n.defaultProps)for(r in o=n.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return{$$typeof:If,type:n,key:s,ref:a,props:i,_owner:Wx.current}}function rY(n,e){return{$$typeof:If,type:n.type,key:e,ref:n.ref,props:n.props,_owner:n._owner}}function Ux(n){return typeof n=="object"&&n!==null&&n.$$typeof===If}function iY(n){var e={"=":"=0",":":"=2"};return"$"+n.replace(/[=:]/g,function(t){return e[t]})}var Ak=/\/+/g;function oy(n,e){return typeof n=="object"&&n!==null&&n.key!=null?iY(""+n.key):e.toString(36)}function Wp(n,e,t,r,i){var s=typeof n;(s==="undefined"||s==="boolean")&&(n=null);var a=!1;if(n===null)a=!0;else switch(s){case"string":case"number":a=!0;break;case"object":switch(n.$$typeof){case If:case U4:a=!0}}if(a)return a=n,i=i(a),n=r===""?"."+oy(a,0):r,Ok(i)?(t="",n!=null&&(t=n.replace(Ak,"$&/")+"/"),Wp(i,e,t,"",function(u){return u})):i!=null&&(Ux(i)&&(i=rY(i,t+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(Ak,"$&/")+"/")+n)),e.push(i)),1;if(a=0,r=r===""?".":r+":",Ok(n))for(var o=0;o<n.length;o++){s=n[o];var l=r+oy(s,o);a+=Wp(s,e,t,l,i)}else if(l=nY(n),typeof l=="function")for(n=l.call(n),o=0;!(s=n.next()).done;)s=s.value,l=r+oy(s,o++),a+=Wp(s,e,t,l,i);else if(s==="object")throw e=String(n),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.");return a}function Gh(n,e,t){if(n==null)return n;var r=[],i=0;return Wp(n,r,"","",function(s){return e.call(t,s,i++)}),r}function sY(n){if(n._status===-1){var e=n._result;e=e(),e.then(function(t){(n._status===0||n._status===-1)&&(n._status=1,n._result=t)},function(t){(n._status===0||n._status===-1)&&(n._status=2,n._result=t)}),n._status===-1&&(n._status=0,n._result=e)}if(n._status===1)return n._result.default;throw n._result}var rr={current:null},Up={transition:null},aY={ReactCurrentDispatcher:rr,ReactCurrentBatchConfig:Up,ReactCurrentOwner:Wx};Qe.Children={map:Gh,forEach:function(n,e,t){Gh(n,function(){e.apply(this,arguments)},t)},count:function(n){var e=0;return Gh(n,function(){e++}),e},toArray:function(n){return Gh(n,function(e){return e})||[]},only:function(n){if(!Ux(n))throw Error("React.Children.only expected to receive a single React element child.");return n}};Qe.Component=fc;Qe.Fragment=G4;Qe.Profiler=q4;Qe.PureComponent=Hx;Qe.StrictMode=X4;Qe.Suspense=J4;Qe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=aY;Qe.cloneElement=function(n,e,t){if(n==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+n+".");var r=kT({},n.props),i=n.key,s=n.ref,a=n._owner;if(e!=null){if(e.ref!==void 0&&(s=e.ref,a=Wx.current),e.key!==void 0&&(i=""+e.key),n.type&&n.type.defaultProps)var o=n.type.defaultProps;for(l in e)ET.call(e,l)&&!MT.hasOwnProperty(l)&&(r[l]=e[l]===void 0&&o!==void 0?o[l]:e[l])}var l=arguments.length-2;if(l===1)r.children=t;else if(1<l){o=Array(l);for(var u=0;u<l;u++)o[u]=arguments[u+2];r.children=o}return{$$typeof:If,type:n.type,key:i,ref:s,props:r,_owner:a}};Qe.createContext=function(n){return n={$$typeof:Q4,_currentValue:n,_currentValue2:n,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},n.Provider={$$typeof:K4,_context:n},n.Consumer=n};Qe.createElement=TT;Qe.createFactory=function(n){var e=TT.bind(null,n);return e.type=n,e};Qe.createRef=function(){return{current:null}};Qe.forwardRef=function(n){return{$$typeof:Z4,render:n}};Qe.isValidElement=Ux;Qe.lazy=function(n){return{$$typeof:tY,_payload:{_status:-1,_result:n},_init:sY}};Qe.memo=function(n,e){return{$$typeof:eY,type:n,compare:e===void 0?null:e}};Qe.startTransition=function(n){var e=Up.transition;Up.transition={};try{n()}finally{Up.transition=e}};Qe.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};Qe.useCallback=function(n,e){return rr.current.useCallback(n,e)};Qe.useContext=function(n){return rr.current.useContext(n)};Qe.useDebugValue=function(){};Qe.useDeferredValue=function(n){return rr.current.useDeferredValue(n)};Qe.useEffect=function(n,e){return rr.current.useEffect(n,e)};Qe.useId=function(){return rr.current.useId()};Qe.useImperativeHandle=function(n,e,t){return rr.current.useImperativeHandle(n,e,t)};Qe.useInsertionEffect=function(n,e){return rr.current.useInsertionEffect(n,e)};Qe.useLayoutEffect=function(n,e){return rr.current.useLayoutEffect(n,e)};Qe.useMemo=function(n,e){return rr.current.useMemo(n,e)};Qe.useReducer=function(n,e,t){return rr.current.useReducer(n,e,t)};Qe.useRef=function(n){return rr.current.useRef(n)};Qe.useState=function(n){return rr.current.useState(n)};Qe.useSyncExternalStore=function(n,e,t){return rr.current.useSyncExternalStore(n,e,t)};Qe.useTransition=function(){return rr.current.useTransition()};Qe.version="18.2.0";ST.exports=Qe;var E=ST.exports;const H=jm(E),yg=W4({__proto__:null,default:H},[E]);/** 10 * @license React 11 * react-jsx-runtime.production.min.js 12 * 13 * Copyright (c) Facebook, Inc. and its affiliates. 14 * 15 * This source code is licensed under the MIT license found in the 16 * LICENSE file in the root directory of this source tree. 17 */var oY=E,lY=Symbol.for("react.element"),uY=Symbol.for("react.fragment"),cY=Object.prototype.hasOwnProperty,dY=oY.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,fY={key:!0,ref:!0,__self:!0,__source:!0};function OT(n,e,t){var r,i={},s=null,a=null;t!==void 0&&(s=""+t),e.key!==void 0&&(s=""+e.key),e.ref!==void 0&&(a=e.ref);for(r in e)cY.call(e,r)&&!fY.hasOwnProperty(r)&&(i[r]=e[r]);if(n&&n.defaultProps)for(r in e=n.defaultProps,e)i[r]===void 0&&(i[r]=e[r]);return{$$typeof:lY,type:n,key:s,ref:a,props:i,_owner:dY.current}}Rm.Fragment=uY;Rm.jsx=OT;Rm.jsxs=OT;wT.exports=Rm;var d=wT.exports,je={},AT={exports:{}},Wr={},jT={exports:{}},RT={};/** 18 * @license React 19 * scheduler.production.min.js 20 * 21 * Copyright (c) Facebook, Inc. and its affiliates. 22 * 23 * This source code is licensed under the MIT license found in the 24 * LICENSE file in the root directory of this source tree. 25 */(function(n){function e(R,B){var Z=R.length;R.push(B);e:for(;0<Z;){var se=Z-1>>>1,ae=R[se];if(0<i(ae,B))R[se]=B,R[Z]=ae,Z=se;else break e}}function t(R){return R.length===0?null:R[0]}function r(R){if(R.length===0)return null;var B=R[0],Z=R.pop();if(Z!==B){R[0]=Z;e:for(var se=0,ae=R.length,ge=ae>>>1;se<ge;){var ke=2*(se+1)-1,Me=R[ke],me=ke+1,rt=R[me];if(0>i(Me,Z))me<ae&&0>i(rt,Me)?(R[se]=rt,R[me]=Z,se=me):(R[se]=Me,R[ke]=Z,se=ke);else if(me<ae&&0>i(rt,Z))R[se]=rt,R[me]=Z,se=me;else break e}}return B}function i(R,B){var Z=R.sortIndex-B.sortIndex;return Z!==0?Z:R.id-B.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;n.unstable_now=function(){return s.now()}}else{var a=Date,o=a.now();n.unstable_now=function(){return a.now()-o}}var l=[],u=[],h=1,f=null,m=3,g=!1,y=!1,v=!1,x=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,S=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(R){for(var B=t(u);B!==null;){if(B.callback===null)r(u);else if(B.startTime<=R)r(u),B.sortIndex=B.expirationTime,e(l,B);else break;B=t(u)}}function k(R){if(v=!1,w(R),!y)if(t(l)!==null)y=!0,z(P);else{var B=t(u);B!==null&&F(k,B.startTime-R)}}function P(R,B){y=!1,v&&(v=!1,_(M),M=-1),g=!0;var Z=m;try{for(w(B),f=t(l);f!==null&&(!(f.expirationTime>B)||R&&!V());){var se=f.callback;if(typeof se=="function"){f.callback=null,m=f.priorityLevel;var ae=se(f.expirationTime<=B);B=n.unstable_now(),typeof ae=="function"?f.callback=ae:f===t(l)&&r(l),w(B)}else r(l);f=t(l)}if(f!==null)var ge=!0;else{var ke=t(u);ke!==null&&F(k,ke.startTime-B),ge=!1}return ge}finally{f=null,m=Z,g=!1}}var j=!1,A=null,M=-1,L=5,I=-1;function V(){return!(n.unstable_now()-I<L)}function Q(){if(A!==null){var R=n.unstable_now();I=R;var B=!0;try{B=A(!0,R)}finally{B?U():(j=!1,A=null)}}else j=!1}var U;if(typeof S=="function")U=function(){S(Q)};else if(typeof MessageChannel<"u"){var X=new MessageChannel,K=X.port2;X.port1.onmessage=Q,U=function(){K.postMessage(null)}}else U=function(){x(Q,0)};function z(R){A=R,j||(j=!0,U())}function F(R,B){M=x(function(){R(n.unstable_now())},B)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(R){R.callback=null},n.unstable_continueExecution=function(){y||g||(y=!0,z(P))},n.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<R?Math.floor(1e3/R):5},n.unstable_getCurrentPriorityLevel=function(){return m},n.unstable_getFirstCallbackNode=function(){return t(l)},n.unstable_next=function(R){switch(m){case 1:case 2:case 3:var B=3;break;default:B=m}var Z=m;m=B;try{return R()}finally{m=Z}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function(R,B){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var Z=m;m=R;try{return B()}finally{m=Z}},n.unstable_scheduleCallback=function(R,B,Z){var se=n.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?se+Z:se):Z=se,R){case 1:var ae=-1;break;case 2:ae=250;break;case 5:ae=1073741823;break;case 4:ae=1e4;break;default:ae=5e3}return ae=Z+ae,R={id:h++,callback:B,priorityLevel:R,startTime:Z,expirationTime:ae,sortIndex:-1},Z>se?(R.sortIndex=Z,e(u,R),t(l)===null&&R===t(u)&&(v?(_(M),M=-1):v=!0,F(k,Z-se))):(R.sortIndex=ae,e(l,R),y||g||(y=!0,z(P))),R},n.unstable_shouldYield=V,n.unstable_wrapCallback=function(R){var B=m;return function(){var Z=m;m=B;try{return R.apply(this,arguments)}finally{m=Z}}}})(RT);jT.exports=RT;var hY=jT.exports;/** 26 * @license React 27 * react-dom.production.min.js 28 * 29 * Copyright (c) Facebook, Inc. and its affiliates. 30 * 31 * This source code is licensed under the MIT license found in the 32 * LICENSE file in the root directory of this source tree. 33 */var IT=E,$r=hY;function ie(n){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+n,t=1;t<arguments.length;t++)e+="&args[]="+encodeURIComponent(arguments[t]);return"Minified React error #"+n+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var NT=new Set,$d={};function kl(n,e){Lu(n,e),Lu(n+"Capture",e)}function Lu(n,e){for($d[n]=e,n=0;n<e.length;n++)NT.add(e[n])}var Js=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),N_=Object.prototype.hasOwnProperty,pY=/^[: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]*$/,jk={},Rk={};function gY(n){return N_.call(Rk,n)?!0:N_.call(jk,n)?!1:pY.test(n)?Rk[n]=!0:(jk[n]=!0,!1)}function mY(n,e,t,r){if(t!==null&&t.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return r?!1:t!==null?!t.acceptsBooleans:(n=n.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-");default:return!1}}function vY(n,e,t,r){if(e===null||typeof e>"u"||mY(n,e,t,r))return!0;if(r)return!1;if(t!==null)switch(t.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function ir(n,e,t,r,i,s,a){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=t,this.propertyName=n,this.type=e,this.sanitizeURL=s,this.removeEmptyString=a}var Nn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(n){Nn[n]=new ir(n,0,!1,n,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var e=n[0];Nn[e]=new ir(e,1,!1,n[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(n){Nn[n]=new ir(n,2,!1,n.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){Nn[n]=new ir(n,2,!1,n,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(n){Nn[n]=new ir(n,3,!1,n.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(n){Nn[n]=new ir(n,3,!0,n,null,!1,!1)});["capture","download"].forEach(function(n){Nn[n]=new ir(n,4,!1,n,null,!1,!1)});["cols","rows","size","span"].forEach(function(n){Nn[n]=new ir(n,6,!1,n,null,!1,!1)});["rowSpan","start"].forEach(function(n){Nn[n]=new ir(n,5,!1,n.toLowerCase(),null,!1,!1)});var Gx=/[\-:]([a-z])/g;function Xx(n){return n[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(n){var e=n.replace(Gx,Xx);Nn[e]=new ir(e,1,!1,n,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(n){var e=n.replace(Gx,Xx);Nn[e]=new ir(e,1,!1,n,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(n){var e=n.replace(Gx,Xx);Nn[e]=new ir(e,1,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(n){Nn[n]=new ir(n,1,!1,n.toLowerCase(),null,!1,!1)});Nn.xlinkHref=new ir("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(n){Nn[n]=new ir(n,1,!1,n.toLowerCase(),null,!0,!0)});function qx(n,e,t,r){var i=Nn.hasOwnProperty(e)?Nn[e]:null;(i!==null?i.type!==0:r||!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N")&&(vY(e,t,i,r)&&(t=null),r||i===null?gY(e)&&(t===null?n.removeAttribute(e):n.setAttribute(e,""+t)):i.mustUseProperty?n[i.propertyName]=t===null?i.type===3?!1:"":t:(e=i.attributeName,r=i.attributeNamespace,t===null?n.removeAttribute(e):(i=i.type,t=i===3||i===4&&t===!0?"":""+t,r?n.setAttributeNS(r,e,t):n.setAttribute(e,t))))}
vendor: 15,470 bytes, lines 33-37
33var ga=IT.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Xh=Symbol.for("react.element"),uu=Symbol.for("react.portal"),cu=Symbol.for("react.fragment"),Kx=Symbol.for("react.strict_mode"),F_=Symbol.for("react.profiler"),FT=Symbol.for("react.provider"),LT=Symbol.for("react.context"),Qx=Symbol.for("react.forward_ref"),L_=Symbol.for("react.suspense"),B_=Symbol.for("react.suspense_list"),Zx=Symbol.for("react.memo"),Ia=Symbol.for("react.lazy"),BT=Symbol.for("react.offscreen"),Ik=Symbol.iterator;function Uc(n){return n===null||typeof n!="object"?null:(n=Ik&&n[Ik]||n["@@iterator"],typeof n=="function"?n:null)}var zt=Object.assign,ly;function cd(n){if(ly===void 0)try{throw Error()}catch(t){var e=t.stack.trim().match(/\n( *(at )?)/);ly=e&&e[1]||""}return` 34`+ly+n}var uy=!1;function cy(n,e){if(!n||uy)return"";uy=!0;var t=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(e,[])}catch(u){var r=u}Reflect.construct(n,[],e)}else{try{e.call()}catch(u){r=u}n.call(e.prototype)}else{try{throw Error()}catch(u){r=u}n()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(` 35`),s=r.stack.split(` 36`),a=i.length-1,o=s.length-1;1<=a&&0<=o&&i[a]!==s[o];)o--;for(;1<=a&&0<=o;a--,o--)if(i[a]!==s[o]){if(a!==1||o!==1)do if(a--,o--,0>o||i[a]!==s[o]){var l=` 37`+i[a].replace(" at new "," at ");return n.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",n.displayName)),l}while(1<=a&&0<=o);break}}}finally{uy=!1,Error.prepareStackTrace=t}return(n=n?n.displayName||n.name:"")?cd(n):""}function bY(n){switch(n.tag){case 5:return cd(n.type);case 16:return cd("Lazy");case 13:return cd("Suspense");case 19:return cd("SuspenseList");case 0:case 2:case 15:return n=cy(n.type,!1),n;case 11:return n=cy(n.type.render,!1),n;case 1:return n=cy(n.type,!0),n;default:return""}}function $_(n){if(n==null)return null;if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case cu:return"Fragment";case uu:return"Portal";case F_:return"Profiler";case Kx:return"StrictMode";case L_:return"Suspense";case B_:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case LT:return(n.displayName||"Context")+".Consumer";case FT:return(n._context.displayName||"Context")+".Provider";case Qx:var e=n.render;return n=n.displayName,n||(n=e.displayName||e.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case Zx:return e=n.displayName||null,e!==null?e:$_(n.type)||"Memo";case Ia:e=n._payload,n=n._init;try{return $_(n(e))}catch{}}return null}function yY(n){var e=n.type;switch(n.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return n=e.render,n=n.displayName||n.name||"",e.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return $_(e);case 8:return e===Kx?"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 e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function to(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function $T(n){var e=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function _Y(n){var e=$T(n)?"checked":"value",t=Object.getOwnPropertyDescriptor(n.constructor.prototype,e),r=""+n[e];if(!n.hasOwnProperty(e)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var i=t.get,s=t.set;return Object.defineProperty(n,e,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,s.call(this,a)}}),Object.defineProperty(n,e,{enumerable:t.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){n._valueTracker=null,delete n[e]}}}}function qh(n){n._valueTracker||(n._valueTracker=_Y(n))}function VT(n){if(!n)return!1;var e=n._valueTracker;if(!e)return!0;var t=e.getValue(),r="";return n&&(r=$T(n)?n.checked?"true":"false":n.value),n=r,n!==t?(e.setValue(n),!0):!1}function _g(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function V_(n,e){var t=e.checked;return zt({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??n._wrapperState.initialChecked})}function Nk(n,e){var t=e.defaultValue==null?"":e.defaultValue,r=e.checked!=null?e.checked:e.defaultChecked;t=to(e.value!=null?e.value:t),n._wrapperState={initialChecked:r,initialValue:t,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function YT(n,e){e=e.checked,e!=null&&qx(n,"checked",e,!1)}function Y_(n,e){YT(n,e);var t=to(e.value),r=e.type;if(t!=null)r==="number"?(t===0&&n.value===""||n.value!=t)&&(n.value=""+t):n.value!==""+t&&(n.value=""+t);else if(r==="submit"||r==="reset"){n.removeAttribute("value");return}e.hasOwnProperty("value")?H_(n,e.type,t):e.hasOwnProperty("defaultValue")&&H_(n,e.type,to(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(n.defaultChecked=!!e.defaultChecked)}function Fk(n,e,t){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!(r!=="submit"&&r!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+n._wrapperState.initialValue,t||e===n.value||(n.value=e),n.defaultValue=e}t=n.name,t!==""&&(n.name=""),n.defaultChecked=!!n._wrapperState.initialChecked,t!==""&&(n.name=t)}function H_(n,e,t){(e!=="number"||_g(n.ownerDocument)!==n)&&(t==null?n.defaultValue=""+n._wrapperState.initialValue:n.defaultValue!==""+t&&(n.defaultValue=""+t))}var dd=Array.isArray;function ku(n,e,t,r){if(n=n.options,e){e={};for(var i=0;i<t.length;i++)e["$"+t[i]]=!0;for(t=0;t<n.length;t++)i=e.hasOwnProperty("$"+n[t].value),n[t].selected!==i&&(n[t].selected=i),i&&r&&(n[t].defaultSelected=!0)}else{for(t=""+to(t),e=null,i=0;i<n.length;i++){if(n[i].value===t){n[i].selected=!0,r&&(n[i].defaultSelected=!0);return}e!==null||n[i].disabled||(e=n[i])}e!==null&&(e.selected=!0)}}function z_(n,e){if(e.dangerouslySetInnerHTML!=null)throw Error(ie(91));return zt({},e,{value:void 0,defaultValue:void 0,children:""+n._wrapperState.initialValue})}function Lk(n,e){var t=e.value;if(t==null){if(t=e.children,e=e.defaultValue,t!=null){if(e!=null)throw Error(ie(92));if(dd(t)){if(1<t.length)throw Error(ie(93));t=t[0]}e=t}e==null&&(e=""),t=e}n._wrapperState={initialValue:to(t)}}function HT(n,e){var t=to(e.value),r=to(e.defaultValue);t!=null&&(t=""+t,t!==n.value&&(n.value=t),e.defaultValue==null&&n.defaultValue!==t&&(n.defaultValue=t)),r!=null&&(n.defaultValue=""+r)}function Bk(n){var e=n.textContent;e===n._wrapperState.initialValue&&e!==""&&e!==null&&(n.value=e)}function zT(n){switch(n){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function W_(n,e){return n==null||n==="http://www.w3.org/1999/xhtml"?zT(e):n==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":n}var Kh,WT=function(n){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(e,t,r,i){MSApp.execUnsafeLocalFunction(function(){return n(e,t,r,i)})}:n}(function(n,e){if(n.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in n)n.innerHTML=e;else{for(Kh=Kh||document.createElement("div"),Kh.innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=Kh.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;e.firstChild;)n.appendChild(e.firstChild)}});function Vd(n,e){if(e){var t=n.firstChild;if(t&&t===n.lastChild&&t.nodeType===3){t.nodeValue=e;return}}n.textContent=e}var Sd={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},xY=["Webkit","ms","Moz","O"];Object.keys(Sd).forEach(function(n){xY.forEach(function(e){e=e+n.charAt(0).toUpperCase()+n.substring(1),Sd[e]=Sd[n]})});function UT(n,e,t){return e==null||typeof e=="boolean"||e===""?"":t||typeof e!="number"||e===0||Sd.hasOwnProperty(n)&&Sd[n]?(""+e).trim():e+"px"}function GT(n,e){n=n.style;for(var t in e)if(e.hasOwnProperty(t)){var r=t.indexOf("--")===0,i=UT(t,e[t],r);t==="float"&&(t="cssFloat"),r?n.setProperty(t,i):n[t]=i}}var wY=zt({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 U_(n,e){if(e){if(wY[n]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(ie(137,n));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(ie(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(ie(61))}if(e.style!=null&&typeof e.style!="object")throw Error(ie(62))}}function G_(n,e){if(n.indexOf("-")===-1)return typeof e.is=="string";switch(n){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 X_=null;function Jx(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var q_=null,Pu=null,Cu=null;function $k(n){if(n=Lf(n)){if(typeof q_!="function")throw Error(ie(280));var e=n.stateNode;e&&(e=Bm(e),q_(n.stateNode,n.type,e))}}function XT(n){Pu?Cu?Cu.push(n):Cu=[n]:Pu=n}function qT(){if(Pu){var n=Pu,e=Cu;if(Cu=Pu=null,$k(n),e)for(n=0;n<e.length;n++)$k(e[n])}}function KT(n,e){return n(e)}function QT(){}var dy=!1;function ZT(n,e,t){if(dy)return n(e,t);dy=!0;try{return KT(n,e,t)}finally{dy=!1,(Pu!==null||Cu!==null)&&(QT(),qT())}}function Yd(n,e){var t=n.stateNode;if(t===null)return null;var r=Bm(t);if(r===null)return null;t=r[e];e:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(n=n.type,r=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!r;break e;default:n=!1}if(n)return null;if(t&&typeof t!="function")throw Error(ie(231,e,typeof t));return t}var K_=!1;if(Js)try{var Gc={};Object.defineProperty(Gc,"passive",{get:function(){K_=!0}}),window.addEventListener("test",Gc,Gc),window.removeEventListener("test",Gc,Gc)}catch{K_=!1}function SY(n,e,t,r,i,s,a,o,l){var u=Array.prototype.slice.call(arguments,3);try{e.apply(t,u)}catch(h){this.onError(h)}}var Dd=!1,xg=null,wg=!1,Q_=null,DY={onError:function(n){Dd=!0,xg=n}};function kY(n,e,t,r,i,s,a,o,l){Dd=!1,xg=null,SY.apply(DY,arguments)}function PY(n,e,t,r,i,s,a,o,l){if(kY.apply(this,arguments),Dd){if(Dd){var u=xg;Dd=!1,xg=null}else throw Error(ie(198));wg||(wg=!0,Q_=u)}}function Pl(n){var e=n,t=n;if(n.alternate)for(;e.return;)e=e.return;else{n=e;do e=n,e.flags&4098&&(t=e.return),n=e.return;while(n)}return e.tag===3?t:null}function JT(n){if(n.tag===13){var e=n.memoizedState;if(e===null&&(n=n.alternate,n!==null&&(e=n.memoizedState)),e!==null)return e.dehydrated}return null}function Vk(n){if(Pl(n)!==n)throw Error(ie(188))}function CY(n){var e=n.alternate;if(!e){if(e=Pl(n),e===null)throw Error(ie(188));return e!==n?null:n}for(var t=n,r=e;;){var i=t.return;if(i===null)break;var s=i.alternate;if(s===null){if(r=i.return,r!==null){t=r;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===t)return Vk(i),n;if(s===r)return Vk(i),e;s=s.sibling}throw Error(ie(188))}if(t.return!==r.return)t=i,r=s;else{for(var a=!1,o=i.child;o;){if(o===t){a=!0,t=i,r=s;break}if(o===r){a=!0,r=i,t=s;break}o=o.sibling}if(!a){for(o=s.child;o;){if(o===t){a=!0,t=s,r=i;break}if(o===r){a=!0,r=s,t=i;break}o=o.sibling}if(!a)throw Error(ie(189))}}if(t.alternate!==r)throw Error(ie(190))}if(t.tag!==3)throw Error(ie(188));return t.stateNode.current===t?n:e}function eO(n){return n=CY(n),n!==null?tO(n):null}function tO(n){if(n.tag===5||n.tag===6)return n;for(n=n.child;n!==null;){var e=tO(n);if(e!==null)return e;n=n.sibling}return null}var nO=$r.unstable_scheduleCallback,Yk=$r.unstable_cancelCallback,EY=$r.unstable_shouldYield,MY=$r.unstable_requestPaint,tn=$r.unstable_now,TY=$r.unstable_getCurrentPriorityLevel,ew=$r.unstable_ImmediatePriority,rO=$r.unstable_UserBlockingPriority,Sg=$r.unstable_NormalPriority,OY=$r.unstable_LowPriority,iO=$r.unstable_IdlePriority,Im=null,cs=null;function AY(n){if(cs&&typeof cs.onCommitFiberRoot=="function")try{cs.onCommitFiberRoot(Im,n,void 0,(n.current.flags&128)===128)}catch{}}var Mi=Math.clz32?Math.clz32:IY,jY=Math.log,RY=Math.LN2;function IY(n){return n>>>=0,n===0?32:31-(jY(n)/RY|0)|0}var Qh=64,Zh=4194304;function fd(n){switch(n&-n){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 n&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return n&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return n}}function Dg(n,e){var t=n.pendingLanes;if(t===0)return 0;var r=0,i=n.suspendedLanes,s=n.pingedLanes,a=t&268435455;if(a!==0){var o=a&~i;o!==0?r=fd(o):(s&=a,s!==0&&(r=fd(s)))}else a=t&~i,a!==0?r=fd(a):s!==0&&(r=fd(s));if(r===0)return 0;if(e!==0&&e!==r&&!(e&i)&&(i=r&-r,s=e&-e,i>=s||i===16&&(s&4194240)!==0))return e;if(r&4&&(r|=t&16),e=n.entangledLanes,e!==0)for(n=n.entanglements,e&=r;0<e;)t=31-Mi(e),i=1<<t,r|=n[t],e&=~i;return r}function NY(n,e){switch(n){case 1:case 2:case 4:return e+250;case 8:case 16:case 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+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function FY(n,e){for(var t=n.suspendedLanes,r=n.pingedLanes,i=n.expirationTimes,s=n.pendingLanes;0<s;){var a=31-Mi(s),o=1<<a,l=i[a];l===-1?(!(o&t)||o&r)&&(i[a]=NY(o,e)):l<=e&&(n.expiredLanes|=o),s&=~o}}function Z_(n){return n=n.pendingLanes&-1073741825,n!==0?n:n&1073741824?1073741824:0}function sO(){var n=Qh;return Qh<<=1,!(Qh&4194240)&&(Qh=64),n}function fy(n){for(var e=[],t=0;31>t;t++)e.push(n);return e}function Nf(n,e,t){n.pendingLanes|=e,e!==536870912&&(n.suspendedLanes=0,n.pingedLanes=0),n=n.eventTimes,e=31-Mi(e),n[e]=t}function LY(n,e){var t=n.pendingLanes&~e;
vendor: 2,853 bytes, line 37
37n.pendingLanes=e,n.suspendedLanes=0,n.pingedLanes=0,n.expiredLanes&=e,n.mutableReadLanes&=e,n.entangledLanes&=e,e=n.entanglements;var r=n.eventTimes;for(n=n.expirationTimes;0<t;){var i=31-Mi(t),s=1<<i;e[i]=0,r[i]=-1,n[i]=-1,t&=~s}}function tw(n,e){var t=n.entangledLanes|=e;for(n=n.entanglements;t;){var r=31-Mi(t),i=1<<r;i&e|n[r]&e&&(n[r]|=e),t&=~i}}var mt=0;function aO(n){return n&=-n,1<n?4<n?n&268435455?16:536870912:4:1}var oO,nw,lO,uO,cO,J_=!1,Jh=[],Wa=null,Ua=null,Ga=null,Hd=new Map,zd=new Map,Ba=[],BY="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Hk(n,e){switch(n){case"focusin":case"focusout":Wa=null;break;case"dragenter":case"dragleave":Ua=null;break;case"mouseover":case"mouseout":Ga=null;break;case"pointerover":case"pointerout":Hd.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":zd.delete(e.pointerId)}}function Xc(n,e,t,r,i,s){return n===null||n.nativeEvent!==s?(n={blockedOn:e,domEventName:t,eventSystemFlags:r,nativeEvent:s,targetContainers:[i]},e!==null&&(e=Lf(e),e!==null&&nw(e)),n):(n.eventSystemFlags|=r,e=n.targetContainers,i!==null&&e.indexOf(i)===-1&&e.push(i),n)}function $Y(n,e,t,r,i){switch(e){case"focusin":return Wa=Xc(Wa,n,e,t,r,i),!0;case"dragenter":return Ua=Xc(Ua,n,e,t,r,i),!0;case"mouseover":return Ga=Xc(Ga,n,e,t,r,i),!0;case"pointerover":var s=i.pointerId;return Hd.set(s,Xc(Hd.get(s)||null,n,e,t,r,i)),!0;case"gotpointercapture":return s=i.pointerId,zd.set(s,Xc(zd.get(s)||null,n,e,t,r,i)),!0}return!1}function dO(n){var e=Bo(n.target);if(e!==null){var t=Pl(e);if(t!==null){if(e=t.tag,e===13){if(e=JT(t),e!==null){n.blockedOn=e,cO(n.priority,function(){lO(t)});return}}else if(e===3&&t.stateNode.current.memoizedState.isDehydrated){n.blockedOn=t.tag===3?t.stateNode.containerInfo:null;return}}}n.blockedOn=null}function Gp(n){if(n.blockedOn!==null)return!1;for(var e=n.targetContainers;0<e.length;){var t=e0(n.domEventName,n.eventSystemFlags,e[0],n.nativeEvent);if(t===null){t=n.nativeEvent;var r=new t.constructor(t.type,t);X_=r,t.target.dispatchEvent(r),X_=null}else return e=Lf(t),e!==null&&nw(e),n.blockedOn=t,!1;e.shift()}return!0}function zk(n,e,t){Gp(n)&&t.delete(e)}function VY(){J_=!1,Wa!==null&&Gp(Wa)&&(Wa=null),Ua!==null&&Gp(Ua)&&(Ua=null),Ga!==null&&Gp(Ga)&&(Ga=null),Hd.forEach(zk),zd.forEach(zk)}function qc(n,e){n.blockedOn===e&&(n.blockedOn=null,J_||(J_=!0,$r.unstable_scheduleCallback($r.unstable_NormalPriority,VY)))}function Wd(n){function e(i){return qc(i,n)}if(0<Jh.length){qc(Jh[0],n);for(var t=1;t<Jh.length;t++){var r=Jh[t];r.blockedOn===n&&(r.blockedOn=null)}}for(Wa!==null&&qc(Wa,n),Ua!==null&&qc(Ua,n),Ga!==null&&qc(Ga,n),Hd.forEac
vendor: 5,444 bytes, line 37
37h(e),zd.forEach(e),t=0;t<Ba.length;t++)r=Ba[t],r.blockedOn===n&&(r.blockedOn=null);for(;0<Ba.length&&(t=Ba[0],t.blockedOn===null);)dO(t),t.blockedOn===null&&Ba.shift()}var Eu=ga.ReactCurrentBatchConfig,kg=!0;function YY(n,e,t,r){var i=mt,s=Eu.transition;Eu.transition=null;try{mt=1,rw(n,e,t,r)}finally{mt=i,Eu.transition=s}}function HY(n,e,t,r){var i=mt,s=Eu.transition;Eu.transition=null;try{mt=4,rw(n,e,t,r)}finally{mt=i,Eu.transition=s}}function rw(n,e,t,r){if(kg){var i=e0(n,e,t,r);if(i===null)wy(n,e,r,Pg,t),Hk(n,r);else if($Y(i,n,e,t,r))r.stopPropagation();else if(Hk(n,r),e&4&&-1<BY.indexOf(n)){for(;i!==null;){var s=Lf(i);if(s!==null&&oO(s),s=e0(n,e,t,r),s===null&&wy(n,e,r,Pg,t),s===i)break;i=s}i!==null&&r.stopPropagation()}else wy(n,e,r,null,t)}}var Pg=null;function e0(n,e,t,r){if(Pg=null,n=Jx(r),n=Bo(n),n!==null)if(e=Pl(n),e===null)n=null;else if(t=e.tag,t===13){if(n=JT(e),n!==null)return n;n=null}else if(t===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;n=null}else e!==n&&(n=null);return Pg=n,null}function fO(n){switch(n){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(TY()){case ew:return 1;case rO:return 4;case Sg:case OY:return 16;case iO:return 536870912;default:return 16}default:return 16}}var Va=null,iw=null,Xp=null;function hO(){if(Xp)return Xp;var n,e=iw,t=e.length,r,i="value"in Va?Va.value:Va.textContent,s=i.length;for(n=0;n<t&&e[n]===i[n];n++);var a=t-n;for(r=1;r<=a&&e[t-r]===i[s-r];r++);return Xp=i.slice(n,1<r?1-r:void 0)}function qp(n){var e=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&e===13&&(n=13)):n=e,n===10&&(n=13),32<=n||n===13?n:0}function ep(){return!0}function Wk(){return!1}function Ur(n){function e(t,r,i,s,a){this._reactName=t,this._targetInst=i,this.type=r,this.nativeEvent=s,this.target=a,this.currentTarget=null;for(var o in n)n.hasOwnProperty(o)&&(t=n[o],this[o]=t?t(s):s[o]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?ep:Wk,this.isPropagationStopped=Wk,this}return zt(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():typeof t.returnValue!="unknown"&&(t.returnValue=!1),this.isDefaultPrevented=ep)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():typeof t.cancelBubble!="unknown"&&(t.cancelBubble=!0),this.isPropagationStopped=ep)},persist:function(){},isPersistent:ep}),e}var hc={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},sw=Ur(hc),Ff=zt({},hc,{view:0,detail:0}),zY=Ur(Ff),hy,py,Kc,Nm=zt({},Ff,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:aw,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==Kc&&(Kc&&n.type==="mousemove"?(hy=n.screenX-Kc.screenX,py=n.screenY-Kc.screenY):py=hy=0,Kc=n),hy)},movementY:function(n){return"movementY"in n?n.movementY:py}}),Uk=Ur(Nm),WY=zt({},Nm,{dataTransfer:0}),UY=Ur(WY),GY=zt({},Ff,{relatedTarget:0}),gy=Ur(GY),XY=zt({},hc,{animationName:0,elapsedTime:0,pseudoElement:0}),qY=Ur(XY),KY=zt({},hc,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),QY=Ur(KY),ZY=zt({},hc,{data:0}),Gk=Ur(ZY),JY={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},e5={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},t5={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function n5(n){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(n):(n=t5[n])?!!e[n]:!1}function aw(){return n5}var r5=zt({},Ff,{key:function(n){if(n.key){var e=JY[n.key]||n.key;if(e!=="Unidentified")return e}
vendor: 6,048 bytes, line 37
37return n.type==="keypress"?(n=qp(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?e5[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:aw,charCode:function(n){return n.type==="keypress"?qp(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?qp(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),i5=Ur(r5),s5=zt({},Nm,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Xk=Ur(s5),a5=zt({},Ff,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:aw}),o5=Ur(a5),l5=zt({},hc,{propertyName:0,elapsedTime:0,pseudoElement:0}),u5=Ur(l5),c5=zt({},Nm,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),d5=Ur(c5),f5=[9,13,27,32],ow=Js&&"CompositionEvent"in window,kd=null;Js&&"documentMode"in document&&(kd=document.documentMode);var h5=Js&&"TextEvent"in window&&!kd,pO=Js&&(!ow||kd&&8<kd&&11>=kd),qk=String.fromCharCode(32),Kk=!1;function gO(n,e){switch(n){case"keyup":return f5.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function mO(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var du=!1;function p5(n,e){switch(n){case"compositionend":return mO(e);case"keypress":return e.which!==32?null:(Kk=!0,qk);case"textInput":return n=e.data,n===qk&&Kk?null:n;default:return null}}function g5(n,e){if(du)return n==="compositionend"||!ow&&gO(n,e)?(n=hO(),Xp=iw=Va=null,du=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return pO&&e.locale!=="ko"?null:e.data;default:return null}}var m5={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Qk(n){var e=n&&n.nodeName&&n.nodeName.toLowerCase();return e==="input"?!!m5[n.type]:e==="textarea"}function vO(n,e,t,r){XT(r),e=Cg(e,"onChange"),0<e.length&&(t=new sw("onChange","change",null,t,r),n.push({event:t,listeners:e}))}var Pd=null,Ud=null;function v5(n){EO(n,0)}function Fm(n){var e=pu(n);if(VT(e))return n}function b5(n,e){if(n==="change")return e}var bO=!1;if(Js){var my;if(Js){var vy="oninput"in document;if(!vy){var Zk=document.createElement("div");Zk.setAttribute("oninput","return;"),vy=typeof Zk.oninput=="function"}my=vy}else my=!1;bO=my&&(!document.documentMode||9<document.documentMode)}function Jk(){Pd&&(Pd.detachEvent("onpropertychange",yO),Ud=Pd=null)}function yO(n){if(n.propertyName==="value"&&Fm(Ud)){var e=[];vO(e,Ud,n,Jx(n)),ZT(v5,e)}}function y5(n,e,t){n==="focusin"?(Jk(),Pd=e,Ud=t,Pd.attachEvent("onpropertychange",yO)):n==="focusout"&&Jk()}function _5(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return Fm(Ud)}function x5(n,e){if(n==="click")return Fm(e)}function w5(n,e){if(n==="input"||n==="change")return Fm(e)}function S5(n,e){return n===e&&(n!==0||1/n===1/e)||n!==n&&e!==e}var Fi=typeof Object.is=="function"?Object.is:S5;function Gd(n,e){if(Fi(n,e))return!0;if(typeof n!="object"||n===null||typeof e!="object"||e===null)return!1;var t=Object.keys(n),r=Object.keys(e);if(t.length!==r.length)return!1;for(r=0;r<t.length;r++){var i=t[r];if(!N_.call(e,i)||!Fi(n[i],e[i]))return!1}return!0}function eP(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function tP(n,e){var t=eP(n);n=0;for(var r;t;){if(t.nodeType===3){if(r=n+t.textContent.length,n<=e&&r>=e)return{node:t,offset:e-n};n=r}e:{for(;t;){if(t.nextSibling){t=t.nextSibling;break e}t=t.parentNode}t=void 0}t=eP(t)}}function _O(n,e){return n&&e?n===e?!0:n&&n.nodeType===3?!1:e&&e.nodeType===3?_O(n,e.parentNode):"contains"in n?n.contains(e):n.compareDocumentPosition?!!(n.compareDocumentPosition(e)&16):!1:!1}function xO(){for(var n=window,e=_g();e instanceof n.HTMLIFrameElement;){try{var t=typeof e.contentWindow.location.href=="string"}catch{t=!1}if(t)n=e.contentWindow;else break;e=_g(n.document)}return e}function lw(n){var e=n&&n.nodeName&&n.nodeName.toLowerCase();return e&&(e==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||e==="textarea"||n.contentEditable==="true")}function D5(n){var e=xO(),t=n.focusedElem,r=n.selectionRange;if(e!==t&&t&&t.ownerDocument&&_O(t.ownerDocument.documentElement,t)){if(r!==null&&lw(t)){if(e=r.start,n=r.end,n===void 0&&(n=e),"selectionStart"in t)t.selectionStart=e,t.selectionEnd=Math.min(n,t.value.length);else if(n=(e=t.ownerDocument||document)&&e.defaultView||window,n.getSelection){n=n.getSelection();var i=t.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!n.extend&&s>r&&(i=r,r=s,s=i),i=tP(t,s);var a=tP(t,r);i&&a&&(n.rangeCount!==1||n.anchorNode!==i.node||n.anchorOffset!==i.offset||n.focusNode!==a.node||n.focusOffset!==a.offset)&&(e=e.createRange(),e.setStart(i.node,i.offset),n.removeAllRanges(),s>r?(n.addRange(e),n.extend(a.node,a.offset)):(e.setEnd(a.node,a.offset),n.addRange(e)))}}for(e=[],n=t;n=n.parentNode;)n.nodeType===1&&e.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t<e.length;t++)n=e[t],n.element.scrollLeft=n.left,n.element.scrollTop=n.top}}var k5=Js&&"documentMode"in document&&11>=document.documentMode,fu=null,t0=null,Cd=null,n0=!1;function nP(n,e,t){var r=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;n0||fu==null||fu!==_g(r)||(r=fu,"selectionStart"in r&&lw(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focu
vendor: 4,501 bytes, line 37
37sNode:r.focusNode,focusOffset:r.focusOffset}),Cd&&Gd(Cd,r)||(Cd=r,r=Cg(t0,"onSelect"),0<r.length&&(e=new sw("onSelect","select",null,e,t),n.push({event:e,listeners:r}),e.target=fu)))}function tp(n,e){var t={};return t[n.toLowerCase()]=e.toLowerCase(),t["Webkit"+n]="webkit"+e,t["Moz"+n]="moz"+e,t}var hu={animationend:tp("Animation","AnimationEnd"),animationiteration:tp("Animation","AnimationIteration"),animationstart:tp("Animation","AnimationStart"),transitionend:tp("Transition","TransitionEnd")},by={},wO={};Js&&(wO=document.createElement("div").style,"AnimationEvent"in window||(delete hu.animationend.animation,delete hu.animationiteration.animation,delete hu.animationstart.animation),"TransitionEvent"in window||delete hu.transitionend.transition);function Lm(n){if(by[n])return by[n];if(!hu[n])return n;var e=hu[n],t;for(t in e)if(e.hasOwnProperty(t)&&t in wO)return by[n]=e[t];return n}var SO=Lm("animationend"),DO=Lm("animationiteration"),kO=Lm("animationstart"),PO=Lm("transitionend"),CO=new Map,rP="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function go(n,e){CO.set(n,e),kl(e,[n])}for(var yy=0;yy<rP.length;yy++){var _y=rP[yy],P5=_y.toLowerCase(),C5=_y[0].toUpperCase()+_y.slice(1);go(P5,"on"+C5)}go(SO,"onAnimationEnd");go(DO,"onAnimationIteration");go(kO,"onAnimationStart");go("dblclick","onDoubleClick");go("focusin","onFocus");go("focusout","onBlur");go(PO,"onTransitionEnd");Lu("onMouseEnter",["mouseout","mouseover"]);Lu("onMouseLeave",["mouseout","mouseover"]);Lu("onPointerEnter",["pointerout","pointerover"]);Lu("onPointerLeave",["pointerout","pointerover"]);kl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));kl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));kl("onBeforeInput",["compositionend","keypress","textInput","paste"]);kl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));kl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));kl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var hd="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),E5=new Set("cancel close invalid load scroll toggle".split(" ").concat(hd));function iP(n,e,t){var r=n.type||"unknown-event";n.currentTarget=t,PY(r,e,void 0,n),n.currentTarget=null}function EO(n,e){e=(e&4)!==0;for(var t=0;t<n.length;t++){var r=n[t],i=r.event;r=r.listeners;e:{var s=void 0;if(e)for(var a=r.length-1;0<=a;a--){var o=r[a],l=o.instance,u=o.currentTarget;if(o=o.listener,l!==s&&i.isPropagationStopped())break e;iP(i,o,u),s=l}else for(a=0;a<r.length;a++){if(o=r[a],l=o.instance,u=o.currentTarget,o=o.listener,l!==s&&i.isPropagationStopped())break e;iP(i,o,u),s=l}}}if(wg)throw n=Q_,wg=!1,Q_=null,n}function Mt(n,e){var t=e[o0];t===void 0&&(t=e[o0]=new Set);var r=n+"__bubble";t.has(r)||(MO(e,n,2,!1),t.add(r))}function xy(n,e,t){var r=0;e&&(r|=4),MO(t,n,r,e)}var np="_reactListening"+Math.random().toString(36).slice(2);function Xd(n){if(!n[np]){n[np]=!0,NT.forEach(function(t){t!=="selectionchange"&&(E5.has(t)||xy(t,!1,n),xy(t,!0,n))});var e=n.nodeType===9?n:n.ownerDocument;e===null||e[np]||(e[np]=!0,xy("selectionchange",!1,e))}}function MO(n,e,t,r){switch(fO(e)){case 1:var i=YY;break;case 4:i=HY;break;default:i=rw}t=i.bind(null,e,t,n),i=void 0,!K_||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(i=!0),r?i!==void 0?n.addEventListener(e,t,{capture:!0,passive:i}):n.addEventListener(e,t,!0):i!==void 0?n.addEventListener(e,t,{passive:i}):n.addEventListener(e,t,!1)}function wy(n,e,t,r,i){var s=r;if(!(e&1)&&!(e&2)&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var o=r.stateNode.containerInfo;
vendor: 6,202 bytes, lines 37-38
37if(o===i||o.nodeType===8&&o.parentNode===i)break;if(a===4)for(a=r.return;a!==null;){var l=a.tag;if((l===3||l===4)&&(l=a.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;a=a.return}for(;o!==null;){if(a=Bo(o),a===null)return;if(l=a.tag,l===5||l===6){r=s=a;continue e}o=o.parentNode}}r=r.return}ZT(function(){var u=s,h=Jx(t),f=[];e:{var m=CO.get(n);if(m!==void 0){var g=sw,y=n;switch(n){case"keypress":if(qp(t)===0)break e;case"keydown":case"keyup":g=i5;break;case"focusin":y="focus",g=gy;break;case"focusout":y="blur",g=gy;break;case"beforeblur":case"afterblur":g=gy;break;case"click":if(t.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g=Uk;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=UY;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=o5;break;case SO:case DO:case kO:g=qY;break;case PO:g=u5;break;case"scroll":g=zY;break;case"wheel":g=d5;break;case"copy":case"cut":case"paste":g=QY;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=Xk}var v=(e&4)!==0,x=!v&&n==="scroll",_=v?m!==null?m+"Capture":null:m;v=[];for(var S=u,w;S!==null;){w=S;var k=w.stateNode;if(w.tag===5&&k!==null&&(w=k,_!==null&&(k=Yd(S,_),k!=null&&v.push(qd(S,k,w)))),x)break;S=S.return}0<v.length&&(m=new g(m,y,null,t,h),f.push({event:m,listeners:v}))}}if(!(e&7)){e:{if(m=n==="mouseover"||n==="pointerover",g=n==="mouseout"||n==="pointerout",m&&t!==X_&&(y=t.relatedTarget||t.fromElement)&&(Bo(y)||y[ea]))break e;if((g||m)&&(m=h.window===h?h:(m=h.ownerDocument)?m.defaultView||m.parentWindow:window,g?(y=t.relatedTarget||t.toElement,g=u,y=y?Bo(y):null,y!==null&&(x=Pl(y),y!==x||y.tag!==5&&y.tag!==6)&&(y=null)):(g=null,y=u),g!==y)){if(v=Uk,k="onMouseLeave",_="onMouseEnter",S="mouse",(n==="pointerout"||n==="pointerover")&&(v=Xk,k="onPointerLeave",_="onPointerEnter",S="pointer"),x=g==null?m:pu(g),w=y==null?m:pu(y),m=new v(k,S+"leave",g,t,h),m.target=x,m.relatedTarget=w,k=null,Bo(h)===u&&(v=new v(_,S+"enter",y,t,h),v.target=w,v.relatedTarget=x,k=v),x=k,g&&y)t:{for(v=g,_=y,S=0,w=v;w;w=Zl(w))S++;for(w=0,k=_;k;k=Zl(k))w++;for(;0<S-w;)v=Zl(v),S--;for(;0<w-S;)_=Zl(_),w--;for(;S--;){if(v===_||_!==null&&v===_.alternate)break t;v=Zl(v),_=Zl(_)}v=null}else v=null;g!==null&&sP(f,m,g,v,!1),y!==null&&x!==null&&sP(f,x,y,v,!0)}}e:{if(m=u?pu(u):window,g=m.nodeName&&m.nodeName.toLowerCase(),g==="select"||g==="input"&&m.type==="file")var P=b5;else if(Qk(m))if(bO)P=w5;else{P=_5;var j=y5}else(g=m.nodeName)&&g.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(P=x5);if(P&&(P=P(n,u))){vO(f,P,t,h);break e}j&&j(n,m,u),n==="focusout"&&(j=m._wrapperState)&&j.controlled&&m.type==="number"&&H_(m,"number",m.value)}switch(j=u?pu(u):window,n){case"focusin":(Qk(j)||j.contentEditable==="true")&&(fu=j,t0=u,Cd=null);break;case"focusout":Cd=t0=fu=null;break;case"mousedown":n0=!0;break;case"contextmenu":case"mouseup":case"dragend":n0=!1,nP(f,t,h);break;case"selectionchange":if(k5)break;case"keydown":case"keyup":nP(f,t,h)}var A;if(ow)e:{switch(n){case"compositionstart":var M="onCompositionStart";break e;case"compositionend":M="onCompositionEnd";break e;case"compositionupdate":M="onCompositionUpdate";break e}M=void 0}else du?gO(n,t)&&(M="onCompositionEnd"):n==="keydown"&&t.keyCode===229&&(M="onCompositionStart");M&&(pO&&t.locale!=="ko"&&(du||M!=="onCompositionStart"?M==="onCompositionEnd"&&du&&(A=hO()):(Va=h,iw="value"in Va?Va.value:Va.textContent,du=!0)),j=Cg(u,M),0<j.length&&(M=new Gk(M,n,null,t,h),f.push({event:M,listeners:j}),A?M.data=A:(A=mO(t),A!==null&&(M.data=A)))),(A=h5?p5(n,t):g5(n,t))&&(u=Cg(u,"onBeforeInput"),0<u.length&&(h=new Gk("onBeforeInput","beforeinput",null,t,h),f.push({event:h,listeners:u}),h.data=A))}EO(f,e)})}function qd(n,e,t){return{instance:n,listener:e,currentTarget:t}}function Cg(n,e){for(var t=e+"Capture",r=[];n!==null;){var i=n,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=Yd(n,t),s!=null&&r.unshift(qd(n,s,i)),s=Yd(n,e),s!=null&&r.push(qd(n,s,i))),n=n.return}return r}function Zl(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5);return n||null}function sP(n,e,t,r,i){for(var s=e._reactName,a=[];t!==null&&t!==r;){var o=t,l=o.alternate,u=o.stateNode;if(l!==null&&l===r)break;o.tag===5&&u!==null&&(o=u,i?(l=Yd(t,s),l!=null&&a.unshift(qd(t,l,o))):i||(l=Yd(t,s),l!=null&&a.push(qd(t,l,o)))),t=t.return}a.length!==0&&n.push({event:e,listeners:a})}var M5=/\r\n?/g,T5=/\u0000|\uFFFD/g;function aP(n){return(typeof n=="string"?n:""+n).replace(M5,` 38`).replace(T5,"")}function rp(n,e,t){if(e=aP(e),aP(n)!==e&&t)throw Error(ie(425))}function Eg(){}var r0=null,i0=null;function s0(n,e){return n==="textarea"||n==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var a0=typeof setTimeout=="function"?setTimeout:void 0,O5=typeof clearTimeout=="function"?clearTimeout:void 0,oP=typeof Promise=="function"?Promise:void 0,A5=typeof queueMicrotask=="function"?queueMicrotask:typeof oP<"u"?function(n){return oP.resolve(null).then(n).catch(j5)}:a0;function j5(n){setTimeout(function(){throw n})}function Sy(n,e){var t=e,r=0;do{var i=t.nextSibling;if(n.removeChild(t),i&&i.nodeType===8)if(t=i.data,t==="/$"){if(r===0){n.removeChild(i),Wd(e);return}r--}else t!=="$"&&t!=="$?"&&t!=="$!"||r++;t=i}while(t);Wd(e)}function Xa(n){for(;n!=null;n=n.nextSibling){var e=n.nodeType;if(e===1||e===3)break;if(e===8){if(e=n.data,e==="$"||e==="$!"||e==="$?")break;if(e==="/$")return null}}return n}function lP(n){n=n.previousSibling;for(var e=0;n;){if(n.nodeType===8){var t=n.data;if(t==="$"||t==="$!"||t==="$?"){if(e===0)return n;e--}else t==="/$"&&e++}n=n.previousSibling}return null}var pc=Math.random().toString(36).slice(2),ts="__reactFiber$"+pc,Kd="__reactProps$"+pc,ea="__reactContainer$"+pc,o0="__reactEvents$"+pc,R5="__reactListeners$"+pc,I5="__reactHandles$"+pc;function Bo(n){var e=n[ts];if(e)return e;for(var t=n.parentNode;t;
vendor: 6,091 bytes, line 38
38){if(e=t[ea]||t[ts]){if(t=e.alternate,e.child!==null||t!==null&&t.child!==null)for(n=lP(n);n!==null;){if(t=n[ts])return t;n=lP(n)}return e}n=t,t=n.parentNode}return null}function Lf(n){return n=n[ts]||n[ea],!n||n.tag!==5&&n.tag!==6&&n.tag!==13&&n.tag!==3?null:n}function pu(n){if(n.tag===5||n.tag===6)return n.stateNode;throw Error(ie(33))}function Bm(n){return n[Kd]||null}var l0=[],gu=-1;function mo(n){return{current:n}}function Ot(n){0>gu||(n.current=l0[gu],l0[gu]=null,gu--)}function Dt(n,e){gu++,l0[gu]=n.current,n.current=e}var no={},Gn=mo(no),br=mo(!1),el=no;function Bu(n,e){var t=n.type.contextTypes;if(!t)return no;var r=n.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in t)i[s]=e[s];return r&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=e,n.__reactInternalMemoizedMaskedChildContext=i),i}function yr(n){return n=n.childContextTypes,n!=null}function Mg(){Ot(br),Ot(Gn)}function uP(n,e,t){if(Gn.current!==no)throw Error(ie(168));Dt(Gn,e),Dt(br,t)}function TO(n,e,t){var r=n.stateNode;if(e=e.childContextTypes,typeof r.getChildContext!="function")return t;r=r.getChildContext();for(var i in r)if(!(i in e))throw Error(ie(108,yY(n)||"Unknown",i));return zt({},t,r)}function Tg(n){return n=(n=n.stateNode)&&n.__reactInternalMemoizedMergedChildContext||no,el=Gn.current,Dt(Gn,n),Dt(br,br.current),!0}function cP(n,e,t){var r=n.stateNode;if(!r)throw Error(ie(169));t?(n=TO(n,e,el),r.__reactInternalMemoizedMergedChildContext=n,Ot(br),Ot(Gn),Dt(Gn,n)):Ot(br),Dt(br,t)}var Vs=null,$m=!1,Dy=!1;function OO(n){Vs===null?Vs=[n]:Vs.push(n)}function N5(n){$m=!0,OO(n)}function vo(){if(!Dy&&Vs!==null){Dy=!0;var n=0,e=mt;try{var t=Vs;for(mt=1;n<t.length;n++){var r=t[n];do r=r(!0);while(r!==null)}Vs=null,$m=!1}catch(i){throw Vs!==null&&(Vs=Vs.slice(n+1)),nO(ew,vo),i}finally{mt=e,Dy=!1}}return null}var mu=[],vu=0,Og=null,Ag=0,ii=[],si=0,tl=null,Ys=1,Hs="";function To(n,e){mu[vu++]=Ag,mu[vu++]=Og,Og=n,Ag=e}function AO(n,e,t){ii[si++]=Ys,ii[si++]=Hs,ii[si++]=tl,tl=n;var r=Ys;n=Hs;var i=32-Mi(r)-1;r&=~(1<<i),t+=1;var s=32-Mi(e)+i;if(30<s){var a=i-i%5;s=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Ys=1<<32-Mi(e)+i|t<<i|r,Hs=s+n}else Ys=1<<s|t<<i|r,Hs=n}function uw(n){n.return!==null&&(To(n,1),AO(n,1,0))}function cw(n){for(;n===Og;)Og=mu[--vu],mu[vu]=null,Ag=mu[--vu],mu[vu]=null;for(;n===tl;)tl=ii[--si],ii[si]=null,Hs=ii[--si],ii[si]=null,Ys=ii[--si],ii[si]=null}var Fr=null,Rr=null,Ft=!1,ki=null;function jO(n,e){var t=ui(5,null,null,0);t.elementType="DELETED",t.stateNode=e,t.return=n,e=n.deletions,e===null?(n.deletions=[t],n.flags|=16):e.push(t)}function dP(n,e){switch(n.tag){case 5:var t=n.type;return e=e.nodeType!==1||t.toLowerCase()!==e.nodeName.toLowerCase()?null:e,e!==null?(n.stateNode=e,Fr=n,Rr=Xa(e.firstChild),!0):!1;case 6:return e=n.pendingProps===""||e.nodeType!==3?null:e,e!==null?(n.stateNode=e,Fr=n,Rr=null,!0):!1;case 13:return e=e.nodeType!==8?null:e,e!==null?(t=tl!==null?{id:Ys,overflow:Hs}:null,n.memoizedState={dehydrated:e,treeContext:t,retryLane:1073741824},t=ui(18,null,null,0),t.stateNode=e,t.return=n,n.child=t,Fr=n,Rr=null,!0):!1;default:return!1}}function u0(n){return(n.mode&1)!==0&&(n.flags&128)===0}function c0(n){if(Ft){var e=Rr;if(e){var t=e;if(!dP(n,e)){if(u0(n))throw Error(ie(418));e=Xa(t.nextSibling);var r=Fr;e&&dP(n,e)?jO(r,t):(n.flags=n.flags&-4097|2,Ft=!1,Fr=n)}}else{if(u0(n))throw Error(ie(418));n.flags=n.flags&-4097|2,Ft=!1,Fr=n}}}function fP(n){for(n=n.return;n!==null&&n.tag!==5&&n.tag!==3&&n.tag!==13;)n=n.return;Fr=n}function ip(n){if(n!==Fr)return!1;if(!Ft)return fP(n),Ft=!0,!1;var e;if((e=n.tag!==3)&&!(e=n.tag!==5)&&(e=n.type,e=e!=="head"&&e!=="body"&&!s0(n.type,n.memoizedProps)),e&&(e=Rr)){if(u0(n))throw RO(),Error(ie(418));for(;e;)jO(n,e),e=Xa(e.nextSibling)}if(fP(n),n.tag===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(ie(317));e:{for(n=n.nextSibling,e=0;n;){if(n.nodeType===8){var t=n.data;if(t==="/$"){if(e===0){Rr=Xa(n.nextSibling);break e}e--}else t!=="$"&&t!=="$!"&&t!=="$?"||e++}n=n.nextSibling}Rr=null}}else Rr=Fr?Xa(n.stateNode.nextSibling):null;return!0}function RO(){for(var n=Rr;n;)n=Xa(n.nextSibling)}function $u(){Rr=Fr=null,Ft=!1}function dw(n){ki===null?ki=[n]:ki.push(n)}var F5=ga.ReactCurrentBatchConfig;function Si(n,e){if(n&&n.defaultProps){e=zt({},e),n=n.defaultProps;for(var t in n)e[t]===void 0&&(e[t]=n[t]);return e}return e}var jg=mo(null),Rg=null,bu=null,fw=null;function hw(){fw=bu=Rg=null}function pw(n){var e=jg.current;Ot(jg),n._currentValue=e}function d0(n,e,t){for(;n!==null;){var r=n.alternate;if((n.childLanes&e)!==e?(n.childLanes|=e,r!==null&&(r.childLanes|=e)):r!==null&&(r.childLanes&e)!==e&&(r.childLanes|=e),n===t)break;n=n.return}}function Mu(n,e){Rg=n,fw=bu=null,n=n.dependencies,n!==null&&n.firstContext!==null&&(n.lanes&e&&(vr=!0),n.firstContext=null)}function fi(n){var e=n._currentValue;if(fw!==n)if(n={context:n,memoizedValue:e,next:null},bu===null){if(Rg===null)throw Error(ie(308));bu=n,Rg.dependencies={lanes:0,firstContext:n}}else bu=bu.next=n;return e}var $o=null;function gw(n){$o===null?$o=[n]:$o.push(n)}function IO(n,e,t,r){var i=e.interleaved;return i===null?(t.next=t,gw(e)):(t.next=i.next,i.next=t),e.interleaved=t,ta(n,r)}function ta(n,e){n.lanes|=e;var t=n.alternate;for(t!==null&&(t.lanes|=e),t=n,n=n.return;n!==null;)n.childLanes|=e,t=n.alternate,t!==null&&(t.childLanes|=e),t=n,n=n.return;return t.tag===3?t.stateNode:null}var Na=!1;function mw(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function NO(n,e){n=n.updateQueue,e.updateQueue===n&&(e.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,effects:n.effects})}function Ws(n,e){return{eventTime:n,lane:e,tag:0,payload:null,callback:null,next:null}}function qa(n,e,t){var r=n.updateQueue;if(r===null)return null;if(r=r.shared,tt&2){var i=r.pending;return i===null?e.next=e:(e.next=i.next,i.next=e),r.pending=e,ta(n,t)}
vendor: 2,535 bytes, line 38
38return i=r.interleaved,i===null?(e.next=e,gw(r)):(e.next=i.next,i.next=e),r.interleaved=e,ta(n,t)}function Kp(n,e,t){if(e=e.updateQueue,e!==null&&(e=e.shared,(t&4194240)!==0)){var r=e.lanes;r&=n.pendingLanes,t|=r,e.lanes=t,tw(n,t)}}function hP(n,e){var t=n.updateQueue,r=n.alternate;if(r!==null&&(r=r.updateQueue,t===r)){var i=null,s=null;if(t=t.firstBaseUpdate,t!==null){do{var a={eventTime:t.eventTime,lane:t.lane,tag:t.tag,payload:t.payload,callback:t.callback,next:null};s===null?i=s=a:s=s.next=a,t=t.next}while(t!==null);s===null?i=s=e:s=s.next=e}else i=s=e;t={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:r.shared,effects:r.effects},n.updateQueue=t;return}n=t.lastBaseUpdate,n===null?t.firstBaseUpdate=e:n.next=e,t.lastBaseUpdate=e}function Ig(n,e,t,r){var i=n.updateQueue;Na=!1;var s=i.firstBaseUpdate,a=i.lastBaseUpdate,o=i.shared.pending;if(o!==null){i.shared.pending=null;var l=o,u=l.next;l.next=null,a===null?s=u:a.next=u,a=l;var h=n.alternate;h!==null&&(h=h.updateQueue,o=h.lastBaseUpdate,o!==a&&(o===null?h.firstBaseUpdate=u:o.next=u,h.lastBaseUpdate=l))}if(s!==null){var f=i.baseState;a=0,h=u=l=null,o=s;do{var m=o.lane,g=o.eventTime;if((r&m)===m){h!==null&&(h=h.next={eventTime:g,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var y=n,v=o;switch(m=e,g=t,v.tag){case 1:if(y=v.payload,typeof y=="function"){f=y.call(g,f,m);break e}f=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=v.payload,m=typeof y=="function"?y.call(g,f,m):y,m==null)break e;f=zt({},f,m);break e;case 2:Na=!0}}o.callback!==null&&o.lane!==0&&(n.flags|=64,m=i.effects,m===null?i.effects=[o]:m.push(o))}else g={eventTime:g,lane:m,tag:o.tag,payload:o.payload,callback:o.callback,next:null},h===null?(u=h=g,l=f):h=h.next=g,a|=m;if(o=o.next,o===null){if(o=i.shared.pending,o===null)break;m=o,o=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(1);if(h===null&&(l=f),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=h,e=i.shared.interleaved,e!==null){i=e;do a|=i.lane,i=i.next;while(i!==e)}else s===null&&(i.shared.lanes=0);rl|=a,n.lanes=a,n.memoizedState=f}}function pP(n,e,t){if(n=e.effects,e.effects=null,n!==null)for(e=0;e<n.length;e++){var r=n[e],i=r.callback;if(i!==null){if(r.callback=null,r=t,typeof i!="function")throw Error(ie(191,i));i.call(r)}}}var FO=new IT.Component().refs;function f0(n,e,t,r){e=n.memoizedState,t=t(r,e),t=t==null?e:zt({},e,t),n.memoizedState=t,n.lanes===0&&(n.updateQueue.baseState=t)}var Vm={isMounted:function(n){return(n=n._reactInternals)?Pl(n)===n:!1}
vendor: 4,157 bytes, line 38
38,enqueueSetState:function(n,e,t){n=n._reactInternals;var r=tr(),i=Qa(n),s=Ws(r,i);s.payload=e,t!=null&&(s.callback=t),e=qa(n,s,i),e!==null&&(Ti(e,n,i,r),Kp(e,n,i))},enqueueReplaceState:function(n,e,t){n=n._reactInternals;var r=tr(),i=Qa(n),s=Ws(r,i);s.tag=1,s.payload=e,t!=null&&(s.callback=t),e=qa(n,s,i),e!==null&&(Ti(e,n,i,r),Kp(e,n,i))},enqueueForceUpdate:function(n,e){n=n._reactInternals;var t=tr(),r=Qa(n),i=Ws(t,r);i.tag=2,e!=null&&(i.callback=e),e=qa(n,i,r),e!==null&&(Ti(e,n,r,t),Kp(e,n,r))}};function gP(n,e,t,r,i,s,a){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(r,s,a):e.prototype&&e.prototype.isPureReactComponent?!Gd(t,r)||!Gd(i,s):!0}function LO(n,e,t){var r=!1,i=no,s=e.contextType;return typeof s=="object"&&s!==null?s=fi(s):(i=yr(e)?el:Gn.current,r=e.contextTypes,s=(r=r!=null)?Bu(n,i):no),e=new e(t,s),n.memoizedState=e.state!==null&&e.state!==void 0?e.state:null,e.updater=Vm,n.stateNode=e,e._reactInternals=n,r&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=i,n.__reactInternalMemoizedMaskedChildContext=s),e}function mP(n,e,t,r){n=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(t,r),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(t,r),e.state!==n&&Vm.enqueueReplaceState(e,e.state,null)}function h0(n,e,t,r){var i=n.stateNode;i.props=t,i.state=n.memoizedState,i.refs=FO,mw(n);var s=e.contextType;typeof s=="object"&&s!==null?i.context=fi(s):(s=yr(e)?el:Gn.current,i.context=Bu(n,s)),i.state=n.memoizedState,s=e.getDerivedStateFromProps,typeof s=="function"&&(f0(n,e,s,t),i.state=n.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(e=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),e!==i.state&&Vm.enqueueReplaceState(i,i.state,null),Ig(n,t,i,r),i.state=n.memoizedState),typeof i.componentDidMount=="function"&&(n.flags|=4194308)}function Qc(n,e,t){if(n=t.ref,n!==null&&typeof n!="function"&&typeof n!="object"){if(t._owner){if(t=t._owner,t){if(t.tag!==1)throw Error(ie(309));var r=t.stateNode}if(!r)throw Error(ie(147,n));var i=r,s=""+n;return e!==null&&e.ref!==null&&typeof e.ref=="function"&&e.ref._stringRef===s?e.ref:(e=function(a){var o=i.refs;o===FO&&(o=i.refs={}),a===null?delete o[s]:o[s]=a},e._stringRef=s,e)}if(typeof n!="string")throw Error(ie(284));if(!t._owner)throw Error(ie(290,n))}return n}function sp(n,e){throw n=Object.prototype.toString.call(e),Error(ie(31,n==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":n))}function vP(n){var e=n._init;return e(n._payload)}function BO(n){function e(_,S){if(n){var w=_.deletions;w===null?(_.deletions=[S],_.flags|=16):w.push(S)}}function t(_,S){if(!n)return null;for(;S!==null;)e(_,S),S=S.sibling;return null}function r(_,S){for(_=new Map;S!==null;)S.key!==null?_.set(S.key,S):_.set(S.index,S),S=S.sibling;return _}function i(_,S){return _=Za(_,S),_.index=0,_.sibling=null,_}function s(_,S,w){return _.index=w,n?(w=_.alternate,w!==null?(w=w.index,w<S?(_.flags|=2,S):w):(_.flags|=2,S)):(_.flags|=1048576,S)}function a(_){return n&&_.alternate===null&&(_.flags|=2),_}function o(_,S,w,k){return S===null||S.tag!==6?(S=Oy(w,_.mode,k),S.return=_,S):(S=i(S,w),S.return=_,S)}function l(_,S,w,k){var P=w.type;return P===cu?h(_,S,w.props.children,k,w.key):S!==null&&(S.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===Ia&&vP(P)===S.type)?(k=i(S,w.props),k.ref=Qc(_,S,w),k.return=_,k):(k=ng(w.type,w.key,w.props,null,_.mode,k),k.ref=Qc(_,S,w),k.return=_,k)}function u(_,S,w,k){return S===null||S.tag!==4||S.stateNode.containerInfo!==w.containerInfo||S.stateNode.implementation!==w.implementation?(S=Ay(w,_.mode,k),S.return=_,S):(S=i(S,w.children||[]),S.return=_,S)}function h(_,S,w,k,P){return S===null||S.tag!==7?(S=qo(w,_.mode,k,P),S.return=_,S):(S=i(S,w),S.return=_,S)}function f(_,S,w){if(typeof S=="string"&&S!==""||typeof S=="number")return S=Oy(""+S,_.mode,w
vendor: 25,346 bytes, lines 38-40
38),S.return=_,S;if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Xh:return w=ng(S.type,S.key,S.props,null,_.mode,w),w.ref=Qc(_,null,S),w.return=_,w;case uu:return S=Ay(S,_.mode,w),S.return=_,S;case Ia:var k=S._init;return f(_,k(S._payload),w)}if(dd(S)||Uc(S))return S=qo(S,_.mode,w,null),S.return=_,S;sp(_,S)}return null}function m(_,S,w,k){var P=S!==null?S.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return P!==null?null:o(_,S,""+w,k);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Xh:return w.key===P?l(_,S,w,k):null;case uu:return w.key===P?u(_,S,w,k):null;case Ia:return P=w._init,m(_,S,P(w._payload),k)}if(dd(w)||Uc(w))return P!==null?null:h(_,S,w,k,null);sp(_,w)}return null}function g(_,S,w,k,P){if(typeof k=="string"&&k!==""||typeof k=="number")return _=_.get(w)||null,o(S,_,""+k,P);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case Xh:return _=_.get(k.key===null?w:k.key)||null,l(S,_,k,P);case uu:return _=_.get(k.key===null?w:k.key)||null,u(S,_,k,P);case Ia:var j=k._init;return g(_,S,w,j(k._payload),P)}if(dd(k)||Uc(k))return _=_.get(w)||null,h(S,_,k,P,null);sp(S,k)}return null}function y(_,S,w,k){for(var P=null,j=null,A=S,M=S=0,L=null;A!==null&&M<w.length;M++){A.index>M?(L=A,A=null):L=A.sibling;var I=m(_,A,w[M],k);if(I===null){A===null&&(A=L);break}n&&A&&I.alternate===null&&e(_,A),S=s(I,S,M),j===null?P=I:j.sibling=I,j=I,A=L}if(M===w.length)return t(_,A),Ft&&To(_,M),P;if(A===null){for(;M<w.length;M++)A=f(_,w[M],k),A!==null&&(S=s(A,S,M),j===null?P=A:j.sibling=A,j=A);return Ft&&To(_,M),P}for(A=r(_,A);M<w.length;M++)L=g(A,_,M,w[M],k),L!==null&&(n&&L.alternate!==null&&A.delete(L.key===null?M:L.key),S=s(L,S,M),j===null?P=L:j.sibling=L,j=L);return n&&A.forEach(function(V){return e(_,V)}),Ft&&To(_,M),P}function v(_,S,w,k){var P=Uc(w);if(typeof P!="function")throw Error(ie(150));if(w=P.call(w),w==null)throw Error(ie(151));for(var j=P=null,A=S,M=S=0,L=null,I=w.next();A!==null&&!I.done;M++,I=w.next()){A.index>M?(L=A,A=null):L=A.sibling;var V=m(_,A,I.value,k);if(V===null){A===null&&(A=L);break}n&&A&&V.alternate===null&&e(_,A),S=s(V,S,M),j===null?P=V:j.sibling=V,j=V,A=L}if(I.done)return t(_,A),Ft&&To(_,M),P;if(A===null){for(;!I.done;M++,I=w.next())I=f(_,I.value,k),I!==null&&(S=s(I,S,M),j===null?P=I:j.sibling=I,j=I);return Ft&&To(_,M),P}for(A=r(_,A);!I.done;M++,I=w.next())I=g(A,_,M,I.value,k),I!==null&&(n&&I.alternate!==null&&A.delete(I.key===null?M:I.key),S=s(I,S,M),j===null?P=I:j.sibling=I,j=I);return n&&A.forEach(function(Q){return e(_,Q)}),Ft&&To(_,M),P}function x(_,S,w,k){if(typeof w=="object"&&w!==null&&w.type===cu&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case Xh:e:{for(var P=w.key,j=S;j!==null;){if(j.key===P){if(P=w.type,P===cu){if(j.tag===7){t(_,j.sibling),S=i(j,w.props.children),S.return=_,_=S;break e}}else if(j.elementType===P||typeof P=="object"&&P!==null&&P.$$typeof===Ia&&vP(P)===j.type){t(_,j.sibling),S=i(j,w.props),S.ref=Qc(_,j,w),S.return=_,_=S;break e}t(_,j);break}else e(_,j);j=j.sibling}w.type===cu?(S=qo(w.props.children,_.mode,k,w.key),S.return=_,_=S):(k=ng(w.type,w.key,w.props,null,_.mode,k),k.ref=Qc(_,S,w),k.return=_,_=k)}return a(_);case uu:e:{for(j=w.key;S!==null;){if(S.key===j)if(S.tag===4&&S.stateNode.containerInfo===w.containerInfo&&S.stateNode.implementation===w.implementation){t(_,S.sibling),S=i(S,w.children||[]),S.return=_,_=S;break e}else{t(_,S);break}else e(_,S);S=S.sibling}S=Ay(w,_.mode,k),S.return=_,_=S}return a(_);case Ia:return j=w._init,x(_,S,j(w._payload),k)}if(dd(w))return y(_,S,w,k);if(Uc(w))return v(_,S,w,k);sp(_,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,S!==null&&S.tag===6?(t(_,S.sibling),S=i(S,w),S.return=_,_=S):(t(_,S),S=Oy(w,_.mode,k),S.return=_,_=S),a(_)):t(_,S)}return x}var Vu=BO(!0),$O=BO(!1),Bf={},ds=mo(Bf),Qd=mo(Bf),Zd=mo(Bf);function Vo(n){if(n===Bf)throw Error(ie(174));return n}function vw(n,e){switch(Dt(Zd,e),Dt(Qd,n),Dt(ds,Bf),n=e.nodeType,n){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:W_(null,"");break;default:n=n===8?e.parentNode:e,e=n.namespaceURI||null,n=n.tagName,e=W_(e,n)}Ot(ds),Dt(ds,e)}function Yu(){Ot(ds),Ot(Qd),Ot(Zd)}function VO(n){Vo(Zd.current);var e=Vo(ds.current),t=W_(e,n.type);e!==t&&(Dt(Qd,n),Dt(ds,t))}function bw(n){Qd.current===n&&(Ot(ds),Ot(Qd))}var Bt=mo(0);function Ng(n){for(var e=n;e!==null;){if(e.tag===13){var t=e.memoizedState;if(t!==null&&(t=t.dehydrated,t===null||t.data==="$?"||t.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break;for(;e.sibling===null;){if(e.return===null||e.return===n)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var ky=[];function yw(){for(var n=0;n<ky.length;n++)ky[n]._workInProgressVersionPrimary=null;ky.length=0}var Qp=ga.ReactCurrentDispatcher,Py=ga.ReactCurrentBatchConfig,nl=0,Ht=null,pn=null,Dn=null,Fg=!1,Ed=!1,Jd=0,L5=0;function $n(){throw Error(ie(321))}function _w(n,e){if(e===null)return!1;for(var t=0;t<e.length&&t<n.length;t++)if(!Fi(n[t],e[t]))return!1;return!0}function xw(n,e,t,r,i,s){if(nl=s,Ht=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,Qp.current=n===null||n.memoizedState===null?Y5:H5,n=t(r,i),Ed){s=0;do{if(Ed=!1,Jd=0,25<=s)throw Error(ie(301));s+=1,Dn=pn=null,e.updateQueue=null,Qp.current=z5,n=t(r,i)}while(Ed)}if(Qp.current=Lg,e=pn!==null&&pn.next!==null,nl=0,Dn=pn=Ht=null,Fg=!1,e)throw Error(ie(300));return n}function ww(){var n=Jd!==0;return Jd=0,n}function Ki(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Dn===null?Ht.memoizedState=Dn=n:Dn=Dn.next=n,Dn}function hi(){if(pn===null){var n=Ht.alternate;n=n!==null?n.memoizedState:null}else n=pn.next;var e=Dn===null?Ht.memoizedState:Dn.next;if(e!==null)Dn=e,pn=n;else{if(n===null)throw Error(ie(310));pn=n,n={memoizedState:pn.memoizedState,baseState:pn.baseState,baseQueue:pn.baseQueue,queue:pn.queue,next:null},Dn===null?Ht.memoizedState=Dn=n:Dn=Dn.next=n}return Dn}function ef(n,e){return typeof e=="function"?e(n):e}function Cy(n){var e=hi(),t=e.queue;if(t===null)throw Error(ie(311));t.lastRenderedReducer=n;var r=pn,i=r.baseQueue,s=t.pending;if(s!==null){if(i!==null){var a=i.next;i.next=s.next,s.next=a}r.baseQueue=i=s,t.pending=null}if(i!==null){s=i.next,r=r.baseState;var o=a=null,l=null,u=s;do{var h=u.lane;if((nl&h)===h)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:n(r,u.action);else{var f={lane:h,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(o=l=f,a=r):l=l.next=f,Ht.lanes|=h,rl|=h}u=u.next}while(u!==null&&u!==s);l===null?a=r:l.next=o,Fi(r,e.memoizedState)||(vr=!0),e.memoizedState=r,e.baseState=a,e.baseQueue=l,t.lastRenderedState=r}if(n=t.interleaved,n!==null){i=n;do s=i.lane,Ht.lanes|=s,rl|=s,i=i.next;while(i!==n)}else i===null&&(t.lanes=0);return[e.memoizedState,t.dispatch]}function Ey(n){var e=hi(),t=e.queue;if(t===null)throw Error(ie(311));t.lastRenderedReducer=n;var r=t.dispatch,i=t.pending,s=e.memoizedState;if(i!==null){t.pending=null;var a=i=i.next;do s=n(s,a.action),a=a.next;while(a!==i);Fi(s,e.memoizedState)||(vr=!0),e.memoizedState=s,e.baseQueue===null&&(e.baseState=s),t.lastRenderedState=s}return[s,r]}function YO(){}function HO(n,e){var t=Ht,r=hi(),i=e(),s=!Fi(r.memoizedState,i);if(s&&(r.memoizedState=i,vr=!0),r=r.queue,Sw(UO.bind(null,t,r,n),[n]),r.getSnapshot!==e||s||Dn!==null&&Dn.memoizedState.tag&1){if(t.flags|=2048,tf(9,WO.bind(null,t,r,i,e),void 0,null),kn===null)throw Error(ie(349));nl&30||zO(t,e,i)}return i}function zO(n,e,t){n.flags|=16384,n={getSnapshot:e,value:t},e=Ht.updateQueue,e===null?(e={lastEffect:null,stores:null},Ht.updateQueue=e,e.stores=[n]):(t=e.stores,t===null?e.stores=[n]:t.push(n))}function WO(n,e,t,r){e.value=t,e.getSnapshot=r,GO(e)&&XO(n)}function UO(n,e,t){return t(function(){GO(e)&&XO(n)})}function GO(n){var e=n.getSnapshot;n=n.value;try{var t=e();return!Fi(n,t)}catch{return!0}}function XO(n){var e=ta(n,1);e!==null&&Ti(e,n,1,-1)}function bP(n){var e=Ki();return typeof n=="function"&&(n=n()),e.memoizedState=e.baseState=n,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ef,lastRenderedState:n},e.queue=n,n=n.dispatch=V5.bind(null,Ht,n),[e.memoizedState,n]}function tf(n,e,t,r){return n={tag:n,create:e,destroy:t,deps:r,next:null},e=Ht.updateQueue,e===null?(e={lastEffect:null,stores:null},Ht.updateQueue=e,e.lastEffect=n.next=n):(t=e.lastEffect,t===null?e.lastEffect=n.next=n:(r=t.next,t.next=n,n.next=r,e.lastEffect=n)),n}function qO(){return hi().memoizedState}function Zp(n,e,t,r){var i=Ki();Ht.flags|=n,i.memoizedState=tf(1|e,t,void 0,r===void 0?null:r)}function Ym(n,e,t,r){var i=hi();r=r===void 0?null:r;var s=void 0;if(pn!==null){var a=pn.memoizedState;if(s=a.destroy,r!==null&&_w(r,a.deps)){i.memoizedState=tf(e,t,s,r);return}}Ht.flags|=n,i.memoizedState=tf(1|e,t,s,r)}function yP(n,e){return Zp(8390656,8,n,e)}function Sw(n,e){return Ym(2048,8,n,e)}function KO(n,e){return Ym(4,2,n,e)}function QO(n,e){return Ym(4,4,n,e)}function ZO(n,e){if(typeof e=="function")return n=n(),e(n),function(){e(null)};if(e!=null)return n=n(),e.current=n,function(){e.current=null}}function JO(n,e,t){return t=t!=null?t.concat([n]):null,Ym(4,4,ZO.bind(null,e,n),t)}function Dw(){}function eA(n,e){var t=hi();e=e===void 0?null:e;var r=t.memoizedState;return r!==null&&e!==null&&_w(e,r[1])?r[0]:(t.memoizedState=[n,e],n)}function tA(n,e){var t=hi();e=e===void 0?null:e;var r=t.memoizedState;return r!==null&&e!==null&&_w(e,r[1])?r[0]:(n=n(),t.memoizedState=[n,e],n)}function nA(n,e,t){return nl&21?(Fi(t,e)||(t=sO(),Ht.lanes|=t,rl|=t,n.baseState=!0),e):(n.baseState&&(n.baseState=!1,vr=!0),n.memoizedState=t)}function B5(n,e){var t=mt;mt=t!==0&&4>t?t:4,n(!0);var r=Py.transition;Py.transition={};try{n(!1),e()}finally{mt=t,Py.transition=r}}function rA(){return hi().memoizedState}function $5(n,e,t){var r=Qa(n);if(t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null},iA(n))sA(e,t);else if(t=IO(n,e,t,r),t!==null){var i=tr();Ti(t,n,r,i),aA(t,e,r)}}function V5(n,e,t){var r=Qa(n),i={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(iA(n))sA(e,i);else{var s=n.alternate;if(n.lanes===0&&(s===null||s.lanes===0)&&(s=e.lastRenderedReducer,s!==null))try{var a=e.lastRenderedState,o=s(a,t);if(i.hasEagerState=!0,i.eagerState=o,Fi(o,a)){var l=e.interleaved;l===null?(i.next=i,gw(e)):(i.next=l.next,l.next=i),e.interleaved=i;return}}catch{}finally{}t=IO(n,e,i,r),t!==null&&(i=tr(),Ti(t,n,r,i),aA(t,e,r))}}function iA(n){var e=n.alternate;return n===Ht||e!==null&&e===Ht}function sA(n,e){Ed=Fg=!0;var t=n.pending;t===null?e.next=e:(e.next=t.next,t.next=e),n.pending=e}function aA(n,e,t){if(t&4194240){var r=e.lanes;r&=n.pendingLanes,t|=r,e.lanes=t,tw(n,t)}}var Lg={readContext:fi,useCallback:$n,useContext:$n,useEffect:$n,useImperativeHandle:$n,useInsertionEffect:$n,useLayoutEffect:$n,useMemo:$n,useReducer:$n,useRef:$n,useState:$n,useDebugValue:$n,useDeferredValue:$n,useTransition:$n,useMutableSource:$n,useSyncExternalStore:$n,useId:$n,unstable_isNewReconciler:!1},Y5={readContext:fi,useCallback:function(n,e){return Ki().memoizedState=[n,e===void 0?null:e],n},useContext:fi,useEffect:yP,useImperativeHandle:function(n,e,t){return t=t!=null?t.concat([n]):null,Zp(4194308,4,ZO.bind(null,e,n),t)},useLayoutEffect:function(n,e){return Zp(4194308,4,n,e)},useInsertionEffect:function(n,e){return Zp(4,2,n,e)},useMemo:function(n,e){var t=Ki();return e=e===void 0?null:e,n=n(),t.memoizedState=[n,e],n},useReducer:function(n,e,t){var r=Ki();return e=t!==void 0?t(e):e,r.memoizedState=r.baseState=e,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:e},r.queue=n,n=n.dispatch=$5.bind(null,Ht,n),[r.memoizedState,n]},useRef:function(n){var e=Ki();return n={current:n},e.memoizedState=n},useState:bP,useDebugValue:Dw,useDeferredValue:function(n){return Ki().memoizedState=n},useTransition:function(){var n=bP(!1),e=n[0];return n=B5.bind(null,n[1]),Ki().memoizedState=n,[e,n]},useMutableSource:function(){},useSyncExternalStore:function(n,e,t){var r=Ht,i=Ki();if(Ft){if(t===void 0)throw Error(ie(407));t=t()}else{if(t=e(),kn===null)throw Error(ie(349));nl&30||zO(r,e,t)}i.memoizedState=t;var s={value:t,getSnapshot:e};return i.queue=s,yP(UO.bind(null,r,s,n),[n]),r.flags|=2048,tf(9,WO.bind(null,r,s,t,e),void 0,null),t},useId:function(){var n=Ki(),e=kn.identifierPrefix;if(Ft){var t=Hs,r=Ys;t=(r&~(1<<32-Mi(r)-1)).toString(32)+t,e=":"+e+"R"+t,t=Jd++,0<t&&(e+="H"+t.toString(32)),e+=":"}else t=L5++,e=":"+e+"r"+t.toString(32)+":";return n.memoizedState=e},unstable_isNewReconciler:!1},H5={readContext:fi,useCallback:eA,useContext:fi,useEffect:Sw,useImperativeHandle:JO,useInsertionEffect:KO,useLayoutEffect:QO,useMemo:tA,useReducer:Cy,useRef:qO,useState:function(){return Cy(ef)},useDebugValue:Dw,useDeferredValue:function(n){var e=hi();return nA(e,pn.memoizedState,n)},useTransition:function(){var n=Cy(ef)[0],e=hi().memoizedState;return[n,e]},useMutableSource:YO,useSyncExternalStore:HO,useId:rA,unstable_isNewReconciler:!1},z5={readContext:fi,useCallback:eA,useContext:fi,useEffect:Sw,useImperativeHandle:JO,useInsertionEffect:KO,useLayoutEffect:QO,useMemo:tA,useReducer:Ey,useRef:qO,useState:function(){return Ey(ef)},useDebugValue:Dw,useDeferredValue:function(n){var e=hi();return pn===null?e.memoizedState=n:nA(e,pn.memoizedState,n)},useTransition:function(){var n=Ey(ef)[0],e=hi().memoizedState;return[n,e]},useMutableSource:YO,useSyncExternalStore:HO,useId:rA,unstable_isNewReconciler:!1};function Hu(n,e){try{var t="",r=e;do t+=bY(r),r=r.return;while(r);var i=t}catch(s){i=` 39Error generating stack: `+s.message+` 40`+s.stack}return{value:n,source:e,stack:i,digest:null}}function My(n,e,t){return{value:n,source:null,stack:t??null,digest:e??null}}function p0(n,e){try{console.error(e.value)}catch(t){setTimeout(function(){throw t})}}var W5=typeof WeakMap=="function"?WeakMap:Map;function oA(n,e,t){t=Ws(-1,t),t.tag=3,t.payload={element:null};var r=e.value;return t.callback=function(){$g||($g=!0,D0=r),p0(n,e)},t}function lA(n,e,t){t=Ws(-1,t),t.tag=3;var r=n.type.getDerivedStateFromError;if(typeof r=="function"){var i=e.value;t.payload=function(){return r(i)},t.callback=function(){p0(n,e)}}var s=n.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(t.callback=function(){p0(n,e),typeof r!="function"&&(Ka===null?Ka=new Set([this]):Ka.add(this));var a=e.stack;this.componentDidCatch(e.value,{componentStack:a!==null?a:""})}),t}function _P(n,e,t){var r=n.pingCache;if(r===null){r=n.pingCache=new W5;var i=new Set;r.set(e,i)}else i=r.get(e),i===void 0&&(i=new Set,r.set(e,i));i.has(t)||(i.add(t),n=sH.bind(null,n,e,t),e.then(n,n))}function xP(n){do{var e;if((e=n.tag===13)&&(e=n.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return n;n=n.return}while(n!==null);return null}function wP(n,e,t,r,i){return n.mode&1?(n.flags|=65536,n.lanes=i,n):(n===e?n.flags|=65536:(n.flags|=128,t.flags|=131072,t.flags&=-52805,t.tag===1&&(t.alternate===null?t.tag=17:(e=Ws(-1,1),e.tag=2,qa(t,e,1))),t.lanes|=1),n)}var U5=ga.ReactCurrentOwner,vr=!1;function Qn(n,e,t,r){e.child=n===null?$O(e,null,t,r):Vu(e,n.child,t,r)}function SP(n,e,t,r,i){t=t.render;var s=e.ref;return Mu(e,i),r=xw(n,e,t,r,s,i),t=ww(),n!==null&&!vr?(e.updateQueue=n.updateQueue,e.flags&=-2053,n.lanes&=~i,na(n,e,i)):(Ft&&t&&uw(e),e.flags|=1,Qn(n,e,r,i),e.child)}function DP(n,e,t,r,i){if(n===null){var s=t.type;return typeof s=="function"&&!Aw(s)&&s.defaultProps===void 0&&t.compare===null&&t.defaultProps===void 0?(e.tag=15,e.type=s,uA(n,e,s,r,i)):(n=ng(t.type,null,r,e,e.mode,i),n.ref=e.ref,n.return=e,e.child=n)}if(s=n.child,!(n.lanes&i)){var a=s.memoizedProps;if(t=t.compare,t=t!==null?t:Gd,t(a,r)&&n.ref===e.ref)return na(n,e,i)}return e.flags|=1,n=Za(s,r),n.ref=e.ref,n.return=e,e.child=n}function uA(n,e,t,r,i){if(n!==null){var s=n.memoizedProps;if(Gd(s,r)&&n.ref===e.ref)if(vr=!1,e.pendingProps=r=s,(n.lanes&i)!==0)n.flags&131072&&(vr=!0);else return e.lanes=n.lanes,na(n,e,i)}return g0(n,e,t,r,i)}function cA(n,e,t){var r=e.pendingProps,i=r.children,s=n!==null?n.memoizedState:null;if(r.mode==="hidden")if(!(e.mode&1))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},Dt(_u,Or),Or|=t;else{if(!(t&1073741824))return n=s!==null?s.baseLanes|t:t,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:n,cachePool:null,transitions:null},e.updateQueue=null,Dt(_u,Or),Or|=n,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:t,Dt(_u,Or),Or|=r}else s!==null?(r=s.baseLanes|t,e.memoizedState=null):r=t,Dt(_u,Or),Or|=r;return Qn(n,e,i,t),e.child}function dA(n,e){var t=e.ref;(n===null&&t!==null||n!==null&&n.ref!==t)&&(e.flags|=512,e.flags|=2097152)}function g0(n,e,t,r,i){var s=yr(t)?el:Gn.current;return s=Bu(e,s),Mu(e,i),t=xw(n,e,t,r,s,i),r=ww(),n!==null&&!vr?(e.updateQueue=n.updateQueue,e.flags&=-2053,n.lanes&=~i,na(n,e,i)):(Ft&&r&&uw(e),e.flags|=1,Qn(n,e,t,i),e.child)}function kP(n,e,t,r,i){if(yr(t)){var s=!0;Tg(e)}else s=!1;if(Mu(e,i),e.stateNode===null)Jp(n,e),LO(e,t,r),h0(e,t,r,i),r=!0;else if(n===null){var a=e.stateNode,o=e.memoizedProps;a.props=o;var l=a.context,u=t.contextType;typeof u=="object"&&u!==null?u=fi(u):(u=yr(t)?el:Gn.current,u=Bu(e,u));var h=t.getDerivedStateFromProps,f=typeof h=="function"||typeof a.getSnapshotBeforeUpdate=="function";f||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(o!==r||l!==u)&&mP(e,a,r,u),Na=!1;var m=e.memoizedState;a.state=m,Ig(e,r,a,i),l=e.memoizedState,o!==r||m!==l||br.current||Na?(typeof h=="function"&&(f0(e,t,h,r),l=e.memoizedState),(o=Na||gP(e,t,o,r,m,l,u))?(f||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(e.flags|=4194308)):(typeof a.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=r,e.memoizedState=l),a.props=r,a.state=l,a.context=u,r=o):(typeof a.componentDidMount=="function"&&(e.flags|=4194308),r=!1)}else{a=e.stateNode,NO(n,e),o=e.memoizedProps,u=e.type===e.elementType?o:Si(e.type,o),a.props=u,f=e.pendingProps,m=a.context,l=t.contextType,typeof l=="object"&&l!==null?l=fi(l):(l=yr(t)?el:Gn.current,l=Bu(e,l));var g=t.getDerivedStateFromProps;(h=typeof g=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(o!==f||m!==l)&&mP(e,a,r,l),Na=!1,m=e.memoizedState,a.state=m,Ig(e,r,a,i);var y=e.memoizedState;o!==f||m!==y||br.current||Na?(typeof g=="function"&&(f0(e,t,g,r),y=e.memoizedState),(u=Na||gP(e,t,u,r,m,y,l)||!1)?(h||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,y,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,y,l)),typeof a.componentDidUpdate=="function"&&(e.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof a.componentDidUpdate!="function"||o===n.memoizedProps&&m===n.memoizedState||(e.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||o===n.memoizedProps&&m===n.memoizedState||(e.flags|=1024),e.memoizedProps=r,e.memoizedState=y),a.props=r,a.state=y,a.context=l,r=u):(typeof a.componentDidUpdate!="function"||o===n.memoizedProps&&m===n.memoizedState||(e.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||o===n.memoizedProps&&m===n.memoizedState||(e.flags|=1024),r=!1)}return m0(n,e,t,r,s,i)}function m0(n,e,t,r,i,s){dA(n,e);var a=(e.flags&128)!==0;if(!r&&!a)return i&&cP(e,t,!1),na(n,e,s);r=e.stateNode,U5.current=e;var o=a&&typeof t.getDerivedStateFromError!="function"?null:r.render();return e.flags|=1,n!==null&&a?(e.child=Vu(e,n.child,null,s),e.child=Vu(e,null,o,s)):Qn(n,e,o,s),e.memoizedState=r.state,i&&cP(e,t,!0),e.child}function fA(n){var e=n.stateNode;e.pendingContext?uP(n,e.pendingContext,e.pendingContext!==e.context):e.context&&uP(n,e.context,!1),vw(n,e.containerInfo)}function PP(n,e,t,r,i){return $u(),dw(i),e.flags|=256,Qn(n,e,t,r),e.child}var v0={dehydrated:null,treeContext:null,retryLane:0};function b0(n){return{baseLanes:n,cachePool:null,transitions:null}}function hA(n,e,t){var r=e.pendingProps,i=Bt.current,s=!1,a=(e.flags&128)!==0,o;if((o=a)||(o=n!==null&&n.memoizedState===null?!1:(i&2)!==0),o?(s=!0,e.flags&=-129):(n===null||n.memoizedState!==null)&&(i|=1),Dt(Bt,i&1),n===null)return c0(e),n=e.memoizedState,n!==null&&(n=n.dehydrated,n!==null)?(e.mode&1?n.data==="$!"?e.lanes=8:e.lanes=1073741824:e.lanes=1,null):(a=r.children,n=r.fallback,s?(r=e.mode,s=e.child,a={mode:"hidden",children:a},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=a):s=Wm(a,r,0,null),n=qo(n,r,t,null),s.return=e,n.return=e,s.sibling=n,e.child=s,e.child.memoizedState=b0(t),e.memoizedState=v0,n):kw(e,a));if(i=n.memoizedState,i!==null&&(o=i.dehydrated,o!==null))return G5(n,e,a,r,o,i,t);if(s){s=r.fallback,a=e.mode,i=n.child,o=i.sibling;var l={mode:"hidden",children:r.children};return!(a&1)&&e.child!==i?(r=e.child,r.childLanes=0,r.pendingProps=l,e.deletions=null):(r=Za(i,l),r.subtreeFlags=i.subtreeFlags&14680064),o!==null?s=Za(o,s):(s=qo(s,a,t,null),s.flags|=2),s.return=e,r.return=e,r.sibling=s,e.child=r,r=s,s=e.child,a=n.child.memoizedState,a=a===null?b0(t):{baseLanes:a.baseLanes|t,cachePool:null,transitions:a.transitions},s.memoizedState=a,s.childLanes=n.childLanes&~t,e.memoizedState=v0,r}return s=n.child,n=s.sibling,r=Za(s,{mode:"visible",children:r.children}),!(e.mode&1)&&(r.lanes=t),r.return=e,r.sibling=null,n!==null&&(t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)),e.child=r,e.memoizedState=null,r}function kw(n,e){return e=Wm({mode:"visible",children:e},n.mode,0,null),e.return=n,n.child=e}function ap(n,e,t,r){return r!==null&&dw(r),Vu(e,n.child,null,t),n=kw(e,e.pendingProps.children),n.flags|=2,e.memoizedState=null,n}function G5(n,e,t,r,i,s,a){if(t)return e.flags&256?(e.flags&=-257,r=My(Error(ie(422))),ap(n,e,a,r)):e.memoizedState!==null?(e.child=n.child,e.flags|=128,null):(s=r.fallback,i=e.mode,r=Wm({mode:"visible",children:r.children},i,0,null),s=qo(s,i,a,null),s.flags|=2,r.return=e,s.return=e,r.sibling=s,e.child=r,e.mode&1&&Vu(e,n.child,null,a),e.child.memoizedState=b0(a),e.memoizedState=v0,s);if(!(e.mode&1))return ap(n,e,a,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var o=r.dgst;return r=o,s=Error(ie(419)),r=My(s,r,void 0),ap(n,e,a,r)}if(o=(a&n.childLanes)!==0,vr||o){if(r=kn,r!==null){switch(a&-a){case 4:i=2;break;case 16:i=8;break;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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|a)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,ta(n,i),Ti(r,n,i,-1))}return Ow(),r=My(Error(ie(421))),ap(n,e,a,r)}return i.data==="$?"?(e.flags|=128,e.child=n.child,e=aH.bind(null,n),i._reactRetry=e,null):(n=s.treeContext,Rr=Xa(i.nextSibling),Fr=e,Ft=!0,ki=null,n!==null&&(ii[si++]=Ys,ii[si++]=Hs,ii[si++]=tl,Ys=n.id,Hs=n.overflow,tl=e),e=kw(e,r.children),e.flags|=4096,e)}function CP(n,e,t){n.lanes|=e;var r=n.alternate;r!==null&&(r.lanes|=e),d0(n.return,e,t)}function Ty(n,e,t,r,i){var s=n.memoizedState;s===null?n.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:r,tail:t,tailMode:i}:(s.isBackwards=e,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=t,s.tailMode=i)}function pA(n,e,t){var r=e.pendingProps,i=r.revealOrder,s=r.tail;if(Qn(n,e,r.children,t),r=Bt.current,r&2)r=r&1|2,e.flags|=128;else{if(n!==null&&n.flags&128)e:for(n=e.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&CP(n,t,e);else if(n.tag===19)CP(n,t,e);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break e;for(;n.sibling===null;){if(n.return===null||n.return===e)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}r&=1}if(Dt(Bt,r),!(e.mode&1))e.memoizedState=null;else switch(i){case"forwards":for(t=e.child,i=null;t!==null;)n=t.alternate,n!==null&&Ng(n)===null&&(i=t),t=t.sibling;t=i,t===null?(i=e.child,e.child=null):(i=t.sibling,t.sibling=null),Ty(e,!1,i,t,s);break;case"backwards":for(t=null,i=e.child,e.child=null;i!==null;){if(n=i.alternate,n!==null&&Ng(n)===null){e.child=i;break}n=i.sibling,i.sibling=t,t=i,i=n}Ty(e,!0,t,null,s);break;case"together":Ty(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function Jp(n,e){!(e.mode&1)&&n!==null&&(n.alternate=null,e.alternate=null,e.flags|=2)}function na(n,e,t){if(n!==null&&(e.dependencies=n.dependencies),rl|=e.lanes,!(t&e.childLanes))return null;if(n!==null&&e.child!==n.child)throw Error(ie(153));if(e.child!==null){for(n=e.child,t=Za(n,n.pendingProps),e.child=t,t.return=e;n.sibling!==null;)n=n.sibling,t=t.sibling=Za(n,n.pendingProps),t.return=e;t.sibling=null}return e.child}function X5(n,e,t){switch(e.tag){case 3:fA(e),$u();break;case 5:VO(e);break;case 1:yr(e.type)&&Tg(e);break;case 4:vw(e,e.stateNode.containerInfo);break;
vendor: 4,414 bytes, line 40
40case 10:var r=e.type._context,i=e.memoizedProps.value;Dt(jg,r._currentValue),r._currentValue=i;break;case 13:if(r=e.memoizedState,r!==null)return r.dehydrated!==null?(Dt(Bt,Bt.current&1),e.flags|=128,null):t&e.child.childLanes?hA(n,e,t):(Dt(Bt,Bt.current&1),n=na(n,e,t),n!==null?n.sibling:null);Dt(Bt,Bt.current&1);break;case 19:if(r=(t&e.childLanes)!==0,n.flags&128){if(r)return pA(n,e,t);e.flags|=128}if(i=e.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Dt(Bt,Bt.current),r)break;return null;case 22:case 23:return e.lanes=0,cA(n,e,t)}return na(n,e,t)}var gA,y0,mA,vA;gA=function(n,e){for(var t=e.child;t!==null;){if(t.tag===5||t.tag===6)n.appendChild(t.stateNode);else if(t.tag!==4&&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;t=t.return}t.sibling.return=t.return,t=t.sibling}};y0=function(){};mA=function(n,e,t,r){var i=n.memoizedProps;if(i!==r){n=e.stateNode,Vo(ds.current);var s=null;switch(t){case"input":i=V_(n,i),r=V_(n,r),s=[];break;case"select":i=zt({},i,{value:void 0}),r=zt({},r,{value:void 0}),s=[];break;case"textarea":i=z_(n,i),r=z_(n,r),s=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(n.onclick=Eg)}U_(t,r);var a;t=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var o=i[u];for(a in o)o.hasOwnProperty(a)&&(t||(t={}),t[a]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&($d.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var l=r[u];if(o=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&l!==o&&(l!=null||o!=null))if(u==="style")if(o){for(a in o)!o.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(t||(t={}),t[a]="");for(a in l)l.hasOwnProperty(a)&&o[a]!==l[a]&&(t||(t={}),t[a]=l[a])}else t||(s||(s=[]),s.push(u,t)),t=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,o=o?o.__html:void 0,l!=null&&o!==l&&(s=s||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(s=s||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&($d.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&Mt("scroll",n),s||o===l||(s=[])):(s=s||[]).push(u,l))}t&&(s=s||[]).push("style",t);var u=s;(e.updateQueue=u)&&(e.flags|=4)}};vA=function(n,e,t,r){t!==r&&(e.flags|=4)};function Zc(n,e){if(!Ft)switch(n.tailMode){case"hidden":e=n.tail;for(var t=null;e!==null;)e.alternate!==null&&(t=e),e=e.sibling;t===null?n.tail=null:t.sibling=null;break;case"collapsed":t=n.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e||n.tail===null?n.tail=null:n.tail.sibling=null:r.sibling=null}}function Vn(n){var e=n.alternate!==null&&n.alternate.child===n.child,t=0,r=0;if(e)for(var i=n.child;i!==null;)t|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=n,i=i.sibling;else for(i=n.child;i!==null;)t|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=n,i=i.sibling;return n.subtreeFlags|=r,n.childLanes=t,e}function q5(n,e,t){var r=e.pendingProps;switch(cw(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Vn(e),null;case 1:return yr(e.type)&&Mg(),Vn(e),null;case 3:return r=e.stateNode,Yu(),Ot(br),Ot(Gn),yw(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(n===null||n.child===null)&&(ip(e)?e.flags|=4:n===null||n.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,ki!==null&&(C0(ki),ki=null))),y0(n,e),Vn(e),null;case 5:bw(e);var i=Vo(Zd.current);if(t=e.type,n!==null&&e.stateNode!=null)mA(n,e,t,r,i),n.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!r){if(e.stateNode===null)throw Error(ie(166));return Vn(e),null}if(n=Vo(ds.current),ip(e)){r=e.stateNode,t=e.type;var s=e.memoizedProps;switch(r[ts]=e,r[Kd]=s,n=(e.mode&1)!==0,t){case"dialog":Mt("cancel",r),Mt("close",r);break;case"iframe":case"object":case"embed":Mt("load",r);break;case"video":case"audio":for(i=0;i<hd.length;i++)Mt(hd[i],r);break;case"source":Mt("error",r);break;case"img":case"image":case"link":Mt("error",r),Mt("load",r);break;case"details":Mt("toggle",r);break;case"input":Nk(r,s),Mt("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Mt("invalid",r);break;case"textarea":Lk(r,s),Mt("invalid",r)}U_(t,s),i=null;for(var a in s)if(s.hasOwnProperty(a)){var o=s[a];
vendor: 17,865 bytes, line 40
40a==="children"?typeof o=="string"?r.textContent!==o&&(s.suppressHydrationWarning!==!0&&rp(r.textContent,o,n),i=["children",o]):typeof o=="number"&&r.textContent!==""+o&&(s.suppressHydrationWarning!==!0&&rp(r.textContent,o,n),i=["children",""+o]):$d.hasOwnProperty(a)&&o!=null&&a==="onScroll"&&Mt("scroll",r)}switch(t){case"input":qh(r),Fk(r,s,!0);break;case"textarea":qh(r),Bk(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=Eg)}r=i,e.updateQueue=r,r!==null&&(e.flags|=4)}else{a=i.nodeType===9?i:i.ownerDocument,n==="http://www.w3.org/1999/xhtml"&&(n=zT(t)),n==="http://www.w3.org/1999/xhtml"?t==="script"?(n=a.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild)):typeof r.is=="string"?n=a.createElement(t,{is:r.is}):(n=a.createElement(t),t==="select"&&(a=n,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):n=a.createElementNS(n,t),n[ts]=e,n[Kd]=r,gA(n,e,!1,!1),e.stateNode=n;e:{switch(a=G_(t,r),t){case"dialog":Mt("cancel",n),Mt("close",n),i=r;break;case"iframe":case"object":case"embed":Mt("load",n),i=r;break;case"video":case"audio":for(i=0;i<hd.length;i++)Mt(hd[i],n);i=r;break;case"source":Mt("error",n),i=r;break;case"img":case"image":case"link":Mt("error",n),Mt("load",n),i=r;break;case"details":Mt("toggle",n),i=r;break;case"input":Nk(n,r),i=V_(n,r),Mt("invalid",n);break;case"option":i=r;break;case"select":n._wrapperState={wasMultiple:!!r.multiple},i=zt({},r,{value:void 0}),Mt("invalid",n);break;case"textarea":Lk(n,r),i=z_(n,r),Mt("invalid",n);break;default:i=r}U_(t,i),o=i;for(s in o)if(o.hasOwnProperty(s)){var l=o[s];s==="style"?GT(n,l):s==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&WT(n,l)):s==="children"?typeof l=="string"?(t!=="textarea"||l!=="")&&Vd(n,l):typeof l=="number"&&Vd(n,""+l):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&($d.hasOwnProperty(s)?l!=null&&s==="onScroll"&&Mt("scroll",n):l!=null&&qx(n,s,l,a))}switch(t){case"input":qh(n),Fk(n,r,!1);break;case"textarea":qh(n),Bk(n);break;case"option":r.value!=null&&n.setAttribute("value",""+to(r.value));break;case"select":n.multiple=!!r.multiple,s=r.value,s!=null?ku(n,!!r.multiple,s,!1):r.defaultValue!=null&&ku(n,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(n.onclick=Eg)}switch(t){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(e.flags|=4)}e.ref!==null&&(e.flags|=512,e.flags|=2097152)}return Vn(e),null;case 6:if(n&&e.stateNode!=null)vA(n,e,n.memoizedProps,r);else{if(typeof r!="string"&&e.stateNode===null)throw Error(ie(166));if(t=Vo(Zd.current),Vo(ds.current),ip(e)){if(r=e.stateNode,t=e.memoizedProps,r[ts]=e,(s=r.nodeValue!==t)&&(n=Fr,n!==null))switch(n.tag){case 3:rp(r.nodeValue,t,(n.mode&1)!==0);break;case 5:n.memoizedProps.suppressHydrationWarning!==!0&&rp(r.nodeValue,t,(n.mode&1)!==0)}s&&(e.flags|=4)}else r=(t.nodeType===9?t:t.ownerDocument).createTextNode(r),r[ts]=e,e.stateNode=r}return Vn(e),null;case 13:if(Ot(Bt),r=e.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(Ft&&Rr!==null&&e.mode&1&&!(e.flags&128))RO(),$u(),e.flags|=98560,s=!1;else if(s=ip(e),r!==null&&r.dehydrated!==null){if(n===null){if(!s)throw Error(ie(318));if(s=e.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(ie(317));s[ts]=e}else $u(),!(e.flags&128)&&(e.memoizedState=null),e.flags|=4;Vn(e),s=!1}else ki!==null&&(C0(ki),ki=null),s=!0;if(!s)return e.flags&65536?e:null}return e.flags&128?(e.lanes=t,e):(r=r!==null,r!==(n!==null&&n.memoizedState!==null)&&r&&(e.child.flags|=8192,e.mode&1&&(n===null||Bt.current&1?mn===0&&(mn=3):Ow())),e.updateQueue!==null&&(e.flags|=4),Vn(e),null);case 4:return Yu(),y0(n,e),n===null&&Xd(e.stateNode.containerInfo),Vn(e),null;case 10:return pw(e.type._context),Vn(e),null;case 17:return yr(e.type)&&Mg(),Vn(e),null;case 19:if(Ot(Bt),s=e.memoizedState,s===null)return Vn(e),null;if(r=(e.flags&128)!==0,a=s.rendering,a===null)if(r)Zc(s,!1);else{if(mn!==0||n!==null&&n.flags&128)for(n=e.child;n!==null;){if(a=Ng(n),a!==null){for(e.flags|=128,Zc(s,!1),r=a.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),e.subtreeFlags=0,r=t,t=e.child;t!==null;)s=t,n=r,s.flags&=14680066,a=s.alternate,a===null?(s.childLanes=0,s.lanes=n,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=a.childLanes,s.lanes=a.lanes,s.child=a.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=a.memoizedProps,s.memoizedState=a.memoizedState,s.updateQueue=a.updateQueue,s.type=a.type,n=a.dependencies,s.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),t=t.sibling;return Dt(Bt,Bt.current&1|2),e.child}n=n.sibling}s.tail!==null&&tn()>zu&&(e.flags|=128,r=!0,Zc(s,!1),e.lanes=4194304)}else{if(!r)if(n=Ng(a),n!==null){if(e.flags|=128,r=!0,t=n.updateQueue,t!==null&&(e.updateQueue=t,e.flags|=4),Zc(s,!0),s.tail===null&&s.tailMode==="hidden"&&!a.alternate&&!Ft)return Vn(e),null}else 2*tn()-s.renderingStartTime>zu&&t!==1073741824&&(e.flags|=128,r=!0,Zc(s,!1),e.lanes=4194304);s.isBackwards?(a.sibling=e.child,e.child=a):(t=s.last,t!==null?t.sibling=a:e.child=a,s.last=a)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=tn(),e.sibling=null,t=Bt.current,Dt(Bt,r?t&1|2:t&1),e):(Vn(e),null);case 22:case 23:return Tw(),r=e.memoizedState!==null,n!==null&&n.memoizedState!==null!==r&&(e.flags|=8192),r&&e.mode&1?Or&1073741824&&(Vn(e),e.subtreeFlags&6&&(e.flags|=8192)):Vn(e),null;case 24:return null;case 25:return null}throw Error(ie(156,e.tag))}function K5(n,e){switch(cw(e),e.tag){case 1:return yr(e.type)&&Mg(),n=e.flags,n&65536?(e.flags=n&-65537|128,e):null;case 3:return Yu(),Ot(br),Ot(Gn),yw(),n=e.flags,n&65536&&!(n&128)?(e.flags=n&-65537|128,e):null;case 5:return bw(e),null;case 13:if(Ot(Bt),n=e.memoizedState,n!==null&&n.dehydrated!==null){if(e.alternate===null)throw Error(ie(340));$u()}return n=e.flags,n&65536?(e.flags=n&-65537|128,e):null;case 19:return Ot(Bt),null;case 4:return Yu(),null;case 10:return pw(e.type._context),null;case 22:case 23:return Tw(),null;case 24:return null;default:return null}}var op=!1,Un=!1,Q5=typeof WeakSet=="function"?WeakSet:Set,pe=null;function yu(n,e){var t=n.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){Ut(n,e,r)}else t.current=null}function _0(n,e,t){try{t()}catch(r){Ut(n,e,r)}}var EP=!1;function Z5(n,e){if(r0=kg,n=xO(),lw(n)){if("selectionStart"in n)var t={start:n.selectionStart,end:n.selectionEnd};else e:{t=(t=n.ownerDocument)&&t.defaultView||window;var r=t.getSelection&&t.getSelection();if(r&&r.rangeCount!==0){t=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{t.nodeType,s.nodeType}catch{t=null;break e}var a=0,o=-1,l=-1,u=0,h=0,f=n,m=null;t:for(;;){for(var g;f!==t||i!==0&&f.nodeType!==3||(o=a+i),f!==s||r!==0&&f.nodeType!==3||(l=a+r),f.nodeType===3&&(a+=f.nodeValue.length),(g=f.firstChild)!==null;)m=f,f=g;for(;;){if(f===n)break t;if(m===t&&++u===i&&(o=a),m===s&&++h===r&&(l=a),(g=f.nextSibling)!==null)break;f=m,m=f.parentNode}f=g}t=o===-1||l===-1?null:{start:o,end:l}}else t=null}t=t||{start:0,end:0}}else t=null;for(i0={focusedElem:n,selectionRange:t},kg=!1,pe=e;pe!==null;)if(e=pe,n=e.child,(e.subtreeFlags&1028)!==0&&n!==null)n.return=e,pe=n;else for(;pe!==null;){e=pe;try{var y=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var v=y.memoizedProps,x=y.memoizedState,_=e.stateNode,S=_.getSnapshotBeforeUpdate(e.elementType===e.type?v:Si(e.type,v),x);_.__reactInternalSnapshotBeforeUpdate=S}break;case 3:var w=e.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ie(163))}}catch(k){Ut(e,e.return,k)}if(n=e.sibling,n!==null){n.return=e.return,pe=n;break}pe=e.return}return y=EP,EP=!1,y}function Md(n,e,t){var r=e.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&n)===n){var s=i.destroy;i.destroy=void 0,s!==void 0&&_0(e,t,s)}i=i.next}while(i!==r)}}function Hm(n,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var t=e=e.next;do{if((t.tag&n)===n){var r=t.create;t.destroy=r()}t=t.next}while(t!==e)}}function x0(n){var e=n.ref;if(e!==null){var t=n.stateNode;switch(n.tag){case 5:n=t;break;default:n=t}typeof e=="function"?e(n):e.current=n}}function bA(n){var e=n.alternate;e!==null&&(n.alternate=null,bA(e)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(e=n.stateNode,e!==null&&(delete e[ts],delete e[Kd],delete e[o0],delete e[R5],delete e[I5])),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}function yA(n){return n.tag===5||n.tag===3||n.tag===4}function MP(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||yA(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function w0(n,e,t){var r=n.tag;if(r===5||r===6)n=n.stateNode,e?t.nodeType===8?t.parentNode.insertBefore(n,e):t.insertBefore(n,e):(t.nodeType===8?(e=t.parentNode,e.insertBefore(n,t)):(e=t,e.appendChild(n)),t=t._reactRootContainer,t!=null||e.onclick!==null||(e.onclick=Eg));else if(r!==4&&(n=n.child,n!==null))for(w0(n,e,t),n=n.sibling;n!==null;)w0(n,e,t),n=n.sibling}function S0(n,e,t){var r=n.tag;if(r===5||r===6)n=n.stateNode,e?t.insertBefore(n,e):t.appendChild(n);else if(r!==4&&(n=n.child,n!==null))for(S0(n,e,t),n=n.sibling;n!==null;)S0(n,e,t),n=n.sibling}var jn=null,Di=!1;function Ta(n,e,t){for(t=t.child;t!==null;)_A(n,e,t),t=t.sibling}function _A(n,e,t){if(cs&&typeof cs.onCommitFiberUnmount=="function")try{cs.onCommitFiberUnmount(Im,t)}catch{}switch(t.tag){case 5:Un||yu(t,e);case 6:var r=jn,i=Di;jn=null,Ta(n,e,t),jn=r,Di=i,jn!==null&&(Di?(n=jn,t=t.stateNode,n.nodeType===8?n.parentNode.removeChild(t):n.removeChild(t)):jn.removeChild(t.stateNode));break;case 18:jn!==null&&(Di?(n=jn,t=t.stateNode,n.nodeType===8?Sy(n.parentNode,t):n.nodeType===1&&Sy(n,t),Wd(n)):Sy(jn,t.stateNode));break;case 4:r=jn,i=Di,jn=t.stateNode.containerInfo,Di=!0,Ta(n,e,t),jn=r,Di=i;break;case 0:case 11:case 14:case 15:if(!Un&&(r=t.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,a=s.destroy;s=s.tag,a!==void 0&&(s&2||s&4)&&_0(t,e,a),i=i.next}while(i!==r)}Ta(n,e,t);break;case 1:if(!Un&&(yu(t,e),r=t.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(o){Ut(t,e,o)}Ta(n,e,t);break;case 21:Ta(n,e,t);break;case 22:t.mode&1?(Un=(r=Un)||t.memoizedState!==null,Ta(n,e,t),Un=r):Ta(n,e,t);break;default:Ta(n,e,t)}}function TP(n){var e=n.updateQueue;if(e!==null){n.updateQueue=null;var t=n.stateNode;t===null&&(t=n.stateNode=new Q5),e.forEach(function(r){var i=oH.bind(null,n,r);t.has(r)||(t.add(r),r.then(i,i))})}}function wi(n,e){var t=e.deletions;if(t!==null)for(var r=0;r<t.length;r++){var i=t[r];try{var s=n,a=e,o=a;e:for(;o!==null;){switch(o.tag){case 5:jn=o.stateNode,Di=!1;break e;case 3:jn=o.stateNode.containerInfo,Di=!0;break e;case 4:jn=o.stateNode.containerInfo,Di=!0;break e}o=o.return}if(jn===null)throw Error(ie(160));_A(s,a,i),jn=null,Di=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(u){Ut(i,e,u)}}if(e.subtreeFlags&12854)for(e=e.child;e!==null;)xA(e,n),e=e.sibling}function xA(n,e){var t=n.alternate,r=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:if(wi(e,n),Ui(n),r&4){try{Md(3,n,n.return),Hm(3,n)}catch(v){Ut(n,n.return,v)}try{Md(5,n,n.return)}catch(v){Ut(n,n.return,v)}}break;case 1:wi(e,n),Ui(n),r&512&&t!==null&&yu(t,t.return);break;case 5:if(wi(e,n),Ui(n),r&512&&t!==null&&yu(t,t.return),n.flags&32){var i=n.stateNode;try{Vd(i,"")}catch(v){Ut(n,n.return,v)}}if(r&4&&(i=n.stateNode,i!=null)){var s=n.memoizedProps,a=t!==null?t.memoizedProps:s,o=n.type,l=n.updateQueue;if(n.updateQueue=null,l!==null)try{o==="input"&&s.type==="radio"&&s.name!=null&&YT(i,s),G_(o,a);var u=G_(o,s);for(a=0;a<l.length;a+=2){var h=l[a],f=l[a+1];h==="style"?GT(i,f):h==="dangerouslySetInnerHTML"?WT(i,f):h==="children"?Vd(i,f):qx(i,h,f,u)}switch(o){case"input":Y_(i,s);break;case"textarea":HT(i,s);break;case"select":var m=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var g=s.value;g!=null?ku(i,!!s.multiple,g,!1):m!==!!s.multiple&&(s.defaultValue!=null?ku(i,!!s.multiple,s.defaultValue,!0):ku(i,!!s.multiple,s.multiple?[]:"",!1))}i[Kd]=s}catch(v){Ut(n,n.return,v)}}break;case 6:if(wi(e,n),Ui(n),r&4){if(n.stateNode===null)throw Error(ie(162));i=n.stateNode,s=n.memoizedProps;try{i.nodeValue=s}catch(v){Ut(n,n.return,v)}}break;case 3:if(wi(e,n),Ui(n),r&4&&t!==null&&t.memoizedState.isDehydrated)try{Wd(e.containerInfo)}catch(v){Ut(n,n.return,v)}break;case 4:wi(e,n),Ui(n);break;case 13:wi(e,n),Ui(n),i=n.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(Ew=tn())),r&4&&TP(n);break;case 22:if(h=t!==null&&t.memoizedState!==null,n.mode&1?(Un=(u=Un)||h,wi(e,n),Un=u):wi(e,n),Ui(n),r&8192){if(u=n.memoizedState!==null,(n.stateNode.isHidden=u)&&!h&&n.mode&1)for(pe=n,h=n.child;h!==null;){for(f=pe=h;pe!==null;){switch(m=pe,g=m.child,m.tag){case 0:case 11:case 14:case 15:Md(4,m,m.return);break;case 1:yu(m,m.return);var y=m.stateNode;if(typeof y.componentWillUnmount=="function"){r=m,t=m.return;try{e=r,y.props=e.memoizedProps,y.state=e.memoizedState,y.componentWillUnmount()}catch(v){Ut(r,t,v)}}break;case 5:yu(m,m.return);break;case 22:if(m.memoizedState!==null){AP(f);continue}}g!==null?(g.return=m,pe=g):AP(f)}h=h.sibling}e:for(h=null,f=n;;){if(f.tag===5){if(h===null){h=f;try{i=f.stateNode,u?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(o=f.stateNode,l=f.memoizedProps.style,a=l!=null&&l.hasOwnProperty("display")?l.display:null,o.style.display=UT("display",a))}catch(v){Ut(n,n.return,v)}}}else if(f.tag===6){if(h===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(v){Ut(n,n.return,v)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===n)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===n)break e;for(;f.sibling===null;){if(f.return===null||f.return===n)break e;h===f&&(h=null),f=f.return}h===f&&(h=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:wi(e,n),Ui(n),r&4&&TP(n);break;case 21:break;default:wi(e,n),Ui(n)}}function Ui(n){var e=n.flags;if(e&2){try{e:{for(var t=n.return;t!==null;){if(yA(t)){var r=t;break e}t=t.return}throw Error(ie(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Vd(i,""),r.flags&=-33);var s=MP(n);S0(n,s,i);break;case 3:case 4:var a=r.stateNode.containerInfo,o=MP(n);w0(n,o,a);break;default:throw Error(ie(161))}}catch(l){Ut(n,n.return,l)}n.flags&=-3}e&4096&&(n.flags&=-4097)}function J5(n,e,t){pe=n,wA(n)}function wA(n,e,t){for(var r=(n.mode&1)!==0;pe!==null;){var i=pe,s=i.child;if(i.tag===22&&r){var a=i.memoizedState!==null||op;if(!a){var o=i.alternate,l=o!==null&&o.memoizedState!==null||Un;o=op;var u=Un;if(op=a,(Un=l)&&!u)for(pe=i;pe!==null;)a=pe,l=a.child,a.tag===22&&a.memoizedState!==null?jP(i):l!==null?(l.return=a,pe=l):jP(i);for(;s!==null;)pe=s,wA(s),s=s.sibling;pe=i,op=o,Un=u}OP(n)}else i.subtreeFlags&8772&&s!==null?(s.return=i,pe=s):OP(n)}}function OP(n){for(;pe!==null;){var e=pe;if(e.flags&8772){var t=e.alternate;try{if(e.flags&8772)switch(e.tag){case 0:case 11:case 15:Un||Hm(5,e);break;case 1:var r=e.stateNode;if(e.flags&4&&!Un)if(t===null)r.componentDidMount();else{var i=e.elementType===e.type?t.memoizedProps:Si(e.type,t.memoizedProps);r.componentDidUpdate(i,t.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=e.updateQueue;s!==null&&pP(e,s,r);break;case 3:var a=e.updateQueue;if(a!==null){if(t=null,e.child!==null)switch(e.child.tag){case 5:t=e.child.stateNode;break;case 1:t=e.child.stateNode}pP(e,a,t)}break;case 5:var o=e.stateNode;if(t===null&&e.flags&4){t=o;var l=e.memoizedProps;switch(e.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&t.focus();break;case"img":l.src&&(t.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(e.memoizedState===null){var u=e.alternate;if(u!==null){var h=u.memoizedState;if(h!==null){var f=h.dehydrated;f!==null&&Wd(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(ie(163))}Un||e.flags&512&&x0(e)}catch(m){Ut(e,e.return,m)}}if(e===n){pe=null;break}if(t=e.sibling,t!==null){t.return=e.return,pe=t;break}pe=e.return}}function AP(n){for(;pe!==null;){var e=pe;if(e===n){pe=null;break}var t=e.sibling;if(t!==null){t.return=e.return,pe=t;break}pe=e.return}}function jP(n){for(;pe!==null;){var e=pe;try{switch(e.tag){case 0:case 11:case 15:var t=e.return;try{Hm(4,e)}catch(l){Ut(e,t,l)}break;case 1:var r=e.stateNode;if(typeof r.componentDidMount=="function"){var i=e.return;try{r.componentDidMount()}catch(l){Ut(e,i,l)}}var s=e.return;try{x0(e)}catch(l){Ut(e,s,l)}break;case 5:var a=e.return;try{x0(e)}catch(l){Ut(e,a,l)}}}catch(l){Ut(e,e.return,l)}if(e===n){pe=null;break}var o=e.sibling;if(o!==null){o.return=e.return,pe=o;break}pe=e.return}}var eH=Math.ceil,Bg=ga.ReactCurrentDispatcher,Pw=ga.ReactCurrentOwner,ci=ga.ReactCurrentBatchConfig,tt=0,kn=null,ln=null,In=0,Or=0,_u=mo(0),mn=0,nf=null,rl=0,zm=0,Cw=0,Td=null,pr=null,Ew=0,zu=1/0,Bs=null,$g=!1,D0=null,Ka=null,lp=!1,Ya=null,Vg=0,Od=0,k0=null,eg=-1,tg=0;function tr(){return tt&6?tn():eg!==-1?eg:eg=tn()}function Qa(n){return n.mode&1?tt&2&&In!==0?In&-In:F5.transition!==null?(tg===0&&(tg=sO()),tg):(n=mt,n!==0||(n=window.event,n=n===void 0?16:fO(n.type)),n):1}function Ti(n,e,t,r){if(50<Od)throw Od=0,k0=null,Error(ie(185));
vendor: 6,141 bytes, line 40
40Nf(n,t,r),(!(tt&2)||n!==kn)&&(n===kn&&(!(tt&2)&&(zm|=t),mn===4&&$a(n,In)),_r(n,r),t===1&&tt===0&&!(e.mode&1)&&(zu=tn()+500,$m&&vo()))}function _r(n,e){var t=n.callbackNode;FY(n,e);var r=Dg(n,n===kn?In:0);if(r===0)t!==null&&Yk(t),n.callbackNode=null,n.callbackPriority=0;else if(e=r&-r,n.callbackPriority!==e){if(t!=null&&Yk(t),e===1)n.tag===0?N5(RP.bind(null,n)):OO(RP.bind(null,n)),A5(function(){!(tt&6)&&vo()}),t=null;else{switch(aO(r)){case 1:t=ew;break;case 4:t=rO;break;case 16:t=Sg;break;case 536870912:t=iO;break;default:t=Sg}t=TA(t,SA.bind(null,n))}n.callbackPriority=e,n.callbackNode=t}}function SA(n,e){if(eg=-1,tg=0,tt&6)throw Error(ie(327));var t=n.callbackNode;if(Tu()&&n.callbackNode!==t)return null;var r=Dg(n,n===kn?In:0);if(r===0)return null;if(r&30||r&n.expiredLanes||e)e=Yg(n,r);else{e=r;var i=tt;tt|=2;var s=kA();(kn!==n||In!==e)&&(Bs=null,zu=tn()+500,Xo(n,e));do try{rH();break}catch(o){DA(n,o)}while(1);hw(),Bg.current=s,tt=i,ln!==null?e=0:(kn=null,In=0,e=mn)}if(e!==0){if(e===2&&(i=Z_(n),i!==0&&(r=i,e=P0(n,i))),e===1)throw t=nf,Xo(n,0),$a(n,r),_r(n,tn()),t;if(e===6)$a(n,r);else{if(i=n.current.alternate,!(r&30)&&!tH(i)&&(e=Yg(n,r),e===2&&(s=Z_(n),s!==0&&(r=s,e=P0(n,s))),e===1))throw t=nf,Xo(n,0),$a(n,r),_r(n,tn()),t;switch(n.finishedWork=i,n.finishedLanes=r,e){case 0:case 1:throw Error(ie(345));case 2:Oo(n,pr,Bs);break;case 3:if($a(n,r),(r&130023424)===r&&(e=Ew+500-tn(),10<e)){if(Dg(n,0)!==0)break;if(i=n.suspendedLanes,(i&r)!==r){tr(),n.pingedLanes|=n.suspendedLanes&i;break}n.timeoutHandle=a0(Oo.bind(null,n,pr,Bs),e);break}Oo(n,pr,Bs);break;case 4:if($a(n,r),(r&4194240)===r)break;for(e=n.eventTimes,i=-1;0<r;){var a=31-Mi(r);s=1<<a,a=e[a],a>i&&(i=a),r&=~s}if(r=i,r=tn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*eH(r/1960))-r,10<r){n.timeoutHandle=a0(Oo.bind(null,n,pr,Bs),r);break}Oo(n,pr,Bs);break;case 5:Oo(n,pr,Bs);break;default:throw Error(ie(329))}}}return _r(n,tn()),n.callbackNode===t?SA.bind(null,n):null}function P0(n,e){var t=Td;return n.current.memoizedState.isDehydrated&&(Xo(n,e).flags|=256),n=Yg(n,e),n!==2&&(e=pr,pr=t,e!==null&&C0(e)),n}function C0(n){pr===null?pr=n:pr.push.apply(pr,n)}function tH(n){for(var e=n;;){if(e.flags&16384){var t=e.updateQueue;if(t!==null&&(t=t.stores,t!==null))for(var r=0;r<t.length;r++){var i=t[r],s=i.getSnapshot;i=i.value;try{if(!Fi(s(),i))return!1}catch{return!1}}}if(t=e.child,e.subtreeFlags&16384&&t!==null)t.return=e,e=t;else{if(e===n)break;for(;e.sibling===null;){if(e.return===null||e.return===n)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function $a(n,e){for(e&=~Cw,e&=~zm,n.suspendedLanes|=e,n.pingedLanes&=~e,n=n.expirationTimes;0<e;){var t=31-Mi(e),r=1<<t;n[t]=-1,e&=~r}}function RP(n){if(tt&6)throw Error(ie(327));Tu();var e=Dg(n,0);if(!(e&1))return _r(n,tn()),null;var t=Yg(n,e);if(n.tag!==0&&t===2){var r=Z_(n);r!==0&&(e=r,t=P0(n,r))}if(t===1)throw t=nf,Xo(n,0),$a(n,e),_r(n,tn()),t;if(t===6)throw Error(ie(345));return n.finishedWork=n.current.alternate,n.finishedLanes=e,Oo(n,pr,Bs),_r(n,tn()),null}function Mw(n,e){var t=tt;tt|=1;try{return n(e)}finally{tt=t,tt===0&&(zu=tn()+500,$m&&vo())}}function il(n){Ya!==null&&Ya.tag===0&&!(tt&6)&&Tu();var e=tt;tt|=1;var t=ci.transition,r=mt;try{if(ci.transition=null,mt=1,n)return n()}finally{mt=r,ci.transition=t,tt=e,!(tt&6)&&vo()}}function Tw(){Or=_u.current,Ot(_u)}function Xo(n,e){n.finishedWork=null,n.finishedLanes=0;var t=n.timeoutHandle;if(t!==-1&&(n.timeoutHandle=-1,O5(t)),ln!==null)for(t=ln.return;t!==null;){var r=t;switch(cw(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Mg();break;case 3:Yu(),Ot(br),Ot(Gn),yw();break;case 5:bw(r);break;case 4:Yu();break;case 13:Ot(Bt);break;case 19:Ot(Bt);break;case 10:pw(r.type._context);break;case 22:case 23:Tw()}t=t.return}if(kn=n,ln=n=Za(n.current,null),In=Or=e,mn=0,nf=null,Cw=zm=rl=0,pr=Td=null,$o!==null){for(e=0;e<$o.length;e++)if(t=$o[e],r=t.interleaved,r!==null){t.interleaved=null;var i=r.next,s=t.pending;if(s!==null){var a=s.next;s.next=i,r.next=a}t.pending=r}$o=null}return n}function DA(n,e){do{var t=ln;try{if(hw(),Qp.current=Lg,Fg){for(var r=Ht.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Fg=!1}if(nl=0,Dn=pn=Ht=null,Ed=!1,Jd=0,Pw.current=null,t===null||t.return===null){mn=1,nf=e,ln=null;break}e:{var s=n,a=t.return,o=t,l=e;if(e=In,o.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,h=o,f=h.tag;if(!(h.mode&1)&&(f===0||f===11||f===15)){var m=h.alternate;m?(h.updateQueue=m.updateQueue,h.memoizedState=m.memoizedState,h.lanes=m.lanes):(h.updateQueue=null,h.memoizedState=null)}var g=xP(a);if(g!==null){g.flags&=-257,wP(g,a,o,s,e),g.mode&1&&_P(s,u,e),e=g,l=u;var y=e.updateQueue;if(y===null){var v=new Set;v.add(l),e.updateQueue=v}else y.add(l);break e}else{if(!(e&1)){_P(s,u,e),Ow();break e}l=Error(ie(426))}}else if(Ft&&o.mode&1){var x=xP(a);if(x!==null){!(x.flags&65536)&&(x.flags|=256),wP(x,a,o,s,e),dw(Hu(l,o));break e}}s=l=Hu(l,o),mn!==4&&(mn=2),Td===null?Td=[s]:Td.push(s),s=a;do{switch(s.tag){case 3:s.flags|=65536,e&=-e,s.lanes|=e;var _=oA(s,l,e);hP(s,_);break e;case 1:o=l;var S=s.type,w=s.stateNode;if(!(s.flags&128)&&(typeof S.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(Ka===null||!Ka.has(w)))){s.flags|=65536,e&=-e,s.lanes|=e;var k=lA(s,o,e);hP(s,k);break e}}s=s.return}while(s!==null)}CA(t)}catch(P){e=P,ln===t&&t!==null&&(ln=t=t.return);continue}break}while(1)}function kA(){var n=Bg.current;return Bg.current=Lg,n===null?Lg:n}function Ow(){(mn===0||mn===3||mn===2)&&(mn=4),kn===null||!(rl&268435455)&&!(zm&268435455)||$a(kn,In)}function Yg(n,e){var t=tt;tt|=2;var r=kA();(kn!==n||In!==e)&&(Bs=null,Xo(n,e));do try{nH();break}catch(i){DA(n,i)}while(1);if(hw(),tt=t,Bg.current=r,ln!==null)throw Error(ie(261));return kn=null,In=0,mn}function nH(){for(;ln!==null;)PA(ln)}function rH(){for(;ln!==null&&!EY();)PA(ln)}function PA(n){var e=MA(n.alternate,n,Or);n.memoizedProps=n.pendingProps,e===null?CA(n):ln=e,Pw.current=null}function CA(n){var e=n;do{var t=e.alternate;if(n=e.return,e.flags&32768){if(t=K5(t,e),t!==null){t.flags&=32767,ln=t;return}
vendor: 6,206 bytes, line 40
40if(n!==null)n.flags|=32768,n.subtreeFlags=0,n.deletions=null;else{mn=6,ln=null;return}}else if(t=q5(t,e,Or),t!==null){ln=t;return}if(e=e.sibling,e!==null){ln=e;return}ln=e=n}while(e!==null);mn===0&&(mn=5)}function Oo(n,e,t){var r=mt,i=ci.transition;try{ci.transition=null,mt=1,iH(n,e,t,r)}finally{ci.transition=i,mt=r}return null}function iH(n,e,t,r){do Tu();while(Ya!==null);if(tt&6)throw Error(ie(327));t=n.finishedWork;var i=n.finishedLanes;if(t===null)return null;if(n.finishedWork=null,n.finishedLanes=0,t===n.current)throw Error(ie(177));n.callbackNode=null,n.callbackPriority=0;var s=t.lanes|t.childLanes;if(LY(n,s),n===kn&&(ln=kn=null,In=0),!(t.subtreeFlags&2064)&&!(t.flags&2064)||lp||(lp=!0,TA(Sg,function(){return Tu(),null})),s=(t.flags&15990)!==0,t.subtreeFlags&15990||s){s=ci.transition,ci.transition=null;var a=mt;mt=1;var o=tt;tt|=4,Pw.current=null,Z5(n,t),xA(t,n),D5(i0),kg=!!r0,i0=r0=null,n.current=t,J5(t),MY(),tt=o,mt=a,ci.transition=s}else n.current=t;if(lp&&(lp=!1,Ya=n,Vg=i),s=n.pendingLanes,s===0&&(Ka=null),AY(t.stateNode),_r(n,tn()),e!==null)for(r=n.onRecoverableError,t=0;t<e.length;t++)i=e[t],r(i.value,{componentStack:i.stack,digest:i.digest});if($g)throw $g=!1,n=D0,D0=null,n;return Vg&1&&n.tag!==0&&Tu(),s=n.pendingLanes,s&1?n===k0?Od++:(Od=0,k0=n):Od=0,vo(),null}function Tu(){if(Ya!==null){var n=aO(Vg),e=ci.transition,t=mt;try{if(ci.transition=null,mt=16>n?16:n,Ya===null)var r=!1;else{if(n=Ya,Ya=null,Vg=0,tt&6)throw Error(ie(331));var i=tt;for(tt|=4,pe=n.current;pe!==null;){var s=pe,a=s.child;if(pe.flags&16){var o=s.deletions;if(o!==null){for(var l=0;l<o.length;l++){var u=o[l];for(pe=u;pe!==null;){var h=pe;switch(h.tag){case 0:case 11:case 15:Md(8,h,s)}var f=h.child;if(f!==null)f.return=h,pe=f;else for(;pe!==null;){h=pe;var m=h.sibling,g=h.return;if(bA(h),h===u){pe=null;break}if(m!==null){m.return=g,pe=m;break}pe=g}}}var y=s.alternate;if(y!==null){var v=y.child;if(v!==null){y.child=null;do{var x=v.sibling;v.sibling=null,v=x}while(v!==null)}}pe=s}}if(s.subtreeFlags&2064&&a!==null)a.return=s,pe=a;else e:for(;pe!==null;){if(s=pe,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Md(9,s,s.return)}var _=s.sibling;if(_!==null){_.return=s.return,pe=_;break e}pe=s.return}}var S=n.current;for(pe=S;pe!==null;){a=pe;var w=a.child;if(a.subtreeFlags&2064&&w!==null)w.return=a,pe=w;else e:for(a=S;pe!==null;){if(o=pe,o.flags&2048)try{switch(o.tag){case 0:case 11:case 15:Hm(9,o)}}catch(P){Ut(o,o.return,P)}if(o===a){pe=null;break e}var k=o.sibling;if(k!==null){k.return=o.return,pe=k;break e}pe=o.return}}if(tt=i,vo(),cs&&typeof cs.onPostCommitFiberRoot=="function")try{cs.onPostCommitFiberRoot(Im,n)}catch{}r=!0}return r}finally{mt=t,ci.transition=e}}return!1}function IP(n,e,t){e=Hu(t,e),e=oA(n,e,1),n=qa(n,e,1),e=tr(),n!==null&&(Nf(n,1,e),_r(n,e))}function Ut(n,e,t){if(n.tag===3)IP(n,n,t);else for(;e!==null;){if(e.tag===3){IP(e,n,t);break}else if(e.tag===1){var r=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Ka===null||!Ka.has(r))){n=Hu(t,n),n=lA(e,n,1),e=qa(e,n,1),n=tr(),e!==null&&(Nf(e,1,n),_r(e,n));break}}e=e.return}}function sH(n,e,t){var r=n.pingCache;r!==null&&r.delete(e),e=tr(),n.pingedLanes|=n.suspendedLanes&t,kn===n&&(In&t)===t&&(mn===4||mn===3&&(In&130023424)===In&&500>tn()-Ew?Xo(n,0):Cw|=t),_r(n,e)}function EA(n,e){e===0&&(n.mode&1?(e=Zh,Zh<<=1,!(Zh&130023424)&&(Zh=4194304)):e=1);var t=tr();n=ta(n,e),n!==null&&(Nf(n,e,t),_r(n,t))}function aH(n){var e=n.memoizedState,t=0;e!==null&&(t=e.retryLane),EA(n,t)}function oH(n,e){var t=0;switch(n.tag){case 13:var r=n.stateNode,i=n.memoizedState;i!==null&&(t=i.retryLane);break;case 19:r=n.stateNode;break;default:throw Error(ie(314))}r!==null&&r.delete(e),EA(n,t)}var MA;MA=function(n,e,t){if(n!==null)if(n.memoizedProps!==e.pendingProps||br.current)vr=!0;else{if(!(n.lanes&t)&&!(e.flags&128))return vr=!1,X5(n,e,t);vr=!!(n.flags&131072)}else vr=!1,Ft&&e.flags&1048576&&AO(e,Ag,e.index);switch(e.lanes=0,e.tag){case 2:var r=e.type;Jp(n,e),n=e.pendingProps;var i=Bu(e,Gn.current);Mu(e,t),i=xw(null,e,r,n,i,t);var s=ww();return e.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,yr(r)?(s=!0,Tg(e)):s=!1,e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,mw(e),i.updater=Vm,e.stateNode=i,i._reactInternals=e,h0(e,r,n,t),e=m0(null,e,r,!0,s,t)):(e.tag=0,Ft&&s&&uw(e),Qn(null,e,i,t),e=e.child),e;case 16:r=e.elementType;e:{switch(Jp(n,e),n=e.pendingProps,i=r._init,r=i(r._payload),e.type=r,i=e.tag=uH(r),n=Si(r,n),i){case 0:e=g0(null,e,r,n,t);break e;case 1:e=kP(null,e,r,n,t);break e;case 11:e=SP(null,e,r,n,t);break e;case 14:e=DP(null,e,r,Si(r.type,n),t);break e}throw Error(ie(306,r,""))}return e;case 0:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:Si(r,i),g0(n,e,r,i,t);case 1:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:Si(r,i),kP(n,e,r,i,t);case 3:e:{if(fA(e),n===null)throw Error(ie(387));r=e.pendingProps,s=e.memoizedState,i=s.element,NO(n,e),Ig(e,r,null,t);var a=e.memoizedState;if(r=a.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},e.updateQueue.baseState=s,e.memoizedState=s,e.flags&256){i=Hu(Error(ie(423)),e),e=PP(n,e,r,t,i);break e}else if(r!==i){i=Hu(Error(ie(424)),e),e=PP(n,e,r,t,i);break e}else for(Rr=Xa(e.stateNode.containerInfo.firstChild),Fr=e,Ft=!0,ki=null,t=$O(e,null,r,t),e.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if($u(),r===i){e=na(n,e,t);break e}Qn(n,e,r,t)}e=e.child}return e;case 5:return VO(e),n===null&&c0(e),r=e.type,i=e.pendingProps,s=n!==null?n.memoizedProps:null,a=i.children,s0(r,i)?a=null:s!==null&&s0(r,s)&&(e.flags|=32),dA(n,e),Qn(n,e,a,t),e.child;case 6:return n===null&&c0(e),null;case 13:return hA(n,e,t);case 4:return vw(e,e.stateNode.containerInfo),r=e.pendingProps,n===null?e.child=Vu(e,null,r,t):Qn(n,e,r,t),e.child;case 11:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:Si(r,i),SP(n,e,r,i,t);case 7:return Qn(n,e,e.pendingProps,t),e.child;case 8:return Qn(n,e,e.pendingProps.children,t),e.child;case 12:return Qn(n,e,e.pendingProps.children,t),e.child;
vendor: 5,674 bytes, line 40
40case 10:e:{if(r=e.type._context,i=e.pendingProps,s=e.memoizedProps,a=i.value,Dt(jg,r._currentValue),r._currentValue=a,s!==null)if(Fi(s.value,a)){if(s.children===i.children&&!br.current){e=na(n,e,t);break e}}else for(s=e.child,s!==null&&(s.return=e);s!==null;){var o=s.dependencies;if(o!==null){a=s.child;for(var l=o.firstContext;l!==null;){if(l.context===r){if(s.tag===1){l=Ws(-1,t&-t),l.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var h=u.pending;h===null?l.next=l:(l.next=h.next,h.next=l),u.pending=l}}s.lanes|=t,l=s.alternate,l!==null&&(l.lanes|=t),d0(s.return,t,e),o.lanes|=t;break}l=l.next}}else if(s.tag===10)a=s.type===e.type?null:s.child;else if(s.tag===18){if(a=s.return,a===null)throw Error(ie(341));a.lanes|=t,o=a.alternate,o!==null&&(o.lanes|=t),d0(a,t,e),a=s.sibling}else a=s.child;if(a!==null)a.return=s;else for(a=s;a!==null;){if(a===e){a=null;break}if(s=a.sibling,s!==null){s.return=a.return,a=s;break}a=a.return}s=a}Qn(n,e,i.children,t),e=e.child}return e;case 9:return i=e.type,r=e.pendingProps.children,Mu(e,t),i=fi(i),r=r(i),e.flags|=1,Qn(n,e,r,t),e.child;case 14:return r=e.type,i=Si(r,e.pendingProps),i=Si(r.type,i),DP(n,e,r,i,t);case 15:return uA(n,e,e.type,e.pendingProps,t);case 17:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:Si(r,i),Jp(n,e),e.tag=1,yr(r)?(n=!0,Tg(e)):n=!1,Mu(e,t),LO(e,r,i),h0(e,r,i,t),m0(null,e,r,!0,n,t);case 19:return pA(n,e,t);case 22:return cA(n,e,t)}throw Error(ie(156,e.tag))};function TA(n,e){return nO(n,e)}function lH(n,e,t,r){this.tag=n,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,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 ui(n,e,t,r){return new lH(n,e,t,r)}function Aw(n){return n=n.prototype,!(!n||!n.isReactComponent)}function uH(n){if(typeof n=="function")return Aw(n)?1:0;if(n!=null){if(n=n.$$typeof,n===Qx)return 11;if(n===Zx)return 14}return 2}function Za(n,e){var t=n.alternate;return t===null?(t=ui(n.tag,e,n.key,n.mode),t.elementType=n.elementType,t.type=n.type,t.stateNode=n.stateNode,t.alternate=n,n.alternate=t):(t.pendingProps=e,t.type=n.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=n.flags&14680064,t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},t.sibling=n.sibling,t.index=n.index,t.ref=n.ref,t}function ng(n,e,t,r,i,s){var a=2;if(r=n,typeof n=="function")Aw(n)&&(a=1);else if(typeof n=="string")a=5;else e:switch(n){case cu:return qo(t.children,i,s,e);case Kx:a=8,i|=8;break;case F_:return n=ui(12,t,e,i|2),n.elementType=F_,n.lanes=s,n;case L_:return n=ui(13,t,e,i),n.elementType=L_,n.lanes=s,n;case B_:return n=ui(19,t,e,i),n.elementType=B_,n.lanes=s,n;case BT:return Wm(t,i,s,e);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case FT:a=10;break e;case LT:a=9;break e;case Qx:a=11;break e;case Zx:a=14;break e;case Ia:a=16,r=null;break e}throw Error(ie(130,n==null?n:typeof n,""))}return e=ui(a,t,e,i),e.elementType=n,e.type=r,e.lanes=s,e}function qo(n,e,t,r){return n=ui(7,n,r,e),n.lanes=t,n}function Wm(n,e,t,r){return n=ui(22,n,r,e),n.elementType=BT,n.lanes=t,n.stateNode={isHidden:!1},n}function Oy(n,e,t){return n=ui(6,n,null,e),n.lanes=t,n}function Ay(n,e,t){return e=ui(4,n.children!==null?n.children:[],n.key,e),e.lanes=t,e.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},e}function cH(n,e,t,r,i){this.tag=e,this.containerInfo=n,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=fy(0),this.expirationTimes=fy(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=fy(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function jw(n,e,t,r,i,s,a,o,l){return n=new cH(n,e,t,o,l),e===1?(e=1,s===!0&&(e|=8)):e=0,s=ui(3,null,null,e),n.current=s,s.stateNode=n,s.memoizedState={element:r,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},mw(s),n}function dH(n,e,t){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:uu,key:r==null?null:""+r,children:n,containerInfo:e,implementation:t}}function OA(n){if(!n)return no;n=n._reactInternals;e:{if(Pl(n)!==n||n.tag!==1)throw Error(ie(170));var e=n;do{switch(e.tag){case 3:e=e.stateNode.context;break e;case 1:if(yr(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break e}}e=e.return}while(e!==null);throw Error(ie(171))}if(n.tag===1){var t=n.type;if(yr(t))return TO(n,t,e)}return e}function AA(n,e,t,r,i,s,a,o,l){return n=jw(t,r,!0,n,i,s,a,o,l),n.context=OA(null),t=n.current,r=tr(),i=Qa(t),s=Ws(r,i),s.callback=e??null,qa(t,s,i),n.current.lanes=i,Nf(n,i,r),_r(n,r),n}function Um(n,e,t,r){var i=e.current,s=tr(),a=Qa(i);return t=OA(t),e.context===null?e.context=t:e.pendingContext=t,e=Ws(s,a),e.payload={element:n},r=r===void 0?null:r,r!==null&&(e.callback=r),n=qa(i,e,a),n!==null&&(Ti(n,i,a,s),Kp(n,i,a)),a}function Hg(n){if(n=n.current,!n.child)return null;switch(n.child.tag){case 5:return n.child.stateNode;default:return n.child.stateNode}}function NP(n,e){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var t=n.retryLane;n.retryLane=t!==0&&t<e?t:e}}
vendor: 6,422 bytes, line 40
40function Rw(n,e){NP(n,e),(n=n.alternate)&&NP(n,e)}function fH(){return null}var jA=typeof reportError=="function"?reportError:function(n){console.error(n)};function Iw(n){this._internalRoot=n}Gm.prototype.render=Iw.prototype.render=function(n){var e=this._internalRoot;if(e===null)throw Error(ie(409));Um(n,e,null,null)};Gm.prototype.unmount=Iw.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var e=n.containerInfo;il(function(){Um(null,n,null,null)}),e[ea]=null}};function Gm(n){this._internalRoot=n}Gm.prototype.unstable_scheduleHydration=function(n){if(n){var e=uO();n={blockedOn:null,target:n,priority:e};for(var t=0;t<Ba.length&&e!==0&&e<Ba[t].priority;t++);Ba.splice(t,0,n),t===0&&dO(n)}};function Nw(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function Xm(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11&&(n.nodeType!==8||n.nodeValue!==" react-mount-point-unstable "))}function FP(){}function hH(n,e,t,r,i){if(i){if(typeof r=="function"){var s=r;r=function(){var u=Hg(a);s.call(u)}}var a=AA(e,r,n,0,null,!1,!1,"",FP);return n._reactRootContainer=a,n[ea]=a.current,Xd(n.nodeType===8?n.parentNode:n),il(),a}for(;i=n.lastChild;)n.removeChild(i);if(typeof r=="function"){var o=r;r=function(){var u=Hg(l);o.call(u)}}var l=jw(n,0,!1,null,null,!1,!1,"",FP);return n._reactRootContainer=l,n[ea]=l.current,Xd(n.nodeType===8?n.parentNode:n),il(function(){Um(e,l,t,r)}),l}function qm(n,e,t,r,i){var s=t._reactRootContainer;if(s){var a=s;if(typeof i=="function"){var o=i;i=function(){var l=Hg(a);o.call(l)}}Um(e,a,n,i)}else a=hH(t,e,n,i,r);return Hg(a)}oO=function(n){switch(n.tag){case 3:var e=n.stateNode;if(e.current.memoizedState.isDehydrated){var t=fd(e.pendingLanes);t!==0&&(tw(e,t|1),_r(e,tn()),!(tt&6)&&(zu=tn()+500,vo()))}break;case 13:il(function(){var r=ta(n,1);if(r!==null){var i=tr();Ti(r,n,1,i)}}),Rw(n,1)}};nw=function(n){if(n.tag===13){var e=ta(n,134217728);if(e!==null){var t=tr();Ti(e,n,134217728,t)}Rw(n,134217728)}};lO=function(n){if(n.tag===13){var e=Qa(n),t=ta(n,e);if(t!==null){var r=tr();Ti(t,n,e,r)}Rw(n,e)}};uO=function(){return mt};cO=function(n,e){var t=mt;try{return mt=n,e()}finally{mt=t}};q_=function(n,e,t){switch(e){case"input":if(Y_(n,t),e=t.name,t.type==="radio"&&e!=null){for(t=n;t.parentNode;)t=t.parentNode;for(t=t.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<t.length;e++){var r=t[e];if(r!==n&&r.form===n.form){var i=Bm(r);if(!i)throw Error(ie(90));VT(r),Y_(r,i)}}}break;case"textarea":HT(n,t);break;case"select":e=t.value,e!=null&&ku(n,!!t.multiple,e,!1)}};KT=Mw;QT=il;var pH={usingClientEntryPoint:!1,Events:[Lf,pu,Bm,XT,qT,Mw]},Jc={findFiberByHostInstance:Bo,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},gH={bundleType:Jc.bundleType,version:Jc.version,rendererPackageName:Jc.rendererPackageName,rendererConfig:Jc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ga.ReactCurrentDispatcher,findHostInstanceByFiber:function(n){return n=eO(n),n===null?null:n.stateNode},findFiberByHostInstance:Jc.findFiberByHostInstance||fH,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var up=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!up.isDisabled&&up.supportsFiber)try{Im=up.inject(gH),cs=up}catch{}}Wr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=pH;Wr.createPortal=function(n,e){var t=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Nw(e))throw Error(ie(200));return dH(n,e,null,t)};Wr.createRoot=function(n,e){if(!Nw(n))throw Error(ie(299));var t=!1,r="",i=jA;return e!=null&&(e.unstable_strictMode===!0&&(t=!0),e.identifierPrefix!==void 0&&(r=e.identifierPrefix),e.onRecoverableError!==void 0&&(i=e.onRecoverableError)),e=jw(n,1,!1,null,null,t,!1,r,i),n[ea]=e.current,Xd(n.nodeType===8?n.parentNode:n),new Iw(e)};Wr.findDOMNode=function(n){if(n==null)return null;if(n.nodeType===1)return n;var e=n._reactInternals;if(e===void 0)throw typeof n.render=="function"?Error(ie(188)):(n=Object.keys(n).join(","),Error(ie(268,n)));return n=eO(e),n=n===null?null:n.stateNode,n};Wr.flushSync=function(n){return il(n)};Wr.hydrate=function(n,e,t){if(!Xm(e))throw Error(ie(200));return qm(null,n,e,!0,t)};Wr.hydrateRoot=function(n,e,t){if(!Nw(n))throw Error(ie(405));var r=t!=null&&t.hydratedSources||null,i=!1,s="",a=jA;if(t!=null&&(t.unstable_strictMode===!0&&(i=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),e=AA(e,null,n,1,t??null,i,!1,s,a),n[ea]=e.current,Xd(n),r)for(n=0;n<r.length;n++)t=r[n],i=t._getVersion,i=i(t._source),e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[t,i]:e.mutableSourceEagerHydrationData.push(t,i);return new Gm(e)};Wr.render=function(n,e,t){if(!Xm(e))throw Error(ie(200));return qm(null,n,e,!1,t)};Wr.unmountComponentAtNode=function(n){if(!Xm(n))throw Error(ie(40));return n._reactRootContainer?(il(function(){qm(null,null,n,!1,function(){n._reactRootContainer=null,n[ea]=null})}),!0):!1};Wr.unstable_batchedUpdates=Mw;Wr.unstable_renderSubtreeIntoContainer=function(n,e,t,r){if(!Xm(t))throw Error(ie(200));if(n==null||n._reactInternals===void 0)throw Error(ie(38));return qm(n,e,t,!1,r)};Wr.version="18.2.0-next-9e3b772b8-20220608";function RA(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(RA)}catch(n){console.error(n)}}RA(),AT.exports=Wr;var Km=AT.exports;const mH=jm(Km);var LP=Km;je.createRoot=LP.createRoot,je.hydrateRoot=LP.hydrateRoot;const Le=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Je=globalThis,Ko="10.73.0";function Qm(){return Zm(Je),Je}function Zm(n){const e=n.__SENTRY__=n.__SENTRY__||{};return e.version=e.version||Ko,e[Ko]=e[Ko]||{}}function gc(n,e,t=Je){const r=t.__SENTRY__=t.__SENTRY__||{},i=r[Ko]=r[Ko]||{};return i[n]||(i[n]=e())}const vH=["debug","info","warn","error","log","assert","trace"],bH="Sentry Logger ",zg={};function mc(n){if(!("console"in Je))return n();const e=Je.console,t={},r=Object.keys(zg);r.forEach(i=>
40{const s=zg[i];t[i]=e[i],e[i]=s});try{return n()}finally{r.forEach(i=>{e[i]=t[i]})}}function yH(){Lw().enabled=!0}function _H(){Lw().enabled=!1}function IA(){return Lw().enabled}function xH(...n){Fw("log",...n)}function wH(...n){Fw("warn",...n)}function SH(...n){Fw("error",...n)}function Fw(n,...e){Le&&IA()&&mc(()=>{Je.console[n](`${bH}[${n}]:`,...e)})}function Lw(){return Le?gc("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const Se={enable:yH,disable:_H,isEnabled:IA,log:xH,warn:wH,error:SH},NA=50,sl="?",BP=/\(error: (.*)\)/,$P=/captureMessage|captureException/;function FA(...n){const e=n.sort((t,r)=>t[0]-r[0]).map(t=>t[1]);return(t,r=0,i=0)=>{const s=[],a=t.split(` 41`);for(let o=r;o<a.length;o++){let l=a[o];l.length>1024&&(l=l.slice(0,1024));const u=BP.test(l)?l.replace(BP,"$1"):l;if(!u.includes("Error: ")){for(const h of e){const f=h(u);if(f){s.push(f);break}}if(s.length>=NA+i)break}}return kH(s.slice(i))}}function DH(n){return Array.isArray(n)?FA(...n):n}function kH(n){if(!n.length)return[];const e=Array.from(n);return/sentryWrapped/.test(cp(e).function||"")&&e.pop(),e.reverse(),$P.test(cp(e).function||"")&&(e.pop(),$P.test(cp(e).function||"")&&e.pop()),e.slice(0,NA).map(t=>({...t,filename:t.filename||cp(e).filename,function:t.function||sl}))}function cp(n){return n[n.length-1]||{}}const jy="<anonymous>";function ro(n){try{return!n||typeof n!="function"?jy:n.name||jy}catch{return jy}}function VP(n){const e=n.exception;if(e){const t=[];try{return e.values.forEach(r=>{r.stacktrace.frames&&t.push(...r.stacktrace.frames)}),t}catch{return}}}const pd={},YP={};function Cl(n,e){return pd[n]=pd[n]||[],pd[n].push(e),()=>{const t=pd[n];if(t){const r=t.indexOf(e);r!==-1&&t.splice(r,1)}}}function El(n,e){if(!YP[n]){YP[n]=!0;try{e()}catch(t){Le&&Se.error(`Error while instrumenting ${n}`,t)}}}function Oi(n,e){const t=n&&pd[n];if(t)for(const r of t)try{r(e)}catch(i){Le&&Se.error(`Error while triggering instrumentation handler. 42Type: ${n} 43Name: ${ro(r)} 44Error:`,i)}}let Ry=null;function PH(n){const e="error";Cl(e,n),El(e,CH)}function CH(){Ry=Je.onerror,Je.onerror=function(n,e,t,r,i){return Oi("error",{column:r,error:i,line:t,msg:n,url:e}),Ry?Ry.apply(this,arguments):!1},Je.onerror.__SENTRY_INSTRUMENTED__=!0}let Iy=null;function EH(n){const e="unhandledrejection";Cl(e,n),El(e,MH)}function MH(){Iy=Je.onunhandledrejection,Je.onunhandledrejection=function(n){return Oi("unhandledrejection",n),Iy?Iy.apply(this,arguments):!0},Je.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const LA=Object.prototype.toString;function vs(n){switch(LA.call(n)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return $w(n,Error)}}function vc(n,e){return LA.call(n)===`[object ${e}]`}function BA(n){return vc(n,"ErrorEvent")}function HP(n){return vc(n,"DOMError")}function TH(n){return vc(n,"DOMException")}function Us(n){return vc(n,"String")}function Bw(n){return typeof n=="object"&&n!==null&&"__sentry_template_string__"in n&&"__sentry_template_values__"in n}function $f(n){return n===null||Bw(n)||typeof n!="object"&&typeof n!="function"}function rf(n){return vc(n,"Object")}function Jm(n){return typeof n=="object"&&n!==null}function ev(n){return typeof Event<"u"&&$w(n,Event)}function OH(n){return vc(n,"RegExp")}function Vf(n){return!!(n!=null&&n.then&&typeof n.then=="function")}function $w(n,e){try{return n instanceof e}catch{return!1}}function $A(n){return typeof Request<"u"&&$w(n,Request)}function Ir(n,e,t){if(!(e in n))return;const r=n[e];if(typeof r!="function")return;const i=t(r);typeof i=="function"&&VA(i,r);try{n[e]=i}catch{Le&&Se.log(`Failed to replace method "${e}" in object`,n)}}function io(n,e,t){try{Object.defineProperty(n,e,{value:t,writable:!0,configurable:!0})}catch{Le&&Se.log(`Failed to add non-enumerable property "${String(e)}" to object`,n)}}function VA(n,e){try{const t=e.prototype||{};n.prototype=e.prototype=t,io(n,"__sentry_original__",e)}catch{}}function Vw(n){return n.__sentry_original__}function YA(n){if(vs(n))return{message:n.message,name:n.name,stack:n.stack,...zP(n)};
44if(ev(n)){const{type:e,target:t,currentTarget:r,detail:i}=n;return{type:e,target:t,currentTarget:r,...i?{detail:i}:{},...zP(n)}}return n}function zP(n){return Jm(n)?Object.fromEntries(Object.entries(n)):{}}function AH(n){const e=Object.keys(YA(n));return e.sort(),e[0]?e.join(", "):"[object has no keys]"}let Jl;function tv(n){if(Jl!==void 0)return Jl?Jl(n):n();const e=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),t=Je;return e in t&&typeof t[e]=="function"?(Jl=t[e],Jl(n)):(Jl=null,n())}function Wg(){return tv(()=>Math.random())}function bc(){return tv(()=>Date.now())}const jH=Symbol.for("sentry.skipNormalization"),RH=Symbol.for("sentry.overrideNormalizationDepth");function IH(n){return!!n[jH]}function NH(n){const e=n[RH];return typeof e=="number"?e:void 0}let E0;function HA(n){E0=n}function $s(n,e=100,t=1/0){try{return M0("",n,e,t)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function zA(n,e=3,t=100*1024){const r=$s(n,e);return BH(r)>t?zA(n,e-1,t):r}function M0(n,e,t=1/0,r=1/0,i=$H()){const[s,a]=i;if(e==null||["boolean","string"].includes(typeof e)||typeof e=="number"&&Number.isFinite(e))return e;const o=WA(n,e);if(!o.startsWith("[object "))return o;if(IH(e))return e;const l=NH(e),u=l!==void 0?l:t;if(u===0)return o.replace("object ","");if(s(e))return"[Circular ~]";const h=e;if(h&&typeof h.toJSON=="function")try{const y=h.toJSON();return M0("",y,u-1,r,i)}catch{}const f=Array.isArray(e)?[]:{};let m=0;const g=YA(e);for(const y in g){if(!Object.prototype.hasOwnProperty.call(g,y))continue;if(m>=r){f[y]="[MaxProperties ~]";break}const v=g[y];f[y]=M0(y,v,u-1,r,i),m++}return a(e),f}function WA(n,e){try{if(E0){const r=E0(e);if(r)return r}return typeof global<"u"&&e===global?"[Global]":typeof e=="number"&&!Number.isFinite(e)?`[${e}]`:typeof e=="function"?`[Function: ${ro(e)}]`:typeof e=="symbol"?`[${String(e)}]`:typeof e=="bigint"?`[BigInt: ${String(e)}]`:`[object ${FH(e)}]`}catch(t){return`**non-serializable** (${t})`}}function FH(n){const e=Object.getPrototypeOf(n);return e!=null&&e.constructor?e.constructor.name:"null prototype"}function LH(n){return~-encodeURI(n).split(/%..|./).length}function BH(n){return LH(JSON.stringify(n))}function $H(){const n=new WeakSet;function e(r){return n.has(r)?!0:(n.add(r),!1)}function t(r){n.delete(r)}return[e,t]}function T0(n,e=0){return typeof n!="string"||e===0||n.length<=e?n:`${n.slice(0,e)}...`}function WP(n,e){if(!Array.isArray(n))return"";const t=[];for(let r=0;r<n.length;r++){const i=n[r];$f(i)?t.push(String(i)):i instanceof Error?t.push(i.message?`${i.name}: ${i.message}`:i.name):t.push(WA(void 0,i))}return t.join(e)}function Ad(n,e,t=!1){return Us(n)?OH(e)?e.test(n):Us(e)?t?n===e:n.includes(e):typeof e=="function"?e(n):!1:!1}function Yf(n,e=[],t=!1){for(const r of e)if(Ad(n,r,t))return!0;return!1}function VH(){const n=Je;return n.crypto||n.msCrypto}let Ny;function YH(){return Wg()*16}function di(n=VH()){try{if(n!=null&&n.randomUUID)return tv(()=>n.randomUUID()).replace(/-/g,"")}catch{}return Ny||(Ny="10000000100040008000"+1e11),Ny.replace(/[018]/g,e=>(e^(YH()&15)>>e/4).toString(16))}function UA(n){var e,t;return(t=(e=n.exception)==null?void 0:e.values)==null?void 0:t[0]}function Lo(n){const{message:e,event_id:t}=n;if(e)return e;const r=UA(n);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||t||"<unknown>":t||"<unknown>"}function O0(n,e,t){const r=n.exception=n.exception||{},i=r.values=r.values||[],s=i[0]=i[0]||{};s.value||(s.value=e||""),s.type||(s.type=t||"Error")}function Qo(n,e){const t=UA(n);if(!t)return;const r={type:"generic",handled:!0},i=t.mechanism;if(t.mechanism={...r,...i,...e},e&&"data"in e){const s={...i==null?void 0:i.data,...e.data};t.mechanism.data=s}}function UP(n){if(HH(n))return!0;try{io(n,"__sentry_captured__",!0)}catch{}return!1}function HH(n){try{return n.__sentry_captured__}catch{}}const GA=1e3;function Hf(){return bc()/GA}function zH(){const{performance:n}=Je;if(!(n!=null&&n.now)||!n.timeOrigin)return Hf;const e=n.timeOrigin;return()=>(e+tv(()=>n.now()))/GA}let GP;function Gs(){return(GP??(GP=zH()))()}function WH(n){const e=Gs(),t={sid:di(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>GH(t)};return n&&Wu(t,n),t}function Wu(n,e={}){if(e.user&&(!n.ipAddress&&e.user.ip_address&&(n.ipAddress=e.user.ip_address),!n.did&&!e.did&&(n.did=e.user.id||e.user.email||e.user.username)),n.timestamp=e.timestamp||Gs(),e.abnormal_mechanism&&(n.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(n.ignoreDuration=e.ignoreDuration),e.sid&&(n.sid=e.sid.length===32?e.sid:di()),e.init!==void 0&&(n.init=e.init),!n.did&&e.did&&(n.did=`${e.did}`),typeof e.started=="number"&&(n.started=e.started),n.ignoreDuration)n.duration=void 0;else if(typeof e.duration=="number")n.duration=e.duration;else{const t=n.timestamp-n.started;n.duration=t>=0?t:0}e.release&&(n.release=e.release),e.environment&&(n.environment=e.environment),!n.ipAddress&&e.ipAddress&&(n.ipAddress=e.ipAddress),!n.userAgent&&e.userAgent&&(n.userAgent=e.userAgent),t
44ypeof e.errors=="number"&&(n.errors=e.errors),e.status&&(n.status=e.status)}function UH(n,e){let t={};e?t={status:e}:n.status==="ok"&&(t={status:"exited"}),Wu(n,t)}function GH(n){return{sid:`${n.sid}`,init:n.init,started:new Date(n.started*1e3).toISOString(),timestamp:new Date(n.timestamp*1e3).toISOString(),status:n.status,errors:n.errors,did:typeof n.did=="number"||typeof n.did=="string"?`${n.did}`:void 0,duration:n.duration,abnormal_mechanism:n.abnormal_mechanism,attrs:{release:n.release,environment:n.environment,ip_address:n.ipAddress,user_agent:n.userAgent}}}function zf(n,e,t=2){if(!e||typeof e!="object"||t<=0)return e;if(n&&Object.keys(e).length===0)return n;const r={...n};for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=zf(r[i],e[i],t-1));return r}function XP(){return di()}function XA(){return di().substring(16)}function XH(n){try{const e=Je.WeakRef;if(typeof e=="function")return new e(n)}catch{}return n}function qA(n){if(n){if(typeof n=="object"&&"deref"in n&&typeof n.deref=="function")try{return n.deref()}catch{return}return n}}const A0="_sentrySpan";function qP(n,e){e?io(n,A0,XH(e)):delete n[A0]}function KP(n){return qA(n[A0])}const qH=100;class bs{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:XP(),sampleRand:Wg()}}clone(){const e=new bs;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._attributes={...this._attributes},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,e._conversationId=this._conversationId,qP(e,KP(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Wu(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(e){return this._conversationId=e||void 0,this._notifyScopeListeners(),this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this.setTags({[e]:t})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,t){return this.setAttributes({[e]:t})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],this._notifyScopeListeners()),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return t===null?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t=typeof e=="function"?e(this):e,r=t instanceof bs?t.getScopeData():rf(t)?e:void 0,{tags:i,attributes:s,extra:a,user:o,contexts:l,level:u,fingerprint:h=[],propagationContext:f,conversationId:m}=r||{};return this._tags={...this._tags,...i},this._attributes={...this._attributes,...s},this._extra={...this._extra,...a},this._contexts={...this._contexts,...l},o&&Object.keys(o).length&&(this._user=o),u&&(this._level=u),h.length&&(this._fingerprint=h),f&&(this._propagationContext=f),m&&(this._conversationId=m),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,qP(this,void 0),this._attachments=[],this.setPropagationContext({traceId:XP(),sampleRand:Wg()}),this._notifyScopeListeners(),this}addBreadcrumb(e,t){var s;const r=typeof t=="number"?t:qH;if(r<=0)return this;const i={timestamp:Hf(),...e,message:e.message?T0(e.message,2048):e.message};return this._breadcrumbs.push(i),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),(s=this._client)==null||s.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:KP(this),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=zf(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){const r=(t==null?void 0:t.event_id)||di();if(!this._client)return Le&&Se.warn("No client configured on scope - will not capture exception!"),r;const i=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:i,...t,event_id:r},this),r}captureMessage(e,t,r){const i=(r==null?void 0:r.event_id)||di();if(!this._client)return Le&&Se.warn("No client configured on scope - will not capture message!"),i;const s=(r==null?void 0:r.syntheticException)??new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:s,...r,event_id:i},this),i}
44captureEvent(e,t){const r=e.event_id||(t==null?void 0:t.event_id)||di();return this._client?(this._client.captureEvent(e,{...t,event_id:r},this),r):(Le&&Se.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}function KH(){return gc("defaultCurrentScope",()=>new bs)}function QH(){return gc("defaultIsolationScope",()=>new bs)}const QP=n=>n instanceof Promise&&!n[KA],KA=Symbol("chained PromiseLike"),ZH=(n,e,t)=>{const r=n.then(i=>(e(i),i),i=>{throw t(i),i});return QP(r)&&QP(n)?r:JH(n,r)},JH=(n,e)=>{if(!e)return n;let t=!1;for(const r in n){if(r in e)continue;t=!0;const i=n[r];typeof i=="function"?Object.defineProperty(e,r,{value:(...s)=>i.apply(n,s),enumerable:!0,configurable:!0,writable:!0}):e[r]=i}return t&&Object.assign(e,{[KA]:!0}),e};class ez{constructor(e,t){let r;e?r=e:r=new bs;let i;t?i=t:i=new bs,this._stack=[{scope:r}],this._isolationScope=i}withScope(e){const t=this._pushScope();let r;try{r=e(t)}catch(i){throw this._popScope(),i}return Vf(r)?ZH(r,()=>this._popScope(),()=>this._popScope()):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function Uu(){const n=Qm(),e=Zm(n);return e.stack=e.stack||new ez(KH(),QH())}function tz(n){return Uu().withScope(n)}function nz(n,e){const t=Uu();return t.withScope(()=>(t.getStackTop().scope=n,e(n)))}function ZP(n){return Uu().withScope(()=>n(Uu().getIsolationScope()))}function rz(){return{withIsolationScope:ZP,withScope:tz,withSetScope:nz,withSetIsolationScope:(n,e)=>ZP(e),getCurrentScope:()=>Uu().getScope(),getIsolationScope:()=>Uu().getIsolationScope()}}function Yw(n){const e=Zm(n);return e.acs?e.acs:rz()}function iz(n){return typeof n=="object"&&n!=null&&!Array.isArray(n)&&Object.keys(n).includes("value")}function sz(n,e){const{value:t,unit:r}=iz(n)?n:{value:n,unit:void 0},i=az(t),s=r&&typeof r=="string"?{unit:r}:{};if(i)return{...i,...s};if(!e||e==="skip-undefined"&&t===void 0)return;let a="";try{a=JSON.stringify(t)??""}catch{}return{value:a,type:"string",...s}}function JP(n,e=!1){const t={};for(const[r,i]of Object.entries(n??{})){const s=sz(i,e);
44s&&(t[r]=s)}return t}function az(n){if(Array.isArray(n))return{value:n,type:"array"};const e=typeof n=="string"?"string":typeof n=="boolean"?"boolean":typeof n=="number"&&!Number.isNaN(n)?Number.isInteger(n)?"integer":"double":null;if(e)return{value:n,type:e}}function _s(){const n=Qm();return Yw(n).getCurrentScope()}function xs(){const n=Qm();return Yw(n).getIsolationScope()}function oz(){return gc("globalScope",()=>new bs)}function QA(...n){const e=Qm(),t=Yw(e);if(n.length===2){const[r,i]=n;return r?t.withSetScope(r,i):t.withScope(i)}return t.withScope(n[0])}function Pn(){return _s().getClient()}function lz(n){const e=n.getPropagationContext(),{traceId:t,parentSpanId:r,propagationSpanId:i}=e,s={trace_id:t,span_id:i||XA()};return r&&(s.parent_span_id=r),s}const uz="sentry.source",cz="sentry.sample_rate",dz="sentry.previous_trace_sample_rate",ZA="sentry.op",fz="sentry.origin",JA="sentry.profile_id",ej="sentry.exclusive_time",hz="gen_ai.conversation.id",pz=0,gz=1,mz="_sentryScope",vz="_sentryIsolationScope";function j0(n){const e=n;return{scope:e[mz],isolationScope:qA(e[vz])}}const eC="sentry-";function bz(n){const e=yz(n);if(!e)return;const t=Object.entries(e).reduce((r,[i,s])=>{if(i.startsWith(eC)){const a=i.slice(eC.length);r[a]=s}return r},{});if(Object.keys(t).length>0)return t}function yz(n){if(!(!n||!Us(n)&&!Array.isArray(n)))return Array.isArray(n)?n.reduce((e,t)=>{const r=tC(t);return Object.entries(r).forEach(([i,s])=>{e[i]=s}),e},{}):tC(n)}function tC(n){return n.split(",").map(e=>{const t=e.indexOf("=");if(t===-1)return[];const r=e.slice(0,t),i=e.slice(t+1);return[r,i].map(s=>{try{return decodeURIComponent(s.trim())}catch{return}})}).reduce((e,[t,r])=>(t&&r&&(e[t]=r),e),{})}const _z=/^o(\d+)\./,xz=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function wz(n){return n==="http"||n==="https"}function yc(n,e=!1){const{host:t,path:r,pass:i,port:s,projectId:a,protocol:o,publicKey:l}=n;return`${o}://${l}${e&&i?`:${i}`:""}@${t}${s?`:${s}`:""}/${r&&`${r}/`}${a}`}function Sz(n){const e=xz.exec(n);if(!e){mc(()=>{console.error(`Invalid Sentry Dsn: ${n}`)});return}const[t,r,i="",s="",a="",o=""]=e.slice(1);let l="",u=o;const h=u.split("/");if(h.length>1&&(l=h.slice(0,-1).join("/"),u=h.pop()),u){const f=u.match(/^\d+/);f&&(u=f[0])}return tj({host:s,pass:i,path:l,projectId:u,port:a,protocol:t,publicKey:r})}function tj(n){return{protocol:n.protocol,publicKey:n.publicKey||"",pass:n.pass||"",host:n.host,port:n.port||"",path:n.path||"",projectId:n.projectId}}function Dz(n){if(!Le)return!0;const{port:e,projectId:t,protocol:r}=n;return["protocol","publicKey","host","projectId"].find(a=>n[a]?!1:(Se.error(`Invalid Sentry Dsn: ${a} missing`),!0))?!1:t.match(/^\d+$/)?wz(r)?e&&isNaN(parseInt(e,10))?(Se.error(`Invalid Sentry Dsn: Invalid port ${e}`),!1):!0:(Se.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(Se.error(`Invalid Sentry Dsn: Invalid projectId ${t}`),!1)}function kz(n){const e=n.match(_z);return e==null?void 0:e[1]}function Pz(n){const e=n.getOptions(),{host:t}=n.getDsn()||{};let r;return e.orgId?r=String(e.orgId):t&&(r=kz(t)),r}function nj(n){const e=typeof n=="string"?Sz(n):tj(n);if(!(!e||!Dz(e)))return e}function Cz(n){if(typeof n=="boolean")return Number(n);const e=typeof n=="string"?parseFloat(n):n;if(!(typeof e!="number"||isNaN(e)||e<0||e>1))return e}const rj=1;let nC=!1;function Ez(n){const{spanId:e,traceId:t,isRemote:r}=n.spanContext(),i=r?e:nv(n).parent_span_id,s=j0(n).scope,a=r?(s==null?void 0:s.getPropagationContext().propagationSpanId)||XA():e;return{parent_span_id:i,span_id:a,trace_id:t}}function Mz(n){if(n&&n.length>0)return n.map(({context:{spanId:e,traceId:t,traceFlags:r,...i},attributes:s})=>({span_id:e,trace_id:t,sampled:r===rj,attributes:s,...i}))}function rC(n){return typeof n=="number"?iC(n):Array.isArray(n)?n[0]+n[1]/1e9:n instanceof Date?iC(n.getTime()):Gs()}function iC(n){return n>9999999999?n/1e3:n}function nv(n){if(jz(n))return n.getSpanJSON();const{spanId:e,traceId:t}=n.spanContext();if(Az(n)){const{attributes:r,startTime:i,name:s,endTime:a,status:o,links:l}=n;return{span_id:e,trace_id:t,data:r,description:s,parent_span_id:Tz(n),start_timestamp:rC(i),timestamp:rC(a)||void 0,status:Iz(o),op:r[ZA],origin:r[fz],links:Mz(l)}}return{span_id:e,trace_id:t,start_timestamp:0,data:{}}}function Tz(n){var e;return"parentSpanId"in n?n.parentSpanId:"parentSpanContext"in n?(e=n.parentSpanContext)==null?void 0:e.spanId:void 0}function Oz(n){var e;return{...n,attributes:JP(n.attributes),links:(e=n.links)==null?void 0:e.map(t=>({...t,attributes:JP(t.attributes)}))}}function Az(n){const e=n;return!!e.attributes&&!!e.startTime&&!!e.name&&!!e.endTime&&!!e.status}function jz(n){return typeof n.getSpanJSON=="function"}function Rz(n){const{traceFlags:e}=n.spanContext();return e===rj}function Iz(n){if(!(!n||n.code===pz))return n.code===gz?"ok":n.message||"internal_error"}const Nz="_sentryRootSpan",ij=Fz;function Fz(n){return n[Nz]||n}function sC(){nC||(mc(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),nC=!0)}function aC(n){var t;if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const e=n||((t=Pn())==null?void 0:t.getOptions());return!!e&&(e.tracesSampleRate!=null||!!e.tracesSampler)}function oC(n){Se.log(`Ignoring span ${n.op} - ${n.description} because it matches \`ignoreSpans\`.`)}function lC(n,e){if(!(e!=null&&e.length))return!1;for(const t of e){if($z(t)){if(n.description&&Ad(n.description,t))return Le&&oC(n),!0;continue}const r=!!t.attributes&&Object.keys(t.attributes).length>0;if(!t.name&&!t.op&&!r)continue;const i=t.name?n.description&&Ad(n.description,t.name):!0,s=t.op?n.op&&Ad(n.op,t.op):!0,a=t.attributes?Object.entries(t.attributes).every(([o,l])=>{var u;return Lz((u=n.attributes)==null?void 0:u[o],l)}):!0;if(i&&s&&a)return Le&&oC(n),!0}return!1}function Lz(n,e){return typeof n=="string"&&(typeof e=="string"||e instanceof RegExp)?Ad(n,e):Array.isArray(n)&&Array.isArray(e)?n.length===e.length&&n.every((t,r)=>t===e[r]):n===e}function Bz(n,e){const t=e.parent_span_id,r=e.span_id;if(t)for(const i of n)i.parent_span_id===r&&(i.parent_span_id=t)}function $z(n){return typeof n=="string"||n instanceof RegExp}const Vz=Symbol.for("sentry.nonRecordingSpan");function Yz(n){return!!n&&n[Vz]===!0}const Hw="production",Hz="_frozenDsc";function sj(n,e){const t=e.getOptions(),{publicKey:r}=e.getDsn()||{},i={environment:t.environment||Hw,release:t.release,public_key:r,trace_id:n,org_id:Pz(e)};return e.emit("createDsc",i),i}function aj(n,e){const t=e.getPropagationContext();return t.dsc||sj(t.traceId,n)}function zz(n){var x;const e=Pn();if(!e)return{};const t=ij(n),r=nv(t),i=r.data,s=t.spanContext().traceState,a=(s==null?void 0:s.get("sentry.sample_rate"))??i[cz]??i[dz];
44function o(_){return(typeof a=="number"||typeof a=="string")&&(_.sample_rate=`${a}`),_}const l=t[Hz];if(l)return o(l);const u=Yz(t),h=u&&t.dropReason==="ignored";if(u&&(!aC(e.getOptions())||h)){const _=j0(t).scope;if(_){const S={...aj(e,_)};return h&&(S.sampled="false"),o(S)}}const f=s==null?void 0:s.get("sentry.dsc"),m=f&&bz(f);if(m)return o(m);const g=sj(n.spanContext().traceId,e),y=i[uz]??i["sentry.segment.name.source"],v=r.description;return y!=="url"&&v&&(g.transaction=v),aC()&&(g.sampled=String(Rz(t)),g.sample_rand=(s==null?void 0:s.get("sentry.sample_rand"))??((x=j0(t).scope)==null?void 0:x.getPropagationContext().sampleRand.toString())),o(g),e.emit("createDsc",g,t),g}function Wz(n){return!!n&&typeof n=="function"&&"_streamed"in n&&!!n._streamed}function _c(n,e=[]){return[n,e]}function uC(n,e){const[t,r]=n;return[t,[...r,e]]}function R0(n,e){const t=n[1];for(const r of t){const i=r[0].type;if(e(r,i))return!0}return!1}function Uz(n,e){return R0(n,(t,r)=>e.includes(r))}function I0(n){const e=Zm(Je);return e.encodePolyfill?e.encodePolyfill(n):new TextEncoder().encode(n)}function Gz(n){const[e,t]=n;let r=JSON.stringify(e);function i(s){typeof r=="string"?r=typeof s=="string"?r+s:[I0(r),s]:r.push(typeof s=="string"?I0(s):s)}for(const s of t){const[a,o]=s;if(i(` 45${JSON.stringify(a)} 46`),typeof o=="string"||o instanceof Uint8Array)i(o);else{let l;try{l=JSON.stringify(o)}catch{l=JSON.stringify($s(o))}i(l)}}return typeof r=="string"?r:Xz(r)}function Xz(n){const e=n.reduce((i,s)=>i+s.length,0),t=new Uint8Array(e);let r=0;for(const i of n)t.set(i,r),r+=i.length;return t}
46function qz(n){const e=typeof n.data=="string"?I0(n.data):n.data;return[{type:"attachment",length:e.length,filename:n.filename,content_type:n.contentType,attachment_type:n.attachmentType},e]}const oj={sessions:"session",event:"error",client_report:"internal",user_report:"default",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",raw_security:"security",log:"log_item",trace_metric:"metric"};function Kz(n){return n in oj}function cC(n){return Kz(n)?oj[n]:n}function lj(n){if(!(n!=null&&n.sdk))return;const{name:e,version:t}=n.sdk;return{name:e,version:t}}function Qz(n,e,t,r){var s;const i=(s=n.sdkProcessingMetadata)==null?void 0:s.dynamicSamplingContext;return{event_id:n.event_id,sent_at:new Date(bc()).toISOString(),...e&&{sdk:e},...!!t&&r&&{dsn:yc(r)},...i&&{trace:i}}}function Zz(n,e){var r,i,s,a;if(!e)return n;const t=n.sdk||{};return n.sdk={...t,name:t.name||e.name,version:t.version||e.version,integrations:[...((r=n.sdk)==null?void 0:r.integrations)||[],...e.integrations||[]],packages:[...((i=n.sdk)==null?void 0:i.packages)||[],...e.packages||[]],settings:(s=n.sdk)!=null&&s.settings||e.settings?{...(a=n.sdk)==null?void 0:a.settings,...e.settings}:void 0},n}function Jz(n,e,t,r){const i=lj(t),s={sent_at:new Date(bc()).toISOString(),...i&&{sdk:i},...!!r&&e&&{dsn:yc(e)}},a="aggregates"in n?[{type:"sessions"},n]:[{type:"session"},n.toJSON()];return _c(s,[a])}function e6(n,e,t,r){const i=lj(t),s=n.type&&n.type!=="replay_event"?n.type:"event";Zz(n,t==null?void 0:t.sdk);const a=Qz(n,i,r,e);return delete n.sdkProcessingMetadata,_c(a,[[{type:s},n]])}function t6(n){return n.getOptions().traceLifecycle==="stream"}function n6(n,e){const{fingerprint:t,span:r,breadcrumbs:i,sdkProcessingMetadata:s}=e;r6(n,e),r&&a6(n,r),o6(n,t),i6(n,i),s6(n,s)}function dC(n,e){const{extra:t,tags:r,attributes:i,user:s,contexts:a,level:o,sdkProcessingMetadata:l,breadcrumbs:u,fingerprint:h,eventProcessors:f,attachments:m,propagationContext:g,transactionName:y,span:v}=e;ed(n,"extra",t),ed(n,"tags",r),ed(n,"attributes",i),ed(n,"user",s),ed(n,"contexts",a),n.sdkProcessingMetadata=zf(n.sdkProcessingMetadata,l,2),o&&(n.level=o),y&&(n.transactionName=y),v&&(n.span=v),u.length&&(n.breadcrumbs=[...n.breadcrumbs,...u]),h.length&&(n.fingerprint=[...n.fingerprint,...h]),f.length&&(n.eventProcessors=[...n.eventProcessors,...f]),m.length&&(n.attachments=[...n.attachments,...m]),n.propagationContext={...n.propagationContext,...g}}function ed(n,e,t){n[e]=zf(n[e],t,1)}function uj(n,e){const t=oz().getScopeData();return n&&dC(t,n.getScopeData()),e&&dC(t,e.getScopeData()),t}function r6(n,e){const{extra:t,tags:r,user:i,contexts:s,level:a,transactionName:o}=e;Object.keys(t).length&&(n.extra={...t,...n.extra}),Object.keys(r).length&&(n.tags={...r,...n.tags}),Object.keys(i).length&&(n.user={...i,...n.user}),Object.keys(s).length&&(n.contexts={...s,...n.contexts}),a&&(n.level=a),o&&n.type!=="transaction"&&(n.transaction=o)}function i6(n,e){const t=[...n.breadcrumbs||[],...e];n.breadcrumbs=t.length?t:void 0}function s6(n,e){n.sdkProcessingMetadata={...n.sdkProcessingMetadata,...e}}function a6(n,e){n.contexts={trace:Ez(e),...n.contexts},n.sdkProcessingMetadata={dynamicSamplingContext:zz(e),...n.sdkProcessingMetadata};const t=ij(e),r=nv(t).description;r&&!n.transaction&&n.type==="transaction"&&(n.transaction=r)}function o6(n,e){n.fingerprint=n.fingerprint?Array.isArray(n.fingerprint)?n.fingerprint:[n.fingerprint]:[],e&&(n.fingerprint=n.fingerprint.concat(e)),n.fingerprint.length||delete n.fingerprint}const l6="url.full";function cj(n,e){const t=n.attributes??(n.attributes={});Object.entries(e).forEach(([r,i])=>{i!=null&&!(r in t)&&(t[r]=i)})}const Fy=0,fC=1,hC=2;function Wf(n){return new sf(e=>{e(n)})}function dj(n){return new sf((e,t)=>{t(n)})}class sf{constructor(e){this._state=Fy,this._handlers=[],this._runExecutor(e)}then(e,t){return new sf((r,i)=>{this._handlers.push([!1,s=>{if(!e)r(s);else try{r(e(s))}catch(a){i(a)}},s=>{if(!t)i(s);else try{r(t(s))}catch(a){i(a)}}]),this._executeHandlers()})}catch(e){return this.then(t=>t,e)}finally(e){return new sf((t,r)=>{let i,s;return this.then(a=>{s=!1,i=a,e&&e()},a=>{s=!0,i=a,e&&e()}).then(()=>
46{if(s){r(i);return}t(i)})})}_executeHandlers(){if(this._state===Fy)return;const e=this._handlers.slice();this._handlers=[],e.forEach(t=>{t[0]||(this._state===fC&&t[1](this._value),this._state===hC&&t[2](this._value),t[0]=!0)})}_runExecutor(e){const t=(s,a)=>{if(this._state===Fy){if(Vf(a)){a.then(r,i);return}this._state=s,this._value=a,this._executeHandlers()}},r=s=>{t(fC,s)},i=s=>{t(hC,s)};try{e(r,i)}catch(s){i(s)}}}function u6(n,e,t,r=0){try{const i=N0(e,t,n,r);return Vf(i)?i:Wf(i)}catch(i){return dj(i)}}function N0(n,e,t,r){const i=t[r];if(!n||!i)return n;const s=i({...n},e);return Le&&s===null&&Se.log(`Event processor "${i.id||"?"}" dropped event`),Vf(s)?s.then(a=>N0(a,e,t,r+1)):N0(s,e,t,r+1)}let Rs,pC,gC,Oa;function c6(n){const e=Je._sentryDebugIds,t=Je._debugIds;if(!e&&!t)return{};const r=e?Object.keys(e):[],i=t?Object.keys(t):[];if(Oa&&r.length===pC&&i.length===gC)return Oa;pC=r.length,gC=i.length,Oa={},Rs||(Rs={});const s=(a,o)=>{for(const l of a){const u=o[l],h=Rs==null?void 0:Rs[l];if(h&&Oa&&u)Oa[h[0]]=u,Rs&&(Rs[l]=[h[0],u]);else if(u){const f=n(l);for(let m=f.length-1;m>=0;m--){const g=f[m],y=g==null?void 0:g.filename;if(y&&Oa&&Rs){Oa[y]=u,Rs[l]=[y,u];break}}}}};return e&&s(r,e),t&&s(i,t),Oa}function d6(n,e,t,r,i,s){const{normalizeDepth:a=3,normalizeMaxBreadth:o=1e3}=n,l={...e,event_id:e.event_id||t.event_id||di(),timestamp:e.timestamp||Hf()},u=t.integrations||n.integrations.map(_=>_.name);f6(l,n),g6(l,u),i&&i.emit("applyFrameMetadata",e),e.type===void 0&&h6(l,n.stackParser);const h=v6(r,t.captureContext);t.mechanism&&Qo(l,t.mechanism);const f=i?i.getEventProcessors():[],m=uj(s,h),g=[...t.attachments||[],...m.attachments];g.length&&(t.attachments=g),n6(l,m);const y=[...f,...m.eventProcessors];return(t.data&&t.data.__sentry__===!0?Wf(l):u6(y,l,t)).then(_=>(_&&p6(_),typeof a=="number"&&a>0?m6(_,a,o):_))}function f6(n,e){var o,l;const{environment:t,release:r,dist:i,maxValueLength:s}=e;n.environment=n.environment||t||Hw,!n.release&&r&&(n.release=r),!n.dist&&i&&(n.dist=i);const a=n.request;a!=null&&a.url&&s&&(a.url=T0(a.url,s)),s&&((l=(o=n.exception)==null?void 0:o.values)==null||l.forEach(u=>{u.value&&(u.value=T0(u.value,s))}))}function h6(n,e){var r,i;const t=c6(e);(i=(r=n.exception)==null?void 0:r.values)==null||i.forEach(s=>{var a,o;(o=(a=s.stacktrace)==null?void 0:a.frames)==null||o.forEach(l=>{l.filename&&(l.debug_id=t[l.filename])})})}function p6(n){var r,i;const e={};if((i=(r=n.exception)==null?void 0:r.values)==null||i.forEach(s=>{var a,o;(o=(a=s.stacktrace)==null?void 0:a.frames)==null||o.forEach(l=>{l.debug_id&&(l.abs_path?e[l.abs_path]=l.debug_id:l.filename&&(e[l.filename]=l.debug_id),delete l.debug_id)})}),Object.keys(e).length===0)return;n.debug_meta=n.debug_meta||{},n.debug_meta.images=n.debug_meta.images||[];const t=n.debug_meta.images;Object.entries(e).forEach(([s,a])=>{t.push({type:"sourcemap",code_file:s,debug_id:a})})}function g6(n,e){e.length>0&&(n.sdk=n.sdk||{},n.sdk.integrations=[...n.sdk.integrations||[],...e])}function m6(n,e,t){var i,s;if(!n)return null;const r={...n,...n.breadcrumbs&&{breadcrumbs:n.breadcrumbs.map(a=>({...a,...a.data&&{data:$s(a.data,e,t)}}))},...n.user&&{user:$s(n.user,e,t)},...n.contexts&&{contexts:$s(n.contexts,e,t)},...n.extra&&{extra:$s(n.extra,e,t)}};return(i=n.contexts)!=null&&i.trace&&r.contexts&&(r.contexts.trace=n.contexts.trace,n.contexts.trace.data&&(r.contexts.trace.data=$s(n.contexts.trace.data,e,t))),n.spans&&(r.spans=n.spans.map(a=>({...a,...a.data&&{data:$s(a.data,e,t)}}))),(s=n.contexts)!=null&&s.flags&&r.contexts&&(r.contexts.flags=$s(n.contexts.flags,3,t)),r}function v6(n,e){if(!e)return n;const t=n?n.clone():new bs;return t.update(e),t}function b6(n){if(n)return y6(n)?{captureContext:n}:x6(n)?{captureContext:n}:n}function y6(n){return n instanceof bs||typeof n=="function"}const _6=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function x6(n){return Object.keys(n).some(e=>_6.includes(e))}function fj(n,e){return _s().captureException(n,b6(e))}function hj(n,e){return _s().captureEvent(n,e)}function w6(n,e){xs().setContext(n,e)}function S6(n){xs().setUser(n)}function D6(){return xs().lastEventId()}function mC(n){const e=xs(),{user:t}=uj(e,_s()),{userAgent:r}=Je.navigator||{},i=WH({user:t,...r&&{userAgent:r},...n}),s=e.getSession();return(s==null?void 0:s.status)==="ok"&&Wu(s,{status:"exited"}),pj(),e.setSession(i),i}function pj(){const n=xs(),t=_s().getSession()||n.getSession();t&&UH(t),gj(),n.setSession()}function gj(){const n=xs(),e=Pn(),t=n.getSession();t&&e&&e.captureSession(t)}function Ly(n=!1){if(n){pj();return}gj()}function mj(n){return typeof n=="object"&&typeof n.unref=="function"&&n.unref(),n}const k6="7";function vj(n){const e=n.protocol?`${n.protocol}
46:`:"",t=n.port?`:${n.port}`:"";return`${e}//${n.host}${t}${n.path?`/${n.path}`:""}/api/`}function P6(n){return`${vj(n)}${n.projectId}/envelope/`}function C6(n,e){const t={sentry_version:k6};return n.publicKey&&(t.sentry_key=n.publicKey),e&&(t.sentry_client=`${e.name}/${e.version}`),new URLSearchParams(t).toString()}function E6(n,e,t){return e||`${P6(n)}?${C6(n,t)}`}function M6(n,e){const t=nj(n);if(!t)return"";const r=`${vj(t)}embed/error-page/`;let i=`dsn=${yc(t)}`;for(const s in e)if(s!=="dsn"&&s!=="onClose")if(s==="user"){const a=e.user;if(!a)continue;a.name&&(i+=`&name=${encodeURIComponent(a.name)}`),a.email&&(i+=`&email=${encodeURIComponent(a.email)}`)}else i+=`&${encodeURIComponent(s)}=${encodeURIComponent(e[s])}`;return`${r}?${i}`}const vC=[];function T6(n){const e={};return n.forEach(t=>{const{name:r}=t,i=e[r];i&&!i.isDefaultInstance&&t.isDefaultInstance||(e[r]=t)}),Object.values(e)}function O6(n){const e=n.defaultIntegrations||[],t=n.integrations;e.forEach(i=>{i.isDefaultInstance=!0});let r;if(Array.isArray(t))r=[...e,...t];else if(typeof t=="function"){const i=t(e);r=Array.isArray(i)?i:[i]}else r=e;return T6(r)}function A6(n,e){const t={};return e.forEach(r=>{r!=null&&r.beforeSetup&&r.beforeSetup(n)}),e.forEach(r=>{r&&bj(n,r,t)}),t}function bC(n,e){for(const t of e)t!=null&&t.afterAllSetup&&t.afterAllSetup(n)}function bj(n,e,t){if(t[e.name]){Le&&Se.log(`Integration skipped because it was already installed: ${e.name}`);return}if(t[e.name]=e,!vC.includes(e.name)&&typeof e.setupOnce=="function"&&(e.setupOnce(),vC.push(e.name)),e.setup&&typeof e.setup=="function"&&e.setup(n),typeof e.preprocessEvent=="function"){const r=e.preprocessEvent.bind(e);n.on("preprocessEvent",(i,s)=>r(i,s,n))}if(typeof e.processEvent=="function"){const r=e.processEvent.bind(e),i=Object.assign((s,a)=>r(s,a,n),{id:e.name});n.addEventProcessor(i)}["processSpan","processSegmentSpan"].forEach(r=>{const i=e[r];typeof i=="function"&&n.on(r,s=>i.call(e,s,n))}),Le&&Se.log(`Integration installed: ${e.name}`)}function j6(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function R6(){/*! __SENTRY_SDK_SOURCE__ */return"npm"}function I6(){return!j6()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function zw(){return typeof window<"u"&&(!I6()||N6())}function N6(){const n=Je.process;return(n==null?void 0:n.type)==="renderer"}function F6(n,e){const t=e?"auto":"never";return[{type:"log",item_count:n.length,content_type:"application/vnd.sentry.items.log+json"},{version:2,...zw()&&{ingest_settings:{infer_ip:t,infer_user_agent:t}},items:n}]}function L6(n,e,t,r,i){const s={};return e!=null&&e.sdk&&(s.sdk={name:e.sdk.name,version:e.sdk.version}),t&&r&&(s.dsn=yc(r)),_c(s,[F6(n,i)])}function B6(n,e){const t=e??$6(n)??[];if(t.length===0)return;const r=n.getOptions(),i=L6(t,r._metadata,r.tunnel,n.getDsn(),n.getDataCollectionOptions().userInfo);yj().set(n,[]),n.emit("flushLogs"),n.sendEnvelope(i)}function $6(n){return yj().get(n)}function yj(){return gc("clientToLogBufferMap",()=>new WeakMap)}function V6(n,e){const t=e?"auto":"never";return[{type:"trace_metric",item_count:n.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{version:2,...zw()&&{ingest_settings:{infer_ip:t,infer_user_agent:t}},items:n}]}function Y6(n,e,t,r,i){const s={};return e!=null&&e.sdk&&(s.sdk={name:e.sdk.name,version:e.sdk.version}),t&&r&&(s.dsn=yc(r)),_c(s,[V6(n,i)])}function H6(n,e){const t=e??z6(n)??[];if(t.length===0)return;const r=n.getOptions(),i=Y6(t,r._metadata,r.tunnel,n.getDsn(),n.getDataCollectionOptions().userInfo);_j().set(n,[]),n.emit("flushMetrics"),n.sendEnvelope(i)}function z6(n){return _j().get(n)}function _j(){return gc("clientToMetricBufferMap",()=>new WeakMap)}function W6(n){const e={trace_id:n.trace_id,span_id:n.span_id,parent_span_id:n.parent_span_id,name:n.description||"",start_timestamp:n.start_timestamp,end_timestamp:n.timestamp||n.start_timestamp,status:!n.status||n.status==="ok"||n.status==="cancelled"?"ok":"error",is_segment:!1,attributes:{...n.data},links:n.links};return Oz(e)}function U6(n,e){var s,a,o;if(n.type!=="transaction"||!((s=n.spans)!=null&&s.length)||!((a=n.sdkProcessingMetadata)!=null&&a.hasGenAiSpans)||e.getOptions().streamGenAiSpans===!1||t6(e))return;const t=[],r=[];for(const l of n.spans)(o=l.op)!=null&&o.startsWith("gen_ai.")?t.push(W6(l)):r.push(l);if(t.length===0)return;n.spans=r;const i=e.getDataCollectionOptions().userInfo?"auto":"never";return[{type:"span",item_count:t.length,content_type:"application/vnd.sentry.items.span.v2+json"},{version:2,...zw()&&{ingest_settings:{infer_ip:i,infer_user_agent:i}},items:t}]}const Ww=Symbol.for("SentryBufferFullError");function Uw(n=100){const e=new Set;function t(){return e.size<n}function r(a){e.delete(a)}function i(a){if(!t())return dj(Ww);const o=a();return e.add(o),o.then(()=>r(o),()=>r(o)),o}function s(a){if(!e.size)return Wf(!0);const o=Promise.allSettled(Array.from(e)).then(()=>!0);if(!a)return o;const l=[o,new Promise(u=>mj(setTimeout(()=>u(!1),a)))];return Promise.race(l)}return{get $(){return Array.from(e)},add:i,drain:s}}const G6=60*1e3;function X6(n,e=bc()){const t=parseInt(`${n}`,10);if(!isNaN(t))return t*1e3;const r=Date.parse(`${n}`);return isNaN(r)?G6:r-e}function q6(n,e){return n[e]||n.all||0}function K6(n,e,t=bc()){return q6(n,e)>t}function Q6(n,{statusCode:e,headers:t},r=bc()){const i={...n},s=t==null?void 0:t["x-sentry-rate-limits"],a=t==null?void 0:t["retry-after"];if(s)for(const o of s.trim().split(",")){const[l,u,,,h]=o.split(":",5),f=parseInt(l,10),m=(isNaN(f)?60:f)*1e3;if(!u)i.all=r+m;else for(const g of u.split(";
46"))g==="metric_bucket"?(!h||h.split(";").includes("custom"))&&(i[g]=r+m):i[g]=r+m}else a?i.all=r+X6(a,r):e===429&&(i.all=r+60*1e3);return i}const xj=64;function Z6(n,e,t=Uw(n.bufferSize||xj)){let r={};const i=a=>t.drain(a);function s(a){const o=[];if(R0(a,(f,m)=>{const g=cC(m);K6(r,g)?n.recordDroppedEvent("ratelimit_backoff",g):o.push(f)}),o.length===0)return Promise.resolve({});const l=_c(a[0],o),u=f=>{if(Uz(l,["client_report"])){Le&&Se.warn(`Dropping client report. Will not send outcomes (reason: ${f}).`);return}R0(l,(m,g)=>{n.recordDroppedEvent(f,cC(g))})},h=()=>e({body:Gz(l)}).then(f=>f.statusCode===413?(Le&&Se.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),u("send_error"),f):(Le&&f.statusCode!==void 0&&(f.statusCode<200||f.statusCode>=300)&&Se.warn(`Sentry responded with status code ${f.statusCode} to sent event.`),r=Q6(r,f),f),f=>{throw u("network_error"),Le&&Se.error("Encountered error running transport request:",f),f});return t.add(h).then(f=>f,f=>{if(f===Ww)return Le&&Se.error("Skipped sending event because buffer is full."),u("queue_overflow"),Promise.resolve({});throw f})}return{send:s,flush:i}}function J6(n,e,t){const r=[{type:"client_report"},{timestamp:t||Hf(),discarded_events:n}];return _c(e?{dsn:e}:{},[r])}function wj(n){const e=[];n.message&&e.push(n.message);try{const t=n.exception.values[n.exception.values.length-1];t!=null&&t.value&&(e.push(t.value),t.type&&e.push(`${t.type}: ${t.value}`))}catch{}return e}function eW(n){var l;const{trace_id:e,parent_span_id:t,span_id:r,status:i,origin:s,data:a,op:o}=((l=n.contexts)==null?void 0:l.trace)??{};return{data:a??{},description:n.transaction,op:o,parent_span_id:t,span_id:r??"",start_timestamp:n.start_timestamp??0,status:i,timestamp:n.timestamp,trace_id:e??"",origin:s,profile_id:a==null?void 0:a[JA],exclusive_time:a==null?void 0:a[ej],measurements:n.measurements,is_segment:!0}}function tW(n){return{type:"transaction",timestamp:n.timestamp,start_timestamp:n.start_timestamp,transaction:n.description,contexts:{trace:{trace_id:n.trace_id,span_id:n.span_id,parent_span_id:n.parent_span_id,op:n.op,status:n.status,origin:n.origin,data:{...n.data,...n.profile_id&&{[JA]:n.profile_id},...n.exclusive_time&&{[ej]:n.exclusive_time}}}},measurements:n.measurements}}const dp=["forwarded","-ip","remote-","via","-user"];function nW(n){return n===!0?{userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],urlQueryParams:!0,graphQL:{document:!0,variables:!0},genAI:{inputs:!0,outputs:!0},databaseQueryData:!0,stackFrameVariables:!0,frameContextLines:7}:{userInfo:!1,cookies:{deny:dp},httpHeaders:{request:{deny:dp},response:{deny:dp}},httpBodies:[],urlQueryParams:{deny:dp},graphQL:{document:!0,variables:!0},genAI:{inputs:!1,outputs:!1},databaseQueryData:!1,stackFrameVariables:!0,frameContextLines:7}}const rW={userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],urlQueryParams:!0,graphQL:{document:!0,variables:!0},genAI:{inputs:!0,outputs:!0},databaseQueryData:!0,stackFrameVariables:!0,frameContextLines:5};function iW(n){var r,i,s,a,o,l;const e=n.dataCollection!=null?rW:nW(n.sendDefaultPii),t=n.dataCollection??{};return{userInfo:t.userInfo??e.userInfo,cookies:t.cookies??e.cookies,httpHeaders:{request:((r=t.httpHeaders)==null?void 0:r.request)??e.httpHeaders.request,response:((i=t.httpHeaders)==null?void 0:i.response)??e.httpHeaders.response},httpBodies:t.httpBodies??e.httpBodies,urlQueryParams:t.urlQueryParams??t.queryParams??e.urlQueryParams,graphQL:{document:((s=t.graphQL)==null?void 0:s.document)??e.graphQL.document,variables:((a=t.graphQL)==null?void 0:a.variables)??e.graphQL.variables},genAI:{inputs:((o=t.genAI)==null?void 0:o.inputs)??e.genAI.inputs,outputs:((l=t.genAI)==null?void 0:l.outputs)??e.genAI.outputs},databaseQueryData:t.databaseQueryData??e.databaseQueryData,stackFrameVariables:t.stackFrame
46Variables??e.stackFrameVariables,frameContextLines:t.frameContextLines??e.frameContextLines}}const yC="Not capturing exception because it's already been captured.",_C="Discarded session because of missing or non-string release",Sj=Symbol.for("SentryInternalError"),Dj=Symbol.for("SentryDoNotSendEventError"),sW=5e3;function rg(n){return{message:n,[Sj]:!0}}function By(n){return{message:n,[Dj]:!0}}function xC(n){return Jm(n)&&Sj in n}function wC(n){return Jm(n)&&Dj in n}function SC(n,e,t,r,i){let s=0,a,o=!1;n.on(t,()=>{s=0,clearTimeout(a),o=!1}),n.on(e,l=>{if(s+=r(l),s>=8e5)i(n);else if(!o){const u=n.getOptions()._flushInterval??sW;u>0&&(o=!0,a=mj(setTimeout(()=>{i(n)},u)))}}),n.on("flush",()=>{i(n)})}class aW{constructor(e){var r,i,s;if(this._options=e,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=Uw(((r=e.transportOptions)==null?void 0:r.bufferSize)??xj),this._dataCollection=iW(e),e.dsn?this._dsn=nj(e.dsn):Le&&Se.warn("No DSN provided, client will not send events."),this._dsn){const a=E6(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:a})}this._options.enableLogs=this._options.enableLogs??((i=this._options._experiments)==null?void 0:i.enableLogs)??!0,this._options.enableLogs&&SC(this,"afterCaptureLog","flushLogs",cW,B6),(this._options.enableMetrics??((s=this._options._experiments)==null?void 0:s.enableMetrics)??!0)&&SC(this,"afterCaptureMetric","flushMetrics",uW,H6)}captureException(e,t,r){const i=di();if(UP(e))return Le&&Se.log(yC),i;const s={event_id:i,...t};return this._process(()=>this.eventFromException(e,s).then(a=>this._captureEvent(a,s,r)).then(a=>a),"error"),s.event_id}captureMessage(e,t,r,i){const s={event_id:di(),...r},a=Bw(e)?e:String(e),o=$f(e),l=o?this.eventFromMessage(a,t,s):this.eventFromException(e,s);return this._process(()=>l.then(u=>this._captureEvent(u,s,i)),o?"unknown":"error"),s.event_id}captureEvent(e,t,r){const i=di();if(t!=null&&t.originalException&&UP(t.originalException))return Le&&Se.log(yC),i;const s={event_id:i,...t},a=e.sdkProcessingMetadata||{},o=a.capturedSpanScope,l=a.capturedSpanIsolationScope,u=DC(e.type);return this._process(()=>this._captureEvent(e,s,o||r,l),u),s.event_id}captureSession(e){this.sendSession(e),Wu(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getDataCollectionOptions(){return this._dataCollection}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){const t=this._transport;if(this.emit("flush"),!t)return!0;const r=await this._isClientDoneProcessing(e),i=await t.flush(e);return r&&i}async close(e){const t=await this.flush(e);return this.getOptions().enabled=!1,this.emit("close"),t}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(e){return this._integrations[e]}getIntegrationNames(){return Object.keys(this._integrations)}addIntegration(e){const t=this._integrations[e.name];!t&&e.beforeSetup&&e.beforeSetup(this),bj(this,e,this._integrations),t||bC(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);const r=U6(e,this);let i=e6(e,this._dsn,this._options._metadata,this._options.tunnel);for(const s of t.attachments||[])i=uC(i,qz(s));r&&(i=uC(i,r)),this.sendEnvelope(i).then(s=>this.emit("afterSendEvent",e,s))}sendSession(e){const{release:t,environment:r=Hw}=this._options;if("aggregates"in e){const s=e.attrs||{};if(!s.release&&!t){Le&&Se.warn(_C);return}s.release=s.release||t,s.environment=s.environment||r,e.attrs=s}else{if(!e.release&&!t){Le&&Se.warn(_C);return}e.release=e.release||t,e.environment=e.environment||r}this.emit("beforeSendSession",e);const i=Jz(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(i)}recordDroppedEvent(e,t,r=1){if(this._options.sendClientReports){const i=`${e}:${t}`;Le&&Se.log(`Recording outcome: "${i}"${r>1?` (${r} times)`:""}`),this._outcomes[i]=(this._outcomes[i]||0)+r}}on(e,t){const r=this._hooks[e]=this._hooks[e]||new Set,i=(...s)=>t(...s);return r.add(i),()=>{r.delete(i)}}emit(e,...t){const r=this._hooks[e];r&&r.forEach(i=>
46i(...t))}async sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)try{return await this._transport.send(e)}catch(t){return Le&&Se.error("Error while sending envelope:",t),{}}return Le&&Se.error("Transport disabled"),{}}registerCleanup(e){}dispose(){}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=A6(this,e),bC(this,e)}_updateSessionFromEvent(e,t){var l,u;let r=t.level==="fatal",i=!1;const s=(l=t.exception)==null?void 0:l.values;if(s){i=!0,r=!1;for(const h of s)if(((u=h.mechanism)==null?void 0:u.handled)===!1){r=!0;break}}const a=e.status==="ok";(a&&e.errors===0||a&&r)&&(Wu(e,{...r&&{status:"crashed"},errors:e.errors||Number(i||r)}),this.captureSession(e))}async _isClientDoneProcessing(e){let t=0;for(;!e||t<e;){if(await new Promise(r=>setTimeout(r,1)),!this._numProcessing)return!0;t++}return!1}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,t,r,i){const s=this.getOptions(),a=this.getIntegrationNames();return!t.integrations&&a.length&&(t.integrations=a),this.emit("preprocessEvent",e,t),e.type||i.setLastEventId(e.event_id||t.event_id),d6(s,e,t,r,this,i).then(o=>{var u;if(o===null)return o;this.emit("postprocessEvent",o,t),o.contexts={trace:{...(u=o.contexts)==null?void 0:u.trace,...lz(r)},...o.contexts};const l=aj(this,r);return o.sdkProcessingMetadata={dynamicSamplingContext:l,...o.sdkProcessingMetadata},o})}_captureEvent(e,t={},r=_s(),i=xs()){return Le&&F0(e)&&Se.log(`Captured error event \`${wj(e)[0]||"<unknown>"}\``),this._processEvent(e,t,r,i).then(s=>s.event_id,s=>{Le&&(wC(s)?Se.log(s.message):xC(s)?Se.warn(s.message):Se.warn(s))})}_processEvent(e,t,r,i){const s=this.getOptions(),{sampleRate:a}=s,o=kj(e),l=F0(e),h=`before send for type \`${e.type||"error"}\``,f=typeof a>"u"?void 0:Cz(a),m=DC(e.type);return this._prepareEvent(e,t,r,i).then(g=>{var x;if(g===null)throw this.recordDroppedEvent("event_processor",m),By("An event processor returned `null`, will not send event.");if(((x=t.data)==null?void 0:x.__sentry__)===!0)return g;const v=lW(this,s,g,t);return oW(v,h)}).then(g=>{var x;if(g===null){if(this.recordDroppedEvent("before_send",m),o){const S=1+(e.spans||[]).length;this.recordDroppedEvent("before_send","span",S)}throw By(`${h} returned \`null\`, will not send event.`)}const y=r.getSession()||i.getSession();if(l&&y&&this._updateSessionFromEvent(y,g),l&&typeof f=="number"&&Wg()>f)throw this.recordDroppedEvent("sample_rate","error"),By(`Discarding event because it's not included in the random sample (sampling rate = ${a})`);if(o){const _=((x=g.sdkProcessingMetadata)==null?void 0:x.spanCountBeforeProcessing)||0,S=g.spans?g.spans.length:0,w=_-S;w>0&&this.recordDroppedEvent("before_send","span",w)}const v=g.transaction_info;if(o&&v&&g.transaction!==e.transaction){const _="custom";g.transaction_info={...v,source:_}}return this.sendEvent(g,t),g}).then(null,g=>{throw wC(g)||xC(g)?g:(this.captureException(g,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:g}),rg(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. 47Reason: ${g}`))})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(r=>(this._numProcessing--,r),r=>(this._numProcessing--,r===Ww&&this.recordDroppedEvent("queue_overflow",t),r))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map(([t,r])=>{const[i,s]=t.split(":");return{reason:i,category:s,quantity:r}})}_flushOutcomes(){Le&&Se.log("Flushing outcomes...");const e=this._clearOutcomes();if(e.length===0){Le&&Se.log("No outcomes to send");return}if(!this._dsn){Le&&Se.log("No dsn provided, will not send outcomes");return}Le&&Se.log("Sending outcomes:",e);const t=J6(e,this._options.tunnel&&yc(this._dsn));this.sendEnvelope(t)}}function DC(n){return n==="replay_event"?"replay":n||"error"}function oW(n,e){const t=`${e} must return \`null\` or a valid event.`;if(Vf(n))return n.then(r=>{if(!rf(r)&&r!==null)throw rg(t);return r},r=>{throw rg(`${e} rejected with ${r}`)});if(!rf(n)&&n!==null)throw rg(t);return n}function lW(n,e,t,r){const{beforeSend:i,beforeSendTransaction:s,ignoreSpans:a}=e,o=!Wz(e.beforeSendSpan)&&e.beforeSendSpan;let l=t;if(F0(l)&&i)return i(l,r);if(kj(l)){if(o||a){const u=eW(l);if(a!=null&&a.length&&lC({description:u.description,op:u.op,attributes:u.data},a))return null;if(o){const h=o(u);h?l=zf(t,tW(h)):sC()}if(l.spans){const h=[],f=l.spans;for(const g of f){if(a!=null&&a.length&&lC({description:g.description,op:g.op,attributes:g.data},a)){Bz(f,g);continue}if(o){const y=o(g);y?h.push(y):(sC(),h.push(g))}else h.push(g)}const m=l.spans.length-h.length;m&&n.recordDroppedEvent("before_send","span",m),l.spans=h}}if(s){if(l.spans){const u=l.spans.length;l.sdkProcessingMetadata={...t.sdkProcessingMetadata,spanCountBeforeProcessing:u}}return s(l,r)}}return l}function F0(n){return n.type===void 0}function kj(n){return n.type==="transaction"}function uW(n){let e=0;return n.name&&(e+=n.name.length*2),e+=8,e+Pj(n.attributes)}function cW(n){let e=0;return n.message&&(e+=n.message.length*2),e+Pj(n.attributes)}
47function Pj(n){if(!n)return 0;let e=0;return Object.values(n).forEach(t=>{Array.isArray(t)?e+=t.length*kC(t[0]):$f(t)?e+=kC(t):e+=100}),e}function kC(n){return typeof n=="string"?n.length*2:typeof n=="number"?8:typeof n=="boolean"?4:0}function dW(n,e){e.debug===!0&&(Le?Se.enable():mc(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),_s().update(e.initialScope);const r=new n(e);return fW(r),r.init(),r}function fW(n){_s().setClient(n)}function $y(n){if(!n)return{};const e=n.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};const t=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:t,hash:r,relative:e[5]+t+r}}function hW(n,e=!0){if(n.startsWith("data:")){const t=n.match(/^data:([^;,]+)/),r=t?t[1]:"text/plain",i=n.includes(";base64,"),s=n.indexOf(",");let a="";if(e&&s!==-1){const o=n.slice(s+1);a=o.length>10?`${o.slice(0,10)}... [truncated]`:o}return`data:${r}${i?",base64":""}${a?`,${a}`:""}`}return n}function pW(n){var e;"aggregates"in n?((e=n.attrs)==null?void 0:e.ip_address)===void 0&&(n.attrs={...n.attrs,ip_address:"{{auto}}"}):n.ipAddress===void 0&&(n.ipAddress="{{auto}}")}function Cj(n,e,t=[e],r="npm"){const i=(n._metadata=n._metadata||{}).sdk=n._metadata.sdk||{};i.name||(i.name=`sentry.javascript.${e}`,i.packages=t.map(s=>({name:`${r}:@sentry/${s}`,version:Ko})),i.version=Ko)}const gW=100;function al(n,e){const t=Pn(),r=xs();if(!t)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:s=gW}=t.getOptions();if(s<=0)return;const o={timestamp:Hf(),...n},l=i?mc(()=>i(o,e)):o;l!==null&&(t.emit&&t.emit("beforeAddBreadcrumb",l,e),r.addBreadcrumb(l,s))}const mW="FunctionToString",PC=new WeakMap,vW=()=>({name:mW,setupOnce(){const n=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=Vw(this);let r;try{PC.has(Pn())&&t!==void 0&&(r=t)}catch{}return n.apply(r??this,e)}}catch{}},setup(n){PC.set(n,!0)}}),bW=vW,yW=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,/can't redefine non-configurable property "solana"/,/vv\(\)\.getRestrictions is not a function/,/Can't find variable: _AutofillCallbackHandler/,/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,/^Java exception was raised during method invocation$/],_W="EventFilters",xW=(n={})=>{let e;return{name:_W,setup(t){const r=t.getOptions();e=CC(n,r)},processEvent(t,r,i){if(!e){const s=i.getOptions();e=CC(n,s)}return SW(t,e)?null:t}}},wW=(n={})=>({...xW(n),name:"InboundFilters"});function CC(n={},e={}){return{allowUrls:[...n.allowUrls||[],...e.allowUrls||[]],denyUrls:[...n.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...n.ignoreErrors||[],...e.ignoreErrors||[],...n.disableErrorDefaults?[]:yW],ignoreTransactions:[...n.ignoreTransactions||[],...e.ignoreTransactions||[]]}}function SW(n,e){if(n.type){if(n.type==="transaction"&&kW(n,e.ignoreTransactions))return Le&&Se.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. 48Event: ${Lo(n)}`),!0}else{if(DW(n,e.ignoreErrors))return Le&&Se.warn(`Event dropped due to being matched by \`ignoreErrors\` option. 49Event: ${Lo(n)}`),!0;if(MW(n))return Le&&Se.warn(`Event dropped due to not having an error message, error type or stacktrace. 50Event: ${Lo(n)}`),!0;if(PW(n,e.denyUrls))return Le&&Se.warn(`Event dropped due to being matched by \`denyUrls\` option. 51Event: ${Lo(n)}. 52Url: ${Ug(n)}`),!0;if(!CW(n,e.allowUrls))return Le&&Se.warn(`Event dropped due to not being matched by \`allowUrls\` option. 53Event: ${Lo(n)}. 54Url: ${Ug(n)}`),!0}return!1}function DW(n,e){return e!=null&&e.length?wj(n).some(t=>Yf(t,e)):!1}function kW(n,e){if(!(e!=null&&e.length))return!1;const t=n.transaction;return t?Yf(t,e):!1}function PW(n,e){if(!(e!=null&&e.length))return!1;const t=Ug(n);return t?Yf(t,e):!1}function CW(n,e){if(!(e!=null&&e.length))return!0;const t=Ug(n);return t?Yf(t,e):!0}function EW(n=[]){for(let e=n.length-1;e>=0;e--){const t=n[e];if(t&&t.filename!=="<anonymous>"&&t.filename!=="[native code]")return t.filename||null}return null}function Ug(n){var e,t;try{const r=[...((e=n.exception)==null?void 0:e.values)??[]].reverse().find(s=>{var a,o,l;return((a=s.mechanism)==null?void 0:a.parent_id)===void 0&&((l=(o=s.stacktrace)==null?void 0:o.frames)==null?void 0:l.length)}),i=(t=r==null?void 0:r.stacktrace)==null?void 0:t.frames;return i?EW(i):null}catch{return Le&&Se.error(`Cannot extract url for event ${Lo(n)}`),null}}function MW(n){var e,t;return(t=(e=n.exception)==null?void 0:e.values)!=null&&t.length?!n.message&&!n.exception.values.some(r=>r.stacktrace||r.type&&r.type!=="Error"||r.value):!1}function TW(n,e,t,r,i,s){var o;if(!((o=i.exception)!=null&&o.values)||!s||!vs(s.originalException))return;const a=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;a&&(i.exception.values=L0(n,e,r,s.originalException,t,i.exception.values,a,0))}function L0(n,e,t,r,i,s,a,o){if(s.length>=t+1)return s;let l=[...s];if(vs(r[i])){EC(a,o,r);const u=n(e,r[i]),h=l.length;MC(u,i,h,o),l=L0(n,e,t,r[i],i,[u,...l],u,h)}
54return Ej(r)&&r.errors.forEach((u,h)=>{if(vs(u)){EC(a,o,r);const f=n(e,u),m=l.length;MC(f,`errors[${h}]`,m,o),l=L0(n,e,t,u,i,[f,...l],f,m)}}),l}function Ej(n){return Array.isArray(n.errors)}function EC(n,e,t){n.mechanism={handled:!0,type:"auto.core.linked_errors",...Ej(t)&&{is_exception_group:!0},...n.mechanism,exception_id:e}}function MC(n,e,t,r){n.mechanism={handled:!0,...n.mechanism,type:"chained",source:e,exception_id:t,parent_id:r}}function OW(n){return vs(n)&&"__sentry_fetch_url_host__"in n&&typeof n.__sentry_fetch_url_host__=="string"}function TC(n){return OW(n)?`${n.message} (${n.__sentry_fetch_url_host__})`:n.message}const OC=new Set([]);function AW(n){const e="console",t=Cl(e,n);return El(e,jW),t}const AC=new Set;function jW(){"console"in Je&&vH.forEach(function(n){AC.has(n)||!(n in Je.console)||(AC.add(n),Ir(Je.console,n,function(e){return zg[n]=e,function(...t){const r=t[0],i=zg[n],s=OC.size&&typeof r=="string"&&Yf(r,OC);s||Oi("console",{args:t,level:n}),(!s||Le&&Se.isEnabled())&&(i==null||i.apply(Je.console,t))}}))})}function RW(n){return n==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(n)?n:"log"}const IW="Dedupe",NW=()=>{let n;return{name:IW,processEvent(e){if(e.type)return e;try{if(LW(e,n))return Le&&Se.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return n=e}}},FW=NW;function LW(n,e){return e?!!(BW(n,e)||$W(n,e)):!1}function BW(n,e){const t=n.message,r=e.message;return!(!t&&!r||t&&!r||!t&&r||t!==r||!Tj(n,e)||!Mj(n,e))}function $W(n,e){const t=jC(e),r=jC(n);return!(!t||!r||t.type!==r.type||t.value!==r.value||!Tj(n,e)||!Mj(n,e))}function Mj(n,e){let t=VP(n),r=VP(e);if(!t&&!r)return!0;if(t&&!r||!t&&r||(t=t,r=r,r.length!==t.length))return!1;for(let i=0;i<r.length;i++){const s=r[i],a=t[i];if(s.filename!==a.filename||s.lineno!==a.lineno||s.colno!==a.colno||s.function!==a.function)return!1}return!0}function Tj(n,e){let t=n.fingerprint,r=e.fingerprint;if(!t&&!r)return!0;if(t&&!r||!t&&r)return!1;t=t,r=r;try{return t.join("")===r.join("")}catch{return!1}}function jC(n){var e,t;return(t=(e=n.exception)==null?void 0:e.values)==null?void 0:t[0]}const VW="ConversationId",YW=()=>({name:VW,setup(n){n.on("spanStart",e=>{const t=_s().getScopeData(),r=xs().getScopeData(),i=t.conversationId||r.conversationId;if(i){const{op:s,data:a,description:o}=nv(e);if(!(s!=null&&s.startsWith("gen_ai."))&&!a["ai.operationId"]&&!(o!=null&&o.startsWith("ai.")))return;e.setAttribute(hz,i)}})}}),HW=YW;function Oj(n){if(n!==void 0)return n>=400&&n<500?"warning":n>=500?"error":void 0}const af=Je;function zW(){return"history"in af&&!!af.history}function WW(){if(!("fetch"in af))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}function B0(n){return n&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(n.toString())}function UW(){var t;if(typeof EdgeRuntime=="string")return!0;if(!WW())return!1;if(B0(af.fetch))return!0;let n=!1;const e=af.document;if(e&&typeof e.createElement=="function")try{const r=e.createElement("iframe");r.hidden=!0,e.head.appendChild(r),(t=r.contentWindow)!=null&&t.fetch&&(n=B0(r.contentWindow.fetch)),e.head.removeChild(r)}catch(r){Le&&Se.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return n}function GW(n,e){const t="fetch",r=Cl(t,n);return El(t,()=>XW(void 0,e)),r}function XW(n,e=!1){e&&!UW()||Ir(Je,"fetch",function(t){return function(...r){const i=new Error,{method:s,url:a}=qW(r),o={args:r,fetchData:{method:s,url:a},startTimestamp:Gs()*1e3,virtualError:i,headers:KW(r)};return n||Oi("fetch",{...o}),t.apply(Je,r).then(async l=>(n?n(l):Oi("fetch",{...o,endTimestamp:Gs()*1e3,response:l}),l),l=>{Oi("fetch",{...o,endTimestamp:Gs()*1e3,error:l}),vs(l)&&l.stack===void 0&&(l.stack=i.stack,io(l,"framesToPop",1));const u=Pn(),h=(u==null?void 0:u.getOptions().enhanceFetchErrorMessages)??"always";if(h!==!1&&vs(l)&&l.name==="TypeError"&&(l.message==="Failed to fetch"||l.message==="Load failed"||l.message==="NetworkError when attempting to fetch resource."))try{const g=new URL(o.fetchData.url).host;h==="always"?l.message=`${l.message} (${g})`:io(l,"__sentry_fetch_url_host__",g)}catch{}throw l})}})}function ig(n,e){return Jm(n)&&!!n[e]}function RC(n){return typeof n=="string"?n:n?ig(n,"url")?n.url:n.toString?n.toString():"":""}function qW(n){if(n.length===0)return{method:"GET",url:""};if(n.length===2){const[t,r]=n;return{url:RC(t),method:ig(r,"method")?String(r.method).toUpperCase():$A(t)&&ig(t,"method")?String(t.method).toUpperCase():"GET"}}const e=n[0];return{url:RC(e),method:ig(e,"method")?String(e.method).toUpperCase():"GET"}}function KW(n){const[e,t]=n;try{if(typeof t=="object"&&t!==null&&"headers"in t&&t.headers)return new Headers(t.headers);if($A(e))return new Headers(e.headers)}catch{}}const Aj=Je;function Gw(){try{return Aj.document.location.href}catch{return""}}function QW(n,e=5){if(!Aj.HTMLElement)return null;let t=n;for(let r=0;r<e;r++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}const pt=Je;let $0=0;function jj(){return $0>0}function ZW(){$0++,setTimeout(()=>{$0--})}function Gu(n,e={}){function t(i){return typeof i=="function"}if(!t(n))return n;try{if(Object.prototype.hasOwnProperty.call(n,"__sentry_wrapped__")){const s=n.__sentry_wrapped__;return typeof s=="function"?s:n}if(Vw(n))return n}catch{return n}const r=function(...i){Je._sentryWrappedDepth=(Je._sentryWrappedDepth||0)+1;try{const s=i.map(a=>Gu(a,e));return n.apply(this,s)}catch(s){throw ZW(),QA(a=>{a.addEventProcessor(o=>(e.mechanism&&(O0(o,void 0,void 0),Qo(o,e.mechanism)),o.extra={...o.extra,arguments:i},o)),fj(s)}),s}finally{Je._sentryWrappedDepth=(Je._sentryWrappedDepth||0)-1}};try{for(const i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])}catch{}VA(r,n),io(n,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return n.name}})}catch{}return r}function IC(){const n=Gw(),{referrer:e}=pt.document||{},{userAgent:t}
54=pt.navigator||{},r={...e&&{Referer:e},...t&&{"User-Agent":t}};return{url:n,headers:r}}function Xw(n,e){const t=rv(n,e),r={type:rU(e),value:iU(e)};return t.length&&(r.stacktrace={frames:t}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function JW(n,e,t,r){const i=Pn(),s=i==null?void 0:i.getOptions().normalizeDepth,a=uU(e),o={__serialized__:zA(e,s)};if(a)return{exception:{values:[Xw(n,a)]},extra:o};const l={exception:{values:[{type:ev(e)?e.constructor.name:r?"UnhandledRejection":"Error",value:oU(e,{isUnhandledRejection:r})}]},extra:o};if(t){const u=rv(n,t);u.length&&(l.exception.values[0].stacktrace={frames:u})}return l}function Vy(n,e){return{exception:{values:[Xw(n,e)]}}}function rv(n,e){const t=e.stacktrace||e.stack||"",r=tU(e),i=nU(e);try{return n(t,r,i)}catch{}return[]}const eU=/Minified React error #\d+;/i;function tU(n){return n&&eU.test(n.message)?1:0}function nU(n){return typeof n.framesToPop=="number"?n.framesToPop:0}function Rj(n){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?n instanceof WebAssembly.Exception:!1}function rU(n){const e=n==null?void 0:n.name;return!e&&Rj(n)?n.message&&Array.isArray(n.message)&&n.message.length==2?n.message[0]:"WebAssembly.Exception":e}function iU(n){const e=n==null?void 0:n.message;return Rj(n)?Array.isArray(n.message)&&n.message.length==2?n.message[1]:"wasm exception":e?e.error&&typeof e.error.message=="string"?TC(e.error):TC(n):"No error message"}function sU(n,e,t,r){const i=(t==null?void 0:t.syntheticException)||void 0,s=qw(n,e,i,r);return Qo(s),s.level="error",t!=null&&t.event_id&&(s.event_id=t.event_id),Wf(s)}function aU(n,e,t="info",r,i){const s=(r==null?void 0:r.syntheticException)||void 0,a=V0(n,e,s,i);return a.level=t,r!=null&&r.event_id&&(a.event_id=r.event_id),Wf(a)}function qw(n,e,t,r,i){var a,o;let s;if(BA(e)&&e.error)return Vy(n,e.error);if(HP(e)||TH(e)){const l=e;if("stack"in e){s=Vy(n,e);const u=(o=(a=s.exception)==null?void 0:a.values)==null?void 0:o[0];if(r&&t&&u&&!u.stacktrace){const h=rv(n,t);h.length&&(u.stacktrace={frames:h},Qo(s,{synthetic:!0}))}}else{const u=l.name||(HP(l)?"DOMError":"DOMException"),h=l.message?`${u}: ${l.message}`:u;s=V0(n,h,t,r),O0(s,h)}return"code"in l&&(s.tags={...s.tags,"DOMException.code":`${l.code}`}),s}return vs(e)?Vy(n,e):rf(e)||ev(e)?(s=JW(n,e,t,i),Qo(s,{synthetic:!0}),s):(s=V0(n,e,t,r),O0(s,`${e}`,void 0),Qo(s,{synthetic:!0}),s)}function V0(n,e,t,r){const i={};if(r&&t){const s=rv(n,t);s.length&&(i.exception={values:[{value:e,stacktrace:{frames:s}}]}),Qo(i,{synthetic:!0})}if(Bw(e)){const{__sentry_template_string__:s,__sentry_template_values__:a}=e;return i.logentry={message:s,params:a},i}return i.message=e,i}function oU(n,{isUnhandledRejection:e}){const t=AH(n),r=e?"promise rejection":"exception";return BA(n)?`Event \`ErrorEvent\` captured as ${r} with message \`${n.message}\``:ev(n)?`Event \`${lU(n)}\` (type=${n.type}) captured as ${r}`:`Object captured as ${r} with keys: ${t}`}function lU(n){try{const e=Object.getPrototypeOf(n);return e?e.constructor.name:void 0}catch{}}function uU(n){return Object.values(n).find(vs)}class cU extends aW{constructor(e){var a;const t=dU(e),r=pt.SENTRY_SDK_SOURCE||R6();Cj(t,"browser",["browser"],r),super(t);const{userInfo:i}=this.getDataCollectionOptions();(a=t._metadata)!=null&&a.sdk&&(t._metadata.sdk.settings={infer_ip:i?"auto":"never",...t._metadata.sdk.settings});const{sendClientReports:s}=this._options;pt.document&&pt.document.addEventListener("visibilitychange",()=>{pt.document.visibilityState==="hidden"&&(s&&this._flushOutcomes(),queueMicrotask(()=>{this.flush()}))}),i&&this.on("beforeSendSession",pW)}eventFromException(e,t){return sU(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",r){return aU(this._options.stackParser,e,t,r,this._options.attachStacktrace)}_prepareEvent(e,t,r,i){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,r,i)}}function dU(n){var e;return{release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:(e=pt.SENTRY_RELEASE)==null?void 0:e.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...n}}const fU=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,qt=Je;function NC(n,e,t){qt.document&&qt.addEventListener(n,e,t)}function FC(n,e,t){qt.document&&qt.removeEventListener(n,e,t)}const hU=n=>{let e=!1;return()=>{e||(n(),e=!0)}},pU=n=>{var t;const e=qt.requestIdleCallback||qt.setTimeout;((t=qt.document)==null?void 0:t.visibilityState)==="hidden"?n():(n=hU(n),NC("visibilitychange",n,{once:!0,capture:!0}),NC("pagehide",n,{once:!0,capture:!0}),e(()=>
54{n(),FC("visibilitychange",n,{capture:!0}),FC("pagehide",n,{capture:!0})}))},gU=80,Ao={};try{typeof Node<"u"&&(Ao.parentNode=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode").get),typeof Element<"u"&&(Ao.tagName=Object.getOwnPropertyDescriptor(Element.prototype,"tagName").get,Ao.id=Object.getOwnPropertyDescriptor(Element.prototype,"id").get,Ao.className=Object.getOwnPropertyDescriptor(Element.prototype,"className").get,Ao.getAttribute=Element.prototype.getAttribute),typeof HTMLElement<"u"&&(Ao.dataset=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset").get)}catch{}function Ra(n,e,t){const r=Ao[e];if(r)try{return r.call(n,t)}catch{}const i=n[e];return typeof i=="function"?i.call(n,t):i}function Ij(n,e={}){if(!n)return"<unknown>";try{let t=n;const r=5,i=[];let s=0,a=0;const o=" > ",l=o.length;let u;const h=Array.isArray(e)?e:e.keyAttrs,f=!Array.isArray(e)&&e.maxStringLength||gU;for(;t&&s++<r&&(u=mU(t,h),!(u==="html"||s>1&&a+i.length*l+u.length>=f));)i.push(u),a+=u.length,t=Ra(t,"parentNode");return i.reverse().join(o)}catch{return"<unknown>"}}function mU(n,e){const t=[],r=Ra(n,"tagName");if(!r)return"";if(typeof HTMLElement<"u"&&n instanceof HTMLElement){const s=Ra(n,"dataset");if(s){if(s.sentryComponent)return s.sentryComponent;if(s.sentryElement)return s.sentryElement}}t.push(r.toLowerCase());const i=e!=null&&e.length?e.filter(s=>Ra(n,"getAttribute",s)).map(s=>[s,Ra(n,"getAttribute",s)]):null;if(i!=null&&i.length)i.forEach(s=>{t.push(`[${s[0]}="${s[1]}"]`)});else{const s=Ra(n,"id");s&&t.push(`#${s}`);const a=Ra(n,"className");if(a&&Us(a)){const o=a.split(/\s+/);for(const l of o)t.push(`.${l}`)}}for(const s of["aria-label","type","name","title","alt"]){const a=Ra(n,"getAttribute",s);a&&t.push(`[${s}="${a}"]`)}return t.join("")}const vU=1e3;let LC,Y0,H0;function bU(n){const e="dom";Cl(e,n),El(e,yU)}function yU(){if(!qt.document)return;const n=Oi.bind(null,"dom"),e=BC(n,!0);qt.document.addEventListener("click",e,!1),qt.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(t=>{var s,a;const i=(s=qt[t])==null?void 0:s.prototype;(a=i==null?void 0:i.hasOwnProperty)!=null&&a.call(i,"addEventListener")&&(Ir(i,"addEventListener",function(o){return function(l,u,h){if(l==="click"||l=="keypress")try{const f=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},m=f[l]=f[l]||{refCount:0};if(!m.handler){const g=BC(n);m.handler=g,o.call(this,l,g,h)}m.refCount++}catch{}return o.call(this,l,u,h)}}),Ir(i,"removeEventListener",function(o){return function(l,u,h){if(l==="click"||l=="keypress")try{const f=this.__sentry_instrumentation_handlers__||{},m=f[l];m&&(m.refCount--,m.refCount<=0&&(o.call(this,l,m.handler,h),m.handler=void 0,delete f[l]),Object.keys(f).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return o.call(this,l,u,h)}}))})}function _U(n){if(n.type!==Y0)return!1;try{if(!n.target||n.target._sentryId!==H0)return!1}catch{}return!0}function xU(n,e){return n!=="keypress"?!1:e!=null&&e.tagName?!(e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable):!0}function BC(n,e=!1){return t=>{if(!t||t._sentryCaptured)return;const r=wU(t);if(xU(t.type,r))return;io(t,"_sentryCaptured",!0),r&&!r._sentryId&&io(r,"_sentryId",di());const i=t.type==="keypress"?"input":t.type;_U(t)||(n({event:t,name:i,global:e}),Y0=t.type,H0=r?r._sentryId:void 0),clearTimeout(LC),LC=qt.setTimeout(()=>{H0=void 0,Y0=void 0},vU)}}function wU(n){try{return n.target}catch{return null}}let fp;function Nj(n){const e="history";Cl(e,n),El(e,SU)}function SU(){if(qt.addEventListener("popstate",()=>{const e=qt.location.href,t=fp;if(fp=e,t===e)return;Oi("history",{from:t,to:e})}),!zW())return;function n(e){return function(...t){const r=t.length>2?t[2]:void 0;if(r){const i=fp,s=DU(String(r));if(fp=s,i===s)return e.apply(this,t);Oi("history",{from:i,to:s})}return e.apply(this,t)}}Ir(qt.history,"pushState",n),Ir(qt.history,"replaceState",n)}function DU(n){try{return new URL(n,qt.location.origin).toString()}catch{return n}}const sg={};function kU(n){const e=sg[n];if(e)return e;let t=qt[n];if(B0(t))return sg[n]=t.bind(qt);const r=qt.document;if(r&&typeof r.createElement=="function")try{const i=r.createElement("iframe");i.hidden=!0,r.head.appendChild(i);
54const s=i.contentWindow;s!=null&&s[n]&&(t=s[n]),r.head.removeChild(i)}catch(i){fU&&Se.warn(`Could not create sandbox iframe for ${n} check, bailing to window.${n}: `,i)}return t&&(sg[n]=t.bind(qt))}function PU(n){sg[n]=void 0}const gd="__sentry_xhr_v3__";function CU(n){const e="xhr";Cl(e,n),El(e,EU)}function EU(){if(!qt.XMLHttpRequest)return;const n=XMLHttpRequest.prototype;n.open=new Proxy(n.open,{apply(e,t,r){const i=new Error,s=Gs()*1e3,a=Us(r[0])?r[0].toUpperCase():void 0,o=MU(r[1]);if(!a||!o)return e.apply(t,r);t[gd]={method:a,url:o,request_headers:{}},a==="POST"&&o.match(/sentry_key/)&&(t.__sentry_own_request__=!0);const l=()=>{const u=t[gd];if(u&&t.readyState===4){try{u.status_code=t.status}catch{}const h={endTimestamp:Gs()*1e3,startTimestamp:s,xhr:t,virtualError:i};Oi("xhr",h),t.removeEventListener("readystatechange",l)}};return"onreadystatechange"in t&&typeof t.onreadystatechange=="function"?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply(u,h,f){return l(),u.apply(h,f)}}):t.addEventListener("readystatechange",l),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply(u,h,f){const[m,g]=f,y=h[gd];return y&&Us(m)&&Us(g)&&(y.request_headers[m.toLowerCase()]=g),u.apply(h,f)}}),e.apply(t,r)}}),n.send=new Proxy(n.send,{apply(e,t,r){const i=t[gd];if(!i)return e.apply(t,r);r[0]!==void 0&&(i.body=r[0]);const s={startTimestamp:Gs()*1e3,xhr:t};return Oi("xhr",s),e.apply(t,r)}})}function MU(n){if(Us(n))return n;try{return n.toString()}catch{}}function TU(n){if(typeof Element>"u")return!1;try{return n instanceof Element}catch{return!1}}const OU=40;function AU(n,e=kU("fetch")){let t=0,r=0;async function i(s){const a=s.body.length;t+=a,r++;const o={body:s.body,method:"POST",referrerPolicy:"strict-origin",headers:n.headers,keepalive:t<=6e4&&r<15,...n.fetchOptions};try{const l=await e(n.url,o);return{statusCode:l.status,headers:{"x-sentry-rate-limits":l.headers.get("X-Sentry-Rate-Limits"),"retry-after":l.headers.get("Retry-After")}}}catch(l){throw PU("fetch"),l}finally{t-=a,r--}}return Z6(n,i,Uw(n.bufferSize||OU))}const Xu=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,jU=30,RU=50;function z0(n,e,t,r){const i={filename:n,function:e==="<anonymous>"?sl:e,in_app:!0};return t!==void 0&&(i.lineno=t),r!==void 0&&(i.colno=r),i}const IU=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,NU=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,FU=/\((\S*)(?::(\d+))(?::(\d+))\)/,LU=/at (.+?) ?\(data:(.+?),/,BU=n=>{var i;const e=n.match(LU);if(e)return{filename:`<data:${e[2]}>`,function:e[1]};const t=IU.exec(n);if(t){const[,s,a,o]=t;return z0(s,sl,+a,+o)}const r=NU.exec(n);if(r){if(((i=r[2])==null?void 0:i.indexOf("eval"))===0){const l=FU.exec(r[2]);l&&(r[2]=l[1],r[3]=l[2],r[4]=l[3])}const[a,o]=Fj(r[1]||sl,r[2]);return z0(o,a,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}},$U=[jU,BU],VU=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,YU=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,HU=n=>{const e=VU.exec(n);if(e){if(e[3]&&e[3].indexOf(" > eval")>-1){const s=YU.exec(e[3]);s&&(e[1]=e[1]||"eval",e[3]=s[1],e[4]=s[2],e[5]="")}let r=e[3],i=e[1]||sl;return[i,r]=Fj(i,r),z0(r,i,e[4]?+e[4]:void 0,e[5]?+e[5]:void 0)}},zU=[RU,HU],WU=[$U,zU],UU=FA(...WU),Fj=(n,e)=>{const t=n.indexOf("safari-extension")!==-1,r=n.indexOf("safari-web-extension")!==-1;return t||r?[n.indexOf("@")!==-1?n.split("@")[0]:sl,t?`safari-extension:${e}`:`safari-web-extension:${e}`]:[n,e]},hp=1024,GU="Breadcrumbs",XU=(n={})=>{const e={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...n};return{name:GU,setup(t){e.console&&AW(ZU(t)),e.dom&&bU(QU(t,e.dom)),e.xhr&&CU(JU(t)),e.fetch&&GW(e9(t)),e.history&&Nj(t9(t)),e.sentry&&t.on("beforeSendEvent",KU(t))}}},qU=XU;function KU(n){return function(t){Pn()===n&&al({category:`sentry.${t.type==="transaction"?"transaction":"event"}`,event_id:t.event_id,level:t.level,message:Lo(t)},{event:t})}}function QU(n,e){return function(r){if(Pn()!==n)return;let i,s,a=typeof e=="object"?e.serializeAttribute:void 0,o=typeof e=="object"&&typeof e.maxStringLength=="number"?e.maxStringLength:void 0;o&&o>hp&&(Xu&&Se.warn(`\`dom.maxStringLength\` cannot exceed ${hp}, but a value of ${o} was configured. Sentry will use ${hp}
54 instead.`),o=hp),typeof a=="string"&&(a=[a]);try{const u=r.event,h=n9(u)?u.target:u;i=Ij(h,{keyAttrs:a,maxStringLength:o}),s=QW(h)}catch{i="<unknown>"}if(i.length===0)return;const l={category:`ui.${r.name}`,message:i};s&&(l.data={"ui.component_name":s}),al(l,{event:r.event,name:r.name,global:r.global})}}function ZU(n){return function(t){if(Pn()!==n)return;const r={category:"console",data:{arguments:t.args,logger:"console"},level:RW(t.level),message:WP(t.args," ")};if(t.level==="assert")if(t.args[0]===!1)r.message=`Assertion failed: ${WP(t.args.slice(1)," ")||"console.assert"}`,r.data.arguments=t.args.slice(1);else return;al(r,{input:t.args,level:t.level})}}function JU(n){return function(t){if(Pn()!==n)return;const{startTimestamp:r,endTimestamp:i}=t,s=t.xhr[gd];if(!r||!i||!s)return;const{method:a,url:o,status_code:l,body:u}=s,h={method:a,url:o,status_code:l},f={xhr:t.xhr,input:u,startTimestamp:r,endTimestamp:i},m={category:"xhr",data:h,type:"http",level:Oj(l)};n.emit("beforeOutgoingRequestBreadcrumb",m,f),al(m,f)}}function e9(n){return function(t){if(Pn()!==n)return;const{startTimestamp:r,endTimestamp:i}=t;if(i&&!(t.fetchData.url.match(/sentry_key/)&&t.fetchData.method==="POST"))if(t.error){const s={data:t.error,input:t.args,startTimestamp:r,endTimestamp:i},a={category:"fetch",data:t.fetchData,level:"error",type:"http"};n.emit("beforeOutgoingRequestBreadcrumb",a,s),al(a,s)}else{const s=t.response,a={...t.fetchData,status_code:s==null?void 0:s.status},o={input:t.args,response:s,startTimestamp:r,endTimestamp:i},l={category:"fetch",data:a,type:"http",level:Oj(a.status_code)};n.emit("beforeOutgoingRequestBreadcrumb",l,o),al(l,o)}}}function t9(n){return function(t){if(Pn()!==n)return;let r=t.from,i=t.to;const s=$y(pt.location.href);let a=r?$y(r):void 0;const o=$y(i);a!=null&&a.path||(a=s),s.protocol===o.protocol&&s.host===o.host&&(i=o.relative),s.protocol===a.protocol&&s.host===a.host&&(r=a.relative),al({category:"navigation",data:{from:r,to:i}})}}function n9(n){return!!n&&!!n.target}const r9="EventTarget,Window,Node,ApplicationCache,AudioTrackList,BroadcastChannel,ChannelMergerNode,CryptoOperation,EventSource,FileReader,HTMLUnknownElement,IDBDatabase,IDBRequest,IDBTransaction,KeyOperation,MediaController,MessagePort,ModalWindow,Notification,SVGElementInstance,Screen,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebSocket,WebSocketWorker,Worker,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload".split(","),i9="BrowserApiErrors",s9=(n={})=>{const e={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...n};return{name:i9,setupOnce(){e.setTimeout&&Ir(pt,"setTimeout",$C),e.setInterval&&Ir(pt,"setInterval",$C),e.requestAnimationFrame&&Ir(pt,"requestAnimationFrame",o9),e.XMLHttpRequest&&"XMLHttpRequest"in pt&&Ir(XMLHttpRequest.prototype,"send",l9);const t=e.eventTarget;t&&(Array.isArray(t)?t:r9).forEach(i=>u9(i,e))}}},a9=s9;function $C(n){return function(...e){const t=e[0];return e[0]=Gu(t,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${ro(n)}`}}),n.apply(this,e)}}function o9(n){return function(e){return n.apply(this,[Gu(e,{mechanism:{data:{handler:ro(n)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function l9(n){return function(...e){const t=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(i=>{i in t&&typeof t[i]=="function"&&Ir(t,i,function(s){const a={mechanism:{data:{handler:ro(s)},handled:!1,type:`auto.browser.browserapierrors.xhr.${i}`}},o=Vw(s);return o&&(a.mechanism.data.handler=ro(o)),Gu(s,a)})}),n.apply(this,e)}}function u9(n,e){var i,s;const r=(i=pt[n])==null?void 0:i.prototype;(s=r==null?void 0:r.hasOwnProperty)!=null&&s.call(r,"addEventListener")&&(Ir(r,"addEventListener",function(a){return function(o,l,u){try{c9(l)&&(l.handleEvent=Gu(l.handleEvent,{mechanism:{data:{handler:ro(l),target:n},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return e.unregisterOriginalCallbacks&&d9(this,o,l),a.apply(this,[o,Gu(l,{mechanism:{data:{handler:ro(l),target:n},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),u])}}),Ir(r,"removeEventListener",function(a){return function(o,l,u){try{if(Object.prototype.hasOwnProperty.call(l,"__sentry_wrapped__")){const h=l.__sentry_wrapped__;h&&a.call(this,o,h,u)}}catch{}return a.call(this,o,l,u)}}))}function c9(n){return typeof n.handleEvent=="function"}function d9(n,e,t){n&&typeof n=="object"&&"removeEventListener"in n&&typeof n.removeEventListener=="function"&&n.removeEventListener(e,t)}const f9=(n={})=>{const e=n.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(typeof pt.document>"u"){Xu&&Se.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}mC({ignoreDuration:!0});let t=!1;pU(()=>{t||(Ly(),t=!0)});const r=xs();let i=r.getUser();r.addScopeListener(s=>{const a=s.getUser();((i==null?void 0:i.id)!==(a==null?void 0:a.id)||(i==null?void 0:i.ip_address)!==(a==null?void 0:a.ip_address))&&(i=a,t&&Ly())}),e==="route"&&Nj(({from:s,to:a})=>{s!==a&&(mC({ignoreDuration:!0}),Ly(),t=!0)})}}},h9="CultureContext",p9=()=>({name:h9,preprocessEvent(n){var t;const e=VC();e&&(n.contexts={...n.contexts,culture:{...e,...(t=n.contexts)==null?void 0:t.culture}})},processSegmentSpan(n){const e=VC();e&&cj(n,{"culture.locale":e.locale,"culture.timezone":e.timezone,"culture.calendar":e.calendar})}}),g9=p9;function VC(){try{const n=pt.Intl;if(!n)return;const e=n.DateTimeFormat().resolvedOptions();return{locale:e.locale,timezone:e.timeZone,calendar:e.calendar}}catch{return}}const m9="GlobalHandlers",v9=(n={})=>{const e={onerror:!0,onunhandledrejection:!0,...n};return{name:m9,setupOnce(){Error.stackTraceLimit=50},setup(t){e.onerror&&(y9(t),YC("onerror")),e.onunhandledrejection&&(_9(t),YC("onunhandledrejection"))}}},b9=v9;function y9(n){PH(e=>{const{stackParser:t,attachStacktrace:r}=Lj();if(Pn()!==n||jj())return;const{msg:i,url:s,line:a,column:o,error:l}=e,u=S9(qw(t,l||i,void 0,r,!1),s,a,o);u.level="error",hj(u,{originalException:l,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}function _9(n){EH(e=>{const{stackParser:t,attachStacktrace:r}=Lj();if(Pn()!==n||jj())return;const i=x9(e),s=$f(i)?w9(i):qw(t,i,void 0,r,!0);s.level="error",hj(s,{originalException:i,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}function x9(n){if($f(n))return n;try{if("reason"in n)return n.reason;if("detail"in n&&"reason"in n.detail)return n.detail.reason}catch{}return n}function w9(n){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(n)}`}]}}}function S9(n,e,t,r){const i=n.exception=n.exception||{},s=i.values=i.values||[],a=s[0]=s[0]||{},o=a.stacktrace=a.stacktrace||{},l=o.frames=o.frames||[];return l.length===0&&l.push({colno:r,lineno:t,filename:D9(e)??Gw(),function:sl,in_app:!0}),n}function YC(n){Xu&&Se.log(`Global Handler attached: ${n}`)}function Lj(){const n=Pn();return(n==null?void 0:n.getOptions())||{stackParser:()=>[],attachStacktrace:!1}}function D9(n){if(!(!Us(n)||n.length===0))return n.startsWith("data:")?`<${hW(n,!1)}>`:n}const k9=()=>({name:"HttpContext",preprocessEvent(n){var r;if(!pt.navigator&&!pt.location&&!pt.document)return;const e=IC(),t={...e.headers,...(r=n.request)==null?void 0:r.headers};n.request={...e,...n.request,headers:t}},processSegmentSpan(n){var r;const e=(r=n.attributes)==null?void 0:r[ZA];if(!pt.navigator&&!pt.location&&!pt.document)return;const t=IC();cj(n,{[l6]:e!=="http.client"?t.url:void 0,"http.request.header.user_agent":t.headers["User-Agent"],"http.request.header.referer":t.headers.Referer})}}),P9="cause",C9=5,E9="LinkedErrors",M9=(n={})=>{const e=n.limit||C9,t=n.key||P9;return{name:E9,preprocessEvent(r,i,s){const a=s.getOptions();TW(Xw,a.stackParser,t,e,r,i)}}},T9=M9,O9=/^HTML(\w*)Element$/;function Bj(n){if(typeof window<"u"&&n===window)return"[Window]";if(typeof document<"u"&&n===document)return"[Document]";if(TU(n)){const e=A9(n);if(O9.test(e))return`[HTMLElement: ${Ij(n)}]`}}function A9(n){const e=Object.getPrototypeOf(n);return e!=null&&e.constructor?e.constructor.name:"null prototype"}function j9(){return R9()?(Xu&&mc(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0):!1}function R9(){var i;if(typeof pt.window>"u")return!1;const n=pt;if(n.nw)return!1;const e=n.chrome||n.browser;if(!((i=e==null?void 0:e.runtime)!=null&&i.id))return!1;const t=Gw();return!(pt===pt.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(t))}function I9(n){return[wW(),bW(),HW(),a9(),qU(),b9(),T9(),FW(),k9(),g9(),f9()]}function N9(n={}){const e=!n.skipBrowserExtensionCheck&&j9();let t=n.defaultIntegrations==null?I9():n.defaultIntegrations;const r={...n,enabled:e?!1:n.enabled,stackParser:DH(n.stackParser||UU),integrations:O6({integrations:n.integrations,defaultIntegrations:t}),transport:n.transport||AU};return HA(Bj),dW(cU,r)}function HC(n={}){const e=pt.document,t=(e==null?void 0:e.head)||(e==null?void 0:e.body);if(!t){Xu&&Se.error("[showReportDialog] Global document not defined");return}const r=_s(),i=Pn(),s=i==null?void 0:i.getDsn();if(!s){Xu&&Se.error("[showReportDialog] DSN not configured");return}const a={...n,user:{...r.getUser(),...n.user},eventId:n.eventId||D6()},o=pt.document.createElement("script");o.async=!0,o.crossOrigin="anonymous",o.src=M6(s,a);const{onLoad:l,onClose:u}=a;if(l&&(o.onload=l),u){const h=f=>{if(f.data==="__sentry_reportdialog_closed__")try{u()}finally{pt.removeEventListener("message",h)}};pt.addEventListener("message",h)}t.appendChild(o)}function F9(n){return rf(n)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n}function L9(n){const e={...n};Cj(e,"react"),w6("react",{version:E.version});const t=N9(e);return HA(B9),t}function B9(n){return F9(n)?"[SyntheticEvent]":Bj(n)}function $9(n){const e=n.match(/^([^.]+)/);return e!==null&&parseInt(e[0])>=17}function V9(n,e){const t=new WeakSet;
54function r(i,s){if(!t.has(i)){if(i.cause)return t.add(i),r(i.cause,s);i.cause=s}}r(n,e)}function Y9(n,{componentStack:e},t){if($9(E.version)&&vs(n)&&e){const r=new Error(n.message);r.name=`React ErrorBoundary ${n.name}`,r.stack=e,V9(n,r)}return fj(n,t)}const H9=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Yy={componentStack:null,error:null,eventId:null};class Ie extends E.Component{constructor(e){super(e),this.state=Yy,this._openFallbackReportDialog=!0;const t=Pn();t&&e.showDialog&&(this._openFallbackReportDialog=!1,this._cleanupHook=t.on("afterSendEvent",r=>{!r.type&&this._lastEventId&&r.event_id===this._lastEventId&&HC({...e.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(e,t){const{componentStack:r}=t,{beforeCapture:i,onError:s,showDialog:a,dialogOptions:o}=this.props;QA(l=>{i&&i(l,e,r);const u=this.props.handled!=null?this.props.handled:!!this.props.fallback,h=Y9(e,t,{mechanism:{handled:u,type:"auto.function.react.error_boundary"}});s&&s(e,r,h),a&&(this._lastEventId=h,this._openFallbackReportDialog&&HC({...o,eventId:h})),this.setState({error:e,componentStack:r,eventId:h})})}componentDidMount(){const{onMount:e}=this.props;e&&e()}componentWillUnmount(){const{error:e,componentStack:t,eventId:r}=this.state,{onUnmount:i}=this.props;i&&(this.state===Yy?i(null,null,null):i(e,t,r)),this._cleanupHook&&(this._cleanupHook(),this._cleanupHook=void 0)}resetErrorBoundary(){const{onReset:e}=this.props,{error:t,componentStack:r,eventId:i}=this.state;e&&e(t,r,i),this.setState(Yy)}render(){const{fallback:e,children:t}=this.props,r=this.state;if(r.componentStack===null)return typeof t=="function"?t():t;const i=typeof e=="function"?E.createElement(e,{error:r.error,componentStack:r.componentStack,resetError:()=>this.resetErrorBoundary(),eventId:r.eventId}):e;return E.isValidElement(i)?i:(e&&H9&&Se.warn("fallback did not produce a valid ReactElement"),null)}}const kt=n=>{const e=n.dataset.leid;if(typeof e>"u")throw new Error("Error 1696930008: No legal entity ID could be found.");return e},Rt=n=>{const e=n.dataset.preset;if(typeof e>"u")throw new Error("Error 1696930008: No preset could be found.");return e},Uf=()=>{if(typeof window.dfo<"u")return window.dfo.settings.benchmark===!0},$j=n=>{const e=n.dataset.key;if(typeof e>"u")throw new Error("No widget key could be found.");return e},Vj=n=>{const e=n.dataset.icon;if(typeof e>"u")throw new Error("No icon could be found.");return e},Yj=n=>{const e=n.dataset.heading;if(typeof e>"u")throw new Error("No heading could be found.");return e},z9=n=>{const e=n.dataset.identificationUrl;return typeof e>"u"?"":e},Hj=n=>{const e=n.dataset.mobile;return typeof e>"u"?"":e},Gf=()=>{let n="twr";return typeof window.dfo<"u"&&(n=window.dfo.settings.weighting),n},W9=n=>{const e=n.dataset.isin;if(typeof e>"u")throw new Error("No ISIN could be found.");return e},zj=H.createContext({}),Wj=!0;function U9({baseColor:n,highlightColor:e,width:t,height:r,borderRadius:i,circle:s,direction:a,duration:o,enableAnimation:l=Wj}){const u={};return a==="rtl"&&(u["--animation-direction"]="reverse"),typeof o=="number"&&(u["--animation-duration"]=`${o}s`),l||(u["--pseudo-element-display"]="none"),(typeof t=="string"||typeof t=="number")&&(u.width=t),(typeof r=="string"||typeof r=="number")&&(u.height=r),(typeof i=="string"||typeof i=="number")&&(u.borderRadius=i),s&&(u.borderRadius="50%"),typeof n<"u"&&(u["--base-color"]=n),typeof e<"u"&&(u["--highlight-color"]=e),u}function ce({count:n=1,wrapper:e,className:t,containerClassName:r,containerTestId:i,circle:s=!1,style:a,...o}){var l,u,h;const f=H.useContext(zj),m={...o};for(const[w,k]of Object.entries(o))typeof k>"u"&&delete m[w];const g={...f,...m,circle:s},y={...a,...U9(g)};let v="react-loading-skeleton";t&&(v+=` ${t}`);const x=(l=g.inline)!==null&&l!==void 0?l:!1,_=[],S=Math.ceil(n);for(let w=0;w<S;w++){let k=y;if(S>n&&w===S-1){const j=(u=k.width)!==null&&u!==void 0?u:"100%",A=n%1,M=typeof j=="number"?j*A:`calc(${j} * ${A})`;k={...k,width:M}}const P=H.createElement("span",{className:v,style:k,key:w},"â");x?_.push(P):_.push(H.createElement(H.Fragment,{key:w},P,H.createElement("br",null)))}return H.createElement("span",{className:r,"data-testid":i,"aria-live":"polite","aria-busy":(h=g.enableAnimation)!==null&&h!==void 0?h:Wj},e?_.map((w,k)=>H.createElement(e,{key:k},w)):_)}function vt({children:n,...e}){return H.createElement(zj.Provider,{value:e},n)}var Gg={exports:{}};/** 55 * @license 56 * Lodash <https://lodash.com/>
57 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/> 58 * Released under MIT license <https://lodash.com/license> 59 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> 60 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors 61 */Gg.exports;(function(n,e){(function(){var t,r="4.17.21",i=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",o="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",u=500,h="__lodash_placeholder__",f=1,m=2,g=4,y=1,v=2,x=1,_=2,S=4,w=8,k=16,P=32,j=64,A=128,M=256,L=512,I=30,V="...",Q=800,U=16,X=1,K=2,z=3,F=1/0,R=9007199254740991,B=17976931348623157e292,Z=0/0,se=4294967295,ae=se-1,ge=se>>>1,ke=[["ary",A],["bind",x],["bindKey",_],["curry",w],["curryRight",k],["flip",L],["partial",P],["partialRight",j],["rearg",M]],Me="[object Arguments]",me="[object Array]",rt="[object AsyncFunction]",et="[object Boolean]",xt="[object Date]",Pt="[object DOMException]",It="[object Error]",En="[object Function]",Sr="[object GeneratorFunction]",wn="[object Map]",mi="[object Number]",J1="[object Null]",Ds="[object Object]",eS="[object Promise]",oN="[object Proxy]",Cc="[object RegExp]",vi="[object Set]",Ec="[object String]",ih="[object Symbol]",lN="[object Undefined]",Mc="[object WeakMap]",uN="[object WeakSet]",Tc="[object ArrayBuffer]",Fl="[object DataView]",$v="[object Float32Array]",Vv="[object Float64Array]",Yv="[object Int8Array]",Hv="[object Int16Array]",zv="[object Int32Array]",Wv="[object Uint8Array]",Uv="[object Uint8ClampedArray]",Gv="[object Uint16Array]",Xv="[object Uint32Array]",cN=/\b__p \+= '';/g,dN=/\b(__p \+=) '' \+/g,fN=/(__e\(.*?\)|\b__t\)) \+\n'';/g,tS=/&(?:amp|lt|gt|quot|#39);/g,nS=/[&<>"']/g,hN=RegExp(tS.source),pN=RegExp(nS.source),gN=/<%-([\s\S]+?)%>/g,mN=/<%([\s\S]+?)%>/g,rS=/<%=([\s\S]+?)%>/g,vN=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,bN=/^\w*$/,yN=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,qv=/[\\^$.*+?()[\]{}|]/g,_N=RegExp(qv.source),Kv=/^\s+/,xN=/\s/,wN=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,SN=/\{\n\/\* \[wrapped with (.+)\] \*/,DN=/,? & /,kN=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,PN=/[()=,{}\[\]\/\s]/,CN=/\\(\\)?/g,EN=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,iS=/\w*$/,MN=/^[-+]0x[0-9a-f]+$/i,TN=/^0b[01]+$/i,ON=/^\[object .+?Constructor\]$/,AN=/^0o[0-7]+$/i,jN=/^(?:0|[1-9]\d*)$/,RN=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
vendor: 71,091 bytes, lines 61-80
617f]/g,sh=/($^)/,IN=/['\n\r\u2028\u2029\\]/g,ah="\\ud800-\\udfff",NN="\\u0300-\\u036f",FN="\\ufe20-\\ufe2f",LN="\\u20d0-\\u20ff",sS=NN+FN+LN,aS="\\u2700-\\u27bf",oS="a-z\\xdf-\\xf6\\xf8-\\xff",BN="\\xac\\xb1\\xd7\\xf7",$N="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",VN="\\u2000-\\u206f",YN=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",lS="A-Z\\xc0-\\xd6\\xd8-\\xde",uS="\\ufe0e\\ufe0f",cS=BN+$N+VN+YN,Qv="['â]",HN="["+ah+"]",dS="["+cS+"]",oh="["+sS+"]",fS="\\d+",zN="["+aS+"]",hS="["+oS+"]",pS="[^"+ah+cS+fS+aS+oS+lS+"]",Zv="\\ud83c[\\udffb-\\udfff]",WN="(?:"+oh+"|"+Zv+")",gS="[^"+ah+"]",Jv="(?:\\ud83c[\\udde6-\\uddff]){2}",eb="[\\ud800-\\udbff][\\udc00-\\udfff]",Ll="["+lS+"]",mS="\\u200d",vS="(?:"+hS+"|"+pS+")",UN="(?:"+Ll+"|"+pS+")",bS="(?:"+Qv+"(?:d|ll|m|re|s|t|ve))?",yS="(?:"+Qv+"(?:D|LL|M|RE|S|T|VE))?",_S=WN+"?",xS="["+uS+"]?",GN="(?:"+mS+"(?:"+[gS,Jv,eb].join("|")+")"+xS+_S+")*",XN="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",qN="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",wS=xS+_S+GN,KN="(?:"+[zN,Jv,eb].join("|")+")"+wS,QN="(?:"+[gS+oh+"?",oh,Jv,eb,HN].join("|")+")",ZN=RegExp(Qv,"g"),JN=RegExp(oh,"g"),tb=RegExp(Zv+"(?="+Zv+")|"+QN+wS,"g"),eF=RegExp([Ll+"?"+hS+"+"+bS+"(?="+[dS,Ll,"$"].join("|")+")",UN+"+"+yS+"(?="+[dS,Ll+vS,"$"].join("|")+")",Ll+"?"+vS+"+"+bS,Ll+"+"+yS,qN,XN,fS,KN].join("|"),"g"),tF=RegExp("["+mS+ah+sS+uS+"]"),nF=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,rF=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],iF=-1,Ct={};Ct[$v]=Ct[Vv]=Ct[Yv]=Ct[Hv]=Ct[zv]=Ct[Wv]=Ct[Uv]=Ct[Gv]=Ct[Xv]=!0,Ct[Me]=Ct[me]=Ct[Tc]=Ct[et]=Ct[Fl]=Ct[xt]=Ct[It]=Ct[En]=Ct[wn]=Ct[mi]=Ct[Ds]=Ct[Cc]=Ct[vi]=Ct[Ec]=Ct[Mc]=!1;var wt={};wt[Me]=wt[me]=wt[Tc]=wt[Fl]=wt[et]=wt[xt]=wt[$v]=wt[Vv]=wt[Yv]=wt[Hv]=wt[zv]=wt[wn]=wt[mi]=wt[Ds]=wt[Cc]=wt[vi]=wt[Ec]=wt[ih]=wt[Wv]=wt[Uv]=wt[Gv]=wt[Xv]=!0,wt[It]=wt[En]=wt[Mc]=!1;var sF={Ã:"A",Ã:"A",Ã:"A",Ã:"A",Ã:"A",à :"A",à :"a",á:"a",â:"a",ã:"a",ä:"a",Ã¥:"a",Ã:"C",ç:"c",Ã:"D",ð:"d",Ã:"E",Ã:"E",Ã:"E",Ã:"E",è:"e",é:"e",ê:"e",ë:"e",Ã:"I",Ã:"I",Ã:"I",Ã:"I",ì:"i",Ã:"i",î:"i",ï:"i",Ã:"N",ñ:"n",Ã:"O",Ã:"O",Ã:"O",Ã:"O",Ã:"O",Ã:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ã:"U",Ã:"U",Ã:"U",Ã:"U",ù:"u",ú:"u",û:"u",ü:"u",Ã:"Y",ý:"y",ÿ:"y",Ã:"Ae",æ:"ae",Ã:"Th",þ:"th",Ã:"ss",Ä:"A",Ä:"A",Ä:"A",Ä:"a",Ä:"a",Ä :"a",Ä:"C",Ä:"C",Ä:"C",Ä:"C",Ä:"c",Ä:"c",Ä:"c",Ä:"c",Ä:"D",Ä:"D",Ä:"d",Ä:"d",Ä:"E",Ä:"E",Ä:"E",Ä:"E",Ä:"E",Ä:"e",Ä:"e",Ä:"e",Ä:"e",Ä:"e",Ä:"G",Ä:"G",Ä :"G",Ä¢:"G",Ä:"g",Ä:"g",Ä¡:"g",Ä£:"g",Ĥ:"H",Ħ:"H",Ä¥:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Ä®:"I",İ:"I",Ä©:"i",Ä«:"i",Ä:"i",į:"i",ı:"i",Ä´:"J",ĵ:"j",Ķ:"K",Ä·:"k",ĸ:"k",Ĺ:"L",Ä»:"L",Ľ:"L",Ä¿:"L",Å:"L",ĺ:"l",ļ:"l",ľ:"l",Å:"l",Å:"l",Å:"N",Å :"N",Å:"N",Å:"N",Å:"n",Å:"n",Å:"n",Å:"n",Å:"O",Å:"O",Å:"O",Å:"o",Å:"o",Å:"o",Å:"R",Å:"R",Å:"R",Å:"r",Å:"r",Å:"r",Å:"S",Å:"S",Å:"S",Å :"S",Å:"s",Å:"s",Å:"s",Å¡:"s",Å¢:"T",Ť:"T",Ŧ:"T",Å£:"t",Å¥:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Å®:"U",Ű:"U",Ų:"U",Å©:"u",Å«:"u",Å:"u",ů:"u",ű:"u",ų:"u",Å´:"W",ŵ:"w",Ŷ:"Y",Å·:"y",Ÿ:"Y",Ź:"Z",Å»:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Å:"Oe",Å:"oe",Å:"'n",Å¿:"s"},aF={"&":"&","<":"<",">":">",'"':""","'":"'"},oF={"&":"&","<":"<",">":">",""":'"',"'":"'"},lF={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},uF=parseFloat,cF=parseInt,SS=typeof La=="object"&&La&&La.Object===Object&&La,dF=typeof self=="object"&&self&&self.Object===Object&&self,Mn=SS||dF||Function("return this")(),nb=e&&!e.nodeType&&e,yo=nb&&!0&&n&&!n.nodeType&&n,DS=yo&&yo.exports===nb,rb=DS&&SS.process,qr=function(){try{var W=yo&&yo.require&&yo.require("util").types;return W||rb&&rb.binding&&rb.binding("util")}catch{}}(),kS=qr&&qr.isArrayBuffer,PS=qr&&qr.isDate,CS=qr&&qr.isMap,ES=qr&&qr.isRegExp,MS=qr&&qr.isSet,TS=qr&&qr.isTypedArray;function Dr(W,ee,J){switch(J.length){case 0:return W.call(ee);case 1:return W.call(ee,J[0]);case 2:return W.call(ee,J[0],J[1]);case 3:return W.call(ee,J[0],J[1],J[2])}return W.apply(ee,J)}function fF(W,ee,J,fe){for(var Fe=-1,it=W==null?0:W.length;++Fe<it;){var dn=W[Fe];ee(fe,dn,J(dn),W)}return fe}function Kr(W,ee){for(var J=-1,fe=W==null?0:W.length;++J<fe&&ee(W[J],J,W)!==!1;);return W}function hF(W,ee){for(var J=W==null?0:W.length;J--&&ee(W[J],J,W)!==!1;);return W}function OS(W,ee){for(var J=-1,fe=W==null?0:W.length;++J<fe;)if(!ee(W[J],J,W))return!1;return!0}function xa(W,ee){for(var J=-1,fe=W==null?0:W.length,Fe=0,it=[];++J<fe;){var dn=W[J];ee(dn,J,W)&&(it[Fe++]=dn)}return it}function lh(W,ee){var J=W==null?0:W.length;return!!J&&Bl(W,ee,0)>-1}function ib(W,ee,J){for(var fe=-1,Fe=W==null?0:W.length;++fe<Fe;)if(J(ee,W[fe]))return!0;return!1}function Nt(W,ee){for(var J=-1,fe=W==null?0:W.length,Fe=Array(fe);++J<fe;)Fe[J]=ee(W[J],J,W);return Fe}function wa(W,ee){for(var J=-1,fe=ee.length,Fe=W.length;++J<fe;)W[Fe+J]=ee[J];return W}function sb(W,ee,J,fe){var Fe=-1,it=W==null?0:W.length;for(fe&&it&&(J=W[++Fe]);++Fe<it;)J=ee(J,W[Fe],Fe,W);return J}function pF(W,ee,J,fe){var Fe=W==null?0:W.length;for(fe&&Fe&&(J=W[--Fe]);Fe--;)J=ee(J,W[Fe],Fe,W);return J}function ab(W,ee){for(var J=-1,fe=W==null?0:W.length;++J<fe;)if(ee(W[J],J,W))return!0;return!1}var gF=ob("length");function mF(W){return W.split("")}function vF(W){return W.match(kN)||[]}function AS(W,ee,J){var fe;return J(W,function(Fe,it,dn){if(ee(Fe,it,dn))return fe=it,!1}),fe}function uh(W,ee,J,fe){for(var Fe=W.length,it=J+(fe?1:-1);fe?it--:++it<Fe;)if(ee(W[it],it,W))return it;return-1}function Bl(W,ee,J){return ee===ee?MF(W,ee,J):uh(W,jS,J)}function bF(W,ee,J,fe){for(var Fe=J-1,it=W.length;++Fe<it;)if(fe(W[Fe],ee))return Fe;return-1}function jS(W){return W!==W}function RS(W,ee){var J=W==null?0:W.length;return J?ub(W,ee)/J:Z}function ob(W){return function(ee){return ee==null?t:ee[W]}}function lb(W){return function(ee){return W==null?t:W[ee]}}function IS(W,ee,J,fe,Fe){return Fe(W,function(it,dn,_t){J=fe?(fe=!1,it):ee(J,it,dn,_t)}),J}function yF(W,ee){var J=W.length;for(W.sort(ee);J--;)W[J]=W[J].value;return W}function ub(W,ee){for(var J,fe=-1,Fe=W.length;++fe<Fe;){var it=ee(W[fe]);it!==t&&(J=J===t?it:J+it)}return J}function cb(W,ee){for(var J=-1,fe=Array(W);++J<W;)fe[J]=ee(J);return fe}function _F(W,ee){return Nt(ee,function(J){return[J,W[J]]})}function NS(W){return W&&W.slice(0,$S(W)+1).replace(Kv,"")}function kr(W){return function(ee){return W(ee)}}function db(W,ee){return Nt(ee,function(J){return W[J]})}function Oc(W,ee){return W.has(ee)}function FS(W,ee){for(var J=-1,fe=W.length;++J<fe&&Bl(ee,W[J],0)>-1;);return J}function LS(W,ee){for(var J=W.length;J--&&Bl(ee,W[J],0)>-1;);return J}function xF(W,ee){for(var J=W.length,fe=0;J--;)W[J]===ee&&++fe;return fe}var wF=lb(sF),SF=lb(aF);function DF(W){return"\\"+lF[W]}function kF(W,ee){return W==null?t:W[ee]}function $l(W){return tF.test(W)}function PF(W){return nF.test(W)}function CF(W){for(var ee,J=[];!(ee=W.next()).done;)J.push(ee.value);return J}function fb(W){var ee=-1,J=Array(W.size);return W.forEach(function(fe,Fe){J[++ee]=[Fe,fe]}),J}function BS(W,ee){return function(J){return W(ee(J))}}function Sa(W,ee){for(var J=-1,fe=W.length,Fe=0,it=[];++J<fe;){var dn=W[J];(dn===ee||dn===h)&&(W[J]=h,it[Fe++]=J)}return it}function ch(W){var ee=-1,J=Array(W.size);return W.forEach(function(fe){J[++ee]=fe}),J}function EF(W){var ee=-1,J=Array(W.size);return W.forEach(function(fe){J[++ee]=[fe,fe]}),J}function MF(W,ee,J){for(var fe=J-1,Fe=W.length;++fe<Fe;)if(W[fe]===ee)return fe;return-1}function TF(W,ee,J){for(var fe=J+1;fe--;)if(W[fe]===ee)return fe;return fe}function Vl(W){return $l(W)?AF(W):gF(W)}function bi(W){return $l(W)?jF(W):mF(W)}function $S(W){for(var ee=W.length;ee--&&xN.test(W.charAt(ee)););return ee}var OF=lb(oF);function AF(W){for(var ee=tb.lastIndex=0;tb.test(W);)++ee;return ee}function jF(W){return W.match(tb)||[]}function RF(W){return W.match(eF)||[]}var IF=function W(ee){ee=ee==null?Mn:Yl.defaults(Mn.Object(),ee,Yl.pick(Mn,rF));var J=ee.Array,fe=ee.Date,Fe=ee.Error,it=ee.Function,dn=ee.Math,_t=ee.Object,hb=ee.RegExp,NF=ee.String,Qr=ee.TypeError,dh=J.prototype,FF=it.prototype,Hl=_t.prototype,fh=ee["__core-js_shared__"],hh=FF.toString,dt=Hl.hasOwnProperty,LF=0,VS=function(){var c=/[^.]+$/.exec(fh&&fh.keys&&fh.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""}(),ph=Hl.toString,BF=hh.call(_t),$F=Mn._,VF=hb("^"+hh.call(dt).replace(qv,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),gh=DS?ee.Buffer:t,Da=ee.Symbol,mh=ee.Uint8Array,YS=gh?gh.allocUnsafe:t,vh=BS(_t.getPrototypeOf,_t),HS=_t.create,zS=Hl.propertyIsEnumerable,bh=dh.splice,WS=Da?Da.isConcatSpreadable:t,Ac=Da?Da.iterator:t,_o=Da?Da.toStringTag:t,yh=function(){try{var c=ko(_t,"defineProperty");return c({},"",{}),c}catch{}}(),YF=ee.clearTimeout!==Mn.clearTimeout&&ee.clearTimeout,HF=fe&&fe.now!==Mn.Date.now&&fe.now,zF=ee.setTimeout!==Mn.setTimeout&&ee.setTimeout,_h=dn.ceil,xh=dn.floor,pb=_t.getOwnPropertySymbols,WF=gh?gh.isBuffer:t,US=ee.isFinite,UF=dh.join,GF=BS(_t.keys,_t),fn=dn.max,Ln=dn.min,XF=fe.now,qF=ee.parseInt,GS=dn.random,KF=dh.reverse,gb=ko(ee,"DataView"),jc=ko(ee,"Map"),mb=ko(ee,"Promise"),zl=ko(ee,"Set"),Rc=ko(ee,"WeakMap"),Ic=ko(_t,"create"),wh=Rc&&new Rc,Wl={},QF=Po(gb),ZF=Po(jc),JF=Po(mb),eL=Po(zl),tL=Po(Rc),Sh=Da?Da.prototype:t,Nc=Sh?Sh.valueOf:t,XS=Sh?Sh.toString:t;function T(c){if(Wt(c)&&!Be(c)&&!(c instanceof qe)){if(c instanceof Zr)return c;if(dt.call(c,"__wrapped__"))return qD(c)}return new Zr(c)}var Ul=function(){function c(){}return function(p){if(!Lt(p))return{};if(HS)return HS(p);c.prototype=p;var b=new c;return c.prototype=t,b}}();function Dh(){}function Zr(c,p){this.__wrapped__=c,this.__actions__=[],this.__chain__=!!p,this.__index__=0,this.__values__=t}T.templateSettings={escape:gN,evaluate:mN,interpolate:rS,variable:"",imports:{_:T}},T.prototype=Dh.prototype,T.prototype.constructor=T,Zr.prototype=Ul(Dh.prototype),Zr.prototype.constructor=Zr;function qe(c){this.__wrapped__=c,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=se,this.__views__=[]}function nL(){var c=new qe(this.__wrapped__);return c.__actions__=sr(this.__actions__),c.__dir__=this.__dir__,c.__filtered__=this.__filtered__,c.__iteratees__=sr(this.__iteratees__),c.__takeCount__=this.__takeCount__,c.__views__=sr(this.__views__),c}function rL(){if(this.__filtered__){var c=new qe(this);c.__dir__=-1,c.__filtered__=!0}else c=this.clone(),c.__dir__*=-1;return c}function iL(){var c=this.__wrapped__.value(),p=this.__dir__,b=Be(c),D=p<0,C=b?c.length:0,O=mB(0,C,this.__views__),N=O.start,$=O.end,G=$-N,te=D?$:N-1,ne=this.__iteratees__,re=ne.length,ue=0,ve=Ln(G,this.__takeCount__);if(!b||!D&&C==G&&ve==G)return bD(c,this.__actions__);var Te=[];e:for(;G--&&ue<ve;){te+=p;for(var ze=-1,Oe=c[te];++ze<re;){var Ge=ne[ze],Ze=Ge.iteratee,Er=Ge.type,Kn=Ze(Oe);if(Er==K)Oe=Kn;else if(!Kn){if(Er==X)continue e;break e}}Te[ue++]=Oe}return Te}qe.prototype=Ul(Dh.prototype),qe.prototype.constructor=qe;function xo(c){var p=-1,b=c==null?0:c.length;for(this.clear();++p<b;){var D=c[p];this.set(D[0],D[1])}}function sL(){this.__data__=Ic?Ic(null):{},this.size=0}function aL(c){var p=this.has(c)&&delete this.__data__[c];return this.size-=p?1:0,p}function oL(c){var p=this.__data__;if(Ic){var b=p[c];return b===l?t:b}return dt.call(p,c)?p[c]:t}function lL(c){var p=this.__data__;return Ic?p[c]!==t:dt.call(p,c)}function uL(c,p){var b=this.__data__;return this.size+=this.has(c)?0:1,b[c]=Ic&&p===t?l:p,this}xo.prototype.clear=sL,xo.prototype.delete=aL,xo.prototype.get=oL,xo.prototype.has=lL,xo.prototype.set=uL;function ks(c){var p=-1,b=c==null?0:c.length;for(this.clear();++p<b;){var D=c[p];this.set(D[0],D[1])}}function cL(){this.__data__=[],this.size=0}function dL(c){var p=this.__data__,b=kh(p,c);if(b<0)return!1;var D=p.length-1;return b==D?p.pop():bh.call(p,b,1),--this.size,!0}function fL(c){var p=this.__data__,b=kh(p,c);return b<0?t:p[b][1]}function hL(c){return kh(this.__data__,c)>-1}function pL(c,p){var b=this.__data__,D=kh(b,c);return D<0?(++this.size,b.push([c,p])):b[D][1]=p,this}ks.prototype.clear=cL,ks.prototype.delete=dL,ks.prototype.get=fL,ks.prototype.has=hL,ks.prototype.set=pL;function Ps(c){var p=-1,b=c==null?0:c.length;for(this.clear();++p<b;){var D=c[p];this.set(D[0],D[1])}}function gL(){this.size=0,this.__data__={hash:new xo,map:new(jc||ks),string:new xo}}function mL(c){var p=Fh(this,c).delete(c);return this.size-=p?1:0,p}function vL(c){return Fh(this,c).get(c)}function bL(c){return Fh(this,c).has(c)}function yL(c,p){var b=Fh(this,c),D=b.size;return b.set(c,p),this.size+=b.size==D?0:1,this}Ps.prototype.clear=gL,Ps.prototype.delete=mL,Ps.prototype.get=vL,Ps.prototype.has=bL,Ps.prototype.set=yL;function wo(c){var p=-1,b=c==null?0:c.length;for(this.__data__=new Ps;++p<b;)this.add(c[p])}function _L(c){return this.__data__.set(c,l),this}function xL(c){return this.__data__.has(c)}wo.prototype.add=wo.prototype.push=_L,wo.prototype.has=xL;function yi(c){var p=this.__data__=new ks(c);this.size=p.size}function wL(){this.__data__=new ks,this.size=0}function SL(c){var p=this.__data__,b=p.delete(c);return this.size=p.size,b}function DL(c){return this.__data__.get(c)}function kL(c){return this.__data__.has(c)}function PL(c,p){var b=this.__data__;if(b instanceof ks){var D=b.__data__;if(!jc||D.length<i-1)return D.push([c,p]),this.size=++b.size,this;b=this.__data__=new Ps(D)}return b.set(c,p),this.size=b.size,this}yi.prototype.clear=wL,yi.prototype.delete=SL,yi.prototype.get=DL,yi.prototype.has=kL,yi.prototype.set=PL;function qS(c,p){var b=Be(c),D=!b&&Co(c),C=!b&&!D&&Ma(c),O=!b&&!D&&!C&&Kl(c),N=b||D||C||O,$=N?cb(c.length,NF):[],G=$.length;for(var te in c)(p||dt.call(c,te))&&!(N&&(te=="length"||C&&(te=="offset"||te=="parent")||O&&(te=="buffer"||te=="byteLength"||te=="byteOffset")||Ts(te,G)))&&$.push(te);return $}function KS(c){var p=c.length;return p?c[Cb(0,p-1)]:t}function CL(c,p){return Lh(sr(c),So(p,0,c.length))}function EL(c){return Lh(sr(c))}function vb(c,p,b){(b!==t&&!_i(c[p],b)||b===t&&!(p in c))&&Cs(c,p,b)}function Fc(c,p,b){var D=c[p];(!(dt.call(c,p)&&_i(D,b))||b===t&&!(p in c))&&Cs(c,p,b)}function kh(c,p){for(var b=c.length;b--;)if(_i(c[b][0],p))return b;return-1}function ML(c,p,b,D){return ka(c,function(C,O,N){p(D,C,b(C),N)}),D}function QS(c,p){return c&&zi(p,Sn(p),c)}function TL(c,p){return c&&zi(p,or(p),c)}function Cs(c,p,b){p=="__proto__"&&yh?yh(c,p,{configurable:!0,enumerable:!0,value:b,writable:!0}):c[p]=b}function bb(c,p){for(var b=-1,D=p.length,C=J(D),O=c==null;++b<D;)C[b]=O?t:Zb(c,p[b]);return C}function So(c,p,b){return c===c&&(b!==t&&(c=c<=b?c:b),p!==t&&(c=c>=p?c:p)),c}function Jr(c,p,b,D,C,O){var N,$=p&f,G=p&m,te=p&g;if(b&&(N=C?b(c,D,C,O):b(c)),N!==t)return N;if(!Lt(c))return c;var ne=Be(c);if(ne){if(N=bB(c),!$)return sr(c,N)}else{var re=Bn(c),ue=re==En||re==Sr;if(Ma(c))return xD(c,$);if(re==Ds||re==Me||ue&&!C){if(N=G||ue?{}:$D(c),!$)return G?oB(c,TL(N,c)):aB(c,QS(N,c))}else{if(!wt[re])return C?c:{};N=yB(c,re,$)}}O||(O=new yi);var ve=O.get(c);if(ve)return ve;O.set(c,N),gk(c)?c.forEach(function(Oe){N.add(Jr(Oe,p,b,Oe,c,O))}):hk(c)&&c.forEach(function(Oe,Ge){N.set(Ge,Jr(Oe,p,b,Ge,c,O))});var Te=te?G?Lb:Fb:G?or:Sn,ze=ne?t:Te(c);return Kr(ze||c,function(Oe,Ge){ze&&(Ge=Oe,Oe=c[Ge]),Fc(N,Ge,Jr(Oe,p,b,Ge,c,O))}),N}function OL(c){var p=Sn(c);return function(b){return ZS(b,c,p)}}function ZS(c,p,b){var D=b.length;if(c==null)return!D;for(c=_t(c);D--;){var C=b[D],O=p[C],N=c[C];if(N===t&&!(C in c)||!O(N))return!1}return!0}function JS(c,p,b){if(typeof c!="function")throw new Qr(a);return zc(function(){c.apply(t,b)},p)}function Lc(c,p,b,D){var C=-1,O=lh,N=!0,$=c.length,G=[],te=p.length;if(!$)return G;b&&(p=Nt(p,kr(b))),D?(O=ib,N=!1):p.length>=i&&(O=Oc,N=!1,p=new wo(p));e:for(;++C<$;){var ne=c[C],re=b==null?ne:b(ne);if(ne=D||ne!==0?ne:0,N&&re===re){for(var ue=te;ue--;)if(p[ue]===re)continue e;G.push(ne)}else O(p,re,D)||G.push(ne)}return G}var ka=PD(Hi),eD=PD(_b,!0);function AL(c,p){var b=!0;return ka(c,function(D,C,O){return b=!!p(D,C,O),b}),b}function Ph(c,p,b){for(var D=-1,C=c.length;++D<C;){var O=c[D],N=p(O);if(N!=null&&($===t?N===N&&!Cr(N):b(N,$)))var $=N,G=O}return G}function jL(c,p,b,D){var C=c.length;for(b=Ve(b),b<0&&(b=-b>C?0:C+b),D=D===t||D>C?C:Ve(D),D<0&&(D+=C),D=b>D?0:vk(D);b<D;)c[b++]=p;return c}function tD(c,p){var b=[];return ka(c,function(D,C,O){p(D,C,O)&&b.push(D)}),b}function Tn(c,p,b,D,C){var O=-1,N=c.length;for(b||(b=xB),C||(C=[]);++O<N;){var $=c[O];p>0&&b($)?p>1?Tn($,p-1,b,D,C):wa(C,$):D||(C[C.length]=$)}return C}var yb=CD(),nD=CD(!0);function Hi(c,p){return c&&yb(c,p,Sn)}function _b(c,p){return c&&nD(c,p,Sn)}function Ch(c,p){return xa(p,function(b){return Os(c[b])})}function Do(c,p){p=Ca(p,c);for(var b=0,D=p.length;c!=null&&b<D;)c=c[Wi(p[b++])];return b&&b==D?c:t}function rD(c,p,b){var D=p(c);return Be(c)?D:wa(D,b(c))}function Xn(c){return c==null?c===t?lN:J1:_o&&_o in _t(c)?gB(c):EB(c)}function xb(c,p){return c>p}function RL(c,p){return c!=null&&dt.call(c,p)}function IL(c,p){return c!=null&&p in _t(c)}function NL(c,p,b){return c>=Ln(p,b)&&c<fn(p,b)}function wb(c,p,b){for(var D=b?ib:lh,C=c[0].length,O=c.length,N=O,$=J(O),G=1/0,te=[];N--;){var ne=c[N];N&&p&&(ne=Nt(ne,kr(p))),G=Ln(ne.length,G),$[N]=!b&&(p||C>=120&&ne.length>=120)?new wo(N&&ne):t}ne=c[0];var re=-1,ue=$[0];e:for(;++re<C&&te.length<G;){var ve=ne[re],Te=p?p(ve):ve;if(ve=b||ve!==0?ve:0,!(ue?Oc(ue,Te):D(te,Te,b))){for(N=O;--N;){var ze=$[N];if(!(ze?Oc(ze,Te):D(c[N],Te,b)))continue e}ue&&ue.push(Te),te.push(ve)}}return te}function FL(c,p,b,D){return Hi(c,function(C,O,N){p(D,b(C),O,N)}),D}function Bc(c,p,b){p=Ca(p,c),c=zD(c,p);var D=c==null?c:c[Wi(ti(p))];return D==null?t:Dr(D,c,b)}function iD(c){return Wt(c)&&Xn(c)==Me}function LL(c){return Wt(c)&&Xn(c)==Tc}function BL(c){return Wt(c)&&Xn(c)==xt}function $c(c,p,b,D,C){return c===p?!0:c==null||p==null||!Wt(c)&&!Wt(p)?c!==c&&p!==p:$L(c,p,b,D,$c,C)}function $L(c,p,b,D,C,O){var N=Be(c),$=Be(p),G=N?me:Bn(c),te=$?me:Bn(p);G=G==Me?Ds:G,te=te==Me?Ds:te;var ne=G==Ds,re=te==Ds,ue=G==te;if(ue&&Ma(c)){if(!Ma(p))return!1;N=!0,ne=!1}if(ue&&!ne)return O||(O=new yi),N||Kl(c)?FD(c,p,b,D,C,O):hB(c,p,G,b,D,C,O);if(!(b&y)){var ve=ne&&dt.call(c,"__wrapped__"),Te=re&&dt.call(p,"__wrapped__");if(ve||Te){var ze=ve?c.value():c,Oe=Te?p.value():p;return O||(O=new yi),C(ze,Oe,b,D,O)}}return ue?(O||(O=new yi),pB(c,p,b,D,C,O)):!1}function VL(c){return Wt(c)&&Bn(c)==wn}function Sb(c,p,b,D){var C=b.length,O=C,N=!D;if(c==null)return!O;for(c=_t(c);C--;){var $=b[C];if(N&&$[2]?$[1]!==c[$[0]]:!($[0]in c))return!1}for(;++C<O;){$=b[C];var G=$[0],te=c[G],ne=$[1];if(N&&$[2]){if(te===t&&!(G in c))return!1}else{var re=new yi;if(D)var ue=D(te,ne,G,c,p,re);if(!(ue===t?$c(ne,te,y|v,D,re):ue))return!1}}return!0}function sD(c){if(!Lt(c)||SB(c))return!1;var p=Os(c)?VF:ON;return p.test(Po(c))}function YL(c){return Wt(c)&&Xn(c)==Cc}function HL(c){return Wt(c)&&Bn(c)==vi}function zL(c){return Wt(c)&&zh(c.length)&&!!Ct[Xn(c)]}function aD(c){return typeof c=="function"?c:c==null?lr:typeof c=="object"?Be(c)?uD(c[0],c[1]):lD(c):Ek(c)}function Db(c){if(!Hc(c))return GF(c);var p=[];for(var b in _t(c))dt.call(c,b)&&b!="constructor"&&p.push(b);return p}function WL(c){if(!Lt(c))return CB(c);var p=Hc(c),b=[];for(var D in c)D=="constructor"&&(p||!dt.call(c,D))||b.push(D);return b}function kb(c,p){return c<p}function oD(c,p){var b=-1,D=ar(c)?J(c.length):[];return ka(c,function(C,O,N){D[++b]=p(C,O,N)}),D}function lD(c){var p=$b(c);return p.length==1&&p[0][2]?YD(p[0][0],p[0][1]):function(b){return b===c||Sb(b,c,p)}}function uD(c,p){return Yb(c)&&VD(p)?YD(Wi(c),p):function(b){var D=Zb(b,c);return D===t&&D===p?Jb(b,c):$c(p,D,y|v)}}function Eh(c,p,b,D,C){c!==p&&yb(p,function(O,N){if(C||(C=new yi),Lt(O))UL(c,p,N,b,Eh,D,C);else{var $=D?D(zb(c,N),O,N+"",c,p,C):t;$===t&&($=O),vb(c,N,$)}},or)}function UL(c,p,b,D,C,O,N){var $=zb(c,b),G=zb(p,b),te=N.get(G);if(te){vb(c,b,te);return}var ne=O?O($,G,b+"",c,p,N):t,re=ne===t;if(re){var ue=Be(G),ve=!ue&&Ma(G),Te=!ue&&!ve&&Kl(G);ne=G,ue||ve||Te?Be($)?ne=$:Zt($)?ne=sr($):ve?(re=!1,ne=xD(G,!0)):Te?(re=!1,ne=wD(G,!0)):ne=[]:Wc(G)||Co(G)?(ne=$,Co($)?ne=bk($):(!Lt($)||Os($))&&(ne=$D(G))):re=!1}re&&(N.set(G,ne),C(ne,G,D,O,N),N.delete(G)),vb(c,b,ne)}function cD(c,p){var b=c.length;if(b)return p+=p<0?b:0,Ts(p,b)?c[p]:t}function dD(c,p,b){p.length?p=Nt(p,function(O){return Be(O)?function(N){return Do(N,O.length===1?O[0]:O)}:O}):p=[lr];var D=-1;p=Nt(p,kr(Ce()));var C=oD(c,function(O,N,$){var G=Nt(p,function(te){return te(O)});return{criteria:G,index:++D,value:O}});return yF(C,function(O,N){return sB(O,N,b)})}function GL(c,p){return fD(c,p,function(b,D){return Jb(c,D)})}function fD(c,p,b){for(var D=-1,C=p.length,O={};++D<C;){var N=p[D],$=Do(c,N);b($,N)&&Vc(O,Ca(N,c),$)}return O}function XL(c){return function(p){return Do(p,c)}}function Pb(c,p,b,D){var C=D?bF:Bl,O=-1,N=p.length,$=c;for(c===p&&(p=sr(p)),b&&($=Nt(c,kr(b)));++O<N;)for(var G=0,te=p[O],ne=b?b(te):te;(G=C($,ne,G,D))>-1;)$!==c&&bh.call($,G,1),bh.call(c,G,1);return c}function hD(c,p){for(var b=c?p.length:0,D=b-1;b--;){var C=p[b];if(b==D||C!==O){var O=C;Ts(C)?bh.call(c,C,1):Tb(c,C)}}return c}function Cb(c,p){return c+xh(GS()*(p-c+1))}function qL(c,p,b,D){for(var C=-1,O=fn(_h((p-c)/(b||1)),0),N=J(O);O--;)N[D?O:++C]=c,c+=b;return N}function Eb(c,p){var b="";if(!c||p<1||p>R)return b;do p%2&&(b+=c),p=xh(p/2),p&&(c+=c);while(p);return b}function We(c,p){return Wb(HD(c,p,lr),c+"")}function KL(c){return KS(Ql(c))}function QL(c,p){var b=Ql(c);return Lh(b,So(p,0,b.length))}function Vc(c,p,b,D){if(!Lt(c))return c;p=Ca(p,c);for(var C=-1,O=p.length,N=O-1,$=c;$!=null&&++C<O;){var G=Wi(p[C]),te=b;if(G==="__proto__"||G==="constructor"||G==="prototype")return c;if(C!=N){var ne=$[G];te=D?D(ne,G,$):t,te===t&&(te=Lt(ne)?ne:Ts(p[C+1])?[]:{})}Fc($,G,te),$=$[G]}return c}var pD=wh?function(c,p){return wh.set(c,p),c}:lr,ZL=yh?function(c,p){return yh(c,"toString",{configurable:!0,enumerable:!1,value:ty(p),writable:!0})}:lr;function JL(c){return Lh(Ql(c))}function ei(c,p,b){var D=-1,C=c.length;p<0&&(p=-p>C?0:C+p),b=b>C?C:b,b<0&&(b+=C),C=p>b?0:b-p>>>0,p>>>=0;for(var O=J(C);++D<C;)O[D]=c[D+p];return O}function eB(c,p){var b;return ka(c,function(D,C,O){return b=p(D,C,O),!b}),!!b}function Mh(c,p,b){var D=0,C=c==null?D:c.length;if(typeof p=="number"&&p===p&&C<=ge){for(;D<C;){var O=D+C>>>1,N=c[O];N!==null&&!Cr(N)&&(b?N<=p:N<p)?D=O+1:C=O}return C}return Mb(c,p,lr,b)}function Mb(c,p,b,D){var C=0,O=c==null?0:c.length;if(O===0)return 0;p=b(p);for(var N=p!==p,$=p===null,G=Cr(p),te=p===t;C<O;){var ne=xh((C+O)/2),re=b(c[ne]),ue=re!==t,ve=re===null,Te=re===re,ze=Cr(re);if(N)var Oe=D||Te;else te?Oe=Te&&(D||ue):$?Oe=Te&&ue&&(D||!ve):G?Oe=Te&&ue&&!ve&&(D||!ze):ve||ze?Oe=!1:Oe=D?re<=p:re<p;Oe?C=ne+1:O=ne}return Ln(O,ae)}function gD(c,p){for(var b=-1,D=c.length,C=0,O=[];++b<D;){var N=c[b],$=p?p(N):N;if(!b||!_i($,G)){var G=$;O[C++]=N===0?0:N}}return O}function mD(c){return typeof c=="number"?c:Cr(c)?Z:+c}function Pr(c){if(typeof c=="string")return c;if(Be(c))return Nt(c,Pr)+"";if(Cr(c))return XS?XS.call(c):"";var p=c+"";return p=="0"&&1/c==-F?"-0":p}function Pa(c,p,b){var D=-1,C=lh,O=c.length,N=!0,$=[],G=$;if(b)N=!1,C=ib;else if(O>=i){var te=p?null:dB(c);if(te)return ch(te);N=!1,C=Oc,G=new wo}else G=p?[]:$;e:for(;++D<O;){var ne=c[D],re=p?p(ne):ne;if(ne=b||ne!==0?ne:0,N&&re===re){for(var ue=G.length;ue--;)if(G[ue]===re)continue e;p&&G.push(re),$.push(ne)}else C(G,re,b)||(G!==$&&G.push(re),$.push(ne))}return $}function Tb(c,p){return p=Ca(p,c),c=zD(c,p),c==null||delete c[Wi(ti(p))]}function vD(c,p,b,D){return Vc(c,p,b(Do(c,p)),D)}function Th(c,p,b,D){for(var C=c.length,O=D?C:-1;(D?O--:++O<C)&&p(c[O],O,c););return b?ei(c,D?0:O,D?O+1:C):ei(c,D?O+1:0,D?C:O)}function bD(c,p){var b=c;return b instanceof qe&&(b=b.value()),sb(p,function(D,C){return C.func.apply(C.thisArg,wa([D],C.args))},b)}function Ob(c,p,b){var D=c.length;if(D<2)return D?Pa(c[0]):[];for(var C=-1,O=J(D);++C<D;)for(var N=c[C],$=-1;++$<D;)$!=C&&(O[C]=Lc(O[C]||N,c[$],p,b));return Pa(Tn(O,1),p,b)}function yD(c,p,b){for(var D=-1,C=c.length,O=p.length,N={};++D<C;){var $=D<O?p[D]:t;b(N,c[D],$)}return N}function Ab(c){return Zt(c)?c:[]}function jb(c){return typeof c=="function"?c:lr}function Ca(c,p){return Be(c)?c:Yb(c,p)?[c]:XD(ct(c))}var tB=We;function Ea(c,p,b){var D=c.length;return b=b===t?D:b,!p&&b>=D?c:ei(c,p,b)}var _D=YF||function(c){return Mn.clearTimeout(c)};function xD(c,p){if(p)return c.slice();var b=c.length,D=YS?YS(b):new c.constructor(b);return c.copy(D),D}function Rb(c){var p=new c.constructor(c.byteLength);return new mh(p).set(new mh(c)),p}function nB(c,p){var b=p?Rb(c.buffer):c.buffer;return new c.constructor(b,c.byteOffset,c.byteLength)}function rB(c){var p=new c.constructor(c.source,iS.exec(c));return p.lastIndex=c.lastIndex,p}function iB(c){return Nc?_t(Nc.call(c)):{}}function wD(c,p){var b=p?Rb(c.buffer):c.buffer;return new c.constructor(b,c.byteOffset,c.length)}function SD(c,p){if(c!==p){var b=c!==t,D=c===null,C=c===c,O=Cr(c),N=p!==t,$=p===null,G=p===p,te=Cr(p);if(!$&&!te&&!O&&c>p||O&&N&&G&&!$&&!te||D&&N&&G||!b&&G||!C)return 1;if(!D&&!O&&!te&&c<p||te&&b&&C&&!D&&!O||$&&b&&C||!N&&C||!G)return-1}return 0}function sB(c,p,b){for(var D=-1,C=c.criteria,O=p.criteria,N=C.length,$=b.length;++D<N;){var G=SD(C[D],O[D]);if(G){if(D>=$)return G;var te=b[D];return G*(te=="desc"?-1:1)}}return c.index-p.index}function DD(c,p,b,D){for(var C=-1,O=c.length,N=b.length,$=-1,G=p.length,te=fn(O-N,0),ne=J(G+te),re=!D;++$<G;)ne[$]=p[$];for(;++C<N;)(re||C<O)&&(ne[b[C]]=c[C]);for(;te--;)ne[$++]=c[C++];return ne}function kD(c,p,b,D){for(var C=-1,O=c.length,N=-1,$=b.length,G=-1,te=p.length,ne=fn(O-$,0),re=J(ne+te),ue=!D;++C<ne;)re[C]=c[C];for(var ve=C;++G<te;)re[ve+G]=p[G];for(;++N<$;)(ue||C<O)&&(re[ve+b[N]]=c[C++]);return re}function sr(c,p){var b=-1,D=c.length;for(p||(p=J(D));++b<D;)p[b]=c[b];return p}function zi(c,p,b,D){var C=!b;b||(b={});for(var O=-1,N=p.length;++O<N;){var $=p[O],G=D?D(b[$],c[$],$,b,c):t;G===t&&(G=c[$]),C?Cs(b,$,G):Fc(b,$,G)}return b}function aB(c,p){return zi(c,Vb(c),p)}function oB(c,p){return zi(c,LD(c),p)}function Oh(c,p){return function(b,D){var C=Be(b)?fF:ML,O=p?p():{};return C(b,c,Ce(D,2),O)}}function Gl(c){return We(function(p,b){var D=-1,C=b.length,O=C>1?b[C-1]:t,N=C>2?b[2]:t;for(O=c.length>3&&typeof O=="function"?(C--,O):t,N&&qn(b[0],b[1],N)&&(O=C<3?t:O,C=1),p=_t(p);++D<C;){var $=b[D];$&&c(p,$,D,O)}return p})}function PD(c,p){return function(b,D){if(b==null)return b;if(!ar(b))return c(b,D);for(var C=b.length,O=p?C:-1,N=_t(b);(p?O--:++O<C)&&D(N[O],O,N)!==!1;);return b}}function CD(c){return function(p,b,D){for(var C=-1,O=_t(p),N=D(p),$=N.length;$--;){var G=N[c?$:++C];if(b(O[G],G,O)===!1)break}return p}}function lB(c,p,b){var D=p&x,C=Yc(c);function O(){var N=this&&this!==Mn&&this instanceof O?C:c;return N.apply(D?b:this,arguments)}return O}function ED(c){return function(p){p=ct(p);var b=$l(p)?bi(p):t,D=b?b[0]:p.charAt(0),C=b?Ea(b,1).join(""):p.slice(1);return D[c]()+C}}function Xl(c){return function(p){return sb(Pk(kk(p).replace(ZN,"")),c,"")}}function Yc(c){return function(){var p=arguments;switch(p.length){case 0:return new c;case 1:return new c(p[0]);case 2:return new c(p[0],p[1]);case 3:return new c(p[0],p[1],p[2]);case 4:return new c(p[0],p[1],p[2],p[3]);case 5:return new c(p[0],p[1],p[2],p[3],p[4]);case 6:return new c(p[0],p[1],p[2],p[3],p[4],p[5]);case 7:return new c(p[0],p[1],p[2],p[3],p[4],p[5],p[6])}var b=Ul(c.prototype),D=c.apply(b,p);return Lt(D)?D:b}}function uB(c,p,b){var D=Yc(c);function C(){for(var O=arguments.length,N=J(O),$=O,G=ql(C);$--;)N[$]=arguments[$];var te=O<3&&N[0]!==G&&N[O-1]!==G?[]:Sa(N,G);if(O-=te.length,O<b)return jD(c,p,Ah,C.placeholder,t,N,te,t,t,b-O);var ne=this&&this!==Mn&&this instanceof C?D:c;return Dr(ne,this,N)}return C}function MD(c){return function(p,b,D){var C=_t(p);if(!ar(p)){var O=Ce(b,3);p=Sn(p),b=function($){return O(C[$],$,C)}}var N=c(p,b,D);return N>-1?C[O?p[N]:N]:t}}function TD(c){return Ms(function(p){var b=p.length,D=b,C=Zr.prototype.thru;for(c&&p.reverse();D--;){var O=p[D];if(typeof O!="function")throw new Qr(a);if(C&&!N&&Nh(O)=="wrapper")var N=new Zr([],!0)}for(D=N?D:b;++D<b;){O=p[D];var $=Nh(O),G=$=="wrapper"?Bb(O):t;G&&Hb(G[0])&&G[1]==(A|w|P|M)&&!G[4].length&&G[9]==1?N=N[Nh(G[0])].apply(N,G[3]):N=O.length==1&&Hb(O)?N[$]():N.thru(O)}return function(){var te=arguments,ne=te[0];if(N&&te.length==1&&Be(ne))return N.plant(ne).value();for(var re=0,ue=b?p[re].apply(this,te):ne;++re<b;)ue=p[re].call(this,ue);return ue}})}function Ah(c,p,b,D,C,O,N,$,G,te){var ne=p&A,re=p&x,ue=p&_,ve=p&(w|k),Te=p&L,ze=ue?t:Yc(c);function Oe(){for(var Ge=arguments.length,Ze=J(Ge),Er=Ge;Er--;)Ze[Er]=arguments[Er];if(ve)var Kn=ql(Oe),Mr=xF(Ze,Kn);if(D&&(Ze=DD(Ze,D,C,ve)),O&&(Ze=kD(Ze,O,N,ve)),Ge-=Mr,ve&&Ge<te){var Jt=Sa(Ze,Kn);return jD(c,p,Ah,Oe.placeholder,b,Ze,Jt,$,G,te-Ge)}var xi=re?b:this,js=ue?xi[c]:c;return Ge=Ze.length,$?Ze=MB(Ze,$):Te&&Ge>1&&Ze.reverse(),ne&&G<Ge&&(Ze.length=G),this&&this!==Mn&&this instanceof Oe&&(js=ze||Yc(js)),js.apply(xi,Ze)}return Oe}function OD(c,p){return function(b,D){return FL(b,c,p(D),{})}}function jh(c,p){return function(b,D){var C;if(b===t&&D===t)return p;if(b!==t&&(C=b),D!==t){if(C===t)return D;typeof b=="string"||typeof D=="string"?(b=Pr(b),D=Pr(D)):(b=mD(b),D=mD(D)),C=c(b,D)}return C}}function Ib(c){return Ms(function(p){return p=Nt(p,kr(Ce())),We(function(b){var D=this;return c(p,function(C){return Dr(C,D,b)})})})}function Rh(c,p){p=p===t?" ":Pr(p);var b=p.length;if(b<2)return b?Eb(p,c):p;var D=Eb(p,_h(c/Vl(p)));return $l(p)?Ea(bi(D),0,c).join(""):D.slice(0,c)}function cB(c,p,b,D){var C=p&x,O=Yc(c);function N(){for(var $=-1,G=arguments.length,te=-1,ne=D.length,re=J(ne+G),ue=this&&this!==Mn&&this instanceof N?O:c;++te<ne;)re[te]=D[te];for(;G--;)re[te++]=arguments[++$];return Dr(ue,C?b:this,re)}return N}function AD(c){return function(p,b,D){return D&&typeof D!="number"&&qn(p,b,D)&&(b=D=t),p=As(p),b===t?(b=p,p=0):b=As(b),D=D===t?p<b?1:-1:As(D),qL(p,b,D,c)}}function Ih(c){return function(p,b){return typeof p=="string"&&typeof b=="string"||(p=ni(p),b=ni(b)),c(p,b)}}function jD(c,p,b,D,C,O,N,$,G,te){var ne=p&w,re=ne?N:t,ue=ne?t:N,ve=ne?O:t,Te=ne?t:O;p|=ne?P:j,p&=~(ne?j:P),p&S||(p&=~(x|_));var ze=[c,p,C,ve,re,Te,ue,$,G,te],Oe=b.apply(t,ze);return Hb(c)&&WD(Oe,ze),Oe.placeholder=D,UD(Oe,c,p)}function Nb(c){var p=dn[c];return function(b,D){if(b=ni(b),D=D==null?0:Ln(Ve(D),292),D&&US(b)){var C=(ct(b)+"e").split("e"),O=p(C[0]+"e"+(+C[1]+D));return C=(ct(O)+"e").split("e"),+(C[0]+"e"+(+C[1]-D))}return p(b)}}var dB=zl&&1/ch(new zl([,-0]))[1]==F?function(c){return new zl(c)}:iy;function RD(c){return function(p){var b=Bn(p);return b==wn?fb(p):b==vi?EF(p):_F(p,c(p))}}function Es(c,p,b,D,C,O,N,$){var G=p&_;if(!G&&typeof c!="function")throw new Qr(a);var te=D?D.length:0;if(te||(p&=~(P|j),D=C=t),N=N===t?N:fn(Ve(N),0),$=$===t?$:Ve($),te-=C?C.length:0,p&j){var ne=D,re=C;D=C=t}var ue=G?t:Bb(c),ve=[c,p,b,D,C,ne,re,O,N,$];if(ue&&PB(ve,ue),c=ve[0],p=ve[1],b=ve[2],D=ve[3],C=ve[4],$=ve[9]=ve[9]===t?G?0:c.length:fn(ve[9]-te,0),!$&&p&(w|k)&&(p&=~(w|k)),!p||p==x)var Te=lB(c,p,b);else p==w||p==k?Te=uB(c,p,$):(p==P||p==(x|P))&&!C.length?Te=cB(c,p,b,D):Te=Ah.apply(t,ve);var ze=ue?pD:WD;return UD(ze(Te,ve),c,p)}function ID(c,p,b,D){return c===t||_i(c,Hl[b])&&!dt.call(D,b)?p:c}function ND(c,p,b,D,C,O){return Lt(c)&&Lt(p)&&(O.set(p,c),Eh(c,p,t,ND,O),O.delete(p)),c}function fB(c){return Wc(c)?t:c}function FD(c,p,b,D,C,O){var N=b&y,$=c.length,G=p.length;if($!=G&&!(N&&G>$))return!1;var te=O.get(c),ne=O.get(p);if(te&&ne)return te==p&&ne==c;var re=-1,ue=!0,ve=b&v?new wo:t;for(O.set(c,p),O.set(p,c);++re<$;){var Te=c[re],ze=p[re];if(D)var Oe=N?D(ze,Te,re,p,c,O):D(Te,ze,re,c,p,O);if(Oe!==t){if(Oe)continue;ue=!1;break}if(ve){if(!ab(p,function(Ge,Ze){if(!Oc(ve,Ze)&&(Te===Ge||C(Te,Ge,b,D,O)))return ve.push(Ze)})){ue=!1;break}}else if(!(Te===ze||C(Te,ze,b,D,O))){ue=!1;break}}return O.delete(c),O.delete(p),ue}function hB(c,p,b,D,C,O,N){switch(b){case Fl:if(c.byteLength!=p.byteLength||c.byteOffset!=p.byteOffset)return!1;c=c.buffer,p=p.buffer;case Tc:return!(c.byteLength!=p.byteLength||!O(new mh(c),new mh(p)));case et:case xt:case mi:return _i(+c,+p);case It:return c.name==p.name&&c.message==p.message;case Cc:case Ec:return c==p+"";case wn:var $=fb;case vi:var G=D&y;if($||($=ch),c.size!=p.size&&!G)return!1;var te=N.get(c);if(te)return te==p;D|=v,N.set(c,p);var ne=FD($(c),$(p),D,C,O,N);return N.delete(c),ne;case ih:if(Nc)return Nc.call(c)==Nc.call(p)}return!1}function pB(c,p,b,D,C,O){var N=b&y,$=Fb(c),G=$.length,te=Fb(p),ne=te.length;if(G!=ne&&!N)return!1;for(var re=G;re--;){var ue=$[re];if(!(N?ue in p:dt.call(p,ue)))return!1}var ve=O.get(c),Te=O.get(p);if(ve&&Te)return ve==p&&Te==c;var ze=!0;O.set(c,p),O.set(p,c);for(var Oe=N;++re<G;){ue=$[re];var Ge=c[ue],Ze=p[ue];if(D)var Er=N?D(Ze,Ge,ue,p,c,O):D(Ge,Ze,ue,c,p,O);if(!(Er===t?Ge===Ze||C(Ge,Ze,b,D,O):Er)){ze=!1;break}Oe||(Oe=ue=="constructor")}if(ze&&!Oe){var Kn=c.constructor,Mr=p.constructor;Kn!=Mr&&"constructor"in c&&"constructor"in p&&!(typeof Kn=="function"&&Kn instanceof Kn&&typeof Mr=="function"&&Mr instanceof Mr)&&(ze=!1)}return O.delete(c),O.delete(p),ze}function Ms(c){return Wb(HD(c,t,ZD),c+"")}function Fb(c){return rD(c,Sn,Vb)}function Lb(c){return rD(c,or,LD)}var Bb=wh?function(c){return wh.get(c)}:iy;function Nh(c){for(var p=c.name+"",b=Wl[p],D=dt.call(Wl,p)?b.length:0;D--;){var C=b[D],O=C.func;if(O==null||O==c)return C.name}return p}function ql(c){var p=dt.call(T,"placeholder")?T:c;return p.placeholder}function Ce(){var c=T.iteratee||ny;return c=c===ny?aD:c,arguments.length?c(arguments[0],arguments[1]):c}function Fh(c,p){var b=c.__data__;return wB(p)?b[typeof p=="string"?"string":"hash"]:b.map}function $b(c){for(var p=Sn(c),b=p.length;b--;){var D=p[b],C=c[D];p[b]=[D,C,VD(C)]}return p}function ko(c,p){var b=kF(c,p);return sD(b)?b:t}function gB(c){var p=dt.call(c,_o),b=c[_o];try{c[_o]=t;var D=!0}catch{}var C=ph.call(c);return D&&(p?c[_o]=b:delete c[_o]),C}var Vb=pb?function(c){return c==null?[]:(c=_t(c),xa(pb(c),function(p){return zS.call(c,p)}))}:sy,LD=pb?function(c){for(var p=[];c;)wa(p,Vb(c)),c=vh(c);return p}:sy,Bn=Xn;(gb&&Bn(new gb(new ArrayBuffer(1)))!=Fl||jc&&Bn(new jc)!=wn||mb&&Bn(mb.resolve())!=eS||zl&&Bn(new zl)!=vi||Rc&&Bn(new Rc)!=Mc)&&(Bn=function(c){var p=Xn(c),b=p==Ds?c.constructor:t,D=b?Po(b):"";if(D)switch(D){case QF:return Fl;case ZF:return wn;case JF:return eS;case eL:return vi;case tL:return Mc}return p});function mB(c,p,b){for(var D=-1,C=b.length;++D<C;){var O=b[D],N=O.size;switch(O.type){case"drop":c+=N;break;case"dropRight":p-=N;break;case"take":p=Ln(p,c+N);break;case"takeRight":c=fn(c,p-N);break}}return{start:c,end:p}}function vB(c){var p=c.match(SN);return p?p[1].split(DN):[]}function BD(c,p,b){p=Ca(p,c);for(var D=-1,C=p.length,O=!1;++D<C;){var N=Wi(p[D]);if(!(O=c!=null&&b(c,N)))break;c=c[N]}return O||++D!=C?O:(C=c==null?0:c.length,!!C&&zh(C)&&Ts(N,C)&&(Be(c)||Co(c)))}function bB(c){var p=c.length,b=new c.constructor(p);return p&&typeof c[0]=="string"&&dt.call(c,"index")&&(b.index=c.index,b.input=c.input),b}function $D(c){return typeof c.constructor=="function"&&!Hc(c)?Ul(vh(c)):{}}function yB(c,p,b){var D=c.constructor;switch(p){case Tc:return Rb(c);case et:case xt:return new D(+c);case Fl:return nB(c,b);case $v:case Vv:case Yv:case Hv:case zv:case Wv:case Uv:case Gv:case Xv:return wD(c,b);case wn:return new D;case mi:case Ec:return new D(c);case Cc:return rB(c);case vi:return new D;case ih:return iB(c)}}function _B(c,p){var b=p.length;if(!b)return c;var D=b-1;return p[D]=(b>1?"& ":"")+p[D],p=p.join(b>2?", ":" "),c.replace(wN,`{ 62/* [wrapped with `+p+`] */ 63`)}function xB(c){return Be(c)||Co(c)||!!(WS&&c&&c[WS])}function Ts(c,p){var b=typeof c;return p=p??R,!!p&&(b=="number"||b!="symbol"&&jN.test(c))&&c>-1&&c%1==0&&c<p}function qn(c,p,b){if(!Lt(b))return!1;var D=typeof p;return(D=="number"?ar(b)&&Ts(p,b.length):D=="string"&&p in b)?_i(b[p],c):!1}function Yb(c,p){if(Be(c))return!1;var b=typeof c;return b=="number"||b=="symbol"||b=="boolean"||c==null||Cr(c)?!0:bN.test(c)||!vN.test(c)||p!=null&&c in _t(p)}function wB(c){var p=typeof c;return p=="string"||p=="number"||p=="symbol"||p=="boolean"?c!=="__proto__":c===null}function Hb(c){var p=Nh(c),b=T[p];if(typeof b!="function"||!(p in qe.prototype))return!1;if(c===b)return!0;var D=Bb(b);return!!D&&c===D[0]}function SB(c){return!!VS&&VS in c}var DB=fh?Os:ay;function Hc(c){var p=c&&c.constructor,b=typeof p=="function"&&p.prototype||Hl;return c===b}function VD(c){return c===c&&!Lt(c)}function YD(c,p){return function(b){return b==null?!1:b[c]===p&&(p!==t||c in _t(b))}}function kB(c){var p=Yh(c,function(D){return b.size===u&&b.clear(),D}),b=p.cache;return p}function PB(c,p){var b=c[1],D=p[1],C=b|D,O=C<(x|_|A),N=D==A&&b==w||D==A&&b==M&&c[7].length<=p[8]||D==(A|M)&&p[7].length<=p[8]&&b==w;if(!(O||N))return c;D&x&&(c[2]=p[2],C|=b&x?0:S);var $=p[3];if($){var G=c[3];c[3]=G?DD(G,$,p[4]):$,c[4]=G?Sa(c[3],h):p[4]}return $=p[5],$&&(G=c[5],c[5]=G?kD(G,$,p[6]):$,c[6]=G?Sa(c[5],h):p[6]),$=p[7],$&&(c[7]=$),D&A&&(c[8]=c[8]==null?p[8]:Ln(c[8],p[8])),c[9]==null&&(c[9]=p[9]),c[0]=p[0],c[1]=C,c}function CB(c){var p=[];if(c!=null)for(var b in _t(c))p.push(b);return p}function EB(c){return ph.call(c)}function HD(c,p,b){return p=fn(p===t?c.length-1:p,0),function(){for(var D=arguments,C=-1,O=fn(D.length-p,0),N=J(O);++C<O;)N[C]=D[p+C];C=-1;for(var $=J(p+1);++C<p;)$[C]=D[C];return $[p]=b(N),Dr(c,this,$)}}function zD(c,p){return p.length<2?c:Do(c,ei(p,0,-1))}function MB(c,p){for(var b=c.length,D=Ln(p.length,b),C=sr(c);D--;){var O=p[D];c[D]=Ts(O,b)?C[O]:t}return c}function zb(c,p){if(!(p==="constructor"&&typeof c[p]=="function")&&p!="__proto__")return c[p]}var WD=GD(pD),zc=zF||function(c,p){return Mn.setTimeout(c,p)},Wb=GD(ZL);function UD(c,p,b){var D=p+"";return Wb(c,_B(D,TB(vB(D),b)))}function GD(c){var p=0,b=0;return function(){var D=XF(),C=U-(D-b);if(b=D,C>0){if(++p>=Q)return arguments[0]}else p=0;return c.apply(t,arguments)}}function Lh(c,p){var b=-1,D=c.length,C=D-1;for(p=p===t?D:p;++b<p;){var O=Cb(b,C),N=c[O];c[O]=c[b],c[b]=N}return c.length=p,c}var XD=kB(function(c){var p=[];return c.charCodeAt(0)===46&&p.push(""),c.replace(yN,function(b,D,C,O){p.push(C?O.replace(CN,"$1"):D||b)}),p});function Wi(c){if(typeof c=="string"||Cr(c))return c;var p=c+"";return p=="0"&&1/c==-F?"-0":p}function Po(c){if(c!=null){try{return hh.call(c)}catch{}try{return c+""}catch{}}return""}function TB(c,p){return Kr(ke,function(b){var D="_."+b[0];p&b[1]&&!lh(c,D)&&c.push(D)}),c.sort()}function qD(c){if(c instanceof qe)return c.clone();var p=new Zr(c.__wrapped__,c.__chain__);return p.__actions__=sr(c.__actions__),p.__index__=c.__index__,p.__values__=c.__values__,p}function OB(c,p,b){(b?qn(c,p,b):p===t)?p=1:p=fn(Ve(p),0);var D=c==null?0:c.length;if(!D||p<1)return[];for(var C=0,O=0,N=J(_h(D/p));C<D;)N[O++]=ei(c,C,C+=p);return N}function AB(c){for(var p=-1,b=c==null?0:c.length,D=0,C=[];++p<b;){var O=c[p];O&&(C[D++]=O)}return C}function jB(){var c=arguments.length;if(!c)return[];for(var p=J(c-1),b=arguments[0],D=c;D--;)p[D-1]=arguments[D];return wa(Be(b)?sr(b):[b],Tn(p,1))}var RB=We(function(c,p){return Zt(c)?Lc(c,Tn(p,1,Zt,!0)):[]}),IB=We(function(c,p){var b=ti(p);return Zt(b)&&(b=t),Zt(c)?Lc(c,Tn(p,1,Zt,!0),Ce(b,2)):[]}),NB=We(function(c,p){var b=ti(p);return Zt(b)&&(b=t),Zt(c)?Lc(c,Tn(p,1,Zt,!0),t,b):[]});function FB(c,p,b){var D=c==null?0:c.length;return D?(p=b||p===t?1:Ve(p),ei(c,p<0?0:p,D)):[]}function LB(c,p,b){var D=c==null?0:c.length;return D?(p=b||p===t?1:Ve(p),p=D-p,ei(c,0,p<0?0:p)):[]}function BB(c,p){return c&&c.length?Th(c,Ce(p,3),!0,!0):[]}function $B(c,p){return c&&c.length?Th(c,Ce(p,3),!0):[]}function VB(c,p,b,D){var C=c==null?0:c.length;return C?(b&&typeof b!="number"&&qn(c,p,b)&&(b=0,D=C),jL(c,p,b,D)):[]}function KD(c,p,b){var D=c==null?0:c.length;if(!D)return-1;var C=b==null?0:Ve(b);return C<0&&(C=fn(D+C,0)),uh(c,Ce(p,3),C)}function QD(c,p,b){var D=c==null?0:c.length;if(!D)return-1;var C=D-1;return b!==t&&(C=Ve(b),C=b<0?fn(D+C,0):Ln(C,D-1)),uh(c,Ce(p,3),C,!0)}function ZD(c){var p=c==null?0:c.length;return p?Tn(c,1):[]}function YB(c){var p=c==null?0:c.length;return p?Tn(c,F):[]}function HB(c,p){var b=c==null?0:c.length;return b?(p=p===t?1:Ve(p),Tn(c,p)):[]}function zB(c){for(var p=-1,b=c==null?0:c.length,D={};++p<b;){var C=c[p];D[C[0]]=C[1]}return D}function JD(c){return c&&c.length?c[0]:t}function WB(c,p,b){var D=c==null?0:c.length;if(!D)return-1;var C=b==null?0:Ve(b);return C<0&&(C=fn(D+C,0)),Bl(c,p,C)}function UB(c){var p=c==null?0:c.length;return p?ei(c,0,-1):[]}var GB=We(function(c){var p=Nt(c,Ab);return p.length&&p[0]===c[0]?wb(p):[]}),XB=We(function(c){var p=ti(c),b=Nt(c,Ab);return p===ti(b)?p=t:b.pop(),b.length&&b[0]===c[0]?wb(b,Ce(p,2)):[]}),qB=We(function(c){var p=ti(c),b=Nt(c,Ab);return p=typeof p=="function"?p:t,p&&b.pop(),b.length&&b[0]===c[0]?wb(b,t,p):[]});function KB(c,p){return c==null?"":UF.call(c,p)}function ti(c){var p=c==null?0:c.length;return p?c[p-1]:t}function QB(c,p,b){var D=c==null?0:c.length;if(!D)return-1;var C=D;return b!==t&&(C=Ve(b),C=C<0?fn(D+C,0):Ln(C,D-1)),p===p?TF(c,p,C):uh(c,jS,C,!0)}function ZB(c,p){return c&&c.length?cD(c,Ve(p)):t}var JB=We(ek);function ek(c,p){return c&&c.length&&p&&p.length?Pb(c,p):c}function e3(c,p,b){return c&&c.length&&p&&p.length?Pb(c,p,Ce(b,2)):c}function t3(c,p,b){return c&&c.length&&p&&p.length?Pb(c,p,t,b):c}var n3=Ms(function(c,p){var b=c==null?0:c.length,D=bb(c,p);return hD(c,Nt(p,function(C){return Ts(C,b)?+C:C}).sort(SD)),D});function r3(c,p){var b=[];if(!(c&&c.length))return b;var D=-1,C=[],O=c.length;for(p=Ce(p,3);++D<O;){var N=c[D];p(N,D,c)&&(b.push(N),C.push(D))}return hD(c,C),b}function Ub(c){return c==null?c:KF.call(c)}function i3(c,p,b){var D=c==null?0:c.length;return D?(b&&typeof b!="number"&&qn(c,p,b)?(p=0,b=D):(p=p==null?0:Ve(p),b=b===t?D:Ve(b)),ei(c,p,b)):[]}function s3(c,p){return Mh(c,p)}function a3(c,p,b){return Mb(c,p,Ce(b,2))}function o3(c,p){var b=c==null?0:c.length;if(b){var D=Mh(c,p);if(D<b&&_i(c[D],p))return D}return-1}function l3(c,p){return Mh(c,p,!0)}function u3(c,p,b){return Mb(c,p,Ce(b,2),!0)}function c3(c,p){var b=c==null?0:c.length;if(b){var D=Mh(c,p,!0)-1;if(_i(c[D],p))return D}return-1}function d3(c){return c&&c.length?gD(c):[]}function f3(c,p){return c&&c.length?gD(c,Ce(p,2)):[]}function h3(c){var p=c==null?0:c.length;return p?ei(c,1,p):[]}function p3(c,p,b){return c&&c.length?(p=b||p===t?1:Ve(p),ei(c,0,p<0?0:p)):[]}function g3(c,p,b){var D=c==null?0:c.length;return D?(p=b||p===t?1:Ve(p),p=D-p,ei(c,p<0?0:p,D)):[]}function m3(c,p){return c&&c.length?Th(c,Ce(p,3),!1,!0):[]}function v3(c,p){return c&&c.length?Th(c,Ce(p,3)):[]}var b3=We(function(c){return Pa(Tn(c,1,Zt,!0))}),y3=We(function(c){var p=ti(c);return Zt(p)&&(p=t),Pa(Tn(c,1,Zt,!0),Ce(p,2))}),_3=We(function(c){var p=ti(c);return p=typeof p=="function"?p:t,Pa(Tn(c,1,Zt,!0),t,p)});function x3(c){return c&&c.length?Pa(c):[]}function w3(c,p){return c&&c.length?Pa(c,Ce(p,2)):[]}function S3(c,p){return p=typeof p=="function"?p:t,c&&c.length?Pa(c,t,p):[]}function Gb(c){if(!(c&&c.length))return[];var p=0;return c=xa(c,function(b){if(Zt(b))return p=fn(b.length,p),!0}),cb(p,function(b){return Nt(c,ob(b))})}function tk(c,p){if(!(c&&c.length))return[];var b=Gb(c);return p==null?b:Nt(b,function(D){return Dr(p,t,D)})}var D3=We(function(c,p){return Zt(c)?Lc(c,p):[]}),k3=We(function(c){return Ob(xa(c,Zt))}),P3=We(function(c){var p=ti(c);return Zt(p)&&(p=t),Ob(xa(c,Zt),Ce(p,2))}),C3=We(function(c){var p=ti(c);return p=typeof p=="function"?p:t,Ob(xa(c,Zt),t,p)}),E3=We(Gb);function M3(c,p){return yD(c||[],p||[],Fc)}function T3(c,p){return yD(c||[],p||[],Vc)}var O3=We(function(c){var p=c.length,b=p>1?c[p-1]:t;return b=typeof b=="function"?(c.pop(),b):t,tk(c,b)});function nk(c){var p=T(c);return p.__chain__=!0,p}function A3(c,p){return p(c),c}function Bh(c,p){return p(c)}var j3=Ms(function(c){var p=c.length,b=p?c[0]:0,D=this.__wrapped__,C=function(O){return bb(O,c)};return p>1||this.__actions__.length||!(D instanceof qe)||!Ts(b)?this.thru(C):(D=D.slice(b,+b+(p?1:0)),D.__actions__.push({func:Bh,args:[C],thisArg:t}),new Zr(D,this.__chain__).thru(function(O){return p&&!O.length&&O.push(t),O}))});function R3(){return nk(this)}function I3(){return new Zr(this.value(),this.__chain__)}function N3(){this.__values__===t&&(this.__values__=mk(this.value()));var c=this.__index__>=this.__values__.length,p=c?t:this.__values__[this.__index__++];return{done:c,value:p}}function F3(){return this}function L3(c){for(var p,b=this;b instanceof Dh;){var D=qD(b);D.__index__=0,D.__values__=t,p?C.__wrapped__=D:p=D;var C=D;b=b.__wrapped__}return C.__wrapped__=c,p}function B3(){var c=this.__wrapped__;if(c instanceof qe){var p=c;return this.__actions__.length&&(p=new qe(this)),p=p.reverse(),p.__actions__.push({func:Bh,args:[Ub],thisArg:t}),new Zr(p,this.__chain__)}return this.thru(Ub)}function $3(){return bD(this.__wrapped__,this.__actions__)}var V3=Oh(function(c,p,b){dt.call(c,b)?++c[b]:Cs(c,b,1)});function Y3(c,p,b){var D=Be(c)?OS:AL;return b&&qn(c,p,b)&&(p=t),D(c,Ce(p,3))}function H3(c,p){var b=Be(c)?xa:tD;return b(c,Ce(p,3))}var z3=MD(KD),W3=MD(QD);function U3(c,p){return Tn($h(c,p),1)}function G3(c,p){return Tn($h(c,p),F)}function X3(c,p,b){return b=b===t?1:Ve(b),Tn($h(c,p),b)}function rk(c,p){var b=Be(c)?Kr:ka;return b(c,Ce(p,3))}function ik(c,p){var b=Be(c)?hF:eD;return b(c,Ce(p,3))}var q3=Oh(function(c,p,b){dt.call(c,b)?c[b].push(p):Cs(c,b,[p])});function K3(c,p,b,D){c=ar(c)?c:Ql(c),b=b&&!D?Ve(b):0;var C=c.length;return b<0&&(b=fn(C+b,0)),Wh(c)?b<=C&&c.indexOf(p,b)>-1:!!C&&Bl(c,p,b)>-1}var Q3=We(function(c,p,b){var D=-1,C=typeof p=="function",O=ar(c)?J(c.length):[];return ka(c,function(N){O[++D]=C?Dr(p,N,b):Bc(N,p,b)}),O}),Z3=Oh(function(c,p,b){Cs(c,b,p)});function $h(c,p){var b=Be(c)?Nt:oD;return b(c,Ce(p,3))}function J3(c,p,b,D){return c==null?[]:(Be(p)||(p=p==null?[]:[p]),b=D?t:b,Be(b)||(b=b==null?[]:[b]),dD(c,p,b))}var e$=Oh(function(c,p,b){c[b?0:1].push(p)},function(){return[[],[]]});function t$(c,p,b){var D=Be(c)?sb:IS,C=arguments.length<3;return D(c,Ce(p,4),b,C,ka)}function n$(c,p,b){var D=Be(c)?pF:IS,C=arguments.length<3;return D(c,Ce(p,4),b,C,eD)}function r$(c,p){var b=Be(c)?xa:tD;return b(c,Hh(Ce(p,3)))}function i$(c){var p=Be(c)?KS:KL;return p(c)}function s$(c,p,b){(b?qn(c,p,b):p===t)?p=1:p=Ve(p);var D=Be(c)?CL:QL;return D(c,p)}function a$(c){var p=Be(c)?EL:JL;return p(c)}function o$(c){if(c==null)return 0;if(ar(c))return Wh(c)?Vl(c):c.length;var p=Bn(c);return p==wn||p==vi?c.size:Db(c).length}function l$(c,p,b){var D=Be(c)?ab:eB;return b&&qn(c,p,b)&&(p=t),D(c,Ce(p,3))}var u$=We(function(c,p){if(c==null)return[];var b=p.length;return b>1&&qn(c,p[0],p[1])?p=[]:b>2&&qn(p[0],p[1],p[2])&&(p=[p[0]]),dD(c,Tn(p,1),[])}),Vh=HF||function(){return Mn.Date.now()};function c$(c,p){if(typeof p!="function")throw new Qr(a);return c=Ve(c),function(){if(--c<1)return p.apply(this,arguments)}}function sk(c,p,b){return p=b?t:p,p=c&&p==null?c.length:p,Es(c,A,t,t,t,t,p)}function ak(c,p){var b;if(typeof p!="function")throw new Qr(a);return c=Ve(c),function(){return--c>0&&(b=p.apply(this,arguments)),c<=1&&(p=t),b}}var Xb=We(function(c,p,b){var D=x;if(b.length){var C=Sa(b,ql(Xb));D|=P}return Es(c,D,p,b,C)}),ok=We(function(c,p,b){var D=x|_;if(b.length){var C=Sa(b,ql(ok));D|=P}return Es(p,D,c,b,C)});function lk(c,p,b){p=b?t:p;var D=Es(c,w,t,t,t,t,t,p);return D.placeholder=lk.placeholder,D}function uk(c,p,b){p=b?t:p;var D=Es(c,k,t,t,t,t,t,p);return D.placeholder=uk.placeholder,D}function ck(c,p,b){var D,C,O,N,$,G,te=0,ne=!1,re=!1,ue=!0;if(typeof c!="function")throw new Qr(a);p=ni(p)||0,Lt(b)&&(ne=!!b.leading,re="maxWait"in b,O=re?fn(ni(b.maxWait)||0,p):O,ue="trailing"in b?!!b.trailing:ue);function ve(Jt){var xi=D,js=C;return D=C=t,te=Jt,N=c.apply(js,xi),N}function Te(Jt){return te=Jt,$=zc(Ge,p),ne?ve(Jt):N}function ze(Jt){var xi=Jt-G,js=Jt-te,Mk=p-xi;return re?Ln(Mk,O-js):Mk}function Oe(Jt){var xi=Jt-G,js=Jt-te;return G===t||xi>=p||xi<0||re&&js>=O}function Ge(){var Jt=Vh();if(Oe(Jt))return Ze(Jt);$=zc(Ge,ze(Jt))}function Ze(Jt){return $=t,ue&&D?ve(Jt):(D=C=t,N)}function Er(){$!==t&&_D($),te=0,D=G=C=$=t}function Kn(){return $===t?N:Ze(Vh())}function Mr(){var Jt=Vh(),xi=Oe(Jt);if(D=arguments,C=this,G=Jt,xi){if($===t)return Te(G);if(re)return _D($),$=zc(Ge,p),ve(G)}return $===t&&($=zc(Ge,p)),N}return Mr.cancel=Er,Mr.flush=Kn,Mr}var d$=We(function(c,p){return JS(c,1,p)}),f$=We(function(c,p,b){return JS(c,ni(p)||0,b)});function h$(c){return Es(c,L)}function Yh(c,p){if(typeof c!="function"||p!=null&&typeof p!="function")throw new Qr(a);var b=function(){var D=arguments,C=p?p.apply(this,D):D[0],O=b.cache;if(O.has(C))return O.get(C);var N=c.apply(this,D);return b.cache=O.set(C,N)||O,N};return b.cache=new(Yh.Cache||Ps),b}Yh.Cache=Ps;function Hh(c){if(typeof c!="function")throw new Qr(a);return function(){var p=arguments;switch(p.length){case 0:return!c.call(this);case 1:return!c.call(this,p[0]);case 2:return!c.call(this,p[0],p[1]);case 3:return!c.call(this,p[0],p[1],p[2])}return!c.apply(this,p)}}function p$(c){return ak(2,c)}var g$=tB(function(c,p){p=p.length==1&&Be(p[0])?Nt(p[0],kr(Ce())):Nt(Tn(p,1),kr(Ce()));var b=p.length;return We(function(D){for(var C=-1,O=Ln(D.length,b);++C<O;)D[C]=p[C].call(this,D[C]);return Dr(c,this,D)})}),qb=We(function(c,p){var b=Sa(p,ql(qb));return Es(c,P,t,p,b)}),dk=We(function(c,p){var b=Sa(p,ql(dk));return Es(c,j,t,p,b)}),m$=Ms(function(c,p){return Es(c,M,t,t,t,p)});function v$(c,p){if(typeof c!="function")throw new Qr(a);return p=p===t?p:Ve(p),We(c,p)}function b$(c,p){if(typeof c!="function")throw new Qr(a);return p=p==null?0:fn(Ve(p),0),We(function(b){var D=b[p],C=Ea(b,0,p);return D&&wa(C,D),Dr(c,this,C)})}function y$(c,p,b){var D=!0,C=!0;if(typeof c!="function")throw new Qr(a);return Lt(b)&&(D="leading"in b?!!b.leading:D,C="trailing"in b?!!b.trailing:C),ck(c,p,{leading:D,maxWait:p,trailing:C})}function _$(c){return sk(c,1)}function x$(c,p){return qb(jb(p),c)}function w$(){if(!arguments.length)return[];var c=arguments[0];return Be(c)?c:[c]}function S$(c){return Jr(c,g)}function D$(c,p){return p=typeof p=="function"?p:t,Jr(c,g,p)}function k$(c){return Jr(c,f|g)}function P$(c,p){return p=typeof p=="function"?p:t,Jr(c,f|g,p)}function C$(c,p){return p==null||ZS(c,p,Sn(p))}function _i(c,p){return c===p||c!==c&&p!==p}var E$=Ih(xb),M$=Ih(function(c,p){return c>=p}),Co=iD(function(){return arguments}())?iD:function(c){return Wt(c)&&dt.call(c,"callee")&&!zS.call(c,"callee")},Be=J.isArray,T$=kS?kr(kS):LL;function ar(c){return c!=null&&zh(c.length)&&!Os(c)}function Zt(c){return Wt(c)&&ar(c)}function O$(c){return c===!0||c===!1||Wt(c)&&Xn(c)==et}var Ma=WF||ay,A$=PS?kr(PS):BL;function j$(c){return Wt(c)&&c.nodeType===1&&!Wc(c)}function R$(c){if(c==null)return!0;if(ar(c)&&(Be(c)||typeof c=="string"||typeof c.splice=="function"||Ma(c)||Kl(c)||Co(c)))return!c.length;var p=Bn(c);if(p==wn||p==vi)return!c.size;if(Hc(c))return!Db(c).length;for(var b in c)if(dt.call(c,b))return!1;return!0}function I$(c,p){return $c(c,p)}function N$(c,p,b){b=typeof b=="function"?b:t;var D=b?b(c,p):t;return D===t?$c(c,p,t,b):!!D}function Kb(c){if(!Wt(c))return!1;var p=Xn(c);return p==It||p==Pt||typeof c.message=="string"&&typeof c.name=="string"&&!Wc(c)}function F$(c){return typeof c=="number"&&US(c)}function Os(c){if(!Lt(c))return!1;var p=Xn(c);return p==En||p==Sr||p==rt||p==oN}function fk(c){return typeof c=="number"&&c==Ve(c)}function zh(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=R}function Lt(c){var p=typeof c;return c!=null&&(p=="object"||p=="function")}function Wt(c){return c!=null&&typeof c=="object"}var hk=CS?kr(CS):VL;function L$(c,p){return c===p||Sb(c,p,$b(p))}function B$(c,p,b){return b=typeof b=="function"?b:t,Sb(c,p,$b(p),b)}function $$(c){return pk(c)&&c!=+c}function V$(c){if(DB(c))throw new Fe(s);return sD(c)}function Y$(c){return c===null}function H$(c){return c==null}function pk(c){return typeof c=="number"||Wt(c)&&Xn(c)==mi}function Wc(c){if(!Wt(c)||Xn(c)!=Ds)return!1;var p=vh(c);if(p===null)return!0;var b=dt.call(p,"constructor")&&p.constructor;return typeof b=="function"&&b instanceof b&&hh.call(b)==BF}var Qb=ES?kr(ES):YL;function z$(c){return fk(c)&&c>=-R&&c<=R}var gk=MS?kr(MS):HL;function Wh(c){return typeof c=="string"||!Be(c)&&Wt(c)&&Xn(c)==Ec}function Cr(c){return typeof c=="symbol"||Wt(c)&&Xn(c)==ih}var Kl=TS?kr(TS):zL;function W$(c){return c===t}function U$(c){return Wt(c)&&Bn(c)==Mc}function G$(c){return Wt(c)&&Xn(c)==uN}var X$=Ih(kb),q$=Ih(function(c,p){return c<=p});function mk(c){if(!c)return[];if(ar(c))return Wh(c)?bi(c):sr(c);if(Ac&&c[Ac])return CF(c[Ac]());var p=Bn(c),b=p==wn?fb:p==vi?ch:Ql;return b(c)}function As(c){if(!c)return c===0?c:0;if(c=ni(c),c===F||c===-F){var p=c<0?-1:1;return p*B}return c===c?c:0}function Ve(c){var p=As(c),b=p%1;return p===p?b?p-b:p:0}function vk(c){return c?So(Ve(c),0,se):0}function ni(c){if(typeof c=="number")return c;if(Cr(c))return Z;if(Lt(c)){var p=typeof c.valueOf=="function"?c.valueOf():c;c=Lt(p)?p+"":p}if(typeof c!="string")return c===0?c:+c;c=NS(c);var b=TN.test(c);return b||AN.test(c)?cF(c.slice(2),b?2:8):MN.test(c)?Z:+c}function bk(c){return zi(c,or(c))}function K$(c){return c?So(Ve(c),-R,R):c===0?c:0}function ct(c){return c==null?"":Pr(c)}var Q$=Gl(function(c,p){if(Hc(p)||ar(p)){zi(p,Sn(p),c);return}for(var b in p)dt.call(p,b)&&Fc(c,b,p[b])}),yk=Gl(function(c,p){zi(p,or(p),c)}),Uh=Gl(function(c,p,b,D){zi(p,or(p),c,D)}),Z$=Gl(function(c,p,b,D){zi(p,Sn(p),c,D)}),J$=Ms(bb);function eV(c,p){var b=Ul(c);return p==null?b:QS(b,p)}var tV=We(function(c,p){c=_t(c);var b=-1,D=p.length,C=D>2?p[2]:t;for(C&&qn(p[0],p[1],C)&&(D=1);++b<D;)for(var O=p[b],N=or(O),$=-1,G=N.length;++$<G;){var te=N[$],ne=c[te];(ne===t||_i(ne,Hl[te])&&!dt.call(c,te))&&(c[te]=O[te])}return c}),nV=We(function(c){return c.push(t,ND),Dr(_k,t,c)});function rV(c,p){return AS(c,Ce(p,3),Hi)}function iV(c,p){return AS(c,Ce(p,3),_b)}function sV(c,p){return c==null?c:yb(c,Ce(p,3),or)}function aV(c,p){return c==null?c:nD(c,Ce(p,3),or)}function oV(c,p){return c&&Hi(c,Ce(p,3))}function lV(c,p){return c&&_b(c,Ce(p,3))}function uV(c){return c==null?[]:Ch(c,Sn(c))}function cV(c){return c==null?[]:Ch(c,or(c))}function Zb(c,p,b){var D=c==null?t:Do(c,p);return D===t?b:D}function dV(c,p){return c!=null&&BD(c,p,RL)}function Jb(c,p){return c!=null&&BD(c,p,IL)}var fV=OD(function(c,p,b){p!=null&&typeof p.toString!="function"&&(p=ph.call(p)),c[p]=b},ty(lr)),hV=OD(function(c,p,b){p!=null&&typeof p.toString!="function"&&(p=ph.call(p)),dt.call(c,p)?c[p].push(b):c[p]=[b]},Ce),pV=We(Bc);function Sn(c){return ar(c)?qS(c):Db(c)}function or(c){return ar(c)?qS(c,!0):WL(c)}function gV(c,p){var b={};return p=Ce(p,3),Hi(c,function(D,C,O){Cs(b,p(D,C,O),D)}),b}function mV(c,p){var b={};return p=Ce(p,3),Hi(c,function(D,C,O){Cs(b,C,p(D,C,O))}),b}var vV=Gl(function(c,p,b){Eh(c,p,b)}),_k=Gl(function(c,p,b,D){Eh(c,p,b,D)}),bV=Ms(function(c,p){var b={};if(c==null)return b;var D=!1;p=Nt(p,function(O){return O=Ca(O,c),D||(D=O.length>1),O}),zi(c,Lb(c),b),D&&(b=Jr(b,f|m|g,fB));for(var C=p.length;C--;)Tb(b,p[C]);return b});function yV(c,p){return xk(c,Hh(Ce(p)))}var _V=Ms(function(c,p){return c==null?{}:GL(c,p)});function xk(c,p){if(c==null)return{};var b=Nt(Lb(c),function(D){return[D]});return p=Ce(p),fD(c,b,function(D,C){return p(D,C[0])})}function xV(c,p,b){p=Ca(p,c);var D=-1,C=p.length;for(C||(C=1,c=t);++D<C;){var O=c==null?t:c[Wi(p[D])];O===t&&(D=C,O=b),c=Os(O)?O.call(c):O}return c}function wV(c,p,b){return c==null?c:Vc(c,p,b)}function SV(c,p,b,D){return D=typeof D=="function"?D:t,c==null?c:Vc(c,p,b,D)}var wk=RD(Sn),Sk=RD(or);function DV(c,p,b){var D=Be(c),C=D||Ma(c)||Kl(c);if(p=Ce(p,4),b==null){var O=c&&c.constructor;C?b=D?new O:[]:Lt(c)?b=Os(O)?Ul(vh(c)):{}:b={}}return(C?Kr:Hi)(c,function(N,$,G){return p(b,N,$,G)}),b}function kV(c,p){return c==null?!0:Tb(c,p)}function PV(c,p,b){return c==null?c:vD(c,p,jb(b))}function CV(c,p,b,D){return D=typeof D=="function"?D:t,c==null?c:vD(c,p,jb(b),D)}function Ql(c){return c==null?[]:db(c,Sn(c))}function EV(c){return c==null?[]:db(c,or(c))}function MV(c,p,b){return b===t&&(b=p,p=t),b!==t&&(b=ni(b),b=b===b?b:0),p!==t&&(p=ni(p),p=p===p?p:0),So(ni(c),p,b)}function TV(c,p,b){return p=As(p),b===t?(b=p,p=0):b=As(b),c=ni(c),NL(c,p,b)}function OV(c,p,b){if(b&&typeof b!="boolean"&&qn(c,p,b)&&(p=b=t),b===t&&(typeof p=="boolean"?(b=p,p=t):typeof c=="boolean"&&(b=c,c=t)),c===t&&p===t?(c=0,p=1):(c=As(c),p===t?(p=c,c=0):p=As(p)),c>p){var D=c;c=p,p=D}if(b||c%1||p%1){var C=GS();return Ln(c+C*(p-c+uF("1e-"+((C+"").length-1))),p)}return Cb(c,p)}var AV=Xl(function(c,p,b){return p=p.toLowerCase(),c+(b?Dk(p):p)});function Dk(c){return ey(ct(c).toLowerCase())}function kk(c){return c=ct(c),c&&c.replace(RN,wF).replace(JN,"")}function jV(c,p,b){c=ct(c),p=Pr(p);var D=c.length;b=b===t?D:So(Ve(b),0,D);var C=b;return b-=p.length,b>=0&&c.slice(b,C)==p}function RV(c){return c=ct(c),c&&pN.test(c)?c.replace(nS,SF):c}function IV(c){return c=ct(c),c&&_N.test(c)?c.replace(qv,"\\$&"):c}var NV=Xl(function(c,p,b){return c+(b?"-":"")+p.toLowerCase()}),FV=Xl(function(c,p,b){return c+(b?" ":"")+p.toLowerCase()}),LV=ED("toLowerCase");function BV(c,p,b){c=ct(c),p=Ve(p);var D=p?Vl(c):0;if(!p||D>=p)return c;var C=(p-D)/2;return Rh(xh(C),b)+c+Rh(_h(C),b)}function $V(c,p,b){c=ct(c),p=Ve(p);var D=p?Vl(c):0;return p&&D<p?c+Rh(p-D,b):c}function VV(c,p,b){c=ct(c),p=Ve(p);var D=p?Vl(c):0;return p&&D<p?Rh(p-D,b)+c:c}function YV(c,p,b){return b||p==null?p=0:p&&(p=+p),qF(ct(c).replace(Kv,""),p||0)}function HV(c,p,b){return(b?qn(c,p,b):p===t)?p=1:p=Ve(p),Eb(ct(c),p)}function zV(){var c=arguments,p=ct(c[0]);return c.length<3?p:p.replace(c[1],c[2])}var WV=Xl(function(c,p,b){return c+(b?"_":"")+p.toLowerCase()});function UV(c,p,b){return b&&typeof b!="number"&&qn(c,p,b)&&(p=b=t),b=b===t?se:b>>>0,b?(c=ct(c),c&&(typeof p=="string"||p!=null&&!Qb(p))&&(p=Pr(p),!p&&$l(c))?Ea(bi(c),0,b):c.split(p,b)):[]}var GV=Xl(function(c,p,b){return c+(b?" ":"")+ey(p)});function XV(c,p,b){return c=ct(c),b=b==null?0:So(Ve(b),0,c.length),p=Pr(p),c.slice(b,b+p.length)==p}function qV(c,p,b){var D=T.templateSettings;b&&qn(c,p,b)&&(p=t),c=ct(c),p=Uh({},p,D,ID);var C=Uh({},p.imports,D.imports,ID),O=Sn(C),N=db(C,O),$,G,te=0,ne=p.interpolate||sh,re="__p += '",ue=hb((p.escape||sh).source+"|"+ne.source+"|"+(ne===rS?EN:sh).source+"|"+(p.evaluate||sh).source+"|$","g"),ve="//# sourceURL="+(dt.call(p,"sourceURL")?(p.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++iF+"]")+` 64`;c.replace(ue,function(Oe,Ge,Ze,Er,Kn,Mr){return Ze||(Ze=Er),re+=c.slice(te,Mr).replace(IN,DF),Ge&&($=!0,re+=`' + 65__e(`+Ge+`) + 66'`),Kn&&(G=!0,re+=`'; 67`+Kn+`; 68__p += '`),Ze&&(re+=`' + 69((__t = (`+Ze+`)) == null ? '' : __t) + 70'`),te=Mr+Oe.length,Oe}),re+=`'; 71`;var Te=dt.call(p,"variable")&&p.variable;if(!Te)re=`with (obj) { 72`+re+` 73} 74`;else if(PN.test(Te))throw new Fe(o);re=(G?re.replace(cN,""):re).replace(dN,"$1").replace(fN,"$1;"),re="function("+(Te||"obj")+`) { 75`+(Te?"":`obj || (obj = {}); 76`)+"var __t, __p = ''"+($?", __e = _.escape":"")+(G?`, __j = Array.prototype.join; 77function print() { __p += __j.call(arguments, '') } 78`:`; 79`)+re+`return __p 80}`;var ze=Ck(function(){return it(O,ve+"return "+re).apply(t,N)});if(ze.source=re,Kb(ze))throw ze;return ze}function KV(c){return ct(c).toLowerCase()}function QV(c){return ct(c).toUpperCase()}function ZV(c,p,b){if(c=ct(c),c&&(b||p===t))return NS(c);if(!c||!(p=Pr(p)))return c;var D=bi(c),C=bi(p),O=FS(D,C),N=LS(D,C)+1;return Ea(D,O,N).join("")}function JV(c,p,b){if(c=ct(c),c&&(b||p===t))return c.slice(0,$S(c)+1);if(!c||!(p=Pr(p)))return c;var D=bi(c),C=LS(D,bi(p))+1;return Ea(D,0,C).join("")}function e4(c,p,b){if(c=ct(c),c&&(b||p===t))return c.replace(Kv,"");if(!c||!(p=Pr(p)))return c;var D=bi(c),C=FS(D,bi(p));return Ea(D,C).join("")}function t4(c,p){var b=I,D=V;if(Lt(p)){var C="separator"in p?p.separator:C;b="length"in p?Ve(p.length):b,D="omission"in p?Pr(p.omission):D}c=ct(c);var O=c.length;if($l(c)){var N=bi(c);O=N.length}if(b>=O)return c;var $=b-Vl(D);if($<1)return D;var G=N?Ea(N,0,$).join(""):c.slice(0,$);if(C===t)return G+D;if(N&&($+=G.length-$),Qb(C)){if(c.slice($).search(C)){var te,ne=G;for(C.global||(C=hb(C.source,ct(iS.exec(C))+"g")),C.lastIndex=0;te=C.exec(ne);)var re=te.index;G=G.slice(0,re===t?$:re)}}else if(c.indexOf(Pr(C),$)!=$){var ue=G.lastIndexOf(C);ue>-1&&(G=G.slice(0,ue))}return G+D}function n4(c){return c=ct(c),c&&hN.test(c)?c.replace(tS,OF):c}var r4=Xl(function(c,p,b){return c+(b?" ":"")+p.toUpperCase()}),ey=ED("toUpperCase");function Pk(c,p,b){return c=ct(c),p=b?t:p,p===t?PF(c)?RF(c):vF(c):c.match(p)||[]}var Ck=We(function(c,p){try{return Dr(c,t,p)}catch(b){return Kb(b)?b:new Fe(b)}}),i4=Ms(function(c,p){return Kr(p,function(b){b=Wi(b),Cs(c,b,Xb(c[b],c))}),c});function s4(c){var p=c==null?0:c.length,b=Ce();return c=p?Nt(c,function(D){if(typeof D[1]!="function")throw new Qr(a);return[b(D[0]),D[1]]}):[],We(function(D){for(var C=-1;++C<p;){var O=c[C];if(Dr(O[0],this,D))return Dr(O[1],this,D)}})}function a4(c){return OL(Jr(c,f))}function ty(c){return function(){return c}}function o4(c,p){return c==null||c!==c?p:c}var l4=TD(),u4=TD(!0);function lr(c){return c}function ny(c){return aD(typeof c=="function"?c:Jr(c,f))}function c4(c){return lD(Jr(c,f))}function d4(c,p){return uD(c,Jr(p,f))}var f4=We(function(c,p){return function(b){return Bc(b,c,p)}}),h4=We(function(c,p){return function(b){return Bc(c,b,p)}});function ry(c,p,b){var D=Sn(p),C=Ch(p,D);b==null&&!(Lt(p)&&(C.length||!D.length))&&(b=p,p=c,c=this,C=Ch(p,Sn(p)));var O=!(Lt(b)&&"chain"in b)||!!b.chain,N=Os(c);return Kr(C,function($){var G=p[$];c[$]=G,N&&(c.prototype[$]=function(){var te=this.__chain__;if(O||te){var ne=c(this.__wrapped__),re=ne.__actions__=sr(this.__actions__);return re.push({func:G,args:arguments,thisArg:c}),ne.__chain__=te,ne}return G.apply(c,wa([this.value()],arguments))})}),c}function p4(){return Mn._===this&&(Mn._=$F),this}function iy(){}function g4(c){return c=Ve(c),We(function(p){return cD(p,c)})}var m4=Ib(Nt),v4=Ib(OS),b4=Ib(ab);function Ek(c){return Yb(c)?ob(Wi(c)):XL(c)}function y4(c){return function(p){return c==null?t:Do(c,p)}}var _4=AD(),x4=AD(!0);function sy(){return[]}function ay(){return!1}function w4(){return{}}function S4(){return""}function D4(){return!0}function k4(c,p){if(c=Ve(c),c<1||c>R)return[];var b=se,D=Ln(c,se);p=Ce(p),c-=se;for(var C=cb(D,p);++b<c;)p(b);return C}function P4(c){return Be(c)?Nt(c,Wi):Cr(c)?[c]:sr(XD(ct(c)))}function C4(c){var p=++LF;return ct(c)+p}var E4=jh(function(c,p){return c+p},0),M4=Nb("ceil"),T4=jh(function(c,p){return c/p},1),O4=Nb("floor");function A4(c){return c&&c.length?Ph(c,lr,xb):t}function j4(c,p){return c&&c.length?Ph(c,Ce(p,2),xb):t}function R4(c){return RS(c,lr)}function I4(c,p){return RS(c,Ce(p,2))}function N4(c){return c&&c.length?Ph(c,lr,kb):t}function F4(c,p){return c&&c.length?Ph(c,Ce(p,2),kb):t}var L4=jh(function(c,p){return c*p},1),B4=Nb("round"),$4=jh(function(c,p){return c-p},0);function V4(c){return c&&c.length?ub(c,lr):0}function Y4(c,p){return c&&c.length?ub(c,Ce(p,2)):0}return T.after=c$,T.ary=sk,T.assign=Q$,T.assignIn=yk,T.assignInWith=Uh,T.assignWith=Z$,T.at=J$,T.before=ak,T.bind=Xb,T.bindAll=i4,T.bindKey=ok,T.castArray=w$,T.chain=nk,T.chunk=OB,T.compact=AB,T.concat=jB,T.cond=s4,T.conforms=a4,T.constant=ty,T.countBy=V3,T.create=eV,T.curry=lk,T.curryRight=uk,T.debounce=ck,T.defaults=tV,T.defaultsDeep=nV,T.defer=d$,T.delay=f$,T.difference=RB,T.differenceBy=IB,T.differenceWith=NB,T.drop=FB,T.dropRight=LB,T.dropRightWhile=BB,T.dropWhile=$B,T.fill=VB,T.filter=H3,T.flatMap=U3,T.flatMapDeep=G3,T.flatMapDepth=X3,T.flatten=ZD,T.flattenDeep=YB,T.flattenDepth=HB,T.flip=h$,T.flow=l4,T.flowRight=u4,T.fromPairs=zB,T.functions=uV,T.functionsIn=cV,T.groupBy=q3,T.initial=UB,T.intersection=GB,T.intersectionBy=XB,T.intersectionWith=qB,T.invert=fV,T.invertBy=hV,T.invokeMap=Q3,T.iteratee=ny,T.keyBy=Z3,T.keys=Sn,T.keysIn=or,T.map=$h,T.mapKeys=gV,T.mapValues=mV,T.matches=c4,T.matchesProperty=d4,T.memoize=Yh,T.merge=vV,T.mergeWith=_k,T.method=f4,T.methodOf=h4,T.mixin=ry,T.negate=Hh,T.nthArg=g4,T.omit=bV,T.omitBy=yV,T.once=p$,T.orderBy=J3,T.over=m4,T.overArgs=g$,T.overEvery=v4,T.overSome=b4,T.partial=qb,T.partialRight=dk,T.partition=e$,T.pick=_V,T.pickBy=xk,T.property=Ek,T.propertyOf=y4,T.pull=JB,T.pullAll=ek,T.pullAllBy=e3,T.pullAllWith=t3,T.pullAt=n3,T.range=_4,T.rangeRight=x4,T.rearg=m$,T.reject=r$,T.remove=r3,T.rest=v$,T.reverse=Ub,T.sampleSize=s$,T.set=wV,T.setWith=SV,T.shuffle=a$,T.slice=i3,T.sortBy=u$,T.sortedUniq=d3,T.sortedUniqBy=f3,T.split=UV,T.spread=b$,T.tail=h3,T.take=p3,T.takeRight=g3,T.takeRightWhile=m3,T.takeWhile=v3,T.tap=A3,T.throttle=y$,T.thru=Bh,T.toArray=mk,T.toPairs=wk,T.toPairsIn=Sk,T.toPath=P4,T.toPlainObject=bk,T.transform=DV,T.unary=_$,T.union=b3,T.unionBy=y3,T.unionWith=_3,T.uniq=x3,T.uniqBy=w3,T.uniqWith=S3,T.unset=kV,T.unzip=Gb,T.unzipWith=tk,T.update=PV,T.updateWith=CV,T.values=Ql,T.valuesIn=EV,T.without=D3,T.words=Pk,T.wrap=x$,T.xor=k3,T.xorBy=P3,T.xorWith=C3,T.zip=E3,T.zipObject=M3,T.zipObjectDeep=T3,T.zipWith=O3,T.entries=wk,T.entriesIn=Sk,T.extend=yk,T.extendWith=Uh,ry(T,T),T.add=E4,T.attempt=Ck,T.camelCase=AV,T.capitalize=Dk,T.ceil=M4,T.clamp=MV,T.clone=S$,T.cloneDeep=k$,T.cloneDeepWith=P$,T.cloneWith=D$,T.conformsTo=C$,T.deburr=kk,T.defaultTo=o4,T.divide=T4,T.endsWith=jV,T.eq=_i,T.escape=RV,T.escapeRegExp=IV,T.every=Y3,T.find=z3,T.findIndex=KD,T.findKey=rV,T.findLast=W3,T.findLastIndex=QD,T.findLastKey=iV,T.floor=O4,T.forEach=rk,T.forEachRight=ik,T.forIn=sV,T.forInRight=aV,T.forOwn=oV,T.forOwnRight=lV,T.get=Zb,T.gt=E$,T.gte=M$,T.has=dV,T.hasIn=Jb,T.head=JD,T.identity=lr,T.includes=K3,T.indexOf=WB,T.inRange=TV,T.invoke=pV,T.isArguments=Co,T.isArray=Be,T.isArrayBuffer=T$,T.isArrayLike=ar,T.isArrayLikeObject=Zt,T.isBoolean=O$,T.isBuffer=Ma,T.isDate=A$,T.isElement=j$,T.isEmpty=R$,T.isEqual=I$,T.isEqualWith=N$,T.isError=Kb,T.isFinite=F$,T.isFunction=Os,T.isInteger=fk,T.isLength=zh,T.isMap=hk,T.isMatch=L$,T.isMatchWith=B$,T.isNaN=$$,T.isNative=V$,T.isNil=H$,T.isNull=Y$,T.isNumber=pk,T.isObject=Lt,T.isObjectLike=Wt,T.isPlainObject=Wc,T.isRegExp=Qb,T.isSafeInteger=z$,T.isSet=gk,T.isString=Wh,T.isSymbol=Cr,T.isTypedArray=Kl,T.isUndefined=W$,T.isWeakMap=U$,T.isWeakSet=G$,T.join=KB,T.kebabCase=NV,T.last=ti,T.lastIndexOf=QB,T.lowerCase=FV,T.lowerFirst=LV,T.lt=X$,T.lte=q$,T.max=A4,T.maxBy=j4,T.mean=R4,T.meanBy=I4,T.min=N4,T.minBy=F4,T.stubArray=sy,T.stubFalse=ay,T.stubObject=w4,T.stubString=S4,T.stubTrue=D4,T.multiply=L4,T.nth=ZB,T.noConflict=p4,T.noop=iy,T.now=Vh,T.pad=BV,T.padEnd=$V,T.padStart=VV,T.parseInt=YV,T.random=OV,T.reduce=t$,T.reduceRight=n$,T.repeat=HV,T.replace=zV,T.result=xV,T.round=B4,T.runInContext=W,T.sample=i$,T.size=o$,T.snakeCase=WV,T.some=l$,T.sortedIndex=s3,T.sortedIndexBy=a3,T.sortedIndexOf=o3,T.sortedLastIndex=l3,T.sortedLastIndexBy=u3,T.sortedLastIndexOf=c3,T.startCase=GV,T.startsWith=XV,T.subtract=$4,T.sum=V4,T.sumBy=Y4,T.template=qV,T.times=k4,T.toFinite=As,T.toInteger=Ve,T.toLength=vk,T.toLower=KV,T.toNumber=ni,T.toSafeInteger=K$,T.toString=ct,T.toUpper=QV,T.trim=ZV,T.trimEnd=JV,T.trimStart=e4,T.truncate=t4,T.unescape=n4,T.uniqueId=C4,T.upperCase=r4,T.upperFirst=ey,T.each=rk,T.eachRight=ik,T.first=JD,ry(T,function(){var c={};return Hi(T,function(p,b){dt.call(T.prototype,b)||(c[b]=p)}),c}(),{chain:!1}),T.VERSION=r,Kr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(c){T[c].placeholder=T}),Kr(["drop","take"],function(c,p){qe.prototype[c]=function(b){b=b===t?1:fn(Ve(b),0);var D=this.__filtered__&&!p?new qe(this):this.clone();return D.__filtered__?D.__takeCount__=Ln(b,D.__takeCount__):D.__views__.push({size:Ln(b,se),type:c+(D.__dir__<0?"Right":"")}),D},qe.prototype[c+"Right"]=function(b){return this.reverse()[c](b).reverse()}}),Kr(["filter","map","takeWhile"],function(c,p){var b=p+1,D=b==X||b==z;qe.prototype[c]=function(C){var O=this.clone();return O.__iteratees__.push({iteratee:Ce(C,3),type:b}),O.__filtered__=O.__filtered__||D,O}}),Kr(["head","last"],function(c,p){var b="take"+(p?"Right":"");qe.prototype[c]=function(){return this[b](1).value()[0]}}),Kr(["initial","tail"],function(c,p){var b="drop"+(p?"":"Right");qe.prototype[c]=function(){return this.__filtered__?new qe(this):this[b](1)}}),qe.prototype.compact=function(){return this.filter(lr)},qe.prototype.find=function(c){return this.filter(c).head()},qe.prototype.findLast=function(c){return this.reverse().find(c)},qe.prototype.invokeMap=We(function(c,p){return typeof c=="function"?new qe(this):this.map(function(b){return Bc(b,c,p)})}),qe.prototype.reject=function(c){return this.filter(Hh(Ce(c)))},qe.prototype.slice=function(c,p){c=Ve(c);var b=this;return b.__filtered__&&(c>0||p<0)?new qe(b):(c<0?b=b.takeRight(-c):c&&(b=b.drop(c)),p!==t&&(p=Ve(p),b=p<0?b.dropRight(-p):b.take(p-c)),b)},qe.prototype.takeRightWhile=function(c){return this.reverse().takeWhile(c).reverse()},qe.prototype.toArray=function(){return this.take(se)},Hi(qe.prototype,function(c,p){var b=/^(?:filter|find|map|reject)|While$/.test(p),D=/^(?:head|last)$/.test(p),C=T[D?"take"+(p=="last"?"Right":""):p],O=D||/^find/.test(p);C&&(T.prototype[p]=function(){var N=this.__wrapped__,$=D?[1]:arguments,G=N instanceof qe,te=$[0],ne=G||Be(N),re=function(Ge){var Ze=C.apply(T,wa([Ge],$));return D&&ue?Ze[0]:Ze};ne&&b&&typeof te=="function"&&te.length!=1&&(G=ne=!1);var ue=this.__chain__,ve=!!this.__actions__.length,Te=O&&!ue,ze=G&&!ve;if(!O&&ne){N=ze?N:new qe(this);var Oe=c.apply(N,$);return Oe.__actions__.push({func:Bh,args:[re],thisArg:t}),new Zr(Oe,ue)}return Te&&ze?c.apply(this,$):(Oe=this.thru(re),Te?D?Oe.value()[0]:Oe.value():Oe)})}),Kr(["pop","push","shift","sort","splice","unshift"],function(c){var p=dh[c],b=/^(?:push|sort|unshift)$/.test(c)?"tap":"thru",D=/^(?:pop|shift)$/.test(c);T.prototype[c]=function(){var C=arguments;if(D&&!this.__chain__){var O=this.value();return p.apply(Be(O)?O:[],C)}return this[b](function(N){return p.apply(Be(N)?N:[],C)})}}),Hi(qe.prototype,function(c,p){var b=T[p];if(b){var D=b.name+"";dt.call(Wl,D)||(Wl[D]=[]),Wl[D].push({name:p,func:b})}}),Wl[Ah(t,_).name]=[{name:"wrapper",func:t}],qe.prototype.clone=nL,qe.prototype.reverse=rL,qe.prototype.value=iL,T.prototype.at=j3,T.prototype.chain=R3,T.prototype.commit=I3,T.prototype.next=N3,T.prototype.plant=L3,T.prototype.reverse=B3,T.prototype.toJSON=T.prototype.valueOf=T.prototype.value=$3,T.prototype.first=T.prototype.head,Ac&&(T.prototype[Ac]=F3),T},Yl=IF();yo?((yo.exports=Yl)._=Yl,nb._=Yl):Mn._=Yl}).call(La)})(Gg,Gg.exports);var lt=Gg.exports,G9={defaultAmount:0,defaultCurrency:"USD",defaultPrecision:2},X9={globalLocale:"en-US",globalFormat:"$0,0.00",globalRoundingMode:"HALF_EVEN",globalFormatRoundingMode:"HALF_AWAY_FROM_ZERO",globalExchangeRatesApi:{endpoint:void 0,headers:void 0,propertyPath:void 0}};
80function jd(n){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?jd=function(e){return typeof e}:jd=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jd(n)}function zC(n){return q9(n)||K9(n)||Q9(n)||Z9()}function q9(n){if(Array.isArray(n))return n}function K9(n){if(typeof Symbol<"u"&&Symbol.iterator in Object(n))return Array.from(n)}function Q9(n,e){if(n){if(typeof n=="string")return WC(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);if(t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set")return Array.from(n);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return WC(n,e)}}function WC(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t<e;t++)r[t]=n[t];return r}function Z9(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 81In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var J9={normalizePrecision:function(e){var t=e.reduce(function(r,i){return Math.max(r.getPrecision(),i.getPrecision())});return e.map(function(r){return r.getPrecision()!==t?r.convertPrecision(t):r})},minimum:function(e){var t=zC(e),r=t[0],i=t.slice(1),s=r;return i.forEach(function(a){s=s.lessThan(a)?s:a}),s},maximum:function(e){var t=zC(e),r=t[0],i=t.slice(1),s=r;return i.forEach(function(a){s=s.greaterThan(a)?s:a}),s}};function Uj(n){return!isNaN(parseInt(n))&&isFinite(n)}function e8(n){return Uj(n)&&n<=100&&n>=0}function t8(n){return n.length>0&&n.every(function(e){return e>=0})&&n.some(function(e){return e>0})}function UC(n){return n%2===0}function GC(n){return Uj(n)&&!Number.isInteger(n)}function n8(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=n.toString();if(e.indexOf("e-")>0)return parseInt(e.split("e-")[1]);var t=e.split(".")[1];return t?t.length:0}function td(n){return Math.abs(n)%1===.5}function r8(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return new Promise(function(t,r){var i=Object.assign(new XMLHttpRequest,{onreadystatechange:function(){i.readyState===4&&(i.status>=200&&i.status<400?t(JSON.parse(i.responseText)):r(new Error(i.statusText)))},onerror:function(){r(new Error("Network error"))}});i.open("GET",n,!0),i8(i,e.headers),i.send()})}function i8(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var t in e)n.setRequestHeader(t,e[t]);return n}function md(n){return typeof n>"u"}function Gj(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:".",t={};return Object.entries(n).forEach(function(r){if(jd(r[1])==="object"){var i=Gj(r[1]);Object.entries(i).forEach(function(s){t[r[0]+e+s[0]]=s[1]})}else t[r[0]]=r[1]}),t}function s8(n){return!!n&&(jd(n)==="object"||typeof n=="function")&&typeof n.then=="function"}function Xj(){var n=function(r,i){var s=function(l){return Math.pow(10,n8(l))},a=Math.max(s(r),s(i));return Math.round(r*a)*Math.round(i*a)/(a*a)},e={HALF_ODD:function(r){var i=Math.round(r);return td(r)&&UC(i)?i-1:i},HALF_EVEN:function(r){var i=Math.round(r);return td(r)?UC(i)?i:i-1:i},HALF_UP:function(r){return Math.round(r)},HALF_DOWN:function(r){return td(r)?Math.floor(r):Math.round(r)},HALF_TOWARDS_ZERO:function(r){return td(r)?Math.sign(r)*Math.floor(Math.abs(r)):Math.round(r)},HALF_AWAY_FROM_ZERO:function(r){return td(r)?Math.sign(r)*Math.ceil(Math.abs(r)):Math.round(r)},DOWN:function(r){return Math.floor(r)}};return{add:function(r,i){return r+i},subtract:function(r,i){return r-i},multiply:function(r,i){return GC(r)||GC(i)?n(r,i):r*i},divide:function(r,i){return r/i},modulo:function(r,i){return r%i},round:function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"HALF_EVEN";return e[i](r)}}}var a8=Xj();function o8(n){var e=/^(?:(\$|USD)?0(?:(,)0)?(\.)?(0+)?|0(?:(,)0)?(\.)?(0+)?\s?(dollar)?)$/gm.exec(n);return{getMatches:function(){return e!==null?e.slice(1).filter(function(r){return!md(r)}):[]},getMinimumFractionDigits:function(){var r=function(s){return s==="."};return md(this.getMatches().find(r))?0:this.getMatches()[a8.add(this.getMatches().findIndex(r),1)].split("").length},getCurrencyDisplay:function(){var r={USD:"code",dollar:"name",$
81:"symbol"};return r[this.getMatches().find(function(i){return i==="USD"||i==="dollar"||i==="$"})]},getStyle:function(){return md(this.getCurrencyDisplay(this.getMatches()))?"decimal":"currency"},getUseGrouping:function(){return!md(this.getMatches().find(function(r){return r===","}))}}}function l8(n){var e=function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",s=arguments.length>1?arguments[1]:void 0;for(var a in s)i=i.replace("{{".concat(a,"}}"),s[a]);return i},t=function(i,s){return r8(e(n.endpoint,{from:i,to:s}),{headers:n.headers})};return{getExchangeRate:function(i,s){return(s8(n.endpoint)?n.endpoint:t(i,s)).then(function(a){return Gj(a)[e(n.propertyPath,{from:i,to:s})]})}}}function of(n,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Error;if(!n)throw new t(e)}function u8(n){of(e8(n),"You must provide a numeric value between 0 and 100.",RangeError)}function c8(n){of(t8(n),"You must provide a non-empty array of numeric values greater than 0.",TypeError)}function Hy(n){of(Number.isInteger(n),"You must provide an integer.",TypeError)}var Et=Xj(),d8=function n(e){var t=Object.assign({},{amount:n.defaultAmount,currency:n.defaultCurrency,precision:n.defaultPrecision},e),r=t.amount,i=t.currency,s=t.precision;Hy(r),Hy(s);var a=n.globalLocale,o=n.globalFormat,l=n.globalRoundingMode,u=n.globalFormatRoundingMode,h=Object.assign({},n.globalExchangeRatesApi),f=function(y){var v=Object.assign({},Object.assign({},{amount:r,currency:i,precision:s},y),Object.assign({},{locale:this.locale},y));return Object.assign(n({amount:v.amount,currency:v.currency,precision:v.precision}),{locale:v.locale})},m=function(y){of(this.hasSameCurrency(y),"You must provide a Dinero instance with the same currency.",TypeError)};return{getAmount:function(){return r},getCurrency:function(){return i},getLocale:function(){return this.locale||a},setLocale:function(y){return f.call(this,{locale:y})},getPrecision:function(){return s},convertPrecision:function(y){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u;Hy(y);var x=this.getPrecision(),_=y>x,S=_?Et.multiply:Et.divide,w=_?[y,x]:[x,y],k=Math.pow(10,Et.subtract.apply(Et,w));return f.call(this,{amount:Et.round(S(this.getAmount(),k),v),precision:y})},add:function(y){m.call(this,y);var v=n.normalizePrecision([this,y]);return f.call(this,{amount:Et.add(v[0].getAmount(),v[1].getAmount()),precision:v[0].getPrecision()})},subtract:function(y){m.call(this,y);var v=n.normalizePrecision([this,y]);return f.call(this,{amount:Et.subtract(v[0].getAmount(),v[1].getAmount()),precision:v[0].getPrecision()})},multiply:function(y){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:l;return f.call(this,{amount:Et.round(Et.multiply(this.getAmount(),y),v)})},divide:function(y){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:l;return f.call(this,{amount:Et.round(Et.divide(this.getAmount(),y),v)})},percentage:function(y){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:l;return u8(y),this.multiply(Et.divide(y,100),v)},allocate:function(y){var v=this;c8(y);for(var x=y.reduce(function(k,P){return Et.add(k,P)}),_=this.getAmount(),S=y.map(function(k){var P=Math.floor(Et.divide(Et.multiply(v.getAmount(),k),x));return _=Et.subtract(_,P),f.call(v,{amount:P})}),w=0;_>0;)y[w]>0&&(S[w]=S[w].add(f.call(this,{amount:1})),_=Et.subtract(_,1)),w+=1;return S},convert:function(y){var v=this,x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_=x.endpoint,S=_===void 0?h.endpoint:_,w=x.propertyPath,k=w===void 0?h.propertyPath||"rates.{{to}}":w,P=x.headers,j=P===void 0?h.headers:P,A=x.roundingMode,M=A===void 0?l:A,L=Object.assign({},{endpoint:S,propertyPath:k,headers:j,roundingMode:M});return l8(L).getExchangeRate(this.getCurrency(),y).then(function(I){return of(!md(I),'No rate was found for the destination currency "'.concat(y,'".'),TypeError),f.call(v,{amount:Et.round(Et.multiply(v.getAmount(),parseFloat(I)),L.roundingMode),currency:y})})},equalsTo:function(y){return this.hasSameAmount(y)&&this.hasSameCurrency(y)},lessThan:function(y){m.call(this,y);var v=n.normalizePrecision([this,y]);return v[0].getAmount()<v[1].getAmount()},lessThanOrEqual:function(y){m.call(this,y);var v=n.normalizePrecision([this,y]);return v[0].getAmount()<=v[1].getAmount()},greaterThan:function(y){m.call(this,y);var v=n.normalizePrecision([this,y]);return v[0].getAmount()>v[1].getAmount()},greaterThanOrEqual:function(y){m.call(this,y);var v=n.normalizePrecision([this,y]);return v[0].getAmount()>=v[1].getAmount()},isZero:function(){return this.getAmount()===0},isPositive:function(){return this.getAmount()>=0},isNegative:function(){return this.getAmount()<0},hasSubUnits:function(){return Et.modulo(this.getAmount(),Math.pow(10,s))!==0},hasCents:function(){return Et.modulo(this.getAmount(),Math.pow(10,s))!==0},hasSameCurrency:function(y){return this.getCurrency()===y.getCurrency()},hasSameAmount:function(y){var v=n.normalizePrecision([this,y]);return v[0].getAmount()===v[1].getAmount()},toFormat:function(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:o,v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u,x=o8(y);return this.toRoundedUnit(x.getMinimumFractionDigits(),v).toLocaleStr
81ing(this.getLocale(),{currencyDisplay:x.getCurrencyDisplay(),useGrouping:x.getUseGrouping(),minimumFractionDigits:x.getMinimumFractionDigits(),style:x.getStyle(),currency:this.getCurrency()})},toUnit:function(){return Et.divide(this.getAmount(),Math.pow(10,s))},toRoundedUnit:function(y){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u,x=Math.pow(10,y);return Et.divide(Et.round(Et.multiply(this.toUnit(),x),v),x)},toObject:function(){return{amount:r,currency:i,precision:s}},toJSON:function(){return this.toObject()}}},ra=Object.assign(d8,G9,X9,J9);/** 82 * table-core 83 * 84 * Copyright (c) TanStack 85 * 86 * This source code is licensed under the MIT license found in the 87 * LICENSE.md file in the root directory of this source tree. 88 * 89 * @license MIT 90 */function Ha(n,e){return typeof n=="function"?n(e):n}function Vr(n,e){return t=>{e.setState(r=>({...r,[n]:Ha(t,r[n])}))}}function Xg(n){return n instanceof Function}function f8(n){return Array.isArray(n)&&n.every(e=>typeof e=="number")}function h8(n,e){const t=[],r=i=>{i.forEach(s=>{t.push(s);const a=e(s);a!=null&&a.length&&r(a)})};return r(n),t}function Re(n,e,t){let r=[],i;return()=>{let s;t.key&&t.debug&&(s=Date.now());const a=n();if(!(a.length!==r.length||a.some((u,h)=>r[h]!==u)))return i;r=a;let l;if(t.key&&t.debug&&(l=Date.now()),i=e(...a),t==null||t.onChange==null||t.onChange(i),t.key&&t.debug&&t!=null&&t.debug()){const u=Math.round((Date.now()-s)*100)/100,h=Math.round((Date.now()-l)*100)/100,f=h/16,m=(g,y)=>{for(g=String(g);g.length<y;)g=" "+g;return g};console.info(`%câ± ${m(h,5)} /${m(u,5)} ms`,` 91 font-size: .6rem; 92 font-weight: bold; 93 color: hsl(${Math.max(0,Math.min(120-120*f,120))}deg 100% 31%);`,t==null?void 0:t.key)}return i}}function p8(n,e,t,r){var i,s;const o={...n._getDefaultColumnDef(),...e},l=o.accessorKey;let u=(i=(s=o.id)!=null?s:l?l.replace(".","_"):void 0)!=null?i:typeof o.header=="string"?o.header:void 0,h;if(o.accessorFn?h=o.accessorFn:l&&(l.includes(".")?h=m=>{let g=m;for(const v of l.split(".")){var y;g=(y=g)==null?void 0:y[v]}return g}:h=m=>m[o.accessorKey]),!u)throw new Error;let f={id:`${String(u)}`,accessorFn:h,parent:r,depth:t,columnDef:o,columns:[],getFlatColumns:Re(()=>[!0],()=>{var m;return[f,...(m=f.columns)==null?void 0:m.flatMap(g=>g.getFlatColumns())]},{key:"column.getFlatColumns",debug:()=>{var m;return(m=n.options.debugAll)!=null?m:n.options.debugColumns}}),getLeafColumns:Re(()=>[n._getOrderColumnsFn()],m=>{var g;if((g=f.columns)!=null&&g.length){let y=f.columns.flatMap(v=>v.getLeafColumns());return m(y)}return[f]},{key:"column.getLeafColumns",debug:()=>{var m;return(m=n.options.debugAll)!=null?m:n.options.debugColumns}})};for(const m of n._features)m.createColumn==null||m.createColumn(f,n);return f}function XC(n,e,t){var r;let s={id:(r=t.id)!=null?r:e.id,column:e,index:t.index,isPlaceholder:!!t.isPlaceholder,placeholderId:t.placeholderId,depth:t.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const a=[],o=l=>{l.subHeaders&&l.subHeaders.length&&l.subHeaders.map(o),a.push(l)};return o(s),a},getContext:()=>({table:n,header:s,column:e})};return n._features.forEach(a=>{a.createHeader==null||a.createHeader(s,n)}),s}const g8={createTable:n=>{n.getHeaderGroups=Re(()=>[n.getAllColumns(),n.getVisibleLeafColumns(),n.getState().columnPinning.left,n.getState().columnPinning.right],(e,t,r,i)=>{var s,a;const o=(s=r==null?void 0:r.map(f=>t.find(m=>m.id===f)).filter(Boolean))!=null?s:[],l=(a=i==null?void 0:i.map(f=>t.find(m=>m.id===f)).filter(Boolean))!=null?a:[],u=t.filter(f=>!(r!=null&&r.includes(f.id))&&!(i!=null&&i.includes(f.id)));return pp(e,[...o,...u,...l],n)},{key:!1,debug:()=>{var e;return(e=n.options.debugAll)!=null?e:n.options.debugHeaders}}),n.getCenterHeaderGroups=Re(()=>[n.getAllColumns(),n.getVisibleLeafColumns(),n.getState().columnPinning.left,n.getState().columnPinning.right],(e,t,r,i)=>(t=t.filter(s=>!(r!=null&&r.includes(s.id))&&!(i!=null&&i.includes(s.id))),pp(e,t,n,"center")),{key:!1,debug:()=>{var e;return(e=n.options.debugAll)!=null?e:n.options.debugHeaders}}),n.getLeftHeaderGroups=Re(()=>[n.getAllColumns(),n.getVisibleLeafColumns(),n.getState().columnPinning.left],(e,t,r)=>{var i;const s=(i=r==null?void 0:r.map(a=>t.find(o=>
vendor: 5,251 bytes, line 93
93o.id===a)).filter(Boolean))!=null?i:[];return pp(e,s,n,"left")},{key:!1,debug:()=>{var e;return(e=n.options.debugAll)!=null?e:n.options.debugHeaders}}),n.getRightHeaderGroups=Re(()=>[n.getAllColumns(),n.getVisibleLeafColumns(),n.getState().columnPinning.right],(e,t,r)=>{var i;const s=(i=r==null?void 0:r.map(a=>t.find(o=>o.id===a)).filter(Boolean))!=null?i:[];return pp(e,s,n,"right")},{key:!1,debug:()=>{var e;return(e=n.options.debugAll)!=null?e:n.options.debugHeaders}}),n.getFooterGroups=Re(()=>[n.getHeaderGroups()],e=>[...e].reverse(),{key:!1,debug:()=>{var e;return(e=n.options.debugAll)!=null?e:n.options.debugHeaders}}),n.getLeftFooterGroups=Re(()=>[n.getLeftHeaderGroups()],e=>[...e].reverse(),{key:!1,debug:()=>{var e;return(e=n.options.debugAll)!=null?e:n.options.debugHeaders}}),n.getCenterFooterGroups=Re(()=>[n.getCenterHeaderGroups()],e=>[...e].reverse(),{key:!1,debug:()=>{var e;return(e=n.options.debugAll)!=null?e:n.options.debugHeaders}}),n.getRightFooterGroups=Re(()=>[n.getRightHeaderGroups()],e=>[...e].reverse(),{key:!1,debug:()=>{var e;return(e=n.options.debugAll)!=null?e:n.options.debugHeaders}}),n.getFlatHeaders=Re(()=>[n.getHeaderGroups()],e=>e.map(t=>t.headers).flat(),{key:!1,debug:()=>{var e;return(e=n.options.debugAll)!=null?e:n.options.debugHeaders}}),n.getLeftFlatHeaders=Re(()=>[n.getLeftHeaderGroups()],e=>e.map(t=>t.headers).flat(),{key:!1,debug:()=>{var e;return(e=n.options.debugAll)!=null?e:n.options.debugHeaders}}),n.getCenterFlatHeaders=Re(()=>[n.getCenterHeaderGroups()],e=>e.map(t=>t.headers).flat(),{key:!1,debug:()=>{var e;return(e=n.options.debugAll)!=null?e:n.options.debugHeaders}}),n.getRightFlatHeaders=Re(()=>[n.getRightHeaderGroups()],e=>e.map(t=>t.headers).flat(),{key:!1,debug:()=>{var e;return(e=n.options.debugAll)!=null?e:n.options.debugHeaders}}),n.getCenterLeafHeaders=Re(()=>[n.getCenterFlatHeaders()],e=>e.filter(t=>{var r;return!((r=t.subHeaders)!=null&&r.length)}),{key:!1,debug:()=>{var e;return(e=n.options.debugAll)!=null?e:n.options.debugHeaders}}),n.getLeftLeafHeaders=Re(()=>[n.getLeftFlatHeaders()],e=>e.filter(t=>{var r;return!((r=t.subHeaders)!=null&&r.length)}),{key:!1,debug:()=>{var e;return(e=n.options.debugAll)!=null?e:n.options.debugHeaders}}),n.getRightLeafHeaders=Re(()=>[n.getRightFlatHeaders()],e=>e.filter(t=>{var r;return!((r=t.subHeaders)!=null&&r.length)}),{key:!1,debug:()=>{var e;return(e=n.options.debugAll)!=null?e:n.options.debugHeaders}}),n.getLeafHeaders=Re(()=>[n.getLeftHeaderGroups(),n.getCenterHeaderGroups(),n.getRightHeaderGroups()],(e,t,r)=>{var i,s,a,o,l,u;return[...(i=(s=e[0])==null?void 0:s.headers)!=null?i:[],...(a=(o=t[0])==null?void 0:o.headers)!=null?a:[],...(l=(u=r[0])==null?void 0:u.headers)!=null?l:[]].map(h=>h.getLeafHeaders()).flat()},{key:!1,debug:()=>{var e;return(e=n.options.debugAll)!=null?e:n.options.debugHeaders}})}};function pp(n,e,t,r){var i,s;let a=0;const o=function(m,g){g===void 0&&(g=1),a=Math.max(a,g),m.filter(y=>y.getIsVisible()).forEach(y=>{var v;(v=y.columns)!=null&&v.length&&o(y.columns,g+1)},0)};o(n);let l=[];const u=(m,g)=>{const y={depth:g,id:[r,`${g}`].filter(Boolean).join("_"),headers:[]},v=[];m.forEach(x=>{const _=[...v].reverse()[0],S=x.column.depth===y.depth;let w,k=!1;if(S&&x.column.parent?w=x.column.parent:(w=x.column,k=!0),_&&(_==null?void 0:_.column)===w)_.subHeaders.push(x);else{const P=XC(t,w,{id:[r,g,w.id,x==null?void 0:x.id].filter(Boolean).join("_"),isPlaceholder:k,placeholderId:k?`${v.filter(j=>j.column===w).length}`:void 0,depth:g,index:v.length});P.subHeaders.push(x),v.push(P)}y.headers.push(x),x.headerGroup=y}),l.push(y),g>0&&u(v,g-1)},h=e.map((m,g)=>XC(t,m,{depth:a,index:g}));u(h,a-1),l.reverse();const f=m=>m.filter(y=>y.column.getIsVisible()).map(y=>{let v=0,x=0,_=[0];y.subHeaders&&y.subHeaders.length?(_=[],f(y.subHeaders).forEach(w=>{let{colSpan:k,rowSpan:P}=w;v+=k,_.push(P)})):v=1;const S=Math.min(..._);return x=x+S,y.colSpan=v,y.rowSpan=x,{colSpan:v,rowSpan:x}});return f((i=(s=l[0])==null?void 0:s.headers)!=null?i:[]),l}const gp={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},zy=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),m8={getDefaultColumnDef:()=>gp,getInitialState:n=>({columnSizing:{},columnSizingInfo:zy(),...n}),getDefaultOptions:n=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:Vr("columnSizing",n),onColumnSizingInfoChange:Vr("columnSizingInfo",n)}),createColumn:(n,e)=>{n.getSize=()=>{var t,r,i;const s=e.getState().columnSizing[n.id];return Math.min(Math.max((t=n.columnDef.minSize)!=null?t:gp.minSize,(r=s??n.columnDef.size)!=null?r:gp.size),(i=n.columnDef.maxSize)!=null?i:gp.maxSize)},n.getStart=t=>{const r=t?t==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns(),i=r.findIndex(s=>s.id===n.id);if(i>0){const s=r[i-1];return s.getStart(t)+s.getSize()}return 0},n.resetSize=()=>{e.setColumnSizing(t=>{let{[n.id]:r,...i}=t;return i})},n.getCanResize=()=>{var t,r;return((t=n.columnDef.enableResizing)!=null?t:!0)&&((r=e.options.enableColumnResizing)!=null?r:!0)},n.getIsResizing=()=>e.getState().columnSizingInfo.isResizingColumn===n.id},createHeader:(n,e)=>{n.getSize=()=>{let t=0;const r=i=>
93{if(i.subHeaders.length)i.subHeaders.forEach(r);else{var s;t+=(s=i.column.getSize())!=null?s:0}};return r(n),t},n.getStart=()=>{if(n.index>0){const t=n.headerGroup.headers[n.index-1];return t.getStart()+t.getSize()}return 0},n.getResizeHandler=t=>{const r=e.getColumn(n.column.id),i=r==null?void 0:r.getCanResize();return s=>{if(!r||!i||(s.persist==null||s.persist(),Wy(s)&&s.touches&&s.touches.length>1))return;const a=n.getSize(),o=n?n.getLeafHeaders().map(_=>[_.column.id,_.column.getSize()]):[[r.id,r.getSize()]],l=Wy(s)?Math.round(s.touches[0].clientX):s.clientX,u={},h=(_,S)=>{typeof S=="number"&&(e.setColumnSizingInfo(w=>{var k,P;const j=e.options.columnResizeDirection==="rtl"?-1:1,A=(S-((k=w==null?void 0:w.startOffset)!=null?k:0))*j,M=Math.max(A/((P=w==null?void 0:w.startSize)!=null?P:0),-.999999);return w.columnSizingStart.forEach(L=>{let[I,V]=L;u[I]=Math.round(Math.max(V+V*M,0)*100)/100}),{...w,deltaOffset:A,deltaPercentage:M}}),(e.options.columnResizeMode==="onChange"||_==="end")&&e.setColumnSizing(w=>({...w,...u})))},f=_=>h("move",_),m=_=>{h("end",_),e.setColumnSizingInfo(S=>({...S,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},g=t||typeof document<"u"?document:null,y={moveHandler:_=>f(_.clientX),upHandler:_=>{g==null||g.removeEventListener("mousemove",y.moveHandler),g==null||g.removeEventListener("mouseup",y.upHandler),m(_.clientX)}},v={moveHandler:_=>(_.cancelable&&(_.preventDefault(),_.stopPropagation()),f(_.touches[0].clientX),!1),upHandler:_=>{var S;g==null||g.removeEventListener("touchmove",v.moveHandler),g==null||g.removeEventListener("touchend",v.upHandler),_.cancelable&&(_.preventDefault(),_.stopPropagation()),m((S=_.touches[0])==null?void 0:S.clientX)}},x=v8()?{passive:!1}:!1;Wy(s)?(g==null||g.addEventListener("touchmove",v.moveHandler,x),g==null||g.addEventListener("touchend",v.upHandler,x)):(g==null||g.addEventListener("mousemove",y.moveHandler,x),g==null||g.addEventListener("mouseup",y.upHandler,x)),e.setColumnSizingInfo(_=>({..._,startOffset:l,startSize:a,deltaOffset:0,deltaPercentage:0,columnSizingStart:o,isResizingColumn:r.id}))}}},createTable:n=>{n.setColumnSizing=e=>n.options.onColumnSizingChange==null?void 0:n.options.onColumnSizingChange(e),n.setColumnSizingInfo=e=>n.options.onColumnSizingInfoChange==null?void 0:n.options.onColumnSizingInfoChange(e),n.resetColumnSizing=e=>{var t;n.setColumnSizing(e?{}:(t=n.initialState.columnSizing)!=null?t:{})},n.resetHeaderSizeInfo=e=>{var t;n.setColumnSizingInfo(e?zy():(t=n.initialState.columnSizingInfo)!=null?t:zy())},n.getTotalSize=()=>{var e,t;return(e=(t=n.getHeaderGroups()[0])==null?void 0:t.headers.reduce((r,i)=>r+i.getSize(),0))!=null?e:0},n.getLeftTotalSize=()=>{var e,t;return(e=(t=n.getLeftHeaderGroups()[0])==null?void 0:t.headers.reduce((r,i)=>r+i.getSize(),0))!=null?e:0},n.getCenterTotalSize=()=>{var e,t;return(e=(t=n.getCenterHeaderGroups()[0])==null?void 0:t.headers.reduce((r,i)=>r+i.getSize(),0))!=null?e:0},n.getRightTotalSize=()=>{var e,t;return(e=(t=n.getRightHeaderGroups()[0])==null?void 0:t.headers.reduce((r,i)=>r+i.getSize(),0))!=null?e:0}}};let mp=null;function v8(){if(typeof mp=="boolean")return mp;let n=!1;try{const e={get passive(){return n=!0,!1}},t=()=>{};window.addEventListener("test",t,e),window.removeEventListener("test",t)}catch{n=!1}return mp=n,mp}function Wy(n){return n.type==="touchstart"}const b8={getInitialState:n=>({expanded:{},...n}),getDefaultOptions:n=>({onExpandedChange:Vr("expanded",n),paginateExpandedRows:!0}),createTable:n=>{let e=!1,t=!1;n._autoResetExpanded=()=>{var r,i;if(!e){n._queue(()=>{e=!0});return}if((r=(i=n.options.autoResetAll)!=null?i:n.options.autoResetExpanded)!=null?r:!n.options.manualExpanding){if(t)return;t=!0,n._queue(()=>{n.resetExpanded(),t=!1})}},n.setExpanded=r=>n.options.onExpandedChange==null?void 0:n.options.onExpandedChange(r),n.toggleAllRowsExpanded=r=>{r??!n.getIsAllRowsExpanded()?n.setExpanded(!0):n.setExpanded({})},n.resetExpanded=r=>{var i,s;n.setExpanded(r?{}:(i=(s=n.initialState)==null?void 0:s.expanded)!=null?i:{})},n.getCanSomeRowsExpand=()=>n.getPrePaginationRowModel().flatRows.some(r=>r.getCanExpand()),n.getToggleAllRowsExpandedHandler=()=>r=>{r.persist==null||r.persist(),n.toggleAllRowsExpanded()},n.getIsSomeRowsExpanded=()=>{const r=n.getState().expanded;return r===!0||Object.values(r).some(Boolean)},n.getIsAllRowsExpanded=()=>{const r=n.getState().expanded;return typeof r=="boolean"?r===!0:!(!Object.keys(r).length||n.getRowModel().flatRows.some(i=>!i.getIsExpanded()))},n.getExpandedDepth=()=>{let r=0;return(n.getState().expanded===!0?Object.keys(n.getRowModel().rowsById):Object.keys(n.getState().expanded)).forEac
93h(s=>{const a=s.split(".");r=Math.max(r,a.length)}),r},n.getPreExpandedRowModel=()=>n.getSortedRowModel(),n.getExpandedRowModel=()=>(!n._getExpandedRowModel&&n.options.getExpandedRowModel&&(n._getExpandedRowModel=n.options.getExpandedRowModel(n)),n.options.manualExpanding||!n._getExpandedRowModel?n.getPreExpandedRowModel():n._getExpandedRowModel())},createRow:(n,e)=>{n.toggleExpanded=t=>{e.setExpanded(r=>{var i;const s=r===!0?!0:!!(r!=null&&r[n.id]);let a={};if(r===!0?Object.keys(e.getRowModel().rowsById).forEach(o=>{a[o]=!0}):a=r,t=(i=t)!=null?i:!s,!s&&t)return{...a,[n.id]:!0};if(s&&!t){const{[n.id]:o,...l}=a;return l}return r})},n.getIsExpanded=()=>{var t;const r=e.getState().expanded;return!!((t=e.options.getIsRowExpanded==null?void 0:e.options.getIsRowExpanded(n))!=null?t:r===!0||r!=null&&r[n.id])},n.getCanExpand=()=>{var t,r,i;return(t=e.options.getRowCanExpand==null?void 0:e.options.getRowCanExpand(n))!=null?t:((r=e.options.enableExpanding)!=null?r:!0)&&!!((i=n.subRows)!=null&&i.length)},n.getIsAllParentsExpanded=()=>{let t=!0,r=n;for(;t&&r.parentId;)r=e.getRow(r.parentId,!0),t=r.getIsExpanded();return t},n.getToggleExpandedHandler=()=>{const t=n.getCanExpand();return()=>{t&&n.toggleExpanded()}}}},qj=(n,e,t)=>{var r;const i=t.toLowerCase();return!!(!((r=n.getValue(e))==null||(r=r.toString())==null||(r=r.toLowerCase())==null)&&r.includes(i))};qj.autoRemove=n=>Ai(n);const Kj=(n,e,t)=>{var r;return!!(!((r=n.getValue(e))==null||(r=r.toString())==null)&&r.includes(t))};Kj.autoRemove=n=>Ai(n);const Qj=(n,e,t)=>{var r;return((r=n.getValue(e))==null||(r=r.toString())==null?void 0:r.toLowerCase())===(t==null?void 0:t.toLowerCase())};Qj.autoRemove=n=>Ai(n);const Zj=(n,e,t)=>{var r;return(r=n.getValue(e))==null?void 0:r.includes(t)};Zj.autoRemove=n=>Ai(n)||!(n!=null&&n.length);const Jj=(n,e,t)=>!t.some(r=>{var i;return!((i=n.getValue(e))!=null&&i.includes(r))});Jj.autoRemove=n=>Ai(n)||!(n!=null&&n.length);const eR=(n,e,t)=>t.some(r=>{var i;return(i=n.getValue(e))==null?void 0:i.includes(r)});eR.autoRemove=n=>Ai(n)||!(n!=null&&n.length);const tR=(n,e,t)=>n.getValue(e)===t;tR.autoRemove=n=>Ai(n);const nR=(n,e,t)=>n.getValue(e)==t;nR.autoRemove=n=>Ai(n);const Kw=(n,e,t)=>{let[r,i]=t;const s=n.getValue(e);return s>=r&&s<=i};Kw.resolveFilterValue=n=>{let[e,t]=n,r=typeof e!="number"?parseFloat(e):e,i=typeof t!="number"?parseFloat(t):t,s=e===null||Number.isNaN(r)?-1/0:r,a=t===null||Number.isNaN(i)?1/0:i;if(s>a){const o=s;s=a,a=o}return[s,a]};Kw.autoRemove=n=>Ai(n)||Ai(n[0])&&Ai(n[1]);const Is={includesString:qj,includesStringSensitive:Kj,equalsString:Qj,arrIncludes:Zj,arrIncludesAll:Jj,arrIncludesSome:eR,equals:tR,weakEquals:nR,inNumberRange:Kw};function Ai(n){return n==null||n===""}const y8={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:n=>({columnFilters:[],globalFilter:void 0,...n}),getDefaultOptions:n=>({onColumnFiltersChange:Vr("columnFilters",n),onGlobalFilterChange:Vr("globalFilter",n),filterFromLeafRows:!1,maxLeafRowFilterDepth:100,globalFilterFn:"auto",getColumnCanGlobalFilter:e=>{var t;const r=(t=n.getCoreRowModel().flatRows[0])==null||(t=t._getAllCellsByColumnId()[e.id])==null?void 0:t.getValue();return typeof r=="string"||typeof r=="number"}}),createColumn:(n,e)=>{n.getAutoFilterFn=()=>{const t=e.getCoreRowModel().flatRows[0],r=t==null?void 0:t.getValue(n.id);return typeof r=="string"?Is.includesString:typeof r=="number"?Is.inNumberRange:typeof r=="boolean"||r!==null&&typeof r=="object"?Is.equals:Array.isArray(r)?Is.arrIncludes:Is.weakEquals},n.getFilterFn=()=>{var t,r;return Xg(n.columnDef.filterFn)?n.columnDef.filterFn:n.columnDef.filterFn==="auto"?n.getAutoFilterFn():(t=(r=e.options.filterFns)==null?void 0:r[n.columnDef.filterFn])!=null?t:Is[n.columnDef.filterFn]},n.getCanFilter=()=>{var t,r,i;return((t=n.columnDef.enableColumnFilter)!=null?t:!0)&&((r=e.options.enableColumnFilters)!=null?r:!0)&&((i=e.options.enableFilters)!=null?i:!0)&&!!n.accessorFn},n.getCanGlobalFilter=()=>{var t,r,i,s;return((t=n.columnDef.enableGlobalFilter)!=null?t:!0)&&((r=e.options.enableGlobalFilter)!=null?r:!0)&&((i=e.options.enableFilters)!=null?i:!0)&&((s=e.options.getColumnCanGlobalFilter==null?void 0:e.options.getColumnCanGlobalFilter(n))!=null?s:!0)&&!!n.accessorFn},n.getIsFiltered=()=>n.getFilterIndex()>-1,n.getFilterValue=()=>{var t;return(t=e.getState().columnFilters)==null||(t=t.find(r=>r.id===n.id))==null?void 0:t.value},n.getFilterIndex=()=>{var t,r;return(t=(r=e.getState().columnFilters)==null?void 0:r.findIndex(i=>i.id===n.id))!=null?t:-1},n.setFilterValue=t=>{e.setColumnFilters(r=>{const i=n.getFilterFn(),s=r==null?void 0:r.find(h=>h.id===n.id),a=Ha(t,s?s.value:void 0);if(qC(i,a,n)){var o;return(o=r==null?void 0:r.filter(h=>
vendor: 9,427 bytes, line 93
93h.id!==n.id))!=null?o:[]}const l={id:n.id,value:a};if(s){var u;return(u=r==null?void 0:r.map(h=>h.id===n.id?l:h))!=null?u:[]}return r!=null&&r.length?[...r,l]:[l]})},n._getFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,n.id),n.getFacetedRowModel=()=>n._getFacetedRowModel?n._getFacetedRowModel():e.getPreFilteredRowModel(),n._getFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,n.id),n.getFacetedUniqueValues=()=>n._getFacetedUniqueValues?n._getFacetedUniqueValues():new Map,n._getFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,n.id),n.getFacetedMinMaxValues=()=>{if(n._getFacetedMinMaxValues)return n._getFacetedMinMaxValues()}},createRow:(n,e)=>{n.columnFilters={},n.columnFiltersMeta={}},createTable:n=>{n.getGlobalAutoFilterFn=()=>Is.includesString,n.getGlobalFilterFn=()=>{var e,t;const{globalFilterFn:r}=n.options;return Xg(r)?r:r==="auto"?n.getGlobalAutoFilterFn():(e=(t=n.options.filterFns)==null?void 0:t[r])!=null?e:Is[r]},n.setColumnFilters=e=>{const t=n.getAllLeafColumns(),r=i=>{var s;return(s=Ha(e,i))==null?void 0:s.filter(a=>{const o=t.find(l=>l.id===a.id);if(o){const l=o.getFilterFn();if(qC(l,a.value,o))return!1}return!0})};n.options.onColumnFiltersChange==null||n.options.onColumnFiltersChange(r)},n.setGlobalFilter=e=>{n.options.onGlobalFilterChange==null||n.options.onGlobalFilterChange(e)},n.resetGlobalFilter=e=>{n.setGlobalFilter(e?void 0:n.initialState.globalFilter)},n.resetColumnFilters=e=>{var t,r;n.setColumnFilters(e?[]:(t=(r=n.initialState)==null?void 0:r.columnFilters)!=null?t:[])},n.getPreFilteredRowModel=()=>n.getCoreRowModel(),n.getFilteredRowModel=()=>(!n._getFilteredRowModel&&n.options.getFilteredRowModel&&(n._getFilteredRowModel=n.options.getFilteredRowModel(n)),n.options.manualFiltering||!n._getFilteredRowModel?n.getPreFilteredRowModel():n._getFilteredRowModel()),n._getGlobalFacetedRowModel=n.options.getFacetedRowModel&&n.options.getFacetedRowModel(n,"__global__"),n.getGlobalFacetedRowModel=()=>n.options.manualFiltering||!n._getGlobalFacetedRowModel?n.getPreFilteredRowModel():n._getGlobalFacetedRowModel(),n._getGlobalFacetedUniqueValues=n.options.getFacetedUniqueValues&&n.options.getFacetedUniqueValues(n,"__global__"),n.getGlobalFacetedUniqueValues=()=>n._getGlobalFacetedUniqueValues?n._getGlobalFacetedUniqueValues():new Map,n._getGlobalFacetedMinMaxValues=n.options.getFacetedMinMaxValues&&n.options.getFacetedMinMaxValues(n,"__global__"),n.getGlobalFacetedMinMaxValues=()=>{if(n._getGlobalFacetedMinMaxValues)return n._getGlobalFacetedMinMaxValues()}}};function qC(n,e,t){return(n&&n.autoRemove?n.autoRemove(e,t):!1)||typeof e>"u"||typeof e=="string"&&!e}const _8=(n,e,t)=>t.reduce((r,i)=>{const s=i.getValue(n);return r+(typeof s=="number"?s:0)},0),x8=(n,e,t)=>{let r;return t.forEach(i=>{const s=i.getValue(n);s!=null&&(r>s||r===void 0&&s>=s)&&(r=s)}),r},w8=(n,e,t)=>{let r;return t.forEach(i=>{const s=i.getValue(n);s!=null&&(r<s||r===void 0&&s>=s)&&(r=s)}),r},S8=(n,e,t)=>{let r,i;return t.forEach(s=>{const a=s.getValue(n);a!=null&&(r===void 0?a>=a&&(r=i=a):(r>a&&(r=a),i<a&&(i=a)))}),[r,i]},D8=(n,e)=>{let t=0,r=0;if(e.forEach(i=>{let s=i.getValue(n);s!=null&&(s=+s)>=s&&(++t,r+=s)}),t)return r/t},k8=(n,e)=>{if(!e.length)return;const t=e.map(s=>s.getValue(n));if(!f8(t))return;if(t.length===1)return t[0];const r=Math.floor(t.length/2),i=t.sort((s,a)=>s-a);return t.length%2!==0?i[r]:(i[r-1]+i[r])/2},P8=(n,e)=>Array.from(new Set(e.map(t=>t.getValue(n))).values()),C8=(n,e)=>new Set(e.map(t=>t.getValue(n))).size,E8=(n,e)=>e.length,Uy={sum:_8,min:x8,max:w8,extent:S8,mean:D8,median:k8,unique:P8,uniqueCount:C8,count:E8},M8={getDefaultColumnDef:()=>({aggregatedCell:n=>{var e,t;return(e=(t=n.getValue())==null||t.toString==null?void 0:t.toString())!=null?e:null},aggregationFn:"auto"}),getInitialState:n=>({grouping:[],...n}),getDefaultOptions:n=>({onGroupingChange:Vr("grouping",n),groupedColumnMode:"reorder"}),createColumn:(n,e)=>{n.toggleGrouping=()=>{e.setGrouping(t=>t!=null&&t.includes(n.id)?t.filter(r=>r!==n.id):[...t??[],n.id])},n.getCanGroup=()=>{var t,r,i,s;return(t=(r=(i=(s=n.columnDef.enableGrouping)!=null?s:!0)!=null?i:e.options.enableGrouping)!=null?r:!0)!=null?t:!!n.accessorFn},n.getIsGrouped=()=>{var t;return(t=e.getState().grouping)==null?void 0:t.includes(n.id)},n.getGroupedIndex=()=>{var t;return(t=e.getState().grouping)==null?void 0:t.indexOf(n.id)},n.getToggleGroupingHandler=()=>{const t=n.getCanGroup();return()=>{t&&n.toggleGrouping()}},n.getAutoAggregationFn=()=>{const t=e.getCoreRowModel().flatRows[0],r=t==null?void 0:t.getValue(n.id);if(typeof r=="number")return Uy.sum;if(Object.prototype.toString.call(r)==="[object Date]")return Uy.extent},n.getAggregationFn=()=>{var t,r;if(!n)throw new Error;return Xg(n.columnDef.aggregationFn)?n.columnDef.aggregationFn:n.columnDef.aggregationFn==="auto"?n.getAutoAggregationFn():(t=(r=e.options.aggregationFns)==null?void 0:r[n.columnDef.aggregationFn])!=null?t:Uy[n.columnDef.aggregationFn]}},createTable:n=>{n.setGrouping=e=>n.options.onGroupingChange==null?void 0:n.options.onGroupingChange(e),n.resetGrouping=e=>{var t,r;n.setGrouping(e?[]:(t=(r=n.initialState)==null?void 0:r.grouping)!=null?t:[])},n.getPreGroupedRowModel=()=>n.getFilteredRowModel(),n.getGroupedRowModel=()=>(!n._getGroupedRowModel&&n.options.getGroupedRowModel&&(n._getGroupedRowModel=n.options.getGroupedRowModel(n)),n.options.manualGrouping||!n._getGroupedRowModel?n.getPreGroupedRowModel():n._getGroupedRowModel())},createRow:(n,e)=>{n.getIsGrouped=()=>!!n.groupingColumnId,n.getGroupingValue=t=>{if(n._groupingValuesCache.hasOwnProperty(t))return n._groupingValuesCache[t];const r=e.getColumn(t);return r!=null&&r.columnDef.getGroupingValue?(n._groupingValuesCache[t]=r.columnDef.getGroupingValue(n.original),n._groupingValuesCache[t]):n.getValue(t)},n._groupingValuesCache={}},createCell:(n,e,t,r)=>{n.getIsGrouped=()=>e.getIsGrouped()&&e.id===t.groupingColumnId,n.getIsPlaceholder=()=>!n.getIsGrouped()&&e.getIsGrouped(),n.getIsAggregated=()=>{var i;return!n.getIsGrouped()&&!n.getIsPlaceholder()&&!!((i=t.subRows)!=null&&i.length)}}};function T8(n,e,t){if(!(e!=null&&e.length)||!t)return n;const r=n.filter(s=>!e.includes(s.id));return t==="remove"?r:[...e.map(s=>n.find(a=>a.id===s)).filter(Boolean),...r]}const O8={getInitialState:n=>({columnOrder:[],...n}),getDefaultOptions:n=>({onColumnOrderChange:Vr("columnOrder",n)}),createTable:n=>{n.setColumnOrder=e=>n.options.onColumnOrderChange==null?void 0:n.options.onColumnOrderChange(e),n.resetColumnOrder=e=>{var t;n.setColumnOrder(e?[]:(t=n.initialState.columnOrder)!=null?t:[])},n._getOrderColumnsFn=Re(()=>[n.getState().columnOrder,n.getState().grouping,n.options.groupedColumnMode],(e,t,r)=>i=>{let s=[];if(!(e!=null&&e.length))s=i;else{const a=[...e],o=[...i];for(;o.length&&a.length;){const l=a.shift(),u=o.findIndex(h=>h.id===l);u>-1&&s.push(o.splice(u,1)[0])}s=[...s,...o]}return T8(s,t,r)},{key:!1})}},W0=0,U0=10,Gy=()=>({pageIndex:W0,pageSize:U0}),A8={getInitialState:n=>({...n,pagination:{...Gy(),...n==null?void 0:n.pagination}}),getDefaultOptions:n=>({onPaginationChange:Vr("pagination",n)}),createTable:n=>{let e=!1,t=!1;n._autoResetPageIndex=()=>{var r,i;if(!e){n._queue(()=>{e=!0});return}if((r=(i=n.options.autoResetAll)!=null?i:n.options.autoResetPageIndex)!=null?r:!n.options.manualPagination){if(t)return;t=!0,n._queue(()=>{n.resetPageIndex(),t=!1})}},n.setPagination=r=>{const i=s=>Ha(r,s);return n.options.onPaginationChange==null?void 0:n.options.onPaginationChange(i)},n.resetPagination=r=>{var i;n.setPagination(r?Gy():(i=n.initialState.pagination)!=null?i:Gy())},n.setPageIndex=r=>{n.setPagination(i=>{let s=Ha(r,i.pageIndex);const a=typeof n.options.pageCount>"u"||n.options.pageCount===-1?Number.MAX_SAFE_INTEGER:n.options.pageCount-1;return s=Math.max(0,Math.min(s,a)),{...i,pageIndex:s}})},n.resetPageIndex=r=>{var i,s;n.setPageIndex(r?W0:(i=(s=n.initialState)==null||(s=s.pagination)==null?void 0:s.pageIndex)!=null?i:W0)},n.resetPageSize=r=>{var i,s;n.setPageSize(r?U0:(i=(s=n.initialState)==null||(s=s.pagination)==null?void 0:s.pageSize)!=null?i:U0)},n.setPageSize=r=>{n.setPagination(i=>{const s=Math.max(1,Ha(r,i.pageSize)),a=i.pageSize*i.pageIndex,o=Math.floor(a/s);return{...i,pageIndex:o,pageSize:s}})},n.setPageCount=r=>n.setPagination(i=>{var s;let a=Ha(r,(s=n.options.pageCount)!=null?s:-1);return typeof a=="number"&&(a=Math.max(-1,a)),{...i,pageCount:a}}),n.getPageOptions=Re(()=>[n.getPageCount()],r=>{let i=[];return r&&r>0&&(i=[...new Array(r)].fill(null).map((s,a)=>a)),i},{key:!1,debug:()=>{var r;return(r=n.options.debugAll)!=null?r:n.options.debugTable}}),n.getCanPreviousPage=()=>n.getState().pagination.pageIndex>0,n.getCanNextPage=()=>{const{pageIndex:r}=n.getState().pagination,i=n.getPageCount();return i===-1?!0:i===0?!1:r<i-1},n.previousPage=()=>n.setPageIndex(r=>r-1),n.nextPage=()=>n.setPageIndex(r=>r+1),n.getPrePaginationRowModel=()=>n.getExpandedRowModel(),n.getPaginationRowModel=()=>(!n._getPaginationRowModel&&n.options.getPaginationRowModel&&(n._getPaginationRowModel=n.options.getPaginationRowModel(n)),n.options.manualPagination||!n._getPaginationRowModel?n.getPrePaginationRowModel():n._getPaginationRowModel()),n.getPageCount=()=>{var r;return(r=n.options.pageCount)!=null?r:Math.ceil(n.getPrePaginationRowModel().rows.length/n.getState().pagination.pageSize)}}},Xy=()=>
93({left:[],right:[]}),qy=()=>({top:[],bottom:[]}),j8={getInitialState:n=>({columnPinning:Xy(),rowPinning:qy(),...n}),getDefaultOptions:n=>({onColumnPinningChange:Vr("columnPinning",n),onRowPinningChange:Vr("rowPinning",n)}),createColumn:(n,e)=>{n.pin=t=>{const r=n.getLeafColumns().map(i=>i.id).filter(Boolean);e.setColumnPinning(i=>{var s,a;if(t==="right"){var o,l;return{left:((o=i==null?void 0:i.left)!=null?o:[]).filter(f=>!(r!=null&&r.includes(f))),right:[...((l=i==null?void 0:i.right)!=null?l:[]).filter(f=>!(r!=null&&r.includes(f))),...r]}}if(t==="left"){var u,h;return{left:[...((u=i==null?void 0:i.left)!=null?u:[]).filter(f=>!(r!=null&&r.includes(f))),...r],right:((h=i==null?void 0:i.right)!=null?h:[]).filter(f=>!(r!=null&&r.includes(f)))}}return{left:((s=i==null?void 0:i.left)!=null?s:[]).filter(f=>!(r!=null&&r.includes(f))),right:((a=i==null?void 0:i.right)!=null?a:[]).filter(f=>!(r!=null&&r.includes(f)))}})},n.getCanPin=()=>n.getLeafColumns().some(r=>{var i,s,a;return((i=r.columnDef.enablePinning)!=null?i:!0)&&((s=(a=e.options.enableColumnPinning)!=null?a:e.options.enablePinning)!=null?s:!0)}),n.getIsPinned=()=>{const t=n.getLeafColumns().map(o=>o.id),{left:r,right:i}=e.getState().columnPinning,s=t.some(o=>r==null?void 0:r.includes(o)),a=t.some(o=>i==null?void 0:i.includes(o));return s?"left":a?"right":!1},n.getPinnedIndex=()=>{var t,r;const i=n.getIsPinned();return i?(t=(r=e.getState().columnPinning)==null||(r=r[i])==null?void 0:r.indexOf(n.id))!=null?t:-1:0}},createRow:(n,e)=>{n.pin=(t,r,i)=>{const s=r?n.getLeafRows().map(l=>{let{id:u}=l;return u}):[],a=i?n.getParentRows().map(l=>{let{id:u}=l;return u}):[],o=new Set([...a,n.id,...s]);e.setRowPinning(l=>{var u,h;if(t==="bottom"){var f,m;return{top:((f=l==null?void 0:l.top)!=null?f:[]).filter(v=>!(o!=null&&o.has(v))),bottom:[...((m=l==null?void 0:l.bottom)!=null?m:[]).filter(v=>!(o!=null&&o.has(v))),...Array.from(o)]}}if(t==="top"){var g,y;return{top:[...((g=l==null?void 0:l.top)!=null?g:[]).filter(v=>!(o!=null&&o.has(v))),...Array.from(o)],bottom:((y=l==null?void 0:l.bottom)!=null?y:[]).filter(v=>!(o!=null&&o.has(v)))}}return{top:((u=l==null?void 0:l.top)!=null?u:[]).filter(v=>!(o!=null&&o.has(v))),bottom:((h=l==null?void 0:l.bottom)!=null?h:[]).filter(v=>!(o!=null&&o.has(v)))}})},n.getCanPin=()=>{var t;const{enableRowPinning:r,enablePinning:i}=e.options;return typeof r=="function"?r(n):(t=r??i)!=null?t:!0},n.getIsPinned=()=>{const t=[n.id],{top:r,bottom:i}=e.getState().rowPinning,s=t.some(o=>r==null?void 0:r.includes(o)),a=t.some(o=>i==null?void 0:i.includes(o));return s?"top":a?"bottom":!1},n.getPinnedIndex=()=>{var t,r;const i=n.getIsPinned();if(!i)return-1;const s=(t=e._getPinnedRows(i))==null?void 0:t.map(a=>{let{id:o}=a;return o}
93);return(r=s==null?void 0:s.indexOf(n.id))!=null?r:-1},n.getCenterVisibleCells=Re(()=>[n._getAllVisibleCells(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,r,i)=>{const s=[...r??[],...i??[]];return t.filter(a=>!s.includes(a.column.id))},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugRows}}),n.getLeftVisibleCells=Re(()=>[n._getAllVisibleCells(),e.getState().columnPinning.left,,],(t,r)=>(r??[]).map(s=>t.find(a=>a.column.id===s)).filter(Boolean).map(s=>({...s,position:"left"})),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugRows}}),n.getRightVisibleCells=Re(()=>[n._getAllVisibleCells(),e.getState().columnPinning.right],(t,r)=>(r??[]).map(s=>t.find(a=>a.column.id===s)).filter(Boolean).map(s=>({...s,position:"right"})),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugRows}})},createTable:n=>{n.setColumnPinning=e=>n.options.onColumnPinningChange==null?void 0:n.options.onColumnPinningChange(e),n.resetColumnPinning=e=>{var t,r;return n.setColumnPinning(e?Xy():(t=(r=n.initialState)==null?void 0:r.columnPinning)!=null?t:Xy())},n.getIsSomeColumnsPinned=e=>{var t;const r=n.getState().columnPinning;if(!e){var i,s;return!!((i=r.left)!=null&&i.length||(s=r.right)!=null&&s.length)}return!!((t=r[e])!=null&&t.length)},n.getLeftLeafColumns=Re(()=>[n.getAllLeafColumns(),n.getState().columnPinning.left],(e,t)=>(t??[]).map(r=>e.find(i=>i.id===r)).filter(Boolean),{key:!1,debug:()=>{var e;return(e=n.options.debugAll)!=null?e:n.options.debugColumns}}),n.getRightLeafColumns=Re(()=>[n.getAllLeafColumns(),n.getState().columnPinning.right],(e,t)=>(t??[]).map(r=>e.find(i=>i.id===r)).filter(Boolean),{key:!1,debug:()=>{var e;return(e=n.options.debugAll)!=null?e:n.options.debugColumns}}),n.getCenterLeafColumns=Re(()=>[n.getAllLeafColumns(),n.getState().columnPinning.left,n.getState().columnPinning.right],(e,t,r)=>{const i=[...t??[],...r??[]];return e.filter(s=>!i.includes(s.id))},{key:!1,debug:()=>{var e;return(e=n.options.debugAll)!=null?e:n.options.debugColumns}}),n.setRowPinning=e=>n.options.onRowPinningChange==null?void 0:n.options.onRowPinningChange(e),n.resetRowPinning=e=>{var t,r;return n.setRowPinning(e?qy():(t=(r=n.initialState)==null?void 0:r.rowPinning)!=null?t:qy())},n.getIsSomeRowsPinned=e=>{var t;const r=n.getState().rowPinning;if(!e){var i,s;return!!((i=r.top)!=null&&i.length||(s=r.bottom)!=null&&s.length)}return!!((t=r[e])!=null&&t.length)},n._getPinnedRows=e=>Re(()=>[n.getRowModel().rows,n.getState().rowPinning[e]],(t,r)=>{var i;return((i=n.options.keepPinnedRows)==null||i?(r??[]).map(a=>{const o=n.getRow(a,!0);return o.getIsAllParentsExpanded()?o:null}):(r??[]).map(a=>t.find(o=>o.id===a))).filter(Boolean).map(a=>({...a,position:e}))},{key:!1,debug:()=>{var t;return(t=n.options.debugAll)!=null?t:n.options.debugRows}})(),n.getTopRows=()=>n._getPinnedRows("top"),n.getBottomRows=()=>n._getPinnedRows("bottom"),n.getCenterRows=Re(()=>[n.getRowModel().rows,n.getState().rowPinning.top,n.getState().rowPinning.bottom],(e,t,r)=>{const i=new Set([...t??[],...r??[]]);return e.filter(s=>!i.has(s.id))},{key:!1,debug:()=>{var e;return(e=n.options.debugAll)!=null?e:n.options.debugRows}})}},R8={getInitialState:n=>({rowSelection:{},...n}),getDefaultOptions:n=>({onRowSelectionChange:Vr("rowSelection",n),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:n=>{n.setRowSelection=e=>n.options.onRowSelectionChange==null?void 0:n.options.onRowSelectionChange(e),n.resetRowSelection=e=>{var t;return n.setRowSelection(e?{}:(t=n.initialState.rowSelection)!=null?t:{})},n.toggleAllRowsSelected=e=>{n.setRowSelection(t=>{e=typeof e<"u"?e:!n.getIsAllRowsSelected();const r={...t},i=n.getPreGroupedRowModel().flatRows;return e?i.forEach(s=>{s.getCanSelect()&&(r[s.id]=!0)}):i.forEach(s=>{delete r[s.id]}),r})},n.toggleAllPageRowsSelected=e=>n.setRowSelection(t=>{const r=typeof e<"u"?e:!n.getIsAllPageRowsSelected(),i={...t};return n.getRowModel().rows.forEach(s=>{G0(i,s.id,r,!0,n)}),i}),n.getPreSelectedRowModel=()=>n.getCoreRowModel(),n.getSelectedRowModel=Re(()=>[n.getState().rowSelection,n.getCoreRowModel()],(e,t)=>Object.keys(e).length?Ky(n,t):{rows:[],flatRows:[],rowsById:{}},{key:!1,debug:()=>{var e;return(e=n.options.debugAll)!=null?e:n.options.debugTable}}),n.getFilteredSelectedRowModel=Re(()=>[n.getState().rowSelection,n.getFilteredRowModel()],(e,t)=>Object.keys(e).length?Ky(n,t):{rows:[],flatRows:[],rowsById:{}},{key:"getFilteredSelectedRowModel",debug:()=>{var e;return(e=n.options.debugAll)!=null?e:n.options.debugTable}}),n.getGroupedSelectedRowModel=Re(()=>[n.getState().rowSelection,n.getSortedRowModel()],(e,t)=>Object.keys(e).length?Ky(n,t):{rows:[],flatRows:[],rowsById:{}},{key:"getGroupedSelectedRowModel",debug:()=>{var e;return(e=n.options.debugAll)!=null?e:n.options.debugTable}}),n.getIsAllRowsSelected=()=>{const e=n.getFilteredRowModel().flatRows,{rowSelection:t}=n.getState();let r=!!(e.length&&Object.keys(t).length);return r&&e.some(i=>i.getCanSelect()&&!t[i.id])&&(r=!1),r},n.getIsAllPageRowsSelected=()=>{const e=n.getPaginationRowModel().flatRows.filter(i=>i.getCanSelect()),{rowSelection:t}=n.getState();let r=!!e.length;return r&&e.some(i=>!t[i.id])&&(r=!1),r},n.getIsSomeRowsSelected=()=>{var e;const t=Object.keys((e=n.getState().rowSelection)!=null?e:{}).length;return t>0&&t<n.getFilteredRowModel().flatRows.length},n.getIsSomePageRowsSelected=()=>{const e=n.getPaginationRowModel().flatRows;return n.getIsAllPageRowsSelected()?!1:e.filter(t=>t.getCanSelect()).some(t=>t.getIsSelected()||t.getIsSomeSelected())},n.getToggleAllRowsSelectedHandler=()=>e=>{n.toggleAllRowsSelected(e.target.checked)},n.getToggleAllPageRowsSelectedHandler=()=>e=>{n.toggleAllPageRowsSelected(e.target.checked)}},createRow:(n,e)=>{n.toggleSelected=(t,r)=>{const i=n.getIsSelected();e.setRowSelection(s=>{var a;if(t=typeof t<"u"?t:!i,n.getCanSelect()&&i===t)return s;const o={...s};return G0(o,n.id,t,(a=r==null?void 0:r.selectChildren)!=null?a:!0,e),o})},n.getIsSelected=()=>{const{rowSelection:t}=e.getState();return Qw(n,t)},n.getIsSomeSelected=()=>{const{rowSelection:t}=e.getState();return X0(n,t)==="some"},n.getIsAllSubRowsSelected=()=>{const{rowSelection:t}=e.getState();return X0(n,t)==="all"},n.getCanSelect=()=>{var t;
vendor: 8,573 bytes, line 93
93return typeof e.options.enableRowSelection=="function"?e.options.enableRowSelection(n):(t=e.options.enableRowSelection)!=null?t:!0},n.getCanSelectSubRows=()=>{var t;return typeof e.options.enableSubRowSelection=="function"?e.options.enableSubRowSelection(n):(t=e.options.enableSubRowSelection)!=null?t:!0},n.getCanMultiSelect=()=>{var t;return typeof e.options.enableMultiRowSelection=="function"?e.options.enableMultiRowSelection(n):(t=e.options.enableMultiRowSelection)!=null?t:!0},n.getToggleSelectedHandler=()=>{const t=n.getCanSelect();return r=>{var i;t&&n.toggleSelected((i=r.target)==null?void 0:i.checked)}}}},G0=(n,e,t,r,i)=>{var s;const a=i.getRow(e,!0);t?(a.getCanMultiSelect()||Object.keys(n).forEach(o=>delete n[o]),a.getCanSelect()&&(n[e]=!0)):delete n[e],r&&(s=a.subRows)!=null&&s.length&&a.getCanSelectSubRows()&&a.subRows.forEach(o=>G0(n,o.id,t,r,i))};function Ky(n,e){const t=n.getState().rowSelection,r=[],i={},s=function(a,o){return a.map(l=>{var u;const h=Qw(l,t);if(h&&(r.push(l),i[l.id]=l),(u=l.subRows)!=null&&u.length&&(l={...l,subRows:s(l.subRows)}),h)return l}).filter(Boolean)};return{rows:s(e.rows),flatRows:r,rowsById:i}}function Qw(n,e){var t;return(t=e[n.id])!=null?t:!1}function X0(n,e,t){var r;if(!((r=n.subRows)!=null&&r.length))return!1;let i=!0,s=!1;return n.subRows.forEach(a=>{if(!(s&&!i)&&(a.getCanSelect()&&(Qw(a,e)?s=!0:i=!1),a.subRows&&a.subRows.length)){const o=X0(a,e);o==="all"?s=!0:(o==="some"&&(s=!0),i=!1)}}),i?"all":s?"some":!1}const q0=/([0-9]+)/gm,I8=(n,e,t)=>rR(so(n.getValue(t)).toLowerCase(),so(e.getValue(t)).toLowerCase()),N8=(n,e,t)=>rR(so(n.getValue(t)),so(e.getValue(t))),F8=(n,e,t)=>Zw(so(n.getValue(t)).toLowerCase(),so(e.getValue(t)).toLowerCase()),L8=(n,e,t)=>Zw(so(n.getValue(t)),so(e.getValue(t))),B8=(n,e,t)=>{const r=n.getValue(t),i=e.getValue(t);return r>i?1:r<i?-1:0},$8=(n,e,t)=>Zw(n.getValue(t),e.getValue(t));function Zw(n,e){return n===e?0:n>e?1:-1}function so(n){return typeof n=="number"?isNaN(n)||n===1/0||n===-1/0?"":String(n):typeof n=="string"?n:""}function rR(n,e){const t=n.split(q0).filter(Boolean),r=e.split(q0).filter(Boolean);for(;t.length&&r.length;){const i=t.shift(),s=r.shift(),a=parseInt(i,10),o=parseInt(s,10),l=[a,o].sort();if(isNaN(l[0])){if(i>s)return 1;if(s>i)return-1;continue}if(isNaN(l[1]))return isNaN(a)?-1:1;if(a>o)return 1;if(o>a)return-1}return t.length-r.length}const nd={alphanumeric:I8,alphanumericCaseSensitive:N8,text:F8,textCaseSensitive:L8,datetime:B8,basic:$8},V8={getInitialState:n=>({sorting:[],...n}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:n=>({onSortingChange:Vr("sorting",n),isMultiSortEvent:e=>e.shiftKey}),createColumn:(n,e)=>{n.getAutoSortingFn=()=>{const t=e.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const i of t){const s=i==null?void 0:i.getValue(n.id);if(Object.prototype.toString.call(s)==="[object Date]")return nd.datetime;if(typeof s=="string"&&(r=!0,s.split(q0).length>1))return nd.alphanumeric}return r?nd.text:nd.basic},n.getAutoSortDir=()=>{const t=e.getFilteredRowModel().flatRows[0];return typeof(t==null?void 0:t.getValue(n.id))=="string"?"asc":"desc"},n.getSortingFn=()=>{var t,r;if(!n)throw new Error;return Xg(n.columnDef.sortingFn)?n.columnDef.sortingFn:n.columnDef.sortingFn==="auto"?n.getAutoSortingFn():(t=(r=e.options.sortingFns)==null?void 0:r[n.columnDef.sortingFn])!=null?t:nd[n.columnDef.sortingFn]},n.toggleSorting=(t,r)=>{const i=n.getNextSortingOrder(),s=typeof t<"u"&&t!==null;e.setSorting(a=>{const o=a==null?void 0:a.find(g=>g.id===n.id),l=a==null?void 0:a.findIndex(g=>g.id===n.id);let u=[],h,f=s?t:i==="desc";if(a!=null&&a.length&&n.getCanMultiSort()&&r?o?h="toggle":h="add":a!=null&&a.length&&l!==a.length-1?h="replace":o?h="toggle":h="replace",h==="toggle"&&(s||i||(h="remove")),h==="add"){var m;u=[...a,{id:n.id,desc:f}],u.splice(0,u.length-((m=e.options.maxMultiSortColCount)!=null?m:Number.MAX_SAFE_INTEGER))}else h==="toggle"?u=a.map(g=>g.id===n.id?{...g,desc:f}:g):h==="remove"?u=a.filter(g=>g.id!==n.id):u=[{id:n.id,desc:f}];return u})},n.getFirstSortDir=()=>{var t,r;return((t=(r=n.columnDef.sortDescFirst)!=null?r:e.options.sortDescFirst)!=null?t:n.getAutoSortDir()==="desc")?"desc":"asc"},n.getNextSortingOrder=t=>{var r,i;const s=n.getFirstSortDir(),a=n.getIsSorted();return a?a!==s&&((r=e.options.enableSortingRemoval)==null||r)&&(!(t&&(i=e.options.enableMultiRemove)!=null)||i)?!1:a==="desc"?"asc":"desc":s},n.getCanSort=()=>{var t,r;return((t=n.columnDef.enableSorting)!=null?t:!0)&&((r=e.options.enableSorting)!=null?r:!0)&&!!n.accessorFn},n.getCanMultiSort=()=>{var t,r;return(t=(r=n.columnDef.enableMultiSort)!=null?r:e.options.enableMultiSort)!=null?t:!!n.accessorFn},n.getIsSorted=()=>{var t;const r=(t=e.getState().sorting)==null?void 0:t.find(i=>i.id===n.id);return r?r.desc?"desc":"asc":!1},n.getSortIndex=()=>{var t,r;return(t=(r=e.getState().sorting)==null?void 0:r.findIndex(i=>i.id===n.id))!=null?t:-1},n.clearSorting=()=>{e.setSorting(t=>t!=null&&t.length?t.filter(r=>r.id!==n.id):[])},n.getToggleSortingHandler=()=>{const t=n.getCanSort();return r=>{t&&(r.persist==null||r.persist(),n.toggleSorting==null||n.toggleSorting(void 0,n.getCanMultiSort()?e.options.isMultiSortEvent==null?void 0:e.options.isMultiSortEvent(r):!1))}}},createTable:n=>{n.setSorting=e=>n.options.onSortingChange==null?void 0:n.options.onSortingChange(e),n.resetSorting=e=>{var t,r;n.setSorting(e?[]:(t=(r=n.initialState)==null?void 0:r.sorting)!=null?t:[])},n.getPreSortedRowModel=()=>n.getGroupedRowModel(),n.getSortedRowModel=()=>(!n._getSortedRowModel&&n.options.getSortedRowModel&&(n._getSortedRowModel=n.options.getSortedRowModel(n)),n.options.manualSorting||!n._getSortedRowModel?n.getPreSortedRowModel():n._getSortedRowModel())}},Y8={getInitialState:n=>({columnVisibility:{},...n}),getDefaultOptions:n=>({onColumnVisibilityChange:Vr("columnVisibility",n)}),createColumn:(n,e)=>{n.toggleVisibility=t=>{n.getCanHide()&&e.setColumnVisibility(r=>({...r,[n.id]:t??!n.getIsVisible()}))},n.getIsVisible=()=>{var t,r;return(t=(r=e.getState().columnVisibility)==null?void 0:r[n.id])!=null?t:!0},n.getCanHide=()=>{var t,r;return((t=n.columnDef.enableHiding)!=null?t:!0)&&((r=e.options.enableHiding)!=null?r:!0)},n.getToggleVisibilityHandler=()=>t=>{n.toggleVisibility==null||n.toggleVisibility(t.target.checked)}},createRow:(n,e)=>{n._getAllVisibleCells=Re(()=>[n.getAllCells(),e.getState().columnVisibility],t=>t.filter(r=>r.column.getIsVisible()),{key:"row._getAllVisibleCells",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugRows}}),n.getVisibleCells=Re(()=>[n.getLeftVisibleCells(),n.getCenterVisibleCells(),n.getRightVisibleCells()],(t,r,i)=>[...t,...r,...i],{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugRows}})},createTable:n=>{const e=(t,r)=>Re(()=>[r(),r().filter(i=>i.getIsVisible()).map(i=>i.id).join("_")],i=>i.filter(s=>s.getIsVisible==null?void 0:s.getIsVisible()),{key:t,debug:()=>{var i;return(i=n.options.debugAll)!=null?i:n.options.debugColumns}});n.getVisibleFlatColumns=e("getVisibleFlatColumns",()=>n.getAllFlatColumns()),n.getVisibleLeafColumns=e("getVisibleLeafColumns",()=>n.getAllLeafColumns()),n.getLeftVisibleLeafColumns=e("getLeftVisibleLeafColumns",()=>n.getLeftLeafColumns()),n.getRightVisibleLeafColumns=e("getRightVisibleLeafColumns",()=>n.getRightLeafColumns()),n.getCenterVisibleLeafColumns=e("getCenterVisibleLeafColumns",()=>n.getCenterLeafColumns()),n.setColumnVisibility=t=>n.options.onColumnVisibilityChange==null?void 0:n.options.onColumnVisibilityChange(t),n.resetColumnVisibility=t=>{var r;n.setColumnVisibility(t?{}:(r=n.initialState.columnVisibility)!=null?r:{})},n.toggleAllColumnsVisible=t=>{var r;t=(r=t)!=null?r:!n.getIsAllColumnsVisible(),n.setColumnVisibility(n.getAllLeafColumns().reduce((i,s)=>({...i,[s.id]:t||!(s.getCanHide!=null&&s.getCanHide())}),{}))},n.getIsAllColumnsVisible=()=>!n.getAllLeafColumns().some(t=>!(t.getIsVisible!=null&&t.getIsVisible())),n.getIsSomeColumnsVisible=()=>n.getAllLeafColumns().some(t=>t.getIsVisible==null?void 0:t.getIsVisible()),n.getToggleAllColumnsVisibilityHandler=()=>t=>{var r;n.toggleAllColumnsVisible((r=t.target)==null?void 0:r.checked)}}},KC=[g8,Y8,O8,j8,y8,V8,M8,b8,A8,R8,m8];function H8(n){var e;(n.debugAll||n.debugTable)&&console.info("Creating Table Instance...");let t={_features:KC};const r=t._features.reduce((h,f)=>Object.assign(h,f.getDefaultOptions==null?void 0:f.getDefaultOptions(t)),{}),i=h=>t.options.mergeOptions?t.options.mergeOptions(r,h):{...r,...h};let a={...{},...(e=n.initialState)!=null?e:{}};
93t._features.forEach(h=>{var f;a=(f=h.getInitialState==null?void 0:h.getInitialState(a))!=null?f:a});const o=[];let l=!1;const u={_features:KC,options:{...r,...n},initialState:a,_queue:h=>{o.push(h),l||(l=!0,Promise.resolve().then(()=>{for(;o.length;)o.shift()();l=!1}).catch(f=>setTimeout(()=>{throw f})))},reset:()=>{t.setState(t.initialState)},setOptions:h=>{const f=Ha(h,t.options);t.options=i(f)},getState:()=>t.options.state,setState:h=>{t.options.onStateChange==null||t.options.onStateChange(h)},_getRowId:(h,f,m)=>{var g;return(g=t.options.getRowId==null?void 0:t.options.getRowId(h,f,m))!=null?g:`${m?[m.id,f].join("."):f}`},getCoreRowModel:()=>(t._getCoreRowModel||(t._getCoreRowModel=t.options.getCoreRowModel(t)),t._getCoreRowModel()),getRowModel:()=>t.getPaginationRowModel(),getRow:(h,f)=>{let m=(f?t.getPrePaginationRowModel():t.getRowModel()).rowsById[h];if(!m&&(m=t.getCoreRowModel().rowsById[h],!m))throw new Error;return m},_getDefaultColumnDef:Re(()=>[t.options.defaultColumn],h=>{var f;return h=(f=h)!=null?f:{},{header:m=>{const g=m.header.column.columnDef;return g.accessorKey?g.accessorKey:g.accessorFn?g.id:null},cell:m=>{var g,y;return(g=(y=m.renderValue())==null||y.toString==null?void 0:y.toString())!=null?g:null},...t._features.reduce((m,g)=>Object.assign(m,g.getDefaultColumnDef==null?void 0:g.getDefaultColumnDef()),{}),...h}},{debug:()=>{var h;return(h=t.options.debugAll)!=null?h:t.options.debugColumns},key:!1}),_getColumnDefs:()=>t.options.columns,getAllColumns:Re(()=>[t._getColumnDefs()],h=>{const f=function(m,g,y){return y===void 0&&(y=0),m.map(v=>{const x=p8(t,v,y,g),_=v;return x.columns=_.columns?f(_.columns,x,y+1):[],x})};return f(h)},{key:!1,debug:()=>{var h;return(h=t.options.debugAll)!=null?h:t.options.debugColumns}}),getAllFlatColumns:Re(()=>[t.getAllColumns()],h=>h.flatMap(f=>f.getFlatColumns()),{key:!1,debug:()=>{var h;return(h=t.options.debugAll)!=null?h:t.options.debugColumns}}),_getAllFlatColumnsById:Re(()=>[t.getAllFlatColumns()],h=>h.reduce((f,m)=>(f[m.id]=m,f),{}),{key:!1,debug:()=>{var h;return(h=t.options.debugAll)!=null?h:t.options.debugColumns}}),getAllLeafColumns:Re(()=>[t.getAllColumns(),t._getOrderColumnsFn()],(h,f)=>{let m=h.flatMap(g=>g.getLeafColumns());return f(m)},{key:!1,debug:()=>{var h;return(h=t.options.debugAll)!=null?h:t.options.debugColumns}}),getColumn:h=>t._getAllFlatColumnsById()[h]};Object.assign(t,u);for(let h=0;h<t._features.length;h++){const f=t._features[h];f==null||f.createTable==null||f.createTable(t)}return t}function z8(n,e,t,r){const i=()=>{var a;return(a=s.getValue())!=null?a:n.options.renderFallbackValue},s={id:`${e.id}_${t.id}`,row:e,column:t,getValue:()=>e.getValue(r),renderValue:i,getContext:Re(()=>[n,t,e,s],(a,o,l,u)=>({table:a,column:o,row:l,cell:u,getValue:u.getValue,renderValue:u.renderValue}),{key:!1,debug:()=>n.options.debugAll})};return n._features.forEach(a=>{a.createCell==null||a.createCell(s,t,e,n)},{}),s}const Jw=(n,e,t,r,i,s,a)=>{let o={id:e,index:r,original:t,depth:i,parentId:a,_valuesCache:{},_uniqueValuesCache:{},getValue:l=>{if(o._valuesCache.hasOwnProperty(l))return o._valuesCache[l];const u=n.getColumn(l);if(u!=null&&u.accessorFn)return o._valuesCache[l]=u.accessorFn(o.original,r),o._valuesCache[l]},getUniqueValues:l=>{if(o._uniqueValuesCache.hasOwnProperty(l))return o._uniqueValuesCache[l];const u=n.getColumn(l);if(u!=null&&u.accessorFn)return u.columnDef.getUniqueValues?(o._uniqueValuesCache[l]=u.columnDef.getUniqueValues(o.original,r),o._uniqueValuesCache[l]):(o._uniqueValuesCache[l]=[o.getValue(l)],o._uniqueValuesCache[l])},renderValue:l=>{var u;return(u=o.getValue(l))!=null?u:n.options.renderFallbackValue},subRows:s??[],getLeafRows:()=>h8(o.subRows,l=>l.subRows),getParentRow:()=>o.parentId?n.getRow(o.parentId,!0):void 0,getParentRows:()=>{let l=[],u=o;for(;;){const h=u.getParentRow();if(!h)break;l.push(h),u=h}return l.reverse()},getAllCells:Re(()=>[n.getAllLeafColumns()],l=>l.map(u=>z8(n,o,u,u.id)),{key:!1,debug:()=>{var l;return(l=n.options.debugAll)!=null?l:n.options.debugRows}}),_getAllCellsByColumnId:Re(()=>[o.getAllCells()],l=>l.reduce((u,h)=>(u[h.column.id]=h,u),{}),{key:"row.getAllCellsByColumnId",debug:()=>{var l;return(l=n.options.debugAll)!=null?l:n.options.debugRows}})};for(let l=0;l<n._features.length;l++){const u=n._features[l];u==null||u.createRow==null||u.createRow(o,n)}return o};function Ml(){return{accessor:(n,e)=>typeof n=="function"?{...e,accessorFn:n}:{...e,accessorKey:n},display:n=>n,group:n=>n}}function Tl(){return n=>Re(()=>[n.options.data],e=>{const t={rows:[],flatRows:[],rowsById:{}},r=function(i,s,a){s===void 0&&(s=0);const o=[];for(let u=0;u<i.length;u++){const h=Jw(n,n._getRowId(i[u],u,a),i[u],u,s,void 0,a==null?void 0:a.id);if(t.flatRows.push(h),t.rowsById[h.id]=h,o.push(h),n.options.getSubRows){var l;h.originalSubRows=n.options.getSubRows(i[u],u),(l=h.originalSubRows)!=null&&l.length&&(h.subRows=r(h.originalSubRows,s+1,h))}}return o};return t.rows=r(e),t},{key:!1,debug:()=>{var e;return(e=n.options.debugAll)!=null?e:n.options.debugTable},onChange:()=>{n._autoResetPageIndex()}})}function iR(n,e,t){return t.options.filterFromLeafRows?W8(n,e,t):U8(n,e,t)}function W8(n,e,t){var r;const i=[],s={},a=(r=t.options.maxLeafRowFilterDepth)!=null?r:100,o=function(l,u){u===void 0&&(u=0);const h=[];for(let m=0;m<l.length;m++){var f;let g=l[m];const y=Jw(t,g.id,g.original,g.index,g.depth,void 0,g.parentId);if(y.columnFilters=g.columnFilters,(f=g.subRows)!=null&&f.length&&u<a){if(y.subRows=o(g.subRows,u+1),g=y,e(g)&&!y.subRows.length){h.push(g),s[g.id]=g,i.push(g);continue}if(e(g)||y.subRows.length){h.push(g),s[g.id]=g,i.push(g);continue}}else g=y,e(g)&&(h.push(g),s[g.id]=g,i.push(g))}return h};return{rows:o(n),flatRows:i,rowsById:s}}function U8(n,e,t){var r;const i=[],s={},a=(r=t.options.maxLeafRowFilterDepth)!=null?r:100,o=function(l,u){u===void 0&&(u=0);const h=[];for(let m=0;m<l.length;m++){let g=l[m];if(e(g)){var f;if((f=g.subRows)!=null&&f.length&&u<a){const v=Jw(t,g.id,g.original,g.index,g.depth,void 0,g.parentId);v.subRows=o(g.subRows,u+1),g=v}h.push(g),i.push(g),s[g.id]=g}}return h};return{rows:o(n),flatRows:i,rowsById:s}}function sR(){return n=>Re(()=>[n.getPreFilteredRowModel(),n.getState().columnFilters,n.getState().globalFilter],(e,t,r)=>{if(!e.rows.length||!(t!=null&&t.length)&&!r){for(let m=0;m<e.flatRows.length;m++)e.flatRows[m].columnFilters={},e.flatRows[m].columnFiltersMeta={};return e}const i=[],s=[];
93(t??[]).forEach(m=>{var g;const y=n.getColumn(m.id);if(!y)return;const v=y.getFilterFn();v&&i.push({id:m.id,filterFn:v,resolvedValue:(g=v.resolveFilterValue==null?void 0:v.resolveFilterValue(m.value))!=null?g:m.value})});const a=t.map(m=>m.id),o=n.getGlobalFilterFn(),l=n.getAllLeafColumns().filter(m=>m.getCanGlobalFilter());r&&o&&l.length&&(a.push("__global__"),l.forEach(m=>{var g;s.push({id:m.id,filterFn:o,resolvedValue:(g=o.resolveFilterValue==null?void 0:o.resolveFilterValue(r))!=null?g:r})}));let u,h;for(let m=0;m<e.flatRows.length;m++){const g=e.flatRows[m];if(g.columnFilters={},i.length)for(let y=0;y<i.length;y++){u=i[y];const v=u.id;g.columnFilters[v]=u.filterFn(g,v,u.resolvedValue,x=>{g.columnFiltersMeta[v]=x})}if(s.length){for(let y=0;y<s.length;y++){h=s[y];const v=h.id;if(h.filterFn(g,v,h.resolvedValue,x=>{g.columnFiltersMeta[v]=x})){g.columnFilters.__global__=!0;break}}g.columnFilters.__global__!==!0&&(g.columnFilters.__global__=!1)}}const f=m=>{for(let g=0;g<a.length;g++)if(m.columnFilters[a[g]]===!1)return!1;return!0};return iR(e.rows,f,n)},{key:!1,debug:()=>{var e;return(e=n.options.debugAll)!=null?e:n.options.debugTable},onChange:()=>{n._autoResetPageIndex()}})}function aR(){return(n,e)=>Re(()=>[n.getPreFilteredRowModel(),n.getState().columnFilters,n.getState().globalFilter,n.getFilteredRowModel()],(t,r,i)=>{if(!t.rows.length||!(r!=null&&r.length)&&!i)return t;const s=[...r.map(o=>o.id).filter(o=>o!==e),i?"__global__":void 0].filter(Boolean),a=o=>{for(let l=0;l<s.length;l++)if(o.columnFilters[s[l]]===!1)return!1;return!0};return iR(t.rows,a,n)},{key:!1,debug:()=>{var t;return(t=n.options.debugAll)!=null?t:n.options.debugTable},onChange:()=>{}})}function oR(){return(n,e)=>Re(()=>{var t;return[(t=n.getColumn(e))==null?void 0:t.getFacetedRowModel()]},t=>{if(!t)return new Map;let r=new Map;for(let s=0;s<t.flatRows.length;s++){const a=t.flatRows[s].getUniqueValues(e);for(let o=0;o<a.length;o++){const l=a[o];if(r.has(l)){var i;r.set(l,((i=r.get(l))!=null?i:0)+1)}else r.set(l,1)}}return r},{key:!1,debug:()=>{var t;return(t=n.options.debugAll)!=null?t:n.options.debugTable},onChange:()=>{}})}function lR(){return(n,e)=>Re(()=>{var t;return[(t=n.getColumn(e))==null?void 0:t.getFacetedRowModel()]},t=>{var r;if(!t)return;const i=(r=t.flatRows[0])==null?void 0:r.getUniqueValues(e);if(typeof i>"u")return;let s=[i,i];for(let a=0;a<t.flatRows.length;a++){const o=t.flatRows[a].getUniqueValues(e);for(let l=0;l<o.length;l++){const u=o[l];u<s[0]?s[0]=u:u>s[1]&&(s[1]=u)}}return s},{key:!1,debug:()=>{var t;return(t=n.options.debugAll)!=null?t:n.options.debugTable},onChange:()=>{}})}function Ol(){return n=>Re(()=>[n.getState().sorting,n.getPreSortedRowModel()],(e,t)=>{if(!t.rows.length||!(e!=null&&e.length))return t;const r=n.getState().sorting,i=[],s=r.filter(l=>{var u;return(u=n.getColumn(l.id))==null?void 0:u.getCanSort()}),a={};s.forEach(l=>{const u=n.getColumn(l.id);u&&(a[l.id]={sortUndefined:u.columnDef.sortUndefined,invertSorting:u.columnDef.invertSorting,sortingFn:u.getSortingFn()})});const o=l=>{const u=l.map(h=>({...h}));return u.sort((h,f)=>{for(let g=0;g<s.length;g+=1){var m;const y=s[g],v=a[y.id],x=(m=y==null?void 0:y.desc)!=null?m:!1;let _=0;if(v.sortUndefined){const S=h.getValue(y.id),w=f.getValue(y.id),k=S===void 0,P=w===void 0;(k||P)&&(_=k&&P?0:k?v.sortUndefined:-v.sortUndefined)}if(_===0&&(_=v.sortingFn(h,f,y.id)),_!==0)return x&&(_*=-1),v.invertSorting&&(_*=-1),_}return h.index-f.index}),u.forEach(h=>{var f;i.push(h),(f=h.subRows)!=null&&f.length&&(h.subRows=o(h.subRows))}),u};return{rows:o(t.rows),flatRows:i,rowsById:t.rowsById}},{key:!1,debug:()=>{var e;return(e=n.options.debugAll)!=null?e:n.options.debugTable},onChange:()=>{n._autoResetPageIndex()}})}function G8(n){const e=[],t=r=>{var i;e.push(r),(i=r.subRows)!=null&&i.length&&r.getIsExpanded()&&r.subRows.forEach(t)};return n.rows.forEach(t),{rows:e,flatRows:n.flatRows,rowsById:n.rowsById}}function Al(n){return e=>Re(()=>[e.getState().pagination,e.getPrePaginationRowModel(),e.options.paginateExpandedRows?void 0:e.getState().expanded],(t,r)=>{if(!r.rows.length)return r;const{pageSize:i,pageIndex:s}=t;let{rows:a,flatRows:o,rowsById:l}=r;const u=i*s,h=u+i;a=a.slice(u,h);let f;e.options.paginateExpandedRows?f={rows:a,flatRows:o,rowsById:l}:f=G8({rows:a,flatRows:o,rowsById:l}),f.flatRows=[];const m=g=>{f.flatRows.push(g),g.subRows.length&&g.subRows.forEach(m)};return f.rows.forEach(m),f},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable}})}/** 94 * react-table 95 * 96 * Copyright (c) TanStack 97 * 98 * This source code is licensed under the MIT license found in the 99 * LICENSE.md file in the root directory of this source tree. 100 * 101 * @license MIT 102 */function nr(n,e){return n?X8(n)?E.createElement(n,e):n:null}function X8(n){return q8(n)||typeof n=="function"||K8(n)}function q8(n){return typeof n=="function"&&(()=>{const e=Object.getPrototypeOf(n);return e.prototype&&e.prototype.isReactComponent})()}function K8(n){return typeof n=="object"&&typeof n.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(n.$$typeof.description)}function jl(n){const e={state:{},onStateChange:()=>{},renderFallbackValue:null,...n},[t]=E.useState(()=>({current:H8(e)})),[r,i]=E.useState(()=>t.current.initialState);return t.current.setOptions(s=>({...s,...n,state:{...r,...n.state},onStateChange:a=>{i(a),n.onStateChange==null||n.onStateChange(a)}})),t.current}function Li(n){return Number(n)!==n}function Q8(n){return{}.toString.call(n)}function dr(n){if(n!=null&&!q(n)){let e=Number(n);return Li(e)&&qu(n)&&n!=""?dr(n.replace(/[^0-9.\-]+/g,"")):e}return n}function Z8(n){if(K0(n))return new Date(n);if(q(n))return new Date(n);{let e=Number(n);return q(e)?new Date(e):new Date(n)}}function J8(n){if(Li(n))return"NaN";if(n===1/0)return"Infinity";if(n===-1/0)return"-Infinity";if(n===0&&1/n===-1/0)return"-0";let e=n<0;n=Math.abs(n);let t=/^([0-9]+)(?:\.([0-9]+))?(?:e[\+\-]([0-9]+))?$/.exec(""+n),r=t[1],i=t[2]||"",s;if(t[3]===void 0)s=i===""?r:r+"."+i;else{let a=+t[3];if(n<1){let o=a-1;s="0."+QC("0",o)+r+i}else{let o=a-i.length;o===0?s=r+i:o<0?s=r+i.slice(0,o)+"."+i.slice(o):s=r+i+QC("0",o)}}return e?"-"+s:s}function QC(n,e){return new Array(e+1).join(n)}function K0(n){return Q8(n)==="[object Date]"}function qu(n){return typeof n=="string"}function q(n){return typeof n=="number"&&Number(n)==n}function Xf(n){return typeof n=="object"&&n!==null}function e7(n){return Array.isArray(n)}const ao="__§§§__",xu="__§§§§__";function lf(n,e){const t=n.length;for(let r=0;r<t;++r)if(n[r]===e)return r;return-1}function t7(n,e){const t=n.length;for(let r=0;r<t;++r)if(e(n[r]))return!0;return!1}function Q0(n,e){const t=n.length,r=new Array(t);for(let i=0;i<t;++i)r[i]=e(n[i],i);return r}function Y(n,e){const t=n.length;for(let r=0;r<t;++r)e(n[r],r)}function Rd(n,e){let t=n.length;for(;t>0;
102)--t,e(n[t],t)}function uR(n,e){const t=n.length;for(let r=0;r<t&&e(n[r],r);++r);}function oi(n,e){let t=!1,r=0;for(;;){if(r=n.indexOf(e,r),r===-1)return t;t=!0,n.splice(r,1)}}function Jn(n,e){let t=n.indexOf(e);return t!==-1?(n.splice(t,1),!0):!1}function ZC(n,e,t){let r=lf(n,e);r!==-1&&J0(n,r),t==null?n.push(e):ag(n,t,e)}function uf(n,e){n.indexOf(e)===-1&&n.push(e)}function Z0(n){const e=n.length,t=new Array(e);for(let r=0;r<e;++r)t[r]=n[r];return t}function ag(n,e,t){n.splice(e,0,t)}function J0(n,e){n.splice(e,1)}function cR(n,e){const t=n.length;for(let r=0;r<t;++r)if(e(n[r],r))return r;return-1}function n7(n,e){let t=n.length;for(;t>0;)if(--t,e(n[t],t))return t;return-1}function dR(n,e){const t=cR(n,e);if(t!==-1)return n[t]}function r7(n,e){const t=n7(n,e);if(t!==-1)return n[t]}function ex(n,e){let t=0,r=n.length,i=!1;for(;t<r;){const s=t+r>>1,a=e(n[s]);a<0?t=s+1:a===0?(i=!0,t=s+1):r=s}return{found:i,index:i?t-1:t}}function fR(n,e){let t=0,r=n.length,i=!1;for(;t<r;){const s=t+r>>1,a=e(n[s]);a<0?t=s+1:(a===0&&(i=!0),r=s)}return{found:i,index:t}}function iv(n,e){let t=n.length;for(;t>0;)--t,e(n[t])||n.splice(t,1)}class e1{constructor(){Object.defineProperty(this,"_disposed",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._disposed=!1}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._dispose())}}class gn{constructor(e){Object.defineProperty(this,"_disposed",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_dispose",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._disposed=!1,this._dispose=e}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._dispose())}}class i7 extends e1{constructor(){super(...arguments),Object.defineProperty(this,"_disposers",{enumerable:!0,configurable:!0,writable:!0,value:[]})}_dispose(){Y(this._disposers,e=>{e.dispose()})}}class gr extends e1{constructor(e){super(),Object.defineProperty(this,"_disposers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._disposers=e}_dispose(){Y(this._disposers,e=>{e.dispose()})}get disposers(){return this._disposers}}class hR extends gn{constructor(){super(...arguments),Object.defineProperty(this,"_counter",{enumerable:!0,configurable:!0,writable:!0,value:0})}increment(){return++this._counter,new gn(()=>{--this._counter,this._counter===0&&this.dispose()})}}class xc{constructor(){Object.defineProperty(this,"_listeners",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_killed",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_disabled",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_iterating",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_enabled",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_disposed",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._listeners=[],this._killed=[],this._disabled={},this._iterating=0,this._enabled=!0,this._disposed=!1}isDisposed(){return this._disposed}dispose(){if(!this._disposed){this._disposed=!0;const e=this._listeners;this._iterating=1,this._listeners=null,this._disabled=null;try{Y(e,t=>{t.disposer.dispose()})}finally{this._killed=null,this._iterating=null}}}hasListeners(){return this._listeners.length!==0}hasListenersByType(e){return t7(this._listeners,t=>(t.type===null||t.type===e)&&!t.killed)}enable(){this._enabled=!0}disable(){this._enabled=!1}enableType(e){delete this._disabled[e]}disableType(e,t=1/0){this._disabled[e]=t}_removeListener(e){if(this._iterating===0){const t=this._listeners.indexOf(e);if(t===-1)throw new Error("Invalid state: could not remove listener");this._listeners.splice(t,1)}else this._killed.push(e)}_removeExistingListener(e,t,r,i){if(this._disposed)throw new Error("EventDispatcher is disposed");this._eachListener(s=>{s.once===e&&s.type===t&&(r===void 0||s.callback===r)&&s.context===i&&s.disposer.dispose()})}isEnabled(e){if(this._disposed)throw new Error("EventDispatcher is disposed");return this._enabled&&this._listeners.length>0&&this.hasListenersByType(e)&&this._disabled[e]===void 0}removeType(e){if(this._disposed)throw new Error("EventDispatcher is disposed");this._eachListener(t=>{t.type===e&&t.disposer.dispose()})}has(e,t,r){return cR(this._listeners,s=>
102s.once!==!0&&s.type===e&&(t===void 0||s.callback===t)&&s.context===r)!==-1}_shouldDispatch(e){if(this._disposed)throw new Error("EventDispatcher is disposed");const t=this._disabled[e];return q(t)?(t<=1?delete this._disabled[e]:--this._disabled[e],!1):this._enabled}_eachListener(e){++this._iterating;try{Y(this._listeners,e)}finally{--this._iterating,this._iterating===0&&this._killed.length!==0&&(Y(this._killed,t=>{this._removeListener(t)}),this._killed.length=0)}}dispatch(e,t){this._shouldDispatch(e)&&this._eachListener(r=>{!r.killed&&(r.type===null||r.type===e)&&r.dispatch(e,t)})}_on(e,t,r,i,s,a){if(this._disposed)throw new Error("EventDispatcher is disposed");this._removeExistingListener(e,t,r,i);const o={type:t,callback:r,context:i,shouldClone:s,dispatch:a,killed:!1,once:e,disposer:new gn(()=>{o.killed=!0,this._removeListener(o)})};return this._listeners.push(o),o}onAll(e,t,r=!0){return this._on(!1,null,e,t,r,(i,s)=>e.call(t,s)).disposer}on(e,t,r,i=!0){return this._on(!1,e,t,r,i,(s,a)=>t.call(r,a)).disposer}once(e,t,r,i=!0){const s=this._on(!0,e,t,r,i,(a,o)=>{s.disposer.dispose(),t.call(r,o)});return s.disposer}off(e,t,r){this._removeExistingListener(!1,e,t,r)}copyFrom(e){if(this._disposed)throw new Error("EventDispatcher is disposed");if(e===this)throw new Error("Cannot copyFrom the same TargetedEventDispatcher");const t=[];return Y(e._listeners,r=>{!r.killed&&r.shouldClone&&(r.type===null?t.push(this.onAll(r.callback,r.context)):r.once?t.push(this.once(r.type,r.callback,r.context)):t.push(this.on(r.type,r.callback,r.context)))}),new gr(t)}}function rd(n,e){if(!(n>=0&&n<e))throw new Error("Index out of bounds: "+n)}class wc{constructor(e=[]){Object.defineProperty(this,"_values",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"events",{enumerable:!0,configurable:!0,writable:!0,value:new xc}),this._values=e}get values(){return this._values}contains(e){return this._values.indexOf(e)!==-1}removeValue(e){let t=0,r=this._values.length;for(;t<r;)this._values[t]===e?(this.removeIndex(t),--r):++t}indexOf(e){return lf(this._values,e)}get length(){return this._values.length}hasIndex(e){return e>=0&&e<this._values.length}getIndex(e){return this._values[e]}_onPush(e){this.events.isEnabled("push")&&this.events.dispatch("push",{type:"push",target:this,newValue:e})}_onInsertIndex(e,t){this.events.isEnabled("insertIndex")&&this.events.dispatch("insertIndex",{type:"insertIndex",target:this,index:e,newValue:t})}_onSetIndex(e,t,r){this.events.isEnabled("setIndex")&&this.events.dispatch("setIndex",{type:"setIndex",target:this,index:e,oldValue:t,newValue:r})}_onRemoveIndex(e,t){this.events.isEnabled("removeIndex")&&this.events.dispatch("removeIndex",{type:"removeIndex",target:this,index:e,oldValue:t})}_onMoveIndex(e,t,r){this.events.isEnabled("moveIndex")&&this.events.dispatch("moveIndex",{type:"moveIndex",target:this,oldIndex:e,newIndex:t,value:r})}_onClear(e){this.events.isEnabled("clear")&&this.events.dispatch("clear",{type:"clear",target:this,oldValues:e})}setIndex(e,t){rd(e,this._values.length);const r=this._values[e];return r!==t&&(this._values[e]=t,this._onSetIndex(e,r,t)),r}insertIndex(e,t){return rd(e,this._values.length+1),ag(this._values,e,t),this._onInsertIndex(e,t),t}swap(e,t){const r=this._values.length;if(rd(e,r),rd(t,r),e!==t){const i=this._values[e],s=this._values[t];this._values[e]=s,this._onSetIndex(e,i,s),this._values[t]=i,this._onSetIndex(t,s,i)}}removeIndex(e){rd(e,this._values.length);const t=this._values[e];return J0(this._values,e),this._onRemoveIndex(e,t),t}moveValue(e,t){let r=this.indexOf(e);if(r!==-1)if(J0(this._values,r),t==null){const i=this._values.length;this._values.push(e),this._onMoveIndex(r,i,e)}else ag(this._values,t,e),this._onMoveIndex(r,t,e);else t==null?(this._values.push(e),this._onPush(e)):(ag(this._values,t,e),this._onInsertIndex(t,e));return e}push(e){return this._values.push(e),this._onPush(e),e}unshift(e){return this.insertIndex(0,e),e}pushAll(e){Y(e,t=>{this.push(t)})}copyFrom(e){this.pushAll(e._values)}pop(){return this._values.length-1<0?void 0:this.removeIndex(this._values.length-1)}shift(){return this._values.length?this.removeIndex(0):void 0}setAll(e){const t=this._values;this._values=[],this._onClear(t),Y(e,r=>{this._values.push(r),this._onPush(r)})}clear(){this.setAll([])}*[Symbol.iterator](){const e=this._values.length;for(let t=0;t<e;++t)yield this._values[t]}each(e){Y(this._values,e)}eachReverse(e){Rd(this._values,e)}}class qg extends wc{constructor(){super(...arguments),Object.defineProperty(this,"autoDispose",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"_disposed",{enumerable:!0,configurable:!0,writable:!0,value:!1})}_onSetIndex(e,t,r){this.autoDispose&&t.dispose(),super._onSetIndex(e,t,r)}_onRemoveIndex(e,t){this.autoDispose&&t.dispose(),super._onRemoveIndex(e,t)}_onClear(e){this.autoDispose&&Y(e,t=>{t.dispose()}),super._onClear(e)}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this.autoDispose&&Y(this._values,e=>{e.dispose()}))}}class Nr extends qg{constructor(e,t){super(),Object.defineProperty(this,"template",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"make",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.template=e,this.make=t}}class s7 extends wc{constructor(e){super(),Object.defineProperty(this,"_disposed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_container",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_events",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._container=e,this._events=this.events.onAll(t=>
102{if(t.type==="clear")Y(t.oldValues,r=>{this._onRemoved(r)});else if(t.type==="push")this._onInserted(t.newValue);else if(t.type==="setIndex")this._onRemoved(t.oldValue),this._onInserted(t.newValue,t.index);else if(t.type==="insertIndex")this._onInserted(t.newValue,t.index);else if(t.type==="removeIndex")this._onRemoved(t.oldValue);else if(t.type==="moveIndex")this._onRemoved(t.value),this._onInserted(t.value,t.newIndex);else throw new Error("Unknown IListEvent type")})}_onInserted(e,t){e._setParent(this._container,!0);const r=this._container._childrenDisplay;t===void 0?r.addChild(e._display):r.addChildAt(e._display,t)}_onRemoved(e){this._container._childrenDisplay.removeChild(e._display),this._container.markDirtyBounds(),this._container.markDirty()}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._events.dispose(),Y(this.values,e=>{e.dispose()}))}}class $e{constructor(e){Object.defineProperty(this,"_value",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._value=e}get value(){return this._value/100}get percent(){return this._value}toString(){return""+this._value+"%"}interpolate(e,t){return e+this.value*(t-e)}static normalize(e,t,r){return e instanceof $e?e:t===r?new $e(0):new $e(Math.min(Math.max((e-t)*(1/(r-t)),0),1)*100)}}function jr(n){return new $e(n)}jr(0);const le=jr(100),He=jr(50);function cn(n,e,t,r){function i(s){return s instanceof t?s:new t(function(a){a(s)})}return new(t||(t=Promise))(function(s,a){function o(h){try{u(r.next(h))}catch(f){a(f)}}function l(h){try{u(r.throw(h))}catch(f){a(f)}}function u(h){h.done?s(h.value):i(h.value).then(o,l)}u((r=r.apply(n,e||[])).next())})}function un(n){return Object.keys(n)}function a7(n,e){return un(n).sort(e)}function Yo(n){return Object.assign({},n)}function gt(n,e){un(n).forEach(t=>{e(t,n[t])})}function o7(n,e){for(let t in n)if(l7(n,t)&&!e(t,n[t]))break}function l7(n,e){return{}.hasOwnProperty.call(n,e)}function u7(n){n.parentNode&&n.parentNode.removeChild(n)}function $t(n,e,t,r){return n.addEventListener(e,t,r||!1),new gn(()=>{n.removeEventListener(e,t,r||!1)})}function pR(n){return $t(window,"resize",e=>{n()})}function Xs(n){switch(n){case"touchevents":return window.hasOwnProperty("TouchEvent");case"pointerevents":return window.hasOwnProperty("PointerEvent");case"mouseevents":return window.hasOwnProperty("MouseEvent");case"wheelevents":return window.hasOwnProperty("WheelEvent");case"keyboardevents":return window.hasOwnProperty("KeyboardEvent")}return!1}function Qy(n){return n.pointerId||0}function c7(){if(document.activeElement&&document.activeElement!=document.body)if(document.activeElement.blur)document.activeElement.blur();else{let n=document.createElement("button");n.style.position="fixed",n.style.top="0px",n.style.left="-10000px",document.body.appendChild(n),n.focus(),n.blur(),document.body.removeChild(n)}}function d7(n){n&&n.focus()}function tx(n){if(Xs("pointerevents"))return n;if(Xs("touchevents"))switch(n){case"pointerover":return"touchstart";case"pointerout":return"touchend";case"pointerleave":return"touchend";case"pointerdown":return"touchstart";case"pointermove":return"touchmove";case"pointerup":return"touchend";case"click":return"click";case"dblclick":return"dblclick"}else if(Xs("mouseevents"))switch(n){case"pointerover":return"mouseover";case"pointerout":return"mouseout";case"pointerleave":return"mouseleave";case"pointerdown":return"mousedown";case"pointermove":return"mousemove";case"pointerup":return"mouseup";case"click":return"click";case"dblclick":return"dblclick"}return n}function nx(n){if(typeof Touch<"u"&&n instanceof Touch)return!0;if(typeof PointerEvent<"u"&&n instanceof PointerEvent&&n.pointerType!=null)switch(n.pointerType){case"touch":case"pen":case 2:return!0;case"mouse":case 4:return!1;default:return!(n instanceof MouseEvent)}else if(n.type!=null&&n.type.match(/^mouse/))return!1;return!0}function vp(n,e,t){n.style[e]=t}function f7(n,e){return n.style[e]}function gR(n){if(n.composedPath){const e=n.composedPath();return e.length===0?null:e[0]}else return n.target}function h7(n,e){let t=e;for(;;){if(n===t)return!0;
102if(t.parentNode===null){if(t.host==null)return!1;t=t.host}else t=t.parentNode}}function t1(n,e){return n.target&&h7(e.root.dom,n.target)}function au(n,e){e?n.style.pointerEvents="auto":n.style.pointerEvents="none"}function p7(){return/apple/i.test(navigator.vendor)&&"ontouchend"in document}function g7(){return p7()?1:void 0}function Vt(n,e){return q(n)?n:n!=null&&q(n.value)&&q(e)?e*n.value:0}function m7(n){let e=(""+n).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return e?Math.max(0,(e[1]?e[1].length:0)-(e[2]?+e[2]:0)):0}function en(n,e=0,t="0"){return typeof n!="string"&&(n=n.toString()),e>n.length?Array(e-n.length+1).join(t)+n:n}function v7(n){return n.replace(/^[\s]*/,"")}function b7(n){return n.replace(/[\s]*$/,"")}function Ou(n){return v7(b7(n))}function y7(n){if(typeof n>"u")return"string";n=n.toLowerCase().replace(/^\[[^\]]*\]/,""),n=n.replace(/\[[^\]]+\]/,""),n=n.trim();let e=n.match(/\/(date|number|duration)$/);return e?e[1]:n==="number"?"number":n==="date"?"date":n==="duration"?"duration":n.match(/[#0]/)?"number":n.match(/[ymwdhnsqaxkzgtei]/)?"date":"string"}function n1(n){return n.replace(/\/(date|number|duration)$/i,"")}function JC(n){return n&&n.replace(/<[^>]*>/g,"")}function eE(n){return n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function tE(n,e=!1){const t=new Date(n.getFullYear(),0,0),r=n.getTime()-t.getTime()+(t.getTimezoneOffset()-n.getTimezoneOffset())*60*1e3,i=1e3*60*60*24;return Math.floor(r/i)}function Kg(n,e=!1){const t=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate())),r=t.getUTCDay()||7;t.setUTCDate(t.getUTCDate()+4-r);const i=new Date(Date.UTC(t.getUTCFullYear(),0,1));return Math.ceil(((t.getTime()-i.getTime())/864e5+1)/7)}function _7(n,e=!1){const t=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate())),r=t.getUTCDay()||7;return t.setUTCDate(t.getUTCDate()+4-r),new Date(Date.UTC(t.getUTCFullYear(),0,1)).getFullYear()}function x7(n,e=!1){const t=Kg(new Date(n.getFullYear(),n.getMonth(),1),e);let r=Kg(n,e);return r==1&&(r=53),r-t+1}function w7(n,e,t=1,r=!1){let i=new Date(e,0,4,0,0,0,0);return r&&i.setUTCFullYear(e),n*7+t-((i.getDay()||7)+3)}function bp(n,e){return n>12?n-=12:n===0&&(n=12),e!=null?n+(e-1):n}function yp(n,e=!1,t=!1,r=!1,i){if(r)return e?"Coordinated Universal Time":"UTC";if(i){const o=n.toLocaleString("en-US",{timeZone:i}),l=n.toLocaleString("en-US",{timeZone:i,timeZoneName:e?"long":"short"});return Ou(l.substr(o.length))}let s=n.toLocaleString("UTC"),a=n.toLocaleString("UTC",{timeZoneName:e?"long":"short"}).substr(s.length);return t===!1&&(a=a.replace(/ (standard|daylight|summer|winter) /i," ")),Ou(a)}function S7(n){const e=new Date(Date.UTC(2012,0,1,0,0,0,0)),t=new Date(e.toLocaleString("en-US",{timeZone:"UTC"}));return(new Date(e.toLocaleString("en-US",{timeZone:n})).getTime()-t.getTime())/6e4*-1}function nE(n){return n.charAt(0).toUpperCase()+n.slice(1)}function mR(n){let e,t,r,i=n.h,s=n.s,a=n.l;if(s==0)e=t=r=a;else{let o=function(f,m,g){return g<0&&(g+=1),g>1&&(g-=1),g<.16666666666666666?f+(m-f)*6*g:g<.5?m:g<.6666666666666666?f+(m-f)*(.6666666666666666-g)*6:f},l=a<.5?a*(1+s):a+s-a*s,u=2*a-l;e=o(u,l,i+1/3),t=o(u,l,i),r=o(u,l,i-1/3)}return{r:Math.round(e*255),g:Math.round(t*255),b:Math.round(r*255)}}function vR(n){let e=n.r/255,t=n.g/255,r=n.b/255,i=Math.max(e,t,r),s=Math.min(e,t,r),a=0,o=0,l=(i+s)/2;if(i===s)a=o=0;else{let u=i-s;switch(o=l>.5?u/(2-i-s):u/(i+s),i){case e:a=(t-r)/u+(t<r?6:0);break;case t:a=(r-e)/u+2;break;case r:a=(e-t)/u+4;break}a/=6}return{h:a,s:o,l}}function D7(n,e){return n&&{r:Math.max(0,Math.min(255,n.r+og(n.r,e))),g:Math.max(0,Math.min(255,n.g+og(n.g,e))),b:Math.max(0,Math.min(255,n.b+og(n.b,e))),a:n.a}}function og(n,e){let t=e>0?255-n:n;return Math.round(t*e)}function k7(n,e){if(n){let t=Math.min(Math.max(n.r,n.g,n.b),230),r=og(t,e);return{r:Math.max(0,Math.min(255,Math.round(n.r+r))),g:Math.max(0,Math.min(255,Math.round(n.g+r))),b:Math.max(0,Math.min(255,Math.round(n.b+r))),a:n.a}}else return n}function rE(n){return(n.r*299+n.g*587+n.b*114)/1e3>=128}function P7(n,e){if(n===void 0||e==1)return n;let t=vR(n);return t.s=e,mR(t)}function C7(n,e={r:255,g:255,b:255},t={r:255,g:255,b:255}){let r=e,i=t;return rE(t)&&(r=t,i=e),rE(n)?i:r}function ht(n,e){return n||(n=[]),[...n,...e].filter((t,r,i)=>i.indexOf(t)===r)}function bR(n,e){return!(!e||n.left!=e.left||n.right!=e.right||n.top!=e.top||n.bottom!=e.bottom)}function yR(n){return n[0]==="#"&&(n=n.substr(1)),n.length==3&&(n=n[0].repeat(2)+n[1].repeat(2)+n[2].repeat(2)),parseInt(n,16)}function E7(n){n=n.replace(/[ ]/g,"");let e=n.match(/^rgb\(([0-9]*),([0-9]*),([0-9]*)\)/i);if(e)e.push("1");else if(e=n.match(/^rgba\(([0-9]*),([0-9]*),([0-9]*),([.0-9]*)\)/i),!e)return 0;let t="";for(let r=1;r<=3;r++){let i=parseInt(e[r]).toString(16);i.length==1&&(i="0"+i),t+=i}return yR(t)}function we(n){return be.fromAny(n)}class be{constructor(e){Object.defineProperty(this,"_hex",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._hex=e|0}get hex(){return this._hex}get r(){return this._hex>>>16}get g(){return this._hex>>8&255}get b(){return this._hex&255}toCSS(e=1){return"rgba("+this.r+", "+this.g+", "+this.b+", "+e+")"}toCSSHex(){return"#"+en(this.r.toString(16),2)+en(this.g.toString(16),2)+en(this.b.toString(16),2)}toHSL(e=1){return vR({r:this.r,g:this.g,b:this.b,a:e})}static fromHSL(e,t,r){const i=mR({h:e,s:t,l:r});return this.fromRGB(i.r,i.g,i.b)}toString(){return this.toCSSHex()}static fromHex(e){return new be(e)}static fromRGB(e,t,r){return new be((r|0)+(t<<8)+(e<<16))}static fromString(e){return new be(yR(e))}static fromCSS(e){return new be(E7(e))}static fromAny(e){if(qu(e)){if(e[0]=="#")return be.fromString(e);if(e.substr(0,3)=="rgb")return be.fromCSS(e)}else{if(q(e))return be.fromHex(e);if(e instanceof be)return be.fromHex(e.hex)}throw new Error("Unknown color syntax: "+e)}static alternative(e,t,r){const i=C7({r:e.r,g:e.g,b:e.b},t?{r:t.r,g:t.g,b:t.b}:void 0,r?{r:r.r,g:r.g,b:r.b}:void 0);return this.fromRGB(i.r,i.g,i.b)}static interpolate(e,t,r,i="rgb"){if(i=="hsl"){const s=t.toHSL(),a=r.toHSL();return be.fromHSL(Fa(e,s.h,a.h),Fa(e,s.s,a.s),Fa(e,s.l,a.l))}else return be.fromRGB(Fa(e,t.r,r.r),Fa(e,t.g,r.g),Fa(e,t.b,r.b))}static lighten(e,t){const r=D7({r:e.r,g:e.g,b:e.b},t);return be.fromRGB(r.r,r.g,r.b)}static brighten(e,t){const r=k7({r:e.r,g:e.g,b:e.b},t);return be.fromRGB(r.r,r.g,r.b)}static saturate(e,t){const r=P7({r:e.r,g:e.g,b:e.b},t);return be.fromRGB(r.r,r.g,r.b)}}function iE(n){return cn(this,void 0,void 0,function*(){if(n!==void 0){const e=[];gt(n,(t,r)=>{e.push(r.waitForStop())}),yield Promise.all(e)}})}function Fa(n,e,t){return e+n*(t-e)}function M7(n,e,t){return n>=1?t:e}function _R(n,e,t){return new $e(Fa(n,e.percent,t.percent))}function T7(n,e,t){return be.interpolate(n,e,t)}function O7(n,e){return typeof n=="number"&&typeof e=="number"?Fa:n instanceof $e&&e instanceof $e?_R:n instanceof be&&e instanceof be?T7:M7}
102const xR=Math.PI,cf=xR/180,Id=180/xR;function An(n,e,t){if(!q(e)||e<=0){let r=Math.round(n);return t&&r-n==.5&&r--,r}else{let r=Math.pow(10,e);return Math.round(n*r)/r}}function A7(n,e){if(!q(e)||e<=0)return Math.ceil(n);{let t=Math.pow(10,e);return Math.ceil(n*t)/t}}function an(n,e,t){return Math.min(Math.max(n,e),t)}function li(n){return Math.sin(cf*n)}function fs(n){return Math.cos(cf*n)}function r1(n){return n=n%360,n<0&&(n+=360),n}function rx(n,e,t,r,i){let s=Number.MAX_VALUE,a=Number.MAX_VALUE,o=-Number.MAX_VALUE,l=-Number.MAX_VALUE,u=[];u.push(Zy(i,t)),u.push(Zy(i,r));let h=Math.min(Math.floor(t/90)*90,Math.floor(r/90)*90),f=Math.max(Math.ceil(t/90)*90,Math.ceil(r/90)*90);for(let m=h;m<=f;m+=90)m>=t&&m<=r&&u.push(Zy(i,m));for(let m=0;m<u.length;m++){let g=u[m];g.x<s&&(s=g.x),g.y<a&&(a=g.y),g.x>o&&(o=g.x),g.y>l&&(l=g.y)}return{left:n+s,top:e+a,right:n+o,bottom:e+l}}function Zy(n,e){return{x:n*fs(e),y:n*li(e)}}function j7(n){const e=n.length;if(e>0){let t=n[0],r=t.left,i=t.top,s=t.right,a=t.bottom;if(e>1)for(let o=1;o<e;o++)t=n[o],r=Math.min(t.left,r),s=Math.max(t.right,s),i=Math.min(t.top,i),a=Math.max(t.bottom,a);return{left:r,right:s,top:i,bottom:a}}return{left:0,right:0,top:0,bottom:0}}function R7(n,e){return n.x>=e.left&&n.y>=e.top&&n.x<=e.right&&n.y<=e.bottom}function sE(n){return n}function ou(n){return n*n*n}function id(n){return function(e){return 1-n(1-e)}}class I7{constructor(e,t){Object.defineProperty(this,"_entity",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_settings",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userSettings",{enumerable:!0,configurable:!0,writable:!0,value:{}}),this._entity=e,this._settings=t,gt(t,r=>{this._userSettings[r]=!0})}get(e,t){const r=this._settings[e];return r!==void 0?r:t}setRaw(e,t){this._settings[e]=t}set(e,t){this._userSettings[e]=!0,this.setRaw(e,t)}remove(e){delete this._userSettings[e],delete this._settings[e]}setAll(e){un(e).forEach(t=>{this.set(t,e[t])})}_eachSetting(e){gt(this._settings,e)}apply(){const e={};e.stateAnimationEasing=!0,e.stateAnimationDuration=!0;const t=this._entity.states.lookup("default");this._eachSetting((r,i)=>{e[r]||(e[r]=!0,this!==t&&(r in t._settings||(t._settings[r]=this._entity.get(r))),this._entity.set(r,i))})}applyAnimate(e){e==null&&(e=this._settings.stateAnimationDuration),e==null&&(e=this.get("stateAnimationDuration",this._entity.get("stateAnimationDuration",0)));let t=this._settings.stateAnimationEasing;t==null&&(t=this.get("stateAnimationEasing",this._entity.get("stateAnimationEasing",ou)));const r=this._entity.states.lookup("default"),i={};i.stateAnimationEasing=!0,i.stateAnimationDuration=!0;const s={};return this._eachSetting((a,o)=>{if(!i[a]){i[a]=!0,this!=r&&(a in r._settings||(r._settings[a]=this._entity.get(a)));const l=this._entity.animate({key:a,to:o,duration:e,easing:t});l&&(s[a]=l)}}),s}}class N7{constructor(e){Object.defineProperty(this,"_states",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_entity",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._entity=e}lookup(e){return this._states[e]}create(e,t){const r=this._states[e];if(r)return r.setAll(t),r;{const i=new I7(this._entity,t);return this._states[e]=i,i}}remove(e){delete this._states[e]}apply(e){const t=this._states[e];t&&t.apply(),this._entity._applyState(e)}applyAnimate(e,t){let r;const i=this._states[e];return i&&(r=i.applyAnimate(t)),this._entity._applyStateAnimated(e,t),r}}class F7{constructor(){Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:"5.6.2"}),Object.defineProperty(this,"licenses",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"entitiesById",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"rootElements",{enumerable:!0,configurable:!0,writable:!0,value:[]})}}const ns=new F7;function hs(n,e){return n===e?0:n<e?-1:1}function wR(n,e,t){const r=n.length,i=e.length,s=Math.min(r,i);for(let a=0;a<s;++a){const o=t(n[a],e[a]);if(o!==0)return o}return hs(r,i)}function aE(n,e){return n===e?0:n<e?-1:1}class L7{constructor(e){Object.defineProperty(this,"_entity",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_callbacks",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_disabled",{enumerable:!0,configurable:!0,writable:!0,value:{}}),this._entity=e}add(e,t){let r=this._callbacks[e];return r===void 0&&(r=this._callbacks[e]=[]),r.push(t),this._entity._markDirtyKey(e),new gn(()=>{Jn(r,t)&&this._entity._markDirtyKey(e)})}remove(e){const t=this._callbacks[e];t!==void 0&&(delete this._callbacks[e],t.length!==0&&this._entity._markDirtyKey(e))}enable(e){this._disabled[e]&&(delete this._disabled[e],this._entity._markDirtyKey(e))}disable(e){this._disabled[e]||(this._disabled[e]=!0,this._entity._markDirtyKey(e))}fold(e,t){if(!this._disabled[e]){const r=this._callbacks[e];if(r!==void 0)for(let i=0,s=r.length;i<s;++i)t=r[i](t,this._entity,e)}return t}}class _p{constructor(e,t,r,i,s,a,o){Object.defineProperty(this,"_animation",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_from",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_to",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_duration",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_easing",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_loops",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_interpolate",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_oldTime",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_time",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_stopped",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_playing",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"events",{enumerable:!0,configurable:!0,writable:!0,value:new xc}),this._animation=e,this._from=t,this._to=r,this._duration=i,this._easing=s,this._loops=a,this._interpolate=O7(t,r),this._oldTime=o}get to(){return this._to}get from(){return this._from}get playing(){return this._playing}get stopped(){return this._stopped}stop(){this._stopped||(this._stopped=!0,this._playing=!1,this.events.isEnabled("stopped")&&this.events.dispatch("stopped",{type:"stopped",target:this}))}pause(){this._playing=!1,this._oldTime=null}play(){!this._stopped&&!this._playing&&(this._playing=!0,this._animation._startAnimation())}get percentage(){return this._time/this._duration}waitForStop(){return new Promise((e,t)=>
102{if(this._stopped)e();else{const r=()=>{i.dispose(),e()},i=this.events.on("stopped",r)}})}_checkEnded(){return this._loops>1?(--this._loops,!1):!0}_run(e){this._oldTime!==null&&(this._time+=e-this._oldTime,this._time>this._duration&&(this._time=this._duration)),this._oldTime=e}_reset(e){this._oldTime=e,this._time=0}_value(e){return this._interpolate(this._easing(e),this._from,this._to)}}let B7=0;class SR{constructor(e){Object.defineProperty(this,"uid",{enumerable:!0,configurable:!0,writable:!0,value:++B7}),Object.defineProperty(this,"_settings",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_privateSettings",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_settingEvents",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_privateSettingEvents",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_prevSettings",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_prevPrivateSettings",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_animatingSettings",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_animatingPrivateSettings",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_playingAnimations",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_disposed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_userProperties",{enumerable:!0,configurable:!0,writable:!0,value:{}}),this._settings=e}_checkDirty(){un(this._settings).forEach(e=>{this._userProperties[e]=!0,this._markDirtyKey(e)})}resetUserSettings(){this._userProperties={}}_runAnimation(e){return this.isDisposed()?!1:(gt(this._animatingSettings,(t,r)=>{if(r._stopped)this._stopAnimation(t);else if(r._playing){r._run(e);const i=r.percentage;i>=1?r._checkEnded()?this.set(t,r._value(1)):(r._reset(e),this._set(t,r._value(1))):this._set(t,r._value(i))}}),gt(this._animatingPrivateSettings,(t,r)=>{if(r._stopped)this._stopAnimationPrivate(t);else if(r._playing){r._run(e);const i=r.percentage;i>=1?r._checkEnded()?this.setPrivate(t,r._value(1)):(r._reset(e),this._setPrivate(t,r._value(1))):this._setPrivate(t,r._value(i))}}),this._playingAnimations!==0)}_markDirtyKey(e){this.markDirty()}_markDirtyPrivateKey(e){this.markDirty()}on(e,t){let r=this._settingEvents[e];return r===void 0&&(r=this._settingEvents[e]=[]),r.push(t),new gn(()=>{Jn(r,t),r.length===0&&delete this._settingEvents[e]})}onPrivate(e,t){let r=this._privateSettingEvents[e];return r===void 0&&(r=this._privateSettingEvents[e]=[]),r.push(t),new gn(()=>{Jn(r,t),r.length===0&&delete this._privateSettingEvents[e]})}getRaw(e,t){const r=this._settings[e];return r!==void 0?r:t}get(e,t){return this.getRaw(e,t)}_sendKeyEvent(e,t){const r=this._settingEvents[e];r!==void 0&&Y(r,i=>{i(t,this,e)})}_sendPrivateKeyEvent(e,t){const r=this._privateSettingEvents[e];r!==void 0&&Y(r,i=>{i(t,this,e)})}_setRaw(e,t,r){this._prevSettings[e]=t,this._sendKeyEvent(e,r)}setRaw(e,t){const r=this._settings[e];this._settings[e]=t,r!==t&&this._setRaw(e,r,t)}_set(e,t){const r=this._settings[e];this._settings[e]=t,r!==t&&(this._setRaw(e,r,t),this._markDirtyKey(e))}_stopAnimation(e){const t=this._animatingSettings[e];t&&(--this._playingAnimations,delete this._animatingSettings[e],t.stop())}set(e,t){return this._set(e,t),this._stopAnimation(e),t}remove(e){e in this._settings&&(this._prevSettings[e]=this._settings[e],delete this._settings[e],this._sendKeyEvent(e,void 0),this._markDirtyKey(e)),this._stopAnimation(e)}removeAll(){Y(un(this._settings),e=>{this.remove(e)})}getPrivate(e,t){const r=this._privateSettings[e];return r!==void 0?r:t}_setPrivateRaw(e,t,r){this._prevPrivateSettings[e]=t,this._sendPrivateKeyEvent(e,r)}setPrivateRaw(e,t){const r=this._privateSettings[e];this._privateSettings[e]=t,r!==t&&this._setPrivateRaw(e,r,t)}_setPrivate(e,t){const r=this._privateSettings[e];this._privateSettings[e]=t,r!==t&&(this._setPrivateRaw(e,r,t),this._markDirtyPrivateKey(e))}_stopAnimationPrivate(e){const t=this._animatingPrivateSettings[e];t&&(--this._playingAnimations,t.stop(),delete this._animatingPrivateSettings[e])}setPrivate(e,t){return this._setPrivate(e,t),this._stopAnimationPrivate(e),t}removePrivate(e){e in this._privateSettings&&(this._prevPrivateSettings[e]=this._privateSettings[e],delete this._privateSettings[e],this._markDirtyPrivateKey(e)),this._stopAnimationPrivate(e)}setAll(e){gt(e,(t,r)=>{this.set(t,r)})}animate(e){const t=e.key,r=e.to,i=e.duration||0,s=e.loops||1,a=e.from===void 0?this.get(t):e.from,o=e.easing===void 0?sE:e.easing;if(i===0)this.set(t,r);else if(a===void 0||a===r)this.set(t,r);else{this.set(t,a);const u=this._animatingSettings[t]=new _p(this,a,r,i,o,s,this._animationTime());return++this._playingAnimations,this._startAnimation(),u}const l=new _p(this,a,r,i,o,s,null);return l.stop(),l}animatePrivate(e){const t=e.key,r=e.to,i=e.duration||0,s=e.loops||1,a=e.from===void 0?this.getPrivate(t):e.from,o=e.easing===void 0?sE:e.easing;if(i===0)this.setPrivate(t,r);else if(a===void 0||a===r)this.setPrivate(t,r);else{this.setPrivate(t,a);const u=this._animatingPrivateSettings[t]=new _p(this,a,r,i,o,s,this._animationTime());return++this._playingAnimations,this._startAnimation(),u}const l=new _p(this,a,r,i,o,s,null);return l.stop(),l}_dispose(){}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._dispose())}}class _n extends SR{constructor(e,t,r,i=[]){if(super(t),Object.defineProperty(this,"_root",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_user_id",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"states",{enumerable:!0,configurable:!0,writable:!0,value:new N7(this)}),Object.defineProperty(this,"adapters",{enumerable:!0,configurable:!0,writable:!0,value:new L7(this)}),Object.defineProperty(this,"events",{enumerable:!0,configurable:!0,writable:!0,value:this._createEvents()}),Object.defineProperty(this,"_userPrivateProperties",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_dirty",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_dirtyPrivate",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_template",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_templates",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_internalTemplates",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_defaultThemes",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_templateDisposers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_disposers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_runSetup",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"_disposerProperties",{enumerable:!0,configurable:!0,writable:!0,value:{}}),!r)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this._root=e,this._internalTemplates=i,t.id&&this._registerId(t.id)}static new(e,t,r){const i=new this(e,t,!0);return i._template=r,i._afterNew(),i}static _new(e,t,r=[]){const i=new this(e,t,!0,r);return i._afterNew(),i}_afterNew(){this._checkDirty();let e=!1;const t=this._template;t&&(e=!0,t._setObjectTemplate(this)),Y(this._internalTemplates,r=>{e=!0,r._setObjectTemplate(this)}),e&&this._applyTemplates(!1),this.states.create("default",{}),this._setDefaults()}_afterNewApplyThemes(){this._checkDirty();const e=this._template;e&&e._setObjectTemplate(this),Y(this._internalTemplates,t=>{t._setObjectTemplate(this)}),this.states.create("default",{}),this._setDefaults(),this._applyThemes()}_createEvents(){return new xc}get classNames(){return this.constructor.classNames}get className(){return this.constructor.className}_setDefaults(){}_setDefault(e,t){e in this._settings||super.set(e,t)}_setRawDefault(e,t){e in this._settings||super.setRaw(e,t)}
102_clearDirty(){un(this._dirty).forEach(e=>{this._dirty[e]=!1}),un(this._dirtyPrivate).forEach(e=>{this._dirtyPrivate[e]=!1})}isDirty(e){return!!this._dirty[e]}isPrivateDirty(e){return!!this._dirtyPrivate[e]}_markDirtyKey(e){this._dirty[e]=!0,super._markDirtyKey(e)}_markDirtyPrivateKey(e){this._dirtyPrivate[e]=!0,super._markDirtyKey(e)}isType(e){return this.classNames.indexOf(e)!==-1}_pushPropertyDisposer(e,t){let r=this._disposerProperties[e];return r===void 0&&(r=this._disposerProperties[e]=[]),r.push(t),t}_disposeProperty(e){const t=this._disposerProperties[e];t!==void 0&&(Y(t,r=>{r.dispose()}),delete this._disposerProperties[e])}set template(e){const t=this._template;t!==e&&(this._template=e,t&&t._removeObjectTemplate(this),e&&e._setObjectTemplate(this),this._applyTemplates())}get template(){return this._template}markDirty(){this._root._addDirtyEntity(this)}_startAnimation(){this._root._addAnimation(this)}_animationTime(){return this._root.animationTime}_applyState(e){}_applyStateAnimated(e,t){}get(e,t){const r=this.adapters.fold(e,this._settings[e]);return r!==void 0?r:t}isUserSetting(e){return this._userProperties[e]||!1}set(e,t){return this._userProperties[e]=!0,super.set(e,t)}setRaw(e,t){this._userProperties[e]=!0,super.setRaw(e,t)}_setSoft(e,t){return this._userProperties[e]?t:super.set(e,t)}remove(e){delete this._userProperties[e],this._removeTemplateProperty(e)}setPrivate(e,t){return this._userPrivateProperties[e]=!0,super.setPrivate(e,t)}setPrivateRaw(e,t){this._userPrivateProperties[e]=!0,super.setPrivateRaw(e,t)}removePrivate(e){delete this._userPrivateProperties[e],this._removeTemplatePrivateProperty(e)}_setTemplateProperty(e,t,r){if(!this._userProperties[t]){const i=this._findTemplateByKey(t);e===i&&super.set(t,r)}}_setTemplatePrivateProperty(e,t,r){if(!this._userPrivateProperties[t]){const i=this._findTemplateByPrivateKey(t);e===i&&super.setPrivate(t,r)}}_removeTemplateProperty(e){if(!this._userProperties[e]){const t=this._findTemplateByKey(e);t?super.set(e,t._settings[e]):super.remove(e)}}_removeTemplatePrivateProperty(e){if(!this._userPrivateProperties[e]){const t=this._findTemplateByPrivateKey(e);t?super.setPrivate(e,t._privateSettings[e]):super.removePrivate(e)}}_walkParents(e){e(this._root._rootContainer),e(this)}_applyStateByKey(e){const t=this.states.create(e,{}),r={};this._eachTemplate(i=>{const s=i.states.lookup(e);s&&s._apply(t,r)}),gt(t._settings,i=>{!r[i]&&!t._userSettings[i]&&t.remove(i)})}_applyTemplate(e,t){this._templateDisposers.push(e._apply(this,t)),gt(e._settings,(r,i)=>{!t.settings[r]&&!this._userProperties[r]&&(t.settings[r]=!0,super.set(r,i))}),gt(e._privateSettings,(r,i)=>{!t.privateSettings[r]&&!this._userPrivateProperties[r]&&(t.privateSettings[r]=!0,super.setPrivate(r,i))}),this._runSetup&&e.setup&&(this._runSetup=!1,e.setup(this))}_findStaticTemplate(e){if(this._template&&e(this._template))return this._template}_eachTemplate(e){this._findStaticTemplate(t=>(e(t),!1)),Rd(this._internalTemplates,e),Y(this._templates,e)}_applyTemplates(e=!0){e&&this._disposeTemplates();const t={settings:{},privateSettings:{},states:{}};this._eachTemplate(r=>{this._applyTemplate(r,t)}),e&&(gt(this._settings,r=>{!this._userProperties[r]&&!t.settings[r]&&super.remove(r)}),gt(this._privateSettings,r=>{!this._userPrivateProperties[r]&&!t.privateSettings[r]&&super.removePrivate(r)}))}_findTemplate(e){const t=this._findStaticTemplate(e);if(t===void 0){const r=r7(this._internalTemplates,e);return r===void 0?dR(this._templates,e):r}else return t}_findTemplateByKey(e){return this._findTemplate(t=>e in t._settings)}_findTemplateByPrivateKey(e){return this._findTemplate(t=>e in t._privateSettings)}_disposeTemplates(){Y(this._templateDisposers,e=>{e.dispose()}),this._templateDisposers.length=0}_removeTemplates(){Y(this._templates,e=>{e._removeObjectTemplate(this)}),this._templates.length=0}_applyThemes(e=!1){let t=!1;const r=[];let i=[];const s=new Set,a=this.get("themeTagsSelf");return a&&Y(a,o=>{s.add(o)}),this._walkParents(o=>{o===this._root._rootContainer&&(t=!0),o._defaultThemes.length>0&&r.push(o._defaultThemes);const l=o.get("themes");l&&i.push(l);const u=o.get("themeTags");u&&Y(u,h=>{s.add(h)})}),i=r.concat(i),this._removeTemplates(),(t||e)&&Rd(this.classNames,o=>{const l=[];Y(i,u=>{Y(u,h=>{const f=h._lookupRules(o);f&&Rd(f,m=>{if(m.tags.every(y=>s.has(y))){const y=fR(l,v=>{const x=hs(m.tags.length,v.tags.length);return x===0?wR(m.tags,v.tags,hs):x});l.splice(y.index,0,m)}})})}),Y(l,u=>{this._templates.push(u.template),u.template._setObjectTemplate(this)})}),this._applyTemplates(),(t||e)&&(this._runSetup=!1),t||e}_changed(){}_beforeChanged(){if(this.isDirty("id")){const e=this.get("id");e&&this._registerId(e);const t=this._prevSettings.id;t&&delete ns.entitiesById[t]}}_registerId(e){if(ns.entitiesById[e]&&ns.entitiesById[e]!==this)throw new Error('An entity with id "'+e+'" already exists.');ns.entitiesById[e]=this}_afterChanged(){}addDisposer(e){return this._disposers.push(e),e}_dispose(){super._dispose();const e=this._template;e&&e._removeObjectTemplate(this),Y(this._internalTemplates,r=>{r._removeObjectTemplate(this)}),this._removeTemplates(),this._disposeTemplates(),this.events.dispose(),this._disposers.forEac
102h(r=>{r.dispose()}),gt(this._disposerProperties,(r,i)=>{Y(i,s=>{s.dispose()})});const t=this.get("id");t&&delete ns.entitiesById[t]}setTimeout(e,t){const r=setTimeout(()=>{this.removeDispose(i),e()},t),i=new gn(()=>{clearTimeout(r)});return this._disposers.push(i),i}removeDispose(e){if(!this.isDisposed()){let t=lf(this._disposers,e);t>-1&&this._disposers.splice(t,1)}e.dispose()}hasTag(e){return lf(this.get("themeTags",[]),e)!==-1}addTag(e){if(!this.hasTag(e)){const t=this.get("themeTags",[]);t.push(e),this.set("themeTags",t)}}removeTag(e){if(this.hasTag(e)){const t=this.get("themeTags",[]);oi(t,e),this.set("themeTags",t)}}_t(e,t,...r){return this._root.language.translate(e,t,...r)}get root(){return this._root}}Object.defineProperty(_n,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Entity"});Object.defineProperty(_n,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:["Entity"]});class $7{constructor(e,t,r){Object.defineProperty(this,"_settings",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_name",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_template",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._name=e,this._template=t,this._settings=r}get(e,t){const r=this._settings[e];return r!==void 0?r:t}set(e,t){this._settings[e]=t,this._template._stateChanged(this._name)}remove(e){delete this._settings[e],this._template._stateChanged(this._name)}setAll(e){un(e).forEach(t=>{this._settings[t]=e[t]}),this._template._stateChanged(this._name)}_apply(e,t){gt(this._settings,(r,i)=>{!t[r]&&!e._userSettings[r]&&(t[r]=!0,e.setRaw(r,i))})}}class V7{constructor(e){Object.defineProperty(this,"_template",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_states",{enumerable:!0,configurable:!0,writable:!0,value:{}}),this._template=e}lookup(e){return this._states[e]}create(e,t){const r=this._states[e];if(r)return r.setAll(t),r;{const i=new $7(e,this._template,t);return this._states[e]=i,this._template._stateChanged(e),i}}remove(e){delete this._states[e],this._template._stateChanged(e)}_apply(e,t){gt(this._states,(r,i)=>{let s=t.states[r];s==null&&(s=t.states[r]={});const a=e.states.create(r,{});i._apply(a,s)})}}class Y7{constructor(){Object.defineProperty(this,"_callbacks",{enumerable:!0,configurable:!0,writable:!0,value:{}})}add(e,t){let r=this._callbacks[e];return r===void 0&&(r=this._callbacks[e]=[]),r.push(t),new gn(()=>{Jn(r,t),r.length===0&&delete this._callbacks[e]})}remove(e){this._callbacks[e]!==void 0&&delete this._callbacks[e]}_apply(e){const t=[];return gt(this._callbacks,(r,i)=>{Y(i,s=>{t.push(e.adapters.add(r,s))})}),new gr(t)}}class Gt{constructor(e,t){if(Object.defineProperty(this,"_settings",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_privateSettings",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_settingEvents",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_privateSettingEvents",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_entities",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"states",{enumerable:!0,configurable:!0,writable:!0,value:new V7(this)}),Object.defineProperty(this,"adapters",{enumerable:!0,configurable:!0,writable:!0,value:new Y7}),Object.defineProperty(this,"events",{enumerable:!0,configurable:!0,writable:!0,value:new xc}),Object.defineProperty(this,"setup",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),!t)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this._settings=e}static new(e){return new Gt(e,!0)}get entities(){return this._entities}get(e,t){const r=this._settings[e];return r!==void 0?r:t}setRaw(e,t){this._settings[e]=t}set(e,t){this._settings[e]!==t&&(this.setRaw(e,t),this._entities.forEach(r=>{r._setTemplateProperty(this,e,t)}))}remove(e){e in this._settings&&(delete this._settings[e],this._entities.forEach(t=>{t._removeTemplateProperty(e)}))}removeAll(){gt(this._settings,(e,t)=>{this.remove(e)})}getPrivate(e,t){const r=this._privateSettings[e];return r!==void 0?r:t}setPrivateRaw(e,t){return this._privateSettings[e]=t,t}setPrivate(e,t){return this._privateSettings[e]!==t&&(this.setPrivateRaw(e,t),this._entities.forEac
102h(r=>{r._setTemplatePrivateProperty(this,e,t)})),t}removePrivate(e){e in this._privateSettings&&(delete this._privateSettings[e],this._entities.forEach(t=>{t._removeTemplatePrivateProperty(e)}))}setAll(e){gt(e,(t,r)=>{this.set(t,r)})}on(e,t){let r=this._settingEvents[e];return r===void 0&&(r=this._settingEvents[e]=[]),r.push(t),new gn(()=>{Jn(r,t),r.length===0&&delete this._settingEvents[e]})}onPrivate(e,t){let r=this._privateSettingEvents[e];return r===void 0&&(r=this._privateSettingEvents[e]=[]),r.push(t),new gn(()=>{Jn(r,t),r.length===0&&delete this._privateSettingEvents[e]})}_apply(e,t){const r=[];return gt(this._settingEvents,(i,s)=>{Y(s,a=>{r.push(e.on(i,a))})}),gt(this._privateSettingEvents,(i,s)=>{Y(s,a=>{r.push(e.onPrivate(i,a))})}),this.states._apply(e,t),r.push(this.adapters._apply(e)),r.push(e.events.copyFrom(this.events)),new gr(r)}_setObjectTemplate(e){this._entities.push(e)}_removeObjectTemplate(e){oi(this._entities,e)}_stateChanged(e){this._entities.forEach(t=>{t._applyStateByKey(e)})}}class sv extends xc{constructor(e){super(),Object.defineProperty(this,"_sprite",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_rendererDisposers",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_dispatchParents",{enumerable:!0,configurable:!0,writable:!0,value:!0}),this._sprite=e}_makePointerEvent(e,t){return{type:e,originalEvent:t.event,point:t.point,simulated:t.simulated,native:t.native,target:this._sprite}}_onRenderer(e,t){this._sprite.set("interactive",!0),this._sprite._display.interactive=!0;let r=this._rendererDisposers[e];if(r===void 0){const i=this._sprite._display.on(e,s=>{t.call(this,s)});r=this._rendererDisposers[e]=new hR(()=>{delete this._rendererDisposers[e],i.dispose()})}return r.increment()}_on(e,t,r,i,s,a){const o=super._on(e,t,r,i,s,a),l=sv.RENDERER_EVENTS[t];return l!==void 0&&(o.disposer=new gr([o.disposer,this._onRenderer(t,l)])),o}stopParentDispatch(){this._dispatchParents=!1}dispatchParents(e,t){const r=this._dispatchParents;this._dispatchParents=!0;try{this.dispatch(e,t),this._dispatchParents&&this._sprite.parent&&this._sprite.parent.events.dispatchParents(e,t)}finally{this._dispatchParents=r}}}Object.defineProperty(sv,"RENDERER_EVENTS",{enumerable:!0,configurable:!0,writable:!0,value:{click:function(n){this.isEnabled("click")&&!this._sprite.isDragging()&&this._sprite._hasDown()&&!this._sprite._hasMoved(this._makePointerEvent("click",n))&&this.dispatch("click",this._makePointerEvent("click",n))},rightclick:function(n){this.isEnabled("rightclick")&&this.dispatch("rightclick",this._makePointerEvent("rightclick",n))},middleclick:function(n){this.isEnabled("middleclick")&&this.dispatch("middleclick",this._makePointerEvent("middleclick",n))},dblclick:function(n){this.dispatchParents("dblclick",this._makePointerEvent("dblclick",n))},pointerover:function(n){const e=this._sprite;let t=!0;if(e.getPrivate("trustBounds")){e._getBounds();const r=e.globalBounds();R7(n.point,r)||(t=!1,e._root._renderer.removeHovering(e._display))}t&&this.isEnabled("pointerover")&&this.dispatch("pointerover",this._makePointerEvent("pointerover",n))},pointerout:function(n){this.isEnabled("pointerout")&&this.dispatch("pointerout",this._makePointerEvent("pointerout",n))},pointerdown:function(n){this.dispatchParents("pointerdown",this._makePointerEvent("pointerdown",n))},pointerup:function(n){this.isEnabled("pointerup")&&this.dispatch("pointerup",this._makePointerEvent("pointerup",n))},globalpointerup:function(n){this.isEnabled("globalpointerup")&&this.dispatch("globalpointerup",this._makePointerEvent("globalpointerup",n))},globalpointermove:function(n){this.isEnabled("globalpointermove")&&this.dispatch("globalpointermove",this._makePointerEvent("globalpointermove",n))},wheel:function(n){this.dispatchParents("wheel",{type:"wheel",target:this._sprite,originalEvent:n.event,point:n.point})}}});class Bi extends _n{constructor(){super(...arguments),Object.defineProperty(this,"_adjustedLocalBounds",{enumerable:!0,configurable:!0,writable:!0,value:{left:0,right:0,top:0,bottom:0}}),Object.defineProperty(this,"_localBounds",{enumerable:!0,configurable:!0,writable:!0,value:{left:0,right:0,top:0,bottom:0}}),Object.defineProperty(this,"_parent",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_dataItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_templateField",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_sizeDirty",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_isDragging",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_dragEvent",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_dragPoint",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_isHidden",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_isShowing",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_isHiding",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_isDown",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_downPoint",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_downPoints",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_toggleDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_dragDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_tooltipDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_hoverDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_focusDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_tooltipMoveDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_tooltipPointerDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_statesHandled",{enumerable:!0,configurable:!0,writable:!0,value:!1})}_afterNew(){this.setPrivateRaw("visible",!0),super._afterNew()}_markDirtyKey(e){super._markDirtyKey(e),(e=="x"||e=="y"||e=="dx"||e=="dy")&&(this.markDirtyBounds(),this._addPercentagePositionChildren(),this.markDirtyPosition())}_markDirtyPrivateKey(e){super._markDirtyPrivateKey(e),(e=="x"||e=="y")&&this.markDirtyPosition()}_removeTemplateField(){this._templateField&&this._templateField._removeObjectTemplate(this)}_createEvents(){return new sv(this)}_processTemplateField(){let e;const t=this.get("templateField");if(t){const r=this.dataItem;if(r){const i=r.dataContext;i&&(e=i[t],!(e instanceof Gt)&&e&&(e=Gt.new(e)))}}this._templateField!==e&&(this._removeTemplateField(),this._templateField=e,e&&e._setObjectTemplate(this),this._applyTemplates())}_setDataItem(e){const t=this._dataItem;this._dataItem=e,this._processTemplateField();const r="dataitemchanged";e!=t&&this.events.isEnabled(r)&&this.events.dispatch(r,{type:r,target:this,oldDataItem:t,newDataItem:e})}set dataItem(e){this._setDataItem(e)}get dataItem(){if(this._dataItem)return this._dataItem;{let e=this._parent;for(;e;){if(e._dataItem)return e._dataItem;e=e._parent}}}_addPercentageSizeChildren(){let e=this.parent;e&&(this.get("width")instanceof $e||this.get("height")instanceof $e?uf(e._percentageSizeChildren,this):Jn(e._percentageSizeChildren,this))}_addPercentagePositionChildren(){let e=this.parent;e&&(this.get("x")instanceof $e||this.get("y")instanceof $e?uf(e._percentagePositionChildren,this):Jn(e._percentagePositionChildren,this))}markDirtyPosition(){this._root._addDirtyPosition(this)}updatePivotPoint(){const e=this._localBounds;if(e){const t=this.get("centerX");t!=null&&(this._display.pivot.x=e.left+Vt(t,e.right-e.left));const r=this.get("centerY");r!=null&&(this._display.pivot.y=e.top+Vt(r,e.bottom-e.top))}}_beforeChanged(){if(super._beforeChanged(),this._handleStates(),this.isDirty("tooltip")){const e=this._prevSettings.tooltip;e&&e.dispose()}if((this.isDirty("layer")||this.isDirty("layerMargin"))&&(this._display.setLayer(this.get("layer"),this.get("layerMargin")),this.markDirtyLayer()),this.isDirty("tooltipPosition")){const e=this._tooltipMoveDp;
102e&&(e.dispose(),this._tooltipMoveDp=void 0);const t=this._tooltipPointerDp;t&&(t.dispose(),this._tooltipPointerDp=void 0),this.get("tooltipPosition")=="pointer"&&(this.isHover()&&(this._tooltipMoveDp=this.events.on("globalpointermove",r=>{this.showTooltip(r.point)})),this._tooltipPointerDp=new gr([this.events.on("pointerover",()=>{this._tooltipMoveDp=this.events.on("globalpointermove",r=>{this.showTooltip(r.point)})}),this.events.on("pointerout",()=>{const r=this._tooltipMoveDp;r&&(r.dispose(),this._tooltipMoveDp=void 0)})]))}}_handleStates(){this._statesHandled||(this.isDirty("active")&&(this.get("active")?(this.states.applyAnimate("active"),this.set("ariaChecked",!0)):(this.isHidden()||this.states.applyAnimate("default"),this.set("ariaChecked",!1)),this.markDirtyAccessibility()),this.isDirty("disabled")&&(this.get("disabled")?(this.states.applyAnimate("disabled"),this.set("ariaChecked",!1)):(this.isHidden()||this.states.applyAnimate("default"),this.set("ariaChecked",!0)),this.markDirtyAccessibility()),this._statesHandled=!0)}_changed(){super._changed();const e=this._display,t=this.events;if(this.isDirty("draggable")){const i=this.get("draggable");i?(this.set("interactive",!0),this._dragDp=new gr([t.on("pointerdown",s=>{this.dragStart(s)}),t.on("globalpointermove",s=>{this.dragMove(s)}),t.on("globalpointerup",s=>{this.dragStop(s)})])):this._dragDp&&(this._dragDp.dispose(),this._dragDp=void 0),e.cancelTouch=!!i}if(this.isDirty("tooltipText")||this.isDirty("tooltipHTML")||this.isDirty("showTooltipOn")){const i=this.get("tooltipText"),s=this.get("tooltipHTML"),a=this.get("showTooltipOn","hover");this._tooltipDp&&(this._tooltipDp.dispose(),this._tooltipDp=void 0),(i||s)&&(a=="click"?(this._tooltipDp=new gr([t.on("click",()=>{this.setTimeout(()=>this.showTooltip(),10)}),$t(document,"click",o=>{this.hideTooltip()})]),this._disposers.push(this._tooltipDp)):a=="always"||(this._tooltipDp=new gr([t.on("pointerover",()=>{this.showTooltip()}),t.on("pointerout",()=>{this.hideTooltip()})]),this._disposers.push(this._tooltipDp)))}if(this.isDirty("toggleKey")){let i=this.get("toggleKey");i&&i!="none"?this._toggleDp=t.on("click",()=>{this._isDragging||this.set(i,!this.get(i))}):this._toggleDp&&(this._toggleDp.dispose(),this._toggleDp=void 0)}if(this.isDirty("opacity")&&(e.alpha=Math.max(0,this.get("opacity",1)),this.get("focusable")&&this.markDirtyAccessibility()),this.isDirty("rotation")&&(this.markDirtyBounds(),e.angle=this.get("rotation",0)),this.isDirty("scale")&&(this.markDirtyBounds(),e.scale=this.get("scale",0)),(this.isDirty("centerX")||this.isDirty("centerY"))&&(this.markDirtyBounds(),this.updatePivotPoint()),(this.isDirty("visible")||this.isPrivateDirty("visible")||this.isDirty("forceHidden"))&&(!this.get("visible")||!this.getPrivate("visible")||this.get("forceHidden")?(e.visible=!1,this.hideTooltip()):e.visible=!0,this.markDirtyBounds(),this.get("focusable")&&this.markDirtyAccessibility()),this.isDirty("width")||this.isDirty("height")){this.markDirtyBounds(),this._addPercentageSizeChildren();const i=this.parent;i&&(this.isDirty("width")&&this.get("width")instanceof $e||this.isDirty("height")&&this.get("height")instanceof $e)&&(i.markDirty(),i._prevWidth=0),this._sizeDirty=!0}if((this.isDirty("maxWidth")||this.isDirty("maxHeight")||this.isPrivateDirty("width")||this.isPrivateDirty("height")||this.isDirty("minWidth")||this.isDirty("minHeight")||this.isPrivateDirty("maxWidth")||this.isPrivateDirty("maxHeight")||this.isPrivateDirty("minWidth")||this.isPrivateDirty("minHeight"))&&(this.markDirtyBounds(),this._sizeDirty=!0),this._sizeDirty&&this._updateSize(),this.isDirty("wheelable")){const i=this.get("wheelable");i&&this.set("interactive",!0),e.wheelable=!!i}(this.isDirty("tabindexOrder")||this.isDirty("focusableGroup"))&&(this.get("focusable")?this._root._registerTabindexOrder(this):this._root._unregisterTabindexOrder(this)),this.isDirty("filter")&&(e.filter=this.get("filter"));let r=this.get("filter","");if(this.isDirty("blur")){const i=this.get("blur",0);i!=0&&(r+=" blur("+i+"px)")}if(this.isDirty("saturate")){const i=this.get("saturate",1);i!=1&&(r+=" saturate("+i+")")}if(this.isDirty("brightness")){const i=this.get("brightness",1);i!=1&&(r+=" brightness("+i+")")}if(this.isDirty("contrast")){const i=this.get("contrast",1);i!=1&&(r+=" contrast("+i+")")}if(this.isDirty("sepia")){const i=this.get("sepia",0);i!=0&&(r+=" sepia("+i+")")}if(this.isDirty("hue")){const i=this.get("hue",0);i!=0&&(r+=" hue-rotate("+i+"deg)")}if(this.isDirty("invert")){const i=this.get("invert",0);i!=0&&(r+=" invert("+i+")")}if(r&&(e.filter=r),this.isDirty("cursorOverStyle")&&(e.cursorOverStyle=this.get("cursorOverStyle")),this.isDirty("hoverOnFocus")&&(this.get("hoverOnFocus")?this._focusDp=new gr([t.on("focus",()=>{this.showTooltip()}),t.on("blur",()=>{this.hideTooltip()})]):this._focusDp&&(this._focusDp.dispose(),this._focusDp=void 0)),this.isDirty("focusable")&&(this.get("focusable")?this._root._registerTabindexOrder(this):this._root._unregisterTabindexOrder(this),this.markDirtyAccessibility()),this.isPrivateDirty("focusable")&&this.markDirtyAccessibility(),(this.isDirty("role")||this.isDirty("ariaLive")||this.isDirty("ariaChecked")||this.isDirty("ariaHidden")||this.isDirty("ariaOrientation")||this.isDirty("ariaValueNow")||this.isDirty("ariaValueMin")||this.isDirty("ariaValueMax")||this.isDirty("ariaValueText")||this.isDirty("ariaLabel")||this.isDirty("ariaControl
102s"))&&this.markDirtyAccessibility(),this.isDirty("exportable")&&(e.exportable=this.get("exportable")),this.isDirty("interactive")){const i=this.events;this.get("interactive")?this._hoverDp=new gr([i.on("click",s=>{nx(s.originalEvent)&&(this.getPrivate("touchHovering")||this.setTimeout(()=>{this._handleOver(),(this.get("tooltipText")||this.get("tooltipHTML"))&&this.showTooltip(),this.setPrivateRaw("touchHovering",!0),this.events.dispatch("pointerover",{type:"pointerover",target:s.target,originalEvent:s.originalEvent,point:s.point,simulated:s.simulated})},10))}),i.on("globalpointerup",s=>{nx(s.originalEvent)&&this.getPrivate("touchHovering")&&(this._handleOut(),(this.get("tooltipText")||this.get("tooltipHTML"))&&this.hideTooltip(),this.setPrivateRaw("touchHovering",!1),this.events.dispatch("pointerout",{type:"pointerout",target:s.target,originalEvent:s.originalEvent,point:s.point,simulated:s.simulated})),this._isDown&&this._handleUp(s)}),i.on("pointerover",()=>{this._handleOver()}),i.on("pointerout",()=>{this._handleOut()}),i.on("pointerdown",s=>{this._handleDown(s)})]):(this._display.interactive=!1,this._hoverDp&&(this._hoverDp.dispose(),this._hoverDp=void 0))}this.isDirty("forceInactive")&&(this._display.inactive=this.get("forceInactive",null)),this.get("showTooltipOn")=="always"&&this._display.visible&&this.showTooltip()}dragStart(e){this._dragEvent=e,this.events.stopParentDispatch()}dragStop(e){if(this._dragEvent=void 0,this._dragPoint=void 0,this.events.stopParentDispatch(),this._isDragging){this._isDragging=!1;const t="dragstop";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this,originalEvent:e.originalEvent,point:e.point,simulated:e.simulated})}}_handleOver(){this.isHidden()||(this.get("active")&&this.states.lookup("hoverActive")?this.states.applyAnimate("hoverActive"):this.get("disabled")&&this.states.lookup("hoverDisabled")?this.states.applyAnimate("hoverDisabled"):this.states.applyAnimate("hover"),this.get("draggable")&&this._isDown&&this.states.lookup("down")&&this.states.applyAnimate("down"))}_handleOut(){this.isHidden()||(this.get("active")&&this.states.lookup("active")?this.states.applyAnimate("active"):this.get("disabled")&&this.states.lookup("disabled")?this.states.applyAnimate("disabled"):(this.states.lookup("hover")||this.states.lookup("hoverActive"))&&this.states.applyAnimate("default"),this.get("draggable")&&this._isDown&&this.states.lookup("down")&&this.states.applyAnimate("down"))}_handleUp(e){if(!this.isHidden()){this.get("active")&&this.states.lookup("active")?this.states.applyAnimate("active"):this.get("disabled")&&this.states.lookup("disabled")?this.states.applyAnimate("disabled"):this.states.lookup("down")&&(this.isHover()?this.states.applyAnimate("hover"):this.states.applyAnimate("default")),this._downPoint=void 0;const t=Qy(e.originalEvent);delete this._downPoints[t],un(this._downPoints).length==0&&(this._isDown=!1)}}_hasMoved(e){const t=Qy(e.originalEvent),r=this._downPoints[t];if(r){const i=Math.abs(r.x-e.point.x),s=Math.abs(r.y-e.point.y);return i>5||s>5}return!1}_hasDown(){return un(this._downPoints).length>0}_handleDown(e){const t=this.parent;if(t&&!this.get("draggable")&&t._handleDown(e),this.get("interactive")&&!this.isHidden()){this.states.lookup("down")&&this.states.applyAnimate("down"),this._downPoint={x:e.point.x,y:e.point.y},this._isDown=!0;const r=Qy(e.originalEvent);this._downPoints[r]={x:e.point.x,y:e.point.y}}}dragMove(e){let t=this._dragEvent;if(t){if(t.simulated&&!e.simulated)return!0;let r=0,i=this.parent;for(;i!=null;)r+=i.get("rotation",0),i=i.parent;let s=e.point.x-t.point.x,a=e.point.y-t.point.y;const o=this.events;if(t.simulated&&!this._isDragging){this._isDragging=!0,this._dragEvent=e,this._dragPoint={x:this.x(),y:this.y()};const l="dragstart";o.isEnabled(l)&&o.dispatch(l,{type:l,target:this,originalEvent:e.originalEvent,point:e.point,simulated:e.simulated})}if(this._isDragging){let l=this._dragPoint;this.set("x",l.x+s*fs(r)+a*li(r)),this.set("y",l.y+a*fs(r)-s*li(r));const u="dragged";o.isEnabled(u)&&o.dispatch(u,{type:u,target:this,originalEvent:e.originalEvent,point:e.point,simulated:e.simulated})}else if(Math.hypot(s,a)>5){this._isDragging=!0,this._dragEvent=e,this._dragPoint={x:this.x(),y:this.y()};const l="dragstart";o.isEnabled(l)&&o.dispatch(l,{type:l,target:this,originalEvent:e.originalEvent,point:e.point,simulated:e.simulated})}}}_updateSize(){}_getBounds(){this._localBounds=this._display.getLocalBounds()}depth(){let e=this.parent,t=0;for(;;)if(e)++t,e=e.parent;else return t}markDirtySize(){this._sizeDirty=!0,this.markDirty()}markDirtyBounds(){const e=this._display;
102if(this.get("isMeasured")){this._root._addDirtyBounds(this),e.isMeasured=!0,e.invalidateBounds();const t=this.parent;t&&this.get("position")!="absolute"&&(t.get("width")==null||t.get("height")==null||t.get("layout"))&&t.markDirtyBounds(),this.get("focusable")&&this.isFocus()&&this.markDirtyAccessibility()}}markDirtyAccessibility(){this._root._invalidateAccessibility(this)}markDirtyLayer(){this._display.markDirtyLayer(!0)}markDirty(){super.markDirty(),this.markDirtyLayer()}_updateBounds(){const e=this._adjustedLocalBounds;let t;if(!this.get("visible")||!this.getPrivate("visible")||this.get("forceHidden")?(t={left:0,right:0,top:0,bottom:0},this._localBounds=t,this._adjustedLocalBounds=t):(this._getBounds(),this._fixMinBounds(this._localBounds),this.updatePivotPoint(),this._adjustedLocalBounds=this._display.getAdjustedBounds(this._localBounds),t=this._adjustedLocalBounds),!e||e.left!==t.left||e.top!==t.top||e.right!==t.right||e.bottom!==t.bottom){const r="boundschanged";this.events.isEnabled(r)&&this.events.dispatch(r,{type:r,target:this}),this.parent&&(this.parent.markDirty(),this.parent.markDirtyBounds())}}_fixMinBounds(e){let t=this.get("minWidth",this.getPrivate("minWidth")),r=this.get("minHeight",this.getPrivate("minHeight"));q(t)&&e.right-e.left<t&&(e.right=e.left+t),q(r)&&e.bottom-e.top<r&&(e.bottom=e.top+r);let i=this.getPrivate("width"),s=this.getPrivate("height");q(i)&&(i>0?e.right=e.left+i:e.left=e.right+i),q(s)&&(s>0?e.bottom=e.top+s:e.top=e.bottom+s)}_removeParent(e){e&&(e.children.removeValue(this),Jn(e._percentageSizeChildren,this),Jn(e._percentagePositionChildren,this))}_clearDirty(){super._clearDirty(),this._sizeDirty=!1,this._statesHandled=!1}hover(){this.showTooltip(),this._handleOver()}unhover(){this.hideTooltip(),this._handleOut()}showTooltip(e){const t=this.getTooltip(),r=this.get("tooltipText"),i=this.get("tooltipHTML");if((r||i)&&t){const s=this.get("tooltipPosition"),a=this.getPrivate("tooltipTarget",this);(s=="fixed"||!e)&&(this._display._setMatrix(),e=this.toGlobal(a._getTooltipPoint())),t.set("pointTo",e),t.set("tooltipTarget",a),t.get("x")||t.set("x",e.x),t.get("y")||t.set("y",e.y),r&&t.label.set("text",r),i&&t.label.set("html",i);const o=this.dataItem;if(o&&t.label._setDataItem(o),this.get("showTooltipOn")=="always"&&(e.x<0||e.x>this._root.width()||e.y<0||e.y>this._root.height())){this.hideTooltip();return}t.label.text.markDirtyText();const l=t.show();return this.setPrivateRaw("showingTooltip",!0),l}}hideTooltip(){const e=this.getTooltip();if(e&&(e.get("tooltipTarget")==this.getPrivate("tooltipTarget",this)||this.get("tooltip")==e)){let t=e.get("keepTargetHover")&&e.get("stateAnimationDuration",0)==0?400:void 0;const r=e.hide(t);return this.setPrivateRaw("showingTooltip",!1),r}}_getTooltipPoint(){const e=this._localBounds;if(e){let t=0,r=0;return this.get("isMeasured")?(t=e.left+Vt(this.get("tooltipX",0),e.right-e.left),r=e.top+Vt(this.get("tooltipY",0),e.bottom-e.top)):(t=Vt(this.get("tooltipX",0),this.width()),r=Vt(this.get("tooltipY",0),this.height())),{x:t,y:r}}return{x:0,y:0}}getTooltip(){let e=this.get("tooltip");if(e)return e;{let t=this.parent;if(t)return t.getTooltip()}}_updatePosition(){const e=this.parent;let t=this.get("dx",0),r=this.get("dy",0),i=this.get("x"),s=this.getPrivate("x"),a=0,o=0;const l=this.get("position");i instanceof $e&&(e?i=e.innerWidth()*i.value+e.get("paddingLeft",0):i=0),q(i)?a=i+t:s!=null?a=s:e&&l=="relative"&&(a=e.get("paddingLeft",0)+t);let u=this.get("y"),h=this.getPrivate("y");u instanceof $e&&(e?u=e.innerHeight()*u.value+e.get("paddingTop",0):u=0),q(u)?o=u+r:h!=null?o=h:e&&l=="relative"&&(o=e.get("paddingTop",0)+r);const f=this._display;if(f.x!=a||f.y!=o){f.invalidateBounds(),f.x=a,f.y=o;const m="positionchanged";this.events.isEnabled(m)&&this.events.dispatch(m,{type:m,target:this})}this.getPrivate("showingTooltip")&&this.showTooltip()}x(){let e=this.get("x"),t=this.getPrivate("x");const r=this.parent;return r?e instanceof $e?Vt(e,r.innerWidth())+r.get("paddingLeft",0):q(e)?e:t??r.get("paddingLeft",this._display.x):this._display.x}y(){let e=this.getPrivate("y");if(e!=null)return e;let t=this.get("y");const r=this.parent;
102return r?t instanceof $e?Vt(t,r.innerHeight())+r.get("paddingTop",0):q(t)?t:e??r.get("paddingTop",this._display.y):this._display.y}_dispose(){super._dispose(),this._display.dispose(),this._removeTemplateField(),this._removeParent(this.parent),this._root._removeFocusElement(this);const e=this.get("tooltip");e&&e.dispose(),this.markDirty()}adjustedLocalBounds(){return this._fixMinBounds(this._adjustedLocalBounds),this._adjustedLocalBounds}localBounds(){return this._localBounds}bounds(){const e=this._adjustedLocalBounds,t=this.x(),r=this.y();return{left:e.left+t,right:e.right+t,top:e.top+r,bottom:e.bottom+r}}globalBounds(){const e=this.localBounds(),t=this.toGlobal({x:e.left,y:e.top}),r=this.toGlobal({x:e.right,y:e.top}),i=this.toGlobal({x:e.right,y:e.bottom}),s=this.toGlobal({x:e.left,y:e.bottom});return{left:Math.min(t.x,r.x,i.x,s.x),top:Math.min(t.y,r.y,i.y,s.y),right:Math.max(t.x,r.x,i.x,s.x),bottom:Math.max(t.y,r.y,i.y,s.y)}}_onShow(e){}_onHide(e){}appear(e,t){return cn(this,void 0,void 0,function*(){return yield this.hide(0),t?new Promise((r,i)=>{this.setTimeout(()=>{r(this.show(e))},t)}):this.show(e)})}show(e){return cn(this,void 0,void 0,function*(){if(!this._isShowing){this._isHidden=!1,this._isShowing=!0,this._isHiding=!1,this.states.lookup("default").get("visible")&&this.set("visible",!0),this._onShow(e);const t=this.states.applyAnimate("default",e);yield iE(t),this._isShowing=!1}})}hide(e){return cn(this,void 0,void 0,function*(){if(!this._isHiding&&!this._isHidden){this._isHiding=!0,this._isShowing=!1;let t=this.states.lookup("hidden");t||(t=this.states.create("hidden",{opacity:0,visible:!1})),this._isHidden=!0,this._onHide(e);const r=this.states.applyAnimate("hidden",e);yield iE(r),this._isHiding=!1}})}isHidden(){return this._isHidden}isShowing(){return this._isShowing}isHiding(){return this._isHiding}isHover(){return this._display.hovering()}isFocus(){return this._root.focused(this)}isDragging(){return this._isDragging}isVisible(){return!!(this.get("visible")&&this.getPrivate("visible")&&!this.get("forceHidden"))}isVisibleDeep(){return this._parent?this._parent.isVisibleDeep()&&this.isVisible():this.isVisible()}compositeOpacity(){const e=this.get("opacity",1);return this._parent?this._parent.compositeOpacity()*e:e}width(){let e=this.get("width"),t=this.get("maxWidth",this.getPrivate("maxWidth")),r=this.get("minWidth",this.getPrivate("minWidth")),i=this.getPrivate("width"),s=0;if(q(i))s=i;else if(e==null)this._adjustedLocalBounds&&(s=this._adjustedLocalBounds.right-this._adjustedLocalBounds.left);else if(e instanceof $e){const a=this.parent;a?s=a.innerWidth()*e.value:s=this._root.width()*e.value}else q(e)&&(s=e);return q(r)&&(s=Math.max(r,s)),q(t)&&(s=Math.min(t,s)),s}maxWidth(){let e=this.get("maxWidth",this.getPrivate("maxWidth"));if(q(e))return e;{let r=this.get("width");if(q(r))return r}const t=this.parent;return t?t.innerWidth():this._root.width()}maxHeight(){let e=this.get("maxHeight",this.getPrivate("maxHeight"));if(q(e))return e;{let r=this.get("height");if(q(r))return r}const t=this.parent;return t?t.innerHeight():this._root.height()}height(){let e=this.get("height"),t=this.get("maxHeight",this.getPrivate("maxHeight")),r=this.get("minHeight",this.getPrivate("minHeight")),i=this.getPrivate("height"),s=0;if(q(i))s=i;else if(e==null)this._adjustedLocalBounds&&(s=this._adjustedLocalBounds.bottom-this._adjustedLocalBounds.top);else if(e instanceof $e){const a=this.parent;a?s=a.innerHeight()*e.value:s=this._root.height()*e.value}else q(e)&&(s=e);return q(r)&&(s=Math.max(r,s)),q(t)&&(s=Math.min(t,s)),s}_findStaticTemplate(e){return this._templateField&&e(this._templateField)?this._templateField:super._findStaticTemplate(e)}_walkParents(e){this._parent&&this._walkParent(e)}_walkParent(e){this._parent&&this._parent._walkParent(e),e(this)}get parent(){return this._parent}_setParent(e,t=!1){const r=this._parent;e!==r&&(this.markDirtyBounds(),e.markDirty(),this._parent=e,t&&(this._removeParent(r),e&&(this._addPercentageSizeChildren(),this._addPercentagePositionChildren())),this.markDirtyPosition(),this._applyThemes())}getNumberFormatter(){return this.get("numberFormatter",this._root.numberFormatter)}getDateFormatter(){return this.get("dateFormatter",this._root.dateFormatter)}getDurationFormatter(){return this.get("durationFormatter",this._root.durationFormatter)}toGlobal(e){return this._display.toGlobal(e)}toLocal(e){return this._display.toLocal(e)}_getDownPoint(){const e=this._getDownPointId();if(e)return this._downPoints[e]}_getDownPointId(){if(this._downPoints)return a7(this._downPoints,(e,t)=>e>t?1:e<t?-1:0)[0]}toFront(){const e=this.parent;e&&e.children.moveValue(this,e.children.length-1)}toBack(){const e=this.parent;e&&e.children.moveValue(this,0)}}Object.defineProperty(Bi,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Sprite"});Object.defineProperty(Bi,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:_n.classNames.c
102oncat([Bi.className])});class df extends _n{constructor(){super(...arguments),Object.defineProperty(this,"_display",{enumerable:!0,configurable:!0,writable:!0,value:this._root._renderer.makeGraphics()}),Object.defineProperty(this,"_backgroundDisplay",{enumerable:!0,configurable:!0,writable:!0,value:this._root._renderer.makeGraphics()}),Object.defineProperty(this,"_clear",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_pattern",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_afterNew(){super._afterNewApplyThemes()}get pattern(){return this._pattern}_draw(){}_beforeChanged(){super._beforeChanged(),(this.isDirty("repetition")||this.isDirty("width")||this.isDirty("height")||this.isDirty("rotation")||this.isDirty("strokeWidth")||this.isDirty("strokeDasharray")||this.isDirty("strokeDashoffset")||this.isDirty("colorOpacity")||this.isDirty("fillOpacity"))&&(this._clear=!0),this._checkDirtyFill()}_checkDirtyFill(){(this.isDirty("color")||this.isDirty("fill"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){const e=this.get("repetition",""),t=this.get("width",100),r=this.get("height",100),i=this.get("fill"),s=this.get("fillOpacity",1),a=this._backgroundDisplay,o=this._display;o.clear(),a.clear(),i&&s>0&&(a.beginFill(i,s),a.drawRect(0,0,t,r),a.endFill()),o.angle=this.get("rotation",0),this._draw(),this._pattern=this._root._renderer.createPattern(o,a,e,t,r)}this._clear=!1}}Object.defineProperty(df,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Pattern"});Object.defineProperty(df,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:_n.classNames.concat([df.className])});class ff extends df{constructor(){super(...arguments),Object.defineProperty(this,"_image",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_beforeChanged(){super._beforeChanged(),this._clear=!0,this.isDirty("src")&&this._load();const e=this.get("canvas");e&&(this.set("width",e.width),this.set("height",e.height))}_draw(){super._draw();const e=this._image;if(e){const r=this.get("width",100),i=this.get("height",100),s=this.get("fit","image");let a=0,o=0;s=="pattern"?(a=r,o=i):(a=e.width,o=e.height,s=="image"&&(this.set("width",a),this.set("height",o)));const l=this.get("centered",!0);let u=0,h=0;l&&(u=r/2-a/2,h=i/2-o/2),this._display.image(e,a,o,u,h)}const t=this.get("canvas");t&&this._display.image(t,t.width,t.height,0,0)}_load(){const e=this.get("src");if(e){const t=new Image;t.src=e,t.decode().then(()=>{this._image=t,this._draw(),this.events.isEnabled("loaded")&&this.events.dispatch("loaded",{type:"loaded",target:this})}).catch(r=>{})}}}Object.defineProperty(ff,"className",{enumerable:!0,configurable:!0,writable:!0,value:"PicturePattern"});Object.defineProperty(ff,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:df.classNames.concat([ff.className])});var Qg;(function(n){n.ADD="lighter",n.COLOR="color",n.COLOR_BURN="color-burn",n.COLOR_DODGE="color-dodge",n.DARKEN="darken",n.DIFFERENCE="difference",n.DST_OVER="destination-over",n.EXCLUSION="exclusion",n.HARD_LIGHT="hard-light",n.HUE="hue",n.LIGHTEN="lighten",n.LUMINOSITY="luminosity",n.MULTIPLY="multiply",n.NORMAL="source-over",n.OVERLAY="overlay",n.SATURATION="saturation",n.SCREEN="screen",n.SOFT_LIGHT="soft-light",n.SRC_ATOP="source-atop",n.XOR="xor"})(Qg||(Qg={}));const ix=["fill","fillOpacity","stroke","strokeWidth","strokeOpacity","fillPattern","strokePattern","fillGradient","strokeGradient","strokeDasharray","strokeDashoffset","shadowBlur","shadowColor","shadowOpacity","shadowOffsetX","shadowOffsetY","blur","sepia","invert","brightness","hue","contrast","saturate"];class ot extends Bi{constructor(){super(...arguments),Object.defineProperty(this,"_display",{enumerable:!0,configurable:!0,writable:!0,value:this._root._renderer.makeGraphics()}),Object.defineProperty(this,"_clear",{enumerable:!0,configurable:!0,writable:!0,value:!1})}_beforeChanged(){if(super._beforeChanged(),(this.isDirty("draw")||this.isDirty("svgPath"))&&this.markDirtyBounds(),(this.isDirty("fill")||this.isDirty("stroke")||this.isDirty("visible")||this.isDirty("forceHidden")||this.isDirty("scale")||this.isDirty("fillGradient")||this.isDirty("strokeGradient")||this.isDirty("fillPattern")||this.isDirty("strokePattern")||this.isDirty("fillOpacity")||this.isDirty("strokeOpacity")||this.isDirty("strokeWidth")||this.isDirty("draw")||this.isDirty("blendMode")||this.isDirty("strokeDasharray")||this.isDirty("strokeDashoffset")||this.isDirty("svgPath")||this.isDirty("lineJoin")||this.isDirty("shadowColor")||this.isDirty("shadowBlur")||this.isDirty("shadowOffsetX")||this.isDirty("shadowOffsetY"))&&(this._clear=!0),this._display.crisp=this.get("crisp",!1),this.isDirty("fillGradient")){const e=this.get("fillGradient");if(e){this._display.isMeasured=!0;const t=e.get("target");t&&(this._disposers.push(t.events.on("boundschanged",()=>{this._markDirtyKey("fill")})),this._disposers.push(t.events.on("positionchanged",()=>{this._markDirtyKey("fill")})))}}if(this.isDirty("strokeGradient")){const e=this.get("strokeGradient");if(e){this._display.isMeasured=!0;const t=e.get("target");t&&(this._disposers.push(t.events.on("boundschanged",()=>{this._markDirtyKey("stroke")})),this._disposers.push(t.events.on("positionchanged",()=>{this._markDirtyKey("stroke")})))}}}_changed(){if(super._changed(),this._clear){this.markDirtyBounds(),this.markDirtyLayer(),this._display.clear();let e=this.get("strokeDasharray");q(e)&&(e<.5?e=[0]:e=[e]),this._display.setLineDash(e);const t=this.get("strokeDashoffset");t&&this._display.setLineDashOffset(t);const r=this.get("blendMode",Qg.NORMAL);this._display.blendMode=r;const i=this.get("draw");i&&i(this._display,this);const s=this.get("svgPath");s!=null&&this._display.svgPath(s)}}_afterChanged(){if(super._afterChanged(),this._clear){const e=this.get("fill"),t=this.get("fillGradient"),r=this.get("fillPattern"),i=this.get("fillOpacity"),s=this.get("stroke"),a=this.get("strokeGradient"),o=this.get("strokePattern"),l=this.get("shadowColor"),u=this.get("shadowBlur"),h=this.get("shadowOffsetX"),f=this.get("shadowOffsetY"),m=this.get("shadowOpacity");if(l&&(u||h||f)&&this._display.shadow(l,u,h,f,m),e&&!t&&(this._display.beginFill(e,i),this._display.endFill()),t){if(e){const y=t.get("stops",[]);y.length&&Y(y,v=>{(!v.color||v.colorInherited)&&e&&(v.color=e,v.colorInherited=!0),(v.opacity==null||v.opacityInherited)&&(v.opacity=i,v.opacityInherited=!0)})}
102const g=t.getFill(this);g&&(this._display.beginFill(g,i),this._display.endFill())}if(r){const g=r.pattern;g&&(this._display.beginFill(g,i),this._display.endFill(),r instanceof ff&&r.events.once("loaded",()=>{this._clear=!0,this.markDirty()}))}if(s||a||o){const g=this.get("strokeOpacity");let y=this.get("strokeWidth",1);this.get("nonScalingStroke")&&(y=y/this.get("scale",1)),this.get("crisp")&&(y/=this._root._renderer.resolution);const v=this.get("lineJoin");if(s&&!a&&(this._display.lineStyle(y,s,g,v),this._display.endStroke()),a){const x=a.get("stops",[]);x.length&&Y(x,S=>{(!S.color||S.colorInherited)&&s&&(S.color=s,S.colorInherited=!0),(S.opacity==null||S.opacityInherited)&&(S.opacity=g,S.opacityInherited=!0)});const _=a.getFill(this);_&&(this._display.lineStyle(y,_,g,v),this._display.endStroke())}if(o){let x=o.pattern;x&&(this._display.lineStyle(y,x,g,v),this._display.endStroke(),o instanceof ff&&o.events.once("loaded",()=>{this._clear=!0,this.markDirty()}))}}this.getPrivate("showingTooltip")&&this.showTooltip()}this._clear=!1}}Object.defineProperty(ot,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Graphics"});Object.defineProperty(ot,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:Bi.classNames.concat([ot.className])});class Yr extends ot{_afterNew(){super._afterNew(),this._display.isMeasured=!0,this.setPrivateRaw("trustBounds",!0)}_beforeChanged(){super._beforeChanged(),(this.isDirty("width")||this.isDirty("height")||this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}_changed(){super._changed(),this._clear&&!this.get("draw")&&this._draw()}_draw(){this._display.drawRect(0,0,this.width(),this.height())}_updateSize(){this.markDirty(),this._clear=!0}}Object.defineProperty(Yr,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Rectangle"});Object.defineProperty(Yr,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:ot.classNames.concat([Yr.className])});function qs(n,e){n.get("reverseChildren",!1)?n.children.eachReverse(e):n.children.each(e)}class ia extends _n{}Object.defineProperty(ia,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Layout"});Object.defineProperty(ia,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:_n.classNames.concat([ia.className])});class Ku extends ia{updateContainer(e){let t=e.get("paddingLeft",0),r=e.innerWidth(),i=0;qs(e,a=>{if(a.isVisible()&&a.get("position")=="relative"){let o=a.get("width");if(o instanceof $e){i+=o.value;let l=r*o.value,u=a.get("minWidth",a.getPrivate("minWidth",-1/0));u>l&&(r-=u,i-=o.value);let h=a.get("maxWidth",a.getPrivate("maxWidth",1/0));l>h&&(r-=h,i-=o.value)}else q(o)||(o=a.width()),r-=o+a.get("marginLeft",0)+a.get("marginRight",0)}}),(r<=0||r==1/0)&&(r=.1),qs(e,a=>{if(a.isVisible()&&a.get("position")=="relative"){let o=a.get("width");if(o instanceof $e){let l=r*o.value/i-a.get("marginLeft",0)-a.get("marginRight",0),u=a.get("minWidth",a.getPrivate("minWidth",-1/0)),h=a.get("maxWidth",a.getPrivate("maxWidth",1/0));l=Math.min(Math.max(u,l),h),a.setPrivate("width",l)}else a._prevSettings.width instanceof $e&&a.setPrivate("width",void 0)}});let s=t;qs(e,a=>{if(a.get("position")=="relative")if(a.isVisible()){let o=a.adjustedLocalBounds(),l=a.get("marginLeft",0),u=a.get("marginRight",0),h=a.get("maxWidth"),f=o.left,m=o.right;h&&m-f>h&&(m=f+h);let g=s+l-f;a.setPrivate("x",g),s=g+m+u}else a.setPrivate("x",void 0)})}}Object.defineProperty(Ku,"className",{enumerable:!0,configurable:!0,writable:!0,value:"HorizontalLayout"});Object.defineProperty(Ku,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:ia.classNames.concat([Ku.className])});class Qu extends ia{updateContainer(e){let t=e.get("paddingTop",0),r=e.innerHeight(),i=0;qs(e,a=>{if(a.isVisible()&&a.get("position")=="relative"){let o=a.get("height");if(o instanceof $e){i+=o.value;let l=r*o.value,u=a.get("minHeight",a.getPrivate("minHeight",-1/0));u>l&&(r-=u,i-=o.value);let h=a.get("maxHeight",a.getPrivate("maxHeight",1/0));l>h&&(r-=h,i-=o.value)}else q(o)||(o=a.height()),r-=o+a.get("marginTop",0)+a.get("marginBottom",0)}}),(r<=0||r==1/0)&&(r=.1),qs(e,a=>{if(a.isVisible()&&a.get("position")=="relative"){let o=a.get("height");if(o instanceof $e){let l=r*o.value/i-a.get("marginTop",0)-a.get("marginBottom",0),u=a.get("minHeight",a.getPrivate("minHeight",-1/0)),h=a.get("maxHeight",a.getPrivate("maxHeight",1/0));l=Math.min(Math.max(u,l),h),a.setPrivate("height",l)}else a._prevSettings.height instanceof $e&&a.setPrivate("height",void 0)}});let s=t;qs(e,a=>{if(a.get("position")=="relative")if(a.isVisible()){let o=a.adjustedLocalBounds(),l=a.get("marginTop",0),u=o.top,h=o.bottom,f=a.get("maxHeight");f&&h-u>f&&(h=u+f);let m=a.get("marginBottom",0),g=s+l-u;a.setPrivate("y",g),s=g+h+m}else a.setPrivate("y",void 0)})}}Object.defineProperty(Qu,"className",{enumerable:!0,configurable:!0,writable:!0,value:"VerticalLayout"});Object.defineProperty(Qu,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:ia.classNames.c
102oncat([Qu.className])});class ol extends ia{_afterNew(){this._setRawDefault("maxColumns",Number.MAX_VALUE),super._afterNew()}updateContainer(e){let t=e.get("paddingLeft",0),r=e.get("paddingRight",0),i=e.get("paddingTop",0),s=e.maxWidth()-t-r,a=s,o=1;qs(e,y=>{if(y.get("visible")&&y.getPrivate("visible")&&!y.get("forceHidden")&&y.get("position")!="absolute"){let v=y.width();v<a&&(a=v),v>o&&(o=v)}}),a=an(a,1,s),o=an(o,1,s);let l=1;this.get("fixedWidthGrid")?l=s/o:l=s/a,l=Math.max(1,Math.floor(l)),l=Math.min(this.get("maxColumns",Number.MAX_VALUE),l);let u=this.getColumnWidths(e,l,o,s),h=i,f=0,m=0;l=u.length;let g=t;qs(e,y=>{if(y.get("position")=="relative"&&y.isVisible()){const v=y.get("marginTop",0),x=y.get("marginBottom",0);let _=y.adjustedLocalBounds(),S=y.get("marginLeft",0),w=y.get("marginRight",0),k=g+S-_.left,P=h+v-_.top;y.setPrivate("x",k),y.setPrivate("y",P),g+=u[f]+w,m=Math.max(m,y.height()+v+x),f++,f>=l&&(f=0,g=t,h+=m)}})}getColumnWidths(e,t,r,i){let s=0,a=[],o=0;return qs(e,l=>{let u=l.adjustedLocalBounds();l.get("position")!="absolute"&&l.isVisible()&&(this.get("fixedWidthGrid")?a[o]=r:a[o]=Math.max(a[o]|0,u.right-u.left+l.get("marginLeft",0)+l.get("marginRight",0)),o<e.children.length-1&&(o++,o==t&&(o=0)))}),Y(a,l=>{s+=l}),s>i?t>2?(t-=1,this.getColumnWidths(e,t,r,i)):[i]:a}}Object.defineProperty(ol,"className",{enumerable:!0,configurable:!0,writable:!0,value:"GridLayout"});Object.defineProperty(ol,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:ia.classNames.concat([ol.className])});class ji{static escape(e){return e.replace(/\[\[/g,this.prefix+"1").replace(/([^\/\]]{1})\]\]/g,"$1"+this.prefix+"2").replace(/\]\]/g,this.prefix+"2").replace(/\{\{/g,this.prefix+"3").replace(/\}\}/g,this.prefix+"4").replace(/\'\'/g,this.prefix+"5")}static unescape(e){return e.replace(new RegExp(this.prefix+"1","g"),"[[").replace(new RegExp(this.prefix+"2","g"),"]]").replace(new RegExp(this.prefix+"3","g"),"{{").replace(new RegExp(this.prefix+"4","g"),"}}").replace(new RegExp(this.prefix+"5","g"),"''")}static cleanUp(e){return e.replace(/\[\[/g,"[").replace(/\]\]/g,"]").replace(/\{\{/g,"{").replace(/\}\}/g,"}").replace(/\'\'/g,"'")}static chunk(e,t=!1,r=!1){let i=[];e=this.escape(e);let s=t?e.split("'"):[e];for(let a=0;a<s.length;a++){let o=s[a];if(o!=="")if(a%2===0){o=o.replace(/\]\[/g,"]"+ao+"["),o=o.replace(/\[\]/g,"[ ]");let l=o.split(/[\[\]]+/);for(let u=0;u<l.length;u++){let h=this.cleanUp(this.unescape(l[u]));h!==ao&&h!==""&&(u%2===0?i.push({type:"value",text:h}):i.push({type:r?"value":"format",text:"["+h+"]"}))}}else{let l=o.split(/[\[\]]+/);for(let u=0;u<l.length;u++){let h=this.cleanUp(this.unescape(l[u]));h!==""&&(u%2===0?i.push({type:"text",text:h}):this.isImage(h)?i.push({type:"image",text:"["+h+"]"}):i.push({type:"format",text:"["+h+"]"}))}}}return i}static isImage(e){return!!e.match(/img[ ]?:/)}static getTextStyle(e){let t={};if(e==""||e=="[ ]")return{};const r=e.match(/('[^']*')|("[^"]*")/gi);if(r)for(let s=0;s<r.length;s++)e=e.replace(r[s],r[s].replace(/['"]*/g,"").replace(/[ ]+/g,"+"));let i=e.match(/([\w\-]*:[\s]?[^;\s\]]*)|(\#[\w]{1,6})|([\w\-]+)|(\/)/gi);if(!i)return{};for(let s=0;s<i.length;s++)if(i[s].match(/^(normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900)$/i))t.fontWeight=i[s];else if(i[s].match(/^(underline|line-through)$/i))t.textDecoration=i[s];else if(i[s]!="/")if(!i[s].match(/:/))t.fill=be.fromString(i[s]);else{const a=i[s].replace("+"," ").split(/:[ ]*/);t[a[0]]=a[1]}return t}}Object.defineProperty(ji,"prefix",{enumerable:!0,configurable:!0,writable:!0,value:"__amcharts__"});function hf(n,e){if(e!=null){e=""+e,e=ji.escape(e);let t=e.match(/\{([^}]+)\}/g),r;if(t)for(r=0;r<t.length;r++){let i=t[r].replace(/\{([^}]+)\}/,"$1"),s=sx(n,i);s==null&&(s=""),e=e.split(t[r]).join(s)}e=ji.unescape(e)}else e="";return e}function sx(n,e,t){let r;const i=n.dataItem;let s=[],a=/(format[a-zA-Z]*)\((.*)\)|([^.]+)/g,o;for(;o=a.exec(e),o!==null;)if(o[3]){s.push({prop:o[3]});const l=n.getDateFormatter().get("dateFields",[]),u=n.getNumberFormatter().get("numericFields",[]),h=n.getDurationFormatter().get("durationFields",[]);l.indexOf(o[3])!==-1?s.push({method:"formatDate",params:[]}):u.indexOf(o[3])!==-1?s.push({method:"formatNumber",params:[]}):h.indexOf(o[3])!==-1&&s.push({method:"formatDuration",params:[]})}else{let l=[];
102if(Ou(o[2])!=""){let u=/'([^']*)'|"([^"]*)"|([0-9\-]+)/g,h;for(;h=u.exec(o[2]),h!==null;)l.push(h[1]||h[2]||h[3])}s.push({method:o[1],params:l})}if(i){r=jo(n,s,i._settings),(r==null||Xf(r))&&(r=jo(n,s,i));let l=i.dataContext;r==null&&l&&(r=jo(n,s,l),r==null&&(r=jo(n,[{prop:e}],l)),r==null&&l.dataContext&&(r=jo(n,s,l.dataContext))),r==null&&i.component&&i.component.dataItem!==i&&(r=sx(i.component,e))}return r==null&&(r=jo(n,s,n)),r==null&&n.parent&&(r=sx(n.parent,e)),r}function H7(n,e){const t=n.getPrivate("customData");if(Xf(t))return t[e]}function jo(n,e,t,r){let i=t,s=!1;for(let a=0,o=e.length;a<o;a++){let l=e[a];if(l.prop){if(i instanceof Bi){let u=i.get(l.prop);u==null&&(u=i.getPrivate(l.prop)),u==null&&(u=H7(i,l.prop)),u==null&&(u=i[l.prop]),i=u}else if(i.get){let u=i.get(l.prop);u==null&&(u=i[l.prop]),i=u}else i=i[l.prop];if(i==null)return}else switch(l.method){case"formatNumber":let u=dr(i);u!=null&&(i=n.getNumberFormatter().format(u,r||l.params[0]||void 0),s=!0);break;case"formatDate":let h=Z8(i);if(!K0(h)||Li(h.getTime()))return;h!=null&&(i=n.getDateFormatter().format(h,r||l.params[0]||void 0),s=!0);break;case"formatDuration":let f=dr(i);f!=null&&(i=n.getDurationFormatter().format(f,r||l.params[0]||void 0,l.params[1]||void 0),s=!0);break;case"urlEncode":case"encodeURIComponent":i=encodeURIComponent(i);break;default:i[l.method]&&i[l.method].apply(t,l.params);break}}if(!s){let a=[{method:"",params:r}];if(r==null)q(i)?(a[0].method="formatNumber",a[0].params=""):K0(i)&&(a[0].method="formatDate",a[0].params="");else{let o=y7(r);o==="number"?a[0].method="formatNumber":o==="date"?a[0].method="formatDate":o==="duration"&&(a[0].method="formatDuration")}a[0].method&&(i=jo(n,a,i))}return i}class Ee extends Bi{constructor(){super(...arguments),Object.defineProperty(this,"_display",{enumerable:!0,configurable:!0,writable:!0,value:this._root._renderer.makeContainer()}),Object.defineProperty(this,"_childrenDisplay",{enumerable:!0,configurable:!0,writable:!0,value:this._root._renderer.makeContainer()}),Object.defineProperty(this,"children",{enumerable:!0,configurable:!0,writable:!0,value:new s7(this)}),Object.defineProperty(this,"_percentageSizeChildren",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_percentagePositionChildren",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_prevWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_prevHeight",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_contentWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_contentHeight",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_contentMask",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_vsbd0",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_vsbd1",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_afterNew(){super._afterNew(),this._display.addChild(this._childrenDisplay)}_dispose(){Rd(this.allChildren(),e=>{e.dispose()}),this.getPrivate("htmlElement")&&this._root._removeHTMLContent(this),super._dispose()}_changed(){if(super._changed(),this.isDirty("interactiveChildren")&&(this._display.interactiveChildren=this.get("interactiveChildren",!1)),this.isDirty("layout")&&(this._prevWidth=0,this._prevHeight=0,this.markDirtyBounds(),this._prevSettings.layout&&this.children.each(e=>{e.removePrivate("x"),e.removePrivate("y")})),(this.isDirty("paddingTop")||this.isDirty("paddingBottom")||this.isDirty("paddingLeft")||this.isDirty("paddingRight"))&&this.children.each(e=>{e.markDirtyPosition()}),this.isDirty("maskContent")){const e=this._childrenDisplay;let t=this._contentMask;this.get("maskContent")?t||(t=Yr.new(this._root,{x:-.5,y:-.5,width:this.width()+1,height:this.height()+1}),this._contentMask=t,e.addChildAt(t._display,0),e.mask=t._display):t&&(e.removeChild(t._display),e.mask=null,t.dispose(),this._contentMask=void 0)}}_updateSize(){super._updateSize(),Y(this._percentageSizeChildren,e=>{e._updateSize()}),Y(this._percentagePositionChildren,e=>{e.markDirtyPosition(),e._updateSize()}
102),this.updateBackground()}updateBackground(){const e=this.get("background");let t=this._localBounds;if(t&&!this.isHidden()){let r=t.left,i=t.top,s=t.right-r,a=t.bottom-i,o=this.get("maxWidth"),l=this.get("maxHeight");l&&a>l&&(a=l),o&&s>o&&(s=o);let u=this.width(),h=this.height();e&&(e.setAll({width:s,height:a,x:r,y:i}),this._display.interactive&&(e._display.interactive=!0));const f=this._contentMask;f&&f.setAll({width:u+1,height:h+1});const m=this.get("verticalScrollbar");if(m){m.set("height",h),m.set("x",u-m.width()-m.get("marginRight",0)),m.set("end",m.get("start",0)+h/this._contentHeight);const g=m.get("background");g&&g.setAll({width:m.width(),height:h});let y=!0;this._contentHeight<=h&&(y=!1),m.setPrivate("visible",y)}}}_applyThemes(e=!1){return super._applyThemes(e)?(this.eachChildren(t=>{t._applyThemes(e)}),!0):!1}_applyState(e){super._applyState(e),this.get("setStateOnChildren")&&this.eachChildren(t=>{t.states.apply(e)})}_applyStateAnimated(e,t){super._applyStateAnimated(e,t),this.get("setStateOnChildren")&&this.eachChildren(r=>{r.states.applyAnimate(e,t)})}innerWidth(){return this.width()-this.get("paddingRight",0)-this.get("paddingLeft",0)}innerHeight(){return this.height()-this.get("paddingTop",0)-this.get("paddingBottom",0)}_getBounds(){let e=this.get("width"),t=this.get("height"),r=this.getPrivate("width"),i=this.getPrivate("height"),s={left:0,top:0,right:this.width(),bottom:this.height()},a=this.get("layout"),o=!1,l=!1;if((a instanceof Ku||a instanceof ol)&&(o=!0),a instanceof Qu&&(l=!0),!((e!=null||r!=null)&&(t!=null||i!=null)&&!this.get("verticalScrollbar"))){let u=Number.MAX_VALUE,h=u,f=-u,m=u,g=-u;const y=this.get("paddingLeft",0),v=this.get("paddingTop",0),x=this.get("paddingRight",0),_=this.get("paddingBottom",0);this.children.each(S=>{if(S.get("position")!="absolute"&&S.get("isMeasured")){let w=S.adjustedLocalBounds(),k=S.x(),P=S.y(),j=k+w.left,A=k+w.right,M=P+w.top,L=P+w.bottom;o&&(j-=S.get("marginLeft",0),A+=S.get("marginRight",0)),l&&(M-=S.get("marginTop",0),L+=S.get("marginBottom",0)),j<h&&(h=j),A>f&&(f=A),M<m&&(m=M),L>g&&(g=L)}}),h==u&&(h=0),f==-u&&(f=0),m==u&&(m=0),g==-u&&(g=0),s.left=h-y,s.top=m-v,s.right=f+x,s.bottom=g+_}this._contentWidth=s.right-s.left,this._contentHeight=s.bottom-s.top,q(e)&&(s.left=0,s.right=e),q(r)&&(s.left=0,s.right=r),q(t)&&(s.top=0,s.bottom=t),q(i)&&(s.top=0,s.bottom=i),this._localBounds=s}_updateBounds(){const e=this.get("layout");e&&e.updateContainer(this),super._updateBounds(),this.updateBackgroun
102d()}markDirty(){super.markDirty(),this._root._addDirtyParent(this)}_prepareChildren(){const e=this.innerWidth(),t=this.innerHeight();if(e!=this._prevWidth||t!=this._prevHeight){let r=this.get("layout"),i=!1,s=!1;r&&((r instanceof Ku||r instanceof ol)&&(i=!0),r instanceof Qu&&(s=!0)),Y(this._percentageSizeChildren,a=>{if(!i){let o=a.get("width");o instanceof $e&&a.setPrivate("width",o.value*e)}if(!s){let o=a.get("height");o instanceof $e&&a.setPrivate("height",o.value*t)}}),Y(this._percentagePositionChildren,a=>{a.markDirtyPosition(),a.markDirtyBounds()}),this._prevWidth=e,this._prevHeight=t,this._sizeDirty=!0,this.updateBackground()}this._handleStates()}_updateChildren(){if(this.isDirty("html")){const e=this.get("html");e&&e!==""?this._root._setHTMLContent(this,hf(this,this.get("html",""))):this._root._removeHTMLContent(this),this._root._positionHTMLElement(this)}if(this.isDirty("verticalScrollbar")){const e=this.get("verticalScrollbar");if(e){e._setParent(this),e.startGrip.setPrivate("visible",!1),e.endGrip.setPrivate("visible",!1),this.set("maskContent",!0),this.set("paddingRight",e.width()+e.get("marginRight",0)+e.get("marginLeft",0));let t=this.get("background");t||(t=this.set("background",Yr.new(this._root,{themeTags:["background"],fillOpacity:0,fill:this._root.interfaceColors.get("alternativeBackground")}))),this._vsbd0=this.events.on("wheel",r=>{const i=r.originalEvent;if(t1(i,this))i.preventDefault();else return;let s=i.deltaY/5e3;const a=e.get("start",0),o=e.get("end",1);a+s<=0&&(s=-a),o+s>=1&&(s=1-o),a+s>=0&&o+s<=1&&(e.set("start",a+s),e.set("end",o+s))}),this._disposers.push(this._vsbd0),this._vsbd1=e.events.on("rangechanged",()=>{let r=this._contentHeight;const i=this._childrenDisplay,s=this._contentMask;i.y=-e.get("start")*r,i.markDirtyLayer(),s&&(s._display.y=-i.y,i.mask=s._display)}),this._disposers.push(this._vsbd1),this._display.addChild(e._display)}else{const t=this._prevSettings.verticalScrollbar;if(t){this._display.removeChild(t._display),this._vsbd0&&this._vsbd0.dispose(),this._vsbd1&&this._vsbd1.dispose();const r=this._childrenDisplay;r.y=0,this.setPrivate("height",void 0),this.set("maskContent",!1),this.set("paddingRight",void 0)}}}if(this.isDirty("background")){const e=this._prevSettings.background;e&&this._display.removeChild(e._display);const t=this.get("background");t instanceof Bi&&(t.set("isMeasured",!1),t._setParent(this),this._display.addChildAt(t._display,0))}if(this.isDirty("mask")){const e=this.get("mask"),t=this._prevSettings.mask;if(t&&(this._display.removeChild(t._display),t!=e&&t.dispose()),e){const r=e.parent;r&&r.children.removeValue(e),e._setParent(this),this._display.addChildAt(e._display,0),this._childrenDisplay.mask=e._display}}}_processTemplateField(){super._processTemplateField(),this.children.each(e=>{e._processTemplateField()})}walkChildren(e){this.children.each(t=>{t instanceof Ee&&t.walkChildren(e),e(t)})}eachChildren(e){const t=this.get("background");t&&e(t);const r=this.get("verticalScrollbar");r&&e(r);const i=this.get("mask");i&&e(i),this.children.values.forEach(s=>{e(s)})}allChildren(){const e=[];return this.eachChildren(t=>{e.push(t)}),e}_setDataItem(e){const t=e!==this._dataItem;super._setDataItem(e);const r=this.get("html","");r&&r!==""&&t&&this._root._setHTMLContent(this,hf(this,r))}}Object.defineProperty(Ee,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Container"});Object.defineProperty(Ee,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:Bi.classNames.concat([Ee.className])});class ll extends Bi{constructor(){super(...arguments),Object.defineProperty(this,"textStyle",{enumerable:!0,configurable:!0,writable:!0,value:this._root._renderer.makeTextStyle()}),Object.defineProperty(this,"_display",{enumerable:!0,configurable:!0,writable:!0,value:this._root._renderer.makeText("",this.textStyle)}),Object.defineProperty(this,"_textStyles",{enumerable:!0,configurable:!0,writable:!0,value:["textAlign","fontFamily","fontSize","fontStyle","fontWeight","fontStyle","fontVariant","textDecoration","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","shadowOpacity","lineHeight","baselineRatio","direction","textBaseline","oversizedBehavior","breakWords","ellipsis","minScale"]}),Object.defineProperty(this,"_originalScale",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_updateBounds(){if(this.get("text"))super._updateBounds();else{let e={left:0,right:0,top:0,bottom:0};this._adjustedLocalBounds=e}}_changed(){super._changed(),this._display.clear();let e=this.textStyle;if(this.isDirty("opacity")){let t=this.get("opacity",1);this._display.alpha=t}if((this.isDirty("text")||this.isDirty("populateText"))&&(this._display.text=this._getText(),this.markDirtyBounds(),this.get("role")=="tooltip"&&this._root.updateTooltip(this)),this.isPrivateDirty("tooltipElement")&&this.getPrivate("tooltipElement")&&this._disposers.push(new gn(()=>{this._root._removeTooltipElement(this)})),this.isDirty("width")&&(e.wordWrapWidth=this.width(),this.markDirtyBounds()),this.isDirty("oversizedBehavior")&&(e.oversizedBehavior=this.get("oversizedBehavior","none"),this.markDirtyBounds()),this.isDirty("breakWords")&&(e.breakWords=this.get("breakWords",!1),this.markDirtyBounds()),this.isDirty("ellipsis")&&(e.ellipsis=this.get("ellipsis"),this.markDirtyBounds()),this.isDirty("ignoreFormatting")&&(e.ignoreFormatting=this.get("ignoreFormatting",!1),this.markDirtyBounds()),this.isDirty("minScale")&&(e.minScale=this.get("minScale",0),this.markDirtyBounds()),this.isDirty("fill")){let t=this.get("fill");t&&(e.fill=t)}if(this.isDirty("fillOpacity")){let t=this.get("fillOpacity",1);t&&(e.fillOpacity=t)}(this.isDirty("maxWidth")||this.isPrivateDirty("maxWidth"))&&(e.maxWidth=this.get("maxWidth",this.getPrivate("maxWidth")),this.markDirtyBounds()),(this.isDirty("maxHeight")||this.isPrivateDirty("maxHeight"))&&(e.maxHeight=this.get("maxHeight",this.getPrivate("maxHeight")),this.markDirtyBounds()),Y(this._textStyles,t=>{this._dirty[t]&&(e[t]=this.get(t),this.markDirtyBounds())}),e.fontSize=this.get("fontSize"),e.fontFamily=this.get("fontFamily"),this._display.style=e,this.isDirty("role")&&this.get("role")=="tooltip"&&this._root.updateTooltip(this)}_getText(){const e=this.get("text","");return this.get("populateText")?hf(this,e):e}markDirtyText(){this._display.text=this._getText(),this.get("role")=="tooltip"&&this._root.updateTooltip(this),this.markDirtyBounds(),this.markDirty()}_setDataItem(e){super._setDataItem(e),this.get("populateText")&&this.markDirtyText()}getNumberFormatter(){return this.parent?this.parent.getNumberFormatter():super.getNumberFormatter()}getDateFormatter(){return this.parent?this.parent.getDateFormatter():super.getDateFormatter()}getDurationFormatter(){return this.parent?this.parent.getDurationFormatter():super.getDurationFormatter()}}Object.defineProperty(ll,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Text"});Object.defineProperty(ll,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:Bi.classNames.c
102oncat([ll.className])});class z7{constructor(){Object.defineProperty(this,"_observer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_targets",{enumerable:!0,configurable:!0,writable:!0,value:[]}),this._observer=new ResizeObserver(e=>{Y(e,t=>{Y(this._targets,r=>{r.target===t.target&&r.callback()})})})}addTarget(e,t){this._observer.observe(e,{box:"border-box"}),this._targets.push({target:e,callback:t})}removeTarget(e){this._observer.unobserve(e),iv(this._targets,t=>t.target!==e)}}class av{constructor(){Object.defineProperty(this,"_timer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_targets",{enumerable:!0,configurable:!0,writable:!0,value:[]})}addTarget(e,t){if(this._timer===null){let i=null;const s=()=>{const a=Date.now();(i===null||a>i+av.delay)&&(i=a,Y(this._targets,o=>{let l=o.target.getBoundingClientRect();(l.width!==o.size.width||l.height!==o.size.height)&&(o.size=l,o.callback())})),this._targets.length===0?this._timer=null:this._timer=requestAnimationFrame(s)};this._timer=requestAnimationFrame(s)}let r={width:0,height:0,left:0,right:0,top:0,bottom:0,x:0,y:0};this._targets.push({target:e,callback:t,size:r})}removeTarget(e){iv(this._targets,t=>t.target!==e),this._targets.length===0&&this._timer!==null&&(cancelAnimationFrame(this._timer),this._timer=null)}}Object.defineProperty(av,"delay",{enumerable:!0,configurable:!0,writable:!0,value:200});let xp=null;function W7(){return xp===null&&(typeof ResizeObserver<"u"?xp=new z7:xp=new av),xp}class U7{constructor(e,t){Object.defineProperty(this,"_sensor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_element",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_listener",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_disposed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),this._sensor=W7(),this._element=e,this._listener=pR(t),this._sensor.addTarget(e,t)}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._sensor.removeTarget(this._element),this._listener.dispose())}get sensor(){return this._sensor}}class Zg extends _n{}Object.defineProperty(Zg,"className",{enumerable:!0,configurable:!0,writable:!0,value:"InterfaceColors"});Object.defineProperty(Zg,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:_n.classNames.concat([Zg.className])});class pi extends Ee{constructor(){super(...arguments),Object.defineProperty(this,"_text",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_textKeys",{enumerable:!0,configurable:!0,writable:!0,value:["text","fill","fillOpacity","textAlign","fontFamily","fontSize","fontStyle","fontWeight","fontStyle","fontVariant","textDecoration","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","shadowOpacity","lineHeight","baselineRatio","direction","textBaseline","oversizedBehavior","breakWords","ellipsis","minScale","populateText","role","ignoreFormatting"]})}get text(){return this._text}_afterNew(){super._afterNew(),this._makeText(),Y(this._textKeys,e=>{const t=this.get(e);t!=null&&this._text.set(e,t)}),this.get("html","")!==""&&this._text.set("text",""),this.onPrivate("maxWidth",()=>{this._setMaxDimentions()}),this.onPrivate("maxHeight",()=>{this._setMaxDimentions()})}_makeText(){this._text=this.children.push(ll.new(this._root,{}))}_updateChildren(){if(super._updateChildren(),Y(this._textKeys,e=>{this._text.set(e,this.get(e))}),this.isDirty("maxWidth")&&this._setMaxDimentions(),this.isDirty("maxHeight")&&this._setMaxDimentions(),this.isDirty("rotation")&&this._setMaxDimentions(),this.get("html","")!==""?this._text.set("text",""):this._text.set("text",this.get("text")),this.isDirty("textAlign")||this.isDirty("width")){const e=this.get("textAlign");let t;this.get("width")!=null?e=="right"?t=le:e=="center"?t=He:t=0:e=="left"||e=="start"?t=this.get("paddingLeft"):(e=="right"||e=="end")&&(t=-this.get("paddingRight")),this.text.set("x",t)}}_setMaxDimentions(){const e=this.get("rotation"),t=e==90||e==270||e==-90,r=this.get("maxWidth",this.getPrivate("maxWidth",1/0));q(r)?this.text.set(t?"maxHeight":"maxWidth",r-this.get("paddingLeft",0)-this.get("paddingRight",0)):this.text.set(t?"maxHeight":"maxWidth",void 0);const i=this.get("maxHeight",this.getPrivate("maxHeight",1/0));q(i)?this.text.set(t?"maxWidth":"maxHeight",i-this.get("paddingTop",0)-this.get("paddingBottom",0)):this.text.set(t?"maxWidth":"maxHeight",void 0)}_setDataItem(e){super._setDataItem(e),this._markDirtyKey("text"),this.text.get("populateText")&&this.text.markDirtyText()}getText(){return this._text._getText()}}Object.defineProperty(pi,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Label"});Object.defineProperty(pi,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:Ee.classNames.c
102oncat([pi.className])});class Au extends ot{_beforeChanged(){super._beforeChanged(),(this.isDirty("pointerBaseWidth")||this.isDirty("cornerRadius")||this.isDirty("pointerLength")||this.isDirty("pointerX")||this.isDirty("pointerY")||this.isDirty("width")||this.isDirty("height"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){this.markDirtyBounds();let e=this.width(),t=this.height();if(e>0&&t>0){let r=this.get("cornerRadius",8);r=an(r,0,Math.min(e/2,t/2));let i=this.get("pointerX",0),s=this.get("pointerY",0),a=this.get("pointerBaseWidth",15)/2,o=0,l=0,u=e,h=0,f=e,m=t,g=0,y=t,v=(i-o)*(m-l)-(s-l)*(f-o),x=(i-g)*(h-y)-(s-y)*(u-g);const _=this._display;if(_.moveTo(r,0),v>0&&x>0){let S=Math.round(an(i,r+a,e-a-r));s=an(s,-1/0,0),_.lineTo(S-a,0),_.lineTo(i,s),_.lineTo(S+a,0)}if(_.lineTo(e-r,0),_.arcTo(e,0,e,r,r),v>0&&x<0){let S=Math.round(an(s,r+a,t-a-r));i=an(i,e,1/0),_.lineTo(e,r),_.lineTo(e,Math.max(S-a,r)),_.lineTo(i,s),_.lineTo(e,S+a)}if(_.lineTo(e,t-r),_.arcTo(e,t,e-r,t,r),v<0&&x<0){let S=Math.round(an(i,r+a,e-a-r));s=an(s,t,1/0),_.lineTo(e-r,t),_.lineTo(S+a,t),_.lineTo(i,s),_.lineTo(S-a,t)}if(_.lineTo(r,t),_.arcTo(0,t,0,t-r,r),v<0&&x>0){let S=Math.round(an(s,r+a,t-r-a));i=an(i,-1/0,0),_.lineTo(0,t-r),_.lineTo(0,S+a),_.lineTo(i,s),_.lineTo(0,Math.max(S-a,r))}_.lineTo(0,r),_.arcTo(0,0,r,0,r),_.closePath()}}}}Object.defineProperty(Au,"className",{enumerable:!0,configurable:!0,writable:!0,value:"PointedRectangle"});Object.defineProperty(Au,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:ot.classNames.concat([Au.className])});class vn extends Ee{constructor(e,t,r,i=[]){super(e,t,r,i),Object.defineProperty(this,"_fx",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_fy",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_label",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_fillDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_strokeDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_labelDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_w",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_h",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_keepHoverDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_htmlContentHovered",{enumerable:!0,configurable:!0,writable:!0,value:!1})}_afterNew(){this._settings.themeTags=ht(this._settings.themeTags,["tooltip"]),super._afterNew(),this.set("background",Au.new(this._root,{themeTags:["tooltip","background"]})),this._label=this.children.push(pi.new(this._root,{})),this._disposers.push(this._label.events.on("boundschanged",()=>
102{this._updateBackground()})),this._disposers.push(this.on("bounds",()=>{this._updateBackground()})),this._updateTextColor(),this._root.tooltipContainer.children.push(this),this.hide(0),this._disposers.push(this.label.onPrivate("htmlElement",e=>{e&&($t(e,"pointerover",t=>{this._htmlContentHovered=!0}),$t(e,"pointerout",t=>{this._htmlContentHovered=!1}))})),this._root._tooltips.push(this)}get label(){return this._label}dispose(){super.dispose(),oi(this._root._tooltips,this)}_updateChildren(){super._updateChildren(),(this.isDirty("pointerOrientation")||this.isPrivateDirty("minWidth")||this.isPrivateDirty("minHeight"))&&this.get("background")._markDirtyKey("width"),this.get("labelText")!=null&&this.label.set("text",this.get("labelText")),this.get("labelHTML")!=null&&this.label.set("html",this.get("labelHTML"))}_changed(){if(super._changed(),(this.isDirty("pointTo")||this.isDirty("pointerOrientation"))&&this._updateBackground(),this.isDirty("tooltipTarget")&&this.updateBackgroundColor(),this.isDirty("keepTargetHover"))if(this.get("keepTargetHover")){const t=this.get("background");this._keepHoverDp=new gr([t.events.on("pointerover",r=>{let i=this.get("tooltipTarget");i&&(i.parent&&i.parent.getPrivate("tooltipTarget")==i&&(i=i.parent),i.hover())}),t.events.on("pointerout",r=>{let i=this.get("tooltipTarget");i&&(i.parent&&i.parent.getPrivate("tooltipTarget")==i&&(i=i.parent),this._htmlContentHovered||i.unhover())})]),this.label.onPrivate("htmlElement",r=>{this._keepHoverDp&&r&&this._keepHoverDp.disposers.push($t(r,"pointerleave",i=>{const s=this.root._renderer.getEvent(i);t.events.dispatch("pointerout",{type:"pointerout",originalEvent:s.event,point:s.point,simulated:!1,target:t})}))})}else this._keepHoverDp&&(this._keepHoverDp.dispose(),this._keepHoverDp=void 0)}
102_onShow(){super._onShow(),this.updateBackgroundColor()}updateBackgroundColor(){let e=this.get("tooltipTarget");const t=this.get("background");let r,i;e&&t&&(r=e.get("fill"),i=e.get("stroke"),r==null&&(r=i),this.get("getFillFromSprite")&&(this._fillDp&&this._fillDp.dispose(),r!=null&&t.set("fill",r),this._fillDp=e.on("fill",s=>{s!=null&&(t.set("fill",s),this._updateTextColor(s))}),this._disposers.push(this._fillDp)),this.get("getStrokeFromSprite")&&(this._strokeDp&&this._strokeDp.dispose(),r!=null&&t.set("stroke",r),this._strokeDp=e.on("fill",s=>{s!=null&&t.set("stroke",s)}),this._disposers.push(this._strokeDp)),this.get("getLabelFillFromSprite")&&(this._labelDp&&this._labelDp.dispose(),r!=null&&this.label.set("fill",r),this._labelDp=e.on("fill",s=>{s!=null&&this.label.set("fill",s)}),this._disposers.push(this._labelDp))),this._updateTextColor(r)}_updateTextColor(e){this.get("autoTextColor")&&(e==null&&(e=this.get("background").get("fill")),e==null&&(e=this._root.interfaceColors.get("background")),e instanceof be&&this.label.set("fill",be.alternative(e,this._root.interfaceColors.get("alternativeText"),this._root.interfaceColors.get("text"))))}_setDataItem(e){super._setDataItem(e),this.label._setDataItem(e)}
102_updateBackground(){super.updateBackground();const e=this._root.container;if(e){let t=.5,r=.5,i=this.get("centerX");i instanceof $e&&(t=i.value);let s=this.get("centerY");s instanceof $e&&(r=s.value);let a=e.width(),o=e.height(),l=this.parent,u=0,h=0;if(l){u=l.x(),h=l.y();const V=l.get("layerMargin");V&&(u+=V.left||0,h+=V.top||0,a+=(V.left||0)+(V.right||0),o+=(V.top||0)+(V.bottom||0))}const f=this.get("bounds",{left:-u,top:-h,right:a-u,bottom:o-h});this._updateBounds();let m=this.width(),g=this.height();m===0&&(m=this._w),g===0&&(g=this._h);let y=this.get("pointTo",{x:a/2,y:o/2}),v=y.x,x=y.y,_=this.get("pointerOrientation"),S=this.get("background"),w=0,k=0,P=0;S instanceof Au&&(w=S.get("pointerLength",0),k=S.get("strokeWidth",0)/2,P=k,S.set("width",m),S.set("height",g));let j=0,A=0,M=f.right-f.left,L=f.bottom-f.top;_=="horizontal"||_=="left"||_=="right"?(k=0,_=="horizontal"?v>f.left+M/2?(v-=m*(1-t)+w,P*=-1):v+=m*t+w:_=="left"?v+=m*(1-t)+w:(v-=m*t+w,P*=-1)):(P=0,_=="vertical"?x>f.top+g/2+w?x-=g*(1-r)+w:(x+=g*r+w,k*=-1):_=="down"?x-=g*(1-r)+w:(x+=g*r+w,k*=-1)),v=an(v,f.left+m*t,f.left+M-m*(1-t))+P,x=an(x,f.top+g*r,f.top+L-g*(1-r))-k,j=y.x-v+m*t+P,A=y.y-x+g*r-k,this._fx=v,this._fy=x;const I=this.get("animationDuration",0);if(I>0&&this.get("visible")&&this.get("opacity")>.1){const V=this.get("animationEasing");this.animate({key:"x",to:v,duration:I,easing:V}),this.animate({key:"y",to:x,duration:I,easing:V})}else this.set("x",v),this.set("y",x);S instanceof Au&&(S.set("pointerX",j),S.set("pointerY",A)),m>0&&(this._w=m),g>0&&(this._h=g)}}}Object.defineProperty(vn,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Tooltip"});Object.defineProperty(vn,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:Ee.classNames.concat([vn.className])});class G7 extends _n{_setDefaults(){this._setDefault("negativeBase",0),this._setDefault("numberFormat","#,###.#####"),this._setDefault("smallNumberThreshold",1);const e="_big_number_suffix_",t="_small_number_suffix_",r="_byte_suffix_";this._setDefault("bigNumberPrefixes",[{number:1e3,suffix:this._t(e+"3")},{number:1e6,suffix:this._t(e+"6")},{number:1e9,suffix:this._t(e+"9")},{number:1e12,suffix:this._t(e+"12")},{number:1e15,suffix:this._t(e+"15")},{number:1e18,suffix:this._t(e+"18")},{number:1e21,suffix:this._t(e+"21")},{number:1e24,suffix:this._t(e+"24")}]),this._setDefault("smallNumberPrefixes",[{number:1e-24,suffix:this._t(t+"24")},{number:1e-21,suffix:this._t(t+"21")},{number:1e-18,suffix:this._t(t+"18")},{number:1e-15,suffix:this._t(t+"15")},{number:1e-12,suffix:this._t(t+"12")},{number:1e-9,suffix:this._t(t+"9")},{number:1e-6,suffix:this._t(t+"6")},{number:.001,suffix:this._t(t+"3")}]),this._setDefault("bytePrefixes",[{number:1,suffix:this._t(r+"B")},{number:1024,suffix:this._t(r+"KB")},{number:1048576,suffix:this._t(r+"MB")},{number:1073741824,suffix:this._t(r+"GB")},{number:1099511627776,suffix:this._t(r+"TB")},{number:0x4000000000000,suffix:this._t(r+"PB")}]),super._setDefaults()}_beforeChanged(){super._beforeChanged()}format(e,t,r){(t==null||qu(t)&&t.toLowerCase()==="number")&&(t=this.get("numberFormat",""));let i,s=Number(e);if(Xf(t))try{return this.get("intlLocales")?new Intl.NumberFormat(this.get("intlLocales"),t).format(s):new Intl.NumberFormat(void 0,t).format(s)}catch{return"Invalid"}else{t=n1(t);let a=this.parseFormat(t,this._root.language),o;s>this.get("negativeBase")?o=a.positive:s<this.get("negativeBase")?o=a.negative:o=a.zero,r!=null&&!o.mod&&(o=Yo(o),o.decimals.active=s==0?0:r),i=o.template.split(ao).join(this.applyFormat(s,o))}return this.get("forceLTR")===!0&&(i="â"+i),i}parseFormat(e,t){const r=t.translateEmpty("_thousandSeparator"),i=t.translateEmpty("_decimalSeparator");let s={positive:{thousands:{active:-1,passive:-1,interval:-1,separator:r},decimals:{active:-1,passive:-1,separator:i},template:"",source:"",parsed:!1},negative:{thousands:{active:-1,passive:-1,interval:-1,separator:r},decimals:{active:-1,passive:-1,separator:i},template:"",source:"",parsed:!1},zero:{thousands:{active:-1,passive:-1,interval:-1,separator:r},decimals:{active:-1,passive:-1,separator:i},template:"",source:"",parsed:!1}};e=e.replace("||",xu);let a=e.split("|");return s.positive.source=a[0],typeof a[2]>"u"?s.zero=s.positive:s.zero.source=a[2],typeof a[1]>"u"?s.negative=s.positive:s.negative.source=a[1],gt(s,(o,l)=>{if(l.parsed)return;let u=l.source;u.toLowerCase()==="number"&&(u=this.get("numberFormat","#,###.#####"));let h=ji.chunk(u,!0);for(let f=0;f<h.length;f++){let m=h[f];if(m.text=m.text.replace(xu,"|"),m.type==="value"){let g=m.text.match(/[#0.,]+[ ]?[abespABESP%!]?[abespABESPâ°!]?/);if(g)if(g===null||g[0]==="")l.template+=m.text;else{let y=g[0].match(/[abespABESP%â°!]{2}|[abespABESP%â°]{1}$/);y&&(l.mod=y[0].toLowerCase(),l.modSpacing=!!g[0].match(/[ ]{1}[abespABESP%â°!]{1}$/));let v=g[0].split(".");if(v[0]!==""){l.thousands.active=(v[0].match(/0/g)||[]).length,l.thous
102ands.passive=(v[0].match(/\#/g)||[]).length+l.thousands.active;let x=v[0].split(",");x.length===1||(l.thousands.interval=(x.pop()||"").length,l.thousands.interval===0&&(l.thousands.interval=-1))}typeof v[1]>"u"||(l.decimals.active=(v[1].match(/0/g)||[]).length,l.decimals.passive=(v[1].match(/\#/g)||[]).length+l.decimals.active),l.template+=m.text.split(g[0]).join(ao)}}else l.template+=m.text}l.parsed=!0}),s}applyFormat(e,t){let r=e<0;e=Math.abs(e);let i="",s="",a=t.mod?t.mod.split(""):[];if(a.indexOf("b")!==-1){let f=this.applyPrefix(e,this.get("bytePrefixes"),a.indexOf("!")!==-1);e=f[0],i=f[1],s=f[2],t.modSpacing&&(s=" "+s)}else if(a.indexOf("a")!==-1){let f=this.applyPrefix(e,e<this.get("smallNumberThreshold")?this.get("smallNumberPrefixes"):this.get("bigNumberPrefixes"),a.indexOf("!")!==-1);e=f[0],i=f[1],s=f[2],t.modSpacing&&(s=" "+s)}else if(a.indexOf("p")!==-1){let f=Math.min(e.toString().length+2,21);e=parseFloat(e.toPrecision(f)),i=this._root.language.translate("_percentPrefix"),s=this._root.language.translate("_percentSuffix"),i==""&&s==""&&(s="%")}else if(a.indexOf("%")!==-1){let f=Math.min(e.toString().length+2,21);e*=100,e=parseFloat(e.toPrecision(f)),s="%"}else if(a.indexOf("â°")!==-1){let f=Math.min(e.toString().length+3,21);e*=1e3,e=parseFloat(e.toPrecision(f)),s="â°"}if(a.indexOf("e")!==-1){let f;t.decimals.passive>=0?f=e.toExponential(t.decimals.passive).split("e"):f=e.toExponential().split("e"),e=Number(f[0]),s="e"+f[1],t.modSpacing&&(s=" "+s)}else if(t.decimals.passive===0)e=Math.round(e);else if(t.decimals.passive>0){let f=Math.pow(10,t.decimals.passive);e=Math.round(e*f)/f}let o="",l=J8(e).split("."),u=l[0];if(u.length<t.thousands.active&&(u=Array(t.thousands.active-u.length+1).join("0")+u),t.thousands.interval>0){let f=[],m=u.split("").reverse().join("");for(let g=0,y=u.length;g<=y;g+=t.thousands.interval){let v=m.substr(g,t.thousands.interval).split("").reverse().join("");v!==""&&f.unshift(v)}u=f.join(t.thousands.separator)}o+=u,l.length===1&&l.push("");let h=l[1];return h.length<t.decimals.active&&(h+=Array(t.decimals.active-h.length+1).join("0")),h!==""&&(o+=t.decimals.separator+h),o===""&&(o="0"),e!==0&&r&&a.indexOf("s")===-1&&(o="-"+o),i&&(o=i+o),s&&(o+=s),o}applyPrefix(e,t,r=!1){let i=e,s="",a="",o=!1,l=1;for(let u=0,h=t.length;u<h;u++)t[u].number<=e&&(t[u].number===0?i=0:(i=e/t[u].number,l=t[u].number),s=t[u].prefix,a=t[u].suffix,o=!0);return!o&&r&&t.length&&e!=0&&(i=e/t[0].number,s=t[0].prefix,a=t[0].suffix,o=!0),o&&(i=parseFloat(i.toPrecision(Math.min(l.toString().length+Math.floor(i).toString().replace(/[^0-9]*/g,"").length,21)))),[i,s,a]}escape(e){return e.replace("||",xu)}unescape(e){return e.replace(xu,"|")}}function DR(n,e){let t=0,r=0,i=1,s=0,a=0,o=0,l=0,u=0;return n.formatToParts(e).forEach(h=>{switch(h.type){case"year":t=+h.value;break;case"month":r=+h.value-1;break;case"day":i=+h.value;break;case"hour":s=+h.value;break;case"minute":a=+h.value;break;case"second":o=+h.value;break;case"fractionalSecond":l=+h.value;break;case"weekday":switch(h.value){case"Sun":u=0;break;case"Mon":u=1;break;case"Tue":u=2;break;case"Wed":u=3;break;case"Thu":u=4;break;case"Fri":u=5;break;case"Sat":u=6;break}}}),s===24&&(s=0),{year:t,month:r,day:i,hour:s,minute:a,second:o,millisecond:l,weekday:u}}function oE(n,e){const{year:t,month:r,day:i,hour:s,minute:a,second:o,millisecond:l}=DR(n,e);return Date.UTC(t,r,i,s,a,o,l)}class X7{constructor(e,t){if(Object.defineProperty(this,"_utc",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_dtf",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),!t)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this.name=e,this._utc=new Intl.DateTimeFormat("UTC",{hour12:!1,timeZone:"UTC",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",weekday:"short",fractionalSecondDigits:3}),this._dtf=new Intl.DateTimeFormat("UTC",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",weekday:"short",fractionalSecondDigits:3})}static new(e){return new this(e,!0)}convertLocal(e){const t=this.offsetUTC(e),r=e.getTimezoneOffset(),i=new Date(e);i.setUTCMinutes(i.getUTCMinutes()-(t-r));const s=i.getTimezoneOffset();return r!=s&&i.setUTCMinutes(i.getUTCMinutes()+s-r),i}offsetUTC(e){const t=oE(this._utc,e),r=oE(this._dtf,e);return(t-r)/6e4}parseDate(e){return DR(this._dtf,e)}}
102class q7 extends _n{_setDefaults(){this._setDefault("capitalize",!0),this._setDefault("dateFormat","yyyy-MM-dd"),super._setDefaults()}_beforeChanged(){super._beforeChanged()}format(e,t){(typeof t>"u"||t==="")&&(t=this.get("dateFormat","yyyy-MM-dd"));let r,i=e;if(Xf(t))try{const o=this.get("intlLocales");return o?new Intl.DateTimeFormat(o,t).format(i):new Intl.DateTimeFormat(void 0,t).format(i)}catch{return"Invalid"}let s=this.parseFormat(t);const a=this._root.timezone;return a&&!this._root.utc&&(i=a.convertLocal(i)),q(i.getTime())?(r=this.applyFormat(i,s),this.get("capitalize")&&(r=r.replace(/^.{1}/,r.substr(0,1).toUpperCase())),r):"Invalid date"}applyFormat(e,t){let r=t.template,i,s,a,o,l,u,h,f,m=e.getTime();this._root.utc?(i=e.getUTCFullYear(),s=e.getUTCMonth(),a=e.getUTCDay(),o=e.getUTCDate(),l=e.getUTCHours(),u=e.getUTCMinutes(),h=e.getUTCSeconds(),f=e.getUTCMilliseconds()):(i=e.getFullYear(),s=e.getMonth(),a=e.getDay(),o=e.getDate(),l=e.getHours(),u=e.getMinutes(),h=e.getSeconds(),f=e.getMilliseconds());for(let g=0,y=t.parts.length;g<y;g++){let v="";switch(t.parts[g]){case"G":v=this._t(i<0?"_era_bc":"_era_ad");break;case"yyyy":v=Math.abs(i).toString(),i<0&&(v+=this._t("_era_bc"));break;case"yyy":case"yy":case"y":v=Math.abs(i).toString().substr(-t.parts[g].length),i<0&&(v+=this._t("_era_bc"));break;case"YYYY":case"YYY":case"YY":case"Y":let x=_7(e,this._root.utc);t.parts[g]=="YYYY"?v=Math.abs(x).toString():v=Math.abs(x).toString().substr(-t.parts[g].length),x<0&&(v+=this._t("_era_bc"));break;case"u":break;case"q":v=""+Math.ceil((e.getMonth()+1)/3);break;case"MMMMM":v=this._t(this._getMonth(s)).substr(0,1);break;case"MMMM":v=this._t(this._getMonth(s));break;case"MMM":v=this._t(this._getShortMonth(s));break;case"MM":v=en(s+1,2,"0");break;case"M":v=(s+1).toString();break;case"ww":v=en(Kg(e,this._root.utc),2,"0");break;case"w":v=Kg(e,this._root.utc).toString();break;case"W":v=x7(e,this._root.utc).toString();break;case"dd":v=en(o,2,"0");break;case"d":v=o.toString();break;case"DD":case"DDD":v=en(tE(e,this._root.utc).toString(),t.parts[g].length,"0");break;case"D":v=tE(e,this._root.utc).toString();break;case"F":break;case"g":break;case"t":v=this._root.language.translateFunc("_dateOrd").call(this,o);break;case"E":v=(a||7).toString();break;case"EE":v=en((a||7).toString(),2,"0");break;case"EEE":case"eee":v=this._t(this._getShortWeekday(a));break;case"EEEE":case"eeee":v=this._t(this._getWeekday(a));break;case"EEEEE":case"eeeee":v=this._t(this._getShortWeekday(a)).substr(0,1);break;case"e":case"ee":v=(a-(this._root.locale.firstDayOfWeek||1)+1).toString(),t.parts[g]=="ee"&&(v=en(v,2,"0"));break;case"a":l>=12?v=this._t("PM"):v=this._t("AM");break;case"aa":l>=12?v=this._t("P.M."):v=this._t("A.M.");break;case"aaa":l>=12?v=this._t("P"):v=this._t("A");break;case"h":v=bp(l).toString();break;case"hh":v=en(bp(l),2,"0");break;case"H":v=l.toString();break;case"HH":v=en(l,2,"0");break;case"K":v=bp(l,0).toString();break;case"KK":v=en(bp(l,0),2,"0");break;case"k":v=(l+1).toString();break;case"kk":v=en(l+1,2,"0");break;case"m":v=u.toString();break;case"mm":v=en(u,2,"0");break;case"s":v=h.toString();break;case"ss":v=en(h,2,"0");break;case"S":case"SS":case"SSS":v=Math.round(f/1e3*Math.pow(10,t.parts[g].length)).toString();break;case"x":v=m.toString();break;case"n":case"nn":case"nnn":v=en(f,t.parts[g].length,"0");break;case"z":v=yp(e,!1,!1,this._root.utc,this._root.timezone?this._root.timezone.name:void 0).replace(/[+-]+[0-9]+$/,"");break;case"zz":v=yp(e,!0,!1,this._root.utc,this._root.timezone?this._root.timezone.name:void 0);break;case"zzz":v=yp(e,!1,!0,this._root.utc,this._root.timezone?this._root.timezone.name:void 0).replace(/[+-]+[0-9]+$/,"");break;case"zzzz":v=yp(e,!0,!0,this._root.utc,this._root.timezone?this._root.timezone.name:void 0);break;case"Z":case"ZZ":let _=this._root.utc?"UTC":this._root.timezone;_ instanceof X7&&(_=_.name);const S=_?S7(_):e.getTimezoneOffset();let w=Math.abs(S)/60,k=Math.floor(w),P=w*60-k*60;this._root.utc&&(k=0,P=0),t.parts[g]=="Z"?(v="GMT",v+=S>0?"-":"+",v+=en(k,2)+":"+en(P,2)):(v=S>0?"-":"+",v+=en(k,2)+en(P,2));break;case"i":v=e.toISOString();break;case"I":v=e.toUTCString();break}r=r.replace(ao,v)}return r}parseFormat(e){let t={template:"",parts:[]}
vendor: 3,735 bytes, line 102
102,r=ji.chunk(e,!0);for(let i=0;i<r.length;i++){let s=r[i];if(s.type==="value"){if(s.text.match(/^date$/i)){let o=this.get("dateFormat","yyyy-MM-dd");qu(o)||(o="yyyy-MM-dd"),s.text=o}let a=s.text.match(/G|yyyy|yyy|yy|y|YYYY|YYY|YY|Y|u|q|MMMMM|MMMM|MMM|MM|M|ww|w|W|dd|d|DDD|DD|D|F|g|EEEEE|EEEE|EEE|EE|E|eeeee|eeee|eee|ee|e|aaa|aa|a|hh|h|HH|H|KK|K|kk|k|mm|m|ss|s|SSS|SS|S|A|zzzz|zzz|zz|z|ZZ|Z|t|x|nnn|nn|n|i|I/g);if(a)for(let o=0;o<a.length;o++)t.parts.push(a[o]),s.text=s.text.replace(a[o],ao)}t.template+=s.text}return t}_months(){return["January","February","March","April","May","June","July","August","September","October","November","December"]}_getMonth(e){return this._months()[e]}_shortMonths(){return["Jan","Feb","Mar","Apr","May(short)","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}_getShortMonth(e){return this._shortMonths()[e]}_weekdays(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]}_getWeekday(e){return this._weekdays()[e]}_shortWeekdays(){return["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]}_getShortWeekday(e){return this._shortWeekdays()[e]}parse(e,t){if(e instanceof Date)return e;if(q(e))return new Date(e);if(t=="x")return new Date(parseInt(e));qu(e)||(e=e.toString());let r,i="";t=n1(t),t=t.substr(0,e.length);let s=this.parseFormat(t),a={year:-1,year3:-1,year2:-1,year1:-1,month:-1,monthShort:-1,monthLong:-1,weekdayShort:-1,weekdayLong:-1,day:-1,yearDay:-1,week:-1,hourBase0:-1,hour12Base0:-1,hourBase1:-1,hour12Base1:-1,minute:-1,second:-1,millisecond:-1,millisecondDigits:-1,am:-1,zone:-1,timestamp:-1,iso:-1},o={year:1970,month:0,day:1,hour:0,minute:0,second:0,millisecond:0,timestamp:null,offset:0,utc:this._root.utc},l=0,u=0;for(let m=0;m<s.parts.length;m++){switch(u=m+l+1,s.parts[m]){case"yyyy":case"YYYY":i+="([0-9]{4})",a.year=u;break;case"yyy":case"YYY":i+="([0-9]{3})",a.year3=u;break;case"yy":case"YY":i+="([0-9]{2})",a.year2=u;break;case"y":case"Y":i+="([0-9]{1})",a.year1=u;break;case"MMMM":i+="("+this.getStringList(this._months()).join("|")+")",a.monthLong=u;break;case"MMM":i+="("+this.getStringList(this._shortMonths()).join("|")+")",a.monthShort=u;break;case"MM":case"M":i+="([0-9]{2}|[0-9]{1})",a.month=u;break;case"ww":case"w":i+="([0-9]{2}|[0-9]{1})",a.week=u;break;case"dd":case"d":i+="([0-9]{2}|[0-9]{1})",a.day=u;break;case"DDD":case"DD":case"D":i+="([0-9]{3}|[0-9]{2}|[0-9]{1})",a.yearDay=u;break;case"dddd":i+="("+this.getStringList(this._weekdays()).join("|")+")",a.weekdayLong=u;break;case"ddd":i+="("+this.getStringList(this._shortWeekdays()).join("|")+")",a.weekdayShort=u;break;case"aaa":case"aa":case"a":i+="("+this.getStringList(["AM","PM","A.M.","P.M.","A","P"]).join("|")+")",a.am=u;break;case"hh":case"h":i+="([0-9]{2}|[0-9]{1})",a.hour12Base1=u;break;case"HH":case"H":i+="([0-9]{2}|[0-9]{1})",a.hourBase0=u;break;case"KK":case"K":i+="([0-9]{2}|[0-9]{1})",a.hour12Base0=u;break;case"kk":case"k":i+="([0-9]{2}|[0-9]{1})",a.hourBase1=u;break;case"mm":case"m":i+="([0-9]{2}|[0-9]{1})",a.minute=u;break;case"ss":case"s":i+="([0-9]{2}|[0-9]{1})",a.second=u;break;case"SSS":case"SS":case"S":i+="([0-9]{3}|[0-9]{2}|[0-9]{1})",a.millisecond=u,a.millisecondDigits=s.parts[m].length;break;case"nnn":case"nn":case"n":i+="([0-9]{3}|[0-9]{2}|[0-9]{1})",a.millisecond=u;break;case"x":i+="([0-9]{1,})",a.timestamp=u;break;case"Z":i+="GMT([-+]+[0-9]{2}:[0-9]{2})",a.zone=u;break;case"ZZ":i+="([\\-+]+[0-9]{2}[0-9]{2})",a.zone=u;break;case"i":i+="([0-9]{4})-?([0-9]{2})-?([0-9]{2})T?([0-9]{2}):?([0-9]{2}):?([0-9]{2})\\.?([0-9]{0,3})([zZ]|[+\\-][0-9]{2}:?[0-9]{2}|$)",a.iso=u,l+=7;break;case"G":case"YYYY":case"YYY":case"YY":case"Y":case"MMMMM":case"W":case"EEEEE":case"EEEE":case"EEE":case"EE":case"E":case"eeeee":case"eeee":case"eee":case"ee":case"e":case"zzzz"
102:case"zzz":case"zz":case"z":case"t":l--;break}i+="[^0-9]*"}let h=new RegExp(i),f=e.match(h);if(f){if(a.year>-1&&(o.year=parseInt(f[a.year])),a.year3>-1){let m=parseInt(f[a.year3]);m+=1e3,o.year=m}if(a.year2>-1){let m=parseInt(f[a.year2]);m>50?m+=1e3:m+=2e3,o.year=m}if(a.year1>-1){let m=parseInt(f[a.year1]);m=Math.floor(new Date().getFullYear()/10)*10+m,o.year=m}if(a.monthLong>-1&&(o.month=this.resolveMonth(f[a.monthLong])),a.monthShort>-1&&(o.month=this.resolveShortMonth(f[a.monthShort])),a.month>-1&&(o.month=parseInt(f[a.month])-1),a.week>-1&&a.day===-1&&(o.month=0,o.day=w7(parseInt(f[a.week]),o.year,1,this._root.utc)),a.day>-1&&(o.day=parseInt(f[a.day])),a.yearDay>-1&&(o.month=0,o.day=parseInt(f[a.yearDay])),a.hourBase0>-1&&(o.hour=parseInt(f[a.hourBase0])),a.hourBase1>-1&&(o.hour=parseInt(f[a.hourBase1])-1),a.hour12Base0>-1){let m=parseInt(f[a.hour12Base0]);m==11&&(m=0),a.am>-1&&!this.isAm(f[a.am])&&(m+=12),o.hour=m}if(a.hour12Base1>-1){let m=parseInt(f[a.hour12Base1]);m==12&&(m=0),a.am>-1&&!this.isAm(f[a.am])&&(m+=12),o.hour=m}if(a.minute>-1&&(o.minute=parseInt(f[a.minute])),a.second>-1&&(o.second=parseInt(f[a.second])),a.millisecond>-1){let m=parseInt(f[a.millisecond]);a.millisecondDigits==2?m*=10:a.millisecondDigits==1&&(m*=100),o.millisecond=m}if(a.timestamp>-1){o.timestamp=parseInt(f[a.timestamp]);const m=new Date(o.timestamp);o.year=m.getUTCFullYear(),o.month=m.getUTCMonth(),o.day=m.getUTCDate(),o.hour=m.getUTCHours(),o.minute=m.getUTCMinutes(),o.second=m.getUTCSeconds(),o.millisecond=m.getUTCMilliseconds()}a.zone>-1&&(o.offset=this.resolveTimezoneOffset(new Date(o.year,o.month,o.day),f[a.zone])),a.iso>-1&&(o.year=dr(f[a.iso+0]),o.month=dr(f[a.iso+1])-1,o.day=dr(f[a.iso+2]),o.hour=dr(f[a.iso+3]),o.minute=dr(f[a.iso+4]),o.second=dr(f[a.iso+5]),o.millisecond=dr(f[a.iso+6]),f[a.iso+7]=="Z"||f[a.iso+7]=="z"?o.utc=!0:f[a.iso+7]!=""&&(o.offset=this.resolveTimezoneOffset(new Date(o.year,o.month,o.day),f[a.iso+7]))),o.utc?r=new Date(Date.UTC(o.year,o.month,o.day,o.hour,o.minute,o.second,o.millisecond)):r=new Date(o.year,o.month,o.day,o.hour,o.minute+o.offset,o.second,o.millisecond)}else r=new Date(e);return r}resolveTimezoneOffset(e,t){if(t.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/)){let i=t.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/),s=i[1],a=i[2],o=i[3],l=parseInt(a)*60+parseInt(o);s=="+"&&(l*=-1);let u=(e||new Date).getTimezoneOffset();return l-u}return 0}resolveMonth(e){let t=this._months().indexOf(e);return t>-1||!this._root.language.isDefault()&&(t=this._root.language.translateAll(this._months()).indexOf(e),t>-1)?t:0}resolveShortMonth(e){let t=this._shortMonths().indexOf(e);return t>-1||(t=this._months().indexOf(e),t>-1)||this._root.language&&!this._root.language.isDefault()&&(t=this._root.language.translateAll(this._shortMonths()).indexOf(e),t>-1)?t:0}isAm(e){return this.getStringList(["AM","A.M.","A"]).indexOf(e.toUpperCase())>-1}getStringList(e){let t=[];for(let r=0;r<e.length;r++)this._root.language?t.push(eE(this._t(e[r]))):t.push(eE(e[r]));return t}}class K7 extends _n{constructor(){super(...arguments),Object.defineProperty(this,"_unitAliases",{enumerable:!0,configurable:!0,writable:!0,value:{Y:"y",D:"d",H:"h",K:"h",k:"h",n:"S"}})}_setDefaults(){const e="_duration_millisecond",t="_duration_second",r="_duration_minute",i="_duration_hour",s="_duration_day",a="_duration_week",o="_duration_month",l="_duration_year",u="_second",h="_minute",f="_hour",m="_day",g="_week",y="_week",v="_year";this._setDefault("negativeBase",0),this._setDefault("baseUnit","second"),this._setDefault("durationFormats",{millisecond:{millisecond:this._t(e),second:this._t(e+u),minute:this._t(e+h),hour:this._t(e+f),day:this._t(e+m),week:this._t(e+g),month:this._t(e+y),year:this._t(e+v)},second:{second:this._t(t),minute:this._t(t+h),hour:this._t(t+f),day:this._t(t+m),week:this._t(t+g),month:this._t(t+y),year:this._t(t+v)},minute:{minute:this._t(r),hour:this._t(r+f),day:this._t(r+m),week:this._t(r+g),month:this._t(r+y),year:this._t(r+v)},hour:{hour:this._t(i),day:this._t(i+m),week:this._t(i+g),month:this._t(i+y),year:this._t(i+v)},day:{day:this._t(s),week:this._t(s+g),month:this._t(s+y),year:this._t(s+v)},week:{week:this._t(a),month:this._t(a+y),year:this._t(a+v)},month:{month:this._t(o),year:this._t(o+v)},year:{year:this._t(l)}}),super._setDefaults()}_beforeChanged(){super._beforeChanged()}format(e,t,r){let i=r||this.get("baseUnit");(typeof t>"u"||t==="")&&(this.get("durationFormat")!=null?t=this.get("durationFormat"):t=this.getFormat(dr(e),void 0,i)),t=n1(t);let s=this.parseFormat(t,i),a=Number(e),o;a>this.get("negativeBase")?o=s.positive:a<this.get("negativeBase")?o=s.negative:o=s.zero;let l=this.applyFormat(a,o);return o.color!==""&&(l="["+o.color+"]"+l+"[/]"),l}parseFormat(e,t){let r=t||this.get("baseUnit"),i={positive:{color:"",template:"",parts:[],source:"",baseUnit:r,parsed:!1,absolute:!1},negative:{color:"",template:"",parts:[],source:"",baseUnit:r,parsed:!1,absolute:!1},zero:{color:"",template:"",parts:[],source:"",baseUnit:r,parsed:!1,absolute:!1}};e=e.replace("||",xu);let s=e.split("|");return i.positive.source=s[0],typeof s[2]>"u"?i.zero=i.positive:i.zero.source=s[2],typeof s[1]>"u"?i.negative=i.positive:i.negative.source=s[1],gt(i,(a,o)=>
102{if(o.parsed)return;let l=o.source,u=[];u=o.source.match(/^\[([^\]]*)\]/),u&&u.length&&u[0]!==""&&(l=o.source.substr(u[0].length),o.color=u[1]);let h=ji.chunk(l,!0);for(let f=0;f<h.length;f++){let m=h[f];if(m.text=m.text.replace(xu,"|"),m.type==="value"){m.text.match(/[yYMdDwhHKkmsSn]+a/)&&(o.absolute=!0,m.text=m.text.replace(/([yYMdDwhHKkmsSn]+)a/,"$1"));let g=m.text.match(/y+|Y+|M+|d+|D+|w+|h+|H+|K+|k+|m+|s+|S+|n+/g);if(g)for(let y=0;y<g.length;y++)g[y]==null&&(g[y]=this._unitAliases[g[y]]),o.parts.push(g[y]),m.text=m.text.replace(g[y],ao)}o.template+=m.text}o.parsed=!0}),i}applyFormat(e,t){let r=!t.absolute&&e<this.get("negativeBase");e=Math.abs(e);let i=this.toTimeStamp(e,t.baseUnit),s=t.template;for(let a=0,o=t.parts.length;a<o;a++){let l=t.parts[a],u=this._toTimeUnit(l.substr(0,1)),h=l.length,f=Math.floor(i/this._getUnitValue(u));s=s.replace(ao,en(f,h,"0")),i-=f*this._getUnitValue(u)}return r&&(s="-"+s),s}toTimeStamp(e,t){return e*this._getUnitValue(t)}_toTimeUnit(e){switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year"}}getFormat(e,t,r){if(this.get("durationFormat")!=null)return this.get("durationFormat");if(r||(r=this.get("baseUnit")),t!=null&&e!=t){e=Math.abs(e),t=Math.abs(t);let i=this.getValueUnit(Math.max(e,t),r);return this.get("durationFormats")[r][i]}else{let i=this.getValueUnit(e,r);return this.get("durationFormats")[r][i]}}getValueUnit(e,t){t||(t=this.get("baseUnit"));let r,i=this.getMilliseconds(e,t);return o7(this._getUnitValues(),(s,a)=>{if(s==t||r){if(i/a<=1)return r||(r=s),!1;r=s}return!0}),r}getMilliseconds(e,t){return t||(t=this.get("baseUnit")),e*this._getUnitValue(t)}_getUnitValue(e){return this._getUnitValues()[e]}_getUnitValues(){return{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2592e6,year:31536e6}}}const kR={firstDayOfWeek:1,_decimalSeparator:".",_thousandSeparator:",",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"μ",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date:"yyyy-MM-dd",_date_millisecond:"mm:ss SSS",_date_millisecond_full:"HH:mm:ss SSS",_date_second:"HH:mm:ss",_date_second_full:"HH:mm:ss",_date_minute:"HH:mm",_date_minute_full:"HH:mm - MMM dd, yyyy",_date_hour:"HH:mm",_date_hour_full:"HH:mm - MMM dd, yyyy",_date_day:"MMM dd",_date_day_full:"MMM dd, yyyy",_date_week:"ww",_date_week_full:"MMM dd, yyyy",_date_month:"MMM",_date_month_full:"MMM, yyyy",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"AD",_era_bc:"BC",A:"",P:"",AM:"",PM:"","A.M.":"","P.M.":"",January:"",February:"",March:"",April:"",May:"",June:"",July:"",August:"",September:"",October:"",November:"",December:"",Jan:"",Feb:"",Mar:"",Apr:"","May(short)":"May",Jun:"",Jul:"",Aug:"",Sep:"",Oct:"",Nov:"",Dec:"",Sunday:"",Monday:"",Tuesday:"",Wednesday:"",Thursday:"",Friday:"",Saturday:"",Sun:"",Mon:"",Tue:"",Wed:"",Thu:"",Fri:"",Sat:"",_dateOrd:function(n){let e="th";if(n<11||n>13)switch(n%10){case 1:e="st";break;case 2:e="nd";break;case 3:e="rd";break}return e},"Zoom Out":"",Play:"",Stop:"",Legend:"","Press ENTER to toggle":"",Loading:"",Home:"",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Force directed tree":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"",Image:"",Data:"",Print:"","Press ENTER or use arrow keys to navigate":"","Press ENTER to open":"","Press ENTER to print.":"","Press ENTER to export as %1.":"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"",HTML:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"","From %1":"","To %1":"","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":"",Close:"",Minimize:""};class Q7 extends _n{_setDefaults(){this.setPrivate("defaultLocale",kR),super._setDefaults()}translate(e,t,...r){t||(t=this._root.locale||this.getPrivate("defaultLocale"));let i=e,s=t[e];if(s===null)i="";else if(s!=null)s&&(i=s);else if(t!==this.getPrivate("defaultLocale"))return this.translate(e,this.getPrivate("defaultLocale"),...r);if(r.length)for(let a=r.length,o=0;o<a;++o)i=i.split("%"+(o+1)).join(r[o]);return i}translateAny(e,t,...r){return this.translate(e,t,...r)}setTranslationAny(e,t,r){const i=r||this._root.locale;i[e]=t}setTranslationsAny(e,t){gt(e,(r,i)=>{this.setTranslationAny(r,i,t)})}translateEmpty(e,t,...r){let i=this.translate(e,t,...r);return i==e?"":i}translateFunc(e,t){return this._root.locale[e]?this._root.locale[e]:t!==this.getPrivate("defaultLocale")?this.translateFunc(e,this.getPrivate("defaultLocale")):()=>""}translateAll(e,t){return this.isDefault()?e:Q0(e,r=>this.translate(r,t))}isDefault(){return this.getPrivate("defaultLocale")===this._root.locale}}class ws{constructor(e,t){if(Object.defineProperty(this,"_root",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_rules",{enumerable:!0,configurable:!0,writable:!0,value:{}}),this._root=e,!t)throw new Error("You cannot use `new Class()`, instead use `Class.new()`")}static new(e){const t=new this(e,!0);return t.setupDefaultRules(),t}setupDefaultRules(){}_lookupRules(e){return this._rules[e]}ruleRaw(e,t=[]){let r=this._rules[e];r||(r=this._rules[e]=[]),t.sort(hs);const{index:i,found:s}=ex(r,a=>{const o=hs(a.tags.length,t.length);return o===0?wR(a.tags,t,hs):o});if(s)return r[i].template;{const a=Gt.new({});return r.splice(i,0,{tags:t,template:a}),a}}rule(e,t=[]){return this.ruleRaw(e,t)}}function xe(n,e,t,r){n.set(e,t.get(r)),t.on(r,i=>{n.set(e,i)})}class Z7 extends ws{setupDefaultRules(){super.setupDefaultRules();const e=this._root.language,t=this._root.interfaceColors,r=this._root.horizontalLayout,i=this._root.verticalLayout,s=this.rule.bind(this);s("InterfaceColors").setAll({stroke:be.fromHex(15066597),fill:be.fromHex(15987699),primaryButton:be.fromHex(6788316),primaryButtonHover:be.fromHex(6779356),primaryButtonDown:be.fromHex(6872182),primaryButtonActive:be.fromHex(6872182),primaryButtonText:be.fromHex(16777215),primaryButtonStroke:be.fromHex(16777215),secondaryButton:be.fromHex(14277081),secondaryButtonHover:be.fromHex(10724259),secondaryButtonDown:be.fromHex(9276813),secondaryButtonActive:be.fromHex(15132390),secondaryButtonText:be.fromHex(0),secondaryButtonStroke:be.fromHex(16777215),grid:be.fromHex(0),background:be.fromHex(16777215),alternativeBackgroun
102d:be.fromHex(0),text:be.fromHex(0),alternativeText:be.fromHex(16777215),disabled:be.fromHex(11382189),positive:be.fromHex(5288704),negative:be.fromHex(11730944)});{const a=s("ColorSet");a.setAll({passOptions:{hue:.05,saturation:0,lightness:0},colors:[be.fromHex(6797276)],step:1,reuse:!1,startIndex:0}),a.setPrivate("currentStep",0),a.setPrivate("currentPass",0)}s("Entity").setAll({stateAnimationDuration:0,stateAnimationEasing:id(ou)}),s("Component").setAll({interpolationDuration:0,interpolationEasing:id(ou)}),s("Sprite").setAll({visible:!0,scale:1,opacity:1,rotation:0,position:"relative",tooltipX:He,tooltipY:He,tooltipPosition:"fixed",isMeasured:!0}),s("Sprite").states.create("default",{visible:!0,opacity:1}),s("Container").setAll({interactiveChildren:!0,setStateOnChildren:!1}),s("Graphics").setAll({strokeWidth:1}),s("Chart").setAll({width:le,height:le,interactiveChildren:!1}),s("Sprite",["horizontal","center"]).setAll({centerX:He,x:He}),s("Sprite",["vertical","center"]).setAll({centerY:He,y:He}),s("Container",["horizontal","layout"]).setAll({layout:r}),s("Container",["vertical","layout"]).setAll({layout:i}),s("Pattern").setAll({repetition:"repeat",width:50,height:50,rotation:0,fillOpacity:1}),s("LinePattern").setAll({gap:6,colorOpacity:1,width:49,height:49}),s("RectanglePattern").setAll({gap:6,checkered:!1,centered:!0,maxWidth:5,maxHeight:5,width:48,height:48,strokeWidth:0}),s("CirclePattern").setAll({gap:5,checkered:!1,centered:!1,radius:3,strokeWidth:0,width:45,height:45}),s("GrainPattern").setAll({width:200,height:200,colors:[be.fromHex(0)],size:1,horizontalGap:0,verticalGap:0,density:1,minOpacity:0,maxOpacity:.2}),s("LinearGradient").setAll({rotation:90}),s("Legend").setAll({fillField:"fill",strokeField:"stroke",nameField:"name",layout:ol.new(this._root,{}),layer:30,clickTarget:"itemContainer"}),s("Container",["legend","item","itemcontainer"]).setAll({paddingLeft:5,paddingRight:5,paddingBottom:5,paddingTop:5,layout:r,setStateOnChildren:!0,interactiveChildren:!1,ariaChecked:!0,focusable:!0,ariaLabel:e.translate("Press ENTER to toggle"),role:"checkbox"});{const a=s("Rectangle",["legend","item","background"]);a.setAll({fillOpacity:0}),xe(a,"fill",t,"background")}s("Container",["legend","marker"]).setAll({setStateOnChildren:!0,centerY:He,paddingLeft:0,paddingRight:0,paddingBottom:0,paddingTop:0,width:18,height:18}),s("RoundedRectangle",["legend","marker","rectangle"]).setAll({width:le,height:le,cornerRadiusBL:3,cornerRadiusTL:3,cornerRadiusBR:3,cornerRadiusTR:3});{const a=s("RoundedRectangle",["legend","marker","rectangle"]).states.create("disabled",{});xe(a,"fill",t,"disabled"),xe(a,"stroke",t,"disabled")}s("Label",["legend","label"]).setAll({centerY:He,marginLeft:5,paddingRight:0,paddingLeft:0,paddingTop:0,paddingBottom:0,populateText:!0});{const a=s("Label",["legend","label"]).states.create("disabled",{});xe(a,"fill",t,"disabled")}s("Label",["legend","value","label"]).setAll({centerY:He,marginLeft:5,paddingRight:0,paddingLeft:0,paddingTop:0,paddingBottom:0,width:50,centerX:le,populateText:!0});{const a=s("Label",["legend","value","label"]).states.create("disabled",{});xe(a,"fill",t,"disabled")}s("HeatLegend").setAll({stepCount:1}),s("RoundedRectangle",["heatlegend","marker"]).setAll({cornerRadiusTR:0,cornerRadiusBR:0,cornerRadiusTL:0,cornerRadiusBL:0}),s("RoundedRectangle",["vertical","heatlegend","marker"]).setAll({height:le,width:15}),s("RoundedRectangle",["horizontal","heatlegend","marker"]).setAll({width:le,height:15}),s("HeatLegend",["vertical"]).setAll({height:le}),s("HeatLegend",["horizontal"]).setAll({width:le}),s("Label",["heatlegend","start"]).setAll({paddingLeft:5,paddingRight:5,paddingTop:5,paddingBottom:5}),s("Label",["heatlegend","end"]).setAll({paddingLeft:5,paddingRight:5,paddingTop:5,paddingBottom:5});{const a=s("Label");a.setAll({paddingTop:8,paddingBottom:8,paddingLeft:10,paddingRight:10,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontSize:"1em",populateText:!1}),xe(a,"fill",t,"text")}s("RadialLabel").setAll({textType:"regular",centerY:He,centerX:He,inside:!1,radius:0,baseRadius:le,orientation:"auto",textAlign:"center"}),s("RoundedRectangle").setAll({cornerRadiusTL:8,cornerRadiusBL:8,cornerRadiusTR:8,cornerRadiusBR:8}),s("PointedRectangle").setAll({pointerBaseWidth:15,pointerLength:10,cornerRadius:8}),s("Slice").setAll({shiftRadius:0,dRadius:0,dInnerRadius:0});{const a=s("Tick");a.setAll({strokeOpacity:.15,isMeasured:!1,length:4.5,position:"absolute",crisp:!0}),xe(a,"stroke",t,"grid")}s("Bullet").setAll({locationX:.5,locationY:.5}),s("Tooltip").setAll({position:"absolute",getFillFromSprite:!0,getStrokeFromSprite:!1,autoTextColor:!0,paddingTop:9,paddingBottom:8,paddingLeft:10,paddingRight:10,marginBottom:5,pointerOrientation:"vertical",centerX:He,centerY:He,animationEasing:id(ou),exportable:!1}),s("Polygon").setAll({animationEasing:id(ou)}),s("PointedRectangle",["tooltip","background"]).setAll({strokeOpacity:.9,cornerRadius:4,pointerLength:4,pointerBaseWidth:8,fillOpacity:.9,stroke:be.fromHex(16777215)});{const a=s("Label",["tooltip"]);a.setAll({role:"tooltip",populateText:!0,paddingRight:0,paddingTop:0,paddingLeft:0,paddingBottom:0}),xe(a,"fill",t,"alternativeText")}s("Button").setAll({paddingTop:8,paddingBottom:8,paddingLeft:10,paddingRight:10,interactive:!0,layout:r,interactiveChildren:!1,setStateOnChildren:!0,focusable:!0}),s("Button").states.create("hover",{}),s("Button").states.create("down",{stateAnimationDuration:0}),s("Button").states.create("active",{});{const a=s("RoundedRectangle",["button","background"]);xe(a,"fill",t,"primaryButton"),xe(a,"stroke",t,"primaryButtonStroke")}{const a=s("RoundedRectangle",["button","background"]).states.create("hover",{});xe(a,"fill",t,"primaryButtonHover")}{const a=s("RoundedRectangle",["button","background"]).states.create("down",{stateAnimationDuration:0});xe(a,"fill",t,"primaryButtonDown")}{const a=s("RoundedRectangle",["button","background"]).states.create("active",{});xe(a,"fill",t,"primaryButtonActive")}{const a=s("Graphics",["button","icon"]);xe(a,"stroke",t,"primaryButtonText")}{const a=s("Label",["button"]);xe(a,"fill",t,"primaryButtonText")}s("Button",["zoom"]).setAll({paddingTop:18,paddingBottom:18,paddingLeft:12,paddingRight:12,centerX:46,centerY:-10,y:0,x:le,role:"button",ariaLabel:e.translate("Zoom Out"),layer:30});{const a=s("RoundedRectangle",["background","button","zoom"]);a.setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),xe(a,"fill",t,"primaryButton")}{const a=s("RoundedRectangle",["background","button","zoom"]).states.create("hover",{});xe(a,"fill",t,"primaryButtonHover")}{const a=s("RoundedRectangle",["background","button","zoom"]).states.create("down",{stateAnimationDuration:0});xe(a,"fill",t,"primaryButtonDown")}{const a=s("Graphics",["icon","button","zoom"]);a.setAll({crisp:!0,strokeOpacity:.7,draw:o=>{o.moveTo(0,0),o.lineTo(12,0)}}),xe(a,"stroke",t,"primaryButtonText")}s("Button",["resize"]).setAll({paddingTop:9,paddingBottom:9,paddingLeft:13,paddingRight:13,draggable:!0,centerX:He,centerY:He,position:"absolute",role:"slider",ariaValueMin:"0",ariaValueMax:"100",ariaLabel:e.translate("Use up and down arrows to move selection")});{const a=s("RoundedRectangle",["background","resize","button"]);a.setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),xe(a,"fill",t,"secondaryButton"),xe(a,"stroke",t,"secondaryButtonStroke")}{const a=s("RoundedRectangle",["background","resize","button"]).states.create("hover",{});xe(a,"fill",t,"secondaryButtonHover")}{const a=s("RoundedRectangle",["background","resize","button"]).states.create("down",{stateAnimationDuration:0});xe(a,"fill",t,"secondaryButtonDown")}{const a=s("Graphics",["resize","button","icon"]);a.setAll({interactive:!1,crisp:!0,strokeOpacity:.5,draw:o=>{o.moveTo(0,.5),o.lineTo(0,12.5),o.moveTo(4,.5),o.lineTo(4,12.5)}}),xe(a,"stroke",t,"secondaryButtonText")}s("Button",["resize","vertical"]).setAll({rotation:90,cursorOverStyle:"ns-resize"}),s("Button",["resize","horizontal"]).setAll({cursorOverStyle:"ew-resize"}),s("Button",["play"]).setAll({paddingTop:13,paddingBottom:13,paddingLeft:14,paddingRight:14,ariaLabel:e.translate("Play"),toggleKey:"active"});{const a=s("RoundedRectangle",["play","background"]);a.setAll({strokeOpacity:.5,cornerRadiusBL:100,cornerRadiusBR:100,cornerRadiusTL:100,cornerRadiusTR:100}),xe(a,"fill",t,"primaryButton")}{const a=s("Graphics",["play","icon"]);a.setAll({stateAnimationDuration:0,dx:1,draw:o=>{o.moveTo(0,-5),o.lineTo(8,0),o.lineTo(0,5),o.lineTo(0,-5)}}),xe(a,"fill",t,"primaryButtonText")}s("Graphics",["play","icon"]).states.create("default",{stateAnimationDuration:0}),s("Graphics",["play","icon"]).states.create("active",{stateAnimationDuration:0,draw:a=>{a.moveTo(-4,-5),a.lineTo(-1,-5),a.lineTo(-1,5),a.lineTo(-4,5),a.lineTo(-4,-5),a.moveTo(4,-5),a.lineTo(1,-5),a.lineTo(1,5),a.lineTo(4,5),a.lineTo(4,-5)}}),s("Button",["switch"]).setAll({paddingTop:4,paddingBottom:4,paddingLeft:4,paddingRight:4,ariaLabel:e.translate("Press ENTER to toggle"),toggleKey:"active",width:40,height:24,layout:null});{const a=s("RoundedRectangle",["switch","background"]);a.setAll({strokeOpacity:.5,cornerRadiusBL:100,cornerRadiusBR:100,cornerRadiusTL:100,cornerRadiusTR:100}),xe(a,"fill",t,"primaryButton")}{const a=s("Circle",["switch","icon"]);a.setAll({radius:8,centerY:0,centerX:0,dx:0}),xe(a,"fill",t,"primaryButtonText")}s("Graphics",["switch","icon"]).states.create("active",{dx:16}),s("Scrollbar").setAll({start:0,end:1,layer:30,animationEasing:id(ou)}),s("Scrollbar",["vertical"]).setAll({marginRight:13,marginLeft:13,minWidth:12,height:le}),s("Scrollbar",["horizontal"]).setAll({marginTop:13,marginBottom:13,minHeight:12,width:le}),this.rule("Button",["scrollbar"]).setAll({exportable:!1});{const a=s("RoundedRectangle",["scrollbar","main","background"]);a.setAll({cornerRadiusTL:8,cornerRadiusBL:8,cornerRadiusTR:8,cornerRadiusBR:8,fillOpacity:.8}),xe(a,"fill",t,"fill")}{const a=s("RoundedRectangle",["scrollbar","thumb"]);a.setAll({role:"slider",ariaLive:"polite",position:"absolute",draggable:!0}),xe(a,"fill",t,"secondaryButton")}{const a=s("RoundedRectangle",["scrollbar","thumb"]).states.create("hover",{});xe(a,"fill",t,"secondaryButtonHover")}{const a=s("RoundedRectangle",["scrollbar","thumb"]).states.create("down",{stateAnimationDuration:0});xe(a,"fill",t,"secondaryButtonDown")}s("RoundedRectangle",["scrollbar","thumb","vertical"]).setAll({x:He,width:le,centerX:He,ariaLabel:e.translate("Use up and down arrows to move selection")}),s("RoundedRectangle",["scrollbar","thumb","horizontal"]).setAll({y:He,centerY:He,height:le,ariaLabel:e.translate("Use left and right arrows to move selection")});{const a=s("PointedRectangle",["axis","tooltip","background"]);a.setAll({cornerRadius:0}
102),xe(a,"fill",t,"alternativeBackground")}s("Label",["axis","tooltip"]).setAll({role:void 0}),s("Label",["axis","tooltip","y"]).setAll({textAlign:"right"}),s("Label",["axis","tooltip","y","opposite"]).setAll({textAlign:"left"}),s("Label",["axis","tooltip","x"]).setAll({textAlign:"center"}),s("Tooltip",["categoryaxis"]).setAll({labelText:"{category}"}),s("Star").setAll({spikes:5,innerRadius:5,radius:10}),s("Tooltip",["stock"]).setAll({paddingTop:6,paddingBottom:5,paddingLeft:7,paddingRight:7}),s("PointedRectangle",["tooltip","stock","axis"]).setAll({pointerLength:0,pointerBaseWidth:0,cornerRadius:3}),s("Label",["tooltip","stock"]).setAll({fontSize:"0.8em"}),s("SpriteResizer").setAll({rotationStep:10}),s("Container",["resizer","grip"]).states.create("hover",{});{const a=s("RoundedRectangle",["resizer","grip"]);a.setAll({strokeOpacity:.7,strokeWidth:1,fillOpacity:1,width:12,height:12}),xe(a,"fill",t,"background"),xe(a,"stroke",t,"alternativeBackground")}{const a=s("RoundedRectangle",["resizer","grip","outline"]);a.setAll({strokeOpacity:0,fillOpacity:0,width:20,height:20}),a.states.create("hover",{fillOpacity:.3}),xe(a,"fill",t,"alternativeBackground")}s("RoundedRectangle",["resizer","grip","left"]).setAll({cornerRadiusBL:0,
102cornerRadiusBR:0,cornerRadiusTL:0,cornerRadiusTR:0}),s("RoundedRectangle",["resizer","grip","right"]).setAll({cornerRadiusBL:0,cornerRadiusBR:0,cornerRadiusTL:0,cornerRadiusTR:0});{const a=s("Rectangle",["resizer","rectangle"]);a.setAll({strokeDasharray:[2,2],strokeOpacity:.5,strokeWidth:1}),xe(a,"stroke",t,"alternativeBackground")}}}class Jy{constructor(e=1,t=0,r=0,i=1,s=0,a=0){Object.defineProperty(this,"a",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"b",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"c",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"d",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"tx",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"ty",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.a=e,this.b=t,this.c=r,this.d=i,this.tx=s,this.ty=a}setTransform(e,t,r,i,s,a=1){this.a=Math.cos(s)*a,this.b=Math.sin(s)*a,this.c=-Math.sin(s)*a,this.d=Math.cos(s)*a,this.tx=e-(r*this.a+i*this.c),this.ty=t-(r*this.b+i*this.d)}apply(e){return{x:this.a*e.x+this.c*e.y+this.tx,y:this.b*e.x+this.d*e.y+this.ty}}applyInverse(e){const t=1/(this.a*this.d+this.c*-this.b);return{x:this.d*t*e.x+-this.c*t*e.y+(this.ty*this.c-this.tx*this.d)*t,y:this.a*t*e.y+-this.b*t*e.x+(-this.ty*this.a+this.tx*this.b)*t}}append(e){const t=this.a,r=this.b,i=this.c,s=this.d;this.a=e.a*t+e.b*i,this.b=e.a*r+e.b*s,this.c=e.c*t+e.d*i,this.d=e.c*r+e.d*s,this.tx=e.tx*t+e.ty*i+this.tx,this.ty=e.tx*r+e.ty*s+this.ty}prepend(e){const t=this.tx;if(e.a!==1||e.b!==0||e.c!==0||e.d!==1){const r=this.a,i=this.c;this.a=r*e.a+this.b*e.c,this.b=r*e.b+this.b*e.d,this.c=i*e.a+this.d*e.c,this.d=i*e.b+this.d*e.d}this.tx=t*e.a+this.ty*e.c+e.tx,this.ty=t*e.b+this.ty*e.d+e.ty}copyFrom(e){this.a=e.a,this.b=e.b,this.c=e.c,this.d=e.d,this.tx=e.tx,this.ty=e.ty}}var J7=function(){function n(e,t){var r=[],i=!0,s=!1,a=void 0;try{for(var o=e[Symbol.iterator](),l;!(i=(l=o.next()).done)&&(r.push(l.value),!(t&&r.length===t));i=!0);}catch(u){s=!0,a=u}finally{try{!i&&o.return&&o.return()}finally{if(s)throw a}}return r}return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return n(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),Nd=Math.PI*2,e_=function(e,t,r,i,s,a,o){var l=e.x,u=e.y;l*=t,u*=r;var h=i*l-s*u,f=s*l+i*u;return{x:h+a,y:f+o}},eG=function(e,t){var r=t===1.5707963267948966?.551915024494:t===-1.5707963267948966?-.551915024494:1.3333333333333333*Math.tan(t/4),i=Math.cos(e),s=Math.sin(e),a=Math.cos(e+t),o=Math.sin(e+t);return[{x:i-s*r,y:s+i*r},{x:a+o*r,y:o-a*r},{x:a,y:o}]},lE=function(e,t,r,i){var s=e*i-t*r<0?-1:1,a=e*r+t*i;return a>1&&(a=1),a<-1&&(a=-1),s*Math.acos(a)},tG=function(e,t,r,i,s,a,o,l,u,h,f,m){var g=Math.pow(s,2),y=Math.pow(a,2),v=Math.pow(f,2),x=Math.pow(m,2),_=g*y-g*x-y*v;_<0&&(_=0),_/=g*x+y*v,_=Math.sqrt(_)*(o===l?-1:1);var S=_*s/a*m,w=_*-a/s*f,k=h*S-u*w+(e+r)/2,P=u*S+h*w+(t+i)/2,j=(f-S)/s,A=(m-w)/a,M=(-f-S)/s,L=(-m-w)/a,I=lE(1,0,j,A),V=lE(j,A,M,L);return l===0&&V>0&&(V-=Nd),l===1&&V<0&&(V+=Nd),[k,P,I,V]},nG=function(e){var t=e.px,r=e.py,i=e.cx,s=e.cy,a=e.rx,o=e.ry,l=e.xAxisRotation,u=l===void 0?0:l,h=e.largeArcFlag,f=h===void 0?0:h,m=e.sweepFlag,g=m===void 0?0:m,y=[];if(a===0||o===0)return[];var v=Math.sin(u*Nd/360),x=Math.cos(u*Nd/360),_=x*(t-i)/2+v*(r-s)/2,S=-v*(t-i)/2+x*(r-s)/2;if(_===0&&S===0)return[];a=Math.abs(a),o=Math.abs(o);var w=Math.pow(_,2)/Math.pow(a,2)+Math.pow(S,2)/Math.pow(o,2);w>1&&(a*=Math.sqrt(w),o*=Math.sqrt(w));var k=tG(t,r,i,s,a,o,f,g,v,x,_,S),P=J7(k,4),j=P[0],A=P[1],M=P[2],L=P[3],I=Math.abs(L)/(Nd/4);Math.abs(1-I)<1e-7&&(I=1);var V=Math.max(Math.ceil(I),1);L/=V;for(var Q=0;Q<V;Q++)y.push(eG(M,L)),M+=L;return y.map(function(U){var X=e_(U[0],a,o,x,v,j,A),K=X.x,z=X.y,F=e_(U[1],a,o,x,v,j,A),R=F.x,B=F.y,Z=e_(U[2],a,o,x,v,j,A),se=Z.x,ae=Z.y;return{x1:K,y1:z,x2:R,y2:B,x:se,y:ae}})};function rG(n,e,t){if(e!==t)throw new Error("Required "+t+" arguments for "+n+" but got "+e)}function vd(n,e,t){if(e<t)throw new Error("Required at least "+t+" arguments for "+n+" but got "+e)}function Tr(n,e,t){if(vd(n,e,t),e%t!==0)throw new Error("Arguments for "+n+" must be in pairs of "+t)}function iG(n){for(let e=0;e<n.length;e+=7){let t=e+3,r=n[t];if(r.length>1){const i=/^([01])([01])(.*)$/.exec(r);i!==null&&(n.splice(t,0,i[1]),++t,n.splice(t,0,i[2]),++t,i[3].length>
1020?n[t]=i[3]:n.splice(t,1))}if(++t,r=n[t],r.length>1){const i=/^([01])(.+)$/.exec(r);i!==null&&(n.splice(t,0,i[1]),++t,n[t]=i[2])}}}function uE(n){if(n===0||n===1)return n;throw new Error("Flag must be 0 or 1")}function sG(n){const e=[0,0,0];for(let t=0;t<24;t++)e[t%3]<<=1,e[t%3]|=n&1,n>>=1;return(e[0]|0)+(e[1]<<8)+(e[2]<<16)}function wp(n,e){for(;!(n.interactive&&!e(n));)if(n._parent)n=n._parent;else break}function aG(n,e,t){return $t(n,tx(e),r=>{const i=gR(r);let s=r.touches;s?(s.length==0&&(s=r.changedTouches),t(Z0(s),i)):t([r],i)})}function cE(n){const e=document.createElement("canvas");e.width=1,e.height=1;const t=e.getContext("2d",{willReadFrequently:!0});t.drawImage(n,0,0,1,1);try{return t.getImageData(0,0,1,1),!1}catch{return console.warn('Image "'+n.src+'" is loaded from different host and is not covered by CORS policy. For more information about the implications read here: https://www.amcharts.com/docs/v5/concepts/cors'),!0}}function bd(n){n.width=0,n.height=0,n.style.width="0px",n.style.height="0px"}function dE(n){return Math.floor(n)+.5}class oG{constructor(){Object.defineProperty(this,"_x",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_y",{enumerable:!0,configurable:!0,writable:!0,value:0})}get x(){return this._x}get y(){return this._y}set x(e){this._x=e}set y(e){this._y=e}}class ov extends e1{constructor(e){super(),Object.defineProperty(this,"_layer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"mask",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"visible",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"exportable",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"interactive",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"inactive",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"wheelable",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"cancelTouch",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isMeasured",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"buttonMode",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"alpha",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"compoundAlpha",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"angle",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"scale",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"crisp",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"pivot",{enumerable:!0,configurable:!0,writable:!0,value:new oG}),Object.defineProperty(this,"filter",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cursorOverStyle",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_replacedCursorStyle",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_localMatrix",{enumerable:!0,configurable:!0,writable:!0,value:new Jy}),Object.defineProperty(this,"_matrix",{enumerable:!0,configurable:!0,writable:!0,value:new Jy}),Object.defineProperty(this,"_uMatrix",{enumerable:!0,configurable:!0,writable:!0,value:new Jy}),Object.defineProperty(this,"_renderer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_parent",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_localBounds",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_bounds",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_colorId",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._renderer=e}subStatus(e){return{inactive:this.inactive==null?e.inactive:this.inactive,layer:this._layer||e.layer}}
102_dispose(){this._renderer._removeObject(this),this.getLayer().dirty=!0}getCanvas(){return this.getLayer().view}getLayer(){let e=this;for(;;){if(e._layer)return e._layer;if(e._parent)e=e._parent;else return this._renderer.defaultLayer}}setLayer(e,t){e==null?this._layer=void 0:(this._layer=this._renderer.getLayer(e,!0),this._layer.visible=!0,this._layer.margin=t,t&&au(this._layer.view,!1),this._renderer._ghostLayer.setMargin(this._renderer.layers),this._parent&&this._parent.registerChildLayer(this._layer),this._layer.dirty=!0,this._renderer.resizeLayer(this._layer),this._renderer.resizeGhost())}markDirtyLayer(){this.getLayer().dirty=!0}clear(){this.invalidateBounds()}invalidateBounds(){this._localBounds=void 0}_addBounds(e){}_getColorId(){return this._colorId===void 0&&(this._colorId=this._renderer.paintId(this)),this._colorId}_isInteractive(e){return!e.inactive&&(this.interactive||this._renderer._forceInteractive>0)}_isInteractiveMask(e){return this._isInteractive(e)}contains(e){for(;;){if(e===this)return!0;if(e._parent)e=e._parent;else return!1}}toGlobal(e){return this._matrix.apply(e)}toLocal(e){return this._matrix.applyInverse(e)}getLocalMatrix(){return this._uMatrix.setTransform(0,0,this.pivot.x,this.pivot.y,this.angle*Math.PI/180,this.scale),this._uMatrix}getLocalBounds(){return this._localBounds||(this._localBounds={left:1e7,top:1e7,right:-1e7,bottom:-1e7},this._addBounds(this._localBounds)),this._localBounds}getAdjustedBounds(e){this._setMatrix();const t=this.getLocalMatrix(),r=t.apply({x:e.left,y:e.top}),i=t.apply({x:e.right,y:e.top}),s=t.apply({x:e.right,y:e.bottom}),a=t.apply({x:e.left,y:e.bottom});return{left:Math.min(r.x,i.x,s.x,a.x),top:Math.min(r.y,i.y,s.y,a.y),right:Math.max(r.x,i.x,s.x,a.x),bottom:Math.max(r.y,i.y,s.y,a.y)}}on(e,t,r){return this.interactive?this._renderer._addEvent(this,e,t,r):new gn(()=>{})}_setMatrix(){this._localMatrix.setTransform(this.x,this.y,this.pivot.x,this.pivot.y,this.angle*Math.PI/180,this.scale),this._matrix.copyFrom(this._localMatrix),this._parent&&this._matrix.prepend(this._parent._matrix)}_transform(e,t){const r=this._matrix;let i=r.tx*t,s=r.ty*t;this.crisp&&(i=dE(i),s=dE(s)),e.setTransform(r.a*t,r.b*t,r.c*t,r.d*t,i,s)}_transformMargin(e,t,r){const i=this._matrix;e.setTransform(i.a*t,i.b*t,i.c*t,i.d*t,(i.tx+r.left)*t,(i.ty+r.top)*t)}_transformLayer(e,t,r){r.margin?this._transformMargin(e,r.scale||t,r.margin):this._transform(e,r.scale||t)}render(e){if(this.visible&&(this.exportable!==!1||!this._renderer._omitTainted)){this._setMatrix();const t=this.subStatus(e),r=this._renderer.resolution,i=this._renderer.layers,s=this._renderer._ghostLayer,a=s.context,o=this.mask;o&&o._setMatrix(),Y(i,l=>{if(l){const u=l.context;u.save(),o&&(o._transformLayer(u,r,l),o._runPath(u),u.clip()),u.globalAlpha=this.compoundAlpha*this.alpha,this._transformLayer(u,r,l),this.filter&&(u.filter=this.filter)}}),a.save(),o&&this._isInteractiveMask(t)&&(o._transformMargin(a,r,s.margin),o._runPath(a),a.clip()),this._transformMargin(a,r,s.margin),this._render(t),a.restore(),Y(i,l=>{l&&l.context.restore()})}}_render(e){this.exportable===!1&&(e.layer.tainted=!0)}hovering(){return this._renderer._hovering.has(this)}dragging(){return this._renderer._dragging.some(e=>e.value===this)}shouldCancelTouch(){const e=this._renderer;return e.tapToActivate&&!e._touchActive?!1:this.cancelTouch?!0:this._parent?this._parent.shouldCancelTouch():!1}}class lG extends ov{constructor(){super(...arguments),Object.defineProperty(this,"interactiveChildren",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"_childLayers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_children",{enumerable:!0,configurable:!0,writable:!0,value:[]})}_isInteractiveMask(e){return this.interactiveChildren||super._isInteractiveMask(e)}addChild(e){e._parent=this,this._children.push(e),e._layer&&this.registerChildLayer(e._layer)}addChildAt(e,t){e._parent=this,this._children.splice(t,0,e),e._layer&&this.registerChildLayer(e._layer)}removeChild(e){e._parent=void 0,Jn(this._children,e)}_render(e){super._render(e);const t=this._renderer;this.interactive&&this.interactiveChildren&&++t._forceInteractive,Y(this._children,r=>{r.compoundAlpha=this.compoundAlpha*this.alpha,r.render(e)}),this.interactive&&this.interactiveChildren&&--t._forceInteractive}registerChildLayer(e){this._childLayers||(this._childLayers=[]),uf(this._childLayers,e),this._parent&&this._parent.registerChildLayer(e)}markDirtyLayer(e=!1){super.markDirtyLayer(),e&&this._childLayers&&Y(this._childLayers,t=>t.dirty=!0)}_dispose(){super._dispose(),this._childLayers&&Y(this._childLayers,e=>{e.dirty=!0})}}function nn(n,e){n.left=Math.min(n.left,e.x),n.top=Math.min(n.top,e.y),n.right=Math.max(n.right,e.x),n.bottom=Math.max(n.bottom,e.y)}class xn{colorize(e,t){}path(e){}addBounds(e){}}class uG extends xn{colorize(e,t){e.beginPath()}}class t_ extends xn{constructor(e){super(),Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,writable:!0,value:e})}colorize(e,t){t!==void 0?e.fillStyle=t:e.fillStyle=this.color}}class cG extends xn{constructor(e){super(),Object.defineProperty(this,"clearShadow",{enumerable:!0,configurable:!0,writable:!0,value:e})}colorize(e,t){e.fill(),this.clearShadow&&(e.shadowColor="",e.shadowBlur=0,e.shadowOffsetX=0,e.shadowOffsetY=0)}}class dG extends xn{colorize(e,t){e.stroke()}}class n_ extends xn{constructor(e,t,r){super(),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,writable:!0,value:t}
vendor: 5,027 bytes, line 102
102),Object.defineProperty(this,"lineJoin",{enumerable:!0,configurable:!0,writable:!0,value:r})}colorize(e,t){t!==void 0?e.strokeStyle=t:e.strokeStyle=this.color,e.lineWidth=this.width,this.lineJoin&&(e.lineJoin=this.lineJoin)}}class fG extends xn{constructor(e){super(),Object.defineProperty(this,"dash",{enumerable:!0,configurable:!0,writable:!0,value:e})}colorize(e,t){e.setLineDash(this.dash)}}class hG extends xn{constructor(e){super(),Object.defineProperty(this,"dashOffset",{enumerable:!0,configurable:!0,writable:!0,value:e})}colorize(e,t){e.lineDashOffset=this.dashOffset}}class pG extends xn{constructor(e,t,r,i){super(),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,writable:!0,value:i})}path(e){e.rect(this.x,this.y,this.width,this.height)}addBounds(e){const t=this.x,r=this.y,i=t+this.width,s=r+this.height;nn(e,{x:t,y:r}),nn(e,{x:i,y:r}),nn(e,{x:t,y:s}),nn(e,{x:i,y:s})}}class gG extends xn{constructor(e,t,r){super(),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"radius",{enumerable:!0,configurable:!0,writable:!0,value:r})}path(e){e.moveTo(this.x+this.radius,this.y),e.arc(this.x,this.y,this.radius,0,2*Math.PI)}addBounds(e){nn(e,{x:this.x-this.radius,y:this.y-this.radius}),nn(e,{x:this.x+this.radius,y:this.y+this.radius})}}class mG extends xn{constructor(e,t,r,i){super(),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"radiusX",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(this,"radiusY",{enumerable:!0,configurable:!0,writable:!0,value:i})}path(e){e.ellipse(0,0,this.radiusX,this.radiusY,0,0,Math.PI*2)}addBounds(e){nn(e,{x:this.x-this.radiusX,y:this.y-this.radiusY}),nn(e,{x:this.x+this.radiusX,y:this.y+this.radiusY})}}class vG extends xn{constructor(e,t,r,i,s,a){super(),Object.defineProperty(this,"cx",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"cy",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"radius",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(this,"startAngle",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(this,"endAngle",{enumerable:!0,configurable:!0,writable:!0,value:s}),Object.defineProperty(this,"anticlockwise",{enumerable:!0,configurable:!0,writable:!0,value:a})}path(e){this.radius>0&&e.arc(this.cx,this.cy,this.radius,this.startAngle,this.endAngle,this.anticlockwise)}addBounds(e){let t=rx(this.cx,this.cy,this.startAngle*Id,this.endAngle*Id,this.radius);nn(e,{x:t.left,y:t.top}),nn(e,{x:t.right,y:t.bottom})}}class bG extends xn{constructor(e,t,r,i,s){super(),Object.defineProperty(this,"x1",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"y1",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"x2",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(this,"y2",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(this,"radius",{enumerable:!0,configurable:!0,writable:!0,value:s})}path(e){this.radius>0&&e.arcTo(this.x1,this.y1,this.x2,this.y2,this.radius)}addBounds(e){}}class yG extends xn{constructor(e,t){super(),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,writable:!0,value:t})}path(e){e.lineTo(this.x,this.y)}addBounds(e){nn(e,{x:this.x,y:this.y})}}class _G extends xn{constructor(e,t){super(),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,writable:!0,value:t})}path(e){e.moveTo(this.x,this.y)}addBounds(e){nn(e,{x:this.x,y:this.y})}}class xG extends xn{path(e){e.closePath()}}class wG extends xn{constructor(e,t,r,i,s,a){super(),Object.defineProperty(this,"cpX",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"cpY",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"cpX2",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(this,"cpY2",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(this,"toX",{enumerable:!0,configurable:!0,writable:!0,value:s}),Object.defineProperty(this,"toY",{enumerable:!0,configurable:!0,writable:!0,value:a})}path(e){e.bezierCurveTo(this.cpX,this.cpY,this.cpX2,this.cpY2,this.toX,this.toY)}addBounds(e){nn(e,{x:this.cpX,y:this.cpY}),nn(e,{x:this.cpX2,y:this.cpY2}),nn(e,{x:this.toX,y:this.toY})}}
102class SG extends xn{constructor(e,t,r,i){super(),Object.defineProperty(this,"cpX",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"cpY",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"toX",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(this,"toY",{enumerable:!0,configurable:!0,writable:!0,value:i})}path(e){e.quadraticCurveTo(this.cpX,this.cpY,this.toX,this.toY)}addBounds(e){nn(e,{x:this.cpX,y:this.cpY}),nn(e,{x:this.toX,y:this.toY})}}class DG extends xn{constructor(e,t,r,i,s){super(),Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"blur",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"offsetX",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(this,"offsetY",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(this,"opacity",{enumerable:!0,configurable:!0,writable:!0,value:s})}colorize(e,t){this.opacity&&(e.fillStyle=this.color),e.shadowColor=this.color,e.shadowBlur=this.blur,e.shadowOffsetX=this.offsetX,e.shadowOffsetY=this.offsetY}}class kG extends xn{constructor(e,t,r,i,s){super(),Object.defineProperty(this,"image",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,writable:!0,value:s})}path(e){e.drawImage(this.image,this.x,this.y,this.width,this.height)}addBounds(e){nn(e,{x:this.x,y:this.y}),nn(e,{x:this.width,y:this.height})}}class PG extends ov{constructor(){super(...arguments),Object.defineProperty(this,"_operations",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"blendMode",{enumerable:!0,configurable:!0,writable:!0,value:Qg.NORMAL}),Object.defineProperty(this,"_hasShadows",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_fillAlpha",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_strokeAlpha",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}clear(){super.clear(),this._operations.length=0}_pushOp(e){this._operations.push(e)}beginFill(e,t=1){this._fillAlpha=t,e?e instanceof be?this._pushOp(new t_(e.toCSS(t))):(this.isMeasured=!0,this._pushOp(new t_(e))):this._pushOp(new t_("rgba(0, 0, 0, "+t+")"))}endFill(){this._pushOp(new cG(this._hasShadows))}endStroke(){this._pushOp(new dG)}beginPath(){this._pushOp(new uG)}lineStyle(e=0,t,r=1,i){this._strokeAlpha=r,t?t instanceof be?this._pushOp(new n_(e,t.toCSS(r),i)):this._pushOp(new n_(e,t,i)):this._pushOp(new n_(e,"rgba(0, 0, 0, "+r+")",i))}setLineDash(e){this._pushOp(new fG(e||[]))}setLineDashOffset(e=0){this._pushOp(new hG(e))}drawRect(e,t,r,i){this._pushOp(new pG(e,t,r,i))}drawCircle(e,t,r){this._pushOp(new gG(e,t,r))}drawEllipse(e,t,r,i){this._pushOp(new mG(e,t,r,i))}arc(e,t,r,i,s,a=!1){this._pushOp(new vG(e,t,r,i,s,a))}arcTo(e,t,r,i,s){this._pushOp(new bG(e,t,r,i,s))}lineTo(e,t){this._pushOp(new yG(e,t))}moveTo(e,t){this._pushOp(new _G(e,t))}bezierCurveTo(e,t,r,i,s,a){this._pushOp(new wG(e,t,r,i,s,a))}quadraticCurveTo(e,t,r,i){this._pushOp(new SG(e,t,r,i))}closePath(){this._pushOp(new xG)}shadow(e,t=0,r=0,i=0,s){this._hasShadows=!0,this._pushOp(new DG(s?e.toCSS(s):e.toCSS(this._fillAlpha||this._strokeAlpha),t,r,i))}image(e,t,r,i,s){this._pushOp(new kG(e,t,r,i,s))}svgPath(e){let t=0,r=0,i=null,s=null,a=null,o=null;const l=/([MmZzLlHhVvCcSsQqTtAa])([^MmZzLlHhVvCcSsQqTtAa]*)/g,u=/[\u0009\u0020\u000A\u000C\u000D]*([\+\-]?[0-9]*\.?[0-9]+(?:[eE][\+\-]?[0-9]+)?)[\u0009\u0020\u000A\u000C\u000D]*,?/g;let h;for(;(h=l.exec(e))!==null;){const f=h[1],m=h[2],g=[];for(;(h=u.exec(m))!==null;)g.push(h[1]);switch(f!=="S"&&f!=="s"&&f!=="C"&&f!=="c"&&(i=null,s=null),f!=="Q"&&f!=="q"&&f!=="T"&&f!=="t"&&(a=null,o=null),f){case"M":Tr(f,g.length,2),t=+g[0],r=+g[1],this.moveTo(t,r);for(let v=2;v<g.length;v+=2)t=+g[v],r=+g[v+1],this.lineTo(t,r);break;case"m":Tr(f,g.length,2),t+=+g[0],r+=+g[1],this.moveTo(t,r);for(let v=2;v<g.length;v+=2)t+=+g[v],r+=+g[v+1],this.lineTo(t,r);break;case"L":Tr(f,g.length,2);for(let v=0;v<g.length;v+=2)t=+g[v],r=+g[v+1],this.lineTo(t,r);break;case"l":Tr(f,g.length,2);for(let v=0;v<g.length;v+=2)t+=+g[v],r+=+g[v+1],this.lineTo(t,r);break;case"H":vd(f,g.length,1);for(let v=0;v<g.length;++v)t=+g[v],this.lineTo(t,r);break;case"h":vd(f,g.length,1);for(let v=0;v<g.length;++v)t+=+g[v],this.lineTo(t,r);break;case"V":vd(f,g.length,1);for(let v=0;v<g.length;++v)r=+g[v],this.lineTo(t,r);break;case"v":vd(f,g.length,1);for(let v=0;v<g.length;++v)r+=+g[v],this.lineTo(t,r);break;case"C":Tr(f,g.length,6);for(let v=0;v<g.length;v+=6){const x=+g[v],_=+g[v+1];i=+g[v+2],s=+g[v+3],t=+g[v+4],r=+g[v+5],this.bezierCurveTo(x,_,i,s,t,r)}break;case"c":Tr(f,g.length,6);for(let v=0;v<g.length;v+=6){const x=+g[v]+t,_=+g[v+1]+r;i=+g[v+2]+t,s=+g[v+3]+r,t+=+g[v+4],r+=+g[v+5],this.bezierCurveTo(x,_,i,s,t,r)}break;case"S":Tr(f,g.length,4),(i===null||s===null)&&(i=t,s=r);for(let v=0;v<g.length;v+=4){const x=2*t-i,_=2*r-s;i=+g[v],s=+g[v+1],t=+g[v+2],r=+g[v+3],this.bezierCurveTo(x,_,i,s,t,r)}break;case"s":Tr(f,g.length,4),(i===null||s===null)&&(i=t,s=r);for(let v=0;v<g.length;v+=4){const x=2*t-i,_=2*r-s;i=+g[v]+t,s=+g[v+1]+r,t+=+g[v+2],r+=+g[v+3],this.bezierCurveTo(x,_,i,s,t,r)}break;case"Q":Tr(f,g.length,4);for(let v=0;v<g.length;v+=4)a=+g[v],o=+g[v+1],t=+g[v+2],r=+g[v+3],this.quadraticCurveTo(a,o,t,r);break;case"q":Tr(f,g.length,4);for(let v=0;v<g.length;v+=4)a=+g[v]+t,o=+g[v+1]+r,t+=+g[v+2],r+=+g[v+3],this.quadraticCurveTo(a,o,t,r);break;case"T":Tr(f,g.length,2),(a===null||o===null)&&(a=t,o=r);for(let v=0;v<g.length;v+=2)a=2*t-a,o=2*r-o,t=+g[v],r=+g[v+1],this.quadraticCurveTo(a,o,t,r);break;case"t":Tr(f,g.length,2),(a===null||o===null)&&(a=t,o=r);for(let v=0;v<g.length;v+=2)a=2*t-a,o=2*r-o,t+=+g[v],r+=+g[v+1],this.quadraticCurveTo(a,o,t,r);break;case"A":case"a":const y=f==="a";iG(g),Tr(f,g.length,7);for(let v=0;v<g.length;v+=7){let x=+g[v+5],_=+g[v+6];y&&(x+=t,_+=r);const S=nG({px:t,py:r,rx:+g[v],ry:+g[v+1],xAxisRotation:+g[v+2],largeArcFlag:uE(+g[v+3]),sweepFlag:uE(+g[v+4]),cx:x,cy:_});Y(S,w=>{this.bezierCurveTo(w.x1,w.y1,w.x2,w.y2,w.x,w.y),t=w.x,r=w.y})}break;case"Z":case"z":rG(f,g.length,0),this.closePath();break}}}_runPath(e){e.beginPath(),Y(this._operations,t=>{t.path(e)})}_render(e){super._render(e);const t=e.layer.dirty,r=this._isInteractive(e);
102if(t||r){const i=e.layer.context,s=this._renderer._ghostLayer.context;t&&(i.globalCompositeOperation=this.blendMode,i.beginPath());let a;r&&(s.beginPath(),a=this._getColorId()),Y(this._operations,o=>{t&&(o.path(i),o.colorize(i,void 0)),r&&(o.path(s),o.colorize(s,a))})}}renderDetached(e){if(this.visible){this._setMatrix(),e.save();const t=this.mask;t&&(t._setMatrix(),t._transform(e,1),t._runPath(e),e.clip()),e.globalAlpha=this.compoundAlpha*this.alpha,this._transform(e,1),this.filter&&(e.filter=this.filter),e.globalCompositeOperation=this.blendMode,e.beginPath(),Y(this._operations,r=>{r.path(e),r.colorize(e,void 0)}),e.restore()}}_addBounds(e){this.visible&&this.isMeasured&&Y(this._operations,t=>{t.addBounds(e)})}}class PR extends ov{constructor(e,t,r){super(e),Object.defineProperty(this,"text",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"style",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"resolution",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"textVisible",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"_textInfo",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_originalScale",{enumerable:!0,configurable:!0,writable:!0,value:1}),this.text=t,this.style=r}invalidateBounds(){super.invalidateBounds(),this._textInfo=void 0}_shared(e){this.style.textAlign&&(e.textAlign=this.style.textAlign),this.style.direction&&(e.direction=this.style.direction),this.style.textBaseline&&(e.textBaseline=this.style.textBaseline)}_prerender(e,t=!1,r=!1){super._render(e);const i=e.layer.context,s=this._renderer._ghostLayer.context,a=this.style;let o=this._getFontStyle(void 0,r);i.font=o,this._isInteractive(e)&&!t&&(s.font=o),a.fill&&(a.fill instanceof be?i.fillStyle=a.fill.toCSS(a.fillOpacity!=null?a.fillOpacity:1):i.fillStyle=a.fill),a.shadowColor&&(e.layer.context.shadowColor=a.shadowColor.toCSS(a.shadowOpacity||1)),a.shadowBlur&&(e.layer.context.shadowBlur=a.shadowBlur),a.shadowOffsetX&&(e.layer.context.shadowOffsetX=a.shadowOffsetX),a.shadowOffsetY&&(e.layer.context.shadowOffsetY=a.shadowOffsetY),this._shared(i),this._isInteractive(e)&&!t&&(s.fillStyle=this._getColorId(),this._shared(s))}_getFontStyle(e,t=!1){const r=this.style;let i=[];return e&&e.fontVariant?i.push(e.fontVariant):r.fontVariant&&i.push(r.fontVariant),t||(e&&e.fontWeight?i.push(e.fontWeight):r.fontWeight&&i.push(r.fontWeight)),e&&e.fontStyle?i.push(e.fontStyle):r.fontStyle&&i.push(r.fontStyle),e&&e.fontSize?(q(e.fontSize)&&(e.fontSize=e.fontSize+"px"),i.push(e.fontSize)):r.fontSize&&(q(r.fontSize)&&(r.fontSize=r.fontSize+"px"),i.push(r.fontSize)),e&&e.fontFamily?i.push(e.fontFamily):r.fontFamily?i.push(r.fontFamily):i.length&&i.push("Arial"),i.join(" ")}_render(e){if(this._textInfo||this._measure(e),this.textVisible){const t=this._isInteractive(e),r=e.layer.context,i=e.layer.dirty,s=this._renderer._ghostLayer.context;r.save(),s.save(),this._prerender(e),Y(this._textInfo,(a,o)=>{Y(a.textChunks,(l,u)=>{if(l.style&&(r.save(),s.save(),r.font=l.style,this._isInteractive(e)&&(s.font=l.style)),l.fill&&(r.save(),r.fillStyle=l.fill.toCSS()),i&&r.fillText(l.text,l.offsetX,a.offsetY+l.offsetY),l.textDecoration=="underline"||l.textDecoration=="line-through"){let h=1,f=1,m=l.height,g=l.offsetX;switch(this.style.textAlign){case"right":case"end":g-=l.width;break;case"center":g-=l.width/2;break}if(l.style)switch(ji.getTextStyle(l.style).fontWeight){case"bolder":case"bold":case"700":case"800":case"900":h=2;break}m&&(f=m/20);let y;l.textDecoration=="line-through"?y=h+a.offsetY+l.offsetY-l.height/2:y=h+f*1.5+a.offsetY+l.offsetY,r.save(),r.beginPath(),l.fill?r.strokeStyle=l.fill.toCSS():this.style.fill&&this.style.fill instanceof be&&(r.strokeStyle=this.style.fill.toCSS()),r.lineWidth=h*f,r.moveTo(g,y),r.lineTo(g+l.width,y),r.stroke(),r.restore()}t&&this.interactive&&s.fillText(l.text,l.offsetX,a.offsetY+l.offsetY),l.fill&&r.restore(),l.style&&(r.restore(),s.restore())})}),r.restore(),s.restore()}}_addBounds(e){if(this.visible&&this.isMeasured){const t=this._measure({inactive:this.inactive,layer:this.getLayer()});nn(e,{x:t.left,y:t.top}),nn(e,{x:t.right,y:t.bottom})}}_ignoreFontWeight(){return/apple/i.test(navigator.vendor)}_measure(e){const t=e.layer.context,r=this._renderer._ghostLayer.context,i=this.style.direction=="rtl";this._textInfo=[];const s=this.style.oversizedBehavior,a=this.style.maxWidth,o=q(a)&&s=="truncate",l=q(a)&&(s=="wrap"||s=="wrap-no-break");t.save(),r.save(),this._prerender(e,!0,this._ignoreFontWeight());const u="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 ",h=this.text.toString().replace(/\r/g,"").split(/\n/);let f=!0,m=0,g=0,y=0,v;
102Y(h,(_,S)=>{let w;for(_==""?w=[{type:"value",text:""}]:w=ji.chunk(_,!1,this.style.ignoreFormatting);w.length>0;){let k={offsetY:y,ascent:0,width:0,height:0,left:0,right:0,textChunks:[]};const P=this._measureText(u,t),j=P.actualBoundingBoxAscent+P.actualBoundingBoxDescent;k.height=j,k.ascent=P.actualBoundingBoxAscent;let A,M=this.style.textDecoration,L,I,V=!1,Q=!0,U=[],X;uR(w,(K,z)=>{if(K.type=="format")if(K.text=="[/]")f||(t.restore(),r.restore(),f=!0),L=void 0,v=void 0,I=void 0,M=this.style.textDecoration,X=void 0,A=K.text;else{f||(t.restore(),r.restore());let F=ji.getTextStyle(K.text);const R=this._getFontStyle(F);t.save(),r.save(),t.font=R,v=R,A=K.text,F.textDecoration&&(M=F.textDecoration),F.fill&&(L=F.fill),F.width&&(I=dr(F.width)),F.verticalAlign&&(X=F.verticalAlign),f=!1;const B=this._measureText(u,t),Z=B.actualBoundingBoxAscent+B.actualBoundingBoxDescent;Z>k.height&&(k.height=Z),B.actualBoundingBoxAscent>k.ascent&&(k.ascent=B.actualBoundingBoxAscent)}else if(K.type=="value"&&!V){const F=this._measureText(K.text,t);let R=F.actualBoundingBoxLeft+F.actualBoundingBoxRight;if(o){let ae=Q||this.style.breakWords||!1;const ge=this.style.ellipsis||"",ke=this._measureText(ge,t),Me=ke.actualBoundingBoxLeft+ke.actualBoundingBoxRight;if(k.width+R>a){const me=a-k.width-Me;K.text=this._truncateText(t,K.text,me,ae),K.text+=ge,V=!0}}else if(l&&k.width+R>a){const ae=a-k.width,ge=this._truncateText(t,K.text,ae,!1,Q&&this.style.oversizedBehavior!="wrap-no-break");if(ge=="")return this.textVisible=!0,!1;U=w.slice(z+1),Ou(ge)!=Ou(K.text)&&(U.unshift({type:"value",text:K.text.substr(ge.length)}),A&&U.unshift({type:"format",text:A})),K.text=Ou(ge),w=[],V=!0}let B=1,Z=1;if(v&&I&&I>R){const ae=R/I;switch(this.style.textAlign){case"right":case"end":B=ae;break;case"center":B=ae,Z=ae;break;default:Z=ae}R=I}const se=F.actualBoundingBoxAscent+F.actualBoundingBoxDescent;se>k.height&&(k.height=se),F.actualBoundingBoxAscent>k.ascent&&(k.ascent=F.actualBoundingBoxAscent),k.width+=R,k.left+=F.actualBoundingBoxLeft/B,k.right+=F.actualBoundingBoxRight/Z,k.textChunks.push({style:v,fill:L,text:K.text,width:R,height:se,left:F.actualBoundingBoxLeft,right:F.actualBoundingBoxRight,ascent:F.actualBoundingBoxAscent,offsetX:0,offsetY:0,textDecoration:M,verticalAlign:X}),Q=!1}return!0}),this.style.lineHeight instanceof $e?(k.height*=this.style.lineHeight.value,k.ascent*=this.style.lineHeight.value):(k.height*=this.style.lineHeight||1.2,k.ascent*=this.style.lineHeight||1.2),m<k.left&&(m=k.left),g<k.right&&(g=k.right),this._textInfo.push(k),y+=k.height,w=U||[]}}),f||(t.restore(),r.restore()),Y(this._textInfo,(_,S)=>{let w=0;Y(_.textChunks,k=>{if(k.offsetX=w+k.left-_.left,k.offsetY+=_.height-_.height*(this.style.baselineRatio||.19),w+=k.width,k.verticalAlign)switch(k.verticalAlign){case"super":k.offsetY-=_.height/2-k.height/2;break;case"sub":k.offsetY+=k.height/2;break}})});const x={left:i?-g:-m,top:0,right:i?m:g,bottom:y};if(s!=="none"){const _=this._fitRatio(x);if(_<1)if(s=="fit")q(this.style.minScale)&&_<this.style.minScale?(this.textVisible=!1,x.left=0,x.top=0,x.right=0,x.bottom=0):((!this._originalScale||this._originalScale==1)&&(this._originalScale=this.scale),this.scale=_,this.textVisible=!0);else if(s=="hide")this.textVisible=!1,x.left=0,x.top=0,x.right=0,x.bottom=0;else{switch(this.style.textAlign){case"right":case"end":x.left=-a,x.right=0;break;case"center":x.left=-a/2,x.right=a/2;break;default:x.left=0,x.right=a}this.scale=this._originalScale||1,this._originalScale=void 0,this.textVisible=!0}else this.scale=this._originalScale||1,this._originalScale=void 0,this.textVisible=!0}return t.restore(),r.restore(),x}_fitRatio(e){const t=this.style.maxWidth,r=this.style.maxHeight;if(!q(t)&&!q(r))return 1;const i=e.right-e.left,s=e.bottom-e.top;return Math.min(t/i||1,r/s||1)}_truncateText(e,t,r,i=!1,s=!0){let a;do{if(i)t=t.slice(0,-1);else{let l=t.replace(/[^,;:!?\\\/\sâ]+[,;:!?\\\/\sâ]*$/g,"");if((l==""||l===t)&&s)i=!0;else{if(l=="")return t;t=l}}const o=this._measureText(t,e);a=o.actualBoundingBoxLeft+o.actualBoundingBoxRight}while(a>r&&t!="");return t}_measureText(e,t){let r=t.measureText(e),i={};if(r.actualBoundingBoxAscent==null){const a=document.createElement("div");a.innerText=e,a.style.visibility="hidden",a.style.position="absolute",a.style.top="-1000000px;",a.style.fontFamily=this.style.fontFamily||"",a.style.fontSize=this.style.fontSize+"",document.body.appendChild(a);const o=a.getBoundingClientRect();document.body.removeChild(a);const l=o.height,u=r.width;i={actualBoundingBoxAscent:l,actualBoundingBoxDescent:0,actualBoundingBoxLeft:0,actualBoundingBoxRight:u,fontBoundingBoxAscent:l,fontBoundingBoxDescent:0,width:u}}else i={actualBoundingBoxAscent:r.actualBoundingBoxAscent,actualBoundingBoxDescent:r.actualBoundingBoxDescent,actualBoundingBoxLeft:r.actualBoundingBoxLeft,actualBoundingBoxRight:r.actualBoundingBoxRight,fontBoundingBoxAscent:r.actualBoundingBoxAscent,fontBoundingBoxDescent:r.actualBoundingBoxDescent,width:r.width};const s=r.width;switch(this.style.textAlign){case"right":case"end":i.actualBoundingBoxLeft=s,i.actualBoundingBoxRight=0;break;case"center":i.actualBoundingBoxLeft=s/2,i.actualBoundingBoxRight=s/2;break;default:i.actualBoundingBoxLeft=0,i.actualBoundingBoxRight=s}return i}}class CG{constructor(){Object.defineProperty(this,"fill",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fillOpacity",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"textAlign",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fontFamily",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fontWeight",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fontVariant",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"textDecoration",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shadowColor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shadowBlur",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shadowOffsetX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shadowOffsetY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shadowOpacity",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"lineHeight",{enumerable:!0,configurable:!0,writable:!0,value:jr(120)}),Object.defineProperty(this,"baselineRatio",{enumerable:!0,configurable:!0,writable:!0,value:.19}),Object.defineProperty(this,"direction",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"textBaseline",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"oversizedBehavior",{enumerable:!0,configurable:!0,writable:!0,value:"none"}),Object.defineProperty(this,"breakWords",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"ellipsis",{enumerable:!0,configurable:!0,writable:!0,value:"â¦"}),Object.defineProperty(this,"maxWidth",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"maxHeight",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"minScale",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"ignoreFormatting",{enumerable:!0,configurable:!0,writable:!0,value:!1})}}class EG extends PR{constructor(){super(...arguments),Object.defineProperty(this,"textType",{enumerable:!0,configurable:!0,writable:!0,value:"circular"}
102),Object.defineProperty(this,"radius",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"startAngle",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"inside",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"orientation",{enumerable:!0,configurable:!0,writable:!0,value:"auto"}),Object.defineProperty(this,"kerning",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_textReversed",{enumerable:!0,configurable:!0,writable:!0,value:!1})}_render(e){switch(this.textType){case"circular":this._renderCircular(e);break;default:super._render(e);break}}_renderCircular(e){if(this.textVisible){this._prerender(e);const t=this._isInteractive(e),r=e.layer.context,i=e.layer.dirty,s=this._renderer._ghostLayer.context;r.save(),t&&s.save(),this._textInfo||this._measure(e);let a=this.radius||0,o=this.startAngle||0,l=0,u=this.orientation,h=u=="auto"?"auto":u=="inward";const f=this.inside,m=this.style.textAlign||"left",g=this.kerning||0;let y=m=="left"?1:-1;const v=!this._textReversed;if(h=="auto"){let x=0,_=0;Y(this._textInfo,(S,w)=>{const k=o+S.width/(a-S.height)/2*-y;k>x&&(x=k)}),m=="left"?_=(x+l/2)*Id:m=="right"?_=(x-l/2)*Id:_=o*Id,_=r1(_),h=_>=270||_<=90}h==!0&&v&&(this._textInfo.reverse(),this._textReversed=!0),Y(this._textInfo,(x,_)=>{const S=x.height;f||(a+=S),(y==-1&&h||y==1&&!h)&&v&&x.textChunks.reverse();let w=o;l=0,m=="center"&&(w+=x.width/(a-S)/2*-y,l=w-o),w+=Math.PI*(h?0:1),r.save(),t&&s.save(),r.rotate(w),t&&s.rotate(w);let k=0;Y(x.textChunks,(P,j)=>{const A=P.text,M=P.width;k=M/2/(a-S)*y,r.rotate(k),t&&s.rotate(k),P.style&&(r.save(),s.save(),r.font=P.style,t&&(s.font=P.style)),P.fill&&(r.save(),r.fillStyle=P.fill.toCSS()),r.textBaseline="middle",r.textAlign="center",t&&(s.textBaseline="middle",s.textAlign="center"),i&&r.fillText(A,0,(h?1:-1)*(0-a+S/2)),t&&s.fillText(A,0,(h?1:-1)*(0-a+S/2)),P.fill&&r.restore(),P.style&&(r.restore(),s.restore()),k=(M/2+g)/(a-S)*y,r.rotate(k),t&&s.rotate(k)}),r.restore(),t&&s.restore(),f&&(a-=S)}),r.restore(),t&&s.restore()}}_measure(e){switch(this.textType){case"circular":return this._measureCircular(e);default:return super._measure(e)}}_measureCircular(e){const t=e.layer.context,r=this._renderer._ghostLayer.context,i=this.style.direction=="rtl",s=this.style.oversizedBehavior,a=this.style.maxWidth,o=q(a)&&s=="truncate",l=this.style.ellipsis||"";let u;this.textVisible=!0,this._textInfo=[],this._textReversed=!1,t.save(),r.save(),this._prerender(e,!0);const h=this.text.toString().replace(/\r/g,"").split(/\n/);let f=!0,m=0,g=0;return Y(h,(y,v)=>{let x=ji.chunk(y,!1,this.style.ignoreFormatting),_={offsetY:g,ascent:0,width:0,height:0,left:0,right:0,textChunks:[]},S,w,k;Y(x,(P,j)=>{if(P.type=="format"){if(P.text=="[/]")f||(t.restore(),r.restore(),f=!0),w=void 0,S=void 0,k=void 0;else{let A=ji.getTextStyle(P.text);const M=this._getFontStyle(A);t.save(),r.save(),t.font=M,S=M,A.fill&&(w=A.fill),A.width&&(k=dr(A.width)),f=!1}o&&(u=this._measureText(l,t))}else if(P.type=="value"){const A=P.text.match(/./ug)||[];i&&A.reverse();for(let M=0;M<A.length;M++){const L=A[M],I=this._measureText(L,t);let V=I.width;S&&k&&k>V&&(V=k);const Q=I.actualBoundingBoxAscent+I.actualBoundingBoxDescent;if(Q>_.height&&(_.height=Q),I.actualBoundingBoxAscent>_.ascent&&(_.ascent=I.actualBoundingBoxAscent),m+=V,o){u||(u=this._measureText(l,t));const U=u.actualBoundingBoxLeft+u.actualBoundingBoxRight;if(m+U>a){_.textChunks.length==1?this.textVisible=!1:(_.width+=U,_.left+=u.actualBoundingBoxLeft,_.right+=u.actualBoundingBoxRight,_.textChunks.push({style:S,fill:w,text:l,width:U,height:Q+u.actualBoundingBoxDescent,left:u.actualBoundingBoxLeft,right:u.actualBoundingBoxRight,ascent:u.actualBoundingBoxAscent,offsetX:0,offsetY:Q,textDecoration:void 0}));break}}if(_.width+=V,_.left+=I.actualBoundingBoxLeft,_.right+=I.actualBoundingBoxRight,_.textChunks.push({style:S,fill:w,text:L,width:V,height:Q+I.actualBoundingBoxDescent,left:I.actualBoundingBoxLeft,right:I.actualBoundingBoxRight,ascent:I.actualBoundingBoxAscent,offsetX:0,offsetY:Q,textDecoration:void 0}),i)break}}}),this.style.lineHeight instanceof $e?_.height*=this.style.lineHeight.value:_.height*=this.style.lineHeight||1.2,this._textInfo.push(_),g+=_.height}
102),f||(t.restore(),r.restore()),s=="hide"&&m>a&&(this.textVisible=!1),Y(this._textInfo,y=>{Y(y.textChunks,v=>{v.offsetY+=Math.round((y.height-v.height+(y.ascent-v.ascent))/2)})}),t.restore(),r.restore(),{left:0,top:0,right:0,bottom:0}}}class MG extends ov{constructor(e,t){super(e),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"image",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"tainted",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shadowColor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shadowBlur",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shadowOffsetX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shadowOffsetY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shadowOpacity",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_imageMask",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.image=t}_dispose(){super._dispose(),this._imageMask&&bd(this._imageMask)}getLocalBounds(){if(!this._localBounds){let e=0,t=0;this.width&&(e=this.width),this.height&&(t=this.height),this._localBounds={left:0,top:0,right:e,bottom:t},this._addBounds(this._localBounds)}return this._localBounds}_render(e){if(super._render(e),this.image){if(this.tainted===void 0&&(this.tainted=cE(this.image),e.layer.tainted=!0),this.tainted&&this._renderer._omitTainted)return;if(e.layer.dirty){this.shadowColor&&(e.layer.context.shadowColor=this.shadowColor.toCSS(this.shadowOpacity||1)),this.shadowBlur&&(e.layer.context.shadowBlur=this.shadowBlur),this.shadowOffsetX&&(e.layer.context.shadowOffsetX=this.shadowOffsetX),this.shadowOffsetY&&(e.layer.context.shadowOffsetY=this.shadowOffsetY);const t=this.width||this.image.naturalWidth,r=this.height||this.image.naturalHeight;e.layer.context.drawImage(this.image,0,0,t,r)}if(this.interactive&&this._isInteractive(e)){const t=this._getMask(this.image);this._renderer._ghostLayer.context.drawImage(t,0,0)}}}clear(){super.clear(),this.image=void 0,this._imageMask=void 0}_getMask(e){if(this._imageMask===void 0){const t=this.width||e.naturalWidth,r=this.height||e.naturalHeight,i=document.createElement("canvas");i.width=t,i.height=r;const s=i.getContext("2d");s.imageSmoothingEnabled=!1,s.fillStyle=this._getColorId(),s.fillRect(0,0,t,r),cE(e)||(s.globalCompositeOperation="destination-in",s.drawImage(e,0,0,t,r)),this._imageMask=i}return this._imageMask}}
102class TG{constructor(e,t,r,i){Object.defineProperty(this,"event",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"originalPoint",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"point",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(this,"bbox",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(this,"id",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"simulated",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"native",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Xs("touchevents")&&e instanceof Touch?this.id=e.identifier:this.id=null}}class OG extends i7{constructor(e){if(super(),Object.defineProperty(this,"view",{enumerable:!0,configurable:!0,writable:!0,value:document.createElement("div")}),Object.defineProperty(this,"_layerDom",{enumerable:!0,configurable:!0,writable:!0,value:document.createElement("div")}),Object.defineProperty(this,"layers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_dirtyLayers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"defaultLayer",{enumerable:!0,configurable:!0,writable:!0,value:this.getLayer(0)}),Object.defineProperty(this,"_ghostLayer",{enumerable:!0,configurable:!0,writable:!0,value:new AG}),Object.defineProperty(this,"_patternCanvas",{enumerable:!0,configurable:!0,writable:!0,value:document.createElement("canvas")}),Object.defineProperty(this,"_patternContext",{enumerable:!0,configurable:!0,writable:!0,value:this._patternCanvas.getContext("2d")}),Object.defineProperty(this,"_realWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_realHeight",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_calculatedWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_calculatedHeight",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"resolution",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"interactionsEnabled",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"_listeners",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_events",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_colorId",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_colorMap",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_forceInteractive",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_omitTainted",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_hovering",{enumerable:!0,configurable:!0,writable:!0,value:new Set}),Object.defineProperty(this,"_dragging",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_mousedown",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_lastPointerMoveEvent",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"tapToActivate",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"tapToActivateTimeout",{enumerable:!0,configurable:!0,writable:!0,value:3e3}),Object.defineProperty(this,"_touchActive",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_touchActiveTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),e==null?this.resolution=window.devicePixelRatio:this.resolution=e,this.view.style.position="absolute",this.view.setAttribute("aria-hidden","true"),this.view.appendChild(this._layerDom),this._disposers.push(new gn(()=>{gt(this._events,(t,r)=>{r.disposer.dispose()}),Y(this.layers,t=>{bd(t.view),t.exportableView&&bd(t.exportableView)}),bd(this._ghostLayer.view),bd(this._patternCanvas)})),this._disposers.push(pR(()=>{e==null&&(this.resolution=window.devicePixelRatio)})),Xs("touchevents")){const t=r=>{this._dragging.length!==0&&uR(this._dragging,i=>i.value.shouldCancelTouch()?(r.preventDefault(),!1):!0),this._touchActiveTimeout&&this._delayTouchDeactivate()};this._disposers.push($t(window,"touchstart",t,{passive:!1})),this._disposers.push($t(this.view,"touchstart",t,{passive:!1})),this._disposers.push($t(this.view,"touchmove",()=>{this._touchActiveTimeout&&this._delayTouchDeactivate()},{passive:!0})),this._disposers.push($t(window,"click",r=>{this._touchActive=!1},{passive:!0})),this._disposers.push($t(this.view,"click",r=>{window.setTimeout(()=>{this._touchActive=!0,this._delayTouchDeactivate()},100)},{passive:!0}))}Xs("wheelevents")&&this._disposers.push($t(this.view,"wheel",t=>{let r=!1;this._hovering.forEach(i=>
102{if(i.wheelable)return r=!0,!1}),r&&t.preventDefault()},{passive:!1}))}_delayTouchDeactivate(){this._touchActiveTimeout&&clearTimeout(this._touchActiveTimeout),this.tapToActivateTimeout>0&&(this._touchActiveTimeout=window.setTimeout(()=>{this._touchActive=!1},this.tapToActivateTimeout))}get debugGhostView(){return!!this._ghostLayer.view.parentNode}set debugGhostView(e){e?this._ghostLayer.view.parentNode||this.view.appendChild(this._ghostLayer.view):this._ghostLayer.view.parentNode&&this._ghostLayer.view.parentNode.removeChild(this._ghostLayer.view)}createLinearGradient(e,t,r,i){return this.defaultLayer.context.createLinearGradient(e,t,r,i)}createRadialGradient(e,t,r,i,s,a){return this.defaultLayer.context.createRadialGradient(e,t,r,i,s,a)}createPattern(e,t,r,i,s){return this._patternCanvas.width=i,this._patternCanvas.height=s,this._patternContext.clearRect(0,0,i,s),t.renderDetached(this._patternContext),e.renderDetached(this._patternContext),this._patternContext.createPattern(this._patternCanvas,r)}makeContainer(){return new lG(this)}makeGraphics(){return new PG(this)}makeText(e,t){return new PR(this,e,t)}makeTextStyle(){return new CG}makeRadialText(e,t){return new EG(this,e,t)}
102makePicture(e){return new MG(this,e)}resizeLayer(e){e.resize(this._calculatedWidth,this._calculatedHeight,this._calculatedWidth,this._calculatedHeight,this.resolution)}resizeGhost(){this._ghostLayer.resize(this._calculatedWidth,this._calculatedHeight,this._calculatedWidth,this._calculatedHeight,this.resolution)}resize(e,t,r,i){this._realWidth=e,this._realHeight=t,this._calculatedWidth=r,this._calculatedHeight=i,Y(this.layers,s=>{s&&(s.dirty=!0,this.resizeLayer(s))}),this.resizeGhost(),this.view.style.width=r+"px",this.view.style.height=i+"px"}createDetachedLayer(e=!1){const t=document.createElement("canvas"),r=t.getContext("2d",{willReadFrequently:e}),i=new jG(t,r);return t.style.position="absolute",t.style.top="0px",t.style.left="0px",i}getLayerByOrder(e){const t=this.layers,r=t.length;for(let i=0;i<r;i++){const s=t[i];if(s.order==e)return s}}getLayer(e,t=!0){let r=this.getLayerByOrder(e);if(r)return r;const i=this.createDetachedLayer(e==99);i.order=e,i.visible=t,i.view.className="am5-layer-"+e,i.visible&&this.resizeLayer(i);const s=this.layers;s.push(i),s.sort((u,h)=>u.order>h.order?1:u.order<h.order?-1:0);const a=s.length,o=lf(s,i);let l;for(let u=o+1;u<a;u++)if(s[u].visible){l=s[u];break}return i.visible&&(l===void 0?this._layerDom.appendChild(i.view):this._layerDom.insertBefore(i.view,l.view)),i}render(e){if(this._dirtyLayers.length=0,Y(this.layers,t=>{t&&t.dirty&&t.visible&&(this._dirtyLayers.push(t),t.clear())}),this._ghostLayer.clear(),e.render({inactive:null,layer:this.defaultLayer}),this._ghostLayer.context.restore(),Y(this.layers,t=>{if(t){const r=t.context;r.beginPath(),r.moveTo(0,0),r.stroke()}}),Y(this._dirtyLayers,t=>{t.context.restore(),t.dirty=!1}),this._hovering.size&&this._lastPointerMoveEvent){const{events:t,target:r,native:i}=this._lastPointerMoveEvent;Y(t,s=>{this._dispatchGlobalMousemove(s,r,i)})}}paintId(e){const t=sG(++this._colorId),r=be.fromHex(t).toCSS();return this._colorMap[r]=e,r}_removeObject(e){e._colorId!==void 0&&delete this._colorMap[e._colorId]}_adjustBoundingBox(e){const t=this._ghostLayer.margin;return new DOMRect(-t.left,-t.top,e.width+t.left+t.right,e.height+t.top+t.bottom)}getEvent(e,t=!0){const r=this.view.getBoundingClientRect(),i=e.clientX||0,s=e.clientY||0,a=this._calculatedWidth/this._realWidth,o=this._calculatedHeight/this._realHeight,l={x:i-r.left,y:s-r.top},u={x:(i-(t?r.left:0))*a,y:(s-(t?r.top:0))*o};return new TG(e,l,u,this._adjustBoundingBox(r))}_getHitTarget(e,t,r){if(t.width===0||t.height===0||e.x<t.left||e.x>t.right||e.y<t.top||e.y>t.bottom||!r||!this._layerDom.contains(r))return;const i=this._ghostLayer.getImageData(e,t);if(i.data[0]===0&&i.data[1]===0&&i.data[2]===0)return!1;const s=be.fromRGB(i.data[0],i.data[1],i.data[2]).toCSS();return this._colorMap[s]}_withEvents(e,t){const r=this._events[e];if(r!==void 0){r.dispatching=!0;try{t(r)}finally{r.dispatching=!1,r.cleanup&&(r.cleanup=!1,iv(r.callbacks,i=>!i.disposed),r.callbacks.length===0&&(r.disposer.dispose(),delete this._events[e]))}}}_dispatchEventAll(e,t){this.interactionsEnabled&&this._withEvents(e,r=>{Y(r.callbacks,i=>{i.disposed||i.callback.call(i.context,t)})})}_dispatchEvent(e,t,r){if(!this.interactionsEnabled)return!1;let i=!1;return this._withEvents(e,s=>{Y(s.callbacks,a=>{!a.disposed&&a.object===t&&(a.callback.call(a.context,r),i=!0)})}),i}_dispatchMousedown(e,t){const r=e.button;if(r!=0&&r!=2&&r!=1&&r!==void 0)return;const i=this.getEvent(e),s=this._getHitTarget(i.originalPoint,i.bbox,t);if(s){const a=i.id;let o=!1;wp(s,l=>{const u={id:a,value:l};return this._mousedown.push(u),!o&&this._dispatchEvent("pointerdown",l,i)&&(o=!0,this._dragging.some(f=>f.value===l&&f.id===a)||this._dragging.push(u)),!0})}}_dispatchGlobalMousemove(e,t,r){const i=this.getEvent(e),s=this._getHitTarget(i.originalPoint,i.bbox,t);i.native=r,s?(this._hovering.forEach(a=>{a.contains(s)||(this._hovering.delete(a),a.cursorOverStyle&&vp(document.body,"cursor",a._replacedCursorStyle),this._dispatchEvent("pointerout",a,i))}),i.native&&wp(s,a=>(this._hovering.has(a)||(this._hovering.add(a),a.cursorOverStyle&&(a._replacedCursorStyle=f7(document.body,"cursor"),vp(document.body,"cursor",a.cursorOverStyle)),this._dispatchEvent("pointerover",a,i)),!0))):(this._hovering.forEach(a=>{a.cursorOverStyle&&vp(document.body,"cursor",a._replacedCursorStyle),this._dispatchEvent("pointerout",a,i)}),this._hovering.clear()),this._dispatchEventAll("globalpointermove",i)}removeHovering(e){this._hovering.delete(e),e.cursorOverStyle&&vp(document.body,"cursor",e._replacedCursorStyle)}
102_dispatchGlobalMouseup(e,t){const r=this.getEvent(e);r.native=t,this._dispatchEventAll("globalpointerup",r)}_dispatchDragMove(e){if(this._dragging.length!==0){const t=this.getEvent(e),r=t.id;this._dragging.forEach(i=>{i.id===r&&this._dispatchEvent("pointermove",i.value,t)})}}_dispatchDragEnd(e,t){const r=e.button;let i;if(r==0||r===void 0)i="click";else if(r==2)i="rightclick";else if(r==1)i="middleclick";else return;const s=this.getEvent(e),a=s.id;if(this._mousedown.length!==0){const o=this._getHitTarget(s.originalPoint,s.bbox,t);o&&this._mousedown.forEach(l=>{l.id===a&&l.value.contains(o)&&this._dispatchEvent(i,l.value,s)}),this._mousedown.length=0}this._dragging.length!==0&&(this._dragging.forEach(o=>{o.id===a&&this._dispatchEvent("pointerup",o.value,s)}),this._dragging.length=0)}_dispatchDoubleClick(e,t){const r=this.getEvent(e),i=this._getHitTarget(r.originalPoint,r.bbox,t);i&&wp(i,s=>!this._dispatchEvent("dblclick",s,r))}_dispatchWheel(e,t){const r=this.getEvent(e),i=this._getHitTarget(r.originalPoint,r.bbox,t);i&&wp(i,s=>!this._dispatchEvent("wheel",s,r))}_makeSharedEvent(e,t){if(this._listeners[e]===void 0){const r=t();this._listeners[e]=new hR(()=>{delete this._listeners[e],r.dispose()})}return this._listeners[e].increment()}_onPointerEvent(e,t){let r=!1,i=null;function s(){i=null,r=!1}return new gr([new gn(()=>{i!==null&&clearTimeout(i),s()}),$t(this.view,tx(e),a=>{r=!0,i!==null&&clearTimeout(i),i=window.setTimeout(s,0)}),aG(window,e,(a,o)=>{i!==null&&(clearTimeout(i),i=null),t(a,o,r),r=!1})])}_initEvent(e){switch(e){case"globalpointermove":case"pointerover":case"pointerout":return this._makeSharedEvent("pointermove",()=>{const t=(r,i,s)=>{this._lastPointerMoveEvent={events:r,target:i,native:s},Y(r,a=>{this._dispatchGlobalMousemove(a,i,s)})};return new gr([this._onPointerEvent("pointerdown",t),this._onPointerEvent("pointermove",t)])});case"globalpointerup":return this._makeSharedEvent("pointerup",()=>{const t=this._onPointerEvent("pointerup",(i,s,a)=>{Y(i,o=>{this._dispatchGlobalMouseup(o,a)}),this._lastPointerMoveEvent={events:i,target:s,native:a}}),r=this._onPointerEvent("pointercancel",(i,s,a)=>{Y(i,o=>{this._dispatchGlobalMouseup(o,a)}),this._lastPointerMoveEvent={events:i,target:s,native:a}});return new gn(()=>{t.dispose(),r.dispose()})});case"click":case"rightclick":case"middleclick":case"pointerdown":case"pointermove":case"pointerup":return this._makeSharedEvent("pointerdown",()=>{const t=this._onPointerEvent("pointerdown",(a,o)=>{Y(a,l=>{this._dispatchMousedown(l,o)})}),r=this._onPointerEvent("pointermove",a=>{Y(a,o=>{this._dispatchDragMove(o)})}),i=this._onPointerEvent("pointerup",(a,o)=>{Y(a,l=>{this._dispatchDragEnd(l,o)})}),s=this._onPointerEvent("pointercancel",(a,o)=>{Y(a,l=>{this._dispatchDragEnd(l,o)})});return new gn(()=>{t.dispose(),r.dispose(),i.dispose(),s.dispose()})});case"dblclick":return this._makeSharedEvent("dblclick",()=>this._onPointerEvent("dblclick",(t,r)=>{Y(t,i=>{this._dispatchDoubleClick(i,r)})}));case"wheel":return this._makeSharedEvent("wheel",()=>$t(window,tx("wheel"),t=>{this._dispatchWheel(t,gR(t))},{passive:!1}))}}_addEvent(e,t,r,i){let s=this._events[t];s===void 0&&(s=this._events[t]={disposer:this._initEvent(t),callbacks:[],dispatching:!1,cleanup:!1});const a={object:e,context:i,callback:r,disposed:!1};return s.callbacks.push(a),new gn(()=>{a.disposed=!0,s.dispatching?s.cleanup=!0:(Jn(s.callbacks,a),s.callbacks.length===0&&(s.disposer.dispose(),delete this._events[t]))})}getCanvas(e,t){this.render(e),t||(t={});let r=this.resolution,i=Math.floor(this._calculatedWidth*this.resolution),s=Math.floor(this._calculatedHeight*this.resolution);if(t.minWidth&&t.minWidth>i){let g=t.minWidth/i;g>r&&(r=g*this.resolution)}if(t.minHeight&&t.minHeight>s){let g=t.minHeight/s;g>r&&(r=g*this.resolution)}if(t.maxWidth&&t.maxWidth<i){let g=t.maxWidth/i;g<r&&(r=g*this.resolution)}if(t.maxHeight&&t.maxHeight>s){let g=t.maxHeight/s;g<r&&(r=g*this.resolution)}t.maintainPixelRatio&&(r/=this.resolution);const a=[];let o=!1;const l=document.createElement("canvas");r!=this.resolution&&(o=!0,i=i*r/this.resolution,s=s*r/this.resolution),l.width=i,l.height=s,l.style.position="fixed",l.style.top="-10000px",this.view.appendChild(l),a.push(l);const u=l.getContext("2d");let h=0,f=0,m=!1;return Y(this.layers,g=>{if(g&&g.visible&&(g.tainted||o)){m=!0,g.exportableView=g.view,g.exportableContext=g.context,g.view=document.createElement("canvas"),g.view.style.position="fixed",g.view.style.top="-10000px",this.view.appendChild(g.view),a.push(g.view);let y=0,v=0;g.margin&&(y+=g.margin.left||0+g.margin.right||0,v+=g.margin.top||0+g.margin.bottom||0),g.view.width=i+y,g.view.height=s+v,g.context=g.view.getContext("2d"),g.dirty=!0,g.scale=r}}),m&&(this._omitTainted=!0,this.render(e),this._omitTainted=!1),Y(this.layers,g=>{if(g&&g.visible){let y=0,v=0;g.margin&&(y=-(g.margin.left||0)*this.resolution,v=-(g.margin.top||0)*this.resolution),u.drawImage(g.view,y,v),g.exportableView&&(g.view=g.exportableView,g.exportableView=void 0),g.exportableContext&&(g.context=g.exportableContext,g.exportableContext=void 0),h<g.view.clientWidth&&(h=g.view.clientWidth),f<g.view.clientHeight&&(f=g.view.clientHeight),g.scale=void 0}}),l.style.width=h+"px",l.style.height=f+"px",Y(a,g=>{g.style.position="",g.style.top="",this.view.removeChild(g)}),l}}class AG{constructor(){Object.defineProperty(this,"view",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"context",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"margin",{enumerable:!0,configurable:!0,writable:!0,value:{left:0,right:0,top:0,bottom:0}}),Object.defineProperty(this,"_width",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_height",{enumerable:!0,configurable:!0,writable:!0,value:0}),this.view=document.createElement("canvas"),this.context=this.view.getContext("2d",{alpha:!1,willReadFrequently:!0}
102),this.context.imageSmoothingEnabled=!1,this.view.style.position="absolute",this.view.style.top="0px",this.view.style.left="0px"}resize(e,t,r,i,s){e+=this.margin.left+this.margin.right,t+=this.margin.top+this.margin.bottom,r+=this.margin.left+this.margin.right,i+=this.margin.top+this.margin.bottom,this.view.style.left=-this.margin.left+"px",this.view.style.top=-this.margin.top+"px",this._width=Math.floor(e*s),this._height=Math.floor(t*s),this.view.width=this._width,this.view.style.width=r+"px",this.view.height=this._height,this.view.style.height=i+"px"}getImageData(e,t){return this.context.getImageData(Math.round((e.x-t.left)/t.width*this._width),Math.round((e.y-t.top)/t.height*this._height),1,1)}setMargin(e){this.margin.left=0,this.margin.right=0,this.margin.top=0,this.margin.bottom=0,Y(e,t=>{t.margin&&(this.margin.left=Math.max(this.margin.left,t.margin.left),this.margin.right=Math.max(this.margin.right,t.margin.right),this.margin.top=Math.max(this.margin.top,t.margin.top),this.margin.bottom=Math.max(this.margin.bottom,t.margin.bottom))})}clear(){this.context.save(),this.context.fillStyle="#000",this.context.fillRect(0,0,this._width,this._height)}}class jG{constructor(e,t){Object.defineProperty(this,"view",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"context",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"tainted",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"margin",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"order",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"visible",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"scale",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"dirty",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"exportableView",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"exportableContext",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_width",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_height",{enumerable:!0,configurable:!0,writable:!0,value:0}),this.view=e,this.context=t}resize(e,t,r,i,s){this.width!=null&&(e=this.width,r=this.width),this.height!=null&&(t=this.height,i=this.height),this.margin?(e+=this.margin.left+this.margin.right,t+=this.margin.top+this.margin.bottom,r+=this.margin.left+this.margin.right,i+=this.margin.top+this.margin.bottom,this.view.style.left=-this.margin.left+"px",this.view.style.top=-this.margin.top+"px"):(this.view.style.left="0px",this.view.style.top="0px"),this._width=Math.floor(e*s),this._height=Math.floor(t*s),this.view.width=this._width,this.view.style.width=r+"px",this.view.height=this._height,this.view.style.height=i+"px"}clear(){this.context.save(),this.context.clearRect(0,0,this._width,this._height)}}function fE(n,e){n==null?requestAnimationFrame(e):setTimeout(()=>{requestAnimationFrame(e)},1e3/n)}class ma{constructor(e,t={},r){if(Object.defineProperty(this,"dom",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_inner",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_settings",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_isDirty",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_isDirtyParents",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_dirty",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_dirtyParents",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_dirtyBounds",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_dirtyPositions",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_ticker",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_tickers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_updateTick",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"events",{enumerable:!0,configurable:!0,writable:!0,value:new xc}),Object.defineProperty(this,"animationTime",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_animations",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_renderer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_rootContainer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"tooltipContainer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_tooltipContainerSettings",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_tooltip",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"language",{enumerable:!0,configurable:!0,writable:!0,value:Q7.new(this,{})}),Object.defineProperty(this,"locale",{enumerable:!0,configurable:!0,writable:!0,value:kR}),Object.defineProperty(this,"utc",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"timezone",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fps",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"numberFormatter",{enumerable:!0,configurable:!0,writable:!0,value:G7.new(this,{})}),Object.defineProperty(this,"dateFormatter",{enumerable:!0,configurable:!0,writable:!0,value:q7.new(this,{})}),Object.defineProperty(this,"durationFormatter",{enumerable:!0,configurable:!0,writable:!0,value:K7.new(this,{})}),Object.defineProperty(this,"tabindex",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_tabindexes",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_a11yD",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_focusElementDirty",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_focusElementContainer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_focusedSprite",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_isShift",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_keyboardDragPoint",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_tooltipElementContainer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_readerAlertElement",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_logo",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_tooltipDiv",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"nonce",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"interfaceColors",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"verticalLayout",{enumerable:!0,configurable:!0,writable:!0,value:Qu.new(this,{})}),Object.defineProperty(this,"horizontalLayout",{enumerable:!0,configurable:!0,writable:!0,value:Ku.new(this,{})}),Object.defineProperty(this,"gridLayout",{enumerable:!0,configurable:!0,writable:!0,value:ol.new(this,{})}),Object.defineProperty(this,"_paused",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"autoResize",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"_fontHash",{enumerable:!0,configurable:!0,writable:!0,value:""}),Object.defineProperty(this,"_isDisposed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_disposers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_resizeSensorDisposer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_tooltips",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_htmlElementContainer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_htmlEnabledContainers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),!r)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this._settings=t,t.accessible==!1&&(this._a11yD=!0),t.useSafeResolution==null&&(t.useSafeResolution=!0);let i;t.useSafeResolution&&(i=g7()),this._renderer=new OG(i);let s;if(e instanceof HTMLElement?s=e:s=document.getElementById(e),Y(ns.rootElements,l=>{if(l.dom===s)throw new Error("You cannot have multiple Roots on the same DOM node")}),this.interfaceColors=Zg.new(this,{}),s===null)throw new Error("Could not find HTML element with id `"+e+"`");this.dom=s;let a=document.createElement("div");a.style.position="relative",a.style.width="100%",a.style.height="100%",s.appendChild(a);const o=t.tooltipContainerBounds;o&&(this._tooltipContainerSettings=o),this._inner=a,this._updateComputedStyles(),ns.rootElements.push(this)}static new(e,t){const r=new ma(e,t,!0);return r._init(),r}moveDOM(e){let t;if(e instanceof HTMLElement?t=e:t=document.getElementById(e),t){for(;this.dom.childNodes.length>0;)t.appendChild(this.dom.childNodes[0]);this.dom=t,this._initResizeSensor(),this.resize()}}_handleLogo(){if(this._logo){const e=this.dom.offsetWidth,t=this.dom.offsetHeight;e<=150||t<=60?this._logo.hide():this._logo.show()}}_showBranding(){if(!this._logo){const e=this.tooltipContainer.children.push(Ee.new(this,{interactive:!0,interactiveChildren:!1,position:"absolute",setStateOnChildren:!0,paddingTop:9,paddingRight:9,paddingBottom:9,paddingLeft:9,scale:.6,y:jr(100),centerY:le,tooltipText:"Created using amCharts 5",tooltipX:le,cursorOverStyle:"pointer",background:Yr.new(this,{fill:we(4671320),fillOpacity:0,tooltipY:5})})),t=vn.new(this,{pointerOrientation:"horizontal",paddingTop:4,paddingRight:7,paddingBottom:4,paddingLeft:7});t.label.setAll({fontSize:12}),t.get("background").setAll({fill:this.interfaceColors.get("background"),stroke:this.interfaceColors.get("grid"),strokeOpacity:.3}),e.set("tooltip",t),e.events.on("click",()=>{window.open("https://www.amcharts.com/","_blank")}),e.states.create("hover",{}),e.children.push(ot.new(this,{stroke:we(13421772),strokeWidth:3,svgPath:"M5 25 L13 25h13.6c3.4 0 6 0 10.3-4.3s5.2-12 8.6-12c3.4 0 4.3 8.6 7.7 8.6M83.4 25H79.8c-3.4 0-6 0-10.3-4.3s-5.2-12-8.6-12-4.3 8.6-7.7 8.6"})).states.create("hover",{stroke:we(3976191)}),e.children.push(ot.new(this,{stroke:we(8947848),strokeWidth:3,svgPath:"M83.4 25h-31C37 25 39.5 4.4 28.4 4.4S18.9 24.2 4.3 25H0"})).states.create("hover",{stroke:we(4671320)}),this._logo=e,this._handleLogo()}}_getRealSize(){return this.dom.getBoundingClientRect()}_getCalculatedSize(e){return this._settings.calculateSize?this._settings.calculateSize(e):{width:e.width,height:e.height}}_init(){const e=this._settings;e.accessible!==!1&&(e.focusable&&(this._inner.setAttribute("focusable","true"),this._inner.setAttribute("tabindex",this.tabindex+"")),e.ariaLabel&&this._inner.setAttribute("aria-label",e.ariaLabel),e.role&&this._inner.setAttribute("role",e.role));const t=this._renderer,r=this._getRealSize(),i=this._getCalculatedSize(r),s=Math.floor(i.width),a=Math.floor(i.height),o=Math.floor(r.width),l=Math.floor(r.height),u=Ee.new(this,{visible:!0,width:s,height:a});this._rootContainer=u,this._rootContainer._defaultThemes.push(Z7.new(this));const h=u.children.push(Ee.new(this,{visible:!0,width:le,height:le}));this.container=h,t.resize(o,l,s,a),this._inner.appendChild(t.view),this._initResizeSensor();const f=document.createElement("div");if(this._htmlElementContainer=f,f.className="am5-html-container",f.style.position="absolute",f.style.pointerEvents="none",this._tooltipContainerSettings||(f.style.overflow="hidden"),this._inner.appendChild(f),this._a11yD!==!0){const m=d
102ocument.createElement("div");m.className="am5-reader-container",m.setAttribute("role","alert"),m.style.position="absolute",m.style.width="1px",m.style.height="1px",m.style.overflow="hidden",m.style.clip="rect(1px, 1px, 1px, 1px)",this._readerAlertElement=m,this._inner.appendChild(this._readerAlertElement);const g=document.createElement("div");g.className="am5-focus-container",g.style.position="absolute",g.style.pointerEvents="none",g.style.top="0px",g.style.left="0px",g.style.overflow="hidden",g.style.width=s+"px",g.style.height=a+"px",g.setAttribute("role","graphics-document"),au(g,!1),this._focusElementContainer=g,this._inner.appendChild(this._focusElementContainer);const y=document.createElement("div");this._tooltipElementContainer=y,y.className="am5-tooltip-container",this._inner.appendChild(y),Xs("keyboardevents")&&(this._disposers.push($t(window,"keydown",v=>{v.keyCode==16?this._isShift=!0:v.keyCode==9&&(this._isShift=v.shiftKey)})),this._disposers.push($t(window,"keyup",v=>{v.keyCode==16&&(this._isShift=!1)})),this._disposers.push($t(g,"click",()=>{const v=this._focusedSprite;if(v){const x=t.getEvent(new MouseEvent("click"));v.events.dispatch("click",{type:"click",originalEvent:x.event,point:x.point,simulated:!0,target:v})}})),this._disposers.push($t(g,"keydown",v=>{const x=this._focusedSprite;if(x){v.keyCode==27&&(c7(),this._focusedSprite=void 0);let _=0,S=0;switch(v.keyCode){case 13:v.preventDefault();const w=t.getEvent(new MouseEvent("click"));x.events.dispatch("click",{type:"click",originalEvent:w.event,point:w.point,simulated:!0,target:x});return;case 37:_=-6;break;case 39:_=6;break;case 38:S=-6;break;case 40:S=6;break;default:return}if(_!=0||S!=0){if(v.preventDefault(),!x.isDragging()){this._keyboardDragPoint={x:0,y:0};const P=t.getEvent(new MouseEvent("mousedown",{clientX:0,clientY:0}));x.events.isEnabled("pointerdown")&&x.events.dispatch("pointerdown",{type:"pointerdown",originalEvent:P.event,point:P.point,simulated:!0,target:x})}const w=this._keyboardDragPoint;w.x+=_,w.y+=S;const k=t.getEvent(new MouseEvent("mousemove",{clientX:w.x,clientY:w.y}),!1);x.events.isEnabled("globalpointermove")&&x.events.dispatch("globalpointermove",{type:"globalpointermove",originalEvent:k.event,point:k.point,simulated:!0,target:x})}}})),this._disposers.push($t(g,"keyup",v=>{if(this._focusedSprite){const x=this._focusedSprite,_=v.keyCode;switch(_){case 37:case 39:case 38:case 40:if(x.isDragging()){const S=this._keyboardDragPoint,w=t.getEvent(new MouseEvent("mouseup",{clientX:S.x,clientY:S.y}));x.events.isEnabled("globalpointerup")&&x.events.dispatch("globalpointerup",{type:"globalpointerup",originalEvent:w.event,point:w.point,simulated:!0,target:x}),this._keyboardDragPoint=void 0;return}else if(x.get("focusableGroup")){const S=x.get("focusableGroup"),w=this._tabindexes.filter(j=>j.get("focusableGroup")==S&&j.getPrivate("focusable")!==!1);let k=w.indexOf(x);const P=w.length-1;k+=_==39||_==40?1:-1,k<0?k=P:k>P&&(k=0),d7(w[k].getPrivate("focusElement").dom)}break}}})))}this._startTicker(),this.setThemes([]),this._addTooltip(),this._hasLicense()||this._showBranding()}_initResizeSensor(){this._resizeSensorDisposer&&this._resizeSensorDisposer.dispose(),this._resizeSensorDisposer=new U7(this.dom,()=>{this.autoResize&&this.resize()}),this._disposers.push(this._resizeSensorDisposer)}resize(){const e=this._getRealSize(),t=this._getCalculatedSize(e),r=Math.floor(t.width),i=Math.floor(t.height);if(r>0&&i>0){const s=Math.floor(e.width),a=Math.floor(e.height),o=this._htmlElementContainer;if(o.style.width=r+"px",o.style.height=i+"px",this._a11yD!==!0){const u=this._focusElementContainer;u.style.width=r+"px",u.style.height=i+"px"}this._renderer.resize(s,a,r,i);const l=this._rootContainer;l.setPrivate("width",r),l.setPrivate("height",i),this._render(),this._handleLogo()}}_render(){this._renderer.render(this._rootContainer._display),this._focusElementDirty&&(this._updateCurrentFocus(),this._focusElementDirty=!1)}_runTickers(e){Y(this._tickers,t=>{t(e)})}_runAnimations(e){iv(this._animations,t=>t._runAnimation(e))}_runDirties(){let e={};for(;this._isDirtyParents;
102)this._isDirtyParents=!1,un(this._dirtyParents).forEach(a=>{const o=this._dirtyParents[a];delete this._dirtyParents[a],o.isDisposed()||(e[o.uid]=o,o._prepareChildren())});un(e).forEach(a=>{e[a]._updateChildren()});const t=[];un(this._dirty).forEach(a=>{const o=this._dirty[a];o.isDisposed()?delete this._dirty[o.uid]:(t.push(o),o._beforeChanged())}),t.forEach(a=>{a._changed(),delete this._dirty[a.uid],a._clearDirty()}),this._isDirty=!1;const r={},i=[];un(this._dirtyBounds).forEach(a=>{const o=this._dirtyBounds[a];delete this._dirtyBounds[a],o.isDisposed()||(r[o.uid]=o.depth(),i.push(o))}),this._positionHTMLElements(),i.sort((a,o)=>hs(r[o.uid],r[a.uid])),i.forEach(a=>{a._updateBounds()});const s=this._dirtyPositions;un(s).forEach(a=>{const o=s[a];delete s[a],o.isDisposed()||o._updatePosition()}),t.forEach(a=>{a._afterChanged()})}_renderFrame(e){return this._updateTick?(this.events.isEnabled("framestarted")&&this.events.dispatch("framestarted",{type:"framestarted",target:this,timestamp:e}),this._checkComputedStyles(),this._runTickers(e),this._runAnimations(e),this._runDirties(),this._render(),this._positionHTMLElements(),this.events.isEnabled("frameended")&&this.events.dispatch("frameended",{type:"frameended",target:this,timestamp:e}),this._tickers.length===0&&this._animations.length===0&&!this._isDirty):!0}_runTicker(e,t){this.isDisposed()||(this.animationTime=e,this._renderFrame(e)?(this._ticker=null,this.animationTime=null):this._paused||(t?this._ticker:fE(this.fps,this._ticker)))}_runTickerNow(e=1e4){if(!this.isDisposed()){const t=performance.now()+e;for(;;){const r=performance.now();if(r>=t){this.animationTime=null;break}if(this.animationTime=r,this._renderFrame(r)){this.animationTime=null;break}}}}_startTicker(){this._ticker===null&&(this.animationTime=null,this._ticker=e=>{this._runTicker(e)},fE(this.fps,this._ticker))}get updateTick(){return this._updateTick}set updateTick(e){this._updateTick=e,e&&this._startTicker()}_addDirtyEntity(e){this._dirty[e.uid]===void 0&&(this._isDirty=!0,this._dirty[e.uid]=e,this._startTicker())}_addDirtyParent(e){this._dirtyParents[e.uid]===void 0&&(this._isDirty=!0,this._isDirtyParents=!0,this._dirtyParents[e.uid]=e,this._startTicker())}_addDirtyBounds(e){this._dirtyBounds[e.uid]===void 0&&(this._isDirty=!0,this._dirtyBounds[e.uid]=e,this._startTicker())}_addDirtyPosition(e){this._dirtyPositions[e.uid]===void 0&&(this._isDirty=!0,this._dirtyPositions[e.uid]=e,this._startTicker())}_addAnimation(e){this._animations.indexOf(e)===-1&&(this._animations.push(e),this._startTicker())}_markDirty(){this._isDirty=!0}_markDirtyRedraw(){this.events.once("frameended",()=>{this._isDirty=!0,this._startTicker()})}eachFrame(e){return this._tickers.push(e),this._startTicker(),new gn(()=>{Jn(this._tickers,e)})}markDirtyGlobal(e){e||(e=this.container),e.walkChildren(t=>{t instanceof Ee&&this.markDirtyGlobal(t),t.markDirty(),t.markDirtyBounds()})}width(){return Math.floor(this._getCalculatedSize(this._getRealSize()).width)}height(){return Math.floor(this._getCalculatedSize(this._getRealSize()).height)}dispose(){this._isDisposed||(this._isDisposed=!0,this._rootContainer.dispose(),this._renderer.dispose(),this.horizontalLayout.dispose(),this.verticalLayout.dispose(),this.interfaceColors.dispose(),Y(this._disposers,e=>{e.dispose()}),this._inner&&u7(this._inner),oi(ns.rootElements,this))}isDisposed(){return this._isDisposed}readerAlert(e){this._a11yD!==!0&&(this._readerAlertElement.innerHTML=JC(e))}setThemes(e){this._rootContainer.set("themes",e);const t=this.tooltipContainer;t&&t._applyThemes();const r=this.interfaceColors;r&&r._applyThemes()}_addTooltip(){if(!this.tooltipContainer){const e=this._tooltipContainerSettings,t=this._rootContainer.children.push(Ee.new(this,{position:"absolute",isMeasured:!1,width:le,height:le,layer:e?35:30,layerMargin:e||void 0}));this.tooltipContainer=t;const r=vn.new(this,{});this.container.set("tooltip",r),r.hide(0),this._tooltip=r}}_registerTabindexOrder(e){this._a11yD!=!0&&(e.get("focusable")?uf(this._tabindexes,e):oi(this._tabindexes,e),this._invalidateTabindexes())}_unregisterTabindexOrder(e){this._a11yD!=!0&&(oi(this._tabindexes,e),this._invalidateTabindexes())}
102_invalidateTabindexes(){if(this._a11yD==!0)return;this._tabindexes.sort((t,r)=>{const i=t.get("tabindexOrder",0),s=r.get("tabindexOrder",0);return i==s?0:i>s?1:-1});const e=[];Y(this._tabindexes,(t,r)=>{t.getPrivate("focusElement")?this._moveFocusElement(r,t):this._makeFocusElement(r,t);const i=t.get("focusableGroup");i&&t.getPrivate("focusable")!==!1&&(e.indexOf(i)!==-1?t.getPrivate("focusElement").dom.setAttribute("tabindex","-1"):e.push(i))})}_updateCurrentFocus(){this._a11yD!=!0&&this._focusedSprite&&(this._decorateFocusElement(this._focusedSprite),this._positionFocusElement(this._focusedSprite))}_decorateFocusElement(e,t){if(this._a11yD==!0||(t||(t=e.getPrivate("focusElement").dom),!t))return;const r=e.get("role");r?t.setAttribute("role",r):t.removeAttribute("role");const i=e.get("ariaLabel");if(i){const g=hf(e,i);t.setAttribute("aria-label",g)}else t.removeAttribute("aria-label");const s=e.get("ariaLive");s?t.setAttribute("aria-live",s):t.removeAttribute("aria-live");const a=e.get("ariaChecked");a!=null?t.setAttribute("aria-checked",a?"true":"false"):t.removeAttribute("aria-checked"),e.get("ariaHidden")?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden");const o=e.get("ariaOrientation");o?t.setAttribute("aria-orientation",o):t.removeAttribute("aria-orientation");const l=e.get("ariaValueNow");l?t.setAttribute("aria-valuenow",l):t.removeAttribute("aria-valuenow");const u=e.get("ariaValueMin");u?t.setAttribute("aria-valuemin",u):t.removeAttribute("aria-valuemin");const h=e.get("ariaValueMax");h?t.setAttribute("aria-valuemax",h):t.removeAttribute("aria-valuemax");const f=e.get("ariaValueText");f?t.setAttribute("aria-valuetext",f):t.removeAttribute("aria-valuetext");const m=e.get("ariaControls");m?t.setAttribute("aria-controls",m):t.removeAttribute("aria-controls"),e.get("visible")&&e.get("opacity")!==0&&e.get("role")!="tooltip"&&!e.isHidden()&&e.getPrivate("focusable")!==!1?(t.getAttribute("tabindex")!="-1"&&t.setAttribute("tabindex",""+this.tabindex),t.removeAttribute("aria-hidden")):(t.removeAttribute("tabindex"),t.setAttribute("aria-hidden","true"))}_makeFocusElement(e,t){if(t.getPrivate("focusElement")||this._a11yD==!0)return;const r=document.createElement("div");t.get("role")!="tooltip"&&(r.tabIndex=this.tabindex),r.style.position="absolute",au(r,!1);const i=[];t.setPrivate("focusElement",{dom:r,disposers:i}),this._decorateFocusElement(t),i.push($t(r,"focus",s=>{this._handleFocus(s,e)})),i.push($t(r,"blur",s=>{this._handleBlur(s,e)})),this._moveFocusElement(e,t)}_removeFocusElement(e){if(this._a11yD==!0)return;oi(this._tabindexes,e);const t=e.getPrivate("focusElement");t&&(this._focusElementContainer.removeChild(t.dom),Y(t.disposers,i=>{i.dispose()}))}_hideFocusElement(e){if(this._a11yD==!0)return;const t=e.getPrivate("focusElement");t.dom.style.display="none"}_moveFocusElement(e,t){if(this._a11yD==!0)return;const r=this._focusElementContainer,i=t.getPrivate("focusElement").dom;if(i===this._focusElementContainer.children[e])return;const s=this._focusElementContainer.children[e+1];s?r.insertBefore(i,s):r.append(i)}_positionFocusElement(e){if(this._a11yD==!0||e==null)return;const t=e.globalBounds();let r=t.right==t.left?e.width():t.right-t.left,i=t.top==t.bottom?e.height():t.bottom-t.top;const s=this._settings.focusPadding!==void 0?this._settings.focusPadding:2;let a=t.left-s,o=t.top-s;r<0&&(a+=r,r=Math.abs(r)),i<0&&(o+=i,i=Math.abs(i));const l=e.getPrivate("focusElement").dom;l.style.top=o+"px",l.style.left=a+"px",l.style.width=r+s*2+"px",l.style.height=i+s*2+"px"}_handleFocus(e,t){if(this._a11yD==!0)return;const r=this._tabindexes[t];if(!r.isVisibleDeep()){this._focusNext(e.target,this._isShift?-1:1);return}this._positionFocusElement(r),this._focusedSprite=r,r.events.isEnabled("focus")&&r.events.dispatch("focus",{type:"focus",originalEvent:e,target:r})}_focusNext(e,t){if(this._a11yD==!0)return;const r=Array.from(document.querySelectorAll(["a[href]","area[href]","button:not([disabled])","details","input:not([disabled])","iframe:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[contentEditable=""]','[contentEditable="true"]','[contentEditable="TRUE"]','[tabindex]:not
102([tabindex^="-"])'].join(",")));let i=r.indexOf(e)+t;i<0?i=r.length-1:i>=r.length&&(i=0),r[i].focus()}_handleBlur(e,t){if(this._a11yD==!0)return;const r=this._focusedSprite;r&&!r.isDisposed()&&r.events.isEnabled("blur")&&r.events.dispatch("blur",{type:"blur",originalEvent:e,target:r}),this._focusedSprite=void 0}updateTooltip(e){if(this._a11yD==!0)return;const t=JC(e._getText());let r=e.getPrivate("tooltipElement");e.get("role")=="tooltip"&&t!=""?(r||(r=this._makeTooltipElement(e)),r.innerHTML!=t&&(r.innerHTML=t)):r&&(r.remove(),e.removePrivate("tooltipElement"))}_makeTooltipElement(e){const t=this._tooltipElementContainer,r=document.createElement("div");return r.style.position="absolute",r.style.width="1px",r.style.height="1px",r.style.overflow="hidden",r.style.clip="rect(1px, 1px, 1px, 1px)",au(r,!1),this._decorateFocusElement(e,r),t.append(r),e.setPrivate("tooltipElement",r),r}_removeTooltipElement(e){if(this._a11yD==!0)return;const t=e.getPrivate("tooltipElement");if(t){const r=t.parentElement;r&&r.removeChild(t)}}_invalidateAccessibility(e){if(this._a11yD==!0)return;this._focusElementDirty=!0;const t=e.getPrivate("focusElement");e.get("focusable")?t&&(this._decorateFocusElement(e),this._positionFocusElement(e)):t&&this._removeFocusElement(e)}focused(e){return this._focusedSprite===e}documentPointToRoot(e){const t=this._getRealSize(),r=this._getCalculatedSize(t),i=r.width/t.width,s=r.height/t.height;return{x:(e.x-t.left)*i,y:(e.y-t.top)*s}}rootPointToDocument(e){const t=this._getRealSize(),r=this._getCalculatedSize(t),i=r.width/t.width,s=r.height/t.height;return{x:e.x/i+t.left,y:e.y/s+t.top}}addDisposer(e){return this._disposers.push(e),e}_updateComputedStyles(){const e=window.getComputedStyle(this.dom);let t="";gt(e,(i,s)=>{qu(i)&&i.match(/^font/)&&(t+=s)});const r=t!=this._fontHash;return r&&(this._fontHash=t),r}_checkComputedStyles(){this._updateComputedStyles()&&this._invalidateLabelBounds(this.container)}_invalidateLabelBounds(e){e instanceof Ee?e.children.each(t=>{this._invalidateLabelBounds(t)}):e instanceof ll&&e.markDirtyBounds()}_hasLicense(){for(let e=0;e<ns.licenses.length;e++)if(ns.licenses[e].match(/^AM5C.{5,}/i))return!0;return!1}_licenseApplied(){this._logo&&this._logo.set("forceHidden",!0)}get debugGhostView(){return this._renderer.debugGhostView}set debugGhostView(e){this._renderer.debugGhostView=e}set tapToActivate(e){this._renderer.tapToActivate=e}get tapToActivate(){return this._renderer.tapToActivate}set tapToActivateTimeout(e){this._renderer.tapToActivateTimeout=e}get tapToActivateTimeout(){return this._renderer.tapToActivateTimeout}_makeHTMLElement(e){const t=this._htmlElementContainer,r=document.createElement("div");return e.setPrivate("htmlElement",r),r.style.position="absolute",r.style.overflow="auto",r.style.boxSizing="border-box",au(r,e.get("interactive",!1)),e.events.isEnabled("click")&&(au(r,!0),this._disposers.push($t(r,"click",i=>{const s=this._renderer.getEvent(i);e.events.dispatch("click",{type:"click",originalEvent:s.event,point:s.point,simulated:!1,target:e})}))),this._positionHTMLElement(e),t.append(r),uf(this._htmlEnabledContainers,e),r}_positionHTMLElements(){Y(this._htmlEnabledContainers,e=>{this._positionHTMLElement(e)})}_positionHTMLElement(e){const t=e.getPrivate("htmlElement");if(t){Y(["paddingTop","paddingRight","paddingBottom","paddingLeft","minWidth","minHeight","maxWidth","maxHeight"],f=>{const m=e.get(f);m?t.style[f]=m+"px":t.style[f]=""});const i=e.compositeOpacity();setTimeout(()=>{t.style.opacity=i+""},10);const s=e.isVisibleDeep();s&&(t.style.display="block");const a=e.globalBounds();t.style.top=a.top+"px",t.style.left=a.left+"px";const o=e.get("width"),l=e.get("height");let u=0,h=0;if(o&&(u=e.width()),l&&(h=e.height()),!o||!l){t.style.position="fixed",t.style.width="",t.style.height="";const f=t.getBoundingClientRect();t.style.position="absolute",u=f.width,h=f.height,e._adjustedLocalBounds={left:0,right:0,top:0,bottom:0},e.setPrivate("minWidth",u),e.setPrivate("minHeight",h)}else e.removePrivate("minWidth"),e.removePrivate("minHeight");u>0&&(t.style.minWidth=u+"px"),h>0&&(t.style.minHeight=h+"px"),(!s||i==0)&&(t.style.display="none")}}_setHTMLContent(e,t){let r=e.getPrivate("htmlElement");r||(r=this._makeHTMLElement(e)),r.innerHTML!=t&&(r.innerHTML=t)}_removeHTMLContent(e){let t=e.getPrivate("htmlElement");t&&(this._htmlElementContainer.removeChild(t),e.removePrivate("htmlElement")),oi(this._htmlEnabledContainers,e)}}class ul extends _n{constructor(){super(...arguments),Object.defineProperty(this,"_index",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"series",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_afterNew(){super._afterNewApplyThemes()}_beforeChanged(){if(super._beforeChanged(),this.isDirty("sprite")){const e=this.get("sprite");e&&(e.setAll({position:"absolute",role:"figure"}),this._disposers.push(e))}(this.isDirty("locationX")||this.isDirty("locationY"))&&this.series&&this.series._positionBullet(this)}}Object.defineProperty(ul,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Bullet"});Object.defineProperty(ul,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:_n.classNames.c
102oncat([ul.className])});class xr extends Yr{_beforeChanged(){super._beforeChanged(),(this.isDirty("cornerRadiusTL")||this.isDirty("cornerRadiusTR")||this.isDirty("cornerRadiusBR")||this.isDirty("cornerRadiusBL"))&&(this._clear=!0)}_draw(){let e=this.width(),t=this.height(),r=e,i=t,s=r/Math.abs(e),a=i/Math.abs(t);if(q(r)&&q(i)){let o=Math.min(r,i)/2,l=Vt(this.get("cornerRadiusTL",8),o),u=Vt(this.get("cornerRadiusTR",8),o),h=Vt(this.get("cornerRadiusBR",8),o),f=Vt(this.get("cornerRadiusBL",8),o),m=Math.min(Math.abs(r/2),Math.abs(i/2));l=an(l,0,m),u=an(u,0,m),h=an(h,0,m),f=an(f,0,m);const g=this._display;g.moveTo(l*s,0),g.lineTo(r-u*s,0),u>0&&g.arcTo(r,0,r,u*a,u),g.lineTo(r,i-h*a),h>0&&g.arcTo(r,i,r-h*s,i,h),g.lineTo(f*s,i),f>0&&g.arcTo(0,i,0,i-f*a,f),g.lineTo(0,l*a),l>0&&g.arcTo(0,0,l*s,0,l),g.closePath()}}}Object.defineProperty(xr,"className",{enumerable:!0,configurable:!0,writable:!0,value:"RoundedRectangle"});Object.defineProperty(xr,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:Yr.classNames.concat([xr.className])});let pf=class extends Ee{_afterNew(){this._settings.themeTags=ht(this._settings.themeTags,["button"]),super._afterNew(),this._settings.background||this.set("background",xr.new(this._root,{themeTags:ht(this._settings.themeTags,["background"])})),this.setPrivate("trustBounds",!0)}_prepareChildren(){if(super._prepareChildren(),this.isDirty("icon")){const e=this._prevSettings.icon,t=this.get("icon");t!==e&&(this._disposeProperty("icon"),e&&e.dispose(),t&&this.children.push(t),this._prevSettings.icon=t)}if(this.isDirty("label")){const e=this._prevSettings.label,t=this.get("label");t!==e&&(this._disposeProperty("label"),e&&e.dispose(),t&&this.children.push(t),this._prevSettings.label=t)}}};Object.defineProperty(pf,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Button"});Object.defineProperty(pf,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:Ee.classNames.concat([pf.className])});class gf extends ot{_afterNew(){super._afterNew(),this._display.isMeasured=!0,this.setPrivateRaw("trustBounds",!0)}_beforeChanged(){super._beforeChanged(),this.isDirty("radius")&&(this._clear=!0)}_changed(){super._changed(),this._clear&&this._display.drawCircle(0,0,this.get("radius",10))}}Object.defineProperty(gf,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Circle"});Object.defineProperty(gf,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:ot.classNames.concat([gf.className])});class RG extends wc{constructor(){super(...arguments),Object.defineProperty(this,"processor",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}incrementRef(){}decrementRef(){}_onPush(e){this.processor&&this.processor.processRow(e),super._onPush(e)}_onInsertIndex(e,t){this.processor&&this.processor.processRow(t),super._onInsertIndex(e,t)}_onSetIndex(e,t,r){this.processor&&this.processor.processRow(r),super._onSetIndex(e,t,r)}}class Ri extends SR{constructor(e,t,r){super(r),Object.defineProperty(this,"component",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"dataContext",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"bullets",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"open",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"close",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.dataContext=t,this.component=e,this._settings.visible=!0,this._checkDirty()}markDirty(){this.component.markDirtyValues(this)}_startAnimation(){this.component._root._addAnimation(this)}_animationTime(){return this.component._root.animationTime}_dispose(){this.component&&this.component.disposeDataItem(this),super._dispose()}show(e){this.setRaw("visible",!0),this.component&&this.component.showDataItem(this,e)}hide(e){this.setRaw("visible",!1),this.component&&this.component.hideDataItem(this,e)}isHidden(){return!this.get("visible")}}class cl extends Ee{constructor(){super(...arguments),Object.defineProperty(this,"_data",{enumerable:!0,configurable:!0,writable:!0,value:new RG}),Object.defineProperty(this,"_dataItems",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_mainDataItems",{enumerable:!0,configurable:!0,writable:!0,value:this._dataItems}),Object.defineProperty(this,"valueFields",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"fields",{enumerable:!0,configurable:!0,writable:!0,value:["id"]}),Object.defineProperty(this,"_valueFields",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_valueFieldsF",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_fields",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_fieldsF",{enumerable:!0,configurable:!0,writable:!0,value:void 0}
102),Object.defineProperty(this,"_valuesDirty",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_dataChanged",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_dataGrouped",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"inited",{enumerable:!0,configurable:!0,writable:!0,value:!1})}set data(e){e.incrementRef(),this._data.decrementRef(),this._data=e}get data(){return this._data}_dispose(){super._dispose(),this._data.decrementRef()}_onDataClear(){}_afterNew(){super._afterNew(),this._data.incrementRef(),this._updateFields(),this._disposers.push(this.data.events.onAll(e=>{const t=this._mainDataItems;if(this.markDirtyValues(),this._markDirtyGroup(),this._dataChanged=!0,e.type==="clear")Y(t,r=>{r.dispose()}),t.length=0,this._onDataClear();else if(e.type==="push"){const r=new Ri(this,e.newValue,this._makeDataItem(e.newValue));t.push(r),this.processDataItem(r)}else if(e.type==="setIndex"){const r=t[e.index],i=this._makeDataItem(e.newValue);r.bullets&&r.bullets.length==0&&(r.bullets=void 0),un(i).forEach(s=>{r.animate({key:s,to:i[s],duration:this.get("interpolationDuration",0),easing:this.get("interpolationEasing")})}),r.dataContext=e.newValue}else if(e.type==="insertIndex"){const r=new Ri(this,e.newValue,this._makeDataItem(e.newValue));t.splice(e.index,0,r),this.processDataItem(r)}else if(e.type==="removeIndex")t[e.index].dispose(),t.splice(e.index,1);else if(e.type==="moveIndex"){const r=t[e.oldIndex];t.splice(e.oldIndex,1),t.splice(e.newIndex,0,r)}else throw new Error("Unknown IStreamEvent type");this._afterDataChange()}))}_updateFields(){this.valueFields&&(this._valueFields=[],this._valueFieldsF={},Y(this.valueFields,e=>{this.get(e+"Field")&&(this._valueFields.push(e),this._valueFieldsF[e]={fieldKey:e+"Field",workingKey:e+"Working"})})),this.fields&&(this._fields=[],this._fieldsF={},Y(this.fields,e=>{this.get(e+"Field")&&(this._fields.push(e),this._fieldsF[e]=e+"Field")}))}get dataItems(){return this._dataItems}processDataItem(e){}_makeDataItem(e){const t={};return this._valueFields&&Y(this._valueFields,r=>{const i=this.get(this._valueFieldsF[r].fieldKey);t[r]=e[i],t[this._valueFieldsF[r].workingKey]=t[r]}),this._fields&&Y(this._fields,r=>{const i=this.get(this._fieldsF[r]);t[r]=e[i]}),t}makeDataItem(e){let t=new Ri(this,void 0,e);return this.processDataItem(t),t}pushDataItem(e){const t=this.makeDataItem(e);return this._mainDataItems.push(t),t}disposeDataItem(e){}showDataItem(e,t){return cn(this,void 0,void 0,function*(){e.set("visible",!0)})}hideDataItem(e,t){return cn(this,void 0,void 0,function*(){e.set("visible",!1)})}_clearDirty(){super._clearDirty(),this._valuesDirty=!1}_afterDataChange(){}_afterChanged(){if(super._afterChanged(),this._dataChanged){const e="datavalidated";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this}),this._dataChanged=!1}this.inited=!0}markDirtyValues(e){this.markDirty(),this._valuesDirty=!0}_markDirtyGroup(){this._dataGrouped=!1}markDirtySize(){this._sizeDirty=!0,this.markDirty()}}Object.defineProperty(cl,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Component"});Object.defineProperty(cl,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:Ee.classNames.concat([cl.className])});function IG(n){return new Promise((e,t)=>{setTimeout(e,n)})}let i1={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:365.242/12*864e5,year:31536e6};function CR(n){switch(n){case"year":return;case"month":return"year";case"week":return"month";case"day":return"month";case"hour":return"day";case"minute":return"hour";case"second":return"minute";case"millisecond":return"second"}}function fr(n,e){return e==null&&(e=1),i1[n]*e}function qi(n){return n?i1[n.timeUnit]*n.count:0}function r_(n,e,t,r,i){const s=n.timeUnit,a=n.count;if(s=="hour"||s=="minute"||s=="second"||s=="millisecond")return i1[n.timeUnit]*n.count;{const o=hn(new Date(e.getTime()),s,a,t,r,void 0,i).getTime();let l=o+a*fr(s)*1.05;return l=hn(new Date(l),s,1,t,r,void 0,i).getTime(),l-o}}function ER(n,e,t,r,i){if(e-n>fr(t,1.2))return!0;let s=new Date(n),a=new Date(e);
102i&&(s=i.convertLocal(s),a=i.convertLocal(a));let o=0,l=0;!r&&t!="millisecond"&&(o=s.getTimezoneOffset(),s.setUTCMinutes(s.getUTCMinutes()-o),l=a.getTimezoneOffset(),a.setUTCMinutes(a.getUTCMinutes()-l));let u=!1;switch(t){case"year":s.getUTCFullYear()!=a.getUTCFullYear()&&(u=!0);break;case"month":(s.getUTCFullYear()!=a.getUTCFullYear()||s.getUTCMonth()!=a.getUTCMonth())&&(u=!0);break;case"day":(s.getUTCMonth()!=a.getUTCMonth()||s.getUTCDate()!=a.getUTCDate())&&(u=!0);break;case"hour":s.getUTCHours()!=a.getUTCHours()&&(u=!0);break;case"minute":s.getUTCMinutes()!=a.getUTCMinutes()&&(u=!0);break;case"second":s.getUTCSeconds()!=a.getUTCSeconds()&&(u=!0);break;case"millisecond":s.getTime()!=a.getTime()&&(u=!0);break}if(u)return u;let h=CR(t);return h?ER(n,e,h,r,i):!1}function hn(n,e,t,r,i,s,a){if(!a||i){let o=0;switch(!i&&e!="millisecond"&&(o=n.getTimezoneOffset(),n.setUTCMinutes(n.getUTCMinutes()-o)),e){case"day":let l=n.getUTCDate();if(t>1){if(s){s=hn(s,"day",1);let _=n.getTime()-s.getTime(),S=Math.floor(_/fr("day")/t),w=fr("day",S*t);n.setTime(s.getTime()+w-o*fr("minute"))}}else n.setUTCDate(l);n.setUTCHours(0,0,0,0);break;case"second":let u=n.getUTCSeconds();t>1&&(u=Math.floor(u/t)*t),n.setUTCSeconds(u,0);break;case"millisecond":if(t==1)return n;let h=n.getUTCMilliseconds();h=Math.floor(h/t)*t,n.setUTCMilliseconds(h);break;case"hour":let f=n.getUTCHours();t>1&&(f=Math.floor(f/t)*t),n.setUTCHours(f,0,0,0);break;case"minute":let m=n.getUTCMinutes();t>1&&(m=Math.floor(m/t)*t),n.setUTCMinutes(m,0,0);break;case"month":let g=n.getUTCMonth();t>1&&(g=Math.floor(g/t)*t),n.setUTCMonth(g,1),n.setUTCHours(0,0,0,0);break;case"year":let y=n.getUTCFullYear();t>1&&(y=Math.floor(y/t)*t),n.setUTCFullYear(y,0,1),n.setUTCHours(0,0,0,0);break;case"week":let v=n.getUTCDate(),x=n.getUTCDay();q(r)||(r=1),x>=r?v=v-x+r:v=v-(7+x)+r,n.setUTCDate(v),n.setUTCHours(0,0,0,0);break}if(!i&&e!="millisecond"&&(n.setUTCMinutes(n.getUTCMinutes()+o),e=="day"||e=="week"||e=="month"||e=="year")){let l=n.getTimezoneOffset();if(l!=o){let u=l-o;n.setUTCMinutes(n.getUTCMinutes()+u)}}return n}else{if(isNaN(n.getTime()))return n;let o=a.offsetUTC(n),l=n.getTimezoneOffset(),u=a.parseDate(n),h=u.year,f=u.month,m=u.day,g=u.hour,y=u.minute,v=u.second,x=u.millisecond,_=u.weekday,S=o-l;switch(e){case"day":if(t>1&&s){s=hn(s,"day",1,r,i,void 0,a);let j=n.getTime()-s.getTime(),A=Math.floor(j/fr("day")/t),M=fr("day",A*t);n.setTime(s.getTime()+M),u=a.parseDate(n),h=u.year,f=u.month,m=u.day}g=0,y=S,v=0,x=0;break;case"second":y+=S,t>1&&(v=Math.floor(v/t)*t),x=0;break;case"millisecond":y+=S,t>1&&(x=Math.floor(x/t)*t);break;case"hour":t>1&&(g=Math.floor(g/t)*t),y=S,v=0,x=0;break;case"minute":t>1&&(y=Math.floor(y/t)*t),y+=S,v=0,x=0;break;case"month":t>1&&(f=Math.floor(f/t)*t),m=1,g=0,y=S,v=0,x=0;break;case"year":t>1&&(h=Math.floor(h/t)*t),f=0,m=1,g=0,y=S,v=0,x=0;break;case"week":q(r)||(r=1),_>=r?m=m-_+r:m=m-(7+_)+r,g=0,y=S,v=0,x=0;break}n=new Date(h,f,m,g,y,v,x);let w=n.getTimezoneOffset(),P=a.offsetUTC(n)-w;return P!=S&&n.setTime(n.getTime()+(P-S)*6e4),n}}function ax(n,e,t,r){let i=r[n],s=qi(i),a=r.length-1;if(n>=a)return Object.assign({},r[a]);let o=Math.ceil(e/s);return e<s&&n>0?Object.assign({},r[n-1]):o<=t?Object.assign({},r[n]):n+1<r.length?ax(n+1,e,t,r):Object.assign({},r[n])}class dl extends cl{constructor(){super(...arguments),Object.defineProperty(this,"_aggregatesCalculated",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_selectionAggregatesCalculated",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_dataProcessed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_psi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_pei",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"chart",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"bullets",{enumerable:!0,configurable:!0,writable:!0,value:new wc}),Object.defineProperty(this,"bulletsContainer",{enumerable:!0,configurable:!0,writable:!0,value:Ee.new(this._root,{width:le,height:le,position:"absolute"})})}_afterNew(){this.valueFields.push("value","customValue"),super._afterNew(),this.setPrivate("customData",{}),this._disposers.push(this.bullets.events.onAll(e=>{if(e.type==="clear")this._handleBullets(this.dataItems);else if(e.type==="push")this._handleBullets(this.dataItems);else if(e.type==="setIndex")this._handleBullets(this.dataItems);else if(e.type==="insertIndex")this._handleBullets(this.dataItems);else if(e.type==="removeIndex")this._handleBullets(this.dataItems);else if(e.type==="moveIndex")this._handleBullets(this.dataItems);else throw new Error("Unknown IListEvent type")}))}
102_dispose(){this.bulletsContainer.dispose(),super._dispose()}startIndex(){let e=this.dataItems.length;return Math.min(this.getPrivate("startIndex",0),e)}endIndex(){let e=this.dataItems.length;return Math.min(this.getPrivate("endIndex",e),e)}_handleBullets(e){Y(e,t=>{const r=t.bullets;r&&(Y(r,i=>{i.dispose()}),t.bullets=void 0)}),this.markDirtyValues()}getDataItemById(e){return dR(this.dataItems,t=>t.get("id")==e)}_makeBullets(e){this._shouldMakeBullet(e)&&(e.bullets=[],this.bullets.each(t=>{this._makeBullet(e,t)}))}_shouldMakeBullet(e){return!0}_makeBullet(e,t,r){const i=t(this._root,this,e);return i&&(i._index=r,this._makeBulletReal(e,i)),i}_makeBulletReal(e,t){let r=t.get("sprite");r&&(r._setDataItem(e),r.setRaw("position","absolute"),this.bulletsContainer.children.push(r)),t.series=this,e.bullets.push(t)}addBullet(e,t){e.bullets||(e.bullets=[]),t&&this._makeBulletReal(e,t)}_clearDirty(){super._clearDirty(),this._aggregatesCalculated=!1,this._selectionAggregatesCalculated=!1}_prepareChildren(){super._prepareChildren();let e=this.startIndex(),t=this.endIndex();if(this.isDirty("name")&&this.updateLegendValue(),this.isDirty("heatRules")&&(this._valuesDirty=!0),this.isPrivateDirty("baseValueSeries")){const i=this.getPrivate("baseValueSeries");i&&this._disposers.push(i.onPrivate("startIndex",()=>{this.markDirtyValues()}))}if(this.get("calculateAggregates")&&(this._valuesDirty&&!this._dataProcessed&&(this._aggregatesCalculated||(this._calculateAggregates(0,this.dataItems.length),this._aggregatesCalculated=!0)),(this._psi!=e||this._pei!=t)&&!this._selectionAggregatesCalculated&&(e===0&&t===this.dataItems.length&&this._aggregatesCalculated||this._calculateAggregates(e,t),this._selectionAggregatesCalculated=!0)),this.isDirty("tooltip")){let i=this.get("tooltip");i&&(i.hide(0),i.set("tooltipTarget",this))}if(this.isDirty("fill")||this.isDirty("stroke")){let i;const s=this.get("legendDataItem");if(s&&(i=s.get("markerRectangle"),i&&this.isVisible())){if(this.isDirty("stroke")){let a=this.get("stroke");i.set("stroke",a)}if(this.isDirty("fill")){let a=this.get("fill");i.set("fill",a)}}this.updateLegendMarker(void 0)}if(this.bullets.length>0){let i=this.startIndex(),s=this.endIndex();s<this.dataItems.length&&s++;for(let a=i;a<s;a++){let o=this.dataItems[a];o.bullets||this._makeBullets(o)}}}_calculateAggregates(e,t){let r=this._valueFields;if(!r)throw new Error("No value fields are set for the series.");const i={},s={},a={},o={},l={},u={},h={},f={},m={};Y(r,g=>{i[g]=0,s[g]=0,a[g]=0}),Y(r,g=>{let y=g+"Change",v=g+"ChangePercent",x=g+"ChangePrevious",_=g+"ChangePreviousPercent",S=g+"ChangeSelection",w=g+"ChangeSelectionPercent",k="valueY";(g=="valueX"||g=="openValueX"||g=="lowValueX"||g=="highValueX")&&(k="valueX");const P=this.getPrivate("baseValueSeries");for(let j=e;j<t;j++){const A=this.dataItems[j];let M=A.get(g);M!=null&&(a[g]++,i[g]+=M,s[g]+=Math.abs(M),f[g]=i[g]/a[g],(o[g]>M||o[g]==null)&&(o[g]=M),(l[g]<M||l[g]==null)&&(l[g]=M),h[g]=M,u[g]==null&&(u[g]=M,m[g]=M,P&&(u[k]=P._getBase(k))),e===0&&(A.setRaw(y,M-u[k]),A.setRaw(v,(M-u[k])/u[k]*100)),A.setRaw(x,M-m[k]),A.setRaw(_,(M-m[k])/m[k]*100),A.setRaw(S,M-u[k]),A.setRaw(w,(M-u[k])/u[k]*100),m[g]=M)}}),Y(r,g=>{this.setPrivate(g+"AverageSelection",f[g]),this.setPrivate(g+"CountSelection",a[g]),this.setPrivate(g+"SumSelection",i[g]),this.setPrivate(g+"AbsoluteSumSelection",s[g]),this.setPrivate(g+"LowSelection",o[g]),this.setPrivate(g+"HighSelection",l[g]),this.setPrivate(g+"OpenSelection",u[g]),this.setPrivate(g+"CloseSelection",h[g])}),e===0&&t===this.dataItems.length&&Y(r,g=>{this.setPrivate(g+"Average",f[g]),this.setPrivate(g+"Count",a[g]),this.setPrivate(g+"Sum",i[g]),this.setPrivate(g+"AbsoluteSum",s[g]),this.setPrivate(g+"Low",o[g]),this.setPrivate(g+"High",l[g]),this.setPrivate(g+"Open",u[g]),this.setPrivate(g+"Close",h[g])})}_updateChildren(){super._updateChildren(),this._psi=this.startIndex(),this._pei=this.endIndex(),this.isDirty("visible")&&this.bulletsContainer.set("visible",this.get("visible"));const e=this.get("heatRules");if(this._valuesDirty&&e&&e.length>0&&Y(e,t=>{const r=t.minValue||this.getPrivate(t.dataField+"Low")||0,i=t.maxValue||this.getPrivate(t.dataField+"High")||0;Y(t.target._entities,s=>{const a=s.dataItem.get(t.dataField);if(!q(a)){t.neutral&&s.set(t.key,t.neutral);return}if(t.customFunction)t.customFunction.call(this,s,r,i,a);else{let o;t.logarithmic?o=(Math.log(a)*Math.LOG10E-Math.log(r)*Math.LOG10E)/(Math.log(i)*Math.LOG10E-Math.log(r)*Math.LOG10E):o=(a-r)/(i-r),q(a)&&(!q(o)||Math.abs(o)==1/0)&&(o=.5);let l;
102q(t.min)?l=t.min+(t.max-t.min)*o:t.min instanceof be?l=be.interpolate(o,t.min,t.max):t.min instanceof $e&&(l=_R(o,t.min,t.max)),s.set(t.key,l)}})}),this.get("visible")){let t=this.dataItems.length,r=this.startIndex(),i=this.endIndex();i<t&&i++,r>0&&r--;for(let s=0;s<r;s++)this._hideBullets(this.dataItems[s]);for(let s=r;s<i;s++)this._positionBullets(this.dataItems[s]);for(let s=i;s<t;s++)this._hideBullets(this.dataItems[s])}}_positionBullets(e){e.bullets&&Y(e.bullets,t=>{this._positionBullet(t);const r=t.get("sprite");t.get("dynamic")&&(r&&(r._markDirtyKey("fill"),r.markDirtySize()),r instanceof Ee&&r.walkChildren(i=>{i._markDirtyKey("fill"),i.markDirtySize(),i instanceof pi&&i.text.markDirtyText()})),r instanceof pi&&r.get("populateText")&&r.text.markDirtyText()})}_hideBullets(e){e.bullets&&Y(e.bullets,t=>{let r=t.get("sprite");r&&r.setPrivate("visible",!1)})}_positionBullet(e){}_placeBulletsContainer(e){e.bulletsContainer.children.moveValue(this.bulletsContainer)}_removeBulletsContainer(){const e=this.bulletsContainer;e.parent&&e.parent.children.removeValue(e)}disposeDataItem(e){const t=e.bullets;t&&Y(t,r=>{r.dispose()})}_getItemReaderLabel(){return""}showDataItem(e,t){const r=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return cn(this,void 0,void 0,function*(){const i=[r.showDataItem.call(this,e,t)],s=e.bullets;s&&Y(s,a=>{const o=a.get("sprite");o&&i.push(o.show(t))}),yield Promise.all(i)})}hideDataItem(e,t){const r=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return cn(this,void 0,void 0,function*(){const i=[r.hideDataItem.call(this,e,t)],s=e.bullets;s&&Y(s,a=>{const o=a.get("sprite");o&&i.push(o.hide(t))}),yield Promise.all(i)})}_sequencedShowHide(e,t){return cn(this,void 0,void 0,function*(){if(this.get("sequencedInterpolation"))if(q(t)||(t=this.get("interpolationDuration",0)),t>0){const r=this.startIndex(),i=this.endIndex();yield Promise.all(Q0(this.dataItems,(s,a)=>cn(this,void 0,void 0,function*(){let o=t||0;(a<r-10||a>i+10)&&(o=0);let l=this.get("sequencedDelay",0)+o/(i-r);yield IG(l*(a-r)),e?yield this.showDataItem(s,o):yield this.hideDataItem(s,o)})))}else yield Promise.all(Q0(this.dataItems,r=>e?this.showDataItem(r,0):this.hideDataItem(r,0)))})}updateLegendValue(e){if(e){const t=e.get("legendDataItem");if(t){const r=t.get("valueLabel");if(r){const s=r.text;let a="";r._setDataItem(e),a=this.get("legendValueText",s.get("text","")),r.set("text",a),s.markDirtyText()}const i=t.get("label");if(i){const s=i.text;let a="";i._setDataItem(e),a=this.get("legendLabelText",s.get("text","")),i.set("text",a),s.markDirtyText()}}}}updateLegendMarker(e){}_onHide(){super._onHide();const e=this.getTooltip();e&&e.hide()}hoverDataItem(e){}unhoverDataItem(e){}_getBase(e){const t=this.dataItems[this.startIndex()];return t?t.get(e):0}}Object.defineProperty(dl,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Series"});Object.defineProperty(dl,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:cl.classNames.concat([dl.className])});function hE(n,e){for(let t=0,r=e.length;t<r;t++){const i=e[t];if(i.length>0){let s=i[0];if(s.length>0){let a=s[0];n.moveTo(a.x,a.y);for(let o=0,l=i.length;o<l;o++)NG(n,i[o])}}}}function NG(n,e){for(let t=0,r=e.length;t<r;t++){const i=e[t];n.lineTo(i.x,i.y)}}class mf extends ot{_beforeChanged(){super._beforeChanged(),(this.isDirty("points")||this.isDirty("segments")||this._sizeDirty||this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){const e=this.get("points"),t=this.get("segments");if(e&&e.length>0){let r=e[0];this._display.moveTo(r.x,r.y),hE(this._display,[[e]])}else if(t)hE(this._display,t);else if(!this.get("draw")){let r=this.width(),i=this.height();this._display.moveTo(0,0),this._display.lineTo(r,i)}}}}Object.defineProperty(mf,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Line"});Object.defineProperty(mf,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:ot.classNames.concat([mf.className])});class Jg extends ll{constructor(){super(...arguments),Object.defineProperty(this,"_display",{enumerable:!0,configurable:!0,writable:!0,value:this._root._renderer.makeRadialText("",this.textStyle)})}_afterNew(){super._afterNew()}_beforeChanged(){super._beforeChanged(),this._display.clear(),this.isDirty("textType")&&(this._display.textType=this.get("textType"),this.markDirtyBounds()),this.isDirty("radius")&&(this._display.radius=this.get("radius"),this.markDirtyBounds()),this.isDirty("startAngle")&&(this._display.startAngle=(this.get("startAngle",0)+90)*cf,this.markDirtyBounds()),this.isDirty("inside")&&(this._display.inside=this.get("inside"),this.markDirtyBounds()),this.isDirty("orientation")&&(this._display.orientation=this.get("orientation"),this.markDirtyBounds()),this.isDirty("kerning")&&(this._display.kerning=this.get("kerning"),this.markDirtyBounds())}}Object.defineProperty(Jg,"className",{enumerable:!0,configurable:!0,writable:!0,value:"RadialText"});Object.defineProperty(Jg,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:ll.classNames.c
102oncat([Jg.className])});class em extends pi{constructor(){super(...arguments),Object.defineProperty(this,"_flipped",{enumerable:!0,configurable:!0,writable:!0,value:!1})}_afterNew(){this._textKeys.push("textType","kerning"),super._afterNew()}_makeText(){this._text=this.children.push(Jg.new(this._root,{}))}baseRadius(){const e=this.getPrivate("radius",0),t=this.getPrivate("innerRadius",0),r=this.get("baseRadius",0);return t+Vt(r,e-t)}radius(){const e=this.get("inside",!1);return this.baseRadius()+this.get("radius",0)*(e?-1:1)}_updateChildren(){if(super._updateChildren(),this.isDirty("baseRadius")||this.isPrivateDirty("radius")||this.isPrivateDirty("innerRadius")||this.isDirty("labelAngle")||this.isDirty("radius")||this.isDirty("inside")||this.isDirty("orientation")||this.isDirty("textType")){const e=this.get("textType","adjusted"),t=this.get("inside",!1),r=this.get("orientation");let i=r1(this.get("labelAngle",0));this._text.set("startAngle",this.get("labelAngle",0)),this._text.set("inside",t);const s=li(i),a=fs(i);let o=this.baseRadius(),l=this.radius();if(this._display.angle=0,e=="circular")this.setAll({paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}),this._text.set("orientation",r),this._text.set("radius",l);else{o==0&&(i=0,l=0);let u=l*a,h=l*s;e=="radial"?(this.setRaw("x",u),this.setRaw("y",h),i<90||i>270||r!="auto"?(this._display.angle=i,this._flipped=!1):(this._display.angle=i+180,this._flipped=!0),this._dirty.rotation=!1):e=="adjusted"?(this.setRaw("centerX",He),this.setRaw("centerY",He),this.setRaw("x",u),this.setRaw("y",h)):e=="regular"&&(this.setRaw("x",u),this.setRaw("y",h))}this.markDirtyPosition(),this.markDirtyBounds()}}_updatePosition(){const e=this.get("textType","regular"),t=this.get("inside",!1);let r=0,i=0,s=this.get("labelAngle",0),a=this.localBounds(),o=a.right-a.left,l=a.bottom-a.top;if(e=="radial"){if(this._flipped){let u=this.get("centerX");u instanceof $e&&(o=o*(1-u.value*2)),r=o*fs(s),i=o*li(s)}}else!t&&e=="adjusted"&&(r=o/2*fs(s),i=l/2*li(s));this.setRaw("dx",r),this.setRaw("dy",i),super._updatePosition()}get text(){return this._text}}Object.defineProperty(em,"className",{enumerable:!0,configurable:!0,writable:!0,value:"RadialLabel"});Object.defineProperty(em,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:pi.classNames.concat([em.className])});class sa extends Ee{constructor(){super(...arguments),Object.defineProperty(this,"thumb",{enumerable:!0,configurable:!0,writable:!0,value:this._makeThumb()}),Object.defineProperty(this,"startGrip",{enumerable:!0,configurable:!0,writable:!0,value:this._makeButton()}),Object.defineProperty(this,"endGrip",{enumerable:!0,configurable:!0,writable:!0,value:this._makeButton()}),Object.defineProperty(this,"_thumbBusy",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_startDown",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_endDown",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_thumbDown",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_gripDown",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_addOrientationClass(){this._settings.themeTags=ht(this._settings.themeTags,["scrollbar",this._settings.orientation]),this._settings.background||(this._settings.background=xr.new(this._root,{themeTags:ht(this._settings.themeTags,["main","background"])}))}_makeButton(){return this.children.push(pf.new(this._root,{themeTags:["resize","button",this.get("orientation")],icon:ot.new(this._root,{themeTags:["icon"]})}))}_makeThumb(){return this.children.push(xr.new(this._root,{themeTags:["thumb",this.get("orientation")]}))}_handleAnimation(e){e&&this._disposers.push(e.events.on("stopped",()=>{this.setPrivateRaw("isBusy",!1),this._thumbBusy=!1}))}_afterNew(){this._addOrientationClass(),super._afterNew();const e=this.startGrip,t=this.endGrip,r=this.thumb,i=this.get("background");i&&this._disposers.push(i.events.on("click",s=>{this.setPrivateRaw("isBusy",!0);const a=this._display.toLocal(s.point),o=this.width(),l=this.height(),u=this.get("orientation");let h;u=="vertical"?h=(a.y-r.height()/2)/l:h=(a.x-r.width()/2)/o;let f,m;u=="vertical"?(f=h*l,m="y"):(f=h*o,m="x");const g=this.get("animationDuration",0);g>0?(this._thumbBusy=!0,this._handleAnimation(this.thumb.animate({key:m,to:f,duration:g,easing:this.get("animationEasing")}))):(this.thumb.set(m,f),this._root.events.once("frameended",()=>{this.setPrivateRaw("isBusy",!1)}))}
102)),this._disposers.push(r.events.on("dblclick",s=>{if(!t1(s.originalEvent,this))return;const a=this.get("animationDuration",0),o=this.get("animationEasing");this.animate({key:"start",to:0,duration:a,easing:o}),this.animate({key:"end",to:1,duration:a,easing:o})})),this._disposers.push(e.events.on("pointerdown",()=>{this.setPrivateRaw("isBusy",!0),this._startDown=!0,this._gripDown="start"})),this._disposers.push(t.events.on("pointerdown",()=>{this.setPrivateRaw("isBusy",!0),this._endDown=!0,this._gripDown="end"})),this._disposers.push(r.events.on("pointerdown",()=>{this.setPrivateRaw("isBusy",!0),this._thumbDown=!0,this._gripDown=void 0})),this._disposers.push(e.events.on("globalpointerup",()=>{this._startDown&&this.setPrivateRaw("isBusy",!1),this._startDown=!1})),this._disposers.push(t.events.on("globalpointerup",()=>{this._endDown&&this.setPrivateRaw("isBusy",!1),this._endDown=!1})),this._disposers.push(r.events.on("globalpointerup",()=>{this._thumbDown&&this.setPrivateRaw("isBusy",!1),this._thumbDown=!1})),this._disposers.push(e.on("x",()=>{this._updateThumb()})),this._disposers.push(t.on("x",()=>{this._updateThumb()})),this._disposers.push(e.on("y",()=>{this._updateThumb()})),this._disposers.push(t.on("y",()=>{this._updateThumb()})),this._disposers.push(r.events.on("positionchanged",()=>{this._updateGripsByThumb()})),this.get("orientation")=="vertical"?(e.set("x",0),t.set("x",0),this._disposers.push(r.adapters.add("y",s=>Math.max(Math.min(Number(s),this.height()-r.height()),0))),this._disposers.push(r.adapters.add("x",s=>this.width()/2)),this._disposers.push(e.adapters.add("x",s=>this.width()/2)),this._disposers.push(t.adapters.add("x",s=>this.width()/2)),this._disposers.push(e.adapters.add("y",s=>Math.max(Math.min(Number(s),this.height()),0))),this._disposers.push(t.adapters.add("y",s=>Math.max(Math.min(Number(s),this.height()),0)))):(e.set("y",0),t.set("y",0),this._disposers.push(r.adapters.add("x",s=>Math.max(Math.min(Number(s),this.width()-r.width()),0))),this._disposers.push(r.adapters.add("y",s=>this.height()/2)),this._disposers.push(e.adapters.add("y",s=>this.height()/2)),this._disposers.push(t.adapters.add("y",s=>this.height()/2)),this._disposers.push(e.adapters.add("x",s=>Math.max(Math.min(Number(s),this.width()),0))),this._disposers.push(t.adapters.add("x",s=>Math.max(Math.min(Number(s),this.width()),0))))}_updateChildren(){super._updateChildren(),(this.isDirty("end")||this.isDirty("start")||this._sizeDirty)&&this.updateGrips()}_changed(){if(super._changed(),this.isDirty("start")||this.isDirty("end")){const e="rangechanged";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,start:this.get("start",0),end:this.get("end",1),grip:this._gripDown})}}updateGrips(){const e=this.startGrip,t=this.endGrip,r=this.get("orientation"),i=this.height(),s=this.width();r=="vertical"?(e.set("y",i*this.get("start",0)),t.set("y",i*this.get("end",1))):(e.set("x",s*this.get("start",0)),t.set("x",s*this.get("end",1)));const a=this.getPrivate("positionTextFunction"),o=Math.round(this.get("start",0)*100),l=Math.round(this.get("end",0)*100);let u,h;a?(u=a.call(this,this.get("start",0)),h=a.call(this,this.get("end",0))):(u=o+"%",h=l+"%"),e.set("ariaLabel",this._t("From %1",void 0,u)),e.set("ariaValueNow",""+o),e.set("ariaValueText",o+"%"),e.set("ariaValueMin","0"),e.set("ariaValueMax","100"),t.set("ariaLabel",this._t("To %1",void 0,h)),t.set("ariaValueNow",""+l),t.set("ariaValueText",l+"%"),t.set("ariaValueMin","0"),t.set("ariaValueMax","100")}_updateThumb(){const e=this.thumb,t=this.startGrip,r=this.endGrip,i=this.height(),s=this.width();let a=t.x(),o=r.x(),l=t.y(),u=r.y(),h=0,f=1;this.get("orientation")=="vertical"?q(l)&&q(u)&&(!this._thumbBusy&&!e.isDragging()&&(e.set("height",u-l),e.set("y",l)),h=l/i,f=u/i):q(a)&&q(o)&&(!this._thumbBusy&&!e.isDragging()&&(e.set("width",o-a),e.set("x",a)),h=a/s,f=o/s),this.getPrivate("isBusy")&&(this.get("start")!=h||this.get("end")!=f)&&(this.set("start",h),this.set("end",f));const m=this.getPrivate("positionTextFunction"),g=Math.round(this.get("start",0)*100),y=Math.round(this.get("end",0)*100);let v,x;m?(v=m.call(this,this.get("start",0)),x=m.call(this,this.get("end",0))):(v=g+"%",x=y+"%"),e.set("ariaLabel",this._t("From %1 to %2",void 0,v,x)),e.set("ariaValueNow",""+g),e.set("ariaValueText",g+"%")}_updateGripsByThumb(){const e=this.thumb,t=this.startGrip,r=this.endGrip;if(this.get("orientation")=="vertical"){const i=e.height();t.set("y",e.y()),r.set("y",e.y()+i)}else{const i=e.width();t.set("x",e.x()),r.set("x",e.x()+i)}}}Object.defineProperty(sa,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Scrollbar"});Object.defineProperty(sa,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:Ee.classNames.c
vendor: 9,426 bytes, line 102
102oncat([sa.className])});function St(n){return function(){return n}}const pE=Math.abs,Yn=Math.atan2,Eo=Math.cos,FG=Math.max,i_=Math.min,Gi=Math.sin,wu=Math.sqrt,ur=1e-12,vf=Math.PI,tm=vf/2,LG=2*vf;function BG(n){return n>1?0:n<-1?vf:Math.acos(n)}function gE(n){return n>=1?tm:n<=-1?-tm:Math.asin(n)}const ox=Math.PI,lx=2*ox,Ro=1e-6,$G=lx-Ro;function MR(n){this._+=n[0];for(let e=1,t=n.length;e<t;++e)this._+=arguments[e]+n[e]}function VG(n){let e=Math.floor(n);if(!(e>=0))throw new Error(`invalid digits: ${n}`);if(e>15)return MR;const t=10**e;return function(r){this._+=r[0];for(let i=1,s=r.length;i<s;++i)this._+=Math.round(arguments[i]*t)/t+r[i]}}class YG{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=e==null?MR:VG(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,r,i){this._append`Q${+e},${+t},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(e,t,r,i,s,a){this._append`C${+e},${+t},${+r},${+i},${this._x1=+s},${this._y1=+a}`}arcTo(e,t,r,i,s){if(e=+e,t=+t,r=+r,i=+i,s=+s,s<0)throw new Error(`negative radius: ${s}`);let a=this._x1,o=this._y1,l=r-e,u=i-t,h=a-e,f=o-t,m=h*h+f*f;if(this._x1===null)this._append`M${this._x1=e},${this._y1=t}`;else if(m>Ro)if(!(Math.abs(f*l-u*h)>Ro)||!s)this._append`L${this._x1=e},${this._y1=t}`;else{let g=r-a,y=i-o,v=l*l+u*u,x=g*g+y*y,_=Math.sqrt(v),S=Math.sqrt(m),w=s*Math.tan((ox-Math.acos((v+m-x)/(2*_*S)))/2),k=w/S,P=w/_;Math.abs(k-1)>Ro&&this._append`L${e+k*h},${t+k*f}`,this._append`A${s},${s},0,0,${+(f*g>h*y)},${this._x1=e+P*l},${this._y1=t+P*u}`}}arc(e,t,r,i,s,a){if(e=+e,t=+t,r=+r,a=!!a,r<0)throw new Error(`negative radius: ${r}`);let o=r*Math.cos(i),l=r*Math.sin(i),u=e+o,h=t+l,f=1^a,m=a?i-s:s-i;this._x1===null?this._append`M${u},${h}`:(Math.abs(this._x1-u)>Ro||Math.abs(this._y1-h)>Ro)&&this._append`L${u},${h}`,r&&(m<0&&(m=m%lx+lx),m>$G?this._append`A${r},${r},0,1,${f},${e-o},${t-l}A${r},${r},0,1,${f},${this._x1=u},${this._y1=h}`:m>Ro&&this._append`A${r},${r},0,${+(m>=ox)},${f},${this._x1=e+r*Math.cos(s)},${this._y1=t+r*Math.sin(s)}`)}rect(e,t,r,i){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function s1(n){let e=3;return n.digits=function(t){if(!arguments.length)return e;if(t==null)e=null;else{const r=Math.floor(t);if(!(r>=0))throw new RangeError(`invalid digits: ${t}`);e=r}return n},()=>new YG(e)}function HG(n){return n.innerRadius}function zG(n){return n.outerRadius}function WG(n){return n.startAngle}function UG(n){return n.endAngle}function GG(n){return n&&n.padAngle}function XG(n,e,t,r,i,s,a,o){var l=t-n,u=r-e,h=a-i,f=o-s,m=f*l-h*u;if(!(m*m<ur))return m=(h*(e-s)-f*(n-i))/m,[n+m*l,e+m*u]}function Sp(n,e,t,r,i,s,a){var o=n-t,l=e-r,u=(a?s:-s)/wu(o*o+l*l),h=u*l,f=-u*o,m=n+h,g=e+f,y=t+h,v=r+f,x=(m+y)/2,_=(g+v)/2,S=y-m,w=v-g,k=S*S+w*w,P=i-s,j=m*v-y*g,A=(w<0?-1:1)*wu(FG(0,P*P*k-j*j)),M=(j*w-S*A)/k,L=(-j*S-w*A)/k,I=(j*w+S*A)/k,V=(-j*S+w*A)/k,Q=M-x,U=L-_,X=I-x,K=V-_;return Q*Q+U*U>X*X+K*K&&(M=I,L=V),{cx:M,cy:L,x01:-h,y01:-f,x11:M*(i/P-1),y11:L*(i/P-1)}}function qG(){var n=HG,e=zG,t=St(0),r=null,i=WG,s=UG,a=GG,o=null,l=s1(u);function u(){var h,f,m=+n.apply(this,arguments),g=+e.apply(this,arguments),y=i.apply(this,arguments)-tm,v=s.apply(this,arguments)-tm,x=pE(v-y),_=v>y;if(o||(o=h=l()),g<m&&(f=g,g=m,m=f),!(g>ur))o.moveTo(0,0);else if(x>LG-ur)o.moveTo(g*Eo(y),g*Gi(y)),o.arc(0,0,g,y,v,!_),m>ur&&(o.moveTo(m*Eo(v),m*Gi(v)),o.arc(0,0,m,v,y,_));else{var S=y,w=v,k=y,P=v,j=x,A=x,M=a.apply(this,arguments)/2,L=M>ur&&(r?+r.apply(this,arguments):wu(m*m+g*g)),I=i_(pE(g-m)/2,+t.apply(this,arguments)),V=I,Q=I,U,X;if(L>ur){var K=gE(L/m*Gi(M)),z=gE(L/g*Gi(M));(j-=K*2)>ur?(K*=_?1:-1,k+=K,P-=K):(j=0,k=P=(y+v)/2),(A-=z*2)>ur?(z*=_?1:-1,S+=z,w-=z):(A=0,S=w=(y+v)/2)}var F=g*Eo(S),R=g*Gi(S),B=m*Eo(P),Z=m*Gi(P);if(I>ur){var se=g*Eo(w),ae=g*Gi(w),ge=m*Eo(k),ke=m*Gi(k),Me;if(x<vf)if(Me=XG(F,R,ge,ke,se,ae,B,Z)){var me=F-Me[0],rt=R-Me[1],et=se-Me[0],xt=ae-Me[1],Pt=1/Gi(BG((me*et+rt*xt)/(wu(me*me+rt*rt)*wu(et*et+xt*xt)))/2),It=wu(Me[0]*Me[0]+Me[1]*Me[1]);V=i_(I,(m-It)/(Pt-1)),Q=i_(I,(g-It)/(Pt+1))}else V=Q=0}A>ur?Q>ur?(U=Sp(ge,ke,F,R,g,Q,_),X=Sp(se,ae,B,Z,g,Q,_),o.moveTo(U.cx+U.x01,U.cy+U.y01),Q<I?o.arc(U.cx,U.cy,Q,Yn(U.y01,U.x01),Yn(X.y01,X.x01),!_):(o.arc(U.cx,U.cy,Q,Yn(U.y01,U.x01),Yn(U.y11,U.x11),!_),o.arc(0,0,g,Yn(U.cy+U.y11,U.cx+U.x11),Yn(X.cy+X.y11,X.cx+X.x11),!_),o.arc(X.cx,X.cy,Q,Yn(X.y11,X.x11),Yn(X.y01,X.x01),!_))):(o.moveTo(F,R),o.arc(0,0,g,S,w,!_)):o.moveTo(F,R),!(m>ur)||!(j>ur)?o.lineTo(B,Z):V>ur?(U=Sp(B,Z,se,ae,m,-V,_),X=Sp(F,R,ge,ke,m,-V,_),o.lineTo(U.cx+U.x01,U.cy+U.y01),V<I?o.arc(U.cx,U.cy,V,Yn(U.y01,U.x01),Yn(X.y01,X.x01),!_):(o.arc(U.cx,U.cy,V,Yn(U.y01,U.x01),Yn(U.y11,U.x11),!_),o.arc(0,0,m,Yn(U.cy+U.y11,U.cx+U.x11),Yn(X.cy+X.y11,X.cx+X.x11),_),o.arc(X.cx,X.cy,V,Yn(X.y11,X.x11),Yn(X.y01,X.x01),!_))):o.arc(0,0,m,P,k,_)}if(o.closePath(),h)return o=null,h+""||null}return u.centroid=function(){var h=(+n.apply(this,arguments)+ +e.apply(this,arguments))/2,f=(+i.apply(this,arguments)+ +s.apply(this,arguments))/2-vf/2;return[Eo(f)*h,Gi(f)*h]},u.innerRadius=function(h){return arguments.length?(n=typeof h=="function"?h:St(+h),u):n},u.outerRadius=function(h){return arguments.length?(e=typeof h=="function"?h:St(+h),u):e},u.cornerRadius=function(h){return arguments.length?(t=typeof h=="function"?h:St(+h),u):t},u.padRadius=function(h){return arguments.length?(r=h==null?null:typeof h=="function"?h:St(+h),u):r},u.startAngle=function(h){return arguments.length?(i=typeof h=="function"?h:St(+h),u):i},u.endAngle=function(h){return arguments.length?(s=typeof h=="function"?h:St(+h),u):s},u.padAngle=function(h){return arguments.length?(a=typeof h=="function"?h:St(+h),u):a},u.context=function(h){return arguments.length?(o=h??null,u):o},u}function TR(n){return typeof n=="object"&&"length"in n?n:Array.from(n)}function OR(n){this._context=n}OR.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(n,e){switch(n=+n,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(n,e):this._context.moveTo(n,e);break;case 1:this._point=2;default:this._context.lineTo(n,e);break}}};function AR(n){return new OR(n)}function jR(n){return n[0]}function RR(n){return n[1]}function IR(n,e){var t=St(!0),r=null,i=AR,s=null,a=s1(o);n=typeof n=="function"?n:n===void 0?jR:St(n),e=typeof e=="function"?e:e===void 0?RR:St(e);function o(l){var u,h=(l=TR(l)).length,f,m=!1,g;for(r==null&&(s=i(g=a())),u=0;u<=h;++u)!(u<h&&t(f=l[u],u,l))===m&&((m=!m)?s.lineStart():s.lineEnd()),m&&s.point(+n(f,u,l),+e(f,u,l));if(g)return s=null,g+""||null}return o.x=function(l){return arguments.length?(n=typeof l=="function"?l:St(+l),o):n},o.y=function(l){return arguments.length?(e=typeof l=="function"?l:St(+l),o):e},o.defined=function(l){return arguments.length?(t=typeof l=="function"?l:St(!!l),o):t},o.curve=function(l){return arguments.length?(i=l,r!=null&&(s=i(r)),o):i},o.context=function(l){return arguments.length?(l==null?r=s=null:s=i(r=l),o):r},o}function KG(n,e,t){var r=null,i=St(!0),s=null,a=AR,o=null,l=s1(u);n=typeof n=="function"?n:n===void 0?jR:St(+n),e=typeof e=="function"?e:St(e===void 0?0:+e),t=typeof t=="function"?t:t===void 0?RR:St(+t);function u(f){var m,g,y,v=(f=TR(f)).length,x,_=!1,S,w=new Array(v),k=new Array(v);for(s==null&&(o=a(S=l())),m=0;m<=v;++m){if(!(m<v&&i(x=f[m],m,f))===_)if(_=!_)g=m,o.areaStart(),o.lineStart();else{for(o.lineEnd(),o.lineStart(),y=m-1;y>=g;--y)o.point(w[y],k[y]);o.lineEnd(),o.areaEnd()}_&&(w[m]=+n(x,m,f),k[m]=+e(x,m,f),o.point(r?+r(x,m,f):w[m],t?+t(x,m,f):k[m]))}if(S)return o=null,S+""||null}function h(){return IR().defined(i).curve(a).context(s)}return u.x=function(f){return arguments.length?(n=typeof f=="function"?f:St(+f),r=null,u):n},u.x0=function(f){return arguments.length?(n=typeof f=="function"?f:St(+f),u):n},u.x1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:St(+f),u):r},u.y=function(f){return arguments.length?(e=typeof f=="function"?f:St(+f),t=null,u):e},u.y0=function(f){return arguments.length?(e=typeof f=="function"?f:St(+f),u):e},u.y1=function(f){return arguments.length?(t=f==null?null:typeof f=="function"?f:St(+f),u):t},u.lineX0=u.lineY0=function(){return h().x(n).y(e)},u.lineY1=function(){return h().x(n).y(t)},u.lineX1=function(){return h().x(r).y(e)},u.defined=function(f){return arguments.length?(i=typeof f=="function"?f:St(!!f),u):i},u.curve=function(f){return arguments.length?(a=f,s!=null&&(o=a(s)),u):a},u.context=function(f){return arguments.length?(f==null?s=o=null:o=a(s=f),u):s},u}function NR(n,e){this._context=n,this._t=e}NR.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(n,e){switch(n=+n,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(n,e):this._context.moveTo(n,e);break;case 1:this._point=2;
102default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(n,e);else{var t=this._x*(1-this._t)+n*this._t;this._context.lineTo(t,this._y),this._context.lineTo(t,e)}break}}this._x=n,this._y=e}};function QG(n){return new NR(n,1)}class nm extends ot{constructor(){super(...arguments),Object.defineProperty(this,"ix",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"iy",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_generator",{enumerable:!0,configurable:!0,writable:!0,value:qG()})}_getTooltipPoint(){let e=this.get("tooltipX"),t=this.get("tooltipY"),r=0,i=0;q(e)&&(r=e),q(t)&&(i=t);let s=this.get("radius",0),a=this.get("innerRadius",0),o=this.get("dRadius",0),l=this.get("dInnerRadius",0);return s+=o,a+=l,a<0&&(a=s+a),e instanceof $e&&(r=this.ix*(a+(s-a)*e.value)),t instanceof $e&&(i=this.iy*(a+(s-a)*t.value)),this.get("arc")>=360&&a==0&&(r=0,i=0),{x:r,y:i}}_beforeChanged(){super._beforeChanged(),(this.isDirty("radius")||this.isDirty("arc")||this.isDirty("innerRadius")||this.isDirty("startAngle")||this.isDirty("dRadius")||this.isDirty("dInnerRadius")||this.isDirty("cornerRadius")||this.isDirty("shiftRadius"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){let e=this.get("startAngle",0),t=this.get("arc",0);const r=this._generator;t<0&&(e=e+t,t=t*-1),t>.1&&r.cornerRadius(this.get("cornerRadius",0)),r.context(this._display);let i=this.get("radius",0),s=this.get("innerRadius",0),a=this.get("dRadius",0),o=this.get("dInnerRadius",0);i+=a,s+=o,s<0&&(s=i+s),r({innerRadius:s,outerRadius:i,startAngle:(e+90)*cf,endAngle:(e+t+90)*cf});let l=e+t/2;this.ix=fs(l),this.iy=li(l);const u=this.get("shiftRadius",0);this.setRaw("dx",this.ix*u),this.setRaw("dy",this.iy*u),this.markDirtyPosition()}}}Object.defineProperty(nm,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Slice"});Object.defineProperty(nm,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:ot.classNames.concat([nm.className])});class bf extends Ee{constructor(){super(...arguments),Object.defineProperty(this,"chartContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(Ee.new(this._root,{width:le,height:le,interactiveChildren:!1}))}),Object.defineProperty(this,"bulletsContainer",{enumerable:!0,configurable:!0,writable:!0,value:Ee.new(this._root,{interactiveChildren:!1,isMeasured:!1,position:"absolute",width:le,height:le})})}}Object.defineProperty(bf,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Chart"});Object.defineProperty(bf,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:Ee.classNames.concat([bf.className])});class fl extends bf{constructor(){super(...arguments),Object.defineProperty(this,"seriesContainer",{enumerable:!0,configurable:!0,writable:!0,value:Ee.new(this._root,{width:le,height:le,isMeasured:!1})}),Object.defineProperty(this,"series",{enumerable:!0,configurable:!0,writable:!0,value:new qg})}_afterNew(){super._afterNew(),this._disposers.push(this.series);const e=this.seriesContainer.children;this._disposers.push(this.series.events.onAll(t=>{if(t.type==="clear"){Y(t.oldValues,i=>{this._removeSeries(i)});const r=this.get("colors");r&&r.reset()}else if(t.type==="push")e.moveValue(t.newValue),this._processSeries(t.newValue);else if(t.type==="setIndex")e.setIndex(t.index,t.newValue),this._processSeries(t.newValue);else if(t.type==="insertIndex")e.insertIndex(t.index,t.newValue),this._processSeries(t.newValue);else if(t.type==="removeIndex")this._removeSeries(t.oldValue);else if(t.type==="moveIndex")e.moveValue(t.value,t.newIndex),this._processSeries(t.value);else throw new Error("Unknown IListEvent type")}))}_processSeries(e){e.chart=this,e._placeBulletsContainer(this)}_removeSeries(e){e.isDisposed()||(this.seriesContainer.children.removeValue(e),e._removeBulletsContainer())}}Object.defineProperty(fl,"className",{enumerable:!0,configurable:!0,writable:!0,value:"SerialChart"});Object.defineProperty(fl,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:bf.classNames.concat([fl.className])});class Zu extends mf{}Object.defineProperty(Zu,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Tick"});Object.defineProperty(Zu,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:mf.classNames.c
102oncat([Zu.className])});class Ju extends _n{_afterNew(){super._afterNewApplyThemes(),this._dirty.colors=!1}_beforeChanged(){this.isDirty("colors")&&this.reset()}generateColors(){this.setPrivate("currentPass",this.getPrivate("currentPass",0)+1);const e=this.getPrivate("currentPass"),t=this.get("colors",[this.get("baseColor",be.fromHex(16711680))]);this.getPrivate("numColors")||this.setPrivate("numColors",t.length);const r=this.getPrivate("numColors"),i=0,s=this.get("passOptions"),a=this.get("reuse");for(let o=i;o<r;o++)if(a)t.push(t[o]);else{const l=t[o].toHSL();let u=l.h+(s.hue||0)*e;for(;u>1;)u-=1;let h=l.s+(s.saturation||0)*e;h>1&&(h=1),h<0&&(h=0);let f=l.l+(s.lightness||0)*e;for(;f>1;)f-=1;t.push(be.fromHSL(u,h,f))}}getIndex(e){const t=this.get("colors",[]),r=this.get("saturation");return e>=t.length?(this.generateColors(),this.getIndex(e)):r!=null?be.saturate(t[e],r):t[e]}next(){let e=this.getPrivate("currentStep",this.get("startIndex",0));return this.setPrivate("currentStep",e+this.get("step",1)),this.getIndex(e)}reset(){this.setPrivate("currentStep",this.get("startIndex",0)),this.setPrivate("currentPass",0)}}Object.defineProperty(Ju,"className",{enumerable:!0,configurable:!0,writable:!0,value:"ColorSet"});Object.defineProperty(Ju,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:_n.classNames.concat([Ju.className])});class lv extends _n{constructor(){super(...arguments),Object.defineProperty(this,"_checkDates",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_checkNumbers",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_checkColors",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_checkEmpty",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_checkDeep",{enumerable:!0,configurable:!0,writable:!0,value:!1})}_afterNew(){super._afterNew(),this._checkFeatures(),this.on("dateFields",()=>this._checkFeatures()),this.on("dateFormat",()=>this._checkFeatures()),this.on("numericFields",()=>this._checkFeatures()),this.on("colorFields",()=>this._checkFeatures()),this.on("emptyAs",()=>this._checkFeatures())}_checkFeatures(){(this.isDirty("dateFields")||this.isDirty("dateFormat"))&&(this._checkDates=this.get("dateFields")&&this.get("dateFields").length>0),this.isDirty("numericFields")&&(this._checkNumbers=this.get("numericFields")&&this.get("numericFields").length>0),this.isDirty("colorFields")&&(this._checkColors=this.get("colorFields")&&this.get("colorFields").length>0),this.isDirty("emptyAs")&&(this._checkEmpty=this.get("emptyAs")!=null),this._checkDeepFeatures()}_checkDeepFeatures(){const e=[];Y(["dateFields","numericFields","colorFields"],t=>{Y(this.get(t,[]),r=>{const i=r.split(".");for(i.pop();i.length>0;)e.push(i.join(".")),i.pop()})}),this._checkDeep=e.length>0,this.setPrivate("deepFields",e)}processMany(e){e7(e)&&(this._checkDates||this._checkNumbers||this._checkColors||this._checkEmpty)&&Y(e,t=>{this.processRow(t)})}processRow(e,t=""){gt(e,(r,i)=>{const s=t+r;this._checkEmpty&&(e[r]=this._maybeToEmpty(e[r])),this._checkNumbers&&(e[r]=this._maybeToNumber(s,e[r])),this._checkDates&&(e[r]=this._maybeToDate(s,e[r])),this._checkColors&&(e[r]=this._maybeToColor(s,e[r])),this._checkDeep&&this.getPrivate("deepFields",[]).indexOf(s)!==-1&&Xf(e[r])&&this.processRow(e[r],s+".")})}_maybeToNumber(e,t){return this.get("numericFields").indexOf(e)!==-1?dr(t):t}_maybeToDate(e,t){return this.get("dateFields").indexOf(e)!==-1?this._root.dateFormatter.parse(t,this.get("dateFormat","")).getTime():t}_maybeToEmpty(e){return(e==null||e=="")&&this.get("emptyAs")!=null?this.get("emptyAs"):e}_maybeToColor(e,t){return this.get("colorFields").indexOf(e)!==-1?be.fromAny(t):t}}class ZG extends ws{setupDefaultRules(){super.setupDefaultRules();const e=this._root.interfaceColors,t=this.rule.bind(this);t("PercentSeries").setAll({legendLabelText:"{category}",legendValueText:"{valuePercentTotal.formatNumber('0.00p')}",colors:Ju.new(this._root,{}),width:le,height:le}),t("PieChart").setAll({radius:jr(80),startAngle:-90,endAngle:270}),t("PieSeries").setAll({alignLabels:!0,startAngle:-90,endAngle:270}),t("PieSeries").states.create("hidden",{endAngle:-90,opacity:0}
102),t("Slice",["pie"]).setAll({position:"absolute",isMeasured:!1,x:0,y:0,toggleKey:"active",tooltipText:"{category}: {valuePercentTotal.formatNumber('0.00p')}",strokeWidth:1,strokeOpacity:1,role:"figure",lineJoin:"round"}),t("Slice",["pie"]).states.create("active",{shiftRadius:20,scale:1}),t("Slice",["pie"]).states.create("hoverActive",{scale:1.04}),t("Slice",["pie"]).states.create("hover",{scale:1.04}),t("RadialLabel",["pie"]).setAll({textType:"aligned",radius:10,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",paddingTop:5,paddingBottom:5,populateText:!0}),t("Tick",["pie"]).setAll({location:1}),t("SlicedChart").setAll({paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10}),t("FunnelSeries").setAll({startLocation:0,endLocation:1,orientation:"vertical",alignLabels:!0,sequencedInterpolation:!0}),t("FunnelSlice").setAll({interactive:!0,expandDistance:0}),t("FunnelSlice").states.create("hover",{expandDistance:.15}),t("Label",["funnel"]).setAll({populateText:!0,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",centerY:He}),t("Label",["funnel","horizontal"]).setAll({centerX:0,centerY:He,rotation:-90}),t("Label",["funnel","vertical"]).setAll({centerY:He,centerX:0}),t("Tick",["funnel"]).setAll({location:1}),t("FunnelSlice",["funnel","link"]).setAll({fillOpacity:.5,strokeOpacity:0,expandDistance:-.1}),t("FunnelSlice",["funnel","link","vertical"]).setAll({height:10}),t("FunnelSlice",["funnel","link","horizontal"]).setAll({width:10}),t("PyramidSeries").setAll({valueIs:"area"}),t("FunnelSlice",["pyramid","link"]).setAll({fillOpacity:.5}),t("FunnelSlice",["pyramid","link","vertical"]).setAll({height:0}),t("FunnelSlice",["pyramid","link","horizontal"]).setAll({width:0}),t("FunnelSlice",["pyramid"]).setAll({interactive:!0,expandDistance:0}),t("FunnelSlice",["pyramid"]).states.create("hover",{expandDistance:.15}),t("Label",["pyramid"]).setAll({populateText:!0,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",centerY:He}),t("Label",["pyramid","horizontal"]).setAll({centerX:0,centerY:He,rotation:-90}),t("Label",["pyramid","vertical"]).setAll({centerY:He,centerX:0}),t("Tick",["pyramid"]).setAll({location:1}),t("FunnelSlice",["pictorial"]).setAll({interactive:!0,tooltipText:"{category}: {valuePercentTotal.formatNumber('0.00p')}"}),t("Label",["pictorial"]).setAll({populateText:!0,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",centerY:He}),t("Label",["pictorial","horizontal"]).setAll({centerX:0,centerY:He,rotation:-90}),t("Label",["pictorial","vertical"]).setAll({centerY:He,centerX:0}),t("FunnelSlice",["pictorial","link"]).setAll({fillOpacity:.5,width:0,height:0}),t("Tick",["pictorial"]).setAll({location:.5});{const r=t("Graphics",["pictorial","background"]);r.setAll({fillOpacity:.2}),xe(r,"fill",e,"alternativeBackground")}}}class yf extends fl{_afterNew(){this._defaultThemes.push(ZG.new(this._root)),super._afterNew(),this.chartContainer.children.push(this.seriesContainer),this.seriesContainer.children.push(this.bulletsContainer)}_processSeries(e){super._processSeries(e),this.seriesContainer.children.moveValue(this.bulletsContainer,this.seriesContainer.children.length-1)}}Object.defineProperty(yf,"className",{enumerable:!0,configurable:!0,writable:!0,value:"PercentChart"});Object.defineProperty(yf,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:fl.classNames.concat([yf.className])});class _f extends dl{constructor(){super(...arguments),Object.defineProperty(this,"slicesContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(Ee.new(this._root,{position:"absolute",isMeasured:!1}))}),Object.defineProperty(this,"labelsContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(Ee.new(this._root,{position:"absolute",isMeasured:!1}))}),Object.defineProperty(this,"ticksContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(Ee.new(this._root,{position:"absolute",isMeasured:!1}))}),Object.defineProperty(this,"_lLabels",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_rLabels",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_hLabels",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"slices",{enumerable:!0,configurable:!0,writable:!0,value:this._makeSlices()}),Object.defineProperty(this,"labels",{enumerable:!0,configurable:!0,writable:!0,value:this._makeLabels()}),Object.defineProperty(this,"ticks",{enumerable:!0,configurable:!0,writable:!0,value:this._makeTicks()})}
102makeSlice(e){const t=this.slicesContainer.children.push(this.slices.make());return t.on("fill",()=>{this.updateLegendMarker(e)}),t.on("stroke",()=>{this.updateLegendMarker(e)}),t._setDataItem(e),e.set("slice",t),this.slices.push(t),t}makeLabel(e){const t=this.labelsContainer.children.push(this.labels.make());return t._setDataItem(e),e.set("label",t),this.labels.push(t),t}_shouldMakeBullet(e){return e.get("value")!=null}makeTick(e){const t=this.ticksContainer.children.push(this.ticks.make());return t._setDataItem(e),e.set("tick",t),this.ticks.push(t),t}_afterNew(){this.fields.push("category","fill"),super._afterNew()}_onDataClear(){const e=this.get("colors");e&&e.reset()}_prepareChildren(){if(super._prepareChildren(),this._lLabels=[],this._rLabels=[],this._hLabels=[],this._valuesDirty){let e=0,t=0,r=0,i=1/0,s=0;Y(this._dataItems,a=>{let o=a.get("valueWorking",0);e+=o,t+=Math.abs(o)}),Y(this._dataItems,a=>{let o=a.get("valueWorking",0);o>r&&(r=o),o<i&&(i=o),s++;let l=o/t;t==0&&(l=0),a.setRaw("valuePercentTotal",l*100)}),this.setPrivateRaw("valueLow",i),this.setPrivateRaw("valueHigh",r),this.setPrivateRaw("valueSum",e),this.setPrivateRaw("valueAverage",e/s),this.setPrivateRaw("valueAbsoluteSum",t)}}show(e){const t=Object.create(null,{show:{get:()=>super.show}});return cn(this,void 0,void 0,function*(){let r=[];r.push(t.show.call(this,e)),r.push(this._sequencedShowHide(!0,e)),yield Promise.all(r)})}hide(e){const t=Object.create(null,{hide:{get:()=>super.hide}});return cn(this,void 0,void 0,function*(){let r=[];r.push(t.hide.call(this,e)),r.push(this._sequencedShowHide(!1,e)),yield Promise.all(r)})}_updateChildren(){super._updateChildren(),this._valuesDirty&&Y(this._dataItems,e=>{e.get("label").text.markDirtyText()}),(this.isDirty("legendLabelText")||this.isDirty("legendValueText"))&&Y(this._dataItems,e=>{this.updateLegendValue(e)}),this._arrange()}_arrange(){this._arrangeDown(this._lLabels),this._arrangeUp(this._lLabels),this._arrangeDown(this._rLabels),this._arrangeUp(this._rLabels),this._arrangeLeft(this._hLabels),this._arrangeRight(this._hLabels),Y(this.dataItems,e=>{this._updateTick(e)})}_afterChanged(){super._afterChanged(),this._arrange()}processDataItem(e){if(super.processDataItem(e),e.get("fill")==null){let t=this.get("colors");t&&e.setRaw("fill",t.next())}}showDataItem(e,t){const r=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return cn(this,void 0,void 0,function*(){const i=[r.showDataItem.call(this,e,t)];q(t)||(t=this.get("stateAnimationDuration",0));const s=this.get("stateAnimationEasing");let a=e.get("value");const o=e.animate({key:"valueWorking",to:a,duration:t,easing:s});o&&i.push(o.waitForStop());const l=e.get("tick");l&&i.push(l.show(t));const u=e.get("label");u&&i.push(u.show(t));const h=e.get("slice");h&&i.push(h.show(t)),h.get("active")&&h.states.applyAnimate("active"),yield Promise.all(i)})}hideDataItem(e,t){const r=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return cn(this,void 0,void 0,function*(){const i=[r.hideDataItem.call(this,e,t)],s=this.states.create("hidden",{});q(t)||(t=s.get("stateAnimationDuration",this.get("stateAnimationDuration",0)));const a=s.get("stateAnimationEasing",this.get("stateAnimationEasing")),o=e.animate({key:"valueWorking",to:0,duration:t,easing:a});o&&i.push(o.waitForStop());const l=e.get("tick");l&&i.push(l.hide(t));const u=e.get("label");u&&i.push(u.hide(t));const h=e.get("slice");h.hideTooltip(),h&&i.push(h.hide(t)),yield Promise.all(i)})}disposeDataItem(e){super.disposeDataItem(e);let t=e.get("label");t&&(this.labels.removeValue(t),t.dispose());let r=e.get("tick");r&&(this.ticks.removeValue(r),r.dispose());let i=e.get("slice");
102i&&(this.slices.removeValue(i),i.dispose())}hoverDataItem(e){const t=e.get("slice");t&&!t.isHidden()&&t.hover()}unhoverDataItem(e){const t=e.get("slice");t&&t.unhover()}updateLegendMarker(e){if(e){const t=e.get("slice");if(t){const r=e.get("legendDataItem");if(r){const i=r.get("markerRectangle");Y(ix,s=>{t.get(s)!=null&&i.set(s,t.get(s))})}}}}_arrangeDown(e){if(e){let t=this._getNextDown();e.sort((r,i)=>r.y>i.y?1:r.y<i.y?-1:0),Y(e,r=>{const i=r.label.adjustedLocalBounds();let s=i.top;r.y+s<t&&(r.y=t-s),r.label.set("y",r.y),t=r.y+i.bottom})}}_getNextUp(){return this.labelsContainer.maxHeight()}_getNextDown(){return 0}_arrangeUp(e){if(e){let t=this._getNextUp();e.sort((r,i)=>r.y<i.y?1:r.y>i.y?-1:0),Y(e,r=>{const i=r.label.adjustedLocalBounds();let s=i.bottom;r.y+s>t&&(r.y=t-s),r.label.set("y",r.y),t=r.y+i.top})}}_arrangeRight(e){if(e){let t=0;e.sort((r,i)=>r.y>i.y?1:r.y<i.y?-1:0),Y(e,r=>{const i=r.label.adjustedLocalBounds();let s=i.left;r.y+s<t&&(r.y=t-s),r.label.set("x",r.y),t=r.y+i.right})}}_arrangeLeft(e){if(e){let t=this.labelsContainer.maxWidth();e.sort((r,i)=>r.y<i.y?1:r.y>i.y?-1:0),Y(e,r=>{const i=r.label.adjustedLocalBounds();let s=i.right;r.y+s>t&&(r.y=t-s),r.label.set("x",r.y),t=r.y+i.left})}}_updateSize(){super._updateSize(),this.markDirty()}_updateTick(e){}_dispose(){super._dispose();const e=this.chart;e&&e.series.removeValue(this)}}Object.defineProperty(_f,"className",{enumerable:!0,configurable:!0,writable:!0,value:"PercentSeries"});Object.defineProperty(_f,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:dl.classNames.concat([_f.className])});class rm extends yf{constructor(){super(...arguments),Object.defineProperty(this,"_maxRadius",{enumerable:!0,configurable:!0,writable:!0,value:1})}_afterNew(){super._afterNew(),this.seriesContainer.setAll({x:He,y:He})}_prepareChildren(){super._prepareChildren();const e=this.chartContainer,t=e.innerWidth(),r=e.innerHeight(),i=this.get("startAngle",0),s=this.get("endAngle",0),a=this.get("innerRadius");let o=rx(0,0,i,s,1);const l=t/(o.right-o.left),u=r/(o.bottom-o.top);let h={left:0,right:0,top:0,bottom:0};if(a instanceof $e){let g=a.value,y=Math.min(l,u);g=Math.max(y*g,y-Math.min(r,t))/y,h=rx(0,0,i,s,g),this.setPrivateRaw("irModifyer",g/a.value)}o=j7([o,h]);const f=this._maxRadius;this._maxRadius=Math.min(l,u);const m=Vt(this.get("radius",0),this._maxRadius);this.seriesContainer.setAll({dy:-m*(o.bottom+o.top)/2,dx:-m*(o.right+o.left)/2}),(this.isDirty("startAngle")||this.isDirty("endAngle")||f!=this._maxRadius)&&this.series.each(g=>{g._markDirtyKey("startAngle")}),(this.isDirty("innerRadius")||this.isDirty("radius"))&&this.series.each(g=>{g._markDirtyKey("innerRadius")})}radius(e){let t=Vt(this.get("radius",0),this._maxRadius),r=Vt(this.get("innerRadius",0),t);if(e){let i=this.series.indexOf(e),s=this.series.length,a=e.get("radius");return a!=null?r+Vt(a,t-r):r+(t-r)/s*(i+1)}return t}innerRadius(e){const t=this.radius();let r=Vt(this.get("innerRadius",0),t);if(r<0&&(r=t+r),e){let i=this.series.indexOf(e),s=this.series.length,a=e.get("innerRadius");return a!=null?r+Vt(a,t-r):r+(t-r)/s*i}return r}}Object.defineProperty(rm,"className",{enumerable:!0,configurable:!0,writable:!0,value:"PieChart"});Object.defineProperty(rm,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:yf.classNames.concat([rm.className])});class im extends _f{_makeSlices(){return new Nr(Gt.new({}),()=>
102nm._new(this._root,{themeTags:ht(this.slices.template.get("themeTags",[]),["pie","series"])},[this.slices.template]))}_makeLabels(){return new Nr(Gt.new({}),()=>em._new(this._root,{themeTags:ht(this.labels.template.get("themeTags",[]),["pie","series"])},[this.labels.template]))}_makeTicks(){return new Nr(Gt.new({}),()=>Zu._new(this._root,{themeTags:ht(this.ticks.template.get("themeTags",[]),["pie","series"])},[this.ticks.template]))}processDataItem(e){super.processDataItem(e);const t=this.makeSlice(e);t.on("scale",()=>{this._updateTick(e)}),t.on("shiftRadius",()=>{this._updateTick(e)}),t.events.on("positionchanged",()=>{this._updateTick(e)});const r=this.makeLabel(e);r.events.on("positionchanged",()=>{this._updateTick(e)}),this.makeTick(e),t.events.on("positionchanged",()=>{r.markDirty()})}_getNextUp(){const e=this.chart;return e?e._maxRadius:this.labelsContainer.maxHeight()/2}_getNextDown(){const e=this.chart;return e?-e._maxRadius:-this.labelsContainer.maxHeight()/2}_prepareChildren(){super._prepareChildren();const e=this.chart;if(e){if(this.isDirty("alignLabels")){let t=this.labels.template;if(this.get("alignLabels"))t.set("textType","aligned");else{let r=t.get("textType");(r==null||r=="aligned")&&t.set("textType","adjusted")}}if(this._valuesDirty||this.isDirty("radius")||this.isDirty("innerRadius")||this.isDirty("startAngle")||this.isDirty("endAngle")||this.isDirty("alignLabels")){this.markDirtyBounds();const t=this.get("startAngle",e.get("startAngle",-90)),i=this.get("endAngle",e.get("endAngle",270))-t;let s=t;const a=e.radius(this);this.setPrivateRaw("radius",a);let o=e.innerRadius(this)*e.getPrivate("irModifyer",1);o<0&&(o=a+o),Y(this._dataItems,l=>{this.updateLegendValue(l);let u=i*l.get("valuePercentTotal")/100;const h=l.get("slice");if(h){h.set("radius",a),h.set("innerRadius",o),h.set("startAngle",s),h.set("arc",u);const g=l.get("fill");h._setDefault("fill",g),h._setDefault("stroke",g)}let f=r1(s+u/2);const m=l.get("label");if(m&&(m.setPrivate("radius",a),m.setPrivate("innerRadius",o),m.set("labelAngle",f),m.get("textType")=="aligned")){let g=a+m.get("radius",0),y=a*li(f);f>90&&f<=270?(!m.isHidden()&&!m.isHiding()&&this._lLabels.push({label:m,y}),g*=-1,g-=this.labelsContainer.get("paddingLeft",0),m.set("centerX",le),m.setPrivateRaw("left",!0)):(!m.isHidden()&&!m.isHiding()&&this._rLabels.push({label:m,y}),g+=this.labelsContainer.get("paddingRight",0),m.set("centerX",0),m.setPrivateRaw("left",!1)),m.set("x",g),m.set("y",a*li(f))}s+=u,this._updateTick(l)})}}}_updateTick(e){const t=e.get("tick"),r=e.get("label"),i=e.get("slice"),s=t.get("location",1);if(t&&r&&i){const a=(i.get("shiftRadius",0)+i.get("radius",0))*i.get("scale",1)*s,o=r.get("labelAngle",0),l=fs(o),u=li(o),h=this.labelsContainer,f=h.get("paddingLeft",0),m=h.get("paddingRight",0);let g=0,y=0;g=r.x(),y=r.y();let v=[];if(g!=0&&y!=0){if(r.get("textType")=="circular"){const _=r.radius()-r.get("paddingBottom",0),S=r.get("labelAngle",0);g=_*fs(S),y=_*li(S)}let x=-m;r.getPrivate("left")&&(x=f),v=[{x:i.x()+a*l,y:i.y()+a*u},{x:g+x,y},{x:g,y}]}t.set("points",v)}}_positionBullet(e){const t=e.get("sprite");if(t){const i=t.dataItem.get("slice");if(i){const s=i.get("innerRadius",0),a=i.get("radius",0),o=i.get("startAngle",0),l=i.get("arc",0),u=e.get("locationX",.5),h=e.get("locationY",.5),f=o+l*u,m=s+(a-s)*h;t.setAll({x:fs(f)*m,y:li(f)*m})}}}}Object.defineProperty(im,"className",{enumerable:!0,configurable:!0,writable:!0,value:"PieSeries"});Object.defineProperty(im,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:_f.classNames.concat([im.className])});class Rl extends ws{setupDefaultRules(){super.setupDefaultRules(),this.rule("Component").setAll({interpolationDuration:600}),this.rule("Hierarchy").set("animationDuration",600),this.rule("Scrollbar").set("animationDuration",600),this.rule("Tooltip").set("animationDuration",300),this.rule("MapChart").set("animationDuration",1e3),this.rule("MapChart").set("wheelDuration",300),this.rule("Entity").setAll({stateAnimationDuration:600}),this.rule("Sprite").states.create("default",{stateAnimationDuration:600}),this.rule("Tooltip",["axis"]).setAll({animationDuration:200}),this.rule("WordCloud").set("animationDuration",500),this.rule("Polygon").set("animationDuration",600),this.rule("ArcDiagram").set("animationDuration",600)}}function JG({hasHead:n}){if(n)return d.jsx("thead",{children:d.jsx("tr",{children:d.jsx("th",{children:d.jsx(ce,{})})})})}function eX({rows:n}){return[...Array(n)].map((e,t)=>d.jsx("tbody",{children:d.jsx("tr",{children:d.jsx("td",{children:d.jsx(ce,{})})})}))}function tX({hasFoot:n}){return n?d.jsx("tfoot",{children:d.jsx("tr",{children:d.jsx("td",{children:d.jsx(ce,{})})})}):""}function va({rows:n=5,hasHead:e=!0,hasFoot:t=!0}){return d.jsx(vt,{baseColor:"#f1f5f9",highlightColor:"#cbd5e1",children:d.jsxs("table",{className:"table small",children:[d.jsx(JG,{hasHead:e}),d.jsx(eX,{rows:n}),d.jsx(tX,{hasFoot:t})]})})}ra.globalLocale="de-DE";const nX=n=>{const e={total:JSON.parse(n).resultLine.subLines[0].values[12].rawValue,rows:[]};
102return JSON.parse(n).resultLine.subLines[0].subLines.forEach(r=>{r.values[12].rawValue>0&&e.rows.push({id:r.id,name:r.name,nav:r.values[12].rawValue,share:lt.round(r.values[12].rawValue/e.total*100,2).toString().replace(".",",")})}),e},rX=n=>{const e=Ml();return[e.accessor("name",{cell:t=>d.jsx("span",{className:"d-inline-block text-truncate",style:{maxWidth:"160px"},children:t.getValue()}),footer:"Gesamt",header:"Name",id:"dfo-asset-classes__name"}),e.accessor("share",{cell:t=>t.getValue()+" %",footer:"100%",header:"Anteil",id:"dfo-asset-classes__share",sortingFn:"alphanumericCaseSensitive"}),e.accessor("nav",{cell:t=>ra({amount:parseInt(t.getValue()*100)}).toFormat("0,0.00")+" â¬",footer:ra({amount:parseInt(n*100)}).toFormat("0,0.00")+" â¬",header:"Wert",id:"dfo-asset-classes__nav"})]};function iX({data:n}){const[e,t]=E.useState([]),r=jl({data:n.rows,columns:rX(n.total),getCoreRowModel:Tl(),getPaginationRowModel:Al(),getSortedRowModel:Ol(),onSortingChange:t,state:{sorting:e}}),i=s=>s==="asc"?" â":s==="desc"?" â":null;return d.jsx(d.Fragment,{children:d.jsx("div",{className:"table-responsive lh-1",children:d.jsxs("table",{className:"table table-striped small",children:[d.jsx("thead",{children:r.getHeaderGroups().map(s=>d.jsx("tr",{children:s.headers.map(a=>d.jsx("th",{className:"align-top p-3 text-nowrap",children:a.isPlaceholder?null:d.jsxs("button",{className:"btn btn-link p-0 fw-bold text-decoration-none text-nowrap ",disabled:!a.column.getCanSort(),onClick:a.column.getToggleSortingHandler(),children:[nr(a.column.columnDef.header,a.getContext()),i(a.column.getIsSorted())]})},a.id))},s.id))}),d.jsx("tbody",{children:r.getRowModel().rows.map(s=>d.jsx("tr",{children:s.getVisibleCells().map(a=>d.jsx("td",{className:"p-3 text-nowrap",children:nr(a.column.columnDef.cell,a.getContext())},a.id))},s.id))}),d.jsx("tfoot",{children:r.getFooterGroups().map(s=>d.jsx("tr",{children:s.headers.map(a=>d.jsx("th",{className:"p-3 text-nowrap",children:a.isPlaceholder?null:nr(a.column.columnDef.footer,a.getContext())},a.id))},s.id))})]})})})}function sX({leid:n,preset:e}){const[t,r]=E.useState(null);return E.useEffect(()=>{const i=`/qplix?le=${n}&p=${e}`;fetch(i).then(s=>s.json()).then(s=>{r(nX(JSON.stringify(s)))})},[]),E.useEffect(()=>{if(t===null)return;let i=ma.new("bvs-chart--asset-classes");i.setThemes([Rl.new(i)]);let a=i.container.children.push(rm.new(i,{endAngle:270,radius:jr(90)})).series.push(im.new(i,{alignLabels:!1,valueField:"nav",categoryField:"name",endAngle:270}));a.states.create("hidden",{endAngle:-90}),a.get("colors").set("colors",[we("#861042"),we("#b71559"),we("#db1a6a"),we("#e73680"),we("#ec5b97"),we("#f07fae"),we("#f4a4c5"),we("#f9c8dc")]),a.ticks.template.set("visible",!1),a.labels.template.setAll({inside:!0,fill:we("#ffffff"),fontSize:12,radius:60,text:"{share} %"}),a.labels.template.adapters.add("y",function(o,l){let u=l.dataItem;if(u)return u.get("tick")&&(u.get("valuePercentTotal")<8?l.set("forceHidden",!0):l.set("forceHidden",!1)),o}),a.slices.template.set("tooltipText","{category}: [bold]{share} %[/]"),a.data.setAll(t.rows),a.appear(1e3,100)},[t]),t?d.jsx(d.Fragment,{children:d.jsxs("div",{className:"row align-items-center",children:[d.jsx("div",{className:"col-12 col-md-6",children:d.jsx(iX,{data:t})}),d.jsx("div",{className:"col-12 col-md-6",children:d.jsx("div",{id:"bvs-chart--asset-classes",className:"bvs-chart--asset-classes"})})]})}):d.jsx(vt,{baseColor:"#f1f5f9",highlightColor:"#cbd5e1",children:d.jsxs("div",{className:"row",children:[d.jsx("div",{className:"col-12 col-md-6",children:d.jsx(va,{rows:8})}),d.jsx("div",{className:"col-12 col-md-6",children:d.jsx(ce,{className:"bvs-chart--asset-classes"})})]})})}const aX=n=>n.sort((e,t)=>e.name<t.name?-1:e.name>t.name?1:0),oX=n=>{const e=[];return JSON.parse(n).resultLine.subLines[0].subLines.forEach(r=>{r.subLines.forEach(i=>{i.values[0].rawValue!==null&&i.values[12].rawValue!==0&&e.push({amount:{raw:i.values[4].rawValue,value:i.values[4].value},class:r.name,contribution:{raw:i.values[7].rawValue,value:i.values[7].value},course:{raw:i.values[13].rawValue,value:i.values[13].value},entry_course:{raw:i.values[1].rawValue,value:i.values[1].value},entry_value:{raw:i.values[2].rawValue,value:i.values[2].value},entry_date:i.values[3].value,isin:i.values[0].rawValue,max_loss:{raw:i.values[9].rawValue,value:i.values[9].value},max_profit:{raw:i.values[8].rawValue,value:i.values[8].value},mwr:{raw:i.values[6].rawValue,value:i.values[6].value},name:i.name,nav:{raw:i.values[12].rawValue,value:i.values[12].value},nav_begin:{raw:i.values[11].rawValue,value:i.values[11].value},twr:{raw:i.values[5].rawValue,value:i.values[5].value}})})}),aX(e)},ri=Ml(),lX=[ri.accessor("name",{cell:n=>d.jsxs(d.Fragment,{children:[d.jsx("span",{className:"d-inline-block text-truncate",style:{maxWidth:"240px"},title:n.getValue(),children:n.getValue()}),d.jsx("br",{}),d.jsx("span",{className:"small text-muted",children:n.row.original.isin})]}),header:"Name",id:"dfo-asset-positions__name"}),ri.accessor("class",{cell:n=>d.jsx("span",{className:"d-inline-block text-truncate",style:{maxWidth:"120px"},title:n.getValue(),children:n.getValue()}),header:"Klasse",id:"dfo-asset-positions__class"}),ri.accessor("amount",{cell:n=>n.getValue().value,header:"Stücke",id:"dfo-asset-positions__amount"}),ri.accessor("entry_course",{cell:n=>n.getValue().value+" â¬",header:"Einstandskurs",id:"dfo-asset-positions__entry-course"}),ri.accessor("entry_value",{cell:n=>n.getValue().value+" â¬",header:"Einstandswert",id:"dfo-asset-positions__entry-value"}),ri.accessor("course",{cell:n=>n.getValue().value+" â¬",header:"Kurs",id:"dfo-asset-positions__course"}),ri.accessor("entry_date",{cell:n=>n.getValue(),header:"Kursdatum",id:"dfo-asset-positions__entry-date"}),ri.accessor("contribution",{cell:n=>n.getValue().value+" â¬",header:"Ergebnisbeitrag",id:"dfo-asset-positions__contribution"}),ri.accessor("max_profit",{cell:n=>n.getValue().value+" â¬",header:"Max. Gewinn",id:"dfo-asset-positions__max-profit"}),ri.accessor("max_loss",{cell:n=>n.getValue().value+" â¬",header:"Max. Verlust",id:"dfo-asset-positions__max-loss"}),ri.accessor("nav_begin",{cell:n=>n.getValue().value+" â¬",header:"Wert zu Beginn",id:"dfo-asset-positions__nav
102-begin"}),ri.accessor("nav",{cell:n=>n.getValue().value+" â¬",header:"Aktueller Wert",id:"dfo-asset-positions__nav"})];function uX({data:n,columns:e}){const[t,r]=E.useState([]),i=jl({data:n,columns:e,getCoreRowModel:Tl(),getPaginationRowModel:Al(),getSortedRowModel:Ol(),onSortingChange:r,state:{sorting:t},initialState:{pagination:{pageSize:20}}}),s=a=>a==="asc"?" â":a==="desc"?" â":null;return d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"table-responsive bvs-asset-positions__table",children:d.jsxs("table",{className:"table table-striped align-middle small lh-1",children:[d.jsx("thead",{children:i.getHeaderGroups().map(a=>d.jsx("tr",{children:a.headers.map(o=>d.jsx("th",{className:"p-2 text-nowrap",children:o.isPlaceholder?null:d.jsxs("button",{className:"btn btn-link p-0 fw-bold text-decoration-none text-nowrap ",disabled:!o.column.getCanSort(),onClick:o.column.getToggleSortingHandler(),children:[nr(o.column.columnDef.header,o.getContext()),s(o.column.getIsSorted())]})},o.id))},a.id))}),d.jsx("tbody",{children:i.getRowModel().rows.map(a=>d.jsx("tr",{children:a.getVisibleCells().map(o=>d.jsx("td",{className:"p-2 text-nowrap",children:nr(o.column.columnDef.cell,o.getContext())},o.id))},a.id))})]})}),d.jsxs("div",{className:"d-flex justify-content-between align-items-center",children:[d.jsx("nav",{"aria-label":"Seiten-Navigation",children:d.jsxs("ul",{class:"pagination pagination-sm m-0",children:[d.jsx("li",{className:i.getCanPreviousPage()?"page-item":"page-item disabled",children:d.jsx("a",{className:"page-link",href:"#",onClick:a=>{a.preventDefault(),i.setPageIndex(0)},title:"Erste Seite","aria-label":"Erste Seite",children:d.jsx("span",{"aria-hidden":"true",children:d.jsx("i",{className:"fa-light fa-arrow-left-long-to-line"})})})}),d.jsx("li",{className:i.getCanPreviousPage()?"page-item":"page-item disabled",children:d.jsx("a",{className:"page-link",href:"#",onClick:a=>{a.preventDefault(),i.previousPage()},title:"Vorherige Seite","aria-label":"Vorherige Seite",children:d.jsx("span",{"aria-hidden":"true",children:d.jsx("i",{className:"fa-light fa-long-arrow-left"})})})}),d.jsx("li",{className:i.getCanNextPage()?"page-item":"page-item disabled",children:d.jsx("a",{className:"page-link",href:"#",onClick:a=>{a.preventDefault(),i.nextPage()},title:"Nächste Seite","aria-label":"Nächste Seite",children:d.jsx("span",{"aria-hidden":"true",children:d.jsx("i",{className:"fa-light fa-long-arrow-right"})})})}),d.jsx("li",{className:i.getCanNextPage()?"page-item":"page-item disabled",children:d.jsx("a",{className:"page-link",href:"#",onClick:a=>{a.preventDefault(),i.setPageIndex(i.getPageCount()-1)},title:"Letze Seite","aria-label":"Letze Seite",children:d.jsx("span",{"aria-hidden":"true",children:d.jsx("i",{className:"fa-light fa-arrow-right-long-to-line"})})})})]})}),d.jsxs("div",{className:"d-none d-md-block small",children:["Seite ",i.getState().pagination.pageIndex+1," von"," ",i.getPageCount()]}),d.jsx("div",{children:d.jsx("select",{className:"form-select form-select-sm",value:i.getState().pagination.pageSize,onChange:a=>{i.setPageSize(Number(a.target.value))},children:[20,50,100].map(a=>d.jsxs("option",{value:a,children:[a," Zeilen"]},a))})})]})]})}function cX({leid:n,preset:e}){const[t,r]=E.useState(null);return E.useEffect(()=>{const i=`/qplix?le=${n}&p=${e}`;fetch(i).then(s=>s.json()).then(s=>{r(oX(JSON.stringify(s)))})},[]),t==null?d.jsx(va,{rows:20}):d.jsx(uX,{data:t,columns:lX})}ra.globalLocale="de-DE";function dX({leid:n}){const e="64d9e5d3c3005cb1bf65370c",[t,r]=E.useState();E.useEffect(()=>{const a=`/qplix?le=${n}&p=${e}`;fetch(a).then(o=>o.json()).then(o=>{r(JSON.stringify(o))})},[]);const i=a=>({inflow:{value:JSON.parse(a).resultLine.subLines[0].values[6].value,raw:JSON.parse(a).resultLine.subLines[0].values[6].rawValue},outflow:{value:JSON.parse(a).resultLine.subLines[0].values[7].value,raw:JSON.parse(a).resultLine.subLines[0].values[7].rawValue}}),s=a=>{const o=(a.inflow.raw+a.outflow.raw)*100,l=ra({amount:Math.round(o)}).toFormat("0,0.00");return o<0?d.jsxs("span",{className:"fw-bold text-danger",children:[l," â¬"]}):d.jsxs("span",{className:"fw-bold text-success",children:[l," â¬"]})};if(t){const a=i(t);return d.jsxs("div",{className:"small text-body-secondary",children:["davon Netto-Zuflüsse von ",s(a)]})}else return d.jsx(vt,{baseColor:"#f1f5f9",highlightColor:"#cbd5e1",children:d.jsx("div",{className:"small",children:d.jsx(ce,{width:264})})})}
102function fX({leid:n,preset:e}){const[t,r]=E.useState();E.useEffect(()=>{const a=`/qplix?le=${n}&p=${e}`;fetch(a).then(o=>o.json()).then(o=>{r(JSON.stringify(o))})},[]);const i=a=>{const o={current:{value:JSON.parse(a).resultLine.subLines[0].values[0].value,raw:JSON.parse(a).resultLine.subLines[0].values[0].rawValue},atBegin:{value:JSON.parse(a).resultLine.subLines[0].values[1].value,raw:JSON.parse(a).resultLine.subLines[0].values[1].rawValue}};return o.current.raw>o.atBegin.raw?(o.isPositive=!0,o.differenceInCents=(o.current.raw-o.atBegin.raw)*100):(o.isPositive=!1,o.differenceInCents=(o.atBegin.raw-o.current.raw)*100),o},s=a=>{const o=ra({amount:Math.round(a.differenceInCents)}).toFormat("0,0.00");return a.isPositive?d.jsxs("span",{className:"fw-bold text-success",children:["+",o," â¬"]}):d.jsxs("span",{className:"fw-bold text-danger",children:["-",o," â¬"]})};if(t){const a=i(t);return d.jsxs(d.Fragment,{children:[d.jsxs("div",{children:[d.jsx("div",{className:"small text-body-secondary",children:"Aktueller Stand"}),d.jsxs("div",{className:"fs-3",children:[a.current.value," â¬"]})]}),d.jsxs("div",{className:"mt-2",children:[d.jsxs("div",{className:"small text-body-secondary",children:[s(a)," im ausgewählten Zeitraum"]}),d.jsx(dX,{leid:n})]})]})}else return d.jsxs(vt,{baseColor:"#f1f5f9",highlightColor:"#cbd5e1",children:[d.jsxs("div",{children:[d.jsx("div",{className:"small",children:d.jsx(ce,{width:100})}),d.jsx("div",{className:"fs-3",children:d.jsx(ce,{width:180})})]}),d.jsxs("div",{className:"mt-2",children:[d.jsx("div",{className:"small",children:d.jsx(ce,{width:264})}),d.jsx("div",{className:"small",children:d.jsx(ce,{width:264})})]})]})}const hX="modulepreload",pX=function(n){return"/"+n},mE={},a1=function(e,t,r){if(!t||t.length===0)return e();const i=document.getElementsByTagName("link");return Promise.all(t.map(s=>{if(s=pX(s),s in mE)return;mE[s]=!0;const a=s.endsWith(".css"),o=a?'[rel="stylesheet"]':"";if(!!r)for(let h=i.length-1;h>=0;h--){const f=i[h];if(f.href===s&&(!a||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${o}`))return;const u=document.createElement("link");if(u.rel=a?"stylesheet":hX,a||(u.as="script",u.crossOrigin=""),u.href=s,document.head.appendChild(u),a)return new Promise((h,f)=>{u.addEventListener("load",h),u.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${s}`)))})})).then(()=>e()).catch(s=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s})},gX=n=>n==="asc"?" â":n==="desc"?" â":null,sm=n=>new Date(n).toLocaleDateString("de-DE",{day:"2-digit",month:"2-digit",year:"numeric"}),FR=n=>new Date(n).toLocaleDateString("de-DE",{day:"2-digit",month:"2-digit",year:"numeric"}),mX=n=>{n===null&&(n="01.01.1970");const e=n.substring(0,10);e.length!==10&&(n="01.01.1970");const[t,r,i]=e.split("/").map(Number);return new Date(i,t-1,r).getTime()},o1=()=>{var i,s,a,o;const n=(s=(i=window.dfo)==null?void 0:i.settings)==null?void 0:s.start,e=(o=(a=window.dfo)==null?void 0:a.settings)==null?void 0:o.end,t=n?sm(n):"-",r=e?sm(e):"-";return`${t} bis ${r}`},vX=(n,e)=>{const t=[];return n.resultLine.subLines[0].subLines.forEach(i=>{i.subLines.forEach(s=>{if(s.values[0].rawValue===null||s.values[12].rawValue===0)return;const a={nodeId:s.nodeId,amount:{raw:s.values[4].rawValue,value:s.values[4].value},acquisition_price:{raw:s.values[1].rawValue,value:s.values[1].value},acquisition_value:{raw:s.values[2].rawValue,value:s.values[2].value},date:s.values[3].value,isin:s.values[0].rawValue,name:s.name,nav:{raw:s.values[12].rawValue,value:s.values[12].value},price:{raw:s.values[13].rawValue,value:s.values[13].value.replace(/ EUR$/,"")}};e==="mwr"?(a.returns={raw:s.values[15].rawValue,value:s.values[15].value},a.total_returns={raw:s.values[6].rawValue,value:s.values[6].value}):(a.returns={raw:s.values[14].rawValue,value:s.values[14].value},a.total_returns={raw:s.values[5].rawValue,value:s.values[5].value}),t.push(a)})}),t},bX=n=>{const e=[];return n!==null&&n.forEach(t=>{e.push({name:t.name,isin:t.isin,amount:t.amount.value,acquisition_price:t.acquisition_price.value+" â¬",acquisition_value:t.acquisition_value.value+" â¬",price:t.price.value+" â¬",date:t.date,nav:t.nav.value+" â¬",returns:t.returns.value,total_returns:t.total_returns.value})}),e},yX=async n=>{const e=["name","isin","amount","acquisition_price","acquisition_value","price","date","nav","returns","total_returns"],t=["Name","ISIN","Stücke","Einstandskurs","Einstandswert","Aktueller Kurs","Kursdatum","Aktueller Wert","Rendite im Zeitraum","Rendite seit Kauf"],r=new Date,i=r.getFullYear(),s=String(r.getMonth()+1).padStart(2,"0"),a=String(r.getDate()).padStart(2,"0"),o=`Digitales Family Office: Export der Depotdaten vom ${a}.${s}.${i}`,l=`Zeitraum: ${o1()}`,u=await a1(()=>import("https://cdn.sheetjs.com/xlsx-0.20.3/package/xlsx.mjs"),[]),h=u.utils.aoa_to_sheet([[o]]);u.utils.sheet_add_aoa(h,[[l]],{origin:"A2"}),u.utils.sheet_add_aoa(h,[t],{origin:"A3"}),u.utils.sheet_add_json(h,bX(n),{origin:"A4",header:e,skipHeader:!0}),h["!merges"]=[{s:{r:0,c:0},e:{r:0,c:e.length-1}},{s:{r:1,c:0},e:{r:1,c:e.length-1}}];const f=u.utils.book_new();u.utils.book_append_sheet(f,h,"Depot"),u.writeFile(f,`${i}${s}${a}-bvs-dfo-depot.xlsx`)};
102function _X({leid:n,preset:e,weighting:t,widgetKey:r,icon:i,heading:s}){const[a,o]=E.useState(null);return E.useEffect(()=>{const l=`/qplix?le=${n}&p=${e}`;fetch(l).then(u=>u.json()).then(u=>{o(vX(u,t))})},[]),d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"card-header d-flex justify-content-between align-items-center p-3 bg-white",children:[d.jsxs("h2",{className:"h5 my-0",children:[d.jsx("i",{className:`fa-light ${i} fa-fw me-1 text-body-secondary`}),s]}),d.jsxs("div",{className:"d-flex gap-2",children:[d.jsx("button",{type:"button",className:"btn btn-link btn-sm p-0 text-muted",onClick:()=>yX(a),disabled:a===null,title:"Daten als Excel-Datei herunterladen",children:d.jsx("i",{className:"fa-light fa-file-excel fa-fw"})}),d.jsx("button",{type:"button",className:"btn btn-link btn-sm p-0 text-muted","data-bs-toggle":"offcanvas","data-bs-target":`#dfo-help--${r}`,"aria-controls":`dfo-help--${r}`,title:"Mehr Informationen",children:d.jsx("i",{className:"fa-light fa-info-circle fa-fw"})})]})]}),d.jsx("div",{className:"card-body pt-0 pb-4",children:a===null?d.jsx("div",{className:"pt-4",children:d.jsx(va,{rows:20})}):d.jsx(wX,{data:a,columns:xX})})]})}const Xi=Ml(),xX=[Xi.accessor("name",{cell:n=>(window.location.origin+window.location.pathname+""+n.row.original.nodeId,d.jsx("span",{className:"d-inline-block text-truncate",style:{maxWidth:"240px"},title:n.getValue(),children:n.getValue()})),header:"Name"}),Xi.accessor("isin",{cell:n=>d.jsx("span",{className:"d-inline-block text-truncate",style:{maxWidth:"120px"},title:n.getValue(),children:n.getValue()}),header:"ISIN"}),Xi.accessor("amount",{cell:n=>n.getValue().value,header:"Stücke",sortingFn:"sortRaw"}),Xi.accessor("acquisition_price",{cell:n=>n.getValue().value+" â¬",header:"Einstandskurs",sortingFn:"sortRaw"}),Xi.accessor("acquisition_value",{cell:n=>n.getValue().value+" â¬",header:"Einstandswert",sortingFn:"sortRaw"}),Xi.accessor("price",{cell:n=>n.getValue().value+" â¬",header:"Aktueller Kurs",sortingFn:"sortRaw"}),Xi.accessor("date",{cell:n=>n.getValue(),header:"Kursdatum",sortingFn:(n,e,t)=>{const r=m=>/^\d{2}\.\d{2}\.\d{4}$/.test(m);if(!r(n.original.date)||!r(e.original.date))return 0;const[i,s,a]=n.original.date.split("."),o=parseFloat(`${a}${s}${i}`)||0,[l,u,h]=e.original.date.split("."),f=parseFloat(`${h}${u}${l}`)||0;return o-f}}),Xi.accessor("nav",{cell:n=>n.getValue().value+" â¬",header:"Aktueller Wert",sortingFn:"sortRaw"}),Xi.accessor("returns",{cell:n=>n.getValue().value,header:()=>d.jsxs(d.Fragment,{children:["Rendite",d.jsx("br",{}),"im Zeitraum"]}),sortingFn:"sortRaw"}),Xi.accessor("total_returns",{cell:n=>{const e=window.location.origin+window.location.pathname+"/"+n.row.original.nodeId;return d.jsx("a",{href:e,className:"d-inline-block text-truncate text-decoration-none",style:{maxWidth:"240px"},title:n.getValue(),children:n.getValue().value})},header:()=>d.jsxs(d.Fragment,{children:["Rendite",d.jsx("br",{}),"seit Kauf"]}),sortingFn:"sortRaw"})];function wX({data:n,columns:e}){const t=jl({data:n,columns:e,initialState:{pagination:{pageSize:20},sorting:[{id:"name",desc:!1}]},getCoreRowModel:Tl(),getPaginationRowModel:Al(),getSortedRowModel:Ol(),sortingFns:{sortRaw:(r,i,s)=>{const a=parseFloat(r.original[s].raw)||0,o=parseFloat(i.original[s].raw)||0;return a-o}}});return d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"table-responsive dfo-widget--depot__table",children:d.jsxs("table",{className:"table table-striped align-middle small lh-1",children:[d.jsx("thead",{children:t.getHeaderGroups().map(r=>d.jsx("tr",{children:r.headers.map(i=>d.jsx("th",{className:"align-middle p-3 text-nowrap",children:i.isPlaceholder?null:d.jsxs("button",{className:"btn btn-link p-0 fw-bold text-start text-decoration-none text-nowrap ",disabled:!i.column.getCanSort(),onClick:i.column.getToggleSortingHandler(),children:[nr(i.column.columnDef.header,i.getContext()),gX(i.column.getIsSorted())]})},i.id))},r.id))}),d.jsx("tbody",{children:t.getRowModel().rows.map(r=>d.jsx("tr",{children:r.getVisibleCells().map(i=>d.jsx("td",{className:"p-3 text-nowrap",children:nr(i.column.columnDef.cell,i.getContext())},i.id))},r.id))})]})}),d.jsxs("div",{className:"d-flex justify-content-between align-items-center",children:[d.jsx("nav",{"aria-label":"Seiten-Navigation",children:d.jsxs("ul",{class:"pagination pagination-sm m-0",children:[d.jsx("li",{className:t.getCanPreviousPage()?"page-item":"page-item disabled",children:d.jsx("a",{className:"page-link",href:"#",onClick:r=>{r.preventDefault(),t.setPageIndex(0)},title:"Erste Seite","aria-label":"Erste Seite",children:d.jsx("span",{"aria-hidden":"true",children:d.jsx("i",{className:"fa-light fa-arrow-left-long-to-line"})})})}),d.jsx("li",{className:t.getCanPreviousPage()?"page-item":"page-item disabled",children:d.jsx("a",{className:"page-link",href:"#",onClick:r=>{r.preventDefault(),t.previousPage()},title:"Vorherige Seite","aria-label":"Vorherige Seite",children:d.jsx("span",{"aria-hidden":"true",children:d.jsx("i",{className:"fa-light fa-long-arrow-left"})})})}),d.jsx("li",{className:t.getCanNextPage()?"page-item":"page-item disabled",children:d.jsx("a",{className:"page-link",href:"#",onClick:r=>{r.preventDefault(),t.nextPage()},title:"Nächste Seite","aria-label":"Nächste Seite",children:d.jsx("span",{"aria-hidden":"true",children:d.jsx("i",{className:"fa-light fa-long-arrow-right"})})})}),d.jsx("li",{className:t.getCanNextPage()?"page-item":"page-item disabled",children:d.jsx("a",{className:"page-link",href:"#",onClick:r=>{r.preventDefault(),t.setPageIndex(t.getPageCount()-1)},title:"Letze Seite","aria-label":"Letze Seite",children:d.jsx("span",{"aria-hidden":"true",children:d.jsx("i",{className:"fa-light fa-arrow-right-long-to-line"})})})})]})}),d.jsxs("div",{className:"d-none d-md-block small",children:["Seite ",t.getState().pagination.pageIndex+1," von"," ",t.getPageCount()]}),d.jsx("div",{children:d.jsx("select",{className:"form-select form-select-sm",value:t.getState().pagination.pageSize,onChange:r=>{t.setPageSize(Number(r.target.value))},children:[20,50,100].map(r=>d.jsxs("option",{value:r,children:[r," Zeilen"]},r))})})]})]})}var LR={exports:{}};(function(n,e){(function(t,r){n.exports=r()})(La,function(){var t=1e3,r=6e4,i=36e5,s="millisecond",a="second",o="minute",l="hour",u="day",h="week",f="month",m="quarter",g="year",y="date",v="Invalid Date",x=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,_=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}
vendor: 4,897 bytes, line 102
102|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,S={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(X){var K=["th","st","nd","rd"],z=X%100;return"["+X+(K[(z-20)%10]||K[z]||K[0])+"]"}},w=function(X,K,z){var F=String(X);return!F||F.length>=K?X:""+Array(K+1-F.length).join(z)+X},k={s:w,z:function(X){var K=-X.utcOffset(),z=Math.abs(K),F=Math.floor(z/60),R=z%60;return(K<=0?"+":"-")+w(F,2,"0")+":"+w(R,2,"0")},m:function X(K,z){if(K.date()<z.date())return-X(z,K);var F=12*(z.year()-K.year())+(z.month()-K.month()),R=K.clone().add(F,f),B=z-R<0,Z=K.clone().add(F+(B?-1:1),f);return+(-(F+(z-R)/(B?R-Z:Z-R))||0)},a:function(X){return X<0?Math.ceil(X)||0:Math.floor(X)},p:function(X){return{M:f,y:g,w:h,d:u,D:y,h:l,m:o,s:a,ms:s,Q:m}[X]||String(X||"").toLowerCase().replace(/s$/,"")},u:function(X){return X===void 0}},P="en",j={};j[P]=S;var A="$isDayjsObject",M=function(X){return X instanceof Q||!(!X||!X[A])},L=function X(K,z,F){var R;if(!K)return P;if(typeof K=="string"){var B=K.toLowerCase();j[B]&&(R=B),z&&(j[B]=z,R=B);var Z=K.split("-");if(!R&&Z.length>1)return X(Z[0])}else{var se=K.name;j[se]=K,R=se}return!F&&R&&(P=R),R||!F&&P},I=function(X,K){if(M(X))return X.clone();var z=typeof K=="object"?K:{};return z.date=X,z.args=arguments,new Q(z)},V=k;V.l=L,V.i=M,V.w=function(X,K){return I(X,{locale:K.$L,utc:K.$u,x:K.$x,$offset:K.$offset})};var Q=function(){function X(z){this.$L=L(z.locale,null,!0),this.parse(z),this.$x=this.$x||z.x||{},this[A]=!0}var K=X.prototype;return K.parse=function(z){this.$d=function(F){var R=F.date,B=F.utc;if(R===null)return new Date(NaN);if(V.u(R))return new Date;if(R instanceof Date)return new Date(R);if(typeof R=="string"&&!/Z$/i.test(R)){var Z=R.match(x);if(Z){var se=Z[2]-1||0,ae=(Z[7]||"0").substring(0,3);return B?new Date(Date.UTC(Z[1],se,Z[3]||1,Z[4]||0,Z[5]||0,Z[6]||0,ae)):new Date(Z[1],se,Z[3]||1,Z[4]||0,Z[5]||0,Z[6]||0,ae)}}return new Date(R)}(z),this.init()},K.init=function(){var z=this.$d;this.$y=z.getFullYear(),this.$M=z.getMonth(),this.$D=z.getDate(),this.$W=z.getDay(),this.$H=z.getHours(),this.$m=z.getMinutes(),this.$s=z.getSeconds(),this.$ms=z.getMilliseconds()},K.$utils=function(){return V},K.isValid=function(){return this.$d.toString()!==v},K.isSame=function(z,F){var R=I(z);return this.startOf(F)<=R&&R<=this.endOf(F)},K.isAfter=function(z,F){return I(z)<this.startOf(F)},K.isBefore=function(z,F){return this.endOf(F)<I(z)},K.$g=function(z,F,R){return V.u(z)?this[F]:this.set(R,z)},K.unix=function(){return Math.floor(this.valueOf()/1e3)},K.valueOf=function(){return this.$d.getTime()},K.startOf=function(z,F){var R=this,B=!!V.u(F)||F,Z=V.p(z),se=function(xt,Pt){var It=V.w(R.$u?Date.UTC(R.$y,Pt,xt):new Date(R.$y,Pt,xt),R);return B?It:It.endOf(u)},ae=function(xt,Pt){return V.w(R.toDate()[xt].apply(R.toDate("s"),(B?[0,0,0,0]:[23,59,59,999]).slice(Pt)),R)},ge=this.$W,ke=this.$M,Me=this.$D,me="set"+(this.$u?"UTC":"");switch(Z){case g:return B?se(1,0):se(31,11);case f:return B?se(1,ke):se(0,ke+1);case h:var rt=this.$locale().weekStart||0,et=(ge<rt?ge+7:ge)-rt;return se(B?Me-et:Me+(6-et),ke);case u:case y:return ae(me+"Hours",0);case l:return ae(me+"Minutes",1);case o:return ae(me+"Seconds",2);case a:return ae(me+"Milliseconds",3);default:return this.clone()}},K.endOf=function(z){return this.startOf(z,!1)},K.$set=function(z,F){var R,B=V.p(z),Z="set"+(this.$u?"UTC":""),se=(R={},R[u]=Z+"Date",R[y]=Z+"Date",R[f]=Z+"Month",R[g]=Z+"FullYear",R[l]=Z+"Hours",R[o]=Z+"Minutes",R[a]=Z+"Seconds",R[s]=Z+"Milliseconds",R)[B],ae=B===u?this.$D+(F-this.$W):F;if(B===f||B===g){var ge=this.clone().set(y,1);ge.$d[se](ae),ge.init(),this.$d=ge.set(y,Math.min(this.$D,ge.daysInMonth())).$d}else se&&this.$d[se](ae);return this.init(),this},K.set=function(z,F){return this.clone().$set(z,F)},K.get=function(z){return this[V.p(z)]()},K.add=function(z,F){var R,B=this;z=Number(z);var Z=V.p(F),se=function(ke){var Me=I(B);return V.w(Me.date(Me.date()+Math.round(ke*z)),B)};if(Z===f)return this.set(f,this.$M+z);if(Z===g)return this.set(g,this.$y+z);if(Z===u)return se(1);if(Z===h)return se(7);var ae=(R={},R[o]=r,R[l]=i,R[a]=t,R)[Z]||1,ge=this.$d.getTime()+z*ae;return V.w(ge,this)},K.subtract=function(z,F){return this.add(-1*z,F)},K.format=function(z){var F=this,R=this.$locale();if(!this.isValid())return R.invalidDate||v;var B=z||"YYYY-MM-DDTHH:mm:ssZ",Z=V.z(this),se=this.$H,ae=this.$m,ge=this.$M,ke=R.weekdays,Me=R.months,me=R.meridiem,rt=function(Pt,It,En,Sr){return Pt&&(Pt[It]||Pt(F,B))||En[It].slice(0,Sr)},et=function(Pt){return V.s(se%12||12,Pt,"0")},xt=me||function(Pt,It,En){var Sr=Pt<12?"AM":"PM";return En?Sr.toLowerCase():Sr};return B.replace(_,function(Pt,It){return It||function(En){switch(En){case"YY":return String(F.$y).slice(-2);case"YYYY":return V.s(F.$y,4,"0");case"M":return ge+1;
vendor: 1,683 bytes, line 102
102case"MM":return V.s(ge+1,2,"0");case"MMM":return rt(R.monthsShort,ge,Me,3);case"MMMM":return rt(Me,ge);case"D":return F.$D;case"DD":return V.s(F.$D,2,"0");case"d":return String(F.$W);case"dd":return rt(R.weekdaysMin,F.$W,ke,2);case"ddd":return rt(R.weekdaysShort,F.$W,ke,3);case"dddd":return ke[F.$W];case"H":return String(se);case"HH":return V.s(se,2,"0");case"h":return et(1);case"hh":return et(2);case"a":return xt(se,ae,!0);case"A":return xt(se,ae,!1);case"m":return String(ae);case"mm":return V.s(ae,2,"0");case"s":return String(F.$s);case"ss":return V.s(F.$s,2,"0");case"SSS":return V.s(F.$ms,3,"0");case"Z":return Z}return null}(Pt)||Z.replace(":","")})},K.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},K.diff=function(z,F,R){var B,Z=this,se=V.p(F),ae=I(z),ge=(ae.utcOffset()-this.utcOffset())*r,ke=this-ae,Me=function(){return V.m(Z,ae)};switch(se){case g:B=Me()/12;break;case f:B=Me();break;case m:B=Me()/3;break;case h:B=(ke-ge)/6048e5;break;case u:B=(ke-ge)/864e5;break;case l:B=ke/i;break;case o:B=ke/r;break;case a:B=ke/t;break;default:B=ke}return R?B:V.a(B)},K.daysInMonth=function(){return this.endOf(f).$D},K.$locale=function(){return j[this.$L]},K.locale=function(z,F){if(!z)return this.$L;var R=this.clone(),B=L(z,F,!0);return B&&(R.$L=B),R},K.clone=function(){return V.w(this.$d,this)},K.toDate=function(){return new Date(this.valueOf())},K.toJSON=function(){return this.isValid()?this.toISOString():null},K.toISOString=function(){return this.$d.toISOString()},K.toString=function(){return this.$d.toUTCString()},X}(),U=Q.prototype;return I.prototype=U,[["$ms",s],["$s",a],["$m",o],["$H",l],["$W",u],["$M",f],["$y",g],["$D",y]].forEac
102h(function(X){U[X[1]]=function(K){return this.$g(K,X[0],X[1])}}),I.extend=function(X,K){return X.$i||(X(K,Q,I),X.$i=!0),I},I.locale=L,I.isDayjs=M,I.unix=function(X){return I(1e3*X)},I.en=j[P],I.Ls=j,I.p={},I})})(LR);var BR=LR.exports;const Ye=jm(BR),SX=(n,e)=>{typeof window<"u"&&window._paq&&window._paq.push(["trackEvent","user_backend",`tablefilter_${n}`,e.toLowerCase()])},DX=n=>n.includes("Dab")?"DAB":n.includes("Dabxko")?"DAB XKO":"BVS",kX=n=>n==="LegalEntity"?"Stamm":n,PX=(n,e,t)=>e==="6"||e==="7"?t:n,CX=n=>{const e={BusinessSegment:"",Description:"",DocumentType:"",DocumentTypeName:"",AccountOwner1:"",AccountOwner2:"",CreationDate:"",ISIN:"",MasterNumber:"",OriginFileName:"",OwnerType:"",Owner:"",TransactionType:""};return n!==null&&n.toString().split(` 103`).forEach(r=>{const i=r.indexOf(": ");if(i!==-1){const s=r.substring(0,i);e.hasOwnProperty(s)&&(e[s]=r.substring(i+2))}}),e},EX=(n,e,t)=>n.toLowerCase()==="dfo kurzreport"?t:e,MX=n=>{const e=[];return typeof n.data<"u"&&Array.isArray(n.data)&&n.data.forEach(t=>{const r=CX(t.document.description),i=DX(t.document.tags);e.push({date:mX(r.CreationDate),description:r.Description,document_type:r.DocumentTypeName,id:t.document.id,isin:r.ISIN,link:t.document.pdfLink,owner:r.Owner,source:i,title:EX(r.DocumentTypeName,t.document.name,r.OriginFileName),tags:t.document.tags,transaction:PX(r.TransactionType,r.DocumentType,r.Description),type:kX(r.OwnerType)})}),e},vE=(n,e)=>{const t=e.link.startsWith("/qapi/v1/reporting/")?"download_report":"document";let r=encodeURIComponent(e.title.toLowerCase());if(t==="download_report"){const i=new Date(e.date);i.getFullYear(),(i.getMonth()+1).toString().padStart(2,"0"),i.getDate().toString().padStart(2,"0"),r=encodeURIComponent(`${e.title}.pdf`)}return`/qplix?le=${n}&q=${t}&download_id=${e.id}&filename=${r}`};function TX({leid:n,preset:e}){const[t,r]=E.useState(null);return E.useEffect(()=>{const i=`/qplix?le=${n}&p=${e}&q=documents`;fetch(i).then(s=>s.json()).then(s=>{r(MX(s))})},[]),t===null?d.jsx(va,{rows:50}):d.jsx(OX,{leid:n,data:t})}const Ns=Ml();function OX({leid:n,data:e}){const[t,r]=E.useState([]),[i,s]=E.useState({pageIndex:0,pageSize:50}),[a,o]=E.useState([{id:"dfo-documents__date",desc:!0}]),l=E.useMemo(()=>[Ns.accessor("date",{cell:f=>FR(f.getValue()),enableColumnFilter:!1,header:"Datum",id:"dfo-documents__date",sortingFn:"basic"}),Ns.display({cell:f=>{const m=vE(n,f.row.original);return d.jsx("a",{href:m,className:"btn btn-outline-dark btn-sm fw-bold text-nowrap",target:"_blank",title:"Datei herunterladen",children:d.jsx("i",{className:"fa-light fa-file-pdf"})})},header:"Download",id:"dfo-reports__link"}),Ns.accessor("source",{cell:f=>f.getValue(),header:"Herkunft",id:"dfo-documents__source",meta:{filterVariant:"select",trackingId:"source"},filterFn:"equalsString"}),Ns.accessor("type",{cell:f=>f.getValue(),header:"Typ",id:"dfo-documents__type",meta:{filterVariant:"select",trackingId:"type"},filterFn:"equalsString"}),Ns.accessor("owner",{cell:f=>f.getValue(),header:"Depot",id:"dfo-documents__owner",meta:{filterVariant:"select",trackingId:"owner"},filterFn:"equalsString"}),Ns.accessor("document_type",{cell:f=>f.getValue(),header:"Dokumentenart",id:"dfo-documents__document-type",meta:{filterVariant:"select",trackingId:"document_type"},filterFn:"equalsString"}),Ns.accessor("transaction",{cell:f=>f.getValue(),header:"Transaktion",id:"dfo-documents__transaction",meta:{filterVariant:"select",trackingId:"transaction"},filterFn:"equalsString"}),Ns.accessor("isin",{cell:f=>f.getValue(),header:"ISIN",id:"dfo-documents__isin",meta:{filterVariant:"text"},filterFn:"equalsString"}),Ns.accessor("title",{cell:f=>{const m=f.getValue(),g=60,y=f.getValue().length>g?`${m.substring(0,g-3)}...`:m,v=vE(n,f.row.original);return d.jsx("a",{href:v,className:"d-block text-break text-decoration-none",style:{"min-width":"360px","max-width":"360px"},target:"_blank",children:y})},header:"Titel",id:"dfo-documents__title",filterFn:"equalsString",maxSize:320})]),u=jl({data:e,columns:l,enableSortingRemoval:!1,getCoreRowModel:Tl(),getFacetedRowModel:aR(),getFacetedUniqueValues:oR(),getFacetedMinMaxValues:lR(),getFilteredRowModel:sR(),getPaginationRowModel:Al(),getSortedRowModel:Ol(),onColumnFiltersChange:r,onPaginationChange:s,onSortingChange:o,state:{columnFilters:t,pagination:i,sorting:a}}),h=f=>f==="asc"?" â":f==="desc"?" â":null;return d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"table-responsive",children:d.jsxs("table",{className:"table table-hover table-striped small",children:[d.jsx("thead",{children:u.getHeaderGroups().map(f=>d.jsx("tr",{children:f.headers.map(m=>d.jsx("th",{className:"align-top p-3 text-nowrap",children:m.isPlaceholder?null:d.jsxs(d.Fragment,{children:[d.jsxs("button",{className:"btn btn-link p-0 fw-bold text-decoration-none text-nowrap ",disabled:!m.column.getCanSort(),onClick:m.column.getToggleSortingHandler(),children:[nr(m.column.columnDef.header,m.getContext()),h(m.column.getIsSorted())]}),m.column.getCanFilter()?d.jsx(AX,{column:m.column}):null]})},m.id))},f.id))}),d.jsx("tbody",{children:u.getRowModel().rows.map(f=>d.jsx("tr",{children:f.getVisibleCells().map(m=>d.jsx("td",{className:"px-xl-3 py-1 align-middle",children:nr(m.column.columnDef.cell,m.getContext())},m.id))},f.id))})]})}),d.jsxs("div",{className:"d-flex justify-content-between align-items-center",children:[d.jsx("nav",{"aria-label":"Page navigation example",children:d.jsxs("ul",{class:"pagination pagination-sm m-0",children:[d.jsx("li",{className:u.getCanPreviousPage()?"page-item":"page-item disabled",children:d.jsx("a",{className:"page-link",href:"#",onClick:f=>{f.preventDefault(),u.setPageIndex(0)},title:"Erste Seite","aria-label":"Erste Seite",children:d.jsx("span",{"aria-hidden":"true",children:d.jsx("i",{className:"fa-light fa-arrow-left-long-to-line"})})})}),d.jsx("li",{className:u.getCanPreviousPage()?"page-item":"page-item disabled",children:d.jsx("a",{className:"page-link",href:"#",onClick:f=>{f.preventDefault(),u.previousPage()},title:"Vorherige Seite","aria-label":"Vorherige Seite",children:d.jsx("span",{"aria-hidden":"true",children:d.jsx("i",{className:"fa-light fa-long-arrow-left"})})})}),d.jsx("li",{className:u.getCanNextPage()?"page-item":"page-item disabled",children:d.jsx("a",{className:"page-link",href:"#",onClick:f=>{f.preventDefault(),u.nextPage()},title:"Nächste Seite","aria-label":"Nächste Seite",children:d.jsx("span",{"aria-hidden":"true",children:d.jsx("i",{className:"fa-light fa-long-arrow-right"})})})}),d.jsx("li",{className:u.getCanNextPage()?"page-item":"page-item disabled",children:d.jsx("a",{className:"page-link",href:"#",onClick:f=>{f.preventDefault(),u.setPageIndex(u.getPageCount()-1)},title:"Letze Seite","aria-label":"Letze Seite",children:d.jsx("span",{"aria-hidden":"true",children:d.jsx("i",{className:"fa-light fa-arrow-right-long-to-line"})})})})]})}),d.jsxs("div",{className:"d-none d-md-block small",children:["Seite ",u.getState().pagination.pageIndex+1," von"," ",u.getPageCount()]}),d.jsx("div",{children:d.jsx("select",{className:"form-select form-select-sm",value:u.getState().pagination.pageSize,onChange:f=>{u.setPageSize(Number(f.target.value))},children:[15,25,50,100].map(f=>d.jsxs("option",{value:f,children:[f," Dokumente"]},f))})})]})]})}function AX({column:n}){const{filterVariant:e}=n.columnDef.meta??{},t=n.getFilterValue(),r=E.useMemo(()=>Array.from(n.getFacetedUniqueValues().keys()).sort().slice(0,5e3),[n.getFacetedUniqueValues(),e]);return e==="dateRange"?d.jsx(d.Fragment,{children:d.jsxs("div",{className:"d-flex",children:[d.jsx(s_,{type:"date",debounce:200,value:Ye(1723065877).format("YYYY-MM-DD"),onChange:a=>{}}),d.jsx(s_,{type:"date",debounce:200,value:Ye(1723065880).format("YYYY-MM-DD"),onChange:a=>{}})]})}):e==="select"?d.jsx("div",{children:d.jsxs("select",{value:t==null?void 0:t.toString(),className:"form-select form-select-sm",onChange:i=>{var a;const s=i.target.value;if(n.setFilterValue(s),s){const o=((a=n.columnDef.meta)==null?void 0:a.trackingId)??n.id;SX(o,s)}},children:[d.jsx("option",{value:"",children:"Alle anzeigen"}),r.map(i=>i.length?d.jsx("option",{value:i,children:i},i):"")]})}):d.jsxs("div",{children:[d.jsx("datalist",{id:n.id+"list",children:r.map(i=>d.jsx("option",{value:i},i))}),d.jsx(s_,{type:"text",value:t??"",className:"form-control form-control-sm",onChange:i=>n.setFilterValue(i),placeholder:`Suchbegriff (${n.getFacetedUniqueValues().size})`,list:n.id+"list"})]})}function s_({initialValue:n,onChange:e,debounce:t=500,...r}){const[i,s]=E.useState(n);return E.useEffect(()=>{s(n)},[n]),E.useEffect(()=>{const a=setTimeout(()=>{e(i)},t);return()=>clearTimeout(a)},[i]),d.jsx("input",{...r,value:i,onChange:a=>s(a.target.value)})}const $R=n=>{if(typeof n=="string")switch(n){case"dab_data_update":return"DAB-Datenaktualisierung";default:return n}return""},jX=n=>n.map(e=>({...e,type:$R(e.type)}));function RX({leid:n,documents:e}){const[t,r]=E.useState(jX(e));return t.length===0?d.jsx(IX,{}):d.jsx(NX,{leid:n,data:t})}function IX(){return d.jsxs("div",{className:"alert alert-info p-3 mt-2 mb-0",role:"alert",children:[d.jsx("i",{className:"fa-light fa-info-circle me-2"}),"Es wurden bislang ",d.jsx("strong",{children:"keine Stammdokumente"})," für Sie hinterlegt."]})}const sd=Ml();function NX({leid:n,data:e}){const[t,r]=E.useState([]),[i,s]=E.useState({pageIndex:0,pageSize:50}),[a,o]=E.useState([{id:"dfo-documents__date",desc:!0}]),l=E.useMemo(()=>[sd.accessor("date_time",{cell:f=>FR(f.getValue()),enableColumnFilter:!1,header:"Datum",id:"dfo-documents__date"}),sd.display({cell:f=>d.jsx("a",{href:f.row.original.url,className:"btn btn-outline-dark btn-sm fw-bold text-nowrap",target:"_blank",title:"Datei herunterladen",children:d.jsx("i",{className:"fa-light fa-file-pdf"})}),header:"Download",id:"dfo-documents__link"}),sd.accessor("type",{cell:f=>$R(f.getValue()),header:"Typ",id:"dfo-documents__type",meta:{filterVariant:"select"},filterFn:"equalsString"}),sd.accessor("filename",{cell:f=>{const m=f.getValue(),g=60,y=f.getValue().length>g?`${m.substring(0,g-3)}...`:m;return d.jsx("a",{href:f.row.original.url,className:"d-block text-break text-decoration-none",style:{"min-width":"360px","max-width":"360px"},target:"_blank",children:y})},header:"Dateiname",id:"dfo-documents__filename",filterFn:"equalsString",maxSize:320}),sd.accessor("size",{cell:f=>f.getValue(),enableColumnFilter:!1,header:"DateigröÃe",id:"dfo-documents__size"})]),u=jl({data:e,columns:l,getCoreRowModel:Tl(),getFacetedRowModel:aR(),getFacetedUniqueValues:oR(),getFacetedMinMaxValues:lR(),getFilteredRowModel:sR(),getPaginationRowModel:Al(),getSortedRowModel:Ol(),onColumnFiltersChange:r,onPaginationChange:s,onSortingChange:o,state:{columnFilters:t,pagination:i,sorting:a}}),h=f=>f==="asc"?" â":f==="desc"?" â":null;return d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"table-responsive",children:d.jsxs("table",{className:"table table-hover table-striped small",children:[d.jsx("thead",{children:u.getHeaderGroups().map(f=>d.jsx("tr",{children:f.headers.map(m=>d.jsx("th",{className:"align-top p-3 text-nowrap",children:m.isPlaceholder?null:d.jsxs(d.Fragment,{children:[d.jsxs("button",{className:"btn btn-link p-0 fw-bold text-decoration-none text-nowrap ",disabled:!m.column.getCanSort(),onClick:m.column.getToggleSortingHandler(),children:[nr(m.column.columnDef.header,m.getContext()),h(m.column.getIsSorted())]}),m.column.getCanFilter()?d.jsx(FX,{column:m.column}):null]})},m.id))},f.id))}),d.jsx("tbody",{children:u.getRowModel().rows.map(f=>d.jsx("tr",{children:f.getVisibleCells().map(m=>d.jsx("td",{className:"px-xl-3 py-1 align-middle",children:nr(m.column.columnDef.cell,m.getContext())},m.id))},f.id))})]})}),d.jsxs("div",{className:"d-flex justify-content-between align-items-center",children:[d.jsx("nav",{"aria-label":"Page navigation example",children:d.jsxs("ul",{class:"pagination pagination-sm m-0",children:[d.jsx("li",{className:u.getCanPreviousPage()?"page-item":"page-item disabled",children:d.jsx("a",{className:"page-link",href:"#",onClick:f=>{f.preventDefault(),u.setPageIndex(0)},title:"Erste Seite","aria-label":"Erste Seite",children:d.jsx("span",{"aria-hidden":"true",children:d.jsx("i",{className:"fa-light fa-arrow-left-long-to-line"})})})}),d.jsx("li",{className:u.getCanPreviousPage()?"page-item":"page-item disabled",children:d.jsx("a",{className:"page-link",href:"#",onClick:f=>{f.preventDefault(),u.previousPage()},title:"Vorherige Seite","aria-label":"Vorherige Seite",children:d.jsx("span",{"aria-hidden":"true",children:d.jsx("i",{className:"fa-light fa-long-arrow-left"})})})}),d.jsx("li",{className:u.getCanNextPage()?"page-item":"page-item disabled",children:d.jsx("a",{className:"page-link",href:"#",onClick:f=>{f.preventDefault(),u.nextPage()},title:"Nächste Seite","aria-label":"Nächste Seite",children:d.jsx("span",{"aria-hidden":"true",children:d.jsx("i",{className:"fa-light fa-long-arrow-right"})})})}),d.jsx("li",{className:u.getCanNextPage()?"page-item":"page-item disabled",children:d.jsx("a",{className:"page-link",href:"#",onClick:f=>{f.preventDefault(),u.setPageIndex(u.getPageCount()-1)},title:"Letze Seite","aria-label":"Letze Seite",children:d.jsx("span",{"aria-hidden":"true",children:d.jsx("i",{className:"fa-light fa-arrow-right-long-to-line"})})})})]})}),d.jsxs("div",{className:"d-none d-md-block small",children:["Seite ",u.getState().pagination.pageIndex+1," von"," ",u.getPageCount()]}),d.jsx("div",{children:d.jsx("select",{className:"form-select form-select-sm",value:u.getState().pagination.pageSize,onChange:f=>{u.setPageSize(Number(f.target.value))},children:[15,25,50,100].map(f=>d.jsxs("option",{value:f,children:[f," Dokumente"]},f))})})]})]})}function FX({column:n}){const{filterVariant:e}=n.columnDef.meta??{},t=n.getFilterValue(),r=E.useMemo(()=>Array.from(n.getFacetedUniqueValues().keys()).sort().slice(0,5e3),[n.getFacetedUniqueValues(),e]);return e==="dateRange"?d.jsx(d.Fragment,{children:d.jsxs("div",{className:"d-flex",children:[d.jsx(a_,{type:"date",debounce:200,value:Ye(1723065877).format("YYYY-MM-DD"),onChange:a=>{}}),d.jsx(a_,{type:"date",debounce:200,value:Ye(1723065880).format("YYYY-MM-DD"),onChange:a=>{}})]})}):e==="select"?d.jsx("div",{children:d.jsxs("select",{value:t==null?void 0:t.toString(),className:"form-select form-select-sm",onChange:i=>n.setFilterValue(i.target.value),children:[d.jsx("option",{value:"",children:"Alle anzeigen"}),r.map(i=>i.length?d.jsx("option",{value:i,children:i},i):"")]})}):d.jsxs("div",{children:[d.jsx("datalist",{id:n.id+"list",children:r.map(i=>d.jsx("option",{value:i},i))}),d.jsx(a_,{type:"text",value:t??"",className:"form-control form-control-sm",onChange:i=>n.setFilterValue(i),placeholder:`Suchbegriff (${n.getFacetedUniqueValues().size})`,list:n.id+"list"})]})}function a_({initialValue:n,onChange:e,debounce:t=500,...r}){const[i,s]=E.useState(n);return E.useEffect(()=>{s(n)},[n]),E.useEffect(()=>{const a=setTimeout(()=>{e(i)},t);return()=>clearTimeout(a)},[i]),d.jsx("input",{...r,value:i,onChange:a=>s(a.target.value)})}const LX=n=>{const e=JSON.parse(n);return{current:{actual:{value:e.resultLine.subLines[0].values[4].value,raw:e.resultLine.subLines[0].values[4].rawValue},benchmark:{value:e.benchmarkResultLine.subLines[0].values[4].value,raw:e.benchmarkResultLine.subLines[0].values[4].rawValue}},maximum:{actual:{value:e.resultLine.subLines[0].values[5].value,raw:e.resultLine.subLines[0].values[5].rawValue},benchmark:{value:e.benchmarkResultLine.subLines[0].values[5].value,raw:e.benchmarkResultLine.subLines[0].values[5].rawValue}}}},BX=n=>
103{const e=lt.round(n.actual.raw*100,2),t=lt.round(n.benchmark.raw*100,2);let r="0";return e<t?r="-"+lt.round(t-e,2):e>t&&(r="+"+lt.round(e-t,2)),r.replace(".",",")},bE=n=>{const e={difference:BX(n)};return Array.from(e.difference)[0]==="-"?(e.color="text-danger",e.label="unter Benchmark"):Array.from(e.difference)[0]==="+"?(e.color="text-success",e.label="über Benchmark"):(e.color="text-body",e.label="gegenüber Benchmark"),d.jsxs("div",{className:"mt-2 small",children:[d.jsxs("strong",{className:e.color,children:[e.difference," %"]}),d.jsx("br",{}),e.label]})};function $X({leid:n,preset:e,showBenchmark:t}){const[r,i]=E.useState();if(E.useEffect(()=>{const s=`/qplix?le=${n}&p=${e}`;fetch(s).then(a=>a.json()).then(a=>{i(JSON.stringify(a))})},[]),r){const s=LX(r);return t?d.jsx(d.Fragment,{children:d.jsxs("div",{className:"row",children:[d.jsxs("div",{className:"col",children:[d.jsx("div",{className:"small text-muted",children:"Aktuell"}),d.jsx("div",{className:"fs-3",children:s.current.actual.value}),bE(s.current)]}),d.jsxs("div",{className:"col",children:[d.jsx("div",{className:"small text-muted",children:"Maximal"}),d.jsx("div",{className:"fs-3",children:s.maximum.actual.value}),bE(s.maximum)]})]})}):d.jsxs("div",{className:"row",children:[d.jsxs("div",{className:"col",children:[d.jsx("div",{className:"small text-muted",children:"Aktuell"}),d.jsx("div",{className:"fs-3",children:s.current.actual.value})]}),d.jsxs("div",{className:"col",children:[d.jsx("div",{className:"small text-muted",children:"Maximal"}),d.jsx("div",{className:"fs-3",children:s.maximum.actual.value})]})]})}else return t?d.jsx(vt,{baseColor:"#f1f5f9",highlightColor:"#cbd5e1",children:d.jsxs("div",{className:"row",children:[d.jsxs("div",{className:"col",children:[d.jsx("div",{className:"small",children:d.jsx(ce,{})}),d.jsx("div",{className:"fs-3",children:d.jsx(ce,{})}),d.jsxs("div",{className:"mt-2 small",children:[d.jsx(ce,{}),d.jsx(ce,{})]})]}),d.jsxs("div",{className:"col",children:[d.jsx("div",{className:"small",children:d.jsx(ce,{})}),d.jsx("div",{className:"fs-3",children:d.jsx(ce,{})}),d.jsxs("div",{className:"mt-2 small",children:[d.jsx(ce,{}),d.jsx(ce,{})]})]})]})}):d.jsx(vt,{baseColor:"#f1f5f9",highlightColor:"#cbd5e1",children:d.jsxs("div",{className:"row",children:[d.jsxs("div",{className:"col",children:[d.jsx("div",{className:"small",children:d.jsx(ce,{})}),d.jsx("div",{className:"fs-3",children:d.jsx(ce,{})})]}),d.jsxs("div",{className:"col",children:[d.jsx("div",{className:"small",children:d.jsx(ce,{})}),d.jsx("div",{className:"fs-3",children:d.jsx(ce,{})})]})]})})}class VX extends ws{setupDefaultRules(){super.setupDefaultRules();const e=this._root.interfaceColors,t=this._root.language,r=this.rule.bind(this);r("XYChart").setAll({colors:Ju.new(this._root,{}),paddingLeft:20,paddingRight:20,paddingTop:16,paddingBottom:16,panX:!1,panY:!1,wheelStep:.25,arrangeTooltips:!0,pinchZoomX:!1,pinchZoomY:!1}),r("XYSeries").setAll({legendLabelText:"{name}"}),r("XYChart",["scrollbar","chart"]).setAll({paddingBottom:0,paddingLeft:0,paddingTop:0,paddingRight:0,colors:Ju.new(this._root,{saturation:0})});{const l=r("Graphics",["scrollbar","overlay"]);l.setAll({fillOpacity:.5}),xe(l,"fill",e,"background")}r("RoundedRectangle",["xy","scrollbar","thumb"]).setAll({cornerRadiusTR:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusBL:0,fillOpacity:0,focusable:!0}),r("RoundedRectangle",["xy","scrollbar","thumb"]).states.create("hover",{fillOpacity:.4}),r("RoundedRectangle",["xy","scrollbar","chart","background"]).setAll({cornerRadiusTL:0,cornerRadiusBL:0,
vendor: 21,278 bytes, line 103
103cornerRadiusTR:0,cornerRadiusBR:0}),r("RoundedRectangle",["xy","scrollbar","chart","background","resize","button"]).setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),r("AxisRendererX",["xy","chart","scrollbar"]).setAll({strokeOpacity:0,inside:!0}),r("AxisRendererY",["xy","chart","scrollbar"]).setAll({strokeOpacity:0,inside:!0,minGridDistance:5}),r("AxisLabel",["xy","scrollbar","x"]).setAll({opacity:.5,centerY:le,minPosition:.01,maxPosition:.99,fontSize:"0.8em"}),r("AxisLabel",["category"]).setAll({text:"{category}",populateText:!0}),r("AxisLabel",["x"]).setAll({centerY:0}),r("AxisLabel",["x","inside"]).setAll({centerY:le}),r("AxisLabel",["x","inside","opposite"]).setAll({centerY:0}),r("AxisLabel",["x","opposite"]).setAll({centerY:le}),r("AxisLabel",["y"]).setAll({centerX:le}),r("AxisLabel",["y","inside"]).setAll({centerX:0}),r("AxisLabel",["y","inside","opposite"]).setAll({centerX:le}),r("AxisLabel",["y","opposite"]).setAll({centerX:0}),r("AxisLabel",["minor"]).setAll({fontSize:"0.6em"}),r("AxisLabel",["xy","scrollbar","y"]).setAll({visible:!1}),r("Grid",["xy","scrollbar","y"]).setAll({visible:!1}),r("Grid",["xy","scrollbar","x"]).setAll({opacity:.5}),r("XYCursor").setAll({behavior:"none",layer:30,exportable:!1,snapToSeriesBy:"xy",moveThreshold:1});{const l=r("Grid",["cursor","x"]);l.setAll({strokeOpacity:.8,strokeDasharray:[2,2],ariaLabel:t.translate("Use left and right arrows to move selection")}),xe(l,"stroke",e,"alternativeBackground")}{const l=r("Grid",["cursor","y"]);l.setAll({strokeOpacity:.8,strokeDasharray:[2,2],ariaLabel:t.translate("Use up and down arrows to move selection")}),xe(l,"stroke",e,"alternativeBackground")}{const l=r("Graphics",["cursor","selection"]);l.setAll({fillOpacity:.15}),xe(l,"fill",e,"alternativeBackground")}r("Axis").setAll({start:0,end:1,minZoomCount:1,maxZoomCount:1/0,maxZoomFactor:1e3,maxDeviation:.1,snapTooltip:!0,tooltipLocation:.5,panX:!0,panY:!0,zoomX:!0,zoomY:!0,fixAxisSize:!0}),r("AxisLabel").setAll({location:.5,multiLocation:0,centerX:He,centerY:He,paddingTop:3,paddingBottom:3,paddingLeft:5,paddingRight:5}),r("Container",["axis","header"]).setAll({layer:30}),r("Rectangle",["axis","header","background"]).setAll({crisp:!0});{const l=r("AxisRenderer");l.setAll({crisp:!0,strokeOpacity:0}),xe(l,"stroke",e,"grid")}r("AxisRendererX").setAll({minGridDistance:120,opposite:!1,inversed:!1,cellStartLocation:0,cellEndLocation:1,width:le}),r("AxisRendererY").setAll({minGridDistance:40,opposite:!1,inversed:!1,cellStartLocation:0,cellEndLocation:1,height:le});{const l=r("Rectangle",["axis","thumb"]);l.setAll({fillOpacity:0}),xe(l,"fill",e,"alternativeBackground"),l.states.create("hover",{fillOpacity:.1})}r("Rectangle",["axis","thumb","x"]).setAll({cursorOverStyle:"ew-resize"}),r("Rectangle",["axis","thumb","y"]).setAll({cursorOverStyle:"ns-resize"});{const l=r("Grid");l.setAll({location:0,strokeOpacity:.15,crisp:!0}),xe(l,"stroke",e,"grid")}{const l=r("Grid",["minor"]);l.setAll({location:0,strokeOpacity:.07,crisp:!0}),xe(l,"stroke",e,"grid")}r("Grid",["base"]).setAll({strokeOpacity:.3});{const l=r("Graphics",["axis","fill"]);l.setAll({visible:!1,isMeasured:!1,position:"absolute",fillOpacity:.05}),xe(l,"fill",e,"alternativeBackground")}r("Graphics",["axis","fill","range"]).setAll({isMeasured:!0}),r("Graphics",["series","fill","range"]).setAll({visible:!1,isMeasured:!0}),r("Grid",["series","range"]).setAll({visible:!1}),r("AxisTick",["series","range"]).setAll({visible:!1}),r("AxisLabel",["series","range"]).setAll({visible:!1});{const l=r("AxisTick");l.setAll({location:.5,multiLocation:0,strokeOpacity:1,isMeasured:!1,position:"absolute",visible:!1}),xe(l,"stroke",e,"grid")}r("CategoryAxis").setAll({startLocation:0,endLocation:1,fillRule:(l,u)=>{const h=l.get("axisFill");h&&(!q(u)||u%2==0?h.setPrivate("visible",!0):h.setPrivate("visible",!1))}});const i=[{timeUnit:"millisecond",count:1},{timeUnit:"millisecond",count:5},{timeUnit:"millisecond",count:10},{timeUnit:"millisecond",count:50},{timeUnit:"millisecond",count:100},{timeUnit:"millisecond",count:500},{timeUnit:"second",count:1},{timeUnit:"second",count:5},{timeUnit:"second",count:10},{timeUnit:"second",count:30},{timeUnit:"minute",count:1},{timeUnit:"minute",count:5},{timeUnit:"minute",count:10},{timeUnit:"minute",count:15},{timeUnit:"minute",count:30},{timeUnit:"hour",count:1},{timeUnit:"hour",count:3},{timeUnit:"hour",count:6},{timeUnit:"hour",count:12},{timeUnit:"day",count:1},{timeUnit:"day",count:2},{timeUnit:"day",count:3},{timeUnit:"day",count:4},{timeUnit:"day",count:5},{timeUnit:"week",count:1},{timeUnit:"month",count:1},{timeUnit:"month",count:2},{timeUnit:"month",count:3},{timeUnit:"month",count:6},{timeUnit:"year",count:1},{timeUnit:"year",count:2},{timeUnit:"year",count:5},{timeUnit:"year",count:10},{timeUnit:"year",count:50},{timeUnit:"year",count:100},{timeUnit:"year",count:200},{timeUnit:"year",count:500},{timeUnit:"year",count:1e3},{timeUnit:"year",count:2e3},{timeUnit:"year",count:5e3},{timeUnit:"year",count:1e4},{timeUnit:"year",count:1e5}],s={millisecond:t.translate("_date_millisecond"),second:t.translate("_date_second"),minute:t.translate("_date_minute"),hour:t.translate("_date_hour"),day:t.translate("_date_day"),week:t.translate("_date_day"),month:t.translate("_date_month"),year:t.translate("_date_year")},a={millisecond:t.translate("_date_millisecond"),second:t.translate("_date_second"),minute:t.translate("_date_minute"),hour:t.translate("_date_day"),day:t.translate("_date_day"),week:t.translate("_date_day"),month:t.translate("_date_month")+" "+t.translate("_date_year"),year:t.translate("_date_year")},o={millisecond:t.translate("_date_millisecond_full"),second:t.translate("_date_second_full"),minute:t.translate("_date_minute_full"),hour:t.translate("_date_hour_full"),day:t.translate("_date_day_full"),week:t.translate("_date_week_full"),month:t.translate("_date_month_full"),year:t.translate("_date_year")};r("CategoryDateAxis").setAll({markUnitChange:!0,gridIntervals:Z0(i),dateFormats:Yo(s),periodChangeDateFormats:Yo(a)}),r("DateAxis").setAll({maxZoomFactor:null,strictMinMax:!0,startLocation:0,endLocation:1,markUnitChange:!0,groupData:!1,groupCount:500,gridIntervals:Z0(i),dateFormats:Yo(s),periodChangeDateFormats:Yo(a),tooltipDateFormats:o,groupIntervals:[{timeUnit:"millisecond",count:1},{timeUnit:"millisecond",count:10},{timeUnit:"millisecond",count:100},{timeUnit:"second",count:1},{timeUnit:"second",count:10},{timeUnit:"minute",count:1},{timeUnit:"minute",count:10},{timeUnit:"hour",count:1},{timeUnit:"day",count:1},{timeUnit:"week",count:1},{timeUnit:"month",count:1},{timeUnit:"year",count:1}],fillRule:l=>{const u=l.get("axisFill");if(u){const h=l.component,f=l.get("value"),m=l.get("endValue"),g=h.intervalDuration(),y=h.getPrivate("baseInterval"),v=h.getPrivate("gridInterval",y);let x=h.getPrivate("min",0);if(x=hn(new Date(x),v.timeUnit,v.count,this._root.locale.firstDayOfWeek,this._root.utc,void 0,this._root.timezone).getTime(),f!=null&&m!=null){const _=Math.round(Math.round((f-x)/g))/2;_==Math.round(_)?u.setPrivate("visible",!0):u.setPrivate("visible",!1)}}}}),r("GaplessDateAxis").setAll({fillRule:l=>{const u=l.get("axisFill");if(u){const h=l.get("index");let f=!1;(!q(h)||h%2==0)&&(f=!0),u.setPrivate("visible",f)}}}),r("ValueAxis").setAll({baseValue:0,logarithmic:!1,strictMinMax:!1,autoZoom:!0,fillRule:l=>{const u=l.get("axisFill");if(u){const h=l.component,f=l.get("value"),m=h.getPrivate("step");q(f)&&q(m)&&(An(f/m/2,5)==Math.round(f/m/2)?u.setPrivate("visible",!1):u.setPrivate("visible",!0))}}}),r("DurationAxis").setAll({baseUnit:"second"}),r("XYSeries").setAll({maskBullets:!0,stackToNegative:!0,locationX:.5,locationY:.5,snapTooltip:!1,openValueXGrouped:"open",openValueYGrouped:"open",valueXGrouped:"close",valueYGrouped:"close",seriesTooltipTarget:"series"}),r("BaseColumnSeries").setAll({adjustBulletPosition:!0}),r("ColumnSeries").setAll({clustered:!0}),r("RoundedRectangle",["series","column"]).setAll({position:"absolute",isMeasured:!1,width:jr(70),height:jr(70),strokeWidth:1,strokeOpacity:1,cornerRadiusBL:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusTR:0,fillOpacity:1,role:"figure"}),r("LineSeries").setAll({connect:!0,autoGapCount:1.1,stackToNegative:!1}),r("Graphics",["series","stroke"]).setAll({position:"absolute",strokeWidth:1,strokeOpacity:1,isMeasured:!1}),r("Graphics",["series","fill"]).setAll({visible:!1,fillOpacity:0,position:"absolute",strokeWidth:0,strokeOpacity:0,isMeasured:!1}),r("Graphics",["line","series","legend","marker","stroke"]).setAll({draw:(l,u)=>{const h=u.parent;if(h){const f=h.height(),m=h.width();l.moveTo(0,f/2),l.lineTo(m,f/2)}}});{const l=r("Graphics",["line","series","legend","marker","stroke"]).states.create("disabled",{});xe(l,"stroke",e,"disabled")}r("Graphics",["line","series","legend","marker","fill"]).setAll({draw:(l,u)=>{const h=u.parent;if(h){const f=h.height(),m=h.width();l.moveTo(0,0),l.lineTo(m,0),l.lineTo(m,f),l.lineTo(0,f),l.lineTo(0,0)}}});{const l=r("Graphics",["line","series","legend","marker","fill"]).states.create("disabled",{});xe(l,"stroke",e,"disabled")}r("SmoothedXYLineSeries").setAll({tension:.5}),r("SmoothedXLineSeries").setAll({tension:.5}),r("SmoothedYLineSeries").setAll({tension:.5}),r("Candlestick").setAll({position:"absolute",isMeasured:!1,width:jr(50),height:jr(50),strokeWidth:1,strokeOpacity:1,cornerRadiusBL:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusTR:0,fillOpacity:1,role:"figure"}),r("OHLC").setAll({width:jr(80),height:jr(80)}),r("CandlestickSeries").setAll({lowValueXGrouped:"low",lowValueYGrouped:"low",highValueXGrouped:"high",highValueYGrouped:"high",openValueXGrouped:"open",openValueYGrouped:"open",valueXGrouped:"close",valueYGrouped:"close"});{const l=r("Rectangle",["column","autocolor"]).states.create("riseFromOpen",{});xe(l,"fill",e,"positive"),xe(l,"stroke",e,"positive")}{const l=r("Rectangle",["column","autocolor"]).states.create("dropFromOpen",{});xe(l,"fill",e,"negative"),xe(l,"stroke",e,"negative")}r("Rectangle",["column","autocolor","pro"]).states.create("riseFromOpen",{fillOpacity:0}),r("Rectangle",["column","autocolor","pro"]).states.create("dropFromOpen",{fillOpacity:1});{const l=r("Rectangle",["column","autocolor","pro"]).states.create("riseFromPrevious",{});xe(l,"fill",e,"positive"),xe(l,"stroke",e,"positive")}{const l=r("Rectangle",["column","autocolor","pro"]).states.create("dropFromPrevious",{});xe(l,"fill",e,"negative"),xe(l,"stroke",e,"negative")}r("RoundedRectangle",["rangegrip"]).setAll({strokeOpacity:0,fillOpacity:0,strokeWidth:1,width:12,height:12});{const l=r("Graphics",["rangegrip","button","icon"]);l.setAll({interactive:!1,crisp:!0,strokeOpacity:.5,draw:u=>{u.moveTo(0,.5),u.lineTo(0,12.5),u.moveTo(2,.5),u.lineTo(2,12.5),u.moveTo(4,.5),u.lineTo(4,12.5)}}),xe(l,"stroke",e,"secondaryButtonText")}r("Button",["rangegrip"]).setAll({draggable:!0,paddingTop:0,paddingBottom:0}),r("Button",["rangegrip","vertical"]).setAll({rotation:90,cursorOverStyle:"ns-resize",centerX:He}),r("Button",["rangegrip","horizontal"]).setAll({cursorOverStyle:"ew-resize",centerX:He}),r("Button",["rangegrip","vertical","left"]).setAll({centerY:le}),r("Button",["rangegrip","vertical","right"]).setAll({centerY:0}),r("Button",["rangegrip","horizontal","top"]).setAll({centerY:0}),r("Button",["rangegrip","horizontal","bottom"]).setAll({centerY:le})}}class aa extends fl{constructor(){super(...arguments),Object.defineProperty(this,"xAxes",{enumerable:!0,configurable:!0,writable:!0,value:new qg}),Object.defineProperty(this,"yAxes",{enumerable:!0,configurable:!0,writable:!0,value:new qg}),Object.defineProperty(this,"topAxesContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.chartContainer.children.push(Ee.new(this._root,{width:le,layout:this._root.verticalLayout}))}),Object.defineProperty(this,"yAxesAndPlotContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.chartContainer.children.push(Ee.new(this._root,{width:le,height:le,layout:this._root.horizontalLayout}))}),Object.defineProperty(this,"bottomAxesContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.chartContainer.children.push(Ee.new(this._root,{width:le,layout:this._root.verticalLayout}))}),Object.defineProperty(this,"leftAxesContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.yAxesAndPlotContainer.children.push(Ee.new(this._root,{height:le,layout:this._root.horizontalLayout}))}),Object.defineProperty(this,"plotsContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.yAxesAndPlotContainer.children.push(Ee.new(this._root,{width:le,height:le,maskContent:!1}))}),Object.defineProperty(this,"plotContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.plotsContainer.children.push(Ee.new(this._root,{width:le,height:le}))}),Object.defineProperty(this,"topPlotContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.plotsContainer.children.push(Ee.new(this._root,{width:le,height:le}))}),Object.defineProperty(this,"gridContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.plotContainer.children.push(Ee.new(this._root,{width:le,height:le,isMeasured:!1}))}),Object.defineProperty(this,"topGridContainer",{enumerable:!0,configurable:!0,writable:!0,value:Ee.new(this._root,{width:le,height:le,isMeasured:!1})}),Object.defineProperty(this,"rightAxesContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.yAxesAndPlotContainer.children.push(Ee.new(this._root,{height:le,layout:this._root.horizontalLayout}))}),Object.defineProperty(this,"axisHeadersContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.plotContainer.children.push(Ee.new(this._root,{}))}),Object.defineProperty(this,"zoomOutButton",{enumerable:!0,configurable:!0,writable:!0,value:this.topPlotContainer.children.push(pf.new(this._root,{themeTags:["zoom"],icon:ot.new(this._root,{themeTags:["button","icon"]})}))}),Object.defineProperty(this,"_movePoint",{enumerable:!0,configurable:!0,writable:!0,value:{x:0,y:0}}),Object.defineProperty(this,"_wheelDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_otherCharts",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_movePoints",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_downStartX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_downEndX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_downStartY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_downEndY",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_afterNew(){this._defaultThemes.push(VX.new(this._root)),super._afterNew(),this._disposers.push(this.xAxes),this._disposers.push(this.yAxes);const e=this._root;let t=this._root.verticalLayout;const r=this.zoomOutButton;r.events.on("click",()=>{this.zoomOut()}),r.hide(0),r.states.lookup("default").set("opacity",1),this.chartContainer.set("layout",t);const i=this.plotContainer;i.children.push(this.seriesContainer),this._disposers.push(this._processAxis(this.xAxes,this.bottomAxesContainer)),this._disposers.push(this._processAxis(this.yAxes,this.leftAxesContainer)),i.children.push(this.topGridContainer),i.children.push(this.bulletsContainer),i.set("interactive",!0),i.set("interactiveChildren",!1),i.set("background",Yr.new(e,{themeTags:["xy","background"],fill:be.fromHex(0),fillOpacity:0})),this._disposers.push(i.events.on("pointerdown",s=>{this._handlePlotDown(s)})),this._disposers.push(i.events.on("globalpointerup",s=>{this._handlePlotUp(s)})),this._disposers.push(i.events.on("globalpointermove",s=>{this._handlePlotMove(s)})),this._maskGrid(),this._setUpTouch()}_beforeChanged(){super._beforeChanged(),(this.isDirty("pinchZoomX")||this.isDirty("pinchZoomY")||this.get("panX")||this.get("panY"))&&this._setUpTouch()}_setUpTouch(){this.plotContainer._display.cancelTouch||(this.plotContainer._display.cancelTouch=!!(this.get("pinchZoomX")||this.get("pinchZoomY")||this.get("panX")||this.get("panY")))}_maskGrid(){this.gridContainer.set("maskContent",!0),this.topGridContainer.set("maskContent",!0)}_removeSeries(e){e._unstack(),e._posXDp&&e._posXDp.dispose(),e._posYDp&&e._posYDp.dispose(),e.set("baseAxis",void 0);const t=e.get("xAxis");t&&(oi(t.series,e),t.markDirtyExtremes());const r=e.get("yAxis");r&&(oi(r.series,e),r.markDirtyExtremes());const i=this.get("cursor");if(i){const s=i.get("snapToSeries");s&&oi(s,e)}super._removeSeries(e)}handleWheel(e){const t=this.get("wheelX"),r=this.get("wheelY"),i=this.plotContainer,s=e.originalEvent;if(t1(s,this))s.preventDefault();else return;const a=i.toLocal(e.point),o=this.get("wheelStep",.2),l=s.deltaY/100,u=s.deltaX/100,h=this.get("wheelZoomPositionX"),f=this.get("wheelZoomPositionY");(t==="zoomX"||t==="zoomXY")&&u!=0&&this.xAxes.each(m=>{if(m.get("zoomX")){let g=m.get("start"),y=m.get("end"),v=m.fixPosition(a.x/i.width());h!=null&&(v=h);let x=g-o*(y-g)*u*v,_=y+o*(y-g)*u*(1-v);1/(_-x)<m.getPrivate("maxZoomFactor",1/0)/m.get("minZoomCount",1)&&this._handleWheelAnimation(m.zoom(x,_))}}),(r==="zoomX"||r==="zoomXY")&&l!=0&&this.xAxes.each(m=>{if(m.get("zoomX")){let g=m.get("start"),y=m.get("end"),v=m.fixPosition(a.x/i.width());h!=null&&(v=h);let x=g-o*(y-g)*l*v,_=y+o*(y-g)*l*(1-v);1/(_-x)<m.getPrivate("maxZoomFactor",1/0)/m.get("minZoomCount",1)&&this._handleWheelAnimation(m.zoom(x,_))}}),(t==="zoomY"||t==="zoomXY")&&u!=0&&this.yAxes.each(m=>{if(m.get("zoomY")){let g=m.get("start"),y=m.get("end"),v=m.fixPosition(a.y/i.height());f!=null&&(v=f);let x=g-o*(y-g)*u*v,_=y+o*(y-g)*u*(1-v);1/(_-x)<m.getPrivate("maxZoomFactor",1/0)/m.get("minZoomCount",1)&&this._handleWheelAnimation(m.zoom(x,_))}}),(r==="zoomY"||r==="zoomXY")&&l!=0&&this.yAxes.each(m=>{if(m.get("zoomY")){let g=m.get("start"),y=m.get("end"),v=m.fixPosition(a.y/i.height());f!=null&&(v=f);let x=g-o*(y-g)*l*v,_=y+o*(y-g)*l*(1-v);1/(_-x)<m.getPrivate("maxZoomFactor",1/0)/m.get("minZoomCount",1)&&this._handleWheelAnimation(m.zoom(x,_))}}),(t==="panX"||t==="panXY")&&u!=0&&this.xAxes.each(m=>{if(m.get("panX")){let g=m.get("start"),y=m.get("end"),v=this._getWheelSign(m)*o*(y-g)*u,x=g+v,_=y+v,S=this._fixWheel(x,_);x=S[0],_=S[1],this._handleWheelAnimation(m.zoom(x,_))}}),(r==="panX"||r==="panXY")&&l!=0&&this.xAxes.each(m=>{if(m.get("panX")){let g=m.get("start"),y=m.get("end"),v=this._getWheelSign(m)*o*(y-g)*l,x=g+v,_=y+v,S=this._fixWheel(x,_);x=S[0],_=S[1],this._handleWheelAnimation(m.zoom(x,_))}}),(t==="panY"||t==="panXY")&&u!=0&&this.yAxes.each(m=>{if(m.get("panY")){let g=m.get("start"),y=m.get("end"),v=this._getWheelSign(m)*o*(y-g)*u,x=g+v,_=y+v,S=this._fixWheel(x,_);x=S[0],_=S[1],this._handleWheelAnimation(m.zoom(x,_))}}),(r==="panY"||r==="panXY")&&l!=0&&this.yAxes.each(m=>{if(m.get("panY")){let g=m.get("start"),y=m.get("end"),v=this._getWheelSign(m)*o*(y-g)*l,x=g-v,_=y-v,S=this._fixWheel(x,_);x=S[0],_=S[1],this._handleWheelAnimation(m.zoom(x,_))}})}_handleSetWheel(){const e=this.get("wheelX"),t=this.get("wheelY"),r=this.plotContainer;e!=="none"||t!=="none"?(this._wheelDp=r.events.on("wheel",i=>{const s=i.originalEvent;(e!=="none"&&Math.abs(s.deltaX)!=0||t!=="none"&&Math.abs(s.deltaY)!=0)&&this.handleWheel(i)}),this._disposers.push(this._wheelDp)):this._wheelDp&&this._wheelDp.dispose()}_getWheelSign(e){let t=1;return e.get("renderer").get("inversed")&&(t=-1),t}_fixWheel(e,t){const r=t-e;return e<0&&(e=0,t=e+r),t>1&&(t=1,e=t-r),[e,t]}_handlePlotDown(e){const t=e.originalEvent;if(t.button==2)return;const r=this.plotContainer;let i=r.toLocal(e.point);if((this.get("pinchZoomX")||this.get("pinchZoomY"))&&t.pointerId&&un(r._downPoints).length>0){const a=this.xAxes.getIndex(0),o=this.yAxes.getIndex(0);a&&(this._downStartX=a.get("start",0),this._downEndX=a.get("end",1)),o&&(this._downStartY=o.get("start",0),this._downEndY=o.get("end",1))}if((this.get("panX")||this.get("panY"))&&i.x>=0&&i.y>=0&&i.x<=r.width()&&i.y<=this.height()){this._downPoint={x:t.clientX,y:t.clientY};const s=this.get("panX"),a=this.get("panY");s&&this.xAxes.each(l=>{l._panStart=l.get("start"),l._panEnd=l.get("end")}),a&&this.yAxes.each(l=>{l._panStart=l.get("start"),l._panEnd=l.get("end")});const o="panstarted";this.events.isEnabled(o)&&this.events.dispatch(o,{type:o,target:this,originalEvent:e.originalEvent})}}_handleWheelAnimation(e){e?e.events.on("stopped",()=>{this._dispatchWheelAnimation()}):this._dispatchWheelAnimation()}_dispatchWheelAnimation(){const e="wheelended";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this})}_handlePlotUp(e){const t=this._downPoint;if(t&&(this.get("panX")||this.get("panY"))){let r=this.plotContainer.toLocal(e.point);if(r.x==t.x&&r.y==t.y){const s="pancancelled";this.events.isEnabled(s)&&this.events.dispatch(s,{type:s,target:this,originalEvent:e.originalEvent})}const i="panended";this.events.isEnabled(i)&&this.events.dispatch(i,{type:i,target:this,originalEvent:e.originalEvent})}this._downPoint=void 0,this.xAxes.each(r=>{r._isPanning=!1}),this.yAxes.each(r=>{r._isPanning=!1})}_handlePlotMove(e){const t=this.plotContainer;if(this.get("pinchZoomX")||this.get("pinchZoomY")){const s=e.originalEvent.pointerId;if(s&&(this._movePoints[s]=e.point,un(t._downPoints).length>1)){this._handlePinch();return}}let r=this._downPoint;
103if(r){r=t.toLocal(this._root.documentPointToRoot(r));let i=t.toLocal(e.point);const s=this.get("panX"),a=this.get("panY");if(s){let o=this.get("scrollbarX");o&&o.events.disableType("rangechanged"),this.xAxes.each(l=>{if(l.get("panX")){l._isPanning=!0;let u=l._panStart,h=l._panEnd,m=(h-u)*(r.x-i.x)/t.width();l.get("renderer").get("inversed")&&(m*=-1);let g=u+m,y=h+m;y-g<1+l.get("maxDeviation",1)*2&&(l.set("start",g),l.set("end",y))}}),o&&o.events.enableType("rangechanged")}if(a){let o=this.get("scrollbarY");o&&o.events.disableType("rangechanged"),this.yAxes.each(l=>{if(l.get("panY")){l._isPanning=!0;let u=l._panStart,h=l._panEnd,m=(h-u)*(r.y-i.y)/t.height();l.get("renderer").get("inversed")&&(m*=-1);let g=u-m,y=h-m;y-g<1+l.get("maxDeviation",1)*2&&(l.set("start",g),l.set("end",y))}}),o&&o.events.enableType("rangechanged")}}}_handlePinch(){const e=this.plotContainer;let t=0,r=[],i=[];if(gt(e._downPoints,(s,a)=>{r[t]=a;let o=this._movePoints[s];o&&(i[t]=o),t++}),r.length>1&&i.length>1){const s=e.width(),a=e.height();let o=r[0],l=r[1],u=i[0],h=i[1];if(o&&l&&u&&h){if(u=e.toLocal(u),h=e.toLocal(h),o=e.toLocal(o),l=e.toLocal(l),this.get("pinchZoomX")){const f=this._downStartX,m=this._downEndX;if(f!=null&&m!=null){o.x>l.x&&([o,l]=[l,o],[u,h]=[h,u]);let g=f+o.x/s*(m-f),y=f+l.x/s*(m-f),v=f+u.x/s*(m-f),x=f+h.x/s*(m-f),_=Math.max(.001,y-g),S=Math.max(.001,x-v),w=_/S,k=f*w+g-v*w,P=m*w+y-x*w;this.xAxes.each(j=>{let A=j.fixPosition(k),M=j.fixPosition(P);j.zoom(A,M,0)})}}if(this.get("pinchZoomY")){const f=this._downStartY,m=this._downEndY;if(f!=null&&m!=null){o.y<l.y&&([o,l]=[l,o],[u,h]=[h,u]);let g=f+(1-o.y/a)*(m-f),y=f+(1-l.y/a)*(m-f),v=f+(1-u.y/a)*(m-f),x=f+(1-h.y/a)*(m-f),_=Math.max(.001,y-g),S=Math.max(.001,x-v),w=_/S,k=f*w+g-v*w,P=m*w+y-x*w;this.yAxes.each(j=>{let A=j.fixPosition(k),M=j.fixPosition(P);j.zoom(A,M,0)})}}}}}_handleCursorPosition(){const e=this.get("cursor");if(e){const t=e.getPrivate("point");let r=e.get("snapToSeries");if(e._downPoint&&(r=void 0),r&&t){const i=e.get("snapToSeriesBy"),s=[];Y(r,l=>{if(!l.isHidden()&&!l.isHiding())if(i!="x!"&&i!="y!"){const u=l.startIndex(),h=l.endIndex();for(let f=u;f<h;f++){const m=l.dataItems[f];m&&!m.isHidden()&&s.push(m)}}else{const u=l.get("tooltipDataItem");u&&s.push(u)}});let a=1/0,o;if(Y(s,l=>{const u=l.get("point");if(u){let h=0;i=="x"||i=="x!"?h=Math.abs(t.x-u.x):i=="y"||i=="y!"?h=Math.abs(t.y-u.y):h=Math.hypot(t.x-u.x,t.y-u.y),h<a&&(a=h,o=l)}}),Y(r,l=>{const u=l.get("tooltip");u&&u._setDataItem(void 0)}),o){let l=o.component;l.showDataItemTooltip(o);const u=o.get("point");u&&e.handleMove(l.toGlobal({x:u.x-l.x(),y:u.y-l.y()}),!0)}}}}_updateCursor(){let e=this.get("cursor");e&&e.updateCursor()}_addCursor(e){this.plotContainer.children.push(e)}_prepareChildren(){if(super._prepareChildren(),this.series.each(e=>{this._colorize(e)}),(this.isDirty("wheelX")||this.isDirty("wheelY"))&&this._handleSetWheel(),this.isDirty("cursor")){const e=this._prevSettings.cursor,t=this.get("cursor");t!==e&&(this._disposeProperty("cursor"),e&&e.dispose(),t&&(t._setChart(this),this._addCursor(t),this._pushPropertyDisposer("cursor",t.events.on("selectended",()=>{this._handleCursorSelectEnd()}))),this._prevSettings.cursor=t)}if(this.isDirty("scrollbarX")){const e=this._prevSettings.scrollbarX,t=this.get("scrollbarX");t!==e&&(this._disposeProperty("scrollbarX"),e&&e.dispose(),t&&(t.parent||this.topAxesContainer.children.push(t),this._pushPropertyDisposer("scrollbarX",t.events.on("rangechanged",r=>{this._handleScrollbar(this.xAxes,r.start,r.end,r.grip)})),t.setPrivate("positionTextFunction",r=>{const i=this.xAxes.getIndex(0);return i&&i.getTooltipText(r,!1)||""})),this._prevSettings.scrollbarX=t)}if(this.isDirty("scrollbarY")){const e=this._prevSettings.scrollbarY,t=this.get("scrollbarY");t!==e&&(this._disposeProperty("scrollbarY"),e&&e.dispose(),t&&(t.parent||this.rightAxesContainer.children.push(t),this._pushPropertyDisposer("scrollbarY",t.events.on("rangechanged",r=>{this._handleScrollbar(this.yAxes,r.start,r.end,r.grip)})),t.setPrivate("positionTextFunction",r=>{const i=this.yAxes.getIndex(0);return i&&i.getTooltipText(r,!1)||""})),this._prevSettings.scrollbarY=t)}this._handleZoomOut()}_processSeries(e){super._processSeries(e);const t=e.get("xAxis"),r=e.get("yAxis");ZC(t.series,e),ZC(r.series,e),e._posXDp=e.addDisposer(t.events.on("positionchanged",()=>{e._fixPosition()})),e._posXDp=e.addDisposer(r.events.on("positionchanged",()=>{e._fixPosition()}
103)),e.get("baseAxis")||(r.isType("CategoryAxis")||r.isType("DateAxis")?e.set("baseAxis",r):e.set("baseAxis",t)),e.get("stacked")&&(e._markDirtyKey("stacked"),Y(e.dataItems,i=>{i.set("stackToItemY",void 0),i.set("stackToItemX",void 0)})),e._markDirtyAxes(),r.markDirtyExtremes(),t.markDirtyExtremes(),this._colorize(e)}_colorize(e){const t=this.get("colors");if(t&&e.get("fill")==null){const r=t.next();e._setSoft("stroke",r),e._setSoft("fill",r)}}_handleCursorSelectEnd(){const e=this.get("cursor"),t=e.get("behavior"),r=e.getPrivate("downPositionX",0),i=e.getPrivate("downPositionY",0),s=Math.min(1,Math.max(0,e.getPrivate("positionX",.5))),a=Math.min(1,Math.max(0,e.getPrivate("positionY",.5)));this.xAxes.each(o=>{if(t==="zoomX"||t==="zoomXY"){let l=o.toAxisPosition(r),u=o.toAxisPosition(s);o.zoom(l,u)}o.setPrivate("updateScrollbar",!0)}),this.yAxes.each(o=>{if(t==="zoomY"||t==="zoomXY"){let l=o.toAxisPosition(i),u=o.toAxisPosition(a);o.zoom(l,u)}o.setPrivate("updateScrollbar",!0)})}_handleScrollbar(e,t,r,i){e.each(s=>{let a=s.fixPosition(t),o=s.fixPosition(r),l=s.zoom(a,o,void 0,i);const u="updateScrollbar";s.setPrivateRaw(u,!1),l?l.events.on("stopped",()=>{s.setPrivateRaw(u,!0)}):s.setPrivateRaw(u,!0)})}_processAxis(e,t){return e.events.onAll(r=>{if(r.type==="clear")Y(r.oldValues,i=>{this._removeAxis(i)});else if(r.type==="push")t.children.push(r.newValue),r.newValue.processChart(this);else if(r.type==="setIndex")t.children.setIndex(r.index,r.newValue),r.newValue.processChart(this);else if(r.type==="insertIndex")t.children.insertIndex(r.index,r.newValue),r.newValue.processChart(this);else if(r.type==="removeIndex")this._removeAxis(r.oldValue);else if(r.type==="moveIndex")t.children.moveValue(r.value,r.newIndex),r.value.processChart(this);else throw new Error("Unknown IListEvent type")})}_removeAxis(e){if(!e.isDisposed()){const t=e.parent;t&&t.children.removeValue(e);const r=e.gridContainer,i=r.parent;i&&i.children.removeValue(r);const s=e.topGridContainer,a=s.parent;a&&a.children.removeValue(s)}}_updateChartLayout(){const e=this.leftAxesContainer.width(),t=this.rightAxesContainer.width(),r=this.bottomAxesContainer;r.set("paddingLeft",e),r.set("paddingRight",t);const i=this.topAxesContainer;i.set("paddingLeft",e),i.set("paddingRight",t)}processAxis(e){var t=this.get("cursor");t&&(this.addDisposer(e.on("start",()=>{this._updateCursor()})),this.addDisposer(e.on("end",()=>{this._updateCursor()})))}_handleAxisSelection(e,t){let r=e.fixPosition(e.get("start",0)),i=e.fixPosition(e.get("end",1));if(r>i&&([r,i]=[i,r]),this.xAxes.indexOf(e)!=-1){if(t||e.getPrivate("updateScrollbar")){let s=this.get("scrollbarX");s&&(!s.getPrivate("isBusy")||t)&&(s.setRaw("start",r),s.setRaw("end",i),s.updateGrips())}}else if(this.yAxes.indexOf(e)!=-1&&(t||e.getPrivate("updateScrollbar"))){let s=this.get("scrollbarY");s&&(!s.getPrivate("isBusy")||t)&&(s.setRaw("start",r),s.setRaw("end",i),s.updateGrips())}this._handleZoomOut()}_handleZoomOut(){let e=this.zoomOutButton;if(e&&e.parent){let t=!1;this.xAxes.each(r=>{(r.get("start")!=0||r.get("end")!=1)&&(t=!0)}),this.yAxes.each(r=>{(r.get("start")!=0||r.get("end")!=1)&&(t=!0)}),t?e.isHidden()&&e.show():e.hide()}}inPlot(e){const t=this.plotContainer,r=this.getPrivate("otherCharts",this._otherCharts),i=t.toGlobal(e);if(e.x>=-.5&&e.y>=-.5&&e.x<=t.width()+.5&&e.y<=t.height()+.5)return!0;if(r)for(let s=r.length-1;s>=0;s--){const a=r[s];if(a!=this){const o=a.plotContainer,l=this._root.rootPointToDocument(i),u=a._root.documentPointToRoot(l),h=o.toLocal(u);if(h.x>=-.1&&h.y>=-.1&&h.x<=o.width()+.1&&h.y<=o.height()+.1)return!0}}return!1}arrangeTooltips(){const e=this.plotContainer,t=e.width(),r=e.height(),i=this.height();let s=e._display.toGlobal({x:0,y:0}),a=e._display.toGlobal({x:t,y:r});const o=[];let l=0,u=1/0,h=this._movePoint,f=this.get("maxTooltipDistance"),m=this.get("maxTooltipDistanceBy","xy"),g,y;q(f)&&this.series.each(x=>{if(!x.isHidden()){const _=x.get("tooltip");if(_){let S=_.get("pointTo");if(S){let w=Math.hypot(h.x-S.x,h.y-S.y);m=="x"?w=Math.abs(h.x-S.x):m=="y"&&(w=Math.abs(h.y-S.y)),w<u&&(u=w,g=x,y=S)}}}});const v=[];
103if(this.series.each(x=>{const _=x.get("tooltip");if(_&&!_.get("forceHidden")){let S=!1,w=_.get("pointTo");if(w){if(f>=0){let k=_.get("pointTo");if(k&&y&&x!=g){let P=Math.hypot(y.x-k.x,y.y-k.y);m=="x"?P=Math.abs(y.x-k.x):m=="y"&&(P=Math.abs(y.y-k.y)),P>f&&(S=!0)}}else f==-1&&x!=g&&(S=!0);!this.inPlot(this._tooltipToLocal(w))||!_.dataItem?S=!0:S||(l+=w.y),S||x.isHidden()||x.isHiding()?_.hide(0):(_.show(),o.push(_),v.push(x))}}}),this.setPrivate("tooltipSeries",v),this.get("arrangeTooltips")){const x=this._root.tooltipContainer,_=o.length;if(l/_>r/2+s.y){o.sort((k,P)=>aE(P.get("pointTo").y,k.get("pointTo").y));let w=a.y;if(Y(o,k=>{let P=k.height(),j=k.get("centerY");j instanceof $e&&(P*=j.value),P+=k.get("marginBottom",0),k.set("bounds",{left:s.x,top:s.y,right:a.x,bottom:w}),k.setPrivate("customData",{left:s.x,top:s.y,right:a.x,bottom:w}),w=Math.min(w-P,k._fy-P),k.parent==x&&x.children.moveValue(k,0)}),w<0){o.reverse();let k=w;Y(o,P=>{let j=P.get("bounds");if(j){let A=j.top-w,M=j.bottom-w;A<k&&(A=k,M=A+P.height()),P.set("bounds",{left:j.left,top:A,right:j.right,bottom:M}),k=j.bottom-w+P.get("marginBottom",0)}})}}else{o.reverse(),o.sort((k,P)=>aE(k.get("pointTo").y,P.get("pointTo").y));let w=0;if(Y(o,k=>{let P=k.height(),j=k.get("centerY");j instanceof $e&&(P*=j.value),P+=k.get("marginBottom",0),k.set("bounds",{left:s.x,top:w,right:a.x,bottom:Math.max(s.y+i,w+P)}),k.parent==x&&x.children.moveValue(k,0),w=Math.max(w+P,k._fy+P)}),w>i){o.reverse();let k=i;Y(o,P=>{let j=P.get("bounds");if(j){let A=j.top-(i-w),M=j.bottom-(i-w);M>k&&(M=k,A=M-P.height()),P.set("bounds",{left:j.left,top:A,right:j.right,bottom:M}),k=M-P.height()-P.get("marginBottom",0)}})}}}}_tooltipToLocal(e){return this.plotContainer.toLocal(e)}zoomOut(){this.xAxes.each(e=>{e.setPrivate("updateScrollbar",!0),e.zoom(0,1)}),this.yAxes.each(e=>{e.setPrivate("updateScrollbar",!0),e.zoom(0,1)})}}Object.defineProperty(aa,"className",{enumerable:!0,configurable:!0,writable:!0,value:"XYChart"});Object.defineProperty(aa,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:fl.classNames.concat([aa.className])});class ec extends ot{_beforeChanged(){super._beforeChanged(),(this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}}Object.defineProperty(ec,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Grid"});Object.defineProperty(ec,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:ot.classNames.concat([ec.className])});class oa extends Ee{constructor(){super(...arguments),Object.defineProperty(this,"lineX",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(ec.new(this._root,{themeTags:["x"]}))}),Object.defineProperty(this,"lineY",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(ec.new(this._root,{themeTags:["y"]}))}),Object.defineProperty(this,"selection",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(ot.new(this._root,{themeTags:["selection","cursor"],layer:30}))}),Object.defineProperty(this,"_movePoint",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_lastPoint",{enumerable:!0,configurable:!0,writable:!0,value:{x:0,y:0}}),Object.defineProperty(this,"_tooltipX",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_tooltipY",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"chart",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_toX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_toY",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_afterNew(){this._settings.themeTags=ht(this._settings.themeTags,["xy","cursor"]),super._afterNew(),this.setAll({width:le,height:le,isMeasured:!0,position:"absolute"}),this.states.create("hidden",{visible:!0,opacity:0}),this._drawLines(),this.setPrivateRaw("visible",!1),this._disposers.push(this.setTimeout(()=>{this.setPrivate("visible",!0)},500)),this._disposers.push(this.lineX.events.on("positionchanged",()=>{this._handleXLine()})),this._disposers.push(this.lineY.events.on("positionchanged",()=>{this._handleYLine()})),this._disposers.push(this.lineX.events.on("focus",e=>this._handleLineFocus(e.target))),this._disposers.push(this.lineX.events.on("blur",e=>this._handleLineBlur(e.target))),this._disposers.push(this.lineY.events.on("focus",e=>this._handleLineFocus(e.target))),this._disposers.push(this.lineY.events.on("blur",e=>this._handleLineBlur(e.target))),Xs("keyboardevents")&&this._disposers.push($t(document,"keydown",e=>{this._handleLineMove(e.keyCode)}
103))}_setUpTouch(){const e=this.chart;e&&(e.plotContainer._display.cancelTouch=this.get("behavior")!="none")}_handleXLine(){let e=this.lineX.x(),t=!0;(e<0||e>this.width())&&(t=!1),this.lineX.setPrivate("visible",t)}_handleYLine(){let e=this.lineY.y(),t=!0;(e<0||e>this.height())&&(t=!1),this.lineY.setPrivate("visible",t)}_handleLineMove(e){let t="",r=0,i=.1;const s=this.chart;this._root.focused(this.lineX)?(s&&s.xAxes.length&&(i=s.xAxes.getIndex(0).getCellWidthPosition()),r=this.getPrivate("positionX",0),t="positionX",e==37?r-=i:e==39&&(r+=i)):this._root.focused(this.lineY)&&(s&&s.yAxes.length&&(i=s.yAxes.getIndex(0).getCellWidthPosition()),r=this.getPrivate("positionY",0),t="positionY",e==38?r-=i:e==40&&(r+=i)),r<0?r=0:r>1&&(r=1),t!=""&&this.set(t,r)}_handleLineFocus(e){this.setAll({positionX:this.getPrivate("positionX"),positionY:this.getPrivate("positionY"),alwaysShow:!0})}_handleLineBlur(e){this.setAll({positionX:void 0,positionY:void 0,alwaysShow:!1})}_prepareChildren(){if(super._prepareChildren(),this.isDirty("xAxis")){this._tooltipX=!1;const e=this.get("xAxis");if(e){const t=e.get("tooltip");t&&(this._tooltipX=!0,this._disposers.push(t.on("pointTo",()=>{this._updateXLine(t)})))}}if(this.isDirty("yAxis")){this._tooltipY=!1;const e=this.get("yAxis");if(e){const t=e.get("tooltip");t&&(this._tooltipY=!0,this._disposers.push(t.on("pointTo",()=>{this._updateYLine(t)})))}}}_handleSyncWith(){const e=this.chart;if(e){const t=this.get("syncWith"),r=[];t&&Y(t,i=>{const s=i.chart;s&&r.push(s)}),e._otherCharts=r}}_updateChildren(){if(super._updateChildren(),this._handleSyncWith(),this.isDirty("positionX")||this.isDirty("positionY")){const e=this.get("positionX"),t=this.get("positionY");e==null&&t==null?this.hide(0):(this._movePoint=this.toGlobal(this._getPoint(this.get("positionX",0),this.get("positionY",0))),this.handleMove())}}_updateXLine(e){let t=An(this._display.toLocal(e.get("pointTo",{x:0,y:0})).x,2);this._toX!=t&&(this.lineX.animate({key:"x",to:t,duration:e.get("animationDuration",0),easing:e.get("animationEasing")}),this._toX=t)}_updateYLine(e){let t=An(this._display.toLocal(e.get("pointTo",{x:0,y:0})).y,2);this._toY!=t&&(this.lineY.animate({key:"y",to:t,duration:e.get("animationDuration",0),easing:e.get("animationEasing")}),this._toY=t)}_drawLines(){this.lineX.set("draw",e=>{e.moveTo(0,0),e.lineTo(0,this.height())}),this.lineY.set("draw",e=>{e.moveTo(0,0),e.lineTo(this.width(),0)})}updateCursor(){this.get("alwaysShow")&&(this._movePoint=this.toGlobal(this._getPoint(this.get("positionX",0),this.get("positionY",0)))),this.handleMove()}_setChart(e){this.chart=e,this._handleSyncWith();const t=e.plotContainer;this.events.on("boundschanged",()=>{this._disposers.push(this.setTimeout(()=>{this.updateCursor()},50))}),Xs("touchevents")&&(this._disposers.push(t.events.on("click",i=>{nx(i.originalEvent)&&this._handleMove(i)})),this._setUpTouch()),this._disposers.push(t.events.on("pointerdown",i=>{this._handleCursorDown(i)})),this._disposers.push(t.events.on("globalpointerup",i=>{this._handleCursorUp(i),!i.native&&!this.isHidden()&&this._handleMove(i)})),this._disposers.push(t.events.on("globalpointermove",i=>{!this.get("syncWith")&&un(t._downPoints).length==0&&!i.native&&this.isHidden()||this._handleMove(i)}));const r=this.parent;r&&r.children.moveValue(this.selection)}_inPlot(e){const t=this.chart;return t?t.inPlot(e):!1}_handleCursorDown(e){if(e.originalEvent.button==2)return;const t=e.point;let r=this._display.toLocal(t);const i=this.chart;if(this.selection.set("draw",()=>{}),i&&this._inPlot(r)){if(this._downPoint=r,this.get("behavior")!="none"){this.selection.show();const o="selectstarted";this.events.isEnabled(o)&&this.events.dispatch(o,{type:o,target:this,originalEvent:e.originalEvent})}let s=this._getPosition(r).x,a=this._getPosition(r).y;this.setPrivate("downPositionX",s),this.setPrivate("downPositionY",a)}}_handleCursorUp(e){if(this._downPoint){const t=this.get("behavior","none");if(t!="none"){t.charAt(0)==="z"&&this.selection.hide();const r=e.point;let i=this._display.toLocal(r);const s=this._downPoint,a=this.get("moveThreshold",1);if(i&&s){let o=!1;if((t==="zoomX"||t==="zoomXY"||t==="selectX"||t==="selectXY")&&Math.abs(i.x-s.x)>a&&(o=!0),(t==="zoomY"||t==="zoomXY"||t==="selectY"||t==="selectXY")&&Math.abs(i.y-s.y)>a&&(o=!0),o){const l="selectended";this.events.isEnabled(l)&&this.events.dispatch(l,{type:l,target:this,originalEvent:e.originalEvent})}else{const l="selectcancelled";this.events.isEnabled(l)&&this.events.dispatch(l,{type:l,target:this,originalEvent:e.originalEvent})}}}}this._downPoint=void 0}_handleMove(e){if(this.getPrivate("visible")){const t=this.chart;if(t&&un(t.plotContainer._downPoints).length>1){this.set("forceHidden",!0);return}else this.set("forceHidden",!1);const r=e.point,i=this._lastPoint;if(Math.round(i.x)===Math.round(r.x)&&Math.round(i.y)===Math.round(r.y))return;this._lastPoint=r,this.setPrivate("lastPoint",r),this.handleMove({x:r.x,y:r.y},!1,e.originalEvent)}}_getPosition(e){return{x:e.x/this.width(),y:e.y/this.height()}}handleMove(e,t,r){e||(e=this._movePoint);const i=this.get("alwaysShow");if(!e){this.hide(0);return}this._movePoint=e;let s=this._display.toLocal(e),a=this.chart;if(a&&(this._inPlot(s)||this._downPoint)){a._movePoint=e,this.isHidden()&&(this.show(),this.get("behavior","").charAt(0)=="z"&&this.selection.set("draw",()=>{}));let o=s.x,l=s.y,u=this._getPosition(s);this.setPrivate("point",s);let h=this.get("snapToSeries");this._downPoint&&(h=void 0);let f=this.get("positionX"),m=u.x;q(f)&&(m=f);let g=this.get("positionY"),y=u.y;q(g)&&(y=g),this.setPrivate("positionX",m),this.setPrivate("positionY",y);const v=this._getPoint(m,y);if(o=v.x,l=v.y,a.xAxes.each(x=>{x._handleCursorPosition(m,h),i&&x.handleCursorShow()}),a.yAxes.each(x=>{x._handleCursorPosition(y,h),i&&x.handleCursorShow()}),!t){a._handleCursorPosition();const x="cursormoved";
103this.events.isEnabled(x)&&this.events.dispatch(x,{type:x,target:this,point:e,originalEvent:r})}this._updateLines(o,l),a.arrangeTooltips()}else if(!this._downPoint&&!i){this.hide(0);const o="cursorhidden";this.events.isEnabled(o)&&this.events.dispatch(o,{type:o,target:this})}this._downPoint&&this.get("behavior")!="none"&&this._updateSelection(s)}_getPoint(e,t){return{x:this.width()*e,y:this.height()*t}}_updateLines(e,t){this._tooltipX||this.lineX.set("x",e),this._tooltipY||this.lineY.set("y",t),this._drawLines()}_updateSelection(e){const t=this.selection,r=this.get("behavior"),i=this.width(),s=this.height();e.x<0&&(e.x=0),e.x>i&&(e.x=i),e.y<0&&(e.y=0),e.y>s&&(e.y=s),t.set("draw",a=>{const o=this._downPoint;o&&(r==="zoomXY"||r==="selectXY"?(a.moveTo(o.x,o.y),a.lineTo(o.x,e.y),a.lineTo(e.x,e.y),a.lineTo(e.x,o.y),a.lineTo(o.x,o.y)):r==="zoomX"||r==="selectX"?(a.moveTo(o.x,0),a.lineTo(o.x,s),a.lineTo(e.x,s),a.lineTo(e.x,0),a.lineTo(o.x,0)):(r==="zoomY"||r==="selectY")&&(a.moveTo(0,o.y),a.lineTo(i,o.y),a.lineTo(i,e.y),a.lineTo(0,e.y),a.lineTo(0,o.y)))})}_onHide(){if(this.isHidden()){let e=this.chart;e&&(e.xAxes.each(t=>{t.handleCursorHide()}),e.yAxes.each(t=>{t.handleCursorHide()}),e.series.each(t=>{t.handleCursorHide()}))}super._onHide()}_onShow(){if(!this.isHidden()){let e=this.chart;e&&(e.xAxes.each(t=>{t.handleCursorShow()}),e.yAxes.each(t=>{t.handleCursorShow()}))}super._onShow()}_dispose(){super._dispose(),this.selection.dispose()}}Object.defineProperty(oa,"className",{enumerable:!0,configurable:!0,writable:!0,value:"XYCursor"});Object.defineProperty(oa,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:Ee.classNames.concat([oa.className])});function YX(n,e){return n==null?e:e==null?n:e<n?e:n}function HX(n,e){return n==null?e:e==null?n:e>n?e:n}class hl extends dl{constructor(){super(...arguments),Object.defineProperty(this,"_xField",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_yField",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_xOpenField",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_yOpenField",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_xLowField",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_xHighField",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_yLowField",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_yHighField",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_axesDirty",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_stackDirty",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_selectionProcessed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_dataSets",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_mainContainerMask",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_x",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_y",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_bullets",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"mainContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(Ee.new(this._root,{}))}),Object.defineProperty(this,"axisRanges",{enumerable:!0,configurable:!0,writable:!0,value:new wc}),Object.defineProperty(this,"_skipped",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_couldStackTo",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_reallyStackedTo",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_stackedSeries",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_aLocationX0",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_aLocationX1",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"_aLocationY0",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_aLocationY1",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"_showBullets",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"valueXFields",{enumerable:!0,configurable:!0,writable:!0,value:["valueX","openValueX","lowValueX","highValueX"]}),Object.defineProperty(this,"valueYFields",{enumerable:!0,configurable:!0,writable:!0,value:["valueY","openValueY","lowValueY","highValueY"]}),Object.defineProperty(this,"_valueXFields",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_valueYFields",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_valueXShowFields",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_valueYShowFields",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"__valueXShowFields",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"__valueYShowFields",{enumerable:!0,configurable:!0,writable:!0,value:void 0}
103),Object.defineProperty(this,"_emptyDataItem",{enumerable:!0,configurable:!0,writable:!0,value:new Ri(this,void 0,{})}),Object.defineProperty(this,"_dataSetId",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_tooltipFieldX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_tooltipFieldY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_posXDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_posYDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_afterNew(){this.fields.push("categoryX","categoryY","openCategoryX","openCategoryY"),this.valueFields.push("valueX","valueY","openValueX","openValueY","lowValueX","lowValueY","highValueX","highValueY"),this._setRawDefault("vcx",1),this._setRawDefault("vcy",1),this._setRawDefault("valueXShow","valueXWorking"),this._setRawDefault("valueYShow","valueYWorking"),this._setRawDefault("openValueXShow","openValueXWorking"),this._setRawDefault("openValueYShow","openValueYWorking"),this._setRawDefault("lowValueXShow","lowValueXWorking"),this._setRawDefault("lowValueYShow","lowValueYWorking"),this._setRawDefault("highValueXShow","highValueXWorking"),this._setRawDefault("highValueYShow","highValueYWorking"),this._setRawDefault("lowValueXGrouped","low"),this._setRawDefault("lowValueYGrouped","low"),this._setRawDefault("highValueXGrouped","high"),this._setRawDefault("highValueYGrouped","high"),super._afterNew(),this.set("maskContent",!0),this._disposers.push(this.axisRanges.events.onAll(e=>{if(e.type==="clear")Y(e.oldValues,t=>{this._removeAxisRange(t)});else if(e.type==="push")this._processAxisRange(e.newValue);else if(e.type==="setIndex")this._processAxisRange(e.newValue);else if(e.type==="insertIndex")this._processAxisRange(e.newValue);else if(e.type==="removeIndex")this._removeAxisRange(e.oldValue);else if(e.type==="moveIndex")this._processAxisRange(e.value);else throw new Error("Unknown IStreamEvent type")})),this.states.create("hidden",{opacity:1,visible:!1}),this._makeFieldNames()}_processAxisRange(e){const t=Ee.new(this._root,{});e.container=t,this.children.push(t),e.series=this;const r=e.axisDataItem;r.setRaw("isRange",!0);const i=r.component;if(i){i._processAxisRange(r,["range","series"]);const s=r.get("bullet");if(s){const o=s.get("sprite");o&&o.setPrivate("visible",!1)}const a=r.get("axisFill");a&&t.set("mask",a),i._seriesAxisRanges.push(r)}}_removeAxisRange(e){const t=e.axisDataItem,r=t.component;r.disposeDataItem(t),oi(r._seriesAxisRanges,t);const i=e.container;i&&i.dispose()}_updateFields(){super._updateFields(),this._valueXFields=[],this._valueYFields=[],this._valueXShowFields=[],this._valueYShowFields=[],this.__valueXShowFields=[],this.__valueYShowFields=[],this.valueXFields&&Y(this.valueXFields,e=>{if(this.get(e+"Field")){this._valueXFields.push(e);let r=this.get(e+"Show");this.__valueXShowFields.push(r),r.indexOf("Working")!=-1?this._valueXShowFields.push(r.split("Working")[0]):this._valueXShowFields.push(r)}}),this.valueYFields&&Y(this.valueYFields,e=>{if(this.get(e+"Field")){this._valueYFields.push(e);let r=this.get(e+"Show");this.__valueYShowFields.push(r),r.indexOf("Working")!=-1?this._valueYShowFields.push(r.split("Working")[0]):this._valueYShowFields.push(r)}})}_dispose(){super._dispose(),this._bullets={};const e=this.chart;e&&e.series.removeValue(this),Jn(this.get("xAxis").series,this),Jn(this.get("yAxis").series,this)}_min(e,t){let r=YX(this.getPrivate(e),t);this.setPrivate(e,r)}_max(e,t){let r=HX(this.getPrivate(e),t);this.setPrivate(e,r)}_shouldMakeBullet(e){const t=this.get("xAxis"),r=this.get("yAxis"),i=this.get("baseAxis");if(!t.inited||!r.inited)return!1;const s=this.get("minBulletDistance",0);if(s>0){let a=this.startIndex(),l=this.endIndex()-a;if(t==i){if(t.get("renderer").axisLength()/l<s/5)return!1}else if(r==i&&r.get("renderer").axisLength()/l<s/5)return!1}return e.get(this._xField)!=null&&e.get(this._yField)!=null}_makeFieldNames(){const e=this.get("xAxis"),t=this.get("yAxis"),r=e.getPrivate("name"),i=nE(r),s=t.getPrivate("name"),a=nE(s),o=e.get("renderer").getPrivate("letter"),l=t.get("renderer").getPrivate("letter"),u="open",h="low",f="high",m="Show";e.className==="ValueAxis"?(this._xField=this.get(r+o+m),this._xOpenField=this.get(u+i+o+m),this._xLowField=this.get(h+i+o+m),this._xHighField=this.get(f+i+o+m)):(this._xField=r+o,this._xOpenField=u+i+o,this._xLowField=h+i+o,this._xHighField=f+i+o),t.className==="ValueAxis"?(this._yField=this.get(s+l+m),this._yOpenField=this.get(u+a+l+m),this._yLowField=this.get(h+a+l+m),this._yHighField=this.get(f+a+l+m)):(this._yField=s+l,this._yOpenField=u+a+l,this._yLowField=h+a+l,this._yHighField=f+a+l)}_fixVC(){const e=this.get("xAxis"),t=this.get("yAxis"),r=this.get("baseAxis"),i=this.states.lookup("hidden"),s=this.get("sequencedInterpolation");if(i){let a=0;
vendor: 2,628 bytes, line 103
103s&&(a=.999999999999),e===r?i.set("vcy",a):(t===r||i.set("vcy",a),i.set("vcx",a))}}_handleMaskBullets(){this.isDirty("maskBullets")&&this.bulletsContainer.set("maskContent",this.get("maskBullets"))}_fixPosition(){const e=this.get("xAxis"),t=this.get("yAxis");this.set("x",e.x()-Vt(e.get("centerX",0),e.width())-e.parent.get("paddingLeft",0)),this.set("y",t.y()-Vt(t.get("centerY",0),t.height())-t.parent.get("paddingTop",0)),this.bulletsContainer.set("y",this.y()),this.bulletsContainer.set("x",this.x())}_prepareChildren(){super._prepareChildren(),this._bullets={},(this.isDirty("valueYShow")||this.isDirty("valueXShow")||this.isDirty("openValueYShow")||this.isDirty("openValueXShow")||this.isDirty("lowValueYShow")||this.isDirty("lowValueXShow")||this.isDirty("highValueYShow")||this.isDirty("highValueXShow"))&&(this._updateFields(),this._makeFieldNames(),this._valuesDirty=!0),(this.isDirty("xAxis")||this.isDirty("yAxis"))&&(this._valuesDirty=!0),this.set("width",this.get("xAxis").width()),this.set("height",this.get("yAxis").height()),this._handleMaskBullets();const e=this.get("xAxis"),t=this.get("yAxis"),r=this.get("baseAxis"),i=this.get("tooltipPositionX");let s;switch(i){case"open":s=this._xOpenField;break;case"low":s=this._xLowField;break;case"high":s=this._xHighField;break;default:s=this._xField}this._tooltipFieldX=s;const a=this.get("tooltipPositionY");let o;switch(a){case"open":o=this._yOpenField;break;case"low":o=this._yLowField;break;case"high":o=this._yHighField;break;default:o=this._yField}this._tooltipFieldY=o,this.isDirty("baseAxis")&&this._fixVC(),this._fixPosition();const l=this.get("stacked");if(this.isDirty("stacked")&&(l?this._valuesDirty&&!this._dataProcessed||this._stack():this._unstack()),this._valuesDirty&&!this._dataProcessed&&(this._dataProcessed=!0,l&&this._stack(),Y(this.dataItems,u=>{Y(this._valueXShowFields,h=>{let f=u.get(h);f!=null&&(l&&(f+=this.getStackedXValue(u,h)),this._min("minX",f),this._max("maxX",f))}),Y(this._valueYShowFields,h=>{let f=u.get(h);f!=null&&(l&&(f+=this.getStackedYValue(u,h)),this._min("minY",f),this._max("maxY",f))}),e.processSeriesDataItem(u,this._valueXFields),t.processSeriesDataItem(u,this._valueYFields)}),e._seriesValuesDirty=!0,t._seriesValuesDirty=!0,this.get("ignoreMinMax")||((this.isPrivateDirty("minX")||this.isPrivateDirty("maxX"))&&e.markDirtyExtremes(),(this.isPrivateDirty("minY")||this.isPrivateDirty("maxY"))&&t.markDirtyExtremes()),this._markStakedDirtyStack(),this.get("tooltipDataItem")||this.updateLegendValue(void 0)),(this.isDirty("vcx")||this.isDirty("vcy"))&&this._markStakedDirtyStack(),this._dataGrouped||(e._groupSeriesD
103ata(this),t._groupSeriesData(this),this._dataGrouped=!0),this._valuesDirty||this.isPrivateDirty("startIndex")||this.isPrivateDirty("endIndex")||this.isDirty("vcx")||this.isDirty("vcy")||this._stackDirty){let u=this.startIndex(),h=this.endIndex(),f=this.get("minBulletDistance",0);if(f>0&&r&&(r.get("renderer").axisLength()/(h-u)>f?this._showBullets=!0:this._showBullets=!1),(this._psi!=u||this._pei!=h||this.isDirty("vcx")||this.isDirty("vcy")||this._stackDirty||this._valuesDirty)&&!this._selectionProcessed){this._selectionProcessed=!0;const m=this.get("vcx",1),g=this.get("vcy",1),y=this.get("stacked",!1),v=this.getPrivate("outOfSelection");if(r===e||!r)if(t._calculateTotals(),this.setPrivateRaw("selectionMinY",void 0),this.setPrivateRaw("selectionMaxY",void 0),v)t.markDirtySelectionExtremes();else for(let x=u;x<h;x++)this.processYSelectionDataItem(this.dataItems[x],g,y);if(r===t||!r)if(e._calculateTotals(),this.setPrivateRaw("selectionMinX",void 0),this.setPrivateRaw("selectionMaxX",void 0),v)t.markDirtySelectionExtremes();else for(let x=u;x<h;x++)this.processXSelectionDataItem(this.dataItems[x],m,y);if((r===e||!r)&&this.get("valueYShow")!=="valueYWorking"){const x=this.getPrivate("selectionMinY");x!=null&&(this.setPrivateRaw("minY",x),t.markDirtyExtremes());const _=this.getPrivate("selectionMaxY");_!=null&&(this.setPrivateRaw("maxY",_),t.markDirtyExtremes())}if((r===t||!r)&&this.get("valueXShow")!=="valueXWorking"){const x=this.getPrivate("selectionMinX");x!=null&&(this.setPrivateRaw("minX",x),t.markDirtyExtremes());const _=this.getPrivate("selectionMaxX");_!=null&&(this.setPrivateRaw("maxX",_),e.markDirtyExtremes())}(this.isPrivateDirty("selectionMinX")||this.isPrivateDirty("selectionMaxX"))&&e.markDirtySelectionExtremes(),(this.isPrivateDirty("selectionMinY")||this.isPrivateDirty("selectionMaxY"))&&t.markDirtySelectionExtremes()}}}_makeRangeMask(){if(this.axisRanges.length>0){let e=this._mainContainerMask;e==null&&(e=this.children.push(ot.new(this._root,{})),this._mainContainerMask=e,e.set("draw",(t,r)=>{const i=this.parent;if(i){const s=this._root.container.width(),a=this._root.container.height();t.moveTo(-s,-a),t.lineTo(-s,a*2),t.lineTo(s*2,a*2),t.lineTo(s*2,-a),t.lineTo(-s,-a),this.axisRanges.each(o=>{const l=o.axisDataItem.get("axisFill");if(i&&l){let u=l.get("draw");u&&u(t,r)}})}this.mainContainer._display.mask=e._display})),e.markDirty(),e._markDirtyKey("fill")}else this.mainContainer._display.mask=null}_updateChildren(){super._updateChildren(),this._x=this.x(),this._y=this.y(),this._makeRangeMask()}_stack(){const e=this.chart;if(e){const t=e.series.indexOf(this);if(this._couldStackTo=[],t>0){let r;for(let i=t-1;i>=0&&(r=e.series.getIndex(i),!(r.get("xAxis")===this.get("xAxis")&&r.get("yAxis")===this.get("yAxis")&&r.className===this.className&&(this._couldStackTo.push(r),!r.get("stacked"))));i--);}this._stackDataItems()}}_unstack(){gt(this._reallyStackedTo,(e,t)=>{delete t._stackedSeries[this.uid]}),this._reallyStackedTo={},Y(this.dataItems,e=>{e.setRaw("stackToItemY",void 0),e.setRaw("stackToItemX",void 0)})}_stackDataItems(){const e=this.get("baseAxis"),t=this.get("xAxis"),r=this.get("yAxis");let i,s;e===t?(i="valueY",s="stackToItemY"):e===r&&(i="valueX",s="stackToItemX");let a=this._couldStackTo.length,o=0;const l=this.get("stackToNegative");this._reallyStackedTo={},Y(this.dataItems,u=>{for(let h=0;h<a;h++){let f=this._couldStackTo[h],m=f.dataItems[o],g=u.get(i);if(m){let y=m.get(i);if(l)if(q(g)){if(q(y)){if(g>=0&&y>=0){u.setRaw(s,m),this._reallyStackedTo[f.uid]=f,f._stackedSeries[this.uid]=this;break}if(g<0&&y<0){u.setRaw(s,m),this._reallyStackedTo[f.uid]=f,f._stackedSeries[this.uid]=this;break}}}else break;else if(q(g)&&q(y)){u.setRaw(s,m),this._reallyStackedTo[f.uid]=f,f._stackedSeries[this.uid]=this;break}}}o++})}processXSelectionDataItem(e,t,r){Y(this.__valueXShowFields,i=>{let s=e.get(i);s!=null&&(r&&(s+=this.getStackedXValueWorking(e,i)),this._min("selectionMinX",s),this._max("selectionMaxX",s*t))})}processYSelectionDataItem(e,t,r){Y(this.__valueYShowFields,i=>{let s=e.get(i);s!=null&&(r&&(s+=this.getStackedYValueWorking(e,i)),this._min("selectionMinY",s),this._max("selectionMaxY",s*t))})}getStackedYValueWorking(e,t){const r=e.get("stackToItemY");
103if(r){const i=r.component;return r.get(t,0)*i.get("vcy",1)+this.getStackedYValueWorking(r,t)}return 0}getStackedXValueWorking(e,t){const r=e.get("stackToItemX");if(r){const i=r.component;return r.get(t,0)*i.get("vcx",1)+this.getStackedXValueWorking(r,t)}return 0}getStackedYValue(e,t){const r=e.get("stackToItemY");return r?r.get(t,0)+this.getStackedYValue(r,t):0}getStackedXValue(e,t){const r=e.get("stackToItemX");return r?r.get(t,0)+this.getStackedXValue(r,t):0}createLegendMarker(e){this.updateLegendMarker()}_markDirtyAxes(){this._axesDirty=!0,this.markDirty()}_markDataSetDirty(){this._afterDataChange(),this._valuesDirty=!0,this._dataProcessed=!1,this._aggregatesCalculated=!1,this.markDirty()}_clearDirty(){super._clearDirty(),this._axesDirty=!1,this._selectionProcessed=!1,this._stackDirty=!1,this._dataProcessed=!1}_positionBullet(e){let t=e.get("sprite");if(t){let r=t.dataItem,i=e.get("locationX",r.get("locationX",.5)),s=e.get("locationY",r.get("locationY",.5)),a=this.get("xAxis"),o=this.get("yAxis"),l=a.getDataItemPositionX(r,this._xField,i,this.get("vcx",1)),u=o.getDataItemPositionY(r,this._yField,s,this.get("vcy",1)),h=this.getPoint(l,u),f=r.get("left",h.x),m=r.get("right",h.x),g=r.get("top",h.y),y=r.get("bottom",h.y),v=0,x=0,_=m-f,S=y-g;if(this._shouldShowBullet(l,u)){t.setPrivate("visible",!e.getPrivate("hidden"));let w=e.get("field");const k=this.get("baseAxis"),P=this.get("xAxis"),j=this.get("yAxis");if(w!=null){let M;k==P?(w=="value"?M=this._yField:w=="open"?M=this._yOpenField:w=="high"?M=this._yHighField:w=="low"&&(M=this._yLowField),M&&(u=j.getDataItemPositionY(r,M,0,this.get("vcy",1)),h=j.get("renderer").positionToPoint(u),x=h.y,v=f+_*i)):(w=="value"?M=this._xField:w=="open"?M=this._xOpenField:w=="high"?M=this._xHighField:w=="low"&&(M=this._xLowField),M&&(l=P.getDataItemPositionX(r,M,0,this.get("vcx",1)),h=P.get("renderer").positionToPoint(l),v=h.x,x=y-S*s))}else v=f+_*i,x=y-S*s;const A=e.get("stacked");if(A){const M=this.chart;if(k==P){let L=this._bullets[l+"_"+u];if(L){let I=L.bounds(),V=t.localBounds(),Q=x;x=I.top,A=="down"?x=I.bottom-V.top:A=="auto"?M&&(Q<M.plotContainer.height()/2?x=I.bottom-V.top:x+=V.bottom):x+=V.bottom}this._bullets[l+"_"+u]=t}else{let L=this._bullets[l+"_"+u];if(L){let I=L.bounds(),V=t.localBounds(),Q=v;v=I.right,A=="down"?v=I.left-V.right:A=="auto"?M&&(Q<M.plotContainer.width()/2?v=I.left-V.right:v-=V.left):v-=V.left}this._bullets[l+"_"+u]=t}}t.isType("Label")&&(t.setPrivate("maxWidth",Math.abs(_)),t.setPrivate("maxHeight",Math.abs(S))),t.setAll({x:v,y:x})}else t.setPrivate("visible",!1)}}_shouldShowBullet(e,t){return this._showBullets}setDataSet(e){if(this._dataSets[e]){this._handleDataSetChange(),this._dataItems=this._dataSets[e],this._markDataSetDirty(),this._dataSetId=e;const t="datasetchanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this,id:e})}}resetGrouping(){gt(this._dataSets,(e,t)=>{t!=this._mainDataItems&&Y(t,r=>{this.disposeDataItem(r)})}),this._dataSets={},this._dataItems=this.mainDataItems}_handleDataSetChange(){Y(this._dataItems,e=>{let t=e.bullets;t&&Y(t,r=>{if(r){let i=r.get("sprite");i&&i.setPrivate("visible",!1)}})}),this._selectionProcessed=!1}show(e){const t=Object.create(null,{show:{get:()=>super.show}});return cn(this,void 0,void 0,function*(){this._fixVC();let r=[];r.push(t.show.call(this,e).then(()=>{this._isShowing=!1;let i=this.get("xAxis"),s=this.get("yAxis"),a=this.get("baseAxis");s!==a&&s.markDirtySelectionExtremes(),i!==a&&i.markDirtySelectionExtremes()})),r.push(this.bulletsContainer.show(e)),r.push(this._sequencedShowHide(!0,e)),yield Promise.all(r)})}hide(e){const t=Object.create(null,{hide:{get:()=>super.hide}});return cn(this,void 0,void 0,function*(){this._fixVC();let r=[];r.push(t.hide.call(this,e).then(()=>{this._isHiding=!1})),r.push(this.bulletsContainer.hide(e)),r.push(this._sequencedShowHide(!1,e)),yield Promise.all(r)})}showDataItem(e,t){const r=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return cn(this,void 0,void 0,function*(){const i=[r.showDataItem.call(this,e,t)];q(t)||(t=this.get("stateAnimationDuration",0));const s=this.get("stateAnimationEasing");Y(this._valueFields,a=>{i.push(e.animate({key:a+"Working",to:e.get(a),duration:t,easing:s}).waitForStop())}),yield Promise.all(i)})}hideDataItem(e,t){const r=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return cn(this,void 0,void 0,function*(){const i=[r.hideDataItem.call(this,e,t)],s=this.states.create("hidden",{});q(t)||(t=s.get("stateAnimationDuration",this.get("stateAnimationDuration",0)));const a=s.get("stateAnimationEasing",this.get("stateAnimationEasing")),o=this.get("xAxis"),l=this.get("yAxis"),u=this.get("baseAxis"),h=this.get("stacked");if((u===o||!u)&&Y(this._valueYFields,f=>{let m=l.getPrivate("min"),g=l.baseValue();q(m)&&m>g&&(g=m),h&&(g=0),e.get(f)!=null&&i.push(e.animate({key:f+"Working",to:g,duration:t,easing:a}).waitForStop())}),u===l||!u){let f=o.getPrivate("min"),m=o.baseValue();q(f)&&f>m&&(m=f),h&&(m=0),Y(this._valueXFields,g=>{e.get(g)!=null&&i.push(e.animate({key:g+"Working",to:m,duration:t,easing:a}).waitForStop())})}yield Promise.all(i)})}_markDirtyStack(){this._stackDirty=!0,this.markDirty(),this._markStakedDirtyStack()}_markStakedDirtyStack(){const e=this._stackedSeries;e&>(e,(t,r)=>{r._stackDirty||r._markDirtyStack()})}_afterChanged(){super._afterChanged(),this._skipped&&(this._markDirtyAxes(),this._skipped=!1)}showDataItemTooltip(e){this.updateLegendMarker(e),this.updateLegendValue(e);const t=this.get("tooltip");if(t){if(this.isHidden())this.hideTooltip();else if(t._setDataItem(e),e){let r=this.get("locationX",0),i=this.get("locationY",1),s=e.get("locationX",r),a=e.get("locationY",i);const o=this.get("xAxis"),l=this.get("yAxis"),u=this.get("vcx",1),h=this.get("vcy",1),f=o.getDataItemPositionX(e,this._tooltipFieldX,this._aLocationX0+(this._aLocationX1-this._aLocationX0)*s,u),m=l.getDataItemPositionY(e,this._tooltipFieldY,this._aLocationY0+(this._aLocationY1-this._aLocationY0)*a,h),g=this.getPoint(f,m);let y=!0;if(Y(this._valueFields,v=>{e.get(v)==null&&(y=!1)}),y){const v=this.chart;v&&v.inPlot(g)?(t.label.text.markDirtyText(),t.set("tooltipTarget",this._getTooltipTarget(e)),t.set("pointTo",this._display.toGlobal({x:g.x,y:g.y}))):t._setDataItem(void 0)}else t._setDataItem(void 0)}}}hideTooltip(){const e=this.get("tooltip");return e&&e.set("tooltipTarget",this),super.hideTooltip()}_getTooltipTarget(e){if(this.get("seriesTooltipTarget")=="bullet"){const t=e.bullets;if(t&&t.length>0){const i=t[0].get("sprite");if(i)return i}}return this}updateLegendValue(e){const t=this.get("legendDataItem");if(t){const r=t.get("label");if(r){let s="";e?(r._setDataItem(e),s=this.get("legendLabelText",r.get("text",this.get("name","")))):(r._setDataItem(this._emptyDataItem),s=this.get("legendRangeLabelText",this.get("legendLabelText",r.get("text",this.get("name",""))))),r.set("text",s)}const i=t.get("valueLabel");if(i){let s="";e?(i._setDataItem(e),s=this.get("legendValueText",i.get("text",""))):(i._setDataItem(this._emptyDataItem),s=this.get("legendRangeValueText",i.get("text",""))),i.set("text",s)}}}_getItemReaderLabel(){let e="X: {"+this._xField;return this.get("xAxis").isType("DateAxis")&&(e+=".formatDate()"),e+="}; Y: {"+this._yField,this.get("yAxis").isType("DateAxis")&&(e+=".formatDate()"),e+="}",e}getPoint(e,t){let r=this.get("xAxis").get("renderer").positionToCoordinate(e),i=this.get("yAxis").get("renderer").positionToCoordinate(t),s=999999999;return i<-s&&(i=-s),i>s&&(i=s),r<-s&&(r=-s),r>s&&(r=s),{x:r,y:i}}_shouldInclude(e){return!0}handleCursorHide(){this.hideTooltip(),this.updateLegendValue(void 0),this.updateLegendMarker(void 0)}_afterDataChange(){super._afterDataChange(),this.get("xAxis")._markDirtyKey("start"),this.get("yAxis")._markDirtyKey("start"),this.resetExtremes()}resetExtremes(){this.setPrivate("selectionMinX",void 0),this.setPrivate("selectionMaxX",void 0),this.setPrivate("selectionMinY",void 0),this.setPrivate("selectionMaxY",void 0),this.setPrivate("minX",void 0),this.setPrivate("minY",void 0),this.setPrivate("maxX",void 0),this.setPrivate("maxY",void 0)}createAxisRange(e){return this.axisRanges.push({axisDataItem:e})}get mainDataItems(){return this._mainDataItems}}Object.defineProperty(hl,"className",{enumerable:!0,configurable:!0,writable:!0,value:"XYSeries"});Object.defineProperty(hl,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:dl.classNames.c
103oncat([hl.className])});class pl extends hl{constructor(){super(...arguments),Object.defineProperty(this,"_ph",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_pw",{enumerable:!0,configurable:!0,writable:!0,value:0})}_makeGraphics(e,t){return this.makeColumn(t,e)}_makeFieldNames(){super._makeFieldNames();const e=this.get("xAxis"),t=this.get("yAxis"),r="CategoryAxis",i="ValueAxis";e.isType(r)&&(this.get("openCategoryXField")||(this._xOpenField=this._xField)),e.isType(i)&&(this.get("openValueXField")||(this._xOpenField=this._xField)),t.isType(r)&&(this.get("openCategoryYField")||(this._yOpenField=this._yField)),t.isType(i)&&(this.get("openValueYField")||(this._yOpenField=this._yField))}_prepareChildren(){super._prepareChildren();const e=this.get("xAxis"),t=this.get("yAxis"),r=this.dataItems.length,i=Math.max(0,this.startIndex()-2),s=Math.min(this.endIndex()+2,r-1);if(e.inited&&t.inited)for(let a=i;a<=s;a++){let o=this.dataItems[a];this._createGraphics(o)}}_updateChildren(){const e=this.chart;e&&(this._ph=e.plotContainer.height(),this._pw=e.plotContainer.width());const t=this.get("xAxis"),r=this.get("yAxis"),i=this.get("baseAxis"),s=this.columns.template;this.isDirty("fill")&&s.get("fill")==null&&s.set("fill",this.get("fill")),this.isDirty("stroke")&&s.get("stroke")==null&&s.set("stroke",this.get("stroke"));let a=0,o=0,l=0;Y(i.series,_=>{if(_ instanceof pl){const S=_.get("stacked");S&&l==0&&o++,!S&&_.get("clustered")&&o++}_===this&&(a=o-1),l++}),this.get("clustered")||(a=0,o=1),o===0&&(o=1,a=0);const u=t.get("renderer"),h=r.get("renderer"),f="cellStartLocation",m="cellEndLocation",g=u.get(f,0),y=u.get(m,1),v=h.get(f,0),x=h.get(m,1);if(this._aLocationX0=g+a/o*(y-g),this._aLocationX1=g+(a+1)/o*(y-g),this._aLocationY0=v+a/o*(x-v),this._aLocationY1=v+(a+1)/o*(x-v),t.inited&&r.inited){if(this._axesDirty||this._valuesDirty||this._stackDirty||this.isDirty("vcx")||this.isDirty("vcy")||this._sizeDirty){const _=this.dataItems.length;let S=Math.max(0,this.startIndex()-2),w=Math.min(this.endIndex()+2,_-1);for(let P=0;P<S;P++)this._toggleColumn(this.dataItems[P],!1);let k=this.dataItems[S];for(let P=S;P<=w;P++){let j=this.dataItems[P];if(j.get("valueX")!=null&&j.get("valueY")!=null){if(k=j,P>0&&S>0)for(let A=P-1;A>=0;A--){let M=this.dataItems[A];if(M.get("valueX")!=null&&M.get("valueY")!=null){k=M;break}}break}else this._toggleColumn(j,!1)}for(let P=S;P<=w;P++){let j=this.dataItems[P];this._updateGraphics(j,k),j.get("valueX")!=null&&j.get("valueY")!=null&&(k=j)}for(let P=w+1;P<_;P++)this._toggleColumn(this.dataItems[P],!1)}}else this._skipped=!0;this.updateLegendMarker(this.get("tooltipDataItem")),super._updateChildren()}_createGraphics(e){let t=e.get("graphics");if(!t){t=this._makeGraphics(this.columns,e),e.set("graphics",t),t._setDataItem(e);const r=e.get("legendDataItem");if(r){const s=r.get("markerRectangle");if(s){const a=s.states.lookup("default");Y(ix,o=>{const l=t.get(o,this.get(o));s.set(o,l),a.set(o,l)})}}let i=e.get("rangeGraphics");i&&Y(i,s=>{s.dispose()}),i=[],e.setRaw("rangeGraphics",i),this.axisRanges.each(s=>{const a=s.container,o=this._makeGraphics(s.columns,e);i&&i.push(o),o.setPrivate("list",s.columns),a.children.push(o)})}}createAxisRange(e){return Y(this.dataItems,t=>{const r=t.get("graphics");r&&(r.dispose(),t.set("graphics",void 0))}),super.createAxisRange(e)}_updateGraphics(e,t){let r=e.get("graphics");const i=this._xField,s=this._yField,a=e.get(i),o=e.get(s);if(a!=null&&o!=null){const l=this._xOpenField,u=this._yOpenField,h=this.get("locationX",e.get("locationX",.5)),f=this.get("locationY",e.get("locationY",.5)),m=this.get("openLocationX",e.get("openLocationX",h)),g=this.get("openLocationY",e.get("openLocationY",f)),y=r.get("width"),v=r.get("height"),x=this.get("stacked"),_=this.get("xAxis"),S=this.get("yAxis"),w=this.get("baseAxis"),k=_.get("start"),P=_.get("end"),j=S.get("start"),A=S.get("end");let M,L,I,V,Q=this.get("vcy",1),U=this.get("vcx",1),X=!1,K=!1;if(S.isType("CategoryAxis")&&_.isType("CategoryAxis")){let F=this._aLocationX0+m-.5,R=this._aLocationX1+h-.5;if(y instanceof $e){let B=(R-F)*(1-y.value)/2;F+=B,R-=B}if(M=_.getDataItemPositionX(e,l,F,U),L=_.getDataItemPositionX(e,i,R,U),F=this._aLocationY0+g-.5,R=this._aLocationY1+f-.5,v instanceof $e){let B=(R-F)*(1-v.value)/2;F+=B,R-=B}I=S.getDataItemPositionY(e,u,F,Q),V=S.getDataItemPositionY(e,s,R,Q),e.setRaw("point",{x:M+(L-M)/2,y:I+(V-I)/2})}else if(_===w){let F=this._aLocationX0+m-.5,R=this._aLocationX1+h-.5;
103if(y instanceof $e){let B=(R-F)*(1-y.value)/2;F+=B,R-=B}if(M=_.getDataItemPositionX(e,l,F,U),L=_.getDataItemPositionX(e,i,R,U),I=S.getDataItemPositionY(e,s,f,Q),this._yOpenField!==this._yField)V=S.getDataItemPositionY(e,u,g,Q);else if(x){let B=e.get("stackToItemY");B?V=S.getDataItemPositionY(B,s,g,B.component.get("vcy")):V=S.basePosition()}else V=S.basePosition();e.setRaw("point",{x:M+(L-M)/2,y:I}),K=!0}else if(S===w){let F=this._aLocationY0+g-.5,R=this._aLocationY1+f-.5;if(v instanceof $e){let B=(R-F)*(1-v.value)/2;F+=B,R-=B}if(I=S.getDataItemPositionY(e,u,F,Q),V=S.getDataItemPositionY(e,s,R,Q),L=_.getDataItemPositionX(e,i,h,U),this._xOpenField!==this._xField)M=_.getDataItemPositionX(e,l,m,U);else if(x){let B=e.get("stackToItemX");B?M=_.getDataItemPositionX(B,i,m,B.component.get("vcx")):M=_.basePosition()}else M=_.basePosition();X=!0,e.setRaw("point",{x:L,y:I+(V-I)/2})}this._updateSeriesGraphics(e,r,M,L,I,V,X,K),M<k&&L<k||M>P&&L>P||I<j&&V<=j||I>=A&&V>A||Li(M)||Li(I)?this._toggleColumn(e,!1):this._toggleColumn(e,!0);let z=e.get("rangeGraphics");z&&Y(z,F=>{this._updateSeriesGraphics(e,F,M,L,I,V,X,K)}),this._applyGraphicsStates(e,t)}}_updateSeriesGraphics(e,t,r,i,s,a,o,l){const u=t.get("width"),h=t.get("height"),f=t.get("maxWidth"),m=t.get("maxHeight"),g=this.getPoint(r,s),y=this.getPoint(i,a),v=e.get("point");if(v){const x=this.getPoint(v.x,v.y);v.x=x.x+this._x,v.y=x.y+this._y}if(r=g.x,i=y.x,s=g.y,a=y.y,q(u)){const x=(i-r-u)/2;r+=x,i-=x}if(q(f)&&f<Math.abs(i-r)){const x=(i-r-f)/2;r+=x,i-=x}if(q(h)){const x=(a-s-h)/2;s+=x,a-=x}if(q(m)&&m<Math.abs(a-s)){const x=(a-s-m)/2;s+=x,a-=x}this.get("adjustBulletPosition")&&(o&&(i=Math.min(Math.max(0,i),this._pw),r=Math.min(Math.max(0,r),this._pw)),l&&(s=Math.min(Math.max(0,s),this._ph),a=Math.min(Math.max(0,a),this._ph))),e.setRaw("left",r),e.setRaw("right",i),e.setRaw("top",s),e.setRaw("bottom",a),t.setPrivate("width",i-r),t.setPrivate("height",a-s),t.set("x",r),t.set("y",a-(a-s))}_handleDataSetChange(){super._handleDataSetChange(),Y(this._dataItems,e=>{this._toggleColumn(e,!1)})}_applyGraphicsStates(e,t){const r=e.get("graphics"),i=r.states.lookup("dropFromOpen"),s=r.states.lookup("riseFromOpen"),a=r.states.lookup("dropFromPrevious"),o=r.states.lookup("riseFromPrevious");if(i||a||s||o){const l=this.get("xAxis"),u=this.get("yAxis"),h=this.get("baseAxis");let f,m,g;h===l&&u.isType("ValueAxis")?(f=e.get(this._yOpenField),m=e.get(this._yField),g=t.get(this._yField)):h===u&&l.isType("ValueAxis")&&(f=e.get(this._xOpenField),m=e.get(this._xField),g=t.get(this._xField)),q(f)&&q(m)&&(m<f?i&&i.apply():s&&s.apply(),q(g)&&(m<g?a&&a.apply():o&&o.apply()))}}disposeDataItem(e){super.disposeDataItem(e);const t=e.get("graphics");t&&(this.columns.removeValue(t),t.dispose());const r=e.get("rangeGraphics");r&&Y(r,i=>{const s=i.getPrivate("list");s&&s.removeValue(i),i.dispose()})}hideDataItem(e,t){const r=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return cn(this,void 0,void 0,function*(){const i=[r.hideDataItem.call(this,e,t)],s=e.get("graphics");s&&i.push(s.hide(t));const a=e.get("rangeGraphics");a&&Y(a,o=>{i.push(o.hide(t))}),yield Promise.all(i)})}_toggleColumn(e,t){const r=e.get("graphics");r&&r.setPrivate("visible",t);const i=e.get("rangeGraphics");i&&Y(i,a=>{a.setPrivate("visible",t)});const s=e.bullets;s&&Y(s,a=>{a.setPrivate("hidden",!t)})}showDataItem(e,t){const r=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return cn(this,void 0,void 0,function*(){const i=[r.showDataItem.call(this,e,t)],s=e.get("graphics");s&&i.push(s.show(t));const a=e.get("rangeGraphics");a&&Y(a,o=>{i.push(o.show(t))}),yield Promise.all(i)})}updateLegendMarker(e){let t=this.get("legendDataItem");if(this.get("useLastColorForLegendMarker")&&!e){const r=this.dataItems[this.endIndex()-1];r&&(e=r)}if(t){let r=this.columns.template;if(e){let s=e.get("graphics");s&&(r=s)}const i=t.get("markerRectangle");if(i&&!t.get("itemContainer").get("disabled")){const s=i.states.lookup("default");Y(ix,a=>{const o=r.get(a,this.get(a));i.set(a,o),s.set(a,o)})}}}_getTooltipTarget(e){if(this.get("seriesTooltipTarget")=="bullet")return super._getTooltipTarget(e);let t=e.get("graphics");return t||this}}Object.defineProperty(pl,"className",{enumerable:!0,configurable:!0,writable:!0,value:"BaseColumnSeries"});Object.defineProperty(pl,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:hl.classNames.c
103oncat([pl.className])});class gl extends cl{constructor(){super(...arguments),Object.defineProperty(this,"_series",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_isPanning",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"minorDataItems",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"labelsContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(Ee.new(this._root,{}))}),Object.defineProperty(this,"gridContainer",{enumerable:!0,configurable:!0,writable:!0,value:Ee.new(this._root,{width:le,height:le})}),Object.defineProperty(this,"topGridContainer",{enumerable:!0,configurable:!0,writable:!0,value:Ee.new(this._root,{width:le,height:le})}),Object.defineProperty(this,"bulletsContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(Ee.new(this._root,{isMeasured:!1,width:le,height:le,position:"absolute"}))}),Object.defineProperty(this,"chart",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_rangesDirty",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_panStart",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_panEnd",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"_sAnimation",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_eAnimation",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_skipSync",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"axisRanges",{enumerable:!0,configurable:!0,writable:!0,value:new wc}),Object.defineProperty(this,"_seriesAxisRanges",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"ghostLabel",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_cursorPosition",{enumerable:!0,configurable:!0,writable:!0,value:-1}),Object.defineProperty(this,"_snapToSeries",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_seriesValuesDirty",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"axisHeader",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(Ee.new(this._root,{themeTags:["axis","header"],position:"absolute",background:Yr.new(this._root,{themeTags:["header","background"],fill:this._root.interfaceColors.get("background")})}))}),Object.defineProperty(this,"_bullets",{enumerable:!0,configurable:!0,writable:!0,value:{}})}_dispose(){this.gridContainer.dispose(),this.topGridContainer.dispose(),this.bulletsContainer.dispose(),this.labelsContainer.dispose(),this.axisHeader.dispose(),super._dispose()}_afterNew(){super._afterNew(),this.setPrivate("updateScrollbar",!0),this._disposers.push(this.axisRanges.events.onAll(t=>{if(t.type==="clear")Y(t.oldValues,r=>{this.disposeDataItem(r)});else if(t.type==="push")this._processAxisRange(t.newValue,["range"]);else if(t.type==="setIndex")this._processAxisRange(t.newValue,["range"]);else if(t.type==="insertIndex")this._processAxisRange(t.newValue,["range"]);else if(t.type==="removeIndex")this.disposeDataItem(t.oldValue);else if(t.type==="moveIndex")this._processAxisRange(t.value,["range"]);else throw new Error("Unknown IStreamEvent type")}));const e=this.get("renderer");e&&(e.axis=this,e.processAxis()),this.children.push(e),this.ghostLabel=e.makeLabel(new Ri(this,void 0,{}),[]),this.ghostLabel.adapters.disable("text"),this.ghostLabel.setAll({opacity:0,tooltipText:void 0,tooltipHTML:void 0,interactive:!1}),this.ghostLabel.events.disable()}_updateFinals(e,t){}zoom(e,t,r,i){if(this._updateFinals(e,t),this.get("start")!==e||this.get("end")!=t){let s=this._sAnimation,a=this._eAnimation,o=this.get("maxDeviation",.5)*Math.min(1,t-e);e<-o&&(e=-o),t>1+o&&(t=1+o),e>t&&([e,t]=[t,e]),q(r)||(r=this.get("interpolationDuration",0)),i||(i="end");let l=this.getPrivate("maxZoomFactor",this.get("maxZoomFactor",100)),u=l;t===1&&e!==0&&(e<this.get("start")?i="start":i="end"),e===0&&t!==1&&(t>this.get("end")?i="end":i="start");let h=this.get("minZoomCount"),f=this.get("maxZoomCount");q(h)&&(l=u/h);let m=1;if(q(f)&&(m=u/f),i==="start"?(f>
1030&&1/(t-e)<m&&(t=e+1/m),1/(t-e)>l&&(t=e+1/l),t>1&&t-e<1/l&&(e=t-1/l)):(f>0&&1/(t-e)<m&&(e=t-1/m),1/(t-e)>l&&(e=t-1/l),e<0&&t-e<1/l&&(t=e+1/l)),1/(t-e)>l&&(t=e+1/l),1/(t-e)>l&&(e=t-1/l),f!=null&&h!=null&&e==this.get("start")&&t==this.get("end")){const g=this.chart;g&&g._handleAxisSelection(this,!0)}if((s&&s.playing&&s.to==e||this.get("start")==e)&&(a&&a.playing&&a.to==t||this.get("end")==t))return;if(r>0){let g=this.get("interpolationEasing"),y,v;if(this.get("start")!=e&&(y=this.animate({key:"start",to:e,duration:r,easing:g})),this.get("end")!=t&&(v=this.animate({key:"end",to:t,duration:r,easing:g})),this._sAnimation=y,this._eAnimation=v,y)return y;if(v)return v}else this.set("start",e),this.set("end",t),this._root.events.once("frameended",()=>{this._markDirtyKey("start"),this._root._markDirty()})}else this._sAnimation&&this._sAnimation.stop(),this._eAnimation&&this._eAnimation.stop()}get series(){return this._series}_processAxisRange(e,t){e.setRaw("isRange",!0),this._createAssets(e,t),this._rangesDirty=!0,this._prepareDataItem(e);const r=e.get("above"),i=this.topGridContainer,s=e.get("grid");r&&s&&i.children.moveValue(s);const a=e.get("axisFill");r&&a&&i.children.moveValue(a)}_prepareDataItem(e,t){}markDirtyExtremes(){}markDirtySelectionExtremes(){}_calculateTotals(){}_updateAxisRanges(){this._bullets={},this.axisRanges.each(e=>{this._prepareDataItem(e)}),Y(this._seriesAxisRanges,e=>{this._prepareDataItem(e)})}_prepareChildren(){if(super._prepareChildren(),this.get("fixAxisSize")?this.ghostLabel.set("visible",!0):this.ghostLabel.set("visible",!1),this.isDirty("start")||this.isDirty("end")){const t=this.chart;t&&t._updateCursor();let r=this.get("start",0),i=this.get("end",1),s=this.get("maxDeviation",.5)*Math.min(1,i-r);if(r<-s){let a=r+s;r=-s,this.setRaw("start",r),this.isDirty("end")&&this.setRaw("end",i-a)}if(i>1+s){let a=i-1-s;i=1+s,this.setRaw("end",i),this.isDirty("start")&&this.setRaw("start",r-a)}}const e=this.get("renderer");if(e._start=this.get("start"),e._end=this.get("end"),e._inversed=e.get("inversed",!1),e._axisLength=e.axisLength()/(e._end-e._start),e._updateLC(),this.isDirty("tooltip")){const t=this.get("tooltip");if(t){const r=e.get("themeTags");t.addTag("axis"),t.addTag(this.className.toLowerCase()),t._applyThemes(),r&&(t.set("themeTags",ht(t.get("themeTags"),r)),t.label._applyThemes())}}}_updateTooltipBounds(){const e=this.get("tooltip");e&&this.get("renderer").updateTooltipBounds(e)}_updateBounds(){super._updateBounds(),this._updateTooltipBounds()}processChart(e){this.chart=e;const t=this.get("renderer");t.chart=e,e.gridContainer.children.push(this.gridContainer),e.topGridContainer.children.push(this.topGridContainer),e.axisHeadersContainer.children.push(this.axisHeader),this.on("start",()=>{e._handleAxisSelection(this)}),this.on("end",()=>{e._handleAxisSelection(this)}),e.plotContainer.onPrivate("width",()=>{this.markDirtySize()}),e.plotContainer.onPrivate("height",()=>{this.markDirtySize()}),e.processAxis(this)}hideDataItem(e){return this._toggleFHDataItem(e,!0),super.hideDataItem(e)}showDataItem(e){return this._toggleFHDataItem(e,!1),super.showDataItem(e)}_toggleFHDataItem(e,t){const r="forceHidden",i=e.get("label");i&&i.set(r,t);const s=e.get("grid");s&&s.set(r,t);const a=e.get("tick");a&&a.set(r,t);const o=e.get("axisFill");o&&o.set(r,t);const l=e.get("bullet");if(l){const u=l.get("sprite");u&&u.set(r,t)}}_toggleDataItem(e,t){const r=e.get("label"),i="visible";r&&r.setPrivate(i,t);const s=e.get("grid");s&&s.setPrivate(i,t);const a=e.get("tick");a&&a.setPrivate(i,t);const o=e.get("axisFill");o&&o.setPrivate(i,t);const l=e.get("bullet");if(l){const u=l.get("sprite");u&&u.setPrivate(i,t)}}_createAssets(e,t,r){var i,s,a;const o=this.get("renderer");let l="minor";const u=e.get("label");if(!u)o.makeLabel(e,t);else{let m=u.get("themeTags"),g=!1;r?(m==null?void 0:m.indexOf(l))==-1&&(g=!0):(m==null?void 0:m.indexOf(l))!=-1&&(g=!0),g&&((i=u.parent)===null||i===void 0||i.children.removeValue(u),o.makeLabel(e,t),u.dispose(),o.labels.removeValue(u))}const h=e.get("grid");if(!h)o.makeGrid(e,t);else{let m=h.get("themeTags"),g=!1;r?(m==null?void 0:m.indexOf(l))==-1&&(g=!0):(m==null?void 0:m.indexOf(l))!=-1&&(g=!0),g&&((s=h.parent)===null||s===void 0||s.children.removeValue(h),o.makeGrid(e,t),h.dispose(),o.grid.removeValue(h))}const f=e.get("tick");if(!f)o.makeTick(e,t);else{let m=!1,g=f.get("themeTags");r?(g==null?void 0:g.indexOf(l))==-1&&(m=!0):(g==null?void 0:g.indexOf(l))!=-1&&(m=!0),m&&((a=f.parent)===null||a===void 0||a.children.removeValue(f),o.makeTick(e,t),f.dispose(),o.ticks.removeValue(f))}!r&&!e.get("axisFill")&&o.makeAxisFill(e,t),this._processBullet(e)}_processBullet(e){let t=e.get("bullet"),r=this.get("bullet");if(!t&&r&&!e.get("isRange")&&(t=r(this._root,this,e)),t){t.axis=this;const i=t.get("sprite");i&&(i._setDataItem(e),e.setRaw("bullet",t),i.parent||this.bulletsContainer.children.push(i))}}_afterChanged(){super._afterChanged();const e=this.chart;e&&(e._updateChartLayout(),e.axisHeadersContainer.markDirtySize()),this.get("renderer")._updatePositions()}disposeDataItem(e){super.disposeDataItem(e);const t=this.get("renderer"),r=e.get("label");r&&(t.labels.removeValue(r),r.dispose());const i=e.get("tick");i&&(t.ticks.removeValue(i),i.dispose());const s=e.get("grid");s&&(t.grid.removeValue(s),s.dispose());const a=e.get("axisFill");a&&(t.axisFills.removeValue(a),a.dispose());const o=e.get("bullet");o&&o.dispose()}_updateGhost(){this.setPrivate("cellWidth",this.getCellWidthPosition()*this.get("renderer").axisLength());const e=this.ghostLabel;if(!e.isHidden()){const i=e.localBounds(),s=Math.ceil(i.right-i.left);let a=e.get("text");Y(this.dataItems,o=>{const l=o.get("label");if(l&&!l.isHidden()){const u=l.localBounds();
103Math.ceil(u.right-u.left)>s&&(a=l.text._getText())}}),e.set("text",a)}let t=this.get("start",0),r=this.get("end",1);this.get("renderer").updateLabel(e,t+(r-t)*.5)}_handleCursorPosition(e,t){e=this.get("renderer").toAxisPosition(e),this._cursorPosition=e,this._snapToSeries=t,this.updateTooltip()}updateTooltip(){const e=this._snapToSeries;let t=this._cursorPosition;const r=this.get("tooltip"),i=this.get("renderer");q(t)&&(Y(this.series,s=>{if(s.get("baseAxis")===this){const a=this.getSeriesItem(s,t,this.get("tooltipLocation"));s.setRaw("tooltipDataItem",a),e&&e.indexOf(s)!=-1?(s.updateLegendMarker(a),s.updateLegendValue(a)):s.showDataItemTooltip(a)}}),r&&(i.updateTooltipBounds(r),this.get("snapTooltip")&&(t=this.roundAxisPosition(t,this.get("tooltipLocation",.5))),Li(t)?r.hide(0):(this.setPrivateRaw("tooltipPosition",t),this._updateTooltipText(r,t),i.positionTooltip(r,t),t<this.get("start")||t>this.get("end")?r.hide(0):r.show(0))))}_updateTooltipText(e,t){e.label.set("text",this.getTooltipText(t))}roundAxisPosition(e,t){return e}handleCursorShow(){let e=this.get("tooltip");e&&e.show()}handleCursorHide(){let e=this.get("tooltip");e&&e.hide()}processSeriesDataItem(e,t){}_clearDirty(){super._clearDirty(),this._sizeDirty=!1,this._rangesDirty=!1}coordinateToPosition(e){const t=this.get("renderer");return t.toAxisPosition(e/t.axisLength())}toAxisPosition(e){return this.get("renderer").toAxisPosition(e)}toGlobalPosition(e){return this.get("renderer").toGlobalPosition(e)}fixPosition(e){return this.get("renderer").fixPosition(e)}shouldGap(e,t,r,i){return!1}createAxisRange(e){return this.axisRanges.push(e)}
103_groupSeriesData(e){}getCellWidthPosition(){return .05}}Object.defineProperty(gl,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Axis"});Object.defineProperty(gl,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:cl.classNames.concat([gl.className])});class oo extends gl{constructor(){super(...arguments),Object.defineProperty(this,"_frequency",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"_itemMap",{enumerable:!0,configurable:!0,writable:!0,value:{}})}_afterNew(){this._settings.themeTags=ht(this._settings.themeTags,["axis"]),this.fields.push("category"),this.setPrivateRaw("name","category"),this.addTag("category"),super._afterNew()}_prepareChildren(){super._prepareChildren();const e=this.dataItems.length;let t=0;this._valuesDirty&&(this._itemMap={},Y(this.dataItems,r=>{r.setRaw("index",t),this._itemMap[r.get("category")]=r,t++}),this.setPrivateRaw("maxZoomFactor",e)),this.setPrivateRaw("startIndex",Math.max(Math.round(this.get("start",0)*e),0)),this.setPrivateRaw("endIndex",Math.min(Math.round(this.get("end",1)*e),e)),(this._sizeDirty||this._valuesDirty||this.isDirty("start")||this.isDirty("end")||this.isPrivateDirty("endIndex")||this.isPrivateDirty("startIndex")||this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&this.dataItems.length>0&&(this._handleRangeChange(),this._prepareAxisItems(),this._updateAxisRanges())}_handleRangeChange(){Y(this.series,e=>{let t=this.dataItems[this.startIndex()].get("category"),r=this.dataItems[this.endIndex()-1].get("category"),i=e.get("baseAxis"),s=e.get("xAxis"),a=e.get("yAxis");if(s instanceof oo&&a instanceof oo)e._markDirtyAxes();else if(i===this){let o,l,u=a;if(s===i?(e.get("categoryXField")&&(o="categoryX"),e.get("openCategoryXField")&&(l="openCategoryX")):a===i&&(e.get("categoryYField")&&(o="categoryY"),e.get("openCategoryYField")&&(l="openCategoryY"),u=s),u.className=="ValueAxis"&&(o||l)){let h,f;for(let v=0,x=e.dataItems.length;v<x;v++){let _=e.dataItems[v];if(o&&_.get(o)===t){h=_;break}if(l&&_.get(l)===t){h=_;break}}for(let v=e.dataItems.length-1;v>=0;v--){let x=e.dataItems[v];if(o&&x.get(o)===r){f=x;break}if(l&&x.get(l)===r){f=x;break}}let m=0,g=e.dataItems.length;h&&(m=e.dataItems.indexOf(h)),f&&(g=e.dataItems.indexOf(f)+1),e.setPrivate("startIndex",m),e.setPrivate("endIndex",g);let y=!1;for(let v=m;v<g;v++){const x=e.dataItems[v];if(Y(e.__valueXShowFields,_=>{x.get(_)!=null&&(y=!0)}),Y(e.__valueYShowFields,_=>{x.get(_)!=null&&(y=!0)}),y)break}e.setPrivate("outOfSelection",!y)}e._markDirtyAxes()}})}_prepareAxisItems(){var e;const t=this.get("renderer"),r=this.dataItems.length;let i=this.startIndex();i>0&&i--;let s=this.endIndex();s<r&&s++;const a=t.get("minorLabelsEnabled"),o=t.get("minorGridEnabled",a);let l=t.axisLength()/Math.max(t.get("minGridDistance"),1),u=Math.max(1,Math.min(r,Math.ceil((s-i)/l)));i=Math.floor(i/u)*u,this._frequency=u;for(let f=0;f<r;f++)this._toggleDataItem(this.dataItems[f],!1);let h=this.dataItems[i].get("index",0);for(let f=i;f<s;f=f+u){let m=this.dataItems[f];this._createAssets(m,[]),this._toggleDataItem(m,!0);let g=u;o&&(g=1),this._prepareDataItem(m,h,g),h++}if(t.get("minorGridEnabled"))for(let f=i;f<s;f++){let m=this.dataItems[f];f%u!=0&&(this._createAssets(m,["minor"],!0),this._toggleDataItem(m,!0),this._prepareDataItem(m,0,1),a||(e=m.get("label"))===null||e===void 0||e.setPrivate("visible",!1))}this._updateGhost()}
103_prepareDataItem(e,t,r){let i=this.get("renderer"),s=e.get("categoryLocation",0),a=e.get("endCategoryLocation",1),o=e.get("index");q(o)||(o=this.categoryToIndex(e.get("category")));let l=this.indexToPosition(o,s),u=e.get("endCategory"),h;u?(h=this.categoryToIndex(u),q(h)||(h=o)):h=o;let f=this.indexToPosition(h,a),m,g;e.get("isRange")?m=h:m=o+this._frequency-1,g=this.indexToPosition(m,a),i.updateLabel(e.get("label"),l,f,r),i.updateGrid(e.get("grid"),l,f),i.updateTick(e.get("tick"),l,f,r),i.updateFill(e.get("axisFill"),l,g),this._processBullet(e),i.updateBullet(e.get("bullet"),l,f);const y=this.get("fillRule");y&&y(e,t)}startIndex(){let e=this.dataItems.length;return Math.min(Math.max(this.getPrivate("startIndex",0),0),e-1)}endIndex(){let e=this.dataItems.length;return Math.max(1,Math.min(this.getPrivate("endIndex",e),e))}baseValue(){}basePosition(){return 0}getX(e){let t=this._itemMap[e];return t?this._settings.renderer.positionToCoordinate(this.indexToPosition(t.get("index",0))):NaN}getY(e){let t=this._itemMap[e];return t?this._settings.renderer.positionToCoordinate(this.indexToPosition(t.get("index",0))):NaN}getDataItemPositionX(e,t,r,i){const s=e.get(t),a=this._itemMap[s];return a?this.indexToPosition(a.get("index",0),r):NaN}getDataItemCoordinateX(e,t,r,i){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionX(e,t,r,i))}getDataItemPositionY(e,t,r,i){const s=e.get(t),a=this._itemMap[s];return a?this.indexToPosition(a.get("index",0),r):NaN}getDataItemCoordinateY(e,t,r,i){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionY(e,t,r,i))}indexToPosition(e,t){q(t)||(t=.5);let r=this.dataItems.length,i=this.get("startLocation",0),s=this.get("endLocation",1);r-=i,r-=1-s;let a=(e+t-i)/r,o=this.dataItems[e];return o&&(a+=o.get("deltaPosition",0)),a}categoryToIndex(e){let t=this._itemMap[e];return t?t.get("index"):NaN}dataItemToPosition(e){return this.indexToPosition(e.get("index"))}roundAxisPosition(e,t){return e+=(.5-t)/this.dataItems.length,this.indexToPosition(this.axisPositionToIndex(e),t)}axisPositionToIndex(e){let t=this.dataItems.length;return an(Math.floor(e*t),0,t-1)}getTooltipText(e,t){const r=this.dataItems[this.axisPositionToIndex(e)];if(r){const i=r.get("label");if(i)return hf(i,this.get("tooltipText",""))}}_updateTooltipText(e,t){e._setDataItem(this.dataItems[this.axisPositionToIndex(t)]),e.label.text.markDirtyText()}getSeriesItem(e,t){if(this.dataItems.length>0){let r=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),i=this.axisPositionToIndex(t),s=e.dataItems[i],a=this.dataItems[i],o=a.get("category");if(s&&a&&s.get(r)===o)return s;for(let l=0,u=e.dataItems.length;l<u;l++){let h=e.dataItems[l];if(h.get(r)===o)return h}}}zoomToIndexes(e,t,r){let i=this.dataItems.length;this.zoom(e/i,t/i,r)}zoomToCategories(e,t,r){this.zoomToIndexes(this.categoryToIndex(e),this.categoryToIndex(t)+1,r)}getCellWidthPosition(){return this._frequency/this.dataItems.length/(this.get("end",1)-this.get("start",0))}}Object.defineProperty(oo,"className",{enumerable:!0,configurable:!0,writable:!0,value:"CategoryAxis"});Object.defineProperty(oo,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:gl.classNames.concat([oo.className])});class $i extends gl{constructor(){super(...arguments),Object.defineProperty(this,"_dirtyExtremes",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_dirtySelectionExtremes",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_deltaMinMax",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"_minReal",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_maxReal",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_baseValue",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_syncDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_minLogAdjusted",{enumerable:!0,configurable:!0,writable:!0,value:1})}markDirtyExtremes(){this._dirtyExtremes=!0,this.markDirty()}markDirtySelectionExtremes(){this._dirtySelectionExtremes=!0,this.markDirty()}_afterNew(){this._settings.themeTags=ht(this._settings.themeTags,["axis"]),this.setPrivateRaw("name","value"),this.addTag("value"),super._afterNew()}_prepareChildren(){if(super._prepareChildren(),this.isDirty("syncWithAxis")){this._prevSettings.syncWithAxis&&this._syncDp&&this._syncDp.dispose();let r=this.get("syncWithAxis");r&&(this._syncDp=new gr([r.onPrivate("selectionMinFinal",()=>{this._dirtySelectionExtremes=!0}),r.onPrivate("selectionMaxFinal",()=>{this._dirtySelectionExtremes=!0})]))}let e=!1;(this.isDirty("min")||this.isDirty("max")||this.isDirty("maxPrecision")||this.isDirty("numberFormat"))&&(e=!0,this.ghostLabel.set("text","")),(this._sizeDirty||this._dirtyExtremes||this._valuesDirt
103y||e||this.isPrivateDirty("width")||this.isPrivateDirty("height")||this.isDirty("extraMin")||this.isDirty("extraMax")||this.isDirty("logarithmic")||this.isDirty("treatZeroAs")||this.isDirty("baseValue")||this.isDirty("strictMinMax")||this.isDirty("strictMinMaxSelection"))&&(this._getMinMax(),this._dirtyExtremes=!1),this._dirtySelectionExtremes&&!this._isPanning&&this.get("autoZoom",!0)&&(this._getSelectionMinMax(),this._dirtySelectionExtremes=!1),this._groupData(),(this._sizeDirty||this._valuesDirty||this.isDirty("start")||this.isDirty("end")||this.isPrivateDirty("min")||this.isPrivateDirty("selectionMax")||this.isPrivateDirty("selectionMin")||this.isPrivateDirty("max")||this.isPrivateDirty("step")||this.isPrivateDirty("width")||this.isPrivateDirty("height")||this.isDirty("logarithmic"))&&(this._handleRangeChange(),this._prepareAxisItems(),this._updateAxisRanges()),this._baseValue=this.baseValue()}_groupData(){}_formatText(e){const t=this.get("numberFormat"),r=this.getNumberFormatter();let i="";return t?i=r.format(e,t):i=r.format(e,void 0,this.getPrivate("stepDecimalPlaces")),i}_prepareAxisItems(){const e=this.getPrivate("min"),t=this.getPrivate("max");if(q(e)&&q(t)){const r=this.get("logarithmic"),i=this.getPrivate("step"),s=this.getPrivate("selectionMin"),a=this.getPrivate("selectionMax")+i;let o=s-i,l=1,u=e;if(r){if(o=this._minLogAdjusted,o<s)for(;o<s;)o+=i;u=o,u<=0&&(u=1,i<1&&(u=i)),l=Math.log(a-i)*Math.LOG10E-Math.log(u)*Math.LOG10E,l>2&&(o=Math.pow(10,Math.log(u)*Math.LOG10E-5))}const h=this.get("renderer"),f=h.get("minorLabelsEnabled"),m=h.get("minorGridEnabled",f);let g=Math.pow(10,Math.floor(Math.log(Math.abs(i))*Math.LOG10E));const y=Math.round(i/g);let v=2;An(y/5,10)%1==0&&(v=5),An(y/10,10)%1==0&&(v=10);let x=i/v,_=0,S=0,w=-1/0;for(;o<a;){let k;this.dataItems.length<_+1?(k=new Ri(this,void 0,{}),this._dataItems.push(k),this.processDataItem(k)):k=this.dataItems[_],this._createAssets(k,[]),this._toggleDataItem(k,!0),k.setRaw("value",o);const P=k.get("label");P&&P.set("text",this._formatText(o)),this._prepareDataItem(k);let j=o;if(r&&l>2?j=Math.pow(10,Math.log(u)*Math.LOG10E+_-5):j+=i,m){let M=o+x;for(r&&(l>2&&(x=this._adjustMinMax(o,j,10).step),M=o+x);M<j-i*1e-11;){let L;this.minorDataItems.length<S+1?(L=new Ri(this,void 0,{}),this.minorDataItems.push(L),this.processDataItem(L)):L=this.minorDataItems[S],this._createAssets(L,["minor"],!0),this._toggleDataItem(L,!0),L.setRaw("value",M);const I=L.get("label");I&&(f?I.set("text",this._formatText(M)):I.setPrivate("visible",!1)),this._prepareDataItem(L),M+=x,S++}}if(o=j,w==o)break;let A=Math.pow(10,Math.floor(Math.log(Math.abs(i))*Math.LOG10E));if(A<1){let M=Math.round(Math.abs(Math.log(Math.abs(A))*Math.LOG10E))+2;o=An(o,M)}_++,w=o}for(let k=_;k<this.dataItems.length;k++)this._toggleDataItem(this.dataItems[k],!1);for(let k=S;k<this.minorDataItems.length;k++)this._toggleDataItem(this.minorDataItems[k],!1);Y(this.series,k=>{k.inited&&k._markDirtyAxes()}),this._updateGhost()}}_prepareDataItem(e,t){let r=this.get("renderer"),i=e.get("value"),s=e.get("endValue"),a=this.valueToPosition(i),o=a,l=this.valueToPosition(i+this.getPrivate("step"));q(s)&&(o=this.valueToPosition(s),l=o),e.get("isRange")&&s==null&&(l=a);let u=o,h=e.get("labelEndValue");h!=null&&(u=this.valueToPosition(h)),r.updateLabel(e.get("label"),a,u,t);const f=e.get("grid");if(r.updateGrid(f,a,o),f&&(i==this.get("baseValue",0)?(f.addTag("base"),f._applyThemes()):f.hasTag("base")&&(f.removeTag("base"),f._applyThemes())),r.updateTick(e.get("tick"),a,u,t),r.updateFill(e.get("axisFill"),a,l),this._processBullet(e),r.updateBullet(e.get("bullet"),a,o),!e.get("isRange")){const m=this.get("fillRule");m&&m(e)}}_handleRangeChange(){let e=this.positionToValue(this.get("start",0)),t=this.positionToValue(this.get("end",1));const r=this.get("renderer").gridCount();let i=this._adjustMinMax(e,t,r,!0),s=m7(i.step);this.setPrivateRaw("stepDecimalPlaces",s),e=An(e,s),t=An(t,s),i=this._adjustMinMax(e,t,r,!0);let a=i.step;e=i.min,t=i.max,(this.getPrivate("selectionMin")!==e||this.getPrivate("selectionMax")!==t||this.getPrivate("step")!==a)&&(this.setPrivateRaw("selectionMin",e),this.setPrivateRaw("selectionMax",t),this.setPrivateRaw("step",a))}positionToValue(e){const t=this.getPrivate("min"),r=this.getPrivate("max");return this.get("logarithmic")?Math.pow(Math.E,(e*(Math.log(r)*Math.LOG10E-Math.log(t)*Math.LOG10E)+Math.log(t)*Math.LOG10E)/Math.LOG10E):e*(r-t)+t}valueToPosition(e){const t=this.getPrivate("min"),r=this.getPrivate("max");if(this.get("logarithmic")){if(e<=0){let i=this.get("treatZeroAs");q(i)&&(e=i)}return(Math.log(e)*Math.LOG10E-Math.log(t)*Math.LOG10E)/(Math.log(r)*Math.LOG10E-Math.log(t)*Math.LOG10E)}else return(e-t)/(r-t)}valueToFinalPosition(e){const t=this.getPrivate("minFinal"),r=this.getPrivate("maxFinal");if(this.get("logarithmic")){if(e<=0){let i=this.get("treatZeroAs");q(i)&&(e=i)}return(Math.log(e)*Math.LOG10E-Math.log(t)*Math.LOG10E)/(Math.log(r)*Math.LOG10E-Math.log(t)*Math.LOG10E)}else return(e-t)/(r-t)}getX(e,t,r){e=r+(e-r)*t;const i=this.valueToPosition(e);return this._settings.renderer.positionToCoordinate(i)}getY(e,t,r){e=r+(e-r)*t;const i=this.valueToPosition(e);return this._settings.renderer.positionToCoordinate(i)}getDataItemCoordinateX(e,t,r,i){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionX(e,t,r,i))}getDataItemPositionX(e,t,r,i){let s=e.get(t);if(e.get("stackToItemX")){const o=e.component;s=s*i+o.getStackedXValueWorking(e,t)}else s=this._baseValue+(s-this._baseValue)*i;return this.valueToPosition(s)}
103getDataItemCoordinateY(e,t,r,i){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionY(e,t,r,i))}getDataItemPositionY(e,t,r,i){let s=e.get(t);if(e.get("stackToItemY")){const o=e.component;s=s*i+o.getStackedYValueWorking(e,t)}else s=this._baseValue+(s-this._baseValue)*i;return this.valueToPosition(s)}basePosition(){return this.valueToPosition(this.baseValue())}baseValue(){const e=Math.min(this.getPrivate("minFinal",-1/0),this.getPrivate("selectionMin",-1/0)),t=Math.max(this.getPrivate("maxFinal",1/0),this.getPrivate("selectionMax",1/0));let r=this.get("baseValue",0);return r<e&&(r=e),r>t&&(r=t),r}cellEndValue(e){return e}fixSmallStep(e){return 1+e===1?(e*=2,this.fixSmallStep(e)):e}_fixMin(e){return e}_fixMax(e){return e}_calculateTotals(){if(this.get("calculateTotals")){let e=this.series[0];if(e){let t=e.startIndex();if(e.dataItems.length>0){t>0&&t--;let r=e.endIndex();r<e.dataItems.length&&r++;let i,s;e.get("yAxis")==this?(i="valueY",s="vcy"):e.get("xAxis")==this&&(i="valueX",s="vcx");let a=i+"Working";if(i)for(let o=t;o<r;o++){let l=0,u=0;Y(this.series,h=>{if(!h.get("excludeFromTotal")){let f=h.dataItems[o];if(f){let m=f.get(a)*h.get(s);Li(m)||(l+=m,u+=Math.abs(m))}}}),Y(this.series,h=>{if(!h.get("excludeFromTotal")){let f=h.dataItems[o];if(f){let m=f.get(a)*h.get(s);Li(m)||(f.set(i+"Total",u),f.set(i+"Sum",l),f.set(i+"TotalPercent",m/u*100))}}})}}}}}_getSelectionMinMax(){const e=this.getPrivate("minFinal"),t=this.getPrivate("maxFinal"),r=this.get("min"),i=this.get("max");let s=this.get("extraMin",0),a=this.get("extraMax",0);this.get("logarithmic")&&(this.get("extraMin")==null&&(s=.1),this.get("extraMax")==null&&(a=.2));const o=this.get("renderer").gridCount(),l=this.get("strictMinMaxSelection"),u=this.get("strictMinMax");if(q(e)&&q(t)){let h=t,f=e;if(Y(this.series,w=>{if(!w.get("ignoreMinMax")){let k,P;const j=w.getPrivate("outOfSelection");if(w.get("xAxis")===this){if(!j){let A=w.getPrivate("minX"),M=w.getPrivate("maxX");(w.startIndex()!=0||w.endIndex()!=w.dataItems.length)&&(A=void 0,M=void 0),k=w.getPrivate("selectionMinX",A),P=w.getPrivate("selectionMaxX",M)}}else if(w.get("yAxis")===this&&!j){let A=w.getPrivate("minY"),M=w.getPrivate("maxY");(w.startIndex()!=0||w.endIndex()!=w.dataItems.length)&&(A=void 0,M=void 0),k=w.getPrivate("selectionMinY",A),P=w.getPrivate("selectionMaxY",M)}!w.isHidden()&&!w.isShowing()&&(q(k)&&(h=Math.min(h,k)),q(P)&&(f=Math.max(f,P)))}}),this.axisRanges.each(w=>{if(w.get("affectsMinMax")){let k=w.get("value");k!=null&&(h=Math.min(h,k),f=Math.max(f,k)),k=w.get("endValue"),k!=null&&(h=Math.min(h,k),f=Math.max(f,k))}}),h>f&&([h,f]=[f,h]),q(r)?u?h=r:h=e:u&&q(this._minReal)&&(h=this._minReal),q(i)?u?f=i:f=t:u&&q(this._maxReal)&&(f=this._maxReal),h===f){h-=this._deltaMinMax,f+=this._deltaMinMax;let w=this._adjustMinMax(h,f,o,u);h=w.min,f=w.max}let m=h,g=f;h-=(f-h)*s,f+=(f-h)*a;let y=this._adjustMinMax(h,f,o);h=y.min,f=y.max,h=an(h,e,t),f=an(f,e,t),y=this._adjustMinMax(h,f,o,!0),u||(h=y.min,f=y.max);const v=this.get("syncWithAxis");v&&(y=this._syncAxes(h,f,y.step,v.getPrivate("selectionMinFinal",v.getPrivate("minFinal",0)),v.getPrivate("selectionMaxFinal",v.getPrivate("maxFinal",1)),v.getPrivate("selectionStepFinal",v.getPrivate("step",1))),h=y.min,f=y.max),u&&(q(r)&&(h=Math.max(h,r)),q(i)&&(f=Math.min(f,i))),l&&(h=m-(f-h)*s,f=g+(f-h)*a),this.get("logarithmic")&&(h<=0&&(h=m*(1-Math.min(s,.99))),h<e&&(h=e),f>t&&(f=t));let x=Math.min(20,Math.ceil(Math.log(this.getPrivate("maxZoomFactor",100)+1)/Math.LN10)+2),_=An(this.valueToFinalPosition(h),x),S=An(this.valueToFinalPosition(f),x);this.setPrivateRaw("selectionMinFinal",h),this.setPrivateRaw("selectionMaxFinal",f),this.setPrivateRaw("selectionStepFinal",y.step),this.zoom(_,S)}}_getMinMax(){let e=this.get("min"),t=this.get("max"),r=1/0,i=-1/0,s=this.get("extraMin",0),a=this.get("extraMax",0);this.get("logarithmic")&&(this.get("extraMin")==null&&(s=.1),this.get("extraMax")==null&&(a=.2));let o=1/0;if(Y(this.series,w=>{if(!w.get("ignoreMinMax")){let k,P;if(w.get("xAxis")===this?(k=w.getPrivate("minX"),P=w.getPrivate("maxX")):w.get("yAxis")===this&&(k=w.getPrivate("minY"),P=w.getPrivate("maxY")),q(k)&&q(P)){r=Math.min(r,k),i=Math.max(i,P);let j=P-k;j<=0&&(j=Math.abs(P/100)),j<o&&(o=j)}}}),this.axisRanges.each(w=>{if(w.get("affectsMinMax")){let k=w.get("value");k!=null&&(r=Math.min(r,k),i=Math.max(i,k)),k=w.get("endValue"),k!=null&&(r=Math.min(r,k),i=Math.max(i,k))}}),this.get("logarithmic")){let w=this.get("treatZeroAs");q(w)&&r<=0&&(r=w)}if(r===0&&i===0&&(i=.9,r=-.9),q(e)&&(r=e),q(t)&&(i=t),r===1/0||i===-1/0){this.setPrivate("minFinal",void 0),this.setPrivate("maxFinal",void 0);return}const l=r,u=i;let h=this.adapters.fold("min",r),f=this.adapters.fold("max",i);q(h)&&(r=h),q(f)&&(i=f),r=this._fixMin(r),i=this._fixMax(i),i-r<=1/Math.pow(10,15)&&(i-r!==0?this._deltaMinMax=(i-r)/2:this._getDelta(i),r-=this._deltaMinMax,i+=this._deltaMinMax),r-=(i-r)*s,i+=(i-r)*a,this.get("logarithmic")&&(r<0&&l>=0&&(r=0),i>0&&u<=0&&(i=0)),this._minReal=r,this._maxReal=i;let m=this.get("strictMinMax"),g=this.get("strictMinMaxSelection",!1);g&&(m=g);let y=m;q(t)&&(y=!0);let v=this.get("renderer").gridCount(),x=this._adjustMinMax(r,i,v,y);r=x.min,i=x.max,x=this._adjustMinMax(r,i,v,!0),r=x.min,i=x.max,m&&(q(e)?r=e:r=this._minReal,q(t)?i=t:i=this._maxReal,i-r<=1e-8&&(r-=this._deltaMinMax,i+=this._deltaMinMax),r-=(i-r)*s,i+=(i-r)*a),h=this.adapters.fold("min",r),f=this.adapters.fold("max",i),q(h)&&(r=h),q(f)&&(i=f),o==1/0&&(o=i-r);let _=Math.round(Math.abs(Math.log(Math.abs(i-r))*Math.LOG10E))+5;r=An(r,_),i=An(i,_);const S=this.get("syncWithAxis");if(S&&(x=this._syncAxes(r,i,x.step,S.getPrivate("minFinal",S.getPrivate("min",0)),S.getPrivate("maxFinal",S.getPrivate("max",1)),S.getPrivate("step",1)),r=x.min,i=x.max),this.setPrivateRaw("maxZoomFactor",Math.max(1,Math.ceil((i-r)/o*this.get("maxZoomFactor",100)))),this._fixZoomFactor(),this.get("logarithmic")&&(this._minLogAdjusted=r,r=this._minReal,i=this._maxReal,r<=0&&(r=l*(1-Math.min(s,.99)))),q(r)&&q(i)&&(this.getPrivate("minFinal")!==r||this.getPrivate("maxFinal")!==i)){this.setPrivate("minFinal",r),this.setPrivate("maxFinal",i),this._saveMinMax(r,i);const w=this.get("interpolationDuration",0),k=this.get("interpolationEasing");this.animatePrivate({key:"min",to:r,duration:w,easing:k}),this.animatePrivate({key:"max",to:i,duration:w,easing:k})}}_fixZoomFactor(){}_getDelta(e){let t=Math.log(Math.abs(e))*Math.LOG10E,r=Math.pow(10,Math.floor(t));r=r/10,this._deltaMinMax=r}_saveMinMax(e,t){}_adjustMinMax(e,t,r,i){r<=1&&(r=1),r=Math.round(r);let s=e,a=t,o=t-e;o===0&&(o=Math.abs(t));let l=Math.log(Math.abs(o))*Math.LOG10E,u=Math.pow(10,Math.floor(l));u=u/10;let h=u;i&&(h=0),i?(e=Math.floor(e/u)*u,t=Math.ceil(t/u)*u):(e=Math.ceil(e/u)*u-h,t=Math.floor(t/u)*u+h),e<0&&s>=0&&(e=0),t>0&&a<=0&&(t=0),l=Math.log(Math.abs(o))*Math.LOG10E,u=Math.pow(10,Math.floor(l)),u=u/100;let f=Math.ceil(o/r/u)*u,m=Math.pow(10,Math.floor(Math.log(Math.abs(f))*Math.LOG10E)),g=Math.ceil(f/m);g>5?g=10:g<=5&&g>2&&(g=5),f=Math.ceil(f/(m*g))*m*g;let y=this.get("maxPrecision");if(q(y)){let S=A7(f,y);y<Number.MAX_VALUE&&f!==S&&(f=S)}let v=0;m<1&&(v=Math.round(Math.abs(Math.log(Math.abs(m))*Math.LOG10E))+1,f=An(f,v));let x=Math.floor(e/f);e=An(f*x,v);let _;
103return i?_=Math.floor(t/f):_=Math.ceil(t/f),_===x&&_++,t=An(f*_,v),t<a&&(t=t+f),e>s&&(e=e-f),f=this.fixSmallStep(f),{min:e,max:t,step:f}}getTooltipText(e,t){const r=this.get("tooltipNumberFormat",this.get("numberFormat")),i=this.getNumberFormatter(),s=this.get("extraTooltipPrecision",0),a=this.getPrivate("stepDecimalPlaces",0)+s,o=An(this.positionToValue(e),a);return r?i.format(o,r):i.format(o,void 0,a)}getSeriesItem(e,t){let r=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),i=this.positionToValue(t),s,a;if(Y(e.dataItems,(o,l)=>{const u=Math.abs(o.get(r)-i);(s===void 0||u<a)&&(s=l,a=u)}),s!=null)return e.dataItems[s]}zoomToValues(e,t,r){const i=this.getPrivate("minFinal",0),s=this.getPrivate("maxFinal",0);this.getPrivate("min")!=null&&this.getPrivate("max")!=null&&this.zoom((e-i)/(s-i),(t-i)/(s-i),r)}_syncAxes(e,t,r,i,s,a){if(this.get("syncWithAxis")){let l=Math.round(s-i)/a,u=Math.round((t-e)/r),h=this.get("renderer").gridCount();if(q(l)&&q(u)){let f=!1,m=0,g=(t-e)*.01,y=e,v=t,x=r;for(;f!=!0;)if(f=this._checkSync(y,v,x,l),m++,m>500&&(f=!0),f)e=y,t=v,r=x;else{m/3==Math.round(m/3)?(y=e-g*m,e>=0&&y<0&&(y=0)):(v=t+g*m,v<=0&&v>0&&(v=0));let _=this._adjustMinMax(y,v,h,!0);y=_.min,v=_.max,x=_.step}}}return{min:e,max:t,step:r}}_checkSync(e,t,r,i){let s=(t-e)/r;for(let a=1;a<i;a++)if(An(s/a,1)==i||s*a==i)return!0;return!1}getCellWidthPosition(){let e=this.getPrivate("selectionMax",this.getPrivate("max")),t=this.getPrivate("selectionMin",this.getPrivate("min"));return q(e)&&q(t)?this.getPrivate("step",1)/(e-t):.05}}Object.defineProperty($i,"className",{enumerable:!0,configurable:!0,writable:!0,value:"ValueAxis"});Object.defineProperty($i,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:gl.classNames.concat([$i.className])});class la extends $i{constructor(){super(...arguments),Object.defineProperty(this,"_dataGrouped",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_seriesDataGrouped",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_groupingCalculated",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_intervalDuration",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"_baseDuration",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"_intervalMax",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_intervalMin",{enumerable:!0,configurable:!0,writable:!0,value:{}})}_afterNew(){this._settings.themeTags=ht(this._settings.themeTags,["axis"]),super._afterNew(),this._setBaseInterval(this.get("baseInterval")),this.on("baseInterval",()=>{this._setBaseInterval(this.get("baseInterval"))})}_setBaseInterval(e){this.setPrivateRaw("baseInterval",e),this._baseDuration=qi(e)}_fixZoomFactor(){const e=this.get("maxZoomFactor");e!=null&&e!=1/0?this.setPrivateRaw("maxZoomFactor",e):this.setPrivateRaw("maxZoomFactor",Math.round((this.getPrivate("max",0)-this.getPrivate("min",0))/this.baseMainDuration()))}_groupData(){const e=this.getPrivate("min"),t=this.getPrivate("max");if(q(e)&&q(t)){this._fixZoomFactor();const r=this.getPrivate("groupInterval");if(r?this._setBaseInterval(r):this._setBaseInterval(this.get("baseInterval")),this.isDirty("groupInterval")){let i=this.get("groupInterval");i&&(this.setRaw("groupIntervals",[i]),this._handleRangeChange())}if(this.isDirty("groupData")&&!this._dataGrouped){if(this.get("groupData"))Y(this.series,i=>
103{this._groupSeriesData(i)}),this._handleRangeChange();else{let i=this.get("baseInterval"),s=i.timeUnit+i.count;Y(this.series,a=>{a.setDataSet(s),a.resetGrouping()}),this._setBaseInterval(i),this.setPrivateRaw("groupInterval",void 0),this.markDirtyExtremes()}this._dataGrouped=!0}}}_groupSeriesData(e){if(this.get("groupData")&&!e.get("groupDataDisabled")){this._dataGrouped=!0,this._seriesDataGrouped=!0;let t=[],r=this.baseMainDuration(),i=this.get("groupIntervals");Y(i,x=>{qi(x)>r&&t.push(x)}),e._dataSets={};const s=this.getPrivate("name")+this.get("renderer").getPrivate("letter");let a;const o=e.get("baseAxis");e.get("xAxis")===o?a=e._valueYFields:e.get("yAxis")===o&&(a=e._valueXFields);let l=e._mainDataItems,u=this.get("baseInterval"),h=u.timeUnit+u.count;e._dataSets[h]=l;const f=e.get("groupDataCallback");let m=e.get("groupDataWithOriginals",!1);f&&(m=!0);const g=this._root.locale.firstDayOfWeek,y=this._root.utc,v=this._root.timezone;Y(t,x=>{let _=-1/0,S=x.timeUnit+x.count;e._dataSets[S]=[];let w,k={},P={},j={},A={};Y(a,Q=>{k[Q]=0,P[Q]=0,j[Q]=e.get(Q+"Grouped"),A[Q]=Q+"Working"});let M=fr(x.timeUnit),L=l[0],I;L&&(I=new Date(l[0].get(s)));let V;Y(l,Q=>{let U=Q.get(s),X=hn(new Date(U),x.timeUnit,x.count,g,y,I,v).getTime(),K;_<X-M/24?(K=Yo(Q.dataContext),w=new Ri(e,K,e._makeDataItem(K)),w.setRaw(s,X),e._dataSets[S].push(w),Y(a,z=>{let F=Q.get(z);q(F)?(w.setRaw(z,F),w.setRaw(A[z],F),P[z]=1,k[z]=F):(k[z]=0,P[z]=0)}),m&&w.set("originals",[Q]),f&&V&&f(V,x),V=w):(Y(a,z=>{let F=j[z],R=Q.get(z);if(R!=null){let B=w.get(z);switch(F){case"close":w.setRaw(z,R);break;case"sum":w.setRaw(z,B+R);break;case"open":break;case"low":R<B&&w.setRaw(z,R);break;case"high":R>B&&w.setRaw(z,R);break;case"average":P[z]++,k[z]+=R;let se=k[z]/P[z];w.setRaw(z,se);break;case"extreme":Math.abs(R)>Math.abs(B)&&w.setRaw(z,R);break}w.setRaw(A[z],w.get(z));let Z=Yo(Q.dataContext);Z[s]=X,w.dataContext=Z}}),m&&w.get("originals").push(Q)),_=X}),f&&V&&f(V,x)}),e._dataSetId&&e.setDataSet(e._dataSetId),this.markDirtySize()}}_clearDirty(){super._clearDirty(),this._groupingCalculated=!1,this._dataGrouped=!1}getGroupInterval(e){let t=this.get("baseInterval"),r=ax(0,e,this.get("groupCount",1/0),this.get("groupIntervals"));return qi(r)<qi(t)&&(r=Object.assign({},t)),r}getIntervalMax(e){return this._intervalMax[e.timeUnit+e.count]}getIntervalMin(e){return this._intervalMin[e.timeUnit+e.count]}_handleRangeChange(){super._handleRangeChange();let e=Math.round(this.getPrivate("selectionMin")),t=Math.round(this.getPrivate("selectionMax"));if(q(e)&&q(t)){if(this.get("endLocation")==0&&(t+=1),this.get("groupData")&&!this._groupingCalculated){this._groupingCalculated=!0;let r=this.get("groupInterval"),i=this.getPrivate("groupInterval"),s=t-e+(this.get("startLocation",0)+(1-this.get("endLocation",1))*this.baseDuration());if(i){let a=qi(i);s=Math.ceil(s/a)*a}if(r||(r=this.getGroupInterval(s)),r&&(!i||i.timeUnit!==r.timeUnit||i.count!==r.count||this._seriesDataGrouped)){this._seriesDataGrouped=!1,this.setPrivateRaw("groupInterval",r),this._setBaseInterval(r);let a=r.timeUnit+r.count;Y(this.series,o=>{o.get("baseAxis")===this&&o.setDataSet(a)}),this.markDirtyExtremes(),this._root.events.once("frameended",()=>{this._root.events.once("frameended",()=>{const o="groupintervalchanged";this.events.isEnabled(o)&&this.events.dispatch(o,{type:o,target:this})})})}}Y(this.series,r=>{if(r.get("baseAxis")===this){let i=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),a=fR(r.dataItems,v=>hs(v.get(i),e)).index;a>0&&(a-=1),t+=this.baseDuration()*(1-this.get("endLocation",1));let l=ex(r.dataItems,v=>hs(v.get(i),t)).index,u=l;u>1&&u--;const h=r.dataItems[a],f=r.dataItems[u];let m,g;h&&(g=h.get(i)),f&&(m=f.get(i));let y=!1;m!=null&&g!=null&&(m<e||g>t)&&(y=!0),r.setPrivate("outOfSelection",y),r.setPrivate("startIndex",a),r.setPrivate("endIndex",l)}})}}_adjustMinMax(e,t,r,i){return{min:e,max:t,step:(t-e)/r}}intervalDuration(){return this._intervalDuration}_saveMinMax(e,t){let r=this.getPrivate("groupInterval");r||(r=this.get("baseInterval"));let i=r.timeUnit+r.count;this._intervalMin[i]=e,this._intervalMax[i]=t}_getM(e){return e=="month"||e=="year"||e=="day"?1.05:1.01}_getMinorInterval(e){var t;let r,i=e.count,s=e.timeUnit;return i>
1031&&(i==10||i==15?i=5:i==12?i=2:i==6?i=1:i==30?i=10:i<10&&(i=1),r={timeUnit:s,count:i}),s=="week"&&((t=this.getPrivate("baseInterval"))===null||t===void 0?void 0:t.timeUnit)!="week"&&(r={timeUnit:"day",count:1}),r}_prepareAxisItems(){const e=this.getPrivate("min"),t=this.getPrivate("max");if(q(e)&&q(t)){const r=Math.round(this.getPrivate("selectionMin")),i=Math.round(this.getPrivate("selectionMax")),s=this.get("renderer"),a=this.getPrivate("baseInterval");let o=r,l=0;const u=this.get("gridIntervals");let h=ax(0,i-r,s.gridCount(),u);qi(h)<this.baseDuration()&&(h=Object.assign({},a));const f=qi(h);this._intervalDuration=f;const m=CR(h.timeUnit),g=this._root.locale.firstDayOfWeek,y=this._root.utc,v=this._root.timezone;o=hn(new Date(r-f),h.timeUnit,h.count,g,y,new Date(e),v).getTime();let x=o-f,_;const S=this.get("dateFormats");this.setPrivateRaw("gridInterval",h);const w=s.get("minorLabelsEnabled"),k=s.get("minorGridEnabled",w);let P,j=0;k&&(P=this._getMinorInterval(h),j=qi(P));let A=0;for(;o<i+f;){let M;this.dataItems.length<l+1?(M=new Ri(this,void 0,{}),this._dataItems.push(M),this.processDataItem(M)):M=this.dataItems[l],this._createAssets(M,[]),this._toggleDataItem(M,!0),M.setRaw("value",o),M.setRaw("labelEndValue",void 0);let L=o+fr(h.timeUnit,h.count*this._getM(h.timeUnit));L=hn(new Date(L),h.timeUnit,1,g,y,void 0,v).getTime(),M.setRaw("endValue",L);let I=new Date(o);_=S[h.timeUnit],m&&this.get("markUnitChange")&&q(x)&&h.timeUnit!="year"&&ER(o,x,m,y,v)&&(_=this.get("periodChangeDateFormats")[h.timeUnit]);const V=M.get("label");V&&V.set("text",this._root.dateFormatter.format(I,_));let Q=h.count;if(h.timeUnit=="week"&&M.setRaw("labelEndValue",o),k){Q=1;let U=h.timeUnit;U=="week"&&(U="day");let X=o+fr(U,this._getM(U));X=hn(new Date(X),U,1,g,y,void 0,v).getTime(),M.setRaw("labelEndValue",X)}if(this._prepareDataItem(M,Q),x=o,o=L,P){let U=hn(new Date(x+j*this._getM(P.timeUnit)),P.timeUnit,P.count,g,y,new Date(x),v).getTime(),X,K=this.get("minorDateFormats",this.get("dateFormats"));for(;U<o-.01*j;){let z;this.minorDataItems.length<A+1?(z=new Ri(this,void 0,{}),this.minorDataItems.push(z),this.processDataItem(z)):z=this.minorDataItems[A],this._createAssets(z,["minor"],!0),this._toggleDataItem(z,!0),z.setRaw("value",U);let F=U+fr(P.timeUnit,P.count*this._getM(P.timeUnit));F=hn(new Date(F),P.timeUnit,1,g,y,void 0,v).getTime(),z.setRaw("endValue",F);let R=new Date(U);_=K[P.timeUnit];const B=z.get("label");if(B&&(w?B.set("text",this._root.dateFormatter.format(R,_)):B.setPrivate("visible",!1)),this._prepareDataItem(z,1),U==X)break;X=U,U=F,A++}}if(o==x)break;l++}for(let M=l;M<this.dataItems.length;M++)this._toggleDataItem(this.dataItems[M],!1);for(let M=A;M<this.minorDataItems.length;M++)this._toggleDataItem(this.minorDataItems[M],!1);Y(this.series,M=>{M.inited&&M._markDirtyAxes()})}this._updateGhost()}_updateFinals(e,t){this.setPrivateRaw("selectionMinFinal",this.positionToValue(e)),this.setPrivateRaw("selectionMaxFinal",this.positionToValue(t))}_getDelta(){this._deltaMinMax=this.baseDuration()/2}_fixMin(e){const t=this.getPrivate("baseInterval"),r=this._root.locale.firstDayOfWeek,i=this._root.timezone,s=this._root.utc,a=t.timeUnit;let o=hn(new Date(e),a,t.count,r,s,void 0,i).getTime(),l=o+fr(a,t.count*this._getM(a));return l=hn(new Date(l),a,1,r,s,void 0,i).getTime(),o+(l-o)*this.get("startLocation",0)}_fixMax(e){const t=this.getPrivate("baseInterval"),r=this._root.locale.firstDayOfWeek,i=this._root.timezone,s=this._root.utc,a=t.timeUnit;let o=hn(new Date(e),a,t.count,r,s,void 0,i).getTime(),l=o+fr(a,t.count*this._getM(a));return l=hn(new Date(l),a,1,r,s,void 0,i).getTime(),o+(l-o)*this.get("endLocation",1)}_updateDates(e,t){}baseDuration(){return this._baseDuration}baseMainDuration(){return qi(this.get("baseInterval"))}processSeriesDataItem(e,t){const r=this.getPrivate("baseInterval");e.open||(e.open={}),e.close||(e.close={}),Y(t,i=>{let s=e.get(i);if(q(s)){let a=e.open[i],o=e.close[i];if(!(s>=a&&s<=o)){const l=this._root.locale.firstDayOfWeek,u=this._root.utc,h=this._root.timezone,f=r.timeUnit,m=r.count;a=hn(new Date(s),f,m,l,u,void 0,h).getTime(),o=a+fr(f,m*this._getM(f)),o=hn(new Date(o),f,1,l,u,void 0,h).getTime(),e.open[i]=a,e.close[i]=o}this._updateDates(a,e.component)}})}getDataItemPositionX(e,t,r,i){let s,a;e.open&&e.close?(s=e.open[t],a=e.close[t]):(s=e.get(t),a=s);let o=s+(a-s)*r;return o=this._baseValue+(o-this._baseValue)*i,this.valueToPosition(o)}getDataItemCoordinateX(e,t,r,i){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionX(e,t,r,i))}
103getDataItemPositionY(e,t,r,i){let s,a;e.open&&e.close?(s=e.open[t],a=e.close[t]):(s=e.get(t),a=s);let o=s+(a-s)*r;return o=this._baseValue+(o-this._baseValue)*i,this.valueToPosition(o)}getDataItemCoordinateY(e,t,r,i){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionY(e,t,r,i))}roundAxisPosition(e,t){let r=this.positionToValue(e);r=r-(t-.5)*this.baseDuration();let i=this.getPrivate("baseInterval");if(!Li(r)){const s=this._root.locale.firstDayOfWeek,a=i.timeUnit,o=this._root.utc,l=this._root.timezone,u=i.count;r=hn(new Date(r),a,u,s,o,new Date(this.getPrivate("min",0)),l).getTime();let h=r_(i,new Date(r),s,o,l);return l&&(r=hn(new Date(r+this.baseDuration()*.05),a,u,s,o,new Date(this.getPrivate("min",0)),l).getTime(),h=r_(i,new Date(r+h*t),s,o,l)),this.valueToPosition(r+h*t)}return NaN}getTooltipText(e,t){if(this.getPrivate("min")!=null){let r=this.get("tooltipDateFormats")[this.getPrivate("baseInterval").timeUnit],i=this.positionToValue(e);if(q(i)){let s=new Date(i),a=this.getPrivate("baseInterval"),o=r_(a,s,this._root.locale.firstDayOfWeek,this._root.utc,this._root.timezone);return t!==!1&&(s=new Date(i+this.get("tooltipIntervalOffset",-this.get("tooltipLocation",.5))*o)),this._root.dateFormatter.format(s,this.get("tooltipDateFormat",r))}}return""}getSeriesItem(e,t,r,i){let s=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),a=this.positionToValue(t);r==null&&(r=.5),a=a-(r-.5)*this.baseDuration();const o=ex(e.dataItems,l=>{let u=0;return l.open&&(u=l.open[s]),hs(u,a)});if(i||e.get("snapTooltip")){let l=e.dataItems[o.index-1],u=e.dataItems[o.index];if(l&&u&&l.open&&u.close){let h=l.open[s],f=u.close[s];if(Math.abs(a-h)>Math.abs(a-f))return u}if(l)return l;if(u)return u}else{const l=e.dataItems[o.index-1];if(l&&l.open&&l.close){let u=l.open[s],h=l.close[s];if(a>=u&&a<=h)return l}}}shouldGap(e,t,r,i){const s=e.get(i);return t.get(i)-s>this.baseDuration()*r}zoomToDates(e,t,r){this.zoomToValues(e.getTime(),t.getTime(),r)}positionToDate(e){return new Date(this.positionToValue(e))}dateToPosition(e){return this.valueToPosition(e.getTime())}getCellWidthPosition(){let e=this.getPrivate("selectionMax",this.getPrivate("max")),t=this.getPrivate("selectionMin",this.getPrivate("min"));return q(e)&&q(t)?this._intervalDuration/(e-t):.05}}Object.defineProperty(la,"className",{enumerable:!0,configurable:!0,writable:!0,value:"DateAxis"});Object.defineProperty(la,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:$i.classNames.concat([la.className])});class am extends pi{constructor(){super(...arguments),Object.defineProperty(this,"_tickPoints",{enumerable:!0,configurable:!0,writable:!0,value:[]})}}Object.defineProperty(am,"className",{enumerable:!0,configurable:!0,writable:!0,value:"AxisLabel"});Object.defineProperty(am,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:pi.classNames.concat([am.className])});class om extends Zu{constructor(){super(...arguments),Object.defineProperty(this,"_tickPoints",{enumerable:!0,configurable:!0,writable:!0,value:[]})}}Object.defineProperty(om,"className",{enumerable:!0,configurable:!0,writable:!0,value:"AxisTick"});Object.defineProperty(om,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:Zu.classNames.concat([om.className])});class ml extends ot{constructor(){super(...arguments),Object.defineProperty(this,"_axisLength",{enumerable:!0,configurable:!0,writable:!0,value:100}),Object.defineProperty(this,"_start",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_end",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"_inversed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_minSize",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"chart",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_lc",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"_ls",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_thumbDownPoint",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_downStart",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_downEnd",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"ticks",{enumerable:!0,configurable:!0,writable:!0,value:new Nr(Gt.new({}),()=>om._new(this._root,{themeTags:ht(this.ticks.template.get("themeTags",[]),this.get("themeTags",[]))},[this.ticks.template]))}),Object.defineProperty(this,"grid",{enumerable:!0,configurable:!0,writable:!0,value:new Nr(Gt.new({}),()=>ec._new(this._root,{themeTags:ht(this.grid.template.get("themeTags",[]),this.get("themeTags",[]))},[this.grid.template]))}),Object.defineProperty(this,"axisFills",{enumerable:!0,configurable:!0,writable:!0,value:new Nr(Gt.new({}),()=>ot._new(this._root,{themeTags:ht(this.axisFills.template.get("themeTags",["axis","fill"]),this.get("themeTags",[]))},[this.axisFills.template]))}),Object.defineProperty(this,"labels",{enumerable:!0,configurable:!0,writable:!0,value:new Nr(Gt.new({}),()=>am._new(this._root,{themeTags:ht(this.labels.template.get("themeTags",[]),this.get("themeTags",[]))},[this.labels.template]))}),Object.defineProperty(this,"axis",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"thumb",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}makeTick(e,t){const r=this.ticks.make();return r._setDataItem(e),e.setRaw("tick",r),r.set("themeTags",ht(r.get("themeTags"),t)),this.axis.labelsContainer.children.push(r),this.ticks.push(r),r}makeGrid(e,t){const r=this.grid.make();return r._setDataItem(e),e.setRaw("grid",r),r.set("themeTags",ht(r.get("themeTags"),t)),this.axis.gridContainer.children.push(r),this.grid.push(r),r}makeAxisFill(e,t){const r=this.axisFills.make();return r._setDataItem(e),r.set("themeTags",ht(r.get("themeTags"),t)),this.axis.gridContainer.children.push(r),e.setRaw("axisFill",r),this.axisFills.push(r),r}makeLabel(e,t){const r=this.labels.make();return r.set("themeTags",ht(r.get("themeTags"),t)),this.axis.labelsContainer.children.moveValue(r,0),r._setDataItem(e),e.setRaw("label",r),this.labels.push(r),r}axisLength(){return 0}gridCount(){return this.axisLength()/this.get("minGridDistance",50)}_updatePositions(){}_afterNew(){super._afterNew(),this.set("isMeasured",!1);const e=this.thumb;e&&(this._disposers.push(e.events.on("pointerdown",t=>{this._handleThumbDown(t)})),this._disposers.push(e.events.on("globalpointerup",t=>{this._handleThumbUp(t)})),this._disposers.push(e.events.on("globalpointermove",t=>{this._handleThumbMove(t)})))}_beforeChanged(){super._beforeChanged(),this.isDirty("minGridDistance")&&this.root.events.once("frameended",()=>{this.axis.markDirtySize()})}_changed(){if(super._changed(),this.isDirty("pan")){const e=this.thumb;if(e){const t=this.axis.labelsContainer,r=this.get("pan");r=="zoom"?t.children.push(e):r=="none"&&t.children.removeValue(e)}}}_handleThumbDown(e){this._thumbDownPoint=this.toLocal(e.point);const t=this.axis;this._downStart=t.get("start"),this._downEnd=t.get("end")}_handleThumbUp(e){this._thumbDownPoint=void 0}_handleThumbMove(e){const t=this._thumbDownPoint;if(t){const r=this.toLocal(e.point),i=this._downStart,s=this._downEnd,a=this._getPan(r,t)*Math.min(1,s-i)/2;
103this.axis.zoom(i-a,s+a,0)}}_getPan(e,t){return 0}positionToCoordinate(e){return this._inversed?(this._end-e)*this._axisLength:(e-this._start)*this._axisLength}updateTooltipBounds(e){}_updateSize(){this.markDirty(),this._clear=!0}toAxisPosition(e){const t=this._start||0,r=this._end||1;return e=e*(r-t),this.get("inversed")?e=r-e:e=t+e,e}toGlobalPosition(e){const t=this._start||0,r=this._end||1;return this.get("inversed")?e=r-e:e=e-t,e=e/(r-t),e}fixPosition(e){return this.get("inversed")?1-e:e}_updateLC(){}toggleVisibility(e,t,r,i){let s=this.axis;const a=s.get("start",0),o=s.get("end",1);let l=a+(o-a)*(r-1e-4),u=a+(o-a)*(i+1e-4);t<l||t>u?e.setPrivate("visible",!1):e.setPrivate("visible",!0)}_positionTooltip(e,t){const r=this.chart;r&&(r.inPlot(t)?e.set("pointTo",this._display.toGlobal(t)):e.hide())}processAxis(){}}Object.defineProperty(ml,"className",{enumerable:!0,configurable:!0,writable:!0,value:"AxisRenderer"});Object.defineProperty(ml,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:ot.classNames.concat([ml.className])});class Vi extends ml{constructor(){super(...arguments),Object.defineProperty(this,"thumb",{enumerable:!0,configurable:!0,writable:!0,value:Yr.new(this._root,{width:le,isMeasured:!1,themeTags:["axis","x","thumb"]})})}_afterNew(){this._settings.themeTags=ht(this._settings.themeTags,["renderer","x"]),super._afterNew(),this.setPrivateRaw("letter","X");const e=this.grid.template;e.set("height",le),e.set("width",0),e.set("draw",(t,r)=>{t.moveTo(0,0),t.lineTo(0,r.height())}),this.set("draw",(t,r)=>{t.moveTo(0,0),t.lineTo(r.width(),0)})}_changed(){super._changed();const e=this.axis;e.ghostLabel.setPrivate("visible",!this.get("inside")),e.ghostLabel.set("x",-1e3);const t="opposite",r="inside";if(this.isDirty(t)||this.isDirty(r)){const i=this.chart,s=e.children;if(this.get(r)?e.addTag(r):e.removeTag(r),i){if(this.get(t)){const a=i.topAxesContainer.children;a.indexOf(e)==-1&&a.insertIndex(0,e),e.addTag(t),s.moveValue(this)}else{const a=i.bottomAxesContainer.children;a.indexOf(e)==-1&&a.moveValue(e),e.removeTag(t),s.moveValue(this,0)}e.ghostLabel._applyThemes(),this.labels.each(a=>{a._applyThemes()}),this.root._markDirtyRedraw()}e.markDirtySize()}this.thumb.setPrivate("height",e.labelsContainer.height())}_getPan(e,t){return(t.x-e.x)/this.width()}toAxisPosition(e){const t=this._start||0,r=this._end||1;return e-=this._ls,e=e*(r-t)/this._lc,this.get("inversed")?e=r-e:e=t+e,e}toGlobalPosition(e){const t=this._start||0,r=this._end||1;return this.get("inversed")?e=r-e:e=e-t,e=e/(r-t)*this._lc,e+=this._ls,e}_updateLC(){const e=this.axis,t=e.parent;if(t){const r=t.innerWidth();this._lc=this.axisLength()/r,this._ls=(e.x()-t.get("paddingLeft",0))/r}}_updatePositions(){const e=this.axis,t=e.x()-Vt(e.get("centerX",0),e.width())-e.parent.get("paddingLeft",0);e.gridContainer.set("x",t),e.topGridContainer.set("x",t),e.bulletsContainer.set("y",this.y());const r=e.chart;if(r){const i=r.plotContainer,s=e.axisHeader;let a=e.get("marginLeft",0),o=e.x()-a;const l=e.parent;l&&(o-=l.get("paddingLeft",0)),s.children.length>0?(a=e.axisHeader.width(),e.set("marginLeft",a+1)):s.set("width",a),s.setAll({x:o,y:-1,height:i.height()+2})}}processAxis(){super.processAxis();const e=this.axis;e.set("width",le);const t=this._root.verticalLayout;e.set("layout",t),e.labelsContainer.set("width",le),e.axisHeader.setAll({layout:t})}axisLength(){return this.axis.width()}positionToPoint(e){return{x:this.positionToCoordinate(e),y:0}}updateTick(e,t,r,i){if(e){q(t)||(t=0);let s=.5;q(i)&&i>1?s=e.get("multiLocation",s):s=e.get("location",s),q(r)&&r!=t&&(t=t+(r-t)*s),e.set("x",this.positionToCoordinate(t));let a=e.get("length",0);const o=e.get("inside",this.get("inside",!1));this.get("opposite")?(e.set("y",le),o||(a*=-1)):(e.set("y",0),o&&(a*=-1)),e.set("draw",l=>{l.moveTo(0,0),l.lineTo(0,a)}),this.toggleVisibility(e,t,e.get("minPosition",0),e.get("maxPosition",1))}}updateLabel(e,t,r,i){if(e){let s=.5;q(i)&&i>1?s=e.get("multiLocation",s):s=e.get("location",s),q(t)||(t=0);const a=e.get("inside",this.get("inside",!1));this.get("opposite")?a?(e.set("position","absolute"),e.set("y",0)):(e.set("position","relative"),e.set("y",le)):a?(e.set("y",0),e.set("position","absolute")):(e.set("y",void 0),e.set("position","relative")),q(r)&&r!=t&&(t=t+(r-t)*s),e.set("x",this.positionToCoordinate(t)),this.toggleVisibility(e,t,e.get("minPosition",0),e.get("maxPosition",1))}}updateGrid(e,t,r){if(e){q(t)||(t=0);let i=e.get("location",.5);q(r)&&r!=t&&(t=t+(r-t)*i),e.set("x",this.positionToCoordinate(t)),this.toggleVisibility(e,t,0,1)}}updateBullet(e,t,r){if(e){const i=e.get("sprite");if(i){q(t)||(t=0);let s=e.get("location",.5);q(r)&&r!=t&&(t=t+(r-t)*s);let a=this.axis.roundAxisPosition(t,s),o=this.axis._bullets[a],l=-1;if(this.get("opposite")&&(l=1),e.get("stacked"))if(o){let u=o.get("sprite");u&&i.set("y",u.y()+u.height()*l)}else i.set("y",0);this.axis._bullets[a]=e,i.set("x",this.positionToCoordinate(t)),this.toggleVisibility(i,t,0,1)}}}updateFill(e,t,r){if(e){q(t)||(t=0),q(r)||(r=1);let i=this.positionToCoordinate(t),s=this.positionToCoordinate(r);this.fillDrawMethod(e,i,s)}}fillDrawMethod(e,t,r){e.set("draw",i=>{const s=this.axis.gridContainer.height(),a=this.width();r<t&&([r,t]=[t,r]),!(t>a||r<0)&&(i.moveTo(t,0),i.lineTo(r,0),i.lineTo(r,s),i.lineTo(t,s),i.lineTo(t,0))})}positionTooltip(e,t){this._positionTooltip(e,{x:this.positionToCoordinate(t),y:0})}updateTooltipBounds(e){const t=this.get("inside"),r=1e5;let i=this._display.toGlobal({x:0,y:0}),s=i.x,a=0,o=this.axisLength(),l=r,u="up";this.get("opposite")?t?(u="up",a=i.y,l=r):(u="down",a=i.y-r,l=r):t?(u="down",a=i.y-r,l=r):(u="up",a=i.y,l=r);const h={left:s,right:s+o,top:a,bottom:a+l},f=e.get("bounds");bR(h,f)||(e.set("bounds",h),e.set("pointerOrientation",u))}}Object.defineProperty(Vi,"className",{enumerable:!0,configurable:!0,writable:!0,value:"AxisRendererX"});Object.defineProperty(Vi,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:ml.classNames.c
103oncat([Vi.className])});class ua extends ml{constructor(){super(...arguments),Object.defineProperty(this,"_downY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"thumb",{enumerable:!0,configurable:!0,writable:!0,value:Yr.new(this._root,{height:le,isMeasured:!1,themeTags:["axis","y","thumb"]})})}_afterNew(){this._settings.themeTags=ht(this._settings.themeTags,["renderer","y"]),this._settings.opposite&&this._settings.themeTags.push("opposite"),super._afterNew(),this.setPrivateRaw("letter","Y");const e=this.grid.template;e.set("width",le),e.set("height",0),e.set("draw",(t,r)=>{t.moveTo(0,0),t.lineTo(r.width(),0)}),this.set("draw",(t,r)=>{t.moveTo(0,0),t.lineTo(0,r.height())})}_getPan(e,t){return(e.y-t.y)/this.height()}_changed(){super._changed();const e=this.axis;e.ghostLabel.setPrivate("visible",!this.get("inside")),e.ghostLabel.set("y",-1e3);const t=this.thumb,r="opposite",i="inside",s=this.chart;if(this.isDirty(r)||this.isDirty(i)){const o=e.children;if(this.get(i)?e.addTag(i):e.removeTag(i),s){if(this.get(r)){const l=s.rightAxesContainer.children;l.indexOf(e)==-1&&l.moveValue(e,0),e.addTag(r),o.moveValue(this,0)}else{const l=s.leftAxesContainer.children;l.indexOf(e)==-1&&l.moveValue(e),e.removeTag(r),o.moveValue(this)}e.ghostLabel._applyThemes(),this.labels.each(l=>{l._applyThemes()}),this.root._markDirtyRedraw()}e.markDirtySize()}const a=e.labelsContainer.width();s&&(this.get(r)?t.set("centerX",0):t.set("centerX",a)),t.setPrivate("width",a)}processAxis(){super.processAxis();const e=this.axis;e.get("height")==null&&e.set("height",le);const t=this._root.horizontalLayout;e.set("layout",t),e.labelsContainer.set("height",le),e.axisHeader.set("layout",t)}_updatePositions(){const e=this.axis,t=e.y()-Vt(e.get("centerY",0),e.height());e.gridContainer.set("y",t),e.topGridContainer.set("y",t),e.bulletsContainer.set("x",this.x());const r=e.chart;if(r){const i=r.plotContainer,s=e.axisHeader;let a=e.get("marginTop",0);s.children.length>0?(a=e.axisHeader.height(),e.set("marginTop",a+1)):s.set("height",a),s.setAll({y:e.y()-a,x:-1,width:i.width()+2})}}axisLength(){return this.axis.innerHeight()}positionToPoint(e){return{x:0,y:this.positionToCoordinate(e)}}updateLabel(e,t,r,i){if(e){q(t)||(t=0);let s=.5;q(i)&&i>1?s=e.get("multiLocation",s):s=e.get("location",s);const a=this.get("opposite"),o=e.get("inside",this.get("inside",!1));a?(e.set("x",0),o?e.set("position","absolute"):e.set("position","relative")):o?(e.set("x",0),e.set("position","absolute")):(e.set("x",void 0),e.set("position","relative")),q(r)&&r!=t&&(t=t+(r-t)*s),e.set("y",this.positionToCoordinate(t)),this.toggleVisibility(e,t,e.get("minPosition",0),e.get("maxPosition",1))}}updateGrid(e,t,r){if(e){q(t)||(t=0);let i=e.get("location",.5);q(r)&&r!=t&&(t=t+(r-t)*i),e.set("y",this.positionToCoordinate(t)),this.toggleVisibility(e,t,0,1)}}updateTick(e,t,r,i){if(e){q(t)||(t=0);let s=.5;q(i)&&i>1?s=e.get("multiLocation",s):s=e.get("location",s),q(r)&&r!=t&&(t=t+(r-t)*s),e.set("y",this.positionToCoordinate(t));let a=e.get("length",0);const o=e.get("inside",this.get("inside",!1));this.get("opposite")?(e.set("x",0),o&&(a*=-1)):o||(a*=-1),e.set("draw",l=>{l.moveTo(0,0),l.lineTo(a,0)}),this.toggleVisibility(e,t,e.get("minPosition",0),e.get("maxPosition",1))}}updateBullet(e,t,r){if(e){const i=e.get("sprite");if(i){q(t)||(t=0);let s=e.get("location",.5);q(r)&&r!=t&&(t=t+(r-t)*s);let a=this.axis.roundAxisPosition(t,s),o=this.axis._bullets[a],l=1;if(this.get("opposite")&&(l=-1),e.get("stacked"))if(o){let u=o.get("sprite");u&&i.set("x",u.x()+u.width()*l)}else i.set("x",0);this.axis._bullets[a]=e,i.set("y",this.positionToCoordinate(t)),this.toggleVisibility(i,t,0,1)}}}updateFill(e,t,r){if(e){q(t)||(t=0),q(r)||(r=1);let i=this.positionToCoordinate(t),s=this.positionToCoordinate(r);this.fillDrawMethod(e,i,s)}}fillDrawMethod(e,t,r){e.set("draw",i=>{const s=this.axis.gridContainer.width(),a=this.height();r<t&&([r,t]=[t,r]),!(t>a||r<0)&&(i.moveTo(0,t),i.lineTo(s,t),i.lineTo(s,r),i.lineTo(0,r),i.lineTo(0,t))})}positionToCoordinate(e){return this._inversed?(e-this._start)*this._axisLength:(this._end-e)*this._axisLength}positionTooltip(e,t){this._positionTooltip(e,{x:0,y:this.positionToCoordinate(t)})}updateTooltipBounds(e){const t=this.get("inside"),r=1e5;let i=this._display.toGlobal({x:0,y:0}),s=i.y,a=0,o=this.axisLength(),l=r,u="right";this.get("opposite")?t?(u="right",a=i.x-r,l=r):(u="left",a=i.x,l=r):t?(u="left",a=i.x,l=r):(u="right",a=i.x-r,l=r);const h={left:a,right:a+l,top:s,bottom:s+o},f=e.get("bounds");bR(h,f)||(e.set("bounds",h),e.set("pointerOrientation",u))}_updateLC(){const e=this.axis,t=e.parent;
103if(t){const r=t.innerHeight();this._lc=this.axisLength()/r,this._ls=e.y()/r}}toAxisPosition(e){const t=this._start||0,r=this._end||1;return e-=this._ls,e=e*(r-t)/this._lc,this.get("inversed")?e=t+e:e=r-e,e}toGlobalPosition(e){const t=this._start||0,r=this._end||1;return this.get("inversed")?e=e-t:e=r-e,e=e/(r-t)*this._lc,e+=this._ls,e}fixPosition(e){return this.get("inversed")?e:1-e}}Object.defineProperty(ua,"className",{enumerable:!0,configurable:!0,writable:!0,value:"AxisRendererY"});Object.defineProperty(ua,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:ml.classNames.concat([ua.className])});class vl extends pl{constructor(){super(...arguments),Object.defineProperty(this,"columns",{enumerable:!0,configurable:!0,writable:!0,value:new Nr(Gt.new({}),()=>xr._new(this._root,{position:"absolute",themeTags:ht(this.columns.template.get("themeTags",[]),["series","column"])},[this.columns.template]))})}makeColumn(e,t){const r=this.mainContainer.children.push(t.make());return r._setDataItem(e),t.push(r),r}_processAxisRange(e){super._processAxisRange(e),e.columns=new Nr(Gt.new({}),()=>xr._new(this._root,{position:"absolute",themeTags:ht(e.columns.template.get("themeTags",[]),["series","column"])},[this.columns.template,e.columns.template]))}}Object.defineProperty(vl,"className",{enumerable:!0,configurable:!0,writable:!0,value:"ColumnSeries"});Object.defineProperty(vl,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:pl.classNames.concat([vl.className])});class ca extends hl{constructor(){super(...arguments),Object.defineProperty(this,"_endIndex",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_strokeGenerator",{enumerable:!0,configurable:!0,writable:!0,value:IR()}),Object.defineProperty(this,"_fillGenerator",{enumerable:!0,configurable:!0,writable:!0,value:KG()}),Object.defineProperty(this,"_legendStroke",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_legendFill",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"strokes",{enumerable:!0,configurable:!0,writable:!0,value:new Nr(Gt.new({}),()=>ot._new(this._root,{themeTags:ht(this.strokes.template.get("themeTags",[]),["line","series","stroke"])},[this.strokes.template]))}),Object.defineProperty(this,"fills",{enumerable:!0,configurable:!0,writable:!0,value:new Nr(Gt.new({}),()=>ot._new(this._root,{themeTags:ht(this.strokes.template.get("themeTags",[]),["line","series","fill"])},[this.fills.template]))}),Object.defineProperty(this,"_fillTemplate",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_strokeTemplate",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_previousPoint",{enumerable:!0,configurable:!0,writable:!0,value:[0,0,0,0]}),Object.defineProperty(this,"_dindex",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_sindex",{enumerable:!0,configurable:!0,writable:!0,value:0})}_afterNew(){this._fillGenerator.y0(function(e){return e[3]}),this._fillGenerator.x0(function(e){return e[2]}),this._fillGenerator.y1(function(e){return e[1]}),this._fillGenerator.x1(function(e){return e[0]}),super._afterNew()}makeStroke(e){const t=this.mainContainer.children.push(e.make());return e.push(t),t}makeFill(e){const t=this.mainContainer.children.push(e.make());return e.push(t),t}_updateChildren(){this._strokeTemplate=void 0,this._fillTemplate=void 0;let e=this.get("xAxis"),t=this.get("yAxis");if(this.isDirty("stroke")){const r=this.get("stroke");this.strokes.template.set("stroke",r);const i=this._legendStroke;i&&i.states.lookup("default").set("stroke",r)}if(this.isDirty("fill")){const r=this.get("fill");this.fills.template.set("fill",r);const i=this._legendFill;i&&i.states.lookup("default").set("fill",r)}if(this.isDirty("curveFactory")){const r=this.get("curveFactory");r&&(this._strokeGenerator.curve(r),this._fillGenerator.curve(r))}if(e.inited&&t.inited){if(this._axesDirty||this._valuesDirty||this._stackDirty||this.isDirty("vcx")||this.isDirty("vcy")||this._sizeDirty||this.isDirty("connect")||this.isDirty("curveFactory")){this.fills.each(h=>{h.setPrivate("visible",!1)}),this.strokes.each(h=>{h.setPrivate("visible",!1)}),this.axisRanges.each(h=>{let f=h.fills;f&&f.each(g=>{g.setPrivate("visible",!1)});let m=h.strokes;m&&m.each(g=>{g.setPrivate("visible",!1)})});let r=this.startIndex(),i=this.strokes.template.get("templateField"),s=this.fills.template.get("templateField"),a=!0,o=!0;i&&(a=!1),s&&(o=!1);for(let h=r-1;h>=0;h--){let f=this.dataItems[h],m=!0,g=f.dataContext;if(i&&g[i]&&(a=!0),s&&g[s]&&(o=!0),Y(this._valueFields,y=>{q(f.get(y))||(m=!1)}),m&&a&&o){r=h;break}}let l=this.dataItems.length,u=this.endIndex();if(u<l){u++;for(let h=u;h<l;h++){let f=this.dataItems[h],m=!0;if(Y(this._valueFields,g=>{q(f.get(g))||(m=!1)}),m){u=h+1;break}}}if(r>0&&r--,this._endIndex=u,this._clearGraphics(),this._sindex=0,this._dindex=r,this.dataItems.length==1)this._startSegment(0);else for(;this._dindex<u-1;)this._startSegment(this._dindex),this._sindex++}}else this._skipped=!0;super._updateChildren()}_clearGraphics(){this.strokes.clear(),this.fills.clear()}_startSegment(e){let t=this._endIndex,r=t;const i=this.get("autoGapCount"),s=this.get("connect"),a=this.makeFill(this.fills),o=this._fillTemplate,l=this.fills.template;o&&o!=l&&(a.template=o),a.setPrivate("visible",!0);const u=this.makeStroke(this.strokes),h=this._strokeTemplate;h&&h!=this.strokes.template&&(u.template=h),u.setPrivate("visible",!0);let f=this.get("xAxis"),m=this.get("yAxis"),g=this.get("baseAxis"),y=this.get("vcx",1),v=this.get("vcy",1),x=this._xField,_=this._yField,S=this._xOpenField,w=this._yOpenField;const k=this.get("openValueXField"),P=this.get("openValueYField");k||(S=this._xField),P||(w=this._yField);const j=this.get("stacked"),A=f.basePosition(),M=m.basePosition();let L;g===m?L=this._yField:L=this._xField;const I=[];let V=[];I.push(V);const Q=this.strokes.template.get("templateField"),U=this.fills.template.get("templateField");let X=this.get("locationX",.5),K=this.get("locationY",.5),z=this.get("openLocationX",X),F=this.get("openLocationY",K);const R=this.get("minDistance",0);let B,Z=this.fills.template.get("visible");this.axisRanges.length>0&&(Z=!0);let se=!1;(j||k||P)&&(se=!0);const ae={points:V,segments:I,stacked:j,getOpen:se,basePosX:A,basePosY:M,fillVisible:Z,xField:x,yField:_,xOpenField:S,yOpenField:w,vcx:y,vcy:v,baseAxis:g,xAxis:f,yAxis:m,locationX:X,locationY:K,openLocationX:z,openLocationY:F,minDistance:R};for(B=e;B<r;B++){this._dindex=B;const ge=this._dataItems[B];let ke=ge.get(x),Me=ge.get(_);if(ke==null||Me==null?s||(V=[],I.push(V),ae.points=V):this._getPoints(ge,ae),Q){let me=ge.dataContext[Q];if(me)if(me instanceof Gt||(me=Gt.new(me)),this._strokeTemplate=me,B>e){r=B;break}else u.template=me}if(U){let me=ge.dataContext[U];if(me)if(me instanceof Gt||(me=Gt.new(me)),this._fillTemplate=me,B>e){r=B;break}else a.template=me}if(!s){let me=this.dataItems[B+1];me&&g.shouldGap(ge,me,i,L)&&(V=[],I.push(V),ae.points=V)}}a.setRaw("userData",[e,B]),u.setRaw("userData",[e,B]),B===t&&this._endLine(V,I[0][0]),u&&this._drawStroke(u,I),a&&this._drawFill(a,I),this.axisRanges.each(ge=>{const ke=ge.container,Me=ge.fills,me=this.makeFill(Me);ke&&ke.children.push(me),me.setPrivate("visible",!0),this._drawFill(me,I);const rt=ge.strokes,et=this.makeStroke(rt);ke&&ke.children.push(et),et.setPrivate("visible",!0),this._drawStroke(et,I),me.setRaw("userData",[e,B]),et.setRaw("userData",[e,B])})}_getPoints(e,t){let r=t.points,i=e.get("locationX",t.locationX),s=e.get("locationY",t.locationY),a=t.xAxis.getDataItemPositionX(e,t.xField,i,t.vcx),o=t.yAxis.getDataItemPositionY(e,t.yField,s,t.vcy);if(this._shouldInclude(a)){const l=this.getPoint(a,o),u=[l.x,l.y];if(l.x+=this._x,l.y+=this._y,e.set("point",l),t.fillVisible){let h=a,f=o;if(t.baseAxis===t.xAxis?f=t.basePosY:t.baseAxis===t.yAxis&&(h=t.basePosX),t.getOpen){let g=e.get(t.xOpenField),y=e.get(t.yOpenField);if(g!=null&&y!=null){let v=e.get("openLocationX",t.openLocationX),x=e.get("openLocationY",t.openLocationY);if(t.stacked){let _=e.get("stackToItemX"),S=e.get("stackToItemY");_?(h=t.xAxis.getDataItemPositionX(_,t.xField,v,_.component.get("vcx")),Li(h)&&(h=t.basePosX)):t.yAxis===t.baseAxis?h=t.basePosX:h=t.xAxis.getDataItemPositionX(e,t.xOpenField,v,t.vcx),S?(f=t.yAxis.getDataItemPositionY(S,t.yField,x,S.component.get("vcy")),Li(f)&&(f=t.basePosY)):t.xAxis===t.baseAxis?f=t.basePosY:f=t.yAxis.getDataItemPositionY(e,t.yOpenField,x,t.vcy)}else h=t.xAxis.getDataItemPositionX(e,t.xOpenField,v,t.vcx),f=t.yAxis.getDataItemPositionY(e,t.yOpenField,x,t.vcy)}}let m=this.getPoint(h,f);u[2]=m.x,u[3]=m.y}if(t.minDistance>0){const h=u[0],f=u[1],m=u[2],g=u[3],y=this._previousPoint,v=y[0],x=y[1],_=y[2],S=y[3];(Math.hypot(h-v,f-x)>t.minDistance||m&&g&&Math.hypot(m-_,g-S)>t.minDistance)&&(r.push(u),this._previousPoint=u)}else r.push(u)}}_endLine(e,t){}_drawStroke(e,t){e.get("visible")&&!e.get("forceHidden")&&e.set("draw",r=>{Y(t,i=>{this._strokeGenerator.context(r),this._strokeGenerator(i)})})}_drawFill(e,t){e.get("visible")&&!e.get("forceHidden")&&e.set("draw",r=>{Y(t,i=>{this._fillGenerator.context(r),this._fillGenerator(i)})})}_processAxisRange(e){super._processAxisRange(e),e.fills=new Nr(Gt.new({}),()=>ot._new(this._root,{themeTags:ht(e.fills.template.get("themeTags",[]),["line","series","fill"])},[this.fills.template,e.fills.template])),e.strokes=new Nr(Gt.new({}),()=>ot._new(this._root,{themeTags:ht(e.strokes.template.get("themeTags",[]),["line","series","stroke"])},[this.strokes.template,e.strokes.template]))}createLegendMarker(e){const t=this.get("legendDataItem");if(t){const r=t.get("marker"),i=t.get("markerRectangle");i&&i.setPrivate("visible",!1),r.set("background",Yr.new(r._root,{fillOpacity:0,fill:we(0)}));const s=r.children.push(ot._new(r._root,{themeTags:["line","series","legend","marker","stroke"],interactive:!1},[this.strokes.template]));this._legendStroke=s;const a=r.children.push(ot._new(r._root,{themeTags:["line","series","legend","marker","fill"]},[this.fills.template]));this._legendFill=a;const o=this._root.interfaceColors.get("disabled");if(s.states.create("disabled",{fill:o,stroke:o}),a.states.create("disabled",{fill:o,stroke:o}),this.bullets.length>0){const l=this.bullets.getIndex(0);if(l){const u=l(r._root,this,new Ri(this,{legend:!0},{}));if(u){const h=u.get("sprite");h instanceof ot&&h.states.create("disabled",{fill:o,stroke:o}),h&&(h.set("tooltipText",void 0),h.set("tooltipHTML",void 0),r.children.push(h),h.setAll({x:r.width()/2,y:r.height()/2}),r.events.on("boundschanged",()=>{h.setAll({x:r.width()/2,y:r.height()/2})}))}}}}}}Object.defineProperty(ca,"className",{enumerable:!0,configurable:!0,writable:!0,value:"LineSeries"});Object.defineProperty(ca,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:hl.classNames.c
103oncat([ca.className])});class xf extends ca{_afterNew(){this._setDefault("curveFactory",QG),super._afterNew()}_getPoints(e,t){let r=t.points,i=this.get("stepWidth",le).value/2,s=e.get("locationX",t.locationX),a=e.get("locationY",t.locationY),o=s,l=a;t.baseAxis===t.xAxis?(s-=i,o+=i):t.baseAxis===t.yAxis&&(a-=i,l+=i);let u=t.xAxis.getDataItemPositionX(e,t.xField,s,t.vcx),h=t.yAxis.getDataItemPositionY(e,t.yField,a,t.vcy),f=t.xAxis.getDataItemPositionX(e,t.xField,o,t.vcx),m=t.yAxis.getDataItemPositionY(e,t.yField,l,t.vcy);if(this._shouldInclude(u)){const g=this.getPoint(u,h),y=[g.x,g.y],v=this.getPoint(f,m),x=[v.x,v.y];if(t.fillVisible){let _=u,S=h,w=f,k=m;if(t.baseAxis===t.xAxis?(S=t.basePosY,k=t.basePosY):t.baseAxis===t.yAxis&&(_=t.basePosX,w=t.basePosX),t.getOpen){let A=e.get(t.xOpenField),M=e.get(t.yOpenField);if(A!=null&&M!=null)if(s=e.get("openLocationX",t.openLocationX),a=e.get("openLocationY",t.openLocationY),o=s,l=a,t.baseAxis===t.xAxis?(s-=i,o+=i):t.baseAxis===t.yAxis&&(a-=i,l+=i),t.stacked){let L=e.get("stackToItemX"),I=e.get("stackToItemY");L?(_=t.xAxis.getDataItemPositionX(L,t.xField,s,L.component.get("vcx")),w=t.xAxis.getDataItemPositionX(L,t.xField,o,L.component.get("vcx"))):t.yAxis===t.baseAxis?(_=t.basePosX,w=t.basePosX):t.baseAxis===t.yAxis&&(_=t.xAxis.getDataItemPositionX(e,t.xOpenField,s,t.vcx),w=t.xAxis.getDataItemPositionX(e,t.xOpenField,o,t.vcx)),I?(S=t.yAxis.getDataItemPositionY(I,t.yField,a,I.component.get("vcy")),k=t.yAxis.getDataItemPositionY(I,t.yField,l,I.component.get("vcy"))):t.xAxis===t.baseAxis?(S=t.basePosY,k=t.basePosY):t.baseAxis===t.yAxis&&(S=t.yAxis.getDataItemPositionY(e,t.yOpenField,a,t.vcy),k=t.yAxis.getDataItemPositionY(e,t.yOpenField,l,t.vcy))}else _=t.xAxis.getDataItemPositionX(e,t.xOpenField,s,t.vcx),S=t.yAxis.getDataItemPositionY(e,t.yOpenField,a,t.vcy),w=t.xAxis.getDataItemPositionX(e,t.xOpenField,o,t.vcx),k=t.yAxis.getDataItemPositionY(e,t.yOpenField,l,t.vcy)}let P=this.getPoint(_,S),j=this.getPoint(w,k);y[2]=P.x,y[3]=P.y,x[2]=j.x,x[3]=j.y}r.push(y),r.push(x),e.set("point",{x:y[0]+(x[0]-y[0])/2,y:y[1]+(x[1]-y[1])/2})}this.get("noRisers")&&(t.points=[],t.segments.push(r))}}Object.defineProperty(xf,"className",{enumerable:!0,configurable:!0,writable:!0,value:"StepLineSeries"});Object.defineProperty(xf,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:ca.classNames.concat([xf.className])});const zX=n=>{const e=[];for(const[t,r]of Object.entries(n))e.push({date:t,value:lt.round(r,3)});return e},WX=n=>{const e=JSON.parse(n).resultLine.values[1].rawValue;return zX(e)};function UX({leid:n,preset:e}){const[t,r]=E.useState(null);return E.useEffect(()=>{const i=`/qplix?le=${n}&p=${e}`;fetch(i).then(s=>s.json()).then(s=>{r(JSON.stringify(s))})},[]),E.useEffect(()=>{if(t===null)return;const i=WX(t);let s=ma.new("dfo-chart--nav-ot");const a=ws.new(s);a.rule("Label").setAll({fill:we("#64748b"),fontSize:"0.875em"}),s.setThemes([Rl.new(s),a]),s.dateFormatter.setAll({dateFormat:"yyyy-MM-dd",dateFields:["valueX"]}),s.numberFormatter.setAll({intlLocales:"de-DE",numberFormat:{style:"decimal",minimumFractionDigits:2}});let o=s.container.children.push(aa.new(s,{focusable:!0,panX:!0,panY:!0,wheelX:"panX",wheelY:"zoomX",pinchZoomX:!0,paddingLeft:0})),l=o.xAxes.push(la.new(s,{maxDeviation:.1,groupData:!1,baseInterval:{timeUnit:"day",count:1},renderer:Vi.new(s,{minorGridEnabled:!0,minGridDistance:70}),tooltip:vn.new(s,{paddingBottom:4,paddingLeft:8,paddingRight:8,paddingTop:4})})),u=o.yAxes.push($i.new(s,{extraTooltipPrecision:1,numberFormat:"#a 'â¬'",renderer:ua.new(s,{}),tooltipNumberFormat:"#.###,## 'â¬'"}));(g=>{const y=o.series.push(ca.new(s,{connect:!0,fill:we("#861042"),minBulletDistance:10,stroke:we("#861042"),valueXField:"date",valueYField:"value",xAxis:l,yAxis:u}));y.fills.template.setAll({fillOpacity:.2,visible:!0}),y.strokes.template.setAll({strokeWidth:1}),y.data.processor=lv.new(s,{dateFormat:"dd.mm.yyyy",dateFields:["date"]}),y.data.setAll(i),y.bullets.push(function(){let x=gf.new(s,{radius:3,fill:s.interfaceColors.get("background"),stroke:y.get("fill"),strokeWidth:1});return ul.new(s,{sprite:x})});const v=y.set("tooltip",vn.new(s,{paddingBottom:4,paddingLeft:8,paddingRight:8,paddingTop:4,pointerOrientation:"horizontal"}));v.label.set("text","[bold]{valueY} â¬[/]"),v.label.setAll({fill:we("#ffffff")})})(),o.set("cursor",oa.new(s,{xAxis:l,behavior:"none"})).lineY.set("visible",!1),o.set("scrollbarX",sa.new(s,{orientation:"horizontal"}));const m=o.get("scrollbarX");m.thumb.setAll({fill:we("#002940"),fillOpacity:.1,height:4,minHeight:4}),m.startGrip.set("scale",.5),m.endGrip.set("scale",.5),o.zoomOutButton.setAll({background:xr.new(s,{blur:0,fill:we("#861042"),fillOpacity:1,radius:2}),cursorOverStyle:"pointer"}),o.appear(1e3,100)},[t]),t?d.jsx("div",{className:"card-body pt-0",children:d.jsx("div",{id:"dfo-chart--nav-ot"})}):d.jsx(vt,{baseColor:"#f1f5f9",highlightColor:"#cbd5e1",children:d.jsx("div",{className:"card-body",children:d.jsx("div",{className:"fs-3",children:d.jsx(ce,{height:238})})})})}const GX=n=>{const e=JSON.parse(n);return{actual:{twr:{value:e.resultLine.subLines[0].values[0].value,raw:e.resultLine.subLines[0].values[0].rawValue},mwr:{value:e.resultLine.subLines[0].values[1].value,raw:e.resultLine.subLines[0].values[1].rawValue}},benchmark:{twr:{value:e.benchmarkResultLine.subLines[0].values[0].value,raw:e.benchmarkResultLine.subLines[0].values[0].rawValue},mwr:{value:e.benchmarkResultLine.subLines[0].values[1].value,raw:e.benchmarkResultLine.subLines[0].values[1].rawValue}}}},yE=(n,e)=>n==="mwr"?e.actual.mwr.value:e.actual.twr.value,XX=(n,e)=>{const t=n==="mwr"?lt.round(e.actual.mwr.raw*100,2):lt.round(e.actual.twr.raw*100,2),r=n==="mwr"?lt.round(e.benchmark.mwr.raw*100,2):lt.round(e.benchmark.twr.raw*100,2);let i=0;return t<r?i="-"+lt.round(r-t,2):t>r&&(i="+"+lt.round(t-r,2)),i.replace(".",",")},qX=(n,e)=>{const t={difference:XX(n,e)};return Array.from(t.difference)[0]==="-"?(t.color="text-danger",t.label="unter Benchmark"):Array.from(t.difference)[0]==="+"?(t.color="text-success",t.label="über Benchmark"):(t.color="text-body",t.label="gegenüber Benchmark"),d.jsxs("div",{className:"mt-2 small",children:[d.jsxs("strong",{className:t.color,children:[t.difference," %"]})," ",t.label]})};
103function KX({leid:n,preset:e,weighting:t,showBenchmark:r}){const[i,s]=E.useState();if(E.useEffect(()=>{const a=`/qplix?le=${n}&p=${e}`;fetch(a).then(o=>o.json()).then(o=>{s(JSON.stringify(o))})},[]),i){const a=GX(i);return r?d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"fs-3",children:yE(t,a)}),qX(t,a)]}):d.jsx("div",{className:"fs-3",children:yE(t,a)})}else return r?d.jsxs(vt,{baseColor:"#f1f5f9",highlightColor:"#cbd5e1",children:[d.jsx("div",{className:"fs-3",children:d.jsx(ce,{})}),d.jsx("div",{className:"mt-2 small",children:d.jsx(ce,{})})]}):d.jsx(vt,{baseColor:"#f1f5f9",highlightColor:"#cbd5e1",children:d.jsx("div",{className:"fs-3",children:d.jsx(ce,{})})})}const QX=n=>JSON.parse(n).resultLine.values[0].value;function ZX({leid:n,preset:e}){const[t,r]=E.useState();if(E.useEffect(()=>{const i=`/qplix?le=${n}&p=${e}`;fetch(i).then(s=>s.json()).then(s=>{r(JSON.stringify(s))})},[]),t){const i=QX(t);return d.jsxs("div",{children:[d.jsx("div",{className:"small text-body-secondary",children:"Zeitgewichtete Rendite"}),d.jsx("div",{className:"fs-3",children:i})]})}else return d.jsxs(vt,{baseColor:"#f1f5f9",highlightColor:"#cbd5e1",children:[d.jsx("div",{className:"small",children:d.jsx(ce,{width:160})}),d.jsx("div",{className:"fs-3",children:d.jsx(ce,{width:80})})]})}function lm({widget:n}){return d.jsxs("button",{type:"button",className:"btn btn-link btn-sm text-body-secondary","data-tally-open":"NpWB1W","data-tally-layout":"modal","data-tally-hide-title":"1","data-client":window.dfo.settings.user,"data-mandate":window.dfo.mandate,"data-widget":n,children:[d.jsx("i",{className:"fa-light fa-comment fa-fw me-1"}),"Feedback zum Element"]})}const JX=()=>{const n=new Date(window.dfo.settings.start),e=new Date(window.dfo.settings.end),t=Math.abs(e.getTime()-n.getTime()),r=Math.ceil(t/(1e3*3600*24));let i="day";return r>31&&r<=90?i="week":r>90&&r<=730?i="month":r>730&&(i="year"),i},eq=n=>{switch(n){case"year":return 5;case"month":return 3;case"week":return 2;default:return 1}},VR=n=>{const e=[];for(const[t,r]of Object.entries(n))e.push({date:new Date(t).getTime(),value:lt.round(r*100,2)});return e},tq=n=>{const e=JSON.parse(n).resultLine.subLines[0].values[0].rawValue;return VR(e)},nq=(n,e)=>{const t=eq(e),r=JSON.parse(n).resultLine.subLines[0].values[t].rawValue;return VR(r)};function rq({leid:n,preset:e,weighting:t,showBenchmark:r}){const[i,s]=E.useState(JX()),[a,o]=E.useState(null);return E.useEffect(()=>{const l=`/qplix?le=${n}&p=${e}`;fetch(l).then(u=>u.json()).then(u=>{o(JSON.stringify(u))})},[]),E.useEffect(()=>{if(a===null)return;const l=ma.new("dfo-chart--performance-ot"),u=ws.new(l);u.rule("Label").setAll({fill:we("#64748b"),fontSize:"0.875em"}),l.setThemes([Rl.new(l),u]),l.dateFormatter.setAll({dateFields:["valueX"]});const h=l.container.children.push(aa.new(l,{focusable:!0,layout:l.verticalLayout,panX:!0,panY:!0,wheelX:"panX",wheelY:"zoomX",pinchZoomX:!0})),f=h.xAxes.push(la.new(l,{maxDeviation:.1,baseInterval:{timeUnit:"day",count:1},renderer:Vi.new(l,{minGridDistance:50,minorGridEnabled:!0}),tooltip:vn.new(l,{paddingBottom:4,paddingLeft:8,paddingRight:8,paddingTop:4})}));f.get("renderer").labels.template.set("forceHidden",!0),f.get("renderer").grid.template.set("forceHidden",!0);const m=h.yAxes.push($i.new(l,{extraTooltipPrecision:1,maxDeviation:.1,numberFormat:"#'%'",renderer:ua.new(l,{})})),g=h.series.push(ca.new(l,{fill:we("#002940"),stroke:we("#002940"),xAxis:f,yAxis:m,valueYField:"value",valueXField:"date",tooltip:vn.new(l,{pointerOrientation:"horizontal",labelText:"{valueY}"})}));g.strokes.template.setAll({strokeWidth:1}),g.data.processor=lv.new(l,{dateFormat:"dd.mm.yyyy",dateFields:["date"]});const y=g.set("tooltip",vn.new(l,{paddingBottom:4,paddingLeft:8,paddingRight:8,paddingTop:4,pointerOrientation:"horizontal"}));y.label.set("text","Kumulierte Tagesperformance: [bold]{valueY}%[/]"),y.label.setAll({fill:we("#ffffff")}),g.data.setAll(tq(a));const v=h.xAxes.push(la.new(l,{maxDeviation:.1,baseInterval:{timeUnit:i,count:1},renderer:Vi.new(l,{minGridDistance:50})})),x=h.series.unshift(vl.new(l,{xAxis:v,yAxis:m,valueYField:"value",valueXField:"date",fill:we("#861042"),stroke:we("#861042")}));x.columns.template.setAll({cornerRadiusTL:2,cornerRadiusTR:2,fillOpacity:.25,strokeWidth:1});const _=x.set("tooltip",vn.new(l,{paddingBottom:4,paddingLeft:8,paddingRight:8,paddingTop:4,pointerOrientation:"horizontal"}));_.label.set("text","Performance des ausgewählten Zeitraums: [bold]{valueY}%[/]"),_.label.setAll({fill:we("#ffffff")}),x.data.setAll(nq(a,i)),h.set("cursor",oa.new(l,{xAxis:f})).lineY.set("visible",!1),h.set("scrollbarX",sa.new(l,{orientation:"horizontal"}));const w=h.get("scrollbarX");return w.thumb.setAll({fill:we("#002940"),fillOpacity:.1,height:4,minHeight:4}),w.startGrip.set("scale",.5),w.endGrip.set("scale",.5),h.zoomOutButton.setAll({background:xr.new(l,{blur:0,fill:we("#861042"),fillOpacity:1,radius:2}),cursorOverStyle:"pointer"}
103),g.appear(1e3,100),x.appear(1e3,100),h.appear(1e3,100),()=>{l.dispose()}},[a,i]),a?d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"card-body pt-0",children:d.jsx("div",{id:"dfo-chart--performance-ot"})}),d.jsx("div",{className:"card-footer px-4 py-3",children:d.jsxs("div",{className:"d-flex flex-column flex-md-row justify-content-between",children:[d.jsxs("div",{className:"d-flex flex-column flex-md-row align-items-md-center",children:[d.jsx("div",{children:d.jsxs("select",{defaultValue:i,className:"form-select form-select-sm",onChange:l=>s(l.target.value),children:[d.jsx("option",{value:"day",children:"Täglich"}),d.jsx("option",{value:"week",children:"Wöchentlich"}),d.jsx("option",{value:"month",children:"Monatlich"}),d.jsx("option",{value:"year",children:"Jährlich"})]})}),d.jsx("div",{className:"flex-grow-1 ms-md-3",children:d.jsx("span",{className:"small text-body-secondary",children:"Die Auswahl des Zeitraums steuert die Granularität der angezeigten Performance-Zeiträume (rote Balken)."})})]}),d.jsx(lm,{widget:"Performance im Zeitverlauf"})]})})]}):d.jsxs(vt,{baseColor:"#f1f5f9",highlightColor:"#cbd5e1",children:[d.jsx("div",{className:"card-body",children:d.jsx("div",{className:"fs-3",children:d.jsx(ce,{height:260})})}),d.jsxs("div",{className:"card-footer d-flex justify-content-between align-items-center",children:[d.jsxs("div",{className:"d-flex align-items-center",children:[d.jsx("div",{children:d.jsx(ce,{height:31,width:137})}),d.jsx("div",{className:"flex-grow-1 ms-3",children:d.jsx("span",{className:"small",children:d.jsx(ce,{width:222})})})]}),d.jsx(ce,{width:190})]})]})}const iq=n=>{const e=[];return JSON.parse(n).data.forEach(t=>{e.push({id:t.id,title:t.title,created:t.created,link:t.pdfLink,viewed:t.viewed})}),e},o_=Ml();function sq({leid:n,data:e}){const[t,r]=E.useState([]),i=[o_.accessor("created",{cell:o=>sm(o.getValue()),header:"Datum",id:"dfo-reports__created"}),o_.accessor("title",{cell:o=>o.getValue(),header:"Titel",id:"dfo-reports__title"}),o_.accessor("link",{cell:o=>{const l=encodeURIComponent(o.row.original.title)+".pdf",u=o.row.original.viewed===null?"btn btn-outline-dark btn-sm text-nowrap":"btn btn-outline-success btn-sm text-nowrap";let h="Dieses Dokument wurde noch nicht heruntergeladen.";o.row.original.viewed!==null&&(h="Dieses Dokument wurde am "+sm(o.row.original.viewed)+" heruntergeladen.");const f=o.row.original.viewed===null?"fa-light fa-file-pdf":"fa-light fa-check";return d.jsxs("a",{href:`/qplix?le=${n}&q=download_report&download_id=${o.row.original.id}&filename=${l}`,className:u,target:"_blank",title:h,"data-bs-toggle":"tooltip",children:[d.jsx("i",{className:f}),d.jsx("span",{className:"d-none d-md-inline ms-2",children:"Download"})]})},header:"Download",id:"dfo-reports__link"})],s=jl({data:e,columns:i,getCoreRowModel:Tl(),getPaginationRowModel:Al(),getSortedRowModel:Ol(),onSortingChange:r,state:{sorting:t}}),a=o=>o==="asc"?" â":o==="desc"?" â":null;return d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"table-responsive",children:d.jsxs("table",{className:"table table-striped small",children:[d.jsx("thead",{children:s.getHeaderGroups().map(o=>d.jsx("tr",{children:o.headers.map(l=>d.jsx("th",{className:"align-top p-3 text-nowrap",children:l.isPlaceholder?null:d.jsxs("button",{className:"btn btn-link p-0 fw-bold text-decoration-none text-nowrap ",disabled:!l.column.getCanSort(),onClick:l.column.getToggleSortingHandler(),children:[nr(l.column.columnDef.header,l.getContext()),a(l.column.getIsSorted())]})},l.id))},o.id))}),d.jsx("tbody",{children:s.getRowModel().rows.map(o=>d.jsx("tr",{children:o.getVisibleCells().map(l=>{const u=l.column.columnDef.id==="dfo-reports__title"?"py-2 align-middle w-100":"py-2 align-middle";return d.jsx("td",{className:u,children:nr(l.column.columnDef.cell,l.getContext())},l.id)})},o.id))})]})}),d.jsxs("div",{className:"d-flex justify-content-between align-items-center",children:[d.jsx("nav",{"aria-label":"Page navigation example",children:d.jsxs("ul",{class:"pagination pagination-sm m-0",children:[d.jsx("li",{className:s.getCanPreviousPage()?"page-item":"page-item disabled",children:d.jsx("a",{className:"page-link",href:"#",onClick:o=>{o.preventDefault(),s.setPageIndex(0)},title:"Erste Seite","aria-label":"Erste Seite",children:d.jsx("span",{"aria-hidden":"true",children:d.jsx("i",{className:"fa-light fa-arrow-left-long-to-line"})})})}),d.jsx("li",{className:s.getCanPreviousPage()?"page-item":"page-item disabled",children:d.jsx("a",{className:"page-link",href:"#",onClick:o=>{o.preventDefault(),s.previousPage()},title:"Vorherige Seite","aria-label":"Vorherige Seite",children:d.jsx("span",{"aria-hidden":"true",children:d.jsx("i",{className:"fa-light fa-long-arrow-left"})})})}),d.jsx("li",{className:s.getCanNextPage()?"page-item":"page-item disabled",children:d.jsx("a",{className:"page-link",href:"#",onClick:o=>{o.preventDefault(),s.nextPage()},title:"Nächste Seite","aria-label":"Nächste Seite",children:d.jsx("span",{"aria-hidden":"true",children:d.jsx("i",{className:"fa-light fa-long-arrow-right"})})})}),d.jsx("li",{className:s.getCanNextPage()?"page-item":"page-item disabled",children:d.jsx("a",{className:"page-link",href:"#",onClick:o=>{o.preventDefault(),s.setPageIndex(s.getPageCount()-1)},title:"Letze Seite","aria-label":"Letze Seite",children:d.jsx("span",{"aria-hidden":"true",children:d.jsx("i",{className:"fa-light fa-arrow-right-long-to-line"})})})})]})}),d.jsxs("div",{className:"d-none d-md-block small",children:["Seite ",s.getState().pagination.pageIndex+1," von"," ",s.getPageCount()]}),d.jsx("div",{children:d.jsx("select",{className:"form-select form-select-sm",value:s.getState().pagination.pageSize,onChange:o=>{s.setPageSize(Number(o.target.value))},children:[10,20,50].map(o=>d.jsxs("option",{value:o,children:[o," Zeilen"]},o))})})]})]})}
103function aq({leid:n,preset:e}){const[t,r]=E.useState(null),[i,s]=E.useState(!1),a=(l=!1)=>{fetch(`/qplix?le=${n}&p=${e}&q=reports`).then(u=>u.json()).then(u=>{r(iq(JSON.stringify(u))),l&&s(!0)})};E.useEffect(()=>{a()},[]);const o=()=>{a(!0)};return t==null?d.jsx(d.Fragment,{children:d.jsxs(vt,{baseColor:"#f1f5f9",highlightColor:"#cbd5e1",children:[d.jsx("div",{className:"card-body px-4",children:d.jsx("div",{className:"fs-3",children:d.jsx(va,{rows:8})})}),d.jsx("div",{className:"card-footer px-4",children:d.jsx(_E,{leid:n,preset:e,isLoading:!0})})]})}):d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"card-body px-4",children:[d.jsx(oq,{showMessage:i,setShowMessage:s}),d.jsx(sq,{leid:n,data:t})]}),d.jsx("div",{className:"card-footer px-4 py-3",children:d.jsx(_E,{leid:n,preset:e,isLoading:!1,handleReload:o})})]})}function _E({leid:n,preset:e,isLoading:t,handleReload:r}){const[i,s]=E.useState(null),[a,o]=E.useState(null);E.useEffect(()=>{if(i==="new_report")fetch(`/qplix?le=${n}&p=${e}&q=new_report`).then(u=>u.json()).then(u=>{const h=JSON.parse(JSON.stringify(u));o(h.details)});else if(i==="finish_report")r();else return},[i]),E.useEffect(()=>{if(a===null)return;const u=a.split("/"),h=u[u.length-1],f=setInterval(()=>{fetch(`/qplix?le=${n}&q=report_job&job_id=${h}`).then(m=>m.json()).then(m=>{JSON.parse(JSON.stringify(m)).state==="Finished"&&(clearInterval(f),s("finish_report"))})},2e3);return()=>clearInterval(f)},[a]);const l=()=>{s("new_report")};return t?d.jsx(vt,{baseColor:"#f1f5f9",highlightColor:"#cbd5e1",children:d.jsxs("div",{className:"row",children:[d.jsx("div",{className:"col-12 col-xl-8 d-flex align-items-center",children:d.jsx(ce,{height:31,width:150})}),d.jsx("div",{className:"d-none d-xl-flex col-4 justify-content-end",children:d.jsx(ce,{height:31,width:180})})]})}):i==="new_report"?d.jsxs("div",{className:"row",children:[d.jsxs("div",{className:"col-12 col-xl-8 d-flex align-items-center",children:[d.jsx("div",{children:d.jsxs("button",{className:"btn btn-secondary btn-sm fw-bold",disabled:!0,children:[d.jsx("i",{className:"fa-light fa-circle-notch fa-spin me-2"}),"Report erstellen"]})}),d.jsx("div",{className:"flex-grow-1 ms-3",children:d.jsx("span",{className:"small text-body-secondary",children:"Der neue Report wird jetzt erstellt."})})]}),d.jsx("div",{className:"d-none d-xl-flex col-4 justify-content-end",children:d.jsx(lm,{widget:"Reports"})})]}):d.jsxs("div",{className:"row",children:[d.jsxs("div",{className:"col-12 col-xl-8 d-flex align-items-center",children:[d.jsx("div",{children:d.jsxs("button",{className:"btn btn-secondary btn-sm fw-bold",onClick:l,children:[d.jsx("i",{className:"fa-light fa-plus me-2"}),"Report erstellen"]})}),d.jsx("div",{className:"flex-grow-1 ms-3",children:d.jsx("span",{className:"small text-body-secondary",children:"für den oben ausgewählten Zeitraum."})})]}),d.jsx("div",{className:"d-none d-xl-flex col-4 justify-content-end",children:d.jsx(lm,{widget:"Reports"})})]})}function oq({showMessage:n,setShowMessage:e}){if(E.useEffect(()=>{if(n===!1)return;const t=setTimeout(()=>e(!1),1e4);return()=>{clearTimeout(t)}},[n]),n)return d.jsxs("div",{className:"alert alert-success px-3 py-2 mt-2 mb-3",role:"alert",children:[d.jsx("i",{className:"fa-light fa-check me-2"}),"Der neue Report steht zum Download bereit."]})}function lq({leid:n,preset:e}){const[t,r]=E.useState(null),[i,s]=E.useState(null),a=()=>{r("requested");const o=`/qplix?le=${n}&p=${e}&q=new-report`;fetch(o).then(l=>l.json()).then(l=>{const u=JSON.parse(JSON.stringify(l));s(u.details)})};return t==="requested"?d.jsx(d.Fragment,{children:d.jsxs("div",{className:"d-flex align-items-center",children:[d.jsx("div",{class:"me-3",children:d.jsxs("button",{className:"btn btn-secondary fw-bold",disabled:!0,children:[d.jsx("i",{className:"fal fa-circle-notch fa-spin me-2"}),"Neuer Report"]})}),d.jsx("div",{children:d.jsx("p",{className:"mb-0",children:"Der Report wird jetzt erstellt."})})]})}):t==="answered"?d.jsx(d.Fragment,{children:d.jsx("div",{className:"",children:d.jsx("p",{className:"mb-0",children:"Der Report wurde erstellt."})})}):d.jsx(d.Fragment,{children:d.jsxs("div",{className:"d-flex align-items-center",children:[d.jsx("div",{class:"me-3",children:d.jsxs("button",{className:"btn btn-secondary fw-bold",onClick:a,children:[d.jsx("i",{className:"fal fa-circle-plus me-2"}),"Neuer Report"]})}),d.jsx("div",{children:d.jsx("p",{className:"mb-0",children:"Der Report wird für den oben ausgewählten Zeitraum erstellt."})})]})})}const uq=n=>{const e=JSON.parse(n);return{actual:{value:e.resultLine.subLines[0].values[3].value,raw:e.resultLine.subLines[0].values[3].rawValue},benchmark:{value:e.benchmarkResultLine.subLines[0].values[3].value,raw:e.benchmarkResultLine.subLines[0].values[3].rawValue}}},cq=n=>{const e=lt.round(n.actual.raw,2),t=lt.round(n.benchmark.raw,2);let r=0;return e<t?r="-"+lt.round(t-e,2):e>t&&(r="+"+lt.round(e-t,2)),r.replace(".",",")},dq=n=>{const e={difference:cq(n)};return Array.from(e.difference)[0]==="-"?(e.color="text-danger",e.label="unter Benchmark"):Array.from(e.difference)[0]==="+"?(e.color="text-success",e.label="über Benchmark"):(e.color="text-body",e.label="gegenüber Benchmark"),d.jsxs("div",{className:"mt-2 small",children:[d.jsx("strong",{className:e.color,children:e.difference})," ",e.label]})};
103function fq({leid:n,preset:e,showBenchmark:t}){const[r,i]=E.useState();if(E.useEffect(()=>{const s=`/qplix?le=${n}&p=${e}`;fetch(s).then(a=>a.json()).then(a=>{i(JSON.stringify(a))})},[]),r){const s=uq(r);return t?d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"fs-3",children:s.actual.value}),dq(s)]}):d.jsx("div",{className:"fs-3",children:s.actual.value})}else return t?d.jsxs(vt,{baseColor:"#f1f5f9",highlightColor:"#cbd5e1",children:[d.jsx("div",{className:"fs-3",children:d.jsx(ce,{})}),d.jsx("div",{className:"mt-2 small",children:d.jsx(ce,{})})]}):d.jsx(vt,{baseColor:"#f1f5f9",highlightColor:"#cbd5e1",children:d.jsx("div",{className:"fs-3",children:d.jsx(ce,{})})})}const hq=n=>{switch(n){case"Buy":return"Kauf";case"Costs":return"Kosten";case"Defer":return"Transfer";case"Deposit":return"Deposit";case"Dividend":return"Dividende";case"Open":return"Eröffnung";case"Sell":return"Verkauf";default:return n}},pq=n=>Math.round(new Date(n)/1e3),gq=n=>{const e=[];return JSON.parse(n).resultLine.subLines.forEach(r=>{e.push({date:pq(r.values[5].rawValue),type:hq(r.values[1].value),description:r.values[0].value,name:`${r.values[7].value} (${r.values[8].value})`,turnover:r.values[9].value,nav:r.values[3].value+" â¬"})}),e},eu=Ml(),mq=[eu.accessor("date",{cell:n=>new Date(n.getValue()*1e3).toLocaleDateString("de-DE",{day:"2-digit",month:"2-digit",year:"numeric"}),header:"Datum",id:"dfo-transactions__date"}),eu.accessor("type",{cell:n=>n.getValue(),header:"Typ",id:"dfo-transactions__type"}),eu.accessor("description",{cell:n=>n.getValue(),header:"Beschreibung",id:"dfo-transactions__description"}),eu.accessor("name",{cell:n=>n.getValue(),header:"Name",id:"dfo-transactions__name"}),eu.accessor("turnover",{cell:n=>n.getValue().length?Array.from(n.getValue())[0]==="-"?n.getValue().length===1?n.getValue():d.jsx("span",{class:"text-danger",children:n.getValue()}):Array.from(n.getValue())[0]==="+"?d.jsx("span",{class:"text-success",children:n.getValue()}):n.getValue():"",header:"Depotumsatz",id:"dfo-transactions__turnover"}),eu.accessor("nav",{cell:n=>n.getValue().length?Array.from(n.getValue())[0]==="-"?n.getValue().length===1?n.getValue():d.jsx("span",{class:"text-danger",children:n.getValue()}):d.jsxs("span",{class:"text-success",children:["+",n.getValue()]}):"",header:"Kontoumsatz",id:"dfo-transactions__nav"})];function vq({data:n,columns:e}){const[t,r]=E.useState([]),i=jl({data:n,columns:e,getCoreRowModel:Tl(),getPaginationRowModel:Al(),getSortedRowModel:Ol(),onSortingChange:r,state:{sorting:t},initialState:{pagination:{pageSize:25}}}),s=a=>a==="asc"?" â":a==="desc"?" â":null;return d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"table-responsive",children:d.jsxs("table",{className:"table table-striped small",children:[d.jsx("thead",{children:i.getHeaderGroups().map(a=>d.jsx("tr",{children:a.headers.map(o=>d.jsx("th",{className:"align-top p-3 text-nowrap",children:o.isPlaceholder?null:d.jsxs("button",{className:"btn btn-link p-0 fw-bold text-start text-decoration-none text-nowrap ",disabled:!o.column.getCanSort(),onClick:o.column.getToggleSortingHandler(),children:[nr(o.column.columnDef.header,o.getContext()),s(o.column.getIsSorted())]})},o.id))},a.id))}),d.jsx("tbody",{children:i.getRowModel().rows.map(a=>d.jsx("tr",{children:a.getVisibleCells().map(o=>d.jsx("td",{className:"py-2 align-middle",children:nr(o.column.columnDef.cell,o.getContext())},o.id))},a.id))})]})}),d.jsxs("div",{className:"d-flex justify-content-between align-items-center",children:[d.jsx("nav",{"aria-label":"Page navigation example",children:d.jsxs("ul",{class:"pagination pagination-sm m-0",children:[d.jsx("li",{className:i.getCanPreviousPage()?"page-item":"page-item disabled",children:d.jsx("a",{className:"page-link",href:"#",onClick:a=>{a.preventDefault(),i.setPageIndex(0)},title:"Erste Seite","aria-label":"Erste Seite",children:d.jsx("span",{"aria-hidden":"true",children:d.jsx("i",{className:"fa-light fa-arrow-left-long-to-line"})})})}),d.jsx("li",{className:i.getCanPreviousPage()?"page-item":"page-item disabled",children:d.jsx("a",{className:"page-link",href:"#",onClick:a=>{a.preventDefault(),i.previousPage()},title:"Vorherige Seite","aria-label":"Vorherige Seite",children:d.jsx("span",{"aria-hidden":"true",children:d.jsx("i",{className:"fa-light fa-long-arrow-left"})})})}),d.jsx("li",{className:i.getCanNextPage()?"page-item":"page-item disabled",children:d.jsx("a",{className:"page-link",href:"#",onClick:a=>{a.preventDefault(),i.nextPage()},title:"Nächste Seite","aria-label":"Nächste Seite",children:d.jsx("span",{"aria-hidden":"true",children:d.jsx("i",{className:"fa-light fa-long-arrow-right"})})})}),d.jsx("li",{className:i.getCanNextPage()?"page-item":"page-item disabled",children:d.jsx("a",{className:"page-link",href:"#",onClick:a=>{a.preventDefault(),i.setPageIndex(i.getPageCount()-1)},title:"Letze Seite","aria-label":"Letze Seite",children:d.jsx("span",{"aria-hidden":"true",children:d.jsx("i",{className:"fa-light fa-arrow-right-long-to-line"})})})})]})}),d.jsxs("div",{className:"d-none d-md-block small",children:["Seite ",i.getState().pagination.pageIndex+1," von"," ",i.getPageCount()]}),d.jsx("div",{children:d.jsx("select",{className:"form-select form-select-sm",value:i.getState().pagination.pageSize,onChange:a=>{i.setPageSize(Number(a.target.value))},children:[25,50,100].map(a=>d.jsxs("option",{value:a,children:[a," Zeilen"]},a))})})]})]})}
103function bq({leid:n,preset:e}){const[t,r]=E.useState(null);return E.useEffect(()=>{const i=`/qplix?le=${n}&p=${e}&q=transactions`;fetch(i).then(s=>s.json()).then(s=>{r(gq(JSON.stringify(s)))})},[]),t==null?d.jsx(va,{rows:25}):d.jsx(vq,{data:t,columns:mq})}const yq=n=>{const e=JSON.parse(n);return{actual:{value:e.resultLine.subLines[0].values[2].value,raw:e.resultLine.subLines[0].values[2].rawValue},benchmark:{value:e.benchmarkResultLine.subLines[0].values[2].value,raw:e.benchmarkResultLine.subLines[0].values[2].rawValue}}},_q=n=>{const e=lt.round(n.actual.raw*100,2),t=lt.round(n.benchmark.raw*100,2);let r=0;return e<t?r="-"+lt.round(t-e,2):e>t&&(r="+"+lt.round(e-t,2)),r.replace(".",",")},xq=n=>{const e={difference:_q(n)};return Array.from(e.difference)[0]==="-"?(e.color="text-success",e.label="unter Benchmark"):Array.from(e.difference)[0]==="+"?(e.color="text-danger",e.label="über Benchmark"):(e.color="text-body",e.label="gegenüber Benchmark"),d.jsxs("div",{className:"mt-2 small",children:[d.jsxs("strong",{className:e.color,children:[e.difference," %"]})," ",e.label]})};function wq({leid:n,preset:e,showBenchmark:t}){const[r,i]=E.useState();if(E.useEffect(()=>{const s=`/qplix?le=${n}&p=${e}`;fetch(s).then(a=>a.json()).then(a=>{i(JSON.stringify(a))})},[]),r){const s=yq(r);return t?d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"fs-3",children:s.actual.value}),xq(s)]}):d.jsx("div",{className:"fs-3",children:s.actual.value})}else return t?d.jsxs(vt,{baseColor:"#f1f5f9",highlightColor:"#cbd5e1",children:[d.jsx("div",{className:"fs-3",children:d.jsx(ce,{})}),d.jsx("div",{className:"mt-2 small",children:d.jsx(ce,{})})]}):d.jsx(vt,{baseColor:"#f1f5f9",highlightColor:"#cbd5e1",children:d.jsx("div",{className:"fs-3",children:d.jsx(ce,{})})})}const tu=n=>n==="0,00"?"0":n,Sq=n=>{const e=JSON.parse(n);return{navBegin:{raw:e.resultLine.subLines[0].values[10].rawValue,value:tu(e.resultLine.subLines[0].values[10].value)},navEnd:{raw:e.resultLine.subLines[0].values[11].rawValue,value:tu(e.resultLine.subLines[0].values[11].value)},inflows:{raw:e.resultLine.subLines[0].values[6].rawValue,value:tu(e.resultLine.subLines[0].values[6].value)},outflows:{raw:e.resultLine.subLines[0].values[7].rawValue,value:tu(e.resultLine.subLines[0].values[7].value)},taxes:{raw:e.resultLine.subLines[0].values[8].rawValue,value:tu(e.resultLine.subLines[0].values[8].value)},yields:{raw:e.resultLine.subLines[0].values[9].rawValue,value:tu(e.resultLine.subLines[0].values[9].value)}}};function Dq({leid:n,preset:e}){const[t,r]=E.useState(null);return E.useEffect(()=>{const i=`/qplix?le=${n}&p=${e}`;fetch(i).then(s=>s.json()).then(s=>{r(JSON.stringify(s))})},[]),E.useEffect(()=>{if(t===null)return;const i=Sq(t),s=ma.new("dfo-chart--waterfall"),a=ws.new(s);a.rule("Label").setAll({fill:we("#64748b"),fontSize:"0.875em"}),s.setThemes([Rl.new(s),a]);const o=s.container.children.push(aa.new(s,{paddingLeft:0,panX:!1,panY:!1})),l=Vi.new(s,{minGridDistance:32,minorGridEnabled:!0}),u=o.xAxes.push(oo.new(s,{categoryField:"category",maxDeviation:0,renderer:l}));l.grid.template.setAll({location:1});const h=o.yAxes.push($i.new(s,{maxDeviation:0,min:0,numberFormat:"#a 'â¬'",renderer:ua.new(s,{strokeOpacity:.1})})),f=o.series.push(vl.new(s,{categoryXField:"category",openValueYField:"open",valueYField:"value",xAxis:u,yAxis:h}));f.columns.template.setAll({cornerRadiusTL:2,cornerRadiusTR:2,fill:we("#861042"),fillOpacity:.2,showTooltipOn:"always",stroke:we("#861042"),strokeOpacity:1,strokeWidth:1,templateField:"columnConfig",tooltipText:"{displayValue} â¬",tooltipY:0}),f.columns.template.setup=function(x){x.set("tooltip",vn.new(s,{paddingBottom:4,paddingLeft:8,paddingRight:8,paddingTop:4,pointerOrientation:"down"}))},f.bullets.push(function(){return ul.new(s,{sprite:pi.new(s,{centerY:He,centerX:He})})});const m=o.series.push(xf.new(s,{categoryXField:"category",locationX:.65,noRisers:!0,stroke:s.interfaceColors.get("alternativeBackground"),valueYField:"stepValue",xAxis:u,yAxis:h}));m.strokes.template.setAll({strokeDasharray:[3,3]});const g=[{category:"Vermögen",displayValue:i.navBegin.value,open:0,stepValue:i.navBegin.raw,value:i.navBegin.raw},{category:"Zuflüsse",displayValue:i.inflows.value,open:i.navBegin.raw,stepValue:i.navBegin.raw+i.inflows.raw,value:i.navBegin.raw+i.inflows.raw},{category:"Abflüsse",displayValue:i.outflows.value,open:i.navBegin.raw+i.inflows.raw,stepValue:i.navBegin.raw+i.inflows.raw+i.outflows.raw,value:i.navBegin.raw+i.inflows.raw+i.outflows.raw},{category:"Steuern",displayValue:i.taxes.value,open:i.navBegin.raw+i.inflows.raw+i.outflows.raw,stepValue:i.navBegin.raw+i.inflows.raw+i.outflows.raw+i.taxes.raw,value:i.navBegin.raw+i.inflows.raw+i.outflows.raw+i.taxes.raw}
103,{category:"Erträge",displayValue:i.yields.value,open:i.navBegin.raw+i.inflows.raw+i.outflows.raw+i.taxes.raw,stepValue:i.navBegin.raw+i.inflows.raw+i.outflows.raw+i.taxes.raw+i.yields.raw,value:i.navBegin.raw+i.inflows.raw+i.outflows.raw+i.taxes.raw+i.yields.raw},{category:"Endvermögen",displayValue:i.navEnd.value,open:0,stepValue:i.navEnd.raw,value:i.navEnd.raw}];u.data.setAll(g),f.data.setAll(g),m.data.setAll(g),o.set("cursor",oa.new(s,{xAxis:u})).lineY.set("visible",!1),o.set("scrollbarY",sa.new(s,{orientation:"vertical"}));const v=o.get("scrollbarY");v.thumb.setAll({fill:we("#002940"),fillOpacity:.1,height:4,minHeight:4}),v.startGrip.set("scale",.5),v.endGrip.set("scale",.5),o.zoomOutButton.setAll({background:xr.new(s,{blur:0,fill:we("#861042"),fillOpacity:1,radius:2}),cursorOverStyle:"pointer"}),f.appear(1e3),o.appear(1e3,100)},[t]),t?d.jsx("div",{className:"card-body dfo-widget__scroll",children:d.jsx("div",{id:"dfo-chart--waterfall"})}):d.jsx(vt,{baseColor:"#f1f5f9",highlightColor:"#cbd5e1",children:d.jsx("div",{className:"card-body",children:d.jsx(ce,{height:256})})})}function YR(n){var e,t,r="";if(typeof n=="string"||typeof n=="number")r+=n;else if(typeof n=="object")if(Array.isArray(n)){var i=n.length;for(e=0;e<i;e++)n[e]&&(t=YR(n[e]))&&(r&&(r+=" "),r+=t)}else for(t in n)n[t]&&(r&&(r+=" "),r+=t);return r}function bn(){for(var n,e,t=0,r="",i=arguments.length;t<i;t++)(n=arguments[t])&&(e=YR(n))&&(r&&(r+=" "),r+=e);return r}const HR=6048e5,kq=864e5,uv=6e4,cv=36e5,Pq=1e3,xE=Symbol.for("constructDateFrom");function bt(n,e){return typeof n=="function"?n(e):n&&typeof n=="object"&&xE in n?n[xE](e):n instanceof Date?new n.constructor(e):new Date(e)}function _e(n,e){return bt(e||n,n)}function Ii(n,e,t){const r=_e(n,t==null?void 0:t.in);return isNaN(e)?bt((t==null?void 0:t.in)||n,NaN):(e&&r.setDate(r.getDate()+e),r)}function Yi(n,e,t){const r=_e(n,t==null?void 0:t.in);if(isNaN(e))return bt((t==null?void 0:t.in)||n,NaN);if(!e)return r;const i=r.getDate(),s=bt((t==null?void 0:t.in)||n,r.getTime());s.setMonth(r.getMonth()+e+1,0);const a=s.getDate();return i>=a?s:(r.setFullYear(s.getFullYear(),s.getMonth(),i),r)}function zR(n,e,t){return bt((t==null?void 0:t.in)||n,+_e(n)+e)}function Cq(n,e,t){return zR(n,e*cv,t)}let Eq={};function Il(){return Eq}function da(n,e){var o,l,u,h;const t=Il(),r=(e==null?void 0:e.weekStartsOn)??((l=(o=e==null?void 0:e.locale)==null?void 0:o.options)==null?void 0:l.weekStartsOn)??t.weekStartsOn??((h=(u=t.locale)==null?void 0:u.options)==null?void 0:h.weekStartsOn)??0,i=_e(n,e==null?void 0:e.in),s=i.getDay(),a=(s<r?7:0)+s-r;return i.setDate(i.getDate()-a),i.setHours(0,0,0,0),i}function tc(n,e){return da(n,{...e,weekStartsOn:1})}function WR(n,e){const t=_e(n,e==null?void 0:e.in),r=t.getFullYear(),i=bt(t,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const s=tc(i),a=bt(t,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const o=tc(a);return t.getTime()>=s.getTime()?r+1:t.getTime()>=o.getTime()?r:r-1}function um(n){const e=_e(n),t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),+n-+t}function ba(n,...e){const t=bt.bind(null,n||e.find(r=>typeof r=="object"));return e.map(t)}function bl(n,e){const t=_e(n,e==null?void 0:e.in);return t.setHours(0,0,0,0),t}function nc(n,e,t){const[r,i]=ba(t==null?void 0:t.in,n,e),s=bl(r),a=bl(i),o=+s-um(s),l=+a-um(a);return Math.round((o-l)/kq)}function Mq(n,e){const t=WR(n,e),r=bt((e==null?void 0:e.in)||n,0);return r.setFullYear(t,0,4),r.setHours(0,0,0,0),tc(r)}function wf(n,e,t){const r=_e(n,t==null?void 0:t.in);return r.setTime(r.getTime()+e*uv),r}function l1(n,e,t){return Yi(n,e*3,t)}function Tq(n,e,t){return zR(n,e*1e3,t)}function cm(n,e,t){return Ii(n,e*7,t)}function Ni(n,e,t){return Yi(n,e*12,t)}function wE(n,e){let t,r=e==null?void 0:e.in;return n.forEach(i=>{!r&&typeof i=="object"&&(r=bt.bind(null,i));const s=_e(i,r);(!t||t<s||isNaN(+s))&&(t=s)}),bt(r,t||NaN)}function SE(n,e){let t,r=e==null?void 0:e.in;return n.forEach(i=>{!r&&typeof i=="object"&&(r=bt.bind(null,i));const s=_e(i,r);(!t||t>s||isNaN(+s))&&(t=s)}),bt(r,t||NaN)}function Oq(n,e,t){const[r,i]=ba(t==null?void 0:t.in,n,e);return+bl(r)==+bl(i)}function ps(n){return n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]"}function rc(n){return!(!ps(n)&&typeof n!="number"||isNaN(+_e(n)))}function dm(n,e,t){const[r,i]=ba(t==null?void 0:t.in,n,e),s=r.getFullYear()-i.getFullYear(),a=r.getMonth()-i.getMonth();return s*12+a}function za(n,e){const t=_e(n,e==null?void 0:e.in);return Math.trunc(t.getMonth()/3)+1}function fm(n,e,t){const[r,i]=ba(t==null?void 0:t.in,n,e),s=r.getFullYear()-i.getFullYear(),a=za(r)-za(i);return s*4+a}function hm(n,e,t){const[r,i]=ba(t==null?void 0:t.in,n,e);return r.getFullYear()-i.getFullYear()}function Aq(n,e,t){const[r,i]=ba(t==null?void 0:t.in,n,e),s=DE(r,i),a=Math.abs(nc(r,i));r.setDate(r.getDate()-s*a);const o=+(DE(r,i)===-s),l=s*(a-o);return l===0?0:l}function DE(n,e){const t=n.getFullYear()-e.getFullYear()||n.getMonth()-e.getMonth()||n.getDate()-e.getDate()||n.getHours()-e.getHours()||n.getMinutes()-e.getMinutes()||n.getSeconds()-e.getSeconds()||n.getMilliseconds()-e.getMilliseconds();return t<0?-1:t>0?1:t}function UR(n,e){const t=_e(n,e==null?void 0:e.in);return t.setHours(23,59,59,999),t}function GR(n,e){const t=_e(n,e==null?void 0:e.in),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}function ux(n,e){const t=_e(n,e==null?void 0:e.in),r=t.getMonth(),i=r-r%3;return t.setMonth(i,1),t.setHours(0,0,0,0),t}function XR(n,e){const t=_e(n,e==null?void 0:e.in);return t.setDate(1),t.setHours(0,0,0,0),t}function qR(n,e){const t=_e(n,e==null?void 0:e.in),r=t.getFullYear();return t.setFullYear(r+1,0,0),t.setHours(23,59,59,999),t}function dv(n,e){const t=_e(n,e==null?void 0:e.in);return t.setFullYear(t.getFullYear(),0,1),t.setHours(0,0,0,0),t}function jq(n,e){var o,l,u,h;
103const t=Il(),r=(e==null?void 0:e.weekStartsOn)??((l=(o=e==null?void 0:e.locale)==null?void 0:o.options)==null?void 0:l.weekStartsOn)??t.weekStartsOn??((h=(u=t.locale)==null?void 0:u.options)==null?void 0:h.weekStartsOn)??0,i=_e(n,e==null?void 0:e.in),s=i.getDay(),a=(s<r?-7:0)+6-(s-r);return i.setDate(i.getDate()+a),i.setHours(23,59,59,999),i}const Rq={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"}},Iq=(n,e,t)=>{let r;const i=Rq[n];return typeof i=="string"?r=i:e===1?r=i.one:r=i.other.replace("{{count}}",e.toString()),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"in "+r:r+" ago":r};function ju(n){return(e={})=>{const t=e.width?String(e.width):n.defaultWidth;return n.formats[t]||n.formats[n.defaultWidth]}}const Nq={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Fq={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Lq={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Bq={date:ju({formats:Nq,defaultWidth:"full"}),time:ju({formats:Fq,defaultWidth:"full"}),dateTime:ju({formats:Lq,defaultWidth:"full"})},$q={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Vq=(n,e,t,r)=>$q[n];function rs(n){return(e,t)=>{const r=t!=null&&t.context?String(t.context):"standalone";let i;if(r==="formatting"&&n.formattingValues){const a=n.defaultFormattingWidth||n.defaultWidth,o=t!=null&&t.width?String(t.width):a;i=n.formattingValues[o]||n.formattingValues[a]}else{const a=n.defaultWidth,o=t!=null&&t.width?String(t.width):n.defaultWidth;i=n.values[o]||n.values[a]}const s=n.argumentCallback?n.argumentCallback(e):e;return i[s]}}const Yq={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Hq={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},zq={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"]},Wq={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"]},Uq={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"}},Gq={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"}},Xq=(n,e)=>{const t=Number(n),r=t%100;if(r>20||r<10)switch(r%10){case 1:return t+"st";case 2:return t+"nd";case 3:return t+"rd"}return t+"th"},qq={ordinalNumber:Xq,era:rs({values:Yq,defaultWidth:"wide"}),quarter:rs({values:Hq,defaultWidth:"wide",argumentCallback:n=>n-1}),month:rs({values:zq,defaultWidth:"wide"}),day:rs({values:Wq,defaultWidth:"wide"}),dayPeriod:rs({values:Uq,defaultWidth:"wide",formattingValues:Gq,defaultFormattingWidth:"wide"})};function is(n){return(e,t={})=>{const r=t.width,i=r&&n.matchPatterns[r]||n.matchPatterns[n.defaultMatchWidth],s=e.match(i);if(!s)return null;const a=s[0],o=r&&n.parsePatterns[r]||n.parsePatterns[n.defaultParseWidth],l=Array.isArray(o)?Qq(o,f=>f.test(a)):Kq(o,f=>f.test(a));let u;u=n.valueCallback?n.valueCallback(l):l,u=t.valueCallback?t.valueCallback(u):u;const h=e.slice(a.length);return{value:u,rest:h}}}function Kq(n,e){for(const t in n)if(Object.prototype.hasOwnProperty.call(n,t)&&e(n[t]))return t}function Qq(n,e){for(let t=0;t<n.length;t++)if(e(n[t]))return t}function KR(n){return(e,t={})=>{const r=e.match(n.matchPattern);if(!r)return null;const i=r[0],s=e.match(n.parsePattern);if(!s)return null;let a=n.valueCallback?n.valueCallback(s[0]):s[0];a=t.valueCallback?t.valueCallback(a):a;const o=e.slice(i.length);return{value:a,rest:o}}}const Zq=/^(\d+)(th|st|nd|rd)?/i,Jq=/\d+/i,eK={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}
103,tK={any:[/^b/i,/^(a|c)/i]},nK={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},rK={any:[/1/i,/2/i,/3/i,/4/i]},iK={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},sK={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]},aK={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},oK={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]},lK={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},uK={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}},cK={ordinalNumber:KR({matchPattern:Zq,parsePattern:Jq,valueCallback:n=>parseInt(n,10)}),era:is({matchPatterns:eK,defaultMatchWidth:"wide",parsePatterns:tK,defaultParseWidth:"any"}),quarter:is({matchPatterns:nK,defaultMatchWidth:"wide",parsePatterns:rK,defaultParseWidth:"any",valueCallback:n=>n+1}),month:is({matchPatterns:iK,defaultMatchWidth:"wide",parsePatterns:sK,defaultParseWidth:"any"}),day:is({matchPatterns:aK,defaultMatchWidth:"wide",parsePatterns:oK,defaultParseWidth:"any"}),dayPeriod:is({matchPatterns:lK,defaultMatchWidth:"any",parsePatterns:uK,defaultParseWidth:"any"})},QR={code:"en-US",formatDistance:Iq,formatLong:Bq,formatRelative:Vq,localize:qq,match:cK,options:{weekStartsOn:0,firstWeekContainsDate:1}};function dK(n,e){const t=_e(n,e==null?void 0:e.in);return nc(t,dv(t))+1}function u1(n,e){const t=_e(n,e==null?void 0:e.in),r=+tc(t)-+Mq(t);return Math.round(r/HR)+1}function c1(n,e){var h,f,m,g;const t=_e(n,e==null?void 0:e.in),r=t.getFullYear(),i=Il(),s=(e==null?void 0:e.firstWeekContainsDate)??((f=(h=e==null?void 0:e.locale)==null?void 0:h.options)==null?void 0:f.firstWeekContainsDate)??i.firstWeekContainsDate??((g=(m=i.locale)==null?void 0:m.options)==null?void 0:g.firstWeekContainsDate)??1,a=bt((e==null?void 0:e.in)||n,0);a.setFullYear(r+1,0,s),a.setHours(0,0,0,0);const o=da(a,e),l=bt((e==null?void 0:e.in)||n,0);l.setFullYear(r,0,s),l.setHours(0,0,0,0);const u=da(l,e);return+t>=+o?r+1:+t>=+u?r:r-1}function fK(n,e){var o,l,u,h;const t=Il(),r=(e==null?void 0:e.firstWeekContainsDate)??((l=(o=e==null?void 0:e.locale)==null?void 0:o.options)==null?void 0:l.firstWeekContainsDate)??t.firstWeekContainsDate??((h=(u=t.locale)==null?void 0:u.options)==null?void 0:h.firstWeekContainsDate)??1,i=c1(n,e),s=bt((e==null?void 0:e.in)||n,0);return s.setFullYear(i,0,r),s.setHours(0,0,0,0),da(s,e)}function ZR(n,e){const t=_e(n,e==null?void 0:e.in),r=+da(t,e)-+fK(t,e);return Math.round(r/HR)+1}function ft(n,e){const t=n<0?"-":"",r=Math.abs(n).toString().padStart(e,"0");return t+r}const Aa={y(n,e){const t=n.getFullYear(),r=t>0?t:1-t;return ft(e==="yy"?r%100:r,e.length)},M(n,e){const t=n.getMonth();return e==="M"?String(t+1):ft(t+1,2)},d(n,e){return ft(n.getDate(),e.length)},a(n,e){const t=n.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return t.toUpperCase();case"aaa":return t;case"aaaaa":return t[0];case"aaaa":default:return t==="am"?"a.m.":"p.m."}},h(n,e){return ft(n.getHours()%12||12,e.length)},H(n,e){return ft(n.getHours(),e.length)},m(n,e){return ft(n.getMinutes(),e.length)},s(n,e){return ft(n.getSeconds(),e.length)},S(n,e){const t=e.length,r=n.getMilliseconds(),i=Math.trunc(r*Math.pow(10,t-3));return ft(i,e.length)}},nu={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},kE={G:function(n,e,t){const r=n.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return t.era(r,{width:"abbreviated"});case"GGGGG":return t.era(r,{width:"narrow"});case"GGGG":default:return t.era(r,{width:"wide"})}},y:function(n,e,t){if(e==="yo"){const r=n.getFullYear(),i=r>0?r:1-r;return t.ordinalNumber(i,{unit:"year"})}return Aa.y(n,e)},Y:function(n,e,t,r){const i=c1(n,r),s=i>0?i:1-i;if(e==="YY"){const a=s%100;return ft(a,2)}return e==="Yo"?t.ordinalNumber(s,{unit:"year"}):ft(s,e.length)},R:function(n,e){const t=WR(n);return ft(t,e.length)},u:function(n,e){const t=n.getFullYear();return ft(t,e.length)},Q:function(n,e,t){const r=Math.ceil((n.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return ft(r,2);case"Qo":return t.ordinalNumber(r,{unit:"quarter"});case"QQQ":return t.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return t.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return t.quarter(r,{width:"wide",context:"formatting"})}},q:function(n,e,t){const r=Math.ceil((n.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return ft(r,2);case"qo":return t.ordinalNumber(r,{unit:"quarter"});case"qqq":return t.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return t.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return t.quarter(r,{width:"wide",context:"standalone"})}},M:function(n,e,t){const r=n.getMonth();switch(e){case"M":case"MM":return Aa.M(n,e);case"Mo":return t.ordinalNumber(r+1,{unit:"month"});case"MMM":return t.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return t.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return t.month(r,{width:"wide",context:"formatting"})}},L:function(n,e,t){const r=n.getMonth();switch(e){case"L":return String(r+1);case"LL":return ft(r+1,2);case"Lo":return t.ordinalNumber(r+1,{unit:"month"});case"LLL":return t.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return t.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return t.month(r,{width:"wide",context:"standalone"})}},w:function(n,e,t,r){const i=ZR(n,r);return e==="wo"?t.ordinalNumber(i,{unit:"week"}):ft(i,e.length)},I:function(n,e,t){const r=u1(n);return e==="Io"?t.ordinalNumber(r,{unit:"week"}):ft(r,e.length)},d:function(n,e,t){return e==="do"?t.ordinalNumber(n.getDate(),{unit:"date"}):Aa.d(n,e)},D:function(n,e,t){const r=dK(n);return e==="Do"?t.ordinalNumber(r,{unit:"dayOfYear"}):ft(r,e.length)},E:function(n,e,t){const r=n.getDay();switch(e){case"E":case"EE":case"EEE":return t.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return t.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return t.day(r,{width:"short",context:"formatting"});case"EEEE":default:return t.day(r,{width:"wide",context:"formatting"})}},e:function(n,e,t,r){const i=n.getDay(),s=(i-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(s);case"ee":return ft(s,2);case"eo":return t.ordinalNumber(s,{unit:"day"});case"eee":return t.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return t.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return t.day(i,{width:"short",context:"formatting"});case"eeee":default:return t.day(i,{width:"wide",context:"formatting"})}},c:function(n,e,t,r){const i=n.getDay(),s=(i-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(s);case"cc":return ft(s,e.length);case"co":return t.ordinalNumber(s,{unit:"day"});case"ccc":return t.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return t.day(i,{width:"narrow",context:"standalone"});case"cccccc":return t.day(i,{width:"short",context:"standalone"});case"cccc":default:return t.day(i,{width:"wide",context:"standalone"})}},i:function(n,e,t){const r=n.getDay(),i=r===0?7:r;switch(e){case"i":return String(i);case"ii":return ft(i,e.length);case"io":return t.ordinalNumber(i,{unit:"day"});case"iii":return t.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return t.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return t.day(r,{width:"short",context:"formatting"});case"iiii":default:return t.day(r,{width:"wide",context:"formatting"})}},a:function(n,e,t){const i=n.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return t.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return t.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return t.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return t.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(n,e,t){const r=n.getHours();let i;switch(r===12?i=nu.noon:r===0?i=nu.midnight:i=r/12>
103=1?"pm":"am",e){case"b":case"bb":return t.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return t.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return t.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return t.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(n,e,t){const r=n.getHours();let i;switch(r>=17?i=nu.evening:r>=12?i=nu.afternoon:r>=4?i=nu.morning:i=nu.night,e){case"B":case"BB":case"BBB":return t.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return t.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return t.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(n,e,t){if(e==="ho"){let r=n.getHours()%12;return r===0&&(r=12),t.ordinalNumber(r,{unit:"hour"})}return Aa.h(n,e)},H:function(n,e,t){return e==="Ho"?t.ordinalNumber(n.getHours(),{unit:"hour"}):Aa.H(n,e)},K:function(n,e,t){const r=n.getHours()%12;return e==="Ko"?t.ordinalNumber(r,{unit:"hour"}):ft(r,e.length)},k:function(n,e,t){let r=n.getHours();return r===0&&(r=24),e==="ko"?t.ordinalNumber(r,{unit:"hour"}):ft(r,e.length)},m:function(n,e,t){return e==="mo"?t.ordinalNumber(n.getMinutes(),{unit:"minute"}):Aa.m(n,e)},s:function(n,e,t){return e==="so"?t.ordinalNumber(n.getSeconds(),{unit:"second"}):Aa.s(n,e)},S:function(n,e){return Aa.S(n,e)},X:function(n,e,t){const r=n.getTimezoneOffset();if(r===0)return"Z";switch(e){case"X":return CE(r);case"XXXX":case"XX":return Io(r);case"XXXXX":case"XXX":default:return Io(r,":")}},x:function(n,e,t){const r=n.getTimezoneOffset();switch(e){case"x":return CE(r);case"xxxx":case"xx":return Io(r);case"xxxxx":case"xxx":default:return Io(r,":")}},O:function(n,e,t){const r=n.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+PE(r,":");case"OOOO":default:return"GMT"+Io(r,":")}},z:function(n,e,t){const r=n.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+PE(r,":");case"zzzz":default:return"GMT"+Io(r,":")}},t:function(n,e,t){const r=Math.trunc(+n/1e3);return ft(r,e.length)},T:function(n,e,t){return ft(+n,e.length)}};function PE(n,e=""){const t=n>0?"-":"+",r=Math.abs(n),i=Math.trunc(r/60),s=r%60;return s===0?t+String(i):t+String(i)+e+ft(s,2)}function CE(n,e){return n%60===0?(n>0?"-":"+")+ft(Math.abs(n)/60,2):Io(n,e)}function Io(n,e=""){const t=n>0?"-":"+",r=Math.abs(n),i=ft(Math.trunc(r/60),2),s=ft(r%60,2);return t+i+e+s}const EE=(n,e)=>{switch(n){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},JR=(n,e)=>{switch(n){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},hK=(n,e)=>{const t=n.match(/(P+)(p+)?/)||[],r=t[1],i=t[2];if(!i)return EE(n,e);let s;switch(r){case"P":s=e.dateTime({width:"short"});break;case"PP":s=e.dateTime({width:"medium"});break;case"PPP":s=e.dateTime({width:"long"});break;case"PPPP":default:s=e.dateTime({width:"full"});break}return s.replace("{{date}}",EE(r,e)).replace("{{time}}",JR(i,e))},cx={p:JR,P:hK},pK=/^D+$/,gK=/^Y+$/,mK=["D","DD","YY","YYYY"];function e2(n){return pK.test(n)}function t2(n){return gK.test(n)}function dx(n,e,t){const r=vK(n,e,t);if(console.warn(r),mK.includes(n))throw new RangeError(r)}function vK(n,e,t){const r=n[0]==="Y"?"years":"days of the month";return`Use \`${n.toLowerCase()}\` instead of \`${n}\` (in \`${e}\`) for formatting ${r} to the input \`${t}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const bK=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,yK=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,_K=/^'([^]*?)'?$/,xK=/''/g,wK=/[a-zA-Z]/;function ME(n,e,t){var h,f,m,g,y,v,x,_;const r=Il(),i=(t==null?void 0:t.locale)??r.locale??QR,s=(t==null?void 0:t.firstWeekContainsDate)??((f=(h=t==null?void 0:t.locale)==null?void 0:h.options)==null?void 0:f.firstWeekContainsDate)??r.firstWeekContainsDate??((g=(m=r.locale)==null?void 0:m.options)==null?void 0:g.firstWeekContainsDate)??1,a=(t==null?void 0:t.weekStartsOn)??((v=(y=t==null?void 0:t.locale)==null?void 0:y.options)==null?void 0:v.weekStartsOn)??r.weekStartsOn??((_=(x=r.locale)==null?void 0:x.options)==null?void 0:_.weekStartsOn)??0,o=_e(n,t==null?void 0:t.in);if(!rc(o))throw new RangeError("Invalid time value");let l=e.match(yK).map(S=>{const w=S[0];if(w==="p"||w==="P"){const k=cx[w];return k(S,i.formatLong)}return S}).join("").match(bK).map(S=>{if(S==="''")return{isToken:!1,value:"'"};const w=S[0];if(w==="'")return{isToken:!1,value:SK(S)};if(kE[w])return{isToken:!0,value:S};
103if(w.match(wK))throw new RangeError("Format string contains an unescaped latin alphabet character `"+w+"`");return{isToken:!1,value:S}});i.localize.preprocessor&&(l=i.localize.preprocessor(o,l));const u={firstWeekContainsDate:s,weekStartsOn:a,locale:i};return l.map(S=>{if(!S.isToken)return S.value;const w=S.value;(!(t!=null&&t.useAdditionalWeekYearTokens)&&t2(w)||!(t!=null&&t.useAdditionalDayOfYearTokens)&&e2(w))&&dx(w,e,String(n));const k=kE[w[0]];return k(o,w,i.localize,u)}).join("")}function SK(n){const e=n.match(_K);return e?e[1].replace(xK,"'"):n}function TE(n,e){return _e(n,e==null?void 0:e.in).getDate()}function DK(n,e){return _e(n,e==null?void 0:e.in).getDay()}function kK(n,e){const t=_e(n,e==null?void 0:e.in),r=t.getFullYear(),i=t.getMonth(),s=bt(t,0);return s.setFullYear(r,i+1,0),s.setHours(0,0,0,0),s.getDate()}function PK(){return Object.assign({},Il())}function zn(n,e){return _e(n,e==null?void 0:e.in).getHours()}function CK(n,e){const t=_e(n,e==null?void 0:e.in).getDay();return t===0?7:t}function Wn(n,e){return _e(n,e==null?void 0:e.in).getMinutes()}function mr(n,e){return _e(n,e==null?void 0:e.in).getMonth()}function Ja(n){return _e(n).getSeconds()}function fx(n){return+_e(n)}function Xe(n,e){return _e(n,e==null?void 0:e.in).getFullYear()}function Ks(n,e){return+_e(n)>+_e(e)}function os(n,e){return+_e(n)<+_e(e)}function EK(n,e){return+_e(n)==+_e(e)}function MK(n,e){const t=TK(e)?new e(0):bt(e,0);return t.setFullYear(n.getFullYear(),n.getMonth(),n.getDate()),t.setHours(n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),t}function TK(n){var e;return typeof n=="function"&&((e=n.prototype)==null?void 0:e.constructor)===n}const OK=10;class n2{constructor(){de(this,"subPriority",0)}validate(e,t){return!0}}class AK extends n2{constructor(e,t,r,i,s){super(),this.value=e,this.validateValue=t,this.setValue=r,this.priority=i,s&&(this.subPriority=s)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,r){return this.setValue(e,t,this.value,r)}}class jK extends n2{constructor(t,r){super();de(this,"priority",OK);de(this,"subPriority",-1);this.context=t||(i=>bt(r,i))}set(t,r){return r.timestampIsSet?t:bt(t,MK(t,this.context))}}class ut{run(e,t,r,i){const s=this.parse(e,t,r,i);return s?{setter:new AK(s.value,this.validate,this.set,this.priority,this.subPriority),rest:s.rest}:null}validate(e,t,r){return!0}}class RK extends ut{constructor(){super(...arguments);de(this,"priority",140);de(this,"incompatibleTokens",["R","u","t","T"])}parse(t,r,i){switch(r){case"G":case"GG":case"GGG":return i.era(t,{width:"abbreviated"})||i.era(t,{width:"narrow"});case"GGGGG":return i.era(t,{width:"narrow"});case"GGGG":default:return i.era(t,{width:"wide"})||i.era(t,{width:"abbreviated"})||i.era(t,{width:"narrow"})}}set(t,r,i){return r.era=i,t.setFullYear(i,0,1),t.setHours(0,0,0,0),t}}const rn={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},ss={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function sn(n,e){return n&&{value:e(n.value),rest:n.rest}}function Yt(n,e){const t=e.match(n);return t?{value:parseInt(t[0],10),rest:e.slice(t[0].length)}:null}function as(n,e){const t=e.match(n);if(!t)return null;if(t[0]==="Z")return{value:0,rest:e.slice(1)};const r=t[1]==="+"?1:-1,i=t[2]?parseInt(t[2],10):0,s=t[3]?parseInt(t[3],10):0,a=t[5]?parseInt(t[5],10):0;return{value:r*(i*cv+s*uv+a*Pq),rest:e.slice(t[0].length)}}function r2(n){return Yt(rn.anyDigitsSigned,n)}function Qt(n,e){switch(n){case 1:return Yt(rn.singleDigit,e);case 2:return Yt(rn.twoDigits,e);case 3:return Yt(rn.threeDigits,e);case 4:return Yt(rn.fourDigits,e);default:return Yt(new RegExp("^\\d{1,"+n+"}"),e)}}function pm(n,e){switch(n){case 1:return Yt(rn.singleDigitSigned,e);case 2:return Yt(rn.twoDigitsSigned,e);case 3:return Yt(rn.threeDigitsSigned,e);case 4:return Yt(rn.fourDigitsSigned,e);default:return Yt(new RegExp("^-?\\d{1,"+n+"}"),e)}}function d1(n){switch(n){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function i2(n,e){const t=e>0,r=t?e:1-e;let i;if(r<=50)i=n||100;else{const s=r+50,a=Math.trunc(s/100)*100,o=n>=s%100;i=n+a-(o?100:0)}return t?i:1-i}
103function s2(n){return n%400===0||n%4===0&&n%100!==0}class IK extends ut{constructor(){super(...arguments);de(this,"priority",130);de(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(t,r,i){const s=a=>({year:a,isTwoDigitYear:r==="yy"});switch(r){case"y":return sn(Qt(4,t),s);case"yo":return sn(i.ordinalNumber(t,{unit:"year"}),s);default:return sn(Qt(r.length,t),s)}}validate(t,r){return r.isTwoDigitYear||r.year>0}set(t,r,i){const s=t.getFullYear();if(i.isTwoDigitYear){const o=i2(i.year,s);return t.setFullYear(o,0,1),t.setHours(0,0,0,0),t}const a=!("era"in r)||r.era===1?i.year:1-i.year;return t.setFullYear(a,0,1),t.setHours(0,0,0,0),t}}class NK extends ut{constructor(){super(...arguments);de(this,"priority",130);de(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(t,r,i){const s=a=>({year:a,isTwoDigitYear:r==="YY"});switch(r){case"Y":return sn(Qt(4,t),s);case"Yo":return sn(i.ordinalNumber(t,{unit:"year"}),s);default:return sn(Qt(r.length,t),s)}}validate(t,r){return r.isTwoDigitYear||r.year>0}set(t,r,i,s){const a=c1(t,s);if(i.isTwoDigitYear){const l=i2(i.year,a);return t.setFullYear(l,0,s.firstWeekContainsDate),t.setHours(0,0,0,0),da(t,s)}const o=!("era"in r)||r.era===1?i.year:1-i.year;return t.setFullYear(o,0,s.firstWeekContainsDate),t.setHours(0,0,0,0),da(t,s)}}class FK extends ut{constructor(){super(...arguments);de(this,"priority",130);de(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(t,r){return pm(r==="R"?4:r.length,t)}set(t,r,i){const s=bt(t,0);return s.setFullYear(i,0,4),s.setHours(0,0,0,0),tc(s)}}class LK extends ut{constructor(){super(...arguments);de(this,"priority",130);de(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(t,r){return pm(r==="u"?4:r.length,t)}set(t,r,i){return t.setFullYear(i,0,1),t.setHours(0,0,0,0),t}}class BK extends ut{constructor(){super(...arguments);de(this,"priority",120);de(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,r,i){switch(r){case"Q":case"QQ":return Qt(r.length,t);case"Qo":return i.ordinalNumber(t,{unit:"quarter"});case"QQQ":return i.quarter(t,{width:"abbreviated",context:"formatting"})||i.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return i.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(t,{width:"wide",context:"formatting"})||i.quarter(t,{width:"abbreviated",context:"formatting"})||i.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,r){return r>=1&&r<=4}set(t,r,i){return t.setMonth((i-1)*3,1),t.setHours(0,0,0,0),t}}class $K extends ut{constructor(){super(...arguments);de(this,"priority",120);de(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,r,i){switch(r){case"q":case"qq":return Qt(r.length,t);case"qo":return i.ordinalNumber(t,{unit:"quarter"});case"qqq":return i.quarter(t,{width:"abbreviated",context:"standalone"})||i.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return i.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(t,{width:"wide",context:"standalone"})||i.quarter(t,{width:"abbreviated",context:"standalone"})||i.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,r){return r>=1&&r<=4}set(t,r,i){return t.setMonth((i-1)*3,1),t.setHours(0,0,0,0),t}}class VK extends ut{constructor(){super(...arguments);de(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);de(this,"priority",110)}parse(t,r,i){const s=a=>a-1;switch(r){case"M":return sn(Yt(rn.month,t),s);case"MM":return sn(Qt(2,t),s);case"Mo":return sn(i.ordinalNumber(t,{unit:"month"}),s);case"MMM":return i.month(t,{width:"abbreviated",context:"formatting"})||i.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return i.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(t,{width:"wide",context:"formatting"})||i.month(t,{width:"abbreviated",context:"formatting"})||i.month(t,{width:"narrow",context:"formatting"})}}validate(t,r){return r>=0&&r<=11}set(t,r,i){return t.setMonth(i,1),t.setHours(0,0,0,0),t}}class YK extends ut{constructor(){super(...arguments);de(this,"priority",110);de(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(t,r,i){const s=a=>a-1;switch(r){case"L":return sn(Yt(rn.month,t),s);case"LL":return sn(Qt(2,t),s);case"Lo":return sn(i.ordinalNumber(t,{unit:"month"}),s);case"LLL":return i.month(t,{width:"abbreviated",context:"standalone"})||i.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return i.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(t,{width:"wide",context:"standalone"})||i.month(t,{width:"abbreviated",context:"standalone"})||i.month(t,{width:"narrow",context:"standalone"})}}validate(t,r){return r>=0&&r<=11}set(t,r,i){return t.setMonth(i,1),t.setHours(0,0,0,0),t}}function HK(n,e,t){const r=_e(n,t==null?void 0:t.in),i=ZR(r,t)-e;return r.setDate(r.getDate()-i*7),_e(r,t==null?void 0:t.in)}class zK extends ut{constructor(){super(...arguments);de(this,"priority",100);de(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(t,r,i){switch(r){case"w":return Yt(rn.week,t);case"wo":return i.ordinalNumber(t,{unit:"week"});default:return Qt(r.length,t)}}validate(t,r){return r>=1&&r<=53}set(t,r,i,s){return da(HK(t,i,s),s)}}function WK(n,e,t){const r=_e(n,t==null?void 0:t.in),i=u1(r,t)-e;return r.setDate(r.getDate()-i*7),r}class UK extends ut{constructor(){super(...arguments);de(this,"priority",100);de(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(t,r,i){switch(r){case"I":return Yt(rn.week,t);case"Io":return i.ordinalNumber(t,{unit:"week"});default:return Qt(r.length,t)}}validate(t,r){return r>=1&&r<=53}set(t,r,i){return tc(WK(t,i))}}const GK=[31,28,31,30,31,30,31,31,30,31,30,31],XK=[31,29,31,30,31,30,31,31,30,31,30,31];class qK extends ut{constructor(){super(...arguments);de(this,"priority",90);de(this,"subPriority",1);de(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(t,r,i){switch(r){case"d":return Yt(rn.date,t);case"do":return i.ordinalNumber(t,{unit:"date"});default:return Qt(r.length,t)}}validate(t,r){const i=t.getFullYear(),s=s2(i),a=t.getMonth();return s?r>=1&&r<=XK[a]:r>=1&&r<=GK[a]}set(t,r,i){return t.setDate(i),t.setHours(0,0,0,0),t}}class KK extends ut{constructor(){super(...arguments);de(this,"priority",90);de(this,"subpriority",1);de(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(t,r,i){switch(r){case"D":case"DD":return Yt(rn.dayOfYear,t);case"Do":return i.ordinalNumber(t,{unit:"date"});default:return Qt(r.length,t)}}validate(t,r){const i=t.getFullYear();return s2(i)?r>=1&&r<=366:r>=1&&r<=365}set(t,r,i){return t.setMonth(0,i),t.setHours(0,0,0,0),t}}function f1(n,e,t){var f,m,g,y;const r=Il(),i=(t==null?void 0:t.weekStartsOn)??((m=(f=t==null?void 0:t.locale)==null?void 0:f.options)==null?void 0:m.weekStartsOn)??r.weekStartsOn??((y=(g=r.locale)==null?void 0:g.options)==null?void 0:y.weekStartsOn)??0,s=_e(n,t==null?void 0:t.in),a=s.getDay(),l=(e%7+7)%7,u=7-i,h=e<0||e>6?e-(a+u)%7:(l+u)%7-(a+u)%7;return Ii(s,h,t)}class QK extends ut{constructor(){super(...arguments);de(this,"priority",90);de(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(t,r,i){switch(r){case"E":case"EE":case"EEE":return i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return i.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"})}}validate(t,r){return r>=0&&r<=6}set(t,r,i,s){return t=f1(t,i,s),t.setHours(0,0,0,0),t}}class ZK extends ut{constructor(){super(...arguments);de(this,"priority",90);de(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(t,r,i,s){const a=o=>{const l=Math.floor((o-1)/7)*7;return(o+s.weekStartsOn+6)%7+l};switch(r){case"e":case"ee":return sn(Qt(r.length,t),a);case"eo":return sn(i.ordinalNumber(t,{unit:"day"}),a);case"eee":return i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"eeeee":return i.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"})}}validate(t,r){return r>=0&&r<=6}set(t,r,i,s){return t=f1(t,i,s),t.setHours(0,0,0,0),t}}class JK extends ut{constructor(){super(...arguments);de(this,"priority",90);de(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(t,r,i,s){const a=o=>{const l=Math.floor((o-1)/7)*7;return(o+s.weekStartsOn+6)%7+l};switch(r){case"c":case"cc":return sn(Qt(r.length,t),a);case"co":return sn(i.ordinalNumber(t,{unit:"day"}),a);case"ccc":return i.day(t,{width:"abbreviated",context:"standalone"})||i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"});case"ccccc":return i.day(t,{width:"narrow",context:"standalone"});case"cccccc":return i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"});case"cccc":default:return i.day(t,{width:"wide",context:"standalone"})||i.day(t,{width:"abbreviated",context:"standalone"})||i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"})}}validate(t,r){return r>=0&&r<=6}set(t,r,i,s){return t=f1(t,i,s),t.setHours(0,0,0,0),t}}function eQ(n,e,t){const r=_e(n,t==null?void 0:t.in),i=CK(r,t),s=e-i;return Ii(r,s,t)}class tQ extends ut{constructor(){super(...arguments);de(this,"priority",90);de(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(t,r,i){const s=a=>a===0?7:a;switch(r){case"i":case"ii":return Qt(r.length,t);case"io":return i.ordinalNumber(t,{unit:"day"});case"iii":return sn(i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),s);case"iiiii":return sn(i.day(t,{width:"narrow",context:"formatting"}),s);case"iiiiii":return sn(i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),s);case"iiii":default:return sn(i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),s)}}validate(t,r){return r>=1&&r<=7}set(t,r,i){return t=eQ(t,i),t.setHours(0,0,0,0),t}}class nQ extends ut{constructor(){super(...arguments);de(this,"priority",80);de(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(t,r,i){switch(r){case"a":case"aa":case"aaa":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return i.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,r,i){return t.setHours(d1(i),0,0,0),t}}class rQ extends ut{constructor(){super(...arguments);de(this,"priority",80);de(this,"incompatibleTokens",["a","B","H","k","t","T"])}
103parse(t,r,i){switch(r){case"b":case"bb":case"bbb":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return i.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,r,i){return t.setHours(d1(i),0,0,0),t}}class iQ extends ut{constructor(){super(...arguments);de(this,"priority",80);de(this,"incompatibleTokens",["a","b","t","T"])}parse(t,r,i){switch(r){case"B":case"BB":case"BBB":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return i.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,r,i){return t.setHours(d1(i),0,0,0),t}}class sQ extends ut{constructor(){super(...arguments);de(this,"priority",70);de(this,"incompatibleTokens",["H","K","k","t","T"])}parse(t,r,i){switch(r){case"h":return Yt(rn.hour12h,t);case"ho":return i.ordinalNumber(t,{unit:"hour"});default:return Qt(r.length,t)}}validate(t,r){return r>=1&&r<=12}set(t,r,i){const s=t.getHours()>=12;return s&&i<12?t.setHours(i+12,0,0,0):!s&&i===12?t.setHours(0,0,0,0):t.setHours(i,0,0,0),t}}class aQ extends ut{constructor(){super(...arguments);de(this,"priority",70);de(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(t,r,i){switch(r){case"H":return Yt(rn.hour23h,t);case"Ho":return i.ordinalNumber(t,{unit:"hour"});default:return Qt(r.length,t)}}validate(t,r){return r>=0&&r<=23}set(t,r,i){return t.setHours(i,0,0,0),t}}class oQ extends ut{constructor(){super(...arguments);de(this,"priority",70);de(this,"incompatibleTokens",["h","H","k","t","T"])}parse(t,r,i){switch(r){case"K":return Yt(rn.hour11h,t);case"Ko":return i.ordinalNumber(t,{unit:"hour"});default:return Qt(r.length,t)}}validate(t,r){return r>=0&&r<=11}set(t,r,i){return t.getHours()>=12&&i<12?t.setHours(i+12,0,0,0):t.setHours(i,0,0,0),t}}class lQ extends ut{constructor(){super(...arguments);de(this,"priority",70);de(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(t,r,i){switch(r){case"k":return Yt(rn.hour24h,t);case"ko":return i.ordinalNumber(t,{unit:"hour"});default:return Qt(r.length,t)}}validate(t,r){return r>=1&&r<=24}set(t,r,i){const s=i<=24?i%24:i;return t.setHours(s,0,0,0),t}}class uQ extends ut{constructor(){super(...arguments);de(this,"priority",60);de(this,"incompatibleTokens",["t","T"])}parse(t,r,i){switch(r){case"m":return Yt(rn.minute,t);case"mo":return i.ordinalNumber(t,{unit:"minute"});default:return Qt(r.length,t)}}validate(t,r){return r>=0&&r<=59}set(t,r,i){return t.setMinutes(i,0,0),t}}class cQ extends ut{constructor(){super(...arguments);de(this,"priority",50);de(this,"incompatibleTokens",["t","T"])}parse(t,r,i){switch(r){case"s":return Yt(rn.second,t);case"so":return i.ordinalNumber(t,{unit:"second"});default:return Qt(r.length,t)}}validate(t,r){return r>=0&&r<=59}set(t,r,i){return t.setSeconds(i,0),t}}class dQ extends ut{constructor(){super(...arguments);de(this,"priority",30);de(this,"incompatibleTokens",["t","T"])}parse(t,r){const i=s=>Math.trunc(s*Math.pow(10,-r.length+3));return sn(Qt(r.length,t),i)}set(t,r,i){return t.setMilliseconds(i),t}}class fQ extends ut{constructor(){super(...arguments);de(this,"priority",10);de(this,"incompatibleTokens",["t","T","x"])}parse(t,r){switch(r){case"X":return as(ss.basicOptionalMinutes,t);case"XX":return as(ss.basic,t);case"XXXX":return as(ss.basicOptionalSeconds,t);case"XXXXX":return as(ss.extendedOptionalSeconds,t);case"XXX":default:return as(ss.extended,t)}}set(t,r,i){return r.timestampIsSet?t:bt(t,t.getTime()-um(t)-i)}}class hQ extends ut{constructor(){super(...arguments);de(this,"priority",10);de(this,"incompatibleTokens",["t","T","X"])}parse(t,r){switch(r){case"x":return as(ss.basicOptionalMinutes,t);case"xx":return as(ss.basic,t);case"xxxx":return as(ss.basicOptionalSeconds,t);case"xxxxx":return as(ss.extendedOptionalSeconds,t);case"xxx":default:return as(ss.extended,t)}}set(t,r,i){return r.timestampIsSet?t:bt(t,t.getTime()-um(t)-i)}}class pQ extends ut{constructor(){super(...arguments);de(this,"priority",40);de(this,"incompatibleTokens","*")}parse(t){return r2(t)}set(t,r,i){return[bt(t,i*1e3),{timestampIsSet:!0}]}}class gQ extends ut{constructor(){super(...arguments);de(this,"priority",20);de(this,"incompatibleTokens","*")}parse(t){return r2(t)}set(t,r,i){return[bt(t,i),{timestampIsSet:!0}]}}const mQ={G:new RK,y:new IK,Y:new NK,R:new FK,u:new LK,Q:new BK,q:new $K,M:new VK,L:new YK,w:new zK,I:new UK,d:new qK,D:new KK,E:new QK,e:new ZK,c:new JK,i:new tQ,a:new nQ,b:new rQ,B:new iQ,h:new sQ,H:new aQ,K:new oQ,k:new lQ,m:new uQ,s:new cQ,S:new dQ,X:new fQ,x:new hQ,t:new pQ,T:new gQ},vQ=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,bQ=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,yQ=/^'([^]*?)'?$/,_Q=/''/g,xQ=/\S/,wQ=/[a-zA-Z]/;function SQ(n,e,t,r){var x,_,S,w,k,P,j,A;const i=()=>bt((r==null?void 0:r.in)||t,NaN),s=PK(),a=(r==null?void 0:r.locale)??s.locale??QR,o=(r==null?void 0:r.firstWeekContainsDate)??((_=(x=r==null?void 0:r.locale)==null?void 0:x.options)==null?void 0:_.firstWeekContainsDate)??s.firstWeekContainsDate??((w=(S=s.locale)==null?void 0:S.options)==null?void 0:w.firstWeekContainsDate)??1,l=(r==null?void 0:r.weekStartsOn)??((P=(k=r==null?void 0:r.locale)==null?void 0:k.options)==null?void 0:P.weekStartsOn)??s.weekStartsOn??((A=(j=s.locale)==null?void 0:j.options)==null?void 0:A.weekStartsOn)??0;if(!e)return n?i():_e(t,r==null?void 0:r.in);const u={firstWeekContainsDate:o,weekStartsOn:l,locale:a},h=[new jK(r==null?void 0:r.in,t)],f=e.match(bQ).map(M=>{const L=M[0];if(L in cx){const I=cx[L];return I(M,a.formatLong)}return M}).join("").match(vQ),m=[];for(let M of f){!(r!=null&&r.useAdditionalWeekYearTokens)&&t2(M)&&dx(M,e,n),!(r!=null&&r.useAdditionalDayOfYearTokens)&&e2(M)&&dx(M,e,n);const L=M[0],I=mQ[L];if(I){const{incompatibleTokens:V}=I;if(Array.isArray(V)){const U=m.find(X=>V.includes(X.token)||X.token===L);
103if(U)throw new RangeError(`The format string mustn't contain \`${U.fullToken}\` and \`${M}\` at the same time`)}else if(I.incompatibleTokens==="*"&&m.length>0)throw new RangeError(`The format string mustn't contain \`${M}\` and any other token at the same time`);m.push({token:L,fullToken:M});const Q=I.run(n,M,a.match,u);if(!Q)return i();h.push(Q.setter),n=Q.rest}else{if(L.match(wQ))throw new RangeError("Format string contains an unescaped latin alphabet character `"+L+"`");if(M==="''"?M="'":L==="'"&&(M=DQ(M)),n.indexOf(M)===0)n=n.slice(M.length);else return i()}}if(n.length>0&&xQ.test(n))return i();const g=h.map(M=>M.priority).sort((M,L)=>L-M).filter((M,L,I)=>I.indexOf(M)===L).map(M=>h.filter(L=>L.priority===M).sort((L,I)=>I.subPriority-L.subPriority)).map(M=>M[0]);let y=_e(t,r==null?void 0:r.in);if(isNaN(+y))return i();const v={};for(const M of g){if(!M.validate(y,u))return i();const L=M.set(y,v,u);Array.isArray(L)?(y=L[0],Object.assign(v,L[1])):y=L}return y}function DQ(n){return n.match(yQ)[1].replace(_Q,"'")}function kQ(n,e,t){const[r,i]=ba(t==null?void 0:t.in,n,e);return r.getFullYear()===i.getFullYear()&&r.getMonth()===i.getMonth()}function PQ(n,e,t){const[r,i]=ba(t==null?void 0:t.in,n,e);return+ux(r)==+ux(i)}function CQ(n,e,t){const[r,i]=ba(t==null?void 0:t.in,n,e);return r.getFullYear()===i.getFullYear()}function Sf(n,e,t){const r=+_e(n,t==null?void 0:t.in),[i,s]=[+_e(e.start,t==null?void 0:t.in),+_e(e.end,t==null?void 0:t.in)].sort((a,o)=>a-o);return r>=i&&r<=s}function EQ(n,e,t){return Ii(n,-e,t)}function MQ(n,e){const t=()=>bt(e==null?void 0:e.in,NaN),r=(e==null?void 0:e.additionalDigits)??2,i=jQ(n);let s;if(i.date){const u=RQ(i.date,r);s=IQ(u.restDateString,u.year)}if(!s||isNaN(+s))return t();const a=+s;let o=0,l;if(i.time&&(o=NQ(i.time),isNaN(o)))return t();if(i.timezone){if(l=FQ(i.timezone),isNaN(l))return t()}else{const u=new Date(a+o),h=_e(0,e==null?void 0:e.in);return h.setFullYear(u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()),h.setHours(u.getUTCHours(),u.getUTCMinutes(),u.getUTCSeconds(),u.getUTCMilliseconds()),h}return _e(a+o+l,e==null?void 0:e.in)}const Dp={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},TQ=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,OQ=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,AQ=/^([+-])(\d{2})(?::?(\d{2}))?$/;function jQ(n){const e={},t=n.split(Dp.dateTimeDelimiter);let r;if(t.length>2)return e;if(/:/.test(t[0])?r=t[0]:(e.date=t[0],r=t[1],Dp.timeZoneDelimiter.test(e.date)&&(e.date=n.split(Dp.timeZoneDelimiter)[0],r=n.substr(e.date.length,n.length))),r){const i=Dp.timezone.exec(r);i?(e.time=r.replace(i[1],""),e.timezone=i[1]):e.time=r}return e}function RQ(n,e){const t=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),r=n.match(t);if(!r)return{year:NaN,restDateString:""};const i=r[1]?parseInt(r[1]):null,s=r[2]?parseInt(r[2]):null;return{year:s===null?i:s*100,restDateString:n.slice((r[1]||r[2]).length)}}function IQ(n,e){if(e===null)return new Date(NaN);const t=n.match(TQ);if(!t)return new Date(NaN);const r=!!t[4],i=ad(t[1]),s=ad(t[2])-1,a=ad(t[3]),o=ad(t[4]),l=ad(t[5])-1;if(r)return YQ(e,o,l)?LQ(e,o,l):new Date(NaN);{const u=new Date(0);return!$Q(e,s,a)||!VQ(e,i)?new Date(NaN):(u.setUTCFullYear(e,s,Math.max(i,a)),u)}}function ad(n){return n?parseInt(n):1}function NQ(n){const e=n.match(OQ);if(!e)return NaN;const t=l_(e[1]),r=l_(e[2]),i=l_(e[3]);return HQ(t,r,i)?t*cv+r*uv+i*1e3:NaN}function l_(n){return n&&parseFloat(n.replace(",","."))||0}function FQ(n){if(n==="Z")return 0;const e=n.match(AQ);if(!e)return 0;const t=e[1]==="+"?-1:1,r=parseInt(e[2]),i=e[3]&&parseInt(e[3])||0;return zQ(r,i)?t*(r*cv+i*uv):NaN}function LQ(n,e,t){const r=new Date(0);r.setUTCFullYear(n,0,4);const i=r.getUTCDay()||7,s=(e-1)*7+t+1-i;return r.setUTCDate(r.getUTCDate()+s),r}const BQ=[31,null,31,30,31,30,31,31,30,31,30,31];function a2(n){return n%400===0||n%4===0&&n%100!==0}function $Q(n,e,t){return e>=0&&e<=11&&t>=1&&t<=(BQ[e]||(a2(n)?29:28))}function VQ(n,e){return e>=1&&e<=(a2(n)?366:365)}function YQ(n,e,t){return e>=1&&e<=53&&t>=0&&t<=6}function HQ(n,e,t){return n===24?e===0&&t===0:t>=0&&t<60&&e>=0&&e<60&&n>=0&&n<25}function zQ(n,e){return e>=0&&e<=59}function Ar(n,e,t){const r=_e(n,t==null?void 0:t.in),i=r.getFullYear(),s=r.getDate(),a=bt((t==null?void 0:t.in)||n,0);a.setFullYear(i,e,15),a.setHours(0,0,0,0);const o=kK(a);return r.setMonth(e,Math.min(s,o)),r}function lg(n,e,t){const r=_e(n,t==null?void 0:t.in);return r.setHours(e),r}function ug(n,e,t){const r=_e(n,t==null?void 0:t.in);return r.setMinutes(e),r}function lu(n,e,t){const r=_e(n,t==null?void 0:t.in),i=Math.trunc(r.getMonth()/3)+1,s=e-i;return Ar(r,r.getMonth()+s*3)}function cg(n,e,t){const r=_e(n,t==null?void 0:t.in);return r.setSeconds(e),r}function Qi(n,e,t){const r=_e(n,t==null?void 0:t.in);return isNaN(+r)?bt((t==null?void 0:t.in)||n,NaN):(r.setFullYear(e),r)}function Zo(n,e,t){return Yi(n,-e,t)}function o2(n,e,t){return l1(n,-e,t)}function OE(n,e,t){return cm(n,-e,t)}function lo(n,e,t){return Ni(n,-e,t)}function fv(){return typeof window<"u"}function Sc(n){return l2(n)?(n.nodeName||"").toLowerCase():"#document"}function Lr(n){var e;return(n==null||(e=n.ownerDocument)==null?void 0:e.defaultView)||window}function Ss(n){var e;return(e=(l2(n)?n.ownerDocument:n.document)||window.document)==null?void 0:e.documentElement}function l2(n){return fv()?n instanceof Node||n instanceof Lr(n).Node:!1}function er(n){return fv()?n instanceof Element||n instanceof Lr(n).Element:!1}function ys(n){return fv()?n instanceof HTMLElement||n instanceof Lr(n).HTMLElement:!1}function AE(n){return!fv()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof Lr(n).ShadowRoot}const WQ=new Set(["inline","contents"]);function qf(n){const{overflow:e,overflowX:t,overflowY:r,display:i}=gi(n);return/auto|scroll|overlay|hidden|clip/.test(e+r+t)&&!WQ.has(i)}const UQ=new Set(["table","td","th"]);function GQ(n){return UQ.has(Sc(n))}const XQ=[":popover-open",":modal"];function hv(n){return XQ.some(e=>{try{return n.matches(e)}catch{return!1}})}const qQ=["transform","translate","scale","rotate","perspective"],KQ=["transform","translate","scale","rotate","perspective","filter"],QQ=["paint","layout","strict","content"];function h1(n){const e=p1(),t=er(n)?gi(n):n;return qQ.some(r=>t[r]?t[r]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!e&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!e&&(t.filter?t.filter!=="none":!1)||KQ.some(r=>(t.willChange||"").includes(r))||QQ.some(r=>(t.contain||"").includes(r))}function ZQ(n){let e=uo(n);for(;ys(e)&&!ic(e);){if(h1(e))return e;if(hv(e))return null;e=uo(e)}return null}function p1(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const JQ=new Set(["html","body","#document"]);function ic(n){return JQ.has(Sc(n))}function gi(n){return Lr(n).getComputedStyle(n)}function pv(n){return er(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function uo(n){if(Sc(n)==="html")return n;const e=n.assignedSlot||n.parentNode||AE(n)&&n.host||Ss(n);return AE(e)?e.host:e}function u2(n){const e=uo(n);return ic(e)?n.ownerDocument?n.ownerDocument.body:n.body:ys(e)&&qf(e)?e:u2(e)}function Df(n,e,t){var r;e===void 0&&(e=[]),t===void 0&&(t=!0);const i=u2(n),s=i===((r=n.ownerDocument)==null?void 0:r.body),a=Lr(i);if(s){const o=hx(a);
103return e.concat(a,a.visualViewport||[],qf(i)?i:[],o&&t?Df(o):[])}return e.concat(i,Df(i,[],t))}function hx(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}const sc=Math.min,Jo=Math.max,gm=Math.round,kp=Math.floor,gs=n=>({x:n,y:n}),eZ={left:"right",right:"left",bottom:"top",top:"bottom"},tZ={start:"end",end:"start"};function nZ(n,e,t){return Jo(n,sc(e,t))}function gv(n,e){return typeof n=="function"?n(e):n}function ac(n){return n.split("-")[0]}function Kf(n){return n.split("-")[1]}function rZ(n){return n==="x"?"y":"x"}function g1(n){return n==="y"?"height":"width"}const iZ=new Set(["top","bottom"]);function Ho(n){return iZ.has(ac(n))?"y":"x"}function m1(n){return rZ(Ho(n))}function sZ(n,e,t){t===void 0&&(t=!1);const r=Kf(n),i=m1(n),s=g1(i);let a=i==="x"?r===(t?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(a=mm(a)),[a,mm(a)]}function aZ(n){const e=mm(n);return[px(n),e,px(e)]}function px(n){return n.replace(/start|end/g,e=>tZ[e])}const jE=["left","right"],RE=["right","left"],oZ=["top","bottom"],lZ=["bottom","top"];function uZ(n,e,t){switch(n){case"top":case"bottom":return t?e?RE:jE:e?jE:RE;case"left":case"right":return e?oZ:lZ;default:return[]}}function cZ(n,e,t,r){const i=Kf(n);let s=uZ(ac(n),t==="start",r);return i&&(s=s.map(a=>a+"-"+i),e&&(s=s.concat(s.map(px)))),s}function mm(n){return n.replace(/left|right|bottom|top/g,e=>eZ[e])}function dZ(n){return{top:0,right:0,bottom:0,left:0,...n}}function c2(n){return typeof n!="number"?dZ(n):{top:n,right:n,bottom:n,left:n}}function vm(n){const{x:e,y:t,width:r,height:i}=n;return{width:r,height:i,top:t,left:e,right:e+r,bottom:t+i,x:e,y:t}}var fZ=typeof document<"u",hZ=function(){},bm=fZ?E.useLayoutEffect:hZ;const pZ={...yg},gZ=pZ.useInsertionEffect,mZ=gZ||(n=>n());function vZ(n){const e=E.useRef(()=>{});return mZ(()=>{e.current=n}),E.useCallback(function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return e.current==null?void 0:e.current(...r)},[])}function IE(n,e,t){let{reference:r,floating:i}=n;const s=Ho(e),a=m1(e),o=g1(a),l=ac(e),u=s==="y",h=r.x+r.width/2-i.width/2,f=r.y+r.height/2-i.height/2,m=r[o]/2-i[o]/2;let g;switch(l){case"top":g={x:h,y:r.y-i.height};break;case"bottom":g={x:h,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:f};break;case"left":g={x:r.x-i.width,y:f};break;default:g={x:r.x,y:r.y}}switch(Kf(e)){case"start":g[a]-=m*(t&&u?-1:1);break;case"end":g[a]+=m*(t&&u?-1:1);break}return g}const bZ=async(n,e,t)=>{const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:a}=t,o=s.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(e));let u=await a.getElementRects({reference:n,floating:e,strategy:i}),{x:h,y:f}=IE(u,r,l),m=r,g={},y=0;for(let v=0;v<o.length;v++){const{name:x,fn:_}=o[v],{x:S,y:w,data:k,reset:P}=await _({x:h,y:f,initialPlacement:r,placement:m,strategy:i,middlewareData:g,rects:u,platform:a,elements:{reference:n,floating:e}});h=S??h,f=w??f,g={...g,[x]:{...g[x],...k}},P&&y<=50&&(y++,typeof P=="object"&&(P.placement&&(m=P.placement),P.rects&&(u=P.rects===!0?await a.getElementRects({reference:n,floating:e,strategy:i}):P.rects),{x:h,y:f}=IE(u,m,l)),v=-1)}return{x:h,y:f,placement:m,strategy:i,middlewareData:g}};async function yZ(n,e){var t;e===void 0&&(e={});const{x:r,y:i,platform:s,rects:a,elements:o,strategy:l}=n,{boundary:u="clippingAncestors",rootBoundary:h="viewport",elementContext:f="floating",altBoundary:m=!1,padding:g=0}=gv(e,n),y=c2(g),x=o[m?f==="floating"?"reference":"floating":f],_=vm(await s.getClippingRect({element:(t=await(s.isElement==null?void 0:s.isElement(x)))==null||t?x:x.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(o.floating)),boundary:u,rootBoundary:h,strategy:l})),S=f==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,w=await(s.getOffsetParent==null?void 0:s.getOffsetParent(o.floating)),k=await(s.isElement==null?void 0:s.isElement(w))?await(s.getScale==null?void 0:s.getScale(w))||{x:1,y:1}:{x:1,y:1},P=vm(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:S,offsetParent:w,strategy:l}):S);return{top:(_.top-P.top+y.top)/k.y,bottom:(P.bottom-_.bottom+y.bottom)/k.y,left:(_.left-P.left+y.left)/k.x,right:(P.right-_.right+y.right)/k.x}}const _Z=n=>({name:"arrow",options:n,async fn(e){const{x:t,y:r,placement:i,rects:s,platform:a,elements:o,middlewareData:l}=e,{element:u,padding:h=0}=gv(n,e)||{};if(u==null)return{};const f=c2(h),m={x:t,y:r}
vendor: 3,349 bytes, line 103
103,g=m1(i),y=g1(g),v=await a.getDimensions(u),x=g==="y",_=x?"top":"left",S=x?"bottom":"right",w=x?"clientHeight":"clientWidth",k=s.reference[y]+s.reference[g]-m[g]-s.floating[y],P=m[g]-s.reference[g],j=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let A=j?j[w]:0;(!A||!await(a.isElement==null?void 0:a.isElement(j)))&&(A=o.floating[w]||s.floating[y]);const M=k/2-P/2,L=A/2-v[y]/2-1,I=sc(f[_],L),V=sc(f[S],L),Q=I,U=A-v[y]-V,X=A/2-v[y]/2+M,K=nZ(Q,X,U),z=!l.arrow&&Kf(i)!=null&&X!==K&&s.reference[y]/2-(X<Q?I:V)-v[y]/2<0,F=z?X<Q?X-Q:X-U:0;return{[g]:m[g]+F,data:{[g]:K,centerOffset:X-K-F,...z&&{alignmentOffset:F}},reset:z}}}),xZ=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(e){var t,r;const{placement:i,middlewareData:s,rects:a,initialPlacement:o,platform:l,elements:u}=e,{mainAxis:h=!0,crossAxis:f=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:v=!0,...x}=gv(n,e);if((t=s.arrow)!=null&&t.alignmentOffset)return{};const _=ac(i),S=Ho(o),w=ac(o)===o,k=await(l.isRTL==null?void 0:l.isRTL(u.floating)),P=m||(w||!v?[mm(o)]:aZ(o)),j=y!=="none";!m&&j&&P.push(...cZ(o,v,y,k));const A=[o,...P],M=await yZ(e,x),L=[];let I=((r=s.flip)==null?void 0:r.overflows)||[];if(h&&L.push(M[_]),f){const X=sZ(i,a,k);L.push(M[X[0]],M[X[1]])}if(I=[...I,{placement:i,overflows:L}],!L.every(X=>X<=0)){var V,Q;const X=(((V=s.flip)==null?void 0:V.index)||0)+1,K=A[X];if(K&&(!(f==="alignment"?S!==Ho(K):!1)||I.every(R=>Ho(R.placement)===S?R.overflows[0]>0:!0)))return{data:{index:X,overflows:I},reset:{placement:K}};let z=(Q=I.filter(F=>F.overflows[0]<=0).sort((F,R)=>F.overflows[1]-R.overflows[1])[0])==null?void 0:Q.placement;if(!z)switch(g){case"bestFit":{var U;const F=(U=I.filter(R=>{if(j){const B=Ho(R.placement);return B===S||B==="y"}return!0}).map(R=>[R.placement,R.overflows.filter(B=>B>0).reduce((B,Z)=>B+Z,0)]).sort((R,B)=>R[1]-B[1])[0])==null?void 0:U[0];F&&(z=F);break}case"initialPlacement":z=o;break}if(i!==z)return{reset:{placement:z}}}return{}}}},wZ=new Set(["left","top"]);async function SZ(n,e){const{placement:t,platform:r,elements:i}=n,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=ac(t),o=Kf(t),l=Ho(t)==="y",u=wZ.has(a)?-1:1,h=s&&l?-1:1,f=gv(e,n);let{mainAxis:m,crossAxis:g,alignmentAxis:y}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return o&&typeof y=="number"&&(g=o==="end"?y*-1:y),l?{x:g*h,y:m*u}:{x:m*u,y:g*h}}const DZ=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(e){var t,r;const{x:i,y:s,placement:a,middlewareData:o}=e,l=await SZ(e,n);return a===((t=o.offset)==null?void 0:t.placement)&&(r=o.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:s+l.y,data:{...l,placement:a}}}}};function d2(n){const e=gi(n);let t=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const i=ys(n),s=i?n.offsetWidth:t,a=i?n.offsetHeight:r,o=gm(t)!==s||gm(r)!==a;return o&&(t=s,r=a),{width:t,height:r,$:o}}function v1(n){return er(n)?n:n.contextElement}function Ru(n){const e=v1(n);if(!ys(e))return gs(1);const t=e.getBoundingClientRect(),{width:r,height:i,$:s}=d2(e);let a=(s?gm(t.width):t.width)/r,o=(s?gm(t.height):t.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!o||!Number.isFinite(o))&&(o=1),{x:a,y:o}}const kZ=gs(0);function f2(n){const e=Lr(n);
103return!p1()||!e.visualViewport?kZ:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function PZ(n,e,t){return e===void 0&&(e=!1),!t||e&&t!==Lr(n)?!1:e}function yl(n,e,t,r){e===void 0&&(e=!1),t===void 0&&(t=!1);const i=n.getBoundingClientRect(),s=v1(n);let a=gs(1);e&&(r?er(r)&&(a=Ru(r)):a=Ru(n));const o=PZ(s,t,r)?f2(s):gs(0);let l=(i.left+o.x)/a.x,u=(i.top+o.y)/a.y,h=i.width/a.x,f=i.height/a.y;if(s){const m=Lr(s),g=r&&er(r)?Lr(r):r;let y=m,v=hx(y);for(;v&&r&&g!==y;){const x=Ru(v),_=v.getBoundingClientRect(),S=gi(v),w=_.left+(v.clientLeft+parseFloat(S.paddingLeft))*x.x,k=_.top+(v.clientTop+parseFloat(S.paddingTop))*x.y;l*=x.x,u*=x.y,h*=x.x,f*=x.y,l+=w,u+=k,y=Lr(v),v=hx(y)}}return vm({width:h,height:f,x:l,y:u})}function mv(n,e){const t=pv(n).scrollLeft;return e?e.left+t:yl(Ss(n)).left+t}function h2(n,e){const t=n.getBoundingClientRect(),r=t.left+e.scrollLeft-mv(n,t),i=t.top+e.scrollTop;return{x:r,y:i}}function CZ(n){let{elements:e,rect:t,offsetParent:r,strategy:i}=n;const s=i==="fixed",a=Ss(r),o=e?hv(e.floating):!1;if(r===a||o&&s)return t;let l={scrollLeft:0,scrollTop:0},u=gs(1);const h=gs(0),f=ys(r);if((f||!f&&!s)&&((Sc(r)!=="body"||qf(a))&&(l=pv(r)),ys(r))){const g=yl(r);u=Ru(r),h.x=g.x+r.clientLeft,h.y=g.y+r.clientTop}const m=a&&!f&&!s?h2(a,l):gs(0);return{width:t.width*u.x,height:t.height*u.y,x:t.x*u.x-l.scrollLeft*u.x+h.x+m.x,y:t.y*u.y-l.scrollTop*u.y+h.y+m.y}}function EZ(n){return Array.from(n.getClientRects())}function MZ(n){const e=Ss(n),t=pv(n),r=n.ownerDocument.body,i=Jo(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),s=Jo(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let a=-t.scrollLeft+mv(n);const o=-t.scrollTop;return gi(r).direction==="rtl"&&(a+=Jo(e.clientWidth,r.clientWidth)-i),{width:i,height:s,x:a,y:o}}const NE=25;function TZ(n,e){const t=Lr(n),r=Ss(n),i=t.visualViewport;let s=r.clientWidth,a=r.clientHeight,o=0,l=0;if(i){s=i.width,a=i.height;const h=p1();(!h||h&&e==="fixed")&&(o=i.offsetLeft,l=i.offsetTop)}const u=mv(r);if(u<=0){const h=r.ownerDocument,f=h.body,m=getComputedStyle(f),g=h.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,y=Math.abs(r.clientWidth-f.clientWidth-g);y<=NE&&(s-=y)}else u<=NE&&(s+=u);return{width:s,height:a,x:o,y:l}}const OZ=new Set(["absolute","fixed"]);function AZ(n,e){const t=yl(n,!0,e==="fixed"),r=t.top+n.clientTop,i=t.left+n.clientLeft,s=ys(n)?Ru(n):gs(1),a=n.clientWidth*s.x,o=n.clientHeight*s.y,l=i*s.x,u=r*s.y;return{width:a,height:o,x:l,y:u}}function FE(n,e,t){let r;if(e==="viewport")r=TZ(n,t);else if(e==="document")r=MZ(Ss(n));else if(er(e))r=AZ(e,t);else{const i=f2(n);r={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return vm(r)}function p2(n,e){const t=uo(n);return t===e||!er(t)||ic(t)?!1:gi(t).position==="fixed"||p2(t,e)}function jZ(n,e){const t=e.get(n);if(t)return t;let r=Df(n,[],!1).filter(o=>er(o)&&Sc(o)!=="body"),i=null;const s=gi(n).position==="fixed";let a=s?uo(n):n;for(;er(a)&&!ic(a);){const o=gi(a),l=h1(a);!l&&o.position==="fixed"&&(i=null),(s?!l&&!i:!l&&o.position==="static"&&!!i&&OZ.has(i.position)||qf(a)&&!l&&p2(n,a))?r=r.filter(h=>h!==a):i=o,a=uo(a)}return e.set(n,r),r}function RZ(n){let{element:e,boundary:t,rootBoundary:r,strategy:i}=n;const a=[...t==="clippingAncestors"?hv(e)?[]:jZ(e,this._c):[].concat(t),r],o=a[0],l=a.reduce((u,h)=>{const f=FE(e,h,i);return u.top=Jo(f.top,u.top),u.right=sc(f.right,u.right),u.bottom=sc(f.bottom,u.bottom),u.left=Jo(f.left,u.left),u},FE(e,o,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function IZ(n){const{width:e,height:t}=d2(n);return{width:e,height:t}}function NZ(n,e,t){const r=ys(e),i=Ss(e),s=t==="fixed",a=yl(n,!0,s,e);let o={scrollLeft:0,scrollTop:0};const l=gs(0);function u(){l.x=mv(i)}if(r||!r&&!s)if((Sc(e)!=="body"||qf(i))&&(o=pv(e)),r){const g=yl(e,!0,s,e);l.x=g.x+e.clientLeft,l.y=g.y+e.clientTop}else i&&u();s&&!r&&i&&u();const h=i&&!r&&!s?h2(i,o):gs(0),f=a.left+o.scrollLeft-l.x-h.x,m=a.top+o.scrollTop-l.y-h.y;return{x:f,y:m,width:a.width,height:a.height}}function u_(n){return gi(n).position==="static"}function LE(n,e){if(!ys(n)||gi(n).position==="fixed")return null;if(e)return e(n);let t=n.offsetParent;return Ss(n)===t&&(t=t.ownerDocument.body),t}function g2(n,e){const t=Lr(n);if(hv(n))return t;if(!ys(n)){let i=uo(n);for(;i&&!ic(i);){if(er(i)&&!u_(i))return i;i=uo(i)}return t}let r=LE(n,e);for(;r&&GQ(r)&&u_(r);)r=LE(r,e);return r&&ic(r)&&u_(r)&&!h1(r)?t:r||ZQ(n)||t}const FZ=async function(n){const e=this.getOffsetParent||g2,t=this.getDimensions,r=await t(n.floating);return{reference:NZ(n.reference,await e(n.floating),n.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function LZ(n){return gi(n).direction==="rtl"}const BZ={convertOffsetParentRelativeRectToViewportRelativeRect:CZ,getDocumentElement:Ss,getClippingRect:RZ,getOffsetParent:g2,getElementRects:FZ,getClientRects:EZ,getDimensions:IZ,getScale:Ru,isElement:er,isRTL:LZ};function m2(n,e){return n.x===e.x&&n.y===e.y&&n.width===e.width&&n.height===e.height}function $Z(n,e){let t=null,r;const i=Ss(n);function s(){var o;clearTimeout(r),(o=t)==null||o.disconnect(),t=null}function a(o,l){o===void 0&&(o=!1),l===void 0&&(l=1),s();const u=n.getBoundingClientRect(),{left:h,top:f,width:m,height:g}=u;if(o||e(),!m||!g)return;const y=kp(f),v=kp(i.clientWidth-(h+m)),x=kp(i.clientHeight-(f+g)),_=kp(h),w={rootMargin:-y+"px "+-v+"px "+-x+"px "+-_+"px",threshold:Jo(0,sc(1,l))||1};let k=!0;function P(j){const A=j[0].intersectionRatio;if(A!==l){if(!k)return a();A?a(!1,A):r=setTimeout(()=>{a(!1,1e-7)},1e3)}A===1&&!m2(u,n.getBoundingClientRect())&&a(),k=!1}try{t=new IntersectionObserver(P,{...w,root:i.ownerDocument})}catch{t=new IntersectionObserver(P,w)}t.observe(n)}return a(!0),s}function v2(n,e,t,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:o=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=v1(n),h=i||s?[...u?Df(u):[],...Df(e)]:[];h.forEach(_=>{i&&_.addEventListener("scroll",t,{passive:!0}),s&&_.addEventListener("resize",t)});const f=u&&o?$Z(u,t):null;let m=-1,g=null;a&&(g=new ResizeObserver(_=>{let[S]=_;S&&S.target===u&&g&&(g.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var w;(w=g)==null||w.observe(e)})),t()}),u&&!l&&g.observe(u),g.observe(e));let y,v=l?yl(n):null;l&&x();function x(){const _=yl(n);v&&!m2(v,_)&&t(),v=_,y=requestAnimationFrame(x)}return t(),()=>{var _;h.forEach(S=>{i&&S.removeEventListener("scroll",t),s&&S.removeEventListener("resize",t)}),f==null||f(),(_=g)==null||_.disconnect(),g=null,l&&cancelAnimationFrame(y)}}const VZ=DZ,YZ=xZ,BE=_Z,HZ=(n,e,t)=>{const r=new Map,i={platform:BZ,...t},s={...i.platform,_c:r};return bZ(n,e,{...i,platform:s})};var zZ=typeof document<"u",WZ=function(){},dg=zZ?E.useLayoutEffect:WZ;function ym(n,e){if(n===e)return!0;
103if(typeof n!=typeof e)return!1;if(typeof n=="function"&&n.toString()===e.toString())return!0;let t,r,i;if(n&&e&&typeof n=="object"){if(Array.isArray(n)){if(t=n.length,t!==e.length)return!1;for(r=t;r--!==0;)if(!ym(n[r],e[r]))return!1;return!0}if(i=Object.keys(n),t=i.length,t!==Object.keys(e).length)return!1;for(r=t;r--!==0;)if(!{}.hasOwnProperty.call(e,i[r]))return!1;for(r=t;r--!==0;){const s=i[r];if(!(s==="_owner"&&n.$$typeof)&&!ym(n[s],e[s]))return!1}return!0}return n!==n&&e!==e}function b2(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function $E(n,e){const t=b2(n);return Math.round(e*t)/t}function c_(n){const e=E.useRef(n);return dg(()=>{e.current=n}),e}function UZ(n){n===void 0&&(n={});const{placement:e="bottom",strategy:t="absolute",middleware:r=[],platform:i,elements:{reference:s,floating:a}={},transform:o=!0,whileElementsMounted:l,open:u}=n,[h,f]=E.useState({x:0,y:0,strategy:t,placement:e,middlewareData:{},isPositioned:!1}),[m,g]=E.useState(r);ym(m,r)||g(r);const[y,v]=E.useState(null),[x,_]=E.useState(null),S=E.useCallback(R=>{R!==j.current&&(j.current=R,v(R))},[]),w=E.useCallback(R=>{R!==A.current&&(A.current=R,_(R))},[]),k=s||y,P=a||x,j=E.useRef(null),A=E.useRef(null),M=E.useRef(h),L=l!=null,I=c_(l),V=c_(i),Q=c_(u),U=E.useCallback(()=>{if(!j.current||!A.current)return;const R={placement:e,strategy:t,middleware:m};V.current&&(R.platform=V.current),HZ(j.current,A.current,R).then(B=>{const Z={...B,isPositioned:Q.current!==!1};X.current&&!ym(M.current,Z)&&(M.current=Z,Km.flushSync(()=>{f(Z)}))})},[m,e,t,V,Q]);dg(()=>{u===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,f(R=>({...R,isPositioned:!1})))},[u]);const X=E.useRef(!1);dg(()=>(X.current=!0,()=>{X.current=!1}),[]),dg(()=>{if(k&&(j.current=k),P&&(A.current=P),k&&P){if(I.current)return I.current(k,P,U);U()}},[k,P,U,I,L]);const K=E.useMemo(()=>({reference:j,floating:A,setReference:S,setFloating:w}),[S,w]),z=E.useMemo(()=>({reference:k,floating:P}),[k,P]),F=E.useMemo(()=>{const R={position:t,left:0,top:0};if(!z.floating)return R;const B=$E(z.floating,h.x),Z=$E(z.floating,h.y);return o?{...R,transform:"translate("+B+"px, "+Z+"px)",...b2(z.floating)>=1.5&&{willChange:"transform"}}:{position:t,left:B,top:Z}},[t,o,z.floating,h.x,h.y]);return E.useMemo(()=>({...h,update:U,refs:K,elements:z,floatingStyles:F}),[h,U,K,z,F])}const GZ=n=>{function e(t){return{}.hasOwnProperty.call(t,"current")}return{name:"arrow",options:n,fn(t){const{element:r,padding:i}=typeof n=="function"?n(t):n;return r&&e(r)?r.current!=null?BE({element:r.current,padding:i}).fn(t):{}:r?BE({element:r,padding:i}).fn(t):{}}}},XZ=(n,e)=>({...VZ(n),options:[n,e]}),qZ=(n,e)=>({...YZ(n),options:[n,e]}),KZ=(n,e)=>({...GZ(n),options:[n,e]}),QZ={...yg};let VE=!1,ZZ=0;const YE=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+ZZ++;function JZ(){const[n,e]=E.useState(()=>VE?YE():void 0);return bm(()=>{n==null&&e(YE())},[]),E.useEffect(()=>{VE=!0},[]),n}const eJ=QZ.useId,y2=eJ||JZ,tJ=E.forwardRef(function(e,t){const{context:{placement:r,elements:{floating:i},middlewareData:{arrow:s,shift:a}},width:o=14,height:l=7,tipRadius:u=0,strokeWidth:h=0,staticOffset:f,stroke:m,d:g,style:{transform:y,...v}={},...x}=e,_=y2(),[S,w]=E.useState(!1);if(bm(()=>{if(!i)return;gi(i).direction==="rtl"&&w(!0)},[i]),!i)return null;const[k,P]=r.split("-"),j=k==="top"||k==="bottom";let A=f;(j&&a!=null&&a.x||!j&&a!=null&&a.y)&&(A=null);const M=h*2,L=M/2,I=o/2*(u/-8+1),V=l/2*u/4,Q=!!g,U=A&&P==="end"?"bottom":"top";let X=A&&P==="end"?"right":"left";A&&S&&(X=P==="end"?"left":"right");const K=(s==null?void 0:s.x)!=null?A||s.x:"",z=(s==null?void 0:s.y)!=null?A||s.y:"",F=g||"M0,0"+(" H"+o)+(" L"+(o-I)+","+(l-V))+(" Q"+o/2+","+l+" "+I+","+(l-V))+" Z",R={top:Q?"rotate(180deg)":"",left:Q?"rotate(90deg)":"rotate(-90deg)",bottom:Q?"":"rotate(180deg)",right:Q?"rotate(-90deg)":"rotate(90deg)"}[k];return d.jsxs("svg",{...x,"aria-hidden":!0,ref:t,width:Q?o:o+M,height:o,viewBox:"0 0 "+o+" "+(l>o?l:o),style:{position:"absolute",pointerEvents:"none",[X]:K,[U]:z,[k]:j||Q?"100%":"calc(100% - "+M/2+"px)",transform:[R,y].filter(
103B=>!!B).join(" "),...v},children:[M>0&&d.jsx("path",{clipPath:"url(#"+_+")",fill:"none",stroke:m,strokeWidth:M+(g?0:1),d:F}),d.jsx("path",{stroke:M&&!g?x.fill:"none",d:F}),d.jsx("clipPath",{id:_,children:d.jsx("rect",{x:-L,y:L*(Q?-1:1),width:o+M,height:o})})]})});function nJ(){const n=new Map;return{emit(e,t){var r;(r=n.get(e))==null||r.forEach(i=>i(t))},on(e,t){n.has(e)||n.set(e,new Set),n.get(e).add(t)},off(e,t){var r;(r=n.get(e))==null||r.delete(t)}}}const rJ=E.createContext(null),iJ=E.createContext(null),sJ=()=>{var n;return((n=E.useContext(rJ))==null?void 0:n.id)||null},aJ=()=>E.useContext(iJ);function oJ(n){const{open:e=!1,onOpenChange:t,elements:r}=n,i=y2(),s=E.useRef({}),[a]=E.useState(()=>nJ()),o=sJ()!=null,[l,u]=E.useState(r.reference),h=vZ((g,y,v)=>{s.current.openEvent=g?y:void 0,a.emit("openchange",{open:g,event:y,reason:v,nested:o}),t==null||t(g,y,v)}),f=E.useMemo(()=>({setPositionReference:u}),[]),m=E.useMemo(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return E.useMemo(()=>({dataRef:s,open:e,onOpenChange:h,elements:m,events:a,floatingId:i,refs:f}),[e,h,m,a,i,f])}function lJ(n){n===void 0&&(n={});const{nodeId:e}=n,t=oJ({...n,elements:{reference:null,floating:null,...n.elements}}),r=n.rootContext||t,i=r.elements,[s,a]=E.useState(null),[o,l]=E.useState(null),h=(i==null?void 0:i.domReference)||s,f=E.useRef(null),m=aJ();bm(()=>{h&&(f.current=h)},[h]);const g=UZ({...n,elements:{...i,...o&&{reference:o}}}),y=E.useCallback(w=>{const k=er(w)?{getBoundingClientRect:()=>w.getBoundingClientRect(),getClientRects:()=>w.getClientRects(),contextElement:w}:w;l(k),g.refs.setReference(k)},[g.refs]),v=E.useCallback(w=>{(er(w)||w===null)&&(f.current=w,a(w)),(er(g.refs.reference.current)||g.refs.reference.current===null||w!==null&&!er(w))&&g.refs.setReference(w)},[g.refs]),x=E.useMemo(()=>({...g.refs,setReference:v,setPositionReference:y,domReference:f}),[g.refs,v,y]),_=E.useMemo(()=>({...g.elements,domReference:h}),[g.elements,h]),S=E.useMemo(()=>({...g,...r,refs:x,elements:_,nodeId:e}),[g,x,_,e,r]);return bm(()=>{r.dataRef.current.floatingContext=S;const w=m==null?void 0:m.nodesRef.current.find(k=>k.id===e);w&&(w.context=S)}),E.useMemo(()=>({...g,context:S,refs:x,elements:_}),[g,x,_,S])}/*! 104 react-datepicker v9.1.0 105 https://github.com/Hacker0x01/react-datepicker 106 Released under the MIT License. 107*/var gx=function(e,t){return gx=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},gx(e,t)};function Fn(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");gx(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var Ue=function(){return Ue=Object.assign||function(t){for(var r,i=1,s=arguments.length;i<s;i++){r=arguments[i];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},Ue.apply(this,arguments)};function ls(n,e,t){if(t||arguments.length===2)for(var r=0,i=e.length,s;r<i;r++)(s||!(r in e))&&(s||(s=Array.prototype.slice.call(e,0,r)),s[r]=e[r]);return n.concat(s||Array.prototype.slice.call(e))}var uJ=function(n){var e=n.showTimeSelectOnly,t=e===void 0?!1:e,r=n.showTime,i=r===void 0?!1:r,s=n.className,a=n.children,o=n.inline,l=t?"Choose Time":"Choose Date".concat(i?" and Time":"");return H.createElement("div",{className:s,"aria-label":l,role:o?void 0:"dialog","aria-modal":o?void 0:"true",translate:"no"},a)},cJ=function(n,e){var t=E.useRef(null),r=E.useRef(n);E.useEffect(function(){r.current=n},[n]);var i=E.useCallback(function(s){var a,o=s.composed&&s.composedPath&&s.composedPath().find(function(l){return l instanceof Node})||s.target;t.current&&!t.current.contains(o)&&(e&&o instanceof HTMLElement&&o.classList.contains(e)||(a=r.current)===null||a===void 0||a.call(r,s))},[e]);return E.useEffect(function(){return document.addEventListener("mousedown",i),function(){document.removeEventListener("mousedown",i)}},[i]),t},vv=function(n){var e=n.children,t=n.onClickOutside,r=n.className,i=n.containerRef,s=n.style,a=n.ignoreClass,o=cJ(t,a);return H.createElement("div",{className:r,style:s,ref:function(l){o.current=l,i&&(i.current=l)}},e)},Pp=null,HE=!1;
107function _2(){if(HE)return Pp;HE=!0;try{var n="date-fns-tz";Pp=require(n)}catch{Pp=null}return Pp}function zE(n,e){if(!e)return n;var t=_2();return t?t.toZonedTime(n,e):n}function Fs(n,e){if(!e)return n;var t=_2();return t?t.fromZonedTime(n,e):n}var oe;(function(n){n.ArrowUp="ArrowUp",n.ArrowDown="ArrowDown",n.ArrowLeft="ArrowLeft",n.ArrowRight="ArrowRight",n.PageUp="PageUp",n.PageDown="PageDown",n.Home="Home",n.End="End",n.Enter="Enter",n.Space=" ",n.Tab="Tab",n.Escape="Escape",n.Backspace="Backspace",n.X="x"})(oe||(oe={}));function b1(){var n=typeof window<"u"?window:globalThis;return n}var Qf=12;function nt(n){if(n==null)return new Date;var e=typeof n=="string"?MQ(n):_e(n);return hr(e)?e:new Date}function Mo(n,e,t,r,i){i===void 0&&(i=nt());for(var s=oc(t)||oc(y1()),a=Array.isArray(e)?e:[e],o=0,l=a;o<l.length;o++){var u=l[o],h=SQ(n,u,i,{locale:s,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0});if(hr(h)&&(!r||n===At(h,u,t)))return h}if(!r&&n&&n.length>=8){var f=new Date(n);if(rc(f))return f}return null}function dJ(n,e){if(e===void 0&&(e=nt()),!n)return null;var t=n.match(/\b(1\d{3}|2\d{3})\b/);if(!t||!t[1])return null;var r=parseInt(t[1],10),i=n.match(/(?:^|[/\-\s])?(0?[1-9]|1[0-2])(?:[/\-\s]|$)/),s=i&&i[1]?parseInt(i[1],10)-1:e.getMonth();return new Date(r,s,1)}function hr(n){return rc(n)}function zo(n){return n==null?null:ps(n)&&rc(n)?n:null}function At(n,e,t){if(t==="en")return ME(n,e,{useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0});var r=t?oc(t):void 0;return t&&!r&&console.warn('A locale object was not found for the provided string ["'.concat(t,'"].')),r=r||oc(y1()),ME(n,e,{locale:r,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0})}function cr(n,e){var t=e.dateFormat,r=e.locale,i=Array.isArray(t)&&t.length>0?t[0]:t;return n&&At(n,i,r)||""}var x2=" - ";function fJ(n,e,t){if(!n&&!e)return"";var r=n?cr(n,t):"",i=e?cr(e,t):"",s=t.rangeSeparator||x2;return"".concat(r).concat(s).concat(i)}function hJ(n,e){if(!(n!=null&&n.length))return"";var t=n[0]?cr(n[0],e):"";if(n.length===1)return t;if(n.length===2&&n[1]){var r=cr(n[1],e);return"".concat(t,", ").concat(r)}var i=n.length-1;return"".concat(t," (+").concat(i,")")}function Ls(n,e){var t=e.hour,r=t===void 0?0:t,i=e.minute,s=i===void 0?0:i,a=e.second,o=a===void 0?0:a;return lg(ug(cg(n,o),s),r)}function pJ(n){return u1(n)}function gJ(n,e){return At(n,"ddd",e)}function yd(n){return bl(n)}function eo(n,e,t){var r=oc(e||y1());return da(n,{locale:r,weekStartsOn:t})}function Qs(n){return XR(n)}function _d(n){return dv(n)}function WE(n){return ux(n)}function UE(){return bl(nt())}function GE(n){return UR(n)}function mJ(n){return jq(n)}function vJ(n){return GR(n)}function Zi(n,e){return n&&e?CQ(n,e):!n&&!e}function Zn(n,e){return n&&e?kQ(n,e):!n&&!e}function _m(n,e){return n&&e?PQ(n,e):!n&&!e}function Ke(n,e){return n&&e?Oq(n,e):!n&&!e}function Wo(n,e){return n&&e?EK(n,e):!n&&!e}function No(n,e,t){var r,i=bl(e),s=UR(t);try{r=Sf(n,{start:i,end:s})}catch{r=!1}return r}function bJ(n,e){var t=b1();t.__localeData__||(t.__localeData__={}),t.__localeData__[n]=e}function y1(){var n=b1();return n.__localeId__}function oc(n){if(typeof n=="string"){var e=b1();return e.__localeData__?e.__localeData__[n]:void 0}else return n}function yJ(n,e,t){return e(At(n,"EEEE",t))}function _J(n,e){return At(n,"EEEEEE",e)}function xJ(n,e){return At(n,"EEE",e)}function _1(n,e){return At(Ar(nt(),n),"LLLL",e)}function w2(n,e){return At(Ar(nt(),n),"LLL",e)}function wJ(n,e){return At(lu(nt(),n),"QQQ",e)}function ai(n,e){var t=e===void 0?{}:e,r=t.minDate,i=t.maxDate,s=t.excludeDates,a=t.excludeDateIntervals,o=t.includeDates,l=t.includeDateIntervals,u=t.filterDate,h=t.disabled;return h?!0:Zf(n,{minDate:r,maxDate:i})||s&&s.some(function(f){return f instanceof Date?Ke(n,f):Ke(n,f.date)})||a&&a.some(function(f){var m=f.start,g=f.end;return Sf(n,{start:m,end:g})})||o&&!o.some(function(f){return Ke(n,f)})||l&&!l.some(function(f){var m=f.start,g=f.end;return Sf(n,{start:m,end:g})})||u&&!u(nt(n))||!1}function x1(n,e){var t=e===void 0?{}:e,r=t.excludeDates,i=t.excludeDateIntervals;return i&&i.length>0?i.some(function(s){var a=s.start,o=s.end;return Sf(n,{start:a,end:o})}
107):r&&r.some(function(s){var a;return s instanceof Date?Ke(n,s):Ke(n,(a=s.date)!==null&&a!==void 0?a:new Date)})||!1}function S2(n,e){var t=e===void 0?{}:e,r=t.minDate,i=t.maxDate,s=t.excludeDates,a=t.includeDates,o=t.filterDate;return Zf(n,{minDate:r?XR(r):void 0,maxDate:i?GR(i):void 0})||(s==null?void 0:s.some(function(l){return Zn(n,l instanceof Date?l:l.date)}))||a&&!a.some(function(l){return Zn(n,l)})||o&&!o(nt(n))||!1}function Cp(n,e,t,r){var i=Xe(n),s=mr(n),a=Xe(e),o=mr(e),l=Xe(r);return i===a&&i===l?s<=t&&t<=o:i<a?l===i&&s<=t||l===a&&o>=t||l<a&&l>i:!1}function SJ(n,e){var t=e===void 0?{}:e,r=t.minDate,i=t.maxDate,s=t.excludeDates,a=t.includeDates;return Zf(n,{minDate:r,maxDate:i})||s&&s.some(function(o){return Zn(o instanceof Date?o:o.date,n)})||a&&!a.some(function(o){return Zn(o,n)})||!1}function Ep(n,e){var t=e===void 0?{}:e,r=t.minDate,i=t.maxDate,s=t.excludeDates,a=t.includeDates,o=t.filterDate,l=t.disabled;return l?!0:Zf(n,{minDate:r,maxDate:i})||(s==null?void 0:s.some(function(u){return _m(n,u instanceof Date?u:u.date)}))||a&&!a.some(function(u){return _m(n,u)})||o&&!o(nt(n))||!1}function Mp(n,e,t){if(!e||!t||!rc(e)||!rc(t))return!1;var r=Xe(e),i=Xe(t);return r<=n&&i>=n}function fg(n,e){var t=e===void 0?{}:e,r=t.minDate,i=t.maxDate,s=t.excludeDates,a=t.includeDates,o=t.filterDate,l=t.disabled;if(l)return!0;var u=new Date(n,0,1);return Zf(u,{minDate:r?dv(r):void 0,maxDate:i?qR(i):void 0})||(s==null?void 0:s.some(function(h){return Zi(u,h instanceof Date?h:h.date)}))||a&&!a.some(function(h){return Zi(u,h)})||o&&!o(nt(u))||!1}function Tp(n,e,t,r){var i=Xe(n),s=za(n),a=Xe(e),o=za(e),l=Xe(r);return i===a&&i===l?s<=t&&t<=o:i<a?l===i&&s<=t||l===a&&o>=t||l<a&&l>i:!1}function Zf(n,e){var t,r=e===void 0?{}:e,i=r.minDate,s=r.maxDate;return(t=i&&nc(n,i)<0||s&&nc(n,s)>0)!==null&&t!==void 0?t:!1}function XE(n,e){return e.some(function(t){return zn(t)===zn(n)&&Wn(t)===Wn(n)&&Ja(t)===Ja(n)})}function qE(n,e){var t=e===void 0?{}:e,r=t.excludeTimes,i=t.includeTimes,s=t.filterTime;return r&&XE(n,r)||i&&!XE(n,i)||s&&!s(n)||!1}function KE(n,e){var t=e.minTime,r=e.maxTime;if(!t||!r)throw new Error("Both minTime and maxTime props required");var i=nt();i=lg(i,zn(n)),i=ug(i,Wn(n)),i=cg(i,Ja(n));var s=nt();s=lg(s,zn(t)),s=ug(s,Wn(t)),s=cg(s,Ja(t));var a=nt();a=lg(a,zn(r)),a=ug(a,Wn(r)),a=cg(a,Ja(r));var o;try{o=!Sf(i,{start:s,end:a})}catch{o=!1}return o}function QE(n,e){var t=e===void 0?{}:e,r=t.minDate,i=t.includeDates,s=Zo(n,1);return r&&dm(r,s)>0||i&&i.every(function(a){return dm(a,s)>0})||!1}function ZE(n,e){var t=e===void 0?{}:e,r=t.maxDate,i=t.includeDates,s=Yi(n,1);return r&&dm(s,r)>0||i&&i.every(function(a){return dm(s,a)>0})||!1}function DJ(n,e){var t=e===void 0?{}:e,r=t.minDate,i=t.includeDates,s=dv(n),a=o2(s,1);return r&&fm(r,a)>0||i&&i.every(function(o){return fm(o,a)>0})||!1}function kJ(n,e){var t=e===void 0?{}:e,r=t.maxDate,i=t.includeDates,s=qR(n),a=l1(s,1);return r&&fm(a,r)>0||i&&i.every(function(o){return fm(a,o)>0})||!1}function JE(n,e){var t=e===void 0?{}:e,r=t.minDate,i=t.includeDates,s=lo(n,1);return r&&hm(r,s)>0||i&&i.every(function(a){return hm(a,s)>0})||!1}function PJ(n,e){var t=e===void 0?{}:e,r=t.minDate,i=t.yearItemNumber,s=i===void 0?Qf:i,a=_d(lo(n,s)),o=zs(a,s).endPeriod,l=r&&Xe(r);return l&&l>o||!1}function eM(n,e){var t=e===void 0?{}:e,r=t.maxDate,i=t.includeDates,s=Ni(n,1);return r&&hm(s,r)>0||i&&i.every(function(a){return hm(s,a)>0})||!1}function CJ(n,e){var t=e===void 0?{}:e,r=t.maxDate,i=t.yearItemNumber,s=i===void 0?Qf:i,a=Ni(n,s),o=zs(a,s).startPeriod,l=r&&Xe(r);return l&&l<o||!1}function D2(n){var e=n.minDate,t=n.includeDates;if(t&&e){var r=t.filter(function(i){return nc(i,e)>=0});return SE(r)}else return t?SE(t):e}function k2(n){var e=n.maxDate,t=n.includeDates;if(t&&e){var r=t.filter(function(i){return nc(i,e)<=0});return wE(r)}else return t?wE(t):e}function tM(n,e){var t;n===void 0&&(n=[]),e===void 0&&(e="react-datepicker__day--highlighted");for(var r=new Map,i=0,s=n.length;i<s;i++){var a=n[i];if(ps(a)){var o=At(a,"MM.dd.yyyy"),l=r.get(o)||[];l.includes(e)||(l.push(e),r.set(o,l))}else if(typeof a=="object"){var u=Object.keys(a),h=(t=u[0])!==null&&t!==void 0?t:"",f=a[h];if(typeof h=="string"&&Array.isArray(f))for(var m=0,g=f.length;m<g;m++){var y=f[m];if(y){var o=At(y,"MM.dd.yyyy"),l=r.get(o)||[];l.includes(h)||(l.push(h),r.set(o,l))}}}}return r}function EJ(n,e){return n.length!==e.length?!1:n.every(function(t,r){return t===e[r]})}function MJ(n,e){n===void 0&&(n=[]),e===void 0&&(e="react-datepicker__day--holidays");var t=new Map;
107return n.forEach(function(r){var i=r.date,s=r.holidayName;if(ps(i)){var a=At(i,"MM.dd.yyyy"),o=t.get(a)||{className:"",holidayNames:[]};if(!("className"in o&&o.className===e&&EJ(o.holidayNames,[s]))){o.className=e;var l=o.holidayNames;o.holidayNames=l?ls(ls([],l,!0),[s],!1):[s],t.set(a,o)}}}),t}function TJ(n,e,t,r,i){for(var s=i.length,a=[],o=0;o<s;o++){var l=n,u=i[o];u&&(l=Cq(l,zn(u)),l=wf(l,Wn(u)),l=Tq(l,Ja(u)));var h=wf(n,(t+1)*r);Ks(l,e)&&os(l,h)&&u!=null&&a.push(u)}return a}function ru(n){return n<10?"0".concat(n):"".concat(n)}function zs(n,e){e===void 0&&(e=Qf);var t=Math.ceil(Xe(n)/e)*e,r=t-(e-1);return{startPeriod:r,endPeriod:t}}function OJ(n){var e=new Date(n.getFullYear(),n.getMonth(),n.getDate()),t=new Date(n.getFullYear(),n.getMonth(),n.getDate(),24);return Math.round((+t-+e)/36e5)}function nM(n){var e=n.getSeconds(),t=n.getMilliseconds();return _e(n.getTime()-e*1e3-t)}function P2(n,e){return nM(n).getTime()===nM(e).getTime()}function rM(n){if(!ps(n))throw new Error("Invalid date");var e=new Date(n);return e.setHours(0,0,0,0),e}function d_(n,e){if(!ps(n)||!ps(e))throw new Error("Invalid date received");var t=rM(n),r=rM(e);return os(t,r)}function C2(n){return n.key===oe.Space}var f_=function(n){Fn(e,n);function e(t){var r=n.call(this,t)||this;return r.inputRef=H.createRef(),r.onTimeChange=function(i){var s,a;r.setState({time:i});var o=r.props.date,l=o instanceof Date&&!isNaN(+o),u=l?o:new Date;if(i!=null&&i.includes(":")){var h=i.split(":"),f=h[0],m=h[1];u.setHours(Number(f)),u.setMinutes(Number(m))}(a=(s=r.props).onChange)===null||a===void 0||a.call(s,u)},r.renderTimeInput=function(){var i=r.state.time,s=r.props,a=s.date,o=s.timeString,l=s.customTimeInput;return l?E.cloneElement(l,{date:a,value:i,onChange:r.onTimeChange}):H.createElement("input",{type:"time",className:"react-datepicker-time__input",placeholder:"Time",name:"time-input",ref:r.inputRef,onClick:function(){var u;(u=r.inputRef.current)===null||u===void 0||u.focus()},required:!0,value:i,onChange:function(u){r.onTimeChange(u.target.value||o)}})},r.state={time:r.props.timeString},r}return e.getDerivedStateFromProps=function(t,r){return t.timeStr
107ing!==r.time?{time:t.timeString}:null},e.prototype.render=function(){return H.createElement("div",{className:"react-datepicker__input-time-container"},H.createElement("div",{className:"react-datepicker-time__caption"},this.props.timeInputLabel),H.createElement("div",{className:"react-datepicker-time__input-container"},H.createElement("div",{className:"react-datepicker-time__input"},this.renderTimeInput())))},e}(E.Component),AJ=function(n){Fn(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.dayEl=E.createRef(),t.handleClick=function(r){!t.isDisabled()&&t.props.onClick&&t.props.onClick(r)},t.handleMouseEnter=function(r){!t.isDisabled()&&t.props.onMouseEnter&&t.props.onMouseEnter(r)},t.handleOnKeyDown=function(r){var i,s,a=r.key;a===oe.Space&&(r.preventDefault(),r.key=oe.Enter),(s=(i=t.props).handleOnKeyDown)===null||s===void 0||s.call(i,r)},t.isSameDay=function(r){return Ke(t.props.day,r)},t.isKeyboardSelected=function(){var r;if(t.props.disabledKeyboardNavigation)return!1;var i=t.props.selectsMultiple?(r=t.props.selectedDates)===null||r===void 0?void 0:r.some(function(a){return t.isSameDayOrWeek(a)}):t.isSameDayOrWeek(t.props.selected),s=t.props.preSelection&&t.isDisabled(t.props.preSelection);return!i&&t.isSameDayOrWeek(t.props.preSelection)&&!s},t.isDisabled=function(r){return r===void 0&&(r=t.props.day),ai(r,{minDate:t.props.minDate,maxDate:t.props.maxDate,excludeDates:t.props.excludeDates,excludeDateIntervals:t.props.excludeDateIntervals,includeDateIntervals:t.props.includeDateIntervals,includeDates:t.props.includeDates,filterDate:t.props.filterDate,disabled:t.props.disabled})},t.isExcluded=function(){return x1(t.props.day,{excludeDates:t.props.excludeDates,excludeDateIntervals:t.props.excludeDateIntervals})},t.isStartOfWeek=function(){return Ke(t.props.day,eo(t.props.day,t.props.locale,t.props.calendarStartDay))},t.isSameWeek=function(r){return t.props.showWeekPicker&&Ke(r,eo(t.props.day,t.props.locale,t.props.calendarStartDay))},t.isSameDayOrWeek=function(r){return t.isSameDay(r)||t.isSameWeek(r)},t.getHighLightedClass=function(){var r=t.props,i=r.day,s=r.highlightDates;if(!s)return!1;var a=At(i,"MM.dd.yyyy");return s.get(a)},t.getHolidaysClass=function(){var r,i=t.props,s=i.day,a=i.holidays;if(!a)return[void 0];var o=At(s,"MM.dd.yyyy");return a.has(o)?[(r=a.get(o))===null||r===void 0?void 0:r.className]:[void 0]},t.isInRange=function(){var r=t.props,i=r.day,s=r.startDate,a=r.endDate;return!s||!a?!1:No(i,s,a)},t.isInSelectingRange=function(){var r,i=t.props,s=i.day,a=i.selectsStart,o=i.selectsEnd,l=i.selectsRange,u=i.selectsDisabledDaysInRange,h=i.startDate,f=i.swapRange,m=i.endDate,g=(r=t.props.selectingDate)!==null&&r!==void 0?r:t.props.preSelection;if(t.isAfterMonth()||t.isBeforeMonth()||!(a||o||l)||!g||!u&&t.isDisabled())return!1;if(a&&m&&(os(g,m)||Wo(g,m)))return No(s,g,m);if(o&&h&&(Ks(g,h)||Wo(g,h)))return No(s,h,g);
107if(l&&h&&!m){if(Wo(g,h)||Ks(g,h))return No(s,h,g);if(f&&os(g,h))return No(s,g,h)}return!1},t.isSelectingRangeStart=function(){var r;if(!t.isInSelectingRange())return!1;var i=t.props,s=i.day,a=i.startDate,o=i.selectsStart,l=i.swapRange,u=i.selectsRange,h=(r=t.props.selectingDate)!==null&&r!==void 0?r:t.props.preSelection;return o?Ke(s,h):u&&l&&a&&h?Ke(s,os(h,a)?h:a):Ke(s,a)},t.isSelectingRangeEnd=function(){var r;if(!t.isInSelectingRange())return!1;var i=t.props,s=i.day,a=i.endDate,o=i.selectsEnd,l=i.selectsRange,u=i.swapRange,h=i.startDate,f=(r=t.props.selectingDate)!==null&&r!==void 0?r:t.props.preSelection;return o?Ke(s,f):l&&u&&h&&f?Ke(s,os(f,h)?h:f):l?Ke(s,f):Ke(s,a)},t.isRangeStart=function(){var r=t.props,i=r.day,s=r.startDate,a=r.endDate;return!s||!a?!1:Ke(s,i)},t.isRangeEnd=function(){var r=t.props,i=r.day,s=r.startDate,a=r.endDate;return!s||!a?!1:Ke(a,i)},t.isWeekend=function(){var r=DK(t.props.day);return r===0||r===6},t.isAfterMonth=function(){return t.props.month!==void 0&&(t.props.month+1)%12===mr(t.props.day)},t.isBeforeMonth=function(){return t.props.month!==void 0&&(mr(t.props.day)+1)%12===t.props.month},t.isCurrentDay=function(){return t.isSameDay(nt())},t.isSelected=function(){var r;return t.props.selectsMultiple?(r=t.props.selectedDates)===null||r===void 0?void 0:r.some(function(i){return t.isSameDayOrWeek(i)}):t.isSameDayOrWeek(t.props.selected)},t.getClassNames=function(r){var i=t.props.dayClassName?t.props.dayClassName(r):void 0;return bn("react-datepicker__day",i,"react-datepicker__day--"+gJ(t.props.day),{"react-datepicker__day--disabled":t.isDisabled(),"react-datepicker__day--excluded":t.isExcluded(),"react-datepicker__day--selected":t.isSelected(),"react-datepicker__day--keyboard-selected":t.isKeyboardSelected(),"react-datepicker__day--range-start":t.isRangeStart(),"react-datepicker__day--range-end":t.isRangeEnd(),"react-datepicker__day--in-range":t.isInRange(),"react-datepicker__day--in-selecting-range":t.isInSelectingRange(),"react-datepicker__day--selecting-range-start":t.isSelectingRangeStart(),"react-datepicker__day--selecting-range-end":t.isSelectingRangeEnd(),"react-datepicker__day--today":t.isCurrentDay(),"react-datepicker__day--weekend":t.isWeekend(),"react-datepicker__day--outside-month":t.isAfterMonth()||t.isBeforeMonth()},t.getHighLightedClass(),t.getHolidaysClass())},t.getAriaLabel=function(){var r=t.props,i=r.day,s=r.ariaLabelPrefixWhenEnabled,a=s===void 0?"Choose":s,o=r.ariaLabelPrefixWhenDisabled,l=o===void 0?"Not available":o,u=t.isDisabled()||t.isExcluded()?l:a;return"".concat(u," ").concat(At(i,"PPPP",t.props.locale))},t.getTitle=function(){var r=t.props,i=r.day,s=r.holidays,a=s===void 0?new Map:s,o=r.excludeDates,l=At(i,"MM.dd.yyyy"),u=[];return a.has(l)&&u.push.apply(u,a.get(l).holidayNames),t.isExcluded()&&u.push(o==null?void 0:o.filter(function(h){return h instanceof Date?Ke(h,i):Ke(h==null?void 0:h.date,i)}).map(function(h){if(!(h instanceof Date))return h==null?void 0:h.message})),u.join(", ")},t.getTabIndex=function(){var r=t.props.selected,i=t.props.preSelection,s=!(t.props.showWeekPicker&&(t.props.showWeekNumber||!t.isStartOfWeek()))&&(t.isKeyboardSelected()||t.isSameDay(r)&&Ke(i,r))?0:-1;return s},t.handleFocusDay=function(){var r;t.shouldFocusDay()&&((r=t.dayEl.current)===null||r===void 0||r.focus({preventScroll:!0}))},t.renderDayContents=function(){return t.props.monthShowsDuplicateDaysEnd&&t.isAfterMonth()||t.props.monthShowsDuplicateDaysStart&&t.isBeforeMonth()?null:t.props.renderDayContents?t.props.renderDayContents(TE(t.props.day),t.props.day):TE(t.props.day)},t.render=function(){return H.createElement("div",{ref:t.dayEl,className:t.getClassNames(t.props.day),onKeyDown:t.handleOnKeyDown,onClick:t.handleClick,onMouseEnter:t.props.usePointerEvent?void 0:t.handleMouseEnter,onPointerEnter:t.props.usePointerEvent?t.handleMouseEnter:void 0,tabIndex:t.getTabIndex(),"aria-label":t.getAriaLabel(),role:"gridcell",title:t.getTitle(),"aria-disabled":t.isDisabled(),"aria-current":t.isCurrentDay()?"date":void 0,"aria-selected":t.isSelected()||t.isInRange()},t.renderDayContents(),t.getTitle()!==""&&H.createElement("span",{className:"overlay"},t.getTitle()))},t}return e.prototype.componentDidMount=function(){this.handleFocusDay()},e.prototype.componentDidUpdate=function(){this.handleFocusDay()},e.prototype.shouldFocusDay=function(){var t=!1;return this.getTabIndex()===0&&this.isSameDay(this.props.preSelection)&&((!document.activeElement||document.activeElement===document.body)&&(t=!0),this.props.inline&&!this.props.shouldFocusDayInline&&(t=!1),this.isDayActiveElement()&&
107(t=!0),this.isDuplicateDay()&&(t=!1)),t},e.prototype.isDayActiveElement=function(){var t,r,i;return((r=(t=this.props.containerRef)===null||t===void 0?void 0:t.current)===null||r===void 0?void 0:r.contains(document.activeElement))&&((i=document.activeElement)===null||i===void 0?void 0:i.classList.contains("react-datepicker__day"))},e.prototype.isDuplicateDay=function(){return this.props.monthShowsDuplicateDaysEnd&&this.isAfterMonth()||this.props.monthShowsDuplicateDaysStart&&this.isBeforeMonth()},e}(E.Component),jJ=function(n){Fn(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.weekNumberEl=E.createRef(),t.handleClick=function(r){t.props.onClick&&t.props.onClick(r)},t.handleOnKeyDown=function(r){var i,s,a=r.key;a===oe.Space&&(r.preventDefault(),r.key=oe.Enter),(s=(i=t.props).handleOnKeyDown)===null||s===void 0||s.call(i,r)},t.isKeyboardSelected=function(){return!t.props.disabledKeyboardNavigation&&!Ke(t.props.date,t.props.selected)&&Ke(t.props.date,t.props.preSelection)},t.getTabIndex=function(){return t.props.showWeekPicker&&t.props.showWeekNumber&&(t.isKeyboardSelected()||Ke(t.props.date,t.props.selected)&&Ke(t.props.preSelection,t.props.selected))?0:-1},t.handleFocusWeekNumber=function(r){var i=!1;t.getTabIndex()===0&&!(r!=null&&r.isInputFocused)&&Ke(t.props.date,t.props.preSelection)&&((!document.activeElement||document.activeElement===document.body)&&(i=!0),t.props.inline&&!t.props.shouldFocusDayInline&&(i=!1),t.props.containerRef&&t.props.containerRef.current&&t.props.containerRef.current.contains(document.activeElement)&&document.activeElement&&document.activeElement.classList.contains("react-datepicker__week-number")&&(i=!0)),i&&t.weekNumberEl.current&&t.weekNumberEl.current.focus({preventScroll:!0})},t}return Object.defineProperty(e,"defaultProps",{get:function(){return{ariaLabelPrefix:"week "}},enumerable:!1,configurable:!0}),e.prototype.componentDidMount=function(){this.handleFocusWeekNumber()},e.prototype.componentDidUpdate=function(t){this.handleFocusWeekNumber(t)},e.prototype.render=function(){var t=this.props,r=t.weekNumber,i=t.isWeekDisabled,s=t.ariaLabelPrefix,a=s===void 0?e.defaultProps.ariaLabelPrefix:s,o=t.onClick,l={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!o&&!i,"react-datepicker__week-number--selected":!!o&&Ke(this.props.date,this.props.selected)};return H.createElement("div",{ref:this.weekNumberEl,className:bn(l),"aria-label":"".concat(a," ").concat(this.props.weekNumber),onClick:this.handleClick,onKeyDown:this.handleOnKeyDown,tabIndex:this.getTabIndex(),role:"gridcell"},r)},e}(E.Component),RJ=function(n){Fn(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.isDisabled=function(r){return ai(r,{minDate:t.props.minDate,maxDate:t.props.maxDate,excludeDates:t.props.excludeDates,excludeDateIntervals:t.props.excludeDateIntervals,includeDateIntervals:t.props.includeDateIntervals,includeDates:t.props.includeDates,filterDate:t.props.filterDate})},t.handleDayClick=function(r,i){t.props.onDayClick&&t.props.onDayClick(r,i)},t.handleDayMouseEnter=function(r){t.props.onDayMouseEnter&&t.props.onDayMouseEnter(r)},t.handleWeekClick=function(r,i,s){for(var a,o,l,u=new Date(r),h=0;h<7;h++){var f=new Date(r);f.setDate(f.getDate()+h);var m=!t.isDisabled(f);if(m){u=f;break}}typeof t.props.onWeekSelect=="function"&&t.props.onWeekSelect(u,i,s),t.props.showWeekPicker&&t.handleDayClick(u,s),((a=t.props.shouldCloseOnSelect)!==null&&a!==void 0?a:e.defaultProps.shouldCloseOnSelect)&&((l=(o=t.props).setOpen)===null||l===void 0||l.call(o,!1))},t.formatWeekNumber=function(r){return t.props.formatWeekNumber?t.props.formatWeekNumber(r):pJ(r)},t.isWeekDisabled=function(){for(var r=t.startOfWeek(),i=Ii(r,6),s=new Date(r);s<=i;){if(!t.isDisabled(s))return!1;s=Ii(s,1)}return!0},t.renderDays=function(){var r=t.startOfWeek(),i=[],s=t.formatWeekNumber(r);
107if(t.props.showWeekNumber){var a=t.props.onWeekSelect||t.props.showWeekPicker?t.handleWeekClick.bind(t,r,s):void 0;i.push(H.createElement(jJ,Ue({key:"W"},e.defaultProps,t.props,{weekNumber:s,isWeekDisabled:t.isWeekDisabled(),date:r,onClick:a})))}return i.concat([0,1,2,3,4,5,6].map(function(o){var l=Ii(r,o);return H.createElement(AJ,Ue({},e.defaultProps,t.props,{ariaLabelPrefixWhenEnabled:t.props.chooseDayAriaLabelPrefix,ariaLabelPrefixWhenDisabled:t.props.disabledDayAriaLabelPrefix,key:l.valueOf(),day:l,onClick:t.handleDayClick.bind(t,l),onMouseEnter:t.handleDayMouseEnter.bind(t,l)}))}))},t.startOfWeek=function(){return eo(t.props.day,t.props.locale,t.props.calendarStartDay)},t.isKeyboardSelected=function(){return!t.props.disabledKeyboardNavigation&&!Ke(t.startOfWeek(),t.props.selected)&&Ke(t.startOfWeek(),t.props.preSelection)},t}return Object.defineProperty(e,"defaultProps",{get:function(){return{shouldCloseOnSelect:!0}},enumerable:!1,configurable:!0}),e.prototype.render=function(){var t={"react-datepicker__week":!0,"react-datepicker__week--selected":Ke(this.startOfWeek(),this.props.selected),"react-datepicker__week--keyboard-selected":this.isKeyboardSelected()},r=this.props.weekClassName?this.props.weekClassName(this.startOfWeek()):void 0;return H.createElement("div",{className:bn(t,r),role:"row"},this.renderDays())},e}(E.Component),od,IJ=6,Iu={TWO_COLUMNS:"two_columns",THREE_COLUMNS:"three_columns",FOUR_COLUMNS:"four_columns"},h_=(od={},od[Iu.TWO_COLUMNS]={grid:[[0,1],[2,3],[4,5],[6,7],[8,9],[10,11]],verticalNavigationOffset:2},od[Iu.THREE_COLUMNS]={grid:[[0,1,2],[3,4,5],[6,7,8],[9,10,11]],verticalNavigationOffset:3},od[Iu.FOUR_COLUMNS]={grid:[[0,1,2,3],[4,5,6,7],[8,9,10,11]],verticalNavigationOffset:4},od),Op=1;function iM(n,e){return n?Iu.FOUR_COLUMNS:e?Iu.TWO_COLUMNS:Iu.THREE_COLUMNS}var NJ=function(n){Fn(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.MONTH_REFS=ls([],Array(12),!0).map(function(){return E.createRef()}),t.QUARTER_REFS=ls([],Array(4),!0).map(function(){return E.createRef()}),t.isDisabled=function(r){return ai(r,{minDate:t.props.minDate,maxDate:t.props.maxDate,excludeDates:t.props.excludeDates,excludeDateIntervals:t.props.excludeDateIntervals,includeDateIntervals:t.props.includeDateIntervals,includeDates:t.props.includeDates,filterDate:t.props.filterDate,disabled:t.props.disabled})},t.isExcluded=function(r){return x1(r,{excludeDates:t.props.excludeDates,excludeDateIntervals:t.props.excludeDateIntervals})},t.handleDayClick=function(r,i){var s,a;
107(a=(s=t.props).onDayClick)===null||a===void 0||a.call(s,r,i,t.props.orderInDisplay)},t.handleDayMouseEnter=function(r){var i,s;(s=(i=t.props).onDayMouseEnter)===null||s===void 0||s.call(i,r)},t.handleMouseLeave=function(){var r,i;(i=(r=t.props).onMouseLeave)===null||i===void 0||i.call(r)},t.isRangeStartMonth=function(r){var i=t.props,s=i.day,a=i.startDate,o=i.endDate;return!a||!o?!1:Zn(Ar(s,r),a)},t.isRangeStartQuarter=function(r){var i=t.props,s=i.day,a=i.startDate,o=i.endDate;return!a||!o?!1:_m(lu(s,r),a)},t.isRangeEndMonth=function(r){var i=t.props,s=i.day,a=i.startDate,o=i.endDate;return!a||!o?!1:Zn(Ar(s,r),o)},t.isRangeEndQuarter=function(r){var i=t.props,s=i.day,a=i.startDate,o=i.endDate;return!a||!o?!1:_m(lu(s,r),o)},t.isInSelectingRangeMonth=function(r){var i,s=t.props,a=s.day,o=s.selectsStart,l=s.selectsEnd,u=s.selectsRange,h=s.startDate,f=s.endDate,m=(i=t.props.selectingDate)!==null&&i!==void 0?i:t.props.preSelection;return!(o||l||u)||!m?!1:o&&f?Cp(m,f,r,a):l&&h||u&&h&&!f?Cp(h,m,r,a):!1},t.isSelectingMonthRangeStart=function(r){var i;if(!t.isInSelectingRangeMonth(r))return!1;var s=t.props,a=s.day,o=s.startDate,l=s.selectsStart,u=Ar(a,r),h=(i=t.props.selectingDate)!==null&&i!==void 0?i:t.props.preSelection;return l?Zn(u,h):Zn(u,o)},t.isSelectingMonthRangeEnd=function(r){var i;if(!t.isInSelectingRangeMonth(r))return!1;var s=t.props,a=s.day,o=s.endDate,l=s.selectsEnd,u=s.selectsRange,h=Ar(a,r),f=(i=t.props.selectingDate)!==null&&i!==void 0?i:t.props.preSelection;return l||u?Zn(h,f):Zn(h,o)},t.isInSelectingRangeQuarter=function(r){var i,s=t.props,a=s.day,o=s.selectsStart,l=s.selectsEnd,u=s.selectsRange,h=s.startDate,f=s.endDate,m=(i=t.props.selectingDate)!==null&&i!==void 0?i:t.props.preSelection;return!(o||l||u)||!m?!1:o&&f?Tp(m,f,r,a):l&&h||u&&h&&!f?Tp(h,m,r,a):!1},t.isWeekInMonth=function(r){var i=t.props.day,s=Ii(r,6);return Zn(r,i)||Zn(s,i)},t.isCurrentMonth=function(r,i){return Xe(r)===Xe(nt())&&i===mr(nt())},t.isCurrentQuarter=function(r,i){return Xe(r)===Xe(nt())&&i===za(nt())},t.isSelectedMonth=function(r,i,s){return mr(s)===i&&Xe(r)===Xe(s)},t.isSelectMonthInList=function(r,i,s){return s.some(function(a){return t.isSelectedMonth(r,i,a)})},t.isSelectedQuarter=function(r,i,s){return za(s)===i&&Xe(r)===Xe(s)},t.isSelectQuarterInList=function(r,i,s){return s.some(function(a){return t.isSelectedQuarter(r,i,a)})},t.isMonthSelected=function(){var r=t.props,i=r.day,s=r.selected,a=r.selectedDates,o=r.selectsMultiple,l=mr(i);return o?a==null?void 0:a.some(function(u){return t.isSelectedMonth(i,l,u)}):!!s&&t.isSelectedMonth(i,l,s)},t.isQuarterSelected=function(){var r=t.props,i=r.day,s=r.selected,a=r.selectedDates,o=r.selectsMultiple,l=za(i);return o?a==null?void 0:a.some(function(u){return t.isSelectedQuarter(i,l,u)}):!!s&&t.isSelectedQuarter(i,l,s)},t.renderWeeks=function(){if(!hr(t.props.day))return[];for(var r=[],i=t.props.fixedHeight,s=0,a=!1,o=eo(Qs(t.props.day),t.props.locale,t.props.calendarStartDay),l=function(y){return t.props.showWeekPicker?eo(y,t.props.locale,t.props.calendarStartDay):t.props.preSelection},u=function(y){return t.props.showWeekPicker?eo(y,t.props.locale,t.props.calendarStartDay):t.props.selected},h=t.props.selected?u(t.props.selected):void 0,f=t.props.preSelection?l(t.props.preSelection):void 0;r.push(H.createElement(RJ,Ue({},t.props,{ariaLabelPrefix:t.props.weekAriaLabelPrefix,key:s,day:o,month:mr(t.props.day),onDayClick:t.handleDayClick,onDayMouseEnter:t.handleDayMouseEnter,selected:h,preSelection:f,showWeekNumber:t.props.showWeekNumbers}))),!a;){s++,o=cm(o,1);var m=i&&s>=IJ,g=!i&&!t.isWeekInMonth(o);if(m||g)if(t.props.peekNextMonth)a=!0;else break}return r},t.onMonthClick=function(r,i){var s=t.isMonthDisabledForLabelDate(i),a=s.isDisabled,o=s.labelDate;a||t.handleDayClick(Qs(o),r)},t.onMonthMouseEnter=function(r){var i=t.isMonthDisabledForLabelDate(r),s=i.isDisabled,a=i.labelDate;s||t.handleDayMouseEnter(Qs(a))},t.handleMonthNavigation=function(r,i){var s,a,o,l;(a=(s=t.props).setPreSelection)===null||a===void 0||a.call(s,i),(l=(o=t.MONTH_REFS[r])===null||o===void 0?void 0:o.current)===null||l===void 0||l.focus()},t.handleKeyboardNavigation=function(r,i,s){var a,o=t.props,l=o.selected,u=o.preSelection,h=o.setPreSelection,f=o.minDate,m=o.maxDate,g
107=o.showFourColumnMonthYearPicker,y=o.showTwoColumnMonthYearPicker;if(u){var v=iM(g,y),x=t.getVerticalOffset(v),_=(a=h_[v])===null||a===void 0?void 0:a.grid,S=function(A,M,L){var I,V,Q=M,U=L;switch(A){case oe.ArrowRight:Q=Yi(M,Op),U=L===11?0:L+Op;break;case oe.ArrowLeft:Q=Zo(M,Op),U=L===0?11:L-Op;break;case oe.ArrowUp:Q=Zo(M,x),U=!((I=_==null?void 0:_[0])===null||I===void 0)&&I.includes(L)?L+12-x:L-x;break;case oe.ArrowDown:Q=Yi(M,x),U=!((V=_==null?void 0:_[_.length-1])===null||V===void 0)&&V.includes(L)?L-12+x:L+x;break}return{newCalculatedDate:Q,newCalculatedMonth:U}},w=function(A,M,L){for(var I=40,V=A,Q=!1,U=0,X=S(V,M,L),K=X.newCalculatedDate,z=X.newCalculatedMonth;!Q;){if(U>=I){K=M,z=L;break}if(f&&K<f){V=oe.ArrowRight;var F=S(V,K,z);K=F.newCalculatedDate,z=F.newCalculatedMonth}if(m&&K>m){V=oe.ArrowLeft;var F=S(V,K,z);K=F.newCalculatedDate,z=F.newCalculatedMonth}if(SJ(K,t.props)){var F=S(V,K,z);K=F.newCalculatedDate,z=F.newCalculatedMonth}else Q=!0;U++}return{newCalculatedDate:K,newCalculatedMonth:z}};if(i===oe.Enter){t.isMonthDisabled(s)||(t.onMonthClick(r,s),h==null||h(l));return}var k=w(i,u,s),P=k.newCalculatedDate,j=k.newCalculatedMonth;switch(i){case oe.ArrowRight:case oe.ArrowLeft:case oe.ArrowUp:case oe.ArrowDown:t.handleMonthNavigation(j,P);break}}},t.getVerticalOffset=function(r){var i,s;return(s=(i=h_[r])===null||i===void 0?void 0:i.verticalNavigationOffset)!==null&&s!==void 0?s:0},t.onMonthKeyDown=function(r,i){var s=t.props,a=s.disabledKeyboardNavigation,o=s.handleOnMonthKeyDown,l=r.key;l!==oe.Tab&&r.preventDefault(),a||t.handleKeyboardNavigation(r,l,i),o&&o(r)},t.onQuarterClick=function(r,i){var s=lu(t.props.day,i);Ep(s,t.props)||t.handleDayClick(WE(s),r)},t.onQuarterMouseEnter=function(r){var i=lu(t.props.day,r);Ep(i,t.props)||t.handleDayMouseEnter(WE(i))},t.handleQuarterNavigation=function(r,i){var s,a,o,l;t.isDisabled(i)||t.isExcluded(i)||((a=(s=t.props).setPreSelection)===null||a===void 0||a.call(s,i),(l=(o=t.QUARTER_REFS[r-1])===null||o===void 0?void 0:o.current)===null||l===void 0||l.focus())},t.onQuarterKeyDown=function(r,i){var s,a,o=r.key;if(!t.props.disabledKeyboardNavigation)switch(o){case oe.Enter:t.onQuarterClick(r,i),(a=(s=t.props).setPreSelection)===null||a===void 0||a.call(s,t.props.selected);break;case oe.ArrowRight:if(!t.props.preSelection)break;t.handleQuarterNavigation(i===4?1:i+1,l1(t.props.preSelection,1));break;case oe.ArrowLeft:if(!t.props.preSelection)break;t.handleQuarterNavigation(i===1?4:i-1,o2(t.props.preSelection,1));break}},t.isMonthDisabledForLabelDate=function(r){var i,s=t.props,a=s.day,o=s.disabled,l=s.minDate,u=s.maxDate,h=s.excludeDates,f=s.includeDates,m=Ar(a,r);return o?{isDisabled:!0,labelDate:Ar(a,r)}:{isDisabled:(i=(l||u||h||f)&&S2(m,t.props))!==null&&i!==void 0?i:!1,labelDate:m}},t.isMonthDisabled=function(r){var i=t.isMonthDisabledForLabelDate(r).isDisabled;return i},t.getMonthClassNames=function(r){var i=t.props,s=i.day,a=i.startDate,o=i.endDate,l=i.preSelection,u=i.monthClassName,h=u?u(Ar(s,r)):void 0,f=t.getSelection();return bn("react-datepicker__month-text","react-datepicker__month-".concat(r),h,{"react-datepicker__month-text--disabled":t.isMonthDisabled(r),"react-datepicker__month-text--selected":f?t.isSelectMonthInList(s,r,f):void 0,"react-datepicker__month-text--keyboard-selected":!t.props.disabledKeyboardNavigation&&l&&t.isSelectedMonth(s,r,l)&&!t.isMonthSelected()&&!t.isMonthDisabled(r),"react-datepicker__month-text--in-selecting-range":t.isInSelectingRangeMonth(r),"react-datepicker__month-text--in-range":a&&o?Cp(a,o,r,s):void 0,"react-datepicker__month-text--range-start":t.isRangeStartMonth(r),"react-datepicker__month-text--range-end":t.isRangeEndMonth(r),"react-datepicker__month-text--selecting-range-start":t.isSelectingMonthRangeStart(r),"react-datepicker__month-text--selecting-range-end":t.isSelectingMonthRangeEnd(r),"react-datepicker__month-text--today":t.isCurrentMonth(s,r)})},t.getTabIndex=function(r){if(t.props.preSelection==null)return"-1";var i=mr(t.props.preSelection),s=t.isMonthDisabledForLabelDate(i).isDisabled,a=r===i&&!(s||t.props.disabledKeyboardNavigation)?"0":"-1";return a},t.getQuarterTabIndex=function(r){if(t.props.preSelection==null)return"-1";var i=za(t.props.preSelection),s=Ep(t.props.day,t.props),a=r===i&&!(s||t.props.disabledKeyboardNavigation)?"0":"-1";return a},t.getAriaLabel=function(r){var i=t.props,s=i.chooseDayAriaLabelPrefix,a=s===void 0?"Choose":s,o=i.disabledDayAriaLabelPrefix,l=o===void 0?"Not available":o,u=i.day,h=i.locale,f=Ar(u,r),m=t.isDisabled(f)||t.isExcluded(f)?l:a;return"".concat(m," ").concat(At(f,"MMMM yyyy",h))},t.getQuarterClassNames=function(r){var i=t.props,s=i.day,a=i.startDate,o=i.endDate,l=i.minDate,u=i.maxDate,h=i.excludeDates,f=i.includeDates,m=i.filterDate,g=i.preSelection,y=i.disabledKeyboardNavigation,v=i.disabled,x=(l||u||h||f||m||v)&&Ep(lu(s,r),t.props),_=t.getSelection();return bn("react-datepicker__quarter-text","react-datepicker__quarter-".concat(r),{"react-datepicker__quarter-text--disabled":x,"react-datepicker__quarter-text--selected":_?t.isSelectQuarterInList(s,r,_):void 0,"react-datepicker__quarter-text--keyboard-selected":!y&&g&&t.isSelectedQuarter(s,r,g)&&!t.isQuarterSelected()&&!x,"react-datepicker__quarter-text--in-selecting-range":t.isInSelectingRangeQuarter(r),"react-datepicker__quarter-text--in-range":a&&o?Tp(a,o,r,s):void 0,"react-datepicker__quarter-text--range-start":t.isRangeStartQuarter(r),"react-datepicker__quarter-text--range-end":t.isRangeEndQuarter(r),"react-datepicker__quarter-text--today":t.isCurrentQuarter(s,r)})},t.getMonthContent=function(r){var i=t.props,s=i.showFullMonthYearPicker,a=i.renderMonthContent,o=i.locale,l=i.day,u=w2(r,o),h=_1(r,o);return a?a(r,u,h,l):s?h:u},t.getQuarterContent=function(r){var i,s=t.props,a=s.renderQuarterContent,o=s.locale,l=wJ(r,o);return(i=a==null?void 0:a(r,l))!==null&&i!==void 0?i:l},t.renderMonths=function(){var r,i=t.props,s=i.showTwoColumnMonthYearPicker,a=i.show
107FourColumnMonthYearPicker,o=i.day,l=i.selected,u=(r=h_[iM(a,s)])===null||r===void 0?void 0:r.grid;return u==null?void 0:u.map(function(h,f){return H.createElement("div",{className:"react-datepicker__month-wrapper",key:f},h.map(function(m,g){return H.createElement("div",{ref:t.MONTH_REFS[m],key:g,onClick:function(y){t.onMonthClick(y,m)},onKeyDown:function(y){C2(y)&&(y.preventDefault(),y.key=oe.Enter),t.onMonthKeyDown(y,m)},onMouseEnter:t.props.usePointerEvent?void 0:function(){return t.onMonthMouseEnter(m)},onPointerEnter:t.props.usePointerEvent?function(){return t.onMonthMouseEnter(m)}:void 0,tabIndex:Number(t.getTabIndex(m)),className:t.getMonthClassNames(m),"aria-disabled":t.isMonthDisabled(m),role:"option","aria-label":t.getAriaLabel(m),"aria-current":t.isCurrentMonth(o,m)?"date":void 0,"aria-selected":l?t.isSelectedMonth(o,m,l):void 0},t.getMonthContent(m))}))})},t.renderQuarters=function(){var r=t.props,i=r.day,s=r.selected,a=[1,2,3,4];return H.createElement("div",{className:"react-datepicker__quarter-wrapper"},a.map(function(o,l){return H.createElement("div",{key:l,ref:t.QUARTER_REFS[l],role:"option",onClick:function(u){t.onQuarterClick(u,o)},onKeyDown:function(u){t.onQuarterKeyDown(u,o)},onMouseEnter:t.props.usePointerEvent?void 0:function(){return t.onQuarterMouseEnter(o)},onPointerEnter:t.props.usePointerEvent?function(){return t.onQuarterMouseEnter(o)}:void 0,className:t.getQuarterClassNames(o),"aria-selected":s?t.isSelectedQuarter(i,o,s):void 0,tabIndex:Number(t.getQuarterTabIndex(o)),"aria-current":t.isCurrentQuarter(i,o)?"date":void 0},t.getQuarterContent(o))}))},t.getClassNames=function(){var r=t.props,i=r.selectingDate,s=r.selectsStart,a=r.selectsEnd,o=r.showMonthYearPicker,l=r.showQuarterYearPicker,u=r.showWeekPicker;return bn("react-datepicker__month",{"react-datepicker__month--selecting-range":i&&(s||a)},{"react-datepicker__monthPicker":o},{"react-datepicker__quarterPicker":l},{"react-datepicker__weekPicker":u})},t}return e.prototype.getSelection=function(){var t=this.props,r=t.selected,i=t.selectedDates,s=t.selectsMultiple;if(s)return i;if(r)return[r]},e.prototype.render=function(){var t=this.props,r=t.showMonthYearPicker,i=t.showQuarterYearPicker,s=t.day,a=t.ariaLabelPrefix,o=a===void 0?"Month ":a,l=o?o.trim()+" ":"",u=hr(s)?"".concat(l).concat(At(s,"MMMM, yyyy",this.props.locale)):"",h=r||i;return h?H.createElement("div",{className:this.getClassNames(),onMouseLeave:this.props.usePointerEvent?void 0:this.handleMouseLeave,onPointerLeave:this.props.usePointerEvent?this.handleMouseLeave:void 0,"aria-label":u,role:"listbox"},r?this.renderMonths():this.renderQuarters()):H.createElement("div",{role:"table"},this.props.dayNamesHeader&&H.createElement("div",{role:"rowgroup"},this.props.dayNamesHeader),this.props.monthHeader&&H.createElement("div",{role:"rowgroup"},this.props.monthHeader),H.createElement("div",{className:this.getClassNames(),onMouseLeave:this.props.usePointerEvent?void 0:this.handleMouseLeave,onPointerLeave:this.props.usePointerEvent?this.handleMouseLeave:void 0,"aria-label":u,role:"rowgroup"},this.renderWeeks()),this.props.monthFooter&&H.createElement("div",{role:"rowgroup"},this.props.monthFooter))},e}(E.Component),FJ=function(n){Fn(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.monthOptionButtonsRef={},t.isSelectedMonth=function(r){return t.props.month===r},t.handleOptionKeyDown=function(r,i){var s;switch(i.key){case"Enter":i.preventDefault(),t.onChange(r);break;case"Escape":i.preventDefault(),t.props.onCancel();break;case"ArrowUp":case"ArrowDown":{i.preventDefault();var a=(r+(i.key==="ArrowUp"?-1:1)+t.props.monthNames.length)%t.props.monthNames.length;(s=t.monthOptionButtonsRef[a])===null||s===void 0||s.focus();break}}},t.renderOptions=function(){return t.monthOptionButtonsRef={},t.props.monthNames.map(function(r,i){return H.createElement("div",{ref:function(s){t.monthOptionButtonsRef[i]=s,t.isSelectedMonth(i)&&(s==null||s.focus())},role:"button",tabIndex:0,className:t.isSelectedMonth(i)?"react-datepicker__month-option react-datepicker__month-option--selected_month":"react-datepicker__month-option",key:r,onClick:t.onChange.bind(t,i),onKeyDown:t.handleOptionKeyDown.bind(t,i),"aria-selected":t.isSelectedMonth(i)?"true":void 0},t.isSelectedMonth(i)?H.createElement("span",{className:"react-datepicker__month-option--selected"},"â"):"",r)})},t.onChange=function(r){return t.props.onChange(r)},t.handleClickOutside=function(){return t.props.onCancel()},t}return e.prototype.render=function(){return H.createElement(vv,{className:"react-datepicker__month-dropdown",onClickOutside:this.handleClickOutside},this.renderOptions())},e}(E.Component),LJ=function(n){Fn(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.state={dropdownVisible:!1},t.renderSelectOptions=function(r){return r.map(function(i,s){return H.createElement("option",{key:i,value:s},i)})},t.renderSelectMode=function(r){return H.createElement("select",{value:t.props.month,className:"react-datepicker__month-select",onChange:function(i){return t.onChange(parseInt(i.target.value))}},t.renderSelectOptions(r))},t.renderReadView=function(r,i){return H.createElement("button",{key:"read",type:"button",style:{visibility:r?"visible":"hidden"},className:"react-datepicker__month-read-view",onClick:t.toggleDropdown},H.createElement("span",{className:"react-datepicker__month-read-view--down-arrow"}),H.createElement("span",{className:"react-datepicker__month-read-view--selected-month"},i[t.props.month]))},t.renderDropdown=function(r){return H.createElement(FJ,Ue({key:"dropdown"},t.props,{monthNames:r,onChange:t.onChange,onCancel:t.toggleDropdown}))},t.renderScrollMode=function(r){var i=t.state.dropdownVisible,s=[t.renderReadView(!i,r)];return i&&s.unshift(t.renderDropdown(r)),s},t.onChange=function(r){t.toggleDropdown(),r!==t.props.month&&t.props.onChange(r)},t.toggleDropdown=function(){return t.setState({dropdownVisible:!t.state.dropdownVisible})},t}return e.prototype.render=function(){var t=this,r=[0,1,2,3,4,5,6,7,8,9,10,11].map(this.props.useShortMonthInDropdown?function(s){return w2(s,t.props.locale)}:function(s){return _1(s,t.props.locale)}),i;switch(this.props.dropdownMode){case"scroll":i=this.renderScrollMode(r);break;case"select":i=this.renderSelectMode(r);break}return H.createElement("div",{className:"react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode)},i)},e}(E.Component),sM=5;function BJ(n,e,t){for(var r=[],i=n??lo(t,sM),s=e??Ni(t,sM),a=Qs(i),o=Qs(s);!Ks(a,o);)r.push(nt(a)),a=Yi(a,1);return r}var $J=function(n){Fn(e,n);function e(t){var r=n.call(this,t)||this;return r.renderOptions=function(){return r.state.monthYearsList.map(function(i){var s=fx(i),a=Zi(r.props.date,i)&&Zn(r.props.date,i);return H.createElement("div",{className:a?"react-datepicker__month-year-option--selected_month-year":"react-datepicker__month-year-option",key:s,onClick:r.onChange.bind(r,s),"aria-selected":a?"true":void 0},a?H.createElement("span",{className:"react-datepicker__month-year-option--selected"},"â"):"",At(i,r.props.dateFormat,r.props.locale))})},r.onChange=function(i){return r.props.onChange(i)},r.handleClickOutside=function(){r.props.onCancel()},r.state={monthYearsList:BJ(r.props.minDate,r.props.maxDate,r.props.date)},r}return e.prototype.render=function(){var t=bn({"react-datepicker__month-year-dropdown":!0,"react-datepicker__month-year-dropdown--scrollable":this.props.scrollableMonthYearDropdown});return H.createElement(vv,{className:t,onClickOutside:this.handleClickOutside},this.renderOptions())},e}(E.Component),aM=5,VJ=function(n){Fn(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.state={dropdownVisible:!1},t.renderSelectOptions=function(){for(var r,i,s=(r=t.props.minDate)!==null&&r!==void 0?r:lo(t.props.date,aM),a=(i=t.props.maxDate)!==null&&i!==void 0?i:Ni(t.props.date,aM),o=Qs(s),l=Qs(a),u=[];!Ks(o,l);){var h=fx(o);u.push(H.createElement("option",{key:h,value:h},At(o,t.props.dateFormat,t.props.locale))),o=Yi(o,1)}return u},t.onSelectChange=function(r){t.onChange(parseInt(r.target.value))},t.renderSelectMode=function(){return H.createElement("select",{value:fx(Qs(t.props.date)),className:"react-datepicker__month-year-select",onChange:t.onSelectChange},t.renderSelectOptions())},t.renderReadView=function(r){var i=At(t.props.date,t.props.dateFormat,t.props.locale);return H.createElement("div",{key:"read",style:{visibility:r?"visible":"hidden"},className:"react-datepicker__month-year-read-view",onClick:t.toggleDropdown},H.createElement("span",{className:"react-datepicker__month-year-read-view--down-arrow"}),H.createElement("span",{className:"react-datepicker__month-year-read-view--selected-month-year"},i))},t.renderDropdown=function(){return H.createElement($J,Ue({key:"dropdown"},t.props,{onChange:t.onChange,onCancel:t.toggleDropdown}))},t.renderScrollMode=function(){var r=t.state.dropdownVisible,i=[t.renderReadView(!r)];return r&&i.unshift(t.renderDropdown()),i},t.onChange=function(r){t.toggleDropdown();var i=nt(r);Zi(t.props.date,i)&&Zn(t.props.date,i)||t.props.onChange(i)},t.toggleDropdown=function(){return t.setState({dropdownVisible:!t.state.dropdownVisible})},t}return e.prototype.render=function(){var t;switch(this.props.dropdownMode){case"scroll":t=this.renderScrollMode();break;case"select":t=this.renderSelectMode();break}return H.createElement("div",{className:"react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode)},t)},e}(E.Component),YJ=function(n){Fn(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.state={height:null},t.scrollToTheSelectedTime=function(){requestAnimationFrame(function(){var r,i,s;t.list&&(t.list.scrollTop=(s=t.centerLi&&e.calcCenterPosition(t.props.monthRef?t.props.monthRef.clientHeight-((i=(r=t.header)===null||r===void 0?void 0:r.clientHeight)!==null&&i!==void 0?i:0):t.list.clientHeight,t.centerLi))!==null&&s!==void 0?s:0)})},t.handleClick=function(r){var i,s;(t.props.minTime||t.props.maxTime)&&KE(r,t.props)||(t.props.excludeTimes||t.props.includeTimes||t.props.filterTime)&&qE(r,t.props)||(s=(i=t.props).onChange)===null||s===void 0||s.call(i,r)},t.isSelectedTime=function(r){var i=zo(t.props.selected);return i&&P2(i,r)},t.isDisabledTime=function(r){return(t.props.minTime||t.props.maxTime)&&KE(r,t.props)||(t.props.excludeTimes||t.props.includeTimes||t.props.filterTime)&&qE(r,t.props)},t.liClasses=function(r){var i,s=["react-datepicker__time-list-item",t.props.timeClassName?t.props.timeClassName(r):void 0];return t.isSelectedTime(r)&&s.push("react-datepicker__time-list-item--selected"),t.isDisabledTime(r)&&s.push("react-datepicker__time-list-item--disabled"),t.props.injectTimes&&(zn(r)*3600+Wn(r)*60+Ja(r))%(((i=t.props.intervals)!==null&&i!==void 0?i:e.defaultProps.intervals)*60)!==0&&s.push("react-datepicker__time-list-item--injected"),s.join(" ")},t.handleOnKeyDown=function(r,i){var s,a;
107r.key===oe.Space&&(r.preventDefault(),r.key=oe.Enter),(r.key===oe.ArrowUp||r.key===oe.ArrowLeft)&&r.target instanceof HTMLElement&&r.target.previousSibling&&(r.preventDefault(),r.target.previousSibling instanceof HTMLElement&&r.target.previousSibling.focus()),(r.key===oe.ArrowDown||r.key===oe.ArrowRight)&&r.target instanceof HTMLElement&&r.target.nextSibling&&(r.preventDefault(),r.target.nextSibling instanceof HTMLElement&&r.target.nextSibling.focus()),r.key===oe.Enter&&t.handleClick(i),(a=(s=t.props).handleOnKeyDown)===null||a===void 0||a.call(s,r)},t.renderTimes=function(){for(var r,i=[],s=typeof t.props.format=="string"?t.props.format:"p",a=(r=t.props.intervals)!==null&&r!==void 0?r:e.defaultProps.intervals,o=zo(t.props.selected)||zo(t.props.openToDate)||nt(),l=yd(o),u=t.props.injectTimes&&t.props.injectTimes.sort(function(x,_){return x.getTime()-_.getTime()}),h=60*OJ(o),f=h/a,m=0;m<f;m++){var g=wf(l,m*a);if(i.push(g),u){var y=TJ(l,g,m,a,u);i=i.concat(y)}}var v=i.reduce(function(x,_){return _.getTime()<=o.getTime()?_:x},i[0]);return i.map(function(x){return H.createElement("li",{key:x.valueOf(),onClick:t.handleClick.bind(t,x),className:t.liClasses(x),ref:function(_){x===v&&(t.centerLi=_)},onKeyDown:function(_){t.handleOnKeyDown(_,x)},tabIndex:x===v?0:-1,role:"option","aria-selected":t.isSelectedTime(x)?"true":void 0,"aria-disabled":t.isDisabledTime(x)?"true":void 0},At(x,s,t.props.locale))})},t.renderTimeCaption=function(){return t.props.showTimeCaption===!1?H.createElement(H.Fragment,null):H.createElement("div",{className:"react-datepicker__header react-datepicker__header--time ".concat(t.props.showTimeSelectOnly?"react-datepicker__header--time--only":""),ref:function(r){t.header=r}},H.createElement("div",{className:"react-datepicker-time__header"},t.props.timeCaption))},t}return Object.defineProperty(e,"defaultProps",{get:function(){return{intervals:30,todayButton:null,timeCaption:"Time",showTimeCaption:!0}},enumerable:!1,configurable:!0}),e.prototype.componentDidMount=function(){this.scrollToTheSelectedTime(),this.observeDatePickerHeight
107Changes()},e.prototype.componentWillUnmount=function(){var t;(t=this.resizeObserver)===null||t===void 0||t.disconnect()},e.prototype.observeDatePickerHeightChanges=function(){var t=this,r=this.props.monthRef;this.updateContainerHeight(),r&&(this.resizeObserver=new ResizeObserver(function(){t.updateContainerHeight()}),this.resizeObserver.observe(r))},e.prototype.updateContainerHeight=function(){if(this.props.monthRef&&this.header){var t=this.props.monthRef.clientHeight-this.header.clientHeight;this.state.height!==t&&this.setState({height:t})}},e.prototype.render=function(){var t=this,r,i=this.state.height;return H.createElement("div",{className:"react-datepicker__time-container ".concat(((r=this.props.todayButton)!==null&&r!==void 0?r:e.defaultProps.todayButton)?"react-datepicker__time-container--with-today-button":"")},this.renderTimeCaption(),H.createElement("div",{className:"react-datepicker__time"},H.createElement("div",{className:"react-datepicker__time-box"},H.createElement("ul",{className:"react-datepicker__time-list",ref:function(s){t.list=s},style:i?{height:i}:{},role:"listbox","aria-label":this.props.timeCaption},this.renderTimes()))))},e.calcCenterPosition=function(t,r){return r.offsetTop-(t/2-r.clientHeight/2)},e}(E.Component),oM=3,HJ=function(n){Fn(e,n);function e(t){var r=n.call(this,t)||this;return r.YEAR_REFS=ls([],Array(r.props.yearItemNumber),!0).map(function(){return E.createRef()}),r.isDisabled=function(i){return ai(i,{minDate:r.props.minDate,maxDate:r.props.maxDate,excludeDates:r.props.excludeDates,includeDates:r.props.includeDates,filterDate:r.props.filterDate})},r.isExcluded=function(i){return x1(i,{excludeDates:r.props.excludeDates})},r.selectingDate=function(){var i;return(i=r.props.selectingDate)!==null&&i!==void 0?i:r.props.preSelection},r.updateFocusOnPaginate=function(i){var s=function(){var a,o;(o=(a=r.YEAR_REFS[i])===null||a===void 0?void 0:a.current)===null||o===void 0||o.focus()};window.requestAnimationFrame(s)},r.handleYearClick=function(i,s){r.props.onDayClick&&r.props.onDayClick(i,s)},r.handleYearNavigation=function(i,s){var a,o,l,u,h=r.props,f=h.date,m=h.yearItemNumber;if(!(f===void 0||m===void 0)){var g=zs(f,m).startPeriod;r.isDisabled(s)||r.isExcluded(s)||((o=(a=r.props).setPreSelection)===null||o===void 0||o.call(a,s),i-g<0?r.updateFocusOnPaginate(m-(g-i)):i-g>=m?r.updateFocusOnPaginate(Math.abs(m-(i-g))):(u=(l=r.YEAR_REFS[i-g])===null||l===void 0?void 0:l.current)===null||u===void 0||u.focus())}},r.isSameDay=function(i,s){return Ke(i,s)},r.isCurrentYear=function(i){return i===Xe(nt())},r.isRangeStart=function(i){return r.props.startDate&&r.props.endDate&&Zi(Qi(nt(),i),r.props.startDate)},r.isRangeEnd=function(i){return r.props.startDate&&r.props.endDate&&Zi(Qi(nt(),i),r.props.endDate)},r.isInRange=function(i){return Mp(i,r.props.startDate,r.props.endDate)},r.isInSelectingRange=function(i){var s=r.props,a=s.selectsStart,o=s.selectsEnd,l=s.selectsRange,u=s.startDate,h=s.endDate;return!(a||o||l)||!r.selectingDate()?!1:a&&h?Mp(i,r.selectingDate(),h):o&&u||l&&u&&!h?Mp(i,u,r.selectingDate()):!1},r.isSelectingRangeStart=function(i){var s;if(!r.isInSelectingRange(i))return!1;var a=r.props,o=a.startDate,l=a.selectsStart,u=Qi(nt(),i);return l?Zi(u,(s=r.selectingDate())!==null&&s!==void 0?s:null):Zi(u,o??null)},r.isSelectingRangeEnd=function(i){var s;if(!r.isInSelectingRange(i))return!1;var a=r.props,o=a.endDate,l=a.selectsEnd,u=a.selectsRange,h=Qi(nt(),i);return l||u?Zi(h,(s=r.selectingDate())!==null&&s!==void 0?s:null):Zi(h,o??null)},r.isKeyboardSelected=function(i){if(!(r.props.disabledKeyboardNavigation||r.props.date===void 0||r.props.preSelection==null)){var s=r.props,a=s.minDate,o=s.maxDate,l=s.excludeDates,u=s.includeDates,h=s.filterDate,f=s.selected,m=_d(Qi(r.props.date,i)),g=(a||o||l||u||h)&&fg(i,r.props),y=!!f&&Ke(m,_d(f)),v=Ke(m,_d(r.props.preSelection));return!r.props.inline&&!y&&v&&!g}},r.isSelectedYear=function(i){var s=r.props,a=s.selectsMultiple,o=s.selected,l=s.selectedDates;return a?l==null?void 0:l.some(function(u){return i===Xe(u)}
107):!!o&&i===Xe(o)},r.onYearClick=function(i,s){var a=r.props.date;a!==void 0&&r.handleYearClick(_d(Qi(a,s)),i)},r.onYearKeyDown=function(i,s){var a,o,l=i.key,u=r.props,h=u.date,f=u.yearItemNumber,m=u.handleOnKeyDown;if(l!==oe.Tab&&i.preventDefault(),!r.props.disabledKeyboardNavigation)switch(l){case oe.Enter:if(r.props.selected==null)break;r.onYearClick(i,s),(o=(a=r.props).setPreSelection)===null||o===void 0||o.call(a,r.props.selected);break;case oe.ArrowRight:if(r.props.preSelection==null)break;r.handleYearNavigation(s+1,Ni(r.props.preSelection,1));break;case oe.ArrowLeft:if(r.props.preSelection==null)break;r.handleYearNavigation(s-1,lo(r.props.preSelection,1));break;case oe.ArrowUp:{if(h===void 0||f===void 0||r.props.preSelection==null)break;var g=zs(h,f).startPeriod,y=oM,v=s-y;if(v<g){var x=f%y;s>=g&&s<g+x?y=x:y+=x,v=s-y}r.handleYearNavigation(v,lo(r.props.preSelection,y));break}case oe.ArrowDown:{if(h===void 0||f===void 0||r.props.preSelection==null)break;var _=zs(h,f).endPeriod,y=oM,v=s+y;if(v>_){var x=f%y;s<=_&&s>_-x?y=x:y+=x,v=s+y}r.handleYearNavigation(v,Ni(r.props.preSelection,y));break}}m&&m(i)},r.getYearClassNames=function(i){var s=r.props,a=s.date,o=s.disabled,l=s.minDate,u=s.maxDate,h=s.excludeDates,f=s.includeDates,m=s.filterDate,g=s.yearClassName;return bn("react-datepicker__year-text","react-datepicker__year-".concat(i),a?g==null?void 0:g(Qi(a,i)):void 0,{"react-datepicker__year-text--selected":r.isSelectedYear(i),"react-datepicker__year-text--disabled":(l||u||h||f||m||o)&&fg(i,r.props),"react-datepicker__year-text--keyboard-selected":r.isKeyboardSelected(i),"react-datepicker__year-text--range-start":r.isRangeStart(i),"react-datepicker__year-text--range-end":r.isRangeEnd(i),"react-datepicker__year-text--in-range":r.isInRange(i),"react-datepicker__year-text--in-selecting-range":r.isInSelectingRange(i),"react-datepicker__year-text--selecting-range-start":r.isSelectingRangeStart(i),"react-datepicker__year-text--selecting-range-end":r.isSelectingRangeEnd(i),"react-datepicker__year-text--today":r.
107isCurrentYear(i)})},r.getYearTabIndex=function(i){if(r.props.disabledKeyboardNavigation||r.props.preSelection==null)return"-1";var s=Xe(r.props.preSelection),a=fg(i,r.props);return i===s&&!a?"0":"-1"},r.getYearContent=function(i){return r.props.renderYearContent?r.props.renderYearContent(i):i},r}return e.prototype.render=function(){var t=this,r=[],i=this.props,s=i.date,a=i.yearItemNumber,o=i.onYearMouseEnter,l=i.onYearMouseLeave;if(s===void 0)return null;for(var u=zs(s,a),h=u.startPeriod,f=u.endPeriod,m=function(v){r.push(H.createElement("div",{ref:g.YEAR_REFS[v-h],onClick:function(x){t.onYearClick(x,v)},onKeyDown:function(x){C2(x)&&(x.preventDefault(),x.key=oe.Enter),t.onYearKeyDown(x,v)},tabIndex:Number(g.getYearTabIndex(v)),className:g.getYearClassNames(v),onMouseEnter:g.props.usePointerEvent?void 0:function(x){return o(x,v)},onPointerEnter:g.props.usePointerEvent?function(x){return o(x,v)}:void 0,onMouseLeave:g.props.usePointerEvent?void 0:function(x){return l(x,v)},onPointerLeave:g.props.usePointerEvent?function(x){return l(x,v)}:void 0,key:v,"aria-current":g.isCurrentYear(v)?"date":void 0},g.getYearContent(v)))},g=this,y=h;y<=f;y++)m(y);return H.createElement("div",{className:"react-datepicker__year"},H.createElement("div",{className:"react-datepicker__year-wrapper",onMouseLeave:this.props.usePointerEvent?void 0:this.props.clearSelectingDate,onPointerLeave:this.props.usePointerEvent?this.props.clearSelectingDate:void 0},r))},e}(E.Component);function zJ(n,e,t,r){for(var i=[],s=0;s<2*e+1;s++){var a=n+e-s,o=!0;t&&(o=Xe(t)<=a),r&&o&&(o=Xe(r)>=a),o&&i.push(a)}return i}var WJ=function(n){Fn(e,n);function e(t){var r=n.call(this,t)||this;r.yearOptionButtonsRef={},r.handleOptionKeyDown=function(o,l){var u;switch(l.key){case"Enter":l.preventDefault(),r.onChange(o);break;case"Escape":l.preventDefault(),r.props.onCancel();break;case"ArrowUp":case"ArrowDown":{l.preventDefault();var h=o+(l.key==="ArrowUp"?1:-1);r.yearOptionButtonsRef[h]&&((u=r.yearOptionButtonsRef[h])===null||u===void 0||u.focus());break}}},r.renderOptions=function(){r.yearOptionButtonsRef={};var o=r.props.year,l=r.state.yearsList.map(function(f){return H.createElement("div",{ref:function(m){r.yearOptionButtonsRef[f]=m,f===o&&(m==null||m.focus())},role:"button",tabIndex:0,className:o===f?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:f,onClick:r.onChange.bind(r,f),onKeyDown:r.handleOptionKeyDown.bind(r,f),"aria-selected":o===f?"true":void 0},o===f?H.createElement("span",{className:"react-datepicker__year-option--selected"},"â"):"",f)}),u=r.props.minDate?Xe(r.props.minDate):null,h=r.props.maxDate?Xe(r.props.maxDate):null;return(!h||!r.state.yearsList.find(function(f){return f===h}))&&l.unshift(H.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:r.incrementYears},H.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),(!u||!r.state.yearsList.find(function(f){return f===u}))&&l.push(H.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:r.decrementYears},H.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),l},r.onChange=function(o){r.props.onChange(o)},r.handleClickOutside=function(){r.props.onCancel()},r.shiftYears=function(o){var l=r.state.yearsList.map(function(u){return u+o});r.setState({yearsList:l})},r.incrementYears=function(){return r.shiftYears(1)},r.decrementYears=function(){return r.shiftYears(-1)};var i=t.yearDropdownItemNumber,s=t.scrollableYearDropdown,a=i||(s?10:5);return r.state={yearsList:zJ(r.props.year,a,r.props.minDate,r.props.maxDate)},r.dropdownRef=E.createRef(),r}return e.prototype.componentDidMount=function(){var t=this.dropdownRef.current;if(t){var r=t.children?Array.from(t.children):null,i=r?r.find(function(s){return s.ariaSelected}):null;t.scrollTop=i&&i instanceof HTMLElement?i.offsetTop+(i.clientHeight-t.clientHeight)/2:(t.scrollHeight-t.clientHeight)/2}},e.prototype.render=function(){var t=bn({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return H.createElement(vv,{className:t,containerRef:this.dropdownRef,onClickOutside:this.handleClickOutside},this.renderOptions())},e}(E.Component),UJ=function(n){Fn(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.state={dropdownVisible:!1},t.renderSelectOptions=function(){for(var r=t.props.minDate?Xe(t.props.minDate):1900,i=t.props.maxDate?Xe(t.props.maxDate):2100,s=[],a=r;a<=i;a++)s.push(H.createElement("option",{key:a,value:a},a));return s},t.onSelectChange=function(r){t.onChange(parseInt(r.target.value))},t.renderSelectMode=function(){return H.createElement("select",{value:t.props.year,className:"react-datepicker__year-select",onChange:t.onSelectChange},t.renderSelectOptions())},t.renderReadView=function(r){return H.createElement("button",{key:"read",type:"button",style:{visibility:r?"visible":"hidden"},className:"react-datepicker__year-read-view",onClick:t.toggleDropdown},H.createElement("span",{className:"react-datepicker__year-read-view--down-arrow"}),H.createElement("span",{className:"react-datepicker__year-read-view--selected-year"},t.props.year))},t.renderDropdown=function(){return H.createElement(WJ,Ue({key:"dropdown"},t.props,{onChange:t.onChange,onCancel:t.toggleDropdown}))},t.renderScrollMode=function(){var r=t.state.dropdownVisible,i=[t.renderReadView(!r)];return r&&i.unshift(t.renderDropdown()),i},t.onChange=function(r){t.toggleDropdown(),r!==t.props.year&&t.props.onChange(r)},t.toggleDropdown=function(r){t.setState({dropdownVisible:!t.state.dropdownVisible},function(){t.props.adjustDateOnChange&&t.handleYearChange(t.props.date,r)}
107)},t.handleYearChange=function(r,i){var s;(s=t.onSelect)===null||s===void 0||s.call(t,r,i),t.setOpen()},t.onSelect=function(r,i){var s,a;(a=(s=t.props).onSelect)===null||a===void 0||a.call(s,r,i)},t.setOpen=function(){var r,i;(i=(r=t.props).setOpen)===null||i===void 0||i.call(r,!0)},t}return e.prototype.render=function(){var t;switch(this.props.dropdownMode){case"scroll":t=this.renderScrollMode();break;case"select":t=this.renderSelectMode();break}return H.createElement("div",{className:"react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode)},t)},e}(E.Component),GJ=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],E2="react-datepicker-ignore-onclickoutside",XJ=function(n){var e=(n.className||"").split(/\s+/);return GJ.some(function(t){return e.indexOf(t)>=0})},qJ=function(n){Fn(e,n);function e(t){var r=n.call(this,t)||this;return r.monthContainer=void 0,r.handleClickOutside=function(i){r.props.onClickOutside(i)},r.setClickOutsideRef=function(){return r.containerRef.current},r.handleDropdownFocus=function(i){var s,a;XJ(i.target)&&((a=(s=r.props).onDropdownFocus)===null||a===void 0||a.call(s,i))},r.getDateInView=function(){var i=r.props,s=i.preSelection,a=i.selected,o=i.openToDate,l=D2(r.props),u=k2(r.props),h=nt(),f=o||a||s;return f||(l&&os(h,l)?l:u&&Ks(h,u)?u:h)},r.increaseMonth=function(){r.setState(function(i){var s=i.date;return{date:Yi(s,1)}},function(){return r.handleMonthChange(r.state.date)})},r.decreaseMonth=function(){r.setState(function(i){var s=i.date;return{date:Zo(s,1)}},function(){return r.handleMonthChange(r.state.date)})},r.handleDayClick=function(i,s,a){r.props.onSelect(i,s,a),r.props.setPreSelection&&r.props.setPreSelection(i)},r.handleDayMouseEnter=function(i){r.setState({selectingDate:i}),r.props.onDayMouseEnter&&r.props.onDayMouseEnter(i)},r.handleMonthMouseLeave=function(){r.setState({selectingDate:void 0}),r.props.onMonthMouseLeave&&r.props.onMonthMouseLeave()},r.handleYearMouseEnter=function(i,s){r.setState({selectingDate:Qi(nt(),s)}),r.props.onYearMouseEnter&&r.props.onYearMouseEnter(i,s)},r.handleYearMouseLeave=function(i,s){r.props.onYearMouseLeave&&r.props.onYearMouseLeave(i,s)},r.handleYearChange=function(i){var s,a,o,l;(a=(s=r.props).onYearChange)===null||a===void 0||a.call(s,i),r.setState({isRenderAriaLiveMessage:!0}),r.props.adjustDateOnChange&&(r.props.onSelect(i),(l=(o=r.props).setOpen)===null||l===void 0||l.call(o,!0)),r.props.setPreSelection&&r.props.setPreSelection(i)},r.getEnabledPreSelectionDateForMonth=function(i){if(!ai(i,r.props))return i;for(var s=Qs(i),a=vJ(i),o=Aq(a,s),l=null,u=0;u<=o;u++){var h=Ii(s,u);if(!ai(h,r.props)){l=h;break}}return l},r.handleMonthChange=function(i){var s,a,o,l=(s=r.getEnabledPreSelectionDateForMonth(i))!==null&&s!==void 0?s:i;r.handleCustomMonthChange(l),r.props.adjustDateOnChange&&(r.props.onSelect(l),(o=(a=r.props).setOpen)===null||o===void 0||o.call(a,!0)),r.props.setPreSelection&&r.props.setPreSelection(l)},r.handleCustomMonthChange=function(i){var s,a;(a=(s=r.props).onMonthChange)===null||a===void 0||a.call(s,i),r.setState({isRenderAriaLiveMessage:!0})},r.handleMonthYearChange=function(i){r.handleYearChange(i),r.handleMonthChange(i)},r.changeYear=function(i){r.setState(function(s){var a=s.date;return{date:Qi(a,Number(i))}},function(){return r.handleYearChange(r.state.date)})},r.changeMonth=function(i){r.setState(function(s){var a=s.date;return{date:Ar(a,Number(i))}},function(){var s,a;r.handleMonthChange(r.state.date),(a=(s=r.props).onMonthSelectedInChange)===null||a===void 0||a.call(s,0)})},r.changeMonthYear=function(i){r.setState(function(s){var a=s.date;return{date:Qi(Ar(a,mr(i)),Xe(i))}},function(){return r.handleMonthYearChange(r.state.date)})},r.header=function(i,s){if(i===void 0&&(i=r.state.date),s===void 0&&(s=0),!hr(i))return[];var a=r.props.disabled,o=eo(i,r.props.locale,r.props.calendarStartDay),l=[];return r.props.showWeekNumbers&&l.push(H.createElement("div",{key:"W",className:"react-datepicker__day-name ".concat(a?"react-datepicker__day-name--disabled":""),role:"columnheader"},H.createElement("span",{className:"react-datepicker__sr-only"},"Week number"),H.createElement("span",{"aria-hidden":"true"},r.props.weekLabel||"#"))),l.concat([0,1,2,3,4,5,6].map(function(u){var h=Ii(o,u),f=r.formatWeekday(h,r.props.locale),m=At(h,"EEEE",r.props.locale),g=r.props.weekDayClassName?r.props.weekDayClassName(h):void 0;if(r.props.renderCustomDayName){var y=r.props.renderCustomDayName({day:h,shortName:f,fullName:m,locale:r.props.locale,customDayNameCount:s});return H.createElement("div",{key:u,role:"columnheader",className:bn("react-datepicker__day-name",g,a?"react-datepicker__day-name--disabled":"")},y)}return H.createElement("div",{key:u,role:"columnheader",className:bn("react-datepicker__day-name",g,a?"react-datepicker__day-name--disabled":"")},H.createElement("span",{className:"react-datepicker__sr-only"},m),H.createElement("span",{"aria-hidden":"true"},f))}))},r.formatWeekday=function(i,s){return r.props.formatWeekDay?yJ(i,r.props.formatWeekDay,s):r.props.useWeekdaysShort?xJ(i,s):_J(i,s)},r.decreaseYear=function(){r.setState(function(i){var s,a=i.date;return{date:lo(a,r.props.showYearPicker?(s=r.props.yearItemNumber)!==null&&s!==void 0?s:e.defaultProps.yearItemNumber:1)}},function(){return r.handleYearChange(r.state.date)})},r.clearSelectingDate=function(){r.setState({selectingDate:void 0})},r.renderPreviousButton=function(){var i,s,a;if(!r.props.renderCustomHeader){var o=(i=r.props.monthsShown)!==null&&i!==void 0?i:e.defaultProps.monthsShown,l=r.props.showPreviousMonths?o-1:0,u=(s=r.props.monthSelectedIn)!==null&&s!==void 0?s:l,h=Zo(r.state.date,u),f;switch(!0){case r.props.disabled:f=!0;break;case r.props.showMonthYearPicker:f=JE(r.state.date,r.props);break;case r.props.showYearPicker:f=PJ(r.state.date,r.props);break;case r.props.showQuarterYearPicker:f=DJ(r.state.date,r.props);break;default:f=QE(h,r.props);break}if(!(!((a=r.props.forceShowMonthNavigation)!==null&&a!==void 0?a:e.defaultProps.forceShowMonthNavigation)&&!r.props.showDisabledMonthNavigation&&f||r.props.showTimeSelectOnly)){var m=["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"],g=["react-datepicker__navigation","react-datepicker__navigation--previous"],y=r.decreaseMonth;(r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker)&&(y=r.decreaseYear),f&&r.props.showDisabledMonthNavigation&&(g.push("react-datepicker__navigation--previous--disabled"),y=void 0);var v=r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker,x=r.props,_=x.previousMonthButtonLabel,S=_===void 0?e.defaultProps.previousMonthButtonLabel:_,w=x.previousYearButtonLabel,k=w===void 0?e.defaultProps.previousYearButtonLabel:w,P=r.props,j=P.previousMonthAriaLabel,A=j===void 0?typeof S=="string"?S:"Previous Month":j,M=P.previousYearAriaLabel,L=M===void 0?typeof k=="string"?k:"Previous Year":M;return H.createElement("button",{type:"button",className:g.join(" "),onClick:y,onKeyDown:r.props.handleOnKeyDown,"aria-label":v?L:A}
107,H.createElement("span",{className:m.join(" ")},v?k:S))}}},r.increaseYear=function(){r.setState(function(i){var s,a=i.date;return{date:Ni(a,r.props.showYearPicker?(s=r.props.yearItemNumber)!==null&&s!==void 0?s:e.defaultProps.yearItemNumber:1)}},function(){return r.handleYearChange(r.state.date)})},r.renderNextButton=function(){var i;if(!r.props.renderCustomHeader){var s;switch(!0){case r.props.disabled:s=!0;break;case r.props.showMonthYearPicker:s=eM(r.state.date,r.props);break;case r.props.showYearPicker:s=CJ(r.state.date,r.props);break;case r.props.showQuarterYearPicker:s=kJ(r.state.date,r.props);break;default:s=ZE(r.state.date,r.props);break}if(!(!((i=r.props.forceShowMonthNavigation)!==null&&i!==void 0?i:e.defaultProps.forceShowMonthNavigation)&&!r.props.showDisabledMonthNavigation&&s||r.props.showTimeSelectOnly)){var a=["react-datepicker__navigation","react-datepicker__navigation--next"],o=["react-datepicker__navigation-icon","react-datepicker__navigation-icon--next"];r.props.showTimeSelect&&a.push("react-datepicker__navigation--next--with-time"),r.props.todayButton&&a.push("react-datepicker__navigation--next--with-today-button");var l=r.increaseMonth;(r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker)&&(l=r.increaseYear),s&&r.props.showDisabledMonthNavigation&&(a.push("react-datepicker__navigation--next--disabled"),l=void 0);var u=r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker,h=r.props,f=h.nextMonthButtonLabel,m=f===void 0?e.defaultProps.nextMonthButtonLabel:f,g=h.nextYearButtonLabel,y=g===void 0?e.defaultProps.nextYearButtonLabel:g,v=r.props,x=v.nextMonthAriaLabel,_=x===void 0?typeof m=="string"?m:"Next Month":x,S=v.nextYearAriaLabel,w=S===void 0?typeof y=="string"?y:"Next Year":S;return H.createElement("button",{type:"button",className:a.join(" "),onClick:l,onKeyDown:r.props.handleOnKeyDown,"aria-label":u?w:_},H.createElement("span",{className:o.join(" ")},u?y:m))}}},r.renderCurrentMonth=function(i){i===void 0&&(i=r.state.date);var s=["react-datepicker__current-month"];return r.props.showYearDropdown&&s.push("react-datepicker__current-month--hasYearDropdown"),r.props.showMonthDropdown&&s.push("react-datepicker__current-month--hasMonthDropdown"),r.props.showMonthYearDropdown&&s.push("react-datepicker__current-month--hasMonthYearDropdown"),H.createElement("h2",{className:s.join(" ")},hr(i)?At(i,r.props.dateFormat,r.props.locale):"")},r.renderYearDropdown=function(i){if(i===void 0&&(i=!1),!(!r.props.showYearDropdown||i))return H.createElement(UJ,Ue({},e.defaultProps,r.props,{date:r.state.date,onChange:r.changeYear,year:Xe(r.state.date)}))},r.renderMonthDropdown=function(i){if(i===void 0&&(i=!1),!(!r.props.showMonthDropdown||i))return H.createElement(LJ,Ue({},e.defaultProps,r.props,{month:mr(r.state.date),onChange:r.changeMonth}))},r.renderMonthYearDropdown=function(i){if(i===void 0&&(i=!1),!(!r.props.showMonthYearDropdown||i))return H.createElement(VJ,Ue({},e.defaultProps,r.props,{date:r.state.date,onChange:r.changeMonthYear}))},r.handleTodayButtonClick=function(i){r.props.onSelect(UE(),i),r.props.setPreSelection&&r.props.setPreSelection(UE())},r.renderTodayButton=function(){if(!(!r.props.todayButton||r.props.showTimeSelectOnly))return H.createElement("div",{className:"react-datepicker__today-button",onClick:r.handleTodayButtonClick},r.props.todayButton)},r.renderDayNamesHeader=function(i,s){return s===void 0&&(s=0),H.createElement("div",{className:"react-datepicker__day-names",role:"row"},r.header(i,s))},r.renderDefaultHeader=function(i){var s=i.monthDate,a=i.i,o=H.createElement("div",{className:bn("react-datepicker__header",{"react-datepicker__header--has-time-select":r.props.showTimeSelect,"react-datepicker__header--middle":r.props.monthHeaderPosition==="middle","react-datepicker__header--bottom":r.props.monthHeaderPosition==="bottom"})},r.renderCurrentMonth(s),H.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(r.props.dropdownMode),onFocus:r.handleDropdownFocus},r.renderMonthDropdown(a!==0),r.renderMonthYearDropdown(a!==0),r.renderYearDropdown(a!==0)));return r.props.monthHeaderPosition==="top"?o:H.createElement("div",{className:"react-datepicker__header-wrapper"},r.renderPreviousButton()||null,r.renderNextButton()||null,o)},r.renderCustomHeader=function(i){var s,a,o=i.monthDate,l=i.i;if(r.props.showTimeSelect&&!r.state.monthContainer||r.props.showTimeSelectOnly)return null;var u=r.props,h=u.showYearPicker,f=u.yearItemNumber,m;if(h){var g=zs(o,f),y=g.startPeriod,v=g.endPeriod;m={startYear:y,endYear:v}}var x=QE(r.state.date,r.props),_=ZE(r.state.date,r.props),S=JE(r.state.date,r.props),w=eM(r.state.date,r.props);return H.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:r.props.onDropdownFocus},(a=(s=r.props).renderCustomHeader)===null||a===void 0?void 0:a.call(s,Ue(Ue(Ue({},r.state),h&&{visibleYearsRange:m}),{customHeaderCount:l,monthDate:o,changeMonth:r.changeMonth,changeYear:r.changeYear,decreaseMonth:r.decreaseMonth,increaseMonth:r.increaseMonth,decreaseYear:r.decreaseYear,increaseYear:r.increaseYear,prevMonthButtonDisabled:x,nextMonthButtonDisabled:_,prevYearButtonDisabled:S,nextYearButtonDisabled:w})))},r.renderYearHeader=function(i){var s=i.monthDate,a=r.props,o=a.showYearPicker,l=a.yearItemNumber,u=l===void 0?e.defaultProps.yearItemNumber:l,h=zs(s,u),f=h.startPeriod,m=h.endPeriod;return H.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},o?"".concat(f," - ").concat(m):Xe(s))},r.renderHeader=function(i){var s=i.monthDate,a=i.i,o=a===void 0?0:a,l={monthDate:s,i:o};switch(!0){case r.props.renderCustomHeader!==void 0:return r.renderCustomHeader(l);case(r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker):return r.renderYearHeader(l);default:return r.renderDefaultHeader(l)}},r.renderMonths=function(){var i,s;if(!(r.props.showTimeSelectOnly||r.props.showYearPicker)){for(var a=[],o=(i=r.props.monthsShown)!==null&&i!==void 0?i:e.defaultProps.monthsShown,l=r.props.showPreviousMonths?o-1:0,u=r.props.showMonthYearPicker||r.props.showQuarterYearPicker?Ni(r.state.date,l):Zo(r.state.date,l),h=(s=r.props.monthSelectedIn)!==null&&s!==void 0?s:l,f=0;f<o;++f){var m=f-h+l,g=r.props.showMonthYearPicker||r.props.showQuarterYearPicker?Ni(u,m):Yi(u,m),y="month-".concat(f),v=f<o-1,x=f>0;a.push(H.createElement("div",{key:y,ref:function(_){r.monthContainer=_??void 0},className:"react-datepicker__month-container"},r.props.monthHeaderPosition==="top"&&r.renderHeader({monthDate:g,i:f}),H.createElement(NJ,Ue({},e.defaultProps,r.props,{containerRef:r.containerRef,ariaLabelPrefix:r.props.monthAriaLabelPrefix,day:g,onDayClick:r.handleDayClick,handleOnKeyDown:r.props.handleOnDayKeyDown,handleOnMonthKeyDown:r.props.handleOnKeyDown,onDayMouseEnter:r.handleDayMouseEnter,onMouseLeave:r.handleMonthMouseLeave,orderInDisplay:f,selectingDate:r.state.selectingDate,monthShowsDuplicateDaysEnd:v,monthShowsDuplicateDaysStart:x,dayNamesHeader:r.renderDayNamesHeader(g,f),monthHeader:r.props.monthHeaderPosition==="middle"?r.renderHeader({monthDate:g,i:f}):void 0,monthFooter:r.props.monthHeaderPosition==="bottom"?r.renderHeader({monthDate:g,i:f}):void 0}))))}return a}},r.renderYears=function(){if(!r.props.showTimeSelectOnly&&r.props.showYearPicker)return H.createElement("div",{className:"react-datepicker__year--container"},r.renderHeader({monthDate:r.state.date}),H.createElement(HJ,Ue({},e.defaultProps,r.props,{selectingDate:r.state.selectingDate,date:r.state.date,onDayClick:r.handleDayClick,clearSelectingDate:r.clearSelectingDate,onYearMouseEnter:r.handleYearMouseEnter,onYearMouseLeave:r.handleYearMouseLeave})))},r.renderTimeSection=function(){if(r.props.showTimeSelect&&(r.state.monthContainer||r.props.showTimeSelectOnly))return H.createElement(YJ,Ue({},e.defaultProps,r.props,{onChange:r.props.onTimeChange,format:r.props.timeFormat,intervals:r.props.timeIntervals,monthRef:r.state.monthContainer}))},r.renderInputTimeSection=function(){var i,s;if(r.props.showTimeInput){if(r.props.selectsRange){var a=r.props,o=a.startDate,l=a.endDate,u=o?new Date(o):void 0,h=u&&hr(u)&&!!o,f=h?"".concat(ru(u.getHours()),":").concat(ru(u.getMinutes())):"",m=l?new Date(l):void 0,g=m&&hr(m)&&!!l,y=g?"".concat(ru(m.getHours()),":").concat(ru(m.getMinutes())):"";return H.createElement(H.Fragment,null,H.createElement(f_,Ue({}
107,e.defaultProps,r.props,{date:u,timeString:f,onChange:function(S){var w,k;(k=(w=r.props).onTimeChange)===null||k===void 0||k.call(w,S,"start")},timeInputLabel:((i=r.props.timeInputLabel)!==null&&i!==void 0?i:"Time")+" (Start)"})),H.createElement(f_,Ue({},e.defaultProps,r.props,{date:m,timeString:y,onChange:function(S){var w,k;(k=(w=r.props).onTimeChange)===null||k===void 0||k.call(w,S,"end")},timeInputLabel:((s=r.props.timeInputLabel)!==null&&s!==void 0?s:"Time")+" (End)"})))}var v=r.props.selected?new Date(r.props.selected):void 0,x=v&&hr(v)&&!!r.props.selected,_=x?"".concat(ru(v.getHours()),":").concat(ru(v.getMinutes())):"";return H.createElement(f_,Ue({},e.defaultProps,r.props,{date:v,timeString:_,onChange:function(S){var w,k;(k=(w=r.props).onTimeChange)===null||k===void 0||k.call(w,S)}}))}},r.renderAriaLiveRegion=function(){var i;if(!hr(r.state.date))return H.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"});var s=zs(r.state.date,(i=r.props.yearItemNumber)!==null&&i!==void 0?i:e.defaultProps.yearItemNumber),a=s.startPeriod,o=s.endPeriod,l;return r.props.showYearPicker?l="".concat(a," - ").concat(o):r.props.showMonthYearPicker||r.props.showQuarterYearPicker?l=Xe(r.state.date):l="".concat(_1(mr(r.state.date),r.props.locale)," ").concat(Xe(r.state.date)),H.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},r.state.isRenderAriaLiveMessage&&l)},r.renderChildren=function(){if(r.props.children)return H.createElement("div",{className:"react-datepicker__children-container"},r.props.children)},r.containerRef=E.createRef(),r.state={date:r.getDateInView(),selectingDate:void 0,monthContainer:void 0,isRenderAriaLiveMessage:!1},r}return Object.defineProperty(e,"defaultProps",{get:function(){return{monthsShown:1,forceShowMonthNavigation:!1,outsideClickIgnoreClass:E2,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",yearItemNumber:Qf,monthHeaderPosition:"top"}},enumerable:!1,configurable:!0}),e.prototype.componentDidMount=function(){var t=this;this.props.showTimeSelect&&(this.assignMonthContainer=function(){t.setState({monthContainer:t.monthContainer})}())},e.prototype.componentDidUpdate=function(t){var r=this;if(this.props.preSelection&&hr(this.props.preSelection)&&(!Ke(this.props.preSelection,t.preSelection)||this.props.monthSelectedIn!==t.monthSelectedIn)){var i=!Zn(this.state.date,this.props.preSelection);this.setState({date:this.props.preSelection},function(){return i&&r.handleCustomMonthChange(r.state.date)})}else this.props.openToDate&&!Ke(this.props.openToDate,t.openToDate)&&this.setState({date:this.props.openToDate})},e.prototype.render=function(){var t=this.props.container||uJ;return H.createElement(vv,{onClickOutside:this.handleClickOutside,style:{display:"contents"},ignoreClass:this.props.outsideClickIgnoreClass},H.createElement("div",{style:{display:"contents"},ref:this.containerRef},H.createElement(t,{className:bn("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showTime:this.props.showTimeSelect||this.props.showTimeInput,showTimeSelectOnly:this.props.showTimeSelectOnly,inline:this.props.inline},this.renderAriaLiveRegion(),this.props.monthHeaderPosition==="top"&&this.renderPreviousButton(),this.props.monthHeaderPosition==="top"&&this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.renderChildren())))},e}(E.Component),KJ=function(n){var e=n.icon,t=n.className,r=t===void 0?"":t,i=n.onClick,s="react-datepicker__calendar-icon";if(typeof e=="string")return H.createElement("i",{className:"".concat(s," ").concat(e," ").concat(r),"aria-hidden":"true",onClick:i});if(H.isValidElement(e)){var a=e;return H.cloneElement(a,{className:"".concat(a.props.className||""," ").concat(s," ").concat(r),onClick:function(o){typeof a.props.onClick=="function"&&a.props.onClick(o),typeof i=="function"&&i(o)}})}return H.createElement("svg",{className:"".concat(s," ").concat(r),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",onClick:i},H.createElement("path",{d:"M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 9
1076 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z"}))},M2=function(n){Fn(e,n);function e(t){var r=n.call(this,t)||this;return r.portalRoot=null,r.el=document.createElement("div"),r}return e.prototype.componentDidMount=function(){this.portalRoot=(this.props.portalHost||document).getElementById(this.props.portalId),this.portalRoot||(this.portalRoot=document.createElement("div"),this.portalRoot.setAttribute("id",this.props.portalId),(this.props.portalHost||document.body).appendChild(this.portalRoot)),this.portalRoot.appendChild(this.el)},e.prototype.componentWillUnmount=function(){this.portalRoot&&this.portalRoot.removeChild(this.el)},e.prototype.render=function(){return mH.createPortal(this.props.children,this.el)},e}(E.Component),QJ="[tabindex], a, button, input, select, textarea",ZJ=function(n){return(n instanceof HTMLAnchorElement||!n.disabled)&&n.tabIndex!==-1},T2=function(n){Fn(e,n);function e(t){var r=n.call(this,t)||this;return r.getTabChildren=function(){var i;return Array.prototype.slice.call((i=r.tabLoopRef.current)===null||i===void 0?void 0:i.querySelectorAll(QJ),1,-1).filter(ZJ)},r.handleFocusStart=function(){var i=r.getTabChildren();i&&i.length>1&&i[i.length-1].focus()},r.handleFocusEnd=function(){var i=r.getTabChildren();i&&i.length>1&&i[0].focus()},r.tabLoopRef=E.createRef(),r}return e.prototype.render=function(){var t;return((t=this.props.enableTabLoop)!==null&&t!==void 0?t:e.defaultProps.enableTabLoop)?H.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},H.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:0,onFocus:this.handleFocusStart}),this.props.children,H.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:0,onFocus:this.handleFocusEnd})):this.props.children},e.defaultProps={enableTabLoop:!0},e}(E.Component);function JJ(n){function e(t){var r,i=typeof t.hidePopper=="boolean"?t.hidePopper:!0,s=E.useRef(null),a=lJ(Ue({open:!i,whileElementsMounted:v2,placement:t.popperPlacement,middleware:ls([qZ({padding:15}),XZ(10),KZ({element:s})],(r=t.popperModifiers)!==null&&r!==void 0?r:[],!0)},t.popperProps)),o=Ue(Ue({},t),{hidePopper:i,popperProps:Ue(Ue({},a),{arrowRef:s})});return H.createElement(n,Ue({},o))}return e.displayName="withFloating(".concat(n.displayName||n.name||"Component",")"),e}var eee=function(n){var e=n.className,t=n.wrapperClassName,r=n.hidePopper,i=r===void 0?!0:r,s=n.popperComponent,a=n.targetComponent,o=n.enableTabLoop,l=n.popperOnKeyDown,u=n.portalId,h=n.portalHost,f=n.popperProps,m=n.showArrow,g=n.popperTargetRef,y=n.monthHeaderPosition;E.useEffect(function(){g!=null&&g.current&&f.refs.setPositionReference(g.current)},[g,f.refs]);var v=void 0;if(!i){var x=bn("react-datepicker-popper",!m&&"react-datepicker-popper-offset",y==="middle"&&"react-datepicker-popper--header-middle",y==="bottom"&&"react-datepicker-popper--header-bottom",e);v=H.createElement(T2,{enableTabLoop:o},H.createElement("div",{ref:f.refs.setFloating,style:f.floatingStyles,className:x,"data-placement":f.placement,onKeyDown:l},s,m&&H.createElement(tJ,{ref:f.arrowRef,context:f.context,fill:"currentColor",strokeWidth:1,height:8,width:16,style:{transform:"translateY(-1px)"},className:"react-datepicker__triangle"})))}n.popperContainer&&(v=E.createElement(n.popperContainer,{},v)),u&&!i&&(v=H.createElement(M2,{portalId:u,portalHost:h},v));var _=bn("react-datepicker-wrapper",t);return H.createElement(H.Fragment,null,H.createElement("div",{ref:f.refs.setReference,className:_},a),v)},tee=JJ(eee);function lM(n,e){return n&&e?mr(n)!==mr(e)||Xe(n)!==Xe(e):n!==e}var p_="Date input not valid.",g_=function(n){Fn(e,n);function e(t){var r=n.call(this,t)||this;return r.calendar=null,r.input=null,r.getPreSelection=function(){var i=r.props.timeZone,s=r.props.openToDate?r.props.openToDate:r.props.selectsEnd&&r.props.startDate?r.props.startDate:r.props.selectsStart&&r.props.endDate?r.props.endDate:nt();return i?zE(s,i):s},r.modifyHolidays=function(){var i;return(i=r.props.holidays)===null||i===void 0?void 0:i.reduce(function(s,a){var o=Mo(a.date,"yyyy-MM-dd",void 0,!1);return o?ls(ls([],s,!0),[Ue(Ue({},a),{date:o})],!1):s},[])},r.calcInitialState=function(){var i=r.props.timeZone,s=r.getPreSelection(),a=D2(r.props),o=k2(r.props),l=a&&os(s,yd(a))?a:o&&Ks(s,GE(o))?o:s,u=r.props.selectsRange?r.props.startDate:r.props.selected;return u&&i&&(u=zE(u,i)),{open:r.props.startOpen||!1,preventFocus:!1,inputValue:null,preSelection:u??l,highlightDates:tM(r.props.highlightDates),focused:!1,shouldFocusDayInline:!1,isRenderAriaLiveMessage:!1,wasHidden:!1}},r.getInputValue=function(){var i,s=r.props,a=s.locale,o=s.startDate,l=s.endDate,u=s.rangeSeparator,h=s.selected,f=s.selectedDates,m=s.selectsMultiple,g=s.selectsRange,y=s.formatMultipleDates,v=s.value,x=(i=r.props.dateFormat)!==null&&i!==void 0?i:e.defaultProps.dateFormat,_=r.state.inputValue;if(typeof v=="string")return v;if(typeof _=="string")return _;if(g)return fJ(o,l,{dateFormat:x,locale:a,rangeSeparator:u});if(m){if(y){var S=function(w){return cr(w,{dateFormat:x,locale:a})};return y(f??[],S)}return hJ(f??[],{dateFormat:x,locale:a})}return cr(h,{dateFormat:x,locale:a})},r.resetHiddenStatus=function(){r.setState(Ue(Ue({},r.state),{wasHidden:!1}))},r.setHiddenStatus=function(){r.setState(Ue(Ue({},r.state),{wasHidden:!0}))},r.setHiddenStateOnVisibilityHidden=function(){document.visibilityState==="hidden"&&r.setHiddenStatus()},r.clearPreventFocusTimeout=function(){r.preventFocusTimeout&&clearTimeout(r.preventFocusTimeout)},r.setFocus=function(){var i,s;(s=(i=r.input)===null||i===void 0?void 0:i.focus)===null||s===void 0||s.call(i,{preventScroll:!0})},r.setBlur=function(){var i,s;(s=(i=r.input)===null||i===void 0?void 0:i.blur)===null||s===void 0||s.call(i),r.cancelFocusInput()},r.deferBlur=function(){requestAnimationFrame(function(){r.setBlur()})},r.setOpen=function(i,s){s===void 0&&(s=!1),r.setState({open:i,preSelection:i&&r.state.open?r.state.preSelection:r.calcInitialState().preSelection,lastPreSelectChange:m_},function(){i||r.setState(function(a){return{focused:s?a.focused:!1}},function(){!s&&r.deferBlur(),r.setState({inputValue:null})})})},r.inputOk=function(){return ps(r.state.preSelection)},r.isCalendarOpen=function(){return r.props.open===void 0?r.state.open&&!r.props.disabled&&!r.props.readOnly:r.props.open},r.handleFocus=function(i){var s,a,o=r.state.wasHidden,l=o?r.state.open:!0;o&&r.resetHiddenStatus(),r.state.preventFocus||((a=(s=r.props).onFocus)===null||a===void 0||a.call(s,i),l&&!r.props.preventOpenOnFocus&&!r.props.readOnly&&r.setOpen(!0)),r.setState({focused:!0})},r.sendFocusBackToInput=function(){r.preventFocusTimeout&&r.clearPreventFocusTimeout(),r.setState({preventFocus:!0},function(){r.preventFocusTimeout=setTimeout(function(){r.setFocus(),r.setState({preventFocus:!1})})})}
107,r.cancelFocusInput=function(){clearTimeout(r.inputFocusTimeout),r.inputFocusTimeout=void 0},r.deferFocusInput=function(){r.cancelFocusInput(),r.inputFocusTimeout=setTimeout(function(){return r.setFocus()},1)},r.handleDropdownFocus=function(){r.cancelFocusInput()},r.resetInputValue=function(){r.setState(Ue(Ue({},r.state),{inputValue:null}))},r.handleBlur=function(i){var s,a;(!r.state.open||r.props.withPortal||r.props.showTimeInput)&&((a=(s=r.props).onBlur)===null||a===void 0||a.call(s,i));var o=r.state.inputValue;if(typeof o=="string"&&o.length>0){var l=/[a-zA-Z0-9]/.test(o);!l&&r.props.selected&&r.setSelected(null,void 0,!0)}r.resetInputValue(),r.state.open&&r.props.open===!1&&r.setOpen(!1),r.setState({focused:!1})},r.handleCalendarClickOutside=function(i){var s,a;(a=(s=r.props).onClickOutside)===null||a===void 0||a.call(s,i),!r.props.inline&&!i.defaultPrevented&&r.setOpen(!1),r.props.withPortal&&i.preventDefault()},r.handleChange=function(){for(var i,s,a,o,l,u,h,f,m=[],g=0;g<arguments.length;g++)m[g]=arguments[g];var y=m[0];if(!(r.props.onChangeRaw&&(r.props.onChangeRaw.apply(r,m),!y||typeof y.isDefaultPrevented!="function"||y.isDefaultPrevented()))){r.setState({inputValue:(y==null?void 0:y.target)instanceof HTMLInputElement?y.target.value:null,lastPreSelectChange:nee});var v=r.props,x=v.selectsRange,_=v.startDate,S=v.endDate,w=(i=r.props.dateFormat)!==null&&i!==void 0?i:e.defaultProps.dateFormat,k=(s=r.props.strictParsing)!==null&&s!==void 0?s:e.defaultProps.strictParsing,P=(y==null?void 0:y.target)instanceof HTMLInputElement?y.target.value:"";if(x){var j=r.props.rangeSeparator,A=j.trim(),M=P.split(w.includes(A)?j:A,2).map(function(F){return F.trim()}),L=M[0],I=M[1],V=Mo(L??"",w,r.props.locale,k),Q=V?Mo(I??"",w,r.props.locale,k):null,U=((a=zo(_))===null||a===void 0?void 0:a.getTime())!==(V==null?void 0:V.getTime()),X=((o=zo(S))===null||o===void 0?void 0:o.getTime())!==(Q==null?void 0:Q.getTime());if(!U&&!X||V&&ai(V,r.props)||Q&&ai(Q,r.props))return;V&&r.setState({preSelection:V}),(u=(l=r.props).onChange)===null||u===void 0||u.call(l,[V,Q],y)}else{var K=Mo(P,w,r.props.locale,k,(h=r.props.selected)!==null&&h!==void 0?h:void 0);if(K||!P)r.setSelected(K,y,!0);else if(!r.props.inline){var z=dJ(P,(f=r.state.preSelection)!==null&&f!==void 0?f:void 0);z&&(!r.props.minDate||!os(z,r.props.minDate))&&(!r.props.maxDate||!Ks(z,r.props.maxDate))&&r.setState({preSelection:z})}}}},r.handleSelect=function(i,s,a){var o;if(!r.props.readOnly){var l=r.props,u=l.selectsRange,h=l.startDate,f=l.endDate,m=l.locale,g=l.swapRange,y=(o=r.props.dateFormat)!==null&&o!==void 0?o:e.defaultProps.dateFormat,v=!u||h&&!f&&(g||!d_(i,h));if(r.props.shouldCloseOnSelect&&!r.props.showTimeSelect&&v&&r.sendFocusBackToInput(),r.props.onChangeRaw){var x=cr(i,{dateFormat:y,locale:m});r.props.onChangeRaw(s,{date:i,formattedDate:x})}r.setSelected(i,s,!1,a),r.props.showDateSelect&&r.setState({isRenderAriaLiveMessage:!0}),!r.props.shouldCloseOnSelect||r.props.showTimeSelect?r.setPreSelection(i):v&&r.setOpen(!1)}},r.setSelected=function(i,s,a,o){var l,u,h=r.props.timeZone,f=i;if(f&&h&&(f=Fs(f,h)),r.props.showYearPicker){if(f!==null&&fg(Xe(f),r.props))return}else if(r.props.showMonthYearPicker){if(f!==null&&S2(f,r.props))return}else if(f!==null&&ai(f,r.props))return;var m=r.props,g=m.onChange,y=m.selectsRange,v=m.startDate,x=m.endDate,_=m.selectsMultiple,S=m.selectedDates,w=m.minTime,k=m.swapRange;if(!Wo(r.props.selected,f)||r.props.allowSameDay||y||_)if(f!==null&&(r.props.selected&&(!a||!r.props.showTimeSelect&&!r.props.showTimeSelectOnly&&!r.props.showTimeInput)&&(f=Ls(f,{hour:zn(r.props.selected),minute:Wn(r.props.selected),second:Ja(r.props.selected)})),!a&&(r.props.showTimeSelect||r.props.showTimeSelectOnly)&&w&&(f=Ls(f,{hour:w.getHours(),minute:w.getMinutes(),second:w.getSeconds()})),r.props.inline||r.setState({preSelection:f}),r.props.focusSelectedMonth||r.setState({monthSelectedIn:o})),y){var P=g,j=!v&&!x,A=v&&!x,M=!v&&!!x,L=v&&x;j?P==null||P([f,null],s):A?f===null?P==null||P([null,null],s):d_(f,v)?k?P==null||P([f,v],s):P==null||P([f,null],s):P==null||P([v,f],s):M&&(f&&d_(f,x)?P==null||P([f,x],s):P==null||P([f,null],s)),L&&(P==null||P([f,null],s))}else if(_){var I=g;if(f!==null)if(!(S!=null&&S.length))I==null||I([f],s);else{var V=S.some(function(U){return Ke(U,f)});if(V){var Q=S.filter(function(U){return!Ke(U,f)});I==null||I(Q,s)}else I==null||I(ls(ls([],S,!0),[f],!1),s)}}else g==null||g(f,s);a||((u=(l=r.props).onSelect)===null||u===void 0||u.call(l,f,s),r.setState({inputValue:null}))},r.setPreSelection=function(i){if(!r.props.readOnly){var s=ps(r.props.minDate),a=ps(r.props.maxDate),o=!0;if(i){var l=yd(i);if(s&&a)o=No(i,r.props.minDate,r.props.maxDate);else if(s){var u=yd(r.props.minDate);o=Ks(i,u)||Wo(l,u)}else if(a){var h=GE(r.props.maxDate);o=os(i,h)||Wo(l,h)}}o&&r.setState({preSelection:i})}},r.toggleCalendar=function(){r.setOpen(!r.state.open)},r.handleTimeChange=function(i,s){var a,o;if(!r.props.selectsMultiple){var l=r.props,u=l.selectsRange,h=l.startDate,f=l.endDate,m=l.onChange,g=l.timeZone;if(u){var y=m;if(s==="start"){if(h){var v=Ls(h,{hour:zn(i),minute:Wn(i)});r.setState({preSelection:v}),g&&(v=Fs(v,g)),y==null||y([v,f?g?Fs(f,g):f:null],void 0)}}else if(s==="end"){if(f){var x=Ls(f,{hour:zn(i),minute:Wn(i)});r.setState({preSelection:x}),g&&(x=Fs(x,g)),y==null||y([h?g?Fs(h,g):h:null,x],void 0)}}else{var _=h&&!f;if(_){var v=Ls(h,{hour:zn(i),minute:Wn(i)});r.setState({preSelection:v}),g&&(v=Fs(v,g)),y==null||y([v,null],void 0)}else if(h&&f){var x=Ls(f,{hour:zn(i),minute:Wn(i)});r.setState({preSelection:x}),g&&(x=Fs(x,g)),y==null||y([g?Fs(h,g):h,x],void 0)}else{var S=Ls(r.getPreSelection(),{hour:zn(i),minute:Wn(i)});r.setState({preSelection:S})}}}else{var w=r.props.selected?r.props.selected:r.getPreSelection(),S=r.props.selected?i:Ls(w,{hour:zn(i),minute:Wn(i)});r.setState({preSelection:S}),S&&g&&(S=Fs(S,g)),(o=(a=r.props).onChange)===null||o===void 0||o.call(a,S)}r.props.shouldCloseOnSelect&&!r.props.showTimeInput&&(r.sendFocusBackToInput(),r.setOpen(!1)),r.props.showTimeInput&&r.setOpen(!0),(r.props.showTimeSelectOnly||r.props.showTimeSelect)&&r.setState({isRenderAriaLiveMessage:!0}),r.setState({inputValue:null})}},r.onInputClick=function(){var i,s;!r.props.disabled&&!r.props.readOnly&&r.setOpen(!0),(s=(i=r.props).onInputClick)===null||s===void 0||s.call(i)},r.handleTimeOnlyArrowKey=function(i){var s,a,o,l,u=zo(r.props.selected)||r.state.preSelection||nt(),h=(s=r.props.timeIntervals)!==null&&s!==void 0?s:30,f=(a=r.props.dateFormat)!==null&&a!==void 0?a:e.defaultProps.dateFormat,m=Array.isArray(f)?f[0]:f,g=yd(u),y=zn(u)*60+Wn(u),v=23*60+60-h,x;if(i===oe.ArrowUp){var _=Math.max(0,y-h);x=wf(g,_)}else{var _=Math.min(v,y+h);x=wf(g,_)}var S=At(x,m||e.defaultProps.dateFormat,r.props.locale);if(r.setState({preSelection:x,inputValue:S}),!(r.props.selectsRange||r.props.selectsMultiple)){var w=r.props.selected?r.props.selected:r.getPreSelection(),k=r.props.selected?x:Ls(w,{hour:zn(x),minute:Wn(x)});(l=(o=r.props).onChange)===null||l===void 0||l.call(o,k),(r.props.showTimeSelectOnly||r.props.showTimeSelect)&&r.setState({isRenderAriaLiveMessage:!0}),requestAnimationFrame(function(){r.scrollToTimeOption(x)})}},r.handleTimeOnlyEnterKey=function(i){var s,a,o,l,u=i.target,h=u.value,f=(s=r.props.dateFormat)!==null&&s!==void 0?s:e.defaultProps.dateFormat,m=r.props.timeFormat||"p",g=r.state.preSelection||zo(r.props.selected)||nt(),y=Mo(h,f,r.props.locale,(a=r.props.strictParsing)!==null&&a!==void 0?a:!1,g),v=g;if(y&&hr(y))v=y;else{var x=((o=r.calendar)===null||o===void 0?void 0:o.containerRef.current)instanceof Element&&r.calendar.containerRef.current.querySelector(".react-datepicker__time-list-item[tabindex='0']");
107if(x instanceof HTMLElement){var _=(l=x.textContent)===null||l===void 0?void 0:l.trim();if(_){var S=Mo(_,m,r.props.locale,!1,g);S&&hr(S)&&(v=S)}}}r.handleTimeChange(v),r.setOpen(!1),r.sendFocusBackToInput()},r.scrollToTimeOption=function(i){var s,a;if(!((s=r.calendar)===null||s===void 0)&&s.containerRef.current){for(var o=r.calendar.containerRef.current,l=Array.from(o.querySelectorAll(".react-datepicker__time-list-item")),u=null,h=1/0,f=r.props.timeFormat||"p",m=0,g=l;m<g.length;m++){var y=g[m],v=(a=y.textContent)===null||a===void 0?void 0:a.trim();if(v){var x=Mo(v,f,r.props.locale,!1,i);if(x&&hr(x)){if(P2(x,i)){u=y;break}var _=Math.abs(x.getTime()-i.getTime());_<h&&(h=_,u=y)}}}u&&(l.forEach(function(S){S.setAttribute("tabindex","-1")}),u.setAttribute("tabindex","0"),u.scrollIntoView({behavior:"smooth",block:"center"}))}},r.onInputKeyDown=function(i){var s,a,o,l,u,h;(a=(s=r.props).onKeyDown)===null||a===void 0||a.call(s,i);var f=i.key;if(!r.state.open&&!r.props.inline&&!r.props.preventOpenOnFocus){(f===oe.ArrowDown||f===oe.ArrowUp||f===oe.Enter)&&((o=r.onInputClick)===null||o===void 0||o.call(r));return}if(r.state.open&&r.props.showTimeSelectOnly){if(f===oe.ArrowDown||f===oe.ArrowUp){i.preventDefault(),r.handleTimeOnlyArrowKey(f);return}if(f===oe.Enter){i.preventDefault(),r.handleTimeOnlyEnterKey(i);return}}if(r.state.open){if(f===oe.ArrowDown||f===oe.ArrowUp){i.preventDefault();var m=r.props.showTimeSelectOnly?".react-datepicker__time-list-item[tabindex='0']":r.props.showWeekPicker&&r.props.showWeekNumbers?'.react-datepicker__week-number[tabindex="0"]':r.props.showFullMonthYearPicker||r.props.showMonthYearPicker?'.react-datepicker__month-text[tabindex="0"]':'.react-datepicker__day[tabindex="0"]',g=((l=r.calendar)===null||l===void 0?void 0:l.containerRef.current)instanceof Element&&r.calendar.containerRef.current.querySelector(m);g instanceof HTMLElement&&g.focus({preventScroll:!0});return}var y=nt(r.state.preSelection);f===oe.Enter?(i.preventDefault(),i.target.blur(),r.inputOk()&&r.state.lastPreSelectChange===m_?(r.handleSelect(y,i),!r.props.shouldCloseOnSelect&&r.setPreSelection(y)):r.setOpen(!1)):f===oe.Escape?(i.preventDefault(),i.target.blur(),r.sendFocusBackToInput(),r.setOpen(!1)):f===oe.Tab&&r.setOpen(!1),r.inputOk()||(h=(u=r.props).onInputError)===null||h===void 0||h.call(u,{code:1,msg:p_})}},r.onPortalKeyDown=function(i){var s=i.key;s===oe.Escape&&(i.preventDefault(),r.setState({preventFocus:!0},function(){r.setOpen(!1),setTimeout(function(){r.setFocus(),r.setState({preventFocus:!1})})}))},r.onDayKeyDown=function(i){var s,a,o,l,u,h,f=r.props,m=f.minDate,g=f.maxDate,y=f.disabledKeyboardNavigation,v=f.showWeekPicker,x=f.shouldCloseOnSelect,_=f.locale,S=f.calendarStartDay,w=f.adjustDateOnChange,k=f.inline;if((a=(s=r.props).onKeyDown)===null||a===void 0||a.call(s,i),!y){var P=i.key,j=i.shiftKey,A=nt(r.state.preSelection),M=function(V,Q){var U=Q;switch(V){case oe.ArrowRight:U=v?cm(Q,1):Ii(Q,1);break;case oe.ArrowLeft:U=v?OE(Q,1):EQ(Q,1);break;case oe.ArrowUp:U=OE(Q,1);break;case oe.ArrowDown:U=cm(Q,1);break;case oe.PageUp:U=j?lo(Q,1):Zo(Q,1);break;case oe.PageDown:U=j?Ni(Q,1):Yi(Q,1);break;case oe.Home:U=eo(Q,_,S);break;case oe.End:U=mJ(Q);break}return U},L=function(V,Q){for(var U=40,X=V,K=!1,z=0,F=M(V,Q);!K;){if(z>=U){F=Q;break}m&&F<m&&(X=oe.ArrowRight,F=ai(m,r.props)?M(X,F):m),g&&F>g&&(X=oe.ArrowLeft,F=ai(g,r.props)?M(X,F):g),ai(F,r.props)?((X===oe.PageUp||X===oe.Home)&&(X=oe.ArrowRight),(X===oe.PageDown||X===oe.End)&&(X=oe.ArrowLeft),F=M(X,F)):K=!0,z++}return F};if(P===oe.Enter){i.preventDefault(),r.handleSelect(A,i),!x&&r.setPreSelection(A);return}else if(P===oe.Escape){i.preventDefault(),r.setOpen(!1),r.inputOk()||(l=(o=r.props).onInputError)===null||l===void 0||l.call(o,{code:1,msg:p_});return}var I=null;switch(P){case oe.ArrowLeft:case oe.ArrowRight:case oe.ArrowUp:case oe.ArrowDown:case oe.PageUp:case oe.PageDown:case oe.Home:case oe.End:I=L(P,A);break}if(!I){(h=(u=r.props).onInputError)===null||h===void 0||h.call(u,{code:1,msg:p_});return}i.preventDefault(),r.setState({lastPreSelectChange:m_}),w&&r.setSelected(I),r.setPreSelection(I),k&&r.setState({shouldFocusDayInline:!0})}},r.onPopperKeyDown=function(i){var s=i.key;s===oe.Escape&&(i.preventDefault(),r.sendFocusBackToInput(),r.setOpen(!1))},r.onClearClick=function(i){i&&i.preventDefault&&i.preventDefault(),r.sendFocusBackToInput();var s=r.props,a=s.selectsRange,o=s.onChange;a?o==null||o([null,null],i):o==null||o(null,i),r.setState({inputValue:null})},r.clear=function(){r.onClearClick()},r.onScroll=function(i){typeof r.props.closeOnScroll=="boolean"&&r.props.closeOnScroll?(i.target===document||i.target===document.documentElement||i.target===document.body)&&r.setOpen(!1):typeof r.props.closeOnScroll=="function"&&r.props.closeOnScroll(i)&&r.setOpen(!1)},r.handleMonthSelectedInChange=function(i){r.setState({monthSelectedIn:i})},r.renderCalendar=function(){var i,s;return!r.props.inline&&!r.isCalendarOpen()?null:H.createElement(qJ,Ue({showMonthYearDropdown:void 0,ref:function(a){r.calendar=a}},r.props,r.state,{setOpen:r.setOpen,dateFormat:(i=r.props.dateFormatCalendar)!==null&&i!==void 0?i:e.defaultProps.dateFormatCalendar,onSelect:r.handleSelect,onClickOutside:r.handleCalendarClickOutside,holidays:MJ(r.modifyHolidays()),outsideClickIgnoreClass:r.props.outsideClickIgnoreClass,onDropdownFocus:r.handleDropdownFocus,onTimeChange:r.handleTimeChange,className:r.props.calendarClassName,container:r.props.calendarContainer,handleOnKeyDown:r.props.onKeyDown,handleOnDayKeyDown:r.onDayKeyDown,setPreSelection:r.setPreSelection,dropdownMode:(s=r.props.dropdownMode)!==null&&s!==void 0?s:e.defaultProps.dropdownMode,onMonthSelectedInChange:r.handleMonthSelectedInChange}),r.props.children)},r.renderAriaLiveRegion=function(){var i,s=r.props.locale,a=(i=r.props.dateFormat)!==null&&i!==void 0?i:e.defaultProps.dateFormat,o=r.props.showTimeInput||r.props.showTimeSelect,l=o?"PPPPp":"PPPP",u;return r.props.selectsRange?u="Selected start date: ".concat(cr(r.props.startDate,{dateFormat:l,locale:s}),". ").concat(r.props.endDate?"End date: "+cr(r.props.endDate,{dateFormat:l,locale:s}):""):r.props.showTimeSelectOnly?u="Selected time: ".concat(cr(r.props.selected,{dateFormat:a,locale:s})):r.props.showYearPicker?u="Selected year: ".concat(cr(r.props.selected,{dateFormat:"yyyy",locale:s})):r.props.showMonthYearPicker?u="Selected month: ".concat(cr(r.props.selected,{dateFormat:"MMMM yyyy",locale:s})):r.props.showQuarterYearPicker?u="Selected quarter: ".concat(cr(r.props.selected,{dateFormat:"yyyy, QQQ",locale:s})):u="Selected date: ".concat(cr(r.props.selected,{dateFormat:l,locale:s})),H.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-l
107ive"},u)},r.renderDateInput=function(){var i,s,a,o,l,u,h,f=bn(r.props.className,(i={},i[r.props.outsideClickIgnoreClass||e.defaultProps.outsideClickIgnoreClass]=r.state.open,i)),m=r.props.customInput||H.createElement("input",{type:"text"}),g=r.props.customInputRef||"ref",y={},v=(a=r.props["aria-describedby"])!==null&&a!==void 0?a:r.props.ariaDescribedBy,x=(o=r.props["aria-invalid"])!==null&&o!==void 0?o:r.props.ariaInvalid,_=(l=r.props["aria-label"])!==null&&l!==void 0?l:r.props.ariaLabel,S=(u=r.props["aria-labelledby"])!==null&&u!==void 0?u:r.props.ariaLabelledBy,w=(h=r.props["aria-required"])!==null&&h!==void 0?h:r.props.ariaRequired;return v!=null&&(y["aria-describedby"]=v),x!=null&&(y["aria-invalid"]=x),_!=null&&(y["aria-label"]=_),S!=null&&(y["aria-labelledby"]=S),w!=null&&(y["aria-required"]=w),E.cloneElement(m,Ue((s={},s[g]=function(k){r.input=k},s.value=r.getInputValue(),s.onBlur=r.handleBlur,s.onChange=r.handleChange,s.onClick=r.onInputClick,s.onFocus=r.handleFocus,s.onKeyDown=r.onInputKeyDown,s.id=r.props.id,s.name=r.props.name,s.form=r.props.form,s.autoFocus=r.props.autoFocus,s.placeholder=r.props.placeholderText,s.disabled=r.props.disabled,s.autoComplete=r.props.autoComplete,s.className=bn(m.props.className,f),s.title=r.props.title,s.readOnly=r.props.readOnly,s.required=r.props.required,s.tabIndex=r.props.tabIndex,s),y))},r.renderClearButton=function(){var i=r.props,s=i.isClearable,a=i.disabled,o=i.selected,l=i.startDate,u=i.endDate,h=i.clearButtonTitle,f=i.clearButtonClassName,m=f===void 0?"":f,g=i.ariaLabelClose,y=g===void 0?"Close":g,v=i.selectedDates,x=i.readOnly;return s&&!x&&(o!=null||l!=null||u!=null||v!=null&&v.length)?H.createElement("button",{type:"button",className:bn("react-datepicker__close-icon",m,{"react-datepicker__close-icon--disabled":a}),disabled:a,"aria-label":y,onClick:r.onClearClick,title:h,tabIndex:-1}):null},r.state=r.calcInitialState(),r.preventFocusTimeout=void 0,r}return Object.defineProperty(e,"defaultProps",{get:function(){return{allowSameDay:!1,dateFormat:"MM/dd/yyyy",dateFormatCalendar:"LLLL yyyy",disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",preventOpenOnFocus:!1,monthsShown:1,outsideClickIgnoreClass:E2,readOnly:!1,rangeSeparator:x2,withPortal:!1,selectsDisabledDaysInRange:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,showTimeInput:!1,showPreviousMonths:!1,showMonthYearPicker:!1,showFullMonthYearPicker:!1,showTwoColumnMonthYearPicker:!1,showFourColumnMonthYearPicker:!1,showYearPicker:!1,showQuarterYearPicker:!1,showWeekPicker:!1,strictParsing:!1,swapRange:!1,timeIntervals:30,timeCaption:"Time",previousMonthAriaLabel:"Previous Month",previousMonthButtonLabel:"Previous Month",nextMonthAriaLabel:"Next Month",nextMonthButtonLabel:"Next Month",previousYearAriaLabel:"Previous Year",previousYearButtonLabel:"Previous Year",nextYearAriaLabel:"Next Year",nextYearButtonLabel:"Next Year",timeInputLabel:"Time",enableTabLoop:!0,yearItemNumber:Qf,focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0,toggleCalendarOnIconClick:!1,usePointerEvent:!1}},enumerable:!1,configurable:!0}),e.prototype.componentDidMount=function(){window.addEventListener("scroll",this.onScroll,!0),document.addEventListener("visibilitychange",this.setHiddenStateOnVisibilityHidden)},e.prototype.componentDidUpdate=function(t,r){var i,s,a,o;this.props.selectsRange&&lM(t.startDate,this.props.startDate)?this.setPreSelection(this.props.startDate):lM(t.selected,this.props.selected)&&this.setPreSelection(this.props.selected),this.state.monthSelectedIn!==void 0&&t.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),this.props.selectsRange&&r.open===!1&&this.state.open===!0&&this.state.monthSelectedIn!==0&&this.setState({monthSelectedIn:0}),t.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:tM(this.props.highlightDates)}),!r.focused&&!Wo(t.selected,this.props.selected)&&this.setState({inputValue:null}),r.open!==this.state.open&&(r.open===!1&&this.state.open===!0&&((s=(i=this.props).onCalendarOpen)===null||s===void 0||s.call(i)),r.open===!0&&this.state.open===!1&&((o=(a=this.props).onCalendarClose)===null||o===void 0||o.call(a)))},e.prototype.componentWillUnmount=function(){this.clearPreventFocusTimeout(),window.removeEventListener("scroll",this.onScroll,!0),document.removeEventListener("visibilitychange",this.setHiddenStateOnVisibilityHidden)},e.prototype.renderInputContainer=function(){var t=this.props,r=t.showIcon,i=t.icon,s=t.calendarIconClassname,a=t.calendarIconClassName,o=t.toggleCalendarOnIconClick,l=this.state.open;return s&&console.warn("calendarIconClassname props is deprecated. should use calendarIconClassName props."),H.createElement("div",{className:"react-datepicker__input-container".concat(r?" react-datepicker__view-calendar-icon":"")},r&&H.createElement(KJ,Ue({icon:i,className:bn(a,!a&&s,l&&"react-datepicker-ignore-onclickoutside")},o?{onClick:this.toggleCalendar}:null)),this.state.isRenderAriaLiveMessage&&this.renderAriaLiveRegion(),this.renderDateInput(),this.renderClearButton())}
107,e.prototype.render=function(){var t=this.renderCalendar();if(this.props.inline)return t;if(this.props.withPortal){var r=this.state.open?H.createElement(T2,{enableTabLoop:this.props.enableTabLoop},H.createElement("div",{className:"react-datepicker__portal",tabIndex:-1,onKeyDown:this.onPortalKeyDown},t)):null;return this.state.open&&this.props.portalId&&(r=H.createElement(M2,Ue({portalId:this.props.portalId},this.props),r)),H.createElement(H.Fragment,null,this.renderInputContainer(),r)}return H.createElement(tee,Ue({},this.props,{className:this.props.popperClassName,hidePopper:!this.isCalendarOpen(),targetComponent:this.renderInputContainer(),popperComponent:t,popperOnKeyDown:this.onPopperKeyDown,showArrow:this.props.showPopperArrow,monthHeaderPosition:this.props.monthHeaderPosition}))},e}(E.Component),nee="input",m_="navigate";const uM={lessThanXSeconds:{standalone:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"},withPreposition:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"}},xSeconds:{standalone:{one:"1 Sekunde",other:"{{count}} Sekunden"},withPreposition:{one:"1 Sekunde",other:"{{count}} Sekunden"}},halfAMinute:{standalone:"eine halbe Minute",withPreposition:"einer halben Minute"},lessThanXMinutes:{standalone:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"},withPreposition:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"}},xMinutes:{standalone:{one:"1 Minute",other:"{{count}} Minuten"},withPreposition:{one:"1 Minute",other:"{{count}} Minuten"}},aboutXHours:{standalone:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"},withPreposition:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"}},xHours:{standalone:{one:"1 Stunde",other:"{{count}} Stunden"},withPreposition:{one:"1 Stunde",other:"{{count}} Stunden"}},xDays:{standalone:{one:"1 Tag",other:"{{count}} Tage"},withPreposition:{one:"1 Tag",other:"{{count}} Tagen"}},aboutXWeeks:{standalone:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"},withPreposition:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"}},xWeeks:{standalone:{one:"1 Woche",other:"{{count}} Wochen"},withPreposition:{one:"1 Woche",other:"{{count}} Wochen"}},aboutXMonths:{standalone:{one:"etwa 1 Monat",other:"etwa {{count}} Monate"},withPreposition:{one:"etwa 1 Monat",other:"etwa {{count}} Monaten"}},xMonths:{standalone:{one:"1 Monat",other:"{{count}} Monate"},withPreposition:{one:"1 Monat",other:"{{count}} Monaten"}},aboutXYears:{standalone:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahre"},withPreposition:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahren"}},xYears:{standalone:{one:"1 Jahr",other:"{{count}} Jahre"},withPreposition:{one:"1 Jahr",other:"{{count}} Jahren"}},overXYears:{standalone:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahre"},withPreposition:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahren"}},almostXYears:{standalone:{one:"fast 1 Jahr",other:"fast {{count}} Jahre"},withPreposition:{one:"fast 1 Jahr",other:"fast {{count}} Jahren"}}},ree=(n,e,t)=>{let r;const i=t!=null&&t.addSuffix?uM[n].withPreposition:uM[n].standalone;return typeof i=="string"?r=i:e===1?r=i.one:r=i.other.replace("{{count}}",String(e)),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"in "+r:"vor "+r:r},iee={full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},see={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},aee={full:"{{date}} 'um' {{time}}",long:"{{date}} 'um' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},oee={date:ju({formats:iee,defaultWidth:"full"}),time:ju({formats:see,defaultWidth:"full"}),dateTime:ju({formats:aee,defaultWidth:"full"})},lee={lastWeek:"'letzten' eeee 'um' p",yesterday:"'gestern um' p",today:"'heute um' p",tomorrow:"'morgen um' p",nextWeek:"eeee 'um' p",other:"P"},uee=(n,e,t,r)=>lee[n],cee={narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["vor Christus","nach Christus"]},dee={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. Quartal","2. Quartal","3. Quartal","4. Quartal"]},mx={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],wide:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},fee={narrow:mx.narrow,abbreviated:["Jan.","Feb.","März","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],wide:mx.wide},hee={narrow:["S","M","D","M","D","F","S"],short:["So","Mo","Di","Mi","Do","Fr","Sa"],abbreviated:["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],wide:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},pee={narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nac
107hm.",evening:"Abend",night:"Nacht"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"}},gee={narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachm.",evening:"abends",night:"nachts"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"}},mee=n=>Number(n)+".",vee={ordinalNumber:mee,era:rs({values:cee,defaultWidth:"wide"}),quarter:rs({values:dee,defaultWidth:"wide",argumentCallback:n=>n-1}),month:rs({values:mx,formattingValues:fee,defaultWidth:"wide"}),day:rs({values:hee,defaultWidth:"wide"}),dayPeriod:rs({values:pee,defaultWidth:"wide",formattingValues:gee,defaultFormattingWidth:"wide"})},bee=/^(\d+)(\.)?/i,yee=/\d+/i,_ee={narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i},xee={any:[/^v/i,/^n/i]},wee={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},See={any:[/1/i,/2/i,/3/i,/4/i]},Dee={narrow:/^[jfmasond]/i,abbreviated:/^(j[aä]n|feb|mär[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\.?/i,wide:/^(januar|februar|märz|april|mai|juni|juli|august|september|oktober|november|dezember)/i},kee={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:[/^j[aä]/i,/^f/i,/^mär/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Pee={narrow:/^[smdmf]/i,short:/^(so|mo|di|mi|do|fr|sa)/i,abbreviated:/^(son?|mon?|die?|mit?|don?|fre?|sam?)\.?/i,wide:/^(sonntag|montag|dienstag|mittwoch|donnerstag|freitag|samstag)/i},Cee={any:[/^so/i,/^mo/i,/^di/i,/^mi/i,/^do/i,/^f/i,/^sa/i]},Eee={narrow:/^(vm\.?|nm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,abbreviated:/^(vorm\.?|nachm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,wide:/^(vormittags|nachmittags|Mitternacht|Mittag|morgens|nachmittags|abends|nachts)/i},Mee={any:{am:/^v/i,pm:/^n/i,midnight:/^Mitte/i,noon:/^Mitta/i,morning:/morgens/i,afternoon:/nachmittags/i,evening:/abends/i,night:/nachts/i}},Tee={ordinalNumber:KR({matchPattern:bee,parsePattern:yee,valueCallback:n=>parseInt(n)}),era:is({matchPatterns:_ee,defaultMatchWidth:"wide",parsePatterns:xee,defaultParseWidth:"any"}),quarter:is({matchPatterns:wee,defaultMatchWidth:"wide",parsePatterns:See,defaultParseWidth:"any",valueCallback:n=>n+1}),month:is({matchPatterns:Dee,defaultMatchWidth:"wide",parsePatterns:kee,defaultParseWidth:"any"}),day:is({matchPatterns:Pee,defaultMatchWidth:"wide",parsePatterns:Cee,defaultParseWidth:"any"}),dayPeriod:is({matchPatterns:Eee,defaultMatchWidth:"wide",parsePatterns:Mee,defaultParseWidth:"any"})},Oee={code:"de",formatDistance:ree,formatLong:oee,formatRelative:uee,localize:vee,match:Tee,options:{weekStartsOn:1,firstWeekContainsDate:4}},Aee=Oee;var O2={exports:{}};(function(n,e){(function(t,r){n.exports=r()})(La,function(){var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d\d/,s=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,o={},l=function(v){return(v=+v)+(v>68?1900:2e3)},u=function(v){return function(x){this[v]=+x}},h=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(x){if(!x||x==="Z")return 0;var _=x.match(/([+-]|\d\d)/g),S=60*_[1]+(+_[2]||0);return S===0?0:_[0]==="+"?-S:S}(v)}],f=function(v){var x=o[v];return x&&(x.indexOf?x:x.s.concat(x.f))},m=function(v,x){var _,S=o.meridiem;if(S){for(var w=1;w<=24;w+=1)if(v.indexOf(S(w,0,x))>-1){_=w>12;break}}else _=v===(x?"pm":"PM");return _},g={A:[a,function(v){this.afternoon=m(v,!1)}],a:[a,function(v){this.afternoon=m(v,!0)}],S:[/\d/,function(v){this.milliseconds=100*+v}],SS:[i,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[s,u("seconds")],ss:[s,u("seconds")],m:[s,u("minutes")],mm:[s,u("minutes")],H:[s,u("hours")],h:[s,u("hours")],HH:[s,u("hours")],hh:[s,u("hours")],D:[s,u("day")],DD:[i,u("day")],Do:[a,function(v){var x=o.ordinal,_=v.match(/\d+/);if(this.day=_[0],x)for(var S=1;S<=31;S+=1)x(S).replace(/\[|\]/g,"")===v&&(this.day=S)}
107],M:[s,u("month")],MM:[i,u("month")],MMM:[a,function(v){var x=f("months"),_=(f("monthsShort")||x.map(function(S){return S.slice(0,3)})).indexOf(v)+1;if(_<1)throw new Error;this.month=_%12||_}],MMMM:[a,function(v){var x=f("months").indexOf(v)+1;if(x<1)throw new Error;this.month=x%12||x}],Y:[/[+-]?\d+/,u("year")],YY:[i,function(v){this.year=l(v)}],YYYY:[/\d{4}/,u("year")],Z:h,ZZ:h};function y(v){var x,_;x=v,_=o&&o.formats;for(var S=(v=x.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(L,I,V){var Q=V&&V.toUpperCase();return I||_[V]||t[V]||_[Q].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(U,X,K){return X||K.slice(1)})})).match(r),w=S.length,k=0;k<w;k+=1){var P=S[k],j=g[P],A=j&&j[0],M=j&&j[1];S[k]=M?{regex:A,parser:M}:P.replace(/^\[|\]$/g,"")}return function(L){for(var I={},V=0,Q=0;V<w;V+=1){var U=S[V];if(typeof U=="string")Q+=U.length;else{var X=U.regex,K=U.parser,z=L.slice(Q),F=X.exec(z)[0];K.call(I,F),L=L.replace(F,"")}}return function(R){var B=R.afternoon;if(B!==void 0){var Z=R.hours;B?Z<12&&(R.hours+=12):Z===12&&(R.hours=0),delete R.afternoon}}(I),I}}return function(v,x,_){_.p.customParseFormat=!0,v&&v.parseTwoDigitYear&&(l=v.parseTwoDigitYear);var S=x.prototype,w=S.parse;S.parse=function(k){var P=k.date,j=k.utc,A=k.args;this.$u=j;var M=A[1];if(typeof M=="string"){var L=A[2]===!0,I=A[3]===!0,V=L||I,Q=A[2];I&&(Q=A[2]),o=this.$locale(),!L&&Q&&(o=_.Ls[Q]),this.$d=function(z,F,R){try{if(["x","X"].indexOf(F)>-1)return new Date((F==="X"?1e3:1)*z);var B=y(F)(z),Z=B.year,se=B.month,ae=B.day,ge=B.hours,ke=B.minutes,Me=B.seconds,me=B.milliseconds,rt=B.zone,et=new Date,xt=ae||(Z||se?1:et.getDate()),Pt=Z||et.getFullYear(),It=0;Z&&!se||(It=se>0?se-1:et.getMonth());var En=ge||0,Sr=ke||0,wn=Me||0,mi=me||0;return rt?new Date(Date.UTC(Pt,It,xt,En,Sr,wn,mi+60*rt.offset*1e3)):R?new Date(Date.UTC(Pt,It,xt,En,Sr,wn,mi)):new Date(Pt,It,xt,En,Sr,wn,mi)}catch{return new Date("")}}(P,M,j),this.init(),Q&&Q!==!0&&(this.$L=this.locale(Q).$L),V&&P!=this.format(M)&&(this.$d=new Date("")),o={}}else if(M instanceof Array)for(var U=M.length,X=1;X<=U;X+=1){A[1]=M[X-1];var K=_.apply(this,A);if(K.isValid()){this.$d=K.$d,this.$L=K.$L,this.init();break}X===U&&(this.$d=new Date(""))}else w.call(this,k)}}})})(O2);var jee=O2.exports;const Ree=jm(jee);var Iee={exports:{}};(function(n,e){(function(t,r){n.exports=r(BR)})(La,function(t){function r(l){return l&&typeof l=="object"&&"default"in l?l:{default:l}}var i=r(t),s={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function a(l,u,h){var f=s[h];return Array.isArray(f)&&(f=f[u?0:1]),f.replace("%d",l)}var o={name:"de",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.".split("_"),ordinal:function(l){return l+"."},weekStart:1,yearStart:4,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a}};return i.default.locale(o,null,!0),o})})(Iee);Ye.extend(Ree);Ye.locale("de");bJ("de",Aee);const Nee=n=>{typeof window<"u"&&window._paq&&window._paq.push(["trackEvent","user_backend","date_range_picker",n])};function Fee({initialStart:n,initialEnd:e}){const[t,r]=E.useState(null),[i,s]=E.useState(null),[a,o]=E.useState(null),[l,u]=E.useState(null),[h,f]=E.useState(""),[m,g]=E.useState(""),[y,v]=E.useState(!1),[x,_]=E.useState("custom"),S=E.useRef(null);E.useEffect(()=>{if(!a||!l)return;const F=Ye(a).startOf("day").valueOf(),R=Ye(l).startOf("day").valueOf(),B=k.findIndex(Z=>{const se=Z.getRange();return Ye(se.start).startOf("day").valueOf()===F&&Ye(se.end).startOf("day").valueOf()===R});_(B>=0?String(B):"custom")},[a,l]),E.useEffect(()=>{let F,R;n&&n.length===10?F=Ye(n).toDate():Ye().month()<6?F=Ye().subtract(1,"year").toDate():F=Ye().startOf("year").toDate(),e&&e.length===10?R=Ye(e).toDate():R=new Date,r(F),s(R),o(F),u(R),f(Ye(F).format("YYYY-MM-DD")),g(Ye
107(R).format("YYYY-MM-DD"))},[n,e]),E.useEffect(()=>{const F=R=>{R.key==="Escape"&&y&&M()};return document.addEventListener("keydown",F),()=>document.removeEventListener("keydown",F)},[y,t,i]);const w=(F,R)=>{if(!F||!R)return"";const B=Ye(F),Z=Ye(R);return B.year()===Z.year()?B.month()===Z.month()?`${B.format("DD.")} - ${Z.format("DD.MM.YYYY")}`:`${B.format("DD.MM.")} - ${Z.format("DD.MM.YYYY")}`:`${B.format("DD.MM.YYYY")} - ${Z.format("DD.MM.YYYY")}`},k=(()=>{const F=[{label:"Aktuelles Jahr",trackingId:"current_year",getRange:()=>({start:Ye().startOf("year").toDate(),end:new Date})},{label:"Aktueller Monat",trackingId:"current_month",getRange:()=>({start:Ye().startOf("month").toDate(),end:new Date})},{label:"Letzte 3 Monate",trackingId:"last_3_months",getRange:()=>({start:Ye().subtract(3,"month").add(1,"day").toDate(),end:new Date})},{label:"Letzte 12 Monate",trackingId:"last_12_months",getRange:()=>({start:Ye().subtract(1,"year").add(1,"day").toDate(),end:new Date})},{label:"Letzte 3 Jahre",trackingId:"last_3_years",getRange:()=>({start:Ye().subtract(3,"year").add(1,"day").toDate(),end:new Date})},{label:"Letzte 5 Jahre",trackingId:"last_5_years",getRange:()=>({start:Ye().subtract(5,"year").add(1,"day").toDate(),end:new Date})}],R=typeof window<"u"&&window.dfo&&typeof window.dfo.mandate_start=="string"?window.dfo.mandate_start:null;if(R){const B=Ye(R,"YYYY-MM-DD",!0);B.isValid()&&F.push({label:"Seit Beginn",trackingId:"since_start",getRange:()=>({start:B.toDate(),end:new Date})})}return F})(),P=F=>{const R=Ye(F,"YYYY-MM-DD",!0);return R.isValid()?R.toDate():null},j=()=>{o(t),u(i),f(Ye(t).format("YYYY-MM-DD")),g(Ye(i).format("YYYY-MM-DD")),v(!0)},A=()=>{if(a&&l){r(a),s(l);const F=Ye(a).format("YYYY-MM-DD"),R=Ye(l).format("YYYY-MM-DD"),B=x!=="custom"?k[parseInt(x,10)]:null;Nee(B?B.trackingId:"custom_range"),window.location.href=`${window.location.pathname}?start=${F}&end=${R}`}},M=()=>{o(t),u(i),f(Ye(t).format("YYYY-MM-DD")),g(Ye(i).format("YYYY-MM-DD")),v(!1)},L=F=>{const R=F.getRange();o(R.start),u(R.end),f(Ye(R.start).format("YYYY-MM-DD")),g(Ye(R.end).format("YYYY-MM-DD"))},I=F=>{o(F),F&&f(Ye(F).format("YYYY-MM-DD"))},V=F=>{u(F),F&&g(Ye(F).format("YYYY-MM-DD"))},Q=F=>{const R=F.target.value;f(R);const B=P(R);B&&o(B)},U=F=>{const R=F.target.value;g(R);const B=P(R);B&&u(B)},X=F=>{const R=F.target.value;if(R!=="custom"){const B=k[parseInt(R,10)];if(B){const Z=B.getRange();o(Z.start),u(Z.end),f(Ye(Z.start).format("YYYY-MM-DD")),g(Ye(Z.end).format("YYYY-MM-DD"))}}},K=F=>{const[R,B]=F;o(R),u(B),R&&f(Ye(R).format("YYYY-MM-DD")),B&&g(Ye(B).format("YYYY-MM-DD"))},z=F=>{F.key==="Enter"&&A()};return d.jsxs("div",{className:"dfo-date-range-picker",children:[d.jsxs("button",{type:"button",className:"btn btn-sm btn-primary fw-bold ps-2 pe-3 dfo-date-range-picker__trigger",onClick:j,ref:S,children:[d.jsx("i",{className:"fa-light fa-calendar fa-fw"}),d.jsx("span",{className:"dfo-date-range-picker__trigger-label",children:w(t,i)})]}),y&&d.jsxs("div",{className:"dfo-date-range-picker__dropdown",children:[d.jsxs("div",{className:"card dfo-date-range-picker__card",children:[d.jsxs("div",{className:"card-body dfo-date-range-picker__wrapper dfo-date-range-picker__desktop",children:[d.jsx("div",{className:"dfo-date-range-picker__presets",children:k.map((F,R)=>d.jsx("button",{type:"button",className:`dfo-date-range-picker__preset-btn${x===String(R)?" dfo-date-range-picker__preset-btn--active":""}`,onClick:()=>L(F),children:F.label},R))}),d.jsx("div",{className:"dfo-date-range-picker__calendar-area",children:d.jsxs("div",{className:"dfo-date-range-picker__calendars-row",children:[d.jsxs("div",{className:"dfo-date-range-picker__calendar-col",children:[d.jsx("input",{type:"date",className:"form-control form-control-sm dfo-date-range-picker__input",value:h,onChange:Q,onKeyDown:z,"aria-label":"Startdatum"}),d.jsx("div",{className:"dfo-date-range-picker__calendar",children:d.jsx(g_,{selected:a,onChange:I,inline:!0,dateFormat:"dd.MM.yyyy",locale:"de",showMonthDropdown:!0,showYearDropdown:!0,dropdownMode:"select",maxDate:l||new Date})})]}),d.jsx("span",{className:"dfo-date-range-picker__arrow",children:"â"}),d.jsxs("div",{className:"dfo-date-range-picker__calendar-col",children:[d.jsx("input",{type:"date",className:"form-control form-control-sm dfo-date-range-picker__input",value:m,onChange:U,onKeyDown:z,"aria-label":"Enddatum"}),d.jsx("div",{className:"dfo-date-range-picker__calendar",children:d.jsx(g_,{selected:l,onChange:V,inline:!0,dateFormat:"dd.MM.yyyy",locale:"de",showMonthDropdown:!0,showYearDropdown:!0,dropdownMode:"select",minDate:a,maxDate:new Date})})]})]})})]}),d.jsxs("div",{className:"card-body dfo-date-range-picker__mobile",children:[d.jsxs("select",{className:"form-select dfo-date-range-picker__mobile-select",value:x,onChange:X,children:[k.map((F,R)=>d.jsx("option",{value:R,children:F.label},R)),d.jsx("option",{value:"custom",children:"Benutzerdefiniert"})]}),d.jsxs("div",{className:"dfo-date-range-picker__mobile-inputs",children:[d.jsx("input",{type:"date",className:"form-control form-control-sm dfo-date-range-picker__input",value:h,onChange:Q,onKeyDown:z,"aria-label":"Startdatum"}),d.jsx("span",{className:"dfo-date-range-picker__arrow",children:"â"}),d.jsx("input",{type:"date",className:"form-control form-control-sm dfo-date-range-picker__input",value:m,onChange:U,onKeyDown:z,"aria-label":"Enddatum"})]}),d.jsx("div",{className:"dfo-date-range-picker__calendar dfo-date-range-picker__mobile-calendar",children:d.jsx(g_,{selected:a,onChange:K,startDate:a,endDate:l,selectsRange:!0,inline:!0,dateFormat:"dd.MM.yyyy",locale:"de",showMonthDropdown:!0,showYearDropdown:!0,dropdownMode:"select",maxDate:new Date})})]}),d.jsxs("div",{className:"card-footer dfo-date-range-picker__actions",children:[d.jsxs("button",{type:"button",className:"btn btn-sm btn-light fw-bold dfo-date-range-picker__action-btn",onClick:M,children:[d.jsx("i",{className:"fa-light fa-xmark fa-fw"})," Abbrechen"]}),d.jsxs("button",{type:"button",className:"btn btn-sm btn-success fw-bold dfo-date-range-picker__apply-btn dfo-date-range-picker__action-btn",onClick:A,disabled:!a||!l,children:[d.jsx("i",{className:"fa-light fa-check fa-fw"})," Anwenden"]})]})]}),d.jsx("div",{className:"dfo-date-range-picker__backdrop",onClick:M})]})]})}const A2=()=>{const n=window.location.pathname,e=n.substring(n.lastIndexOf("/")+1);if(!/^[a-z0-9]+$/i.test(e))throw new Error("Error 1728643803: The value supplied for the ID is non-alphanumeric.");return e},Nl=n=>{let e=null;const t=A2(),r=n.resultLine.subLines[0].subLines[0].subLines;for(let i=0;i<r.length;i++){const s=r[i].subLines;for(let a=0;a<s.length;a++){const o=s[a];if(o.nodeId===t){e=o;break}}}return e};function vx(n,e){if(Array.isArray(n))for(const t of n){const r=vx(t,e);if(r!==null)return r}else if(n!==null&&typeof n=="object"){if(n.nodeId===e)return n;for(const t of Object.keys(n)){const r=vx(n[t],e);if(r!==null)return r}}return null}const Lee=n=>{const e=A2();return output=vx(n.resultLine,e)},Bee=n=>({name:n.name,isin:n.values[3].value});function $ee(n){return window.location.pathname.split("/").slice(0,-2).join("/")+"/fonds/"+n}
107function Vee({leid:n,preset:e}){const[t,r]=E.useState(null);return E.useEffect(()=>{const i=`/qplix?le=${n}&p=${e}`;fetch(i).then(s=>s.json()).then(s=>{const a=Nl(s);a&&r(Bee(a))})},[]),t?d.jsx("div",{class:"table-responsive",children:d.jsx("table",{class:"table table-striped",children:d.jsxs("tbody",{children:[d.jsxs("tr",{children:[d.jsx("th",{scope:"row",children:"Name"}),d.jsx("td",{className:"text-truncate",children:t.name})]}),d.jsxs("tr",{children:[d.jsx("th",{scope:"row",children:"ISIN"}),d.jsx("td",{className:"text-truncate",children:t.isin})]}),d.jsxs("tr",{children:[d.jsx("th",{scope:"row",children:"Fonds"}),d.jsx("td",{className:"text-truncate",children:d.jsxs("a",{href:$ee(t.isin),children:["Profil aufrufen",d.jsx("i",{className:"fa-light fa-long-arrow-right ms-1"})]})})]})]})})}):d.jsx(va,{rows:1})}ra.globalLocale="de-DE";const Yee=(n,e)=>{const t={performance:{value:n.values[0].value,raw:n.values[0].rawValue},volatility:{value:n.values[2].value,raw:n.values[2].rawValue},sharpeRatio:{value:n.values[3].value,raw:n.values[3].rawValue},recentLoss:{value:n.values[4].value,raw:n.values[4].rawValue},maxLoss:{value:n.values[5].value,raw:n.values[5].rawValue}};return e==="mwr"&&(t.performance={value:n.values[1].value,raw:n.values[1].rawValue}),t},Hee=(n,e)=>{const t={performance:{value:n.values[0].value,raw:n.values[0].rawValue},volatility:{value:n.values[2].value,raw:n.values[2].rawValue},sharpeRatio:{value:n.values[3].value,raw:n.values[3].rawValue},recentLoss:{value:n.values[4].value,raw:n.values[4].rawValue},maxLoss:{value:n.values[5].value,raw:n.values[5].rawValue}};return e==="mwr"&&(t.performance={value:n.values[1].value,raw:n.values[1].rawValue}),t},zee=(n,e)=>{const t=lt.round(Math.abs(n-e)*100,2).toLocaleString("de-DE");return n<e?d.jsxs("span",{className:"text-danger",children:["-",t," %"]}):d.jsxs("span",{className:"text-success",children:["+",t," %"]})},Wee=(n,e)=>{const t=lt.round(Math.abs(n-e)*100,2).toLocaleString("de-DE");return n>e?d.jsxs("span",{className:"text-danger",children:["+",t," %"]}):d.jsxs("span",{className:"text-success",children:["-",t," %"]})},Uee=(n,e)=>{const t=lt.round(Math.abs(n-e),2).toLocaleString("de-DE");return n<e?d.jsxs("span",{className:"text-danger",children:["-",t]}):d.jsxs("span",{className:"text-success",children:["+",t]})},cM=(n,e)=>{const t=lt.round(Math.abs(n-e)*100,2).toLocaleString("de-DE");return n<e?d.jsxs("span",{className:"text-danger",children:["-",t," %"]}):d.jsxs("span",{className:"text-success",children:["+",t," %"]})},Gee=(n,e)=>{const t=lt.round(Math.abs(n-e)*100,2).toLocaleString("de-DE");return n<e?`-${t} %`:`+${t} %`},Xee=(n,e)=>{const t=lt.round(Math.abs(n-e)*100,2).toLocaleString("de-DE");return n>e?`+${t} %`:`-${t} %`},qee=(n,e)=>{const t=lt.round(Math.abs(n-e),2).toLocaleString("de-DE");return n<e?`-${t}`:`+${t}`},dM=(n,e)=>{const t=lt.round(Math.abs(n-e)*100,2).toLocaleString("de-DE");return n<e?`-${t} %`:`+${t} %`},Kee=(n,e)=>n===null||e===null?[]:[{kennzahl:"Rendite",strategie:e.performance.value,position:n.performance.value,differenz:Gee(n.performance.raw,e.performance.raw)},{kennzahl:"Volatilität",strategie:e.volatility.value,position:n.volatility.value,differenz:Xee(n.volatility.raw,e.volatility.raw)},{kennzahl:"Sharpe Ratio",strategie:e.sharpeRatio.value,position:n.sharpeRatio.value,differenz:qee(n.sharpeRatio.raw,e.sharpeRatio.raw)},{kennzahl:"Maximaler Verlust seit letztem Hoch",strategie:e.recentLoss.value,position:n.recentLoss.value,differenz:dM(n.recentLoss.raw,e.recentLoss.raw)},{kennzahl:"Maximaler Verlust",strategie:e.maxLoss.value,position:n.maxLoss.value,differenz:dM(n.maxLoss.raw,e.maxLoss.raw)}],Qee=async(n,e,t)=>{const r=["kennzahl","strategie","position","differenz"],i=["Kennzahl","Strategie","Position","Differenz"],s=new Date,a=s.getFullYear(),o=String(s.getMonth()+1).padStart(2,"0"),l=String(s.getDate()).padStart(2,"0"),u=`Digitales Family Office: Export der Kennzahlen für die Position ${t} vom ${l}.${o}.${a}`,h=`Zeitraum: ${o1()}`,f=await a1(()=>import("https://cdn.sheetjs.com/xlsx-0.20.3/package/xlsx.mjs"),[]),m=f.utils.aoa_to_sheet([[u]]);f.utils.sheet_add_aoa(m,[[h]],{origin:"A2"}),f.utils.sheet_add_aoa(m,[i],{origin:"A3"}
107),f.utils.sheet_add_json(m,Kee(n,e),{origin:"A4",header:r,skipHeader:!0}),m["!merges"]=[{s:{r:0,c:0},e:{r:0,c:r.length-1}},{s:{r:1,c:0},e:{r:1,c:r.length-1}}];const g=f.utils.book_new();f.utils.book_append_sheet(g,m,"Kennzahlen"),f.writeFile(g,`${a}${o}${l}-bvs-dfo-position-kpi.xlsx`)};function Zee({leid:n,preset:e,weighting:t,widgetKey:r,icon:i,heading:s}){const[a,o]=E.useState(null),[l,u]=E.useState(null),[h,f]=E.useState(null);return E.useEffect(()=>{const m=`/qplix?le=${n}&p=${e}`;fetch(m).then(g=>g.json()).then(g=>{console.log(g);const y=Nl(g);y&&(o(Yee(y,t)),u(Hee(g.resultLine,t)),f(y.name))})},[]),d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"card-header d-flex justify-content-between align-items-center p-3 bg-white",children:[d.jsxs("h2",{className:"h5 my-0",children:[d.jsx("i",{className:`fa-light ${i} fa-fw me-1 text-body-secondary`}),s]}),d.jsxs("div",{className:"d-flex gap-2",children:[d.jsx("button",{type:"button",className:"btn btn-link btn-sm p-0 text-muted",onClick:()=>Qee(a,l,h),disabled:a===null||l===null||h===null,title:"Daten als Excel-Datei herunterladen",children:d.jsx("i",{className:"fa-light fa-file-excel fa-fw"})}),d.jsx("button",{type:"button",className:"btn btn-link btn-sm p-0 text-muted","data-bs-toggle":"offcanvas","data-bs-target":`#dfo-help--${r}`,"aria-controls":`dfo-help--${r}`,title:"Mehr Informationen",children:d.jsx("i",{className:"fa-light fa-info-circle fa-fw"})})]})]}),d.jsx("div",{className:"card-body pb-4",children:a===null?d.jsx(va,{rows:4}):d.jsx("div",{class:"table-responsive",children:d.jsxs("table",{class:"table table-striped",children:[d.jsx("thead",{children:d.jsxs("tr",{children:[d.jsx("th",{scope:"col",children:"Kennzahlen"}),d.jsx("th",{scope:"col",children:"Strategie"}),d.jsx("th",{scope:"col",children:"Position"}),d.jsx("th",{scope:"col",children:"Differenz"})]})}),d.jsxs("tbody",{children:[d.jsxs("tr",{children:[d.jsx("td",{children:"Rendite"}),d.jsx("td",{children:l.performance.value}),d.jsx("td",{children:a.performance.value}),d.jsx("td",{children:zee(a.performance.raw,l.performance.raw)})]}),d.jsxs("tr",{children:[d.jsx("td",{children:"Volatilität"}),d.jsx("td",{children:l.volatility.value}),d.jsx("td",{children:a.volatility.value}),d.jsx("td",{children:Wee(a.volatility.raw,l.volatility.raw)})]}),d.jsxs("tr",{children:[d.jsx("td",{children:"Sharpe Ratio"}),d.jsx("td",{children:l.sharpeRatio.value}),d.jsx("td",{children:a.sharpeRatio.value}),d.jsx("td",{children:Uee(a.sharpeRatio.raw,l.sharpeRatio.raw)})]}),d.jsxs("tr",{children:[d.jsx("td",{children:"Maximaler Verlust seit letztem Hoch"}),d.jsx("td",{children:l.recentLoss.value}),d.jsx("td",{children:a.recentLoss.value}),d.jsx("td",{children:cM(a.recentLoss.raw,l.recentLoss.raw)})]}),d.jsxs("tr",{children:[d.jsx("td",{children:"Maximaler Verlust"}),d.jsx("td",{children:l.maxLoss.value}),d.jsx("td",{children:a.maxLoss.value}),d.jsx("td",{children:cM(a.maxLoss.raw,l.maxLoss.raw)})]})]})]})})})]})}ra.globalLocale="de-DE";const Jee=n=>{const e={begin:{raw:Math.abs(n.values[10].rawValue),value:n.values[10].value},end:{raw:Math.abs(n.values[11].rawValue),value:n.values[11].value}};return e.end.raw>e.begin.raw?(e.isPositive=!0,e.differenceInCents=(e.end.raw-e.begin.raw)*100):(e.isPositive=!1,e.differenceInCents=(e.begin.raw-e.end.raw)*100),e},ete=n=>{const e={inflow:Math.abs(n.values[12].rawValue),outflow:Math.abs(n.values[13].rawValue)};return e.inflow>e.outflow?(e.isPositive=!0,e.differenceInCents=(e.inflow-e.outflow)*100):(e.isPositive=!1,e.differenceInCents=(e.outflow-e.inflow)*100),e},j2=n=>{const e=ra({amount:Math.round(n.differenceInCents)}).toFormat("0,0.00");return n.isPositive?d.jsxs("span",{className:"fw-bold text-success",children:["+",e," â¬"]}):d.jsxs("span",{className:"fw-bold text-danger",children:["-",e," â¬"]})};function tte({leid:n,preset:e}){const[t,r]=E.useState(null),[i,s]=E.useState(null);return E.useEffect(()=>{const a=`/qplix?le=${n}&p=${e}`;fetch(a).then(o=>o.json()).then(o=>{const l=Nl(o);l&&(r(Jee(l)),s(ete(l)))})},[]),t?d.jsxs(d.Fragment,{children:[d.jsxs("div",{children:[d.jsx("div",{className:"small text-body-secondary",children:"Aktueller Stand"}),d.jsxs("div",{className:"fs-3",children:[t.end.value," â¬"]})]}),d.jsxs("div",{className:"mt-2",children:[d.jsxs("div",{className:"small text-body-secondary",children:[j2(t)," im ausgewählten Zeitraum"]}),d.jsx(nte,{data:i})]})]}):d.jsxs(vt,{baseColor:"#f1f5f9",highlightColor:"#cbd5e1",children:[d.jsxs("div",{children:[d.jsx("div",{className:"small",children:d.jsx(ce,{width:100})}),d.jsx("div",{className:"fs-3",children:d.jsx(ce,{width:180})})]}),d.jsxs("div",{className:"mt-2",children:[d.jsx("div",{className:"small",children:d.jsx(ce,{width:264})}),d.jsx("div",{className:"small",children:d.jsx(ce,{width:264})})]})]})}function nte({data:n}){const e=j2(n),t=n.isPositive?"Zuflüsse":"Abflüsse";return d.jsxs("div",{className:"small text-body-secondary",children:["davon Netto-",t," von ",e]})}const rte=(n,e)=>{const t=n.values,r={amount:t[4].value,acquisition_price:t[1].value,acquisition_value:t[2].value,price:t[13].value.replace(/ EUR$/,""),date:t[3].value,
107nav:t[12].value};return e==="mwr"?(r.returns=t[15].value,r.total_returns=t[6].value):(r.returns=t[14].value,r.total_returns=t[5].value),r},ite=n=>n===null?[]:[{amount:n.amount,acquisition_price:n.acquisition_price+" â¬",acquisition_value:n.acquisition_value+" â¬",price:n.price+" â¬",date:n.date,nav:n.nav+" â¬",returns:n.returns,total_returns:n.total_returns}],ste=async(n,e)=>{const t=["amount","acquisition_price","acquisition_value","price","date","nav","returns","total_returns"],r=["Stücke","Einstandskurs","Einstandswert","Aktueller Kurs","Kursdatum","Aktueller Wert","Rendite im Zeitraum","Rendite seit Kauf"],i=new Date,s=i.getFullYear(),a=String(i.getMonth()+1).padStart(2,"0"),o=String(i.getDate()).padStart(2,"0"),l=`Digitales Family Office: Export des Ãberblicks für die Position ${e} vom ${o}.${a}.${s}`,u=`Zeitraum: ${o1()}`,h=await a1(()=>import("https://cdn.sheetjs.com/xlsx-0.20.3/package/xlsx.mjs"),[]),f=h.utils.aoa_to_sheet([[l]]);h.utils.sheet_add_aoa(f,[[u]],{origin:"A2"}),h.utils.sheet_add_aoa(f,[r],{origin:"A3"}),h.utils.sheet_add_json(f,ite(n),{origin:"A4",header:t,skipHeader:!0}),f["!merges"]=[{s:{r:0,c:0},e:{r:0,c:t.length-1}},{s:{r:1,c:0},e:{r:1,c:t.length-1}}];const m=h.utils.book_new();h.utils.book_append_sheet(m,f,"Ãberblick"),h.writeFile(m,`${s}${a}${o}-bvs-dfo-position-overview.xlsx`)};function ate({leid:n,preset:e,weighting:t}){const[r,i]=E.useState(null),[s,a]=E.useState(null);return E.useEffect(()=>{const o=`/qplix?le=${n}&p=${e}`;fetch(o).then(l=>l.json()).then(l=>{const u=Lee(l);u&&(i(rte(u,t)),a(u.name))})},[]),d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"card-header d-flex justify-content-between align-items-center p-3 bg-white",children:[d.jsxs("h2",{className:"h5 my-0",children:[d.jsx("i",{className:"fa-light fa-info-circle fa-fw me-1 text-body-secondary"}),"Ãber Ihre Position"]}),d.jsx("div",{className:"d-flex gap-2",children:d.jsx("button",{type:"button",className:"btn btn-link btn-sm p-0 text-muted",onClick:()=>ste(r,s),disabled:r===null||s===null,title:"Daten als Excel-Datei herunterladen",children:d.jsx("i",{className:"fa-light fa-file-excel fa-fw"})})})]}),d.jsx("div",{className:"card-body pb-4",children:r===null?d.jsx(va,{rows:1}):d.jsx("div",{class:"table-responsive",children:d.jsxs("table",{class:"table table-striped",children:[d.jsx("thead",{children:d.jsxs("tr",{children:[d.jsx("th",{class:"text-nowrap",scope:"col",children:"Stücke"}),d.jsx("th",{class:"text-nowrap",scope:"col",children:"Einstandskurs"}),d.jsx("th",{class:"text-nowrap",scope:"col",children:"Einstandswert"}),d.jsx("th",{class:"text-nowrap",scope:"col",children:"Aktueller Kurs"}),d.jsx("th",{class:"text-nowrap",scope:"col",children:"Kursdatum"}),d.jsx("th",{class:"text-nowrap",scope:"col",children:"Aktueller Wert"}),d.jsx("th",{class:"text-nowrap",scope:"col",children:"Rendite im Zeitraum"}),d.jsx("th",{class:"text-nowrap",scope:"col",children:"Rendite seit Kauf"})]})}),d.jsx("tbody",{children:d.jsxs("tr",{children:[d.jsx("td",{children:r.amount}),d.jsxs("td",{children:[r.acquisition_price," â¬"]}),d.jsxs("td",{children:[r.acquisition_value," â¬"]}),d.jsxs("td",{children:[r.price," â¬"]}),d.jsx("td",{children:r.date}),d.jsxs("td",{children:[r.nav," â¬"]}),d.jsx("td",{children:r.returns}),d.jsx("td",{children:r.total_returns})]})})]})})})]})}const ote=()=>{const n=new Date(window.dfo.settings.start),e=new Date(window.dfo.settings.end),t=Math.abs(e.getTime()-n.getTime()),r=Math.ceil(t/(1e3*3600*24));let i="day";return r>31&&r<=90?i="week":r>90&&r<=730?i="month":r>730&&(i="year"),i},lte=n=>{switch(n){case"year":return 5;case"month":return 3;case"week":return 2;default:return 1}},R2=n=>{const e=[];for(const[t,r]of Object.entries(n))e.push({date:new Date(t).getTime(),value:lt.round(r*100,2)});return e},ute=n=>R2(n.values[0].rawValue),cte=(n,e)=>{const t=lte(e),r=n.values[t].rawValue;return R2(r)};function dte({leid:n,preset:e}){const[t,r]=E.useState(ote()),[i,s]=E.useState(null);return E.useEffect(()=>{const a=`/qplix?le=${n}&p=${e}`;fetch(a).then(o=>o.json()).then(o=>{const l=Nl(o);l&&s(l)})},[]),E.useEffect(()=>{if(i===null)return;const a=ma.new("dfo-chart--performance-ot"),o=ws.new(a);o.rule("Label").setAll({fill:we("#64748b"),fontSize:"0.875em"}),a.setThemes([Rl.new(a),o]),a.dateFormatter.setAll({dateFields:["valueX"]});const l=a.container.children.push(aa.new(a,{focusable:!0,layout:a.verticalLayout,panX:!0,panY:!0,wheelX:"panX",wheelY:"zoomX",pinchZoomX:!0})),u=l.xAxes.push(la.new(a,{maxDeviation:.1,baseInterval:{timeUnit:"day",count:1},renderer:Vi.new(a,{minGridDistance:50,minorGridEnabled:!0}),tooltip:vn.new(a,{paddingBottom:4,paddingLeft:8,paddingRight:8,paddingTop:4})}));u.get("renderer").labels.template.set("forceHidden",!0),u.get("renderer").grid.template.set("forceHidden",!0);const h=l.yAxes.push($i.new(a,{extraTooltipPrecision:1,maxDeviation:.1,numberFormat:"#'%'",renderer:ua.new(a,{})})),f=l.series.push(ca.new(a,{fill:we("#002940"),stroke:we("#002940"),xAxis:u,yAxis:h,valueYField:"value",valueXField:"date",tooltip:vn.new(a,{pointerOrientation:"horizontal",labelText:"{valueY}"})}));f.strokes.template.setAll({strokeWidth:1}),f.data.processor=lv.new(a,{dateFormat:"dd.mm.yyyy",dateFields:["date"]});const m=f.set("tooltip",vn.new(a,{paddingBottom:4,paddingLeft:8,paddingRight:8,paddingTop:4,pointerOrientation:"horizontal"}));m.label.set("text","Kumulierte Tagesperformance: [bold]{valueY}%[/]"),m.label.setAll({fill:we("#ffffff")}),f.data.setAll(ute(i));const g=l.xAxes.push(la.new(a,{maxDeviation:.1,baseInterval:{timeUnit:t,count:1},renderer:Vi.new(a,{minGridDistance:50})})),y=l.series.unshift(vl.new(a,{xAxis:g,yAxis:h,valueYField:"value",valueXField:"date",fill:we("#861042"),stroke:we("#861042")}));y.columns.template.setAll({cornerRadiusTL:2,cornerRadiusTR:2,fillOpacity:.25,strokeWidth:1});const v=y.set("tooltip",vn.new(a,{paddingBottom:4,paddingLeft:8,paddingRight:8,paddingTop:4,pointerOrientation:"horizontal"}));v.label.set("text","Performance des ausgewählten Zeitraums: [bold]{valueY}%[/]"),v.label.setAll({fill:we("#ffffff")}),y.data.setAll(cte(i,t)),l.set("cursor",oa.new(a,{xAxis:u})).lineY.set("visible",!1),l.set("scrollbarX",sa.new(a,{orientation:"horizontal"}));const _=l.get("scrollbarX");return _.thumb.setAll({fill:we("#002940"),fillOpacity:.1,height:4,minHeight:4}),_.startGrip.set("scale",.5),_.endGrip.set("scale",.5),l.zoomOutButton.setAll({background:xr.new(a,{blur:0,fill:we("#861042"),fillOpacity:1,radius:2}),cursorOverStyle:"pointer"}
107),f.appear(1e3,100),y.appear(1e3,100),l.appear(1e3,100),()=>{a.dispose()}},[i,t]),i?d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"card-body pt-0",children:d.jsx("div",{id:"dfo-chart--performance-ot"})}),d.jsx("div",{className:"card-footer px-4 py-3",children:d.jsxs("div",{className:"d-flex flex-column flex-md-row justify-content-between",children:[d.jsxs("div",{className:"d-flex flex-column flex-md-row align-items-md-center",children:[d.jsx("div",{children:d.jsxs("select",{defaultValue:t,className:"form-select form-select-sm",onChange:a=>r(a.target.value),children:[d.jsx("option",{value:"day",children:"Täglich"}),d.jsx("option",{value:"week",children:"Wöchentlich"}),d.jsx("option",{value:"month",children:"Monatlich"}),d.jsx("option",{value:"year",children:"Jährlich"})]})}),d.jsx("div",{className:"flex-grow-1 ms-md-3",children:d.jsx("span",{className:"small text-body-secondary",children:"Granularität der Anzeige"})})]}),d.jsx(lm,{widget:"Performance im Zeitverlauf"})]})})]}):d.jsxs(vt,{baseColor:"#f1f5f9",highlightColor:"#cbd5e1",children:[d.jsx("div",{className:"card-body",children:d.jsx("div",{className:"fs-3",children:d.jsx(ce,{height:260})})}),d.jsxs("div",{className:"card-footer d-flex justify-content-between align-items-center",children:[d.jsxs("div",{className:"d-flex align-items-center",children:[d.jsx("div",{children:d.jsx(ce,{height:31,width:137})}),d.jsx("div",{className:"flex-grow-1 ms-3",children:d.jsx("span",{className:"small",children:d.jsx(ce,{width:222})})})]}),d.jsx(ce,{width:190})]})]})}function fte({leid:n,preset:e}){const[t,r]=E.useState(null);return E.useEffect(()=>{const i=`/qplix?le=${n}&p=${e}`;fetch(i).then(s=>s.json()).then(s=>{const a=Nl(s);a&&r(a.name)})},[]),t?d.jsx(d.Fragment,{children:t}):d.jsx(vt,{baseColor:"#f1f5f9",highlightColor:"#cbd5e1",children:d.jsx(ce,{width:280})})}const hte=n=>{const e=n.values[1].rawValue,t=[];for(const[r,i]of Object.entries(e))t.push({date:r,value:lt.round(i,3)});return t};function pte({leid:n,preset:e}){const[t,r]=E.useState(null);return E.useEffect(()=>{const i=`/qplix?le=${n}&p=${e}`;fetch(i).then(s=>s.json()).then(s=>{const a=Nl(s);a&&r(a)})},[]),E.useEffect(()=>{if(t===null)return;const i=hte(t);let s=ma.new("dfo-chart--nav-ot");const a=ws.new(s);a.rule("Label").setAll({fill:we("#64748b"),fontSize:"0.875em"}),s.setThemes([Rl.new(s),a]),s.dateFormatter.setAll({dateFormat:"yyyy-MM-dd",dateFields:["valueX"]}),s.numberFormatter.setAll({intlLocales:"de-DE",numberFormat:{style:"decimal",minimumFractionDigits:2}});let o=s.container.children.push(aa.new(s,{focusable:!0,panX:!0,panY:!0,wheelX:"panX",wheelY:"zoomX",pinchZoomX:!0,paddingLeft:0})),l=o.xAxes.push(la.new(s,{maxDeviation:.1,groupData:!1,baseInterval:{timeUnit:"day",count:1},renderer:Vi.new(s,{minorGridEnabled:!0,minGridDistance:70}),tooltip:vn.new(s,{paddingBottom:4,paddingLeft:8,paddingRight:8,paddingTop:4})})),u=o.yAxes.push($i.new(s,{extraTooltipPrecision:1,numberFormat:"#a 'â¬'",renderer:ua.new(s,{}),tooltipNumberFormat:"#.###,## 'â¬'"}));(g=>{const y=o.series.push(ca.new(s,{connect:!0,fill:we("#861042"),minBulletDistance:10,stroke:we("#861042"),valueXField:"date",valueYField:"value",xAxis:l,yAxis:u}));y.fills.template.setAll({fillOpacity:.2,visible:!0}),y.strokes.template.setAll({strokeWidth:1}),y.data.processor=lv.new(s,{dateFormat:"dd.mm.yyyy",dateFields:["date"]}),y.data.setAll(i),y.bullets.push(function(){let x=gf.new(s,{radius:3,fill:s.interfaceColors.get("background"),stroke:y.get("fill"),strokeWidth:1});return ul.new(s,{sprite:x})});const v=y.set("tooltip",vn.new(s,{paddingBottom:4,paddingLeft:8,paddingRight:8,paddingTop:4,pointerOrientation:"horizontal"}));v.label.set("text","[bold]{valueY} â¬[/]"),v.label.setAll({fill:we("#ffffff")})})(),o.set("cursor",oa.new(s,{xAxis:l,behavior:"none"})).lineY.set("visible",!1),o.set("scrollbarX",sa.new(s,{orientation:"horizontal"}));const m=o.get("scrollbarX");m.thumb.setAll({fill:we("#002940"),fillOpacity:.1,height:4,minHeight:4}),m.startGrip.set("scale",.5),m.endGrip.set("scale",.5),o.zoomOutButton.setAll({background:xr.new(s,{blur:0,fill:we("#861042"),fillOpacity:1,radius:2}),cursorOverStyle:"pointer"}),o.appear(1e3,100)},[t]),t?d.jsx("div",{className:"card-body pt-0",children:d.jsx("div",{id:"dfo-chart--nav-ot"})}):d.jsx(vt,{baseColor:"#f1f5f9",highlightColor:"#cbd5e1",children:d.jsx("div",{className:"card-body",children:d.jsx("div",{className:"fs-3",children:d.jsx(ce,{height:238})})})})}const iu=n=>n==="0,00"?"0":n,gte=n=>({navBegin:{raw:n.values[10].rawValue,value:iu(n.values[10].value)},navEnd:{raw:n.values[11].rawValue,value:iu(n.values[11].value)},inflows:{raw:n.values[12].rawValue,value:iu(n.values[12].value)},outflows:{raw:n.values[13].rawValue,value:iu(n.values[13].value)},taxes:{raw:n.values[8].rawValue,value:iu(n.values[8].value)},yields:{raw:n.values[9].rawValue,value:iu(n.values[9].value)}});
107function mte({leid:n,preset:e}){const[t,r]=E.useState(null);return E.useEffect(()=>{const i=`/qplix?le=${n}&p=${e}`;fetch(i).then(s=>s.json()).then(s=>{const a=Nl(s);a&&r(a)})},[]),E.useEffect(()=>{if(t===null)return;const i=gte(t),s=ma.new("dfo-chart--waterfall"),a=ws.new(s);a.rule("Label").setAll({fill:we("#64748b"),fontSize:"0.875em"}),s.setThemes([Rl.new(s),a]);const o=s.container.children.push(aa.new(s,{paddingLeft:0,panX:!1,panY:!1})),l=Vi.new(s,{minGridDistance:32,minorGridEnabled:!0}),u=o.xAxes.push(oo.new(s,{categoryField:"category",maxDeviation:0,renderer:l}));l.grid.template.setAll({location:1});const h=o.yAxes.push($i.new(s,{maxDeviation:0,min:0,numberFormat:"#a 'â¬'",renderer:ua.new(s,{strokeOpacity:.1})})),f=o.series.push(vl.new(s,{categoryXField:"category",openValueYField:"open",valueYField:"value",xAxis:u,yAxis:h}));f.columns.template.setAll({cornerRadiusTL:2,cornerRadiusTR:2,fill:we("#861042"),fillOpacity:.2,showTooltipOn:"always",stroke:we("#861042"),strokeOpacity:1,strokeWidth:1,templateField:"columnConfig",tooltipText:"{displayValue} â¬",tooltipY:0}),f.columns.template.setup=function(x){x.set("tooltip",vn.new(s,{paddingBottom:4,paddingLeft:8,paddingRight:8,paddingTop:4,pointerOrientation:"down"}))},f.bullets.push(function(){return ul.new(s,{sprite:pi.new(s,{centerY:He,centerX:He})})});const m=o.series.push(xf.new(s,{categoryXField:"category",locationX:.65,noRisers:!0,stroke:s.interfaceColors.get("alternativeBackground"),valueYField:"stepValue",xAxis:u,yAxis:h}));m.strokes.template.setAll({strokeDasharray:[3,3]});const g=[{category:"Beginn",displayValue:i.navBegin.value,open:0,stepValue:i.navBegin.raw,value:i.navBegin.raw},{category:"Zuflüsse",displayValue:i.inflows.value,open:i.navBegin.raw,stepValue:i.navBegin.raw+i.inflows.raw,value:i.navBegin.raw+i.inflows.raw},{category:"Abflüsse",displayValue:i.outflows.value,open:i.navBegin.raw+i.inflows.raw,stepValue:i.navBegin.raw+i.inflows.raw+i.outflows.raw,value:i.navBegin.raw+i.inflows.raw+i.outflows.raw},{category:"Steuern",displayValue:i.taxes.value,open:i.navBegin.raw+i.inflows.raw+i.outflows.raw,stepValue:i.navBegin.raw+i.inflows.raw+i.outflows.raw+i.taxes.raw,value:i.navBegin.raw+i.inflows.raw+i.outflows.raw+i.taxes.raw},{category:"Erträge",displayValue:i.yields.value,open:i.navBegin.raw+i.inflows.raw+i.outflows.raw+i.taxes.raw,stepValue:i.navBegin.raw+i.inflows.raw+i.outflows.raw+i.taxes.raw+i.yields.raw,value:i.navBegin.raw+i.inflows.raw+i.outflows.raw+i.taxes.raw+i.yields.raw},{category:"Ende",displayValue:i.navEnd.value,open:0,stepValue:i.navEnd.raw,value:i.navEnd.raw}];u.data.setAll(g),f.data.setAll(g),m.data.setAll(g),o.set("cursor",oa.new(s,{xAxis:u})).lineY.set("visible",!1),o.set("scrollbarY",sa.new(s,{orientation:"vertical"}));const v=o.get("scrollbarY");v.thumb.setAll({fill:we("#002940"),fillOpacity:.1,height:4,minHeight:4}),v.startGrip.set("scale",.5),v.endGrip.set("scale",.5),o.zoomOutButton.setAll({background:xr.new(s,{blur:0,fill:we("#861042"),fillOpacity:1,radius:2}),cursorOverStyle:"pointer"}),f.appear(1e3),o.appear(1e3,100)},[t]),t?d.jsx("div",{className:"card-body dfo-widget__scroll",children:d.jsx("div",{id:"dfo-chart--waterfall"})}):d.jsx(vt,{baseColor:"#f1f5f9",highlightColor:"#cbd5e1",children:d.jsx("div",{className:"card-body",children:d.jsx(ce,{height:256})})})}function bx(n,e,t=""){if(n===e)return t;if(Array.isArray(n))for(let r=0;r<n.length;r++){const i=bx(n[r],e,`${t}[${r}]`);if(i!==null)return i}else if(n&&typeof n=="object")for(const r of Object.keys(n)){const i=bx(n[r],e,t?`${t}.${r}`:r);if(i!==null)return i}return null}function vte(n){return n.substring(0,n.lastIndexOf(".subLines["))}function bte(n,e){return e.replace(/\[(\d+)\]/g,".$1").split(".").reduce((t,r)=>t==null?void 0:t[r],n)}function yte(n){return window.location.pathname.split("/").slice(0,-2).join("/")+"/bestand/"+n}function _te({leid:n,preset:e,isin:t}){const[r,i]=E.useState(null);if(t.length===0)return null;if(E.useEffect(()=>{const s=`/qplix?le=${n}&p=${e}`;fetch(s).then(a=>a.json()).then(a=>{var u;const o=bx(a.resultLine,t),l=o?(u=bte(a.resultLine,vte(o)))==null?void 0:u.nodeId:null;i(l||"none")})},[]),r){if(r==="none")return d.jsx("h4",{class:"h6 m-0 fw-bold",children:"Nicht enthalten"});{const s=yte(r);return d.jsx("h4",{class:"h6 m-0 fw-bold",children:d.jsxs("a",{href:s,children:["Position aufrufen",d.jsx("i",{className:"fa-light fa-long-arrow-right ms-1"})]})})}}else return d.jsx(vt,{baseColor:"#f1f5f9",highlightColor:"#cbd5e1",children:d.jsx("div",{className:"fs-6",children:d.jsx(ce,{width:162})})})}
107const On=[];for(let n=0;n<256;++n)On.push((n+256).toString(16).slice(1));function xte(n,e=0){return(On[n[e+0]]+On[n[e+1]]+On[n[e+2]]+On[n[e+3]]+"-"+On[n[e+4]]+On[n[e+5]]+"-"+On[n[e+6]]+On[n[e+7]]+"-"+On[n[e+8]]+On[n[e+9]]+"-"+On[n[e+10]]+On[n[e+11]]+On[n[e+12]]+On[n[e+13]]+On[n[e+14]]+On[n[e+15]]).toLowerCase()}let v_;const wte=new Uint8Array(16);function Ste(){if(!v_){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");v_=crypto.getRandomValues.bind(crypto)}return v_(wte)}const Dte=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),fM={randomUUID:Dte};function Dc(n,e,t){if(fM.randomUUID&&!e&&!n)return fM.randomUUID();n=n||{};const r=n.random||(n.rng||Ste)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,e){t=t||0;for(let i=0;i<16;++i)e[t+i]=r[i];return e}return xte(r)}function bo({title:n,content:e}){if(!e)return null;const t="dfo-help--"+btoa("obhelp"+n).replaceAll("=",""),r=t+"__label";return d.jsxs(d.Fragment,{children:[d.jsxs("button",{type:"button",className:"btn btn-link text-warning btn-sm p-0 text-start float-end","data-bs-toggle":"offcanvas","data-bs-target":"#"+t,"aria-controls":t,children:[d.jsx("i",{className:"fa fa-info-circle me-2","aria-hidden":"true"}),"Erläuterungen"]}),d.jsxs("div",{id:t,className:"offcanvas offcanvas-end",tabIndex:"-1","aria-labelledby":"#"+r,children:[d.jsxs("div",{className:"offcanvas-header bg-primary px-4","data-bs-theme":"dark",children:[d.jsxs("h5",{className:"offcanvas-title text-light",id:r,children:[d.jsx("i",{className:"fa-light fa-info-circle me-2"}),n]}),d.jsx("button",{type:"button",className:"btn-close","data-bs-dismiss":"offcanvas","aria-label":"SchlieÃen"})]}),d.jsx("div",{className:"offcanvas-body px-4 py-4",dangerouslySetInnerHTML:{__html:e}}),d.jsxs("div",{className:"offcanvas-footer d-flex justify-content-between px-4 py-3 bg-light",children:[d.jsxs("button",{type:"button",className:"btn btn-primary btn-sm fw-bold","data-bs-dismiss":"offcanvas",children:[d.jsx("i",{className:"fa-light fa-close fa-fw me-1"}),"SchlieÃen"]}),d.jsxs("a",{href:"#",className:"btn btn-link btn-sm text-muted",children:[d.jsx("i",{className:"fa-light fa-user-headset fa-fw me-1"}),"Persönliche Beratung"]})]})]})]})}function kte({initialData:n}){const[e,t]=E.useState(n.addresses);typeof types>"u"&&(types=[]),typeof countries>"u"&&(countries=[]);const r=s=>{s.preventDefault();const a={id:Dc(),type:"registration",coname:"",street:"",house_number:"",zip:"",city:"",country:"DE"};t([...e,a])},i=s=>{const a=e.filter(o=>o.id!==s);t(a)};return d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"card-body px-4 pt-3 pb-2",children:[d.jsx(Pte,{content:n.help}),d.jsx(Cte,{data:e,types:n.types,countries:n.countries,create:r,remove:i})]}),d.jsx(Mte,{create:r,count:e.length})]})}function Pte({content:n}){return d.jsxs(d.Fragment,{children:[d.jsx(bo,{title:"Addressen",content:n}),d.jsxs("h5",{className:"card-title mt-0 mb-3",children:[d.jsx("i",{className:"fa-light fa-map-marker-alt fa-fw me-2 text-light-blue"}),"Adressen"]})]})}function Cte({data:n,types:e,countries:t,create:r,remove:i}){return Array.isArray(n)&&n.length>0?d.jsx(d.Fragment,{children:n.map((s,a)=>d.jsx(Ete,{address:s,types:e,countries:t,index:a,remove:i},s.id))}):d.jsxs("div",{class:"alert alert-light small text-body-secondary",role:"alert",children:[d.jsx("i",{class:"fa-light fa-circle-info me-2"}),"Bitte hinterlegen Sie eine"," ",d.jsx("a",{href:"#",onClick:r,children:d.jsx("strong",{children:"neue Adresse"})}),"!"]})}function Ete({address:n,types:e,countries:t,index:r,remove:i}){const[s,a]=E.useState(n.id),[o,l]=E.useState(n.type),[u,h]=E.useState(n.coname),[f,m]=E.useState(n.street),[g,y]=E.useState(n.house_number),[v,x]=E.useState(n.zip),[_,S]=E.useState(n.city),[w,k]=E.useState(n.country),P=U=>{l(U.target.value)},j=U=>{h(U.target.value)},A=U=>{m(U.target.value)},M=U=>{y(U.target.value)},L=U=>{x(U.target.value)},I=U=>{S(U.target.value)},V=U=>{k(U.target.value)},Q=U=>{U.preventDefault(),i(s)};return d.jsx("div",{className:"alert alert-light m-0 mb-3 py-3",children:d.jsxs("div",{className:"d-flex align-items-center",children:[d.jsxs("div",{className:"flex-grow-1",children:[d.jsx("div",{className:"row",children:d.jsx("div",{className:"col-12 mb-3",children:d.jsxs("div",{className:"form-floating",children:[d.jsx("select",{name:`addresses[${r}][type]`,id:`dfo-account__address-type--${r}`,className:"form-control",onChange:P,defaultValue:o,required:!0,children:e.map(U=>d.jsx("option",{value:U.value,children:U.label}))}),d.jsx("label",{htmlFor:`dfo-account__address-type--${r}`,children:"Art der Adresse*"})]})})}),o==="co"&&d.jsx("div",{className:"row",children:d.jsx("div",{className:"col-12 mb-3",children:d.jsxs("div",{className:"form-floating",children:[d.jsx("input",{type:"text",name:`addresses[${r}][coname]`,onChange:j,id:`dfo-account__address-coname--${r}`,className:"form-control",placeholder:"c/o-Name",value:u}),d.jsx("label",{htmlFor:`dfo-account__address-coname--${r}`,children:"c/o-Name"})]})})}),d.jsxs("div",{className:"row d-flex",children:[d.jsx("div",{className:"col-8 mb-3",children:d.jsxs("div",{className:"form-floating",children:[d.jsx("input",{type:"text",name:`addresses[${r}
107][street]`,onChange:A,id:`dfo-account__address-street--${r}`,className:"form-control",placeholder:"StraÃe*",required:"required",value:f}),d.jsx("label",{htmlFor:`dfo-account__address-street--${r}`,children:"StraÃe*"})]})}),d.jsx("div",{className:"col-4 mb-3",children:d.jsxs("div",{className:"form-floating",children:[d.jsx("input",{type:"text",name:`addresses[${r}][house_number]`,onChange:M,id:`dfo-account__address-number--${r}`,className:"form-control",placeholder:"Hausnummer*",required:"required",value:g}),d.jsx("label",{htmlFor:`dfo-account__address-number--${r}`,children:"Hausnummer*"})]})})]}),d.jsxs("div",{className:"row d-flex",children:[d.jsx("div",{className:"col-4 col-md-4 mb-3 mb-md-0",children:d.jsxs("div",{className:"form-floating",children:[d.jsx("input",{type:"text",name:`addresses[${r}][zip]`,onChange:L,id:`dfo-account__address-zip--${r}`,className:"form-control",placeholder:"Hausnummer*",required:"required",value:v}),d.jsx("label",{htmlFor:`dfo-account__address-zip--${r}`,children:"PLZ*"})]})}),d.jsx("div",{className:"col-8 col-md-4 mb-3 mb-md-0",children:d.jsxs("div",{className:"form-floating",children:[d.jsx("input",{type:"text",name:`addresses[${r}][city]`,onChange:I,id:`dfo-account__address-city--${r}`,className:"form-control",placeholder:"Stadt*",required:"required",value:_}),d.jsx("label",{htmlFor:`dfo-account__address-city--${r}`,children:"Stadt*"})]})}),d.jsx("div",{className:"col-12 col-md-4 mb-3 mb-md-0",children:d.jsxs("div",{className:"form-floating",children:[d.jsx("select",{name:`addresses[${r}][country]`,id:`dfo-account__address-country--${r}`,className:"form-control",onChange:V,defaultValue:w,required:!0,children:t.map(U=>d.jsx("option",{value:U.value,children:U.label},U.id))}),d.jsx("label",{htmlFor:`dfo-account__address-country--${r}`,children:"Land*"})]})})]})]}),d.jsx("div",{className:"ps-3",children:d.jsx("button",{type:"button",onClick:Q,className:"btn btn-link",title:"Eintrag löschen",children:d.jsx("i",{className:"fa-light fa-xmark"})})})]})})}function Mte({create:n,count:e}){return e<3?d.jsx("div",{className:"card-footer px-4 py-3",children:d.jsxs("button",{type:"button",onClick:n,className:"btn btn-primary btn-sm fw-bold",children:[d.jsx("i",{className:"fa-light fa-plus me-2"}),"Hinzufügen"]})}):""}function _l(n){"@babel/helpers - typeof";return _l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_l(n)}function Tte(n,e){if(_l(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(_l(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function I2(n){var e=Tte(n,"string");return _l(e)=="symbol"?e:e+""}function xd(n,e,t){return(e=I2(e))in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function hM(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function Pe(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?hM(Object(t),!0).forEach(function(r){xd(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):hM(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function Ote(n){if(Array.isArray(n))return n}function Ate(n,e){var t=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var r,i,s,a,o=[],l=!0,u=!1;try{if(s=(t=t.call(n)).next,e===0){if(Object(t)!==t)return;l=!1}else for(;!(l=(r=s.call(t)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(h){u=!0,i=h}finally{try{if(!l&&t.return!=null&&(a=t.return(),Object(a)!==a))return}finally{if(u)throw i}}return o}}function yx(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,r=Array(e);t<e;t++)r[t]=n[t];return r}function N2(n,e){if(n){if(typeof n=="string")return yx(n,e);var t={}.toString.call(n).slice(8,-1);return t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set"?Array.from(n):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?yx(n,e):void 0}}
107function jte(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 108In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zs(n,e){return Ote(n)||Ate(n,e)||N2(n,e)||jte()}function Rte(n,e){if(n==null)return{};var t={};for(var r in n)if({}.hasOwnProperty.call(n,r)){if(e.indexOf(r)!==-1)continue;t[r]=n[r]}return t}function ya(n,e){if(n==null)return{};var t,r,i=Rte(n,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(r=0;r<s.length;r++)t=s[r],e.indexOf(t)===-1&&{}.propertyIsEnumerable.call(n,t)&&(i[t]=n[t])}return i}var Ite=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Nte(n){var e=n.defaultInputValue,t=e===void 0?"":e,r=n.defaultMenuIsOpen,i=r===void 0?!1:r,s=n.defaultValue,a=s===void 0?null:s,o=n.inputValue,l=n.menuIsOpen,u=n.onChange,h=n.onInputChange,f=n.onMenuClose,m=n.onMenuOpen,g=n.value,y=ya(n,Ite),v=E.useState(o!==void 0?o:t),x=Zs(v,2),_=x[0],S=x[1],w=E.useState(l!==void 0?l:i),k=Zs(w,2),P=k[0],j=k[1],A=E.useState(g!==void 0?g:a),M=Zs(A,2),L=M[0],I=M[1],V=E.useCallback(function(R,B){typeof u=="function"&&u(R,B),I(R)},[u]),Q=E.useCallback(function(R,B){var Z;typeof h=="function"&&(Z=h(R,B)),S(Z!==void 0?Z:R)},[h]),U=E.useCallback(function(){typeof m=="function"&&m(),j(!0)},[m]),X=E.useCallback(function(){typeof f=="function"&&f(),j(!1)},[f]),K=o!==void 0?o:_,z=l!==void 0?l:P,F=g!==void 0?g:L;return Pe(Pe({},y),{},{inputValue:K,menuIsOpen:z,onChange:V,onInputChange:Q,onMenuClose:X,onMenuOpen:U,value:F})}function Ae(){return Ae=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},Ae.apply(null,arguments)}function Fte(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function pM(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,I2(r.key),r)}}function Lte(n,e,t){return e&&pM(n.prototype,e),t&&pM(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}function _x(n,e){return _x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},_x(n,e)}function Bte(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&_x(n,e)}function xm(n){return xm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},xm(n)}function F2(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(F2=function(){return!!n})()}function $te(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Vte(n,e){if(e&&(_l(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $te(n)}function Yte(n){var e=F2();return function(){var t,r=xm(n);if(e){var i=xm(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return Vte(this,t)}}function Hte(n){if(Array.isArray(n))return yx(n)}function zte(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function Wte(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 109In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function w1(n){return Hte(n)||zte(n)||N2(n)||Wte()}var Ute=!1;function Gte(n){if(n.sheet)return n.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===n)return document.styleSheets[e]}function Xte(n){var e=document.createElement("style");return e.setAttribute("data-emotion",n.key),n.nonce!==void 0&&e.setAttribute("nonce",n.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var qte=function(){function n(t){var r=this;this._insertTag=function(i){var s;r.tags.length===0?r.insertionPoint?s=r.insertionPoint.nextSibling:r.prepend?s=r.container.firstChild:s=r.before:s=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,s),r.tags.push(i)},this.isSpeedy=t.speedy===void 0?!Ute:t.speedy,this.tags=[],this.ctr=0,this.nonce=t.nonce,this.key=t.key,this.container=t.container,this.prepend=t.prepend,this.insertionPoint=t.insertionPoint,this.before=null}var e=n.prototype;return e.hydrate=function(r){r.forEach(this._insertTag)},e.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Xte(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var s=Gte(i);
vendor: 19,897 bytes, lines 109-116
109try{s.insertRule(r,s.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++},e.flush=function(){this.tags.forEach(function(r){var i;return(i=r.parentNode)==null?void 0:i.removeChild(r)}),this.tags=[],this.ctr=0},n}(),Hn="-ms-",wm="-moz-",st="-webkit-",L2="comm",S1="rule",D1="decl",Kte="@import",B2="@keyframes",Qte="@layer",Zte=Math.abs,bv=String.fromCharCode,Jte=Object.assign;function ene(n,e){return Rn(n,0)^45?(((e<<2^Rn(n,0))<<2^Rn(n,1))<<2^Rn(n,2))<<2^Rn(n,3):0}function $2(n){return n.trim()}function tne(n,e){return(n=e.exec(n))?n[0]:n}function at(n,e,t){return n.replace(e,t)}function xx(n,e){return n.indexOf(e)}function Rn(n,e){return n.charCodeAt(e)|0}function kf(n,e,t){return n.slice(e,t)}function Ji(n){return n.length}function k1(n){return n.length}function Ap(n,e){return e.push(n),n}function nne(n,e){return n.map(e).join("")}var yv=1,lc=1,V2=0,wr=0,on=0,kc="";function _v(n,e,t,r,i,s,a){return{value:n,root:e,parent:t,type:r,props:i,children:s,line:yv,column:lc,length:a,return:""}}function ld(n,e){return Jte(_v("",null,null,"",null,null,0),n,{length:-n.length},e)}function rne(){return on}function ine(){return on=wr>0?Rn(kc,--wr):0,lc--,on===10&&(lc=1,yv--),on}function Br(){return on=wr<V2?Rn(kc,wr++):0,lc++,on===10&&(lc=1,yv++),on}function ms(){return Rn(kc,wr)}function hg(){return wr}function Jf(n,e){return kf(kc,n,e)}function Pf(n){switch(n){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Y2(n){return yv=lc=1,V2=Ji(kc=n),wr=0,[]}function H2(n){return kc="",n}function pg(n){return $2(Jf(wr-1,wx(n===91?n+2:n===40?n+1:n)))}function sne(n){for(;(on=ms())&&on<33;)Br();return Pf(n)>2||Pf(on)>3?"":" "}function ane(n,e){for(;--e&&Br()&&!(on<48||on>102||on>57&&on<65||on>70&&on<97););return Jf(n,hg()+(e<6&&ms()==32&&Br()==32))}function wx(n){for(;Br();)switch(on){case n:return wr;case 34:case 39:n!==34&&n!==39&&wx(on);break;case 40:n===41&&wx(n);break;case 92:Br();break}return wr}function one(n,e){for(;Br()&&n+on!==47+10;)if(n+on===42+42&&ms()===47)break;return"/*"+Jf(e,wr-1)+"*"+bv(n===47?n:Br())}function lne(n){for(;!Pf(ms());)Br();return Jf(n,wr)}function une(n){return H2(gg("",null,null,null,[""],n=Y2(n),0,[0],n))}function gg(n,e,t,r,i,s,a,o,l){for(var u=0,h=0,f=a,m=0,g=0,y=0,v=1,x=1,_=1,S=0,w="",k=i,P=s,j=r,A=w;x;)switch(y=S,S=Br()){case 40:if(y!=108&&Rn(A,f-1)==58){xx(A+=at(pg(S),"&","&\f"),"&\f")!=-1&&(_=-1);break}case 34:case 39:case 91:A+=pg(S);break;case 9:case 10:case 13:case 32:A+=sne(y);break;case 92:A+=ane(hg()-1,7);continue;case 47:switch(ms()){case 42:case 47:Ap(cne(one(Br(),hg()),e,t),l);break;default:A+="/"}break;case 123*v:o[u++]=Ji(A)*_;case 125*v:case 59:case 0:switch(S){case 0:case 125:x=0;case 59+h:_==-1&&(A=at(A,/\f/g,"")),g>0&&Ji(A)-f&&Ap(g>32?mM(A+";",r,t,f-1):mM(at(A," ","")+";",r,t,f-2),l);break;case 59:A+=";";default:if(Ap(j=gM(A,e,t,u,h,i,o,w,k=[],P=[],f),s),S===123)if(h===0)gg(A,e,j,j,k,s,f,o,P);else switch(m===99&&Rn(A,3)===110?100:m){case 100:case 108:case 109:case 115:gg(n,j,j,r&&Ap(gM(n,j,j,0,0,i,o,w,i,k=[],f),P),i,P,f,o,r?k:P);break;default:gg(A,j,j,j,[""],P,0,o,P)}}u=h=g=0,v=_=1,w=A="",f=a;break;case 58:f=1+Ji(A),g=y;default:if(v<1){if(S==123)--v;else if(S==125&&v++==0&&ine()==125)continue}switch(A+=bv(S),S*v){case 38:_=h>0?1:(A+="\f",-1);break;case 44:o[u++]=(Ji(A)-1)*_,_=1;break;case 64:ms()===45&&(A+=pg(Br())),m=ms(),h=f=Ji(w=A+=lne(hg())),S++;break;case 45:y===45&&Ji(A)==2&&(v=0)}}return s}function gM(n,e,t,r,i,s,a,o,l,u,h){for(var f=i-1,m=i===0?s:[""],g=k1(m),y=0,v=0,x=0;y<r;++y)for(var _=0,S=kf(n,f+1,f=Zte(v=a[y])),w=n;_<g;++_)(w=$2(v>0?m[_]+" "+S:at(S,/&\f/g,m[_])))&&(l[x++]=w);return _v(n,e,t,i===0?S1:o,l,u,h)}function cne(n,e,t){return _v(n,e,t,L2,bv(rne()),kf(n,2,-2),0)}function mM(n,e,t,r){return _v(n,e,t,D1,kf(n,0,r),kf(n,r+1,-1),r)}function Nu(n,e){for(var t="",r=k1(n),i=0;i<r;i++)t+=e(n[i],i,n,e)||"";return t}function dne(n,e,t,r){switch(n.type){case Qte:if(n.children.length)break;case Kte:case D1:return n.return=n.return||n.value;case L2:return"";case B2:return n.return=n.value+"{"+Nu(n.children,r)+"}";case S1:n.value=n.props.join(",")}return Ji(t=Nu(n.children,r))?n.return=n.value+"{"+t+"}":""}function fne(n){var e=k1(n);return function(t,r,i,s){for(var a="",o=0;o<e;o++)a+=n[o](t,r,i,s)||"";return a}}function hne(n){return function(e){e.root||(e=e.return)&&n(e)}}function pne(n){var e=Object.create(null);return function(t){return e[t]===void 0&&(e[t]=n(t)),e[t]}}var gne=function(e,t,r){for(var i=0,s=0;i=s,s=ms(),i===38&&s===12&&(t[r]=1),!Pf(s);)Br();return Jf(e,wr)},mne=function(e,t){var r=-1,i=44;do switch(Pf(i)){case 0:i===38&&ms()===12&&(t[r]=1),e[r]+=gne(wr-1,t,r);break;case 2:e[r]+=pg(i);break;case 4:if(i===44){e[++r]=ms()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=bv(i)}while(i=Br());return e},vne=function(e,t){return H2(mne(Y2(e),t))},vM=new WeakMap,bne=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,r=e.parent,i=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!vM.get(r))&&!i){vM.set(e,!0);for(var s=[],a=vne(t,s),o=r.props,l=0,u=0;l<a.length;l++)for(var h=0;h<o.length;h++,u++)e.props[u]=s[l]?a[l].replace(/&\f/g,o[h]):o[h]+" "+a[l]}}},yne=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};function z2(n,e){switch(ene(n,e)){case 5103:return st+"print-"+n+n;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return st+n+n;case 5349:case 4246:case 4810:case 6968:case 2756:return st+n+wm+n+Hn+n+n;case 6828:case 4268:return st+n+Hn+n+n;case 6165:return st+n+Hn+"flex-"+n+n;case 5187:return st+n+at(n,/(\w+).+(:[^]+)/,st+"box-$1$2"+Hn+"flex-$1$2")+n;case 5443:return st+n+Hn+"flex-item-"+at(n,/flex-|-self/,"")+n;case 4675:return st+n+Hn+"flex-line-pack"+at(n,/align-content|flex-|-self/,"")+n;case 5548:return st+n+Hn+at(n,"shrink","negative")+n;case 5292:return st+n+Hn+at(n,"basis","preferred-size")+n;case 6060:return st+"box-"+at(n,"-grow","")+st+n+Hn+at(n,"grow","positive")+n;case 4554:return st+at(n,/([^-])(transform)/g,"$1"+st+"$2")+n;case 6187:return at(at(at(n,/(zoom-|grab)/,st+"$1"),/(image-set)/,st+"$1"),n,"")+n;case 5495:case 3959:return at(n,/(image-set\([^]*)/,st+"$1$`$1");case 4968:return at(at(n,/(.+:)(flex-)?(.*)/,st+"box-pack:$3"+Hn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+st+n+n;case 4095:case 3583:case 4068:case 2532:return at(n,/(.+)-inline(.+)/,st+"$1$2")+n;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ji(n)-1-e>6)switch(Rn(n,e+1)){case 109:if(Rn(n,e+4)!==45)break;case 102:return at(n,/(.+:)(.+)-([^]+)/,"$1"+st+"$2-$3$1"+wm+(Rn(n,e+3)==108?"$3":"$2-$3"))+n;case 115:return~xx(n,"stretch")?z2(at(n,"stretch","fill-available"),e)+n:n}break;case 4949:if(Rn(n,e+1)!==115)break;case 6444:switch(Rn(n,Ji(n)-3-(~xx(n,"!important")&&10))){case 107:return at(n,":",":"+st)+n;case 101:return at(n,/(.+:)([^;!]+)(;|!.+)?/,"$1"+st+(Rn(n,14)===45?"inline-":"")+"box$3$1"+st+"$2$3$1"+Hn+"$2box$3")+n}break;case 5936:switch(Rn(n,e+11)){case 114:return st+n+Hn+at(n,/[svh]\w+-[tblr]{2}/,"tb")+n;case 108:return st+n+Hn+at(n,/[svh]\w+-[tblr]{2}/,"tb-rl")+n;case 45:return st+n+Hn+at(n,/[svh]\w+-[tblr]{2}/,"lr")+n}return st+n+Hn+n+n}return n}var _ne=function(e,t,r,i){if(e.length>-1&&!e.return)switch(e.type){case D1:e.return=z2(e.value,e.length);break;case B2:return Nu([ld(e,{value:at(e.value,"@","@"+st)})],i);case S1:if(e.length)return nne(e.props,function(s){switch(tne(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Nu([ld(e,{props:[at(s,/:(read-\w+)/,":"+wm+"$1")]})],i);case"::placeholder":return Nu([ld(e,{props:[at(s,/:(plac\w+)/,":"+st+"input-$1")]}),ld(e,{props:[at(s,/:(plac\w+)/,":"+wm+"$1")]}),ld(e,{props:[at(s,/:(plac\w+)/,Hn+"input-$1")]})],i)}return""})}},xne=[_ne],wne=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(v){var x=v.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var i=e.stylisPlugins||xne,s={},a,o=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(v){for(var x=v.getAttribute("data-emotion").split(" "),_=1;_<x.length;_++)s[x[_]]=!0;o.push(v)});var l,u=[bne,yne];{var h,f=[dne,hne(function(v){h.insert(v)})],m=fne(u.concat(i,f)),g=function(x){return Nu(une(x),m)};l=function(x,_,S,w){h=S,g(x?x+"{"+_.styles+"}":_.styles),w&&(y.inserted[_.name]=!0)}}var y={key:t,sheet:new qte({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:l};return y.sheet.hydrate(o),y},W2={exports:{}},yt={};/** @license React v16.13.1 110 * react-is.production.min.js 111 * 112 * Copyright (c) Facebook, Inc. and its affiliates. 113 * 114 * This source code is licensed under the MIT license found in the 115 * LICENSE file in the root directory of this source tree. 116 */var Cn=typeof Symbol=="function"&&Symbol.for,P1=Cn?Symbol.for("react.element"):60103,C1=Cn?Symbol.for("react.portal"):60106,xv=Cn?Symbol.for("react.fragment"):60107,wv=Cn?Symbol.for("react.strict_mode"):60108,Sv=Cn?Symbol.for("react.profiler"):60114,Dv=Cn?Symbol.for("react.provider"):60109,kv=Cn?Symbol.for("react.context"):60110,E1=Cn?Symbol.for("react.async_mode"):60111,Pv=Cn?Symbol.for("react.concurrent_mode"):60111,Cv=Cn?Symbol.for("react.forward_ref"):60112,Ev=Cn?Symbol.for("react.suspense"):60113,Sne=Cn?Symbol.for("react.suspense_list"):60120,Mv=Cn?Symbol.for("react.memo"):60115,Tv=Cn?Symbol.for("react.lazy"):60116,Dne=Cn?Symbol.for("react.block"):60121,kne=Cn?Symbol.for("react.fundamental"):60117,Pne=Cn?Symbol.for("react.responder"):60118,Cne=Cn?Symbol.for("react.scope"):60119;function Gr(n){if(typeof n=="object"&&n!==null){var e=n.$$typeof;switch(e){case P1:switch(n=n.type,n){case E1:case Pv:case xv:case Sv:case wv:case Ev:return n;default:switch(n=n&&n.$$typeof,n){case kv:case Cv:case Tv:case Mv:case Dv:return n;default:return e}}case C1:return e}}}function U2(n){return Gr(n)===Pv}yt.AsyncMode=E1;yt.ConcurrentMode=Pv;yt.ContextConsumer=kv;yt.ContextProvider=Dv;yt.Element=P1;yt.ForwardRef=Cv;yt.Fragment=xv;yt.Lazy=Tv;yt.Memo=Mv;yt.Portal=C1;yt.Profiler=Sv;yt.StrictMode=wv;yt.Suspense=Ev;yt.isAsyncMode=function(n){return U2(n)||Gr(n)===E1};yt.isConcurrentMode=U2;yt.isContextConsumer=function(n){return Gr(n)===kv};yt.isContextProvider=function(n){return Gr(n)===Dv};yt.isElement=function(n){return typeof n=="object"&&n!==null&&n.$$typeof===P1};yt.isForwardRef=function(n){return Gr(n)===Cv};yt.isFragment=function(n){return Gr(n)===xv};yt.isLazy=function(n){return Gr(n)===Tv};yt.isMemo=function(n){return Gr(n)===Mv};yt.isPortal=function(n){return Gr(n)===C1};yt.isProfiler=function(n){return Gr(n)===Sv};yt.isStrictMode=function(n){return Gr(n)===wv};yt.isSuspense=function(n){return Gr(n)===Ev};yt.isValidElementType=function(n){return typeof n=="string"||typeof n=="function"||n===xv||n===Pv||n===Sv||n===wv||n===Ev||n===Sne||typeof n=="object"&&n!==null&&(n.$$typeof===Tv||n.$$typeof===Mv||n.$$typeof===Dv||n.$$typeof===kv||n.$$typeof===Cv||n.$$typeof===kne||n.$$typeof===Pne||n.$$typeof===Cne||n.$$typeof===Dne)};yt.typeOf=Gr;W2.exports=yt;var Ene=W2.exports,G2=Ene,Mne={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Tne={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},X2={};X2[G2.ForwardRef]=Mne;X2[G2.Memo]=Tne;var One=!0;function Ane(n,e,t){var r="";return t.split(" ").forEach(function(i){n[i]!==void 0?e.push(n[i]+";"):i&&(r+=i+" ")}),r}var q2=function(e,t,r){var i=e.key+"-"+t.name;(r===!1||One===!1)&&e.registered[i]===void 0&&(e.registered[i]=t.styles)},jne=function(e,t,r){q2(e,t,r);var i=e.key+"-"+t.name;if(e.inserted[t.name]===void 0){var s=t;do e.insert(t===s?"."+i:"",s,e.sheet,!0),s=s.next;while(s!==void 0)}};function Rne(n){for(var e=0,t,r=0,i=n.length;i>=4;++r,i-=4)t=n.charCodeAt(r)&255|(n.charCodeAt(++r)&255)<<8|(n.charCodeAt(++r)&255)<<16|(n.charCodeAt(++r)&255)<<24,t=(t&65535)*1540483477+((t>>>16)*59797<<16),t^=t>>>24,e=(t&65535)*1540483477+((t>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(i){case 3:e^=(n.charCodeAt(r+2)&255)<<16;case 2:e^=(n.charCodeAt(r+1)&255)<<8;case 1:e^=n.charCodeAt(r)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var Ine={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},Nne=!1,Fne=/[A-Z]|^ms/g,Lne=/_EMO_([^_]+?)_([^]*?)_EMO_/g,K2=function(e){return e.charCodeAt(1)===45},bM=function(e){return e!=null&&typeof e!="boolean"},b_=pne(function(n){return K2(n)?n:n.replace(Fne,"-$&").toLowerCase()}),yM=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(Lne,function(r,i,s){return es={name:i,styles:s,next:es},i})}return Ine[e]!==1&&!K2(e)&&typeof t=="number"&&t!==0?t+"px":t},Bne="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Cf(n,e,t){if(t==null)return"";var r=t;if(r.__emotion_styles!==void 0)return r;switch(typeof t){case"boolean":return"";case"object":{var i=t;if(i.anim===1)return es={name:i.name,styles:i.styles,next:es},i.name;var s=t;if(s.styles!==void 0){var a=s.next;if(a!==void 0)for(;a!==void 0;)es={name:a.name,styles:a.styles,next:es},a=a.next;var o=s.styles+";";return o}return $ne(n,e,t)}case"function":{if(n!==void 0){var l=es,u=t(n);return es=l,Cf(n,e,u)}break}}var h=t;if(e==null)return h;var f=e[h];return f!==void 0?f:h}function $ne(n,e,t){var r="";if(Array.isArray(t))for(var i=0;i<t.length;i++)r+=Cf(n,e,t[i])+";";else for(var s in t){var a=t[s];if(typeof a!="object"){var o=a;e!=null&&e[o]!==void 0?r+=s+"{"+e[o]+"}":bM(o)&&(r+=b_(s)+":"+yM(s,o)+";")}else{if(s==="NO_COMPONENT_SELECTOR"&&Nne)throw new Error(Bne);if(Array.isArray(a)&&typeof a[0]=="string"&&(e==null||e[a[0]]===void 0))for(var l=0;l<a.length;l++)bM(a[l])&&(r+=b_(s)+":"+yM(s,a[l])+";");else{var u=Cf(n,e,a);switch(s){case"animation":case"animationName":{r+=b_(s)+":"+u+";";break}default:r+=s+"{"+u+"}"}}}}return r}var _M=/label:\s*([^\s;{]+)\s*(;|$)/g,es;function Q2(n,e,t){if(n.length===1&&typeof n[0]=="object"&&n[0]!==null&&n[0].styles!==void 0)return n[0];var r=!0,i="";es=void 0;var s=n[0];if(s==null||s.raw===void 0)r=!1,i+=Cf(t,e,s);else{var a=s;i+=a[0]}for(var o=1;o<n.length;o++)if(i+=Cf(t,e,n[o]),r){var l=s;i+=l[o]}_M.lastIndex=0;for(var u="",h;(h=_M.exec(i))!==null;)u+="-"+h[1];var f=Rne(i)+u;return{name:f,styles:i,next:es}}var Vne=function(e){return e()},Yne=yg["useInsertionEffect"]?yg["useInsertionEffect"]:!1,Hne=Yne||Vne,zne=!1,Z2=E.createContext(typeof HTMLElement<"u"?wne({key:"css"}):null);Z2.Provider;var Wne=function(e){return E.forwardRef(function(t,r){var i=E.useContext(Z2);return e(t,i,r)})},Une=E.createContext({}),M1={}.hasOwnProperty,Sx="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Gne=function(e,t){var r={};for(var i in t)M1.call(t,i)&&(r[i]=t[i]);return r[Sx]=e,r},Xne=function(e){var t=e.cache,r=e.serialized,i=e.isStringTag;return q2(t,r,i),Hne(function(){return jne(t,r,i)}),null},qne=Wne(function(n,e,t){var r=n.css;typeof r=="string"&&e.registered[r]!==void 0&&(r=e.registered[r]);var i=n[Sx],s=[r],a="";typeof n.className=="string"?a=Ane(e.registered,s,n.className):n.className!=null&&(a=n.className+" ");var o=Q2(s,void 0,E.useContext(Une));a+=e.key+"-"+o.name;var l={};for(var u in n)M1.call(n,u)&&u!=="css"&&u!==Sx&&!zne&&(l[u]=n[u]);return l.className=a,t&&(l.ref=t),E.createElement(E.Fragment,null,E.createElement(Xne,{cache:e,serialized:o,isStringTag:typeof i=="string"}),E.createElement(i,l))}),Kne=qne,De=function(e,t){var r=arguments;if(t==null||!M1.call(t,"css"))return E.createElement.apply(void 0,r);var i=r.length,s=new Array(i);s[0]=Kne,s[1]=Gne(e,t);for(var a=2;a<i;a++)s[a]=r[a];return E.createElement.apply(null,s)};function T1(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return Q2(e)}var Qne=function(){var e=T1.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}};function Zne(n,e){return e||(e=n.slice(0)),Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(e)}}))}var Dx=E.useLayoutEffect,Jne=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Sm=function(){};function ere(n,e){return e?e[0]==="-"?n+e:n+"__"+e:n}function tre(n,e){for(var t=arguments.length,r=new Array(t>2?t-2:0),i=2;i<t;i++)r[i-2]=arguments[i];var s=[].concat(r);if(e&&n)for(var a in e)e.hasOwnProperty(a)&&e[a]&&s.push("".concat(ere(n,a)));return s.filter(function(o){return o}).map(function(o){return String(o).trim()}).join(" ")}var xM=function(e){return cre(e)?e.filter(Boolean):_l(e)==="object"&&e!==null?[e]:[]},J2=function(e){e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme;var t=ya(e,Jne);return Pe({},t)},Kt=function(e,t,r){var i=e.cx,s=e.getStyles,a=e.getClassNames,o=e.className;return{css:s(t,e),className:i(r??{},a(t,e),o)}};function Ov(n){return[document.documentElement,document.body,window].indexOf(n)>-1}function nre(n){return Ov(n)?window.innerHeight:n.clientHeight}function eI(n){return Ov(n)?window.pageYOffset:n.scrollTop}function Dm(n,e){if(Ov(n)){window.scrollTo(0,e);return}n.scrollTop=e}function rre(n){var e=getComputedStyle(n),t=e.position==="absolute",r=/(auto|scroll)/;if(e.position==="fixed")return document.documentElement;for(var i=n;i=i.parentElement;)if(e=getComputedStyle(i),!(t&&e.position==="static")&&r.test(e.overflow+e.overflowY+e.overflowX))return i;return document.documentElement}function ire(n,e,t,r){return t*((n=n/r-1)*n*n+1)+e}function jp(n,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Sm,i=eI(n),s=e-i,a=10,o=0;function l(){o+=a;var u=ire(o,i,s,t);Dm(n,u),o<t?window.requestAnimationFrame(l):r(n)}l()}function wM(n,e){var t=n.getBoundingClientRect(),r=e.getBoundingClientRect(),i=e.offsetHeight/3;r.bottom+i>t.bottom?Dm(n,Math.min(e.offsetTop+e.clientHeight-n.offsetHeight+i,n.scrollHeight)):r.top-i<t.top&&Dm(n,Math.max(e.offsetTop-i,0))}function sre(n){var e=n.getBoundingClientRect();return{bottom:e.bottom,height:e.height,left:e.left,right:e.right,top:e.top,width:e.width}}function SM(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function are(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}
116var tI=!1,ore={get passive(){return tI=!0}},Rp=typeof window<"u"?window:{};Rp.addEventListener&&Rp.removeEventListener&&(Rp.addEventListener("p",Sm,ore),Rp.removeEventListener("p",Sm,!1));var lre=tI;function ure(n){return n!=null}function cre(n){return Array.isArray(n)}function Ip(n,e,t){return n?e:t}var dre=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];var s=Object.entries(e).filter(function(a){var o=Zs(a,1),l=o[0];return!r.includes(l)});return s.reduce(function(a,o){var l=Zs(o,2),u=l[0],h=l[1];return a[u]=h,a},{})},fre=["children","innerProps"],hre=["children","innerProps"];function pre(n){var e=n.maxHeight,t=n.menuEl,r=n.minHeight,i=n.placement,s=n.shouldScroll,a=n.isFixedPosition,o=n.controlHeight,l=rre(t),u={placement:"bottom",maxHeight:e};if(!t||!t.offsetParent)return u;var h=l.getBoundingClientRect(),f=h.height,m=t.getBoundingClientRect(),g=m.bottom,y=m.height,v=m.top,x=t.offsetParent.getBoundingClientRect(),_=x.top,S=a?window.innerHeight:nre(l),w=eI(l),k=parseInt(getComputedStyle(t).marginBottom,10),P=parseInt(getComputedStyle(t).marginTop,10),j=_-P,A=S-v,M=j+w,L=f-w-v,I=g-S+w+k,V=w+v-P,Q=160;switch(i){case"auto":case"bottom":if(A>=y)return{placement:"bottom",maxHeight:e};if(L>=y&&!a)return s&&jp(l,I,Q),{placement:"bottom",maxHeight:e};if(!a&&L>=r||a&&A>=r){s&&jp(l,I,Q);var U=a?A-k:L-k;return{placement:"bottom",maxHeight:U}}if(i==="auto"||a){var X=e,K=a?j:M;return K>=r&&(X=Math.min(K-k-o,e)),{placement:"top",maxHeight:X}}if(i==="bottom")return s&&Dm(l,I),{placement:"bottom",maxHeight:e};break;case"top":if(j>=y)return{placement:"top",maxHeight:e};if(M>=y&&!a)return s&&jp(l,V,Q),{placement:"top",maxHeight:e};if(!a&&M>=r||a&&j>=r){var z=e;return(!a&&M>=r||a&&j>=r)&&(z=a?j-P:M-P),s&&jp(l,V,Q),{placement:"top",maxHeight:z}}return{placement:"bottom",maxHeight:e};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return u}function gre(n){var e={bottom:"top",top:"bottom"};return n?e[n]:"bottom"}var nI=function(e){return e==="auto"?"bottom":e},mre=function(e,t){var r,i=e.placement,s=e.theme,a=s.borderRadius,o=s.spacing,l=s.colors;return Pe((r={label:"menu"},xd(r,gre(i),"100%"),xd(r,"position","absolute"),xd(r,"width","100%"),xd(r,"zIndex",1),r),t?{}:{backgroundColor:l.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:o.menuGutter,marginTop:o.menuGutter})},rI=E.createContext(null),vre=function(e){var t=e.children,r=e.minMenuHeight,i=e.maxMenuHeight,s=e.menuPlacement,a=e.menuPosition,o=e.menuShouldScrollIntoView,l=e.theme,u=E.useContext(rI)||{},h=u.setPortalPlacement,f=E.useRef(null),m=E.useState(i),g=Zs(m,2),y=g[0],v=g[1],x=E.useState(null),_=Zs(x,2),S=_[0],w=_[1],k=l.spacing.controlHeight;return Dx(function(){var P=f.current;if(P){var j=a==="fixed",A=o&&!j,M=pre({maxHeight:i,menuEl:P,minHeight:r,placement:s,shouldScroll:A,isFixedPosition:j,controlHeight:k});v(M.maxHeight),w(M.placement),h==null||h(M.placement)}},[i,s,a,o,r,h,k]),t({ref:f,placerProps:Pe(Pe({},e),{},{placement:S||nI(s),maxHeight:y})})},bre=function(e){var t=e.children,r=e.innerRef,i=e.innerProps;return De("div",Ae({},Kt(e,"menu",{menu:!0}),{ref:r},i),t)},yre=bre,_re=function(e,t){var r=e.maxHeight,i=e.theme.spacing.baseUnit;return Pe({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:i,paddingTop:i})},xre=function(e){var t=e.children,r=e.innerProps,i=e.innerRef,s=e.isMulti;return De("div",Ae({},Kt(e,"menuList",{"menu-list":!0,"menu-list--is-multi":s}),{ref:i},r),t)},iI=function(e,t){var r=e.theme,i=r.spacing.baseUnit,s=r.colors;return Pe({textAlign:"center"},t?{}:{color:s.neutral40,padding:"".concat(i*2,"px ").concat(i*3,"px")})},wre=iI,Sre=iI,Dre=function(e){var t=e.children,r=t===void 0?"No options":t,i=e.innerProps,s=ya(e,fre);return De("div",Ae({},Kt(Pe(Pe({},s),{},{children:r,innerProps:i}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),i),r)},kre=function(e){var t=e.children,r=t===void 0?"Loading...":t,i=e.innerProps,s=ya(e,hre);return De("div",Ae({},Kt(Pe(Pe({},s),{},{children:r,innerProps:i}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),i),r)},Pre=function(e){var t=e.rect,r=e.offset,i=e.position;return{left:t.left,position:i,top:r,width:t.width,zIndex:1}},Cre=function(e){var t=e.appendTo,r=e.children,i=e.controlElement,s=e.innerProps,a=e.menuPlacement,o=e.menuPosition,l=E.useRef(null),u=E.useRef(null),h=E.useState(nI(a)
116),f=Zs(h,2),m=f[0],g=f[1],y=E.useMemo(function(){return{setPortalPlacement:g}},[]),v=E.useState(null),x=Zs(v,2),_=x[0],S=x[1],w=E.useCallback(function(){if(i){var A=sre(i),M=o==="fixed"?0:window.pageYOffset,L=A[m]+M;(L!==(_==null?void 0:_.offset)||A.left!==(_==null?void 0:_.rect.left)||A.width!==(_==null?void 0:_.rect.width))&&S({offset:L,rect:A})}},[i,o,m,_==null?void 0:_.offset,_==null?void 0:_.rect.left,_==null?void 0:_.rect.width]);Dx(function(){w()},[w]);var k=E.useCallback(function(){typeof u.current=="function"&&(u.current(),u.current=null),i&&l.current&&(u.current=v2(i,l.current,w,{elementResize:"ResizeObserver"in window}))},[i,w]);Dx(function(){k()},[k]);var P=E.useCallback(function(A){l.current=A,k()},[k]);if(!t&&o!=="fixed"||!_)return null;var j=De("div",Ae({ref:P},Kt(Pe(Pe({},e),{},{offset:_.offset,position:o,rect:_.rect}),"menuPortal",{"menu-portal":!0}),s),r);return De(rI.Provider,{value:y},t?Km.createPortal(j,t):j)},Ere=function(e){var t=e.isDisabled,r=e.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},Mre=function(e){var t=e.children,r=e.innerProps,i=e.isDisabled,s=e.isRtl;return De("div",Ae({},Kt(e,"container",{"--is-disabled":i,"--is-rtl":s}),r),t)},Tre=function(e,t){var r=e.theme.spacing,i=e.isMulti,s=e.hasValue,a=e.selectProps.controlShouldRenderValue;return Pe({alignItems:"center",display:i&&s&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},Ore=function(e){var t=e.children,r=e.innerProps,i=e.isMulti,s=e.hasValue;return De("div",Ae({},Kt(e,"valueContainer",{"value-container":!0,"value-container--is-multi":i,"value-container--has-value":s}),r),t)},Are=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},jre=function(e){var t=e.children,r=e.innerProps;return De("div",Ae({},Kt(e,"indicatorsContainer",{indicators:!0}),r),t)},DM,Rre=["size"],Ire=["innerProps","isRtl","size"],Nre={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},sI=function(e){var t=e.size,r=ya(e,Rre);return De("svg",Ae({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Nre},r))},O1=function(e){return De(sI,Ae({size:20},e),De("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},aI=function(e){return De(sI,Ae({size:20},e),De("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},oI=function(e,t){var r=e.isFocused,i=e.theme,s=i.spacing.baseUnit,a=i.colors;return Pe({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:r?a.neutral60:a.neutral20,padding:s*2,":hover":{color:r?a.neutral80:a.neutral40}})},Fre=oI,Lre=function(e){var t=e.children,r=e.innerProps;return De("div",Ae({},Kt(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),t||De(aI,null))},Bre=oI,$re=function(e){var t=e.children,r=e.innerProps;return De("div",Ae({},Kt(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),t||De(O1,null))},Vre=function(e,t){var r=e.isDisabled,i=e.theme,s=i.spacing.baseUnit,a=i.colors;return Pe({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:r?a.neutral10:a.neutral20,marginBottom:s*2,marginTop:s*2})},Yre=function(e){var t=e.innerProps;return De("span",Ae({},t,Kt(e,"indicatorSeparator",{"indicator-separator":!0})))},Hre=Qne(DM||(DM=Zne([` 117 0%, 80%, 100% { opacity: 0; } 118 40% { opacity: 1; } 119`]))),zre=function(e,t){var r=e.isFocused,i=e.size,s=e.theme,a=s.colors,o=s.spacing.baseUnit;return Pe({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:i,lineHeight:1,marginRight:i,textAlign:"center",verticalAlign:"middle"},t?{}:{color:r?a.neutral60:a.neutral20,padding:o*2})},y_=function(e){var t=e.delay,r=e.offset;return De("span",{css:T1({animation:"".concat(Hre," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},Wre=function(e){var t=e.innerProps,r=e.isRtl,i=e.size,s=i===void 0?4:i,a=ya(e,Ire);return De("div",Ae({},Kt(Pe(Pe({},a),{},{innerProps:t,isRtl:r,size:s}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),De(y_,{delay:0,offset:r}),De(y_,{delay:160,offset:!0}),De(y_,{delay:320,offset:!r}))},Ure=function(e,t){var r=e.isDisabled,i=e.isFocused,s=e.theme,a=s.colors,o=s.borderRadius,l=s.spacing;return Pe({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:r?a.neutral5:a.neutral0,borderColor:r?a.neutral10:i?a.primary:a.neutral20,borderRadius:o,borderStyle:"solid",borderWidth:1,boxShadow:i?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:i?a.primary:a.neutral30}})},Gre=function(e){var t=e.children,r=e.isDisabled,i=e.isFocused,s=e.innerRef,a=e.innerProps,o=e.menuIsOpen;return De("div",Ae({ref:s}
119,Kt(e,"control",{control:!0,"control--is-disabled":r,"control--is-focused":i,"control--menu-is-open":o}),a,{"aria-disabled":r||void 0}),t)},Xre=Gre,qre=["data"],Kre=function(e,t){var r=e.theme.spacing;return t?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},Qre=function(e){var t=e.children,r=e.cx,i=e.getStyles,s=e.getClassNames,a=e.Heading,o=e.headingProps,l=e.innerProps,u=e.label,h=e.theme,f=e.selectProps;return De("div",Ae({},Kt(e,"group",{group:!0}),l),De(a,Ae({},o,{selectProps:f,theme:h,getStyles:i,getClassNames:s,cx:r}),u),De("div",null,t))},Zre=function(e,t){var r=e.theme,i=r.colors,s=r.spacing;return Pe({label:"group",cursor:"default",display:"block"},t?{}:{color:i.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:s.baseUnit*3,paddingRight:s.baseUnit*3,textTransform:"uppercase"})},Jre=function(e){var t=J2(e);t.data;var r=ya(t,qre);return De("div",Ae({},Kt(e,"groupHeading",{"group-heading":!0}),r))},eie=Qre,tie=["innerRef","isDisabled","isHidden","inputClassName"],nie=function(e,t){var r=e.isDisabled,i=e.value,s=e.theme,a=s.spacing,o=s.colors;return Pe(Pe({visibility:r?"hidden":"visible",transform:i?"translateZ(0)":""},rie),t?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:o.neutral80})},lI={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},rie={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Pe({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},lI)},iie=function(e){return Pe({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},lI)},sie=function(e){var t=e.cx,r=e.value,i=J2(e),s=i.innerRef,a=i.isDisabled,o=i.isHidden,l=i.inputClassName,u=ya(i,tie);return De("div",Ae({},Kt(e,"input",{"input-container":!0}),{"data-value":r||""}),De("input",Ae({className:t({input:!0},l),ref:s,style:iie(o),disabled:a},u)))},aie=sie,oie=function(e,t){var r=e.theme,i=r.spacing,s=r.borderRadius,a=r.colors;return Pe({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:a.neutral10,borderRadius:s/2,margin:i.baseUnit/2})},lie=function(e,t){var r=e.theme,i=r.borderRadius,s=r.colors,a=e.cropWithEllipsis;return Pe({overflow:"hidden",textOverflow:a||a===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:i/2,color:s.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},uie=function(e,t){var r=e.theme,i=r.spacing,s=r.borderRadius,a=r.colors,o=e.isFocused;return Pe({alignItems:"center",display:"flex"},t?{}:{borderRadius:s/2,backgroundColor:o?a.dangerLight:void 0,paddingLeft:i.baseUnit,paddingRight:i.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},uI=function(e){var t=e.children,r=e.innerProps;return De("div",r,t)},cie=uI,die=uI;function fie(n){var e=n.children,t=n.innerProps;return De("div",Ae({role:"button"},t),e||De(O1,{size:14}))}var hie=function(e){var t=e.children,r=e.components,i=e.data,s=e.innerProps,a=e.isDisabled,o=e.removeProps,l=e.selectProps,u=r.Container,h=r.Label,f=r.Remove;return De(u,{data:i,innerProps:Pe(Pe({},Kt(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),s),selectProps:l},De(h,{data:i,innerProps:Pe({},Kt(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},t),De(f,{data:i,innerProps:Pe(Pe({},Kt(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},o),selectProps:l}))},pie=hie,gie=function(e,t){var r=e.isDisabled,i=e.isFocused,s=e.isSelected,a=e.theme,o=a.spacing,l=a.colors;return Pe({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:s?l.primary:i?l.primary25:"transparent",color:r?l.neutral20:s?l.neutral0:"inherit",padding:"".concat(o.baseUnit*2,"px ").concat(o.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:s?l.primary:l.primary50}})},mie=function(e){var t=e.children,r=e.isDisabled,i=e.isFocused,s=e.isSelected,a=e.innerRef,o=e.innerProps;return De("div",Ae({},Kt(e,"option",{option:!0,"option--is-disabled":r,"option--is-focused":i,"option--is-selected":s}),{ref:a,"aria-disabled":r},o),t)},vie=mie,bie=function(e,t){var r=e.theme,i=r.spacing,s=r.colors;return Pe({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:s.neutral50,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},yie=function(e){var t=e.children,r=e.innerProps;return De("div",Ae({},Kt(e,"placeholder",{placeholder:!0}),r),t)},_ie=yie,xie=function(e,t){var r=e.isDisabled,i=e.theme,s=i.spacing,a=i.colors;return Pe({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:r?a.neutral40:a.neutral80,marginLeft:s.baseUnit/2,marginRight:s.baseUnit/2})},wie=function(e){var t=e.children,r=e.isDisabled,i=e.innerProps;return De("div",Ae({},Kt(e,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),i),t)},Sie=wie,Die={ClearIndicator:$re,Control:Xre,DropdownIndicator:Lre,DownChevron:aI,CrossIcon:O1,Group:eie,GroupHeading:Jre,IndicatorsContainer:jre,IndicatorSeparator:Yre,Input:aie,LoadingIndicator:Wre,Menu:yre,MenuList:xre,MenuPortal:Cre,Loa
119dingMessage:kre,NoOptionsMessage:Dre,MultiValue:pie,MultiValueContainer:cie,MultiValueLabel:die,MultiValueRemove:fie,Option:vie,Placeholder:_ie,SelectContainer:Mre,SingleValue:Sie,ValueContainer:Ore},kie=function(e){return Pe(Pe({},Die),e.components)},kM=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function Pie(n,e){return!!(n===e||kM(n)&&kM(e))}function Cie(n,e){if(n.length!==e.length)return!1;for(var t=0;t<n.length;t++)if(!Pie(n[t],e[t]))return!1;return!0}function Eie(n,e){e===void 0&&(e=Cie);var t=null;function r(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];if(t&&t.lastThis===this&&e(i,t.lastArgs))return t.lastResult;var a=n.apply(this,i);return t={lastResult:a,lastArgs:i,lastThis:this},a}return r.clear=function(){t=null},r}var Mie={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},Tie=function(e){return De("span",Ae({css:Mie},e))},PM=Tie,Oie={guidance:function(e){var t=e.isSearchable,r=e.isMulti,i=e.tabSelectsValue,s=e.context,a=e.isInitialFocus;switch(s){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(i?", press Tab to select the option and exit the menu":"",".");case"input":return a?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,r=e.label,i=r===void 0?"":r,s=e.labels,a=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(i,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(s.length>1?"s":""," ").concat(s.join(","),", selected.");case"select-option":return a?"option ".concat(i," is disabled. Select another option."):"option ".concat(i,", selected.");default:return""}},onFocus:function(e){var t=e.context,r=e.focused,i=e.options,s=e.label,a=s===void 0?"":s,o=e.selectValue,l=e.isDisabled,u=e.isSelected,h=e.isAppleDevice,f=function(v,x){return v&&v.length?"".concat(v.indexOf(x)+1," of ").concat(v.length):""};if(t==="value"&&o)return"value ".concat(a," focused, ").concat(f(o,r),".");if(t==="menu"&&h){var m=l?" disabled":"",g="".concat(u?" selected":"").concat(m);return"".concat(a).concat(g,", ").concat(f(i,r),".")}return""},onFilter:function(e){var t=e.inputValue,r=e.resultsMessage;return"".concat(r).concat(t?" for search term "+t:"",".")}},Aie=function(e){var t=e.ariaSelection,r=e.focusedOption,i=e.focusedValue,s=e.focusableOptions,a=e.isFocused,o=e.selectValue,l=e.selectProps,u=e.id,h=e.isAppleDevice,f=l.ariaLiveMessages,m=l.getOptionLabel,g=l.inputValue,y=l.isMulti,v=l.isOptionDisabled,x=l.isSearchable,_=l.menuIsOpen,S=l.options,w=l.screenReaderStatus,k=l.tabSelectsValue,P=l.isLoading,j=l["aria-label"],A=l["aria-live"],M=E.useMemo(function(){return Pe(Pe({},Oie),f||{})},[f]),L=E.useMemo(function(){var K="";if(t&&M.onChange){var z=t.option,F=t.options,R=t.removedValue,B=t.removedValues,Z=t.value,se=function(et){return Array.isArray(et)?null:et},ae=R||z||se(Z),ge=ae?m(ae):"",ke=F||B||void 0,Me=ke?ke.map(m):[],me=Pe({isDisabled:ae&&v(ae,o),label:ge,labels:Me},t);K=M.onChange(me)}return K},[t,M,v,o,m]),I=E.useMemo(function(){var K="",z=r||i,F=!!(r&&o&&o.includes(r));if(z&&M.onFocus){var R={focused:z,label:m(z),isDisabled:v(z,o),isSelected:F,options:s,context:z===r?"menu":"value",selectValue:o,isAppleDevice:h};K=M.onFocus(R)}return K},[r,i,m,v,M,s,o,h]),V=E.useMemo(function(){var K="";if(_&&S.length&&!P&&M.onFilter){var z=w({count:s.length});K=M.onFilter({inputValue:g,resultsMessage:z})}return K},[s,g,_,M,S,w,P]),Q=(t==null?void 0:t.action)==="initial-input-focus",U=E.useMemo(function(){var K="";if(M.guidance){var z=i?"value":_?"menu":"input";K=M.guidance({"aria-label":j,context:z,isDisabled:r&&v(r,o),isMulti:y,isSearchable:x,tabSelectsValue:k,isInitialFocus:Q})}return K},[j,r,i,y,v,x,_,M,o,k,Q]),X=De(E.Fragment,null,De("span",{id:"aria-selection"},L),De("span",{id:"aria-focused"},I),De("span",{id:"aria-results"},V),De("span",{id:"aria-guidance"},U));return De(E.Fragment,null,De(PM,{id:u},Q&&X),De(PM,{"aria-live":A,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!Q&&X))},jie=Aie,kx=[{base:"A",letters:"Aâ¶ï¼¡ÃÃÃẦẤẪẨÃÄÄáº°áº®áº´áº²È¦Ç ÃÇẢÃ
ǺÇÈÈẠẬẶá¸ÄȺⱯ"},{base:"AA",letters:"ê²"},{base:"AE",letters:"ÃǼǢ"},{base:"AO",letters:"ê´"},{base:"AU",letters:"ê¶"},{base:"AV",letters:"ê¸êº"},{base:"AY",letters:"ê¼"},{base:"B",letters:"Bâ·ï¼¢á¸á¸á¸ÉÆÆ"},{base:"C",letters:"Câ¸ï¼£ÄÄÄÄÃá¸ÆÈ»ê¾"},{base:"D",letters:"Dâ¹ï¼¤á¸Äá¸á¸á¸á¸ÄÆÆÆê¹"},{base:"DZ",letters:"DZÇ"},{base:"Dz",letters:"DzÇ
"},{base:"E",letters:"Eâºï¼¥ÃÃÃá»áº¾á»á»áº¼Äá¸á¸ÄÄÃẺÄÈÈẸá»È¨á¸Äá¸á¸ÆÆ"},{base:"F",letters:"Fâ»ï¼¦á¸Æê»"},{base:"G",letters:"Gâ¼ï¼§Ç´ÄḠÄÄ Ç¦Ä¢Ç¤Æê ê½ê¾"},{base:"H",letters:"Hâ½ï¼¨Ä¤á¸¢á¸¦ÈḤḨḪĦⱧⱵê"},{base:"I",letters:"Iâ¾ï¼©ÃÃÃĨĪĬİÃḮá»ÇÈÈá»Ä®á¸¬Æ"},{base:"J",letters:"Jâ¿ï¼ªÄ´É"},{base:"K",letters:"KâKḰǨḲĶḴÆâ±©êêêê¢"},{base:"L",letters:"LâLĿĹĽḶḸĻḼḺÅȽⱢⱠêêê"},{base:"LJ",letters:"Ç"},{base:"Lj",letters:"Ç"},{base:"M",letters:"Mâï¼á¸¾á¹á¹â±®Æ"},{base:"N",letters:"NâNǸÅÃá¹Åá¹Å
á¹á¹È Æêê¤"},{base:"NJ",letters:"Ç"},{base:"Nj",letters:"Ç"},{base:"O",letters:"OâOÃÃÃá»á»á»á»Ãá¹È¬á¹Åá¹á¹ÅȮȰÃȪá»ÅÇÈÈÆ á»á»á» á»á»¢á»á»ÇªÇ¬ÃÇ¾ÆÆêê"},{base:"OI",letters:"Æ¢"},{base:"OO",letters:"ê"},{base:"OU",letters:"È¢"},{base:"P",letters:"Pâ
ï¼°á¹á¹Æ¤â±£êêê"},{base:"Q",letters:"Qâï¼±êêÉ"}
119,{base:"R",letters:"Râï¼²Åá¹ÅÈÈá¹á¹Åá¹ÉⱤêê¦ê"},{base:"S",letters:"Sâï¼³áºÅṤÅṠŠṦṢṨÈÅâ±¾ê¨ê"},{base:"T",letters:"TâTṪŤṬÈŢṰṮŦƬƮȾê"},{base:"TZ",letters:"ê¨"},{base:"U",letters:"Uâï¼µÃÃÃŨṸŪṺŬÃÇÇÇÇỦŮŰÇÈÈÆ¯á»ªá»¨á»®á»¬á»°á»¤á¹²Å²á¹¶á¹´É"},{base:"V",letters:"VâVṼṾƲêÉ
"},{base:"VY",letters:"ê "},{base:"W",letters:"Wâï¼·áºáºÅ´áºáºáºâ±²"},{base:"X",letters:"XâXáºáº"},{base:"Y",letters:"YâYỲÃŶỸȲáºÅ¸á»¶á»´Æ³ÉỾ"},{base:"Z",letters:"ZâZŹáºÅ»Å½áºáºÆµÈ¤â±¿â±«ê¢"},{base:"a",letters:"aâï½áºÃ áâầấẫẩãÄÄằắẵẳȧǡäÇảåǻÇÈÈạáºáº·á¸Ä
â±¥É"},{base:"aa",letters:"ê³"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"êµ"},{base:"au",letters:"ê·"},{base:"av",letters:"ê¹ê»"},{base:"ay",letters:"ê½"},{base:"b",letters:"bâï½á¸á¸
á¸ÆÆÉ"},{base:"c",letters:"câï½ÄÄÄÄÃ§á¸ÆÈ¼ê¿â"},{base:"d",letters:"dâï½á¸Äá¸á¸á¸á¸ÄÆÉÉêº"},{base:"dz",letters:"dzÇ"},{base:"e",letters:"eâï½
èéêá»áº¿á»
á»áº½Äá¸á¸ÄÄëẻÄÈ
Èẹá»È©á¸Äá¸á¸ÉÉÇ"},{base:"f",letters:"fâï½á¸Æê¼"},{base:"g",letters:"gâï½ÇµÄḡÄÄ¡Ç§Ä£Ç¥É ê¡áµ¹ê¿"},{base:"h",letters:"hâï½Ä¥á¸£á¸§ÈḥḩḫáºÄ§â±¨â±¶É¥"},{base:"hv",letters:"Æ"},{base:"i",letters:"iâï½Ã¬ÃîĩīÄïḯá»ÇÈÈá»Ä¯á¸É¨Ä±"},{base:"j",letters:"jâï½ÄµÇ°É"},{base:"k",letters:"kâï½á¸±Ç©á¸³Ä·á¸µÆâ±ªêêê
ê£"},{base:"l",letters:"lâï½ÅÄºÄ¾á¸·á¸¹Ä¼á¸½á¸»Å¿ÅÆÉ«â±¡êêê"},{base:"lj",letters:"Ç"},{base:"m",letters:"mâï½á¸¿á¹á¹É±É¯"},{base:"n",letters:"nâï½Ç¹Åñá¹
Åá¹Åá¹á¹ÆÉ²Åêê¥"},{base:"nj",letters:"Ç"},{base:"o",letters:"oâï½Ã²Ã³Ã´á»á»á»á»Ãµá¹Èá¹Åá¹á¹Åȯȱöȫá»ÅÇÈÈÆ¡á»á»á»¡á»á»£á»á»Ç«ÇøǿÉêêɵ"},{base:"oi",letters:"Æ£"},{base:"ou",letters:"È£"},{base:"oo",letters:"ê"},{base:"p",letters:"pâï½á¹á¹Æ¥áµ½êêê"},{base:"q",letters:"qâ ï½Éêê"},{base:"r",letters:"râ¡ï½Åá¹ÅÈÈá¹á¹Åá¹Éɽêê§ê"},{base:"s",letters:"sâ¢ï½ÃÅá¹¥ÅṡšṧṣṩÈÅÈ¿ê©ê
áº"},{base:"t",letters:"tâ£ï½á¹«áºÅ¥á¹ÈţṱṯŧÆÊⱦê"},{base:"tz",letters:"ê©"},{base:"u",letters:"uâ¤ï½Ã¹ÃºÃ»Å©á¹¹Å«á¹»ÅüÇÇÇÇủůűÇÈÈÆ°á»«á»©á»¯á»á»±á»¥á¹³Å³á¹·á¹µÊ"},{base:"v",letters:"vâ¥ï½á¹½á¹¿ÊêÊ"},{base:"vy",letters:"ê¡"},{base:"w",letters:"wâ¦ï½áºáºÅµáºáº
áºáºâ±³"},{base:"x",letters:"xâ§ï½áºáº"},{base:"y",letters:"yâ¨ï½á»³Ã½Å·á»¹È³áºÃ¿á»·áºá»µÆ´Éỿ"},{base:"z",letters:"zâ©ï½ÅºáºÅ¼Å¾áºáºÆ¶È¥Éⱬê£"}],Rie=new RegExp("["+kx.map(function(n){return n.letters}).join("")+"]","g"),cI={};for(var __=0;__<kx.length;__++)for(var x_=kx[__],w_=0;w_<x_.letters.length;w_++)cI[x_.letters[w_]]=x_.base;var dI=function(e){return e.replace(Rie,function(t){return cI[t]})},Iie=Eie(dI),CM=function(e){return e.replace(/^\s+|\s+$/g,"")},Nie=function(e){return"".concat(e.label," ").concat(e.value)},Fie=function(e){return function(t,r){if(t.data.__isNew__)return!0;var i=Pe({ignoreCase:!0,ignoreAccents:!0,stringify:Nie,trim:!0,matchFrom:"any"},e),s=i.ignoreCase,a=i.ignoreAccents,o=i.stringify,l=i.trim,u=i.matchFrom,h=l?CM(r):r,f=l?CM(o(t)):o(t);return s&&(h=h.toLowerCase(),f=f.toLowerCase()),a&&(h=Iie(h),f=dI(f)),u==="start"?f.substr(0,h.length)===h:f.indexOf(h)>-1}},Lie=["innerRef"];function Bie(n){var e=n.innerRef,t=ya(n,Lie),r=dre(t,"onExited","in","enter","exit","appear");return De("input",Ae({ref:e},r,{css:T1({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var $ie=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()};function Vie(n){var e=n.isEnabled,t=n.onBottomArrive,r=n.onBottomLeave,
119i=n.onTopArrive,s=n.onTopLeave,a=E.useRef(!1),o=E.useRef(!1),l=E.useRef(0),u=E.useRef(null),h=E.useCallback(function(x,_){if(u.current!==null){var S=u.current,w=S.scrollTop,k=S.scrollHeight,P=S.clientHeight,j=u.current,A=_>0,M=k-P-w,L=!1;M>_&&a.current&&(r&&r(x),a.current=!1),A&&o.current&&(s&&s(x),o.current=!1),A&&_>M?(t&&!a.current&&t(x),j.scrollTop=k,L=!0,a.current=!0):!A&&-_>w&&(i&&!o.current&&i(x),j.scrollTop=0,L=!0,o.current=!0),L&&$ie(x)}},[t,r,i,s]),f=E.useCallback(function(x){h(x,x.deltaY)},[h]),m=E.useCallback(function(x){l.current=x.changedTouches[0].clientY},[]),g=E.useCallback(function(x){var _=l.current-x.changedTouches[0].clientY;h(x,_)},[h]),y=E.useCallback(function(x){if(x){var _=lre?{passive:!1}:!1;x.addEventListener("wheel",f,_),x.addEventListener("touchstart",m,_),x.addEventListener("touchmove",g,_)}},[g,m,f]),v=E.useCallback(function(x){x&&(x.removeEventListener("wheel",f,!1),x.removeEventListener("touchstart",m,!1),x.removeEventListener("touchmove",g,!1))},[g,m,f]);return E.useEffect(function(){if(e){var x=u.current;return y(x),function(){v(x)}}},[e,y,v]),function(x){u.current=x}}var EM=["boxSizing","height","overflow","paddingRight","position"],MM={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function TM(n){n.cancelable&&n.preventDefault()}function OM(n){n.stopPropagation()}function AM(){var n=this.scrollTop,e=this.scrollHeight,t=n+this.offsetHeight;n===0?this.scrollTop=1:t===e&&(this.scrollTop=n-1)}function jM(){return"ontouchstart"in window||navigator.maxTouchPoints}var RM=!!(typeof window<"u"&&window.document&&window.document.createElement),ud=0,su={capture:!1,passive:!1};function Yie(n){var e=n.isEnabled,t=n.accountForScrollbars,r=t===void 0?!0:t,i=E.useRef({}),s=E.useRef(null),a=E.useCallback(function(l){if(RM){var u=document.body,h=u&&u.style;if(r&&EM.forEach(function(y){var v=h&&h[y];i.current[y]=v}),r&&ud<1){var f=parseInt(i.current.paddingRight,10)||0,m=document.body?document.body.clientWidth:0,g=window.innerWidth-m+f||0;Object.keys(MM).forEach(function(y){var v=MM[y];h&&(h[y]=v)}),h&&(h.paddingRight="".concat(g,"px"))}u&&jM()&&(u.addEventListener("touchmove",TM,su),l&&(l.addEventListener("touchstart",AM,su),l.addEventListener("touchmove",OM,su))),ud+=1}},[r]),o=E.useCallback(function(l){if(RM){var u=document.body,h=u&&u.style;ud=Math.max(ud-1,0),r&&ud<1&&EM.forEach(function(f){var m=i.current[f];h&&(h[f]=m)}),u&&jM()&&(u.removeEventListener("touchmove",TM,su),l&&(l.removeEventListener("touchstart",AM,su),l.removeEventListener("touchmove",OM,su)))}},[r]);return E.useEffect(function(){if(e){var l=s.current;return a(l),function(){o(l)}}},[e,a,o]),function(l){s.current=l}}var Hie=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},zie={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Wie(n){var e=n.children,t=n.lockEnabled,r=n.captureEnabled,i=r===void 0?!0:r,s=n.onBottomArrive,a=n.onBottomLeave,o=n.onTopArrive,l=n.onTopLeave,u=Vie({isEnabled:i,onBottomArrive:s,onBottomLeave:a,onTopArrive:o,onTopLeave:l}),h=Yie({isEnabled:t}),f=function(g){u(g),h(g)};return De(E.Fragment,null,t&&De("div",{onClick:Hie,css:zie}),e(f))}var Uie={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Gie=function(e){var t=e.name,r=e.onFocus;return De("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:Uie,value:"",onChange:function(){}})},Xie=Gie;function A1(n){var e;return typeof window<"u"&&window.navigator!=null?n.test(((e=window.navigator.userAgentData)===null||e===void 0?void 0:e.platform)||window.navigator.platform):!1}function qie(){return A1(/^iPhone/i)}function fI(){return A1(/^Mac/i)}function Kie(){return A1(/^iPad/i)||fI()&&navigator.maxTouchPoints>1}function Qie(){return qie()||Kie()}function Zie(){return fI()||Qie()}var Jie=function(e){return e.label},ese=function(e){return e.label},tse=function(e){return e.value},nse=function(e){return!!e.isDisabled},rse={clearIndicator:Bre,container:Ere,control:Ure,dropdownIndicator:Fre,group:Kre,groupHeading:Zre,indicatorsContainer:Are,indicatorSeparator:Vre,input:nie,loadingIndicator:zre,loadingMessage:Sre,menu:mre,menuList:_re,menuPortal:Pre,multiValue:oie,multiValueLabel:lie,multiValueRemove:uie,noOptionsMessage:wre,option:gie,placeholder:bie,singleValue:xie,valueContainer:Tre},ise={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},sse=4,hI=4,ase=38,ose=hI*2,lse={baseUnit:hI,controlHeight:ase,menuGutter:ose},S_={borderRadius:sse,colors:ise,spacing:lse},use={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:SM(),captureMenuScroll:!SM(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:Fie(),formatGroupLabel:Jie,getOptionLabel:ese,getOptionValue:tse,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:nse,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!are(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(t!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function IM(n,e,t,r){var i=mI(n,e,t),s=vI(n,e,t),a=gI(n,e),o=km(n,e);return{type:"option",data:e,isDisabled:i,isSelected:s,label:a,value:o,index:r}}function mg(n,e){return n.options.map(function(t,r){if("options"in t){var i=t.o
119ptions.map(function(a,o){return IM(n,a,e,o)}).filter(function(a){return FM(n,a)});return i.length>0?{type:"group",data:t,options:i,index:r}:void 0}var s=IM(n,t,e,r);return FM(n,s)?s:void 0}).filter(ure)}function pI(n){return n.reduce(function(e,t){return t.type==="group"?e.push.apply(e,w1(t.options.map(function(r){return r.data}))):e.push(t.data),e},[])}function NM(n,e){return n.reduce(function(t,r){return r.type==="group"?t.push.apply(t,w1(r.options.map(function(i){return{data:i.data,id:"".concat(e,"-").concat(r.index,"-").concat(i.index)}}))):t.push({data:r.data,id:"".concat(e,"-").concat(r.index)}),t},[])}function cse(n,e){return pI(mg(n,e))}function FM(n,e){var t=n.inputValue,r=t===void 0?"":t,i=e.data,s=e.isSelected,a=e.label,o=e.value;return(!yI(n)||!s)&&bI(n,{label:a,value:o,data:i},r)}function dse(n,e){var t=n.focusedValue,r=n.selectValue,i=r.indexOf(t);if(i>-1){var s=e.indexOf(t);if(s>-1)return t;if(i<e.length)return e[i]}return null}function fse(n,e){var t=n.focusedOption;return t&&e.indexOf(t)>-1?t:e[0]}var D_=function(e,t){var r,i=(r=e.find(function(s){return s.data===t}))===null||r===void 0?void 0:r.id;return i||null},gI=function(e,t){return e.getOptionLabel(t)},km=function(e,t){return e.getOptionValue(t)};function mI(n,e,t){return typeof n.isOptionDisabled=="function"?n.isOptionDisabled(e,t):!1}function vI(n,e,t){if(t.indexOf(e)>-1)return!0;if(typeof n.isOptionSelected=="function")return n.isOptionSelected(e,t);var r=km(n,e);return t.some(function(i){return km(n,i)===r})}function bI(n,e,t){return n.filterOption?n.filterOption(e,t):!0}var yI=function(e){var t=e.hideSelectedOptions,r=e.isMulti;return t===void 0?r:t},hse=1,_I=function(n){Bte(t,n);var e=Yte(t);function t(r){var i;if(Fte(this,t),i=e.call(this,r),i.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},i.blockOptionHover=!1,i.isComposing=!1,i.commonProps=void 0,i.initialTouchX=0,i.initialTouchY=0,i.openAfterFocus=!1,i.scrollToFocusedOptionOnUpdate=!1,i.userIsDragging=void 0,i.isAppleDevice=Zie(),i.controlRef=null,i.getControlRef=function(l){i.controlRef=l},i.focusedOptionRef=null,i.getFocusedOptionRef=function(l){i.focusedOptionRef=l},i.menuListRef=null,i.getMenuListRef=function(l){i.menuListRef=l},i.inputRef=null,i.getInputRef=function(l){i.inputRef=l},i.focus=i.focusInput,i.blur=i.blurInput,i.onChange=function(l,u){var h=i.props,f=h.onChange,m=h.name;u.name=m,i.ariaOnChange(l,u),f(l,u)},i.setValue=function(l,u,h){var f=i.props,m=f.closeMenuOnSelect,g=f.isMulti,y=f.inputValue;i.onInputChange("",{action:"set-value",prevInputValue:y}),m&&(i.setState({inputIsHiddenAfterUpdate:!g}),i.onMenuClose()),i.setState({clearFocusValueOnUpdate:!0}),i.onChange(l,{action:u,option:h})},i.selectOption=function(l){var u=i.props,h=u.blurInputOnSelect,f=u.isMulti,m=u.name,g=i.state.selectValue,y=f&&i.isOptionSelected(l,g),v=i.isOptionDisabled(l,g);if(y){var x=i.getOptionValue(l);i.setValue(g.filter(function(_){return i.getOptionValue(_)!==x}),"deselect-option",l)}else if(!v)f?i.setValue([].concat(w1(g),[l]),"select-option",l):i.setValue(l,"select-option");else{i.ariaOnChange(l,{action:"select-option",option:l,name:m});return}h&&i.blurInput()},i.removeValue=function(l){var u=i.props.isMulti,h=i.state.selectValue,f=i.getOptionValue(l),m=h.filter(function(y){return i.getOptionValue(y)!==f}),g=Ip(u,m,m[0]||null);i.onChange(g,{action:"remove-value",removedValue:l}),i.focusInput()},i.clearValue=function(){var l=i.state.selectValue;i.onChange(Ip(i.props.isMulti,[],null),{action:"clear",removedValues:l})},i.popValue=function(){var l=i.props.isMulti,u=i.state.selectValue,h=u[u.length-1],f=u.slice(0,u.length-1),m=Ip(l,f,f[0]||null);h&&i.onChange(m,{action:"pop-value",removedValue:h})},i.getFocusedOptionId=function(l){return D_(i.state.focusableOptionsWithIds,l)},i.getFocusableOptionsWithIds=function(){return NM(mg(i.props,i.state.selectValue),i.getElementId("option"))},i.getValue=function(){return i.state.selectValue},i.cx=function(){for(var l=arguments.length,u=new Array(l),h=0;h<l;h++)u[h]=arguments[h];return tre.apply(void 0,[i.props.classNamePrefix].concat(u))},i.getOptionLabel=function(l){return gI(i.props,l)},i.getOptionValue=function(l){return km(i.props,l)},i.getStyles=function(l,u){var h=i.props.unstyled,f=rse[l](u,h);f.boxSizing="border-box";var m=i.props.styles[l];return m?m(f,u):f},i.getClassNames=function(l,u){var h,f;return(h=(f=i.props.classNames)[l])===null||h===void 0?void 0:h.call(f,u)},i.getElementId=function(l){return"".concat(i.state.instancePrefix,"-").concat(l)},i.getComponents=function(){return kie(i.props)},i.buildCategorizedOptions=function(){return mg(i.props,i.state.selectValue)},i.getCategorizedOptions=function(){return i.props.menuIsOpen?i.buildCategorizedOptions():[]},i.buildFocusableOptions=function(){return pI(i.buildCategorizedOptions())},i.getFocusableOptions=function(){return i.props.menuIsOpen?i.buildFocusableOptions():[]},i.ariaOnChange=function(l,u){i.setState({ariaSelection:Pe({value:l},u)})},i.onMenuMouseDown=function(l){l.button===0&&(l.stopPropagation(),l.preventDefault(),i.focusInput())},i.onMenuMouseMove=function(l){i.blockOptionHover=!1},i.onControlMouseDown=function(l){if(!l.defaultPrevented){var u=i.props.openMenuOnClick;i.state.isFocused?i.props.menuIsOpen?l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&i.onMenuClose():u&&i.openMenu("first"):(u&&(i.openAfterFocus=!0),i.focusInput()),l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&l.preventDefault()}},i.onDropdownIndicatorMouseDown=function(l){if(!(l&&l.type==="mousedown"&&l.button!==0)&&!i.props.isDisabled){var u=i.props,h=u.isMulti,f=u.menuIsOpen;i.focusInput(),f?(i.setState({inputIsHiddenAfterUpdate:!h}),i.onMenuClose()):i.openMenu("first"),l.preventDefault()}},i.onClearIndicatorMouseDown=function(l){l&&l.type==="mousedown"&&l.button!==0||(i.clearValue(),l.preventDefault(),i.openAfterFocus=!1,l.type==="touchend"?i.focusInput():setTimeout(function(){return i.focusInput()}))},i.onScroll=function(l){typeof i.props.closeMenuOnScroll=="boolean"?l.target instanceof HTMLElement&&Ov(l.target)&&i.props.onMenuClose():typeof i.props.closeMenuOnScroll=="function"&&i.props.closeMenuOnScroll(l)&&i.props.onMenuClose()},i.onCompositionStart=function(){i.isComposing=!0},i.onCompositionEnd=function(){i.isComposing=!1},i.onTouchStart=function(l){var u=l.touches,h=u&&u.item(0);h&&(i.initialTouchX=h.clientX,i.initialTouchY=h.clientY,i.userIsDragging=!1)},i.onTouchMove=function(l){var u=l.touches,h=u&&u.item(0);if(h){var f=Math.abs(h.clientX-i.initialTouchX),m=Math.abs(h.clientY-i.initialTouchY),g=5;i.userIsDragging=f>g||m>g}},i.onTouchEnd=function(l){i.userIsDragging||(i.controlRef&&!i.controlRef.contains(l.target)&&i.menuListRef&&!i.menuListRef.contains(l.target)&&i.blurInput(),i.initialTouchX=0,i.initialTouchY=0)},i.onControlTouchEnd=function(l){i.userIsDragging||i.onControlMouseDown(l)},i.onClearIndicatorTouchEnd=function(l){i.userIsDragging||i.onClearIndicatorMouseDown(l)},i.onDropdownIndicatorTouchEnd=function(l){i.userIsDragging||i.onDropdownIndicatorMouseDown(l)},i.handleInputChange=function(l){var u=i.props.inputValue,h=l.currentTarget.value;i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange(h,{action:"input-change",prevInputValue:u}),i.props.menuIsOpen||i.onMenuOpen()},i.onInputFocus=function(l){i.props.onFocus&&i.props.onFocus(l),i.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(i.openAfterFocus||i.props.openMenuOnFocus)&&i.openMenu("first"),i.openAfterFocus=!1},i.onInputBlur=function(l){var u=i.props.inputValue;if(i.menuListRef&&i.menuListRef.contains(document.activeElement)){i.inputRef.focus();return}i.props.onBlur&&i.props.onBlur(l),i.onInputChange("",{action:"input-blur",prevInputValue:u}),i.onMenuClose(),i.setState({focusedValue:null,isFocused:!1})},i.onOptionHover=function(l){if(!(i.blockOptionHover||i.state.focusedOption===l)){var u=i.getFocusableOptions(),h=u.indexOf(l);
119i.setState({focusedOption:l,focusedOptionId:h>-1?i.getFocusedOptionId(l):null})}},i.shouldHideSelectedOptions=function(){return yI(i.props)},i.onValueInputFocus=function(l){l.preventDefault(),l.stopPropagation(),i.focus()},i.onKeyDown=function(l){var u=i.props,h=u.isMulti,f=u.backspaceRemovesValue,m=u.escapeClearsValue,g=u.inputValue,y=u.isClearable,v=u.isDisabled,x=u.menuIsOpen,_=u.onKeyDown,S=u.tabSelectsValue,w=u.openMenuOnFocus,k=i.state,P=k.focusedOption,j=k.focusedValue,A=k.selectValue;if(!v&&!(typeof _=="function"&&(_(l),l.defaultPrevented))){switch(i.blockOptionHover=!0,l.key){case"ArrowLeft":if(!h||g)return;i.focusValue("previous");break;case"ArrowRight":if(!h||g)return;i.focusValue("next");break;case"Delete":case"Backspace":if(g)return;if(j)i.removeValue(j);else{if(!f)return;h?i.popValue():y&&i.clearValue()}break;case"Tab":if(i.isComposing||l.shiftKey||!x||!S||!P||w&&i.isOptionSelected(P,A))return;i.selectOption(P);break;case"Enter":if(l.keyCode===229)break;if(x){if(!P||i.isComposing)return;i.selectOption(P);break}return;case"Escape":x?(i.setState({inputIsHiddenAfterUpdate:!1}),i.onInputChange("",{action:"menu-close",prevInputValue:g}),i.onMenuClose()):y&&m&&i.clearValue();break;case" ":if(g)return;if(!x){i.openMenu("first");break}if(!P)return;i.selectOption(P);break;case"ArrowUp":x?i.focusOption("up"):i.openMenu("last");break;case"ArrowDown":x?i.focusOption("down"):i.openMenu("first");break;case"PageUp":if(!x)return;i.focusOption("pageup");break;case"PageDown":if(!x)return;i.focusOption("pagedown");break;case"Home":if(!x)return;i.focusOption("first");break;case"End":if(!x)return;i.focusOption("last");break;default:return}l.preventDefault()}},i.state.instancePrefix="react-select-"+(i.props.instanceId||++hse),i.state.selectValue=xM(r.value),r.menuIsOpen&&i.state.selectValue.length){var s=i.getFocusableOptionsWithIds(),a=i.buildFocusableOptions(),o=a.indexOf(i.state.selectValue[0]);i.state.focusableOptionsWithIds=s,i.state.focusedOption=a[o],i.state.focusedOptionId=D_(s,a[o])}return i}return Lte(t,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&wM(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(i){var s=this.props,a=s.isDisabled,o=s.menuIsOpen,l=this.state.isFocused;(l&&!a&&i.isDisabled||l&&o&&!i.menuIsOpen)&&this.focusInput(),l&&a&&!i.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!l&&!a&&i.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(wM(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(i,s){this.props.onInputChange(i,s)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(i){var s=this,a=this.state,o=a.selectValue,l=a.isFocused,u=this.buildFocusableOptions(),h=i==="first"?0:u.length-1;if(!this.props.isMulti){var f=u.indexOf(o[0]);f>-1&&(h=f)}this.scrollToFocusedOptionOnUpdate=!(l&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:u[h],focusedOptionId:this.getFocusedOptionId(u[h])},function(){return s.onMenuOpen()})}},{key:"focusValue",value:function(i){var s=this.state,a=s.selectValue,o=s.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var l=a.indexOf(o);o||(l=-1);var u=a.length-1,h=-1;if(a.length){switch(i){case"previous":l===0?h=0:l===-1?h=u:h=l-1;break;case"next":l>-1&&l<u&&(h=l+1);break}this.setState({inputIsHidden:h!==-1,focusedValue:a[h]})}}}},{key:"focusOption",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",s=this.props.pageSize,a=this.state.focusedOption,o=this.getFocusableOptions();if(o.length){var l=0,u=o.indexOf(a);a||(u=-1),i==="up"?l=u>0?u-1:o.length-1:i==="down"?l=(u+1)%o.length:i==="pageup"?(l=u-s,l<0&&(l=0)):i==="pagedown"?(l=u+s,l>o.length-1&&(l=o.length-1)):i==="last"&&(l=o.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:o[l],focusedValue:null,focusedOptionId:this.getFocusedOptionId(o[l])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(S_):Pe(Pe({},S_),this.props.theme):S_}},{key:"getCommonProps",value:function(){var i=this.clearValue,s=this.cx,a=this.getStyles,o=this.getClassNames,l=this.getValue,u=this.selectOption,h=this.setValue,f=this.props,m=f.isMulti,g=f.isRtl,y=f.options,v=this.hasValue();return{clearValue:i,cx:s,getStyles:a,getClassNames:o,getValue:l,hasValue:v,isMulti:m,isRtl:g,options:y,selectOption:u,selectProps:f,setValue:h,theme:this.getTheme()}}},{key:"hasValue",value:function(){var i=this.state.selectValue;return i.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var i=this.props,s=i.isClearable,a=i.isMulti;return s===void 0?a:s}},{key:"isOptionDisabled",value:function(i,s){return mI(this.props,i,s)}},{key:"isOptionSelected",value:function(i,s){return vI(this.props,i,s)}},{key:"filterOption",value:function(i,s){return bI(this.props,i,s)}},{key:"formatOptionLabel",value:function(i,s){if(typeof this.props.formatOptionLabel=="function"){var a=this.props.inputValue,o=this.state.selectValue;return this.props.formatOptionLabel(i,{context:s,inputValue:a,selectValue:o})}else return this.getOptionLabel(i)}},{key:"formatGroupLabel",value:function(i){return this.props.formatGroupLabel(i)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var i=this.props,s=i.isDisabled,a=i.isSearchable,o=i.inputId,l=i.inputValue,u=i.tabIndex,h=i.form,f=i.menuIsOpen,m=i.required,g=this.getComponents(),y=g.Input,v=this.state,x=v.inputIsHidden,_=v.ariaSelection,S=this.commonProps,w=o||this.getElementId("input"),k=Pe(Pe(Pe({"aria-autocomplete":"list","aria-expanded":f,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":m,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},f&&{"aria-controls":this.getElementId("listbox")}),!a&&{"aria-readonly":!0}),this.hasValue()?(_==null?void 0:_.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return a?E.createElement(y,Ae({},S,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:w,innerRef:this.getInputRef,isDisabled:s,isHidden:x,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:u,form:h,type:"text",value:l},k)):E.createElement(Bie,Ae({id:w,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Sm,onFocus:this.onInputFocus,disabled:s,tabIndex:u,inputMode:"none",form:h,value:""},k))}},{key:"renderPlaceholderOrValue",value:function(){var i=this,s=this.getComponents(),a=s.MultiValue,o=s.MultiValueContainer,l=s.MultiValueLabel,u=s.MultiValueRemove,h=s.SingleValue,f=s.Placeholder,m=this.commonProps,g=this.props,y=g.controlShouldRenderValue,v=g.isDisabled,x=g.isMulti,_=g.inputValue,S=g.placeholder,w=this.state,k=w.selectValue,P=w.focusedValue,j=w.isFocused;if(!this.hasValue()||!y)return _?null:E.createElement(f,Ae({},m,{key:"placeholder",isDisabled:v,isFocused:j,innerProps:{id:this.getElementId("placeholder")}}),S);if(x)return k.map(function(M,L){var I=M===P,V="".concat(i.getOptionLabel(M),"-").concat(i.getOptionValue(M));return E.createElement(a,Ae({},m,{components:{Container:o,Label:l,Remove:u},isFocused:I,isDisabled:v,key:V,index:L,removeProps:{onClick:function(){return i.removeValue(M)},onTouchEnd:function(){return i.removeValue(M)},onMouseDown:function(U){U.preventDefault()}},data:M}),i.formatOptionLabel(M,"value"))});if(_)return null;var A=k[0];return E.createElement(h,Ae({},m,{data:A,isDisabled:v}),this.formatOptionLabel(A,"value"))}},{key:"renderClearIndicator",value:function(){var i=this.getComponents(),s=i.ClearIndicator,a=this.commonProps,o=this.props,l=o.isDisabled,u=o.isLoading,h=this.state.isFocused;if(!this.isClearable()||!s||l||!this.hasValue()||u)return null;var f={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return E.createElement(s,Ae({},a,{innerProps:f,isFocused:h}))}},{key:"renderLoadingIndicator",value:function(){var i=this.getComponents(),s=i.LoadingIndicator,a=this.commonProps,o=this.props,l=o.isDisabled,u=o.isLoading,h=this.state.isFocused;if(!s||!u)return null;var f={"aria-hidden":"true"};return E.createElement(s,Ae({},a,{innerProps:f,isDisabled:l,isFocused:h}))}},{key:"renderIndicatorSeparator",value:function(){var i=this.getComponents(),s=i.DropdownIndicator,a=i.IndicatorSeparator;if(!s||!a)return null;var o=this.commonProps,l=this.props.isDisabled,u=this.state.isFocused;return E.createElement(a,Ae({},o,{isDisabled:l,isFocused:u}))}},{key:"renderDropdownIndicator",value:function(){var i=this.getComponents(),s=i.DropdownIndicator;if(!s)return null;var a=this.commonProps,o=this.props.isDisabled,l=this.state.isFocused,u={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return E.createElement(s,Ae({},a,{innerProps:u,isDisabled:o,isFocused:l}))}},{key:"renderMenu",value:function(){var i=this,s=this.getComponents(),a=s.Group,o=s.GroupHeading,l=s.Menu,u=s.MenuList,h=s.MenuPortal,f=s.LoadingMessage,m=s.NoOptionsMessage,g
vendor: 4,754 bytes, line 119
119=s.Option,y=this.commonProps,v=this.state.focusedOption,x=this.props,_=x.captureMenuScroll,S=x.inputValue,w=x.isLoading,k=x.loadingMessage,P=x.minMenuHeight,j=x.maxMenuHeight,A=x.menuIsOpen,M=x.menuPlacement,L=x.menuPosition,I=x.menuPortalTarget,V=x.menuShouldBlockScroll,Q=x.menuShouldScrollIntoView,U=x.noOptionsMessage,X=x.onMenuScrollToTop,K=x.onMenuScrollToBottom;if(!A)return null;var z=function(ge,ke){var Me=ge.type,me=ge.data,rt=ge.isDisabled,et=ge.isSelected,xt=ge.label,Pt=ge.value,It=v===me,En=rt?void 0:function(){return i.onOptionHover(me)},Sr=rt?void 0:function(){return i.selectOption(me)},wn="".concat(i.getElementId("option"),"-").concat(ke),mi={id:wn,onClick:Sr,onMouseMove:En,onMouseOver:En,tabIndex:-1,role:"option","aria-selected":i.isAppleDevice?void 0:et};return E.createElement(g,Ae({},y,{innerProps:mi,data:me,isDisabled:rt,isSelected:et,key:wn,label:xt,type:Me,value:Pt,isFocused:It,innerRef:It?i.getFocusedOptionRef:void 0}),i.formatOptionLabel(ge.data,"menu"))},F;if(this.hasOptions())F=this.getCategorizedOptions().map(function(ae){if(ae.type==="group"){var ge=ae.data,ke=ae.options,Me=ae.index,me="".concat(i.getElementId("group"),"-").concat(Me),rt="".concat(me,"-heading");return E.createElement(a,Ae({},y,{key:me,data:ge,options:ke,Heading:o,headingProps:{id:rt,data:ae.data},label:i.formatGroupLabel(ae.data)}),ae.options.map(function(et){return z(et,"".concat(Me,"-").concat(et.index))}))}else if(ae.type==="option")return z(ae,"".concat(ae.index))});else if(w){var R=k({inputValue:S});if(R===null)return null;F=E.createElement(f,y,R)}else{var B=U({inputValue:S});if(B===null)return null;F=E.createElement(m,y,B)}var Z={minMenuHeight:P,maxMenuHeight:j,menuPlacement:M,menuPosition:L,menuShouldScrollIntoView:Q},se=E.createElement(vre,Ae({},y,Z),function(ae){var ge=ae.ref,ke=ae.placerProps,Me=ke.placement,me=ke.maxHeight;return E.createElement(l,Ae({},y,Z,{innerRef:ge,innerProps:{onMouseDown:i.onMenuMouseDown,onMouseMove:i.onMenuMouseMove},isLoading:w,placement:Me}),E.createElement(Wie,{captureEnabled:_,onTopArrive:X,onBottomArrive:K,lockEnabled:V},function(rt){return E.createElement(u,Ae({},y,{innerRef:function(xt){i.getMenuListRef(xt),rt(xt)},innerProps:{role:"listbox","aria-multiselectable":y.isMulti,id:i.getElementId("listbox")},isLoading:w,maxHeight:me,focusedOption:v}),F)}))});return I||L==="fixed"?E.createElement(h,Ae({},y,{appendTo:I,controlElement:this.controlRef,menuPlacement:M,menuPosition:L}),se):se}},{key:"renderFormField",value:function(){var i=this,s=this.props,a=s.delimiter,o=s.isDisabled,l=s.isMulti,u=s.name,h=s.required,f=this.state.selectValue;if(h&&!this.hasValue()&&!o)return E.createElement(Xie,{name:u,onFocus:this.onValueInputFocus});if(!(!u||o))if(l)if(a){var m=f.map(function(v){return i.getOptionValue(v)}).join(a);return E.createElement("input",{name:u,type:"hidden",value:m})}else{var g=f.length>0?f.map(function(v,x){return E.createElement("input",{key:"i-".concat(x),name:u,type:"hidden",value:i.getOptionValue(v)})}):E.createElement("input",{name:u,type:"hidden",value:""});return E.createElement("div",null,g)}else{var y=f[0]?this.getOptionValue(f[0]):"";return E.createElement("input",{name:u,type:"hidden",value:y})}}},{key:"renderLiveRegion",value:function(){var i=this.commonProps,s=this.state,a=s.ariaSelection,o=s.focusedOption,l=s.focusedValue,u=s.isFocused,h=s.selectValue,f=this.getFocusableOptions();return E.createElement(jie,Ae({},i,{id:this.getElementId("live-region"),ariaSelection:a,focusedOption:o,focusedValue:l,isFocused:u,selectValue:h,focusableOptions:f,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var i=this.getComponents(),s=i.Control,a=i.IndicatorsContainer,o=i.SelectContainer,l=i.ValueContainer,u=this.props,h=u.className,f=u.id,m=u.isDisabled,g=u.menuIsOpen,y=this.state.isFocused,v=this.commonProps=this.getCommonProps();return E.createElement(o,Ae({},v,{className:h,innerProps:{id:f,onKeyDown:this.onKeyDown},isDisabled:m,isFocused:y}),this.renderLiveRegion(),E.createElement(s,Ae({},v,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:m,isFocused:y,menuIsOpen:g}),E.createElement(l,Ae({},v,{isDisabled:m}),this.renderPlaceholderOrValue(),this.renderInput()),E.createElement(a,Ae({},v,{isDisabled:m}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(i,s){var a=s.prevProps,o=s.clearFocusValueOnUpdate,l=s.inputIsHiddenAfterUpdate,u=s.ariaSelection,h=s.isFocused,f=s.prevWasFocused,m=s.instancePrefix,g=i.options,y=i.value,v=i.menuIsOpen,x=i.inputValue,_=i.isMulti,S=xM(y),w={};
119if(a&&(y!==a.value||g!==a.options||v!==a.menuIsOpen||x!==a.inputValue)){var k=v?cse(i,S):[],P=v?NM(mg(i,S),"".concat(m,"-option")):[],j=o?dse(s,S):null,A=fse(s,k),M=D_(P,A);w={selectValue:S,focusedOption:A,focusedOptionId:M,focusableOptionsWithIds:P,focusedValue:j,clearFocusValueOnUpdate:!1}}var L=l!=null&&i!==a?{inputIsHidden:l,inputIsHiddenAfterUpdate:void 0}:{},I=u,V=h&&f;return h&&!V&&(I={value:Ip(_,S,S[0]||null),options:S,action:"initial-input-focus"},V=!f),(u==null?void 0:u.action)==="initial-input-focus"&&(I=null),Pe(Pe(Pe({},w),L),{},{prevProps:i,ariaSelection:I,prevWasFocused:V})}}]),t}(E.Component);_I.defaultProps=use;var pse=E.forwardRef(function(n,e){var t=Nte(n);return E.createElement(_I,Ae({ref:e},t))}),gse=pse;function eh({options:n,selected:e,menuPlacement:t="auto",name:r,prefix:i,placeholder:s,update:a=null}){const o=()=>{const u=[];return Array.isArray(e)&&e.length>0&&e.forEach(h=>{const f=n.find(m=>m.value===h);f!=="undefined"&&u.push({value:f.value,label:f.label})}),u},l=u=>{a&&a(u)};return d.jsx(gse,{name:r,defaultValue:o,classNamePrefix:i,isMulti:!0,menuPlacement:t,onChange:l,options:n,placeholder:s,styles:{control:u=>({...u,borderColor:"var(--bs-border-color)"}),menu:u=>({...u,zIndex:"1000"}),multiValue:u=>({...u,borderRadius:"var(--bs-border-radius-sm)"}),multiValueRemove:u=>({...u,borderRadius:"var(--bs-border-radius-sm)"})},theme:u=>({...u,borderRadius:"var(--bs-border-radius)",colors:{...u.colors,primary:"var(--bs-primary)",primary25:"var(--bs-secondary-bg)",primary50:"rgba(var(--bs-primary-rgb), 0.5)",primary75:"rgba(var(--bs-primary-rgb), 0.75)",danger:"var(--bs-secondary)",dangerLight:"var(--bs-danger-bg-subtle)",neutral0:"var(--bs-body-bg)",neutral5:"var(--bs-gray-100)",neutral10:"var(--bs-secondary-bg)",neutral20:"var(--bs-border-color)",neutral30:"var(--bs-border-color)",neutral40:"var(--bs-body-color)",neutral50:"var(--bs-body-color)",neutral60:"var(--bs-body-color)",neutral70:"var(--bs-body-color)",neutral80:"var(--bs-body-color)",neutral90:"var(--bs-body-color)"}})})}const mse=new Intl.NumberFormat("de-DE",{maximumFractionDigits:0}),Pm=n=>n==null?"":String(n).replace(/\D/g,""),Fd=(n,e=0,t=null)=>{const r=Pm(n);if(r==="")return"";let i=Number.parseInt(r,10);return typeof e=="number"&&(i=Math.max(e,i)),typeof t=="number"&&(i=Math.min(t,i)),String(i)},co=n=>{const e=Fd(n,0);return e===""?0:Number.parseInt(e,10)},j1=n=>{if(n==null||n==="")return"";const e=typeof n=="number"?n:Number.parseInt(String(n),10);return Number.isFinite(e)?mse.format(e):""},k_=(n,e=0,t=null)=>{const r=Fd(n,e,t);return r===""?"":j1(Number.parseInt(r,10))};function R1({name:n,id:e,value:t,onValueChange:r=null,className:i,placeholder:s,required:a=!1,min:o=0,max:l=null,disabled:u=!1,onChange:h=null,onFocus:f=null,onBlur:m=null,inputMode:g="numeric",autoComplete:y="off",...v}){const x=Fd(t,o,l),[_,S]=E.useState(!1),[w,k]=E.useState(k_(x,o,l));E.useEffect(()=>{k(_&&!u?x:k_(x,o,l))},[u,_,l,o,x]);const P=L=>{typeof r=="function"&&r(L)},j=L=>{const I=Fd(L.target.value,o,l);k(I),P(I),typeof h=="function"&&h(L,I)},A=L=>{S(!0),k(x),typeof f=="function"&&f(L,x)},M=L=>{const I=Fd(L.target.value,o,l);S(!1),k(k_(I,o,l)),P(I),typeof m=="function"&&m(L,I)};return d.jsxs(d.Fragment,{children:[!u&&n&&d.jsx("input",{type:"hidden",name:n,value:x,readOnly:!0}),d.jsx("input",{type:"text",id:e,onChange:u?void 0:j,onFocus:u?void 0:A,onBlur:u?void 0:M,className:i,inputMode:g,autoComplete:y,placeholder:s,required:a,disabled:u,value:w,...v})]})}const xI=[{value:"asset_class_cash",label:"Bankguthaben und Barvermögen"},{value:"asset_class_deposits",label:"Festgelder"},{value:"asset_class_securities",label:"Wertpapiere"}],LM=[{value:"asset_class_investments",label:"Beteiligungen"},{value:"asset_class_real_estate",label:"Immobilien"},{value:"asset_class_insurance",label:"Kapitalbildende Versicherung"},{value:"asset_class_art_antiques",label:"Kunst und Antiquitäten"},{value:"asset_class_commodities",label:"Rohstoffe"},{value:"asset_class_misc",label:"Sonstiges Vermögen"}],P_=n=>n==-1?-1:co(n);function C_({data:n}){const[e,t]=E.useState(()=>{const y={...n.assets};
119return Object.keys(y).forEach(v=>{y[v]=Pm(y[v])}),y}),[r,i]=E.useState(P_(n.investment_sum)),[s,a]=E.useState(!1),[o,l]=E.useState(n.person_index),u=o!=1?"_"+o:"";E.useEffect(()=>{const y=document.getElementById("dfo-investment-sum");if(!y)return;const v=x=>{i(P_(x.target.value))};return i(P_(y.value)),y.addEventListener("input",v),y.addEventListener("change",v),()=>{y.removeEventListener("input",v),y.removeEventListener("change",v)}},[]);const h=E.useCallback((y,v)=>{const x={...e};x[y]=v,t(x)},[e]);let f=0;for(const y of Object.keys(e)){const v=co(e[y]);v&&(f+=v)}const m=r>=1e6;let g=m||s;for(const y of LM)co(e[y.value+u])>0&&(g=!0);return d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"card-body px-4 pt-3 pb-2",children:[d.jsx(vse,{title:n.title,content:n.help}),d.jsx("h6",{className:"my-2",children:"Vermögensherkunft"}),d.jsx(bse,{options:n.sources.options,selected:n.sources.selected,fieldPostfix:u}),d.jsx("h6",{className:"my-2",children:"Verfügbares Vermögen "}),d.jsx(BM,{rows:xI,assets:e,updateValue:h,fullTotal:f,fieldPostfix:u}),d.jsx("h6",{className:"my-2",children:"Illiquides Vermögen"}),d.jsx("div",{className:g?"d-block":"d-none",children:d.jsx(BM,{rows:LM,assets:e,updateValue:h,fullTotal:f,fieldPostfix:u})}),d.jsx("div",{className:g?"d-none":"d-block",children:d.jsxs("div",{className:"alert alert-light small text-body-secondary",role:"alert",children:[d.jsx("i",{className:"fa-light fa-circle-info me-2"}),"Sie müssen nicht ihr Gesamtvermögen angeben. ",d.jsx("br",{}),d.jsx("a",{style:{cursor:"pointer"},className:"fw-bold",onClick:()=>a(!0),children:"Klicken Sie hier um dennoch Angaben zu Ihrem Gesamtvermögen zu machen."})]})})]}),d.jsx(xse,{investmentSum:r,largeInvestment:m,assets:e,fieldPostfix:u})]})}function vse({title:n,content:e}){return d.jsxs(d.Fragment,{children:[d.jsx(bo,{title:n,content:e}),d.jsxs("h4",{className:"card-title mt-0 mb-3",children:[d.jsx("i",{className:"fa-light fa-piggy-bank fa-fw me-2 text-light-blue"}),n]})]})}function bse({options:n,selected:e,fieldPostfix:t}){return d.jsxs("div",{className:"mb-3",children:[d.jsx(eh,{options:n,selected:e,name:"asset_sources"+t+"[]",prefix:"dfo-asset-sources",placeholder:"Bitte auswählen..."}),d.jsx("div",{className:"form-text",children:"Sie können mehrere Einträge auswählen."})]})}function BM({rows:n,assets:e,updateValue:t,fullTotal:r,fieldPostfix:i}){let s=0;for(const a of n){const o=co(e[a.value+i]);o&&(s+=o)}return d.jsx("div",{className:"mb-3",children:d.jsx("div",{className:"alert alert-light mb-3",children:d.jsx("div",{className:"d-flex align-items-center",children:d.jsxs("div",{className:"flex-grow-1",children:[n.map((a,o)=>d.jsx(yse,{value:e[a.value+i],name:a.value+i,label:a.label,index:o,updateValue:t,fullTotal:r},a.label)),d.jsx("div",{className:"row mb-1",children:d.jsx("div",{className:"col-12",children:d.jsxs("div",{className:"input-group",children:[d.jsx("span",{className:"input-group-text",children:"â"}),d.jsx("input",{type:"text",className:"form-control",disabled:"true",value:j1(s)}),d.jsx("span",{className:"input-group-text",children:d.jsx("i",{className:"fa-light fa-euro fa-fw"})})]})})})]})})})})}function yse({value:n,name:e,label:t,updateValue:r,fullTotal:i}){let s="";return i!=0&&(s=Math.round(co(n)/i*100)),d.jsxs("div",{className:"row mb-1",children:[d.jsx("div",{className:"col-12 col-md-10",children:d.jsxs("div",{className:"input-group",children:[d.jsx("span",{className:"input-group-text w-50",children:t}),d.jsx(R1,{name:e,id:"dfo-asset-"+e,onValueChange:a=>{r(e,a)},className:"form-control",required:!0,min:0,max:1e8,value:n||0}),d.jsx("span",{className:"input-group-text",children:d.jsx("i",{className:"fa-light fa-euro fa-fw"})})]})}),d.jsx("div",{className:"col-md-2 d-none d-md-block",children:d.jsxs("div",{className:"input-group",children:[d.jsx("input",{className:"form-control",disabled:"true",value:s}),d.jsx("span",{className:"input-group-text",children:"%"})]})})]})}const _se=(n,e,t)=>{if(n<1)return null;let r=0;if(xI.forEach(s=>{e[s.value+t]!==""&&(r+=co(e[s.value+t]))}),r<1)return null;const i=n/r*100;return Math.round(i*100)/100};function xse({investmentSum:n,largeInvestment:e,assets:t,fieldPostfix:r}){if(n<0)return"";const i=_se(n,t,r),s=String(i).replace(".",",");return i===null?"":d.jsxs("div",{className:"card-footer px-4 py-3 small text-body-secondary",children:["Die Anlagesumme entspricht ",d.jsxs("strong",{children:[s,"%"]})," des kurzfristig verfügbaren Vermögens.",e&&d.jsxs("div",{className:"text-danger d-flex align-items-center",children:[d.jsx("i",{class:"fa-light fa-triangle-exclamation me-1"}
119),"Bitte geben Sie bei dieser Anlagesumme Ihr gesamtes Vermögen an."]})]})}function wse({options:n,selected:e,help:t}){const[r,i]=E.useState(e);E.useEffect(()=>{(!Array.isArray(r)||r.length==0)&&i([{iso_code:"DE",identifier:""}])},[r]),typeof n>"u"&&(n=[]);const s=o=>{o.preventDefault();const l={id:Dc(),iso_code:"DE",identifier:""};i([...r,l])},a=o=>{const l=r.filter(u=>u.id!==o);i(l)};return d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"card-body px-4 pt-3 pb-2",children:[d.jsx(Sse,{content:t}),d.jsx(Dse,{nationalities:r,options:n,create:s,remove:a})]}),d.jsx(Cse,{create:s,count:r.length})]})}function Sse({content:n}){return d.jsxs(d.Fragment,{children:[d.jsx(bo,{title:"Nationalitäten",content:n}),d.jsxs("h4",{className:"card-title mt-0 mb-3",children:[d.jsx("i",{className:"fa-light fa-globe fa-fw me-2 text-light-blue"}),"Nationalitäten"]})]})}function Dse({nationalities:n,options:e,create:t,remove:r}){return Array.isArray(n)&&n.length>0?d.jsx(d.Fragment,{children:n.map((i,s)=>d.jsx(kse,{nationality:i,total:n.length,options:e,index:s,remove:r},i.id))}):d.jsxs("div",{class:"alert alert-light small text-body-secondary",role:"alert",children:[d.jsx("i",{class:"fa-light fa-circle-info me-2"}),"Bitte hinterlegen Sie eine"," ",d.jsx("a",{href:"#",onClick:t,children:d.jsx("strong",{children:"Nationalität"})}),"!"]})}function kse({nationality:n,options:e,index:t,remove:r,total:i}){const[s,a]=E.useState(n.id),[o,l]=E.useState(n.iso_code),[u,h]=E.useState(n.identifier),f=v=>{l(v.target.value)},m=v=>{h(v.target.value)},g=v=>{v.preventDefault(),r(s)};return["at","de","fr","hu","ie","lu"].includes(o.toLowerCase())?d.jsx("div",{className:"alert alert-light m-0 mb-3 py-3",children:d.jsxs("div",{className:"d-flex align-items-center",children:[d.jsx("div",{class:"flex-grow-1",children:d.jsx($M,{isoCode:o,updateIsoCode:f,options:e,index:t})}),d.jsx("div",{className:"ps-3",children:i>1&&d.jsx(VM,{handleDelete:g})})]})}):d.jsx("div",{className:"alert alert-light m-0 mb-3 py-3",children:d.jsxs("div",{className:"d-flex align-items-center",children:[d.jsxs("div",{class:"flex-grow-1",children:[d.jsx("div",{className:"mb-2",children:d.jsx($M,{isoCode:o,updateIsoCode:f,options:e,index:t})}),d.jsx("div",{className:"mb-2",children:d.jsx(Pse,{identifier:u,updateIdentifier:m,index:t})}),d.jsxs("div",{className:"small text-body-secondary",children:["Die Angabe einer nationalen Kennung (in der Regel der Pass) ist erforderlich, wenn nicht Deutschland, Frankreich, Irland, Luxemburg oder Ãsterreich ausgewählt wird. Bitte kontaktieren Sie uns für die Angabe der richtigen Kennung via E-Mail an"," ",d.jsx("a",{href:"mailto:[email protected]",children:"[email protected]"}),"."]})]}),d.jsx("div",{className:"ps-3",children:i>1&&d.jsx(VM,{handleDelete:g})})]})})}function $M({isoCode:n,updateIsoCode:e,options:t,index:r}){return d.jsxs("div",{class:"input-group",children:[d.jsx("span",{class:"input-group-text",children:d.jsx("i",{class:"fa-light fa-globe fa-fw"})}),d.jsxs("div",{className:"form-floating",children:[d.jsx("select",{name:`nationalities[${r}][iso_code]`,id:`dfo-account__nationality-iso--${r}`,className:"form-control",onChange:e,defaultValue:n,required:!0,children:t.map(i=>d.jsx("option",{value:i.iso_code,children:i.title}))}),d.jsx("label",{htmlFor:`dfo-account__nationality-iso--${r}`,children:"Nationalität*"})]})]})}function Pse({identifier:n,updateIdentifier:e,index:t}){return d.jsxs("div",{class:"input-group",children:[d.jsx("span",{class:"input-group-text",children:d.jsx("i",{class:"fa-light fa-hashtag fa-fw"})}),d.jsxs("div",{className:"form-floating",children:[d.jsx("input",{type:"text",name:`nationalities[${t}][identifier]`,onChange:e,id:`dfo-account__nationality-id--${t}`,className:"form-control",placeholder:"Nationale Kennung, bspw. SSN",value:n}),d.jsx("label",{htmlFor:`dfo-account__nationality-id--${t}`,children:"Nationale Kennung, bspw. SSN"})]})]})}function VM({handleDelete:n}){return d.jsx("button",{type:"button",onClick:n,className:"btn btn-link",title:"Eintrag löschen",children:d.jsx("i",{className:"fa-light fa-xmark fa-fw"})})}function Cse({create:n,count:e}){return e<3?d.jsx("div",{className:"card-footer px-4 py-3",children:d.jsxs("button",{type:"button",onClick:n,className:"btn btn-primary btn-sm fw-bold",children:[d.jsx("i",{className:"fa-light fa-plus me-2"}),"Hinzufügen"]})}):""}const wI="49";function Ese(n,e){const t=n||"",r=[...e||[]].sort((i,s)=>s.length-i.length).find(i=>t.startsWith(i));return r?{dialCode:r,nationalNumber:t.slice(r.length)}:{dialCode:wI,nationalNumber:t}}function Mse(n,e){return`${n}${e||""}`}function Tse({initialData:n,initialError:e,help:t,countryCodes:r}){const[i,s]=E.useState(n),[a,o]=E.useState(e),l=Array.isArray(r)&&r.length>0?r:[wI],u=f=>{f.preventDefault();const m={id:Dc(),number:"",context:"mobile"};s([...i,m])},h=f=>{const m=i.filter(g=>g.id!==f);s(m)};return d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"card-body px-4 pt-3 pb-2",children:[d.jsx(Ose,{content:t}),d.jsx(Ase,{data:i,create:u,remove:h,error:a,countryCodes:l})]}),d.jsx(Lse,{create:u,count:i.length})]})}function Ose({content:n}){return d.jsxs(d.Fragment,{children:[d.jsx(bo,{title:"Telefon",content:n}),d.jsxs("h5",{className:"card-title mt-0 mb-3",children:[d.jsx("i",{className:"fa-light fa-phone fa-fw me-2 text-light-blue"}),"Telefon"]})]})}function Ase({data:n,create:e,remove:t,error:r,countryCodes:i}){return Array.isArray(n)&&n.length>0?d.jsxs(d.Fragment,{children:[d.jsx(jse,{error:r}),n.map((s,a)=>d.jsx(Ise,{phone:s,index:a,remove:t,countryCodes:i},s.id))]}):d.jsx(Rse,{create:e,error:r})}function jse({error:n}){return n?d.jsxs("div",{className:"alert alert-danger small",role:"alert",children:[d.jsx("i",{className:"fa-light fa-circle-info me-2"}),"Bitte hinterlegen Sie ",d.jsx("strong",{children:"mindestens eine Mobilnummer"}),"!"]}):null}function Rse({create:n,error:e}){const t=e?"alert-danger":"alert-light text-body-secondary";return d.jsxs("div",{className:`alert ${t} small`,role:"alert",children:[d.jsx("i",{className:"fa-light fa-circle-info me-2"}),"Bitte hinterlegen Sie"," ",d.jsx("a",{href:"#",className:"alert-link",onClick:n,children:d.jsx("strong",{children:"mindestens eine Mobiltelefonnummer"})}),"!"]})}function Ise({phone:n,index:e,remove:t,countryCodes:r}){const[i,s]=E.useState(n.id),a=Ese(n.number,r),[o,l]=E.useState(a.dialCode),[u,h]=E.useState(a.nationalNumber),[f,m]=E.useState(n.context),[g,y]=E.useState(null),v=P=>{l(P.target.value)},x=P=>{h(P.target.value)},_=P=>{m(P.target.value),S(P.target.value)},S=P=>{y(P==="work"?"phone-office":P==="private"?"phone":"mobile")};E.useEffect(()=>{S(f)},[]);const w=P=>{P.preventDefault(),t(i)},k=P=>`Telefonnummer*, bspw. ${P==="mobile"?"1701234567":"401234567"}`;return d.jsx("div",{className:"alert alert-light m-0 mb-3 py-3",children:d.jsxs("div",{className:"d-flex align-items-center",children:[d.jsxs("div",{class:"flex-grow-1",children:[d.jsxs("div",{className:"row",children:[d.jsxs("div",{className:"col-12 col-md-8 col-lg-12 col-xl-8 mb-3",children:[d.jsx("input",{type:"hidden",name:`phones[${e}][number]`,value:Mse(o,u)}),d.jsxs("div",{class:"input-group",children:[d.jsx("span",{class:"input-group-text",children:d.jsx(Nse,{handle:g})}),d.jsxs("div",{className:"form-floating",style:{flex:"0 0 8rem",width:"8rem"},children:[d.jsx("select",{"aria-label":"Ländervorwahl",className:"form-select",id:`dfo-phone__dial-code-${e}`,onChange:v,value:o,children:r.map(P=>d.jsx("option",{value:P,children:`+${P}`},P))}),d.jsx("label",{htmlFor:`dfo-phone__dial-code-${e}`,children:"Ländercode*"})]}),d.jsxs("div",{className:"form-floating",children:[d.jsx("input",{type:"tel",onCh
119ange:x,id:`dfo-phone__number-${e}`,className:"form-control",placeholder:k(f),required:"required",value:u}),d.jsx("label",{htmlFor:`dfo-phone__number-${e}`,children:k(f)})]})]})]}),d.jsx("div",{className:"col-12 col-md-4 col-lg-12 col-xl-4 mb-3",children:d.jsxs("div",{className:"form-floating",children:[d.jsxs("select",{name:`phones[${e}][context]`,id:`dfo-phone__context-${e}`,className:"form-select",onChange:_,defaultValue:f,children:[d.jsx("option",{value:"mobile",children:"Mobil"}),d.jsx("option",{value:"private",children:"Privat"}),d.jsx("option",{value:"work",children:"Arbeit"})]}),d.jsx("label",{htmlFor:`dfo-phone__context-${e}`,children:"Typ*"})]})})]}),d.jsx(Fse,{context:f})]}),d.jsx("div",{className:"ps-3",children:d.jsx("button",{type:"button",onClick:w,className:"btn btn-link",title:"Eintrag löschen",children:d.jsx("i",{className:"fa-light fa-xmark"})})})]})})}function Nse({handle:n}){const e=`fa-light fa-${n} fa-fw`;return d.jsx("i",{className:e})}function Fse({context:n}){const e=n==="mobile"?"1701234567":"401234567";return d.jsxs("div",{class:"text-body-secondary small",children:["Bitte verwenden Sie das Format ",d.jsx("i",{children:e})," ","(ausschlieÃlich Zahlen, ohne führende Null, kein Pluszeichen, keine Leerzeichen oder Bindestriche)."]})}function Lse({create:n,count:e}){return e<3?d.jsx("div",{className:"card-footer px-4 py-3",children:d.jsxs("button",{type:"button",onClick:n,className:"btn btn-primary btn-sm fw-bold",children:[d.jsx("i",{className:"fa-light fa-plus me-2"}),"Hinzufügen"]})}):""}function Bse({data:n}){const[e,t]=E.useState(n.occupation||n.occupations[0].value),[r,i]=E.useState(n.industry),[s,a]=E.useState(n.company),[o,l]=E.useState(n.country),u=y=>{t(y.target.value)},h=y=>{i(y.target.value)},f=y=>{a(y.target.value)},m=y=>{l(y.target.value)},g=()=>{a(""),l("DE")};return d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"row",children:[d.jsx("div",{className:"col-12 col-md-6 mb-3",children:d.jsx($se,{occupations:n.occupations,occupation:e,updateOccupation:u})}),d.jsx("div",{className:"col-12 col-md-6 mb-3",children:d.jsx(Vse,{occupation:e,industries:n.industries,industry:r,updateIndustry:h,occupationIndustryMap:n.occupationIndustryMap})})]}),d.jsx(Yse,{occupation:e,company:s,updateCompany:f,countries:n.countries,country:o,updateCountry:m,resetBoardMember:g})]})}function $se({occupations:n,occupation:e,updateOccupation:t}){return d.jsxs("div",{class:"input-group",children:[d.jsx("span",{class:"input-group-text",children:d.jsx("i",{class:"fa-light fa-user-group fa-fw"})}),d.jsxs("div",{className:"form-floating",children:[d.jsx("select",{name:"occupation",id:"dfo-account__occupation",className:"form-select",onChange:t,defaultValue:e,required:!0,children:n.map(r=>d.jsx(I1,{option:r,selected:e},r.id))}),d.jsx("label",{htmlFor:"dfo-account__occupation",children:"Berufsgruppe*"})]})]})}function Vse({occupation:n,industries:e,industry:t,updateIndustry:r,occupationIndustryMap:i}){if(!i[n])return null;if(i[n].length==1)return d.jsx("input",{type:"hidden",name:"industry",value:i[n][0]});const s=e.filter(a=>i[n].includes(a.value));return d.jsxs("div",{class:"input-group",children:[d.jsx("span",{class:"input-group-text",children:d.jsx("i",{class:"fa-light fa-industry-windows fa-fw"})}),d.jsxs("div",{className:"form-floating",children:[d.jsx("select",{name:"industry",id:"dfo-account__industry",className:"form-select",onChange:r,defaultValue:t,required:!0,children:s.map(a=>d.jsx(I1,{option:a,selected:t},a.id))}),d.jsx("label",{htmlFor:"dfo-account__industry",children:"Branche*"})]})]})}function Yse({occupation:n,company:e,updateCompany:t,countries:r,country:i,updateCountry:s,resetBoardMember:a}){return n!=="OT_15"?(a(),""):d.jsxs("div",{className:"row",children:[d.jsx("div",{className:"col-12 col-md-6 mb-3",children:d.jsx(Hse,{company:e,updateCompany:t})}),d.jsx("div",{className:"col-12 col-md-6 mb-3",children:d.jsx(zse,{countries:r,country:i,updateCountry:s})})]})}function Hse({company:n,updateCompany:e}){return d.jsxs("div",{class:"input-group",children:[d.jsx("span",{class:"input-group-text",children:d.jsx("i",{class:"fa-light fa-buildings fa-fw"})}),d.jsxs("div",{className:"form-floating",children:[d.jsx("input",{type:"text",name:"company",onChange:e,id:"dfo-account__company",className:"form-control",placeholder:"Name des Unternehmens*",value:n}),d.jsx("label",{htmlFor:"dfo-account__company",children:"Name des Unternehmens*"})]})]})}function zse({countries:n,country:e,updateCountry:t}){return d.jsxs("div",{class:"input-group",children:[d.jsx("span",{class:"input-group-text",children:d.jsx("i",{class:"fa-light fa-globe fa-fw"})}),d.jsxs("div",{className:"form-floating",children:[d.jsx("select",{name:"country_of_activity",id:"dfo-account__country-of-activity",className:"form-select",onChange:t,defaultValue:e,required:!0,children:n.map(r=>d.jsx(I1,{option:r,selected:e},r.id))}),d.jsx("label",{htmlFor:"dfo-account__country-of-activity",children:"Land der Berufsausübung*"})]})]})}function I1({option:n,selected:e}){return n.value===e?d.jsx("option",{value:n.value,selected:!0,children:n.label}):d.jsx("option",{value:n.value,children:n.label})}function E_({initialData:n}){const[e,t]=E.useState(()=>Pm(n.income_net)),[r,i]=E.useState(()=>Pm(n.expenses)),s=n.person_index,a=s!=1?"_"+s:"";return d.jsxs("div",{className:"row",children:[d.jsx("div",{className:"col-12",children:d.jsx("h6",{className:"my-2",children:"Berechnung"})}),d.jsx(Wse,{incomeNet:e,setIncomeNet:t,fieldPostfix:a}),d.jsx(Use,{expenses:r,setExpenses:i,fieldPostfix:a}),d.jsx(Gse,{incomeNet:e,expenses:r,fieldPostfix:a}),d.jsx("div",{className:"col-12",children:d.jsx("h6",{className:"my-2",children:"Einkommensherkunft"})}),d.jsx(Xse,{options:n.sources_options,selected:n.sources_selected,fieldPostfix:a})]})}function Wse({incomeNet:n,setIncomeNet:e,fieldPostfix:t}){return d.jsxs("div",{className:"col-12 col-md-6 col-lg-12 col-xxl-6 mb-3",children:[d.jsxs("div",{class:"input-group",children:[d.jsx("span",{class:"input-group-text",children:d.jsx("i",{className:"fa-light fa-euro fa-fw"})}),d.jsxs("div",{className:"form-floating",children:[d.jsx(R1,{name:"income_net"+t,id:"dfo-income_net"+t,onValueChange:e,className:"form-control",max:1e8,min:0,placeholder:"Jahreseinkommen (netto) p.a. in Euro*",required:!0,value:n}),d.jsx("label",{htmlFor:"dfo-income_net"+t,children:"Jahreseinkommen (netto) p.a. in Euro*"})]})]}),d.jsx("div",{class:"form-text",children:"Berechnung: Jahreseinkommen (brutto) p.a. - Steuern - Sozialabgaben"})]})}function Use({expenses:n,setExpenses:e,fieldPostfix:t}){return d.jsxs("div",{className:"col-12 col-md-6 col-lg-12 col-xxl-6 mb-3",children:[d.jsxs("div",{class:"input-group",children:[d.jsx("span",{class:"input-group-text",children:d.jsx("i",{className:"fa-light fa-euro fa-fw"})}),d.jsxs("div",{className:"form-floating",children:[d.jsx(R1,{name:"expenses"+t,id:"dfo-expenses"+t,onValueChange:e,className:"form-control",max:1e8,min:0,placeholder:"Ausgaben p.a. in Euro*",required:!0,value:n}),d.jsx("label",{htmlFor:"dfo-expenses"+t,children:"Ausgaben p.a. in Euro*"})]})]}),d.jsx("div",{class:"form-text",children:"Bitte verwenden Sie lediglich natürliche Zahlen."})]})}function Gse({incomeNet:n,expenses:e,fieldPostfix:t}){const r=co(n)-co(e);return d.jsxs("div",{className:"col-12 mb-3",children:[d.jsxs("div",{class:"input-group",children:[d.jsx("span",{class:"input-group-text",children:d.jsx("i",{className:"fa-light fa-euro fa-fw"})}),d.jsxs("div",{className:"form-floating",children:[d.jsx("input",{type:"text",name:"disposable_income"+t,id:"dfo-disposable-income"+t,className:"form-control",placeholder:"Netto-Einkünfte p.a. in Euro",value:j1(r),disabled:!0}),d.jsx("label",{htmlFor:"dfo-disposable-income"+t,children:"Netto-Einkünfte p.a. in Euro"})]})]}),d.jsx("div",{class:"form-text",children:"Berechnung: Jahreseinkommen (netto) p.a. - Ausgaben p.a."})]})}function Xse({options:n,selected:e,fieldPostfix:t}){return d.jsxs("div",{className:"col-12 mb-3",children:[d.jsx(eh,{options:n,selected:e,name:"income_sources"+t+"[]",prefix:"dfo-income-sources",placeholder:"Bitte auswählen..."}),d.jsx("div",{className:"form-text",children:"Sie können mehrere Einträge auswählen."})]})}var SI={exports:{}},qse="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Kse=qse,Qse=Kse;function DI(){}function kI(){}kI.resetWarningCache=DI;var Zse=function(){function n(r,i,s,a,o,l){if(l!==Qse){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}}n.isRequired=n;function e(){return n}var t={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:e,element:n,elementType:n,instanceOf:e,node:n,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:kI,resetWarningCache:DI};return t.PropTypes=t,t};SI.exports=Zse();var Pi=SI.exports;function Jse({data:n}){const[e,t]=E.useState(n.firstCountry),[r,i]=E.useState(n.firstTin),[s,a]=E.useState(n.taxes),[o,l]=E.useState(n.countries),u=f=>{f.preventDefault();const m={id:Dc(),country:"",tax_id:""};a([...s,m])},h=f=>{const m=s.filter(g=>g.id!==f);a(m)};return d.jsxs(d.Fragment,{children:[d.jsx("h6",{className:"mt-4 mb-3",children:"Erster steuerlicher Wohnsitz"}),d.jsxs("div",{className:"row align-items-center",children:[d.jsx("div",{className:"col-12 col-xxl-6 mb-3",children:d.jsx(N1,{name:"tax_country",index:"999999",defaultValue:e,onCh
119ange:f=>t(f.target.value),countries:o})}),d.jsx("div",{className:"col-12 col-xxl-6 mb-3",children:d.jsx(F1,{name:"tax_id",index:"999999",value:r,country:e,onChange:f=>i(f.target.value)})})]}),d.jsx("h6",{className:"mt-2 mb-3",children:"Weitere steuerliche Wohnsitze"}),d.jsx(eae,{taxes:s,countries:o,create:u,remove:h,count:s.length})]})}function eae({taxes:n,countries:e,create:t,remove:r,count:i}){return Array.isArray(n)&&n.length>0?d.jsxs(d.Fragment,{children:[n.map((s,a)=>d.jsx(nae,{tax:s,countries:e,index:a,remove:r},s.id)),d.jsx(rae,{create:t,count:i})]}):d.jsx(tae,{create:t})}function tae({create:n}){return d.jsxs("div",{class:"alert alert-light small text-body-secondary",role:"alert",children:[d.jsx("i",{class:"fa-light fa-circle-info me-2"}),"Sie können etwaige"," ",d.jsx("a",{href:"#",onClick:n,children:d.jsx("strong",{children:"internationale Steuerpflichten (CRS)"})})," ","angeben."]})}function N1(n){return d.jsxs("div",{class:"input-group",children:[d.jsx("span",{class:"input-group-text",children:d.jsx("i",{class:"fa-light fa-globe fa-fw"})}),d.jsxs("div",{className:"form-floating",children:[d.jsx("select",{name:n.name,id:`dfo-account__tax-crs-country--${n.index}`,className:"form-control",onChange:n.onChange,defaultValue:n.defaultValue,required:!0,children:n.countries.map(e=>d.jsx("option",{value:e.value,children:e.label},e.id))}),d.jsx("label",{htmlFor:`dfo-account__tax-crs-country--${n.index}`,children:"Land*"})]})]})}N1.propTypes={name:Pi.string,index:Pi.any,onChange:Pi.func,defaultValue:Pi.any,countries:Pi.any,prop4:Pi.func};function F1(n){return d.jsxs("div",{class:"input-group",children:[d.jsx("span",{class:"input-group-text",children:d.jsx("i",{class:"fa-light fa-hashtag fa-fw"})}),d.jsxs("div",{className:"form-floating",children:[d.jsx("input",{type:"text",name:n.name,onChange:n.onChange,id:`dfo-account__tax-crs-id--${n.index}`,className:"form-control",maxlength:100,placeholder:"Steuer-ID (TIN)*",required:"required",value:n.value}),d.jsx("label",{htmlFor:`dfo-account__tax-crs-id--${n.index}`,children:n.country==="DE"?d.jsx(d.Fragment,{children:"Deutsche Steuer-ID*"}):d.jsx(d.Fragment,{children:"Steuer-ID (TIN)*"})})]})]})}F1.propTypes={name:Pi.string,country:Pi.string,index:Pi.any,onChange:Pi.func,value:Pi.any};function nae({tax:n,countries:e,index:t,remove:r}){const[i,s]=E.useState(n.id),[a,o]=E.useState(n.tax_id),[l,u]=E.useState(n.country),h=g=>{o(g.target.value)},f=g=>{u(g.target.value)},m=g=>{g.preventDefault(),r(i)};return d.jsx("div",{class:"alert alert-light p-3 mb-3",children:d.jsxs("div",{className:"d-flex align-items-center",children:[d.jsx("div",{className:"flex-grow-1",children:d.jsxs("div",{className:"row",children:[d.jsx("div",{className:"col-12 col-md-6 mb-3 mb-md-0",children:d.jsx(N1,{name:`tax_crs[${t}][country]`,index:t,onChange:f,defaultValue:l,countries:e})}),d.jsx("div",{className:"col-12 col-md-6",children:d.jsx(F1,{name:`tax_crs[${t}][tax_id]`,country:l,index:t,onChange:h,value:a})})]})}),d.jsx("div",{className:"ps-3",children:d.jsx("button",{type:"button",onClick:m,className:"btn btn-link px-1",title:"Eintrag löschen",children:d.jsx("i",{className:"fa-light fa-xmark"})})})]})})}function rae({create:n,count:e}){return e<3?d.jsxs("button",{type:"button",onClick:n,className:"btn btn-outline-primary btn-sm fw-bold mb-3",children:[d.jsx("i",{className:"fa-light fa-plus me-2"}),"Steuerpflicht hinzufügen"]}):""}const iae=n=>{if(typeof n!="string")return"";let e=n.trim();if(e.length<1)return"";let t="";return e.startsWith("+")?t=e:e.startsWith("00")?t="+"+e.slice(2):e.startsWith("0")?t="+"+e.slice(1):t="+"+e,t};function sae({defaultMobile:n}){const[e,t]=E.useState("request"),[r,i]=E.useState(iae(n)),[s,a]=E.useState(null),[o,l]=E.useState(null),u=g=>{a(g.target.value)},h=g=>{g.preventDefault(),t("load"),fetch(`/verify/request-code/${r}`).then(y=>(y.ok||(console.error(`Error 1732613269: HTTP status ${y.status}`),t("error")),y.json())).then(y=>{y.status==="pending"?t("validate"):t("error")}).catch(y=>{console.error(`Error 1732617990: Fetch error ${y}`),t("error")})},f=g=>{g.preventDefault(),t("load"),fetch(`/verify/validate-code/${r}/${s}`).then(y=>(y.ok||(console.error(`Error 1732613426: HTTP status ${y.status}`),t("error")),y.json())).then(y=>{y.status==="approved"?(l(y),t("save")):t("error")}).catch(y=>{console.error(`Error 1732613370: Fetch error ${y}`),t("error")})},m=g=>{h(g)};switch(e){case"error":return d.jsx(dae,{});case"load":return d.jsx(uae,{});case"save":return d.jsx(cae,{result:o});case"validate":return d.jsx(oae,{code:s,updateCode:u,validateCode:f,resendCode:m});default:return d.jsx(aae,{mobile:r,requestCode:h})}}function aae({mobile:n,requestCode:e}){return d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"modal-body",children:[d.jsx("p",{children:"Um Ãnderungen an ihren Daten zu speichern, müssen wir Sie erneut verifizieren. Hierzu schicken wir einen Code via SMS an ihr Mobiltelefon, den Sie danach hier eingeben müssen."}),d.jsxs("div",{className:"input-group mb-2",children:[d.jsx("span",{className:"input-group-text",children:d.jsx("i",{className:"fa-light fa-mobile"})}),d.jsxs("div",{className:"form-floating",children:[d.jsx("input",{type:"tel",id:"dfo-input--mobile",className:"form-control",placeholder:"Ihr Mobiltelefon",value:n,disabled:!0,readonly:!0}),d.jsx("label",{htmlFor:"dfo-input--mobile",children:"Ihr Mobiltelefon"})]})]}),d.jsxs("div",{class:"form-text",children:["Bitte kontaktieren Sie uns direkt, wenn Sie eine andere Telefonnummer verwenden möchten. Sie erreichen uns"," ",d.jsx("a",{href:"mailto:[email protected]",children:"via E-Mail"})," ","oder telefonisch unter"," ",d.jsx("a",{href:"tel:+4940226381210",children:"+49 40 2263812-10"}),"."]})]}),d.jsxs("div",{className:"modal-footer d-flex justify-content-center justify-content-sm-between align-items-center bg-light",children:[d.jsxs("button",{type:"button",className:"order-sm-2 btn btn-secondary fw-bold",onClick:e,children:["Weiter",d.jsx("i",{className:"fa-light fa-long-arrow-right ms-2"})]}),d.jsxs("button",{type:"button",className:"order-sm-1 mt-3 mt-sm-0 btn btn-link small text-decoration-none text-body-secondary","data-bs-dismiss":"modal",children:[d.jsx("i",{className:"fa-light fa-xmark me-2"}),"Abbrechen"]})]})]})}function oae({code:n,updateCode:e,validateCode:t,resendCode:r}){return d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"modal-body",children:[d.jsx("p",{children:"Wir haben eine SMS mit einem Code an Ihr Mobiltelefon schicken lassen. Bitte geben Sie den Code hier ein."}),d.jsxs("div",{className:"input-group mb-2",children:[d.jsx("span",{className:"input-group-text",children:d.jsx("i",{className:"fa-light fa-lock-keyhole"})}),d.jsxs("div",{className:"form-floating",children:[d.jsx("input",{type:"number",id:"dfo-input--code",className:"form-control",onChange:e,placeholder:"Code",value:n}),d.jsx("label",{htmlFor:"dfo-input--code",children:"Code"})]})]})]}),d.jsxs("div",{className:"modal-footer d-flex justify-content-center justify-content-sm-between align-items-center bg-light",children:[d.jsxs("button",{type:"button",className:"order-sm-2 btn btn-secondary fw-bold",onClick:t,children:["Weiter",d.jsx("i",{className:"fa-light fa-long-arrow-right ms-2"})]}),d.jsx(lae,{resendCode:r})]})]})}function lae({resendCode:n}){const[e,t]=E.useState(15);return E.useEffect(()=>{const r=setInterval(()=>{e>0?t(i=>i-1):clearInterval(r)},1e3);return()=>clearInterval(r)},[]),e<1?d.jsxs("button",{type:"button",onClick:n,className:"order-sm-1 mt-3 mt-sm-0 btn btn-light small text-decoration-none text-body-secondary",children:[d.jsx("i",{className:"fa-light fa-arrows-rotate me-2"}),"Code erneut senden"]}):d.jsxs("span",{className:"small text-body-secondary",children:[d.jsx("i",{className:"fa-light fa-arrows-rotate fa-spin me-2"}),"Code erneut senden in ",e," Sekunden"]})}function uae(){return d.jsxs(vt,{baseColor:"#f1f5f9",highlightColor:"#cbd5e1",children:[d.jsxs("div",{className:"modal-body",children:[d.jsx("p",{children:d.jsx(ce,{})}),d.jsx(ce,{height:40,width:280})]}),d.jsxs("div",{className:"modal-footer d-flex justify-content-center justify-content-sm-between align-items-center bg-light",children:[d.jsx(ce,{className:"order-sm-2",height:30,width:120}),d.jsx(ce,{className:"order-sm-1",height:20,width:120})]})]})}function cae({result:n}){return E.useEffect(()=>{const e=setTimeout(()=>{document.getElementById("dfo-account__form").submit()},1e3);return()=>clearTimeout(e)},[]),d.jsxs(vt,{baseColor:"#f1f5f9",highlightColor:"#cbd5e1",children:[d.jsxs("div",{className:"modal-body",children:[d.jsx("p",{children:d.jsx(ce,{})}),d.jsx(ce,{height:40,width:280}),d.jsx("input",{type:"hidden",name:"twilio[sid]",value:n.sid}),d.jsx("input",{type:"hidden",name:"twilio[status]",value:n.status}),d.jsx("input",{type:"hidden",name:"twilio[to]",value:n.to})]}),d.jsxs("div",{className:"modal-footer d-flex justify-content-center justify-content-sm-between align-items-center bg-light",children:[d.jsx(ce,{className:"order-sm-2",height:30,width:120}),d.jsx(ce,{className:"order-sm-1",height:20,width:120})]})]})}function dae(){return d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"modal-body",children:[d.jsxs("div",{class:"alert alert-danger mb-3",children:[d.jsx("i",{className:"fa-light fa-exclamation-triangle me-2"}),"Leider ist ein ",d.jsx("strong",{children:"Fehler"})," aufgetreten."]}),d.jsx("p",{children:"Bei der Zwei-Faktor-Authentisierung ist ein Fehler aufgetreten. Bitte wiederholen Sie den Vorgang."}),d.jsxs("p",{className:"mb-0",children:["Sofern der Fehler weiterhin auftritt, bitten wir Sie, Kontakt zu uns aufzunehmen. Sie erreichen uns via E-Mail an"," ",d.jsx("a",{href:"mailto:[email protected]",children:"[email protected]"})," ","oder telefonisch unter"," ",d.jsx("a",{href:"tel:+4940226381210",children:"+49 40 2263812-10"}),"."]})]}),d.jsx("div",{className:"modal-footer bg-light",children:d.jsxs("button",{type:"button",className:"order-sm-1 mt-3 mt-sm-0 btn btn-light small text-decoration-none text-body-secondary","data-bs-dismiss":"modal",children:[d.jsx("i",{className:"fa-light fa-xmark me-2"}),"Fenster schlieÃen"]})})]})}function fae({data:n}){const[e,t]=E.useState(n.options),[r,i]=E.useState(n.selected),s=o=>{o.preventDefault();const l={id:Dc(),type:"",hasKnowHow:"false",transactions:"",volume:""};i([...r,l])},a=o=>{const l=r.filter(u=>u.id!==o);i(l)};return d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"card-body px-4 pt-3 pb-0",children:[d.jsx(hae,{content:n.help}),d.jsx(pae,{options:e,experiences:r,handleCreate:s,handleDelete:a})]}),d.jsx(vae,{handleCreate:s,count:r.length})]})}function hae({content:n}){return d.jsxs(d.Fragment,{children:[d.jsx(bo,{title:"Kenntnisse und Erfahrungen",content:n}),d.jsxs("h5",{className:"card-title mt-0 mb-3",children:[d.jsx("i",{className:"fa-light fa-books fa-fw me-2 text-light-blue"}),"Kenntnisse und Erfahrungen"]}),d.jsx("p",{children:"Je Finanzinstrument"})]})}function pae({options:n,experiences:e,handleCreate:t,handleDelete:r}){return Array.isArray(e)&&e.length>0?d.jsx(d.Fragment,{children:e.map((i,s)=>d.jsx(mae,{options:n,experiences:e,experience:i,index:s,handleDelete:r},i.id))}):d.jsxs("div",{class:"alert alert-light small text-body-secondary",role:"alert",children:[d.jsx("i",{class:"fa-light fa-circle-info me-2"}),"Bitte machen Sie Angaben zu Ihren"," ",d.jsx("a",{href:"#",onClick:t,children:d.jsx("strong",{children:"Kenntnissen und Erfahrungen"})}),"!"]})}const gae=n=>typeof n=="string"&&n==="true";function mae({options:n,experiences:e,experience:t,index:r,handleDelete:i}){const[s,a]=E.useState(t.id),[o,l]=E.useState(t.type),[u,h]=E.useState(gae(t.hasKnowHow)),[f,m]=E.useState(t.transactions),[g,y]=E.useState(t.volume),v=w=>{l(w.target.value)},x=w=>{m(w.target.value)},_=w=>{y(w.target.value)},S=w=>{w.preventDefault(),i(s)};return d.jsx("div",{class:"alert alert-light p-3 mb-3",children:d.jsxs("div",{className:"d-flex align-items-center",children:[d.jsx("div",{className:"flex-grow-1",children:d.jsxs("div",{className:"row",children:[d.jsx("div",{className:"col-12 mb-2",children:d.jsxs("div",{class:"input-group",children:[d.jsx("span",{class:"input-group-text",children:d.jsx("i",{class:"fa-light fa-piggy-bank fa-fw"})}),d.jsxs("div",{className:"form-floating",children:[d.jsx("select",{name:`experiences[${r}][type]`,id:`dfo-experiences__type--${r}`,className:"form-select",onChange:v,defaultValue:o,required:!0,children:n.type.map(w=>d.jsx(M_,{value:w.value,label:w.label},w.id))}),d.jsx("label",{htmlFor:`dfo-experiences__type--${r}`,children:"Art des Finanzinstruments*"})]})]})}),d.jsx("div",{className:"col-12 mt-1 mb-2",children:d.jsxs("div",{class:"form-check mb-2",children:[d.jsx("input",{type:"checkbox",name:`experiences[${r}][knowhow]`,id:`dfo-experiences__knowhow--${r}`,checked:u,onChange:()=>h(!u),value:"true",class:"form-check-input"}),d.jsx("label",{htmlFor:`dfo-experiences__knowhow--${r}`,class:"form-check-label",children:"Ja, ich verfüge auch über Kenntnisse zu diesem Finanzinstrument."})]})}),d.jsx("div",{className:"col-12 mb-2",children:d.jsxs("div",{class:"input-group",children:[d.jsx("span",{class:"input-group-text",children:d.jsx("i",{class:"fa-light fa-arrows-rotate fa-fw"})}),d.jsxs("div",{className:"form-floating",children:[d.jsx("select",{name:`experiences[${r}][transactions]`,id:`dfo-experiences__transactions--${r}`,className:"form-select",onChange:x,defaultValue:f,required:!0,children:n.transactions.map(w=>d.jsx(M_,{value:w.value,label:w.label},w.id))}),d.jsx("label",{htmlFor:`dfo-experiences__transactions--${r}`,children:"Anzahl der Transaktionen*"})]})]})}),d.jsx("div",{className:"col-12",children:d.jsxs("div",{class:"input-group",children:[d.jsx("span",{class:"input-group-text",children:d.jsx("i",{class:"fa-light fa-money-check-dollar fa-fw"})}),d.jsxs("div",{className:"form-floating",children:[d.jsx("select",{name:`experiences[${r}][volume]`,id:`dfo-experiences__volume--${r}`,className:"form-select",onChange:_,defaultValue:g,required:!0,children:n.volume.map(w=>d.jsx(M_,{value:w.value,label:w.label},w.id))}),d.jsx("label",{htmlFor:`dfo-experiences__volume--${r}`,children:"Durchschnittliches Volumen pro Transaktion*"})]})]})})]})}),d.jsx("div",{className:"ps-3",children:d.jsx("button",{type:"button",onClick:S,className:"btn btn-link",title:"Eintrag löschen",children:d.jsx("i",{className:"fa-light fa-xmark"})})})]})})}function M_({value:n,label:e}){return d.jsx("option",{value:n,children:e})}function vae({handleCreate:n,count:e}){return e<9?d.jsx("div",{className:"card-footer px-4 py-3",children:d.jsxs("button",{type:"button",onClick:n,className:"btn btn-primary btn-sm fw-bold",children:[d.jsx("i",{className:"fa-light fa-plus me-2"}),"Hinzufügen"]})}):""}function bae({isChecked:n,handleChange:e}){return d.jsx("section",{id:"opt-in-bvs",class:"card mb-5 shadow-sm",children:d.jsxs("div",{class:"card-body p-4",children:[d.jsxs("h4",{class:"card-title mt-0 mb-3",children:[d.jsx("i",{class:"fa-light fa-square-check me-2 text-light-blue","aria-hidden":"true"}),"Zustimmung zur BvS-Vermögensverwaltung"]}),d.jsxs("div",{class:"form-check form-switch",children:[d.jsx("input",{type:"checkbox",name:"opt_in_bvs",value:"yes",id:"m-onboarding__opt-in-bvs",class:"form-check-input",role:"switch",checked:n,onChange:e}),d.jsx("label",{class:"form-check-label",for:"m-onboarding__opt-in-bvs",children:"Hiermit erkläre ich meine Zustimmung zur Vermögensverwaltung durch BvS."})]})]})})}function yae({isChecked:n,handleChange:e,bank:t}){return d.jsx("section",{id:"opt-in-dab",class:"card mb-5 shadow-sm",children:d.jsxs("div",{class:"card-body p-4",children:[d.jsxs("h4",{class:"card-title mt-0 mb-3",children:[d.jsx("i",{class:"fa-light fa-square-check me-2 text-light-blue","aria-hidden":"true"}),"Zustimmung zur Depoteröffnung"]}),d.jsxs("div",{class:"form-check form-switch",children:[d.jsx("input",{type:"checkbox",name:"opt_in_dab",value:"yes",id:"m-onboarding__opt-in-dab",class:"form-check-input",role:"switch",checked:n,onChange:e}),d.jsxs("label",{class:"form-check-label",for:"m-onboarding__opt-in-dab",children:["Hiermit erkläre ich meine Zustimmung zur Depoteröffnung durch die ",t,"."]})]})]})})}function _ae({defaultMobile:n,next:e}){const[t,r]=E.useState("request"),[i,s]=E.useState(n),[a,o]=E.useState(null),[l,u]=E.useState(null),h=y=>{o(y.target.va
119lue)},f=y=>{y.preventDefault(),r("load"),fetch(`/verify/request-code/${i}`).then(v=>(v.ok||(console.error(`Error 1756393318: HTTP status ${v.status}`),r("error")),v.json())).then(v=>{v.status==="pending"?r("validate"):r("error")}).catch(v=>{console.error(`Error 1756393323: Fetch error ${v}`),r("error")})},m=y=>{y.preventDefault(),r("load"),fetch(`/verify/validate-code/${i}/${a}`).then(v=>(v.ok||(console.error(`Error 1756393330: HTTP status ${v.status}`),r("error")),v.json())).then(v=>{v.status==="approved"?(u(v),r("save")):r("error")}).catch(v=>{console.error(`Error 1732613370: Fetch error ${v}`),r("error")})},g=y=>{f(y)};switch(t){case"error":return d.jsx(Pae,{});case"load":return d.jsx(Dae,{});case"save":return d.jsx(kae,{result:l,next:e});case"validate":return d.jsx(wae,{code:a,updateCode:h,validateCode:m,resendCode:g});default:return d.jsx(xae,{mobile:i,requestCode:f})}}function xae({mobile:n,requestCode:e}){return d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"modal-body",children:[d.jsx("p",{children:"Um die Dokumente digital zu signieren, schicken wir Ihnen einen Code via SMS an Ihr Mobiltelefon. Bitte geben Sie diesen Code hier ein."}),d.jsxs("div",{className:"input-group mb-2",children:[d.jsx("span",{className:"input-group-text",children:d.jsx("i",{className:"fa-light fa-mobile"})}),d.jsxs("div",{className:"form-floating",children:[d.jsx("input",{type:"tel",id:"dfo-input--mobile",className:"form-control",placeholder:"Ihr Mobiltelefon",value:n,disabled:!0,readonly:!0}),d.jsx("label",{htmlFor:"dfo-input--mobile",children:"Ihr Mobiltelefon"})]})]}),d.jsxs("div",{class:"form-text",children:["Bei Fragen oder Problemen erreichen Sie uns"," ",d.jsx("a",{href:"mailto:[email protected]",children:"via E-Mail"})," ","oder telefonisch unter"," ",d.jsx("a",{href:"tel:+4940226381210",children:"+49 40 2263812-10"}),"."]})]}),d.jsxs("div",{className:"modal-footer d-flex justify-content-center justify-content-sm-between align-items-center bg-light",children:[d.jsxs("button",{type:"button",className:"order-sm-2 btn btn-secondary fw-bold",onClick:e,children:["Weiter",d.jsx("i",{className:"fa-light fa-long-arrow-right ms-2"})]}),d.jsxs("button",{type:"button",className:"order-sm-1 mt-3 mt-sm-0 btn btn-link small text-decoration-none text-body-secondary","data-bs-dismiss":"modal",children:[d.jsx("i",{className:"fa-light fa-xmark me-2"}),"Abbrechen"]})]})]})}function wae({code:n,updateCode:e,validateCode:t,resendCode:r}){const i=s=>{s.key==="Enter"&&(s.preventDefault(),s.stopPropagation(),t(s))};return d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"modal-body",children:[d.jsx("p",{children:"Wir haben eine SMS mit einem Code an Ihr Mobiltelefon schicken lassen. Bitte geben Sie den Code hier ein."}),d.jsxs("div",{className:"input-group mb-2",children:[d.jsx("span",{className:"input-group-text",children:d.jsx("i",{className:"fa-light fa-lock-keyhole"})}),d.jsxs("div",{className:"form-floating",children:[d.jsx("input",{type:"number",id:"dfo-input--code",className:"form-control",onChange:e,onKeyDown:i,placeholder:"Code",value:n}),d.jsx("label",{htmlFor:"dfo-input--code",children:"Code"})]})]})]}),d.jsxs("div",{className:"modal-footer d-flex justify-content-center justify-content-sm-between align-items-center bg-light",children:[d.jsxs("button",{type:"button",className:"order-sm-2 btn btn-secondary fw-bold",onClick:t,children:["Weiter",d.jsx("i",{className:"fa-light fa-long-arrow-right ms-2"})]}),d.jsx(Sae,{resendCode:r})]})]})}function Sae({resendCode:n}){const[e,t]=E.useState(15);return E.useEffect(()=>{const r=setInterval(()=>{e>0?t(i=>i-1):clearInterval(r)},1e3);return()=>clearInterval(r)},[]),e<1?d.jsxs("button",{type:"button",onClick:n,className:"order-sm-1 mt-3 mt-sm-0 btn btn-light small text-decoration-none text-body-secondary",children:[d.jsx("i",{className:"fa-light fa-arrows-rotate me-2"}),"Code erneut senden"]}):d.jsxs("span",{className:"small text-body-secondary",children:[d.jsx("i",{className:"fa-light fa-arrows-rotate fa-spin me-2"}),"Code erneut senden in ",e," Sekunden"]})}function Dae(){return d.jsxs(vt,{baseColor:"#f1f5f9",highlightColor:"#cbd5e1",children:[d.jsxs("div",{className:"modal-body",children:[d.jsx("p",{children:d.jsx(ce,{})}),d.jsx(ce,{height:40,width:280})]}),d.jsxs("div",{className:"modal-footer d-flex justify-content-center justify-content-sm-between align-items-center bg-light",children:[d.jsx(ce,{className:"order-sm-2",height:30,width:120}),d.jsx(ce,{className:"order-sm-1",height:20,width:120})]})]})}function kae({result:n,next:e}){return E.useEffect(()=>{const t=setTimeout(()=>{document.getElementById("dfo-onboarding__signature").submit()},1e3);return()=>clearTimeout(t)},[]),d.jsxs(vt,{baseColor:"#f1f5f9",highlightColor:"#cbd5e1",children:[d.jsxs("div",{className:"modal-body",children:[d.jsx("p",{children:d.jsx(ce,{})}),d.jsx(ce,{height:40,width:280}),d.jsx("input",{type:"hidden",name:"next",value:e}),d.jsx("input",{type:"hidden",name:"twilio[sid]",value:n.sid}),d.jsx("input",{type:"hidden",name:"twilio[status]",value:n.status}),d.jsx("input",{type:"hidden",name:"twilio[to]",value:n.to})]}),d.jsxs("div",{className:"modal-footer d-flex justify-content-center justify-content-sm-between align-items-center bg-light",children:[d.jsx(ce,{className:"order-sm-2",height:30,width:120}),d.jsx(ce,{className:"order-sm-1",height:20,width:120})]})]})}function Pae(){return d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"modal-body",children:[d.jsxs("div",{class:"alert alert-danger mb-3",children:[d.jsx("i",{className:"fa-light fa-exclamation-triangle me-2"}),"Leider ist ein ",d.jsx("strong",{children:"Fehler"})," aufgetreten."]}),d.jsx("p",{children:"Bei der Zwei-Faktor-Authentisierung ist ein Fehler aufgetreten. Bitte wiederholen Sie den Vorgang."}),d.jsxs("p",{className:"mb-0",children:["Sofern der Fehler weiterhin auftritt, bitten wir Sie, Kontakt zu uns aufzunehmen. Sie erreichen uns via E-Mail an"," ",d.jsx("a",{href:"mailto:[email protected]",children:"[email protected]"})," ","oder telefonisch unter"," ",d.jsx("a",{href:"tel:+4940226381210",children:"+49 40 2263812-10"}),"."]})]}),d.jsx("div",{className:"modal-footer bg-light",children:d.jsxs("button",{type:"button",className:"order-sm-1 mt-3 mt-sm-0 btn btn-light small text-decoration-none text-body-secondary","data-bs-dismiss":"modal",children:[d.jsx("i",{className:"fa-light fa-xmark me-2"}),"Fenster schlieÃen"]})})]})}function Cae({bvsIsChecked:n,dabIsChecked:e,mobile:t,next:r}){return d.jsxs(d.Fragment,{children:[d.jsx(Eae,{bvsIsChecked:n,dabIsChecked:e}),d.jsx(Tae,{mobile:t,next:r})]})}function Eae({bvsIsChecked:n,dabIsChecked:e}){return d.jsx("section",{id:"auth-dialog",class:"card mb-5 shadow-sm",children:d.jsxs("div",{class:"card-body p-4",children:[d.jsxs("h4",{class:"card-title mt-0 mb-3",children:[d.jsx("i",{class:"fa-light fa-signature me-2 text-light-blue","aria-hidden":"true"}),"Signatur"]}),d.jsxs("div",{class:"d-flex align-items-center",children:[d.jsx(Mae,{bvsIsChecked:n,dabIsChecked:e}),d.jsx("p",{class:"mt-0 mb-0 ms-3 small text-body-secondary",children:"Um alle Dokumente digital zu unterschreiben, schicken wir Ihnen eine SMS mit einem kurzen Code an Ihr Mobiltelefon."})]})]})})}function Mae({bvsIsChecked:n,dabIsChecked:e}){const t=d.jsxs(d.Fragment,{children:[d.jsx("i",{class:"fa-light fa-signature fa-fw me-1"}),"Jetzt unterschreiben"]});return!n||!e?d.jsx("button",{type:"button",class:"btn btn-secondary fw-bold text-nowrap",disabled:!0,children:t}):d.jsx("button",{type:"button",class:"btn btn-secondary fw-bold text-nowrap","data-bs-toggle":"modal","data-bs-target":"#dfo-2fa__modal",children:t})}function Tae({mobile:n,next:e}){return d.jsx("div",{id:"dfo-2fa__modal",className:"modal fade",tabindex:"-1","aria-labelledby":"dfo-2fa__label","aria-hidden":"true",children:d.jsx("div",{className:"modal-dialog modal-dialog-centered",children:d.jsxs("div",{className:"modal-content",children:[d.jsxs("div",{className:"modal-header bg-light",children:[d.jsxs("h5",{className:"modal-title",id:"dfo-2fa__label",children:[d.jsx("i",{className:"fa-light fa-lock-alt me-2"}),"Digitale Unterschrift"]}),d.jsx("button",{type:"button",className:"btn-close","data-bs-dismiss":"modal","aria-label":"SchlieÃen"})]}),d.jsx(_ae,{defaultMobile:n,next:e})]})})})}const Oae=n=>
119{if(typeof n!="string")return"";let e=n.trim();if(e.length<1)return"";let t="";return e.startsWith("+")?t=e:e.startsWith("00")?t="+"+e.slice(2):e.startsWith("0")?t="+"+e.slice(1):t="+"+e,t};function Aae({defaultMobile:n,next:e,bank:t}){const[r,i]=E.useState(!1),[s,a]=E.useState(!1),o=u=>{i(u.target.checked)},l=u=>{a(u.target.checked)};return d.jsxs(d.Fragment,{children:[d.jsx(bae,{isChecked:r,handleChange:o}),d.jsx(yae,{isChecked:s,handleChange:l,bank:t}),d.jsx(Cae,{bvsIsChecked:r,dabIsChecked:s,mobile:Oae(n),next:e})]})}function jae({data:n}){const[e,t]=E.useState(n.toggle),[r,i]=E.useState(n.amount),[s,a]=E.useState(n.frequency),[o,l]=E.useState(n.frequency_options);return e?d.jsxs(d.Fragment,{children:[d.jsx(YM,{toggle:e,setToggle:t}),d.jsxs("div",{className:"row mb-3",children:[d.jsx(Rae,{amount:r,setAmount:i}),d.jsx(Iae,{frequency:s,setFrequency:a,options:o})]})]}):d.jsx(YM,{toggle:e,setToggle:t})}function YM({toggle:n,setToggle:e}){return d.jsx("div",{className:"mb-3",children:d.jsxs("div",{className:"form-check form-switch",children:[d.jsx("input",{type:"checkbox",name:"payouts_needed",value:"true",id:"dfo-payouts__toggle",className:"form-check-input",role:"switch",checked:n,onChange:t=>e(t.target.checked)}),d.jsx("label",{class:"form-check-label",htmlFor:"dfo-payouts__toggle",children:"Ist es absehbar, dass von der angelegten Summe in den kommenden zwei Jahren Gelder benötigt werden?"})]})})}function Rae({amount:n,setAmount:e}){return d.jsx("div",{className:"col-12 col-md-6 mb-3 mb-md-0",children:d.jsxs("div",{class:"input-group",children:[d.jsx("span",{class:"input-group-text",children:d.jsx("i",{className:"fa-light fa-euro fa-fw"})}),d.jsxs("div",{className:"form-floating",children:[d.jsx("input",{type:"number",name:"payouts_amount",value:n,onChange:t=>e(t.target.value),id:"dfo-payouts__amount",className:"form-control",max:"100000000",min:"0",placeholder:"Höhe der Auszahlung in Euro*",required:"required"}),d.jsx("label",{htmlFor:"dfo-payouts__amount",children:"Höhe der Auszahlung in Euro*"})]})]})})}function Iae({frequency:n,setFrequency:e,options:t}){return d.jsx("div",{className:"col-12 col-md-6",children:d.jsxs("div",{class:"input-group",children:[d.jsx("span",{class:"input-group-text",children:d.jsx("i",{class:"fa-light fa-arrows-rotate fa-fw"})}),d.jsxs("div",{className:"form-floating",children:[d.jsx("select",{name:"payouts_frequency",defaultValue:n,onChange:r=>e(r.target.value),id:"dfo-payouts__frequency",className:"form-select",required:!0,children:t.map(r=>d.jsx("option",{value:r.value,children:r.label},r.id))}),d.jsx("label",{htmlFor:"dfo-payouts__frequency",children:"Frequenz der Auszahlungen*"})]})]})})}var PI=Symbol.for("immer-nothing"),HM=Symbol.for("immer-draftable"),Hr=Symbol.for("immer-state");function Ci(n,...e){throw new Error(`[Immer] minified error nr: ${n}. Full error at: https://bit.ly/3cXEKWf`)}var uc=Object.getPrototypeOf;function cc(n){return!!n&&!!n[Hr]}function xl(n){var e;return n?CI(n)||Array.isArray(n)||!!n[HM]||!!((e=n.constructor)!=null&&e[HM])||jv(n)||Rv(n):!1}var Nae=Object.prototype.constructor.toString();function CI(n){if(!n||typeof n!="object")return!1;const e=uc(n);if(e===null)return!0;const t=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return t===Object?!0:typeof t=="function"&&Function.toString.call(t)===Nae}function Cm(n,e){Av(n)===0?Reflect.ownKeys(n).forEach(t=>{e(t,n[t],n)}):n.forEach((t,r)=>e(r,t,n))}function Av(n){const e=n[Hr];return e?e.type_:Array.isArray(n)?1:jv(n)?2:Rv(n)?3:0}function Px(n,e){return Av(n)===2?n.has(e):Object.prototype.hasOwnProperty.call(n,e)}function EI(n,e,t){const r=Av(n);r===2?n.set(e,t):r===3?n.add(t):n[e]=t}function Fae(n,e){return n===e?n!==0||1/n===1/e:n!==n&&e!==e}function jv(n){return n instanceof Map}function Rv(n){return n instanceof Set}function Fo(n){return n.copy_||n.base_}function Cx(n,e){if(jv(n))return new Map(n);if(Rv(n))return new Set(n);if(Array.isArray(n))return Array.prototype.slice.call(n);const t=CI(n);if(e===!0||e==="class_only"&&!t){const r=Object.getOwnPropertyDescriptors(n);delete r[Hr];let i=Reflect.ownKeys(r);for(let s=0;s<i.length;s++){const a=i[s],o=r[a];o.writable===!1&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(r[a]={configurable:!0,writable:!0,enumerable:o.enumerable,value:n[a]})}return Object.create(uc(n),r)}else{const r=uc(n);if(r!==null&&t)return{...n};const i=Object.create(r);return Object.assign(i,n)}}function L1(n,e=!1){return Iv(n)||cc(n)||!xl(n)||(Av(n)>1&&(n.set=n.add=n.clear=n.delete=Lae),Object.freeze(n),e&&Object.entries(n).forEac
119h(([t,r])=>L1(r,!0))),n}function Lae(){Ci(2)}function Iv(n){return Object.isFrozen(n)}var Bae={};function wl(n){const e=Bae[n];return e||Ci(0,n),e}var Ef;function MI(){return Ef}function $ae(n,e){return{drafts_:[],parent_:n,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function zM(n,e){e&&(wl("Patches"),n.patches_=[],n.inversePatches_=[],n.patchListener_=e)}function Ex(n){Mx(n),n.drafts_.forEach(Vae),n.drafts_=null}function Mx(n){n===Ef&&(Ef=n.parent_)}function WM(n){return Ef=$ae(Ef,n)}function Vae(n){const e=n[Hr];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function UM(n,e){e.unfinalizedDrafts_=e.drafts_.length;const t=e.drafts_[0];return n!==void 0&&n!==t?(t[Hr].modified_&&(Ex(e),Ci(4)),xl(n)&&(n=Em(e,n),e.parent_||Mm(e,n)),e.patches_&&wl("Patches").generateReplacementPatches_(t[Hr].base_,n,e.patches_,e.inversePatches_)):n=Em(e,t,[]),Ex(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),n!==PI?n:void 0}function Em(n,e,t){if(Iv(e))return e;const r=e[Hr];if(!r)return Cm(e,(i,s)=>GM(n,r,e,i,s,t)),e;if(r.scope_!==n)return e;if(!r.modified_)return Mm(n,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let s=i,a=!1;r.type_===3&&(s=new Set(i),i.clear(),a=!0),Cm(s,(o,l)=>GM(n,r,i,o,l,t,a)),Mm(n,i,!1),t&&n.patches_&&wl("Patches").generatePatches_(r,t,n.patches_,n.inversePatches_)}return r.copy_}function GM(n,e,t,r,i,s,a){if(cc(i)){const o=s&&e&&e.type_!==3&&!Px(e.assigned_,r)?s.concat(r):void 0,l=Em(n,i,o);if(EI(t,r,l),cc(l))n.canAutoFreeze_=!1;else return}else a&&t.add(i);if(xl(i)&&!Iv(i)){if(!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1)return;Em(n,i),(!e||!e.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(t,r)&&Mm(n,i)}}function Mm(n,e,t=!1){!n.parent_&&n.immer_.autoFreeze_&&n.canAutoFreeze_&&L1(e,t)}function Yae(n,e){const t=Array.isArray(n),r={type_:t?1:0,scope_:e?e.scope_:MI(),modified_:!1,finalized_:!1,assigned_:{},parent_:e,base_:n,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,s=B1;t&&(i=[r],s=Mf);const{revoke:a,proxy:o}=Proxy.revocable(i,s);return r.draft_=o,r.revoke_=a,o}var B1={get(n,e){if(e===Hr)return n;const t=Fo(n);if(!Px(t,e))return Hae(n,t,e);const r=t[e];return n.finalized_||!xl(r)?r:r===T_(n.base_,e)?(O_(n),n.copy_[e]=Ox(r,n)):r},has(n,e){return e in Fo(n)},ownKeys(n){return Reflect.ownKeys(Fo(n))},set(n,e,t){const r=TI(Fo(n),e);if(r!=null&&r.set)return r.set.call(n.draft_,t),!0;if(!n.modified_){const i=T_(Fo(n),e),s=i==null?void 0:i[Hr];if(s&&s.base_===t)return n.copy_[e]=t,n.assigned_[e]=!1,!0;if(Fae(t,i)&&(t!==void 0||Px(n.base_,e)))return!0;O_(n),Tx(n)}return n.copy_[e]===t&&(t!==void 0||e in n.copy_)||Number.isNaN(t)&&Number.isNaN(n.copy_[e])||(n.copy_[e]=t,n.assigned_[e]=!0),!0},deleteProperty(n,e){return T_(n.base_,e)!==void 0||e in n.base_?(n.assigned_[e]=!1,O_(n),Tx(n)):delete n.assigned_[e],n.copy_&&delete n.copy_[e],!0},getOwnPropertyDescriptor(n,e){const t=Fo(n),r=Reflect.getOwnPropertyDescriptor(t,e);return r&&{writable:!0,configurable:n.type_!==1||e!=="length",enumerable:r.enumerable,value:t[e]}},defineProperty(){Ci(11)},getPrototypeOf(n){return uc(n.base_)},setPrototypeOf(){Ci(12)}},Mf={};Cm(B1,(n,e)=>{Mf[n]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}});Mf.deleteProperty=function(n,e){return Mf.set.call(this,n,e,void 0)};Mf.set=function(n,e,t){return B1.set.call(this,n[0],e,t,n[0])};function T_(n,e){const t=n[Hr];return(t?Fo(t):n)[e]}function Hae(n,e,t){var i;const r=TI(e,t);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(n.draft_):void 0}function TI(n,e){if(!(e in n))return;let t=uc(n);for(;t;){const r=Object.getOwnPropertyDescriptor(t,e);if(r)return r;t=uc(t)}}function Tx(n){n.modified_||(n.modified_=!0,n.parent_&&Tx(n.parent_))}function O_(n){n.copy_||(n.copy_=Cx(n.base_,n.scope_.immer_.useStrictShallowCopy_))}var zae=class{constructor(n){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,r)=>{if(typeof e=="function"&&typeof t!="function"){const s=t;t=e;const a=this;return function(l=s,...u){return a.produce(l,h=>t.call(this,h,...u))}}typeof t!="function"&&Ci(6),r!==void 0&&typeof r!="function"&&Ci(7);let i;if(xl(e)){const s=WM(this),a=Ox(e,void 0);let o=!0;try{i=t(a),o=!1}finally{o?Ex(s):Mx(s)}return zM(s,r),UM(i,s)}else if(!e||typeof e!="object"){if(i=t(e),i===void 0&&(i=e),i===PI&&(i=void 0),this.autoFreeze_&&L1(i,!0),r){const s=[],a=[];wl("Patches").generateReplacementPatches_(e,i,s,a),r(s,a)}return i}else Ci(1,e)},this.produceWithPatches=(e,t)=>{if(typeof e=="function")return(a,...o)=>this.produceWithPatches(a,l=>e(l,...o));let r,i;return[this.produce(e,t,(a,o)=>{r=a,i=o}),r,i]},typeof(n==null?void 0:n.autoFreeze)=="boolean"&&this.setAutoFreeze(n.autoFreeze),typeof(n==null?void 0:n.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(n.useStrictShallowCopy)}createDraft(n){xl(n)||Ci(8),cc(n)&&(n=Wae(n));const e=WM(this),t=Ox(n,void 0);return t[Hr].isManual_=!0,Mx(e),t}finishDraft(n,e){const t=n&&n[Hr];(!t||!t.isManual_)&&Ci(9);const{scope_:r}=t;return zM(r,e),UM(void 0,r)}setAutoFreeze(n){this.autoFreeze_=n}setUseStrictShallowCopy(n){this.useStrictShallowCopy_=n}applyPatches(n,e){let t;for(t=e.length-1;t>=0;t--){const i=e[t];if(i.path.length===0&&i.op==="replace"){n=i.value;break}}t>-1&&(e=e.slice(t+1));const r=wl("Patches").applyPatches_;return cc(n)?r(n,e):this.produce(n,i=>r(i,e))}};function Ox(n,e){const t=jv(n)?wl("MapSet").proxyMap_(n,e):Rv(n)?wl("MapSet").proxySet_(n,e):Yae(n,e);return(e?e.scope_:MI()).drafts_.push(t),t}function Wae(n){return cc(n)||Ci(10,n),OI(n)}function OI(n){if(!xl(n)||Iv(n))return n;const e=n[Hr];let t;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,t=Cx(n,e.scope_.immer_.useStrictShallowCopy_)}else t=Cx(n,!0);return Cm(t,(r,i)=>{EI(t,r,OI(i))}),e&&(e.finalized_=!1),t}var zr=new zae,XM=zr.produce;zr.produceWithPatches.bind(zr);zr.setAutoFreeze.bind(zr);zr.setUseStrictShallowCopy.bind(zr);zr.applyPatches.bind(zr);zr.createDraft.bind(zr);zr.finishDraft.bind(zr);function Uae({data:n,help:e}){const[t,r]=E.useState(n),i=E.useCallback(a=>{a.preventDefault(),r(XM(o=>{o.push({id:Dc(),name:"",iban:"",bic:"",bank:""})}))},[]),s=a=>{r(o=>XM(o,l=>{const u=l.findIndex(h=>h.id===a);u!==-1&&l.splice(u,1)}))};return d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"card-body px-4 pt-3 pb-2",children:[d.jsx(Gae,{content:e}),d.jsx("p",{children:"Bitte geben Sie ein oder mehrere Referenzkonten ein. Dies sind Konten, an die wir in Zukunft Auszahlungen tätigen dürfen (z.B. Ihr laufendes
119Konto bei Ihrer Hausbank)."}),d.jsx(Xae,{referenceAccounts:t,count:t.length,create:i,remove:s})]}),d.jsx(Kae,{count:t.length,create:i})]})}function Gae({content:n}){return d.jsxs(d.Fragment,{children:[d.jsx(bo,{title:"Referenzkonten",content:n}),d.jsxs("h4",{className:"card-title mt-0 mb-3",children:[d.jsx("i",{className:"fa-light fa-building-columns fa-fw me-2 text-light-blue"}),"Referenzkonten"]})]})}function Xae({referenceAccounts:n,count:e,create:t,remove:r}){return Array.isArray(n)&&e>0?d.jsx("div",{className:"mb-3",children:n.map((i,s)=>d.jsx(qae,{referenceAccount:i,index:s,remove:r},i.id))}):d.jsxs("div",{class:"alert alert-light small text-body-secondary",role:"alert",children:[d.jsx("i",{class:"fa-light fa-circle-info me-2"}),"Sie können bis zu drei"," ",d.jsx("a",{href:"#",className:"fw-bold",onClick:t,children:"Referenzkonten"})," ","eingeben!"]})}function qae({referenceAccount:n,index:e,remove:t}){return d.jsx("div",{className:"alert alert-light mb-3 pb-0",children:d.jsxs("div",{className:"d-flex align-items-center",children:[d.jsx("div",{className:"flex-grow-1",children:d.jsxs("div",{className:"row ",children:[d.jsx("div",{className:"col-12 mb-3",children:d.jsxs("div",{class:"input-group",children:[d.jsx("span",{class:"input-group-text",children:d.jsx("i",{class:"fa-light fa-user fa-fw"})}),d.jsxs("div",{className:"form-floating",children:[d.jsx("input",{type:"text",name:`reference_accounts[${e}][account_holder]`,id:`dfo-onboarding__account-holder--${e}`,className:"form-control",placeholder:"Kontoinhaber*",required:"required",maxLength:100,defaultValue:n.account_holder}),d.jsx("label",{htmlFor:`dfo-onboarding__account-holder--${e}`,children:"Kontoinhaber*"})]})]})}),d.jsx("div",{className:"col-12 col-md-6 mb-3",children:d.jsxs("div",{class:"input-group",children:[d.jsx("span",{class:"input-group-text",children:d.jsx("i",{class:"fa-light fa-hashtag fa-fw"})}),d.jsxs("div",{className:"form-floating",children:[d.jsx("input",{type:"text",name:`reference_accounts[${e}][iban]`,id:`dfo-onboarding__iban--${e}`,className:"form-control",placeholder:"IBAN*",required:"required",minLength:15,maxLength:34,defaultValue:n.iban}),d.jsx("label",{htmlFor:`dfo-onboarding__iban--${e}`,children:"IBAN*"})]})]})}),d.jsx("div",{className:"col-12 col-md-6 mb-3",children:d.jsxs("div",{class:"input-group",children:[d.jsx("span",{class:"input-group-text",children:d.jsx("i",{class:"fa-light fa-earth-europe fa-fw"})}),d.jsxs("div",{className:"form-floating",children:[d.jsx("input",{type:"text",name:`reference_accounts[${e}][bic]`,id:`dfo-onboarding__bic--${e}`,className:"form-control",placeholder:"BIC",maxLength:11,required:"required",defaultValue:n.bic}),d.jsx("label",{htmlFor:`dfo-onboarding__bic--${e}`,children:"BIC*"})]})]})})]})}),d.jsx("div",{className:"ps-3",children:d.jsx("button",{type:"button",onClick:r=>{r.preventDefault,t(n.id)},className:"btn btn-link mb-3",title:"Eintrag löschen",children:d.jsx("i",{className:"fa-light fa-xmark"})})})]})})}function Kae({count:n,create:e}){return n<3?d.jsx("div",{className:"card-footer px-4 py-3 small text-body-secondary",children:d.jsxs("button",{type:"button",onClick:e,className:"btn btn-primary btn-sm m-0 fw-bold",children:[d.jsx("i",{className:"fa-light fa-plus me-2"}),"Hinzufügen"]})}):""}function Qae({initialValue:n,help:e}){const[t,r]=E.useState(Number(n));return d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"card-body px-4 pt-4 pb-3",children:[d.jsx(Zae,{content:e}),d.jsx(Jae,{value:t,setValue:r}),d.jsx(eoe,{value:t})]}),d.jsx(toe,{value:t})]})}function Zae({content:n}){return d.jsxs(d.Fragment,{children:[d.jsx(bo,{title:"Rendite-Risiko-Profil",content:n}),d.jsxs("h5",{className:"card-title mt-0 mb-3",children:[d.jsx("i",{className:"fa-light fa-chart-line-up-down fa-fw me-2 text-light-blue"}),"Rendite-Risiko-Profil"]})]})}function Jae({value:n,setValue:e}){return d.jsx("input",{type:"range",name:"risk_profile",className:"form-range",min:"0",max:"4",value:n,onChange:t=>e(Number(t.target.value))})}const AI={0:{title:"A - Niedrig (Renditeerwartung: <3%)",text:"Angestrebt werden relativ sichere Anlageergebnisse. Nur geringe, kurzfristige und vorübergehende Kursschwankungen werden in Kauf genommen. Das durchschnittliche historische Verlustpotential betrug in einem 12-Monats-Zeitraum ca. 0% bis 0,1% (rein indikativ)."},1:{title:"B - Moderat (Renditeerwartung: 3 - 5%)",text:"Angestrebt werden angemessene, dafür relativ nac
119hhaltige Anlageergebnisse. Geringe Kursschwankungen werden akzeptiert. Es besteht die Bereitschaft, einen kleinen Teil des Anlagekapitals risikoreicher zu investieren. Das durchschnittliche historische Verlustpotential betrug in einem 12-Monats-Zeitraum ca. 5% (rein indikativ)."},2:{title:"C - Mittel (Renditeerwartung: 5 - 7%)",text:"Angestrebt werden Erträge, denen erhöhte Kursschwankungen gegenüberstehen, die akzeptiert werden. Es besteht die Bereitschaft, gröÃere Teile des Anlagekapitals risikoreicher zu investieren. Das durchschnittliche historische Verlustpotential betrug in einem 12-Monats-Zeitraum ca. 15% (rein indikativ)."},3:{title:"D - Erhöht (Renditeerwartung: 7 - 9%)",text:"Angestrebt werden hohe Ertragschancen, denen hohe Risiken gegenüberstehen. Es sind kräftige Kursrückgänge möglich, die in Kauf genommen werden. Es besteht die Risikobereitschaft, groÃe Teile des Anlagekapitals risikoreicher zu investieren. Das durchschnittliche historische Verlustpotential betrug in einem 12-Monats-Zeitraum ca. 25% (rein indikativ)."},4:{title:"E - Hoch (Renditeerwartung: > 9%)",text:"Angestrebt werden sehr hohe Ertragschancen, denen sehr hohe Risiken gegenüberstehen. Es sind kräftige Kursausschläge möglich. Es besteht die Bereitschaft das Anlagekapital vollständig zu riskieren. Das durchschnittliche historische Verlustpotential betrug in einem 12-Monats-Zeitraum ca. 50% (rein indikativ)."}};function eoe({value:n}){return d.jsx("strong",{children:AI[n].title})}function toe({value:n}){return d.jsxs("div",{className:"card-footer px-4 py-3 small text-body-secondary",children:[AI[n].text,n===0&&d.jsx(noe,{})]})}function noe(){return d.jsxs("span",{className:"text-danger",children:[d.jsx("i",{className:"fa-light fa-triangle-exclamation ms-2 me-1"}),"Für dieses Rendite-Risiko-Profil können wir Ihnen im Digitalen Family Office keine geeignete Anlagestrategie anbieten."," ",d.jsx("strong",{children:"Bei Speicherung dieser Auswahl wird stattdessen das Rendite-Risiko-Profil B - Moderat festgelegt."})]})}function roe({data:n}){const[e,t]=E.useState(n.preferences);e.length===0&&t("option_1");const r=i=>{t(i.target.value)};return d.jsxs(d.Fragment,{children:[d.jsx(ioe,{data:n,selectedOption:e,updateSelectedOption:r}),e==="option_3"&&d.jsxs(d.Fragment,{children:[d.jsx(uoe,{data:n}),d.jsx(qM,{selectedOption:e,data:n})]}),e==="option_4"&&d.jsxs(d.Fragment,{children:[d.jsx(doe,{data:n}),d.jsx(qM,{selectedOption:e,data:n})]}),e==="option_5"&&d.jsx(d.Fragment,{children:d.jsx(foe,{data:n})})]})}function ioe({data:n,selectedOption:e,updateSelectedOption:t}){return d.jsx("div",{id:"preferences",className:"card mb-5 p-0 shadow-sm",children:d.jsxs("div",{className:"card-body px-4 pt-4 pb-3",children:[d.jsx(soe,{content:n.help}),d.jsx(aoe,{}),d.jsx(ooe,{errors:n.errors}),d.jsx(loe,{selectedOption:e,updateSelectedOption:t})]})})}function soe({content:n}){return d.jsxs(d.Fragment,{children:[d.jsx(bo,{content:n,title:"Ihre Präferenzen"}),d.jsxs("h4",{className:"card-title mt-0 mb-3",children:[d.jsx("i",{className:"fa-light fa-seedling me-2 text-light-blue"}),"Ihre Nachhaltigkeitspräferenzen (ESG)"]})]})}function aoe(){return d.jsx("p",{children:"Welchen Nachhaltigkeitsgrad soll die Wirtschaftstätigkeit aufweisen, in welche das verwaltete Vermögen investiert wird?"})}function ooe({errors:n}){return n.length?d.jsx(d.Fragment,{children:n.map(e=>d.jsxs("div",{className:"alert alert-danger mb-3 small",children:[d.jsx("i",{className:"fa-light fa-circle-exclamation me-2"}),e.message]}))}):""}function loe({selectedOption:n,updateSelectedOption:e}){const t=[{value:"option_1",label:"Verzicht auf die Berücksichtigung der Nachhaltigkeitswirkung",text:"Ich wünsche derzeit weder die Berücksichtigung einer Nachhaltigkeitswirkung gemäà der Basis-Kategorie noch der drei möglichen Gesetzeskategorien. Stattdessen verzichte ich zum jetzigen Zeitpunkt vollständig auf die Berücksichtigung einer Nachhaltigkeitswirkung."},{value:"option_2",label:"Basis-Kategorie der Nachhaltigkeitswirkung",text:"Ich möchte mich zumindest derzeit nicht in eine der nachfolgend beschriebenen drei gesetzlich definierten Kategorien einordnen. Das Thema âNachhaltigkeitâ und die Erhaltung der ökologischen Ressourcen einschlieÃlich gerechter Lebensbedingungen ist für mich jedoch auch unabhängig der gesetzlich definierten Kategorien wichtig. Meinen Anforderungen zur Berücksichtigung von Nachhaltigkeitsbelangen entspricht es, wenn mir mit Hilfe eines einfachen ESG-Bewertungssystems aufgezeigt wird, ob und wenn ja, in welchem Grad bei den investierten/empfohlenen Finanzinstrumenten die Nachhaltigkeitskriterien berücksichtigt wurden und Nachhaltigkeitswirkungen eingetreten sind. Die Umsetzung erfolgt in der Regel mit einem ESG-Risiko-Score eines Daten-Anbieters, anhand dessen die jeweiligen Aktivitäten der Unternehmen in den Bereichen âUmweltâ, âSozialesâ und âUnternehmensführung (Governance)â bewertet und einem Vergleich unterzogen werden können. Hier ist es in der Regel auch möglich, Mindest-ESG Risiko-Scores festzulegen. Mir ist bewusst, dass die Basis-Kategorie nicht den gesetzliche definierten Nachhaltigkeitspräferenzen entspricht."},{value:"option_3",label:"Gesetzliche Kategorie mit einer einfachen Nachhaltigkeitswirkung",text:"Ich wünsche Investitionen in Wirtschaftstätigkeiten, bei denen zumindest die wichtigsten nachteiligen Auswirkungen auf die sog. Nachhaltigkeitsfaktoren berücksichtigt werden. Zu diesen Faktoren zählen Umwelt-, Sozial- und Arbeitnehmerbelange, die Achtung der Menschenrechte und die Bekämpfung von Korruption und Bestechung. Zur Konkretisierung, ob und inwieweit sich Investitionsobjekte negativ auswirken, bestehen gesetzlich definierte Indikatoren (sog. Principal Adverse Impact (PAI) â Faktoren)."},{value:"option_4",label:"Gesetzliche Kategorie mit einer höheren Nachhaltigkeitswirkung",text:"Ich wünsche Investitionen in Wirtschaftstätigkeiten, die einen einfachen Beitrag zur Erreichung eines oder mehrerer Ziele in den Bereichen Umwelt, Soziales oder guter Unternehmensführung leisten. Die in dieser Kategorie möglichen Ziele sind gesetzlich nicht abschlieÃend definiert."},{value:"option_5",label:"Gesetzliche Kategorie mit der höchsten Nachhaltigkeitswirkung",text:"Ich wünsche Investitionen in ökologisch nachhaltige Wirtschaftstätigkeiten, die einen mit technischen Bewertungskriterien messbaren wesentlichen Beitrag zur Erreichung eines oder mehrerer Umweltziele leisten. An das Vorliegen eines messbaren wesentlichen Beitrags werden strenge gesetzliche Anforderungen gestellt (EU-Taxonomieverordnung)."}];return d.jsx(d.Fragment,{children:t.map((r,i)=>d.jsxs("div",{className:"d-grid mb-2 dfo-radio-btn",children:[d.jsx("input",{type:"radio",name:"preferences",value:r.value,id:`dfo-sustainability-preferences--${r.value}`,className:"btn-check",checked:n===r.value,onChange:e}),d.jsxs("label",{htmlFor:`dfo-sustainability-preferences--${r.value}`,className:"btn btn-outline-primary text-start p-3 lh-sm",children:[d.jsx("strong",{className:"d-block",children:r.label}),d.jsx("small",{className:"mt-2",children:r.text})]})]},i))})}function uoe({data:n}){const[e,t]=E.useState(!1);E.useEffect(()=>{n.option_3.selected.includes("climate_environment")&&t(!0)},[]);const r=i=>{i.some(s=>s.value==="climate_environment")?t(!0):t(!1)};return d.jsx("div",{id:"focus",className:"card mb-5 p-0 shadow-sm",children:d.jsxs("div",{className:"card-body px-4 pt-4 pb-2",children:[d.jsxs("h4",{className:"card-title mt-0 mb-3",children:[d.jsx("i",{className:"fa-light fa-arrows-to-circle me-2 text-light-blue"}),"Schwerpunkte"]}),d.jsx("p",{className:"card-text",children:"Bitte wählen Sie Ihre Präferenzen:"}),d.jsx("div",{className:"mb-3",children:d.jsx(eh,{options:n.option_3.options,selected:n.option_3.selected,menuPlacement:"top",name:"option_3[]",prefix:"dfo-option_3",placeholder:"Keine bestimmte Präferenz",update:r})}),e&&d.jsx(coe,{data:n})]})})}function coe({data:n}){return d.jsxs("div",{className:"mb-3",children:[d.jsx("p",{className:"card-text",children:"Beim Schwerpunkt Klima und Umwelt können Sie noch weiter differenzieren:"}),d.jsx(eh,{options:n.option_3_climate.options,selected:n.option_3_climate.selected,menuPlacement:"top",name:"option_3_climate[]",prefix:"dfo-option_3-climate",placeholder:"Keine bestimmte Präferenz"})]})}function doe({data:n}){return d.jsx("div",{id:"focus",className:"card mb-5 p-0 shadow-sm",children:d.jsxs("div",{className:"card-body px-4 py-4",children:[d.jsxs("h4",{className:"card-title mt-0 mb-3",children:[d.jsx("i",{className:"fa-light fa-arrows-to-circle me-2 text-light-blue"}),"Schwerpunkte"]}),d.jsx("p",{className:"card-text",children:"Bitte wählen Sie Ihre Präferenzen:"}),d.jsx("div",{className:"mb-3",children:d.jsx(eh,{options:n.option_4.options,selected:n.option_4.selected,menuPlacement:"top",name:"option_4[]",prefix:"dfo-option_4",placeholder:"Keine bestimmte Präferenz"})})]})})}function foe({data:n}){return d.jsxs("div",{id:"note",className:"card mb-5 p-0 shadow-sm",children:[d.jsxs("div",{className:"card-body px-4 py-4",children:[d.jsxs("h4",{className:"card-title mt-0 mb-3",children:[d.jsx("i",{className:"fa-light fa-info-circle me-2 text-light-blue"}),"Hinweis"]}),d.jsx("p",{className:"card-text",children:"Das Thema Nachhaltigkeit ist für uns als Haus eine Selbstverständlichkeit und flieÃt seit dem ersten Tag des Firmenbestehens mit in den Investitionsprozess hinein. In der Zwischenzeit ist der Einbezug von Nachhaltigkeitskriterien auch per Gesetz branchenweit eingeführt worden. Aus diesem Grund sind wir verpflichtet, die Nachhaltigkeitspräferenzen unserer Kunden entsprechend der rechtlichen Vorgaben einzuholen. Hierzu haben wir einen Erhebungsbogen erstellt, den Sie in wenigen Schritten mit Hilfe unseres Die
119nstleisters DocuSign befüllen und unterschreiben können."}),d.jsx("p",{className:"card-text",children:'Das Wichtige in Kürze: Das Inkrafttreten der zugehörigen Gesetze erfolgte, ohne dass die notwendigen Voraussetzungen und Definitionen geschaffen wurden. In Folge dessen ist es Vermögensverwaltern bisher nicht möglich, für sämtliche zur Auswahl stehenden Präferenzen eine adäquate Vermögensverwaltung anzubieten. Ganz konkret bedeutet dies: BvS & Co. kann Ihnen nur eine Vermögensverwaltung anbieten, sofern Sie nicht "Option #5: Gesetzliche Kategorie mit der höchsten Nachhaltigkeitswirkung" ankreuzen. Eine Vermögensverwaltung passend zu dieser Präferenz kann zum jetzigen Zeitpunkt nicht angeboten werden, da bisher aus unserer Sicht kein ausreichend groÃes Anlageuniversum existiert, dass diese Kriterien erfüllt.'}),d.jsxs("p",{className:"card-text",children:['Weiterführende Information finden Sie in der ebenfalls beigefügten Broschüre "Nachhaltigkeit in der Geldanlage und Vermögensbildung". Aus ökologischen Gründen haben wir darauf verzichtet, diese in Papierform zu versenden. Auf Wunsch können wir Sie Ihnen aber auch jederzeit als gedruckte Variante zur Verfügung stellen. Sollten in Ergänzung zu den Erläuterungen und Hinweisen im Erhebungsbogen sowie der Nachhaltigkeitsbroschüre weitere Fragen auftreten, melden Sie sich gern bei uns über die bekannten Kanäle oder per Mail an'," ",d.jsx("a",{href:"mailto:[email protected]",children:"[email protected]"}),"."]})]}),d.jsx("div",{className:"card-footer px-4 py-3 small text-body-secondary",children:"Bitte wählen Sie weiter oben eine andere Nachhaltigkeitswirkung aus."})]})}function qM({data:n}){const[e,t]=E.useState(n.minimum);return d.jsx("div",{id:"minimum",className:"card mb-5 p-0 shadow-sm",children:d.jsxs("div",{className:"card-body px-4 pt-4 pb-2",children:[d.jsxs("h4",{className:"card-title mt-0 mb-2",children:[d.jsx("i",{clasclassNames:"fa-light fa-dial me-2 text-light-blue"}),"Mindestanteil"]}),d.jsx("div",{className:"mb-3",children:d.jsxs("div",{className:"form-check form-switch",children:[d.jsx("input",{type:"checkbox",name:"minimum",value:"true",id:"dfo-minimum__toggle",className:"form-check-input",role:"switch",checked:e,onChange:r=>t(r.target.checked)}),d.jsx("label",{className:"form-check-label",htmlFor:"dfo-minimum__toggle",children:e?d.jsx(d.Fragment,{children:"Ich möchte, dass diese Kategorie in meinem verwalteten Vermögen mit folgendem Mindestanteil einbezogen wird:"}):d.jsx(d.Fragment,{children:"Ich möchte von der Benennung eines Mindestanteils absehen."})})]})}),e&&d.jsx(hoe,{data:n})]})})}function hoe({data:n}){const[e,t]=E.useState(n.minimum_share);return d.jsx(d.Fragment,{children:d.jsxs("div",{className:"d-flex align-items-center mb-2",children:[d.jsx("div",{className:"flex-grow-1",children:d.jsx("input",{type:"range",name:"minimum_share",className:"form-range m-0",min:"0",max:"80",step:"10",value:e,onChange:r=>t(r.target.value)})}),d.jsx("div",{className:"ms-3 mb-2",children:d.jsxs("span",{className:"badge text-bg-primary",children:[e,"%"]})})]})})}function poe({data:n}){const[e,t]=E.useState(n.toggle),[r,i]=E.useState(n.company);return e?d.jsxs(d.Fragment,{children:[d.jsx(KM,{toggle:e,setToggle:t}),d.jsx(goe,{company:r,setCompany:i})]}):d.jsx(KM,{toggle:e,setToggle:t})}function KM({toggle:n,setToggle:e}){return d.jsx("div",{className:"mb-3",children:d.jsxs("div",{className:"form-check form-switch",children:[d.jsx("input",{type:"checkbox",name:"ubo",value:"true",id:"dfo-ubo__toggle",className:"form-check-input",role:"switch",checked:n,onChange:t=>e(t.target.checked)}),d.jsx("label",{class:"form-check-label",htmlFor:"dfo-ubo__toggle",children:"Ja, ich bin Ultimate Beneficial Owner (UBO) eines börsennotierten Unternehmens."})]})})}function goe({company:n,setCompany:e}){return d.jsx("div",{className:"mb-3",children:d.jsxs("div",{class:"input-group",children:[d.jsx("span",{class:"input-group-text",children:d.jsx("i",{className:"fa-light fa-euro fa-fw"})}),d.jsxs("div",{className:"form-floating",children:[d.jsx("input",{type:"text",name:"ubo_company",value:n,onChange:t=>e(t.target.value),id:"dfo-ubo__company",className:"form-control",placeholder:"Name des Unternehmens*",max:100,required:"required"}),d.jsx("label",{htmlFor:"dfo-ubo__company",children:"Name des Unternehmens*"})]})]})})}function moe({mandate:n}){const[e,t]=E.useState("load");switch(E.useEffect(()=>{t("load"),fetch(`/mandatsonboarding/${n}/validierung`).then(r=>{t("save")}).catch(r=>{t("save")})},[n]),e){case"save":return d.jsx(voe,{});default:return d.jsx(jI,{})}}function jI(){return d.jsxs(vt,{baseColor:"#f1f5f9",highlightColor:"#cbd5e1",children:[d.jsxs("div",{className:"modal-body",children:[d.jsx("p",{children:d.jsx(ce,{})}),d.jsx(ce,{height:40,width:280})]}),d.jsxs("div",{className:"modal-footer d-flex justify-content-center justify-content-sm-between align-items-center bg-light",children:[d.jsx(ce,{className:"order-sm-2",height:30,width:120}),d.jsx(ce,{className:"order-sm-1",height:20,width:120})]})]})}function voe(){return E.useEffect(()=>{const n=setTimeout(()=>{document.querySelector("#dfo-onboarding__form .btn-success").click()},1e3);return()=>clearTimeout(n)},[]),jI()}function Ne(){return d.jsx("div",{className:"dfo-widget-error",children:"Dieses Element konnte nicht geladen werden. Bitte laden Sie die Seite neu."})}function QM(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function he(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};
119e%2?QM(Object(t),!0).forEach(function(r){yn(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):QM(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function Tm(n){"@babel/helpers - typeof";return Tm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tm(n)}function boe(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function ZM(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function yoe(n,e,t){return e&&ZM(n.prototype,e),t&&ZM(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}function yn(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function $1(n,e){return xoe(n)||Soe(n,e)||RI(n,e)||koe()}function th(n){return _oe(n)||woe(n)||RI(n)||Doe()}function _oe(n){if(Array.isArray(n))return Ax(n)}function xoe(n){if(Array.isArray(n))return n}function woe(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function Soe(n,e){var t=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var r=[],i=!0,s=!1,a,o;try{for(t=t.call(n);!(i=(a=t.next()).done)&&(r.push(a.value),!(e&&r.length===e));i=!0);}catch(l){s=!0,o=l}finally{try{!i&&t.return!=null&&t.return()}finally{if(s)throw o}}return r}}function RI(n,e){if(n){if(typeof n=="string")return Ax(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);if(t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set")return Array.from(n);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Ax(n,e)}}function Ax(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t<e;t++)r[t]=n[t];return r}function Doe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 120In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function koe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 121In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var JM=function(){},V1={},II={},NI=null,FI={mark:JM,measure:JM};try{typeof window<"u"&&(V1=window),typeof document<"u"&&(II=document),typeof MutationObserver<"u"&&(NI=MutationObserver),typeof performance<"u"&&(FI=performance)}catch{}var Poe=V1.navigator||{},eT=Poe.userAgent,tT=eT===void 0?"":eT,fo=V1,jt=II,nT=NI,Np=FI;fo.document;var _a=!!jt.documentElement&&!!jt.head&&typeof jt.addEventListener=="function"&&typeof jt.createElement=="function",LI=~tT.indexOf("MSIE")||~tT.indexOf("Trident/"),Fp,Lp,Bp,$p,Vp,fa="___FONT_AWESOME___",jx=16,BI="fa",$I="svg-inline--fa",Sl="data-fa-i2svg",Rx="data-fa-pseudo-element",Coe="data-fa-pseudo-element-pending",Y1="data-prefix",H1="data-icon",rT="fontawesome-i2svg",Eoe="async",Moe=["HTML","HEAD","STYLE","SCRIPT"],VI=function(){try{return!0}catch{return!1}}(),Tt="classic",Xt="sharp",z1=[Tt,Xt];function nh(n){return new Proxy(n,{get:function(t,r){return r in t?t[r]:t[Tt]}})}var Tf=nh((Fp={},yn(Fp,Tt,{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit","fa-kit":"kit"}),yn(Fp,Xt,{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light"}),Fp)),Of=nh((Lp={},yn(Lp,Tt,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),yn(Lp,Xt,{solid:"fass",regular:"fasr",light:"fasl"}),Lp)),Af=nh((Bp={},yn(Bp,Tt,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),yn(Bp,Xt,{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light"}),Bp)),Toe=nh(($p={},yn($p,Tt,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),yn($p,Xt,{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl"}
121),$p)),Ooe=/fa(s|r|l|t|d|b|k|ss|sr|sl)?[\-\ ]/,YI="fa-layers-text",Aoe=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,joe=nh((Vp={},yn(Vp,Tt,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),yn(Vp,Xt,{900:"fass",400:"fasr",300:"fasl"}),Vp)),HI=[1,2,3,4,5,6,7,8,9,10],Roe=HI.concat([11,12,13,14,15,16,17,18,19,20]),Ioe=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Uo={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},jf=new Set;Object.keys(Of[Tt]).map(jf.add.bind(jf));Object.keys(Of[Xt]).map(jf.add.bind(jf));var Noe=[].concat(z1,th(jf),["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",Uo.GROUP,Uo.SWAP_OPACITY,Uo.PRIMARY,Uo.SECONDARY]).concat(HI.map(function(n){return"".concat(n,"x")})).concat(Roe.map(function(n){return"w-".concat(n)})),Ld=fo.FontAwesomeConfig||{};function Foe(n){var e=jt.querySelector("script["+n+"]");if(e)return e.getAttribute(n)}function Loe(n){return n===""?!0:n==="false"?!1:n==="true"?!0:n}if(jt&&typeof jt.querySelector=="function"){var Boe=[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]];Boe.forEach(function(n){var e=$1(n,2),t=e[0],r=e[1],i=Loe(Foe(t));i!=null&&(Ld[r]=i)})}var zI={styleDefault:"solid",familyDefault:"classic",cssPrefix:BI,replacementClass:$I,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Ld.familyPrefix&&(Ld.cssPrefix=Ld.familyPrefix);var dc=he(he({},zI),Ld);dc.autoReplaceSvg||(dc.observeMutations=!1);var ye={};Object.keys(zI).forEach(function(n){Object.defineProperty(ye,n,{enumerable:!0,set:function(t){dc[n]=t,Bd.forEach(function(r){return r(ye)})},get:function(){return dc[n]}})});Object.defineProperty(ye,"familyPrefix",{enumerable:!0,set:function(e){dc.cssPrefix=e,Bd.forEach(function(t){return t(ye)})},get:function(){return dc.cssPrefix}});fo.FontAwesomeConfig=ye;var Bd=[];function $oe(n){return Bd.push(n),function(){Bd.splice(Bd.indexOf(n),1)}}var ja=jx,us={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Voe(n){if(!(!n||!_a)){var e=jt.createElement("style");e.setAttribute("type","text/css"),e.innerHTML=n;for(var t=jt.head.childNodes,r=null,i=t.length-1;i>-1;i--){var s=t[i],a=(s.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(r=s)}return jt.head.insertBefore(e,r),n}}var Yoe="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Rf(){for(var n=12,e="";n-- >0;)e+=Yoe[Math.random()*62|0];return e}function Pc(n){for(var e=[],t=(n||[]).length>>>0;t--;)e[t]=n[t];return e}function W1(n){return n.classList?Pc(n.classList):(n.getAttribute("class")||"").split(" ").filter(function(e){return e})}function WI(n){return"".concat(n).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function Hoe(n){return Object.keys(n||{}).reduce(function(e,t){return e+"".concat(t,'="').concat(WI(n[t]),'" ')},"").trim()}function Nv(n){return Object.keys(n||{}).reduce(function(e,t){return e+"".concat(t,": ").concat(n[t].trim(),";")},"")}function U1(n){return n.size!==us.size||n.x!==us.x||n.y!==us.y||n.rotate!==us.rotate||n.flipX||n.flipY}function zoe(n){var e=n.transform,t=n.containerWidth,r=n.iconWidth,i={transform:"translate(".concat(t/2," 256)")},s="translate(".concat(e.x*32,", ").concat(e.y*32,") "),a="scale(".concat(e.size/16*(e.flipX?-1:1),", ").concat(e.size/16*(e.flipY?-1:1),") "),o="rotate(".concat(e.rotate," 0 0)"),l={transform:"".concat(s," ").concat(a," ").concat(o)},u={transform:"translate(".concat(r/2*-1," -256)")};return{outer:i,inner:l,path:u}}function Woe(n){var e=n.transform,t=n.width,r=t===void 0?jx:t,i=n.height,s=i===void 0?jx:i,a=n.startCentered,o=a===void 0?!1:a,l="";return o&&LI?l+="translate(".concat(e.x/ja-r/2,"em, ").concat(e.y/ja-s/2,"em) "):o?l+="translate(calc(-50% + ".concat(e.x/ja,"em), calc(-50% + ").concat(e.y/ja,"em)) "):l+="translate(".concat(e.x/ja,"em, ").concat(e.y/ja,"em) "),l+="scale(".concat(e.size/ja*(e.flipX?-1:1),", ").concat(e.size/ja*(e.flipY?-1:1),") "),l+="rotate(".concat(e.rotate,"deg) "),l}var Uoe=`:root, :host { 122 --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid"; 123 --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular"; 124 --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light"; 125 --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin"; 126 --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone"; 127 --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp"; 128 --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp"; 129 --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp"; 130 --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands"; 131} 132 133svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa { 134 overflow: visible; 135 box-sizing: content-box; 136} 137 138.svg-inline--fa { 139 display: var(--fa-display, inline-block); 140 height: 1em; 141 overflow: visible; 142 vertical-align: -0.125em; 143} 144.svg-inline--fa.fa-2xs { 145 vertical-align: 0.1em; 146} 147.svg-inline--fa.fa-xs { 148 vertical-align: 0em; 149} 150.svg-inline--fa.fa-sm { 151 vertical-align: -0.0714285705em; 152} 153.svg-inline--fa.fa-lg { 154 vertical-align: -0.2em; 155} 156.svg-inline--fa.fa-xl { 157 vertical-align: -0.25em; 158} 159.svg-inline--fa.fa-2xl { 160 vertical-align: -0.3125em; 161} 162.svg-inline--fa.fa-pull-left { 163 margin-right: var(--fa-pull-margin, 0.3em); 164 width: auto; 165} 166.svg-inline--fa.fa-pull-right { 167 margin-left: var(--fa-pull-margin, 0.3em); 168 width: auto; 169} 170.svg-inline--fa.fa-li { 171 width: var(--fa-li-width, 2em); 172 top: 0.25em; 173} 174.svg-inline--fa.fa-fw { 175 width: var(--fa-fw-width, 1.25em); 176} 177 178.fa-layers svg.svg-inline--fa { 179 bottom: 0; 180 left: 0; 181 margin: auto; 182 position: absolute; 183 right: 0; 184 top: 0; 185} 186 187.fa-layers-counter, .fa-layers-text { 188 display: inline-block; 189 position: absolute; 190 text-align: center; 191} 192 193.fa-layers { 194 display: inline-block; 195 height: 1em; 196 position: relative; 197 text-align: center; 198 vertical-align: -0.125em; 199 width: 1em; 200} 201.fa-layers svg.svg-inline--fa { 202 -webkit-transform-origin: center center; 203 transform-origin: center center; 204} 205 206.fa-layers-text { 207 left: 50%; 208 top: 50%; 209 -webkit-transform: translate(-50%, -50%); 210 transform: translate(-50%, -50%); 211 -webkit-transform-origin: center center; 212 transform-origin: center center; 213} 214 215.fa-layers-counter { 216 background-color: var(--fa-counter-background-color, #ff253a); 217 border-radius: var(--fa-counter-border-radius, 1em); 218 box-sizing: border-box; 219 color: var(--fa-inverse, #fff); 220 line-height: var(--fa-counter-line-height, 1); 221 max-width: var(--fa-counter-max-width, 5em); 222 min-width: var(--fa-counter-min-width, 1.5em); 223 overflow: hidden; 224 padding: var(--fa-counter-padding, 0.25em 0.5em); 225 right: var(--fa-right, 0); 226 text-overflow: ellipsis; 227 top: var(--fa-top, 0); 228 -webkit-transform: scale(var(--fa-counter-scale, 0.25)); 229 transform: scale(var(--fa-counter-scale, 0.25)); 230 -webkit-transform-origin: top right; 231 transform-origin: top right; 232} 233 234.fa-layers-bottom-right { 235 bottom: var(--fa-bottom, 0); 236 right: var(--fa-right, 0); 237 top: auto; 238 -webkit-transform: scale(var(--fa-layers-scale, 0.25)); 239 transform: scale(var(--fa-layers-scale, 0.25)); 240 -webkit-transform-origin: bottom right; 241 transform-origin: bottom right; 242} 243 244.fa-layers-bottom-left { 245 bottom: var(--fa-bottom, 0); 246 left: var(--fa-left, 0); 247 right: auto; 248 top: auto; 249 -webkit-transform: scale(var(--fa-layers-scale, 0.25)); 250 transform: scale(var(--fa-layers-scale, 0.25)); 251 -webkit-transform-origin: bottom left; 252 transform-origin: bottom left; 253} 254 255.fa-layers-top-right { 256 top: var(--fa-top, 0); 257 right: var(--fa-right, 0); 258 -webkit-transform: scale(var(--fa-layers-scale, 0.25)); 259 transform: scale(var(--fa-layers-scale, 0.25)); 260 -webkit-transform-origin: top right; 261 transform-origin: top right; 262} 263 264.fa-layers-top-left { 265 left: var(--fa-left, 0); 266 right: auto; 267 top: var(--fa-top, 0); 268 -webkit-transform: scale(var(--fa-layers-scale, 0.25)); 269 transform: scale(var(--fa-layers-scale, 0.25)); 270 -webkit-transform-origin: top left; 271 transform-origin: top left; 272} 273 274.fa-1x { 275 font-size: 1em; 276} 277 278.fa-2x { 279 font-size: 2em; 280} 281 282.fa-3x { 283 font-size: 3em; 284} 285 286.fa-4x { 287 font-size: 4em; 288} 289 290.fa-5x { 291 font-size: 5em; 292} 293 294.fa-6x { 295 font-size: 6em; 296} 297 298.fa-7x { 299 font-size: 7em; 300} 301 302.fa-8x { 303 font-size: 8em; 304} 305 306.fa-9x { 307 font-size: 9em; 308} 309 310.fa-10x { 311 font-size: 10em; 312} 313 314.fa-2xs { 315 font-size: 0.625em; 316 line-height: 0.1em; 317 vertical-align: 0.225em; 318} 319 320.fa-xs { 321 font-size: 0.75em; 322 line-height: 0.0833333337em; 323 vertical-align: 0.125em; 324} 325 326.fa-sm { 327 font-size: 0.875em; 328 line-height: 0.0714285718em; 329 vertical-align: 0.0535714295em; 330} 331 332.fa-lg { 333 font-size: 1.25em; 334 line-height: 0.05em; 335 vertical-align: -0.075em; 336} 337 338.fa-xl { 339 font-size: 1.5em; 340 line-height: 0.0416666682em; 341 vertical-align: -0.125em; 342} 343 344.fa-2xl { 345 font-size: 2em; 346 line-height: 0.03125em; 347 vertical-align: -0.1875em; 348} 349 350.fa-fw { 351 text-align: center; 352 width: 1.25em; 353} 354 355.fa-ul { 356 list-style-type: none; 357 margin-left: var(--fa-li-margin, 2.5em); 358 padding-left: 0; 359} 360.fa-ul > li { 361 position: relative; 362} 363 364.fa-li { 365 left: calc(var(--fa-li-width, 2em) * -1); 366 position: absolute; 367 text-align: center; 368 width: var(--fa-li-width, 2em); 369 line-height: inherit; 370} 371 372.fa-border { 373 border-color: var(--fa-border-color, #eee); 374 border-radius: var(--fa-border-radius, 0.1em); 375 border-style: var(--fa-border-style, solid); 376 border-width: var(--fa-border-width, 0.08em);
377 padding: var(--fa-border-padding, 0.2em 0.25em 0.15em); 378} 379 380.fa-pull-left { 381 float: left; 382 margin-right: var(--fa-pull-margin, 0.3em); 383} 384 385.fa-pull-right { 386 float: right; 387 margin-left: var(--fa-pull-margin, 0.3em); 388} 389 390.fa-beat { 391 -webkit-animation-name: fa-beat; 392 animation-name: fa-beat; 393 -webkit-animation-delay: var(--fa-animation-delay, 0s); 394 animation-delay: var(--fa-animation-delay, 0s); 395 -webkit-animation-direction: var(--fa-animation-direction, normal); 396 animation-direction: var(--fa-animation-direction, normal); 397 -webkit-animation-duration: var(--fa-animation-duration, 1s); 398 animation-duration: var(--fa-animation-duration, 1s); 399 -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); 400 animation-iteration-count: var(--fa-animation-iteration-count, infinite); 401 -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out); 402 animation-timing-function: var(--fa-animation-timing, ease-in-out); 403} 404 405.fa-bounce { 406 -webkit-animation-name: fa-bounce; 407 animation-name: fa-bounce; 408 -webkit-animation-delay: var(--fa-animation-delay, 0s); 409 animation-delay: var(--fa-animation-delay, 0s); 410 -webkit-animation-direction: var(--fa-animation-direction, normal); 411 animation-direction: var(--fa-animation-direction, normal); 412 -webkit-animation-duration: var(--fa-animation-duration, 1s); 413 animation-duration: var(--fa-animation-duration, 1s); 414 -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); 415 animation-iteration-count: var(--fa-animation-iteration-count, infinite); 416 -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1)); 417 animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1)); 418} 419 420.fa-fade { 421 -webkit-animation-name: fa-fade; 422 animation-name: fa-fade; 423 -webkit-animation-delay: var(--fa-animation-delay, 0s); 424 animation-delay: var(--fa-animation-delay, 0s); 425 -webkit-animation-direction: var(--fa-animation-direction, normal); 426 animation-direction: var(--fa-animation-direction, normal); 427 -webkit-animation-duration: var(--fa-animation-duration, 1s); 428 animation-duration: var(--fa-animation-duration, 1s); 429 -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); 430 animation-iteration-count: var(--fa-animation-iteration-count, infinite); 431 -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); 432 animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); 433} 434 435.fa-beat-fade { 436 -webkit-animation-name: fa-beat-fade; 437 animation-name: fa-beat-fade; 438 -webkit-animation-delay: var(--fa-animation-delay, 0s); 439 animation-delay: var(--fa-animation-delay, 0s); 440 -webkit-animation-direction: var(--fa-animation-direction, normal); 441 animation-direction: var(--fa-animation-direction, normal); 442 -webkit-animation-duration: var(--fa-animation-duration, 1s); 443 animation-duration: var(--fa-animation-duration, 1s); 444 -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); 445 animation-iteration-count: var(--fa-animation-iteration-count, infinite); 446 -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); 447 animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); 448} 449 450.fa-flip { 451 -webkit-animation-name: fa-flip; 452 animation-name: fa-flip; 453 -webkit-animation-delay: var(--fa-animation-delay, 0s); 454 animation-delay: var(--fa-animation-delay, 0s); 455 -webkit-animation-direction: var(--fa-animation-direction, normal); 456 animation-direction: var(--fa-animation-direction, normal); 457 -webkit-animation-duration: var(--fa-animation-duration, 1s); 458 animation-duration: var(--fa-animation-duration, 1s); 459 -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); 460 animation-iteration-count: var(--fa-animation-iteration-count, infinite); 461 -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out); 462 animation-timing-function: var(--fa-animation-timing, ease-in-out); 463} 464 465.fa-shake { 466 -webkit-animation-name: fa-shake; 467 animation-name: fa-shake; 468 -webkit-animation-delay: var(--fa-animation-delay, 0s); 469 animation-delay: var(--fa-animation-delay, 0s); 470 -webkit-animation-direction: var(--fa-animation-direction, normal); 471 animation-direction: var(--fa-animation-direction, normal); 472 -webkit-animation-duration: var(--fa-animation-duration, 1s); 473 animation-duration: var(--fa-animation-duration, 1s); 474 -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); 475 animation-iteration-count: var(--fa-animation-iteration-count, infinite); 476 -webkit-animation-timing-function: var(--fa-animation-timing, linear); 477 animation-timing-function: var(--fa-animation-timing, linear); 478} 479 480.fa-spin { 481 -webkit-animation-name: fa-spin; 482 animation-name: fa-spin; 483 -webkit-animation-delay: var(--fa-animation-delay, 0s); 484 animation-delay: var(--fa-animation-delay, 0s); 485 -webkit-animation-direction: var(--fa-animation-direction, normal); 486 animation-direction: var(--fa-animation-direction, normal); 487 -webkit-animation-duration: var(--fa-animation-duration, 2s); 488 animation-duration: var(--fa-animation-duration, 2s); 489 -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); 490 animation-iteration-count: var(--fa-animation-iteration-count, infinite); 491 -webkit-animation-timing-function: var(--fa-animation-timing, linear); 492 animation-timing-function: var(--fa-animation-timing, linear); 493} 494 495.fa-spin-reverse { 496 --fa-animation-direction: reverse; 497} 498 499.fa-pulse, 500.fa-spin-pulse { 501 -webkit-animation-name: fa-spin; 502 animation-name: fa-spin; 503 -webkit-animation-direction: var(--fa-animation-direction, normal); 504 animation-direction: var(--fa-animation-direction, normal); 505 -webkit-animation-duration: var(--fa-animation-duration, 1s); 506 animation-duration: var(--fa-animation-duration, 1s); 507 -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); 508 animation-iteration-count: var(--fa-animation-iteration-count, infinite); 509 -webkit-animation-timing-function: var(--fa-animation-timing, steps(8)); 510 animation-timing-function: var(--fa-animation-timing, steps(8)); 511} 512 513@media (prefers-reduced-motion: reduce) { 514 .fa-beat, 515.fa-bounce, 516.fa-fade, 517.fa-beat-fade, 518.fa-flip, 519.fa-pulse, 520.fa-shake, 521.fa-spin, 522.fa-spin-pulse { 523 -webkit-animation-delay: -1ms; 524 animation-delay: -1ms; 525 -webkit-animation-duration: 1ms; 526 animation-duration: 1ms; 527 -webkit-animation-iteration-count: 1; 528 animation-iteration-count: 1; 529 -webkit-transition-delay: 0s; 530 transition-delay: 0s; 531 -webkit-transition-duration: 0s; 532 transition-duration: 0s; 533 } 534} 535@-webkit-keyframes fa-beat { 536 0%, 90% { 537 -webkit-transform: scale(1); 538 transform: scale(1); 539 } 540 45% { 541 -webkit-transform: scale(var(--fa-beat-scale, 1.25)); 542 transform: scale(var(--fa-beat-scale, 1.25)); 543 } 544} 545@keyframes fa-beat { 546 0%, 90% { 547 -webkit-transform: scale(1); 548 transform: scale(1); 549 } 550 45% { 551 -webkit-transform: scale(var(--fa-beat-scale, 1.25)); 552 transform: scale(var(--fa-beat-scale, 1.25)); 553 } 554} 555@-webkit-keyframes fa-bounce { 556 0% { 557 -webkit-transform: scale(1, 1) translateY(0); 558 transform: scale(1, 1) translateY(0); 559 } 560 10% { 561 -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); 562 transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); 563 } 564 30% { 565 -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); 566 transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); 567 } 568 50% { 569 -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); 570 transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); 571 } 572 57% { 573 -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); 574 transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); 575 } 576 64% { 577 -webkit-transform: scale(1, 1) translateY(0); 578 transform: scale(1, 1) translateY(0); 579 } 580 100% { 581 -webkit-transform: scale(1, 1) translateY(0); 582 transform: scale(1, 1) translateY(0); 583 } 584} 585@keyframes fa-bounce { 586 0% { 587 -webkit-transform: scale(1, 1) translateY(0); 588 transform: scale(1, 1) translateY(0); 589 } 590 10% { 591 -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); 592 transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); 593 } 594 30% { 595 -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); 596 transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); 597 } 598 50% { 599 -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); 600 transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); 601 } 602 57% { 603 -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); 604 transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); 605 } 606 64% { 607 -webkit-transform: scale(1, 1) translateY(0); 608 transform: scale(1, 1) translateY(0); 609 } 610 100% { 611 -webkit-transform: scale(1, 1) translateY(0); 612 transform: scale(1, 1) translateY(0); 613 } 614} 615@-webkit-keyframes fa-fade { 616 50% { 617 opacity: var(--fa-fade-opacity, 0.4); 618 } 619} 620@keyframes fa-fade { 621 50% { 622 opacity: var(--fa-fade-opacity, 0.4); 623 } 624} 625@-webkit-keyframes fa-beat-fade { 626 0%, 100% { 627 opacity: var(--fa-beat-fade-opacity, 0.4); 628 -webkit-transform: scale(1); 629 transform: scale(1); 630 } 631 50% { 632 opacity: 1; 633 -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125)); 634 transform: scale(var(--fa-beat-fade-scale, 1.125)); 635 } 636} 637@keyframes fa-beat-fade { 638 0%, 100% { 639 opacity: var(--fa-beat-fade-opacity, 0.4); 640 -webkit-transform: scale(1); 641 transform: scale(1); 642 } 643 50% { 644 opacity: 1; 645 -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125)); 646 transform: scale(var(--fa-beat-fade-scale, 1.125)); 647 } 648} 649@-webkit-keyframes fa-flip { 650 50% { 651 -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); 652 transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); 653 } 654} 655@keyframes fa-flip { 656 50% { 657 -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); 658 transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); 659 } 660} 661@-webkit-keyframes fa-shake { 662 0% { 663 -webkit-transform: rotate(-15deg); 664 transform: rotate(-15deg); 665 } 666 4% { 667 -webkit-transform: rotate(15deg); 668 transform: rotate(15deg); 669 } 670 8%, 24% { 671 -webkit-transform: rotate(-18deg); 672 transform: rotate(-18deg); 673 } 674 12%, 28% { 675 -webkit-transform: rotate(18deg); 676 transform: rotate(18deg); 677 } 678 16% { 679 -webkit-transform: rotate(-22deg); 680 transform: rotate(-22deg); 681 } 682 20% { 683 -webkit-transform: rotate(22deg); 684 transform: rotate(22deg); 685 } 686 32% { 687 -webkit-transform: rotate(-12deg); 688 transform: rotate(-12deg); 689 } 690 36% { 691 -webkit-transform: rotate(12deg); 692 transform: rotate(12deg); 693 } 694 40%, 100% { 695 -webkit-transform: rotate(0deg); 696 transform: rotate(0deg); 697 } 698} 699@keyframes fa-shake { 700 0% { 701 -webkit-transform: rotate(-15deg); 702 transform: rotate(-15deg); 703 } 704 4% { 705 -webkit-transform: rotate(15deg); 706 transform: rotate(15deg); 707 } 708 8%, 24% { 709 -webkit-transform: rotate(-18deg); 710 transform: rotate(-18deg); 711 } 712 12%, 28% { 713 -webkit-transform: rotate(18deg); 714 transform: rotate(18deg); 715 } 716 16% { 717 -webkit-transform: rotate(-22deg); 718 transform: rotate(-22deg); 719 } 720 20% { 721 -webkit-transform: rotate(22deg); 722 transform: rotate(22deg); 723 } 724 32% { 725 -webkit-transform: rotate(-12deg); 726 transform: rotate(-12deg); 727 } 728 36% { 729 -webkit-transform: rotate(12deg); 730 transform: rotate(12deg); 731 } 732 40%, 100% { 733 -webkit-transform: rotate(0deg); 734 transform: rotate(0deg); 735 } 736} 737@-webkit-keyframes fa-spin { 738 0% { 739 -webkit-transform: rotate(0deg); 740 transform: rotate(0deg); 741 } 742 100% { 743 -webkit-transform: rotate(360deg); 744 transform: rotate(360deg); 745 } 746} 747@keyframes fa-spin { 748 0% { 749 -webkit-transform: rotate(0deg); 750 transform: rotate(0deg); 751 } 752 100% { 753 -webkit-transform: rotate(360deg); 754 transform: rotate(360deg); 755 } 756} 757.fa-rotate-90 { 758 -webkit-transform: rotate(90deg); 759 transform: rotate(90deg); 760} 761 762.fa-rotate-180 { 763 -webkit-transform: rotate(180deg); 764 transform: rotate(180deg); 765} 766 767.fa-rotate-270 { 768 -webkit-transform: rotate(270deg); 769 transform: rotate(270deg); 770} 771 772.fa-flip-horizontal { 773 -webkit-transform: scale(-1, 1); 774 transform: scale(-1, 1); 775} 776
777.fa-flip-vertical { 778 -webkit-transform: scale(1, -1); 779 transform: scale(1, -1); 780} 781 782.fa-flip-both, 783.fa-flip-horizontal.fa-flip-vertical { 784 -webkit-transform: scale(-1, -1); 785 transform: scale(-1, -1); 786} 787 788.fa-rotate-by { 789 -webkit-transform: rotate(var(--fa-rotate-angle, none)); 790 transform: rotate(var(--fa-rotate-angle, none)); 791} 792 793.fa-stack { 794 display: inline-block; 795 vertical-align: middle; 796 height: 2em; 797 position: relative; 798 width: 2.5em; 799} 800 801.fa-stack-1x, 802.fa-stack-2x { 803 bottom: 0; 804 left: 0; 805 margin: auto; 806 position: absolute; 807 right: 0; 808 top: 0; 809 z-index: var(--fa-stack-z-index, auto); 810} 811 812.svg-inline--fa.fa-stack-1x { 813 height: 1em; 814 width: 1.25em; 815} 816.svg-inline--fa.fa-stack-2x { 817 height: 2em; 818 width: 2.5em; 819} 820 821.fa-inverse { 822 color: var(--fa-inverse, #fff); 823} 824 825.sr-only, 826.fa-sr-only { 827 position: absolute; 828 width: 1px; 829 height: 1px; 830 padding: 0; 831 margin: -1px; 832 overflow: hidden; 833 clip: rect(0, 0, 0, 0); 834 white-space: nowrap; 835 border-width: 0; 836} 837 838.sr-only-focusable:not(:focus), 839.fa-sr-only-focusable:not(:focus) { 840 position: absolute; 841 width: 1px; 842 height: 1px; 843 padding: 0; 844 margin: -1px; 845 overflow: hidden; 846 clip: rect(0, 0, 0, 0); 847 white-space: nowrap; 848 border-width: 0; 849} 850 851.svg-inline--fa .fa-primary { 852 fill: var(--fa-primary-color, currentColor); 853 opacity: var(--fa-primary-opacity, 1); 854} 855 856.svg-inline--fa .fa-secondary { 857 fill: var(--fa-secondary-color, currentColor); 858 opacity: var(--fa-secondary-opacity, 0.4); 859} 860 861.svg-inline--fa.fa-swap-opacity .fa-primary { 862 opacity: var(--fa-secondary-opacity, 0.4); 863} 864 865.svg-inline--fa.fa-swap-opacity .fa-secondary { 866 opacity: var(--fa-primary-opacity, 1); 867} 868 869.svg-inline--fa mask .fa-primary, 870.svg-inline--fa mask .fa-secondary { 871 fill: black; 872} 873 874.fad.fa-inverse, 875.fa-duotone.fa-inverse { 876 color: var(--fa-inverse, #fff); 877}`;function UI(){var n=BI,e=$I,t=ye.cssPrefix,r=ye.replacementClass,i=Uoe;if(t!==n||r!==e){var s=new RegExp("\\.".concat(n,"\\-"),"g"),a=new RegExp("\\--".concat(n,"\\-"),"g"),o=new RegExp("\\.".concat(e),"g");i=i.replace(s,".".concat(t,"-")).replace(a,"--".concat(t,"-")).replace(o,".".concat(r))}return i}var iT=!1;function A_(){ye.autoAddCss&&!iT&&(Voe(UI()),iT=!0)}var Goe={mixout:function(){return{dom:{css:UI,insertCss:A_}}},hooks:function(){return{beforeDOMElementCreation:function(){A_()},beforeI2svg:function(){A_()}}}},ha=fo||{};ha[fa]||(ha[fa]={});ha[fa].styles||(ha[fa].styles={});ha[fa].hooks||(ha[fa].hooks={});ha[fa].shims||(ha[fa].shims=[]);var Ei=ha[fa],GI=[],Xoe=function n(){jt.removeEventListener("DOMContentLoaded",n),Om=1,GI.map(function(e){return e()})},Om=!1;_a&&(Om=(jt.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(jt.readyState),Om||jt.addEventListener("DOMContentLoaded",Xoe));function qoe(n){_a&&(Om?setTimeout(n,0):GI.push(n))}function rh(n){var e=n.tag,t=n.attributes,r=t===void 0?{}:t,i=n.children,s=i===void 0?[]:i;return typeof n=="string"?WI(n):"<".concat(e," ").concat(Hoe(r),">").concat(s.map(rh).join(""),"</").concat(e,">")}function sT(n,e,t){if(n&&n[e]&&n[e][t])return{prefix:e,iconName:t,icon:n[e][t]}}var Koe=function(e,t){return function(r,i,s,a){return e.call(t,r,i,s,a)}},j_=function(e,t,r,i){var s=Object.keys(e),a=s.length,o=i!==void 0?Koe(t,i):t,l,u,h;for(r===void 0?(l=1,h=e[s[0]]):(l=0,h=r);l<a;l++)u=s[l],h=o(h,e[u],u,e);return h};function Qoe(n){for(var e=[],t=0,r=n.length;t<r;){var i=n.charCodeAt(t++);if(i>=55296&&i<=56319&&t<r){var s=n.charCodeAt(t++);(s&64512)==56320?e.push(((i&1023)<<10)+(s&1023)+65536):(e.push(i),t--)}else e.push(i)}return e}function Ix(n){var e=Qoe(n);return e.length===1?e[0].toString(16):null}function Zoe(n,e){var t=n.length,r=n.charCodeAt(e),i;return r>=55296&&r<=56319&&t>e+1&&(i=n.charCodeAt(e+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}function aT(n){return Object.keys(n).reduce(function(e,t){var r=n[t],i=!!r.icon;return i?e[r.iconName]=r.icon:e[t]=r,e},{})}function Nx(n,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=t.skipHooks,i=r===void 0?!1:r,s=aT(e);typeof Ei.hooks.addPack=="function"&&!i?Ei.hooks.addPack(n,aT(e)):Ei.styles[n]=he(he({},Ei.styles[n]||{}),s),n==="fas"&&Nx("fa",e)}var Yp,Hp,zp,Su=Ei.styles,Joe=Ei.shims,ele=(Yp={},yn(Yp,Tt,Object.values(Af[Tt])),yn(Yp,Xt,Object.values(Af[Xt])),Yp),G1=null,XI={},qI={},KI={},QI={},ZI={},tle=(Hp={},yn(Hp,Tt,Object.keys(Tf[Tt])),yn(Hp,Xt,Object.keys(Tf[Xt])),Hp);function nle(n){return~Noe.indexOf(n)}function rle(n,e){var t=e.split("-"),r=t[0],i=t.slice(1).join("-");return r===n&&i!==""&&!nle(i)?i:null}var JI=function(){var e=function(s){return j_(Su,function(a,o,l){return a[l]=j_(o,s,{}),a},{})};XI=e(function(i,s,a){if(s[3]&&(i[s[3]]=a),s[2]){var o=s[2].filter(function(l){return typeof l=="number"});o.forEach(function(l){i[l.toString(16)]=a})}return i}),qI=e(function(i,s,a){if(i[a]=a,s[2]){var o=s[2].filter(function(l){return typeof l=="string"});o.forEach(function(l){i[l]=a})}return i}),ZI=e(function(i,s,a){var o=s[2];return i[a]=a,o.forEach(function(l){i[l]=a}),i});var t="far"in Su||ye.autoFetchSvg,r=j_(Joe,function(i,s){var a=s[0],o=s[1],l=s[2];
877return o==="far"&&!t&&(o="fas"),typeof a=="string"&&(i.names[a]={prefix:o,iconName:l}),typeof a=="number"&&(i.unicodes[a.toString(16)]={prefix:o,iconName:l}),i},{names:{},unicodes:{}});KI=r.names,QI=r.unicodes,G1=Fv(ye.styleDefault,{family:ye.familyDefault})};$oe(function(n){G1=Fv(n.styleDefault,{family:ye.familyDefault})});JI();function X1(n,e){return(XI[n]||{})[e]}function ile(n,e){return(qI[n]||{})[e]}function Go(n,e){return(ZI[n]||{})[e]}function eN(n){return KI[n]||{prefix:null,iconName:null}}function sle(n){var e=QI[n],t=X1("fas",n);return e||(t?{prefix:"fas",iconName:t}:null)||{prefix:null,iconName:null}}function ho(){return G1}var q1=function(){return{prefix:null,iconName:null,rest:[]}};function Fv(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=e.family,r=t===void 0?Tt:t,i=Tf[r][n],s=Of[r][n]||Of[r][i],a=n in Ei.styles?n:null;return s||a||null}var oT=(zp={},yn(zp,Tt,Object.keys(Af[Tt])),yn(zp,Xt,Object.keys(Af[Xt])),zp);function Lv(n){var e,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.skipLookups,i=r===void 0?!1:r,s=(e={},yn(e,Tt,"".concat(ye.cssPrefix,"-").concat(Tt)),yn(e,Xt,"".concat(ye.cssPrefix,"-").concat(Xt)),e),a=null,o=Tt;(n.includes(s[Tt])||n.some(function(u){return oT[Tt].includes(u)}))&&(o=Tt),(n.includes(s[Xt])||n.some(function(u){return oT[Xt].includes(u)}))&&(o=Xt);var l=n.reduce(function(u,h){var f=rle(ye.cssPrefix,h);if(Su[h]?(h=ele[o].includes(h)?Toe[o][h]:h,a=h,u.prefix=h):tle[o].indexOf(h)>-1?(a=h,u.prefix=Fv(h,{family:o})):f?u.iconName=f:h!==ye.replacementClass&&h!==s[Tt]&&h!==s[Xt]&&u.rest.push(h),!i&&u.prefix&&u.iconName){var m=a==="fa"?eN(u.iconName):{},g=Go(u.prefix,u.iconName);m.prefix&&(a=null),u.iconName=m.iconName||g||u.iconName,u.prefix=m.prefix||u.prefix,u.prefix==="far"&&!Su.far&&Su.fas&&!ye.autoFetchSvg&&(u.prefix="fas")}return u},q1());return(n.includes("fa-brands")||n.includes("fab"))&&(l.prefix="fab"),(n.includes("fa-duotone")||n.includes("fad"))&&(l.prefix="fad"),!l.prefix&&o===Xt&&(Su.fass||ye.autoFetchSvg)&&(l.prefix="fass",l.iconName=Go(l.prefix,l.iconName)||l.iconName),(l.prefix==="fa"||a==="fa")&&(l.prefix=ho()||"fas"),l}var ale=function(){function n(){boe(this,n),this.definitions={}}return yoe(n,[{key:"add",value:function(){for(var t=this,r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];var a=i.reduce(this._pullDefinitions,{});Object.keys(a).forEach(function(o){t.definitions[o]=he(he({},t.definitions[o]||{}),a[o]),Nx(o,a[o]);var l=Af[Tt][o];l&&Nx(l,a[o]),JI()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(t,r){var i=r.prefix&&r.iconName&&r.icon?{0:r}:r;return Object.keys(i).map(function(s){var a=i[s],o=a.prefix,l=a.iconName,u=a.icon,h=u[2];t[o]||(t[o]={}),h.length>0&&h.forEach(function(f){typeof f=="string"&&(t[o][f]=u)}),t[o][l]=u}),t}}]),n}(),lT=[],Du={},Fu={},ole=Object.keys(Fu);function lle(n,e){var t=e.mixoutsTo;return lT=n,Du={},Object.keys(Fu).forEach(function(r){ole.indexOf(r)===-1&&delete Fu[r]}),lT.forEach(function(r){var i=r.mixout?r.mixout():{};
877if(Object.keys(i).forEach(function(a){typeof i[a]=="function"&&(t[a]=i[a]),Tm(i[a])==="object"&&Object.keys(i[a]).forEach(function(o){t[a]||(t[a]={}),t[a][o]=i[a][o]})}),r.hooks){var s=r.hooks();Object.keys(s).forEach(function(a){Du[a]||(Du[a]=[]),Du[a].push(s[a])})}r.provides&&r.provides(Fu)}),t}function Fx(n,e){for(var t=arguments.length,r=new Array(t>2?t-2:0),i=2;i<t;i++)r[i-2]=arguments[i];var s=Du[n]||[];return s.forEach(function(a){e=a.apply(null,[e].concat(r))}),e}function Dl(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r<e;r++)t[r-1]=arguments[r];var i=Du[n]||[];i.forEach(function(s){s.apply(null,t)})}function pa(){var n=arguments[0],e=Array.prototype.slice.call(arguments,1);return Fu[n]?Fu[n].apply(null,e):void 0}function Lx(n){n.prefix==="fa"&&(n.prefix="fas");var e=n.iconName,t=n.prefix||ho();if(e)return e=Go(t,e)||e,sT(tN.definitions,t,e)||sT(Ei.styles,t,e)}var tN=new ale,ule=function(){ye.autoReplaceSvg=!1,ye.observeMutations=!1,Dl("noAuto")},cle={i2svg:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return _a?(Dl("beforeI2svg",e),pa("pseudoElements2svg",e),pa("i2svg",e)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.autoReplaceSvgRoot;ye.autoReplaceSvg===!1&&(ye.autoReplaceSvg=!0),ye.observeMutations=!0,qoe(function(){fle({autoReplaceSvgRoot:t}),Dl("watch",e)})}},dle={icon:function(e){if(e===null)return null;if(Tm(e)==="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Go(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&e.length===2){var t=e[1].indexOf("fa-")===0?e[1].slice(3):e[1],r=Fv(e[0]);return{prefix:r,iconName:Go(r,t)||t}}if(typeof e=="string"&&(e.indexOf("".concat(ye.cssPrefix,"-"))>-1||e.match(Ooe))){var i=Lv(e.split(" "),{skipLookups:!0});return{prefix:i.prefix||ho(),iconName:Go(i.prefix,i.iconName)||i.iconName}}if(typeof e=="string"){var s=ho();return{prefix:s,iconName:Go(s,e)||e}}}},Xr={noAuto:ule,config:ye,dom:cle,parse:dle,library:tN,findIconDefinition:Lx,toHtml:rh},fle=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.autoReplaceSvgRoot,r=t===void 0?jt:t;(Object.keys(Ei.styles).length>0||ye.autoFetchSvg)&&_a&&ye.autoReplaceSvg&&Xr.dom.i2svg({node:r})};function Bv(n,e){return Object.defineProperty(n,"abstract",{get:e}),Object.defineProperty(n,"html",{get:function(){return n.abstract.map(function(r){return rh(r)})}}),Object.defineProperty(n,"node",{get:function(){if(_a){var r=jt.createElement("div");return r.innerHTML=n.html,r.children}}}),n}function hle(n){var e=n.children,t=n.main,r=n.mask,i=n.attributes,s=n.styles,a=n.transform;if(U1(a)&&t.found&&!r.found){var o=t.width,l=t.height,u={x:o/l/2,y:.5};i.style=Nv(he(he({},s),{},{"transform-origin":"".concat(u.x+a.x/16,"em ").concat(u.y+a.y/16,"em")}))}return[{tag:"svg",attributes:i,children:e}]}function ple(n){var e=n.prefix,t=n.iconName,r=n.children,i=n.attributes,s=n.symbol,a=s===!0?"".concat(e,"-").concat(ye.cssPrefix,"-").concat(t):s;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:he(he({},i),{},{id:a}),children:r}]}]}function K1(n){var e=n.icons,t=e.main,r=e.mask,i=n.prefix,s=n.iconName,a=n.transform,o=n.symbol,l=n.title,u=n.maskId,h=n.titleId,f=n.extra,m=n.watchable,g=m===void 0?!1:m,y=r.found?r:t,v=y.width,x=y.height,_=i==="fak",S=[ye.replacementClass,s?"".concat(ye.cssPrefix,"-").concat(s):""].filter(function(L){return f.classes.indexOf(L)===-1}).filter(function(L){return L!==""||!!L}).concat(f.classes).join(" "),w={children:[],attributes:he(he({},f.attributes),{},{"data-prefix":i,"data-icon":s,class:S,role:f.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(v," ").concat(x)})},k=_&&!~f.classes.indexOf("fa-fw")?{width:"".concat(v/x*16*.0625,"em")}:{};g&&(w.attributes[Sl]=""),l&&(w.children.push({tag:"title",attributes:{id:w.attributes["aria-labelledby"]||"title-".concat(h||Rf())},children:[l]}),delete w.attributes.title);var P=he(he({},w),{},{prefix:i,iconName:s,main:t,mask:r,maskId:u,transform:a,symbol:o,styles:he(he({},k),f.styles)}
877),j=r.found&&t.found?pa("generateAbstractMask",P)||{children:[],attributes:{}}:pa("generateAbstractIcon",P)||{children:[],attributes:{}},A=j.children,M=j.attributes;return P.children=A,P.attributes=M,o?ple(P):hle(P)}function uT(n){var e=n.content,t=n.width,r=n.height,i=n.transform,s=n.title,a=n.extra,o=n.watchable,l=o===void 0?!1:o,u=he(he(he({},a.attributes),s?{title:s}:{}),{},{class:a.classes.join(" ")});l&&(u[Sl]="");var h=he({},a.styles);U1(i)&&(h.transform=Woe({transform:i,startCentered:!0,width:t,height:r}),h["-webkit-transform"]=h.transform);var f=Nv(h);f.length>0&&(u.style=f);var m=[];return m.push({tag:"span",attributes:u,children:[e]}),s&&m.push({tag:"span",attributes:{class:"sr-only"},children:[s]}),m}function gle(n){var e=n.content,t=n.title,r=n.extra,i=he(he(he({},r.attributes),t?{title:t}:{}),{},{class:r.classes.join(" ")}),s=Nv(r.styles);s.length>0&&(i.style=s);var a=[];return a.push({tag:"span",attributes:i,children:[e]}),t&&a.push({tag:"span",attributes:{class:"sr-only"},children:[t]}),a}var R_=Ei.styles;function Bx(n){var e=n[0],t=n[1],r=n.slice(4),i=$1(r,1),s=i[0],a=null;return Array.isArray(s)?a={tag:"g",attributes:{class:"".concat(ye.cssPrefix,"-").concat(Uo.GROUP)},children:[{tag:"path",attributes:{class:"".concat(ye.cssPrefix,"-").concat(Uo.SECONDARY),fill:"currentColor",d:s[0]}},{tag:"path",attributes:{class:"".concat(ye.cssPrefix,"-").concat(Uo.PRIMARY),fill:"currentColor",d:s[1]}}]}:a={tag:"path",attributes:{fill:"currentColor",d:s}},{found:!0,width:e,height:t,icon:a}}var mle={found:!1,width:512,height:512};function vle(n,e){!VI&&!ye.showMissingIcons&&n&&console.error('Icon with name "'.concat(n,'" and prefix "').concat(e,'" is missing.'))}function $x(n,e){var t=e;return e==="fa"&&ye.styleDefault!==null&&(e=ho()),new Promise(function(r,i){if(pa("missingIconAbstract"),t==="fa"){var s=eN(n)||{};n=s.iconName||n,e=s.prefix||e}if(n&&e&&R_[e]&&R_[e][n]){var a=R_[e][n];return r(Bx(a))}vle(n,e),r(he(he({},mle),{},{icon:ye.showMissingIcons&&n?pa("missingIconAbstract")||{}:{}}))})}var cT=function(){},Vx=ye.measurePerformance&&Np&&Np.mark&&Np.measure?Np:{mark:cT,measure:cT},wd='FA "6.4.2"',ble=function(e){return Vx.mark("".concat(wd," ").concat(e," begins")),function(){return nN(e)}},nN=function(e){Vx.mark("".concat(wd," ").concat(e," ends")),Vx.measure("".concat(wd," ").concat(e),"".concat(wd," ").concat(e," begins"),"".concat(wd," ").concat(e," ends"))},Q1={begin:ble,end:nN},vg=function(){};function dT(n){var e=n.getAttribute?n.getAttribute(Sl):null;return typeof e=="string"}function yle(n){var e=n.getAttribute?n.getAttribute(Y1):null,t=n.getAttribute?n.getAttribute(H1):null;return e&&t}function _le(n){return n&&n.classList&&n.classList.contains&&n.classList.contains(ye.replacementClass)}function xle(){if(ye.autoReplaceSvg===!0)return bg.replace;var n=bg[ye.autoReplaceSvg];return n||bg.replace}function wle(n){return jt.createElementNS("http://www.w3.org/2000/svg",n)}function Sle(n){return jt.createElement(n)}function rN(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=e.ceFn,r=t===void 0?n.tag==="svg"?wle:Sle:t;if(typeof n=="string")return jt.createTextNode(n);var i=r(n.tag);Object.keys(n.attributes||[]).forEach(function(a){i.setAttribute(a,n.attributes[a])});var s=n.children||[];return s.forEach(function(a){i.appendChild(rN(a,{ceFn:r}))}),i}function Dle(n){var e=" ".concat(n.outerHTML," ");return e="".concat(e,"Font Awesome fontawesome.com "),e}var bg={replace:function(e){var t=e[0];if(t.parentNode)if(e[1].forEach(function(i){t.parentNode.insertBefore(rN(i),t)}),t.getAttribute(Sl)===null&&ye.keepOriginalSource){var r=jt.createComment(Dle(t));t.parentNode.replaceChild(r,t)}else t.remove()},nest:function(e){var t=e[0],r=e[1];if(~W1(t).indexOf(ye.replacementClass))return bg.replace(e);var i=new RegExp("".concat(ye.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var s=r[0].attributes.class.split(" ").reduce(function(o,l){return l===ye.replacementClass||l.match(i)?o.toSvg.push(l):o.toNode.push(l),o},{toNode:[],toSvg:[]});r[0].attributes.class=s.toSvg.join(" "),s.toNode.length===0?t.removeAttribute("class"):t.setAttribute("class",s.toNode.join(" "))}var a=r.map(function(o){return rh(o)}).join(` 878`);t.setAttribute(Sl,""),t.innerHTML=a}};function fT(n){n()}function iN(n,e){var t=typeof e=="function"?e:vg;if(n.length===0)t();else{var r=fT;ye.mutateApproach===Eoe&&(r=fo.requestAnimationFrame||fT),r(function(){var i=xle(),s=Q1.begin("mutate");n.map(i),s(),t()})}}var Z1=!1;function sN(){Z1=!0}function Yx(){Z1=!1}var Am=null;function hT(n){if(nT&&ye.observeMutations){var e=n.treeCallback,t=e===void 0?vg:e,r=n.nodeCallback,i=r===void 0?vg:r,s=n.pseudoElementsCallback,a=s===void 0?vg:s,o=n.observeMutationsRoot,l=o===void 0?jt:o;
878Am=new nT(function(u){if(!Z1){var h=ho();Pc(u).forEach(function(f){if(f.type==="childList"&&f.addedNodes.length>0&&!dT(f.addedNodes[0])&&(ye.searchPseudoElements&&a(f.target),t(f.target)),f.type==="attributes"&&f.target.parentNode&&ye.searchPseudoElements&&a(f.target.parentNode),f.type==="attributes"&&dT(f.target)&&~Ioe.indexOf(f.attributeName))if(f.attributeName==="class"&&yle(f.target)){var m=Lv(W1(f.target)),g=m.prefix,y=m.iconName;f.target.setAttribute(Y1,g||h),y&&f.target.setAttribute(H1,y)}else _le(f.target)&&i(f.target)})}}),_a&&Am.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function kle(){Am&&Am.disconnect()}function Ple(n){var e=n.getAttribute("style"),t=[];return e&&(t=e.split(";").reduce(function(r,i){var s=i.split(":"),a=s[0],o=s.slice(1);return a&&o.length>0&&(r[a]=o.join(":").trim()),r},{})),t}function Cle(n){var e=n.getAttribute("data-prefix"),t=n.getAttribute("data-icon"),r=n.innerText!==void 0?n.innerText.trim():"",i=Lv(W1(n));return i.prefix||(i.prefix=ho()),e&&t&&(i.prefix=e,i.iconName=t),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=ile(i.prefix,n.innerText)||X1(i.prefix,Ix(n.innerText))),!i.iconName&&ye.autoFetchSvg&&n.firstChild&&n.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=n.firstChild.data)),i}function Ele(n){var e=Pc(n.attributes).reduce(function(i,s){return i.name!=="class"&&i.name!=="style"&&(i[s.name]=s.value),i},{}),t=n.getAttribute("title"),r=n.getAttribute("data-fa-title-id");return ye.autoA11y&&(t?e["aria-labelledby"]="".concat(ye.replacementClass,"-title-").concat(r||Rf()):(e["aria-hidden"]="true",e.focusable="false")),e}function Mle(){return{iconName:null,title:null,titleId:null,prefix:null,transform:us,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function pT(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},t=Cle(n),r=t.iconName,i=t.prefix,s=t.rest,a=Ele(n),o=Fx("parseNodeAttributes",{},n),l=e.styleParser?Ple(n):[];return he({iconName:r,title:n.getAttribute("title"),titleId:n.getAttribute("data-fa-title-id"),prefix:i,transform:us,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:s,styles:l,attributes:a}},o)}var Tle=Ei.styles;function aN(n){var e=ye.autoReplaceSvg==="nest"?pT(n,{styleParser:!1}):pT(n);return~e.extra.classes.indexOf(YI)?pa("generateLayersText",n,e):pa("generateSvgReplacementMutation",n,e)}var po=new Set;z1.map(function(n){po.add("fa-".concat(n))});Object.keys(Tf[Tt]).map(po.add.bind(po));Object.keys(Tf[Xt]).map(po.add.bind(po));po=th(po);function gT(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!_a)return Promise.resolve();var t=jt.documentElement.classList,r=function(f){return t.add("".concat(rT,"-").concat(f))},i=function(f){return t.remove("".concat(rT,"-").concat(f))},s=ye.autoFetchSvg?po:z1.map(function(h){return"fa-".concat(h)}).concat(Object.keys(Tle));s.includes("fa")||s.push("fa");var a=[".".concat(YI,":not([").concat(Sl,"])")].concat(s.map(function(h){return".".concat(h,":not([").concat(Sl,"])")})).join(", ");if(a.length===0)return Promise.resolve();var o=[];try{o=Pc(n.querySelectorAll(a))}catch{}if(o.length>0)r("pending"),i("complete");else return Promise.resolve();var l=Q1.begin("onTree"),u=o.reduce(function(h,f){try{var m=aN(f);m&&h.push(m)}catch(g){VI||g.name==="MissingIcon"&&console.error(g)}return h},[]);return new Promise(function(h,f){Promise.all(u).then(function(m){iN(m,function(){r("active"),r("complete"),i("pending"),typeof e=="function"&&e(),l(),h()})}).catch(function(m){l(),f(m)})})}function Ole(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;aN(n).then(function(t){t&&iN([t],e)})}function Ale(n){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(e||{}).icon?e:Lx(e||{}),i=t.mask;return i&&(i=(i||{}).icon?i:Lx(i||{})),n(r,he(he({},t),{},{mask:i}))}}var jle=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.transform,i=r===void 0?us:r,s=t.symbol,a=s===void 0?!1:s,o=t.mask,l=o===void 0?null:o,u=t.maskId,h=u===void 0?null:u,f=t.title,m=f===void 0?null:f,g=t.titleId,y=g===void 0?null:g,v=t.classes,x=v===void 0?[]:v,_=t.attributes,S=_===void 0?{}:_,w=t.styles,k=w===void 0?{}:w;if(e){var P=e.prefix,j=e.iconName,A=e.icon;return Bv(he({type:"icon"},e),function(){return Dl("beforeDOMElementCreation",{iconDefinition:e,params:t}),ye.autoA11y&&(m?S["aria-labelledby"]="".concat(ye.replacementClass,"-title-").concat(y||Rf()):(S["aria-hidden"]="true",S.focusable="false")),K1({icons:{main:Bx(A),mask:l?Bx(l.icon):{found:!1,width:null,height:null,icon:{}}},prefix:P,iconName:j,transform:he(he({},us),i),symbol:a,title:m,maskId:h,titleId:y,extra:{attributes:S,styles:k,classes:x}})})}},Rle={mixout:function(){return{icon:Ale(jle)}},hooks:function(){return{mutationObserverCallbacks:function(t){return t.treeCallback=gT,t.nodeCallback=Ole,t}}}
878,provides:function(e){e.i2svg=function(t){var r=t.node,i=r===void 0?jt:r,s=t.callback,a=s===void 0?function(){}:s;return gT(i,a)},e.generateSvgReplacementMutation=function(t,r){var i=r.iconName,s=r.title,a=r.titleId,o=r.prefix,l=r.transform,u=r.symbol,h=r.mask,f=r.maskId,m=r.extra;return new Promise(function(g,y){Promise.all([$x(i,o),h.iconName?$x(h.iconName,h.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(v){var x=$1(v,2),_=x[0],S=x[1];g([t,K1({icons:{main:_,mask:S},prefix:o,iconName:i,transform:l,symbol:u,maskId:f,title:s,titleId:a,extra:m,watchable:!0})])}).catch(y)})},e.generateAbstractIcon=function(t){var r=t.children,i=t.attributes,s=t.main,a=t.transform,o=t.styles,l=Nv(o);l.length>0&&(i.style=l);var u;return U1(a)&&(u=pa("generateAbstractTransformGrouping",{main:s,transform:a,containerWidth:s.width,iconWidth:s.width})),r.push(u||s.icon),{children:r,attributes:i}}}},Ile={mixout:function(){return{layer:function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.classes,s=i===void 0?[]:i;return Bv({type:"layer"},function(){Dl("beforeDOMElementCreation",{assembler:t,params:r});var a=[];return t(function(o){Array.isArray(o)?o.map(function(l){a=a.concat(l.abstract)}):a=a.concat(o.abstract)}),[{tag:"span",attributes:{class:["".concat(ye.cssPrefix,"-layers")].concat(th(s)).join(" ")},children:a}]})}}}},Nle={mixout:function(){return{counter:function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.title,s=i===void 0?null:i,a=r.classes,o=a===void 0?[]:a,l=r.attributes,u=l===void 0?{}:l,h=r.styles,f=h===void 0?{}:h;return Bv({type:"counter",content:t},function(){return Dl("beforeDOMElementCreation",{content:t,params:r}),gle({content:t.toString(),title:s,extra:{attributes:u,styles:f,classes:["".concat(ye.cssPrefix,"-layers-counter")].concat(th(o))}})})}}}},Fle={mixout:function(){return{text:function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.transform,s=i===void 0?us:i,a=r.title,o=a===void 0?null:a,l=r.classes,u=l===void 0?[]:l,h=r.attributes,f=h===void 0?{}:h,m=r.styles,g=m===void 0?{}:m;return Bv({type:"text",content:t},function(){return Dl("beforeDOMElementCreation",{content:t,params:r}),uT({content:t,transform:he(he({},us),s),title:o,extra:{attributes:f,styles:g,classes:["".concat(ye.cssPrefix,"-layers-text")].concat(th(u))}})})}}},provides:function(e){e.generateLayersText=function(t,r){var i=r.title,s=r.transform,a=r.extra,o=null,l=null;if(LI){var u=parseInt(getComputedStyle(t).fontSize,10),h=t.getBoundingClientRect();o=h.width/u,l=h.height/u}return ye.autoA11y&&!i&&(a.attributes["aria-hidden"]="true"),Promise.resolve([t,uT({content:t.innerHTML,width:o,height:l,transform:s,title:i,extra:a,watchable:!0})])}}},Lle=new RegExp('"',"ug"),mT=[1105920,1112319];function Ble(n){var e=n.replace(Lle,""),t=Zoe(e,0),r=t>=mT[0]&&t<=mT[1],i=e.length===2?e[0]===e[1]:!1;return{value:Ix(i?e[0]:e),isSecondary:r||i}}function vT(n,e){var t="".concat(Coe).concat(e.replace(":","-"));return new Promise(function(r,i){if(n.getAttribute(t)!==null)return r();var s=Pc(n.children),a=s.filter(function(A){return A.getAttribute(Rx)===e})[0],o=fo.getComputedStyle(n,e),l=o.getPropertyValue("font-family").match(Aoe),u=o.getPropertyValue("font-weight"),h=o.getPropertyValue("content");if(a&&!l)return n.removeChild(a),r();if(l&&h!=="none"&&h!==""){var f=o.getPropertyValue("content"),m=~["Sharp"].indexOf(l[2])?Xt:Tt,g=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(l[2])?Of[m][l[2].toLowerCase()]:joe[m][u],y=Ble(f),v=y.value,x=y.isSecondary,_=l[0].startsWith("FontAwesome"),S=X1(g,v),w=S;if(_){var k=sle(v);k.iconName&&k.prefix&&(S=k.iconName,g=k.prefix)}if(S&&!x&&(!a||a.getAttribute(Y1)!==g||a.getAttribute(H1)!==w)){n.setAttribute(t,w),a&&n.removeChild(a);var P=Mle(),j=P.extra;j.attributes[Rx]=e,$x(S,g).then(function(A){var M=K1(he(he({},P),{},{icons:{main:A,mask:q1()},prefix:g,iconName:w,extra:j,watchable:!0})),L=jt.createElementNS("http://www.w3.org/2000/svg","svg");e==="::before"?n.insertBefore(L,n.firstChild):n.appendChild(L),L.outerHTML=M.map(function(I){return rh(I)}).join(` 879`),n.removeAttribute(t),r()}).catch(i)}else r()}else r()})}function $le(n){return Promise.all([vT(n,"::before"),vT(n,"::after")])}function Vle(n){return n.parentNode!==document.head&&!~Moe.indexOf(n.tagName.toUpperCase())&&!n.getAttribute(Rx)&&(!n.parentNode||n.parentNode.tagName!=="svg")}function bT(n){if(_a)return new Promise(function(e,t){var r=Pc(n.querySelectorAll("*")).filter(Vle).map($le),i=Q1.begin("searchPseudoElements");sN(),Promise.all(r).then(function(){i(),Yx(),e()}).catch(function(){i(),Yx(),t()})})}var Yle={hooks:function(){return{mutationObserverCallbacks:function(t){return t.pseudoElementsCallback=bT,t}}},provides:function(e){e.pseudoElements2svg=function(t){var r=t.no
879de,i=r===void 0?jt:r;ye.searchPseudoElements&&bT(i)}}},yT=!1,Hle={mixout:function(){return{dom:{unwatch:function(){sN(),yT=!0}}}},hooks:function(){return{bootstrap:function(){hT(Fx("mutationObserverCallbacks",{}))},noAuto:function(){kle()},watch:function(t){var r=t.observeMutationsRoot;yT?Yx():hT(Fx("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},_T=function(e){var t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e.toLowerCase().split(" ").reduce(function(r,i){var s=i.toLowerCase().split("-"),a=s[0],o=s.slice(1).join("-");if(a&&o==="h")return r.flipX=!0,r;if(a&&o==="v")return r.flipY=!0,r;if(o=parseFloat(o),isNaN(o))return r;switch(a){case"grow":r.size=r.size+o;break;case"shrink":r.size=r.size-o;break;case"left":r.x=r.x-o;break;case"right":r.x=r.x+o;break;case"up":r.y=r.y-o;break;case"down":r.y=r.y+o;break;case"rotate":r.rotate=r.rotate+o;break}return r},t)},zle={mixout:function(){return{parse:{transform:function(t){return _T(t)}}}},hooks:function(){return{parseNodeAttributes:function(t,r){var i=r.getAttribute("data-fa-transform");return i&&(t.transform=_T(i)),t}}},provides:function(e){e.generateAbstractTransformGrouping=function(t){var r=t.main,i=t.transform,s=t.containerWidth,a=t.iconWidth,o={transform:"translate(".concat(s/2," 256)")},l="translate(".concat(i.x*32,", ").concat(i.y*32,") "),u="scale(".concat(i.size/16*(i.flipX?-1:1),", ").concat(i.size/16*(i.flipY?-1:1),") "),h="rotate(".concat(i.rotate," 0 0)"),f={transform:"".concat(l," ").concat(u," ").concat(h)},m={transform:"translate(".concat(a/2*-1," -256)")},g={outer:o,inner:f,path:m};return{tag:"g",attributes:he({},g.outer),children:[{tag:"g",attributes:he({},g.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:he(he({},r.icon.attributes),g.path)}]}]}}}},I_={x:0,y:0,width:"100%",height:"100%"};function xT(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return n.attributes&&(n.attributes.fill||e)&&(n.attributes.fill="black"),n}function Wle(n){return n.tag==="g"?n.children:[n]}var Ule={hooks:function(){return{parseNodeAttributes:function(t,r){var i=r.getAttribute("data-fa-mask"),s=i?Lv(i.split(" ").map(function(a){return a.trim()})):q1();return s.prefix||(s.prefix=ho()),t.mask=s,t.maskId=r.getAttribute("data-fa-mask-id"),t}}},provides:function(e){e.generateAbstractMask=function(t){var r=t.children,i=t.attributes,s=t.main,a=t.mask,o=t.maskId,l=t.transform,u=s.width,h=s.icon,f=a.width,m=a.icon,g=zoe({transform:l,containerWidth:f,iconWidth:u}),y={tag:"rect",attributes:he(he({},I_),{},{fill:"white"})},v=h.children?{children:h.children.map(xT)}:{},x={tag:"g",attributes:he({},g.inner),children:[xT(he({tag:h.tag,attributes:he(he({},h.attributes),g.path)},v))]},_={tag:"g",attributes:he({},g.outer),children:[x]},S="mask-".concat(o||Rf()),w="clip-".concat(o||Rf()),k={tag:"mask",attributes:he(he({},I_),{},{id:S,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[y,_]},P={tag:"defs",children:[{tag:"clipPath",attributes:{id:w},children:Wle(m)},k]};return r.push(P,{tag:"rect",attributes:he({fill:"currentColor","clip-path":"url(#".concat(w,")"),mask:"url(#".concat(S,")")},I_)}),{children:r,attributes:i}}}},Gle={provides:function(e){var t=!1;fo.matchMedia&&(t=fo.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){var r=[],i={fill:"currentColor"},s={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:he(he({},i),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2
879-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var a=he(he({},s),{},{attributeName:"opacity"}),o={tag:"circle",attributes:he(he({},i),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||o.children.push({tag:"animate",attributes:he(he({},s),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:he(he({},a),{},{values:"1;0;1;1;0;1;"})}),r.push(o),r.push({tag:"path",attributes:he(he({},i),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:he(he({},a),{},{values:"1;0;0;0;0;1;"})}]}),t||r.push({tag:"path",attributes:he(he({},i),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:he(he({},a),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},Xle={hooks:function(){return{parseNodeAttributes:function(t,r){var i=r.getAttribute("data-fa-symbol"),s=i===null?!1:i===""?!0:i;return t.symbol=s,t}}}},qle=[Goe,Rle,Ile,Nle,Fle,Yle,Hle,zle,Ule,Gle,Xle];lle(qle,{mixoutsTo:Xr});Xr.noAuto;Xr.config;var Kle=Xr.library;Xr.dom;Xr.parse;Xr.findIconDefinition;Xr.toHtml;Xr.icon;Xr.layer;Xr.text;Xr.counter;var Qle={prefix:"fal",iconName:"arrow-trend-up",icon:[576,512,[],"e098","M368 112c0-8.8 7.2-16 16-16H560c8.8 0 16 7.2 16 16V288c0 8.8-7.2 16-16 16s-16-7.2-16-16V150.6L331.3 363.3c-6.2 6.2-16.4 6.2-22.6 0L192 246.6 27.3 411.3c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l176-176c6.2-6.2 16.4-6.2 22.6 0L320 329.4 521.4 128H384c-8.8 0-16-7.2-16-16z"]},Zle={prefix:"fal",iconName:"arrow-trend-down",icon:[576,512,[],"e097","M368 400c0 8.8 7.2 16 16 16H560c8.8 0 16-7.2 16-16V224c0-8.8-7.2-16-16-16s-16 7.2-16 16V361.4L331.3 148.7c-6.2-6.2-16.4-6.2-22.6 0L192 265.4 27.3 100.7c-6.2-6.2-16.4-6.2-22.6 0s-6.2 16.4 0 22.6l176 176c6.2 6.2 16.4 6.2 22.6 0L320 182.6 521.4 384H384c-8.8 0-16 7.2-16 16z"]};Kle.add(Qle,Zle);window.SENTRY_DSN&&(L9({dsn:window.SENTRY_DSN,environment:window.SENTRY_ENVIRONMENT||"production"}),window.SENTRY_USER&&S6(window.SENTRY_USER));document.querySelectorAll(".dfo-widget--asset-classes").forEach(n=>{je.createRoot(n).render(d.jsx(H.StrictMode,{children:d.jsx(Ie,{fallback:d.jsx(Ne,{}),children:d.jsx(sX,{leid:kt(n),preset:Rt(n)})})}))});document.querySelectorAll(".dfo-widget--asset-positions").forEach(n=>{je.createRoot(n).render(d.jsx(H.StrictMode,{children:d.jsx(Ie,{fallback:d.jsx(Ne,{}),children:d.jsx(cX,{leid:kt(n),preset:Rt(n)})})}))});document.querySelectorAll(".dfo-widget--depot").forEach(n=>{je.createRoot(n).render(d.jsx(H.StrictMode,{children:d.jsx(Ie,{fallback:d.jsx(Ne,{}),children:d.jsx(_X,{leid:kt(n),preset:Rt(n),weighting:Gf(),widgetKey:$j(n),icon:Vj(n),heading:Yj(n)})})}))});document.querySelectorAll(".dfo-widget--documents-mandate").forEach(n=>{je.createRoot(n).render(d.jsx(H.StrictMode,{children:d.jsx(Ie,{fallback:d.jsx(Ne,{}),children:d.jsx(TX,{leid:kt(n),preset:Rt(n)})})}))});typeof window.dfo<"u"&&typeof window.dfo.documents<"u"&&document.querySelectorAll(".dfo-widget--documents-client").forEach(n=>{je.createRoot(n).render(d.jsx(H.StrictMode,{children:d.jsx(Ie,{fallback:d.jsx(Ne,{}),children:d.jsx(RX,{leid:kt(n),documents:window.dfo.documents})})}))});document.querySelectorAll(".dfo-widget--drawdown").forEach(n=>{je.createRoot(n).render(d.jsx(H.StrictMode,{children:d.jsx(Ie,{fallback:d.jsx(Ne,{}),children:d.jsx($X,{leid:kt(n),preset:Rt(n),showBenchmark:Uf()})})}))});document.querySelectorAll(".dfo-widget--nav").forEach(n=>
879{je.createRoot(n).render(d.jsx(H.StrictMode,{children:d.jsx(Ie,{fallback:d.jsx(Ne,{}),children:d.jsx(fX,{leid:kt(n),preset:Rt(n)})})}))});document.querySelectorAll(".dfo-widget--nav-ot").forEach(n=>{je.createRoot(n).render(d.jsx(H.StrictMode,{children:d.jsx(Ie,{fallback:d.jsx(Ne,{}),children:d.jsx(UX,{leid:kt(n),preset:Rt(n)})})}))});document.querySelectorAll(".dfo-widget--performance").forEach(n=>{je.createRoot(n).render(d.jsx(H.StrictMode,{children:d.jsx(Ie,{fallback:d.jsx(Ne,{}),children:d.jsx(KX,{leid:kt(n),preset:Rt(n),weighting:Gf(),showBenchmark:Uf()})})}))});document.querySelectorAll(".dfo-widget--performance-overview").forEach(n=>{je.createRoot(n).render(d.jsx(H.StrictMode,{children:d.jsx(Ie,{fallback:d.jsx(Ne,{}),children:d.jsx(ZX,{leid:kt(n),preset:Rt(n)})})}))});document.querySelectorAll(".dfo-widget--performance-ot").forEach(n=>{je.createRoot(n).render(d.jsx(H.StrictMode,{children:d.jsx(Ie,{fallback:d.jsx(Ne,{}),children:d.jsx(rq,{leid:kt(n),preset:Rt(n),weighting:Gf(),showBenchmark:Uf()})})}))});document.querySelectorAll(".dfo-widget--position-title").forEach(n=>{je.createRoot(n).render(d.jsx(H.StrictMode,{children:d.jsx(Ie,{fallback:d.jsx(Ne,{}),children:d.jsx(fte,{leid:kt(n),preset:Rt(n)})})}))});document.querySelectorAll(".dfo-widget--position-nav").forEach(n=>{je.createRoot(n).render(d.jsx(H.StrictMode,{children:d.jsx(Ie,{fallback:d.jsx(Ne,{}),children:d.jsx(tte,{leid:kt(n),preset:Rt(n)})})}))});document.querySelectorAll(".dfo-widget--position-fund").forEach(n=>{je.createRoot(n).render(d.jsx(H.StrictMode,{children:d.jsx(Ie,{fallback:d.jsx(Ne,{}),children:d.jsx(Vee,{leid:kt(n),preset:Rt(n)})})}))});document.querySelectorAll(".dfo-widget--position-overview").forEach(n=>{je.createRoot(n).render(d.jsx(H.StrictMode,{children:d.jsx(Ie,{fallback:d.jsx(Ne,{}),children:d.jsx(ate,{leid:kt(n),preset:Rt(n),weighting:Gf()})})}))});document.querySelectorAll(".dfo-widget--position-pot").forEach(n=>{je.createRoot(n).render(d.jsx(H.StrictMode,{children:d.jsx(Ie,{fallback:d.jsx(Ne,{}),children:d.jsx(dte,{leid:kt(n),preset:Rt(n)})})}))});document.querySelectorAll(".dfo-widget--position-vot").forEach(n=>{je.createRoot(n).render(d.jsx(H.StrictMode,{children:d.jsx(Ie,{fallback:d.jsx(Ne,{}),children:d.jsx(pte,{leid:kt(n),preset:Rt(n)})})}))});document.querySelectorAll(".dfo-widget--position-waterfall").forEach(n=>{je.createRoot(n).render(d.jsx(H.StrictMode,{children:d.jsx(Ie,{fallback:d.jsx(Ne,{}),children:d.jsx(mte,{leid:kt(n),preset:Rt(n)})})}))});document.querySelectorAll(".dfo-widget--position-kpi").forEach(n=>{je.createRoot(n).render(d.jsx(H.StrictMode,{children:d.jsx(Ie,{fallback:d.jsx(Ne,{}),children:d.jsx(Zee,{leid:kt(n),preset:Rt(n),weighting:Gf(),widgetKey:$j(n),icon:Vj(n),heading:Yj(n)})})}))});document.querySelectorAll(".dfo-widget--reports").forEach(n=>{je.createRoot(n).render(d.jsx(H.StrictMode,{children:d.jsx(Ie,{fallback:d.jsx(Ne,{}),children:d.jsx(aq,{leid:kt(n),preset:Rt(n)})})}))});document.querySelectorAll(".dfo-widget--new-report").forEach(n=>{je.createRoot(n).render(d.jsx(H.StrictMode,{children:d.jsx(Ie,{fallback:d.jsx(Ne,{}),children:d.jsx(lq,{leid:kt(n),preset:Rt(n)})})}))});document.querySelectorAll(".dfo-widget--sharpe-ratio").forEach(n=>{je.createRoot(n).render(d.jsx(H.StrictMode,{children:d.jsx(Ie,{fallback:d.jsx(Ne,{}),children:d.jsx(fq,{leid:kt(n),preset:Rt(n),showBenchmark:Uf()})})}))});document.querySelectorAll(".dfo-widget--transactions").forEach(n=>{je.createRoot(n).render(d.jsx(H.StrictMode,{children:d.jsx(Ie,{fallback:d.jsx(Ne,{}),children:d.jsx(bq,{leid:kt(n),preset:Rt(n)})})}))});document.querySelectorAll(".dfo-widget--volatility").forEach(n=>{je.createRoot(n).render(d.jsx(H.StrictMode,{children:d.jsx(Ie,{fallback:d.jsx(Ne,{}),children:d.jsx(wq,{leid:kt(n),preset:Rt(n),showBenchmark:Uf()})})}))});document.querySelectorAll(".dfo-widget--waterfall").forEach(n=>{je.createRoot(n).render(d.jsx(H.StrictMode,{children:d.jsx(Ie,{fallback:d.jsx(Ne,{}),children:d.jsx(Dq,{leid:kt(n),preset:Rt(n)})})}))});if(typeof window.dfoDataLayer<"u"&&window.dfoDataLayer!==null){let n=null;window.dfoDataLayer.hasOwnProperty("addresses")&&(n=document.getElementById("dfo-widget--addresses"),n&&je.createRoot(n).render(d.jsx(H.StrictMode,{children:d.jsx(Ie,{fallback:d.jsx(Ne,{}),children:d.jsx(kte,{initialData:window.dfoDataLayer.addresses})})}))),window.dfoDataLayer.hasOwnProperty("nationalities")&&(n=document.getElementById("dfo-widget--nationalities"),n&&je.createRoot(n).render(d.jsx(H.StrictMode,{children:d.jsx(Ie,{fallback:d.jsx(Ne,{}),children:d.jsx(wse,{options:window.dfoDataLayer.nationalities.options,selected:window.dfoDataLayer.nationalities.selected,help:window.dfoDataLayer.nationalities.help})})}))),window.dfoDataLayer.hasOwnProperty("phones")&&(n=document.getElementById("dfo-widget--phones"),n&&je.createRoot(n).render(d.jsx(H.StrictMode,{children:d.jsx(Ie,{fallback:d.jsx(Ne,{}),children:d.jsx(Tse,{initialData:window.dfoDataLayer.phones.data,initialError:window.dfoDataLayer.phones.error,help:window.dfoDataLayer.phones.help,countryCodes:window.dfoDataLayer.phones.countryCodes})})}))),window.dfoDataLayer.hasOwnProperty("job")&&(n=document.getElementById("dfo-widget--job"),n&&je.createRoot(n).render(d.jsx(H.StrictMode,{children:d.jsx(Ie,{fallback:d.jsx(Ne,{}),children:d.jsx(Bse,{data:window.dfoDataLayer.job})})}))),window.dfoDataLayer.hasOwnProperty("taxes")&&(n=document.getElementById("dfo-widget--taxes"),n&&je.createRoot(n).render(d.jsx(H.StrictMode,{children:d.jsx(Ie,{fallback:d.jsx(Ne,{}),children:d.jsx(Jse,{data:window.dfoDataLayer.taxes})})}))),window.dfoDataLayer.hasOwnProperty("assets")&&(n=document.getElementById("dfo-widget--assets"),n&&je.createRoot(n).render(d.jsx(H.StrictMode,{children:d.jsx(Ie,{fallback:d.jsx(Ne,{}),children:d.jsx(C_,{data:window.dfoDataLayer.assets})})}))),window.dfoDataLayer.hasOwnProperty("assets2")&&(n=document.getElementById("dfo-widget--assets2"),n&&je.createRoot(n).render(d.jsx(H.StrictMode,{children:d.jsx(Ie,{fallback:d.jsx(Ne,{}),children:d.jsx(C_,{data:window.dfoDataLayer.assets2})})}))),window.dfoDataLayer.hasOwnProperty("assets0")&&(n=document.getElementById("dfo-widget--assets0"),n&&je.createRoot(n).render(d.jsx(H.StrictMode,{children:d.jsx(Ie,{fallback:d.jsx(Ne,{}),children:d.jsx(C_,{data:window.dfoDataLayer.assets0})})}))),window.dfoDataLayer.hasOwnProperty("experiences")&&(n=document.getElementById("dfo-onboarding__experiences"),n&&je.createRoot(n).render(d.jsx(H.StrictMode,{children:d.jsx(Ie,{fallback:d.jsx(Ne,{}),children:d.jsx(fae,{data:window.dfoDataLayer.experiences})})}))),window.dfoDataLayer.hasOwnProperty("riskProfile")&&(n=document.getElementById("dfo-onboarding__risk-profile"),n&&je.createRoot(n).render(d.jsx(H.StrictMode,{children:d.jsx(Ie,{fallback:d.jsx(Ne,{}),children:d.jsx(Qae,{initialValue:window.dfoDataLayer.riskProfile,help:window.dfoDataLayer.riskProfileHelp})})}))),window.dfoDataLayer.hasOwnProperty("income")&&(n=document.getElementById("dfo-widget--income"),n&&je.createRoot(n).render(d.jsx(H.StrictMode,{children:d.jsx(Ie,{fallback:d.jsx(Ne,{}),children:d.jsx(E_,{initialData:window.dfoDataLayer.income})})}))),window.dfoDataLayer.hasOwnProperty("income2")&&(n=document.getElementById("dfo-widget--income2"),n&&je.createRoot(n).render(d.jsx(H.StrictMode,{children:d.jsx(Ie,{fallback:d.jsx(Ne,{}),children:d.jsx(E_,{initialData:window.dfoDataLayer.income2})})}))),window.dfoDataLayer.hasOwnProperty("income0")&&(n=document.getElementById("dfo-widget--income0"),n&&je.createRoot(n).render(d.jsx(H.StrictMode,{children:d.jsx(Ie,{fallback:d.jsx(Ne,{}),children:d.jsx(E_,{initialData:window.dfoDataLayer.income0})})}))),window.dfoDataLayer.hasOwnProperty("payouts")&&(n=document.getElementById("dfo-onboarding__payouts"),n&&je.createRoot(n).render(d.jsx(H.StrictMode,{children:d.jsx(Ie,{fallback:d.jsx(Ne,{}),children:d.jsx(jae,{data:window.dfoDataLayer.payouts})})}))),window.dfoDataLayer.hasOwnProperty("reference_accounts")&&(n=document.getElementById("dfo-widget--reference-accounts"),n&&je.createRoot(n).render(d.jsx(H.StrictMode,{children:d.jsx(Ie,{fallback:d.jsx(Ne,{}),children:d.jsx(Uae,{data:window.dfoDataLayer.reference_accounts,help:window.dfoDataLayer.reference_accounts_help})})}))),window.dfoDataLayer.hasOwnProperty("sustainability")&&(n=document.getElementById("dfo-widget--sustainability"),n&&je.createRoot(n).render(d.jsx(H.StrictMode,{children:d.jsx(Ie,{fallback:d.jsx(Ne,{}),children:d.jsx(roe,{data:window.dfoDataLayer.sustainability})})}))),window.dfoDataLayer.hasOwnProperty("ubo")&&(n=document.getElementById("dfo-widget--ubo"),n&&je.createRoot(n).render(d.jsx(H.StrictMode,{children:d.jsx(Ie,{fallback:d.jsx(Ne,{}),children:d.jsx(poe,{data:window.dfoDataLayer.ubo}
879)})})))}document.querySelectorAll(".dfo-widget--verify").forEach(n=>{je.createRoot(n).render(d.jsx(H.StrictMode,{children:d.jsx(Ie,{fallback:d.jsx(Ne,{}),children:d.jsx(sae,{defaultMobile:Hj(n)})})}))});document.querySelectorAll(".dfo-widget--validate").forEach(n=>{console.log("Vwiud"),je.createRoot(n).render(d.jsx(H.StrictMode,{children:d.jsx(Ie,{fallback:d.jsx(Ne,{}),children:d.jsx(moe,{mandate:n.dataset.mandate})})}))});document.querySelectorAll(".dfo-widget--onboarding-signature").forEach(n=>{je.createRoot(n).render(d.jsx(H.StrictMode,{children:d.jsx(Ie,{fallback:d.jsx(Ne,{}),children:d.jsx(Aae,{defaultMobile:Hj(n),next:z9(n),bank:n.dataset.bank||""})})}))});document.querySelectorAll(".dfo-widget--date-range-picker").forEach(n=>{var r,i,s,a;const e=((i=(r=window.dfo)==null?void 0:r.settings)==null?void 0:i.start)||"",t=((a=(s=window.dfo)==null?void 0:s.settings)==null?void 0:a.end)||"";je.createRoot(n).render(d.jsx(H.StrictMode,{children:d.jsx(Ie,{fallback:d.jsx(Ne,{}),children:d.jsx(Fee,{initialStart:e,initialEnd:t})})}))});document.querySelectorAll(".dfo-widget--fund-position").forEach(n=>{je.createRoot(n).render(d.jsx(H.StrictMode,{children:d.jsx(Ie,{fallback:d.jsx(Ne,{}),children:d.jsx(_te,{leid:kt(n),preset:Rt(n),isin:W9(n)})})}))});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.