@local-logic/sdks-app 1.7.2 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{index-legacy.935e7346.js → index-legacy.5b5c89be.js} +1 -1
- package/dist/assets/{index-legacy.3a8c6aa8.js → index-legacy.6f7be327.js} +1 -1
- package/dist/assets/index-legacy.873d2f5f.js +1 -0
- package/dist/assets/{index-legacy.93d69255.js → index-legacy.8b48df8f.js} +1 -1
- package/dist/assets/index-legacy.a2e5122a.js +23 -0
- package/dist/assets/{index-legacy.46f64d17.js → index-legacy.b4a1ea09.js} +1 -1
- package/dist/assets/index-legacy.e333988e.js +106 -0
- package/dist/assets/index.1b34a15d.js +35 -0
- package/dist/assets/{index.71eb35ea.js → index.24661964.js} +17 -17
- package/dist/assets/index.3039bacf.js +161 -0
- package/dist/assets/index.3eec99ca.js +1318 -0
- package/dist/assets/index.77b51154.js +1 -0
- package/dist/assets/index.aae000f4.js +1 -0
- package/dist/assets/{index.10935833.js → index.d89a7cee.js} +1 -1
- package/dist/assets/polyfills-legacy.db2bc606.js +1 -0
- package/dist/assets/{useIsMobile-legacy.a1dad04e.js → useIsMobile-legacy.7fb572d8.js} +1 -1
- package/dist/assets/{useIsMobile.5dc7840d.js → useIsMobile.b5e8d9ad.js} +1 -1
- package/dist/assets/{useQuery-legacy.6ce02414.js → useQuery-legacy.7e93cb2c.js} +1 -1
- package/dist/assets/useQuery.19a6ca1c.js +9 -0
- package/dist/index.html +3 -3
- package/dist/types/context/languageProvider/data-explorer/locales/en/index.d.ts.map +1 -1
- package/dist/types/context/languageProvider/data-explorer/locales/en/index.js +2 -0
- package/dist/types/context/languageProvider/data-explorer/locales/en/index.js.map +1 -1
- package/dist/types/context/languageProvider/data-explorer/locales/fr/index.d.ts.map +1 -1
- package/dist/types/context/languageProvider/data-explorer/locales/fr/index.js +2 -0
- package/dist/types/context/languageProvider/data-explorer/locales/fr/index.js.map +1 -1
- package/dist/types/context/languageProvider/data-explorer/types.d.ts +2 -2
- package/dist/types/context/languageProvider/data-explorer/types.d.ts.map +1 -1
- package/dist/types/context/languageProvider/index.d.ts +2 -2
- package/dist/types/context/languageProvider/index.d.ts.map +1 -1
- package/dist/types/sdks/DataExplorer/components/Table/index.d.ts +4 -0
- package/dist/types/sdks/DataExplorer/components/Table/index.d.ts.map +1 -0
- package/dist/types/sdks/DataExplorer/components/Table/index.js +65 -0
- package/dist/types/sdks/DataExplorer/components/Table/index.js.map +1 -0
- package/dist/types/sdks/DataExplorer/components/Table/styles.d.ts +6 -0
- package/dist/types/sdks/DataExplorer/components/Table/styles.d.ts.map +1 -0
- package/dist/types/sdks/DataExplorer/components/Table/styles.js +27 -0
- package/dist/types/sdks/DataExplorer/components/Table/styles.js.map +1 -0
- package/dist/types/sdks/DataExplorer/context.d.ts +3 -0
- package/dist/types/sdks/DataExplorer/context.d.ts.map +1 -1
- package/dist/types/sdks/DataExplorer/context.js +3 -0
- package/dist/types/sdks/DataExplorer/context.js.map +1 -1
- package/dist/types/sdks/DataExplorer/index.d.ts.map +1 -1
- package/dist/types/sdks/DataExplorer/index.js +8 -0
- package/dist/types/sdks/DataExplorer/index.js.map +1 -1
- package/dist/types/sdks/Demographics/components/Content/Household/index.d.ts.map +1 -1
- package/dist/types/sdks/Demographics/components/Content/Household/index.js +2 -1
- package/dist/types/sdks/Demographics/components/Content/Household/index.js.map +1 -1
- package/dist/types/sdks/Demographics/components/Content/Household/styles.d.ts +3 -0
- package/dist/types/sdks/Demographics/components/Content/Household/styles.d.ts.map +1 -0
- package/dist/types/sdks/Demographics/components/Content/Household/styles.js +19 -0
- package/dist/types/sdks/Demographics/components/Content/Household/styles.js.map +1 -0
- package/dist/types/sdks/Demographics/components/Content/Housing/index.d.ts.map +1 -1
- package/dist/types/sdks/Demographics/components/Content/Housing/index.js +10 -7
- package/dist/types/sdks/Demographics/components/Content/Housing/index.js.map +1 -1
- package/dist/types/sdks/Demographics/components/Content/Housing/styles.d.ts +3 -0
- package/dist/types/sdks/Demographics/components/Content/Housing/styles.d.ts.map +1 -0
- package/dist/types/sdks/Demographics/components/Content/Housing/styles.js +12 -0
- package/dist/types/sdks/Demographics/components/Content/Housing/styles.js.map +1 -0
- package/dist/types/sdks/Demographics/components/Content/Languages/index.d.ts +3 -0
- package/dist/types/sdks/Demographics/components/Content/Languages/index.d.ts.map +1 -0
- package/dist/types/sdks/Demographics/components/Content/Languages/index.js +14 -0
- package/dist/types/sdks/Demographics/components/Content/Languages/index.js.map +1 -0
- package/dist/types/sdks/Demographics/components/Content/index.d.ts.map +1 -1
- package/dist/types/sdks/Demographics/components/Content/index.js +3 -0
- package/dist/types/sdks/Demographics/components/Content/index.js.map +1 -1
- package/dist/types/sdks/Demographics/components/Content/styles.js +1 -1
- package/dist/types/sdks/Demographics/components/Content/styles.js.map +1 -1
- package/dist/types/sdks/Demographics/context.d.ts +3 -0
- package/dist/types/sdks/Demographics/context.d.ts.map +1 -1
- package/dist/types/sdks/Demographics/context.js.map +1 -1
- package/dist/types/sdks/Demographics/styles.d.ts.map +1 -1
- package/dist/types/sdks/Demographics/styles.js +0 -1
- package/dist/types/sdks/Demographics/styles.js.map +1 -1
- package/package.json +4 -3
- package/dist/assets/index-legacy.128bbb90.js +0 -106
- package/dist/assets/index-legacy.60df4146.js +0 -1
- package/dist/assets/index-legacy.7c9f6b15.js +0 -1
- package/dist/assets/index.1df47f40.js +0 -28
- package/dist/assets/index.97d3a920.js +0 -1374
- package/dist/assets/index.d464e7cf.js +0 -1
- package/dist/assets/index.e63e2d64.js +0 -1
- package/dist/assets/index.ed99fd65.js +0 -120
- package/dist/assets/polyfills-legacy.147ba02d.js +0 -1
- package/dist/assets/useQuery.7c643982.js +0 -9
|
@@ -0,0 +1,1318 @@
|
|
|
1
|
+
function TEt(){import("data:text/javascript,")}function Qz(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerpolicy&&(o.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?o.credentials="include":i.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var MEt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function hO(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var v={exports:{}},gt={};/**
|
|
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 Eh=Symbol.for("react.element"),Kz=Symbol.for("react.portal"),Zz=Symbol.for("react.fragment"),Jz=Symbol.for("react.strict_mode"),tB=Symbol.for("react.profiler"),eB=Symbol.for("react.provider"),nB=Symbol.for("react.context"),rB=Symbol.for("react.forward_ref"),iB=Symbol.for("react.suspense"),oB=Symbol.for("react.memo"),sB=Symbol.for("react.lazy"),GS=Symbol.iterator;function aB(e){return e===null||typeof e!="object"?null:(e=GS&&e[GS]||e["@@iterator"],typeof e=="function"?e:null)}var fO={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},pO=Object.assign,gO={};function hc(e,t,n){this.props=e,this.context=t,this.refs=gO,this.updater=n||fO}hc.prototype.isReactComponent={};hc.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};hc.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function mO(){}mO.prototype=hc.prototype;function X_(e,t,n){this.props=e,this.context=t,this.refs=gO,this.updater=n||fO}var Q_=X_.prototype=new mO;Q_.constructor=X_;pO(Q_,hc.prototype);Q_.isPureReactComponent=!0;var qS=Array.isArray,vO=Object.prototype.hasOwnProperty,K_={current:null},yO={key:!0,ref:!0,__self:!0,__source:!0};function xO(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)vO.call(t,r)&&!yO.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+2];i.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:Eh,type:e,key:o,ref:s,props:i,_owner:K_.current}}function lB(e,t){return{$$typeof:Eh,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Z_(e){return typeof e=="object"&&e!==null&&e.$$typeof===Eh}function cB(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var XS=/\/+/g;function Zv(e,t){return typeof e=="object"&&e!==null&&e.key!=null?cB(""+e.key):t.toString(36)}function Bp(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case Eh:case Kz:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+Zv(s,0):r,qS(i)?(n="",e!=null&&(n=e.replace(XS,"$&/")+"/"),Bp(i,t,n,"",function(c){return c})):i!=null&&(Z_(i)&&(i=lB(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(XS,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",qS(e))for(var a=0;a<e.length;a++){o=e[a];var l=r+Zv(o,a);s+=Bp(o,t,n,l,i)}else if(l=aB(e),typeof l=="function")for(e=l.call(e),a=0;!(o=e.next()).done;)o=o.value,l=r+Zv(o,a++),s+=Bp(o,t,n,l,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function lf(e,t,n){if(e==null)return e;var r=[],i=0;return Bp(e,r,"","",function(o){return t.call(n,o,i++)}),r}function uB(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var _n={current:null},Vp={transition:null},dB={ReactCurrentDispatcher:_n,ReactCurrentBatchConfig:Vp,ReactCurrentOwner:K_};gt.Children={map:lf,forEach:function(e,t,n){lf(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return lf(e,function(){t++}),t},toArray:function(e){return lf(e,function(t){return t})||[]},only:function(e){if(!Z_(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};gt.Component=hc;gt.Fragment=Zz;gt.Profiler=tB;gt.PureComponent=X_;gt.StrictMode=Jz;gt.Suspense=iB;gt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=dB;gt.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=pO({},e.props),i=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=K_.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)vO.call(t,l)&&!yO.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var c=0;c<l;c++)a[c]=arguments[c+2];r.children=a}return{$$typeof:Eh,type:e.type,key:i,ref:o,props:r,_owner:s}};gt.createContext=function(e){return e={$$typeof:nB,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:eB,_context:e},e.Consumer=e};gt.createElement=xO;gt.createFactory=function(e){var t=xO.bind(null,e);return t.type=e,t};gt.createRef=function(){return{current:null}};gt.forwardRef=function(e){return{$$typeof:rB,render:e}};gt.isValidElement=Z_;gt.lazy=function(e){return{$$typeof:sB,_payload:{_status:-1,_result:e},_init:uB}};gt.memo=function(e,t){return{$$typeof:oB,type:e,compare:t===void 0?null:t}};gt.startTransition=function(e){var t=Vp.transition;Vp.transition={};try{e()}finally{Vp.transition=t}};gt.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};gt.useCallback=function(e,t){return _n.current.useCallback(e,t)};gt.useContext=function(e){return _n.current.useContext(e)};gt.useDebugValue=function(){};gt.useDeferredValue=function(e){return _n.current.useDeferredValue(e)};gt.useEffect=function(e,t){return _n.current.useEffect(e,t)};gt.useId=function(){return _n.current.useId()};gt.useImperativeHandle=function(e,t,n){return _n.current.useImperativeHandle(e,t,n)};gt.useInsertionEffect=function(e,t){return _n.current.useInsertionEffect(e,t)};gt.useLayoutEffect=function(e,t){return _n.current.useLayoutEffect(e,t)};gt.useMemo=function(e,t){return _n.current.useMemo(e,t)};gt.useReducer=function(e,t,n){return _n.current.useReducer(e,t,n)};gt.useRef=function(e){return _n.current.useRef(e)};gt.useState=function(e){return _n.current.useState(e)};gt.useSyncExternalStore=function(e,t,n){return _n.current.useSyncExternalStore(e,t,n)};gt.useTransition=function(){return _n.current.useTransition()};gt.version="18.2.0";(function(e){e.exports=gt})(v);const Z=hO(v.exports),J_=Qz({__proto__:null,default:Z},[v.exports]);var tx={},Vn={exports:{}},ir={},bO={exports:{}},_O={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* scheduler.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
|
+
*/(function(e){function t(F,W){var P=F.length;F.push(W);t:for(;0<P;){var G=P-1>>>1,U=F[G];if(0<i(U,W))F[G]=W,F[P]=U,P=G;else break t}}function n(F){return F.length===0?null:F[0]}function r(F){if(F.length===0)return null;var W=F[0],P=F.pop();if(P!==W){F[0]=P;t:for(var G=0,U=F.length,B=U>>>1;G<B;){var R=2*(G+1)-1,V=F[R],K=R+1,st=F[K];if(0>i(V,P))K<U&&0>i(st,V)?(F[G]=st,F[K]=P,G=K):(F[G]=V,F[R]=P,G=R);else if(K<U&&0>i(st,P))F[G]=st,F[K]=P,G=K;else break t}}return W}function i(F,W){var P=F.sortIndex-W.sortIndex;return P!==0?P:F.id-W.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],c=[],u=1,d=null,h=3,f=!1,p=!1,g=!1,y=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(F){for(var W=n(c);W!==null;){if(W.callback===null)r(c);else if(W.startTime<=F)r(c),W.sortIndex=W.expirationTime,t(l,W);else break;W=n(c)}}function _(F){if(g=!1,b(F),!p)if(n(l)!==null)p=!0,Y(w);else{var W=n(c);W!==null&&Q(_,W.startTime-F)}}function w(F,W){p=!1,g&&(g=!1,m(E),E=-1),f=!0;var P=h;try{for(b(W),d=n(l);d!==null&&(!(d.expirationTime>W)||F&&!T());){var G=d.callback;if(typeof G=="function"){d.callback=null,h=d.priorityLevel;var U=G(d.expirationTime<=W);W=e.unstable_now(),typeof U=="function"?d.callback=U:d===n(l)&&r(l),b(W)}else r(l);d=n(l)}if(d!==null)var B=!0;else{var R=n(c);R!==null&&Q(_,R.startTime-W),B=!1}return B}finally{d=null,h=P,f=!1}}var A=!1,S=null,E=-1,k=5,C=-1;function T(){return!(e.unstable_now()-C<k)}function $(){if(S!==null){var F=e.unstable_now();C=F;var W=!0;try{W=S(!0,F)}finally{W?I():(A=!1,S=null)}}else A=!1}var I;if(typeof x=="function")I=function(){x($)};else if(typeof MessageChannel<"u"){var N=new MessageChannel,D=N.port2;N.port1.onmessage=$,I=function(){D.postMessage(null)}}else I=function(){y($,0)};function Y(F){S=F,A||(A=!0,I())}function Q(F,W){E=y(function(){F(e.unstable_now())},W)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(F){F.callback=null},e.unstable_continueExecution=function(){p||f||(p=!0,Y(w))},e.unstable_forceFrameRate=function(F){0>F||125<F?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<F?Math.floor(1e3/F):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(F){switch(h){case 1:case 2:case 3:var W=3;break;default:W=h}var P=h;h=W;try{return F()}finally{h=P}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(F,W){switch(F){case 1:case 2:case 3:case 4:case 5:break;default:F=3}var P=h;h=F;try{return W()}finally{h=P}},e.unstable_scheduleCallback=function(F,W,P){var G=e.unstable_now();switch(typeof P=="object"&&P!==null?(P=P.delay,P=typeof P=="number"&&0<P?G+P:G):P=G,F){case 1:var U=-1;break;case 2:U=250;break;case 5:U=1073741823;break;case 4:U=1e4;break;default:U=5e3}return U=P+U,F={id:u++,callback:W,priorityLevel:F,startTime:P,expirationTime:U,sortIndex:-1},P>G?(F.sortIndex=P,t(c,F),n(l)===null&&F===n(c)&&(g?(m(E),E=-1):g=!0,Q(_,P-G))):(F.sortIndex=U,t(l,F),p||f||(p=!0,Y(w))),F},e.unstable_shouldYield=T,e.unstable_wrapCallback=function(F){var W=h;return function(){var P=h;h=W;try{return F.apply(this,arguments)}finally{h=P}}}})(_O);(function(e){e.exports=_O})(bO);/**
|
|
18
|
+
* @license React
|
|
19
|
+
* react-dom.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
|
+
*/var wO=v.exports,er=bO.exports;function q(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var AO=new Set,bd={};function Aa(e,t){Dl(e,t),Dl(e+"Capture",t)}function Dl(e,t){for(bd[e]=t,e=0;e<t.length;e++)AO.add(t[e])}var Ui=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ex=Object.prototype.hasOwnProperty,hB=/^[: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]*$/,QS={},KS={};function fB(e){return ex.call(KS,e)?!0:ex.call(QS,e)?!1:hB.test(e)?KS[e]=!0:(QS[e]=!0,!1)}function pB(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function gB(e,t,n,r){if(t===null||typeof t>"u"||pB(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function wn(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var Qe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Qe[e]=new wn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Qe[t]=new wn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Qe[e]=new wn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Qe[e]=new wn(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Qe[e]=new wn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Qe[e]=new wn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Qe[e]=new wn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Qe[e]=new wn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Qe[e]=new wn(e,5,!1,e.toLowerCase(),null,!1,!1)});var tw=/[\-:]([a-z])/g;function ew(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(tw,ew);Qe[t]=new wn(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(tw,ew);Qe[t]=new wn(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(tw,ew);Qe[t]=new wn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Qe[e]=new wn(e,1,!1,e.toLowerCase(),null,!1,!1)});Qe.xlinkHref=new wn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Qe[e]=new wn(e,1,!1,e.toLowerCase(),null,!0,!0)});function nw(e,t,n,r){var i=Qe.hasOwnProperty(t)?Qe[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(gB(t,n,i,r)&&(n=null),r||i===null?fB(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var no=wO.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,cf=Symbol.for("react.element"),Ga=Symbol.for("react.portal"),qa=Symbol.for("react.fragment"),rw=Symbol.for("react.strict_mode"),nx=Symbol.for("react.profiler"),SO=Symbol.for("react.provider"),EO=Symbol.for("react.context"),iw=Symbol.for("react.forward_ref"),rx=Symbol.for("react.suspense"),ix=Symbol.for("react.suspense_list"),ow=Symbol.for("react.memo"),yo=Symbol.for("react.lazy"),CO=Symbol.for("react.offscreen"),ZS=Symbol.iterator;function Lc(e){return e===null||typeof e!="object"?null:(e=ZS&&e[ZS]||e["@@iterator"],typeof e=="function"?e:null)}var ce=Object.assign,Jv;function ou(e){if(Jv===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Jv=t&&t[1]||""}return`
|
|
26
|
+
`+Jv+e}var t1=!1;function e1(e,t){if(!e||t1)return"";t1=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var i=c.stack.split(`
|
|
27
|
+
`),o=r.stack.split(`
|
|
28
|
+
`),s=i.length-1,a=o.length-1;1<=s&&0<=a&&i[s]!==o[a];)a--;for(;1<=s&&0<=a;s--,a--)if(i[s]!==o[a]){if(s!==1||a!==1)do if(s--,a--,0>a||i[s]!==o[a]){var l=`
|
|
29
|
+
`+i[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{t1=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ou(e):""}function mB(e){switch(e.tag){case 5:return ou(e.type);case 16:return ou("Lazy");case 13:return ou("Suspense");case 19:return ou("SuspenseList");case 0:case 2:case 15:return e=e1(e.type,!1),e;case 11:return e=e1(e.type.render,!1),e;case 1:return e=e1(e.type,!0),e;default:return""}}function ox(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case qa:return"Fragment";case Ga:return"Portal";case nx:return"Profiler";case rw:return"StrictMode";case rx:return"Suspense";case ix:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case EO:return(e.displayName||"Context")+".Consumer";case SO:return(e._context.displayName||"Context")+".Provider";case iw:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ow:return t=e.displayName||null,t!==null?t:ox(e.type)||"Memo";case yo:t=e._payload,e=e._init;try{return ox(e(t))}catch(n){}}return null}function vB(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ox(t);case 8:return t===rw?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ns(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function kO(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function yB(e){var t=kO(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function uf(e){e._valueTracker||(e._valueTracker=yB(e))}function TO(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=kO(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function zg(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch(t){return e.body}}function sx(e,t){var n=t.checked;return ce({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:e._wrapperState.initialChecked})}function JS(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ns(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function MO(e,t){t=t.checked,t!=null&&nw(e,"checked",t,!1)}function ax(e,t){MO(e,t);var n=ns(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?lx(e,t.type,n):t.hasOwnProperty("defaultValue")&&lx(e,t.type,ns(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function tE(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function lx(e,t,n){(t!=="number"||zg(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var su=Array.isArray;function vl(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ns(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function cx(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(q(91));return ce({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function eE(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(q(92));if(su(n)){if(1<n.length)throw Error(q(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:ns(n)}}function $O(e,t){var n=ns(t.value),r=ns(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function nE(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function PO(e){switch(e){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 ux(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?PO(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var df,OO=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(df=df||document.createElement("div"),df.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=df.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function _d(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var _u={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},xB=["Webkit","ms","Moz","O"];Object.keys(_u).forEach(function(e){xB.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),_u[t]=_u[e]})});function RO(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||_u.hasOwnProperty(e)&&_u[e]?(""+t).trim():t+"px"}function DO(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=RO(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var bB=ce({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 dx(e,t){if(t){if(bB[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(q(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(q(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(q(61))}if(t.style!=null&&typeof t.style!="object")throw Error(q(62))}}function hx(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var fx=null;function sw(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var px=null,yl=null,xl=null;function rE(e){if(e=Th(e)){if(typeof px!="function")throw Error(q(280));var t=e.stateNode;t&&(t=w0(t),px(e.stateNode,e.type,t))}}function LO(e){yl?xl?xl.push(e):xl=[e]:yl=e}function IO(){if(yl){var e=yl,t=xl;if(xl=yl=null,rE(e),t)for(e=0;e<t.length;e++)rE(t[e])}}function NO(e,t){return e(t)}function FO(){}var n1=!1;function zO(e,t,n){if(n1)return e(t,n);n1=!0;try{return NO(e,t,n)}finally{n1=!1,(yl!==null||xl!==null)&&(FO(),IO())}}function wd(e,t){var n=e.stateNode;if(n===null)return null;var r=w0(n);if(r===null)return null;n=r[t];t:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break t;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(q(231,t,typeof n));return n}var gx=!1;if(Ui)try{var Ic={};Object.defineProperty(Ic,"passive",{get:function(){gx=!0}}),window.addEventListener("test",Ic,Ic),window.removeEventListener("test",Ic,Ic)}catch(e){gx=!1}function _B(e,t,n,r,i,o,s,a,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var wu=!1,Bg=null,Vg=!1,mx=null,wB={onError:function(e){wu=!0,Bg=e}};function AB(e,t,n,r,i,o,s,a,l){wu=!1,Bg=null,_B.apply(wB,arguments)}function SB(e,t,n,r,i,o,s,a,l){if(AB.apply(this,arguments),wu){if(wu){var c=Bg;wu=!1,Bg=null}else throw Error(q(198));Vg||(Vg=!0,mx=c)}}function Sa(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function BO(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function iE(e){if(Sa(e)!==e)throw Error(q(188))}function EB(e){var t=e.alternate;if(!t){if(t=Sa(e),t===null)throw Error(q(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return iE(i),e;if(o===r)return iE(i),t;o=o.sibling}throw Error(q(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,a=i.child;a;){if(a===n){s=!0,n=i,r=o;break}if(a===r){s=!0,r=i,n=o;break}a=a.sibling}if(!s){for(a=o.child;a;){if(a===n){s=!0,n=o,r=i;break}if(a===r){s=!0,r=o,n=i;break}a=a.sibling}if(!s)throw Error(q(189))}}if(n.alternate!==r)throw Error(q(190))}if(n.tag!==3)throw Error(q(188));return n.stateNode.current===n?e:t}function VO(e){return e=EB(e),e!==null?jO(e):null}function jO(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=jO(e);if(t!==null)return t;e=e.sibling}return null}var HO=er.unstable_scheduleCallback,oE=er.unstable_cancelCallback,CB=er.unstable_shouldYield,kB=er.unstable_requestPaint,be=er.unstable_now,TB=er.unstable_getCurrentPriorityLevel,aw=er.unstable_ImmediatePriority,UO=er.unstable_UserBlockingPriority,jg=er.unstable_NormalPriority,MB=er.unstable_LowPriority,WO=er.unstable_IdlePriority,y0=null,oi=null;function $B(e){if(oi&&typeof oi.onCommitFiberRoot=="function")try{oi.onCommitFiberRoot(y0,e,void 0,(e.current.flags&128)===128)}catch(t){}}var Lr=Math.clz32?Math.clz32:RB,PB=Math.log,OB=Math.LN2;function RB(e){return e>>>=0,e===0?32:31-(PB(e)/OB|0)|0}var hf=64,ff=4194304;function au(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Hg(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~i;a!==0?r=au(a):(o&=s,o!==0&&(r=au(o)))}else s=n&~i,s!==0?r=au(s):o!==0&&(r=au(o));if(r===0)return 0;if(t!==0&&t!==r&&(t&i)===0&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if((r&4)!==0&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Lr(t),i=1<<n,r|=e[n],t&=~i;return r}function DB(e,t){switch(e){case 1:case 2:case 4:return t+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 t+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 LB(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-Lr(o),a=1<<s,l=i[s];l===-1?((a&n)===0||(a&r)!==0)&&(i[s]=DB(a,t)):l<=t&&(e.expiredLanes|=a),o&=~a}}function vx(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function YO(){var e=hf;return hf<<=1,(hf&4194240)===0&&(hf=64),e}function r1(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ch(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Lr(t),e[t]=n}function IB(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-Lr(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function lw(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Lr(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var Mt=0;function GO(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var qO,cw,XO,QO,KO,yx=!1,pf=[],jo=null,Ho=null,Uo=null,Ad=new Map,Sd=new Map,Ao=[],NB="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 sE(e,t){switch(e){case"focusin":case"focusout":jo=null;break;case"dragenter":case"dragleave":Ho=null;break;case"mouseover":case"mouseout":Uo=null;break;case"pointerover":case"pointerout":Ad.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Sd.delete(t.pointerId)}}function Nc(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=Th(t),t!==null&&cw(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function FB(e,t,n,r,i){switch(t){case"focusin":return jo=Nc(jo,e,t,n,r,i),!0;case"dragenter":return Ho=Nc(Ho,e,t,n,r,i),!0;case"mouseover":return Uo=Nc(Uo,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Ad.set(o,Nc(Ad.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Sd.set(o,Nc(Sd.get(o)||null,e,t,n,r,i)),!0}return!1}function ZO(e){var t=Ys(e.target);if(t!==null){var n=Sa(t);if(n!==null){if(t=n.tag,t===13){if(t=BO(n),t!==null){e.blockedOn=t,KO(e.priority,function(){XO(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function jp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=xx(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);fx=r,n.target.dispatchEvent(r),fx=null}else return t=Th(n),t!==null&&cw(t),e.blockedOn=n,!1;t.shift()}return!0}function aE(e,t,n){jp(e)&&n.delete(t)}function zB(){yx=!1,jo!==null&&jp(jo)&&(jo=null),Ho!==null&&jp(Ho)&&(Ho=null),Uo!==null&&jp(Uo)&&(Uo=null),Ad.forEach(aE),Sd.forEach(aE)}function Fc(e,t){e.blockedOn===t&&(e.blockedOn=null,yx||(yx=!0,er.unstable_scheduleCallback(er.unstable_NormalPriority,zB)))}function Ed(e){function t(i){return Fc(i,e)}if(0<pf.length){Fc(pf[0],e);for(var n=1;n<pf.length;n++){var r=pf[n];r.blockedOn===e&&(r.blockedOn=null)}}for(jo!==null&&Fc(jo,e),Ho!==null&&Fc(Ho,e),Uo!==null&&Fc(Uo,e),Ad.forEach(t),Sd.forEach(t),n=0;n<Ao.length;n++)r=Ao[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Ao.length&&(n=Ao[0],n.blockedOn===null);)ZO(n),n.blockedOn===null&&Ao.shift()}var bl=no.ReactCurrentBatchConfig,Ug=!0;function BB(e,t,n,r){var i=Mt,o=bl.transition;bl.transition=null;try{Mt=1,uw(e,t,n,r)}finally{Mt=i,bl.transition=o}}function VB(e,t,n,r){var i=Mt,o=bl.transition;bl.transition=null;try{Mt=4,uw(e,t,n,r)}finally{Mt=i,bl.transition=o}}function uw(e,t,n,r){if(Ug){var i=xx(e,t,n,r);if(i===null)f1(e,t,r,Wg,n),sE(e,r);else if(FB(i,e,t,n,r))r.stopPropagation();else if(sE(e,r),t&4&&-1<NB.indexOf(e)){for(;i!==null;){var o=Th(i);if(o!==null&&qO(o),o=xx(e,t,n,r),o===null&&f1(e,t,r,Wg,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else f1(e,t,r,null,n)}}var Wg=null;function xx(e,t,n,r){if(Wg=null,e=sw(r),e=Ys(e),e!==null)if(t=Sa(e),t===null)e=null;else if(n=t.tag,n===13){if(e=BO(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Wg=e,null}function JO(e){switch(e){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(TB()){case aw:return 1;case UO:return 4;case jg:case MB:return 16;case WO:return 536870912;default:return 16}default:return 16}}var Co=null,dw=null,Hp=null;function t3(){if(Hp)return Hp;var e,t=dw,n=t.length,r,i="value"in Co?Co.value:Co.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===i[o-r];r++);return Hp=i.slice(e,1<r?1-r:void 0)}function Up(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function gf(){return!0}function lE(){return!1}function or(e){function t(n,r,i,o,s){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(o):o[a]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?gf:lE,this.isPropagationStopped=lE,this}return ce(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=gf)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=gf)},persist:function(){},isPersistent:gf}),t}var fc={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hw=or(fc),kh=ce({},fc,{view:0,detail:0}),jB=or(kh),i1,o1,zc,x0=ce({},kh,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:fw,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==zc&&(zc&&e.type==="mousemove"?(i1=e.screenX-zc.screenX,o1=e.screenY-zc.screenY):o1=i1=0,zc=e),i1)},movementY:function(e){return"movementY"in e?e.movementY:o1}}),cE=or(x0),HB=ce({},x0,{dataTransfer:0}),UB=or(HB),WB=ce({},kh,{relatedTarget:0}),s1=or(WB),YB=ce({},fc,{animationName:0,elapsedTime:0,pseudoElement:0}),GB=or(YB),qB=ce({},fc,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),XB=or(qB),QB=ce({},fc,{data:0}),uE=or(QB),KB={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ZB={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"},JB={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function tV(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=JB[e])?!!t[e]:!1}function fw(){return tV}var eV=ce({},kh,{key:function(e){if(e.key){var t=KB[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Up(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ZB[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:fw,charCode:function(e){return e.type==="keypress"?Up(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Up(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),nV=or(eV),rV=ce({},x0,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),dE=or(rV),iV=ce({},kh,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:fw}),oV=or(iV),sV=ce({},fc,{propertyName:0,elapsedTime:0,pseudoElement:0}),aV=or(sV),lV=ce({},x0,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),cV=or(lV),uV=[9,13,27,32],pw=Ui&&"CompositionEvent"in window,Au=null;Ui&&"documentMode"in document&&(Au=document.documentMode);var dV=Ui&&"TextEvent"in window&&!Au,e3=Ui&&(!pw||Au&&8<Au&&11>=Au),hE=String.fromCharCode(32),fE=!1;function n3(e,t){switch(e){case"keyup":return uV.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function r3(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Xa=!1;function hV(e,t){switch(e){case"compositionend":return r3(t);case"keypress":return t.which!==32?null:(fE=!0,hE);case"textInput":return e=t.data,e===hE&&fE?null:e;default:return null}}function fV(e,t){if(Xa)return e==="compositionend"||!pw&&n3(e,t)?(e=t3(),Hp=dw=Co=null,Xa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return e3&&t.locale!=="ko"?null:t.data;default:return null}}var pV={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 pE(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!pV[e.type]:t==="textarea"}function i3(e,t,n,r){LO(r),t=Yg(t,"onChange"),0<t.length&&(n=new hw("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Su=null,Cd=null;function gV(e){g3(e,0)}function b0(e){var t=Za(e);if(TO(t))return e}function mV(e,t){if(e==="change")return t}var o3=!1;if(Ui){var a1;if(Ui){var l1="oninput"in document;if(!l1){var gE=document.createElement("div");gE.setAttribute("oninput","return;"),l1=typeof gE.oninput=="function"}a1=l1}else a1=!1;o3=a1&&(!document.documentMode||9<document.documentMode)}function mE(){Su&&(Su.detachEvent("onpropertychange",s3),Cd=Su=null)}function s3(e){if(e.propertyName==="value"&&b0(Cd)){var t=[];i3(t,Cd,e,sw(e)),zO(gV,t)}}function vV(e,t,n){e==="focusin"?(mE(),Su=t,Cd=n,Su.attachEvent("onpropertychange",s3)):e==="focusout"&&mE()}function yV(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return b0(Cd)}function xV(e,t){if(e==="click")return b0(t)}function bV(e,t){if(e==="input"||e==="change")return b0(t)}function _V(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var jr=typeof Object.is=="function"?Object.is:_V;function kd(e,t){if(jr(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!ex.call(t,i)||!jr(e[i],t[i]))return!1}return!0}function vE(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function yE(e,t){var n=vE(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=vE(n)}}function a3(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?a3(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function l3(){for(var e=window,t=zg();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch(r){n=!1}if(n)e=t.contentWindow;else break;t=zg(e.document)}return t}function gw(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function wV(e){var t=l3(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&a3(n.ownerDocument.documentElement,n)){if(r!==null&&gw(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=yE(n,o);var s=yE(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var AV=Ui&&"documentMode"in document&&11>=document.documentMode,Qa=null,bx=null,Eu=null,_x=!1;function xE(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;_x||Qa==null||Qa!==zg(r)||(r=Qa,"selectionStart"in r&&gw(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Eu&&kd(Eu,r)||(Eu=r,r=Yg(bx,"onSelect"),0<r.length&&(t=new hw("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Qa)))}function mf(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ka={animationend:mf("Animation","AnimationEnd"),animationiteration:mf("Animation","AnimationIteration"),animationstart:mf("Animation","AnimationStart"),transitionend:mf("Transition","TransitionEnd")},c1={},c3={};Ui&&(c3=document.createElement("div").style,"AnimationEvent"in window||(delete Ka.animationend.animation,delete Ka.animationiteration.animation,delete Ka.animationstart.animation),"TransitionEvent"in window||delete Ka.transitionend.transition);function _0(e){if(c1[e])return c1[e];if(!Ka[e])return e;var t=Ka[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in c3)return c1[e]=t[n];return e}var u3=_0("animationend"),d3=_0("animationiteration"),h3=_0("animationstart"),f3=_0("transitionend"),p3=new Map,bE="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 gs(e,t){p3.set(e,t),Aa(t,[e])}for(var u1=0;u1<bE.length;u1++){var d1=bE[u1],SV=d1.toLowerCase(),EV=d1[0].toUpperCase()+d1.slice(1);gs(SV,"on"+EV)}gs(u3,"onAnimationEnd");gs(d3,"onAnimationIteration");gs(h3,"onAnimationStart");gs("dblclick","onDoubleClick");gs("focusin","onFocus");gs("focusout","onBlur");gs(f3,"onTransitionEnd");Dl("onMouseEnter",["mouseout","mouseover"]);Dl("onMouseLeave",["mouseout","mouseover"]);Dl("onPointerEnter",["pointerout","pointerover"]);Dl("onPointerLeave",["pointerout","pointerover"]);Aa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Aa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Aa("onBeforeInput",["compositionend","keypress","textInput","paste"]);Aa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Aa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Aa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var lu="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(" "),CV=new Set("cancel close invalid load scroll toggle".split(" ").concat(lu));function _E(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,SB(r,t,void 0,e),e.currentTarget=null}function g3(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;t:{var o=void 0;if(t)for(var s=r.length-1;0<=s;s--){var a=r[s],l=a.instance,c=a.currentTarget;if(a=a.listener,l!==o&&i.isPropagationStopped())break t;_E(i,a,c),o=l}else for(s=0;s<r.length;s++){if(a=r[s],l=a.instance,c=a.currentTarget,a=a.listener,l!==o&&i.isPropagationStopped())break t;_E(i,a,c),o=l}}}if(Vg)throw e=mx,Vg=!1,mx=null,e}function qt(e,t){var n=t[Cx];n===void 0&&(n=t[Cx]=new Set);var r=e+"__bubble";n.has(r)||(m3(t,e,2,!1),n.add(r))}function h1(e,t,n){var r=0;t&&(r|=4),m3(n,e,r,t)}var vf="_reactListening"+Math.random().toString(36).slice(2);function Td(e){if(!e[vf]){e[vf]=!0,AO.forEach(function(n){n!=="selectionchange"&&(CV.has(n)||h1(n,!1,e),h1(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[vf]||(t[vf]=!0,h1("selectionchange",!1,t))}}function m3(e,t,n,r){switch(JO(t)){case 1:var i=BB;break;case 4:i=VB;break;default:i=uw}n=i.bind(null,t,n,e),i=void 0,!gx||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function f1(e,t,n,r,i){var o=r;if((t&1)===0&&(t&2)===0&&r!==null)t:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var a=r.stateNode.containerInfo;if(a===i||a.nodeType===8&&a.parentNode===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;s=s.return}for(;a!==null;){if(s=Ys(a),s===null)return;if(l=s.tag,l===5||l===6){r=o=s;continue t}a=a.parentNode}}r=r.return}zO(function(){var c=o,u=sw(n),d=[];t:{var h=p3.get(e);if(h!==void 0){var f=hw,p=e;switch(e){case"keypress":if(Up(n)===0)break t;case"keydown":case"keyup":f=nV;break;case"focusin":p="focus",f=s1;break;case"focusout":p="blur",f=s1;break;case"beforeblur":case"afterblur":f=s1;break;case"click":if(n.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":f=cE;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=UB;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=oV;break;case u3:case d3:case h3:f=GB;break;case f3:f=aV;break;case"scroll":f=jB;break;case"wheel":f=cV;break;case"copy":case"cut":case"paste":f=XB;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=dE}var g=(t&4)!==0,y=!g&&e==="scroll",m=g?h!==null?h+"Capture":null:h;g=[];for(var x=c,b;x!==null;){b=x;var _=b.stateNode;if(b.tag===5&&_!==null&&(b=_,m!==null&&(_=wd(x,m),_!=null&&g.push(Md(x,_,b)))),y)break;x=x.return}0<g.length&&(h=new f(h,p,null,n,u),d.push({event:h,listeners:g}))}}if((t&7)===0){t:{if(h=e==="mouseover"||e==="pointerover",f=e==="mouseout"||e==="pointerout",h&&n!==fx&&(p=n.relatedTarget||n.fromElement)&&(Ys(p)||p[Wi]))break t;if((f||h)&&(h=u.window===u?u:(h=u.ownerDocument)?h.defaultView||h.parentWindow:window,f?(p=n.relatedTarget||n.toElement,f=c,p=p?Ys(p):null,p!==null&&(y=Sa(p),p!==y||p.tag!==5&&p.tag!==6)&&(p=null)):(f=null,p=c),f!==p)){if(g=cE,_="onMouseLeave",m="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(g=dE,_="onPointerLeave",m="onPointerEnter",x="pointer"),y=f==null?h:Za(f),b=p==null?h:Za(p),h=new g(_,x+"leave",f,n,u),h.target=y,h.relatedTarget=b,_=null,Ys(u)===c&&(g=new g(m,x+"enter",p,n,u),g.target=b,g.relatedTarget=y,_=g),y=_,f&&p)e:{for(g=f,m=p,x=0,b=g;b;b=Pa(b))x++;for(b=0,_=m;_;_=Pa(_))b++;for(;0<x-b;)g=Pa(g),x--;for(;0<b-x;)m=Pa(m),b--;for(;x--;){if(g===m||m!==null&&g===m.alternate)break e;g=Pa(g),m=Pa(m)}g=null}else g=null;f!==null&&wE(d,h,f,g,!1),p!==null&&y!==null&&wE(d,y,p,g,!0)}}t:{if(h=c?Za(c):window,f=h.nodeName&&h.nodeName.toLowerCase(),f==="select"||f==="input"&&h.type==="file")var w=mV;else if(pE(h))if(o3)w=bV;else{w=yV;var A=vV}else(f=h.nodeName)&&f.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(w=xV);if(w&&(w=w(e,c))){i3(d,w,n,u);break t}A&&A(e,h,c),e==="focusout"&&(A=h._wrapperState)&&A.controlled&&h.type==="number"&&lx(h,"number",h.value)}switch(A=c?Za(c):window,e){case"focusin":(pE(A)||A.contentEditable==="true")&&(Qa=A,bx=c,Eu=null);break;case"focusout":Eu=bx=Qa=null;break;case"mousedown":_x=!0;break;case"contextmenu":case"mouseup":case"dragend":_x=!1,xE(d,n,u);break;case"selectionchange":if(AV)break;case"keydown":case"keyup":xE(d,n,u)}var S;if(pw)t:{switch(e){case"compositionstart":var E="onCompositionStart";break t;case"compositionend":E="onCompositionEnd";break t;case"compositionupdate":E="onCompositionUpdate";break t}E=void 0}else Xa?n3(e,n)&&(E="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(E="onCompositionStart");E&&(e3&&n.locale!=="ko"&&(Xa||E!=="onCompositionStart"?E==="onCompositionEnd"&&Xa&&(S=t3()):(Co=u,dw="value"in Co?Co.value:Co.textContent,Xa=!0)),A=Yg(c,E),0<A.length&&(E=new uE(E,e,null,n,u),d.push({event:E,listeners:A}),S?E.data=S:(S=r3(n),S!==null&&(E.data=S)))),(S=dV?hV(e,n):fV(e,n))&&(c=Yg(c,"onBeforeInput"),0<c.length&&(u=new uE("onBeforeInput","beforeinput",null,n,u),d.push({event:u,listeners:c}),u.data=S))}g3(d,t)})}function Md(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Yg(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=wd(e,n),o!=null&&r.unshift(Md(e,o,i)),o=wd(e,t),o!=null&&r.push(Md(e,o,i))),e=e.return}return r}function Pa(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function wE(e,t,n,r,i){for(var o=t._reactName,s=[];n!==null&&n!==r;){var a=n,l=a.alternate,c=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&c!==null&&(a=c,i?(l=wd(n,o),l!=null&&s.unshift(Md(n,l,a))):i||(l=wd(n,o),l!=null&&s.push(Md(n,l,a)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var kV=/\r\n?/g,TV=/\u0000|\uFFFD/g;function AE(e){return(typeof e=="string"?e:""+e).replace(kV,`
|
|
30
|
+
`).replace(TV,"")}function yf(e,t,n){if(t=AE(t),AE(e)!==t&&n)throw Error(q(425))}function Gg(){}var wx=null,Ax=null;function Sx(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Ex=typeof setTimeout=="function"?setTimeout:void 0,MV=typeof clearTimeout=="function"?clearTimeout:void 0,SE=typeof Promise=="function"?Promise:void 0,$V=typeof queueMicrotask=="function"?queueMicrotask:typeof SE<"u"?function(e){return SE.resolve(null).then(e).catch(PV)}:Ex;function PV(e){setTimeout(function(){throw e})}function p1(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),Ed(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Ed(t)}function Wo(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function EE(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var pc=Math.random().toString(36).slice(2),ti="__reactFiber$"+pc,$d="__reactProps$"+pc,Wi="__reactContainer$"+pc,Cx="__reactEvents$"+pc,OV="__reactListeners$"+pc,RV="__reactHandles$"+pc;function Ys(e){var t=e[ti];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Wi]||n[ti]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=EE(e);e!==null;){if(n=e[ti])return n;e=EE(e)}return t}e=n,n=e.parentNode}return null}function Th(e){return e=e[ti]||e[Wi],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Za(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(q(33))}function w0(e){return e[$d]||null}var kx=[],Ja=-1;function ms(e){return{current:e}}function Jt(e){0>Ja||(e.current=kx[Ja],kx[Ja]=null,Ja--)}function Ht(e,t){Ja++,kx[Ja]=e.current,e.current=t}var rs={},cn=ms(rs),Ln=ms(!1),ha=rs;function Ll(e,t){var n=e.type.contextTypes;if(!n)return rs;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function In(e){return e=e.childContextTypes,e!=null}function qg(){Jt(Ln),Jt(cn)}function CE(e,t,n){if(cn.current!==rs)throw Error(q(168));Ht(cn,t),Ht(Ln,n)}function v3(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(q(108,vB(e)||"Unknown",i));return ce({},n,r)}function Xg(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||rs,ha=cn.current,Ht(cn,e),Ht(Ln,Ln.current),!0}function kE(e,t,n){var r=e.stateNode;if(!r)throw Error(q(169));n?(e=v3(e,t,ha),r.__reactInternalMemoizedMergedChildContext=e,Jt(Ln),Jt(cn),Ht(cn,e)):Jt(Ln),Ht(Ln,n)}var Mi=null,A0=!1,g1=!1;function y3(e){Mi===null?Mi=[e]:Mi.push(e)}function DV(e){A0=!0,y3(e)}function vs(){if(!g1&&Mi!==null){g1=!0;var e=0,t=Mt;try{var n=Mi;for(Mt=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Mi=null,A0=!1}catch(i){throw Mi!==null&&(Mi=Mi.slice(e+1)),HO(aw,vs),i}finally{Mt=t,g1=!1}}return null}var tl=[],el=0,Qg=null,Kg=0,ur=[],dr=0,fa=null,Ri=1,Di="";function Fs(e,t){tl[el++]=Kg,tl[el++]=Qg,Qg=e,Kg=t}function x3(e,t,n){ur[dr++]=Ri,ur[dr++]=Di,ur[dr++]=fa,fa=e;var r=Ri;e=Di;var i=32-Lr(r)-1;r&=~(1<<i),n+=1;var o=32-Lr(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,Ri=1<<32-Lr(t)+i|n<<i|r,Di=o+e}else Ri=1<<o|n<<i|r,Di=e}function mw(e){e.return!==null&&(Fs(e,1),x3(e,1,0))}function vw(e){for(;e===Qg;)Qg=tl[--el],tl[el]=null,Kg=tl[--el],tl[el]=null;for(;e===fa;)fa=ur[--dr],ur[dr]=null,Di=ur[--dr],ur[dr]=null,Ri=ur[--dr],ur[dr]=null}var Jn=null,Kn=null,ne=!1,Or=null;function b3(e,t){var n=hr(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function TE(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Jn=e,Kn=Wo(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Jn=e,Kn=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=fa!==null?{id:Ri,overflow:Di}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=hr(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Jn=e,Kn=null,!0):!1;default:return!1}}function Tx(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Mx(e){if(ne){var t=Kn;if(t){var n=t;if(!TE(e,t)){if(Tx(e))throw Error(q(418));t=Wo(n.nextSibling);var r=Jn;t&&TE(e,t)?b3(r,n):(e.flags=e.flags&-4097|2,ne=!1,Jn=e)}}else{if(Tx(e))throw Error(q(418));e.flags=e.flags&-4097|2,ne=!1,Jn=e}}}function ME(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Jn=e}function xf(e){if(e!==Jn)return!1;if(!ne)return ME(e),ne=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Sx(e.type,e.memoizedProps)),t&&(t=Kn)){if(Tx(e))throw _3(),Error(q(418));for(;t;)b3(e,t),t=Wo(t.nextSibling)}if(ME(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(q(317));t:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Kn=Wo(e.nextSibling);break t}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Kn=null}}else Kn=Jn?Wo(e.stateNode.nextSibling):null;return!0}function _3(){for(var e=Kn;e;)e=Wo(e.nextSibling)}function Il(){Kn=Jn=null,ne=!1}function yw(e){Or===null?Or=[e]:Or.push(e)}var LV=no.ReactCurrentBatchConfig;function Tr(e,t){if(e&&e.defaultProps){t=ce({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var Zg=ms(null),Jg=null,nl=null,xw=null;function bw(){xw=nl=Jg=null}function _w(e){var t=Zg.current;Jt(Zg),e._currentValue=t}function $x(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function _l(e,t){Jg=e,xw=nl=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&($n=!0),e.firstContext=null)}function vr(e){var t=e._currentValue;if(xw!==e)if(e={context:e,memoizedValue:t,next:null},nl===null){if(Jg===null)throw Error(q(308));nl=e,Jg.dependencies={lanes:0,firstContext:e}}else nl=nl.next=e;return t}var Gs=null;function ww(e){Gs===null?Gs=[e]:Gs.push(e)}function w3(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,ww(t)):(n.next=i.next,i.next=n),t.interleaved=n,Yi(e,r)}function Yi(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var xo=!1;function Aw(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function A3(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function zi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Yo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(yt&2)!==0){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Yi(e,n)}return i=r.interleaved,i===null?(t.next=t,ww(r)):(t.next=i.next,i.next=t),r.interleaved=t,Yi(e,n)}function Wp(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,lw(e,n)}}function $E(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function tm(e,t,n,r){var i=e.updateQueue;xo=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,c=l.next;l.next=null,s===null?o=c:s.next=c,s=l;var u=e.alternate;u!==null&&(u=u.updateQueue,a=u.lastBaseUpdate,a!==s&&(a===null?u.firstBaseUpdate=c:a.next=c,u.lastBaseUpdate=l))}if(o!==null){var d=i.baseState;s=0,u=c=l=null,a=o;do{var h=a.lane,f=a.eventTime;if((r&h)===h){u!==null&&(u=u.next={eventTime:f,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});t:{var p=e,g=a;switch(h=t,f=n,g.tag){case 1:if(p=g.payload,typeof p=="function"){d=p.call(f,d,h);break t}d=p;break t;case 3:p.flags=p.flags&-65537|128;case 0:if(p=g.payload,h=typeof p=="function"?p.call(f,d,h):p,h==null)break t;d=ce({},d,h);break t;case 2:xo=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,h=i.effects,h===null?i.effects=[a]:h.push(a))}else f={eventTime:f,lane:h,tag:a.tag,payload:a.payload,callback:a.callback,next:null},u===null?(c=u=f,l=d):u=u.next=f,s|=h;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;h=a,a=h.next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}while(1);if(u===null&&(l=d),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);ga|=s,e.lanes=s,e.memoizedState=d}}function PE(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(q(191,i));i.call(r)}}}var S3=new wO.Component().refs;function Px(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ce({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var S0={isMounted:function(e){return(e=e._reactInternals)?Sa(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=xn(),i=qo(e),o=zi(r,i);o.payload=t,n!=null&&(o.callback=n),t=Yo(e,o,i),t!==null&&(Ir(t,e,i,r),Wp(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=xn(),i=qo(e),o=zi(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Yo(e,o,i),t!==null&&(Ir(t,e,i,r),Wp(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=xn(),r=qo(e),i=zi(n,r);i.tag=2,t!=null&&(i.callback=t),t=Yo(e,i,r),t!==null&&(Ir(t,e,r,n),Wp(t,e,r))}};function OE(e,t,n,r,i,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,s):t.prototype&&t.prototype.isPureReactComponent?!kd(n,r)||!kd(i,o):!0}function E3(e,t,n){var r=!1,i=rs,o=t.contextType;return typeof o=="object"&&o!==null?o=vr(o):(i=In(t)?ha:cn.current,r=t.contextTypes,o=(r=r!=null)?Ll(e,i):rs),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=S0,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function RE(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&S0.enqueueReplaceState(t,t.state,null)}function Ox(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=S3,Aw(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=vr(o):(o=In(t)?ha:cn.current,i.context=Ll(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Px(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&S0.enqueueReplaceState(i,i.state,null),tm(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Bc(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(q(309));var r=n.stateNode}if(!r)throw Error(q(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(s){var a=i.refs;a===S3&&(a=i.refs={}),s===null?delete a[o]:a[o]=s},t._stringRef=o,t)}if(typeof e!="string")throw Error(q(284));if(!n._owner)throw Error(q(290,e))}return e}function bf(e,t){throw e=Object.prototype.toString.call(t),Error(q(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function DE(e){var t=e._init;return t(e._payload)}function C3(e){function t(m,x){if(e){var b=m.deletions;b===null?(m.deletions=[x],m.flags|=16):b.push(x)}}function n(m,x){if(!e)return null;for(;x!==null;)t(m,x),x=x.sibling;return null}function r(m,x){for(m=new Map;x!==null;)x.key!==null?m.set(x.key,x):m.set(x.index,x),x=x.sibling;return m}function i(m,x){return m=Xo(m,x),m.index=0,m.sibling=null,m}function o(m,x,b){return m.index=b,e?(b=m.alternate,b!==null?(b=b.index,b<x?(m.flags|=2,x):b):(m.flags|=2,x)):(m.flags|=1048576,x)}function s(m){return e&&m.alternate===null&&(m.flags|=2),m}function a(m,x,b,_){return x===null||x.tag!==6?(x=w1(b,m.mode,_),x.return=m,x):(x=i(x,b),x.return=m,x)}function l(m,x,b,_){var w=b.type;return w===qa?u(m,x,b.props.children,_,b.key):x!==null&&(x.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===yo&&DE(w)===x.type)?(_=i(x,b.props),_.ref=Bc(m,x,b),_.return=m,_):(_=Kp(b.type,b.key,b.props,null,m.mode,_),_.ref=Bc(m,x,b),_.return=m,_)}function c(m,x,b,_){return x===null||x.tag!==4||x.stateNode.containerInfo!==b.containerInfo||x.stateNode.implementation!==b.implementation?(x=A1(b,m.mode,_),x.return=m,x):(x=i(x,b.children||[]),x.return=m,x)}function u(m,x,b,_,w){return x===null||x.tag!==7?(x=ra(b,m.mode,_,w),x.return=m,x):(x=i(x,b),x.return=m,x)}function d(m,x,b){if(typeof x=="string"&&x!==""||typeof x=="number")return x=w1(""+x,m.mode,b),x.return=m,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case cf:return b=Kp(x.type,x.key,x.props,null,m.mode,b),b.ref=Bc(m,null,x),b.return=m,b;case Ga:return x=A1(x,m.mode,b),x.return=m,x;case yo:var _=x._init;return d(m,_(x._payload),b)}if(su(x)||Lc(x))return x=ra(x,m.mode,b,null),x.return=m,x;bf(m,x)}return null}function h(m,x,b,_){var w=x!==null?x.key:null;if(typeof b=="string"&&b!==""||typeof b=="number")return w!==null?null:a(m,x,""+b,_);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case cf:return b.key===w?l(m,x,b,_):null;case Ga:return b.key===w?c(m,x,b,_):null;case yo:return w=b._init,h(m,x,w(b._payload),_)}if(su(b)||Lc(b))return w!==null?null:u(m,x,b,_,null);bf(m,b)}return null}function f(m,x,b,_,w){if(typeof _=="string"&&_!==""||typeof _=="number")return m=m.get(b)||null,a(x,m,""+_,w);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case cf:return m=m.get(_.key===null?b:_.key)||null,l(x,m,_,w);case Ga:return m=m.get(_.key===null?b:_.key)||null,c(x,m,_,w);case yo:var A=_._init;return f(m,x,b,A(_._payload),w)}if(su(_)||Lc(_))return m=m.get(b)||null,u(x,m,_,w,null);bf(x,_)}return null}function p(m,x,b,_){for(var w=null,A=null,S=x,E=x=0,k=null;S!==null&&E<b.length;E++){S.index>E?(k=S,S=null):k=S.sibling;var C=h(m,S,b[E],_);if(C===null){S===null&&(S=k);break}e&&S&&C.alternate===null&&t(m,S),x=o(C,x,E),A===null?w=C:A.sibling=C,A=C,S=k}if(E===b.length)return n(m,S),ne&&Fs(m,E),w;if(S===null){for(;E<b.length;E++)S=d(m,b[E],_),S!==null&&(x=o(S,x,E),A===null?w=S:A.sibling=S,A=S);return ne&&Fs(m,E),w}for(S=r(m,S);E<b.length;E++)k=f(S,m,E,b[E],_),k!==null&&(e&&k.alternate!==null&&S.delete(k.key===null?E:k.key),x=o(k,x,E),A===null?w=k:A.sibling=k,A=k);return e&&S.forEach(function(T){return t(m,T)}),ne&&Fs(m,E),w}function g(m,x,b,_){var w=Lc(b);if(typeof w!="function")throw Error(q(150));if(b=w.call(b),b==null)throw Error(q(151));for(var A=w=null,S=x,E=x=0,k=null,C=b.next();S!==null&&!C.done;E++,C=b.next()){S.index>E?(k=S,S=null):k=S.sibling;var T=h(m,S,C.value,_);if(T===null){S===null&&(S=k);break}e&&S&&T.alternate===null&&t(m,S),x=o(T,x,E),A===null?w=T:A.sibling=T,A=T,S=k}if(C.done)return n(m,S),ne&&Fs(m,E),w;if(S===null){for(;!C.done;E++,C=b.next())C=d(m,C.value,_),C!==null&&(x=o(C,x,E),A===null?w=C:A.sibling=C,A=C);return ne&&Fs(m,E),w}for(S=r(m,S);!C.done;E++,C=b.next())C=f(S,m,E,C.value,_),C!==null&&(e&&C.alternate!==null&&S.delete(C.key===null?E:C.key),x=o(C,x,E),A===null?w=C:A.sibling=C,A=C);return e&&S.forEach(function($){return t(m,$)}),ne&&Fs(m,E),w}function y(m,x,b,_){if(typeof b=="object"&&b!==null&&b.type===qa&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case cf:t:{for(var w=b.key,A=x;A!==null;){if(A.key===w){if(w=b.type,w===qa){if(A.tag===7){n(m,A.sibling),x=i(A,b.props.children),x.return=m,m=x;break t}}else if(A.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===yo&&DE(w)===A.type){n(m,A.sibling),x=i(A,b.props),x.ref=Bc(m,A,b),x.return=m,m=x;break t}n(m,A);break}else t(m,A);A=A.sibling}b.type===qa?(x=ra(b.props.children,m.mode,_,b.key),x.return=m,m=x):(_=Kp(b.type,b.key,b.props,null,m.mode,_),_.ref=Bc(m,x,b),_.return=m,m=_)}return s(m);case Ga:t:{for(A=b.key;x!==null;){if(x.key===A)if(x.tag===4&&x.stateNode.containerInfo===b.containerInfo&&x.stateNode.implementation===b.implementation){n(m,x.sibling),x=i(x,b.children||[]),x.return=m,m=x;break t}else{n(m,x);break}else t(m,x);x=x.sibling}x=A1(b,m.mode,_),x.return=m,m=x}return s(m);case yo:return A=b._init,y(m,x,A(b._payload),_)}if(su(b))return p(m,x,b,_);if(Lc(b))return g(m,x,b,_);bf(m,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,x!==null&&x.tag===6?(n(m,x.sibling),x=i(x,b),x.return=m,m=x):(n(m,x),x=w1(b,m.mode,_),x.return=m,m=x),s(m)):n(m,x)}return y}var Nl=C3(!0),k3=C3(!1),Mh={},si=ms(Mh),Pd=ms(Mh),Od=ms(Mh);function qs(e){if(e===Mh)throw Error(q(174));return e}function Sw(e,t){switch(Ht(Od,t),Ht(Pd,e),Ht(si,Mh),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ux(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ux(t,e)}Jt(si),Ht(si,t)}function Fl(){Jt(si),Jt(Pd),Jt(Od)}function T3(e){qs(Od.current);var t=qs(si.current),n=ux(t,e.type);t!==n&&(Ht(Pd,e),Ht(si,n))}function Ew(e){Pd.current===e&&(Jt(si),Jt(Pd))}var ae=ms(0);function em(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var m1=[];function Cw(){for(var e=0;e<m1.length;e++)m1[e]._workInProgressVersionPrimary=null;m1.length=0}var Yp=no.ReactCurrentDispatcher,v1=no.ReactCurrentBatchConfig,pa=0,le=null,Me=null,Ie=null,nm=!1,Cu=!1,Rd=0,IV=0;function Ke(){throw Error(q(321))}function kw(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!jr(e[n],t[n]))return!1;return!0}function Tw(e,t,n,r,i,o){if(pa=o,le=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Yp.current=e===null||e.memoizedState===null?BV:VV,e=n(r,i),Cu){o=0;do{if(Cu=!1,Rd=0,25<=o)throw Error(q(301));o+=1,Ie=Me=null,t.updateQueue=null,Yp.current=jV,e=n(r,i)}while(Cu)}if(Yp.current=rm,t=Me!==null&&Me.next!==null,pa=0,Ie=Me=le=null,nm=!1,t)throw Error(q(300));return e}function Mw(){var e=Rd!==0;return Rd=0,e}function Xr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ie===null?le.memoizedState=Ie=e:Ie=Ie.next=e,Ie}function yr(){if(Me===null){var e=le.alternate;e=e!==null?e.memoizedState:null}else e=Me.next;var t=Ie===null?le.memoizedState:Ie.next;if(t!==null)Ie=t,Me=e;else{if(e===null)throw Error(q(310));Me=e,e={memoizedState:Me.memoizedState,baseState:Me.baseState,baseQueue:Me.baseQueue,queue:Me.queue,next:null},Ie===null?le.memoizedState=Ie=e:Ie=Ie.next=e}return Ie}function Dd(e,t){return typeof t=="function"?t(e):t}function y1(e){var t=yr(),n=t.queue;if(n===null)throw Error(q(311));n.lastRenderedReducer=e;var r=Me,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var a=s=null,l=null,c=o;do{var u=c.lane;if((pa&u)===u)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(a=l=d,s=r):l=l.next=d,le.lanes|=u,ga|=u}c=c.next}while(c!==null&&c!==o);l===null?s=r:l.next=a,jr(r,t.memoizedState)||($n=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,le.lanes|=o,ga|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function x1(e){var t=yr(),n=t.queue;if(n===null)throw Error(q(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i);jr(o,t.memoizedState)||($n=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function M3(){}function $3(e,t){var n=le,r=yr(),i=t(),o=!jr(r.memoizedState,i);if(o&&(r.memoizedState=i,$n=!0),r=r.queue,$w(R3.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||Ie!==null&&Ie.memoizedState.tag&1){if(n.flags|=2048,Ld(9,O3.bind(null,n,r,i,t),void 0,null),je===null)throw Error(q(349));(pa&30)!==0||P3(n,t,i)}return i}function P3(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=le.updateQueue,t===null?(t={lastEffect:null,stores:null},le.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function O3(e,t,n,r){t.value=n,t.getSnapshot=r,D3(t)&&L3(e)}function R3(e,t,n){return n(function(){D3(t)&&L3(e)})}function D3(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!jr(e,n)}catch(r){return!0}}function L3(e){var t=Yi(e,1);t!==null&&Ir(t,e,1,-1)}function LE(e){var t=Xr();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Dd,lastRenderedState:e},t.queue=e,e=e.dispatch=zV.bind(null,le,e),[t.memoizedState,e]}function Ld(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=le.updateQueue,t===null?(t={lastEffect:null,stores:null},le.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function I3(){return yr().memoizedState}function Gp(e,t,n,r){var i=Xr();le.flags|=e,i.memoizedState=Ld(1|t,n,void 0,r===void 0?null:r)}function E0(e,t,n,r){var i=yr();r=r===void 0?null:r;var o=void 0;if(Me!==null){var s=Me.memoizedState;if(o=s.destroy,r!==null&&kw(r,s.deps)){i.memoizedState=Ld(t,n,o,r);return}}le.flags|=e,i.memoizedState=Ld(1|t,n,o,r)}function IE(e,t){return Gp(8390656,8,e,t)}function $w(e,t){return E0(2048,8,e,t)}function N3(e,t){return E0(4,2,e,t)}function F3(e,t){return E0(4,4,e,t)}function z3(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function B3(e,t,n){return n=n!=null?n.concat([e]):null,E0(4,4,z3.bind(null,t,e),n)}function Pw(){}function V3(e,t){var n=yr();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&kw(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function j3(e,t){var n=yr();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&kw(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function H3(e,t,n){return(pa&21)===0?(e.baseState&&(e.baseState=!1,$n=!0),e.memoizedState=n):(jr(n,t)||(n=YO(),le.lanes|=n,ga|=n,e.baseState=!0),t)}function NV(e,t){var n=Mt;Mt=n!==0&&4>n?n:4,e(!0);var r=v1.transition;v1.transition={};try{e(!1),t()}finally{Mt=n,v1.transition=r}}function U3(){return yr().memoizedState}function FV(e,t,n){var r=qo(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},W3(e))Y3(t,n);else if(n=w3(e,t,n,r),n!==null){var i=xn();Ir(n,e,r,i),G3(n,t,r)}}function zV(e,t,n){var r=qo(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(W3(e))Y3(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,a=o(s,n);if(i.hasEagerState=!0,i.eagerState=a,jr(a,s)){var l=t.interleaved;l===null?(i.next=i,ww(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch(c){}finally{}n=w3(e,t,i,r),n!==null&&(i=xn(),Ir(n,e,r,i),G3(n,t,r))}}function W3(e){var t=e.alternate;return e===le||t!==null&&t===le}function Y3(e,t){Cu=nm=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function G3(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,lw(e,n)}}var rm={readContext:vr,useCallback:Ke,useContext:Ke,useEffect:Ke,useImperativeHandle:Ke,useInsertionEffect:Ke,useLayoutEffect:Ke,useMemo:Ke,useReducer:Ke,useRef:Ke,useState:Ke,useDebugValue:Ke,useDeferredValue:Ke,useTransition:Ke,useMutableSource:Ke,useSyncExternalStore:Ke,useId:Ke,unstable_isNewReconciler:!1},BV={readContext:vr,useCallback:function(e,t){return Xr().memoizedState=[e,t===void 0?null:t],e},useContext:vr,useEffect:IE,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Gp(4194308,4,z3.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Gp(4194308,4,e,t)},useInsertionEffect:function(e,t){return Gp(4,2,e,t)},useMemo:function(e,t){var n=Xr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Xr();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=FV.bind(null,le,e),[r.memoizedState,e]},useRef:function(e){var t=Xr();return e={current:e},t.memoizedState=e},useState:LE,useDebugValue:Pw,useDeferredValue:function(e){return Xr().memoizedState=e},useTransition:function(){var e=LE(!1),t=e[0];return e=NV.bind(null,e[1]),Xr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=le,i=Xr();if(ne){if(n===void 0)throw Error(q(407));n=n()}else{if(n=t(),je===null)throw Error(q(349));(pa&30)!==0||P3(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,IE(R3.bind(null,r,o,e),[e]),r.flags|=2048,Ld(9,O3.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Xr(),t=je.identifierPrefix;if(ne){var n=Di,r=Ri;n=(r&~(1<<32-Lr(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Rd++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=IV++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},VV={readContext:vr,useCallback:V3,useContext:vr,useEffect:$w,useImperativeHandle:B3,useInsertionEffect:N3,useLayoutEffect:F3,useMemo:j3,useReducer:y1,useRef:I3,useState:function(){return y1(Dd)},useDebugValue:Pw,useDeferredValue:function(e){var t=yr();return H3(t,Me.memoizedState,e)},useTransition:function(){var e=y1(Dd)[0],t=yr().memoizedState;return[e,t]},useMutableSource:M3,useSyncExternalStore:$3,useId:U3,unstable_isNewReconciler:!1},jV={readContext:vr,useCallback:V3,useContext:vr,useEffect:$w,useImperativeHandle:B3,useInsertionEffect:N3,useLayoutEffect:F3,useMemo:j3,useReducer:x1,useRef:I3,useState:function(){return x1(Dd)},useDebugValue:Pw,useDeferredValue:function(e){var t=yr();return Me===null?t.memoizedState=e:H3(t,Me.memoizedState,e)},useTransition:function(){var e=x1(Dd)[0],t=yr().memoizedState;return[e,t]},useMutableSource:M3,useSyncExternalStore:$3,useId:U3,unstable_isNewReconciler:!1};function zl(e,t){try{var n="",r=t;do n+=mB(r),r=r.return;while(r);var i=n}catch(o){i=`
|
|
31
|
+
Error generating stack: `+o.message+`
|
|
32
|
+
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function b1(e,t,n){return{value:e,source:null,stack:n!=null?n:null,digest:t!=null?t:null}}function Rx(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var HV=typeof WeakMap=="function"?WeakMap:Map;function q3(e,t,n){n=zi(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){om||(om=!0,Hx=r),Rx(e,t)},n}function X3(e,t,n){n=zi(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Rx(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Rx(e,t),typeof r!="function"&&(Go===null?Go=new Set([this]):Go.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function NE(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new HV;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=rj.bind(null,e,t,n),t.then(e,e))}function FE(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function zE(e,t,n,r,i){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=zi(-1,1),t.tag=2,Yo(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var UV=no.ReactCurrentOwner,$n=!1;function gn(e,t,n,r){t.child=e===null?k3(t,null,n,r):Nl(t,e.child,n,r)}function BE(e,t,n,r,i){n=n.render;var o=t.ref;return _l(t,i),r=Tw(e,t,n,r,o,i),n=Mw(),e!==null&&!$n?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Gi(e,t,i)):(ne&&n&&mw(t),t.flags|=1,gn(e,t,r,i),t.child)}function VE(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!zw(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Q3(e,t,o,r,i)):(e=Kp(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,(e.lanes&i)===0){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:kd,n(s,r)&&e.ref===t.ref)return Gi(e,t,i)}return t.flags|=1,e=Xo(o,r),e.ref=t.ref,e.return=t,t.child=e}function Q3(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(kd(o,r)&&e.ref===t.ref)if($n=!1,t.pendingProps=r=o,(e.lanes&i)!==0)(e.flags&131072)!==0&&($n=!0);else return t.lanes=e.lanes,Gi(e,t,i)}return Dx(e,t,n,r,i)}function K3(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ht(il,Yn),Yn|=n;else{if((n&1073741824)===0)return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ht(il,Yn),Yn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Ht(il,Yn),Yn|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Ht(il,Yn),Yn|=r;return gn(e,t,i,n),t.child}function Z3(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Dx(e,t,n,r,i){var o=In(n)?ha:cn.current;return o=Ll(t,o),_l(t,i),n=Tw(e,t,n,r,o,i),r=Mw(),e!==null&&!$n?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Gi(e,t,i)):(ne&&r&&mw(t),t.flags|=1,gn(e,t,n,i),t.child)}function jE(e,t,n,r,i){if(In(n)){var o=!0;Xg(t)}else o=!1;if(_l(t,i),t.stateNode===null)qp(e,t),E3(t,n,r),Ox(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,c=n.contextType;typeof c=="object"&&c!==null?c=vr(c):(c=In(n)?ha:cn.current,c=Ll(t,c));var u=n.getDerivedStateFromProps,d=typeof u=="function"||typeof s.getSnapshotBeforeUpdate=="function";d||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||l!==c)&&RE(t,s,r,c),xo=!1;var h=t.memoizedState;s.state=h,tm(t,r,s,i),l=t.memoizedState,a!==r||h!==l||Ln.current||xo?(typeof u=="function"&&(Px(t,n,u,r),l=t.memoizedState),(a=xo||OE(t,n,a,r,h,l,c))?(d||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=c,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,A3(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:Tr(t.type,a),s.props=c,d=t.pendingProps,h=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=vr(l):(l=In(n)?ha:cn.current,l=Ll(t,l));var f=n.getDerivedStateFromProps;(u=typeof f=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==d||h!==l)&&RE(t,s,r,l),xo=!1,h=t.memoizedState,s.state=h,tm(t,r,s,i);var p=t.memoizedState;a!==d||h!==p||Ln.current||xo?(typeof f=="function"&&(Px(t,n,f,r),p=t.memoizedState),(c=xo||OE(t,n,c,r,h,p,l)||!1)?(u||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,p,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,p,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),s.props=r,s.state=p,s.context=l,r=c):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return Lx(e,t,n,r,o,i)}function Lx(e,t,n,r,i,o){Z3(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&kE(t,n,!1),Gi(e,t,o);r=t.stateNode,UV.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Nl(t,e.child,null,o),t.child=Nl(t,null,a,o)):gn(e,t,a,o),t.memoizedState=r.state,i&&kE(t,n,!0),t.child}function J3(e){var t=e.stateNode;t.pendingContext?CE(e,t.pendingContext,t.pendingContext!==t.context):t.context&&CE(e,t.context,!1),Sw(e,t.containerInfo)}function HE(e,t,n,r,i){return Il(),yw(i),t.flags|=256,gn(e,t,n,r),t.child}var Ix={dehydrated:null,treeContext:null,retryLane:0};function Nx(e){return{baseLanes:e,cachePool:null,transitions:null}}function tR(e,t,n){var r=t.pendingProps,i=ae.current,o=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Ht(ae,i&1),e===null)return Mx(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(s=r.children,e=r.fallback,o?(r=t.mode,o=t.child,s={mode:"hidden",children:s},(r&1)===0&&o!==null?(o.childLanes=0,o.pendingProps=s):o=T0(s,r,0,null),e=ra(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Nx(n),t.memoizedState=Ix,e):Ow(t,s));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return WV(e,t,s,r,a,i,n);if(o){o=r.fallback,s=t.mode,i=e.child,a=i.sibling;var l={mode:"hidden",children:r.children};return(s&1)===0&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Xo(i,l),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?o=Xo(a,o):(o=ra(o,s,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,s=e.child.memoizedState,s=s===null?Nx(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=Ix,r}return o=e.child,e=o.sibling,r=Xo(o,{mode:"visible",children:r.children}),(t.mode&1)===0&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Ow(e,t){return t=T0({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function _f(e,t,n,r){return r!==null&&yw(r),Nl(t,e.child,null,n),e=Ow(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function WV(e,t,n,r,i,o,s){if(n)return t.flags&256?(t.flags&=-257,r=b1(Error(q(422))),_f(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=T0({mode:"visible",children:r.children},i,0,null),o=ra(o,i,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,(t.mode&1)!==0&&Nl(t,e.child,null,s),t.child.memoizedState=Nx(s),t.memoizedState=Ix,o);if((t.mode&1)===0)return _f(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,o=Error(q(419)),r=b1(o,r,void 0),_f(e,t,s,r)}if(a=(s&e.childLanes)!==0,$n||a){if(r=je,r!==null){switch(s&-s){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|s))!==0?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,Yi(e,i),Ir(r,e,i,-1))}return Fw(),r=b1(Error(q(421))),_f(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=ij.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Kn=Wo(i.nextSibling),Jn=t,ne=!0,Or=null,e!==null&&(ur[dr++]=Ri,ur[dr++]=Di,ur[dr++]=fa,Ri=e.id,Di=e.overflow,fa=t),t=Ow(t,r.children),t.flags|=4096,t)}function UE(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),$x(e.return,t,n)}function _1(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function eR(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(gn(e,t,r.children,n),r=ae.current,(r&2)!==0)r=r&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)t:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&UE(e,n,t);else if(e.tag===19)UE(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ht(ae,r),(t.mode&1)===0)t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&em(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),_1(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&em(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}_1(t,!0,n,null,o);break;case"together":_1(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function qp(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Gi(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ga|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(q(153));if(t.child!==null){for(e=t.child,n=Xo(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Xo(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function YV(e,t,n){switch(t.tag){case 3:J3(t),Il();break;case 5:T3(t);break;case 1:In(t.type)&&Xg(t);break;case 4:Sw(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Ht(Zg,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Ht(ae,ae.current&1),t.flags|=128,null):(n&t.child.childLanes)!==0?tR(e,t,n):(Ht(ae,ae.current&1),e=Gi(e,t,n),e!==null?e.sibling:null);Ht(ae,ae.current&1);break;case 19:if(r=(n&t.childLanes)!==0,(e.flags&128)!==0){if(r)return eR(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ht(ae,ae.current),r)break;return null;case 22:case 23:return t.lanes=0,K3(e,t,n)}return Gi(e,t,n)}var nR,Fx,rR,iR;nR=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Fx=function(){};rR=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,qs(si.current);var o=null;switch(n){case"input":i=sx(e,i),r=sx(e,r),o=[];break;case"select":i=ce({},i,{value:void 0}),r=ce({},r,{value:void 0}),o=[];break;case"textarea":i=cx(e,i),r=cx(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Gg)}dx(n,r);var s;n=null;for(c in i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var a=i[c];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(bd.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in r){var l=r[c];if(a=i!=null?i[c]:void 0,r.hasOwnProperty(c)&&l!==a&&(l!=null||a!=null))if(c==="style")if(a){for(s in a)!a.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in l)l.hasOwnProperty(s)&&a[s]!==l[s]&&(n||(n={}),n[s]=l[s])}else n||(o||(o=[]),o.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(o=o||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(bd.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&qt("scroll",e),o||a===l||(o=[])):(o=o||[]).push(c,l))}n&&(o=o||[]).push("style",n);var c=o;(t.updateQueue=c)&&(t.flags|=4)}};iR=function(e,t,n,r){n!==r&&(t.flags|=4)};function Vc(e,t){if(!ne)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ze(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function GV(e,t,n){var r=t.pendingProps;switch(vw(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ze(t),null;case 1:return In(t.type)&&qg(),Ze(t),null;case 3:return r=t.stateNode,Fl(),Jt(Ln),Jt(cn),Cw(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(xf(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Or!==null&&(Yx(Or),Or=null))),Fx(e,t),Ze(t),null;case 5:Ew(t);var i=qs(Od.current);if(n=t.type,e!==null&&t.stateNode!=null)rR(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(q(166));return Ze(t),null}if(e=qs(si.current),xf(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[ti]=t,r[$d]=o,e=(t.mode&1)!==0,n){case"dialog":qt("cancel",r),qt("close",r);break;case"iframe":case"object":case"embed":qt("load",r);break;case"video":case"audio":for(i=0;i<lu.length;i++)qt(lu[i],r);break;case"source":qt("error",r);break;case"img":case"image":case"link":qt("error",r),qt("load",r);break;case"details":qt("toggle",r);break;case"input":JS(r,o),qt("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},qt("invalid",r);break;case"textarea":eE(r,o),qt("invalid",r)}dx(n,o),i=null;for(var s in o)if(o.hasOwnProperty(s)){var a=o[s];s==="children"?typeof a=="string"?r.textContent!==a&&(o.suppressHydrationWarning!==!0&&yf(r.textContent,a,e),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(o.suppressHydrationWarning!==!0&&yf(r.textContent,a,e),i=["children",""+a]):bd.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&qt("scroll",r)}switch(n){case"input":uf(r),tE(r,o,!0);break;case"textarea":uf(r),nE(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Gg)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=PO(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[ti]=t,e[$d]=r,nR(e,t,!1,!1),t.stateNode=e;t:{switch(s=hx(n,r),n){case"dialog":qt("cancel",e),qt("close",e),i=r;break;case"iframe":case"object":case"embed":qt("load",e),i=r;break;case"video":case"audio":for(i=0;i<lu.length;i++)qt(lu[i],e);i=r;break;case"source":qt("error",e),i=r;break;case"img":case"image":case"link":qt("error",e),qt("load",e),i=r;break;case"details":qt("toggle",e),i=r;break;case"input":JS(e,r),i=sx(e,r),qt("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=ce({},r,{value:void 0}),qt("invalid",e);break;case"textarea":eE(e,r),i=cx(e,r),qt("invalid",e);break;default:i=r}dx(n,i),a=i;for(o in a)if(a.hasOwnProperty(o)){var l=a[o];o==="style"?DO(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&OO(e,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&_d(e,l):typeof l=="number"&&_d(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(bd.hasOwnProperty(o)?l!=null&&o==="onScroll"&&qt("scroll",e):l!=null&&nw(e,o,l,s))}switch(n){case"input":uf(e),tE(e,r,!1);break;case"textarea":uf(e),nE(e);break;case"option":r.value!=null&&e.setAttribute("value",""+ns(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?vl(e,!!r.multiple,o,!1):r.defaultValue!=null&&vl(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Gg)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break t;case"img":r=!0;break t;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Ze(t),null;case 6:if(e&&t.stateNode!=null)iR(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(q(166));if(n=qs(Od.current),qs(si.current),xf(t)){if(r=t.stateNode,n=t.memoizedProps,r[ti]=t,(o=r.nodeValue!==n)&&(e=Jn,e!==null))switch(e.tag){case 3:yf(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&yf(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[ti]=t,t.stateNode=r}return Ze(t),null;case 13:if(Jt(ae),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ne&&Kn!==null&&(t.mode&1)!==0&&(t.flags&128)===0)_3(),Il(),t.flags|=98560,o=!1;else if(o=xf(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(q(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(q(317));o[ti]=t}else Il(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ze(t),o=!1}else Or!==null&&(Yx(Or),Or=null),o=!0;if(!o)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(ae.current&1)!==0?$e===0&&($e=3):Fw())),t.updateQueue!==null&&(t.flags|=4),Ze(t),null);case 4:return Fl(),Fx(e,t),e===null&&Td(t.stateNode.containerInfo),Ze(t),null;case 10:return _w(t.type._context),Ze(t),null;case 17:return In(t.type)&&qg(),Ze(t),null;case 19:if(Jt(ae),o=t.memoizedState,o===null)return Ze(t),null;if(r=(t.flags&128)!==0,s=o.rendering,s===null)if(r)Vc(o,!1);else{if($e!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=em(e),s!==null){for(t.flags|=128,Vc(o,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,s=o.alternate,s===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ht(ae,ae.current&1|2),t.child}e=e.sibling}o.tail!==null&&be()>Bl&&(t.flags|=128,r=!0,Vc(o,!1),t.lanes=4194304)}else{if(!r)if(e=em(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Vc(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!ne)return Ze(t),null}else 2*be()-o.renderingStartTime>Bl&&n!==1073741824&&(t.flags|=128,r=!0,Vc(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=be(),t.sibling=null,n=ae.current,Ht(ae,r?n&1|2:n&1),t):(Ze(t),null);case 22:case 23:return Nw(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(Yn&1073741824)!==0&&(Ze(t),t.subtreeFlags&6&&(t.flags|=8192)):Ze(t),null;case 24:return null;case 25:return null}throw Error(q(156,t.tag))}function qV(e,t){switch(vw(t),t.tag){case 1:return In(t.type)&&qg(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Fl(),Jt(Ln),Jt(cn),Cw(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Ew(t),null;case 13:if(Jt(ae),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(q(340));Il()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Jt(ae),null;case 4:return Fl(),null;case 10:return _w(t.type._context),null;case 22:case 23:return Nw(),null;case 24:return null;default:return null}}var wf=!1,nn=!1,XV=typeof WeakSet=="function"?WeakSet:Set,J=null;function rl(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){de(e,t,r)}else n.current=null}function zx(e,t,n){try{n()}catch(r){de(e,t,r)}}var WE=!1;function QV(e,t){if(wx=Ug,e=l3(),gw(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else t:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch(_){n=null;break t}var s=0,a=-1,l=-1,c=0,u=0,d=e,h=null;e:for(;;){for(var f;d!==n||i!==0&&d.nodeType!==3||(a=s+i),d!==o||r!==0&&d.nodeType!==3||(l=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(f=d.firstChild)!==null;)h=d,d=f;for(;;){if(d===e)break e;if(h===n&&++c===i&&(a=s),h===o&&++u===r&&(l=s),(f=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=f}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ax={focusedElem:e,selectionRange:n},Ug=!1,J=t;J!==null;)if(t=J,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,J=e;else for(;J!==null;){t=J;try{var p=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var g=p.memoizedProps,y=p.memoizedState,m=t.stateNode,x=m.getSnapshotBeforeUpdate(t.elementType===t.type?g:Tr(t.type,g),y);m.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(q(163))}}catch(_){de(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,J=e;break}J=t.return}return p=WE,WE=!1,p}function ku(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&zx(t,n,o)}i=i.next}while(i!==r)}}function C0(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Bx(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function oR(e){var t=e.alternate;t!==null&&(e.alternate=null,oR(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ti],delete t[$d],delete t[Cx],delete t[OV],delete t[RV])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function sR(e){return e.tag===5||e.tag===3||e.tag===4}function YE(e){t:for(;;){for(;e.sibling===null;){if(e.return===null||sR(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue t;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Vx(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Gg));else if(r!==4&&(e=e.child,e!==null))for(Vx(e,t,n),e=e.sibling;e!==null;)Vx(e,t,n),e=e.sibling}function jx(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(jx(e,t,n),e=e.sibling;e!==null;)jx(e,t,n),e=e.sibling}var Ue=null,$r=!1;function oo(e,t,n){for(n=n.child;n!==null;)aR(e,t,n),n=n.sibling}function aR(e,t,n){if(oi&&typeof oi.onCommitFiberUnmount=="function")try{oi.onCommitFiberUnmount(y0,n)}catch(a){}switch(n.tag){case 5:nn||rl(n,t);case 6:var r=Ue,i=$r;Ue=null,oo(e,t,n),Ue=r,$r=i,Ue!==null&&($r?(e=Ue,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ue.removeChild(n.stateNode));break;case 18:Ue!==null&&($r?(e=Ue,n=n.stateNode,e.nodeType===8?p1(e.parentNode,n):e.nodeType===1&&p1(e,n),Ed(e)):p1(Ue,n.stateNode));break;case 4:r=Ue,i=$r,Ue=n.stateNode.containerInfo,$r=!0,oo(e,t,n),Ue=r,$r=i;break;case 0:case 11:case 14:case 15:if(!nn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&((o&2)!==0||(o&4)!==0)&&zx(n,t,s),i=i.next}while(i!==r)}oo(e,t,n);break;case 1:if(!nn&&(rl(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){de(n,t,a)}oo(e,t,n);break;case 21:oo(e,t,n);break;case 22:n.mode&1?(nn=(r=nn)||n.memoizedState!==null,oo(e,t,n),nn=r):oo(e,t,n);break;default:oo(e,t,n)}}function GE(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new XV),t.forEach(function(r){var i=oj.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Sr(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,s=t,a=s;t:for(;a!==null;){switch(a.tag){case 5:Ue=a.stateNode,$r=!1;break t;case 3:Ue=a.stateNode.containerInfo,$r=!0;break t;case 4:Ue=a.stateNode.containerInfo,$r=!0;break t}a=a.return}if(Ue===null)throw Error(q(160));aR(o,s,i),Ue=null,$r=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(c){de(i,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)lR(t,e),t=t.sibling}function lR(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Sr(t,e),Yr(e),r&4){try{ku(3,e,e.return),C0(3,e)}catch(g){de(e,e.return,g)}try{ku(5,e,e.return)}catch(g){de(e,e.return,g)}}break;case 1:Sr(t,e),Yr(e),r&512&&n!==null&&rl(n,n.return);break;case 5:if(Sr(t,e),Yr(e),r&512&&n!==null&&rl(n,n.return),e.flags&32){var i=e.stateNode;try{_d(i,"")}catch(g){de(e,e.return,g)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,s=n!==null?n.memoizedProps:o,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&o.type==="radio"&&o.name!=null&&MO(i,o),hx(a,s);var c=hx(a,o);for(s=0;s<l.length;s+=2){var u=l[s],d=l[s+1];u==="style"?DO(i,d):u==="dangerouslySetInnerHTML"?OO(i,d):u==="children"?_d(i,d):nw(i,u,d,c)}switch(a){case"input":ax(i,o);break;case"textarea":$O(i,o);break;case"select":var h=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var f=o.value;f!=null?vl(i,!!o.multiple,f,!1):h!==!!o.multiple&&(o.defaultValue!=null?vl(i,!!o.multiple,o.defaultValue,!0):vl(i,!!o.multiple,o.multiple?[]:"",!1))}i[$d]=o}catch(g){de(e,e.return,g)}}break;case 6:if(Sr(t,e),Yr(e),r&4){if(e.stateNode===null)throw Error(q(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(g){de(e,e.return,g)}}break;case 3:if(Sr(t,e),Yr(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Ed(t.containerInfo)}catch(g){de(e,e.return,g)}break;case 4:Sr(t,e),Yr(e);break;case 13:Sr(t,e),Yr(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(Lw=be())),r&4&&GE(e);break;case 22:if(u=n!==null&&n.memoizedState!==null,e.mode&1?(nn=(c=nn)||u,Sr(t,e),nn=c):Sr(t,e),Yr(e),r&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!u&&(e.mode&1)!==0)for(J=e,u=e.child;u!==null;){for(d=J=u;J!==null;){switch(h=J,f=h.child,h.tag){case 0:case 11:case 14:case 15:ku(4,h,h.return);break;case 1:rl(h,h.return);var p=h.stateNode;if(typeof p.componentWillUnmount=="function"){r=h,n=h.return;try{t=r,p.props=t.memoizedProps,p.state=t.memoizedState,p.componentWillUnmount()}catch(g){de(r,n,g)}}break;case 5:rl(h,h.return);break;case 22:if(h.memoizedState!==null){XE(d);continue}}f!==null?(f.return=h,J=f):XE(d)}u=u.sibling}t:for(u=null,d=e;;){if(d.tag===5){if(u===null){u=d;try{i=d.stateNode,c?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(a=d.stateNode,l=d.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=RO("display",s))}catch(g){de(e,e.return,g)}}}else if(d.tag===6){if(u===null)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(g){de(e,e.return,g)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break t;for(;d.sibling===null;){if(d.return===null||d.return===e)break t;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Sr(t,e),Yr(e),r&4&&GE(e);break;case 21:break;default:Sr(t,e),Yr(e)}}function Yr(e){var t=e.flags;if(t&2){try{t:{for(var n=e.return;n!==null;){if(sR(n)){var r=n;break t}n=n.return}throw Error(q(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(_d(i,""),r.flags&=-33);var o=YE(e);jx(e,o,i);break;case 3:case 4:var s=r.stateNode.containerInfo,a=YE(e);Vx(e,a,s);break;default:throw Error(q(161))}}catch(l){de(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function KV(e,t,n){J=e,cR(e)}function cR(e,t,n){for(var r=(e.mode&1)!==0;J!==null;){var i=J,o=i.child;if(i.tag===22&&r){var s=i.memoizedState!==null||wf;if(!s){var a=i.alternate,l=a!==null&&a.memoizedState!==null||nn;a=wf;var c=nn;if(wf=s,(nn=l)&&!c)for(J=i;J!==null;)s=J,l=s.child,s.tag===22&&s.memoizedState!==null?QE(i):l!==null?(l.return=s,J=l):QE(i);for(;o!==null;)J=o,cR(o),o=o.sibling;J=i,wf=a,nn=c}qE(e)}else(i.subtreeFlags&8772)!==0&&o!==null?(o.return=i,J=o):qE(e)}}function qE(e){for(;J!==null;){var t=J;if((t.flags&8772)!==0){var n=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:nn||C0(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!nn)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Tr(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&PE(t,o,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}PE(t,s,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var u=c.memoizedState;if(u!==null){var d=u.dehydrated;d!==null&&Ed(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(q(163))}nn||t.flags&512&&Bx(t)}catch(h){de(t,t.return,h)}}if(t===e){J=null;break}if(n=t.sibling,n!==null){n.return=t.return,J=n;break}J=t.return}}function XE(e){for(;J!==null;){var t=J;if(t===e){J=null;break}var n=t.sibling;if(n!==null){n.return=t.return,J=n;break}J=t.return}}function QE(e){for(;J!==null;){var t=J;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{C0(4,t)}catch(l){de(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){de(t,i,l)}}var o=t.return;try{Bx(t)}catch(l){de(t,o,l)}break;case 5:var s=t.return;try{Bx(t)}catch(l){de(t,s,l)}}}catch(l){de(t,t.return,l)}if(t===e){J=null;break}var a=t.sibling;if(a!==null){a.return=t.return,J=a;break}J=t.return}}var ZV=Math.ceil,im=no.ReactCurrentDispatcher,Rw=no.ReactCurrentOwner,gr=no.ReactCurrentBatchConfig,yt=0,je=null,Ce=null,Xe=0,Yn=0,il=ms(0),$e=0,Id=null,ga=0,k0=0,Dw=0,Tu=null,Cn=null,Lw=0,Bl=1/0,Ei=null,om=!1,Hx=null,Go=null,Af=!1,ko=null,sm=0,Mu=0,Ux=null,Xp=-1,Qp=0;function xn(){return(yt&6)!==0?be():Xp!==-1?Xp:Xp=be()}function qo(e){return(e.mode&1)===0?1:(yt&2)!==0&&Xe!==0?Xe&-Xe:LV.transition!==null?(Qp===0&&(Qp=YO()),Qp):(e=Mt,e!==0||(e=window.event,e=e===void 0?16:JO(e.type)),e)}function Ir(e,t,n,r){if(50<Mu)throw Mu=0,Ux=null,Error(q(185));Ch(e,n,r),((yt&2)===0||e!==je)&&(e===je&&((yt&2)===0&&(k0|=n),$e===4&&So(e,Xe)),Nn(e,r),n===1&&yt===0&&(t.mode&1)===0&&(Bl=be()+500,A0&&vs()))}function Nn(e,t){var n=e.callbackNode;LB(e,t);var r=Hg(e,e===je?Xe:0);if(r===0)n!==null&&oE(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&oE(n),t===1)e.tag===0?DV(KE.bind(null,e)):y3(KE.bind(null,e)),$V(function(){(yt&6)===0&&vs()}),n=null;else{switch(GO(r)){case 1:n=aw;break;case 4:n=UO;break;case 16:n=jg;break;case 536870912:n=WO;break;default:n=jg}n=vR(n,uR.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function uR(e,t){if(Xp=-1,Qp=0,(yt&6)!==0)throw Error(q(327));var n=e.callbackNode;if(wl()&&e.callbackNode!==n)return null;var r=Hg(e,e===je?Xe:0);if(r===0)return null;if((r&30)!==0||(r&e.expiredLanes)!==0||t)t=am(e,r);else{t=r;var i=yt;yt|=2;var o=hR();(je!==e||Xe!==t)&&(Ei=null,Bl=be()+500,na(e,t));do try{ej();break}catch(a){dR(e,a)}while(1);bw(),im.current=o,yt=i,Ce!==null?t=0:(je=null,Xe=0,t=$e)}if(t!==0){if(t===2&&(i=vx(e),i!==0&&(r=i,t=Wx(e,i))),t===1)throw n=Id,na(e,0),So(e,r),Nn(e,be()),n;if(t===6)So(e,r);else{if(i=e.current.alternate,(r&30)===0&&!JV(i)&&(t=am(e,r),t===2&&(o=vx(e),o!==0&&(r=o,t=Wx(e,o))),t===1))throw n=Id,na(e,0),So(e,r),Nn(e,be()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(q(345));case 2:zs(e,Cn,Ei);break;case 3:if(So(e,r),(r&130023424)===r&&(t=Lw+500-be(),10<t)){if(Hg(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){xn(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Ex(zs.bind(null,e,Cn,Ei),t);break}zs(e,Cn,Ei);break;case 4:if(So(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-Lr(r);o=1<<s,s=t[s],s>i&&(i=s),r&=~o}if(r=i,r=be()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ZV(r/1960))-r,10<r){e.timeoutHandle=Ex(zs.bind(null,e,Cn,Ei),r);break}zs(e,Cn,Ei);break;case 5:zs(e,Cn,Ei);break;default:throw Error(q(329))}}}return Nn(e,be()),e.callbackNode===n?uR.bind(null,e):null}function Wx(e,t){var n=Tu;return e.current.memoizedState.isDehydrated&&(na(e,t).flags|=256),e=am(e,t),e!==2&&(t=Cn,Cn=n,t!==null&&Yx(t)),e}function Yx(e){Cn===null?Cn=e:Cn.push.apply(Cn,e)}function JV(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!jr(o(),i))return!1}catch(s){return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function So(e,t){for(t&=~Dw,t&=~k0,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Lr(t),r=1<<n;e[n]=-1,t&=~r}}function KE(e){if((yt&6)!==0)throw Error(q(327));wl();var t=Hg(e,0);if((t&1)===0)return Nn(e,be()),null;var n=am(e,t);if(e.tag!==0&&n===2){var r=vx(e);r!==0&&(t=r,n=Wx(e,r))}if(n===1)throw n=Id,na(e,0),So(e,t),Nn(e,be()),n;if(n===6)throw Error(q(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,zs(e,Cn,Ei),Nn(e,be()),null}function Iw(e,t){var n=yt;yt|=1;try{return e(t)}finally{yt=n,yt===0&&(Bl=be()+500,A0&&vs())}}function ma(e){ko!==null&&ko.tag===0&&(yt&6)===0&&wl();var t=yt;yt|=1;var n=gr.transition,r=Mt;try{if(gr.transition=null,Mt=1,e)return e()}finally{Mt=r,gr.transition=n,yt=t,(yt&6)===0&&vs()}}function Nw(){Yn=il.current,Jt(il)}function na(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,MV(n)),Ce!==null)for(n=Ce.return;n!==null;){var r=n;switch(vw(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&qg();break;case 3:Fl(),Jt(Ln),Jt(cn),Cw();break;case 5:Ew(r);break;case 4:Fl();break;case 13:Jt(ae);break;case 19:Jt(ae);break;case 10:_w(r.type._context);break;case 22:case 23:Nw()}n=n.return}if(je=e,Ce=e=Xo(e.current,null),Xe=Yn=t,$e=0,Id=null,Dw=k0=ga=0,Cn=Tu=null,Gs!==null){for(t=0;t<Gs.length;t++)if(n=Gs[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var s=o.next;o.next=i,r.next=s}n.pending=r}Gs=null}return e}function dR(e,t){do{var n=Ce;try{if(bw(),Yp.current=rm,nm){for(var r=le.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}nm=!1}if(pa=0,Ie=Me=le=null,Cu=!1,Rd=0,Rw.current=null,n===null||n.return===null){$e=1,Id=t,Ce=null;break}t:{var o=e,s=n.return,a=n,l=t;if(t=Xe,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,u=a,d=u.tag;if((u.mode&1)===0&&(d===0||d===11||d===15)){var h=u.alternate;h?(u.updateQueue=h.updateQueue,u.memoizedState=h.memoizedState,u.lanes=h.lanes):(u.updateQueue=null,u.memoizedState=null)}var f=FE(s);if(f!==null){f.flags&=-257,zE(f,s,a,o,t),f.mode&1&&NE(o,c,t),t=f,l=c;var p=t.updateQueue;if(p===null){var g=new Set;g.add(l),t.updateQueue=g}else p.add(l);break t}else{if((t&1)===0){NE(o,c,t),Fw();break t}l=Error(q(426))}}else if(ne&&a.mode&1){var y=FE(s);if(y!==null){(y.flags&65536)===0&&(y.flags|=256),zE(y,s,a,o,t),yw(zl(l,a));break t}}o=l=zl(l,a),$e!==4&&($e=2),Tu===null?Tu=[o]:Tu.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var m=q3(o,l,t);$E(o,m);break t;case 1:a=l;var x=o.type,b=o.stateNode;if((o.flags&128)===0&&(typeof x.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(Go===null||!Go.has(b)))){o.flags|=65536,t&=-t,o.lanes|=t;var _=X3(o,a,t);$E(o,_);break t}}o=o.return}while(o!==null)}pR(n)}catch(w){t=w,Ce===n&&n!==null&&(Ce=n=n.return);continue}break}while(1)}function hR(){var e=im.current;return im.current=rm,e===null?rm:e}function Fw(){($e===0||$e===3||$e===2)&&($e=4),je===null||(ga&268435455)===0&&(k0&268435455)===0||So(je,Xe)}function am(e,t){var n=yt;yt|=2;var r=hR();(je!==e||Xe!==t)&&(Ei=null,na(e,t));do try{tj();break}catch(i){dR(e,i)}while(1);if(bw(),yt=n,im.current=r,Ce!==null)throw Error(q(261));return je=null,Xe=0,$e}function tj(){for(;Ce!==null;)fR(Ce)}function ej(){for(;Ce!==null&&!CB();)fR(Ce)}function fR(e){var t=mR(e.alternate,e,Yn);e.memoizedProps=e.pendingProps,t===null?pR(e):Ce=t,Rw.current=null}function pR(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&32768)===0){if(n=GV(n,t,Yn),n!==null){Ce=n;return}}else{if(n=qV(n,t),n!==null){n.flags&=32767,Ce=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{$e=6,Ce=null;return}}if(t=t.sibling,t!==null){Ce=t;return}Ce=t=e}while(t!==null);$e===0&&($e=5)}function zs(e,t,n){var r=Mt,i=gr.transition;try{gr.transition=null,Mt=1,nj(e,t,n,r)}finally{gr.transition=i,Mt=r}return null}function nj(e,t,n,r){do wl();while(ko!==null);if((yt&6)!==0)throw Error(q(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(q(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(IB(e,o),e===je&&(Ce=je=null,Xe=0),(n.subtreeFlags&2064)===0&&(n.flags&2064)===0||Af||(Af=!0,vR(jg,function(){return wl(),null})),o=(n.flags&15990)!==0,(n.subtreeFlags&15990)!==0||o){o=gr.transition,gr.transition=null;var s=Mt;Mt=1;var a=yt;yt|=4,Rw.current=null,QV(e,n),lR(n,e),wV(Ax),Ug=!!wx,Ax=wx=null,e.current=n,KV(n),kB(),yt=a,Mt=s,gr.transition=o}else e.current=n;if(Af&&(Af=!1,ko=e,sm=i),o=e.pendingLanes,o===0&&(Go=null),$B(n.stateNode),Nn(e,be()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(om)throw om=!1,e=Hx,Hx=null,e;return(sm&1)!==0&&e.tag!==0&&wl(),o=e.pendingLanes,(o&1)!==0?e===Ux?Mu++:(Mu=0,Ux=e):Mu=0,vs(),null}function wl(){if(ko!==null){var e=GO(sm),t=gr.transition,n=Mt;try{if(gr.transition=null,Mt=16>e?16:e,ko===null)var r=!1;else{if(e=ko,ko=null,sm=0,(yt&6)!==0)throw Error(q(331));var i=yt;for(yt|=4,J=e.current;J!==null;){var o=J,s=o.child;if((J.flags&16)!==0){var a=o.deletions;if(a!==null){for(var l=0;l<a.length;l++){var c=a[l];for(J=c;J!==null;){var u=J;switch(u.tag){case 0:case 11:case 15:ku(8,u,o)}var d=u.child;if(d!==null)d.return=u,J=d;else for(;J!==null;){u=J;var h=u.sibling,f=u.return;if(oR(u),u===c){J=null;break}if(h!==null){h.return=f,J=h;break}J=f}}}var p=o.alternate;if(p!==null){var g=p.child;if(g!==null){p.child=null;do{var y=g.sibling;g.sibling=null,g=y}while(g!==null)}}J=o}}if((o.subtreeFlags&2064)!==0&&s!==null)s.return=o,J=s;else t:for(;J!==null;){if(o=J,(o.flags&2048)!==0)switch(o.tag){case 0:case 11:case 15:ku(9,o,o.return)}var m=o.sibling;if(m!==null){m.return=o.return,J=m;break t}J=o.return}}var x=e.current;for(J=x;J!==null;){s=J;var b=s.child;if((s.subtreeFlags&2064)!==0&&b!==null)b.return=s,J=b;else t:for(s=x;J!==null;){if(a=J,(a.flags&2048)!==0)try{switch(a.tag){case 0:case 11:case 15:C0(9,a)}}catch(w){de(a,a.return,w)}if(a===s){J=null;break t}var _=a.sibling;if(_!==null){_.return=a.return,J=_;break t}J=a.return}}if(yt=i,vs(),oi&&typeof oi.onPostCommitFiberRoot=="function")try{oi.onPostCommitFiberRoot(y0,e)}catch(w){}r=!0}return r}finally{Mt=n,gr.transition=t}}return!1}function ZE(e,t,n){t=zl(n,t),t=q3(e,t,1),e=Yo(e,t,1),t=xn(),e!==null&&(Ch(e,1,t),Nn(e,t))}function de(e,t,n){if(e.tag===3)ZE(e,e,n);else for(;t!==null;){if(t.tag===3){ZE(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Go===null||!Go.has(r))){e=zl(n,e),e=X3(t,e,1),t=Yo(t,e,1),e=xn(),t!==null&&(Ch(t,1,e),Nn(t,e));break}}t=t.return}}function rj(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=xn(),e.pingedLanes|=e.suspendedLanes&n,je===e&&(Xe&n)===n&&($e===4||$e===3&&(Xe&130023424)===Xe&&500>be()-Lw?na(e,0):Dw|=n),Nn(e,t)}function gR(e,t){t===0&&((e.mode&1)===0?t=1:(t=ff,ff<<=1,(ff&130023424)===0&&(ff=4194304)));var n=xn();e=Yi(e,t),e!==null&&(Ch(e,t,n),Nn(e,n))}function ij(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),gR(e,n)}function oj(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(q(314))}r!==null&&r.delete(t),gR(e,n)}var mR;mR=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ln.current)$n=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return $n=!1,YV(e,t,n);$n=(e.flags&131072)!==0}else $n=!1,ne&&(t.flags&1048576)!==0&&x3(t,Kg,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;qp(e,t),e=t.pendingProps;var i=Ll(t,cn.current);_l(t,n),i=Tw(null,t,r,e,i,n);var o=Mw();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,In(r)?(o=!0,Xg(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Aw(t),i.updater=S0,t.stateNode=i,i._reactInternals=t,Ox(t,r,e,n),t=Lx(null,t,r,!0,o,n)):(t.tag=0,ne&&o&&mw(t),gn(null,t,i,n),t=t.child),t;case 16:r=t.elementType;t:{switch(qp(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=aj(r),e=Tr(r,e),i){case 0:t=Dx(null,t,r,e,n);break t;case 1:t=jE(null,t,r,e,n);break t;case 11:t=BE(null,t,r,e,n);break t;case 14:t=VE(null,t,r,Tr(r.type,e),n);break t}throw Error(q(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Tr(r,i),Dx(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Tr(r,i),jE(e,t,r,i,n);case 3:t:{if(J3(t),e===null)throw Error(q(387));r=t.pendingProps,o=t.memoizedState,i=o.element,A3(e,t),tm(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=zl(Error(q(423)),t),t=HE(e,t,r,n,i);break t}else if(r!==i){i=zl(Error(q(424)),t),t=HE(e,t,r,n,i);break t}else for(Kn=Wo(t.stateNode.containerInfo.firstChild),Jn=t,ne=!0,Or=null,n=k3(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Il(),r===i){t=Gi(e,t,n);break t}gn(e,t,r,n)}t=t.child}return t;case 5:return T3(t),e===null&&Mx(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,Sx(r,i)?s=null:o!==null&&Sx(r,o)&&(t.flags|=32),Z3(e,t),gn(e,t,s,n),t.child;case 6:return e===null&&Mx(t),null;case 13:return tR(e,t,n);case 4:return Sw(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Nl(t,null,r,n):gn(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Tr(r,i),BE(e,t,r,i,n);case 7:return gn(e,t,t.pendingProps,n),t.child;case 8:return gn(e,t,t.pendingProps.children,n),t.child;case 12:return gn(e,t,t.pendingProps.children,n),t.child;case 10:t:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,Ht(Zg,r._currentValue),r._currentValue=s,o!==null)if(jr(o.value,s)){if(o.children===i.children&&!Ln.current){t=Gi(e,t,n);break t}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){s=o.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=zi(-1,n&-n),l.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),$x(o.return,n,t),a.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(q(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),$x(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}gn(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,_l(t,n),i=vr(i),r=r(i),t.flags|=1,gn(e,t,r,n),t.child;case 14:return r=t.type,i=Tr(r,t.pendingProps),i=Tr(r.type,i),VE(e,t,r,i,n);case 15:return Q3(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Tr(r,i),qp(e,t),t.tag=1,In(r)?(e=!0,Xg(t)):e=!1,_l(t,n),E3(t,r,i),Ox(t,r,i,n),Lx(null,t,r,!0,e,n);case 19:return eR(e,t,n);case 22:return K3(e,t,n)}throw Error(q(156,t.tag))};function vR(e,t){return HO(e,t)}function sj(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function hr(e,t,n,r){return new sj(e,t,n,r)}function zw(e){return e=e.prototype,!(!e||!e.isReactComponent)}function aj(e){if(typeof e=="function")return zw(e)?1:0;if(e!=null){if(e=e.$$typeof,e===iw)return 11;if(e===ow)return 14}return 2}function Xo(e,t){var n=e.alternate;return n===null?(n=hr(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Kp(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")zw(e)&&(s=1);else if(typeof e=="string")s=5;else t:switch(e){case qa:return ra(n.children,i,o,t);case rw:s=8,i|=8;break;case nx:return e=hr(12,n,t,i|2),e.elementType=nx,e.lanes=o,e;case rx:return e=hr(13,n,t,i),e.elementType=rx,e.lanes=o,e;case ix:return e=hr(19,n,t,i),e.elementType=ix,e.lanes=o,e;case CO:return T0(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case SO:s=10;break t;case EO:s=9;break t;case iw:s=11;break t;case ow:s=14;break t;case yo:s=16,r=null;break t}throw Error(q(130,e==null?e:typeof e,""))}return t=hr(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function ra(e,t,n,r){return e=hr(7,e,r,t),e.lanes=n,e}function T0(e,t,n,r){return e=hr(22,e,r,t),e.elementType=CO,e.lanes=n,e.stateNode={isHidden:!1},e}function w1(e,t,n){return e=hr(6,e,null,t),e.lanes=n,e}function A1(e,t,n){return t=hr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function lj(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=r1(0),this.expirationTimes=r1(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=r1(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Bw(e,t,n,r,i,o,s,a,l){return e=new lj(e,t,n,a,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=hr(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Aw(o),e}function cj(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ga,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function yR(e){if(!e)return rs;e=e._reactInternals;t:{if(Sa(e)!==e||e.tag!==1)throw Error(q(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break t;case 1:if(In(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break t}}t=t.return}while(t!==null);throw Error(q(171))}if(e.tag===1){var n=e.type;if(In(n))return v3(e,n,t)}return t}function xR(e,t,n,r,i,o,s,a,l){return e=Bw(n,r,!0,e,i,o,s,a,l),e.context=yR(null),n=e.current,r=xn(),i=qo(n),o=zi(r,i),o.callback=t!=null?t:null,Yo(n,o,i),e.current.lanes=i,Ch(e,i,r),Nn(e,r),e}function M0(e,t,n,r){var i=t.current,o=xn(),s=qo(i);return n=yR(n),t.context===null?t.context=n:t.pendingContext=n,t=zi(o,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Yo(i,t,s),e!==null&&(Ir(e,i,s,o),Wp(e,i,s)),s}function lm(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function JE(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Vw(e,t){JE(e,t),(e=e.alternate)&&JE(e,t)}function uj(){return null}var bR=typeof reportError=="function"?reportError:function(e){console.error(e)};function jw(e){this._internalRoot=e}$0.prototype.render=jw.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(q(409));M0(e,t,null,null)};$0.prototype.unmount=jw.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ma(function(){M0(null,e,null,null)}),t[Wi]=null}};function $0(e){this._internalRoot=e}$0.prototype.unstable_scheduleHydration=function(e){if(e){var t=QO();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ao.length&&t!==0&&t<Ao[n].priority;n++);Ao.splice(n,0,e),n===0&&ZO(e)}};function Hw(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function P0(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function tC(){}function dj(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var c=lm(s);o.call(c)}}var s=xR(t,r,e,0,null,!1,!1,"",tC);return e._reactRootContainer=s,e[Wi]=s.current,Td(e.nodeType===8?e.parentNode:e),ma(),s}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var c=lm(l);a.call(c)}}var l=Bw(e,0,!1,null,null,!1,!1,"",tC);return e._reactRootContainer=l,e[Wi]=l.current,Td(e.nodeType===8?e.parentNode:e),ma(function(){M0(t,l,n,r)}),l}function O0(e,t,n,r,i){var o=n._reactRootContainer;if(o){var s=o;if(typeof i=="function"){var a=i;i=function(){var l=lm(s);a.call(l)}}M0(t,s,e,i)}else s=dj(n,t,e,i,r);return lm(s)}qO=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=au(t.pendingLanes);n!==0&&(lw(t,n|1),Nn(t,be()),(yt&6)===0&&(Bl=be()+500,vs()))}break;case 13:ma(function(){var r=Yi(e,1);if(r!==null){var i=xn();Ir(r,e,1,i)}}),Vw(e,1)}};cw=function(e){if(e.tag===13){var t=Yi(e,134217728);if(t!==null){var n=xn();Ir(t,e,134217728,n)}Vw(e,134217728)}};XO=function(e){if(e.tag===13){var t=qo(e),n=Yi(e,t);if(n!==null){var r=xn();Ir(n,e,t,r)}Vw(e,t)}};QO=function(){return Mt};KO=function(e,t){var n=Mt;try{return Mt=e,t()}finally{Mt=n}};px=function(e,t,n){switch(t){case"input":if(ax(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=w0(r);if(!i)throw Error(q(90));TO(r),ax(r,i)}}}break;case"textarea":$O(e,n);break;case"select":t=n.value,t!=null&&vl(e,!!n.multiple,t,!1)}};NO=Iw;FO=ma;var hj={usingClientEntryPoint:!1,Events:[Th,Za,w0,LO,IO,Iw]},jc={findFiberByHostInstance:Ys,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},fj={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:no.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=VO(e),e===null?null:e.stateNode},findFiberByHostInstance:jc.findFiberByHostInstance||uj,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 Sf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Sf.isDisabled&&Sf.supportsFiber)try{y0=Sf.inject(fj),oi=Sf}catch(e){}}ir.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=hj;ir.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Hw(t))throw Error(q(200));return cj(e,t,null,n)};ir.createRoot=function(e,t){if(!Hw(e))throw Error(q(299));var n=!1,r="",i=bR;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Bw(e,1,!1,null,null,n,!1,r,i),e[Wi]=t.current,Td(e.nodeType===8?e.parentNode:e),new jw(t)};ir.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(q(188)):(e=Object.keys(e).join(","),Error(q(268,e)));return e=VO(t),e=e===null?null:e.stateNode,e};ir.flushSync=function(e){return ma(e)};ir.hydrate=function(e,t,n){if(!P0(t))throw Error(q(200));return O0(null,e,t,!0,n)};ir.hydrateRoot=function(e,t,n){if(!Hw(e))throw Error(q(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",s=bR;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=xR(t,null,e,1,n!=null?n:null,i,!1,o,s),e[Wi]=t.current,Td(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new $0(t)};ir.render=function(e,t,n){if(!P0(t))throw Error(q(200));return O0(null,e,t,!1,n)};ir.unmountComponentAtNode=function(e){if(!P0(e))throw Error(q(40));return e._reactRootContainer?(ma(function(){O0(null,null,e,!1,function(){e._reactRootContainer=null,e[Wi]=null})}),!0):!1};ir.unstable_batchedUpdates=Iw;ir.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!P0(n))throw Error(q(200));if(e==null||e._reactInternals===void 0)throw Error(q(38));return O0(e,t,n,!1,r)};ir.version="18.2.0-next-9e3b772b8-20220608";(function(e){function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}t(),e.exports=ir})(Vn);const _R=hO(Vn.exports);var eC=Vn.exports;tx.createRoot=eC.createRoot,tx.hydrateRoot=eC.hydrateRoot;const wR=Object.prototype.toString;function AR(e){switch(wR.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return hi(e,Error)}}function gc(e,t){return wR.call(e)===`[object ${t}]`}function SR(e){return gc(e,"ErrorEvent")}function nC(e){return gc(e,"DOMError")}function pj(e){return gc(e,"DOMException")}function is(e){return gc(e,"String")}function ER(e){return e===null||typeof e!="object"&&typeof e!="function"}function Vl(e){return gc(e,"Object")}function Uw(e){return typeof Event<"u"&&hi(e,Event)}function gj(e){return typeof Element<"u"&&hi(e,Element)}function mj(e){return gc(e,"RegExp")}function Ww(e){return Boolean(e&&e.then&&typeof e.then=="function")}function vj(e){return Vl(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function CR(e){return typeof e=="number"&&e!==e}function hi(e,t){try{return e instanceof t}catch(n){return!1}}function Ef(e){return e&&e.Math==Math?e:void 0}const tr=typeof globalThis=="object"&&Ef(globalThis)||typeof window=="object"&&Ef(window)||typeof self=="object"&&Ef(self)||typeof global=="object"&&Ef(global)||function(){return this}()||{};function R0(){return tr}function Yw(e,t,n){const r=n||tr,i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}const Zp=R0(),yj=80;function jl(e,t={}){try{let n=e;const r=5,i=[];let o=0,s=0;const a=" > ",l=a.length;let c;const u=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||yj;for(;n&&o++<r&&(c=xj(n,u),!(c==="html"||o>1&&s+i.length*l+c.length>=d));)i.push(c),s+=c.length,n=n.parentNode;return i.reverse().join(a)}catch(n){return"<unknown>"}}function xj(e,t){const n=e,r=[];let i,o,s,a,l;if(!n||!n.tagName)return"";r.push(n.tagName.toLowerCase());const c=t&&t.length?t.filter(d=>n.getAttribute(d)).map(d=>[d,n.getAttribute(d)]):null;if(c&&c.length)c.forEach(d=>{r.push(`[${d[0]}="${d[1]}"]`)});else if(n.id&&r.push(`#${n.id}`),i=n.className,i&&is(i))for(o=i.split(/\s+/),l=0;l<o.length;l++)r.push(`.${o[l]}`);const u=["type","name","title","alt"];for(l=0;l<u.length;l++)s=u[l],a=n.getAttribute(s),a&&r.push(`[${s}="${a}"]`);return r.join("")}function bj(){try{return Zp.document.location.href}catch(e){return""}}function _j(e){return Zp.document&&Zp.document.querySelector?Zp.document.querySelector(e):null}class rn extends Error{constructor(t,n="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}const wj=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Aj(e){return e==="http"||e==="https"}function Gw(e,t=!1){const{host:n,path:r,pass:i,port:o,projectId:s,protocol:a,publicKey:l}=e;return`${a}://${l}${t&&i?`:${i}`:""}@${n}${o?`:${o}`:""}/${r&&`${r}/`}${s}`}function Sj(e){const t=wj.exec(e);if(!t)throw new rn(`Invalid Sentry Dsn: ${e}`);const[n,r,i="",o,s="",a]=t.slice(1);let l="",c=a;const u=c.split("/");if(u.length>1&&(l=u.slice(0,-1).join("/"),c=u.pop()),c){const d=c.match(/^\d+/);d&&(c=d[0])}return kR({host:o,pass:i,path:l,projectId:c,port:s,protocol:n,publicKey:r})}function kR(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function Ej(e){if(!(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__))return;const{port:t,projectId:n,protocol:r}=e;if(["protocol","publicKey","host","projectId"].forEach(o=>{if(!e[o])throw new rn(`Invalid Sentry Dsn: ${o} missing`)}),!n.match(/^\d+$/))throw new rn(`Invalid Sentry Dsn: Invalid projectId ${n}`);if(!Aj(r))throw new rn(`Invalid Sentry Dsn: Invalid protocol ${r}`);if(t&&isNaN(parseInt(t,10)))throw new rn(`Invalid Sentry Dsn: Invalid port ${t}`);return!0}function Cj(e){const t=typeof e=="string"?Sj(e):kR(e);return Ej(t),t}const kj="Sentry Logger ",cm=["debug","info","warn","error","log","assert","trace"];function TR(e){if(!("console"in tr))return e();const t=tr.console,n={};cm.forEach(r=>{const i=t[r]&&t[r].__sentry_original__;r in t&&i&&(n[r]=t[r],t[r]=i)});try{return e()}finally{Object.keys(n).forEach(r=>{t[r]=n[r]})}}function rC(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1}};return typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?cm.forEach(n=>{t[n]=(...r)=>{e&&TR(()=>{tr.console[n](`${kj}[${n}]:`,...r)})}}):cm.forEach(n=>{t[n]=()=>{}}),t}let H;typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?H=Yw("logger",rC):H=rC();function $u(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function iC(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const i=e[r];try{n.push(String(i))}catch(o){n.push("[value cannot be serialized]")}}return n.join(t)}function Tj(e,t,n=!1){return is(e)?mj(t)?t.test(e):is(t)?n?e===t:e.includes(t):!1:!1}function D0(e,t=[],n=!1){return t.some(r=>Tj(e,r,n))}function on(e,t,n){if(!(t in e))return;const r=e[t],i=n(r);if(typeof i=="function")try{MR(i,r)}catch(o){}e[t]=i}function qw(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}function MR(e,t){const n=t.prototype||{};e.prototype=t.prototype=n,qw(e,"__sentry_original__",t)}function Xw(e){return e.__sentry_original__}function Mj(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function $R(e){if(AR(e))return{message:e.message,name:e.name,stack:e.stack,...sC(e)};if(Uw(e)){const t={type:e.type,target:oC(e.target),currentTarget:oC(e.currentTarget),...sC(e)};return typeof CustomEvent<"u"&&hi(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function oC(e){try{return gj(e)?jl(e):Object.prototype.toString.call(e)}catch(t){return"<unknown>"}}function sC(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function $j(e,t=40){const n=Object.keys($R(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return $u(n[0],t);for(let r=n.length;r>0;r--){const i=n.slice(0,r).join(", ");if(!(i.length>t))return r===n.length?i:$u(i,t)}return""}function Qo(e){return Gx(e,new Map)}function Gx(e,t){if(Vl(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const i of Object.keys(e))typeof e[i]<"u"&&(r[i]=Gx(e[i],t));return r}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const r=[];return t.set(e,r),e.forEach(i=>{r.push(Gx(i,t))}),r}return e}const Pj=50;function PR(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0)=>{const i=[];for(const o of n.split(`
|
|
33
|
+
`).slice(r)){if(o.length>1024)continue;const s=o.replace(/\(error: (.*)\)/,"$1");for(const a of t){const l=a(s);if(l){i.push(l);break}}}return Rj(i)}}function Oj(e){return Array.isArray(e)?PR(...e):e}function Rj(e){if(!e.length)return[];let t=e;const n=t[0].function||"",r=t[t.length-1].function||"";return(n.indexOf("captureMessage")!==-1||n.indexOf("captureException")!==-1)&&(t=t.slice(1)),r.indexOf("sentryWrapped")!==-1&&(t=t.slice(0,-1)),t.slice(0,Pj).map(i=>({...i,filename:i.filename||t[0].filename,function:i.function||"?"})).reverse()}const S1="<anonymous>";function os(e){try{return!e||typeof e!="function"?S1:e.name||S1}catch(t){return S1}}const Xs=R0();function OR(){if(!("fetch"in Xs))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function qx(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Dj(){if(!OR())return!1;if(qx(Xs.fetch))return!0;let e=!1;const t=Xs.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=qx(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function Lj(){const e=Xs.chrome,t=e&&e.app&&e.app.runtime,n="history"in Xs&&!!Xs.history.pushState&&!!Xs.history.replaceState;return!t&&n}const re=R0(),Pu={},aC={};function Ij(e){if(!aC[e])switch(aC[e]=!0,e){case"console":Nj();break;case"dom":Yj();break;case"xhr":Vj();break;case"fetch":Fj();break;case"history":jj();break;case"error":Gj();break;case"unhandledrejection":qj();break;default:(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.warn("unknown instrumentation type:",e);return}}function qe(e,t){Pu[e]=Pu[e]||[],Pu[e].push(t),Ij(e)}function Nr(e,t){if(!(!e||!Pu[e]))for(const n of Pu[e]||[])try{n(t)}catch(r){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.error(`Error while triggering instrumentation handler.
|
|
34
|
+
Type: ${e}
|
|
35
|
+
Name: ${os(n)}
|
|
36
|
+
Error:`,r)}}function Nj(){"console"in re&&cm.forEach(function(e){e in re.console&&on(re.console,e,function(t){return function(...n){Nr("console",{args:n,level:e}),t&&t.apply(re.console,n)}})})}function Fj(){!Dj()||on(re,"fetch",function(e){return function(...t){const n={args:t,fetchData:{method:zj(t),url:Bj(t)},startTimestamp:Date.now()};return Nr("fetch",{...n}),e.apply(re,t).then(r=>(Nr("fetch",{...n,endTimestamp:Date.now(),response:r}),r),r=>{throw Nr("fetch",{...n,endTimestamp:Date.now(),error:r}),r})}})}function zj(e=[]){return"Request"in re&&hi(e[0],Request)&&e[0].method?String(e[0].method).toUpperCase():e[1]&&e[1].method?String(e[1].method).toUpperCase():"GET"}function Bj(e=[]){return typeof e[0]=="string"?e[0]:"Request"in re&&hi(e[0],Request)?e[0].url:String(e[0])}function Vj(){if(!("XMLHttpRequest"in re))return;const e=XMLHttpRequest.prototype;on(e,"open",function(t){return function(...n){const r=this,i=n[1],o=r.__sentry_xhr__={method:is(n[0])?n[0].toUpperCase():n[0],url:n[1]};is(i)&&o.method==="POST"&&i.match(/sentry_key/)&&(r.__sentry_own_request__=!0);const s=function(){if(r.readyState===4){try{o.status_code=r.status}catch(a){}Nr("xhr",{args:n,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:r})}};return"onreadystatechange"in r&&typeof r.onreadystatechange=="function"?on(r,"onreadystatechange",function(a){return function(...l){return s(),a.apply(r,l)}}):r.addEventListener("readystatechange",s),t.apply(r,n)}}),on(e,"send",function(t){return function(...n){return this.__sentry_xhr__&&n[0]!==void 0&&(this.__sentry_xhr__.body=n[0]),Nr("xhr",{args:n,startTimestamp:Date.now(),xhr:this}),t.apply(this,n)}})}let Cf;function jj(){if(!Lj())return;const e=re.onpopstate;re.onpopstate=function(...n){const r=re.location.href,i=Cf;if(Cf=r,Nr("history",{from:i,to:r}),e)try{return e.apply(this,n)}catch(o){}};function t(n){return function(...r){const i=r.length>2?r[2]:void 0;if(i){const o=Cf,s=String(i);Cf=s,Nr("history",{from:o,to:s})}return n.apply(this,r)}}on(re.history,"pushState",t),on(re.history,"replaceState",t)}const Hj=1e3;let kf,Tf;function Uj(e,t){if(!e||e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch(n){}return!1}function Wj(e){if(e.type!=="keypress")return!1;try{const t=e.target;if(!t||!t.tagName)return!0;if(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)return!1}catch(t){}return!0}function lC(e,t=!1){return n=>{if(!n||Tf===n||Wj(n))return;const r=n.type==="keypress"?"input":n.type;kf===void 0?(e({event:n,name:r,global:t}),Tf=n):Uj(Tf,n)&&(e({event:n,name:r,global:t}),Tf=n),clearTimeout(kf),kf=re.setTimeout(()=>{kf=void 0},Hj)}}function Yj(){if(!("document"in re))return;const e=Nr.bind(null,"dom"),t=lC(e,!0);re.document.addEventListener("click",t,!1),re.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const r=re[n]&&re[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(on(r,"addEventListener",function(i){return function(o,s,a){if(o==="click"||o=="keypress")try{const l=this,c=l.__sentry_instrumentation_handlers__=l.__sentry_instrumentation_handlers__||{},u=c[o]=c[o]||{refCount:0};if(!u.handler){const d=lC(e);u.handler=d,i.call(this,o,d,a)}u.refCount++}catch(l){}return i.call(this,o,s,a)}}),on(r,"removeEventListener",function(i){return function(o,s,a){if(o==="click"||o=="keypress")try{const l=this,c=l.__sentry_instrumentation_handlers__||{},u=c[o];u&&(u.refCount--,u.refCount<=0&&(i.call(this,o,u.handler,a),u.handler=void 0,delete c[o]),Object.keys(c).length===0&&delete l.__sentry_instrumentation_handlers__)}catch(l){}return i.call(this,o,s,a)}}))})}let E1=null;function Gj(){E1=re.onerror,re.onerror=function(e,t,n,r,i){return Nr("error",{column:r,error:i,line:n,msg:e,url:t}),E1?E1.apply(this,arguments):!1}}let C1=null;function qj(){C1=re.onunhandledrejection,re.onunhandledrejection=function(e){return Nr("unhandledrejection",e),C1?C1.apply(this,arguments):!0}}function Xj(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(i){if(e)return t.has(i)?!0:(t.add(i),!1);for(let o=0;o<t.length;o++)if(t[o]===i)return!0;return t.push(i),!1}function r(i){if(e)t.delete(i);else for(let o=0;o<t.length;o++)if(t[o]===i){t.splice(o,1);break}}return[n,r]}function Bi(){const e=tr,t=e.crypto||e.msCrypto;if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");const n=t&&t.getRandomValues?()=>t.getRandomValues(new Uint8Array(1))[0]:()=>Math.random()*16;return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function RR(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function Qs(e){const{message:t,event_id:n}=e;if(t)return t;const r=RR(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function Xx(e,t,n){const r=e.exception=e.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type=n||"Error")}function Nd(e,t){const n=RR(e);if(!n)return;const r={type:"generic",handled:!0},i=n.mechanism;if(n.mechanism={...r,...i,...t},t&&"data"in t){const o={...i&&i.data,...t.data};n.mechanism.data=o}}function cC(e){if(e&&e.__sentry_captured__)return!0;try{qw(e,"__sentry_captured__",!0)}catch(t){}return!1}function DR(e){return Array.isArray(e)?e:[e]}function Qj(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function L0(){return!Qj()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function To(e,t){return e.require(t)}function Kj(e){let t;try{t=To(module,e)}catch(n){}try{const{cwd:n}=To(module,"process");t=To(module,`${n()}/node_modules/${e}`)}catch(n){}return t}function bo(e,t=1/0,n=1/0){try{return Qx("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function LR(e,t=3,n=100*1024){const r=bo(e,t);return tH(r)>n?LR(e,t-1,n):r}function Qx(e,t,n=1/0,r=1/0,i=Xj()){const[o,s]=i;if(t===null||["number","boolean","string"].includes(typeof t)&&!CR(t))return t;const a=Zj(e,t);if(!a.startsWith("[object "))return a;if(t.__sentry_skip_normalization__)return t;if(n===0)return a.replace("object ","");if(o(t))return"[Circular ~]";const l=t;if(l&&typeof l.toJSON=="function")try{const h=l.toJSON();return Qx("",h,n-1,r,i)}catch(h){}const c=Array.isArray(t)?[]:{};let u=0;const d=$R(t);for(const h in d){if(!Object.prototype.hasOwnProperty.call(d,h))continue;if(u>=r){c[h]="[MaxProperties ~]";break}const f=d[h];c[h]=Qx(h,f,n-1,r,i),u++}return s(t),c}function Zj(e,t){try{return e==="domain"&&t&&typeof t=="object"&&t._events?"[Domain]":e==="domainEmitter"?"[DomainEmitter]":typeof global<"u"&&t===global?"[Global]":typeof window<"u"&&t===window?"[Window]":typeof document<"u"&&t===document?"[Document]":vj(t)?"[SyntheticEvent]":typeof t=="number"&&t!==t?"[NaN]":t===void 0?"[undefined]":typeof t=="function"?`[Function: ${os(t)}]`:typeof t=="symbol"?`[${String(t)}]`:typeof t=="bigint"?`[BigInt: ${String(t)}]`:`[object ${Object.getPrototypeOf(t).constructor.name}]`}catch(n){return`**non-serializable** (${n})`}}function Jj(e){return~-encodeURI(e).split(/%..|./).length}function tH(e){return Jj(JSON.stringify(e))}var Ci;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const r=2;e[e.REJECTED=r]="REJECTED"})(Ci||(Ci={}));function va(e){return new mn(t=>{t(e)})}function um(e){return new mn((t,n)=>{n(e)})}class mn{__init(){this._state=Ci.PENDING}__init2(){this._handlers=[]}constructor(t){mn.prototype.__init.call(this),mn.prototype.__init2.call(this),mn.prototype.__init3.call(this),mn.prototype.__init4.call(this),mn.prototype.__init5.call(this),mn.prototype.__init6.call(this);try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new mn((r,i)=>{this._handlers.push([!1,o=>{if(!t)r(o);else try{r(t(o))}catch(s){i(s)}},o=>{if(!n)i(o);else try{r(n(o))}catch(s){i(s)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new mn((n,r)=>{let i,o;return this.then(s=>{o=!1,i=s,t&&t()},s=>{o=!0,i=s,t&&t()}).then(()=>{if(o){r(i);return}n(i)})})}__init3(){this._resolve=t=>{this._setResult(Ci.RESOLVED,t)}}__init4(){this._reject=t=>{this._setResult(Ci.REJECTED,t)}}__init5(){this._setResult=(t,n)=>{if(this._state===Ci.PENDING){if(Ww(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init6(){this._executeHandlers=()=>{if(this._state===Ci.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===Ci.RESOLVED&&n[1](this._value),this._state===Ci.REJECTED&&n[2](this._value),n[0]=!0)})}}}function eH(e){const t=[];function n(){return e===void 0||t.length<e}function r(s){return t.splice(t.indexOf(s),1)[0]}function i(s){if(!n())return um(new rn("Not adding Promise because buffer limit was reached."));const a=s();return t.indexOf(a)===-1&&t.push(a),a.then(()=>r(a)).then(null,()=>r(a).then(null,()=>{})),a}function o(s){return new mn((a,l)=>{let c=t.length;if(!c)return a(!0);const u=setTimeout(()=>{s&&s>0&&a(!1)},s);t.forEach(d=>{va(d).then(()=>{--c||(clearTimeout(u),a(!0))},l)})})}return{$:t,add:i,drain:o}}function k1(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],relative:t[5]+n+r}}const nH=["fatal","error","warning","log","info","debug"];function rH(e){return e==="warn"?"warning":nH.includes(e)?e:"log"}const IR=R0(),Kx={nowSeconds:()=>Date.now()/1e3};function iH(){const{performance:e}=IR;if(!e||!e.now)return;const t=Date.now()-e.now();return{now:()=>e.now(),timeOrigin:t}}function oH(){try{return To(module,"perf_hooks").performance}catch(e){return}}const T1=L0()?oH():iH(),uC=T1===void 0?Kx:{nowSeconds:()=>(T1.timeOrigin+T1.now())/1e3},I0=Kx.nowSeconds.bind(Kx),N0=uC.nowSeconds.bind(uC),Fd=N0,Hl=(()=>{const{performance:e}=IR;if(!e||!e.now)return;const t=3600*1e3,n=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,o=i<t,s=e.timing&&e.timing.navigationStart,l=typeof s=="number"?Math.abs(s+n-r):t,c=l<t;return o||c?i<=l?e.timeOrigin:s:r})(),sH=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function aH(e){const t=e.match(sH);if(!e||!t)return;let n;return t[3]==="1"?n=!0:t[3]==="0"&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function $h(e,t=[]){return[e,t]}function lH(e,t){const[n,r]=e;return[n,[...r,t]]}function dC(e,t){e[1].forEach(r=>{const i=r[0].type;t(r,i)})}function Zx(e,t){return(t||new TextEncoder).encode(e)}function NR(e,t){const[n,r]=e;let i=JSON.stringify(n);function o(s){typeof i=="string"?i=typeof s=="string"?i+s:[Zx(i,t),s]:i.push(typeof s=="string"?Zx(s,t):s)}for(const s of r){const[a,l]=s;if(o(`
|
|
37
|
+
${JSON.stringify(a)}
|
|
38
|
+
`),typeof l=="string"||l instanceof Uint8Array)o(l);else{let c;try{c=JSON.stringify(l)}catch(u){c=JSON.stringify(bo(l))}o(c)}}return typeof i=="string"?i:cH(i)}function cH(e){const t=e.reduce((i,o)=>i+o.length,0),n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}function uH(e,t){const n=typeof e.data=="string"?Zx(e.data,t):e.data;return[Qo({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const dH={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay"};function hC(e){return dH[e]}function Qw(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function FR(e,t,n,r){const i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&{dsn:Gw(r)},...e.type==="transaction"&&i&&{trace:Qo({...i})}}}function hH(e,t,n){const r=[{type:"client_report"},{timestamp:n||I0(),discarded_events:e}];return $h(t?{dsn:t}:{},[r])}const fH=60*1e3;function pH(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?fH:r-t}function zR(e,t){return e[t]||e.all||0}function BR(e,t,n=Date.now()){return zR(e,t)>n}function VR(e,{statusCode:t,headers:n},r=Date.now()){const i={...e},o=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(o)for(const a of o.trim().split(",")){const[l,c]=a.split(":",2),u=parseInt(l,10),d=(isNaN(u)?60:u)*1e3;if(!c)i.all=r+d;else for(const h of c.split(";"))i[h]=r+d}else s?i.all=r+pH(s,r):t===429&&(i.all=r+60*1e3);return i}const Jx="baggage",jR="sentry-",gH=/^sentry-/,mH=8192;function vH(e){if(!is(e)&&!Array.isArray(e))return;let t={};if(Array.isArray(e))t=e.reduce((r,i)=>{const o=fC(i);return{...r,...o}},{});else{if(!e)return;t=fC(e)}const n=Object.entries(t).reduce((r,[i,o])=>{if(i.match(gH)){const s=i.slice(jR.length);r[s]=o}return r},{});if(Object.keys(n).length>0)return n}function HR(e){const t=Object.entries(e).reduce((n,[r,i])=>(i&&(n[`${jR}${r}`]=i),n),{});return yH(t)}function fC(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,r])=>(t[n]=r,t),{})}function yH(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],i)=>{const o=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,s=i===0?o:`${t},${o}`;return s.length>mH?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):s},"")}function xH(e){const t=N0(),n={sid:Bi(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>_H(n)};return e&&Ul(n,e),n}function Ul(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||N0(),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:Bi()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function bH(e,t){let n={};t?n={status:t}:e.status==="ok"&&(n={status:"exited"}),Ul(e,n)}function _H(e){return Qo({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}const wH=100;class Ko{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}static clone(t){const n=new Ko;return t&&(n._breadcrumbs=[...t._breadcrumbs],n._tags={...t._tags},n._extra={...t._extra},n._contexts={...t._contexts},n._user=t._user,n._level=t._level,n._span=t._span,n._session=t._session,n._transactionName=t._transactionName,n._fingerprint=t._fingerprint,n._eventProcessors=[...t._eventProcessors],n._requestSession=t._requestSession,n._attachments=[...t._attachments],n._sdkProcessingMetadata={...t._sdkProcessingMetadata}),n}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{},this._session&&Ul(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this.getSpan();return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;if(typeof t=="function"){const n=t(this);return n instanceof Ko?n:this}return t instanceof Ko?(this._tags={...this._tags,...t._tags},this._extra={...this._extra,...t._extra},this._contexts={...this._contexts,...t._contexts},t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession)):Vl(t)&&(t=t,this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this}addBreadcrumb(t,n){const r=typeof n=="number"?n:wH;if(r<=0)return this;const i={timestamp:I0(),...t};return this._breadcrumbs=[...this._breadcrumbs,i].slice(-r),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(t,n={}){if(this._extra&&Object.keys(this._extra).length&&(t.extra={...this._extra,...t.extra}),this._tags&&Object.keys(this._tags).length&&(t.tags={...this._tags,...t.tags}),this._user&&Object.keys(this._user).length&&(t.user={...this._user,...t.user}),this._contexts&&Object.keys(this._contexts).length&&(t.contexts={...this._contexts,...t.contexts}),this._level&&(t.level=this._level),this._transactionName&&(t.transaction=this._transactionName),this._span){t.contexts={trace:this._span.getTraceContext(),...t.contexts};const r=this._span.transaction&&this._span.transaction.name;r&&(t.tags={transaction:r,...t.tags})}return this._applyFingerprint(t),t.breadcrumbs=[...t.breadcrumbs||[],...this._breadcrumbs],t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...this._sdkProcessingMetadata},this._notifyEventProcessors([...UR(),...this._eventProcessors],t,n)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}_notifyEventProcessors(t,n,r,i=0){return new mn((o,s)=>{const a=t[i];if(n===null||typeof a!="function")o(n);else{const l=a({...n},r);(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&a.id&&l===null&&H.log(`Event processor "${a.id}" dropped event`),Ww(l)?l.then(c=>this._notifyEventProcessors(t,c,r,i+1).then(o)).then(null,s):this._notifyEventProcessors(t,l,r,i+1).then(o).then(null,s)}})}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}_applyFingerprint(t){t.fingerprint=t.fingerprint?DR(t.fingerprint):[],this._fingerprint&&(t.fingerprint=t.fingerprint.concat(this._fingerprint)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}}function UR(){return Yw("globalEventProcessors",()=>[])}function F0(e){UR().push(e)}const Kw=4,AH=100;class Ph{__init(){this._stack=[{}]}constructor(t,n=new Ko,r=Kw){this._version=r,Ph.prototype.__init.call(this),this.getStackTop().scope=n,t&&this.bindClient(t)}isOlderThan(t){return this._version<t}bindClient(t){const n=this.getStackTop();n.client=t,t&&t.setupIntegrations&&t.setupIntegrations()}pushScope(){const t=Ko.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:t}),t}popScope(){return this.getStack().length<=1?!1:!!this.getStack().pop()}withScope(t){const n=this.pushScope();try{t(n)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,n){const r=this._lastEventId=n&&n.event_id?n.event_id:Bi(),i=new Error("Sentry syntheticException");return this._withClient((o,s)=>{o.captureException(t,{originalException:t,syntheticException:i,...n,event_id:r},s)}),r}captureMessage(t,n,r){const i=this._lastEventId=r&&r.event_id?r.event_id:Bi(),o=new Error(t);return this._withClient((s,a)=>{s.captureMessage(t,n,{originalException:t,syntheticException:o,...r,event_id:i},a)}),i}captureEvent(t,n){const r=n&&n.event_id?n.event_id:Bi();return t.type||(this._lastEventId=r),this._withClient((i,o)=>{i.captureEvent(t,{...n,event_id:r},o)}),r}lastEventId(){return this._lastEventId}addBreadcrumb(t,n){const{scope:r,client:i}=this.getStackTop();if(!r||!i)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:s=AH}=i.getOptions&&i.getOptions()||{};if(s<=0)return;const l={timestamp:I0(),...t},c=o?TR(()=>o(l,n)):l;c!==null&&r.addBreadcrumb(c,s)}setUser(t){const n=this.getScope();n&&n.setUser(t)}setTags(t){const n=this.getScope();n&&n.setTags(t)}setExtras(t){const n=this.getScope();n&&n.setExtras(t)}setTag(t,n){const r=this.getScope();r&&r.setTag(t,n)}setExtra(t,n){const r=this.getScope();r&&r.setExtra(t,n)}setContext(t,n){const r=this.getScope();r&&r.setContext(t,n)}configureScope(t){const{scope:n,client:r}=this.getStackTop();n&&r&&t(n)}run(t){const n=pC(this);try{t(this)}finally{pC(n)}}getIntegration(t){const n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch(r){return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,n){return this._callExtensionMethod("startTransaction",t,n)}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const t=this.getStackTop(),n=t&&t.scope,r=n&&n.getSession();r&&bH(r),this._sendSessionUpdate(),n&&n.setSession()}startSession(t){const{scope:n,client:r}=this.getStackTop(),{release:i,environment:o}=r&&r.getOptions()||{},{userAgent:s}=tr.navigator||{},a=xH({release:i,environment:o,...n&&{user:n.getUser()},...s&&{userAgent:s},...t});if(n){const l=n.getSession&&n.getSession();l&&l.status==="ok"&&Ul(l,{status:"exited"}),this.endSession(),n.setSession(a)}return a}shouldSendDefaultPii(){const t=this.getClient(),n=t&&t.getOptions();return Boolean(n&&n.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:n}=this.getStackTop();if(!t)return;const r=t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}_withClient(t){const{scope:n,client:r}=this.getStackTop();r&&t(r,n)}_callExtensionMethod(t,...n){const i=mc().__SENTRY__;if(i&&i.extensions&&typeof i.extensions[t]=="function")return i.extensions[t].apply(this,n);(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function mc(){return tr.__SENTRY__=tr.__SENTRY__||{extensions:{},hub:void 0},tr}function pC(e){const t=mc(),n=Eo(t);return Zw(t,e),n}function wt(){const e=mc();return(!WR(e)||Eo(e).isOlderThan(Kw))&&Zw(e,new Ph),L0()?SH(e):Eo(e)}function SH(e){try{const t=mc().__SENTRY__,n=t&&t.extensions&&t.extensions.domain&&t.extensions.domain.active;if(!n)return Eo(e);if(!WR(n)||Eo(n).isOlderThan(Kw)){const r=Eo(e).getStackTop();Zw(n,new Ph(r.client,Ko.clone(r.scope)))}return Eo(n)}catch(t){return Eo(e)}}function WR(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function Eo(e){return Yw("hub",()=>new Ph,e)}function Zw(e,t){if(!e)return!1;const n=e.__SENTRY__=e.__SENTRY__||{};return n.hub=t,!0}function z0(e,t){return wt().captureException(e,{captureContext:t})}function YR(e){wt().addBreadcrumb(e)}function EH(e,t){wt().setContext(e,t)}function CH(e){wt().withScope(e)}const kH="7";function TH(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function MH(e){return`${TH(e)}${e.projectId}/envelope/`}function $H(e,t){return Mj({sentry_key:e.publicKey,sentry_version:kH,...t&&{sentry_client:`${t.name}/${t.version}`}})}function GR(e,t={}){const n=typeof t=="string"?t:t.tunnel,r=typeof t=="string"||!t._metadata?void 0:t._metadata.sdk;return n||`${MH(e)}?${$H(e,r)}`}function PH(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function OH(e,t,n,r){const i=Qw(n),o={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&{dsn:Gw(t)}},s="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e];return $h(o,[s])}function RH(e,t,n,r){const i=Qw(n),o=e.type&&e.type!=="replay_event"?e.type:"event";PH(e,n&&n.sdk);const s=FR(e,i,r,t);return delete e.sdkProcessingMetadata,$h(s,[[{type:o},e]])}const gC=[];function DH(e){const t={};return e.forEach(n=>{const{name:r}=n,i=t[r];i&&!i.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.values(t)}function LH(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(s=>{s.isDefaultInstance=!0});let r;Array.isArray(n)?r=[...t,...n]:typeof n=="function"?r=DR(n(t)):r=t;const i=DH(r),o=i.findIndex(s=>s.name==="Debug");if(o!==-1){const[s]=i.splice(o,1);i.push(s)}return i}function IH(e){const t={};return e.forEach(n=>{qR(n,t)}),t}function qR(e,t){t[e.name]=e,gC.indexOf(e.name)===-1&&(e.setupOnce(F0,wt),gC.push(e.name),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.log(`Integration installed: ${e.name}`))}function XR(e,t,n,r){const{normalizeDepth:i=3,normalizeMaxBreadth:o=1e3}=e,s={...t,event_id:t.event_id||n.event_id||Bi(),timestamp:t.timestamp||I0()};NH(s,e),FH(s,e.integrations.map(c=>c.name));let a=r;n.captureContext&&(a=Ko.clone(a).update(n.captureContext));let l=va(s);if(a){if(a.getAttachments){const c=[...n.attachments||[],...a.getAttachments()];c.length&&(n.attachments=c)}l=a.applyToEvent(s,n)}return l.then(c=>typeof i=="number"&&i>0?zH(c,i,o):c)}function NH(e,t){const{environment:n,release:r,dist:i,maxValueLength:o=250}=t;"environment"in e||(e.environment="environment"in t?n:"production"),e.release===void 0&&r!==void 0&&(e.release=r),e.dist===void 0&&i!==void 0&&(e.dist=i),e.message&&(e.message=$u(e.message,o));const s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=$u(s.value,o));const a=e.request;a&&a.url&&(a.url=$u(a.url,o))}function FH(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function zH(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(i=>({...i,...i.data&&{data:bo(i.data,t,n)}}))},...e.user&&{user:bo(e.user,t,n)},...e.contexts&&{contexts:bo(e.contexts,t,n)},...e.extra&&{extra:bo(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=bo(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(i=>(i.data&&(i.data=bo(i.data,t,n)),i))),r}const mC="Not capturing exception because it's already been captured.";class ol{__init(){this._integrations={}}__init2(){this._integrationsInitialized=!1}__init3(){this._numProcessing=0}__init4(){this._outcomes={}}constructor(t){if(ol.prototype.__init.call(this),ol.prototype.__init2.call(this),ol.prototype.__init3.call(this),ol.prototype.__init4.call(this),this._options=t,t.dsn){this._dsn=Cj(t.dsn);const n=GR(this._dsn,t);this._transport=t.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}else(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.warn("No DSN provided, client will not do anything.")}captureException(t,n,r){if(cC(t)){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.log(mC);return}let i=n&&n.event_id;return this._process(this.eventFromException(t,n).then(o=>this._captureEvent(o,n,r)).then(o=>{i=o})),i}captureMessage(t,n,r,i){let o=r&&r.event_id;const s=ER(t)?this.eventFromMessage(String(t),n,r):this.eventFromException(t,r);return this._process(s.then(a=>this._captureEvent(a,r,i)).then(a=>{o=a})),o}captureEvent(t,n,r){if(n&&n.originalException&&cC(n.originalException)){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.log(mC);return}let i=n&&n.event_id;return this._process(this._captureEvent(t,n,r).then(o=>{i=o})),i}captureSession(t){if(!this._isEnabled()){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.warn("SDK not enabled, will not capture session.");return}typeof t.release!="string"?(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),Ul(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;return n?this._isClientDoneProcessing(t).then(r=>n.flush(t).then(i=>r&&i)):va(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,n))}setupIntegrations(){this._isEnabled()&&!this._integrationsInitialized&&(this._integrations=IH(this._options.integrations),this._integrationsInitialized=!0)}getIntegrationById(t){return this._integrations[t]}getIntegration(t){try{return this._integrations[t.id]||null}catch(n){return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}addIntegration(t){qR(t,this._integrations)}sendEvent(t,n={}){if(this._dsn){let r=RH(t,this._dsn,this._options._metadata,this._options.tunnel);for(const i of n.attachments||[])r=lH(r,uH(i,this._options.transportOptions&&this._options.transportOptions.textEncoder));this._sendEnvelope(r)}}sendSession(t){if(this._dsn){const n=OH(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}}recordDroppedEvent(t,n,r){if(this._options.sendClientReports){const i=`${t}:${n}`;(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.log(`Adding outcome: "${i}"`),this._outcomes[i]=this._outcomes[i]+1||1}}_updateSessionFromEvent(t,n){let r=!1,i=!1;const o=n.exception&&n.exception.values;if(o){i=!0;for(const l of o){const c=l.mechanism;if(c&&c.handled===!1){r=!0;break}}}const s=t.status==="ok";(s&&t.errors===0||s&&r)&&(Ul(t,{...r&&{status:"crashed"},errors:t.errors||Number(i||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new mn(n=>{let r=0;const i=1,o=setInterval(()=>{this._numProcessing==0?(clearInterval(o),n(!0)):(r+=i,t&&r>=t&&(clearInterval(o),n(!1)))},i)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._dsn!==void 0}_prepareEvent(t,n,r){const i=this.getOptions();return XR(i,t,n,r)}_captureEvent(t,n={},r){return this._processEvent(t,n,r).then(i=>i.event_id,i=>{if(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__){const o=i;o.logLevel==="log"?H.log(o.message):H.warn(o)}})}_processEvent(t,n,r){const i=this.getOptions(),{sampleRate:o}=i;if(!this._isEnabled())return um(new rn("SDK not enabled, will not capture event.","log"));const s=KR(t),a=QR(t),l=t.type||"error",c=`before send for type \`${l}\``;if(a&&typeof o=="number"&&Math.random()>o)return this.recordDroppedEvent("sample_rate","error",t),um(new rn(`Discarding event because it's not included in the random sample (sampling rate = ${o})`,"log"));const u=l==="replay_event"?"replay":l;return this._prepareEvent(t,n,r).then(d=>{if(d===null)throw this.recordDroppedEvent("event_processor",u,t),new rn("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return d;const f=VH(i,d,n);return BH(f,c)}).then(d=>{if(d===null)throw this.recordDroppedEvent("before_send",u,t),new rn(`${c} returned \`null\`, will not send event.`,"log");const h=r&&r.getSession();!s&&h&&this._updateSessionFromEvent(h,d);const f=d.transaction_info;if(s&&f&&d.transaction!==t.transaction){const p="custom";d.transaction_info={...f,source:p,changes:[...f.changes,{source:p,timestamp:d.timestamp,propagations:f.propagations}]}}return this.sendEvent(d,n),d}).then(null,d=>{throw d instanceof rn?d:(this.captureException(d,{data:{__sentry__:!0},originalException:d}),new rn(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.
|
|
39
|
+
Reason: ${d}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_sendEnvelope(t){this._transport&&this._dsn?this._transport.send(t).then(null,n=>{(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.error("Error while sending event:",n)}):(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.error("Transport disabled")}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.keys(t).map(n=>{const[r,i]=n.split(":");return{reason:r,category:i,quantity:t[n]}})}}function BH(e,t){const n=`${t} must return \`null\` or a valid event.`;if(Ww(e))return e.then(r=>{if(!Vl(r)&&r!==null)throw new rn(n);return r},r=>{throw new rn(`${t} rejected with ${r}`)});if(!Vl(e)&&e!==null)throw new rn(n);return e}function VH(e,t,n){const{beforeSend:r,beforeSendTransaction:i}=e;return QR(t)&&r?r(t,n):KR(t)&&i?i(t,n):t}function QR(e){return e.type===void 0}function KR(e){return e.type==="transaction"}function jH(e,t){t.debug===!0&&(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__?H.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));const n=wt(),r=n.getScope();r&&r.update(t.initialScope);const i=new e(t);n.bindClient(i)}const HH=30;function ZR(e,t,n=eH(e.bufferSize||HH)){let r={};const i=s=>n.drain(s);function o(s){const a=[];if(dC(s,(d,h)=>{const f=hC(h);if(BR(r,f)){const p=vC(d,h);e.recordDroppedEvent("ratelimit_backoff",f,p)}else a.push(d)}),a.length===0)return va();const l=$h(s[0],a),c=d=>{dC(l,(h,f)=>{const p=vC(h,f);e.recordDroppedEvent(d,hC(f),p)})},u=()=>t({body:NR(l,e.textEncoder)}).then(d=>(d.statusCode!==void 0&&(d.statusCode<200||d.statusCode>=300)&&(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.warn(`Sentry responded with status code ${d.statusCode} to sent event.`),r=VR(r,d),d),d=>{throw c("network_error"),d});return n.add(u).then(d=>d,d=>{if(d instanceof rn)return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.error("Skipped sending event because buffer is full."),c("queue_overflow"),va();throw d})}return{send:o,flush:i}}function vC(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}const dm="7.33.0";let yC;class zd{constructor(){zd.prototype.__init.call(this)}static __initStatic(){this.id="FunctionToString"}__init(){this.name=zd.id}setupOnce(){yC=Function.prototype.toString,Function.prototype.toString=function(...t){const n=Xw(this)||this;return yC.apply(n,t)}}}zd.__initStatic();const UH=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/];class Al{static __initStatic(){this.id="InboundFilters"}__init(){this.name=Al.id}constructor(t={}){this._options=t,Al.prototype.__init.call(this)}setupOnce(t,n){const r=i=>{const o=n();if(o){const s=o.getIntegration(Al);if(s){const a=o.getClient(),l=a?a.getOptions():{},c=WH(s._options,l);return YH(i,c)?null:i}}return i};r.id=this.name,t(r)}}Al.__initStatic();function WH(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...UH],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function YH(e,t){return t.ignoreInternal&&KH(e)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.warn(`Event dropped due to being internal Sentry Error.
|
|
40
|
+
Event: ${Qs(e)}`),!0):GH(e,t.ignoreErrors)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
|
|
41
|
+
Event: ${Qs(e)}`),!0):qH(e,t.denyUrls)?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.warn(`Event dropped due to being matched by \`denyUrls\` option.
|
|
42
|
+
Event: ${Qs(e)}.
|
|
43
|
+
Url: ${hm(e)}`),!0):XH(e,t.allowUrls)?!1:((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.warn(`Event dropped due to not being matched by \`allowUrls\` option.
|
|
44
|
+
Event: ${Qs(e)}.
|
|
45
|
+
Url: ${hm(e)}`),!0)}function GH(e,t){return!t||!t.length?!1:QH(e).some(n=>D0(n,t))}function qH(e,t){if(!t||!t.length)return!1;const n=hm(e);return n?D0(n,t):!1}function XH(e,t){if(!t||!t.length)return!0;const n=hm(e);return n?D0(n,t):!0}function QH(e){if(e.message)return[e.message];if(e.exception)try{const{type:t="",value:n=""}=e.exception.values&&e.exception.values[0]||{};return[`${n}`,`${t}: ${n}`]}catch(t){return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.error(`Cannot extract message for event ${Qs(e)}`),[]}return[]}function KH(e){try{return e.exception.values[0].type==="SentryError"}catch(t){}return!1}function ZH(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function hm(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch(n){}return t?ZH(t):null}catch(t){return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.error(`Cannot extract url for event ${Qs(e)}`),null}}const At=tr;let tb=0;function JR(){return tb>0}function JH(){tb++,setTimeout(()=>{tb--})}function Wl(e,t={},n){if(typeof e!="function")return e;try{const i=e.__sentry_wrapped__;if(i)return i;if(Xw(e))return e}catch(i){return e}const r=function(){const i=Array.prototype.slice.call(arguments);try{n&&typeof n=="function"&&n.apply(this,arguments);const o=i.map(s=>Wl(s,t));return e.apply(this,o)}catch(o){throw JH(),CH(s=>{s.addEventProcessor(a=>(t.mechanism&&(Xx(a,void 0,void 0),Nd(a,t.mechanism)),a.extra={...a.extra,arguments:i},a)),z0(o)}),o}};try{for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}catch(i){}MR(r,e),qw(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch(i){}return r}function tD(e,t){const n=Jw(e,t),r={type:t&&t.name,value:rU(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function tU(e,t,n,r){const o=wt().getClient(),s=o&&o.getOptions().normalizeDepth,a={exception:{values:[{type:Uw(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:`Non-Error ${r?"promise rejection":"exception"} captured with keys: ${$j(t)}`}]},extra:{__serialized__:LR(t,s)}};if(n){const l=Jw(e,n);l.length&&(a.exception.values[0].stacktrace={frames:l})}return a}function M1(e,t){return{exception:{values:[tD(e,t)]}}}function Jw(e,t){const n=t.stacktrace||t.stack||"",r=nU(t);try{return e(n,r)}catch(i){}return[]}const eU=/Minified React error #\d+;/i;function nU(e){if(e){if(typeof e.framesToPop=="number")return e.framesToPop;if(eU.test(e.message))return 1}return 0}function rU(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function iU(e,t,n,r){const i=n&&n.syntheticException||void 0,o=tA(e,t,i,r);return Nd(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),va(o)}function oU(e,t,n="info",r,i){const o=r&&r.syntheticException||void 0,s=eb(e,t,o,i);return s.level=n,r&&r.event_id&&(s.event_id=r.event_id),va(s)}function tA(e,t,n,r,i){let o;if(SR(t)&&t.error)return M1(e,t.error);if(nC(t)||pj(t)){const s=t;if("stack"in t)o=M1(e,t);else{const a=s.name||(nC(s)?"DOMError":"DOMException"),l=s.message?`${a}: ${s.message}`:a;o=eb(e,l,n,r),Xx(o,l)}return"code"in s&&(o.tags={...o.tags,"DOMException.code":`${s.code}`}),o}return AR(t)?M1(e,t):Vl(t)||Uw(t)?(o=tU(e,t,n,i),Nd(o,{synthetic:!0}),o):(o=eb(e,t,n,r),Xx(o,`${t}`,void 0),Nd(o,{synthetic:!0}),o)}function eb(e,t,n,r){const i={message:t};if(r&&n){const o=Jw(e,n);o.length&&(i.exception={values:[{value:t,stacktrace:{frames:o}}]})}return i}const Mf=1024,eD="Breadcrumbs";class Bd{static __initStatic(){this.id=eD}__init(){this.name=Bd.id}constructor(t){Bd.prototype.__init.call(this),this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t}}setupOnce(){this.options.console&&qe("console",aU),this.options.dom&&qe("dom",sU(this.options.dom)),this.options.xhr&&qe("xhr",lU),this.options.fetch&&qe("fetch",cU),this.options.history&&qe("history",uU)}addSentryBreadcrumb(t){this.options.sentry&&wt().addBreadcrumb({category:`sentry.${t.type==="transaction"?"transaction":"event"}`,event_id:t.event_id,level:t.level,message:Qs(t)},{event:t})}}Bd.__initStatic();function sU(e){function t(n){let r,i=typeof e=="object"?e.serializeAttribute:void 0,o=typeof e=="object"&&typeof e.maxStringLength=="number"?e.maxStringLength:void 0;o&&o>Mf&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.warn(`\`dom.maxStringLength\` cannot exceed ${Mf}, but a value of ${o} was configured. Sentry will use ${Mf} instead.`),o=Mf),typeof i=="string"&&(i=[i]);try{r=n.event.target?jl(n.event.target,{keyAttrs:i,maxStringLength:o}):jl(n.event,{keyAttrs:i,maxStringLength:o})}catch(s){r="<unknown>"}r.length!==0&&wt().addBreadcrumb({category:`ui.${n.name}`,message:r},{event:n.event,name:n.name,global:n.global})}return t}function aU(e){for(let n=0;n<e.args.length;n++)if(e.args[n]==="ref=Ref<"){e.args[n+1]="viewRef";break}const t={category:"console",data:{arguments:e.args,logger:"console"},level:rH(e.level),message:iC(e.args," ")};if(e.level==="assert")if(e.args[0]===!1)t.message=`Assertion failed: ${iC(e.args.slice(1)," ")||"console.assert"}`,t.data.arguments=e.args.slice(1);else return;wt().addBreadcrumb(t,{input:e.args,level:e.level})}function lU(e){if(e.endTimestamp){if(e.xhr.__sentry_own_request__)return;const{method:t,url:n,status_code:r,body:i}=e.xhr.__sentry_xhr__||{};wt().addBreadcrumb({category:"xhr",data:{method:t,url:n,status_code:r},type:"http"},{xhr:e.xhr,input:i});return}}function cU(e){!e.endTimestamp||e.fetchData.url.match(/sentry_key/)&&e.fetchData.method==="POST"||(e.error?wt().addBreadcrumb({category:"fetch",data:e.fetchData,level:"error",type:"http"},{data:e.error,input:e.args}):wt().addBreadcrumb({category:"fetch",data:{...e.fetchData,status_code:e.response.status},type:"http"},{input:e.args,response:e.response}))}function uU(e){let t=e.from,n=e.to;const r=k1(At.location.href);let i=k1(t);const o=k1(n);i.path||(i=r),r.protocol===o.protocol&&r.host===o.host&&(n=o.relative),r.protocol===i.protocol&&r.host===i.host&&(t=i.relative),wt().addBreadcrumb({category:"navigation",data:{from:t,to:n}})}class dU extends ol{constructor(t){t._metadata=t._metadata||{},t._metadata.sdk=t._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:dm}],version:dm},super(t),t.sendClientReports&&At.document&&At.document.addEventListener("visibilitychange",()=>{At.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return iU(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return oU(this._options.stackParser,t,n,r,this._options.attachStacktrace)}sendEvent(t,n){const r=this.getIntegrationById(eD);r&&r.addSentryBreadcrumb&&r.addSentryBreadcrumb(t),super.sendEvent(t,n)}_prepareEvent(t,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r)}_flushOutcomes(){const t=this._clearOutcomes();if(t.length===0){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.log("No outcomes to send");return}if(!this._dsn){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.log("No dsn provided, will not send outcomes");return}(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.log("Sending outcomes:",t);const n=GR(this._dsn,this._options),r=hH(t,this._options.tunnel&&Gw(this._dsn));try{Object.prototype.toString.call(At&&At.navigator)==="[object Navigator]"&&typeof At.navigator.sendBeacon=="function"&&!this._options.transportOptions?At.navigator.sendBeacon.bind(At.navigator)(n,NR(r)):this._sendEnvelope(r)}catch(i){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.error(i)}}}let cu;function hU(){if(cu)return cu;if(qx(At.fetch))return cu=At.fetch.bind(At);const e=At.document;let t=At.fetch;if(e&&typeof e.createElement=="function")try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(n){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return cu=t.bind(At)}function fU(){cu=void 0}function pU(e,t=hU()){function n(r){const i={body:r.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:r.body.length<=65536,...e.fetchOptions};try{return t(e.url,i).then(o=>({statusCode:o.status,headers:{"x-sentry-rate-limits":o.headers.get("X-Sentry-Rate-Limits"),"retry-after":o.headers.get("Retry-After")}}))}catch(o){return fU(),um(o)}}return ZR(e,n)}const gU=4;function mU(e){function t(n){return new mn((r,i)=>{const o=new XMLHttpRequest;o.onerror=i,o.onreadystatechange=()=>{o.readyState===gU&&r({statusCode:o.status,headers:{"x-sentry-rate-limits":o.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":o.getResponseHeader("Retry-After")}})},o.open("POST",e.url);for(const s in e.headers)Object.prototype.hasOwnProperty.call(e.headers,s)&&o.setRequestHeader(s,e.headers[s]);o.send(n.body)})}return ZR(e,t)}const B0="?",vU=30,yU=40,xU=50;function eA(e,t,n,r){const i={filename:e,function:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}const bU=/^\s*at (?:(.*\).*?|.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,_U=/\((\S*)(?::(\d+))(?::(\d+))\)/,wU=e=>{const t=bU.exec(e);if(t){if(t[2]&&t[2].indexOf("eval")===0){const o=_U.exec(t[2]);o&&(t[2]=o[1],t[3]=o[2],t[4]=o[3])}const[r,i]=nD(t[1]||B0,t[2]);return eA(i,r,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}},AU=[vU,wU],SU=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|safari-extension|safari-web-extension|capacitor)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,EU=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,CU=e=>{const t=SU.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const o=EU.exec(t[3]);o&&(t[1]=t[1]||"eval",t[3]=o[1],t[4]=o[2],t[5]="")}let r=t[3],i=t[1]||B0;return[i,r]=nD(i,r),eA(r,i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},kU=[xU,CU],TU=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,MU=e=>{const t=TU.exec(e);return t?eA(t[2],t[1]||B0,+t[3],t[4]?+t[4]:void 0):void 0},$U=[yU,MU],PU=[AU,kU,$U],OU=PR(...PU),nD=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:B0,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};class Zo{static __initStatic(){this.id="GlobalHandlers"}__init(){this.name=Zo.id}__init2(){this._installFunc={onerror:RU,onunhandledrejection:DU}}constructor(t){Zo.prototype.__init.call(this),Zo.prototype.__init2.call(this),this._options={onerror:!0,onunhandledrejection:!0,...t}}setupOnce(){Error.stackTraceLimit=50;const t=this._options;for(const n in t){const r=this._installFunc[n];r&&t[n]&&(NU(n),r(),this._installFunc[n]=void 0)}}}Zo.__initStatic();function RU(){qe("error",e=>{const[t,n,r]=oD();if(!t.getIntegration(Zo))return;const{msg:i,url:o,line:s,column:a,error:l}=e;if(JR()||l&&l.__sentry_own_request__)return;const c=l===void 0&&is(i)?IU(i,o,s,a):rD(tA(n,l||i,void 0,r,!1),o,s,a);c.level="error",iD(t,l,c,"onerror")})}function DU(){qe("unhandledrejection",e=>{const[t,n,r]=oD();if(!t.getIntegration(Zo))return;let i=e;try{"reason"in e?i=e.reason:"detail"in e&&"reason"in e.detail&&(i=e.detail.reason)}catch(s){}if(JR()||i&&i.__sentry_own_request__)return!0;const o=ER(i)?LU(i):tA(n,i,void 0,r,!0);o.level="error",iD(t,i,o,"onunhandledrejection")})}function LU(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function IU(e,t,n,r){const i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let o=SR(e)?e.message:e,s="Error";const a=o.match(i);return a&&(s=a[1],o=a[2]),rD({exception:{values:[{type:s,value:o}]}},t,n,r)}function rD(e,t,n,r){const i=e.exception=e.exception||{},o=i.values=i.values||[],s=o[0]=o[0]||{},a=s.stacktrace=s.stacktrace||{},l=a.frames=a.frames||[],c=isNaN(parseInt(r,10))?void 0:r,u=isNaN(parseInt(n,10))?void 0:n,d=is(t)&&t.length>0?t:bj();return l.length===0&&l.push({colno:c,filename:d,function:"?",in_app:!0,lineno:u}),e}function NU(e){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.log(`Global Handler attached: ${e}`)}function iD(e,t,n,r){Nd(n,{handled:!1,type:r}),e.captureEvent(n,{originalException:t})}function oD(){const e=wt(),t=e.getClient(),n=t&&t.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[e,n.stackParser,n.attachStacktrace]}const FU=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];class Vd{static __initStatic(){this.id="TryCatch"}__init(){this.name=Vd.id}constructor(t){Vd.prototype.__init.call(this),this._options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t}}setupOnce(){this._options.setTimeout&&on(At,"setTimeout",xC),this._options.setInterval&&on(At,"setInterval",xC),this._options.requestAnimationFrame&&on(At,"requestAnimationFrame",zU),this._options.XMLHttpRequest&&"XMLHttpRequest"in At&&on(XMLHttpRequest.prototype,"send",BU);const t=this._options.eventTarget;t&&(Array.isArray(t)?t:FU).forEach(VU)}}Vd.__initStatic();function xC(e){return function(...t){const n=t[0];return t[0]=Wl(n,{mechanism:{data:{function:os(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}}function zU(e){return function(t){return e.apply(this,[Wl(t,{mechanism:{data:{function:"requestAnimationFrame",handler:os(e)},handled:!0,type:"instrument"}})])}}function BU(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(i=>{i in n&&typeof n[i]=="function"&&on(n,i,function(o){const s={mechanism:{data:{function:i,handler:os(o)},handled:!0,type:"instrument"}},a=Xw(o);return a&&(s.mechanism.data.handler=os(a)),Wl(o,s)})}),e.apply(this,t)}}function VU(e){const t=At,n=t[e]&&t[e].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(on(n,"addEventListener",function(r){return function(i,o,s){try{typeof o.handleEvent=="function"&&(o.handleEvent=Wl(o.handleEvent,{mechanism:{data:{function:"handleEvent",handler:os(o),target:e},handled:!0,type:"instrument"}}))}catch(a){}return r.apply(this,[i,Wl(o,{mechanism:{data:{function:"addEventListener",handler:os(o),target:e},handled:!0,type:"instrument"}}),s])}}),on(n,"removeEventListener",function(r){return function(i,o,s){const a=o;try{const l=a&&a.__sentry_wrapped__;l&&r.call(this,i,l,s)}catch(l){}return r.call(this,i,a,s)}}))}const jU="cause",HU=5;class Sl{static __initStatic(){this.id="LinkedErrors"}__init(){this.name=Sl.id}constructor(t={}){Sl.prototype.__init.call(this),this._key=t.key||jU,this._limit=t.limit||HU}setupOnce(){const t=wt().getClient();!t||F0((n,r)=>{const i=wt().getIntegration(Sl);return i?UU(t.getOptions().stackParser,i._key,i._limit,n,r):n})}}Sl.__initStatic();function UU(e,t,n,r,i){if(!r.exception||!r.exception.values||!i||!hi(i.originalException,Error))return r;const o=sD(e,n,i.originalException,t);return r.exception.values=[...o,...r.exception.values],r}function sD(e,t,n,r,i=[]){if(!hi(n[r],Error)||i.length+1>=t)return i;const o=tD(e,n[r]);return sD(e,t,n[r],r,[o,...i])}class El{constructor(){El.prototype.__init.call(this)}static __initStatic(){this.id="HttpContext"}__init(){this.name=El.id}setupOnce(){F0(t=>{if(wt().getIntegration(El)){if(!At.navigator&&!At.location&&!At.document)return t;const n=t.request&&t.request.url||At.location&&At.location.href,{referrer:r}=At.document||{},{userAgent:i}=At.navigator||{},o={...t.request&&t.request.headers,...r&&{Referer:r},...i&&{"User-Agent":i}},s={...t.request,...n&&{url:n},headers:o};return{...t,request:s}}return t})}}El.__initStatic();class Cl{constructor(){Cl.prototype.__init.call(this)}static __initStatic(){this.id="Dedupe"}__init(){this.name=Cl.id}setupOnce(t,n){const r=i=>{const o=n().getIntegration(Cl);if(o){try{if(WU(i,o._previousEvent))return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(s){return o._previousEvent=i}return o._previousEvent=i}return i};r.id=this.name,t(r)}}Cl.__initStatic();function WU(e,t){return t?!!(YU(e,t)||GU(e,t)):!1}function YU(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!lD(e,t)||!aD(e,t))}function GU(e,t){const n=bC(t),r=bC(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!lD(e,t)||!aD(e,t))}function aD(e,t){let n=_C(e),r=_C(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let i=0;i<r.length;i++){const o=r[i],s=n[i];if(o.filename!==s.filename||o.lineno!==s.lineno||o.colno!==s.colno||o.function!==s.function)return!1}return!0}function lD(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch(i){return!1}}function bC(e){return e.exception&&e.exception.values&&e.exception.values[0]}function _C(e){const t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(n){return}}const qU=[new Al,new zd,new Vd,new Bd,new Zo,new Sl,new Cl,new El];function XU(e={}){e.defaultIntegrations===void 0&&(e.defaultIntegrations=qU),e.release===void 0&&(typeof __SENTRY_RELEASE__=="string"&&(e.release=__SENTRY_RELEASE__),At.SENTRY_RELEASE&&At.SENTRY_RELEASE.id&&(e.release=At.SENTRY_RELEASE.id)),e.autoSessionTracking===void 0&&(e.autoSessionTracking=!0),e.sendClientReports===void 0&&(e.sendClientReports=!0);const t={...e,stackParser:Oj(e.stackParser||OU),integrations:LH(e),transport:e.transport||(OR()?pU:mU)};jH(dU,t),e.autoSessionTracking&&QU()}function wC(e){e.startSession({ignoreDuration:!0}),e.captureSession()}function QU(){if(typeof At.document>"u"){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}const e=wt();!e.captureSession||(wC(e),qe("history",({from:t,to:n})=>{t===void 0||t===n||wC(wt())}))}const Le=tr,cD="sentryReplaySession",uD="replay_event",nA="Unable to send Replay",Ou=3e5,AC=Ou,dD=36e5,KU="body *:not(style), body *:not(script)",ZU=5e3,JU=5e3,tW=5e3,eW=3;/*! *****************************************************************************
|
|
46
|
+
Copyright (c) Microsoft Corporation.
|
|
47
|
+
|
|
48
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
49
|
+
purpose with or without fee is hereby granted.
|
|
50
|
+
|
|
51
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
52
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
53
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
54
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
55
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
56
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
57
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
58
|
+
***************************************************************************** */var xe=function(){return xe=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},xe.apply(this,arguments)};function nW(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Mo(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function mt(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o}function vt(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var Fe;(function(e){e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment"})(Fe||(Fe={}));function rW(e){return e.nodeType===e.ELEMENT_NODE}function Ru(e){var t,n=(t=e)===null||t===void 0?void 0:t.host;return Boolean(n&&n.shadowRoot&&n.shadowRoot===e)}function rA(e){var t=e.maskInputOptions,n=e.tagName,r=e.type,i=e.value,o=e.maskInputFn,s=i||"";return(t[n.toLowerCase()]||t[r])&&(o?s=o(s):s="*".repeat(s.length)),s}var SC="__rrweb_original__";function iW(e){var t=e.getContext("2d");if(!t)return!0;for(var n=50,r=0;r<e.width;r+=n)for(var i=0;i<e.height;i+=n){var o=t.getImageData,s=SC in o?o[SC]:o,a=new Uint32Array(s.call(t,r,i,Math.min(n,e.width-r),Math.min(n,e.height-i)).data.buffer);if(a.some(function(l){return l!==0}))return!1}return!0}var oW=1,sW=new RegExp("[^a-z0-9-_:]"),jd=-2;function aW(){return oW++}function lW(e){if(e instanceof HTMLFormElement)return"form";var t=e.tagName.toLowerCase().trim();return sW.test(t)?"div":t}function nb(e){try{var t=e.rules||e.cssRules;return t?Array.from(t).map(cW).join(""):null}catch(n){return null}}function cW(e){var t=e.cssText;if(uW(e))try{t=nb(e.styleSheet)||t}catch(n){}return t}function uW(e){return"styleSheet"in e}function dW(e){return e.cssRules?Array.from(e.cssRules).map(function(t){return t.cssText||""}).join(""):""}function hW(e){var t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}var Oa,EC,fW=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,pW=/^(?!www\.|(?:http|ftp)s?:\/\/|[A-Za-z]:\\|\/\/|#).*/,gW=/^(data:)([^,]*),(.*)/i;function Jp(e,t){return(e||"").replace(fW,function(n,r,i,o,s,a){var l=i||s||a,c=r||o||"";if(!l)return n;if(!pW.test(l)||gW.test(l))return"url("+c+l+c+")";if(l[0]==="/")return"url("+c+(hW(t)+l)+c+")";var u=t.split("/"),d=l.split("/");u.pop();for(var h=0,f=d;h<f.length;h++){var p=f[h];p!=="."&&(p===".."?u.pop():u.push(p))}return"url("+c+u.join("/")+c+")"})}var mW=/^[^ \t\n\r\u000c]+/,vW=/^[, \t\n\r\u000c]+/;function yW(e,t){if(t.trim()==="")return t;var n=0;function r(c){var u,d=c.exec(t.substring(n));return d?(u=d[0],n+=u.length,u):""}for(var i=[];r(vW),!(n>=t.length);){var o=r(mW);if(o.slice(-1)===",")o=sl(e,o.substring(0,o.length-1)),i.push(o);else{var s="";o=sl(e,o);for(var a=!1;;){var l=t.charAt(n);if(l===""){i.push((o+s).trim());break}else if(a)l===")"&&(a=!1);else if(l===","){n+=1,i.push((o+s).trim());break}else l==="("&&(a=!0);s+=l,n+=1}}}return i.join(", ")}function sl(e,t){if(!t||t.trim()==="")return t;var n=e.createElement("a");return n.href=t,n.href}function xW(e){return Boolean(e.tagName==="svg"||e.ownerSVGElement)}function rb(){var e=document.createElement("a");return e.href="",e.href}function hD(e,t,n,r){return n==="src"||n==="href"&&r||n==="xlink:href"&&r&&r[0]!=="#"||n==="background"&&r&&(t==="table"||t==="td"||t==="th")?sl(e,r):n==="srcset"&&r?yW(e,r):n==="style"&&r?Jp(r,rb()):t==="object"&&n==="data"&&r?sl(e,r):r}function bW(e,t,n){if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(var r=0;r<e.classList.length;r++){var i=e.classList[r];if(t.test(i))return!0}return n?e.matches(n):!1}function Du(e,t,n){if(!e)return!1;if(e.nodeType===e.ELEMENT_NODE){if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(var r=0;r<e.classList.length;r++){var i=e.classList[r];if(t.test(i))return!0}return n&&e.matches(n)?!0:Du(e.parentNode,t,n)}return e.nodeType===e.TEXT_NODE,Du(e.parentNode,t,n)}function _W(e,t,n){var r=e.contentWindow;if(!!r){var i=!1,o;try{o=r.document.readyState}catch(l){return}if(o!=="complete"){var s=setTimeout(function(){i||(t(),i=!0)},n);e.addEventListener("load",function(){clearTimeout(s),i=!0,t()});return}var a="about:blank";if(r.location.href!==a||e.src===a||e.src===""){setTimeout(t,0);return}e.addEventListener("load",t)}}function wW(e,t){var n,r=t.doc,i=t.blockClass,o=t.blockSelector,s=t.maskTextClass,a=t.maskTextSelector,l=t.inlineStylesheet,c=t.maskInputOptions,u=c===void 0?{}:c,d=t.maskTextFn,h=t.maskInputFn,f=t.dataURLOptions,p=f===void 0?{}:f,g=t.inlineImages,y=t.recordCanvas,m=t.keepIframeSrcFn,x;if(r.__sn){var b=r.__sn.id;x=b===1?void 0:b}switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:Fe.Document,childNodes:[],compatMode:e.compatMode,rootId:x}:{type:Fe.Document,childNodes:[],rootId:x};case e.DOCUMENT_TYPE_NODE:return{type:Fe.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:x};case e.ELEMENT_NODE:for(var _=bW(e,i,o),w=lW(e),A={},S=0,E=Array.from(e.attributes);S<E.length;S++){var k=E[S],C=k.name,T=k.value;A[C]=hD(r,w,C,T)}if(w==="link"&&l){var $=Array.from(r.styleSheets).find(function(st){return st.href===e.href}),I=null;$&&(I=nb($)),I&&(delete A.rel,delete A.href,A._cssText=Jp(I,$.href))}if(w==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){var I=nb(e.sheet);I&&(A._cssText=Jp(I,rb()))}if(w==="input"||w==="textarea"||w==="select"){var T=e.value;A.type!=="radio"&&A.type!=="checkbox"&&A.type!=="submit"&&A.type!=="button"&&T?A.value=rA({type:A.type,tagName:w,value:T,maskInputOptions:u,maskInputFn:h}):e.checked&&(A.checked=e.checked)}if(w==="option"&&(e.selected&&!u.select?A.selected=!0:delete A.selected),w==="canvas"&&y){if(e.__context==="2d")iW(e)||(A.rr_dataURL=e.toDataURL(p.type,p.quality));else if(!("__context"in e)){var N=e.toDataURL(p.type,p.quality),D=document.createElement("canvas");D.width=e.width,D.height=e.height;var Y=D.toDataURL(p.type,p.quality);N!==Y&&(A.rr_dataURL=N)}}if(w==="img"&&g){Oa||(Oa=r.createElement("canvas"),EC=Oa.getContext("2d"));var Q=e,F=Q.crossOrigin;Q.crossOrigin="anonymous";var W=function(){try{Oa.width=Q.naturalWidth,Oa.height=Q.naturalHeight,EC.drawImage(Q,0,0),A.rr_dataURL=Oa.toDataURL(p.type,p.quality)}catch(st){console.warn("Cannot inline img src="+Q.currentSrc+"! Error: "+st)}F?A.crossOrigin=F:delete A.crossOrigin};Q.complete&&Q.naturalWidth!==0?W():Q.onload=W}if((w==="audio"||w==="video")&&(A.rr_mediaState=e.paused?"paused":"played",A.rr_mediaCurrentTime=e.currentTime),e.scrollLeft&&(A.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(A.rr_scrollTop=e.scrollTop),_){var P=e.getBoundingClientRect(),G=P.width,U=P.height;A={class:A.class,rr_width:G+"px",rr_height:U+"px"}}return w==="iframe"&&!m(A.src)&&(e.contentDocument||(A.rr_src=A.src),delete A.src),{type:Fe.Element,tagName:w,attributes:A,childNodes:[],isSVG:xW(e)||void 0,needBlock:_,rootId:x};case e.TEXT_NODE:var B=e.parentNode&&e.parentNode.tagName,R=e.textContent,V=B==="STYLE"?!0:void 0,K=B==="SCRIPT"?!0:void 0;if(V&&R){try{e.nextSibling||e.previousSibling||!((n=e.parentNode.sheet)===null||n===void 0)&&n.cssRules&&(R=dW(e.parentNode.sheet))}catch(st){console.warn("Cannot get CSS styles from text's parentNode. Error: "+st,e)}R=Jp(R,rb())}return K&&(R="SCRIPT_PLACEHOLDER"),!V&&!K&&Du(e,s,a)&&R&&(R=d?d(R):R.replace(/[\S]/g,"*")),{type:Fe.Text,textContent:R||"",isStyle:V,rootId:x};case e.CDATA_SECTION_NODE:return{type:Fe.CDATA,textContent:"",rootId:x};case e.COMMENT_NODE:return{type:Fe.Comment,textContent:e.textContent||"",rootId:x};default:return!1}}function Nt(e){return e===void 0?"":e.toLowerCase()}function AW(e,t){if(t.comment&&e.type===Fe.Comment)return!0;if(e.type===Fe.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&e.attributes.rel==="preload"&&e.attributes.as==="script"||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&e.attributes.href.endsWith(".js")))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(Nt(e.attributes.name).match(/^msapplication-tile(image|color)$/)||Nt(e.attributes.name)==="application-name"||Nt(e.attributes.rel)==="icon"||Nt(e.attributes.rel)==="apple-touch-icon"||Nt(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&Nt(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Nt(e.attributes.property).match(/^(og|twitter|fb):/)||Nt(e.attributes.name).match(/^(og|twitter):/)||Nt(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(Nt(e.attributes.name)==="robots"||Nt(e.attributes.name)==="googlebot"||Nt(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(Nt(e.attributes.name)==="author"||Nt(e.attributes.name)==="generator"||Nt(e.attributes.name)==="framework"||Nt(e.attributes.name)==="publisher"||Nt(e.attributes.name)==="progid"||Nt(e.attributes.property).match(/^article:/)||Nt(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(Nt(e.attributes.name)==="google-site-verification"||Nt(e.attributes.name)==="yandex-verification"||Nt(e.attributes.name)==="csrf-token"||Nt(e.attributes.name)==="p:domain_verify"||Nt(e.attributes.name)==="verify-v1"||Nt(e.attributes.name)==="verification"||Nt(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Lu(e,t){var n=t.doc,r=t.map,i=t.blockClass,o=t.blockSelector,s=t.maskTextClass,a=t.maskTextSelector,l=t.skipChild,c=l===void 0?!1:l,u=t.inlineStylesheet,d=u===void 0?!0:u,h=t.maskInputOptions,f=h===void 0?{}:h,p=t.maskTextFn,g=t.maskInputFn,y=t.slimDOMOptions,m=t.dataURLOptions,x=m===void 0?{}:m,b=t.inlineImages,_=b===void 0?!1:b,w=t.recordCanvas,A=w===void 0?!1:w,S=t.onSerialize,E=t.onIframeLoad,k=t.iframeLoadTimeout,C=k===void 0?5e3:k,T=t.keepIframeSrcFn,$=T===void 0?function(){return!1}:T,I=t.preserveWhiteSpace,N=I===void 0?!0:I,D=wW(e,{doc:n,blockClass:i,blockSelector:o,maskTextClass:s,maskTextSelector:a,inlineStylesheet:d,maskInputOptions:f,maskTextFn:p,maskInputFn:g,dataURLOptions:x,inlineImages:_,recordCanvas:A,keepIframeSrcFn:$});if(!D)return console.warn(e,"not serialized"),null;var Y;"__sn"in e?Y=e.__sn.id:AW(D,y)||!N&&D.type===Fe.Text&&!D.isStyle&&!D.textContent.replace(/^\s+|\s+$/gm,"").length?Y=jd:Y=aW();var Q=Object.assign(D,{id:Y});if(e.__sn=Q,Y===jd)return null;r[Y]=e,S&&S(e);var F=!c;if(Q.type===Fe.Element&&(F=F&&!Q.needBlock,delete Q.needBlock,e.shadowRoot&&(Q.isShadowHost=!0)),(Q.type===Fe.Document||Q.type===Fe.Element)&&F){y.headWhitespace&&D.type===Fe.Element&&D.tagName==="head"&&(N=!1);for(var W={doc:n,map:r,blockClass:i,blockSelector:o,maskTextClass:s,maskTextSelector:a,skipChild:c,inlineStylesheet:d,maskInputOptions:f,maskTextFn:p,maskInputFn:g,slimDOMOptions:y,dataURLOptions:x,inlineImages:_,recordCanvas:A,preserveWhiteSpace:N,onSerialize:S,onIframeLoad:E,iframeLoadTimeout:C,keepIframeSrcFn:$},P=0,G=Array.from(e.childNodes);P<G.length;P++){var U=G[P],B=Lu(U,W);B&&Q.childNodes.push(B)}if(rW(e)&&e.shadowRoot)for(var R=0,V=Array.from(e.shadowRoot.childNodes);R<V.length;R++){var U=V[R],B=Lu(U,W);B&&(B.isShadow=!0,Q.childNodes.push(B))}}return e.parentNode&&Ru(e.parentNode)&&(Q.isShadow=!0),Q.type===Fe.Element&&Q.tagName==="iframe"&&_W(e,function(){var K=e.contentDocument;if(K&&E){var st=Lu(K,{doc:K,map:r,blockClass:i,blockSelector:o,maskTextClass:s,maskTextSelector:a,skipChild:!1,inlineStylesheet:d,maskInputOptions:f,maskTextFn:p,maskInputFn:g,slimDOMOptions:y,dataURLOptions:x,inlineImages:_,recordCanvas:A,preserveWhiteSpace:N,onSerialize:S,onIframeLoad:E,iframeLoadTimeout:C,keepIframeSrcFn:$});st&&E(e,st)}},C),Q}function SW(e,t){var n=t||{},r=n.blockClass,i=r===void 0?"rr-block":r,o=n.blockSelector,s=o===void 0?null:o,a=n.maskTextClass,l=a===void 0?"rr-mask":a,c=n.maskTextSelector,u=c===void 0?null:c,d=n.inlineStylesheet,h=d===void 0?!0:d,f=n.inlineImages,p=f===void 0?!1:f,g=n.recordCanvas,y=g===void 0?!1:g,m=n.maskAllInputs,x=m===void 0?!1:m,b=n.maskTextFn,_=n.maskInputFn,w=n.slimDOM,A=w===void 0?!1:w,S=n.dataURLOptions,E=n.preserveWhiteSpace,k=n.onSerialize,C=n.onIframeLoad,T=n.iframeLoadTimeout,$=n.keepIframeSrcFn,I=$===void 0?function(){return!1}:$,N={},D=x===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:x===!1?{password:!0}:x,Y=A===!0||A==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:A==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:A===!1?{}:A;return[Lu(e,{doc:e,map:N,blockClass:i,blockSelector:s,maskTextClass:l,maskTextSelector:u,skipChild:!1,inlineStylesheet:h,maskInputOptions:D,maskTextFn:b,maskInputFn:_,slimDOMOptions:Y,dataURLOptions:S,inlineImages:p,recordCanvas:y,preserveWhiteSpace:E,onSerialize:k,onIframeLoad:C,iframeLoadTimeout:T,keepIframeSrcFn:I}),N]}var Ft;(function(e){e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin"})(Ft||(Ft={}));var We;(function(e){e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration"})(We||(We={}));var fm;(function(e){e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel"})(fm||(fm={}));var Yl;(function(e){e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2"})(Yl||(Yl={}));var CC;(function(e){e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange"})(CC||(CC={}));var kC;(function(e){e.Start="start",e.Pause="pause",e.Resume="resume",e.Resize="resize",e.Finish="finish",e.FullsnapshotRebuilded="fullsnapshot-rebuilded",e.LoadStylesheetStart="load-stylesheet-start",e.LoadStylesheetEnd="load-stylesheet-end",e.SkipStart="skip-start",e.SkipEnd="skip-end",e.MouseInteraction="mouse-interaction",e.EventCast="event-cast",e.CustomEvent="custom-event",e.Flush="flush",e.StateChange="state-change",e.PlayBack="play-back"})(kC||(kC={}));function Zn(e,t,n){n===void 0&&(n=document);var r={capture:!0,passive:!0};return n.addEventListener(e,t,r),function(){return n.removeEventListener(e,t,r)}}function EW(){return{map:{},getId:function(e){return!e||!e.__sn?-1:e.__sn.id},getNode:function(e){return this.map[e]||null},removeNodeFromMap:function(e){var t=this,n=e.__sn&&e.__sn.id;delete this.map[n],e.childNodes&&e.childNodes.forEach(function(r){return t.removeNodeFromMap(r)})},has:function(e){return this.map.hasOwnProperty(e)},reset:function(){this.map={}}}}var Ya=`Please stop import mirror directly. Instead of that,\r
|
|
59
|
+
now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
|
|
60
|
+
or you can use record.mirror to access the mirror instance during recording.`,TC={map:{},getId:function(){return console.error(Ya),-1},getNode:function(){return console.error(Ya),null},removeNodeFromMap:function(){console.error(Ya)},has:function(){return console.error(Ya),!1},reset:function(){console.error(Ya)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(TC=new Proxy(TC,{get:function(e,t,n){return t==="map"&&console.error(Ya),Reflect.get(e,t,n)}}));function Hd(e,t,n){n===void 0&&(n={});var r=null,i=0;return function(o){var s=Date.now();!i&&n.leading===!1&&(i=s);var a=t-(s-i),l=this,c=arguments;a<=0||a>t?(r&&(clearTimeout(r),r=null),i=s,e.apply(l,c)):!r&&n.trailing!==!1&&(r=setTimeout(function(){i=n.leading===!1?0:Date.now(),r=null,e.apply(l,c)},a))}}function V0(e,t,n,r,i){i===void 0&&(i=window);var o=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,r?n:{set:function(s){var a=this;setTimeout(function(){n.set.call(a,s)},0),o&&o.set&&o.set.call(this,s)}}),function(){return V0(e,t,o||{},!0)}}function Gl(e,t,n){try{if(!(t in e))return function(){};var r=e[t],i=n(r);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,function(){e[t]=r}}catch(o){return function(){}}}function fD(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function pD(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function yn(e,t){if(!e)return!1;if(e.nodeType===e.ELEMENT_NODE){var n=!1;if(typeof t=="string"){if(e.closest!==void 0)return e.closest("."+t)!==null;n=e.classList.contains(t)}else e.classList.forEach(function(r){t.test(r)&&(n=!0)});return n||yn(e.parentNode,t)}return e.nodeType===e.TEXT_NODE,yn(e.parentNode,t)}function $1(e){return"__sn"in e?e.__sn.id===jd:!1}function gD(e,t){if(Ru(e))return!1;var n=t.getId(e);return t.has(n)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?gD(e.parentNode,t):!0:!0}function mD(e){return Boolean(e.changedTouches)}function CW(e){e===void 0&&(e=window),"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=function(n){if(!(0 in arguments))throw new TypeError("1 argument is required");do if(this===n)return!0;while(n=n&&n.parentNode);return!1})}function vD(e){return"__sn"in e?e.__sn.type===Fe.Element&&e.__sn.tagName==="iframe":!1}function yD(e){return Boolean(e==null?void 0:e.shadowRoot)}function MC(e){return"__ln"in e}var kW=function(){function e(){this.length=0,this.head=null}return e.prototype.get=function(t){if(t>=this.length)throw new Error("Position outside of list range");for(var n=this.head,r=0;r<t;r++)n=(n==null?void 0:n.next)||null;return n},e.prototype.addNode=function(t){var n={value:t,previous:null,next:null};if(t.__ln=n,t.previousSibling&&MC(t.previousSibling)){var r=t.previousSibling.__ln.next;n.next=r,n.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=n,r&&(r.previous=n)}else if(t.nextSibling&&MC(t.nextSibling)&&t.nextSibling.__ln.previous){var r=t.nextSibling.__ln.previous;n.previous=r,n.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=n,r&&(r.next=n)}else this.head&&(this.head.previous=n),n.next=this.head,this.head=n;this.length++},e.prototype.removeNode=function(t){var n=t.__ln;!this.head||(n.previous?(n.previous.next=n.next,n.next&&(n.next.previous=n.previous)):(this.head=n.next,this.head&&(this.head.previous=null)),t.__ln&&delete t.__ln,this.length--)},e}(),$C=function(e,t){return"".concat(e,"@").concat(t)};function PC(e){return"__sn"in e}var TW=function(){function e(){var t=this;this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=function(n){n.forEach(t.processMutation),t.emit()},this.emit=function(){var n,r,i,o;if(!(t.frozen||t.locked)){for(var s=[],a=new kW,l=function(A){for(var S=A,E=jd;E===jd;)S=S&&S.nextSibling,E=S&&t.mirror.getId(S);return E},c=function(A){for(var S,E,k,C,T,$=A.getRootNode?(S=A.getRootNode())===null||S===void 0?void 0:S.host:null,I=$;!((k=(E=I==null?void 0:I.getRootNode)===null||E===void 0?void 0:E.call(I))===null||k===void 0)&&k.host;)I=((T=(C=I==null?void 0:I.getRootNode)===null||C===void 0?void 0:C.call(I))===null||T===void 0?void 0:T.host)||null;var N=!t.doc.contains(A)&&(I===null||!t.doc.contains(I));if(!(!A.parentNode||N)){var D=Ru(A.parentNode)?t.mirror.getId($):t.mirror.getId(A.parentNode),Y=l(A);if(D===-1||Y===-1)return a.addNode(A);var Q=Lu(A,{doc:t.doc,map:t.mirror.map,blockClass:t.blockClass,blockSelector:t.blockSelector,maskTextClass:t.maskTextClass,maskTextSelector:t.maskTextSelector,skipChild:!0,inlineStylesheet:t.inlineStylesheet,maskInputOptions:t.maskInputOptions,maskTextFn:t.maskTextFn,maskInputFn:t.maskInputFn,slimDOMOptions:t.slimDOMOptions,recordCanvas:t.recordCanvas,inlineImages:t.inlineImages,onSerialize:function(F){vD(F)&&t.iframeManager.addIframe(F),yD(A)&&t.shadowDomManager.addShadowRoot(A.shadowRoot,document)},onIframeLoad:function(F,W){t.iframeManager.attachIframe(F,W),t.shadowDomManager.observeAttachShadow(F)}});Q&&s.push({parentId:D,nextId:Y,node:Q})}};t.mapRemoves.length;)t.mirror.removeNodeFromMap(t.mapRemoves.shift());try{for(var u=Mo(t.movedSet),d=u.next();!d.done;d=u.next()){var h=d.value;ob(t.removes,h,t.mirror)&&!t.movedSet.has(h.parentNode)||c(h)}}catch(A){n={error:A}}finally{try{d&&!d.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}try{for(var f=Mo(t.addedSet),p=f.next();!p.done;p=f.next()){var h=p.value;!sb(t.droppedSet,h)&&!ob(t.removes,h,t.mirror)||sb(t.movedSet,h)?c(h):t.droppedSet.add(h)}}catch(A){i={error:A}}finally{try{p&&!p.done&&(o=f.return)&&o.call(f)}finally{if(i)throw i.error}}for(var g=null;a.length;){var y=null;if(g){var m=t.mirror.getId(g.value.parentNode),x=l(g.value);m!==-1&&x!==-1&&(y=g)}if(!y)for(var b=a.length-1;b>=0;b--){var _=a.get(b);if(_){var m=t.mirror.getId(_.value.parentNode),x=l(_.value);if(m!==-1&&x!==-1){y=_;break}}}if(!y){for(;a.head;)a.removeNode(a.head.value);break}g=y.previous,a.removeNode(y.value),c(y.value)}var w={texts:t.texts.map(function(A){return{id:t.mirror.getId(A.node),value:A.value}}).filter(function(A){return t.mirror.has(A.id)}),attributes:t.attributes.map(function(A){return{id:t.mirror.getId(A.node),attributes:A.attributes}}).filter(function(A){return t.mirror.has(A.id)}),removes:t.removes,adds:s};!w.texts.length&&!w.attributes.length&&!w.removes.length&&!w.adds.length||(t.texts=[],t.attributes=[],t.removes=[],t.addedSet=new Set,t.movedSet=new Set,t.droppedSet=new Set,t.movedMap={},t.mutationCb(w))}},this.processMutation=function(n){var r,i,o,s;if(!$1(n.target))switch(n.type){case"characterData":{var a=n.target.textContent;!yn(n.target,t.blockClass)&&a!==n.oldValue&&t.texts.push({value:Du(n.target,t.maskTextClass,t.maskTextSelector)&&a?t.maskTextFn?t.maskTextFn(a):a.replace(/[\S]/g,"*"):a,node:n.target});break}case"attributes":{var l=n.target,a=n.target.getAttribute(n.attributeName);if(n.attributeName==="value"&&(a=rA({maskInputOptions:t.maskInputOptions,tagName:n.target.tagName,type:n.target.getAttribute("type"),value:a,maskInputFn:t.maskInputFn})),yn(n.target,t.blockClass)||a===n.oldValue)return;var c=t.attributes.find(function(_){return _.node===n.target});if(c||(c={node:n.target,attributes:{}},t.attributes.push(c)),n.attributeName==="style"){var u=t.doc.createElement("span");n.oldValue&&u.setAttribute("style",n.oldValue),(c.attributes.style===void 0||c.attributes.style===null)&&(c.attributes.style={});var d=c.attributes.style;try{for(var h=Mo(Array.from(l.style)),f=h.next();!f.done;f=h.next()){var p=f.value,g=l.style.getPropertyValue(p),y=l.style.getPropertyPriority(p);(g!==u.style.getPropertyValue(p)||y!==u.style.getPropertyPriority(p))&&(y===""?d[p]=g:d[p]=[g,y])}}catch(_){r={error:_}}finally{try{f&&!f.done&&(i=h.return)&&i.call(h)}finally{if(r)throw r.error}}try{for(var m=Mo(Array.from(u.style)),x=m.next();!x.done;x=m.next()){var p=x.value;l.style.getPropertyValue(p)===""&&(d[p]=!1)}}catch(_){o={error:_}}finally{try{x&&!x.done&&(s=m.return)&&s.call(m)}finally{if(o)throw o.error}}}else c.attributes[n.attributeName]=hD(t.doc,n.target.tagName,n.attributeName,a);break}case"childList":{n.addedNodes.forEach(function(b){return t.genAdds(b,n.target)}),n.removedNodes.forEach(function(b){var _=t.mirror.getId(b),w=Ru(n.target)?t.mirror.getId(n.target.host):t.mirror.getId(n.target);yn(n.target,t.blockClass)||$1(b)||(t.addedSet.has(b)?(ib(t.addedSet,b),t.droppedSet.add(b)):t.addedSet.has(n.target)&&_===-1||gD(n.target,t.mirror)||(t.movedSet.has(b)&&t.movedMap[$C(_,w)]?ib(t.movedSet,b):t.removes.push({parentId:w,id:_,isShadow:Ru(n.target)?!0:void 0})),t.mapRemoves.push(b))});break}}},this.genAdds=function(n,r){if(!(r&&yn(r,t.blockClass))){if(PC(n)){if($1(n))return;t.movedSet.add(n);var i=null;r&&PC(r)&&(i=r.__sn.id),i&&(t.movedMap[$C(n.__sn.id,i)]=!0)}else t.addedSet.add(n),t.droppedSet.delete(n);yn(n,t.blockClass)||n.childNodes.forEach(function(o){return t.genAdds(o)})}}}return e.prototype.init=function(t){var n=this;["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","recordCanvas","inlineImages","slimDOMOptions","doc","mirror","iframeManager","shadowDomManager","canvasManager"].forEach(function(r){n[r]=t[r]})},e.prototype.freeze=function(){this.frozen=!0,this.canvasManager.freeze()},e.prototype.unfreeze=function(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()},e.prototype.isFrozen=function(){return this.frozen},e.prototype.lock=function(){this.locked=!0,this.canvasManager.lock()},e.prototype.unlock=function(){this.locked=!1,this.canvasManager.unlock(),this.emit()},e.prototype.reset=function(){this.shadowDomManager.reset(),this.canvasManager.reset()},e}();function ib(e,t){e.delete(t),t.childNodes.forEach(function(n){return ib(e,n)})}function ob(e,t,n){var r=t.parentNode;if(!r)return!1;var i=n.getId(r);return e.some(function(o){return o.id===i})?!0:ob(e,r,n)}function sb(e,t){var n=t.parentNode;return n?e.has(n)?!0:sb(e,n):!1}const MW=TW;var Ks=[],xD=typeof CSSGroupingRule<"u",bD=typeof CSSMediaRule<"u",_D=typeof CSSSupportsRule<"u",wD=typeof CSSConditionRule<"u";function Oh(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0];return e.target}catch(n){return e.target}}function AD(e,t){var n,r,i=new MW;Ks.push(i),i.init(e);var o=window.MutationObserver||window.__rrMutationObserver,s=(r=(n=window==null?void 0:window.Zone)===null||n===void 0?void 0:n.__symbol__)===null||r===void 0?void 0:r.call(n,"MutationObserver");s&&window[s]&&(o=window[s]);var a=new o(i.processMutations.bind(i));return a.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),a}function $W(e){var t=e.mousemoveCb,n=e.sampling,r=e.doc,i=e.mirror;if(n.mousemove===!1)return function(){};var o=typeof n.mousemove=="number"?n.mousemove:50,s=typeof n.mousemoveCallback=="number"?n.mousemoveCallback:500,a=[],l,c=Hd(function(h){var f=Date.now()-l;t(a.map(function(p){return p.timeOffset-=f,p}),h),a=[],l=null},s),u=Hd(function(h){var f=Oh(h),p=mD(h)?h.changedTouches[0]:h,g=p.clientX,y=p.clientY;l||(l=Date.now()),a.push({x:g,y,id:i.getId(f),timeOffset:Date.now()-l}),c(typeof DragEvent<"u"&&h instanceof DragEvent?We.Drag:h instanceof MouseEvent?We.MouseMove:We.TouchMove)},o,{trailing:!1}),d=[Zn("mousemove",u,r),Zn("touchmove",u,r),Zn("drag",u,r)];return function(){d.forEach(function(h){return h()})}}function PW(e){var t=e.mouseInteractionCb,n=e.doc,r=e.mirror,i=e.blockClass,o=e.sampling;if(o.mouseInteraction===!1)return function(){};var s=o.mouseInteraction===!0||o.mouseInteraction===void 0?{}:o.mouseInteraction,a=[],l=function(c){return function(u){var d=Oh(u);if(!yn(d,i)){var h=mD(u)?u.changedTouches[0]:u;if(!!h){var f=r.getId(d),p=h.clientX,g=h.clientY;t({type:fm[c],id:f,x:p,y:g})}}}};return Object.keys(fm).filter(function(c){return Number.isNaN(Number(c))&&!c.endsWith("_Departed")&&s[c]!==!1}).forEach(function(c){var u=c.toLowerCase(),d=l(c);a.push(Zn(u,d,n))}),function(){a.forEach(function(c){return c()})}}function SD(e){var t=e.scrollCb,n=e.doc,r=e.mirror,i=e.blockClass,o=e.sampling,s=Hd(function(a){var l=Oh(a);if(!(!l||yn(l,i))){var c=r.getId(l);if(l===n){var u=n.scrollingElement||n.documentElement;t({id:c,x:u.scrollLeft,y:u.scrollTop})}else t({id:c,x:l.scrollLeft,y:l.scrollTop})}},o.scroll||100);return Zn("scroll",s,n)}function OW(e){var t=e.viewportResizeCb,n=-1,r=-1,i=Hd(function(){var o=fD(),s=pD();(n!==o||r!==s)&&(t({width:Number(s),height:Number(o)}),n=o,r=s)},200);return Zn("resize",i,window)}function OC(e,t){var n=xe({},e);return t||delete n.userTriggered,n}var RW=["INPUT","TEXTAREA","SELECT"],RC=new WeakMap;function DW(e){var t=e.inputCb,n=e.doc,r=e.mirror,i=e.blockClass,o=e.ignoreClass,s=e.maskInputOptions,a=e.maskInputFn,l=e.sampling,c=e.userTriggeredOnInput;function u(y){var m=Oh(y),x=y.isTrusted;if(m&&m.tagName==="OPTION"&&(m=m.parentElement),!(!m||!m.tagName||RW.indexOf(m.tagName)<0||yn(m,i))){var b=m.type;if(!m.classList.contains(o)){var _=m.value,w=!1;b==="radio"||b==="checkbox"?w=m.checked:(s[m.tagName.toLowerCase()]||s[b])&&(_=rA({maskInputOptions:s,tagName:m.tagName,type:b,value:_,maskInputFn:a})),d(m,OC({text:_,isChecked:w,userTriggered:x},c));var A=m.name;b==="radio"&&A&&w&&n.querySelectorAll('input[type="radio"][name="'.concat(A,'"]')).forEach(function(S){S!==m&&d(S,OC({text:S.value,isChecked:!w,userTriggered:!1},c))})}}}function d(y,m){var x=RC.get(y);if(!x||x.text!==m.text||x.isChecked!==m.isChecked){RC.set(y,m);var b=r.getId(y);t(xe(xe({},m),{id:b}))}}var h=l.input==="last"?["change"]:["input","change"],f=h.map(function(y){return Zn(y,u,n)}),p=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value"),g=[[HTMLInputElement.prototype,"value"],[HTMLInputElement.prototype,"checked"],[HTMLSelectElement.prototype,"value"],[HTMLTextAreaElement.prototype,"value"],[HTMLSelectElement.prototype,"selectedIndex"],[HTMLOptionElement.prototype,"selected"]];return p&&p.set&&f.push.apply(f,vt([],mt(g.map(function(y){return V0(y[0],y[1],{set:function(){u({target:this})}})})),!1)),function(){f.forEach(function(y){return y()})}}function pm(e){var t=[];function n(r,i){if(xD&&r.parentRule instanceof CSSGroupingRule||bD&&r.parentRule instanceof CSSMediaRule||_D&&r.parentRule instanceof CSSSupportsRule||wD&&r.parentRule instanceof CSSConditionRule){var o=Array.from(r.parentRule.cssRules),s=o.indexOf(r);i.unshift(s)}else{var o=Array.from(r.parentStyleSheet.cssRules),s=o.indexOf(r);i.unshift(s)}return i}return n(e,t)}function LW(e,t){var n=e.styleSheetRuleCb,r=e.mirror,i=t.win,o=i.CSSStyleSheet.prototype.insertRule;i.CSSStyleSheet.prototype.insertRule=function(c,u){var d=r.getId(this.ownerNode);return d!==-1&&n({id:d,adds:[{rule:c,index:u}]}),o.apply(this,arguments)};var s=i.CSSStyleSheet.prototype.deleteRule;i.CSSStyleSheet.prototype.deleteRule=function(c){var u=r.getId(this.ownerNode);return u!==-1&&n({id:u,removes:[{index:c}]}),s.apply(this,arguments)};var a={};xD?a.CSSGroupingRule=i.CSSGroupingRule:(bD&&(a.CSSMediaRule=i.CSSMediaRule),wD&&(a.CSSConditionRule=i.CSSConditionRule),_D&&(a.CSSSupportsRule=i.CSSSupportsRule));var l={};return Object.entries(a).forEach(function(c){var u=mt(c,2),d=u[0],h=u[1];l[d]={insertRule:h.prototype.insertRule,deleteRule:h.prototype.deleteRule},h.prototype.insertRule=function(f,p){var g=r.getId(this.parentStyleSheet.ownerNode);return g!==-1&&n({id:g,adds:[{rule:f,index:vt(vt([],mt(pm(this)),!1),[p||0],!1)}]}),l[d].insertRule.apply(this,arguments)},h.prototype.deleteRule=function(f){var p=r.getId(this.parentStyleSheet.ownerNode);return p!==-1&&n({id:p,removes:[{index:vt(vt([],mt(pm(this)),!1),[f],!1)}]}),l[d].deleteRule.apply(this,arguments)}}),function(){i.CSSStyleSheet.prototype.insertRule=o,i.CSSStyleSheet.prototype.deleteRule=s,Object.entries(a).forEach(function(c){var u=mt(c,2),d=u[0],h=u[1];h.prototype.insertRule=l[d].insertRule,h.prototype.deleteRule=l[d].deleteRule})}}function IW(e,t){var n=e.styleDeclarationCb,r=e.mirror,i=t.win,o=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=function(a,l,c){var u,d,h=r.getId((d=(u=this.parentRule)===null||u===void 0?void 0:u.parentStyleSheet)===null||d===void 0?void 0:d.ownerNode);return h!==-1&&n({id:h,set:{property:a,value:l,priority:c},index:pm(this.parentRule)}),o.apply(this,arguments)};var s=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=function(a){var l,c,u=r.getId((c=(l=this.parentRule)===null||l===void 0?void 0:l.parentStyleSheet)===null||c===void 0?void 0:c.ownerNode);return u!==-1&&n({id:u,remove:{property:a},index:pm(this.parentRule)}),s.apply(this,arguments)},function(){i.CSSStyleDeclaration.prototype.setProperty=o,i.CSSStyleDeclaration.prototype.removeProperty=s}}function NW(e){var t=e.mediaInteractionCb,n=e.blockClass,r=e.mirror,i=e.sampling,o=function(a){return Hd(function(l){var c=Oh(l);if(!(!c||yn(c,n))){var u=c,d=u.currentTime,h=u.volume,f=u.muted;t({type:a,id:r.getId(c),currentTime:d,volume:h,muted:f})}},i.media||500)},s=[Zn("play",o(0)),Zn("pause",o(1)),Zn("seeked",o(2)),Zn("volumechange",o(3))];return function(){s.forEach(function(a){return a()})}}function FW(e){var t=e.fontCb,n=e.doc,r=n.defaultView;if(!r)return function(){};var i=[],o=new WeakMap,s=r.FontFace;r.FontFace=function(c,u,d){var h=new s(c,u,d);return o.set(h,{family:c,buffer:typeof u!="string",descriptors:d,fontSource:typeof u=="string"?u:JSON.stringify(Array.from(new Uint8Array(u)))}),h};var a=Gl(n.fonts,"add",function(l){return function(c){return setTimeout(function(){var u=o.get(c);u&&(t(u),o.delete(c))},0),l.apply(this,[c])}});return i.push(function(){r.FontFace=s}),i.push(a),function(){i.forEach(function(l){return l()})}}function zW(e,t){var n=e.mutationCb,r=e.mousemoveCb,i=e.mouseInteractionCb,o=e.scrollCb,s=e.viewportResizeCb,a=e.inputCb,l=e.mediaInteractionCb,c=e.styleSheetRuleCb,u=e.styleDeclarationCb,d=e.canvasMutationCb,h=e.fontCb;e.mutationCb=function(){for(var f=[],p=0;p<arguments.length;p++)f[p]=arguments[p];t.mutation&&t.mutation.apply(t,vt([],mt(f),!1)),n.apply(void 0,vt([],mt(f),!1))},e.mousemoveCb=function(){for(var f=[],p=0;p<arguments.length;p++)f[p]=arguments[p];t.mousemove&&t.mousemove.apply(t,vt([],mt(f),!1)),r.apply(void 0,vt([],mt(f),!1))},e.mouseInteractionCb=function(){for(var f=[],p=0;p<arguments.length;p++)f[p]=arguments[p];t.mouseInteraction&&t.mouseInteraction.apply(t,vt([],mt(f),!1)),i.apply(void 0,vt([],mt(f),!1))},e.scrollCb=function(){for(var f=[],p=0;p<arguments.length;p++)f[p]=arguments[p];t.scroll&&t.scroll.apply(t,vt([],mt(f),!1)),o.apply(void 0,vt([],mt(f),!1))},e.viewportResizeCb=function(){for(var f=[],p=0;p<arguments.length;p++)f[p]=arguments[p];t.viewportResize&&t.viewportResize.apply(t,vt([],mt(f),!1)),s.apply(void 0,vt([],mt(f),!1))},e.inputCb=function(){for(var f=[],p=0;p<arguments.length;p++)f[p]=arguments[p];t.input&&t.input.apply(t,vt([],mt(f),!1)),a.apply(void 0,vt([],mt(f),!1))},e.mediaInteractionCb=function(){for(var f=[],p=0;p<arguments.length;p++)f[p]=arguments[p];t.mediaInteaction&&t.mediaInteaction.apply(t,vt([],mt(f),!1)),l.apply(void 0,vt([],mt(f),!1))},e.styleSheetRuleCb=function(){for(var f=[],p=0;p<arguments.length;p++)f[p]=arguments[p];t.styleSheetRule&&t.styleSheetRule.apply(t,vt([],mt(f),!1)),c.apply(void 0,vt([],mt(f),!1))},e.styleDeclarationCb=function(){for(var f=[],p=0;p<arguments.length;p++)f[p]=arguments[p];t.styleDeclaration&&t.styleDeclaration.apply(t,vt([],mt(f),!1)),u.apply(void 0,vt([],mt(f),!1))},e.canvasMutationCb=function(){for(var f=[],p=0;p<arguments.length;p++)f[p]=arguments[p];t.canvasMutation&&t.canvasMutation.apply(t,vt([],mt(f),!1)),d.apply(void 0,vt([],mt(f),!1))},e.fontCb=function(){for(var f=[],p=0;p<arguments.length;p++)f[p]=arguments[p];t.font&&t.font.apply(t,vt([],mt(f),!1)),h.apply(void 0,vt([],mt(f),!1))}}function BW(e,t){var n,r;t===void 0&&(t={});var i=e.doc.defaultView;if(!i)return function(){};zW(e,t);var o=AD(e,e.doc),s=$W(e),a=PW(e),l=SD(e),c=OW(e),u=DW(e),d=NW(e),h=LW(e,{win:i}),f=IW(e,{win:i}),p=e.collectFonts?FW(e):function(){},g=[];try{for(var y=Mo(e.plugins),m=y.next();!m.done;m=y.next()){var x=m.value;g.push(x.observer(x.callback,i,x.options))}}catch(b){n={error:b}}finally{try{m&&!m.done&&(r=y.return)&&r.call(y)}finally{if(n)throw n.error}}return function(){Ks.forEach(function(b){return b.reset()}),o.disconnect(),s(),a(),l(),c(),u(),d(),h(),f(),p(),g.forEach(function(b){return b()})}}var VW=function(){function e(t){this.iframes=new WeakMap,this.mutationCb=t.mutationCb}return e.prototype.addIframe=function(t){this.iframes.set(t,!0)},e.prototype.addLoadListener=function(t){this.loadListener=t},e.prototype.attachIframe=function(t,n){var r;this.mutationCb({adds:[{parentId:t.__sn.id,nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),(r=this.loadListener)===null||r===void 0||r.call(this,t)},e}(),jW=function(){function e(t){this.restorePatches=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror;var n=this;this.restorePatches.push(Gl(HTMLElement.prototype,"attachShadow",function(r){return function(){var i=r.apply(this,arguments);return this.shadowRoot&&n.addShadowRoot(this.shadowRoot,this.ownerDocument),i}}))}return e.prototype.addShadowRoot=function(t,n){AD(xe(xe({},this.bypassOptions),{doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this}),t),SD(xe(xe({},this.bypassOptions),{scrollCb:this.scrollCb,doc:t,mirror:this.mirror}))},e.prototype.observeAttachShadow=function(t){if(t.contentWindow){var n=this;this.restorePatches.push(Gl(t.contentWindow.HTMLElement.prototype,"attachShadow",function(r){return function(){var i=r.apply(this,arguments);return this.shadowRoot&&n.addShadowRoot(this.shadowRoot,t.contentDocument),i}}))}},e.prototype.reset=function(){this.restorePatches.forEach(function(t){return t()})},e}();function HW(e,t,n,r){var i,o,s=[],a=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype),l=function(h){try{if(typeof t.CanvasRenderingContext2D.prototype[h]!="function")return"continue";var f=Gl(t.CanvasRenderingContext2D.prototype,h,function(g){return function(){for(var y=this,m=[],x=0;x<arguments.length;x++)m[x]=arguments[x];return yn(this.canvas,n)||setTimeout(function(){var b=vt([],mt(m),!1);if(h==="drawImage"&&b[0]&&b[0]instanceof HTMLCanvasElement){var _=b[0],w=_.getContext("2d"),A=w==null?void 0:w.getImageData(0,0,_.width,_.height),S=A==null?void 0:A.data;b[0]=JSON.stringify(S)}e(y.canvas,{type:Yl["2D"],property:h,args:b})},0),g.apply(this,m)}});s.push(f)}catch(g){var p=V0(t.CanvasRenderingContext2D.prototype,h,{set:function(y){e(this.canvas,{type:Yl["2D"],property:h,args:[y],setter:!0})}});s.push(p)}};try{for(var c=Mo(a),u=c.next();!u.done;u=c.next()){var d=u.value;l(d)}}catch(h){i={error:h}}finally{try{u&&!u.done&&(o=c.return)&&o.call(c)}finally{if(i)throw i.error}}return function(){s.forEach(function(h){return h()})}}function UW(e,t){var n=[];try{var r=Gl(e.HTMLCanvasElement.prototype,"getContext",function(i){return function(o){for(var s=[],a=1;a<arguments.length;a++)s[a-1]=arguments[a];return yn(this,t)||"__context"in this||(this.__context=o),i.apply(this,vt([o],mt(s),!1))}});n.push(r)}catch(i){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){n.forEach(function(i){return i()})}}var al="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",WW=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var $f=0;$f<al.length;$f++)WW[al.charCodeAt($f)]=$f;var YW=function(e){var t=new Uint8Array(e),n,r=t.length,i="";for(n=0;n<r;n+=3)i+=al[t[n]>>2],i+=al[(t[n]&3)<<4|t[n+1]>>4],i+=al[(t[n+1]&15)<<2|t[n+2]>>6],i+=al[t[n+2]&63];return r%3===2?i=i.substring(0,i.length-1)+"=":r%3===1&&(i=i.substring(0,i.length-2)+"=="),i},DC=new Map;function GW(e,t){var n=DC.get(e);return n||(n=new Map,DC.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}var ED=function(e,t,n){if(!(!e||!(CD(e,t)||typeof e=="object"))){var r=e.constructor.name,i=GW(n,r),o=i.indexOf(e);return o===-1&&(o=i.length,i.push(e)),o}};function tg(e,t,n){if(e instanceof Array)return e.map(function(h){return tg(h,t,n)});if(e===null)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray){var r=e.constructor.name;return{rr_type:r,args:[Object.values(e)]}}else if(e instanceof ArrayBuffer){var i=e.constructor.name,o=YW(e);return{rr_type:i,base64:o}}else if(e instanceof DataView){var s=e.constructor.name;return{rr_type:s,args:[tg(e.buffer,t,n),e.byteOffset,e.byteLength]}}else if(e instanceof HTMLImageElement){var a=e.constructor.name,l=e.src;return{rr_type:a,src:l}}else if(e instanceof ImageData){var c=e.constructor.name;return{rr_type:c,args:[tg(e.data,t,n),e.width,e.height]}}else if(CD(e,t)||typeof e=="object"){var u=e.constructor.name,d=ED(e,t,n);return{rr_type:u,index:d}}return e}var qW=function(e,t,n){return vt([],mt(e),!1).map(function(r){return tg(r,t,n)})},CD=function(e,t){var n=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"],r=n.filter(function(i){return typeof t[i]=="function"});return Boolean(r.find(function(i){return e instanceof t[i]}))};function LC(e,t,n,r,i,o){var s,a,l=[],c=Object.getOwnPropertyNames(e),u=function(p){try{if(typeof e[p]!="function")return"continue";var g=Gl(e,p,function(m){return function(){for(var x=[],b=0;b<arguments.length;b++)x[b]=arguments[b];var _=m.apply(this,x);if(ED(_,o,e),!yn(this.canvas,r)){var w=i.getId(this.canvas),A=qW(vt([],mt(x),!1),o,e),S={type:t,property:p,args:A};n(this.canvas,S)}return _}});l.push(g)}catch(m){var y=V0(e,p,{set:function(x){n(this.canvas,{type:t,property:p,args:[x],setter:!0})}});l.push(y)}};try{for(var d=Mo(c),h=d.next();!h.done;h=d.next()){var f=h.value;u(f)}}catch(p){s={error:p}}finally{try{h&&!h.done&&(a=d.return)&&a.call(d)}finally{if(s)throw s.error}}return l}function XW(e,t,n,r){var i=[];return i.push.apply(i,vt([],mt(LC(t.WebGLRenderingContext.prototype,Yl.WebGL,e,n,r,t)),!1)),typeof t.WebGL2RenderingContext<"u"&&i.push.apply(i,vt([],mt(LC(t.WebGL2RenderingContext.prototype,Yl.WebGL2,e,n,r,t)),!1)),function(){i.forEach(function(o){return o()})}}var QW=function(){function e(t){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.frozen=!1,this.locked=!1,this.processMutation=function(n,r){var i=this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId;(i||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(n)||this.pendingCanvasMutations.set(n,[]),this.pendingCanvasMutations.get(n).push(r)},this.mutationCb=t.mutationCb,this.mirror=t.mirror,t.recordCanvas===!0&&this.initCanvasMutationObserver(t.win,t.blockClass)}return e.prototype.reset=function(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()},e.prototype.freeze=function(){this.frozen=!0},e.prototype.unfreeze=function(){this.frozen=!1},e.prototype.lock=function(){this.locked=!0},e.prototype.unlock=function(){this.locked=!1},e.prototype.initCanvasMutationObserver=function(t,n){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();var r=UW(t,n),i=HW(this.processMutation.bind(this),t,n,this.mirror),o=XW(this.processMutation.bind(this),t,n,this.mirror);this.resetObservers=function(){r(),i(),o()}},e.prototype.startPendingCanvasMutationFlusher=function(){var t=this;requestAnimationFrame(function(){return t.flushPendingCanvasMutations()})},e.prototype.startRAFTimestamping=function(){var t=this,n=function(r){t.rafStamps.latestId=r,requestAnimationFrame(n)};requestAnimationFrame(n)},e.prototype.flushPendingCanvasMutations=function(){var t=this;this.pendingCanvasMutations.forEach(function(n,r){var i=t.mirror.getId(r);t.flushPendingCanvasMutationFor(r,i)}),requestAnimationFrame(function(){return t.flushPendingCanvasMutations()})},e.prototype.flushPendingCanvasMutationFor=function(t,n){if(!(this.frozen||this.locked)){var r=this.pendingCanvasMutations.get(t);if(!(!r||n===-1)){var i=r.map(function(s){s.type;var a=nW(s,["type"]);return a}),o=r[0].type;this.mutationCb({id:n,type:o,commands:i}),this.pendingCanvasMutations.delete(t)}}},e}();function He(e){return xe(xe({},e),{timestamp:Date.now()})}var Te,Iu,uu=EW();function ss(e){e===void 0&&(e={});var t=e.emit,n=e.checkoutEveryNms,r=e.checkoutEveryNth,i=e.blockClass,o=i===void 0?"rr-block":i,s=e.blockSelector,a=s===void 0?null:s,l=e.ignoreClass,c=l===void 0?"rr-ignore":l,u=e.maskTextClass,d=u===void 0?"rr-mask":u,h=e.maskTextSelector,f=h===void 0?null:h,p=e.inlineStylesheet,g=p===void 0?!0:p,y=e.maskAllInputs,m=e.maskInputOptions,x=e.slimDOMOptions,b=e.maskInputFn,_=e.maskTextFn,w=e.hooks,A=e.packFn,S=e.sampling,E=S===void 0?{}:S,k=e.mousemoveWait,C=e.recordCanvas,T=C===void 0?!1:C,$=e.userTriggeredOnInput,I=$===void 0?!1:$,N=e.collectFonts,D=N===void 0?!1:N,Y=e.inlineImages,Q=Y===void 0?!1:Y,F=e.plugins,W=e.keepIframeSrcFn,P=W===void 0?function(){return!1}:W;if(!t)throw new Error("emit function is required");k!==void 0&&E.mousemove===void 0&&(E.mousemove=k);var G=y===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:m!==void 0?m:{password:!0},U=x===!0||x==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:x==="all",headMetaDescKeywords:x==="all"}:x||{};CW();var B,R=0,V=function(lt){var se,nt;try{for(var St=Mo(F||[]),Gt=St.next();!Gt.done;Gt=St.next()){var ke=Gt.value;ke.eventProcessor&&(lt=ke.eventProcessor(lt))}}catch(An){se={error:An}}finally{try{Gt&&!Gt.done&&(nt=St.return)&&nt.call(St)}finally{if(se)throw se.error}}return A&&(lt=A(lt)),lt};Te=function(lt,se){var nt;if(((nt=Ks[0])===null||nt===void 0?void 0:nt.isFrozen())&<.type!==Ft.FullSnapshot&&!(lt.type===Ft.IncrementalSnapshot&<.data.source===We.Mutation)&&Ks.forEach(function(ke){return ke.unfreeze()}),t(V(lt),se),lt.type===Ft.FullSnapshot)B=lt,R=0;else if(lt.type===Ft.IncrementalSnapshot){if(lt.data.source===We.Mutation&<.data.isAttachIframe)return;R++;var St=r&&R>=r,Gt=n&<.timestamp-B.timestamp>n;(St||Gt)&&Iu(!0)}};var K=function(lt){Te(He({type:Ft.IncrementalSnapshot,data:xe({source:We.Mutation},lt)}))},st=function(lt){return Te(He({type:Ft.IncrementalSnapshot,data:xe({source:We.Scroll},lt)}))},Yt=function(lt){return Te(He({type:Ft.IncrementalSnapshot,data:xe({source:We.CanvasMutation},lt)}))},ve=new VW({mutationCb:K}),sr=new QW({recordCanvas:T,mutationCb:Yt,win:window,blockClass:o,mirror:uu}),wr=new jW({mutationCb:K,scrollCb:st,bypassOptions:{blockClass:o,blockSelector:a,maskTextClass:d,maskTextSelector:f,inlineStylesheet:g,maskInputOptions:G,maskTextFn:_,maskInputFn:b,recordCanvas:T,inlineImages:Q,sampling:E,slimDOMOptions:U,iframeManager:ve,canvasManager:sr},mirror:uu});Iu=function(lt){var se,nt,St,Gt;lt===void 0&&(lt=!1),Te(He({type:Ft.Meta,data:{href:window.location.href,width:pD(),height:fD()}}),lt),Ks.forEach(function(Ot){return Ot.lock()});var ke=mt(SW(document,{blockClass:o,blockSelector:a,maskTextClass:d,maskTextSelector:f,inlineStylesheet:g,maskAllInputs:G,maskTextFn:_,slimDOM:U,recordCanvas:T,inlineImages:Q,onSerialize:function(Ot){vD(Ot)&&ve.addIframe(Ot),yD(Ot)&&wr.addShadowRoot(Ot.shadowRoot,document)},onIframeLoad:function(Ot,ye){ve.attachIframe(Ot,ye),wr.observeAttachShadow(Ot)},keepIframeSrcFn:P}),2),An=ke[0],Dc=ke[1];if(!An)return console.warn("Failed to snapshot the document");uu.map=Dc,Te(He({type:Ft.FullSnapshot,data:{node:An,initialOffset:{left:window.pageXOffset!==void 0?window.pageXOffset:(document==null?void 0:document.documentElement.scrollLeft)||((nt=(se=document==null?void 0:document.body)===null||se===void 0?void 0:se.parentElement)===null||nt===void 0?void 0:nt.scrollLeft)||(document==null?void 0:document.body.scrollLeft)||0,top:window.pageYOffset!==void 0?window.pageYOffset:(document==null?void 0:document.documentElement.scrollTop)||((Gt=(St=document==null?void 0:document.body)===null||St===void 0?void 0:St.parentElement)===null||Gt===void 0?void 0:Gt.scrollTop)||(document==null?void 0:document.body.scrollTop)||0}}})),Ks.forEach(function(Ot){return Ot.unlock()})};try{var hn=[];hn.push(Zn("DOMContentLoaded",function(){Te(He({type:Ft.DomContentLoaded,data:{}}))}));var Wr=function(lt){var se;return BW({mutationCb:K,mousemoveCb:function(nt,St){return Te(He({type:Ft.IncrementalSnapshot,data:{source:St,positions:nt}}))},mouseInteractionCb:function(nt){return Te(He({type:Ft.IncrementalSnapshot,data:xe({source:We.MouseInteraction},nt)}))},scrollCb:st,viewportResizeCb:function(nt){return Te(He({type:Ft.IncrementalSnapshot,data:xe({source:We.ViewportResize},nt)}))},inputCb:function(nt){return Te(He({type:Ft.IncrementalSnapshot,data:xe({source:We.Input},nt)}))},mediaInteractionCb:function(nt){return Te(He({type:Ft.IncrementalSnapshot,data:xe({source:We.MediaInteraction},nt)}))},styleSheetRuleCb:function(nt){return Te(He({type:Ft.IncrementalSnapshot,data:xe({source:We.StyleSheetRule},nt)}))},styleDeclarationCb:function(nt){return Te(He({type:Ft.IncrementalSnapshot,data:xe({source:We.StyleDeclaration},nt)}))},canvasMutationCb:Yt,fontCb:function(nt){return Te(He({type:Ft.IncrementalSnapshot,data:xe({source:We.Font},nt)}))},blockClass:o,ignoreClass:c,maskTextClass:d,maskTextSelector:f,maskInputOptions:G,inlineStylesheet:g,sampling:E,recordCanvas:T,inlineImages:Q,userTriggeredOnInput:I,collectFonts:D,doc:lt,maskInputFn:b,maskTextFn:_,blockSelector:a,slimDOMOptions:U,mirror:uu,iframeManager:ve,shadowDomManager:wr,canvasManager:sr,plugins:((se=F==null?void 0:F.filter(function(nt){return nt.observer}))===null||se===void 0?void 0:se.map(function(nt){return{observer:nt.observer,options:nt.options,callback:function(St){return Te(He({type:Ft.Plugin,data:{plugin:nt.name,payload:St}}))}}}))||[]},w)};ve.addLoadListener(function(lt){try{hn.push(Wr(lt.contentDocument))}catch(se){console.warn("error in rrweb iframe observer",se)}});var ar=function(){Iu(),hn.push(Wr(document))};return document.readyState==="interactive"||document.readyState==="complete"?ar():hn.push(Zn("load",function(){Te(He({type:Ft.Load,data:{}})),ar()},window)),function(){hn.forEach(function(lt){return lt()})}}catch(lt){console.warn(lt)}}ss.addCustomEvent=function(e,t){if(!Te)throw new Error("please add custom event after start recording");Te(He({type:Ft.Custom,data:{tag:e,payload:t}}))};ss.freezePage=function(){Ks.forEach(function(e){return e.freeze()})};ss.takeFullSnapshot=function(e){if(!Iu)throw new Error("please take full snapshot after start recording");Iu(e)};ss.mirror=uu;const KW=["name","type","startTime","transferSize","duration"];function IC(e){return function(t){return KW.every(n=>e[n]===t[n])}}function ZW(e,t){const[n,r,i]=e.reduce((l,c)=>(c.entryType==="navigation"?l[0].push(c):c.entryType==="largest-contentful-paint"?l[1].push(c):l[2].push(c),l),[[],[],[]]),o=[],s=[];let a=r.length?r[r.length-1]:void 0;return t.forEach(l=>{if(l.entryType==="largest-contentful-paint"){(!a||a.startTime<l.startTime)&&(a=l);return}if(l.entryType==="navigation"){const c=l;l.duration>0&&!n.find(IC(c))&&!s.find(IC(c))&&s.push(c);return}o.push(l)}),[...a?[a]:[],...n,...i,...o,...s].sort((l,c)=>l.startTime-c.startTime)}function JW(e){const t=r=>{const i=ZW(e.performanceEvents,r.getEntries());e.performanceEvents=i},n=new PerformanceObserver(t);return["element","event","first-input","largest-contentful-paint","layout-shift","longtask","navigation","paint","resource"].forEach(r=>{try{n.observe({type:r,buffered:!0})}catch(i){}}),n}const tY=`/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */
|
|
61
|
+
function t(t){let e=t.length;for(;--e>=0;)t[e]=0}const e=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),a=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),i=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),n=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=new Array(576);t(s);const r=new Array(60);t(r);const o=new Array(512);t(o);const l=new Array(256);t(l);const h=new Array(29);t(h);const d=new Array(30);function _(t,e,a,i,n){this.static_tree=t,this.extra_bits=e,this.extra_base=a,this.elems=i,this.max_length=n,this.has_stree=t&&t.length}let f,c,u;function w(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}t(d);const m=t=>t<256?o[t]:o[256+(t>>>7)],b=(t,e)=>{t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},g=(t,e,a)=>{t.bi_valid>16-a?(t.bi_buf|=e<<t.bi_valid&65535,b(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)},p=(t,e,a)=>{g(t,a[2*e],a[2*e+1])},k=(t,e)=>{let a=0;do{a|=1&t,t>>>=1,a<<=1}while(--e>0);return a>>>1},v=(t,e,a)=>{const i=new Array(16);let n,s,r=0;for(n=1;n<=15;n++)r=r+a[n-1]<<1,i[n]=r;for(s=0;s<=e;s++){let e=t[2*s+1];0!==e&&(t[2*s]=k(i[e]++,e))}},y=t=>{let e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.sym_next=t.matches=0},x=t=>{t.bi_valid>8?b(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},z=(t,e,a,i)=>{const n=2*e,s=2*a;return t[n]<t[s]||t[n]===t[s]&&i[e]<=i[a]},A=(t,e,a)=>{const i=t.heap[a];let n=a<<1;for(;n<=t.heap_len&&(n<t.heap_len&&z(e,t.heap[n+1],t.heap[n],t.depth)&&n++,!z(e,i,t.heap[n],t.depth));)t.heap[a]=t.heap[n],a=n,n<<=1;t.heap[a]=i},E=(t,i,n)=>{let s,r,o,_,f=0;if(0!==t.sym_next)do{s=255&t.pending_buf[t.sym_buf+f++],s+=(255&t.pending_buf[t.sym_buf+f++])<<8,r=t.pending_buf[t.sym_buf+f++],0===s?p(t,r,i):(o=l[r],p(t,o+256+1,i),_=e[o],0!==_&&(r-=h[o],g(t,r,_)),s--,o=m(s),p(t,o,n),_=a[o],0!==_&&(s-=d[o],g(t,s,_)))}while(f<t.sym_next);p(t,256,i)},R=(t,e)=>{const a=e.dyn_tree,i=e.stat_desc.static_tree,n=e.stat_desc.has_stree,s=e.stat_desc.elems;let r,o,l,h=-1;for(t.heap_len=0,t.heap_max=573,r=0;r<s;r++)0!==a[2*r]?(t.heap[++t.heap_len]=h=r,t.depth[r]=0):a[2*r+1]=0;for(;t.heap_len<2;)l=t.heap[++t.heap_len]=h<2?++h:0,a[2*l]=1,t.depth[l]=0,t.opt_len--,n&&(t.static_len-=i[2*l+1]);for(e.max_code=h,r=t.heap_len>>1;r>=1;r--)A(t,a,r);l=s;do{r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],A(t,a,1),o=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=o,a[2*l]=a[2*r]+a[2*o],t.depth[l]=(t.depth[r]>=t.depth[o]?t.depth[r]:t.depth[o])+1,a[2*r+1]=a[2*o+1]=l,t.heap[1]=l++,A(t,a,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],((t,e)=>{const a=e.dyn_tree,i=e.max_code,n=e.stat_desc.static_tree,s=e.stat_desc.has_stree,r=e.stat_desc.extra_bits,o=e.stat_desc.extra_base,l=e.stat_desc.max_length;let h,d,_,f,c,u,w=0;for(f=0;f<=15;f++)t.bl_count[f]=0;for(a[2*t.heap[t.heap_max]+1]=0,h=t.heap_max+1;h<573;h++)d=t.heap[h],f=a[2*a[2*d+1]+1]+1,f>l&&(f=l,w++),a[2*d+1]=f,d>i||(t.bl_count[f]++,c=0,d>=o&&(c=r[d-o]),u=a[2*d],t.opt_len+=u*(f+c),s&&(t.static_len+=u*(n[2*d+1]+c)));if(0!==w){do{for(f=l-1;0===t.bl_count[f];)f--;t.bl_count[f]--,t.bl_count[f+1]+=2,t.bl_count[l]--,w-=2}while(w>0);for(f=l;0!==f;f--)for(d=t.bl_count[f];0!==d;)_=t.heap[--h],_>i||(a[2*_+1]!==f&&(t.opt_len+=(f-a[2*_+1])*a[2*_],a[2*_+1]=f),d--)}})(t,e),v(a,h,t.bl_count)},Z=(t,e,a)=>{let i,n,s=-1,r=e[1],o=0,l=7,h=4;for(0===r&&(l=138,h=3),e[2*(a+1)+1]=65535,i=0;i<=a;i++)n=r,r=e[2*(i+1)+1],++o<l&&n===r||(o<h?t.bl_tree[2*n]+=o:0!==n?(n!==s&&t.bl_tree[2*n]++,t.bl_tree[32]++):o<=10?t.bl_tree[34]++:t.bl_tree[36]++,o=0,s=n,0===r?(l=138,h=3):n===r?(l=6,h=3):(l=7,h=4))},S=(t,e,a)=>{let i,n,s=-1,r=e[1],o=0,l=7,h=4;for(0===r&&(l=138,h=3),i=0;i<=a;i++)if(n=r,r=e[2*(i+1)+1],!(++o<l&&n===r)){if(o<h)do{p(t,n,t.bl_tree)}while(0!=--o);else 0!==n?(n!==s&&(p(t,n,t.bl_tree),o--),p(t,16,t.bl_tree),g(t,o-3,2)):o<=10?(p(t,17,t.bl_tree),g(t,o-3,3)):(p(t,18,t.bl_tree),g(t,o-11,7));o=0,s=n,0===r?(l=138,h=3):n===r?(l=6,h=3):(l=7,h=4)}};let U=!1;const D=(t,e,a,i)=>{g(t,0+(i?1:0),3),x(t),b(t,a),b(t,~a),a&&t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a};var O=(t,e,a,i)=>{let o,l,h=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=(t=>{let e,a=4093624447;for(e=0;e<=31;e++,a>>>=1)if(1&a&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0})(t)),R(t,t.l_desc),R(t,t.d_desc),h=(t=>{let e;for(Z(t,t.dyn_ltree,t.l_desc.max_code),Z(t,t.dyn_dtree,t.d_desc.max_code),R(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*n[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e})(t),o=t.opt_len+3+7>>>3,l=t.static_len+3+7>>>3,l<=o&&(o=l)):o=l=a+5,a+4<=o&&-1!==e?D(t,e,a,i):4===t.strategy||l===o?(g(t,2+(i?1:0),3),E(t,s,r)):(g(t,4+(i?1:0),3),((t,e,a,i)=>{let s;for(g(t,e-257,5),g(t,a-1,5),g(t,i-4,4),s=0;s<i;s++)g(t,t.bl_tree[2*n[s]+1],3);S(t,t.dyn_ltree,e-1),S(t,t.dyn_dtree,a-1)})(t,t.l_desc.max_code+1,t.d_desc.max_code+1,h+1),E(t,t.dyn_ltree,t.dyn_dtree)),y(t),i&&x(t)},T={_tr_init:t=>{U||((()=>{let t,n,w,m,b;const g=new Array(16);for(w=0,m=0;m<28;m++)for(h[m]=w,t=0;t<1<<e[m];t++)l[w++]=m;for(l[w-1]=m,b=0,m=0;m<16;m++)for(d[m]=b,t=0;t<1<<a[m];t++)o[b++]=m;for(b>>=7;m<30;m++)for(d[m]=b<<7,t=0;t<1<<a[m]-7;t++)o[256+b++]=m;for(n=0;n<=15;n++)g[n]=0;for(t=0;t<=143;)s[2*t+1]=8,t++,g[8]++;for(;t<=255;)s[2*t+1]=9,t++,g[9]++;for(;t<=279;)s[2*t+1]=7,t++,g[7]++;for(;t<=287;)s[2*t+1]=8,t++,g[8]++;for(v(s,287,g),t=0;t<30;t++)r[2*t+1]=5,r[2*t]=k(t,5);f=new _(s,e,257,286,15),c=new _(r,a,0,30,15),u=new _(new Array(0),i,0,19,7)})(),U=!0),t.l_desc=new w(t.dyn_ltree,f),t.d_desc=new w(t.dyn_dtree,c),t.bl_desc=new w(t.bl_tree,u),t.bi_buf=0,t.bi_valid=0,y(t)},_tr_stored_block:D,_tr_flush_block:O,_tr_tally:(t,e,a)=>(t.pending_buf[t.sym_buf+t.sym_next++]=e,t.pending_buf[t.sym_buf+t.sym_next++]=e>>8,t.pending_buf[t.sym_buf+t.sym_next++]=a,0===e?t.dyn_ltree[2*a]++:(t.matches++,e--,t.dyn_ltree[2*(l[a]+256+1)]++,t.dyn_dtree[2*m(e)]++),t.sym_next===t.sym_end),_tr_align:t=>{g(t,2,3),p(t,256,s),(t=>{16===t.bi_valid?(b(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)})(t)}};var N=(t,e,a,i)=>{let n=65535&t|0,s=t>>>16&65535|0,r=0;for(;0!==a;){r=a>2e3?2e3:a,a-=r;do{n=n+e[i++]|0,s=s+n|0}while(--r);n%=65521,s%=65521}return n|s<<16|0};const F=new Uint32Array((()=>{let t,e=[];for(var a=0;a<256;a++){t=a;for(var i=0;i<8;i++)t=1&t?3988292384^t>>>1:t>>>1;e[a]=t}return e})());var L=(t,e,a,i)=>{const n=F,s=i+a;t^=-1;for(let a=i;a<s;a++)t=t>>>8^n[255&(t^e[a])];return-1^t},I={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},B={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:C,_tr_stored_block:H,_tr_flush_block:M,_tr_tally:j,_tr_align:K}=T,{Z_NO_FLUSH:P,Z_PARTIAL_FLUSH:Y,Z_FULL_FLUSH:G,Z_FINISH:X,Z_BLOCK:J,Z_OK:W,Z_STREAM_END:q,Z_STREAM_ERROR:Q,Z_DATA_ERROR:V,Z_BUF_ERROR:$,Z_DEFAULT_COMPRESSION:tt,Z_FILTERED:et,Z_HUFFMAN_ONLY:at,Z_RLE:it,Z_FIXED:nt,Z_DEFAULT_STRATEGY:st,Z_UNKNOWN:rt,Z_DEFLATED:ot}=B,lt=(t,e)=>(t.msg=I[e],e),ht=t=>2*t-(t>4?9:0),dt=t=>{let e=t.length;for(;--e>=0;)t[e]=0},_t=t=>{let e,a,i,n=t.w_size;e=t.hash_size,i=e;do{a=t.head[--i],t.head[i]=a>=n?a-n:0}while(--e);e=n,i=e;do{a=t.prev[--i],t.prev[i]=a>=n?a-n:0}while(--e)};let ft=(t,e,a)=>(e<<t.hash_shift^a)&t.hash_mask;const ct=t=>{const e=t.state;let a=e.pending;a>t.avail_out&&(a=t.avail_out),0!==a&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+a),t.next_out),t.next_out+=a,e.pending_out+=a,t.total_out+=a,t.avail_out-=a,e.pending-=a,0===e.pending&&(e.pending_out=0))},ut=(t,e)=>{M(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,ct(t.strm)},wt=(t,e)=>{t.pending_buf[t.pending++]=e},mt=(t,e)=>{t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},bt=(t,e,a,i)=>{let n=t.avail_in;return n>i&&(n=i),0===n?0:(t.avail_in-=n,e.set(t.input.subarray(t.next_in,t.next_in+n),a),1===t.state.wrap?t.adler=N(t.adler,e,n,a):2===t.state.wrap&&(t.adler=L(t.adler,e,n,a)),t.next_in+=n,t.total_in+=n,n)},gt=(t,e)=>{let a,i,n=t.max_chain_length,s=t.strstart,r=t.prev_length,o=t.nice_match;const l=t.strstart>t.w_size-262?t.strstart-(t.w_size-262):0,h=t.window,d=t.w_mask,_=t.prev,f=t.strstart+258;let c=h[s+r-1],u=h[s+r];t.prev_length>=t.good_match&&(n>>=2),o>t.lookahead&&(o=t.lookahead);do{if(a=e,h[a+r]===u&&h[a+r-1]===c&&h[a]===h[s]&&h[++a]===h[s+1]){s+=2,a++;do{}while(h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&h[++s]===h[++a]&&s<f);if(i=258-(f-s),s=f-258,i>r){if(t.match_start=e,r=i,i>=o)break;c=h[s+r-1],u=h[s+r]}}}while((e=_[e&d])>l&&0!=--n);return r<=t.lookahead?r:t.lookahead},pt=t=>{const e=t.w_size;let a,i,n;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=e+(e-262)&&(t.window.set(t.window.subarray(e,e+e-i),0),t.match_start-=e,t.strstart-=e,t.block_start-=e,t.insert>t.strstart&&(t.insert=t.strstart),_t(t),i+=e),0===t.strm.avail_in)break;if(a=bt(t.strm,t.window,t.strstart+t.lookahead,i),t.lookahead+=a,t.lookahead+t.insert>=3)for(n=t.strstart-t.insert,t.ins_h=t.window[n],t.ins_h=ft(t,t.ins_h,t.window[n+1]);t.insert&&(t.ins_h=ft(t,t.ins_h,t.window[n+3-1]),t.prev[n&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=n,n++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<262&&0!==t.strm.avail_in)},kt=(t,e)=>{let a,i,n,s=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,r=0,o=t.strm.avail_in;do{if(a=65535,n=t.bi_valid+42>>3,t.strm.avail_out<n)break;if(n=t.strm.avail_out-n,i=t.strstart-t.block_start,a>i+t.strm.avail_in&&(a=i+t.strm.avail_in),a>n&&(a=n),a<s&&(0===a&&e!==X||e===P||a!==i+t.strm.avail_in))break;r=e===X&&a===i+t.strm.avail_in?1:0,H(t,0,0,r),t.pending_buf[t.pending-4]=a,t.pending_buf[t.pending-3]=a>>8,t.pending_buf[t.pending-2]=~a,t.pending_buf[t.pending-1]=~a>>8,ct(t.strm),i&&(i>a&&(i=a),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+i),t.strm.next_out),t.strm.next_out+=i,t.strm.avail_out-=i,t.strm.total_out+=i,t.block_start+=i,a-=i),a&&(bt(t.strm,t.strm.output,t.strm.next_out,a),t.strm.next_out+=a,t.strm.avail_out-=a,t.strm.total_out+=a)}while(0===r);return o-=t.strm.avail_in,o&&(o>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=o&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-o,t.strm.next_in),t.strstart),t.strstart+=o,t.insert+=o>t.w_size-t.insert?t.w_size-t.insert:o),t.block_start=t.strstart),t.high_water<t.strstart&&(t.high_water=t.strstart),r?4:e!==P&&e!==X&&0===t.strm.avail_in&&t.strstart===t.block_start?2:(n=t.window_size-t.strstart,t.strm.avail_in>n&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,n+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),n>t.strm.avail_in&&(n=t.strm.avail_in),n&&(bt(t.strm,t.window,t.strstart,n),t.strstart+=n,t.insert+=n>t.w_size-t.insert?t.w_size-t.insert:n),t.high_water<t.strstart&&(t.high_water=t.strstart),n=t.bi_valid+42>>3,n=t.pending_buf_size-n>65535?65535:t.pending_buf_size-n,s=n>t.w_size?t.w_size:n,i=t.strstart-t.block_start,(i>=s||(i||e===X)&&e!==P&&0===t.strm.avail_in&&i<=n)&&(a=i>n?n:i,r=e===X&&0===t.strm.avail_in&&a===i?1:0,H(t,t.block_start,a,r),t.block_start+=a,ct(t.strm)),r?3:1)},vt=(t,e)=>{let a,i;for(;;){if(t.lookahead<262){if(pt(t),t.lookahead<262&&e===P)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==a&&t.strstart-a<=t.w_size-262&&(t.match_length=gt(t,a)),t.match_length>=3)if(i=j(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=ft(t,t.ins_h,t.window[t.strstart+1]);else i=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(i&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2},yt=(t,e)=>{let a,i,n;for(;;){if(t.lookahead<262){if(pt(t),t.lookahead<262&&e===P)return 1;if(0===t.lookahead)break}if(a=0,t.lookahead>=3&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==a&&t.prev_length<t.max_lazy_match&&t.strstart-a<=t.w_size-262&&(t.match_length=gt(t,a),t.match_length<=5&&(t.strategy===et||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){n=t.strstart+t.lookahead-3,i=j(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=n&&(t.ins_h=ft(t,t.ins_h,t.window[t.strstart+3-1]),a=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=2,t.strstart++,i&&(ut(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if(i=j(t,0,t.window[t.strstart-1]),i&&ut(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(i=j(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2};function xt(t,e,a,i,n){this.good_length=t,this.max_lazy=e,this.nice_length=a,this.max_chain=i,this.func=n}const zt=[new xt(0,0,0,0,kt),new xt(4,4,8,4,vt),new xt(4,5,16,8,vt),new xt(4,6,32,32,vt),new xt(4,4,16,16,yt),new xt(8,16,32,32,yt),new xt(8,16,128,128,yt),new xt(8,32,128,256,yt),new xt(32,128,258,1024,yt),new xt(32,258,258,4096,yt)];function At(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=ot,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),dt(this.dyn_ltree),dt(this.dyn_dtree),dt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),dt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),dt(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Et=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||42!==e.status&&57!==e.status&&69!==e.status&&73!==e.status&&91!==e.status&&103!==e.status&&113!==e.status&&666!==e.status?1:0},Rt=t=>{if(Et(t))return lt(t,Q);t.total_in=t.total_out=0,t.data_type=rt;const e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=2===e.wrap?57:e.wrap?42:113,t.adler=2===e.wrap?0:1,e.last_flush=-2,C(e),W},Zt=t=>{const e=Rt(t);var a;return e===W&&((a=t.state).window_size=2*a.w_size,dt(a.head),a.max_lazy_match=zt[a.level].max_lazy,a.good_match=zt[a.level].good_length,a.nice_match=zt[a.level].nice_length,a.max_chain_length=zt[a.level].max_chain,a.strstart=0,a.block_start=0,a.lookahead=0,a.insert=0,a.match_length=a.prev_length=2,a.match_available=0,a.ins_h=0),e},St=(t,e,a,i,n,s)=>{if(!t)return Q;let r=1;if(e===tt&&(e=6),i<0?(r=0,i=-i):i>15&&(r=2,i-=16),n<1||n>9||a!==ot||i<8||i>15||e<0||e>9||s<0||s>nt||8===i&&1!==r)return lt(t,Q);8===i&&(i=9);const o=new At;return t.state=o,o.strm=t,o.status=42,o.wrap=r,o.gzhead=null,o.w_bits=i,o.w_size=1<<o.w_bits,o.w_mask=o.w_size-1,o.hash_bits=n+7,o.hash_size=1<<o.hash_bits,o.hash_mask=o.hash_size-1,o.hash_shift=~~((o.hash_bits+3-1)/3),o.window=new Uint8Array(2*o.w_size),o.head=new Uint16Array(o.hash_size),o.prev=new Uint16Array(o.w_size),o.lit_bufsize=1<<n+6,o.pending_buf_size=4*o.lit_bufsize,o.pending_buf=new Uint8Array(o.pending_buf_size),o.sym_buf=o.lit_bufsize,o.sym_end=3*(o.lit_bufsize-1),o.level=e,o.strategy=s,o.method=a,Zt(t)};var Ut={deflateInit:(t,e)=>St(t,e,ot,15,8,st),deflateInit2:St,deflateReset:Zt,deflateResetKeep:Rt,deflateSetHeader:(t,e)=>Et(t)||2!==t.state.wrap?Q:(t.state.gzhead=e,W),deflate:(t,e)=>{if(Et(t)||e>J||e<0)return t?lt(t,Q):Q;const a=t.state;if(!t.output||0!==t.avail_in&&!t.input||666===a.status&&e!==X)return lt(t,0===t.avail_out?$:Q);const i=a.last_flush;if(a.last_flush=e,0!==a.pending){if(ct(t),0===t.avail_out)return a.last_flush=-1,W}else if(0===t.avail_in&&ht(e)<=ht(i)&&e!==X)return lt(t,$);if(666===a.status&&0!==t.avail_in)return lt(t,$);if(42===a.status&&0===a.wrap&&(a.status=113),42===a.status){let e=ot+(a.w_bits-8<<4)<<8,i=-1;if(i=a.strategy>=at||a.level<2?0:a.level<6?1:6===a.level?2:3,e|=i<<6,0!==a.strstart&&(e|=32),e+=31-e%31,mt(a,e),0!==a.strstart&&(mt(a,t.adler>>>16),mt(a,65535&t.adler)),t.adler=1,a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,W}if(57===a.status)if(t.adler=0,wt(a,31),wt(a,139),wt(a,8),a.gzhead)wt(a,(a.gzhead.text?1:0)+(a.gzhead.hcrc?2:0)+(a.gzhead.extra?4:0)+(a.gzhead.name?8:0)+(a.gzhead.comment?16:0)),wt(a,255&a.gzhead.time),wt(a,a.gzhead.time>>8&255),wt(a,a.gzhead.time>>16&255),wt(a,a.gzhead.time>>24&255),wt(a,9===a.level?2:a.strategy>=at||a.level<2?4:0),wt(a,255&a.gzhead.os),a.gzhead.extra&&a.gzhead.extra.length&&(wt(a,255&a.gzhead.extra.length),wt(a,a.gzhead.extra.length>>8&255)),a.gzhead.hcrc&&(t.adler=L(t.adler,a.pending_buf,a.pending,0)),a.gzindex=0,a.status=69;else if(wt(a,0),wt(a,0),wt(a,0),wt(a,0),wt(a,0),wt(a,9===a.level?2:a.strategy>=at||a.level<2?4:0),wt(a,3),a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,W;if(69===a.status){if(a.gzhead.extra){let e=a.pending,i=(65535&a.gzhead.extra.length)-a.gzindex;for(;a.pending+i>a.pending_buf_size;){let n=a.pending_buf_size-a.pending;if(a.pending_buf.set(a.gzhead.extra.subarray(a.gzindex,a.gzindex+n),a.pending),a.pending=a.pending_buf_size,a.gzhead.hcrc&&a.pending>e&&(t.adler=L(t.adler,a.pending_buf,a.pending-e,e)),a.gzindex+=n,ct(t),0!==a.pending)return a.last_flush=-1,W;e=0,i-=n}let n=new Uint8Array(a.gzhead.extra);a.pending_buf.set(n.subarray(a.gzindex,a.gzindex+i),a.pending),a.pending+=i,a.gzhead.hcrc&&a.pending>e&&(t.adler=L(t.adler,a.pending_buf,a.pending-e,e)),a.gzindex=0}a.status=73}if(73===a.status){if(a.gzhead.name){let e,i=a.pending;do{if(a.pending===a.pending_buf_size){if(a.gzhead.hcrc&&a.pending>i&&(t.adler=L(t.adler,a.pending_buf,a.pending-i,i)),ct(t),0!==a.pending)return a.last_flush=-1,W;i=0}e=a.gzindex<a.gzhead.name.length?255&a.gzhead.name.charCodeAt(a.gzindex++):0,wt(a,e)}while(0!==e);a.gzhead.hcrc&&a.pending>i&&(t.adler=L(t.adler,a.pending_buf,a.pending-i,i)),a.gzindex=0}a.status=91}if(91===a.status){if(a.gzhead.comment){let e,i=a.pending;do{if(a.pending===a.pending_buf_size){if(a.gzhead.hcrc&&a.pending>i&&(t.adler=L(t.adler,a.pending_buf,a.pending-i,i)),ct(t),0!==a.pending)return a.last_flush=-1,W;i=0}e=a.gzindex<a.gzhead.comment.length?255&a.gzhead.comment.charCodeAt(a.gzindex++):0,wt(a,e)}while(0!==e);a.gzhead.hcrc&&a.pending>i&&(t.adler=L(t.adler,a.pending_buf,a.pending-i,i))}a.status=103}if(103===a.status){if(a.gzhead.hcrc){if(a.pending+2>a.pending_buf_size&&(ct(t),0!==a.pending))return a.last_flush=-1,W;wt(a,255&t.adler),wt(a,t.adler>>8&255),t.adler=0}if(a.status=113,ct(t),0!==a.pending)return a.last_flush=-1,W}if(0!==t.avail_in||0!==a.lookahead||e!==P&&666!==a.status){let i=0===a.level?kt(a,e):a.strategy===at?((t,e)=>{let a;for(;;){if(0===t.lookahead&&(pt(t),0===t.lookahead)){if(e===P)return 1;break}if(t.match_length=0,a=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,a&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2})(a,e):a.strategy===it?((t,e)=>{let a,i,n,s;const r=t.window;for(;;){if(t.lookahead<=258){if(pt(t),t.lookahead<=258&&e===P)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=t.strstart-1,i=r[n],i===r[++n]&&i===r[++n]&&i===r[++n])){s=t.strstart+258;do{}while(i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&i===r[++n]&&n<s);t.match_length=258-(s-n),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(a=j(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(a=j(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),a&&(ut(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,e===X?(ut(t,!0),0===t.strm.avail_out?3:4):t.sym_next&&(ut(t,!1),0===t.strm.avail_out)?1:2})(a,e):zt[a.level].func(a,e);if(3!==i&&4!==i||(a.status=666),1===i||3===i)return 0===t.avail_out&&(a.last_flush=-1),W;if(2===i&&(e===Y?K(a):e!==J&&(H(a,0,0,!1),e===G&&(dt(a.head),0===a.lookahead&&(a.strstart=0,a.block_start=0,a.insert=0))),ct(t),0===t.avail_out))return a.last_flush=-1,W}return e!==X?W:a.wrap<=0?q:(2===a.wrap?(wt(a,255&t.adler),wt(a,t.adler>>8&255),wt(a,t.adler>>16&255),wt(a,t.adler>>24&255),wt(a,255&t.total_in),wt(a,t.total_in>>8&255),wt(a,t.total_in>>16&255),wt(a,t.total_in>>24&255)):(mt(a,t.adler>>>16),mt(a,65535&t.adler)),ct(t),a.wrap>0&&(a.wrap=-a.wrap),0!==a.pending?W:q)},deflateEnd:t=>{if(Et(t))return Q;const e=t.state.status;return t.state=null,113===e?lt(t,V):W},deflateSetDictionary:(t,e)=>{let a=e.length;if(Et(t))return Q;const i=t.state,n=i.wrap;if(2===n||1===n&&42!==i.status||i.lookahead)return Q;if(1===n&&(t.adler=N(t.adler,e,a,0)),i.wrap=0,a>=i.w_size){0===n&&(dt(i.head),i.strstart=0,i.block_start=0,i.insert=0);let t=new Uint8Array(i.w_size);t.set(e.subarray(a-i.w_size,a),0),e=t,a=i.w_size}const s=t.avail_in,r=t.next_in,o=t.input;for(t.avail_in=a,t.next_in=0,t.input=e,pt(i);i.lookahead>=3;){let t=i.strstart,e=i.lookahead-2;do{i.ins_h=ft(i,i.ins_h,i.window[t+3-1]),i.prev[t&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=t,t++}while(--e);i.strstart=t,i.lookahead=2,pt(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=2,i.match_available=0,t.next_in=r,t.input=o,t.avail_in=s,i.wrap=n,W},deflateInfo:"pako deflate (from Nodeca project)"};const Dt=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var Ot=function(t){const e=Array.prototype.slice.call(arguments,1);for(;e.length;){const a=e.shift();if(a){if("object"!=typeof a)throw new TypeError(a+"must be non-object");for(const e in a)Dt(a,e)&&(t[e]=a[e])}}return t},Tt=t=>{let e=0;for(let a=0,i=t.length;a<i;a++)e+=t[a].length;const a=new Uint8Array(e);for(let e=0,i=0,n=t.length;e<n;e++){let n=t[e];a.set(n,i),i+=n.length}return a};let Nt=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){Nt=!1}const Ft=new Uint8Array(256);for(let t=0;t<256;t++)Ft[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;Ft[254]=Ft[254]=1;var Lt=t=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);let e,a,i,n,s,r=t.length,o=0;for(n=0;n<r;n++)a=t.charCodeAt(n),55296==(64512&a)&&n+1<r&&(i=t.charCodeAt(n+1),56320==(64512&i)&&(a=65536+(a-55296<<10)+(i-56320),n++)),o+=a<128?1:a<2048?2:a<65536?3:4;for(e=new Uint8Array(o),s=0,n=0;s<o;n++)a=t.charCodeAt(n),55296==(64512&a)&&n+1<r&&(i=t.charCodeAt(n+1),56320==(64512&i)&&(a=65536+(a-55296<<10)+(i-56320),n++)),a<128?e[s++]=a:a<2048?(e[s++]=192|a>>>6,e[s++]=128|63&a):a<65536?(e[s++]=224|a>>>12,e[s++]=128|a>>>6&63,e[s++]=128|63&a):(e[s++]=240|a>>>18,e[s++]=128|a>>>12&63,e[s++]=128|a>>>6&63,e[s++]=128|63&a);return e},It=(t,e)=>{const a=e||t.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(t.subarray(0,e));let i,n;const s=new Array(2*a);for(n=0,i=0;i<a;){let e=t[i++];if(e<128){s[n++]=e;continue}let r=Ft[e];if(r>4)s[n++]=65533,i+=r-1;else{for(e&=2===r?31:3===r?15:7;r>1&&i<a;)e=e<<6|63&t[i++],r--;r>1?s[n++]=65533:e<65536?s[n++]=e:(e-=65536,s[n++]=55296|e>>10&1023,s[n++]=56320|1023&e)}}return((t,e)=>{if(e<65534&&t.subarray&&Nt)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));let a="";for(let i=0;i<e;i++)a+=String.fromCharCode(t[i]);return a})(s,n)},Bt=(t,e)=>{(e=e||t.length)>t.length&&(e=t.length);let a=e-1;for(;a>=0&&128==(192&t[a]);)a--;return a<0||0===a?e:a+Ft[t[a]]>e?a:e};var Ct=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0};const Ht=Object.prototype.toString,{Z_NO_FLUSH:Mt,Z_SYNC_FLUSH:jt,Z_FULL_FLUSH:Kt,Z_FINISH:Pt,Z_OK:Yt,Z_STREAM_END:Gt,Z_DEFAULT_COMPRESSION:Xt,Z_DEFAULT_STRATEGY:Jt,Z_DEFLATED:Wt}=B;function qt(t){this.options=Ot({level:Xt,method:Wt,chunkSize:16384,windowBits:15,memLevel:8,strategy:Jt},t||{});let e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ct,this.strm.avail_out=0;let a=Ut.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(a!==Yt)throw new Error(I[a]);if(e.header&&Ut.deflateSetHeader(this.strm,e.header),e.dictionary){let t;if(t="string"==typeof e.dictionary?Lt(e.dictionary):"[object ArrayBuffer]"===Ht.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,a=Ut.deflateSetDictionary(this.strm,t),a!==Yt)throw new Error(I[a]);this._dict_set=!0}}function Qt(t,e){const a=new qt(e);if(a.push(t,!0),a.err)throw a.msg||I[a.err];return a.result}qt.prototype.push=function(t,e){const a=this.strm,i=this.options.chunkSize;let n,s;if(this.ended)return!1;for(s=e===~~e?e:!0===e?Pt:Mt,"string"==typeof t?a.input=Lt(t):"[object ArrayBuffer]"===Ht.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;;)if(0===a.avail_out&&(a.output=new Uint8Array(i),a.next_out=0,a.avail_out=i),(s===jt||s===Kt)&&a.avail_out<=6)this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;else{if(n=Ut.deflate(a,s),n===Gt)return a.next_out>0&&this.onData(a.output.subarray(0,a.next_out)),n=Ut.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===Yt;if(0!==a.avail_out){if(s>0&&a.next_out>0)this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;else if(0===a.avail_in)break}else this.onData(a.output)}return!0},qt.prototype.onData=function(t){this.chunks.push(t)},qt.prototype.onEnd=function(t){t===Yt&&(this.result=Tt(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var Vt={Deflate:qt,deflate:Qt,deflateRaw:function(t,e){return(e=e||{}).raw=!0,Qt(t,e)},gzip:function(t,e){return(e=e||{}).gzip=!0,Qt(t,e)},constants:B};var $t=function(t,e){let a,i,n,s,r,o,l,h,d,_,f,c,u,w,m,b,g,p,k,v,y,x,z,A;const E=t.state;a=t.next_in,z=t.input,i=a+(t.avail_in-5),n=t.next_out,A=t.output,s=n-(e-t.avail_out),r=n+(t.avail_out-257),o=E.dmax,l=E.wsize,h=E.whave,d=E.wnext,_=E.window,f=E.hold,c=E.bits,u=E.lencode,w=E.distcode,m=(1<<E.lenbits)-1,b=(1<<E.distbits)-1;t:do{c<15&&(f+=z[a++]<<c,c+=8,f+=z[a++]<<c,c+=8),g=u[f&m];e:for(;;){if(p=g>>>24,f>>>=p,c-=p,p=g>>>16&255,0===p)A[n++]=65535&g;else{if(!(16&p)){if(0==(64&p)){g=u[(65535&g)+(f&(1<<p)-1)];continue e}if(32&p){E.mode=16191;break t}t.msg="invalid literal/length code",E.mode=16209;break t}k=65535&g,p&=15,p&&(c<p&&(f+=z[a++]<<c,c+=8),k+=f&(1<<p)-1,f>>>=p,c-=p),c<15&&(f+=z[a++]<<c,c+=8,f+=z[a++]<<c,c+=8),g=w[f&b];a:for(;;){if(p=g>>>24,f>>>=p,c-=p,p=g>>>16&255,!(16&p)){if(0==(64&p)){g=w[(65535&g)+(f&(1<<p)-1)];continue a}t.msg="invalid distance code",E.mode=16209;break t}if(v=65535&g,p&=15,c<p&&(f+=z[a++]<<c,c+=8,c<p&&(f+=z[a++]<<c,c+=8)),v+=f&(1<<p)-1,v>o){t.msg="invalid distance too far back",E.mode=16209;break t}if(f>>>=p,c-=p,p=n-s,v>p){if(p=v-p,p>h&&E.sane){t.msg="invalid distance too far back",E.mode=16209;break t}if(y=0,x=_,0===d){if(y+=l-p,p<k){k-=p;do{A[n++]=_[y++]}while(--p);y=n-v,x=A}}else if(d<p){if(y+=l+d-p,p-=d,p<k){k-=p;do{A[n++]=_[y++]}while(--p);if(y=0,d<k){p=d,k-=p;do{A[n++]=_[y++]}while(--p);y=n-v,x=A}}}else if(y+=d-p,p<k){k-=p;do{A[n++]=_[y++]}while(--p);y=n-v,x=A}for(;k>2;)A[n++]=x[y++],A[n++]=x[y++],A[n++]=x[y++],k-=3;k&&(A[n++]=x[y++],k>1&&(A[n++]=x[y++]))}else{y=n-v;do{A[n++]=A[y++],A[n++]=A[y++],A[n++]=A[y++],k-=3}while(k>2);k&&(A[n++]=A[y++],k>1&&(A[n++]=A[y++]))}break}}break}}while(a<i&&n<r);k=c>>3,a-=k,c-=k<<3,f&=(1<<c)-1,t.next_in=a,t.next_out=n,t.avail_in=a<i?i-a+5:5-(a-i),t.avail_out=n<r?r-n+257:257-(n-r),E.hold=f,E.bits=c};const te=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),ee=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),ae=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),ie=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);var ne=(t,e,a,i,n,s,r,o)=>{const l=o.bits;let h,d,_,f,c,u,w=0,m=0,b=0,g=0,p=0,k=0,v=0,y=0,x=0,z=0,A=null;const E=new Uint16Array(16),R=new Uint16Array(16);let Z,S,U,D=null;for(w=0;w<=15;w++)E[w]=0;for(m=0;m<i;m++)E[e[a+m]]++;for(p=l,g=15;g>=1&&0===E[g];g--);if(p>g&&(p=g),0===g)return n[s++]=20971520,n[s++]=20971520,o.bits=1,0;for(b=1;b<g&&0===E[b];b++);for(p<b&&(p=b),y=1,w=1;w<=15;w++)if(y<<=1,y-=E[w],y<0)return-1;if(y>0&&(0===t||1!==g))return-1;for(R[1]=0,w=1;w<15;w++)R[w+1]=R[w]+E[w];for(m=0;m<i;m++)0!==e[a+m]&&(r[R[e[a+m]]++]=m);if(0===t?(A=D=r,u=20):1===t?(A=te,D=ee,u=257):(A=ae,D=ie,u=0),z=0,m=0,w=b,c=s,k=p,v=0,_=-1,x=1<<p,f=x-1,1===t&&x>852||2===t&&x>592)return 1;for(;;){Z=w-v,r[m]+1<u?(S=0,U=r[m]):r[m]>=u?(S=D[r[m]-u],U=A[r[m]-u]):(S=96,U=0),h=1<<w-v,d=1<<k,b=d;do{d-=h,n[c+(z>>v)+d]=Z<<24|S<<16|U|0}while(0!==d);for(h=1<<w-1;z&h;)h>>=1;if(0!==h?(z&=h-1,z+=h):z=0,m++,0==--E[w]){if(w===g)break;w=e[a+r[m]]}if(w>p&&(z&f)!==_){for(0===v&&(v=p),c+=b,k=w-v,y=1<<k;k+v<g&&(y-=E[k+v],!(y<=0));)k++,y<<=1;if(x+=1<<k,1===t&&x>852||2===t&&x>592)return 1;_=z&f,n[_]=p<<24|k<<16|c-s|0}}return 0!==z&&(n[c+z]=w-v<<24|64<<16|0),o.bits=p,0};const{Z_FINISH:se,Z_BLOCK:re,Z_TREES:oe,Z_OK:le,Z_STREAM_END:he,Z_NEED_DICT:de,Z_STREAM_ERROR:_e,Z_DATA_ERROR:fe,Z_MEM_ERROR:ce,Z_BUF_ERROR:ue,Z_DEFLATED:we}=B,me=16209,be=t=>(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24);function ge(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const pe=t=>{if(!t)return 1;const e=t.state;return!e||e.strm!==t||e.mode<16180||e.mode>16211?1:0},ke=t=>{if(pe(t))return _e;const e=t.state;return t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=16180,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(852),e.distcode=e.distdyn=new Int32Array(592),e.sane=1,e.back=-1,le},ve=t=>{if(pe(t))return _e;const e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,ke(t)},ye=(t,e)=>{let a;if(pe(t))return _e;const i=t.state;return e<0?(a=0,e=-e):(a=5+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?_e:(null!==i.window&&i.wbits!==e&&(i.window=null),i.wrap=a,i.wbits=e,ve(t))},xe=(t,e)=>{if(!t)return _e;const a=new ge;t.state=a,a.strm=t,a.window=null,a.mode=16180;const i=ye(t,e);return i!==le&&(t.state=null),i};let ze,Ae,Ee=!0;const Re=t=>{if(Ee){ze=new Int32Array(512),Ae=new Int32Array(32);let e=0;for(;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(ne(1,t.lens,0,288,ze,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;ne(2,t.lens,0,32,Ae,0,t.work,{bits:5}),Ee=!1}t.lencode=ze,t.lenbits=9,t.distcode=Ae,t.distbits=5},Ze=(t,e,a,i)=>{let n;const s=t.state;return null===s.window&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new Uint8Array(s.wsize)),i>=s.wsize?(s.window.set(e.subarray(a-s.wsize,a),0),s.wnext=0,s.whave=s.wsize):(n=s.wsize-s.wnext,n>i&&(n=i),s.window.set(e.subarray(a-i,a-i+n),s.wnext),(i-=n)?(s.window.set(e.subarray(a-i,a),0),s.wnext=i,s.whave=s.wsize):(s.wnext+=n,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=n))),0};var Se={inflateReset:ve,inflateReset2:ye,inflateResetKeep:ke,inflateInit:t=>xe(t,15),inflateInit2:xe,inflate:(t,e)=>{let a,i,n,s,r,o,l,h,d,_,f,c,u,w,m,b,g,p,k,v,y,x,z=0;const A=new Uint8Array(4);let E,R;const Z=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(pe(t)||!t.output||!t.input&&0!==t.avail_in)return _e;a=t.state,16191===a.mode&&(a.mode=16192),r=t.next_out,n=t.output,l=t.avail_out,s=t.next_in,i=t.input,o=t.avail_in,h=a.hold,d=a.bits,_=o,f=l,x=le;t:for(;;)switch(a.mode){case 16180:if(0===a.wrap){a.mode=16192;break}for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(2&a.wrap&&35615===h){0===a.wbits&&(a.wbits=15),a.check=0,A[0]=255&h,A[1]=h>>>8&255,a.check=L(a.check,A,2,0),h=0,d=0,a.mode=16181;break}if(a.head&&(a.head.done=!1),!(1&a.wrap)||(((255&h)<<8)+(h>>8))%31){t.msg="incorrect header check",a.mode=me;break}if((15&h)!==we){t.msg="unknown compression method",a.mode=me;break}if(h>>>=4,d-=4,y=8+(15&h),0===a.wbits&&(a.wbits=y),y>15||y>a.wbits){t.msg="invalid window size",a.mode=me;break}a.dmax=1<<a.wbits,a.flags=0,t.adler=a.check=1,a.mode=512&h?16189:16191,h=0,d=0;break;case 16181:for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(a.flags=h,(255&a.flags)!==we){t.msg="unknown compression method",a.mode=me;break}if(57344&a.flags){t.msg="unknown header flags set",a.mode=me;break}a.head&&(a.head.text=h>>8&1),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=L(a.check,A,2,0)),h=0,d=0,a.mode=16182;case 16182:for(;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.head&&(a.head.time=h),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,A[2]=h>>>16&255,A[3]=h>>>24&255,a.check=L(a.check,A,4,0)),h=0,d=0,a.mode=16183;case 16183:for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.head&&(a.head.xflags=255&h,a.head.os=h>>8),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=L(a.check,A,2,0)),h=0,d=0,a.mode=16184;case 16184:if(1024&a.flags){for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.length=h,a.head&&(a.head.extra_len=h),512&a.flags&&4&a.wrap&&(A[0]=255&h,A[1]=h>>>8&255,a.check=L(a.check,A,2,0)),h=0,d=0}else a.head&&(a.head.extra=null);a.mode=16185;case 16185:if(1024&a.flags&&(c=a.length,c>o&&(c=o),c&&(a.head&&(y=a.head.extra_len-a.length,a.head.extra||(a.head.extra=new Uint8Array(a.head.extra_len)),a.head.extra.set(i.subarray(s,s+c),y)),512&a.flags&&4&a.wrap&&(a.check=L(a.check,i,c,s)),o-=c,s+=c,a.length-=c),a.length))break t;a.length=0,a.mode=16186;case 16186:if(2048&a.flags){if(0===o)break t;c=0;do{y=i[s+c++],a.head&&y&&a.length<65536&&(a.head.name+=String.fromCharCode(y))}while(y&&c<o);if(512&a.flags&&4&a.wrap&&(a.check=L(a.check,i,c,s)),o-=c,s+=c,y)break t}else a.head&&(a.head.name=null);a.length=0,a.mode=16187;case 16187:if(4096&a.flags){if(0===o)break t;c=0;do{y=i[s+c++],a.head&&y&&a.length<65536&&(a.head.comment+=String.fromCharCode(y))}while(y&&c<o);if(512&a.flags&&4&a.wrap&&(a.check=L(a.check,i,c,s)),o-=c,s+=c,y)break t}else a.head&&(a.head.comment=null);a.mode=16188;case 16188:if(512&a.flags){for(;d<16;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(4&a.wrap&&h!==(65535&a.check)){t.msg="header crc mismatch",a.mode=me;break}h=0,d=0}a.head&&(a.head.hcrc=a.flags>>9&1,a.head.done=!0),t.adler=a.check=0,a.mode=16191;break;case 16189:for(;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}t.adler=a.check=be(h),h=0,d=0,a.mode=16190;case 16190:if(0===a.havedict)return t.next_out=r,t.avail_out=l,t.next_in=s,t.avail_in=o,a.hold=h,a.bits=d,de;t.adler=a.check=1,a.mode=16191;case 16191:if(e===re||e===oe)break t;case 16192:if(a.last){h>>>=7&d,d-=7&d,a.mode=16206;break}for(;d<3;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}switch(a.last=1&h,h>>>=1,d-=1,3&h){case 0:a.mode=16193;break;case 1:if(Re(a),a.mode=16199,e===oe){h>>>=2,d-=2;break t}break;case 2:a.mode=16196;break;case 3:t.msg="invalid block type",a.mode=me}h>>>=2,d-=2;break;case 16193:for(h>>>=7&d,d-=7&d;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if((65535&h)!=(h>>>16^65535)){t.msg="invalid stored block lengths",a.mode=me;break}if(a.length=65535&h,h=0,d=0,a.mode=16194,e===oe)break t;case 16194:a.mode=16195;case 16195:if(c=a.length,c){if(c>o&&(c=o),c>l&&(c=l),0===c)break t;n.set(i.subarray(s,s+c),r),o-=c,s+=c,l-=c,r+=c,a.length-=c;break}a.mode=16191;break;case 16196:for(;d<14;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(a.nlen=257+(31&h),h>>>=5,d-=5,a.ndist=1+(31&h),h>>>=5,d-=5,a.ncode=4+(15&h),h>>>=4,d-=4,a.nlen>286||a.ndist>30){t.msg="too many length or distance symbols",a.mode=me;break}a.have=0,a.mode=16197;case 16197:for(;a.have<a.ncode;){for(;d<3;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.lens[Z[a.have++]]=7&h,h>>>=3,d-=3}for(;a.have<19;)a.lens[Z[a.have++]]=0;if(a.lencode=a.lendyn,a.lenbits=7,E={bits:a.lenbits},x=ne(0,a.lens,0,19,a.lencode,0,a.work,E),a.lenbits=E.bits,x){t.msg="invalid code lengths set",a.mode=me;break}a.have=0,a.mode=16198;case 16198:for(;a.have<a.nlen+a.ndist;){for(;z=a.lencode[h&(1<<a.lenbits)-1],m=z>>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(g<16)h>>>=m,d-=m,a.lens[a.have++]=g;else{if(16===g){for(R=m+2;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(h>>>=m,d-=m,0===a.have){t.msg="invalid bit length repeat",a.mode=me;break}y=a.lens[a.have-1],c=3+(3&h),h>>>=2,d-=2}else if(17===g){for(R=m+3;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=m,d-=m,y=0,c=3+(7&h),h>>>=3,d-=3}else{for(R=m+7;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=m,d-=m,y=0,c=11+(127&h),h>>>=7,d-=7}if(a.have+c>a.nlen+a.ndist){t.msg="invalid bit length repeat",a.mode=me;break}for(;c--;)a.lens[a.have++]=y}}if(a.mode===me)break;if(0===a.lens[256]){t.msg="invalid code -- missing end-of-block",a.mode=me;break}if(a.lenbits=9,E={bits:a.lenbits},x=ne(1,a.lens,0,a.nlen,a.lencode,0,a.work,E),a.lenbits=E.bits,x){t.msg="invalid literal/lengths set",a.mode=me;break}if(a.distbits=6,a.distcode=a.distdyn,E={bits:a.distbits},x=ne(2,a.lens,a.nlen,a.ndist,a.distcode,0,a.work,E),a.distbits=E.bits,x){t.msg="invalid distances set",a.mode=me;break}if(a.mode=16199,e===oe)break t;case 16199:a.mode=16200;case 16200:if(o>=6&&l>=258){t.next_out=r,t.avail_out=l,t.next_in=s,t.avail_in=o,a.hold=h,a.bits=d,$t(t,f),r=t.next_out,n=t.output,l=t.avail_out,s=t.next_in,i=t.input,o=t.avail_in,h=a.hold,d=a.bits,16191===a.mode&&(a.back=-1);break}for(a.back=0;z=a.lencode[h&(1<<a.lenbits)-1],m=z>>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(b&&0==(240&b)){for(p=m,k=b,v=g;z=a.lencode[v+((h&(1<<p+k)-1)>>p)],m=z>>>24,b=z>>>16&255,g=65535&z,!(p+m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=p,d-=p,a.back+=p}if(h>>>=m,d-=m,a.back+=m,a.length=g,0===b){a.mode=16205;break}if(32&b){a.back=-1,a.mode=16191;break}if(64&b){t.msg="invalid literal/length code",a.mode=me;break}a.extra=15&b,a.mode=16201;case 16201:if(a.extra){for(R=a.extra;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.length+=h&(1<<a.extra)-1,h>>>=a.extra,d-=a.extra,a.back+=a.extra}a.was=a.length,a.mode=16202;case 16202:for(;z=a.distcode[h&(1<<a.distbits)-1],m=z>>>24,b=z>>>16&255,g=65535&z,!(m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(0==(240&b)){for(p=m,k=b,v=g;z=a.distcode[v+((h&(1<<p+k)-1)>>p)],m=z>>>24,b=z>>>16&255,g=65535&z,!(p+m<=d);){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}h>>>=p,d-=p,a.back+=p}if(h>>>=m,d-=m,a.back+=m,64&b){t.msg="invalid distance code",a.mode=me;break}a.offset=g,a.extra=15&b,a.mode=16203;case 16203:if(a.extra){for(R=a.extra;d<R;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}a.offset+=h&(1<<a.extra)-1,h>>>=a.extra,d-=a.extra,a.back+=a.extra}if(a.offset>a.dmax){t.msg="invalid distance too far back",a.mode=me;break}a.mode=16204;case 16204:if(0===l)break t;if(c=f-l,a.offset>c){if(c=a.offset-c,c>a.whave&&a.sane){t.msg="invalid distance too far back",a.mode=me;break}c>a.wnext?(c-=a.wnext,u=a.wsize-c):u=a.wnext-c,c>a.length&&(c=a.length),w=a.window}else w=n,u=r-a.offset,c=a.length;c>l&&(c=l),l-=c,a.length-=c;do{n[r++]=w[u++]}while(--c);0===a.length&&(a.mode=16200);break;case 16205:if(0===l)break t;n[r++]=a.length,l--,a.mode=16200;break;case 16206:if(a.wrap){for(;d<32;){if(0===o)break t;o--,h|=i[s++]<<d,d+=8}if(f-=l,t.total_out+=f,a.total+=f,4&a.wrap&&f&&(t.adler=a.check=a.flags?L(a.check,n,f,r-f):N(a.check,n,f,r-f)),f=l,4&a.wrap&&(a.flags?h:be(h))!==a.check){t.msg="incorrect data check",a.mode=me;break}h=0,d=0}a.mode=16207;case 16207:if(a.wrap&&a.flags){for(;d<32;){if(0===o)break t;o--,h+=i[s++]<<d,d+=8}if(4&a.wrap&&h!==(4294967295&a.total)){t.msg="incorrect length check",a.mode=me;break}h=0,d=0}a.mode=16208;case 16208:x=he;break t;case me:x=fe;break t;case 16210:return ce;default:return _e}return t.next_out=r,t.avail_out=l,t.next_in=s,t.avail_in=o,a.hold=h,a.bits=d,(a.wsize||f!==t.avail_out&&a.mode<me&&(a.mode<16206||e!==se))&&Ze(t,t.output,t.next_out,f-t.avail_out),_-=t.avail_in,f-=t.avail_out,t.total_in+=_,t.total_out+=f,a.total+=f,4&a.wrap&&f&&(t.adler=a.check=a.flags?L(a.check,n,f,t.next_out-f):N(a.check,n,f,t.next_out-f)),t.data_type=a.bits+(a.last?64:0)+(16191===a.mode?128:0)+(16199===a.mode||16194===a.mode?256:0),(0===_&&0===f||e===se)&&x===le&&(x=ue),x},inflateEnd:t=>{if(pe(t))return _e;let e=t.state;return e.window&&(e.window=null),t.state=null,le},inflateGetHeader:(t,e)=>{if(pe(t))return _e;const a=t.state;return 0==(2&a.wrap)?_e:(a.head=e,e.done=!1,le)},inflateSetDictionary:(t,e)=>{const a=e.length;let i,n,s;return pe(t)?_e:(i=t.state,0!==i.wrap&&16190!==i.mode?_e:16190===i.mode&&(n=1,n=N(n,e,a,0),n!==i.check)?fe:(s=Ze(t,e,a,a),s?(i.mode=16210,ce):(i.havedict=1,le)))},inflateInfo:"pako inflate (from Nodeca project)"};var Ue=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1};const De=Object.prototype.toString,{Z_NO_FLUSH:Oe,Z_FINISH:Te,Z_OK:Ne,Z_STREAM_END:Fe,Z_NEED_DICT:Le,Z_STREAM_ERROR:Ie,Z_DATA_ERROR:Be,Z_MEM_ERROR:Ce}=B;function He(t){this.options=Ot({chunkSize:65536,windowBits:15,to:""},t||{});const e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ct,this.strm.avail_out=0;let a=Se.inflateInit2(this.strm,e.windowBits);if(a!==Ne)throw new Error(I[a]);if(this.header=new Ue,Se.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=Lt(e.dictionary):"[object ArrayBuffer]"===De.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(a=Se.inflateSetDictionary(this.strm,e.dictionary),a!==Ne)))throw new Error(I[a])}He.prototype.push=function(t,e){const a=this.strm,i=this.options.chunkSize,n=this.options.dictionary;let s,r,o;if(this.ended)return!1;for(r=e===~~e?e:!0===e?Te:Oe,"[object ArrayBuffer]"===De.call(t)?a.input=new Uint8Array(t):a.input=t,a.next_in=0,a.avail_in=a.input.length;;){for(0===a.avail_out&&(a.output=new Uint8Array(i),a.next_out=0,a.avail_out=i),s=Se.inflate(a,r),s===Le&&n&&(s=Se.inflateSetDictionary(a,n),s===Ne?s=Se.inflate(a,r):s===Be&&(s=Le));a.avail_in>0&&s===Fe&&a.state.wrap>0&&0!==t[a.next_in];)Se.inflateReset(a),s=Se.inflate(a,r);switch(s){case Ie:case Be:case Le:case Ce:return this.onEnd(s),this.ended=!0,!1}if(o=a.avail_out,a.next_out&&(0===a.avail_out||s===Fe))if("string"===this.options.to){let t=Bt(a.output,a.next_out),e=a.next_out-t,n=It(a.output,t);a.next_out=e,a.avail_out=i-e,e&&a.output.set(a.output.subarray(t,t+e),0),this.onData(n)}else this.onData(a.output.length===a.next_out?a.output:a.output.subarray(0,a.next_out));if(s!==Ne||0!==o){if(s===Fe)return s=Se.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,!0;if(0===a.avail_in)break}}return!0},He.prototype.onData=function(t){this.chunks.push(t)},He.prototype.onEnd=function(t){t===Ne&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Tt(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};const{Deflate:Me,deflate:je,deflateRaw:Ke,gzip:Pe}=Vt;var Ye=Me,Ge=B;const Xe=new class{constructor(){this.added=0,this.init()}init(){this.added=0,this.deflate=new Ye,this.deflate.push("[",Ge.Z_NO_FLUSH)}addEvent(t){if(!t)throw new Error("Adding invalid event");const e=this.added>0?",":"";this.deflate.push(e+JSON.stringify(t),Ge.Z_SYNC_FLUSH),this.added++}finish(){if(this.deflate.push("]",Ge.Z_FINISH),this.deflate.err)throw this.deflate.err;const t=this.deflate.result;return this.init(),t}},Je={init:()=>(Xe.init(),""),addEvent:t=>Xe.addEvent(t),finish:()=>Xe.finish()};addEventListener("message",(function(t){const e=t.data.method,a=t.data.id,[i]=t.data.args?JSON.parse(t.data.args):[];if(e in Je&&"function"==typeof Je[e])try{const t=Je[e](i);postMessage({id:a,method:e,success:!0,response:t})}catch(t){postMessage({id:a,method:e,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});`;function eY({useCompression:e}){if(e&&window.Worker){const t=new Blob([tY]),n=URL.createObjectURL(t);(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.log("[Replay] Using compression worker");const r=new Worker(n);return new nY(r)}return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.log("[Replay] Using simple buffer"),new kD}class nY{constructor(t){this._fallback=new kD,this._compression=new Nu(t),this._used=this._fallback,this._ensureWorkerIsLoaded()}get pendingLength(){return this._used.pendingLength}get pendingEvents(){return this._used.pendingEvents}destroy(){this._fallback.destroy(),this._compression.destroy()}addEvent(t,n){return this._used.addEvent(t,n)}finish(){return this._used.finish()}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(n){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.log("[Replay] Failed to load the compression worker, falling back to simple buffer");return}const t=[];for(const n of this._fallback.pendingEvents)t.push(this._compression.addEvent(n));this._used=this._compression,await Promise.all(t)}}class kD{constructor(){this._events=[]}get pendingLength(){return this._events.length}get pendingEvents(){return this._events}destroy(){this._events=[]}async addEvent(t,n){if(n){this._events=[t];return}this._events.push(t)}finish(){return new Promise(t=>{const n=this._events;this._events=[],t(JSON.stringify(n))})}}class Nu{__init(){this._pendingEvents=[]}__init2(){this._eventBufferItemLength=0}__init3(){this._id=0}constructor(t){Nu.prototype.__init.call(this),Nu.prototype.__init2.call(this),Nu.prototype.__init3.call(this),this._worker=t}get pendingLength(){return this._eventBufferItemLength}get pendingEvents(){return this._pendingEvents}ensureReady(){return new Promise((t,n)=>{this._worker.addEventListener("message",({data:r})=>{r.success?t():n()},{once:!0}),this._worker.addEventListener("error",r=>{n(r)},{once:!0})})}destroy(){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.log("[Replay] Destroying compression worker"),this._worker.terminate()}async addEvent(t,n){return n&&await this._postMessage({id:this._getAndIncrementId(),method:"init",args:[]}),n||this._pendingEvents.push(t),this._sendEventToWorker(t)}finish(){return this._finishRequest(this._getAndIncrementId())}_postMessage({id:t,method:n,args:r}){return new Promise((i,o)=>{const s=({data:l})=>{if(l.method===n&&l.id===t){if(this._worker.removeEventListener("message",s),!l.success){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.error("[Replay]",l.response),o(new Error("Error in compression worker"));return}i(l.response)}};let a;try{a=JSON.stringify(r)}catch(l){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.error("[Replay] Error when trying to stringify args",l),a="[]"}this._worker.addEventListener("message",s),this._worker.postMessage({id:t,method:n,args:a})})}async _sendEventToWorker(t){const n=this._postMessage({id:this._getAndIncrementId(),method:"addEvent",args:[t]});return this._eventBufferItemLength++,n}async _finishRequest(t){const n=this._postMessage({id:t,method:"finish",args:[]});return this._eventBufferItemLength=0,await n,this._pendingEvents=[],n}_getAndIncrementId(){return this._id++}}function ab(e,t,n=+new Date){return e===null||t===void 0||t<0?!0:t===0?!1:e+t<=n}function TD(e,t,n=+new Date){return ab(e.started,dD,n)||ab(e.lastActivity,t,n)}function MD(e){if("sessionStorage"in Le)try{Le.sessionStorage.setItem(cD,JSON.stringify(e))}catch(n){}}function NC(e){return e===void 0?!1:Math.random()<e}function $D(e){const t=new Date().getTime(),n=e.id||Bi(),r=e.started||t,i=e.lastActivity||t,o=e.segmentId||0,s=e.sampled;return{id:n,started:r,lastActivity:i,segmentId:o,sampled:s}}function rY(e,t){return NC(e)?"session":NC(t)?"error":!1}function iY({sessionSampleRate:e,errorSampleRate:t,stickySession:n=!1}){const r=rY(e,t),i=$D({sampled:r});return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.log(`[Replay] Creating new session: ${i.id}`),n&&MD(i),i}function oY(){if(!("sessionStorage"in Le))return null;try{const t=Le.sessionStorage.getItem(cD);if(!t)return null;const n=JSON.parse(t);return $D(n)}catch(t){return null}}function sY({expiry:e,currentSession:t,stickySession:n,sessionSampleRate:r,errorSampleRate:i}){const o=t||n&&oY();if(o)if(TD(o,e))(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.log("[Replay] Session has expired");else return{type:"saved",session:o};return{type:"new",session:iY({stickySession:n,sessionSampleRate:r,errorSampleRate:i})}}async function gm(e,t,n){if(!e.eventBuffer||e.isPaused())return null;const i=t.timestamp>9999999999?t.timestamp:t.timestamp*1e3;if(i+Ou<new Date().getTime())return null;const o=e.getContext().earliestEvent;return e.session&&e.session.segmentId===0&&(!o||i<o)&&(e.getContext().earliestEvent=i),e.eventBuffer.addEvent(t,n)}function mm(e){return{timestamp:new Date().getTime()/1e3,type:"default",...e}}function PD(e,t){t.category!=="sentry.transaction"&&(t.category==="ui.click"?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>(gm(e,{type:Ft.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:t}}),t.category==="console")))}const aY=e=>t=>{if(!e.isEnabled())return;const n=lY(t);!n||PD(e,n)};function lY(e){let t,n;try{n=cY(e),t=jl(n)}catch(r){t="<unknown>"}return t.length===0?null:mm({category:`ui.${e.name}`,message:t,data:{...n?{nodeId:ss.mirror.getId(n)}:{}}})}function cY(e){return uY(e.event)?e.event.target:e.event}function uY(e){return!!e.target}function Rh(e,t){return t.map(({type:n,start:r,end:i,name:o,data:s})=>gm(e,{type:Ft.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:n,description:o,startTimestamp:r,endTimestamp:i,data:s}}}))}function OD(e,t){return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&e.getOptions()._experiments.traceInternals?!1:!dY(t)}function dY(e){const t=wt().getClient(),n=t&&t.getDsn();return n?e.includes(n.host):!1}function hY(e){if(!e.endTimestamp)return null;const{startTimestamp:t,endTimestamp:n,fetchData:r,response:i}=e;return{type:"resource.fetch",start:t/1e3,end:n/1e3,name:r.url,data:{method:r.method,statusCode:i.status}}}function fY(e){return t=>{if(!e.isEnabled())return;const n=hY(t);n!==null&&(OD(e,n.name)||e.addUpdate(()=>(Rh(e,[n]),!0)))}}function pY(e){return e.type||!e.exception||!e.exception.values||!e.exception.values.length?!1:e.exception.values.some(t=>!t.stacktrace||!t.stacktrace.frames||!t.stacktrace.frames.length?!1:t.stacktrace.frames.some(n=>n.filename&&n.filename.includes("/rrweb/src/")))}function gY(e){return t=>{if(t.type===uD)return delete t.breadcrumbs,t;if(pY(t)&&!e.getOptions()._experiments.captureExceptions)return(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.log("[Replay] Ignoring error from rrweb internals",t),null;if((!t.type||e.recordingMode==="session")&&(t.tags={...t.tags,replayId:e.getSessionId()}),t.type==="transaction"&&t.contexts&&t.contexts.trace&&t.contexts.trace.trace_id)return e.getContext().traceIds.add(t.contexts.trace.trace_id),t;if(t.type||e.getContext().errorIds.add(t.event_id),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&e.getOptions()._experiments.traceInternals){const n=vY(t);mY({message:`Tagging event (${t.event_id}) - ${t.message} - ${n.type}: ${n.value}`})}return e.recordingMode==="error"&&t.exception&&t.message!==nA&&setTimeout(async()=>{await e.flushImmediate(),e.stopRecording()&&(e.recordingMode="session",e.startRecording())}),t}}function mY(e){const{category:t,level:n,message:r,...i}=e;YR({category:t||"console",level:n||"debug",message:`[debug]: ${r}`,...i})}function vY(e){return{type:"Unknown",value:"n/a",...e.exception&&e.exception.values&&e.exception.values[0]}}function yY(e){const{from:t,to:n}=e,r=new Date().getTime()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}function xY(e){return t=>{if(!e.isEnabled())return;const n=yY(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(Rh(e,[n]),!1)))}}let FC=null;const bY=e=>t=>{if(!e.isEnabled())return;const n=_Y(t);!n||PD(e,n)};function _Y(e){const t=e.getLastBreadcrumb();return FC===t||!t||(FC=t,t.category&&(["fetch","xhr","sentry.event","sentry.transaction"].includes(t.category)||t.category.startsWith("ui.")))?null:mm(t)}function wY(e){if(e.xhr.__sentry_own_request__||(e.startTimestamp&&(e.xhr.__sentry_xhr__=e.xhr.__sentry_xhr__||{},e.xhr.__sentry_xhr__.startTimestamp=e.startTimestamp),!e.endTimestamp))return null;const{method:t,url:n,status_code:r}=e.xhr.__sentry_xhr__||{};if(n===void 0)return null;const i=e.xhr.__sentry_xhr__?e.xhr.__sentry_xhr__.startTimestamp||0:e.endTimestamp;return{type:"resource.xhr",name:n,start:i/1e3,end:e.endTimestamp/1e3,data:{method:t,statusCode:r}}}function AY(e){return t=>{if(!e.isEnabled())return;const n=wY(t);n!==null&&(OD(e,n.name)||e.addUpdate(()=>(Rh(e,[n]),!0)))}}function SY(e){const t=wt().getScope();t&&t.addScopeListener(bY(e)),qe("dom",aY(e)),qe("fetch",fY(e)),qe("xhr",AY(e)),qe("history",xY(e)),F0(gY(e))}async function EY(e){try{return Promise.all(Rh(e,[CY(Le.performance.memory)]))}catch(t){return[]}}function CY(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,i=new Date().getTime()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}const zC={resource:PY,paint:MY,navigation:$Y,["largest-contentful-paint"]:OY};function kY(e){return e.map(TY).filter(Boolean)}function TY(e){return zC[e.entryType]===void 0?null:zC[e.entryType](e)}function ql(e){return((Hl||Le.performance.timeOrigin)+e)/1e3}function MY(e){const{duration:t,entryType:n,name:r,startTime:i}=e,o=ql(i);return{type:n,name:r,start:o,end:o+t}}function $Y(e){const{entryType:t,name:n,duration:r,domComplete:i,startTime:o,transferSize:s,type:a}=e;return r===0?null:{type:`${t}.${a}`,start:ql(o),end:ql(i),name:n,data:{size:s,duration:r}}}function PY(e){const{entryType:t,initiatorType:n,name:r,responseEnd:i,startTime:o,encodedBodySize:s,transferSize:a}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:ql(o),end:ql(i),name:r,data:{size:a,encodedBodySize:s}}}function OY(e){const{duration:t,entryType:n,startTime:r,size:i}=e,o=ql(r);return{type:n,name:n,start:o,end:o+t,data:{duration:t,size:i,nodeId:ss.mirror.getId(e.element)}}}function RY(e,t,n){let r,i,o;const s=n&&n.maxWait?Math.max(n.maxWait,t):0;function a(){return l(),r=e(),r}function l(){i!==void 0&&clearTimeout(i),o!==void 0&&clearTimeout(o),i=o=void 0}function c(){return i!==void 0||o!==void 0?a():r}function u(){return i&&clearTimeout(i),i=setTimeout(a,t),s&&o===void 0&&s!==t&&(o=setTimeout(a,s)),r}return u.cancel=l,u.flush=c,u}let lb;function DY(e){const t=wt().getClient();if(!t)return;const n=t.recordDroppedEvent.bind(t),r=(i,o,s)=>(s&&!s.type&&s.event_id&&e.delete(s.event_id),n(i,o,s));t.recordDroppedEvent=r,lb=n}function LY(){const e=wt().getClient();!e||!lb||(e.recordDroppedEvent=lb)}function IY(e,t,n,r){return $h(FR(e,Qw(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:typeof t=="string"?new TextEncoder().encode(t).length:t.length},t]])}function NY({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)}
|
|
62
|
+
`;if(typeof e=="string")n=`${r}${e}`;else{const o=new TextEncoder().encode(r);n=new Uint8Array(o.length+e.length),n.set(o),n.set(e,o.length)}return n}async function FY({client:e,scope:t,replayId:n,event:r}){const i=await XR(e.getOptions(),r,{event_id:n},t);if(!i)return null;i.platform=i.platform||"javascript";const o=e.getSdkMetadata&&e.getSdkMetadata(),{name:s,version:a}=o&&o.sdk||{};return i.sdk={...i.sdk,name:s||"sentry.javascript.unknown",version:a||"0.0.0"},i}async function zY({recordingData:e,replayId:t,segmentId:n,includeReplayStartTimestamp:r,eventContext:i,timestamp:o,session:s,options:a}){const l=NY({recordingData:e,headers:{segment_id:n}}),{urls:c,errorIds:u,traceIds:d,initialTimestamp:h}=i,f=wt(),p=f.getClient(),g=f.getScope(),y=p&&p.getTransport(),m=p&&p.getDsn();if(!p||!g||!y||!m||!s.sampled)return;const x={type:uD,...r?{replay_start_timestamp:h/1e3}:{},timestamp:o/1e3,error_ids:u,trace_ids:d,urls:c,replay_id:t,segment_id:n,replay_type:s.sampled},b=await FY({scope:g,client:p,replayId:t,event:x});if(!b){p.recordDroppedEvent("event_processor","replay",x),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.log("An event processor returned `null`, will not send event.");return}b.tags={...b.tags,sessionSampleRate:a.sessionSampleRate,errorSampleRate:a.errorSampleRate};const _=IY(b,l,m,p.getOptions().tunnel);let w;try{w=await y.send(_)}catch(S){throw new Error(nA)}if(!w)return w;const A=VR({},w);if(BR(A,"replay"))throw new iA(A);if(typeof w.statusCode=="number"&&(w.statusCode<200||w.statusCode>=300))throw new RD(w.statusCode);return w}class iA extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}}class RD extends Error{constructor(t){super(`Transport returned status code ${t}`)}}async function DD(e,t={count:0,interval:tW}){const{recordingData:n,options:r}=e;if(!!n.length)try{return await zY(e),!0}catch(i){if(i instanceof iA||i instanceof RD)throw i;if(EH("Replays",{_retryCount:t.count}),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&r._experiments&&r._experiments.captureExceptions&&z0(i),t.count>=eW)throw new Error(`${nA} - max retries exceeded`);return t.interval*=++t.count,await new Promise((o,s)=>{setTimeout(async()=>{try{await DD(e,t),o(!0)}catch(a){s(a)}},t.interval)})}}class De{__init(){this.eventBuffer=null}__init2(){this.performanceEvents=[]}__init3(){this.recordingMode="session"}__init4(){this._performanceObserver=null}__init5(){this._flushLock=null}__init6(){this._lastActivity=new Date().getTime()}__init7(){this._isEnabled=!1}__init8(){this._isPaused=!1}__init9(){this._hasInitializedCoreListeners=!1}__init10(){this._stopRecording=null}__init11(){this._context={errorIds:new Set,traceIds:new Set,urls:[],earliestEvent:null,initialTimestamp:new Date().getTime(),initialUrl:""}}constructor({options:t,recordingOptions:n}){De.prototype.__init.call(this),De.prototype.__init2.call(this),De.prototype.__init3.call(this),De.prototype.__init4.call(this),De.prototype.__init5.call(this),De.prototype.__init6.call(this),De.prototype.__init7.call(this),De.prototype.__init8.call(this),De.prototype.__init9.call(this),De.prototype.__init10.call(this),De.prototype.__init11.call(this),De.prototype.__init12.call(this),De.prototype.__init13.call(this),De.prototype.__init14.call(this),De.prototype.__init15.call(this),De.prototype.__init16.call(this),this._recordingOptions=n,this._options=t,this._debouncedFlush=RY(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay})}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}getOptions(){return this._options}start(){if(this._setInitialState(),this._loadSession({expiry:Ou}),!this.session){this._handleException(new Error("No session found"));return}!this.session.sampled||(this.session.sampled==="error"&&(this.recordingMode="error"),this._updateSessionActivity(),this.eventBuffer=eY({useCompression:this._options.useCompression}),this._addListeners(),this._isEnabled=!0,this.startRecording())}startRecording(){try{this._stopRecording=ss({...this._recordingOptions,...this.recordingMode==="error"&&{checkoutEveryNms:6e4},emit:this._handleRecordingEmit})}catch(t){this._handleException(t)}}stopRecording(){try{return this._stopRecording?(this._stopRecording(),this._stopRecording=void 0,!0):!1}catch(t){return this._handleException(t),!1}}stop(){try{(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.log("[Replay] Stopping Replays"),this._isEnabled=!1,this._removeListeners(),this.stopRecording(),this.eventBuffer&&this.eventBuffer.destroy(),this.eventBuffer=null,this._debouncedFlush.cancel()}catch(t){this._handleException(t)}}pause(){this._isPaused=!0,this.stopRecording()}resume(){this._isPaused=!1,this.startRecording()}addUpdate(t){const n=t();this.recordingMode!=="error"&&n!==!0&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){this._loadSession({expiry:Ou}),this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession({expiry:t=Ou}={}){const n=this.getSessionId();if(this._lastActivity&&ab(this._lastActivity,dD)){this.pause();return}return this._loadSession({expiry:t}),n!==this.getSessionId()?(this._triggerFullSnapshot(),!1):!0}_handleException(t){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.error("[Replay]",t),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&this._options._experiments&&this._options._experiments.captureExceptions&&z0(t)}_loadSession({expiry:t}){const{type:n,session:r}=sY({expiry:t,stickySession:Boolean(this._options.stickySession),currentSession:this.session,sessionSampleRate:this._options.sessionSampleRate,errorSampleRate:this._options.errorSampleRate});n==="new"&&this._setInitialState();const i=this.getSessionId();r.id!==i&&(r.previousSessionId=i),this.session=r}_setInitialState(){const t=`${Le.location.pathname}${Le.location.hash}${Le.location.search}`,n=`${Le.location.origin}${t}`;this.performanceEvents=[],this._clearContext(),this._context.initialUrl=n,this._context.initialTimestamp=new Date().getTime(),this._context.urls.push(n)}_addListeners(){try{Le.document.addEventListener("visibilitychange",this._handleVisibilityChange),Le.addEventListener("blur",this._handleWindowBlur),Le.addEventListener("focus",this._handleWindowFocus),DY(this._context.errorIds),this._hasInitializedCoreListeners||(SY(this),this._hasInitializedCoreListeners=!0)}catch(t){this._handleException(t)}"_performanceObserver"in Le&&(this._performanceObserver=JW(this))}_removeListeners(){try{Le.document.removeEventListener("visibilitychange",this._handleVisibilityChange),Le.removeEventListener("blur",this._handleWindowBlur),Le.removeEventListener("focus",this._handleWindowFocus),LY(),this._performanceObserver&&(this._performanceObserver.disconnect(),this._performanceObserver=null)}catch(t){this._handleException(t)}}__init12(){this._handleRecordingEmit=(t,n)=>{if(!this.checkAndHandleExpiredSession()){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.error("[Replay] Received replay event after session expired.");return}this.addUpdate(()=>(this.recordingMode==="error"&&t.type===2&&this._setInitialState(),gm(this,t,n),t.type!==2?!1:(this.session&&this.session.previousSessionId||(this.recordingMode==="error"&&this.session&&this._context.earliestEvent&&(this.session.started=this._context.earliestEvent,this._maybeSaveSession()),this.recordingMode==="session"&&this.flushImmediate()),!0)))}}__init13(){this._handleVisibilityChange=()=>{Le.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init14(){this._handleWindowBlur=()=>{const t=mm({category:"ui.blur"});this._doChangeToBackgroundTasks(t)}}__init15(){this._handleWindowFocus=()=>{const t=mm({category:"ui.focus"});this._doChangeToForegroundTasks(t)}}_doChangeToBackgroundTasks(t){if(!this.session)return;const n=TD(this.session,AC);t&&!n&&this._createCustomBreadcrumb(t),this._conditionalFlush()}_doChangeToForegroundTasks(t){if(!this.session)return;if(!this.checkAndHandleExpiredSession({expiry:AC})){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.log("[Replay] Document has become active, but session has expired");return}t&&this._createCustomBreadcrumb(t)}_triggerFullSnapshot(){try{(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.log("[Replay] Taking full rrweb snapshot"),ss.takeFullSnapshot(!0)}catch(t){this._handleException(t)}}_updateUserActivity(t=new Date().getTime()){this._lastActivity=t}_updateSessionActivity(t=new Date().getTime()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate(()=>{gm(this,{type:Ft.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){const t=[...this.performanceEvents];return this.performanceEvents=[],Promise.all(Rh(this,kY(t)))}_conditionalFlush(){this.recordingMode!=="error"&&this.flushImmediate()}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[],this._context.earliestEvent=null}_popEventContext(){this._context.earliestEvent&&this._context.earliestEvent<this._context.initialTimestamp&&(this._context.initialTimestamp=this._context.earliestEvent);const t={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds).filter(Boolean),traceIds:Array.from(this._context.traceIds).filter(Boolean),urls:this._context.urls};return this._clearContext(),t}async _runFlush(){if(!this.session||!this.eventBuffer){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.error("[Replay] No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),!(!this.eventBuffer||!this.eventBuffer.pendingLength)&&(await EY(this),!!this.eventBuffer))try{const t=await this.eventBuffer.finish(),n=this.session.id,r=this._popEventContext(),i=this.session.segmentId++;this._maybeSaveSession(),await DD({replayId:n,recordingData:t,segmentId:i,includeReplayStartTimestamp:i===0,eventContext:r,session:this.session,options:this.getOptions(),timestamp:new Date().getTime()})}catch(t){if(this._handleException(t),t instanceof iA){this._handleRateLimit(t.rateLimits);return}this.stop()}}__init16(){this._flush=async()=>{if(!!this._isEnabled){if(!this.checkAndHandleExpiredSession()){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.error("[Replay] Attempting to finish replay event after session expired.");return}if(!this.session){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.error("[Replay] No session found to flush.");return}if(this._debouncedFlush.cancel(),!this._flushLock){this._flushLock=this._runFlush(),await this._flushLock,this._flushLock=null;return}try{await this._flushLock}catch(t){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.error(t)}finally{this._debouncedFlush()}}}}_maybeSaveSession(){this.session&&this._options.stickySession&&MD(this.session)}_handleRateLimit(t){if(this.isPaused())return;const r=zR(t,"replay")-Date.now();r>0&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.warn("[Replay]",`Rate limit hit, pausing replay for ${r}ms`),this.pause(),this._debouncedFlush.cancel(),setTimeout(()=>{(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.info("[Replay]","Resuming replay after rate limit"),this.resume()},r))}}function BC(){return typeof window<"u"&&(!L0()||BY())}function BY(){return typeof process<"u"&&process.type==="renderer"}const VC="img,image,svg,path,rect,area,video,object,picture,embed,map,audio";let jC=!1;class Ud{static __initStatic(){this.id="Replay"}__init(){this.name=Ud.id}constructor({flushMinDelay:t=ZU,flushMaxDelay:n=JU,stickySession:r=!0,useCompression:i=!0,sessionSampleRate:o,errorSampleRate:s,maskAllText:a,maskTextSelector:l,maskAllInputs:c=!0,blockAllMedia:u=!0,_experiments:d={},blockClass:h="sentry-block",ignoreClass:f="sentry-ignore",maskTextClass:p="sentry-mask",blockSelector:g="[data-sentry-block]",...y}={}){if(Ud.prototype.__init.call(this),this._recordingOptions={maskAllInputs:c,blockClass:h,ignoreClass:f,maskTextClass:p,maskTextSelector:l,blockSelector:g,...y},this._options={flushMinDelay:t,flushMaxDelay:n,stickySession:r,sessionSampleRate:0,errorSampleRate:0,useCompression:i,maskAllText:typeof a=="boolean"?a:!l,blockAllMedia:u,_experiments:d},typeof o=="number"&&(console.warn(`[Replay] You are passing \`sessionSampleRate\` to the Replay integration.
|
|
63
|
+
This option is deprecated and will be removed soon.
|
|
64
|
+
Instead, configure \`replaysSessionSampleRate\` directly in the SDK init options, e.g.:
|
|
65
|
+
Sentry.init({ replaysSessionSampleRate: ${o} })`),this._options.sessionSampleRate=o),typeof s=="number"&&(console.warn(`[Replay] You are passing \`errorSampleRate\` to the Replay integration.
|
|
66
|
+
This option is deprecated and will be removed soon.
|
|
67
|
+
Instead, configure \`replaysOnErrorSampleRate\` directly in the SDK init options, e.g.:
|
|
68
|
+
Sentry.init({ replaysOnErrorSampleRate: ${s} })`),this._options.errorSampleRate=s),this._options.maskAllText&&(this._recordingOptions.maskTextSelector=KU),this._options.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${VC}`:VC),this._isInitialized&&BC())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return jC}set _isInitialized(t){jC=t}setupOnce(){!BC()||(this._setup(),setTimeout(()=>this.start()))}start(){!this._replay||this._replay.start()}stop(){!this._replay||this._replay.stop()}flush(){if(!(!this._replay||!this._replay.isEnabled()))return this._replay.flushImmediate()}_setup(){this._loadReplayOptionsFromClient(),this._replay=new De({options:this._options,recordingOptions:this._recordingOptions})}_loadReplayOptionsFromClient(){const t=wt().getClient(),n=t&&t.getOptions();n&&typeof n.replaysSessionSampleRate=="number"&&(this._options.sessionSampleRate=n.replaysSessionSampleRate),n&&typeof n.replaysOnErrorSampleRate=="number"&&(this._options.errorSampleRate=n.replaysOnErrorSampleRate)}}Ud.__initStatic();function VY(e){e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.react",packages:[{name:"npm:@sentry/react",version:dm}],version:dm},XU(e)}var j0={exports:{}},H0={};/**
|
|
69
|
+
* @license React
|
|
70
|
+
* react-jsx-runtime.production.min.js
|
|
71
|
+
*
|
|
72
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
73
|
+
*
|
|
74
|
+
* This source code is licensed under the MIT license found in the
|
|
75
|
+
* LICENSE file in the root directory of this source tree.
|
|
76
|
+
*/var jY=v.exports,HY=Symbol.for("react.element"),UY=Symbol.for("react.fragment"),WY=Object.prototype.hasOwnProperty,YY=jY.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,GY={key:!0,ref:!0,__self:!0,__source:!0};function LD(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)WY.call(t,r)&&!GY.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:HY,type:e,key:o,ref:s,props:i,_owner:YY.current}}H0.Fragment=UY;H0.jsx=LD;H0.jsxs=LD;(function(e){e.exports=H0})(j0);const qY=j0.exports.Fragment,O=j0.exports.jsx,Ae=j0.exports.jsxs;function oA(e){const t=wt().getClient(),n=e||t&&t.getOptions();return!!n&&("tracesSampleRate"in n||"tracesSampler"in n)}function sA(e){const n=(e||wt()).getScope();return n&&n.getTransaction()}function Ge(e){return e/1e3}function XY(){qe("error",HC),qe("unhandledrejection",HC)}function HC(){const e=sA();if(e){const t="internal_error";(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.log(`[Tracing] Transaction: ${t} -> Global error occured`),e.setStatus(t)}}class U0{__init(){this.spans=[]}constructor(t=1e3){U0.prototype.__init.call(this),this._maxlen=t}add(t){this.spans.length>this._maxlen?t.spanRecorder=void 0:this.spans.push(t)}}class ki{__init2(){this.traceId=Bi()}__init3(){this.spanId=Bi().substring(16)}__init4(){this.startTimestamp=Fd()}__init5(){this.tags={}}__init6(){this.data={}}__init7(){this.instrumenter="sentry"}constructor(t){if(ki.prototype.__init2.call(this),ki.prototype.__init3.call(this),ki.prototype.__init4.call(this),ki.prototype.__init5.call(this),ki.prototype.__init6.call(this),ki.prototype.__init7.call(this),!t)return this;t.traceId&&(this.traceId=t.traceId),t.spanId&&(this.spanId=t.spanId),t.parentSpanId&&(this.parentSpanId=t.parentSpanId),"sampled"in t&&(this.sampled=t.sampled),t.op&&(this.op=t.op),t.description&&(this.description=t.description),t.data&&(this.data=t.data),t.tags&&(this.tags=t.tags),t.status&&(this.status=t.status),t.startTimestamp&&(this.startTimestamp=t.startTimestamp),t.endTimestamp&&(this.endTimestamp=t.endTimestamp),t.instrumenter&&(this.instrumenter=t.instrumenter)}startChild(t){const n=new ki({...t,parentSpanId:this.spanId,sampled:this.sampled,traceId:this.traceId});if(n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n),n.transaction=this.transaction,(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&n.transaction){const r=t&&t.op||"< unknown op >",i=n.transaction.name||"< unknown name >",o=n.transaction.spanId,s=`[Tracing] Starting '${r}' span on transaction '${i}' (${o}).`;n.transaction.metadata.spanMetadata[n.spanId]={logMessage:s},H.log(s)}return n}setTag(t,n){return this.tags={...this.tags,[t]:n},this}setData(t,n){return this.data={...this.data,[t]:n},this}setStatus(t){return this.status=t,this}setHttpStatus(t){this.setTag("http.status_code",String(t));const n=QY(t);return n!=="unknown_error"&&this.setStatus(n),this}isSuccess(){return this.status==="ok"}finish(t){if((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&this.transaction&&this.transaction.spanId!==this.spanId){const{logMessage:n}=this.transaction.metadata.spanMetadata[this.spanId];n&&H.log(n.replace("Starting","Finishing"))}this.endTimestamp=typeof t=="number"?t:Fd()}toTraceparent(){let t="";return this.sampled!==void 0&&(t=this.sampled?"-1":"-0"),`${this.traceId}-${this.spanId}${t}`}toContext(){return Qo({data:this.data,description:this.description,endTimestamp:this.endTimestamp,op:this.op,parentSpanId:this.parentSpanId,sampled:this.sampled,spanId:this.spanId,startTimestamp:this.startTimestamp,status:this.status,tags:this.tags,traceId:this.traceId})}updateWithContext(t){return this.data=t.data||{},this.description=t.description,this.endTimestamp=t.endTimestamp,this.op=t.op,this.parentSpanId=t.parentSpanId,this.sampled=t.sampled,this.spanId=t.spanId||this.spanId,this.startTimestamp=t.startTimestamp||this.startTimestamp,this.status=t.status,this.tags=t.tags||{},this.traceId=t.traceId||this.traceId,this}getTraceContext(){return Qo({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,trace_id:this.traceId})}toJSON(){return Qo({data:Object.keys(this.data).length>0?this.data:void 0,description:this.description,op:this.op,parent_span_id:this.parentSpanId,span_id:this.spanId,start_timestamp:this.startTimestamp,status:this.status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this.endTimestamp,trace_id:this.traceId})}}function QY(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}class kl extends ki{__init(){this._measurements={}}__init2(){this._contexts={}}__init3(){this._frozenDynamicSamplingContext=void 0}constructor(t,n){super(t),kl.prototype.__init.call(this),kl.prototype.__init2.call(this),kl.prototype.__init3.call(this),this._hub=n||wt(),this._name=t.name||"",this.metadata={source:"custom",...t.metadata,spanMetadata:{},changes:[],propagations:0},this._trimEnd=t.trimEnd,this.transaction=this;const r=this.metadata.dynamicSamplingContext;r&&(this._frozenDynamicSamplingContext={...r})}get name(){return this._name}set name(t){this.setName(t)}setName(t,n="custom"){(t!==this.name||n!==this.metadata.source)&&this.metadata.changes.push({source:this.metadata.source,timestamp:N0(),propagations:this.metadata.propagations}),this._name=t,this.metadata.source=n}initSpanRecorder(t=1e3){this.spanRecorder||(this.spanRecorder=new U0(t)),this.spanRecorder.add(this)}setContext(t,n){n===null?delete this._contexts[t]:this._contexts[t]=n}setMeasurement(t,n,r=""){this._measurements[t]={value:n,unit:r}}setMetadata(t){this.metadata={...this.metadata,...t}}finish(t){if(this.endTimestamp!==void 0)return;if(this.name||((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this.name="<unlabeled transaction>"),super.finish(t),this.sampled!==!0){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled.");const s=this._hub.getClient();s&&s.recordDroppedEvent("sample_rate","transaction");return}const n=this.spanRecorder?this.spanRecorder.spans.filter(s=>s!==this&&s.endTimestamp):[];this._trimEnd&&n.length>0&&(this.endTimestamp=n.reduce((s,a)=>s.endTimestamp&&a.endTimestamp?s.endTimestamp>a.endTimestamp?s:a:s).endTimestamp);const r=this.metadata,i={contexts:{...this._contexts,trace:this.getTraceContext()},spans:n,start_timestamp:this.startTimestamp,tags:this.tags,timestamp:this.endTimestamp,transaction:this.name,type:"transaction",sdkProcessingMetadata:{...r,dynamicSamplingContext:this.getDynamicSamplingContext()},...r.source&&{transaction_info:{source:r.source,changes:r.changes,propagations:r.propagations}}};return Object.keys(this._measurements).length>0&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),i.measurements=this._measurements),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.log(`[Tracing] Finishing ${this.op} transaction: ${this.name}.`),this._hub.captureEvent(i)}toContext(){const t=super.toContext();return Qo({...t,name:this.name,trimEnd:this._trimEnd})}updateWithContext(t){return super.updateWithContext(t),this.name=t.name||"",this._trimEnd=t.trimEnd,this}getDynamicSamplingContext(){if(this._frozenDynamicSamplingContext)return this._frozenDynamicSamplingContext;const t=this._hub||wt(),n=t&&t.getClient();if(!n)return{};const{environment:r,release:i}=n.getOptions()||{},{publicKey:o}=n.getDsn()||{},s=this.metadata.sampleRate,a=s!==void 0?s.toString():void 0,l=t.getScope(),{segment:c}=l&&l.getUser()||{},u=this.metadata.source,d=u&&u!=="url"?this.name:void 0;return Qo({environment:r,release:i,transaction:d,user_segment:c,public_key:o,trace_id:this.traceId,sample_rate:a})}}const ID=1e3,ND=3e4,FD=5e3;class KY extends U0{constructor(t,n,r,i){super(i),this._pushActivity=t,this._popActivity=n,this.transactionSpanId=r}add(t){t.spanId!==this.transactionSpanId&&(t.finish=n=>{t.endTimestamp=typeof n=="number"?n:Fd(),this._popActivity(t.spanId)},t.endTimestamp===void 0&&this._pushActivity(t.spanId)),super.add(t)}}class ll extends kl{__init(){this.activities={}}__init2(){this._heartbeatCounter=0}__init3(){this._finished=!1}__init4(){this._beforeFinishCallbacks=[]}constructor(t,n,r=ID,i=ND,o=FD,s=!1){super(t,n),this._idleHub=n,this._idleTimeout=r,this._finalTimeout=i,this._heartbeatInterval=o,this._onScope=s,ll.prototype.__init.call(this),ll.prototype.__init2.call(this),ll.prototype.__init3.call(this),ll.prototype.__init4.call(this),s&&(UC(n),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.log(`Setting idle transaction on scope. Span ID: ${this.spanId}`),n.configureScope(a=>a.setSpan(this))),this._startIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this.finish())},this._finalTimeout)}finish(t=Fd()){if(this._finished=!0,this.activities={},this.spanRecorder){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.log("[Tracing] finishing IdleTransaction",new Date(t*1e3).toISOString(),this.op);for(const n of this._beforeFinishCallbacks)n(this,t);this.spanRecorder.spans=this.spanRecorder.spans.filter(n=>{if(n.spanId===this.spanId)return!0;n.endTimestamp||(n.endTimestamp=t,n.setStatus("cancelled"),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(n,void 0,2)));const r=n.startTimestamp<t;return r||(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.log("[Tracing] discarding Span since it happened after Transaction was finished",JSON.stringify(n,void 0,2)),r}),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.log("[Tracing] flushing IdleTransaction")}else(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.log("[Tracing] No active IdleTransaction");return this._onScope&&UC(this._idleHub),super.finish(t)}registerBeforeFinishCallback(t){this._beforeFinishCallbacks.push(t)}initSpanRecorder(t){if(!this.spanRecorder){const n=i=>{this._finished||this._pushActivity(i)},r=i=>{this._finished||this._popActivity(i)};this.spanRecorder=new KY(n,r,this.spanId,t),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}_cancelIdleTimeout(){this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0)}_startIdleTimeout(t){this._cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{!this._finished&&Object.keys(this.activities).length===0&&this.finish(t)},this._idleTimeout)}_pushActivity(t){this._cancelIdleTimeout(),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.log(`[Tracing] pushActivity: ${t}`),this.activities[t]=!0,(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(t){if(this.activities[t]&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.log(`[Tracing] popActivity ${t}`),delete this.activities[t],(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.log("[Tracing] new activities count",Object.keys(this.activities).length)),Object.keys(this.activities).length===0){const n=Fd()+this._idleTimeout/1e3;this._startIdleTimeout(n)}}_beat(){if(this._finished)return;const t=Object.keys(this.activities).join("");t===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=t,this._heartbeatCounter>=3?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this.finish()):this._pingHeartbeat()}_pingHeartbeat(){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout(()=>{this._beat()},this._heartbeatInterval)}}function UC(e){const t=e.getScope();t&&t.getTransaction()&&t.setSpan(void 0)}function ZY(){const e=this.getScope();if(e){const t=e.getSpan();if(t)return{"sentry-trace":t.toTraceparent()}}return{}}function zD(e,t,n){if(!oA(t))return e.sampled=!1,e;if(e.sampled!==void 0)return e.setMetadata({sampleRate:Number(e.sampled)}),e;let r;return typeof t.tracesSampler=="function"?(r=t.tracesSampler(n),e.setMetadata({sampleRate:Number(r)})):n.parentSampled!==void 0?r=n.parentSampled:(r=t.tracesSampleRate,e.setMetadata({sampleRate:Number(r)})),JY(r)?r?(e.sampled=Math.random()<r,e.sampled?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.log(`[Tracing] starting ${e.op} transaction - ${e.name}`),e):((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(r)})`),e)):((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.log(`[Tracing] Discarding transaction because ${typeof t.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),e.sampled=!1,e):((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.warn("[Tracing] Discarding transaction because of invalid sample rate."),e.sampled=!1,e)}function JY(e){return CR(e)||!(typeof e=="number"||typeof e=="boolean")?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):e<0||e>1?((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${e}.`),!1):!0}function tG(e,t){const n=this.getClient(),r=n&&n.getOptions()||{},i=r.instrumenter||"sentry",o=e.instrumenter||"sentry";i!==o&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.error(`A transaction was started with instrumenter=\`${o}\`, but the SDK is configured with the \`${i}\` instrumenter.
|
|
77
|
+
The transaction will not be sampled. Please use the ${i} instrumentation to start transactions.`),e.sampled=!1);let s=new kl(e,this);return s=zD(s,r,{parentSampled:e.parentSampled,transactionContext:e,...t}),s.sampled&&s.initSpanRecorder(r._experiments&&r._experiments.maxSpans),s}function WC(e,t,n,r,i,o,s){const a=e.getClient(),l=a&&a.getOptions()||{};let c=new ll(t,e,n,r,s,i);return c=zD(c,l,{parentSampled:t.parentSampled,transactionContext:t,...o}),c.sampled&&c.initSpanRecorder(l._experiments&&l._experiments.maxSpans),c}function eG(){const e=mc();!e.__SENTRY__||(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=tG),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=ZY))}function nG(){const e=mc();if(!e.__SENTRY__)return;const t={mongodb(){const r=To(module,"./integrations/node/mongo");return new r.Mongo},mongoose(){const r=To(module,"./integrations/node/mongo");return new r.Mongo({mongoose:!0})},mysql(){const r=To(module,"./integrations/node/mysql");return new r.Mysql},pg(){const r=To(module,"./integrations/node/postgres");return new r.Postgres}},n=Object.keys(t).filter(r=>!!Kj(r)).map(r=>{try{return t[r]()}catch(i){return}}).filter(r=>r);n.length>0&&(e.__SENTRY__.integrations=[...e.__SENTRY__.integrations||[],...n])}function rG(){eG(),L0()&&nG(),XY()}const It=tr;function iG(){It&&It.document?It.document.addEventListener("visibilitychange",()=>{const e=sA();if(It.document.hidden&&e){const t="cancelled";(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.log(`[Tracing] Transaction: ${t} -> since tab moved to the background, op: ${e.op}`),e.status||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.finish()}}):(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const aA=(e,t,n)=>{let r,i;return o=>{t.value>=0&&(o||n)&&(i=t.value-(r||0),(i||r===void 0)&&(r=t.value,t.delta=i,e(t)))}},oG=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,sG=()=>{const e=It.performance.timing,t=It.performance.navigation.type,n={entryType:"navigation",startTime:0,type:t==2?"back_forward":t===1?"reload":"navigate"};for(const r in e)r!=="navigationStart"&&r!=="toJSON"&&(n[r]=Math.max(e[r]-e.navigationStart,0));return n},BD=()=>It.__WEB_VITALS_POLYFILL__?It.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||sG()):It.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],VD=()=>{const e=BD();return e&&e.activationStart||0},lA=(e,t)=>{const n=BD();let r="navigate";return n&&(It.document.prerendering||VD()>0?r="prerender":r=n.type.replace(/_/g,"-")),{name:e,value:typeof t>"u"?-1:t,rating:"good",delta:0,entries:[],id:oG(),navigationType:r}},W0=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(i=>{t(i.getEntries())});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(r){}},Y0=(e,t)=>{const n=r=>{(r.type==="pagehide"||It.document.visibilityState==="hidden")&&(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},aG=e=>{const t=lA("CLS",0);let n,r=0,i=[];const o=a=>{a.forEach(l=>{if(!l.hadRecentInput){const c=i[0],u=i[i.length-1];r&&i.length!==0&&l.startTime-u.startTime<1e3&&l.startTime-c.startTime<5e3?(r+=l.value,i.push(l)):(r=l.value,i=[l]),r>t.value&&(t.value=r,t.entries=i,n&&n())}})},s=W0("layout-shift",o);s&&(n=aA(e,t),Y0(()=>{o(s.takeRecords()),n(!0)}))};let eg=-1;const lG=()=>It.document.visibilityState==="hidden"&&!It.document.prerendering?0:1/0,cG=()=>{Y0(({timeStamp:e})=>{eg=e},!0)},cA=()=>(eg<0&&(eg=lG(),cG()),{get firstHiddenTime(){return eg}}),uG=e=>{const t=cA(),n=lA("FID");let r;const i=a=>{a.startTime<t.firstHiddenTime&&(n.value=a.processingStart-a.startTime,n.entries.push(a),r(!0))},o=a=>{a.forEach(i)},s=W0("first-input",o);r=aA(e,n),s&&Y0(()=>{o(s.takeRecords()),s.disconnect()},!0)},YC={},dG=e=>{const t=cA(),n=lA("LCP");let r;const i=s=>{const a=s[s.length-1];if(a){const l=Math.max(a.startTime-VD(),0);l<t.firstHiddenTime&&(n.value=l,n.entries=[a],r())}},o=W0("largest-contentful-paint",i);if(o){r=aA(e,n);const s=()=>{YC[n.id]||(i(o.takeRecords()),o.disconnect(),YC[n.id]=!0,r(!0))};["keydown","click"].forEach(a=>{addEventListener(a,s,{once:!0,capture:!0})}),Y0(s,!0)}};function P1(e){return typeof e=="number"&&isFinite(e)}function Xl(e,{startTimestamp:t,...n}){return t&&e.startTimestamp>t&&(e.startTimestamp=t),e.startChild({startTimestamp:t,...n})}function jD(){return It&&It.addEventListener&&It.performance}let GC=0,ue={},Qr,Fu;function hG(){const e=jD();e&&Hl&&(e.mark&&It.performance.mark("sentry-tracing-init"),pG(),gG(),mG())}function fG(){W0("longtask",t=>{for(const n of t){const r=sA();if(!r)return;const i=Ge(Hl+n.startTime),o=Ge(n.duration);r.startChild({description:"Main UI thread blocked",op:"ui.long-task",startTimestamp:i,endTimestamp:i+o})}})}function pG(){aG(e=>{const t=e.entries.pop();!t||((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.log("[Measurements] Adding CLS"),ue.cls={value:e.value,unit:""},Fu=t)})}function gG(){dG(e=>{const t=e.entries.pop();!t||((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.log("[Measurements] Adding LCP"),ue.lcp={value:e.value,unit:"millisecond"},Qr=t)})}function mG(){uG(e=>{const t=e.entries.pop();if(!t)return;const n=Ge(Hl),r=Ge(t.startTime);(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.log("[Measurements] Adding FID"),ue.fid={value:e.value,unit:"millisecond"},ue["mark.fid"]={value:n+r,unit:"second"}})}function vG(e){const t=jD();if(!t||!It.performance.getEntries||!Hl)return;(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.log("[Tracing] Adding & adjusting spans using Performance API");const n=Ge(Hl),r=t.getEntries();let i,o;if(r.slice(GC).forEach(s=>{const a=Ge(s.startTime),l=Ge(s.duration);if(!(e.op==="navigation"&&n+a<e.startTimestamp))switch(s.entryType){case"navigation":{xG(e,s,n),i=n+Ge(s.responseStart),o=n+Ge(s.requestStart);break}case"mark":case"paint":case"measure":{yG(e,s,a,l,n);const c=cA(),u=s.startTime<c.firstHiddenTime;s.name==="first-paint"&&u&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.log("[Measurements] Adding FP"),ue.fp={value:s.startTime,unit:"millisecond"}),s.name==="first-contentful-paint"&&u&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.log("[Measurements] Adding FCP"),ue.fcp={value:s.startTime,unit:"millisecond"});break}case"resource":{const c=s.name.replace(It.location.origin,"");_G(e,s,c,a,l,n);break}}}),GC=Math.max(r.length-1,0),wG(e),e.op==="pageload"){typeof i=="number"&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.log("[Measurements] Adding TTFB"),ue.ttfb={value:(i-e.startTimestamp)*1e3,unit:"millisecond"},typeof o=="number"&&o<=i&&(ue["ttfb.requestTime"]={value:(i-o)*1e3,unit:"millisecond"})),["fcp","fp","lcp"].forEach(a=>{if(!ue[a]||n>=e.startTimestamp)return;const l=ue[a].value,c=n+Ge(l),u=Math.abs((c-e.startTimestamp)*1e3),d=u-l;(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.log(`[Measurements] Normalized ${a} from ${l} to ${u} (${d})`),ue[a].value=u});const s=ue["mark.fid"];s&&ue.fid&&(Xl(e,{description:"first input delay",endTimestamp:s.value+Ge(ue.fid.value),op:"ui.action",startTimestamp:s.value}),delete ue["mark.fid"]),"fcp"in ue||delete ue.cls,Object.keys(ue).forEach(a=>{e.setMeasurement(a,ue[a].value,ue[a].unit)}),AG(e)}Qr=void 0,Fu=void 0,ue={}}function yG(e,t,n,r,i){const o=i+n,s=o+r;return Xl(e,{description:t.name,endTimestamp:s,op:t.entryType,startTimestamp:o}),o}function xG(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{Pf(e,t,r,n)}),Pf(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),Pf(e,t,"fetch",n,"cache","domainLookupStart"),Pf(e,t,"domainLookup",n,"DNS"),bG(e,t,n)}function Pf(e,t,n,r,i,o){const s=o?t[o]:t[`${n}End`],a=t[`${n}Start`];!a||!s||Xl(e,{op:"browser",description:i||n,startTimestamp:r+Ge(a),endTimestamp:r+Ge(s)})}function bG(e,t,n){Xl(e,{op:"browser",description:"request",startTimestamp:n+Ge(t.requestStart),endTimestamp:n+Ge(t.responseEnd)}),Xl(e,{op:"browser",description:"response",startTimestamp:n+Ge(t.responseStart),endTimestamp:n+Ge(t.responseEnd)})}function _G(e,t,n,r,i,o){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const s={};"transferSize"in t&&(s["Transfer Size"]=t.transferSize),"encodedBodySize"in t&&(s["Encoded Body Size"]=t.encodedBodySize),"decodedBodySize"in t&&(s["Decoded Body Size"]=t.decodedBodySize);const a=o+r,l=a+i;Xl(e,{description:n,endTimestamp:l,op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",startTimestamp:a,data:s})}function wG(e){const t=It.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),P1(n.rtt)&&(ue["connection.rtt"]={value:n.rtt,unit:"millisecond"})),P1(t.deviceMemory)&&e.setTag("deviceMemory",`${t.deviceMemory} GB`),P1(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}function AG(e){Qr&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.log("[Measurements] Adding LCP Data"),Qr.element&&e.setTag("lcp.element",jl(Qr.element)),Qr.id&&e.setTag("lcp.id",Qr.id),Qr.url&&e.setTag("lcp.url",Qr.url.trim().slice(0,200)),e.setTag("lcp.size",Qr.size)),Fu&&Fu.sources&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.log("[Measurements] Adding CLS Data"),Fu.sources.forEach((t,n)=>e.setTag(`cls.source.${n+1}`,jl(t.node))))}const cb=["localhost",/^\//],ub={traceFetch:!0,traceXHR:!0,tracingOrigins:cb,tracePropagationTargets:cb};function SG(e){const{traceFetch:t,traceXHR:n,tracePropagationTargets:r,tracingOrigins:i,shouldCreateSpanForRequest:o}={traceFetch:ub.traceFetch,traceXHR:ub.traceXHR,...e},s=typeof o=="function"?o:c=>!0,a=c=>EG(c,r||i),l={};t&&qe("fetch",c=>{CG(c,s,a,l)}),n&&qe("xhr",c=>{TG(c,s,a,l)})}function EG(e,t){return D0(e,t||cb)}function CG(e,t,n,r){if(!oA()||!(e.fetchData&&t(e.fetchData.url)))return;if(e.endTimestamp){const a=e.fetchData.__span;if(!a)return;const l=r[a];l&&(e.response?l.setHttpStatus(e.response.status):e.error&&l.setStatus("internal_error"),l.finish(),delete r[a]);return}const i=wt().getScope(),o=i&&i.getSpan(),s=o&&o.transaction;if(o&&s){const a=o.startChild({data:{...e.fetchData,type:"fetch"},description:`${e.fetchData.method} ${e.fetchData.url}`,op:"http.client"});e.fetchData.__span=a.spanId,r[a.spanId]=a;const l=e.args[0];e.args[1]=e.args[1]||{};const c=e.args[1];n(e.fetchData.url)&&(c.headers=kG(l,s.getDynamicSamplingContext(),a,c),s.metadata.propagations++)}}function kG(e,t,n,r){const i=HR(t),o=n.toTraceparent(),s=typeof Request<"u"&&hi(e,Request)?e.headers:r.headers;if(s)if(typeof Headers<"u"&&hi(s,Headers)){const a=new Headers(s);return a.append("sentry-trace",o),i&&a.append(Jx,i),a}else if(Array.isArray(s)){const a=[...s,["sentry-trace",o]];return i&&a.push([Jx,i]),a}else{const a="baggage"in s?s.baggage:void 0,l=[];return Array.isArray(a)?l.push(...a):a&&l.push(a),i&&l.push(i),{...s,"sentry-trace":o,baggage:l.length>0?l.join(","):void 0}}else return{"sentry-trace":o,baggage:i}}function TG(e,t,n,r){if(!oA()||e.xhr&&e.xhr.__sentry_own_request__||!(e.xhr&&e.xhr.__sentry_xhr__&&t(e.xhr.__sentry_xhr__.url)))return;const i=e.xhr.__sentry_xhr__;if(e.endTimestamp){const l=e.xhr.__sentry_xhr_span_id__;if(!l)return;const c=r[l];c&&(c.setHttpStatus(i.status_code),c.finish(),delete r[l]);return}const o=wt().getScope(),s=o&&o.getSpan(),a=s&&s.transaction;if(s&&a){const l=s.startChild({data:{...i.data,type:"xhr",method:i.method,url:i.url},description:`${i.method} ${i.url}`,op:"http.client"});if(e.xhr.__sentry_xhr_span_id__=l.spanId,r[e.xhr.__sentry_xhr_span_id__]=l,e.xhr.setRequestHeader&&n(e.xhr.__sentry_xhr__.url))try{e.xhr.setRequestHeader("sentry-trace",l.toTraceparent());const c=a.getDynamicSamplingContext(),u=HR(c);u&&e.xhr.setRequestHeader(Jx,u),a.metadata.propagations++}catch(c){}}}function MG(e,t=!0,n=!0){if(!It||!It.location){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.warn("Could not initialize routing instrumentation due to invalid location");return}let r=It.location.href,i;t&&(i=e({name:It.location.pathname,op:"pageload",metadata:{source:"url"}})),n&&qe("history",({to:o,from:s})=>{if(s===void 0&&r&&r.indexOf(o)!==-1){r=void 0;return}s!==o&&(r=void 0,i&&((typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.log(`[Tracing] Finishing current transaction with op: ${i.op}`),i.finish()),i=e({name:It.location.pathname,op:"navigation",metadata:{source:"url"}}))})}const $G="BrowserTracing",PG={idleTimeout:ID,finalTimeout:ND,heartbeatInterval:FD,markBackgroundTransactions:!0,routingInstrumentation:MG,startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,_experiments:{},...ub};class uA{__init(){this.name=$G}constructor(t){uA.prototype.__init.call(this),this.options={...PG,...t},this.options._experiments.enableLongTask!==void 0&&(this.options.enableLongTask=this.options._experiments.enableLongTask),t&&!t.tracePropagationTargets&&t.tracingOrigins&&(this.options.tracePropagationTargets=t.tracingOrigins),hG(),this.options.enableLongTask&&fG()}setupOnce(t,n){this._getCurrentHub=n;const{routingInstrumentation:r,startTransactionOnLocationChange:i,startTransactionOnPageLoad:o,markBackgroundTransactions:s,traceFetch:a,traceXHR:l,tracePropagationTargets:c,shouldCreateSpanForRequest:u,_experiments:d}=this.options;r(h=>this._createRouteTransaction(h),o,i),s&&iG(),d.enableInteractions&&this._registerInteractionListener(),SG({traceFetch:a,traceXHR:l,tracePropagationTargets:c,shouldCreateSpanForRequest:u})}_createRouteTransaction(t){if(!this._getCurrentHub){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.warn(`[Tracing] Did not create ${t.op} transaction because _getCurrentHub is invalid.`);return}const{beforeNavigate:n,idleTimeout:r,finalTimeout:i,heartbeatInterval:o}=this.options,s=t.op==="pageload",a=s?qC("sentry-trace"):null,l=s?qC("baggage"):null,c=a?aH(a):void 0,u=l?vH(l):void 0,d={...t,...c,metadata:{...t.metadata,dynamicSamplingContext:c&&!u?{}:u},trimEnd:!0},h=typeof n=="function"?n(d):d,f=h===void 0?{...d,sampled:!1}:h;f.metadata=f.name!==d.name?{...f.metadata,source:"custom"}:f.metadata,this._latestRouteName=f.name,this._latestRouteSource=f.metadata&&f.metadata.source,f.sampled===!1&&(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.log(`[Tracing] Will not send ${f.op} transaction because of beforeNavigate.`),(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.log(`[Tracing] Starting ${f.op} transaction on scope`);const p=this._getCurrentHub(),{location:g}=It,y=WC(p,f,r,i,!0,{location:g},o);return y.registerBeforeFinishCallback(m=>{vG(m)}),y}_registerInteractionListener(){let t;const n=()=>{const{idleTimeout:r,finalTimeout:i,heartbeatInterval:o}=this.options,s="ui.action.click";if(t&&(t.finish(),t=void 0),!this._getCurrentHub){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.warn(`[Tracing] Did not create ${s} transaction because _getCurrentHub is invalid.`);return}if(!this._latestRouteName){(typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__)&&H.warn(`[Tracing] Did not create ${s} transaction because _latestRouteName is missing.`);return}const a=this._getCurrentHub(),{location:l}=It,c={name:this._latestRouteName,op:s,trimEnd:!0,metadata:{source:this._latestRouteSource||"url"}};t=WC(a,c,r,i,!0,{location:l},o)};["click"].forEach(r=>{addEventListener(r,n,{once:!1,capture:!0})})}}function qC(e){const t=_j(`meta[name=${e}]`);return t?t.getAttribute("content"):null}(typeof __SENTRY_TRACING__>"u"||__SENTRY_TRACING__)&&rG();const OG=["top.GLOBALS","originalCreateNotification","canvas.contentDocument","MyApp_RemoveAllHighlights","http://tt.epicplay.com","Can't find variable: ZiteReader","jigsaw is not defined","ComboSearch is not defined","http://loading.retry.widdit.com/","atomicFindClose","fb_xd_fragment","bmi_SafeAddOnload","EBCallBackMessageReceived","conduitPage","Script error.","_avast_submit"],RG=[/pagead\/js/i,/graph\.facebook\.com/i,/connect\.facebook\.net\/en_US\/all\.js/i,/eatdifferent\.com\.woopra-ns\.com/i,/static\.woopra\.com\/js\/woopra\.js/i,/extensions\//i,/^chrome:\/\//i,/127\.0\.0\.1:4001\/isrunning/i,/webappstoolbarba\.texthelp\.com\//i,/metrics\.itunes\.apple\.com\.edgesuite\.net\//i],DG="[Local Logic] ";class LG{constructor(){VY({dsn:"https://19707ff4ff7f420b9369a3e15041c787@o227377.ingest.sentry.io/6677584",integrations:[new uA,new Ud],tracesSampleRate:.05,replaysSessionSampleRate:.1,replaysOnErrorSampleRate:.5,environment:"production",enabled:!0,ignoreErrors:OG,denyUrls:RG})}captureException(t){this.log(t.message,"error"),z0(t)}addBreadCrumb(t,n,r,i="info"){this.log(n),YR({category:t,message:n,data:r,level:i})}log(t,n="info"){console[n](DG+t)}}const $Et=Object.freeze(new LG);var sn=function(){return sn=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},sn.apply(this,arguments)};function HD(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Ql(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var Xt="-ms-",zu="-moz-",Et="-webkit-",UD="comm",G0="rule",dA="decl",IG="@import",WD="@keyframes",NG=Math.abs,hA=String.fromCharCode,FG=Object.assign;function zG(e,t){return Ne(e,0)^45?(((t<<2^Ne(e,0))<<2^Ne(e,1))<<2^Ne(e,2))<<2^Ne(e,3):0}function YD(e){return e.trim()}function ho(e,t){return(e=t.exec(e))?e[0]:e}function ht(e,t,n){return e.replace(t,n)}function ng(e,t){return e.indexOf(t)}function Ne(e,t){return e.charCodeAt(t)|0}function Kl(e,t,n){return e.slice(t,n)}function $i(e){return e.length}function fA(e){return e.length}function Of(e,t){return t.push(e),e}function BG(e,t){return e.map(t).join("")}var q0=1,Zl=1,GD=0,xr=0,Ee=0,vc="";function X0(e,t,n,r,i,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:q0,column:Zl,length:s,return:""}}function Hc(e,t){return FG(X0("",null,null,"",null,null,0),e,{length:-e.length},t)}function VG(){return Ee}function jG(){return Ee=xr>0?Ne(vc,--xr):0,Zl--,Ee===10&&(Zl=1,q0--),Ee}function Fr(){return Ee=xr<GD?Ne(vc,xr++):0,Zl++,Ee===10&&(Zl=1,q0++),Ee}function ia(){return Ne(vc,xr)}function rg(){return xr}function Q0(e,t){return Kl(vc,e,t)}function db(e){switch(e){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 HG(e){return q0=Zl=1,GD=$i(vc=e),xr=0,[]}function UG(e){return vc="",e}function O1(e){return YD(Q0(xr-1,hb(e===91?e+2:e===40?e+1:e)))}function WG(e){for(;(Ee=ia())&&Ee<33;)Fr();return db(e)>2||db(Ee)>3?"":" "}function YG(e,t){for(;--t&&Fr()&&!(Ee<48||Ee>102||Ee>57&&Ee<65||Ee>70&&Ee<97););return Q0(e,rg()+(t<6&&ia()==32&&Fr()==32))}function hb(e){for(;Fr();)switch(Ee){case e:return xr;case 34:case 39:e!==34&&e!==39&&hb(Ee);break;case 40:e===41&&hb(e);break;case 92:Fr();break}return xr}function GG(e,t){for(;Fr()&&e+Ee!==47+10;)if(e+Ee===42+42&&ia()===47)break;return"/*"+Q0(t,xr-1)+"*"+hA(e===47?e:Fr())}function qG(e){for(;!db(ia());)Fr();return Q0(e,xr)}function XG(e){return UG(ig("",null,null,null,[""],e=HG(e),0,[0],e))}function ig(e,t,n,r,i,o,s,a,l){for(var c=0,u=0,d=s,h=0,f=0,p=0,g=1,y=1,m=1,x=0,b="",_=i,w=o,A=r,S=b;y;)switch(p=x,x=Fr()){case 40:if(p!=108&&Ne(S,d-1)==58){ng(S+=ht(O1(x),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:S+=O1(x);break;case 9:case 10:case 13:case 32:S+=WG(p);break;case 92:S+=YG(rg()-1,7);continue;case 47:switch(ia()){case 42:case 47:Of(QG(GG(Fr(),rg()),t,n),l);break;default:S+="/"}break;case 123*g:a[c++]=$i(S)*m;case 125*g:case 59:case 0:switch(x){case 0:case 125:y=0;case 59+u:f>0&&$i(S)-d&&Of(f>32?QC(S+";",r,n,d-1):QC(ht(S," ","")+";",r,n,d-2),l);break;case 59:S+=";";default:if(Of(A=XC(S,t,n,c,u,i,a,b,_=[],w=[],d),o),x===123)if(u===0)ig(S,t,A,A,_,o,d,a,w);else switch(h===99&&Ne(S,3)===110?100:h){case 100:case 109:case 115:ig(e,A,A,r&&Of(XC(e,A,A,0,0,i,a,b,i,_=[],d),w),i,w,d,a,r?_:w);break;default:ig(S,A,A,A,[""],w,0,a,w)}}c=u=f=0,g=m=1,b=S="",d=s;break;case 58:d=1+$i(S),f=p;default:if(g<1){if(x==123)--g;else if(x==125&&g++==0&&jG()==125)continue}switch(S+=hA(x),x*g){case 38:m=u>0?1:(S+="\f",-1);break;case 44:a[c++]=($i(S)-1)*m,m=1;break;case 64:ia()===45&&(S+=O1(Fr())),h=ia(),u=d=$i(b=S+=qG(rg())),x++;break;case 45:p===45&&$i(S)==2&&(g=0)}}return o}function XC(e,t,n,r,i,o,s,a,l,c,u){for(var d=i-1,h=i===0?o:[""],f=fA(h),p=0,g=0,y=0;p<r;++p)for(var m=0,x=Kl(e,d+1,d=NG(g=s[p])),b=e;m<f;++m)(b=YD(g>0?h[m]+" "+x:ht(x,/&\f/g,h[m])))&&(l[y++]=b);return X0(e,t,n,i===0?G0:a,l,c,u)}function QG(e,t,n){return X0(e,t,n,UD,hA(VG()),Kl(e,2,-2),0)}function QC(e,t,n,r){return X0(e,t,n,dA,Kl(e,0,r),Kl(e,r+1,-1),r)}function qD(e,t,n){switch(zG(e,t)){case 5103:return Et+"print-"+e+e;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 Et+e+e;case 4789:return zu+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Et+e+zu+e+Xt+e+e;case 5936:switch(Ne(e,t+11)){case 114:return Et+e+Xt+ht(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Et+e+Xt+ht(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Et+e+Xt+ht(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Et+e+Xt+e+e;case 6165:return Et+e+Xt+"flex-"+e+e;case 5187:return Et+e+ht(e,/(\w+).+(:[^]+)/,Et+"box-$1$2"+Xt+"flex-$1$2")+e;case 5443:return Et+e+Xt+"flex-item-"+ht(e,/flex-|-self/g,"")+(ho(e,/flex-|baseline/)?"":Xt+"grid-row-"+ht(e,/flex-|-self/g,""))+e;case 4675:return Et+e+Xt+"flex-line-pack"+ht(e,/align-content|flex-|-self/g,"")+e;case 5548:return Et+e+Xt+ht(e,"shrink","negative")+e;case 5292:return Et+e+Xt+ht(e,"basis","preferred-size")+e;case 6060:return Et+"box-"+ht(e,"-grow","")+Et+e+Xt+ht(e,"grow","positive")+e;case 4554:return Et+ht(e,/([^-])(transform)/g,"$1"+Et+"$2")+e;case 6187:return ht(ht(ht(e,/(zoom-|grab)/,Et+"$1"),/(image-set)/,Et+"$1"),e,"")+e;case 5495:case 3959:return ht(e,/(image-set\([^]*)/,Et+"$1$`$1");case 4968:return ht(ht(e,/(.+:)(flex-)?(.*)/,Et+"box-pack:$3"+Xt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Et+e+e;case 4200:if(!ho(e,/flex-|baseline/))return Xt+"grid-column-align"+Kl(e,t)+e;break;case 2592:case 3360:return Xt+ht(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,i){return t=i,ho(r.props,/grid-\w+-end/)})?~ng(e+(n=n[t].value),"span")?e:Xt+ht(e,"-start","")+e+Xt+"grid-row-span:"+(~ng(n,"span")?ho(n,/\d+/):+ho(n,/\d+/)-+ho(e,/\d+/))+";":Xt+ht(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return ho(r.props,/grid-\w+-start/)})?e:Xt+ht(ht(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return ht(e,/(.+)-inline(.+)/,Et+"$1$2")+e;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($i(e)-1-t>6)switch(Ne(e,t+1)){case 109:if(Ne(e,t+4)!==45)break;case 102:return ht(e,/(.+:)(.+)-([^]+)/,"$1"+Et+"$2-$3$1"+zu+(Ne(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ng(e,"stretch")?qD(ht(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return ht(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,o,s,a,l,c){return Xt+i+":"+o+c+(s?Xt+i+"-span:"+(a?l:+l-+o)+c:"")+e});case 4949:if(Ne(e,t+6)===121)return ht(e,":",":"+Et)+e;break;case 6444:switch(Ne(e,Ne(e,14)===45?18:11)){case 120:return ht(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Et+(Ne(e,14)===45?"inline-":"")+"box$3$1"+Et+"$2$3$1"+Xt+"$2box$3")+e;case 100:return ht(e,":",":"+Xt)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return ht(e,"scroll-","scroll-snap-")+e}return e}function Bu(e,t){for(var n="",r=fA(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function KG(e,t,n,r){switch(e.type){case IG:case dA:return e.return=e.return||e.value;case UD:return"";case WD:return e.return=e.value+"{"+Bu(e.children,r)+"}";case G0:e.value=e.props.join(",")}return $i(n=Bu(e.children,r))?e.return=e.value+"{"+n+"}":""}function ZG(e){var t=fA(e);return function(n,r,i,o){for(var s="",a=0;a<t;a++)s+=e[a](n,r,i,o)||"";return s}}function JG(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case dA:e.return=qD(e.value,e.length,n);return;case WD:return Bu([Hc(e,{value:ht(e.value,"@","@"+Et)})],r);case G0:if(e.length)return BG(e.props,function(i){switch(ho(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Bu([Hc(e,{props:[ht(i,/:(read-\w+)/,":"+zu+"$1")]})],r);case"::placeholder":return Bu([Hc(e,{props:[ht(i,/:(plac\w+)/,":"+Et+"input-$1")]}),Hc(e,{props:[ht(i,/:(plac\w+)/,":"+zu+"$1")]}),Hc(e,{props:[ht(i,/:(plac\w+)/,Xt+"input-$1")]})],r)}return""})}}var tq={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},yc=typeof process<"u"&&typeof process.env<"u"&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",XD="active",QD="data-styled-version",K0="6.0.0-beta.11",pA=`/*!sc*/
|
|
78
|
+
`,gA=typeof window<"u"&&"HTMLElement"in window,eq=Boolean(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&typeof process.env<"u"&&typeof process.env.REACT_APP_SC_DISABLE_SPEEDY<"u"&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY==="false"?!1:process.env.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&typeof process.env<"u"&&typeof process.env.SC_DISABLE_SPEEDY<"u"&&process.env.SC_DISABLE_SPEEDY!==""?process.env.SC_DISABLE_SPEEDY==="false"?!1:process.env.SC_DISABLE_SPEEDY:!1),nq={},vm=Object.freeze([]),ya=Object.freeze({});function KD(e,t,n){return n===void 0&&(n=ya),e.theme!==n.theme&&e.theme||t||n.theme}var ZD=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],rq=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,iq=/(^-|-$)/g;function JD(e){return e.replace(rq,"-").replace(iq,"")}var oq=/(a)(d)/gi,Rf=52,KC=function(e){return String.fromCharCode(e+(e>25?39:97))};function fb(e){var t="",n;for(n=Math.abs(e);n>Rf;n=n/Rf|0)t=KC(n%Rf)+t;return(KC(n%Rf)+t).replace(oq,"$1-$2")}var tL=5381,cl=function(e,t){for(var n=t.length;n;)e=e*33^t.charCodeAt(--n);return e},eL=function(e){return cl(tL,e)};function mA(e){return fb(eL(e)>>>0)}function sq(e){return e.displayName||e.name||"Component"}function vA(e){return typeof e=="string"&&!0}function aq(e){return vA(e)?"styled.".concat(e):"Styled(".concat(sq(e),")")}var Df,nL=typeof Symbol=="function"&&Symbol.for,rL=nL?Symbol.for("react.memo"):60115,lq=nL?Symbol.for("react.forward_ref"):60112,cq={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},uq={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},dq={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},iL={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},hq=(Df={},Df[lq]=dq,Df[rL]=iL,Df);function fq(e){var t="type"in e&&e.type.$$typeof;return t===rL}function ZC(e){return fq(e)?iL:"$$typeof"in e?hq[e.$$typeof]:cq}var pq=Object.defineProperty,gq=Object.getOwnPropertyNames,JC=Object.getOwnPropertySymbols,mq=Object.getOwnPropertyDescriptor,vq=Object.getPrototypeOf,tk=Object.prototype;function oL(e,t,n){if(typeof t!="string"){if(tk){var r=vq(t);r&&r!==tk&&oL(e,r,n)}var i=gq(t);JC&&(i=i.concat(JC(t)));for(var o=ZC(e),s=ZC(t),a=0;a<i.length;++a){var l=i[a];if(!(l in uq)&&!(n&&n[l])&&!(s&&l in s)&&!(o&&l in o)){var c=mq(t,l);try{pq(e,l,c)}catch(u){}}}}return e}function yA(e){return typeof e=="object"&&"styledComponentId"in e}function yq(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(Boolean).join(" ")}function Wd(e){return e!==null&&typeof e=="object"&&(!e.constructor||e.constructor.name==="Object")&&(e.toString?e.toString():Object.prototype.toString.call(e))==="[object Object]"&&!("props"in e&&(e.$$typeof||e.constructor===void 0))}function pb(e,t,n){if(n===void 0&&(n=!1),!n&&!Wd(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=pb(e[r],t[r]);else if(Wd(t))for(var r in t)e[r]=pb(e[r],t[r]);return e}function xq(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,i=t;r<i.length;r++){var o=i[r];pb(e,o,!0)}return e}function Dh(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var bq=function(e){return new _q(e)},ek=1<<9,_q=function(){function e(t){this.groupSizes=new Uint32Array(ek),this.length=ek,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r<t;r++)n+=this.groupSizes[r];return n},e.prototype.insertRules=function(t,n){if(t>=this.groupSizes.length){for(var r=this.groupSizes,i=r.length,o=i;t>=o;)if(o<<=1,o<0)throw Dh(16,"".concat(t));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var s=i;s<o;s++)this.groupSizes[s]=0}var a=this.indexOfGroup(t+1);if(Array.isArray(n))for(var s=0,l=n.length;s<l;s++)this.tag.insertRule(a,n[s])&&(this.groupSizes[t]++,a++);else this.tag.insertRule(a,n)&&this.groupSizes[t]++},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],r=this.indexOfGroup(t),i=r+n;this.groupSizes[t]=0;for(var o=r;o<i;o++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],i=this.indexOfGroup(t),o=i+r,s=i;s<o;s++)n+="".concat(this.tag.getRule(s)).concat(pA);return n},e}(),og=new Map,ym=new Map,R1=1,Lf=function(e){if(og.has(e))return og.get(e);for(;ym.has(R1);)R1++;var t=R1++;return og.set(e,t),ym.set(t,e),t},wq=function(e){return ym.get(e)},Aq=function(e,t){og.set(e,t),ym.set(t,e)},Sq="style[".concat(yc,"][").concat(QD,'="').concat(K0,'"]'),Eq=new RegExp("^".concat(yc,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Cq=function(e){for(var t=e.getTag(),n=t.length,r="",i=function(s){var a=wq(s);if(a===void 0)return"continue";var l=e.names.get(a),c=t.getGroup(s);if(l===void 0||c.length===0)return"continue";var u="".concat(yc,".g").concat(s,'[id="').concat(a,'"]'),d="";l!==void 0&&l.forEach(function(h){h.length>0&&(d+="".concat(h,","))}),r+="".concat(c).concat(u,'{content:"').concat(d,'"}').concat(pA)},o=0;o<n;o++)i(o);return r},kq=function(e,t,n){for(var r=n.split(","),i,o=0,s=r.length;o<s;o++)(i=r[o])&&e.registerName(t,i)},Tq=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(pA),i=[],o=0,s=r.length;o<s;o++){var a=r[o].trim();if(!!a){var l=a.match(Eq);if(l){var c=parseInt(l[1],10)|0,u=l[2];c!==0&&(Aq(u,c),kq(e,u,l[3]),e.getTag().insertRules(c,i)),i.length=0}else i.push(a)}}},Mq=function(e){for(var t=document.querySelectorAll(Sq),n=0,r=t.length;n<r;n++){var i=t[n];i&&i.getAttribute(yc)!==XD&&(Tq(e,i),i.parentNode&&i.parentNode.removeChild(i))}};function $q(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Pq=1,Oq=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&r.nodeType===Pq&&r.hasAttribute(yc))return r}},sL=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=Oq(n),o=i!==void 0?i.nextSibling:null;r.setAttribute(yc,XD),r.setAttribute(QD,K0);var s=$q();return s&&r.setAttribute("nonce",s),n.insertBefore(r,o),r},Rq=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var i=t[n];if(i.ownerNode===e)return i}throw Dh(17)},Dq=function(e){var t=e.isServer,n=e.useCSSOMInjection,r=e.target;return t?new Nq(r):n?new Lq(r):new Iq(r)},Lq=function(){function e(t){var n=this.element=sL(t);n.appendChild(document.createTextNode("")),this.sheet=Rq(n),this.length=0}return e.prototype.insertRule=function(t,n){try{return this.sheet.insertRule(n,t),this.length++,!0}catch(r){return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var n=this.sheet.cssRules[t];return n!==void 0&&typeof n.cssText=="string"?n.cssText:""},e}(),Iq=function(){function e(t){var n=this.element=sL(t);this.nodes=n.childNodes,this.length=0}return e.prototype.insertRule=function(t,n){if(t<=this.length&&t>=0){var r=document.createTextNode(n),i=this.nodes[t];return this.element.insertBefore(r,i||null),this.length++,!0}else return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e}(),Nq=function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,n){return t<=this.length?(this.rules.splice(t,0,n),this.length++,!0):!1},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e}(),nk=gA,Fq={isServer:!gA,useCSSOMInjection:!eq},xm=function(){function e(t,n,r){t===void 0&&(t=ya),n===void 0&&(n={}),this.options=sn(sn({},Fq),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&gA&&nk&&(nk=!1,Mq(this))}return e.registerId=function(t){return Lf(t)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(sn(sn({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=bq(Dq(this.options)))},e.prototype.hasNameForId=function(t,n){return this.names.has(t)&&this.names.get(t).has(n)},e.prototype.registerName=function(t,n){if(Lf(t),this.names.has(t))this.names.get(t).add(n);else{var r=new Set;r.add(n),this.names.set(t,r)}},e.prototype.insertRules=function(t,n,r){this.registerName(t,n),this.getTag().insertRules(Lf(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Lf(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e.prototype.toString=function(){return Cq(this)},e}(),zq=/^\s*\/\/.*$/gm,Bq=[":","[",".","#"];function Vq(e,t){return e.map(function(n,r){return t(n,r,e,t)}).filter(Boolean)}function aL(e,t){return e.map(function(n){return n.type==="rule"&&(n.value="".concat(t," ").concat(n.value),n.value=n.value.replaceAll(",",",".concat(t," ")),n.props=n.props.map(function(r){return"".concat(t," ").concat(r)})),Array.isArray(n.children)&&(n.children=aL(n.children,t)),n})}function jq(e){var t=e===void 0?ya:e,n=t.options,r=n===void 0?ya:n,i=t.plugins,o=i===void 0?vm:i,s,a,l,c,u=function(f,p,g){return(p===0?!Bq.includes(g[a.length]):!0)&&!g.match(c)?".".concat(s):f},d=function(f){if(f.type===G0&&f.value.includes("&")){var p=f.props;p[0]=p[0].replace(l,u)}},h=function(f,p,g,y){p===void 0&&(p=""),g===void 0&&(g=""),y===void 0&&(y="&");var m=f.replace(zq,"");s=y,a=p,l=new RegExp("\\".concat(a,"\\b"),"g"),c=new RegExp("(\\".concat(a,"\\b){2,}"));var x=o.slice();(r.prefix||r.prefix===void 0)&&x.unshift(JG),x.push(d,KG);var b=XG(g||p?"".concat(g," ").concat(p," { ").concat(m," }"):m);return r.namespace&&(b=aL(b,r.namespace)),Vq(b,ZG(x))};return h.hash=o.length?o.reduce(function(f,p){return p.name||Dh(15),cl(f,p.name)},tL).toString():"",h}var xA=Z.createContext({shouldForwardProp:void 0,styleSheet:void 0});xA.Consumer;var lL=Z.createContext(void 0);lL.Consumer;var Hq=new xm,gb=jq();function Uq(){return v.exports.useContext(xA).shouldForwardProp}function cL(){return v.exports.useContext(xA).styleSheet||Hq}function uL(){return v.exports.useContext(lL)||gb}var dL=function(){function e(t,n){var r=this;this.inject=function(i,o){o===void 0&&(o=gb);var s=r.name+o.hash;i.hasNameForId(r.id,s)||i.insertRules(r.id,s,o(r.rules,s,"@keyframes"))},this.toString=function(){throw Dh(12,String(r.name))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n}return e.prototype.getName=function(t){return t===void 0&&(t=gb),this.name+t.hash},e}();function Wq(e,t){return t==null||typeof t=="boolean"||t===""?"":typeof t=="number"&&t!==0&&!(e in tq)?"".concat(t,"px"):String(t).trim()}var Yq=/[A-Z]/,Gq=/[A-Z]/g,qq=/^ms-/,Xq=function(e){return"-".concat(e.toLowerCase())};function rk(e){return Yq.test(e)&&!e.startsWith("--")?e.replace(Gq,Xq).replace(qq,"-ms-"):e}function Z0(e){return typeof e=="function"}function Qq(e){return typeof e=="function"&&!(e.prototype&&e.prototype.isReactComponent)}var hL=function(e){return e==null||e===!1||e===""},fL=function(e,t){var n=[];for(var r in e)!e.hasOwnProperty(r)||hL(e[r])||(Array.isArray(e[r])&&e[r].isCss||Z0(e[r])?n.push("".concat(rk(r),":"),e[r],";"):Wd(e[r])?n.push.apply(n,fL(e[r],r)):n.push("".concat(rk(r),": ").concat(Wq(r,e[r]),";")));return t?Ql(Ql(["".concat(t," {")],n,!0),["}"],!1):n};function Jo(e,t,n,r){if(Array.isArray(e)){for(var i=[],o=0,s=e.length,a=void 0;o<s;o+=1)a=Jo(e[o],t,n,r),a.length!==0&&i.push.apply(i,a);return i}if(hL(e))return[];if(yA(e))return[".".concat(e.styledComponentId)];if(Z0(e))if(Qq(e)&&t){var l=e,a=l(t);return Jo(a,t,n,r)}else return[e];return e instanceof dL?n?(e.inject(n,r),[e.getName(r)]):[e]:Wd(e)?fL(e):[e.toString()]}function pL(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Z0(n)&&!yA(n))return!1}return!0}var Kq=eL(K0),Zq=function(){function e(t,n,r){this.names=[],this.rules=t,this.staticRulesId="",this.isStatic=(r===void 0||r.isStatic)&&pL(t),this.componentId=n,this.baseHash=cl(Kq,n),this.baseStyle=r,xm.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,r){var i=this.componentId;if(this.names.length=0,this.baseStyle&&this.names.push(this.baseStyle.generateAndInjectStyles(t,n,r)),this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(i,this.staticRulesId))this.names.push(this.staticRulesId);else{var o=Jo(this.rules,t,n,r).join(""),s=fb(cl(this.baseHash,o)>>>0);if(!n.hasNameForId(i,s)){var a=r(o,".".concat(s),void 0,i);n.insertRules(i,s,a)}this.names.push(s),this.staticRulesId=s}else{for(var l=this.rules.length,c=cl(this.baseHash,r.hash),u="",d=0;d<l;d++){var h=this.rules[d];if(typeof h=="string")u+=h;else if(h){var f=Jo(h,t,n,r),p=Array.isArray(f)?f.join(""):f;c=cl(c,p),u+=p}}if(u){var g=fb(c>>>0);if(!n.hasNameForId(i,g)){var y=r(u,".".concat(g),void 0,i);n.insertRules(i,g,y)}this.names.push(g)}}return this.names.join(" ")},e}(),bA=Z.createContext(void 0);bA.Consumer;var D1={};function Jq(e,t){var n=typeof e!="string"?"sc":JD(e);D1[n]=(D1[n]||0)+1;var r="".concat(n,"-").concat(mA(K0+n+D1[n]));return t?"".concat(t,"-").concat(r):r}function tX(e,t,n,r){var i=cL(),o=uL(),s=e.generateAndInjectStyles(t?ya:n,i,o);return s}function eX(e,t,n,r){var i=e.attrs,o=e.componentStyle,s=e.defaultProps,a=e.foldedComponentIds,l=e.styledComponentId,c=e.target,u=Uq(),d=e.shouldForwardProp||u,h=KD(t,v.exports.useContext(bA),s)||ya,f=i.reduce(function(_,w){var A=typeof w=="function"?w(_):w;for(var S in A)_[S]=S==="className"?yq(_[S],A[S]):S==="style"?sn(sn({},_[S]),A[S]):A[S];return _},sn(sn({},t),{theme:h})),p=tX(o,r,f),g=n,y=f.as||c,m=vA(y),x={};for(var b in f)f[b]===void 0||b[0]==="$"||b==="as"||b==="theme"||(b==="forwardedAs"?x.as=f.forwardedAs:(!d||d(b,y))&&(x[b]=f[b]));return x[m&&ZD.indexOf(y)===-1?"class":"className"]=a.concat(l,p!==l?p:"",f.className||"").filter(Boolean).join(" "),x.ref=g,v.exports.createElement(y,x)}function nX(e,t,n){var r=yA(e),i=e,o=!vA(e),s=t.attrs,a=s===void 0?vm:s,l=t.componentId,c=l===void 0?Jq(t.displayName,t.parentComponentId):l,u=t.displayName,d=u===void 0?aq(e):u,h=t.displayName&&t.componentId?"".concat(JD(t.displayName),"-").concat(t.componentId):t.componentId||c,f=r&&i.attrs?i.attrs.concat(a).filter(Boolean):a,p=t.shouldForwardProp;if(r&&i.shouldForwardProp){var g=i.shouldForwardProp;if(t.shouldForwardProp){var y=t.shouldForwardProp;p=function(A,S){return g(A,S)&&y(A,S)}}else p=g}var m=new Zq(n,h,r?i.componentStyle:void 0),x=m.isStatic&&a.length===0;function b(A,S){return eX(_,A,S,x)}b.displayName=d;var _=Z.forwardRef(b);if(_.attrs=f,_.componentStyle=m,_.displayName=d,_.shouldForwardProp=p,_.foldedComponentIds=r?i.foldedComponentIds.concat(i.styledComponentId):vm,_.styledComponentId=h,_.target=r?i.target:e,Object.defineProperty(_,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(A){this._foldedDefaultProps=r?xq({},i.defaultProps,A):A}}),_.toString=function(){return".".concat(_.styledComponentId)},o){var w=e;oL(_,w,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0})}return _}function ik(e,t){for(var n=[e[0]],r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n}var ok=function(e){return Object.assign(e,{isCss:!0})};function _t(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Z0(e)||Wd(e)){var r=e;return ok(Jo(ik(vm,Ql([r],t,!0))))}var i=e;return t.length===0&&i.length===1&&typeof i[0]=="string"?Jo(i):ok(Jo(ik(i,t)))}function mb(e,t,n){if(n===void 0&&(n=ya),!t)throw Dh(1,t);var r=function(i){for(var o=[],s=1;s<arguments.length;s++)o[s-1]=arguments[s];return e(t,n,_t.apply(void 0,Ql([i],o,!1)))};return r.attrs=function(i){return mb(e,t,sn(sn({},n),{attrs:Array.prototype.concat(n.attrs,i).filter(Boolean)}))},r.withConfig=function(i){return mb(e,t,sn(sn({},n),i))},r}var gL=function(e){return mb(nX,e)},z=gL;ZD.forEach(function(e){z[e]=gL(e)});var rX=function(){function e(t,n){this.rules=t,this.componentId=n,this.isStatic=pL(t),xm.registerId(this.componentId+1)}return e.prototype.createStyles=function(t,n,r,i){var o=Jo(this.rules,n,r,i),s=i(o.join(""),""),a=this.componentId+t;r.insertRules(a,a,s)},e.prototype.removeStyles=function(t,n){n.clearRules(this.componentId+t)},e.prototype.renderStyles=function(t,n,r,i){t>2&&xm.registerId(this.componentId+t),this.removeStyles(t,r),this.createStyles(t,n,r,i)},e}();function mL(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=_t.apply(void 0,Ql([e],t,!1)),i="sc-global-".concat(mA(JSON.stringify(r))),o=new rX(r,i),s=function(l){var c=cL(),u=uL(),d=Z.useContext(bA),h=Z.useRef(c.allocateGSInstance(i)),f=h.current;return c.server&&a(f,l,c,d,u),(Z.useInsertionEffect||Z.useLayoutEffect)(function(){if(!c.server)return a(f,l,c,d,u),function(){return o.removeStyles(f,c)}},[f,l,c,d,u]),null};function a(l,c,u,d,h){if(o.isStatic)o.renderStyles(l,nq,u,h);else{var f=sn(sn({},c),{theme:KD(c,d,s.defaultProps)});o.renderStyles(l,f,u,h)}}return Z.memo(s)}function J0(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=_t.apply(void 0,Ql([e],t,!1)).join(""),i=mA(r);return new dL(i,r)}var vb=function(e,t){return vb=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},vb(e,t)};function vL(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");vb(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var X=function(){return X=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},X.apply(this,arguments)};function gi(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Re(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o}function ai(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var iX="production",yL=typeof process>"u"||process.env===void 0?iX:"production",yi=function(e){return{isEnabled:function(t){return e.some(function(n){return!!t[n]})}}},Yd={measureLayout:yi(["layout","layoutId","drag"]),animation:yi(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:yi(["exit"]),drag:yi(["drag","dragControls"]),focus:yi(["whileFocus"]),hover:yi(["whileHover","onHoverStart","onHoverEnd"]),tap:yi(["whileTap","onTap","onTapStart","onTapCancel"]),pan:yi(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:yi(["whileInView","onViewportEnter","onViewportLeave"])};function oX(e){for(var t in e)e[t]!==null&&(t==="projectionNodeConstructor"?Yd.projectionNodeConstructor=e[t]:Yd[t].Component=e[t])}var sX=function(){},bm=function(){},xL=v.exports.createContext({strict:!1}),bL=Object.keys(Yd),aX=bL.length;function lX(e,t,n){var r=[],i=v.exports.useContext(xL);if(!t)return null;yL!=="production"&&n&&i.strict;for(var o=0;o<aX;o++){var s=bL[o],a=Yd[s],l=a.isEnabled,c=a.Component;l(e)&&c&&r.push(O(c,{...X({key:s},e,{visualElement:t})}))}return r}var _A=v.exports.createContext({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),tv=v.exports.createContext({});function cX(){return v.exports.useContext(tv).visualElement}var ev=v.exports.createContext(null),xc=typeof document<"u",sk=xc?v.exports.useLayoutEffect:v.exports.useEffect,yb={current:null},_L=!1;function uX(){if(_L=!0,!!xc)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return yb.current=e.matches};e.addListener(t),t()}else yb.current=!1}function dX(){!_L&&uX();var e=Re(v.exports.useState(yb.current),1),t=e[0];return t}function hX(){var e=dX(),t=v.exports.useContext(_A).reducedMotion;return t==="never"?!1:t==="always"?!0:e}function fX(e,t,n,r){var i=v.exports.useContext(xL),o=cX(),s=v.exports.useContext(ev),a=hX(),l=v.exports.useRef(void 0);r||(r=i.renderer),!l.current&&r&&(l.current=r(e,{visualState:t,parent:o,props:n,presenceId:s==null?void 0:s.id,blockInitialAnimation:(s==null?void 0:s.initial)===!1,shouldReduceMotion:a}));var c=l.current;return sk(function(){c==null||c.syncRender()}),v.exports.useEffect(function(){var u;(u=c==null?void 0:c.animationState)===null||u===void 0||u.animateChanges()}),sk(function(){return function(){return c==null?void 0:c.notifyUnmount()}},[]),c}function ul(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function pX(e,t,n){return v.exports.useCallback(function(r){var i;r&&((i=e.mount)===null||i===void 0||i.call(e,r)),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):ul(n)&&(n.current=r))},[t])}function wL(e){return Array.isArray(e)}function Pr(e){return typeof e=="string"||wL(e)}function gX(e){var t={};return e.forEachValue(function(n,r){return t[r]=n.get()}),t}function mX(e){var t={};return e.forEachValue(function(n,r){return t[r]=n.getVelocity()}),t}function AL(e,t,n,r,i){var o;return r===void 0&&(r={}),i===void 0&&(i={}),typeof t=="function"&&(t=t(n!=null?n:e.custom,r,i)),typeof t=="string"&&(t=(o=e.variants)===null||o===void 0?void 0:o[t]),typeof t=="function"&&(t=t(n!=null?n:e.custom,r,i)),t}function nv(e,t,n){var r=e.getProps();return AL(r,t,n!=null?n:r.custom,gX(e),mX(e))}function rv(e){var t;return typeof((t=e.animate)===null||t===void 0?void 0:t.start)=="function"||Pr(e.initial)||Pr(e.animate)||Pr(e.whileHover)||Pr(e.whileDrag)||Pr(e.whileTap)||Pr(e.whileFocus)||Pr(e.exit)}function SL(e){return Boolean(rv(e)||e.variants)}function vX(e,t){if(rv(e)){var n=e.initial,r=e.animate;return{initial:n===!1||Pr(n)?n:void 0,animate:Pr(r)?r:void 0}}return e.inherit!==!1?t:{}}function yX(e){var t=vX(e,v.exports.useContext(tv)),n=t.initial,r=t.animate;return v.exports.useMemo(function(){return{initial:n,animate:r}},[ak(n),ak(r)])}function ak(e){return Array.isArray(e)?e.join(" "):e}function iv(e){var t=v.exports.useRef(null);return t.current===null&&(t.current=e()),t.current}var Vu={hasAnimatedSinceResize:!0,hasEverUpdated:!1},xX=1;function bX(){return iv(function(){if(Vu.hasEverUpdated)return xX++})}var EL=v.exports.createContext({}),CL=v.exports.createContext({});function _X(e,t,n,r){var i,o=t.layoutId,s=t.layout,a=t.drag,l=t.dragConstraints,c=t.layoutScroll,u=v.exports.useContext(CL);!r||!n||(n==null?void 0:n.projection)||(n.projection=new r(e,n.getLatestValues(),(i=n.parent)===null||i===void 0?void 0:i.projection),n.projection.setOptions({layoutId:o,layout:s,alwaysMeasureLayout:Boolean(a)||l&&ul(l),visualElement:n,scheduleRender:function(){return n.scheduleRender()},animationType:typeof s=="string"?s:"both",initialPromotionConfig:u,layoutScroll:c}))}var wX=function(e){vL(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},t.prototype.componentDidUpdate=function(){},t.prototype.updateProps=function(){var n=this.props,r=n.visualElement,i=n.props;r&&r.setProps(i)},t.prototype.render=function(){return this.props.children},t}(Z.Component);function AX(e){var t=e.preloadedFeatures,n=e.createVisualElement,r=e.projectionNodeConstructor,i=e.useRender,o=e.useVisualState,s=e.Component;t&&oX(t);function a(l,c){var u=SX(l);l=X(X({},l),{layoutId:u});var d=v.exports.useContext(_A),h=null,f=yX(l),p=d.isStatic?void 0:bX(),g=o(l,d.isStatic);return!d.isStatic&&xc&&(f.visualElement=fX(s,g,X(X({},d),l),n),_X(p,l,f.visualElement,r||Yd.projectionNodeConstructor),h=lX(l,f.visualElement,t)),Ae(wX,{visualElement:f.visualElement,props:X(X({},d),l),children:[h,O(tv.Provider,{value:f,children:i(s,l,p,pX(g,f.visualElement,c),g,d.isStatic,f.visualElement)})]})}return v.exports.forwardRef(a)}function SX(e){var t,n=e.layoutId,r=(t=v.exports.useContext(EL))===null||t===void 0?void 0:t.id;return r&&n!==void 0?r+"-"+n:n}function EX(e){function t(r,i){return i===void 0&&(i={}),AX(e(r,i))}if(typeof Proxy>"u")return t;var n=new Map;return new Proxy(t,{get:function(r,i){return n.has(i)||n.set(i,t(i)),n.get(i)}})}var CX=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function wA(e){return typeof e!="string"||e.includes("-")?!1:!!(CX.indexOf(e)>-1||/[A-Z]/.test(e))}var _m={};function kX(e){Object.assign(_m,e)}var xb=["","X","Y","Z"],TX=["translate","scale","rotate","skew"],Gd=["transformPerspective","x","y","z"];TX.forEach(function(e){return xb.forEach(function(t){return Gd.push(e+t)})});function MX(e,t){return Gd.indexOf(e)-Gd.indexOf(t)}var $X=new Set(Gd);function Lh(e){return $X.has(e)}var PX=new Set(["originX","originY","originZ"]);function kL(e){return PX.has(e)}function TL(e,t){var n=t.layout,r=t.layoutId;return Lh(e)||kL(e)||(n||r!==void 0)&&(!!_m[e]||e==="opacity")}var qi=function(e){return Boolean(e!==null&&typeof e=="object"&&e.getVelocity)},OX={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function RX(e,t,n,r){var i=e.transform,o=e.transformKeys,s=t.enableHardwareAcceleration,a=s===void 0?!0:s,l=t.allowTransformNone,c=l===void 0?!0:l,u="";o.sort(MX);for(var d=!1,h=o.length,f=0;f<h;f++){var p=o[f];u+="".concat(OX[p]||p,"(").concat(i[p],") "),p==="z"&&(d=!0)}return!d&&a?u+="translateZ(0)":u=u.trim(),r?u=r(i,n?"":u):c&&n&&(u="none"),u}function DX(e){var t=e.originX,n=t===void 0?"50%":t,r=e.originY,i=r===void 0?"50%":r,o=e.originZ,s=o===void 0?0:o;return"".concat(n," ").concat(i," ").concat(s)}function ML(e){return e.startsWith("--")}var LX=function(e,t){return t&&typeof e=="number"?t.transform(e):e};const $L=(e,t)=>n=>Math.max(Math.min(n,t),e),ju=e=>e%1?Number(e.toFixed(5)):e,qd=/(-)?([\d]*\.?[\d])+/g,bb=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,IX=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function Ih(e){return typeof e=="string"}const Ea={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Hu=Object.assign(Object.assign({},Ea),{transform:$L(0,1)}),If=Object.assign(Object.assign({},Ea),{default:1}),Nh=e=>({test:t=>Ih(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),fo=Nh("deg"),li=Nh("%"),ot=Nh("px"),NX=Nh("vh"),FX=Nh("vw"),lk=Object.assign(Object.assign({},li),{parse:e=>li.parse(e)/100,transform:e=>li.transform(e*100)}),AA=(e,t)=>n=>Boolean(Ih(n)&&IX.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),PL=(e,t,n)=>r=>{if(!Ih(r))return r;const[i,o,s,a]=r.match(qd);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},Zs={test:AA("hsl","hue"),parse:PL("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+li.transform(ju(t))+", "+li.transform(ju(n))+", "+ju(Hu.transform(r))+")"},zX=$L(0,255),L1=Object.assign(Object.assign({},Ea),{transform:e=>Math.round(zX(e))}),$o={test:AA("rgb","red"),parse:PL("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+L1.transform(e)+", "+L1.transform(t)+", "+L1.transform(n)+", "+ju(Hu.transform(r))+")"};function BX(e){let t="",n="",r="",i="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),i=e.substr(4,1),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const _b={test:AA("#"),parse:BX,transform:$o.transform},pn={test:e=>$o.test(e)||_b.test(e)||Zs.test(e),parse:e=>$o.test(e)?$o.parse(e):Zs.test(e)?Zs.parse(e):_b.parse(e),transform:e=>Ih(e)?e:e.hasOwnProperty("red")?$o.transform(e):Zs.transform(e)},OL="${c}",RL="${n}";function VX(e){var t,n,r,i;return isNaN(e)&&Ih(e)&&((n=(t=e.match(qd))===null||t===void 0?void 0:t.length)!==null&&n!==void 0?n:0)+((i=(r=e.match(bb))===null||r===void 0?void 0:r.length)!==null&&i!==void 0?i:0)>0}function DL(e){typeof e=="number"&&(e=`${e}`);const t=[];let n=0;const r=e.match(bb);r&&(n=r.length,e=e.replace(bb,OL),t.push(...r.map(pn.parse)));const i=e.match(qd);return i&&(e=e.replace(qd,RL),t.push(...i.map(Ea.parse))),{values:t,numColors:n,tokenised:e}}function LL(e){return DL(e).values}function IL(e){const{values:t,numColors:n,tokenised:r}=DL(e),i=t.length;return o=>{let s=r;for(let a=0;a<i;a++)s=s.replace(a<n?OL:RL,a<n?pn.transform(o[a]):ju(o[a]));return s}}const jX=e=>typeof e=="number"?0:e;function HX(e){const t=LL(e);return IL(e)(t.map(jX))}const Xi={test:VX,parse:LL,createTransformer:IL,getAnimatableNone:HX},UX=new Set(["brightness","contrast","saturate","opacity"]);function WX(e){let[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(qd)||[];if(!r)return e;const i=n.replace(r,"");let o=UX.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const YX=/([a-z-]*)\(.*?\)/g,wb=Object.assign(Object.assign({},Xi),{getAnimatableNone:e=>{const t=e.match(YX);return t?t.map(WX).join(" "):e}});var ck=X(X({},Ea),{transform:Math.round}),NL={borderWidth:ot,borderTopWidth:ot,borderRightWidth:ot,borderBottomWidth:ot,borderLeftWidth:ot,borderRadius:ot,radius:ot,borderTopLeftRadius:ot,borderTopRightRadius:ot,borderBottomRightRadius:ot,borderBottomLeftRadius:ot,width:ot,maxWidth:ot,height:ot,maxHeight:ot,size:ot,top:ot,right:ot,bottom:ot,left:ot,padding:ot,paddingTop:ot,paddingRight:ot,paddingBottom:ot,paddingLeft:ot,margin:ot,marginTop:ot,marginRight:ot,marginBottom:ot,marginLeft:ot,rotate:fo,rotateX:fo,rotateY:fo,rotateZ:fo,scale:If,scaleX:If,scaleY:If,scaleZ:If,skew:fo,skewX:fo,skewY:fo,distance:ot,translateX:ot,translateY:ot,translateZ:ot,x:ot,y:ot,z:ot,perspective:ot,transformPerspective:ot,opacity:Hu,originX:lk,originY:lk,originZ:ot,zIndex:ck,fillOpacity:Hu,strokeOpacity:Hu,numOctaves:ck};function SA(e,t,n,r){var i,o=e.style,s=e.vars,a=e.transform,l=e.transformKeys,c=e.transformOrigin;l.length=0;var u=!1,d=!1,h=!0;for(var f in t){var p=t[f];if(ML(f)){s[f]=p;continue}var g=NL[f],y=LX(p,g);if(Lh(f)){if(u=!0,a[f]=y,l.push(f),!h)continue;p!==((i=g.default)!==null&&i!==void 0?i:0)&&(h=!1)}else kL(f)?(c[f]=y,d=!0):o[f]=y}u?o.transform=RX(e,n,h,r):r?o.transform=r({},""):!t.transform&&o.transform&&(o.transform="none"),d&&(o.transformOrigin=DX(c))}var EA=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function FL(e,t,n){for(var r in t)!qi(t[r])&&!TL(r,n)&&(e[r]=t[r])}function GX(e,t,n){var r=e.transformTemplate;return v.exports.useMemo(function(){var i=EA();SA(i,t,{enableHardwareAcceleration:!n},r);var o=i.vars,s=i.style;return X(X({},o),s)},[t])}function qX(e,t,n){var r=e.style||{},i={};return FL(i,r,e),Object.assign(i,GX(e,t,n)),e.transformValues&&(i=e.transformValues(i)),i}function XX(e,t,n){var r={},i=qX(e,t,n);return Boolean(e.drag)&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":"pan-".concat(e.drag==="x"?"y":"x")),r.style=i,r}var QX=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover","whileInView","onViewportEnter","onViewportLeave","viewport","layoutScroll"]);function wm(e){return QX.has(e)}var zL=function(e){return!wm(e)};function KX(e){!e||(zL=function(t){return t.startsWith("on")?!wm(t):e(t)})}try{KX(require("@emotion/is-prop-valid").default)}catch(e){}function ZX(e,t,n){var r={};for(var i in e)(zL(i)||n===!0&&wm(i)||!t&&!wm(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function uk(e,t,n){return typeof e=="string"?e:ot.transform(t+n*e)}function JX(e,t,n){var r=uk(t,e.x,e.width),i=uk(n,e.y,e.height);return"".concat(r," ").concat(i)}var tQ={offset:"stroke-dashoffset",array:"stroke-dasharray"},eQ={offset:"strokeDashoffset",array:"strokeDasharray"};function nQ(e,t,n,r,i){n===void 0&&(n=1),r===void 0&&(r=0),i===void 0&&(i=!0),e.pathLength=1;var o=i?tQ:eQ;e[o.offset]=ot.transform(-r);var s=ot.transform(t),a=ot.transform(n);e[o.array]="".concat(s," ").concat(a)}function CA(e,t,n,r){var i=t.attrX,o=t.attrY,s=t.originX,a=t.originY,l=t.pathLength,c=t.pathSpacing,u=c===void 0?1:c,d=t.pathOffset,h=d===void 0?0:d,f=gi(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]);SA(e,f,n,r),e.attrs=e.style,e.style={};var p=e.attrs,g=e.style,y=e.dimensions;p.transform&&(y&&(g.transform=p.transform),delete p.transform),y&&(s!==void 0||a!==void 0||g.transform)&&(g.transformOrigin=JX(y,s!==void 0?s:.5,a!==void 0?a:.5)),i!==void 0&&(p.x=i),o!==void 0&&(p.y=o),l!==void 0&&nQ(p,l,u,h,!1)}var BL=function(){return X(X({},EA()),{attrs:{}})};function rQ(e,t){var n=v.exports.useMemo(function(){var i=BL();return CA(i,t,{enableHardwareAcceleration:!1},e.transformTemplate),X(X({},i.attrs),{style:X({},i.style)})},[t]);if(e.style){var r={};FL(r,e.style,e),n.style=X(X({},r),n.style)}return n}function iQ(e){e===void 0&&(e=!1);var t=function(n,r,i,o,s,a){var l=s.latestValues,c=wA(n)?rQ:XX,u=c(r,l,a),d=ZX(r,typeof n=="string",e),h=X(X(X({},d),u),{ref:o});return i&&(h["data-projection-id"]=i),v.exports.createElement(n,h)};return t}var oQ=/([a-z])([A-Z])/g,sQ="$1-$2",VL=function(e){return e.replace(oQ,sQ).toLowerCase()};function jL(e,t,n,r){var i=t.style,o=t.vars;Object.assign(e.style,i,r&&r.getProjectionStyles(n));for(var s in o)e.style.setProperty(s,o[s])}var HL=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function UL(e,t,n,r){jL(e,t,void 0,r);for(var i in t.attrs)e.setAttribute(HL.has(i)?i:VL(i),t.attrs[i])}function kA(e){var t=e.style,n={};for(var r in t)(qi(t[r])||TL(r,e))&&(n[r]=t[r]);return n}function WL(e){var t=kA(e);for(var n in e)if(qi(e[n])){var r=n==="x"||n==="y"?"attr"+n.toUpperCase():n;t[r]=e[n]}return t}function TA(e){return typeof e=="object"&&typeof e.start=="function"}var Xd=function(e){return Array.isArray(e)},aQ=function(e){return Boolean(e&&typeof e=="object"&&e.mix&&e.toValue)},YL=function(e){return Xd(e)?e[e.length-1]||0:e};function sg(e){var t=qi(e)?e.get():e;return aQ(t)?t.toValue():t}function dk(e,t,n,r){var i=e.scrapeMotionValuesFromProps,o=e.createRenderState,s=e.onMount,a={latestValues:lQ(t,n,r,i),renderState:o()};return s&&(a.mount=function(l){return s(t,l,a)}),a}var GL=function(e){return function(t,n){var r=v.exports.useContext(tv),i=v.exports.useContext(ev);return n?dk(e,t,r,i):iv(function(){return dk(e,t,r,i)})}};function lQ(e,t,n,r){var i={},o=(n==null?void 0:n.initial)===!1,s=r(e);for(var a in s)i[a]=sg(s[a]);var l=e.initial,c=e.animate,u=rv(e),d=SL(e);t&&d&&!u&&e.inherit!==!1&&(l!=null||(l=t.initial),c!=null||(c=t.animate));var h=o||l===!1,f=h?c:l;if(f&&typeof f!="boolean"&&!TA(f)){var p=Array.isArray(f)?f:[f];p.forEach(function(g){var y=AL(e,g);if(!!y){var m=y.transitionEnd;y.transition;var x=gi(y,["transitionEnd","transition"]);for(var b in x){var _=x[b];if(Array.isArray(_)){var w=h?_.length-1:0;_=_[w]}_!==null&&(i[b]=_)}for(var b in m)i[b]=m[b]}})}return i}var cQ={useVisualState:GL({scrapeMotionValuesFromProps:WL,createRenderState:BL,onMount:function(e,t,n){var r=n.renderState,i=n.latestValues;try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch(o){r.dimensions={x:0,y:0,width:0,height:0}}CA(r,i,{enableHardwareAcceleration:!1},e.transformTemplate),UL(t,r)}})},uQ={useVisualState:GL({scrapeMotionValuesFromProps:kA,createRenderState:EA})};function dQ(e,t,n,r,i){var o=t.forwardMotionProps,s=o===void 0?!1:o,a=wA(e)?cQ:uQ;return X(X({},a),{preloadedFeatures:n,useRender:iQ(s),createVisualElement:r,projectionNodeConstructor:i,Component:e})}var jt;(function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"})(jt||(jt={}));function ov(e,t,n,r){return r===void 0&&(r={passive:!0}),e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n)}}function Ab(e,t,n,r){v.exports.useEffect(function(){var i=e.current;if(n&&i)return ov(i,t,n,r)},[e,t,n,r])}function hQ(e){var t=e.whileFocus,n=e.visualElement,r=function(){var o;(o=n.animationState)===null||o===void 0||o.setActive(jt.Focus,!0)},i=function(){var o;(o=n.animationState)===null||o===void 0||o.setActive(jt.Focus,!1)};Ab(n,"focus",t?r:void 0),Ab(n,"blur",t?i:void 0)}function qL(e){return typeof PointerEvent<"u"&&e instanceof PointerEvent?e.pointerType==="mouse":e instanceof MouseEvent}function XL(e){var t=!!e.touches;return t}function fQ(e){return function(t){var n=t instanceof MouseEvent,r=!n||n&&t.button===0;r&&e(t)}}var pQ={pageX:0,pageY:0};function gQ(e,t){t===void 0&&(t="page");var n=e.touches[0]||e.changedTouches[0],r=n||pQ;return{x:r[t+"X"],y:r[t+"Y"]}}function mQ(e,t){return t===void 0&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function MA(e,t){return t===void 0&&(t="page"),{point:XL(e)?gQ(e,t):mQ(e,t)}}var QL=function(e,t){t===void 0&&(t=!1);var n=function(r){return e(r,MA(r))};return t?fQ(n):n},vQ=function(){return xc&&window.onpointerdown===null},yQ=function(){return xc&&window.ontouchstart===null},xQ=function(){return xc&&window.onmousedown===null},bQ={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},_Q={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function KL(e){return vQ()?e:yQ()?_Q[e]:xQ()?bQ[e]:e}function Tl(e,t,n,r){return ov(e,KL(t),QL(n,t==="pointerdown"),r)}function Am(e,t,n,r){return Ab(e,KL(t),n&&QL(n,t==="pointerdown"),r)}function ZL(e){var t=null;return function(){var n=function(){t=null};return t===null?(t=e,n):!1}}var hk=ZL("dragHorizontal"),fk=ZL("dragVertical");function JL(e){var t=!1;if(e==="y")t=fk();else if(e==="x")t=hk();else{var n=hk(),r=fk();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function t6(){var e=JL(!0);return e?(e(),!1):!0}function pk(e,t,n){return function(r,i){var o;!qL(r)||t6()||((o=e.animationState)===null||o===void 0||o.setActive(jt.Hover,t),n==null||n(r,i))}}function wQ(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,i=e.visualElement;Am(i,"pointerenter",t||r?pk(i,!0,t):void 0,{passive:!t}),Am(i,"pointerleave",n||r?pk(i,!1,n):void 0,{passive:!n})}var e6=function(e,t){return t?e===t?!0:e6(e,t.parentElement):!1};function n6(e){return v.exports.useEffect(function(){return function(){return e()}},[])}const Sm=(e,t,n)=>Math.min(Math.max(n,e),t),I1=.001,AQ=.01,gk=10,SQ=.05,EQ=1;function CQ({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;sX(e<=gk*1e3);let s=1-t;s=Sm(SQ,EQ,s),e=Sm(AQ,gk,e/1e3),s<1?(i=c=>{const u=c*s,d=u*e,h=u-n,f=Sb(c,s),p=Math.exp(-d);return I1-h/f*p},o=c=>{const d=c*s*e,h=d*n+n,f=Math.pow(s,2)*Math.pow(c,2)*e,p=Math.exp(-d),g=Sb(Math.pow(c,2),s);return(-i(c)+I1>0?-1:1)*((h-f)*p)/g}):(i=c=>{const u=Math.exp(-c*e),d=(c-n)*e+1;return-I1+u*d},o=c=>{const u=Math.exp(-c*e),d=(n-c)*(e*e);return u*d});const a=5/e,l=TQ(i,o,a);if(e=e*1e3,isNaN(l))return{stiffness:100,damping:10,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:s*2*Math.sqrt(r*c),duration:e}}}const kQ=12;function TQ(e,t,n){let r=n;for(let i=1;i<kQ;i++)r=r-e(r)/t(r);return r}function Sb(e,t){return e*Math.sqrt(1-t*t)}const MQ=["duration","bounce"],$Q=["stiffness","damping","mass"];function mk(e,t){return t.some(n=>e[n]!==void 0)}function PQ(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!mk(e,$Q)&&mk(e,MQ)){const n=CQ(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function $A(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:i}=e,o=HD(e,["from","to","restSpeed","restDelta"]);const s={done:!1,value:t};let{stiffness:a,damping:l,mass:c,velocity:u,duration:d,isResolvedFromDuration:h}=PQ(o),f=vk,p=vk;function g(){const y=u?-(u/1e3):0,m=n-t,x=l/(2*Math.sqrt(a*c)),b=Math.sqrt(a/c)/1e3;if(i===void 0&&(i=Math.min(Math.abs(n-t)/100,.4)),x<1){const _=Sb(b,x);f=w=>{const A=Math.exp(-x*b*w);return n-A*((y+x*b*m)/_*Math.sin(_*w)+m*Math.cos(_*w))},p=w=>{const A=Math.exp(-x*b*w);return x*b*A*(Math.sin(_*w)*(y+x*b*m)/_+m*Math.cos(_*w))-A*(Math.cos(_*w)*(y+x*b*m)-_*m*Math.sin(_*w))}}else if(x===1)f=_=>n-Math.exp(-b*_)*(m+(y+b*m)*_);else{const _=b*Math.sqrt(x*x-1);f=w=>{const A=Math.exp(-x*b*w),S=Math.min(_*w,300);return n-A*((y+x*b*m)*Math.sinh(S)+_*m*Math.cosh(S))/_}}}return g(),{next:y=>{const m=f(y);if(h)s.done=y>=d;else{const x=p(y)*1e3,b=Math.abs(x)<=r,_=Math.abs(n-m)<=i;s.done=b&&_}return s.value=s.done?n:m,s},flipTarget:()=>{u=-u,[t,n]=[n,t],g()}}}$A.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const vk=e=>0,Qd=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},he=(e,t,n)=>-n*e+n*t+e;function N1(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function yk({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=N1(l,a,e+1/3),o=N1(l,a,e),s=N1(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}const OQ=(e,t,n)=>{const r=e*e,i=t*t;return Math.sqrt(Math.max(0,n*(i-r)+r))},RQ=[_b,$o,Zs],xk=e=>RQ.find(t=>t.test(e)),r6=(e,t)=>{let n=xk(e),r=xk(t),i=n.parse(e),o=r.parse(t);n===Zs&&(i=yk(i),n=$o),r===Zs&&(o=yk(o),r=$o);const s=Object.assign({},i);return a=>{for(const l in s)l!=="alpha"&&(s[l]=OQ(i[l],o[l],a));return s.alpha=he(i.alpha,o.alpha,a),n.transform(s)}},Eb=e=>typeof e=="number",DQ=(e,t)=>n=>t(e(n)),sv=(...e)=>e.reduce(DQ);function i6(e,t){return Eb(e)?n=>he(e,t,n):pn.test(e)?r6(e,t):s6(e,t)}const o6=(e,t)=>{const n=[...e],r=n.length,i=e.map((o,s)=>i6(o,t[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}},LQ=(e,t)=>{const n=Object.assign(Object.assign({},e),t),r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=i6(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}};function bk(e){const t=Xi.parse(e),n=t.length;let r=0,i=0,o=0;for(let s=0;s<n;s++)r||typeof t[s]=="number"?r++:t[s].hue!==void 0?o++:i++;return{parsed:t,numNumbers:r,numRGB:i,numHSL:o}}const s6=(e,t)=>{const n=Xi.createTransformer(t),r=bk(e),i=bk(t);return r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers?sv(o6(r.parsed,i.parsed),n):s=>`${s>0?t:e}`},IQ=(e,t)=>n=>he(e,t,n);function NQ(e){if(typeof e=="number")return IQ;if(typeof e=="string")return pn.test(e)?r6:s6;if(Array.isArray(e))return o6;if(typeof e=="object")return LQ}function FQ(e,t,n){const r=[],i=n||NQ(e[0]),o=e.length-1;for(let s=0;s<o;s++){let a=i(e[s],e[s+1]);if(t){const l=Array.isArray(t)?t[s]:t;a=sv(l,a)}r.push(a)}return r}function zQ([e,t],[n]){return r=>n(Qd(e,t,r))}function BQ(e,t){const n=e.length,r=n-1;return i=>{let o=0,s=!1;if(i<=e[0]?s=!0:i>=e[r]&&(o=r-1,s=!0),!s){let l=1;for(;l<n&&!(e[l]>i||l===r);l++);o=l-1}const a=Qd(e[o],e[o+1],i);return t[o](a)}}function a6(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;bm(o===t.length),bm(!r||!Array.isArray(r)||r.length===o-1),e[0]>e[o-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const s=FQ(t,r,i),a=o===2?zQ(e,s):BQ(e,s);return n?l=>a(Sm(e[0],e[o-1],l)):a}const av=e=>t=>1-e(1-t),PA=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,VQ=e=>t=>Math.pow(t,e),l6=e=>t=>t*t*((e+1)*t-e),jQ=e=>{const t=l6(e);return n=>(n*=2)<1?.5*t(n):.5*(2-Math.pow(2,-10*(n-1)))},c6=1.525,HQ=4/11,UQ=8/11,WQ=9/10,OA=e=>e,RA=VQ(2),YQ=av(RA),u6=PA(RA),d6=e=>1-Math.sin(Math.acos(e)),DA=av(d6),GQ=PA(DA),LA=l6(c6),qQ=av(LA),XQ=PA(LA),QQ=jQ(c6),KQ=4356/361,ZQ=35442/1805,JQ=16061/1805,Em=e=>{if(e===1||e===0)return e;const t=e*e;return e<HQ?7.5625*t:e<UQ?9.075*t-9.9*e+3.4:e<WQ?KQ*t-ZQ*e+JQ:10.8*e*e-20.52*e+10.72},tK=av(Em),eK=e=>e<.5?.5*(1-Em(1-e*2)):.5*Em(e*2-1)+.5;function nK(e,t){return e.map(()=>t||u6).splice(0,e.length-1)}function rK(e){const t=e.length;return e.map((n,r)=>r!==0?r/(t-1):0)}function iK(e,t){return e.map(n=>n*t)}function ag({from:e=0,to:t=1,ease:n,offset:r,duration:i=300}){const o={done:!1,value:e},s=Array.isArray(t)?t:[e,t],a=iK(r&&r.length===s.length?r:rK(s),i);function l(){return a6(a,s,{ease:Array.isArray(n)?n:nK(s,n)})}let c=l();return{next:u=>(o.value=c(u),o.done=u>=i,o),flipTarget:()=>{s.reverse(),c=l()}}}function oK({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:i=.5,modifyTarget:o}){const s={done:!1,value:t};let a=n*e;const l=t+a,c=o===void 0?l:o(l);return c!==l&&(a=c-t),{next:u=>{const d=-a*Math.exp(-u/r);return s.done=!(d>i||d<-i),s.value=s.done?c:c+d,s},flipTarget:()=>{}}}const _k={keyframes:ag,spring:$A,decay:oK};function sK(e){if(Array.isArray(e.to))return ag;if(_k[e.type])return _k[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?ag:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?$A:ag}const h6=1/60*1e3,aK=typeof performance<"u"?()=>performance.now():()=>Date.now(),f6=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(aK()),h6);function lK(e){let t=[],n=[],r=0,i=!1,o=!1;const s=new WeakSet,a={schedule:(l,c=!1,u=!1)=>{const d=u&&i,h=d?t:n;return c&&s.add(l),h.indexOf(l)===-1&&(h.push(l),d&&i&&(r=t.length)),l},cancel:l=>{const c=n.indexOf(l);c!==-1&&n.splice(c,1),s.delete(l)},process:l=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let c=0;c<r;c++){const u=t[c];u(l),s.has(u)&&(a.schedule(u),e())}i=!1,o&&(o=!1,a.process(l))}};return a}const cK=40;let Cb=!0,Kd=!1,kb=!1;const Ml={delta:0,timestamp:0},Fh=["read","update","preRender","render","postRender"],lv=Fh.reduce((e,t)=>(e[t]=lK(()=>Kd=!0),e),{}),ci=Fh.reduce((e,t)=>{const n=lv[t];return e[t]=(r,i=!1,o=!1)=>(Kd||dK(),n.schedule(r,i,o)),e},{}),Jl=Fh.reduce((e,t)=>(e[t]=lv[t].cancel,e),{}),F1=Fh.reduce((e,t)=>(e[t]=()=>lv[t].process(Ml),e),{}),uK=e=>lv[e].process(Ml),p6=e=>{Kd=!1,Ml.delta=Cb?h6:Math.max(Math.min(e-Ml.timestamp,cK),1),Ml.timestamp=e,kb=!0,Fh.forEach(uK),kb=!1,Kd&&(Cb=!1,f6(p6))},dK=()=>{Kd=!0,Cb=!0,kb||f6(p6)},Cm=()=>Ml;function g6(e,t,n=0){return e-t-n}function hK(e,t,n=0,r=!0){return r?g6(t+-e,t,n):t-(e-t)+n}function fK(e,t,n,r){return r?e>=t+n:e<=-n}const pK=e=>{const t=({delta:n})=>e(n);return{start:()=>ci.update(t,!0),stop:()=>Jl.update(t)}};function m6(e){var t,n,{from:r,autoplay:i=!0,driver:o=pK,elapsed:s=0,repeat:a=0,repeatType:l="loop",repeatDelay:c=0,onPlay:u,onStop:d,onComplete:h,onRepeat:f,onUpdate:p}=e,g=HD(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:y}=g,m,x=0,b=g.duration,_,w=!1,A=!0,S;const E=sK(g);!((n=(t=E).needsInterpolation)===null||n===void 0)&&n.call(t,r,y)&&(S=a6([0,100],[r,y],{clamp:!1}),r=0,y=100);const k=E(Object.assign(Object.assign({},g),{from:r,to:y}));function C(){x++,l==="reverse"?(A=x%2===0,s=hK(s,b,c,A)):(s=g6(s,b,c),l==="mirror"&&k.flipTarget()),w=!1,f&&f()}function T(){m.stop(),h&&h()}function $(N){if(A||(N=-N),s+=N,!w){const D=k.next(Math.max(0,s));_=D.value,S&&(_=S(_)),w=A?D.done:s<=0}p==null||p(_),w&&(x===0&&(b!=null||(b=s)),x<a?fK(s,b,c,A)&&C():T())}function I(){u==null||u(),m=o($),m.start()}return i&&I(),{stop:()=>{d==null||d(),m.stop()}}}function v6(e,t){return t?e*(1e3/t):0}function gK({from:e=0,velocity:t=0,min:n,max:r,power:i=.8,timeConstant:o=750,bounceStiffness:s=500,bounceDamping:a=10,restDelta:l=1,modifyTarget:c,driver:u,onUpdate:d,onComplete:h,onStop:f}){let p;function g(b){return n!==void 0&&b<n||r!==void 0&&b>r}function y(b){return n===void 0?r:r===void 0||Math.abs(n-b)<Math.abs(r-b)?n:r}function m(b){p==null||p.stop(),p=m6(Object.assign(Object.assign({},b),{driver:u,onUpdate:_=>{var w;d==null||d(_),(w=b.onUpdate)===null||w===void 0||w.call(b,_)},onComplete:h,onStop:f}))}function x(b){m(Object.assign({type:"spring",stiffness:s,damping:a,restDelta:l},b))}if(g(e))x({from:e,velocity:t,to:y(e)});else{let b=i*t+e;typeof c<"u"&&(b=c(b));const _=y(b),w=_===n?-1:1;let A,S;const E=k=>{A=S,S=k,t=v6(k-A,Cm().delta),(w===1&&k>_||w===-1&&k<_)&&x({from:k,to:_,velocity:t})};m({type:"decay",from:e,velocity:t,timeConstant:o,power:i,restDelta:l,modifyTarget:c,onUpdate:g(b)?E:void 0})}return{stop:()=>p==null?void 0:p.stop()}}const Tb=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),wk=e=>Tb(e)&&e.hasOwnProperty("z"),Nf=(e,t)=>Math.abs(e-t);function y6(e,t){if(Eb(e)&&Eb(t))return Nf(e,t);if(Tb(e)&&Tb(t)){const n=Nf(e.x,t.x),r=Nf(e.y,t.y),i=wk(e)&&wk(t)?Nf(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(i,2))}}const x6=(e,t)=>1-3*t+3*e,b6=(e,t)=>3*t-6*e,_6=e=>3*e,km=(e,t,n)=>((x6(t,n)*e+b6(t,n))*e+_6(t))*e,w6=(e,t,n)=>3*x6(t,n)*e*e+2*b6(t,n)*e+_6(t),mK=1e-7,vK=10;function yK(e,t,n,r,i){let o,s,a=0;do s=t+(n-t)/2,o=km(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>mK&&++a<vK);return s}const xK=8,bK=.001;function _K(e,t,n,r){for(let i=0;i<xK;++i){const o=w6(t,n,r);if(o===0)return t;const s=km(t,n,r)-e;t-=s/o}return t}const lg=11,Ff=1/(lg-1);function wK(e,t,n,r){if(e===t&&n===r)return OA;const i=new Float32Array(lg);for(let s=0;s<lg;++s)i[s]=km(s*Ff,e,n);function o(s){let a=0,l=1;const c=lg-1;for(;l!==c&&i[l]<=s;++l)a+=Ff;--l;const u=(s-i[l])/(i[l+1]-i[l]),d=a+u*Ff,h=w6(d,e,n);return h>=bK?_K(s,d,e,n):h===0?d:yK(s,a,a+Ff,e,n)}return s=>s===0||s===1?s:km(o(s),t,r)}function AK(e){var t=e.onTap,n=e.onTapStart,r=e.onTapCancel,i=e.whileTap,o=e.visualElement,s=t||n||r||i,a=v.exports.useRef(!1),l=v.exports.useRef(null),c={passive:!(n||t||r||p)};function u(){var g;(g=l.current)===null||g===void 0||g.call(l),l.current=null}function d(){var g;return u(),a.current=!1,(g=o.animationState)===null||g===void 0||g.setActive(jt.Tap,!1),!t6()}function h(g,y){!d()||(e6(o.getInstance(),g.target)?t==null||t(g,y):r==null||r(g,y))}function f(g,y){!d()||r==null||r(g,y)}function p(g,y){var m;u(),!a.current&&(a.current=!0,l.current=sv(Tl(window,"pointerup",h,c),Tl(window,"pointercancel",f,c)),(m=o.animationState)===null||m===void 0||m.setActive(jt.Tap,!0),n==null||n(g,y))}Am(o,"pointerdown",s?p:void 0,c),n6(u)}var Ak=new Set;function SK(e,t,n){e||Ak.has(t)||(console.warn(t),n&&console.warn(n),Ak.add(t))}var Mb=new WeakMap,z1=new WeakMap,EK=function(e){var t;(t=Mb.get(e.target))===null||t===void 0||t(e)},CK=function(e){e.forEach(EK)};function kK(e){var t=e.root,n=gi(e,["root"]),r=t||document;z1.has(r)||z1.set(r,{});var i=z1.get(r),o=JSON.stringify(n);return i[o]||(i[o]=new IntersectionObserver(CK,X({root:t},n))),i[o]}function TK(e,t,n){var r=kK(t);return Mb.set(e,n),r.observe(e),function(){Mb.delete(e),r.unobserve(e)}}function MK(e){var t=e.visualElement,n=e.whileInView,r=e.onViewportEnter,i=e.onViewportLeave,o=e.viewport,s=o===void 0?{}:o,a=v.exports.useRef({hasEnteredView:!1,isInView:!1}),l=Boolean(n||r||i);s.once&&a.current.hasEnteredView&&(l=!1);var c=typeof IntersectionObserver>"u"?OK:PK;c(l,a.current,t,s)}var $K={some:0,all:1};function PK(e,t,n,r){var i=r.root,o=r.margin,s=r.amount,a=s===void 0?"some":s,l=r.once;v.exports.useEffect(function(){if(!!e){var c={root:i==null?void 0:i.current,rootMargin:o,threshold:typeof a=="number"?a:$K[a]},u=function(d){var h,f=d.isIntersecting;if(t.isInView!==f&&(t.isInView=f,!(l&&!f&&t.hasEnteredView))){f&&(t.hasEnteredView=!0),(h=n.animationState)===null||h===void 0||h.setActive(jt.InView,f);var p=n.getProps(),g=f?p.onViewportEnter:p.onViewportLeave;g==null||g(d)}};return TK(n.getInstance(),c,u)}},[e,i,o,a])}function OK(e,t,n,r){var i=r.fallback,o=i===void 0?!0:i;v.exports.useEffect(function(){!e||!o||(yL!=="production"&&SK(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(function(){var s;t.hasEnteredView=!0;var a=n.getProps().onViewportEnter;a==null||a(null),(s=n.animationState)===null||s===void 0||s.setActive(jt.InView,!0)}))},[e])}var Po=function(e){return function(t){return e(t),null}},RK={inView:Po(MK),tap:Po(AK),focus:Po(hQ),hover:Po(wQ)},DK=0,LK=function(){return DK++},IK=function(){return iv(LK)};function A6(){var e=v.exports.useContext(ev);if(e===null)return[!0,null];var t=e.isPresent,n=e.onExitComplete,r=e.register,i=IK();v.exports.useEffect(function(){return r(i)},[]);var o=function(){return n==null?void 0:n(i)};return!t&&n?[!1,o]:[!0]}function S6(e,t){if(!Array.isArray(t))return!1;var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var Tm=function(e){return e*1e3},NK={linear:OA,easeIn:RA,easeInOut:u6,easeOut:YQ,circIn:d6,circInOut:GQ,circOut:DA,backIn:LA,backInOut:XQ,backOut:qQ,anticipate:QQ,bounceIn:tK,bounceInOut:eK,bounceOut:Em},Sk=function(e){if(Array.isArray(e)){bm(e.length===4);var t=Re(e,4),n=t[0],r=t[1],i=t[2],o=t[3];return wK(n,r,i,o)}else if(typeof e=="string")return NK[e];return e},FK=function(e){return Array.isArray(e)&&typeof e[0]!="number"},Ek=function(e,t){return e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&Xi.test(t)&&!t.startsWith("url("))},Ts=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},zf=function(e){return{type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}},B1=function(){return{type:"keyframes",ease:"linear",duration:.3}},zK=function(e){return{type:"keyframes",duration:.8,values:e}},Ck={x:Ts,y:Ts,z:Ts,rotate:Ts,rotateX:Ts,rotateY:Ts,rotateZ:Ts,scaleX:zf,scaleY:zf,scale:zf,opacity:B1,backgroundColor:B1,color:B1,default:zf},BK=function(e,t){var n;return Xd(t)?n=zK:n=Ck[e]||Ck.default,X({to:t},n(t))},VK=X(X({},NL),{color:pn,backgroundColor:pn,outlineColor:pn,fill:pn,stroke:pn,borderColor:pn,borderTopColor:pn,borderRightColor:pn,borderBottomColor:pn,borderLeftColor:pn,filter:wb,WebkitFilter:wb}),IA=function(e){return VK[e]};function NA(e,t){var n,r=IA(e);return r!==wb&&(r=Xi),(n=r.getAnimatableNone)===null||n===void 0?void 0:n.call(r,t)}var jK={current:!1};function HK(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from;var t=gi(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}function UK(e){var t=e.ease,n=e.times,r=e.yoyo,i=e.flip,o=e.loop,s=gi(e,["ease","times","yoyo","flip","loop"]),a=X({},s);return n&&(a.offset=n),s.duration&&(a.duration=Tm(s.duration)),s.repeatDelay&&(a.repeatDelay=Tm(s.repeatDelay)),t&&(a.ease=FK(t)?t.map(Sk):Sk(t)),s.type==="tween"&&(a.type="keyframes"),(r||o||i)&&(r?a.repeatType="reverse":o?a.repeatType="loop":i&&(a.repeatType="mirror"),a.repeat=o||r||i||s.repeat),s.type!=="spring"&&(a.type="keyframes"),a}function WK(e,t){var n,r,i=FA(e,t)||{};return(r=(n=i.delay)!==null&&n!==void 0?n:e.delay)!==null&&r!==void 0?r:0}function YK(e){return Array.isArray(e.to)&&e.to[0]===null&&(e.to=ai([],Re(e.to),!1),e.to[0]=e.from),e}function GK(e,t,n){var r;return Array.isArray(t.to)&&((r=e.duration)!==null&&r!==void 0||(e.duration=.8)),YK(t),HK(e)||(e=X(X({},e),BK(n,t.to))),X(X({},t),UK(e))}function qK(e,t,n,r,i){var o,s=FA(r,e),a=(o=s.from)!==null&&o!==void 0?o:t.get(),l=Ek(e,n);a==="none"&&l&&typeof n=="string"?a=NA(e,n):kk(a)&&typeof n=="string"?a=Tk(n):!Array.isArray(n)&&kk(n)&&typeof a=="string"&&(n=Tk(a));var c=Ek(e,a);function u(){var h={from:a,to:n,velocity:t.getVelocity(),onComplete:i,onUpdate:function(f){return t.set(f)}};return s.type==="inertia"||s.type==="decay"?gK(X(X({},h),s)):m6(X(X({},GK(s,h,e)),{onUpdate:function(f){var p;h.onUpdate(f),(p=s.onUpdate)===null||p===void 0||p.call(s,f)},onComplete:function(){var f;h.onComplete(),(f=s.onComplete)===null||f===void 0||f.call(s)}}))}function d(){var h,f,p=YL(n);return t.set(p),i(),(h=s==null?void 0:s.onUpdate)===null||h===void 0||h.call(s,p),(f=s==null?void 0:s.onComplete)===null||f===void 0||f.call(s),{stop:function(){}}}return!c||!l||s.type===!1?d:u}function kk(e){return e===0||typeof e=="string"&&parseFloat(e)===0&&e.indexOf(" ")===-1}function Tk(e){return typeof e=="number"?0:NA("",e)}function FA(e,t){return e[t]||e.default||e}function zA(e,t,n,r){return r===void 0&&(r={}),jK.current&&(r={type:!1}),t.start(function(i){var o,s,a=qK(e,t,n,r,i),l=WK(r,e),c=function(){return s=a()};return l?o=window.setTimeout(c,Tm(l)):c(),function(){clearTimeout(o),s==null||s.stop()}})}var XK=function(e){return/^\-?\d*\.?\d+$/.test(e)},QK=function(e){return/^0[^.\s]+$/.test(e)};function BA(e,t){e.indexOf(t)===-1&&e.push(t)}function VA(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Uu=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(t){var n=this;return BA(this.subscriptions,t),function(){return VA(n.subscriptions,t)}},e.prototype.notify=function(t,n,r){var i=this.subscriptions.length;if(!!i)if(i===1)this.subscriptions[0](t,n,r);else for(var o=0;o<i;o++){var s=this.subscriptions[o];s&&s(t,n,r)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),KK=function(e){return!isNaN(parseFloat(e))},ZK=function(){function e(t){var n=this;this.version="6.5.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new Uu,this.velocityUpdateSubscribers=new Uu,this.renderSubscribers=new Uu,this.canTrackVelocity=!1,this.updateAndNotify=function(r,i){i===void 0&&(i=!0),n.prev=n.current,n.current=r;var o=Cm(),s=o.delta,a=o.timestamp;n.lastUpdated!==a&&(n.timeDelta=s,n.lastUpdated=a,ci.postRender(n.scheduleVelocityCheck)),n.prev!==n.current&&n.updateSubscribers.notify(n.current),n.velocityUpdateSubscribers.getSize()&&n.velocityUpdateSubscribers.notify(n.getVelocity()),i&&n.renderSubscribers.notify(n.current)},this.scheduleVelocityCheck=function(){return ci.postRender(n.velocityCheck)},this.velocityCheck=function(r){var i=r.timestamp;i!==n.lastUpdated&&(n.prev=n.current,n.velocityUpdateSubscribers.notify(n.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=KK(this.current)}return e.prototype.onChange=function(t){return this.updateSubscribers.add(t)},e.prototype.clearListeners=function(){this.updateSubscribers.clear()},e.prototype.onRenderRequest=function(t){return t(this.get()),this.renderSubscribers.add(t)},e.prototype.attach=function(t){this.passiveEffect=t},e.prototype.set=function(t,n){n===void 0&&(n=!0),!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)},e.prototype.get=function(){return this.current},e.prototype.getPrevious=function(){return this.prev},e.prototype.getVelocity=function(){return this.canTrackVelocity?v6(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(t){var n=this;return this.stop(),new Promise(function(r){n.hasAnimated=!0,n.stopAnimation=t(r)}).then(function(){return n.clearAnimation()})},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e}();function tc(e){return new ZK(e)}var E6=function(e){return function(t){return t.test(e)}},JK={test:function(e){return e==="auto"},parse:function(e){return e}},C6=[Ea,ot,li,fo,FX,NX,JK],Uc=function(e){return C6.find(E6(e))},tZ=ai(ai([],Re(C6),!1),[pn,Xi],!1),eZ=function(e){return tZ.find(E6(e))};function nZ(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,tc(n))}function rZ(e,t){var n=nv(e,t),r=n?e.makeTargetAnimatable(n,!1):{},i=r.transitionEnd,o=i===void 0?{}:i;r.transition;var s=gi(r,["transitionEnd","transition"]);s=X(X({},s),o);for(var a in s){var l=YL(s[a]);nZ(e,a,l)}}function iZ(e,t,n){var r,i,o,s,a=Object.keys(t).filter(function(f){return!e.hasValue(f)}),l=a.length;if(!!l)for(var c=0;c<l;c++){var u=a[c],d=t[u],h=null;Array.isArray(d)&&(h=d[0]),h===null&&(h=(i=(r=n[u])!==null&&r!==void 0?r:e.readValue(u))!==null&&i!==void 0?i:t[u]),h!=null&&(typeof h=="string"&&(XK(h)||QK(h))?h=parseFloat(h):!eZ(h)&&Xi.test(d)&&(h=NA(u,d)),e.addValue(u,tc(h)),(o=(s=n)[u])!==null&&o!==void 0||(s[u]=h),e.setBaseTarget(u,h))}}function oZ(e,t){if(!!t){var n=t[e]||t.default||t;return n.from}}function sZ(e,t,n){var r,i,o={};for(var s in e)o[s]=(r=oZ(s,t))!==null&&r!==void 0?r:(i=n.getValue(s))===null||i===void 0?void 0:i.get();return o}function aZ(e,t,n){n===void 0&&(n={}),e.notifyAnimationStart(t);var r;if(Array.isArray(t)){var i=t.map(function(s){return $b(e,s,n)});r=Promise.all(i)}else if(typeof t=="string")r=$b(e,t,n);else{var o=typeof t=="function"?nv(e,t,n.custom):t;r=k6(e,o,n)}return r.then(function(){return e.notifyAnimationComplete(t)})}function $b(e,t,n){var r;n===void 0&&(n={});var i=nv(e,t,n.custom),o=(i||{}).transition,s=o===void 0?e.getDefaultTransition()||{}:o;n.transitionOverride&&(s=n.transitionOverride);var a=i?function(){return k6(e,i,n)}:function(){return Promise.resolve()},l=!((r=e.variantChildren)===null||r===void 0)&&r.size?function(f){f===void 0&&(f=0);var p=s.delayChildren,g=p===void 0?0:p,y=s.staggerChildren,m=s.staggerDirection;return lZ(e,t,g+f,y,m,n)}:function(){return Promise.resolve()},c=s.when;if(c){var u=Re(c==="beforeChildren"?[a,l]:[l,a],2),d=u[0],h=u[1];return d().then(h)}else return Promise.all([a(),l(n.delay)])}function k6(e,t,n){var r,i=n===void 0?{}:n,o=i.delay,s=o===void 0?0:o,a=i.transitionOverride,l=i.type,c=e.makeTargetAnimatable(t),u=c.transition,d=u===void 0?e.getDefaultTransition():u,h=c.transitionEnd,f=gi(c,["transition","transitionEnd"]);a&&(d=a);var p=[],g=l&&((r=e.animationState)===null||r===void 0?void 0:r.getState()[l]);for(var y in f){var m=e.getValue(y),x=f[y];if(!(!m||x===void 0||g&&uZ(g,y))){var b=X({delay:s},d);e.shouldReduceMotion&&Lh(y)&&(b=X(X({},b),{type:!1,delay:0}));var _=zA(y,m,x,b);p.push(_)}}return Promise.all(p).then(function(){h&&rZ(e,h)})}function lZ(e,t,n,r,i,o){n===void 0&&(n=0),r===void 0&&(r=0),i===void 0&&(i=1);var s=[],a=(e.variantChildren.size-1)*r,l=i===1?function(c){return c===void 0&&(c=0),c*r}:function(c){return c===void 0&&(c=0),a-c*r};return Array.from(e.variantChildren).sort(cZ).forEach(function(c,u){s.push($b(c,t,X(X({},o),{delay:n+l(u)})).then(function(){return c.notifyAnimationComplete(t)}))}),Promise.all(s)}function cZ(e,t){return e.sortNodePosition(t)}function uZ(e,t){var n=e.protectedKeys,r=e.needsAnimating,i=n.hasOwnProperty(t)&&r[t]!==!0;return r[t]=!1,i}var jA=[jt.Animate,jt.InView,jt.Focus,jt.Hover,jt.Tap,jt.Drag,jt.Exit],dZ=ai([],Re(jA),!1).reverse(),hZ=jA.length;function fZ(e){return function(t){return Promise.all(t.map(function(n){var r=n.animation,i=n.options;return aZ(e,r,i)}))}}function pZ(e){var t=fZ(e),n=mZ(),r={},i=!0,o=function(u,d){var h=nv(e,d);if(h){h.transition;var f=h.transitionEnd,p=gi(h,["transition","transitionEnd"]);u=X(X(X({},u),p),f)}return u};function s(u){return r[u]!==void 0}function a(u){t=u(e)}function l(u,d){for(var h,f=e.getProps(),p=e.getVariantContext(!0)||{},g=[],y=new Set,m={},x=1/0,b=function(S){var E=dZ[S],k=n[E],C=(h=f[E])!==null&&h!==void 0?h:p[E],T=Pr(C),$=E===d?k.isActive:null;$===!1&&(x=S);var I=C===p[E]&&C!==f[E]&&T;if(I&&i&&e.manuallyAnimateOnMount&&(I=!1),k.protectedKeys=X({},m),!k.isActive&&$===null||!C&&!k.prevProp||TA(C)||typeof C=="boolean")return"continue";var N=gZ(k.prevProp,C),D=N||E===d&&k.isActive&&!I&&T||S>x&&T,Y=Array.isArray(C)?C:[C],Q=Y.reduce(o,{});$===!1&&(Q={});var F=k.prevResolvedValues,W=F===void 0?{}:F,P=X(X({},W),Q),G=function(V){D=!0,y.delete(V),k.needsAnimating[V]=!0};for(var U in P){var B=Q[U],R=W[U];m.hasOwnProperty(U)||(B!==R?Xd(B)&&Xd(R)?!S6(B,R)||N?G(U):k.protectedKeys[U]=!0:B!==void 0?G(U):y.add(U):B!==void 0&&y.has(U)?G(U):k.protectedKeys[U]=!0)}k.prevProp=C,k.prevResolvedValues=Q,k.isActive&&(m=X(X({},m),Q)),i&&e.blockInitialAnimation&&(D=!1),D&&!I&&g.push.apply(g,ai([],Re(Y.map(function(V){return{animation:V,options:X({type:E},u)}})),!1))},_=0;_<hZ;_++)b(_);if(r=X({},m),y.size){var w={};y.forEach(function(S){var E=e.getBaseTarget(S);E!==void 0&&(w[S]=E)}),g.push({animation:w})}var A=Boolean(g.length);return i&&f.initial===!1&&!e.manuallyAnimateOnMount&&(A=!1),i=!1,A?t(g):Promise.resolve()}function c(u,d,h){var f;if(n[u].isActive===d)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(function(y){var m;return(m=y.animationState)===null||m===void 0?void 0:m.setActive(u,d)}),n[u].isActive=d;var p=l(h,u);for(var g in n)n[g].protectedKeys={};return p}return{isAnimated:s,animateChanges:l,setActive:c,setAnimateFunction:a,getState:function(){return n}}}function gZ(e,t){return typeof t=="string"?t!==e:wL(t)?!S6(t,e):!1}function Ms(e){return e===void 0&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function mZ(){var e;return e={},e[jt.Animate]=Ms(!0),e[jt.InView]=Ms(),e[jt.Hover]=Ms(),e[jt.Tap]=Ms(),e[jt.Drag]=Ms(),e[jt.Focus]=Ms(),e[jt.Exit]=Ms(),e}var vZ={animation:Po(function(e){var t=e.visualElement,n=e.animate;t.animationState||(t.animationState=pZ(t)),TA(n)&&v.exports.useEffect(function(){return n.subscribe(t)},[n])}),exit:Po(function(e){var t=e.custom,n=e.visualElement,r=Re(A6(),2),i=r[0],o=r[1],s=v.exports.useContext(ev);v.exports.useEffect(function(){var a,l;n.isPresent=i;var c=(a=n.animationState)===null||a===void 0?void 0:a.setActive(jt.Exit,!i,{custom:(l=s==null?void 0:s.custom)!==null&&l!==void 0?l:t});!i&&(c==null||c.then(o))},[i])})},T6=function(){function e(t,n,r){var i=this,o=r===void 0?{}:r,s=o.transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(!!(i.lastMoveEvent&&i.lastMoveEventInfo)){var h=j1(i.lastMoveEventInfo,i.history),f=i.startEvent!==null,p=y6(h.offset,{x:0,y:0})>=3;if(!(!f&&!p)){var g=h.point,y=Cm().timestamp;i.history.push(X(X({},g),{timestamp:y}));var m=i.handlers,x=m.onStart,b=m.onMove;f||(x&&x(i.lastMoveEvent,h),i.startEvent=i.lastMoveEvent),b&&b(i.lastMoveEvent,h)}}},this.handlePointerMove=function(h,f){if(i.lastMoveEvent=h,i.lastMoveEventInfo=V1(f,i.transformPagePoint),qL(h)&&h.buttons===0){i.handlePointerUp(h,f);return}ci.update(i.updatePoint,!0)},this.handlePointerUp=function(h,f){i.end();var p=i.handlers,g=p.onEnd,y=p.onSessionEnd,m=j1(V1(f,i.transformPagePoint),i.history);i.startEvent&&g&&g(h,m),y&&y(h,m)},!(XL(t)&&t.touches.length>1)){this.handlers=n,this.transformPagePoint=s;var a=MA(t),l=V1(a,this.transformPagePoint),c=l.point,u=Cm().timestamp;this.history=[X(X({},c),{timestamp:u})];var d=n.onSessionStart;d&&d(t,j1(l,this.history)),this.removeListeners=sv(Tl(window,"pointermove",this.handlePointerMove),Tl(window,"pointerup",this.handlePointerUp),Tl(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(t){this.handlers=t},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),Jl.update(this.updatePoint)},e}();function V1(e,t){return t?{point:t(e.point)}:e}function Mk(e,t){return{x:e.x-t.x,y:e.y-t.y}}function j1(e,t){var n=e.point;return{point:n,delta:Mk(n,M6(t)),offset:Mk(n,yZ(t)),velocity:xZ(t,.1)}}function yZ(e){return e[0]}function M6(e){return e[e.length-1]}function xZ(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,i=M6(e);n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Tm(t)));)n--;if(!r)return{x:0,y:0};var o=(i.timestamp-r.timestamp)/1e3;if(o===0)return{x:0,y:0};var s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Qi(e){return e.max-e.min}function $k(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=.01),y6(e,t)<n}function Pk(e,t,n,r){r===void 0&&(r=.5),e.origin=r,e.originPoint=he(t.min,t.max,e.origin),e.scale=Qi(n)/Qi(t),($k(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=he(n.min,n.max,e.origin)-e.originPoint,($k(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Wu(e,t,n,r){Pk(e.x,t.x,n.x,r==null?void 0:r.originX),Pk(e.y,t.y,n.y,r==null?void 0:r.originY)}function Ok(e,t,n){e.min=n.min+t.min,e.max=e.min+Qi(t)}function bZ(e,t,n){Ok(e.x,t.x,n.x),Ok(e.y,t.y,n.y)}function Rk(e,t,n){e.min=t.min-n.min,e.max=e.min+Qi(t)}function Yu(e,t,n){Rk(e.x,t.x,n.x),Rk(e.y,t.y,n.y)}function _Z(e,t,n){var r=t.min,i=t.max;return r!==void 0&&e<r?e=n?he(r,e,n.min):Math.max(e,r):i!==void 0&&e>i&&(e=n?he(i,e,n.max):Math.min(e,i)),e}function Dk(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function wZ(e,t){var n=t.top,r=t.left,i=t.bottom,o=t.right;return{x:Dk(e.x,r,o),y:Dk(e.y,n,i)}}function Lk(e,t){var n,r=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&(n=Re([i,r],2),r=n[0],i=n[1]),{min:r,max:i}}function AZ(e,t){return{x:Lk(e.x,t.x),y:Lk(e.y,t.y)}}function SZ(e,t){var n=.5,r=Qi(e),i=Qi(t);return i>r?n=Qd(t.min,t.max-r,e.min):r>i&&(n=Qd(e.min,e.max-i,t.min)),Sm(0,1,n)}function EZ(e,t){var n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var Pb=.35;function CZ(e){return e===void 0&&(e=Pb),e===!1?e=0:e===!0&&(e=Pb),{x:Ik(e,"left","right"),y:Ik(e,"top","bottom")}}function Ik(e,t,n){return{min:Nk(e,t),max:Nk(e,n)}}function Nk(e,t){var n;return typeof e=="number"?e:(n=e[t])!==null&&n!==void 0?n:0}var Fk=function(){return{translate:0,scale:1,origin:0,originPoint:0}},Gu=function(){return{x:Fk(),y:Fk()}},zk=function(){return{min:0,max:0}},Je=function(){return{x:zk(),y:zk()}};function Kr(e){return[e("x"),e("y")]}function $6(e){var t=e.top,n=e.left,r=e.right,i=e.bottom;return{x:{min:n,max:r},y:{min:t,max:i}}}function kZ(e){var t=e.x,n=e.y;return{top:n.min,right:t.max,bottom:n.max,left:t.min}}function TZ(e,t){if(!t)return e;var n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function H1(e){return e===void 0||e===1}function P6(e){var t=e.scale,n=e.scaleX,r=e.scaleY;return!H1(t)||!H1(n)||!H1(r)}function po(e){return P6(e)||Bk(e.x)||Bk(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function Bk(e){return e&&e!=="0%"}function Mm(e,t,n){var r=e-n,i=t*r;return n+i}function Vk(e,t,n,r,i){return i!==void 0&&(e=Mm(e,i,r)),Mm(e,n,r)+t}function Ob(e,t,n,r,i){t===void 0&&(t=0),n===void 0&&(n=1),e.min=Vk(e.min,t,n,r,i),e.max=Vk(e.max,t,n,r,i)}function O6(e,t){var n=t.x,r=t.y;Ob(e.x,n.translate,n.scale,n.originPoint),Ob(e.y,r.translate,r.scale,r.originPoint)}function MZ(e,t,n,r){var i,o;r===void 0&&(r=!1);var s=n.length;if(!!s){t.x=t.y=1;for(var a,l,c=0;c<s;c++)a=n[c],l=a.projectionDelta,((o=(i=a.instance)===null||i===void 0?void 0:i.style)===null||o===void 0?void 0:o.display)!=="contents"&&(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&dl(e,{x:-a.scroll.x,y:-a.scroll.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,O6(e,l)),r&&po(a.latestValues)&&dl(e,a.latestValues))}}function _o(e,t){e.min=e.min+t,e.max=e.max+t}function jk(e,t,n){var r=Re(n,3),i=r[0],o=r[1],s=r[2],a=t[s]!==void 0?t[s]:.5,l=he(e.min,e.max,a);Ob(e,t[i],t[o],l,t.scale)}var $Z=["x","scaleX","originX"],PZ=["y","scaleY","originY"];function dl(e,t){jk(e.x,t,$Z),jk(e.y,t,PZ)}function R6(e,t){return $6(TZ(e.getBoundingClientRect(),t))}function OZ(e,t,n){var r=R6(e,n),i=t.scroll;return i&&(_o(r.x,i.x),_o(r.y,i.y)),r}var RZ=new WeakMap,DZ=function(){function e(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Je(),this.visualElement=t}return e.prototype.start=function(t,n){var r=this,i=n===void 0?{}:n,o=i.snapToCursor,s=o===void 0?!1:o;if(this.visualElement.isPresent!==!1){var a=function(d){r.stopAnimation(),s&&r.snapToCursor(MA(d,"page").point)},l=function(d,h){var f,p=r.getProps(),g=p.drag,y=p.dragPropagation,m=p.onDragStart;g&&!y&&(r.openGlobalLock&&r.openGlobalLock(),r.openGlobalLock=JL(g),!r.openGlobalLock)||(r.isDragging=!0,r.currentDirection=null,r.resolveConstraints(),r.visualElement.projection&&(r.visualElement.projection.isAnimationBlocked=!0,r.visualElement.projection.target=void 0),Kr(function(x){var b,_,w=r.getAxisMotionValue(x).get()||0;if(li.test(w)){var A=(_=(b=r.visualElement.projection)===null||b===void 0?void 0:b.layout)===null||_===void 0?void 0:_.actual[x];if(A){var S=Qi(A);w=S*(parseFloat(w)/100)}}r.originPoint[x]=w}),m==null||m(d,h),(f=r.visualElement.animationState)===null||f===void 0||f.setActive(jt.Drag,!0))},c=function(d,h){var f=r.getProps(),p=f.dragPropagation,g=f.dragDirectionLock,y=f.onDirectionLock,m=f.onDrag;if(!(!p&&!r.openGlobalLock)){var x=h.offset;if(g&&r.currentDirection===null){r.currentDirection=LZ(x),r.currentDirection!==null&&(y==null||y(r.currentDirection));return}r.updateAxis("x",h.point,x),r.updateAxis("y",h.point,x),r.visualElement.syncRender(),m==null||m(d,h)}},u=function(d,h){return r.stop(d,h)};this.panSession=new T6(t,{onSessionStart:a,onStart:l,onMove:c,onSessionEnd:u},{transformPagePoint:this.visualElement.getTransformPagePoint()})}},e.prototype.stop=function(t,n){var r=this.isDragging;if(this.cancel(),!!r){var i=n.velocity;this.startAnimation(i);var o=this.getProps().onDragEnd;o==null||o(t,n)}},e.prototype.cancel=function(){var t,n;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),(t=this.panSession)===null||t===void 0||t.end(),this.panSession=void 0;var r=this.getProps().dragPropagation;!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),(n=this.visualElement.animationState)===null||n===void 0||n.setActive(jt.Drag,!1)},e.prototype.updateAxis=function(t,n,r){var i=this.getProps().drag;if(!(!r||!Bf(t,i,this.currentDirection))){var o=this.getAxisMotionValue(t),s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=_Z(s,this.constraints[t],this.elastic[t])),o.set(s)}},e.prototype.resolveConstraints=function(){var t=this,n=this.getProps(),r=n.dragConstraints,i=n.dragElastic,o=(this.visualElement.projection||{}).layout,s=this.constraints;r&&ul(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&o?this.constraints=wZ(o.actual,r):this.constraints=!1,this.elastic=CZ(i),s!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Kr(function(a){t.getAxisMotionValue(a)&&(t.constraints[a]=EZ(o.actual[a],t.constraints[a]))})},e.prototype.resolveRefConstraints=function(){var t=this.getProps(),n=t.dragConstraints,r=t.onMeasureDragConstraints;if(!n||!ul(n))return!1;var i=n.current,o=this.visualElement.projection;if(!o||!o.layout)return!1;var s=OZ(i,o.root,this.visualElement.getTransformPagePoint()),a=AZ(o.layout.actual,s);if(r){var l=r(kZ(a));this.hasMutatedConstraints=!!l,l&&(a=$6(l))}return a},e.prototype.startAnimation=function(t){var n=this,r=this.getProps(),i=r.drag,o=r.dragMomentum,s=r.dragElastic,a=r.dragTransition,l=r.dragSnapToOrigin,c=r.onDragTransitionEnd,u=this.constraints||{},d=Kr(function(h){var f;if(!!Bf(h,i,n.currentDirection)){var p=(f=u==null?void 0:u[h])!==null&&f!==void 0?f:{};l&&(p={min:0,max:0});var g=s?200:1e6,y=s?40:1e7,m=X(X({type:"inertia",velocity:o?t[h]:0,bounceStiffness:g,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10},a),p);return n.startAxisValueAnimation(h,m)}});return Promise.all(d).then(c)},e.prototype.startAxisValueAnimation=function(t,n){var r=this.getAxisMotionValue(t);return zA(t,r,0,n)},e.prototype.stopAnimation=function(){var t=this;Kr(function(n){return t.getAxisMotionValue(n).stop()})},e.prototype.getAxisMotionValue=function(t){var n,r,i="_drag"+t.toUpperCase(),o=this.visualElement.getProps()[i];return o||this.visualElement.getValue(t,(r=(n=this.visualElement.getProps().initial)===null||n===void 0?void 0:n[t])!==null&&r!==void 0?r:0)},e.prototype.snapToCursor=function(t){var n=this;Kr(function(r){var i=n.getProps().drag;if(!!Bf(r,i,n.currentDirection)){var o=n.visualElement.projection,s=n.getAxisMotionValue(r);if(o&&o.layout){var a=o.layout.actual[r],l=a.min,c=a.max;s.set(t[r]-he(l,c,.5))}}})},e.prototype.scalePositionWithinConstraints=function(){var t=this,n,r=this.getProps(),i=r.drag,o=r.dragConstraints,s=this.visualElement.projection;if(!(!ul(o)||!s||!this.constraints)){this.stopAnimation();var a={x:0,y:0};Kr(function(c){var u=t.getAxisMotionValue(c);if(u){var d=u.get();a[c]=SZ({min:d,max:d},t.constraints[c])}});var l=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=l?l({},""):"none",(n=s.root)===null||n===void 0||n.updateScroll(),s.updateLayout(),this.resolveConstraints(),Kr(function(c){if(!!Bf(c,i,null)){var u=t.getAxisMotionValue(c),d=t.constraints[c],h=d.min,f=d.max;u.set(he(h,f,a[c]))}})}},e.prototype.addListeners=function(){var t=this,n;RZ.set(this.visualElement,this);var r=this.visualElement.getInstance(),i=Tl(r,"pointerdown",function(c){var u=t.getProps(),d=u.drag,h=u.dragListener,f=h===void 0?!0:h;d&&f&&t.start(c)}),o=function(){var c=t.getProps().dragConstraints;ul(c)&&(t.constraints=t.resolveRefConstraints())},s=this.visualElement.projection,a=s.addEventListener("measure",o);s&&!s.layout&&((n=s.root)===null||n===void 0||n.updateScroll(),s.updateLayout()),o();var l=ov(window,"resize",function(){return t.scalePositionWithinConstraints()});return s.addEventListener("didUpdate",function(c){var u=c.delta,d=c.hasLayoutChanged;t.isDragging&&d&&(Kr(function(h){var f=t.getAxisMotionValue(h);!f||(t.originPoint[h]+=u[h].translate,f.set(f.get()+u[h].translate))}),t.visualElement.syncRender())}),function(){l(),i(),a()}},e.prototype.getProps=function(){var t=this.visualElement.getProps(),n=t.drag,r=n===void 0?!1:n,i=t.dragDirectionLock,o=i===void 0?!1:i,s=t.dragPropagation,a=s===void 0?!1:s,l=t.dragConstraints,c=l===void 0?!1:l,u=t.dragElastic,d=u===void 0?Pb:u,h=t.dragMomentum,f=h===void 0?!0:h;return X(X({},t),{drag:r,dragDirectionLock:o,dragPropagation:a,dragConstraints:c,dragElastic:d,dragMomentum:f})},e}();function Bf(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function LZ(e,t){t===void 0&&(t=10);var n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}function IZ(e){var t=e.dragControls,n=e.visualElement,r=iv(function(){return new DZ(n)});v.exports.useEffect(function(){return t&&t.subscribe(r)},[r,t]),v.exports.useEffect(function(){return r.addListeners()},[r])}function NZ(e){var t=e.onPan,n=e.onPanStart,r=e.onPanEnd,i=e.onPanSessionStart,o=e.visualElement,s=t||n||r||i,a=v.exports.useRef(null),l=v.exports.useContext(_A).transformPagePoint,c={onSessionStart:i,onStart:n,onMove:t,onEnd:function(d,h){a.current=null,r&&r(d,h)}};v.exports.useEffect(function(){a.current!==null&&a.current.updateHandlers(c)});function u(d){a.current=new T6(d,c,{transformPagePoint:l})}Am(o,"pointerdown",s&&u),n6(function(){return a.current&&a.current.end()})}var FZ={pan:Po(NZ),drag:Po(IZ)},Vf=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];function zZ(){var e=Vf.map(function(){return new Uu}),t={},n={clearAllListeners:function(){return e.forEach(function(r){return r.clear()})},updatePropListeners:function(r){Vf.forEach(function(i){var o,s="on"+i,a=r[s];(o=t[i])===null||o===void 0||o.call(t),a&&(t[i]=n[s](a))})}};return e.forEach(function(r,i){n["on"+Vf[i]]=function(o){return r.add(o)},n["notify"+Vf[i]]=function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];return r.notify.apply(r,ai([],Re(o),!1))}}),n}function BZ(e,t,n){var r;for(var i in t){var o=t[i],s=n[i];if(qi(o))e.addValue(i,o);else if(qi(s))e.addValue(i,tc(o));else if(s!==o)if(e.hasValue(i)){var a=e.getValue(i);!a.hasAnimated&&a.set(o)}else e.addValue(i,tc((r=e.getStaticValue(i))!==null&&r!==void 0?r:o))}for(var i in n)t[i]===void 0&&e.removeValue(i);return t}var D6=function(e){var t=e.treeType,n=t===void 0?"":t,r=e.build,i=e.getBaseTarget,o=e.makeTargetAnimatable,s=e.measureViewportBox,a=e.render,l=e.readValueFromInstance,c=e.removeValueFromRenderState,u=e.sortNodePosition,d=e.scrapeMotionValuesFromProps;return function(h,f){var p=h.parent,g=h.props,y=h.presenceId,m=h.blockInitialAnimation,x=h.visualState,b=h.shouldReduceMotion;f===void 0&&(f={});var _=!1,w=x.latestValues,A=x.renderState,S,E=zZ(),k=new Map,C=new Map,T={},$=X({},w),I;function N(){!S||!_||(D(),a(S,A,g.style,B.projection))}function D(){r(B,A,w,f,g)}function Y(){E.notifyUpdate(w)}function Q(R,V){var K=V.onChange(function(Yt){w[R]=Yt,g.onUpdate&&ci.update(Y,!1,!0)}),st=V.onRenderRequest(B.scheduleRender);C.set(R,function(){K(),st()})}var F=d(g);for(var W in F){var P=F[W];w[W]!==void 0&&qi(P)&&P.set(w[W],!1)}var G=rv(g),U=SL(g),B=X(X({treeType:n,current:null,depth:p?p.depth+1:0,parent:p,children:new Set,presenceId:y,shouldReduceMotion:b,variantChildren:U?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(p==null?void 0:p.isMounted()),blockInitialAnimation:m,isMounted:function(){return Boolean(S)},mount:function(R){_=!0,S=B.current=R,B.projection&&B.projection.mount(R),U&&p&&!G&&(I=p==null?void 0:p.addVariantChild(B)),k.forEach(function(V,K){return Q(K,V)}),p==null||p.children.add(B),B.setProps(g)},unmount:function(){var R;(R=B.projection)===null||R===void 0||R.unmount(),Jl.update(Y),Jl.render(N),C.forEach(function(V){return V()}),I==null||I(),p==null||p.children.delete(B),E.clearAllListeners(),S=void 0,_=!1},addVariantChild:function(R){var V,K=B.getClosestVariantNode();if(K)return(V=K.variantChildren)===null||V===void 0||V.add(R),function(){return K.variantChildren.delete(R)}},sortNodePosition:function(R){return!u||n!==R.treeType?0:u(B.getInstance(),R.getInstance())},getClosestVariantNode:function(){return U?B:p==null?void 0:p.getClosestVariantNode()},getLayoutId:function(){return g.layoutId},getInstance:function(){return S},getStaticValue:function(R){return w[R]},setStaticValue:function(R,V){return w[R]=V},getLatestValues:function(){return w},setVisibility:function(R){B.isVisible!==R&&(B.isVisible=R,B.scheduleRender())},makeTargetAnimatable:function(R,V){return V===void 0&&(V=!0),o(B,R,g,V)},measureViewportBox:function(){return s(S,g)},addValue:function(R,V){B.hasValue(R)&&B.removeValue(R),k.set(R,V),w[R]=V.get(),Q(R,V)},removeValue:function(R){var V;k.delete(R),(V=C.get(R))===null||V===void 0||V(),C.delete(R),delete w[R],c(R,A)},hasValue:function(R){return k.has(R)},getValue:function(R,V){var K=k.get(R);return K===void 0&&V!==void 0&&(K=tc(V),B.addValue(R,K)),K},forEachValue:function(R){return k.forEach(R)},readValue:function(R){var V;return(V=w[R])!==null&&V!==void 0?V:l(S,R,f)},setBaseTarget:function(R,V){$[R]=V},getBaseTarget:function(R){if(i){var V=i(g,R);if(V!==void 0&&!qi(V))return V}return $[R]}},E),{build:function(){return D(),A},scheduleRender:function(){ci.render(N,!1,!0)},syncRender:N,setProps:function(R){(R.transformTemplate||g.transformTemplate)&&B.scheduleRender(),g=R,E.updatePropListeners(R),T=BZ(B,d(g),T)},getProps:function(){return g},getVariant:function(R){var V;return(V=g.variants)===null||V===void 0?void 0:V[R]},getDefaultTransition:function(){return g.transition},getTransformPagePoint:function(){return g.transformPagePoint},getVariantContext:function(R){if(R===void 0&&(R=!1),R)return p==null?void 0:p.getVariantContext();if(!G){var V=(p==null?void 0:p.getVariantContext())||{};return g.initial!==void 0&&(V.initial=g.initial),V}for(var K={},st=0;st<VZ;st++){var Yt=L6[st],ve=g[Yt];(Pr(ve)||ve===!1)&&(K[Yt]=ve)}return K}});return B}},L6=ai(["initial"],Re(jA),!1),VZ=L6.length;function Rb(e){return typeof e=="string"&&e.startsWith("var(--")}var I6=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function jZ(e){var t=I6.exec(e);if(!t)return[,];var n=Re(t,3),r=n[1],i=n[2];return[r,i]}function Db(e,t,n){var r=Re(jZ(e),2),i=r[0],o=r[1];if(!!i){var s=window.getComputedStyle(t).getPropertyValue(i);return s?s.trim():Rb(o)?Db(o,t):o}}function HZ(e,t,n){var r,i=gi(t,[]),o=e.getInstance();if(!(o instanceof Element))return{target:i,transitionEnd:n};n&&(n=X({},n)),e.forEachValue(function(c){var u=c.get();if(!!Rb(u)){var d=Db(u,o);d&&c.set(d)}});for(var s in i){var a=i[s];if(!!Rb(a)){var l=Db(a,o);!l||(i[s]=l,n&&((r=n[s])!==null&&r!==void 0||(n[s]=a)))}}return{target:i,transitionEnd:n}}var UZ=new Set(["width","height","top","left","right","bottom","x","y"]),N6=function(e){return UZ.has(e)},WZ=function(e){return Object.keys(e).some(N6)},F6=function(e,t){e.set(t,!1),e.set(t)},Hk=function(e){return e===Ea||e===ot},Uk;(function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"})(Uk||(Uk={}));var Wk=function(e,t){return parseFloat(e.split(", ")[t])},Yk=function(e,t){return function(n,r){var i=r.transform;if(i==="none"||!i)return 0;var o=i.match(/^matrix3d\((.+)\)$/);if(o)return Wk(o[1],t);var s=i.match(/^matrix\((.+)\)$/);return s?Wk(s[1],e):0}},YZ=new Set(["x","y","z"]),GZ=Gd.filter(function(e){return!YZ.has(e)});function qZ(e){var t=[];return GZ.forEach(function(n){var r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.syncRender(),t}var Gk={width:function(e,t){var n=e.x,r=t.paddingLeft,i=r===void 0?"0":r,o=t.paddingRight,s=o===void 0?"0":o;return n.max-n.min-parseFloat(i)-parseFloat(s)},height:function(e,t){var n=e.y,r=t.paddingTop,i=r===void 0?"0":r,o=t.paddingBottom,s=o===void 0?"0":o;return n.max-n.min-parseFloat(i)-parseFloat(s)},top:function(e,t){var n=t.top;return parseFloat(n)},left:function(e,t){var n=t.left;return parseFloat(n)},bottom:function(e,t){var n=e.y,r=t.top;return parseFloat(r)+(n.max-n.min)},right:function(e,t){var n=e.x,r=t.left;return parseFloat(r)+(n.max-n.min)},x:Yk(4,13),y:Yk(5,14)},XZ=function(e,t,n){var r=t.measureViewportBox(),i=t.getInstance(),o=getComputedStyle(i),s=o.display,a={};s==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(function(c){a[c]=Gk[c](r,o)}),t.syncRender();var l=t.measureViewportBox();return n.forEach(function(c){var u=t.getValue(c);F6(u,a[c]),e[c]=Gk[c](l,o)}),e},QZ=function(e,t,n,r){n===void 0&&(n={}),r===void 0&&(r={}),t=X({},t),r=X({},r);var i=Object.keys(t).filter(N6),o=[],s=!1,a=[];if(i.forEach(function(u){var d=e.getValue(u);if(!!e.hasValue(u)){var h=n[u],f=Uc(h),p=t[u],g;if(Xd(p)){var y=p.length,m=p[0]===null?1:0;h=p[m],f=Uc(h);for(var x=m;x<y;x++)g?bm(Uc(p[x])===g):g=Uc(p[x])}else g=Uc(p);if(f!==g)if(Hk(f)&&Hk(g)){var b=d.get();typeof b=="string"&&d.set(parseFloat(b)),typeof p=="string"?t[u]=parseFloat(p):Array.isArray(p)&&g===ot&&(t[u]=p.map(parseFloat))}else(f==null?void 0:f.transform)&&(g==null?void 0:g.transform)&&(h===0||p===0)?h===0?d.set(g.transform(h)):t[u]=f.transform(p):(s||(o=qZ(e),s=!0),a.push(u),r[u]=r[u]!==void 0?r[u]:t[u],F6(d,p))}}),a.length){var l=a.indexOf("height")>=0?window.pageYOffset:null,c=XZ(t,e,a);return o.length&&o.forEach(function(u){var d=Re(u,2),h=d[0],f=d[1];e.getValue(h).set(f)}),e.syncRender(),l!==null&&window.scrollTo({top:l}),{target:c,transitionEnd:r}}else return{target:t,transitionEnd:r}};function KZ(e,t,n,r){return WZ(t)?QZ(e,t,n,r):{target:t,transitionEnd:r}}var ZZ=function(e,t,n,r){var i=HZ(e,t,r);return t=i.target,r=i.transitionEnd,KZ(e,t,n,r)};function JZ(e){return window.getComputedStyle(e)}var z6={treeType:"dom",readValueFromInstance:function(e,t){if(Lh(t)){var n=IA(t);return n&&n.default||0}else{var r=JZ(e);return(ML(t)?r.getPropertyValue(t):r[t])||0}},sortNodePosition:function(e,t){return e.compareDocumentPosition(t)&2?1:-1},getBaseTarget:function(e,t){var n;return(n=e.style)===null||n===void 0?void 0:n[t]},measureViewportBox:function(e,t){var n=t.transformPagePoint;return R6(e,n)},resetTransform:function(e,t,n){var r=n.transformTemplate;t.style.transform=r?r({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var n=t.vars,r=t.style;delete n[e],delete r[e]},makeTargetAnimatable:function(e,t,n,r){var i=n.transformValues;r===void 0&&(r=!0);var o=t.transition,s=t.transitionEnd,a=gi(t,["transition","transitionEnd"]),l=sZ(a,o||{},e);if(i&&(s&&(s=i(s)),a&&(a=i(a)),l&&(l=i(l))),r){iZ(e,a,l);var c=ZZ(e,a,l,s);s=c.transitionEnd,a=c.target}return X({transition:o,transitionEnd:s},a)},scrapeMotionValuesFromProps:kA,build:function(e,t,n,r,i){e.isVisible!==void 0&&(t.style.visibility=e.isVisible?"visible":"hidden"),SA(t,n,r,i.transformTemplate)},render:jL},tJ=D6(z6),eJ=D6(X(X({},z6),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return Lh(t)?((n=IA(t))===null||n===void 0?void 0:n.default)||0:(t=HL.has(t)?t:VL(t),e.getAttribute(t))},scrapeMotionValuesFromProps:WL,build:function(e,t,n,r,i){CA(t,n,r,i.transformTemplate)},render:UL})),nJ=function(e,t){return wA(e)?eJ(t,{enableHardwareAcceleration:!1}):tJ(t,{enableHardwareAcceleration:!0})};function qk(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Wc={correct:function(e,t){if(!t.target)return e;if(typeof e=="string")if(ot.test(e))e=parseFloat(e);else return e;var n=qk(e,t.target.x),r=qk(e,t.target.y);return"".concat(n,"% ").concat(r,"%")}},Xk="_$css",rJ={correct:function(e,t){var n=t.treeScale,r=t.projectionDelta,i=e,o=e.includes("var("),s=[];o&&(e=e.replace(I6,function(g){return s.push(g),Xk}));var a=Xi.parse(e);if(a.length>5)return i;var l=Xi.createTransformer(e),c=typeof a[0]!="number"?1:0,u=r.x.scale*n.x,d=r.y.scale*n.y;a[0+c]/=u,a[1+c]/=d;var h=he(u,d,.5);typeof a[2+c]=="number"&&(a[2+c]/=h),typeof a[3+c]=="number"&&(a[3+c]/=h);var f=l(a);if(o){var p=0;f=f.replace(Xk,function(){var g=s[p];return p++,g})}return f}},iJ=function(e){vL(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.componentDidMount=function(){var n=this,r=this.props,i=r.visualElement,o=r.layoutGroup,s=r.switchLayoutGroup,a=r.layoutId,l=i.projection;kX(sJ),l&&(o!=null&&o.group&&o.group.add(l),(s==null?void 0:s.register)&&a&&s.register(l),l.root.didUpdate(),l.addEventListener("animationComplete",function(){n.safeToRemove()}),l.setOptions(X(X({},l.options),{onExitComplete:function(){return n.safeToRemove()}}))),Vu.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(n){var r=this,i=this.props,o=i.layoutDependency,s=i.visualElement,a=i.drag,l=i.isPresent,c=s.projection;return c&&(c.isPresent=l,a||n.layoutDependency!==o||o===void 0?c.willUpdate():this.safeToRemove(),n.isPresent!==l&&(l?c.promote():c.relegate()||ci.postRender(function(){var u;!((u=c.getStack())===null||u===void 0)&&u.members.length||r.safeToRemove()}))),null},t.prototype.componentDidUpdate=function(){var n=this.props.visualElement.projection;n&&(n.root.didUpdate(),!n.currentAnimation&&n.isLead()&&this.safeToRemove())},t.prototype.componentWillUnmount=function(){var n=this.props,r=n.visualElement,i=n.layoutGroup,o=n.switchLayoutGroup,s=r.projection;s&&(s.scheduleCheckAfterUnmount(),i!=null&&i.group&&i.group.remove(s),o!=null&&o.deregister&&o.deregister(s))},t.prototype.safeToRemove=function(){var n=this.props.safeToRemove;n==null||n()},t.prototype.render=function(){return null},t}(Z.Component);function oJ(e){var t=Re(A6(),2),n=t[0],r=t[1],i=v.exports.useContext(EL);return O(iJ,{...X({},e,{layoutGroup:i,switchLayoutGroup:v.exports.useContext(CL),isPresent:n,safeToRemove:r})})}var sJ={borderRadius:X(X({},Wc),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Wc,borderTopRightRadius:Wc,borderBottomLeftRadius:Wc,borderBottomRightRadius:Wc,boxShadow:rJ},aJ={measureLayout:oJ};function lJ(e,t,n){n===void 0&&(n={});var r=qi(e)?e:tc(e);return zA("",r,t,n),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}var B6=["TopLeft","TopRight","BottomLeft","BottomRight"],cJ=B6.length,Qk=function(e){return typeof e=="string"?parseFloat(e):e},Kk=function(e){return typeof e=="number"||ot.test(e)};function uJ(e,t,n,r,i,o){var s,a,l,c;i?(e.opacity=he(0,(s=n.opacity)!==null&&s!==void 0?s:1,dJ(r)),e.opacityExit=he((a=t.opacity)!==null&&a!==void 0?a:1,0,hJ(r))):o&&(e.opacity=he((l=t.opacity)!==null&&l!==void 0?l:1,(c=n.opacity)!==null&&c!==void 0?c:1,r));for(var u=0;u<cJ;u++){var d="border".concat(B6[u],"Radius"),h=Zk(t,d),f=Zk(n,d);if(!(h===void 0&&f===void 0)){h||(h=0),f||(f=0);var p=h===0||f===0||Kk(h)===Kk(f);p?(e[d]=Math.max(he(Qk(h),Qk(f),r),0),(li.test(f)||li.test(h))&&(e[d]+="%")):e[d]=f}}(t.rotate||n.rotate)&&(e.rotate=he(t.rotate||0,n.rotate||0,r))}function Zk(e,t){var n;return(n=e[t])!==null&&n!==void 0?n:e.borderRadius}var dJ=V6(0,.5,DA),hJ=V6(.5,.95,OA);function V6(e,t,n){return function(r){return r<e?0:r>t?1:n(Qd(e,t,r))}}function Jk(e,t){e.min=t.min,e.max=t.max}function Er(e,t){Jk(e.x,t.x),Jk(e.y,t.y)}function t5(e,t,n,r,i){return e-=t,e=Mm(e,1/n,r),i!==void 0&&(e=Mm(e,1/i,r)),e}function fJ(e,t,n,r,i,o,s){if(t===void 0&&(t=0),n===void 0&&(n=1),r===void 0&&(r=.5),o===void 0&&(o=e),s===void 0&&(s=e),li.test(t)){t=parseFloat(t);var a=he(s.min,s.max,t/100);t=a-s.min}if(typeof t=="number"){var l=he(o.min,o.max,r);e===o&&(l-=t),e.min=t5(e.min,t,n,l,i),e.max=t5(e.max,t,n,l,i)}}function e5(e,t,n,r,i){var o=Re(n,3),s=o[0],a=o[1],l=o[2];fJ(e,t[s],t[a],t[l],t.scale,r,i)}var pJ=["x","scaleX","originX"],gJ=["y","scaleY","originY"];function n5(e,t,n,r){e5(e.x,t,pJ,n==null?void 0:n.x,r==null?void 0:r.x),e5(e.y,t,gJ,n==null?void 0:n.y,r==null?void 0:r.y)}function r5(e){return e.translate===0&&e.scale===1}function j6(e){return r5(e.x)&&r5(e.y)}function H6(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}var mJ=function(){function e(){this.members=[]}return e.prototype.add=function(t){BA(this.members,t),t.scheduleRender()},e.prototype.remove=function(t){if(VA(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){var n=this.members[this.members.length-1];n&&this.promote(n)}},e.prototype.relegate=function(t){var n=this.members.findIndex(function(s){return t===s});if(n===0)return!1;for(var r,i=n;i>=0;i--){var o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1},e.prototype.promote=function(t,n){var r,i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,n&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues,t.snapshot.isShared=!0),!((r=t.root)===null||r===void 0)&&r.isUpdating&&(t.isLayoutDirty=!0);var o=t.options.crossfade;o===!1&&i.hide()}},e.prototype.exitAnimationComplete=function(){this.members.forEach(function(t){var n,r,i,o,s;(r=(n=t.options).onExitComplete)===null||r===void 0||r.call(n),(s=(i=t.resumingFrom)===null||i===void 0?void 0:(o=i.options).onExitComplete)===null||s===void 0||s.call(o)})},e.prototype.scheduleRender=function(){this.members.forEach(function(t){t.instance&&t.scheduleRender(!1)})},e.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},e}(),vJ="translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)";function i5(e,t,n){var r=e.x.translate/t.x,i=e.y.translate/t.y,o="translate3d(".concat(r,"px, ").concat(i,"px, 0) ");if(o+="scale(".concat(1/t.x,", ").concat(1/t.y,") "),n){var s=n.rotate,a=n.rotateX,l=n.rotateY;s&&(o+="rotate(".concat(s,"deg) ")),a&&(o+="rotateX(".concat(a,"deg) ")),l&&(o+="rotateY(".concat(l,"deg) "))}var c=e.x.scale*t.x,u=e.y.scale*t.y;return o+="scale(".concat(c,", ").concat(u,")"),o===vJ?"none":o}var yJ=function(e,t){return e.depth-t.depth},xJ=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(t){BA(this.children,t),this.isDirty=!0},e.prototype.remove=function(t){VA(this.children,t),this.isDirty=!0},e.prototype.forEach=function(t){this.isDirty&&this.children.sort(yJ),this.isDirty=!1,this.children.forEach(t)},e}(),o5=1e3;function U6(e){var t=e.attachResizeListener,n=e.defaultParent,r=e.measureScroll,i=e.checkIsScrollRoot,o=e.resetTransform;return function(){function s(a,l,c){var u=this;l===void 0&&(l={}),c===void 0&&(c=n==null?void 0:n()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){u.isUpdating&&(u.isUpdating=!1,u.clearAllSnapshots())},this.updateProjection=function(){u.nodes.forEach(EJ),u.nodes.forEach(CJ)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=a,this.latestValues=l,this.root=c?c.root||c:this,this.path=c?ai(ai([],Re(c.path),!1),[c],!1):[],this.parent=c,this.depth=c?c.depth+1:0,a&&this.root.registerPotentialNode(a,this);for(var d=0;d<this.path.length;d++)this.path[d].shouldResetTransform=!0;this.root===this&&(this.nodes=new xJ)}return s.prototype.addEventListener=function(a,l){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Uu),this.eventHandlers.get(a).add(l)},s.prototype.notifyListeners=function(a){for(var l=[],c=1;c<arguments.length;c++)l[c-1]=arguments[c];var u=this.eventHandlers.get(a);u==null||u.notify.apply(u,ai([],Re(l),!1))},s.prototype.hasListeners=function(a){return this.eventHandlers.has(a)},s.prototype.registerPotentialNode=function(a,l){this.potentialNodes.set(a,l)},s.prototype.mount=function(a,l){var c=this,u;if(l===void 0&&(l=!1),!this.instance){this.isSVG=a instanceof SVGElement&&a.tagName!=="svg",this.instance=a;var d=this.options,h=d.layoutId,f=d.layout,p=d.visualElement;if(p&&!p.getInstance()&&p.mount(a),this.root.nodes.add(this),(u=this.parent)===null||u===void 0||u.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),l&&(f||h)&&(this.isLayoutDirty=!0),t){var g,y=function(){return c.root.updateBlockedByResize=!1};t(a,function(){c.root.updateBlockedByResize=!0,clearTimeout(g),g=window.setTimeout(y,250),Vu.hasAnimatedSinceResize&&(Vu.hasAnimatedSinceResize=!1,c.nodes.forEach(SJ))})}h&&this.root.registerSharedNode(h,this),this.options.animate!==!1&&p&&(h||f)&&this.addEventListener("didUpdate",function(m){var x,b,_,w,A,S=m.delta,E=m.hasLayoutChanged,k=m.hasRelativeTargetChanged,C=m.layout;if(c.isTreeAnimationBlocked()){c.target=void 0,c.relativeTarget=void 0;return}var T=(b=(x=c.options.transition)!==null&&x!==void 0?x:p.getDefaultTransition())!==null&&b!==void 0?b:PJ,$=p.getProps(),I=$.onLayoutAnimationStart,N=$.onLayoutAnimationComplete,D=!c.targetLayout||!H6(c.targetLayout,C)||k,Y=!E&&k;if(((_=c.resumeFrom)===null||_===void 0?void 0:_.instance)||Y||E&&(D||!c.currentAnimation)){c.resumeFrom&&(c.resumingFrom=c.resumeFrom,c.resumingFrom.resumingFrom=void 0),c.setAnimationOrigin(S,Y);var Q=X(X({},FA(T,"layout")),{onPlay:I,onComplete:N});p.shouldReduceMotion&&(Q.delay=0,Q.type=!1),c.startAnimation(Q)}else!E&&c.animationProgress===0&&c.finishAnimation(),c.isLead()&&((A=(w=c.options).onExitComplete)===null||A===void 0||A.call(w));c.targetLayout=C})}},s.prototype.unmount=function(){var a,l;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),(a=this.getStack())===null||a===void 0||a.remove(this),(l=this.parent)===null||l===void 0||l.children.delete(this),this.instance=void 0,Jl.preRender(this.updateProjection)},s.prototype.blockUpdate=function(){this.updateManuallyBlocked=!0},s.prototype.unblockUpdate=function(){this.updateManuallyBlocked=!1},s.prototype.isUpdateBlocked=function(){return this.updateManuallyBlocked||this.updateBlockedByResize},s.prototype.isTreeAnimationBlocked=function(){var a;return this.isAnimationBlocked||((a=this.parent)===null||a===void 0?void 0:a.isTreeAnimationBlocked())||!1},s.prototype.startUpdate=function(){var a;this.isUpdateBlocked()||(this.isUpdating=!0,(a=this.nodes)===null||a===void 0||a.forEach(kJ))},s.prototype.willUpdate=function(a){var l,c,u;if(a===void 0&&(a=!0),this.root.isUpdateBlocked()){(c=(l=this.options).onExitComplete)===null||c===void 0||c.call(l);return}if(!this.root.isUpdating&&this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var d=0;d<this.path.length;d++){var h=this.path[d];h.shouldResetTransform=!0,h.updateScroll()}var f=this.options,p=f.layoutId,g=f.layout;if(!(p===void 0&&!g)){var y=(u=this.options.visualElement)===null||u===void 0?void 0:u.getProps().transformTemplate;this.prevTransformTemplateValue=y==null?void 0:y(this.latestValues,""),this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}}},s.prototype.didUpdate=function(){var a=this.isUpdateBlocked();if(a){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(s5);return}!this.isUpdating||(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(OJ),this.potentialNodes.clear()),this.nodes.forEach(AJ),this.nodes.forEach(bJ),this.nodes.forEach(_J),this.clearAllSnapshots(),F1.update(),F1.preRender(),F1.render())},s.prototype.clearAllSnapshots=function(){this.nodes.forEach(wJ),this.sharedNodes.forEach(TJ)},s.prototype.scheduleUpdateProjection=function(){ci.preRender(this.updateProjection,!1,!0)},s.prototype.scheduleCheckAfterUnmount=function(){var a=this;ci.postRender(function(){a.isLayoutDirty?a.root.didUpdate():a.root.checkUpdateFailed()})},s.prototype.updateSnapshot=function(){if(!(this.snapshot||!this.instance)){var a=this.measure(),l=this.removeTransform(this.removeElementScroll(a));u5(l),this.snapshot={measured:a,layout:l,latestValues:{}}}},s.prototype.updateLayout=function(){var a;if(!!this.instance&&(this.updateScroll(),!(!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))){if(this.resumeFrom&&!this.resumeFrom.instance)for(var l=0;l<this.path.length;l++){var c=this.path[l];c.updateScroll()}var u=this.measure();u5(u);var d=this.layout;this.layout={measured:u,actual:this.removeElementScroll(u)},this.layoutCorrected=Je(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),(a=this.options.visualElement)===null||a===void 0||a.notifyLayoutMeasure(this.layout.actual,d==null?void 0:d.actual)}},s.prototype.updateScroll=function(){this.options.layoutScroll&&this.instance&&(this.isScrollRoot=i(this.instance),this.scroll=r(this.instance))},s.prototype.resetTransform=function(){var a;if(!!o){var l=this.isLayoutDirty||this.shouldResetTransform,c=this.projectionDelta&&!j6(this.projectionDelta),u=(a=this.options.visualElement)===null||a===void 0?void 0:a.getProps().transformTemplate,d=u==null?void 0:u(this.latestValues,""),h=d!==this.prevTransformTemplateValue;l&&(c||po(this.latestValues)||h)&&(o(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}},s.prototype.measure=function(){var a=this.options.visualElement;if(!a)return Je();var l=a.measureViewportBox(),c=this.root.scroll;return c&&(_o(l.x,c.x),_o(l.y,c.y)),l},s.prototype.removeElementScroll=function(a){var l=Je();Er(l,a);for(var c=0;c<this.path.length;c++){var u=this.path[c],d=u.scroll,h=u.options,f=u.isScrollRoot;if(u!==this.root&&d&&h.layoutScroll){if(f){Er(l,a);var p=this.root.scroll;p&&(_o(l.x,-p.x),_o(l.y,-p.y))}_o(l.x,d.x),_o(l.y,d.y)}}return l},s.prototype.applyTransform=function(a,l){l===void 0&&(l=!1);var c=Je();Er(c,a);for(var u=0;u<this.path.length;u++){var d=this.path[u];!l&&d.options.layoutScroll&&d.scroll&&d!==d.root&&dl(c,{x:-d.scroll.x,y:-d.scroll.y}),po(d.latestValues)&&dl(c,d.latestValues)}return po(this.latestValues)&&dl(c,this.latestValues),c},s.prototype.removeTransform=function(a){var l,c=Je();Er(c,a);for(var u=0;u<this.path.length;u++){var d=this.path[u];if(!!d.instance&&!!po(d.latestValues)){P6(d.latestValues)&&d.updateSnapshot();var h=Je(),f=d.measure();Er(h,f),n5(c,d.latestValues,(l=d.snapshot)===null||l===void 0?void 0:l.layout,h)}}return po(this.latestValues)&&n5(c,this.latestValues),c},s.prototype.setTargetDelta=function(a){this.targetDelta=a,this.root.scheduleUpdateProjection()},s.prototype.setOptions=function(a){var l;this.options=X(X(X({},this.options),a),{crossfade:(l=a.crossfade)!==null&&l!==void 0?l:!0})},s.prototype.clearMeasurements=function(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1},s.prototype.resolveTargetDelta=function(){var a,l=this.options,c=l.layout,u=l.layoutId;!this.layout||!(c||u)||(!this.targetDelta&&!this.relativeTarget&&(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget=Je(),this.relativeTargetOrigin=Je(),Yu(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),Er(this.relativeTarget,this.relativeTargetOrigin))),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Je(),this.targetWithTransforms=Je()),this.relativeTarget&&this.relativeTargetOrigin&&((a=this.relativeParent)===null||a===void 0?void 0:a.target)?bZ(this.target,this.relativeTarget,this.relativeParent.target):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):Er(this.target,this.layout.actual),O6(this.target,this.targetDelta)):Er(this.target,this.layout.actual),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&Boolean(this.relativeParent.resumingFrom)===Boolean(this.resumingFrom)&&!this.relativeParent.options.layoutScroll&&this.relativeParent.target&&(this.relativeTarget=Je(),this.relativeTargetOrigin=Je(),Yu(this.relativeTargetOrigin,this.target,this.relativeParent.target),Er(this.relativeTarget,this.relativeTargetOrigin)))))},s.prototype.getClosestProjectingParent=function(){if(!(!this.parent||po(this.parent.latestValues)))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()},s.prototype.calcProjection=function(){var a,l=this.options,c=l.layout,u=l.layoutId;if(this.isTreeAnimating=Boolean(((a=this.parent)===null||a===void 0?void 0:a.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!(!this.layout||!(c||u))){var d=this.getLead();Er(this.layoutCorrected,this.layout.actual),MZ(this.layoutCorrected,this.treeScale,this.path,Boolean(this.resumingFrom)||this!==d);var h=d.target;if(!!h){this.projectionDelta||(this.projectionDelta=Gu(),this.projectionDeltaWithTransform=Gu());var f=this.treeScale.x,p=this.treeScale.y,g=this.projectionTransform;Wu(this.projectionDelta,this.layoutCorrected,h,this.latestValues),this.projectionTransform=i5(this.projectionDelta,this.treeScale),(this.projectionTransform!==g||this.treeScale.x!==f||this.treeScale.y!==p)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",h))}}},s.prototype.hide=function(){this.isVisible=!1},s.prototype.show=function(){this.isVisible=!0},s.prototype.scheduleRender=function(a){var l,c,u;a===void 0&&(a=!0),(c=(l=this.options).scheduleRender)===null||c===void 0||c.call(l),a&&((u=this.getStack())===null||u===void 0||u.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)},s.prototype.setAnimationOrigin=function(a,l){var c=this,u;l===void 0&&(l=!1);var d=this.snapshot,h=(d==null?void 0:d.latestValues)||{},f=X({},this.latestValues),p=Gu();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!l;var g=Je(),y=d==null?void 0:d.isShared,m=(((u=this.getStack())===null||u===void 0?void 0:u.members.length)||0)<=1,x=Boolean(y&&!m&&this.options.crossfade===!0&&!this.path.some($J));this.animationProgress=0,this.mixTargetDelta=function(b){var _,w=b/1e3;a5(p.x,a.x,w),a5(p.y,a.y,w),c.setTargetDelta(p),c.relativeTarget&&c.relativeTargetOrigin&&c.layout&&((_=c.relativeParent)===null||_===void 0?void 0:_.layout)&&(Yu(g,c.layout.actual,c.relativeParent.layout.actual),MJ(c.relativeTarget,c.relativeTargetOrigin,g,w)),y&&(c.animationValues=f,uJ(f,h,c.latestValues,w,x,m)),c.root.scheduleUpdateProjection(),c.scheduleRender(),c.animationProgress=w},this.mixTargetDelta(0)},s.prototype.startAnimation=function(a){var l=this,c,u;this.notifyListeners("animationStart"),(c=this.currentAnimation)===null||c===void 0||c.stop(),this.resumingFrom&&((u=this.resumingFrom.currentAnimation)===null||u===void 0||u.stop()),this.pendingAnimation&&(Jl.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ci.update(function(){Vu.hasAnimatedSinceResize=!0,l.currentAnimation=lJ(0,o5,X(X({},a),{onUpdate:function(d){var h;l.mixTargetDelta(d),(h=a.onUpdate)===null||h===void 0||h.call(a,d)},onComplete:function(){var d;(d=a.onComplete)===null||d===void 0||d.call(a),l.completeAnimation()}})),l.resumingFrom&&(l.resumingFrom.currentAnimation=l.currentAnimation),l.pendingAnimation=void 0})},s.prototype.completeAnimation=function(){var a;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),(a=this.getStack())===null||a===void 0||a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")},s.prototype.finishAnimation=function(){var a;this.currentAnimation&&((a=this.mixTargetDelta)===null||a===void 0||a.call(this,o5),this.currentAnimation.stop()),this.completeAnimation()},s.prototype.applyTransformsToTarget=function(){var a=this.getLead(),l=a.targetWithTransforms,c=a.target,u=a.layout,d=a.latestValues;!l||!c||!u||(Er(l,c),dl(l,d),Wu(this.projectionDeltaWithTransform,this.layoutCorrected,l,d))},s.prototype.registerSharedNode=function(a,l){var c,u,d;this.sharedNodes.has(a)||this.sharedNodes.set(a,new mJ);var h=this.sharedNodes.get(a);h.add(l),l.promote({transition:(c=l.options.initialPromotionConfig)===null||c===void 0?void 0:c.transition,preserveFollowOpacity:(d=(u=l.options.initialPromotionConfig)===null||u===void 0?void 0:u.shouldPreserveFollowOpacity)===null||d===void 0?void 0:d.call(u,l)})},s.prototype.isLead=function(){var a=this.getStack();return a?a.lead===this:!0},s.prototype.getLead=function(){var a,l=this.options.layoutId;return l?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this},s.prototype.getPrevLead=function(){var a,l=this.options.layoutId;return l?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0},s.prototype.getStack=function(){var a=this.options.layoutId;if(a)return this.root.sharedNodes.get(a)},s.prototype.promote=function(a){var l=a===void 0?{}:a,c=l.needsReset,u=l.transition,d=l.preserveFollowOpacity,h=this.getStack();h&&h.promote(this,d),c&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})},s.prototype.relegate=function(){var a=this.getStack();return a?a.relegate(this):!1},s.prototype.resetRotation=function(){var a=this.options.visualElement;if(!!a){for(var l=!1,c={},u=0;u<xb.length;u++){var d=xb[u],h="rotate"+d;!a.getStaticValue(h)||(l=!0,c[h]=a.getStaticValue(h),a.setStaticValue(h,0))}if(!!l){a==null||a.syncRender();for(var h in c)a.setStaticValue(h,c[h]);a.scheduleRender()}}},s.prototype.getProjectionStyles=function(a){var l,c,u,d,h,f;a===void 0&&(a={});var p={};if(!this.instance||this.isSVG)return p;if(this.isVisible)p.visibility="";else return{visibility:"hidden"};var g=(l=this.options.visualElement)===null||l===void 0?void 0:l.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,p.opacity="",p.pointerEvents=sg(a.pointerEvents)||"",p.transform=g?g(this.latestValues,""):"none",p;var y=this.getLead();if(!this.projectionDelta||!this.layout||!y.target){var m={};return this.options.layoutId&&(m.opacity=(c=this.latestValues.opacity)!==null&&c!==void 0?c:1,m.pointerEvents=sg(a.pointerEvents)||""),this.hasProjected&&!po(this.latestValues)&&(m.transform=g?g({},""):"none",this.hasProjected=!1),m}var x=y.animationValues||y.latestValues;this.applyTransformsToTarget(),p.transform=i5(this.projectionDeltaWithTransform,this.treeScale,x),g&&(p.transform=g(x,p.transform));var b=this.projectionDelta,_=b.x,w=b.y;p.transformOrigin="".concat(_.origin*100,"% ").concat(w.origin*100,"% 0"),y.animationValues?p.opacity=y===this?(d=(u=x.opacity)!==null&&u!==void 0?u:this.latestValues.opacity)!==null&&d!==void 0?d:1:this.preserveOpacity?this.latestValues.opacity:x.opacityExit:p.opacity=y===this?(h=x.opacity)!==null&&h!==void 0?h:"":(f=x.opacityExit)!==null&&f!==void 0?f:0;for(var A in _m)if(x[A]!==void 0){var S=_m[A],E=S.correct,k=S.applyTo,C=E(x[A],y);if(k)for(var T=k.length,$=0;$<T;$++)p[k[$]]=C;else p[A]=C}return this.options.layoutId&&(p.pointerEvents=y===this?sg(a.pointerEvents)||"":"none"),p},s.prototype.clearSnapshot=function(){this.resumeFrom=this.snapshot=void 0},s.prototype.resetTree=function(){this.root.nodes.forEach(function(a){var l;return(l=a.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(s5),this.root.sharedNodes.clear()},s}()}function bJ(e){e.updateLayout()}function _J(e){var t,n,r,i,o=(n=(t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)!==null&&n!==void 0?n:e.snapshot;if(e.isLead()&&e.layout&&o&&e.hasListeners("didUpdate")){var s=e.layout,a=s.actual,l=s.measured;e.options.animationType==="size"?Kr(function(x){var b=o.isShared?o.measured[x]:o.layout[x],_=Qi(b);b.min=a[x].min,b.max=b.min+_}):e.options.animationType==="position"&&Kr(function(x){var b=o.isShared?o.measured[x]:o.layout[x],_=Qi(a[x]);b.max=b.min+_});var c=Gu();Wu(c,a,o.layout);var u=Gu();o.isShared?Wu(u,e.applyTransform(l,!0),o.measured):Wu(u,a,o.layout);var d=!j6(c),h=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){var f=e.relativeParent,p=f.snapshot,g=f.layout;if(p&&g){var y=Je();Yu(y,o.layout,p.layout);var m=Je();Yu(m,a,g.actual),H6(y,m)||(h=!0)}}e.notifyListeners("didUpdate",{layout:a,snapshot:o,delta:u,layoutDelta:c,hasLayoutChanged:d,hasRelativeTargetChanged:h})}else e.isLead()&&((i=(r=e.options).onExitComplete)===null||i===void 0||i.call(r));e.options.transition=void 0}function wJ(e){e.clearSnapshot()}function s5(e){e.clearMeasurements()}function AJ(e){var t=e.options.visualElement;t!=null&&t.getProps().onBeforeLayoutMeasure&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function SJ(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function EJ(e){e.resolveTargetDelta()}function CJ(e){e.calcProjection()}function kJ(e){e.resetRotation()}function TJ(e){e.removeLeadSnapshot()}function a5(e,t,n){e.translate=he(t.translate,0,n),e.scale=he(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function l5(e,t,n,r){e.min=he(t.min,n.min,r),e.max=he(t.max,n.max,r)}function MJ(e,t,n,r){l5(e.x,t.x,n.x,r),l5(e.y,t.y,n.y,r)}function $J(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var PJ={duration:.45,ease:[.4,0,.1,1]};function OJ(e,t){for(var n=e.root,r=e.path.length-1;r>=0;r--)if(Boolean(e.path[r].instance)){n=e.path[r];break}var i=n&&n!==e.root?n.instance:document,o=i.querySelector('[data-projection-id="'.concat(t,'"]'));o&&e.mount(o,!0)}function c5(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function u5(e){c5(e.x),c5(e.y)}var RJ=U6({attachResizeListener:function(e,t){return ov(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),U1={current:void 0},DJ=U6({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!U1.current){var e=new RJ(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),U1.current=e}return U1.current},resetTransform:function(e,t){e.style.transform=t!=null?t:"none"},checkIsScrollRoot:function(e){return Boolean(window.getComputedStyle(e).position==="fixed")}}),LJ=X(X(X(X({},vZ),RK),FZ),aJ),HA=EX(function(e,t){return dQ(e,t,LJ,nJ,DJ)}),IJ=Object.defineProperty,NJ=(e,t,n)=>t in e?IJ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,tt=(e,t,n)=>(NJ(e,typeof t!="symbol"?t+"":t,n),n);const Zd={colorPrimary100:"#FFFFFF",colorPrimary99:"#04162d",colorPrimary95:"#C8F9FF",colorPrimary90:"#87F2FF",colorPrimary80:"#4ED8E9",colorPrimary70:"#21BCCC",colorPrimary60:"#00A0AF",colorPrimary50:"#008491",colorPrimary40:"#006974",colorPrimary30:"#004F57",colorPrimary20:"#00363C",colorPrimary10:"#001F23",colorPrimary0:"#000000"},Rt={colorNeutral100:"#FFFFFF",colorNeutral99:"#FBFDFD",colorNeutral95:"#EFF1F1",colorNeutral90:"#E0E3E3",colorNeutral80:"#C4C7C7",colorNeutral70:"#A9ACAC",colorNeutral60:"#8E9191",colorNeutral50:"#747878",colorNeutral40:"#5C5F5F",colorNeutral30:"#444747",colorNeutral20:"#2D3131",colorNeutral10:"#191C1D",colorNeutral0:"#000000"},UA={colorBlue70:"#0056D3"},FJ=Object.freeze(Object.defineProperty({__proto__:null,primaryColors:Zd,neutralColors:Rt,blueColors:UA},Symbol.toStringTag,{value:"Module"})),mr=4,zJ={"--ll-color-primary":Zd.colorPrimary50,"--ll-color-primary-variant1":Zd.colorPrimary40,"--ll-color-background":Rt.colorNeutral100,"--ll-color-surface":Rt.colorNeutral95,"--ll-color-surface-variant1":Rt.colorNeutral90,"--ll-color-surface-variant2":Rt.colorNeutral80,"--ll-color-on-primary":Rt.colorNeutral100,"--ll-color-on-primary-variant1":Rt.colorNeutral90,"--ll-color-on-background":Rt.colorNeutral10,"--ll-color-on-background-variant1":Rt.colorNeutral30,"--ll-color-on-surface":Rt.colorNeutral10,"--ll-color-on-surface-variant1":Rt.colorNeutral30,"--ll-color-placeholder":Rt.colorNeutral60,"--ll-color-disabled":Rt.colorNeutral60,"--ll-color-border":Rt.colorNeutral90,"--ll-color-link":UA.colorBlue70},BJ={"--ll-border-radius-small":`${mr}px`,"--ll-border-radius-medium":`${2*mr}px`,"--ll-border-radius-large":`${4*mr}px`},VJ={"--ll-shadow-small":"rgb(0 0 0 / 18%) 0px 2px 5px","--ll-shadow-medium":"0px 5px 11px -4px rgba(0,0,0,0.75)"},jJ={"--ll-spacing-auto":"auto","--ll-spacing-base-unit":`${mr}px`,"--ll-spacing-xx-small":"var(--ll-spacing-base-unit)","--ll-spacing-x-small":"calc(var(--ll-spacing-base-unit) * 2)","--ll-spacing-small":"calc(var(--ll-spacing-base-unit) * 3)","--ll-spacing-medium":"calc(var(--ll-spacing-base-unit) * 4)","--ll-spacing-large":"calc(var(--ll-spacing-base-unit) * 6)","--ll-spacing-x-large":"calc(var(--ll-spacing-base-unit) * 8)","--ll-spacing-xx-large":"calc(var(--ll-spacing-base-unit) * 12)","--ll-spacing-xxx-large":"calc(var(--ll-spacing-base-unit) * 16)"},HJ={"--ll-font-family":"Inter, sans-serif","--ll-font-family-mono":"Consolas, Andale Mono WT, Andale Mono, Lucida Console, Lucida Sans Typewriter, DejaVu Sans Mono, Bitstream Vera Sans Mono, Liberation Mono, Nimbus Mono L, Monaco, Courier New, Courier, monospace;"},UJ={"--ll-font-size-base":"12px","--ll-font-size-h1":"calc(var(--ll-font-size-base) * 4)","--ll-font-size-h2":"calc(var(--ll-font-size-base) * 3)","--ll-font-size-h3":"calc(var(--ll-font-size-base) * 2)","--ll-font-size-h4":"calc(var(--ll-font-size-base) * 1.667)","--ll-font-size-h5":"calc(var(--ll-font-size-base) * 1.5)","--ll-font-size-h6":"calc(var(--ll-font-size-base) * 1.333)","--ll-font-size-p":"calc(var(--ll-font-size-base) * 1.167)","--ll-font-size-caption-1":"var(--ll-font-size-base)","--ll-font-size-caption-2":"calc(var(--ll-font-size-base) * 0.833)"},WJ={"--ll-font-weight-light":"400","--ll-font-weight-normal":"500","--ll-font-weight-medium":"600","--ll-font-weight-bold":"700"},WA={...zJ,...BJ,...VJ,...jJ,...HJ,...UJ,...WJ},YJ={...WA,"--ll-color-primary":Zd.colorPrimary60,"--ll-color-primary-variant1":Zd.colorPrimary50,"--ll-color-background":Rt.colorNeutral10,"--ll-color-surface":Rt.colorNeutral20,"--ll-color-surface-variant1":Rt.colorNeutral30,"--ll-color-surface-variant2":Rt.colorNeutral40,"--ll-color-on-primary":Rt.colorNeutral100,"--ll-color-on-primary-variant1":Rt.colorNeutral90,"--ll-color-on-background":Rt.colorNeutral99,"--ll-color-on-background-variant1":Rt.colorNeutral80,"--ll-color-on-surface":Rt.colorNeutral80,"--ll-color-on-surface-variant1":Rt.colorNeutral90,"--ll-color-placeholder":Rt.colorNeutral70,"--ll-color-disabled":Rt.colorNeutral70,"--ll-color-border":Rt.colorNeutral30,"--ll-color-link":UA.colorBlue70},GJ=Object.keys(WA),L=GJ.reduce((e,t)=>({...e,[t]:`var(${t})`}),{}),qJ={day:WA,night:YJ},XJ=mL`
|
|
79
|
+
:root {
|
|
80
|
+
${({themeName:e,overrides:t})=>({...qJ[e||"day"],...t})};
|
|
81
|
+
}
|
|
82
|
+
`,QJ=e=>e,KJ=QJ({default:{ease:"easeInOut",duration:.15},defaultSlow:{ease:"easeInOut",duration:.4},spring:{type:"spring",duration:.4,bounce:.3}}),ZJ=Object.freeze(Object.defineProperty({__proto__:null,transitions:KJ},Symbol.toStringTag,{value:"Module"})),YA={mobileS:320,mobileM:375,mobileL:425,tablet:768,laptopS:1024,laptopL:1440,desktop:2560},JJ=Object.freeze(Object.defineProperty({__proto__:null,screenSizes:YA},Symbol.toStringTag,{value:"Module"})),PEt={colors:FJ,...ZJ,...JJ},ttt=({$size:e})=>e==="small"?_t`
|
|
83
|
+
padding: calc(${L["--ll-spacing-xx-small"]} / 2) ${L["--ll-spacing-xx-small"]};
|
|
84
|
+
`:e==="large"?_t`
|
|
85
|
+
padding: calc(${L["--ll-spacing-small"]} / 2) ${L["--ll-spacing-medium"]};
|
|
86
|
+
font-size: ${L["--ll-font-size-p"]};
|
|
87
|
+
line-height: ${L["--ll-font-size-h6"]};
|
|
88
|
+
`:_t`
|
|
89
|
+
padding: ${L["--ll-spacing-xx-small"]} ${L["--ll-spacing-x-small"]};
|
|
90
|
+
`;z.span`
|
|
91
|
+
white-space: nowrap;
|
|
92
|
+
display: inline-flex;
|
|
93
|
+
color: ${({$textColor:e})=>e};
|
|
94
|
+
background-color: ${({$backgroundColor:e})=>e};
|
|
95
|
+
border-radius: ${L["--ll-border-radius-small"]};
|
|
96
|
+
line-height: 1;
|
|
97
|
+
font-family: ${L["--ll-font-family"]};
|
|
98
|
+
font-size: ${L["--ll-font-size-caption-1"]};
|
|
99
|
+
justify-content: center;
|
|
100
|
+
|
|
101
|
+
${ttt};
|
|
102
|
+
`;var cv={exports:{}},Yc={};/**
|
|
103
|
+
* @license React
|
|
104
|
+
* react-jsx-runtime.production.min.js
|
|
105
|
+
*
|
|
106
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
107
|
+
*
|
|
108
|
+
* This source code is licensed under the MIT license found in the
|
|
109
|
+
* LICENSE file in the root directory of this source tree.
|
|
110
|
+
*/var d5;function ett(){if(d5)return Yc;d5=1;var e=Z,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function s(a,l,c){var u,d={},h=null,f=null;c!==void 0&&(h=""+c),l.key!==void 0&&(h=""+l.key),l.ref!==void 0&&(f=l.ref);for(u in l)r.call(l,u)&&!o.hasOwnProperty(u)&&(d[u]=l[u]);if(a&&a.defaultProps)for(u in l=a.defaultProps,l)d[u]===void 0&&(d[u]=l[u]);return{$$typeof:t,type:a,key:h,ref:f,props:d,_owner:i.current}}return Yc.Fragment=n,Yc.jsx=s,Yc.jsxs=s,Yc}(function(e){e.exports=ett()})(cv);const uv=cv.exports.Fragment,at=cv.exports.jsx,fr=cv.exports.jsxs,ntt=z.div`
|
|
111
|
+
height: ${({height:e})=>e}px;
|
|
112
|
+
width: ${({width:e})=>e}px;
|
|
113
|
+
fill: ${({fill:e})=>e};
|
|
114
|
+
display: flex;
|
|
115
|
+
|
|
116
|
+
& > svg {
|
|
117
|
+
fill: inherit;
|
|
118
|
+
height: 100%;
|
|
119
|
+
width: 100%;
|
|
120
|
+
}
|
|
121
|
+
`,GA=({SVGElement:e,fill:t="--ll-color-on-background",height:n=24,width:r=24})=>at(ntt,{fill:t,height:n,width:r,children:at(e,{})}),h5=({$variant:e})=>e==="h1"?L["--ll-font-size-h1"]:e==="h2"?L["--ll-font-size-h2"]:e==="h3"?L["--ll-font-size-h3"]:e==="h4"?L["--ll-font-size-h4"]:e==="h5"?L["--ll-font-size-h5"]:e==="h6"?L["--ll-font-size-h6"]:e==="p"?L["--ll-font-size-p"]:e==="caption1"?L["--ll-font-size-caption-1"]:e==="caption2"?L["--ll-font-size-caption-2"]:L["--ll-font-size-h2"],f5=({$color:e})=>e in L?L[e]:e,W6=z.span`
|
|
122
|
+
overflow: hidden;
|
|
123
|
+
display: inline-block;
|
|
124
|
+
width: 100%;
|
|
125
|
+
line-height: ${({$lineHeight:e})=>e||1.45};
|
|
126
|
+
margin: 0 0 ${({$noMargin:e})=>e?"0":"0.5em"} 0;
|
|
127
|
+
font-size: inherit;
|
|
128
|
+
font-weight: inherit;
|
|
129
|
+
`,rtt=z.div`
|
|
130
|
+
${e=>_t`
|
|
131
|
+
text-align: ${e.$align};
|
|
132
|
+
font-size: ${h5(e)};
|
|
133
|
+
font-family: ${e.$family==="sans-serif"?L["--ll-font-family"]:L["--ll-font-family-mono"]};
|
|
134
|
+
font-variant: ${e.$fontVariant};
|
|
135
|
+
letter-spacing: ${e.$letterSpacing};
|
|
136
|
+
color: ${f5(e)};
|
|
137
|
+
font-weight: ${L[e.$weight]};
|
|
138
|
+
text-transform: ${e.$textTransform};
|
|
139
|
+
overflow: hidden;
|
|
140
|
+
display: flex;
|
|
141
|
+
|
|
142
|
+
svg {
|
|
143
|
+
height: ${h5(e)};
|
|
144
|
+
fill: ${f5(e)};
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
${W6} {
|
|
148
|
+
${e.$lineClamp&&_t`
|
|
149
|
+
display: -webkit-box;
|
|
150
|
+
-webkit-line-clamp: ${e.$lineClamp};
|
|
151
|
+
-webkit-box-orient: vertical;
|
|
152
|
+
overflow: hidden;
|
|
153
|
+
text-overflow: ellipsis;
|
|
154
|
+
`}
|
|
155
|
+
}
|
|
156
|
+
`}
|
|
157
|
+
`,Lb=({children:e,variant:t="p",align:n,color:r="--ll-color-on-background",lineClamp:i,noMargin:o,lineHeight:s,weight:a="--ll-font-weight-normal",family:l="sans-serif",className:c,fontVariant:u="initial",textTransform:d="none",letterSpacing:h})=>{const f=["caption1","caption2","p"].includes(t)?"p":t;return at(rtt,{$variant:t,$align:n,$color:r,$lineClamp:i,$weight:a,$family:l,$fontVariant:u,$letterSpacing:h,$textTransform:d,children:at(W6,{as:f,className:c,$noMargin:o,$lineHeight:s,children:e})})};z.a`
|
|
158
|
+
font-family: ${L["--ll-font-family"]};
|
|
159
|
+
font-size: ${L["--ll-font-size-p"]};
|
|
160
|
+
color: ${L["--ll-color-link"]};
|
|
161
|
+
cursor: pointer;
|
|
162
|
+
|
|
163
|
+
${({lineClamp:e})=>e&&_t`
|
|
164
|
+
overflow: hidden;
|
|
165
|
+
text-overflow: ellipsis;
|
|
166
|
+
display: -webkit-box;
|
|
167
|
+
-webkit-box-orient: vertical;
|
|
168
|
+
-webkit-line-clamp: ${e};
|
|
169
|
+
`}
|
|
170
|
+
`;function rt(){return rt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rt.apply(this,arguments)}function itt(e,t){const n=v.exports.createContext(t);function r(o){const{children:s,...a}=o,l=v.exports.useMemo(()=>a,Object.values(a));return v.exports.createElement(n.Provider,{value:l},s)}function i(o){const s=v.exports.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${o}\` must be used within \`${e}\``)}return r.displayName=e+"Provider",[r,i]}function bc(e,t=[]){let n=[];function r(o,s){const a=v.exports.createContext(s),l=n.length;n=[...n,s];function c(d){const{scope:h,children:f,...p}=d,g=(h==null?void 0:h[e][l])||a,y=v.exports.useMemo(()=>p,Object.values(p));return v.exports.createElement(g.Provider,{value:y},f)}function u(d,h){const f=(h==null?void 0:h[e][l])||a,p=v.exports.useContext(f);if(p)return p;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${o}\``)}return c.displayName=o+"Provider",[c,u]}const i=()=>{const o=n.map(s=>v.exports.createContext(s));return function(s){const a=(s==null?void 0:s[e])||o;return v.exports.useMemo(()=>({[`__scope${e}`]:{...s,[e]:a}}),[s,a])}};return i.scopeName=e,[r,ott(i,...t)]}function ott(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(i){const o=r.reduce((s,{useScope:a,scopeName:l})=>{const c=a(i)[`__scope${l}`];return{...s,...c}},{});return v.exports.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}function stt(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Y6(...e){return t=>e.forEach(n=>stt(n,t))}function Ut(...e){return v.exports.useCallback(Y6(...e),e)}const ec=v.exports.forwardRef((e,t)=>{const{children:n,...r}=e,i=v.exports.Children.toArray(n),o=i.find(ltt);if(o){const s=o.props.children,a=i.map(l=>l===o?v.exports.Children.count(s)>1?v.exports.Children.only(null):v.exports.isValidElement(s)?s.props.children:null:l);return v.exports.createElement(Ib,rt({},r,{ref:t}),v.exports.isValidElement(s)?v.exports.cloneElement(s,void 0,a):null)}return v.exports.createElement(Ib,rt({},r,{ref:t}),n)});ec.displayName="Slot";const Ib=v.exports.forwardRef((e,t)=>{const{children:n,...r}=e;return v.exports.isValidElement(n)?v.exports.cloneElement(n,{...ctt(r,n.props),ref:Y6(t,n.ref)}):v.exports.Children.count(n)>1?v.exports.Children.only(null):null});Ib.displayName="SlotClone";const att=({children:e})=>v.exports.createElement(v.exports.Fragment,null,e);function ltt(e){return v.exports.isValidElement(e)&&e.type===att}function ctt(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?n[r]=(...s)=>{o==null||o(...s),i==null||i(...s)}:r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}const utt=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"],$t=utt.reduce((e,t)=>{const n=v.exports.forwardRef((r,i)=>{const{asChild:o,...s}=r,a=o?ec:t;return v.exports.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),v.exports.createElement(a,rt({},s,{ref:i}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function dtt(e,t){e&&Vn.exports.flushSync(()=>e.dispatchEvent(t))}const Fn=Boolean(globalThis==null?void 0:globalThis.document)?v.exports.useLayoutEffect:()=>{},htt=J_["useId".toString()]||(()=>{});let ftt=0;function zh(e){const[t,n]=v.exports.useState(htt());return Fn(()=>{e||n(r=>r!=null?r:String(ftt++))},[e]),e||(t?`radix-${t}`:"")}const ptt="Label",[gtt,mtt]=itt(ptt,{id:void 0,controlRef:{current:null}}),vtt=v.exports.forwardRef((e,t)=>{const{htmlFor:n,id:r,...i}=e,o=v.exports.useRef(null),s=v.exports.useRef(null),a=Ut(t,s),l=zh(r);return v.exports.useEffect(()=>{if(n){const c=document.getElementById(n);if(s.current&&c){const u=()=>c.getAttribute("aria-labelledby"),d=[l,u()].filter(Boolean).join(" ");return c.setAttribute("aria-labelledby",d),o.current=c,()=>{var h;const f=(h=u())===null||h===void 0?void 0:h.replace(l,"");f===""?c.removeAttribute("aria-labelledby"):f&&c.setAttribute("aria-labelledby",f)}}}},[l,n]),v.exports.createElement(gtt,{id:l,controlRef:o},v.exports.createElement($t.span,rt({role:"label",id:l},i,{ref:a,onMouseDown:c=>{var u;(u=e.onMouseDown)===null||u===void 0||u.call(e,c),!c.defaultPrevented&&c.detail>1&&c.preventDefault()},onClick:c=>{var u;if((u=e.onClick)===null||u===void 0||u.call(e,c),!o.current||c.defaultPrevented)return;const d=o.current.contains(c.target),h=c.isTrusted===!0;!d&&h&&(o.current.click(),o.current.focus())}})))}),G6=e=>{const t=mtt("LabelConsumer"),{controlRef:n}=t;return v.exports.useEffect(()=>{e&&(n.current=e)},[e,n]),t.id},ytt=vtt,xtt=z(ytt)`
|
|
171
|
+
font-size: ${L["--ll-font-size-p"]};
|
|
172
|
+
font-family: ${L["--ll-font-family"]};
|
|
173
|
+
color: ${L["--ll-color-placeholder"]};
|
|
174
|
+
`,q6=e=>at(xtt,{...e});let p5=0;const btt=()=>(p5+=1,`id-${p5}`),_tt=J0`
|
|
175
|
+
0% {
|
|
176
|
+
transform: rotate(0deg);
|
|
177
|
+
}
|
|
178
|
+
100% {
|
|
179
|
+
transform: rotate(360deg);
|
|
180
|
+
}
|
|
181
|
+
`,W1={small:mr*4,medium:mr*6,large:mr*8},wtt=z.div`
|
|
182
|
+
height: ${({size:e})=>W1[e]}px;
|
|
183
|
+
width: ${({size:e})=>W1[e]}px;
|
|
184
|
+
border: ${({size:e})=>W1[e]/6}px solid ${L["--ll-color-on-surface-variant1"]};
|
|
185
|
+
border-bottom-color: transparent;
|
|
186
|
+
border-radius: 50%;
|
|
187
|
+
display: inline-block;
|
|
188
|
+
box-sizing: border-box;
|
|
189
|
+
animation: ${_tt} 1s linear infinite;
|
|
190
|
+
`,X6=({size:e="medium"})=>at(wtt,{size:e}),qu={primary:{background:L["--ll-color-primary"],onBackground:L["--ll-color-on-primary"],hover:L["--ll-color-primary-variant1"]}},Att=({size:e})=>e==="small"?`font-size: ${L["--ll-font-size-caption-1"]}`:`font-size: ${L["--ll-font-size-p"]}`,qA=({size:e})=>e==="small"?`${mr*8}px`:e==="large"?`${mr*12}px`:`${mr*10}px`,Stt=({size:e})=>e==="small"?`padding: 0 ${L["--ll-spacing-x-small"]}`:e==="large"?`padding: 0 ${L["--ll-spacing-medium"]}`:`padding: 0 ${L["--ll-spacing-small"]}`,Ett=({size:e})=>e==="large"?"svg { height: 24px; }":e==="small"?"svg { height: 12px }":"svg { height: 20px; }",Ctt=_t`
|
|
191
|
+
color: ${L["--ll-color-on-background"]};
|
|
192
|
+
|
|
193
|
+
&:disabled {
|
|
194
|
+
cursor: default;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
height: ${qA};
|
|
198
|
+
`,ktt=_t`
|
|
199
|
+
${({color:e="primary"})=>_t`
|
|
200
|
+
background-color: ${qu[e].background};
|
|
201
|
+
color: ${qu[e].onBackground};
|
|
202
|
+
border: 1px solid transparent;
|
|
203
|
+
|
|
204
|
+
&:hover {
|
|
205
|
+
background-color: ${qu[e].hover};
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
&:disabled {
|
|
209
|
+
background-color: ${L["--ll-color-disabled"]};
|
|
210
|
+
cursor: default;
|
|
211
|
+
}
|
|
212
|
+
`};
|
|
213
|
+
height: ${qA};
|
|
214
|
+
`,Ttt=_t`
|
|
215
|
+
${({color:e="primary"})=>_t`
|
|
216
|
+
border-color: ${qu[e].background};
|
|
217
|
+
border-width: 1px;
|
|
218
|
+
border-style: solid;
|
|
219
|
+
color: ${qu[e].background};
|
|
220
|
+
`};
|
|
221
|
+
|
|
222
|
+
&:hover {
|
|
223
|
+
background-color: rgba(0, 0, 0, 0.03);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
height: ${qA};
|
|
227
|
+
`,Mtt=e=>({contained:ktt,outlined:Ttt,text:Ctt})[e.variant],$tt=z.div`
|
|
228
|
+
display: flex;
|
|
229
|
+
align-items: center;
|
|
230
|
+
margin-right: ${L["--ll-spacing-x-small"]};
|
|
231
|
+
margin-left: calc(-1 * ${L["--ll-spacing-xx-small"]});
|
|
232
|
+
`,Ptt=z.button`
|
|
233
|
+
font-weight: ${L["--ll-font-weight-normal"]};
|
|
234
|
+
border-radius: ${L["--ll-border-radius-small"]};
|
|
235
|
+
align-items: center;
|
|
236
|
+
justify-content: center;
|
|
237
|
+
cursor: pointer;
|
|
238
|
+
display: inline-flex;
|
|
239
|
+
background: none;
|
|
240
|
+
border: none;
|
|
241
|
+
box-sizing: border-box;
|
|
242
|
+
|
|
243
|
+
svg {
|
|
244
|
+
fill: currentColor;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
${Mtt};
|
|
248
|
+
${Ett};
|
|
249
|
+
${Att};
|
|
250
|
+
${Stt};
|
|
251
|
+
`,Q6=Z.forwardRef(({children:e,disabled:t=!1,onClick:n,variant:r="contained",startAdornment:i,size:o="medium",type:s="button",color:a,isLoading:l,className:c},u)=>at(Ptt,{variant:r,size:o,onClick:d=>{t||!n||l||n(d)},disabled:t||l,className:c,color:a,type:s,ref:u,children:l?at(X6,{}):fr(uv,{children:[i&&at($tt,{children:i}),e]})}));Q6.displayName="Button";const Ott=z.div`
|
|
252
|
+
display: flex;
|
|
253
|
+
flex-direction: column;
|
|
254
|
+
`,Rtt=z.div`
|
|
255
|
+
position: relative;
|
|
256
|
+
`,Dtt=z(Q6)`
|
|
257
|
+
position: absolute;
|
|
258
|
+
right: 0px;
|
|
259
|
+
top: 0px;
|
|
260
|
+
`,Ltt=z.input`
|
|
261
|
+
all: unset;
|
|
262
|
+
display: inline-flex;
|
|
263
|
+
align-items: center;
|
|
264
|
+
justify-content: center;
|
|
265
|
+
border-radius: ${L["--ll-border-radius-small"]};
|
|
266
|
+
padding: 0 ${L["--ll-spacing-x-small"]};
|
|
267
|
+
height: 30px;
|
|
268
|
+
line-height: 1;
|
|
269
|
+
font-size: ${L["--ll-font-size-p"]};
|
|
270
|
+
font-family: ${L["--ll-font-family"]};
|
|
271
|
+
color: ${L["--ll-color-on-background"]};
|
|
272
|
+
background-color: ${L["--ll-color-background"]};
|
|
273
|
+
border: 1px solid ${L["--ll-color-border"]};
|
|
274
|
+
width: calc(100% - ${L["--ll-spacing-medium"]});
|
|
275
|
+
|
|
276
|
+
&:focus {
|
|
277
|
+
box-shadow: ${L["--ll-shadow-small"]};
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
// Set to 16px to avoid mobile to zoom in to the input
|
|
281
|
+
@media (max-width: ${YA.tablet}px) {
|
|
282
|
+
font-size: ${L["--ll-font-size-h6"]};
|
|
283
|
+
}
|
|
284
|
+
`,Itt=e=>O("svg",{viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e,children:O("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 0C4.47 0 0 4.47 0 10C0 15.53 4.47 20 10 20C15.53 20 20 15.53 20 10C20 4.47 15.53 0 10 0ZM10 18C5.59 18 2 14.41 2 10C2 5.59 5.59 2 10 2C14.41 2 18 5.59 18 10C18 14.41 14.41 18 10 18ZM10 8.59L13.59 5L15 6.41L11.41 10L15 13.59L13.59 15L10 11.41L6.41 15L5 13.59L8.59 10L5 6.41L6.41 5L10 8.59Z"})}),OEt=({value:e,label:t,placeholder:n,className:r,autofocus:i=!1,onBlur:o,onFocus:s,onClear:a,onChange:l})=>{const[c]=v.exports.useState(()=>btt()),u=v.exports.useMemo(()=>t?at(q6,{htmlFor:c,style:{lineHeight:"26px"},children:t}):null,[t]);return fr(Ott,{children:[u,fr(Rtt,{children:[at(Ltt,{autoFocus:i,className:r,id:c,value:e,onBlur:o,onFocus:s,onChange:l,placeholder:n}),a&&at(Dtt,{size:"small",variant:"text",onClick:a,children:at(Itt,{})})]})]})},g5={small:20,medium:32,large:40};z(HA.div)`
|
|
285
|
+
background: linear-gradient(
|
|
286
|
+
to top,
|
|
287
|
+
${({$backgroundColorHighlight:e})=>e},
|
|
288
|
+
${({$backgroundColor:e})=>e}
|
|
289
|
+
);
|
|
290
|
+
border-radius: 50%;
|
|
291
|
+
border: 2px solid #fff;
|
|
292
|
+
height: ${({$size:e})=>g5[e]}px;
|
|
293
|
+
width: ${({$size:e})=>g5[e]}px;
|
|
294
|
+
display: flex;
|
|
295
|
+
justify-content: center;
|
|
296
|
+
align-items: center;
|
|
297
|
+
box-shadow: ${({$renderForPrint:e})=>e&&L["--ll-shadow-small"]};
|
|
298
|
+
`;function Dt(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function as(e){const t=v.exports.useRef(e);return v.exports.useEffect(()=>{t.current=e}),v.exports.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function Jd({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,i]=Ntt({defaultProp:t,onChange:n}),o=e!==void 0,s=o?e:r,a=as(n),l=v.exports.useCallback(c=>{if(o){const u=typeof c=="function"?c(e):c;u!==e&&a(u)}else i(c)},[o,e,i,a]);return[s,l]}function Ntt({defaultProp:e,onChange:t}){const n=v.exports.useState(e),[r]=n,i=v.exports.useRef(r),o=as(t);return v.exports.useEffect(()=>{i.current!==r&&(o(r),i.current=r)},[r,i,o]),n}function XA(e){const t=v.exports.useRef({value:e,previous:e});return v.exports.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function QA(e){const[t,n]=v.exports.useState(void 0);return Fn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const o=i[0];let s,a;if("borderBoxSize"in o){const l=o.borderBoxSize,c=Array.isArray(l)?l[0]:l;s=c.inlineSize,a=c.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const K6="Switch",[Ftt,REt]=bc(K6),[ztt,Btt]=Ftt(K6),Vtt=v.exports.forwardRef((e,t)=>{const{__scopeSwitch:n,"aria-labelledby":r,name:i,checked:o,defaultChecked:s,required:a,disabled:l,value:c="on",onCheckedChange:u,...d}=e,[h,f]=v.exports.useState(null),p=Ut(t,w=>f(w)),g=G6(h),y=r||g,m=v.exports.useRef(!1),x=h?Boolean(h.closest("form")):!0,[b=!1,_]=Jd({prop:o,defaultProp:s,onChange:u});return v.exports.createElement(ztt,{scope:n,checked:b,disabled:l},v.exports.createElement($t.button,rt({type:"button",role:"switch","aria-checked":b,"aria-labelledby":y,"aria-required":a,"data-state":Z6(b),"data-disabled":l?"":void 0,disabled:l,value:c},d,{ref:p,onClick:Dt(e.onClick,w=>{_(A=>!A),x&&(m.current=w.isPropagationStopped(),m.current||w.stopPropagation())})})),x&&v.exports.createElement(Utt,{control:h,bubbles:!m.current,name:i,value:c,checked:b,required:a,disabled:l,style:{transform:"translateX(-100%)"}}))}),jtt="SwitchThumb",Htt=v.exports.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,i=Btt(jtt,n);return v.exports.createElement($t.span,rt({"data-state":Z6(i.checked),"data-disabled":i.disabled?"":void 0},r,{ref:t}))}),Utt=e=>{const{control:t,checked:n,bubbles:r=!0,...i}=e,o=v.exports.useRef(null),s=XA(n),a=QA(t);return v.exports.useEffect(()=>{const l=o.current,c=window.HTMLInputElement.prototype,u=Object.getOwnPropertyDescriptor(c,"checked").set;if(s!==n&&u){const d=new Event("click",{bubbles:r});u.call(l,n),l.dispatchEvent(d)}},[s,n,r]),v.exports.createElement("input",rt({type:"checkbox","aria-hidden":!0,defaultChecked:n},i,{tabIndex:-1,ref:o,style:{...e.style,...a,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function Z6(e){return e?"checked":"unchecked"}const Wtt=Vtt,Ytt=Htt,Gtt=z(Wtt)`
|
|
299
|
+
all: unset;
|
|
300
|
+
width: 42px;
|
|
301
|
+
height: 24px;
|
|
302
|
+
background-color: ${L["--ll-color-disabled"]};
|
|
303
|
+
border-radius: 13px;
|
|
304
|
+
position: relative;
|
|
305
|
+
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
306
|
+
|
|
307
|
+
&[data-state="checked"] {
|
|
308
|
+
background-color: ${L["--ll-color-on-background"]};
|
|
309
|
+
}
|
|
310
|
+
`,qtt=z(Ytt)`
|
|
311
|
+
display: block;
|
|
312
|
+
width: 18px;
|
|
313
|
+
height: 18px;
|
|
314
|
+
background-color: ${L["--ll-color-background"]};
|
|
315
|
+
border-radius: 9px;
|
|
316
|
+
transition: transform 100ms;
|
|
317
|
+
transform: translateX(3px);
|
|
318
|
+
will-change: transform;
|
|
319
|
+
|
|
320
|
+
&[data-state="checked"] {
|
|
321
|
+
transform: translateX(21px);
|
|
322
|
+
}
|
|
323
|
+
`,DEt=e=>at(Gtt,{...e,children:at(qtt,{})});function Nb(e,[t,n]){return Math.min(n,Math.max(t,e))}const Xtt=v.exports.createContext(void 0);function J6(e){const t=v.exports.useContext(Xtt);return e||t||"ltr"}function t4(e){const t=e+"CollectionProvider",[n,r]=bc(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=f=>{const{scope:p,children:g}=f,y=Z.useRef(null),m=Z.useRef(new Map).current;return Z.createElement(i,{scope:p,itemMap:m,collectionRef:y},g)},a=e+"CollectionSlot",l=Z.forwardRef((f,p)=>{const{scope:g,children:y}=f,m=o(a,g),x=Ut(p,m.collectionRef);return Z.createElement(ec,{ref:x},y)}),c=e+"CollectionItemSlot",u="data-radix-collection-item",d=Z.forwardRef((f,p)=>{const{scope:g,children:y,...m}=f,x=Z.useRef(null),b=Ut(p,x),_=o(c,g);return Z.useEffect(()=>(_.itemMap.set(x,{ref:x,...m}),()=>void _.itemMap.delete(x))),Z.createElement(ec,{[u]:"",ref:b},y)});function h(f){const p=o(e+"CollectionConsumer",f);return Z.useCallback(()=>{const g=p.collectionRef.current;if(!g)return[];const y=Array.from(g.querySelectorAll(`[${u}]`));return Array.from(p.itemMap.values()).sort((m,x)=>y.indexOf(m.ref.current)-y.indexOf(x.ref.current))},[p.collectionRef,p.itemMap])}return[{Provider:s,Slot:l,ItemSlot:d},h,r]}const e4=["PageUp","PageDown"],n4=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],r4={ltr:["ArrowDown","Home","ArrowLeft","PageDown"],rtl:["ArrowDown","Home","ArrowRight","PageDown"]},Bh="Slider",[Fb,Qtt,Ktt]=t4(Bh),[i4,LEt]=bc(Bh,[Ktt]),[Ztt,dv]=i4(Bh),Jtt=v.exports.forwardRef((e,t)=>{const{name:n,min:r=0,max:i=100,step:o=1,orientation:s="horizontal",disabled:a=!1,minStepsBetweenThumbs:l=0,defaultValue:c=[r],value:u,onValueChange:d=()=>{},...h}=e,[f,p]=v.exports.useState(null),g=Ut(t,C=>p(C)),y=v.exports.useRef(new Set),m=v.exports.useRef(0),x=s==="horizontal",b=f?Boolean(f.closest("form")):!0,_=x?tet:eet,[w=[],A]=Jd({prop:u,defaultProp:c,onChange:C=>{var T;(T=[...y.current][m.current])===null||T===void 0||T.focus(),d(C)}});function S(C){const T=det(w,C);k(C,T)}function E(C){k(C,m.current)}function k(C,T){const $=get(o),I=met(Math.round((C-r)/o)*o+r,$),N=Nb(I,[r,i]);A((D=[])=>{const Y=cet(D,N,T);return pet(Y,l*o)?(m.current=Y.indexOf(N),String(Y)===String(D)?D:Y):D})}return v.exports.createElement(Ztt,{scope:e.__scopeSlider,disabled:a,min:r,max:i,valueIndexToChangeRef:m,thumbs:y.current,values:w,orientation:s},v.exports.createElement(Fb.Provider,{scope:e.__scopeSlider},v.exports.createElement(Fb.Slot,{scope:e.__scopeSlider},v.exports.createElement(_,rt({"aria-disabled":a,"data-disabled":a?"":void 0},h,{ref:g,min:r,max:i,onSlideStart:a?void 0:S,onSlideMove:a?void 0:E,onHomeKeyDown:()=>!a&&k(r,0),onEndKeyDown:()=>!a&&k(i,w.length-1),onStepKeyDown:({event:C,direction:T})=>{if(!a){const $=e4.includes(C.key)||C.shiftKey&&n4.includes(C.key)?10:1,I=m.current,N=w[I],D=o*$*T;k(N+D,I)}}})))),b&&w.map((C,T)=>v.exports.createElement(aet,{key:T,name:n?n+(w.length>1?"[]":""):void 0,value:C})))}),[o4,s4]=i4(Bh,{startEdge:"left",endEdge:"right",size:"width",direction:1}),tet=v.exports.forwardRef((e,t)=>{const{min:n,max:r,dir:i,onSlideStart:o,onSlideMove:s,onStepKeyDown:a,...l}=e,[c,u]=v.exports.useState(null),d=Ut(t,y=>u(y)),h=v.exports.useRef(),f=J6(i),p=f==="ltr";function g(y){const m=h.current||c.getBoundingClientRect(),x=[0,m.width],b=KA(x,p?[n,r]:[r,n]);return h.current=m,b(y-m.left)}return v.exports.createElement(o4,{scope:e.__scopeSlider,startEdge:p?"left":"right",endEdge:p?"right":"left",direction:p?1:-1,size:"width"},v.exports.createElement(a4,rt({dir:f,"data-orientation":"horizontal"},l,{ref:d,style:{...l.style,["--radix-slider-thumb-transform"]:"translateX(-50%)"},onSlideStart:y=>{const m=g(y.clientX);o==null||o(m)},onSlideMove:y=>{const m=g(y.clientX);s==null||s(m)},onSlideEnd:()=>h.current=void 0,onStepKeyDown:y=>{const m=r4[f].includes(y.key);a==null||a({event:y,direction:m?-1:1})}})))}),eet=v.exports.forwardRef((e,t)=>{const{min:n,max:r,onSlideStart:i,onSlideMove:o,onStepKeyDown:s,...a}=e,l=v.exports.useRef(null),c=Ut(t,l),u=v.exports.useRef();function d(h){const f=u.current||l.current.getBoundingClientRect(),p=[0,f.height],g=KA(p,[r,n]);return u.current=f,g(h-f.top)}return v.exports.createElement(o4,{scope:e.__scopeSlider,startEdge:"bottom",endEdge:"top",size:"height",direction:1},v.exports.createElement(a4,rt({"data-orientation":"vertical"},a,{ref:c,style:{...a.style,["--radix-slider-thumb-transform"]:"translateY(50%)"},onSlideStart:h=>{const f=d(h.clientY);i==null||i(f)},onSlideMove:h=>{const f=d(h.clientY);o==null||o(f)},onSlideEnd:()=>u.current=void 0,onStepKeyDown:h=>{const f=r4.ltr.includes(h.key);s==null||s({event:h,direction:f?-1:1})}})))}),a4=v.exports.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:i,onSlideEnd:o,onHomeKeyDown:s,onEndKeyDown:a,onStepKeyDown:l,...c}=e,u=dv(Bh,n);return v.exports.createElement($t.span,rt({},c,{ref:t,onKeyDown:Dt(e.onKeyDown,d=>{d.key==="Home"?(s(d),d.preventDefault()):d.key==="End"?(a(d),d.preventDefault()):e4.concat(n4).includes(d.key)&&(l(d),d.preventDefault())}),onPointerDown:Dt(e.onPointerDown,d=>{const h=d.target;h.setPointerCapture(d.pointerId),d.preventDefault(),u.thumbs.has(h)?h.focus():r(d)}),onPointerMove:Dt(e.onPointerMove,d=>{d.target.hasPointerCapture(d.pointerId)&&i(d)}),onPointerUp:Dt(e.onPointerUp,d=>{const h=d.target;h.hasPointerCapture(d.pointerId)&&(h.releasePointerCapture(d.pointerId),o(d))})}))}),net="SliderTrack",ret=v.exports.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,i=dv(net,n);return v.exports.createElement($t.span,rt({"data-disabled":i.disabled?"":void 0,"data-orientation":i.orientation},r,{ref:t}))}),m5="SliderRange",iet=v.exports.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,i=dv(m5,n),o=s4(m5,n),s=v.exports.useRef(null),a=Ut(t,s),l=i.values.length,c=i.values.map(h=>l4(h,i.min,i.max)),u=l>1?Math.min(...c):0,d=100-Math.max(...c);return v.exports.createElement($t.span,rt({"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0},r,{ref:a,style:{...e.style,[o.startEdge]:u+"%",[o.endEdge]:d+"%"}}))}),v5="SliderThumb",oet=v.exports.forwardRef((e,t)=>{const n=Qtt(e.__scopeSlider),[r,i]=v.exports.useState(null),o=Ut(t,a=>i(a)),s=v.exports.useMemo(()=>r?n().findIndex(a=>a.ref.current===r):-1,[n,r]);return v.exports.createElement(set,rt({},e,{ref:o,index:s}))}),set=v.exports.forwardRef((e,t)=>{const{__scopeSlider:n,index:r,...i}=e,o=dv(v5,n),s=s4(v5,n),[a,l]=v.exports.useState(null),c=Ut(t,y=>l(y)),u=QA(a),d=o.values[r],h=d===void 0?0:l4(d,o.min,o.max),f=uet(r,o.values.length),p=u==null?void 0:u[s.size],g=p?het(p,h,s.direction):0;return v.exports.useEffect(()=>{if(a)return o.thumbs.add(a),()=>{o.thumbs.delete(a)}},[a,o.thumbs]),v.exports.createElement("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[s.startEdge]:`calc(${h}% + ${g}px)`}},v.exports.createElement(Fb.ItemSlot,{scope:e.__scopeSlider},v.exports.createElement($t.span,rt({role:"slider","aria-label":e["aria-label"]||f,"aria-valuemin":o.min,"aria-valuenow":d,"aria-valuemax":o.max,"aria-orientation":o.orientation,"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,tabIndex:o.disabled?void 0:0},i,{ref:c,style:d===void 0?{display:"none"}:e.style,onFocus:Dt(e.onFocus,()=>{o.valueIndexToChangeRef.current=r})}))))}),aet=e=>{const{value:t,...n}=e,r=v.exports.useRef(null),i=XA(t);return v.exports.useEffect(()=>{const o=r.current,s=window.HTMLInputElement.prototype,a=Object.getOwnPropertyDescriptor(s,"value").set;if(i!==t&&a){const l=new Event("input",{bubbles:!0});a.call(o,t),o.dispatchEvent(l)}},[i,t]),v.exports.createElement("input",rt({style:{display:"none"}},n,{ref:r,defaultValue:t}))};function cet(e=[],t,n){const r=[...e];return r[n]=t,r.sort((i,o)=>i-o)}function l4(e,t,n){return 100/(n-t)*(e-t)}function uet(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function det(e,t){if(e.length===1)return 0;const n=e.map(i=>Math.abs(i-t)),r=Math.min(...n);return n.indexOf(r)}function het(e,t,n){const r=e/2,i=KA([0,50],[0,r]);return(r-i(t)*n)*n}function fet(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function pet(e,t){if(t>0){const n=fet(e);return Math.min(...n)>=t}return!0}function KA(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function get(e){return(String(e).split(".")[1]||"").length}function met(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}const vet=Jtt,yet=ret,xet=iet,bet=oet,_et=z.div``,wet=z.div`
|
|
324
|
+
display: flex;
|
|
325
|
+
align-items: center;
|
|
326
|
+
`,Aet=z(vet)`
|
|
327
|
+
position: relative;
|
|
328
|
+
display: flex;
|
|
329
|
+
align-items: center;
|
|
330
|
+
user-select: none;
|
|
331
|
+
touch-action: none;
|
|
332
|
+
height: 20;
|
|
333
|
+
flex: 1;
|
|
334
|
+
`,Eet=z(bet)`
|
|
335
|
+
all: unset;
|
|
336
|
+
height: 20px;
|
|
337
|
+
width: 20px;
|
|
338
|
+
border-radius: 50%;
|
|
339
|
+
display: block;
|
|
340
|
+
background-color: ${L["--ll-color-primary"]};
|
|
341
|
+
box-shadow: ${L["--ll-shadow-medium"]};
|
|
342
|
+
`,Cet=z(yet)`
|
|
343
|
+
height: 4px;
|
|
344
|
+
border-radius: 2px;
|
|
345
|
+
background-color: ${L["--ll-color-surface-variant1"]};
|
|
346
|
+
position: relative;
|
|
347
|
+
flex: 1;
|
|
348
|
+
`,ket=z(xet)`
|
|
349
|
+
height: 100%;
|
|
350
|
+
position: absolute;
|
|
351
|
+
background-color: ${L["--ll-color-primary"]};
|
|
352
|
+
border-radius: 2px;
|
|
353
|
+
`,Tet=({$vertical:e,$spacing:t})=>{const n=L[t];return e?`${n} 0 0 0`:`0 ${n} 0 0`},Met=z.div`
|
|
354
|
+
margin: ${e=>Tet(e)};
|
|
355
|
+
flex-shrink: 0;
|
|
356
|
+
`,$et=({vertical:e=!1,spacing:t="--ll-spacing-auto"})=>at(Met,{$vertical:e,$spacing:t}),IEt=({label:e,showValue:t,...n})=>fr(_et,{children:[e&&at(q6,{style:{lineHeight:"50px"},children:e}),fr(wet,{children:[fr(Aet,{...n,children:[at(Cet,{children:at(ket,{})}),at(Eet,{})]}),t&&fr(uv,{children:[at($et,{spacing:"--ll-spacing-small"}),at(Lb,{noMargin:!0,children:n.value})]})]})]}),cg={primary:{background:L["--ll-color-primary"],onBackground:L["--ll-color-on-primary"],hover:L["--ll-color-primary-variant1"]},inverse:{background:"transparent",onBackground:L["--ll-color-primary"],hover:"rgba(0,0,0,0.05)"},neutral:{background:"transparent",onBackground:L["--ll-color-on-background-variant1"],hover:"rgba(0,0,0,0.05)"}},$m={small:24,medium:32,large:48},Pet=z.button`
|
|
357
|
+
${({color:e="primary",size:t="medium"})=>_t`
|
|
358
|
+
border: none;
|
|
359
|
+
background-color: ${cg[e].background};
|
|
360
|
+
color: ${cg[e].onBackground};
|
|
361
|
+
border-radius: 50%;
|
|
362
|
+
height: ${$m[t]}px;
|
|
363
|
+
width: ${$m[t]}px;
|
|
364
|
+
display: flex;
|
|
365
|
+
justify-content: center;
|
|
366
|
+
align-items: center;
|
|
367
|
+
padding: 6px;
|
|
368
|
+
|
|
369
|
+
&:hover {
|
|
370
|
+
background-color: ${cg[e].hover};
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
&:disabled {
|
|
374
|
+
cursor: default;
|
|
375
|
+
background-color: rgba(0, 0, 0, 0.1);
|
|
376
|
+
color: ${L["--ll-color-on-background-variant1"]};
|
|
377
|
+
}
|
|
378
|
+
`};
|
|
379
|
+
`,NEt=({SVGElement:e,disabled:t=!1,onClick:n,size:r="medium",type:i="button",color:o="primary",isLoading:s,className:a})=>{const l=u=>{t||!n||s||n(u)},c=v.exports.useMemo(()=>t?L["--ll-color-placeholder"]:cg[o].onBackground,[o,t]);return at(Pet,{size:r,onClick:l,disabled:t||s,className:a,color:o,type:i,children:s?at(X6,{}):at(GA,{SVGElement:e,width:$m[r]/1.33333,height:$m[r]/1.33333,fill:c})})};function Oet({height:e,width:t}){return _t`
|
|
380
|
+
height: ${e};
|
|
381
|
+
width: ${t};
|
|
382
|
+
`}const Ret=J0`
|
|
383
|
+
from {
|
|
384
|
+
background-position: -800px 0;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
to {
|
|
388
|
+
background-position: 800px 0;
|
|
389
|
+
}
|
|
390
|
+
`,Det=z.div`
|
|
391
|
+
border-radius: ${L["--ll-border-radius-medium"]};
|
|
392
|
+
animation: ${Ret} 2s linear infinite;
|
|
393
|
+
background: linear-gradient(
|
|
394
|
+
to right,
|
|
395
|
+
/* NOTE: 99.9% of the time we should use colours from theme, since these are
|
|
396
|
+
CSS vars that can be overriden. */
|
|
397
|
+
${L["--ll-color-surface-variant1"]} 4%,
|
|
398
|
+
${L["--ll-color-surface-variant2"]} 25%,
|
|
399
|
+
${L["--ll-color-surface-variant1"]} 36%
|
|
400
|
+
);
|
|
401
|
+
background-size: 800px 100%;
|
|
402
|
+
${Oet}
|
|
403
|
+
`,FEt=({height:e,width:t,className:n})=>at(Det,{height:e,width:t,className:n});z.div`
|
|
404
|
+
flex: 1;
|
|
405
|
+
height: 100%;
|
|
406
|
+
width: 100%;
|
|
407
|
+
display: flex;
|
|
408
|
+
align-items: center;
|
|
409
|
+
justify-content: center;
|
|
410
|
+
`;z.div`
|
|
411
|
+
display: flex;
|
|
412
|
+
flex-direction: column;
|
|
413
|
+
align-items: center;
|
|
414
|
+
`;var Let=Object.defineProperty,Iet=(e,t,n)=>t in e?Let(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Xu=(e,t,n)=>(Iet(e,typeof t!="symbol"?t+"":t,n),n),Pn={},ZA={},Vh={},JA={};/*!
|
|
415
|
+
* cookie
|
|
416
|
+
* Copyright(c) 2012-2014 Roman Shtylman
|
|
417
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
418
|
+
* MIT Licensed
|
|
419
|
+
*/JA.parse=Bet;JA.serialize=Vet;var Net=decodeURIComponent,Fet=encodeURIComponent,zet=/; */,jf=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function Bet(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");for(var n={},r=t||{},i=e.split(zet),o=r.decode||Net,s=0;s<i.length;s++){var a=i[s],l=a.indexOf("=");if(!(l<0)){var c=a.substr(0,l).trim(),u=a.substr(++l,a.length).trim();u[0]=='"'&&(u=u.slice(1,-1)),n[c]==null&&(n[c]=jet(u,o))}}return n}function Vet(e,t,n){var r=n||{},i=r.encode||Fet;if(typeof i!="function")throw new TypeError("option encode is invalid");if(!jf.test(e))throw new TypeError("argument name is invalid");var o=i(t);if(o&&!jf.test(o))throw new TypeError("argument val is invalid");var s=e+"="+o;if(r.maxAge!=null){var a=r.maxAge-0;if(isNaN(a))throw new Error("maxAge should be a Number");s+="; Max-Age="+Math.floor(a)}if(r.domain){if(!jf.test(r.domain))throw new TypeError("option domain is invalid");s+="; Domain="+r.domain}if(r.path){if(!jf.test(r.path))throw new TypeError("option path is invalid");s+="; Path="+r.path}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");s+="; Expires="+r.expires.toUTCString()}if(r.httpOnly&&(s+="; HttpOnly"),r.secure&&(s+="; Secure"),r.sameSite){var l=typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite;switch(l){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;default:throw new TypeError("option sameSite is invalid")}}return s}function jet(e,t){try{return t(e)}catch(n){return e}}Object.defineProperty(Vh,"__esModule",{value:!0});var Het=function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Vh.hasCookies=Get;var Uet=JA,Hf=Wet(Uet);function Wet(e){return e&&e.__esModule?e:{default:e}}function Yet(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var so="lS_",c4=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Yet(this,e),this.cookieOptions=Object.assign({path:"/"},t),so=t.prefix===void 0?so:t.prefix}return Het(e,[{key:"getItem",value:function(t){var n=Hf.default.parse(document.cookie);return!n||!n.hasOwnProperty(so+t)?null:n[so+t]}},{key:"setItem",value:function(t,n){return document.cookie=Hf.default.serialize(so+t,n,this.cookieOptions),n}},{key:"removeItem",value:function(t){var n=Object.assign({},this.cookieOptions,{maxAge:-1});return document.cookie=Hf.default.serialize(so+t,"",n),null}},{key:"clear",value:function(){var t=Hf.default.parse(document.cookie);for(var n in t)n.indexOf(so)===0&&this.removeItem(n.substr(so.length));return null}}]),e}();Vh.default=c4;function Get(){var e=new c4;try{var t="__test";e.setItem(t,"1");var n=e.getItem(t);return e.removeItem(t),n==="1"}catch(r){return!1}}Object.defineProperty(ZA,"__esModule",{value:!0});ZA.default=Xet;var qet=Vh,y5="__test";function x5(e){try{var t=window[e];return t.setItem(y5,"1"),t.removeItem(y5),!0}catch(n){return!1}}function Xet(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"localStorage",t=String(e).replace(/storage$/i,"").toLowerCase();if(t==="local")return x5("localStorage");if(t==="session")return x5("sessionStorage");if(t==="cookie")return(0,qet.hasCookies)();if(t==="memory")return!0;throw new Error("Storage method `"+e+"` is not available.\n Please use one of the following: localStorage, sessionStorage, cookieStorage, memoryStorage.")}var t2={};Object.defineProperty(t2,"__esModule",{value:!0});var Qet=function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function Ket(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Zet=function(){function e(){Ket(this,e),this._data={}}return Qet(e,[{key:"getItem",value:function(t){return this._data.hasOwnProperty(t)?this._data[t]:null}},{key:"setItem",value:function(t,n){return this._data[t]=String(n)}},{key:"removeItem",value:function(t){return delete this._data[t]}},{key:"clear",value:function(){return this._data={}}}]),e}();t2.default=Zet;Object.defineProperty(Pn,"__esModule",{value:!0});Pn.MemoryStorage=Pn.CookieStorage=Pn.isSupported=Pn.storage=void 0;var Jet=ZA,ug=e2(Jet),tnt=Vh,u4=e2(tnt),ent=t2,d4=e2(ent);function e2(e){return e&&e.__esModule?e:{default:e}}var hl=null;(0,ug.default)("localStorage")?Pn.storage=hl=window.localStorage:(0,ug.default)("sessionStorage")?Pn.storage=hl=window.sessionStorage:(0,ug.default)("cookieStorage")?Pn.storage=hl=new u4.default:Pn.storage=hl=new d4.default;var nnt=Pn.default=hl;Pn.storage=hl;Pn.isSupported=ug.default;Pn.CookieStorage=u4.default;Pn.MemoryStorage=d4.default;class h4{constructor(t="global"){Xu(this,"group"),Xu(this,"localStorage"),this.group=t,this.localStorage=nnt}setGroup(t){this.group=t}getGroup(){return this.group}getItem(t){return this.localStorage.getItem(`${this.group}.${t}`)}setItem(t,n){this.localStorage.setItem(`${this.group}.${t}`,n)}removeItem(t){this.localStorage.removeItem(`${this.group}.${t}`)}}new h4;class rnt{constructor(){Xu(this,"storageLocation","suggestion_history"),Xu(this,"storage"),Xu(this,"history",[]),this.storage=new h4("commute");const t=this.storage.getItem(this.storageLocation);t&&(this.history=JSON.parse(t))}push(t){this.history=this.removeDuplicateEntries(t),this.history.unshift(t),this.history.length>5&&(this.history=this.history.slice(0,5)),this.storage.setItem(this.storageLocation,JSON.stringify(this.history))}hasSuggestionHistory(){return this.history.length>0}getSuggestionHistory(){return this.history}removeDuplicateEntries(t){return this.history.filter(n=>n.locationId!==t.locationId)}}new rnt;/*!
|
|
420
|
+
* @kurkle/color v0.3.2
|
|
421
|
+
* https://github.com/kurkle/color#readme
|
|
422
|
+
* (c) 2023 Jukka Kurkela
|
|
423
|
+
* Released under the MIT License
|
|
424
|
+
*/function jh(e){return e+.5|0}const Oo=(e,t,n)=>Math.max(Math.min(e,n),t);function du(e){return Oo(jh(e*2.55),0,255)}function ts(e){return Oo(jh(e*255),0,255)}function Pi(e){return Oo(jh(e/2.55)/100,0,1)}function b5(e){return Oo(jh(e*100),0,100)}const lr={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},zb=[..."0123456789ABCDEF"],int=e=>zb[e&15],ont=e=>zb[(e&240)>>4]+zb[e&15],Uf=e=>(e&240)>>4===(e&15),snt=e=>Uf(e.r)&&Uf(e.g)&&Uf(e.b)&&Uf(e.a);function ant(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&lr[e[1]]*17,g:255&lr[e[2]]*17,b:255&lr[e[3]]*17,a:t===5?lr[e[4]]*17:255}:(t===7||t===9)&&(n={r:lr[e[1]]<<4|lr[e[2]],g:lr[e[3]]<<4|lr[e[4]],b:lr[e[5]]<<4|lr[e[6]],a:t===9?lr[e[7]]<<4|lr[e[8]]:255})),n}const lnt=(e,t)=>e<255?t(e):"";function cnt(e){var t=snt(e)?int:ont;return e?"#"+t(e.r)+t(e.g)+t(e.b)+lnt(e.a,t):void 0}const unt=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function f4(e,t,n){const r=t*Math.min(n,1-n),i=(o,s=(o+e/30)%12)=>n-r*Math.max(Math.min(s-3,9-s,1),-1);return[i(0),i(8),i(4)]}function dnt(e,t,n){const r=(i,o=(i+e/60)%6)=>n-n*t*Math.max(Math.min(o,4-o,1),0);return[r(5),r(3),r(1)]}function hnt(e,t,n){const r=f4(e,1,.5);let i;for(t+n>1&&(i=1/(t+n),t*=i,n*=i),i=0;i<3;i++)r[i]*=1-t-n,r[i]+=t;return r}function fnt(e,t,n,r,i){return e===i?(t-n)/r+(t<n?6:0):t===i?(n-e)/r+2:(e-t)/r+4}function n2(e){const t=e.r/255,n=e.g/255,r=e.b/255,i=Math.max(t,n,r),o=Math.min(t,n,r),s=(i+o)/2;let a,l,c;return i!==o&&(c=i-o,l=s>.5?c/(2-i-o):c/(i+o),a=fnt(t,n,r,c,i),a=a*60+.5),[a|0,l||0,s]}function r2(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(ts)}function i2(e,t,n){return r2(f4,e,t,n)}function pnt(e,t,n){return r2(hnt,e,t,n)}function gnt(e,t,n){return r2(dnt,e,t,n)}function p4(e){return(e%360+360)%360}function mnt(e){const t=unt.exec(e);let n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?du(+t[5]):ts(+t[5]));const i=p4(+t[2]),o=+t[3]/100,s=+t[4]/100;return t[1]==="hwb"?r=pnt(i,o,s):t[1]==="hsv"?r=gnt(i,o,s):r=i2(i,o,s),{r:r[0],g:r[1],b:r[2],a:n}}function vnt(e,t){var n=n2(e);n[0]=p4(n[0]+t),n=i2(n),e.r=n[0],e.g=n[1],e.b=n[2]}function ynt(e){if(!e)return;const t=n2(e),n=t[0],r=b5(t[1]),i=b5(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${Pi(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}const _5={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},w5={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function xnt(){const e={},t=Object.keys(w5),n=Object.keys(_5);let r,i,o,s,a;for(r=0;r<t.length;r++){for(s=a=t[r],i=0;i<n.length;i++)o=n[i],a=a.replace(o,_5[o]);o=parseInt(w5[s],16),e[a]=[o>>16&255,o>>8&255,o&255]}return e}let Wf;function bnt(e){Wf||(Wf=xnt(),Wf.transparent=[0,0,0,0]);const t=Wf[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const _nt=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function wnt(e){const t=_nt.exec(e);let n=255,r,i,o;if(t){if(t[7]!==r){const s=+t[7];n=t[8]?du(s):Oo(s*255,0,255)}return r=+t[1],i=+t[3],o=+t[5],r=255&(t[2]?du(r):Oo(r,0,255)),i=255&(t[4]?du(i):Oo(i,0,255)),o=255&(t[6]?du(o):Oo(o,0,255)),{r,g:i,b:o,a:n}}}function Ant(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${Pi(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const Y1=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,Ra=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function Snt(e,t,n){const r=Ra(Pi(e.r)),i=Ra(Pi(e.g)),o=Ra(Pi(e.b));return{r:ts(Y1(r+n*(Ra(Pi(t.r))-r))),g:ts(Y1(i+n*(Ra(Pi(t.g))-i))),b:ts(Y1(o+n*(Ra(Pi(t.b))-o))),a:e.a+n*(t.a-e.a)}}function Yf(e,t,n){if(e){let r=n2(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=i2(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function g4(e,t){return e&&Object.assign(t||{},e)}function A5(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=ts(e[3]))):(t=g4(e,{r:0,g:0,b:0,a:1}),t.a=ts(t.a)),t}function Ent(e){return e.charAt(0)==="r"?wnt(e):mnt(e)}class th{constructor(t){if(t instanceof th)return t;const n=typeof t;let r;n==="object"?r=A5(t):n==="string"&&(r=ant(t)||bnt(t)||Ent(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=g4(this._rgb);return t&&(t.a=Pi(t.a)),t}set rgb(t){this._rgb=A5(t)}rgbString(){return this._valid?Ant(this._rgb):void 0}hexString(){return this._valid?cnt(this._rgb):void 0}hslString(){return this._valid?ynt(this._rgb):void 0}mix(t,n){if(t){const r=this.rgb,i=t.rgb;let o;const s=n===o?.5:n,a=2*s-1,l=r.a-i.a,c=((a*l===-1?a:(a+l)/(1+a*l))+1)/2;o=1-c,r.r=255&c*r.r+o*i.r+.5,r.g=255&c*r.g+o*i.g+.5,r.b=255&c*r.b+o*i.b+.5,r.a=s*r.a+(1-s)*i.a,this.rgb=r}return this}interpolate(t,n){return t&&(this._rgb=Snt(this._rgb,t._rgb,n)),this}clone(){return new th(this.rgb)}alpha(t){return this._rgb.a=ts(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=jh(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Yf(this._rgb,2,t),this}darken(t){return Yf(this._rgb,2,-t),this}saturate(t){return Yf(this._rgb,1,t),this}desaturate(t){return Yf(this._rgb,1,-t),this}rotate(t){return vnt(this._rgb,t),this}}/*!
|
|
425
|
+
* Chart.js v4.2.0
|
|
426
|
+
* https://www.chartjs.org
|
|
427
|
+
* (c) 2023 Chart.js Contributors
|
|
428
|
+
* Released under the MIT License
|
|
429
|
+
*/function xi(){}const Cnt=(()=>{let e=0;return()=>e++})();function xt(e){return e===null||typeof e>"u"}function Kt(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function ft(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function fe(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function Un(e,t){return fe(e)?e:t}function ct(e,t){return typeof e>"u"?t:e}const knt=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,m4=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function zt(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function kt(e,t,n,r){let i,o,s;if(Kt(e))if(o=e.length,r)for(i=o-1;i>=0;i--)t.call(n,e[i],i);else for(i=0;i<o;i++)t.call(n,e[i],i);else if(ft(e))for(s=Object.keys(e),o=s.length,i=0;i<o;i++)t.call(n,e[s[i]],s[i])}function Pm(e,t){let n,r,i,o;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(i=e[n],o=t[n],i.datasetIndex!==o.datasetIndex||i.index!==o.index)return!1;return!0}function Om(e){if(Kt(e))return e.map(Om);if(ft(e)){const t=Object.create(null),n=Object.keys(e),r=n.length;let i=0;for(;i<r;++i)t[n[i]]=Om(e[n[i]]);return t}return e}function v4(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function Tnt(e,t,n,r){if(!v4(e))return;const i=t[e],o=n[e];ft(i)&&ft(o)?eh(i,o,r):t[e]=Om(o)}function eh(e,t,n){const r=Kt(t)?t:[t],i=r.length;if(!ft(e))return e;n=n||{};const o=n.merger||Tnt;let s;for(let a=0;a<i;++a){if(s=r[a],!ft(s))continue;const l=Object.keys(s);for(let c=0,u=l.length;c<u;++c)o(l[c],e,s,n)}return e}function Qu(e,t){return eh(e,t,{merger:Mnt})}function Mnt(e,t,n){if(!v4(e))return;const r=t[e],i=n[e];ft(r)&&ft(i)?Qu(r,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=Om(i))}const S5={"":e=>e,x:e=>e.x,y:e=>e.y};function $nt(e){const t=e.split("."),n=[];let r="";for(const i of t)r+=i,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function Pnt(e){const t=$nt(e);return n=>{for(const r of t){if(r==="")break;n=n&&n[r]}return n}}function ls(e,t){return(S5[t]||(S5[t]=Pnt(t)))(e)}function o2(e){return e.charAt(0).toUpperCase()+e.slice(1)}const br=e=>typeof e<"u",cs=e=>typeof e=="function",E5=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function Ont(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const ie=Math.PI,te=2*ie,Rnt=te+ie,Rm=Number.POSITIVE_INFINITY,Dnt=ie/180,pe=ie/2,$s=ie/4,C5=ie*2/3,Ro=Math.log10,ui=Math.sign;function Ku(e,t,n){return Math.abs(e-t)<n}function k5(e){const t=Math.round(e);e=Ku(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(Ro(e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function Lnt(e){const t=[],n=Math.sqrt(e);let r;for(r=1;r<n;r++)e%r===0&&(t.push(r),t.push(e/r));return n===(n|0)&&t.push(n),t.sort((i,o)=>i-o).pop(),t}function nc(e){return!isNaN(parseFloat(e))&&isFinite(e)}function Int(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function y4(e,t,n){let r,i,o;for(r=0,i=e.length;r<i;r++)o=e[r][n],isNaN(o)||(t.min=Math.min(t.min,o),t.max=Math.max(t.max,o))}function Rr(e){return e*(ie/180)}function s2(e){return e*(180/ie)}function T5(e){if(!fe(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function x4(e,t){const n=t.x-e.x,r=t.y-e.y,i=Math.sqrt(n*n+r*r);let o=Math.atan2(r,n);return o<-.5*ie&&(o+=te),{angle:o,distance:i}}function Bb(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function Nnt(e,t){return(e-t+Rnt)%te-ie}function Gn(e){return(e%te+te)%te}function nh(e,t,n,r){const i=Gn(e),o=Gn(t),s=Gn(n),a=Gn(o-i),l=Gn(s-i),c=Gn(i-o),u=Gn(i-s);return i===o||i===s||r&&o===s||a>l&&c<u}function ze(e,t,n){return Math.max(t,Math.min(n,e))}function Fnt(e){return ze(e,-32768,32767)}function Li(e,t,n,r=1e-6){return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function a2(e,t,n){n=n||(s=>e[s]<t);let r=e.length-1,i=0,o;for(;r-i>1;)o=i+r>>1,n(o)?i=o:r=o;return{lo:i,hi:r}}const Ii=(e,t,n,r)=>a2(e,n,r?i=>{const o=e[i][t];return o<n||o===n&&e[i+1][t]===n}:i=>e[i][t]<n),znt=(e,t,n)=>a2(e,n,r=>e[r][t]>=n);function Bnt(e,t,n){let r=0,i=e.length;for(;r<i&&e[r]<t;)r++;for(;i>r&&e[i-1]>n;)i--;return r>0||i<e.length?e.slice(r,i):e}const b4=["push","pop","shift","splice","unshift"];function Vnt(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),b4.forEach(n=>{const r="_onData"+o2(n),i=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...o){const s=i.apply(this,o);return e._chartjs.listeners.forEach(a=>{typeof a[r]=="function"&&a[r](...o)}),s}})})}function M5(e,t){const n=e._chartjs;if(!n)return;const r=n.listeners,i=r.indexOf(t);i!==-1&&r.splice(i,1),!(r.length>0)&&(b4.forEach(o=>{delete e[o]}),delete e._chartjs)}function _4(e){const t=new Set;let n,r;for(n=0,r=e.length;n<r;++n)t.add(e[n]);return t.size===r?e:Array.from(t)}const w4=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function A4(e,t){let n=[],r=!1;return function(...i){n=i,r||(r=!0,w4.call(window,()=>{r=!1,e.apply(t,n)}))}}function jnt(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}const l2=e=>e==="start"?"left":e==="end"?"right":"center",tn=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,Hnt=(e,t,n,r)=>e===(r?"left":"right")?n:e==="center"?(t+n)/2:t;function S4(e,t,n){const r=t.length;let i=0,o=r;if(e._sorted){const{iScale:s,_parsed:a}=e,l=s.axis,{min:c,max:u,minDefined:d,maxDefined:h}=s.getUserBounds();d&&(i=ze(Math.min(Ii(a,s.axis,c).lo,n?r:Ii(t,l,s.getPixelForValue(c)).lo),0,r-1)),h?o=ze(Math.max(Ii(a,s.axis,u,!0).hi+1,n?0:Ii(t,l,s.getPixelForValue(u),!0).hi+1),i,r)-i:o=r-i}return{start:i,count:o}}function E4(e){const{xScale:t,yScale:n,_scaleRanges:r}=e,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=i,!0;const o=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),o}const Gf=e=>e===0||e===1,$5=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*te/n)),P5=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*te/n)+1,Zu={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*pe)+1,easeOutSine:e=>Math.sin(e*pe),easeInOutSine:e=>-.5*(Math.cos(ie*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>Gf(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>Gf(e)?e:$5(e,.075,.3),easeOutElastic:e=>Gf(e)?e:P5(e,.075,.3),easeInOutElastic(e){return Gf(e)?e:e<.5?.5*$5(e*2,.1125,.45):.5+.5*P5(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-Zu.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?Zu.easeInBounce(e*2)*.5:Zu.easeOutBounce(e*2-1)*.5+.5};function C4(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function O5(e){return C4(e)?e:new th(e)}function G1(e){return C4(e)?e:new th(e).saturate(.5).darken(.1).hexString()}const Unt=["x","y","borderWidth","radius","tension"],Wnt=["color","borderColor","backgroundColor"];function Ynt(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:Wnt},numbers:{type:"number",properties:Unt}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function Gnt(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const R5=new Map;function qnt(e,t){t=t||{};const n=e+JSON.stringify(t);let r=R5.get(n);return r||(r=new Intl.NumberFormat(e,t),R5.set(n,r)),r}function Hh(e,t,n){return qnt(t,n).format(e)}const k4={values(e){return Kt(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const r=this.chart.options.locale;let i,o=e;if(n.length>1){const c=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(c<1e-4||c>1e15)&&(i="scientific"),o=Xnt(e,n)}const s=Ro(Math.abs(o)),a=Math.max(Math.min(-1*Math.floor(s),20),0),l={notation:i,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),Hh(e,r,l)},logarithmic(e,t,n){if(e===0)return"0";const r=n[t].significand||e/Math.pow(10,Math.floor(Ro(e)));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?k4.numeric.call(this,e,t,n):""}};function Xnt(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var hv={formatters:k4};function Qnt(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:hv.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const xa=Object.create(null),Vb=Object.create(null);function Ju(e,t){if(!t)return e;const n=t.split(".");for(let r=0,i=n.length;r<i;++r){const o=n[r];e=e[o]||(e[o]=Object.create(null))}return e}function q1(e,t,n){return typeof t=="string"?eh(Ju(e,t),n):eh(Ju(e,""),t)}class Knt{constructor(t,n){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=r=>r.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(r,i)=>G1(i.backgroundColor),this.hoverBorderColor=(r,i)=>G1(i.borderColor),this.hoverColor=(r,i)=>G1(i.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return q1(this,t,n)}get(t){return Ju(this,t)}describe(t,n){return q1(Vb,t,n)}override(t,n){return q1(xa,t,n)}route(t,n,r,i){const o=Ju(this,t),s=Ju(this,r),a="_"+n;Object.defineProperties(o,{[a]:{value:o[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[a],c=s[i];return ft(l)?Object.assign({},c,l):ct(l,c)},set(l){this[a]=l}}})}apply(t){t.forEach(n=>n(this))}}var _e=new Knt({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[Ynt,Gnt,Qnt]);function Znt(e){return!e||xt(e.size)||xt(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function Dm(e,t,n,r,i){let o=t[i];return o||(o=t[i]=e.measureText(i).width,n.push(i)),o>r&&(r=o),r}function Jnt(e,t,n,r){r=r||{};let i=r.data=r.data||{},o=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(i=r.data={},o=r.garbageCollect=[],r.font=t),e.save(),e.font=t;let s=0;const a=n.length;let l,c,u,d,h;for(l=0;l<a;l++)if(d=n[l],d!=null&&Kt(d)!==!0)s=Dm(e,i,o,s,d);else if(Kt(d))for(c=0,u=d.length;c<u;c++)h=d[c],h!=null&&!Kt(h)&&(s=Dm(e,i,o,s,h));e.restore();const f=o.length/2;if(f>n.length){for(l=0;l<f;l++)delete i[o[l]];o.splice(0,f)}return s}function Ps(e,t,n){const r=e.currentDevicePixelRatio,i=n!==0?Math.max(n/2,.5):0;return Math.round((t-i)*r)/r+i}function D5(e,t){t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore()}function jb(e,t,n,r){T4(e,t,n,r,null)}function T4(e,t,n,r,i){let o,s,a,l,c,u,d,h;const f=t.pointStyle,p=t.rotation,g=t.radius;let y=(p||0)*Dnt;if(f&&typeof f=="object"&&(o=f.toString(),o==="[object HTMLImageElement]"||o==="[object HTMLCanvasElement]")){e.save(),e.translate(n,r),e.rotate(y),e.drawImage(f,-f.width/2,-f.height/2,f.width,f.height),e.restore();return}if(!(isNaN(g)||g<=0)){switch(e.beginPath(),f){default:i?e.ellipse(n,r,i/2,g,0,0,te):e.arc(n,r,g,0,te),e.closePath();break;case"triangle":u=i?i/2:g,e.moveTo(n+Math.sin(y)*u,r-Math.cos(y)*g),y+=C5,e.lineTo(n+Math.sin(y)*u,r-Math.cos(y)*g),y+=C5,e.lineTo(n+Math.sin(y)*u,r-Math.cos(y)*g),e.closePath();break;case"rectRounded":c=g*.516,l=g-c,s=Math.cos(y+$s)*l,d=Math.cos(y+$s)*(i?i/2-c:l),a=Math.sin(y+$s)*l,h=Math.sin(y+$s)*(i?i/2-c:l),e.arc(n-d,r-a,c,y-ie,y-pe),e.arc(n+h,r-s,c,y-pe,y),e.arc(n+d,r+a,c,y,y+pe),e.arc(n-h,r+s,c,y+pe,y+ie),e.closePath();break;case"rect":if(!p){l=Math.SQRT1_2*g,u=i?i/2:l,e.rect(n-u,r-l,2*u,2*l);break}y+=$s;case"rectRot":d=Math.cos(y)*(i?i/2:g),s=Math.cos(y)*g,a=Math.sin(y)*g,h=Math.sin(y)*(i?i/2:g),e.moveTo(n-d,r-a),e.lineTo(n+h,r-s),e.lineTo(n+d,r+a),e.lineTo(n-h,r+s),e.closePath();break;case"crossRot":y+=$s;case"cross":d=Math.cos(y)*(i?i/2:g),s=Math.cos(y)*g,a=Math.sin(y)*g,h=Math.sin(y)*(i?i/2:g),e.moveTo(n-d,r-a),e.lineTo(n+d,r+a),e.moveTo(n+h,r-s),e.lineTo(n-h,r+s);break;case"star":d=Math.cos(y)*(i?i/2:g),s=Math.cos(y)*g,a=Math.sin(y)*g,h=Math.sin(y)*(i?i/2:g),e.moveTo(n-d,r-a),e.lineTo(n+d,r+a),e.moveTo(n+h,r-s),e.lineTo(n-h,r+s),y+=$s,d=Math.cos(y)*(i?i/2:g),s=Math.cos(y)*g,a=Math.sin(y)*g,h=Math.sin(y)*(i?i/2:g),e.moveTo(n-d,r-a),e.lineTo(n+d,r+a),e.moveTo(n+h,r-s),e.lineTo(n-h,r+s);break;case"line":s=i?i/2:Math.cos(y)*g,a=Math.sin(y)*g,e.moveTo(n-s,r-a),e.lineTo(n+s,r+a);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(y)*(i?i/2:g),r+Math.sin(y)*g);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function rh(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function fv(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function pv(e){e.restore()}function trt(e,t,n,r,i){if(!t)return e.lineTo(n.x,n.y);if(i==="middle"){const o=(t.x+n.x)/2;e.lineTo(o,t.y),e.lineTo(o,n.y)}else i==="after"!=!!r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function ert(e,t,n,r){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(r?t.cp1x:t.cp2x,r?t.cp1y:t.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function ba(e,t,n,r,i,o={}){const s=Kt(t)?t:[t],a=o.strokeWidth>0&&o.strokeColor!=="";let l,c;for(e.save(),e.font=i.string,nrt(e,o),l=0;l<s.length;++l)c=s[l],o.backdrop&&irt(e,o.backdrop),a&&(o.strokeColor&&(e.strokeStyle=o.strokeColor),xt(o.strokeWidth)||(e.lineWidth=o.strokeWidth),e.strokeText(c,n,r,o.maxWidth)),e.fillText(c,n,r,o.maxWidth),rrt(e,n,r,c,o),r+=i.lineHeight;e.restore()}function nrt(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),xt(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}function rrt(e,t,n,r,i){if(i.strikethrough||i.underline){const o=e.measureText(r),s=t-o.actualBoundingBoxLeft,a=t+o.actualBoundingBoxRight,l=n-o.actualBoundingBoxAscent,c=n+o.actualBoundingBoxDescent,u=i.strikethrough?(l+c)/2:c;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=i.decorationWidth||2,e.moveTo(s,u),e.lineTo(a,u),e.stroke()}}function irt(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function ih(e,t){const{x:n,y:r,w:i,h:o,radius:s}=t;e.arc(n+s.topLeft,r+s.topLeft,s.topLeft,-pe,ie,!0),e.lineTo(n,r+o-s.bottomLeft),e.arc(n+s.bottomLeft,r+o-s.bottomLeft,s.bottomLeft,ie,pe,!0),e.lineTo(n+i-s.bottomRight,r+o),e.arc(n+i-s.bottomRight,r+o-s.bottomRight,s.bottomRight,pe,0,!0),e.lineTo(n+i,r+s.topRight),e.arc(n+i-s.topRight,r+s.topRight,s.topRight,0,-pe,!0),e.lineTo(n+s.topLeft,r)}const ort=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,srt=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function art(e,t){const n=(""+e).match(ort);if(!n||n[1]==="normal")return t*1.2;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100;break}return t*e}const lrt=e=>+e||0;function c2(e,t){const n={},r=ft(t),i=r?Object.keys(t):t,o=ft(e)?r?s=>ct(e[s],e[t[s]]):s=>e[s]:()=>e;for(const s of i)n[s]=lrt(o(s));return n}function M4(e){return c2(e,{top:"y",right:"x",bottom:"y",left:"x"})}function oa(e){return c2(e,["topLeft","topRight","bottomLeft","bottomRight"])}function un(e){const t=M4(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function Pe(e,t){e=e||{},t=t||_e.font;let n=ct(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let r=ct(e.style,t.style);r&&!(""+r).match(srt)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const i={family:ct(e.family,t.family),lineHeight:art(ct(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:ct(e.weight,t.weight),string:""};return i.string=Znt(i),i}function hu(e,t,n,r){let i=!0,o,s,a;for(o=0,s=e.length;o<s;++o)if(a=e[o],a!==void 0&&(t!==void 0&&typeof a=="function"&&(a=a(t),i=!1),n!==void 0&&Kt(a)&&(a=a[n%a.length],i=!1),a!==void 0))return r&&!i&&(r.cacheable=!1),a}function crt(e,t,n){const{min:r,max:i}=e,o=m4(t,(i-r)/2),s=(a,l)=>n&&a===0?0:a+l;return{min:s(r,-Math.abs(o)),max:s(i,o)}}function ys(e,t){return Object.assign(Object.create(e),t)}function u2(e,t=[""],n=e,r,i=()=>e[0]){br(r)||(r=R4("_fallback",e));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:n,_fallback:r,_getTarget:i,override:s=>u2([s,...e],t,n,r)};return new Proxy(o,{deleteProperty(s,a){return delete s[a],delete s._keys,delete e[0][a],!0},get(s,a){return P4(s,a,()=>vrt(a,t,e,s))},getOwnPropertyDescriptor(s,a){return Reflect.getOwnPropertyDescriptor(s._scopes[0],a)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(s,a){return I5(s).includes(a)},ownKeys(s){return I5(s)},set(s,a,l){const c=s._storage||(s._storage=i());return s[a]=c[a]=l,delete s._keys,!0}})}function rc(e,t,n,r){const i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:$4(e,r),setContext:o=>rc(e,o,n,r),override:o=>rc(e.override(o),t,n,r)};return new Proxy(i,{deleteProperty(o,s){return delete o[s],delete e[s],!0},get(o,s,a){return P4(o,s,()=>drt(o,s,a))},getOwnPropertyDescriptor(o,s){return o._descriptors.allKeys?Reflect.has(e,s)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,s)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(o,s){return Reflect.has(e,s)},ownKeys(){return Reflect.ownKeys(e)},set(o,s,a){return e[s]=a,delete o[s],!0}})}function $4(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:r,isScriptable:cs(n)?n:()=>n,isIndexable:cs(r)?r:()=>r}}const urt=(e,t)=>e?e+o2(t):t,d2=(e,t)=>ft(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function P4(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];const r=n();return e[t]=r,r}function drt(e,t,n){const{_proxy:r,_context:i,_subProxy:o,_descriptors:s}=e;let a=r[t];return cs(a)&&s.isScriptable(t)&&(a=hrt(t,a,e,n)),Kt(a)&&a.length&&(a=frt(t,a,e,s.isIndexable)),d2(t,a)&&(a=rc(a,i,o&&o[t],s)),a}function hrt(e,t,n,r){const{_proxy:i,_context:o,_subProxy:s,_stack:a}=n;if(a.has(e))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+e);return a.add(e),t=t(o,s||r),a.delete(e),d2(e,t)&&(t=h2(i._scopes,i,e,t)),t}function frt(e,t,n,r){const{_proxy:i,_context:o,_subProxy:s,_descriptors:a}=n;if(br(o.index)&&r(e))t=t[o.index%t.length];else if(ft(t[0])){const l=t,c=i._scopes.filter(u=>u!==l);t=[];for(const u of l){const d=h2(c,i,e,u);t.push(rc(d,o,s&&s[e],a))}}return t}function O4(e,t,n){return cs(e)?e(t,n):e}const prt=(e,t)=>e===!0?t:typeof e=="string"?ls(t,e):void 0;function grt(e,t,n,r,i){for(const o of t){const s=prt(n,o);if(s){e.add(s);const a=O4(s._fallback,n,i);if(br(a)&&a!==n&&a!==r)return a}else if(s===!1&&br(r)&&n!==r)return null}return!1}function h2(e,t,n,r){const i=t._rootScopes,o=O4(t._fallback,n,r),s=[...e,...i],a=new Set;a.add(r);let l=L5(a,s,n,o||n,r);return l===null||br(o)&&o!==n&&(l=L5(a,s,o,l,r),l===null)?!1:u2(Array.from(a),[""],i,o,()=>mrt(t,n,r))}function L5(e,t,n,r,i){for(;n;)n=grt(e,t,n,r,i);return n}function mrt(e,t,n){const r=e._getTarget();t in r||(r[t]={});const i=r[t];return Kt(i)&&ft(n)?n:i||{}}function vrt(e,t,n,r){let i;for(const o of t)if(i=R4(urt(o,e),n),br(i))return d2(e,i)?h2(n,r,e,i):i}function R4(e,t){for(const n of t){if(!n)continue;const r=n[e];if(br(r))return r}}function I5(e){let t=e._keys;return t||(t=e._keys=yrt(e._scopes)),t}function yrt(e){const t=new Set;for(const n of e)for(const r of Object.keys(n).filter(i=>!i.startsWith("_")))t.add(r);return Array.from(t)}function D4(e,t,n,r){const{iScale:i}=e,{key:o="r"}=this._parsing,s=new Array(r);let a,l,c,u;for(a=0,l=r;a<l;++a)c=a+n,u=t[c],s[a]={r:i.parse(ls(u,o),c)};return s}const xrt=Number.EPSILON||1e-14,ic=(e,t)=>t<e.length&&!e[t].skip&&e[t],L4=e=>e==="x"?"y":"x";function brt(e,t,n,r){const i=e.skip?t:e,o=t,s=n.skip?t:n,a=Bb(o,i),l=Bb(s,o);let c=a/(a+l),u=l/(a+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const d=r*c,h=r*u;return{previous:{x:o.x-d*(s.x-i.x),y:o.y-d*(s.y-i.y)},next:{x:o.x+h*(s.x-i.x),y:o.y+h*(s.y-i.y)}}}function _rt(e,t,n){const r=e.length;let i,o,s,a,l,c=ic(e,0);for(let u=0;u<r-1;++u)if(l=c,c=ic(e,u+1),!(!l||!c)){if(Ku(t[u],0,xrt)){n[u]=n[u+1]=0;continue}i=n[u]/t[u],o=n[u+1]/t[u],a=Math.pow(i,2)+Math.pow(o,2),!(a<=9)&&(s=3/Math.sqrt(a),n[u]=i*s*t[u],n[u+1]=o*s*t[u])}}function wrt(e,t,n="x"){const r=L4(n),i=e.length;let o,s,a,l=ic(e,0);for(let c=0;c<i;++c){if(s=a,a=l,l=ic(e,c+1),!a)continue;const u=a[n],d=a[r];s&&(o=(u-s[n])/3,a[`cp1${n}`]=u-o,a[`cp1${r}`]=d-o*t[c]),l&&(o=(l[n]-u)/3,a[`cp2${n}`]=u+o,a[`cp2${r}`]=d+o*t[c])}}function Art(e,t="x"){const n=L4(t),r=e.length,i=Array(r).fill(0),o=Array(r);let s,a,l,c=ic(e,0);for(s=0;s<r;++s)if(a=l,l=c,c=ic(e,s+1),!!l){if(c){const u=c[t]-l[t];i[s]=u!==0?(c[n]-l[n])/u:0}o[s]=a?c?ui(i[s-1])!==ui(i[s])?0:(i[s-1]+i[s])/2:i[s-1]:i[s]}_rt(e,i,o),wrt(e,o,t)}function qf(e,t,n){return Math.max(Math.min(e,n),t)}function Srt(e,t){let n,r,i,o,s,a=rh(e[0],t);for(n=0,r=e.length;n<r;++n)s=o,o=a,a=n<r-1&&rh(e[n+1],t),o&&(i=e[n],s&&(i.cp1x=qf(i.cp1x,t.left,t.right),i.cp1y=qf(i.cp1y,t.top,t.bottom)),a&&(i.cp2x=qf(i.cp2x,t.left,t.right),i.cp2y=qf(i.cp2y,t.top,t.bottom)))}function Ert(e,t,n,r,i){let o,s,a,l;if(t.spanGaps&&(e=e.filter(c=>!c.skip)),t.cubicInterpolationMode==="monotone")Art(e,i);else{let c=r?e[e.length-1]:e[0];for(o=0,s=e.length;o<s;++o)a=e[o],l=brt(c,a,e[Math.min(o+1,s-(r?0:1))%s],t.tension),a.cp1x=l.previous.x,a.cp1y=l.previous.y,a.cp2x=l.next.x,a.cp2y=l.next.y,c=a}t.capBezierPoints&&Srt(e,n)}function I4(){return typeof window<"u"&&typeof document<"u"}function f2(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function Lm(e,t,n){let r;return typeof e=="string"?(r=parseInt(e,10),e.indexOf("%")!==-1&&(r=r/100*t.parentNode[n])):r=e,r}const gv=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function Crt(e,t){return gv(e).getPropertyValue(t)}const krt=["top","right","bottom","left"];function sa(e,t,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const o=krt[i];r[o]=parseFloat(e[t+"-"+o+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const Trt=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function Mrt(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:i,offsetY:o}=r;let s=!1,a,l;if(Trt(i,o,e.target))a=i,l=o;else{const c=t.getBoundingClientRect();a=r.clientX-c.left,l=r.clientY-c.top,s=!0}return{x:a,y:l,box:s}}function Bs(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,i=gv(n),o=i.boxSizing==="border-box",s=sa(i,"padding"),a=sa(i,"border","width"),{x:l,y:c,box:u}=Mrt(e,n),d=s.left+(u&&a.left),h=s.top+(u&&a.top);let{width:f,height:p}=t;return o&&(f-=s.width+a.width,p-=s.height+a.height),{x:Math.round((l-d)/f*n.width/r),y:Math.round((c-h)/p*n.height/r)}}function $rt(e,t,n){let r,i;if(t===void 0||n===void 0){const o=f2(e);if(!o)t=e.clientWidth,n=e.clientHeight;else{const s=o.getBoundingClientRect(),a=gv(o),l=sa(a,"border","width"),c=sa(a,"padding");t=s.width-c.width-l.width,n=s.height-c.height-l.height,r=Lm(a.maxWidth,o,"clientWidth"),i=Lm(a.maxHeight,o,"clientHeight")}}return{width:t,height:n,maxWidth:r||Rm,maxHeight:i||Rm}}const Xf=e=>Math.round(e*10)/10;function Prt(e,t,n,r){const i=gv(e),o=sa(i,"margin"),s=Lm(i.maxWidth,e,"clientWidth")||Rm,a=Lm(i.maxHeight,e,"clientHeight")||Rm,l=$rt(e,t,n);let{width:c,height:u}=l;if(i.boxSizing==="content-box"){const d=sa(i,"border","width"),h=sa(i,"padding");c-=h.width+d.width,u-=h.height+d.height}return c=Math.max(0,c-o.width),u=Math.max(0,r?c/r:u-o.height),c=Xf(Math.min(c,s,l.maxWidth)),u=Xf(Math.min(u,a,l.maxHeight)),c&&!u&&(u=Xf(c/2)),(t!==void 0||n!==void 0)&&r&&l.height&&u>l.height&&(u=l.height,c=Xf(Math.floor(u*r))),{width:c,height:u}}function N5(e,t,n){const r=t||1,i=Math.floor(e.height*r),o=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const s=e.canvas;return s.style&&(n||!s.style.height&&!s.style.width)&&(s.style.height=`${e.height}px`,s.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||s.height!==i||s.width!==o?(e.currentDevicePixelRatio=r,s.height=i,s.width=o,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}const Ort=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(t){}return e}();function F5(e,t){const n=Crt(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function Vs(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function Rrt(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:r==="middle"?n<.5?e.y:t.y:r==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function Drt(e,t,n,r){const i={x:e.cp2x,y:e.cp2y},o={x:t.cp1x,y:t.cp1y},s=Vs(e,i,n),a=Vs(i,o,n),l=Vs(o,t,n),c=Vs(s,a,n),u=Vs(a,l,n);return Vs(c,u,n)}const Lrt=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},Irt=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function $l(e,t,n){return e?Lrt(t,n):Irt()}function N4(e,t){let n,r;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function F4(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function z4(e){return e==="angle"?{between:nh,compare:Nnt,normalize:Gn}:{between:Li,compare:(t,n)=>t-n,normalize:t=>t}}function z5({start:e,end:t,count:n,loop:r,style:i}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n===0,style:i}}function Nrt(e,t,n){const{property:r,start:i,end:o}=n,{between:s,normalize:a}=z4(r),l=t.length;let{start:c,end:u,loop:d}=e,h,f;if(d){for(c+=l,u+=l,h=0,f=l;h<f&&s(a(t[c%l][r]),i,o);++h)c--,u--;c%=l,u%=l}return u<c&&(u+=l),{start:c,end:u,loop:d,style:e.style}}function B4(e,t,n){if(!n)return[e];const{property:r,start:i,end:o}=n,s=t.length,{compare:a,between:l,normalize:c}=z4(r),{start:u,end:d,loop:h,style:f}=Nrt(e,t,n),p=[];let g=!1,y=null,m,x,b;const _=()=>l(i,b,m)&&a(i,b)!==0,w=()=>a(o,m)===0||l(o,b,m),A=()=>g||_(),S=()=>!g||w();for(let E=u,k=u;E<=d;++E)x=t[E%s],!x.skip&&(m=c(x[r]),m!==b&&(g=l(m,i,o),y===null&&A()&&(y=a(m,i)===0?E:k),y!==null&&S()&&(p.push(z5({start:y,end:E,loop:h,count:s,style:f})),y=null),k=E,b=m));return y!==null&&p.push(z5({start:y,end:d,loop:h,count:s,style:f})),p}function V4(e,t){const n=[],r=e.segments;for(let i=0;i<r.length;i++){const o=B4(r[i],e.points,t);o.length&&n.push(...o)}return n}function Frt(e,t,n,r){let i=0,o=t-1;if(n&&!r)for(;i<t&&!e[i].skip;)i++;for(;i<t&&e[i].skip;)i++;for(i%=t,n&&(o+=i);o>i&&e[o%t].skip;)o--;return o%=t,{start:i,end:o}}function zrt(e,t,n,r){const i=e.length,o=[];let s=t,a=e[t],l;for(l=t+1;l<=n;++l){const c=e[l%i];c.skip||c.stop?a.skip||(r=!1,o.push({start:t%i,end:(l-1)%i,loop:r}),t=s=c.stop?l:null):(s=l,a.skip&&(t=l)),a=c}return s!==null&&o.push({start:t%i,end:s%i,loop:r}),o}function Brt(e,t){const n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];const o=!!e._loop,{start:s,end:a}=Frt(n,i,o,r);if(r===!0)return B5(e,[{start:s,end:a,loop:o}],n,t);const l=a<s?a+i:a,c=!!e._fullLoop&&s===0&&a===i-1;return B5(e,zrt(n,s,l,c),n,t)}function B5(e,t,n,r){return!r||!r.setContext||!n?t:Vrt(e,t,n,r)}function Vrt(e,t,n,r){const i=e._chart.getContext(),o=V5(e.options),{_datasetIndex:s,options:{spanGaps:a}}=e,l=n.length,c=[];let u=o,d=t[0].start,h=d;function f(p,g,y,m){const x=a?-1:1;if(p!==g){for(p+=l;n[p%l].skip;)p-=x;for(;n[g%l].skip;)g+=x;p%l!==g%l&&(c.push({start:p%l,end:g%l,loop:y,style:m}),u=m,d=g%l)}}for(const p of t){d=a?d:p.start;let g=n[d%l],y;for(h=d+1;h<=p.end;h++){const m=n[h%l];y=V5(r.setContext(ys(i,{type:"segment",p0:g,p1:m,p0DataIndex:(h-1)%l,p1DataIndex:h%l,datasetIndex:s}))),jrt(y,u)&&f(d,h-1,p.loop,u),g=m,u=y}d<h-1&&f(d,h-1,p.loop,u)}return c}function V5(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function jrt(e,t){return t&&JSON.stringify(e)!==JSON.stringify(t)}/*!
|
|
430
|
+
* Chart.js v4.2.0
|
|
431
|
+
* https://www.chartjs.org
|
|
432
|
+
* (c) 2023 Chart.js Contributors
|
|
433
|
+
* Released under the MIT License
|
|
434
|
+
*/class Hrt{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,r,i){const o=n.listeners[i],s=n.duration;o.forEach(a=>a({chart:t,initial:n.initial,numSteps:s,currentStep:Math.min(r-n.start,s)}))}_refresh(){this._request||(this._running=!0,this._request=w4.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((r,i)=>{if(!r.running||!r.items.length)return;const o=r.items;let s=o.length-1,a=!1,l;for(;s>=0;--s)l=o[s],l._active?(l._total>r.duration&&(r.duration=l._total),l.tick(t),a=!0):(o[s]=o[o.length-1],o.pop());a&&(i.draw(),this._notify(i,r,t,"progress")),o.length||(r.running=!1,this._notify(i,r,t,"complete"),r.initial=!1),n+=o.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let r=n.get(t);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,r)),r}listen(t,n,r){this._getAnims(t).listeners[n].push(r)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);!n||(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,i)=>Math.max(r,i._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const r=n.items;let i=r.length-1;for(;i>=0;--i)r[i].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var _i=new Hrt;const j5="transparent",Urt={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=O5(e||j5),i=r.valid&&O5(t||j5);return i&&i.valid?i.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class Wrt{constructor(t,n,r,i){const o=n[r];i=hu([t.to,i,o,t.from]);const s=hu([t.from,o,i]);this._active=!0,this._fn=t.fn||Urt[t.type||typeof s],this._easing=Zu[t.easing]||Zu.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=s,this._to=i,this._promises=void 0}active(){return this._active}update(t,n,r){if(this._active){this._notify(!1);const i=this._target[this._prop],o=r-this._start,s=this._duration-o;this._start=r,this._duration=Math.floor(Math.max(s,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=hu([t.to,n,i,t.from]),this._from=hu([t.from,i,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,r=this._duration,i=this._prop,o=this._from,s=this._loop,a=this._to;let l;if(this._active=o!==a&&(s||n<r),!this._active){this._target[i]=a,this._notify(!0);return}if(n<0){this._target[i]=o;return}l=n/r%2,l=s&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[i]=this._fn(o,a,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,r)=>{t.push({res:n,rej:r})})}_notify(t){const n=t?"res":"rej",r=this._promises||[];for(let i=0;i<r.length;i++)r[i][n]()}}class j4{constructor(t,n){this._chart=t,this._properties=new Map,this.configure(n)}configure(t){if(!ft(t))return;const n=Object.keys(_e.animation),r=this._properties;Object.getOwnPropertyNames(t).forEach(i=>{const o=t[i];if(!ft(o))return;const s={};for(const a of n)s[a]=o[a];(Kt(o.properties)&&o.properties||[i]).forEach(a=>{(a===i||!r.has(a))&&r.set(a,s)})})}_animateOptions(t,n){const r=n.options,i=Grt(t,r);if(!i)return[];const o=this._createAnimations(i,r);return r.$shared&&Yrt(t.options.$animations,r).then(()=>{t.options=r},()=>{}),o}_createAnimations(t,n){const r=this._properties,i=[],o=t.$animations||(t.$animations={}),s=Object.keys(n),a=Date.now();let l;for(l=s.length-1;l>=0;--l){const c=s[l];if(c.charAt(0)==="$")continue;if(c==="options"){i.push(...this._animateOptions(t,n));continue}const u=n[c];let d=o[c];const h=r.get(c);if(d)if(h&&d.active()){d.update(h,u,a);continue}else d.cancel();if(!h||!h.duration){t[c]=u;continue}o[c]=d=new Wrt(h,t,c,u),i.push(d)}return i}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const r=this._createAnimations(t,n);if(r.length)return _i.add(this._chart,r),!0}}function Yrt(e,t){const n=[],r=Object.keys(t);for(let i=0;i<r.length;i++){const o=e[r[i]];o&&o.active()&&n.push(o.wait())}return Promise.all(n)}function Grt(e,t){if(!t)return;let n=e.options;if(!n){e.options=t;return}return n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function H5(e,t){const n=e&&e.options||{},r=n.reverse,i=n.min===void 0?t:0,o=n.max===void 0?t:0;return{start:r?o:i,end:r?i:o}}function qrt(e,t,n){if(n===!1)return!1;const r=H5(e,n),i=H5(t,n);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}function Xrt(e){let t,n,r,i;return ft(e)?(t=e.top,n=e.right,r=e.bottom,i=e.left):t=n=r=i=e,{top:t,right:n,bottom:r,left:i,disabled:e===!1}}function H4(e,t){const n=[],r=e._getSortedDatasetMetas(t);let i,o;for(i=0,o=r.length;i<o;++i)n.push(r[i].index);return n}function U5(e,t,n,r={}){const i=e.keys,o=r.mode==="single";let s,a,l,c;if(t!==null){for(s=0,a=i.length;s<a;++s){if(l=+i[s],l===n){if(r.all)continue;break}c=e.values[l],fe(c)&&(o||t===0||ui(t)===ui(c))&&(t+=c)}return t}}function Qrt(e){const t=Object.keys(e),n=new Array(t.length);let r,i,o;for(r=0,i=t.length;r<i;++r)o=t[r],n[r]={x:o,y:e[o]};return n}function W5(e,t){const n=e&&e.options.stacked;return n||n===void 0&&t.stack!==void 0}function Krt(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}function Zrt(e){const{min:t,max:n,minDefined:r,maxDefined:i}=e.getUserBounds();return{min:r?t:Number.NEGATIVE_INFINITY,max:i?n:Number.POSITIVE_INFINITY}}function Jrt(e,t,n){const r=e[t]||(e[t]={});return r[n]||(r[n]={})}function Y5(e,t,n,r){for(const i of t.getMatchingVisibleMetas(r).reverse()){const o=e[i.index];if(n&&o>0||!n&&o<0)return i.index}return null}function G5(e,t){const{chart:n,_cachedMeta:r}=e,i=n._stacks||(n._stacks={}),{iScale:o,vScale:s,index:a}=r,l=o.axis,c=s.axis,u=Krt(o,s,r),d=t.length;let h;for(let f=0;f<d;++f){const p=t[f],{[l]:g,[c]:y}=p,m=p._stacks||(p._stacks={});h=m[c]=Jrt(i,u,g),h[a]=y,h._top=Y5(h,s,!0,r.type),h._bottom=Y5(h,s,!1,r.type);const x=h._visualValues||(h._visualValues={});x[a]=y}}function X1(e,t){const n=e.scales;return Object.keys(n).filter(r=>n[r].axis===t).shift()}function tit(e,t){return ys(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function eit(e,t,n){return ys(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function Gc(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t=t||e._parsed;for(const i of t){const o=i._stacks;if(!o||o[r]===void 0||o[r][n]===void 0)return;delete o[r][n],o[r]._visualValues!==void 0&&o[r]._visualValues[n]!==void 0&&delete o[r]._visualValues[n]}}}const Q1=e=>e==="reset"||e==="none",q5=(e,t)=>t?e:Object.assign({},e),nit=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:H4(n,!0),values:null};class zr{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=W5(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Gc(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,r=this.getDataset(),i=(d,h,f,p)=>d==="x"?h:d==="r"?p:f,o=n.xAxisID=ct(r.xAxisID,X1(t,"x")),s=n.yAxisID=ct(r.yAxisID,X1(t,"y")),a=n.rAxisID=ct(r.rAxisID,X1(t,"r")),l=n.indexAxis,c=n.iAxisID=i(l,o,s,a),u=n.vAxisID=i(l,s,o,a);n.xScale=this.getScaleForId(o),n.yScale=this.getScaleForId(s),n.rScale=this.getScaleForId(a),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&M5(this._data,this),t._stacked&&Gc(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if(ft(n))this._data=Qrt(n);else if(r!==n){if(r){M5(r,this);const i=this._cachedMeta;Gc(i),i._parsed=[]}n&&Object.isExtensible(n)&&Vnt(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,r=this.getDataset();let i=!1;this._dataCheck();const o=n._stacked;n._stacked=W5(n.vScale,n),n.stack!==r.stack&&(i=!0,Gc(n),n.stack=r.stack),this._resyncElements(t),(i||o!==n._stacked)&&G5(this,n._parsed)}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),r=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:r,_data:i}=this,{iScale:o,_stacked:s}=r,a=o.axis;let l=t===0&&n===i.length?!0:r._sorted,c=t>0&&r._parsed[t-1],u,d,h;if(this._parsing===!1)r._parsed=i,r._sorted=!0,h=i;else{Kt(i[t])?h=this.parseArrayData(r,i,t,n):ft(i[t])?h=this.parseObjectData(r,i,t,n):h=this.parsePrimitiveData(r,i,t,n);const f=()=>d[a]===null||c&&d[a]<c[a];for(u=0;u<n;++u)r._parsed[u+t]=d=h[u],l&&(f()&&(l=!1),c=d);r._sorted=l}s&&G5(this,h)}parsePrimitiveData(t,n,r,i){const{iScale:o,vScale:s}=t,a=o.axis,l=s.axis,c=o.getLabels(),u=o===s,d=new Array(i);let h,f,p;for(h=0,f=i;h<f;++h)p=h+r,d[h]={[a]:u||o.parse(c[p],p),[l]:s.parse(n[p],p)};return d}parseArrayData(t,n,r,i){const{xScale:o,yScale:s}=t,a=new Array(i);let l,c,u,d;for(l=0,c=i;l<c;++l)u=l+r,d=n[u],a[l]={x:o.parse(d[0],u),y:s.parse(d[1],u)};return a}parseObjectData(t,n,r,i){const{xScale:o,yScale:s}=t,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,c=new Array(i);let u,d,h,f;for(u=0,d=i;u<d;++u)h=u+r,f=n[h],c[u]={x:o.parse(ls(f,a),h),y:s.parse(ls(f,l),h)};return c}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,n,r){const i=this.chart,o=this._cachedMeta,s=n[t.axis],a={keys:H4(i,!0),values:n._stacks[t.axis]._visualValues};return U5(a,s,o.index,{mode:r})}updateRangeFromParsed(t,n,r,i){const o=r[n.axis];let s=o===null?NaN:o;const a=i&&r._stacks[n.axis];i&&a&&(i.values=a,s=U5(i,o,this._cachedMeta.index)),t.min=Math.min(t.min,s),t.max=Math.max(t.max,s)}getMinMax(t,n){const r=this._cachedMeta,i=r._parsed,o=r._sorted&&t===r.iScale,s=i.length,a=this._getOtherScale(t),l=nit(n,r,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:u,max:d}=Zrt(a);let h,f;function p(){f=i[h];const g=f[a.axis];return!fe(f[t.axis])||u>g||d<g}for(h=0;h<s&&!(!p()&&(this.updateRangeFromParsed(c,t,f,l),o));++h);if(o){for(h=s-1;h>=0;--h)if(!p()){this.updateRangeFromParsed(c,t,f,l);break}}return c}getAllParsedValues(t){const n=this._cachedMeta._parsed,r=[];let i,o,s;for(i=0,o=n.length;i<o;++i)s=n[i][t.axis],fe(s)&&r.push(s);return r}getMaxOverflow(){return!1}getLabelAndValue(t){const n=this._cachedMeta,r=n.iScale,i=n.vScale,o=this.getParsed(t);return{label:r?""+r.getLabelForValue(o[r.axis]):"",value:i?""+i.getLabelForValue(o[i.axis]):""}}_update(t){const n=this._cachedMeta;this.update(t||"default"),n._clip=Xrt(ct(this.options.clip,qrt(n.xScale,n.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,n=this.chart,r=this._cachedMeta,i=r.data||[],o=n.chartArea,s=[],a=this._drawStart||0,l=this._drawCount||i.length-a,c=this.options.drawActiveElementsOnTop;let u;for(r.dataset&&r.dataset.draw(t,o,a,l),u=a;u<a+l;++u){const d=i[u];d.hidden||(d.active&&c?s.push(d):d.draw(t,o))}for(u=0;u<s.length;++u)s[u].draw(t,o)}getStyle(t,n){const r=n?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(t||0,r)}getContext(t,n,r){const i=this.getDataset();let o;if(t>=0&&t<this._cachedMeta.data.length){const s=this._cachedMeta.data[t];o=s.$context||(s.$context=eit(this.getContext(),t,s)),o.parsed=this.getParsed(t),o.raw=i.data[t],o.index=o.dataIndex=t}else o=this.$context||(this.$context=tit(this.chart.getContext(),this.index)),o.dataset=i,o.index=o.datasetIndex=this.index;return o.active=!!n,o.mode=r,o}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,n){return this._resolveElementOptions(this.dataElementType.id,n,t)}_resolveElementOptions(t,n="default",r){const i=n==="active",o=this._cachedDataOpts,s=t+"-"+n,a=o[s],l=this.enableOptionSharing&&br(r);if(a)return q5(a,l);const c=this.chart.config,u=c.datasetElementScopeKeys(this._type,t),d=i?[`${t}Hover`,"hover",t,""]:[t,""],h=c.getOptionScopes(this.getDataset(),u),f=Object.keys(_e.elements[t]),p=()=>this.getContext(r,i,n),g=c.resolveNamedOptions(h,f,p,d);return g.$shared&&(g.$shared=l,o[s]=Object.freeze(q5(g,l))),g}_resolveAnimations(t,n,r){const i=this.chart,o=this._cachedDataOpts,s=`animation-${n}`,a=o[s];if(a)return a;let l;if(i.options.animation!==!1){const u=this.chart.config,d=u.datasetAnimationScopeKeys(this._type,n),h=u.getOptionScopes(this.getDataset(),d);l=u.createResolver(h,this.getContext(t,r,n))}const c=new j4(i,l&&l.animations);return l&&l._cacheable&&(o[s]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||Q1(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const r=this.resolveDataElementOptions(t,n),i=this._sharedOptions,o=this.getSharedOptions(r),s=this.includeOptions(n,o)||o!==i;return this.updateSharedOptions(o,n,r),{sharedOptions:o,includeOptions:s}}updateElement(t,n,r,i){Q1(i)?Object.assign(t,r):this._resolveAnimations(n,i).update(t,r)}updateSharedOptions(t,n,r){t&&!Q1(n)&&this._resolveAnimations(void 0,n).update(t,r)}_setStyle(t,n,r,i){t.active=i;const o=this.getStyle(n,i);this._resolveAnimations(n,r,i).update(t,{options:!i&&this.getSharedOptions(o)||o})}removeHoverStyle(t,n,r){this._setStyle(t,r,"active",!1)}setHoverStyle(t,n,r){this._setStyle(t,r,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,r=this._cachedMeta.data;for(const[a,l,c]of this._syncList)this[a](l,c);this._syncList=[];const i=r.length,o=n.length,s=Math.min(o,i);s&&this.parse(0,s),o>i?this._insertElements(i,o-i,t):o<i&&this._removeElements(o,i-o)}_insertElements(t,n,r=!0){const i=this._cachedMeta,o=i.data,s=t+n;let a;const l=c=>{for(c.length+=n,a=c.length-1;a>=s;a--)c[a]=c[a-n]};for(l(o),a=t;a<s;++a)o[a]=new this.dataElementType;this._parsing&&l(i._parsed),this.parse(t,n),r&&this.updateElements(o,t,n,"reset")}updateElements(t,n,r,i){}_removeElements(t,n){const r=this._cachedMeta;if(this._parsing){const i=r._parsed.splice(t,n);r._stacked&&Gc(r,i)}r.data.splice(t,n)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[n,r,i]=t;this[n](r,i)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,n){n&&this._sync(["_removeElements",t,n]);const r=arguments.length-2;r&&this._sync(["_insertElements",t,r])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}tt(zr,"defaults",{}),tt(zr,"datasetElementType",null),tt(zr,"dataElementType",null);function rit(e,t){if(!e._cache.$bar){const n=e.getMatchingVisibleMetas(t);let r=[];for(let i=0,o=n.length;i<o;i++)r=r.concat(n[i].controller.getAllParsedValues(e));e._cache.$bar=_4(r.sort((i,o)=>i-o))}return e._cache.$bar}function iit(e){const t=e.iScale,n=rit(t,e.type);let r=t._length,i,o,s,a;const l=()=>{s===32767||s===-32768||(br(a)&&(r=Math.min(r,Math.abs(s-a)||r)),a=s)};for(i=0,o=n.length;i<o;++i)s=t.getPixelForValue(n[i]),l();for(a=void 0,i=0,o=t.ticks.length;i<o;++i)s=t.getPixelForTick(i),l();return r}function oit(e,t,n,r){const i=n.barThickness;let o,s;return xt(i)?(o=t.min*n.categoryPercentage,s=n.barPercentage):(o=i*r,s=1),{chunk:o/r,ratio:s,start:t.pixels[e]-o/2}}function sit(e,t,n,r){const i=t.pixels,o=i[e];let s=e>0?i[e-1]:null,a=e<i.length-1?i[e+1]:null;const l=n.categoryPercentage;s===null&&(s=o-(a===null?t.end-t.start:a-o)),a===null&&(a=o+o-s);const c=o-(o-Math.min(s,a))/2*l;return{chunk:Math.abs(a-s)/2*l/r,ratio:n.barPercentage,start:c}}function ait(e,t,n,r){const i=n.parse(e[0],r),o=n.parse(e[1],r),s=Math.min(i,o),a=Math.max(i,o);let l=s,c=a;Math.abs(s)>Math.abs(a)&&(l=a,c=s),t[n.axis]=c,t._custom={barStart:l,barEnd:c,start:i,end:o,min:s,max:a}}function U4(e,t,n,r){return Kt(e)?ait(e,t,n,r):t[n.axis]=n.parse(e,r),t}function X5(e,t,n,r){const i=e.iScale,o=e.vScale,s=i.getLabels(),a=i===o,l=[];let c,u,d,h;for(c=n,u=n+r;c<u;++c)h=t[c],d={},d[i.axis]=a||i.parse(s[c],c),l.push(U4(h,d,o,c));return l}function K1(e){return e&&e.barStart!==void 0&&e.barEnd!==void 0}function lit(e,t,n){return e!==0?ui(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}function cit(e){let t,n,r,i,o;return e.horizontal?(t=e.base>e.x,n="left",r="right"):(t=e.base<e.y,n="bottom",r="top"),t?(i="end",o="start"):(i="start",o="end"),{start:n,end:r,reverse:t,top:i,bottom:o}}function uit(e,t,n,r){let i=t.borderSkipped;const o={};if(!i){e.borderSkipped=o;return}if(i===!0){e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:s,end:a,reverse:l,top:c,bottom:u}=cit(e);i==="middle"&&n&&(e.enableBorderRadius=!0,(n._top||0)===r?i=c:(n._bottom||0)===r?i=u:(o[Q5(u,s,a,l)]=!0,i=c)),o[Q5(i,s,a,l)]=!0,e.borderSkipped=o}function Q5(e,t,n,r){return r?(e=dit(e,t,n),e=K5(e,n,t)):e=K5(e,t,n),e}function dit(e,t,n){return e===t?n:e===n?t:e}function K5(e,t,n){return e==="start"?t:e==="end"?n:e}function hit(e,{inflateAmount:t},n){e.inflateAmount=t==="auto"?n===1?.33:0:t}class td extends zr{parsePrimitiveData(t,n,r,i){return X5(t,n,r,i)}parseArrayData(t,n,r,i){return X5(t,n,r,i)}parseObjectData(t,n,r,i){const{iScale:o,vScale:s}=t,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,c=o.axis==="x"?a:l,u=s.axis==="x"?a:l,d=[];let h,f,p,g;for(h=r,f=r+i;h<f;++h)g=n[h],p={},p[o.axis]=o.parse(ls(g,c),h),d.push(U4(ls(g,u),p,s,h));return d}updateRangeFromParsed(t,n,r,i){super.updateRangeFromParsed(t,n,r,i);const o=r._custom;o&&n===this._cachedMeta.vScale&&(t.min=Math.min(t.min,o.min),t.max=Math.max(t.max,o.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const n=this._cachedMeta,{iScale:r,vScale:i}=n,o=this.getParsed(t),s=o._custom,a=K1(s)?"["+s.start+", "+s.end+"]":""+i.getLabelForValue(o[i.axis]);return{label:""+r.getLabelForValue(o[r.axis]),value:a}}initialize(){this.enableOptionSharing=!0,super.initialize();const t=this._cachedMeta;t.stack=this.getDataset().stack}update(t){const n=this._cachedMeta;this.updateElements(n.data,0,n.data.length,t)}updateElements(t,n,r,i){const o=i==="reset",{index:s,_cachedMeta:{vScale:a}}=this,l=a.getBasePixel(),c=a.isHorizontal(),u=this._getRuler(),{sharedOptions:d,includeOptions:h}=this._getSharedOptions(n,i);for(let f=n;f<n+r;f++){const p=this.getParsed(f),g=o||xt(p[a.axis])?{base:l,head:l}:this._calculateBarValuePixels(f),y=this._calculateBarIndexPixels(f,u),m=(p._stacks||{})[a.axis],x={horizontal:c,base:g.base,enableBorderRadius:!m||K1(p._custom)||s===m._top||s===m._bottom,x:c?g.head:y.center,y:c?y.center:g.head,height:c?y.size:Math.abs(g.size),width:c?Math.abs(g.size):y.size};h&&(x.options=d||this.resolveDataElementOptions(f,t[f].active?"active":i));const b=x.options||t[f].options;uit(x,b,m,s),hit(x,b,u.ratio),this.updateElement(t[f],f,x,i)}}_getStacks(t,n){const{iScale:r}=this._cachedMeta,i=r.getMatchingVisibleMetas(this._type).filter(l=>l.controller.options.grouped),o=r.options.stacked,s=[],a=l=>{const c=l.controller.getParsed(n),u=c&&c[l.vScale.axis];if(xt(u)||isNaN(u))return!0};for(const l of i)if(!(n!==void 0&&a(l))&&((o===!1||s.indexOf(l.stack)===-1||o===void 0&&l.stack===void 0)&&s.push(l.stack),l.index===t))break;return s.length||s.push(void 0),s}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,n,r){const i=this._getStacks(t,r),o=n!==void 0?i.indexOf(n):-1;return o===-1?i.length-1:o}_getRuler(){const t=this.options,n=this._cachedMeta,r=n.iScale,i=[];let o,s;for(o=0,s=n.data.length;o<s;++o)i.push(r.getPixelForValue(this.getParsed(o)[r.axis],o));const a=t.barThickness;return{min:a||iit(n),pixels:i,start:r._startPixel,end:r._endPixel,stackCount:this._getStackCount(),scale:r,grouped:t.grouped,ratio:a?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:n,_stacked:r,index:i},options:{base:o,minBarLength:s}}=this,a=o||0,l=this.getParsed(t),c=l._custom,u=K1(c);let d=l[n.axis],h=0,f=r?this.applyStack(n,l,r):d,p,g;f!==d&&(h=f-d,f=d),u&&(d=c.barStart,f=c.barEnd-c.barStart,d!==0&&ui(d)!==ui(c.barEnd)&&(h=0),h+=d);const y=!xt(o)&&!u?o:h;let m=n.getPixelForValue(y);if(this.chart.getDataVisibility(t)?p=n.getPixelForValue(h+f):p=m,g=p-m,Math.abs(g)<s){g=lit(g,n,a)*s,d===a&&(m-=g/2);const x=n.getPixelForDecimal(0),b=n.getPixelForDecimal(1),_=Math.min(x,b),w=Math.max(x,b);m=Math.max(Math.min(m,w),_),p=m+g,r&&!u&&(l._stacks[n.axis]._visualValues[i]=n.getValueForPixel(p)-n.getValueForPixel(m))}if(m===n.getPixelForValue(a)){const x=ui(g)*n.getLineWidthForValue(a)/2;m+=x,g-=x}return{size:g,base:m,head:p,center:p+g/2}}_calculateBarIndexPixels(t,n){const r=n.scale,i=this.options,o=i.skipNull,s=ct(i.maxBarThickness,1/0);let a,l;if(n.grouped){const c=o?this._getStackCount(t):n.stackCount,u=i.barThickness==="flex"?sit(t,n,i,c):oit(t,n,i,c),d=this._getStackIndex(this.index,this._cachedMeta.stack,o?t:void 0);a=u.start+u.chunk*d+u.chunk/2,l=Math.min(s,u.chunk*u.ratio)}else a=r.getPixelForValue(this.getParsed(t)[r.axis],t),l=Math.min(s,n.min*n.ratio);return{base:a-l/2,head:a+l/2,center:a,size:l}}draw(){const t=this._cachedMeta,n=t.vScale,r=t.data,i=r.length;let o=0;for(;o<i;++o)this.getParsed(o)[n.axis]!==null&&r[o].draw(this._ctx)}}tt(td,"id","bar"),tt(td,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),tt(td,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});class dg extends zr{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,n,r,i){const o=super.parsePrimitiveData(t,n,r,i);for(let s=0;s<o.length;s++)o[s]._custom=this.resolveDataElementOptions(s+r).radius;return o}parseArrayData(t,n,r,i){const o=super.parseArrayData(t,n,r,i);for(let s=0;s<o.length;s++){const a=n[r+s];o[s]._custom=ct(a[2],this.resolveDataElementOptions(s+r).radius)}return o}parseObjectData(t,n,r,i){const o=super.parseObjectData(t,n,r,i);for(let s=0;s<o.length;s++){const a=n[r+s];o[s]._custom=ct(a&&a.r&&+a.r,this.resolveDataElementOptions(s+r).radius)}return o}getMaxOverflow(){const t=this._cachedMeta.data;let n=0;for(let r=t.length-1;r>=0;--r)n=Math.max(n,t[r].size(this.resolveDataElementOptions(r))/2);return n>0&&n}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart.data.labels||[],{xScale:i,yScale:o}=n,s=this.getParsed(t),a=i.getLabelForValue(s.x),l=o.getLabelForValue(s.y),c=s._custom;return{label:r[t]||"",value:"("+a+", "+l+(c?", "+c:"")+")"}}update(t){const n=this._cachedMeta.data;this.updateElements(n,0,n.length,t)}updateElements(t,n,r,i){const o=i==="reset",{iScale:s,vScale:a}=this._cachedMeta,{sharedOptions:l,includeOptions:c}=this._getSharedOptions(n,i),u=s.axis,d=a.axis;for(let h=n;h<n+r;h++){const f=t[h],p=!o&&this.getParsed(h),g={},y=g[u]=o?s.getPixelForDecimal(.5):s.getPixelForValue(p[u]),m=g[d]=o?a.getBasePixel():a.getPixelForValue(p[d]);g.skip=isNaN(y)||isNaN(m),c&&(g.options=l||this.resolveDataElementOptions(h,f.active?"active":i),o&&(g.options.radius=0)),this.updateElement(f,h,g,i)}}resolveDataElementOptions(t,n){const r=this.getParsed(t);let i=super.resolveDataElementOptions(t,n);i.$shared&&(i=Object.assign({},i,{$shared:!1}));const o=i.radius;return n!=="active"&&(i.radius=0),i.radius+=ct(r&&r._custom,o),i}}tt(dg,"id","bubble"),tt(dg,"defaults",{datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}}),tt(dg,"overrides",{scales:{x:{type:"linear"},y:{type:"linear"}}});function fit(e,t,n){let r=1,i=1,o=0,s=0;if(t<te){const a=e,l=a+t,c=Math.cos(a),u=Math.sin(a),d=Math.cos(l),h=Math.sin(l),f=(b,_,w)=>nh(b,a,l,!0)?1:Math.max(_,_*n,w,w*n),p=(b,_,w)=>nh(b,a,l,!0)?-1:Math.min(_,_*n,w,w*n),g=f(0,c,d),y=f(pe,u,h),m=p(ie,c,d),x=p(ie+pe,u,h);r=(g-m)/2,i=(y-x)/2,o=-(g+m)/2,s=-(y+x)/2}return{ratioX:r,ratioY:i,offsetX:o,offsetY:s}}class Do extends zr{constructor(t,n){super(t,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,n){const r=this.getDataset().data,i=this._cachedMeta;if(this._parsing===!1)i._parsed=r;else{let o=l=>+r[l];if(ft(r[t])){const{key:l="value"}=this._parsing;o=c=>+ls(r[c],l)}let s,a;for(s=t,a=t+n;s<a;++s)i._parsed[s]=o(s)}}_getRotation(){return Rr(this.options.rotation-90)}_getCircumference(){return Rr(this.options.circumference)}_getRotationExtents(){let t=te,n=-te;for(let r=0;r<this.chart.data.datasets.length;++r)if(this.chart.isDatasetVisible(r)&&this.chart.getDatasetMeta(r).type===this._type){const i=this.chart.getDatasetMeta(r).controller,o=i._getRotation(),s=i._getCircumference();t=Math.min(t,o),n=Math.max(n,o+s)}return{rotation:t,circumference:n-t}}update(t){const n=this.chart,{chartArea:r}=n,i=this._cachedMeta,o=i.data,s=this.getMaxBorderWidth()+this.getMaxOffset(o)+this.options.spacing,a=Math.max((Math.min(r.width,r.height)-s)/2,0),l=Math.min(knt(this.options.cutout,a),1),c=this._getRingWeight(this.index),{circumference:u,rotation:d}=this._getRotationExtents(),{ratioX:h,ratioY:f,offsetX:p,offsetY:g}=fit(d,u,l),y=(r.width-s)/h,m=(r.height-s)/f,x=Math.max(Math.min(y,m)/2,0),b=m4(this.options.radius,x),_=Math.max(b*l,0),w=(b-_)/this._getVisibleDatasetWeightTotal();this.offsetX=p*b,this.offsetY=g*b,i.total=this.calculateTotal(),this.outerRadius=b-w*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-w*c,0),this.updateElements(o,0,o.length,t)}_circumference(t,n){const r=this.options,i=this._cachedMeta,o=this._getCircumference();return n&&r.animation.animateRotate||!this.chart.getDataVisibility(t)||i._parsed[t]===null||i.data[t].hidden?0:this.calculateCircumference(i._parsed[t]*o/te)}updateElements(t,n,r,i){const o=i==="reset",s=this.chart,a=s.chartArea,l=s.options.animation,c=(a.left+a.right)/2,u=(a.top+a.bottom)/2,d=o&&l.animateScale,h=d?0:this.innerRadius,f=d?0:this.outerRadius,{sharedOptions:p,includeOptions:g}=this._getSharedOptions(n,i);let y=this._getRotation(),m;for(m=0;m<n;++m)y+=this._circumference(m,o);for(m=n;m<n+r;++m){const x=this._circumference(m,o),b=t[m],_={x:c+this.offsetX,y:u+this.offsetY,startAngle:y,endAngle:y+x,circumference:x,outerRadius:f,innerRadius:h};g&&(_.options=p||this.resolveDataElementOptions(m,b.active?"active":i)),y+=x,this.updateElement(b,m,_,i)}}calculateTotal(){const t=this._cachedMeta,n=t.data;let r=0,i;for(i=0;i<n.length;i++){const o=t._parsed[i];o!==null&&!isNaN(o)&&this.chart.getDataVisibility(i)&&!n[i].hidden&&(r+=Math.abs(o))}return r}calculateCircumference(t){const n=this._cachedMeta.total;return n>0&&!isNaN(t)?te*(Math.abs(t)/n):0}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart,i=r.data.labels||[],o=Hh(n._parsed[t],r.options.locale);return{label:i[t]||"",value:o}}getMaxBorderWidth(t){let n=0;const r=this.chart;let i,o,s,a,l;if(!t){for(i=0,o=r.data.datasets.length;i<o;++i)if(r.isDatasetVisible(i)){s=r.getDatasetMeta(i),t=s.data,a=s.controller;break}}if(!t)return 0;for(i=0,o=t.length;i<o;++i)l=a.resolveDataElementOptions(i),l.borderAlign!=="inner"&&(n=Math.max(n,l.borderWidth||0,l.hoverBorderWidth||0));return n}getMaxOffset(t){let n=0;for(let r=0,i=t.length;r<i;++r){const o=this.resolveDataElementOptions(r);n=Math.max(n,o.offset||0,o.hoverOffset||0)}return n}_getRingWeightOffset(t){let n=0;for(let r=0;r<t;++r)this.chart.isDatasetVisible(r)&&(n+=this._getRingWeight(r));return n}_getRingWeight(t){return Math.max(ct(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}tt(Do,"id","doughnut"),tt(Do,"defaults",{datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"}),tt(Do,"descriptors",{_scriptable:e=>e!=="spacing",_indexable:e=>e!=="spacing"}),tt(Do,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:n,color:r}}=e.legend.options;return t.labels.map((i,o)=>{const s=e.getDatasetMeta(0).controller.getStyle(o);return{text:i,fillStyle:s.backgroundColor,strokeStyle:s.borderColor,fontColor:r,lineWidth:s.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(o),index:o}})}return[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}}}});class hg extends zr{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const n=this._cachedMeta,{dataset:r,data:i=[],_dataset:o}=n,s=this.chart._animationsDisabled;let{start:a,count:l}=S4(n,i,s);this._drawStart=a,this._drawCount=l,E4(n)&&(a=0,l=i.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!o._decimated,r.points=i;const c=this.resolveDatasetElementOptions(t);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(r,void 0,{animated:!s,options:c},t),this.updateElements(i,a,l,t)}updateElements(t,n,r,i){const o=i==="reset",{iScale:s,vScale:a,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:u,includeOptions:d}=this._getSharedOptions(n,i),h=s.axis,f=a.axis,{spanGaps:p,segment:g}=this.options,y=nc(p)?p:Number.POSITIVE_INFINITY,m=this.chart._animationsDisabled||o||i==="none",x=n+r,b=t.length;let _=n>0&&this.getParsed(n-1);for(let w=0;w<b;++w){const A=t[w],S=m?A:{};if(w<n||w>=x){S.skip=!0;continue}const E=this.getParsed(w),k=xt(E[f]),C=S[h]=s.getPixelForValue(E[h],w),T=S[f]=o||k?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,E,l):E[f],w);S.skip=isNaN(C)||isNaN(T)||k,S.stop=w>0&&Math.abs(E[h]-_[h])>y,g&&(S.parsed=E,S.raw=c.data[w]),d&&(S.options=u||this.resolveDataElementOptions(w,A.active?"active":i)),m||this.updateElement(A,w,S,i),_=E}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,r=n.options&&n.options.borderWidth||0,i=t.data||[];if(!i.length)return r;const o=i[0].size(this.resolveDataElementOptions(0)),s=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(r,o,s)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}tt(hg,"id","line"),tt(hg,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),tt(hg,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class ed extends zr{constructor(t,n){super(t,n),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart,i=r.data.labels||[],o=Hh(n._parsed[t].r,r.options.locale);return{label:i[t]||"",value:o}}parseObjectData(t,n,r,i){return D4.bind(this)(t,n,r,i)}update(t){const n=this._cachedMeta.data;this._updateRadius(),this.updateElements(n,0,n.length,t)}getMinMax(){const t=this._cachedMeta,n={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((r,i)=>{const o=this.getParsed(i).r;!isNaN(o)&&this.chart.getDataVisibility(i)&&(o<n.min&&(n.min=o),o>n.max&&(n.max=o))}),n}_updateRadius(){const t=this.chart,n=t.chartArea,r=t.options,i=Math.min(n.right-n.left,n.bottom-n.top),o=Math.max(i/2,0),s=Math.max(r.cutoutPercentage?o/100*r.cutoutPercentage:1,0),a=(o-s)/t.getVisibleDatasetCount();this.outerRadius=o-a*this.index,this.innerRadius=this.outerRadius-a}updateElements(t,n,r,i){const o=i==="reset",s=this.chart,a=s.options.animation,l=this._cachedMeta.rScale,c=l.xCenter,u=l.yCenter,d=l.getIndexAngle(0)-.5*ie;let h=d,f;const p=360/this.countVisibleElements();for(f=0;f<n;++f)h+=this._computeAngle(f,i,p);for(f=n;f<n+r;f++){const g=t[f];let y=h,m=h+this._computeAngle(f,i,p),x=s.getDataVisibility(f)?l.getDistanceFromCenterForValue(this.getParsed(f).r):0;h=m,o&&(a.animateScale&&(x=0),a.animateRotate&&(y=m=d));const b={x:c,y:u,innerRadius:0,outerRadius:x,startAngle:y,endAngle:m,options:this.resolveDataElementOptions(f,g.active?"active":i)};this.updateElement(g,f,b,i)}}countVisibleElements(){const t=this._cachedMeta;let n=0;return t.data.forEach((r,i)=>{!isNaN(this.getParsed(i).r)&&this.chart.getDataVisibility(i)&&n++}),n}_computeAngle(t,n,r){return this.chart.getDataVisibility(t)?Rr(this.resolveDataElementOptions(t,n).angle||r):0}}tt(ed,"id","polarArea"),tt(ed,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),tt(ed,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:n,color:r}}=e.legend.options;return t.labels.map((i,o)=>{const s=e.getDatasetMeta(0).controller.getStyle(o);return{text:i,fillStyle:s.backgroundColor,strokeStyle:s.borderColor,fontColor:r,lineWidth:s.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(o),index:o}})}return[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class Hb extends Do{}tt(Hb,"id","pie"),tt(Hb,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class fg extends zr{getLabelAndValue(t){const n=this._cachedMeta.vScale,r=this.getParsed(t);return{label:n.getLabels()[t],value:""+n.getLabelForValue(r[n.axis])}}parseObjectData(t,n,r,i){return D4.bind(this)(t,n,r,i)}update(t){const n=this._cachedMeta,r=n.dataset,i=n.data||[],o=n.iScale.getLabels();if(r.points=i,t!=="resize"){const s=this.resolveDatasetElementOptions(t);this.options.showLine||(s.borderWidth=0);const a={_loop:!0,_fullLoop:o.length===i.length,options:s};this.updateElement(r,void 0,a,t)}this.updateElements(i,0,i.length,t)}updateElements(t,n,r,i){const o=this._cachedMeta.rScale,s=i==="reset";for(let a=n;a<n+r;a++){const l=t[a],c=this.resolveDataElementOptions(a,l.active?"active":i),u=o.getPointPositionForValue(a,this.getParsed(a).r),d=s?o.xCenter:u.x,h=s?o.yCenter:u.y,f={x:d,y:h,angle:u.angle,skip:isNaN(d)||isNaN(h),options:c};this.updateElement(l,a,f,i)}}}tt(fg,"id","radar"),tt(fg,"defaults",{datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}}),tt(fg,"overrides",{aspectRatio:1,scales:{r:{type:"radialLinear"}}});class pg extends zr{getLabelAndValue(t){const n=this._cachedMeta,r=this.chart.data.labels||[],{xScale:i,yScale:o}=n,s=this.getParsed(t),a=i.getLabelForValue(s.x),l=o.getLabelForValue(s.y);return{label:r[t]||"",value:"("+a+", "+l+")"}}update(t){const n=this._cachedMeta,{data:r=[]}=n,i=this.chart._animationsDisabled;let{start:o,count:s}=S4(n,r,i);if(this._drawStart=o,this._drawCount=s,E4(n)&&(o=0,s=r.length),this.options.showLine){const{dataset:a,_dataset:l}=n;a._chart=this.chart,a._datasetIndex=this.index,a._decimated=!!l._decimated,a.points=r;const c=this.resolveDatasetElementOptions(t);c.segment=this.options.segment,this.updateElement(a,void 0,{animated:!i,options:c},t)}this.updateElements(r,o,s,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(t,n,r,i){const o=i==="reset",{iScale:s,vScale:a,_stacked:l,_dataset:c}=this._cachedMeta,u=this.resolveDataElementOptions(n,i),d=this.getSharedOptions(u),h=this.includeOptions(i,d),f=s.axis,p=a.axis,{spanGaps:g,segment:y}=this.options,m=nc(g)?g:Number.POSITIVE_INFINITY,x=this.chart._animationsDisabled||o||i==="none";let b=n>0&&this.getParsed(n-1);for(let _=n;_<n+r;++_){const w=t[_],A=this.getParsed(_),S=x?w:{},E=xt(A[p]),k=S[f]=s.getPixelForValue(A[f],_),C=S[p]=o||E?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,A,l):A[p],_);S.skip=isNaN(k)||isNaN(C)||E,S.stop=_>0&&Math.abs(A[f]-b[f])>m,y&&(S.parsed=A,S.raw=c.data[_]),h&&(S.options=d||this.resolveDataElementOptions(_,w.active?"active":i)),x||this.updateElement(w,_,S,i),b=A}this.updateSharedOptions(d,i,u)}getMaxOverflow(){const t=this._cachedMeta,n=t.data||[];if(!this.options.showLine){let a=0;for(let l=n.length-1;l>=0;--l)a=Math.max(a,n[l].size(this.resolveDataElementOptions(l))/2);return a>0&&a}const r=t.dataset,i=r.options&&r.options.borderWidth||0;if(!n.length)return i;const o=n[0].size(this.resolveDataElementOptions(0)),s=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(i,o,s)/2}}tt(pg,"id","scatter"),tt(pg,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),tt(pg,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});var pit=Object.freeze({__proto__:null,BarController:td,BubbleController:dg,DoughnutController:Do,LineController:hg,PolarAreaController:ed,PieController:Hb,RadarController:fg,ScatterController:pg});function Os(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class p2{static override(t){Object.assign(p2.prototype,t)}constructor(t){this.options=t||{}}init(){}formats(){return Os()}parse(){return Os()}format(){return Os()}add(){return Os()}diff(){return Os()}startOf(){return Os()}endOf(){return Os()}}var git={_date:p2};function mit(e,t,n,r){const{controller:i,data:o,_sorted:s}=e,a=i._cachedMeta.iScale;if(a&&t===a.axis&&t!=="r"&&s&&o.length){const l=a._reversePixels?znt:Ii;if(r){if(i._sharedOptions){const c=o[0],u=typeof c.getRange=="function"&&c.getRange(t);if(u){const d=l(o,t,n-u),h=l(o,t,n+u);return{lo:d.lo,hi:h.hi}}}}else return l(o,t,n)}return{lo:0,hi:o.length-1}}function Uh(e,t,n,r,i){const o=e.getSortedVisibleDatasetMetas(),s=n[t];for(let a=0,l=o.length;a<l;++a){const{index:c,data:u}=o[a],{lo:d,hi:h}=mit(o[a],t,s,i);for(let f=d;f<=h;++f){const p=u[f];p.skip||r(p,c,f)}}}function vit(e){const t=e.indexOf("x")!==-1,n=e.indexOf("y")!==-1;return function(r,i){const o=t?Math.abs(r.x-i.x):0,s=n?Math.abs(r.y-i.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(s,2))}}function Z1(e,t,n,r,i){const o=[];return!i&&!e.isPointInArea(t)||Uh(e,n,t,function(s,a,l){!i&&!rh(s,e.chartArea,0)||s.inRange(t.x,t.y,r)&&o.push({element:s,datasetIndex:a,index:l})},!0),o}function yit(e,t,n,r){let i=[];function o(s,a,l){const{startAngle:c,endAngle:u}=s.getProps(["startAngle","endAngle"],r),{angle:d}=x4(s,{x:t.x,y:t.y});nh(d,c,u)&&i.push({element:s,datasetIndex:a,index:l})}return Uh(e,n,t,o),i}function xit(e,t,n,r,i,o){let s=[];const a=vit(n);let l=Number.POSITIVE_INFINITY;function c(u,d,h){const f=u.inRange(t.x,t.y,i);if(r&&!f)return;const p=u.getCenterPoint(i);if(!(!!o||e.isPointInArea(p))&&!f)return;const g=a(t,p);g<l?(s=[{element:u,datasetIndex:d,index:h}],l=g):g===l&&s.push({element:u,datasetIndex:d,index:h})}return Uh(e,n,t,c),s}function J1(e,t,n,r,i,o){return!o&&!e.isPointInArea(t)?[]:n==="r"&&!r?yit(e,t,n,i):xit(e,t,n,r,i,o)}function Z5(e,t,n,r,i){const o=[],s=n==="x"?"inXRange":"inYRange";let a=!1;return Uh(e,n,t,(l,c,u)=>{l[s](t[n],i)&&(o.push({element:l,datasetIndex:c,index:u}),a=a||l.inRange(t.x,t.y,i))}),r&&!a?[]:o}var bit={evaluateInteractionItems:Uh,modes:{index(e,t,n,r){const i=Bs(t,e),o=n.axis||"x",s=n.includeInvisible||!1,a=n.intersect?Z1(e,i,o,r,s):J1(e,i,o,!1,r,s),l=[];return a.length?(e.getSortedVisibleDatasetMetas().forEach(c=>{const u=a[0].index,d=c.data[u];d&&!d.skip&&l.push({element:d,datasetIndex:c.index,index:u})}),l):[]},dataset(e,t,n,r){const i=Bs(t,e),o=n.axis||"xy",s=n.includeInvisible||!1;let a=n.intersect?Z1(e,i,o,r,s):J1(e,i,o,!1,r,s);if(a.length>0){const l=a[0].datasetIndex,c=e.getDatasetMeta(l).data;a=[];for(let u=0;u<c.length;++u)a.push({element:c[u],datasetIndex:l,index:u})}return a},point(e,t,n,r){const i=Bs(t,e),o=n.axis||"xy",s=n.includeInvisible||!1;return Z1(e,i,o,r,s)},nearest(e,t,n,r){const i=Bs(t,e),o=n.axis||"xy",s=n.includeInvisible||!1;return J1(e,i,o,n.intersect,r,s)},x(e,t,n,r){const i=Bs(t,e);return Z5(e,i,"x",n.intersect,r)},y(e,t,n,r){const i=Bs(t,e);return Z5(e,i,"y",n.intersect,r)}}};const W4=["left","top","right","bottom"];function qc(e,t){return e.filter(n=>n.pos===t)}function J5(e,t){return e.filter(n=>W4.indexOf(n.pos)===-1&&n.box.axis===t)}function Xc(e,t){return e.sort((n,r)=>{const i=t?r:n,o=t?n:r;return i.weight===o.weight?i.index-o.index:i.weight-o.weight})}function _it(e){const t=[];let n,r,i,o,s,a;for(n=0,r=(e||[]).length;n<r;++n)i=e[n],{position:o,options:{stack:s,stackWeight:a=1}}=i,t.push({index:n,box:i,pos:o,horizontal:i.isHorizontal(),weight:i.weight,stack:s&&o+s,stackWeight:a});return t}function wit(e){const t={};for(const n of e){const{stack:r,pos:i,stackWeight:o}=n;if(!r||!W4.includes(i))continue;const s=t[r]||(t[r]={count:0,placed:0,weight:0,size:0});s.count++,s.weight+=o}return t}function Ait(e,t){const n=wit(e),{vBoxMaxWidth:r,hBoxMaxHeight:i}=t;let o,s,a;for(o=0,s=e.length;o<s;++o){a=e[o];const{fullSize:l}=a.box,c=n[a.stack],u=c&&a.stackWeight/c.weight;a.horizontal?(a.width=u?u*r:l&&t.availableWidth,a.height=i):(a.width=r,a.height=u?u*i:l&&t.availableHeight)}return n}function Sit(e){const t=_it(e),n=Xc(t.filter(c=>c.box.fullSize),!0),r=Xc(qc(t,"left"),!0),i=Xc(qc(t,"right")),o=Xc(qc(t,"top"),!0),s=Xc(qc(t,"bottom")),a=J5(t,"x"),l=J5(t,"y");return{fullSize:n,leftAndTop:r.concat(o),rightAndBottom:i.concat(l).concat(s).concat(a),chartArea:qc(t,"chartArea"),vertical:r.concat(i).concat(l),horizontal:o.concat(s).concat(a)}}function tT(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function Y4(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function Eit(e,t,n,r){const{pos:i,box:o}=n,s=e.maxPadding;if(!ft(i)){n.size&&(e[i]-=n.size);const d=r[n.stack]||{size:0,count:1};d.size=Math.max(d.size,n.horizontal?o.height:o.width),n.size=d.size/d.count,e[i]+=n.size}o.getPadding&&Y4(s,o.getPadding());const a=Math.max(0,t.outerWidth-tT(s,e,"left","right")),l=Math.max(0,t.outerHeight-tT(s,e,"top","bottom")),c=a!==e.w,u=l!==e.h;return e.w=a,e.h=l,n.horizontal?{same:c,other:u}:{same:u,other:c}}function Cit(e){const t=e.maxPadding;function n(r){const i=Math.max(t[r]-e[r],0);return e[r]+=i,i}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function kit(e,t){const n=t.maxPadding;function r(i){const o={left:0,top:0,right:0,bottom:0};return i.forEach(s=>{o[s]=Math.max(t[s],n[s])}),o}return r(e?["left","right"]:["top","bottom"])}function fu(e,t,n,r){const i=[];let o,s,a,l,c,u;for(o=0,s=e.length,c=0;o<s;++o){a=e[o],l=a.box,l.update(a.width||t.w,a.height||t.h,kit(a.horizontal,t));const{same:d,other:h}=Eit(t,n,a,r);c|=d&&i.length,u=u||h,l.fullSize||i.push(a)}return c&&fu(i,t,n,r)||u}function Qf(e,t,n,r,i){e.top=n,e.left=t,e.right=t+r,e.bottom=n+i,e.width=r,e.height=i}function eT(e,t,n,r){const i=n.padding;let{x:o,y:s}=t;for(const a of e){const l=a.box,c=r[a.stack]||{count:1,placed:0,weight:1},u=a.stackWeight/c.weight||1;if(a.horizontal){const d=t.w*u,h=c.size||l.height;br(c.start)&&(s=c.start),l.fullSize?Qf(l,i.left,s,n.outerWidth-i.right-i.left,h):Qf(l,t.left+c.placed,s,d,h),c.start=s,c.placed+=d,s=l.bottom}else{const d=t.h*u,h=c.size||l.width;br(c.start)&&(o=c.start),l.fullSize?Qf(l,o,i.top,h,n.outerHeight-i.bottom-i.top):Qf(l,o,t.top+c.placed,h,d),c.start=o,c.placed+=d,o=l.right}}t.x=o,t.y=s}var an={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(n){t.draw(n)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;n!==-1&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,r){if(!e)return;const i=un(e.options.layout.padding),o=Math.max(t-i.width,0),s=Math.max(n-i.height,0),a=Sit(e.boxes),l=a.vertical,c=a.horizontal;kt(e.boxes,g=>{typeof g.beforeLayout=="function"&&g.beforeLayout()});const u=l.reduce((g,y)=>y.box.options&&y.box.options.display===!1?g:g+1,0)||1,d=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:o,availableHeight:s,vBoxMaxWidth:o/2/u,hBoxMaxHeight:s/2}),h=Object.assign({},i);Y4(h,un(r));const f=Object.assign({maxPadding:h,w:o,h:s,x:i.left,y:i.top},i),p=Ait(l.concat(c),d);fu(a.fullSize,f,d,p),fu(l,f,d,p),fu(c,f,d,p)&&fu(l,f,d,p),Cit(f),eT(a.leftAndTop,f,d,p),f.x+=f.w,f.y+=f.h,eT(a.rightAndBottom,f,d,p),e.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},kt(a.chartArea,g=>{const y=g.box;Object.assign(y,e.chartArea),y.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})})}};class G4{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,r){}removeEventListener(t,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,r,i){return n=Math.max(0,n||t.width),r=r||t.height,{width:n,height:Math.max(0,i?Math.floor(n/i):r)}}isAttached(t){return!0}updateConfig(t){}}class Tit extends G4{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const gg="$chartjs",Mit={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},nT=e=>e===null||e==="";function $it(e,t){const n=e.style,r=e.getAttribute("height"),i=e.getAttribute("width");if(e[gg]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",nT(i)){const o=F5(e,"width");o!==void 0&&(e.width=o)}if(nT(r))if(e.style.height==="")e.height=e.width/(t||2);else{const o=F5(e,"height");o!==void 0&&(e.height=o)}return e}const q4=Ort?{passive:!0}:!1;function Pit(e,t,n){e.addEventListener(t,n,q4)}function Oit(e,t,n){e.canvas.removeEventListener(t,n,q4)}function Rit(e,t){const n=Mit[e.type]||e.type,{x:r,y:i}=Bs(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:i!==void 0?i:null}}function Im(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function Dit(e,t,n){const r=e.canvas,i=new MutationObserver(o=>{let s=!1;for(const a of o)s=s||Im(a.addedNodes,r),s=s&&!Im(a.removedNodes,r);s&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function Lit(e,t,n){const r=e.canvas,i=new MutationObserver(o=>{let s=!1;for(const a of o)s=s||Im(a.removedNodes,r),s=s&&!Im(a.addedNodes,r);s&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const oh=new Map;let rT=0;function X4(){const e=window.devicePixelRatio;e!==rT&&(rT=e,oh.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function Iit(e,t){oh.size||window.addEventListener("resize",X4),oh.set(e,t)}function Nit(e){oh.delete(e),oh.size||window.removeEventListener("resize",X4)}function Fit(e,t,n){const r=e.canvas,i=r&&f2(r);if(!i)return;const o=A4((a,l)=>{const c=i.clientWidth;n(a,l),c<i.clientWidth&&n()},window),s=new ResizeObserver(a=>{const l=a[0],c=l.contentRect.width,u=l.contentRect.height;c===0&&u===0||o(c,u)});return s.observe(i),Iit(e,o),s}function ty(e,t,n){n&&n.disconnect(),t==="resize"&&Nit(e)}function zit(e,t,n){const r=e.canvas,i=A4(o=>{e.ctx!==null&&n(Rit(o,e))},e);return Pit(r,t,i),i}class Bit extends G4{acquireContext(t,n){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?($it(t,n),r):null}releaseContext(t){const n=t.canvas;if(!n[gg])return!1;const r=n[gg].initial;["height","width"].forEach(o=>{const s=r[o];xt(s)?n.removeAttribute(o):n.setAttribute(o,s)});const i=r.style||{};return Object.keys(i).forEach(o=>{n.style[o]=i[o]}),n.width=n.width,delete n[gg],!0}addEventListener(t,n,r){this.removeEventListener(t,n);const i=t.$proxies||(t.$proxies={}),o={attach:Dit,detach:Lit,resize:Fit}[n]||zit;i[n]=o(t,n,r)}removeEventListener(t,n){const r=t.$proxies||(t.$proxies={}),i=r[n];!i||(({attach:ty,detach:ty,resize:ty}[n]||Oit)(t,n,i),r[n]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,i){return Prt(t,n,r,i)}isAttached(t){const n=f2(t);return!!(n&&n.isConnected)}}function Vit(e){return!I4()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?Tit:Bit}class Hr{constructor(){tt(this,"active",!1)}tooltipPosition(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}hasValue(){return nc(this.x)&&nc(this.y)}getProps(t,n){const r=this.$animations;if(!n||!r)return this;const i={};return t.forEach(o=>{i[o]=r[o]&&r[o].active()?r[o]._to:this[o]}),i}}tt(Hr,"defaults",{}),tt(Hr,"defaultRoutes");function jit(e,t){const n=e.options.ticks,r=Hit(e),i=Math.min(n.maxTicksLimit||r,r),o=n.major.enabled?Wit(t):[],s=o.length,a=o[0],l=o[s-1],c=[];if(s>i)return Yit(t,c,o,s/i),c;const u=Uit(o,t,i);if(s>0){let d,h;const f=s>1?Math.round((l-a)/(s-1)):null;for(Kf(t,c,u,xt(f)?0:a-f,a),d=0,h=s-1;d<h;d++)Kf(t,c,u,o[d],o[d+1]);return Kf(t,c,u,l,xt(f)?t.length:l+f),c}return Kf(t,c,u),c}function Hit(e){const t=e.options.offset,n=e._tickSize(),r=e._length/n+(t?0:1),i=e._maxLength/n;return Math.floor(Math.min(r,i))}function Uit(e,t,n){const r=Git(e),i=t.length/n;if(!r)return Math.max(i,1);const o=Lnt(r);for(let s=0,a=o.length-1;s<a;s++){const l=o[s];if(l>i)return l}return Math.max(i,1)}function Wit(e){const t=[];let n,r;for(n=0,r=e.length;n<r;n++)e[n].major&&t.push(n);return t}function Yit(e,t,n,r){let i=0,o=n[0],s;for(r=Math.ceil(r),s=0;s<e.length;s++)s===o&&(t.push(e[s]),i++,o=n[i*r])}function Kf(e,t,n,r,i){const o=ct(r,0),s=Math.min(ct(i,e.length),e.length);let a=0,l,c,u;for(n=Math.ceil(n),i&&(l=i-r,n=l/Math.floor(l/n)),u=o;u<0;)a++,u=Math.round(o+a*n);for(c=Math.max(o,0);c<s;c++)c===u&&(t.push(e[c]),a++,u=Math.round(o+a*n))}function Git(e){const t=e.length;let n,r;if(t<2)return!1;for(r=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==r)return!1;return r}const qit=e=>e==="left"?"right":e==="right"?"left":e,iT=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n;function oT(e,t){const n=[],r=e.length/t,i=e.length;let o=0;for(;o<i;o+=r)n.push(e[Math.floor(o)]);return n}function Xit(e,t,n){const r=e.ticks.length,i=Math.min(t,r-1),o=e._startPixel,s=e._endPixel,a=1e-6;let l=e.getPixelForTick(i),c;if(!(n&&(r===1?c=Math.max(l-o,s-l):t===0?c=(e.getPixelForTick(1)-l)/2:c=(l-e.getPixelForTick(i-1))/2,l+=i<t?c:-c,l<o-a||l>s+a)))return l}function Qit(e,t){kt(e,n=>{const r=n.gc,i=r.length/2;let o;if(i>t){for(o=0;o<i;++o)delete n.data[r[o]];r.splice(0,i)}})}function Qc(e){return e.drawTicks?e.tickLength:0}function sT(e,t){if(!e.display)return 0;const n=Pe(e.font,t),r=un(e.padding);return(Kt(e.text)?e.text.length:1)*n.lineHeight+r.height}function Kit(e,t){return ys(e,{scale:t,type:"scale"})}function Zit(e,t,n){return ys(e,{tick:n,index:t,type:"tick"})}function Jit(e,t,n){let r=l2(e);return(n&&t!=="right"||!n&&t==="right")&&(r=qit(r)),r}function tot(e,t,n,r){const{top:i,left:o,bottom:s,right:a,chart:l}=e,{chartArea:c,scales:u}=l;let d=0,h,f,p;const g=s-i,y=a-o;if(e.isHorizontal()){if(f=tn(r,o,a),ft(n)){const m=Object.keys(n)[0],x=n[m];p=u[m].getPixelForValue(x)+g-t}else n==="center"?p=(c.bottom+c.top)/2+g-t:p=iT(e,n,t);h=a-o}else{if(ft(n)){const m=Object.keys(n)[0],x=n[m];f=u[m].getPixelForValue(x)-y+t}else n==="center"?f=(c.left+c.right)/2-y+t:f=iT(e,n,t);p=tn(r,s,i),d=n==="left"?-pe:pe}return{titleX:f,titleY:p,maxWidth:h,rotation:d}}class Ca extends Hr{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,n){return t}getUserBounds(){let{_userMin:t,_userMax:n,_suggestedMin:r,_suggestedMax:i}=this;return t=Un(t,Number.POSITIVE_INFINITY),n=Un(n,Number.NEGATIVE_INFINITY),r=Un(r,Number.POSITIVE_INFINITY),i=Un(i,Number.NEGATIVE_INFINITY),{min:Un(t,r),max:Un(n,i),minDefined:fe(t),maxDefined:fe(n)}}getMinMax(t){let{min:n,max:r,minDefined:i,maxDefined:o}=this.getUserBounds(),s;if(i&&o)return{min:n,max:r};const a=this.getMatchingVisibleMetas();for(let l=0,c=a.length;l<c;++l)s=a[l].controller.getMinMax(this,t),i||(n=Math.min(n,s.min)),o||(r=Math.max(r,s.max));return n=o&&n>r?r:n,r=i&&n>r?n:r,{min:Un(n,Un(r,n)),max:Un(r,Un(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){zt(this.options.beforeUpdate,[this])}update(t,n,r){const{beginAtZero:i,grace:o,ticks:s}=this.options,a=s.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=crt(this,o,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a<this.ticks.length;this._convertTicksToLabels(l?oT(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),s.display&&(s.autoSkip||s.source==="auto")&&(this.ticks=jit(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,n,r;this.isHorizontal()?(n=this.left,r=this.right):(n=this.top,r=this.bottom,t=!t),this._startPixel=n,this._endPixel=r,this._reversePixels=t,this._length=r-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){zt(this.options.afterUpdate,[this])}beforeSetDimensions(){zt(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){zt(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),zt(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){zt(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const n=this.options.ticks;let r,i,o;for(r=0,i=t.length;r<i;r++)o=t[r],o.label=zt(n.callback,[o.value,r,t],this)}afterTickToLabelConversion(){zt(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){zt(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,n=t.ticks,r=this.ticks.length,i=n.minRotation||0,o=n.maxRotation;let s=i,a,l,c;if(!this._isVisible()||!n.display||i>=o||r<=1||!this.isHorizontal()){this.labelRotation=i;return}const u=this._getLabelSizes(),d=u.widest.width,h=u.highest.height,f=ze(this.chart.width-d,0,this.maxWidth);a=t.offset?this.maxWidth/r:f/(r-1),d+6>a&&(a=f/(r-(t.offset?.5:1)),l=this.maxHeight-Qc(t.grid)-n.padding-sT(t.title,this.chart.options.font),c=Math.sqrt(d*d+h*h),s=s2(Math.min(Math.asin(ze((u.highest.height+6)/a,-1,1)),Math.asin(ze(l/c,-1,1))-Math.asin(ze(h/c,-1,1)))),s=Math.max(i,Math.min(o,s))),this.labelRotation=s}afterCalculateLabelRotation(){zt(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){zt(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:r,title:i,grid:o}}=this,s=this._isVisible(),a=this.isHorizontal();if(s){const l=sT(i,n.options.font);if(a?(t.width=this.maxWidth,t.height=Qc(o)+l):(t.height=this.maxHeight,t.width=Qc(o)+l),r.display&&this.ticks.length){const{first:c,last:u,widest:d,highest:h}=this._getLabelSizes(),f=r.padding*2,p=Rr(this.labelRotation),g=Math.cos(p),y=Math.sin(p);if(a){const m=r.mirror?0:y*d.width+g*h.height;t.height=Math.min(this.maxHeight,t.height+m+f)}else{const m=r.mirror?0:g*d.width+y*h.height;t.width=Math.min(this.maxWidth,t.width+m+f)}this._calculatePadding(c,u,y,g)}}this._handleMargins(),a?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,r,i){const{ticks:{align:o,padding:s},position:a}=this.options,l=this.labelRotation!==0,c=a!=="top"&&this.axis==="x";if(this.isHorizontal()){const u=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,f=0;l?c?(h=i*t.width,f=r*n.height):(h=r*t.height,f=i*n.width):o==="start"?f=n.width:o==="end"?h=t.width:o!=="inner"&&(h=t.width/2,f=n.width/2),this.paddingLeft=Math.max((h-u+s)*this.width/(this.width-u),0),this.paddingRight=Math.max((f-d+s)*this.width/(this.width-d),0)}else{let u=n.height/2,d=t.height/2;o==="start"?(u=0,d=t.height):o==="end"&&(u=n.height,d=0),this.paddingTop=u+s,this.paddingBottom=d+s}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){zt(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,r;for(n=0,r=t.length;n<r;n++)xt(t[n].label)&&(t.splice(n,1),r--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const n=this.options.ticks.sampleSize;let r=this.ticks;n<r.length&&(r=oT(r,n)),this._labelSizes=t=this._computeLabelSizes(r,r.length)}return t}_computeLabelSizes(t,n){const{ctx:r,_longestTextCache:i}=this,o=[],s=[];let a=0,l=0,c,u,d,h,f,p,g,y,m,x,b;for(c=0;c<n;++c){if(h=t[c].label,f=this._resolveTickFontOptions(c),r.font=p=f.string,g=i[p]=i[p]||{data:{},gc:[]},y=f.lineHeight,m=x=0,!xt(h)&&!Kt(h))m=Dm(r,g.data,g.gc,m,h),x=y;else if(Kt(h))for(u=0,d=h.length;u<d;++u)b=h[u],!xt(b)&&!Kt(b)&&(m=Dm(r,g.data,g.gc,m,b),x+=y);o.push(m),s.push(x),a=Math.max(m,a),l=Math.max(x,l)}Qit(i,n);const _=o.indexOf(a),w=s.indexOf(l),A=S=>({width:o[S]||0,height:s[S]||0});return{first:A(0),last:A(n-1),widest:A(_),highest:A(w),widths:o,heights:s}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return Fnt(this._alignToPixels?Ps(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&t<n.length){const r=n[t];return r.$context||(r.$context=Zit(this.getContext(),t,r))}return this.$context||(this.$context=Kit(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,n=Rr(this.labelRotation),r=Math.abs(Math.cos(n)),i=Math.abs(Math.sin(n)),o=this._getLabelSizes(),s=t.autoSkipPadding||0,a=o?o.widest.width+s:0,l=o?o.highest.height+s:0;return this.isHorizontal()?l*r>a*i?a/r:l/i:l*i<a*r?l/r:a/i}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const n=this.axis,r=this.chart,i=this.options,{grid:o,position:s,border:a}=i,l=o.offset,c=this.isHorizontal(),u=this.ticks.length+(l?1:0),d=Qc(o),h=[],f=a.setContext(this.getContext()),p=f.display?f.width:0,g=p/2,y=function(D){return Ps(r,D,p)};let m,x,b,_,w,A,S,E,k,C,T,$;if(s==="top")m=y(this.bottom),A=this.bottom-d,E=m-g,C=y(t.top)+g,$=t.bottom;else if(s==="bottom")m=y(this.top),C=t.top,$=y(t.bottom)-g,A=m+g,E=this.top+d;else if(s==="left")m=y(this.right),w=this.right-d,S=m-g,k=y(t.left)+g,T=t.right;else if(s==="right")m=y(this.left),k=t.left,T=y(t.right)-g,w=m+g,S=this.left+d;else if(n==="x"){if(s==="center")m=y((t.top+t.bottom)/2+.5);else if(ft(s)){const D=Object.keys(s)[0],Y=s[D];m=y(this.chart.scales[D].getPixelForValue(Y))}C=t.top,$=t.bottom,A=m+g,E=A+d}else if(n==="y"){if(s==="center")m=y((t.left+t.right)/2);else if(ft(s)){const D=Object.keys(s)[0],Y=s[D];m=y(this.chart.scales[D].getPixelForValue(Y))}w=m-g,S=w-d,k=t.left,T=t.right}const I=ct(i.ticks.maxTicksLimit,u),N=Math.max(1,Math.ceil(u/I));for(x=0;x<u;x+=N){const D=this.getContext(x),Y=o.setContext(D),Q=a.setContext(D),F=Y.lineWidth,W=Y.color,P=Q.dash||[],G=Q.dashOffset,U=Y.tickWidth,B=Y.tickColor,R=Y.tickBorderDash||[],V=Y.tickBorderDashOffset;b=Xit(this,x,l),b!==void 0&&(_=Ps(r,b,F),c?w=S=k=T=_:A=E=C=$=_,h.push({tx1:w,ty1:A,tx2:S,ty2:E,x1:k,y1:C,x2:T,y2:$,width:F,color:W,borderDash:P,borderDashOffset:G,tickWidth:U,tickColor:B,tickBorderDash:R,tickBorderDashOffset:V}))}return this._ticksLength=u,this._borderValue=m,h}_computeLabelItems(t){const n=this.axis,r=this.options,{position:i,ticks:o}=r,s=this.isHorizontal(),a=this.ticks,{align:l,crossAlign:c,padding:u,mirror:d}=o,h=Qc(r.grid),f=h+u,p=d?-u:f,g=-Rr(this.labelRotation),y=[];let m,x,b,_,w,A,S,E,k,C,T,$,I="middle";if(i==="top")A=this.bottom-p,S=this._getXAxisLabelAlignment();else if(i==="bottom")A=this.top+p,S=this._getXAxisLabelAlignment();else if(i==="left"){const D=this._getYAxisLabelAlignment(h);S=D.textAlign,w=D.x}else if(i==="right"){const D=this._getYAxisLabelAlignment(h);S=D.textAlign,w=D.x}else if(n==="x"){if(i==="center")A=(t.top+t.bottom)/2+f;else if(ft(i)){const D=Object.keys(i)[0],Y=i[D];A=this.chart.scales[D].getPixelForValue(Y)+f}S=this._getXAxisLabelAlignment()}else if(n==="y"){if(i==="center")w=(t.left+t.right)/2-f;else if(ft(i)){const D=Object.keys(i)[0],Y=i[D];w=this.chart.scales[D].getPixelForValue(Y)}S=this._getYAxisLabelAlignment(h).textAlign}n==="y"&&(l==="start"?I="top":l==="end"&&(I="bottom"));const N=this._getLabelSizes();for(m=0,x=a.length;m<x;++m){b=a[m],_=b.label;const D=o.setContext(this.getContext(m));E=this.getPixelForTick(m)+o.labelOffset,k=this._resolveTickFontOptions(m),C=k.lineHeight,T=Kt(_)?_.length:1;const Y=T/2,Q=D.color,F=D.textStrokeColor,W=D.textStrokeWidth;let P=S;s?(w=E,S==="inner"&&(m===x-1?P=this.options.reverse?"left":"right":m===0?P=this.options.reverse?"right":"left":P="center"),i==="top"?c==="near"||g!==0?$=-T*C+C/2:c==="center"?$=-N.highest.height/2-Y*C+C:$=-N.highest.height+C/2:c==="near"||g!==0?$=C/2:c==="center"?$=N.highest.height/2-Y*C:$=N.highest.height-T*C,d&&($*=-1),g!==0&&!D.showLabelBackdrop&&(w+=C/2*Math.sin(g))):(A=E,$=(1-T)*C/2);let G;if(D.showLabelBackdrop){const U=un(D.backdropPadding),B=N.heights[m],R=N.widths[m];let V=$-U.top,K=0-U.left;switch(I){case"middle":V-=B/2;break;case"bottom":V-=B;break}switch(S){case"center":K-=R/2;break;case"right":K-=R;break}G={left:K,top:V,width:R+U.width,height:B+U.height,color:D.backdropColor}}y.push({label:_,font:k,textOffset:$,options:{rotation:g,color:Q,strokeColor:F,strokeWidth:W,textAlign:P,textBaseline:I,translation:[w,A],backdrop:G}})}return y}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-Rr(this.labelRotation))return t==="top"?"left":"right";let r="center";return n.align==="start"?r="left":n.align==="end"?r="right":n.align==="inner"&&(r="inner"),r}_getYAxisLabelAlignment(t){const{position:n,ticks:{crossAlign:r,mirror:i,padding:o}}=this.options,s=this._getLabelSizes(),a=t+o,l=s.widest.width;let c,u;return n==="left"?i?(u=this.right+o,r==="near"?c="left":r==="center"?(c="center",u+=l/2):(c="right",u+=l)):(u=this.right-a,r==="near"?c="right":r==="center"?(c="center",u-=l/2):(c="left",u=this.left)):n==="right"?i?(u=this.left+o,r==="near"?c="right":r==="center"?(c="center",u-=l/2):(c="left",u-=l)):(u=this.left+a,r==="near"?c="left":r==="center"?(c="center",u+=l/2):(c="right",u=this.right)):c="right",{textAlign:c,x:u}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:n},left:r,top:i,width:o,height:s}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(r,i,o,s),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const r=this.ticks.findIndex(i=>i.value===t);return r>=0?n.setContext(this.getContext(r)).lineWidth:0}drawGrid(t){const n=this.options.grid,r=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,s;const a=(l,c,u)=>{!u.width||!u.color||(r.save(),r.lineWidth=u.width,r.strokeStyle=u.color,r.setLineDash(u.borderDash||[]),r.lineDashOffset=u.borderDashOffset,r.beginPath(),r.moveTo(l.x,l.y),r.lineTo(c.x,c.y),r.stroke(),r.restore())};if(n.display)for(o=0,s=i.length;o<s;++o){const l=i[o];n.drawOnChartArea&&a({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),n.drawTicks&&a({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:n,options:{border:r,grid:i}}=this,o=r.setContext(this.getContext()),s=r.display?o.width:0;if(!s)return;const a=i.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let c,u,d,h;this.isHorizontal()?(c=Ps(t,this.left,s)-s/2,u=Ps(t,this.right,a)+a/2,d=h=l):(d=Ps(t,this.top,s)-s/2,h=Ps(t,this.bottom,a)+a/2,c=u=l),n.save(),n.lineWidth=o.width,n.strokeStyle=o.color,n.beginPath(),n.moveTo(c,d),n.lineTo(u,h),n.stroke(),n.restore()}drawLabels(t){if(!this.options.ticks.display)return;const n=this.ctx,r=this._computeLabelArea();r&&fv(n,r);const i=this.getLabelItems(t);for(const o of i){const s=o.options,a=o.font,l=o.label,c=o.textOffset;ba(n,l,0,c,a,s)}r&&pv(n)}drawTitle(){const{ctx:t,options:{position:n,title:r,reverse:i}}=this;if(!r.display)return;const o=Pe(r.font),s=un(r.padding),a=r.align;let l=o.lineHeight/2;n==="bottom"||n==="center"||ft(n)?(l+=s.bottom,Kt(r.text)&&(l+=o.lineHeight*(r.text.length-1))):l+=s.top;const{titleX:c,titleY:u,maxWidth:d,rotation:h}=tot(this,l,n,a);ba(t,r.text,0,0,o,{color:r.color,maxWidth:d,rotation:h,textAlign:Jit(a,n,i),textBaseline:"middle",translation:[c,u]})}draw(t){!this._isVisible()||(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,n=t.ticks&&t.ticks.z||0,r=ct(t.grid&&t.grid.z,-1),i=ct(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==Ca.prototype.draw?[{z:n,draw:o=>{this.draw(o)}}]:[{z:r,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",i=[];let o,s;for(o=0,s=n.length;o<s;++o){const a=n[o];a[r]===this.id&&(!t||a.type===t)&&i.push(a)}return i}_resolveTickFontOptions(t){const n=this.options.ticks.setContext(this.getContext(t));return Pe(n.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class Zf{constructor(t,n,r){this.type=t,this.scope=n,this.override=r,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const n=Object.getPrototypeOf(t);let r;rot(n)&&(r=this.register(n));const i=this.items,o=t.id,s=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+t);return o in i||(i[o]=t,eot(t,s,r),this.override&&_e.override(t.id,t.overrides)),s}get(t){return this.items[t]}unregister(t){const n=this.items,r=t.id,i=this.scope;r in n&&delete n[r],i&&r in _e[i]&&(delete _e[i][r],this.override&&delete xa[r])}}function eot(e,t,n){const r=eh(Object.create(null),[n?_e.get(n):{},_e.get(t),e.defaults]);_e.set(t,r),e.defaultRoutes&¬(t,e.defaultRoutes),e.descriptors&&_e.describe(t,e.descriptors)}function not(e,t){Object.keys(t).forEach(n=>{const r=n.split("."),i=r.pop(),o=[e].concat(r).join("."),s=t[n].split("."),a=s.pop(),l=s.join(".");_e.route(o,i,l,a)})}function rot(e){return"id"in e&&"defaults"in e}class iot{constructor(){this.controllers=new Zf(zr,"datasets",!0),this.elements=new Zf(Hr,"elements"),this.plugins=new Zf(Object,"plugins"),this.scales=new Zf(Ca,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,r){[...n].forEach(i=>{const o=r||this._getRegistryForType(i);r||o.isForType(i)||o===this.plugins&&i.id?this._exec(t,o,i):kt(i,s=>{const a=r||this._getRegistryForType(s);this._exec(t,a,s)})})}_exec(t,n,r){const i=o2(t);zt(r["before"+i],[],r),n[t](r),zt(r["after"+i],[],r)}_getRegistryForType(t){for(let n=0;n<this._typedRegistries.length;n++){const r=this._typedRegistries[n];if(r.isForType(t))return r}return this.plugins}_get(t,n,r){const i=n.get(t);if(i===void 0)throw new Error('"'+t+'" is not a registered '+r+".");return i}}var Zr=new iot;class oot{constructor(){this._init=[]}notify(t,n,r,i){n==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const o=i?this._descriptors(t).filter(i):this._descriptors(t),s=this._notify(o,t,n,r);return n==="afterDestroy"&&(this._notify(o,t,"stop"),this._notify(this._init,t,"uninstall")),s}_notify(t,n,r,i){i=i||{};for(const o of t){const s=o.plugin,a=s[r],l=[n,i,o.options];if(zt(a,l,s)===!1&&i.cancelable)return!1}return!0}invalidate(){xt(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),n}_createDescriptors(t,n){const r=t&&t.config,i=ct(r.options&&r.options.plugins,{}),o=sot(r);return i===!1&&!n?[]:lot(t,o,i,n)}_notifyStateChanges(t){const n=this._oldCache||[],r=this._cache,i=(o,s)=>o.filter(a=>!s.some(l=>a.plugin.id===l.plugin.id));this._notify(i(n,r),t,"stop"),this._notify(i(r,n),t,"start")}}function sot(e){const t={},n=[],r=Object.keys(Zr.plugins.items);for(let o=0;o<r.length;o++)n.push(Zr.getPlugin(r[o]));const i=e.plugins||[];for(let o=0;o<i.length;o++){const s=i[o];n.indexOf(s)===-1&&(n.push(s),t[s.id]=!0)}return{plugins:n,localIds:t}}function aot(e,t){return!t&&e===!1?null:e===!0?{}:e}function lot(e,{plugins:t,localIds:n},r,i){const o=[],s=e.getContext();for(const a of t){const l=a.id,c=aot(r[l],i);c!==null&&o.push({plugin:a,options:cot(e.config,{plugin:a,local:n[l]},c,s)})}return o}function cot(e,{plugin:t,local:n},r,i){const o=e.pluginScopeKeys(t),s=e.getOptionScopes(r,o);return n&&t.defaults&&s.push(t.defaults),e.createResolver(s,i,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Ub(e,t){const n=_e.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function uot(e,t){let n=e;return e==="_index_"?n=t:e==="_value_"&&(n=t==="x"?"y":"x"),n}function dot(e,t){return e===t?"_index_":"_value_"}function hot(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function Nm(e,t){if(e==="x"||e==="y"||e==="r"||(e=t.axis||hot(t.position)||e.length>1&&Nm(e[0].toLowerCase(),t),e))return e;throw new Error(`Cannot determine type of '${name}' axis. Please provide 'axis' or 'position' option.`)}function fot(e,t){const n=xa[e.type]||{scales:{}},r=t.scales||{},i=Ub(e.type,t),o=Object.create(null);return Object.keys(r).forEach(s=>{const a=r[s];if(!ft(a))return console.error(`Invalid scale configuration for scale: ${s}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${s}`);const l=Nm(s,a),c=dot(l,i),u=n.scales||{};o[s]=Qu(Object.create(null),[{axis:l},a,u[l],u[c]])}),e.data.datasets.forEach(s=>{const a=s.type||e.type,l=s.indexAxis||Ub(a,t),c=(xa[a]||{}).scales||{};Object.keys(c).forEach(u=>{const d=uot(u,l),h=s[d+"AxisID"]||d;o[h]=o[h]||Object.create(null),Qu(o[h],[{axis:d},r[h],c[u]])})}),Object.keys(o).forEach(s=>{const a=o[s];Qu(a,[_e.scales[a.type],_e.scale])}),o}function Q4(e){const t=e.options||(e.options={});t.plugins=ct(t.plugins,{}),t.scales=fot(e,t)}function K4(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function pot(e){return e=e||{},e.data=K4(e.data),Q4(e),e}const aT=new Map,Z4=new Set;function Jf(e,t){let n=aT.get(e);return n||(n=t(),aT.set(e,n),Z4.add(n)),n}const Kc=(e,t,n)=>{const r=ls(t,n);r!==void 0&&e.add(r)};class got{constructor(t){this._config=pot(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=K4(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),Q4(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Jf(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return Jf(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return Jf(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,r=this.type;return Jf(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const r=this._scopeCache;let i=r.get(t);return(!i||n)&&(i=new Map,r.set(t,i)),i}getOptionScopes(t,n,r){const{options:i,type:o}=this,s=this._cachedScopes(t,r),a=s.get(n);if(a)return a;const l=new Set;n.forEach(u=>{t&&(l.add(t),u.forEach(d=>Kc(l,t,d))),u.forEach(d=>Kc(l,i,d)),u.forEach(d=>Kc(l,xa[o]||{},d)),u.forEach(d=>Kc(l,_e,d)),u.forEach(d=>Kc(l,Vb,d))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),Z4.has(n)&&s.set(n,c),c}chartOptionScopes(){const{options:t,type:n}=this;return[t,xa[n]||{},_e.datasets[n]||{},{type:n},_e,Vb]}resolveNamedOptions(t,n,r,i=[""]){const o={$shared:!0},{resolver:s,subPrefixes:a}=lT(this._resolverCache,t,i);let l=s;if(vot(s,n)){o.$shared=!1,r=cs(r)?r():r;const c=this.createResolver(t,r,a);l=rc(s,r,c)}for(const c of n)o[c]=l[c];return o}createResolver(t,n,r=[""],i){const{resolver:o}=lT(this._resolverCache,t,r);return ft(n)?rc(o,n,void 0,i):o}}function lT(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const i=n.join();let o=r.get(i);return o||(o={resolver:u2(t,n),subPrefixes:n.filter(s=>!s.toLowerCase().includes("hover"))},r.set(i,o)),o}const mot=e=>ft(e)&&Object.getOwnPropertyNames(e).reduce((t,n)=>t||cs(e[n]),!1);function vot(e,t){const{isScriptable:n,isIndexable:r}=$4(e);for(const i of t){const o=n(i),s=r(i),a=(s||o)&&e[i];if(o&&(cs(a)||mot(a))||s&&Kt(a))return!0}return!1}var yot="4.2.0";const xot=["top","bottom","left","right","chartArea"];function cT(e,t){return e==="top"||e==="bottom"||xot.indexOf(e)===-1&&t==="x"}function uT(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function dT(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),zt(n&&n.onComplete,[e],t)}function bot(e){const t=e.chart,n=t.options.animation;zt(n&&n.onProgress,[e],t)}function J4(e){return I4()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const Fm={},tI=e=>{const t=J4(e);return Object.values(Fm).filter(n=>n.canvas===t).pop()};function _ot(e,t,n){const r=Object.keys(e);for(const i of r){const o=+i;if(o>=t){const s=e[i];delete e[i],(n>0||o>t)&&(e[o+n]=s)}}}function wot(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}function Aot(e){const{xScale:t,yScale:n}=e;if(t&&n)return{left:t.left,right:t.right,top:n.top,bottom:n.bottom}}class Xn{static register(...t){Zr.add(...t),hT()}static unregister(...t){Zr.remove(...t),hT()}constructor(t,n){const r=this.config=new got(n),i=J4(t),o=tI(i);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const s=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||Vit(i)),this.platform.updateConfig(r);const a=this.platform.acquireContext(i,s.aspectRatio),l=a&&a.canvas,c=l&&l.height,u=l&&l.width;if(this.id=Cnt(),this.ctx=a,this.canvas=l,this.width=u,this.height=c,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new oot,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=jnt(d=>this.update(d),s.resizeDelay||0),this._dataChanges=[],Fm[this.id]=this,!a||!l){console.error("Failed to create chart: can't acquire context from the given item");return}_i.listen(this,"complete",dT),_i.listen(this,"progress",bot),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:r,height:i,_aspectRatio:o}=this;return xt(t)?n&&o?o:i?r/i:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return Zr}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():N5(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return D5(this.canvas,this.ctx),this}stop(){return _i.stop(this),this}resize(t,n){_i.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const r=this.options,i=this.canvas,o=r.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(i,t,n,o),a=r.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,N5(this,a,!0)&&(this.notifyPlugins("resize",{size:s}),zt(r.onResize,[this,s],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const t=this.options.scales||{};kt(t,(n,r)=>{n.id=r})}buildOrUpdateScales(){const t=this.options,n=t.scales,r=this.scales,i=Object.keys(r).reduce((s,a)=>(s[a]=!1,s),{});let o=[];n&&(o=o.concat(Object.keys(n).map(s=>{const a=n[s],l=Nm(s,a),c=l==="r",u=l==="x";return{options:a,dposition:c?"chartArea":u?"bottom":"left",dtype:c?"radialLinear":u?"category":"linear"}}))),kt(o,s=>{const a=s.options,l=a.id,c=Nm(l,a),u=ct(a.type,s.dtype);(a.position===void 0||cT(a.position,c)!==cT(s.dposition))&&(a.position=s.dposition),i[l]=!0;let d=null;if(l in r&&r[l].type===u)d=r[l];else{const h=Zr.getScale(u);d=new h({id:l,type:u,ctx:this.ctx,chart:this}),r[d.id]=d}d.init(a,t)}),kt(i,(s,a)=>{s||delete r[a]}),kt(r,s=>{an.configure(this,s,s.options),an.addBox(this,s)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,r=t.length;if(t.sort((i,o)=>i.index-o.index),r>n){for(let i=n;i<r;++i)this._destroyDatasetMeta(i);t.splice(n,r-n)}this._sortedMetasets=t.slice(0).sort(uT("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:n}}=this;t.length>n.length&&delete this._stacks,t.forEach((r,i)=>{n.filter(o=>o===r._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let r,i;for(this._removeUnreferencedMetasets(),r=0,i=n.length;r<i;r++){const o=n[r];let s=this.getDatasetMeta(r);const a=o.type||this.config.type;if(s.type&&s.type!==a&&(this._destroyDatasetMeta(r),s=this.getDatasetMeta(r)),s.type=a,s.indexAxis=o.indexAxis||Ub(a,this.options),s.order=o.order||0,s.index=r,s.label=""+o.label,s.visible=this.isDatasetVisible(r),s.controller)s.controller.updateIndex(r),s.controller.linkScales();else{const l=Zr.getController(a),{datasetElementType:c,dataElementType:u}=_e.datasets[a];Object.assign(l,{dataElementType:Zr.getElement(u),datasetElementType:c&&Zr.getElement(c)}),s.controller=new l(this,r),t.push(s.controller)}}return this._updateMetasets(),t}_resetElements(){kt(this.data.datasets,(t,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let c=0,u=this.data.datasets.length;c<u;c++){const{controller:d}=this.getDatasetMeta(c),h=!i&&o.indexOf(d)===-1;d.buildOrUpdateElements(h),s=Math.max(+d.getMaxOverflow(),s)}s=this._minPadding=r.layout.autoPadding?s:0,this._updateLayout(s),i||kt(o,c=>{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(uT("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){kt(this.scales,t=>{an.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!E5(n,r)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:i,count:o}of n){const s=r==="_removeElements"?-o:o;_ot(t,i,s)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=o=>new Set(t.filter(s=>s[0]===o).map((s,a)=>a+","+s.splice(1).join(","))),i=r(0);for(let o=1;o<n;o++)if(!E5(i,r(o)))return;return Array.from(i).map(o=>o.split(",")).map(o=>({method:o[1],start:+o[2],count:+o[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;an.update(this,this.width,this.height,t);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],kt(this.boxes,i=>{r&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,o)=>{i._idx=o}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n<r;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,r=this.data.datasets.length;n<r;++n)this._updateDataset(n,cs(t)?t({datasetIndex:n}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,n){const r=this.getDatasetMeta(t),i={meta:r,index:t,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",i)!==!1&&(r.controller._update(n),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(_i.has(this)?this.attached&&!_i.running(this)&&_i.start(this):(this.draw(),dT({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:r,height:i}=this._resizeBeforeDraw;this._resize(r,i),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(this.chartArea);for(this._drawDatasets();t<n.length;++t)n[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const n=this._sortedMetasets,r=[];let i,o;for(i=0,o=n.length;i<o;++i){const s=n[i];(!t||s.visible)&&r.push(s)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let n=t.length-1;n>=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,r=t._clip,i=!r.disabled,o=Aot(t)||this.chartArea,s={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",s)!==!1&&(i&&fv(n,{left:r.left===!1?0:o.left-r.left,right:r.right===!1?this.width:o.right+r.right,top:r.top===!1?0:o.top-r.top,bottom:r.bottom===!1?this.height:o.bottom+r.bottom}),t.controller.draw(),i&&pv(n),s.cancelable=!1,this.notifyPlugins("afterDatasetDraw",s))}isPointInArea(t){return rh(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,r,i){const o=bit.modes[n];return typeof o=="function"?o(this,t,r,i):[]}getDatasetMeta(t){const n=this.data.datasets[t],r=this._metasets;let i=r.filter(o=>o&&o._dataset===n).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},r.push(i)),i}getContext(){return this.$context||(this.$context=ys(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const r=this.getDatasetMeta(t);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(t,n){const r=this.getDatasetMeta(t);r.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,r){const i=r?"show":"hide",o=this.getDatasetMeta(t),s=o.controller._resolveAnimations(void 0,i);br(n)?(o.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),s.update(o,{visible:r}),this.update(a=>a.datasetIndex===t?i:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),_i.remove(this),t=0,n=this.data.datasets.length;t<n;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:n}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),D5(t,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete Fm[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,n=this.platform,r=(o,s)=>{n.addEventListener(this,o,s),t[o]=s},i=(o,s,a)=>{o.offsetX=s,o.offsetY=a,this._eventHandler(o)};kt(this.options.events,o=>r(o,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,r=(l,c)=>{n.addEventListener(this,l,c),t[l]=c},i=(l,c)=>{t[l]&&(n.removeEventListener(this,l,c),delete t[l])},o=(l,c)=>{this.canvas&&this.resize(l,c)};let s;const a=()=>{i("attach",a),this.attached=!0,this.resize(),r("resize",o),r("detach",s)};s=()=>{this.attached=!1,i("resize",o),this._stop(),this._resize(0,0),r("attach",a)},n.isAttached(this.canvas)?a():s()}unbindEvents(){kt(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},kt(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,r){const i=r?"set":"remove";let o,s,a,l;for(n==="dataset"&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+i+"DatasetHoverStyle"]()),a=0,l=t.length;a<l;++a){s=t[a];const c=s&&this.getDatasetMeta(s.datasetIndex).controller;c&&c[i+"HoverStyle"](s.element,s.datasetIndex,s.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const n=this._active||[],r=t.map(({datasetIndex:i,index:o})=>{const s=this.getDatasetMeta(i);if(!s)throw new Error("No dataset found at index "+i);return{datasetIndex:i,element:s.data[o],index:o}});!Pm(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(t,n,r){return this._plugins.notify(this,t,n,r)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,r){const i=this.options.hover,o=(l,c)=>l.filter(u=>!c.some(d=>u.datasetIndex===d.datasetIndex&&u.index===d.index)),s=o(n,t),a=r?t:o(t,n);s.length&&this.updateHoverStyle(s,i.mode,!1),a.length&&i.mode&&this.updateHoverStyle(a,i.mode,!0)}_eventHandler(t,n){const r={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},i=s=>(s.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",r,i)===!1)return;const o=this._handleEvent(t,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,i),(o||r.changed)&&this.render(),this}_handleEvent(t,n,r){const{_active:i=[],options:o}=this,s=n,a=this._getActiveElements(t,i,r,s),l=Ont(t),c=wot(t,this._lastEvent,r,l);r&&(this._lastEvent=null,zt(o.onHover,[t,a,this],this),l&&zt(o.onClick,[t,a,this],this));const u=!Pm(a,i);return(u||n)&&(this._active=a,this._updateHoverStyles(a,i,n)),this._lastEvent=c,u}_getActiveElements(t,n,r,i){if(t.type==="mouseout")return[];if(!r)return n;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,i)}}tt(Xn,"defaults",_e),tt(Xn,"instances",Fm),tt(Xn,"overrides",xa),tt(Xn,"registry",Zr),tt(Xn,"version",yot),tt(Xn,"getChart",tI);function hT(){return kt(Xn.instances,e=>e._plugins.invalidate())}function Sot(e,t,n){const{startAngle:r,pixelMargin:i,x:o,y:s,outerRadius:a,innerRadius:l}=t;let c=i/a;e.beginPath(),e.arc(o,s,a,r-c,n+c),l>i?(c=i/l,e.arc(o,s,l,n+c,r-c,!0)):e.arc(o,s,i,n+pe,r-pe),e.closePath(),e.clip()}function Eot(e){return c2(e,["outerStart","outerEnd","innerStart","innerEnd"])}function Cot(e,t,n,r){const i=Eot(e.options.borderRadius),o=(n-t)/2,s=Math.min(o,r*t/2),a=l=>{const c=(n-Math.min(o,l))*r/2;return ze(l,0,Math.min(o,c))};return{outerStart:a(i.outerStart),outerEnd:a(i.outerEnd),innerStart:ze(i.innerStart,0,s),innerEnd:ze(i.innerEnd,0,s)}}function Da(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function zm(e,t,n,r,i,o){const{x:s,y:a,startAngle:l,pixelMargin:c,innerRadius:u}=t,d=Math.max(t.outerRadius+r+n-c,0),h=u>0?u+r+n+c:0;let f=0;const p=i-l;if(r){const D=u>0?u-r:0,Y=d>0?d-r:0,Q=(D+Y)/2,F=Q!==0?p*Q/(Q+r):p;f=(p-F)/2}const g=Math.max(.001,p*d-n/ie)/d,y=(p-g)/2,m=l+y+f,x=i-y-f,{outerStart:b,outerEnd:_,innerStart:w,innerEnd:A}=Cot(t,h,d,x-m),S=d-b,E=d-_,k=m+b/S,C=x-_/E,T=h+w,$=h+A,I=m+w/T,N=x-A/$;if(e.beginPath(),o){const D=(k+C)/2;if(e.arc(s,a,d,k,D),e.arc(s,a,d,D,C),_>0){const W=Da(E,C,s,a);e.arc(W.x,W.y,_,C,x+pe)}const Y=Da($,x,s,a);if(e.lineTo(Y.x,Y.y),A>0){const W=Da($,N,s,a);e.arc(W.x,W.y,A,x+pe,N+Math.PI)}const Q=(x-A/h+(m+w/h))/2;if(e.arc(s,a,h,x-A/h,Q,!0),e.arc(s,a,h,Q,m+w/h,!0),w>0){const W=Da(T,I,s,a);e.arc(W.x,W.y,w,I+Math.PI,m-pe)}const F=Da(S,m,s,a);if(e.lineTo(F.x,F.y),b>0){const W=Da(S,k,s,a);e.arc(W.x,W.y,b,m-pe,k)}}else{e.moveTo(s,a);const D=Math.cos(k)*d+s,Y=Math.sin(k)*d+a;e.lineTo(D,Y);const Q=Math.cos(C)*d+s,F=Math.sin(C)*d+a;e.lineTo(Q,F)}e.closePath()}function kot(e,t,n,r,i){const{fullCircles:o,startAngle:s,circumference:a}=t;let l=t.endAngle;if(o){zm(e,t,n,r,l,i);for(let c=0;c<o;++c)e.fill();isNaN(a)||(l=s+(a%te||te))}return zm(e,t,n,r,l,i),e.fill(),l}function Tot(e,t,n,r,i){const{fullCircles:o,startAngle:s,circumference:a,options:l}=t,{borderWidth:c,borderJoinStyle:u}=l,d=l.borderAlign==="inner";if(!c)return;d?(e.lineWidth=c*2,e.lineJoin=u||"round"):(e.lineWidth=c,e.lineJoin=u||"bevel");let h=t.endAngle;if(o){zm(e,t,n,r,h,i);for(let f=0;f<o;++f)e.stroke();isNaN(a)||(h=s+(a%te||te))}d&&Sot(e,t,h),o||(zm(e,t,n,r,h,i),e.stroke())}class nd extends Hr{constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,n,r){const i=this.getProps(["x","y"],r),{angle:o,distance:s}=x4(i,{x:t,y:n}),{startAngle:a,endAngle:l,innerRadius:c,outerRadius:u,circumference:d}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],r),h=this.options.spacing/2,f=ct(d,l-a)>=te||nh(o,a,l),p=Li(s,c+h,u+h);return f&&p}getCenterPoint(t){const{x:n,y:r,startAngle:i,endAngle:o,innerRadius:s,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),{offset:l,spacing:c}=this.options,u=(i+o)/2,d=(s+a+c+l)/2;return{x:n+Math.cos(u)*d,y:r+Math.sin(u)*d}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:n,circumference:r}=this,i=(n.offset||0)/4,o=(n.spacing||0)/2,s=n.circular;if(this.pixelMargin=n.borderAlign==="inner"?.33:0,this.fullCircles=r>te?Math.floor(r/te):0,r===0||this.innerRadius<0||this.outerRadius<0)return;t.save();const a=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(a)*i,Math.sin(a)*i);const l=1-Math.sin(Math.min(ie,r||0)),c=i*l;t.fillStyle=n.backgroundColor,t.strokeStyle=n.borderColor,kot(t,this,c,o,s),Tot(t,this,c,o,s),t.restore()}}tt(nd,"id","arc"),tt(nd,"defaults",{borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),tt(nd,"defaultRoutes",{backgroundColor:"backgroundColor"});function eI(e,t,n=t){e.lineCap=ct(n.borderCapStyle,t.borderCapStyle),e.setLineDash(ct(n.borderDash,t.borderDash)),e.lineDashOffset=ct(n.borderDashOffset,t.borderDashOffset),e.lineJoin=ct(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=ct(n.borderWidth,t.borderWidth),e.strokeStyle=ct(n.borderColor,t.borderColor)}function Mot(e,t,n){e.lineTo(n.x,n.y)}function $ot(e){return e.stepped?trt:e.tension||e.cubicInterpolationMode==="monotone"?ert:Mot}function nI(e,t,n={}){const r=e.length,{start:i=0,end:o=r-1}=n,{start:s,end:a}=t,l=Math.max(i,s),c=Math.min(o,a),u=i<s&&o<s||i>a&&o>a;return{count:r,start:l,loop:t.loop,ilen:c<l&&!u?r+c-l:c-l}}function Pot(e,t,n,r){const{points:i,options:o}=t,{count:s,start:a,loop:l,ilen:c}=nI(i,n,r),u=$ot(o);let{move:d=!0,reverse:h}=r||{},f,p,g;for(f=0;f<=c;++f)p=i[(a+(h?c-f:f))%s],!p.skip&&(d?(e.moveTo(p.x,p.y),d=!1):u(e,g,p,h,o.stepped),g=p);return l&&(p=i[(a+(h?c:0))%s],u(e,g,p,h,o.stepped)),!!l}function Oot(e,t,n,r){const i=t.points,{count:o,start:s,ilen:a}=nI(i,n,r),{move:l=!0,reverse:c}=r||{};let u=0,d=0,h,f,p,g,y,m;const x=_=>(s+(c?a-_:_))%o,b=()=>{g!==y&&(e.lineTo(u,y),e.lineTo(u,g),e.lineTo(u,m))};for(l&&(f=i[x(0)],e.moveTo(f.x,f.y)),h=0;h<=a;++h){if(f=i[x(h)],f.skip)continue;const _=f.x,w=f.y,A=_|0;A===p?(w<g?g=w:w>y&&(y=w),u=(d*u+_)/++d):(b(),e.lineTo(_,w),p=A,d=0,g=y=w),m=w}b()}function Wb(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?Oot:Pot}function Rot(e){return e.stepped?Rrt:e.tension||e.cubicInterpolationMode==="monotone"?Drt:Vs}function Dot(e,t,n,r){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),eI(e,t.options),e.stroke(i)}function Lot(e,t,n,r){const{segments:i,options:o}=t,s=Wb(t);for(const a of i)eI(e,o,a.style),e.beginPath(),s(e,t,a,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}const Iot=typeof Path2D=="function";function Not(e,t,n,r){Iot&&!t.options.segment?Dot(e,t,n,r):Lot(e,t,n,r)}class Lo extends Hr{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,n){const r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){const i=r.spanGaps?this._loop:this._fullLoop;Ert(this._points,r,t,i,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=Brt(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,r=t.length;return r&&n[t[r-1].end]}interpolate(t,n){const r=this.options,i=t[n],o=this.points,s=V4(this,{property:n,start:i,end:i});if(!s.length)return;const a=[],l=Rot(r);let c,u;for(c=0,u=s.length;c<u;++c){const{start:d,end:h}=s[c],f=o[d],p=o[h];if(f===p){a.push(f);continue}const g=Math.abs((i-f[n])/(p[n]-f[n])),y=l(f,p,g,r.stepped);y[n]=t[n],a.push(y)}return a.length===1?a[0]:a}pathSegment(t,n,r){return Wb(this)(t,this,n,r)}path(t,n,r){const i=this.segments,o=Wb(this);let s=this._loop;n=n||0,r=r||this.points.length-n;for(const a of i)s&=o(t,this,a,{start:n,end:n+r-1});return!!s}draw(t,n,r,i){const o=this.options||{};(this.points||[]).length&&o.borderWidth&&(t.save(),Not(t,this,r,i),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}tt(Lo,"id","line"),tt(Lo,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),tt(Lo,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),tt(Lo,"descriptors",{_scriptable:!0,_indexable:e=>e!=="borderDash"&&e!=="fill"});function fT(e,t,n,r){const i=e.options,{[n]:o}=e.getProps([n],r);return Math.abs(t-o)<i.radius+i.hitRadius}class mg extends Hr{constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,n,r){const i=this.options,{x:o,y:s}=this.getProps(["x","y"],r);return Math.pow(t-o,2)+Math.pow(n-s,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(t,n){return fT(this,t,"x",n)}inYRange(t,n){return fT(this,t,"y",n)}getCenterPoint(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}size(t){t=t||this.options||{};let n=t.radius||0;n=Math.max(n,n&&t.hoverRadius||0);const r=n&&t.borderWidth||0;return(n+r)*2}draw(t,n){const r=this.options;this.skip||r.radius<.1||!rh(this,n,this.size(r)/2)||(t.strokeStyle=r.borderColor,t.lineWidth=r.borderWidth,t.fillStyle=r.backgroundColor,jb(t,r,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}tt(mg,"id","point"),tt(mg,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),tt(mg,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function rI(e,t){const{x:n,y:r,base:i,width:o,height:s}=e.getProps(["x","y","base","width","height"],t);let a,l,c,u,d;return e.horizontal?(d=s/2,a=Math.min(n,i),l=Math.max(n,i),c=r-d,u=r+d):(d=o/2,a=n-d,l=n+d,c=Math.min(r,i),u=Math.max(r,i)),{left:a,top:c,right:l,bottom:u}}function Io(e,t,n,r){return e?0:ze(t,n,r)}function Fot(e,t,n){const r=e.options.borderWidth,i=e.borderSkipped,o=M4(r);return{t:Io(i.top,o.top,0,n),r:Io(i.right,o.right,0,t),b:Io(i.bottom,o.bottom,0,n),l:Io(i.left,o.left,0,t)}}function zot(e,t,n){const{enableBorderRadius:r}=e.getProps(["enableBorderRadius"]),i=e.options.borderRadius,o=oa(i),s=Math.min(t,n),a=e.borderSkipped,l=r||ft(i);return{topLeft:Io(!l||a.top||a.left,o.topLeft,0,s),topRight:Io(!l||a.top||a.right,o.topRight,0,s),bottomLeft:Io(!l||a.bottom||a.left,o.bottomLeft,0,s),bottomRight:Io(!l||a.bottom||a.right,o.bottomRight,0,s)}}function Bot(e){const t=rI(e),n=t.right-t.left,r=t.bottom-t.top,i=Fot(e,n/2,r/2),o=zot(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r,radius:o},inner:{x:t.left+i.l,y:t.top+i.t,w:n-i.l-i.r,h:r-i.t-i.b,radius:{topLeft:Math.max(0,o.topLeft-Math.max(i.t,i.l)),topRight:Math.max(0,o.topRight-Math.max(i.t,i.r)),bottomLeft:Math.max(0,o.bottomLeft-Math.max(i.b,i.l)),bottomRight:Math.max(0,o.bottomRight-Math.max(i.b,i.r))}}}}function ey(e,t,n,r){const i=t===null,o=n===null,s=e&&!(i&&o)&&rI(e,r);return s&&(i||Li(t,s.left,s.right))&&(o||Li(n,s.top,s.bottom))}function Vot(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function jot(e,t){e.rect(t.x,t.y,t.w,t.h)}function ny(e,t,n={}){const r=e.x!==n.x?-t:0,i=e.y!==n.y?-t:0,o=(e.x+e.w!==n.x+n.w?t:0)-r,s=(e.y+e.h!==n.y+n.h?t:0)-i;return{x:e.x+r,y:e.y+i,w:e.w+o,h:e.h+s,radius:e.radius}}class Pl extends Hr{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:n,options:{borderColor:r,backgroundColor:i}}=this,{inner:o,outer:s}=Bot(this),a=Vot(s.radius)?ih:jot;t.save(),(s.w!==o.w||s.h!==o.h)&&(t.beginPath(),a(t,ny(s,n,o)),t.clip(),a(t,ny(o,-n,s)),t.fillStyle=r,t.fill("evenodd")),t.beginPath(),a(t,ny(o,n)),t.fillStyle=i,t.fill(),t.restore()}inRange(t,n,r){return ey(this,t,n,r)}inXRange(t,n){return ey(this,t,null,n)}inYRange(t,n){return ey(this,null,t,n)}getCenterPoint(t){const{x:n,y:r,base:i,horizontal:o}=this.getProps(["x","y","base","horizontal"],t);return{x:o?(n+i)/2:n,y:o?r:(r+i)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}tt(Pl,"id","bar"),tt(Pl,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),tt(Pl,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});var Hot=Object.freeze({__proto__:null,ArcElement:nd,LineElement:Lo,PointElement:mg,BarElement:Pl});const Yb=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],pT=Yb.map(e=>e.replace("rgb(","rgba(").replace(")",", 0.5)"));function iI(e){return Yb[e%Yb.length]}function oI(e){return pT[e%pT.length]}function Uot(e,t){return e.borderColor=iI(t),e.backgroundColor=oI(t),++t}function Wot(e,t){return e.backgroundColor=e.data.map(()=>iI(t++)),t}function Yot(e,t){return e.backgroundColor=e.data.map(()=>oI(t++)),t}function Got(e){let t=0;return(n,r)=>{const i=e.getDatasetMeta(r).controller;i instanceof Do?t=Wot(n,t):i instanceof ed?t=Yot(n,t):i&&(t=Uot(n,t))}}function gT(e){let t;for(t in e)if(e[t].borderColor||e[t].backgroundColor)return!0;return!1}function qot(e){return e&&(e.borderColor||e.backgroundColor)}var Xot={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(e,t,n){if(!n.enabled)return;const{data:{datasets:r},options:i}=e.config,{elements:o}=i;if(!n.forceOverride&&(gT(r)||qot(i)||o&&gT(o)))return;const s=Got(e);r.forEach(s)}};function Qot(e,t,n,r,i){const o=i.samples||r;if(o>=n)return e.slice(t,t+n);const s=[],a=(n-2)/(o-2);let l=0;const c=t+n-1;let u=t,d,h,f,p,g;for(s[l++]=e[u],d=0;d<o-2;d++){let y=0,m=0,x;const b=Math.floor((d+1)*a)+1+t,_=Math.min(Math.floor((d+2)*a)+1,n)+t,w=_-b;for(x=b;x<_;x++)y+=e[x].x,m+=e[x].y;y/=w,m/=w;const A=Math.floor(d*a)+1+t,S=Math.min(Math.floor((d+1)*a)+1,n)+t,{x:E,y:k}=e[u];for(f=p=-1,x=A;x<S;x++)p=.5*Math.abs((E-y)*(e[x].y-k)-(E-e[x].x)*(m-k)),p>f&&(f=p,h=e[x],g=x);s[l++]=h,u=g}return s[l++]=e[c],s}function Kot(e,t,n,r){let i=0,o=0,s,a,l,c,u,d,h,f,p,g;const y=[],m=t+n-1,x=e[t].x,b=e[m].x-x;for(s=t;s<t+n;++s){a=e[s],l=(a.x-x)/b*r,c=a.y;const _=l|0;if(_===u)c<p?(p=c,d=s):c>g&&(g=c,h=s),i=(o*i+a.x)/++o;else{const w=s-1;if(!xt(d)&&!xt(h)){const A=Math.min(d,h),S=Math.max(d,h);A!==f&&A!==w&&y.push({...e[A],x:i}),S!==f&&S!==w&&y.push({...e[S],x:i})}s>0&&w!==f&&y.push(e[w]),y.push(a),u=_,o=0,p=g=c,d=h=f=s}}return y}function sI(e){if(e._decimated){const t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{value:t})}}function mT(e){e.data.datasets.forEach(t=>{sI(t)})}function Zot(e,t){const n=t.length;let r=0,i;const{iScale:o}=e,{min:s,max:a,minDefined:l,maxDefined:c}=o.getUserBounds();return l&&(r=ze(Ii(t,o.axis,s).lo,0,n-1)),c?i=ze(Ii(t,o.axis,a).hi+1,r,n)-r:i=n-r,{start:r,count:i}}var Jot={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,t,n)=>{if(!n.enabled){mT(e);return}const r=e.width;e.data.datasets.forEach((i,o)=>{const{_data:s,indexAxis:a}=i,l=e.getDatasetMeta(o),c=s||i.data;if(hu([a,e.options.indexAxis])==="y"||!l.controller.supportsDecimation)return;const u=e.scales[l.xAxisID];if(u.type!=="linear"&&u.type!=="time"||e.options.parsing)return;let{start:d,count:h}=Zot(l,c);const f=n.threshold||4*r;if(h<=f){sI(i);return}xt(s)&&(i._data=c,delete i.data,Object.defineProperty(i,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(g){this._data=g}}));let p;switch(n.algorithm){case"lttb":p=Qot(c,d,h,r,n);break;case"min-max":p=Kot(c,d,h,r);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}i._decimated=p})},destroy(e){mT(e)}};function tst(e,t,n){const r=e.segments,i=e.points,o=t.points,s=[];for(const a of r){let{start:l,end:c}=a;c=g2(l,c,i);const u=Gb(n,i[l],i[c],a.loop);if(!t.segments){s.push({source:a,target:u,start:i[l],end:i[c]});continue}const d=V4(t,u);for(const h of d){const f=Gb(n,o[h.start],o[h.end],h.loop),p=B4(a,i,f);for(const g of p)s.push({source:g,target:h,start:{[n]:vT(u,f,"start",Math.max)},end:{[n]:vT(u,f,"end",Math.min)}})}}return s}function Gb(e,t,n,r){if(r)return;let i=t[e],o=n[e];return e==="angle"&&(i=Gn(i),o=Gn(o)),{property:e,start:i,end:o}}function est(e,t){const{x:n=null,y:r=null}=e||{},i=t.points,o=[];return t.segments.forEach(({start:s,end:a})=>{a=g2(s,a,i);const l=i[s],c=i[a];r!==null?(o.push({x:l.x,y:r}),o.push({x:c.x,y:r})):n!==null&&(o.push({x:n,y:l.y}),o.push({x:n,y:c.y}))}),o}function g2(e,t,n){for(;t>e;t--){const r=n[t];if(!isNaN(r.x)&&!isNaN(r.y))break}return t}function vT(e,t,n,r){return e&&t?r(e[n],t[n]):e?e[n]:t?t[n]:0}function aI(e,t){let n=[],r=!1;return Kt(e)?(r=!0,n=e):n=est(e,t),n.length?new Lo({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function yT(e){return e&&e.fill!==!1}function nst(e,t,n){let r=e[t].fill;const i=[t];let o;if(!n)return r;for(;r!==!1&&i.indexOf(r)===-1;){if(!fe(r))return r;if(o=e[r],!o)return!1;if(o.visible)return r;i.push(r),r=o.fill}return!1}function rst(e,t,n){const r=ast(e);if(ft(r))return isNaN(r.value)?!1:r;let i=parseFloat(r);return fe(i)&&Math.floor(i)===i?ist(r[0],t,i,n):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function ist(e,t,n,r){return(e==="-"||e==="+")&&(n=t+n),n===t||n<0||n>=r?!1:n}function ost(e,t){let n=null;return e==="start"?n=t.bottom:e==="end"?n=t.top:ft(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}function sst(e,t,n){let r;return e==="start"?r=n:e==="end"?r=t.options.reverse?t.min:t.max:ft(e)?r=e.value:r=t.getBaseValue(),r}function ast(e){const t=e.options,n=t.fill;let r=ct(n&&n.target,n);return r===void 0&&(r=!!t.backgroundColor),r===!1||r===null?!1:r===!0?"origin":r}function lst(e){const{scale:t,index:n,line:r}=e,i=[],o=r.segments,s=r.points,a=cst(t,n);a.push(aI({x:null,y:t.bottom},r));for(let l=0;l<o.length;l++){const c=o[l];for(let u=c.start;u<=c.end;u++)ust(i,s[u],a)}return new Lo({points:i,options:{}})}function cst(e,t){const n=[],r=e.getMatchingVisibleMetas("line");for(let i=0;i<r.length;i++){const o=r[i];if(o.index===t)break;o.hidden||n.unshift(o.dataset)}return n}function ust(e,t,n){const r=[];for(let i=0;i<n.length;i++){const o=n[i],{first:s,last:a,point:l}=dst(o,t,"x");if(!(!l||s&&a)){if(s)r.unshift(l);else if(e.push(l),!a)break}}e.push(...r)}function dst(e,t,n){const r=e.interpolate(t,n);if(!r)return{};const i=r[n],o=e.segments,s=e.points;let a=!1,l=!1;for(let c=0;c<o.length;c++){const u=o[c],d=s[u.start][n],h=s[u.end][n];if(Li(i,d,h)){a=i===d,l=i===h;break}}return{first:a,last:l,point:r}}class lI{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,n,r){const{x:i,y:o,radius:s}=this;return n=n||{start:0,end:te},t.arc(i,o,s,n.end,n.start,!0),!r.bounds}interpolate(t){const{x:n,y:r,radius:i}=this,o=t.angle;return{x:n+Math.cos(o)*i,y:r+Math.sin(o)*i,angle:o}}}function hst(e){const{chart:t,fill:n,line:r}=e;if(fe(n))return fst(t,n);if(n==="stack")return lst(e);if(n==="shape")return!0;const i=pst(e);return i instanceof lI?i:aI(i,r)}function fst(e,t){const n=e.getDatasetMeta(t);return n&&e.isDatasetVisible(t)?n.dataset:null}function pst(e){return(e.scale||{}).getPointPositionForValue?mst(e):gst(e)}function gst(e){const{scale:t={},fill:n}=e,r=ost(n,t);if(fe(r)){const i=t.isHorizontal();return{x:i?r:null,y:i?null:r}}return null}function mst(e){const{scale:t,fill:n}=e,r=t.options,i=t.getLabels().length,o=r.reverse?t.max:t.min,s=sst(n,t,o),a=[];if(r.grid.circular){const l=t.getPointPositionForValue(0,o);return new lI({x:l.x,y:l.y,radius:t.getDistanceFromCenterForValue(s)})}for(let l=0;l<i;++l)a.push(t.getPointPositionForValue(l,s));return a}function ry(e,t,n){const r=hst(t),{line:i,scale:o,axis:s}=t,a=i.options,l=a.fill,c=a.backgroundColor,{above:u=c,below:d=c}=l||{};r&&i.points.length&&(fv(e,n),vst(e,{line:i,target:r,above:u,below:d,area:n,scale:o,axis:s}),pv(e))}function vst(e,t){const{line:n,target:r,above:i,below:o,area:s,scale:a}=t,l=n._loop?"angle":t.axis;e.save(),l==="x"&&o!==i&&(xT(e,r,s.top),bT(e,{line:n,target:r,color:i,scale:a,property:l}),e.restore(),e.save(),xT(e,r,s.bottom)),bT(e,{line:n,target:r,color:o,scale:a,property:l}),e.restore()}function xT(e,t,n){const{segments:r,points:i}=t;let o=!0,s=!1;e.beginPath();for(const a of r){const{start:l,end:c}=a,u=i[l],d=i[g2(l,c,i)];o?(e.moveTo(u.x,u.y),o=!1):(e.lineTo(u.x,n),e.lineTo(u.x,u.y)),s=!!t.pathSegment(e,a,{move:s}),s?e.closePath():e.lineTo(d.x,n)}e.lineTo(t.first().x,n),e.closePath(),e.clip()}function bT(e,t){const{line:n,target:r,property:i,color:o,scale:s}=t,a=tst(n,r,i);for(const{source:l,target:c,start:u,end:d}of a){const{style:{backgroundColor:h=o}={}}=l,f=r!==!0;e.save(),e.fillStyle=h,yst(e,s,f&&Gb(i,u,d)),e.beginPath();const p=!!n.pathSegment(e,l);let g;if(f){p?e.closePath():_T(e,r,d,i);const y=!!r.pathSegment(e,c,{move:p,reverse:!0});g=p&&y,g||_T(e,r,u,i)}e.closePath(),e.fill(g?"evenodd":"nonzero"),e.restore()}}function yst(e,t,n){const{top:r,bottom:i}=t.chart.chartArea,{property:o,start:s,end:a}=n||{};o==="x"&&(e.beginPath(),e.rect(s,r,a-s,i-r),e.clip())}function _T(e,t,n,r){const i=t.interpolate(n,r);i&&e.lineTo(i.x,i.y)}var xst={id:"filler",afterDatasetsUpdate(e,t,n){const r=(e.data.datasets||[]).length,i=[];let o,s,a,l;for(s=0;s<r;++s)o=e.getDatasetMeta(s),a=o.dataset,l=null,a&&a.options&&a instanceof Lo&&(l={visible:e.isDatasetVisible(s),index:s,fill:rst(a,s,r),chart:e,axis:o.controller.options.indexAxis,scale:o.vScale,line:a}),o.$filler=l,i.push(l);for(s=0;s<r;++s)l=i[s],!(!l||l.fill===!1)&&(l.fill=nst(i,s,n.propagate))},beforeDraw(e,t,n){const r=n.drawTime==="beforeDraw",i=e.getSortedVisibleDatasetMetas(),o=e.chartArea;for(let s=i.length-1;s>=0;--s){const a=i[s].$filler;!a||(a.line.updateControlPoints(o,a.axis),r&&a.fill&&ry(e.ctx,a,o))}},beforeDatasetsDraw(e,t,n){if(n.drawTime!=="beforeDatasetsDraw")return;const r=e.getSortedVisibleDatasetMetas();for(let i=r.length-1;i>=0;--i){const o=r[i].$filler;yT(o)&&ry(e.ctx,o,e.chartArea)}},beforeDatasetDraw(e,t,n){const r=t.meta.$filler;!yT(r)||n.drawTime!=="beforeDatasetDraw"||ry(e.ctx,r,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const wT=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}},bst=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class AT extends Hr{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,r){this.maxWidth=t,this.maxHeight=n,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=zt(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(r=>t.filter(r,this.chart.data))),t.sort&&(n=n.sort((r,i)=>t.sort(r,i,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const r=t.labels,i=Pe(r.font),o=i.size,s=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=wT(r,o);let c,u;n.font=i.string,this.isHorizontal()?(c=this.maxWidth,u=this._fitRows(s,o,a,l)+10):(u=this.maxHeight,c=this._fitCols(s,i,a,l)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(u,t.maxHeight||this.maxHeight)}_fitRows(t,n,r,i){const{ctx:o,maxWidth:s,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],u=i+a;let d=t;o.textAlign="left",o.textBaseline="middle";let h=-1,f=-u;return this.legendItems.forEach((p,g)=>{const y=r+n/2+o.measureText(p.text).width;(g===0||c[c.length-1]+y+2*a>s)&&(d+=u,c[c.length-(g>0?0:1)]=0,f+=u,h++),l[g]={left:0,top:f,row:h,width:y,height:i},c[c.length-1]+=y+a}),d}_fitCols(t,n,r,i){const{ctx:o,maxHeight:s,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],u=s-t;let d=a,h=0,f=0,p=0,g=0;return this.legendItems.forEach((y,m)=>{const{itemWidth:x,itemHeight:b}=_st(r,n,o,y,i);m>0&&f+b+2*a>u&&(d+=h+a,c.push({width:h,height:f}),p+=h+a,g++,h=f=0),l[m]={left:p,top:f,col:g,width:x,height:b},h=Math.max(h,x),f+=b+a}),d+=h,c.push({width:h,height:f}),d}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:i},rtl:o}}=this,s=$l(o,this.left,this.width);if(this.isHorizontal()){let a=0,l=tn(r,this.left+i,this.right-this.lineWidths[a]);for(const c of n)a!==c.row&&(a=c.row,l=tn(r,this.left+i,this.right-this.lineWidths[a])),c.top+=this.top+t+i,c.left=s.leftForLtr(s.x(l),c.width),l+=c.width+i}else{let a=0,l=tn(r,this.top+t+i,this.bottom-this.columnSizes[a].height);for(const c of n)c.col!==a&&(a=c.col,l=tn(r,this.top+t+i,this.bottom-this.columnSizes[a].height)),c.top=l,c.left+=this.left+i,c.left=s.leftForLtr(s.x(c.left),c.width),l+=c.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;fv(t,this),this._draw(),pv(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:r,ctx:i}=this,{align:o,labels:s}=t,a=_e.color,l=$l(t.rtl,this.left,this.width),c=Pe(s.font),{padding:u}=s,d=c.size,h=d/2;let f;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=c.string;const{boxWidth:p,boxHeight:g,itemHeight:y}=wT(s,d),m=function(A,S,E){if(isNaN(p)||p<=0||isNaN(g)||g<0)return;i.save();const k=ct(E.lineWidth,1);if(i.fillStyle=ct(E.fillStyle,a),i.lineCap=ct(E.lineCap,"butt"),i.lineDashOffset=ct(E.lineDashOffset,0),i.lineJoin=ct(E.lineJoin,"miter"),i.lineWidth=k,i.strokeStyle=ct(E.strokeStyle,a),i.setLineDash(ct(E.lineDash,[])),s.usePointStyle){const C={radius:g*Math.SQRT2/2,pointStyle:E.pointStyle,rotation:E.rotation,borderWidth:k},T=l.xPlus(A,p/2),$=S+h;T4(i,C,T,$,s.pointStyleWidth&&p)}else{const C=S+Math.max((d-g)/2,0),T=l.leftForLtr(A,p),$=oa(E.borderRadius);i.beginPath(),Object.values($).some(I=>I!==0)?ih(i,{x:T,y:C,w:p,h:g,radius:$}):i.rect(T,C,p,g),i.fill(),k!==0&&i.stroke()}i.restore()},x=function(A,S,E){ba(i,E.text,A,S+y/2,c,{strikethrough:E.hidden,textAlign:l.textAlign(E.textAlign)})},b=this.isHorizontal(),_=this._computeTitleHeight();b?f={x:tn(o,this.left+u,this.right-r[0]),y:this.top+u+_,line:0}:f={x:this.left+u,y:tn(o,this.top+_+u,this.bottom-n[0].height),line:0},N4(this.ctx,t.textDirection);const w=y+u;this.legendItems.forEach((A,S)=>{i.strokeStyle=A.fontColor,i.fillStyle=A.fontColor;const E=i.measureText(A.text).width,k=l.textAlign(A.textAlign||(A.textAlign=s.textAlign)),C=p+h+E;let T=f.x,$=f.y;l.setWidth(this.width),b?S>0&&T+C+u>this.right&&($=f.y+=w,f.line++,T=f.x=tn(o,this.left+u,this.right-r[f.line])):S>0&&$+w>this.bottom&&(T=f.x=T+n[f.line].width+u,f.line++,$=f.y=tn(o,this.top+_+u,this.bottom-n[f.line].height));const I=l.x(T);if(m(I,$,A),T=Hnt(k,T+p+h,b?T+C:this.right,t.rtl),x(l.x(T),$,A),b)f.x+=C+u;else if(typeof A.text!="string"){const N=c.lineHeight;f.y+=cI(A,N)}else f.y+=w}),F4(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,r=Pe(n.font),i=un(n.padding);if(!n.display)return;const o=$l(t.rtl,this.left,this.width),s=this.ctx,a=n.position,l=r.size/2,c=i.top+l;let u,d=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),u=this.top+c,d=tn(t.align,d,this.right-h);else{const p=this.columnSizes.reduce((g,y)=>Math.max(g,y.height),0);u=c+tn(t.align,this.top,this.bottom-p-t.labels.padding-this._computeTitleHeight())}const f=tn(a,d,d+h);s.textAlign=o.textAlign(l2(a)),s.textBaseline="middle",s.strokeStyle=n.color,s.fillStyle=n.color,s.font=r.string,ba(s,n.text,f,u,r)}_computeTitleHeight(){const t=this.options.title,n=Pe(t.font),r=un(t.padding);return t.display?n.lineHeight+r.height:0}_getLegendItemAt(t,n){let r,i,o;if(Li(t,this.left,this.right)&&Li(n,this.top,this.bottom)){for(o=this.legendHitBoxes,r=0;r<o.length;++r)if(i=o[r],Li(t,i.left,i.left+i.width)&&Li(n,i.top,i.top+i.height))return this.legendItems[r]}return null}handleEvent(t){const n=this.options;if(!Sst(t.type,n))return;const r=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const i=this._hoveredItem,o=bst(i,r);i&&!o&&zt(n.onLeave,[t,i,this],this),this._hoveredItem=r,r&&!o&&zt(n.onHover,[t,r,this],this)}else r&&zt(n.onClick,[t,r,this],this)}}function _st(e,t,n,r,i){const o=wst(r,e,t,n),s=Ast(i,r,t.lineHeight);return{itemWidth:o,itemHeight:s}}function wst(e,t,n,r){let i=e.text;return i&&typeof i!="string"&&(i=i.reduce((o,s)=>o.length>s.length?o:s)),t+n.size/2+r.measureText(i).width}function Ast(e,t,n){let r=e;return typeof t.text!="string"&&(r=cI(t,n)),r}function cI(e,t){const n=e.text?e.text.length+.5:0;return t*n}function Sst(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var m2={id:"legend",_element:AT,start(e,t,n){const r=e.legend=new AT({ctx:e.ctx,options:n,chart:e});an.configure(e,r,n),an.addBox(e,r)},stop(e){an.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;an.configure(e,r,n),r.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const r=t.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),t.hidden=!0):(i.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:i,color:o,useBorderRadius:s,borderRadius:a}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(n?0:void 0),u=un(c.borderWidth);return{text:t[l.index].label,fillStyle:c.backgroundColor,fontColor:o,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:c.borderColor,pointStyle:r||c.pointStyle,rotation:c.rotation,textAlign:i||c.textAlign,borderRadius:s&&(a||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class v2 extends Hr{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const i=Kt(r.text)?r.text.length:1;this._padding=un(r.padding);const o=i*Pe(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:r,bottom:i,right:o,options:s}=this,a=s.align;let l=0,c,u,d;return this.isHorizontal()?(u=tn(a,r,o),d=n+t,c=o-r):(s.position==="left"?(u=r+t,d=tn(a,i,n),l=ie*-.5):(u=o-t,d=tn(a,n,i),l=ie*.5),c=i-n),{titleX:u,titleY:d,maxWidth:c,rotation:l}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const r=Pe(n.font),i=r.lineHeight/2+this._padding.top,{titleX:o,titleY:s,maxWidth:a,rotation:l}=this._drawArgs(i);ba(t,n.text,0,0,r,{color:n.color,maxWidth:a,rotation:l,textAlign:l2(n.align),textBaseline:"middle",translation:[o,s]})}}function Est(e,t){const n=new v2({ctx:e.ctx,options:t,chart:e});an.configure(e,n,t),an.addBox(e,n),e.titleBlock=n}var uI={id:"title",_element:v2,start(e,t,n){Est(e,n)},stop(e){const t=e.titleBlock;an.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;an.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const tp=new WeakMap;var Cst={id:"subtitle",start(e,t,n){const r=new v2({ctx:e.ctx,options:n,chart:e});an.configure(e,r,n),an.addBox(e,r),tp.set(e,r)},stop(e){an.removeBox(e,tp.get(e)),tp.delete(e)},beforeUpdate(e,t,n){const r=tp.get(e);an.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const rd={average(e){if(!e.length)return!1;let t,n,r=0,i=0,o=0;for(t=0,n=e.length;t<n;++t){const s=e[t].element;if(s&&s.hasValue()){const a=s.tooltipPosition();r+=a.x,i+=a.y,++o}}return{x:r/o,y:i/o}},nearest(e,t){if(!e.length)return!1;let n=t.x,r=t.y,i=Number.POSITIVE_INFINITY,o,s,a;for(o=0,s=e.length;o<s;++o){const l=e[o].element;if(l&&l.hasValue()){const c=l.getCenterPoint(),u=Bb(t,c);u<i&&(i=u,a=l)}}if(a){const l=a.tooltipPosition();n=l.x,r=l.y}return{x:n,y:r}}};function Gr(e,t){return t&&(Kt(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function wi(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
|
|
435
|
+
`)>-1?e.split(`
|
|
436
|
+
`):e}function kst(e,t){const{element:n,datasetIndex:r,index:i}=t,o=e.getDatasetMeta(r).controller,{label:s,value:a}=o.getLabelAndValue(i);return{chart:e,label:s,parsed:o.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:a,dataset:o.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function ST(e,t){const n=e.chart.ctx,{body:r,footer:i,title:o}=e,{boxWidth:s,boxHeight:a}=t,l=Pe(t.bodyFont),c=Pe(t.titleFont),u=Pe(t.footerFont),d=o.length,h=i.length,f=r.length,p=un(t.padding);let g=p.height,y=0,m=r.reduce((_,w)=>_+w.before.length+w.lines.length+w.after.length,0);if(m+=e.beforeBody.length+e.afterBody.length,d&&(g+=d*c.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),m){const _=t.displayColors?Math.max(a,l.lineHeight):l.lineHeight;g+=f*_+(m-f)*l.lineHeight+(m-1)*t.bodySpacing}h&&(g+=t.footerMarginTop+h*u.lineHeight+(h-1)*t.footerSpacing);let x=0;const b=function(_){y=Math.max(y,n.measureText(_).width+x)};return n.save(),n.font=c.string,kt(e.title,b),n.font=l.string,kt(e.beforeBody.concat(e.afterBody),b),x=t.displayColors?s+2+t.boxPadding:0,kt(r,_=>{kt(_.before,b),kt(_.lines,b),kt(_.after,b)}),x=0,n.font=u.string,kt(e.footer,b),n.restore(),y+=p.width,{width:y,height:g}}function Tst(e,t){const{y:n,height:r}=t;return n<r/2?"top":n>e.height-r/2?"bottom":"center"}function Mst(e,t,n,r){const{x:i,width:o}=r,s=n.caretSize+n.caretPadding;if(e==="left"&&i+o+s>t.width||e==="right"&&i-o-s<0)return!0}function $st(e,t,n,r){const{x:i,width:o}=n,{width:s,chartArea:{left:a,right:l}}=e;let c="center";return r==="center"?c=i<=(a+l)/2?"left":"right":i<=o/2?c="left":i>=s-o/2&&(c="right"),Mst(c,e,t,n)&&(c="center"),c}function ET(e,t,n){const r=n.yAlign||t.yAlign||Tst(e,n);return{xAlign:n.xAlign||t.xAlign||$st(e,t,n,r),yAlign:r}}function Pst(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function Ost(e,t,n){let{y:r,height:i}=e;return t==="top"?r+=n:t==="bottom"?r-=i+n:r-=i/2,r}function CT(e,t,n,r){const{caretSize:i,caretPadding:o,cornerRadius:s}=e,{xAlign:a,yAlign:l}=n,c=i+o,{topLeft:u,topRight:d,bottomLeft:h,bottomRight:f}=oa(s);let p=Pst(t,a);const g=Ost(t,l,c);return l==="center"?a==="left"?p+=c:a==="right"&&(p-=c):a==="left"?p-=Math.max(u,h)+i:a==="right"&&(p+=Math.max(d,f)+i),{x:ze(p,0,r.width-t.width),y:ze(g,0,r.height-t.height)}}function ep(e,t,n){const r=un(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function kT(e){return Gr([],wi(e))}function Rst(e,t,n){return ys(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function TT(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const dI={beforeTitle:xi,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex<r)return n[t.dataIndex]}return""},afterTitle:xi,beforeBody:xi,beforeLabel:xi,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return xt(n)||(t+=n),t},labelColor(e){const t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:t.borderColor,backgroundColor:t.backgroundColor,borderWidth:t.borderWidth,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:t.pointStyle,rotation:t.rotation}},afterLabel:xi,afterBody:xi,beforeFooter:xi,footer:xi,afterFooter:xi};function Sn(e,t,n,r){const i=e[t].call(n,r);return typeof i>"u"?dI[t].call(n,r):i}class qb extends Hr{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,r=this.options.setContext(this.getContext()),i=r.enabled&&n.options.animation&&r.animations,o=new j4(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=Rst(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:r}=n,i=Sn(r,"beforeTitle",this,t),o=Sn(r,"title",this,t),s=Sn(r,"afterTitle",this,t);let a=[];return a=Gr(a,wi(i)),a=Gr(a,wi(o)),a=Gr(a,wi(s)),a}getBeforeBody(t,n){return kT(Sn(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:r}=n,i=[];return kt(t,o=>{const s={before:[],lines:[],after:[]},a=TT(r,o);Gr(s.before,wi(Sn(a,"beforeLabel",this,o))),Gr(s.lines,Sn(a,"label",this,o)),Gr(s.after,wi(Sn(a,"afterLabel",this,o))),i.push(s)}),i}getAfterBody(t,n){return kT(Sn(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:r}=n,i=Sn(r,"beforeFooter",this,t),o=Sn(r,"footer",this,t),s=Sn(r,"afterFooter",this,t);let a=[];return a=Gr(a,wi(i)),a=Gr(a,wi(o)),a=Gr(a,wi(s)),a}_createItems(t){const n=this._active,r=this.chart.data,i=[],o=[],s=[];let a=[],l,c;for(l=0,c=n.length;l<c;++l)a.push(kst(this.chart,n[l]));return t.filter&&(a=a.filter((u,d,h)=>t.filter(u,d,h,r))),t.itemSort&&(a=a.sort((u,d)=>t.itemSort(u,d,r))),kt(a,u=>{const d=TT(t.callbacks,u);i.push(Sn(d,"labelColor",this,u)),o.push(Sn(d,"labelPointStyle",this,u)),s.push(Sn(d,"labelTextColor",this,u))}),this.labelColors=i,this.labelPointStyles=o,this.labelTextColors=s,this.dataPoints=a,a}update(t,n){const r=this.options.setContext(this.getContext()),i=this._active;let o,s=[];if(!i.length)this.opacity!==0&&(o={opacity:0});else{const a=rd[r.position].call(this,i,this._eventPosition);s=this._createItems(r),this.title=this.getTitle(s,r),this.beforeBody=this.getBeforeBody(s,r),this.body=this.getBody(s,r),this.afterBody=this.getAfterBody(s,r),this.footer=this.getFooter(s,r);const l=this._size=ST(this,r),c=Object.assign({},a,l),u=ET(this.chart,r,c),d=CT(r,c,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,o={opacity:1,x:d.x,y:d.y,width:l.width,height:l.height,caretX:a.x,caretY:a.y}}this._tooltipItems=s,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,r,i){const o=this.getCaretPosition(t,r,i);n.lineTo(o.x1,o.y1),n.lineTo(o.x2,o.y2),n.lineTo(o.x3,o.y3)}getCaretPosition(t,n,r){const{xAlign:i,yAlign:o}=this,{caretSize:s,cornerRadius:a}=r,{topLeft:l,topRight:c,bottomLeft:u,bottomRight:d}=oa(a),{x:h,y:f}=t,{width:p,height:g}=n;let y,m,x,b,_,w;return o==="center"?(_=f+g/2,i==="left"?(y=h,m=y-s,b=_+s,w=_-s):(y=h+p,m=y+s,b=_-s,w=_+s),x=y):(i==="left"?m=h+Math.max(l,u)+s:i==="right"?m=h+p-Math.max(c,d)-s:m=this.caretX,o==="top"?(b=f,_=b-s,y=m-s,x=m+s):(b=f+g,_=b+s,y=m+s,x=m-s),w=b),{x1:y,x2:m,x3:x,y1:b,y2:_,y3:w}}drawTitle(t,n,r){const i=this.title,o=i.length;let s,a,l;if(o){const c=$l(r.rtl,this.x,this.width);for(t.x=ep(this,r.titleAlign,r),n.textAlign=c.textAlign(r.titleAlign),n.textBaseline="middle",s=Pe(r.titleFont),a=r.titleSpacing,n.fillStyle=r.titleColor,n.font=s.string,l=0;l<o;++l)n.fillText(i[l],c.x(t.x),t.y+s.lineHeight/2),t.y+=s.lineHeight+a,l+1===o&&(t.y+=r.titleMarginBottom-a)}}_drawColorBox(t,n,r,i,o){const s=this.labelColors[r],a=this.labelPointStyles[r],{boxHeight:l,boxWidth:c,boxPadding:u}=o,d=Pe(o.bodyFont),h=ep(this,"left",o),f=i.x(h),p=l<d.lineHeight?(d.lineHeight-l)/2:0,g=n.y+p;if(o.usePointStyle){const y={radius:Math.min(c,l)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},m=i.leftForLtr(f,c)+c/2,x=g+l/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,jb(t,y,m,x),t.strokeStyle=s.borderColor,t.fillStyle=s.backgroundColor,jb(t,y,m,x)}else{t.lineWidth=ft(s.borderWidth)?Math.max(...Object.values(s.borderWidth)):s.borderWidth||1,t.strokeStyle=s.borderColor,t.setLineDash(s.borderDash||[]),t.lineDashOffset=s.borderDashOffset||0;const y=i.leftForLtr(f,c-u),m=i.leftForLtr(i.xPlus(f,1),c-u-2),x=oa(s.borderRadius);Object.values(x).some(b=>b!==0)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,ih(t,{x:y,y:g,w:c,h:l,radius:x}),t.fill(),t.stroke(),t.fillStyle=s.backgroundColor,t.beginPath(),ih(t,{x:m,y:g+1,w:c-2,h:l-2,radius:x}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(y,g,c,l),t.strokeRect(y,g,c,l),t.fillStyle=s.backgroundColor,t.fillRect(m,g+1,c-2,l-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,n,r){const{body:i}=this,{bodySpacing:o,bodyAlign:s,displayColors:a,boxHeight:l,boxWidth:c,boxPadding:u}=r,d=Pe(r.bodyFont);let h=d.lineHeight,f=0;const p=$l(r.rtl,this.x,this.width),g=function(E){n.fillText(E,p.x(t.x+f),t.y+h/2),t.y+=h+o},y=p.textAlign(s);let m,x,b,_,w,A,S;for(n.textAlign=s,n.textBaseline="middle",n.font=d.string,t.x=ep(this,y,r),n.fillStyle=r.bodyColor,kt(this.beforeBody,g),f=a&&y!=="right"?s==="center"?c/2+u:c+2+u:0,_=0,A=i.length;_<A;++_){for(m=i[_],x=this.labelTextColors[_],n.fillStyle=x,kt(m.before,g),b=m.lines,a&&b.length&&(this._drawColorBox(n,t,_,p,r),h=Math.max(d.lineHeight,l)),w=0,S=b.length;w<S;++w)g(b[w]),h=d.lineHeight;kt(m.after,g)}f=0,h=d.lineHeight,kt(this.afterBody,g),t.y-=o}drawFooter(t,n,r){const i=this.footer,o=i.length;let s,a;if(o){const l=$l(r.rtl,this.x,this.width);for(t.x=ep(this,r.footerAlign,r),t.y+=r.footerMarginTop,n.textAlign=l.textAlign(r.footerAlign),n.textBaseline="middle",s=Pe(r.footerFont),n.fillStyle=r.footerColor,n.font=s.string,a=0;a<o;++a)n.fillText(i[a],l.x(t.x),t.y+s.lineHeight/2),t.y+=s.lineHeight+r.footerSpacing}}drawBackground(t,n,r,i){const{xAlign:o,yAlign:s}=this,{x:a,y:l}=t,{width:c,height:u}=r,{topLeft:d,topRight:h,bottomLeft:f,bottomRight:p}=oa(i.cornerRadius);n.fillStyle=i.backgroundColor,n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.beginPath(),n.moveTo(a+d,l),s==="top"&&this.drawCaret(t,n,r,i),n.lineTo(a+c-h,l),n.quadraticCurveTo(a+c,l,a+c,l+h),s==="center"&&o==="right"&&this.drawCaret(t,n,r,i),n.lineTo(a+c,l+u-p),n.quadraticCurveTo(a+c,l+u,a+c-p,l+u),s==="bottom"&&this.drawCaret(t,n,r,i),n.lineTo(a+f,l+u),n.quadraticCurveTo(a,l+u,a,l+u-f),s==="center"&&o==="left"&&this.drawCaret(t,n,r,i),n.lineTo(a,l+d),n.quadraticCurveTo(a,l,a+d,l),n.closePath(),n.fill(),i.borderWidth>0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,r=this.$animations,i=r&&r.x,o=r&&r.y;if(i||o){const s=rd[t.position].call(this,this._active,this._eventPosition);if(!s)return;const a=this._size=ST(this,t),l=Object.assign({},s,this._size),c=ET(n,t,l),u=CT(t,l,c,n);(i._to!==u.x||o._to!==u.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=a.width,this.height=a.height,this.caretX=s.x,this.caretY=s.y,this._resolveAnimations().update(this,u))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const i={width:this.width,height:this.height},o={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const s=un(n.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&a&&(t.save(),t.globalAlpha=r,this.drawBackground(o,t,i,n),N4(t,n.textDirection),o.y+=s.top,this.drawTitle(o,t,n),this.drawBody(o,t,n),this.drawFooter(o,t,n),F4(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const r=this._active,i=t.map(({datasetIndex:a,index:l})=>{const c=this.chart.getDatasetMeta(a);if(!c)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:c.data[l],index:l}}),o=!Pm(r,i),s=this._positionChanged(i,n);(o||s)&&(this._active=i,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,o=this._active||[],s=this._getActiveElements(t,o,n,r),a=this._positionChanged(s,t),l=n||!Pm(s,o)||a;return l&&(this._active=s,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),l}_getActiveElements(t,n,r,i){const o=this.options;if(t.type==="mouseout")return[];if(!i)return n;const s=this.chart.getElementsAtEventForMode(t,o.mode,o,r);return o.reverse&&s.reverse(),s}_positionChanged(t,n){const{caretX:r,caretY:i,options:o}=this,s=rd[o.position].call(this,t,n);return s!==!1&&(r!==s.x||i!==s.y)}}tt(qb,"positioners",rd);var hI={id:"tooltip",_element:qb,positioners:rd,afterInit(e,t,n){n&&(e.tooltip=new qb({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:dI},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},Dst=Object.freeze({__proto__:null,Colors:Xot,Decimation:Jot,Filler:xst,Legend:m2,SubTitle:Cst,Title:uI,Tooltip:hI});const Lst=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function Ist(e,t,n,r){const i=e.indexOf(t);if(i===-1)return Lst(e,t,n,r);const o=e.lastIndexOf(t);return i!==o?n:i}const Nst=(e,t)=>e===null?null:ze(Math.round(e),0,t);function fI(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class sh extends Ca{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const n=this._addedLabels;if(n.length){const r=this.getLabels();for(const{index:i,label:o}of n)r[i]===o&&r.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,n){if(xt(t))return null;const r=this.getLabels();return n=isFinite(n)&&r[n]===t?n:Ist(r,t,ct(n,t),this._addedLabels),Nst(n,r.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:r,max:i}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(r=0),n||(i=this.getLabels().length-1)),this.min=r,this.max=i}buildTicks(){const t=this.min,n=this.max,r=this.options.offset,i=[];let o=this.getLabels();o=t===0&&n===o.length-1?o:o.slice(t,n+1),this._valueRange=Math.max(o.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let s=t;s<=n;s++)i.push({value:s});return i}getLabelForValue(t){return fI.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}tt(sh,"id","category"),tt(sh,"defaults",{ticks:{callback:fI}});function Fst(e,t){const n=[],{bounds:r,step:i,min:o,max:s,precision:a,count:l,maxTicks:c,maxDigits:u,includeBounds:d}=e,h=i||1,f=c-1,{min:p,max:g}=t,y=!xt(o),m=!xt(s),x=!xt(l),b=(g-p)/(u+1);let _=k5((g-p)/f/h)*h,w,A,S,E;if(_<1e-14&&!y&&!m)return[{value:p},{value:g}];E=Math.ceil(g/_)-Math.floor(p/_),E>f&&(_=k5(E*_/f/h)*h),xt(a)||(w=Math.pow(10,a),_=Math.ceil(_*w)/w),r==="ticks"?(A=Math.floor(p/_)*_,S=Math.ceil(g/_)*_):(A=p,S=g),y&&m&&i&&Int((s-o)/i,_/1e3)?(E=Math.round(Math.min((s-o)/_,c)),_=(s-o)/E,A=o,S=s):x?(A=y?o:A,S=m?s:S,E=l-1,_=(S-A)/E):(E=(S-A)/_,Ku(E,Math.round(E),_/1e3)?E=Math.round(E):E=Math.ceil(E));const k=Math.max(T5(_),T5(A));w=Math.pow(10,xt(a)?k:a),A=Math.round(A*w)/w,S=Math.round(S*w)/w;let C=0;for(y&&(d&&A!==o?(n.push({value:o}),A<o&&C++,Ku(Math.round((A+C*_)*w)/w,o,MT(o,b,e))&&C++):A<o&&C++);C<E;++C)n.push({value:Math.round((A+C*_)*w)/w});return m&&d&&S!==s?n.length&&Ku(n[n.length-1].value,s,MT(s,b,e))?n[n.length-1].value=s:n.push({value:s}):(!m||S===s)&&n.push({value:S}),n}function MT(e,t,{horizontal:n,minRotation:r}){const i=Rr(r),o=(n?Math.sin(i):Math.cos(i))||.001,s=.75*t*(""+e).length;return Math.min(t/o,s)}class Bm extends Ca{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,n){return xt(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:r}=this.getUserBounds();let{min:i,max:o}=this;const s=l=>i=n?i:l,a=l=>o=r?o:l;if(t){const l=ui(i),c=ui(o);l<0&&c<0?a(0):l>0&&c>0&&s(0)}if(i===o){let l=o===0?1:Math.abs(o*.05);a(o+l),t||s(i-l)}this.min=i,this.max=o}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=t,i;return r?(i=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),n=n||11),n&&(i=Math.min(n,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const i={maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},o=this._range||this,s=Fst(i,o);return t.bounds==="ticks"&&y4(s,this,"value"),t.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}configure(){const t=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){const i=(r-n)/Math.max(t.length-1,1)/2;n-=i,r+=i}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(t){return Hh(t,this.chart.options.locale,this.options.ticks.format)}}class ah extends Bm{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=fe(t)?t:0,this.max=fe(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,r=Rr(this.options.ticks.minRotation),i=(t?Math.sin(r):Math.cos(r))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,o.lineHeight/i))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}tt(ah,"id","linear"),tt(ah,"defaults",{ticks:{callback:hv.formatters.numeric}});const lh=e=>Math.floor(Ro(e)),Rs=(e,t)=>Math.pow(10,lh(e)+t);function $T(e){return e/Math.pow(10,lh(e))===1}function PT(e,t,n){const r=Math.pow(10,n),i=Math.floor(e/r);return Math.ceil(t/r)-i}function zst(e,t){const n=t-e;let r=lh(n);for(;PT(e,t,r)>10;)r++;for(;PT(e,t,r)<10;)r--;return Math.min(r,lh(e))}function Bst(e,{min:t,max:n}){t=Un(e.min,t);const r=[],i=lh(t);let o=zst(t,n),s=o<0?Math.pow(10,Math.abs(o)):1;const a=Math.pow(10,o),l=i>o?Math.pow(10,i):0,c=Math.round((t-l)*s)/s,u=Math.floor((t-l)/a/10)*a*10;let d=Math.floor((c-u)/Math.pow(10,o)),h=Un(e.min,Math.round((l+u+d*Math.pow(10,o))*s)/s);for(;h<n;)r.push({value:h,major:$T(h),significand:d}),d>=10?d=d<15?15:20:d++,d>=20&&(o++,d=2,s=o>=0?1:s),h=Math.round((l+u+d*Math.pow(10,o))*s)/s;const f=Un(e.max,h);return r.push({value:f,major:$T(f),significand:d}),r}class Xb extends Ca{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,n){const r=Bm.prototype.parse.apply(this,[t,n]);if(r===0){this._zero=!0;return}return fe(r)&&r>0?r:null}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=fe(t)?Math.max(0,t):null,this.max=fe(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!fe(this._userMin)&&(this.min=t===Rs(this.min,0)?Rs(this.min,-1):Rs(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let r=this.min,i=this.max;const o=a=>r=t?r:a,s=a=>i=n?i:a;r===i&&(r<=0?(o(1),s(10)):(o(Rs(r,-1)),s(Rs(i,1)))),r<=0&&o(Rs(i,-1)),i<=0&&s(Rs(r,1)),this.min=r,this.max=i}buildTicks(){const t=this.options,n={min:this._userMin,max:this._userMax},r=Bst(n,this);return t.bounds==="ticks"&&y4(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}getLabelForValue(t){return t===void 0?"0":Hh(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=Ro(t),this._valueRange=Ro(this.max)-Ro(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(Ro(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const n=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+n*this._valueRange)}}tt(Xb,"id","logarithmic"),tt(Xb,"defaults",{ticks:{callback:hv.formatters.logarithmic,major:{enabled:!0}}});function Qb(e){const t=e.ticks;if(t.display&&e.display){const n=un(t.backdropPadding);return ct(t.font&&t.font.size,_e.font.size)+n.height}return 0}function Vst(e,t,n){return n=Kt(n)?n:[n],{w:Jnt(e,t.string,n),h:n.length*t.lineHeight}}function OT(e,t,n,r,i){return e===r||e===i?{start:t-n/2,end:t+n/2}:e<r||e>i?{start:t-n,end:t}:{start:t,end:t+n}}function jst(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),r=[],i=[],o=e._pointLabels.length,s=e.options.pointLabels,a=s.centerPointLabels?ie/o:0;for(let l=0;l<o;l++){const c=s.setContext(e.getPointLabelContext(l));i[l]=c.padding;const u=e.getPointPosition(l,e.drawingArea+i[l],a),d=Pe(c.font),h=Vst(e.ctx,d,e._pointLabels[l]);r[l]=h;const f=Gn(e.getIndexAngle(l)+a),p=Math.round(s2(f)),g=OT(p,u.x,h.w,0,180),y=OT(p,u.y,h.h,90,270);Hst(n,t,f,g,y)}e.setCenterPoint(t.l-n.l,n.r-t.r,t.t-n.t,n.b-t.b),e._pointLabelItems=Ust(e,r,i)}function Hst(e,t,n,r,i){const o=Math.abs(Math.sin(n)),s=Math.abs(Math.cos(n));let a=0,l=0;r.start<t.l?(a=(t.l-r.start)/o,e.l=Math.min(e.l,t.l-a)):r.end>t.r&&(a=(r.end-t.r)/o,e.r=Math.max(e.r,t.r+a)),i.start<t.t?(l=(t.t-i.start)/s,e.t=Math.min(e.t,t.t-l)):i.end>t.b&&(l=(i.end-t.b)/s,e.b=Math.max(e.b,t.b+l))}function Ust(e,t,n){const r=[],i=e._pointLabels.length,o=e.options,s=Qb(o)/2,a=e.drawingArea,l=o.pointLabels.centerPointLabels?ie/i:0;for(let c=0;c<i;c++){const u=e.getPointPosition(c,a+s+n[c],l),d=Math.round(s2(Gn(u.angle+pe))),h=t[c],f=Gst(u.y,h.h,d),p=Wst(d),g=Yst(u.x,h.w,p);r.push({x:u.x,y:f,textAlign:p,left:g,top:f,right:g+h.w,bottom:f+h.h})}return r}function Wst(e){return e===0||e===180?"center":e<180?"left":"right"}function Yst(e,t,n){return n==="right"?e-=t:n==="center"&&(e-=t/2),e}function Gst(e,t,n){return n===90||n===270?e-=t/2:(n>270||n<90)&&(e-=t),e}function qst(e,t){const{ctx:n,options:{pointLabels:r}}=e;for(let i=t-1;i>=0;i--){const o=r.setContext(e.getPointLabelContext(i)),s=Pe(o.font),{x:a,y:l,textAlign:c,left:u,top:d,right:h,bottom:f}=e._pointLabelItems[i],{backdropColor:p}=o;if(!xt(p)){const g=oa(o.borderRadius),y=un(o.backdropPadding);n.fillStyle=p;const m=u-y.left,x=d-y.top,b=h-u+y.width,_=f-d+y.height;Object.values(g).some(w=>w!==0)?(n.beginPath(),ih(n,{x:m,y:x,w:b,h:_,radius:g}),n.fill()):n.fillRect(m,x,b,_)}ba(n,e._pointLabels[i],a,l+s.lineHeight/2,s,{color:o.color,textAlign:c,textBaseline:"middle"})}}function pI(e,t,n,r){const{ctx:i}=e;if(n)i.arc(e.xCenter,e.yCenter,t,0,te);else{let o=e.getPointPosition(0,t);i.moveTo(o.x,o.y);for(let s=1;s<r;s++)o=e.getPointPosition(s,t),i.lineTo(o.x,o.y)}}function Xst(e,t,n,r,i){const o=e.ctx,s=t.circular,{color:a,lineWidth:l}=t;!s&&!r||!a||!l||n<0||(o.save(),o.strokeStyle=a,o.lineWidth=l,o.setLineDash(i.dash),o.lineDashOffset=i.dashOffset,o.beginPath(),pI(e,n,s,r),o.closePath(),o.stroke(),o.restore())}function Qst(e,t,n){return ys(e,{label:n,index:t,type:"pointLabel"})}class pu extends Bm{constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=un(Qb(this.options)/2),n=this.width=this.maxWidth-t.width,r=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+n/2+t.left),this.yCenter=Math.floor(this.top+r/2+t.top),this.drawingArea=Math.floor(Math.min(n,r)/2)}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!1);this.min=fe(t)&&!isNaN(t)?t:0,this.max=fe(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Qb(this.options))}generateTickLabels(t){Bm.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((n,r)=>{const i=zt(this.options.pointLabels.callback,[n,r],this);return i||i===0?i:""}).filter((n,r)=>this.chart.getDataVisibility(r))}fit(){const t=this.options;t.display&&t.pointLabels.display?jst(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,n,r,i){this.xCenter+=Math.floor((t-n)/2),this.yCenter+=Math.floor((r-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,n,r,i))}getIndexAngle(t){const n=te/(this._pointLabels.length||1),r=this.options.startAngle||0;return Gn(t*n+Rr(r))}getDistanceFromCenterForValue(t){if(xt(t))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*n:(t-this.min)*n}getValueForDistanceFromCenter(t){if(xt(t))return NaN;const n=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(t){const n=this._pointLabels||[];if(t>=0&&t<n.length){const r=n[t];return Qst(this.getContext(),t,r)}}getPointPosition(t,n,r=0){const i=this.getIndexAngle(t)-pe+r;return{x:Math.cos(i)*n+this.xCenter,y:Math.sin(i)*n+this.yCenter,angle:i}}getPointPositionForValue(t,n){return this.getPointPosition(t,this.getDistanceFromCenterForValue(n))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:n,top:r,right:i,bottom:o}=this._pointLabelItems[t];return{left:n,top:r,right:i,bottom:o}}drawBackground(){const{backgroundColor:t,grid:{circular:n}}=this.options;if(t){const r=this.ctx;r.save(),r.beginPath(),pI(this,this.getDistanceFromCenterForValue(this._endValue),n,this._pointLabels.length),r.closePath(),r.fillStyle=t,r.fill(),r.restore()}}drawGrid(){const t=this.ctx,n=this.options,{angleLines:r,grid:i,border:o}=n,s=this._pointLabels.length;let a,l,c;if(n.pointLabels.display&&qst(this,s),i.display&&this.ticks.forEach((u,d)=>{if(d!==0){l=this.getDistanceFromCenterForValue(u.value);const h=this.getContext(d),f=i.setContext(h),p=o.setContext(h);Xst(this,f,l,s,p)}}),r.display){for(t.save(),a=s-1;a>=0;a--){const u=r.setContext(this.getPointLabelContext(a)),{color:d,lineWidth:h}=u;!h||!d||(t.lineWidth=h,t.strokeStyle=d,t.setLineDash(u.borderDash),t.lineDashOffset=u.borderDashOffset,l=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),c=this.getPointPosition(a,l),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(c.x,c.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,n=this.options,r=n.ticks;if(!r.display)return;const i=this.getIndexAngle(0);let o,s;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((a,l)=>{if(l===0&&!n.reverse)return;const c=r.setContext(this.getContext(l)),u=Pe(c.font);if(o=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){t.font=u.string,s=t.measureText(a.label).width,t.fillStyle=c.backdropColor;const d=un(c.backdropPadding);t.fillRect(-s/2-d.left,-o-u.size/2-d.top,s+d.width,u.size+d.height)}ba(t,a.label,0,-o,u,{color:c.color})}),t.restore()}drawTitle(){}}tt(pu,"id","radialLinear"),tt(pu,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:hv.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(e){return e},padding:5,centerPointLabels:!1}}),tt(pu,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),tt(pu,"descriptors",{angleLines:{_fallback:"grid"}});const mv={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Tn=Object.keys(mv);function Kst(e,t){return e-t}function RT(e,t){if(xt(t))return null;const n=e._adapter,{parser:r,round:i,isoWeekday:o}=e._parseOpts;let s=t;return typeof r=="function"&&(s=r(s)),fe(s)||(s=typeof r=="string"?n.parse(s,r):n.parse(s)),s===null?null:(i&&(s=i==="week"&&(nc(o)||o===!0)?n.startOf(s,"isoWeek",o):n.startOf(s,i)),+s)}function DT(e,t,n,r){const i=Tn.length;for(let o=Tn.indexOf(e);o<i-1;++o){const s=mv[Tn[o]],a=s.steps?s.steps:Number.MAX_SAFE_INTEGER;if(s.common&&Math.ceil((n-t)/(a*s.size))<=r)return Tn[o]}return Tn[i-1]}function Zst(e,t,n,r,i){for(let o=Tn.length-1;o>=Tn.indexOf(n);o--){const s=Tn[o];if(mv[s].common&&e._adapter.diff(i,r,s)>=t-1)return s}return Tn[n?Tn.indexOf(n):0]}function Jst(e){for(let t=Tn.indexOf(e)+1,n=Tn.length;t<n;++t)if(mv[Tn[t]].common)return Tn[t]}function LT(e,t,n){if(!n)e[t]=!0;else if(n.length){const{lo:r,hi:i}=a2(n,t),o=n[r]>=t?n[r]:n[i];e[o]=!0}}function tat(e,t,n,r){const i=e._adapter,o=+i.startOf(t[0].value,r),s=t[t.length-1].value;let a,l;for(a=o;a<=s;a=+i.add(a,1,r))l=n[a],l>=0&&(t[l].major=!0);return t}function IT(e,t,n){const r=[],i={},o=t.length;let s,a;for(s=0;s<o;++s)a=t[s],i[a]=s,r.push({value:a,major:!1});return o===0||!n?r:tat(e,r,i,n)}class ch extends Ca{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,n={}){const r=t.time||(t.time={}),i=this._adapter=new git._date(t.adapters.date);i.init(n),Qu(r.displayFormats,i.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(t),this._normalized=n.normalized}parse(t,n){return t===void 0?null:RT(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,n=this._adapter,r=t.time.unit||"day";let{min:i,max:o,minDefined:s,maxDefined:a}=this.getUserBounds();function l(c){!s&&!isNaN(c.min)&&(i=Math.min(i,c.min)),!a&&!isNaN(c.max)&&(o=Math.max(o,c.max))}(!s||!a)&&(l(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&l(this.getMinMax(!1))),i=fe(i)&&!isNaN(i)?i:+n.startOf(Date.now(),r),o=fe(o)&&!isNaN(o)?o:+n.endOf(Date.now(),r)+1,this.min=Math.min(i,o-1),this.max=Math.max(i+1,o)}_getLabelBounds(){const t=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return t.length&&(n=t[0],r=t[t.length-1]),{min:n,max:r}}buildTicks(){const t=this.options,n=t.time,r=t.ticks,i=r.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const o=this.min,s=this.max,a=Bnt(i,o,s);return this._unit=n.unit||(r.autoSkip?DT(n.minUnit,this.min,this.max,this._getLabelCapacity(o)):Zst(this,a.length,n.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:Jst(this._unit),this.initOffsets(i),t.reverse&&a.reverse(),IT(this,a,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let n=0,r=0,i,o;this.options.offset&&t.length&&(i=this.getDecimalForValue(t[0]),t.length===1?n=1-i:n=(this.getDecimalForValue(t[1])-i)/2,o=this.getDecimalForValue(t[t.length-1]),t.length===1?r=o:r=(o-this.getDecimalForValue(t[t.length-2]))/2);const s=t.length<3?.5:.25;n=ze(n,0,s),r=ze(r,0,s),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const t=this._adapter,n=this.min,r=this.max,i=this.options,o=i.time,s=o.unit||DT(o.minUnit,n,r,this._getLabelCapacity(n)),a=ct(i.ticks.stepSize,1),l=s==="week"?o.isoWeekday:!1,c=nc(l)||l===!0,u={};let d=n,h,f;if(c&&(d=+t.startOf(d,"isoWeek",l)),d=+t.startOf(d,c?"day":s),t.diff(r,n,s)>1e5*a)throw new Error(n+" and "+r+" are too far apart with stepSize of "+a+" "+s);const p=i.ticks.source==="data"&&this.getDataTimestamps();for(h=d,f=0;h<r;h=+t.add(h,a,s),f++)LT(u,h,p);return(h===r||i.bounds==="ticks"||f===1)&<(u,h,p),Object.keys(u).sort((g,y)=>g-y).map(g=>+g)}getLabelForValue(t){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(t,r.tooltipFormat):n.format(t,r.displayFormats.datetime)}format(t,n){const r=this.options.time.displayFormats,i=this._unit,o=n||r[i];return this._adapter.format(t,o)}_tickFormatFunction(t,n,r,i){const o=this.options,s=o.ticks.callback;if(s)return zt(s,[t,n,r],this);const a=o.time.displayFormats,l=this._unit,c=this._majorUnit,u=l&&a[l],d=c&&a[c],h=r[n],f=c&&d&&h&&h.major;return this._adapter.format(t,i||(f?d:u))}generateTickLabels(t){let n,r,i;for(n=0,r=t.length;n<r;++n)i=t[n],i.label=this._tickFormatFunction(i.value,n,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const n=this._offsets,r=this.getDecimalForValue(t);return this.getPixelForDecimal((n.start+r)*n.factor)}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return this.min+r*(this.max-this.min)}_getLabelSize(t){const n=this.options.ticks,r=this.ctx.measureText(t).width,i=Rr(this.isHorizontal()?n.maxRotation:n.minRotation),o=Math.cos(i),s=Math.sin(i),a=this._resolveTickFontOptions(0).size;return{w:r*o+a*s,h:r*s+a*o}}_getLabelCapacity(t){const n=this.options.time,r=n.displayFormats,i=r[n.unit]||r.millisecond,o=this._tickFormatFunction(t,0,IT(this,[t],this._majorUnit),i),s=this._getLabelSize(o),a=Math.floor(this.isHorizontal()?this.width/s.w:this.height/s.h)-1;return a>0?a:1}getDataTimestamps(){let t=this._cache.data||[],n,r;if(t.length)return t;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(n=0,r=i.length;n<r;++n)t=t.concat(i[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let n,r;if(t.length)return t;const i=this.getLabels();for(n=0,r=i.length;n<r;++n)t.push(RT(this,i[n]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return _4(t.sort(Kst))}}tt(ch,"id","time"),tt(ch,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function np(e,t,n){let r=0,i=e.length-1,o,s,a,l;n?(t>=e[r].pos&&t<=e[i].pos&&({lo:r,hi:i}=Ii(e,"pos",t)),{pos:o,time:a}=e[r],{pos:s,time:l}=e[i]):(t>=e[r].time&&t<=e[i].time&&({lo:r,hi:i}=Ii(e,"time",t)),{time:o,pos:a}=e[r],{time:s,pos:l}=e[i]);const c=s-o;return c?a+(l-a)*(t-o)/c:a}class Kb extends ch{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=np(n,this.min),this._tableRange=np(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:r}=this,i=[],o=[];let s,a,l,c,u;for(s=0,a=t.length;s<a;++s)c=t[s],c>=n&&c<=r&&i.push(c);if(i.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(s=0,a=i.length;s<a;++s)u=i[s+1],l=i[s-1],c=i[s],Math.round((u+l)/2)!==c&&o.push({time:c,pos:s/(a-1)});return o}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?t=this.normalize(n.concat(r)):t=n.length?n:r,t=this._cache.all=t,t}getDecimalForValue(t){return(np(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return np(this._table,r*this._tableRange+this._minPos,!0)}}tt(Kb,"id","timeseries"),tt(Kb,"defaults",ch.defaults);var eat=Object.freeze({__proto__:null,CategoryScale:sh,LinearScale:ah,LogarithmicScale:Xb,RadialLinearScale:pu,TimeScale:ch,TimeSeriesScale:Kb});const nat=[pit,Hot,Dst,eat],gI="label";function NT(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function rat(e,t){const n=e.options;n&&t&&Object.assign(n,t)}function mI(e,t){e.labels=t}function vI(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:gI;const r=[];e.datasets=t.map(i=>{const o=e.datasets.find(s=>s[n]===i[n]);return!o||!i.data||r.includes(o)?{...i}:(r.push(o),Object.assign(o,i),o)})}function iat(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:gI;const n={labels:[],datasets:[]};return mI(n,e.labels),vI(n,e.datasets,t),n}function oat(e,t){const{height:n=150,width:r=300,redraw:i=!1,datasetIdKey:o,type:s,data:a,options:l,plugins:c=[],fallbackContent:u,updateMode:d,...h}=e,f=v.exports.useRef(null),p=v.exports.useRef(),g=()=>{!f.current||(p.current=new Xn(f.current,{type:s,data:iat(a,o),options:l&&{...l},plugins:c}),NT(t,p.current))},y=()=>{NT(t,null),p.current&&(p.current.destroy(),p.current=null)};return v.exports.useEffect(()=>{!i&&p.current&&l&&rat(p.current,l)},[i,l]),v.exports.useEffect(()=>{!i&&p.current&&mI(p.current.config.data,a.labels)},[i,a.labels]),v.exports.useEffect(()=>{!i&&p.current&&a.datasets&&vI(p.current.config.data,a.datasets,o)},[i,a.datasets]),v.exports.useEffect(()=>{!p.current||(i?(y(),setTimeout(g)):p.current.update(d))},[i,l,a.labels,a.datasets,d]),v.exports.useEffect(()=>{!p.current||(y(),setTimeout(g))},[s]),v.exports.useEffect(()=>(g(),()=>y()),[]),at("canvas",{...Object.assign({ref:f,role:"img",height:n,width:r},h),children:u})}const sat=v.exports.forwardRef(oat);function yI(e,t){return Xn.register(t),v.exports.forwardRef((n,r)=>at(sat,{...Object.assign({},n,{ref:r,type:e})}))}const aat=yI("bar",td),lat=yI("doughnut",Do),cat=!!(typeof window<"u"&&window.document&&window.document.createElement),FT=cat&&getComputedStyle(document.documentElement),Js=e=>()=>FT?FT.getPropertyValue(e):"";z.div`
|
|
437
|
+
position: relative;
|
|
438
|
+
width: 100%;
|
|
439
|
+
// removing space dedicated for tabs, title and attribution
|
|
440
|
+
height: calc(100vh - 200px);
|
|
441
|
+
@media (max-width: ${YA.tablet}px) {
|
|
442
|
+
height: ${({height:e})=>e}px;
|
|
443
|
+
}
|
|
444
|
+
`;z(aat)`
|
|
445
|
+
background-color: ${L["--ll-color-surface"]};
|
|
446
|
+
padding: ${L["--ll-spacing-medium"]} ${L["--ll-spacing-x-large"]};
|
|
447
|
+
border-radius: ${L["--ll-border-radius-medium"]};
|
|
448
|
+
font-family: ${L["--ll-font-family"]};
|
|
449
|
+
`;z(lat)`
|
|
450
|
+
background-color: ${L["--ll-color-surface"]};
|
|
451
|
+
padding: ${L["--ll-spacing-medium"]} ${L["--ll-spacing-x-large"]};
|
|
452
|
+
border-radius: ${L["--ll-border-radius-medium"]};
|
|
453
|
+
font-family: ${L["--ll-font-family"]};
|
|
454
|
+
`;const uat=Object.freeze({options:{indexAxis:"y",elements:{bar:{borderWidth:0,borderRadius:4,backgroundColor:Js("--ll-color-primary")}},responsive:!0,maintainAspectRatio:!1,events:null,plugins:{legend:{display:!0,position:"bottom",align:"start",labels:{boxWidth:10,usePointStyle:!0,pointStyle:"rectRounded"}},tooltip:{enabled:!1},title:{display:!0,position:"top",align:"start",text:"Chart.js Horizontal Bar Chart",padding:{bottom:16},color:Js("--ll-color-on-background"),font:{family:Js("--ll-font-family"),weight:Js("--ll-font-weight-medium"),size:14,lineHeight:1.4}}}}});Xn.register(sh,ah,Pl);({...uat.options});Xn.register(sh,ah,Pl,uI,m2);Object.freeze({options:{cutout:"60%",borderWidth:0,indexAxis:"y",responsive:!0,maintainAspectRatio:!1,events:null,plugins:{legend:{display:!0,position:"right",align:"middle",labels:{boxWidth:10,usePointStyle:!0,pointStyle:"rectRounded"}},tooltip:{enabled:!1},title:{display:!0,position:"top",align:"start",padding:{bottom:16},color:Js("--ll-color-on-background"),font:{family:Js("--ll-font-family"),weight:Js("--ll-font-weight-medium"),size:14,lineHeight:1.4}}}}});Xn.register(nd,hI,m2);Xn.register(...nat);z.div`
|
|
455
|
+
background: linear-gradient(
|
|
456
|
+
to top,
|
|
457
|
+
${L["--ll-color-primary-variant1"]},
|
|
458
|
+
${L["--ll-color-primary"]}
|
|
459
|
+
);
|
|
460
|
+
padding: ${L["--ll-spacing-medium"]} ${L["--ll-spacing-x-large"]};
|
|
461
|
+
border-radius: ${L["--ll-border-radius-medium"]};
|
|
462
|
+
`;z.div`
|
|
463
|
+
width: 100%;
|
|
464
|
+
display: flex;
|
|
465
|
+
flex-direction: column;
|
|
466
|
+
align-items: center;
|
|
467
|
+
justify-content: center;
|
|
468
|
+
margin-top: 30px;
|
|
469
|
+
margin-bottom: 30px;
|
|
470
|
+
`;z.div`
|
|
471
|
+
width: 100%;
|
|
472
|
+
display: flex;
|
|
473
|
+
flex-direction: ${({$isSingleItem:e})=>e?"column":"row"};
|
|
474
|
+
justify-content: ${({$isSingleItem:e})=>e?"center":"space-between"};
|
|
475
|
+
align-items: center;
|
|
476
|
+
margin-bottom: ${({$isSingleItem:e})=>e?"0px":`${L["--ll-spacing-medium"]}`};
|
|
477
|
+
`;z.div`
|
|
478
|
+
display: flex;
|
|
479
|
+
align-items: center;
|
|
480
|
+
|
|
481
|
+
div {
|
|
482
|
+
margin-right: ${({$isSingleItem:e})=>e?"0px":`${L["--ll-spacing-medium"]}`};
|
|
483
|
+
}
|
|
484
|
+
`;function dat(e){const t=as(e);v.exports.useEffect(()=>{const n=r=>{r.key==="Escape"&&t(r)};return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[t])}const Zb="dismissableLayer.update",hat="dismissableLayer.pointerDownOutside",fat="dismissableLayer.focusOutside";let zT;const pat=v.exports.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),xI=v.exports.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:s,onDismiss:a,...l}=e,c=v.exports.useContext(pat),[u,d]=v.exports.useState(null),[,h]=v.exports.useState({}),f=Ut(t,A=>d(A)),p=Array.from(c.layers),[g]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=p.indexOf(g),m=u?p.indexOf(u):-1,x=c.layersWithOutsidePointerEventsDisabled.size>0,b=m>=y,_=gat(A=>{const S=A.target,E=[...c.branches].some(k=>k.contains(S));!b||E||(i==null||i(A),s==null||s(A),A.defaultPrevented||a==null||a())}),w=mat(A=>{const S=A.target;[...c.branches].some(E=>E.contains(S))||(o==null||o(A),s==null||s(A),A.defaultPrevented||a==null||a())});return dat(A=>{m===c.layers.size-1&&(r==null||r(A),!A.defaultPrevented&&a&&(A.preventDefault(),a()))}),v.exports.useEffect(()=>{if(u)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(zT=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),BT(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(document.body.style.pointerEvents=zT)}},[u,n,c]),v.exports.useEffect(()=>()=>{!u||(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),BT())},[u,c]),v.exports.useEffect(()=>{const A=()=>h({});return document.addEventListener(Zb,A),()=>document.removeEventListener(Zb,A)},[]),v.exports.createElement($t.div,rt({},l,{ref:f,style:{pointerEvents:x?b?"auto":"none":void 0,...e.style},onFocusCapture:Dt(e.onFocusCapture,w.onFocusCapture),onBlurCapture:Dt(e.onBlurCapture,w.onBlurCapture),onPointerDownCapture:Dt(e.onPointerDownCapture,_.onPointerDownCapture)}))});function gat(e){const t=as(e),n=v.exports.useRef(!1),r=v.exports.useRef(()=>{});return v.exports.useEffect(()=>{const i=s=>{if(s.target&&!n.current){let a=function(){bI(hat,t,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(document.removeEventListener("click",r.current),r.current=a,document.addEventListener("click",r.current,{once:!0})):a()}n.current=!1},o=window.setTimeout(()=>{document.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),document.removeEventListener("pointerdown",i),document.removeEventListener("click",r.current)}},[t]),{onPointerDownCapture:()=>n.current=!0}}function mat(e){const t=as(e),n=v.exports.useRef(!1);return v.exports.useEffect(()=>{const r=i=>{i.target&&!n.current&&bI(fat,t,{originalEvent:i},{discrete:!1})};return document.addEventListener("focusin",r),()=>document.removeEventListener("focusin",r)},[t]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function BT(){const e=new CustomEvent(Zb);document.dispatchEvent(e)}function bI(e,t,n,{discrete:r}){const i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?dtt(i,o):i.dispatchEvent(o)}let iy=0;function _I(){v.exports.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:VT()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:VT()),iy++,()=>{iy===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),iy--}},[])}function VT(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const oy="focusScope.autoFocusOnMount",sy="focusScope.autoFocusOnUnmount",jT={bubbles:!1,cancelable:!0},wI=v.exports.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...s}=e,[a,l]=v.exports.useState(null),c=as(i),u=as(o),d=v.exports.useRef(null),h=Ut(t,g=>l(g)),f=v.exports.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.exports.useEffect(()=>{if(r){let g=function(m){if(f.paused||!a)return;const x=m.target;a.contains(x)?d.current=x:js(d.current,{select:!0})},y=function(m){f.paused||!a||a.contains(m.relatedTarget)||js(d.current,{select:!0})};return document.addEventListener("focusin",g),document.addEventListener("focusout",y),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",y)}}},[r,a,f.paused]),v.exports.useEffect(()=>{if(a){UT.add(f);const g=document.activeElement;if(!a.contains(g)){const y=new CustomEvent(oy,jT);a.addEventListener(oy,c),a.dispatchEvent(y),y.defaultPrevented||(vat(wat(AI(a)),{select:!0}),document.activeElement===g&&js(a))}return()=>{a.removeEventListener(oy,c),setTimeout(()=>{const y=new CustomEvent(sy,jT);a.addEventListener(sy,u),a.dispatchEvent(y),y.defaultPrevented||js(g!=null?g:document.body,{select:!0}),a.removeEventListener(sy,u),UT.remove(f)},0)}}},[a,c,u,f]);const p=v.exports.useCallback(g=>{if(!n&&!r||f.paused)return;const y=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,m=document.activeElement;if(y&&m){const x=g.currentTarget,[b,_]=yat(x);b&&_?!g.shiftKey&&m===_?(g.preventDefault(),n&&js(b,{select:!0})):g.shiftKey&&m===b&&(g.preventDefault(),n&&js(_,{select:!0})):m===x&&g.preventDefault()}},[n,r,f.paused]);return v.exports.createElement($t.div,rt({tabIndex:-1},s,{ref:h,onKeyDown:p}))});function vat(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(js(r,{select:t}),document.activeElement!==n)return}function yat(e){const t=AI(e),n=HT(t,e),r=HT(t.reverse(),e);return[n,r]}function AI(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function HT(e,t){for(const n of e)if(!xat(n,{upTo:t}))return n}function xat(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function bat(e){return e instanceof HTMLInputElement&&"select"in e}function js(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&bat(e)&&t&&e.select()}}const UT=_at();function _at(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=WT(e,t),e.unshift(t)},remove(t){var n;e=WT(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function WT(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function wat(e){return e.filter(t=>t.tagName!=="A")}const SI=v.exports.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...i}=e;return r?_R.createPortal(v.exports.createElement($t.div,rt({},i,{ref:t})),r):null}),Aat=v.exports.forwardRef((e,t)=>v.exports.createElement($t.span,rt({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})));var Sat=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},La=new WeakMap,rp=new WeakMap,ip={},ay=0,Eat=function(e,t,n,r){var i=Array.isArray(e)?e:[e];ip[n]||(ip[n]=new WeakMap);var o=ip[n],s=[],a=new Set,l=new Set(i),c=function(d){!d||a.has(d)||(a.add(d),c(d.parentNode))};i.forEach(c);var u=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(h){if(a.has(h))u(h);else{var f=h.getAttribute(r),p=f!==null&&f!=="false",g=(La.get(h)||0)+1,y=(o.get(h)||0)+1;La.set(h,g),o.set(h,y),s.push(h),g===1&&p&&rp.set(h,!0),y===1&&h.setAttribute(n,"true"),p||h.setAttribute(r,"true")}})};return u(t),a.clear(),ay++,function(){s.forEach(function(d){var h=La.get(d)-1,f=o.get(d)-1;La.set(d,h),o.set(d,f),h||(rp.has(d)||d.removeAttribute(r),rp.delete(d)),f||d.removeAttribute(n)}),ay--,ay||(La=new WeakMap,La=new WeakMap,rp=new WeakMap,ip={})}},EI=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=t||Sat(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),Eat(r,i,n,"aria-hidden")):function(){return null}},ei=function(){return ei=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},ei.apply(this,arguments)};function CI(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Cat(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var vg="right-scroll-bar-position",yg="width-before-scroll-bar",kat="with-scroll-bars-hidden",Tat="--removed-body-scroll-bar-size";function Mat(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function $at(e,t){var n=v.exports.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}function Pat(e,t){return $at(t||null,function(n){return e.forEach(function(r){return Mat(r,n)})})}function Oat(e){return e}function Rat(e,t){t===void 0&&(t=Oat);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(o){var s=t(o,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(o){for(r=!0;n.length;){var s=n;n=[],s.forEach(o)}n={push:function(a){return o(a)},filter:function(){return n}}},assignMedium:function(o){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(o),s=n}var l=function(){var u=s;s=[],u.forEach(o)},c=function(){return Promise.resolve().then(l)};c(),n={push:function(u){s.push(u),c()},filter:function(u){return s=s.filter(u),n}}}};return i}function Dat(e){e===void 0&&(e={});var t=Rat(null);return t.options=ei({async:!0,ssr:!1},e),t}var kI=function(e){var t=e.sideCar,n=CI(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return at(r,{...ei({},n)})};kI.isSideCarExport=!0;function Lat(e,t){return e.useMedium(t),kI}var TI=Dat(),ly=function(){},vv=v.exports.forwardRef(function(e,t){var n=v.exports.useRef(null),r=v.exports.useState({onScrollCapture:ly,onWheelCapture:ly,onTouchMoveCapture:ly}),i=r[0],o=r[1],s=e.forwardProps,a=e.children,l=e.className,c=e.removeScrollBar,u=e.enabled,d=e.shards,h=e.sideCar,f=e.noIsolation,p=e.inert,g=e.allowPinchZoom,y=e.as,m=y===void 0?"div":y,x=CI(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),b=h,_=Pat([n,t]),w=ei(ei({},x),i);return fr(uv,{children:[u&&at(b,{sideCar:TI,removeScrollBar:c,shards:d,noIsolation:f,inert:p,setCallbacks:o,allowPinchZoom:!!g,lockRef:n}),s?v.exports.cloneElement(v.exports.Children.only(a),ei(ei({},w),{ref:_})):at(m,{...ei({},w,{className:l,ref:_}),children:a})]})});vv.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};vv.classNames={fullWidth:yg,zeroRight:vg};var Iat=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Nat(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Iat();return t&&e.setAttribute("nonce",t),e}function Fat(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function zat(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Bat=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Nat())&&(Fat(t,n),zat(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Vat=function(){var e=Bat();return function(t,n){v.exports.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},MI=function(){var e=Vat(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},jat={left:0,top:0,right:0,gap:0},cy=function(e){return parseInt(e||"",10)||0},Hat=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[cy(n),cy(r),cy(i)]},Uat=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return jat;var t=Hat(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Wat=MI(),Yat=function(e,t,n,r){var i=e.left,o=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),`
|
|
485
|
+
.`.concat(kat,` {
|
|
486
|
+
overflow: hidden `).concat(r,`;
|
|
487
|
+
padding-right: `).concat(a,"px ").concat(r,`;
|
|
488
|
+
}
|
|
489
|
+
body {
|
|
490
|
+
overflow: hidden `).concat(r,`;
|
|
491
|
+
overscroll-behavior: contain;
|
|
492
|
+
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
493
|
+
padding-left: `.concat(i,`px;
|
|
494
|
+
padding-top: `).concat(o,`px;
|
|
495
|
+
padding-right: `).concat(s,`px;
|
|
496
|
+
margin-left:0;
|
|
497
|
+
margin-top:0;
|
|
498
|
+
margin-right: `).concat(a,"px ").concat(r,`;
|
|
499
|
+
`),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
.`).concat(vg,` {
|
|
503
|
+
right: `).concat(a,"px ").concat(r,`;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
.`).concat(yg,` {
|
|
507
|
+
margin-right: `).concat(a,"px ").concat(r,`;
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
.`).concat(vg," .").concat(vg,` {
|
|
511
|
+
right: 0 `).concat(r,`;
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
.`).concat(yg," .").concat(yg,` {
|
|
515
|
+
margin-right: 0 `).concat(r,`;
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
body {
|
|
519
|
+
`).concat(Tat,": ").concat(a,`px;
|
|
520
|
+
}
|
|
521
|
+
`)},Gat=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r,o=v.exports.useMemo(function(){return Uat(i)},[i]);return at(Wat,{styles:Yat(o,!t,i,n?"":"!important")})},Jb=!1;if(typeof window<"u")try{var op=Object.defineProperty({},"passive",{get:function(){return Jb=!0,!0}});window.addEventListener("test",op,op),window.removeEventListener("test",op,op)}catch(e){Jb=!1}var Ia=Jb?{passive:!1}:!1,qat=function(e){var t=window.getComputedStyle(e);return t.overflowY!=="hidden"&&!(t.overflowY===t.overflowX&&t.overflowY==="visible")},Xat=function(e){var t=window.getComputedStyle(e);return t.overflowX!=="hidden"&&!(t.overflowY===t.overflowX&&t.overflowX==="visible")},YT=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=$I(e,n);if(r){var i=PI(e,n),o=i[1],s=i[2];if(o>s)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},Qat=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Kat=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},$I=function(e,t){return e==="v"?qat(t):Xat(t)},PI=function(e,t){return e==="v"?Qat(t):Kat(t)},Zat=function(e,t){return e==="h"&&t==="rtl"?-1:1},Jat=function(e,t,n,r,i){var o=Zat(e,window.getComputedStyle(t).direction),s=o*r,a=n.target,l=t.contains(a),c=!1,u=s>0,d=0,h=0;do{var f=PI(e,a),p=f[0],g=f[1],y=f[2],m=g-y-o*p;(p||m)&&$I(e,a)&&(d+=m,h+=p),a=a.parentNode}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(u&&(i&&d===0||!i&&s>d)||!u&&(i&&h===0||!i&&-s>h))&&(c=!0),c},sp=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},GT=function(e){return[e.deltaX,e.deltaY]},qT=function(e){return e&&"current"in e?e.current:e},tlt=function(e,t){return e[0]===t[0]&&e[1]===t[1]},elt=function(e){return`
|
|
522
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
523
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
524
|
+
`)},nlt=0,Na=[];function rlt(e){var t=v.exports.useRef([]),n=v.exports.useRef([0,0]),r=v.exports.useRef(),i=v.exports.useState(nlt++)[0],o=v.exports.useState(function(){return MI()})[0],s=v.exports.useRef(e);v.exports.useEffect(function(){s.current=e},[e]),v.exports.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var g=Cat([e.lockRef.current],(e.shards||[]).map(qT),!0).filter(Boolean);return g.forEach(function(y){return y.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),g.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var a=v.exports.useCallback(function(g,y){if("touches"in g&&g.touches.length===2)return!s.current.allowPinchZoom;var m=sp(g),x=n.current,b="deltaX"in g?g.deltaX:x[0]-m[0],_="deltaY"in g?g.deltaY:x[1]-m[1],w,A=g.target,S=Math.abs(b)>Math.abs(_)?"h":"v";if("touches"in g&&S==="h"&&A.type==="range")return!1;var E=YT(S,A);if(!E)return!0;if(E?w=S:(w=S==="v"?"h":"v",E=YT(S,A)),!E)return!1;if(!r.current&&"changedTouches"in g&&(b||_)&&(r.current=w),!w)return!0;var k=r.current||w;return Jat(k,y,g,k==="h"?b:_,!0)},[]),l=v.exports.useCallback(function(g){var y=g;if(!(!Na.length||Na[Na.length-1]!==o)){var m="deltaY"in y?GT(y):sp(y),x=t.current.filter(function(w){return w.name===y.type&&w.target===y.target&&tlt(w.delta,m)})[0];if(x&&x.should){y.preventDefault();return}if(!x){var b=(s.current.shards||[]).map(qT).filter(Boolean).filter(function(w){return w.contains(y.target)}),_=b.length>0?a(y,b[0]):!s.current.noIsolation;_&&y.preventDefault()}}},[]),c=v.exports.useCallback(function(g,y,m,x){var b={name:g,delta:y,target:m,should:x};t.current.push(b),setTimeout(function(){t.current=t.current.filter(function(_){return _!==b})},1)},[]),u=v.exports.useCallback(function(g){n.current=sp(g),r.current=void 0},[]),d=v.exports.useCallback(function(g){c(g.type,GT(g),g.target,a(g,e.lockRef.current))},[]),h=v.exports.useCallback(function(g){c(g.type,sp(g),g.target,a(g,e.lockRef.current))},[]);v.exports.useEffect(function(){return Na.push(o),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:h}),document.addEventListener("wheel",l,Ia),document.addEventListener("touchmove",l,Ia),document.addEventListener("touchstart",u,Ia),function(){Na=Na.filter(function(g){return g!==o}),document.removeEventListener("wheel",l,Ia),document.removeEventListener("touchmove",l,Ia),document.removeEventListener("touchstart",u,Ia)}},[]);var f=e.removeScrollBar,p=e.inert;return fr(uv,{children:[p?at(o,{styles:elt(i)}):null,f?at(Gat,{gapMode:"margin"}):null]})}const ilt=Lat(TI,rlt);var OI=v.exports.forwardRef(function(e,t){return at(vv,{...ei({},e,{ref:t,sideCar:ilt})})});OI.classNames=vv.classNames;const RI=OI,olt=[" ","Enter","ArrowUp","ArrowDown"],slt=[" ","Enter"],yv="Select",[xv,y2,alt]=t4(yv),[Wh,llt]=bc(yv,[alt]),[clt,_c]=Wh(yv),[ult,dlt]=Wh(yv),DI=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:o,value:s,defaultValue:a,onValueChange:l,dir:c,name:u,autoComplete:d}=e,[h,f]=v.exports.useState(null),[p,g]=v.exports.useState(null),[y,m]=v.exports.useState(!1),x=J6(c),[b=!1,_]=Jd({prop:r,defaultProp:i,onChange:o}),[w,A]=Jd({prop:s,defaultProp:a,onChange:l}),S=v.exports.useRef(null),E=h?Boolean(h.closest("form")):!0,[k,C]=v.exports.useState(new Set),T=Array.from(k).map($=>$.props.value).join(";");return v.exports.createElement(clt,{scope:t,trigger:h,onTriggerChange:f,valueNode:p,onValueNodeChange:g,valueNodeHasChildren:y,onValueNodeHasChildrenChange:m,contentId:zh(),value:w,onValueChange:A,open:b,onOpenChange:_,dir:x,triggerPointerDownPosRef:S},v.exports.createElement(xv.Provider,{scope:t},v.exports.createElement(ult,{scope:e.__scopeSelect,onNativeOptionAdd:v.exports.useCallback($=>{C(I=>new Set(I).add($))},[]),onNativeOptionRemove:v.exports.useCallback($=>{C(I=>{const N=new Set(I);return N.delete($),N})},[])},n)),E?v.exports.createElement(KI,{key:T,"aria-hidden":!0,tabIndex:-1,name:u,autoComplete:d,value:w,onChange:$=>A($.target.value)},Array.from(k)):null)},hlt="SelectTrigger",LI=v.exports.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,"aria-labelledby":i,...o}=e,s=_c(hlt,n),a=Ut(t,s.onTriggerChange),l=y2(n),c=G6(s.trigger),u=i||c,[d,h,f]=ZI(g=>{const y=l().filter(b=>!b.disabled),m=y.find(b=>b.value===s.value),x=JI(y,g,m);x!==void 0&&s.onValueChange(x.value)}),p=()=>{r||(s.onOpenChange(!0),f())};return v.exports.createElement($t.button,rt({type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-autocomplete":"none","aria-labelledby":u,dir:s.dir,"data-state":s.open?"open":"closed",disabled:r,"data-disabled":r?"":void 0,"data-placeholder":s.value===void 0?"":void 0},o,{ref:a,onPointerDown:Dt(o.onPointerDown,g=>{g.target.releasePointerCapture(g.pointerId),g.button===0&&g.ctrlKey===!1&&(p(),s.triggerPointerDownPosRef.current={x:Math.round(g.pageX),y:Math.round(g.pageY)},g.preventDefault())}),onKeyDown:Dt(o.onKeyDown,g=>{const y=d.current!=="";!(g.ctrlKey||g.altKey||g.metaKey)&&g.key.length===1&&h(g.key),!(y&&g.key===" ")&&olt.includes(g.key)&&(p(),g.preventDefault())})}))}),flt="SelectValue",II=v.exports.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,children:o,placeholder:s,...a}=e,l=_c(flt,n),{onValueNodeHasChildrenChange:c}=l,u=o!==void 0,d=Ut(t,l.onValueNodeChange);return Fn(()=>{c(u)},[c,u]),v.exports.createElement($t.span,rt({},a,{ref:d,style:{pointerEvents:"none"}}),l.value===void 0&&s!==void 0?s:o)}),bv=v.exports.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...i}=e;return v.exports.createElement($t.span,rt({"aria-hidden":!0},i,{ref:t}),r||"\u25BC")}),NI=e=>v.exports.createElement(SI,rt({asChild:!0},e)),x2="SelectContent",FI=v.exports.forwardRef((e,t)=>{const n=_c(x2,e.__scopeSelect),[r,i]=v.exports.useState();return Fn(()=>{i(new DocumentFragment)},[]),v.exports.createElement(v.exports.Fragment,null,n.open?v.exports.createElement(plt,rt({},e,{ref:t})):r?Vn.exports.createPortal(v.exports.createElement(zI,{scope:e.__scopeSelect},v.exports.createElement(xv.Slot,{scope:e.__scopeSelect},v.exports.createElement("div",null,e.children))),r):null)}),go=10,[zI,wc]=Wh(x2),plt=v.exports.forwardRef((e,t)=>{const{__scopeSelect:n,onCloseAutoFocus:r,...i}=e,o=_c(x2,n),[s,a]=v.exports.useState(null),[l,c]=v.exports.useState(null),[u,d]=v.exports.useState(null),h=Ut(t,P=>c(P)),[f,p]=v.exports.useState(null),[g,y]=v.exports.useState(null),m=y2(n),[x,b]=v.exports.useState(!1),_=v.exports.useRef(!0),w=v.exports.useRef(!1),A=v.exports.useRef(!1);v.exports.useEffect(()=>{if(l)return EI(l)},[l]),_I();const[S,E]=v.exports.useState();Fn(()=>{l&&E(window.getComputedStyle(l).zIndex)},[l]);const k=v.exports.useCallback(P=>{const[G,...U]=m().map(V=>V.ref.current),[B]=U.slice(-1),R=document.activeElement;for(const V of P)if(V===R||(V==null||V.scrollIntoView({block:"nearest"}),V===G&&u&&(u.scrollTop=0),V===B&&u&&(u.scrollTop=u.scrollHeight),V==null||V.focus(),document.activeElement!==R))return},[m,u]),C=v.exports.useCallback(()=>{if(o.trigger&&o.valueNode&&s&&l&&u&&f&&g){const P=o.trigger.getBoundingClientRect(),G=l.getBoundingClientRect(),U=o.valueNode.getBoundingClientRect(),B=g.getBoundingClientRect();if(o.dir!=="rtl"){const Ot=B.left-G.left,ye=U.left-Ot,Ar=P.left-ye,fn=P.width+Ar,Es=Math.max(fn,G.width),Cs=window.innerWidth-go,ks=Nb(ye,[go,Cs-Es]);s.style.minWidth=fn+"px",s.style.left=ks+"px"}else{const Ot=G.right-B.right,ye=window.innerWidth-U.right-Ot,Ar=window.innerWidth-P.right-ye,fn=P.width+Ar,Es=Math.max(fn,G.width),Cs=window.innerWidth-go,ks=Nb(ye,[go,Cs-Es]);s.style.minWidth=fn+"px",s.style.right=ks+"px"}const R=m(),V=window.innerHeight-go*2,K=u.scrollHeight,st=window.getComputedStyle(l),Yt=parseInt(st.borderTopWidth,10),ve=parseInt(st.paddingTop,10),sr=parseInt(st.borderBottomWidth,10),wr=parseInt(st.paddingBottom,10),hn=Yt+ve+K+wr+sr,Wr=Math.min(f.offsetHeight*5,hn),ar=window.getComputedStyle(u),lt=parseInt(ar.paddingTop,10),se=parseInt(ar.paddingBottom,10),nt=P.top+P.height/2-go,St=V-nt,Gt=f.offsetHeight/2,ke=f.offsetTop+Gt,An=Yt+ve+ke,Dc=hn-An;if(An<=nt){const Ot=f===R[R.length-1].ref.current;s.style.bottom="0px";const ye=l.clientHeight-u.offsetTop-u.offsetHeight,Ar=Math.max(St,Gt+(Ot?se:0)+ye+sr),fn=An+Ar;s.style.height=fn+"px"}else{const Ot=f===R[0].ref.current;s.style.top="0px";const ye=Math.max(nt,Yt+u.offsetTop+(Ot?lt:0)+Gt)+Dc;s.style.height=ye+"px",u.scrollTop=An-nt+u.offsetTop}s.style.margin=`${go}px 0`,s.style.minHeight=Wr+"px",s.style.maxHeight=V+"px",b(!0),requestAnimationFrame(()=>w.current=!0)}},[m,o.trigger,o.valueNode,s,l,u,f,g,o.dir]);Fn(()=>C(),[C]);const T=v.exports.useCallback(()=>k([f,l]),[k,f,l]);v.exports.useEffect(()=>{x&&T()},[x,T]);const $=v.exports.useCallback(P=>{P&&_.current===!0&&(C(),T(),_.current=!1)},[C,T]),{onOpenChange:I,triggerPointerDownPosRef:N}=o;v.exports.useEffect(()=>{if(l){let P={x:0,y:0};const G=B=>{var R,V,K,st;P={x:Math.abs(Math.round(B.pageX)-((R=(V=N.current)===null||V===void 0?void 0:V.x)!==null&&R!==void 0?R:0)),y:Math.abs(Math.round(B.pageY)-((K=(st=N.current)===null||st===void 0?void 0:st.y)!==null&&K!==void 0?K:0))}},U=B=>{P.x<=10&&P.y<=10?B.preventDefault():l.contains(B.target)||I(!1),document.removeEventListener("pointermove",G),N.current=null};return N.current!==null&&(document.addEventListener("pointermove",G),document.addEventListener("pointerup",U,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",G),document.removeEventListener("pointerup",U,{capture:!0})}}},[l,I,N]),v.exports.useEffect(()=>{const P=()=>I(!1);return window.addEventListener("blur",P),window.addEventListener("resize",P),()=>{window.removeEventListener("blur",P),window.removeEventListener("resize",P)}},[I]);const[D,Y]=ZI(P=>{const G=m().filter(R=>!R.disabled),U=G.find(R=>R.ref.current===document.activeElement),B=JI(G,P,U);B&&setTimeout(()=>B.ref.current.focus())}),Q=v.exports.useCallback((P,G,U)=>{const B=!A.current&&!U;(o.value!==void 0&&o.value===G||B)&&(p(P),B&&(A.current=!0))},[o.value]),F=v.exports.useCallback(()=>l==null?void 0:l.focus(),[l]),W=v.exports.useCallback((P,G,U)=>{const B=!A.current&&!U;(o.value!==void 0&&o.value===G||B)&&y(P)},[o.value]);return v.exports.createElement(zI,{scope:n,contentWrapper:s,content:l,viewport:u,onViewportChange:d,itemRefCallback:Q,selectedItem:f,onItemLeave:F,itemTextRefCallback:W,selectedItemText:g,onScrollButtonChange:$,isPositioned:x,shouldExpandOnScrollRef:w,searchRef:D},v.exports.createElement(RI,{as:ec,allowPinchZoom:!0},v.exports.createElement("div",{ref:a,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S}},v.exports.createElement(wI,{asChild:!0,trapped:o.open,onMountAutoFocus:P=>{P.preventDefault()},onUnmountAutoFocus:Dt(r,P=>{var G;(G=o.trigger)===null||G===void 0||G.focus({preventScroll:!0}),P.preventDefault()})},v.exports.createElement(xI,rt({role:"listbox",id:o.contentId,"data-state":o.open?"open":"closed",dir:o.dir,onContextMenu:P=>P.preventDefault()},i,{ref:h,style:{display:"flex",flexDirection:"column",boxSizing:"border-box",maxHeight:"100%",outline:"none",...i.style},disableOutsidePointerEvents:!0,onFocusOutside:P=>P.preventDefault(),onDismiss:()=>o.onOpenChange(!1),onKeyDown:Dt(i.onKeyDown,P=>{const G=P.ctrlKey||P.altKey||P.metaKey;if(P.key==="Tab"&&P.preventDefault(),!G&&P.key.length===1&&Y(P.key),["ArrowUp","ArrowDown","Home","End"].includes(P.key)){let U=m().filter(B=>!B.disabled).map(B=>B.ref.current);if(["ArrowUp","End"].includes(P.key)&&(U=U.slice().reverse()),["ArrowUp","ArrowDown"].includes(P.key)){const B=P.target,R=U.indexOf(B);U=U.slice(R+1)}setTimeout(()=>k(U)),P.preventDefault()}})}))))))}),glt="SelectViewport",BI=v.exports.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=wc(glt,n),o=Ut(t,i.onViewportChange),s=v.exports.useRef(0);return v.exports.createElement(v.exports.Fragment,null,v.exports.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"}}),v.exports.createElement(xv.Slot,{scope:n},v.exports.createElement($t.div,rt({"data-radix-select-viewport":"",role:"presentation"},r,{ref:o,style:{position:"relative",flex:1,overflow:"auto",...r.style},onScroll:Dt(r.onScroll,a=>{const l=a.currentTarget,{contentWrapper:c,shouldExpandOnScrollRef:u}=i;if(u!=null&&u.current&&c){const d=Math.abs(s.current-l.scrollTop);if(d>0){const h=window.innerHeight-go*2,f=parseFloat(c.style.minHeight),p=parseFloat(c.style.height),g=Math.max(f,p);if(g<h){const y=g+d,m=Math.min(h,y),x=y-m;c.style.height=m+"px",c.style.bottom==="0px"&&(l.scrollTop=x>0?x:0,c.style.justifyContent="flex-end")}}}s.current=l.scrollTop})}))))}),mlt="SelectGroup",[vlt,ylt]=Wh(mlt),VI=v.exports.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=zh();return v.exports.createElement(vlt,{scope:n,id:i},v.exports.createElement($t.div,rt({role:"group","aria-labelledby":i},r,{ref:t})))}),xlt="SelectLabel",jI=v.exports.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=ylt(xlt,n);return v.exports.createElement($t.div,rt({id:i.id},r,{ref:t}))}),t_="SelectItem",[blt,HI]=Wh(t_),UI=v.exports.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:i=!1,textValue:o,...s}=e,a=_c(t_,n),l=wc(t_,n),c=a.value===r,[u,d]=v.exports.useState(o!=null?o:""),[h,f]=v.exports.useState(!1),p=Ut(t,m=>{var x;return(x=l.itemRefCallback)===null||x===void 0?void 0:x.call(l,m,r,i)}),g=zh(),y=()=>{i||(a.onValueChange(r),a.onOpenChange(!1))};return v.exports.createElement(blt,{scope:n,value:r,disabled:i,textId:g,isSelected:c,onItemTextChange:v.exports.useCallback(m=>{d(x=>{var b;return x||((b=m==null?void 0:m.textContent)!==null&&b!==void 0?b:"").trim()})},[])},v.exports.createElement(xv.ItemSlot,{scope:n,value:r,disabled:i,textValue:u},v.exports.createElement($t.div,rt({role:"option","aria-labelledby":g,"data-highlighted":h?"":void 0,"aria-selected":c&&h,"data-state":c?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1},s,{ref:p,onFocus:Dt(s.onFocus,()=>f(!0)),onBlur:Dt(s.onBlur,()=>f(!1)),onPointerUp:Dt(s.onPointerUp,y),onPointerMove:Dt(s.onPointerMove,m=>{if(i){var x;(x=l.onItemLeave)===null||x===void 0||x.call(l)}else m.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Dt(s.onPointerLeave,m=>{if(m.currentTarget===document.activeElement){var x;(x=l.onItemLeave)===null||x===void 0||x.call(l)}}),onKeyDown:Dt(s.onKeyDown,m=>{var x;((x=l.searchRef)===null||x===void 0?void 0:x.current)!==""&&m.key===" "||(slt.includes(m.key)&&y(),m.key===" "&&m.preventDefault())})}))))}),ap="SelectItemText",WI=v.exports.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,...o}=e,s=_c(ap,n),a=wc(ap,n),l=HI(ap,n),c=dlt(ap,n),[u,d]=v.exports.useState(null),h=Ut(t,m=>d(m),l.onItemTextChange,m=>{var x;return(x=a.itemTextRefCallback)===null||x===void 0?void 0:x.call(a,m,l.value,l.disabled)}),f=u==null?void 0:u.textContent,p=v.exports.useMemo(()=>v.exports.createElement("option",{key:l.value,value:l.value,disabled:l.disabled},f),[l.disabled,l.value,f]),{onNativeOptionAdd:g,onNativeOptionRemove:y}=c;return Fn(()=>(g(p),()=>y(p)),[g,y,p]),v.exports.createElement(v.exports.Fragment,null,v.exports.createElement($t.span,rt({id:l.textId},o,{ref:h})),l.isSelected&&s.valueNode&&!s.valueNodeHasChildren?Vn.exports.createPortal(o.children,s.valueNode):null)}),_lt="SelectItemIndicator",YI=v.exports.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return HI(_lt,n).isSelected?v.exports.createElement($t.span,rt({"aria-hidden":!0},r,{ref:t})):null}),wlt="SelectScrollUpButton",GI=v.exports.forwardRef((e,t)=>{const n=wc(wlt,e.__scopeSelect),[r,i]=v.exports.useState(!1),o=Ut(t,n.onScrollButtonChange);return Fn(()=>{if(n.viewport&&n.isPositioned){let s=function(){const l=a.scrollTop>0;i(l)};const a=n.viewport;return s(),a.addEventListener("scroll",s),()=>a.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),r?v.exports.createElement(XI,rt({},e,{ref:o,onAutoScroll:()=>{const{viewport:s,selectedItem:a}=n;s&&a&&(s.scrollTop=s.scrollTop-a.offsetHeight)}})):null}),Alt="SelectScrollDownButton",qI=v.exports.forwardRef((e,t)=>{const n=wc(Alt,e.__scopeSelect),[r,i]=v.exports.useState(!1),o=Ut(t,n.onScrollButtonChange);return Fn(()=>{if(n.viewport&&n.isPositioned){let s=function(){const l=a.scrollHeight-a.clientHeight,c=Math.ceil(a.scrollTop)<l;i(c)};const a=n.viewport;return s(),a.addEventListener("scroll",s),()=>a.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),r?v.exports.createElement(XI,rt({},e,{ref:o,onAutoScroll:()=>{const{viewport:s,selectedItem:a}=n;s&&a&&(s.scrollTop=s.scrollTop+a.offsetHeight)}})):null}),XI=v.exports.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...i}=e,o=wc("SelectScrollButton",n),s=v.exports.useRef(null),a=y2(n),l=v.exports.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return v.exports.useEffect(()=>()=>l(),[l]),Fn(()=>{var c;const u=a().find(d=>d.ref.current===document.activeElement);u==null||(c=u.ref.current)===null||c===void 0||c.scrollIntoView({block:"nearest"})},[a]),v.exports.createElement($t.div,rt({"aria-hidden":!0},i,{ref:t,style:{flexShrink:0,...i.style},onPointerMove:Dt(i.onPointerMove,()=>{var c;(c=o.onItemLeave)===null||c===void 0||c.call(o),s.current===null&&(s.current=window.setInterval(r,50))}),onPointerLeave:Dt(i.onPointerLeave,()=>{l()})}))}),QI=v.exports.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return v.exports.createElement($t.div,rt({"aria-hidden":!0},r,{ref:t}))}),KI=v.exports.forwardRef((e,t)=>{const{value:n,...r}=e,i=v.exports.useRef(null),o=Ut(t,i),s=XA(n);return v.exports.useEffect(()=>{const a=i.current,l=window.HTMLSelectElement.prototype,c=Object.getOwnPropertyDescriptor(l,"value").set;if(s!==n&&c){const u=new Event("change",{bubbles:!0});c.call(a,n),a.dispatchEvent(u)}},[s,n]),v.exports.createElement(Aat,{asChild:!0},v.exports.createElement("select",rt({},r,{ref:o,defaultValue:n})))});KI.displayName="BubbleSelect";function ZI(e){const t=as(e),n=v.exports.useRef(""),r=v.exports.useRef(0),i=v.exports.useCallback(s=>{const a=n.current+s;t(a),function l(c){n.current=c,window.clearTimeout(r.current),c!==""&&(r.current=window.setTimeout(()=>l(""),1e3))}(a)},[t]),o=v.exports.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return v.exports.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,o]}function JI(e,t,n){const r=t.length>1&&Array.from(t).every(a=>a===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let o=Slt(e,Math.max(i,0));r.length===1&&(o=o.filter(a=>a!==n));const s=o.find(a=>a.textValue.toLowerCase().startsWith(r.toLowerCase()));return s!==n?s:void 0}function Slt(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const Elt=DI,t9=LI,Clt=II,klt=bv,e9=NI,n9=FI,r9=BI,Tlt=VI,Mlt=jI,i9=UI,o9=WI,s9=YI,$lt=GI,Plt=qI,Olt=QI,Rlt=Object.freeze(Object.defineProperty({__proto__:null,createSelectScope:llt,Select:DI,SelectTrigger:LI,SelectValue:II,SelectIcon:bv,SelectPortal:NI,SelectContent:FI,SelectViewport:BI,SelectGroup:VI,SelectLabel:jI,SelectItem:UI,SelectItemText:WI,SelectItemIndicator:YI,SelectScrollUpButton:GI,SelectScrollDownButton:qI,SelectSeparator:QI,Root:Elt,Trigger:t9,Value:Clt,Icon:klt,Portal:e9,Content:n9,Viewport:r9,Group:Tlt,Label:Mlt,Item:i9,ItemText:o9,ItemIndicator:s9,ScrollUpButton:$lt,ScrollDownButton:Plt,Separator:Olt},Symbol.toStringTag,{value:"Module"})),Dlt=e=>O("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:O("g",{clipPath:"url(#clip0_17_2062)",children:O("path",{d:"M7.41 8.58997L12 13.17L16.59 8.58997L18 9.99997L12 16L6 9.99997L7.41 8.58997Z"})})}),Llt=e=>O("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:O("g",{clipPath:"url(#clip0_17_4631)",children:O("path",{d:"M9.00016 16.17L4.83016 12L3.41016 13.41L9.00016 19L21.0002 6.99997L19.5902 5.58997L9.00016 16.17Z"})})}),a9=z(t9)`
|
|
525
|
+
display: inline-flex;
|
|
526
|
+
align-items: center;
|
|
527
|
+
justify-content: space-between;
|
|
528
|
+
background-color: ${L["--ll-color-background"]};
|
|
529
|
+
border-radius: ${L["--ll-border-radius-small"]};
|
|
530
|
+
border: 1px solid ${L["--ll-color-border"]};
|
|
531
|
+
color: ${L["--ll-color-on-background-variant1"]};
|
|
532
|
+
padding: ${L["--ll-spacing-xx-small"]} ${L["--ll-spacing-x-small"]}
|
|
533
|
+
${L["--ll-spacing-xx-small"]} ${L["--ll-spacing-small"]};
|
|
534
|
+
flex: 1;
|
|
535
|
+
height: ${({size:e})=>e==="medium"?"32px":"40px"};
|
|
536
|
+
font-size: ${({size:e})=>e==="medium"?L["--ll-font-size-p"]:L["--ll-font-size-h6"]};
|
|
537
|
+
`,Ilt=z(bv)`
|
|
538
|
+
margin-left: ${L["--ll-spacing-x-small"]};
|
|
539
|
+
`,l9=z(n9)`
|
|
540
|
+
overflow: hidden;
|
|
541
|
+
background-color: ${L["--ll-color-background"]};
|
|
542
|
+
border-radius: ${L["--ll-border-radius-small"]};
|
|
543
|
+
box-shadow: ${L["--ll-shadow-medium"]};
|
|
544
|
+
min-width: 120px;
|
|
545
|
+
z-index: 2;
|
|
546
|
+
font-size: ${({size:e})=>e==="medium"?L["--ll-font-size-p"]:L["--ll-font-size-h6"]};
|
|
547
|
+
`,c9=z(i9)`
|
|
548
|
+
font-family: ${L["--ll-font-family"]};
|
|
549
|
+
font-size: inherit;
|
|
550
|
+
padding: ${L["--ll-spacing-xx-small"]} ${L["--ll-spacing-x-large"]}
|
|
551
|
+
${L["--ll-spacing-xx-small"]} ${L["--ll-spacing-large"]};
|
|
552
|
+
outline: none;
|
|
553
|
+
border-radius: ${L["--ll-border-radius-small"]};
|
|
554
|
+
position: relative;
|
|
555
|
+
color: ${L["--ll-color-on-surface-variant1"]};
|
|
556
|
+
cursor: default;
|
|
557
|
+
|
|
558
|
+
&[data-highlighted] {
|
|
559
|
+
background-color: ${L["--ll-color-primary"]};
|
|
560
|
+
color: ${L["--ll-color-on-primary"]};
|
|
561
|
+
}
|
|
562
|
+
`,u9=z(s9)`
|
|
563
|
+
position: absolute;
|
|
564
|
+
left: 0;
|
|
565
|
+
height: 100%;
|
|
566
|
+
left: 0;
|
|
567
|
+
bottom: 0;
|
|
568
|
+
width: ${L["--ll-spacing-large"]};
|
|
569
|
+
display: inline-flex;
|
|
570
|
+
align-items: center;
|
|
571
|
+
justify-content: center;
|
|
572
|
+
`,d9=z(r9)`
|
|
573
|
+
font-size: inherit;
|
|
574
|
+
padding: ${L["--ll-spacing-base-unit"]};
|
|
575
|
+
`,Nlt=z(e9)`
|
|
576
|
+
z-index: 1;
|
|
577
|
+
`,Flt=Object.freeze(Object.defineProperty({__proto__:null,Trigger:a9,SelectIcon:Ilt,Content:l9,Item:c9,ItemIndicator:u9,Viewport:d9,Portal:Nlt},Symbol.toStringTag,{value:"Module"})),zlt=({size:e="medium",children:t,...n})=>fr(a9,{size:e,...n,children:[t,at(bv,{children:at(GA,{SVGElement:Dlt,fill:L["--ll-color-on-background-variant1"],height:20})})]}),Blt=({size:e="medium",children:t,...n})=>at(l9,{size:e,...n,children:at(d9,{children:t})}),Vlt=({children:e,...t})=>fr(c9,{...t,children:[at(o9,{children:e}),at(u9,{children:at(GA,{SVGElement:Llt,fill:"currentColor",height:12})})]}),{Root:jlt}=Rlt,{Portal:Hlt}=Flt,zEt=Object.freeze(Object.defineProperty({__proto__:null,Root:jlt,Trigger:zlt,Content:Blt,Item:Vlt,Portal:Hlt},Symbol.toStringTag,{value:"Module"}));function Ac(e){return e.split("-")[0]}function _v(e){return e.split("-")[1]}function Sc(e){return["top","bottom"].includes(Ac(e))?"x":"y"}function b2(e){return e==="y"?"height":"width"}function XT(e,t,n){let{reference:r,floating:i}=e;const o=r.x+r.width/2-i.width/2,s=r.y+r.height/2-i.height/2,a=Sc(t),l=b2(a),c=r[l]/2-i[l]/2,u=Ac(t),d=a==="x";let h;switch(u){case"top":h={x:o,y:r.y-i.height};break;case"bottom":h={x:o,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:s};break;case"left":h={x:r.x-i.width,y:s};break;default:h={x:r.x,y:r.y}}switch(_v(t)){case"start":h[a]-=c*(n&&d?-1:1);break;case"end":h[a]+=c*(n&&d?-1:1);break}return h}const Ult=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,a=await(s.isRTL==null?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:u}=XT(l,r,a),d=r,h={},f=0;for(let p=0;p<o.length;p++){const{name:g,fn:y}=o[p],{x:m,y:x,data:b,reset:_}=await y({x:c,y:u,initialPlacement:r,placement:d,strategy:i,middlewareData:h,rects:l,platform:s,elements:{reference:e,floating:t}});if(c=m!=null?m:c,u=x!=null?x:u,h={...h,[g]:{...h[g],...b}},_&&f<=50){f++,typeof _=="object"&&(_.placement&&(d=_.placement),_.rects&&(l=_.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):_.rects),{x:c,y:u}=XT(l,d,a)),p=-1;continue}}return{x:c,y:u,placement:d,strategy:i,middlewareData:h}};function Wlt(e){return{top:0,right:0,bottom:0,left:0,...e}}function h9(e){return typeof e!="number"?Wlt(e):{top:e,right:e,bottom:e,left:e}}function Vm(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function jm(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:h=!1,padding:f=0}=t,p=h9(f),g=a[h?d==="floating"?"reference":"floating":d],y=Vm(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(g)))==null||n?g:g.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),m=Vm(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:d==="floating"?{...s.floating,x:r,y:i}:s.reference,offsetParent:await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),strategy:l}):s[d]);return{top:y.top-m.top+p.top,bottom:m.bottom-y.bottom+p.bottom,left:y.left-m.left+p.left,right:m.right-y.right+p.right}}const Ylt=Math.min,Glt=Math.max;function e_(e,t,n){return Glt(e,Ylt(t,n))}const QT=e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:r=0}=e!=null?e:{},{x:i,y:o,placement:s,rects:a,platform:l}=t;if(n==null)return{};const c=h9(r),u={x:i,y:o},d=Sc(s),h=_v(s),f=b2(d),p=await l.getDimensions(n),g=d==="y"?"top":"left",y=d==="y"?"bottom":"right",m=a.reference[f]+a.reference[d]-u[d]-a.floating[f],x=u[d]-a.reference[d],b=await(l.getOffsetParent==null?void 0:l.getOffsetParent(n));let _=b?d==="y"?b.clientHeight||0:b.clientWidth||0:0;_===0&&(_=a.floating[f]);const w=m/2-x/2,A=c[g],S=_-p[f]-c[y],E=_/2-p[f]/2+w,k=e_(A,E,S),C=(h==="start"?c[g]:c[y])>0&&E!==k&&a.reference[f]<=a.floating[f]?E<A?A-E:S-E:0;return{[d]:u[d]-C,data:{[d]:k,centerOffset:E-k}}}}),qlt={left:"right",right:"left",bottom:"top",top:"bottom"};function Hm(e){return e.replace(/left|right|bottom|top/g,t=>qlt[t])}function Xlt(e,t,n){n===void 0&&(n=!1);const r=_v(e),i=Sc(e),o=b2(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=Hm(s)),{main:s,cross:Hm(s)}}const Qlt={start:"end",end:"start"};function KT(e){return e.replace(/start|end/g,t=>Qlt[t])}const Klt=["top","right","bottom","left"];function Zlt(e){const t=Hm(e);return[KT(e),t,KT(t)]}const Jlt=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:i,rects:o,initialPlacement:s,platform:a,elements:l}=t,{mainAxis:c=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:h="bestFit",flipAlignment:f=!0,...p}=e,g=Ac(r),y=d||(g===s||!f?[Hm(s)]:Zlt(s)),m=[s,...y],x=await jm(t,p),b=[];let _=((n=i.flip)==null?void 0:n.overflows)||[];if(c&&b.push(x[g]),u){const{main:E,cross:k}=Xlt(r,o,await(a.isRTL==null?void 0:a.isRTL(l.floating)));b.push(x[E],x[k])}if(_=[..._,{placement:r,overflows:b}],!b.every(E=>E<=0)){var w,A;const E=((w=(A=i.flip)==null?void 0:A.index)!=null?w:0)+1,k=m[E];if(k)return{data:{index:E,overflows:_},reset:{placement:k}};let C="bottom";switch(h){case"bestFit":{var S;const T=(S=_.map($=>[$,$.overflows.filter(I=>I>0).reduce((I,N)=>I+N,0)]).sort(($,I)=>$[1]-I[1])[0])==null?void 0:S[0].placement;T&&(C=T);break}case"initialPlacement":C=s;break}if(r!==C)return{reset:{placement:C}}}return{}}}};function ZT(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function JT(e){return Klt.some(t=>e[t]>=0)}const tct=function(e){let{strategy:t="referenceHidden",...n}=e===void 0?{}:e;return{name:"hide",async fn(r){const{rects:i}=r;switch(t){case"referenceHidden":{const o=await jm(r,{...n,elementContext:"reference"}),s=ZT(o,i.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:JT(s)}}}case"escaped":{const o=await jm(r,{...n,altBoundary:!0}),s=ZT(o,i.floating);return{data:{escapedOffsets:s,escaped:JT(s)}}}default:return{}}}}};async function ect(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=Ac(n),a=_v(n),l=Sc(n)==="x",c=["left","top"].includes(s)?-1:1,u=o&&l?-1:1,d=typeof t=="function"?t(e):t;let{mainAxis:h,crossAxis:f,alignmentAxis:p}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&typeof p=="number"&&(f=a==="end"?p*-1:p),l?{x:f*u,y:h*c}:{x:h*c,y:f*u}}const nct=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,i=await ect(t,e);return{x:n+i.x,y:r+i.y,data:i}}}};function f9(e){return e==="x"?"y":"x"}const rct=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:a={fn:y=>{let{x:m,y:x}=y;return{x:m,y:x}}},...l}=e,c={x:n,y:r},u=await jm(t,l),d=Sc(Ac(i)),h=f9(d);let f=c[d],p=c[h];if(o){const y=d==="y"?"top":"left",m=d==="y"?"bottom":"right",x=f+u[y],b=f-u[m];f=e_(x,f,b)}if(s){const y=h==="y"?"top":"left",m=h==="y"?"bottom":"right",x=p+u[y],b=p-u[m];p=e_(x,p,b)}const g=a.fn({...t,[d]:f,[h]:p});return{...g,data:{x:g.x-n,y:g.y-r}}}}},ict=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:o,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=e,u={x:n,y:r},d=Sc(i),h=f9(d);let f=u[d],p=u[h];const g=typeof a=="function"?a({...o,placement:i}):a,y=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const w=d==="y"?"height":"width",A=o.reference[d]-o.floating[w]+y.mainAxis,S=o.reference[d]+o.reference[w]-y.mainAxis;f<A?f=A:f>S&&(f=S)}if(c){var m,x,b,_;const w=d==="y"?"width":"height",A=["top","left"].includes(Ac(i)),S=o.reference[h]-o.floating[w]+(A&&(m=(x=s.offset)==null?void 0:x[h])!=null?m:0)+(A?0:y.crossAxis),E=o.reference[h]+o.reference[w]+(A?0:(b=(_=s.offset)==null?void 0:_[h])!=null?b:0)-(A?y.crossAxis:0);p<S?p=S:p>E&&(p=E)}return{[d]:f,[h]:p}}}};function p9(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function ro(e){if(e==null)return window;if(!p9(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function Yh(e){return ro(e).getComputedStyle(e)}function Ki(e){return p9(e)?"":e?(e.nodeName||"").toLowerCase():""}function g9(){const e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(t=>t.brand+"/"+t.version).join(" "):navigator.userAgent}function fi(e){return e instanceof ro(e).HTMLElement}function us(e){return e instanceof ro(e).Element}function oct(e){return e instanceof ro(e).Node}function _2(e){if(typeof ShadowRoot>"u")return!1;const t=ro(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function wv(e){const{overflow:t,overflowX:n,overflowY:r}=Yh(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function sct(e){return["table","td","th"].includes(Ki(e))}function m9(e){const t=/firefox/i.test(g9()),n=Yh(e);return n.transform!=="none"||n.perspective!=="none"||n.contain==="paint"||["transform","perspective"].includes(n.willChange)||t&&n.willChange==="filter"||t&&(n.filter?n.filter!=="none":!1)}function v9(){return!/^((?!chrome|android).)*safari/i.test(g9())}const tM=Math.min,id=Math.max,Um=Math.round;function Zi(e,t,n){var r,i,o,s;t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect();let l=1,c=1;t&&fi(e)&&(l=e.offsetWidth>0&&Um(a.width)/e.offsetWidth||1,c=e.offsetHeight>0&&Um(a.height)/e.offsetHeight||1);const u=us(e)?ro(e):window,d=!v9()&&n,h=(a.left+(d&&(r=(i=u.visualViewport)==null?void 0:i.offsetLeft)!=null?r:0))/l,f=(a.top+(d&&(o=(s=u.visualViewport)==null?void 0:s.offsetTop)!=null?o:0))/c,p=a.width/l,g=a.height/c;return{width:p,height:g,top:f,right:h+p,bottom:f+g,left:h,x:h,y:f}}function xs(e){return((oct(e)?e.ownerDocument:e.document)||window.document).documentElement}function Av(e){return us(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function y9(e){return Zi(xs(e)).left+Av(e).scrollLeft}function act(e){const t=Zi(e);return Um(t.width)!==e.offsetWidth||Um(t.height)!==e.offsetHeight}function lct(e,t,n){const r=fi(t),i=xs(t),o=Zi(e,r&&act(t),n==="fixed");let s={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(r||!r&&n!=="fixed")if((Ki(t)!=="body"||wv(i))&&(s=Av(t)),fi(t)){const l=Zi(t,!0);a.x=l.x+t.clientLeft,a.y=l.y+t.clientTop}else i&&(a.x=y9(i));return{x:o.left+s.scrollLeft-a.x,y:o.top+s.scrollTop-a.y,width:o.width,height:o.height}}function x9(e){return Ki(e)==="html"?e:e.assignedSlot||e.parentNode||(_2(e)?e.host:null)||xs(e)}function eM(e){return!fi(e)||getComputedStyle(e).position==="fixed"?null:e.offsetParent}function cct(e){let t=x9(e);for(_2(t)&&(t=t.host);fi(t)&&!["html","body"].includes(Ki(t));){if(m9(t))return t;t=t.parentNode}return null}function n_(e){const t=ro(e);let n=eM(e);for(;n&&sct(n)&&getComputedStyle(n).position==="static";)n=eM(n);return n&&(Ki(n)==="html"||Ki(n)==="body"&&getComputedStyle(n).position==="static"&&!m9(n))?t:n||cct(e)||t}function nM(e){if(fi(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=Zi(e);return{width:t.width,height:t.height}}function uct(e){let{rect:t,offsetParent:n,strategy:r}=e;const i=fi(n),o=xs(n);if(n===o)return t;let s={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if((i||!i&&r!=="fixed")&&((Ki(n)!=="body"||wv(o))&&(s=Av(n)),fi(n))){const l=Zi(n,!0);a.x=l.x+n.clientLeft,a.y=l.y+n.clientTop}return{...t,x:t.x-s.scrollLeft+a.x,y:t.y-s.scrollTop+a.y}}function dct(e,t){const n=ro(e),r=xs(e),i=n.visualViewport;let o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;const c=v9();(c||!c&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a,y:l}}function hct(e){var t;const n=xs(e),r=Av(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=id(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=id(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0);let a=-r.scrollLeft+y9(e);const l=-r.scrollTop;return Yh(i||n).direction==="rtl"&&(a+=id(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:a,y:l}}function b9(e){const t=x9(e);return["html","body","#document"].includes(Ki(t))?e.ownerDocument.body:fi(t)&&wv(t)?t:b9(t)}function Wm(e,t){var n;t===void 0&&(t=[]);const r=b9(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=ro(r),s=i?[o].concat(o.visualViewport||[],wv(r)?r:[]):r,a=t.concat(s);return i?a:a.concat(Wm(s))}function fct(e,t){const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&_2(n)){let r=t;do{if(r&&e===r)return!0;r=r.parentNode||r.host}while(r)}return!1}function pct(e,t){const n=Zi(e,!1,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft;return{top:r,left:i,x:i,y:r,right:i+e.clientWidth,bottom:r+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}function rM(e,t,n){return t==="viewport"?Vm(dct(e,n)):us(t)?pct(t,n):Vm(hct(xs(e)))}function gct(e){const t=Wm(e),n=["absolute","fixed"].includes(Yh(e).position)&&fi(e)?n_(e):e;return us(n)?t.filter(r=>us(r)&&fct(r,n)&&Ki(r)!=="body"):[]}function mct(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[...n==="clippingAncestors"?gct(t):[].concat(n),r],s=o[0],a=o.reduce((l,c)=>{const u=rM(t,c,i);return l.top=id(u.top,l.top),l.right=tM(u.right,l.right),l.bottom=tM(u.bottom,l.bottom),l.left=id(u.left,l.left),l},rM(t,s,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}const vct={getClippingRect:mct,convertOffsetParentRelativeRectToViewportRelativeRect:uct,isElement:us,getDimensions:nM,getOffsetParent:n_,getDocumentElement:xs,getElementRects:e=>{let{reference:t,floating:n,strategy:r}=e;return{reference:lct(t,n_(n),r),floating:{...nM(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Yh(e).direction==="rtl"};function yct(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=!0,animationFrame:a=!1}=r,l=i&&!a,c=o&&!a,u=l||c?[...us(e)?Wm(e):[],...Wm(t)]:[];u.forEach(g=>{l&&g.addEventListener("scroll",n,{passive:!0}),c&&g.addEventListener("resize",n)});let d=null;if(s){let g=!0;d=new ResizeObserver(()=>{g||n(),g=!1}),us(e)&&!a&&d.observe(e),d.observe(t)}let h,f=a?Zi(e):null;a&&p();function p(){const g=Zi(e);f&&(g.x!==f.x||g.y!==f.y||g.width!==f.width||g.height!==f.height)&&n(),f=g,h=requestAnimationFrame(p)}return n(),()=>{var g;u.forEach(y=>{l&&y.removeEventListener("scroll",n),c&&y.removeEventListener("resize",n)}),(g=d)==null||g.disconnect(),d=null,a&&cancelAnimationFrame(h)}}const xct=(e,t,n)=>Ult(e,t,{platform:vct,...n});var r_=typeof document<"u"?v.exports.useLayoutEffect:v.exports.useEffect;function i_(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!i_(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!i_(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function bct(e){const t=v.exports.useRef(e);return r_(()=>{t.current=e}),t}function _ct(e){let{middleware:t,placement:n="bottom",strategy:r="absolute",whileElementsMounted:i}=e===void 0?{}:e;const o=v.exports.useRef(null),s=v.exports.useRef(null),a=bct(i),l=v.exports.useRef(null),[c,u]=v.exports.useState({x:null,y:null,strategy:r,placement:n,middlewareData:{}}),[d,h]=v.exports.useState(t);i_(d==null?void 0:d.map(b=>{let{options:_}=b;return _}),t==null?void 0:t.map(b=>{let{options:_}=b;return _}))||h(t);const f=v.exports.useCallback(()=>{!o.current||!s.current||xct(o.current,s.current,{middleware:d,placement:n,strategy:r}).then(b=>{p.current&&Vn.exports.flushSync(()=>{u(b)})})},[d,n,r]);r_(()=>{p.current&&f()},[f]);const p=v.exports.useRef(!1);r_(()=>(p.current=!0,()=>{p.current=!1}),[]);const g=v.exports.useCallback(()=>{if(typeof l.current=="function"&&(l.current(),l.current=null),o.current&&s.current)if(a.current){const b=a.current(o.current,s.current,f);l.current=b}else f()},[f,a]),y=v.exports.useCallback(b=>{o.current=b,g()},[g]),m=v.exports.useCallback(b=>{s.current=b,g()},[g]),x=v.exports.useMemo(()=>({reference:o,floating:s}),[]);return v.exports.useMemo(()=>({...c,update:f,refs:x,reference:y,floating:m}),[c,f,x,y,m])}const wct=e=>{const{element:t,padding:n}=e;function r(i){return Object.prototype.hasOwnProperty.call(i,"current")}return{name:"arrow",options:e,fn(i){return r(t)?t.current!=null?QT({element:t.current,padding:n}).fn(i):{}:t?QT({element:t,padding:n}).fn(i):{}}}},Act=v.exports.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...o}=e;return v.exports.createElement($t.svg,rt({},o,{ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:v.exports.createElement("polygon",{points:"0,0 30,0 15,10"}))}),Sct=Act,_9="Popper",[w2,w9]=bc(_9),[Ect,A9]=w2(_9),Cct=e=>{const{__scopePopper:t,children:n}=e,[r,i]=v.exports.useState(null);return v.exports.createElement(Ect,{scope:t,anchor:r,onAnchorChange:i},n)},kct="PopperAnchor",Tct=v.exports.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,o=A9(kct,n),s=v.exports.useRef(null),a=Ut(t,s);return v.exports.useEffect(()=>{o.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:v.exports.createElement($t.div,rt({},i,{ref:a}))}),Ym="PopperContent",[Mct,$ct]=w2(Ym),[Pct,Oct]=w2(Ym,{hasParent:!1,positionUpdateFns:new Set}),Rct=v.exports.forwardRef((e,t)=>{var n,r,i,o,s,a,l,c;const{__scopePopper:u,side:d="bottom",sideOffset:h=0,align:f="center",alignOffset:p=0,arrowPadding:g=0,collisionBoundary:y=[],collisionPadding:m=0,sticky:x="partial",hideWhenDetached:b=!1,avoidCollisions:_=!0,...w}=e,A=A9(Ym,u),[S,E]=v.exports.useState(null),k=Ut(t,ke=>E(ke)),[C,T]=v.exports.useState(null),$=QA(C),I=(n=$==null?void 0:$.width)!==null&&n!==void 0?n:0,N=(r=$==null?void 0:$.height)!==null&&r!==void 0?r:0,D=d+(f!=="center"?"-"+f:""),Y=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},Q=Array.isArray(y)?y:[y],F=Q.length>0,W={padding:Y,boundary:Q.filter(Fct),altBoundary:F},{reference:P,floating:G,strategy:U,x:B,y:R,placement:V,middlewareData:K,update:st}=_ct({strategy:"fixed",placement:D,whileElementsMounted:yct,middleware:[nct({mainAxis:h+N,alignmentAxis:p}),_?rct({mainAxis:!0,crossAxis:!1,limiter:x==="partial"?ict():void 0,...W}):void 0,C?wct({element:C,padding:g}):void 0,_?Jlt({...W}):void 0,zct({arrowWidth:I,arrowHeight:N}),b?tct({strategy:"referenceHidden"}):void 0].filter(Nct)});Fn(()=>{P(A.anchor)},[P,A.anchor]);const Yt=B!==null&&R!==null,[ve,sr]=S9(V),wr=(i=K.arrow)===null||i===void 0?void 0:i.x,hn=(o=K.arrow)===null||o===void 0?void 0:o.y,Wr=((s=K.arrow)===null||s===void 0?void 0:s.centerOffset)!==0,[ar,lt]=v.exports.useState();Fn(()=>{S&<(window.getComputedStyle(S).zIndex)},[S]);const{hasParent:se,positionUpdateFns:nt}=Oct(Ym,u),St=!se;v.exports.useLayoutEffect(()=>{if(!St)return nt.add(st),()=>{nt.delete(st)}},[St,nt,st]),v.exports.useLayoutEffect(()=>{St&&Yt&&Array.from(nt).reverse().forEach(ke=>requestAnimationFrame(ke))},[St,Yt,nt]);const Gt={"data-side":ve,"data-align":sr,...w,ref:k,style:{...w.style,animation:Yt?void 0:"none",opacity:(a=K.hide)!==null&&a!==void 0&&a.referenceHidden?0:void 0}};return v.exports.createElement("div",{ref:G,"data-radix-popper-content-wrapper":"",style:{position:U,left:0,top:0,transform:Yt?`translate3d(${Math.round(B)}px, ${Math.round(R)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:ar,["--radix-popper-transform-origin"]:[(l=K.transformOrigin)===null||l===void 0?void 0:l.x,(c=K.transformOrigin)===null||c===void 0?void 0:c.y].join(" ")}},v.exports.createElement(Mct,{scope:u,placedSide:ve,onArrowChange:T,arrowX:wr,arrowY:hn,shouldHideArrow:Wr},St?v.exports.createElement(Pct,{scope:u,hasParent:!0,positionUpdateFns:nt},v.exports.createElement($t.div,Gt)):v.exports.createElement($t.div,Gt)))}),Dct="PopperArrow",Lct={top:"bottom",right:"left",bottom:"top",left:"right"},Ict=v.exports.forwardRef(function(e,t){const{__scopePopper:n,...r}=e,i=$ct(Dct,n),o=Lct[i.placedSide];return v.exports.createElement("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0}},v.exports.createElement(Sct,rt({},r,{ref:t,style:{...r.style,display:"block"}})))});function Nct(e){return e!==void 0}function Fct(e){return e!==null}const zct=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,o,s;const{placement:a,rects:l,middlewareData:c}=t,u=((n=c.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,d=u?0:e.arrowWidth,h=u?0:e.arrowHeight,[f,p]=S9(a),g={start:"0%",center:"50%",end:"100%"}[p],y=((r=(i=c.arrow)===null||i===void 0?void 0:i.x)!==null&&r!==void 0?r:0)+d/2,m=((o=(s=c.arrow)===null||s===void 0?void 0:s.y)!==null&&o!==void 0?o:0)+h/2;let x="",b="";return f==="bottom"?(x=u?g:`${y}px`,b=`${-h}px`):f==="top"?(x=u?g:`${y}px`,b=`${l.floating.height+h}px`):f==="right"?(x=`${-h}px`,b=u?g:`${m}px`):f==="left"&&(x=`${l.floating.width+h}px`,b=u?g:`${m}px`),{data:{x,y:b}}}});function S9(e){const[t,n="center"]=e.split("-");return[t,n]}const Bct=Cct,E9=Tct,Vct=Rct,jct=Ict;function Hct(e,t){return v.exports.useReducer((n,r)=>{const i=t[n][r];return i!=null?i:n},e)}const A2=e=>{const{present:t,children:n}=e,r=Uct(t),i=typeof n=="function"?n({present:r.isPresent}):v.exports.Children.only(n),o=Ut(r.ref,i.ref);return typeof n=="function"||r.isPresent?v.exports.cloneElement(i,{ref:o}):null};A2.displayName="Presence";function Uct(e){const[t,n]=v.exports.useState(),r=v.exports.useRef({}),i=v.exports.useRef(e),o=v.exports.useRef("none"),s=e?"mounted":"unmounted",[a,l]=Hct(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.exports.useEffect(()=>{const c=lp(r.current);o.current=a==="mounted"?c:"none"},[a]),Fn(()=>{const c=r.current,u=i.current;if(u!==e){const d=o.current,h=lp(c);e?l("MOUNT"):h==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&d!==h?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),Fn(()=>{if(t){const c=d=>{const h=lp(r.current).includes(d.animationName);d.target===t&&h&&Vn.exports.flushSync(()=>l("ANIMATION_END"))},u=d=>{d.target===t&&(o.current=lp(r.current))};return t.addEventListener("animationstart",u),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{t.removeEventListener("animationstart",u),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:v.exports.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function lp(e){return(e==null?void 0:e.animationName)||"none"}const C9="Popover",[k9,Wct]=bc(C9,[w9]),Gh=w9(),[Yct,bs]=k9(C9),T9=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:s=!1}=e,a=Gh(t),l=v.exports.useRef(null),[c,u]=v.exports.useState(!1),[d=!1,h]=Jd({prop:r,defaultProp:i,onChange:o});return v.exports.createElement(Bct,a,v.exports.createElement(Yct,{scope:t,contentId:zh(),triggerRef:l,open:d,onOpenChange:h,onOpenToggle:v.exports.useCallback(()=>h(f=>!f),[h]),hasCustomAnchor:c,onCustomAnchorAdd:v.exports.useCallback(()=>u(!0),[]),onCustomAnchorRemove:v.exports.useCallback(()=>u(!1),[]),modal:s},n))},Gct="PopoverAnchor",M9=v.exports.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,i=bs(Gct,n),o=Gh(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:a}=i;return v.exports.useEffect(()=>(s(),()=>a()),[s,a]),v.exports.createElement(E9,rt({},o,r,{ref:t}))}),qct="PopoverTrigger",$9=v.exports.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,i=bs(qct,n),o=Gh(n),s=Ut(t,i.triggerRef),a=v.exports.createElement($t.button,rt({type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":N9(i.open)},r,{ref:s,onClick:Dt(e.onClick,i.onOpenToggle)}));return i.hasCustomAnchor?a:v.exports.createElement(E9,rt({asChild:!0},o),a)}),P9="PopoverPortal",[Xct,Qct]=k9(P9,{forceMount:void 0}),O9=e=>{const{__scopePopover:t,forceMount:n,children:r,container:i}=e,o=bs(P9,t);return v.exports.createElement(Xct,{scope:t,forceMount:n},v.exports.createElement(A2,{present:n||o.open},v.exports.createElement(SI,{asChild:!0,container:i},r)))},uh="PopoverContent",R9=v.exports.forwardRef((e,t)=>{const n=Qct(uh,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,o=bs(uh,e.__scopePopover);return v.exports.createElement(A2,{present:r||o.open},o.modal?v.exports.createElement(Kct,rt({},i,{ref:t})):v.exports.createElement(Zct,rt({},i,{ref:t})))}),Kct=v.exports.forwardRef((e,t)=>{const n=bs(uh,e.__scopePopover),r=v.exports.useRef(null),i=Ut(t,r),o=v.exports.useRef(!1);return v.exports.useEffect(()=>{const s=r.current;if(s)return EI(s)},[]),v.exports.createElement(RI,{as:ec,allowPinchZoom:!0},v.exports.createElement(D9,rt({},e,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Dt(e.onCloseAutoFocus,s=>{var a;s.preventDefault(),o.current||(a=n.triggerRef.current)===null||a===void 0||a.focus()}),onPointerDownOutside:Dt(e.onPointerDownOutside,s=>{const a=s.detail.originalEvent,l=a.button===0&&a.ctrlKey===!0,c=a.button===2||l;o.current=c},{checkForDefaultPrevented:!1}),onFocusOutside:Dt(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})))}),Zct=v.exports.forwardRef((e,t)=>{const n=bs(uh,e.__scopePopover),r=v.exports.useRef(!1);return v.exports.createElement(D9,rt({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o;if((o=e.onCloseAutoFocus)===null||o===void 0||o.call(e,i),!i.defaultPrevented){var s;r.current||(s=n.triggerRef.current)===null||s===void 0||s.focus(),i.preventDefault()}r.current=!1},onInteractOutside:i=>{var o,s;(o=e.onInteractOutside)===null||o===void 0||o.call(e,i),i.defaultPrevented||(r.current=!0);const a=i.target;!((s=n.triggerRef.current)===null||s===void 0)&&s.contains(a)&&i.preventDefault()}}))}),D9=v.exports.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:u,...d}=e,h=bs(uh,n),f=Gh(n);return _I(),v.exports.createElement(wI,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o},v.exports.createElement(xI,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:u,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:c,onDismiss:()=>h.onOpenChange(!1)},v.exports.createElement(Vct,rt({"data-state":N9(h.open),role:"dialog",id:h.contentId},f,d,{ref:t,style:{...d.style,["--radix-popover-content-transform-origin"]:"var(--radix-popper-transform-origin)"}}))))}),Jct="PopoverClose",L9=v.exports.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,i=bs(Jct,n);return v.exports.createElement($t.button,rt({type:"button"},r,{ref:t,onClick:Dt(e.onClick,()=>i.onOpenChange(!1))}))}),I9=v.exports.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,i=Gh(n);return v.exports.createElement(jct,rt({},i,r,{ref:t}))});function N9(e){return e?"open":"closed"}const tut=T9,eut=M9,F9=$9,nut=O9,z9=R9,rut=L9,B9=I9,iut=Object.freeze(Object.defineProperty({__proto__:null,createPopoverScope:Wct,Popover:T9,PopoverAnchor:M9,PopoverTrigger:$9,PopoverPortal:O9,PopoverContent:R9,PopoverClose:L9,PopoverArrow:I9,Root:tut,Anchor:eut,Trigger:F9,Portal:nut,Content:z9,Close:rut,Arrow:B9},Symbol.toStringTag,{value:"Module"})),out=z(F9)`
|
|
578
|
+
background: none;
|
|
579
|
+
border: none;
|
|
580
|
+
padding: 0;
|
|
581
|
+
`,V9=z(z9)`
|
|
582
|
+
padding: ${L["--ll-spacing-small"]};
|
|
583
|
+
background-color: ${L["--ll-color-background"]};
|
|
584
|
+
box-shadow: ${L["--ll-shadow-small"]};
|
|
585
|
+
border-radius: ${L["--ll-border-radius-small"]};
|
|
586
|
+
width: 240px;
|
|
587
|
+
`,j9=z(B9)`
|
|
588
|
+
fill: ${L["--ll-color-background"]};
|
|
589
|
+
`,sut=Object.freeze(Object.defineProperty({__proto__:null,Trigger:out,Content:V9,Arrow:j9},Symbol.toStringTag,{value:"Module"})),{Root:aut,Portal:lut}=iut,{Trigger:cut}=sut,uut=({side:e,children:t,className:n,sideOffset:r=mr*2,collisionPadding:i=mr*2})=>at(lut,{children:fr(V9,{side:e,className:n,sideOffset:r,collisionPadding:i,children:[at(j9,{}),t]})}),BEt=Object.freeze(Object.defineProperty({__proto__:null,Root:aut,Trigger:cut,Content:uut},Symbol.toStringTag,{value:"Module"}));function oc(){return oc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oc.apply(this,arguments)}var ri;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(ri||(ri={}));var Gm=function(e){return e},iM="beforeunload",dut="popstate";function hut(e){e===void 0&&(e={});var t=e,n=t.window,r=n===void 0?document.defaultView:n,i=r.history;function o(){var S=r.location,E=S.pathname,k=S.search,C=S.hash,T=i.state||{};return[T.idx,Gm({pathname:E,search:k,hash:C,state:T.usr||null,key:T.key||"default"})]}var s=null;function a(){if(s)f.call(s),s=null;else{var S=ri.Pop,E=o(),k=E[0],C=E[1];if(f.length){if(k!=null){var T=u-k;T&&(s={action:S,location:C,retry:function(){w(T*-1)}},w(T))}}else x(S)}}r.addEventListener(dut,a);var l=ri.Pop,c=o(),u=c[0],d=c[1],h=qm(),f=qm();u==null&&(u=0,i.replaceState(oc({},i.state,{idx:u}),""));function p(S){return typeof S=="string"?S:H9(S)}function g(S,E){return E===void 0&&(E=null),Gm(oc({pathname:d.pathname,hash:"",search:""},typeof S=="string"?s_(S):S,{state:E,key:o_()}))}function y(S,E){return[{usr:S.state,key:S.key,idx:E},p(S)]}function m(S,E,k){return!f.length||(f.call({action:S,location:E,retry:k}),!1)}function x(S){l=S;var E=o();u=E[0],d=E[1],h.call({action:l,location:d})}function b(S,E){var k=ri.Push,C=g(S,E);function T(){b(S,E)}if(m(k,C,T)){var $=y(C,u+1),I=$[0],N=$[1];try{i.pushState(I,"",N)}catch(D){r.location.assign(N)}x(k)}}function _(S,E){var k=ri.Replace,C=g(S,E);function T(){_(S,E)}if(m(k,C,T)){var $=y(C,u),I=$[0],N=$[1];i.replaceState(I,"",N),x(k)}}function w(S){i.go(S)}var A={get action(){return l},get location(){return d},createHref:p,push:b,replace:_,go:w,back:function(){w(-1)},forward:function(){w(1)},listen:function(E){return h.push(E)},block:function(E){var k=f.push(E);return f.length===1&&r.addEventListener(iM,sM),function(){k(),f.length||r.removeEventListener(iM,sM)}}};return A}function fut(e){e===void 0&&(e={});var t=e,n=t.initialEntries,r=n===void 0?["/"]:n,i=t.initialIndex,o=r.map(function(b){var _=Gm(oc({pathname:"/",search:"",hash:"",state:null,key:o_()},typeof b=="string"?s_(b):b));return _}),s=oM(i==null?o.length-1:i,0,o.length-1),a=ri.Pop,l=o[s],c=qm(),u=qm();function d(b){return typeof b=="string"?b:H9(b)}function h(b,_){return _===void 0&&(_=null),Gm(oc({pathname:l.pathname,search:"",hash:""},typeof b=="string"?s_(b):b,{state:_,key:o_()}))}function f(b,_,w){return!u.length||(u.call({action:b,location:_,retry:w}),!1)}function p(b,_){a=b,l=_,c.call({action:a,location:l})}function g(b,_){var w=ri.Push,A=h(b,_);function S(){g(b,_)}f(w,A,S)&&(s+=1,o.splice(s,o.length,A),p(w,A))}function y(b,_){var w=ri.Replace,A=h(b,_);function S(){y(b,_)}f(w,A,S)&&(o[s]=A,p(w,A))}function m(b){var _=oM(s+b,0,o.length-1),w=ri.Pop,A=o[_];function S(){m(b)}f(w,A,S)&&(s=_,p(w,A))}var x={get index(){return s},get action(){return a},get location(){return l},createHref:d,push:g,replace:y,go:m,back:function(){m(-1)},forward:function(){m(1)},listen:function(_){return c.push(_)},block:function(_){return u.push(_)}};return x}function oM(e,t,n){return Math.min(Math.max(e,t),n)}function sM(e){e.preventDefault(),e.returnValue=""}function qm(){var e=[];return{get length(){return e.length},push:function(n){return e.push(n),function(){e=e.filter(function(r){return r!==n})}},call:function(n){e.forEach(function(r){return r&&r(n)})}}}function o_(){return Math.random().toString(36).substr(2,8)}function H9(e){var t=e.pathname,n=t===void 0?"/":t,r=e.search,i=r===void 0?"":r,o=e.hash,s=o===void 0?"":o;return i&&i!=="?"&&(n+=i.charAt(0)==="?"?i:"?"+i),s&&s!=="#"&&(n+=s.charAt(0)==="#"?s:"#"+s),n}function s_(e){var t={};if(e){var n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}/**
|
|
590
|
+
* react-location
|
|
591
|
+
*
|
|
592
|
+
* Copyright (c) TanStack
|
|
593
|
+
*
|
|
594
|
+
* This source code is licensed under the MIT license found in the
|
|
595
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
596
|
+
*
|
|
597
|
+
* @license MIT
|
|
598
|
+
*/function Br(){return Br=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Br.apply(this,arguments)}function a_(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function put(e,t){var n,r,i,o="";for(n in e)if((i=e[n])!==void 0)if(Array.isArray(i))for(r=0;r<i.length;r++)o&&(o+="&"),o+=encodeURIComponent(n)+"="+encodeURIComponent(i[r]);else o&&(o+="&"),o+=encodeURIComponent(n)+"="+encodeURIComponent(i);return(t||"")+o}function aM(e){if(!e)return"";var t=decodeURIComponent(e);return t==="false"?!1:t==="true"?!0:+t*0===0?+t:t}function gut(e){for(var t,n,r={},i=e.split("&");t=i.shift();)t=t.split("="),n=t.shift(),r[n]!==void 0?r[n]=[].concat(r[n],aM(t.shift())):r[n]=aM(t.shift());return r}const mut=["children","location","__experimental__snapshot"],vut=["location","__experimental__snapshot"],yut=["basepath","routes"],U9=v.exports.createContext(null),W9=v.exports.createContext(null),Y9=v.exports.createContext(null),G9=Boolean(typeof window<"u"&&window.document&&window.document.createElement),l_=G9?v.exports.useLayoutEffect:v.exports.useEffect,xut=()=>G9?hut():fut();class S2{constructor(){this.listeners=[]}subscribe(t){return this.listeners.push(t),()=>{this.listeners=this.listeners.filter(n=>n!==t)}}notify(){this.listeners.forEach(t=>t())}}class but extends S2{constructor(t){var n,r;super(),this.isTransitioning=!1,this.history=(t==null?void 0:t.history)||xut(),this.stringifySearch=(n=t==null?void 0:t.stringifySearch)!=null?n:Rut,this.parseSearch=(r=t==null?void 0:t.parseSearch)!=null?r:Out,this.current=this.parseLocation(this.history.location),this.destroy=this.history.listen(i=>{this.current=this.parseLocation(i.location,this.current),this.notify()})}buildNext(t,n){var r,i,o,s;t===void 0&&(t="/"),n===void 0&&(n={});const a=Br({},this.current,n.from),l=Put(t,a.pathname,""+((r=n.to)!=null?r:".")),c=(i=n.__searchFilters)!=null&&i.length?n.__searchFilters.reduce((p,g)=>g(p),a.search):a.search,u=n.search===!0?c:n.search?(o=uM(n.search,c))!=null?o:{}:(s=n.__searchFilters)!=null&&s.length?c:{},d=c_(a.search,u),h=this.stringifySearch(d);let f=n.hash===!0?a.hash:uM(n.hash,a.hash);return f=f?"#"+f:"",{pathname:l,search:d,searchStr:h,hash:f,href:""+l+h+f,key:n.key}}navigate(t,n){this.current=t,this.navigateTimeout&&clearTimeout(this.navigateTimeout);let r="replace";return n||(r="push"),this.parseLocation(this.history.location).href===this.current.href&&!this.current.key&&(r="replace"),r==="replace"?this.history.replace({pathname:this.current.pathname,hash:this.current.hash,search:this.current.searchStr}):this.history.push({pathname:this.current.pathname,hash:this.current.hash,search:this.current.searchStr})}parseLocation(t,n){var r;const i=this.parseSearch(t.search);return{pathname:t.pathname,searchStr:t.search,search:c_(n==null?void 0:n.search,i),hash:(r=t.hash.split("#").reverse()[0])!=null?r:"",href:""+t.pathname+t.search+t.hash,key:t.key}}}function q9(e){return O(W9.Provider,{...e})}function _ut(e){let{children:t,location:n,__experimental__snapshot:r}=e,i=a_(e,mut);const o=v.exports.useRef(null);o.current||(o.current=new Aut({location:n,__experimental__snapshot:r,routes:i.routes}));const s=o.current,[a,l]=v.exports.useReducer(()=>({}),{});return s.update(i),l_(()=>s.subscribe(()=>{l()}),[]),l_(()=>s.updateLocation(n.current).unsubscribe,[n.current.key]),v.exports.createElement(U9.Provider,{value:{location:n}},v.exports.createElement(Y9.Provider,{value:{router:s}},O(wut,{}),O(q9,{value:[s.rootMatch,...s.state.matches],children:t!=null?t:O(E2,{})})))}function wut(){const e=Ec(),t=t8(),n=J9();return l_(()=>{t({to:".",search:!0,hash:!0}).href!==e.current.href&&n({to:".",search:!0,hash:!0,fromCurrent:!0,replace:!0})},[]),null}class Aut extends S2{constructor(t){var n;let{location:r,__experimental__snapshot:i}=t,o=a_(t,vut);super(),this.routesById={},this.update=a=>{let{basepath:l,routes:c}=a,u=a_(a,yut);Object.assign(this,u),this.basepath=Sv("/"+(l!=null?l:"")),this.routesById={};const d=(h,f)=>h.map(p=>{var g,y,m,x;const b=(g=p.path)!=null?g:"*",_=sc([(f==null?void 0:f.id)==="root"?"":f==null?void 0:f.id,""+(b==null?void 0:b.replace(/(.)\/$/,"$1"))+(p.id?"-"+p.id:"")]);if(p=Br({},p,{pendingMs:(y=p.pendingMs)!=null?y:u==null?void 0:u.defaultPendingMs,pendingMinMs:(m=p.pendingMinMs)!=null?m:u==null?void 0:u.defaultPendingMinMs,id:_}),this.routesById[_])throw new Error;return this.routesById[_]=p,p.children=(x=p.children)!=null&&x.length?d(p.children,p):void 0,p});this.routes=d(c),this.rootMatch={id:"root",params:{},search:{},pathname:this.basepath,route:null,ownData:{},data:{},isLoading:!1,status:"resolved"}},this.setState=a=>{const l=a({state:this.state,pending:this.pending});this.state=l.state,this.pending=l.pending,this.cleanMatchCache(),this.notify()},this.matchCache={},this.cleanMatchCache=()=>{var a,l,c;const u=[...(a=this==null?void 0:this.state.matches)!=null?a:[],...(l=this==null||(c=this.pending)==null?void 0:c.matches)!=null?l:[]].map(d=>d.id);Object.values(this.matchCache).forEach(d=>{var h;if(!d.updatedAt||u.includes(d.id))return;const f=Date.now()-((h=d.updatedAt)!=null?h:0);(!d.maxAge||f>d.maxAge)&&(d.route.unloader&&d.route.unloader(d),delete this.matchCache[d.id])})},this.updateLocation=a=>{let l;return{promise:new Promise(u=>{const d=new lM(this,a);this.setState(h=>Br({},h,{pending:{location:d.location,matches:d.matches}})),l=d.subscribe(()=>{const h=this.state.matches;h.filter(f=>!d.matches.find(p=>p.id===f.id)).forEach(f=>{f.onExit==null||f.onExit(f)}),h.filter(f=>d.matches.find(p=>p.id===f.id)).forEach(f=>{f.route.onTransition==null||f.route.onTransition(f)}),d.matches.filter(f=>!h.find(p=>p.id===f.id)).forEach(f=>{f.onExit=f.route.onMatch==null?void 0:f.route.onMatch(f)}),this.setState(f=>Br({},f,{state:{location:d.location,matches:d.matches},pending:void 0})),u()}),d.loadData(),d.startPending()}),unsubscribe:l}},this.__experimental__createSnapshot=()=>({location:this.state.location,matches:this.state.matches.map(a=>{let{ownData:l,id:c}=a;return{id:c,ownData:l}})}),this.update(o);let s=[];if(i){const a=new lM(this,r.current);a.matches.forEach((l,c)=>{var u,d,h;if(l.id!==((u=i.matches[c])==null?void 0:u.id)){var f;throw new Error("Router hydration mismatch: "+l.id+" !== "+((f=i.matches[c])==null?void 0:f.id))}l.ownData=(d=(h=i.matches[c])==null?void 0:h.ownData)!=null?d:{}}),X9(a.matches),s=a.matches}this.state={location:(n=i==null?void 0:i.location)!=null?n:r.current,matches:s},r.subscribe(()=>this.notify())}}function Ec(){const e=v.exports.useContext(U9);return e8(!!e,"useLocation must be used within a <ReactLocation />"),e.location}class Sut{constructor(t){this.status="loading",this.ownData={},this.data={},this.isLoading=!1,this.notify=n=>{var r;(r=this.matchLoader)==null||r.preNotify(n?this:void 0)},this.assignMatchLoader=n=>{this.matchLoader=n},this.startPending=()=>{this.pendingTimeout&&clearTimeout(this.pendingTimeout),this.route.pendingMs!==void 0&&(this.pendingTimeout=setTimeout(()=>{var n;this.status==="loading"&&(this.status="pending"),(n=this.notify)==null||n.call(this),typeof this.route.pendingMinMs<"u"&&(this.pendingMinPromise=new Promise(r=>setTimeout(r,this.route.pendingMinMs)))},this.route.pendingMs))},this.load=n=>{var r,i;if(this.maxAge=(r=(i=n.maxAge)!=null?i:this.route.loaderMaxAge)!=null?r:n.router.defaultLoaderMaxAge,this.loaderPromise)return;const o=this.route.import;this.loaderPromise=(o?(()=>(this.isLoading=!0,o({params:this.params,search:this.search}).then(s=>{this.route=Br({},this.route,s)})))():Promise.resolve()).then(()=>{const s=[];["element","errorElement","pendingElement"].forEach(u=>{const d=this.route[u];this[u]||(typeof d=="function"?(this.isLoading=!0,s.push(d(this).then(h=>{this[u]=h}))):this[u]=this.route[u])});const l=this.route.loader,c=l?new Promise(async u=>{this.isLoading=!0;const d=p=>{this.updatedAt=Date.now(),u(this.ownData),this.status=p},h=p=>{this.ownData=p,this.error=void 0,d("resolved")},f=p=>{console.error(p),this.error=p,d("rejected")};try{h(await l(this,{parentMatch:n.parentMatch,dispatch:async p=>{var g;p.type==="resolve"?h(p.data):p.type==="reject"?f(p.error):p.type==="loading"?this.isLoading=!0:p.type==="maxAge"&&(this.maxAge=p.maxAge),this.updatedAt=Date.now(),(g=this.notify)==null||g.call(this,!0)}}))}catch(p){f(p)}}):Promise.resolve();return Promise.all([...s,c]).then(()=>{this.status="resolved",this.isLoading=!1,this.startPending=void 0}).then(()=>this.pendingMinPromise).then(()=>{var u;this.pendingTimeout&&clearTimeout(this.pendingTimeout),(u=this.notify)==null||u.call(this,!0)})}).then(()=>this.ownData)},Object.assign(this,t)}}class lM extends S2{constructor(t,n){var r;super(),r=this,this.preNotifiedMatches=[],this.status="pending",this.preNotify=o=>{o&&(this.preNotifiedMatches.includes(o)||this.preNotifiedMatches.push(o)),(!o||this.preNotifiedMatches.length===this.matches.length)&&(this.status="resolved",X9(this.matches),this.notify())},this.loadData=async function(o){var s;let{maxAge:a}=o===void 0?{}:o;if(r.router.cleanMatchCache(),!((s=r.matches)!=null&&s.length)){r.preNotify();return}return r.firstRenderPromises=[],r.matches.forEach((l,c)=>{var u,d;const h=(u=r.matches)==null?void 0:u[c-1];l.assignMatchLoader==null||l.assignMatchLoader(r),l.load==null||l.load({maxAge:a,parentMatch:h,router:r.router}),(d=r.firstRenderPromises)==null||d.push(l.loaderPromise)}),await Promise.all(r.firstRenderPromises).then(()=>(r.preNotify(),r.matches))},this.load=async function(o){let{maxAge:s}=o===void 0?{}:o;return await r.loadData({maxAge:s})},this.startPending=async()=>{this.matches.forEach(o=>o.startPending==null?void 0:o.startPending())},this.router=t,this.location=n,this.matches=[];const i=K9(this.router,this.location);this.matches=i==null?void 0:i.map(o=>(this.router.matchCache[o.id]||(this.router.matchCache[o.id]=new Sut(o)),this.router.matchCache[o.id]))}}function X9(e){e==null||e.forEach((t,n)=>{var r;const i=e==null?void 0:e[n-1];t.data=Br({},(r=i==null?void 0:i.data)!=null?r:{},t.ownData)})}function Q9(){const e=v.exports.useContext(Y9);if(!e)throw e8(!0,"You are trying to use useRouter() outside of ReactLocation!"),new Error;return e.router}function K9(e,t){if(!e.routes.length)return[];const n=[],r=async(i,o)=>{var s;let{pathname:a,params:l}=o;const u=(e!=null&&e.filterRoutes?e==null?void 0:e.filterRoutes(i):i).find(p=>{var g,y;const m=sc([a,p.path]),x=!!(p.path!=="/"||(g=p.children)!=null&&g.length),b=kut(t,{to:m,search:p.search,fuzzy:x,caseSensitive:(y=p.caseSensitive)!=null?y:e.caseSensitive});return b&&(l=Br({},l,b)),!!b});if(!u)return;const d=cM(u.path,l);a=sc([a,d]);const f={id:cM(u.id,l,!0),route:u,params:l,pathname:a,search:t.search};n.push(f),(s=u.children)!=null&&s.length&&r(u.children,f)};return r(e.routes,e.rootMatch),n}function cM(e,t,n){const r=dh(e);return sc(r.map(i=>{if(i.value==="*"&&!n)return"";if(i.type==="param"){var o;return(o=t[i.value.substring(1)])!=null?o:""}return i.value}))}function Z9(){return v.exports.useContext(W9)}function Eut(){var e;return(e=Z9())==null?void 0:e[0]}function J9(){const e=Ec(),t=Eut(),n=t8();function r(i){var o;let{search:s,hash:a,replace:l,from:c,to:u,fromCurrent:d}=i;d=(o=d)!=null?o:typeof u>"u";const h=n({to:u,search:s,hash:a,from:d?e.current:c!=null?c:{pathname:t.pathname}});e.navigate(h,l)}return n8(r)}function t8(){const e=Ec(),t=Q9();return n8(r=>{const i=e.buildNext(t.basepath,r),s=K9(t,i).map(a=>{var l;return(l=a.route.searchFilters)!=null?l:[]}).flat().filter(Boolean);return e.buildNext(t.basepath,Br({},r,{__searchFilters:s}))})}function E2(){var e;const t=Q9(),[n,...r]=Z9(),i=r[0];if(!i)return null;const o=(e=i.errorElement)!=null?e:t.defaultErrorElement,s=(()=>{var a,l;if(i.status==="rejected"){if(o)return o;if(!t.useErrorBoundary)return"An unknown error occured!";throw i.error}const c=(a=i.pendingElement)!=null?a:t.defaultPendingElement;if(i.status==="loading")return null;if(i.status==="pending"&&(i.route.pendingMs||c))return c!=null?c:null;const u=(l=i.element)!=null?l:t.defaultElement;return u!=null?u:O(E2,{})})();return O(q9,{value:r,children:s})}function Cut(){return Ec().current.search}function kut(e,t){const n=Mut(e,t),r=$ut(e,t);if(!(t.to&&!n)&&!(t.search&&!r))return n!=null?n:{}}function e8(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch(n){}}}function Tut(e){return typeof e=="function"}function uM(e,t){return Tut(e)?e(t):e}function sc(e){return Sv(e.filter(Boolean).join("/"))}function Sv(e){return(""+e).replace(/\/{2,}/g,"/")}function Mut(e,t){var n;const r=dh(e.pathname),i=dh(""+((n=t.to)!=null?n:"*")),o={};return(()=>{for(let a=0;a<Math.max(r.length,i.length);a++){const l=r[a],c=i[a],u=a===i.length-1,d=a===r.length-1;if(c){if(c.type==="wildcard")return l!=null&&l.value?(o["*"]=sc(r.slice(a).map(h=>h.value)),!0):!1;if(c.type==="pathname"){if(c.value==="/"&&!(l!=null&&l.value))return!0;if(l){if(t.caseSensitive){if(c.value!==l.value)return!1}else if(c.value.toLowerCase()!==l.value.toLowerCase())return!1}}if(!l)return!1;c.type==="param"&&(o[c.value.substring(1)]=l.value)}if(u&&!d)return!!t.fuzzy}return!0})()?o:void 0}function $ut(e,t){return!!(t.search&&t.search(e.search))}function dh(e){if(!e)return[];e=Sv(e);const t=[];if(e.slice(0,1)==="/"&&(e=e.substring(1),t.push({type:"pathname",value:"/"})),!e)return t;const n=e.split("/").filter(Boolean);return t.push(...n.map(r=>r.startsWith("*")?{type:"wildcard",value:r}:r.charAt(0)===":"?{type:"param",value:r}:{type:"pathname",value:r})),e.slice(-1)==="/"&&(e=e.substring(1),t.push({type:"pathname",value:"/"})),t}function Put(e,t,n){t=t.replace(new RegExp("^"+e),"/"),n=n.replace(new RegExp("^"+e),"/");let r=dh(t);const i=dh(n);i.forEach((s,a)=>{if(s.value==="/")a?a===i.length-1&&r.push(s):r=[s];else if(s.value==="..")r.pop();else{if(s.value===".")return;r.push(s)}});const o=sc([e,...r.map(s=>s.value)]);return Sv(o)}function n8(e){const t=v.exports.useRef(),n=v.exports.useRef(e);return n.current=e,t.current||(t.current=function(){return n.current(...arguments)}),t.current}function c_(e,t){if(e===t)return e;const n=Array.isArray(e)&&Array.isArray(t);if(n||dM(e)&&dM(t)){const r=n?e.length:Object.keys(e).length,i=n?t:Object.keys(t),o=i.length,s=n?[]:{};let a=0;for(let l=0;l<o;l++){const c=n?l:i[l];s[c]=c_(e[c],t[c]),s[c]===e[c]&&a++}return r===o&&a===r?e:s}return t}function dM(e){if(!hM(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!hM(n)||!n.hasOwnProperty("isPrototypeOf"))}function hM(e){return Object.prototype.toString.call(e)==="[object Object]"}const Out=Dut(JSON.parse),Rut=Lut(JSON.stringify);function Dut(e){return t=>{t.substring(0,1)==="?"&&(t=t.substring(1));let n=gut(t);for(let r in n){const i=n[r];if(typeof i=="string")try{n[r]=e(i)}catch(o){}}return n}}function Lut(e){return t=>{t=Br({},t),t&&Object.keys(t).forEach(r=>{const i=t[r];if(typeof i>"u"||i===void 0)delete t[r];else if(i&&typeof i=="object"&&i!==null)try{t[r]=e(i)}catch(o){}});const n=put(t).toString();return n?"?"+n:""}}function u_(e,t){return u_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},u_(e,t)}function Iut(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,u_(e,t)}var Nut=function(t,n){return t===void 0&&(t=[]),n===void 0&&(n=[]),t.length!==n.length||t.some(function(r,i){return!Object.is(r,n[i])})},fM={error:null},Fut=function(e){Iut(t,e);function t(){for(var r,i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=e.call.apply(e,[this].concat(o))||this,r.state=fM,r.resetErrorBoundary=function(){for(var a,l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];r.props.onReset==null||(a=r.props).onReset.apply(a,c),r.reset()},r}t.getDerivedStateFromError=function(i){return{error:i}};var n=t.prototype;return n.reset=function(){this.setState(fM)},n.componentDidCatch=function(i,o){var s,a;(s=(a=this.props).onError)==null||s.call(a,i,o)},n.componentDidUpdate=function(i,o){var s=this.state.error,a=this.props.resetKeys;if(s!==null&&o.error!==null&&Nut(i.resetKeys,a)){var l,c;(l=(c=this.props).onResetKeysChange)==null||l.call(c,i.resetKeys,a),this.reset()}},n.render=function(){var i=this.state.error,o=this.props,s=o.fallbackRender,a=o.FallbackComponent,l=o.fallback;if(i!==null){var c={error:i,resetErrorBoundary:this.resetErrorBoundary};if(v.exports.isValidElement(l))return l;if(typeof s=="function")return s(c);if(a)return O(a,{...c});throw new Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},t}(v.exports.Component);class Ev{constructor(){this.listeners=[],this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.push(t),this.onSubscribe(),()=>{this.listeners=this.listeners.filter(n=>n!==t),this.onUnsubscribe()}}hasListeners(){return this.listeners.length>0}onSubscribe(){}onUnsubscribe(){}}const C2=typeof window>"u";function Mr(){}function zut(e,t){return typeof e=="function"?e(t):e}function But(e){return typeof e=="number"&&e>=0&&e!==1/0}function Vut(e,t){return Math.max(e+(t||0)-Date.now(),0)}function uy(e,t,n){return Cv(e)?typeof t=="function"?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function wo(e,t,n){return Cv(e)?[{...t,queryKey:e},n]:[e||{},t]}function pM(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:s,stale:a}=e;if(Cv(s)){if(r){if(t.queryHash!==k2(s,t.options))return!1}else if(!Xm(t.queryKey,s))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||typeof i<"u"&&i!==t.state.fetchStatus||o&&!o(t))}function gM(e,t){const{exact:n,fetching:r,predicate:i,mutationKey:o}=e;if(Cv(o)){if(!t.options.mutationKey)return!1;if(n){if(ta(t.options.mutationKey)!==ta(o))return!1}else if(!Xm(t.options.mutationKey,o))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||i&&!i(t))}function k2(e,t){return((t==null?void 0:t.queryKeyHashFn)||ta)(e)}function ta(e){return JSON.stringify(e,(t,n)=>d_(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Xm(e,t){return r8(e,t)}function r8(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!r8(e[n],t[n])):!1}function i8(e,t){if(e===t)return e;const n=mM(e)&&mM(t);if(n||d_(e)&&d_(t)){const r=n?e.length:Object.keys(e).length,i=n?t:Object.keys(t),o=i.length,s=n?[]:{};let a=0;for(let l=0;l<o;l++){const c=n?l:i[l];s[c]=i8(e[c],t[c]),s[c]===e[c]&&a++}return r===o&&a===r?e:s}return t}function VEt(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function mM(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function d_(e){if(!vM(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!vM(n)||!n.hasOwnProperty("isPrototypeOf"))}function vM(e){return Object.prototype.toString.call(e)==="[object Object]"}function Cv(e){return Array.isArray(e)}function o8(e){return new Promise(t=>{setTimeout(t,e)})}function yM(e){o8(0).then(e)}function jut(){if(typeof AbortController=="function")return new AbortController}function Hut(e,t,n){return n.isDataEqual!=null&&n.isDataEqual(e,t)?e:typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?i8(e,t):t}class Uut extends Ev{constructor(){super(),this.setup=t=>{if(!C2&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),()=>{window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()})}setFocused(t){this.focused=t,t&&this.onFocus()}onFocus(){this.listeners.forEach(t=>{t()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const h_=new Uut;class Wut extends Ev{constructor(){super(),this.setup=t=>{if(!C2&&window.addEventListener){const n=()=>t();return window.addEventListener("online",n,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",n)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setOnline(r):this.onOnline()})}setOnline(t){this.online=t,t&&this.onOnline()}onOnline(){this.listeners.forEach(t=>{t()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const Qm=new Wut;function Yut(e){return Math.min(1e3*2**e,3e4)}function T2(e){return(e!=null?e:"online")==="online"?Qm.isOnline():!0}class s8{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function dy(e){return e instanceof s8}function a8(e){let t=!1,n=0,r=!1,i,o,s;const a=new Promise((y,m)=>{o=y,s=m}),l=y=>{r||(f(new s8(y)),e.abort==null||e.abort())},c=()=>{t=!0},u=()=>{t=!1},d=()=>!h_.isFocused()||e.networkMode!=="always"&&!Qm.isOnline(),h=y=>{r||(r=!0,e.onSuccess==null||e.onSuccess(y),i==null||i(),o(y))},f=y=>{r||(r=!0,e.onError==null||e.onError(y),i==null||i(),s(y))},p=()=>new Promise(y=>{i=m=>{if(r||!d())return y(m)},e.onPause==null||e.onPause()}).then(()=>{i=void 0,r||e.onContinue==null||e.onContinue()}),g=()=>{if(r)return;let y;try{y=e.fn()}catch(m){y=Promise.reject(m)}Promise.resolve(y).then(h).catch(m=>{var x,b;if(r)return;const _=(x=e.retry)!=null?x:3,w=(b=e.retryDelay)!=null?b:Yut,A=typeof w=="function"?w(n,m):w,S=_===!0||typeof _=="number"&&n<_||typeof _=="function"&&_(n,m);if(t||!S){f(m);return}n++,e.onFail==null||e.onFail(n,m),o8(A).then(()=>{if(d())return p()}).then(()=>{t?f(m):g()})})};return T2(e.networkMode)?g():p().then(g),{promise:a,cancel:l,continue:()=>{i==null||i()},cancelRetry:c,continueRetry:u}}const M2=console;function Gut(){let e=[],t=0,n=u=>{u()},r=u=>{u()};const i=u=>{let d;t++;try{d=u()}finally{t--,t||a()}return d},o=u=>{t?e.push(u):yM(()=>{n(u)})},s=u=>(...d)=>{o(()=>{u(...d)})},a=()=>{const u=e;e=[],u.length&&yM(()=>{r(()=>{u.forEach(d=>{n(d)})})})};return{batch:i,batchCalls:s,schedule:o,setNotifyFunction:u=>{n=u},setBatchNotifyFunction:u=>{r=u}}}const vn=Gut();class l8{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),But(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,t!=null?t:C2?1/0:5*60*1e3)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class qut extends l8{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||M2,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||Xut(this.options),this.state=this.initialState,this.meta=t.meta}setOptions(t){this.options={...this.defaultOptions,...t},this.meta=t==null?void 0:t.meta,this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(t,n){const r=Hut(this.state.data,t,this.options);return this.dispatch({data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){this.dispatch({type:"setState",state:t,setStateOptions:n})}cancel(t){var n;const r=this.promise;return(n=this.retryer)==null||n.cancel(t),r?r.then(Mr).catch(Mr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!Vut(this.state.dataUpdatedAt,t)}onFocus(){var t;const n=this.observers.find(r=>r.shouldFetchOnWindowFocus());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}onOnline(){var t;const n=this.observers.find(r=>r.shouldFetchOnReconnect());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}addObserver(t){this.observers.indexOf(t)===-1&&(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.indexOf(t)!==-1&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(t,n){var r,i;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&n!=null&&n.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var o;return(o=this.retryer)==null||o.continueRetry(),this.promise}}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(p=>p.options.queryFn);f&&this.setOptions(f.options)}Array.isArray(this.options.queryKey);const s=jut(),a={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},l=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>{if(s)return this.abortSignalConsumed=!0,s.signal}})};l(a);const c=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(a)):Promise.reject("Missing queryFn"),u={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:c,meta:this.meta};if(l(u),(r=this.options.behavior)==null||r.onFetch(u),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((i=u.fetchOptions)==null?void 0:i.meta)){var d;this.dispatch({type:"fetch",meta:(d=u.fetchOptions)==null?void 0:d.meta})}const h=f=>{if(dy(f)&&f.silent||this.dispatch({type:"error",error:f}),!dy(f)){var p,g;(p=(g=this.cache.config).onError)==null||p.call(g,f,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=a8({fn:u.fetchFn,abort:s==null?void 0:s.abort.bind(s),onSuccess:f=>{var p,g;if(typeof f>"u"){h(new Error("Query data cannot be undefined"));return}this.setData(f),(p=(g=this.cache.config).onSuccess)==null||p.call(g,f,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:h,onFail:()=>{this.dispatch({type:"failed"})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(t){const n=r=>{var i,o;switch(t.type){case"failed":return{...r,fetchFailureCount:r.fetchFailureCount+1};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,fetchFailureCount:0,fetchMeta:(i=t.meta)!=null?i:null,fetchStatus:T2(this.options.networkMode)?"fetching":"paused",...!r.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:(o=t.dataUpdatedAt)!=null?o:Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0}};case"error":const s=t.error;return dy(s)&&s.revert&&this.revertState?{...this.revertState}:{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),vn.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function Xut(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=typeof e.initialData<"u"?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0,i=typeof t<"u";return{data:t,dataUpdateCount:0,dataUpdatedAt:i?r!=null?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isInvalidated:!1,status:i?"success":"loading",fetchStatus:"idle"}}class Qut extends Ev{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,n,r){var i;const o=n.queryKey,s=(i=n.queryHash)!=null?i:k2(o,n);let a=this.get(s);return a||(a=new qut({cache:this,logger:t.getLogger(),queryKey:o,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o),meta:n.meta}),this.add(a)),a}add(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"added",query:t}))}remove(t){const n=this.queriesMap[t.queryHash];n&&(t.destroy(),this.queries=this.queries.filter(r=>r!==t),n===t&&delete this.queriesMap[t.queryHash],this.notify({type:"removed",query:t}))}clear(){vn.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,n){const[r]=wo(t,n);return typeof r.exact>"u"&&(r.exact=!0),this.queries.find(i=>pM(r,i))}findAll(t,n){const[r]=wo(t,n);return Object.keys(r).length>0?this.queries.filter(i=>pM(r,i)):this.queries}notify(t){vn.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){vn.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){vn.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class Kut extends l8{constructor(t){super(),this.options={...t.defaultOptions,...t.options},this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||M2,this.observers=[],this.state=t.state||Zut(),this.meta=t.meta,this.updateCacheTime(this.options.cacheTime),this.scheduleGc()}setState(t){this.dispatch({type:"setState",state:t})}addObserver(t){this.observers.indexOf(t)===-1&&(this.observers.push(t),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.observers=this.observers.filter(n=>n!==t),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()}async execute(){const t=()=>{var b;return this.retryer=a8({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:()=>{this.dispatch({type:"failed"})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(b=this.options.retry)!=null?b:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},n=this.state.status==="loading";try{var r,i,o,s,a,l;if(!n){var c,u,d,h;this.dispatch({type:"loading",variables:this.options.variables}),(c=(u=this.mutationCache.config).onMutate)==null||c.call(u,this.state.variables,this);const _=await((d=(h=this.options).onMutate)==null?void 0:d.call(h,this.state.variables));_!==this.state.context&&this.dispatch({type:"loading",context:_,variables:this.state.variables})}const b=await t();return(r=(i=this.mutationCache.config).onSuccess)==null||r.call(i,b,this.state.variables,this.state.context,this),await((o=(s=this.options).onSuccess)==null?void 0:o.call(s,b,this.state.variables,this.state.context)),await((a=(l=this.options).onSettled)==null?void 0:a.call(l,b,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:b}),b}catch(b){try{var f,p,g,y,m,x;throw(f=(p=this.mutationCache.config).onError)==null||f.call(p,b,this.state.variables,this.state.context,this),await((g=(y=this.options).onError)==null?void 0:g.call(y,b,this.state.variables,this.state.context)),await((m=(x=this.options).onSettled)==null?void 0:m.call(x,void 0,b,this.state.variables,this.state.context)),b}finally{this.dispatch({type:"error",error:b})}}}dispatch(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:r.failureCount+1};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"loading":return{...r,context:t.context,data:void 0,error:null,isPaused:!T2(this.options.networkMode),status:"loading",variables:t.variables};case"success":return{...r,data:t.data,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,isPaused:!1,status:"error"};case"setState":return{...r,...t.state}}};this.state=n(this.state),vn.batch(()=>{this.observers.forEach(r=>{r.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function Zut(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}class Jut extends Ev{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,n,r){const i=new Kut({mutationCache:this,logger:t.getLogger(),mutationId:++this.mutationId,options:t.defaultMutationOptions(n),state:r,defaultOptions:n.mutationKey?t.getMutationDefaults(n.mutationKey):void 0,meta:n.meta});return this.add(i),i}add(t){this.mutations.push(t),this.notify({type:"added",mutation:t})}remove(t){this.mutations=this.mutations.filter(n=>n!==t),this.notify({type:"removed",mutation:t})}clear(){vn.batch(()=>{this.mutations.forEach(t=>{this.remove(t)})})}getAll(){return this.mutations}find(t){return typeof t.exact>"u"&&(t.exact=!0),this.mutations.find(n=>gM(t,n))}findAll(t){return this.mutations.filter(n=>gM(t,n))}notify(t){vn.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.mutations.filter(n=>n.state.isPaused);return vn.batch(()=>t.reduce((n,r)=>n.then(()=>r.continue().catch(Mr)),Promise.resolve()))}}function tdt(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,r,i,o,s;const a=(t=e.fetchOptions)==null||(n=t.meta)==null?void 0:n.refetchPage,l=(r=e.fetchOptions)==null||(i=r.meta)==null?void 0:i.fetchMore,c=l==null?void 0:l.pageParam,u=(l==null?void 0:l.direction)==="forward",d=(l==null?void 0:l.direction)==="backward",h=((o=e.state.data)==null?void 0:o.pages)||[],f=((s=e.state.data)==null?void 0:s.pageParams)||[];let p=f,g=!1;const y=A=>{Object.defineProperty(A,"signal",{enumerable:!0,get:()=>{var S;if((S=e.signal)!=null&&S.aborted)g=!0;else{var E;(E=e.signal)==null||E.addEventListener("abort",()=>{g=!0})}return e.signal}})},m=e.options.queryFn||(()=>Promise.reject("Missing queryFn")),x=(A,S,E,k)=>(p=k?[S,...p]:[...p,S],k?[E,...A]:[...A,E]),b=(A,S,E,k)=>{if(g)return Promise.reject("Cancelled");if(typeof E>"u"&&!S&&A.length)return Promise.resolve(A);const C={queryKey:e.queryKey,pageParam:E,meta:e.meta};y(C);const T=m(C);return Promise.resolve(T).then(I=>x(A,E,I,k))};let _;if(!h.length)_=b([]);else if(u){const A=typeof c<"u",S=A?c:xM(e.options,h);_=b(h,A,S)}else if(d){const A=typeof c<"u",S=A?c:edt(e.options,h);_=b(h,A,S,!0)}else{p=[];const A=typeof e.options.getNextPageParam>"u";_=(a&&h[0]?a(h[0],0,h):!0)?b([],A,f[0]):Promise.resolve(x([],f[0],h[0]));for(let E=1;E<h.length;E++)_=_.then(k=>{if(a&&h[E]?a(h[E],E,h):!0){const T=A?f[E]:xM(e.options,k);return b(k,A,T)}return Promise.resolve(x(k,f[E],h[E]))})}return _.then(A=>({pages:A,pageParams:p}))}}}}function xM(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function edt(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}class ndt{constructor(t={}){this.queryCache=t.queryCache||new Qut,this.mutationCache=t.mutationCache||new Jut,this.logger=t.logger||M2,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}mount(){this.unsubscribeFocus=h_.subscribe(()=>{h_.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=Qm.subscribe(()=>{Qm.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())})}unmount(){var t,n;(t=this.unsubscribeFocus)==null||t.call(this),(n=this.unsubscribeOnline)==null||n.call(this)}isFetching(t,n){const[r]=wo(t,n);return r.fetchStatus="fetching",this.queryCache.findAll(r).length}isMutating(t){return this.mutationCache.findAll({...t,fetching:!0}).length}getQueryData(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state.data}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:n,state:r})=>{const i=r.data;return[n,i]})}setQueryData(t,n,r){const i=this.queryCache.find(t),o=i==null?void 0:i.state.data,s=zut(n,o);if(typeof s>"u")return;const a=uy(t),l=this.defaultQueryOptions(a);return this.queryCache.build(this,l).setData(s,{...r,manual:!0})}setQueriesData(t,n,r){return vn.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:i})=>[i,this.setQueryData(i,n,r)]))}getQueryState(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state}removeQueries(t,n){const[r]=wo(t,n),i=this.queryCache;vn.batch(()=>{i.findAll(r).forEach(o=>{i.remove(o)})})}resetQueries(t,n,r){const[i,o]=wo(t,n,r),s=this.queryCache,a={type:"active",...i};return vn.batch(()=>(s.findAll(i).forEach(l=>{l.reset()}),this.refetchQueries(a,o)))}cancelQueries(t,n,r){const[i,o={}]=wo(t,n,r);typeof o.revert>"u"&&(o.revert=!0);const s=vn.batch(()=>this.queryCache.findAll(i).map(a=>a.cancel(o)));return Promise.all(s).then(Mr).catch(Mr)}invalidateQueries(t,n,r){const[i,o]=wo(t,n,r);return vn.batch(()=>{var s,a;if(this.queryCache.findAll(i).forEach(c=>{c.invalidate()}),i.refetchType==="none")return Promise.resolve();const l={...i,type:(s=(a=i.refetchType)!=null?a:i.type)!=null?s:"active"};return this.refetchQueries(l,o)})}refetchQueries(t,n,r){const[i,o]=wo(t,n,r),s=vn.batch(()=>this.queryCache.findAll(i).filter(l=>!l.isDisabled()).map(l=>{var c;return l.fetch(void 0,{...o,cancelRefetch:(c=o==null?void 0:o.cancelRefetch)!=null?c:!0,meta:{refetchPage:i.refetchPage}})}));let a=Promise.all(s).then(Mr);return o!=null&&o.throwOnError||(a=a.catch(Mr)),a}fetchQuery(t,n,r){const i=uy(t,n,r),o=this.defaultQueryOptions(i);typeof o.retry>"u"&&(o.retry=!1);const s=this.queryCache.build(this,o);return s.isStaleByTime(o.staleTime)?s.fetch(o):Promise.resolve(s.state.data)}prefetchQuery(t,n,r){return this.fetchQuery(t,n,r).then(Mr).catch(Mr)}fetchInfiniteQuery(t,n,r){const i=uy(t,n,r);return i.behavior=tdt(),this.fetchQuery(i)}prefetchInfiniteQuery(t,n,r){return this.fetchInfiniteQuery(t,n,r).then(Mr).catch(Mr)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(t){this.defaultOptions=t}setQueryDefaults(t,n){const r=this.queryDefaults.find(i=>ta(t)===ta(i.queryKey));r?r.defaultOptions=n:this.queryDefaults.push({queryKey:t,defaultOptions:n})}getQueryDefaults(t){if(!t)return;const n=this.queryDefaults.find(r=>Xm(t,r.queryKey));return n==null?void 0:n.defaultOptions}setMutationDefaults(t,n){const r=this.mutationDefaults.find(i=>ta(t)===ta(i.mutationKey));r?r.defaultOptions=n:this.mutationDefaults.push({mutationKey:t,defaultOptions:n})}getMutationDefaults(t){if(!t)return;const n=this.mutationDefaults.find(r=>Xm(t,r.mutationKey));return n==null?void 0:n.defaultOptions}defaultQueryOptions(t){if(t!=null&&t._defaulted)return t;const n={...this.defaultOptions.queries,...this.getQueryDefaults(t==null?void 0:t.queryKey),...t,_defaulted:!0};return!n.queryHash&&n.queryKey&&(n.queryHash=k2(n.queryKey,n)),typeof n.refetchOnReconnect>"u"&&(n.refetchOnReconnect=n.networkMode!=="always"),typeof n.useErrorBoundary>"u"&&(n.useErrorBoundary=!!n.suspense),n}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...this.defaultOptions.mutations,...this.getMutationDefaults(t==null?void 0:t.mutationKey),...t,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}const bM=v.exports.createContext(void 0),c8=v.exports.createContext(!1);function u8(e,t){return e||(t&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=bM),window.ReactQueryClientContext):bM)}const jEt=({context:e}={})=>{const t=v.exports.useContext(u8(e,v.exports.useContext(c8)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},rdt=({client:e,children:t,context:n,contextSharing:r=!1})=>{v.exports.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);const i=u8(n,r);return O(c8.Provider,{value:!n&&r,children:O(i.Provider,{value:e,children:t})})},idt="modulepreload",odt=function(e){return"/sdks-app/v2/"+e},_M={},Ji=function(t,n,r){return!n||n.length===0?t():Promise.all(n.map(i=>{if(i=odt(i),i in _M)return;_M[i]=!0;const o=i.endsWith(".css"),s=o?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${i}"]${s}`))return;const a=document.createElement("link");if(a.rel=o?"stylesheet":idt,o||(a.as="script",a.crossOrigin=""),a.href=i,document.head.appendChild(a),o)return new Promise((l,c)=>{a.addEventListener("load",l),a.addEventListener("error",()=>c(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t())};var xg=(e=>(e.LOCAL_CONTENT="local-content",e.DATA_EXPLORER="data-explorer",e.DEMOGRAPHICS="demographics",e))(xg||{});const sdt=new but,adt=Z.lazy(()=>Ji(()=>import("./index.24661964.js"),["assets/index.24661964.js","assets/index.d89a7cee.js","assets/index.08649806.css","assets/useQuery.19a6ca1c.js","assets/useIsMobile.b5e8d9ad.js"])),ldt=Z.lazy(()=>Ji(()=>import("./index.3039bacf.js"),["assets/index.3039bacf.js","assets/index.d89a7cee.js","assets/index.08649806.css","assets/useQuery.19a6ca1c.js","assets/keyFactory.e1cd5707.js"])),cdt=Z.lazy(()=>Ji(()=>import("./index.1b34a15d.js"),["assets/index.1b34a15d.js","assets/useIsMobile.b5e8d9ad.js","assets/keyFactory.e1cd5707.js","assets/useQuery.19a6ca1c.js"])),udt=({children:e})=>{const t=[{path:`/sdks-app/v2/${xg.LOCAL_CONTENT}`,element:O(adt,{})},{path:`/sdks-app/v2/${xg.DATA_EXPLORER}`,element:O(ldt,{})},{path:`/sdks-app/v2/${xg.DEMOGRAPHICS}`,element:O(cdt,{})}];return O(_ut,{location:sdt,routes:t,children:e})};var ddt=Object.defineProperty,hdt=(e,t,n)=>t in e?ddt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ao=(e,t,n)=>(hdt(e,typeof t!="symbol"?t+"":t,n),n);const fdt="CONNECT",pdt="DEFAULT";function gdt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var d8={exports:{}};(function(e){var t=(()=>{var n=Object.defineProperty,r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,s=(y,m,x)=>m in y?n(y,m,{enumerable:!0,configurable:!0,writable:!0,value:x}):y[m]=x,a=(y,m)=>{for(var x in m||(m={}))i.call(m,x)&&s(y,x,m[x]);if(r)for(var x of r(m))o.call(m,x)&&s(y,x,m[x]);return y},l=y=>n(y,"__esModule",{value:!0}),c=(y,m)=>{l(y);for(var x in m)n(y,x,{get:m[x],enumerable:!0})},u={};c(u,{DEFAULT_UUID_LENGTH:()=>h,default:()=>g});var d="4.4.4",h=6,f={dictionary:"alphanum",shuffle:!0,debug:!1,length:h},p=class extends Function{constructor(y={}){super(),this.dictIndex=0,this.dictRange=[],this.lowerBound=0,this.upperBound=0,this.dictLength=0,this._digit_first_ascii=48,this._digit_last_ascii=58,this._alpha_lower_first_ascii=97,this._alpha_lower_last_ascii=123,this._hex_last_ascii=103,this._alpha_upper_first_ascii=65,this._alpha_upper_last_ascii=91,this._number_dict_ranges={digits:[this._digit_first_ascii,this._digit_last_ascii]},this._alpha_dict_ranges={lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]},this._alpha_lower_dict_ranges={lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]},this._alpha_upper_dict_ranges={upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]},this._alphanum_dict_ranges={digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]},this._alphanum_lower_dict_ranges={digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]},this._alphanum_upper_dict_ranges={digits:[this._digit_first_ascii,this._digit_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]},this._hex_dict_ranges={decDigits:[this._digit_first_ascii,this._digit_last_ascii],alphaDigits:[this._alpha_lower_first_ascii,this._hex_last_ascii]},this.log=(...w)=>{const A=[...w];if(A[0]=`[short-unique-id] ${w[0]}`,this.debug===!0&&typeof console<"u"&&console!==null)return console.log(...A)},this.setDictionary=(w,A)=>{let S;if(w&&Array.isArray(w)&&w.length>1)S=w;else{S=[];let E;this.dictIndex=E=0;const k=`_${w}_dict_ranges`,C=this[k];Object.keys(C).forEach(T=>{const $=T;for(this.dictRange=C[$],this.lowerBound=this.dictRange[0],this.upperBound=this.dictRange[1],this.dictIndex=E=this.lowerBound;this.lowerBound<=this.upperBound?E<this.upperBound:E>this.upperBound;this.dictIndex=this.lowerBound<=this.upperBound?E+=1:E-=1)S.push(String.fromCharCode(this.dictIndex))})}A&&(S=S.sort(()=>Math.random()-.5)),this.dict=S,this.dictLength=this.dict.length,this.counter=0},this.seq=()=>this.sequentialUUID(),this.sequentialUUID=()=>{let w,A,S="";w=this.counter;do A=w%this.dictLength,w=Math.trunc(w/this.dictLength),S+=this.dict[A];while(w!==0);return this.counter+=1,S},this.randomUUID=(w=this.uuidLength||h)=>{let A,S,E;if(w===null||typeof w>"u"||w<1)throw new Error("Invalid UUID Length Provided");for(A="",E=0;E<w;E+=1)S=parseInt((Math.random()*this.dictLength).toFixed(0),10)%this.dictLength,A+=this.dict[S];return A},this.availableUUIDs=(w=this.uuidLength)=>parseFloat(Math.pow([...new Set(this.dict)].length,w).toFixed(0)),this.approxMaxBeforeCollision=(w=this.availableUUIDs(this.uuidLength))=>parseFloat(Math.sqrt(Math.PI/2*w).toFixed(20)),this.collisionProbability=(w=this.availableUUIDs(this.uuidLength),A=this.uuidLength)=>parseFloat((this.approxMaxBeforeCollision(w)/this.availableUUIDs(A)).toFixed(20)),this.uniqueness=(w=this.availableUUIDs(this.uuidLength))=>{const A=parseFloat((1-this.approxMaxBeforeCollision(w)/w).toFixed(20));return A>1?1:A<0?0:A},this.getVersion=()=>this.version,this.stamp=w=>{if(typeof w!="number"||w<10)throw new Error("Param finalLength must be number greater than 10");const A=Math.floor(+new Date/1e3).toString(16),S=w-9,E=Math.round(Math.random()*(S>15?15:S)),k=this.randomUUID(S);return`${k.substr(0,E)}${A}${k.substr(E)}${E.toString(16)}`},this.parseStamp=w=>{if(w.length<10)throw new Error("Stamp length invalid");const A=parseInt(w.substr(w.length-1,1),16);return new Date(parseInt(w.substr(A,8),16)*1e3)};const m=a(a({},f),y);this.counter=0,this.debug=!1,this.dict=[],this.version=d;const{dictionary:x,shuffle:b,length:_}=m;return this.uuidLength=_,this.setDictionary(x,b),this.debug=m.debug,this.log(this.dict),this.log(`Generator instantiated with Dictionary Size ${this.dictLength}`),new Proxy(this,{apply:(w,A,S)=>this.randomUUID(...S)})}},g=p;return g.default=p,u})();e.exports=t.default,typeof window<"u"&&(t=t.default)})(d8);const mdt=gdt(d8.exports),wM=new mdt({length:10});class $2{constructor(t,n){ao(this,"connection"),ao(this,"channelId"),ao(this,"boundMessageHandler"),ao(this,"onMessageHandlers",[]),ao(this,"resolveConnection"),ao(this,"channelNodeId"),ao(this,"crossOrigin"),ao(this,"message",(r,i,o)=>this.crossOrigin?this.postMessage(r,i,o):this.customEventMessage(r,i,o)),this.channelId=t!=null?t:pdt,this.channelNodeId=`channel-node-${wM()}`,this.crossOrigin=n,this.connection=new Promise(r=>{this.resolveConnection=r}),this.boundMessageHandler=this.handleMessage.bind(this)}disconnect(){this.onMessageHandlers=[],window.removeEventListener(this.channelId,this.boundMessageHandler),this.connection=new Promise(t=>{this.resolveConnection=t})}onMessage(t){this.onMessageHandlers.push(t)}removeMessageHandler(t){const n=this.onMessageHandlers.findIndex(r=>r===t);this.onMessageHandlers.splice(n,1)}customEventMessage(t,n,r){const i=new CustomEvent(this.channelId,{detail:{eventId:r,channelId:this.channelId,channelNodeId:this.channelNodeId,name:t,data:n}});window.dispatchEvent(i)}postMessage(t,n,r){var i,o,s,a;if(!((i=this.crossOrigin)!=null&&i.targetOrigin))throw new Error("A target origin was not specified.");(a=(o=this.crossOrigin)==null?void 0:o.window)==null||a.postMessage({eventId:r,channelId:this.channelId,channelNodeId:this.channelNodeId,name:t,data:n},(s=this.crossOrigin)==null?void 0:s.targetOrigin)}async eventRequest(t,n){const r=wM();return new Promise(i=>{const o=s=>{const{eventId:a}=s;r===a&&(this.removeMessageHandler(o),i(s))};this.onMessage(o),this.message(t,n,r)})}async waitForEvent(t){return new Promise(n=>{const r=i=>{const{name:o}=i;t===o&&(this.removeMessageHandler(r),n(i))};this.onMessage(r)})}handleMessage(t){var n;let r;if($2.isCustomEvent(t))r=t.detail;else{if(this.crossOrigin&&!this.crossOrigin.targetOrigin.includes(t.origin)&&((n=this.crossOrigin)==null?void 0:n.targetOrigin)!=="*")return;r=t.data}const{channelId:i,channelNodeId:o}=r;this.channelId===i&&this.channelNodeId!==o&&this.onMessageHandlers.forEach(s=>{s(r)})}static isCustomEvent(t){return t.detail!==void 0}}class vdt extends $2{connect(){return window.addEventListener(this.crossOrigin?"message":this.channelId,this.boundMessageHandler),this.eventRequest(fdt).then(t=>{this.resolveConnection(t)}),this.connection}}var ydt="Expected a function",AM=1/0,xdt=17976931348623157e292,SM=0/0,bdt="[object Symbol]",_dt=/^\s+|\s+$/g,wdt=/^[-+]0x[0-9a-f]+$/i,Adt=/^0b[01]+$/i,Sdt=/^0o[0-7]+$/i,Edt=parseInt,Cdt=Object.prototype,kdt=Cdt.toString;function Tdt(e,t){var n;if(typeof t!="function")throw new TypeError(ydt);return e=Rdt(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}function Mdt(e){return Tdt(2,e)}function EM(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function $dt(e){return!!e&&typeof e=="object"}function Pdt(e){return typeof e=="symbol"||$dt(e)&&kdt.call(e)==bdt}function Odt(e){if(!e)return e===0?e:0;if(e=Ddt(e),e===AM||e===-AM){var t=e<0?-1:1;return t*xdt}return e===e?e:0}function Rdt(e){var t=Odt(e),n=t%1;return t===t?n?t-n:t:0}function Ddt(e){if(typeof e=="number")return e;if(Pdt(e))return SM;if(EM(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=EM(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(_dt,"");var n=Adt.test(e);return n||Sdt.test(e)?Edt(e.slice(2),n?2:8):wdt.test(e)?SM:+e}var h8=Mdt,Ldt=Object.defineProperty,Idt=(e,t,n)=>t in e?Ldt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,od=(e,t,n)=>(Idt(e,typeof t!="symbol"?t+"":t,n),n);const Ndt=[62,-1,-1,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,63,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],Fdt=1,kr=typeof BigInt<"u"?BigInt:Number;function zdt(e){const t=e.charCodeAt(0);return Ndt[t-45]}function Bdt(e){let t=kr(0),n=kr(0);const r=[];if(e.split("").forEach(i=>{const o=kr(zdt(i));t|=(o&kr(31))<<n,(o&kr(32))===kr(0)?(r.push(t),t=kr(0),n=kr(0)):n+=kr(5)}),n>0)throw new Error("Invalid encoding");return r}function Vdt(e,t){if(+e.toString()!==Fdt)throw new Error("Invalid format version");const n=+t.toString(),r=n&15,i=n>>4&7,o=n>>7&15;return{precision:r,thirdDim:i,thirdDimPrecision:o}}function hy(e){let t=e;return t&kr(1)&&(t=~t),t>>=kr(1),+t.toString()}function jdt(e){const t=Bdt(e),n=Vdt(t[0],t[1]),r=10**n.precision,i=10**n.thirdDimPrecision,{thirdDim:o}=n;let s=0,a=0,l=0;const c=[];let u=2;for(;u<t.length;){const d=hy(t[u])/r,h=hy(t[u+1])/r;if(s+=d,a+=h,o){const f=hy(t[u+2])/i;l+=f,c.push([a,s,l]),u+=3}else c.push([a,s]),u+=2}if(u!==t.length)throw new Error("Invalid encoding. Premature ending reached");return{type:"FeatureCollection",features:[{id:"route",type:"Feature",geometry:{type:"LineString",coordinates:c}}]}}const Hdt=Object.freeze(Object.defineProperty({__proto__:null,decode:jdt},Symbol.toStringTag,{value:"Module"}));function Udt(e=[]){const t=n=>Object.values(n).map(r=>Array.isArray(r[0])?t(r):[r[1],r[0]]);return{type:"FeatureCollection",features:[{id:"schoolCatchment",type:"Feature",geometry:{type:"MultiPolygon",coordinates:t(e)}}]}}const Wdt=Object.freeze(Object.defineProperty({__proto__:null,formatGeometry:Udt},Symbol.toStringTag,{value:"Module"})),HEt=Object.freeze(Object.defineProperty({__proto__:null,polyline:Hdt,formatGeometry:Wdt},Symbol.toStringTag,{value:"Module"})),bg=e=>typeof e=="object"&&e!==null&&!Array.isArray(e);function f_(e,...t){if(!t.length)return e;const n=t.shift();return bg(e)&&bg(n)&&Object.keys(n).forEach(r=>{bg(n[r])?(e[r]||Object.assign(e,{[r]:{}}),f_(e[r],n[r])):Object.assign(e,{[r]:n[r]})}),f_(e,...t)}const Ydt=Object.freeze(Object.defineProperty({__proto__:null,isObject:bg,mergeDeep:f_},Symbol.toStringTag,{value:"Module"})),Gdt=(e,t,n)=>t===1?e:n!=null?n:`${e}s`,qdt=e=>e.charAt(0).toUpperCase()+e.slice(1),Xdt=({houseNumber:e,street:t,city:n,state:r,country:i,postalCode:o})=>[`${e?`${e&&t?`${e} `:`${e}`}`:""}${t||""}`,n,r,i,o].reduceRight((s,a)=>s&&a?`${a}, ${s}`:a||s||"")||"",UEt=Object.freeze(Object.defineProperty({__proto__:null,pluralize:Gdt,capitalize:qdt,formatAddress:Xdt},Symbol.toStringTag,{value:"Module"})),Qdt=({data:e,fileName:t,fileType:n})=>{const r=`text/${n}`,i=new Blob([e],{type:r}),o=document.createElement("a");o.download=`${t}.${n}`,o.href=window.URL.createObjectURL(i);const s=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!0});o.dispatchEvent(s),o.remove()},WEt=Object.freeze(Object.defineProperty({__proto__:null,downloadFile:Qdt},Symbol.toStringTag,{value:"Module"})),Kdt=(e,t)=>t==="school",Zdt=Object.freeze(Object.defineProperty({__proto__:null,isSchool:Kdt},Symbol.toStringTag,{value:"Module"})),YEt=Object.freeze(Object.defineProperty({__proto__:null,poi:Zdt},Symbol.toStringTag,{value:"Module"}));var On={},P2={},qh={},O2={};/*!
|
|
599
|
+
* cookie
|
|
600
|
+
* Copyright(c) 2012-2014 Roman Shtylman
|
|
601
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
602
|
+
* MIT Licensed
|
|
603
|
+
*/O2.parse=nht;O2.serialize=rht;var Jdt=decodeURIComponent,tht=encodeURIComponent,eht=/; */,cp=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function nht(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");for(var n={},r=t||{},i=e.split(eht),o=r.decode||Jdt,s=0;s<i.length;s++){var a=i[s],l=a.indexOf("=");if(!(l<0)){var c=a.substr(0,l).trim(),u=a.substr(++l,a.length).trim();u[0]=='"'&&(u=u.slice(1,-1)),n[c]==null&&(n[c]=iht(u,o))}}return n}function rht(e,t,n){var r=n||{},i=r.encode||tht;if(typeof i!="function")throw new TypeError("option encode is invalid");if(!cp.test(e))throw new TypeError("argument name is invalid");var o=i(t);if(o&&!cp.test(o))throw new TypeError("argument val is invalid");var s=e+"="+o;if(r.maxAge!=null){var a=r.maxAge-0;if(isNaN(a))throw new Error("maxAge should be a Number");s+="; Max-Age="+Math.floor(a)}if(r.domain){if(!cp.test(r.domain))throw new TypeError("option domain is invalid");s+="; Domain="+r.domain}if(r.path){if(!cp.test(r.path))throw new TypeError("option path is invalid");s+="; Path="+r.path}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");s+="; Expires="+r.expires.toUTCString()}if(r.httpOnly&&(s+="; HttpOnly"),r.secure&&(s+="; Secure"),r.sameSite){var l=typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite;switch(l){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;default:throw new TypeError("option sameSite is invalid")}}return s}function iht(e,t){try{return t(e)}catch(n){return e}}Object.defineProperty(qh,"__esModule",{value:!0});var oht=function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();qh.hasCookies=cht;var sht=O2,up=aht(sht);function aht(e){return e&&e.__esModule?e:{default:e}}function lht(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var lo="lS_",f8=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};lht(this,e),this.cookieOptions=Object.assign({path:"/"},t),lo=t.prefix===void 0?lo:t.prefix}return oht(e,[{key:"getItem",value:function(t){var n=up.default.parse(document.cookie);return!n||!n.hasOwnProperty(lo+t)?null:n[lo+t]}},{key:"setItem",value:function(t,n){return document.cookie=up.default.serialize(lo+t,n,this.cookieOptions),n}},{key:"removeItem",value:function(t){var n=Object.assign({},this.cookieOptions,{maxAge:-1});return document.cookie=up.default.serialize(lo+t,"",n),null}},{key:"clear",value:function(){var t=up.default.parse(document.cookie);for(var n in t)n.indexOf(lo)===0&&this.removeItem(n.substr(lo.length));return null}}]),e}();qh.default=f8;function cht(){var e=new f8;try{var t="__test";e.setItem(t,"1");var n=e.getItem(t);return e.removeItem(t),n==="1"}catch(r){return!1}}Object.defineProperty(P2,"__esModule",{value:!0});P2.default=dht;var uht=qh,CM="__test";function kM(e){try{var t=window[e];return t.setItem(CM,"1"),t.removeItem(CM),!0}catch(n){return!1}}function dht(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"localStorage",t=String(e).replace(/storage$/i,"").toLowerCase();if(t==="local")return kM("localStorage");if(t==="session")return kM("sessionStorage");if(t==="cookie")return(0,uht.hasCookies)();if(t==="memory")return!0;throw new Error("Storage method `"+e+"` is not available.\n Please use one of the following: localStorage, sessionStorage, cookieStorage, memoryStorage.")}var R2={};Object.defineProperty(R2,"__esModule",{value:!0});var hht=function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function fht(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var pht=function(){function e(){fht(this,e),this._data={}}return hht(e,[{key:"getItem",value:function(t){return this._data.hasOwnProperty(t)?this._data[t]:null}},{key:"setItem",value:function(t,n){return this._data[t]=String(n)}},{key:"removeItem",value:function(t){return delete this._data[t]}},{key:"clear",value:function(){return this._data={}}}]),e}();R2.default=pht;Object.defineProperty(On,"__esModule",{value:!0});On.MemoryStorage=On.CookieStorage=On.isSupported=On.storage=void 0;var ght=P2,_g=D2(ght),mht=qh,p8=D2(mht),vht=R2,g8=D2(vht);function D2(e){return e&&e.__esModule?e:{default:e}}var fl=null;(0,_g.default)("localStorage")?On.storage=fl=window.localStorage:(0,_g.default)("sessionStorage")?On.storage=fl=window.sessionStorage:(0,_g.default)("cookieStorage")?On.storage=fl=new p8.default:On.storage=fl=new g8.default;var yht=On.default=fl;On.storage=fl;On.isSupported=_g.default;On.CookieStorage=p8.default;On.MemoryStorage=g8.default;class m8{constructor(t="global"){od(this,"group"),od(this,"localStorage"),this.group=t,this.localStorage=yht}setGroup(t){this.group=t}getGroup(){return this.group}getItem(t){return this.localStorage.getItem(`${this.group}.${t}`)}setItem(t,n){this.localStorage.setItem(`${this.group}.${t}`,n)}removeItem(t){this.localStorage.removeItem(`${this.group}.${t}`)}}new m8;class xht{constructor(){od(this,"storageLocation","suggestion_history"),od(this,"storage"),od(this,"history",[]),this.storage=new m8("commute");const t=this.storage.getItem(this.storageLocation);t&&(this.history=JSON.parse(t))}push(t){this.history=this.removeDuplicateEntries(t),this.history.unshift(t),this.history.length>5&&(this.history=this.history.slice(0,5)),this.storage.setItem(this.storageLocation,JSON.stringify(this.history))}hasSuggestionHistory(){return this.history.length>0}getSuggestionHistory(){return this.history}removeDuplicateEntries(t){return this.history.filter(n=>n.locationId!==t.locationId)}}const GEt=new xht,bht=e=>{const t=v.exports.useRef(e),n=v.exports.useRef(),r=v.exports.useRef(!1),i=v.exports.useRef(!1),[,o]=v.exports.useState(0);r.current&&(i.current=!0),v.exports.useEffect(()=>(r.current||(n.current=t.current(),r.current=!0),o(s=>s+1),()=>{!i.current||n.current&&n.current()}),[])},_ht=(e,t)=>{const[n,r]=v.exports.useState(e);return v.exports.useEffect(()=>{const i=setTimeout(()=>{r(e)},t);return()=>{clearTimeout(i)}},[e,t]),n};var gu=(e=>(e.GET_STATE="get-state",e.GET_STATE_RESPONSE="get-state-response",e.SET_STATE="set-state",e.ON_CHANGE="on-change",e))(gu||{});const wht={zoom:16,pitch:0,bearing:0,cooperativeGestures:!0},TM={},fy={locale:"en"},Aht={"local-content":{globalOptions:fy,options:wht},"data-explorer":{globalOptions:fy,options:TM},demographics:{globalOptions:fy,options:TM}},v8=h8(()=>Z.createContext({})),y8=()=>{const e=Z.useContext(v8());if(!e)throw new Error("useStateManagerContext must be used under StateManagerProvider");return e},x8=Z.memo(({children:e})=>{const t=v8(),n=Cut(),r=Z.useRef(n),o=Ec().current.pathname.split("/"),s=o[o.length-1],a=Aht[s],l=Z.useRef(),[c,u]=v.exports.useState(!1),[d,h]=v.exports.useState(a),f=_ht(d,500),p=J9(),g=b=>{r.current=b,h(b)},y=b=>{var _;b.name===gu.GET_STATE&&((_=l.current)==null||_.message(gu.GET_STATE_RESPONSE,r.current,b.eventId)),b.name===gu.SET_STATE&&g(b.data)};bht(()=>{const b=new vdt(n.channelId,{targetOrigin:document.referrer,window:window.parent});l.current=b,b==null||b.onMessage(y),b==null||b.connect().then(_=>{const w=Ydt.mergeDeep(d,_.data);g(w),u(!0)})});const m=b=>{var _;(_=l.current)==null||_.message(gu.ON_CHANGE,b)};v.exports.useEffect(()=>{p({search:()=>f})},[f]),v.exports.useEffect(()=>{d.options&&m({type:"options",data:d.options})},[d.options]);const x=v.exports.useMemo(()=>({sdkState:d,setSdkState:g,onChange:m}),[d,g,m]);return c?O(t.Provider,{value:x,children:e}):null});x8.displayName="StateManagerProvider";const Sht={en:()=>Ji(()=>import("./index.aae000f4.js"),[]),fr:()=>Ji(()=>import("./index.77b51154.js"),[])},Eht={en:()=>Ji(()=>import("./index.f4fcee01.js"),[]),fr:()=>Ji(()=>import("./index.130c24fb.js"),[])},Cht={en:()=>Ji(()=>import("./index.6fa755af.js"),[]),fr:()=>Ji(()=>import("./index.80a3d0e2.js"),[])},kht={"local-content":e=>Eht[e](),"data-explorer":e=>Sht[e](),demographics:e=>Cht[e]()},b8=h8(()=>Z.createContext({})),qEt=()=>{const e=v.exports.useContext(b8());if(!e)throw new Error("useLangauges must be used under LanguagesProvider");return e},Tht=({children:e})=>{var h;const[t,n]=v.exports.useState(!0),[r,i]=v.exports.useState(),{sdkState:o}=y8(),s=((h=o.globalOptions)==null?void 0:h.locale)||"en",a=b8(),c=Ec().current.pathname.split("/"),u=c[c.length-1],d=kht[u];if(v.exports.useEffect(()=>{n(!0),d(s).then(f=>{i(f.translations)}).finally(()=>{n(!1)})},[s,d]),t)return null;if(!r)throw new Error("No translations were found.");return O(a.Provider,{value:{translations:r},children:e})};var Mht=Object.defineProperty,$ht=(e,t,n)=>t in e?Mht(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,sd=(e,t,n)=>($ht(e,typeof t!="symbol"?t+"":t,n),n);function Pht(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var _8={exports:{}},L2={exports:{}},w8=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}},Oht=w8,_s=Object.prototype.toString;function I2(e){return Array.isArray(e)}function p_(e){return typeof e>"u"}function Rht(e){return e!==null&&!p_(e)&&e.constructor!==null&&!p_(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function A8(e){return _s.call(e)==="[object ArrayBuffer]"}function Dht(e){return _s.call(e)==="[object FormData]"}function Lht(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&A8(e.buffer),t}function Iht(e){return typeof e=="string"}function Nht(e){return typeof e=="number"}function S8(e){return e!==null&&typeof e=="object"}function wg(e){if(_s.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function Fht(e){return _s.call(e)==="[object Date]"}function zht(e){return _s.call(e)==="[object File]"}function Bht(e){return _s.call(e)==="[object Blob]"}function E8(e){return _s.call(e)==="[object Function]"}function Vht(e){return S8(e)&&E8(e.pipe)}function jht(e){return _s.call(e)==="[object URLSearchParams]"}function Hht(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function Uht(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function N2(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),I2(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}function g_(){var e={};function t(i,o){wg(e[o])&&wg(i)?e[o]=g_(e[o],i):wg(i)?e[o]=g_({},i):I2(i)?e[o]=i.slice():e[o]=i}for(var n=0,r=arguments.length;n<r;n++)N2(arguments[n],t);return e}function Wht(e,t,n){return N2(t,function(r,i){n&&typeof r=="function"?e[i]=Oht(r,n):e[i]=r}),e}function Yht(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}var jn={isArray:I2,isArrayBuffer:A8,isBuffer:Rht,isFormData:Dht,isArrayBufferView:Lht,isString:Iht,isNumber:Nht,isObject:S8,isPlainObject:wg,isUndefined:p_,isDate:Fht,isFile:zht,isBlob:Bht,isFunction:E8,isStream:Vht,isURLSearchParams:jht,isStandardBrowserEnv:Uht,forEach:N2,merge:g_,extend:Wht,trim:Hht,stripBOM:Yht},Fa=jn;function MM(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var C8=function(e,t,n){if(!t)return e;var r;if(n)r=n(t);else if(Fa.isURLSearchParams(t))r=t.toString();else{var i=[];Fa.forEach(t,function(s,a){s===null||typeof s>"u"||(Fa.isArray(s)?a=a+"[]":s=[s],Fa.forEach(s,function(l){Fa.isDate(l)?l=l.toISOString():Fa.isObject(l)&&(l=JSON.stringify(l)),i.push(MM(a)+"="+MM(l))}))}),r=i.join("&")}if(r){var o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+r}return e},Ght=jn;function kv(){this.handlers=[]}kv.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1};kv.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)};kv.prototype.forEach=function(e){Ght.forEach(this.handlers,function(t){t!==null&&e(t)})};var qht=kv,Xht=jn,Qht=function(e,t){Xht.forEach(e,function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])})},k8=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e},T8={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},py,$M;function M8(){if($M)return py;$M=1;var e=k8;return py=function(t,n,r,i,o){var s=new Error(t);return e(s,n,r,i,o)},py}var gy,PM;function Kht(){if(PM)return gy;PM=1;var e=M8();return gy=function(t,n,r){var i=r.config.validateStatus;!r.status||!i||i(r.status)?t(r):n(e("Request failed with status code "+r.status,r.config,null,r.request,r))},gy}var my,OM;function Zht(){if(OM)return my;OM=1;var e=jn;return my=e.isStandardBrowserEnv()?function(){return{write:function(t,n,r,i,o,s){var a=[];a.push(t+"="+encodeURIComponent(n)),e.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),e.isString(i)&&a.push("path="+i),e.isString(o)&&a.push("domain="+o),s===!0&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){var n=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),my}var RM,DM;function Jht(){return DM||(DM=1,RM=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}),RM}var LM,IM;function tft(){return IM||(IM=1,LM=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}),LM}var vy,NM;function eft(){if(NM)return vy;NM=1;var e=Jht(),t=tft();return vy=function(n,r){return n&&!e(r)?t(n,r):r},vy}var yy,FM;function nft(){if(FM)return yy;FM=1;var e=jn,t=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return yy=function(n){var r={},i,o,s;return n&&e.forEach(n.split(`
|
|
604
|
+
`),function(a){if(s=a.indexOf(":"),i=e.trim(a.substr(0,s)).toLowerCase(),o=e.trim(a.substr(s+1)),i){if(r[i]&&t.indexOf(i)>=0)return;i==="set-cookie"?r[i]=(r[i]?r[i]:[]).concat([o]):r[i]=r[i]?r[i]+", "+o:o}}),r},yy}var xy,zM;function rft(){if(zM)return xy;zM=1;var e=jn;return xy=e.isStandardBrowserEnv()?function(){var t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),r;function i(o){var s=o;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(o){var s=e.isString(o)?i(o):o;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}(),xy}var by,BM;function Tv(){if(BM)return by;BM=1;function e(t){this.message=t}return e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,by=e,by}var _y,VM;function ift(){if(VM)return _y;VM=1;var e=jn,t=Kht(),n=Zht(),r=C8,i=eft(),o=nft(),s=rft(),a=M8(),l=T8,c=Tv();return _y=function(u){return new Promise(function(d,h){var f=u.data,p=u.headers,g=u.responseType,y;function m(){u.cancelToken&&u.cancelToken.unsubscribe(y),u.signal&&u.signal.removeEventListener("abort",y)}e.isFormData(f)&&delete p["Content-Type"];var x=new XMLHttpRequest;if(u.auth){var b=u.auth.username||"",_=u.auth.password?unescape(encodeURIComponent(u.auth.password)):"";p.Authorization="Basic "+btoa(b+":"+_)}var w=i(u.baseURL,u.url);x.open(u.method.toUpperCase(),r(w,u.params,u.paramsSerializer),!0),x.timeout=u.timeout;function A(){if(x){var E="getAllResponseHeaders"in x?o(x.getAllResponseHeaders()):null,k=!g||g==="text"||g==="json"?x.responseText:x.response,C={data:k,status:x.status,statusText:x.statusText,headers:E,config:u,request:x};t(function(T){d(T),m()},function(T){h(T),m()},C),x=null}}if("onloadend"in x?x.onloadend=A:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.indexOf("file:")===0)||setTimeout(A)},x.onabort=function(){!x||(h(a("Request aborted",u,"ECONNABORTED",x)),x=null)},x.onerror=function(){h(a("Network Error",u,null,x)),x=null},x.ontimeout=function(){var E=u.timeout?"timeout of "+u.timeout+"ms exceeded":"timeout exceeded",k=u.transitional||l;u.timeoutErrorMessage&&(E=u.timeoutErrorMessage),h(a(E,u,k.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",x)),x=null},e.isStandardBrowserEnv()){var S=(u.withCredentials||s(w))&&u.xsrfCookieName?n.read(u.xsrfCookieName):void 0;S&&(p[u.xsrfHeaderName]=S)}"setRequestHeader"in x&&e.forEach(p,function(E,k){typeof f>"u"&&k.toLowerCase()==="content-type"?delete p[k]:x.setRequestHeader(k,E)}),e.isUndefined(u.withCredentials)||(x.withCredentials=!!u.withCredentials),g&&g!=="json"&&(x.responseType=u.responseType),typeof u.onDownloadProgress=="function"&&x.addEventListener("progress",u.onDownloadProgress),typeof u.onUploadProgress=="function"&&x.upload&&x.upload.addEventListener("progress",u.onUploadProgress),(u.cancelToken||u.signal)&&(y=function(E){!x||(h(!E||E&&E.type?new c("canceled"):E),x.abort(),x=null)},u.cancelToken&&u.cancelToken.subscribe(y),u.signal&&(u.signal.aborted?y():u.signal.addEventListener("abort",y))),f||(f=null),x.send(f)})},_y}var Ye=jn,jM=Qht,oft=k8,sft=T8,aft={"Content-Type":"application/x-www-form-urlencoded"};function HM(e,t){!Ye.isUndefined(e)&&Ye.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function lft(){var e;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(e=ift()),e}function cft(e,t,n){if(Ye.isString(e))try{return(t||JSON.parse)(e),Ye.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}var Mv={transitional:sft,adapter:lft(),transformRequest:[function(e,t){return jM(t,"Accept"),jM(t,"Content-Type"),Ye.isFormData(e)||Ye.isArrayBuffer(e)||Ye.isBuffer(e)||Ye.isStream(e)||Ye.isFile(e)||Ye.isBlob(e)?e:Ye.isArrayBufferView(e)?e.buffer:Ye.isURLSearchParams(e)?(HM(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):Ye.isObject(e)||t&&t["Content-Type"]==="application/json"?(HM(t,"application/json"),cft(e)):e}],transformResponse:[function(e){var t=this.transitional||Mv.transitional,n=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,i=!n&&this.responseType==="json";if(i||r&&Ye.isString(e)&&e.length)try{return JSON.parse(e)}catch(o){if(i)throw o.name==="SyntaxError"?oft(o,this,"E_JSON_PARSE"):o}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Ye.forEach(["delete","get","head"],function(e){Mv.headers[e]={}});Ye.forEach(["post","put","patch"],function(e){Mv.headers[e]=Ye.merge(aft)});var F2=Mv,uft=jn,dft=F2,hft=function(e,t,n){var r=this||dft;return uft.forEach(n,function(i){e=i.call(r,e,t)}),e},UM,WM;function $8(){return WM||(WM=1,UM=function(e){return!!(e&&e.__CANCEL__)}),UM}var YM=jn,wy=hft,fft=$8(),pft=F2,gft=Tv();function Ay(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new gft("canceled")}var mft=function(e){Ay(e),e.headers=e.headers||{},e.data=wy.call(e,e.data,e.headers,e.transformRequest),e.headers=YM.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),YM.forEach(["delete","get","head","post","put","patch","common"],function(n){delete e.headers[n]});var t=e.adapter||pft.adapter;return t(e).then(function(n){return Ay(e),n.data=wy.call(e,n.data,n.headers,e.transformResponse),n},function(n){return fft(n)||(Ay(e),n&&n.response&&(n.response.data=wy.call(e,n.response.data,n.response.headers,e.transformResponse))),Promise.reject(n)})},Hn=jn,P8=function(e,t){t=t||{};var n={};function r(c,u){return Hn.isPlainObject(c)&&Hn.isPlainObject(u)?Hn.merge(c,u):Hn.isPlainObject(u)?Hn.merge({},u):Hn.isArray(u)?u.slice():u}function i(c){if(Hn.isUndefined(t[c])){if(!Hn.isUndefined(e[c]))return r(void 0,e[c])}else return r(e[c],t[c])}function o(c){if(!Hn.isUndefined(t[c]))return r(void 0,t[c])}function s(c){if(Hn.isUndefined(t[c])){if(!Hn.isUndefined(e[c]))return r(void 0,e[c])}else return r(void 0,t[c])}function a(c){if(c in t)return r(e[c],t[c]);if(c in e)return r(void 0,e[c])}var l={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a};return Hn.forEach(Object.keys(e).concat(Object.keys(t)),function(c){var u=l[c]||i,d=u(c);Hn.isUndefined(d)&&u!==a||(n[c]=d)}),n},GM,qM;function O8(){return qM||(qM=1,GM={version:"0.26.1"}),GM}var vft=O8().version,z2={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){z2[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var XM={};z2.transitional=function(e,t,n){function r(i,o){return"[Axios v"+vft+"] Transitional option '"+i+"'"+o+(n?". "+n:"")}return function(i,o,s){if(e===!1)throw new Error(r(o," has been removed"+(t?" in "+t:"")));return t&&!XM[o]&&(XM[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(i,o,s):!0}};function yft(e,t,n){if(typeof e!="object")throw new TypeError("options must be an object");for(var r=Object.keys(e),i=r.length;i-- >0;){var o=r[i],s=t[o];if(s){var a=e[o],l=a===void 0||s(a,o,e);if(l!==!0)throw new TypeError("option "+o+" must be "+l);continue}if(n!==!0)throw Error("Unknown option "+o)}}var xft={assertOptions:yft,validators:z2},R8=jn,bft=C8,QM=qht,KM=mft,$v=P8,D8=xft,za=D8.validators;function Xh(e){this.defaults=e,this.interceptors={request:new QM,response:new QM}}Xh.prototype.request=function(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=$v(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;n!==void 0&&D8.assertOptions(n,{silentJSONParsing:za.transitional(za.boolean),forcedJSONParsing:za.transitional(za.boolean),clarifyTimeoutError:za.transitional(za.boolean)},!1);var r=[],i=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(t)===!1||(i=i&&d.synchronous,r.unshift(d.fulfilled,d.rejected))});var o=[];this.interceptors.response.forEach(function(d){o.push(d.fulfilled,d.rejected)});var s;if(!i){var a=[KM,void 0];for(Array.prototype.unshift.apply(a,r),a=a.concat(o),s=Promise.resolve(t);a.length;)s=s.then(a.shift(),a.shift());return s}for(var l=t;r.length;){var c=r.shift(),u=r.shift();try{l=c(l)}catch(d){u(d);break}}try{s=KM(l)}catch(d){return Promise.reject(d)}for(;o.length;)s=s.then(o.shift(),o.shift());return s};Xh.prototype.getUri=function(e){return e=$v(this.defaults,e),bft(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")};R8.forEach(["delete","get","head","options"],function(e){Xh.prototype[e]=function(t,n){return this.request($v(n||{},{method:e,url:t,data:(n||{}).data}))}});R8.forEach(["post","put","patch"],function(e){Xh.prototype[e]=function(t,n,r){return this.request($v(r||{},{method:e,url:t,data:n}))}});var _ft=Xh,Sy,ZM;function wft(){if(ZM)return Sy;ZM=1;var e=Tv();function t(n){if(typeof n!="function")throw new TypeError("executor must be a function.");var r;this.promise=new Promise(function(o){r=o});var i=this;this.promise.then(function(o){if(i._listeners){var s,a=i._listeners.length;for(s=0;s<a;s++)i._listeners[s](o);i._listeners=null}}),this.promise.then=function(o){var s,a=new Promise(function(l){i.subscribe(l),s=l}).then(o);return a.cancel=function(){i.unsubscribe(s)},a},n(function(o){i.reason||(i.reason=new e(o),r(i.reason))})}return t.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},t.prototype.subscribe=function(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]},t.prototype.unsubscribe=function(n){if(this._listeners){var r=this._listeners.indexOf(n);r!==-1&&this._listeners.splice(r,1)}},t.source=function(){var n,r=new t(function(i){n=i});return{token:r,cancel:n}},Sy=t,Sy}var JM,t$;function Aft(){return t$||(t$=1,JM=function(e){return function(t){return e.apply(null,t)}}),JM}var Ey,e$;function Sft(){if(e$)return Ey;e$=1;var e=jn;return Ey=function(t){return e.isObject(t)&&t.isAxiosError===!0},Ey}var n$=jn,Eft=w8,Ag=_ft,Cft=P8,kft=F2;function L8(e){var t=new Ag(e),n=Eft(Ag.prototype.request,t);return n$.extend(n,Ag.prototype,t),n$.extend(n,t),n.create=function(r){return L8(Cft(e,r))},n}var mi=L8(kft);mi.Axios=Ag;mi.Cancel=Tv();mi.CancelToken=wft();mi.isCancel=$8();mi.VERSION=O8().version;mi.all=function(e){return Promise.all(e)};mi.spread=Aft();mi.isAxiosError=Sft();L2.exports=mi;L2.exports.default=mi;(function(e){e.exports=L2.exports})(_8);const I8=Pht(_8.exports),Tft=(e,t)=>I8.create({baseURL:{VITE_HERE_API_KEY:"KDL0aAzsbOcv7p53P2ovno2izfDOe93hyzZRrayktbE",VITE_API_KEY:"V3 dDMCy1EKO25e8GS5ZBB9Xe7YS52bfUrf.04252efe-5994-47bd-ad37-23e86f102d69",VITE_REACT_APP_MAPTILER_KEY:"9jNGatuzs05Q1oNlctEs",VITE_SEGMENT_KEY:"c0SISxJpICLXxstkrSppa4uxwYzBQbqf",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}.VITE_API_URL||"https://api.locallogic.co/v3/",headers:{Accept:"application/json",Authorization:e},params:t});var N8=(e=>(e[e.groceries=0]="groceries",e[e.groceries_specialized=1]="groceries_specialized",e[e.shopping=2]="shopping",e[e.nightlife=3]="nightlife",e[e.restaurants=4]="restaurants",e[e.cafes=5]="cafes",e[e.daycares=6]="daycares",e[e.bus_stops=7]="bus_stops",e[e.rapid_transit_stations=8]="rapid_transit_stations",e[e.train_stations=9]="train_stations",e[e.parks=10]="parks",e[e.healthy_restaurants=11]="healthy_restaurants",e[e.fitness=12]="fitness",e[e.sport_facilities=13]="sport_facilities",e[e.health_care=14]="health_care",e[e.pet_care=15]="pet_care",e[e.car_fueling_stations=16]="car_fueling_stations",e[e.art_culture_science=17]="art_culture_science",e[e.home_improvement=18]="home_improvement",e[e.personal_care=19]="personal_care",e))(N8||{});const Mft="/pois";function ka(e){this._maxSize=e,this.clear()}ka.prototype.clear=function(){this._size=0,this._values=Object.create(null)};ka.prototype.get=function(e){return this._values[e]};ka.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var $ft=/[^.^\]^[]+|(?=\[\]|\.\.)/g,F8=/^\d+$/,Pft=/^\d/,Oft=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,Rft=/^\s*(['"]?)(.*?)(\1)\s*$/,B2=512,r$=new ka(B2),i$=new ka(B2),o$=new ka(B2),aa={Cache:ka,split:m_,normalizePath:Cy,setter:function(e){var t=Cy(e);return i$.get(e)||i$.set(e,function(n,r){for(var i=0,o=t.length,s=n;i<o-1;){var a=t[i];if(a==="__proto__"||a==="constructor"||a==="prototype")return n;s=s[t[i++]]}s[t[i]]=r})},getter:function(e,t){var n=Cy(e);return o$.get(e)||o$.set(e,function(r){for(var i=0,o=n.length;i<o;)if(r!=null||!t)r=r[n[i++]];else return;return r})},join:function(e){return e.reduce(function(t,n){return t+(V2(n)||F8.test(n)?"["+n+"]":(t?".":"")+n)},"")},forEach:function(e,t,n){Dft(Array.isArray(e)?e:m_(e),t,n)}};function Cy(e){return r$.get(e)||r$.set(e,m_(e).map(function(t){return t.replace(Rft,"$2")}))}function m_(e){return e.match($ft)||[""]}function Dft(e,t,n){var r=e.length,i,o,s,a;for(o=0;o<r;o++)i=e[o],i&&(Nft(i)&&(i='"'+i+'"'),a=V2(i),s=!a&&/^\d+$/.test(i),t.call(n,i,a,s,o,e))}function V2(e){return typeof e=="string"&&e&&["'",'"'].indexOf(e.charAt(0))!==-1}function Lft(e){return e.match(Pft)&&!e.match(F8)}function Ift(e){return Oft.test(e)}function Nft(e){return!V2(e)&&(Lft(e)||Ift(e))}const Fft=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \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]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \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\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \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]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \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\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \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\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,Pv=e=>e.match(Fft)||[],Ov=e=>e[0].toUpperCase()+e.slice(1),j2=(e,t)=>Pv(e).join(t).toLowerCase(),z8=e=>Pv(e).reduce((t,n)=>`${t}${t?n[0].toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()}`,""),zft=e=>Ov(z8(e)),Bft=e=>j2(e,"_"),Vft=e=>j2(e,"-"),jft=e=>Ov(j2(e," ")),Hft=e=>Pv(e).map(Ov).join(" ");var ky={words:Pv,upperFirst:Ov,camelCase:z8,pascalCase:zft,snakeCase:Bft,kebabCase:Vft,sentenceCase:jft,titleCase:Hft},H2={exports:{}};H2.exports=function(e){return B8(Uft(e),e)};H2.exports.array=B8;function B8(e,t){var n=e.length,r=new Array(n),i={},o=n,s=Wft(t),a=Yft(e);for(t.forEach(function(c){if(!a.has(c[0])||!a.has(c[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});o--;)i[o]||l(e[o],o,new Set);return r;function l(c,u,d){if(d.has(c)){var h;try{h=", node was:"+JSON.stringify(c)}catch(g){h=""}throw new Error("Cyclic dependency"+h)}if(!a.has(c))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(c));if(!i[u]){i[u]=!0;var f=s.get(c)||new Set;if(f=Array.from(f),u=f.length){d.add(c);do{var p=f[--u];l(p,a.get(p),d)}while(u);d.delete(c)}r[--n]=c}}}function Uft(e){for(var t=new Set,n=0,r=e.length;n<r;n++){var i=e[n];t.add(i[0]),t.add(i[1])}return Array.from(t)}function Wft(e){for(var t=new Map,n=0,r=e.length;n<r;n++){var i=e[n];t.has(i[0])||t.set(i[0],new Set),t.has(i[1])||t.set(i[1],new Set),t.get(i[0]).add(i[1])}return t}function Yft(e){for(var t=new Map,n=0,r=e.length;n<r;n++)t.set(e[n],n);return t}const Gft=Object.prototype.toString,qft=Error.prototype.toString,Xft=RegExp.prototype.toString,Qft=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",Kft=/^Symbol\((.*)\)(.*)$/;function Zft(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function s$(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return Zft(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return Qft.call(e).replace(Kft,"Symbol($1)");const r=Gft.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+qft.call(e)+"]":r==="RegExp"?Xft.call(e):null}function la(e,t){let n=s$(e,t);return n!==null?n:JSON.stringify(e,function(r,i){let o=s$(this[r],t);return o!==null?o:i},2)}function V8(e){return e==null?[]:[].concat(e)}let Jft=/\$\{\s*(\w+)\s*\}/g;class kn extends Error{static formatError(t,n){const r=n.label||n.path||"this";return r!==n.path&&(n=Object.assign({},n,{path:r})),typeof t=="string"?t.replace(Jft,(i,o)=>la(n[o])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,r,i){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this.name="ValidationError",this.value=n,this.path=r,this.type=i,this.errors=[],this.inner=[],V8(t).forEach(o=>{kn.isError(o)?(this.errors.push(...o.errors),this.inner=this.inner.concat(o.inner.length?o.inner:o)):this.errors.push(o)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,kn)}}let Ti={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{const i=r!=null&&r!==n?` (cast from the value \`${la(r,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${la(n,!0)}\``+i:`${e} must match the configured type. The validated value was: \`${la(n,!0)}\``+i}},Cr={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},mo={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},v_={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},y_={isValue:"${path} field must be ${value}"},x_={noUnknown:"${path} field has unspecified keys: ${unknown}"},Sg={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"};Object.assign(Object.create(null),{mixed:Ti,string:Cr,number:mo,date:v_,object:x_,array:Sg,boolean:y_});const Rv=e=>e&&e.__isYupSchema__;class Km{static fromOptions(t,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:i,otherwise:o}=n,s=typeof r=="function"?r:(...a)=>a.every(l=>l===r);return new Km(t,(a,l)=>{var c;let u=s(...a)?i:o;return(c=u==null?void 0:u(l))!=null?c:l})}constructor(t,n){this.fn=void 0,this.refs=t,this.refs=t,this.fn=n}resolve(t,n){let r=this.refs.map(o=>o.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),i=this.fn(r,t,n);if(i===void 0||i===t)return t;if(!Rv(i))throw new TypeError("conditions must return a schema object");return i.resolve(n)}}function tpt(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}const dp={context:"$",value:"."};class Vi{constructor(t,n={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===dp.context,this.isValue=this.key[0]===dp.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?dp.context:this.isValue?dp.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&aa.getter(this.path,!0),this.map=n.map}getValue(t,n,r){let i=this.isContext?r:this.isValue?t:n;return this.getter&&(i=this.getter(i||{})),this.map&&(i=this.map(i)),i}cast(t,n){return this.getValue(t,n==null?void 0:n.parent,n==null?void 0:n.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}Vi.prototype.__isYupRef=!0;const pr=e=>e==null,ept=["value","path","label","options","originalValue","spec","sync"];function Ba(e){function t(n,r,i){let{value:o,path:s="",label:a,options:l,originalValue:c,spec:u,sync:d}=n,h=tpt(n,ept);const{name:f,test:p,params:g,message:y,skipAbsent:m}=e;let{parent:x,context:b,abortEarly:_=h.schema.spec.abortEarly}=l;function w(N){return Vi.isRef(N)?N.getValue(o,x,b):N}function A(N={}){const D=Object.assign({value:o,originalValue:c,label:a,path:N.path||s,spec:u},g,N.params);for(const Q of Object.keys(D))D[Q]=w(D[Q]);const Y=new kn(kn.formatError(N.message||y,D),o,D.path,N.type||f);return Y.params=D,Y}const S=_?r:i;let E=Object.assign({path:s,parent:x,type:f,createError:A,resolve:w,options:l,originalValue:c},h);const k=N=>{kn.isError(N)?S(N):N?i(null):S(A())},C=N=>{kn.isError(N)?S(N):r(N)},T=m&&pr(o);if(!d){try{Promise.resolve(T?!0:p.call(E,o,E)).then(k,C)}catch(N){C(N)}return}let $;try{var I;if($=T?!0:p.call(E,o,E),typeof((I=$)==null?void 0:I.then)=="function")throw new Error(`Validation test of type: "${E.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`)}catch(N){C(N);return}k($)}return t.OPTIONS=e,t}let npt=e=>e.substr(0,e.length-1).substr(1);function rpt(e,t,n,r=n){let i,o,s;return t?(aa.forEach(t,(a,l,c)=>{let u=l?npt(a):a;e=e.resolve({context:r,parent:i,value:n});let d=e.type==="tuple",h=c?parseInt(u,10):0;if(e.innerType||d){if(d&&!c)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${s}" must contain an index to the tuple element, e.g. "${s}[0]"`);if(n&&h>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${a}, in the path: ${t}. because there is no value at that index. `);i=n,n=n&&n[h],e=d?e.spec.types[h]:e.innerType}if(!c){if(!e.fields||!e.fields[u])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${s} which is a type: "${e.type}")`);i=n,n=n&&n[u],e=e.fields[u]}o=u,s=l?"["+a+"]":"."+a}),{schema:e,parent:i,parentPath:o}):{parent:i,parentPath:t,schema:e}}class Zm{constructor(){this.list=void 0,this.refs=void 0,this.list=new Set,this.refs=new Map}get size(){return this.list.size+this.refs.size}describe(){const t=[];for(const n of this.list)t.push(n);for(const[,n]of this.refs)t.push(n.describe());return t}toArray(){return Array.from(this.list).concat(Array.from(this.refs.values()))}resolveAll(t){return this.toArray().reduce((n,r)=>n.concat(Vi.isRef(r)?t(r):r),[])}add(t){Vi.isRef(t)?this.refs.set(t.key,t):this.list.add(t)}delete(t){Vi.isRef(t)?this.refs.delete(t.key):this.list.delete(t)}clone(){const t=new Zm;return t.list=new Set(this.list),t.refs=new Map(this.refs),t}merge(t,n){const r=this.clone();return t.list.forEach(i=>r.add(i)),t.refs.forEach(i=>r.add(i)),n.list.forEach(i=>r.delete(i)),n.refs.forEach(i=>r.delete(i)),r}}function pl(e,t=new Map){if(Rv(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let r=0;r<e.length;r++)n[r]=pl(e[r],t)}else if(e instanceof Map){n=new Map,t.set(e,n);for(const[r,i]of e.entries())n.set(r,pl(i,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const r of e)n.add(pl(r,t))}else if(e instanceof Object){n={},t.set(e,n);for(const[r,i]of Object.entries(e))n[r]=pl(i,t)}else throw Error(`Unable to clone ${e}`);return n}class nr{constructor(t){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new Zm,this._blacklist=new Zm,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(Ti.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(n=>{n.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeCheck=this._typeCheck,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.internalTests=Object.assign({},this.internalTests),n.exclusiveTests=Object.assign({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=pl(Object.assign({},this.spec,t)),n}label(t){let n=this.clone();return n.spec.label=t,n}meta(...t){if(t.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},t[0]),n}withMutation(t){let n=this._mutate;this._mutate=!0;let r=t(this);return this._mutate=n,r}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let n=this,r=t.clone();const i=Object.assign({},n.spec,r.spec);return r.spec=i,r.internalTests=Object.assign({},n.internalTests,r.internalTests),r._whitelist=n._whitelist.merge(t._whitelist,t._blacklist),r._blacklist=n._blacklist.merge(t._blacklist,t._whitelist),r.tests=n.tests,r.exclusiveTests=n.exclusiveTests,r.withMutation(o=>{t.tests.forEach(s=>{o.test(s.OPTIONS)})}),r.transforms=[...n.transforms,...r.transforms],r}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let n=this;if(n.conditions.length){let r=n.conditions;n=n.clone(),n.conditions=[],n=r.reduce((i,o)=>o.resolve(i,t),n),n=n.resolve(t)}return n}resolveOptions(t){var n,r,i;return Object.assign({},t,{from:t.from||[],strict:(n=t.strict)!=null?n:this.spec.strict,abortEarly:(r=t.abortEarly)!=null?r:this.spec.abortEarly,recursive:(i=t.recursive)!=null?i:this.spec.recursive})}cast(t,n={}){let r=this.resolve(Object.assign({value:t},n)),i=n.assert==="ignore-optionality",o=r._cast(t,n);if(n.assert!==!1&&!r.isType(o)){if(i&&pr(o))return o;let s=la(t),a=la(o);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}".
|
|
605
|
+
|
|
606
|
+
attempted value: ${s}
|
|
607
|
+
`+(a!==s?`result of cast: ${a}`:""))}return o}_cast(t,n){let r=t===void 0?t:this.transforms.reduce((i,o)=>o.call(this,i,t,this),t);return r===void 0&&(r=this.getDefault()),r}_validate(t,n={},r,i){let{sync:o,path:s,from:a=[],originalValue:l=t,strict:c=this.spec.strict}=n,u=t;c||(u=this._cast(u,Object.assign({assert:!1},n)));let d={value:u,path:s,options:n,originalValue:l,schema:this,label:this.spec.label,spec:this.spec,sync:o,from:a},h=[];for(let f of Object.values(this.internalTests))f&&h.push(f);this.runTests({args:d,value:u,tests:h},r,f=>{if(f.length)return i(f,u);this.runTests({args:d,value:u,tests:this.tests},r,i)})}runTests(t,n,r){let i=!1,{tests:o,args:s,value:a}=t,l=h=>{i||(i=!0,n(h,a))},c=h=>{i||(i=!0,r(h,a))},u=o.length,d=[];if(!u)return c([]);for(let h=0;h<o.length;h++){const f=o[h];f(s,l,function(p){p&&(d=d.concat(p)),--u<=0&&c(d)})}}asNestedTest({key:t,index:n,parent:r,parentPath:i,originalParent:o,options:s}){const a=t!=null?t:n;if(a==null)throw TypeError("Must include `key` or `index` for nested validations");const l=typeof a=="number";let c=r[a];const u=Object.assign({},s,{strict:!0,parent:r,value:c,originalValue:o[a],key:void 0,[l?"index":"key"]:a,path:l||a.includes(".")?`${i||""}[${c?a:`"${a}"`}]`:(i?`${i}.`:"")+t});return(d,h,f)=>this.resolve(u)._validate(c,u,h,f)}validate(t,n){let r=this.resolve(Object.assign({},n,{value:t}));return new Promise((i,o)=>r._validate(t,n,(s,a)=>{kn.isError(s)&&(s.value=a),o(s)},(s,a)=>{s.length?o(new kn(s,a)):i(a)}))}validateSync(t,n){let r=this.resolve(Object.assign({},n,{value:t})),i;return r._validate(t,Object.assign({},n,{sync:!0}),(o,s)=>{throw kn.isError(o)&&(o.value=s),o},(o,s)=>{if(o.length)throw new kn(o,t);i=s}),i}isValid(t,n){return this.validate(t,n).then(()=>!0,r=>{if(kn.isError(r))return!1;throw r})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(r){if(kn.isError(r))return!1;throw r}}_getDefault(){let t=this.spec.default;return t==null?t:typeof t=="function"?t.call(this):pl(t)}getDefault(t){return this.resolve(t||{})._getDefault()}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,n){const r=this.clone({nullable:t});return r.internalTests.nullable=Ba({message:n,name:"nullable",test(i){return i===null?this.schema.spec.nullable:!0}}),r}optionality(t,n){const r=this.clone({optional:t});return r.internalTests.optionality=Ba({message:n,name:"optionality",test(i){return i===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(t=Ti.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=Ti.notNull){return this.nullability(!1,t)}required(t=Ti.required){return this.clone().withMutation(n=>n.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let n=this.clone();return n.transforms.push(t),n}test(...t){let n;if(t.length===1?typeof t[0]=="function"?n={test:t[0]}:n=t[0]:t.length===2?n={name:t[0],test:t[1]}:n={name:t[0],message:t[1],test:t[2]},n.message===void 0&&(n.message=Ti.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),i=Ba(n),o=n.exclusive||n.name&&r.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(r.exclusiveTests[n.name]=!!n.exclusive),r.tests=r.tests.filter(s=>!(s.OPTIONS.name===n.name&&(o||s.OPTIONS.test===i.OPTIONS.test))),r.tests.push(i),r}when(t,n){!Array.isArray(t)&&typeof t!="string"&&(n=t,t=".");let r=this.clone(),i=V8(t).map(o=>new Vi(o));return i.forEach(o=>{o.isSibling&&r.deps.push(o.key)}),r.conditions.push(typeof n=="function"?new Km(i,n):Km.fromOptions(i,n)),r}typeError(t){let n=this.clone();return n.internalTests.typeError=Ba({message:t,name:"typeError",test(r){return!pr(r)&&!this.schema._typeCheck(r)?this.createError({params:{type:this.schema.type}}):!0}}),n}oneOf(t,n=Ti.oneOf){let r=this.clone();return t.forEach(i=>{r._whitelist.add(i),r._blacklist.delete(i)}),r.internalTests.whiteList=Ba({message:n,name:"oneOf",test(i){if(i===void 0)return!0;let o=this.schema._whitelist,s=o.resolveAll(this.resolve);return s.includes(i)?!0:this.createError({params:{values:o.toArray().join(", "),resolved:s}})}}),r}notOneOf(t,n=Ti.notOneOf){let r=this.clone();return t.forEach(i=>{r._blacklist.add(i),r._whitelist.delete(i)}),r.internalTests.blacklist=Ba({message:n,name:"notOneOf",test(i){let o=this.schema._blacklist,s=o.resolveAll(this.resolve);return s.includes(i)?this.createError({params:{values:o.toArray().join(", "),resolved:s}}):!0}}),r}strip(t=!0){let n=this.clone();return n.spec.strip=t,n}describe(t){const n=(t?this.resolve(t):this).clone(),{label:r,meta:i,optional:o,nullable:s}=n.spec;return{meta:i,label:r,optional:o,nullable:s,type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.map(a=>({name:a.OPTIONS.name,params:a.OPTIONS.params})).filter((a,l,c)=>c.findIndex(u=>u.name===a.name)===l)}}}nr.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])nr.prototype[`${e}At`]=function(t,n,r={}){const{parent:i,parentPath:o,schema:s}=rpt(this,t,n,r.context);return s[e](i&&i[o],Object.assign({},r,{parent:i,path:t}))};for(const e of["equals","is"])nr.prototype[e]=nr.prototype.oneOf;for(const e of["not","nope"])nr.prototype[e]=nr.prototype.notOneOf;function U2(){return new j8}class j8 extends nr{constructor(){super({type:"boolean",check(t){return t instanceof Boolean&&(t=t.valueOf()),typeof t=="boolean"}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(r.spec.coerce&&!r.isType(t)){if(/^(true|1)$/i.test(String(t)))return!0;if(/^(false|0)$/i.test(String(t)))return!1}return t})})}isTrue(t=y_.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"true"},test(n){return pr(n)||n===!0}})}isFalse(t=y_.isValue){return this.test({message:t,name:"is-value",exclusive:!0,params:{value:"false"},test(n){return pr(n)||n===!1}})}default(t){return super.default(t)}defined(t){return super.defined(t)}optional(){return super.optional()}required(t){return super.required(t)}notRequired(){return super.notRequired()}nullable(){return super.nullable()}nonNullable(t){return super.nonNullable(t)}strip(t){return super.strip(t)}}U2.prototype=j8.prototype;let ipt=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i,opt=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,spt=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,apt=e=>pr(e)||e===e.trim(),lpt={}.toString();function ca(){return new H8}class H8 extends nr{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(!r.spec.coerce||r.isType(t)||Array.isArray(t))return t;const i=t!=null&&t.toString?t.toString():t;return i===lpt?t:i})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||Ti.required,name:"required",skipAbsent:!0,test:r=>!!r.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests.filter(n=>n.OPTIONS.name!=="required"),t))}length(t,n=Cr.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(r){return r.length===this.resolve(t)}})}min(t,n=Cr.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r.length>=this.resolve(t)}})}max(t,n=Cr.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:t},skipAbsent:!0,test(r){return r.length<=this.resolve(t)}})}matches(t,n){let r=!1,i,o;return n&&(typeof n=="object"?{excludeEmptyString:r=!1,message:i,name:o}=n:i=n),this.test({name:o||"matches",message:i||Cr.matches,params:{regex:t},skipAbsent:!0,test:s=>s===""&&r||s.search(t)!==-1})}email(t=Cr.email){return this.matches(ipt,{name:"email",message:t,excludeEmptyString:!0})}url(t=Cr.url){return this.matches(opt,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=Cr.uuid){return this.matches(spt,{name:"uuid",message:t,excludeEmptyString:!1})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=Cr.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:apt})}lowercase(t=Cr.lowercase){return this.transform(n=>pr(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>pr(n)||n===n.toLowerCase()})}uppercase(t=Cr.uppercase){return this.transform(n=>pr(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>pr(n)||n===n.toUpperCase()})}}ca.prototype=H8.prototype;let cpt=e=>e!=+e;function Be(){return new U8}class U8 extends nr{constructor(){super({type:"number",check(t){return t instanceof Number&&(t=t.valueOf()),typeof t=="number"&&!cpt(t)}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(!r.spec.coerce)return t;let i=t;if(typeof i=="string"){if(i=i.replace(/\s/g,""),i==="")return NaN;i=+i}return r.isType(i)?i:parseFloat(i)})})}min(t,n=mo.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r>=this.resolve(t)}})}max(t,n=mo.max){return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(r){return r<=this.resolve(t)}})}lessThan(t,n=mo.lessThan){return this.test({message:n,name:"max",exclusive:!0,params:{less:t},skipAbsent:!0,test(r){return r<this.resolve(t)}})}moreThan(t,n=mo.moreThan){return this.test({message:n,name:"min",exclusive:!0,params:{more:t},skipAbsent:!0,test(r){return r>this.resolve(t)}})}positive(t=mo.positive){return this.moreThan(0,t)}negative(t=mo.negative){return this.lessThan(0,t)}integer(t=mo.integer){return this.test({name:"integer",message:t,skipAbsent:!0,test:n=>Number.isInteger(n)})}truncate(){return this.transform(t=>pr(t)?t:t|0)}round(t){var n;let r=["ceil","floor","round","trunc"];if(t=((n=t)==null?void 0:n.toLowerCase())||"round",t==="trunc")return this.truncate();if(r.indexOf(t.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+r.join(", "));return this.transform(i=>pr(i)?i:Math[t](i))}}Be.prototype=U8.prototype;var upt=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;function dpt(e){var t=[1,4,5,6,7,10,11],n=0,r,i;if(i=upt.exec(e)){for(var o=0,s;s=t[o];++o)i[s]=+i[s]||0;i[2]=(+i[2]||1)-1,i[3]=+i[3]||1,i[7]=i[7]?String(i[7]).substr(0,3):0,(i[8]===void 0||i[8]==="")&&(i[9]===void 0||i[9]==="")?r=+new Date(i[1],i[2],i[3],i[4],i[5],i[6],i[7]):(i[8]!=="Z"&&i[9]!==void 0&&(n=i[10]*60+i[11],i[9]==="+"&&(n=0-n)),r=Date.UTC(i[1],i[2],i[3],i[4],i[5]+n,i[6],i[7]))}else r=Date.parse?Date.parse(e):NaN;return r}let hpt=new Date(""),fpt=e=>Object.prototype.toString.call(e)==="[object Date]";class Dv extends nr{constructor(){super({type:"date",check(t){return fpt(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,r)=>!r.spec.coerce||r.isType(t)?t:(t=dpt(t),isNaN(t)?Dv.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let r;if(Vi.isRef(t))r=t;else{let i=this.cast(t);if(!this._typeCheck(i))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);r=i}return r}min(t,n=v_.min){let r=this.prepareParam(t,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(i){return i>=this.resolve(r)}})}max(t,n=v_.max){let r=this.prepareParam(t,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(i){return i<=this.resolve(r)}})}}Dv.INVALID_DATE=hpt;Dv.prototype;function ppt(e,t=[]){let n=[],r=new Set,i=new Set(t.map(([s,a])=>`${s}-${a}`));function o(s,a){let l=aa.split(s)[0];r.add(l),i.has(`${a}-${l}`)||n.push([a,l])}for(const s of Object.keys(e)){let a=e[s];r.add(s),Vi.isRef(a)&&a.isSibling?o(a.path,s):Rv(a)&&"deps"in a&&a.deps.forEach(l=>o(l,s))}return H2.exports.array(Array.from(r),n).reverse()}function a$(e,t){let n=1/0;return e.some((r,i)=>{var o;if((o=t.path)!=null&&o.includes(r))return n=i,!0}),n}function W8(e){return(t,n)=>a$(e,t)-a$(e,n)}const Y8=(e,t,n)=>{if(typeof e!="string")return e;let r=e;try{r=JSON.parse(e)}catch(i){}return n.isType(r)?r:e};function Eg(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=Eg(r);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=Eg(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(Eg)}):"optional"in e?e.optional():e}const gpt=(e,t)=>{const n=[...aa.normalizePath(t)];if(n.length===1)return n[0]in e;let r=n.pop(),i=aa.getter(aa.join(n),!0)(e);return!!(i&&r in i)};let l$=e=>Object.prototype.toString.call(e)==="[object Object]";function mpt(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const vpt=W8([]);function Ta(e){return new G8(e)}class G8 extends nr{constructor(t){super({type:"object",check(n){return l$(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=vpt,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,n={}){var r;let i=super._cast(t,n);if(i===void 0)return this.getDefault();if(!this._typeCheck(i))return i;let o=this.fields,s=(r=n.stripUnknown)!=null?r:this.spec.noUnknown,a=[].concat(this._nodes,Object.keys(i).filter(d=>!this._nodes.includes(d))),l={},c=Object.assign({},n,{parent:l,__validating:n.__validating||!1}),u=!1;for(const d of a){let h=o[d],f=d in i;if(h){let p,g=i[d];c.path=(n.path?`${n.path}.`:"")+d,h=h.resolve({value:g,context:n.context,parent:l});let y=h instanceof nr?h.spec:void 0,m=y==null?void 0:y.strict;if(y!=null&&y.strip){u=u||d in i;continue}p=!n.__validating||!m?h.cast(i[d],c):i[d],p!==void 0&&(l[d]=p)}else f&&!s&&(l[d]=i[d]);(f!==d in l||l[d]!==i[d])&&(u=!0)}return u?l:i}_validate(t,n={},r,i){let{from:o=[],originalValue:s=t,recursive:a=this.spec.recursive}=n;n.from=[{schema:this,value:s},...o],n.__validating=!0,n.originalValue=s,super._validate(t,n,r,(l,c)=>{if(!a||!l$(c)){i(l,c);return}s=s||c;let u=[];for(let d of this._nodes){let h=this.fields[d];!h||Vi.isRef(h)||u.push(h.asNestedTest({options:n,key:d,parent:c,parentPath:n.path,originalParent:s}))}this.runTests({tests:u,value:c},r,d=>{i(d.sort(this._sortErrors).concat(l),c)})})}clone(t){const n=super.clone(t);return n.fields=Object.assign({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(t){let n=super.concat(t),r=n.fields;for(let[i,o]of Object.entries(this.fields)){const s=r[i];r[i]=s===void 0?o:s}return n.withMutation(i=>i.setFields(r,this._excludedEdges))}_getDefault(){if("default"in this.spec)return super._getDefault();if(!this._nodes.length)return;let t={};return this._nodes.forEach(n=>{const r=this.fields[n];t[n]="getDefault"in r?r.getDefault():void 0}),t}setFields(t,n){let r=this.clone();return r.fields=t,r._nodes=ppt(t,n),r._sortErrors=W8(Object.keys(t)),n&&(r._excludedEdges=n),r}shape(t,n=[]){return this.clone().withMutation(r=>{let i=r._excludedEdges;return n.length&&(Array.isArray(n[0])||(n=[n]),i=[...r._excludedEdges,...n]),r.setFields(Object.assign(r.fields,t),i)})}partial(){const t={};for(const[n,r]of Object.entries(this.fields))t[n]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(t)}deepPartial(){return Eg(this)}pick(t){const n={};for(const r of t)this.fields[r]&&(n[r]=this.fields[r]);return this.setFields(n)}omit(t){const n=Object.assign({},this.fields);for(const r of t)delete n[r];return this.setFields(n)}from(t,n,r){let i=aa.getter(t,!0);return this.transform(o=>{if(!o)return o;let s=o;return gpt(o,t)&&(s=Object.assign({},o),r||delete s[t],s[n]=i(o)),s})}json(){return this.transform(Y8)}noUnknown(t=!0,n=x_.noUnknown){typeof t!="boolean"&&(n=t,t=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:n,test(i){if(i==null)return!0;const o=mpt(this.schema,i);return!t||o.length===0||this.createError({params:{unknown:o.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,n=x_.noUnknown){return this.noUnknown(!t,n)}transformKeys(t){return this.transform(n=>{if(!n)return n;const r={};for(const i of Object.keys(n))r[t(i)]=n[i];return r})}camelCase(){return this.transformKeys(ky.camelCase)}snakeCase(){return this.transformKeys(ky.snakeCase)}constantCase(){return this.transformKeys(t=>ky.snakeCase(t).toUpperCase())}describe(t){let n=super.describe(t);n.fields={};for(const[i,o]of Object.entries(this.fields)){var r;let s=t;(r=s)!=null&&r.value&&(s=Object.assign({},s,{parent:s.value,value:s.value[i]})),n.fields[i]=o.describe(s)}return n}}Ta.prototype=G8.prototype;function ad(e){return new q8(e)}class q8 extends nr{constructor(t){super({type:"array",check(n){return Array.isArray(n)}}),this.innerType=void 0,this.innerType=t}_cast(t,n){const r=super._cast(t,n);if(!this._typeCheck(r)||!this.innerType)return r;let i=!1;const o=r.map((s,a)=>{const l=this.innerType.cast(s,Object.assign({},n,{path:`${n.path||""}[${a}]`}));return l!==s&&(i=!0),l});return i?o:r}_validate(t,n={},r,i){var o;let s=this.innerType,a=(o=n.recursive)!=null?o:this.spec.recursive;n.originalValue!=null&&n.originalValue,super._validate(t,n,r,(l,c)=>{if(!a||!s||!this._typeCheck(c)){i(l,c);return}let u=new Array(c.length);for(let h=0;h<c.length;h++){var d;u[h]=s.asNestedTest({options:n,index:h,parent:c,parentPath:n.path,originalParent:(d=n.originalValue)!=null?d:t})}this.runTests({value:c,tests:u},r,h=>i(h.concat(l),c))})}clone(t){const n=super.clone(t);return n.innerType=this.innerType,n}json(){return this.transform(Y8)}concat(t){let n=super.concat(t);return n.innerType=this.innerType,t.innerType&&(n.innerType=n.innerType?n.innerType.concat(t.innerType):t.innerType),n}of(t){let n=this.clone();if(!Rv(t))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+la(t));return n.innerType=t,n}length(t,n=Sg.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(r){return r.length===this.resolve(t)}})}min(t,n){return n=n||Sg.min,this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r.length>=this.resolve(t)}})}max(t,n){return n=n||Sg.max,this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(r){return r.length<=this.resolve(t)}})}ensure(){return this.default(()=>[]).transform((t,n)=>this._typeCheck(t)?t:n==null?[]:[].concat(n))}compact(t){let n=t?(r,i,o)=>!t(r,i,o):r=>!!r;return this.transform(r=>r!=null?r.filter(n):r)}describe(t){let n=super.describe();if(this.innerType){var r;let i=t;(r=i)!=null&&r.value&&(i=Object.assign({},i,{parent:i.value,value:i.value[0]})),n.innerType=this.innerType.describe(t)}return n}}ad.prototype=q8.prototype;const ypt=new RegExp(`(${Object.keys(N8).filter(e=>Number.isNaN(Number(e))).join("|")})`),xpt=Ta({lat:Be().min(-90,"Must be a valid latitude.").max(90,"Must be a valid latitude.").required(),lng:Be().min(-180,"Must be a valid longitude.").max(180,"Must be a valid longitude.").required(),limit:Be().max(30),radius:Be().max(25e3),include:ad().of(ca().matches(ypt,"Must be a valid Score category.").required()).required()}),bpt=e=>async t=>{const n=await xpt.validate(t),{lat:r,lng:i,limit:o,radius:s,include:a}=n,l=await e.get(Mft,{params:{lat:r,lng:i,limit:o,radius:s,include:a==null?void 0:a.join(",")}}),c=a.reduce((u,d)=>({...u,[d]:[]}),{});return l.data.data||c};var X8=(e=>(e[e.pedestrian_friendly=0]="pedestrian_friendly",e[e.cycling_friendly=1]="cycling_friendly",e[e.transit_friendly=2]="transit_friendly",e[e.car_friendly=3]="car_friendly",e[e.parks=4]="parks",e[e.groceries=5]="groceries",e[e.shopping=6]="shopping",e[e.nightlife=7]="nightlife",e[e.restaurants=8]="restaurants",e[e.cafes=9]="cafes",e[e.daycares=10]="daycares",e[e.primary_schools=11]="primary_schools",e[e.high_schools=12]="high_schools",e[e.quiet=13]="quiet",e[e.greenery=14]="greenery",e[e.historic=15]="historic",e[e.vibrant=16]="vibrant",e[e.wellness=17]="wellness",e))(X8||{});const _pt="/scores",wpt=new RegExp(`(${Object.keys(X8).filter(e=>Number.isNaN(Number(e))).join("|")})`),Apt=Ta({lat:Be().min(-90,"Must be a valid latitude.").max(90,"Must be a valid latitude."),lng:Be().min(-180,"Must be a valid longitude.").max(180,"Must be a valid longitude."),geographyIds:ad().of(ca().required()),geographyLevels:ad().of(ca().matches(/10|20|30/,"Must be a valid Geography level.").required()),locationScoresRounding:U2(),include:ad().of(ca().matches(wpt,"Must be a valid Score category.").required())}),Spt=e=>async t=>{const n=await Apt.validate(t),{lat:r,lng:i,include:o,geographyIds:s,geographyLevels:a,locationScoresRounding:l=!0}=n;return(await e.get(_pt,{params:{lat:r,lng:i,include:o==null?void 0:o.join(","),geography_levels:a==null?void 0:a.join(","),geography_ids:s==null?void 0:s.join(","),location_scores_rounding:l?".5":"none"}})).data.data},Ept="/schools",Cpt=Ta({lat:Be().min(-90,"Must be a valid latitude.").max(90,"Must be a valid latitude.").required(),lng:Be().min(-180,"Must be a valid longitude.").max(180,"Must be a valid longitude.").required(),limit:Be().max(30,"Must use a limit between 1 and 30."),radius:Be().max(25e3,"Must use a radius between 1 and 25000."),include_catchments:U2()}),kpt=e=>async t=>{const n=await Cpt.validate(t),{lat:r,lng:i,limit:o,radius:s,include_catchments:a}=n;return(await e.get(Ept,{params:{lat:r,lng:i,limit:o,radius:s,include_catchments:a}})).data.data},Tpt="/profiles",Mpt=Ta({lat:Be().min(-90,"Must be a valid latitude.").max(90,"Must be a valid latitude."),lng:Be().min(-180,"Must be a valid longitude.").max(180,"Must be a valid longitude."),geogId:ca()}),$pt=e=>async t=>{const n=await Mpt.validate(t),{lat:r,lng:i,geogId:o}=n;return(await e.get(Tpt,{params:{lat:r,lng:i,geog_id:o}})).data.data},Ppt="/geographies",Opt=Ta({lat:Be().min(-90,"Must be a valid latitude.").max(90,"Must be a valid latitude.").required(),lng:Be().min(-180,"Must be a valid longitude.").max(180,"Must be a valid longitude.").required(),include:ca().oneOf(["geometry"])}),Rpt=e=>async t=>{const n=await Opt.validate(t),{lat:r,lng:i,include:o}=n;return(await e.get(Ppt,{params:{lat:r,lng:i,include:o}})).data.data},Dpt="/demographics",Lpt=Ta({lat:Be().min(-90,"Must be a valid latitude.").max(90,"Must be a valid latitude.").required(),lng:Be().min(-180,"Must be a valid longitude.").max(180,"Must be a valid longitude.").required(),radius:Be().max(5e3)}),Ipt=e=>async t=>{const n=await Lpt.validate(t),{lat:r,lng:i,radius:o}=n;return(await e.get(Dpt,{params:{lat:r,lng:i,radius:o}})).data.data.attributes},W2="LocalLogicClient/";class Npt extends Error{constructor({message:t}){super(t),this.name=W2+this.constructor.name}}class Fpt extends Error{constructor({message:t,response:n}){super(t),sd(this,"statusCode"),sd(this,"statusText"),sd(this,"data"),this.name=W2+this.constructor.name,this.statusCode=n==null?void 0:n.status,this.statusText=n==null?void 0:n.statusText,this.data=n==null?void 0:n.data}}class zpt extends Error{constructor({message:t}){super(t),this.name=W2+this.constructor.name}}const c$=e=>{throw e instanceof kn?new Npt(e):I8.isAxiosError(e)?new Fpt(e):new zpt(e)},Cc=(e,t,n)=>{const r=n.value;return n.value=function(...i){try{const o=r.apply(this,i);return o&&o instanceof Promise?o.catch(s=>{c$(s)}):o}catch(o){c$(o)}},n};var Bpt=Object.defineProperty,Vpt=Object.getOwnPropertyDescriptor,kc=(e,t,n,r)=>{for(var i=r>1?void 0:r?Vpt(t,n):t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=(r?s(t,n,i):s(i))||i);return r&&i&&Bpt(t,n,i),i};class Ma{constructor(t,n={locale:"en"}){sd(this,"requests"),sd(this,"options"),this.requests=Tft(t,n),this.options=n}getPois(t){return bpt(this.requests)(t)}getScores(t){return Spt(this.requests)(t)}getSchools(t){return kpt(this.requests)(t)}getProfiles(t){return $pt(this.requests)(t)}getGeographies(t){return Rpt(this.requests)(t)}getDemographics(t){return Ipt(this.requests)(t)}}kc([Cc],Ma.prototype,"getPois",1);kc([Cc],Ma.prototype,"getScores",1);kc([Cc],Ma.prototype,"getSchools",1);kc([Cc],Ma.prototype,"getProfiles",1);kc([Cc],Ma.prototype,"getGeographies",1);kc([Cc],Ma.prototype,"getDemographics",1);const jpt=(e,t)=>new Ma(e,t);var Lv={exports:{}},Zc={};/**
|
|
608
|
+
* @license React
|
|
609
|
+
* react-jsx-runtime.production.min.js
|
|
610
|
+
*
|
|
611
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
612
|
+
*
|
|
613
|
+
* This source code is licensed under the MIT license found in the
|
|
614
|
+
* LICENSE file in the root directory of this source tree.
|
|
615
|
+
*/var u$;function Hpt(){if(u$)return Zc;u$=1;var e=Z,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function s(a,l,c){var u,d={},h=null,f=null;c!==void 0&&(h=""+c),l.key!==void 0&&(h=""+l.key),l.ref!==void 0&&(f=l.ref);for(u in l)r.call(l,u)&&!o.hasOwnProperty(u)&&(d[u]=l[u]);if(a&&a.defaultProps)for(u in l=a.defaultProps,l)d[u]===void 0&&(d[u]=l[u]);return{$$typeof:t,type:a,key:h,ref:f,props:d,_owner:i.current}}return Zc.Fragment=n,Zc.jsx=s,Zc.jsxs=s,Zc}(function(e){e.exports=Hpt()})(Lv);const ii=Lv.exports.Fragment,j=Lv.exports.jsx,Vt=Lv.exports.jsxs;var Upt=Object.defineProperty,Wpt=(e,t,n)=>t in e?Upt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,et=(e,t,n)=>(Wpt(e,typeof t!="symbol"?t+"":t,n),n);const hh={colorPrimary100:"#FFFFFF",colorPrimary99:"#04162d",colorPrimary95:"#C8F9FF",colorPrimary90:"#87F2FF",colorPrimary80:"#4ED8E9",colorPrimary70:"#21BCCC",colorPrimary60:"#00A0AF",colorPrimary50:"#008491",colorPrimary40:"#006974",colorPrimary30:"#004F57",colorPrimary20:"#00363C",colorPrimary10:"#001F23",colorPrimary0:"#000000"},Ct={colorNeutral100:"#FFFFFF",colorNeutral99:"#FBFDFD",colorNeutral95:"#EFF1F1",colorNeutral90:"#E0E3E3",colorNeutral80:"#C4C7C7",colorNeutral70:"#A9ACAC",colorNeutral60:"#8E9191",colorNeutral50:"#747878",colorNeutral40:"#5C5F5F",colorNeutral30:"#444747",colorNeutral20:"#2D3131",colorNeutral10:"#191C1D",colorNeutral0:"#000000"},Y2={colorBlue70:"#0056D3"},Ypt=Object.freeze(Object.defineProperty({__proto__:null,primaryColors:hh,neutralColors:Ct,blueColors:Y2},Symbol.toStringTag,{value:"Module"})),bn=4,Gpt={"--ll-color-primary":hh.colorPrimary50,"--ll-color-primary-variant1":hh.colorPrimary40,"--ll-color-background":Ct.colorNeutral100,"--ll-color-surface":Ct.colorNeutral95,"--ll-color-surface-variant1":Ct.colorNeutral90,"--ll-color-surface-variant2":Ct.colorNeutral80,"--ll-color-on-primary":Ct.colorNeutral100,"--ll-color-on-primary-variant1":Ct.colorNeutral90,"--ll-color-on-background":Ct.colorNeutral10,"--ll-color-on-background-variant1":Ct.colorNeutral30,"--ll-color-on-surface":Ct.colorNeutral10,"--ll-color-on-surface-variant1":Ct.colorNeutral30,"--ll-color-placeholder":Ct.colorNeutral60,"--ll-color-disabled":Ct.colorNeutral60,"--ll-color-border":Ct.colorNeutral90,"--ll-color-link":Y2.colorBlue70},qpt={"--ll-border-radius-small":`${bn}px`,"--ll-border-radius-medium":`${2*bn}px`,"--ll-border-radius-large":`${4*bn}px`},Xpt={"--ll-shadow-small":"rgb(0 0 0 / 18%) 0px 2px 5px","--ll-shadow-medium":"0px 5px 11px -4px rgba(0,0,0,0.75)"},Qpt={"--ll-spacing-auto":"auto","--ll-spacing-base-unit":`${bn}px`,"--ll-spacing-xx-small":"var(--ll-spacing-base-unit)","--ll-spacing-x-small":"calc(var(--ll-spacing-base-unit) * 2)","--ll-spacing-small":"calc(var(--ll-spacing-base-unit) * 3)","--ll-spacing-medium":"calc(var(--ll-spacing-base-unit) * 4)","--ll-spacing-large":"calc(var(--ll-spacing-base-unit) * 6)","--ll-spacing-x-large":"calc(var(--ll-spacing-base-unit) * 8)","--ll-spacing-xx-large":"calc(var(--ll-spacing-base-unit) * 12)","--ll-spacing-xxx-large":"calc(var(--ll-spacing-base-unit) * 16)"},Kpt={"--ll-font-family":"Inter, sans-serif","--ll-font-family-mono":"Consolas, Andale Mono WT, Andale Mono, Lucida Console, Lucida Sans Typewriter, DejaVu Sans Mono, Bitstream Vera Sans Mono, Liberation Mono, Nimbus Mono L, Monaco, Courier New, Courier, monospace;"},Zpt={"--ll-font-size-base":"12px","--ll-font-size-h1":"calc(var(--ll-font-size-base) * 4)","--ll-font-size-h2":"calc(var(--ll-font-size-base) * 3)","--ll-font-size-h3":"calc(var(--ll-font-size-base) * 2)","--ll-font-size-h4":"calc(var(--ll-font-size-base) * 1.667)","--ll-font-size-h5":"calc(var(--ll-font-size-base) * 1.5)","--ll-font-size-h6":"calc(var(--ll-font-size-base) * 1.333)","--ll-font-size-p":"calc(var(--ll-font-size-base) * 1.167)","--ll-font-size-caption-1":"var(--ll-font-size-base)","--ll-font-size-caption-2":"calc(var(--ll-font-size-base) * 0.833)"},Jpt={"--ll-font-weight-light":"400","--ll-font-weight-normal":"500","--ll-font-weight-medium":"600","--ll-font-weight-bold":"700"},G2={...Gpt,...qpt,...Xpt,...Qpt,...Kpt,...Zpt,...Jpt},tgt={...G2,"--ll-color-primary":hh.colorPrimary60,"--ll-color-primary-variant1":hh.colorPrimary50,"--ll-color-background":Ct.colorNeutral10,"--ll-color-surface":Ct.colorNeutral20,"--ll-color-surface-variant1":Ct.colorNeutral30,"--ll-color-surface-variant2":Ct.colorNeutral40,"--ll-color-on-primary":Ct.colorNeutral100,"--ll-color-on-primary-variant1":Ct.colorNeutral90,"--ll-color-on-background":Ct.colorNeutral99,"--ll-color-on-background-variant1":Ct.colorNeutral80,"--ll-color-on-surface":Ct.colorNeutral80,"--ll-color-on-surface-variant1":Ct.colorNeutral90,"--ll-color-placeholder":Ct.colorNeutral70,"--ll-color-disabled":Ct.colorNeutral70,"--ll-color-border":Ct.colorNeutral30,"--ll-color-link":Y2.colorBlue70},egt=Object.keys(G2),M=egt.reduce((e,t)=>({...e,[t]:`var(${t})`}),{}),ngt={day:G2,night:tgt},rgt=mL`
|
|
616
|
+
:root {
|
|
617
|
+
${({themeName:e,overrides:t})=>({...ngt[e||"day"],...t})};
|
|
618
|
+
}
|
|
619
|
+
`,igt=e=>e,ogt=igt({default:{ease:"easeInOut",duration:.15},defaultSlow:{ease:"easeInOut",duration:.4},spring:{type:"spring",duration:.4,bounce:.3}}),sgt=Object.freeze(Object.defineProperty({__proto__:null,transitions:ogt},Symbol.toStringTag,{value:"Module"})),q2={mobileS:320,mobileM:375,mobileL:425,tablet:768,laptopS:1024,laptopL:1440,desktop:2560},agt=Object.freeze(Object.defineProperty({__proto__:null,screenSizes:q2},Symbol.toStringTag,{value:"Module"})),Cg={colors:Ypt,...sgt,...agt},lgt=({$size:e})=>e==="small"?_t`
|
|
620
|
+
padding: calc(${M["--ll-spacing-xx-small"]} / 2) ${M["--ll-spacing-xx-small"]};
|
|
621
|
+
`:e==="large"?_t`
|
|
622
|
+
padding: calc(${M["--ll-spacing-small"]} / 2) ${M["--ll-spacing-medium"]};
|
|
623
|
+
font-size: ${M["--ll-font-size-p"]};
|
|
624
|
+
line-height: ${M["--ll-font-size-h6"]};
|
|
625
|
+
`:_t`
|
|
626
|
+
padding: ${M["--ll-spacing-xx-small"]} ${M["--ll-spacing-x-small"]};
|
|
627
|
+
`,cgt=z.span`
|
|
628
|
+
white-space: nowrap;
|
|
629
|
+
display: inline-flex;
|
|
630
|
+
color: ${({$textColor:e})=>e};
|
|
631
|
+
background-color: ${({$backgroundColor:e})=>e};
|
|
632
|
+
border-radius: ${M["--ll-border-radius-small"]};
|
|
633
|
+
line-height: 1;
|
|
634
|
+
font-family: ${M["--ll-font-family"]};
|
|
635
|
+
font-size: ${M["--ll-font-size-caption-1"]};
|
|
636
|
+
justify-content: center;
|
|
637
|
+
|
|
638
|
+
${lgt};
|
|
639
|
+
`;var Iv={exports:{}},Jc={};/**
|
|
640
|
+
* @license React
|
|
641
|
+
* react-jsx-runtime.production.min.js
|
|
642
|
+
*
|
|
643
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
644
|
+
*
|
|
645
|
+
* This source code is licensed under the MIT license found in the
|
|
646
|
+
* LICENSE file in the root directory of this source tree.
|
|
647
|
+
*/var d$;function ugt(){if(d$)return Jc;d$=1;var e=Z,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function s(a,l,c){var u,d={},h=null,f=null;c!==void 0&&(h=""+c),l.key!==void 0&&(h=""+l.key),l.ref!==void 0&&(f=l.ref);for(u in l)r.call(l,u)&&!o.hasOwnProperty(u)&&(d[u]=l[u]);if(a&&a.defaultProps)for(u in l=a.defaultProps,l)d[u]===void 0&&(d[u]=l[u]);return{$$typeof:t,type:a,key:h,ref:f,props:d,_owner:i.current}}return Jc.Fragment=n,Jc.jsx=s,Jc.jsxs=s,Jc}(function(e){e.exports=ugt()})(Iv);const X2=Iv.exports.Fragment,dt=Iv.exports.jsx,ji=Iv.exports.jsxs,Q2=({text:e,size:t="small",className:n,textColor:r=Ct.colorNeutral10,backgroundColor:i=Ct.colorNeutral90,onClick:o})=>dt(cgt,{$size:t,onClick:o,className:n,$textColor:r,$backgroundColor:i,children:e}),dgt=z.div`
|
|
648
|
+
height: ${({height:e})=>e}px;
|
|
649
|
+
width: ${({width:e})=>e}px;
|
|
650
|
+
fill: ${({fill:e})=>e};
|
|
651
|
+
display: flex;
|
|
652
|
+
|
|
653
|
+
& > svg {
|
|
654
|
+
fill: inherit;
|
|
655
|
+
height: 100%;
|
|
656
|
+
width: 100%;
|
|
657
|
+
}
|
|
658
|
+
`,rr=({SVGElement:e,fill:t="--ll-color-on-background",height:n=24,width:r=24})=>dt(dgt,{fill:t,height:n,width:r,children:dt(e,{})}),h$=({$variant:e})=>e==="h1"?M["--ll-font-size-h1"]:e==="h2"?M["--ll-font-size-h2"]:e==="h3"?M["--ll-font-size-h3"]:e==="h4"?M["--ll-font-size-h4"]:e==="h5"?M["--ll-font-size-h5"]:e==="h6"?M["--ll-font-size-h6"]:e==="p"?M["--ll-font-size-p"]:e==="caption1"?M["--ll-font-size-caption-1"]:e==="caption2"?M["--ll-font-size-caption-2"]:M["--ll-font-size-h2"],f$=({$color:e})=>e in M?M[e]:e,Q8=z.span`
|
|
659
|
+
overflow: hidden;
|
|
660
|
+
display: inline-block;
|
|
661
|
+
width: 100%;
|
|
662
|
+
line-height: ${({$lineHeight:e})=>e||1.45};
|
|
663
|
+
margin: 0 0 ${({$noMargin:e})=>e?"0":"0.5em"} 0;
|
|
664
|
+
font-size: inherit;
|
|
665
|
+
font-weight: inherit;
|
|
666
|
+
`,hgt=z.div`
|
|
667
|
+
${e=>_t`
|
|
668
|
+
text-align: ${e.$align};
|
|
669
|
+
font-size: ${h$(e)};
|
|
670
|
+
font-family: ${e.$family==="sans-serif"?M["--ll-font-family"]:M["--ll-font-family-mono"]};
|
|
671
|
+
font-variant: ${e.$fontVariant};
|
|
672
|
+
letter-spacing: ${e.$letterSpacing};
|
|
673
|
+
color: ${f$(e)};
|
|
674
|
+
font-weight: ${M[e.$weight]};
|
|
675
|
+
text-transform: ${e.$textTransform};
|
|
676
|
+
overflow: hidden;
|
|
677
|
+
display: flex;
|
|
678
|
+
|
|
679
|
+
svg {
|
|
680
|
+
height: ${h$(e)};
|
|
681
|
+
fill: ${f$(e)};
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
${Q8} {
|
|
685
|
+
${e.$lineClamp&&_t`
|
|
686
|
+
display: -webkit-box;
|
|
687
|
+
-webkit-line-clamp: ${e.$lineClamp};
|
|
688
|
+
-webkit-box-orient: vertical;
|
|
689
|
+
overflow: hidden;
|
|
690
|
+
text-overflow: ellipsis;
|
|
691
|
+
`}
|
|
692
|
+
}
|
|
693
|
+
`}
|
|
694
|
+
`,Qt=({children:e,variant:t="p",align:n,color:r="--ll-color-on-background",lineClamp:i,noMargin:o,lineHeight:s,weight:a="--ll-font-weight-normal",family:l="sans-serif",className:c,fontVariant:u="initial",textTransform:d="none",letterSpacing:h})=>{const f=["caption1","caption2","p"].includes(t)?"p":t;return dt(hgt,{$variant:t,$align:n,$color:r,$lineClamp:i,$weight:a,$family:l,$fontVariant:u,$letterSpacing:h,$textTransform:d,children:dt(Q8,{as:f,className:c,$noMargin:o,$lineHeight:s,children:e})})},fgt=z.a`
|
|
695
|
+
font-family: ${M["--ll-font-family"]};
|
|
696
|
+
font-size: ${M["--ll-font-size-p"]};
|
|
697
|
+
color: ${M["--ll-color-link"]};
|
|
698
|
+
cursor: pointer;
|
|
699
|
+
|
|
700
|
+
${({lineClamp:e})=>e&&_t`
|
|
701
|
+
overflow: hidden;
|
|
702
|
+
text-overflow: ellipsis;
|
|
703
|
+
display: -webkit-box;
|
|
704
|
+
-webkit-box-orient: vertical;
|
|
705
|
+
-webkit-line-clamp: ${e};
|
|
706
|
+
`}
|
|
707
|
+
`,p$=({children:e,href:t,className:n,lineClamp:r,download:i})=>dt(fgt,{href:t,target:"_blank",rel:"noreferrer",lineClamp:r,className:n,download:i,children:e});function it(){return it=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},it.apply(this,arguments)}function pgt(e,t){const n=v.exports.createContext(t);function r(o){const{children:s,...a}=o,l=v.exports.useMemo(()=>a,Object.values(a));return v.exports.createElement(n.Provider,{value:l},s)}function i(o){const s=v.exports.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${o}\` must be used within \`${e}\``)}return r.displayName=e+"Provider",[r,i]}function Tc(e,t=[]){let n=[];function r(o,s){const a=v.exports.createContext(s),l=n.length;n=[...n,s];function c(d){const{scope:h,children:f,...p}=d,g=(h==null?void 0:h[e][l])||a,y=v.exports.useMemo(()=>p,Object.values(p));return v.exports.createElement(g.Provider,{value:y},f)}function u(d,h){const f=(h==null?void 0:h[e][l])||a,p=v.exports.useContext(f);if(p)return p;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${o}\``)}return c.displayName=o+"Provider",[c,u]}const i=()=>{const o=n.map(s=>v.exports.createContext(s));return function(s){const a=(s==null?void 0:s[e])||o;return v.exports.useMemo(()=>({[`__scope${e}`]:{...s,[e]:a}}),[s,a])}};return i.scopeName=e,[r,ggt(i,...t)]}function ggt(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(i){const o=r.reduce((s,{useScope:a,scopeName:l})=>{const c=a(i)[`__scope${l}`];return{...s,...c}},{});return v.exports.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}function mgt(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function K8(...e){return t=>e.forEach(n=>mgt(n,t))}function Wt(...e){return v.exports.useCallback(K8(...e),e)}const ac=v.exports.forwardRef((e,t)=>{const{children:n,...r}=e,i=v.exports.Children.toArray(n),o=i.find(ygt);if(o){const s=o.props.children,a=i.map(l=>l===o?v.exports.Children.count(s)>1?v.exports.Children.only(null):v.exports.isValidElement(s)?s.props.children:null:l);return v.exports.createElement(b_,it({},r,{ref:t}),v.exports.isValidElement(s)?v.exports.cloneElement(s,void 0,a):null)}return v.exports.createElement(b_,it({},r,{ref:t}),n)});ac.displayName="Slot";const b_=v.exports.forwardRef((e,t)=>{const{children:n,...r}=e;return v.exports.isValidElement(n)?v.exports.cloneElement(n,{...xgt(r,n.props),ref:K8(t,n.ref)}):v.exports.Children.count(n)>1?v.exports.Children.only(null):null});b_.displayName="SlotClone";const vgt=({children:e})=>v.exports.createElement(v.exports.Fragment,null,e);function ygt(e){return v.exports.isValidElement(e)&&e.type===vgt}function xgt(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?n[r]=(...s)=>{o==null||o(...s),i==null||i(...s)}:r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}const bgt=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"],Pt=bgt.reduce((e,t)=>{const n=v.exports.forwardRef((r,i)=>{const{asChild:o,...s}=r,a=o?ac:t;return v.exports.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),v.exports.createElement(a,it({},s,{ref:i}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function _gt(e,t){e&&Vn.exports.flushSync(()=>e.dispatchEvent(t))}const zn=Boolean(globalThis==null?void 0:globalThis.document)?v.exports.useLayoutEffect:()=>{},wgt=J_["useId".toString()]||(()=>{});let Agt=0;function Qh(e){const[t,n]=v.exports.useState(wgt());return zn(()=>{e||n(r=>r!=null?r:String(Agt++))},[e]),e||(t?`radix-${t}`:"")}const Sgt="Label",[Egt,Cgt]=pgt(Sgt,{id:void 0,controlRef:{current:null}}),kgt=v.exports.forwardRef((e,t)=>{const{htmlFor:n,id:r,...i}=e,o=v.exports.useRef(null),s=v.exports.useRef(null),a=Wt(t,s),l=Qh(r);return v.exports.useEffect(()=>{if(n){const c=document.getElementById(n);if(s.current&&c){const u=()=>c.getAttribute("aria-labelledby"),d=[l,u()].filter(Boolean).join(" ");return c.setAttribute("aria-labelledby",d),o.current=c,()=>{var h;const f=(h=u())===null||h===void 0?void 0:h.replace(l,"");f===""?c.removeAttribute("aria-labelledby"):f&&c.setAttribute("aria-labelledby",f)}}}},[l,n]),v.exports.createElement(Egt,{id:l,controlRef:o},v.exports.createElement(Pt.span,it({role:"label",id:l},i,{ref:a,onMouseDown:c=>{var u;(u=e.onMouseDown)===null||u===void 0||u.call(e,c),!c.defaultPrevented&&c.detail>1&&c.preventDefault()},onClick:c=>{var u;if((u=e.onClick)===null||u===void 0||u.call(e,c),!o.current||c.defaultPrevented)return;const d=o.current.contains(c.target),h=c.isTrusted===!0;!d&&h&&(o.current.click(),o.current.focus())}})))}),Z8=e=>{const t=Cgt("LabelConsumer"),{controlRef:n}=t;return v.exports.useEffect(()=>{e&&(n.current=e)},[e,n]),t.id},Tgt=kgt;z(Tgt)`
|
|
708
|
+
font-size: ${M["--ll-font-size-p"]};
|
|
709
|
+
font-family: ${M["--ll-font-family"]};
|
|
710
|
+
color: ${M["--ll-color-placeholder"]};
|
|
711
|
+
`;const Mgt=J0`
|
|
712
|
+
0% {
|
|
713
|
+
transform: rotate(0deg);
|
|
714
|
+
}
|
|
715
|
+
100% {
|
|
716
|
+
transform: rotate(360deg);
|
|
717
|
+
}
|
|
718
|
+
`,Ty={small:bn*4,medium:bn*6,large:bn*8},$gt=z.div`
|
|
719
|
+
height: ${({size:e})=>Ty[e]}px;
|
|
720
|
+
width: ${({size:e})=>Ty[e]}px;
|
|
721
|
+
border: ${({size:e})=>Ty[e]/6}px solid ${M["--ll-color-on-surface-variant1"]};
|
|
722
|
+
border-bottom-color: transparent;
|
|
723
|
+
border-radius: 50%;
|
|
724
|
+
display: inline-block;
|
|
725
|
+
box-sizing: border-box;
|
|
726
|
+
animation: ${Mgt} 1s linear infinite;
|
|
727
|
+
`,Pgt=({size:e="medium"})=>dt($gt,{size:e}),ld={primary:{background:M["--ll-color-primary"],onBackground:M["--ll-color-on-primary"],hover:M["--ll-color-primary-variant1"]}},Ogt=({size:e})=>e==="small"?`font-size: ${M["--ll-font-size-caption-1"]}`:`font-size: ${M["--ll-font-size-p"]}`,K2=({size:e})=>e==="small"?`${bn*8}px`:e==="large"?`${bn*12}px`:`${bn*10}px`,Rgt=({size:e})=>e==="small"?`padding: 0 ${M["--ll-spacing-x-small"]}`:e==="large"?`padding: 0 ${M["--ll-spacing-medium"]}`:`padding: 0 ${M["--ll-spacing-small"]}`,Dgt=({size:e})=>e==="large"?"svg { height: 24px; }":e==="small"?"svg { height: 12px }":"svg { height: 20px; }",Lgt=_t`
|
|
728
|
+
color: ${M["--ll-color-on-background"]};
|
|
729
|
+
|
|
730
|
+
&:disabled {
|
|
731
|
+
cursor: default;
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
height: ${K2};
|
|
735
|
+
`,Igt=_t`
|
|
736
|
+
${({color:e="primary"})=>_t`
|
|
737
|
+
background-color: ${ld[e].background};
|
|
738
|
+
color: ${ld[e].onBackground};
|
|
739
|
+
border: 1px solid transparent;
|
|
740
|
+
|
|
741
|
+
&:hover {
|
|
742
|
+
background-color: ${ld[e].hover};
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
&:disabled {
|
|
746
|
+
background-color: ${M["--ll-color-disabled"]};
|
|
747
|
+
cursor: default;
|
|
748
|
+
}
|
|
749
|
+
`};
|
|
750
|
+
height: ${K2};
|
|
751
|
+
`,Ngt=_t`
|
|
752
|
+
${({color:e="primary"})=>_t`
|
|
753
|
+
border-color: ${ld[e].background};
|
|
754
|
+
border-width: 1px;
|
|
755
|
+
border-style: solid;
|
|
756
|
+
color: ${ld[e].background};
|
|
757
|
+
`};
|
|
758
|
+
|
|
759
|
+
&:hover {
|
|
760
|
+
background-color: rgba(0, 0, 0, 0.03);
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
height: ${K2};
|
|
764
|
+
`,Fgt=e=>({contained:Igt,outlined:Ngt,text:Lgt})[e.variant],zgt=z.div`
|
|
765
|
+
display: flex;
|
|
766
|
+
align-items: center;
|
|
767
|
+
margin-right: ${M["--ll-spacing-x-small"]};
|
|
768
|
+
margin-left: calc(-1 * ${M["--ll-spacing-xx-small"]});
|
|
769
|
+
`,Bgt=z.button`
|
|
770
|
+
font-weight: ${M["--ll-font-weight-normal"]};
|
|
771
|
+
border-radius: ${M["--ll-border-radius-small"]};
|
|
772
|
+
align-items: center;
|
|
773
|
+
justify-content: center;
|
|
774
|
+
cursor: pointer;
|
|
775
|
+
display: inline-flex;
|
|
776
|
+
background: none;
|
|
777
|
+
border: none;
|
|
778
|
+
box-sizing: border-box;
|
|
779
|
+
|
|
780
|
+
svg {
|
|
781
|
+
fill: currentColor;
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
${Fgt};
|
|
785
|
+
${Dgt};
|
|
786
|
+
${Ogt};
|
|
787
|
+
${Rgt};
|
|
788
|
+
`,Nv=Z.forwardRef(({children:e,disabled:t=!1,onClick:n,variant:r="contained",startAdornment:i,size:o="medium",type:s="button",color:a,isLoading:l,className:c},u)=>dt(Bgt,{variant:r,size:o,onClick:d=>{t||!n||l||n(d)},disabled:t||l,className:c,color:a,type:s,ref:u,children:l?dt(Pgt,{}):ji(X2,{children:[i&&dt(zgt,{children:i}),e]})}));Nv.displayName="Button";z.div`
|
|
789
|
+
display: flex;
|
|
790
|
+
flex-direction: column;
|
|
791
|
+
`;z.div`
|
|
792
|
+
position: relative;
|
|
793
|
+
`;z(Nv)`
|
|
794
|
+
position: absolute;
|
|
795
|
+
right: 0px;
|
|
796
|
+
top: 0px;
|
|
797
|
+
`;z.input`
|
|
798
|
+
all: unset;
|
|
799
|
+
display: inline-flex;
|
|
800
|
+
align-items: center;
|
|
801
|
+
justify-content: center;
|
|
802
|
+
border-radius: ${M["--ll-border-radius-small"]};
|
|
803
|
+
padding: 0 ${M["--ll-spacing-x-small"]};
|
|
804
|
+
height: 30px;
|
|
805
|
+
line-height: 1;
|
|
806
|
+
font-size: ${M["--ll-font-size-p"]};
|
|
807
|
+
font-family: ${M["--ll-font-family"]};
|
|
808
|
+
color: ${M["--ll-color-on-background"]};
|
|
809
|
+
background-color: ${M["--ll-color-background"]};
|
|
810
|
+
border: 1px solid ${M["--ll-color-border"]};
|
|
811
|
+
width: calc(100% - ${M["--ll-spacing-medium"]});
|
|
812
|
+
|
|
813
|
+
&:focus {
|
|
814
|
+
box-shadow: ${M["--ll-shadow-small"]};
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
// Set to 16px to avoid mobile to zoom in to the input
|
|
818
|
+
@media (max-width: ${q2.tablet}px) {
|
|
819
|
+
font-size: ${M["--ll-font-size-h6"]};
|
|
820
|
+
}
|
|
821
|
+
`;const Jm={small:20,medium:32,large:40},Vgt=z(HA.div)`
|
|
822
|
+
background: linear-gradient(
|
|
823
|
+
to top,
|
|
824
|
+
${({$backgroundColorHighlight:e})=>e},
|
|
825
|
+
${({$backgroundColor:e})=>e}
|
|
826
|
+
);
|
|
827
|
+
border-radius: 50%;
|
|
828
|
+
border: 2px solid #fff;
|
|
829
|
+
height: ${({$size:e})=>Jm[e]}px;
|
|
830
|
+
width: ${({$size:e})=>Jm[e]}px;
|
|
831
|
+
display: flex;
|
|
832
|
+
justify-content: center;
|
|
833
|
+
align-items: center;
|
|
834
|
+
box-shadow: ${({$renderForPrint:e})=>e&&M["--ll-shadow-small"]};
|
|
835
|
+
`,J8=({fill:e="#fff",backgroundColor:t=M["--ll-color-primary"],backgroundColorHighlight:n=t,SVGElement:r,size:i="small",expandMarker:o,renderForPrint:s=!1})=>dt(Vgt,{"data-testid":"svgInfo",$backgroundColor:t,$backgroundColorHighlight:n,$size:i,$renderForPrint:s,variants:{default:{scale:1},hovered:{scale:1.2}},animate:o?"hovered":"default",whileHover:{scale:1.2},transition:Cg.transitions.default,children:dt(rr,{SVGElement:r,fill:e,height:Jm[i]/1.5,width:Jm[i]/1.5})});function Lt(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function ds(e){const t=v.exports.useRef(e);return v.exports.useEffect(()=>{t.current=e}),v.exports.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function fh({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,i]=jgt({defaultProp:t,onChange:n}),o=e!==void 0,s=o?e:r,a=ds(n),l=v.exports.useCallback(c=>{if(o){const u=typeof c=="function"?c(e):c;u!==e&&a(u)}else i(c)},[o,e,i,a]);return[s,l]}function jgt({defaultProp:e,onChange:t}){const n=v.exports.useState(e),[r]=n,i=v.exports.useRef(r),o=ds(t);return v.exports.useEffect(()=>{i.current!==r&&(o(r),i.current=r)},[r,i,o]),n}function Z2(e){const t=v.exports.useRef({value:e,previous:e});return v.exports.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function J2(e){const[t,n]=v.exports.useState(void 0);return zn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const o=i[0];let s,a;if("borderBoxSize"in o){const l=o.borderBoxSize,c=Array.isArray(l)?l[0]:l;s=c.inlineSize,a=c.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const tN="Switch",[Hgt,XEt]=Tc(tN),[Ugt,Wgt]=Hgt(tN),Ygt=v.exports.forwardRef((e,t)=>{const{__scopeSwitch:n,"aria-labelledby":r,name:i,checked:o,defaultChecked:s,required:a,disabled:l,value:c="on",onCheckedChange:u,...d}=e,[h,f]=v.exports.useState(null),p=Wt(t,w=>f(w)),g=Z8(h),y=r||g,m=v.exports.useRef(!1),x=h?Boolean(h.closest("form")):!0,[b=!1,_]=fh({prop:o,defaultProp:s,onChange:u});return v.exports.createElement(Ugt,{scope:n,checked:b,disabled:l},v.exports.createElement(Pt.button,it({type:"button",role:"switch","aria-checked":b,"aria-labelledby":y,"aria-required":a,"data-state":eN(b),"data-disabled":l?"":void 0,disabled:l,value:c},d,{ref:p,onClick:Lt(e.onClick,w=>{_(A=>!A),x&&(m.current=w.isPropagationStopped(),m.current||w.stopPropagation())})})),x&&v.exports.createElement(Xgt,{control:h,bubbles:!m.current,name:i,value:c,checked:b,required:a,disabled:l,style:{transform:"translateX(-100%)"}}))}),Ggt="SwitchThumb",qgt=v.exports.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,i=Wgt(Ggt,n);return v.exports.createElement(Pt.span,it({"data-state":eN(i.checked),"data-disabled":i.disabled?"":void 0},r,{ref:t}))}),Xgt=e=>{const{control:t,checked:n,bubbles:r=!0,...i}=e,o=v.exports.useRef(null),s=Z2(n),a=J2(t);return v.exports.useEffect(()=>{const l=o.current,c=window.HTMLInputElement.prototype,u=Object.getOwnPropertyDescriptor(c,"checked").set;if(s!==n&&u){const d=new Event("click",{bubbles:r});u.call(l,n),l.dispatchEvent(d)}},[s,n,r]),v.exports.createElement("input",it({type:"checkbox","aria-hidden":!0,defaultChecked:n},i,{tabIndex:-1,ref:o,style:{...e.style,...a,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function eN(e){return e?"checked":"unchecked"}const Qgt=Ygt,Kgt=qgt;z(Qgt)`
|
|
836
|
+
all: unset;
|
|
837
|
+
width: 42px;
|
|
838
|
+
height: 24px;
|
|
839
|
+
background-color: ${M["--ll-color-disabled"]};
|
|
840
|
+
border-radius: 13px;
|
|
841
|
+
position: relative;
|
|
842
|
+
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
843
|
+
|
|
844
|
+
&[data-state="checked"] {
|
|
845
|
+
background-color: ${M["--ll-color-on-background"]};
|
|
846
|
+
}
|
|
847
|
+
`;z(Kgt)`
|
|
848
|
+
display: block;
|
|
849
|
+
width: 18px;
|
|
850
|
+
height: 18px;
|
|
851
|
+
background-color: ${M["--ll-color-background"]};
|
|
852
|
+
border-radius: 9px;
|
|
853
|
+
transition: transform 100ms;
|
|
854
|
+
transform: translateX(3px);
|
|
855
|
+
will-change: transform;
|
|
856
|
+
|
|
857
|
+
&[data-state="checked"] {
|
|
858
|
+
transform: translateX(21px);
|
|
859
|
+
}
|
|
860
|
+
`;function __(e,[t,n]){return Math.min(n,Math.max(t,e))}const Zgt=v.exports.createContext(void 0);function nN(e){const t=v.exports.useContext(Zgt);return e||t||"ltr"}function rN(e){const t=e+"CollectionProvider",[n,r]=Tc(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=f=>{const{scope:p,children:g}=f,y=Z.useRef(null),m=Z.useRef(new Map).current;return Z.createElement(i,{scope:p,itemMap:m,collectionRef:y},g)},a=e+"CollectionSlot",l=Z.forwardRef((f,p)=>{const{scope:g,children:y}=f,m=o(a,g),x=Wt(p,m.collectionRef);return Z.createElement(ac,{ref:x},y)}),c=e+"CollectionItemSlot",u="data-radix-collection-item",d=Z.forwardRef((f,p)=>{const{scope:g,children:y,...m}=f,x=Z.useRef(null),b=Wt(p,x),_=o(c,g);return Z.useEffect(()=>(_.itemMap.set(x,{ref:x,...m}),()=>void _.itemMap.delete(x))),Z.createElement(ac,{[u]:"",ref:b},y)});function h(f){const p=o(e+"CollectionConsumer",f);return Z.useCallback(()=>{const g=p.collectionRef.current;if(!g)return[];const y=Array.from(g.querySelectorAll(`[${u}]`));return Array.from(p.itemMap.values()).sort((m,x)=>y.indexOf(m.ref.current)-y.indexOf(x.ref.current))},[p.collectionRef,p.itemMap])}return[{Provider:s,Slot:l,ItemSlot:d},h,r]}const iN=["PageUp","PageDown"],oN=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],sN={ltr:["ArrowDown","Home","ArrowLeft","PageDown"],rtl:["ArrowDown","Home","ArrowRight","PageDown"]},Kh="Slider",[w_,Jgt,tmt]=rN(Kh),[aN,QEt]=Tc(Kh,[tmt]),[emt,Fv]=aN(Kh),nmt=v.exports.forwardRef((e,t)=>{const{name:n,min:r=0,max:i=100,step:o=1,orientation:s="horizontal",disabled:a=!1,minStepsBetweenThumbs:l=0,defaultValue:c=[r],value:u,onValueChange:d=()=>{},...h}=e,[f,p]=v.exports.useState(null),g=Wt(t,C=>p(C)),y=v.exports.useRef(new Set),m=v.exports.useRef(0),x=s==="horizontal",b=f?Boolean(f.closest("form")):!0,_=x?rmt:imt,[w=[],A]=fh({prop:u,defaultProp:c,onChange:C=>{var T;(T=[...y.current][m.current])===null||T===void 0||T.focus(),d(C)}});function S(C){const T=fmt(w,C);k(C,T)}function E(C){k(C,m.current)}function k(C,T){const $=vmt(o),I=ymt(Math.round((C-r)/o)*o+r,$),N=__(I,[r,i]);A((D=[])=>{const Y=dmt(D,N,T);return mmt(Y,l*o)?(m.current=Y.indexOf(N),String(Y)===String(D)?D:Y):D})}return v.exports.createElement(emt,{scope:e.__scopeSlider,disabled:a,min:r,max:i,valueIndexToChangeRef:m,thumbs:y.current,values:w,orientation:s},v.exports.createElement(w_.Provider,{scope:e.__scopeSlider},v.exports.createElement(w_.Slot,{scope:e.__scopeSlider},v.exports.createElement(_,it({"aria-disabled":a,"data-disabled":a?"":void 0},h,{ref:g,min:r,max:i,onSlideStart:a?void 0:S,onSlideMove:a?void 0:E,onHomeKeyDown:()=>!a&&k(r,0),onEndKeyDown:()=>!a&&k(i,w.length-1),onStepKeyDown:({event:C,direction:T})=>{if(!a){const $=iN.includes(C.key)||C.shiftKey&&oN.includes(C.key)?10:1,I=m.current,N=w[I],D=o*$*T;k(N+D,I)}}})))),b&&w.map((C,T)=>v.exports.createElement(umt,{key:T,name:n?n+(w.length>1?"[]":""):void 0,value:C})))}),[lN,cN]=aN(Kh,{startEdge:"left",endEdge:"right",size:"width",direction:1}),rmt=v.exports.forwardRef((e,t)=>{const{min:n,max:r,dir:i,onSlideStart:o,onSlideMove:s,onStepKeyDown:a,...l}=e,[c,u]=v.exports.useState(null),d=Wt(t,y=>u(y)),h=v.exports.useRef(),f=nN(i),p=f==="ltr";function g(y){const m=h.current||c.getBoundingClientRect(),x=[0,m.width],b=tS(x,p?[n,r]:[r,n]);return h.current=m,b(y-m.left)}return v.exports.createElement(lN,{scope:e.__scopeSlider,startEdge:p?"left":"right",endEdge:p?"right":"left",direction:p?1:-1,size:"width"},v.exports.createElement(uN,it({dir:f,"data-orientation":"horizontal"},l,{ref:d,style:{...l.style,["--radix-slider-thumb-transform"]:"translateX(-50%)"},onSlideStart:y=>{const m=g(y.clientX);o==null||o(m)},onSlideMove:y=>{const m=g(y.clientX);s==null||s(m)},onSlideEnd:()=>h.current=void 0,onStepKeyDown:y=>{const m=sN[f].includes(y.key);a==null||a({event:y,direction:m?-1:1})}})))}),imt=v.exports.forwardRef((e,t)=>{const{min:n,max:r,onSlideStart:i,onSlideMove:o,onStepKeyDown:s,...a}=e,l=v.exports.useRef(null),c=Wt(t,l),u=v.exports.useRef();function d(h){const f=u.current||l.current.getBoundingClientRect(),p=[0,f.height],g=tS(p,[r,n]);return u.current=f,g(h-f.top)}return v.exports.createElement(lN,{scope:e.__scopeSlider,startEdge:"bottom",endEdge:"top",size:"height",direction:1},v.exports.createElement(uN,it({"data-orientation":"vertical"},a,{ref:c,style:{...a.style,["--radix-slider-thumb-transform"]:"translateY(50%)"},onSlideStart:h=>{const f=d(h.clientY);i==null||i(f)},onSlideMove:h=>{const f=d(h.clientY);o==null||o(f)},onSlideEnd:()=>u.current=void 0,onStepKeyDown:h=>{const f=sN.ltr.includes(h.key);s==null||s({event:h,direction:f?-1:1})}})))}),uN=v.exports.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:i,onSlideEnd:o,onHomeKeyDown:s,onEndKeyDown:a,onStepKeyDown:l,...c}=e,u=Fv(Kh,n);return v.exports.createElement(Pt.span,it({},c,{ref:t,onKeyDown:Lt(e.onKeyDown,d=>{d.key==="Home"?(s(d),d.preventDefault()):d.key==="End"?(a(d),d.preventDefault()):iN.concat(oN).includes(d.key)&&(l(d),d.preventDefault())}),onPointerDown:Lt(e.onPointerDown,d=>{const h=d.target;h.setPointerCapture(d.pointerId),d.preventDefault(),u.thumbs.has(h)?h.focus():r(d)}),onPointerMove:Lt(e.onPointerMove,d=>{d.target.hasPointerCapture(d.pointerId)&&i(d)}),onPointerUp:Lt(e.onPointerUp,d=>{const h=d.target;h.hasPointerCapture(d.pointerId)&&(h.releasePointerCapture(d.pointerId),o(d))})}))}),omt="SliderTrack",smt=v.exports.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,i=Fv(omt,n);return v.exports.createElement(Pt.span,it({"data-disabled":i.disabled?"":void 0,"data-orientation":i.orientation},r,{ref:t}))}),g$="SliderRange",amt=v.exports.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,i=Fv(g$,n),o=cN(g$,n),s=v.exports.useRef(null),a=Wt(t,s),l=i.values.length,c=i.values.map(h=>dN(h,i.min,i.max)),u=l>1?Math.min(...c):0,d=100-Math.max(...c);return v.exports.createElement(Pt.span,it({"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0},r,{ref:a,style:{...e.style,[o.startEdge]:u+"%",[o.endEdge]:d+"%"}}))}),m$="SliderThumb",lmt=v.exports.forwardRef((e,t)=>{const n=Jgt(e.__scopeSlider),[r,i]=v.exports.useState(null),o=Wt(t,a=>i(a)),s=v.exports.useMemo(()=>r?n().findIndex(a=>a.ref.current===r):-1,[n,r]);return v.exports.createElement(cmt,it({},e,{ref:o,index:s}))}),cmt=v.exports.forwardRef((e,t)=>{const{__scopeSlider:n,index:r,...i}=e,o=Fv(m$,n),s=cN(m$,n),[a,l]=v.exports.useState(null),c=Wt(t,y=>l(y)),u=J2(a),d=o.values[r],h=d===void 0?0:dN(d,o.min,o.max),f=hmt(r,o.values.length),p=u==null?void 0:u[s.size],g=p?pmt(p,h,s.direction):0;return v.exports.useEffect(()=>{if(a)return o.thumbs.add(a),()=>{o.thumbs.delete(a)}},[a,o.thumbs]),v.exports.createElement("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[s.startEdge]:`calc(${h}% + ${g}px)`}},v.exports.createElement(w_.ItemSlot,{scope:e.__scopeSlider},v.exports.createElement(Pt.span,it({role:"slider","aria-label":e["aria-label"]||f,"aria-valuemin":o.min,"aria-valuenow":d,"aria-valuemax":o.max,"aria-orientation":o.orientation,"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,tabIndex:o.disabled?void 0:0},i,{ref:c,style:d===void 0?{display:"none"}:e.style,onFocus:Lt(e.onFocus,()=>{o.valueIndexToChangeRef.current=r})}))))}),umt=e=>{const{value:t,...n}=e,r=v.exports.useRef(null),i=Z2(t);return v.exports.useEffect(()=>{const o=r.current,s=window.HTMLInputElement.prototype,a=Object.getOwnPropertyDescriptor(s,"value").set;if(i!==t&&a){const l=new Event("input",{bubbles:!0});a.call(o,t),o.dispatchEvent(l)}},[i,t]),v.exports.createElement("input",it({style:{display:"none"}},n,{ref:r,defaultValue:t}))};function dmt(e=[],t,n){const r=[...e];return r[n]=t,r.sort((i,o)=>i-o)}function dN(e,t,n){return 100/(n-t)*(e-t)}function hmt(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function fmt(e,t){if(e.length===1)return 0;const n=e.map(i=>Math.abs(i-t)),r=Math.min(...n);return n.indexOf(r)}function pmt(e,t,n){const r=e/2,i=tS([0,50],[0,r]);return(r-i(t)*n)*n}function gmt(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function mmt(e,t){if(t>0){const n=gmt(e);return Math.min(...n)>=t}return!0}function tS(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function vmt(e){return(String(e).split(".")[1]||"").length}function ymt(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}const xmt=nmt,bmt=smt,_mt=amt,wmt=lmt;z.div``;z.div`
|
|
861
|
+
display: flex;
|
|
862
|
+
align-items: center;
|
|
863
|
+
`;z(xmt)`
|
|
864
|
+
position: relative;
|
|
865
|
+
display: flex;
|
|
866
|
+
align-items: center;
|
|
867
|
+
user-select: none;
|
|
868
|
+
touch-action: none;
|
|
869
|
+
height: 20;
|
|
870
|
+
flex: 1;
|
|
871
|
+
`;z(wmt)`
|
|
872
|
+
all: unset;
|
|
873
|
+
height: 20px;
|
|
874
|
+
width: 20px;
|
|
875
|
+
border-radius: 50%;
|
|
876
|
+
display: block;
|
|
877
|
+
background-color: ${M["--ll-color-primary"]};
|
|
878
|
+
box-shadow: ${M["--ll-shadow-medium"]};
|
|
879
|
+
`;z(bmt)`
|
|
880
|
+
height: 4px;
|
|
881
|
+
border-radius: 2px;
|
|
882
|
+
background-color: ${M["--ll-color-surface-variant1"]};
|
|
883
|
+
position: relative;
|
|
884
|
+
flex: 1;
|
|
885
|
+
`;z(_mt)`
|
|
886
|
+
height: 100%;
|
|
887
|
+
position: absolute;
|
|
888
|
+
background-color: ${M["--ll-color-primary"]};
|
|
889
|
+
border-radius: 2px;
|
|
890
|
+
`;const Amt=({$vertical:e,$spacing:t})=>{const n=M[t];return e?`${n} 0 0 0`:`0 ${n} 0 0`},Smt=z.div`
|
|
891
|
+
margin: ${e=>Amt(e)};
|
|
892
|
+
flex-shrink: 0;
|
|
893
|
+
`,hp=({vertical:e=!1,spacing:t="--ll-spacing-auto"})=>dt(Smt,{$vertical:e,$spacing:t}),My={primary:{background:M["--ll-color-primary"],onBackground:M["--ll-color-on-primary"],hover:M["--ll-color-primary-variant1"]},inverse:{background:"transparent",onBackground:M["--ll-color-primary"],hover:"rgba(0,0,0,0.05)"},neutral:{background:"transparent",onBackground:M["--ll-color-on-background-variant1"],hover:"rgba(0,0,0,0.05)"}},v$={small:24,medium:32,large:48};z.button`
|
|
894
|
+
${({color:e="primary",size:t="medium"})=>_t`
|
|
895
|
+
border: none;
|
|
896
|
+
background-color: ${My[e].background};
|
|
897
|
+
color: ${My[e].onBackground};
|
|
898
|
+
border-radius: 50%;
|
|
899
|
+
height: ${v$[t]}px;
|
|
900
|
+
width: ${v$[t]}px;
|
|
901
|
+
display: flex;
|
|
902
|
+
justify-content: center;
|
|
903
|
+
align-items: center;
|
|
904
|
+
padding: 6px;
|
|
905
|
+
|
|
906
|
+
&:hover {
|
|
907
|
+
background-color: ${My[e].hover};
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
&:disabled {
|
|
911
|
+
cursor: default;
|
|
912
|
+
background-color: rgba(0, 0, 0, 0.1);
|
|
913
|
+
color: ${M["--ll-color-on-background-variant1"]};
|
|
914
|
+
}
|
|
915
|
+
`};
|
|
916
|
+
`;function Emt({height:e,width:t}){return _t`
|
|
917
|
+
height: ${e};
|
|
918
|
+
width: ${t};
|
|
919
|
+
`}const Cmt=J0`
|
|
920
|
+
from {
|
|
921
|
+
background-position: -800px 0;
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
to {
|
|
925
|
+
background-position: 800px 0;
|
|
926
|
+
}
|
|
927
|
+
`;z.div`
|
|
928
|
+
border-radius: ${M["--ll-border-radius-medium"]};
|
|
929
|
+
animation: ${Cmt} 2s linear infinite;
|
|
930
|
+
background: linear-gradient(
|
|
931
|
+
to right,
|
|
932
|
+
/* NOTE: 99.9% of the time we should use colours from theme, since these are
|
|
933
|
+
CSS vars that can be overriden. */
|
|
934
|
+
${M["--ll-color-surface-variant1"]} 4%,
|
|
935
|
+
${M["--ll-color-surface-variant2"]} 25%,
|
|
936
|
+
${M["--ll-color-surface-variant1"]} 36%
|
|
937
|
+
);
|
|
938
|
+
background-size: 800px 100%;
|
|
939
|
+
${Emt}
|
|
940
|
+
`;z.div`
|
|
941
|
+
flex: 1;
|
|
942
|
+
height: 100%;
|
|
943
|
+
width: 100%;
|
|
944
|
+
display: flex;
|
|
945
|
+
align-items: center;
|
|
946
|
+
justify-content: center;
|
|
947
|
+
`;z.div`
|
|
948
|
+
display: flex;
|
|
949
|
+
flex-direction: column;
|
|
950
|
+
align-items: center;
|
|
951
|
+
`;var kmt=Object.defineProperty,Tmt=(e,t,n)=>t in e?kmt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,cd=(e,t,n)=>(Tmt(e,typeof t!="symbol"?t+"":t,n),n);const kg=e=>typeof e=="object"&&e!==null&&!Array.isArray(e);function A_(e,...t){if(!t.length)return e;const n=t.shift();return kg(e)&&kg(n)&&Object.keys(n).forEach(r=>{kg(n[r])?(e[r]||Object.assign(e,{[r]:{}}),A_(e[r],n[r])):Object.assign(e,{[r]:n[r]})}),A_(e,...t)}const eS=Object.freeze(Object.defineProperty({__proto__:null,isObject:kg,mergeDeep:A_},Symbol.toStringTag,{value:"Module"}));var Rn={},nS={},Zh={},rS={};/*!
|
|
952
|
+
* cookie
|
|
953
|
+
* Copyright(c) 2012-2014 Roman Shtylman
|
|
954
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
955
|
+
* MIT Licensed
|
|
956
|
+
*/rS.parse=Omt;rS.serialize=Rmt;var Mmt=decodeURIComponent,$mt=encodeURIComponent,Pmt=/; */,fp=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function Omt(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");for(var n={},r=t||{},i=e.split(Pmt),o=r.decode||Mmt,s=0;s<i.length;s++){var a=i[s],l=a.indexOf("=");if(!(l<0)){var c=a.substr(0,l).trim(),u=a.substr(++l,a.length).trim();u[0]=='"'&&(u=u.slice(1,-1)),n[c]==null&&(n[c]=Dmt(u,o))}}return n}function Rmt(e,t,n){var r=n||{},i=r.encode||$mt;if(typeof i!="function")throw new TypeError("option encode is invalid");if(!fp.test(e))throw new TypeError("argument name is invalid");var o=i(t);if(o&&!fp.test(o))throw new TypeError("argument val is invalid");var s=e+"="+o;if(r.maxAge!=null){var a=r.maxAge-0;if(isNaN(a))throw new Error("maxAge should be a Number");s+="; Max-Age="+Math.floor(a)}if(r.domain){if(!fp.test(r.domain))throw new TypeError("option domain is invalid");s+="; Domain="+r.domain}if(r.path){if(!fp.test(r.path))throw new TypeError("option path is invalid");s+="; Path="+r.path}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");s+="; Expires="+r.expires.toUTCString()}if(r.httpOnly&&(s+="; HttpOnly"),r.secure&&(s+="; Secure"),r.sameSite){var l=typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite;switch(l){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;default:throw new TypeError("option sameSite is invalid")}}return s}function Dmt(e,t){try{return t(e)}catch(n){return e}}Object.defineProperty(Zh,"__esModule",{value:!0});var Lmt=function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();Zh.hasCookies=zmt;var Imt=rS,pp=Nmt(Imt);function Nmt(e){return e&&e.__esModule?e:{default:e}}function Fmt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var co="lS_",hN=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Fmt(this,e),this.cookieOptions=Object.assign({path:"/"},t),co=t.prefix===void 0?co:t.prefix}return Lmt(e,[{key:"getItem",value:function(t){var n=pp.default.parse(document.cookie);return!n||!n.hasOwnProperty(co+t)?null:n[co+t]}},{key:"setItem",value:function(t,n){return document.cookie=pp.default.serialize(co+t,n,this.cookieOptions),n}},{key:"removeItem",value:function(t){var n=Object.assign({},this.cookieOptions,{maxAge:-1});return document.cookie=pp.default.serialize(co+t,"",n),null}},{key:"clear",value:function(){var t=pp.default.parse(document.cookie);for(var n in t)n.indexOf(co)===0&&this.removeItem(n.substr(co.length));return null}}]),e}();Zh.default=hN;function zmt(){var e=new hN;try{var t="__test";e.setItem(t,"1");var n=e.getItem(t);return e.removeItem(t),n==="1"}catch(r){return!1}}Object.defineProperty(nS,"__esModule",{value:!0});nS.default=Vmt;var Bmt=Zh,y$="__test";function x$(e){try{var t=window[e];return t.setItem(y$,"1"),t.removeItem(y$),!0}catch(n){return!1}}function Vmt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"localStorage",t=String(e).replace(/storage$/i,"").toLowerCase();if(t==="local")return x$("localStorage");if(t==="session")return x$("sessionStorage");if(t==="cookie")return(0,Bmt.hasCookies)();if(t==="memory")return!0;throw new Error("Storage method `"+e+"` is not available.\n Please use one of the following: localStorage, sessionStorage, cookieStorage, memoryStorage.")}var iS={};Object.defineProperty(iS,"__esModule",{value:!0});var jmt=function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function Hmt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var Umt=function(){function e(){Hmt(this,e),this._data={}}return jmt(e,[{key:"getItem",value:function(t){return this._data.hasOwnProperty(t)?this._data[t]:null}},{key:"setItem",value:function(t,n){return this._data[t]=String(n)}},{key:"removeItem",value:function(t){return delete this._data[t]}},{key:"clear",value:function(){return this._data={}}}]),e}();iS.default=Umt;Object.defineProperty(Rn,"__esModule",{value:!0});Rn.MemoryStorage=Rn.CookieStorage=Rn.isSupported=Rn.storage=void 0;var Wmt=nS,Tg=oS(Wmt),Ymt=Zh,fN=oS(Ymt),Gmt=iS,pN=oS(Gmt);function oS(e){return e&&e.__esModule?e:{default:e}}var gl=null;(0,Tg.default)("localStorage")?Rn.storage=gl=window.localStorage:(0,Tg.default)("sessionStorage")?Rn.storage=gl=window.sessionStorage:(0,Tg.default)("cookieStorage")?Rn.storage=gl=new fN.default:Rn.storage=gl=new pN.default;var qmt=Rn.default=gl;Rn.storage=gl;Rn.isSupported=Tg.default;Rn.CookieStorage=fN.default;Rn.MemoryStorage=pN.default;class gN{constructor(t="global"){cd(this,"group"),cd(this,"localStorage"),this.group=t,this.localStorage=qmt}setGroup(t){this.group=t}getGroup(){return this.group}getItem(t){return this.localStorage.getItem(`${this.group}.${t}`)}setItem(t,n){this.localStorage.setItem(`${this.group}.${t}`,n)}removeItem(t){this.localStorage.removeItem(`${this.group}.${t}`)}}new gN;class Xmt{constructor(){cd(this,"storageLocation","suggestion_history"),cd(this,"storage"),cd(this,"history",[]),this.storage=new gN("commute");const t=this.storage.getItem(this.storageLocation);t&&(this.history=JSON.parse(t))}push(t){this.history=this.removeDuplicateEntries(t),this.history.unshift(t),this.history.length>5&&(this.history=this.history.slice(0,5)),this.storage.setItem(this.storageLocation,JSON.stringify(this.history))}hasSuggestionHistory(){return this.history.length>0}getSuggestionHistory(){return this.history}removeDuplicateEntries(t){return this.history.filter(n=>n.locationId!==t.locationId)}}new Xmt;/*!
|
|
957
|
+
* @kurkle/color v0.3.2
|
|
958
|
+
* https://github.com/kurkle/color#readme
|
|
959
|
+
* (c) 2023 Jukka Kurkela
|
|
960
|
+
* Released under the MIT License
|
|
961
|
+
*/function Jh(e){return e+.5|0}const No=(e,t,n)=>Math.max(Math.min(e,n),t);function mu(e){return No(Jh(e*2.55),0,255)}function es(e){return No(Jh(e*255),0,255)}function Oi(e){return No(Jh(e/2.55)/100,0,1)}function b$(e){return No(Jh(e*100),0,100)}const cr={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},S_=[..."0123456789ABCDEF"],Qmt=e=>S_[e&15],Kmt=e=>S_[(e&240)>>4]+S_[e&15],gp=e=>(e&240)>>4===(e&15),Zmt=e=>gp(e.r)&&gp(e.g)&&gp(e.b)&&gp(e.a);function Jmt(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&cr[e[1]]*17,g:255&cr[e[2]]*17,b:255&cr[e[3]]*17,a:t===5?cr[e[4]]*17:255}:(t===7||t===9)&&(n={r:cr[e[1]]<<4|cr[e[2]],g:cr[e[3]]<<4|cr[e[4]],b:cr[e[5]]<<4|cr[e[6]],a:t===9?cr[e[7]]<<4|cr[e[8]]:255})),n}const t0t=(e,t)=>e<255?t(e):"";function e0t(e){var t=Zmt(e)?Qmt:Kmt;return e?"#"+t(e.r)+t(e.g)+t(e.b)+t0t(e.a,t):void 0}const n0t=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function mN(e,t,n){const r=t*Math.min(n,1-n),i=(o,s=(o+e/30)%12)=>n-r*Math.max(Math.min(s-3,9-s,1),-1);return[i(0),i(8),i(4)]}function r0t(e,t,n){const r=(i,o=(i+e/60)%6)=>n-n*t*Math.max(Math.min(o,4-o,1),0);return[r(5),r(3),r(1)]}function i0t(e,t,n){const r=mN(e,1,.5);let i;for(t+n>1&&(i=1/(t+n),t*=i,n*=i),i=0;i<3;i++)r[i]*=1-t-n,r[i]+=t;return r}function o0t(e,t,n,r,i){return e===i?(t-n)/r+(t<n?6:0):t===i?(n-e)/r+2:(e-t)/r+4}function sS(e){const t=e.r/255,n=e.g/255,r=e.b/255,i=Math.max(t,n,r),o=Math.min(t,n,r),s=(i+o)/2;let a,l,c;return i!==o&&(c=i-o,l=s>.5?c/(2-i-o):c/(i+o),a=o0t(t,n,r,c,i),a=a*60+.5),[a|0,l||0,s]}function aS(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(es)}function lS(e,t,n){return aS(mN,e,t,n)}function s0t(e,t,n){return aS(i0t,e,t,n)}function a0t(e,t,n){return aS(r0t,e,t,n)}function vN(e){return(e%360+360)%360}function l0t(e){const t=n0t.exec(e);let n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?mu(+t[5]):es(+t[5]));const i=vN(+t[2]),o=+t[3]/100,s=+t[4]/100;return t[1]==="hwb"?r=s0t(i,o,s):t[1]==="hsv"?r=a0t(i,o,s):r=lS(i,o,s),{r:r[0],g:r[1],b:r[2],a:n}}function c0t(e,t){var n=sS(e);n[0]=vN(n[0]+t),n=lS(n),e.r=n[0],e.g=n[1],e.b=n[2]}function u0t(e){if(!e)return;const t=sS(e),n=t[0],r=b$(t[1]),i=b$(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${Oi(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}const _$={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},w$={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function d0t(){const e={},t=Object.keys(w$),n=Object.keys(_$);let r,i,o,s,a;for(r=0;r<t.length;r++){for(s=a=t[r],i=0;i<n.length;i++)o=n[i],a=a.replace(o,_$[o]);o=parseInt(w$[s],16),e[a]=[o>>16&255,o>>8&255,o&255]}return e}let mp;function h0t(e){mp||(mp=d0t(),mp.transparent=[0,0,0,0]);const t=mp[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const f0t=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function p0t(e){const t=f0t.exec(e);let n=255,r,i,o;if(t){if(t[7]!==r){const s=+t[7];n=t[8]?mu(s):No(s*255,0,255)}return r=+t[1],i=+t[3],o=+t[5],r=255&(t[2]?mu(r):No(r,0,255)),i=255&(t[4]?mu(i):No(i,0,255)),o=255&(t[6]?mu(o):No(o,0,255)),{r,g:i,b:o,a:n}}}function g0t(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${Oi(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const $y=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,Va=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function m0t(e,t,n){const r=Va(Oi(e.r)),i=Va(Oi(e.g)),o=Va(Oi(e.b));return{r:es($y(r+n*(Va(Oi(t.r))-r))),g:es($y(i+n*(Va(Oi(t.g))-i))),b:es($y(o+n*(Va(Oi(t.b))-o))),a:e.a+n*(t.a-e.a)}}function vp(e,t,n){if(e){let r=sS(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=lS(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function yN(e,t){return e&&Object.assign(t||{},e)}function A$(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=es(e[3]))):(t=yN(e,{r:0,g:0,b:0,a:1}),t.a=es(t.a)),t}function v0t(e){return e.charAt(0)==="r"?p0t(e):l0t(e)}class ph{constructor(t){if(t instanceof ph)return t;const n=typeof t;let r;n==="object"?r=A$(t):n==="string"&&(r=Jmt(t)||h0t(t)||v0t(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=yN(this._rgb);return t&&(t.a=Oi(t.a)),t}set rgb(t){this._rgb=A$(t)}rgbString(){return this._valid?g0t(this._rgb):void 0}hexString(){return this._valid?e0t(this._rgb):void 0}hslString(){return this._valid?u0t(this._rgb):void 0}mix(t,n){if(t){const r=this.rgb,i=t.rgb;let o;const s=n===o?.5:n,a=2*s-1,l=r.a-i.a,c=((a*l===-1?a:(a+l)/(1+a*l))+1)/2;o=1-c,r.r=255&c*r.r+o*i.r+.5,r.g=255&c*r.g+o*i.g+.5,r.b=255&c*r.b+o*i.b+.5,r.a=s*r.a+(1-s)*i.a,this.rgb=r}return this}interpolate(t,n){return t&&(this._rgb=m0t(this._rgb,t._rgb,n)),this}clone(){return new ph(this.rgb)}alpha(t){return this._rgb.a=es(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=Jh(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return vp(this._rgb,2,t),this}darken(t){return vp(this._rgb,2,-t),this}saturate(t){return vp(this._rgb,1,t),this}desaturate(t){return vp(this._rgb,1,-t),this}rotate(t){return c0t(this._rgb,t),this}}/*!
|
|
962
|
+
* Chart.js v4.2.0
|
|
963
|
+
* https://www.chartjs.org
|
|
964
|
+
* (c) 2023 Chart.js Contributors
|
|
965
|
+
* Released under the MIT License
|
|
966
|
+
*/function bi(){}const y0t=(()=>{let e=0;return()=>e++})();function bt(e){return e===null||typeof e>"u"}function Zt(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function pt(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function ge(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function Wn(e,t){return ge(e)?e:t}function ut(e,t){return typeof e>"u"?t:e}const x0t=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,xN=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function Bt(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function Tt(e,t,n,r){let i,o,s;if(Zt(e))if(o=e.length,r)for(i=o-1;i>=0;i--)t.call(n,e[i],i);else for(i=0;i<o;i++)t.call(n,e[i],i);else if(pt(e))for(s=Object.keys(e),o=s.length,i=0;i<o;i++)t.call(n,e[s[i]],s[i])}function t0(e,t){let n,r,i,o;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(i=e[n],o=t[n],i.datasetIndex!==o.datasetIndex||i.index!==o.index)return!1;return!0}function e0(e){if(Zt(e))return e.map(e0);if(pt(e)){const t=Object.create(null),n=Object.keys(e),r=n.length;let i=0;for(;i<r;++i)t[n[i]]=e0(e[n[i]]);return t}return e}function bN(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function b0t(e,t,n,r){if(!bN(e))return;const i=t[e],o=n[e];pt(i)&&pt(o)?gh(i,o,r):t[e]=e0(o)}function gh(e,t,n){const r=Zt(t)?t:[t],i=r.length;if(!pt(e))return e;n=n||{};const o=n.merger||b0t;let s;for(let a=0;a<i;++a){if(s=r[a],!pt(s))continue;const l=Object.keys(s);for(let c=0,u=l.length;c<u;++c)o(l[c],e,s,n)}return e}function ud(e,t){return gh(e,t,{merger:_0t})}function _0t(e,t,n){if(!bN(e))return;const r=t[e],i=n[e];pt(r)&&pt(i)?ud(r,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=e0(i))}const S$={"":e=>e,x:e=>e.x,y:e=>e.y};function w0t(e){const t=e.split("."),n=[];let r="";for(const i of t)r+=i,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function A0t(e){const t=w0t(e);return n=>{for(const r of t){if(r==="")break;n=n&&n[r]}return n}}function hs(e,t){return(S$[t]||(S$[t]=A0t(t)))(e)}function cS(e){return e.charAt(0).toUpperCase()+e.slice(1)}const _r=e=>typeof e<"u",fs=e=>typeof e=="function",E$=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function S0t(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const oe=Math.PI,ee=2*oe,E0t=ee+oe,n0=Number.POSITIVE_INFINITY,C0t=oe/180,me=oe/2,Ds=oe/4,C$=oe*2/3,Fo=Math.log10,di=Math.sign;function dd(e,t,n){return Math.abs(e-t)<n}function k$(e){const t=Math.round(e);e=dd(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(Fo(e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function k0t(e){const t=[],n=Math.sqrt(e);let r;for(r=1;r<n;r++)e%r===0&&(t.push(r),t.push(e/r));return n===(n|0)&&t.push(n),t.sort((i,o)=>i-o).pop(),t}function lc(e){return!isNaN(parseFloat(e))&&isFinite(e)}function T0t(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function _N(e,t,n){let r,i,o;for(r=0,i=e.length;r<i;r++)o=e[r][n],isNaN(o)||(t.min=Math.min(t.min,o),t.max=Math.max(t.max,o))}function Dr(e){return e*(oe/180)}function uS(e){return e*(180/oe)}function T$(e){if(!ge(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function wN(e,t){const n=t.x-e.x,r=t.y-e.y,i=Math.sqrt(n*n+r*r);let o=Math.atan2(r,n);return o<-.5*oe&&(o+=ee),{angle:o,distance:i}}function E_(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function M0t(e,t){return(e-t+E0t)%ee-oe}function qn(e){return(e%ee+ee)%ee}function mh(e,t,n,r){const i=qn(e),o=qn(t),s=qn(n),a=qn(o-i),l=qn(s-i),c=qn(i-o),u=qn(i-s);return i===o||i===s||r&&o===s||a>l&&c<u}function Ve(e,t,n){return Math.max(t,Math.min(n,e))}function $0t(e){return Ve(e,-32768,32767)}function Ni(e,t,n,r=1e-6){return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function dS(e,t,n){n=n||(s=>e[s]<t);let r=e.length-1,i=0,o;for(;r-i>1;)o=i+r>>1,n(o)?i=o:r=o;return{lo:i,hi:r}}const Fi=(e,t,n,r)=>dS(e,n,r?i=>{const o=e[i][t];return o<n||o===n&&e[i+1][t]===n}:i=>e[i][t]<n),P0t=(e,t,n)=>dS(e,n,r=>e[r][t]>=n);function O0t(e,t,n){let r=0,i=e.length;for(;r<i&&e[r]<t;)r++;for(;i>r&&e[i-1]>n;)i--;return r>0||i<e.length?e.slice(r,i):e}const AN=["push","pop","shift","splice","unshift"];function R0t(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),AN.forEach(n=>{const r="_onData"+cS(n),i=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...o){const s=i.apply(this,o);return e._chartjs.listeners.forEach(a=>{typeof a[r]=="function"&&a[r](...o)}),s}})})}function M$(e,t){const n=e._chartjs;if(!n)return;const r=n.listeners,i=r.indexOf(t);i!==-1&&r.splice(i,1),!(r.length>0)&&(AN.forEach(o=>{delete e[o]}),delete e._chartjs)}function SN(e){const t=new Set;let n,r;for(n=0,r=e.length;n<r;++n)t.add(e[n]);return t.size===r?e:Array.from(t)}const EN=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function CN(e,t){let n=[],r=!1;return function(...i){n=i,r||(r=!0,EN.call(window,()=>{r=!1,e.apply(t,n)}))}}function D0t(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}const hS=e=>e==="start"?"left":e==="end"?"right":"center",en=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,L0t=(e,t,n,r)=>e===(r?"left":"right")?n:e==="center"?(t+n)/2:t;function kN(e,t,n){const r=t.length;let i=0,o=r;if(e._sorted){const{iScale:s,_parsed:a}=e,l=s.axis,{min:c,max:u,minDefined:d,maxDefined:h}=s.getUserBounds();d&&(i=Ve(Math.min(Fi(a,s.axis,c).lo,n?r:Fi(t,l,s.getPixelForValue(c)).lo),0,r-1)),h?o=Ve(Math.max(Fi(a,s.axis,u,!0).hi+1,n?0:Fi(t,l,s.getPixelForValue(u),!0).hi+1),i,r)-i:o=r-i}return{start:i,count:o}}function TN(e){const{xScale:t,yScale:n,_scaleRanges:r}=e,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=i,!0;const o=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),o}const yp=e=>e===0||e===1,$$=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*ee/n)),P$=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*ee/n)+1,hd={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*me)+1,easeOutSine:e=>Math.sin(e*me),easeInOutSine:e=>-.5*(Math.cos(oe*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>yp(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>yp(e)?e:$$(e,.075,.3),easeOutElastic:e=>yp(e)?e:P$(e,.075,.3),easeInOutElastic(e){return yp(e)?e:e<.5?.5*$$(e*2,.1125,.45):.5+.5*P$(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-hd.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?hd.easeInBounce(e*2)*.5:hd.easeOutBounce(e*2-1)*.5+.5};function MN(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function O$(e){return MN(e)?e:new ph(e)}function Py(e){return MN(e)?e:new ph(e).saturate(.5).darken(.1).hexString()}const I0t=["x","y","borderWidth","radius","tension"],N0t=["color","borderColor","backgroundColor"];function F0t(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:N0t},numbers:{type:"number",properties:I0t}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function z0t(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const R$=new Map;function B0t(e,t){t=t||{};const n=e+JSON.stringify(t);let r=R$.get(n);return r||(r=new Intl.NumberFormat(e,t),R$.set(n,r)),r}function tf(e,t,n){return B0t(t,n).format(e)}const $N={values(e){return Zt(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const r=this.chart.options.locale;let i,o=e;if(n.length>1){const c=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(c<1e-4||c>1e15)&&(i="scientific"),o=V0t(e,n)}const s=Fo(Math.abs(o)),a=Math.max(Math.min(-1*Math.floor(s),20),0),l={notation:i,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),tf(e,r,l)},logarithmic(e,t,n){if(e===0)return"0";const r=n[t].significand||e/Math.pow(10,Math.floor(Fo(e)));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?$N.numeric.call(this,e,t,n):""}};function V0t(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var zv={formatters:$N};function j0t(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:zv.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const _a=Object.create(null),C_=Object.create(null);function fd(e,t){if(!t)return e;const n=t.split(".");for(let r=0,i=n.length;r<i;++r){const o=n[r];e=e[o]||(e[o]=Object.create(null))}return e}function Oy(e,t,n){return typeof t=="string"?gh(fd(e,t),n):gh(fd(e,""),t)}class H0t{constructor(t,n){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=r=>r.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(r,i)=>Py(i.backgroundColor),this.hoverBorderColor=(r,i)=>Py(i.borderColor),this.hoverColor=(r,i)=>Py(i.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return Oy(this,t,n)}get(t){return fd(this,t)}describe(t,n){return Oy(C_,t,n)}override(t,n){return Oy(_a,t,n)}route(t,n,r,i){const o=fd(this,t),s=fd(this,r),a="_"+n;Object.defineProperties(o,{[a]:{value:o[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[a],c=s[i];return pt(l)?Object.assign({},c,l):ut(l,c)},set(l){this[a]=l}}})}apply(t){t.forEach(n=>n(this))}}var we=new H0t({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[F0t,z0t,j0t]);function U0t(e){return!e||bt(e.size)||bt(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function r0(e,t,n,r,i){let o=t[i];return o||(o=t[i]=e.measureText(i).width,n.push(i)),o>r&&(r=o),r}function W0t(e,t,n,r){r=r||{};let i=r.data=r.data||{},o=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(i=r.data={},o=r.garbageCollect=[],r.font=t),e.save(),e.font=t;let s=0;const a=n.length;let l,c,u,d,h;for(l=0;l<a;l++)if(d=n[l],d!=null&&Zt(d)!==!0)s=r0(e,i,o,s,d);else if(Zt(d))for(c=0,u=d.length;c<u;c++)h=d[c],h!=null&&!Zt(h)&&(s=r0(e,i,o,s,h));e.restore();const f=o.length/2;if(f>n.length){for(l=0;l<f;l++)delete i[o[l]];o.splice(0,f)}return s}function Ls(e,t,n){const r=e.currentDevicePixelRatio,i=n!==0?Math.max(n/2,.5):0;return Math.round((t-i)*r)/r+i}function D$(e,t){t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore()}function k_(e,t,n,r){PN(e,t,n,r,null)}function PN(e,t,n,r,i){let o,s,a,l,c,u,d,h;const f=t.pointStyle,p=t.rotation,g=t.radius;let y=(p||0)*C0t;if(f&&typeof f=="object"&&(o=f.toString(),o==="[object HTMLImageElement]"||o==="[object HTMLCanvasElement]")){e.save(),e.translate(n,r),e.rotate(y),e.drawImage(f,-f.width/2,-f.height/2,f.width,f.height),e.restore();return}if(!(isNaN(g)||g<=0)){switch(e.beginPath(),f){default:i?e.ellipse(n,r,i/2,g,0,0,ee):e.arc(n,r,g,0,ee),e.closePath();break;case"triangle":u=i?i/2:g,e.moveTo(n+Math.sin(y)*u,r-Math.cos(y)*g),y+=C$,e.lineTo(n+Math.sin(y)*u,r-Math.cos(y)*g),y+=C$,e.lineTo(n+Math.sin(y)*u,r-Math.cos(y)*g),e.closePath();break;case"rectRounded":c=g*.516,l=g-c,s=Math.cos(y+Ds)*l,d=Math.cos(y+Ds)*(i?i/2-c:l),a=Math.sin(y+Ds)*l,h=Math.sin(y+Ds)*(i?i/2-c:l),e.arc(n-d,r-a,c,y-oe,y-me),e.arc(n+h,r-s,c,y-me,y),e.arc(n+d,r+a,c,y,y+me),e.arc(n-h,r+s,c,y+me,y+oe),e.closePath();break;case"rect":if(!p){l=Math.SQRT1_2*g,u=i?i/2:l,e.rect(n-u,r-l,2*u,2*l);break}y+=Ds;case"rectRot":d=Math.cos(y)*(i?i/2:g),s=Math.cos(y)*g,a=Math.sin(y)*g,h=Math.sin(y)*(i?i/2:g),e.moveTo(n-d,r-a),e.lineTo(n+h,r-s),e.lineTo(n+d,r+a),e.lineTo(n-h,r+s),e.closePath();break;case"crossRot":y+=Ds;case"cross":d=Math.cos(y)*(i?i/2:g),s=Math.cos(y)*g,a=Math.sin(y)*g,h=Math.sin(y)*(i?i/2:g),e.moveTo(n-d,r-a),e.lineTo(n+d,r+a),e.moveTo(n+h,r-s),e.lineTo(n-h,r+s);break;case"star":d=Math.cos(y)*(i?i/2:g),s=Math.cos(y)*g,a=Math.sin(y)*g,h=Math.sin(y)*(i?i/2:g),e.moveTo(n-d,r-a),e.lineTo(n+d,r+a),e.moveTo(n+h,r-s),e.lineTo(n-h,r+s),y+=Ds,d=Math.cos(y)*(i?i/2:g),s=Math.cos(y)*g,a=Math.sin(y)*g,h=Math.sin(y)*(i?i/2:g),e.moveTo(n-d,r-a),e.lineTo(n+d,r+a),e.moveTo(n+h,r-s),e.lineTo(n-h,r+s);break;case"line":s=i?i/2:Math.cos(y)*g,a=Math.sin(y)*g,e.moveTo(n-s,r-a),e.lineTo(n+s,r+a);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(y)*(i?i/2:g),r+Math.sin(y)*g);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function vh(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function Bv(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function Vv(e){e.restore()}function Y0t(e,t,n,r,i){if(!t)return e.lineTo(n.x,n.y);if(i==="middle"){const o=(t.x+n.x)/2;e.lineTo(o,t.y),e.lineTo(o,n.y)}else i==="after"!=!!r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function G0t(e,t,n,r){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(r?t.cp1x:t.cp2x,r?t.cp1y:t.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function wa(e,t,n,r,i,o={}){const s=Zt(t)?t:[t],a=o.strokeWidth>0&&o.strokeColor!=="";let l,c;for(e.save(),e.font=i.string,q0t(e,o),l=0;l<s.length;++l)c=s[l],o.backdrop&&Q0t(e,o.backdrop),a&&(o.strokeColor&&(e.strokeStyle=o.strokeColor),bt(o.strokeWidth)||(e.lineWidth=o.strokeWidth),e.strokeText(c,n,r,o.maxWidth)),e.fillText(c,n,r,o.maxWidth),X0t(e,n,r,c,o),r+=i.lineHeight;e.restore()}function q0t(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),bt(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}function X0t(e,t,n,r,i){if(i.strikethrough||i.underline){const o=e.measureText(r),s=t-o.actualBoundingBoxLeft,a=t+o.actualBoundingBoxRight,l=n-o.actualBoundingBoxAscent,c=n+o.actualBoundingBoxDescent,u=i.strikethrough?(l+c)/2:c;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=i.decorationWidth||2,e.moveTo(s,u),e.lineTo(a,u),e.stroke()}}function Q0t(e,t){const n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function yh(e,t){const{x:n,y:r,w:i,h:o,radius:s}=t;e.arc(n+s.topLeft,r+s.topLeft,s.topLeft,-me,oe,!0),e.lineTo(n,r+o-s.bottomLeft),e.arc(n+s.bottomLeft,r+o-s.bottomLeft,s.bottomLeft,oe,me,!0),e.lineTo(n+i-s.bottomRight,r+o),e.arc(n+i-s.bottomRight,r+o-s.bottomRight,s.bottomRight,me,0,!0),e.lineTo(n+i,r+s.topRight),e.arc(n+i-s.topRight,r+s.topRight,s.topRight,0,-me,!0),e.lineTo(n+s.topLeft,r)}const K0t=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,Z0t=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function J0t(e,t){const n=(""+e).match(K0t);if(!n||n[1]==="normal")return t*1.2;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100;break}return t*e}const tvt=e=>+e||0;function fS(e,t){const n={},r=pt(t),i=r?Object.keys(t):t,o=pt(e)?r?s=>ut(e[s],e[t[s]]):s=>e[s]:()=>e;for(const s of i)n[s]=tvt(o(s));return n}function ON(e){return fS(e,{top:"y",right:"x",bottom:"y",left:"x"})}function ua(e){return fS(e,["topLeft","topRight","bottomLeft","bottomRight"])}function dn(e){const t=ON(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function Oe(e,t){e=e||{},t=t||we.font;let n=ut(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let r=ut(e.style,t.style);r&&!(""+r).match(Z0t)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const i={family:ut(e.family,t.family),lineHeight:J0t(ut(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:ut(e.weight,t.weight),string:""};return i.string=U0t(i),i}function vu(e,t,n,r){let i=!0,o,s,a;for(o=0,s=e.length;o<s;++o)if(a=e[o],a!==void 0&&(t!==void 0&&typeof a=="function"&&(a=a(t),i=!1),n!==void 0&&Zt(a)&&(a=a[n%a.length],i=!1),a!==void 0))return r&&!i&&(r.cacheable=!1),a}function evt(e,t,n){const{min:r,max:i}=e,o=xN(t,(i-r)/2),s=(a,l)=>n&&a===0?0:a+l;return{min:s(r,-Math.abs(o)),max:s(i,o)}}function ws(e,t){return Object.assign(Object.create(e),t)}function pS(e,t=[""],n=e,r,i=()=>e[0]){_r(r)||(r=IN("_fallback",e));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:n,_fallback:r,_getTarget:i,override:s=>pS([s,...e],t,n,r)};return new Proxy(o,{deleteProperty(s,a){return delete s[a],delete s._keys,delete e[0][a],!0},get(s,a){return DN(s,a,()=>cvt(a,t,e,s))},getOwnPropertyDescriptor(s,a){return Reflect.getOwnPropertyDescriptor(s._scopes[0],a)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(s,a){return I$(s).includes(a)},ownKeys(s){return I$(s)},set(s,a,l){const c=s._storage||(s._storage=i());return s[a]=c[a]=l,delete s._keys,!0}})}function cc(e,t,n,r){const i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:RN(e,r),setContext:o=>cc(e,o,n,r),override:o=>cc(e.override(o),t,n,r)};return new Proxy(i,{deleteProperty(o,s){return delete o[s],delete e[s],!0},get(o,s,a){return DN(o,s,()=>rvt(o,s,a))},getOwnPropertyDescriptor(o,s){return o._descriptors.allKeys?Reflect.has(e,s)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,s)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(o,s){return Reflect.has(e,s)},ownKeys(){return Reflect.ownKeys(e)},set(o,s,a){return e[s]=a,delete o[s],!0}})}function RN(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:r,isScriptable:fs(n)?n:()=>n,isIndexable:fs(r)?r:()=>r}}const nvt=(e,t)=>e?e+cS(t):t,gS=(e,t)=>pt(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function DN(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];const r=n();return e[t]=r,r}function rvt(e,t,n){const{_proxy:r,_context:i,_subProxy:o,_descriptors:s}=e;let a=r[t];return fs(a)&&s.isScriptable(t)&&(a=ivt(t,a,e,n)),Zt(a)&&a.length&&(a=ovt(t,a,e,s.isIndexable)),gS(t,a)&&(a=cc(a,i,o&&o[t],s)),a}function ivt(e,t,n,r){const{_proxy:i,_context:o,_subProxy:s,_stack:a}=n;if(a.has(e))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+e);return a.add(e),t=t(o,s||r),a.delete(e),gS(e,t)&&(t=mS(i._scopes,i,e,t)),t}function ovt(e,t,n,r){const{_proxy:i,_context:o,_subProxy:s,_descriptors:a}=n;if(_r(o.index)&&r(e))t=t[o.index%t.length];else if(pt(t[0])){const l=t,c=i._scopes.filter(u=>u!==l);t=[];for(const u of l){const d=mS(c,i,e,u);t.push(cc(d,o,s&&s[e],a))}}return t}function LN(e,t,n){return fs(e)?e(t,n):e}const svt=(e,t)=>e===!0?t:typeof e=="string"?hs(t,e):void 0;function avt(e,t,n,r,i){for(const o of t){const s=svt(n,o);if(s){e.add(s);const a=LN(s._fallback,n,i);if(_r(a)&&a!==n&&a!==r)return a}else if(s===!1&&_r(r)&&n!==r)return null}return!1}function mS(e,t,n,r){const i=t._rootScopes,o=LN(t._fallback,n,r),s=[...e,...i],a=new Set;a.add(r);let l=L$(a,s,n,o||n,r);return l===null||_r(o)&&o!==n&&(l=L$(a,s,o,l,r),l===null)?!1:pS(Array.from(a),[""],i,o,()=>lvt(t,n,r))}function L$(e,t,n,r,i){for(;n;)n=avt(e,t,n,r,i);return n}function lvt(e,t,n){const r=e._getTarget();t in r||(r[t]={});const i=r[t];return Zt(i)&&pt(n)?n:i||{}}function cvt(e,t,n,r){let i;for(const o of t)if(i=IN(nvt(o,e),n),_r(i))return gS(e,i)?mS(n,r,e,i):i}function IN(e,t){for(const n of t){if(!n)continue;const r=n[e];if(_r(r))return r}}function I$(e){let t=e._keys;return t||(t=e._keys=uvt(e._scopes)),t}function uvt(e){const t=new Set;for(const n of e)for(const r of Object.keys(n).filter(i=>!i.startsWith("_")))t.add(r);return Array.from(t)}function NN(e,t,n,r){const{iScale:i}=e,{key:o="r"}=this._parsing,s=new Array(r);let a,l,c,u;for(a=0,l=r;a<l;++a)c=a+n,u=t[c],s[a]={r:i.parse(hs(u,o),c)};return s}const dvt=Number.EPSILON||1e-14,uc=(e,t)=>t<e.length&&!e[t].skip&&e[t],FN=e=>e==="x"?"y":"x";function hvt(e,t,n,r){const i=e.skip?t:e,o=t,s=n.skip?t:n,a=E_(o,i),l=E_(s,o);let c=a/(a+l),u=l/(a+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const d=r*c,h=r*u;return{previous:{x:o.x-d*(s.x-i.x),y:o.y-d*(s.y-i.y)},next:{x:o.x+h*(s.x-i.x),y:o.y+h*(s.y-i.y)}}}function fvt(e,t,n){const r=e.length;let i,o,s,a,l,c=uc(e,0);for(let u=0;u<r-1;++u)if(l=c,c=uc(e,u+1),!(!l||!c)){if(dd(t[u],0,dvt)){n[u]=n[u+1]=0;continue}i=n[u]/t[u],o=n[u+1]/t[u],a=Math.pow(i,2)+Math.pow(o,2),!(a<=9)&&(s=3/Math.sqrt(a),n[u]=i*s*t[u],n[u+1]=o*s*t[u])}}function pvt(e,t,n="x"){const r=FN(n),i=e.length;let o,s,a,l=uc(e,0);for(let c=0;c<i;++c){if(s=a,a=l,l=uc(e,c+1),!a)continue;const u=a[n],d=a[r];s&&(o=(u-s[n])/3,a[`cp1${n}`]=u-o,a[`cp1${r}`]=d-o*t[c]),l&&(o=(l[n]-u)/3,a[`cp2${n}`]=u+o,a[`cp2${r}`]=d+o*t[c])}}function gvt(e,t="x"){const n=FN(t),r=e.length,i=Array(r).fill(0),o=Array(r);let s,a,l,c=uc(e,0);for(s=0;s<r;++s)if(a=l,l=c,c=uc(e,s+1),!!l){if(c){const u=c[t]-l[t];i[s]=u!==0?(c[n]-l[n])/u:0}o[s]=a?c?di(i[s-1])!==di(i[s])?0:(i[s-1]+i[s])/2:i[s-1]:i[s]}fvt(e,i,o),pvt(e,o,t)}function xp(e,t,n){return Math.max(Math.min(e,n),t)}function mvt(e,t){let n,r,i,o,s,a=vh(e[0],t);for(n=0,r=e.length;n<r;++n)s=o,o=a,a=n<r-1&&vh(e[n+1],t),o&&(i=e[n],s&&(i.cp1x=xp(i.cp1x,t.left,t.right),i.cp1y=xp(i.cp1y,t.top,t.bottom)),a&&(i.cp2x=xp(i.cp2x,t.left,t.right),i.cp2y=xp(i.cp2y,t.top,t.bottom)))}function vvt(e,t,n,r,i){let o,s,a,l;if(t.spanGaps&&(e=e.filter(c=>!c.skip)),t.cubicInterpolationMode==="monotone")gvt(e,i);else{let c=r?e[e.length-1]:e[0];for(o=0,s=e.length;o<s;++o)a=e[o],l=hvt(c,a,e[Math.min(o+1,s-(r?0:1))%s],t.tension),a.cp1x=l.previous.x,a.cp1y=l.previous.y,a.cp2x=l.next.x,a.cp2y=l.next.y,c=a}t.capBezierPoints&&mvt(e,n)}function zN(){return typeof window<"u"&&typeof document<"u"}function vS(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function i0(e,t,n){let r;return typeof e=="string"?(r=parseInt(e,10),e.indexOf("%")!==-1&&(r=r/100*t.parentNode[n])):r=e,r}const jv=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function yvt(e,t){return jv(e).getPropertyValue(t)}const xvt=["top","right","bottom","left"];function da(e,t,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const o=xvt[i];r[o]=parseFloat(e[t+"-"+o+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const bvt=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function _vt(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:i,offsetY:o}=r;let s=!1,a,l;if(bvt(i,o,e.target))a=i,l=o;else{const c=t.getBoundingClientRect();a=r.clientX-c.left,l=r.clientY-c.top,s=!0}return{x:a,y:l,box:s}}function Hs(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,i=jv(n),o=i.boxSizing==="border-box",s=da(i,"padding"),a=da(i,"border","width"),{x:l,y:c,box:u}=_vt(e,n),d=s.left+(u&&a.left),h=s.top+(u&&a.top);let{width:f,height:p}=t;return o&&(f-=s.width+a.width,p-=s.height+a.height),{x:Math.round((l-d)/f*n.width/r),y:Math.round((c-h)/p*n.height/r)}}function wvt(e,t,n){let r,i;if(t===void 0||n===void 0){const o=vS(e);if(!o)t=e.clientWidth,n=e.clientHeight;else{const s=o.getBoundingClientRect(),a=jv(o),l=da(a,"border","width"),c=da(a,"padding");t=s.width-c.width-l.width,n=s.height-c.height-l.height,r=i0(a.maxWidth,o,"clientWidth"),i=i0(a.maxHeight,o,"clientHeight")}}return{width:t,height:n,maxWidth:r||n0,maxHeight:i||n0}}const bp=e=>Math.round(e*10)/10;function Avt(e,t,n,r){const i=jv(e),o=da(i,"margin"),s=i0(i.maxWidth,e,"clientWidth")||n0,a=i0(i.maxHeight,e,"clientHeight")||n0,l=wvt(e,t,n);let{width:c,height:u}=l;if(i.boxSizing==="content-box"){const d=da(i,"border","width"),h=da(i,"padding");c-=h.width+d.width,u-=h.height+d.height}return c=Math.max(0,c-o.width),u=Math.max(0,r?c/r:u-o.height),c=bp(Math.min(c,s,l.maxWidth)),u=bp(Math.min(u,a,l.maxHeight)),c&&!u&&(u=bp(c/2)),(t!==void 0||n!==void 0)&&r&&l.height&&u>l.height&&(u=l.height,c=bp(Math.floor(u*r))),{width:c,height:u}}function N$(e,t,n){const r=t||1,i=Math.floor(e.height*r),o=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const s=e.canvas;return s.style&&(n||!s.style.height&&!s.style.width)&&(s.style.height=`${e.height}px`,s.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||s.height!==i||s.width!==o?(e.currentDevicePixelRatio=r,s.height=i,s.width=o,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}const Svt=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(t){}return e}();function F$(e,t){const n=yvt(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function Us(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function Evt(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:r==="middle"?n<.5?e.y:t.y:r==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function Cvt(e,t,n,r){const i={x:e.cp2x,y:e.cp2y},o={x:t.cp1x,y:t.cp1y},s=Us(e,i,n),a=Us(i,o,n),l=Us(o,t,n),c=Us(s,a,n),u=Us(a,l,n);return Us(c,u,n)}const kvt=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},Tvt=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function Ol(e,t,n){return e?kvt(t,n):Tvt()}function BN(e,t){let n,r;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function VN(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function jN(e){return e==="angle"?{between:mh,compare:M0t,normalize:qn}:{between:Ni,compare:(t,n)=>t-n,normalize:t=>t}}function z$({start:e,end:t,count:n,loop:r,style:i}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n===0,style:i}}function Mvt(e,t,n){const{property:r,start:i,end:o}=n,{between:s,normalize:a}=jN(r),l=t.length;let{start:c,end:u,loop:d}=e,h,f;if(d){for(c+=l,u+=l,h=0,f=l;h<f&&s(a(t[c%l][r]),i,o);++h)c--,u--;c%=l,u%=l}return u<c&&(u+=l),{start:c,end:u,loop:d,style:e.style}}function HN(e,t,n){if(!n)return[e];const{property:r,start:i,end:o}=n,s=t.length,{compare:a,between:l,normalize:c}=jN(r),{start:u,end:d,loop:h,style:f}=Mvt(e,t,n),p=[];let g=!1,y=null,m,x,b;const _=()=>l(i,b,m)&&a(i,b)!==0,w=()=>a(o,m)===0||l(o,b,m),A=()=>g||_(),S=()=>!g||w();for(let E=u,k=u;E<=d;++E)x=t[E%s],!x.skip&&(m=c(x[r]),m!==b&&(g=l(m,i,o),y===null&&A()&&(y=a(m,i)===0?E:k),y!==null&&S()&&(p.push(z$({start:y,end:E,loop:h,count:s,style:f})),y=null),k=E,b=m));return y!==null&&p.push(z$({start:y,end:d,loop:h,count:s,style:f})),p}function UN(e,t){const n=[],r=e.segments;for(let i=0;i<r.length;i++){const o=HN(r[i],e.points,t);o.length&&n.push(...o)}return n}function $vt(e,t,n,r){let i=0,o=t-1;if(n&&!r)for(;i<t&&!e[i].skip;)i++;for(;i<t&&e[i].skip;)i++;for(i%=t,n&&(o+=i);o>i&&e[o%t].skip;)o--;return o%=t,{start:i,end:o}}function Pvt(e,t,n,r){const i=e.length,o=[];let s=t,a=e[t],l;for(l=t+1;l<=n;++l){const c=e[l%i];c.skip||c.stop?a.skip||(r=!1,o.push({start:t%i,end:(l-1)%i,loop:r}),t=s=c.stop?l:null):(s=l,a.skip&&(t=l)),a=c}return s!==null&&o.push({start:t%i,end:s%i,loop:r}),o}function Ovt(e,t){const n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];const o=!!e._loop,{start:s,end:a}=$vt(n,i,o,r);if(r===!0)return B$(e,[{start:s,end:a,loop:o}],n,t);const l=a<s?a+i:a,c=!!e._fullLoop&&s===0&&a===i-1;return B$(e,Pvt(n,s,l,c),n,t)}function B$(e,t,n,r){return!r||!r.setContext||!n?t:Rvt(e,t,n,r)}function Rvt(e,t,n,r){const i=e._chart.getContext(),o=V$(e.options),{_datasetIndex:s,options:{spanGaps:a}}=e,l=n.length,c=[];let u=o,d=t[0].start,h=d;function f(p,g,y,m){const x=a?-1:1;if(p!==g){for(p+=l;n[p%l].skip;)p-=x;for(;n[g%l].skip;)g+=x;p%l!==g%l&&(c.push({start:p%l,end:g%l,loop:y,style:m}),u=m,d=g%l)}}for(const p of t){d=a?d:p.start;let g=n[d%l],y;for(h=d+1;h<=p.end;h++){const m=n[h%l];y=V$(r.setContext(ws(i,{type:"segment",p0:g,p1:m,p0DataIndex:(h-1)%l,p1DataIndex:h%l,datasetIndex:s}))),Dvt(y,u)&&f(d,h-1,p.loop,u),g=m,u=y}d<h-1&&f(d,h-1,p.loop,u)}return c}function V$(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function Dvt(e,t){return t&&JSON.stringify(e)!==JSON.stringify(t)}/*!
|
|
967
|
+
* Chart.js v4.2.0
|
|
968
|
+
* https://www.chartjs.org
|
|
969
|
+
* (c) 2023 Chart.js Contributors
|
|
970
|
+
* Released under the MIT License
|
|
971
|
+
*/class Lvt{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,r,i){const o=n.listeners[i],s=n.duration;o.forEach(a=>a({chart:t,initial:n.initial,numSteps:s,currentStep:Math.min(r-n.start,s)}))}_refresh(){this._request||(this._running=!0,this._request=EN.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((r,i)=>{if(!r.running||!r.items.length)return;const o=r.items;let s=o.length-1,a=!1,l;for(;s>=0;--s)l=o[s],l._active?(l._total>r.duration&&(r.duration=l._total),l.tick(t),a=!0):(o[s]=o[o.length-1],o.pop());a&&(i.draw(),this._notify(i,r,t,"progress")),o.length||(r.running=!1,this._notify(i,r,t,"complete"),r.initial=!1),n+=o.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let r=n.get(t);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,r)),r}listen(t,n,r){this._getAnims(t).listeners[n].push(r)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);!n||(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,i)=>Math.max(r,i._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const r=n.items;let i=r.length-1;for(;i>=0;--i)r[i].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var Ai=new Lvt;const j$="transparent",Ivt={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=O$(e||j$),i=r.valid&&O$(t||j$);return i&&i.valid?i.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class Nvt{constructor(t,n,r,i){const o=n[r];i=vu([t.to,i,o,t.from]);const s=vu([t.from,o,i]);this._active=!0,this._fn=t.fn||Ivt[t.type||typeof s],this._easing=hd[t.easing]||hd.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=s,this._to=i,this._promises=void 0}active(){return this._active}update(t,n,r){if(this._active){this._notify(!1);const i=this._target[this._prop],o=r-this._start,s=this._duration-o;this._start=r,this._duration=Math.floor(Math.max(s,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=vu([t.to,n,i,t.from]),this._from=vu([t.from,i,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,r=this._duration,i=this._prop,o=this._from,s=this._loop,a=this._to;let l;if(this._active=o!==a&&(s||n<r),!this._active){this._target[i]=a,this._notify(!0);return}if(n<0){this._target[i]=o;return}l=n/r%2,l=s&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[i]=this._fn(o,a,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,r)=>{t.push({res:n,rej:r})})}_notify(t){const n=t?"res":"rej",r=this._promises||[];for(let i=0;i<r.length;i++)r[i][n]()}}class WN{constructor(t,n){this._chart=t,this._properties=new Map,this.configure(n)}configure(t){if(!pt(t))return;const n=Object.keys(we.animation),r=this._properties;Object.getOwnPropertyNames(t).forEach(i=>{const o=t[i];if(!pt(o))return;const s={};for(const a of n)s[a]=o[a];(Zt(o.properties)&&o.properties||[i]).forEach(a=>{(a===i||!r.has(a))&&r.set(a,s)})})}_animateOptions(t,n){const r=n.options,i=zvt(t,r);if(!i)return[];const o=this._createAnimations(i,r);return r.$shared&&Fvt(t.options.$animations,r).then(()=>{t.options=r},()=>{}),o}_createAnimations(t,n){const r=this._properties,i=[],o=t.$animations||(t.$animations={}),s=Object.keys(n),a=Date.now();let l;for(l=s.length-1;l>=0;--l){const c=s[l];if(c.charAt(0)==="$")continue;if(c==="options"){i.push(...this._animateOptions(t,n));continue}const u=n[c];let d=o[c];const h=r.get(c);if(d)if(h&&d.active()){d.update(h,u,a);continue}else d.cancel();if(!h||!h.duration){t[c]=u;continue}o[c]=d=new Nvt(h,t,c,u),i.push(d)}return i}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const r=this._createAnimations(t,n);if(r.length)return Ai.add(this._chart,r),!0}}function Fvt(e,t){const n=[],r=Object.keys(t);for(let i=0;i<r.length;i++){const o=e[r[i]];o&&o.active()&&n.push(o.wait())}return Promise.all(n)}function zvt(e,t){if(!t)return;let n=e.options;if(!n){e.options=t;return}return n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function H$(e,t){const n=e&&e.options||{},r=n.reverse,i=n.min===void 0?t:0,o=n.max===void 0?t:0;return{start:r?o:i,end:r?i:o}}function Bvt(e,t,n){if(n===!1)return!1;const r=H$(e,n),i=H$(t,n);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}function Vvt(e){let t,n,r,i;return pt(e)?(t=e.top,n=e.right,r=e.bottom,i=e.left):t=n=r=i=e,{top:t,right:n,bottom:r,left:i,disabled:e===!1}}function YN(e,t){const n=[],r=e._getSortedDatasetMetas(t);let i,o;for(i=0,o=r.length;i<o;++i)n.push(r[i].index);return n}function U$(e,t,n,r={}){const i=e.keys,o=r.mode==="single";let s,a,l,c;if(t!==null){for(s=0,a=i.length;s<a;++s){if(l=+i[s],l===n){if(r.all)continue;break}c=e.values[l],ge(c)&&(o||t===0||di(t)===di(c))&&(t+=c)}return t}}function jvt(e){const t=Object.keys(e),n=new Array(t.length);let r,i,o;for(r=0,i=t.length;r<i;++r)o=t[r],n[r]={x:o,y:e[o]};return n}function W$(e,t){const n=e&&e.options.stacked;return n||n===void 0&&t.stack!==void 0}function Hvt(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}function Uvt(e){const{min:t,max:n,minDefined:r,maxDefined:i}=e.getUserBounds();return{min:r?t:Number.NEGATIVE_INFINITY,max:i?n:Number.POSITIVE_INFINITY}}function Wvt(e,t,n){const r=e[t]||(e[t]={});return r[n]||(r[n]={})}function Y$(e,t,n,r){for(const i of t.getMatchingVisibleMetas(r).reverse()){const o=e[i.index];if(n&&o>0||!n&&o<0)return i.index}return null}function G$(e,t){const{chart:n,_cachedMeta:r}=e,i=n._stacks||(n._stacks={}),{iScale:o,vScale:s,index:a}=r,l=o.axis,c=s.axis,u=Hvt(o,s,r),d=t.length;let h;for(let f=0;f<d;++f){const p=t[f],{[l]:g,[c]:y}=p,m=p._stacks||(p._stacks={});h=m[c]=Wvt(i,u,g),h[a]=y,h._top=Y$(h,s,!0,r.type),h._bottom=Y$(h,s,!1,r.type);const x=h._visualValues||(h._visualValues={});x[a]=y}}function Ry(e,t){const n=e.scales;return Object.keys(n).filter(r=>n[r].axis===t).shift()}function Yvt(e,t){return ws(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function Gvt(e,t,n){return ws(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function tu(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t=t||e._parsed;for(const i of t){const o=i._stacks;if(!o||o[r]===void 0||o[r][n]===void 0)return;delete o[r][n],o[r]._visualValues!==void 0&&o[r]._visualValues[n]!==void 0&&delete o[r]._visualValues[n]}}}const Dy=e=>e==="reset"||e==="none",q$=(e,t)=>t?e:Object.assign({},e),qvt=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:YN(n,!0),values:null};class Vr{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=W$(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&tu(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,r=this.getDataset(),i=(d,h,f,p)=>d==="x"?h:d==="r"?p:f,o=n.xAxisID=ut(r.xAxisID,Ry(t,"x")),s=n.yAxisID=ut(r.yAxisID,Ry(t,"y")),a=n.rAxisID=ut(r.rAxisID,Ry(t,"r")),l=n.indexAxis,c=n.iAxisID=i(l,o,s,a),u=n.vAxisID=i(l,s,o,a);n.xScale=this.getScaleForId(o),n.yScale=this.getScaleForId(s),n.rScale=this.getScaleForId(a),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&M$(this._data,this),t._stacked&&tu(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if(pt(n))this._data=jvt(n);else if(r!==n){if(r){M$(r,this);const i=this._cachedMeta;tu(i),i._parsed=[]}n&&Object.isExtensible(n)&&R0t(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,r=this.getDataset();let i=!1;this._dataCheck();const o=n._stacked;n._stacked=W$(n.vScale,n),n.stack!==r.stack&&(i=!0,tu(n),n.stack=r.stack),this._resyncElements(t),(i||o!==n._stacked)&&G$(this,n._parsed)}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),r=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:r,_data:i}=this,{iScale:o,_stacked:s}=r,a=o.axis;let l=t===0&&n===i.length?!0:r._sorted,c=t>0&&r._parsed[t-1],u,d,h;if(this._parsing===!1)r._parsed=i,r._sorted=!0,h=i;else{Zt(i[t])?h=this.parseArrayData(r,i,t,n):pt(i[t])?h=this.parseObjectData(r,i,t,n):h=this.parsePrimitiveData(r,i,t,n);const f=()=>d[a]===null||c&&d[a]<c[a];for(u=0;u<n;++u)r._parsed[u+t]=d=h[u],l&&(f()&&(l=!1),c=d);r._sorted=l}s&&G$(this,h)}parsePrimitiveData(t,n,r,i){const{iScale:o,vScale:s}=t,a=o.axis,l=s.axis,c=o.getLabels(),u=o===s,d=new Array(i);let h,f,p;for(h=0,f=i;h<f;++h)p=h+r,d[h]={[a]:u||o.parse(c[p],p),[l]:s.parse(n[p],p)};return d}parseArrayData(t,n,r,i){const{xScale:o,yScale:s}=t,a=new Array(i);let l,c,u,d;for(l=0,c=i;l<c;++l)u=l+r,d=n[u],a[l]={x:o.parse(d[0],u),y:s.parse(d[1],u)};return a}parseObjectData(t,n,r,i){const{xScale:o,yScale:s}=t,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,c=new Array(i);let u,d,h,f;for(u=0,d=i;u<d;++u)h=u+r,f=n[h],c[u]={x:o.parse(hs(f,a),h),y:s.parse(hs(f,l),h)};return c}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,n,r){const i=this.chart,o=this._cachedMeta,s=n[t.axis],a={keys:YN(i,!0),values:n._stacks[t.axis]._visualValues};return U$(a,s,o.index,{mode:r})}updateRangeFromParsed(t,n,r,i){const o=r[n.axis];let s=o===null?NaN:o;const a=i&&r._stacks[n.axis];i&&a&&(i.values=a,s=U$(i,o,this._cachedMeta.index)),t.min=Math.min(t.min,s),t.max=Math.max(t.max,s)}getMinMax(t,n){const r=this._cachedMeta,i=r._parsed,o=r._sorted&&t===r.iScale,s=i.length,a=this._getOtherScale(t),l=qvt(n,r,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:u,max:d}=Uvt(a);let h,f;function p(){f=i[h];const g=f[a.axis];return!ge(f[t.axis])||u>g||d<g}for(h=0;h<s&&!(!p()&&(this.updateRangeFromParsed(c,t,f,l),o));++h);if(o){for(h=s-1;h>=0;--h)if(!p()){this.updateRangeFromParsed(c,t,f,l);break}}return c}getAllParsedValues(t){const n=this._cachedMeta._parsed,r=[];let i,o,s;for(i=0,o=n.length;i<o;++i)s=n[i][t.axis],ge(s)&&r.push(s);return r}getMaxOverflow(){return!1}getLabelAndValue(t){const n=this._cachedMeta,r=n.iScale,i=n.vScale,o=this.getParsed(t);return{label:r?""+r.getLabelForValue(o[r.axis]):"",value:i?""+i.getLabelForValue(o[i.axis]):""}}_update(t){const n=this._cachedMeta;this.update(t||"default"),n._clip=Vvt(ut(this.options.clip,Bvt(n.xScale,n.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,n=this.chart,r=this._cachedMeta,i=r.data||[],o=n.chartArea,s=[],a=this._drawStart||0,l=this._drawCount||i.length-a,c=this.options.drawActiveElementsOnTop;let u;for(r.dataset&&r.dataset.draw(t,o,a,l),u=a;u<a+l;++u){const d=i[u];d.hidden||(d.active&&c?s.push(d):d.draw(t,o))}for(u=0;u<s.length;++u)s[u].draw(t,o)}getStyle(t,n){const r=n?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(t||0,r)}getContext(t,n,r){const i=this.getDataset();let o;if(t>=0&&t<this._cachedMeta.data.length){const s=this._cachedMeta.data[t];o=s.$context||(s.$context=Gvt(this.getContext(),t,s)),o.parsed=this.getParsed(t),o.raw=i.data[t],o.index=o.dataIndex=t}else o=this.$context||(this.$context=Yvt(this.chart.getContext(),this.index)),o.dataset=i,o.index=o.datasetIndex=this.index;return o.active=!!n,o.mode=r,o}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,n){return this._resolveElementOptions(this.dataElementType.id,n,t)}_resolveElementOptions(t,n="default",r){const i=n==="active",o=this._cachedDataOpts,s=t+"-"+n,a=o[s],l=this.enableOptionSharing&&_r(r);if(a)return q$(a,l);const c=this.chart.config,u=c.datasetElementScopeKeys(this._type,t),d=i?[`${t}Hover`,"hover",t,""]:[t,""],h=c.getOptionScopes(this.getDataset(),u),f=Object.keys(we.elements[t]),p=()=>this.getContext(r,i,n),g=c.resolveNamedOptions(h,f,p,d);return g.$shared&&(g.$shared=l,o[s]=Object.freeze(q$(g,l))),g}_resolveAnimations(t,n,r){const i=this.chart,o=this._cachedDataOpts,s=`animation-${n}`,a=o[s];if(a)return a;let l;if(i.options.animation!==!1){const u=this.chart.config,d=u.datasetAnimationScopeKeys(this._type,n),h=u.getOptionScopes(this.getDataset(),d);l=u.createResolver(h,this.getContext(t,r,n))}const c=new WN(i,l&&l.animations);return l&&l._cacheable&&(o[s]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||Dy(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const r=this.resolveDataElementOptions(t,n),i=this._sharedOptions,o=this.getSharedOptions(r),s=this.includeOptions(n,o)||o!==i;return this.updateSharedOptions(o,n,r),{sharedOptions:o,includeOptions:s}}updateElement(t,n,r,i){Dy(i)?Object.assign(t,r):this._resolveAnimations(n,i).update(t,r)}updateSharedOptions(t,n,r){t&&!Dy(n)&&this._resolveAnimations(void 0,n).update(t,r)}_setStyle(t,n,r,i){t.active=i;const o=this.getStyle(n,i);this._resolveAnimations(n,r,i).update(t,{options:!i&&this.getSharedOptions(o)||o})}removeHoverStyle(t,n,r){this._setStyle(t,r,"active",!1)}setHoverStyle(t,n,r){this._setStyle(t,r,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,r=this._cachedMeta.data;for(const[a,l,c]of this._syncList)this[a](l,c);this._syncList=[];const i=r.length,o=n.length,s=Math.min(o,i);s&&this.parse(0,s),o>i?this._insertElements(i,o-i,t):o<i&&this._removeElements(o,i-o)}_insertElements(t,n,r=!0){const i=this._cachedMeta,o=i.data,s=t+n;let a;const l=c=>{for(c.length+=n,a=c.length-1;a>=s;a--)c[a]=c[a-n]};for(l(o),a=t;a<s;++a)o[a]=new this.dataElementType;this._parsing&&l(i._parsed),this.parse(t,n),r&&this.updateElements(o,t,n,"reset")}updateElements(t,n,r,i){}_removeElements(t,n){const r=this._cachedMeta;if(this._parsing){const i=r._parsed.splice(t,n);r._stacked&&tu(r,i)}r.data.splice(t,n)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[n,r,i]=t;this[n](r,i)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,n){n&&this._sync(["_removeElements",t,n]);const r=arguments.length-2;r&&this._sync(["_insertElements",t,r])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}et(Vr,"defaults",{}),et(Vr,"datasetElementType",null),et(Vr,"dataElementType",null);function Xvt(e,t){if(!e._cache.$bar){const n=e.getMatchingVisibleMetas(t);let r=[];for(let i=0,o=n.length;i<o;i++)r=r.concat(n[i].controller.getAllParsedValues(e));e._cache.$bar=SN(r.sort((i,o)=>i-o))}return e._cache.$bar}function Qvt(e){const t=e.iScale,n=Xvt(t,e.type);let r=t._length,i,o,s,a;const l=()=>{s===32767||s===-32768||(_r(a)&&(r=Math.min(r,Math.abs(s-a)||r)),a=s)};for(i=0,o=n.length;i<o;++i)s=t.getPixelForValue(n[i]),l();for(a=void 0,i=0,o=t.ticks.length;i<o;++i)s=t.getPixelForTick(i),l();return r}function Kvt(e,t,n,r){const i=n.barThickness;let o,s;return bt(i)?(o=t.min*n.categoryPercentage,s=n.barPercentage):(o=i*r,s=1),{chunk:o/r,ratio:s,start:t.pixels[e]-o/2}}function Zvt(e,t,n,r){const i=t.pixels,o=i[e];let s=e>0?i[e-1]:null,a=e<i.length-1?i[e+1]:null;const l=n.categoryPercentage;s===null&&(s=o-(a===null?t.end-t.start:a-o)),a===null&&(a=o+o-s);const c=o-(o-Math.min(s,a))/2*l;return{chunk:Math.abs(a-s)/2*l/r,ratio:n.barPercentage,start:c}}function Jvt(e,t,n,r){const i=n.parse(e[0],r),o=n.parse(e[1],r),s=Math.min(i,o),a=Math.max(i,o);let l=s,c=a;Math.abs(s)>Math.abs(a)&&(l=a,c=s),t[n.axis]=c,t._custom={barStart:l,barEnd:c,start:i,end:o,min:s,max:a}}function GN(e,t,n,r){return Zt(e)?Jvt(e,t,n,r):t[n.axis]=n.parse(e,r),t}function X$(e,t,n,r){const i=e.iScale,o=e.vScale,s=i.getLabels(),a=i===o,l=[];let c,u,d,h;for(c=n,u=n+r;c<u;++c)h=t[c],d={},d[i.axis]=a||i.parse(s[c],c),l.push(GN(h,d,o,c));return l}function Ly(e){return e&&e.barStart!==void 0&&e.barEnd!==void 0}function t1t(e,t,n){return e!==0?di(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}function e1t(e){let t,n,r,i,o;return e.horizontal?(t=e.base>e.x,n="left",r="right"):(t=e.base<e.y,n="bottom",r="top"),t?(i="end",o="start"):(i="start",o="end"),{start:n,end:r,reverse:t,top:i,bottom:o}}function n1t(e,t,n,r){let i=t.borderSkipped;const o={};if(!i){e.borderSkipped=o;return}if(i===!0){e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:s,end:a,reverse:l,top:c,bottom:u}=e1t(e);i==="middle"&&n&&(e.enableBorderRadius=!0,(n._top||0)===r?i=c:(n._bottom||0)===r?i=u:(o[Q$(u,s,a,l)]=!0,i=c)),o[Q$(i,s,a,l)]=!0,e.borderSkipped=o}function Q$(e,t,n,r){return r?(e=r1t(e,t,n),e=K$(e,n,t)):e=K$(e,t,n),e}function r1t(e,t,n){return e===t?n:e===n?t:e}function K$(e,t,n){return e==="start"?t:e==="end"?n:e}function i1t(e,{inflateAmount:t},n){e.inflateAmount=t==="auto"?n===1?.33:0:t}class pd extends Vr{parsePrimitiveData(t,n,r,i){return X$(t,n,r,i)}parseArrayData(t,n,r,i){return X$(t,n,r,i)}parseObjectData(t,n,r,i){const{iScale:o,vScale:s}=t,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,c=o.axis==="x"?a:l,u=s.axis==="x"?a:l,d=[];let h,f,p,g;for(h=r,f=r+i;h<f;++h)g=n[h],p={},p[o.axis]=o.parse(hs(g,c),h),d.push(GN(hs(g,u),p,s,h));return d}updateRangeFromParsed(t,n,r,i){super.updateRangeFromParsed(t,n,r,i);const o=r._custom;o&&n===this._cachedMeta.vScale&&(t.min=Math.min(t.min,o.min),t.max=Math.max(t.max,o.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const n=this._cachedMeta,{iScale:r,vScale:i}=n,o=this.getParsed(t),s=o._custom,a=Ly(s)?"["+s.start+", "+s.end+"]":""+i.getLabelForValue(o[i.axis]);return{label:""+r.getLabelForValue(o[r.axis]),value:a}}initialize(){this.enableOptionSharing=!0,super.initialize();const t=this._cachedMeta;t.stack=this.getDataset().stack}update(t){const n=this._cachedMeta;this.updateElements(n.data,0,n.data.length,t)}updateElements(t,n,r,i){const o=i==="reset",{index:s,_cachedMeta:{vScale:a}}=this,l=a.getBasePixel(),c=a.isHorizontal(),u=this._getRuler(),{sharedOptions:d,includeOptions:h}=this._getSharedOptions(n,i);for(let f=n;f<n+r;f++){const p=this.getParsed(f),g=o||bt(p[a.axis])?{base:l,head:l}:this._calculateBarValuePixels(f),y=this._calculateBarIndexPixels(f,u),m=(p._stacks||{})[a.axis],x={horizontal:c,base:g.base,enableBorderRadius:!m||Ly(p._custom)||s===m._top||s===m._bottom,x:c?g.head:y.center,y:c?y.center:g.head,height:c?y.size:Math.abs(g.size),width:c?Math.abs(g.size):y.size};h&&(x.options=d||this.resolveDataElementOptions(f,t[f].active?"active":i));const b=x.options||t[f].options;n1t(x,b,m,s),i1t(x,b,u.ratio),this.updateElement(t[f],f,x,i)}}_getStacks(t,n){const{iScale:r}=this._cachedMeta,i=r.getMatchingVisibleMetas(this._type).filter(l=>l.controller.options.grouped),o=r.options.stacked,s=[],a=l=>{const c=l.controller.getParsed(n),u=c&&c[l.vScale.axis];if(bt(u)||isNaN(u))return!0};for(const l of i)if(!(n!==void 0&&a(l))&&((o===!1||s.indexOf(l.stack)===-1||o===void 0&&l.stack===void 0)&&s.push(l.stack),l.index===t))break;return s.length||s.push(void 0),s}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,n,r){const i=this._getStacks(t,r),o=n!==void 0?i.indexOf(n):-1;return o===-1?i.length-1:o}_getRuler(){const t=this.options,n=this._cachedMeta,r=n.iScale,i=[];let o,s;for(o=0,s=n.data.length;o<s;++o)i.push(r.getPixelForValue(this.getParsed(o)[r.axis],o));const a=t.barThickness;return{min:a||Qvt(n),pixels:i,start:r._startPixel,end:r._endPixel,stackCount:this._getStackCount(),scale:r,grouped:t.grouped,ratio:a?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:n,_stacked:r,index:i},options:{base:o,minBarLength:s}}=this,a=o||0,l=this.getParsed(t),c=l._custom,u=Ly(c);let d=l[n.axis],h=0,f=r?this.applyStack(n,l,r):d,p,g;f!==d&&(h=f-d,f=d),u&&(d=c.barStart,f=c.barEnd-c.barStart,d!==0&&di(d)!==di(c.barEnd)&&(h=0),h+=d);const y=!bt(o)&&!u?o:h;let m=n.getPixelForValue(y);if(this.chart.getDataVisibility(t)?p=n.getPixelForValue(h+f):p=m,g=p-m,Math.abs(g)<s){g=t1t(g,n,a)*s,d===a&&(m-=g/2);const x=n.getPixelForDecimal(0),b=n.getPixelForDecimal(1),_=Math.min(x,b),w=Math.max(x,b);m=Math.max(Math.min(m,w),_),p=m+g,r&&!u&&(l._stacks[n.axis]._visualValues[i]=n.getValueForPixel(p)-n.getValueForPixel(m))}if(m===n.getPixelForValue(a)){const x=di(g)*n.getLineWidthForValue(a)/2;m+=x,g-=x}return{size:g,base:m,head:p,center:p+g/2}}_calculateBarIndexPixels(t,n){const r=n.scale,i=this.options,o=i.skipNull,s=ut(i.maxBarThickness,1/0);let a,l;if(n.grouped){const c=o?this._getStackCount(t):n.stackCount,u=i.barThickness==="flex"?Zvt(t,n,i,c):Kvt(t,n,i,c),d=this._getStackIndex(this.index,this._cachedMeta.stack,o?t:void 0);a=u.start+u.chunk*d+u.chunk/2,l=Math.min(s,u.chunk*u.ratio)}else a=r.getPixelForValue(this.getParsed(t)[r.axis],t),l=Math.min(s,n.min*n.ratio);return{base:a-l/2,head:a+l/2,center:a,size:l}}draw(){const t=this._cachedMeta,n=t.vScale,r=t.data,i=r.length;let o=0;for(;o<i;++o)this.getParsed(o)[n.axis]!==null&&r[o].draw(this._ctx)}}et(pd,"id","bar"),et(pd,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),et(pd,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});class Mg extends Vr{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,n,r,i){const o=super.parsePrimitiveData(t,n,r,i);for(let s=0;s<o.length;s++)o[s]._custom=this.resolveDataElementOptions(s+r).radius;return o}parseArrayData(t,n,r,i){const o=super.parseArrayData(t,n,r,i);for(let s=0;s<o.length;s++){const a=n[r+s];o[s]._custom=ut(a[2],this.resolveDataElementOptions(s+r).radius)}return o}parseObjectData(t,n,r,i){const o=super.parseObjectData(t,n,r,i);for(let s=0;s<o.length;s++){const a=n[r+s];o[s]._custom=ut(a&&a.r&&+a.r,this.resolveDataElementOptions(s+r).radius)}return o}getMaxOverflow(){const t=this._cachedMeta.data;let n=0;for(let r=t.length-1;r>=0;--r)n=Math.max(n,t[r].size(this.resolveDataElementOptions(r))/2);return n>0&&n}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart.data.labels||[],{xScale:i,yScale:o}=n,s=this.getParsed(t),a=i.getLabelForValue(s.x),l=o.getLabelForValue(s.y),c=s._custom;return{label:r[t]||"",value:"("+a+", "+l+(c?", "+c:"")+")"}}update(t){const n=this._cachedMeta.data;this.updateElements(n,0,n.length,t)}updateElements(t,n,r,i){const o=i==="reset",{iScale:s,vScale:a}=this._cachedMeta,{sharedOptions:l,includeOptions:c}=this._getSharedOptions(n,i),u=s.axis,d=a.axis;for(let h=n;h<n+r;h++){const f=t[h],p=!o&&this.getParsed(h),g={},y=g[u]=o?s.getPixelForDecimal(.5):s.getPixelForValue(p[u]),m=g[d]=o?a.getBasePixel():a.getPixelForValue(p[d]);g.skip=isNaN(y)||isNaN(m),c&&(g.options=l||this.resolveDataElementOptions(h,f.active?"active":i),o&&(g.options.radius=0)),this.updateElement(f,h,g,i)}}resolveDataElementOptions(t,n){const r=this.getParsed(t);let i=super.resolveDataElementOptions(t,n);i.$shared&&(i=Object.assign({},i,{$shared:!1}));const o=i.radius;return n!=="active"&&(i.radius=0),i.radius+=ut(r&&r._custom,o),i}}et(Mg,"id","bubble"),et(Mg,"defaults",{datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}}),et(Mg,"overrides",{scales:{x:{type:"linear"},y:{type:"linear"}}});function o1t(e,t,n){let r=1,i=1,o=0,s=0;if(t<ee){const a=e,l=a+t,c=Math.cos(a),u=Math.sin(a),d=Math.cos(l),h=Math.sin(l),f=(b,_,w)=>mh(b,a,l,!0)?1:Math.max(_,_*n,w,w*n),p=(b,_,w)=>mh(b,a,l,!0)?-1:Math.min(_,_*n,w,w*n),g=f(0,c,d),y=f(me,u,h),m=p(oe,c,d),x=p(oe+me,u,h);r=(g-m)/2,i=(y-x)/2,o=-(g+m)/2,s=-(y+x)/2}return{ratioX:r,ratioY:i,offsetX:o,offsetY:s}}class zo extends Vr{constructor(t,n){super(t,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,n){const r=this.getDataset().data,i=this._cachedMeta;if(this._parsing===!1)i._parsed=r;else{let o=l=>+r[l];if(pt(r[t])){const{key:l="value"}=this._parsing;o=c=>+hs(r[c],l)}let s,a;for(s=t,a=t+n;s<a;++s)i._parsed[s]=o(s)}}_getRotation(){return Dr(this.options.rotation-90)}_getCircumference(){return Dr(this.options.circumference)}_getRotationExtents(){let t=ee,n=-ee;for(let r=0;r<this.chart.data.datasets.length;++r)if(this.chart.isDatasetVisible(r)&&this.chart.getDatasetMeta(r).type===this._type){const i=this.chart.getDatasetMeta(r).controller,o=i._getRotation(),s=i._getCircumference();t=Math.min(t,o),n=Math.max(n,o+s)}return{rotation:t,circumference:n-t}}update(t){const n=this.chart,{chartArea:r}=n,i=this._cachedMeta,o=i.data,s=this.getMaxBorderWidth()+this.getMaxOffset(o)+this.options.spacing,a=Math.max((Math.min(r.width,r.height)-s)/2,0),l=Math.min(x0t(this.options.cutout,a),1),c=this._getRingWeight(this.index),{circumference:u,rotation:d}=this._getRotationExtents(),{ratioX:h,ratioY:f,offsetX:p,offsetY:g}=o1t(d,u,l),y=(r.width-s)/h,m=(r.height-s)/f,x=Math.max(Math.min(y,m)/2,0),b=xN(this.options.radius,x),_=Math.max(b*l,0),w=(b-_)/this._getVisibleDatasetWeightTotal();this.offsetX=p*b,this.offsetY=g*b,i.total=this.calculateTotal(),this.outerRadius=b-w*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-w*c,0),this.updateElements(o,0,o.length,t)}_circumference(t,n){const r=this.options,i=this._cachedMeta,o=this._getCircumference();return n&&r.animation.animateRotate||!this.chart.getDataVisibility(t)||i._parsed[t]===null||i.data[t].hidden?0:this.calculateCircumference(i._parsed[t]*o/ee)}updateElements(t,n,r,i){const o=i==="reset",s=this.chart,a=s.chartArea,l=s.options.animation,c=(a.left+a.right)/2,u=(a.top+a.bottom)/2,d=o&&l.animateScale,h=d?0:this.innerRadius,f=d?0:this.outerRadius,{sharedOptions:p,includeOptions:g}=this._getSharedOptions(n,i);let y=this._getRotation(),m;for(m=0;m<n;++m)y+=this._circumference(m,o);for(m=n;m<n+r;++m){const x=this._circumference(m,o),b=t[m],_={x:c+this.offsetX,y:u+this.offsetY,startAngle:y,endAngle:y+x,circumference:x,outerRadius:f,innerRadius:h};g&&(_.options=p||this.resolveDataElementOptions(m,b.active?"active":i)),y+=x,this.updateElement(b,m,_,i)}}calculateTotal(){const t=this._cachedMeta,n=t.data;let r=0,i;for(i=0;i<n.length;i++){const o=t._parsed[i];o!==null&&!isNaN(o)&&this.chart.getDataVisibility(i)&&!n[i].hidden&&(r+=Math.abs(o))}return r}calculateCircumference(t){const n=this._cachedMeta.total;return n>0&&!isNaN(t)?ee*(Math.abs(t)/n):0}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart,i=r.data.labels||[],o=tf(n._parsed[t],r.options.locale);return{label:i[t]||"",value:o}}getMaxBorderWidth(t){let n=0;const r=this.chart;let i,o,s,a,l;if(!t){for(i=0,o=r.data.datasets.length;i<o;++i)if(r.isDatasetVisible(i)){s=r.getDatasetMeta(i),t=s.data,a=s.controller;break}}if(!t)return 0;for(i=0,o=t.length;i<o;++i)l=a.resolveDataElementOptions(i),l.borderAlign!=="inner"&&(n=Math.max(n,l.borderWidth||0,l.hoverBorderWidth||0));return n}getMaxOffset(t){let n=0;for(let r=0,i=t.length;r<i;++r){const o=this.resolveDataElementOptions(r);n=Math.max(n,o.offset||0,o.hoverOffset||0)}return n}_getRingWeightOffset(t){let n=0;for(let r=0;r<t;++r)this.chart.isDatasetVisible(r)&&(n+=this._getRingWeight(r));return n}_getRingWeight(t){return Math.max(ut(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}et(zo,"id","doughnut"),et(zo,"defaults",{datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"}),et(zo,"descriptors",{_scriptable:e=>e!=="spacing",_indexable:e=>e!=="spacing"}),et(zo,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:n,color:r}}=e.legend.options;return t.labels.map((i,o)=>{const s=e.getDatasetMeta(0).controller.getStyle(o);return{text:i,fillStyle:s.backgroundColor,strokeStyle:s.borderColor,fontColor:r,lineWidth:s.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(o),index:o}})}return[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}}}});class $g extends Vr{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const n=this._cachedMeta,{dataset:r,data:i=[],_dataset:o}=n,s=this.chart._animationsDisabled;let{start:a,count:l}=kN(n,i,s);this._drawStart=a,this._drawCount=l,TN(n)&&(a=0,l=i.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!o._decimated,r.points=i;const c=this.resolveDatasetElementOptions(t);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(r,void 0,{animated:!s,options:c},t),this.updateElements(i,a,l,t)}updateElements(t,n,r,i){const o=i==="reset",{iScale:s,vScale:a,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:u,includeOptions:d}=this._getSharedOptions(n,i),h=s.axis,f=a.axis,{spanGaps:p,segment:g}=this.options,y=lc(p)?p:Number.POSITIVE_INFINITY,m=this.chart._animationsDisabled||o||i==="none",x=n+r,b=t.length;let _=n>0&&this.getParsed(n-1);for(let w=0;w<b;++w){const A=t[w],S=m?A:{};if(w<n||w>=x){S.skip=!0;continue}const E=this.getParsed(w),k=bt(E[f]),C=S[h]=s.getPixelForValue(E[h],w),T=S[f]=o||k?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,E,l):E[f],w);S.skip=isNaN(C)||isNaN(T)||k,S.stop=w>0&&Math.abs(E[h]-_[h])>y,g&&(S.parsed=E,S.raw=c.data[w]),d&&(S.options=u||this.resolveDataElementOptions(w,A.active?"active":i)),m||this.updateElement(A,w,S,i),_=E}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,r=n.options&&n.options.borderWidth||0,i=t.data||[];if(!i.length)return r;const o=i[0].size(this.resolveDataElementOptions(0)),s=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(r,o,s)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}et($g,"id","line"),et($g,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),et($g,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class gd extends Vr{constructor(t,n){super(t,n),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart,i=r.data.labels||[],o=tf(n._parsed[t].r,r.options.locale);return{label:i[t]||"",value:o}}parseObjectData(t,n,r,i){return NN.bind(this)(t,n,r,i)}update(t){const n=this._cachedMeta.data;this._updateRadius(),this.updateElements(n,0,n.length,t)}getMinMax(){const t=this._cachedMeta,n={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((r,i)=>{const o=this.getParsed(i).r;!isNaN(o)&&this.chart.getDataVisibility(i)&&(o<n.min&&(n.min=o),o>n.max&&(n.max=o))}),n}_updateRadius(){const t=this.chart,n=t.chartArea,r=t.options,i=Math.min(n.right-n.left,n.bottom-n.top),o=Math.max(i/2,0),s=Math.max(r.cutoutPercentage?o/100*r.cutoutPercentage:1,0),a=(o-s)/t.getVisibleDatasetCount();this.outerRadius=o-a*this.index,this.innerRadius=this.outerRadius-a}updateElements(t,n,r,i){const o=i==="reset",s=this.chart,a=s.options.animation,l=this._cachedMeta.rScale,c=l.xCenter,u=l.yCenter,d=l.getIndexAngle(0)-.5*oe;let h=d,f;const p=360/this.countVisibleElements();for(f=0;f<n;++f)h+=this._computeAngle(f,i,p);for(f=n;f<n+r;f++){const g=t[f];let y=h,m=h+this._computeAngle(f,i,p),x=s.getDataVisibility(f)?l.getDistanceFromCenterForValue(this.getParsed(f).r):0;h=m,o&&(a.animateScale&&(x=0),a.animateRotate&&(y=m=d));const b={x:c,y:u,innerRadius:0,outerRadius:x,startAngle:y,endAngle:m,options:this.resolveDataElementOptions(f,g.active?"active":i)};this.updateElement(g,f,b,i)}}countVisibleElements(){const t=this._cachedMeta;let n=0;return t.data.forEach((r,i)=>{!isNaN(this.getParsed(i).r)&&this.chart.getDataVisibility(i)&&n++}),n}_computeAngle(t,n,r){return this.chart.getDataVisibility(t)?Dr(this.resolveDataElementOptions(t,n).angle||r):0}}et(gd,"id","polarArea"),et(gd,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),et(gd,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:n,color:r}}=e.legend.options;return t.labels.map((i,o)=>{const s=e.getDatasetMeta(0).controller.getStyle(o);return{text:i,fillStyle:s.backgroundColor,strokeStyle:s.borderColor,fontColor:r,lineWidth:s.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(o),index:o}})}return[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class T_ extends zo{}et(T_,"id","pie"),et(T_,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class Pg extends Vr{getLabelAndValue(t){const n=this._cachedMeta.vScale,r=this.getParsed(t);return{label:n.getLabels()[t],value:""+n.getLabelForValue(r[n.axis])}}parseObjectData(t,n,r,i){return NN.bind(this)(t,n,r,i)}update(t){const n=this._cachedMeta,r=n.dataset,i=n.data||[],o=n.iScale.getLabels();if(r.points=i,t!=="resize"){const s=this.resolveDatasetElementOptions(t);this.options.showLine||(s.borderWidth=0);const a={_loop:!0,_fullLoop:o.length===i.length,options:s};this.updateElement(r,void 0,a,t)}this.updateElements(i,0,i.length,t)}updateElements(t,n,r,i){const o=this._cachedMeta.rScale,s=i==="reset";for(let a=n;a<n+r;a++){const l=t[a],c=this.resolveDataElementOptions(a,l.active?"active":i),u=o.getPointPositionForValue(a,this.getParsed(a).r),d=s?o.xCenter:u.x,h=s?o.yCenter:u.y,f={x:d,y:h,angle:u.angle,skip:isNaN(d)||isNaN(h),options:c};this.updateElement(l,a,f,i)}}}et(Pg,"id","radar"),et(Pg,"defaults",{datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}}),et(Pg,"overrides",{aspectRatio:1,scales:{r:{type:"radialLinear"}}});class Og extends Vr{getLabelAndValue(t){const n=this._cachedMeta,r=this.chart.data.labels||[],{xScale:i,yScale:o}=n,s=this.getParsed(t),a=i.getLabelForValue(s.x),l=o.getLabelForValue(s.y);return{label:r[t]||"",value:"("+a+", "+l+")"}}update(t){const n=this._cachedMeta,{data:r=[]}=n,i=this.chart._animationsDisabled;let{start:o,count:s}=kN(n,r,i);if(this._drawStart=o,this._drawCount=s,TN(n)&&(o=0,s=r.length),this.options.showLine){const{dataset:a,_dataset:l}=n;a._chart=this.chart,a._datasetIndex=this.index,a._decimated=!!l._decimated,a.points=r;const c=this.resolveDatasetElementOptions(t);c.segment=this.options.segment,this.updateElement(a,void 0,{animated:!i,options:c},t)}this.updateElements(r,o,s,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(t,n,r,i){const o=i==="reset",{iScale:s,vScale:a,_stacked:l,_dataset:c}=this._cachedMeta,u=this.resolveDataElementOptions(n,i),d=this.getSharedOptions(u),h=this.includeOptions(i,d),f=s.axis,p=a.axis,{spanGaps:g,segment:y}=this.options,m=lc(g)?g:Number.POSITIVE_INFINITY,x=this.chart._animationsDisabled||o||i==="none";let b=n>0&&this.getParsed(n-1);for(let _=n;_<n+r;++_){const w=t[_],A=this.getParsed(_),S=x?w:{},E=bt(A[p]),k=S[f]=s.getPixelForValue(A[f],_),C=S[p]=o||E?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,A,l):A[p],_);S.skip=isNaN(k)||isNaN(C)||E,S.stop=_>0&&Math.abs(A[f]-b[f])>m,y&&(S.parsed=A,S.raw=c.data[_]),h&&(S.options=d||this.resolveDataElementOptions(_,w.active?"active":i)),x||this.updateElement(w,_,S,i),b=A}this.updateSharedOptions(d,i,u)}getMaxOverflow(){const t=this._cachedMeta,n=t.data||[];if(!this.options.showLine){let a=0;for(let l=n.length-1;l>=0;--l)a=Math.max(a,n[l].size(this.resolveDataElementOptions(l))/2);return a>0&&a}const r=t.dataset,i=r.options&&r.options.borderWidth||0;if(!n.length)return i;const o=n[0].size(this.resolveDataElementOptions(0)),s=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(i,o,s)/2}}et(Og,"id","scatter"),et(Og,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),et(Og,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});var s1t=Object.freeze({__proto__:null,BarController:pd,BubbleController:Mg,DoughnutController:zo,LineController:$g,PolarAreaController:gd,PieController:T_,RadarController:Pg,ScatterController:Og});function Is(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class yS{static override(t){Object.assign(yS.prototype,t)}constructor(t){this.options=t||{}}init(){}formats(){return Is()}parse(){return Is()}format(){return Is()}add(){return Is()}diff(){return Is()}startOf(){return Is()}endOf(){return Is()}}var a1t={_date:yS};function l1t(e,t,n,r){const{controller:i,data:o,_sorted:s}=e,a=i._cachedMeta.iScale;if(a&&t===a.axis&&t!=="r"&&s&&o.length){const l=a._reversePixels?P0t:Fi;if(r){if(i._sharedOptions){const c=o[0],u=typeof c.getRange=="function"&&c.getRange(t);if(u){const d=l(o,t,n-u),h=l(o,t,n+u);return{lo:d.lo,hi:h.hi}}}}else return l(o,t,n)}return{lo:0,hi:o.length-1}}function ef(e,t,n,r,i){const o=e.getSortedVisibleDatasetMetas(),s=n[t];for(let a=0,l=o.length;a<l;++a){const{index:c,data:u}=o[a],{lo:d,hi:h}=l1t(o[a],t,s,i);for(let f=d;f<=h;++f){const p=u[f];p.skip||r(p,c,f)}}}function c1t(e){const t=e.indexOf("x")!==-1,n=e.indexOf("y")!==-1;return function(r,i){const o=t?Math.abs(r.x-i.x):0,s=n?Math.abs(r.y-i.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(s,2))}}function Iy(e,t,n,r,i){const o=[];return!i&&!e.isPointInArea(t)||ef(e,n,t,function(s,a,l){!i&&!vh(s,e.chartArea,0)||s.inRange(t.x,t.y,r)&&o.push({element:s,datasetIndex:a,index:l})},!0),o}function u1t(e,t,n,r){let i=[];function o(s,a,l){const{startAngle:c,endAngle:u}=s.getProps(["startAngle","endAngle"],r),{angle:d}=wN(s,{x:t.x,y:t.y});mh(d,c,u)&&i.push({element:s,datasetIndex:a,index:l})}return ef(e,n,t,o),i}function d1t(e,t,n,r,i,o){let s=[];const a=c1t(n);let l=Number.POSITIVE_INFINITY;function c(u,d,h){const f=u.inRange(t.x,t.y,i);if(r&&!f)return;const p=u.getCenterPoint(i);if(!(!!o||e.isPointInArea(p))&&!f)return;const g=a(t,p);g<l?(s=[{element:u,datasetIndex:d,index:h}],l=g):g===l&&s.push({element:u,datasetIndex:d,index:h})}return ef(e,n,t,c),s}function Ny(e,t,n,r,i,o){return!o&&!e.isPointInArea(t)?[]:n==="r"&&!r?u1t(e,t,n,i):d1t(e,t,n,r,i,o)}function Z$(e,t,n,r,i){const o=[],s=n==="x"?"inXRange":"inYRange";let a=!1;return ef(e,n,t,(l,c,u)=>{l[s](t[n],i)&&(o.push({element:l,datasetIndex:c,index:u}),a=a||l.inRange(t.x,t.y,i))}),r&&!a?[]:o}var h1t={evaluateInteractionItems:ef,modes:{index(e,t,n,r){const i=Hs(t,e),o=n.axis||"x",s=n.includeInvisible||!1,a=n.intersect?Iy(e,i,o,r,s):Ny(e,i,o,!1,r,s),l=[];return a.length?(e.getSortedVisibleDatasetMetas().forEach(c=>{const u=a[0].index,d=c.data[u];d&&!d.skip&&l.push({element:d,datasetIndex:c.index,index:u})}),l):[]},dataset(e,t,n,r){const i=Hs(t,e),o=n.axis||"xy",s=n.includeInvisible||!1;let a=n.intersect?Iy(e,i,o,r,s):Ny(e,i,o,!1,r,s);if(a.length>0){const l=a[0].datasetIndex,c=e.getDatasetMeta(l).data;a=[];for(let u=0;u<c.length;++u)a.push({element:c[u],datasetIndex:l,index:u})}return a},point(e,t,n,r){const i=Hs(t,e),o=n.axis||"xy",s=n.includeInvisible||!1;return Iy(e,i,o,r,s)},nearest(e,t,n,r){const i=Hs(t,e),o=n.axis||"xy",s=n.includeInvisible||!1;return Ny(e,i,o,n.intersect,r,s)},x(e,t,n,r){const i=Hs(t,e);return Z$(e,i,"x",n.intersect,r)},y(e,t,n,r){const i=Hs(t,e);return Z$(e,i,"y",n.intersect,r)}}};const qN=["left","top","right","bottom"];function eu(e,t){return e.filter(n=>n.pos===t)}function J$(e,t){return e.filter(n=>qN.indexOf(n.pos)===-1&&n.box.axis===t)}function nu(e,t){return e.sort((n,r)=>{const i=t?r:n,o=t?n:r;return i.weight===o.weight?i.index-o.index:i.weight-o.weight})}function f1t(e){const t=[];let n,r,i,o,s,a;for(n=0,r=(e||[]).length;n<r;++n)i=e[n],{position:o,options:{stack:s,stackWeight:a=1}}=i,t.push({index:n,box:i,pos:o,horizontal:i.isHorizontal(),weight:i.weight,stack:s&&o+s,stackWeight:a});return t}function p1t(e){const t={};for(const n of e){const{stack:r,pos:i,stackWeight:o}=n;if(!r||!qN.includes(i))continue;const s=t[r]||(t[r]={count:0,placed:0,weight:0,size:0});s.count++,s.weight+=o}return t}function g1t(e,t){const n=p1t(e),{vBoxMaxWidth:r,hBoxMaxHeight:i}=t;let o,s,a;for(o=0,s=e.length;o<s;++o){a=e[o];const{fullSize:l}=a.box,c=n[a.stack],u=c&&a.stackWeight/c.weight;a.horizontal?(a.width=u?u*r:l&&t.availableWidth,a.height=i):(a.width=r,a.height=u?u*i:l&&t.availableHeight)}return n}function m1t(e){const t=f1t(e),n=nu(t.filter(c=>c.box.fullSize),!0),r=nu(eu(t,"left"),!0),i=nu(eu(t,"right")),o=nu(eu(t,"top"),!0),s=nu(eu(t,"bottom")),a=J$(t,"x"),l=J$(t,"y");return{fullSize:n,leftAndTop:r.concat(o),rightAndBottom:i.concat(l).concat(s).concat(a),chartArea:eu(t,"chartArea"),vertical:r.concat(i).concat(l),horizontal:o.concat(s).concat(a)}}function tP(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function XN(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function v1t(e,t,n,r){const{pos:i,box:o}=n,s=e.maxPadding;if(!pt(i)){n.size&&(e[i]-=n.size);const d=r[n.stack]||{size:0,count:1};d.size=Math.max(d.size,n.horizontal?o.height:o.width),n.size=d.size/d.count,e[i]+=n.size}o.getPadding&&XN(s,o.getPadding());const a=Math.max(0,t.outerWidth-tP(s,e,"left","right")),l=Math.max(0,t.outerHeight-tP(s,e,"top","bottom")),c=a!==e.w,u=l!==e.h;return e.w=a,e.h=l,n.horizontal?{same:c,other:u}:{same:u,other:c}}function y1t(e){const t=e.maxPadding;function n(r){const i=Math.max(t[r]-e[r],0);return e[r]+=i,i}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function x1t(e,t){const n=t.maxPadding;function r(i){const o={left:0,top:0,right:0,bottom:0};return i.forEach(s=>{o[s]=Math.max(t[s],n[s])}),o}return r(e?["left","right"]:["top","bottom"])}function yu(e,t,n,r){const i=[];let o,s,a,l,c,u;for(o=0,s=e.length,c=0;o<s;++o){a=e[o],l=a.box,l.update(a.width||t.w,a.height||t.h,x1t(a.horizontal,t));const{same:d,other:h}=v1t(t,n,a,r);c|=d&&i.length,u=u||h,l.fullSize||i.push(a)}return c&&yu(i,t,n,r)||u}function _p(e,t,n,r,i){e.top=n,e.left=t,e.right=t+r,e.bottom=n+i,e.width=r,e.height=i}function eP(e,t,n,r){const i=n.padding;let{x:o,y:s}=t;for(const a of e){const l=a.box,c=r[a.stack]||{count:1,placed:0,weight:1},u=a.stackWeight/c.weight||1;if(a.horizontal){const d=t.w*u,h=c.size||l.height;_r(c.start)&&(s=c.start),l.fullSize?_p(l,i.left,s,n.outerWidth-i.right-i.left,h):_p(l,t.left+c.placed,s,d,h),c.start=s,c.placed+=d,s=l.bottom}else{const d=t.h*u,h=c.size||l.width;_r(c.start)&&(o=c.start),l.fullSize?_p(l,o,i.top,h,n.outerHeight-i.bottom-i.top):_p(l,o,t.top+c.placed,h,d),c.start=o,c.placed+=d,o=l.right}}t.x=o,t.y=s}var ln={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(n){t.draw(n)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;n!==-1&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,r){if(!e)return;const i=dn(e.options.layout.padding),o=Math.max(t-i.width,0),s=Math.max(n-i.height,0),a=m1t(e.boxes),l=a.vertical,c=a.horizontal;Tt(e.boxes,g=>{typeof g.beforeLayout=="function"&&g.beforeLayout()});const u=l.reduce((g,y)=>y.box.options&&y.box.options.display===!1?g:g+1,0)||1,d=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:o,availableHeight:s,vBoxMaxWidth:o/2/u,hBoxMaxHeight:s/2}),h=Object.assign({},i);XN(h,dn(r));const f=Object.assign({maxPadding:h,w:o,h:s,x:i.left,y:i.top},i),p=g1t(l.concat(c),d);yu(a.fullSize,f,d,p),yu(l,f,d,p),yu(c,f,d,p)&&yu(l,f,d,p),y1t(f),eP(a.leftAndTop,f,d,p),f.x+=f.w,f.y+=f.h,eP(a.rightAndBottom,f,d,p),e.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},Tt(a.chartArea,g=>{const y=g.box;Object.assign(y,e.chartArea),y.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})})}};class QN{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,r){}removeEventListener(t,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,r,i){return n=Math.max(0,n||t.width),r=r||t.height,{width:n,height:Math.max(0,i?Math.floor(n/i):r)}}isAttached(t){return!0}updateConfig(t){}}class b1t extends QN{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Rg="$chartjs",_1t={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},nP=e=>e===null||e==="";function w1t(e,t){const n=e.style,r=e.getAttribute("height"),i=e.getAttribute("width");if(e[Rg]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",nP(i)){const o=F$(e,"width");o!==void 0&&(e.width=o)}if(nP(r))if(e.style.height==="")e.height=e.width/(t||2);else{const o=F$(e,"height");o!==void 0&&(e.height=o)}return e}const KN=Svt?{passive:!0}:!1;function A1t(e,t,n){e.addEventListener(t,n,KN)}function S1t(e,t,n){e.canvas.removeEventListener(t,n,KN)}function E1t(e,t){const n=_1t[e.type]||e.type,{x:r,y:i}=Hs(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:i!==void 0?i:null}}function o0(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function C1t(e,t,n){const r=e.canvas,i=new MutationObserver(o=>{let s=!1;for(const a of o)s=s||o0(a.addedNodes,r),s=s&&!o0(a.removedNodes,r);s&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function k1t(e,t,n){const r=e.canvas,i=new MutationObserver(o=>{let s=!1;for(const a of o)s=s||o0(a.removedNodes,r),s=s&&!o0(a.addedNodes,r);s&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const xh=new Map;let rP=0;function ZN(){const e=window.devicePixelRatio;e!==rP&&(rP=e,xh.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function T1t(e,t){xh.size||window.addEventListener("resize",ZN),xh.set(e,t)}function M1t(e){xh.delete(e),xh.size||window.removeEventListener("resize",ZN)}function $1t(e,t,n){const r=e.canvas,i=r&&vS(r);if(!i)return;const o=CN((a,l)=>{const c=i.clientWidth;n(a,l),c<i.clientWidth&&n()},window),s=new ResizeObserver(a=>{const l=a[0],c=l.contentRect.width,u=l.contentRect.height;c===0&&u===0||o(c,u)});return s.observe(i),T1t(e,o),s}function Fy(e,t,n){n&&n.disconnect(),t==="resize"&&M1t(e)}function P1t(e,t,n){const r=e.canvas,i=CN(o=>{e.ctx!==null&&n(E1t(o,e))},e);return A1t(r,t,i),i}class O1t extends QN{acquireContext(t,n){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(w1t(t,n),r):null}releaseContext(t){const n=t.canvas;if(!n[Rg])return!1;const r=n[Rg].initial;["height","width"].forEach(o=>{const s=r[o];bt(s)?n.removeAttribute(o):n.setAttribute(o,s)});const i=r.style||{};return Object.keys(i).forEach(o=>{n.style[o]=i[o]}),n.width=n.width,delete n[Rg],!0}addEventListener(t,n,r){this.removeEventListener(t,n);const i=t.$proxies||(t.$proxies={}),o={attach:C1t,detach:k1t,resize:$1t}[n]||P1t;i[n]=o(t,n,r)}removeEventListener(t,n){const r=t.$proxies||(t.$proxies={}),i=r[n];!i||(({attach:Fy,detach:Fy,resize:Fy}[n]||S1t)(t,n,i),r[n]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,i){return Avt(t,n,r,i)}isAttached(t){const n=vS(t);return!!(n&&n.isConnected)}}function R1t(e){return!zN()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?b1t:O1t}class Ur{constructor(){et(this,"active",!1)}tooltipPosition(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}hasValue(){return lc(this.x)&&lc(this.y)}getProps(t,n){const r=this.$animations;if(!n||!r)return this;const i={};return t.forEach(o=>{i[o]=r[o]&&r[o].active()?r[o]._to:this[o]}),i}}et(Ur,"defaults",{}),et(Ur,"defaultRoutes");function D1t(e,t){const n=e.options.ticks,r=L1t(e),i=Math.min(n.maxTicksLimit||r,r),o=n.major.enabled?N1t(t):[],s=o.length,a=o[0],l=o[s-1],c=[];if(s>i)return F1t(t,c,o,s/i),c;const u=I1t(o,t,i);if(s>0){let d,h;const f=s>1?Math.round((l-a)/(s-1)):null;for(wp(t,c,u,bt(f)?0:a-f,a),d=0,h=s-1;d<h;d++)wp(t,c,u,o[d],o[d+1]);return wp(t,c,u,l,bt(f)?t.length:l+f),c}return wp(t,c,u),c}function L1t(e){const t=e.options.offset,n=e._tickSize(),r=e._length/n+(t?0:1),i=e._maxLength/n;return Math.floor(Math.min(r,i))}function I1t(e,t,n){const r=z1t(e),i=t.length/n;if(!r)return Math.max(i,1);const o=k0t(r);for(let s=0,a=o.length-1;s<a;s++){const l=o[s];if(l>i)return l}return Math.max(i,1)}function N1t(e){const t=[];let n,r;for(n=0,r=e.length;n<r;n++)e[n].major&&t.push(n);return t}function F1t(e,t,n,r){let i=0,o=n[0],s;for(r=Math.ceil(r),s=0;s<e.length;s++)s===o&&(t.push(e[s]),i++,o=n[i*r])}function wp(e,t,n,r,i){const o=ut(r,0),s=Math.min(ut(i,e.length),e.length);let a=0,l,c,u;for(n=Math.ceil(n),i&&(l=i-r,n=l/Math.floor(l/n)),u=o;u<0;)a++,u=Math.round(o+a*n);for(c=Math.max(o,0);c<s;c++)c===u&&(t.push(e[c]),a++,u=Math.round(o+a*n))}function z1t(e){const t=e.length;let n,r;if(t<2)return!1;for(r=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==r)return!1;return r}const B1t=e=>e==="left"?"right":e==="right"?"left":e,iP=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n;function oP(e,t){const n=[],r=e.length/t,i=e.length;let o=0;for(;o<i;o+=r)n.push(e[Math.floor(o)]);return n}function V1t(e,t,n){const r=e.ticks.length,i=Math.min(t,r-1),o=e._startPixel,s=e._endPixel,a=1e-6;let l=e.getPixelForTick(i),c;if(!(n&&(r===1?c=Math.max(l-o,s-l):t===0?c=(e.getPixelForTick(1)-l)/2:c=(l-e.getPixelForTick(i-1))/2,l+=i<t?c:-c,l<o-a||l>s+a)))return l}function j1t(e,t){Tt(e,n=>{const r=n.gc,i=r.length/2;let o;if(i>t){for(o=0;o<i;++o)delete n.data[r[o]];r.splice(0,i)}})}function ru(e){return e.drawTicks?e.tickLength:0}function sP(e,t){if(!e.display)return 0;const n=Oe(e.font,t),r=dn(e.padding);return(Zt(e.text)?e.text.length:1)*n.lineHeight+r.height}function H1t(e,t){return ws(e,{scale:t,type:"scale"})}function U1t(e,t,n){return ws(e,{tick:n,index:t,type:"tick"})}function W1t(e,t,n){let r=hS(e);return(n&&t!=="right"||!n&&t==="right")&&(r=B1t(r)),r}function Y1t(e,t,n,r){const{top:i,left:o,bottom:s,right:a,chart:l}=e,{chartArea:c,scales:u}=l;let d=0,h,f,p;const g=s-i,y=a-o;if(e.isHorizontal()){if(f=en(r,o,a),pt(n)){const m=Object.keys(n)[0],x=n[m];p=u[m].getPixelForValue(x)+g-t}else n==="center"?p=(c.bottom+c.top)/2+g-t:p=iP(e,n,t);h=a-o}else{if(pt(n)){const m=Object.keys(n)[0],x=n[m];f=u[m].getPixelForValue(x)-y+t}else n==="center"?f=(c.left+c.right)/2-y+t:f=iP(e,n,t);p=en(r,s,i),d=n==="left"?-me:me}return{titleX:f,titleY:p,maxWidth:h,rotation:d}}class $a extends Ur{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,n){return t}getUserBounds(){let{_userMin:t,_userMax:n,_suggestedMin:r,_suggestedMax:i}=this;return t=Wn(t,Number.POSITIVE_INFINITY),n=Wn(n,Number.NEGATIVE_INFINITY),r=Wn(r,Number.POSITIVE_INFINITY),i=Wn(i,Number.NEGATIVE_INFINITY),{min:Wn(t,r),max:Wn(n,i),minDefined:ge(t),maxDefined:ge(n)}}getMinMax(t){let{min:n,max:r,minDefined:i,maxDefined:o}=this.getUserBounds(),s;if(i&&o)return{min:n,max:r};const a=this.getMatchingVisibleMetas();for(let l=0,c=a.length;l<c;++l)s=a[l].controller.getMinMax(this,t),i||(n=Math.min(n,s.min)),o||(r=Math.max(r,s.max));return n=o&&n>r?r:n,r=i&&n>r?n:r,{min:Wn(n,Wn(r,n)),max:Wn(r,Wn(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Bt(this.options.beforeUpdate,[this])}update(t,n,r){const{beginAtZero:i,grace:o,ticks:s}=this.options,a=s.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=evt(this,o,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a<this.ticks.length;this._convertTicksToLabels(l?oP(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),s.display&&(s.autoSkip||s.source==="auto")&&(this.ticks=D1t(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,n,r;this.isHorizontal()?(n=this.left,r=this.right):(n=this.top,r=this.bottom,t=!t),this._startPixel=n,this._endPixel=r,this._reversePixels=t,this._length=r-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Bt(this.options.afterUpdate,[this])}beforeSetDimensions(){Bt(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Bt(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),Bt(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Bt(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const n=this.options.ticks;let r,i,o;for(r=0,i=t.length;r<i;r++)o=t[r],o.label=Bt(n.callback,[o.value,r,t],this)}afterTickToLabelConversion(){Bt(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Bt(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,n=t.ticks,r=this.ticks.length,i=n.minRotation||0,o=n.maxRotation;let s=i,a,l,c;if(!this._isVisible()||!n.display||i>=o||r<=1||!this.isHorizontal()){this.labelRotation=i;return}const u=this._getLabelSizes(),d=u.widest.width,h=u.highest.height,f=Ve(this.chart.width-d,0,this.maxWidth);a=t.offset?this.maxWidth/r:f/(r-1),d+6>a&&(a=f/(r-(t.offset?.5:1)),l=this.maxHeight-ru(t.grid)-n.padding-sP(t.title,this.chart.options.font),c=Math.sqrt(d*d+h*h),s=uS(Math.min(Math.asin(Ve((u.highest.height+6)/a,-1,1)),Math.asin(Ve(l/c,-1,1))-Math.asin(Ve(h/c,-1,1)))),s=Math.max(i,Math.min(o,s))),this.labelRotation=s}afterCalculateLabelRotation(){Bt(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Bt(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:r,title:i,grid:o}}=this,s=this._isVisible(),a=this.isHorizontal();if(s){const l=sP(i,n.options.font);if(a?(t.width=this.maxWidth,t.height=ru(o)+l):(t.height=this.maxHeight,t.width=ru(o)+l),r.display&&this.ticks.length){const{first:c,last:u,widest:d,highest:h}=this._getLabelSizes(),f=r.padding*2,p=Dr(this.labelRotation),g=Math.cos(p),y=Math.sin(p);if(a){const m=r.mirror?0:y*d.width+g*h.height;t.height=Math.min(this.maxHeight,t.height+m+f)}else{const m=r.mirror?0:g*d.width+y*h.height;t.width=Math.min(this.maxWidth,t.width+m+f)}this._calculatePadding(c,u,y,g)}}this._handleMargins(),a?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,r,i){const{ticks:{align:o,padding:s},position:a}=this.options,l=this.labelRotation!==0,c=a!=="top"&&this.axis==="x";if(this.isHorizontal()){const u=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,f=0;l?c?(h=i*t.width,f=r*n.height):(h=r*t.height,f=i*n.width):o==="start"?f=n.width:o==="end"?h=t.width:o!=="inner"&&(h=t.width/2,f=n.width/2),this.paddingLeft=Math.max((h-u+s)*this.width/(this.width-u),0),this.paddingRight=Math.max((f-d+s)*this.width/(this.width-d),0)}else{let u=n.height/2,d=t.height/2;o==="start"?(u=0,d=t.height):o==="end"&&(u=n.height,d=0),this.paddingTop=u+s,this.paddingBottom=d+s}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Bt(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,r;for(n=0,r=t.length;n<r;n++)bt(t[n].label)&&(t.splice(n,1),r--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const n=this.options.ticks.sampleSize;let r=this.ticks;n<r.length&&(r=oP(r,n)),this._labelSizes=t=this._computeLabelSizes(r,r.length)}return t}_computeLabelSizes(t,n){const{ctx:r,_longestTextCache:i}=this,o=[],s=[];let a=0,l=0,c,u,d,h,f,p,g,y,m,x,b;for(c=0;c<n;++c){if(h=t[c].label,f=this._resolveTickFontOptions(c),r.font=p=f.string,g=i[p]=i[p]||{data:{},gc:[]},y=f.lineHeight,m=x=0,!bt(h)&&!Zt(h))m=r0(r,g.data,g.gc,m,h),x=y;else if(Zt(h))for(u=0,d=h.length;u<d;++u)b=h[u],!bt(b)&&!Zt(b)&&(m=r0(r,g.data,g.gc,m,b),x+=y);o.push(m),s.push(x),a=Math.max(m,a),l=Math.max(x,l)}j1t(i,n);const _=o.indexOf(a),w=s.indexOf(l),A=S=>({width:o[S]||0,height:s[S]||0});return{first:A(0),last:A(n-1),widest:A(_),highest:A(w),widths:o,heights:s}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return $0t(this._alignToPixels?Ls(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&t<n.length){const r=n[t];return r.$context||(r.$context=U1t(this.getContext(),t,r))}return this.$context||(this.$context=H1t(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,n=Dr(this.labelRotation),r=Math.abs(Math.cos(n)),i=Math.abs(Math.sin(n)),o=this._getLabelSizes(),s=t.autoSkipPadding||0,a=o?o.widest.width+s:0,l=o?o.highest.height+s:0;return this.isHorizontal()?l*r>a*i?a/r:l/i:l*i<a*r?l/r:a/i}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const n=this.axis,r=this.chart,i=this.options,{grid:o,position:s,border:a}=i,l=o.offset,c=this.isHorizontal(),u=this.ticks.length+(l?1:0),d=ru(o),h=[],f=a.setContext(this.getContext()),p=f.display?f.width:0,g=p/2,y=function(D){return Ls(r,D,p)};let m,x,b,_,w,A,S,E,k,C,T,$;if(s==="top")m=y(this.bottom),A=this.bottom-d,E=m-g,C=y(t.top)+g,$=t.bottom;else if(s==="bottom")m=y(this.top),C=t.top,$=y(t.bottom)-g,A=m+g,E=this.top+d;else if(s==="left")m=y(this.right),w=this.right-d,S=m-g,k=y(t.left)+g,T=t.right;else if(s==="right")m=y(this.left),k=t.left,T=y(t.right)-g,w=m+g,S=this.left+d;else if(n==="x"){if(s==="center")m=y((t.top+t.bottom)/2+.5);else if(pt(s)){const D=Object.keys(s)[0],Y=s[D];m=y(this.chart.scales[D].getPixelForValue(Y))}C=t.top,$=t.bottom,A=m+g,E=A+d}else if(n==="y"){if(s==="center")m=y((t.left+t.right)/2);else if(pt(s)){const D=Object.keys(s)[0],Y=s[D];m=y(this.chart.scales[D].getPixelForValue(Y))}w=m-g,S=w-d,k=t.left,T=t.right}const I=ut(i.ticks.maxTicksLimit,u),N=Math.max(1,Math.ceil(u/I));for(x=0;x<u;x+=N){const D=this.getContext(x),Y=o.setContext(D),Q=a.setContext(D),F=Y.lineWidth,W=Y.color,P=Q.dash||[],G=Q.dashOffset,U=Y.tickWidth,B=Y.tickColor,R=Y.tickBorderDash||[],V=Y.tickBorderDashOffset;b=V1t(this,x,l),b!==void 0&&(_=Ls(r,b,F),c?w=S=k=T=_:A=E=C=$=_,h.push({tx1:w,ty1:A,tx2:S,ty2:E,x1:k,y1:C,x2:T,y2:$,width:F,color:W,borderDash:P,borderDashOffset:G,tickWidth:U,tickColor:B,tickBorderDash:R,tickBorderDashOffset:V}))}return this._ticksLength=u,this._borderValue=m,h}_computeLabelItems(t){const n=this.axis,r=this.options,{position:i,ticks:o}=r,s=this.isHorizontal(),a=this.ticks,{align:l,crossAlign:c,padding:u,mirror:d}=o,h=ru(r.grid),f=h+u,p=d?-u:f,g=-Dr(this.labelRotation),y=[];let m,x,b,_,w,A,S,E,k,C,T,$,I="middle";if(i==="top")A=this.bottom-p,S=this._getXAxisLabelAlignment();else if(i==="bottom")A=this.top+p,S=this._getXAxisLabelAlignment();else if(i==="left"){const D=this._getYAxisLabelAlignment(h);S=D.textAlign,w=D.x}else if(i==="right"){const D=this._getYAxisLabelAlignment(h);S=D.textAlign,w=D.x}else if(n==="x"){if(i==="center")A=(t.top+t.bottom)/2+f;else if(pt(i)){const D=Object.keys(i)[0],Y=i[D];A=this.chart.scales[D].getPixelForValue(Y)+f}S=this._getXAxisLabelAlignment()}else if(n==="y"){if(i==="center")w=(t.left+t.right)/2-f;else if(pt(i)){const D=Object.keys(i)[0],Y=i[D];w=this.chart.scales[D].getPixelForValue(Y)}S=this._getYAxisLabelAlignment(h).textAlign}n==="y"&&(l==="start"?I="top":l==="end"&&(I="bottom"));const N=this._getLabelSizes();for(m=0,x=a.length;m<x;++m){b=a[m],_=b.label;const D=o.setContext(this.getContext(m));E=this.getPixelForTick(m)+o.labelOffset,k=this._resolveTickFontOptions(m),C=k.lineHeight,T=Zt(_)?_.length:1;const Y=T/2,Q=D.color,F=D.textStrokeColor,W=D.textStrokeWidth;let P=S;s?(w=E,S==="inner"&&(m===x-1?P=this.options.reverse?"left":"right":m===0?P=this.options.reverse?"right":"left":P="center"),i==="top"?c==="near"||g!==0?$=-T*C+C/2:c==="center"?$=-N.highest.height/2-Y*C+C:$=-N.highest.height+C/2:c==="near"||g!==0?$=C/2:c==="center"?$=N.highest.height/2-Y*C:$=N.highest.height-T*C,d&&($*=-1),g!==0&&!D.showLabelBackdrop&&(w+=C/2*Math.sin(g))):(A=E,$=(1-T)*C/2);let G;if(D.showLabelBackdrop){const U=dn(D.backdropPadding),B=N.heights[m],R=N.widths[m];let V=$-U.top,K=0-U.left;switch(I){case"middle":V-=B/2;break;case"bottom":V-=B;break}switch(S){case"center":K-=R/2;break;case"right":K-=R;break}G={left:K,top:V,width:R+U.width,height:B+U.height,color:D.backdropColor}}y.push({label:_,font:k,textOffset:$,options:{rotation:g,color:Q,strokeColor:F,strokeWidth:W,textAlign:P,textBaseline:I,translation:[w,A],backdrop:G}})}return y}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-Dr(this.labelRotation))return t==="top"?"left":"right";let r="center";return n.align==="start"?r="left":n.align==="end"?r="right":n.align==="inner"&&(r="inner"),r}_getYAxisLabelAlignment(t){const{position:n,ticks:{crossAlign:r,mirror:i,padding:o}}=this.options,s=this._getLabelSizes(),a=t+o,l=s.widest.width;let c,u;return n==="left"?i?(u=this.right+o,r==="near"?c="left":r==="center"?(c="center",u+=l/2):(c="right",u+=l)):(u=this.right-a,r==="near"?c="right":r==="center"?(c="center",u-=l/2):(c="left",u=this.left)):n==="right"?i?(u=this.left+o,r==="near"?c="right":r==="center"?(c="center",u-=l/2):(c="left",u-=l)):(u=this.left+a,r==="near"?c="left":r==="center"?(c="center",u+=l/2):(c="right",u=this.right)):c="right",{textAlign:c,x:u}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:n},left:r,top:i,width:o,height:s}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(r,i,o,s),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const r=this.ticks.findIndex(i=>i.value===t);return r>=0?n.setContext(this.getContext(r)).lineWidth:0}drawGrid(t){const n=this.options.grid,r=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,s;const a=(l,c,u)=>{!u.width||!u.color||(r.save(),r.lineWidth=u.width,r.strokeStyle=u.color,r.setLineDash(u.borderDash||[]),r.lineDashOffset=u.borderDashOffset,r.beginPath(),r.moveTo(l.x,l.y),r.lineTo(c.x,c.y),r.stroke(),r.restore())};if(n.display)for(o=0,s=i.length;o<s;++o){const l=i[o];n.drawOnChartArea&&a({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),n.drawTicks&&a({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:n,options:{border:r,grid:i}}=this,o=r.setContext(this.getContext()),s=r.display?o.width:0;if(!s)return;const a=i.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let c,u,d,h;this.isHorizontal()?(c=Ls(t,this.left,s)-s/2,u=Ls(t,this.right,a)+a/2,d=h=l):(d=Ls(t,this.top,s)-s/2,h=Ls(t,this.bottom,a)+a/2,c=u=l),n.save(),n.lineWidth=o.width,n.strokeStyle=o.color,n.beginPath(),n.moveTo(c,d),n.lineTo(u,h),n.stroke(),n.restore()}drawLabels(t){if(!this.options.ticks.display)return;const n=this.ctx,r=this._computeLabelArea();r&&Bv(n,r);const i=this.getLabelItems(t);for(const o of i){const s=o.options,a=o.font,l=o.label,c=o.textOffset;wa(n,l,0,c,a,s)}r&&Vv(n)}drawTitle(){const{ctx:t,options:{position:n,title:r,reverse:i}}=this;if(!r.display)return;const o=Oe(r.font),s=dn(r.padding),a=r.align;let l=o.lineHeight/2;n==="bottom"||n==="center"||pt(n)?(l+=s.bottom,Zt(r.text)&&(l+=o.lineHeight*(r.text.length-1))):l+=s.top;const{titleX:c,titleY:u,maxWidth:d,rotation:h}=Y1t(this,l,n,a);wa(t,r.text,0,0,o,{color:r.color,maxWidth:d,rotation:h,textAlign:W1t(a,n,i),textBaseline:"middle",translation:[c,u]})}draw(t){!this._isVisible()||(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,n=t.ticks&&t.ticks.z||0,r=ut(t.grid&&t.grid.z,-1),i=ut(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==$a.prototype.draw?[{z:n,draw:o=>{this.draw(o)}}]:[{z:r,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",i=[];let o,s;for(o=0,s=n.length;o<s;++o){const a=n[o];a[r]===this.id&&(!t||a.type===t)&&i.push(a)}return i}_resolveTickFontOptions(t){const n=this.options.ticks.setContext(this.getContext(t));return Oe(n.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class Ap{constructor(t,n,r){this.type=t,this.scope=n,this.override=r,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const n=Object.getPrototypeOf(t);let r;X1t(n)&&(r=this.register(n));const i=this.items,o=t.id,s=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+t);return o in i||(i[o]=t,G1t(t,s,r),this.override&&we.override(t.id,t.overrides)),s}get(t){return this.items[t]}unregister(t){const n=this.items,r=t.id,i=this.scope;r in n&&delete n[r],i&&r in we[i]&&(delete we[i][r],this.override&&delete _a[r])}}function G1t(e,t,n){const r=gh(Object.create(null),[n?we.get(n):{},we.get(t),e.defaults]);we.set(t,r),e.defaultRoutes&&q1t(t,e.defaultRoutes),e.descriptors&&we.describe(t,e.descriptors)}function q1t(e,t){Object.keys(t).forEach(n=>{const r=n.split("."),i=r.pop(),o=[e].concat(r).join("."),s=t[n].split("."),a=s.pop(),l=s.join(".");we.route(o,i,l,a)})}function X1t(e){return"id"in e&&"defaults"in e}class Q1t{constructor(){this.controllers=new Ap(Vr,"datasets",!0),this.elements=new Ap(Ur,"elements"),this.plugins=new Ap(Object,"plugins"),this.scales=new Ap($a,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,r){[...n].forEach(i=>{const o=r||this._getRegistryForType(i);r||o.isForType(i)||o===this.plugins&&i.id?this._exec(t,o,i):Tt(i,s=>{const a=r||this._getRegistryForType(s);this._exec(t,a,s)})})}_exec(t,n,r){const i=cS(t);Bt(r["before"+i],[],r),n[t](r),Bt(r["after"+i],[],r)}_getRegistryForType(t){for(let n=0;n<this._typedRegistries.length;n++){const r=this._typedRegistries[n];if(r.isForType(t))return r}return this.plugins}_get(t,n,r){const i=n.get(t);if(i===void 0)throw new Error('"'+t+'" is not a registered '+r+".");return i}}var Jr=new Q1t;class K1t{constructor(){this._init=[]}notify(t,n,r,i){n==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const o=i?this._descriptors(t).filter(i):this._descriptors(t),s=this._notify(o,t,n,r);return n==="afterDestroy"&&(this._notify(o,t,"stop"),this._notify(this._init,t,"uninstall")),s}_notify(t,n,r,i){i=i||{};for(const o of t){const s=o.plugin,a=s[r],l=[n,i,o.options];if(Bt(a,l,s)===!1&&i.cancelable)return!1}return!0}invalidate(){bt(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),n}_createDescriptors(t,n){const r=t&&t.config,i=ut(r.options&&r.options.plugins,{}),o=Z1t(r);return i===!1&&!n?[]:tyt(t,o,i,n)}_notifyStateChanges(t){const n=this._oldCache||[],r=this._cache,i=(o,s)=>o.filter(a=>!s.some(l=>a.plugin.id===l.plugin.id));this._notify(i(n,r),t,"stop"),this._notify(i(r,n),t,"start")}}function Z1t(e){const t={},n=[],r=Object.keys(Jr.plugins.items);for(let o=0;o<r.length;o++)n.push(Jr.getPlugin(r[o]));const i=e.plugins||[];for(let o=0;o<i.length;o++){const s=i[o];n.indexOf(s)===-1&&(n.push(s),t[s.id]=!0)}return{plugins:n,localIds:t}}function J1t(e,t){return!t&&e===!1?null:e===!0?{}:e}function tyt(e,{plugins:t,localIds:n},r,i){const o=[],s=e.getContext();for(const a of t){const l=a.id,c=J1t(r[l],i);c!==null&&o.push({plugin:a,options:eyt(e.config,{plugin:a,local:n[l]},c,s)})}return o}function eyt(e,{plugin:t,local:n},r,i){const o=e.pluginScopeKeys(t),s=e.getOptionScopes(r,o);return n&&t.defaults&&s.push(t.defaults),e.createResolver(s,i,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function M_(e,t){const n=we.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function nyt(e,t){let n=e;return e==="_index_"?n=t:e==="_value_"&&(n=t==="x"?"y":"x"),n}function ryt(e,t){return e===t?"_index_":"_value_"}function iyt(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function s0(e,t){if(e==="x"||e==="y"||e==="r"||(e=t.axis||iyt(t.position)||e.length>1&&s0(e[0].toLowerCase(),t),e))return e;throw new Error(`Cannot determine type of '${name}' axis. Please provide 'axis' or 'position' option.`)}function oyt(e,t){const n=_a[e.type]||{scales:{}},r=t.scales||{},i=M_(e.type,t),o=Object.create(null);return Object.keys(r).forEach(s=>{const a=r[s];if(!pt(a))return console.error(`Invalid scale configuration for scale: ${s}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${s}`);const l=s0(s,a),c=ryt(l,i),u=n.scales||{};o[s]=ud(Object.create(null),[{axis:l},a,u[l],u[c]])}),e.data.datasets.forEach(s=>{const a=s.type||e.type,l=s.indexAxis||M_(a,t),c=(_a[a]||{}).scales||{};Object.keys(c).forEach(u=>{const d=nyt(u,l),h=s[d+"AxisID"]||d;o[h]=o[h]||Object.create(null),ud(o[h],[{axis:d},r[h],c[u]])})}),Object.keys(o).forEach(s=>{const a=o[s];ud(a,[we.scales[a.type],we.scale])}),o}function JN(e){const t=e.options||(e.options={});t.plugins=ut(t.plugins,{}),t.scales=oyt(e,t)}function tF(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function syt(e){return e=e||{},e.data=tF(e.data),JN(e),e}const aP=new Map,eF=new Set;function Sp(e,t){let n=aP.get(e);return n||(n=t(),aP.set(e,n),eF.add(n)),n}const iu=(e,t,n)=>{const r=hs(t,n);r!==void 0&&e.add(r)};class ayt{constructor(t){this._config=syt(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=tF(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),JN(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Sp(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return Sp(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return Sp(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,r=this.type;return Sp(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const r=this._scopeCache;let i=r.get(t);return(!i||n)&&(i=new Map,r.set(t,i)),i}getOptionScopes(t,n,r){const{options:i,type:o}=this,s=this._cachedScopes(t,r),a=s.get(n);if(a)return a;const l=new Set;n.forEach(u=>{t&&(l.add(t),u.forEach(d=>iu(l,t,d))),u.forEach(d=>iu(l,i,d)),u.forEach(d=>iu(l,_a[o]||{},d)),u.forEach(d=>iu(l,we,d)),u.forEach(d=>iu(l,C_,d))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),eF.has(n)&&s.set(n,c),c}chartOptionScopes(){const{options:t,type:n}=this;return[t,_a[n]||{},we.datasets[n]||{},{type:n},we,C_]}resolveNamedOptions(t,n,r,i=[""]){const o={$shared:!0},{resolver:s,subPrefixes:a}=lP(this._resolverCache,t,i);let l=s;if(cyt(s,n)){o.$shared=!1,r=fs(r)?r():r;const c=this.createResolver(t,r,a);l=cc(s,r,c)}for(const c of n)o[c]=l[c];return o}createResolver(t,n,r=[""],i){const{resolver:o}=lP(this._resolverCache,t,r);return pt(n)?cc(o,n,void 0,i):o}}function lP(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const i=n.join();let o=r.get(i);return o||(o={resolver:pS(t,n),subPrefixes:n.filter(s=>!s.toLowerCase().includes("hover"))},r.set(i,o)),o}const lyt=e=>pt(e)&&Object.getOwnPropertyNames(e).reduce((t,n)=>t||fs(e[n]),!1);function cyt(e,t){const{isScriptable:n,isIndexable:r}=RN(e);for(const i of t){const o=n(i),s=r(i),a=(s||o)&&e[i];if(o&&(fs(a)||lyt(a))||s&&Zt(a))return!0}return!1}var uyt="4.2.0";const dyt=["top","bottom","left","right","chartArea"];function cP(e,t){return e==="top"||e==="bottom"||dyt.indexOf(e)===-1&&t==="x"}function uP(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function dP(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),Bt(n&&n.onComplete,[e],t)}function hyt(e){const t=e.chart,n=t.options.animation;Bt(n&&n.onProgress,[e],t)}function nF(e){return zN()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const a0={},rF=e=>{const t=nF(e);return Object.values(a0).filter(n=>n.canvas===t).pop()};function fyt(e,t,n){const r=Object.keys(e);for(const i of r){const o=+i;if(o>=t){const s=e[i];delete e[i],(n>0||o>t)&&(e[o+n]=s)}}}function pyt(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}function gyt(e){const{xScale:t,yScale:n}=e;if(t&&n)return{left:t.left,right:t.right,top:n.top,bottom:n.bottom}}class Qn{static register(...t){Jr.add(...t),hP()}static unregister(...t){Jr.remove(...t),hP()}constructor(t,n){const r=this.config=new ayt(n),i=nF(t),o=rF(i);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const s=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||R1t(i)),this.platform.updateConfig(r);const a=this.platform.acquireContext(i,s.aspectRatio),l=a&&a.canvas,c=l&&l.height,u=l&&l.width;if(this.id=y0t(),this.ctx=a,this.canvas=l,this.width=u,this.height=c,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new K1t,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=D0t(d=>this.update(d),s.resizeDelay||0),this._dataChanges=[],a0[this.id]=this,!a||!l){console.error("Failed to create chart: can't acquire context from the given item");return}Ai.listen(this,"complete",dP),Ai.listen(this,"progress",hyt),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:r,height:i,_aspectRatio:o}=this;return bt(t)?n&&o?o:i?r/i:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return Jr}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():N$(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return D$(this.canvas,this.ctx),this}stop(){return Ai.stop(this),this}resize(t,n){Ai.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const r=this.options,i=this.canvas,o=r.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(i,t,n,o),a=r.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,N$(this,a,!0)&&(this.notifyPlugins("resize",{size:s}),Bt(r.onResize,[this,s],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const t=this.options.scales||{};Tt(t,(n,r)=>{n.id=r})}buildOrUpdateScales(){const t=this.options,n=t.scales,r=this.scales,i=Object.keys(r).reduce((s,a)=>(s[a]=!1,s),{});let o=[];n&&(o=o.concat(Object.keys(n).map(s=>{const a=n[s],l=s0(s,a),c=l==="r",u=l==="x";return{options:a,dposition:c?"chartArea":u?"bottom":"left",dtype:c?"radialLinear":u?"category":"linear"}}))),Tt(o,s=>{const a=s.options,l=a.id,c=s0(l,a),u=ut(a.type,s.dtype);(a.position===void 0||cP(a.position,c)!==cP(s.dposition))&&(a.position=s.dposition),i[l]=!0;let d=null;if(l in r&&r[l].type===u)d=r[l];else{const h=Jr.getScale(u);d=new h({id:l,type:u,ctx:this.ctx,chart:this}),r[d.id]=d}d.init(a,t)}),Tt(i,(s,a)=>{s||delete r[a]}),Tt(r,s=>{ln.configure(this,s,s.options),ln.addBox(this,s)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,r=t.length;if(t.sort((i,o)=>i.index-o.index),r>n){for(let i=n;i<r;++i)this._destroyDatasetMeta(i);t.splice(n,r-n)}this._sortedMetasets=t.slice(0).sort(uP("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:n}}=this;t.length>n.length&&delete this._stacks,t.forEach((r,i)=>{n.filter(o=>o===r._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let r,i;for(this._removeUnreferencedMetasets(),r=0,i=n.length;r<i;r++){const o=n[r];let s=this.getDatasetMeta(r);const a=o.type||this.config.type;if(s.type&&s.type!==a&&(this._destroyDatasetMeta(r),s=this.getDatasetMeta(r)),s.type=a,s.indexAxis=o.indexAxis||M_(a,this.options),s.order=o.order||0,s.index=r,s.label=""+o.label,s.visible=this.isDatasetVisible(r),s.controller)s.controller.updateIndex(r),s.controller.linkScales();else{const l=Jr.getController(a),{datasetElementType:c,dataElementType:u}=we.datasets[a];Object.assign(l,{dataElementType:Jr.getElement(u),datasetElementType:c&&Jr.getElement(c)}),s.controller=new l(this,r),t.push(s.controller)}}return this._updateMetasets(),t}_resetElements(){Tt(this.data.datasets,(t,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let c=0,u=this.data.datasets.length;c<u;c++){const{controller:d}=this.getDatasetMeta(c),h=!i&&o.indexOf(d)===-1;d.buildOrUpdateElements(h),s=Math.max(+d.getMaxOverflow(),s)}s=this._minPadding=r.layout.autoPadding?s:0,this._updateLayout(s),i||Tt(o,c=>{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(uP("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){Tt(this.scales,t=>{ln.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!E$(n,r)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:i,count:o}of n){const s=r==="_removeElements"?-o:o;fyt(t,i,s)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=o=>new Set(t.filter(s=>s[0]===o).map((s,a)=>a+","+s.splice(1).join(","))),i=r(0);for(let o=1;o<n;o++)if(!E$(i,r(o)))return;return Array.from(i).map(o=>o.split(",")).map(o=>({method:o[1],start:+o[2],count:+o[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;ln.update(this,this.width,this.height,t);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],Tt(this.boxes,i=>{r&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,o)=>{i._idx=o}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n<r;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,r=this.data.datasets.length;n<r;++n)this._updateDataset(n,fs(t)?t({datasetIndex:n}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,n){const r=this.getDatasetMeta(t),i={meta:r,index:t,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",i)!==!1&&(r.controller._update(n),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(Ai.has(this)?this.attached&&!Ai.running(this)&&Ai.start(this):(this.draw(),dP({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:r,height:i}=this._resizeBeforeDraw;this._resize(r,i),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(this.chartArea);for(this._drawDatasets();t<n.length;++t)n[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const n=this._sortedMetasets,r=[];let i,o;for(i=0,o=n.length;i<o;++i){const s=n[i];(!t||s.visible)&&r.push(s)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let n=t.length-1;n>=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,r=t._clip,i=!r.disabled,o=gyt(t)||this.chartArea,s={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",s)!==!1&&(i&&Bv(n,{left:r.left===!1?0:o.left-r.left,right:r.right===!1?this.width:o.right+r.right,top:r.top===!1?0:o.top-r.top,bottom:r.bottom===!1?this.height:o.bottom+r.bottom}),t.controller.draw(),i&&Vv(n),s.cancelable=!1,this.notifyPlugins("afterDatasetDraw",s))}isPointInArea(t){return vh(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,r,i){const o=h1t.modes[n];return typeof o=="function"?o(this,t,r,i):[]}getDatasetMeta(t){const n=this.data.datasets[t],r=this._metasets;let i=r.filter(o=>o&&o._dataset===n).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},r.push(i)),i}getContext(){return this.$context||(this.$context=ws(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const r=this.getDatasetMeta(t);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(t,n){const r=this.getDatasetMeta(t);r.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,r){const i=r?"show":"hide",o=this.getDatasetMeta(t),s=o.controller._resolveAnimations(void 0,i);_r(n)?(o.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),s.update(o,{visible:r}),this.update(a=>a.datasetIndex===t?i:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),Ai.remove(this),t=0,n=this.data.datasets.length;t<n;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:n}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),D$(t,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete a0[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,n=this.platform,r=(o,s)=>{n.addEventListener(this,o,s),t[o]=s},i=(o,s,a)=>{o.offsetX=s,o.offsetY=a,this._eventHandler(o)};Tt(this.options.events,o=>r(o,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,r=(l,c)=>{n.addEventListener(this,l,c),t[l]=c},i=(l,c)=>{t[l]&&(n.removeEventListener(this,l,c),delete t[l])},o=(l,c)=>{this.canvas&&this.resize(l,c)};let s;const a=()=>{i("attach",a),this.attached=!0,this.resize(),r("resize",o),r("detach",s)};s=()=>{this.attached=!1,i("resize",o),this._stop(),this._resize(0,0),r("attach",a)},n.isAttached(this.canvas)?a():s()}unbindEvents(){Tt(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},Tt(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,r){const i=r?"set":"remove";let o,s,a,l;for(n==="dataset"&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+i+"DatasetHoverStyle"]()),a=0,l=t.length;a<l;++a){s=t[a];const c=s&&this.getDatasetMeta(s.datasetIndex).controller;c&&c[i+"HoverStyle"](s.element,s.datasetIndex,s.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const n=this._active||[],r=t.map(({datasetIndex:i,index:o})=>{const s=this.getDatasetMeta(i);if(!s)throw new Error("No dataset found at index "+i);return{datasetIndex:i,element:s.data[o],index:o}});!t0(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(t,n,r){return this._plugins.notify(this,t,n,r)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,r){const i=this.options.hover,o=(l,c)=>l.filter(u=>!c.some(d=>u.datasetIndex===d.datasetIndex&&u.index===d.index)),s=o(n,t),a=r?t:o(t,n);s.length&&this.updateHoverStyle(s,i.mode,!1),a.length&&i.mode&&this.updateHoverStyle(a,i.mode,!0)}_eventHandler(t,n){const r={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},i=s=>(s.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",r,i)===!1)return;const o=this._handleEvent(t,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,i),(o||r.changed)&&this.render(),this}_handleEvent(t,n,r){const{_active:i=[],options:o}=this,s=n,a=this._getActiveElements(t,i,r,s),l=S0t(t),c=pyt(t,this._lastEvent,r,l);r&&(this._lastEvent=null,Bt(o.onHover,[t,a,this],this),l&&Bt(o.onClick,[t,a,this],this));const u=!t0(a,i);return(u||n)&&(this._active=a,this._updateHoverStyles(a,i,n)),this._lastEvent=c,u}_getActiveElements(t,n,r,i){if(t.type==="mouseout")return[];if(!r)return n;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,i)}}et(Qn,"defaults",we),et(Qn,"instances",a0),et(Qn,"overrides",_a),et(Qn,"registry",Jr),et(Qn,"version",uyt),et(Qn,"getChart",rF);function hP(){return Tt(Qn.instances,e=>e._plugins.invalidate())}function myt(e,t,n){const{startAngle:r,pixelMargin:i,x:o,y:s,outerRadius:a,innerRadius:l}=t;let c=i/a;e.beginPath(),e.arc(o,s,a,r-c,n+c),l>i?(c=i/l,e.arc(o,s,l,n+c,r-c,!0)):e.arc(o,s,i,n+me,r-me),e.closePath(),e.clip()}function vyt(e){return fS(e,["outerStart","outerEnd","innerStart","innerEnd"])}function yyt(e,t,n,r){const i=vyt(e.options.borderRadius),o=(n-t)/2,s=Math.min(o,r*t/2),a=l=>{const c=(n-Math.min(o,l))*r/2;return Ve(l,0,Math.min(o,c))};return{outerStart:a(i.outerStart),outerEnd:a(i.outerEnd),innerStart:Ve(i.innerStart,0,s),innerEnd:Ve(i.innerEnd,0,s)}}function ja(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function l0(e,t,n,r,i,o){const{x:s,y:a,startAngle:l,pixelMargin:c,innerRadius:u}=t,d=Math.max(t.outerRadius+r+n-c,0),h=u>0?u+r+n+c:0;let f=0;const p=i-l;if(r){const D=u>0?u-r:0,Y=d>0?d-r:0,Q=(D+Y)/2,F=Q!==0?p*Q/(Q+r):p;f=(p-F)/2}const g=Math.max(.001,p*d-n/oe)/d,y=(p-g)/2,m=l+y+f,x=i-y-f,{outerStart:b,outerEnd:_,innerStart:w,innerEnd:A}=yyt(t,h,d,x-m),S=d-b,E=d-_,k=m+b/S,C=x-_/E,T=h+w,$=h+A,I=m+w/T,N=x-A/$;if(e.beginPath(),o){const D=(k+C)/2;if(e.arc(s,a,d,k,D),e.arc(s,a,d,D,C),_>0){const W=ja(E,C,s,a);e.arc(W.x,W.y,_,C,x+me)}const Y=ja($,x,s,a);if(e.lineTo(Y.x,Y.y),A>0){const W=ja($,N,s,a);e.arc(W.x,W.y,A,x+me,N+Math.PI)}const Q=(x-A/h+(m+w/h))/2;if(e.arc(s,a,h,x-A/h,Q,!0),e.arc(s,a,h,Q,m+w/h,!0),w>0){const W=ja(T,I,s,a);e.arc(W.x,W.y,w,I+Math.PI,m-me)}const F=ja(S,m,s,a);if(e.lineTo(F.x,F.y),b>0){const W=ja(S,k,s,a);e.arc(W.x,W.y,b,m-me,k)}}else{e.moveTo(s,a);const D=Math.cos(k)*d+s,Y=Math.sin(k)*d+a;e.lineTo(D,Y);const Q=Math.cos(C)*d+s,F=Math.sin(C)*d+a;e.lineTo(Q,F)}e.closePath()}function xyt(e,t,n,r,i){const{fullCircles:o,startAngle:s,circumference:a}=t;let l=t.endAngle;if(o){l0(e,t,n,r,l,i);for(let c=0;c<o;++c)e.fill();isNaN(a)||(l=s+(a%ee||ee))}return l0(e,t,n,r,l,i),e.fill(),l}function byt(e,t,n,r,i){const{fullCircles:o,startAngle:s,circumference:a,options:l}=t,{borderWidth:c,borderJoinStyle:u}=l,d=l.borderAlign==="inner";if(!c)return;d?(e.lineWidth=c*2,e.lineJoin=u||"round"):(e.lineWidth=c,e.lineJoin=u||"bevel");let h=t.endAngle;if(o){l0(e,t,n,r,h,i);for(let f=0;f<o;++f)e.stroke();isNaN(a)||(h=s+(a%ee||ee))}d&&myt(e,t,h),o||(l0(e,t,n,r,h,i),e.stroke())}class md extends Ur{constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,n,r){const i=this.getProps(["x","y"],r),{angle:o,distance:s}=wN(i,{x:t,y:n}),{startAngle:a,endAngle:l,innerRadius:c,outerRadius:u,circumference:d}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],r),h=this.options.spacing/2,f=ut(d,l-a)>=ee||mh(o,a,l),p=Ni(s,c+h,u+h);return f&&p}getCenterPoint(t){const{x:n,y:r,startAngle:i,endAngle:o,innerRadius:s,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),{offset:l,spacing:c}=this.options,u=(i+o)/2,d=(s+a+c+l)/2;return{x:n+Math.cos(u)*d,y:r+Math.sin(u)*d}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:n,circumference:r}=this,i=(n.offset||0)/4,o=(n.spacing||0)/2,s=n.circular;if(this.pixelMargin=n.borderAlign==="inner"?.33:0,this.fullCircles=r>ee?Math.floor(r/ee):0,r===0||this.innerRadius<0||this.outerRadius<0)return;t.save();const a=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(a)*i,Math.sin(a)*i);const l=1-Math.sin(Math.min(oe,r||0)),c=i*l;t.fillStyle=n.backgroundColor,t.strokeStyle=n.borderColor,xyt(t,this,c,o,s),byt(t,this,c,o,s),t.restore()}}et(md,"id","arc"),et(md,"defaults",{borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),et(md,"defaultRoutes",{backgroundColor:"backgroundColor"});function iF(e,t,n=t){e.lineCap=ut(n.borderCapStyle,t.borderCapStyle),e.setLineDash(ut(n.borderDash,t.borderDash)),e.lineDashOffset=ut(n.borderDashOffset,t.borderDashOffset),e.lineJoin=ut(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=ut(n.borderWidth,t.borderWidth),e.strokeStyle=ut(n.borderColor,t.borderColor)}function _yt(e,t,n){e.lineTo(n.x,n.y)}function wyt(e){return e.stepped?Y0t:e.tension||e.cubicInterpolationMode==="monotone"?G0t:_yt}function oF(e,t,n={}){const r=e.length,{start:i=0,end:o=r-1}=n,{start:s,end:a}=t,l=Math.max(i,s),c=Math.min(o,a),u=i<s&&o<s||i>a&&o>a;return{count:r,start:l,loop:t.loop,ilen:c<l&&!u?r+c-l:c-l}}function Ayt(e,t,n,r){const{points:i,options:o}=t,{count:s,start:a,loop:l,ilen:c}=oF(i,n,r),u=wyt(o);let{move:d=!0,reverse:h}=r||{},f,p,g;for(f=0;f<=c;++f)p=i[(a+(h?c-f:f))%s],!p.skip&&(d?(e.moveTo(p.x,p.y),d=!1):u(e,g,p,h,o.stepped),g=p);return l&&(p=i[(a+(h?c:0))%s],u(e,g,p,h,o.stepped)),!!l}function Syt(e,t,n,r){const i=t.points,{count:o,start:s,ilen:a}=oF(i,n,r),{move:l=!0,reverse:c}=r||{};let u=0,d=0,h,f,p,g,y,m;const x=_=>(s+(c?a-_:_))%o,b=()=>{g!==y&&(e.lineTo(u,y),e.lineTo(u,g),e.lineTo(u,m))};for(l&&(f=i[x(0)],e.moveTo(f.x,f.y)),h=0;h<=a;++h){if(f=i[x(h)],f.skip)continue;const _=f.x,w=f.y,A=_|0;A===p?(w<g?g=w:w>y&&(y=w),u=(d*u+_)/++d):(b(),e.lineTo(_,w),p=A,d=0,g=y=w),m=w}b()}function $_(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?Syt:Ayt}function Eyt(e){return e.stepped?Evt:e.tension||e.cubicInterpolationMode==="monotone"?Cvt:Us}function Cyt(e,t,n,r){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),iF(e,t.options),e.stroke(i)}function kyt(e,t,n,r){const{segments:i,options:o}=t,s=$_(t);for(const a of i)iF(e,o,a.style),e.beginPath(),s(e,t,a,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}const Tyt=typeof Path2D=="function";function Myt(e,t,n,r){Tyt&&!t.options.segment?Cyt(e,t,n,r):kyt(e,t,n,r)}class Bo extends Ur{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,n){const r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){const i=r.spanGaps?this._loop:this._fullLoop;vvt(this._points,r,t,i,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=Ovt(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,r=t.length;return r&&n[t[r-1].end]}interpolate(t,n){const r=this.options,i=t[n],o=this.points,s=UN(this,{property:n,start:i,end:i});if(!s.length)return;const a=[],l=Eyt(r);let c,u;for(c=0,u=s.length;c<u;++c){const{start:d,end:h}=s[c],f=o[d],p=o[h];if(f===p){a.push(f);continue}const g=Math.abs((i-f[n])/(p[n]-f[n])),y=l(f,p,g,r.stepped);y[n]=t[n],a.push(y)}return a.length===1?a[0]:a}pathSegment(t,n,r){return $_(this)(t,this,n,r)}path(t,n,r){const i=this.segments,o=$_(this);let s=this._loop;n=n||0,r=r||this.points.length-n;for(const a of i)s&=o(t,this,a,{start:n,end:n+r-1});return!!s}draw(t,n,r,i){const o=this.options||{};(this.points||[]).length&&o.borderWidth&&(t.save(),Myt(t,this,r,i),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}et(Bo,"id","line"),et(Bo,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),et(Bo,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),et(Bo,"descriptors",{_scriptable:!0,_indexable:e=>e!=="borderDash"&&e!=="fill"});function fP(e,t,n,r){const i=e.options,{[n]:o}=e.getProps([n],r);return Math.abs(t-o)<i.radius+i.hitRadius}class Dg extends Ur{constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,n,r){const i=this.options,{x:o,y:s}=this.getProps(["x","y"],r);return Math.pow(t-o,2)+Math.pow(n-s,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(t,n){return fP(this,t,"x",n)}inYRange(t,n){return fP(this,t,"y",n)}getCenterPoint(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}size(t){t=t||this.options||{};let n=t.radius||0;n=Math.max(n,n&&t.hoverRadius||0);const r=n&&t.borderWidth||0;return(n+r)*2}draw(t,n){const r=this.options;this.skip||r.radius<.1||!vh(this,n,this.size(r)/2)||(t.strokeStyle=r.borderColor,t.lineWidth=r.borderWidth,t.fillStyle=r.backgroundColor,k_(t,r,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}et(Dg,"id","point"),et(Dg,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),et(Dg,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function sF(e,t){const{x:n,y:r,base:i,width:o,height:s}=e.getProps(["x","y","base","width","height"],t);let a,l,c,u,d;return e.horizontal?(d=s/2,a=Math.min(n,i),l=Math.max(n,i),c=r-d,u=r+d):(d=o/2,a=n-d,l=n+d,c=Math.min(r,i),u=Math.max(r,i)),{left:a,top:c,right:l,bottom:u}}function Vo(e,t,n,r){return e?0:Ve(t,n,r)}function $yt(e,t,n){const r=e.options.borderWidth,i=e.borderSkipped,o=ON(r);return{t:Vo(i.top,o.top,0,n),r:Vo(i.right,o.right,0,t),b:Vo(i.bottom,o.bottom,0,n),l:Vo(i.left,o.left,0,t)}}function Pyt(e,t,n){const{enableBorderRadius:r}=e.getProps(["enableBorderRadius"]),i=e.options.borderRadius,o=ua(i),s=Math.min(t,n),a=e.borderSkipped,l=r||pt(i);return{topLeft:Vo(!l||a.top||a.left,o.topLeft,0,s),topRight:Vo(!l||a.top||a.right,o.topRight,0,s),bottomLeft:Vo(!l||a.bottom||a.left,o.bottomLeft,0,s),bottomRight:Vo(!l||a.bottom||a.right,o.bottomRight,0,s)}}function Oyt(e){const t=sF(e),n=t.right-t.left,r=t.bottom-t.top,i=$yt(e,n/2,r/2),o=Pyt(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r,radius:o},inner:{x:t.left+i.l,y:t.top+i.t,w:n-i.l-i.r,h:r-i.t-i.b,radius:{topLeft:Math.max(0,o.topLeft-Math.max(i.t,i.l)),topRight:Math.max(0,o.topRight-Math.max(i.t,i.r)),bottomLeft:Math.max(0,o.bottomLeft-Math.max(i.b,i.l)),bottomRight:Math.max(0,o.bottomRight-Math.max(i.b,i.r))}}}}function zy(e,t,n,r){const i=t===null,o=n===null,s=e&&!(i&&o)&&sF(e,r);return s&&(i||Ni(t,s.left,s.right))&&(o||Ni(n,s.top,s.bottom))}function Ryt(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function Dyt(e,t){e.rect(t.x,t.y,t.w,t.h)}function By(e,t,n={}){const r=e.x!==n.x?-t:0,i=e.y!==n.y?-t:0,o=(e.x+e.w!==n.x+n.w?t:0)-r,s=(e.y+e.h!==n.y+n.h?t:0)-i;return{x:e.x+r,y:e.y+i,w:e.w+o,h:e.h+s,radius:e.radius}}class Rl extends Ur{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:n,options:{borderColor:r,backgroundColor:i}}=this,{inner:o,outer:s}=Oyt(this),a=Ryt(s.radius)?yh:Dyt;t.save(),(s.w!==o.w||s.h!==o.h)&&(t.beginPath(),a(t,By(s,n,o)),t.clip(),a(t,By(o,-n,s)),t.fillStyle=r,t.fill("evenodd")),t.beginPath(),a(t,By(o,n)),t.fillStyle=i,t.fill(),t.restore()}inRange(t,n,r){return zy(this,t,n,r)}inXRange(t,n){return zy(this,t,null,n)}inYRange(t,n){return zy(this,null,t,n)}getCenterPoint(t){const{x:n,y:r,base:i,horizontal:o}=this.getProps(["x","y","base","horizontal"],t);return{x:o?(n+i)/2:n,y:o?r:(r+i)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}et(Rl,"id","bar"),et(Rl,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),et(Rl,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});var Lyt=Object.freeze({__proto__:null,ArcElement:md,LineElement:Bo,PointElement:Dg,BarElement:Rl});const P_=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],pP=P_.map(e=>e.replace("rgb(","rgba(").replace(")",", 0.5)"));function aF(e){return P_[e%P_.length]}function lF(e){return pP[e%pP.length]}function Iyt(e,t){return e.borderColor=aF(t),e.backgroundColor=lF(t),++t}function Nyt(e,t){return e.backgroundColor=e.data.map(()=>aF(t++)),t}function Fyt(e,t){return e.backgroundColor=e.data.map(()=>lF(t++)),t}function zyt(e){let t=0;return(n,r)=>{const i=e.getDatasetMeta(r).controller;i instanceof zo?t=Nyt(n,t):i instanceof gd?t=Fyt(n,t):i&&(t=Iyt(n,t))}}function gP(e){let t;for(t in e)if(e[t].borderColor||e[t].backgroundColor)return!0;return!1}function Byt(e){return e&&(e.borderColor||e.backgroundColor)}var Vyt={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(e,t,n){if(!n.enabled)return;const{data:{datasets:r},options:i}=e.config,{elements:o}=i;if(!n.forceOverride&&(gP(r)||Byt(i)||o&&gP(o)))return;const s=zyt(e);r.forEach(s)}};function jyt(e,t,n,r,i){const o=i.samples||r;if(o>=n)return e.slice(t,t+n);const s=[],a=(n-2)/(o-2);let l=0;const c=t+n-1;let u=t,d,h,f,p,g;for(s[l++]=e[u],d=0;d<o-2;d++){let y=0,m=0,x;const b=Math.floor((d+1)*a)+1+t,_=Math.min(Math.floor((d+2)*a)+1,n)+t,w=_-b;for(x=b;x<_;x++)y+=e[x].x,m+=e[x].y;y/=w,m/=w;const A=Math.floor(d*a)+1+t,S=Math.min(Math.floor((d+1)*a)+1,n)+t,{x:E,y:k}=e[u];for(f=p=-1,x=A;x<S;x++)p=.5*Math.abs((E-y)*(e[x].y-k)-(E-e[x].x)*(m-k)),p>f&&(f=p,h=e[x],g=x);s[l++]=h,u=g}return s[l++]=e[c],s}function Hyt(e,t,n,r){let i=0,o=0,s,a,l,c,u,d,h,f,p,g;const y=[],m=t+n-1,x=e[t].x,b=e[m].x-x;for(s=t;s<t+n;++s){a=e[s],l=(a.x-x)/b*r,c=a.y;const _=l|0;if(_===u)c<p?(p=c,d=s):c>g&&(g=c,h=s),i=(o*i+a.x)/++o;else{const w=s-1;if(!bt(d)&&!bt(h)){const A=Math.min(d,h),S=Math.max(d,h);A!==f&&A!==w&&y.push({...e[A],x:i}),S!==f&&S!==w&&y.push({...e[S],x:i})}s>0&&w!==f&&y.push(e[w]),y.push(a),u=_,o=0,p=g=c,d=h=f=s}}return y}function cF(e){if(e._decimated){const t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{value:t})}}function mP(e){e.data.datasets.forEach(t=>{cF(t)})}function Uyt(e,t){const n=t.length;let r=0,i;const{iScale:o}=e,{min:s,max:a,minDefined:l,maxDefined:c}=o.getUserBounds();return l&&(r=Ve(Fi(t,o.axis,s).lo,0,n-1)),c?i=Ve(Fi(t,o.axis,a).hi+1,r,n)-r:i=n-r,{start:r,count:i}}var Wyt={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,t,n)=>{if(!n.enabled){mP(e);return}const r=e.width;e.data.datasets.forEach((i,o)=>{const{_data:s,indexAxis:a}=i,l=e.getDatasetMeta(o),c=s||i.data;if(vu([a,e.options.indexAxis])==="y"||!l.controller.supportsDecimation)return;const u=e.scales[l.xAxisID];if(u.type!=="linear"&&u.type!=="time"||e.options.parsing)return;let{start:d,count:h}=Uyt(l,c);const f=n.threshold||4*r;if(h<=f){cF(i);return}bt(s)&&(i._data=c,delete i.data,Object.defineProperty(i,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(g){this._data=g}}));let p;switch(n.algorithm){case"lttb":p=jyt(c,d,h,r,n);break;case"min-max":p=Hyt(c,d,h,r);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}i._decimated=p})},destroy(e){mP(e)}};function Yyt(e,t,n){const r=e.segments,i=e.points,o=t.points,s=[];for(const a of r){let{start:l,end:c}=a;c=xS(l,c,i);const u=O_(n,i[l],i[c],a.loop);if(!t.segments){s.push({source:a,target:u,start:i[l],end:i[c]});continue}const d=UN(t,u);for(const h of d){const f=O_(n,o[h.start],o[h.end],h.loop),p=HN(a,i,f);for(const g of p)s.push({source:g,target:h,start:{[n]:vP(u,f,"start",Math.max)},end:{[n]:vP(u,f,"end",Math.min)}})}}return s}function O_(e,t,n,r){if(r)return;let i=t[e],o=n[e];return e==="angle"&&(i=qn(i),o=qn(o)),{property:e,start:i,end:o}}function Gyt(e,t){const{x:n=null,y:r=null}=e||{},i=t.points,o=[];return t.segments.forEach(({start:s,end:a})=>{a=xS(s,a,i);const l=i[s],c=i[a];r!==null?(o.push({x:l.x,y:r}),o.push({x:c.x,y:r})):n!==null&&(o.push({x:n,y:l.y}),o.push({x:n,y:c.y}))}),o}function xS(e,t,n){for(;t>e;t--){const r=n[t];if(!isNaN(r.x)&&!isNaN(r.y))break}return t}function vP(e,t,n,r){return e&&t?r(e[n],t[n]):e?e[n]:t?t[n]:0}function uF(e,t){let n=[],r=!1;return Zt(e)?(r=!0,n=e):n=Gyt(e,t),n.length?new Bo({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function yP(e){return e&&e.fill!==!1}function qyt(e,t,n){let r=e[t].fill;const i=[t];let o;if(!n)return r;for(;r!==!1&&i.indexOf(r)===-1;){if(!ge(r))return r;if(o=e[r],!o)return!1;if(o.visible)return r;i.push(r),r=o.fill}return!1}function Xyt(e,t,n){const r=Jyt(e);if(pt(r))return isNaN(r.value)?!1:r;let i=parseFloat(r);return ge(i)&&Math.floor(i)===i?Qyt(r[0],t,i,n):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function Qyt(e,t,n,r){return(e==="-"||e==="+")&&(n=t+n),n===t||n<0||n>=r?!1:n}function Kyt(e,t){let n=null;return e==="start"?n=t.bottom:e==="end"?n=t.top:pt(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}function Zyt(e,t,n){let r;return e==="start"?r=n:e==="end"?r=t.options.reverse?t.min:t.max:pt(e)?r=e.value:r=t.getBaseValue(),r}function Jyt(e){const t=e.options,n=t.fill;let r=ut(n&&n.target,n);return r===void 0&&(r=!!t.backgroundColor),r===!1||r===null?!1:r===!0?"origin":r}function txt(e){const{scale:t,index:n,line:r}=e,i=[],o=r.segments,s=r.points,a=ext(t,n);a.push(uF({x:null,y:t.bottom},r));for(let l=0;l<o.length;l++){const c=o[l];for(let u=c.start;u<=c.end;u++)nxt(i,s[u],a)}return new Bo({points:i,options:{}})}function ext(e,t){const n=[],r=e.getMatchingVisibleMetas("line");for(let i=0;i<r.length;i++){const o=r[i];if(o.index===t)break;o.hidden||n.unshift(o.dataset)}return n}function nxt(e,t,n){const r=[];for(let i=0;i<n.length;i++){const o=n[i],{first:s,last:a,point:l}=rxt(o,t,"x");if(!(!l||s&&a)){if(s)r.unshift(l);else if(e.push(l),!a)break}}e.push(...r)}function rxt(e,t,n){const r=e.interpolate(t,n);if(!r)return{};const i=r[n],o=e.segments,s=e.points;let a=!1,l=!1;for(let c=0;c<o.length;c++){const u=o[c],d=s[u.start][n],h=s[u.end][n];if(Ni(i,d,h)){a=i===d,l=i===h;break}}return{first:a,last:l,point:r}}class dF{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,n,r){const{x:i,y:o,radius:s}=this;return n=n||{start:0,end:ee},t.arc(i,o,s,n.end,n.start,!0),!r.bounds}interpolate(t){const{x:n,y:r,radius:i}=this,o=t.angle;return{x:n+Math.cos(o)*i,y:r+Math.sin(o)*i,angle:o}}}function ixt(e){const{chart:t,fill:n,line:r}=e;if(ge(n))return oxt(t,n);if(n==="stack")return txt(e);if(n==="shape")return!0;const i=sxt(e);return i instanceof dF?i:uF(i,r)}function oxt(e,t){const n=e.getDatasetMeta(t);return n&&e.isDatasetVisible(t)?n.dataset:null}function sxt(e){return(e.scale||{}).getPointPositionForValue?lxt(e):axt(e)}function axt(e){const{scale:t={},fill:n}=e,r=Kyt(n,t);if(ge(r)){const i=t.isHorizontal();return{x:i?r:null,y:i?null:r}}return null}function lxt(e){const{scale:t,fill:n}=e,r=t.options,i=t.getLabels().length,o=r.reverse?t.max:t.min,s=Zyt(n,t,o),a=[];if(r.grid.circular){const l=t.getPointPositionForValue(0,o);return new dF({x:l.x,y:l.y,radius:t.getDistanceFromCenterForValue(s)})}for(let l=0;l<i;++l)a.push(t.getPointPositionForValue(l,s));return a}function Vy(e,t,n){const r=ixt(t),{line:i,scale:o,axis:s}=t,a=i.options,l=a.fill,c=a.backgroundColor,{above:u=c,below:d=c}=l||{};r&&i.points.length&&(Bv(e,n),cxt(e,{line:i,target:r,above:u,below:d,area:n,scale:o,axis:s}),Vv(e))}function cxt(e,t){const{line:n,target:r,above:i,below:o,area:s,scale:a}=t,l=n._loop?"angle":t.axis;e.save(),l==="x"&&o!==i&&(xP(e,r,s.top),bP(e,{line:n,target:r,color:i,scale:a,property:l}),e.restore(),e.save(),xP(e,r,s.bottom)),bP(e,{line:n,target:r,color:o,scale:a,property:l}),e.restore()}function xP(e,t,n){const{segments:r,points:i}=t;let o=!0,s=!1;e.beginPath();for(const a of r){const{start:l,end:c}=a,u=i[l],d=i[xS(l,c,i)];o?(e.moveTo(u.x,u.y),o=!1):(e.lineTo(u.x,n),e.lineTo(u.x,u.y)),s=!!t.pathSegment(e,a,{move:s}),s?e.closePath():e.lineTo(d.x,n)}e.lineTo(t.first().x,n),e.closePath(),e.clip()}function bP(e,t){const{line:n,target:r,property:i,color:o,scale:s}=t,a=Yyt(n,r,i);for(const{source:l,target:c,start:u,end:d}of a){const{style:{backgroundColor:h=o}={}}=l,f=r!==!0;e.save(),e.fillStyle=h,uxt(e,s,f&&O_(i,u,d)),e.beginPath();const p=!!n.pathSegment(e,l);let g;if(f){p?e.closePath():_P(e,r,d,i);const y=!!r.pathSegment(e,c,{move:p,reverse:!0});g=p&&y,g||_P(e,r,u,i)}e.closePath(),e.fill(g?"evenodd":"nonzero"),e.restore()}}function uxt(e,t,n){const{top:r,bottom:i}=t.chart.chartArea,{property:o,start:s,end:a}=n||{};o==="x"&&(e.beginPath(),e.rect(s,r,a-s,i-r),e.clip())}function _P(e,t,n,r){const i=t.interpolate(n,r);i&&e.lineTo(i.x,i.y)}var dxt={id:"filler",afterDatasetsUpdate(e,t,n){const r=(e.data.datasets||[]).length,i=[];let o,s,a,l;for(s=0;s<r;++s)o=e.getDatasetMeta(s),a=o.dataset,l=null,a&&a.options&&a instanceof Bo&&(l={visible:e.isDatasetVisible(s),index:s,fill:Xyt(a,s,r),chart:e,axis:o.controller.options.indexAxis,scale:o.vScale,line:a}),o.$filler=l,i.push(l);for(s=0;s<r;++s)l=i[s],!(!l||l.fill===!1)&&(l.fill=qyt(i,s,n.propagate))},beforeDraw(e,t,n){const r=n.drawTime==="beforeDraw",i=e.getSortedVisibleDatasetMetas(),o=e.chartArea;for(let s=i.length-1;s>=0;--s){const a=i[s].$filler;!a||(a.line.updateControlPoints(o,a.axis),r&&a.fill&&Vy(e.ctx,a,o))}},beforeDatasetsDraw(e,t,n){if(n.drawTime!=="beforeDatasetsDraw")return;const r=e.getSortedVisibleDatasetMetas();for(let i=r.length-1;i>=0;--i){const o=r[i].$filler;yP(o)&&Vy(e.ctx,o,e.chartArea)}},beforeDatasetDraw(e,t,n){const r=t.meta.$filler;!yP(r)||n.drawTime!=="beforeDatasetDraw"||Vy(e.ctx,r,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const wP=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}},hxt=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class AP extends Ur{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,r){this.maxWidth=t,this.maxHeight=n,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=Bt(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(r=>t.filter(r,this.chart.data))),t.sort&&(n=n.sort((r,i)=>t.sort(r,i,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const r=t.labels,i=Oe(r.font),o=i.size,s=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=wP(r,o);let c,u;n.font=i.string,this.isHorizontal()?(c=this.maxWidth,u=this._fitRows(s,o,a,l)+10):(u=this.maxHeight,c=this._fitCols(s,i,a,l)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(u,t.maxHeight||this.maxHeight)}_fitRows(t,n,r,i){const{ctx:o,maxWidth:s,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],u=i+a;let d=t;o.textAlign="left",o.textBaseline="middle";let h=-1,f=-u;return this.legendItems.forEach((p,g)=>{const y=r+n/2+o.measureText(p.text).width;(g===0||c[c.length-1]+y+2*a>s)&&(d+=u,c[c.length-(g>0?0:1)]=0,f+=u,h++),l[g]={left:0,top:f,row:h,width:y,height:i},c[c.length-1]+=y+a}),d}_fitCols(t,n,r,i){const{ctx:o,maxHeight:s,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],u=s-t;let d=a,h=0,f=0,p=0,g=0;return this.legendItems.forEach((y,m)=>{const{itemWidth:x,itemHeight:b}=fxt(r,n,o,y,i);m>0&&f+b+2*a>u&&(d+=h+a,c.push({width:h,height:f}),p+=h+a,g++,h=f=0),l[m]={left:p,top:f,col:g,width:x,height:b},h=Math.max(h,x),f+=b+a}),d+=h,c.push({width:h,height:f}),d}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:i},rtl:o}}=this,s=Ol(o,this.left,this.width);if(this.isHorizontal()){let a=0,l=en(r,this.left+i,this.right-this.lineWidths[a]);for(const c of n)a!==c.row&&(a=c.row,l=en(r,this.left+i,this.right-this.lineWidths[a])),c.top+=this.top+t+i,c.left=s.leftForLtr(s.x(l),c.width),l+=c.width+i}else{let a=0,l=en(r,this.top+t+i,this.bottom-this.columnSizes[a].height);for(const c of n)c.col!==a&&(a=c.col,l=en(r,this.top+t+i,this.bottom-this.columnSizes[a].height)),c.top=l,c.left+=this.left+i,c.left=s.leftForLtr(s.x(c.left),c.width),l+=c.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;Bv(t,this),this._draw(),Vv(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:r,ctx:i}=this,{align:o,labels:s}=t,a=we.color,l=Ol(t.rtl,this.left,this.width),c=Oe(s.font),{padding:u}=s,d=c.size,h=d/2;let f;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=c.string;const{boxWidth:p,boxHeight:g,itemHeight:y}=wP(s,d),m=function(A,S,E){if(isNaN(p)||p<=0||isNaN(g)||g<0)return;i.save();const k=ut(E.lineWidth,1);if(i.fillStyle=ut(E.fillStyle,a),i.lineCap=ut(E.lineCap,"butt"),i.lineDashOffset=ut(E.lineDashOffset,0),i.lineJoin=ut(E.lineJoin,"miter"),i.lineWidth=k,i.strokeStyle=ut(E.strokeStyle,a),i.setLineDash(ut(E.lineDash,[])),s.usePointStyle){const C={radius:g*Math.SQRT2/2,pointStyle:E.pointStyle,rotation:E.rotation,borderWidth:k},T=l.xPlus(A,p/2),$=S+h;PN(i,C,T,$,s.pointStyleWidth&&p)}else{const C=S+Math.max((d-g)/2,0),T=l.leftForLtr(A,p),$=ua(E.borderRadius);i.beginPath(),Object.values($).some(I=>I!==0)?yh(i,{x:T,y:C,w:p,h:g,radius:$}):i.rect(T,C,p,g),i.fill(),k!==0&&i.stroke()}i.restore()},x=function(A,S,E){wa(i,E.text,A,S+y/2,c,{strikethrough:E.hidden,textAlign:l.textAlign(E.textAlign)})},b=this.isHorizontal(),_=this._computeTitleHeight();b?f={x:en(o,this.left+u,this.right-r[0]),y:this.top+u+_,line:0}:f={x:this.left+u,y:en(o,this.top+_+u,this.bottom-n[0].height),line:0},BN(this.ctx,t.textDirection);const w=y+u;this.legendItems.forEach((A,S)=>{i.strokeStyle=A.fontColor,i.fillStyle=A.fontColor;const E=i.measureText(A.text).width,k=l.textAlign(A.textAlign||(A.textAlign=s.textAlign)),C=p+h+E;let T=f.x,$=f.y;l.setWidth(this.width),b?S>0&&T+C+u>this.right&&($=f.y+=w,f.line++,T=f.x=en(o,this.left+u,this.right-r[f.line])):S>0&&$+w>this.bottom&&(T=f.x=T+n[f.line].width+u,f.line++,$=f.y=en(o,this.top+_+u,this.bottom-n[f.line].height));const I=l.x(T);if(m(I,$,A),T=L0t(k,T+p+h,b?T+C:this.right,t.rtl),x(l.x(T),$,A),b)f.x+=C+u;else if(typeof A.text!="string"){const N=c.lineHeight;f.y+=hF(A,N)}else f.y+=w}),VN(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,r=Oe(n.font),i=dn(n.padding);if(!n.display)return;const o=Ol(t.rtl,this.left,this.width),s=this.ctx,a=n.position,l=r.size/2,c=i.top+l;let u,d=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),u=this.top+c,d=en(t.align,d,this.right-h);else{const p=this.columnSizes.reduce((g,y)=>Math.max(g,y.height),0);u=c+en(t.align,this.top,this.bottom-p-t.labels.padding-this._computeTitleHeight())}const f=en(a,d,d+h);s.textAlign=o.textAlign(hS(a)),s.textBaseline="middle",s.strokeStyle=n.color,s.fillStyle=n.color,s.font=r.string,wa(s,n.text,f,u,r)}_computeTitleHeight(){const t=this.options.title,n=Oe(t.font),r=dn(t.padding);return t.display?n.lineHeight+r.height:0}_getLegendItemAt(t,n){let r,i,o;if(Ni(t,this.left,this.right)&&Ni(n,this.top,this.bottom)){for(o=this.legendHitBoxes,r=0;r<o.length;++r)if(i=o[r],Ni(t,i.left,i.left+i.width)&&Ni(n,i.top,i.top+i.height))return this.legendItems[r]}return null}handleEvent(t){const n=this.options;if(!mxt(t.type,n))return;const r=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const i=this._hoveredItem,o=hxt(i,r);i&&!o&&Bt(n.onLeave,[t,i,this],this),this._hoveredItem=r,r&&!o&&Bt(n.onHover,[t,r,this],this)}else r&&Bt(n.onClick,[t,r,this],this)}}function fxt(e,t,n,r,i){const o=pxt(r,e,t,n),s=gxt(i,r,t.lineHeight);return{itemWidth:o,itemHeight:s}}function pxt(e,t,n,r){let i=e.text;return i&&typeof i!="string"&&(i=i.reduce((o,s)=>o.length>s.length?o:s)),t+n.size/2+r.measureText(i).width}function gxt(e,t,n){let r=e;return typeof t.text!="string"&&(r=hF(t,n)),r}function hF(e,t){const n=e.text?e.text.length+.5:0;return t*n}function mxt(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var bS={id:"legend",_element:AP,start(e,t,n){const r=e.legend=new AP({ctx:e.ctx,options:n,chart:e});ln.configure(e,r,n),ln.addBox(e,r)},stop(e){ln.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;ln.configure(e,r,n),r.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const r=t.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),t.hidden=!0):(i.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:i,color:o,useBorderRadius:s,borderRadius:a}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(n?0:void 0),u=dn(c.borderWidth);return{text:t[l.index].label,fillStyle:c.backgroundColor,fontColor:o,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:c.borderColor,pointStyle:r||c.pointStyle,rotation:c.rotation,textAlign:i||c.textAlign,borderRadius:s&&(a||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class _S extends Ur{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const i=Zt(r.text)?r.text.length:1;this._padding=dn(r.padding);const o=i*Oe(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:r,bottom:i,right:o,options:s}=this,a=s.align;let l=0,c,u,d;return this.isHorizontal()?(u=en(a,r,o),d=n+t,c=o-r):(s.position==="left"?(u=r+t,d=en(a,i,n),l=oe*-.5):(u=o-t,d=en(a,n,i),l=oe*.5),c=i-n),{titleX:u,titleY:d,maxWidth:c,rotation:l}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const r=Oe(n.font),i=r.lineHeight/2+this._padding.top,{titleX:o,titleY:s,maxWidth:a,rotation:l}=this._drawArgs(i);wa(t,n.text,0,0,r,{color:n.color,maxWidth:a,rotation:l,textAlign:hS(n.align),textBaseline:"middle",translation:[o,s]})}}function vxt(e,t){const n=new _S({ctx:e.ctx,options:t,chart:e});ln.configure(e,n,t),ln.addBox(e,n),e.titleBlock=n}var fF={id:"title",_element:_S,start(e,t,n){vxt(e,n)},stop(e){const t=e.titleBlock;ln.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;ln.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Ep=new WeakMap;var yxt={id:"subtitle",start(e,t,n){const r=new _S({ctx:e.ctx,options:n,chart:e});ln.configure(e,r,n),ln.addBox(e,r),Ep.set(e,r)},stop(e){ln.removeBox(e,Ep.get(e)),Ep.delete(e)},beforeUpdate(e,t,n){const r=Ep.get(e);ln.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const vd={average(e){if(!e.length)return!1;let t,n,r=0,i=0,o=0;for(t=0,n=e.length;t<n;++t){const s=e[t].element;if(s&&s.hasValue()){const a=s.tooltipPosition();r+=a.x,i+=a.y,++o}}return{x:r/o,y:i/o}},nearest(e,t){if(!e.length)return!1;let n=t.x,r=t.y,i=Number.POSITIVE_INFINITY,o,s,a;for(o=0,s=e.length;o<s;++o){const l=e[o].element;if(l&&l.hasValue()){const c=l.getCenterPoint(),u=E_(t,c);u<i&&(i=u,a=l)}}if(a){const l=a.tooltipPosition();n=l.x,r=l.y}return{x:n,y:r}}};function qr(e,t){return t&&(Zt(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function Si(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
|
|
972
|
+
`)>-1?e.split(`
|
|
973
|
+
`):e}function xxt(e,t){const{element:n,datasetIndex:r,index:i}=t,o=e.getDatasetMeta(r).controller,{label:s,value:a}=o.getLabelAndValue(i);return{chart:e,label:s,parsed:o.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:a,dataset:o.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function SP(e,t){const n=e.chart.ctx,{body:r,footer:i,title:o}=e,{boxWidth:s,boxHeight:a}=t,l=Oe(t.bodyFont),c=Oe(t.titleFont),u=Oe(t.footerFont),d=o.length,h=i.length,f=r.length,p=dn(t.padding);let g=p.height,y=0,m=r.reduce((_,w)=>_+w.before.length+w.lines.length+w.after.length,0);if(m+=e.beforeBody.length+e.afterBody.length,d&&(g+=d*c.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),m){const _=t.displayColors?Math.max(a,l.lineHeight):l.lineHeight;g+=f*_+(m-f)*l.lineHeight+(m-1)*t.bodySpacing}h&&(g+=t.footerMarginTop+h*u.lineHeight+(h-1)*t.footerSpacing);let x=0;const b=function(_){y=Math.max(y,n.measureText(_).width+x)};return n.save(),n.font=c.string,Tt(e.title,b),n.font=l.string,Tt(e.beforeBody.concat(e.afterBody),b),x=t.displayColors?s+2+t.boxPadding:0,Tt(r,_=>{Tt(_.before,b),Tt(_.lines,b),Tt(_.after,b)}),x=0,n.font=u.string,Tt(e.footer,b),n.restore(),y+=p.width,{width:y,height:g}}function bxt(e,t){const{y:n,height:r}=t;return n<r/2?"top":n>e.height-r/2?"bottom":"center"}function _xt(e,t,n,r){const{x:i,width:o}=r,s=n.caretSize+n.caretPadding;if(e==="left"&&i+o+s>t.width||e==="right"&&i-o-s<0)return!0}function wxt(e,t,n,r){const{x:i,width:o}=n,{width:s,chartArea:{left:a,right:l}}=e;let c="center";return r==="center"?c=i<=(a+l)/2?"left":"right":i<=o/2?c="left":i>=s-o/2&&(c="right"),_xt(c,e,t,n)&&(c="center"),c}function EP(e,t,n){const r=n.yAlign||t.yAlign||bxt(e,n);return{xAlign:n.xAlign||t.xAlign||wxt(e,t,n,r),yAlign:r}}function Axt(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function Sxt(e,t,n){let{y:r,height:i}=e;return t==="top"?r+=n:t==="bottom"?r-=i+n:r-=i/2,r}function CP(e,t,n,r){const{caretSize:i,caretPadding:o,cornerRadius:s}=e,{xAlign:a,yAlign:l}=n,c=i+o,{topLeft:u,topRight:d,bottomLeft:h,bottomRight:f}=ua(s);let p=Axt(t,a);const g=Sxt(t,l,c);return l==="center"?a==="left"?p+=c:a==="right"&&(p-=c):a==="left"?p-=Math.max(u,h)+i:a==="right"&&(p+=Math.max(d,f)+i),{x:Ve(p,0,r.width-t.width),y:Ve(g,0,r.height-t.height)}}function Cp(e,t,n){const r=dn(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function kP(e){return qr([],Si(e))}function Ext(e,t,n){return ws(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function TP(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const pF={beforeTitle:bi,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex<r)return n[t.dataIndex]}return""},afterTitle:bi,beforeBody:bi,beforeLabel:bi,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return bt(n)||(t+=n),t},labelColor(e){const t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:t.borderColor,backgroundColor:t.backgroundColor,borderWidth:t.borderWidth,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:t.pointStyle,rotation:t.rotation}},afterLabel:bi,afterBody:bi,beforeFooter:bi,footer:bi,afterFooter:bi};function En(e,t,n,r){const i=e[t].call(n,r);return typeof i>"u"?pF[t].call(n,r):i}class R_ extends Ur{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,r=this.options.setContext(this.getContext()),i=r.enabled&&n.options.animation&&r.animations,o=new WN(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=Ext(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:r}=n,i=En(r,"beforeTitle",this,t),o=En(r,"title",this,t),s=En(r,"afterTitle",this,t);let a=[];return a=qr(a,Si(i)),a=qr(a,Si(o)),a=qr(a,Si(s)),a}getBeforeBody(t,n){return kP(En(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:r}=n,i=[];return Tt(t,o=>{const s={before:[],lines:[],after:[]},a=TP(r,o);qr(s.before,Si(En(a,"beforeLabel",this,o))),qr(s.lines,En(a,"label",this,o)),qr(s.after,Si(En(a,"afterLabel",this,o))),i.push(s)}),i}getAfterBody(t,n){return kP(En(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:r}=n,i=En(r,"beforeFooter",this,t),o=En(r,"footer",this,t),s=En(r,"afterFooter",this,t);let a=[];return a=qr(a,Si(i)),a=qr(a,Si(o)),a=qr(a,Si(s)),a}_createItems(t){const n=this._active,r=this.chart.data,i=[],o=[],s=[];let a=[],l,c;for(l=0,c=n.length;l<c;++l)a.push(xxt(this.chart,n[l]));return t.filter&&(a=a.filter((u,d,h)=>t.filter(u,d,h,r))),t.itemSort&&(a=a.sort((u,d)=>t.itemSort(u,d,r))),Tt(a,u=>{const d=TP(t.callbacks,u);i.push(En(d,"labelColor",this,u)),o.push(En(d,"labelPointStyle",this,u)),s.push(En(d,"labelTextColor",this,u))}),this.labelColors=i,this.labelPointStyles=o,this.labelTextColors=s,this.dataPoints=a,a}update(t,n){const r=this.options.setContext(this.getContext()),i=this._active;let o,s=[];if(!i.length)this.opacity!==0&&(o={opacity:0});else{const a=vd[r.position].call(this,i,this._eventPosition);s=this._createItems(r),this.title=this.getTitle(s,r),this.beforeBody=this.getBeforeBody(s,r),this.body=this.getBody(s,r),this.afterBody=this.getAfterBody(s,r),this.footer=this.getFooter(s,r);const l=this._size=SP(this,r),c=Object.assign({},a,l),u=EP(this.chart,r,c),d=CP(r,c,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,o={opacity:1,x:d.x,y:d.y,width:l.width,height:l.height,caretX:a.x,caretY:a.y}}this._tooltipItems=s,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,r,i){const o=this.getCaretPosition(t,r,i);n.lineTo(o.x1,o.y1),n.lineTo(o.x2,o.y2),n.lineTo(o.x3,o.y3)}getCaretPosition(t,n,r){const{xAlign:i,yAlign:o}=this,{caretSize:s,cornerRadius:a}=r,{topLeft:l,topRight:c,bottomLeft:u,bottomRight:d}=ua(a),{x:h,y:f}=t,{width:p,height:g}=n;let y,m,x,b,_,w;return o==="center"?(_=f+g/2,i==="left"?(y=h,m=y-s,b=_+s,w=_-s):(y=h+p,m=y+s,b=_-s,w=_+s),x=y):(i==="left"?m=h+Math.max(l,u)+s:i==="right"?m=h+p-Math.max(c,d)-s:m=this.caretX,o==="top"?(b=f,_=b-s,y=m-s,x=m+s):(b=f+g,_=b+s,y=m+s,x=m-s),w=b),{x1:y,x2:m,x3:x,y1:b,y2:_,y3:w}}drawTitle(t,n,r){const i=this.title,o=i.length;let s,a,l;if(o){const c=Ol(r.rtl,this.x,this.width);for(t.x=Cp(this,r.titleAlign,r),n.textAlign=c.textAlign(r.titleAlign),n.textBaseline="middle",s=Oe(r.titleFont),a=r.titleSpacing,n.fillStyle=r.titleColor,n.font=s.string,l=0;l<o;++l)n.fillText(i[l],c.x(t.x),t.y+s.lineHeight/2),t.y+=s.lineHeight+a,l+1===o&&(t.y+=r.titleMarginBottom-a)}}_drawColorBox(t,n,r,i,o){const s=this.labelColors[r],a=this.labelPointStyles[r],{boxHeight:l,boxWidth:c,boxPadding:u}=o,d=Oe(o.bodyFont),h=Cp(this,"left",o),f=i.x(h),p=l<d.lineHeight?(d.lineHeight-l)/2:0,g=n.y+p;if(o.usePointStyle){const y={radius:Math.min(c,l)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},m=i.leftForLtr(f,c)+c/2,x=g+l/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,k_(t,y,m,x),t.strokeStyle=s.borderColor,t.fillStyle=s.backgroundColor,k_(t,y,m,x)}else{t.lineWidth=pt(s.borderWidth)?Math.max(...Object.values(s.borderWidth)):s.borderWidth||1,t.strokeStyle=s.borderColor,t.setLineDash(s.borderDash||[]),t.lineDashOffset=s.borderDashOffset||0;const y=i.leftForLtr(f,c-u),m=i.leftForLtr(i.xPlus(f,1),c-u-2),x=ua(s.borderRadius);Object.values(x).some(b=>b!==0)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,yh(t,{x:y,y:g,w:c,h:l,radius:x}),t.fill(),t.stroke(),t.fillStyle=s.backgroundColor,t.beginPath(),yh(t,{x:m,y:g+1,w:c-2,h:l-2,radius:x}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(y,g,c,l),t.strokeRect(y,g,c,l),t.fillStyle=s.backgroundColor,t.fillRect(m,g+1,c-2,l-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,n,r){const{body:i}=this,{bodySpacing:o,bodyAlign:s,displayColors:a,boxHeight:l,boxWidth:c,boxPadding:u}=r,d=Oe(r.bodyFont);let h=d.lineHeight,f=0;const p=Ol(r.rtl,this.x,this.width),g=function(E){n.fillText(E,p.x(t.x+f),t.y+h/2),t.y+=h+o},y=p.textAlign(s);let m,x,b,_,w,A,S;for(n.textAlign=s,n.textBaseline="middle",n.font=d.string,t.x=Cp(this,y,r),n.fillStyle=r.bodyColor,Tt(this.beforeBody,g),f=a&&y!=="right"?s==="center"?c/2+u:c+2+u:0,_=0,A=i.length;_<A;++_){for(m=i[_],x=this.labelTextColors[_],n.fillStyle=x,Tt(m.before,g),b=m.lines,a&&b.length&&(this._drawColorBox(n,t,_,p,r),h=Math.max(d.lineHeight,l)),w=0,S=b.length;w<S;++w)g(b[w]),h=d.lineHeight;Tt(m.after,g)}f=0,h=d.lineHeight,Tt(this.afterBody,g),t.y-=o}drawFooter(t,n,r){const i=this.footer,o=i.length;let s,a;if(o){const l=Ol(r.rtl,this.x,this.width);for(t.x=Cp(this,r.footerAlign,r),t.y+=r.footerMarginTop,n.textAlign=l.textAlign(r.footerAlign),n.textBaseline="middle",s=Oe(r.footerFont),n.fillStyle=r.footerColor,n.font=s.string,a=0;a<o;++a)n.fillText(i[a],l.x(t.x),t.y+s.lineHeight/2),t.y+=s.lineHeight+r.footerSpacing}}drawBackground(t,n,r,i){const{xAlign:o,yAlign:s}=this,{x:a,y:l}=t,{width:c,height:u}=r,{topLeft:d,topRight:h,bottomLeft:f,bottomRight:p}=ua(i.cornerRadius);n.fillStyle=i.backgroundColor,n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.beginPath(),n.moveTo(a+d,l),s==="top"&&this.drawCaret(t,n,r,i),n.lineTo(a+c-h,l),n.quadraticCurveTo(a+c,l,a+c,l+h),s==="center"&&o==="right"&&this.drawCaret(t,n,r,i),n.lineTo(a+c,l+u-p),n.quadraticCurveTo(a+c,l+u,a+c-p,l+u),s==="bottom"&&this.drawCaret(t,n,r,i),n.lineTo(a+f,l+u),n.quadraticCurveTo(a,l+u,a,l+u-f),s==="center"&&o==="left"&&this.drawCaret(t,n,r,i),n.lineTo(a,l+d),n.quadraticCurveTo(a,l,a+d,l),n.closePath(),n.fill(),i.borderWidth>0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,r=this.$animations,i=r&&r.x,o=r&&r.y;if(i||o){const s=vd[t.position].call(this,this._active,this._eventPosition);if(!s)return;const a=this._size=SP(this,t),l=Object.assign({},s,this._size),c=EP(n,t,l),u=CP(t,l,c,n);(i._to!==u.x||o._to!==u.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=a.width,this.height=a.height,this.caretX=s.x,this.caretY=s.y,this._resolveAnimations().update(this,u))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const i={width:this.width,height:this.height},o={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const s=dn(n.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&a&&(t.save(),t.globalAlpha=r,this.drawBackground(o,t,i,n),BN(t,n.textDirection),o.y+=s.top,this.drawTitle(o,t,n),this.drawBody(o,t,n),this.drawFooter(o,t,n),VN(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const r=this._active,i=t.map(({datasetIndex:a,index:l})=>{const c=this.chart.getDatasetMeta(a);if(!c)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:c.data[l],index:l}}),o=!t0(r,i),s=this._positionChanged(i,n);(o||s)&&(this._active=i,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,o=this._active||[],s=this._getActiveElements(t,o,n,r),a=this._positionChanged(s,t),l=n||!t0(s,o)||a;return l&&(this._active=s,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),l}_getActiveElements(t,n,r,i){const o=this.options;if(t.type==="mouseout")return[];if(!i)return n;const s=this.chart.getElementsAtEventForMode(t,o.mode,o,r);return o.reverse&&s.reverse(),s}_positionChanged(t,n){const{caretX:r,caretY:i,options:o}=this,s=vd[o.position].call(this,t,n);return s!==!1&&(r!==s.x||i!==s.y)}}et(R_,"positioners",vd);var gF={id:"tooltip",_element:R_,positioners:vd,afterInit(e,t,n){n&&(e.tooltip=new R_({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:pF},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},Cxt=Object.freeze({__proto__:null,Colors:Vyt,Decimation:Wyt,Filler:dxt,Legend:bS,SubTitle:yxt,Title:fF,Tooltip:gF});const kxt=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function Txt(e,t,n,r){const i=e.indexOf(t);if(i===-1)return kxt(e,t,n,r);const o=e.lastIndexOf(t);return i!==o?n:i}const Mxt=(e,t)=>e===null?null:Ve(Math.round(e),0,t);function mF(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class bh extends $a{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const n=this._addedLabels;if(n.length){const r=this.getLabels();for(const{index:i,label:o}of n)r[i]===o&&r.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,n){if(bt(t))return null;const r=this.getLabels();return n=isFinite(n)&&r[n]===t?n:Txt(r,t,ut(n,t),this._addedLabels),Mxt(n,r.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:r,max:i}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(r=0),n||(i=this.getLabels().length-1)),this.min=r,this.max=i}buildTicks(){const t=this.min,n=this.max,r=this.options.offset,i=[];let o=this.getLabels();o=t===0&&n===o.length-1?o:o.slice(t,n+1),this._valueRange=Math.max(o.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let s=t;s<=n;s++)i.push({value:s});return i}getLabelForValue(t){return mF.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}et(bh,"id","category"),et(bh,"defaults",{ticks:{callback:mF}});function $xt(e,t){const n=[],{bounds:r,step:i,min:o,max:s,precision:a,count:l,maxTicks:c,maxDigits:u,includeBounds:d}=e,h=i||1,f=c-1,{min:p,max:g}=t,y=!bt(o),m=!bt(s),x=!bt(l),b=(g-p)/(u+1);let _=k$((g-p)/f/h)*h,w,A,S,E;if(_<1e-14&&!y&&!m)return[{value:p},{value:g}];E=Math.ceil(g/_)-Math.floor(p/_),E>f&&(_=k$(E*_/f/h)*h),bt(a)||(w=Math.pow(10,a),_=Math.ceil(_*w)/w),r==="ticks"?(A=Math.floor(p/_)*_,S=Math.ceil(g/_)*_):(A=p,S=g),y&&m&&i&&T0t((s-o)/i,_/1e3)?(E=Math.round(Math.min((s-o)/_,c)),_=(s-o)/E,A=o,S=s):x?(A=y?o:A,S=m?s:S,E=l-1,_=(S-A)/E):(E=(S-A)/_,dd(E,Math.round(E),_/1e3)?E=Math.round(E):E=Math.ceil(E));const k=Math.max(T$(_),T$(A));w=Math.pow(10,bt(a)?k:a),A=Math.round(A*w)/w,S=Math.round(S*w)/w;let C=0;for(y&&(d&&A!==o?(n.push({value:o}),A<o&&C++,dd(Math.round((A+C*_)*w)/w,o,MP(o,b,e))&&C++):A<o&&C++);C<E;++C)n.push({value:Math.round((A+C*_)*w)/w});return m&&d&&S!==s?n.length&&dd(n[n.length-1].value,s,MP(s,b,e))?n[n.length-1].value=s:n.push({value:s}):(!m||S===s)&&n.push({value:S}),n}function MP(e,t,{horizontal:n,minRotation:r}){const i=Dr(r),o=(n?Math.sin(i):Math.cos(i))||.001,s=.75*t*(""+e).length;return Math.min(t/o,s)}class c0 extends $a{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,n){return bt(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:r}=this.getUserBounds();let{min:i,max:o}=this;const s=l=>i=n?i:l,a=l=>o=r?o:l;if(t){const l=di(i),c=di(o);l<0&&c<0?a(0):l>0&&c>0&&s(0)}if(i===o){let l=o===0?1:Math.abs(o*.05);a(o+l),t||s(i-l)}this.min=i,this.max=o}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=t,i;return r?(i=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),n=n||11),n&&(i=Math.min(n,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const i={maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},o=this._range||this,s=$xt(i,o);return t.bounds==="ticks"&&_N(s,this,"value"),t.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}configure(){const t=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){const i=(r-n)/Math.max(t.length-1,1)/2;n-=i,r+=i}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(t){return tf(t,this.chart.options.locale,this.options.ticks.format)}}class _h extends c0{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=ge(t)?t:0,this.max=ge(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,r=Dr(this.options.ticks.minRotation),i=(t?Math.sin(r):Math.cos(r))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,o.lineHeight/i))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}et(_h,"id","linear"),et(_h,"defaults",{ticks:{callback:zv.formatters.numeric}});const wh=e=>Math.floor(Fo(e)),Ns=(e,t)=>Math.pow(10,wh(e)+t);function $P(e){return e/Math.pow(10,wh(e))===1}function PP(e,t,n){const r=Math.pow(10,n),i=Math.floor(e/r);return Math.ceil(t/r)-i}function Pxt(e,t){const n=t-e;let r=wh(n);for(;PP(e,t,r)>10;)r++;for(;PP(e,t,r)<10;)r--;return Math.min(r,wh(e))}function Oxt(e,{min:t,max:n}){t=Wn(e.min,t);const r=[],i=wh(t);let o=Pxt(t,n),s=o<0?Math.pow(10,Math.abs(o)):1;const a=Math.pow(10,o),l=i>o?Math.pow(10,i):0,c=Math.round((t-l)*s)/s,u=Math.floor((t-l)/a/10)*a*10;let d=Math.floor((c-u)/Math.pow(10,o)),h=Wn(e.min,Math.round((l+u+d*Math.pow(10,o))*s)/s);for(;h<n;)r.push({value:h,major:$P(h),significand:d}),d>=10?d=d<15?15:20:d++,d>=20&&(o++,d=2,s=o>=0?1:s),h=Math.round((l+u+d*Math.pow(10,o))*s)/s;const f=Wn(e.max,h);return r.push({value:f,major:$P(f),significand:d}),r}class D_ extends $a{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,n){const r=c0.prototype.parse.apply(this,[t,n]);if(r===0){this._zero=!0;return}return ge(r)&&r>0?r:null}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=ge(t)?Math.max(0,t):null,this.max=ge(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!ge(this._userMin)&&(this.min=t===Ns(this.min,0)?Ns(this.min,-1):Ns(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let r=this.min,i=this.max;const o=a=>r=t?r:a,s=a=>i=n?i:a;r===i&&(r<=0?(o(1),s(10)):(o(Ns(r,-1)),s(Ns(i,1)))),r<=0&&o(Ns(i,-1)),i<=0&&s(Ns(r,1)),this.min=r,this.max=i}buildTicks(){const t=this.options,n={min:this._userMin,max:this._userMax},r=Oxt(n,this);return t.bounds==="ticks"&&_N(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}getLabelForValue(t){return t===void 0?"0":tf(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=Fo(t),this._valueRange=Fo(this.max)-Fo(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(Fo(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const n=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+n*this._valueRange)}}et(D_,"id","logarithmic"),et(D_,"defaults",{ticks:{callback:zv.formatters.logarithmic,major:{enabled:!0}}});function L_(e){const t=e.ticks;if(t.display&&e.display){const n=dn(t.backdropPadding);return ut(t.font&&t.font.size,we.font.size)+n.height}return 0}function Rxt(e,t,n){return n=Zt(n)?n:[n],{w:W0t(e,t.string,n),h:n.length*t.lineHeight}}function OP(e,t,n,r,i){return e===r||e===i?{start:t-n/2,end:t+n/2}:e<r||e>i?{start:t-n,end:t}:{start:t,end:t+n}}function Dxt(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),r=[],i=[],o=e._pointLabels.length,s=e.options.pointLabels,a=s.centerPointLabels?oe/o:0;for(let l=0;l<o;l++){const c=s.setContext(e.getPointLabelContext(l));i[l]=c.padding;const u=e.getPointPosition(l,e.drawingArea+i[l],a),d=Oe(c.font),h=Rxt(e.ctx,d,e._pointLabels[l]);r[l]=h;const f=qn(e.getIndexAngle(l)+a),p=Math.round(uS(f)),g=OP(p,u.x,h.w,0,180),y=OP(p,u.y,h.h,90,270);Lxt(n,t,f,g,y)}e.setCenterPoint(t.l-n.l,n.r-t.r,t.t-n.t,n.b-t.b),e._pointLabelItems=Ixt(e,r,i)}function Lxt(e,t,n,r,i){const o=Math.abs(Math.sin(n)),s=Math.abs(Math.cos(n));let a=0,l=0;r.start<t.l?(a=(t.l-r.start)/o,e.l=Math.min(e.l,t.l-a)):r.end>t.r&&(a=(r.end-t.r)/o,e.r=Math.max(e.r,t.r+a)),i.start<t.t?(l=(t.t-i.start)/s,e.t=Math.min(e.t,t.t-l)):i.end>t.b&&(l=(i.end-t.b)/s,e.b=Math.max(e.b,t.b+l))}function Ixt(e,t,n){const r=[],i=e._pointLabels.length,o=e.options,s=L_(o)/2,a=e.drawingArea,l=o.pointLabels.centerPointLabels?oe/i:0;for(let c=0;c<i;c++){const u=e.getPointPosition(c,a+s+n[c],l),d=Math.round(uS(qn(u.angle+me))),h=t[c],f=zxt(u.y,h.h,d),p=Nxt(d),g=Fxt(u.x,h.w,p);r.push({x:u.x,y:f,textAlign:p,left:g,top:f,right:g+h.w,bottom:f+h.h})}return r}function Nxt(e){return e===0||e===180?"center":e<180?"left":"right"}function Fxt(e,t,n){return n==="right"?e-=t:n==="center"&&(e-=t/2),e}function zxt(e,t,n){return n===90||n===270?e-=t/2:(n>270||n<90)&&(e-=t),e}function Bxt(e,t){const{ctx:n,options:{pointLabels:r}}=e;for(let i=t-1;i>=0;i--){const o=r.setContext(e.getPointLabelContext(i)),s=Oe(o.font),{x:a,y:l,textAlign:c,left:u,top:d,right:h,bottom:f}=e._pointLabelItems[i],{backdropColor:p}=o;if(!bt(p)){const g=ua(o.borderRadius),y=dn(o.backdropPadding);n.fillStyle=p;const m=u-y.left,x=d-y.top,b=h-u+y.width,_=f-d+y.height;Object.values(g).some(w=>w!==0)?(n.beginPath(),yh(n,{x:m,y:x,w:b,h:_,radius:g}),n.fill()):n.fillRect(m,x,b,_)}wa(n,e._pointLabels[i],a,l+s.lineHeight/2,s,{color:o.color,textAlign:c,textBaseline:"middle"})}}function vF(e,t,n,r){const{ctx:i}=e;if(n)i.arc(e.xCenter,e.yCenter,t,0,ee);else{let o=e.getPointPosition(0,t);i.moveTo(o.x,o.y);for(let s=1;s<r;s++)o=e.getPointPosition(s,t),i.lineTo(o.x,o.y)}}function Vxt(e,t,n,r,i){const o=e.ctx,s=t.circular,{color:a,lineWidth:l}=t;!s&&!r||!a||!l||n<0||(o.save(),o.strokeStyle=a,o.lineWidth=l,o.setLineDash(i.dash),o.lineDashOffset=i.dashOffset,o.beginPath(),vF(e,n,s,r),o.closePath(),o.stroke(),o.restore())}function jxt(e,t,n){return ws(e,{label:n,index:t,type:"pointLabel"})}class xu extends c0{constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=dn(L_(this.options)/2),n=this.width=this.maxWidth-t.width,r=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+n/2+t.left),this.yCenter=Math.floor(this.top+r/2+t.top),this.drawingArea=Math.floor(Math.min(n,r)/2)}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!1);this.min=ge(t)&&!isNaN(t)?t:0,this.max=ge(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/L_(this.options))}generateTickLabels(t){c0.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((n,r)=>{const i=Bt(this.options.pointLabels.callback,[n,r],this);return i||i===0?i:""}).filter((n,r)=>this.chart.getDataVisibility(r))}fit(){const t=this.options;t.display&&t.pointLabels.display?Dxt(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,n,r,i){this.xCenter+=Math.floor((t-n)/2),this.yCenter+=Math.floor((r-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,n,r,i))}getIndexAngle(t){const n=ee/(this._pointLabels.length||1),r=this.options.startAngle||0;return qn(t*n+Dr(r))}getDistanceFromCenterForValue(t){if(bt(t))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*n:(t-this.min)*n}getValueForDistanceFromCenter(t){if(bt(t))return NaN;const n=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(t){const n=this._pointLabels||[];if(t>=0&&t<n.length){const r=n[t];return jxt(this.getContext(),t,r)}}getPointPosition(t,n,r=0){const i=this.getIndexAngle(t)-me+r;return{x:Math.cos(i)*n+this.xCenter,y:Math.sin(i)*n+this.yCenter,angle:i}}getPointPositionForValue(t,n){return this.getPointPosition(t,this.getDistanceFromCenterForValue(n))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:n,top:r,right:i,bottom:o}=this._pointLabelItems[t];return{left:n,top:r,right:i,bottom:o}}drawBackground(){const{backgroundColor:t,grid:{circular:n}}=this.options;if(t){const r=this.ctx;r.save(),r.beginPath(),vF(this,this.getDistanceFromCenterForValue(this._endValue),n,this._pointLabels.length),r.closePath(),r.fillStyle=t,r.fill(),r.restore()}}drawGrid(){const t=this.ctx,n=this.options,{angleLines:r,grid:i,border:o}=n,s=this._pointLabels.length;let a,l,c;if(n.pointLabels.display&&Bxt(this,s),i.display&&this.ticks.forEach((u,d)=>{if(d!==0){l=this.getDistanceFromCenterForValue(u.value);const h=this.getContext(d),f=i.setContext(h),p=o.setContext(h);Vxt(this,f,l,s,p)}}),r.display){for(t.save(),a=s-1;a>=0;a--){const u=r.setContext(this.getPointLabelContext(a)),{color:d,lineWidth:h}=u;!h||!d||(t.lineWidth=h,t.strokeStyle=d,t.setLineDash(u.borderDash),t.lineDashOffset=u.borderDashOffset,l=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),c=this.getPointPosition(a,l),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(c.x,c.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,n=this.options,r=n.ticks;if(!r.display)return;const i=this.getIndexAngle(0);let o,s;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((a,l)=>{if(l===0&&!n.reverse)return;const c=r.setContext(this.getContext(l)),u=Oe(c.font);if(o=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){t.font=u.string,s=t.measureText(a.label).width,t.fillStyle=c.backdropColor;const d=dn(c.backdropPadding);t.fillRect(-s/2-d.left,-o-u.size/2-d.top,s+d.width,u.size+d.height)}wa(t,a.label,0,-o,u,{color:c.color})}),t.restore()}drawTitle(){}}et(xu,"id","radialLinear"),et(xu,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:zv.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(e){return e},padding:5,centerPointLabels:!1}}),et(xu,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),et(xu,"descriptors",{angleLines:{_fallback:"grid"}});const Hv={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Mn=Object.keys(Hv);function Hxt(e,t){return e-t}function RP(e,t){if(bt(t))return null;const n=e._adapter,{parser:r,round:i,isoWeekday:o}=e._parseOpts;let s=t;return typeof r=="function"&&(s=r(s)),ge(s)||(s=typeof r=="string"?n.parse(s,r):n.parse(s)),s===null?null:(i&&(s=i==="week"&&(lc(o)||o===!0)?n.startOf(s,"isoWeek",o):n.startOf(s,i)),+s)}function DP(e,t,n,r){const i=Mn.length;for(let o=Mn.indexOf(e);o<i-1;++o){const s=Hv[Mn[o]],a=s.steps?s.steps:Number.MAX_SAFE_INTEGER;if(s.common&&Math.ceil((n-t)/(a*s.size))<=r)return Mn[o]}return Mn[i-1]}function Uxt(e,t,n,r,i){for(let o=Mn.length-1;o>=Mn.indexOf(n);o--){const s=Mn[o];if(Hv[s].common&&e._adapter.diff(i,r,s)>=t-1)return s}return Mn[n?Mn.indexOf(n):0]}function Wxt(e){for(let t=Mn.indexOf(e)+1,n=Mn.length;t<n;++t)if(Hv[Mn[t]].common)return Mn[t]}function LP(e,t,n){if(!n)e[t]=!0;else if(n.length){const{lo:r,hi:i}=dS(n,t),o=n[r]>=t?n[r]:n[i];e[o]=!0}}function Yxt(e,t,n,r){const i=e._adapter,o=+i.startOf(t[0].value,r),s=t[t.length-1].value;let a,l;for(a=o;a<=s;a=+i.add(a,1,r))l=n[a],l>=0&&(t[l].major=!0);return t}function IP(e,t,n){const r=[],i={},o=t.length;let s,a;for(s=0;s<o;++s)a=t[s],i[a]=s,r.push({value:a,major:!1});return o===0||!n?r:Yxt(e,r,i,n)}class Ah extends $a{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,n={}){const r=t.time||(t.time={}),i=this._adapter=new a1t._date(t.adapters.date);i.init(n),ud(r.displayFormats,i.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(t),this._normalized=n.normalized}parse(t,n){return t===void 0?null:RP(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,n=this._adapter,r=t.time.unit||"day";let{min:i,max:o,minDefined:s,maxDefined:a}=this.getUserBounds();function l(c){!s&&!isNaN(c.min)&&(i=Math.min(i,c.min)),!a&&!isNaN(c.max)&&(o=Math.max(o,c.max))}(!s||!a)&&(l(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&l(this.getMinMax(!1))),i=ge(i)&&!isNaN(i)?i:+n.startOf(Date.now(),r),o=ge(o)&&!isNaN(o)?o:+n.endOf(Date.now(),r)+1,this.min=Math.min(i,o-1),this.max=Math.max(i+1,o)}_getLabelBounds(){const t=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return t.length&&(n=t[0],r=t[t.length-1]),{min:n,max:r}}buildTicks(){const t=this.options,n=t.time,r=t.ticks,i=r.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const o=this.min,s=this.max,a=O0t(i,o,s);return this._unit=n.unit||(r.autoSkip?DP(n.minUnit,this.min,this.max,this._getLabelCapacity(o)):Uxt(this,a.length,n.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:Wxt(this._unit),this.initOffsets(i),t.reverse&&a.reverse(),IP(this,a,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let n=0,r=0,i,o;this.options.offset&&t.length&&(i=this.getDecimalForValue(t[0]),t.length===1?n=1-i:n=(this.getDecimalForValue(t[1])-i)/2,o=this.getDecimalForValue(t[t.length-1]),t.length===1?r=o:r=(o-this.getDecimalForValue(t[t.length-2]))/2);const s=t.length<3?.5:.25;n=Ve(n,0,s),r=Ve(r,0,s),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const t=this._adapter,n=this.min,r=this.max,i=this.options,o=i.time,s=o.unit||DP(o.minUnit,n,r,this._getLabelCapacity(n)),a=ut(i.ticks.stepSize,1),l=s==="week"?o.isoWeekday:!1,c=lc(l)||l===!0,u={};let d=n,h,f;if(c&&(d=+t.startOf(d,"isoWeek",l)),d=+t.startOf(d,c?"day":s),t.diff(r,n,s)>1e5*a)throw new Error(n+" and "+r+" are too far apart with stepSize of "+a+" "+s);const p=i.ticks.source==="data"&&this.getDataTimestamps();for(h=d,f=0;h<r;h=+t.add(h,a,s),f++)LP(u,h,p);return(h===r||i.bounds==="ticks"||f===1)&&LP(u,h,p),Object.keys(u).sort((g,y)=>g-y).map(g=>+g)}getLabelForValue(t){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(t,r.tooltipFormat):n.format(t,r.displayFormats.datetime)}format(t,n){const r=this.options.time.displayFormats,i=this._unit,o=n||r[i];return this._adapter.format(t,o)}_tickFormatFunction(t,n,r,i){const o=this.options,s=o.ticks.callback;if(s)return Bt(s,[t,n,r],this);const a=o.time.displayFormats,l=this._unit,c=this._majorUnit,u=l&&a[l],d=c&&a[c],h=r[n],f=c&&d&&h&&h.major;return this._adapter.format(t,i||(f?d:u))}generateTickLabels(t){let n,r,i;for(n=0,r=t.length;n<r;++n)i=t[n],i.label=this._tickFormatFunction(i.value,n,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const n=this._offsets,r=this.getDecimalForValue(t);return this.getPixelForDecimal((n.start+r)*n.factor)}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return this.min+r*(this.max-this.min)}_getLabelSize(t){const n=this.options.ticks,r=this.ctx.measureText(t).width,i=Dr(this.isHorizontal()?n.maxRotation:n.minRotation),o=Math.cos(i),s=Math.sin(i),a=this._resolveTickFontOptions(0).size;return{w:r*o+a*s,h:r*s+a*o}}_getLabelCapacity(t){const n=this.options.time,r=n.displayFormats,i=r[n.unit]||r.millisecond,o=this._tickFormatFunction(t,0,IP(this,[t],this._majorUnit),i),s=this._getLabelSize(o),a=Math.floor(this.isHorizontal()?this.width/s.w:this.height/s.h)-1;return a>0?a:1}getDataTimestamps(){let t=this._cache.data||[],n,r;if(t.length)return t;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(n=0,r=i.length;n<r;++n)t=t.concat(i[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let n,r;if(t.length)return t;const i=this.getLabels();for(n=0,r=i.length;n<r;++n)t.push(RP(this,i[n]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return SN(t.sort(Hxt))}}et(Ah,"id","time"),et(Ah,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function kp(e,t,n){let r=0,i=e.length-1,o,s,a,l;n?(t>=e[r].pos&&t<=e[i].pos&&({lo:r,hi:i}=Fi(e,"pos",t)),{pos:o,time:a}=e[r],{pos:s,time:l}=e[i]):(t>=e[r].time&&t<=e[i].time&&({lo:r,hi:i}=Fi(e,"time",t)),{time:o,pos:a}=e[r],{time:s,pos:l}=e[i]);const c=s-o;return c?a+(l-a)*(t-o)/c:a}class I_ extends Ah{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=kp(n,this.min),this._tableRange=kp(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:r}=this,i=[],o=[];let s,a,l,c,u;for(s=0,a=t.length;s<a;++s)c=t[s],c>=n&&c<=r&&i.push(c);if(i.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(s=0,a=i.length;s<a;++s)u=i[s+1],l=i[s-1],c=i[s],Math.round((u+l)/2)!==c&&o.push({time:c,pos:s/(a-1)});return o}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?t=this.normalize(n.concat(r)):t=n.length?n:r,t=this._cache.all=t,t}getDecimalForValue(t){return(kp(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return kp(this._table,r*this._tableRange+this._minPos,!0)}}et(I_,"id","timeseries"),et(I_,"defaults",Ah.defaults);var Gxt=Object.freeze({__proto__:null,CategoryScale:bh,LinearScale:_h,LogarithmicScale:D_,RadialLinearScale:xu,TimeScale:Ah,TimeSeriesScale:I_});const qxt=[s1t,Lyt,Cxt,Gxt],yF="label";function NP(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Xxt(e,t){const n=e.options;n&&t&&Object.assign(n,t)}function xF(e,t){e.labels=t}function bF(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:yF;const r=[];e.datasets=t.map(i=>{const o=e.datasets.find(s=>s[n]===i[n]);return!o||!i.data||r.includes(o)?{...i}:(r.push(o),Object.assign(o,i),o)})}function Qxt(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:yF;const n={labels:[],datasets:[]};return xF(n,e.labels),bF(n,e.datasets,t),n}function Kxt(e,t){const{height:n=150,width:r=300,redraw:i=!1,datasetIdKey:o,type:s,data:a,options:l,plugins:c=[],fallbackContent:u,updateMode:d,...h}=e,f=v.exports.useRef(null),p=v.exports.useRef(),g=()=>{!f.current||(p.current=new Qn(f.current,{type:s,data:Qxt(a,o),options:l&&{...l},plugins:c}),NP(t,p.current))},y=()=>{NP(t,null),p.current&&(p.current.destroy(),p.current=null)};return v.exports.useEffect(()=>{!i&&p.current&&l&&Xxt(p.current,l)},[i,l]),v.exports.useEffect(()=>{!i&&p.current&&xF(p.current.config.data,a.labels)},[i,a.labels]),v.exports.useEffect(()=>{!i&&p.current&&a.datasets&&bF(p.current.config.data,a.datasets,o)},[i,a.datasets]),v.exports.useEffect(()=>{!p.current||(i?(y(),setTimeout(g)):p.current.update(d))},[i,l,a.labels,a.datasets,d]),v.exports.useEffect(()=>{!p.current||(y(),setTimeout(g))},[s]),v.exports.useEffect(()=>(g(),()=>y()),[]),dt("canvas",{...Object.assign({ref:f,role:"img",height:n,width:r},h),children:u})}const Zxt=v.exports.forwardRef(Kxt);function _F(e,t){return Qn.register(t),v.exports.forwardRef((n,r)=>dt(Zxt,{...Object.assign({},n,{ref:r,type:e})}))}const Jxt=_F("bar",pd),tbt=_F("doughnut",zo),ebt=!!(typeof window<"u"&&window.document&&window.document.createElement),FP=ebt&&getComputedStyle(document.documentElement),ea=e=>()=>FP?FP.getPropertyValue(e):"",wS=z.div`
|
|
974
|
+
position: relative;
|
|
975
|
+
width: 100%;
|
|
976
|
+
// removing space dedicated for tabs, title and attribution
|
|
977
|
+
height: calc(100vh - 200px);
|
|
978
|
+
@media (max-width: ${q2.tablet}px) {
|
|
979
|
+
height: ${({height:e})=>e}px;
|
|
980
|
+
}
|
|
981
|
+
`,wF=z(Jxt)`
|
|
982
|
+
background-color: ${M["--ll-color-surface"]};
|
|
983
|
+
padding: ${M["--ll-spacing-medium"]} ${M["--ll-spacing-x-large"]};
|
|
984
|
+
border-radius: ${M["--ll-border-radius-medium"]};
|
|
985
|
+
font-family: ${M["--ll-font-family"]};
|
|
986
|
+
`,nbt=z(tbt)`
|
|
987
|
+
background-color: ${M["--ll-color-surface"]};
|
|
988
|
+
padding: ${M["--ll-spacing-medium"]} ${M["--ll-spacing-x-large"]};
|
|
989
|
+
border-radius: ${M["--ll-border-radius-medium"]};
|
|
990
|
+
font-family: ${M["--ll-font-family"]};
|
|
991
|
+
`,bu=Object.freeze({options:{indexAxis:"y",elements:{bar:{borderWidth:0,borderRadius:4,backgroundColor:ea("--ll-color-primary")}},responsive:!0,maintainAspectRatio:!1,events:null,plugins:{legend:{display:!0,position:"bottom",align:"start",labels:{boxWidth:10,usePointStyle:!0,pointStyle:"rectRounded"}},tooltip:{enabled:!1},title:{display:!0,position:"top",align:"start",text:"Chart.js Horizontal Bar Chart",padding:{bottom:16},color:ea("--ll-color-on-background"),font:{family:ea("--ll-font-family"),weight:ea("--ll-font-weight-medium"),size:14,lineHeight:1.4}}}}}),rbt={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0},AS=()=>{const[e,t]=v.exports.useState(null),[n,r]=v.exports.useState(rbt),i=v.exports.useMemo(()=>new window.ResizeObserver(o=>{if(o[0]){const{x:s,y:a,width:l,height:c,top:u,left:d,bottom:h,right:f}=o[0].contentRect;r({x:s,y:a,width:l,height:c,top:u,left:d,bottom:h,right:f})}}),[]);return v.exports.useLayoutEffect(()=>{if(e)return i.observe(e),()=>{i.disconnect()}},[e]),[t,n,e]};Qn.register(bh,_h,Rl);const Uv=e=>{const[t,n]=AS(),r={...bu,options:{...bu.options,plugins:{...bu.options.plugins,title:{...bu.options.plugins.title,text:"Chart.js Bar Chart"}}}};return dt(wS,{ref:t,height:n.width/2,children:dt(wF,{...eS.mergeDeep(r,e)})})},ibt={beforeDatasetsDraw(e){const{ctx:t,data:n,scales:{x:r,y:i}}=e;t.save(),t.imageSmoothingQuality="high",n.datasets.map(o=>o.data[0]).forEach((o,s)=>{const a=s===0?0:e.width-30,l=e.height/2-2;t.fillText(`${o}%`,a,l)})}},obt={...bu.options},sbt={barPercentage:.1,categoryPercentage:1,layout:{padding:{left:30,right:40}},scales:{x:{stacked:!0,grid:{display:!1},border:{display:!1},ticks:{display:!1}},y:{stacked:!0,beginAtZero:!0,grid:{display:!1},border:{display:!1},ticks:{display:!1}}}},Tp={options:{...obt,...sbt},plugins:[ibt]};Qn.register(bh,_h,Rl,fF,bS);const abt=e=>{const[t,n]=AS(),r={...Tp,options:{...Tp.options,plugins:{...Tp.options.plugins,title:{...Tp.options.plugins.title,text:"Chart.js Horizontal Bar Chart"}}}},i={data:{labels:[""],datasets:[{...e.data.datasets[0],borderRadius:{topLeft:5,bottomLeft:5},borderWidth:1,borderSkipped:!1,borderColor:e.data.datasets[0].backgroundColor},{...e.data.datasets[1],borderWidth:1,borderColor:e.data.datasets[1].backgroundColor}]}};return dt(wS,{ref:t,height:n.width/2,children:dt(wF,{...eS.mergeDeep(r,i)})})},Mp=Object.freeze({options:{cutout:"60%",borderWidth:0,indexAxis:"y",responsive:!0,maintainAspectRatio:!1,events:null,plugins:{legend:{display:!0,position:"right",align:"middle",labels:{boxWidth:10,usePointStyle:!0,pointStyle:"rectRounded"}},tooltip:{enabled:!1},title:{display:!0,position:"top",align:"start",padding:{bottom:16},color:ea("--ll-color-on-background"),font:{family:ea("--ll-font-family"),weight:ea("--ll-font-weight-medium"),size:14,lineHeight:1.4}}}}}),lbt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAACVFSURBVHgB7d0/kF3XfR/w333vwZItR1zKzow94xkuu1Qm1DmNuFRjuwlJF05nLtV4MhkTWI87CuKCICcdQYCT8diFALp0IYGeFFYjLF0kqSKwSeOCq8ITJ5mxQMWOKWHfvT7nPiwJEPt/35977/l8ZhYAFwQG+/bdc77n9zvn3ggAAAAAAAAAAAAAAAAAAACgK6pgcba3T/d5gC5qmoirV5/8/BtvpFnENNJXvnPnkS+KP//ziJ/9LOIfvpRey730yWnEl78U8en/T7/+8vrBf/DT3fjyL6VX/37EP/9yxFfTn59MmviHfxAOgNX4bOx5Jn38vIpfzOPTL0Y7pkW1FvGltSf/0M/S/9Skj3G0H19J494//WoTv/7ziKefjvj93w+6SwA4jf0U/NWvVvHTSfpEvRbj8UZUzXp6JX8zmlhP/0/+db5Q1o7529JFE7ttCmiaj1KK/nE01b2Y7u1E/MIsFPz0p41AACxEHlu+9rW8gKli+tW0LqnXY/Qgj2fPxKh6Jo1LF9OYtpbGs/Vj/64mjWVVlT7SuFan8SxGH8VotBvjyb34NC2MvjZt4td+TSDoGAHgOHnSf++9tMIfp9fqwVp6U7+ULpDn0u+8eKIL40yqnTYUxOiDuPALO/Fp+tSvp0vsD/8wAM7sL/8y4n/+U/rF/0vj2YX1mDxI41l8I403G3H8ouUs0kInLWwi/iqq8U48mN6Lr6ZA8Bu/0QgDqycAHCan4698pYp/urAWk9Fm+sy/S2lgI5bvfkrWd6Ku/iqmzZ1Uhkuf+l8qA8DJPLqIuRBpVV+/mD5eWdwC5ghVqhTU8UGMJu/H5B/vxT//c2Mfwep41b/oz/4sza97VYzrjRg1ry0wGZ9e1bYMcop+M+KXdgUB4FBty/J2+sUnT694EXOYe2lhczPqaVrY/NJ949nyCQD72jfe19LEX+US/2sdu1CeVFW3BQHgCY9N/ONLEXX66Mgi5iCPLWzWPo74sc3QSyIAtG+0fz1b8Uf93ZWUxc5DEAD23byZSv11Pyb+A42uxt70/dT5/NhYtnjlBoCckq9fzz3+vOv1O51f8R+nDQL1my4cKND+QuZCmvSbOjXV+zbxPyJXBKbVm1HH7ZRmLGoWqMwA0L6hnsopOU/8l2MoPrtwxrcj/q8LB0rQrvqnz6bx7Lu9X8g8Ko9nD+pvtm2B7VeD+SsvALzzzmzV38dy/4mlftpe/S3VABiwIa36j5TbAs1V1YD5KycA7F8sk+k7g1r1H+azasC/uiU9w8C049laWvWPhrXqP0xbDWi+Gb/+ix+7H8r8lBEASrtYHpPS85c+vRp/8ieNs7YwALnk/0n1wrCrmAdo7yFQ/3FM175vUTMfw58R2jtf/d2zMR79sKiL5VH5RkIPpqkl8MlPlNCgx7ZvRVz4x8up5H89ipVbAr+8LQSc3ziGLE9293/+9RiN/mua/H8tyvVvYlz9+6i//Fex8Vv3Y2cngJ7Jk//kH7fTyv8/RdFSFXf0oIpvvPRh7PyX4OxGMVR58h//6mY0o/8Rg90ccwr5QUUXqh+2rRBVAOiXzyf/N4JoX4fxz74b23+mr3kOw3zx9if/anoreNz+ZhonBKAfTP6Ha6rbMf3St2L7D5vg1IZXAciT2uRXXjD5H+KzSsBTz7Y3QwK6y+R/tKrZnFUCDPdnMawAsL/bP+rvBYfLIWAy+l5cvfF0AN2UH0xm8j9eDgH5dcqnIziVgVUA0uQ/zqtbPf8TuBgXRpIzdFFezPyfn79s8j+p9Dr9NLbaU1+c2HACQL7DX578Sz3qdxZN81KbnO0FgO5oW3NpMVPV3w1OoXkn/vbvvq61eXLDOAaYJ7DpV66nyf93glPKR2q+9DfxjX+763ggdEC19nSMiz+6fDZV9dvxw//2F7Hzg0+DY/W/ApAn/9HXNou4ve/CjL432zsBrFR7gml0XSXzjNr9TePv2Q9wMgNoAaytR9Xok53PWnubZK0AWJ39xUwVrwTnkKqaP43LxrPj9TsAtGm52paW5yG3Ar72qv4ZrIrFzPzk1/EpVc1j9DsASMvzNWreias3nKCAZbOYmbe1uDB+RxXgaP0NAPkbKy3PW24FvOGigWXLu/4tZuYqn3Iar20Eh+pnAPi8V7YezFneTGlDICxNe/fSkSN/i1BZ0BylpxWAp/TKFsmGQFie8a9utHtwWIB2b9NmcKB+BoDReMPqf5HSRTN+aiOAxWpbme72t1DjRhXgEP0LAHr/yzEav+JEACzY+Fc2rP4XLN8bwF6AA/UvAOj9L0feQHP1XScCYFHaVWm9GSyevQAH6lcAyA96GDWXgmVYi/HI3RVhYfJeJjv/lyNVWSbaml/UrwDwt393MfJT7FiOKi5JzbAg49FmsDzN6KXgMf0KALUV6ZKtSc2wALPH1lr9L1OutljQPKY/AWD2jXs+WC6pGeYvVzPtZVo2C5ov6E8AmPyKo3+rIDXD/NXK/ythQfOY/gSApvaNW42Umh2hgblpjzKrZq6EBc1j+hEA8nn0qnouWJGRjZcwN2vrYTPzqqw9fP2JvgSA9gl1bpaxQi8GMB/jscl/lSbaAPv6EQAmExfMSjUXlc1gXuqNYHWqUE1+qCd7AGoBYLXW2puWAOennbladaomu815qycBQPl/5fIDmIDzaStpjQXNKuXTZG5z3urLKYBngtWqmvUAzqmtpJl8Vu1CtR70IADMSjXrwWqNKiEMzms8WQ9Wb+pkU9b9ADAr1UjMq9YoW8K5NSppnTAyp2TdDwBKNd3QuGDg3LTSukEQa/WgBTAx8XRBJQDAHLiOumBUPRX0Yg+AC6YbfB/g/FxHXdA0TwcCAKfgZkDAIKgAZP15GBAd4GZAcC6VI810hwDAKVQBnMsnAR0hAHBy25d3Azi7Ju4HdIQAAAAF6n4AGFW7AQDzUsVu0IMAUO0pmXVB44KBOdgNVq9u7MWIPgSAB5UA0AUSM5xfo6LZEeaV6EMAmG08881aPYkZzquyoOmG+l7Qk02Ads6uXhMuGDiv6dR11A3mlOhLAKjio2DFJGY4NxXNbpha0GQ9OQZY7QSrNbIHAOZkN1idvJ9pe0sIi960AGycWbnXtyRmmIdGRXOlvP6f6UcAmO7tBCukAgNz07ieVsvrv68fAWBWrrECXZWmkZhhXup6J1idxn6mff25FXATHwYr0twJYD7yRkA31lqV+3Hl8k7Q6tGzAExCK+KCgfn7IFi+qjKPPKI/AWA2Cdm5uWwuGFgAC5qVqKeC1yP69TTAJt4PlssFA/NnQbMKqZq5JXg9omePA5aalyqfl3XBwGJY0CyXauYT+hUAcmq2eWaJHJeBxbGgWaq6Fri+oGcVgJZv4rI8qK8GsBizNsBOsHhtNdNm5i/qXwCY1u+G3tniVdXth/ctBxalaYTsZZh6nQ/SvwCQbwrUxI1gsZTLYPG0NRcvr/6/c/l28IQ+tgBUARauuqtcBkuiCrBYVv+H6mcAUAVYrL36WwEsx2x1uhPMn9X/kfoZALJZFeAnwXzp/cPyqQIshtX/kfobANoHBNVvBvNl5z8sX9tyS6035ulHVv9H628AyL699a6LZo7yKsTqH1Zj1npT1ZyXveb3giP1OwBkLpr5qOLjtArZDmA12vCtqjkXFjMn0v8A4KKZhyYeNN8MYLVUNc/PYubE+h8AMhfNOdV/LC1DR6hqnsdPLGZObhgBINub/l5ax34cnE5T35gFKKATchhv2v51E5xO3VjMnMJwAkA+FTCq80UjOZ9ULpVNYzuAbmlPBaTKHCeX+/52/Z/KOIbkhz/4+9j4nf8dVfVi5OmNw+XJP5fKtrf+PoDu+eEP/nu88Ltr6Vr9reBoTX07rmxtBacyrACQ3f3re/HN3/4kzXC/Exzss8lfqQw67e5f/yCFgPV0zV4MDtbEvVQx+d3g1IbTAnhU7mm7s9ZhUosktUpM/tAPVy69GvmmNjwpT/7T+oXgTIYZALJ8DEQI+KKfRFV/M17fuhdAf+yl67aqvh98bn/yb+8Ky1kMv09+7d3tdOF8J0rfE6DsD/137catdC1vRvGqu+3JL5P/uZQxKV67/lJUo++mXz0dJTL5w3CUvahp2qPLNvzNRTlvoO1312Nc/TB9xc9GOZo0UNyJB9NvScowIG9dv5w6uO9EWSGgaY9Gum/J3JSVIGch4I30Vb8Sw//aXSwwZCUtanIVs26+Nbs/AvNSZl98lp5zCW2YLYF8seSd/jb7wbBtX1+L8ej6gBc1qpgLVO7GuJyeJ3lfQLMRw3kdZv2xaVx1sUBB3nx3s90XMKxqwE/SeJZW/Vt3goVwt7xhXDip3F/tRDX9Y6t+KFRbDaguD2CDoIXMkggA+/LO2qj+oGdBIJXHYldvDPhMf/c6WcgsmQDwqPbCyWds2yCwHt19fWYXSl3/hYdfAAfqTxCYjWdN/aaFzHIJAIf5vDWwHt15nVwowOnsB4GI5zs0nuVHHd+PprmZSv233aNkNQSA47x9/WLUo0uxmovn4fPA20n/b2LavKsnBpxZvinaaPwHaeJ96eFnlj2epfGruhfNNE/8O8az1RIATuPauxvpJdtIlYFvPDw9sG9er+PDCT9dJFWe9Kd/E3s5HbtIgDnLYSBGL6bR67n0X/tPG5znnNA8/HE3/fhBRP2hSb9bBIDzyIGgai5GM3omTdjpImryRbR2qr8jXxyjlIjr5scplX8Udb5AlMOAJWpPEMRGCgQX03j0m2ksWk+fzR+nGc9SST997I9nJvzOEwAWYbaZcP3Q35+2iThM9ECn5WAQ1drx41lz30QPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAALFAVQ7P9p+vByW3/h90AOM5BY6vxo9f6FQDyG3D0YCOqJv1cPRNNczGaWEtfxVr63bXgPO6nj930lrifXs/d9Lp+FE11L6Z7u7G9tRvAcD0xtsZ6Gl/XTzW2NmncqKr0kcaSuvkoYnQvRqPdeP0/3gs6qdsB4Np7+Q15Mf3qxfTuyj+b5FehaoNBCgPxQdTTHYEAeu7t/5wWT9M0vsbzaaLfiMWOrffb8SPS+FGNdwSC7uheAMiTftQvpX/ZK2HC76p0AVfvx970jjAAPbE/tuYFVZVW+KsyW1DsRJ3GkCt/tBOsTDcCwPb1tZhMLqU35+Uw6fdMvpDj/fjOa7cD6JbPx9Y88V+MrslhYFpdVVlcjdUGgO3r6zEeXbbaHwAXMnRHH8fWqrodD6ZXjR/Ls5oAMHtzbj98czIk7QbC0e349h9dDWC5hjC2CgJLs9wAoNRfjv2KgNYALN4gx9YUZPb2bqQgcD9YiOUFgGvvpR5UfX2lm09YhXuxV78szcOCDHlstZBYqMUHgJxML4xvRdO8FBQspXltAZifksZWbYGFWGwAmB07uWXVz0y1E3vTV13EcE4ljq3t8cFUTXx9y30E5mQUi/LWe29EVd81+fO5ZiMujO7G29e7dxwJ+qLUsbW9O+HoR+3Xz1zMvwKQy1LjcepHNZsBh9ISgFMxtj6ieje+/dpWcC7zDQDtG3S0k/7W5wKOJQTAicyO990xtj4mbzB+wSmBs5tfAJi9QZX8OSVJHo5kbD1c3hfwoA0Bu8GpzScAeINyHk11O6689moAjzO2Hk8IOLPzBwBvUOZCJQAeY2w9uVkI+Lp2wOmc7xTArOd/xxuU82su290LD83GVpP/SeUTApP0euXXjRM7XwDIN6GwKYW5qbfjrZuXA0o3G1vXg9O42J6S4MTOHgDyas3d/Zi75npcu74RUCpj69nlI5IqiSd2tj0Ab97cjFFzK2ARbOqhVMbW+WjS+HFlayc40ukrAHljStVIWCxO288bGwQpi7F1fqrR99vXkyOdPgBM9KZYhmbDfgCKYmydpzWLiOOdLgC8/d6ldmCGpUirISmeEuTSv7F1ziwijnPyAJAH4rr2YrJMUjzDp/S/QO0iwtHAQ5w8AIxH28pTLF9K8deu2xHNcBlbFykvIoSrQ5zsFEBOqJPRxwGr4C5fDJWxdTmcCjjQySoAyrCsUj4VMB5pPzE8efXP4lWqAAc5vgJw7b2NqOq7Aat1P/bqZ1UBGAyr/+VSBXjC8RUAm1PohjVVAAbF6n+5VAGecHQAaI9gOZpCR4zilYAhaHf+ez8vV7uheCP4zNEBQEKlS/JeABcwQ2BsXZGRE0WPODwA5LOTEipdo4zHMDwfLF+e09wX4DOHB4DRWFKig1IZzwVMn1177yXn/lcm3xdgM2gdEQCs/ukoFzC9VltcrdaLQevgAGDzH93mAqa/Ku/f1VJF3HdwABiNNwI6ywVMT+Xyfy5Ds1qqiK3JgZ8dNUpUdNtsj8rtYH7aUPXlL0xOn95386V5Uv7viFyFeTcKd3AAaOK5Ez4lAFajai4GZ7P9p+sxerDRvoaj6pmo08+fbUr7+Rf+51QkfOtGHhN2o6p2o2k+mv1c3Ysrf7QTnI7yf0c8rCIWHm6fDABvX7/YnreGbssDqTsDnlS+pfds9fliVD9f/+zzTXOyR4K1AaHJN6/ZyGkghYccDO6nMLAT0/gg6ulOGkx3g8O15f9a+b8rZm2AoqsATwaAepIu8jqg0/KEJMEfrb3X/OSVdFFfXtDEs5YCxEupSJA+UqXg7Zu3o67eVxk4jPJ/xxTfBjhgE2C9EdAHF1SqDpRX+2/dvDt70Ey9HcvadNY0m+2Dw96+8XG8eXMzeJzyf8fYTPxkAKiq5wL6YDq2D+BRecWfJ/726Z0rPMabW4ij5pYg8Ai7/7up8NMAB2wCbLxJ6QcbAWfyKmYyuTQr9Xfo+v0sCNx8Ph5Mr5a9R0D5v6OKbgMcdB8Agyr9MKqeitLlTbvj0Y+WWuo/rdwamKR/Y8nVAOX/jiq7DfB4AHBzFfqkKbwC8PZ7l6IZ3e3JfeXX2mrAWzevFzfOKP93W8FtgMcDgE1V9ElT8KCaJ9KmzqXLnr0GzeW4kKoB7e3GS6H833HFVmceDwD1REqlP6oCA0BePeeNfnki7au8N+BCqlyUEgKU/zuu3DbAKKC/yrpo8yA1Hu0M4kFd+yEg72EYMuX/fii0DSAAQB/sT/5VDOeYbnvH0dH3h10JUP7viSKrNAIA9MF4fH1Qk/++obcDlP97osw2gAAAXffWe29E1WzGUOUQMGkrAcMagJX/+6XANoAAAF3Wnp1vz/gP3cU0AL8Rg6L83zPFVWsEAOiqXBavmoFNikdpLsdbN/t7uuGLlP97prw2gAAAXXWh7fuvR1FS4BnCfgDl/34qrA0gAEAX5dJ/ftRuedba4NN7yv89VVTVRgCArsllyKJK/1+Qg8+16xvRZ8r/PVVWG0AAgK7JT/YrrvT/BVWPNwQq//dbQW0AAQC6JPe/m3ozipdWYr2tAij/91wx1RsBALpkMn6p+NX/vr5WAZT/e66cNoAAAF3SNJeCh3pYBVD+H4ZC2gACAHRF3vlv9f8Fo56V05X/B6KIKo4AAF0xKvLY39GqeKVX5Vjl/4Eoow0gAEAXzAYbk8eT1mIcG9EHyv/DUkAbQACALhhPNoKDjcY9CUbK/wMz+EAuAEAnmDwO1Zc7Iir/D8zw2wACAHRBFc8Fh1nr/PMBlP+HaeBtAAEAVm22yrgYHG403ohOU8EZqEFXdQQAWLXxxOR/nKrp9muk/D9Qw24DCACwal2f3Lqgy/dHUP4ftgG3AQQAWLWmMXkcp+nyHgnl/4EbbHVHAIDVWw+OVnV4ha38P3DDbQMIALBqVfVMcJxuDsDK/2UYaBtAAAD6oZOrMOX/QgyyyiMAAH3RvQCg/F+IYbYBBACgL+5Hlyj/l2WAbQABAOiH7a1uBQDl/9IMrtojAMCqNc2Pg/5R/i/M8NoAAgDQfU3sRpco/5dpYG0AAQBWraruBUerqt3oFOX/Qg2q6iMAwKrVHdvc1knNJ9Elyv+FGlYbQACAVaunO8Exqp3oCuX/sg2oDSAAwKptb+1G1464dU0z7VCbRPm/cIOp/ggA0An2ARxpGt15fZT/CzecNoAAAF3QNB8Gh0jl/67cA0D5n2wgbQABADqh3gkO1qlwpPxPaxBVIAEAuuDK1k7YB3CwUX0nukL5n9Yw2gACAHRFEzeCx1WxG69vdaP/r/zPowbQBhAAoCu6tNLtiml9NTpD+Z/H9L4aJABAV7Qr3Q6dd++COnaiK5T/eUz/2wACAHRJM+3QinfFqur2w3skrJ7yPwfpeRtAAIAuaTcDqgK0HnQpDCn/c6BeV4UEAOgaVYBurf4z5X8O1FzscxtAAICuKb0KkHf+d2n1r/zP4dZiNO5tdUgAgC7am74apd4XIO/879LqX/mfo4zilegpAQC6qJ0Au3QEbllS5eM7W7ejS5T/OVJ/2wACAHTVt7feLaoVkEv/s8pHdyj/c7zetgEEAOiyvenL0aSJsQR1vdWt0n+m/M8J9LQNIABAl+Wn4I3ql2Po+wGa1O64stW9OyE29U4xAYxz6GcbQACArst3CMyr46GaTf7b0UV5P8K0/nr7b4TD9bINIABAH+SJqK671R+fh6Z+v7OT/75chcn/xr36WTdp4lA9bAMIANAXQwsBs8l/M/oi70/49msvtN8DbQGe0L82gAAAfZJDQDOAPQGzsv9m9NGsLfCCagBf0Ls2gAAAfZM3y+3lvnRfV6H1VufL/sfZrwbYG8CjetYGEACgj/IElFehTbwffZHP+VcpuLT3NxiI/b0BWgK0+tUGEACgr3IIuHJps11Rd70l0NQ34kGa/POJhqGZhbGv9yqMsSi9agMIANB3eUW919EJqImP0uT/QlopX2530w9Ve1IghTEtAXrUBhAAYAj2qwG5xN6FzWm53J93y1+5dHH2dMNC5JbAEDZpcg79aQMIADAkucQ+25y2ov0BKXzkif/1S8927qE+y9L7TZqcU2/aAAIADFFedeeKQHvzmnaPwCJ77/fTZHejDR05fJQ68T/q802au0F5etIGqB77r2vvbaQS4t2Avvj2pSo4me3r62lg2ojx+MWoU5myivU4m1Teru5FM/0w/XqnqBL/aeVS8GSUx9SLQUnut+G74/teJgGUYfakvdsPP2aT0zhyELgYzSiVLatn2s83KRhUbQ97NnjVzSdpYbDbrmanqZLQuSf2ddhsAvh6XLtxO72mvXxiHGey3wa4HR0mAECpZpPTzsMPFim3Y67dCCGgILM2wO3oMHsAAJahPSboXgHl6P5pAAEAYFmEgJJ0/jSAAACwTO3dGxd6KoOu6PhpAAEAYNn28tMEhYDh63YbQAAAWLa8AXOvftl9Agav020AAQBgFfZvFuS2wcPW4TaAAACwKjkENPWrwYB1tw0gAACsUn52gKcIDlln2wACAMCq5acIVtWdYJg62gYQAAC64MH0VZsCh6qbbQABAKAL2lsz2w8wUJ1sAwgAAF2Rn6zYhP0AQ9TBNoAAANAlVy5tR1Q7wcB0rw0gAAB0zd40twLcH2BYOtcGEAAAuqa9P0DcCIalY20AAQCgi9pWgOcFDEu32gACAEBXNfVWMCSdagMIAABdNTsV8H4wHB1qAwgAAF02rS+HDYED0p02gAAA0GX5BkE2BA5JZ9oAAgBA103rd0MVYDg60gYQAAC6ThVgYLrRBhAAAPpAFWBIOtEGmATQPXl1cOEX1mM6vZhi+lo0zXqMqqfa32tiPYagaiez2YRWNz+OptqNKn1M9+7NHozDY/Jrcu3GjfS6vRH036wNcDtWSACALsgT/nhyMc2EL6UB/vn0mYvR7H1eo6vSR9PEoDz65eSvr2pmn5ykL/qtG/dSGLgX0/gw6ulOe2c8ZlWAyehS5BUkPfewDbDCsCsAwCpde28jRs0raXJP5cDaoP65FICaXP3YjFEOBDd3oo73Uxi4U3R1QBVgSPbbALdjRQQAWLac+ieTS9HUm1HV6zGwhf1iNCkoxUaMR2/E2ykMPJheLbYqoAowHCtuA9gECMuSJ/633nsjDd4fp9X+dlrFrQenk/c/NM1m+xq+ffNWek3XozSzEwEfBAOw2tMAAgAsQy71j0c/aid+K7f52A8COVQVp74dDMFKTwMIALBIOd2/ffP7qdR/14p/UVKoevvGx0VVA/IzAqLaCfpvhTcFEgBgUfZX/e0GPxYqtwZKqwY0zYfBAKyuDSAAwCLkiciqfwVyNSBVXEqoBsxuDET/rawNIADAvF27eethr59VyBWXC6O7gw8B7XFIbYBBWFEbQACAeWl3+d9Mq/5mM1it3BIoIQSE0wDDsJo2gAAA89DeyW+0055XpxtKCAF709vBEKykDSAAwDxcGN9K/f7ngm4ZegjQBhiOFbQBBAA4r7duXrfTv8M+DwFDvf+CNsAgLL8NIADAebTHzprLQbe1xwTH348h2pveCYZg6W0AAQDOqi0r2+3fH83GIO8TMHsmgscnD8GS2wACAJzFbNPf3aBnUmC7dn0jhsazAQZiuW0AAQDOYjJ+w01+emo0ujW4/QCNjYADsdQ2gAAAp9WW/vX9eyvvBxiPhvX9q6c7wTAssQ0gAMBpTca3gn6r4tKgqgD2AQzI8toAAgCcxps3N93sZxDW4sL4egxKdS8YgqW1AQQAOI2qKfDZ8wPVNJuDqgI0zUfBMCypDSAAwEnlx/va+DcsQ9oL0KgADMdy2gACAJxYvRkMy5D2AoynAsBwLKUNIADASeSd/9VqHtnJQq3FZLwZQ/AgdoPhWEIbQACAkxiNN4KhejGGID8YqBEChmPxbQABAE5iZPU/XM3GYNoAVbUbDMXC2wACABynnRwc/Ru0FTyLfSGa5sfBcCx44SEAwHHGk41g2MbxfAzDbjAgi20DCABwrHojGLZ6IBWeqnI3wGFZaBtAAIDjVNVzwbDl+zsMYR9A7XbAg7PANoAAAMdKZTiG78IAbvJkE+AALa4NIADAUWYX3rAeHcvBpuP+B73RngrA8CysDSAAwFGGsCrkZKpmPfrugRbAIC2oDSAAwFHqidV/KUbVMwGdtJg2gAAAR2kGsCoE+m4hbQABAAC6bgFtAAEAIGvs96DL5t8GEAAAoPvm3gYQAACgD+bcBhAAAKAX5tsGEAAAoB/m2gYQAACgL+bYBhAAAKA35tcGEAAAoD/m1gYQAACgT+bUBhAAAKBX5tMGEAAAoF/m0gYQAACgb+bQBhAAAKB3zt8GEAAAoH/O3QYQAACgj87ZBhAAAKCXztcGEAAAoJ/WYhwbcUYCAAD01Wj8YpyRAAAAfdU0L521DSAAAEB/5TbAxTgDAQAA+mw0PtNpAAEAAPrsjG0AAQAA+u1MbQABAAD67gxtgMnjf8He/ahHu9ElVeSyxrkfe8gcNLEbAHTPrA2wFdtb90/6Rx4PAK9v3Us/Phtd8ubNzRg1t4LVm9YvpDfXbgDQNfttgJ2T/gEtAAAYglO2AQQAABiCU54GEAAAYBhOdRpAAACAoThFG0AAAIChOEUbQAAAgOE4cRtAAACAITlhG0AAAIAhOWEbQAAAgGE5URtAAACAoTlBG0AAAIChOUEbQAAAgOE5tg0gAADAEB3TBhAAAGCIjmkDCAAAMExHtgEEAAAYqiPaAAIAAAzVEW0AAQAAhuvQNoAAAABDdkgbQAAAgCE7pA0gAADAsB3YBhAAAGDoDmgDCAAAMHQHtAEmAQAlqWI36ng/CicAAFCWptqNK69tR+G0AACgQAIAABRIAACAAgkAAFAgAQAACiQAAECBBAAAKJAAAAAFEgAAoEACAAAUSAAAgAIJAABQIAEAAAokAABAgQQAACiQAAAABRIAAKBAAgAAFEgAAIACCQAAUCABAAAKJAAAQIEEAAAokAAAAAUSAACgQAIAABRIAACAAgkAAFAgAQAACiQAAECBBAAAKJAAAAAFEgAAoEACAAAUSAAAgAIJAABQIAEAAAokAABAgQQAACiQAAAABRIAAKBAAgAAFEgAAIACCQAAUCABAAAKJAAAQIEEAAAo0CSAw1XT+xHjnVio5mL6YS04zr30Dbkfi9I0HwUURACAo1zZupN+vBOL9NbNu2n22QiOtle/HNtbuwHMhRYAABRIAACAAgkAAFAgAQAACiQAAECBBAAAKJAAAAAFEgAAoEACAAAUSAAAgAIJAABQIAEAAAokAABAgQQAACiQAAAABRIAAKBAAgAAFEgAAIACCQAAUCABAAAKJAAAQIEEAAAokAAAAAUSAACgQAIAABRIAACAAgkAAFAgAQAACiQAAECBBAAAKJAAAAAFEgAAoEACAAAUSAAAgAIJAABQIAEAAAokAABAgQQAACiQAAAABRIAAKBAAgAAFEgAAIACCQAAUCABAAAKJAAAQIEEAAAokAAAAAUSAACgQAIAABRIAACAAgkAAFAgAQAACiQAAECBBAAAKJAAAAAFEgAAoEACAAAUSAAAgAIJAABQIAEAAAokAABAgQQAACiQAAAABRIAAKBAAgAAFEgAAIACCQAAUCABAAAKJAAAQIEEAAAokAAAAAUSAACgQAIAABRIAACAAgkAAFAgAQAACiQAAECBBAAAKJAAAAAFEgAAoEACAAAUSAAAgAIJAABQIAEAAAokAABAgQQAACiQAAAABRIAAKBAAgAAFEgAAIACCQAAUCABAAAKJAAAQIEEAAAokAAAAAUSAACgQAIAABRoEl1XT+9EHTvB6m1v7Qbztzd9Of24FhzN++94+TXavv5sAAAAAAAAAAAAAAAAAAAAAAAA0G3/Av8JLVc2eXZJAAAAAElFTkSuQmCC",cbt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAGaCAYAAAB5bftCAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAB5bSURBVHgB7d09dhxHuibgL7Og6zZ20OgVNNobjyVzLLFXIMju0yJhS5RAgbTBn7lnTJErkOiNJ2gFglbQ6BUMrnuJyrwZVYT4CxIFVEVlRj7POQRFQOcIFDIj3vy+yIgqxu7gaDs++4+daJqdqNqdaLtfdfWnaGPxz0kV293H7YCStXE6/72qXv3e/blp/939+Sza6iTq+iy++cdJAEWoYkzSZD/Z2u0m+u5X3OoGt/T7TgDLOJmHhDZ+nQeDe/88DmBwyg4AFxN+NLfnE37EbgBrUB13FbPfI+qfBQIYhvICQJr0tyZ73T990dU004SvdA95nXUVguOYxYtoZj/Hwf5ZAL1TRgB4e9KfBtAfVfXzPAx89/WzAHpj2AHg8Ok06vbLrvR4OzzpQ7+lRYWpVfBydr+rCpwGsFHDCwDpab+e3I46vvS0D0OV1gxUj+PeP38OYCOGEwDmZf6tOxHN3fC0D2VIVYFZdV97APLrfwAw8UP5BAHIrt8B4Icne12P/yhM/DAO882H6n2tAVi/fgaAtLivar/X44eRqqpnFgvCevUrACxe50sT/90AiPogvv3n/QBWrj8BQLkf+JDUFnjZfK4aAKu1+QAwP4xn8uOrd/kBLqEaAKu02QCQev3R/OhAHuBKVANgZerYlAdPjqJqfjH5A1eWjuneqn/rxg/rhOCG8lcADo66G7gr+VvhD9xI9Si+/Xo/gGvJGwAeHu1GU//kqR9YkZM4b/6uJQDLyxcADp/e7kr+3ZO/Vf7AClkXANeSZw3Aw6d3usn/pzD5A6t2sS4gVRiBK1t/AHjw9Ptom0cBsD7b0XYh4PDxlwFcyXpbAGnyj+YgAHJpYy/u3XkewEetLwCY/IFNEQLgk9YTAEz+wKYJAfBRqw8AJn+gL4QAuNRqA4DJH+iXs6iaz+Ob/ZMA3rK6ALB4z/+nAOiXszhv/mafAHjbagLAfHvf+rfwnj/QR4vNglIIOAtg7ub7AKTJf1L/EiZ/oK/mmwVNVCjhDTcPAOlgH3v7A73XTuenkAJzk7iJ+aK/di8AhuF/xef/+zR++X+/B4zc9dcAWPQHDJNFgRDXbQGkvn80SmnAEG3PW5cwctcLAJP6QN8fGK75eoC7ASO2fAvghyd7UbfSMzB8VdcKsEkQI7VcBSCV/qv2+wAoQTvRymS0lgsASv9AUbQCGK+rtwAe/udutOe/BUBZ0lsBf7FLIGNz9QpAc+6VP6BE2/GZVgDjc7UAkBb+Kf0DpWrbvTg8mgaMyNUCgIV/QOmqiXGOUfl0APD0D4xCO1UFYEw+HQA8/QNjoQrAiHw8AHj6B0ZFFYDx+HgA8PQPjI0qACNxeQDw9A+MkioA43B5APD0D4xWfTugcB/eCfDw6TSq5pcAGCe7A1K8SyoAzV4AjNd2TGpnBFC09wPA/MS/+DIAxqyqbgUU7P0AUE+mATB6FgNStq33PlMP+em/2Y82TgLokXraVRUHuqh4vhjwOKBAbweAVP5PqXeo0uR/b/84gP744UnXVmxjkBbtUGsBKNLbLQDlf4A3bWsDUKp3AoDFfwBvq6cBBXodAA6Otgdd/gdYhyq+CCjQ6wAw2ZoGAO/aXTwgQVneaAE00wDgffXE1sAU53UAqMKmFwAfMjE+Up5FAFiUt3YDgPc11kdRnkUAmGyZ/AEuk45Gtw6AwrxqAej/A3zUJKYBBVkEgEr5H+CjqslOQEEuFgH+OQC4XBV/DSjIRQBQAQD4GAsBKUwdD49M/gCfUoVFgBSljmZrJwD4lO3FialQhjqqdicA+LRJ7AQUoo5WAAC4ktabAJSjnm9wAcCn1dYBUI46ovpTAPBpKqYUpAsArUQLcBW1BybKUUerpAUAY1N7txXgilprpihH2glQAACAkakDABgdAQAARkgAAIAREgAAYIQEAAAYIQEAAEZIAACAERIAAGCEBAAAGCEBAABGSAAAgBESAABghAQAABghAQAARkgAAIAREgAAYIQEAAAYIQEAAEZIAACAERIAAGCEBAAAGCEBAABGSAAAgBESAABghAQAABghAQAARkgAAIAR2gqAdWpmx93Hr6IEVZwFFEIAANbrYP+0+/gsgF7RAgCAERIAAGCEBAAAGCEBAABGSAAAgBESAABghAQAABghAQAARkgAAIAREgAAYIQEAAAYIQEAAEZIAACAERIAAGCEBAAAGCEBAABGSAAAgBESAABghAQAABghAQAARkgAAIAREgAAYIQEAAAYIQEAAEZoKwCSg/+7E/XLaVTtbtTVn6Ppfq9iu/vKdsA4nHW/TiOqs2jb36OtTmIyOYlv/nESBRIAYMwOn04jmtvdRP9lxH+/nujbthsDA8Ym3QO73Q2Qrv8Uhrt/PI94+Pi0+8RxNNXzuPfP4yiEAABjc3C0HVuTvW5k6yb9ZjeAj2tjp/uw1wWCvXkYmFX347uvn8XAWQMAY/LDk72Y1L91g9lRzJ90gKWkMFC3P3ZB4F/z+2nAVABgDA6Odrqn/h+70WsawM39EQSe3IqXs/txsH8aA6MCAKU7fHo7tuZP/dMAVqvt2gKf1b/E4dE0BkYAgJI9ePp9VM1PYSU/rE+qBlRdCEj324AIAFCq+WDUHASQSXe/DSgECABQIpM/bEgKAU/uxgAIAFCah0/vmPxhk9qjIawJEACgJGm1f2vyh42r6p/m92OPCQBQkkn9S1jwB32wvXj1tr8EACjFfMV/2rEM6Id22ufNggQAKMG81NgMYuERjMqk/X6+/XYPCQBQgkl9EEr/0D9pj4D52Rv9IwDA0KWn//lpfkA/tb28PwUAGLp6Mg2gz3b7+FqgAABDV7d3Aui5+nb0jAAAQ7Z4z9ixvtB3PWzTCQAwZFuT3j1VAB+03bc2gAAAQ9Yq/8Ng1JNeVQEEABiqh0e7Nv6BAWnb233aE0AAgKFq6r0AhmS7qwL0pm0nAMBwfRHAsNT9WQwoAMAQHT6dKv/DELW7fWkDbAUwQM1e5NTG71FXvwWUKG3Xmw7uyWP71dbAj2LDBAAYpluRU90Fjm/2TwJKlPbT2Kr/Ffmk9t3GA4AWAAxN7vJ/Facmf4p2sH/aXejHkU1XbehBG0AAgMHJXP5v4nlA+V5ETj04IVAAgOHJW/6fNc8CSnc+exZ5bfwtHgEAhuTw6e3Mq/9PFuVRKNzB/tnY2gACAAxKk3kTkUr5nzHJ2waY1HdjgwQAGJIqc9nwfPZzwFjkbgNUVd523jsEABiKVP5P7xBn05VDlf8Zk020ATZ4QqAAAENR5V79P1P+Z4zytgGinsaGCAAwBIvFQnnL/00cB4zNog1wFvls7GwAAQCGIPsJYsr/jNSiDZBv46v0Vs+G2gACAAxB7hPElP8Zs+ybX9UbOSJYAIC+S/uU5zuoZEH5nzFr5m+/5GsDVJtpAwgA0Hf1ZBpZKf8zcrnbAOntng20AQQA6Dvlf8ivnd2PrPK3AQQA6LPNlP9t/gOzSBWAotsAAgD0Wfbyf7xYlD9h5NJ90GbdEyB7G0AAgD7LXv5vPP3DHzKfhFlPst7vAgD0lfI/bNa9/ePI2QZo29s5TwgUAKCvtjJv/lNVz5T/4R1t1j0BtnNu+iUAQG+1uVf/Z94DHYYgc1ssY9tPAIA+mpf/YzfyOevKncr/8K7cbYBod3O1AQQA6KNJfTdyqiqTP1wmdxtga7IXGQgA0E+ZT/6z+Q9cLvvbMVnufwEA+ubh0e78hLBcqjh9VeYEPiR/G2Caow0gAEDfNJnL/2nvf+Dj2swnBGZoAwgA0D+3Iiflf7iC8toAAgD0yeHTqfI/9FC6T9rufslm3gbYiTUSAKBXmr3ISvkflpC3Wjap92KNBADoF+V/6K3mOHKqqrWOBwIA9IXyP/Tb/H7JWTXr2gBrPCFQAIDeUP6H3mvbXyOrehprIgBAX1SZN/+J2eMAljPLfERwrO9sAAEA+uDwaToBLNsxoPPy/zf7JwEs52D/NGv1LLUF19QGEACgF5q8R/824eQ/uK78bYC1jA8CAGxa2vIzd/m/zl7GhHLMmkeRU7WeNoAAAJtWT/KW/yNOlP/hBg72zzIvot1eRxtAAIBNq9u85f+ovPsPN5e5jbb6NoAAAJu02Oozb/n/fJZ7T3Moz/nsWeSU2gArPiFQAIBNqifTyOtksYoZuJFNtAEmsRsrJADAJtXre8f3g5rGu/+wOnnbAPVkpeOFAACbMi//t9PIqYnjAFYjdxugbW+vsg0gAMCmZC//d+VK5X9YnU20ARZvDa2EAACbkr387+Q/WLkm8xHBKxw3BADYBOV/KEMzf6vmLLJpd1fVBhAAYBOU/6EMizZAzo21tmNrshcrIADAJtTtnchJ+R/Wp81+suZK9g4RACC3xeY/K32f95OU/2F9ZvP7K2cbYLqKNoAAALltrW4V7xW9UP6HNUptgDbzngAraAMIAJBbm7v839j6F9Yu+wmbN24DCACQ08Oj3ahiJ3JqQgCAdZtFWgiYuw2wEzcgAEBOTb0Xeb1YrFIG1mrRBsi72HZys/FEAIC88p78p/wPGWW+36rqVtyAAAC5HD6dZi7/n8V3+88CyOPe/nHkbgMcHk3jmgQAyKbZi5yqytM/5Ja7DRD1NK5JAIB8blSuW1ozy/taEhDZ2wBx/bMBBADIIXf5v4rTrhypAgC55W4DpHHlmm0AAQCyyFz+z3tEKfCm/G2Aa20uJgBAHrnL//b+h43J/TbA9doAAgCs2+HT2xso/x8HsBnZ3waI7eu0AQQAWLsm897/yv+wcW1kPiFw+TaAAADrVuXe/Ef5HzavOY6cUhtgyRMCBQBYpx+e7EUqz+Wi/A/9kO7Dtrsf89mOyXLHjAsAsE51q/wP45W3GldPlloMKADAuizKccr/MFazzEcEt90DxxJtAAEA1qWe5H36V/6HfjnYP81cldteZtwRAGBd6utv0XktTdj6F/qmbX+NnJYYdwQAWIeDo535SV051ZnLjcCn5W4DRLt71TaAAADrUE+mkVMq/3+zfxJAv2yiDbA12bvKvygAwDrkLv+3VeZNR4Al5G7PXWnxsQAAq7aJ8v/5zMl/0Ffns2eRVTf+XKENIADAquUu/0ecLMqMQC8d7J9l36PjCm0AAQBWLXf5Pyrv/kP/9a4NIADAKin/Ax+ymTbAzsf+DQEAVmlrkn/rX+V/6L9NtAEm9d7HviwAwEq1mTf/sfUvDEjeNkBV3frol+PB4zZK0cavUVf/Csbp5ez+Rp+GU7ltq857/bnmYUi25/v159Q2n1+2RfhWlKSKW93/3FvBOE3mJ2+dxqZM6ruRm2se+Kh62n04/uBXAliVvCf/AXxKFXcu+5IAAKvw8Gi3u9F2AqBftuPwaPqhLwgAsArNBsr/AFdSf3DdgQAAq6EPD/RT9eHNyQQAuKnDp1Plf6DHPtgGEADgxpq9AOi199sAAgDcnPI/0G+pDfDOCYECANyE8j8wDNsxid03PyEAwI0o/wMDUU/eWgwoAMBNVDb/AQYibUP8RhtAAIDrOnyaFtVsB8AwbHdVgD8WAwoAcG1N5qN/AW6ofr0ngAAA15HKaJdsrgHQX+30og0gAMB1vFFGAxiUrcle+k0AgOuoWwEAGKr54mUBAJZ1cLQTjv4FBmvRBhAAYFn1ZBoAQ9a1AQQAWFZt8R8weF8IALC0rnwGMGjtVAAAgBESAABghAQAABghAQAARkgAAIAR2gouUR1H2/4ebXMSkziJl3EWB/unf3w57aX8WexEE2lP+N2oJreiabvfu89Bn7Rx2n188da1HPPr+eyPfydtbjTprt10Lbd1uo7/2n12N2CUxjH+V/HgcRu80v3QY/YizuPZW4PjMh4e7UZT3+3+6ZYwkFnbfB739o9j3YZxz5x0/z9exGx+LZ/GdaRQUMc0qvp71zLlG9/4LwAkVfUsmtnzlU8ePxztGTwzEgBi8eQyu7/y/w+HR10QmHxvDwSKM+Lxf+QBYE2D5bsEgTzGHACqrszfNF+5luGqjP9jXQTYlXea/fj26zwTxnf7z2LWTU5tPA9YtbZ5HC+bv2W7lu/d+Uv337wfMEzG/1fGVwFIT0ovux/GdfuiN/XgqOsP1UfB6o2vAnDW/Z3/nuXv/CGpLRD1j6oBDIbx/y3jqgC08fv8SWlTP/zk2/1HUXXfwzyFwjWlgew801P/ZdJ/e/FkcxrQd8b/94wnALTN826wml57decqfbN/0l0En4cQwHVs+inmTel7EALoO+P/B40jAKTkN4u7vfjhXxACuI4+Tf4XhAD6zPh/qfIDQBowZ83tXv3wL6SLoGn2A67mrHeT/4WLECDQ0ifG/48qPwD0dcC8kFaItvE44JOa+72+luffm7cD6BHj/0eVHQDang+YF2bNgfIpH5U2K0kLiPpuvsip+jlg04z/n1RuAEiln3v7BzEE8/JU81XAh8z7/rPhPFm/nKVrWSuAzTH+X0m5AaAZ2ISaXqny5MSHNM3zQTzJXEgDmrYWm2T8v5JCA0B1vNH3o6/r5cyCQN42pCeZN82a1K5QBWADjP9XVWYAaGfDfPqYP+WlE6nglbTN7xCpArApxv8rKy8ALJ6YhltKbwfU62X9zmO41/KiCgD5GP+XUl4AaOJFDNmidKV0SsyfBobU+3/XfHGTihYZGf+XUmALoBn+QjqnBpKkM8qHb9gDMgNj/F9GaQHgbJCLP97VVicBkxj+dXA+82YLuRj/l1RYAChk4mxmx8HYnc23Ch26RQtDS4sMjP/LKisAtO2vUQKDJqUMZgtl3Jf0m/F/aYUFgOo0ynEajFfb/h6laIVZMjD+L62sAFDNTqMc/w7GrKRJ8zRg3Yz/Syv/NMCh8tQ0blVVzs+/rCczWL9WCwDGqxEAgfUSAABghASAvqpiOxivqt2JUpT0d4EcMo3/KQAU1Guc7EQxqj8FY1ZSABRmWT/j/9LqohabFfWk0e4G41XFTpSiqv4asG7G/6WV1QKoqz9HCQ6O0hOTp6Yxa6OgSbN1LbN+xv+l1V06P41SNO00SjDZ8vQ/dqkCsBgIhu3gaKf76Hpm/Yz/S+sqAO1/RSkWg+ZODF5zO6CeDP86qCfTgByM/0sraw1AslXAoBnxRcAkbsXQVYU8lTEMxv+lpDUAp1GWYU+eD492i1oAxvW17e1BtwHS914Js2Rl/F9CXd42nd0Tx+HRNIaqqe8GLGx3TzR7MVSLFoYFgGRk/F9GHZNZSceOLtSTOzFEqX9VxZcBF6p2mNdyUrXfB+Rm/L+yOl4WeFLXonS6E0MzqQ8C3tR25cAfnuzF0KTvWSuLTTD+X1kdB/tpEWB5B49sTX6MIfH0z2Um3ZP00NYCePpnk4z/V/JqI6CqvDbAohc0nBWhn02OAj4kVQG2JsOZUB88/d7TP5tl/L+KRQBo29+jRFX94yBKQQ+f3pmXreBS7d1BLG5Kq5ijOQjYNOP/J70KACVWAOa2e18KShdo2zwK+JS65wNa+t6a+qeAfjD+f8IiADSz4yhWVwp68KSf5fX0w5/UvwRcxbwV0E2wfVwPkL6nSf2z0j/9Yvz/mEUAONg/jRIXAv6hK5+mvmSfXPzwDZgsZ7frF/bvqSZ9T1VJBxhRDuP/ZV6fBtjGiyha15fsy0Vg8ucmUr/wwePfelEJSN/Dgye/WMNCvxn/P+R1AKiKXQfwhu4iePhksyXUw6dTkz8r0FUC6t82uiZgMZD9Ni+zQu8Z/9/1OgCcz36OMUhPKpsaONNqz6ox+bMaaU3AZ91gsomNgg6f3o6t7j5yLTMkxv+3VG/96fDxv8Z1Q1ePuuDz+NUaiPVJqW++MYonpbVqm8/j3v5xrNuDx230TVU9i5ez+2u/ltPAmd5ZVvJn8Iz/7waAR91nhrv3+HVUcRqz6n589/WzWLWH/7kbzfldO/xlMuYAcGFdQSCVTbe2urGhSYeVOOCHMox8/H8nABx1SWWkr6WlCyGq44jJ4/jmH9dfDzF/HWpr1xP/BggAr6Ug0FTP494/j+Mm0tNL3aaNSqZh4qdUIx3/q/c+8+Dx/4+x3+gXF0NTvYi6Pv3oBfH6B74b87Oo578bKDdBAHjfxbU8i1+7UNA97ZyfvDr/433pWv7sP3ainU3nr/QtyvyuZcZlROP/+wHg8PFB91kHebyrfXVqYhpEo93u/rzd/X9KP2gDZF8IAFd11l2/Z65luKJCx/+t9z/VHEfUAsC7/lgc2e68+jMM1avBy7UMV1Lo+F+/95n5E1TqhQAApaov+XzhuwICwLh9OACcz55F0WcDAMC4fTgApFXCbTwOAKBI9aVfmTmjHgBKdXkAWFQBngcAUJz6419ungUAUJyPBwCvBAJAkepP/hvns68CACjKpwNAOlXMGwEAUJRPB4Bk1hyEfQEAoBhXCwD2BQCAolwtACRpX4CLE5EAgEG7egCYnyHeWBAIAAW4egBI0muBWgEAMHjLBYAkLQjUCgCAQVs+AGgFAMDgLR8AEq0AABi06wWA5N6du93HkwAABuf6ASA5b/4eNggCgMG5WQCYbxM8DwEAwIDcLAAk8/UAzf0AAAbj5gEgubefXg18HgDAIKwmACT37uxFVMcBAPTe6gJAcj5L6wG8GQAAPbfaAJA2CUpvBtgpEAB6bbUBIElvBsyaz4UAAOiv1QeARAgAgF5bTwBIhAAA6K31BYDkIgRYGAgAvbLeAJCkEHA+rwTYJwAAemL9ASBJbwekfQLsGAgAvZAnAFxIOwZGsx8AwEblDQDJt/uPupbAXywOBIDNyR8AktdvCFgXAAAbsJkAkKQQMD8/YN4SOAsAIJvNBYALi5bA3xwkBAD5bD4AJKka8O3Xn0fTfGVtAACsXz8CwIXv9p9ZGwAA69evAJBcrA3wpgAArE3/AsCFRRD4i7YAAKxefwPAhdQWEAQAYKX6HwAuvBkEvDEAADcynABwIQWB9MZAa7EgAFzX8ALAhXv7x38sFpxXBRw5DABXtRVDlxYLRjyb/zo42un+Rre7XPNl9+fdAAA+aPgB4E2LMPBo/iuFgTqmMZl8EW077T63HQDAXFkB4E1vVgaSw6NpVF1VoJrciqbtfo+dAICRKjcAvCutGYhIvx7N/3xwtB2TFAi6X229E1X114g2VQm0DgAo3ngCwLsO9tMJhMevfr3ztaMUBFJA2Hn1me1oX7UQ6smXXVCYRgmqSMcy349SNPaJWNpiAS1wFVWdHhrvRCGq4OoO/8+XUc2eRQnS5P+y+fxVq4RlPHjcRim+vWMMgKs6fNq1kptfohDDfQ0wN5M/AAURAK7C5A9AYQSATzH5A1AgAeBjTP4AFEoAuIzJH4BynQkAH2LyB6BkrQDwPpM/ACMgALzJ5A/ASAgAF0z+AIyIAJCY/AEYGQHA5A/ACI07AJj8ARip8QYAkz8AIzbOAGDyB2DkxhcATP4AMLIAYPIHgLnxBACTPwD8YRwBwOQPAG8pPwCY/AHgPWUHAJM/AHxQuQHA5A8AlyozAJj8AeByVZyVFwBM/gDwCVVhAcDkDwBXUlYAqJq9KIHJH4A1cxxw35j8AchAAOgTkz8AmQgAfWHyByAjAaAPTP4AZCYAbJrJH4ANEAA2yeQPMBz1+VkURADYFJP/kJUyCBQ1mMHavSzrnhEANsHkP2xtMYPAaQDLEAC4AZP/8FWlDAKVCgAs42D/rHsAOI0StO3vAkBOJv8ytPF7lKBtfw1gOVUh939VnQoAuZj8y1FVJ1GE5jiAJVXHUYJ2diIA5GDyL8v57OcYunRN3ts/DmA55wUcOPfq/hcA1s3kX575z3LoTwGFPMVAbmkdQCH3vwCwTib/kr2IIXs5ux/A9bRDv39mj9NHAWBdTP5lW5QBh7mKvqqeuS7hBubts6FWAbrv+5v9+TomAWAdTP7lm5cBm2E+BXj6h5sbahXgfPbVxT8KAKtm8h+Pb/cfDe4poO1Ci2sTbi5VAdp4HEPSNo/fvP8FgFUy+Y/PIk0PpBXQhZV7+wcBrMasOeg+DuO14MXK/7tvfkoAWBWT/ziln3fb/D36Ll2fb5T+gBVIrcDz7v7v++6AF/PTOwSAVTD5j1sqBTZNfydX1yesT7qvZt391dcQ8JH7XwC4KYMryXf7z7pKQP8GAdcnrF9fQ8An7n8B4CYMrrwpVQL6NAhU1c/d9fk31ydk8DoEPI8+SAv+PnH/V1GSB09+6f7W08jB5M/H/HC0F1X9fXed7ERu6dpMLQlb/cJmbPL+T4t90yuKV7j/BYDrMPlzVWkgqCdf5gmm3Y3fzJ7P2xHA5uW7/9P2xCdXnfgvlBYA7nZ/o7/GuqWNVEz+LOPgaDsmsdtdn7vR1jtRV3+Km2ra/4qqOZ23HGZxvNicCOidi/s/6mn3p+0V3f//7u7/s+7+P+nu/5Pr3P//A8g9GdEFHTS5AAAAAElFTkSuQmCC";Qn.register(md,gF,bS);Qn.register(...qxt);const SS=e=>{var t,n,r;const[i,o]=AS(),s=(r=(n=(t=e==null?void 0:e.options)==null?void 0:t.plugins)==null?void 0:n.title)==null?void 0:r.text,a=s!=null&&s.includes("Commute")?cbt:lbt,l={beforeDatasetsDraw(h){const{ctx:f,chartArea:{width:p,bottom:g},scales:{x:y,y:m}}=h;f.save(),f.imageSmoothingQuality="high";const x=new Image;x.src=a,x.onload=()=>{f.drawImage(x,(p-40)/2,g/2,40,40)}}},c=e.data.datasets.map(h=>({...h,backgroundColor:["rgba(0, 132, 145, 1)","rgba(62, 49, 91, 1)","rgba(151, 184, 126, 1)","rgba(249, 249, 153, 1)"]})),u=["linear","easeInOutCubic","easeInOutQuint","easeInOutSine","easeInOutExpo","easeInOutCirc","easeInOutBack"],d={...Mp,options:{...Mp.options,animation:{duration:Math.floor(Math.random()*(1e3-900+1))+900,easing:u[Math.floor(Math.random()*u.length)]},plugins:{...Mp.options.plugins,title:{...Mp.options.plugins.title,text:"Chart.js Doughnut Chart"}}},plugins:[l]};return dt(wS,{ref:i,height:o.width/2,children:dt(nbt,{...eS.mergeDeep(d,e,{data:{datasets:c}})})})},ubt=z.div`
|
|
992
|
+
background: linear-gradient(
|
|
993
|
+
to top,
|
|
994
|
+
${M["--ll-color-primary-variant1"]},
|
|
995
|
+
${M["--ll-color-primary"]}
|
|
996
|
+
);
|
|
997
|
+
padding: ${M["--ll-spacing-medium"]} ${M["--ll-spacing-x-large"]};
|
|
998
|
+
border-radius: ${M["--ll-border-radius-medium"]};
|
|
999
|
+
`,dbt=z.div`
|
|
1000
|
+
width: 100%;
|
|
1001
|
+
display: flex;
|
|
1002
|
+
flex-direction: column;
|
|
1003
|
+
align-items: center;
|
|
1004
|
+
justify-content: center;
|
|
1005
|
+
margin-top: 30px;
|
|
1006
|
+
margin-bottom: 30px;
|
|
1007
|
+
`,hbt=z.div`
|
|
1008
|
+
width: 100%;
|
|
1009
|
+
display: flex;
|
|
1010
|
+
flex-direction: ${({$isSingleItem:e})=>e?"column":"row"};
|
|
1011
|
+
justify-content: ${({$isSingleItem:e})=>e?"center":"space-between"};
|
|
1012
|
+
align-items: center;
|
|
1013
|
+
margin-bottom: ${({$isSingleItem:e})=>e?"0px":`${M["--ll-spacing-medium"]}`};
|
|
1014
|
+
`,fbt=z.div`
|
|
1015
|
+
display: flex;
|
|
1016
|
+
align-items: center;
|
|
1017
|
+
|
|
1018
|
+
div {
|
|
1019
|
+
margin-right: ${({$isSingleItem:e})=>e?"0px":`${M["--ll-spacing-medium"]}`};
|
|
1020
|
+
}
|
|
1021
|
+
`,AF=({options:{title:e,values:t}})=>{const n=v.exports.useMemo(()=>({isSingleItem:Boolean((t==null?void 0:t.length)===1),svgSize:(t==null?void 0:t.length)===1?64:32}),[t]);return ji(ubt,{children:[dt(Qt,{variant:"h6",color:"--ll-color-background",children:e}),dt(dbt,{children:t==null?void 0:t.map(r=>ji(hbt,{$isSingleItem:n.isSingleItem,children:[ji(fbt,{$isSingleItem:n.isSingleItem,children:[dt(rr,{SVGElement:r.SVGElement,width:n.svgSize,height:n.svgSize,fill:M["--ll-color-background"]}),!n.isSingleItem&&dt(Qt,{variant:`${n.isSingleItem?"h2":"h4"}`,color:"--ll-color-background",noMargin:!0,children:r.label})]}),dt(Qt,{variant:`${n.isSingleItem?"h2":"h4"}`,color:"--ll-color-background",noMargin:!0,children:r.value})]},r.variable))})]})};function pbt(e){const t=ds(e);v.exports.useEffect(()=>{const n=r=>{r.key==="Escape"&&t(r)};return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[t])}const N_="dismissableLayer.update",gbt="dismissableLayer.pointerDownOutside",mbt="dismissableLayer.focusOutside";let zP;const vbt=v.exports.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),SF=v.exports.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:s,onDismiss:a,...l}=e,c=v.exports.useContext(vbt),[u,d]=v.exports.useState(null),[,h]=v.exports.useState({}),f=Wt(t,A=>d(A)),p=Array.from(c.layers),[g]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=p.indexOf(g),m=u?p.indexOf(u):-1,x=c.layersWithOutsidePointerEventsDisabled.size>0,b=m>=y,_=ybt(A=>{const S=A.target,E=[...c.branches].some(k=>k.contains(S));!b||E||(i==null||i(A),s==null||s(A),A.defaultPrevented||a==null||a())}),w=xbt(A=>{const S=A.target;[...c.branches].some(E=>E.contains(S))||(o==null||o(A),s==null||s(A),A.defaultPrevented||a==null||a())});return pbt(A=>{m===c.layers.size-1&&(r==null||r(A),!A.defaultPrevented&&a&&(A.preventDefault(),a()))}),v.exports.useEffect(()=>{if(u)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(zP=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),BP(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(document.body.style.pointerEvents=zP)}},[u,n,c]),v.exports.useEffect(()=>()=>{!u||(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),BP())},[u,c]),v.exports.useEffect(()=>{const A=()=>h({});return document.addEventListener(N_,A),()=>document.removeEventListener(N_,A)},[]),v.exports.createElement(Pt.div,it({},l,{ref:f,style:{pointerEvents:x?b?"auto":"none":void 0,...e.style},onFocusCapture:Lt(e.onFocusCapture,w.onFocusCapture),onBlurCapture:Lt(e.onBlurCapture,w.onBlurCapture),onPointerDownCapture:Lt(e.onPointerDownCapture,_.onPointerDownCapture)}))});function ybt(e){const t=ds(e),n=v.exports.useRef(!1),r=v.exports.useRef(()=>{});return v.exports.useEffect(()=>{const i=s=>{if(s.target&&!n.current){let a=function(){EF(gbt,t,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(document.removeEventListener("click",r.current),r.current=a,document.addEventListener("click",r.current,{once:!0})):a()}n.current=!1},o=window.setTimeout(()=>{document.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),document.removeEventListener("pointerdown",i),document.removeEventListener("click",r.current)}},[t]),{onPointerDownCapture:()=>n.current=!0}}function xbt(e){const t=ds(e),n=v.exports.useRef(!1);return v.exports.useEffect(()=>{const r=i=>{i.target&&!n.current&&EF(mbt,t,{originalEvent:i},{discrete:!1})};return document.addEventListener("focusin",r),()=>document.removeEventListener("focusin",r)},[t]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function BP(){const e=new CustomEvent(N_);document.dispatchEvent(e)}function EF(e,t,n,{discrete:r}){const i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?_gt(i,o):i.dispatchEvent(o)}let jy=0;function CF(){v.exports.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:VP()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:VP()),jy++,()=>{jy===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),jy--}},[])}function VP(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const Hy="focusScope.autoFocusOnMount",Uy="focusScope.autoFocusOnUnmount",jP={bubbles:!1,cancelable:!0},kF=v.exports.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...s}=e,[a,l]=v.exports.useState(null),c=ds(i),u=ds(o),d=v.exports.useRef(null),h=Wt(t,g=>l(g)),f=v.exports.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.exports.useEffect(()=>{if(r){let g=function(m){if(f.paused||!a)return;const x=m.target;a.contains(x)?d.current=x:Ws(d.current,{select:!0})},y=function(m){f.paused||!a||a.contains(m.relatedTarget)||Ws(d.current,{select:!0})};return document.addEventListener("focusin",g),document.addEventListener("focusout",y),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",y)}}},[r,a,f.paused]),v.exports.useEffect(()=>{if(a){UP.add(f);const g=document.activeElement;if(!a.contains(g)){const y=new CustomEvent(Hy,jP);a.addEventListener(Hy,c),a.dispatchEvent(y),y.defaultPrevented||(bbt(Ebt(TF(a)),{select:!0}),document.activeElement===g&&Ws(a))}return()=>{a.removeEventListener(Hy,c),setTimeout(()=>{const y=new CustomEvent(Uy,jP);a.addEventListener(Uy,u),a.dispatchEvent(y),y.defaultPrevented||Ws(g!=null?g:document.body,{select:!0}),a.removeEventListener(Uy,u),UP.remove(f)},0)}}},[a,c,u,f]);const p=v.exports.useCallback(g=>{if(!n&&!r||f.paused)return;const y=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,m=document.activeElement;if(y&&m){const x=g.currentTarget,[b,_]=_bt(x);b&&_?!g.shiftKey&&m===_?(g.preventDefault(),n&&Ws(b,{select:!0})):g.shiftKey&&m===b&&(g.preventDefault(),n&&Ws(_,{select:!0})):m===x&&g.preventDefault()}},[n,r,f.paused]);return v.exports.createElement(Pt.div,it({tabIndex:-1},s,{ref:h,onKeyDown:p}))});function bbt(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ws(r,{select:t}),document.activeElement!==n)return}function _bt(e){const t=TF(e),n=HP(t,e),r=HP(t.reverse(),e);return[n,r]}function TF(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function HP(e,t){for(const n of e)if(!wbt(n,{upTo:t}))return n}function wbt(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Abt(e){return e instanceof HTMLInputElement&&"select"in e}function Ws(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Abt(e)&&t&&e.select()}}const UP=Sbt();function Sbt(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=WP(e,t),e.unshift(t)},remove(t){var n;e=WP(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function WP(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Ebt(e){return e.filter(t=>t.tagName!=="A")}const MF=v.exports.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...i}=e;return r?_R.createPortal(v.exports.createElement(Pt.div,it({},i,{ref:t})),r):null}),Cbt=v.exports.forwardRef((e,t)=>v.exports.createElement(Pt.span,it({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})));var kbt=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ha=new WeakMap,$p=new WeakMap,Pp={},Wy=0,Tbt=function(e,t,n,r){var i=Array.isArray(e)?e:[e];Pp[n]||(Pp[n]=new WeakMap);var o=Pp[n],s=[],a=new Set,l=new Set(i),c=function(d){!d||a.has(d)||(a.add(d),c(d.parentNode))};i.forEach(c);var u=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(h){if(a.has(h))u(h);else{var f=h.getAttribute(r),p=f!==null&&f!=="false",g=(Ha.get(h)||0)+1,y=(o.get(h)||0)+1;Ha.set(h,g),o.set(h,y),s.push(h),g===1&&p&&$p.set(h,!0),y===1&&h.setAttribute(n,"true"),p||h.setAttribute(r,"true")}})};return u(t),a.clear(),Wy++,function(){s.forEach(function(d){var h=Ha.get(d)-1,f=o.get(d)-1;Ha.set(d,h),o.set(d,f),h||($p.has(d)||d.removeAttribute(r),$p.delete(d)),f||d.removeAttribute(n)}),Wy--,Wy||(Ha=new WeakMap,Ha=new WeakMap,$p=new WeakMap,Pp={})}},$F=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=t||kbt(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),Tbt(r,i,n,"aria-hidden")):function(){return null}},ni=function(){return ni=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},ni.apply(this,arguments)};function PF(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Mbt(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var Lg="right-scroll-bar-position",Ig="width-before-scroll-bar",$bt="with-scroll-bars-hidden",Pbt="--removed-body-scroll-bar-size";function Obt(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Rbt(e,t){var n=v.exports.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}function Dbt(e,t){return Rbt(t||null,function(n){return e.forEach(function(r){return Obt(r,n)})})}function Lbt(e){return e}function Ibt(e,t){t===void 0&&(t=Lbt);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(o){var s=t(o,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(o){for(r=!0;n.length;){var s=n;n=[],s.forEach(o)}n={push:function(a){return o(a)},filter:function(){return n}}},assignMedium:function(o){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(o),s=n}var l=function(){var u=s;s=[],u.forEach(o)},c=function(){return Promise.resolve().then(l)};c(),n={push:function(u){s.push(u),c()},filter:function(u){return s=s.filter(u),n}}}};return i}function Nbt(e){e===void 0&&(e={});var t=Ibt(null);return t.options=ni({async:!0,ssr:!1},e),t}var OF=function(e){var t=e.sideCar,n=PF(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return dt(r,{...ni({},n)})};OF.isSideCarExport=!0;function Fbt(e,t){return e.useMedium(t),OF}var RF=Nbt(),Yy=function(){},Wv=v.exports.forwardRef(function(e,t){var n=v.exports.useRef(null),r=v.exports.useState({onScrollCapture:Yy,onWheelCapture:Yy,onTouchMoveCapture:Yy}),i=r[0],o=r[1],s=e.forwardProps,a=e.children,l=e.className,c=e.removeScrollBar,u=e.enabled,d=e.shards,h=e.sideCar,f=e.noIsolation,p=e.inert,g=e.allowPinchZoom,y=e.as,m=y===void 0?"div":y,x=PF(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),b=h,_=Dbt([n,t]),w=ni(ni({},x),i);return ji(X2,{children:[u&&dt(b,{sideCar:RF,removeScrollBar:c,shards:d,noIsolation:f,inert:p,setCallbacks:o,allowPinchZoom:!!g,lockRef:n}),s?v.exports.cloneElement(v.exports.Children.only(a),ni(ni({},w),{ref:_})):dt(m,{...ni({},w,{className:l,ref:_}),children:a})]})});Wv.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Wv.classNames={fullWidth:Ig,zeroRight:Lg};var zbt=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Bbt(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=zbt();return t&&e.setAttribute("nonce",t),e}function Vbt(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function jbt(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Hbt=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Bbt())&&(Vbt(t,n),jbt(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ubt=function(){var e=Hbt();return function(t,n){v.exports.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},DF=function(){var e=Ubt(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},Wbt={left:0,top:0,right:0,gap:0},Gy=function(e){return parseInt(e||"",10)||0},Ybt=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[Gy(n),Gy(r),Gy(i)]},Gbt=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Wbt;var t=Ybt(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},qbt=DF(),Xbt=function(e,t,n,r){var i=e.left,o=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),`
|
|
1022
|
+
.`.concat($bt,` {
|
|
1023
|
+
overflow: hidden `).concat(r,`;
|
|
1024
|
+
padding-right: `).concat(a,"px ").concat(r,`;
|
|
1025
|
+
}
|
|
1026
|
+
body {
|
|
1027
|
+
overflow: hidden `).concat(r,`;
|
|
1028
|
+
overscroll-behavior: contain;
|
|
1029
|
+
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
1030
|
+
padding-left: `.concat(i,`px;
|
|
1031
|
+
padding-top: `).concat(o,`px;
|
|
1032
|
+
padding-right: `).concat(s,`px;
|
|
1033
|
+
margin-left:0;
|
|
1034
|
+
margin-top:0;
|
|
1035
|
+
margin-right: `).concat(a,"px ").concat(r,`;
|
|
1036
|
+
`),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
1037
|
+
}
|
|
1038
|
+
|
|
1039
|
+
.`).concat(Lg,` {
|
|
1040
|
+
right: `).concat(a,"px ").concat(r,`;
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1043
|
+
.`).concat(Ig,` {
|
|
1044
|
+
margin-right: `).concat(a,"px ").concat(r,`;
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1047
|
+
.`).concat(Lg," .").concat(Lg,` {
|
|
1048
|
+
right: 0 `).concat(r,`;
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
.`).concat(Ig," .").concat(Ig,` {
|
|
1052
|
+
margin-right: 0 `).concat(r,`;
|
|
1053
|
+
}
|
|
1054
|
+
|
|
1055
|
+
body {
|
|
1056
|
+
`).concat(Pbt,": ").concat(a,`px;
|
|
1057
|
+
}
|
|
1058
|
+
`)},Qbt=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r,o=v.exports.useMemo(function(){return Gbt(i)},[i]);return dt(qbt,{styles:Xbt(o,!t,i,n?"":"!important")})},F_=!1;if(typeof window<"u")try{var Op=Object.defineProperty({},"passive",{get:function(){return F_=!0,!0}});window.addEventListener("test",Op,Op),window.removeEventListener("test",Op,Op)}catch(e){F_=!1}var Ua=F_?{passive:!1}:!1,Kbt=function(e){var t=window.getComputedStyle(e);return t.overflowY!=="hidden"&&!(t.overflowY===t.overflowX&&t.overflowY==="visible")},Zbt=function(e){var t=window.getComputedStyle(e);return t.overflowX!=="hidden"&&!(t.overflowY===t.overflowX&&t.overflowX==="visible")},YP=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=LF(e,n);if(r){var i=IF(e,n),o=i[1],s=i[2];if(o>s)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},Jbt=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},t_t=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},LF=function(e,t){return e==="v"?Kbt(t):Zbt(t)},IF=function(e,t){return e==="v"?Jbt(t):t_t(t)},e_t=function(e,t){return e==="h"&&t==="rtl"?-1:1},n_t=function(e,t,n,r,i){var o=e_t(e,window.getComputedStyle(t).direction),s=o*r,a=n.target,l=t.contains(a),c=!1,u=s>0,d=0,h=0;do{var f=IF(e,a),p=f[0],g=f[1],y=f[2],m=g-y-o*p;(p||m)&&LF(e,a)&&(d+=m,h+=p),a=a.parentNode}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(u&&(i&&d===0||!i&&s>d)||!u&&(i&&h===0||!i&&-s>h))&&(c=!0),c},Rp=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},GP=function(e){return[e.deltaX,e.deltaY]},qP=function(e){return e&&"current"in e?e.current:e},r_t=function(e,t){return e[0]===t[0]&&e[1]===t[1]},i_t=function(e){return`
|
|
1059
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
1060
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
1061
|
+
`)},o_t=0,Wa=[];function s_t(e){var t=v.exports.useRef([]),n=v.exports.useRef([0,0]),r=v.exports.useRef(),i=v.exports.useState(o_t++)[0],o=v.exports.useState(function(){return DF()})[0],s=v.exports.useRef(e);v.exports.useEffect(function(){s.current=e},[e]),v.exports.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var g=Mbt([e.lockRef.current],(e.shards||[]).map(qP),!0).filter(Boolean);return g.forEach(function(y){return y.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),g.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var a=v.exports.useCallback(function(g,y){if("touches"in g&&g.touches.length===2)return!s.current.allowPinchZoom;var m=Rp(g),x=n.current,b="deltaX"in g?g.deltaX:x[0]-m[0],_="deltaY"in g?g.deltaY:x[1]-m[1],w,A=g.target,S=Math.abs(b)>Math.abs(_)?"h":"v";if("touches"in g&&S==="h"&&A.type==="range")return!1;var E=YP(S,A);if(!E)return!0;if(E?w=S:(w=S==="v"?"h":"v",E=YP(S,A)),!E)return!1;if(!r.current&&"changedTouches"in g&&(b||_)&&(r.current=w),!w)return!0;var k=r.current||w;return n_t(k,y,g,k==="h"?b:_,!0)},[]),l=v.exports.useCallback(function(g){var y=g;if(!(!Wa.length||Wa[Wa.length-1]!==o)){var m="deltaY"in y?GP(y):Rp(y),x=t.current.filter(function(w){return w.name===y.type&&w.target===y.target&&r_t(w.delta,m)})[0];if(x&&x.should){y.preventDefault();return}if(!x){var b=(s.current.shards||[]).map(qP).filter(Boolean).filter(function(w){return w.contains(y.target)}),_=b.length>0?a(y,b[0]):!s.current.noIsolation;_&&y.preventDefault()}}},[]),c=v.exports.useCallback(function(g,y,m,x){var b={name:g,delta:y,target:m,should:x};t.current.push(b),setTimeout(function(){t.current=t.current.filter(function(_){return _!==b})},1)},[]),u=v.exports.useCallback(function(g){n.current=Rp(g),r.current=void 0},[]),d=v.exports.useCallback(function(g){c(g.type,GP(g),g.target,a(g,e.lockRef.current))},[]),h=v.exports.useCallback(function(g){c(g.type,Rp(g),g.target,a(g,e.lockRef.current))},[]);v.exports.useEffect(function(){return Wa.push(o),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:h}),document.addEventListener("wheel",l,Ua),document.addEventListener("touchmove",l,Ua),document.addEventListener("touchstart",u,Ua),function(){Wa=Wa.filter(function(g){return g!==o}),document.removeEventListener("wheel",l,Ua),document.removeEventListener("touchmove",l,Ua),document.removeEventListener("touchstart",u,Ua)}},[]);var f=e.removeScrollBar,p=e.inert;return ji(X2,{children:[p?dt(o,{styles:i_t(i)}):null,f?dt(Qbt,{gapMode:"margin"}):null]})}const a_t=Fbt(RF,s_t);var NF=v.exports.forwardRef(function(e,t){return dt(Wv,{...ni({},e,{ref:t,sideCar:a_t})})});NF.classNames=Wv.classNames;const FF=NF,l_t=[" ","Enter","ArrowUp","ArrowDown"],c_t=[" ","Enter"],Yv="Select",[Gv,ES,u_t]=rN(Yv),[nf,d_t]=Tc(Yv,[u_t]),[h_t,Mc]=nf(Yv),[f_t,p_t]=nf(Yv),zF=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:o,value:s,defaultValue:a,onValueChange:l,dir:c,name:u,autoComplete:d}=e,[h,f]=v.exports.useState(null),[p,g]=v.exports.useState(null),[y,m]=v.exports.useState(!1),x=nN(c),[b=!1,_]=fh({prop:r,defaultProp:i,onChange:o}),[w,A]=fh({prop:s,defaultProp:a,onChange:l}),S=v.exports.useRef(null),E=h?Boolean(h.closest("form")):!0,[k,C]=v.exports.useState(new Set),T=Array.from(k).map($=>$.props.value).join(";");return v.exports.createElement(h_t,{scope:t,trigger:h,onTriggerChange:f,valueNode:p,onValueNodeChange:g,valueNodeHasChildren:y,onValueNodeHasChildrenChange:m,contentId:Qh(),value:w,onValueChange:A,open:b,onOpenChange:_,dir:x,triggerPointerDownPosRef:S},v.exports.createElement(Gv.Provider,{scope:t},v.exports.createElement(f_t,{scope:e.__scopeSelect,onNativeOptionAdd:v.exports.useCallback($=>{C(I=>new Set(I).add($))},[]),onNativeOptionRemove:v.exports.useCallback($=>{C(I=>{const N=new Set(I);return N.delete($),N})},[])},n)),E?v.exports.createElement(n7,{key:T,"aria-hidden":!0,tabIndex:-1,name:u,autoComplete:d,value:w,onChange:$=>A($.target.value)},Array.from(k)):null)},g_t="SelectTrigger",BF=v.exports.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,"aria-labelledby":i,...o}=e,s=Mc(g_t,n),a=Wt(t,s.onTriggerChange),l=ES(n),c=Z8(s.trigger),u=i||c,[d,h,f]=r7(g=>{const y=l().filter(b=>!b.disabled),m=y.find(b=>b.value===s.value),x=i7(y,g,m);x!==void 0&&s.onValueChange(x.value)}),p=()=>{r||(s.onOpenChange(!0),f())};return v.exports.createElement(Pt.button,it({type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-autocomplete":"none","aria-labelledby":u,dir:s.dir,"data-state":s.open?"open":"closed",disabled:r,"data-disabled":r?"":void 0,"data-placeholder":s.value===void 0?"":void 0},o,{ref:a,onPointerDown:Lt(o.onPointerDown,g=>{g.target.releasePointerCapture(g.pointerId),g.button===0&&g.ctrlKey===!1&&(p(),s.triggerPointerDownPosRef.current={x:Math.round(g.pageX),y:Math.round(g.pageY)},g.preventDefault())}),onKeyDown:Lt(o.onKeyDown,g=>{const y=d.current!=="";!(g.ctrlKey||g.altKey||g.metaKey)&&g.key.length===1&&h(g.key),!(y&&g.key===" ")&&l_t.includes(g.key)&&(p(),g.preventDefault())})}))}),m_t="SelectValue",VF=v.exports.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,children:o,placeholder:s,...a}=e,l=Mc(m_t,n),{onValueNodeHasChildrenChange:c}=l,u=o!==void 0,d=Wt(t,l.onValueNodeChange);return zn(()=>{c(u)},[c,u]),v.exports.createElement(Pt.span,it({},a,{ref:d,style:{pointerEvents:"none"}}),l.value===void 0&&s!==void 0?s:o)}),qv=v.exports.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...i}=e;return v.exports.createElement(Pt.span,it({"aria-hidden":!0},i,{ref:t}),r||"\u25BC")}),jF=e=>v.exports.createElement(MF,it({asChild:!0},e)),CS="SelectContent",HF=v.exports.forwardRef((e,t)=>{const n=Mc(CS,e.__scopeSelect),[r,i]=v.exports.useState();return zn(()=>{i(new DocumentFragment)},[]),v.exports.createElement(v.exports.Fragment,null,n.open?v.exports.createElement(v_t,it({},e,{ref:t})):r?Vn.exports.createPortal(v.exports.createElement(UF,{scope:e.__scopeSelect},v.exports.createElement(Gv.Slot,{scope:e.__scopeSelect},v.exports.createElement("div",null,e.children))),r):null)}),vo=10,[UF,$c]=nf(CS),v_t=v.exports.forwardRef((e,t)=>{const{__scopeSelect:n,onCloseAutoFocus:r,...i}=e,o=Mc(CS,n),[s,a]=v.exports.useState(null),[l,c]=v.exports.useState(null),[u,d]=v.exports.useState(null),h=Wt(t,P=>c(P)),[f,p]=v.exports.useState(null),[g,y]=v.exports.useState(null),m=ES(n),[x,b]=v.exports.useState(!1),_=v.exports.useRef(!0),w=v.exports.useRef(!1),A=v.exports.useRef(!1);v.exports.useEffect(()=>{if(l)return $F(l)},[l]),CF();const[S,E]=v.exports.useState();zn(()=>{l&&E(window.getComputedStyle(l).zIndex)},[l]);const k=v.exports.useCallback(P=>{const[G,...U]=m().map(V=>V.ref.current),[B]=U.slice(-1),R=document.activeElement;for(const V of P)if(V===R||(V==null||V.scrollIntoView({block:"nearest"}),V===G&&u&&(u.scrollTop=0),V===B&&u&&(u.scrollTop=u.scrollHeight),V==null||V.focus(),document.activeElement!==R))return},[m,u]),C=v.exports.useCallback(()=>{if(o.trigger&&o.valueNode&&s&&l&&u&&f&&g){const P=o.trigger.getBoundingClientRect(),G=l.getBoundingClientRect(),U=o.valueNode.getBoundingClientRect(),B=g.getBoundingClientRect();if(o.dir!=="rtl"){const Ot=B.left-G.left,ye=U.left-Ot,Ar=P.left-ye,fn=P.width+Ar,Es=Math.max(fn,G.width),Cs=window.innerWidth-vo,ks=__(ye,[vo,Cs-Es]);s.style.minWidth=fn+"px",s.style.left=ks+"px"}else{const Ot=G.right-B.right,ye=window.innerWidth-U.right-Ot,Ar=window.innerWidth-P.right-ye,fn=P.width+Ar,Es=Math.max(fn,G.width),Cs=window.innerWidth-vo,ks=__(ye,[vo,Cs-Es]);s.style.minWidth=fn+"px",s.style.right=ks+"px"}const R=m(),V=window.innerHeight-vo*2,K=u.scrollHeight,st=window.getComputedStyle(l),Yt=parseInt(st.borderTopWidth,10),ve=parseInt(st.paddingTop,10),sr=parseInt(st.borderBottomWidth,10),wr=parseInt(st.paddingBottom,10),hn=Yt+ve+K+wr+sr,Wr=Math.min(f.offsetHeight*5,hn),ar=window.getComputedStyle(u),lt=parseInt(ar.paddingTop,10),se=parseInt(ar.paddingBottom,10),nt=P.top+P.height/2-vo,St=V-nt,Gt=f.offsetHeight/2,ke=f.offsetTop+Gt,An=Yt+ve+ke,Dc=hn-An;if(An<=nt){const Ot=f===R[R.length-1].ref.current;s.style.bottom="0px";const ye=l.clientHeight-u.offsetTop-u.offsetHeight,Ar=Math.max(St,Gt+(Ot?se:0)+ye+sr),fn=An+Ar;s.style.height=fn+"px"}else{const Ot=f===R[0].ref.current;s.style.top="0px";const ye=Math.max(nt,Yt+u.offsetTop+(Ot?lt:0)+Gt)+Dc;s.style.height=ye+"px",u.scrollTop=An-nt+u.offsetTop}s.style.margin=`${vo}px 0`,s.style.minHeight=Wr+"px",s.style.maxHeight=V+"px",b(!0),requestAnimationFrame(()=>w.current=!0)}},[m,o.trigger,o.valueNode,s,l,u,f,g,o.dir]);zn(()=>C(),[C]);const T=v.exports.useCallback(()=>k([f,l]),[k,f,l]);v.exports.useEffect(()=>{x&&T()},[x,T]);const $=v.exports.useCallback(P=>{P&&_.current===!0&&(C(),T(),_.current=!1)},[C,T]),{onOpenChange:I,triggerPointerDownPosRef:N}=o;v.exports.useEffect(()=>{if(l){let P={x:0,y:0};const G=B=>{var R,V,K,st;P={x:Math.abs(Math.round(B.pageX)-((R=(V=N.current)===null||V===void 0?void 0:V.x)!==null&&R!==void 0?R:0)),y:Math.abs(Math.round(B.pageY)-((K=(st=N.current)===null||st===void 0?void 0:st.y)!==null&&K!==void 0?K:0))}},U=B=>{P.x<=10&&P.y<=10?B.preventDefault():l.contains(B.target)||I(!1),document.removeEventListener("pointermove",G),N.current=null};return N.current!==null&&(document.addEventListener("pointermove",G),document.addEventListener("pointerup",U,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",G),document.removeEventListener("pointerup",U,{capture:!0})}}},[l,I,N]),v.exports.useEffect(()=>{const P=()=>I(!1);return window.addEventListener("blur",P),window.addEventListener("resize",P),()=>{window.removeEventListener("blur",P),window.removeEventListener("resize",P)}},[I]);const[D,Y]=r7(P=>{const G=m().filter(R=>!R.disabled),U=G.find(R=>R.ref.current===document.activeElement),B=i7(G,P,U);B&&setTimeout(()=>B.ref.current.focus())}),Q=v.exports.useCallback((P,G,U)=>{const B=!A.current&&!U;(o.value!==void 0&&o.value===G||B)&&(p(P),B&&(A.current=!0))},[o.value]),F=v.exports.useCallback(()=>l==null?void 0:l.focus(),[l]),W=v.exports.useCallback((P,G,U)=>{const B=!A.current&&!U;(o.value!==void 0&&o.value===G||B)&&y(P)},[o.value]);return v.exports.createElement(UF,{scope:n,contentWrapper:s,content:l,viewport:u,onViewportChange:d,itemRefCallback:Q,selectedItem:f,onItemLeave:F,itemTextRefCallback:W,selectedItemText:g,onScrollButtonChange:$,isPositioned:x,shouldExpandOnScrollRef:w,searchRef:D},v.exports.createElement(FF,{as:ac,allowPinchZoom:!0},v.exports.createElement("div",{ref:a,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S}},v.exports.createElement(kF,{asChild:!0,trapped:o.open,onMountAutoFocus:P=>{P.preventDefault()},onUnmountAutoFocus:Lt(r,P=>{var G;(G=o.trigger)===null||G===void 0||G.focus({preventScroll:!0}),P.preventDefault()})},v.exports.createElement(SF,it({role:"listbox",id:o.contentId,"data-state":o.open?"open":"closed",dir:o.dir,onContextMenu:P=>P.preventDefault()},i,{ref:h,style:{display:"flex",flexDirection:"column",boxSizing:"border-box",maxHeight:"100%",outline:"none",...i.style},disableOutsidePointerEvents:!0,onFocusOutside:P=>P.preventDefault(),onDismiss:()=>o.onOpenChange(!1),onKeyDown:Lt(i.onKeyDown,P=>{const G=P.ctrlKey||P.altKey||P.metaKey;if(P.key==="Tab"&&P.preventDefault(),!G&&P.key.length===1&&Y(P.key),["ArrowUp","ArrowDown","Home","End"].includes(P.key)){let U=m().filter(B=>!B.disabled).map(B=>B.ref.current);if(["ArrowUp","End"].includes(P.key)&&(U=U.slice().reverse()),["ArrowUp","ArrowDown"].includes(P.key)){const B=P.target,R=U.indexOf(B);U=U.slice(R+1)}setTimeout(()=>k(U)),P.preventDefault()}})}))))))}),y_t="SelectViewport",WF=v.exports.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=$c(y_t,n),o=Wt(t,i.onViewportChange),s=v.exports.useRef(0);return v.exports.createElement(v.exports.Fragment,null,v.exports.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"}}),v.exports.createElement(Gv.Slot,{scope:n},v.exports.createElement(Pt.div,it({"data-radix-select-viewport":"",role:"presentation"},r,{ref:o,style:{position:"relative",flex:1,overflow:"auto",...r.style},onScroll:Lt(r.onScroll,a=>{const l=a.currentTarget,{contentWrapper:c,shouldExpandOnScrollRef:u}=i;if(u!=null&&u.current&&c){const d=Math.abs(s.current-l.scrollTop);if(d>0){const h=window.innerHeight-vo*2,f=parseFloat(c.style.minHeight),p=parseFloat(c.style.height),g=Math.max(f,p);if(g<h){const y=g+d,m=Math.min(h,y),x=y-m;c.style.height=m+"px",c.style.bottom==="0px"&&(l.scrollTop=x>0?x:0,c.style.justifyContent="flex-end")}}}s.current=l.scrollTop})}))))}),x_t="SelectGroup",[b_t,__t]=nf(x_t),YF=v.exports.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=Qh();return v.exports.createElement(b_t,{scope:n,id:i},v.exports.createElement(Pt.div,it({role:"group","aria-labelledby":i},r,{ref:t})))}),w_t="SelectLabel",GF=v.exports.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=__t(w_t,n);return v.exports.createElement(Pt.div,it({id:i.id},r,{ref:t}))}),z_="SelectItem",[A_t,qF]=nf(z_),XF=v.exports.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:i=!1,textValue:o,...s}=e,a=Mc(z_,n),l=$c(z_,n),c=a.value===r,[u,d]=v.exports.useState(o!=null?o:""),[h,f]=v.exports.useState(!1),p=Wt(t,m=>{var x;return(x=l.itemRefCallback)===null||x===void 0?void 0:x.call(l,m,r,i)}),g=Qh(),y=()=>{i||(a.onValueChange(r),a.onOpenChange(!1))};return v.exports.createElement(A_t,{scope:n,value:r,disabled:i,textId:g,isSelected:c,onItemTextChange:v.exports.useCallback(m=>{d(x=>{var b;return x||((b=m==null?void 0:m.textContent)!==null&&b!==void 0?b:"").trim()})},[])},v.exports.createElement(Gv.ItemSlot,{scope:n,value:r,disabled:i,textValue:u},v.exports.createElement(Pt.div,it({role:"option","aria-labelledby":g,"data-highlighted":h?"":void 0,"aria-selected":c&&h,"data-state":c?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1},s,{ref:p,onFocus:Lt(s.onFocus,()=>f(!0)),onBlur:Lt(s.onBlur,()=>f(!1)),onPointerUp:Lt(s.onPointerUp,y),onPointerMove:Lt(s.onPointerMove,m=>{if(i){var x;(x=l.onItemLeave)===null||x===void 0||x.call(l)}else m.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Lt(s.onPointerLeave,m=>{if(m.currentTarget===document.activeElement){var x;(x=l.onItemLeave)===null||x===void 0||x.call(l)}}),onKeyDown:Lt(s.onKeyDown,m=>{var x;((x=l.searchRef)===null||x===void 0?void 0:x.current)!==""&&m.key===" "||(c_t.includes(m.key)&&y(),m.key===" "&&m.preventDefault())})}))))}),Dp="SelectItemText",QF=v.exports.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,...o}=e,s=Mc(Dp,n),a=$c(Dp,n),l=qF(Dp,n),c=p_t(Dp,n),[u,d]=v.exports.useState(null),h=Wt(t,m=>d(m),l.onItemTextChange,m=>{var x;return(x=a.itemTextRefCallback)===null||x===void 0?void 0:x.call(a,m,l.value,l.disabled)}),f=u==null?void 0:u.textContent,p=v.exports.useMemo(()=>v.exports.createElement("option",{key:l.value,value:l.value,disabled:l.disabled},f),[l.disabled,l.value,f]),{onNativeOptionAdd:g,onNativeOptionRemove:y}=c;return zn(()=>(g(p),()=>y(p)),[g,y,p]),v.exports.createElement(v.exports.Fragment,null,v.exports.createElement(Pt.span,it({id:l.textId},o,{ref:h})),l.isSelected&&s.valueNode&&!s.valueNodeHasChildren?Vn.exports.createPortal(o.children,s.valueNode):null)}),S_t="SelectItemIndicator",KF=v.exports.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return qF(S_t,n).isSelected?v.exports.createElement(Pt.span,it({"aria-hidden":!0},r,{ref:t})):null}),E_t="SelectScrollUpButton",ZF=v.exports.forwardRef((e,t)=>{const n=$c(E_t,e.__scopeSelect),[r,i]=v.exports.useState(!1),o=Wt(t,n.onScrollButtonChange);return zn(()=>{if(n.viewport&&n.isPositioned){let s=function(){const l=a.scrollTop>0;i(l)};const a=n.viewport;return s(),a.addEventListener("scroll",s),()=>a.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),r?v.exports.createElement(t7,it({},e,{ref:o,onAutoScroll:()=>{const{viewport:s,selectedItem:a}=n;s&&a&&(s.scrollTop=s.scrollTop-a.offsetHeight)}})):null}),C_t="SelectScrollDownButton",JF=v.exports.forwardRef((e,t)=>{const n=$c(C_t,e.__scopeSelect),[r,i]=v.exports.useState(!1),o=Wt(t,n.onScrollButtonChange);return zn(()=>{if(n.viewport&&n.isPositioned){let s=function(){const l=a.scrollHeight-a.clientHeight,c=Math.ceil(a.scrollTop)<l;i(c)};const a=n.viewport;return s(),a.addEventListener("scroll",s),()=>a.removeEventListener("scroll",s)}},[n.viewport,n.isPositioned]),r?v.exports.createElement(t7,it({},e,{ref:o,onAutoScroll:()=>{const{viewport:s,selectedItem:a}=n;s&&a&&(s.scrollTop=s.scrollTop+a.offsetHeight)}})):null}),t7=v.exports.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...i}=e,o=$c("SelectScrollButton",n),s=v.exports.useRef(null),a=ES(n),l=v.exports.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return v.exports.useEffect(()=>()=>l(),[l]),zn(()=>{var c;const u=a().find(d=>d.ref.current===document.activeElement);u==null||(c=u.ref.current)===null||c===void 0||c.scrollIntoView({block:"nearest"})},[a]),v.exports.createElement(Pt.div,it({"aria-hidden":!0},i,{ref:t,style:{flexShrink:0,...i.style},onPointerMove:Lt(i.onPointerMove,()=>{var c;(c=o.onItemLeave)===null||c===void 0||c.call(o),s.current===null&&(s.current=window.setInterval(r,50))}),onPointerLeave:Lt(i.onPointerLeave,()=>{l()})}))}),e7=v.exports.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return v.exports.createElement(Pt.div,it({"aria-hidden":!0},r,{ref:t}))}),n7=v.exports.forwardRef((e,t)=>{const{value:n,...r}=e,i=v.exports.useRef(null),o=Wt(t,i),s=Z2(n);return v.exports.useEffect(()=>{const a=i.current,l=window.HTMLSelectElement.prototype,c=Object.getOwnPropertyDescriptor(l,"value").set;if(s!==n&&c){const u=new Event("change",{bubbles:!0});c.call(a,n),a.dispatchEvent(u)}},[s,n]),v.exports.createElement(Cbt,{asChild:!0},v.exports.createElement("select",it({},r,{ref:o,defaultValue:n})))});n7.displayName="BubbleSelect";function r7(e){const t=ds(e),n=v.exports.useRef(""),r=v.exports.useRef(0),i=v.exports.useCallback(s=>{const a=n.current+s;t(a),function l(c){n.current=c,window.clearTimeout(r.current),c!==""&&(r.current=window.setTimeout(()=>l(""),1e3))}(a)},[t]),o=v.exports.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return v.exports.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,o]}function i7(e,t,n){const r=t.length>1&&Array.from(t).every(a=>a===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let o=k_t(e,Math.max(i,0));r.length===1&&(o=o.filter(a=>a!==n));const s=o.find(a=>a.textValue.toLowerCase().startsWith(r.toLowerCase()));return s!==n?s:void 0}function k_t(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const T_t=zF,o7=BF,M_t=VF,$_t=qv,s7=jF,a7=HF,l7=WF,P_t=YF,O_t=GF,c7=XF,u7=QF,d7=KF,R_t=ZF,D_t=JF,L_t=e7,I_t=Object.freeze(Object.defineProperty({__proto__:null,createSelectScope:d_t,Select:zF,SelectTrigger:BF,SelectValue:VF,SelectIcon:qv,SelectPortal:jF,SelectContent:HF,SelectViewport:WF,SelectGroup:YF,SelectLabel:GF,SelectItem:XF,SelectItemText:QF,SelectItemIndicator:KF,SelectScrollUpButton:ZF,SelectScrollDownButton:JF,SelectSeparator:e7,Root:T_t,Trigger:o7,Value:M_t,Icon:$_t,Portal:s7,Content:a7,Viewport:l7,Group:P_t,Label:O_t,Item:c7,ItemText:u7,ItemIndicator:d7,ScrollUpButton:R_t,ScrollDownButton:D_t,Separator:L_t},Symbol.toStringTag,{value:"Module"})),N_t=e=>j("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:j("g",{clipPath:"url(#clip0_17_2062)",children:j("path",{d:"M7.41 8.58997L12 13.17L16.59 8.58997L18 9.99997L12 16L6 9.99997L7.41 8.58997Z"})})}),F_t=e=>j("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:j("g",{clipPath:"url(#clip0_17_4631)",children:j("path",{d:"M9.00016 16.17L4.83016 12L3.41016 13.41L9.00016 19L21.0002 6.99997L19.5902 5.58997L9.00016 16.17Z"})})}),h7=z(o7)`
|
|
1062
|
+
display: inline-flex;
|
|
1063
|
+
align-items: center;
|
|
1064
|
+
justify-content: space-between;
|
|
1065
|
+
background-color: ${M["--ll-color-background"]};
|
|
1066
|
+
border-radius: ${M["--ll-border-radius-small"]};
|
|
1067
|
+
border: 1px solid ${M["--ll-color-border"]};
|
|
1068
|
+
color: ${M["--ll-color-on-background-variant1"]};
|
|
1069
|
+
padding: ${M["--ll-spacing-xx-small"]} ${M["--ll-spacing-x-small"]}
|
|
1070
|
+
${M["--ll-spacing-xx-small"]} ${M["--ll-spacing-small"]};
|
|
1071
|
+
flex: 1;
|
|
1072
|
+
height: ${({size:e})=>e==="medium"?"32px":"40px"};
|
|
1073
|
+
font-size: ${({size:e})=>e==="medium"?M["--ll-font-size-p"]:M["--ll-font-size-h6"]};
|
|
1074
|
+
`,z_t=z(qv)`
|
|
1075
|
+
margin-left: ${M["--ll-spacing-x-small"]};
|
|
1076
|
+
`,f7=z(a7)`
|
|
1077
|
+
overflow: hidden;
|
|
1078
|
+
background-color: ${M["--ll-color-background"]};
|
|
1079
|
+
border-radius: ${M["--ll-border-radius-small"]};
|
|
1080
|
+
box-shadow: ${M["--ll-shadow-medium"]};
|
|
1081
|
+
min-width: 120px;
|
|
1082
|
+
z-index: 2;
|
|
1083
|
+
font-size: ${({size:e})=>e==="medium"?M["--ll-font-size-p"]:M["--ll-font-size-h6"]};
|
|
1084
|
+
`,p7=z(c7)`
|
|
1085
|
+
font-family: ${M["--ll-font-family"]};
|
|
1086
|
+
font-size: inherit;
|
|
1087
|
+
padding: ${M["--ll-spacing-xx-small"]} ${M["--ll-spacing-x-large"]}
|
|
1088
|
+
${M["--ll-spacing-xx-small"]} ${M["--ll-spacing-large"]};
|
|
1089
|
+
outline: none;
|
|
1090
|
+
border-radius: ${M["--ll-border-radius-small"]};
|
|
1091
|
+
position: relative;
|
|
1092
|
+
color: ${M["--ll-color-on-surface-variant1"]};
|
|
1093
|
+
cursor: default;
|
|
1094
|
+
|
|
1095
|
+
&[data-highlighted] {
|
|
1096
|
+
background-color: ${M["--ll-color-primary"]};
|
|
1097
|
+
color: ${M["--ll-color-on-primary"]};
|
|
1098
|
+
}
|
|
1099
|
+
`,g7=z(d7)`
|
|
1100
|
+
position: absolute;
|
|
1101
|
+
left: 0;
|
|
1102
|
+
height: 100%;
|
|
1103
|
+
left: 0;
|
|
1104
|
+
bottom: 0;
|
|
1105
|
+
width: ${M["--ll-spacing-large"]};
|
|
1106
|
+
display: inline-flex;
|
|
1107
|
+
align-items: center;
|
|
1108
|
+
justify-content: center;
|
|
1109
|
+
`,m7=z(l7)`
|
|
1110
|
+
font-size: inherit;
|
|
1111
|
+
padding: ${M["--ll-spacing-base-unit"]};
|
|
1112
|
+
`,B_t=z(s7)`
|
|
1113
|
+
z-index: 1;
|
|
1114
|
+
`,V_t=Object.freeze(Object.defineProperty({__proto__:null,Trigger:h7,SelectIcon:z_t,Content:f7,Item:p7,ItemIndicator:g7,Viewport:m7,Portal:B_t},Symbol.toStringTag,{value:"Module"})),j_t=({size:e="medium",children:t,...n})=>ji(h7,{size:e,...n,children:[t,dt(qv,{children:dt(rr,{SVGElement:N_t,fill:M["--ll-color-on-background-variant1"],height:20})})]}),H_t=({size:e="medium",children:t,...n})=>dt(f7,{size:e,...n,children:dt(m7,{children:t})}),U_t=({children:e,...t})=>ji(p7,{...t,children:[dt(u7,{children:e}),dt(g7,{children:dt(rr,{SVGElement:F_t,fill:"currentColor",height:12})})]}),{Root:W_t}=I_t,{Portal:Y_t}=V_t,Lp=Object.freeze(Object.defineProperty({__proto__:null,Root:W_t,Trigger:j_t,Content:H_t,Item:U_t,Portal:Y_t},Symbol.toStringTag,{value:"Module"}));function Pc(e){return e.split("-")[0]}function Xv(e){return e.split("-")[1]}function Oc(e){return["top","bottom"].includes(Pc(e))?"x":"y"}function kS(e){return e==="y"?"height":"width"}function XP(e,t,n){let{reference:r,floating:i}=e;const o=r.x+r.width/2-i.width/2,s=r.y+r.height/2-i.height/2,a=Oc(t),l=kS(a),c=r[l]/2-i[l]/2,u=Pc(t),d=a==="x";let h;switch(u){case"top":h={x:o,y:r.y-i.height};break;case"bottom":h={x:o,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:s};break;case"left":h={x:r.x-i.width,y:s};break;default:h={x:r.x,y:r.y}}switch(Xv(t)){case"start":h[a]-=c*(n&&d?-1:1);break;case"end":h[a]+=c*(n&&d?-1:1);break}return h}const G_t=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,a=await(s.isRTL==null?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:u}=XP(l,r,a),d=r,h={},f=0;for(let p=0;p<o.length;p++){const{name:g,fn:y}=o[p],{x:m,y:x,data:b,reset:_}=await y({x:c,y:u,initialPlacement:r,placement:d,strategy:i,middlewareData:h,rects:l,platform:s,elements:{reference:e,floating:t}});if(c=m!=null?m:c,u=x!=null?x:u,h={...h,[g]:{...h[g],...b}},_&&f<=50){f++,typeof _=="object"&&(_.placement&&(d=_.placement),_.rects&&(l=_.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):_.rects),{x:c,y:u}=XP(l,d,a)),p=-1;continue}}return{x:c,y:u,placement:d,strategy:i,middlewareData:h}};function q_t(e){return{top:0,right:0,bottom:0,left:0,...e}}function v7(e){return typeof e!="number"?q_t(e):{top:e,right:e,bottom:e,left:e}}function u0(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function d0(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:h=!1,padding:f=0}=t,p=v7(f),g=a[h?d==="floating"?"reference":"floating":d],y=u0(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(g)))==null||n?g:g.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),m=u0(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:d==="floating"?{...s.floating,x:r,y:i}:s.reference,offsetParent:await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),strategy:l}):s[d]);return{top:y.top-m.top+p.top,bottom:m.bottom-y.bottom+p.bottom,left:y.left-m.left+p.left,right:m.right-y.right+p.right}}const X_t=Math.min,Q_t=Math.max;function B_(e,t,n){return Q_t(e,X_t(t,n))}const QP=e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:r=0}=e!=null?e:{},{x:i,y:o,placement:s,rects:a,platform:l}=t;if(n==null)return{};const c=v7(r),u={x:i,y:o},d=Oc(s),h=Xv(s),f=kS(d),p=await l.getDimensions(n),g=d==="y"?"top":"left",y=d==="y"?"bottom":"right",m=a.reference[f]+a.reference[d]-u[d]-a.floating[f],x=u[d]-a.reference[d],b=await(l.getOffsetParent==null?void 0:l.getOffsetParent(n));let _=b?d==="y"?b.clientHeight||0:b.clientWidth||0:0;_===0&&(_=a.floating[f]);const w=m/2-x/2,A=c[g],S=_-p[f]-c[y],E=_/2-p[f]/2+w,k=B_(A,E,S),C=(h==="start"?c[g]:c[y])>0&&E!==k&&a.reference[f]<=a.floating[f]?E<A?A-E:S-E:0;return{[d]:u[d]-C,data:{[d]:k,centerOffset:E-k}}}}),K_t={left:"right",right:"left",bottom:"top",top:"bottom"};function h0(e){return e.replace(/left|right|bottom|top/g,t=>K_t[t])}function Z_t(e,t,n){n===void 0&&(n=!1);const r=Xv(e),i=Oc(e),o=kS(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=h0(s)),{main:s,cross:h0(s)}}const J_t={start:"end",end:"start"};function KP(e){return e.replace(/start|end/g,t=>J_t[t])}const twt=["top","right","bottom","left"];function ewt(e){const t=h0(e);return[KP(e),t,KP(t)]}const nwt=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:i,rects:o,initialPlacement:s,platform:a,elements:l}=t,{mainAxis:c=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:h="bestFit",flipAlignment:f=!0,...p}=e,g=Pc(r),y=d||(g===s||!f?[h0(s)]:ewt(s)),m=[s,...y],x=await d0(t,p),b=[];let _=((n=i.flip)==null?void 0:n.overflows)||[];if(c&&b.push(x[g]),u){const{main:E,cross:k}=Z_t(r,o,await(a.isRTL==null?void 0:a.isRTL(l.floating)));b.push(x[E],x[k])}if(_=[..._,{placement:r,overflows:b}],!b.every(E=>E<=0)){var w,A;const E=((w=(A=i.flip)==null?void 0:A.index)!=null?w:0)+1,k=m[E];if(k)return{data:{index:E,overflows:_},reset:{placement:k}};let C="bottom";switch(h){case"bestFit":{var S;const T=(S=_.map($=>[$,$.overflows.filter(I=>I>0).reduce((I,N)=>I+N,0)]).sort(($,I)=>$[1]-I[1])[0])==null?void 0:S[0].placement;T&&(C=T);break}case"initialPlacement":C=s;break}if(r!==C)return{reset:{placement:C}}}return{}}}};function ZP(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function JP(e){return twt.some(t=>e[t]>=0)}const rwt=function(e){let{strategy:t="referenceHidden",...n}=e===void 0?{}:e;return{name:"hide",async fn(r){const{rects:i}=r;switch(t){case"referenceHidden":{const o=await d0(r,{...n,elementContext:"reference"}),s=ZP(o,i.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:JP(s)}}}case"escaped":{const o=await d0(r,{...n,altBoundary:!0}),s=ZP(o,i.floating);return{data:{escapedOffsets:s,escaped:JP(s)}}}default:return{}}}}};async function iwt(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=Pc(n),a=Xv(n),l=Oc(n)==="x",c=["left","top"].includes(s)?-1:1,u=o&&l?-1:1,d=typeof t=="function"?t(e):t;let{mainAxis:h,crossAxis:f,alignmentAxis:p}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&typeof p=="number"&&(f=a==="end"?p*-1:p),l?{x:f*u,y:h*c}:{x:h*c,y:f*u}}const owt=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,i=await iwt(t,e);return{x:n+i.x,y:r+i.y,data:i}}}};function y7(e){return e==="x"?"y":"x"}const swt=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:a={fn:y=>{let{x:m,y:x}=y;return{x:m,y:x}}},...l}=e,c={x:n,y:r},u=await d0(t,l),d=Oc(Pc(i)),h=y7(d);let f=c[d],p=c[h];if(o){const y=d==="y"?"top":"left",m=d==="y"?"bottom":"right",x=f+u[y],b=f-u[m];f=B_(x,f,b)}if(s){const y=h==="y"?"top":"left",m=h==="y"?"bottom":"right",x=p+u[y],b=p-u[m];p=B_(x,p,b)}const g=a.fn({...t,[d]:f,[h]:p});return{...g,data:{x:g.x-n,y:g.y-r}}}}},awt=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:o,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=e,u={x:n,y:r},d=Oc(i),h=y7(d);let f=u[d],p=u[h];const g=typeof a=="function"?a({...o,placement:i}):a,y=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(l){const w=d==="y"?"height":"width",A=o.reference[d]-o.floating[w]+y.mainAxis,S=o.reference[d]+o.reference[w]-y.mainAxis;f<A?f=A:f>S&&(f=S)}if(c){var m,x,b,_;const w=d==="y"?"width":"height",A=["top","left"].includes(Pc(i)),S=o.reference[h]-o.floating[w]+(A&&(m=(x=s.offset)==null?void 0:x[h])!=null?m:0)+(A?0:y.crossAxis),E=o.reference[h]+o.reference[w]+(A?0:(b=(_=s.offset)==null?void 0:_[h])!=null?b:0)-(A?y.crossAxis:0);p<S?p=S:p>E&&(p=E)}return{[d]:f,[h]:p}}}};function x7(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function io(e){if(e==null)return window;if(!x7(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function rf(e){return io(e).getComputedStyle(e)}function to(e){return x7(e)?"":e?(e.nodeName||"").toLowerCase():""}function b7(){const e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(t=>t.brand+"/"+t.version).join(" "):navigator.userAgent}function pi(e){return e instanceof io(e).HTMLElement}function ps(e){return e instanceof io(e).Element}function lwt(e){return e instanceof io(e).Node}function TS(e){if(typeof ShadowRoot>"u")return!1;const t=io(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Qv(e){const{overflow:t,overflowX:n,overflowY:r}=rf(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function cwt(e){return["table","td","th"].includes(to(e))}function _7(e){const t=/firefox/i.test(b7()),n=rf(e);return n.transform!=="none"||n.perspective!=="none"||n.contain==="paint"||["transform","perspective"].includes(n.willChange)||t&&n.willChange==="filter"||t&&(n.filter?n.filter!=="none":!1)}function w7(){return!/^((?!chrome|android).)*safari/i.test(b7())}const tO=Math.min,yd=Math.max,f0=Math.round;function eo(e,t,n){var r,i,o,s;t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect();let l=1,c=1;t&&pi(e)&&(l=e.offsetWidth>0&&f0(a.width)/e.offsetWidth||1,c=e.offsetHeight>0&&f0(a.height)/e.offsetHeight||1);const u=ps(e)?io(e):window,d=!w7()&&n,h=(a.left+(d&&(r=(i=u.visualViewport)==null?void 0:i.offsetLeft)!=null?r:0))/l,f=(a.top+(d&&(o=(s=u.visualViewport)==null?void 0:s.offsetTop)!=null?o:0))/c,p=a.width/l,g=a.height/c;return{width:p,height:g,top:f,right:h+p,bottom:f+g,left:h,x:h,y:f}}function As(e){return((lwt(e)?e.ownerDocument:e.document)||window.document).documentElement}function Kv(e){return ps(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function A7(e){return eo(As(e)).left+Kv(e).scrollLeft}function uwt(e){const t=eo(e);return f0(t.width)!==e.offsetWidth||f0(t.height)!==e.offsetHeight}function dwt(e,t,n){const r=pi(t),i=As(t),o=eo(e,r&&uwt(t),n==="fixed");let s={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(r||!r&&n!=="fixed")if((to(t)!=="body"||Qv(i))&&(s=Kv(t)),pi(t)){const l=eo(t,!0);a.x=l.x+t.clientLeft,a.y=l.y+t.clientTop}else i&&(a.x=A7(i));return{x:o.left+s.scrollLeft-a.x,y:o.top+s.scrollTop-a.y,width:o.width,height:o.height}}function S7(e){return to(e)==="html"?e:e.assignedSlot||e.parentNode||(TS(e)?e.host:null)||As(e)}function eO(e){return!pi(e)||getComputedStyle(e).position==="fixed"?null:e.offsetParent}function hwt(e){let t=S7(e);for(TS(t)&&(t=t.host);pi(t)&&!["html","body"].includes(to(t));){if(_7(t))return t;t=t.parentNode}return null}function V_(e){const t=io(e);let n=eO(e);for(;n&&cwt(n)&&getComputedStyle(n).position==="static";)n=eO(n);return n&&(to(n)==="html"||to(n)==="body"&&getComputedStyle(n).position==="static"&&!_7(n))?t:n||hwt(e)||t}function nO(e){if(pi(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=eo(e);return{width:t.width,height:t.height}}function fwt(e){let{rect:t,offsetParent:n,strategy:r}=e;const i=pi(n),o=As(n);if(n===o)return t;let s={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if((i||!i&&r!=="fixed")&&((to(n)!=="body"||Qv(o))&&(s=Kv(n)),pi(n))){const l=eo(n,!0);a.x=l.x+n.clientLeft,a.y=l.y+n.clientTop}return{...t,x:t.x-s.scrollLeft+a.x,y:t.y-s.scrollTop+a.y}}function pwt(e,t){const n=io(e),r=As(e),i=n.visualViewport;let o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;const c=w7();(c||!c&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a,y:l}}function gwt(e){var t;const n=As(e),r=Kv(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=yd(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=yd(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0);let a=-r.scrollLeft+A7(e);const l=-r.scrollTop;return rf(i||n).direction==="rtl"&&(a+=yd(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:a,y:l}}function E7(e){const t=S7(e);return["html","body","#document"].includes(to(t))?e.ownerDocument.body:pi(t)&&Qv(t)?t:E7(t)}function p0(e,t){var n;t===void 0&&(t=[]);const r=E7(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=io(r),s=i?[o].concat(o.visualViewport||[],Qv(r)?r:[]):r,a=t.concat(s);return i?a:a.concat(p0(s))}function mwt(e,t){const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&TS(n)){let r=t;do{if(r&&e===r)return!0;r=r.parentNode||r.host}while(r)}return!1}function vwt(e,t){const n=eo(e,!1,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft;return{top:r,left:i,x:i,y:r,right:i+e.clientWidth,bottom:r+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}function rO(e,t,n){return t==="viewport"?u0(pwt(e,n)):ps(t)?vwt(t,n):u0(gwt(As(e)))}function ywt(e){const t=p0(e),n=["absolute","fixed"].includes(rf(e).position)&&pi(e)?V_(e):e;return ps(n)?t.filter(r=>ps(r)&&mwt(r,n)&&to(r)!=="body"):[]}function xwt(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[...n==="clippingAncestors"?ywt(t):[].concat(n),r],s=o[0],a=o.reduce((l,c)=>{const u=rO(t,c,i);return l.top=yd(u.top,l.top),l.right=tO(u.right,l.right),l.bottom=tO(u.bottom,l.bottom),l.left=yd(u.left,l.left),l},rO(t,s,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}const bwt={getClippingRect:xwt,convertOffsetParentRelativeRectToViewportRelativeRect:fwt,isElement:ps,getDimensions:nO,getOffsetParent:V_,getDocumentElement:As,getElementRects:e=>{let{reference:t,floating:n,strategy:r}=e;return{reference:dwt(t,V_(n),r),floating:{...nO(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>rf(e).direction==="rtl"};function _wt(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=!0,animationFrame:a=!1}=r,l=i&&!a,c=o&&!a,u=l||c?[...ps(e)?p0(e):[],...p0(t)]:[];u.forEach(g=>{l&&g.addEventListener("scroll",n,{passive:!0}),c&&g.addEventListener("resize",n)});let d=null;if(s){let g=!0;d=new ResizeObserver(()=>{g||n(),g=!1}),ps(e)&&!a&&d.observe(e),d.observe(t)}let h,f=a?eo(e):null;a&&p();function p(){const g=eo(e);f&&(g.x!==f.x||g.y!==f.y||g.width!==f.width||g.height!==f.height)&&n(),f=g,h=requestAnimationFrame(p)}return n(),()=>{var g;u.forEach(y=>{l&&y.removeEventListener("scroll",n),c&&y.removeEventListener("resize",n)}),(g=d)==null||g.disconnect(),d=null,a&&cancelAnimationFrame(h)}}const wwt=(e,t,n)=>G_t(e,t,{platform:bwt,...n});var j_=typeof document<"u"?v.exports.useLayoutEffect:v.exports.useEffect;function H_(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!H_(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!H_(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function Awt(e){const t=v.exports.useRef(e);return j_(()=>{t.current=e}),t}function Swt(e){let{middleware:t,placement:n="bottom",strategy:r="absolute",whileElementsMounted:i}=e===void 0?{}:e;const o=v.exports.useRef(null),s=v.exports.useRef(null),a=Awt(i),l=v.exports.useRef(null),[c,u]=v.exports.useState({x:null,y:null,strategy:r,placement:n,middlewareData:{}}),[d,h]=v.exports.useState(t);H_(d==null?void 0:d.map(b=>{let{options:_}=b;return _}),t==null?void 0:t.map(b=>{let{options:_}=b;return _}))||h(t);const f=v.exports.useCallback(()=>{!o.current||!s.current||wwt(o.current,s.current,{middleware:d,placement:n,strategy:r}).then(b=>{p.current&&Vn.exports.flushSync(()=>{u(b)})})},[d,n,r]);j_(()=>{p.current&&f()},[f]);const p=v.exports.useRef(!1);j_(()=>(p.current=!0,()=>{p.current=!1}),[]);const g=v.exports.useCallback(()=>{if(typeof l.current=="function"&&(l.current(),l.current=null),o.current&&s.current)if(a.current){const b=a.current(o.current,s.current,f);l.current=b}else f()},[f,a]),y=v.exports.useCallback(b=>{o.current=b,g()},[g]),m=v.exports.useCallback(b=>{s.current=b,g()},[g]),x=v.exports.useMemo(()=>({reference:o,floating:s}),[]);return v.exports.useMemo(()=>({...c,update:f,refs:x,reference:y,floating:m}),[c,f,x,y,m])}const Ewt=e=>{const{element:t,padding:n}=e;function r(i){return Object.prototype.hasOwnProperty.call(i,"current")}return{name:"arrow",options:e,fn(i){return r(t)?t.current!=null?QP({element:t.current,padding:n}).fn(i):{}:t?QP({element:t,padding:n}).fn(i):{}}}},Cwt=v.exports.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...o}=e;return v.exports.createElement(Pt.svg,it({},o,{ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:v.exports.createElement("polygon",{points:"0,0 30,0 15,10"}))}),kwt=Cwt,C7="Popper",[MS,k7]=Tc(C7),[Twt,T7]=MS(C7),Mwt=e=>{const{__scopePopper:t,children:n}=e,[r,i]=v.exports.useState(null);return v.exports.createElement(Twt,{scope:t,anchor:r,onAnchorChange:i},n)},$wt="PopperAnchor",Pwt=v.exports.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,o=T7($wt,n),s=v.exports.useRef(null),a=Wt(t,s);return v.exports.useEffect(()=>{o.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:v.exports.createElement(Pt.div,it({},i,{ref:a}))}),g0="PopperContent",[Owt,Rwt]=MS(g0),[Dwt,Lwt]=MS(g0,{hasParent:!1,positionUpdateFns:new Set}),Iwt=v.exports.forwardRef((e,t)=>{var n,r,i,o,s,a,l,c;const{__scopePopper:u,side:d="bottom",sideOffset:h=0,align:f="center",alignOffset:p=0,arrowPadding:g=0,collisionBoundary:y=[],collisionPadding:m=0,sticky:x="partial",hideWhenDetached:b=!1,avoidCollisions:_=!0,...w}=e,A=T7(g0,u),[S,E]=v.exports.useState(null),k=Wt(t,ke=>E(ke)),[C,T]=v.exports.useState(null),$=J2(C),I=(n=$==null?void 0:$.width)!==null&&n!==void 0?n:0,N=(r=$==null?void 0:$.height)!==null&&r!==void 0?r:0,D=d+(f!=="center"?"-"+f:""),Y=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},Q=Array.isArray(y)?y:[y],F=Q.length>0,W={padding:Y,boundary:Q.filter(Vwt),altBoundary:F},{reference:P,floating:G,strategy:U,x:B,y:R,placement:V,middlewareData:K,update:st}=Swt({strategy:"fixed",placement:D,whileElementsMounted:_wt,middleware:[owt({mainAxis:h+N,alignmentAxis:p}),_?swt({mainAxis:!0,crossAxis:!1,limiter:x==="partial"?awt():void 0,...W}):void 0,C?Ewt({element:C,padding:g}):void 0,_?nwt({...W}):void 0,jwt({arrowWidth:I,arrowHeight:N}),b?rwt({strategy:"referenceHidden"}):void 0].filter(Bwt)});zn(()=>{P(A.anchor)},[P,A.anchor]);const Yt=B!==null&&R!==null,[ve,sr]=M7(V),wr=(i=K.arrow)===null||i===void 0?void 0:i.x,hn=(o=K.arrow)===null||o===void 0?void 0:o.y,Wr=((s=K.arrow)===null||s===void 0?void 0:s.centerOffset)!==0,[ar,lt]=v.exports.useState();zn(()=>{S&<(window.getComputedStyle(S).zIndex)},[S]);const{hasParent:se,positionUpdateFns:nt}=Lwt(g0,u),St=!se;v.exports.useLayoutEffect(()=>{if(!St)return nt.add(st),()=>{nt.delete(st)}},[St,nt,st]),v.exports.useLayoutEffect(()=>{St&&Yt&&Array.from(nt).reverse().forEach(ke=>requestAnimationFrame(ke))},[St,Yt,nt]);const Gt={"data-side":ve,"data-align":sr,...w,ref:k,style:{...w.style,animation:Yt?void 0:"none",opacity:(a=K.hide)!==null&&a!==void 0&&a.referenceHidden?0:void 0}};return v.exports.createElement("div",{ref:G,"data-radix-popper-content-wrapper":"",style:{position:U,left:0,top:0,transform:Yt?`translate3d(${Math.round(B)}px, ${Math.round(R)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:ar,["--radix-popper-transform-origin"]:[(l=K.transformOrigin)===null||l===void 0?void 0:l.x,(c=K.transformOrigin)===null||c===void 0?void 0:c.y].join(" ")}},v.exports.createElement(Owt,{scope:u,placedSide:ve,onArrowChange:T,arrowX:wr,arrowY:hn,shouldHideArrow:Wr},St?v.exports.createElement(Dwt,{scope:u,hasParent:!0,positionUpdateFns:nt},v.exports.createElement(Pt.div,Gt)):v.exports.createElement(Pt.div,Gt)))}),Nwt="PopperArrow",Fwt={top:"bottom",right:"left",bottom:"top",left:"right"},zwt=v.exports.forwardRef(function(e,t){const{__scopePopper:n,...r}=e,i=Rwt(Nwt,n),o=Fwt[i.placedSide];return v.exports.createElement("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0}},v.exports.createElement(kwt,it({},r,{ref:t,style:{...r.style,display:"block"}})))});function Bwt(e){return e!==void 0}function Vwt(e){return e!==null}const jwt=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,o,s;const{placement:a,rects:l,middlewareData:c}=t,u=((n=c.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,d=u?0:e.arrowWidth,h=u?0:e.arrowHeight,[f,p]=M7(a),g={start:"0%",center:"50%",end:"100%"}[p],y=((r=(i=c.arrow)===null||i===void 0?void 0:i.x)!==null&&r!==void 0?r:0)+d/2,m=((o=(s=c.arrow)===null||s===void 0?void 0:s.y)!==null&&o!==void 0?o:0)+h/2;let x="",b="";return f==="bottom"?(x=u?g:`${y}px`,b=`${-h}px`):f==="top"?(x=u?g:`${y}px`,b=`${l.floating.height+h}px`):f==="right"?(x=`${-h}px`,b=u?g:`${m}px`):f==="left"&&(x=`${l.floating.width+h}px`,b=u?g:`${m}px`),{data:{x,y:b}}}});function M7(e){const[t,n="center"]=e.split("-");return[t,n]}const Hwt=Mwt,$7=Pwt,Uwt=Iwt,Wwt=zwt;function Ywt(e,t){return v.exports.useReducer((n,r)=>{const i=t[n][r];return i!=null?i:n},e)}const $S=e=>{const{present:t,children:n}=e,r=Gwt(t),i=typeof n=="function"?n({present:r.isPresent}):v.exports.Children.only(n),o=Wt(r.ref,i.ref);return typeof n=="function"||r.isPresent?v.exports.cloneElement(i,{ref:o}):null};$S.displayName="Presence";function Gwt(e){const[t,n]=v.exports.useState(),r=v.exports.useRef({}),i=v.exports.useRef(e),o=v.exports.useRef("none"),s=e?"mounted":"unmounted",[a,l]=Ywt(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.exports.useEffect(()=>{const c=Ip(r.current);o.current=a==="mounted"?c:"none"},[a]),zn(()=>{const c=r.current,u=i.current;if(u!==e){const d=o.current,h=Ip(c);e?l("MOUNT"):h==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&d!==h?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),zn(()=>{if(t){const c=d=>{const h=Ip(r.current).includes(d.animationName);d.target===t&&h&&Vn.exports.flushSync(()=>l("ANIMATION_END"))},u=d=>{d.target===t&&(o.current=Ip(r.current))};return t.addEventListener("animationstart",u),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{t.removeEventListener("animationstart",u),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:v.exports.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function Ip(e){return(e==null?void 0:e.animationName)||"none"}const P7="Popover",[O7,qwt]=Tc(P7,[k7]),of=k7(),[Xwt,Ss]=O7(P7),R7=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:s=!1}=e,a=of(t),l=v.exports.useRef(null),[c,u]=v.exports.useState(!1),[d=!1,h]=fh({prop:r,defaultProp:i,onChange:o});return v.exports.createElement(Hwt,a,v.exports.createElement(Xwt,{scope:t,contentId:Qh(),triggerRef:l,open:d,onOpenChange:h,onOpenToggle:v.exports.useCallback(()=>h(f=>!f),[h]),hasCustomAnchor:c,onCustomAnchorAdd:v.exports.useCallback(()=>u(!0),[]),onCustomAnchorRemove:v.exports.useCallback(()=>u(!1),[]),modal:s},n))},Qwt="PopoverAnchor",D7=v.exports.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,i=Ss(Qwt,n),o=of(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:a}=i;return v.exports.useEffect(()=>(s(),()=>a()),[s,a]),v.exports.createElement($7,it({},o,r,{ref:t}))}),Kwt="PopoverTrigger",L7=v.exports.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,i=Ss(Kwt,n),o=of(n),s=Wt(t,i.triggerRef),a=v.exports.createElement(Pt.button,it({type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":j7(i.open)},r,{ref:s,onClick:Lt(e.onClick,i.onOpenToggle)}));return i.hasCustomAnchor?a:v.exports.createElement($7,it({asChild:!0},o),a)}),I7="PopoverPortal",[Zwt,Jwt]=O7(I7,{forceMount:void 0}),N7=e=>{const{__scopePopover:t,forceMount:n,children:r,container:i}=e,o=Ss(I7,t);return v.exports.createElement(Zwt,{scope:t,forceMount:n},v.exports.createElement($S,{present:n||o.open},v.exports.createElement(MF,{asChild:!0,container:i},r)))},Sh="PopoverContent",F7=v.exports.forwardRef((e,t)=>{const n=Jwt(Sh,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,o=Ss(Sh,e.__scopePopover);return v.exports.createElement($S,{present:r||o.open},o.modal?v.exports.createElement(tAt,it({},i,{ref:t})):v.exports.createElement(eAt,it({},i,{ref:t})))}),tAt=v.exports.forwardRef((e,t)=>{const n=Ss(Sh,e.__scopePopover),r=v.exports.useRef(null),i=Wt(t,r),o=v.exports.useRef(!1);return v.exports.useEffect(()=>{const s=r.current;if(s)return $F(s)},[]),v.exports.createElement(FF,{as:ac,allowPinchZoom:!0},v.exports.createElement(z7,it({},e,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Lt(e.onCloseAutoFocus,s=>{var a;s.preventDefault(),o.current||(a=n.triggerRef.current)===null||a===void 0||a.focus()}),onPointerDownOutside:Lt(e.onPointerDownOutside,s=>{const a=s.detail.originalEvent,l=a.button===0&&a.ctrlKey===!0,c=a.button===2||l;o.current=c},{checkForDefaultPrevented:!1}),onFocusOutside:Lt(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})))}),eAt=v.exports.forwardRef((e,t)=>{const n=Ss(Sh,e.__scopePopover),r=v.exports.useRef(!1);return v.exports.createElement(z7,it({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o;if((o=e.onCloseAutoFocus)===null||o===void 0||o.call(e,i),!i.defaultPrevented){var s;r.current||(s=n.triggerRef.current)===null||s===void 0||s.focus(),i.preventDefault()}r.current=!1},onInteractOutside:i=>{var o,s;(o=e.onInteractOutside)===null||o===void 0||o.call(e,i),i.defaultPrevented||(r.current=!0);const a=i.target;!((s=n.triggerRef.current)===null||s===void 0)&&s.contains(a)&&i.preventDefault()}}))}),z7=v.exports.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:u,...d}=e,h=Ss(Sh,n),f=of(n);return CF(),v.exports.createElement(kF,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o},v.exports.createElement(SF,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:u,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:c,onDismiss:()=>h.onOpenChange(!1)},v.exports.createElement(Uwt,it({"data-state":j7(h.open),role:"dialog",id:h.contentId},f,d,{ref:t,style:{...d.style,["--radix-popover-content-transform-origin"]:"var(--radix-popper-transform-origin)"}}))))}),nAt="PopoverClose",B7=v.exports.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,i=Ss(nAt,n);return v.exports.createElement(Pt.button,it({type:"button"},r,{ref:t,onClick:Lt(e.onClick,()=>i.onOpenChange(!1))}))}),V7=v.exports.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,i=of(n);return v.exports.createElement(Wwt,it({},i,r,{ref:t}))});function j7(e){return e?"open":"closed"}const rAt=R7,iAt=D7,H7=L7,oAt=N7,U7=F7,sAt=B7,W7=V7,aAt=Object.freeze(Object.defineProperty({__proto__:null,createPopoverScope:qwt,Popover:R7,PopoverAnchor:D7,PopoverTrigger:L7,PopoverPortal:N7,PopoverContent:F7,PopoverClose:B7,PopoverArrow:V7,Root:rAt,Anchor:iAt,Trigger:H7,Portal:oAt,Content:U7,Close:sAt,Arrow:W7},Symbol.toStringTag,{value:"Module"})),lAt=z(H7)`
|
|
1115
|
+
background: none;
|
|
1116
|
+
border: none;
|
|
1117
|
+
padding: 0;
|
|
1118
|
+
`,Y7=z(U7)`
|
|
1119
|
+
padding: ${M["--ll-spacing-small"]};
|
|
1120
|
+
background-color: ${M["--ll-color-background"]};
|
|
1121
|
+
box-shadow: ${M["--ll-shadow-small"]};
|
|
1122
|
+
border-radius: ${M["--ll-border-radius-small"]};
|
|
1123
|
+
width: 240px;
|
|
1124
|
+
`,G7=z(W7)`
|
|
1125
|
+
fill: ${M["--ll-color-background"]};
|
|
1126
|
+
`,cAt=Object.freeze(Object.defineProperty({__proto__:null,Trigger:lAt,Content:Y7,Arrow:G7},Symbol.toStringTag,{value:"Module"})),{Root:uAt,Portal:dAt}=aAt,{Trigger:hAt}=cAt,fAt=({side:e,children:t,className:n,sideOffset:r=bn*2,collisionPadding:i=bn*2})=>dt(dAt,{children:ji(Y7,{side:e,className:n,sideOffset:r,collisionPadding:i,children:[dt(G7,{}),t]})}),dc=Object.freeze(Object.defineProperty({__proto__:null,Root:uAt,Trigger:hAt,Content:fAt},Symbol.toStringTag,{value:"Module"})),q7=Z.createContext({}),X7=()=>v.exports.useContext(q7),pAt=({client:e,options:t,children:n})=>{var r,i;return Vt(q7.Provider,{value:{client:e,options:t},children:[j(rgt,{themeName:(r=t==null?void 0:t.appearance)==null?void 0:r.theme,overrides:(i=t==null?void 0:t.appearance)==null?void 0:i.variables}),n]})},Q7=Z.createContext({}),sf=()=>v.exports.useContext(Q7),qy=(e,t=!1)=>{if(!e)return null;const n=parseFloat(e)*2;return t?Math.round(n):Math.round(n*10)/10},PS=({scoresData:e,score:t,round:n=!1})=>{const r=v.exports.useMemo(()=>{var d,h;const f=(h=(d=e==null?void 0:e.location)==null?void 0:d[t])==null?void 0:h.value;return qy(f,n)},[e,t,n]),i=v.exports.useMemo(()=>{var d,h;return(h=(d=e==null?void 0:e.location)==null?void 0:d[t])==null?void 0:h.text},[e,t]),o=v.exports.useMemo(()=>{var d;return(d=e==null?void 0:e.geographies)==null?void 0:d.find(h=>h.geog_level_type==="municipality")},[e]),s=v.exports.useMemo(()=>{var d;return(d=e==null?void 0:e.geographies)==null?void 0:d.find(h=>h.geog_level_type==="macro neighbourhood")},[e]),a=v.exports.useMemo(()=>{var d;const h=(d=o==null?void 0:o.scores[t])==null?void 0:d.value;return qy(h,n)},[o,t,n]),l=v.exports.useMemo(()=>{var d;const h=(d=s==null?void 0:s.scores[t])==null?void 0:d.value;return qy(h,n)},[s,t,n]),c=v.exports.useMemo(()=>o==null?void 0:o.name,[o]),u=v.exports.useMemo(()=>s==null?void 0:s.name,[s]);return{textVal:i,scoreVal:r,cityName:c,cityScoreVal:a,neighbourhoodName:u,neighbourhoodScoreVal:l}},gAt=e=>e==="small"?_t`
|
|
1127
|
+
height: 16px;
|
|
1128
|
+
padding: 0 ${M["--ll-spacing-xx-small"]};
|
|
1129
|
+
font-size: ${M["--ll-font-size-caption-2"]};
|
|
1130
|
+
`:_t`
|
|
1131
|
+
height: 32px;
|
|
1132
|
+
width: 32px;
|
|
1133
|
+
font-size: ${M["--ll-font-size-p"]};
|
|
1134
|
+
`,mAt=z.div`
|
|
1135
|
+
position: relative;
|
|
1136
|
+
background: ${({$isPrimary:e})=>e?M["--ll-color-primary"]:M["--ll-color-disabled"]};
|
|
1137
|
+
color: ${M["--ll-color-on-primary"]};
|
|
1138
|
+
border-radius: ${M["--ll-border-radius-small"]};
|
|
1139
|
+
display: flex;
|
|
1140
|
+
justify-content: center;
|
|
1141
|
+
align-items: center;
|
|
1142
|
+
line-height: 1;
|
|
1143
|
+
font-family: ${M["--ll-font-family"]};
|
|
1144
|
+
overflow: hidden;
|
|
1145
|
+
transition: background 160ms ease;
|
|
1146
|
+
flex-shrink: 0;
|
|
1147
|
+
${({$variant:e})=>gAt(e)};
|
|
1148
|
+
|
|
1149
|
+
&:after {
|
|
1150
|
+
content: "";
|
|
1151
|
+
position: absolute;
|
|
1152
|
+
top: 0;
|
|
1153
|
+
bottom: 0;
|
|
1154
|
+
right: 0;
|
|
1155
|
+
left: 0;
|
|
1156
|
+
background: linear-gradient(
|
|
1157
|
+
180deg,
|
|
1158
|
+
rgba(255, 255, 255, 0.2) 0%,
|
|
1159
|
+
rgba(0, 0, 0, 0.1) 100%
|
|
1160
|
+
);
|
|
1161
|
+
}
|
|
1162
|
+
`,vAt=z.div`
|
|
1163
|
+
z-index: 1;
|
|
1164
|
+
`,yAt=({options:{variant:e="large",isPrimary:t=!0}={}})=>{const{options:{scoresData:n,score:r}}=sf(),{scoreVal:i}=PS({scoresData:n,score:r});return i==null?null:j(mAt,{"data-testid":"score-badge",$variant:e,$isPrimary:t,children:j(vAt,{children:i})})};var xAt=Object.defineProperty,bAt=(e,t,n)=>t in e?xAt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xd=(e,t,n)=>(bAt(e,typeof t!="symbol"?t+"":t,n),n);const Ng=e=>typeof e=="object"&&e!==null&&!Array.isArray(e);function U_(e,...t){if(!t.length)return e;const n=t.shift();return Ng(e)&&Ng(n)&&Object.keys(n).forEach(r=>{Ng(n[r])?(e[r]||Object.assign(e,{[r]:{}}),U_(e[r],n[r])):Object.assign(e,{[r]:n[r]})}),U_(e,...t)}const _At=Object.freeze(Object.defineProperty({__proto__:null,isObject:Ng,mergeDeep:U_},Symbol.toStringTag,{value:"Module"})),wAt=(e,t,n)=>t===1?e:n!=null?n:`${e}s`,AAt=e=>e.charAt(0).toUpperCase()+e.slice(1),SAt=({houseNumber:e,street:t,city:n,state:r,country:i,postalCode:o})=>[`${e?`${e&&t?`${e} `:`${e}`}`:""}${t||""}`,n,r,i,o].reduceRight((s,a)=>s&&a?`${a}, ${s}`:a||s||"")||"",iO=Object.freeze(Object.defineProperty({__proto__:null,pluralize:wAt,capitalize:AAt,formatAddress:SAt},Symbol.toStringTag,{value:"Module"})),EAt=(e,t)=>t==="school",CAt=Object.freeze(Object.defineProperty({__proto__:null,isSchool:EAt},Symbol.toStringTag,{value:"Module"})),K7=Object.freeze(Object.defineProperty({__proto__:null,poi:CAt},Symbol.toStringTag,{value:"Module"}));var Dn={},OS={},af={},RS={};/*!
|
|
1165
|
+
* cookie
|
|
1166
|
+
* Copyright(c) 2012-2014 Roman Shtylman
|
|
1167
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
1168
|
+
* MIT Licensed
|
|
1169
|
+
*/RS.parse=$At;RS.serialize=PAt;var kAt=decodeURIComponent,TAt=encodeURIComponent,MAt=/; */,Np=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function $At(e,t){if(typeof e!="string")throw new TypeError("argument str must be a string");for(var n={},r=t||{},i=e.split(MAt),o=r.decode||kAt,s=0;s<i.length;s++){var a=i[s],l=a.indexOf("=");if(!(l<0)){var c=a.substr(0,l).trim(),u=a.substr(++l,a.length).trim();u[0]=='"'&&(u=u.slice(1,-1)),n[c]==null&&(n[c]=OAt(u,o))}}return n}function PAt(e,t,n){var r=n||{},i=r.encode||TAt;if(typeof i!="function")throw new TypeError("option encode is invalid");if(!Np.test(e))throw new TypeError("argument name is invalid");var o=i(t);if(o&&!Np.test(o))throw new TypeError("argument val is invalid");var s=e+"="+o;if(r.maxAge!=null){var a=r.maxAge-0;if(isNaN(a))throw new Error("maxAge should be a Number");s+="; Max-Age="+Math.floor(a)}if(r.domain){if(!Np.test(r.domain))throw new TypeError("option domain is invalid");s+="; Domain="+r.domain}if(r.path){if(!Np.test(r.path))throw new TypeError("option path is invalid");s+="; Path="+r.path}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");s+="; Expires="+r.expires.toUTCString()}if(r.httpOnly&&(s+="; HttpOnly"),r.secure&&(s+="; Secure"),r.sameSite){var l=typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite;switch(l){case!0:s+="; SameSite=Strict";break;case"lax":s+="; SameSite=Lax";break;case"strict":s+="; SameSite=Strict";break;default:throw new TypeError("option sameSite is invalid")}}return s}function OAt(e,t){try{return t(e)}catch(n){return e}}Object.defineProperty(af,"__esModule",{value:!0});var RAt=function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();af.hasCookies=NAt;var DAt=RS,Fp=LAt(DAt);function LAt(e){return e&&e.__esModule?e:{default:e}}function IAt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var uo="lS_",Z7=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};IAt(this,e),this.cookieOptions=Object.assign({path:"/"},t),uo=t.prefix===void 0?uo:t.prefix}return RAt(e,[{key:"getItem",value:function(t){var n=Fp.default.parse(document.cookie);return!n||!n.hasOwnProperty(uo+t)?null:n[uo+t]}},{key:"setItem",value:function(t,n){return document.cookie=Fp.default.serialize(uo+t,n,this.cookieOptions),n}},{key:"removeItem",value:function(t){var n=Object.assign({},this.cookieOptions,{maxAge:-1});return document.cookie=Fp.default.serialize(uo+t,"",n),null}},{key:"clear",value:function(){var t=Fp.default.parse(document.cookie);for(var n in t)n.indexOf(uo)===0&&this.removeItem(n.substr(uo.length));return null}}]),e}();af.default=Z7;function NAt(){var e=new Z7;try{var t="__test";e.setItem(t,"1");var n=e.getItem(t);return e.removeItem(t),n==="1"}catch(r){return!1}}Object.defineProperty(OS,"__esModule",{value:!0});OS.default=zAt;var FAt=af,oO="__test";function sO(e){try{var t=window[e];return t.setItem(oO,"1"),t.removeItem(oO),!0}catch(n){return!1}}function zAt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"localStorage",t=String(e).replace(/storage$/i,"").toLowerCase();if(t==="local")return sO("localStorage");if(t==="session")return sO("sessionStorage");if(t==="cookie")return(0,FAt.hasCookies)();if(t==="memory")return!0;throw new Error("Storage method `"+e+"` is not available.\n Please use one of the following: localStorage, sessionStorage, cookieStorage, memoryStorage.")}var DS={};Object.defineProperty(DS,"__esModule",{value:!0});var BAt=function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function VAt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var jAt=function(){function e(){VAt(this,e),this._data={}}return BAt(e,[{key:"getItem",value:function(t){return this._data.hasOwnProperty(t)?this._data[t]:null}},{key:"setItem",value:function(t,n){return this._data[t]=String(n)}},{key:"removeItem",value:function(t){return delete this._data[t]}},{key:"clear",value:function(){return this._data={}}}]),e}();DS.default=jAt;Object.defineProperty(Dn,"__esModule",{value:!0});Dn.MemoryStorage=Dn.CookieStorage=Dn.isSupported=Dn.storage=void 0;var HAt=OS,Fg=LS(HAt),UAt=af,J7=LS(UAt),WAt=DS,tz=LS(WAt);function LS(e){return e&&e.__esModule?e:{default:e}}var ml=null;(0,Fg.default)("localStorage")?Dn.storage=ml=window.localStorage:(0,Fg.default)("sessionStorage")?Dn.storage=ml=window.sessionStorage:(0,Fg.default)("cookieStorage")?Dn.storage=ml=new J7.default:Dn.storage=ml=new tz.default;var YAt=Dn.default=ml;Dn.storage=ml;Dn.isSupported=Fg.default;Dn.CookieStorage=J7.default;Dn.MemoryStorage=tz.default;class ez{constructor(t="global"){xd(this,"group"),xd(this,"localStorage"),this.group=t,this.localStorage=YAt}setGroup(t){this.group=t}getGroup(){return this.group}getItem(t){return this.localStorage.getItem(`${this.group}.${t}`)}setItem(t,n){this.localStorage.setItem(`${this.group}.${t}`,n)}removeItem(t){this.localStorage.removeItem(`${this.group}.${t}`)}}new ez;class GAt{constructor(){xd(this,"storageLocation","suggestion_history"),xd(this,"storage"),xd(this,"history",[]),this.storage=new ez("commute");const t=this.storage.getItem(this.storageLocation);t&&(this.history=JSON.parse(t))}push(t){this.history=this.removeDuplicateEntries(t),this.history.unshift(t),this.history.length>5&&(this.history=this.history.slice(0,5)),this.storage.setItem(this.storageLocation,JSON.stringify(this.history))}hasSuggestionHistory(){return this.history.length>0}getSuggestionHistory(){return this.history}removeDuplicateEntries(t){return this.history.filter(n=>n.locationId!==t.locationId)}}new GAt;const Se=e=>{const{client:t}=X7(),{locale:n="en"}=t.options,r=v.exports.useMemo(()=>_At.mergeDeep({},...e)[n],[n,e]);return{locale:n,translations:r}},nz={en:{cafes:"Cafes",car_friendly:"Driving",cycling_friendly:"Cycling",daycares:"Day care",greenery:"Greenery",groceries:"Grocery",high_schools:"High schools",historic:"Historic",nightlife:"Night life",parks:"Parks",pedestrian_friendly:"Walking",primary_schools:"Primary schools",quiet:"Quiet",restaurants:"Restaurants",shopping:"Shopping",transit_friendly:"Transit",vibrant:"Vibrancy",wellness:"Wellness"},fr:{cafes:"Caf\xE9s",car_friendly:"Voiture",cycling_friendly:"V\xE9lo",daycares:"Garderies",greenery:"Verdure",groceries:"\xC9piceries",high_schools:"\xC9coles secondaires",historic:"Historique",nightlife:"Vie nocturne",parks:"Parcs",pedestrian_friendly:"Marche",primary_schools:"\xC9coles primaires",quiet:"Silencieux",restaurants:"Restaurants",shopping:"Magasins",transit_friendly:"Transport public",vibrant:"Dynamisme",wellness:"Bien-\xEAtre"}},rz={en:{"cafes-description":"A measure of the quantity of nearby coffee shops.","car_friendly-description":"Represents how well traffic flows, and how easy it is to park.","cycling_friendly-description":"Represents how suitable the area is for cycling in terms of nearby bicycle infrastructure and calm streets, as well as the number of destinations that can be reached by bicycle.","daycares-description":"Represents the distance to the nearest daycare.","greenery-description":"Quantity of nearby green spaces and tree canopy coverage.","groceries-description":"A measure of the quantity of nearby grocery stores.","high_schools-description":"Represents the distance to nearest high school.","historic-description":"A measure of the quantity and size of heritage buildings, and the average building age in the area.","nightlife-description":"Represents the quantity of bars nearby.","parks-description":"A measure of the quantity and size of nearby parks.","pedestrian_friendly-description":"A measure of how many basic services can be reached on foot and how pleasant it is to walk to them.","primary_schools-description":"A measure of the distance to the nearest elementary school.","quiet-description":"A measure of the average levels of noise nearby.","restaurants-description":"Represents the quantity of restaurants nearby.","shopping-description":"A measure of the quantity of fashion and department stores nearby.","transit_friendly-description":"A measure of the frequency and level of public transit service.","vibrant-description":"Represents the level of street activity nearby.","wellness-description":"Represents how conducive a location is to individuals' well-being."},fr:{"cafes-description":"Une mesure de la quantit\xE9 et de la diversit\xE9 des caf\xE9s \xE0 proximit\xE9.","car_friendly-description":"Repr\xE9sente la fluidit\xE9 de la circulation et la facilit\xE9 de stationnement.","cycling_friendly-description":"Repr\xE9sente \xE0 quel point la zone est adapt\xE9e au cyclisme en termes d'infrastructure cyclable \xE0 proximit\xE9 et de rues calmes, ainsi que le nombre de destinations pouvant \xEAtre atteintes \xE0 v\xE9lo.","daycares-description":"Repr\xE9sente la distance \xE0 la garderie la plus proche.","greenery-description":"Quantit\xE9 d'espaces verts \xE0 proximit\xE9 et couverture de la canop\xE9e des arbres.","groceries-description":"Une mesure de la quantit\xE9 d'\xE9piceries \xE0 proximit\xE9.","high_schools-description":"Repr\xE9sente la distance \xE0 l'\xE9cole secondaire la plus proche.","historic-description":"Une mesure de la quantit\xE9 et de la taille des b\xE2timents patrimoniaux, et de l'\xE2ge moyen des b\xE2timents dans la r\xE9gion.","nightlife-description":"Repr\xE9sente la quantit\xE9 et la diversit\xE9 des bars \xE0 proximit\xE9.","parks-description":"Une mesure de la quantit\xE9 et de la taille des parcs \xE0 proximit\xE9.","pedestrian_friendly-description":"Une mesure de la proximit\xE9 des services de base et de l'agr\xE9ment d'y aller \xE0 pied.","primary_schools-description":"Une mesure de la distance \xE0 l'\xE9cole primaire la plus proche.","quiet-description":"Une mesure des niveaux moyens de bruit \xE0 proximit\xE9.","restaurants-description":"Repr\xE9sente la quantit\xE9 et la diversit\xE9 des restaurants \xE0 proximit\xE9.","shopping-description":"Une mesure de la quantit\xE9 et de la diversit\xE9 de magasins de mode et de grands magasins \xE0 proximit\xE9.","transit_friendly-description":"Une mesure de la fr\xE9quence et du niveau de service de transport en commun.","vibrant-description":"Repr\xE9sente le niveau d'activit\xE9 de la rue \xE0 proximit\xE9.","wellness-description":"Repr\xE9sente \xE0 quel point un emplacement est propice au bien-\xEAtre des individus."}},iz=e=>{var t;const{options:{score:n}}=sf(),{translations:r}=Se([rz,nz]);return(t=e.options)!=null&&t.isRawText?j(ii,{children:r[n]}):j(Qt,{...e.options,children:r[n]})};iz.defaultProps={options:{noMargin:!0,variant:"h6",color:"--ll-color-on-background-variant1",isRawText:!1}};const oz=e=>Ae("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:[O("path",{d:"M12 2C7.58 2 4 2.5 4 6V16C4 16.88 4.39 17.67 5 18.22V20C5 20.55 5.45 21 6 21H7C7.55 21 8 20.55 8 20V19H16V20C16 20.55 16.45 21 17 21H18C18.55 21 19 20.55 19 20V18.22C19.61 17.67 20 16.88 20 16V6C20 2.5 16.42 2 12 2ZM17.66 4.99H6.34C6.89 4.46 8.31 4 12 4C15.69 4 17.11 4.46 17.66 4.99ZM18 6.99V10H6V6.99H18ZM17.66 16.73L17.37 17H6.63L6.34 16.73C6.21 16.62 6 16.37 6 16V12H18V16C18 16.37 17.79 16.62 17.66 16.73Z"}),O("path",{d:"M8.5 16C9.32843 16 10 15.3284 10 14.5C10 13.6716 9.32843 13 8.5 13C7.67157 13 7 13.6716 7 14.5C7 15.3284 7.67157 16 8.5 16Z"}),O("path",{d:"M15.5 16C16.3284 16 17 15.3284 17 14.5C17 13.6716 16.3284 13 15.5 13C14.6716 13 14 13.6716 14 14.5C14 15.3284 14.6716 16 15.5 16Z"})]}),qAt=e=>Ae("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:[O("path",{d:"M18.92 6.01C18.72 5.42 18.16 5 17.5 5H6.5C5.84 5 5.29 5.42 5.08 6.01L3 12V20C3 20.55 3.45 21 4 21H5C5.55 21 6 20.55 6 20V19H18V20C18 20.55 18.45 21 19 21H20C20.55 21 21 20.55 21 20V12L18.92 6.01ZM6.85 7H17.14L18.22 10.11H5.77L6.85 7ZM19 17H5V12H19V17Z"}),O("path",{d:"M7.5 16C8.32843 16 9 15.3284 9 14.5C9 13.6716 8.32843 13 7.5 13C6.67157 13 6 13.6716 6 14.5C6 15.3284 6.67157 16 7.5 16Z"}),O("path",{d:"M16.5 16C17.3284 16 18 15.3284 18 14.5C18 13.6716 17.3284 13 16.5 13C15.6716 13 15 13.6716 15 14.5C15 15.3284 15.6716 16 16.5 16Z"})]}),XAt=e=>O("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:O("path",{d:"M13.5 5.5C14.6 5.5 15.5 4.6 15.5 3.5C15.5 2.4 14.6 1.5 13.5 1.5C12.4 1.5 11.5 2.4 11.5 3.5C11.5 4.6 12.4 5.5 13.5 5.5ZM9.8 8.9L7 23H9.1L10.9 15L13 17V23H15V15.5L12.9 13.5L13.5 10.5C14.8 12 16.8 13 19 13V11C17.1 11 15.5 10 14.7 8.6L13.7 7C13.14 6.11 12.02 5.75 11.05 6.16L6 8.3V13H8V9.6L9.8 8.9Z"})}),QAt=e=>O("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:O("path",{d:"M15.5 5.5C16.6 5.5 17.5 4.6 17.5 3.5C17.5 2.4 16.6 1.5 15.5 1.5C14.4 1.5 13.5 2.4 13.5 3.5C13.5 4.6 14.4 5.5 15.5 5.5ZM5 12C2.2 12 0 14.2 0 17C0 19.8 2.2 22 5 22C7.8 22 10 19.8 10 17C10 14.2 7.8 12 5 12ZM5 20.5C3.1 20.5 1.5 18.9 1.5 17C1.5 15.1 3.1 13.5 5 13.5C6.9 13.5 8.5 15.1 8.5 17C8.5 18.9 6.9 20.5 5 20.5ZM10.8 10.5L13.2 8.1L14 8.9C15.3 10.2 17 11 19.1 11V9C17.6 9 16.4 8.4 15.5 7.5L13.6 5.6C13.1 5.2 12.6 5 12 5C11.4 5 10.9 5.2 10.6 5.6L7.8 8.4C7.4 8.8 7.2 9.3 7.2 9.8C7.2 10.4 7.4 10.9 7.8 11.2L11 14V19H13V12.8L10.8 10.5ZM19 12C16.2 12 14 14.2 14 17C14 19.8 16.2 22 19 22C21.8 22 24 19.8 24 17C24 14.2 21.8 12 19 12ZM19 20.5C17.1 20.5 15.5 18.9 15.5 17C15.5 15.1 17.1 13.5 19 13.5C20.9 13.5 22.5 15.1 22.5 17C22.5 18.9 20.9 20.5 19 20.5Z"})}),KAt=e=>Ae("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:[O("path",{d:"M1.23 22.27L15.23 17.27L6.23 8.26998L1.23 22.27ZM11.58 16.45L4.53 18.97L7.05 11.92L11.58 16.45Z"}),O("path",{d:"M13.76 12.8L19.35 7.20998C19.84 6.71998 20.63 6.71998 21.12 7.20998L21.71 7.79998L22.77 6.73998L22.18 6.14998C21.11 5.07998 19.36 5.07998 18.29 6.14998L12.7 11.74L13.76 12.8Z"}),O("path",{d:"M9.29 7.14998L8.7 7.73998L9.76 8.79998L10.35 8.20998C11.42 7.13998 11.42 5.38998 10.35 4.31998L9.76 3.72998L8.7 4.79998L9.29 5.38998C9.77 5.86998 9.77 6.66998 9.29 7.14998Z"}),O("path",{d:"M16.29 12.15L14.7 13.74L15.76 14.8L17.35 13.21C17.84 12.72 18.63 12.72 19.12 13.21L20.73 14.82L21.79 13.76L20.18 12.15C19.1 11.08 17.36 11.08 16.29 12.15Z"}),O("path",{d:"M14.29 6.14998L10.7 9.73998L11.76 10.8L15.35 7.20998C16.42 6.13998 16.42 4.38998 15.35 3.31998L13.76 1.72998L12.7 2.78998L14.29 4.37998C14.77 4.86998 14.77 5.66998 14.29 6.14998Z"})]}),ZAt=e=>O("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:O("path",{d:"M17 20.3899C16.71 20.3899 16.44 20.3299 16.24 20.2399C15.53 19.8699 15.03 19.3599 14.53 17.8599C14.02 16.2999 13.06 15.5699 12.14 14.8599C11.35 14.2499 10.53 13.6199 9.82 12.3299C9.29 11.3699 9 10.3199 9 9.38986C9 6.58986 11.2 4.38986 14 4.38986C16.8 4.38986 19 6.58986 19 9.38986H21C21 5.45986 17.93 2.38986 14 2.38986C10.07 2.38986 7 5.45986 7 9.38986C7 10.6499 7.38 12.0399 8.07 13.2899C8.98 14.9399 10.05 15.7699 10.92 16.4399C11.73 17.0599 12.31 17.5099 12.63 18.4899C13.23 20.3099 14 21.3299 15.36 22.0399C15.87 22.2699 16.43 22.3899 17 22.3899C19.21 22.3899 21 20.5999 21 18.3899H19C19 19.4899 18.1 20.3899 17 20.3899ZM7.64 3.02986L6.22 1.60986C4.23 3.59986 3 6.34986 3 9.38986C3 12.4299 4.23 15.1799 6.22 17.1699L7.63 15.7599C6.01 14.1299 5 11.8799 5 9.38986C5 6.89986 6.01 4.64986 7.64 3.02986ZM11.5 9.38986C11.5 10.7699 12.62 11.8899 14 11.8899C15.38 11.8899 16.5 10.7699 16.5 9.38986C16.5 8.00986 15.38 6.88986 14 6.88986C12.62 6.88986 11.5 8.00986 11.5 9.38986Z"})}),sz=e=>O("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:O("path",{d:"M16 5V13C16 14.1 15.1 15 14 15H8C6.9 15 6 14.1 6 13V5H16ZM20 3H4V13C4 15.21 5.79 17 8 17H14C16.21 17 18 15.21 18 13V10H20C21.11 10 22 9.11 22 8V5C22 3.89 21.11 3 20 3ZM18 8V5H20V8H18ZM20 19H2V21H20V19Z"})}),az=e=>O("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:O("path",{d:"M19 6.5H17C17 3.74 14.76 1.5 12 1.5C9.24 1.5 7 3.74 7 6.5H5C3.9 6.5 3 7.4 3 8.5V20.5C3 21.6 3.9 22.5 5 22.5H19C20.1 22.5 21 21.6 21 20.5V8.5C21 7.4 20.1 6.5 19 6.5ZM12 3.5C13.66 3.5 15 4.84 15 6.5H9C9 4.84 10.34 3.5 12 3.5ZM19 20.5H5V8.5H19V20.5ZM12 12.5C10.34 12.5 9 11.16 9 9.5H7C7 12.26 9.24 14.5 12 14.5C14.76 14.5 17 12.26 17 9.5H15C15 11.16 13.66 12.5 12 12.5Z"})}),lz=e=>O("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:O("path",{d:"M1.5 4.5H15.5L9.5 13.5V17.5H11.5V19.5H5.5V17.5H7.5V13.5L1.5 4.5ZM10.6 8.5L12 6.5H4.99L6.39 8.5H10.6ZM17.5 4.5H22.5V7.5H19.5V16.5C19.5 18.16 18.16 19.5 16.5 19.5C14.84 19.5 13.5 18.16 13.5 16.5C13.5 14.84 14.84 13.5 16.5 13.5C16.85 13.5 17.19 13.56 17.5 13.67V4.5Z"})}),cz=e=>O("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:O("path",{d:"M16 6V14H19V22H21V2C18.24 2 16 4.24 16 6ZM11 9H9V2H7V9H5V2H3V9C3 11.21 4.79 13 7 13V22H9V13C11.21 13 13 11.21 13 9V2H11V9Z"})}),uz=e=>O("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:O("path",{d:"M22 9.49001H17.21L12.83 2.93001C12.64 2.65001 12.32 2.51001 12 2.51001C11.68 2.51001 11.36 2.65001 11.17 2.94001L6.79 9.49001H2C1.45 9.49001 1 9.94001 1 10.49C1 10.58 1.01 10.67 1.04 10.76L3.58 20.03C3.81 20.87 4.58 21.49 5.5 21.49H18.5C19.42 21.49 20.19 20.87 20.43 20.03L22.97 10.76L23 10.49C23 9.94001 22.55 9.49001 22 9.49001ZM12 5.29001L14.8 9.49001H9.2L12 5.29001ZM18.5 19.49L5.51 19.5L3.31 11.49H20.7L18.5 19.49ZM12 13.49C10.9 13.49 10 14.39 10 15.49C10 16.59 10.9 17.49 12 17.49C13.1 17.49 14 16.59 14 15.49C14 14.39 13.1 13.49 12 13.49Z"})}),dz=e=>O("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:O("path",{d:"M12.915 16.035H12.885C16.375 15.635 19.085 12.675 19.085 9.08502C19.085 5.21502 15.955 2.08502 12.085 2.08502C8.21504 2.08502 5.08504 5.21502 5.08504 9.08502C5.08504 12.555 7.60504 15.425 10.915 15.975V19.915H4.91504V21.915H18.915V19.915H12.915V16.035ZM7.08504 9.08502C7.08504 6.32502 9.32504 4.08502 12.085 4.08502C14.845 4.08502 17.085 6.32502 17.085 9.08502C17.085 11.845 14.845 14.085 12.085 14.085C9.32504 14.085 7.08504 11.845 7.08504 9.08502Z"})}),JAt=e=>O("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:O("path",{d:"M24 18L20.14 12H22L15 2L12 6.29L9 2L2 12H3.86L0 18H7V22H11V18H13V22H17V18H24ZM15 5.49L18.16 10H16.48L20.34 16H16.72L14.15 12H16L13.22 8.03L15 5.49ZM3.66 16L7.52 10H5.84L9 5.49L12.16 10H10.48L14.34 16H3.66Z"})}),hz=e=>O("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:O("path",{d:"M18 20C18 21.1 17.1 22 16 22C14.9 22 14 21.1 14 20C14 18.9 14.9 18 16 18C17.1 18 18 18.9 18 20ZM6 18C4.9 18 4 18.9 4 20C4 21.1 4.9 22 6 22C7.1 22 8 21.1 8 20C8 18.9 7.1 18 6 18ZM15 8.66L9.6 15H15V8.66ZM18.65 3C20.52 3 22 4.56 22 6.48V7H20V6.48C20 5.66 19.42 5 18.65 5C17.97 5 17.58 5.59 17 6.27V15C17 16.1 16.1 17 15 17H7.43C6.58 17 6.12 16 6.67 15.35L15.47 5.03C16.11 4.27 16.99 3 18.65 3ZM10 5C9.35 5 8.71 5.09 8.09 5.27L9.49 6.67L10.86 5.06C10.58 5.02 10.29 5 10 5ZM10 3C11.56 3 13.03 3.4 14.3 4.1L9.6 9.61L4.72 4.72C6.21 3.64 8.03 3 10 3Z"})}),W_=e=>O("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:O("path",{d:"M15.49 9.63C15.31 6.84 14.18 4.12 12.06 2C9.92 4.14 8.74 6.86 8.51 9.63C9.79 10.31 10.97 11.19 12 12.26C13.03 11.2 14.21 10.32 15.49 9.63ZM12.05 5.19C12.68 6.22 13.12 7.37 13.35 8.57C12.88 8.87 12.44 9.2 12.01 9.55C11.59 9.21 11.14 8.88 10.68 8.58C10.93 7.38 11.39 6.23 12.05 5.19ZM12 15.45C11.18 14.2 10.14 13.11 8.94 12.25C8.81 12.16 8.67 12.09 8.54 11.99C8.67 12.08 8.81 12.16 8.93 12.24C6.98 10.83 4.59 10 2 10C2 15.32 5.36 19.82 10.03 21.49C10.66 21.72 11.32 21.89 12 22C12.68 21.88 13.33 21.71 13.97 21.49C18.64 19.82 22 15.32 22 10C17.82 10 14.15 12.17 12 15.45ZM13.32 19.6C12.88 19.75 12.44 19.87 11.99 19.97C11.55 19.88 11.12 19.76 10.71 19.61C7.42 18.43 5.01 15.62 4.26 12.26C5.36 12.52 6.41 12.97 7.38 13.59L7.36 13.6C7.49 13.69 7.62 13.78 7.75 13.85L7.82 13.89C8.81 14.61 9.66 15.5 10.33 16.54L12 19.1L13.67 16.55C14.36 15.5 15.22 14.6 16.2 13.89L16.27 13.84C16.36 13.79 16.45 13.73 16.54 13.67L16.53 13.65C17.51 13 18.6 12.52 19.74 12.25C18.99 15.62 16.59 18.43 13.32 19.6ZM8.99 12.28C8.97 12.27 8.95 12.25 8.94 12.24C8.94 12.24 8.95 12.24 8.95 12.25C8.96 12.26 8.97 12.27 8.99 12.28Z"})}),IS=e=>O("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:O("path",{d:"M12 3L1 9L5 11.18V17.18L12 21L19 17.18V11.18L21 10.09V17H23V9L12 3ZM18.82 9L12 12.72L5.18 9L12 5.28L18.82 9ZM17 15.99L12 18.72L7 15.99V12.27L12 15L17 12.27V15.99Z"})}),fz=e=>Ae("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:[O("path",{d:"M14.5 11.75C15.1904 11.75 15.75 11.1904 15.75 10.5C15.75 9.80964 15.1904 9.25 14.5 9.25C13.8096 9.25 13.25 9.80964 13.25 10.5C13.25 11.1904 13.8096 11.75 14.5 11.75Z"}),O("path",{d:"M9.5 11.75C10.1904 11.75 10.75 11.1904 10.75 10.5C10.75 9.80964 10.1904 9.25 9.5 9.25C8.80964 9.25 8.25 9.80964 8.25 10.5C8.25 11.1904 8.80964 11.75 9.5 11.75Z"}),O("path",{d:"M22.94 11.34C22.69 9.83 21.58 8.6 20.13 8.17C19.6 7.05 18.85 6.07 17.94 5.26C16.36 3.85 14.28 3 12 3C9.72 3 7.64 3.85 6.06 5.26C5.14 6.07 4.39 7.06 3.87 8.17C2.42 8.6 1.31 9.82 1.06 11.34C1.02 11.55 1 11.77 1 12C1 12.23 1.02 12.45 1.06 12.66C1.31 14.17 2.42 15.4 3.87 15.83C4.39 16.94 5.14 17.92 6.04 18.72C7.62 20.14 9.71 21 12 21C14.29 21 16.38 20.14 17.97 18.72C18.87 17.92 19.62 16.93 20.14 15.83C21.58 15.4 22.69 14.18 22.94 12.66C22.98 12.45 23 12.23 23 12C23 11.77 22.98 11.55 22.94 11.34ZM19 14C18.9 14 18.81 13.98 18.71 13.97C18.51 14.64 18.22 15.26 17.85 15.83C16.6 17.74 14.45 19 12 19C9.55 19 7.4 17.74 6.15 15.83C5.78 15.26 5.49 14.64 5.29 13.97C5.19 13.98 5.1 14 5 14C3.9 14 3 13.1 3 12C3 10.9 3.9 10 5 10C5.1 10 5.19 10.02 5.29 10.03C5.49 9.36 5.78 8.74 6.15 8.17C7.4 6.26 9.55 5 12 5C14.45 5 16.6 6.26 17.85 8.17C18.22 8.74 18.51 9.36 18.71 10.03C18.81 10.02 18.9 10 19 10C20.1 10 21 10.9 21 12C21 13.1 20.1 14 19 14ZM12 17C14.01 17 15.74 15.77 16.5 14H7.5C8.26 15.77 9.99 17 12 17Z"})]}),t2t=e=>Ae("svg",{viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e,children:[O("path",{d:"M17.5 7.5V9.16667H15.8334V2.5H14.1667V4.16667H12.5V2.5H10.8334V4.16667H9.16671V2.5H7.50004V4.16667H5.83337V2.5H4.16671V9.16667H2.50004V7.5H0.833374V17.5H8.33337V15C8.33337 14.0833 9.08337 13.3333 10 13.3333C10.9167 13.3333 11.6667 14.0833 11.6667 15V17.5H19.1667V7.5H17.5ZM17.5 15.8333H13.3334V15C13.3334 13.1583 11.8417 11.6667 10 11.6667C8.15837 11.6667 6.66671 13.1583 6.66671 15V15.8333H2.50004V10.8333H5.83337V5.83333H14.1667V10.8333H17.5V15.8333Z"}),O("path",{d:"M9.16671 7.5H7.50004V10H9.16671V7.5Z"}),O("path",{d:"M12.5 7.5H10.8334V10H12.5V7.5Z"})]}),e2t={pedestrian_friendly:XAt,transit_friendly:oz,cycling_friendly:QAt,car_friendly:qAt,groceries:uz,restaurants:cz,cafes:sz,shopping:az,wellness:W_,parks:dz,greenery:JAt,vibrant:KAt,nightlife:lz,quiet:ZAt,historic:t2t,high_schools:IS,primary_schools:fz,daycares:hz},KEt={pedestrian_friendly:[],transit_friendly:["rapid_transit_stations","train_stations","bus_stops"],cycling_friendly:[],car_friendly:["car_fueling_stations"],groceries:["groceries","groceries_specialized"],restaurants:["restaurants","healthy_restaurants"],cafes:["cafes"],shopping:["shopping"],parks:["parks"],greenery:[],vibrant:["art_culture_science"],nightlife:["nightlife"],quiet:[],historic:[],high_schools:[],primary_schools:[],daycares:["daycares"]},pz=({options:e})=>{const{options:{score:t}}=sf();return j(rr,{SVGElement:e2t[t],fill:`var(${e==null?void 0:e.color})`,height:e==null?void 0:e.height,width:e==null?void 0:e.width})};pz.defaultProps={options:{color:"--ll-color-on-background-variant1"}};const n2t=()=>{const[e,t]=v.exports.useState(!0);return v.exports.useEffect(()=>{t(!1)},[]),e},r2t={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0},i2t=()=>{const e=n2t(),[t,n]=v.exports.useState(null),[r,i]=v.exports.useState(r2t),o=v.exports.useMemo(()=>e?void 0:new window.ResizeObserver(s=>{if(s[0]){const{x:a,y:l,width:c,height:u,top:d,left:h,bottom:f,right:p}=s[0].contentRect;i({x:a,y:l,width:c,height:u,top:d,left:h,bottom:f,right:p})}}),[e]);return v.exports.useLayoutEffect(()=>{if(!(!t||e))return o==null||o.observe(t),()=>{o==null||o.disconnect()}},[t,e]),[n,r,t]},o2t={en:{LOCATION:"This Location",CITY:"City",NEIGHBOURHOOD:"Neighbourhood",AVG:"Avg."},fr:{LOCATION:"Ce Lieu",CITY:"Ville",NEIGHBOURHOOD:"Quartier",AVG:"Moy."}},s2t=z.div`
|
|
1170
|
+
position: relative;
|
|
1171
|
+
display: grid;
|
|
1172
|
+
grid-template-columns: ${({$isUsingIcons:e})=>e?"auto auto 1fr auto":"auto 1fr auto"};
|
|
1173
|
+
align-items: center;
|
|
1174
|
+
grid-column-gap: ${M["--ll-spacing-x-small"]};
|
|
1175
|
+
width: 100%;
|
|
1176
|
+
`,Xy=z.div`
|
|
1177
|
+
height: ${bn*2}px;
|
|
1178
|
+
width: 100%;
|
|
1179
|
+
border-radius: ${bn}px;
|
|
1180
|
+
background-color: ${M["--ll-color-surface-variant1"]};
|
|
1181
|
+
position: relative;
|
|
1182
|
+
overflow: hidden;
|
|
1183
|
+
`,Qy=z(HA.div)`
|
|
1184
|
+
position: absolute;
|
|
1185
|
+
height: 100%;
|
|
1186
|
+
border-radius: ${bn}px;
|
|
1187
|
+
background: ${({$renderForPrint:e})=>e===!0?_t`
|
|
1188
|
+
${M["--ll-color-primary"]}
|
|
1189
|
+
`:_t`linear-gradient(
|
|
1190
|
+
to right,
|
|
1191
|
+
${M["--ll-color-primary-variant1"]},
|
|
1192
|
+
${M["--ll-color-primary"]}
|
|
1193
|
+
)`};
|
|
1194
|
+
`;z.div`
|
|
1195
|
+
position: absolute;
|
|
1196
|
+
height: 100%;
|
|
1197
|
+
top: 0;
|
|
1198
|
+
left: ${({val:e})=>e*10}%;
|
|
1199
|
+
transform: translateX(-1px);
|
|
1200
|
+
border-right: ${({markerType:e})=>`4px ${e==="city"?"solid":"dotted"} ${M["--ll-color-on-background"]}`};
|
|
1201
|
+
`;z.div`
|
|
1202
|
+
position: absolute;
|
|
1203
|
+
top: ${({position:e})=>e==="top"&&"-18px"};
|
|
1204
|
+
bottom: ${({position:e})=>e==="bottom"&&"-18px"};
|
|
1205
|
+
transform: translateX(calc(-50% + 2px));
|
|
1206
|
+
left: 0;
|
|
1207
|
+
`;const aO=z.div`
|
|
1208
|
+
display: flex;
|
|
1209
|
+
max-width: ${({maxWidth:e})=>e}px;
|
|
1210
|
+
`,lO=z(Qt)`
|
|
1211
|
+
margin-right: 4px;
|
|
1212
|
+
`,cO=z.span`
|
|
1213
|
+
flex-shrink: 0;
|
|
1214
|
+
`,a2t=({options:{locationIcon:e,cityIcon:t,neighbourhoodIcon:n,renderCityAvg:r,renderNeighbourhoodAvg:i}={}})=>{const{options:{scoresData:o,score:s}}=sf(),{options:a}=X7(),{scoreVal:l,cityName:c,cityScoreVal:u,neighbourhoodName:d,neighbourhoodScoreVal:h}=PS({score:s,scoresData:o}),{translations:f}=Se([o2t]),p=!!e||!!t||!!n,[g,y]=i2t(),m=j("div",{}),x=b=>b?j(rr,{width:20,height:20,SVGElement:b,fill:M["--ll-color-on-background-variant1"]}):p?m:void 0;return l?j(ii,{children:Vt(s2t,{$isUsingIcons:p,ref:g,children:[Vt(ii,{children:[x(e),j(Qt,{variant:"p",weight:"--ll-font-weight-bold",noMargin:!0,color:"--ll-color-on-background-variant1",children:f.LOCATION}),j(Xy,{children:j(Qy,{$renderForPrint:a==null?void 0:a.renderForPrint,animate:{width:`${l/10*100}%`},transition:(a==null?void 0:a.renderForPrint)===!0?{delay:0,duration:0}:{delay:.3,...Cg.transitions.spring}})}),j(Qt,{variant:"p",weight:"--ll-font-weight-bold",noMargin:!0,align:"right",color:"--ll-color-on-background-variant1",children:l})]}),h&&i!==!1&&Vt(ii,{children:[x(n),Vt(aO,{maxWidth:y.width/2,children:[j(lO,{variant:"p",lineClamp:1,noMargin:!0,color:"--ll-color-on-background-variant1",children:d||f.NEIGHBOURHOOD}),j(cO,{children:j(Qt,{variant:"p",noMargin:!0,color:"--ll-color-on-background-variant1",children:f.AVG})})]}),j(Xy,{children:j(Qy,{animate:{width:`${h/10*100}%`},transition:{delay:.5,...Cg.transitions.spring}})}),j(Qt,{variant:"p",noMargin:!0,align:"right",color:"--ll-color-on-background-variant1",children:h})]}),u&&r!==!1&&Vt(ii,{children:[x(t),Vt(aO,{maxWidth:y.width/2,children:[j(lO,{variant:"p",noMargin:!0,color:"--ll-color-on-background-variant1",children:c||f.CITY}),j(cO,{children:j(Qt,{variant:"p",noMargin:!0,color:"--ll-color-on-background-variant1",children:f.AVG})})]}),j(Xy,{children:j(Qy,{animate:{width:`${u/10*100}%`},transition:{delay:.4,...Cg.transitions.spring}})}),j(Qt,{variant:"p",noMargin:!0,align:"right",color:"--ll-color-on-background-variant1",children:u})]})]})}):null},l2t=e=>O("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:O("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM13 19H11V17H13V19ZM15.07 11.25L14.17 12.17C13.45 12.9 13 13.5 13 15H11V14.5C11 13.4 11.45 12.4 12.17 11.67L13.41 10.41C13.78 10.05 14 9.55 14 9C14 7.9 13.1 7 12 7C10.9 7 10 7.9 10 9H8C8 6.79 9.79 5 12 5C14.21 5 16 6.79 16 9C16 9.88 15.64 10.68 15.07 11.25Z"})}),c2t=e=>O("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:O("path",{d:"M11 18H13V16H11V18ZM12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM12 6C9.79 6 8 7.79 8 10H10C10 8.9 10.9 8 12 8C13.1 8 14 8.9 14 10C14 12 11 11.75 11 15H13C13 12.75 16 12.5 16 10C16 7.79 14.21 6 12 6Z"})}),u2t=z.div`
|
|
1215
|
+
display: flex;
|
|
1216
|
+
align-items: flex-start;
|
|
1217
|
+
justify-content: space-between;
|
|
1218
|
+
`,d2t=z(dc.Content)`
|
|
1219
|
+
z-index: 3;
|
|
1220
|
+
`,h2t=()=>{const{options:{scoresData:e,score:t},onChange:n}=sf(),{textVal:r}=PS({scoresData:e,score:t}),[i,o]=v.exports.useState(!1),{translations:s}=Se([rz,nz]),a=l=>{o(l),n&&n({type:"tooltip-toggle",data:l})};return r?Vt(u2t,{children:[Vt(Qt,{noMargin:!0,color:"--ll-color-on-surface-variant1",children:[r,"."]}),Vt(dc.Root,{open:i,onOpenChange:a,children:[j(dc.Trigger,{children:j(rr,{SVGElement:i?l2t:c2t,fill:M["--ll-color-primary"],height:20,width:20})}),j(d2t,{children:j(Qt,{noMargin:!0,color:"--ll-color-on-surface-variant1",children:s[`${t}-description`]})})]})]}):null},f2t=e=>j(Q7.Provider,{value:{...e},children:e.children}),ZEt=Object.freeze(Object.defineProperty({__proto__:null,Badge:yAt,Title:iz,Icon:pz,BarChart:a2t,Description:h2t,Root:f2t},Symbol.toStringTag,{value:"Module"})),p2t={en:{LOCAL_LOGIC:"Local Logic",POWERED_BY:"Powered by"},fr:{LOCAL_LOGIC:"Local Logic",POWERED_BY:"Propuls\xE9 par"}},g2t="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABNwAAADqCAYAAAB5oFizAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAJstJREFUeNrs3c9uHEmeGOCsGQG6zGL4BlNj+DA+NfUEKp0ae1iI5Auo9AKWdFrYMEDy0oBPEucFVDrMwoddisJe9qYS4INvYt/sw6JrfPLB8HLgg01DaDqDjGomKZJikRH59/sa1UXxT1ZmRmTGL34ZGVkUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAx4xyLvwPP/xxvTgp1pYf9PPJyVcfelJ+L/w3OrnwzeLk8sLi355UfjCq/OPnk+UGnVR+Xn7/7K+K4uTiBv9c+dt//uFv56oCAAAAACk8yLz81+Vr0vqd8PDhvHzb/HJ8fKRKAAAAAHAfv7ILTk3K108PHj7csCsAAAAAuA8Jt3Ph1tf3Dx4+fFu+1uwOAAAAAO5Cwu1r0/L1+cHDh+t2BQAAAACrknC72rg4S7rt2BUAAAAArOKBXXCj7d+M/9Xjf/Mffvg0Gp0/W7XyZcxYxm+MKk9gLX+p+jTWX8V/nCz/ZjSqfL38/ujC7y+fozqqfOgovk5Gy6+vXq8LXxcX/lEue1T9Z7ms0S/bcjKqbtfZOvz6dF3O1vfX8Xeu3I7KMs8/YnRpvW6xvpd+MLq07Oq+KC6sy+nXiz99//1M1QUAAACaIuH2rR30m7+aFB140iq/mJevmd0AAAAANMUtpQAAAACQkIQbAAAAACQk4QYAAAAACUm4AQAAAEBCEm4AAAAAkJCEGwAAAAAkJOEGAAAAAAlJuAEAAABAQhJuAAAAAJCQhBsAAAAAJCThBgAAAAAJSbgBAAAAQEISbgAAAACQkIQbAAAAACQk4QYAAAAACUm4AQAAAEBCEm4AAAAAkJCEGwAAAAAkJOEGAAAAAAlJuAEAAABAQg/sAgAAAABS29zamtzm997v788rfzMu38bV733jM9bKt/XydVj+zVFbtl3CDQAAAIActi/9exzfF5e+P698PQ1/t7m19eSWSbfX8W+eXFpOoyTcAAAAAEju/f7+k+q/N7e2duL3d77xp4vy9aL4RgItjm7bKL5O4DXOHG4AAAAAtMlB+ZrE20tvMo2/u2jbBki4AQAAANAmfynOEmkvvvF74efv2rgBEm4AAAAAtM1ucTaC7UqbW1vhVtKj2z5coW4SbgAAAAC0yvv9/UX5dri5tTW95lfC6La9tq6/hBsAAAAAbRQSal/dVhrndlt/v78/a+uKS7idObILAAAAANrj/f5+mMdtbXNra3LpR9tFi0e3BRJuZ8Jjahd2AwAAAECrhMTas+U/Nre21sq3MH/brM0rLeFW+nJ8fFi+PSrOnoABAAAAQDvMytdGvI00mJavgzjHW2tJuEVfjo+PytdmcfYUDAAAAAAa9n5/P0wDFgZITeO3wpxu79q+3hJul3w5Pt4pzm4xNa8bAAAAQPPC4KgXm1tb4VbSo/f7+/O2r7CE2xW+HB+Hggu3mB7aGwAAAADNibePhhzN26LlD0tYeqDYrvbl+DgU5qMHv/mr1+X7uj1yamIXAAAAAA0It5GO3+/vz7qwshJu3/A//8t/flW+7IjS3/zDP57YCwAAAMAdze76OyHRtrm1dd2diK/K16JNGyrhBgAAAEB2t3my6E2/U/7scJXvN8kcbgAAAACQkIQbAAAAACQk4QYAAAAACUm4AQAAAEBCEm4AAAAAkJCEGwAAAAAkJOEGAAAAAAlJuAEAAABAQhJuAAAAAJCQhBsAAAAAJCThBgAAAAAJPbALANprY2trvXxbi/+sfl21iK/g6GB//9Ce62Q5zpdflGU4t9cAetkejMu3cfxn9euqo/J1qE1QjnCHePIw1r3Tr8t6d2TPNUfCDaA9DWh4fRffr2tEb7Os8LaIr9Do/li+5mWDu7CnW12O25fKcBmoK0OA7rUH40o78Li4Pilz23Y9mMe2fdkmuMDW/XI8lIijhnrn3NGQUc6F/+GHP34sTorJ8oN+Pjn56kNPyu+F/0YnF75ZnFxeWPzbk8oPRpV//Hyy3KCTys/L75/9VVGcXNzgnyt/+88//O1IVfi2v/mHfzz5ddibo7PdeXo/8mh0/nWlUo1G5/8aVfbuqPKPi9+/+nfCD0aXK2z8+Sj+73xdTr+e/+n7758orRtPumvx5J3KQhLgzuWwUb6elq9wnlyr4WMXscH9VL4OXPFKWo6P4/taTWX4IQZMRwPe95OEi+v9FeBLV8XvTQex18eDkdJ3L4dquz6u6WMPKu26eCxdOS7b9brKsdq2H3Z8/02SVvCBtDc1nz+OKnVOnyAjI9xgeEKn62PC5e2Wrx279VYNaTXJttHAKoTGexpfb8v1CUH6h7KRnSmdOwVFzxoox2oZFrEM35VleDDA/f/eeWwlr2MQn4qLle2Ssl0PnTAXL1fvJNdx0eXKVYiv1+W6hETNu/I104FeuRxDfPyiwXKcLM/R5bosirNE6l5Hk6gfEy9v1ON6N6nEk3XWu7XKueOXPkEh+ZachBtA/sZ0HIO4aUNB3I1Berl+oSO+FwP0hRK7thxD2b2MZbnWsjJcxE7Wm4EESi8SLy8EuztqObBCezCN56Jxi1ZteQtaSL7NirOEjdGKN5flshzXW7Ra4xhvvCzXb16cXVibKa1enT9C/LbdovNHNXEfkm+7+gRpSLgB5GtQx7ExnbZ8Vdfiem7HAF0j+3Vg9Lpo7qr3bYPzUIYvyvUNydPeJt7icTVJvf/CKJWhjRQE7tQetO3Cy3VC7DGNCZtdt4F/VZbTol0Jj+uE9m5Sru92LMeZ0nP+yNwnWJ479AkS+JVdAJC+QS1fb8svfyran2y7KkD/qVz/nRgYDL0cdyrl2IX9sUyehjJ82dOiedGx5QL9aBNexvZguyPtwdKkfH0s1/9jvGAx9HIMo8JDOYY4rUv7I6xruPXvp5gspFv1btrB84c+QQISbgB5AvKuB0PLpM3GQMsxdFA+d7BjtXQ6Kq/cjs9xXpq+lMtaxmNrojMKXNUehHNpcTbSucudzsmy8zzQcgwjmcPcYmH+zy6f68O6v5VA7Uy9W4/17m2Hzx8hFv6c+mEYQyHhBpAoERAb1K4H5FVhO96X2/V+KFe2YjmGMvzY8YB86fQhKT26Gp77tl6j3IBqm7BsD9Z7tFnbfbsYc4tyDBdDQ9K0TwmDsC2fezyavQ/1bqdH9W4c48nXSnY1Em4A929QQ0P6U88CuQubWJxdFV/veTkun+Dbt+A1JKjextucO99RzLz8qdsmgDga6nMP24Ol0N71PlkTL6KFEW19uhh6uX1/PaQLox2qdx9riFma8DKOrlTfbknCDeB+jWoIVj/2NJC7HNR97uu8IfHW2b6NYrhs2uWkW0xsj2uo54O8jRr45VxzmozqeXuw9LonF2OuK8ePAzmnn8YwkiCtqXd9vghfFOfzQqpvtyDhBnD3RjUEqUMbWv22b8PJYxIxXAEfQuDQ5aTbs5o+x22lMNx2PbQHnwfSHlTbhc996jxXkm3rAyrHsK3bjuJG693y4u3aQOqbpNstSLgB3K1RDUmL6UA3/2VfrojHztXbgZXftGsjFePE0HWt87qJgWGQ7foQ24PedZ4rybahJQIOy9euI7nR88f7gdW7cKyZ0+0bJNwAVm9Uh5xsW5p2Pek24M7V7GB/f9a1+lbz5z0rgKF1lt8OfDd0Puk24GTbonw9Kdv2I0ez80eNQpL3lRpwMwk3gNUaVcm2c9P4BCbBUXeEZNvzDq73swbqttskQGd5aJYJqy6W41CTbSHJtinZ1mi9G2qyTZL3FiTcAFYLyqf2xAXbHbw9cVJItnXtuBs38NEvHd4wiM6yW6IuWu/aCPZ4gWSIybYgJD0OVdvGzh8fB7jpkm0rkHADuF2jOilcAb/O6xh0dKEcx8XZHBtD09WRbcGzgX0uUE97sFYMb86l25rGp7B3xVCTbc8l2xo9f7wthjlXoGTbCiTcAG4flHO10/3TkVvwhti56myyLSZyJw19/Dg+cQzop9BZHtsN1+rExbT45PT1AZbPqw7Ox9qr42OA9U6y7Q4e2AUAtwrKm0zSHMbXn+O/5/F9rdLYfxe/bqrzED43PI6+tZOnxvnmmg6OQjmGQOXTFT/7bVy/9YT1rcsj24IXLfj8A6dA6Jc4eqvJhPoivj5dahuKShvwu0qb0GT886jF5Tgpmrv9/yjGY5+W5XfVaLPKU68nMVabJGjjQ9v+xpHcWL0L545pw6uxPIeEOveXK37+OMbmqfoFkm13JOEG8O1GtYmgPHTyP4T3bzRuB5fWdxyDuacNrPfL8vM/lOs7b2E5hg7LdkMB+bIs57cNVGI5bsSA6a7l2OlkWxwx2fQIs0koi3I/LpwNoTft+lpD7UHosL6L7fpN55T5FetbbdfrvAAY5nPbKdd3p6XlWPdUH8s2fe+2t3JWYqL5pdjyruV50PELaX04fzQ1xcxt+wap+wWSbfcg4QZwszonUw4N2V5xlii5Uwc//t0svGIjGzoV05r316OBl2MQymH3rrd7xHIMV6/fxHIMZfhihcB81oOAfFq04/bfsN899h761a7XeW4J7cDeXefaip3c0NE+KNuDcC56uWJ7cF/h4UizFl54CPthXHN89iZF0qFcxl3LM9QhybZhnT/uVfcu9QvWKvHkbY8dybZ7knADuEa8BbGuYC40hq9SNmixkX1ebsduDBDqGC0UroZP2zSvSHzK5aTGwGg35a0esRx3yu0Iy9wuvn37zKwnV79ftGQ9Qv2RcIN+tOvrRX0XoeaxPZgnbA+OKu3By6K+kXrhc563qBzHNbYRBzE+WyRf8MXy/Fb7LvExrPNHEOL3N6nKPC5neTF3p/h2oledS8BDEwCublTXagrmjmJj9jxXgxaCxPK1WX65WZzPEZM7MG+TutYnBOW/zzWvSqgf5Sskfp7cUI69SLbFOW/GLVmdtZi0BbqvrtHOIUHzJNcUC7E9CB3mR7FTnNu0MhdZW9r13KOMQjsbYrPN3KP7LrXvixvWReJjGOePcEw/Csd4xr7BTqxvhzesg2RbAhJuAFd7WUMwFxqz39c151m8haGO4HzclgRFXI9xTZ2rzToCk1hfrirHWY/mdXlhfYDE7cGkyD/a+Sh2lGuZ0D7epho6zbOhnAcr0yzkLscndY/Wv6Z9X67LoaO49+ePZSz3qI7yrpw/Dq/on0i2JSLhBtBMYDlrojGLV2lvuqKVSltGudWxHs/rflpYpRyPKgFaL5JtlQdGtMl6vJUE6K5nmZffSGIkjo56XuRPum3E83Pf2/XlxdBGElwxLqzGaa8k2wZx/gh2647lrqhvkm2JSbgBfN3hnxZ5R7fNc95CeofGNYdxfApXk+UYPj935+B5U/PVVcrxTc+eWJYq2b2cq6Rt6wXU3x6EtmCa8SMaH4VUU9Jtu+FyzP306qM2JBsq7ftmm+bEdf7IareppwFX6ttBIdmWnIQbwNdyXsUKwfhm0xsYG9Pcc7o963E5Bq+aDoRD5y7O+9InqYLaEDjupVyv2NkDhnteuUprbvmLSbd5xo9oevRx+Py1zOXYimRDHLl44NDt/fkjmDWVbLtU3zYl29KTcAOoRnJnV7EmGYO55y0K5hZF3uTfRlMJihqugh/UfRvpQI6/acLO1LtYx1N2gqdKCTop5wWY3Zbd8pfzYlrTD5HJOdLYrZs0cf447NldClwi4QZwqc8/oKB8OUHvm47uz6Y+9zRx6lBpdWdqUXkYyV4L1w+oqzE4m39xnGnx87ZdfIkX9XK2UU8bKsdQhusZy3HmaKHm80chnuw/CTeAi3JdxVq0eETUbpHvavjThrYp5+e+MuQ+W1CbqjN1cM3X99X43ITA6qeXoXWW462I80yLnyhH9AvSxN9GVfafhBvAeYd/rch39XS3rdsdk0d7uXZrzwJzV8HzSTl6bO9S/U6ZdHumqKBTHmda7izett5Wueb3DLeVThrYnlwX0t60vBxpVq66nvrBTrSUhBtA/kZ10YEkzZsi0yi3ugPzzJ+35zDJUmYh2T1NtLjDKzpP71Kubry1CRh2277b5o2OI2fmHdunTXymdp3rYpPQ1ue6EL/nbolhkHADOJetUW37hsdGf9aTwDzX5y08MSyblzmPt1huKQNbc7lBNzrMudqDg46MisoVfzzuSTnOjG6jgX5BYHTbQEi4AeQPIGcd2f53mZb7XU/K0VXwfFLepnmw4vfvYqrIoBMmmZb7oQsbHy82LDIser3mTcn1ee8cIjRQ72ZGtw2HhBtA3oZ13pVGNd5+kiMwH/ckQDK6LYP4EIJUdeSmIDZlxyrMYTRVetB6v9MeZFnXtZpvrc9x4e6o8jRruEquC7gf7NrheGAXAJwHkBrV08D8ZeJlrvegHA/ddpLNizqOt9CxKjuIoQzHCdd7pvig1cYZljnv2OiUTxna9eW+XXS4HJMmIjM/eGvVeMXoqfbWu8L0JMMi4QZQZJ0fpGuP+84SmIcr4XUkrDKW49xRkqW8QjCbqsyObhHEpkwor5frvx5HhgLtlCMB8qlLOyCcF8tzVa59W1fbOOlAOYb98bEFRf5EzJLMWDzJfbmlFCBvoNu1hjXX+o47XpQ/qs1ZpBzdNrvF7+y1eP2B9HKMeO5ih/mwI/u26/uEnsh4y/Qne3dYJNwAzuS4Ct65YC7ehtDlWxEmAvPOBLOhszZNuMh3t6jfi8RluRG3A2jnOSaHRQd3x6LD5ZjlNk2jk/mGsWORFCTcAM7kCMy7mrjKEYSud7lyCMzz9KMSHneHK5RR0ocnFJ5YCm2VK1HTxQ5zjlHaj2ta9yzzsjo8aMjCLhgWCTcAjWpXA2a6bTvhslZJos0Sb4fbSgG6xUMF0DegFhJuAPn8WSAqOOJr8eEW44SLnN32F+Nt0ymfEDbO+LAOoF3mHV1vI7pgNVnadU+8Hx4JNwAu84CAiwRH6T1LGb/GJNoqPiTeHqPcgDZzIQ2gARJuAEBt4pO/pgkXuXLy7GB/f5a4A7qR8YlmAAB0kIQbAJc9tgsuGNsFSU0TLusoJs/u4qDF2wW0U1fnI11XdAD1k3ADyEfiqh/GdkFSSW8nvcffvku8XW4rhf7rauLKg4tgNfMcC93Y2nIsDoyEGwB1MGEzIdCcFmkTmHt3/cOD/f0QTC9Sdmjj9gEMwcIugJUZbTowEm4AZ3IkhMYd3ReTDMvs9ITNG1tbAqQ0Uo5uWxzs79/3uD1o8fYB9zm4z5Lq2oMzOUbc1/Uk9hzxw8QRQkOMcBsYCTeAfAHduGtDx3sw8fs803LHDpEkndSUnZy9lizjQidOchZ6b2yd65Pgwsp1bZLEBzdZZFquGGFgJNwANKxVk0wB87zj9UOAdH+p5zg7SFAvw3F/2PLtBO4uR7KmU/OzxsTSuCP7VrtOK8T4IAfzOw+MhBtA3ob1acd2RY5A4KjGcpwLkFrb4dtIuMh5wmM29cMTNoycgNZwO2K+9a1zqoi5cqQBOfoGEr0DI+EGcC7H1VqBef1XwXMESBNJlHuZFmnnLUmZJEs9j1vq5CJwd59ydJg7Nv1Clgt/NY9cz9Gup76QFhKQ83u8jhyurZOj3oUHLE3s2uF4YBcA/CIkhlJfeToNzDOOoEsmzj01zrRf6w6QcmxHSKLMHCZ3kvo2y7dlfX3b4u3dVlegtx3mZXvwpiP7IMcFgLrb9R8zLPP0QloZnyVJdMW55p7cIwb7WBh11zafMpVJSILP7d5hMMINIG9AF3RlTqcXHduvNwVIOXgC5d06EaGzNx7YZo9dwYZWyNWp7UR7UJ6HpkWepyLWnXDL9XlGI9NEvZvatcMh4QaQPzCftv12xAxzbNWxX+v+PE+g7HHH1HZD/8TR5Tlu1VvvSFI913noU83lOO/Y/kG/4CZrMRnOAEi4AZwHdIeZAvOQzHrZ8s1/WeS5Cr6o+3bazPPKeALlCuI8R0MdQTDt2DxP0NvmPdNyt1t+/p0U+W5RnDewSTk+04U0boonQ58g1yi3bXt4GCTcAOoJzF+0dZRbTAq86Nj+bOpzp24VXK3eD3z7p6oANC7XaKxJy9uDXB36RUPz0n7o2H6iH+aZljs2ym0YJNwA6gno1loc1L0u8oxuy9nRaaocBeerGXow6XYlaF7OCz+v27jBZUc+jFqfdHB/NvG5Gy6kcYN3GZf9uu1TznB/Em4A1Whufz8EdLkezf6ybUFdnNA+1y1/i7g/+9bBmsTODDfXrWmRL5HbFa5gQ/Pt+lHGNiHM5bbTsnPvuMh7YehdQ+W4KPLd3vfakcI19S7UuUWmxYcY6a293G8SbgBXtK8Zl/2+LVez4rwlbzu6H5vsYJ0G522Z9yUkTVt6hdR8d2eMcoPmZR313JaLabEteF/ku9hxGBMQTdnLtNyQOJV04zo5k8wbbbkwF+NJcxomJuEGUF9AV8Qg+GPTCZL4+W+LvCOQ9npcjkUsx/WGy3EaO1cf25R0i51PQduZiYcnQLMO9vdnRb5RKsH7lnRUX2c+9zbdrue+C2HqaOEKs8zLf9t00r5yEf6jpFtaEm4AXwfm4ertPONHrBcNJkji537MHJQfNDSpcrUc55k7WGtNBibxc19X6tTnFgVJRnVdZN4/aF7OUSqNtgexTQid5WnGj8g9cvw27XrudXgr6cYV9S7EkrPMH/O+4XjyYzyPNX4u6xsJN4Cr7WZefiNJt9iAfi7yjz7aG0g5NhKYxLn3lsHR0rhox6i7tcLDEr7aLSZGhsa9KfKNjmqyPVgrX+9rOO/uxYRX39t1STeaiGvD+eNz3XXvUrLt8rnMcZCAhBvAFeLoqHnmjwmN3E91DSOPDWdoVMeZP2oe918bynFW5B3lVg2SXtZUjjvF9XP0tOHKpAdKXF0uG3YDNNoeHNXYaa6rPVh2lnOfX8K+e9OScgxt+izzx7w1pxuX6l3uu18u1L06LtJV+gXXxZOSzwlIuAFcb7eGz1gmSLI1rmH+qHj1O/ecbXXutzauTyjDj7kSqKFjVb7C6MTtW9apppJubie9mttKoXm5R7ldbg+ynIfjqLadop4R60FbRrdV2/Xc6xPmdPvs1joqntf0OSFh/zljPLlKv0DS7Z4k3ACuUdMot2rjGka77aRKvMUGNTSmPxX1ja6ZtWV0W6UcZzWWYwiOQicr2QS4lXJcpWPVyO0A8VbXsbPHlcZteZIhDLhdD0maui7CTGKn+W2qB6dUEm2hXa8rib8oWjK6rVKOYZ3qmLpiPXUZ0unzR6h3s7pihhjHfYyxVcrzx+cV+wWSbvfwwC4A7ulZeRJ+3NBnh8fTv8r8Gc9jw1THyLC1GEBvl/s0NOgfyu1baXLgmKwLjejTov5b2EJH5lVL6+mrWI51CYHJtCyPcAtCmKh7Hm9HuG05jmNn7Vl8v2t9CkHSMulYhxdOiTefL4v6kr9ZhU5Ak8fzKscTqycZmizfsmyfZF7+m3L7wrFY18ilZXswr7QHixWPt2q7vtbA8XbUwnr6Jp5TxzWWYYjJ3q0am32jbNdj22kkXTe8qvk4DDFgeNp5OGccxL7BfIX6lapfEOLJ72rod/WOhBtwX+OixyNaQlBcNjDhKmrdt4Mtg7sidtBD5/Iv8f3oiv3/uxisNRmw7bY0KD+de6Pcl7sNlOMvZVJ+/lEsv2VZXuVxhmOqlqRbJUmY0qLIPwdfnee2cEy3tfN6l05AUzyAIv/+nfR8G5cX0+o+ZibxfLlsC/58xXluLbYbv43vTZbFQcrkUuJ2/ajcj6Ec60wOh4TFRmzPQ2z2qTi7+DtfIfmxjAu+K5pJoJKm3r1vICYJd8O8rPQNFvEccpXv4t+k7BeEz14r98FzNeH2JNwAvt247sRRfE0FvZMOdH5CUP6mA+X4tGguKbnWYFnWkXTLkcx81VRnr/JE39RCwLzjzAqNtgdNXYRZavoC2W2EpNLzlpfjvCzHN0X9D+tZjhraiO3Fcn8d3vD7RrD15/xxEEc7NvkwpKb6BdMYT0q63ZI53ABu53lRz0TLXbRoe1CuHE9le+pa5ZaFpPWqyZEV8ZbFHLcteqgEtKPTvFP05BbvTDa7MBo33uLWhlvMqxfVLr8k2/rZL1gMdNuncW5hbkHCDeB2AV1oVDftia8cdSUoj+UYgvIhzz/xMlOQlOO2mDbcxpRjUu5xqgmQgXvbHHCn+Sav2vYApG94UrgoSr3x5FE8fwy13k3jAx3cEv0NEm4At29cQ/BpCPXXQflhx8pxVtT3lLq2Bkmpk245bsvaa0N1yRRMe7gE6DS31aztU0RcU46SbtRd74Z+EXdSnD1JVdLtBhJuAKs1rrNi2Mmaquc1Pv0ydTnuFPU92r2NpnGOsnsrlxMCrnHi9Ttc9Sl+GTtxOUbaTeJDJoB2dJola87Mujo3k3KkwX7BkC/GN/1gl9aTcANYvXHdKYadrAk6m2yrlOPzAZfj84QjE3PMSbbXon2Va12McoP2tAeHhblaZ12fCF3SjYbq3awYbtJt1tYnGbeFhBvA3RrX0LAOdRh555Ntl8pxpvzuJo7SmuYompZ14BYZFj11Gwa0qj0I552hJmtmfXnqoKQbDdW7EFcNLek287TSb5NwA7h74/pmYI1rCF57k2yrlOOQkqepy2+aKYBrW0cpxyi3HE92Be7XHgwxWfOmb53mSjku1GpqrHezYjgjZXcl225Hwg3g/o3rowE0riFofdK3ZFulHEPytM8TZ4ftepSh/HLcFvmhhfsvV713Wym0rz0IyZrfl6/Dnm/q8iLaqx6XY4jP5mo1NfcL+p7sfR6n1+EWJNwA0gXnfQ3qwm02j7r2NNI7lOPydqK+bedhjvLb2NqaFmejtFJatHEukDjibpZh0evxoRNAy4758hWSNX19SNLpCLC+XkS7VI6hXX+lVlNzv+BR0aLpMVLFaEWei7e9JuEGkD6o68soqbAdm+V2bbbwFr9sQVLPOllhyP+jTE/8zPGwhDYHp+8yLfdZAbS1Tdgp+jdaZdkuHA6oHMMo9qGMdjN3XXv6BZs96hcM4uJ7DhJunHrw8KGJmyFdUBdGu806vilh/X8/1CcPxU5Wl4Pz5ai2nRwL39jayvUY+L0W14l54eEJMMT2YF6+Qru+2/GO8zxnu9CBcjyMF0b7OMdW2J43MW6TENEvSCnEPYO6+J7aA7ugKP71v/uPJ+E9/O/k5PTLYhR/Nir/+XNxcv7LJ8vvn5TfL3753fBno/jDn+PfVX//5PyLi07OfjK68LOT4uTkihWNn7lc9qiy3Au/X/nHyUlxeUXO3y5t67/MP8yPF//t+Zfj44VaAfdqXE/nRSk70WFEzHamxES21S9frzKNiOpccF6+PSnLMUxs/7p8jTsSdO/GAC+nHHOPHXag3u3FupDay/K1UwBtbhN2yvZgFtv1acc6zK+GegHtinKcleV4EM+7oS3r8gWPRWyXZpIh+gUZ4slQt96oW/cj4cYvTv7v/wkH/08PHj7c/XJ8LPCH+zew8/JtHudoCkFdm59IGDoRuxJtV5ZjCMwP4pxloRzXhxwYxdFYOeryXgeqQzhOciTcwm2l2l1of3uwiB3n3dhxDufCtiZsQgyyJ9F2ZTmGdjIkUMPFqWXbPu7I6od1P4hlazRbd/sFbU28LeuXPkEiEm5cZfvBw4dPQ0Dx5fjYiRzSNbDj4jzx1obALjSkIclxoFG9VTnOyrdZDJSetaSjFcptN5ZhXVcgp5m2+6ADdeAojnCZJl70OIyk1DGGzrQH4dwbEm+vYlvQlosxkjErntOLs1sx38TR7E+Ldo5eXMRy/aSd6GW/IFdctWodCyPwjGhLTMKN64Sg4bPRbr207KD3ZVu6FqCH4PxVDOweF/Un30IAHhr6d4LxewdKy45WCNAnNQZLy8C7qTI8ynAOWXQowAtJ6j93sOqGQPqTc39v7doFjbQHyycYz2LnObQJz4p6k2/LJNsHyZh7leVyNPuybV/GaE0kQo5irBbO2V28KOp8dLd+wdOa65xzRw1GORf+hx/++LE4ORsqGT7o50tzhgUnp3OYnZzPeXb2za+mOlvON1adq2xU+cfPv8xrdlL5eRHnWTs5n3vtl9+/+HvxtwY9h9v/+qf/VPy///Hfrwtsn//13/39x1+HPxud/f3pEzdGo/OvK/tjNDr/16hS4KPKPy5+/+rfCT8YXa6w8eej+L/zdTn9ev6n779/4tCmS2KQPonB3XriQD0EbCEp82P42ki2rOU4ieX4XSzDccLkwmEMvOcSpQCtbw/WLrXrk4SLP7zUrmsT8pbl+qW2PXUy9TC28z8uy1asps5dOn+kjidDXTtw7qiHhFsh4XaLhNupv/67vy8k3KDWxnbtUpD++JpfP4qN5/Lr0+BNwNaKDteyHJcB+u9uCJxCuf2l8vVRHE0HQPfbhHE8/y/bhSImca4bzVIdkTqPbYIOcrvKstq+3zbhsYzNDt26xwp1bnKpvv32hroX6tifq/Gk+tYcCbdCwk3CDQAAACCdX9kFAAAAAJCOhBsAAAAAJCThBgAAAAAJSbgBAAAAQEISbgAAAACQkIQbAAAAACQk4QYAAAAACUm4AQAAAEBCEm4AAAAAkJCEGwAAAAAkJOEGAAAAAAlJuAEAAABAQhJuAAAAAJCQhBsAAAAAJCThBgAAAAAJSbgBAAAAQEISbgAAAACQkIQbAAAAACQk4QYAAAAACUm4AQAAAEBCEm4AAAAAkJCEGwAAAAAkJOEGAAAAAAlJuAEAAABAQhJuAAAAAJCQhBsAAAAAJCThBgAAAAAJSbgBAAAAQEISbgAAAACQ0IPMy39Vvtbs5m748r//5Wn59tKeAAAAALi7rAm3//rv/+2hXdwp8wcPH34q398WEqUAAAAAd+KWUi74cnx8UL79vnwd2BsAAAAAq5Nw4ytfjo+PytdmcXZL8JE9AgAAAHB7Em5c68vx8Zvy7Un5cmswAAAAwC09sAu4yZfj45Bse/Tg4cOd8v1xB1ZZchAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgKv9fgAEAulggap4jxLwAAAAASUVORK5CYII=",m2t=z.a`
|
|
1221
|
+
display: flex;
|
|
1222
|
+
align-items: center;
|
|
1223
|
+
justify-content: center;
|
|
1224
|
+
text-decoration: none;
|
|
1225
|
+
margin-top: 1px;
|
|
1226
|
+
width: 100%;
|
|
1227
|
+
`,v2t=z.img`
|
|
1228
|
+
height: 20px;
|
|
1229
|
+
margin-left: ${M["--ll-spacing-base-unit"]};
|
|
1230
|
+
`,y2t=z(Qt)`
|
|
1231
|
+
line-height: initial;
|
|
1232
|
+
`,x2t=()=>{const{translations:e}=Se([p2t]);return Vt(m2t,{href:"https://locallogic.co/",target:"_blank",rel:"noreferrer",children:[j(y2t,{variant:"caption1",weight:"--ll-font-weight-medium",noMargin:!0,lineClamp:1,color:"--ll-color-on-background-variant1",children:e.POWERED_BY}),j(v2t,{src:g2t})]})},b2t=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),JEt=Object.freeze(Object.defineProperty({__proto__:null,Root:x2t,Types:b2t},Symbol.toStringTag,{value:"Module"})),_2t=e=>O("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:O("path",{d:"M10 20V14H14V20H19V12H22L12 3L2 12H5V20H10Z"})}),w2t=e=>O("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:O("path",{d:"M12 2C8.13 2 5 5.13 5 9C5 14.25 12 22 12 22C12 22 19 14.25 19 9C19 5.13 15.87 2 12 2ZM12 11.5C10.62 11.5 9.5 10.38 9.5 9C9.5 7.62 10.62 6.5 12 6.5C13.38 6.5 14.5 7.62 14.5 9C14.5 10.38 13.38 11.5 12 11.5Z"})}),A2t=({options:e})=>j(J8,{SVGElement:e.style==="house"?_2t:w2t,size:e.size||"large",backgroundColor:M["--ll-color-primary"],backgroundColorHighlight:M["--ll-color-primary-variant1"],renderForPrint:e.renderForPrint}),S2t=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),tCt=Object.freeze(Object.defineProperty({__proto__:null,Root:A2t,Types:S2t},Symbol.toStringTag,{value:"Module"})),gz=Z.createContext({}),mz=()=>v.exports.useContext(gz),E2t=e=>O("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:O("path",{d:"M12 2C7.58 2 4 2.5 4 6V15.5C4 17.43 5.57 19 7.5 19L6 20.5V21H18V20.5L16.5 19C18.43 19 20 17.43 20 15.5V6C20 2.5 16.42 2 12 2ZM7.5 17C6.67 17 6 16.33 6 15.5C6 14.67 6.67 14 7.5 14C8.33 14 9 14.67 9 15.5C9 16.33 8.33 17 7.5 17ZM11 11H6V6H11V11ZM16.5 17C15.67 17 15 16.33 15 15.5C15 14.67 15.67 14 16.5 14C17.33 14 18 14.67 18 15.5C18 16.33 17.33 17 16.5 17ZM18 11H13V6H18V11Z"})}),C2t=e=>O("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:O("path",{d:"M4 15.5C4 17.43 5.57 19 7.5 19L6 20.5V21H18V20.5L16.5 19C18.43 19 20 17.43 20 15.5V5C20 1.5 16.42 1 12 1C7.58 1 4 1.5 4 5V15.5ZM12 17C10.9 17 10 16.1 10 15C10 13.9 10.9 13 12 13C13.1 13 14 13.9 14 15C14 16.1 13.1 17 12 17ZM18 10H6V5H18V10Z"})}),k2t=e=>O("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e,children:O("path",{d:"M17,18A2,2 0 0,1 19,20A2,2 0 0,1 17,22C15.89,22 15,21.1 15,20C15,18.89 15.89,18 17,18M1,2H4.27L5.21,4H20A1,1 0 0,1 21,5C21,5.17 20.95,5.34 20.88,5.5L17.3,11.97C16.96,12.58 16.3,13 15.55,13H8.1L7.2,14.63L7.17,14.75A0.25,0.25 0 0,0 7.42,15H19V17H7C5.89,17 5,16.1 5,15C5,14.65 5.09,14.32 5.24,14.04L6.6,11.59L3,4H1V2M7,18A2,2 0 0,1 9,20A2,2 0 0,1 7,22C5.89,22 5,21.1 5,20C5,18.89 5.89,18 7,18M16,11L18.78,6H6.14L8.5,11H16Z"})}),T2t=e=>Ae("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:[O("path",{d:"M19.5198 2.49002C17.1798 0.150019 12.8998 0.620018 9.96984 3.55002C8.36984 5.15002 7.44984 7.42002 7.42984 9.01002C7.40984 10.59 7.68984 12.9 6.07984 14.51L1.83984 18.75L3.25984 20.17L7.49984 15.93C9.10984 14.32 11.4198 14.6 12.9998 14.58C14.5798 14.56 16.8598 13.64 18.4598 12.04C21.3798 9.11002 21.8598 4.83002 19.5198 2.49002ZM10.3198 11.68C8.78984 10.15 9.26984 7.07002 11.3798 4.96002C13.4898 2.85002 16.5598 2.37002 18.0998 3.90002C19.6298 5.43002 19.1498 8.51002 17.0398 10.62C14.9298 12.73 11.8598 13.21 10.3198 11.68Z"}),O("path",{d:"M18 17C18.53 17 19.04 17.21 19.41 17.59C20.19 18.37 20.19 19.64 19.41 20.42C19.04 20.79 18.53 21 18 21C17.47 21 16.96 20.79 16.59 20.41C15.81 19.63 15.81 18.36 16.59 17.58C16.96 17.21 17.47 17 18 17ZM18 15C16.98 15 15.95 15.39 15.17 16.17C13.61 17.73 13.61 20.26 15.17 21.83C15.95 22.61 16.98 23 18 23C19.02 23 20.05 22.61 20.83 21.83C22.39 20.27 22.39 17.74 20.83 16.17C20.05 15.39 19.02 15 18 15Z"})]}),M2t=e=>Ae("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e,children:[O("path",{d:"M0 0h24v24H0z",fill:"none"}),O("circle",{cx:4.5,cy:9.5,r:2.5}),O("circle",{cx:9,cy:5.5,r:2.5}),O("circle",{cx:15,cy:5.5,r:2.5}),O("circle",{cx:19.5,cy:9.5,r:2.5}),O("path",{d:"M17.34 14.86c-.87-1.02-1.6-1.89-2.48-2.91-.46-.54-1.05-1.08-1.75-1.32-.11-.04-.22-.07-.33-.09-.25-.04-.52-.04-.78-.04s-.53 0-.79.05c-.11.02-.22.05-.33.09-.7.24-1.28.78-1.75 1.32-.87 1.02-1.6 1.89-2.48 2.91-1.31 1.31-2.92 2.76-2.62 4.79.29 1.02 1.02 2.03 2.33 2.32.73.15 3.06-.44 5.54-.44h.18c2.48 0 4.81.58 5.54.44 1.31-.29 2.04-1.31 2.33-2.32.31-2.04-1.3-3.49-2.61-4.8z"})]}),$2t=e=>Ae("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e,children:[O("path",{d:"M0 0h24v24H0z",fill:"none"}),O("path",{d:"M19.77 7.23l.01-.01-3.72-3.72L15 4.56l2.11 2.11c-.94.36-1.61 1.26-1.61 2.33 0 1.38 1.12 2.5 2.5 2.5.36 0 .69-.08 1-.21v7.21c0 .55-.45 1-1 1s-1-.45-1-1V14c0-1.1-.9-2-2-2h-1V5c0-1.1-.9-2-2-2H6c-1.1 0-2 .9-2 2v16h10v-7.5h1.5v5c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5V9c0-.69-.28-1.32-.73-1.77zM12 10H6V5h6v5zm6 0c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1z"})]}),P2t=e=>Ae("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e,children:[O("path",{d:"M0 0h24v24H0z",fill:"none"}),O("path",{d:"M20.57 14.86L22 13.43 20.57 12 17 15.57 8.43 7 12 3.43 10.57 2 9.14 3.43 7.71 2 5.57 4.14 4.14 2.71 2.71 4.14l1.43 1.43L2 7.71l1.43 1.43L2 10.57 3.43 12 7 8.43 15.57 17 12 20.57 13.43 22l1.43-1.43L16.29 22l2.14-2.14 1.43 1.43 1.43-1.43-1.43-1.43L22 16.29z"})]}),O2t=e=>Ae("svg",{xmlns:"http://www.w3.org/2000/svg",enableBackground:"new 0 0 24 24",viewBox:"0 0 24 24",...e,children:[O("g",{children:O("rect",{fill:"none",height:24,width:24})}),O("g",{children:Ae("g",{children:[O("g",{children:O("path",{d:"M21.67,18.17l-5.3-5.3h-0.99l-2.54,2.54v0.99l5.3,5.3c0.39,0.39,1.02,0.39,1.41,0l2.12-2.12 C22.06,19.2,22.06,18.56,21.67,18.17z"})}),O("g",{children:O("path",{d:"M17.34,10.19l1.41-1.41l2.12,2.12c1.17-1.17,1.17-3.07,0-4.24l-3.54-3.54l-1.41,1.41V1.71L15.22,1l-3.54,3.54l0.71,0.71 h2.83l-1.41,1.41l1.06,1.06l-2.89,2.89L7.85,6.48V5.06L4.83,2.04L2,4.87l3.03,3.03h1.41l4.13,4.13l-0.85,0.85H7.6l-5.3,5.3 c-0.39,0.39-0.39,1.02,0,1.41l2.12,2.12c0.39,0.39,1.02,0.39,1.41,0l5.3-5.3v-2.12l5.15-5.15L17.34,10.19z"})})]})})]}),R2t=e=>Ae("svg",{xmlns:"http://www.w3.org/2000/svg",enableBackground:"new 0 0 24 24",viewBox:"0 0 24 24",...e,children:[O("g",{children:O("rect",{fill:"none",height:24,width:24})}),O("g",{children:O("path",{d:"M12,2C6.49,2,2,6.49,2,12s4.49,10,10,10c1.38,0,2.5-1.12,2.5-2.5c0-0.61-0.23-1.2-0.64-1.67c-0.08-0.1-0.13-0.21-0.13-0.33 c0-0.28,0.22-0.5,0.5-0.5H16c3.31,0,6-2.69,6-6C22,6.04,17.51,2,12,2z M17.5,13c-0.83,0-1.5-0.67-1.5-1.5c0-0.83,0.67-1.5,1.5-1.5 s1.5,0.67,1.5,1.5C19,12.33,18.33,13,17.5,13z M14.5,9C13.67,9,13,8.33,13,7.5C13,6.67,13.67,6,14.5,6S16,6.67,16,7.5 C16,8.33,15.33,9,14.5,9z M5,11.5C5,10.67,5.67,10,6.5,10S8,10.67,8,11.5C8,12.33,7.33,13,6.5,13S5,12.33,5,11.5z M11,7.5 C11,8.33,10.33,9,9.5,9S8,8.33,8,7.5C8,6.67,8.67,6,9.5,6S11,6.67,11,7.5z"})})]}),D2t=e=>Ae("svg",{xmlns:"http://www.w3.org/2000/svg",enableBackground:"new 0 0 24 24",height:"24px",viewBox:"0 0 24 24",width:"24px",fill:"#000000",...e,children:[O("rect",{fill:"none",height:24,width:24}),O("path",{d:"M10.5,13H8v-3h2.5V7.5h3V10H16v3h-2.5v2.5h-3V13z M12,2L4,5v6.09c0,5.05,3.41,9.76,8,10.91c4.59-1.15,8-5.86,8-10.91V5L12,2 z"})]}),NS={groceries:k2t,groceries_specialized:uz,shopping:az,nightlife:lz,restaurants:cz,healthy_restaurants:W_,cafes:sz,daycares:hz,bus_stops:oz,rapid_transit_stations:E2t,train_stations:C2t,parks:dz,fitness:P2t,personal_care:W_,pet_care:M2t,car_fueling_stations:$2t,health_care:D2t,sport_facilities:T2t,art_culture_science:R2t,home_improvement:O2t,primary_schools:fz,high_schools:IS},L2t=()=>{const{options:{type:e,isOpen:t,isHovered:n,size:r,renderForPrint:i}}=mz();return j(dc.Trigger,{children:j(J8,{size:r,SVGElement:NS[e],renderForPrint:i,expandMarker:t||n,backgroundColor:M["--ll-color-primary"],backgroundColorHighlight:M["--ll-color-primary-variant1"]})})},I2t=e=>O("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:O("path",{d:"M13.5 5.5C14.6 5.5 15.5 4.6 15.5 3.5C15.5 2.4 14.6 1.5 13.5 1.5C12.4 1.5 11.5 2.4 11.5 3.5C11.5 4.6 12.4 5.5 13.5 5.5ZM9.8 8.9L7 23H9.1L10.9 15L13 17V23H15V15.5L12.9 13.5L13.5 10.5C14.8 12 16.8 13 19 13V11C17.1 11 15.5 10 14.7 8.6L13.7 7C13.14 6.11 12.02 5.75 11.05 6.16L6 8.3V13H8V9.6L9.8 8.9Z"})}),FS={en:{groceries:"Grocery",groceries_specialized:"Speciality",shopping:"Shopping",nightlife:"Nightlife",restaurants:"Restaurants",cafes:"Coffee shops",daycares:"Daycares",bus_stops:"Bus",rapid_transit_stations:"Rapid transit",train_stations:"Train",parks:"Parks",healthy_restaurants:"Healthy restaurants",fitness:"Fitness",sport_facilities:"Sport facilities",health_care:"Health care",pet_care:"Pet care",car_fueling_stations:"Gas stations",art_culture_science:"Art, Culture, Science",home_improvement:"Home improvement",personal_care:"Personal care"},fr:{groceries:"G\xE9n\xE9rales",groceries_specialized:"Sp\xE9cialis\xE9es",shopping:"Magasinage",nightlife:"Nightlife",restaurants:"Restaurants",cafes:"Caf\xE9s",daycares:"Garderies",bus_stops:"Autobus",rapid_transit_stations:"M\xE9tro",train_stations:"Train",parks:"Parcs",healthy_restaurants:"Restaurants sains",fitness:"Fitness",sport_facilities:"Installations sportives",health_care:"Soins de sant\xE9",pet_care:"Soins pour animaux",car_fueling_stations:"Stations-service",art_culture_science:"Art, Culture, Science",home_improvement:"Am\xE9lioration de l'habitat",personal_care:"Soins personnels"}},vz={en:{SCHOOL_BOARD:"Board",SCHOOL_LANGUAGES:"Languages",SCHOOL_LEVELS:"Levels",SCHOOL_TYPE:"Type",ENGLISH:"English",FRENCH:"French",SPANISH:"Spanish",high_schools:"High schools",primary_schools:"Primary schools",CALCULATE:"Calculate"},fr:{SCHOOL_BOARD:"Commission",SCHOOL_LANGUAGES:"Langues",SCHOOL_LEVELS:"Niveaux",SCHOOL_TYPE:"Type",ENGLISH:"Anglais",FRENCH:"Fran\xE7ais",SPANISH:"Espagnol",high_schools:"\xC9coles secondaires",primary_schools:"\xC9coles primaires",CALCULATE:"Calculer"}},Ky=z.div`
|
|
1233
|
+
display: flex;
|
|
1234
|
+
margin-bottom: ${M["--ll-spacing-xx-small"]};
|
|
1235
|
+
align-items: center;
|
|
1236
|
+
justify-content: ${({justify:e})=>e||"start"};
|
|
1237
|
+
`,N2t=z(Q2)`
|
|
1238
|
+
margin-right: 2px;
|
|
1239
|
+
margin-bottom: 2px;
|
|
1240
|
+
`,F2t=z.div`
|
|
1241
|
+
display: grid;
|
|
1242
|
+
grid-template-columns: auto 1fr;
|
|
1243
|
+
grid-column-gap: 10px;
|
|
1244
|
+
margin-bottom: ${M["--ll-spacing-xx-small"]};
|
|
1245
|
+
`,z2t=z(dc.Content)`
|
|
1246
|
+
z-index: 3;
|
|
1247
|
+
`,Zy=z(Qt)``,B2t=()=>{var e,t,n,r,i,o;const{options:{poi:s,side:a,collisionPadding:l,type:c,walkingTime:u,calculateRoute:d}}=mz(),{translations:h}=Se([FS,vz]),f=c==="high_schools"||c==="primary_schools"?"school":"poi",p=y=>y.map(m=>{switch(m){case"en":return h.ENGLISH;case"fr":return h.FRENCH;case"es":return h.SPANISH;default:return m}}),g=(y,m)=>Vt(ii,{children:[Vt(Zy,{children:[y,": "]}),j(Zy,{color:M["--ll-color-on-background-variant1"],children:iO.capitalize(m)})]});return Vt(z2t,{side:a,collisionPadding:l,children:[j(Qt,{variant:"h4",noMargin:!0,weight:"--ll-font-weight-bold",children:s.name}),j(hp,{vertical:!0,spacing:"--ll-spacing-xx-small"}),s.address&&j(Qt,{variant:"p",noMargin:!0,children:s.address}),j(hp,{vertical:!0,spacing:"--ll-spacing-xx-small"}),s.url&&Vt(ii,{children:[j(p$,{lineClamp:2,href:s.url,children:s.url}),j(hp,{vertical:!0,spacing:"--ll-spacing-xx-small"})]}),K7.poi.isSchool(s,f)?Vt(F2t,{children:[((e=s.school_attributes)==null?void 0:e.grades)&&g(h.SCHOOL_LEVELS,s.school_attributes.grades),((t=s.school_attributes)==null?void 0:t.languages)&&g(h.SCHOOL_LANGUAGES,p(s.school_attributes.languages).join(", ")),((n=s.school_attributes)==null?void 0:n.types)&&g(h.SCHOOL_TYPE,s.school_attributes.types.join(", ")),((r=s.school_board_attributes)==null?void 0:r.name)&&((i=s.school_board_attributes)==null?void 0:i.url)&&Vt(ii,{children:[Vt(Zy,{children:[h.SCHOOL_BOARD,": "]}),j(p$,{href:s.school_board_attributes.url,children:iO.capitalize(s.school_board_attributes.name)})]})]}):s.routes&&Vt(Ky,{children:[j(rr,{SVGElement:NS[c],height:20,width:20,fill:M["--ll-color-on-background"]}),(o=s.routes)==null?void 0:o.map((y,m)=>j(N2t,{text:y.short_name,backgroundColor:y.route_color,textColor:y.text_color},y.short_name+m))]}),j(Q2,{text:h[c],size:"medium",backgroundColor:M["--ll-color-primary"]}),d&&Vt(ii,{children:[j(hp,{vertical:!0,spacing:"--ll-spacing-small"}),Vt(Ky,{justify:u?"space-between":"end",children:[u&&Vt(Ky,{children:[j(rr,{SVGElement:I2t,height:20,width:20,fill:M["--ll-color-on-background"]}),j(Qt,{variant:"p",noMargin:!0,children:u})]}),j(Nv,{size:"small",variant:"contained",onClick:d,children:h.CALCULATE})]})]})]})},V2t=e=>j(dc.Root,{open:e.options.isOpen,onOpenChange:t=>e.onChange&&e.onChange({type:"open-change",data:t}),children:j(gz.Provider,{value:{...e},children:e.children})}),j2t=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),eCt=Object.freeze(Object.defineProperty({__proto__:null,Types:j2t,Marker:L2t,Content:B2t,Root:V2t},Symbol.toStringTag,{value:"Module"})),H2t=z.ul`
|
|
1248
|
+
list-style: none;
|
|
1249
|
+
padding: 0;
|
|
1250
|
+
margin-bottom: 0;
|
|
1251
|
+
`,U2t=z.li`
|
|
1252
|
+
cursor: default;
|
|
1253
|
+
padding: ${M["--ll-spacing-x-small"]};
|
|
1254
|
+
margin-bottom: ${M["--ll-spacing-xx-small"]};
|
|
1255
|
+
border-radius: ${M["--ll-border-radius-small"]};
|
|
1256
|
+
background-color: ${({isActive:e,isHovered:t})=>e||t?M["--ll-color-surface-variant1"]:M["--ll-color-background"]};
|
|
1257
|
+
`,uO=z.div`
|
|
1258
|
+
display: flex;
|
|
1259
|
+
flex-wrap: wrap;
|
|
1260
|
+
`,dO=z(Q2)`
|
|
1261
|
+
margin-right: 2px;
|
|
1262
|
+
margin-bottom: 2px;
|
|
1263
|
+
`,W2t=({options:{data:e,type:t,activePOI:n,hoveredPOI:r},onChange:i})=>j(H2t,{children:e.map((o,s)=>{var a,l,c;return Vt(U2t,{isActive:n===o,isHovered:r===o,onClick:()=>i&&i({type:"poi-click",data:o}),onMouseOver:()=>i&&i({type:"poi-hover",data:o}),onMouseLeave:()=>i&&i({type:"poi-hover",data:void 0}),children:[j(Qt,{variant:"p",color:"--ll-color-on-surface-variant1",noMargin:!0,children:o.name}),K7.poi.isSchool(o,t)?j(uO,{children:(l=(a=o.school_attributes)==null?void 0:a.types)==null?void 0:l.map((u,d)=>j(dO,{text:u},u))}):j(uO,{children:(c=o.routes)==null?void 0:c.map((u,d)=>j(dO,{text:u.short_name,backgroundColor:u.route_color,textColor:u.text_color},u.short_name+d))})]},`${o.name}-${o.lat}-${o.lng}-${s}`)})}),Y2t=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),nCt=Object.freeze(Object.defineProperty({__proto__:null,Root:W2t,Types:Y2t},Symbol.toStringTag,{value:"Module"})),yz=Z.createContext({}),xz=()=>v.exports.useContext(yz),bz={en:{commute:"Transport",amenities:"Amenities",character:"Character",nature:"Nature",education:"Education",about:"About"},fr:{commute:"Transport",amenities:"Services",character:"Caract\xE8re",nature:"Nature",education:"Familles",about:"Info"}},_z=e=>{const{scoreCategory:t}=xz(),{translations:n}=Se([bz]);return j(Qt,{...e.options,children:n[t]})};_z.defaultProps={options:{noMargin:!0,variant:"h6",color:"--ll-color-on-background-variant1"}};const wz=e=>O("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:O("path",{d:"M12 4H5C3.34 4 2 5.34 2 7V15C2 16.66 3.34 18 5 18L4 19V20H5L7 18H9V13H4V6H13V8H15V7C15 5.34 13.66 4 12 4ZM5 14C5.55 14 6 14.45 6 15C6 15.55 5.55 16 5 16C4.45 16 4 15.55 4 15C4 14.45 4.45 14 5 14ZM20.57 9.66C20.43 9.26 20.05 9 19.6 9H12.41C11.95 9 11.58 9.26 11.43 9.66L10.01 13.77V19.28C10.01 19.66 10.32 20 10.7 20H11.32C11.7 20 12 19.62 12 19.24V18H20V19.24C20 19.62 20.31 20 20.69 20H21.3C21.68 20 21.99 19.66 21.99 19.28L22 17.91V13.77L20.57 9.66ZM12.41 10H19.6L20.63 13H11.38L12.41 10ZM12 16C11.45 16 11 15.55 11 15C11 14.45 11.45 14 12 14C12.55 14 13 14.45 13 15C13 15.55 12.55 16 12 16ZM20 16C19.45 16 19 15.55 19 15C19 14.45 19.45 14 20 14C20.55 14 21 14.45 21 15C21 15.55 20.55 16 20 16Z"})}),G2t=e=>Ae("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:[O("path",{d:"M12 22C6.49 22 2 17.51 2 12C2 6.49 6.49 2 12 2C17.51 2 22 6.04 22 11C22 14.31 19.31 17 16 17H14.23C13.95 17 13.73 17.22 13.73 17.5C13.73 17.62 13.78 17.73 13.86 17.83C14.27 18.3 14.5 18.89 14.5 19.5C14.5 20.88 13.38 22 12 22ZM12 4C7.59 4 4 7.59 4 12C4 16.41 7.59 20 12 20C12.28 20 12.5 19.78 12.5 19.5C12.5 19.34 12.42 19.22 12.36 19.15C11.95 18.69 11.73 18.1 11.73 17.5C11.73 16.12 12.85 15 14.23 15H16C18.21 15 20 13.21 20 11C20 7.14 16.41 4 12 4Z"}),O("path",{d:"M6.5 13C7.32843 13 8 12.3284 8 11.5C8 10.6716 7.32843 10 6.5 10C5.67157 10 5 10.6716 5 11.5C5 12.3284 5.67157 13 6.5 13Z"}),O("path",{d:"M9.5 9C10.3284 9 11 8.32843 11 7.5C11 6.67157 10.3284 6 9.5 6C8.67157 6 8 6.67157 8 7.5C8 8.32843 8.67157 9 9.5 9Z"}),O("path",{d:"M14.5 9C15.3284 9 16 8.32843 16 7.5C16 6.67157 15.3284 6 14.5 6C13.6716 6 13 6.67157 13 7.5C13 8.32843 13.6716 9 14.5 9Z"}),O("path",{d:"M17.5 13C18.3284 13 19 12.3284 19 11.5C19 10.6716 18.3284 10 17.5 10C16.6716 10 16 10.6716 16 11.5C16 12.3284 16.6716 13 17.5 13Z"})]}),q2t=e=>Ae("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[O("path",{d:"M4.41504 10.915C5.24347 10.915 5.91504 10.2434 5.91504 9.41496C5.91504 8.58653 5.24347 7.91496 4.41504 7.91496C3.58661 7.91496 2.91504 8.58653 2.91504 9.41496C2.91504 10.2434 3.58661 10.915 4.41504 10.915Z"}),O("path",{d:"M22.085 9.08496C22.085 5.21496 18.955 2.08496 15.085 2.08496C11.215 2.08496 8.08504 5.21496 8.08504 9.08496C8.08504 12.555 10.605 15.425 13.915 15.975V19.915H5.91504V16.915H6.91504V12.915C6.91504 12.365 6.46504 11.915 5.91504 11.915H2.91504C2.36504 11.915 1.91504 12.365 1.91504 12.915V16.915H2.91504V21.915H18.915V19.915H15.915V16.035C19.385 15.625 22.085 12.675 22.085 9.08496ZM15.085 14.085C12.325 14.085 10.085 11.845 10.085 9.08496C10.085 6.32496 12.325 4.08496 15.085 4.08496C17.845 4.08496 20.085 6.32496 20.085 9.08496C20.085 11.845 17.845 14.085 15.085 14.085Z"})]}),X2t=e=>O("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:O("path",{d:"M18 6H16C16 3.79 14.21 2 12 2C9.79 2 8 3.79 8 6H6C4.9 6 4 6.9 4 8V20C4 21.1 4.9 22 6 22H18C19.1 22 20 21.1 20 20V8C20 6.9 19.1 6 18 6ZM12 4C13.1 4 14 4.9 14 6H10C10 4.9 10.9 4 12 4ZM18 20H6V8H8V10C8 10.55 8.45 11 9 11C9.55 11 10 10.55 10 10V8H14V10C14 10.55 14.45 11 15 11C15.55 11 16 10.55 16 10V8H18V20Z"})}),Az=[{value:"commute",icon:wz,scores:["transit_friendly","car_friendly","pedestrian_friendly","cycling_friendly"]},{value:"education",icon:IS,scores:["primary_schools","high_schools","daycares"]},{value:"amenities",icon:X2t,scores:["groceries","restaurants","shopping","cafes"]},{value:"character",icon:G2t,scores:["quiet","nightlife","vibrant","historic"]},{value:"nature",icon:q2t,scores:["parks","greenery"]}],Sz=({options:e})=>{const{scoreCategory:t}=xz(),n=Az.find(r=>r.value===t);return j(rr,{SVGElement:n.icon,fill:`var(${e==null?void 0:e.color})`,height:e==null?void 0:e.height,width:e==null?void 0:e.width})};Sz.defaultProps={options:{color:"--ll-color-on-background-variant1"}};const Ez=({options:e,children:t})=>j(yz.Provider,{value:{...e},children:t}),Cz=Object.freeze(Object.defineProperty({__proto__:null,Root:Ez,Title:_z,Icon:Sz},Symbol.toStringTag,{value:"Module"}));function Bn(){return Bn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bn.apply(this,arguments)}function Hi(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}function zS(e,t=[]){let n=[];function r(o,s){const a=v.exports.createContext(s),l=n.length;n=[...n,s];function c(d){const{scope:h,children:f,...p}=d,g=(h==null?void 0:h[e][l])||a,y=v.exports.useMemo(()=>p,Object.values(p));return v.exports.createElement(g.Provider,{value:y},f)}function u(d,h){const f=(h==null?void 0:h[e][l])||a,p=v.exports.useContext(f);if(p)return p;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${o}\``)}return c.displayName=o+"Provider",[c,u]}const i=()=>{const o=n.map(s=>v.exports.createContext(s));return function(s){const a=(s==null?void 0:s[e])||o;return v.exports.useMemo(()=>({[`__scope${e}`]:{...s,[e]:a}}),[s,a])}};return i.scopeName=e,[r,Q2t(i,...t)]}function Q2t(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(i){const o=r.reduce((s,{useScope:a,scopeName:l})=>{const c=a(i)[`__scope${l}`];return{...s,...c}},{});return v.exports.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}function K2t(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function kz(...e){return t=>e.forEach(n=>K2t(n,t))}function m0(...e){return v.exports.useCallback(kz(...e),e)}const v0=v.exports.forwardRef((e,t)=>{const{children:n,...r}=e,i=v.exports.Children.toArray(n),o=i.find(J2t);if(o){const s=o.props.children,a=i.map(l=>l===o?v.exports.Children.count(s)>1?v.exports.Children.only(null):v.exports.isValidElement(s)?s.props.children:null:l);return v.exports.createElement(Y_,Bn({},r,{ref:t}),v.exports.isValidElement(s)?v.exports.cloneElement(s,void 0,a):null)}return v.exports.createElement(Y_,Bn({},r,{ref:t}),n)});v0.displayName="Slot";const Y_=v.exports.forwardRef((e,t)=>{const{children:n,...r}=e;return v.exports.isValidElement(n)?v.exports.cloneElement(n,{...tSt(r,n.props),ref:kz(t,n.ref)}):v.exports.Children.count(n)>1?v.exports.Children.only(null):null});Y_.displayName="SlotClone";const Z2t=({children:e})=>v.exports.createElement(v.exports.Fragment,null,e);function J2t(e){return v.exports.isValidElement(e)&&e.type===Z2t}function tSt(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?n[r]=(...s)=>{o==null||o(...s),i==null||i(...s)}:r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function eSt(e){const t=e+"CollectionProvider",[n,r]=zS(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=f=>{const{scope:p,children:g}=f,y=Z.useRef(null),m=Z.useRef(new Map).current;return Z.createElement(i,{scope:p,itemMap:m,collectionRef:y},g)},a=e+"CollectionSlot",l=Z.forwardRef((f,p)=>{const{scope:g,children:y}=f,m=o(a,g),x=m0(p,m.collectionRef);return Z.createElement(v0,{ref:x},y)}),c=e+"CollectionItemSlot",u="data-radix-collection-item",d=Z.forwardRef((f,p)=>{const{scope:g,children:y,...m}=f,x=Z.useRef(null),b=m0(p,x),_=o(c,g);return Z.useEffect(()=>(_.itemMap.set(x,{ref:x,...m}),()=>void _.itemMap.delete(x))),Z.createElement(v0,{[u]:"",ref:b},y)});function h(f){const p=o(e+"CollectionConsumer",f);return Z.useCallback(()=>{const g=p.collectionRef.current;if(!g)return[];const y=Array.from(g.querySelectorAll(`[${u}]`));return Array.from(p.itemMap.values()).sort((m,x)=>y.indexOf(m.ref.current)-y.indexOf(x.ref.current))},[p.collectionRef,p.itemMap])}return[{Provider:s,Slot:l,ItemSlot:d},h,r]}const G_=Boolean(globalThis==null?void 0:globalThis.document)?v.exports.useLayoutEffect:()=>{},nSt=J_["useId".toString()]||(()=>{});let rSt=0;function Tz(e){const[t,n]=v.exports.useState(nSt());return G_(()=>{e||n(r=>r!=null?r:String(rSt++))},[e]),e||(t?`radix-${t}`:"")}const iSt=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"],Rc=iSt.reduce((e,t)=>{const n=v.exports.forwardRef((r,i)=>{const{asChild:o,...s}=r,a=o?v0:t;return v.exports.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),v.exports.createElement(a,Bn({},s,{ref:i}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function BS(e){const t=v.exports.useRef(e);return v.exports.useEffect(()=>{t.current=e}),v.exports.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function Mz({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,i]=oSt({defaultProp:t,onChange:n}),o=e!==void 0,s=o?e:r,a=BS(n),l=v.exports.useCallback(c=>{if(o){const u=typeof c=="function"?c(e):c;u!==e&&a(u)}else i(c)},[o,e,i,a]);return[s,l]}function oSt({defaultProp:e,onChange:t}){const n=v.exports.useState(e),[r]=n,i=v.exports.useRef(r),o=BS(t);return v.exports.useEffect(()=>{i.current!==r&&(o(r),i.current=r)},[r,i,o]),n}const sSt=v.exports.createContext(void 0);function $z(e){const t=v.exports.useContext(sSt);return e||t||"ltr"}const Jy="rovingFocusGroup.onEntryFocus",aSt={bubbles:!1,cancelable:!0},VS="RovingFocusGroup",[q_,Pz,lSt]=eSt(VS),[cSt,Oz]=zS(VS,[lSt]),[uSt,dSt]=cSt(VS),hSt=v.exports.forwardRef((e,t)=>v.exports.createElement(q_.Provider,{scope:e.__scopeRovingFocusGroup},v.exports.createElement(q_.Slot,{scope:e.__scopeRovingFocusGroup},v.exports.createElement(fSt,Bn({},e,{ref:t}))))),fSt=v.exports.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:o,currentTabStopId:s,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:l,onEntryFocus:c,...u}=e,d=v.exports.useRef(null),h=m0(t,d),f=$z(o),[p=null,g]=Mz({prop:s,defaultProp:a,onChange:l}),[y,m]=v.exports.useState(!1),x=BS(c),b=Pz(n),_=v.exports.useRef(!1);return v.exports.useEffect(()=>{const w=d.current;if(w)return w.addEventListener(Jy,x),()=>w.removeEventListener(Jy,x)},[x]),v.exports.createElement(uSt,{scope:n,orientation:r,dir:f,loop:i,currentTabStopId:p,onItemFocus:v.exports.useCallback(w=>g(w),[g]),onItemShiftTab:v.exports.useCallback(()=>m(!0),[])},v.exports.createElement(Rc.div,Bn({tabIndex:y?-1:0,"data-orientation":r},u,{ref:h,style:{outline:"none",...e.style},onMouseDown:Hi(e.onMouseDown,()=>{_.current=!0}),onFocus:Hi(e.onFocus,w=>{const A=!_.current;if(w.target===w.currentTarget&&A&&!y){const S=new CustomEvent(Jy,aSt);if(w.currentTarget.dispatchEvent(S),!S.defaultPrevented){const E=b().filter($=>$.focusable),k=E.find($=>$.active),C=E.find($=>$.id===p),T=[k,C,...E].filter(Boolean).map($=>$.ref.current);Rz(T)}}_.current=!1}),onBlur:Hi(e.onBlur,()=>m(!1))})))}),pSt="RovingFocusGroupItem",gSt=v.exports.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,...o}=e,s=Tz(),a=dSt(pSt,n),l=a.currentTabStopId===s,c=Pz(n);return v.exports.createElement(q_.ItemSlot,{scope:n,id:s,focusable:r,active:i},v.exports.createElement(Rc.span,Bn({tabIndex:l?0:-1,"data-orientation":a.orientation},o,{ref:t,onMouseDown:Hi(e.onMouseDown,u=>{r?a.onItemFocus(s):u.preventDefault()}),onFocus:Hi(e.onFocus,()=>a.onItemFocus(s)),onKeyDown:Hi(e.onKeyDown,u=>{if(u.key==="Tab"&&u.shiftKey){a.onItemShiftTab();return}if(u.target!==u.currentTarget)return;const d=ySt(u,a.orientation,a.dir);if(d!==void 0){u.preventDefault();let h=c().filter(f=>f.focusable).map(f=>f.ref.current);if(d==="last")h.reverse();else if(d==="prev"||d==="next"){d==="prev"&&h.reverse();const f=h.indexOf(u.currentTarget);h=a.loop?xSt(h,f+1):h.slice(f+1)}setTimeout(()=>Rz(h))}})})))}),mSt={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function vSt(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function ySt(e,t,n){const r=vSt(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return mSt[r]}function Rz(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function xSt(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const bSt=hSt,_St=gSt;function wSt(e,t){return v.exports.useReducer((n,r)=>{const i=t[n][r];return i!=null?i:n},e)}const Dz=e=>{const{present:t,children:n}=e,r=ASt(t),i=typeof n=="function"?n({present:r.isPresent}):v.exports.Children.only(n),o=m0(r.ref,i.ref);return typeof n=="function"||r.isPresent?v.exports.cloneElement(i,{ref:o}):null};Dz.displayName="Presence";function ASt(e){const[t,n]=v.exports.useState(),r=v.exports.useRef({}),i=v.exports.useRef(e),o=v.exports.useRef("none"),s=e?"mounted":"unmounted",[a,l]=wSt(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.exports.useEffect(()=>{const c=zp(r.current);o.current=a==="mounted"?c:"none"},[a]),G_(()=>{const c=r.current,u=i.current;if(u!==e){const d=o.current,h=zp(c);e?l("MOUNT"):h==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&d!==h?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),G_(()=>{if(t){const c=d=>{const h=zp(r.current).includes(d.animationName);d.target===t&&h&&Vn.exports.flushSync(()=>l("ANIMATION_END"))},u=d=>{d.target===t&&(o.current=zp(r.current))};return t.addEventListener("animationstart",u),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{t.removeEventListener("animationstart",u),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:v.exports.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function zp(e){return(e==null?void 0:e.animationName)||"none"}const Lz="Tabs",[SSt,rCt]=zS(Lz,[Oz]),Iz=Oz(),[ESt,jS]=SSt(Lz),CSt=v.exports.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:i,defaultValue:o,orientation:s="horizontal",dir:a,activationMode:l="automatic",...c}=e,u=$z(a),[d,h]=Mz({prop:r,onChange:i,defaultProp:o});return v.exports.createElement(ESt,{scope:n,baseId:Tz(),value:d,onValueChange:h,orientation:s,dir:u,activationMode:l},v.exports.createElement(Rc.div,Bn({dir:u,"data-orientation":s},c,{ref:t})))}),kSt="TabsList",TSt=v.exports.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...i}=e,o=jS(kSt,n),s=Iz(n);return v.exports.createElement(bSt,Bn({asChild:!0},s,{orientation:o.orientation,dir:o.dir,loop:r}),v.exports.createElement(Rc.div,Bn({role:"tablist","aria-orientation":o.orientation},i,{ref:t})))}),MSt="TabsTrigger",$St=v.exports.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:i=!1,...o}=e,s=jS(MSt,n),a=Iz(n),l=Nz(s.baseId,r),c=Fz(s.baseId,r),u=r===s.value;return v.exports.createElement(_St,Bn({asChild:!0},a,{focusable:!i,active:u}),v.exports.createElement(Rc.button,Bn({type:"button",role:"tab","aria-selected":u,"aria-controls":c,"data-state":u?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:l},o,{ref:t,onMouseDown:Hi(e.onMouseDown,d=>{!i&&d.button===0&&d.ctrlKey===!1?s.onValueChange(r):d.preventDefault()}),onKeyDown:Hi(e.onKeyDown,d=>{[" ","Enter"].includes(d.key)&&s.onValueChange(r)}),onFocus:Hi(e.onFocus,()=>{const d=s.activationMode!=="manual";!u&&!i&&d&&s.onValueChange(r)})})))}),PSt="TabsContent",OSt=v.exports.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:i,children:o,...s}=e,a=jS(PSt,n),l=Nz(a.baseId,r),c=Fz(a.baseId,r),u=r===a.value,d=v.exports.useRef(u);return v.exports.useEffect(()=>{const h=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(h)},[]),v.exports.createElement(Dz,{present:i||u},({present:h})=>v.exports.createElement(Rc.div,Bn({"data-state":u?"active":"inactive","data-orientation":a.orientation,role:"tabpanel","aria-labelledby":l,hidden:!h,id:c,tabIndex:0},s,{ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0}}),h&&o))});function Nz(e,t){return`${e}-trigger-${t}`}function Fz(e,t){return`${e}-content-${t}`}const HS=CSt,US=TSt,WS=$St,YS=OSt,zz=e=>{const t=v.exports.useRef(e);return v.exports.useEffect(()=>{t.current=e}),v.exports.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])},RSt=({defaultValue:e,onChange:t})=>{const n=v.exports.useState(e),[r]=n,i=v.exports.useRef(r),o=zz(t==null?void 0:t.func);return v.exports.useEffect(()=>{i.current!==r&&t&&(o({type:t.key,data:r}),i.current=r)},[r,i,o]),n},DSt=({controlledValue:e,onChange:t,defaultValue:n})=>{const[r,i]=RSt({defaultValue:n,onChange:t}),o=e!==void 0,s=o?e:r,a=zz(t==null?void 0:t.func),l=v.exports.useCallback(c=>{if(o){const u=typeof c=="function"?c(e):c;u!==e&&t&&a({type:t.key,data:u})}else i(c)},[o,s,i,a]);return[s,l]},Bz=Z.createContext({}),LSt=()=>v.exports.useContext(Bz),ISt=({children:e,options:{value:t}})=>j(YS,{value:t,children:j(Ez,{options:{scoreCategory:t},children:e})},t),{Title:NSt}=Cz,{Icon:FSt}=Cz,zSt=z(US)`
|
|
1264
|
+
display: grid;
|
|
1265
|
+
grid-auto-columns: minmax(0, 1fr);
|
|
1266
|
+
grid-auto-flow: column;
|
|
1267
|
+
background-color: ${M["--ll-color-background"]};
|
|
1268
|
+
`,BSt=z(WS)`
|
|
1269
|
+
background: none;
|
|
1270
|
+
border: none;
|
|
1271
|
+
padding: ${M["--ll-spacing-xx-small"]};
|
|
1272
|
+
display: flex;
|
|
1273
|
+
flex-direction: column;
|
|
1274
|
+
align-items: center;
|
|
1275
|
+
|
|
1276
|
+
&:hover {
|
|
1277
|
+
background-color: ${M["--ll-color-surface"]};
|
|
1278
|
+
border-radius: ${M["--ll-border-radius-small"]};
|
|
1279
|
+
box-shadow: ${M["--ll-shadow-small"]};
|
|
1280
|
+
}
|
|
1281
|
+
`,VSt=()=>{const{currentTab:e}=LSt(),{translations:t}=Se([bz]);return j(zSt,{"aria-label":"Score tabs",children:Az.map(n=>{const r=n.value===e?"--ll-color-primary":"--ll-color-disabled";return j(Z.Fragment,{children:Vt(BSt,{value:n.value,children:[j(rr,{SVGElement:n.icon,fill:M[r]}),j(Qt,{noMargin:!0,variant:"caption1",color:r,weight:"--ll-font-weight-medium",children:t[n.value]})]})},n.value)})})},jSt=({options:e,onChange:t,children:n})=>{const[r,i]=DSt({controlledValue:e.currentTab,onChange:{func:t,key:"tabs"},defaultValue:e.defaultTab||"commute"});return j(Bz.Provider,{value:{...e,currentTab:r},children:j(HS,{value:r,orientation:"vertical",defaultValue:r,onValueChange:o=>i(o),children:n})})},iCt=Object.freeze(Object.defineProperty({__proto__:null,Root:jSt,Tabs:VSt,Content:ISt,Title:NSt,Icon:FSt},Symbol.toStringTag,{value:"Module"})),Vz=Z.createContext({}),HSt=()=>v.exports.useContext(Vz),USt=z(WS)`
|
|
1282
|
+
margin-right: ${M["--ll-spacing-xx-small"]};
|
|
1283
|
+
margin-bottom: ${M["--ll-spacing-xx-small"]};
|
|
1284
|
+
`,WSt=()=>{const{include:e,activeTab:t,setActiveTab:n}=HSt(),{translations:r}=Se([FS]);return e.length<=1?null:j(US,{"aria-label":"tabs example",children:e.map(i=>j(USt,{value:i,asChild:!0,children:j(Nv,{size:"small",variant:i===t?"contained":"outlined",onClick:()=>n(i),children:r[i]})},i))})},YSt=({children:e,options:{value:t}})=>j(YS,{value:t,children:e},t),GSt=({options:e,children:t})=>{const[n,r]=v.exports.useState(e.include[0]);return j(Vz.Provider,{value:{...e,activeTab:n,setActiveTab:r},children:j(HS,{value:n,children:t})})},oCt=Object.freeze(Object.defineProperty({__proto__:null,Root:GSt,Tabs:WSt,Content:YSt},Symbol.toStringTag,{value:"Module"})),jz=Z.createContext({}),Hz=()=>v.exports.useContext(jz),Uz=e=>{var t;const{options:{poi:n}}=Hz(),{translations:r}=Se([FS,vz]);return(t=e.options)!=null&&t.isRawText?j(ii,{children:r[n]}):j(Qt,{...e.options,children:r[n]})};Uz.defaultProps={options:{noMargin:!0,variant:"h6",color:"--ll-color-on-background-variant1",isRawText:!1}};const Wz=({options:e})=>{const{options:{poi:t}}=Hz();return j(rr,{SVGElement:NS[t],fill:`var(${e==null?void 0:e.color})`,height:e==null?void 0:e.height,width:e==null?void 0:e.width})};Wz.defaultProps={options:{color:"--ll-color-on-background-variant1"}};const qSt=e=>j(jz.Provider,{value:{...e},children:e.children}),sCt=Object.freeze(Object.defineProperty({__proto__:null,Title:Uz,Icon:Wz,Root:qSt},Symbol.toStringTag,{value:"Module"})),XSt=Z.createContext({}),vi={en:{populationByAgeTitle:"Population by age group",populationInPercentage:"% of total population",totalPopulation:"Total Population",typeOfHousingChartTitle:"Type of Housing",ownersRentersTitle:"Owners vs Renters",householdCompositionTitle:"Household Composition",FamiliesWithChildrenTitle:"Families with Children",averageIncomeTitle:"Average Income",commuteModeTitle:"Commute Mode",educationLevelTitle:"Highest level of education achieved",motherTongueTitle:"Mother tongue",avg_household_income:"Family",avg_individual_income:"Individual"},fr:{populationByAgeTitle:"Population par tranche d'\xE2ge",populationInPercentage:"% de la population totale",totalPopulation:"Population Totale",ownersRentersTitle:"Propri\xE9taires vs locataires",typeOfHousingChartTitle:"Type de logement",householdCompositionTitle:"Composition du m\xE9nage",FamiliesWithChildrenTitle:"Familles avec enfants",averageIncomeTitle:"Revenu Moyen",commuteModeTitle:"Mode Trajet",educationLevelTitle:"Plus haut niveau d'\xE9tudes atteint",motherTongueTitle:"Langue maternelle",avg_household_income:"Famille",avg_individual_income:"Individuel"}},QSt=e=>Ae("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[O("path",{d:"M22.2266 17.5067C24.0533 18.7467 25.3333 20.4267 25.3333 22.6667V26.6667H30.6666V22.6667C30.6666 19.76 25.9066 18.04 22.2266 17.5067Z",fill:"white"}),O("path",{d:"M20 16C22.9466 16 25.3333 13.6134 25.3333 10.6667C25.3333 7.72004 22.9466 5.33337 20 5.33337C19.3733 5.33337 18.7866 5.46671 18.2266 5.65337C19.3333 7.02671 20 8.77337 20 10.6667C20 12.56 19.3333 14.3067 18.2266 15.68C18.7866 15.8667 19.3733 16 20 16Z",fill:"white"}),O("path",{d:"M12 16C14.9466 16 17.3333 13.6134 17.3333 10.6667C17.3333 7.72004 14.9466 5.33337 12 5.33337C9.05331 5.33337 6.66665 7.72004 6.66665 10.6667C6.66665 13.6134 9.05331 16 12 16ZM12 8.00004C13.4666 8.00004 14.6666 9.20004 14.6666 10.6667C14.6666 12.1334 13.4666 13.3334 12 13.3334C10.5333 13.3334 9.33331 12.1334 9.33331 10.6667C9.33331 9.20004 10.5333 8.00004 12 8.00004Z",fill:"white"}),O("path",{d:"M12 17.3334C8.43998 17.3334 1.33331 19.12 1.33331 22.6667V26.6667H22.6666V22.6667C22.6666 19.12 15.56 17.3334 12 17.3334ZM20 24H3.99998V22.68C4.26665 21.72 8.39998 20 12 20C15.6 20 19.7333 21.72 20 22.6667V24Z",fill:"white"})]}),KSt=e=>O("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:O("path",{d:"M16 8.00004C17.4666 8.00004 18.6666 9.20004 18.6666 10.6667C18.6666 12.1334 17.4666 13.3334 16 13.3334C14.5333 13.3334 13.3333 12.1334 13.3333 10.6667C13.3333 9.20004 14.5333 8.00004 16 8.00004ZM16 21.3334C19.6 21.3334 23.7333 23.0534 24 24H7.99998C8.30665 23.04 12.4133 21.3334 16 21.3334ZM16 5.33337C13.0533 5.33337 10.6666 7.72004 10.6666 10.6667C10.6666 13.6134 13.0533 16 16 16C18.9466 16 21.3333 13.6134 21.3333 10.6667C21.3333 7.72004 18.9466 5.33337 16 5.33337ZM16 18.6667C12.44 18.6667 5.33331 20.4534 5.33331 24V26.6667H26.6666V24C26.6666 20.4534 19.56 18.6667 16 18.6667Z",fill:"white"})}),ZSt=({options:{incomeTypes:e}})=>{const{translations:t}=Se([vi]),n={avg_household_income:QSt,avg_individual_income:KSt},r=v.exports.useMemo(()=>({options:{title:t.averageIncomeTitle,values:e.map(i=>({variable:i.variable,value:new Intl.NumberFormat("en-EN",{style:"currency",currency:"USD"}).format(i.value),label:t[i.variable],SVGElement:n[i.variable]}))}}),[e]);return j(AF,{...r})},JSt=({options:{labels:e,data:t}})=>{const{translations:n}=Se([vi]),r=v.exports.useMemo(()=>({data:{labels:e,datasets:[{label:n.populationInPercentage,data:t}]},options:{plugins:{title:{text:n.populationByAgeTitle}}}}),[e,t]);return j(Uv,{...r})},tEt=e=>O("svg",{width:28,height:27,viewBox:"0 0 28 27",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:O("path",{d:"M18.7902 2.91618C18.7902 1.43618 19.9769 0.249512 21.4569 0.249512C22.9369 0.249512 24.1235 1.43618 24.1235 2.91618C24.1235 4.39618 22.9369 5.58285 21.4569 5.58285C19.9769 5.58285 18.7902 4.39618 18.7902 2.91618ZM24.1235 26.9162V18.9162H27.4569L24.0702 8.74285C23.6969 7.64951 22.6835 6.91618 21.5369 6.91618H21.3769C20.2302 6.91618 19.2035 7.64951 18.8435 8.74285L17.6969 12.1828C19.1369 12.9828 20.1235 14.4895 20.1235 16.2495V26.9162H24.1235ZM14.1235 12.9162C15.2302 12.9162 16.1235 12.0228 16.1235 10.9162C16.1235 9.80951 15.2302 8.91618 14.1235 8.91618C13.0169 8.91618 12.1235 9.80951 12.1235 10.9162C12.1235 12.0228 13.0169 12.9162 14.1235 12.9162ZM4.7902 5.58285C6.2702 5.58285 7.45687 4.39618 7.45687 2.91618C7.45687 1.43618 6.2702 0.249512 4.7902 0.249512C3.3102 0.249512 2.12354 1.43618 2.12354 2.91618C2.12354 4.39618 3.3102 5.58285 4.7902 5.58285ZM7.45687 26.9162V17.5828H9.45687V9.58285C9.45687 8.11618 8.25687 6.91618 6.7902 6.91618H2.7902C1.32354 6.91618 0.123535 8.11618 0.123535 9.58285V17.5828H2.12354V26.9162H7.45687ZM16.1235 26.9162V21.5828H17.4569V16.2495C17.4569 15.1562 16.5502 14.2495 15.4569 14.2495H12.7902C11.6969 14.2495 10.7902 15.1562 10.7902 16.2495V21.5828H12.1235V26.9162H16.1235Z",fill:"white"})}),eEt=({options:{variable:e,value:t}})=>{const{translations:n}=Se([vi]),r=v.exports.useMemo(()=>({options:{title:n.totalPopulation,values:[{variable:e,value:new Intl.NumberFormat("en-EN").format(t),label:n.totalPopulation,SVGElement:tEt}]}}),[e,t]);return j(AF,{...r})},nEt=({options:{datasets:e}})=>{const{translations:t}=Se([vi]),n=["rgb(0, 132, 145)","rgb(62, 49, 91)"],r=v.exports.useMemo(()=>({data:{datasets:e.map((i,o)=>({...i,data:[i.data],backgroundColor:n[o<2?o:0]}))},options:{plugins:{title:{text:t.ownersRentersTitle}}}}),[e]);return j(abt,{...r})},rEt=({options:{labels:e,data:t}})=>{const{translations:n}=Se([vi]),r=v.exports.useMemo(()=>({data:{labels:e,datasets:[{data:t}]},options:{plugins:{title:{text:n.householdCompositionTitle}}}}),[e,t]);return j(SS,{...r})},iEt=({options:{labels:e,data:t}})=>{const{translations:n}=Se([vi]),r=v.exports.useMemo(()=>({data:{labels:e,datasets:[{data:t}]},options:{plugins:{title:{text:n.FamiliesWithChildrenTitle}}}}),[e,t]);return j(SS,{...r})},oEt=({options:{labels:e,data:t}})=>{const{translations:n}=Se([vi]),r=v.exports.useMemo(()=>({data:{labels:e,datasets:[{label:n.populationInPercentage,data:t}]},options:{plugins:{title:{text:n.typeOfHousingChartTitle}}}}),[e,t]);return j(Uv,{...r})},sEt=({options:{labels:e,data:t}})=>{const{translations:n}=Se([vi]),r=v.exports.useMemo(()=>({data:{labels:e,datasets:[{data:t}]},options:{plugins:{title:{text:n.commuteModeTitle}}}}),[e,t]);return j(SS,{...r})},aEt=({options:{labels:e,data:t}})=>{const{translations:n}=Se([vi]),r=v.exports.useMemo(()=>({data:{labels:e,datasets:[{label:n.populationInPercentage,data:t}]},options:{plugins:{title:{text:n.educationLevelTitle}}}}),[e,t]);return j(Uv,{...r})},lEt=({options:{labels:e,data:t}})=>{const{translations:n}=Se([vi]),r=v.exports.useMemo(()=>({data:{labels:e,datasets:[{label:n.populationInPercentage,data:t}]},options:{plugins:{title:{text:n.motherTongueTitle}}}}),[e,t]);return j(Uv,{...r})},cEt=e=>j(XSt.Provider,{value:{...e},children:e.children}),aCt=Object.freeze(Object.defineProperty({__proto__:null,Root:cEt,AvgIncomeCard:ZSt,PopulationByAgeChart:JSt,TotalPopulationCard:eEt,OwnersRentersCard:nEt,HouseholdCompositionCard:rEt,FamiliesWithChildrenCard:iEt,CommuteModeCard:sEt,EducationLevelChart:aEt,TypeOfHousingChart:oEt,MotherTongueChart:lEt},Symbol.toStringTag,{value:"Module"})),Yz=Z.createContext({}),Gz=()=>v.exports.useContext(Yz),uEt=({children:e,options:{value:t}})=>j(YS,{value:t,children:e},t),qz={en:{income:"Income",population:"Population",housing:"Housing",household:"Household",education:"Education",commute:"Commute",languages:"Languages"},fr:{income:"Revenu",population:"Services",housing:"Logement",household:"M\xE9nage",education:"\xC9ducation",commute:"Navette",languages:"Langages"}},dEt=e=>O("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:O("path",{d:"M10 0C4.48 0 0 4.48 0 10C0 15.52 4.48 20 10 20C15.52 20 20 15.52 20 10C20 4.48 15.52 0 10 0ZM10 18C5.59 18 2 14.41 2 10C2 5.59 5.59 2 10 2C14.41 2 18 5.59 18 10C18 14.41 14.41 18 10 18ZM10.31 9.14C8.54 8.69 7.97 8.2 7.97 7.47C7.97 6.63 8.76 6.04 10.07 6.04C11.45 6.04 11.97 6.7 12.01 7.68H13.72C13.67 6.34 12.85 5.11 11.23 4.71V3H8.9V4.69C7.39 5.01 6.18 5.99 6.18 7.5C6.18 9.29 7.67 10.19 9.84 10.71C11.79 11.17 12.18 11.86 12.18 12.58C12.18 13.11 11.79 13.97 10.08 13.97C8.48 13.97 7.85 13.25 7.76 12.33H6.04C6.14 14.03 7.4 14.99 8.9 15.3V17H11.24V15.33C12.76 15.04 13.96 14.17 13.97 12.56C13.96 10.36 12.07 9.6 10.31 9.14Z"})}),hEt=e=>Ae("svg",{width:20,height:18,viewBox:"0 0 20 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[O("path",{d:"M8 8C10.21 8 12 6.21 12 4C12 1.79 10.21 0 8 0C5.79 0 4 1.79 4 4C4 6.21 5.79 8 8 8ZM8 2C9.1 2 10 2.9 10 4C10 5.1 9.1 6 8 6C6.9 6 6 5.1 6 4C6 2.9 6.9 2 8 2Z"}),O("path",{d:"M2 14C2.22 13.28 5.31 12 8 12C8 11.3 8.13 10.63 8.35 10.01C5.62 9.91 0 11.27 0 14V16H9.54C9.02 15.42 8.61 14.75 8.35 14H2Z"}),O("path",{d:"M17.43 14.02C17.79 13.43 18 12.74 18 12C18 9.79 16.21 8 14 8C11.79 8 10 9.79 10 12C10 14.21 11.79 16 14 16C14.74 16 15.43 15.78 16.02 15.43C16.95 16.36 17.64 17.05 18.59 18L20 16.59C18.5 15.09 19.21 15.79 17.43 14.02ZM14 14C12.9 14 12 13.1 12 12C12 10.9 12.9 10 14 10C15.1 10 16 10.9 16 12C16 13.1 15.1 14 14 14Z"})]}),fEt=e=>Ae("svg",{width:22,height:18,viewBox:"0 0 22 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[O("path",{d:"M18 4H16V6H18V4Z"}),O("path",{d:"M18 8H16V10H18V8Z"}),O("path",{d:"M18 12H16V14H18V12Z"}),O("path",{d:"M0 8V18H6V13H8V18H14V8L7 3L0 8ZM12 16H10V11H4V16H2V9L7 5.5L12 9V16Z"}),O("path",{d:"M9 0V1.97L11 3.4V2H20V16H16V18H22V0H9Z"})]}),pEt=e=>O("svg",{width:22,height:20,viewBox:"0 0 22 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:O("path",{d:"M14.75 2C14.75 0.89 15.64 0 16.75 0C17.86 0 18.75 0.89 18.75 2C18.75 3.11 17.86 4 16.75 4C15.64 4 14.75 3.11 14.75 2ZM18.75 20V14H21.25L18.71 6.37C18.43 5.55 17.67 5 16.81 5H16.69C15.83 5 15.06 5.55 14.79 6.37L13.93 8.95C15.01 9.55 15.75 10.68 15.75 12V20H18.75ZM11.25 9.5C12.08 9.5 12.75 8.83 12.75 8C12.75 7.17 12.08 6.5 11.25 6.5C10.42 6.5 9.75 7.17 9.75 8C9.75 8.83 10.42 9.5 11.25 9.5ZM4.25 4C5.36 4 6.25 3.11 6.25 2C6.25 0.89 5.36 0 4.25 0C3.14 0 2.25 0.89 2.25 2C2.25 3.11 3.14 4 4.25 4ZM6.25 20V13H7.75V7C7.75 5.9 6.85 5 5.75 5H2.75C1.65 5 0.75 5.9 0.75 7V13H2.25V20H6.25ZM12.75 20V16H13.75V12C13.75 11.18 13.07 10.5 12.25 10.5H10.25C9.43 10.5 8.75 11.18 8.75 12V16H9.75V20H12.75Z"})}),gEt=e=>O("svg",{width:22,height:18,viewBox:"0 0 22 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:O("path",{d:"M11 0L0 6L4 8.18V14.18L11 18L18 14.18V8.18L20 7.09V14H22V6L11 0ZM17.82 6L11 9.72L4.18 6L11 2.28L17.82 6ZM16 12.99L11 15.72L6 12.99V9.27L11 12L16 9.27V12.99Z"})}),mEt=e=>O("svg",{width:22,height:20,viewBox:"0 0 22 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:O("path",{d:"M11.87 13.07L9.33 10.56L9.36 10.53C11.1 8.59 12.34 6.36 13.07 4H16V2H9V0H7V2H0V3.99H11.17C10.5 5.92 9.44 7.75 8 9.35C7.07 8.32 6.3 7.19 5.69 6H3.69C4.42 7.63 5.42 9.17 6.67 10.56L1.58 15.58L3 17L8 12L11.11 15.11L11.87 13.07ZM17.5 8H15.5L11 20H13L14.12 17H18.87L20 20H22L17.5 8ZM14.88 15L16.5 10.67L18.12 15H14.88Z"})}),Xz=[{value:"income",icon:dEt},{value:"population",icon:hEt},{value:"housing",icon:fEt},{value:"household",icon:pEt},{value:"education",icon:gEt},{value:"commute",icon:wz},{value:"languages",icon:mEt}],vEt=z(US)`
|
|
1285
|
+
display: grid;
|
|
1286
|
+
grid-auto-columns: minmax(0, 80px);
|
|
1287
|
+
grid-auto-flow: column;
|
|
1288
|
+
`,yEt=z(WS)`
|
|
1289
|
+
background: none;
|
|
1290
|
+
border: none;
|
|
1291
|
+
padding: ${M["--ll-spacing-xx-small"]};
|
|
1292
|
+
display: flex;
|
|
1293
|
+
flex-direction: column;
|
|
1294
|
+
align-items: center;
|
|
1295
|
+
|
|
1296
|
+
&:hover {
|
|
1297
|
+
cursor: pointer;
|
|
1298
|
+
|
|
1299
|
+
svg {
|
|
1300
|
+
fill: ${M["--ll-color-primary"]};
|
|
1301
|
+
}
|
|
1302
|
+
|
|
1303
|
+
p {
|
|
1304
|
+
color: ${M["--ll-color-primary"]};
|
|
1305
|
+
}
|
|
1306
|
+
}
|
|
1307
|
+
`,xEt=()=>{const{options:e}=Gz(),{translations:t}=Se([qz]);return j(vEt,{"aria-label":"Demographics tabs",children:Xz.map(n=>{const r=n.value===e.activeTab?"--ll-color-primary":"--ll-color-disabled";return j(Z.Fragment,{children:Vt(yEt,{value:n.value,children:[j(rr,{SVGElement:n.icon,fill:M[r]}),j(Qt,{noMargin:!0,variant:"caption1",color:r,weight:"--ll-font-weight-medium",children:t[n.value]})]})},n.value)})})},bEt=z.div`
|
|
1308
|
+
display: flex;
|
|
1309
|
+
padding: ${M["--ll-spacing-x-small"]} ${M["--ll-spacing-medium"]}
|
|
1310
|
+
${M["--ll-spacing-xx-small"]} ${M["--ll-spacing-medium"]};
|
|
1311
|
+
`,_Et=()=>{const{options:e,onChange:t}=Gz(),{translations:n}=Se([qz]);return j(bEt,{children:Vt(Lp.Root,{value:e.activeTab,onValueChange:r=>{t({type:"tabs",data:r})},children:[j(Lp.Trigger,{size:"large",children:j(Qt,{noMargin:!0,variant:"h6",children:n[e.activeTab]})}),j(Lp.Content,{children:Xz.map(r=>j(Lp.Item,{value:r.value,children:j(Qt,{noMargin:!0,variant:"h6",children:n[r.value]})},r.value))})]})})},wEt=({options:e,onChange:t,children:n})=>{const r=i=>{t({type:"tabs",data:i})};return j(Yz.Provider,{value:{options:e,onChange:t},children:j(HS,{value:e.activeTab,onValueChange:r,children:n})})},lCt=Object.freeze(Object.defineProperty({__proto__:null,Root:wEt,Tabs:xEt,Select:_Et,Content:uEt},Symbol.toStringTag,{value:"Module"})),AEt=({children:e})=>{var r,i;const{sdkState:t}=y8();if(!(t!=null&&t.apiKey))throw Error("A valid apiKey must be provided.");const n=jpt(t.apiKey,{locale:(r=t==null?void 0:t.globalOptions)==null?void 0:r.locale});return O(pAt,{client:n,options:{appearance:(i=t==null?void 0:t.globalOptions)==null?void 0:i.appearance},children:e})},SEt=z.div`
|
|
1312
|
+
height: 100%;
|
|
1313
|
+
width: 100%;
|
|
1314
|
+
display: flex;
|
|
1315
|
+
align-items: center;
|
|
1316
|
+
justify-content: center;
|
|
1317
|
+
flex-direction: column;
|
|
1318
|
+
`,EEt=({error:e})=>Ae(SEt,{children:[O(Lb,{variant:"h4",children:"An error occurred"}),O(Lb,{variant:"p",color:"--ll-color-on-background-variant1",children:e.message})]}),CEt=new ndt({defaultOptions:{queries:{retry:2,staleTime:1/0,keepPreviousData:!0}}}),kEt=()=>Ae(qY,{children:[O(XJ,{}),O(Fut,{FallbackComponent:EEt,children:O(udt,{children:O(rdt,{client:CEt,children:O(x8,{children:O(AEt,{children:O(Tht,{children:O(E2,{})})})})})})})]});tx.createRoot(document.getElementById("root")).render(O(Z.StrictMode,{children:O(kEt,{})}));export{J_ as $,_t as A,GEt as B,L as C,VEt as D,Mr as E,qY as F,X7 as G,OEt as H,UEt as I,oCt as J,FEt as K,$et as L,Az as M,C2 as N,Cz as O,But as P,KEt as Q,Z as R,Ev as S,Vut as T,JEt as U,h_ as V,T2 as W,mr as X,tCt as Y,eCt as Z,Ji as _,TEt as __vite_legacy_guard,_ht as a,Hut as a0,dy as a1,vn as a2,jEt as a3,uy as a4,DEt as a5,WEt as a6,X8 as a7,N8 as a8,sCt as a9,IEt as aa,Xz as ab,lCt as ac,aCt as ad,$Et as b,qEt as c,YEt as d,Ae as e,ZEt as f,zEt as g,GA as h,iCt as i,O as j,J0 as k,X6 as l,HA as m,BEt as n,PEt as o,Lb as p,nCt as q,v as r,z as s,NEt as t,y8 as u,Q6 as v,HEt as w,Vn as x,MEt as y,oc as z};
|