function Lq(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in e)){const a=Object.getOwnPropertyDescriptor(n,i);a&&Object.defineProperty(e,i,a.get?a:{enumerable:!0,get:()=>n[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"]'))n(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function r(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=r(i);fetch(i.href,a)}})();var iOe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function sl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var oB={exports:{}},ap={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var oU;function Dq(){if(oU)return ap;oU=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,i,a){var s=null;if(a!==void 0&&(s=""+a),i.key!==void 0&&(s=""+i.key),"key"in i){a={};for(var o in i)o!=="key"&&(a[o]=i[o])}else a=i;return i=a.ref,{$$typeof:e,type:n,key:s,ref:i!==void 0?i:null,props:a}}return ap.Fragment=t,ap.jsx=r,ap.jsxs=r,ap}var AU;function Iq(){return AU||(AU=1,oB.exports=Dq()),oB.exports}var F=Iq(),AB={exports:{}},gr={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var lU;function Mq(){if(lU)return gr;lU=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),o=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.activity"),p=Symbol.iterator;function g(Z){return Z===null||typeof Z!="object"?null:(Z=p&&Z[p]||Z["@@iterator"],typeof Z=="function"?Z:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,w={};function b(Z,L,j){this.props=Z,this.context=L,this.refs=w,this.updater=j||y}b.prototype.isReactComponent={},b.prototype.setState=function(Z,L){if(typeof Z!="object"&&typeof Z!="function"&&Z!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,Z,L,"setState")},b.prototype.forceUpdate=function(Z){this.updater.enqueueForceUpdate(this,Z,"forceUpdate")};function E(){}E.prototype=b.prototype;function S(Z,L,j){this.props=Z,this.context=L,this.refs=w,this.updater=j||y}var T=S.prototype=new E;T.constructor=S,m(T,b.prototype),T.isPureReactComponent=!0;var D=Array.isArray;function k(){}var P={H:null,A:null,T:null,S:null},R=Object.prototype.hasOwnProperty;function O(Z,L,j){var K=j.ref;return{$$typeof:e,type:Z,key:L,ref:K!==void 0?K:null,props:j}}function V(Z,L){return O(Z.type,L,Z.props)}function I(Z){return typeof Z=="object"&&Z!==null&&Z.$$typeof===e}function Q(Z){var L={"=":"=0",":":"=2"};return"$"+Z.replace(/[=:]/g,function(j){return L[j]})}var W=/\/+/g;function J(Z,L){return typeof Z=="object"&&Z!==null&&Z.key!=null?Q(""+Z.key):L.toString(36)}function fe(Z){switch(Z.status){case"fulfilled":return Z.value;case"rejected":throw Z.reason;default:switch(typeof Z.status=="string"?Z.then(k,k):(Z.status="pending",Z.then(function(L){Z.status==="pending"&&(Z.status="fulfilled",Z.value=L)},function(L){Z.status==="pending"&&(Z.status="rejected",Z.reason=L)})),Z.status){case"fulfilled":return Z.value;case"rejected":throw Z.reason}}throw Z}function G(Z,L,j,K,q){var re=typeof Z;(re==="undefined"||re==="boolean")&&(Z=null);var he=!1;if(Z===null)he=!0;else switch(re){case"bigint":case"string":case"number":he=!0;break;case"object":switch(Z.$$typeof){case e:case t:he=!0;break;case f:return he=Z._init,G(he(Z._payload),L,j,K,q)}}if(he)return q=q(Z),he=K===""?"."+J(Z,0):K,D(q)?(j="",he!=null&&(j=he.replace(W,"$&/")+"/"),G(q,L,j,"",function(be){return be})):q!=null&&(I(q)&&(q=V(q,j+(q.key==null||Z&&Z.key===q.key?"":(""+q.key).replace(W,"$&/")+"/")+he)),L.push(q)),1;he=0;var Be=K===""?".":K+":";if(D(Z))for(var ae=0;ae<Z.length;ae++)K=Z[ae],re=Be+J(K,ae),he+=G(K,L,j,re,q);else if(ae=g(Z),typeof ae=="function")for(Z=ae.call(Z),ae=0;!(K=Z.next()).done;)K=K.value,re=Be+J(K,ae++),he+=G(K,L,j,re,q);else if(re==="object"){if(typeof Z.then=="function")return G(fe(Z),L,j,K,q);throw L=String(Z),Error("Objects are not valid as a React child (found: "+(L==="[object Object]"?"object with keys {"+Object.keys(Z).join(", ")+"}":L)+"). If you meant to render a collection of children, use an array instead.")}return he}function se(Z,L,j){if(Z==null)return Z;var K=[],q=0;return G(Z,K,"","",function(re){return L.call(j,re,q++)}),K}function ge(Z){if(Z._status===-1){var L=Z._result;L=L(),L.then(function(j){(Z._status===0||Z._status===-1)&&(Z._status=1,Z._result=j)},function(j){(Z._status===0||Z._status===-1)&&(Z._status=2,Z._result=j)}),Z._status===-1&&(Z._status=0,Z._result=L)}if(Z._status===1)return Z._result.default;throw Z._result}var ye=typeof reportError=="function"?reportError:function(Z){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var L=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof Z=="object"&&Z!==null&&typeof Z.message=="string"?String(Z.message):String(Z),error:Z});if(!window.dispatchEvent(L))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",Z);return}console.error(Z)},_e={map:se,forEach:function(Z,L,j){se(Z,function(){L.apply(this,arguments)},j)},count:function(Z){var L=0;return se(Z,function(){L++}),L},toArray:function(Z){return se(Z,function(L){return L})||[]},only:function(Z){if(!I(Z))throw Error("React.Children.only expected to receive a single React element child.");return Z}};return gr.Activity=h,gr.Children=_e,gr.Component=b,gr.Fragment=r,gr.Profiler=i,gr.PureComponent=S,gr.StrictMode=n,gr.Suspense=l,gr.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=P,gr.__COMPILER_RUNTIME={__proto__:null,c:function(Z){return P.H.useMemoCache(Z)}},gr.cache=function(Z){return function(){return Z.apply(null,arguments)}},gr.cacheSignal=function(){return null},gr.cloneElement=function(Z,L,j){if(Z==null)throw Error("The argument must be a React element, but you passed "+Z+".");var K=m({},Z.props),q=Z.key;if(L!=null)for(re in L.key!==void 0&&(q=""+L.key),L)!R.call(L,re)||re==="key"||re==="__self"||re==="__source"||re==="ref"&&L.ref===void 0||(K[re]=L[re]);var re=arguments.length-2;if(re===1)K.children=j;else if(1<re){for(var he=Array(re),Be=0;Be<re;Be++)he[Be]=arguments[Be+2];K.children=he}return O(Z.type,q,K)},gr.createContext=function(Z){return Z={$$typeof:s,_currentValue:Z,_currentValue2:Z,_threadCount:0,Provider:null,Consumer:null},Z.Provider=Z,Z.Consumer={$$typeof:a,_context:Z},Z},gr.createElement=function(Z,L,j){var K,q={},re=null;if(L!=null)for(K in L.key!==void 0&&(re=""+L.key),L)R.call(L,K)&&K!=="key"&&K!=="__self"&&K!=="__source"&&(q[K]=L[K]);var he=arguments.length-2;if(he===1)q.children=j;else if(1<he){for(var Be=Array(he),ae=0;ae<he;ae++)Be[ae]=arguments[ae+2];q.children=Be}if(Z&&Z.defaultProps)for(K in he=Z.defaultProps,he)q[K]===void 0&&(q[K]=he[K]);return O(Z,re,q)},gr.createRef=function(){return{current:null}},gr.forwardRef=function(Z){return{$$typeof:o,render:Z}},gr.isValidElement=I,gr.lazy=function(Z){return{$$typeof:f,_payload:{_status:-1,_result:Z},_init:ge}},gr.memo=function(Z,L){return{$$typeof:c,type:Z,compare:L===void 0?null:L}},gr.startTransition=function(Z){var L=P.T,j={};P.T=j;try{var K=Z(),q=P.S;q!==null&&q(j,K),typeof K=="object"&&K!==null&&typeof K.then=="function"&&K.then(k,ye)}catch(re){ye(re)}finally{L!==null&&j.types!==null&&(L.types=j.types),P.T=L}},gr.unstable_useCacheRefresh=function(){return P.H.useCacheRefresh()},gr.use=function(Z){return P.H.use(Z)},gr.useActionState=function(Z,L,j){return P.H.useActionState(Z,L,j)},gr.useCallback=function(Z,L){return P.H.useCallback(Z,L)},gr.useContext=function(Z){return P.H.useContext(Z)},gr.useDebugValue=function(){},gr.useDeferredValue=function(Z,L){return P.H.useDeferredValue(Z,L)},gr.useEffect=function(Z,L){return P.H.useEffect(Z,L)},gr.useEffectEvent=function(Z){return P.H.useEffectEvent(Z)},gr.useId=function(){return P.H.useId()},gr.useImperativeHandle=function(Z,L,j){return P.H.useImperativeHandle(Z,L,j)},gr.useInsertionEffect=function(Z,L){return P.H.useInsertionEffect(Z,L)},gr.useLayoutEffect=function(Z,L){return P.H.useLayoutEffect(Z,L)},gr.useMemo=function(Z,L){return P.H.useMemo(Z,L)},gr.useOptimistic=function(Z,L){return P.H.useOptimistic(Z,L)},gr.useReducer=function(Z,L,j){return P.H.useReducer(Z,L,j)},gr.useRef=function(Z){return P.H.useRef(Z)},gr.useState=function(Z){return P.H.useState(Z)},gr.useSyncExternalStore=function(Z,L,j){return P.H.useSyncExternalStore(Z,L,j)},gr.useTransition=function(){return P.H.useTransition()},gr.version="19.2.0",gr}var cU;function eg(){return cU||(cU=1,AB.exports=Mq()),AB.exports}var N=eg();const x0=sl(N),Pq=Lq({__proto__:null,default:x0},[N]);var lB={exports:{}},sp={},cB={exports:{}},uB={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var uU;function kq(){return uU||(uU=1,(function(e){function t(G,se){var ge=G.length;G.push(se);e:for(;0<ge;){var ye=ge-1>>>1,_e=G[ye];if(0<i(_e,se))G[ye]=se,G[ge]=_e,ge=ye;else break e}}function r(G){return G.length===0?null:G[0]}function n(G){if(G.length===0)return null;var se=G[0],ge=G.pop();if(ge!==se){G[0]=ge;e:for(var ye=0,_e=G.length,Z=_e>>>1;ye<Z;){var L=2*(ye+1)-1,j=G[L],K=L+1,q=G[K];if(0>i(j,ge))K<_e&&0>i(q,j)?(G[ye]=q,G[K]=ge,ye=K):(G[ye]=j,G[L]=ge,ye=L);else if(K<_e&&0>i(q,ge))G[ye]=q,G[K]=ge,ye=K;else break e}}return se}function i(G,se){var ge=G.sortIndex-se.sortIndex;return ge!==0?ge:G.id-se.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var s=Date,o=s.now();e.unstable_now=function(){return s.now()-o}}var l=[],c=[],f=1,h=null,p=3,g=!1,y=!1,m=!1,w=!1,b=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,S=typeof setImmediate<"u"?setImmediate:null;function T(G){for(var se=r(c);se!==null;){if(se.callback===null)n(c);else if(se.startTime<=G)n(c),se.sortIndex=se.expirationTime,t(l,se);else break;se=r(c)}}function D(G){if(m=!1,T(G),!y)if(r(l)!==null)y=!0,k||(k=!0,Q());else{var se=r(c);se!==null&&fe(D,se.startTime-G)}}var k=!1,P=-1,R=5,O=-1;function V(){return w?!0:!(e.unstable_now()-O<R)}function I(){if(w=!1,k){var G=e.unstable_now();O=G;var se=!0;try{e:{y=!1,m&&(m=!1,E(P),P=-1),g=!0;var ge=p;try{t:{for(T(G),h=r(l);h!==null&&!(h.expirationTime>G&&V());){var ye=h.callback;if(typeof ye=="function"){h.callback=null,p=h.priorityLevel;var _e=ye(h.expirationTime<=G);if(G=e.unstable_now(),typeof _e=="function"){h.callback=_e,T(G),se=!0;break t}h===r(l)&&n(l),T(G)}else n(l);h=r(l)}if(h!==null)se=!0;else{var Z=r(c);Z!==null&&fe(D,Z.startTime-G),se=!1}}break e}finally{h=null,p=ge,g=!1}se=void 0}}finally{se?Q():k=!1}}}var Q;if(typeof S=="function")Q=function(){S(I)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,J=W.port2;W.port1.onmessage=I,Q=function(){J.postMessage(null)}}else Q=function(){b(I,0)};function fe(G,se){P=b(function(){G(e.unstable_now())},se)}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(G){G.callback=null},e.unstable_forceFrameRate=function(G){0>G||125<G?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<G?Math.floor(1e3/G):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_next=function(G){switch(p){case 1:case 2:case 3:var se=3;break;default:se=p}var ge=p;p=se;try{return G()}finally{p=ge}},e.unstable_requestPaint=function(){w=!0},e.unstable_runWithPriority=function(G,se){switch(G){case 1:case 2:case 3:case 4:case 5:break;default:G=3}var ge=p;p=G;try{return se()}finally{p=ge}},e.unstable_scheduleCallback=function(G,se,ge){var ye=e.unstable_now();switch(typeof ge=="object"&&ge!==null?(ge=ge.delay,ge=typeof ge=="number"&&0<ge?ye+ge:ye):ge=ye,G){case 1:var _e=-1;break;case 2:_e=250;break;case 5:_e=1073741823;break;case 4:_e=1e4;break;default:_e=5e3}return _e=ge+_e,G={id:f++,callback:se,priorityLevel:G,startTime:ge,expirationTime:_e,sortIndex:-1},ge>ye?(G.sortIndex=ge,t(c,G),r(l)===null&&G===r(c)&&(m?(E(P),P=-1):m=!0,fe(D,ge-ye))):(G.sortIndex=_e,t(l,G),y||g||(y=!0,k||(k=!0,Q()))),G},e.unstable_shouldYield=V,e.unstable_wrapCallback=function(G){var se=p;return function(){var ge=p;p=se;try{return G.apply(this,arguments)}finally{p=ge}}}})(uB)),uB}var fU;function Qq(){return fU||(fU=1,cB.exports=kq()),cB.exports}var fB={exports:{}},rs={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var hU;function Rq(){if(hU)return rs;hU=1;var e=eg();function t(l){var c="https://react.dev/errors/"+l;if(1<arguments.length){c+="?args[]="+encodeURIComponent(arguments[1]);for(var f=2;f<arguments.length;f++)c+="&args[]="+encodeURIComponent(arguments[f])}return"Minified React error #"+l+"; visit "+c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var n={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},i=Symbol.for("react.portal");function a(l,c,f){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:h==null?null:""+h,children:l,containerInfo:c,implementation:f}}var s=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function o(l,c){if(l==="font")return"";if(typeof c=="string")return c==="use-credentials"?c:""}return rs.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=n,rs.createPortal=function(l,c){var f=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!c||c.nodeType!==1&&c.nodeType!==9&&c.nodeType!==11)throw Error(t(299));return a(l,c,null,f)},rs.flushSync=function(l){var c=s.T,f=n.p;try{if(s.T=null,n.p=2,l)return l()}finally{s.T=c,n.p=f,n.d.f()}},rs.preconnect=function(l,c){typeof l=="string"&&(c?(c=c.crossOrigin,c=typeof c=="string"?c==="use-credentials"?c:"":void 0):c=null,n.d.C(l,c))},rs.prefetchDNS=function(l){typeof l=="string"&&n.d.D(l)},rs.preinit=function(l,c){if(typeof l=="string"&&c&&typeof c.as=="string"){var f=c.as,h=o(f,c.crossOrigin),p=typeof c.integrity=="string"?c.integrity:void 0,g=typeof c.fetchPriority=="string"?c.fetchPriority:void 0;f==="style"?n.d.S(l,typeof c.precedence=="string"?c.precedence:void 0,{crossOrigin:h,integrity:p,fetchPriority:g}):f==="script"&&n.d.X(l,{crossOrigin:h,integrity:p,fetchPriority:g,nonce:typeof c.nonce=="string"?c.nonce:void 0})}},rs.preinitModule=function(l,c){if(typeof l=="string")if(typeof c=="object"&&c!==null){if(c.as==null||c.as==="script"){var f=o(c.as,c.crossOrigin);n.d.M(l,{crossOrigin:f,integrity:typeof c.integrity=="string"?c.integrity:void 0,nonce:typeof c.nonce=="string"?c.nonce:void 0})}}else c==null&&n.d.M(l)},rs.preload=function(l,c){if(typeof l=="string"&&typeof c=="object"&&c!==null&&typeof c.as=="string"){var f=c.as,h=o(f,c.crossOrigin);n.d.L(l,f,{crossOrigin:h,integrity:typeof c.integrity=="string"?c.integrity:void 0,nonce:typeof c.nonce=="string"?c.nonce:void 0,type:typeof c.type=="string"?c.type:void 0,fetchPriority:typeof c.fetchPriority=="string"?c.fetchPriority:void 0,referrerPolicy:typeof c.referrerPolicy=="string"?c.referrerPolicy:void 0,imageSrcSet:typeof c.imageSrcSet=="string"?c.imageSrcSet:void 0,imageSizes:typeof c.imageSizes=="string"?c.imageSizes:void 0,media:typeof c.media=="string"?c.media:void 0})}},rs.preloadModule=function(l,c){if(typeof l=="string")if(c){var f=o(c.as,c.crossOrigin);n.d.m(l,{as:typeof c.as=="string"&&c.as!=="script"?c.as:void 0,crossOrigin:f,integrity:typeof c.integrity=="string"?c.integrity:void 0})}else n.d.m(l)},rs.requestFormReset=function(l){n.d.r(l)},rs.unstable_batchedUpdates=function(l,c){return l(c)},rs.useFormState=function(l,c,f){return s.H.useFormState(l,c,f)},rs.useFormStatus=function(){return s.H.useHostTransitionStatus()},rs.version="19.2.0",rs}var dU;function Tk(){if(dU)return fB.exports;dU=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),fB.exports=Rq(),fB.exports}/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var gU;function jq(){if(gU)return sp;gU=1;var e=Qq(),t=eg(),r=Tk();function n(A){var u="https://react.dev/errors/"+A;if(1<arguments.length){u+="?args[]="+encodeURIComponent(arguments[1]);for(var d=2;d<arguments.length;d++)u+="&args[]="+encodeURIComponent(arguments[d])}return"Minified React error #"+A+"; visit "+u+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(A){return!(!A||A.nodeType!==1&&A.nodeType!==9&&A.nodeType!==11)}function a(A){var u=A,d=A;if(A.alternate)for(;u.return;)u=u.return;else{A=u;do u=A,(u.flags&4098)!==0&&(d=u.return),A=u.return;while(A)}return u.tag===3?d:null}function s(A){if(A.tag===13){var u=A.memoizedState;if(u===null&&(A=A.alternate,A!==null&&(u=A.memoizedState)),u!==null)return u.dehydrated}return null}function o(A){if(A.tag===31){var u=A.memoizedState;if(u===null&&(A=A.alternate,A!==null&&(u=A.memoizedState)),u!==null)return u.dehydrated}return null}function l(A){if(a(A)!==A)throw Error(n(188))}function c(A){var u=A.alternate;if(!u){if(u=a(A),u===null)throw Error(n(188));return u!==A?null:A}for(var d=A,v=u;;){var B=d.return;if(B===null)break;var _=B.alternate;if(_===null){if(v=B.return,v!==null){d=v;continue}break}if(B.child===_.child){for(_=B.child;_;){if(_===d)return l(B),A;if(_===v)return l(B),u;_=_.sibling}throw Error(n(188))}if(d.return!==v.return)d=B,v=_;else{for(var z=!1,ie=B.child;ie;){if(ie===d){z=!0,d=B,v=_;break}if(ie===v){z=!0,v=B,d=_;break}ie=ie.sibling}if(!z){for(ie=_.child;ie;){if(ie===d){z=!0,d=_,v=B;break}if(ie===v){z=!0,v=_,d=B;break}ie=ie.sibling}if(!z)throw Error(n(189))}}if(d.alternate!==v)throw Error(n(190))}if(d.tag!==3)throw Error(n(188));return d.stateNode.current===d?A:u}function f(A){var u=A.tag;if(u===5||u===26||u===27||u===6)return A;for(A=A.child;A!==null;){if(u=f(A),u!==null)return u;A=A.sibling}return null}var h=Object.assign,p=Symbol.for("react.element"),g=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),E=Symbol.for("react.consumer"),S=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),O=Symbol.for("react.activity"),V=Symbol.for("react.memo_cache_sentinel"),I=Symbol.iterator;function Q(A){return A===null||typeof A!="object"?null:(A=I&&A[I]||A["@@iterator"],typeof A=="function"?A:null)}var W=Symbol.for("react.client.reference");function J(A){if(A==null)return null;if(typeof A=="function")return A.$$typeof===W?null:A.displayName||A.name||null;if(typeof A=="string")return A;switch(A){case m:return"Fragment";case b:return"Profiler";case w:return"StrictMode";case D:return"Suspense";case k:return"SuspenseList";case O:return"Activity"}if(typeof A=="object")switch(A.$$typeof){case y:return"Portal";case S:return A.displayName||"Context";case E:return(A._context.displayName||"Context")+".Consumer";case T:var u=A.render;return A=A.displayName,A||(A=u.displayName||u.name||"",A=A!==""?"ForwardRef("+A+")":"ForwardRef"),A;case P:return u=A.displayName||null,u!==null?u:J(A.type)||"Memo";case R:u=A._payload,A=A._init;try{return J(A(u))}catch{}}return null}var fe=Array.isArray,G=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,se=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ge={pending:!1,data:null,method:null,action:null},ye=[],_e=-1;function Z(A){return{current:A}}function L(A){0>_e||(A.current=ye[_e],ye[_e]=null,_e--)}function j(A,u){_e++,ye[_e]=A.current,A.current=u}var K=Z(null),q=Z(null),re=Z(null),he=Z(null);function Be(A,u){switch(j(re,u),j(q,A),j(K,null),u.nodeType){case 9:case 11:A=(A=u.documentElement)&&(A=A.namespaceURI)?OO(A):0;break;default:if(A=u.tagName,u=u.namespaceURI)u=OO(u),A=UO(u,A);else switch(A){case"svg":A=1;break;case"math":A=2;break;default:A=0}}L(K),j(K,A)}function ae(){L(K),L(q),L(re)}function be(A){A.memoizedState!==null&&j(he,A);var u=K.current,d=UO(u,A.type);u!==d&&(j(q,A),j(K,d))}function ke(A){q.current===A&&(L(K),L(q)),he.current===A&&(L(he),tp._currentValue=ge)}var Fe,st;function Ge(A){if(Fe===void 0)try{throw Error()}catch(d){var u=d.stack.trim().match(/\n( *(at )?)/);Fe=u&&u[1]||"",st=-1<d.stack.indexOf(`
    at`)?" (<anonymous>)":-1<d.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Fe+A+st}var le=!1;function $e(A,u){if(!A||le)return"";le=!0;var d=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var v={DetermineComponentFrameRoot:function(){try{if(u){var it=function(){throw Error()};if(Object.defineProperty(it.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(it,[])}catch(qe){var Ve=qe}Reflect.construct(A,[],it)}else{try{it.call()}catch(qe){Ve=qe}A.call(it.prototype)}}else{try{throw Error()}catch(qe){Ve=qe}(it=A())&&typeof it.catch=="function"&&it.catch(function(){})}}catch(qe){if(qe&&Ve&&typeof qe.stack=="string")return[qe.stack,Ve.stack]}return[null,null]}};v.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var B=Object.getOwnPropertyDescriptor(v.DetermineComponentFrameRoot,"name");B&&B.configurable&&Object.defineProperty(v.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var _=v.DetermineComponentFrameRoot(),z=_[0],ie=_[1];if(z&&ie){var Ce=z.split(`
`),Ke=ie.split(`
`);for(B=v=0;v<Ce.length&&!Ce[v].includes("DetermineComponentFrameRoot");)v++;for(;B<Ke.length&&!Ke[B].includes("DetermineComponentFrameRoot");)B++;if(v===Ce.length||B===Ke.length)for(v=Ce.length-1,B=Ke.length-1;1<=v&&0<=B&&Ce[v]!==Ke[B];)B--;for(;1<=v&&0<=B;v--,B--)if(Ce[v]!==Ke[B]){if(v!==1||B!==1)do if(v--,B--,0>B||Ce[v]!==Ke[B]){var Je=`
`+Ce[v].replace(" at new "," at ");return A.displayName&&Je.includes("<anonymous>")&&(Je=Je.replace("<anonymous>",A.displayName)),Je}while(1<=v&&0<=B);break}}}finally{le=!1,Error.prepareStackTrace=d}return(d=A?A.displayName||A.name:"")?Ge(d):""}function tt(A,u){switch(A.tag){case 26:case 27:case 5:return Ge(A.type);case 16:return Ge("Lazy");case 13:return A.child!==u&&u!==null?Ge("Suspense Fallback"):Ge("Suspense");case 19:return Ge("SuspenseList");case 0:case 15:return $e(A.type,!1);case 11:return $e(A.type.render,!1);case 1:return $e(A.type,!0);case 31:return Ge("Activity");default:return""}}function wt(A){try{var u="",d=null;do u+=tt(A,d),d=A,A=A.return;while(A);return u}catch(v){return`
Error generating stack: `+v.message+`
`+v.stack}}var nt=Object.prototype.hasOwnProperty,Tt=e.unstable_scheduleCallback,yt=e.unstable_cancelCallback,Ht=e.unstable_shouldYield,It=e.unstable_requestPaint,Vt=e.unstable_now,cr=e.unstable_getCurrentPriorityLevel,Jt=e.unstable_ImmediatePriority,ur=e.unstable_UserBlockingPriority,rr=e.unstable_NormalPriority,Et=e.unstable_LowPriority,nr=e.unstable_IdlePriority,Ot=e.log,dn=e.unstable_setDisableYieldValue,or=null,Kt=null;function Xt(A){if(typeof Ot=="function"&&dn(A),Kt&&typeof Kt.setStrictMode=="function")try{Kt.setStrictMode(or,A)}catch{}}var vr=Math.clz32?Math.clz32:Gt,Rt=Math.log,Nr=Math.LN2;function Gt(A){return A>>>=0,A===0?32:31-(Rt(A)/Nr|0)|0}var $t=256,Rr=262144,sr=4194304;function mt(A){var u=A&42;if(u!==0)return u;switch(A&-A){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return A&261888;case 262144:case 524288:case 1048576:case 2097152:return A&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return A&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return A}}function Zt(A,u,d){var v=A.pendingLanes;if(v===0)return 0;var B=0,_=A.suspendedLanes,z=A.pingedLanes;A=A.warmLanes;var ie=v&134217727;return ie!==0?(v=ie&~_,v!==0?B=mt(v):(z&=ie,z!==0?B=mt(z):d||(d=ie&~A,d!==0&&(B=mt(d))))):(ie=v&~_,ie!==0?B=mt(ie):z!==0?B=mt(z):d||(d=v&~A,d!==0&&(B=mt(d)))),B===0?0:u!==0&&u!==B&&(u&_)===0&&(_=B&-B,d=u&-u,_>=d||_===32&&(d&4194048)!==0)?u:B}function Pi(A,u){return(A.pendingLanes&~(A.suspendedLanes&~A.pingedLanes)&u)===0}function fr(A,u){switch(A){case 1:case 2:case 4:case 8:case 64:return u+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return u+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function In(){var A=sr;return sr<<=1,(sr&62914560)===0&&(sr=4194304),A}function fa(A){for(var u=[],d=0;31>d;d++)u.push(A);return u}function Mt(A,u){A.pendingLanes|=u,u!==268435456&&(A.suspendedLanes=0,A.pingedLanes=0,A.warmLanes=0)}function Ja(A,u,d,v,B,_){var z=A.pendingLanes;A.pendingLanes=d,A.suspendedLanes=0,A.pingedLanes=0,A.warmLanes=0,A.expiredLanes&=d,A.entangledLanes&=d,A.errorRecoveryDisabledLanes&=d,A.shellSuspendCounter=0;var ie=A.entanglements,Ce=A.expirationTimes,Ke=A.hiddenUpdates;for(d=z&~d;0<d;){var Je=31-vr(d),it=1<<Je;ie[Je]=0,Ce[Je]=-1;var Ve=Ke[Je];if(Ve!==null)for(Ke[Je]=null,Je=0;Je<Ve.length;Je++){var qe=Ve[Je];qe!==null&&(qe.lane&=-536870913)}d&=~it}v!==0&&Fa(A,v,0),_!==0&&B===0&&A.tag!==0&&(A.suspendedLanes|=_&~(z&~u))}function Fa(A,u,d){A.pendingLanes|=u,A.suspendedLanes&=~u;var v=31-vr(u);A.entangledLanes|=u,A.entanglements[v]=A.entanglements[v]|1073741824|d&261930}function ii(A,u){var d=A.entangledLanes|=u;for(A=A.entanglements;d;){var v=31-vr(d),B=1<<v;B&u|A[v]&u&&(A[v]|=u),d&=~B}}function fi(A,u){var d=u&-u;return d=(d&42)!==0?1:zr(d),(d&(A.suspendedLanes|u))!==0?0:d}function zr(A){switch(A){case 2:A=1;break;case 8:A=4;break;case 32:A=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:A=128;break;case 268435456:A=134217728;break;default:A=0}return A}function gn(A){return A&=-A,2<A?8<A?(A&134217727)!==0?32:268435456:8:2}function ee(){var A=se.p;return A!==0?A:(A=window.event,A===void 0?32:eU(A.type))}function ve(A,u){var d=se.p;try{return se.p=A,u()}finally{se.p=d}}var Ae=Math.random().toString(36).slice(2),ce="__reactFiber$"+Ae,de="__reactProps$"+Ae,we="__reactContainer$"+Ae,Te="__reactEvents$"+Ae,je="__reactListeners$"+Ae,Ne="__reactHandles$"+Ae,Ie="__reactResources$"+Ae,Pe="__reactMarker$"+Ae;function ot(A){delete A[ce],delete A[de],delete A[Te],delete A[je],delete A[Ne]}function ft(A){var u=A[ce];if(u)return u;for(var d=A.parentNode;d;){if(u=d[we]||d[ce]){if(d=u.alternate,u.child!==null||d!==null&&d.child!==null)for(A=kO(A);A!==null;){if(d=A[ce])return d;A=kO(A)}return u}A=d,d=A.parentNode}return null}function pt(A){if(A=A[ce]||A[we]){var u=A.tag;if(u===5||u===6||u===13||u===31||u===26||u===27||u===3)return A}return null}function ut(A){var u=A.tag;if(u===5||u===26||u===27||u===6)return A.stateNode;throw Error(n(33))}function dt(A){var u=A[Ie];return u||(u=A[Ie]={hoistableStyles:new Map,hoistableScripts:new Map}),u}function _t(A){A[Pe]=!0}var $r=new Set,br={};function tn(A,u){Ta(A,u),Ta(A+"Capture",u)}function Ta(A,u){for(br[A]=u,A=0;A<u.length;A++)$r.add(u[A])}var oo=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Ao={},gs={};function ul(A){return nt.call(gs,A)?!0:nt.call(Ao,A)?!1:oo.test(A)?gs[A]=!0:(Ao[A]=!0,!1)}function Mn(A,u,d){if(ul(u))if(d===null)A.removeAttribute(u);else{switch(typeof d){case"undefined":case"function":case"symbol":A.removeAttribute(u);return;case"boolean":var v=u.toLowerCase().slice(0,5);if(v!=="data-"&&v!=="aria-"){A.removeAttribute(u);return}}A.setAttribute(u,""+d)}}function bA(A,u,d){if(d===null)A.removeAttribute(u);else{switch(typeof d){case"undefined":case"function":case"symbol":case"boolean":A.removeAttribute(u);return}A.setAttribute(u,""+d)}}function lo(A,u,d,v){if(v===null)A.removeAttribute(d);else{switch(typeof v){case"undefined":case"function":case"symbol":case"boolean":A.removeAttribute(d);return}A.setAttributeNS(u,d,""+v)}}function jr(A){switch(typeof A){case"bigint":case"boolean":case"number":case"string":case"undefined":return A;case"object":return A;default:return""}}function Uf(A){var u=A.type;return(A=A.nodeName)&&A.toLowerCase()==="input"&&(u==="checkbox"||u==="radio")}function Ro(A,u,d){var v=Object.getOwnPropertyDescriptor(A.constructor.prototype,u);if(!A.hasOwnProperty(u)&&typeof v<"u"&&typeof v.get=="function"&&typeof v.set=="function"){var B=v.get,_=v.set;return Object.defineProperty(A,u,{configurable:!0,get:function(){return B.call(this)},set:function(z){d=""+z,_.call(this,z)}}),Object.defineProperty(A,u,{enumerable:v.enumerable}),{getValue:function(){return d},setValue:function(z){d=""+z},stopTracking:function(){A._valueTracker=null,delete A[u]}}}}function fl(A){if(!A._valueTracker){var u=Uf(A)?"checked":"value";A._valueTracker=Ro(A,u,""+A[u])}}function Nf(A){if(!A)return!1;var u=A._valueTracker;if(!u)return!0;var d=u.getValue(),v="";return A&&(v=Uf(A)?A.checked?"true":"false":A.value),A=v,A!==d?(u.setValue(A),!0):!1}function Oa(A){if(A=A||(typeof document<"u"?document:void 0),typeof A>"u")return null;try{return A.activeElement||A.body}catch{return A.body}}var _i=/[\n"\\]/g;function hi(A){return A.replace(_i,function(u){return"\\"+u.charCodeAt(0).toString(16)+" "})}function Au(A,u,d,v,B,_,z,ie){A.name="",z!=null&&typeof z!="function"&&typeof z!="symbol"&&typeof z!="boolean"?A.type=z:A.removeAttribute("type"),u!=null?z==="number"?(u===0&&A.value===""||A.value!=u)&&(A.value=""+jr(u)):A.value!==""+jr(u)&&(A.value=""+jr(u)):z!=="submit"&&z!=="reset"||A.removeAttribute("value"),u!=null?Lf(A,z,jr(u)):d!=null?Lf(A,z,jr(d)):v!=null&&A.removeAttribute("value"),B==null&&_!=null&&(A.defaultChecked=!!_),B!=null&&(A.checked=B&&typeof B!="function"&&typeof B!="symbol"),ie!=null&&typeof ie!="function"&&typeof ie!="symbol"&&typeof ie!="boolean"?A.name=""+jr(ie):A.removeAttribute("name")}function cd(A,u,d,v,B,_,z,ie){if(_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"&&(A.type=_),u!=null||d!=null){if(!(_!=="submit"&&_!=="reset"||u!=null)){fl(A);return}d=d!=null?""+jr(d):"",u=u!=null?""+jr(u):d,ie||u===A.value||(A.value=u),A.defaultValue=u}v=v??B,v=typeof v!="function"&&typeof v!="symbol"&&!!v,A.checked=ie?A.checked:!!v,A.defaultChecked=!!v,z!=null&&typeof z!="function"&&typeof z!="symbol"&&typeof z!="boolean"&&(A.name=z),fl(A)}function Lf(A,u,d){u==="number"&&Oa(A.ownerDocument)===A||A.defaultValue===""+d||(A.defaultValue=""+d)}function Ua(A,u,d,v){if(A=A.options,u){u={};for(var B=0;B<d.length;B++)u["$"+d[B]]=!0;for(d=0;d<A.length;d++)B=u.hasOwnProperty("$"+A[d].value),A[d].selected!==B&&(A[d].selected=B),B&&v&&(A[d].defaultSelected=!0)}else{for(d=""+jr(d),u=null,B=0;B<A.length;B++){if(A[B].value===d){A[B].selected=!0,v&&(A[B].defaultSelected=!0);return}u!==null||A[B].disabled||(u=A[B])}u!==null&&(u.selected=!0)}}function Df(A,u,d){if(u!=null&&(u=""+jr(u),u!==A.value&&(A.value=u),d==null)){A.defaultValue!==u&&(A.defaultValue=u);return}A.defaultValue=d!=null?""+jr(d):""}function If(A,u,d,v){if(u==null){if(v!=null){if(d!=null)throw Error(n(92));if(fe(v)){if(1<v.length)throw Error(n(93));v=v[0]}d=v}d==null&&(d=""),u=d}d=jr(u),A.defaultValue=d,v=A.textContent,v===d&&v!==""&&v!==null&&(A.value=v),fl(A)}function co(A,u){if(u){var d=A.firstChild;if(d&&d===A.lastChild&&d.nodeType===3){d.nodeValue=u;return}}A.textContent=u}var Xl=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function ud(A,u,d){var v=u.indexOf("--")===0;d==null||typeof d=="boolean"||d===""?v?A.setProperty(u,""):u==="float"?A.cssFloat="":A[u]="":v?A.setProperty(u,d):typeof d!="number"||d===0||Xl.has(u)?u==="float"?A.cssFloat=d:A[u]=(""+d).trim():A[u]=d+"px"}function fd(A,u,d){if(u!=null&&typeof u!="object")throw Error(n(62));if(A=A.style,d!=null){for(var v in d)!d.hasOwnProperty(v)||u!=null&&u.hasOwnProperty(v)||(v.indexOf("--")===0?A.setProperty(v,""):v==="float"?A.cssFloat="":A[v]="");for(var B in u)v=u[B],u.hasOwnProperty(B)&&d[B]!==v&&ud(A,B,v)}else for(var _ in u)u.hasOwnProperty(_)&&ud(A,_,u[_])}function Mf(A){if(A.indexOf("-")===-1)return!1;switch(A){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 Pf=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),hd=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Za(A){return hd.test(""+A)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":A}function uo(){}var BA=null;function Jl(A){return A=A.target||A.srcElement||window,A.correspondingUseElement&&(A=A.correspondingUseElement),A.nodeType===3?A.parentNode:A}var hl=null,er=null;function dd(A){var u=pt(A);if(u&&(A=u.stateNode)){var d=A[de]||null;e:switch(A=u.stateNode,u.type){case"input":if(Au(A,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name),u=d.name,d.type==="radio"&&u!=null){for(d=A;d.parentNode;)d=d.parentNode;for(d=d.querySelectorAll('input[name="'+hi(""+u)+'"][type="radio"]'),u=0;u<d.length;u++){var v=d[u];if(v!==A&&v.form===A.form){var B=v[de]||null;if(!B)throw Error(n(90));Au(v,B.value,B.defaultValue,B.defaultValue,B.checked,B.defaultChecked,B.type,B.name)}}for(u=0;u<d.length;u++)v=d[u],v.form===A.form&&Nf(v)}break e;case"textarea":Df(A,d.value,d.defaultValue);break e;case"select":u=d.value,u!=null&&Ua(A,!!d.multiple,u,!1)}}}var kf=!1;function gd(A,u,d){if(kf)return A(u,d);kf=!0;try{var v=A(u);return v}finally{if(kf=!1,(hl!==null||er!==null)&&(Yv(),hl&&(u=hl,A=er,er=hl=null,dd(u),A)))for(u=0;u<A.length;u++)dd(A[u])}}function ps(A,u){var d=A.stateNode;if(d===null)return null;var v=d[de]||null;if(v===null)return null;d=v[u];e:switch(u){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(v=!v.disabled)||(A=A.type,v=!(A==="button"||A==="input"||A==="select"||A==="textarea")),A=!v;break e;default:A=!1}if(A)return null;if(d&&typeof d!="function")throw Error(n(231,u,typeof d));return d}var Yi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Qf=!1;if(Yi)try{var Zl={};Object.defineProperty(Zl,"passive",{get:function(){Qf=!0}}),window.addEventListener("test",Zl,Zl),window.removeEventListener("test",Zl,Zl)}catch{Qf=!1}var vs=null,ec=null,jo=null;function pd(){if(jo)return jo;var A,u=ec,d=u.length,v,B="value"in vs?vs.value:vs.textContent,_=B.length;for(A=0;A<d&&u[A]===B[A];A++);var z=d-A;for(v=1;v<=z&&u[d-v]===B[_-v];v++);return jo=B.slice(A,1<v?1-v:void 0)}function Ls(A){var u=A.keyCode;return"charCode"in A?(A=A.charCode,A===0&&u===13&&(A=13)):A=u,A===10&&(A=13),32<=A||A===13?A:0}function lu(){return!0}function cu(){return!1}function ki(A){function u(d,v,B,_,z){this._reactName=d,this._targetInst=B,this.type=v,this.nativeEvent=_,this.target=z,this.currentTarget=null;for(var ie in A)A.hasOwnProperty(ie)&&(d=A[ie],this[ie]=d?d(_):_[ie]);return this.isDefaultPrevented=(_.defaultPrevented!=null?_.defaultPrevented:_.returnValue===!1)?lu:cu,this.isPropagationStopped=cu,this}return h(u.prototype,{preventDefault:function(){this.defaultPrevented=!0;var d=this.nativeEvent;d&&(d.preventDefault?d.preventDefault():typeof d.returnValue!="unknown"&&(d.returnValue=!1),this.isDefaultPrevented=lu)},stopPropagation:function(){var d=this.nativeEvent;d&&(d.stopPropagation?d.stopPropagation():typeof d.cancelBubble!="unknown"&&(d.cancelBubble=!0),this.isPropagationStopped=lu)},persist:function(){},isPersistent:lu}),u}var Ho={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(A){return A.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ds=ki(Ho),CA=h({},Ho,{view:0,detail:0}),uu=ki(CA),tc,EA,_A,rc=h({},CA,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ar,button:0,buttons:0,relatedTarget:function(A){return A.relatedTarget===void 0?A.fromElement===A.srcElement?A.toElement:A.fromElement:A.relatedTarget},movementX:function(A){return"movementX"in A?A.movementX:(A!==_A&&(_A&&A.type==="mousemove"?(tc=A.screenX-_A.screenX,EA=A.screenY-_A.screenY):EA=tc=0,_A=A),tc)},movementY:function(A){return"movementY"in A?A.movementY:EA}}),Rf=ki(rc),SA=h({},rc,{dataTransfer:0}),FA=ki(SA),vd=h({},CA,{relatedTarget:0}),TA=ki(vd),md=h({},Ho,{animationName:0,elapsedTime:0,pseudoElement:0}),U=ki(md),Y=h({},Ho,{clipboardData:function(A){return"clipboardData"in A?A.clipboardData:window.clipboardData}}),xe=ki(Y),Ee=h({},Ho,{data:0}),Le=ki(Ee),Ze={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},At={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"},Ut={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kt(A){var u=this.nativeEvent;return u.getModifierState?u.getModifierState(A):(A=Ut[A])?!!u[A]:!1}function ar(){return kt}var hr=h({},CA,{key:function(A){if(A.key){var u=Ze[A.key]||A.key;if(u!=="Unidentified")return u}return A.type==="keypress"?(A=Ls(A),A===13?"Enter":String.fromCharCode(A)):A.type==="keydown"||A.type==="keyup"?At[A.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ar,charCode:function(A){return A.type==="keypress"?Ls(A):0},keyCode:function(A){return A.type==="keydown"||A.type==="keyup"?A.keyCode:0},which:function(A){return A.type==="keypress"?Ls(A):A.type==="keydown"||A.type==="keyup"?A.keyCode:0}}),Lr=ki(hr),Pn=h({},rc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ai=ki(Pn),pn=h({},CA,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ar}),Si=ki(pn),di=h({},Ho,{propertyName:0,elapsedTime:0,pseudoElement:0}),$i=ki(di),OA=h({},rc,{deltaX:function(A){return"deltaX"in A?A.deltaX:"wheelDeltaX"in A?-A.wheelDeltaX:0},deltaY:function(A){return"deltaY"in A?A.deltaY:"wheelDeltaY"in A?-A.wheelDeltaY:"wheelDelta"in A?-A.wheelDelta:0},deltaZ:0,deltaMode:0}),fo=ki(OA),UA=h({},Ho,{newState:0,oldState:0}),jf=ki(UA),fu=[9,13,27,32],Ko=Yi&&"CompositionEvent"in window,ho=null;Yi&&"documentMode"in document&&(ho=document.documentMode);var nc=Yi&&"TextEvent"in window&&!ho,NA=Yi&&(!Ko||ho&&8<ho&&11>=ho),Qi=" ",dl=!1;function gl(A,u){switch(A){case"keyup":return fu.indexOf(u.keyCode)!==-1;case"keydown":return u.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hu(A){return A=A.detail,typeof A=="object"&&"data"in A?A.data:null}var zo=!1;function Na(A,u){switch(A){case"compositionend":return hu(u);case"keypress":return u.which!==32?null:(dl=!0,Qi);case"textInput":return A=u.data,A===Qi&&dl?null:A;default:return null}}function LA(A,u){if(zo)return A==="compositionend"||!Ko&&gl(A,u)?(A=pd(),jo=ec=vs=null,zo=!1,A):null;switch(A){case"paste":return null;case"keypress":if(!(u.ctrlKey||u.altKey||u.metaKey)||u.ctrlKey&&u.altKey){if(u.char&&1<u.char.length)return u.char;if(u.which)return String.fromCharCode(u.which)}return null;case"compositionend":return NA&&u.locale!=="ko"?null:u.data;default:return null}}var du={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 Hf(A){var u=A&&A.nodeName&&A.nodeName.toLowerCase();return u==="input"?!!du[A.type]:u==="textarea"}function ms(A,u,d,v){hl?er?er.push(v):er=[v]:hl=v,u=rm(u,"onChange"),0<u.length&&(d=new Ds("onChange","change",null,d,v),A.push({event:d,listeners:u}))}var go=null,DA=null;function Kf(A){CO(A,0)}function po(A){var u=ut(A);if(Nf(u))return A}function pl(A,u){if(A==="change")return u}var es=!1;if(Yi){var La;if(Yi){var Vo="oninput"in document;if(!Vo){var Go=document.createElement("div");Go.setAttribute("oninput","return;"),Vo=typeof Go.oninput=="function"}La=Vo}else La=!1;es=La&&(!document.documentMode||9<document.documentMode)}function IA(){go&&(go.detachEvent("onpropertychange",gu),DA=go=null)}function gu(A){if(A.propertyName==="value"&&po(DA)){var u=[];ms(u,DA,A,Jl(A)),gd(Kf,u)}}function pu(A,u,d){A==="focusin"?(IA(),go=u,DA=d,go.attachEvent("onpropertychange",gu)):A==="focusout"&&IA()}function si(A){if(A==="selectionchange"||A==="keyup"||A==="keydown")return po(DA)}function yd(A,u){if(A==="click")return po(u)}function qo(A,u){if(A==="input"||A==="change")return po(u)}function Wo(A,u){return A===u&&(A!==0||1/A===1/u)||A!==A&&u!==u}var Xi=typeof Object.is=="function"?Object.is:Wo;function MA(A,u){if(Xi(A,u))return!0;if(typeof A!="object"||A===null||typeof u!="object"||u===null)return!1;var d=Object.keys(A),v=Object.keys(u);if(d.length!==v.length)return!1;for(v=0;v<d.length;v++){var B=d[v];if(!nt.call(u,B)||!Xi(A[B],u[B]))return!1}return!0}function vu(A){for(;A&&A.firstChild;)A=A.firstChild;return A}function mu(A,u){var d=vu(A);A=0;for(var v;d;){if(d.nodeType===3){if(v=A+d.textContent.length,A<=u&&v>=u)return{node:d,offset:u-A};A=v}e:{for(;d;){if(d.nextSibling){d=d.nextSibling;break e}d=d.parentNode}d=void 0}d=vu(d)}}function PA(A,u){return A&&u?A===u?!0:A&&A.nodeType===3?!1:u&&u.nodeType===3?PA(A,u.parentNode):"contains"in A?A.contains(u):A.compareDocumentPosition?!!(A.compareDocumentPosition(u)&16):!1:!1}function kA(A){A=A!=null&&A.ownerDocument!=null&&A.ownerDocument.defaultView!=null?A.ownerDocument.defaultView:window;for(var u=Oa(A.document);u instanceof A.HTMLIFrameElement;){try{var d=typeof u.contentWindow.location.href=="string"}catch{d=!1}if(d)A=u.contentWindow;else break;u=Oa(A.document)}return u}function Yo(A){var u=A&&A.nodeName&&A.nodeName.toLowerCase();return u&&(u==="input"&&(A.type==="text"||A.type==="search"||A.type==="tel"||A.type==="url"||A.type==="password")||u==="textarea"||A.contentEditable==="true")}var ic=Yi&&"documentMode"in document&&11>=document.documentMode,ys=null,QA=null,ha=null,Is=!1;function Hr(A,u,d){var v=d.window===d?d.document:d.nodeType===9?d:d.ownerDocument;Is||ys==null||ys!==Oa(v)||(v=ys,"selectionStart"in v&&Yo(v)?v={start:v.selectionStart,end:v.selectionEnd}:(v=(v.ownerDocument&&v.ownerDocument.defaultView||window).getSelection(),v={anchorNode:v.anchorNode,anchorOffset:v.anchorOffset,focusNode:v.focusNode,focusOffset:v.focusOffset}),ha&&MA(ha,v)||(ha=v,v=rm(QA,"onSelect"),0<v.length&&(u=new Ds("onSelect","select",null,u,d),A.push({event:u,listeners:v}),u.target=ys)))}function Dr(A,u){var d={};return d[A.toLowerCase()]=u.toLowerCase(),d["Webkit"+A]="webkit"+u,d["Moz"+A]="moz"+u,d}var vn={animationend:Dr("Animation","AnimationEnd"),animationiteration:Dr("Animation","AnimationIteration"),animationstart:Dr("Animation","AnimationStart"),transitionrun:Dr("Transition","TransitionRun"),transitionstart:Dr("Transition","TransitionStart"),transitioncancel:Dr("Transition","TransitionCancel"),transitionend:Dr("Transition","TransitionEnd")},oi={},$o={};Yi&&($o=document.createElement("div").style,"AnimationEvent"in window||(delete vn.animationend.animation,delete vn.animationiteration.animation,delete vn.animationstart.animation),"TransitionEvent"in window||delete vn.transitionend.transition);function vo(A){if(oi[A])return oi[A];if(!vn[A])return A;var u=vn[A],d;for(d in u)if(u.hasOwnProperty(d)&&d in $o)return oi[A]=u[d];return A}var ac=vo("animationend"),zf=vo("animationiteration"),Cg=vo("animationstart"),Ev=vo("transitionrun"),_v=vo("transitionstart"),Sv=vo("transitioncancel"),Eg=vo("transitionend"),_g=new Map,sc="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");sc.push("scrollEnd");function Ms(A,u){_g.set(A,u),tn(u,[A])}var Vf=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var u=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(u))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)},ws=[],oc=0,wd=0;function Gf(){for(var A=oc,u=wd=oc=0;u<A;){var d=ws[u];ws[u++]=null;var v=ws[u];ws[u++]=null;var B=ws[u];ws[u++]=null;var _=ws[u];if(ws[u++]=null,v!==null&&B!==null){var z=v.pending;z===null?B.next=B:(B.next=z.next,z.next=B),v.pending=B}_!==0&&Wf(d,B,_)}}function qf(A,u,d,v){ws[oc++]=A,ws[oc++]=u,ws[oc++]=d,ws[oc++]=v,wd|=v,A.lanes|=v,A=A.alternate,A!==null&&(A.lanes|=v)}function xd(A,u,d,v){return qf(A,u,d,v),da(A)}function RA(A,u){return qf(A,null,null,u),da(A)}function Wf(A,u,d){A.lanes|=d;var v=A.alternate;v!==null&&(v.lanes|=d);for(var B=!1,_=A.return;_!==null;)_.childLanes|=d,v=_.alternate,v!==null&&(v.childLanes|=d),_.tag===22&&(A=_.stateNode,A===null||A._visibility&1||(B=!0)),A=_,_=_.return;return A.tag===3?(_=A.stateNode,B&&u!==null&&(B=31-vr(d),A=_.hiddenUpdates,v=A[B],v===null?A[B]=[u]:v.push(u),u.lane=d|536870912),_):null}function da(A){if(50<Wg)throw Wg=0,Ub=null,Error(n(185));for(var u=A.return;u!==null;)A=u,u=A.return;return A.tag===3?A.stateNode:null}var Ji={};function bd(A,u,d,v){this.tag=A,this.key=d,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=u,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=v,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ga(A,u,d,v){return new bd(A,u,d,v)}function Bd(A){return A=A.prototype,!(!A||!A.isReactComponent)}function Ps(A,u){var d=A.alternate;return d===null?(d=ga(A.tag,u,A.key,A.mode),d.elementType=A.elementType,d.type=A.type,d.stateNode=A.stateNode,d.alternate=A,A.alternate=d):(d.pendingProps=u,d.type=A.type,d.flags=0,d.subtreeFlags=0,d.deletions=null),d.flags=A.flags&65011712,d.childLanes=A.childLanes,d.lanes=A.lanes,d.child=A.child,d.memoizedProps=A.memoizedProps,d.memoizedState=A.memoizedState,d.updateQueue=A.updateQueue,u=A.dependencies,d.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext},d.sibling=A.sibling,d.index=A.index,d.ref=A.ref,d.refCleanup=A.refCleanup,d}function Yf(A,u){A.flags&=65011714;var d=A.alternate;return d===null?(A.childLanes=0,A.lanes=u,A.child=null,A.subtreeFlags=0,A.memoizedProps=null,A.memoizedState=null,A.updateQueue=null,A.dependencies=null,A.stateNode=null):(A.childLanes=d.childLanes,A.lanes=d.lanes,A.child=d.child,A.subtreeFlags=0,A.deletions=null,A.memoizedProps=d.memoizedProps,A.memoizedState=d.memoizedState,A.updateQueue=d.updateQueue,A.type=d.type,u=d.dependencies,A.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext}),A}function yu(A,u,d,v,B,_){var z=0;if(v=A,typeof A=="function")Bd(A)&&(z=1);else if(typeof A=="string")z=xq(A,d,K.current)?26:A==="html"||A==="head"||A==="body"?27:5;else e:switch(A){case O:return A=ga(31,d,u,B),A.elementType=O,A.lanes=_,A;case m:return vl(d.children,B,_,u);case w:z=8,B|=24;break;case b:return A=ga(12,d,u,B|2),A.elementType=b,A.lanes=_,A;case D:return A=ga(13,d,u,B),A.elementType=D,A.lanes=_,A;case k:return A=ga(19,d,u,B),A.elementType=k,A.lanes=_,A;default:if(typeof A=="object"&&A!==null)switch(A.$$typeof){case S:z=10;break e;case E:z=9;break e;case T:z=11;break e;case P:z=14;break e;case R:z=16,v=null;break e}z=29,d=Error(n(130,A===null?"null":typeof A,"")),v=null}return u=ga(z,d,u,B),u.elementType=A,u.type=v,u.lanes=_,u}function vl(A,u,d,v){return A=ga(7,A,v,u),A.lanes=d,A}function $f(A,u,d){return A=ga(6,A,null,u),A.lanes=d,A}function Cd(A){var u=ga(18,null,null,0);return u.stateNode=A,u}function wu(A,u,d){return u=ga(4,A.children!==null?A.children:[],A.key,u),u.lanes=d,u.stateNode={containerInfo:A.containerInfo,pendingChildren:null,implementation:A.implementation},u}var Ed=new WeakMap;function ks(A,u){if(typeof A=="object"&&A!==null){var d=Ed.get(A);return d!==void 0?d:(u={value:A,source:u,stack:wt(u)},Ed.set(A,u),u)}return{value:A,source:u,stack:wt(u)}}var xu=[],Ac=0,_d=null,Xf=0,Qs=[],Rs=0,ml=null,js=1,Hs="";function xs(A,u){xu[Ac++]=Xf,xu[Ac++]=_d,_d=A,Xf=u}function Fv(A,u,d){Qs[Rs++]=js,Qs[Rs++]=Hs,Qs[Rs++]=ml,ml=A;var v=js;A=Hs;var B=32-vr(v)-1;v&=~(1<<B),d+=1;var _=32-vr(u)+B;if(30<_){var z=B-B%5;_=(v&(1<<z)-1).toString(32),v>>=z,B-=z,js=1<<32-vr(u)+B|d<<B|v,Hs=_+A}else js=1<<_|d<<B|v,Hs=A}function Sg(A){A.return!==null&&(xs(A,1),Fv(A,1,0))}function Sd(A){for(;A===_d;)_d=xu[--Ac],xu[Ac]=null,Xf=xu[--Ac],xu[Ac]=null;for(;A===ml;)ml=Qs[--Rs],Qs[Rs]=null,Hs=Qs[--Rs],Qs[Rs]=null,js=Qs[--Rs],Qs[Rs]=null}function Tv(A,u){Qs[Rs++]=js,Qs[Rs++]=Hs,Qs[Rs++]=ml,js=u.id,Hs=u.overflow,ml=A}var Zi=null,En=null,Cr=!1,Da=null,Gn=!1,mo=Error(n(519));function yl(A){var u=Error(n(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw bu(ks(u,A)),mo}function Fg(A){var u=A.stateNode,d=A.type,v=A.memoizedProps;switch(u[ce]=A,u[de]=v,d){case"dialog":_r("cancel",u),_r("close",u);break;case"iframe":case"object":case"embed":_r("load",u);break;case"video":case"audio":for(d=0;d<$g.length;d++)_r($g[d],u);break;case"source":_r("error",u);break;case"img":case"image":case"link":_r("error",u),_r("load",u);break;case"details":_r("toggle",u);break;case"input":_r("invalid",u),cd(u,v.value,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name,!0);break;case"select":_r("invalid",u);break;case"textarea":_r("invalid",u),If(u,v.value,v.defaultValue,v.children)}d=v.children,typeof d!="string"&&typeof d!="number"&&typeof d!="bigint"||u.textContent===""+d||v.suppressHydrationWarning===!0||FO(u.textContent,d)?(v.popover!=null&&(_r("beforetoggle",u),_r("toggle",u)),v.onScroll!=null&&_r("scroll",u),v.onScrollEnd!=null&&_r("scrollend",u),v.onClick!=null&&(u.onclick=uo),u=!0):u=!1,u||yl(A,!0)}function jA(A){for(Zi=A.return;Zi;)switch(Zi.tag){case 5:case 31:case 13:Gn=!1;return;case 27:case 3:Gn=!0;return;default:Zi=Zi.return}}function ea(A){if(A!==Zi)return!1;if(!Cr)return jA(A),Cr=!0,!1;var u=A.tag,d;if((d=u!==3&&u!==27)&&((d=u===5)&&(d=A.type,d=!(d!=="form"&&d!=="button")||Gb(A.type,A.memoizedProps)),d=!d),d&&En&&yl(A),jA(A),u===13){if(A=A.memoizedState,A=A!==null?A.dehydrated:null,!A)throw Error(n(317));En=PO(A)}else if(u===31){if(A=A.memoizedState,A=A!==null?A.dehydrated:null,!A)throw Error(n(317));En=PO(A)}else u===27?(u=En,Mu(A.type)?(A=Xb,Xb=null,En=A):En=u):En=Zi?eA(A.stateNode.nextSibling):null;return!0}function lc(){En=Zi=null,Cr=!1}function Tg(){var A=Da;return A!==null&&(Ws===null?Ws=A:Ws.push.apply(Ws,A),Da=null),A}function bu(A){Da===null?Da=[A]:Da.push(A)}var Fd=Z(null),wl=null,Xo=null;function xl(A,u,d){j(Fd,u._currentValue),u._currentValue=d}function Ks(A){A._currentValue=Fd.current,L(Fd)}function Bu(A,u,d){for(;A!==null;){var v=A.alternate;if((A.childLanes&u)!==u?(A.childLanes|=u,v!==null&&(v.childLanes|=u)):v!==null&&(v.childLanes&u)!==u&&(v.childLanes|=u),A===d)break;A=A.return}}function cc(A,u,d,v){var B=A.child;for(B!==null&&(B.return=A);B!==null;){var _=B.dependencies;if(_!==null){var z=B.child;_=_.firstContext;e:for(;_!==null;){var ie=_;_=B;for(var Ce=0;Ce<u.length;Ce++)if(ie.context===u[Ce]){_.lanes|=d,ie=_.alternate,ie!==null&&(ie.lanes|=d),Bu(_.return,d,A),v||(z=null);break e}_=ie.next}}else if(B.tag===18){if(z=B.return,z===null)throw Error(n(341));z.lanes|=d,_=z.alternate,_!==null&&(_.lanes|=d),Bu(z,d,A),z=null}else z=B.child;if(z!==null)z.return=B;else for(z=B;z!==null;){if(z===A){z=null;break}if(B=z.sibling,B!==null){B.return=z.return,z=B;break}z=z.return}B=z}}function bl(A,u,d,v){A=null;for(var B=u,_=!1;B!==null;){if(!_){if((B.flags&524288)!==0)_=!0;else if((B.flags&262144)!==0)break}if(B.tag===10){var z=B.alternate;if(z===null)throw Error(n(387));if(z=z.memoizedProps,z!==null){var ie=B.type;Xi(B.pendingProps.value,z.value)||(A!==null?A.push(ie):A=[ie])}}else if(B===he.current){if(z=B.alternate,z===null)throw Error(n(387));z.memoizedState.memoizedState!==B.memoizedState.memoizedState&&(A!==null?A.push(tp):A=[tp])}B=B.return}A!==null&&cc(u,A,d,v),u.flags|=262144}function Td(A){for(A=A.firstContext;A!==null;){if(!Xi(A.context._currentValue,A.memoizedValue))return!0;A=A.next}return!1}function Bl(A){wl=A,Xo=null,A=A.dependencies,A!==null&&(A.firstContext=null)}function ta(A){return Ov(wl,A)}function Od(A,u){return wl===null&&Bl(A),Ov(A,u)}function Ov(A,u){var d=u._currentValue;if(u={context:u,memoizedValue:d,next:null},Xo===null){if(A===null)throw Error(n(308));Xo=u,A.dependencies={lanes:0,firstContext:u},A.flags|=524288}else Xo=Xo.next=u;return d}var $x=typeof AbortController<"u"?AbortController:function(){var A=[],u=this.signal={aborted:!1,addEventListener:function(d,v){A.push(v)}};this.abort=function(){u.aborted=!0,A.forEach(function(d){return d()})}},Xx=e.unstable_scheduleCallback,Jx=e.unstable_NormalPriority,Ai={$$typeof:S,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Cu(){return{controller:new $x,data:new Map,refCount:0}}function Jf(A){A.refCount--,A.refCount===0&&Xx(Jx,function(){A.controller.abort()})}var Zf=null,Ud=0,x=0,C=null;function M(A,u){if(Zf===null){var d=Zf=[];Ud=0,x=Pb(),C={status:"pending",value:void 0,then:function(v){d.push(v)}}}return Ud++,u.then(H,H),u}function H(){if(--Ud===0&&Zf!==null){C!==null&&(C.status="fulfilled");var A=Zf;Zf=null,x=0,C=null;for(var u=0;u<A.length;u++)(0,A[u])()}}function X(A,u){var d=[],v={status:"pending",value:null,reason:null,then:function(B){d.push(B)}};return A.then(function(){v.status="fulfilled",v.value=u;for(var B=0;B<d.length;B++)(0,d[B])(u)},function(B){for(v.status="rejected",v.reason=B,B=0;B<d.length;B++)(0,d[B])(void 0)}),v}var te=G.S;G.S=function(A,u){JT=Vt(),typeof u=="object"&&u!==null&&typeof u.then=="function"&&M(A,u),te!==null&&te(A,u)};var ne=Z(null);function oe(){var A=ne.current;return A!==null?A:Sn.pooledCache}function ue(A,u){u===null?j(ne,ne.current):j(ne,u.pool)}function me(){var A=oe();return A===null?null:{parent:Ai._currentValue,pool:A}}var Se=Error(n(460)),Re=Error(n(474)),pe=Error(n(542)),Ue={then:function(){}};function Me(A){return A=A.status,A==="fulfilled"||A==="rejected"}function Ye(A,u,d){switch(d=A[d],d===void 0?A.push(u):d!==u&&(u.then(uo,uo),u=d),u.status){case"fulfilled":return u.value;case"rejected":throw A=u.reason,ct(A),A;default:if(typeof u.status=="string")u.then(uo,uo);else{if(A=Sn,A!==null&&100<A.shellSuspendCounter)throw Error(n(482));A=u,A.status="pending",A.then(function(v){if(u.status==="pending"){var B=u;B.status="fulfilled",B.value=v}},function(v){if(u.status==="pending"){var B=u;B.status="rejected",B.reason=v}})}switch(u.status){case"fulfilled":return u.value;case"rejected":throw A=u.reason,ct(A),A}throw We=u,Se}}function Qe(A){try{var u=A._init;return u(A._payload)}catch(d){throw d!==null&&typeof d=="object"&&typeof d.then=="function"?(We=d,Se):d}}var We=null;function et(){if(We===null)throw Error(n(459));var A=We;return We=null,A}function ct(A){if(A===Se||A===pe)throw Error(n(483))}var at=null,Lt=0;function bt(A){var u=Lt;return Lt+=1,at===null&&(at=[]),Ye(at,A,u)}function Ar(A,u){u=u.props.ref,A.ref=u!==void 0?u:null}function St(A,u){throw u.$$typeof===p?Error(n(525)):(A=Object.prototype.toString.call(u),Error(n(31,A==="[object Object]"?"object with keys {"+Object.keys(u).join(", ")+"}":A)))}function Br(A){function u(De,Oe){if(A){var He=De.deletions;He===null?(De.deletions=[Oe],De.flags|=16):He.push(Oe)}}function d(De,Oe){if(!A)return null;for(;Oe!==null;)u(De,Oe),Oe=Oe.sibling;return null}function v(De){for(var Oe=new Map;De!==null;)De.key!==null?Oe.set(De.key,De):Oe.set(De.index,De),De=De.sibling;return Oe}function B(De,Oe){return De=Ps(De,Oe),De.index=0,De.sibling=null,De}function _(De,Oe,He){return De.index=He,A?(He=De.alternate,He!==null?(He=He.index,He<Oe?(De.flags|=67108866,Oe):He):(De.flags|=67108866,Oe)):(De.flags|=1048576,Oe)}function z(De){return A&&De.alternate===null&&(De.flags|=67108866),De}function ie(De,Oe,He,rt){return Oe===null||Oe.tag!==6?(Oe=$f(He,De.mode,rt),Oe.return=De,Oe):(Oe=B(Oe,He),Oe.return=De,Oe)}function Ce(De,Oe,He,rt){var Yt=He.type;return Yt===m?Je(De,Oe,He.props.children,rt,He.key):Oe!==null&&(Oe.elementType===Yt||typeof Yt=="object"&&Yt!==null&&Yt.$$typeof===R&&Qe(Yt)===Oe.type)?(Oe=B(Oe,He.props),Ar(Oe,He),Oe.return=De,Oe):(Oe=yu(He.type,He.key,He.props,null,De.mode,rt),Ar(Oe,He),Oe.return=De,Oe)}function Ke(De,Oe,He,rt){return Oe===null||Oe.tag!==4||Oe.stateNode.containerInfo!==He.containerInfo||Oe.stateNode.implementation!==He.implementation?(Oe=wu(He,De.mode,rt),Oe.return=De,Oe):(Oe=B(Oe,He.children||[]),Oe.return=De,Oe)}function Je(De,Oe,He,rt,Yt){return Oe===null||Oe.tag!==7?(Oe=vl(He,De.mode,rt,Yt),Oe.return=De,Oe):(Oe=B(Oe,He),Oe.return=De,Oe)}function it(De,Oe,He){if(typeof Oe=="string"&&Oe!==""||typeof Oe=="number"||typeof Oe=="bigint")return Oe=$f(""+Oe,De.mode,He),Oe.return=De,Oe;if(typeof Oe=="object"&&Oe!==null){switch(Oe.$$typeof){case g:return He=yu(Oe.type,Oe.key,Oe.props,null,De.mode,He),Ar(He,Oe),He.return=De,He;case y:return Oe=wu(Oe,De.mode,He),Oe.return=De,Oe;case R:return Oe=Qe(Oe),it(De,Oe,He)}if(fe(Oe)||Q(Oe))return Oe=vl(Oe,De.mode,He,null),Oe.return=De,Oe;if(typeof Oe.then=="function")return it(De,bt(Oe),He);if(Oe.$$typeof===S)return it(De,Od(De,Oe),He);St(De,Oe)}return null}function Ve(De,Oe,He,rt){var Yt=Oe!==null?Oe.key:null;if(typeof He=="string"&&He!==""||typeof He=="number"||typeof He=="bigint")return Yt!==null?null:ie(De,Oe,""+He,rt);if(typeof He=="object"&&He!==null){switch(He.$$typeof){case g:return He.key===Yt?Ce(De,Oe,He,rt):null;case y:return He.key===Yt?Ke(De,Oe,He,rt):null;case R:return He=Qe(He),Ve(De,Oe,He,rt)}if(fe(He)||Q(He))return Yt!==null?null:Je(De,Oe,He,rt,null);if(typeof He.then=="function")return Ve(De,Oe,bt(He),rt);if(He.$$typeof===S)return Ve(De,Oe,Od(De,He),rt);St(De,He)}return null}function qe(De,Oe,He,rt,Yt){if(typeof rt=="string"&&rt!==""||typeof rt=="number"||typeof rt=="bigint")return De=De.get(He)||null,ie(Oe,De,""+rt,Yt);if(typeof rt=="object"&&rt!==null){switch(rt.$$typeof){case g:return De=De.get(rt.key===null?He:rt.key)||null,Ce(Oe,De,rt,Yt);case y:return De=De.get(rt.key===null?He:rt.key)||null,Ke(Oe,De,rt,Yt);case R:return rt=Qe(rt),qe(De,Oe,He,rt,Yt)}if(fe(rt)||Q(rt))return De=De.get(He)||null,Je(Oe,De,rt,Yt,null);if(typeof rt.then=="function")return qe(De,Oe,He,bt(rt),Yt);if(rt.$$typeof===S)return qe(De,Oe,He,Od(Oe,rt),Yt);St(Oe,rt)}return null}function Nt(De,Oe,He,rt){for(var Yt=null,Vr=null,Qt=Oe,yr=Oe=0,Fr=null;Qt!==null&&yr<He.length;yr++){Qt.index>yr?(Fr=Qt,Qt=null):Fr=Qt.sibling;var Gr=Ve(De,Qt,He[yr],rt);if(Gr===null){Qt===null&&(Qt=Fr);break}A&&Qt&&Gr.alternate===null&&u(De,Qt),Oe=_(Gr,Oe,yr),Vr===null?Yt=Gr:Vr.sibling=Gr,Vr=Gr,Qt=Fr}if(yr===He.length)return d(De,Qt),Cr&&xs(De,yr),Yt;if(Qt===null){for(;yr<He.length;yr++)Qt=it(De,He[yr],rt),Qt!==null&&(Oe=_(Qt,Oe,yr),Vr===null?Yt=Qt:Vr.sibling=Qt,Vr=Qt);return Cr&&xs(De,yr),Yt}for(Qt=v(Qt);yr<He.length;yr++)Fr=qe(Qt,De,yr,He[yr],rt),Fr!==null&&(A&&Fr.alternate!==null&&Qt.delete(Fr.key===null?yr:Fr.key),Oe=_(Fr,Oe,yr),Vr===null?Yt=Fr:Vr.sibling=Fr,Vr=Fr);return A&&Qt.forEach(function(ju){return u(De,ju)}),Cr&&xs(De,yr),Yt}function ir(De,Oe,He,rt){if(He==null)throw Error(n(151));for(var Yt=null,Vr=null,Qt=Oe,yr=Oe=0,Fr=null,Gr=He.next();Qt!==null&&!Gr.done;yr++,Gr=He.next()){Qt.index>yr?(Fr=Qt,Qt=null):Fr=Qt.sibling;var ju=Ve(De,Qt,Gr.value,rt);if(ju===null){Qt===null&&(Qt=Fr);break}A&&Qt&&ju.alternate===null&&u(De,Qt),Oe=_(ju,Oe,yr),Vr===null?Yt=ju:Vr.sibling=ju,Vr=ju,Qt=Fr}if(Gr.done)return d(De,Qt),Cr&&xs(De,yr),Yt;if(Qt===null){for(;!Gr.done;yr++,Gr=He.next())Gr=it(De,Gr.value,rt),Gr!==null&&(Oe=_(Gr,Oe,yr),Vr===null?Yt=Gr:Vr.sibling=Gr,Vr=Gr);return Cr&&xs(De,yr),Yt}for(Qt=v(Qt);!Gr.done;yr++,Gr=He.next())Gr=qe(Qt,De,yr,Gr.value,rt),Gr!==null&&(A&&Gr.alternate!==null&&Qt.delete(Gr.key===null?yr:Gr.key),Oe=_(Gr,Oe,yr),Vr===null?Yt=Gr:Vr.sibling=Gr,Vr=Gr);return A&&Qt.forEach(function(Nq){return u(De,Nq)}),Cr&&xs(De,yr),Yt}function xn(De,Oe,He,rt){if(typeof He=="object"&&He!==null&&He.type===m&&He.key===null&&(He=He.props.children),typeof He=="object"&&He!==null){switch(He.$$typeof){case g:e:{for(var Yt=He.key;Oe!==null;){if(Oe.key===Yt){if(Yt=He.type,Yt===m){if(Oe.tag===7){d(De,Oe.sibling),rt=B(Oe,He.props.children),rt.return=De,De=rt;break e}}else if(Oe.elementType===Yt||typeof Yt=="object"&&Yt!==null&&Yt.$$typeof===R&&Qe(Yt)===Oe.type){d(De,Oe.sibling),rt=B(Oe,He.props),Ar(rt,He),rt.return=De,De=rt;break e}d(De,Oe);break}else u(De,Oe);Oe=Oe.sibling}He.type===m?(rt=vl(He.props.children,De.mode,rt,He.key),rt.return=De,De=rt):(rt=yu(He.type,He.key,He.props,null,De.mode,rt),Ar(rt,He),rt.return=De,De=rt)}return z(De);case y:e:{for(Yt=He.key;Oe!==null;){if(Oe.key===Yt)if(Oe.tag===4&&Oe.stateNode.containerInfo===He.containerInfo&&Oe.stateNode.implementation===He.implementation){d(De,Oe.sibling),rt=B(Oe,He.children||[]),rt.return=De,De=rt;break e}else{d(De,Oe);break}else u(De,Oe);Oe=Oe.sibling}rt=wu(He,De.mode,rt),rt.return=De,De=rt}return z(De);case R:return He=Qe(He),xn(De,Oe,He,rt)}if(fe(He))return Nt(De,Oe,He,rt);if(Q(He)){if(Yt=Q(He),typeof Yt!="function")throw Error(n(150));return He=Yt.call(He),ir(De,Oe,He,rt)}if(typeof He.then=="function")return xn(De,Oe,bt(He),rt);if(He.$$typeof===S)return xn(De,Oe,Od(De,He),rt);St(De,He)}return typeof He=="string"&&He!==""||typeof He=="number"||typeof He=="bigint"?(He=""+He,Oe!==null&&Oe.tag===6?(d(De,Oe.sibling),rt=B(Oe,He),rt.return=De,De=rt):(d(De,Oe),rt=$f(He,De.mode,rt),rt.return=De,De=rt),z(De)):d(De,Oe)}return function(De,Oe,He,rt){try{Lt=0;var Yt=xn(De,Oe,He,rt);return at=null,Yt}catch(Qt){if(Qt===Se||Qt===pe)throw Qt;var Vr=ga(29,Qt,null,De.mode);return Vr.lanes=rt,Vr.return=De,Vr}finally{}}}var _n=Br(!0),dr=Br(!1),Bt=!1;function vt(A){A.updateQueue={baseState:A.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function kn(A,u){A=A.updateQueue,u.updateQueue===A&&(u.updateQueue={baseState:A.baseState,firstBaseUpdate:A.firstBaseUpdate,lastBaseUpdate:A.lastBaseUpdate,shared:A.shared,callbacks:null})}function tr(A){return{lane:A,tag:0,payload:null,callback:null,next:null}}function mr(A,u,d){var v=A.updateQueue;if(v===null)return null;if(v=v.shared,(Zr&2)!==0){var B=v.pending;return B===null?u.next=u:(u.next=B.next,B.next=u),v.pending=u,u=da(A),Wf(A,null,d),u}return qf(A,v,u,d),da(A)}function Xr(A,u,d){if(u=u.updateQueue,u!==null&&(u=u.shared,(d&4194048)!==0)){var v=u.lanes;v&=A.pendingLanes,d|=v,u.lanes=d,ii(A,d)}}function Fi(A,u){var d=A.updateQueue,v=A.alternate;if(v!==null&&(v=v.updateQueue,d===v)){var B=null,_=null;if(d=d.firstBaseUpdate,d!==null){do{var z={lane:d.lane,tag:d.tag,payload:d.payload,callback:null,next:null};_===null?B=_=z:_=_.next=z,d=d.next}while(d!==null);_===null?B=_=u:_=_.next=u}else B=_=u;d={baseState:v.baseState,firstBaseUpdate:B,lastBaseUpdate:_,shared:v.shared,callbacks:v.callbacks},A.updateQueue=d;return}A=d.lastBaseUpdate,A===null?d.firstBaseUpdate=u:A.next=u,d.lastBaseUpdate=u}var ra=!1;function mn(){if(ra){var A=C;if(A!==null)throw A}}function gi(A,u,d,v){ra=!1;var B=A.updateQueue;Bt=!1;var _=B.firstBaseUpdate,z=B.lastBaseUpdate,ie=B.shared.pending;if(ie!==null){B.shared.pending=null;var Ce=ie,Ke=Ce.next;Ce.next=null,z===null?_=Ke:z.next=Ke,z=Ce;var Je=A.alternate;Je!==null&&(Je=Je.updateQueue,ie=Je.lastBaseUpdate,ie!==z&&(ie===null?Je.firstBaseUpdate=Ke:ie.next=Ke,Je.lastBaseUpdate=Ce))}if(_!==null){var it=B.baseState;z=0,Je=Ke=Ce=null,ie=_;do{var Ve=ie.lane&-536870913,qe=Ve!==ie.lane;if(qe?(Sr&Ve)===Ve:(v&Ve)===Ve){Ve!==0&&Ve===x&&(ra=!0),Je!==null&&(Je=Je.next={lane:0,tag:ie.tag,payload:ie.payload,callback:null,next:null});e:{var Nt=A,ir=ie;Ve=u;var xn=d;switch(ir.tag){case 1:if(Nt=ir.payload,typeof Nt=="function"){it=Nt.call(xn,it,Ve);break e}it=Nt;break e;case 3:Nt.flags=Nt.flags&-65537|128;case 0:if(Nt=ir.payload,Ve=typeof Nt=="function"?Nt.call(xn,it,Ve):Nt,Ve==null)break e;it=h({},it,Ve);break e;case 2:Bt=!0}}Ve=ie.callback,Ve!==null&&(A.flags|=64,qe&&(A.flags|=8192),qe=B.callbacks,qe===null?B.callbacks=[Ve]:qe.push(Ve))}else qe={lane:Ve,tag:ie.tag,payload:ie.payload,callback:ie.callback,next:null},Je===null?(Ke=Je=qe,Ce=it):Je=Je.next=qe,z|=Ve;if(ie=ie.next,ie===null){if(ie=B.shared.pending,ie===null)break;qe=ie,ie=qe.next,qe.next=null,B.lastBaseUpdate=qe,B.shared.pending=null}}while(!0);Je===null&&(Ce=it),B.baseState=Ce,B.firstBaseUpdate=Ke,B.lastBaseUpdate=Je,_===null&&(B.shared.lanes=0),Uu|=z,A.lanes=z,A.memoizedState=it}}function pa(A,u){if(typeof A!="function")throw Error(n(191,A));A.call(u)}function pi(A,u){var d=A.callbacks;if(d!==null)for(A.callbacks=null,A=0;A<d.length;A++)pa(d[A],u)}var wr=Z(null),Mr=Z(0);function Qn(A,u){A=wc,j(Mr,A),j(wr,u),wc=A|u.baseLanes}function Kr(){j(Mr,wc),j(wr,wr.current)}function Ti(){wc=Mr.current,L(wr),L(Mr)}var Rn=Z(null),Pr=null;function li(A){var u=A.alternate;j(Ir,Ir.current&1),j(Rn,A),Pr===null&&(u===null||wr.current!==null||u.memoizedState!==null)&&(Pr=A)}function Jr(A){j(Ir,Ir.current),j(Rn,A),Pr===null&&(Pr=A)}function vi(A){A.tag===22?(j(Ir,Ir.current),j(Rn,A),Pr===null&&(Pr=A)):mi()}function mi(){j(Ir,Ir.current),j(Rn,Rn.current)}function nn(A){L(Rn),Pr===A&&(Pr=null),L(Ir)}var Ir=Z(0);function va(A){for(var u=A;u!==null;){if(u.tag===13){var d=u.memoizedState;if(d!==null&&(d=d.dehydrated,d===null||Yb(d)||$b(d)))return u}else if(u.tag===19&&(u.memoizedProps.revealOrder==="forwards"||u.memoizedProps.revealOrder==="backwards"||u.memoizedProps.revealOrder==="unstable_legacy-backwards"||u.memoizedProps.revealOrder==="together")){if((u.flags&128)!==0)return u}else if(u.child!==null){u.child.return=u,u=u.child;continue}if(u===A)break;for(;u.sibling===null;){if(u.return===null||u.return===A)return null;u=u.return}u.sibling.return=u.return,u=u.sibling}return null}var qn=0,qt=null,Wt=null,kr=null,ts=!1,zs=!1,Ia=!1,yi=0,Cl=0,El=null,Nd=0;function yn(){throw Error(n(321))}function Og(A,u){if(u===null)return!1;for(var d=0;d<u.length&&d<A.length;d++)if(!Xi(A[d],u[d]))return!1;return!0}function Ug(A,u,d,v,B,_){return qn=_,qt=u,u.memoizedState=null,u.updateQueue=null,u.lanes=0,G.H=A===null||A.memoizedState===null?lT:sb,Ia=!1,_=d(v,B),Ia=!1,zs&&(_=HA(u,d,v,B)),Ld(A),_}function Ld(A){G.H=Qg;var u=Wt!==null&&Wt.next!==null;if(qn=0,kr=Wt=qt=null,ts=!1,Cl=0,El=null,u)throw Error(n(300));A===null||ji||(A=A.dependencies,A!==null&&Td(A)&&(ji=!0))}function HA(A,u,d,v){qt=A;var B=0;do{if(zs&&(El=null),Cl=0,zs=!1,25<=B)throw Error(n(301));if(B+=1,kr=Wt=null,A.updateQueue!=null){var _=A.updateQueue;_.lastEffect=null,_.events=null,_.stores=null,_.memoCache!=null&&(_.memoCache.index=0)}G.H=cT,_=u(d,v)}while(zs);return _}function Zx(){var A=G.H,u=A.useState()[0];return u=typeof u.then=="function"?_l(u):u,A=A.useState()[0],(Wt!==null?Wt.memoizedState:null)!==A&&(qt.flags|=1024),u}function Ng(){var A=yi!==0;return yi=0,A}function Lg(A,u,d){u.updateQueue=A.updateQueue,u.flags&=-2053,A.lanes&=~d}function Dd(A){if(ts){for(A=A.memoizedState;A!==null;){var u=A.queue;u!==null&&(u.pending=null),A=A.next}ts=!1}qn=0,kr=Wt=qt=null,zs=!1,Cl=yi=0,El=null}function Ri(){var A={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return kr===null?qt.memoizedState=kr=A:kr=kr.next=A,kr}function Wn(){if(Wt===null){var A=qt.alternate;A=A!==null?A.memoizedState:null}else A=Wt.next;var u=kr===null?qt.memoizedState:kr.next;if(u!==null)kr=u,Wt=A;else{if(A===null)throw qt.alternate===null?Error(n(467)):Error(n(310));Wt=A,A={memoizedState:Wt.memoizedState,baseState:Wt.baseState,baseQueue:Wt.baseQueue,queue:Wt.queue,next:null},kr===null?qt.memoizedState=kr=A:kr=kr.next=A}return kr}function eh(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function _l(A){var u=Cl;return Cl+=1,El===null&&(El=[]),A=Ye(El,A,u),u=qt,(kr===null?u.memoizedState:kr.next)===null&&(u=u.alternate,G.H=u===null||u.memoizedState===null?lT:sb),A}function Eu(A){if(A!==null&&typeof A=="object"){if(typeof A.then=="function")return _l(A);if(A.$$typeof===S)return ta(A)}throw Error(n(438,String(A)))}function uc(A){var u=null,d=qt.updateQueue;if(d!==null&&(u=d.memoCache),u==null){var v=qt.alternate;v!==null&&(v=v.updateQueue,v!==null&&(v=v.memoCache,v!=null&&(u={data:v.data.map(function(B){return B.slice()}),index:0})))}if(u==null&&(u={data:[],index:0}),d===null&&(d=eh(),qt.updateQueue=d),d.memoCache=u,d=u.data[u.index],d===void 0)for(d=u.data[u.index]=Array(A),v=0;v<A;v++)d[v]=V;return u.index++,d}function Jo(A,u){return typeof u=="function"?u(A):u}function Id(A){var u=Wn();return _u(u,Wt,A)}function _u(A,u,d){var v=A.queue;if(v===null)throw Error(n(311));v.lastRenderedReducer=d;var B=A.baseQueue,_=v.pending;if(_!==null){if(B!==null){var z=B.next;B.next=_.next,_.next=z}u.baseQueue=B=_,v.pending=null}if(_=A.baseState,B===null)A.memoizedState=_;else{u=B.next;var ie=z=null,Ce=null,Ke=u,Je=!1;do{var it=Ke.lane&-536870913;if(it!==Ke.lane?(Sr&it)===it:(qn&it)===it){var Ve=Ke.revertLane;if(Ve===0)Ce!==null&&(Ce=Ce.next={lane:0,revertLane:0,gesture:null,action:Ke.action,hasEagerState:Ke.hasEagerState,eagerState:Ke.eagerState,next:null}),it===x&&(Je=!0);else if((qn&Ve)===Ve){Ke=Ke.next,Ve===x&&(Je=!0);continue}else it={lane:0,revertLane:Ke.revertLane,gesture:null,action:Ke.action,hasEagerState:Ke.hasEagerState,eagerState:Ke.eagerState,next:null},Ce===null?(ie=Ce=it,z=_):Ce=Ce.next=it,qt.lanes|=Ve,Uu|=Ve;it=Ke.action,Ia&&d(_,it),_=Ke.hasEagerState?Ke.eagerState:d(_,it)}else Ve={lane:it,revertLane:Ke.revertLane,gesture:Ke.gesture,action:Ke.action,hasEagerState:Ke.hasEagerState,eagerState:Ke.eagerState,next:null},Ce===null?(ie=Ce=Ve,z=_):Ce=Ce.next=Ve,qt.lanes|=it,Uu|=it;Ke=Ke.next}while(Ke!==null&&Ke!==u);if(Ce===null?z=_:Ce.next=ie,!Xi(_,A.memoizedState)&&(ji=!0,Je&&(d=C,d!==null)))throw d;A.memoizedState=_,A.baseState=z,A.baseQueue=Ce,v.lastRenderedState=_}return B===null&&(v.lanes=0),[A.memoizedState,v.dispatch]}function Md(A){var u=Wn(),d=u.queue;if(d===null)throw Error(n(311));d.lastRenderedReducer=A;var v=d.dispatch,B=d.pending,_=u.memoizedState;if(B!==null){d.pending=null;var z=B=B.next;do _=A(_,z.action),z=z.next;while(z!==B);Xi(_,u.memoizedState)||(ji=!0),u.memoizedState=_,u.baseQueue===null&&(u.baseState=_),d.lastRenderedState=_}return[_,v]}function Pd(A,u,d){var v=qt,B=Wn(),_=Cr;if(_){if(d===void 0)throw Error(n(407));d=d()}else d=u();var z=!Xi((Wt||B).memoizedState,d);if(z&&(B.memoizedState=d,ji=!0),B=B.queue,eb(Ig.bind(null,v,B,A),[A]),B.getSnapshot!==u||z||kr!==null&&kr.memoizedState.tag&1){if(v.flags|=2048,hc(9,{destroy:void 0},Dg.bind(null,v,B,d,u),null),Sn===null)throw Error(n(349));_||(qn&127)!==0||KA(v,u,d)}return d}function KA(A,u,d){A.flags|=16384,A={getSnapshot:u,value:d},u=qt.updateQueue,u===null?(u=eh(),qt.updateQueue=u,u.stores=[A]):(d=u.stores,d===null?u.stores=[A]:d.push(A))}function Dg(A,u,d,v){u.value=d,u.getSnapshot=v,Uv(u)&&Mg(A)}function Ig(A,u,d){return d(function(){Uv(u)&&Mg(A)})}function Uv(A){var u=A.getSnapshot;A=A.value;try{var d=u();return!Xi(A,d)}catch{return!0}}function Mg(A){var u=RA(A,2);u!==null&&Ys(u,A,2)}function Sl(A){var u=Ri();if(typeof A=="function"){var d=A;if(A=d(),Ia){Xt(!0);try{d()}finally{Xt(!1)}}}return u.memoizedState=u.baseState=A,u.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jo,lastRenderedState:A},u}function Nv(A,u,d,v){return A.baseState=d,_u(A,Wt,typeof v=="function"?v:Jo)}function Lv(A,u,d,v,B){if(Pv(A))throw Error(n(485));if(A=u.action,A!==null){var _={payload:B,action:A,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(z){_.listeners.push(z)}};G.T!==null?d(!0):_.isTransition=!1,v(_),d=u.pending,d===null?(_.next=u.pending=_,Dv(u,_)):(_.next=d.next,u.pending=d.next=_)}}function Dv(A,u){var d=u.action,v=u.payload,B=A.state;if(u.isTransition){var _=G.T,z={};G.T=z;try{var ie=d(B,v),Ce=G.S;Ce!==null&&Ce(z,ie),Pg(A,u,ie)}catch(Ke){fc(A,u,Ke)}finally{_!==null&&z.types!==null&&(_.types=z.types),G.T=_}}else try{_=d(B,v),Pg(A,u,_)}catch(Ke){fc(A,u,Ke)}}function Pg(A,u,d){d!==null&&typeof d=="object"&&typeof d.then=="function"?d.then(function(v){Iv(A,u,v)},function(v){return fc(A,u,v)}):Iv(A,u,d)}function Iv(A,u,d){u.status="fulfilled",u.value=d,kd(u),A.state=d,u=A.pending,u!==null&&(d=u.next,d===u?A.pending=null:(d=d.next,u.next=d,Dv(A,d)))}function fc(A,u,d){var v=A.pending;if(A.pending=null,v!==null){v=v.next;do u.status="rejected",u.reason=d,kd(u),u=u.next;while(u!==v)}A.action=null}function kd(A){A=A.listeners;for(var u=0;u<A.length;u++)(0,A[u])()}function th(A,u){return u}function Zo(A,u){if(Cr){var d=Sn.formState;if(d!==null){e:{var v=qt;if(Cr){if(En){t:{for(var B=En,_=Gn;B.nodeType!==8;){if(!_){B=null;break t}if(B=eA(B.nextSibling),B===null){B=null;break t}}_=B.data,B=_==="F!"||_==="F"?B:null}if(B){En=eA(B.nextSibling),v=B.data==="F!";break e}}yl(v)}v=!1}v&&(u=d[0])}}return d=Ri(),d.memoizedState=d.baseState=u,v={pending:null,lanes:0,dispatch:null,lastRenderedReducer:th,lastRenderedState:u},d.queue=v,d=sT.bind(null,qt,v),v.dispatch=d,v=Sl(!1),_=ab.bind(null,qt,!1,v.queue),v=Ri(),B={state:u,dispatch:null,action:A,pending:null},v.queue=B,d=Lv.bind(null,qt,B,_,d),B.dispatch=d,v.memoizedState=A,[u,d,!1]}function zA(A){var u=Wn();return VA(u,Wt,A)}function VA(A,u,d){if(u=_u(A,u,th)[0],A=Id(Jo)[0],typeof u=="object"&&u!==null&&typeof u.then=="function")try{var v=_l(u)}catch(z){throw z===Se?pe:z}else v=u;u=Wn();var B=u.queue,_=B.dispatch;return d!==u.memoizedState&&(qt.flags|=2048,hc(9,{destroy:void 0},Qd.bind(null,B,d),null)),[v,_,A]}function Qd(A,u){A.action=u}function Rd(A){var u=Wn(),d=Wt;if(d!==null)return VA(u,d,A);Wn(),u=u.memoizedState,d=Wn();var v=d.queue.dispatch;return d.memoizedState=A,[u,v,!1]}function hc(A,u,d,v){return A={tag:A,create:d,deps:v,inst:u,next:null},u=qt.updateQueue,u===null&&(u=eh(),qt.updateQueue=u),d=u.lastEffect,d===null?u.lastEffect=A.next=A:(v=d.next,d.next=A,A.next=v,u.lastEffect=A),A}function Mv(){return Wn().memoizedState}function Su(A,u,d,v){var B=Ri();qt.flags|=A,B.memoizedState=hc(1|u,{destroy:void 0},d,v===void 0?null:v)}function Fu(A,u,d,v){var B=Wn();v=v===void 0?null:v;var _=B.memoizedState.inst;Wt!==null&&v!==null&&Og(v,Wt.memoizedState.deps)?B.memoizedState=hc(u,_,d,v):(qt.flags|=A,B.memoizedState=hc(1|u,_,d,v))}function GF(A,u){Su(8390656,8,A,u)}function eb(A,u){Fu(2048,8,A,u)}function _G(A){qt.flags|=4;var u=qt.updateQueue;if(u===null)u=eh(),qt.updateQueue=u,u.events=[A];else{var d=u.events;d===null?u.events=[A]:d.push(A)}}function qF(A){var u=Wn().memoizedState;return _G({ref:u,nextImpl:A}),function(){if((Zr&2)!==0)throw Error(n(440));return u.impl.apply(void 0,arguments)}}function WF(A,u){return Fu(4,2,A,u)}function YF(A,u){return Fu(4,4,A,u)}function $F(A,u){if(typeof u=="function"){A=A();var d=u(A);return function(){typeof d=="function"?d():u(null)}}if(u!=null)return A=A(),u.current=A,function(){u.current=null}}function XF(A,u,d){d=d!=null?d.concat([A]):null,Fu(4,4,$F.bind(null,u,A),d)}function tb(){}function JF(A,u){var d=Wn();u=u===void 0?null:u;var v=d.memoizedState;return u!==null&&Og(u,v[1])?v[0]:(d.memoizedState=[A,u],A)}function ZF(A,u){var d=Wn();u=u===void 0?null:u;var v=d.memoizedState;if(u!==null&&Og(u,v[1]))return v[0];if(v=A(),Ia){Xt(!0);try{A()}finally{Xt(!1)}}return d.memoizedState=[v,u],v}function rb(A,u,d){return d===void 0||(qn&1073741824)!==0&&(Sr&261930)===0?A.memoizedState=u:(A.memoizedState=d,A=eO(),qt.lanes|=A,Uu|=A,d)}function eT(A,u,d,v){return Xi(d,u)?d:wr.current!==null?(A=rb(A,d,v),Xi(A,u)||(ji=!0),A):(qn&42)===0||(qn&1073741824)!==0&&(Sr&261930)===0?(ji=!0,A.memoizedState=d):(A=eO(),qt.lanes|=A,Uu|=A,u)}function tT(A,u,d,v,B){var _=se.p;se.p=_!==0&&8>_?_:8;var z=G.T,ie={};G.T=ie,ab(A,!1,u,d);try{var Ce=B(),Ke=G.S;if(Ke!==null&&Ke(ie,Ce),Ce!==null&&typeof Ce=="object"&&typeof Ce.then=="function"){var Je=X(Ce,v);kg(A,u,Je,xo(A))}else kg(A,u,v,xo(A))}catch(it){kg(A,u,{then:function(){},status:"rejected",reason:it},xo())}finally{se.p=_,z!==null&&ie.types!==null&&(z.types=ie.types),G.T=z}}function SG(){}function nb(A,u,d,v){if(A.tag!==5)throw Error(n(476));var B=rT(A).queue;tT(A,B,u,ge,d===null?SG:function(){return nT(A),d(v)})}function rT(A){var u=A.memoizedState;if(u!==null)return u;u={memoizedState:ge,baseState:ge,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jo,lastRenderedState:ge},next:null};var d={};return u.next={memoizedState:d,baseState:d,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jo,lastRenderedState:d},next:null},A.memoizedState=u,A=A.alternate,A!==null&&(A.memoizedState=u),u}function nT(A){var u=rT(A);u.next===null&&(u=A.alternate.memoizedState),kg(A,u.next.queue,{},xo())}function ib(){return ta(tp)}function iT(){return Wn().memoizedState}function aT(){return Wn().memoizedState}function FG(A){for(var u=A.return;u!==null;){switch(u.tag){case 24:case 3:var d=xo();A=tr(d);var v=mr(u,A,d);v!==null&&(Ys(v,u,d),Xr(v,u,d)),u={cache:Cu()},A.payload=u;return}u=u.return}}function TG(A,u,d){var v=xo();d={lane:v,revertLane:0,gesture:null,action:d,hasEagerState:!1,eagerState:null,next:null},Pv(A)?oT(u,d):(d=xd(A,u,d,v),d!==null&&(Ys(d,A,v),AT(d,u,v)))}function sT(A,u,d){var v=xo();kg(A,u,d,v)}function kg(A,u,d,v){var B={lane:v,revertLane:0,gesture:null,action:d,hasEagerState:!1,eagerState:null,next:null};if(Pv(A))oT(u,B);else{var _=A.alternate;if(A.lanes===0&&(_===null||_.lanes===0)&&(_=u.lastRenderedReducer,_!==null))try{var z=u.lastRenderedState,ie=_(z,d);if(B.hasEagerState=!0,B.eagerState=ie,Xi(ie,z))return qf(A,u,B,0),Sn===null&&Gf(),!1}catch{}finally{}if(d=xd(A,u,B,v),d!==null)return Ys(d,A,v),AT(d,u,v),!0}return!1}function ab(A,u,d,v){if(v={lane:2,revertLane:Pb(),gesture:null,action:v,hasEagerState:!1,eagerState:null,next:null},Pv(A)){if(u)throw Error(n(479))}else u=xd(A,d,v,2),u!==null&&Ys(u,A,2)}function Pv(A){var u=A.alternate;return A===qt||u!==null&&u===qt}function oT(A,u){zs=ts=!0;var d=A.pending;d===null?u.next=u:(u.next=d.next,d.next=u),A.pending=u}function AT(A,u,d){if((d&4194048)!==0){var v=u.lanes;v&=A.pendingLanes,d|=v,u.lanes=d,ii(A,d)}}var Qg={readContext:ta,use:Eu,useCallback:yn,useContext:yn,useEffect:yn,useImperativeHandle:yn,useLayoutEffect:yn,useInsertionEffect:yn,useMemo:yn,useReducer:yn,useRef:yn,useState:yn,useDebugValue:yn,useDeferredValue:yn,useTransition:yn,useSyncExternalStore:yn,useId:yn,useHostTransitionStatus:yn,useFormState:yn,useActionState:yn,useOptimistic:yn,useMemoCache:yn,useCacheRefresh:yn};Qg.useEffectEvent=yn;var lT={readContext:ta,use:Eu,useCallback:function(A,u){return Ri().memoizedState=[A,u===void 0?null:u],A},useContext:ta,useEffect:GF,useImperativeHandle:function(A,u,d){d=d!=null?d.concat([A]):null,Su(4194308,4,$F.bind(null,u,A),d)},useLayoutEffect:function(A,u){return Su(4194308,4,A,u)},useInsertionEffect:function(A,u){Su(4,2,A,u)},useMemo:function(A,u){var d=Ri();u=u===void 0?null:u;var v=A();if(Ia){Xt(!0);try{A()}finally{Xt(!1)}}return d.memoizedState=[v,u],v},useReducer:function(A,u,d){var v=Ri();if(d!==void 0){var B=d(u);if(Ia){Xt(!0);try{d(u)}finally{Xt(!1)}}}else B=u;return v.memoizedState=v.baseState=B,A={pending:null,lanes:0,dispatch:null,lastRenderedReducer:A,lastRenderedState:B},v.queue=A,A=A.dispatch=TG.bind(null,qt,A),[v.memoizedState,A]},useRef:function(A){var u=Ri();return A={current:A},u.memoizedState=A},useState:function(A){A=Sl(A);var u=A.queue,d=sT.bind(null,qt,u);return u.dispatch=d,[A.memoizedState,d]},useDebugValue:tb,useDeferredValue:function(A,u){var d=Ri();return rb(d,A,u)},useTransition:function(){var A=Sl(!1);return A=tT.bind(null,qt,A.queue,!0,!1),Ri().memoizedState=A,[!1,A]},useSyncExternalStore:function(A,u,d){var v=qt,B=Ri();if(Cr){if(d===void 0)throw Error(n(407));d=d()}else{if(d=u(),Sn===null)throw Error(n(349));(Sr&127)!==0||KA(v,u,d)}B.memoizedState=d;var _={value:d,getSnapshot:u};return B.queue=_,GF(Ig.bind(null,v,_,A),[A]),v.flags|=2048,hc(9,{destroy:void 0},Dg.bind(null,v,_,d,u),null),d},useId:function(){var A=Ri(),u=Sn.identifierPrefix;if(Cr){var d=Hs,v=js;d=(v&~(1<<32-vr(v)-1)).toString(32)+d,u="_"+u+"R_"+d,d=yi++,0<d&&(u+="H"+d.toString(32)),u+="_"}else d=Nd++,u="_"+u+"r_"+d.toString(32)+"_";return A.memoizedState=u},useHostTransitionStatus:ib,useFormState:Zo,useActionState:Zo,useOptimistic:function(A){var u=Ri();u.memoizedState=u.baseState=A;var d={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return u.queue=d,u=ab.bind(null,qt,!0,d),d.dispatch=u,[A,u]},useMemoCache:uc,useCacheRefresh:function(){return Ri().memoizedState=FG.bind(null,qt)},useEffectEvent:function(A){var u=Ri(),d={impl:A};return u.memoizedState=d,function(){if((Zr&2)!==0)throw Error(n(440));return d.impl.apply(void 0,arguments)}}},sb={readContext:ta,use:Eu,useCallback:JF,useContext:ta,useEffect:eb,useImperativeHandle:XF,useInsertionEffect:WF,useLayoutEffect:YF,useMemo:ZF,useReducer:Id,useRef:Mv,useState:function(){return Id(Jo)},useDebugValue:tb,useDeferredValue:function(A,u){var d=Wn();return eT(d,Wt.memoizedState,A,u)},useTransition:function(){var A=Id(Jo)[0],u=Wn().memoizedState;return[typeof A=="boolean"?A:_l(A),u]},useSyncExternalStore:Pd,useId:iT,useHostTransitionStatus:ib,useFormState:zA,useActionState:zA,useOptimistic:function(A,u){var d=Wn();return Nv(d,Wt,A,u)},useMemoCache:uc,useCacheRefresh:aT};sb.useEffectEvent=qF;var cT={readContext:ta,use:Eu,useCallback:JF,useContext:ta,useEffect:eb,useImperativeHandle:XF,useInsertionEffect:WF,useLayoutEffect:YF,useMemo:ZF,useReducer:Md,useRef:Mv,useState:function(){return Md(Jo)},useDebugValue:tb,useDeferredValue:function(A,u){var d=Wn();return Wt===null?rb(d,A,u):eT(d,Wt.memoizedState,A,u)},useTransition:function(){var A=Md(Jo)[0],u=Wn().memoizedState;return[typeof A=="boolean"?A:_l(A),u]},useSyncExternalStore:Pd,useId:iT,useHostTransitionStatus:ib,useFormState:Rd,useActionState:Rd,useOptimistic:function(A,u){var d=Wn();return Wt!==null?Nv(d,Wt,A,u):(d.baseState=A,[A,d.queue.dispatch])},useMemoCache:uc,useCacheRefresh:aT};cT.useEffectEvent=qF;function ob(A,u,d,v){u=A.memoizedState,d=d(v,u),d=d==null?u:h({},u,d),A.memoizedState=d,A.lanes===0&&(A.updateQueue.baseState=d)}var Ab={enqueueSetState:function(A,u,d){A=A._reactInternals;var v=xo(),B=tr(v);B.payload=u,d!=null&&(B.callback=d),u=mr(A,B,v),u!==null&&(Ys(u,A,v),Xr(u,A,v))},enqueueReplaceState:function(A,u,d){A=A._reactInternals;var v=xo(),B=tr(v);B.tag=1,B.payload=u,d!=null&&(B.callback=d),u=mr(A,B,v),u!==null&&(Ys(u,A,v),Xr(u,A,v))},enqueueForceUpdate:function(A,u){A=A._reactInternals;var d=xo(),v=tr(d);v.tag=2,u!=null&&(v.callback=u),u=mr(A,v,d),u!==null&&(Ys(u,A,d),Xr(u,A,d))}};function uT(A,u,d,v,B,_,z){return A=A.stateNode,typeof A.shouldComponentUpdate=="function"?A.shouldComponentUpdate(v,_,z):u.prototype&&u.prototype.isPureReactComponent?!MA(d,v)||!MA(B,_):!0}function fT(A,u,d,v){A=u.state,typeof u.componentWillReceiveProps=="function"&&u.componentWillReceiveProps(d,v),typeof u.UNSAFE_componentWillReceiveProps=="function"&&u.UNSAFE_componentWillReceiveProps(d,v),u.state!==A&&Ab.enqueueReplaceState(u,u.state,null)}function rh(A,u){var d=u;if("ref"in u){d={};for(var v in u)v!=="ref"&&(d[v]=u[v])}if(A=A.defaultProps){d===u&&(d=h({},d));for(var B in A)d[B]===void 0&&(d[B]=A[B])}return d}function hT(A){Vf(A)}function dT(A){console.error(A)}function gT(A){Vf(A)}function kv(A,u){try{var d=A.onUncaughtError;d(u.value,{componentStack:u.stack})}catch(v){setTimeout(function(){throw v})}}function pT(A,u,d){try{var v=A.onCaughtError;v(d.value,{componentStack:d.stack,errorBoundary:u.tag===1?u.stateNode:null})}catch(B){setTimeout(function(){throw B})}}function lb(A,u,d){return d=tr(d),d.tag=3,d.payload={element:null},d.callback=function(){kv(A,u)},d}function vT(A){return A=tr(A),A.tag=3,A}function mT(A,u,d,v){var B=d.type.getDerivedStateFromError;if(typeof B=="function"){var _=v.value;A.payload=function(){return B(_)},A.callback=function(){pT(u,d,v)}}var z=d.stateNode;z!==null&&typeof z.componentDidCatch=="function"&&(A.callback=function(){pT(u,d,v),typeof B!="function"&&(Nu===null?Nu=new Set([this]):Nu.add(this));var ie=v.stack;this.componentDidCatch(v.value,{componentStack:ie!==null?ie:""})})}function OG(A,u,d,v,B){if(d.flags|=32768,v!==null&&typeof v=="object"&&typeof v.then=="function"){if(u=d.alternate,u!==null&&bl(u,d,B,!0),d=Rn.current,d!==null){switch(d.tag){case 31:case 13:return Pr===null?$v():d.alternate===null&&wi===0&&(wi=3),d.flags&=-257,d.flags|=65536,d.lanes=B,v===Ue?d.flags|=16384:(u=d.updateQueue,u===null?d.updateQueue=new Set([v]):u.add(v),Db(A,v,B)),!1;case 22:return d.flags|=65536,v===Ue?d.flags|=16384:(u=d.updateQueue,u===null?(u={transitions:null,markerInstances:null,retryQueue:new Set([v])},d.updateQueue=u):(d=u.retryQueue,d===null?u.retryQueue=new Set([v]):d.add(v)),Db(A,v,B)),!1}throw Error(n(435,d.tag))}return Db(A,v,B),$v(),!1}if(Cr)return u=Rn.current,u!==null?((u.flags&65536)===0&&(u.flags|=256),u.flags|=65536,u.lanes=B,v!==mo&&(A=Error(n(422),{cause:v}),bu(ks(A,d)))):(v!==mo&&(u=Error(n(423),{cause:v}),bu(ks(u,d))),A=A.current.alternate,A.flags|=65536,B&=-B,A.lanes|=B,v=ks(v,d),B=lb(A.stateNode,v,B),Fi(A,B),wi!==4&&(wi=2)),!1;var _=Error(n(520),{cause:v});if(_=ks(_,d),qg===null?qg=[_]:qg.push(_),wi!==4&&(wi=2),u===null)return!0;v=ks(v,d),d=u;do{switch(d.tag){case 3:return d.flags|=65536,A=B&-B,d.lanes|=A,A=lb(d.stateNode,v,A),Fi(d,A),!1;case 1:if(u=d.type,_=d.stateNode,(d.flags&128)===0&&(typeof u.getDerivedStateFromError=="function"||_!==null&&typeof _.componentDidCatch=="function"&&(Nu===null||!Nu.has(_))))return d.flags|=65536,B&=-B,d.lanes|=B,B=vT(B),mT(B,A,d,v),Fi(d,B),!1}d=d.return}while(d!==null);return!1}var cb=Error(n(461)),ji=!1;function Ma(A,u,d,v){u.child=A===null?dr(u,null,d,v):_n(u,A.child,d,v)}function yT(A,u,d,v,B){d=d.render;var _=u.ref;if("ref"in v){var z={};for(var ie in v)ie!=="ref"&&(z[ie]=v[ie])}else z=v;return Bl(u),v=Ug(A,u,d,z,_,B),ie=Ng(),A!==null&&!ji?(Lg(A,u,B),dc(A,u,B)):(Cr&&ie&&Sg(u),u.flags|=1,Ma(A,u,v,B),u.child)}function wT(A,u,d,v,B){if(A===null){var _=d.type;return typeof _=="function"&&!Bd(_)&&_.defaultProps===void 0&&d.compare===null?(u.tag=15,u.type=_,xT(A,u,_,v,B)):(A=yu(d.type,null,v,u,u.mode,B),A.ref=u.ref,A.return=u,u.child=A)}if(_=A.child,!mb(A,B)){var z=_.memoizedProps;if(d=d.compare,d=d!==null?d:MA,d(z,v)&&A.ref===u.ref)return dc(A,u,B)}return u.flags|=1,A=Ps(_,v),A.ref=u.ref,A.return=u,u.child=A}function xT(A,u,d,v,B){if(A!==null){var _=A.memoizedProps;if(MA(_,v)&&A.ref===u.ref)if(ji=!1,u.pendingProps=v=_,mb(A,B))(A.flags&131072)!==0&&(ji=!0);else return u.lanes=A.lanes,dc(A,u,B)}return ub(A,u,d,v,B)}function bT(A,u,d,v){var B=v.children,_=A!==null?A.memoizedState:null;if(A===null&&u.stateNode===null&&(u.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),v.mode==="hidden"){if((u.flags&128)!==0){if(_=_!==null?_.baseLanes|d:d,A!==null){for(v=u.child=A.child,B=0;v!==null;)B=B|v.lanes|v.childLanes,v=v.sibling;v=B&~_}else v=0,u.child=null;return BT(A,u,_,d,v)}if((d&536870912)!==0)u.memoizedState={baseLanes:0,cachePool:null},A!==null&&ue(u,_!==null?_.cachePool:null),_!==null?Qn(u,_):Kr(),vi(u);else return v=u.lanes=536870912,BT(A,u,_!==null?_.baseLanes|d:d,d,v)}else _!==null?(ue(u,_.cachePool),Qn(u,_),mi(),u.memoizedState=null):(A!==null&&ue(u,null),Kr(),mi());return Ma(A,u,B,d),u.child}function Rg(A,u){return A!==null&&A.tag===22||u.stateNode!==null||(u.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),u.sibling}function BT(A,u,d,v,B){var _=oe();return _=_===null?null:{parent:Ai._currentValue,pool:_},u.memoizedState={baseLanes:d,cachePool:_},A!==null&&ue(u,null),Kr(),vi(u),A!==null&&bl(A,u,v,!0),u.childLanes=B,null}function Qv(A,u){return u=jv({mode:u.mode,children:u.children},A.mode),u.ref=A.ref,A.child=u,u.return=A,u}function CT(A,u,d){return _n(u,A.child,null,d),A=Qv(u,u.pendingProps),A.flags|=2,nn(u),u.memoizedState=null,A}function UG(A,u,d){var v=u.pendingProps,B=(u.flags&128)!==0;if(u.flags&=-129,A===null){if(Cr){if(v.mode==="hidden")return A=Qv(u,v),u.lanes=536870912,Rg(null,A);if(Jr(u),(A=En)?(A=MO(A,Gn),A=A!==null&&A.data==="&"?A:null,A!==null&&(u.memoizedState={dehydrated:A,treeContext:ml!==null?{id:js,overflow:Hs}:null,retryLane:536870912,hydrationErrors:null},d=Cd(A),d.return=u,u.child=d,Zi=u,En=null)):A=null,A===null)throw yl(u);return u.lanes=536870912,null}return Qv(u,v)}var _=A.memoizedState;if(_!==null){var z=_.dehydrated;if(Jr(u),B)if(u.flags&256)u.flags&=-257,u=CT(A,u,d);else if(u.memoizedState!==null)u.child=A.child,u.flags|=128,u=null;else throw Error(n(558));else if(ji||bl(A,u,d,!1),B=(d&A.childLanes)!==0,ji||B){if(v=Sn,v!==null&&(z=fi(v,d),z!==0&&z!==_.retryLane))throw _.retryLane=z,RA(A,z),Ys(v,A,z),cb;$v(),u=CT(A,u,d)}else A=_.treeContext,En=eA(z.nextSibling),Zi=u,Cr=!0,Da=null,Gn=!1,A!==null&&Tv(u,A),u=Qv(u,v),u.flags|=4096;return u}return A=Ps(A.child,{mode:v.mode,children:v.children}),A.ref=u.ref,u.child=A,A.return=u,A}function Rv(A,u){var d=u.ref;if(d===null)A!==null&&A.ref!==null&&(u.flags|=4194816);else{if(typeof d!="function"&&typeof d!="object")throw Error(n(284));(A===null||A.ref!==d)&&(u.flags|=4194816)}}function ub(A,u,d,v,B){return Bl(u),d=Ug(A,u,d,v,void 0,B),v=Ng(),A!==null&&!ji?(Lg(A,u,B),dc(A,u,B)):(Cr&&v&&Sg(u),u.flags|=1,Ma(A,u,d,B),u.child)}function ET(A,u,d,v,B,_){return Bl(u),u.updateQueue=null,d=HA(u,v,d,B),Ld(A),v=Ng(),A!==null&&!ji?(Lg(A,u,_),dc(A,u,_)):(Cr&&v&&Sg(u),u.flags|=1,Ma(A,u,d,_),u.child)}function _T(A,u,d,v,B){if(Bl(u),u.stateNode===null){var _=Ji,z=d.contextType;typeof z=="object"&&z!==null&&(_=ta(z)),_=new d(v,_),u.memoizedState=_.state!==null&&_.state!==void 0?_.state:null,_.updater=Ab,u.stateNode=_,_._reactInternals=u,_=u.stateNode,_.props=v,_.state=u.memoizedState,_.refs={},vt(u),z=d.contextType,_.context=typeof z=="object"&&z!==null?ta(z):Ji,_.state=u.memoizedState,z=d.getDerivedStateFromProps,typeof z=="function"&&(ob(u,d,z,v),_.state=u.memoizedState),typeof d.getDerivedStateFromProps=="function"||typeof _.getSnapshotBeforeUpdate=="function"||typeof _.UNSAFE_componentWillMount!="function"&&typeof _.componentWillMount!="function"||(z=_.state,typeof _.componentWillMount=="function"&&_.componentWillMount(),typeof _.UNSAFE_componentWillMount=="function"&&_.UNSAFE_componentWillMount(),z!==_.state&&Ab.enqueueReplaceState(_,_.state,null),gi(u,v,_,B),mn(),_.state=u.memoizedState),typeof _.componentDidMount=="function"&&(u.flags|=4194308),v=!0}else if(A===null){_=u.stateNode;var ie=u.memoizedProps,Ce=rh(d,ie);_.props=Ce;var Ke=_.context,Je=d.contextType;z=Ji,typeof Je=="object"&&Je!==null&&(z=ta(Je));var it=d.getDerivedStateFromProps;Je=typeof it=="function"||typeof _.getSnapshotBeforeUpdate=="function",ie=u.pendingProps!==ie,Je||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||(ie||Ke!==z)&&fT(u,_,v,z),Bt=!1;var Ve=u.memoizedState;_.state=Ve,gi(u,v,_,B),mn(),Ke=u.memoizedState,ie||Ve!==Ke||Bt?(typeof it=="function"&&(ob(u,d,it,v),Ke=u.memoizedState),(Ce=Bt||uT(u,d,Ce,v,Ve,Ke,z))?(Je||typeof _.UNSAFE_componentWillMount!="function"&&typeof _.componentWillMount!="function"||(typeof _.componentWillMount=="function"&&_.componentWillMount(),typeof _.UNSAFE_componentWillMount=="function"&&_.UNSAFE_componentWillMount()),typeof _.componentDidMount=="function"&&(u.flags|=4194308)):(typeof _.componentDidMount=="function"&&(u.flags|=4194308),u.memoizedProps=v,u.memoizedState=Ke),_.props=v,_.state=Ke,_.context=z,v=Ce):(typeof _.componentDidMount=="function"&&(u.flags|=4194308),v=!1)}else{_=u.stateNode,kn(A,u),z=u.memoizedProps,Je=rh(d,z),_.props=Je,it=u.pendingProps,Ve=_.context,Ke=d.contextType,Ce=Ji,typeof Ke=="object"&&Ke!==null&&(Ce=ta(Ke)),ie=d.getDerivedStateFromProps,(Ke=typeof ie=="function"||typeof _.getSnapshotBeforeUpdate=="function")||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||(z!==it||Ve!==Ce)&&fT(u,_,v,Ce),Bt=!1,Ve=u.memoizedState,_.state=Ve,gi(u,v,_,B),mn();var qe=u.memoizedState;z!==it||Ve!==qe||Bt||A!==null&&A.dependencies!==null&&Td(A.dependencies)?(typeof ie=="function"&&(ob(u,d,ie,v),qe=u.memoizedState),(Je=Bt||uT(u,d,Je,v,Ve,qe,Ce)||A!==null&&A.dependencies!==null&&Td(A.dependencies))?(Ke||typeof _.UNSAFE_componentWillUpdate!="function"&&typeof _.componentWillUpdate!="function"||(typeof _.componentWillUpdate=="function"&&_.componentWillUpdate(v,qe,Ce),typeof _.UNSAFE_componentWillUpdate=="function"&&_.UNSAFE_componentWillUpdate(v,qe,Ce)),typeof _.componentDidUpdate=="function"&&(u.flags|=4),typeof _.getSnapshotBeforeUpdate=="function"&&(u.flags|=1024)):(typeof _.componentDidUpdate!="function"||z===A.memoizedProps&&Ve===A.memoizedState||(u.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||z===A.memoizedProps&&Ve===A.memoizedState||(u.flags|=1024),u.memoizedProps=v,u.memoizedState=qe),_.props=v,_.state=qe,_.context=Ce,v=Je):(typeof _.componentDidUpdate!="function"||z===A.memoizedProps&&Ve===A.memoizedState||(u.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||z===A.memoizedProps&&Ve===A.memoizedState||(u.flags|=1024),v=!1)}return _=v,Rv(A,u),v=(u.flags&128)!==0,_||v?(_=u.stateNode,d=v&&typeof d.getDerivedStateFromError!="function"?null:_.render(),u.flags|=1,A!==null&&v?(u.child=_n(u,A.child,null,B),u.child=_n(u,null,d,B)):Ma(A,u,d,B),u.memoizedState=_.state,A=u.child):A=dc(A,u,B),A}function ST(A,u,d,v){return lc(),u.flags|=256,Ma(A,u,d,v),u.child}var fb={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function hb(A){return{baseLanes:A,cachePool:me()}}function db(A,u,d){return A=A!==null?A.childLanes&~d:0,u&&(A|=wo),A}function FT(A,u,d){var v=u.pendingProps,B=!1,_=(u.flags&128)!==0,z;if((z=_)||(z=A!==null&&A.memoizedState===null?!1:(Ir.current&2)!==0),z&&(B=!0,u.flags&=-129),z=(u.flags&32)!==0,u.flags&=-33,A===null){if(Cr){if(B?li(u):mi(),(A=En)?(A=MO(A,Gn),A=A!==null&&A.data!=="&"?A:null,A!==null&&(u.memoizedState={dehydrated:A,treeContext:ml!==null?{id:js,overflow:Hs}:null,retryLane:536870912,hydrationErrors:null},d=Cd(A),d.return=u,u.child=d,Zi=u,En=null)):A=null,A===null)throw yl(u);return $b(A)?u.lanes=32:u.lanes=536870912,null}var ie=v.children;return v=v.fallback,B?(mi(),B=u.mode,ie=jv({mode:"hidden",children:ie},B),v=vl(v,B,d,null),ie.return=u,v.return=u,ie.sibling=v,u.child=ie,v=u.child,v.memoizedState=hb(d),v.childLanes=db(A,z,d),u.memoizedState=fb,Rg(null,v)):(li(u),gb(u,ie))}var Ce=A.memoizedState;if(Ce!==null&&(ie=Ce.dehydrated,ie!==null)){if(_)u.flags&256?(li(u),u.flags&=-257,u=pb(A,u,d)):u.memoizedState!==null?(mi(),u.child=A.child,u.flags|=128,u=null):(mi(),ie=v.fallback,B=u.mode,v=jv({mode:"visible",children:v.children},B),ie=vl(ie,B,d,null),ie.flags|=2,v.return=u,ie.return=u,v.sibling=ie,u.child=v,_n(u,A.child,null,d),v=u.child,v.memoizedState=hb(d),v.childLanes=db(A,z,d),u.memoizedState=fb,u=Rg(null,v));else if(li(u),$b(ie)){if(z=ie.nextSibling&&ie.nextSibling.dataset,z)var Ke=z.dgst;z=Ke,v=Error(n(419)),v.stack="",v.digest=z,bu({value:v,source:null,stack:null}),u=pb(A,u,d)}else if(ji||bl(A,u,d,!1),z=(d&A.childLanes)!==0,ji||z){if(z=Sn,z!==null&&(v=fi(z,d),v!==0&&v!==Ce.retryLane))throw Ce.retryLane=v,RA(A,v),Ys(z,A,v),cb;Yb(ie)||$v(),u=pb(A,u,d)}else Yb(ie)?(u.flags|=192,u.child=A.child,u=null):(A=Ce.treeContext,En=eA(ie.nextSibling),Zi=u,Cr=!0,Da=null,Gn=!1,A!==null&&Tv(u,A),u=gb(u,v.children),u.flags|=4096);return u}return B?(mi(),ie=v.fallback,B=u.mode,Ce=A.child,Ke=Ce.sibling,v=Ps(Ce,{mode:"hidden",children:v.children}),v.subtreeFlags=Ce.subtreeFlags&65011712,Ke!==null?ie=Ps(Ke,ie):(ie=vl(ie,B,d,null),ie.flags|=2),ie.return=u,v.return=u,v.sibling=ie,u.child=v,Rg(null,v),v=u.child,ie=A.child.memoizedState,ie===null?ie=hb(d):(B=ie.cachePool,B!==null?(Ce=Ai._currentValue,B=B.parent!==Ce?{parent:Ce,pool:Ce}:B):B=me(),ie={baseLanes:ie.baseLanes|d,cachePool:B}),v.memoizedState=ie,v.childLanes=db(A,z,d),u.memoizedState=fb,Rg(A.child,v)):(li(u),d=A.child,A=d.sibling,d=Ps(d,{mode:"visible",children:v.children}),d.return=u,d.sibling=null,A!==null&&(z=u.deletions,z===null?(u.deletions=[A],u.flags|=16):z.push(A)),u.child=d,u.memoizedState=null,d)}function gb(A,u){return u=jv({mode:"visible",children:u},A.mode),u.return=A,A.child=u}function jv(A,u){return A=ga(22,A,null,u),A.lanes=0,A}function pb(A,u,d){return _n(u,A.child,null,d),A=gb(u,u.pendingProps.children),A.flags|=2,u.memoizedState=null,A}function TT(A,u,d){A.lanes|=u;var v=A.alternate;v!==null&&(v.lanes|=u),Bu(A.return,u,d)}function vb(A,u,d,v,B,_){var z=A.memoizedState;z===null?A.memoizedState={isBackwards:u,rendering:null,renderingStartTime:0,last:v,tail:d,tailMode:B,treeForkCount:_}:(z.isBackwards=u,z.rendering=null,z.renderingStartTime=0,z.last=v,z.tail=d,z.tailMode=B,z.treeForkCount=_)}function OT(A,u,d){var v=u.pendingProps,B=v.revealOrder,_=v.tail;v=v.children;var z=Ir.current,ie=(z&2)!==0;if(ie?(z=z&1|2,u.flags|=128):z&=1,j(Ir,z),Ma(A,u,v,d),v=Cr?Xf:0,!ie&&A!==null&&(A.flags&128)!==0)e:for(A=u.child;A!==null;){if(A.tag===13)A.memoizedState!==null&&TT(A,d,u);else if(A.tag===19)TT(A,d,u);else if(A.child!==null){A.child.return=A,A=A.child;continue}if(A===u)break e;for(;A.sibling===null;){if(A.return===null||A.return===u)break e;A=A.return}A.sibling.return=A.return,A=A.sibling}switch(B){case"forwards":for(d=u.child,B=null;d!==null;)A=d.alternate,A!==null&&va(A)===null&&(B=d),d=d.sibling;d=B,d===null?(B=u.child,u.child=null):(B=d.sibling,d.sibling=null),vb(u,!1,B,d,_,v);break;case"backwards":case"unstable_legacy-backwards":for(d=null,B=u.child,u.child=null;B!==null;){if(A=B.alternate,A!==null&&va(A)===null){u.child=B;break}A=B.sibling,B.sibling=d,d=B,B=A}vb(u,!0,d,null,_,v);break;case"together":vb(u,!1,null,null,void 0,v);break;default:u.memoizedState=null}return u.child}function dc(A,u,d){if(A!==null&&(u.dependencies=A.dependencies),Uu|=u.lanes,(d&u.childLanes)===0)if(A!==null){if(bl(A,u,d,!1),(d&u.childLanes)===0)return null}else return null;if(A!==null&&u.child!==A.child)throw Error(n(153));if(u.child!==null){for(A=u.child,d=Ps(A,A.pendingProps),u.child=d,d.return=u;A.sibling!==null;)A=A.sibling,d=d.sibling=Ps(A,A.pendingProps),d.return=u;d.sibling=null}return u.child}function mb(A,u){return(A.lanes&u)!==0?!0:(A=A.dependencies,!!(A!==null&&Td(A)))}function NG(A,u,d){switch(u.tag){case 3:Be(u,u.stateNode.containerInfo),xl(u,Ai,A.memoizedState.cache),lc();break;case 27:case 5:be(u);break;case 4:Be(u,u.stateNode.containerInfo);break;case 10:xl(u,u.type,u.memoizedProps.value);break;case 31:if(u.memoizedState!==null)return u.flags|=128,Jr(u),null;break;case 13:var v=u.memoizedState;if(v!==null)return v.dehydrated!==null?(li(u),u.flags|=128,null):(d&u.child.childLanes)!==0?FT(A,u,d):(li(u),A=dc(A,u,d),A!==null?A.sibling:null);li(u);break;case 19:var B=(A.flags&128)!==0;if(v=(d&u.childLanes)!==0,v||(bl(A,u,d,!1),v=(d&u.childLanes)!==0),B){if(v)return OT(A,u,d);u.flags|=128}if(B=u.memoizedState,B!==null&&(B.rendering=null,B.tail=null,B.lastEffect=null),j(Ir,Ir.current),v)break;return null;case 22:return u.lanes=0,bT(A,u,d,u.pendingProps);case 24:xl(u,Ai,A.memoizedState.cache)}return dc(A,u,d)}function UT(A,u,d){if(A!==null)if(A.memoizedProps!==u.pendingProps)ji=!0;else{if(!mb(A,d)&&(u.flags&128)===0)return ji=!1,NG(A,u,d);ji=(A.flags&131072)!==0}else ji=!1,Cr&&(u.flags&1048576)!==0&&Fv(u,Xf,u.index);switch(u.lanes=0,u.tag){case 16:e:{var v=u.pendingProps;if(A=Qe(u.elementType),u.type=A,typeof A=="function")Bd(A)?(v=rh(A,v),u.tag=1,u=_T(null,u,A,v,d)):(u.tag=0,u=ub(null,u,A,v,d));else{if(A!=null){var B=A.$$typeof;if(B===T){u.tag=11,u=yT(null,u,A,v,d);break e}else if(B===P){u.tag=14,u=wT(null,u,A,v,d);break e}}throw u=J(A)||A,Error(n(306,u,""))}}return u;case 0:return ub(A,u,u.type,u.pendingProps,d);case 1:return v=u.type,B=rh(v,u.pendingProps),_T(A,u,v,B,d);case 3:e:{if(Be(u,u.stateNode.containerInfo),A===null)throw Error(n(387));v=u.pendingProps;var _=u.memoizedState;B=_.element,kn(A,u),gi(u,v,null,d);var z=u.memoizedState;if(v=z.cache,xl(u,Ai,v),v!==_.cache&&cc(u,[Ai],d,!0),mn(),v=z.element,_.isDehydrated)if(_={element:v,isDehydrated:!1,cache:z.cache},u.updateQueue.baseState=_,u.memoizedState=_,u.flags&256){u=ST(A,u,v,d);break e}else if(v!==B){B=ks(Error(n(424)),u),bu(B),u=ST(A,u,v,d);break e}else{switch(A=u.stateNode.containerInfo,A.nodeType){case 9:A=A.body;break;default:A=A.nodeName==="HTML"?A.ownerDocument.body:A}for(En=eA(A.firstChild),Zi=u,Cr=!0,Da=null,Gn=!0,d=dr(u,null,v,d),u.child=d;d;)d.flags=d.flags&-3|4096,d=d.sibling}else{if(lc(),v===B){u=dc(A,u,d);break e}Ma(A,u,v,d)}u=u.child}return u;case 26:return Rv(A,u),A===null?(d=HO(u.type,null,u.pendingProps,null))?u.memoizedState=d:Cr||(d=u.type,A=u.pendingProps,v=nm(re.current).createElement(d),v[ce]=u,v[de]=A,Pa(v,d,A),_t(v),u.stateNode=v):u.memoizedState=HO(u.type,A.memoizedProps,u.pendingProps,A.memoizedState),null;case 27:return be(u),A===null&&Cr&&(v=u.stateNode=QO(u.type,u.pendingProps,re.current),Zi=u,Gn=!0,B=En,Mu(u.type)?(Xb=B,En=eA(v.firstChild)):En=B),Ma(A,u,u.pendingProps.children,d),Rv(A,u),A===null&&(u.flags|=4194304),u.child;case 5:return A===null&&Cr&&((B=v=En)&&(v=Aq(v,u.type,u.pendingProps,Gn),v!==null?(u.stateNode=v,Zi=u,En=eA(v.firstChild),Gn=!1,B=!0):B=!1),B||yl(u)),be(u),B=u.type,_=u.pendingProps,z=A!==null?A.memoizedProps:null,v=_.children,Gb(B,_)?v=null:z!==null&&Gb(B,z)&&(u.flags|=32),u.memoizedState!==null&&(B=Ug(A,u,Zx,null,null,d),tp._currentValue=B),Rv(A,u),Ma(A,u,v,d),u.child;case 6:return A===null&&Cr&&((A=d=En)&&(d=lq(d,u.pendingProps,Gn),d!==null?(u.stateNode=d,Zi=u,En=null,A=!0):A=!1),A||yl(u)),null;case 13:return FT(A,u,d);case 4:return Be(u,u.stateNode.containerInfo),v=u.pendingProps,A===null?u.child=_n(u,null,v,d):Ma(A,u,v,d),u.child;case 11:return yT(A,u,u.type,u.pendingProps,d);case 7:return Ma(A,u,u.pendingProps,d),u.child;case 8:return Ma(A,u,u.pendingProps.children,d),u.child;case 12:return Ma(A,u,u.pendingProps.children,d),u.child;case 10:return v=u.pendingProps,xl(u,u.type,v.value),Ma(A,u,v.children,d),u.child;case 9:return B=u.type._context,v=u.pendingProps.children,Bl(u),B=ta(B),v=v(B),u.flags|=1,Ma(A,u,v,d),u.child;case 14:return wT(A,u,u.type,u.pendingProps,d);case 15:return xT(A,u,u.type,u.pendingProps,d);case 19:return OT(A,u,d);case 31:return UG(A,u,d);case 22:return bT(A,u,d,u.pendingProps);case 24:return Bl(u),v=ta(Ai),A===null?(B=oe(),B===null&&(B=Sn,_=Cu(),B.pooledCache=_,_.refCount++,_!==null&&(B.pooledCacheLanes|=d),B=_),u.memoizedState={parent:v,cache:B},vt(u),xl(u,Ai,B)):((A.lanes&d)!==0&&(kn(A,u),gi(u,null,null,d),mn()),B=A.memoizedState,_=u.memoizedState,B.parent!==v?(B={parent:v,cache:v},u.memoizedState=B,u.lanes===0&&(u.memoizedState=u.updateQueue.baseState=B),xl(u,Ai,v)):(v=_.cache,xl(u,Ai,v),v!==B.cache&&cc(u,[Ai],d,!0))),Ma(A,u,u.pendingProps.children,d),u.child;case 29:throw u.pendingProps}throw Error(n(156,u.tag))}function gc(A){A.flags|=4}function yb(A,u,d,v,B){if((u=(A.mode&32)!==0)&&(u=!1),u){if(A.flags|=16777216,(B&335544128)===B)if(A.stateNode.complete)A.flags|=8192;else if(iO())A.flags|=8192;else throw We=Ue,Re}else A.flags&=-16777217}function NT(A,u){if(u.type!=="stylesheet"||(u.state.loading&4)!==0)A.flags&=-16777217;else if(A.flags|=16777216,!qO(u))if(iO())A.flags|=8192;else throw We=Ue,Re}function Hv(A,u){u!==null&&(A.flags|=4),A.flags&16384&&(u=A.tag!==22?In():536870912,A.lanes|=u,zd|=u)}function jg(A,u){if(!Cr)switch(A.tailMode){case"hidden":u=A.tail;for(var d=null;u!==null;)u.alternate!==null&&(d=u),u=u.sibling;d===null?A.tail=null:d.sibling=null;break;case"collapsed":d=A.tail;for(var v=null;d!==null;)d.alternate!==null&&(v=d),d=d.sibling;v===null?u||A.tail===null?A.tail=null:A.tail.sibling=null:v.sibling=null}}function jn(A){var u=A.alternate!==null&&A.alternate.child===A.child,d=0,v=0;if(u)for(var B=A.child;B!==null;)d|=B.lanes|B.childLanes,v|=B.subtreeFlags&65011712,v|=B.flags&65011712,B.return=A,B=B.sibling;else for(B=A.child;B!==null;)d|=B.lanes|B.childLanes,v|=B.subtreeFlags,v|=B.flags,B.return=A,B=B.sibling;return A.subtreeFlags|=v,A.childLanes=d,u}function LG(A,u,d){var v=u.pendingProps;switch(Sd(u),u.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return jn(u),null;case 1:return jn(u),null;case 3:return d=u.stateNode,v=null,A!==null&&(v=A.memoizedState.cache),u.memoizedState.cache!==v&&(u.flags|=2048),Ks(Ai),ae(),d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null),(A===null||A.child===null)&&(ea(u)?gc(u):A===null||A.memoizedState.isDehydrated&&(u.flags&256)===0||(u.flags|=1024,Tg())),jn(u),null;case 26:var B=u.type,_=u.memoizedState;return A===null?(gc(u),_!==null?(jn(u),NT(u,_)):(jn(u),yb(u,B,null,v,d))):_?_!==A.memoizedState?(gc(u),jn(u),NT(u,_)):(jn(u),u.flags&=-16777217):(A=A.memoizedProps,A!==v&&gc(u),jn(u),yb(u,B,A,v,d)),null;case 27:if(ke(u),d=re.current,B=u.type,A!==null&&u.stateNode!=null)A.memoizedProps!==v&&gc(u);else{if(!v){if(u.stateNode===null)throw Error(n(166));return jn(u),null}A=K.current,ea(u)?Fg(u):(A=QO(B,v,d),u.stateNode=A,gc(u))}return jn(u),null;case 5:if(ke(u),B=u.type,A!==null&&u.stateNode!=null)A.memoizedProps!==v&&gc(u);else{if(!v){if(u.stateNode===null)throw Error(n(166));return jn(u),null}if(_=K.current,ea(u))Fg(u);else{var z=nm(re.current);switch(_){case 1:_=z.createElementNS("http://www.w3.org/2000/svg",B);break;case 2:_=z.createElementNS("http://www.w3.org/1998/Math/MathML",B);break;default:switch(B){case"svg":_=z.createElementNS("http://www.w3.org/2000/svg",B);break;case"math":_=z.createElementNS("http://www.w3.org/1998/Math/MathML",B);break;case"script":_=z.createElement("div"),_.innerHTML="<script><\/script>",_=_.removeChild(_.firstChild);break;case"select":_=typeof v.is=="string"?z.createElement("select",{is:v.is}):z.createElement("select"),v.multiple?_.multiple=!0:v.size&&(_.size=v.size);break;default:_=typeof v.is=="string"?z.createElement(B,{is:v.is}):z.createElement(B)}}_[ce]=u,_[de]=v;e:for(z=u.child;z!==null;){if(z.tag===5||z.tag===6)_.appendChild(z.stateNode);else if(z.tag!==4&&z.tag!==27&&z.child!==null){z.child.return=z,z=z.child;continue}if(z===u)break e;for(;z.sibling===null;){if(z.return===null||z.return===u)break e;z=z.return}z.sibling.return=z.return,z=z.sibling}u.stateNode=_;e:switch(Pa(_,B,v),B){case"button":case"input":case"select":case"textarea":v=!!v.autoFocus;break e;case"img":v=!0;break e;default:v=!1}v&&gc(u)}}return jn(u),yb(u,u.type,A===null?null:A.memoizedProps,u.pendingProps,d),null;case 6:if(A&&u.stateNode!=null)A.memoizedProps!==v&&gc(u);else{if(typeof v!="string"&&u.stateNode===null)throw Error(n(166));if(A=re.current,ea(u)){if(A=u.stateNode,d=u.memoizedProps,v=null,B=Zi,B!==null)switch(B.tag){case 27:case 5:v=B.memoizedProps}A[ce]=u,A=!!(A.nodeValue===d||v!==null&&v.suppressHydrationWarning===!0||FO(A.nodeValue,d)),A||yl(u,!0)}else A=nm(A).createTextNode(v),A[ce]=u,u.stateNode=A}return jn(u),null;case 31:if(d=u.memoizedState,A===null||A.memoizedState!==null){if(v=ea(u),d!==null){if(A===null){if(!v)throw Error(n(318));if(A=u.memoizedState,A=A!==null?A.dehydrated:null,!A)throw Error(n(557));A[ce]=u}else lc(),(u.flags&128)===0&&(u.memoizedState=null),u.flags|=4;jn(u),A=!1}else d=Tg(),A!==null&&A.memoizedState!==null&&(A.memoizedState.hydrationErrors=d),A=!0;if(!A)return u.flags&256?(nn(u),u):(nn(u),null);if((u.flags&128)!==0)throw Error(n(558))}return jn(u),null;case 13:if(v=u.memoizedState,A===null||A.memoizedState!==null&&A.memoizedState.dehydrated!==null){if(B=ea(u),v!==null&&v.dehydrated!==null){if(A===null){if(!B)throw Error(n(318));if(B=u.memoizedState,B=B!==null?B.dehydrated:null,!B)throw Error(n(317));B[ce]=u}else lc(),(u.flags&128)===0&&(u.memoizedState=null),u.flags|=4;jn(u),B=!1}else B=Tg(),A!==null&&A.memoizedState!==null&&(A.memoizedState.hydrationErrors=B),B=!0;if(!B)return u.flags&256?(nn(u),u):(nn(u),null)}return nn(u),(u.flags&128)!==0?(u.lanes=d,u):(d=v!==null,A=A!==null&&A.memoizedState!==null,d&&(v=u.child,B=null,v.alternate!==null&&v.alternate.memoizedState!==null&&v.alternate.memoizedState.cachePool!==null&&(B=v.alternate.memoizedState.cachePool.pool),_=null,v.memoizedState!==null&&v.memoizedState.cachePool!==null&&(_=v.memoizedState.cachePool.pool),_!==B&&(v.flags|=2048)),d!==A&&d&&(u.child.flags|=8192),Hv(u,u.updateQueue),jn(u),null);case 4:return ae(),A===null&&jb(u.stateNode.containerInfo),jn(u),null;case 10:return Ks(u.type),jn(u),null;case 19:if(L(Ir),v=u.memoizedState,v===null)return jn(u),null;if(B=(u.flags&128)!==0,_=v.rendering,_===null)if(B)jg(v,!1);else{if(wi!==0||A!==null&&(A.flags&128)!==0)for(A=u.child;A!==null;){if(_=va(A),_!==null){for(u.flags|=128,jg(v,!1),A=_.updateQueue,u.updateQueue=A,Hv(u,A),u.subtreeFlags=0,A=d,d=u.child;d!==null;)Yf(d,A),d=d.sibling;return j(Ir,Ir.current&1|2),Cr&&xs(u,v.treeForkCount),u.child}A=A.sibling}v.tail!==null&&Vt()>qv&&(u.flags|=128,B=!0,jg(v,!1),u.lanes=4194304)}else{if(!B)if(A=va(_),A!==null){if(u.flags|=128,B=!0,A=A.updateQueue,u.updateQueue=A,Hv(u,A),jg(v,!0),v.tail===null&&v.tailMode==="hidden"&&!_.alternate&&!Cr)return jn(u),null}else 2*Vt()-v.renderingStartTime>qv&&d!==536870912&&(u.flags|=128,B=!0,jg(v,!1),u.lanes=4194304);v.isBackwards?(_.sibling=u.child,u.child=_):(A=v.last,A!==null?A.sibling=_:u.child=_,v.last=_)}return v.tail!==null?(A=v.tail,v.rendering=A,v.tail=A.sibling,v.renderingStartTime=Vt(),A.sibling=null,d=Ir.current,j(Ir,B?d&1|2:d&1),Cr&&xs(u,v.treeForkCount),A):(jn(u),null);case 22:case 23:return nn(u),Ti(),v=u.memoizedState!==null,A!==null?A.memoizedState!==null!==v&&(u.flags|=8192):v&&(u.flags|=8192),v?(d&536870912)!==0&&(u.flags&128)===0&&(jn(u),u.subtreeFlags&6&&(u.flags|=8192)):jn(u),d=u.updateQueue,d!==null&&Hv(u,d.retryQueue),d=null,A!==null&&A.memoizedState!==null&&A.memoizedState.cachePool!==null&&(d=A.memoizedState.cachePool.pool),v=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(v=u.memoizedState.cachePool.pool),v!==d&&(u.flags|=2048),A!==null&&L(ne),null;case 24:return d=null,A!==null&&(d=A.memoizedState.cache),u.memoizedState.cache!==d&&(u.flags|=2048),Ks(Ai),jn(u),null;case 25:return null;case 30:return null}throw Error(n(156,u.tag))}function DG(A,u){switch(Sd(u),u.tag){case 1:return A=u.flags,A&65536?(u.flags=A&-65537|128,u):null;case 3:return Ks(Ai),ae(),A=u.flags,(A&65536)!==0&&(A&128)===0?(u.flags=A&-65537|128,u):null;case 26:case 27:case 5:return ke(u),null;case 31:if(u.memoizedState!==null){if(nn(u),u.alternate===null)throw Error(n(340));lc()}return A=u.flags,A&65536?(u.flags=A&-65537|128,u):null;case 13:if(nn(u),A=u.memoizedState,A!==null&&A.dehydrated!==null){if(u.alternate===null)throw Error(n(340));lc()}return A=u.flags,A&65536?(u.flags=A&-65537|128,u):null;case 19:return L(Ir),null;case 4:return ae(),null;case 10:return Ks(u.type),null;case 22:case 23:return nn(u),Ti(),A!==null&&L(ne),A=u.flags,A&65536?(u.flags=A&-65537|128,u):null;case 24:return Ks(Ai),null;case 25:return null;default:return null}}function LT(A,u){switch(Sd(u),u.tag){case 3:Ks(Ai),ae();break;case 26:case 27:case 5:ke(u);break;case 4:ae();break;case 31:u.memoizedState!==null&&nn(u);break;case 13:nn(u);break;case 19:L(Ir);break;case 10:Ks(u.type);break;case 22:case 23:nn(u),Ti(),A!==null&&L(ne);break;case 24:Ks(Ai)}}function Hg(A,u){try{var d=u.updateQueue,v=d!==null?d.lastEffect:null;if(v!==null){var B=v.next;d=B;do{if((d.tag&A)===A){v=void 0;var _=d.create,z=d.inst;v=_(),z.destroy=v}d=d.next}while(d!==B)}}catch(ie){sn(u,u.return,ie)}}function Tu(A,u,d){try{var v=u.updateQueue,B=v!==null?v.lastEffect:null;if(B!==null){var _=B.next;v=_;do{if((v.tag&A)===A){var z=v.inst,ie=z.destroy;if(ie!==void 0){z.destroy=void 0,B=u;var Ce=d,Ke=ie;try{Ke()}catch(Je){sn(B,Ce,Je)}}}v=v.next}while(v!==_)}}catch(Je){sn(u,u.return,Je)}}function DT(A){var u=A.updateQueue;if(u!==null){var d=A.stateNode;try{pi(u,d)}catch(v){sn(A,A.return,v)}}}function IT(A,u,d){d.props=rh(A.type,A.memoizedProps),d.state=A.memoizedState;try{d.componentWillUnmount()}catch(v){sn(A,u,v)}}function Kg(A,u){try{var d=A.ref;if(d!==null){switch(A.tag){case 26:case 27:case 5:var v=A.stateNode;break;case 30:v=A.stateNode;break;default:v=A.stateNode}typeof d=="function"?A.refCleanup=d(v):d.current=v}}catch(B){sn(A,u,B)}}function Fl(A,u){var d=A.ref,v=A.refCleanup;if(d!==null)if(typeof v=="function")try{v()}catch(B){sn(A,u,B)}finally{A.refCleanup=null,A=A.alternate,A!=null&&(A.refCleanup=null)}else if(typeof d=="function")try{d(null)}catch(B){sn(A,u,B)}else d.current=null}function MT(A){var u=A.type,d=A.memoizedProps,v=A.stateNode;try{e:switch(u){case"button":case"input":case"select":case"textarea":d.autoFocus&&v.focus();break e;case"img":d.src?v.src=d.src:d.srcSet&&(v.srcset=d.srcSet)}}catch(B){sn(A,A.return,B)}}function wb(A,u,d){try{var v=A.stateNode;rq(v,A.type,d,u),v[de]=u}catch(B){sn(A,A.return,B)}}function PT(A){return A.tag===5||A.tag===3||A.tag===26||A.tag===27&&Mu(A.type)||A.tag===4}function xb(A){e:for(;;){for(;A.sibling===null;){if(A.return===null||PT(A.return))return null;A=A.return}for(A.sibling.return=A.return,A=A.sibling;A.tag!==5&&A.tag!==6&&A.tag!==18;){if(A.tag===27&&Mu(A.type)||A.flags&2||A.child===null||A.tag===4)continue e;A.child.return=A,A=A.child}if(!(A.flags&2))return A.stateNode}}function bb(A,u,d){var v=A.tag;if(v===5||v===6)A=A.stateNode,u?(d.nodeType===9?d.body:d.nodeName==="HTML"?d.ownerDocument.body:d).insertBefore(A,u):(u=d.nodeType===9?d.body:d.nodeName==="HTML"?d.ownerDocument.body:d,u.appendChild(A),d=d._reactRootContainer,d!=null||u.onclick!==null||(u.onclick=uo));else if(v!==4&&(v===27&&Mu(A.type)&&(d=A.stateNode,u=null),A=A.child,A!==null))for(bb(A,u,d),A=A.sibling;A!==null;)bb(A,u,d),A=A.sibling}function Kv(A,u,d){var v=A.tag;if(v===5||v===6)A=A.stateNode,u?d.insertBefore(A,u):d.appendChild(A);else if(v!==4&&(v===27&&Mu(A.type)&&(d=A.stateNode),A=A.child,A!==null))for(Kv(A,u,d),A=A.sibling;A!==null;)Kv(A,u,d),A=A.sibling}function kT(A){var u=A.stateNode,d=A.memoizedProps;try{for(var v=A.type,B=u.attributes;B.length;)u.removeAttributeNode(B[0]);Pa(u,v,d),u[ce]=A,u[de]=d}catch(_){sn(A,A.return,_)}}var pc=!1,Hi=!1,Bb=!1,QT=typeof WeakSet=="function"?WeakSet:Set,ma=null;function IG(A,u){if(A=A.containerInfo,zb=cm,A=kA(A),Yo(A)){if("selectionStart"in A)var d={start:A.selectionStart,end:A.selectionEnd};else e:{d=(d=A.ownerDocument)&&d.defaultView||window;var v=d.getSelection&&d.getSelection();if(v&&v.rangeCount!==0){d=v.anchorNode;var B=v.anchorOffset,_=v.focusNode;v=v.focusOffset;try{d.nodeType,_.nodeType}catch{d=null;break e}var z=0,ie=-1,Ce=-1,Ke=0,Je=0,it=A,Ve=null;t:for(;;){for(var qe;it!==d||B!==0&&it.nodeType!==3||(ie=z+B),it!==_||v!==0&&it.nodeType!==3||(Ce=z+v),it.nodeType===3&&(z+=it.nodeValue.length),(qe=it.firstChild)!==null;)Ve=it,it=qe;for(;;){if(it===A)break t;if(Ve===d&&++Ke===B&&(ie=z),Ve===_&&++Je===v&&(Ce=z),(qe=it.nextSibling)!==null)break;it=Ve,Ve=it.parentNode}it=qe}d=ie===-1||Ce===-1?null:{start:ie,end:Ce}}else d=null}d=d||{start:0,end:0}}else d=null;for(Vb={focusedElem:A,selectionRange:d},cm=!1,ma=u;ma!==null;)if(u=ma,A=u.child,(u.subtreeFlags&1028)!==0&&A!==null)A.return=u,ma=A;else for(;ma!==null;){switch(u=ma,_=u.alternate,A=u.flags,u.tag){case 0:if((A&4)!==0&&(A=u.updateQueue,A=A!==null?A.events:null,A!==null))for(d=0;d<A.length;d++)B=A[d],B.ref.impl=B.nextImpl;break;case 11:case 15:break;case 1:if((A&1024)!==0&&_!==null){A=void 0,d=u,B=_.memoizedProps,_=_.memoizedState,v=d.stateNode;try{var Nt=rh(d.type,B);A=v.getSnapshotBeforeUpdate(Nt,_),v.__reactInternalSnapshotBeforeUpdate=A}catch(ir){sn(d,d.return,ir)}}break;case 3:if((A&1024)!==0){if(A=u.stateNode.containerInfo,d=A.nodeType,d===9)Wb(A);else if(d===1)switch(A.nodeName){case"HEAD":case"HTML":case"BODY":Wb(A);break;default:A.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((A&1024)!==0)throw Error(n(163))}if(A=u.sibling,A!==null){A.return=u.return,ma=A;break}ma=u.return}}function RT(A,u,d){var v=d.flags;switch(d.tag){case 0:case 11:case 15:mc(A,d),v&4&&Hg(5,d);break;case 1:if(mc(A,d),v&4)if(A=d.stateNode,u===null)try{A.componentDidMount()}catch(z){sn(d,d.return,z)}else{var B=rh(d.type,u.memoizedProps);u=u.memoizedState;try{A.componentDidUpdate(B,u,A.__reactInternalSnapshotBeforeUpdate)}catch(z){sn(d,d.return,z)}}v&64&&DT(d),v&512&&Kg(d,d.return);break;case 3:if(mc(A,d),v&64&&(A=d.updateQueue,A!==null)){if(u=null,d.child!==null)switch(d.child.tag){case 27:case 5:u=d.child.stateNode;break;case 1:u=d.child.stateNode}try{pi(A,u)}catch(z){sn(d,d.return,z)}}break;case 27:u===null&&v&4&&kT(d);case 26:case 5:mc(A,d),u===null&&v&4&&MT(d),v&512&&Kg(d,d.return);break;case 12:mc(A,d);break;case 31:mc(A,d),v&4&&KT(A,d);break;case 13:mc(A,d),v&4&&zT(A,d),v&64&&(A=d.memoizedState,A!==null&&(A=A.dehydrated,A!==null&&(d=zG.bind(null,d),cq(A,d))));break;case 22:if(v=d.memoizedState!==null||pc,!v){u=u!==null&&u.memoizedState!==null||Hi,B=pc;var _=Hi;pc=v,(Hi=u)&&!_?yc(A,d,(d.subtreeFlags&8772)!==0):mc(A,d),pc=B,Hi=_}break;case 30:break;default:mc(A,d)}}function jT(A){var u=A.alternate;u!==null&&(A.alternate=null,jT(u)),A.child=null,A.deletions=null,A.sibling=null,A.tag===5&&(u=A.stateNode,u!==null&&ot(u)),A.stateNode=null,A.return=null,A.dependencies=null,A.memoizedProps=null,A.memoizedState=null,A.pendingProps=null,A.stateNode=null,A.updateQueue=null}var Yn=null,Vs=!1;function vc(A,u,d){for(d=d.child;d!==null;)HT(A,u,d),d=d.sibling}function HT(A,u,d){if(Kt&&typeof Kt.onCommitFiberUnmount=="function")try{Kt.onCommitFiberUnmount(or,d)}catch{}switch(d.tag){case 26:Hi||Fl(d,u),vc(A,u,d),d.memoizedState?d.memoizedState.count--:d.stateNode&&(d=d.stateNode,d.parentNode.removeChild(d));break;case 27:Hi||Fl(d,u);var v=Yn,B=Vs;Mu(d.type)&&(Yn=d.stateNode,Vs=!1),vc(A,u,d),Jg(d.stateNode),Yn=v,Vs=B;break;case 5:Hi||Fl(d,u);case 6:if(v=Yn,B=Vs,Yn=null,vc(A,u,d),Yn=v,Vs=B,Yn!==null)if(Vs)try{(Yn.nodeType===9?Yn.body:Yn.nodeName==="HTML"?Yn.ownerDocument.body:Yn).removeChild(d.stateNode)}catch(_){sn(d,u,_)}else try{Yn.removeChild(d.stateNode)}catch(_){sn(d,u,_)}break;case 18:Yn!==null&&(Vs?(A=Yn,DO(A.nodeType===9?A.body:A.nodeName==="HTML"?A.ownerDocument.body:A,d.stateNode),Jd(A)):DO(Yn,d.stateNode));break;case 4:v=Yn,B=Vs,Yn=d.stateNode.containerInfo,Vs=!0,vc(A,u,d),Yn=v,Vs=B;break;case 0:case 11:case 14:case 15:Tu(2,d,u),Hi||Tu(4,d,u),vc(A,u,d);break;case 1:Hi||(Fl(d,u),v=d.stateNode,typeof v.componentWillUnmount=="function"&&IT(d,u,v)),vc(A,u,d);break;case 21:vc(A,u,d);break;case 22:Hi=(v=Hi)||d.memoizedState!==null,vc(A,u,d),Hi=v;break;default:vc(A,u,d)}}function KT(A,u){if(u.memoizedState===null&&(A=u.alternate,A!==null&&(A=A.memoizedState,A!==null))){A=A.dehydrated;try{Jd(A)}catch(d){sn(u,u.return,d)}}}function zT(A,u){if(u.memoizedState===null&&(A=u.alternate,A!==null&&(A=A.memoizedState,A!==null&&(A=A.dehydrated,A!==null))))try{Jd(A)}catch(d){sn(u,u.return,d)}}function MG(A){switch(A.tag){case 31:case 13:case 19:var u=A.stateNode;return u===null&&(u=A.stateNode=new QT),u;case 22:return A=A.stateNode,u=A._retryCache,u===null&&(u=A._retryCache=new QT),u;default:throw Error(n(435,A.tag))}}function zv(A,u){var d=MG(A);u.forEach(function(v){if(!d.has(v)){d.add(v);var B=VG.bind(null,A,v);v.then(B,B)}})}function Gs(A,u){var d=u.deletions;if(d!==null)for(var v=0;v<d.length;v++){var B=d[v],_=A,z=u,ie=z;e:for(;ie!==null;){switch(ie.tag){case 27:if(Mu(ie.type)){Yn=ie.stateNode,Vs=!1;break e}break;case 5:Yn=ie.stateNode,Vs=!1;break e;case 3:case 4:Yn=ie.stateNode.containerInfo,Vs=!0;break e}ie=ie.return}if(Yn===null)throw Error(n(160));HT(_,z,B),Yn=null,Vs=!1,_=B.alternate,_!==null&&(_.return=null),B.return=null}if(u.subtreeFlags&13886)for(u=u.child;u!==null;)VT(u,A),u=u.sibling}var GA=null;function VT(A,u){var d=A.alternate,v=A.flags;switch(A.tag){case 0:case 11:case 14:case 15:Gs(u,A),qs(A),v&4&&(Tu(3,A,A.return),Hg(3,A),Tu(5,A,A.return));break;case 1:Gs(u,A),qs(A),v&512&&(Hi||d===null||Fl(d,d.return)),v&64&&pc&&(A=A.updateQueue,A!==null&&(v=A.callbacks,v!==null&&(d=A.shared.hiddenCallbacks,A.shared.hiddenCallbacks=d===null?v:d.concat(v))));break;case 26:var B=GA;if(Gs(u,A),qs(A),v&512&&(Hi||d===null||Fl(d,d.return)),v&4){var _=d!==null?d.memoizedState:null;if(v=A.memoizedState,d===null)if(v===null)if(A.stateNode===null){e:{v=A.type,d=A.memoizedProps,B=B.ownerDocument||B;t:switch(v){case"title":_=B.getElementsByTagName("title")[0],(!_||_[Pe]||_[ce]||_.namespaceURI==="http://www.w3.org/2000/svg"||_.hasAttribute("itemprop"))&&(_=B.createElement(v),B.head.insertBefore(_,B.querySelector("head > title"))),Pa(_,v,d),_[ce]=A,_t(_),v=_;break e;case"link":var z=VO("link","href",B).get(v+(d.href||""));if(z){for(var ie=0;ie<z.length;ie++)if(_=z[ie],_.getAttribute("href")===(d.href==null||d.href===""?null:d.href)&&_.getAttribute("rel")===(d.rel==null?null:d.rel)&&_.getAttribute("title")===(d.title==null?null:d.title)&&_.getAttribute("crossorigin")===(d.crossOrigin==null?null:d.crossOrigin)){z.splice(ie,1);break t}}_=B.createElement(v),Pa(_,v,d),B.head.appendChild(_);break;case"meta":if(z=VO("meta","content",B).get(v+(d.content||""))){for(ie=0;ie<z.length;ie++)if(_=z[ie],_.getAttribute("content")===(d.content==null?null:""+d.content)&&_.getAttribute("name")===(d.name==null?null:d.name)&&_.getAttribute("property")===(d.property==null?null:d.property)&&_.getAttribute("http-equiv")===(d.httpEquiv==null?null:d.httpEquiv)&&_.getAttribute("charset")===(d.charSet==null?null:d.charSet)){z.splice(ie,1);break t}}_=B.createElement(v),Pa(_,v,d),B.head.appendChild(_);break;default:throw Error(n(468,v))}_[ce]=A,_t(_),v=_}A.stateNode=v}else GO(B,A.type,A.stateNode);else A.stateNode=zO(B,v,A.memoizedProps);else _!==v?(_===null?d.stateNode!==null&&(d=d.stateNode,d.parentNode.removeChild(d)):_.count--,v===null?GO(B,A.type,A.stateNode):zO(B,v,A.memoizedProps)):v===null&&A.stateNode!==null&&wb(A,A.memoizedProps,d.memoizedProps)}break;case 27:Gs(u,A),qs(A),v&512&&(Hi||d===null||Fl(d,d.return)),d!==null&&v&4&&wb(A,A.memoizedProps,d.memoizedProps);break;case 5:if(Gs(u,A),qs(A),v&512&&(Hi||d===null||Fl(d,d.return)),A.flags&32){B=A.stateNode;try{co(B,"")}catch(Nt){sn(A,A.return,Nt)}}v&4&&A.stateNode!=null&&(B=A.memoizedProps,wb(A,B,d!==null?d.memoizedProps:B)),v&1024&&(Bb=!0);break;case 6:if(Gs(u,A),qs(A),v&4){if(A.stateNode===null)throw Error(n(162));v=A.memoizedProps,d=A.stateNode;try{d.nodeValue=v}catch(Nt){sn(A,A.return,Nt)}}break;case 3:if(sm=null,B=GA,GA=im(u.containerInfo),Gs(u,A),GA=B,qs(A),v&4&&d!==null&&d.memoizedState.isDehydrated)try{Jd(u.containerInfo)}catch(Nt){sn(A,A.return,Nt)}Bb&&(Bb=!1,GT(A));break;case 4:v=GA,GA=im(A.stateNode.containerInfo),Gs(u,A),qs(A),GA=v;break;case 12:Gs(u,A),qs(A);break;case 31:Gs(u,A),qs(A),v&4&&(v=A.updateQueue,v!==null&&(A.updateQueue=null,zv(A,v)));break;case 13:Gs(u,A),qs(A),A.child.flags&8192&&A.memoizedState!==null!=(d!==null&&d.memoizedState!==null)&&(Gv=Vt()),v&4&&(v=A.updateQueue,v!==null&&(A.updateQueue=null,zv(A,v)));break;case 22:B=A.memoizedState!==null;var Ce=d!==null&&d.memoizedState!==null,Ke=pc,Je=Hi;if(pc=Ke||B,Hi=Je||Ce,Gs(u,A),Hi=Je,pc=Ke,qs(A),v&8192)e:for(u=A.stateNode,u._visibility=B?u._visibility&-2:u._visibility|1,B&&(d===null||Ce||pc||Hi||nh(A)),d=null,u=A;;){if(u.tag===5||u.tag===26){if(d===null){Ce=d=u;try{if(_=Ce.stateNode,B)z=_.style,typeof z.setProperty=="function"?z.setProperty("display","none","important"):z.display="none";else{ie=Ce.stateNode;var it=Ce.memoizedProps.style,Ve=it!=null&&it.hasOwnProperty("display")?it.display:null;ie.style.display=Ve==null||typeof Ve=="boolean"?"":(""+Ve).trim()}}catch(Nt){sn(Ce,Ce.return,Nt)}}}else if(u.tag===6){if(d===null){Ce=u;try{Ce.stateNode.nodeValue=B?"":Ce.memoizedProps}catch(Nt){sn(Ce,Ce.return,Nt)}}}else if(u.tag===18){if(d===null){Ce=u;try{var qe=Ce.stateNode;B?IO(qe,!0):IO(Ce.stateNode,!1)}catch(Nt){sn(Ce,Ce.return,Nt)}}}else if((u.tag!==22&&u.tag!==23||u.memoizedState===null||u===A)&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===A)break e;for(;u.sibling===null;){if(u.return===null||u.return===A)break e;d===u&&(d=null),u=u.return}d===u&&(d=null),u.sibling.return=u.return,u=u.sibling}v&4&&(v=A.updateQueue,v!==null&&(d=v.retryQueue,d!==null&&(v.retryQueue=null,zv(A,d))));break;case 19:Gs(u,A),qs(A),v&4&&(v=A.updateQueue,v!==null&&(A.updateQueue=null,zv(A,v)));break;case 30:break;case 21:break;default:Gs(u,A),qs(A)}}function qs(A){var u=A.flags;if(u&2){try{for(var d,v=A.return;v!==null;){if(PT(v)){d=v;break}v=v.return}if(d==null)throw Error(n(160));switch(d.tag){case 27:var B=d.stateNode,_=xb(A);Kv(A,_,B);break;case 5:var z=d.stateNode;d.flags&32&&(co(z,""),d.flags&=-33);var ie=xb(A);Kv(A,ie,z);break;case 3:case 4:var Ce=d.stateNode.containerInfo,Ke=xb(A);bb(A,Ke,Ce);break;default:throw Error(n(161))}}catch(Je){sn(A,A.return,Je)}A.flags&=-3}u&4096&&(A.flags&=-4097)}function GT(A){if(A.subtreeFlags&1024)for(A=A.child;A!==null;){var u=A;GT(u),u.tag===5&&u.flags&1024&&u.stateNode.reset(),A=A.sibling}}function mc(A,u){if(u.subtreeFlags&8772)for(u=u.child;u!==null;)RT(A,u.alternate,u),u=u.sibling}function nh(A){for(A=A.child;A!==null;){var u=A;switch(u.tag){case 0:case 11:case 14:case 15:Tu(4,u,u.return),nh(u);break;case 1:Fl(u,u.return);var d=u.stateNode;typeof d.componentWillUnmount=="function"&&IT(u,u.return,d),nh(u);break;case 27:Jg(u.stateNode);case 26:case 5:Fl(u,u.return),nh(u);break;case 22:u.memoizedState===null&&nh(u);break;case 30:nh(u);break;default:nh(u)}A=A.sibling}}function yc(A,u,d){for(d=d&&(u.subtreeFlags&8772)!==0,u=u.child;u!==null;){var v=u.alternate,B=A,_=u,z=_.flags;switch(_.tag){case 0:case 11:case 15:yc(B,_,d),Hg(4,_);break;case 1:if(yc(B,_,d),v=_,B=v.stateNode,typeof B.componentDidMount=="function")try{B.componentDidMount()}catch(Ke){sn(v,v.return,Ke)}if(v=_,B=v.updateQueue,B!==null){var ie=v.stateNode;try{var Ce=B.shared.hiddenCallbacks;if(Ce!==null)for(B.shared.hiddenCallbacks=null,B=0;B<Ce.length;B++)pa(Ce[B],ie)}catch(Ke){sn(v,v.return,Ke)}}d&&z&64&&DT(_),Kg(_,_.return);break;case 27:kT(_);case 26:case 5:yc(B,_,d),d&&v===null&&z&4&&MT(_),Kg(_,_.return);break;case 12:yc(B,_,d);break;case 31:yc(B,_,d),d&&z&4&&KT(B,_);break;case 13:yc(B,_,d),d&&z&4&&zT(B,_);break;case 22:_.memoizedState===null&&yc(B,_,d),Kg(_,_.return);break;case 30:break;default:yc(B,_,d)}u=u.sibling}}function Cb(A,u){var d=null;A!==null&&A.memoizedState!==null&&A.memoizedState.cachePool!==null&&(d=A.memoizedState.cachePool.pool),A=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(A=u.memoizedState.cachePool.pool),A!==d&&(A!=null&&A.refCount++,d!=null&&Jf(d))}function Eb(A,u){A=null,u.alternate!==null&&(A=u.alternate.memoizedState.cache),u=u.memoizedState.cache,u!==A&&(u.refCount++,A!=null&&Jf(A))}function qA(A,u,d,v){if(u.subtreeFlags&10256)for(u=u.child;u!==null;)qT(A,u,d,v),u=u.sibling}function qT(A,u,d,v){var B=u.flags;switch(u.tag){case 0:case 11:case 15:qA(A,u,d,v),B&2048&&Hg(9,u);break;case 1:qA(A,u,d,v);break;case 3:qA(A,u,d,v),B&2048&&(A=null,u.alternate!==null&&(A=u.alternate.memoizedState.cache),u=u.memoizedState.cache,u!==A&&(u.refCount++,A!=null&&Jf(A)));break;case 12:if(B&2048){qA(A,u,d,v),A=u.stateNode;try{var _=u.memoizedProps,z=_.id,ie=_.onPostCommit;typeof ie=="function"&&ie(z,u.alternate===null?"mount":"update",A.passiveEffectDuration,-0)}catch(Ce){sn(u,u.return,Ce)}}else qA(A,u,d,v);break;case 31:qA(A,u,d,v);break;case 13:qA(A,u,d,v);break;case 23:break;case 22:_=u.stateNode,z=u.alternate,u.memoizedState!==null?_._visibility&2?qA(A,u,d,v):zg(A,u):_._visibility&2?qA(A,u,d,v):(_._visibility|=2,jd(A,u,d,v,(u.subtreeFlags&10256)!==0||!1)),B&2048&&Cb(z,u);break;case 24:qA(A,u,d,v),B&2048&&Eb(u.alternate,u);break;default:qA(A,u,d,v)}}function jd(A,u,d,v,B){for(B=B&&((u.subtreeFlags&10256)!==0||!1),u=u.child;u!==null;){var _=A,z=u,ie=d,Ce=v,Ke=z.flags;switch(z.tag){case 0:case 11:case 15:jd(_,z,ie,Ce,B),Hg(8,z);break;case 23:break;case 22:var Je=z.stateNode;z.memoizedState!==null?Je._visibility&2?jd(_,z,ie,Ce,B):zg(_,z):(Je._visibility|=2,jd(_,z,ie,Ce,B)),B&&Ke&2048&&Cb(z.alternate,z);break;case 24:jd(_,z,ie,Ce,B),B&&Ke&2048&&Eb(z.alternate,z);break;default:jd(_,z,ie,Ce,B)}u=u.sibling}}function zg(A,u){if(u.subtreeFlags&10256)for(u=u.child;u!==null;){var d=A,v=u,B=v.flags;switch(v.tag){case 22:zg(d,v),B&2048&&Cb(v.alternate,v);break;case 24:zg(d,v),B&2048&&Eb(v.alternate,v);break;default:zg(d,v)}u=u.sibling}}var Vg=8192;function Hd(A,u,d){if(A.subtreeFlags&Vg)for(A=A.child;A!==null;)WT(A,u,d),A=A.sibling}function WT(A,u,d){switch(A.tag){case 26:Hd(A,u,d),A.flags&Vg&&A.memoizedState!==null&&bq(d,GA,A.memoizedState,A.memoizedProps);break;case 5:Hd(A,u,d);break;case 3:case 4:var v=GA;GA=im(A.stateNode.containerInfo),Hd(A,u,d),GA=v;break;case 22:A.memoizedState===null&&(v=A.alternate,v!==null&&v.memoizedState!==null?(v=Vg,Vg=16777216,Hd(A,u,d),Vg=v):Hd(A,u,d));break;default:Hd(A,u,d)}}function YT(A){var u=A.alternate;if(u!==null&&(A=u.child,A!==null)){u.child=null;do u=A.sibling,A.sibling=null,A=u;while(A!==null)}}function Gg(A){var u=A.deletions;if((A.flags&16)!==0){if(u!==null)for(var d=0;d<u.length;d++){var v=u[d];ma=v,XT(v,A)}YT(A)}if(A.subtreeFlags&10256)for(A=A.child;A!==null;)$T(A),A=A.sibling}function $T(A){switch(A.tag){case 0:case 11:case 15:Gg(A),A.flags&2048&&Tu(9,A,A.return);break;case 3:Gg(A);break;case 12:Gg(A);break;case 22:var u=A.stateNode;A.memoizedState!==null&&u._visibility&2&&(A.return===null||A.return.tag!==13)?(u._visibility&=-3,Vv(A)):Gg(A);break;default:Gg(A)}}function Vv(A){var u=A.deletions;if((A.flags&16)!==0){if(u!==null)for(var d=0;d<u.length;d++){var v=u[d];ma=v,XT(v,A)}YT(A)}for(A=A.child;A!==null;){switch(u=A,u.tag){case 0:case 11:case 15:Tu(8,u,u.return),Vv(u);break;case 22:d=u.stateNode,d._visibility&2&&(d._visibility&=-3,Vv(u));break;default:Vv(u)}A=A.sibling}}function XT(A,u){for(;ma!==null;){var d=ma;switch(d.tag){case 0:case 11:case 15:Tu(8,d,u);break;case 23:case 22:if(d.memoizedState!==null&&d.memoizedState.cachePool!==null){var v=d.memoizedState.cachePool.pool;v!=null&&v.refCount++}break;case 24:Jf(d.memoizedState.cache)}if(v=d.child,v!==null)v.return=d,ma=v;else e:for(d=A;ma!==null;){v=ma;var B=v.sibling,_=v.return;if(jT(v),v===d){ma=null;break e}if(B!==null){B.return=_,ma=B;break e}ma=_}}}var PG={getCacheForType:function(A){var u=ta(Ai),d=u.data.get(A);return d===void 0&&(d=A(),u.data.set(A,d)),d},cacheSignal:function(){return ta(Ai).controller.signal}},kG=typeof WeakMap=="function"?WeakMap:Map,Zr=0,Sn=null,Er=null,Sr=0,an=0,yo=null,Ou=!1,Kd=!1,_b=!1,wc=0,wi=0,Uu=0,ih=0,Sb=0,wo=0,zd=0,qg=null,Ws=null,Fb=!1,Gv=0,JT=0,qv=1/0,Wv=null,Nu=null,na=0,Lu=null,Vd=null,xc=0,Tb=0,Ob=null,ZT=null,Wg=0,Ub=null;function xo(){return(Zr&2)!==0&&Sr!==0?Sr&-Sr:G.T!==null?Pb():ee()}function eO(){if(wo===0)if((Sr&536870912)===0||Cr){var A=Rr;Rr<<=1,(Rr&3932160)===0&&(Rr=262144),wo=A}else wo=536870912;return A=Rn.current,A!==null&&(A.flags|=32),wo}function Ys(A,u,d){(A===Sn&&(an===2||an===9)||A.cancelPendingCommit!==null)&&(Gd(A,0),Du(A,Sr,wo,!1)),Mt(A,d),((Zr&2)===0||A!==Sn)&&(A===Sn&&((Zr&2)===0&&(ih|=d),wi===4&&Du(A,Sr,wo,!1)),Tl(A))}function tO(A,u,d){if((Zr&6)!==0)throw Error(n(327));var v=!d&&(u&127)===0&&(u&A.expiredLanes)===0||Pi(A,u),B=v?jG(A,u):Lb(A,u,!0),_=v;do{if(B===0){Kd&&!v&&Du(A,u,0,!1);break}else{if(d=A.current.alternate,_&&!QG(d)){B=Lb(A,u,!1),_=!1;continue}if(B===2){if(_=u,A.errorRecoveryDisabledLanes&_)var z=0;else z=A.pendingLanes&-536870913,z=z!==0?z:z&536870912?536870912:0;if(z!==0){u=z;e:{var ie=A;B=qg;var Ce=ie.current.memoizedState.isDehydrated;if(Ce&&(Gd(ie,z).flags|=256),z=Lb(ie,z,!1),z!==2){if(_b&&!Ce){ie.errorRecoveryDisabledLanes|=_,ih|=_,B=4;break e}_=Ws,Ws=B,_!==null&&(Ws===null?Ws=_:Ws.push.apply(Ws,_))}B=z}if(_=!1,B!==2)continue}}if(B===1){Gd(A,0),Du(A,u,0,!0);break}e:{switch(v=A,_=B,_){case 0:case 1:throw Error(n(345));case 4:if((u&4194048)!==u)break;case 6:Du(v,u,wo,!Ou);break e;case 2:Ws=null;break;case 3:case 5:break;default:throw Error(n(329))}if((u&62914560)===u&&(B=Gv+300-Vt(),10<B)){if(Du(v,u,wo,!Ou),Zt(v,0,!0)!==0)break e;xc=u,v.timeoutHandle=NO(rO.bind(null,v,d,Ws,Wv,Fb,u,wo,ih,zd,Ou,_,"Throttled",-0,0),B);break e}rO(v,d,Ws,Wv,Fb,u,wo,ih,zd,Ou,_,null,-0,0)}}break}while(!0);Tl(A)}function rO(A,u,d,v,B,_,z,ie,Ce,Ke,Je,it,Ve,qe){if(A.timeoutHandle=-1,it=u.subtreeFlags,it&8192||(it&16785408)===16785408){it={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:uo},WT(u,_,it);var Nt=(_&62914560)===_?Gv-Vt():(_&4194048)===_?JT-Vt():0;if(Nt=Bq(it,Nt),Nt!==null){xc=_,A.cancelPendingCommit=Nt(cO.bind(null,A,u,_,d,v,B,z,ie,Ce,Je,it,null,Ve,qe)),Du(A,_,z,!Ke);return}}cO(A,u,_,d,v,B,z,ie,Ce)}function QG(A){for(var u=A;;){var d=u.tag;if((d===0||d===11||d===15)&&u.flags&16384&&(d=u.updateQueue,d!==null&&(d=d.stores,d!==null)))for(var v=0;v<d.length;v++){var B=d[v],_=B.getSnapshot;B=B.value;try{if(!Xi(_(),B))return!1}catch{return!1}}if(d=u.child,u.subtreeFlags&16384&&d!==null)d.return=u,u=d;else{if(u===A)break;for(;u.sibling===null;){if(u.return===null||u.return===A)return!0;u=u.return}u.sibling.return=u.return,u=u.sibling}}return!0}function Du(A,u,d,v){u&=~Sb,u&=~ih,A.suspendedLanes|=u,A.pingedLanes&=~u,v&&(A.warmLanes|=u),v=A.expirationTimes;for(var B=u;0<B;){var _=31-vr(B),z=1<<_;v[_]=-1,B&=~z}d!==0&&Fa(A,d,u)}function Yv(){return(Zr&6)===0?(Yg(0),!1):!0}function Nb(){if(Er!==null){if(an===0)var A=Er.return;else A=Er,Xo=wl=null,Dd(A),at=null,Lt=0,A=Er;for(;A!==null;)LT(A.alternate,A),A=A.return;Er=null}}function Gd(A,u){var d=A.timeoutHandle;d!==-1&&(A.timeoutHandle=-1,aq(d)),d=A.cancelPendingCommit,d!==null&&(A.cancelPendingCommit=null,d()),xc=0,Nb(),Sn=A,Er=d=Ps(A.current,null),Sr=u,an=0,yo=null,Ou=!1,Kd=Pi(A,u),_b=!1,zd=wo=Sb=ih=Uu=wi=0,Ws=qg=null,Fb=!1,(u&8)!==0&&(u|=u&32);var v=A.entangledLanes;if(v!==0)for(A=A.entanglements,v&=u;0<v;){var B=31-vr(v),_=1<<B;u|=A[B],v&=~_}return wc=u,Gf(),d}function nO(A,u){qt=null,G.H=Qg,u===Se||u===pe?(u=et(),an=3):u===Re?(u=et(),an=4):an=u===cb?8:u!==null&&typeof u=="object"&&typeof u.then=="function"?6:1,yo=u,Er===null&&(wi=1,kv(A,ks(u,A.current)))}function iO(){var A=Rn.current;return A===null?!0:(Sr&4194048)===Sr?Pr===null:(Sr&62914560)===Sr||(Sr&536870912)!==0?A===Pr:!1}function aO(){var A=G.H;return G.H=Qg,A===null?Qg:A}function sO(){var A=G.A;return G.A=PG,A}function $v(){wi=4,Ou||(Sr&4194048)!==Sr&&Rn.current!==null||(Kd=!0),(Uu&134217727)===0&&(ih&134217727)===0||Sn===null||Du(Sn,Sr,wo,!1)}function Lb(A,u,d){var v=Zr;Zr|=2;var B=aO(),_=sO();(Sn!==A||Sr!==u)&&(Wv=null,Gd(A,u)),u=!1;var z=wi;e:do try{if(an!==0&&Er!==null){var ie=Er,Ce=yo;switch(an){case 8:Nb(),z=6;break e;case 3:case 2:case 9:case 6:Rn.current===null&&(u=!0);var Ke=an;if(an=0,yo=null,qd(A,ie,Ce,Ke),d&&Kd){z=0;break e}break;default:Ke=an,an=0,yo=null,qd(A,ie,Ce,Ke)}}RG(),z=wi;break}catch(Je){nO(A,Je)}while(!0);return u&&A.shellSuspendCounter++,Xo=wl=null,Zr=v,G.H=B,G.A=_,Er===null&&(Sn=null,Sr=0,Gf()),z}function RG(){for(;Er!==null;)oO(Er)}function jG(A,u){var d=Zr;Zr|=2;var v=aO(),B=sO();Sn!==A||Sr!==u?(Wv=null,qv=Vt()+500,Gd(A,u)):Kd=Pi(A,u);e:do try{if(an!==0&&Er!==null){u=Er;var _=yo;t:switch(an){case 1:an=0,yo=null,qd(A,u,_,1);break;case 2:case 9:if(Me(_)){an=0,yo=null,AO(u);break}u=function(){an!==2&&an!==9||Sn!==A||(an=7),Tl(A)},_.then(u,u);break e;case 3:an=7;break e;case 4:an=5;break e;case 7:Me(_)?(an=0,yo=null,AO(u)):(an=0,yo=null,qd(A,u,_,7));break;case 5:var z=null;switch(Er.tag){case 26:z=Er.memoizedState;case 5:case 27:var ie=Er;if(z?qO(z):ie.stateNode.complete){an=0,yo=null;var Ce=ie.sibling;if(Ce!==null)Er=Ce;else{var Ke=ie.return;Ke!==null?(Er=Ke,Xv(Ke)):Er=null}break t}}an=0,yo=null,qd(A,u,_,5);break;case 6:an=0,yo=null,qd(A,u,_,6);break;case 8:Nb(),wi=6;break e;default:throw Error(n(462))}}HG();break}catch(Je){nO(A,Je)}while(!0);return Xo=wl=null,G.H=v,G.A=B,Zr=d,Er!==null?0:(Sn=null,Sr=0,Gf(),wi)}function HG(){for(;Er!==null&&!Ht();)oO(Er)}function oO(A){var u=UT(A.alternate,A,wc);A.memoizedProps=A.pendingProps,u===null?Xv(A):Er=u}function AO(A){var u=A,d=u.alternate;switch(u.tag){case 15:case 0:u=ET(d,u,u.pendingProps,u.type,void 0,Sr);break;case 11:u=ET(d,u,u.pendingProps,u.type.render,u.ref,Sr);break;case 5:Dd(u);default:LT(d,u),u=Er=Yf(u,wc),u=UT(d,u,wc)}A.memoizedProps=A.pendingProps,u===null?Xv(A):Er=u}function qd(A,u,d,v){Xo=wl=null,Dd(u),at=null,Lt=0;var B=u.return;try{if(OG(A,B,u,d,Sr)){wi=1,kv(A,ks(d,A.current)),Er=null;return}}catch(_){if(B!==null)throw Er=B,_;wi=1,kv(A,ks(d,A.current)),Er=null;return}u.flags&32768?(Cr||v===1?A=!0:Kd||(Sr&536870912)!==0?A=!1:(Ou=A=!0,(v===2||v===9||v===3||v===6)&&(v=Rn.current,v!==null&&v.tag===13&&(v.flags|=16384))),lO(u,A)):Xv(u)}function Xv(A){var u=A;do{if((u.flags&32768)!==0){lO(u,Ou);return}A=u.return;var d=LG(u.alternate,u,wc);if(d!==null){Er=d;return}if(u=u.sibling,u!==null){Er=u;return}Er=u=A}while(u!==null);wi===0&&(wi=5)}function lO(A,u){do{var d=DG(A.alternate,A);if(d!==null){d.flags&=32767,Er=d;return}if(d=A.return,d!==null&&(d.flags|=32768,d.subtreeFlags=0,d.deletions=null),!u&&(A=A.sibling,A!==null)){Er=A;return}Er=A=d}while(A!==null);wi=6,Er=null}function cO(A,u,d,v,B,_,z,ie,Ce){A.cancelPendingCommit=null;do Jv();while(na!==0);if((Zr&6)!==0)throw Error(n(327));if(u!==null){if(u===A.current)throw Error(n(177));if(_=u.lanes|u.childLanes,_|=wd,Ja(A,d,_,z,ie,Ce),A===Sn&&(Er=Sn=null,Sr=0),Vd=u,Lu=A,xc=d,Tb=_,Ob=B,ZT=v,(u.subtreeFlags&10256)!==0||(u.flags&10256)!==0?(A.callbackNode=null,A.callbackPriority=0,GG(rr,function(){return gO(),null})):(A.callbackNode=null,A.callbackPriority=0),v=(u.flags&13878)!==0,(u.subtreeFlags&13878)!==0||v){v=G.T,G.T=null,B=se.p,se.p=2,z=Zr,Zr|=4;try{IG(A,u,d)}finally{Zr=z,se.p=B,G.T=v}}na=1,uO(),fO(),hO()}}function uO(){if(na===1){na=0;var A=Lu,u=Vd,d=(u.flags&13878)!==0;if((u.subtreeFlags&13878)!==0||d){d=G.T,G.T=null;var v=se.p;se.p=2;var B=Zr;Zr|=4;try{VT(u,A);var _=Vb,z=kA(A.containerInfo),ie=_.focusedElem,Ce=_.selectionRange;if(z!==ie&&ie&&ie.ownerDocument&&PA(ie.ownerDocument.documentElement,ie)){if(Ce!==null&&Yo(ie)){var Ke=Ce.start,Je=Ce.end;if(Je===void 0&&(Je=Ke),"selectionStart"in ie)ie.selectionStart=Ke,ie.selectionEnd=Math.min(Je,ie.value.length);else{var it=ie.ownerDocument||document,Ve=it&&it.defaultView||window;if(Ve.getSelection){var qe=Ve.getSelection(),Nt=ie.textContent.length,ir=Math.min(Ce.start,Nt),xn=Ce.end===void 0?ir:Math.min(Ce.end,Nt);!qe.extend&&ir>xn&&(z=xn,xn=ir,ir=z);var De=mu(ie,ir),Oe=mu(ie,xn);if(De&&Oe&&(qe.rangeCount!==1||qe.anchorNode!==De.node||qe.anchorOffset!==De.offset||qe.focusNode!==Oe.node||qe.focusOffset!==Oe.offset)){var He=it.createRange();He.setStart(De.node,De.offset),qe.removeAllRanges(),ir>xn?(qe.addRange(He),qe.extend(Oe.node,Oe.offset)):(He.setEnd(Oe.node,Oe.offset),qe.addRange(He))}}}}for(it=[],qe=ie;qe=qe.parentNode;)qe.nodeType===1&&it.push({element:qe,left:qe.scrollLeft,top:qe.scrollTop});for(typeof ie.focus=="function"&&ie.focus(),ie=0;ie<it.length;ie++){var rt=it[ie];rt.element.scrollLeft=rt.left,rt.element.scrollTop=rt.top}}cm=!!zb,Vb=zb=null}finally{Zr=B,se.p=v,G.T=d}}A.current=u,na=2}}function fO(){if(na===2){na=0;var A=Lu,u=Vd,d=(u.flags&8772)!==0;if((u.subtreeFlags&8772)!==0||d){d=G.T,G.T=null;var v=se.p;se.p=2;var B=Zr;Zr|=4;try{RT(A,u.alternate,u)}finally{Zr=B,se.p=v,G.T=d}}na=3}}function hO(){if(na===4||na===3){na=0,It();var A=Lu,u=Vd,d=xc,v=ZT;(u.subtreeFlags&10256)!==0||(u.flags&10256)!==0?na=5:(na=0,Vd=Lu=null,dO(A,A.pendingLanes));var B=A.pendingLanes;if(B===0&&(Nu=null),gn(d),u=u.stateNode,Kt&&typeof Kt.onCommitFiberRoot=="function")try{Kt.onCommitFiberRoot(or,u,void 0,(u.current.flags&128)===128)}catch{}if(v!==null){u=G.T,B=se.p,se.p=2,G.T=null;try{for(var _=A.onRecoverableError,z=0;z<v.length;z++){var ie=v[z];_(ie.value,{componentStack:ie.stack})}}finally{G.T=u,se.p=B}}(xc&3)!==0&&Jv(),Tl(A),B=A.pendingLanes,(d&261930)!==0&&(B&42)!==0?A===Ub?Wg++:(Wg=0,Ub=A):Wg=0,Yg(0)}}function dO(A,u){(A.pooledCacheLanes&=u)===0&&(u=A.pooledCache,u!=null&&(A.pooledCache=null,Jf(u)))}function Jv(){return uO(),fO(),hO(),gO()}function gO(){if(na!==5)return!1;var A=Lu,u=Tb;Tb=0;var d=gn(xc),v=G.T,B=se.p;try{se.p=32>d?32:d,G.T=null,d=Ob,Ob=null;var _=Lu,z=xc;if(na=0,Vd=Lu=null,xc=0,(Zr&6)!==0)throw Error(n(331));var ie=Zr;if(Zr|=4,$T(_.current),qT(_,_.current,z,d),Zr=ie,Yg(0,!1),Kt&&typeof Kt.onPostCommitFiberRoot=="function")try{Kt.onPostCommitFiberRoot(or,_)}catch{}return!0}finally{se.p=B,G.T=v,dO(A,u)}}function pO(A,u,d){u=ks(d,u),u=lb(A.stateNode,u,2),A=mr(A,u,2),A!==null&&(Mt(A,2),Tl(A))}function sn(A,u,d){if(A.tag===3)pO(A,A,d);else for(;u!==null;){if(u.tag===3){pO(u,A,d);break}else if(u.tag===1){var v=u.stateNode;if(typeof u.type.getDerivedStateFromError=="function"||typeof v.componentDidCatch=="function"&&(Nu===null||!Nu.has(v))){A=ks(d,A),d=vT(2),v=mr(u,d,2),v!==null&&(mT(d,v,u,A),Mt(v,2),Tl(v));break}}u=u.return}}function Db(A,u,d){var v=A.pingCache;if(v===null){v=A.pingCache=new kG;var B=new Set;v.set(u,B)}else B=v.get(u),B===void 0&&(B=new Set,v.set(u,B));B.has(d)||(_b=!0,B.add(d),A=KG.bind(null,A,u,d),u.then(A,A))}function KG(A,u,d){var v=A.pingCache;v!==null&&v.delete(u),A.pingedLanes|=A.suspendedLanes&d,A.warmLanes&=~d,Sn===A&&(Sr&d)===d&&(wi===4||wi===3&&(Sr&62914560)===Sr&&300>Vt()-Gv?(Zr&2)===0&&Gd(A,0):Sb|=d,zd===Sr&&(zd=0)),Tl(A)}function vO(A,u){u===0&&(u=In()),A=RA(A,u),A!==null&&(Mt(A,u),Tl(A))}function zG(A){var u=A.memoizedState,d=0;u!==null&&(d=u.retryLane),vO(A,d)}function VG(A,u){var d=0;switch(A.tag){case 31:case 13:var v=A.stateNode,B=A.memoizedState;B!==null&&(d=B.retryLane);break;case 19:v=A.stateNode;break;case 22:v=A.stateNode._retryCache;break;default:throw Error(n(314))}v!==null&&v.delete(u),vO(A,d)}function GG(A,u){return Tt(A,u)}var Zv=null,Wd=null,Ib=!1,em=!1,Mb=!1,Iu=0;function Tl(A){A!==Wd&&A.next===null&&(Wd===null?Zv=Wd=A:Wd=Wd.next=A),em=!0,Ib||(Ib=!0,WG())}function Yg(A,u){if(!Mb&&em){Mb=!0;do for(var d=!1,v=Zv;v!==null;){if(A!==0){var B=v.pendingLanes;if(B===0)var _=0;else{var z=v.suspendedLanes,ie=v.pingedLanes;_=(1<<31-vr(42|A)+1)-1,_&=B&~(z&~ie),_=_&201326741?_&201326741|1:_?_|2:0}_!==0&&(d=!0,xO(v,_))}else _=Sr,_=Zt(v,v===Sn?_:0,v.cancelPendingCommit!==null||v.timeoutHandle!==-1),(_&3)===0||Pi(v,_)||(d=!0,xO(v,_));v=v.next}while(d);Mb=!1}}function qG(){mO()}function mO(){em=Ib=!1;var A=0;Iu!==0&&iq()&&(A=Iu);for(var u=Vt(),d=null,v=Zv;v!==null;){var B=v.next,_=yO(v,u);_===0?(v.next=null,d===null?Zv=B:d.next=B,B===null&&(Wd=d)):(d=v,(A!==0||(_&3)!==0)&&(em=!0)),v=B}na!==0&&na!==5||Yg(A),Iu!==0&&(Iu=0)}function yO(A,u){for(var d=A.suspendedLanes,v=A.pingedLanes,B=A.expirationTimes,_=A.pendingLanes&-62914561;0<_;){var z=31-vr(_),ie=1<<z,Ce=B[z];Ce===-1?((ie&d)===0||(ie&v)!==0)&&(B[z]=fr(ie,u)):Ce<=u&&(A.expiredLanes|=ie),_&=~ie}if(u=Sn,d=Sr,d=Zt(A,A===u?d:0,A.cancelPendingCommit!==null||A.timeoutHandle!==-1),v=A.callbackNode,d===0||A===u&&(an===2||an===9)||A.cancelPendingCommit!==null)return v!==null&&v!==null&&yt(v),A.callbackNode=null,A.callbackPriority=0;if((d&3)===0||Pi(A,d)){if(u=d&-d,u===A.callbackPriority)return u;switch(v!==null&&yt(v),gn(d)){case 2:case 8:d=ur;break;case 32:d=rr;break;case 268435456:d=nr;break;default:d=rr}return v=wO.bind(null,A),d=Tt(d,v),A.callbackPriority=u,A.callbackNode=d,u}return v!==null&&v!==null&&yt(v),A.callbackPriority=2,A.callbackNode=null,2}function wO(A,u){if(na!==0&&na!==5)return A.callbackNode=null,A.callbackPriority=0,null;var d=A.callbackNode;if(Jv()&&A.callbackNode!==d)return null;var v=Sr;return v=Zt(A,A===Sn?v:0,A.cancelPendingCommit!==null||A.timeoutHandle!==-1),v===0?null:(tO(A,v,u),yO(A,Vt()),A.callbackNode!=null&&A.callbackNode===d?wO.bind(null,A):null)}function xO(A,u){if(Jv())return null;tO(A,u,!0)}function WG(){sq(function(){(Zr&6)!==0?Tt(Jt,qG):mO()})}function Pb(){if(Iu===0){var A=x;A===0&&(A=$t,$t<<=1,($t&261888)===0&&($t=256)),Iu=A}return Iu}function bO(A){return A==null||typeof A=="symbol"||typeof A=="boolean"?null:typeof A=="function"?A:Za(""+A)}function BO(A,u){var d=u.ownerDocument.createElement("input");return d.name=u.name,d.value=u.value,A.id&&d.setAttribute("form",A.id),u.parentNode.insertBefore(d,u),A=new FormData(A),d.parentNode.removeChild(d),A}function YG(A,u,d,v,B){if(u==="submit"&&d&&d.stateNode===B){var _=bO((B[de]||null).action),z=v.submitter;z&&(u=(u=z[de]||null)?bO(u.formAction):z.getAttribute("formAction"),u!==null&&(_=u,z=null));var ie=new Ds("action","action",null,v,B);A.push({event:ie,listeners:[{instance:null,listener:function(){if(v.defaultPrevented){if(Iu!==0){var Ce=z?BO(B,z):new FormData(B);nb(d,{pending:!0,data:Ce,method:B.method,action:_},null,Ce)}}else typeof _=="function"&&(ie.preventDefault(),Ce=z?BO(B,z):new FormData(B),nb(d,{pending:!0,data:Ce,method:B.method,action:_},_,Ce))},currentTarget:B}]})}}for(var kb=0;kb<sc.length;kb++){var Qb=sc[kb],$G=Qb.toLowerCase(),XG=Qb[0].toUpperCase()+Qb.slice(1);Ms($G,"on"+XG)}Ms(ac,"onAnimationEnd"),Ms(zf,"onAnimationIteration"),Ms(Cg,"onAnimationStart"),Ms("dblclick","onDoubleClick"),Ms("focusin","onFocus"),Ms("focusout","onBlur"),Ms(Ev,"onTransitionRun"),Ms(_v,"onTransitionStart"),Ms(Sv,"onTransitionCancel"),Ms(Eg,"onTransitionEnd"),Ta("onMouseEnter",["mouseout","mouseover"]),Ta("onMouseLeave",["mouseout","mouseover"]),Ta("onPointerEnter",["pointerout","pointerover"]),Ta("onPointerLeave",["pointerout","pointerover"]),tn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),tn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),tn("onBeforeInput",["compositionend","keypress","textInput","paste"]),tn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),tn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),tn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var $g="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(" "),JG=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat($g));function CO(A,u){u=(u&4)!==0;for(var d=0;d<A.length;d++){var v=A[d],B=v.event;v=v.listeners;e:{var _=void 0;if(u)for(var z=v.length-1;0<=z;z--){var ie=v[z],Ce=ie.instance,Ke=ie.currentTarget;if(ie=ie.listener,Ce!==_&&B.isPropagationStopped())break e;_=ie,B.currentTarget=Ke;try{_(B)}catch(Je){Vf(Je)}B.currentTarget=null,_=Ce}else for(z=0;z<v.length;z++){if(ie=v[z],Ce=ie.instance,Ke=ie.currentTarget,ie=ie.listener,Ce!==_&&B.isPropagationStopped())break e;_=ie,B.currentTarget=Ke;try{_(B)}catch(Je){Vf(Je)}B.currentTarget=null,_=Ce}}}}function _r(A,u){var d=u[Te];d===void 0&&(d=u[Te]=new Set);var v=A+"__bubble";d.has(v)||(EO(u,A,2,!1),d.add(v))}function Rb(A,u,d){var v=0;u&&(v|=4),EO(d,A,v,u)}var tm="_reactListening"+Math.random().toString(36).slice(2);function jb(A){if(!A[tm]){A[tm]=!0,$r.forEach(function(d){d!=="selectionchange"&&(JG.has(d)||Rb(d,!1,A),Rb(d,!0,A))});var u=A.nodeType===9?A:A.ownerDocument;u===null||u[tm]||(u[tm]=!0,Rb("selectionchange",!1,u))}}function EO(A,u,d,v){switch(eU(u)){case 2:var B=_q;break;case 8:B=Sq;break;default:B=rB}d=B.bind(null,u,d,A),B=void 0,!Qf||u!=="touchstart"&&u!=="touchmove"&&u!=="wheel"||(B=!0),v?B!==void 0?A.addEventListener(u,d,{capture:!0,passive:B}):A.addEventListener(u,d,!0):B!==void 0?A.addEventListener(u,d,{passive:B}):A.addEventListener(u,d,!1)}function Hb(A,u,d,v,B){var _=v;if((u&1)===0&&(u&2)===0&&v!==null)e:for(;;){if(v===null)return;var z=v.tag;if(z===3||z===4){var ie=v.stateNode.containerInfo;if(ie===B)break;if(z===4)for(z=v.return;z!==null;){var Ce=z.tag;if((Ce===3||Ce===4)&&z.stateNode.containerInfo===B)return;z=z.return}for(;ie!==null;){if(z=ft(ie),z===null)return;if(Ce=z.tag,Ce===5||Ce===6||Ce===26||Ce===27){v=_=z;continue e}ie=ie.parentNode}}v=v.return}gd(function(){var Ke=_,Je=Jl(d),it=[];e:{var Ve=_g.get(A);if(Ve!==void 0){var qe=Ds,Nt=A;switch(A){case"keypress":if(Ls(d)===0)break e;case"keydown":case"keyup":qe=Lr;break;case"focusin":Nt="focus",qe=TA;break;case"focusout":Nt="blur",qe=TA;break;case"beforeblur":case"afterblur":qe=TA;break;case"click":if(d.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":qe=Rf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":qe=FA;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":qe=Si;break;case ac:case zf:case Cg:qe=U;break;case Eg:qe=$i;break;case"scroll":case"scrollend":qe=uu;break;case"wheel":qe=fo;break;case"copy":case"cut":case"paste":qe=xe;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":qe=ai;break;case"toggle":case"beforetoggle":qe=jf}var ir=(u&4)!==0,xn=!ir&&(A==="scroll"||A==="scrollend"),De=ir?Ve!==null?Ve+"Capture":null:Ve;ir=[];for(var Oe=Ke,He;Oe!==null;){var rt=Oe;if(He=rt.stateNode,rt=rt.tag,rt!==5&&rt!==26&&rt!==27||He===null||De===null||(rt=ps(Oe,De),rt!=null&&ir.push(Xg(Oe,rt,He))),xn)break;Oe=Oe.return}0<ir.length&&(Ve=new qe(Ve,Nt,null,d,Je),it.push({event:Ve,listeners:ir}))}}if((u&7)===0){e:{if(Ve=A==="mouseover"||A==="pointerover",qe=A==="mouseout"||A==="pointerout",Ve&&d!==BA&&(Nt=d.relatedTarget||d.fromElement)&&(ft(Nt)||Nt[we]))break e;if((qe||Ve)&&(Ve=Je.window===Je?Je:(Ve=Je.ownerDocument)?Ve.defaultView||Ve.parentWindow:window,qe?(Nt=d.relatedTarget||d.toElement,qe=Ke,Nt=Nt?ft(Nt):null,Nt!==null&&(xn=a(Nt),ir=Nt.tag,Nt!==xn||ir!==5&&ir!==27&&ir!==6)&&(Nt=null)):(qe=null,Nt=Ke),qe!==Nt)){if(ir=Rf,rt="onMouseLeave",De="onMouseEnter",Oe="mouse",(A==="pointerout"||A==="pointerover")&&(ir=ai,rt="onPointerLeave",De="onPointerEnter",Oe="pointer"),xn=qe==null?Ve:ut(qe),He=Nt==null?Ve:ut(Nt),Ve=new ir(rt,Oe+"leave",qe,d,Je),Ve.target=xn,Ve.relatedTarget=He,rt=null,ft(Je)===Ke&&(ir=new ir(De,Oe+"enter",Nt,d,Je),ir.target=He,ir.relatedTarget=xn,rt=ir),xn=rt,qe&&Nt)t:{for(ir=ZG,De=qe,Oe=Nt,He=0,rt=De;rt;rt=ir(rt))He++;rt=0;for(var Yt=Oe;Yt;Yt=ir(Yt))rt++;for(;0<He-rt;)De=ir(De),He--;for(;0<rt-He;)Oe=ir(Oe),rt--;for(;He--;){if(De===Oe||Oe!==null&&De===Oe.alternate){ir=De;break t}De=ir(De),Oe=ir(Oe)}ir=null}else ir=null;qe!==null&&_O(it,Ve,qe,ir,!1),Nt!==null&&xn!==null&&_O(it,xn,Nt,ir,!0)}}e:{if(Ve=Ke?ut(Ke):window,qe=Ve.nodeName&&Ve.nodeName.toLowerCase(),qe==="select"||qe==="input"&&Ve.type==="file")var Vr=pl;else if(Hf(Ve))if(es)Vr=qo;else{Vr=si;var Qt=pu}else qe=Ve.nodeName,!qe||qe.toLowerCase()!=="input"||Ve.type!=="checkbox"&&Ve.type!=="radio"?Ke&&Mf(Ke.elementType)&&(Vr=pl):Vr=yd;if(Vr&&(Vr=Vr(A,Ke))){ms(it,Vr,d,Je);break e}Qt&&Qt(A,Ve,Ke),A==="focusout"&&Ke&&Ve.type==="number"&&Ke.memoizedProps.value!=null&&Lf(Ve,"number",Ve.value)}switch(Qt=Ke?ut(Ke):window,A){case"focusin":(Hf(Qt)||Qt.contentEditable==="true")&&(ys=Qt,QA=Ke,ha=null);break;case"focusout":ha=QA=ys=null;break;case"mousedown":Is=!0;break;case"contextmenu":case"mouseup":case"dragend":Is=!1,Hr(it,d,Je);break;case"selectionchange":if(ic)break;case"keydown":case"keyup":Hr(it,d,Je)}var yr;if(Ko)e:{switch(A){case"compositionstart":var Fr="onCompositionStart";break e;case"compositionend":Fr="onCompositionEnd";break e;case"compositionupdate":Fr="onCompositionUpdate";break e}Fr=void 0}else zo?gl(A,d)&&(Fr="onCompositionEnd"):A==="keydown"&&d.keyCode===229&&(Fr="onCompositionStart");Fr&&(NA&&d.locale!=="ko"&&(zo||Fr!=="onCompositionStart"?Fr==="onCompositionEnd"&&zo&&(yr=pd()):(vs=Je,ec="value"in vs?vs.value:vs.textContent,zo=!0)),Qt=rm(Ke,Fr),0<Qt.length&&(Fr=new Le(Fr,A,null,d,Je),it.push({event:Fr,listeners:Qt}),yr?Fr.data=yr:(yr=hu(d),yr!==null&&(Fr.data=yr)))),(yr=nc?Na(A,d):LA(A,d))&&(Fr=rm(Ke,"onBeforeInput"),0<Fr.length&&(Qt=new Le("onBeforeInput","beforeinput",null,d,Je),it.push({event:Qt,listeners:Fr}),Qt.data=yr)),YG(it,A,Ke,d,Je)}CO(it,u)})}function Xg(A,u,d){return{instance:A,listener:u,currentTarget:d}}function rm(A,u){for(var d=u+"Capture",v=[];A!==null;){var B=A,_=B.stateNode;if(B=B.tag,B!==5&&B!==26&&B!==27||_===null||(B=ps(A,d),B!=null&&v.unshift(Xg(A,B,_)),B=ps(A,u),B!=null&&v.push(Xg(A,B,_))),A.tag===3)return v;A=A.return}return[]}function ZG(A){if(A===null)return null;do A=A.return;while(A&&A.tag!==5&&A.tag!==27);return A||null}function _O(A,u,d,v,B){for(var _=u._reactName,z=[];d!==null&&d!==v;){var ie=d,Ce=ie.alternate,Ke=ie.stateNode;if(ie=ie.tag,Ce!==null&&Ce===v)break;ie!==5&&ie!==26&&ie!==27||Ke===null||(Ce=Ke,B?(Ke=ps(d,_),Ke!=null&&z.unshift(Xg(d,Ke,Ce))):B||(Ke=ps(d,_),Ke!=null&&z.push(Xg(d,Ke,Ce)))),d=d.return}z.length!==0&&A.push({event:u,listeners:z})}var eq=/\r\n?/g,tq=/\u0000|\uFFFD/g;function SO(A){return(typeof A=="string"?A:""+A).replace(eq,`
`).replace(tq,"")}function FO(A,u){return u=SO(u),SO(A)===u}function wn(A,u,d,v,B,_){switch(d){case"children":typeof v=="string"?u==="body"||u==="textarea"&&v===""||co(A,v):(typeof v=="number"||typeof v=="bigint")&&u!=="body"&&co(A,""+v);break;case"className":bA(A,"class",v);break;case"tabIndex":bA(A,"tabindex",v);break;case"dir":case"role":case"viewBox":case"width":case"height":bA(A,d,v);break;case"style":fd(A,v,_);break;case"data":if(u!=="object"){bA(A,"data",v);break}case"src":case"href":if(v===""&&(u!=="a"||d!=="href")){A.removeAttribute(d);break}if(v==null||typeof v=="function"||typeof v=="symbol"||typeof v=="boolean"){A.removeAttribute(d);break}v=Za(""+v),A.setAttribute(d,v);break;case"action":case"formAction":if(typeof v=="function"){A.setAttribute(d,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof _=="function"&&(d==="formAction"?(u!=="input"&&wn(A,u,"name",B.name,B,null),wn(A,u,"formEncType",B.formEncType,B,null),wn(A,u,"formMethod",B.formMethod,B,null),wn(A,u,"formTarget",B.formTarget,B,null)):(wn(A,u,"encType",B.encType,B,null),wn(A,u,"method",B.method,B,null),wn(A,u,"target",B.target,B,null)));if(v==null||typeof v=="symbol"||typeof v=="boolean"){A.removeAttribute(d);break}v=Za(""+v),A.setAttribute(d,v);break;case"onClick":v!=null&&(A.onclick=uo);break;case"onScroll":v!=null&&_r("scroll",A);break;case"onScrollEnd":v!=null&&_r("scrollend",A);break;case"dangerouslySetInnerHTML":if(v!=null){if(typeof v!="object"||!("__html"in v))throw Error(n(61));if(d=v.__html,d!=null){if(B.children!=null)throw Error(n(60));A.innerHTML=d}}break;case"multiple":A.multiple=v&&typeof v!="function"&&typeof v!="symbol";break;case"muted":A.muted=v&&typeof v!="function"&&typeof v!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(v==null||typeof v=="function"||typeof v=="boolean"||typeof v=="symbol"){A.removeAttribute("xlink:href");break}d=Za(""+v),A.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",d);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":v!=null&&typeof v!="function"&&typeof v!="symbol"?A.setAttribute(d,""+v):A.removeAttribute(d);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":v&&typeof v!="function"&&typeof v!="symbol"?A.setAttribute(d,""):A.removeAttribute(d);break;case"capture":case"download":v===!0?A.setAttribute(d,""):v!==!1&&v!=null&&typeof v!="function"&&typeof v!="symbol"?A.setAttribute(d,v):A.removeAttribute(d);break;case"cols":case"rows":case"size":case"span":v!=null&&typeof v!="function"&&typeof v!="symbol"&&!isNaN(v)&&1<=v?A.setAttribute(d,v):A.removeAttribute(d);break;case"rowSpan":case"start":v==null||typeof v=="function"||typeof v=="symbol"||isNaN(v)?A.removeAttribute(d):A.setAttribute(d,v);break;case"popover":_r("beforetoggle",A),_r("toggle",A),Mn(A,"popover",v);break;case"xlinkActuate":lo(A,"http://www.w3.org/1999/xlink","xlink:actuate",v);break;case"xlinkArcrole":lo(A,"http://www.w3.org/1999/xlink","xlink:arcrole",v);break;case"xlinkRole":lo(A,"http://www.w3.org/1999/xlink","xlink:role",v);break;case"xlinkShow":lo(A,"http://www.w3.org/1999/xlink","xlink:show",v);break;case"xlinkTitle":lo(A,"http://www.w3.org/1999/xlink","xlink:title",v);break;case"xlinkType":lo(A,"http://www.w3.org/1999/xlink","xlink:type",v);break;case"xmlBase":lo(A,"http://www.w3.org/XML/1998/namespace","xml:base",v);break;case"xmlLang":lo(A,"http://www.w3.org/XML/1998/namespace","xml:lang",v);break;case"xmlSpace":lo(A,"http://www.w3.org/XML/1998/namespace","xml:space",v);break;case"is":Mn(A,"is",v);break;case"innerText":case"textContent":break;default:(!(2<d.length)||d[0]!=="o"&&d[0]!=="O"||d[1]!=="n"&&d[1]!=="N")&&(d=Pf.get(d)||d,Mn(A,d,v))}}function Kb(A,u,d,v,B,_){switch(d){case"style":fd(A,v,_);break;case"dangerouslySetInnerHTML":if(v!=null){if(typeof v!="object"||!("__html"in v))throw Error(n(61));if(d=v.__html,d!=null){if(B.children!=null)throw Error(n(60));A.innerHTML=d}}break;case"children":typeof v=="string"?co(A,v):(typeof v=="number"||typeof v=="bigint")&&co(A,""+v);break;case"onScroll":v!=null&&_r("scroll",A);break;case"onScrollEnd":v!=null&&_r("scrollend",A);break;case"onClick":v!=null&&(A.onclick=uo);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!br.hasOwnProperty(d))e:{if(d[0]==="o"&&d[1]==="n"&&(B=d.endsWith("Capture"),u=d.slice(2,B?d.length-7:void 0),_=A[de]||null,_=_!=null?_[d]:null,typeof _=="function"&&A.removeEventListener(u,_,B),typeof v=="function")){typeof _!="function"&&_!==null&&(d in A?A[d]=null:A.hasAttribute(d)&&A.removeAttribute(d)),A.addEventListener(u,v,B);break e}d in A?A[d]=v:v===!0?A.setAttribute(d,""):Mn(A,d,v)}}}function Pa(A,u,d){switch(u){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":_r("error",A),_r("load",A);var v=!1,B=!1,_;for(_ in d)if(d.hasOwnProperty(_)){var z=d[_];if(z!=null)switch(_){case"src":v=!0;break;case"srcSet":B=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(n(137,u));default:wn(A,u,_,z,d,null)}}B&&wn(A,u,"srcSet",d.srcSet,d,null),v&&wn(A,u,"src",d.src,d,null);return;case"input":_r("invalid",A);var ie=_=z=B=null,Ce=null,Ke=null;for(v in d)if(d.hasOwnProperty(v)){var Je=d[v];if(Je!=null)switch(v){case"name":B=Je;break;case"type":z=Je;break;case"checked":Ce=Je;break;case"defaultChecked":Ke=Je;break;case"value":_=Je;break;case"defaultValue":ie=Je;break;case"children":case"dangerouslySetInnerHTML":if(Je!=null)throw Error(n(137,u));break;default:wn(A,u,v,Je,d,null)}}cd(A,_,ie,Ce,Ke,z,B,!1);return;case"select":_r("invalid",A),v=z=_=null;for(B in d)if(d.hasOwnProperty(B)&&(ie=d[B],ie!=null))switch(B){case"value":_=ie;break;case"defaultValue":z=ie;break;case"multiple":v=ie;default:wn(A,u,B,ie,d,null)}u=_,d=z,A.multiple=!!v,u!=null?Ua(A,!!v,u,!1):d!=null&&Ua(A,!!v,d,!0);return;case"textarea":_r("invalid",A),_=B=v=null;for(z in d)if(d.hasOwnProperty(z)&&(ie=d[z],ie!=null))switch(z){case"value":v=ie;break;case"defaultValue":B=ie;break;case"children":_=ie;break;case"dangerouslySetInnerHTML":if(ie!=null)throw Error(n(91));break;default:wn(A,u,z,ie,d,null)}If(A,v,B,_);return;case"option":for(Ce in d)if(d.hasOwnProperty(Ce)&&(v=d[Ce],v!=null))switch(Ce){case"selected":A.selected=v&&typeof v!="function"&&typeof v!="symbol";break;default:wn(A,u,Ce,v,d,null)}return;case"dialog":_r("beforetoggle",A),_r("toggle",A),_r("cancel",A),_r("close",A);break;case"iframe":case"object":_r("load",A);break;case"video":case"audio":for(v=0;v<$g.length;v++)_r($g[v],A);break;case"image":_r("error",A),_r("load",A);break;case"details":_r("toggle",A);break;case"embed":case"source":case"link":_r("error",A),_r("load",A);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Ke in d)if(d.hasOwnProperty(Ke)&&(v=d[Ke],v!=null))switch(Ke){case"children":case"dangerouslySetInnerHTML":throw Error(n(137,u));default:wn(A,u,Ke,v,d,null)}return;default:if(Mf(u)){for(Je in d)d.hasOwnProperty(Je)&&(v=d[Je],v!==void 0&&Kb(A,u,Je,v,d,void 0));return}}for(ie in d)d.hasOwnProperty(ie)&&(v=d[ie],v!=null&&wn(A,u,ie,v,d,null))}function rq(A,u,d,v){switch(u){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var B=null,_=null,z=null,ie=null,Ce=null,Ke=null,Je=null;for(qe in d){var it=d[qe];if(d.hasOwnProperty(qe)&&it!=null)switch(qe){case"checked":break;case"value":break;case"defaultValue":Ce=it;default:v.hasOwnProperty(qe)||wn(A,u,qe,null,v,it)}}for(var Ve in v){var qe=v[Ve];if(it=d[Ve],v.hasOwnProperty(Ve)&&(qe!=null||it!=null))switch(Ve){case"type":_=qe;break;case"name":B=qe;break;case"checked":Ke=qe;break;case"defaultChecked":Je=qe;break;case"value":z=qe;break;case"defaultValue":ie=qe;break;case"children":case"dangerouslySetInnerHTML":if(qe!=null)throw Error(n(137,u));break;default:qe!==it&&wn(A,u,Ve,qe,v,it)}}Au(A,z,ie,Ce,Ke,Je,_,B);return;case"select":qe=z=ie=Ve=null;for(_ in d)if(Ce=d[_],d.hasOwnProperty(_)&&Ce!=null)switch(_){case"value":break;case"multiple":qe=Ce;default:v.hasOwnProperty(_)||wn(A,u,_,null,v,Ce)}for(B in v)if(_=v[B],Ce=d[B],v.hasOwnProperty(B)&&(_!=null||Ce!=null))switch(B){case"value":Ve=_;break;case"defaultValue":ie=_;break;case"multiple":z=_;default:_!==Ce&&wn(A,u,B,_,v,Ce)}u=ie,d=z,v=qe,Ve!=null?Ua(A,!!d,Ve,!1):!!v!=!!d&&(u!=null?Ua(A,!!d,u,!0):Ua(A,!!d,d?[]:"",!1));return;case"textarea":qe=Ve=null;for(ie in d)if(B=d[ie],d.hasOwnProperty(ie)&&B!=null&&!v.hasOwnProperty(ie))switch(ie){case"value":break;case"children":break;default:wn(A,u,ie,null,v,B)}for(z in v)if(B=v[z],_=d[z],v.hasOwnProperty(z)&&(B!=null||_!=null))switch(z){case"value":Ve=B;break;case"defaultValue":qe=B;break;case"children":break;case"dangerouslySetInnerHTML":if(B!=null)throw Error(n(91));break;default:B!==_&&wn(A,u,z,B,v,_)}Df(A,Ve,qe);return;case"option":for(var Nt in d)if(Ve=d[Nt],d.hasOwnProperty(Nt)&&Ve!=null&&!v.hasOwnProperty(Nt))switch(Nt){case"selected":A.selected=!1;break;default:wn(A,u,Nt,null,v,Ve)}for(Ce in v)if(Ve=v[Ce],qe=d[Ce],v.hasOwnProperty(Ce)&&Ve!==qe&&(Ve!=null||qe!=null))switch(Ce){case"selected":A.selected=Ve&&typeof Ve!="function"&&typeof Ve!="symbol";break;default:wn(A,u,Ce,Ve,v,qe)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ir in d)Ve=d[ir],d.hasOwnProperty(ir)&&Ve!=null&&!v.hasOwnProperty(ir)&&wn(A,u,ir,null,v,Ve);for(Ke in v)if(Ve=v[Ke],qe=d[Ke],v.hasOwnProperty(Ke)&&Ve!==qe&&(Ve!=null||qe!=null))switch(Ke){case"children":case"dangerouslySetInnerHTML":if(Ve!=null)throw Error(n(137,u));break;default:wn(A,u,Ke,Ve,v,qe)}return;default:if(Mf(u)){for(var xn in d)Ve=d[xn],d.hasOwnProperty(xn)&&Ve!==void 0&&!v.hasOwnProperty(xn)&&Kb(A,u,xn,void 0,v,Ve);for(Je in v)Ve=v[Je],qe=d[Je],!v.hasOwnProperty(Je)||Ve===qe||Ve===void 0&&qe===void 0||Kb(A,u,Je,Ve,v,qe);return}}for(var De in d)Ve=d[De],d.hasOwnProperty(De)&&Ve!=null&&!v.hasOwnProperty(De)&&wn(A,u,De,null,v,Ve);for(it in v)Ve=v[it],qe=d[it],!v.hasOwnProperty(it)||Ve===qe||Ve==null&&qe==null||wn(A,u,it,Ve,v,qe)}function TO(A){switch(A){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function nq(){if(typeof performance.getEntriesByType=="function"){for(var A=0,u=0,d=performance.getEntriesByType("resource"),v=0;v<d.length;v++){var B=d[v],_=B.transferSize,z=B.initiatorType,ie=B.duration;if(_&&ie&&TO(z)){for(z=0,ie=B.responseEnd,v+=1;v<d.length;v++){var Ce=d[v],Ke=Ce.startTime;if(Ke>ie)break;var Je=Ce.transferSize,it=Ce.initiatorType;Je&&TO(it)&&(Ce=Ce.responseEnd,z+=Je*(Ce<ie?1:(ie-Ke)/(Ce-Ke)))}if(--v,u+=8*(_+z)/(B.duration/1e3),A++,10<A)break}}if(0<A)return u/A/1e6}return navigator.connection&&(A=navigator.connection.downlink,typeof A=="number")?A:5}var zb=null,Vb=null;function nm(A){return A.nodeType===9?A:A.ownerDocument}function OO(A){switch(A){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function UO(A,u){if(A===0)switch(u){case"svg":return 1;case"math":return 2;default:return 0}return A===1&&u==="foreignObject"?0:A}function Gb(A,u){return A==="textarea"||A==="noscript"||typeof u.children=="string"||typeof u.children=="number"||typeof u.children=="bigint"||typeof u.dangerouslySetInnerHTML=="object"&&u.dangerouslySetInnerHTML!==null&&u.dangerouslySetInnerHTML.__html!=null}var qb=null;function iq(){var A=window.event;return A&&A.type==="popstate"?A===qb?!1:(qb=A,!0):(qb=null,!1)}var NO=typeof setTimeout=="function"?setTimeout:void 0,aq=typeof clearTimeout=="function"?clearTimeout:void 0,LO=typeof Promise=="function"?Promise:void 0,sq=typeof queueMicrotask=="function"?queueMicrotask:typeof LO<"u"?function(A){return LO.resolve(null).then(A).catch(oq)}:NO;function oq(A){setTimeout(function(){throw A})}function Mu(A){return A==="head"}function DO(A,u){var d=u,v=0;do{var B=d.nextSibling;if(A.removeChild(d),B&&B.nodeType===8)if(d=B.data,d==="/$"||d==="/&"){if(v===0){A.removeChild(B),Jd(u);return}v--}else if(d==="$"||d==="$?"||d==="$~"||d==="$!"||d==="&")v++;else if(d==="html")Jg(A.ownerDocument.documentElement);else if(d==="head"){d=A.ownerDocument.head,Jg(d);for(var _=d.firstChild;_;){var z=_.nextSibling,ie=_.nodeName;_[Pe]||ie==="SCRIPT"||ie==="STYLE"||ie==="LINK"&&_.rel.toLowerCase()==="stylesheet"||d.removeChild(_),_=z}}else d==="body"&&Jg(A.ownerDocument.body);d=B}while(d);Jd(u)}function IO(A,u){var d=A;A=0;do{var v=d.nextSibling;if(d.nodeType===1?u?(d._stashedDisplay=d.style.display,d.style.display="none"):(d.style.display=d._stashedDisplay||"",d.getAttribute("style")===""&&d.removeAttribute("style")):d.nodeType===3&&(u?(d._stashedText=d.nodeValue,d.nodeValue=""):d.nodeValue=d._stashedText||""),v&&v.nodeType===8)if(d=v.data,d==="/$"){if(A===0)break;A--}else d!=="$"&&d!=="$?"&&d!=="$~"&&d!=="$!"||A++;d=v}while(d)}function Wb(A){var u=A.firstChild;for(u&&u.nodeType===10&&(u=u.nextSibling);u;){var d=u;switch(u=u.nextSibling,d.nodeName){case"HTML":case"HEAD":case"BODY":Wb(d),ot(d);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(d.rel.toLowerCase()==="stylesheet")continue}A.removeChild(d)}}function Aq(A,u,d,v){for(;A.nodeType===1;){var B=d;if(A.nodeName.toLowerCase()!==u.toLowerCase()){if(!v&&(A.nodeName!=="INPUT"||A.type!=="hidden"))break}else if(v){if(!A[Pe])switch(u){case"meta":if(!A.hasAttribute("itemprop"))break;return A;case"link":if(_=A.getAttribute("rel"),_==="stylesheet"&&A.hasAttribute("data-precedence"))break;if(_!==B.rel||A.getAttribute("href")!==(B.href==null||B.href===""?null:B.href)||A.getAttribute("crossorigin")!==(B.crossOrigin==null?null:B.crossOrigin)||A.getAttribute("title")!==(B.title==null?null:B.title))break;return A;case"style":if(A.hasAttribute("data-precedence"))break;return A;case"script":if(_=A.getAttribute("src"),(_!==(B.src==null?null:B.src)||A.getAttribute("type")!==(B.type==null?null:B.type)||A.getAttribute("crossorigin")!==(B.crossOrigin==null?null:B.crossOrigin))&&_&&A.hasAttribute("async")&&!A.hasAttribute("itemprop"))break;return A;default:return A}}else if(u==="input"&&A.type==="hidden"){var _=B.name==null?null:""+B.name;if(B.type==="hidden"&&A.getAttribute("name")===_)return A}else return A;if(A=eA(A.nextSibling),A===null)break}return null}function lq(A,u,d){if(u==="")return null;for(;A.nodeType!==3;)if((A.nodeType!==1||A.nodeName!=="INPUT"||A.type!=="hidden")&&!d||(A=eA(A.nextSibling),A===null))return null;return A}function MO(A,u){for(;A.nodeType!==8;)if((A.nodeType!==1||A.nodeName!=="INPUT"||A.type!=="hidden")&&!u||(A=eA(A.nextSibling),A===null))return null;return A}function Yb(A){return A.data==="$?"||A.data==="$~"}function $b(A){return A.data==="$!"||A.data==="$?"&&A.ownerDocument.readyState!=="loading"}function cq(A,u){var d=A.ownerDocument;if(A.data==="$~")A._reactRetry=u;else if(A.data!=="$?"||d.readyState!=="loading")u();else{var v=function(){u(),d.removeEventListener("DOMContentLoaded",v)};d.addEventListener("DOMContentLoaded",v),A._reactRetry=v}}function eA(A){for(;A!=null;A=A.nextSibling){var u=A.nodeType;if(u===1||u===3)break;if(u===8){if(u=A.data,u==="$"||u==="$!"||u==="$?"||u==="$~"||u==="&"||u==="F!"||u==="F")break;if(u==="/$"||u==="/&")return null}}return A}var Xb=null;function PO(A){A=A.nextSibling;for(var u=0;A;){if(A.nodeType===8){var d=A.data;if(d==="/$"||d==="/&"){if(u===0)return eA(A.nextSibling);u--}else d!=="$"&&d!=="$!"&&d!=="$?"&&d!=="$~"&&d!=="&"||u++}A=A.nextSibling}return null}function kO(A){A=A.previousSibling;for(var u=0;A;){if(A.nodeType===8){var d=A.data;if(d==="$"||d==="$!"||d==="$?"||d==="$~"||d==="&"){if(u===0)return A;u--}else d!=="/$"&&d!=="/&"||u++}A=A.previousSibling}return null}function QO(A,u,d){switch(u=nm(d),A){case"html":if(A=u.documentElement,!A)throw Error(n(452));return A;case"head":if(A=u.head,!A)throw Error(n(453));return A;case"body":if(A=u.body,!A)throw Error(n(454));return A;default:throw Error(n(451))}}function Jg(A){for(var u=A.attributes;u.length;)A.removeAttributeNode(u[0]);ot(A)}var tA=new Map,RO=new Set;function im(A){return typeof A.getRootNode=="function"?A.getRootNode():A.nodeType===9?A:A.ownerDocument}var bc=se.d;se.d={f:uq,r:fq,D:hq,C:dq,L:gq,m:pq,X:mq,S:vq,M:yq};function uq(){var A=bc.f(),u=Yv();return A||u}function fq(A){var u=pt(A);u!==null&&u.tag===5&&u.type==="form"?nT(u):bc.r(A)}var Yd=typeof document>"u"?null:document;function jO(A,u,d){var v=Yd;if(v&&typeof u=="string"&&u){var B=hi(u);B='link[rel="'+A+'"][href="'+B+'"]',typeof d=="string"&&(B+='[crossorigin="'+d+'"]'),RO.has(B)||(RO.add(B),A={rel:A,crossOrigin:d,href:u},v.querySelector(B)===null&&(u=v.createElement("link"),Pa(u,"link",A),_t(u),v.head.appendChild(u)))}}function hq(A){bc.D(A),jO("dns-prefetch",A,null)}function dq(A,u){bc.C(A,u),jO("preconnect",A,u)}function gq(A,u,d){bc.L(A,u,d);var v=Yd;if(v&&A&&u){var B='link[rel="preload"][as="'+hi(u)+'"]';u==="image"&&d&&d.imageSrcSet?(B+='[imagesrcset="'+hi(d.imageSrcSet)+'"]',typeof d.imageSizes=="string"&&(B+='[imagesizes="'+hi(d.imageSizes)+'"]')):B+='[href="'+hi(A)+'"]';var _=B;switch(u){case"style":_=$d(A);break;case"script":_=Xd(A)}tA.has(_)||(A=h({rel:"preload",href:u==="image"&&d&&d.imageSrcSet?void 0:A,as:u},d),tA.set(_,A),v.querySelector(B)!==null||u==="style"&&v.querySelector(Zg(_))||u==="script"&&v.querySelector(ep(_))||(u=v.createElement("link"),Pa(u,"link",A),_t(u),v.head.appendChild(u)))}}function pq(A,u){bc.m(A,u);var d=Yd;if(d&&A){var v=u&&typeof u.as=="string"?u.as:"script",B='link[rel="modulepreload"][as="'+hi(v)+'"][href="'+hi(A)+'"]',_=B;switch(v){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":_=Xd(A)}if(!tA.has(_)&&(A=h({rel:"modulepreload",href:A},u),tA.set(_,A),d.querySelector(B)===null)){switch(v){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(d.querySelector(ep(_)))return}v=d.createElement("link"),Pa(v,"link",A),_t(v),d.head.appendChild(v)}}}function vq(A,u,d){bc.S(A,u,d);var v=Yd;if(v&&A){var B=dt(v).hoistableStyles,_=$d(A);u=u||"default";var z=B.get(_);if(!z){var ie={loading:0,preload:null};if(z=v.querySelector(Zg(_)))ie.loading=5;else{A=h({rel:"stylesheet",href:A,"data-precedence":u},d),(d=tA.get(_))&&Jb(A,d);var Ce=z=v.createElement("link");_t(Ce),Pa(Ce,"link",A),Ce._p=new Promise(function(Ke,Je){Ce.onload=Ke,Ce.onerror=Je}),Ce.addEventListener("load",function(){ie.loading|=1}),Ce.addEventListener("error",function(){ie.loading|=2}),ie.loading|=4,am(z,u,v)}z={type:"stylesheet",instance:z,count:1,state:ie},B.set(_,z)}}}function mq(A,u){bc.X(A,u);var d=Yd;if(d&&A){var v=dt(d).hoistableScripts,B=Xd(A),_=v.get(B);_||(_=d.querySelector(ep(B)),_||(A=h({src:A,async:!0},u),(u=tA.get(B))&&Zb(A,u),_=d.createElement("script"),_t(_),Pa(_,"link",A),d.head.appendChild(_)),_={type:"script",instance:_,count:1,state:null},v.set(B,_))}}function yq(A,u){bc.M(A,u);var d=Yd;if(d&&A){var v=dt(d).hoistableScripts,B=Xd(A),_=v.get(B);_||(_=d.querySelector(ep(B)),_||(A=h({src:A,async:!0,type:"module"},u),(u=tA.get(B))&&Zb(A,u),_=d.createElement("script"),_t(_),Pa(_,"link",A),d.head.appendChild(_)),_={type:"script",instance:_,count:1,state:null},v.set(B,_))}}function HO(A,u,d,v){var B=(B=re.current)?im(B):null;if(!B)throw Error(n(446));switch(A){case"meta":case"title":return null;case"style":return typeof d.precedence=="string"&&typeof d.href=="string"?(u=$d(d.href),d=dt(B).hoistableStyles,v=d.get(u),v||(v={type:"style",instance:null,count:0,state:null},d.set(u,v)),v):{type:"void",instance:null,count:0,state:null};case"link":if(d.rel==="stylesheet"&&typeof d.href=="string"&&typeof d.precedence=="string"){A=$d(d.href);var _=dt(B).hoistableStyles,z=_.get(A);if(z||(B=B.ownerDocument||B,z={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},_.set(A,z),(_=B.querySelector(Zg(A)))&&!_._p&&(z.instance=_,z.state.loading=5),tA.has(A)||(d={rel:"preload",as:"style",href:d.href,crossOrigin:d.crossOrigin,integrity:d.integrity,media:d.media,hrefLang:d.hrefLang,referrerPolicy:d.referrerPolicy},tA.set(A,d),_||wq(B,A,d,z.state))),u&&v===null)throw Error(n(528,""));return z}if(u&&v!==null)throw Error(n(529,""));return null;case"script":return u=d.async,d=d.src,typeof d=="string"&&u&&typeof u!="function"&&typeof u!="symbol"?(u=Xd(d),d=dt(B).hoistableScripts,v=d.get(u),v||(v={type:"script",instance:null,count:0,state:null},d.set(u,v)),v):{type:"void",instance:null,count:0,state:null};default:throw Error(n(444,A))}}function $d(A){return'href="'+hi(A)+'"'}function Zg(A){return'link[rel="stylesheet"]['+A+"]"}function KO(A){return h({},A,{"data-precedence":A.precedence,precedence:null})}function wq(A,u,d,v){A.querySelector('link[rel="preload"][as="style"]['+u+"]")?v.loading=1:(u=A.createElement("link"),v.preload=u,u.addEventListener("load",function(){return v.loading|=1}),u.addEventListener("error",function(){return v.loading|=2}),Pa(u,"link",d),_t(u),A.head.appendChild(u))}function Xd(A){return'[src="'+hi(A)+'"]'}function ep(A){return"script[async]"+A}function zO(A,u,d){if(u.count++,u.instance===null)switch(u.type){case"style":var v=A.querySelector('style[data-href~="'+hi(d.href)+'"]');if(v)return u.instance=v,_t(v),v;var B=h({},d,{"data-href":d.href,"data-precedence":d.precedence,href:null,precedence:null});return v=(A.ownerDocument||A).createElement("style"),_t(v),Pa(v,"style",B),am(v,d.precedence,A),u.instance=v;case"stylesheet":B=$d(d.href);var _=A.querySelector(Zg(B));if(_)return u.state.loading|=4,u.instance=_,_t(_),_;v=KO(d),(B=tA.get(B))&&Jb(v,B),_=(A.ownerDocument||A).createElement("link"),_t(_);var z=_;return z._p=new Promise(function(ie,Ce){z.onload=ie,z.onerror=Ce}),Pa(_,"link",v),u.state.loading|=4,am(_,d.precedence,A),u.instance=_;case"script":return _=Xd(d.src),(B=A.querySelector(ep(_)))?(u.instance=B,_t(B),B):(v=d,(B=tA.get(_))&&(v=h({},d),Zb(v,B)),A=A.ownerDocument||A,B=A.createElement("script"),_t(B),Pa(B,"link",v),A.head.appendChild(B),u.instance=B);case"void":return null;default:throw Error(n(443,u.type))}else u.type==="stylesheet"&&(u.state.loading&4)===0&&(v=u.instance,u.state.loading|=4,am(v,d.precedence,A));return u.instance}function am(A,u,d){for(var v=d.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),B=v.length?v[v.length-1]:null,_=B,z=0;z<v.length;z++){var ie=v[z];if(ie.dataset.precedence===u)_=ie;else if(_!==B)break}_?_.parentNode.insertBefore(A,_.nextSibling):(u=d.nodeType===9?d.head:d,u.insertBefore(A,u.firstChild))}function Jb(A,u){A.crossOrigin==null&&(A.crossOrigin=u.crossOrigin),A.referrerPolicy==null&&(A.referrerPolicy=u.referrerPolicy),A.title==null&&(A.title=u.title)}function Zb(A,u){A.crossOrigin==null&&(A.crossOrigin=u.crossOrigin),A.referrerPolicy==null&&(A.referrerPolicy=u.referrerPolicy),A.integrity==null&&(A.integrity=u.integrity)}var sm=null;function VO(A,u,d){if(sm===null){var v=new Map,B=sm=new Map;B.set(d,v)}else B=sm,v=B.get(d),v||(v=new Map,B.set(d,v));if(v.has(A))return v;for(v.set(A,null),d=d.getElementsByTagName(A),B=0;B<d.length;B++){var _=d[B];if(!(_[Pe]||_[ce]||A==="link"&&_.getAttribute("rel")==="stylesheet")&&_.namespaceURI!=="http://www.w3.org/2000/svg"){var z=_.getAttribute(u)||"";z=A+z;var ie=v.get(z);ie?ie.push(_):v.set(z,[_])}}return v}function GO(A,u,d){A=A.ownerDocument||A,A.head.insertBefore(d,u==="title"?A.querySelector("head > title"):null)}function xq(A,u,d){if(d===1||u.itemProp!=null)return!1;switch(A){case"meta":case"title":return!0;case"style":if(typeof u.precedence!="string"||typeof u.href!="string"||u.href==="")break;return!0;case"link":if(typeof u.rel!="string"||typeof u.href!="string"||u.href===""||u.onLoad||u.onError)break;switch(u.rel){case"stylesheet":return A=u.disabled,typeof u.precedence=="string"&&A==null;default:return!0}case"script":if(u.async&&typeof u.async!="function"&&typeof u.async!="symbol"&&!u.onLoad&&!u.onError&&u.src&&typeof u.src=="string")return!0}return!1}function qO(A){return!(A.type==="stylesheet"&&(A.state.loading&3)===0)}function bq(A,u,d,v){if(d.type==="stylesheet"&&(typeof v.media!="string"||matchMedia(v.media).matches!==!1)&&(d.state.loading&4)===0){if(d.instance===null){var B=$d(v.href),_=u.querySelector(Zg(B));if(_){u=_._p,u!==null&&typeof u=="object"&&typeof u.then=="function"&&(A.count++,A=om.bind(A),u.then(A,A)),d.state.loading|=4,d.instance=_,_t(_);return}_=u.ownerDocument||u,v=KO(v),(B=tA.get(B))&&Jb(v,B),_=_.createElement("link"),_t(_);var z=_;z._p=new Promise(function(ie,Ce){z.onload=ie,z.onerror=Ce}),Pa(_,"link",v),d.instance=_}A.stylesheets===null&&(A.stylesheets=new Map),A.stylesheets.set(d,u),(u=d.state.preload)&&(d.state.loading&3)===0&&(A.count++,d=om.bind(A),u.addEventListener("load",d),u.addEventListener("error",d))}}var eB=0;function Bq(A,u){return A.stylesheets&&A.count===0&&lm(A,A.stylesheets),0<A.count||0<A.imgCount?function(d){var v=setTimeout(function(){if(A.stylesheets&&lm(A,A.stylesheets),A.unsuspend){var _=A.unsuspend;A.unsuspend=null,_()}},6e4+u);0<A.imgBytes&&eB===0&&(eB=62500*nq());var B=setTimeout(function(){if(A.waitingForImages=!1,A.count===0&&(A.stylesheets&&lm(A,A.stylesheets),A.unsuspend)){var _=A.unsuspend;A.unsuspend=null,_()}},(A.imgBytes>eB?50:800)+u);return A.unsuspend=d,function(){A.unsuspend=null,clearTimeout(v),clearTimeout(B)}}:null}function om(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)lm(this,this.stylesheets);else if(this.unsuspend){var A=this.unsuspend;this.unsuspend=null,A()}}}var Am=null;function lm(A,u){A.stylesheets=null,A.unsuspend!==null&&(A.count++,Am=new Map,u.forEach(Cq,A),Am=null,om.call(A))}function Cq(A,u){if(!(u.state.loading&4)){var d=Am.get(A);if(d)var v=d.get(null);else{d=new Map,Am.set(A,d);for(var B=A.querySelectorAll("link[data-precedence],style[data-precedence]"),_=0;_<B.length;_++){var z=B[_];(z.nodeName==="LINK"||z.getAttribute("media")!=="not all")&&(d.set(z.dataset.precedence,z),v=z)}v&&d.set(null,v)}B=u.instance,z=B.getAttribute("data-precedence"),_=d.get(z)||v,_===v&&d.set(null,B),d.set(z,B),this.count++,v=om.bind(this),B.addEventListener("load",v),B.addEventListener("error",v),_?_.parentNode.insertBefore(B,_.nextSibling):(A=A.nodeType===9?A.head:A,A.insertBefore(B,A.firstChild)),u.state.loading|=4}}var tp={$$typeof:S,Provider:null,Consumer:null,_currentValue:ge,_currentValue2:ge,_threadCount:0};function Eq(A,u,d,v,B,_,z,ie,Ce){this.tag=1,this.containerInfo=A,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=fa(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=fa(0),this.hiddenUpdates=fa(null),this.identifierPrefix=v,this.onUncaughtError=B,this.onCaughtError=_,this.onRecoverableError=z,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=Ce,this.incompleteTransitions=new Map}function WO(A,u,d,v,B,_,z,ie,Ce,Ke,Je,it){return A=new Eq(A,u,d,z,Ce,Ke,Je,it,ie),u=1,_===!0&&(u|=24),_=ga(3,null,null,u),A.current=_,_.stateNode=A,u=Cu(),u.refCount++,A.pooledCache=u,u.refCount++,_.memoizedState={element:v,isDehydrated:d,cache:u},vt(_),A}function YO(A){return A?(A=Ji,A):Ji}function $O(A,u,d,v,B,_){B=YO(B),v.context===null?v.context=B:v.pendingContext=B,v=tr(u),v.payload={element:d},_=_===void 0?null:_,_!==null&&(v.callback=_),d=mr(A,v,u),d!==null&&(Ys(d,A,u),Xr(d,A,u))}function XO(A,u){if(A=A.memoizedState,A!==null&&A.dehydrated!==null){var d=A.retryLane;A.retryLane=d!==0&&d<u?d:u}}function tB(A,u){XO(A,u),(A=A.alternate)&&XO(A,u)}function JO(A){if(A.tag===13||A.tag===31){var u=RA(A,67108864);u!==null&&Ys(u,A,67108864),tB(A,67108864)}}function ZO(A){if(A.tag===13||A.tag===31){var u=xo();u=zr(u);var d=RA(A,u);d!==null&&Ys(d,A,u),tB(A,u)}}var cm=!0;function _q(A,u,d,v){var B=G.T;G.T=null;var _=se.p;try{se.p=2,rB(A,u,d,v)}finally{se.p=_,G.T=B}}function Sq(A,u,d,v){var B=G.T;G.T=null;var _=se.p;try{se.p=8,rB(A,u,d,v)}finally{se.p=_,G.T=B}}function rB(A,u,d,v){if(cm){var B=nB(v);if(B===null)Hb(A,u,v,um,d),tU(A,v);else if(Tq(B,A,u,d,v))v.stopPropagation();else if(tU(A,v),u&4&&-1<Fq.indexOf(A)){for(;B!==null;){var _=pt(B);if(_!==null)switch(_.tag){case 3:if(_=_.stateNode,_.current.memoizedState.isDehydrated){var z=mt(_.pendingLanes);if(z!==0){var ie=_;for(ie.pendingLanes|=2,ie.entangledLanes|=2;z;){var Ce=1<<31-vr(z);ie.entanglements[1]|=Ce,z&=~Ce}Tl(_),(Zr&6)===0&&(qv=Vt()+500,Yg(0))}}break;case 31:case 13:ie=RA(_,2),ie!==null&&Ys(ie,_,2),Yv(),tB(_,2)}if(_=nB(v),_===null&&Hb(A,u,v,um,d),_===B)break;B=_}B!==null&&v.stopPropagation()}else Hb(A,u,v,null,d)}}function nB(A){return A=Jl(A),iB(A)}var um=null;function iB(A){if(um=null,A=ft(A),A!==null){var u=a(A);if(u===null)A=null;else{var d=u.tag;if(d===13){if(A=s(u),A!==null)return A;A=null}else if(d===31){if(A=o(u),A!==null)return A;A=null}else if(d===3){if(u.stateNode.current.memoizedState.isDehydrated)return u.tag===3?u.stateNode.containerInfo:null;A=null}else u!==A&&(A=null)}}return um=A,null}function eU(A){switch(A){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(cr()){case Jt:return 2;case ur:return 8;case rr:case Et:return 32;case nr:return 268435456;default:return 32}default:return 32}}var aB=!1,Pu=null,ku=null,Qu=null,rp=new Map,np=new Map,Ru=[],Fq="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function tU(A,u){switch(A){case"focusin":case"focusout":Pu=null;break;case"dragenter":case"dragleave":ku=null;break;case"mouseover":case"mouseout":Qu=null;break;case"pointerover":case"pointerout":rp.delete(u.pointerId);break;case"gotpointercapture":case"lostpointercapture":np.delete(u.pointerId)}}function ip(A,u,d,v,B,_){return A===null||A.nativeEvent!==_?(A={blockedOn:u,domEventName:d,eventSystemFlags:v,nativeEvent:_,targetContainers:[B]},u!==null&&(u=pt(u),u!==null&&JO(u)),A):(A.eventSystemFlags|=v,u=A.targetContainers,B!==null&&u.indexOf(B)===-1&&u.push(B),A)}function Tq(A,u,d,v,B){switch(u){case"focusin":return Pu=ip(Pu,A,u,d,v,B),!0;case"dragenter":return ku=ip(ku,A,u,d,v,B),!0;case"mouseover":return Qu=ip(Qu,A,u,d,v,B),!0;case"pointerover":var _=B.pointerId;return rp.set(_,ip(rp.get(_)||null,A,u,d,v,B)),!0;case"gotpointercapture":return _=B.pointerId,np.set(_,ip(np.get(_)||null,A,u,d,v,B)),!0}return!1}function rU(A){var u=ft(A.target);if(u!==null){var d=a(u);if(d!==null){if(u=d.tag,u===13){if(u=s(d),u!==null){A.blockedOn=u,ve(A.priority,function(){ZO(d)});return}}else if(u===31){if(u=o(d),u!==null){A.blockedOn=u,ve(A.priority,function(){ZO(d)});return}}else if(u===3&&d.stateNode.current.memoizedState.isDehydrated){A.blockedOn=d.tag===3?d.stateNode.containerInfo:null;return}}}A.blockedOn=null}function fm(A){if(A.blockedOn!==null)return!1;for(var u=A.targetContainers;0<u.length;){var d=nB(A.nativeEvent);if(d===null){d=A.nativeEvent;var v=new d.constructor(d.type,d);BA=v,d.target.dispatchEvent(v),BA=null}else return u=pt(d),u!==null&&JO(u),A.blockedOn=d,!1;u.shift()}return!0}function nU(A,u,d){fm(A)&&d.delete(u)}function Oq(){aB=!1,Pu!==null&&fm(Pu)&&(Pu=null),ku!==null&&fm(ku)&&(ku=null),Qu!==null&&fm(Qu)&&(Qu=null),rp.forEach(nU),np.forEach(nU)}function hm(A,u){A.blockedOn===u&&(A.blockedOn=null,aB||(aB=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Oq)))}var dm=null;function iU(A){dm!==A&&(dm=A,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){dm===A&&(dm=null);for(var u=0;u<A.length;u+=3){var d=A[u],v=A[u+1],B=A[u+2];if(typeof v!="function"){if(iB(v||d)===null)continue;break}var _=pt(d);_!==null&&(A.splice(u,3),u-=3,nb(_,{pending:!0,data:B,method:d.method,action:v},v,B))}}))}function Jd(A){function u(Ce){return hm(Ce,A)}Pu!==null&&hm(Pu,A),ku!==null&&hm(ku,A),Qu!==null&&hm(Qu,A),rp.forEach(u),np.forEach(u);for(var d=0;d<Ru.length;d++){var v=Ru[d];v.blockedOn===A&&(v.blockedOn=null)}for(;0<Ru.length&&(d=Ru[0],d.blockedOn===null);)rU(d),d.blockedOn===null&&Ru.shift();if(d=(A.ownerDocument||A).$$reactFormReplay,d!=null)for(v=0;v<d.length;v+=3){var B=d[v],_=d[v+1],z=B[de]||null;if(typeof _=="function")z||iU(d);else if(z){var ie=null;if(_&&_.hasAttribute("formAction")){if(B=_,z=_[de]||null)ie=z.formAction;else if(iB(B)!==null)continue}else ie=z.action;typeof ie=="function"?d[v+1]=ie:(d.splice(v,3),v-=3),iU(d)}}}function aU(){function A(_){_.canIntercept&&_.info==="react-transition"&&_.intercept({handler:function(){return new Promise(function(z){return B=z})},focusReset:"manual",scroll:"manual"})}function u(){B!==null&&(B(),B=null),v||setTimeout(d,20)}function d(){if(!v&&!navigation.transition){var _=navigation.currentEntry;_&&_.url!=null&&navigation.navigate(_.url,{state:_.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var v=!1,B=null;return navigation.addEventListener("navigate",A),navigation.addEventListener("navigatesuccess",u),navigation.addEventListener("navigateerror",u),setTimeout(d,100),function(){v=!0,navigation.removeEventListener("navigate",A),navigation.removeEventListener("navigatesuccess",u),navigation.removeEventListener("navigateerror",u),B!==null&&(B(),B=null)}}}function sB(A){this._internalRoot=A}gm.prototype.render=sB.prototype.render=function(A){var u=this._internalRoot;if(u===null)throw Error(n(409));var d=u.current,v=xo();$O(d,v,A,u,null,null)},gm.prototype.unmount=sB.prototype.unmount=function(){var A=this._internalRoot;if(A!==null){this._internalRoot=null;var u=A.containerInfo;$O(A.current,2,null,A,null,null),Yv(),u[we]=null}};function gm(A){this._internalRoot=A}gm.prototype.unstable_scheduleHydration=function(A){if(A){var u=ee();A={blockedOn:null,target:A,priority:u};for(var d=0;d<Ru.length&&u!==0&&u<Ru[d].priority;d++);Ru.splice(d,0,A),d===0&&rU(A)}};var sU=t.version;if(sU!=="19.2.0")throw Error(n(527,sU,"19.2.0"));se.findDOMNode=function(A){var u=A._reactInternals;if(u===void 0)throw typeof A.render=="function"?Error(n(188)):(A=Object.keys(A).join(","),Error(n(268,A)));return A=c(u),A=A!==null?f(A):null,A=A===null?null:A.stateNode,A};var Uq={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:G,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var pm=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!pm.isDisabled&&pm.supportsFiber)try{or=pm.inject(Uq),Kt=pm}catch{}}return sp.createRoot=function(A,u){if(!i(A))throw Error(n(299));var d=!1,v="",B=hT,_=dT,z=gT;return u!=null&&(u.unstable_strictMode===!0&&(d=!0),u.identifierPrefix!==void 0&&(v=u.identifierPrefix),u.onUncaughtError!==void 0&&(B=u.onUncaughtError),u.onCaughtError!==void 0&&(_=u.onCaughtError),u.onRecoverableError!==void 0&&(z=u.onRecoverableError)),u=WO(A,1,!1,null,null,d,v,null,B,_,z,aU),A[we]=u.current,jb(A),new sB(u)},sp.hydrateRoot=function(A,u,d){if(!i(A))throw Error(n(299));var v=!1,B="",_=hT,z=dT,ie=gT,Ce=null;return d!=null&&(d.unstable_strictMode===!0&&(v=!0),d.identifierPrefix!==void 0&&(B=d.identifierPrefix),d.onUncaughtError!==void 0&&(_=d.onUncaughtError),d.onCaughtError!==void 0&&(z=d.onCaughtError),d.onRecoverableError!==void 0&&(ie=d.onRecoverableError),d.formState!==void 0&&(Ce=d.formState)),u=WO(A,1,!0,u,d??null,v,B,Ce,_,z,ie,aU),u.context=YO(null),d=u.current,v=xo(),v=zr(v),B=tr(v),B.callback=null,mr(d,B,v),d=v,u.current.lanes=d,Mt(u,d),Tl(u),A[we]=u.current,jb(A),new gm(u)},sp.version="19.2.0",sp}var pU;function Hq(){if(pU)return lB.exports;pU=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),lB.exports=jq(),lB.exports}var Kq=Hq();const zq=sl(Kq);/**
 * react-router v7.9.4
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */var vU="popstate";function Vq(e={}){function t(n,i){let{pathname:a,search:s,hash:o}=n.location;return EE("",{pathname:a,search:s,hash:o},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function r(n,i){return typeof i=="string"?i:l1(i)}return qq(t,r,null,e)}function ci(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Kl(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Gq(){return Math.random().toString(36).substring(2,10)}function mU(e,t){return{usr:e.state,key:e.key,idx:t}}function EE(e,t,r=null,n){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?tg(t):t,state:r,key:t&&t.key||n||Gq()}}function l1({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function tg(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substring(n),e=e.substring(0,n)),e&&(t.pathname=e)}return t}function qq(e,t,r,n={}){let{window:i=document.defaultView,v5Compat:a=!1}=n,s=i.history,o="POP",l=null,c=f();c==null&&(c=0,s.replaceState({...s.state,idx:c},""));function f(){return(s.state||{idx:null}).idx}function h(){o="POP";let w=f(),b=w==null?null:w-c;c=w,l&&l({action:o,location:m.location,delta:b})}function p(w,b){o="PUSH";let E=EE(m.location,w,b);c=f()+1;let S=mU(E,c),T=m.createHref(E);try{s.pushState(S,"",T)}catch(D){if(D instanceof DOMException&&D.name==="DataCloneError")throw D;i.location.assign(T)}a&&l&&l({action:o,location:m.location,delta:1})}function g(w,b){o="REPLACE";let E=EE(m.location,w,b);c=f();let S=mU(E,c),T=m.createHref(E);s.replaceState(S,"",T),a&&l&&l({action:o,location:m.location,delta:0})}function y(w){return Wq(w)}let m={get action(){return o},get location(){return e(i,s)},listen(w){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(vU,h),l=w,()=>{i.removeEventListener(vU,h),l=null}},createHref(w){return t(i,w)},createURL:y,encodeLocation(w){let b=y(w);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:p,replace:g,go(w){return s.go(w)}};return m}function Wq(e,t=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),ci(r,"No window.location.(origin|href) available to create URL");let n=typeof e=="string"?e:l1(e);return n=n.replace(/ $/,"%20"),!t&&n.startsWith("//")&&(n=r+n),new URL(n,r)}function Ok(e,t,r="/"){return Yq(e,t,r,!1)}function Yq(e,t,r,n){let i=typeof t=="string"?tg(t):t,a=zc(i.pathname||"/",r);if(a==null)return null;let s=Uk(e);$q(s);let o=null;for(let l=0;o==null&&l<s.length;++l){let c=oW(a);o=aW(s[l],c,n)}return o}function Uk(e,t=[],r=[],n="",i=!1){let a=(s,o,l=i,c)=>{let f={relativePath:c===void 0?s.path||"":c,caseSensitive:s.caseSensitive===!0,childrenIndex:o,route:s};if(f.relativePath.startsWith("/")){if(!f.relativePath.startsWith(n)&&l)return;ci(f.relativePath.startsWith(n),`Absolute route path "${f.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),f.relativePath=f.relativePath.slice(n.length)}let h=Pc([n,f.relativePath]),p=r.concat(f);s.children&&s.children.length>0&&(ci(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${h}".`),Uk(s.children,t,p,h,l)),!(s.path==null&&!s.index)&&t.push({path:h,score:nW(h,s.index),routesMeta:p})};return e.forEach((s,o)=>{if(s.path===""||!s.path?.includes("?"))a(s,o);else for(let l of Nk(s.path))a(s,o,!0,l)}),t}function Nk(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,i=r.endsWith("?"),a=r.replace(/\?$/,"");if(n.length===0)return i?[a,""]:[a];let s=Nk(n.join("/")),o=[];return o.push(...s.map(l=>l===""?a:[a,l].join("/"))),i&&o.push(...s),o.map(l=>e.startsWith("/")&&l===""?"/":l)}function $q(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:iW(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}var Xq=/^:[\w-]+$/,Jq=3,Zq=2,eW=1,tW=10,rW=-2,yU=e=>e==="*";function nW(e,t){let r=e.split("/"),n=r.length;return r.some(yU)&&(n+=rW),t&&(n+=Zq),r.filter(i=>!yU(i)).reduce((i,a)=>i+(Xq.test(a)?Jq:a===""?eW:tW),n)}function iW(e,t){return e.length===t.length&&e.slice(0,-1).every((n,i)=>n===t[i])?e[e.length-1]-t[t.length-1]:0}function aW(e,t,r=!1){let{routesMeta:n}=e,i={},a="/",s=[];for(let o=0;o<n.length;++o){let l=n[o],c=o===n.length-1,f=a==="/"?t:t.slice(a.length)||"/",h=i2({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},f),p=l.route;if(!h&&c&&r&&!n[n.length-1].route.index&&(h=i2({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},f)),!h)return null;Object.assign(i,h.params),s.push({params:i,pathname:Pc([a,h.pathname]),pathnameBase:uW(Pc([a,h.pathnameBase])),route:p}),h.pathnameBase!=="/"&&(a=Pc([a,h.pathnameBase]))}return s}function i2(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=sW(e.path,e.caseSensitive,e.end),i=t.match(r);if(!i)return null;let a=i[0],s=a.replace(/(.)\/+$/,"$1"),o=i.slice(1);return{params:n.reduce((c,{paramName:f,isOptional:h},p)=>{if(f==="*"){let y=o[p]||"";s=a.slice(0,a.length-y.length).replace(/(.)\/+$/,"$1")}const g=o[p];return h&&!g?c[f]=void 0:c[f]=(g||"").replace(/%2F/g,"/"),c},{}),pathname:a,pathnameBase:s,pattern:e}}function sW(e,t=!1,r=!0){Kl(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let n=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,o,l)=>(n.push({paramName:o,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(n.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),n]}function oW(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Kl(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function zc(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function AW(e,t="/"){let{pathname:r,search:n="",hash:i=""}=typeof e=="string"?tg(e):e;return{pathname:r?r.startsWith("/")?r:lW(r,t):t,search:fW(n),hash:hW(i)}}function lW(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function hB(e,t,r,n){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(n)}].  Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function cW(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Lk(e){let t=cW(e);return t.map((r,n)=>n===t.length-1?r.pathname:r.pathnameBase)}function Dk(e,t,r,n=!1){let i;typeof e=="string"?i=tg(e):(i={...e},ci(!i.pathname||!i.pathname.includes("?"),hB("?","pathname","search",i)),ci(!i.pathname||!i.pathname.includes("#"),hB("#","pathname","hash",i)),ci(!i.search||!i.search.includes("#"),hB("#","search","hash",i)));let a=e===""||i.pathname==="",s=a?"/":i.pathname,o;if(s==null)o=r;else{let h=t.length-1;if(!n&&s.startsWith("..")){let p=s.split("/");for(;p[0]==="..";)p.shift(),h-=1;i.pathname=p.join("/")}o=h>=0?t[h]:"/"}let l=AW(i,o),c=s&&s!=="/"&&s.endsWith("/"),f=(a||s===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(c||f)&&(l.pathname+="/"),l}var Pc=e=>e.join("/").replace(/\/\/+/g,"/"),uW=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),fW=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,hW=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function dW(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var Ik=["POST","PUT","PATCH","DELETE"];new Set(Ik);var gW=["GET",...Ik];new Set(gW);var rg=N.createContext(null);rg.displayName="DataRouter";var Nw=N.createContext(null);Nw.displayName="DataRouterState";N.createContext(!1);var Mk=N.createContext({isTransitioning:!1});Mk.displayName="ViewTransition";var pW=N.createContext(new Map);pW.displayName="Fetchers";var vW=N.createContext(null);vW.displayName="Await";var ql=N.createContext(null);ql.displayName="Navigation";var H1=N.createContext(null);H1.displayName="Location";var Zc=N.createContext({outlet:null,matches:[],isDataRoute:!1});Zc.displayName="Route";var S4=N.createContext(null);S4.displayName="RouteError";function mW(e,{relative:t}={}){ci(K1(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:n}=N.useContext(ql),{hash:i,pathname:a,search:s}=z1(e,{relative:t}),o=a;return r!=="/"&&(o=a==="/"?r:Pc([r,a])),n.createHref({pathname:o,search:s,hash:i})}function K1(){return N.useContext(H1)!=null}function Wh(){return ci(K1(),"useLocation() may be used only in the context of a <Router> component."),N.useContext(H1).location}var Pk="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function kk(e){N.useContext(ql).static||N.useLayoutEffect(e)}function ng(){let{isDataRoute:e}=N.useContext(Zc);return e?UW():yW()}function yW(){ci(K1(),"useNavigate() may be used only in the context of a <Router> component.");let e=N.useContext(rg),{basename:t,navigator:r}=N.useContext(ql),{matches:n}=N.useContext(Zc),{pathname:i}=Wh(),a=JSON.stringify(Lk(n)),s=N.useRef(!1);return kk(()=>{s.current=!0}),N.useCallback((l,c={})=>{if(Kl(s.current,Pk),!s.current)return;if(typeof l=="number"){r.go(l);return}let f=Dk(l,JSON.parse(a),i,c.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Pc([t,f.pathname])),(c.replace?r.replace:r.push)(f,c.state,c)},[t,r,a,i,e])}N.createContext(null);function z1(e,{relative:t}={}){let{matches:r}=N.useContext(Zc),{pathname:n}=Wh(),i=JSON.stringify(Lk(r));return N.useMemo(()=>Dk(e,JSON.parse(i),n,t==="path"),[e,i,n,t])}function wW(e,t){return Qk(e,t)}function Qk(e,t,r,n,i){ci(K1(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a}=N.useContext(ql),{matches:s}=N.useContext(Zc),o=s[s.length-1],l=o?o.params:{},c=o?o.pathname:"/",f=o?o.pathnameBase:"/",h=o&&o.route;{let E=h&&h.path||"";Rk(c,!h||E.endsWith("*")||E.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${E}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.

Please change the parent <Route path="${E}"> to <Route path="${E==="/"?"*":`${E}/*`}">.`)}let p=Wh(),g;if(t){let E=typeof t=="string"?tg(t):t;ci(f==="/"||E.pathname?.startsWith(f),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${f}" but pathname "${E.pathname}" was given in the \`location\` prop.`),g=E}else g=p;let y=g.pathname||"/",m=y;if(f!=="/"){let E=f.replace(/^\//,"").split("/");m="/"+y.replace(/^\//,"").split("/").slice(E.length).join("/")}let w=Ok(e,{pathname:m});Kl(h||w!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),Kl(w==null||w[w.length-1].route.element!==void 0||w[w.length-1].route.Component!==void 0||w[w.length-1].route.lazy!==void 0,`Matched leaf route at location "${g.pathname}${g.search}${g.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let b=EW(w&&w.map(E=>Object.assign({},E,{params:Object.assign({},l,E.params),pathname:Pc([f,a.encodeLocation?a.encodeLocation(E.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?f:Pc([f,a.encodeLocation?a.encodeLocation(E.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:E.pathnameBase])})),s,r,n,i);return t&&b?N.createElement(H1.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...g},navigationType:"POP"}},b):b}function xW(){let e=OW(),t=dW(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:n},a={padding:"2px 4px",backgroundColor:n},s=null;return console.error("Error handled by React Router default ErrorBoundary:",e),s=N.createElement(N.Fragment,null,N.createElement("p",null,"💿 Hey developer 👋"),N.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",N.createElement("code",{style:a},"ErrorBoundary")," or"," ",N.createElement("code",{style:a},"errorElement")," prop on your route.")),N.createElement(N.Fragment,null,N.createElement("h2",null,"Unexpected Application Error!"),N.createElement("h3",{style:{fontStyle:"italic"}},t),r?N.createElement("pre",{style:i},r):null,s)}var bW=N.createElement(xW,null),BW=class extends N.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.unstable_onError?this.props.unstable_onError(e,t):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?N.createElement(Zc.Provider,{value:this.props.routeContext},N.createElement(S4.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function CW({routeContext:e,match:t,children:r}){let n=N.useContext(rg);return n&&n.static&&n.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=t.route.id),N.createElement(Zc.Provider,{value:e},r)}function EW(e,t=[],r=null,n=null,i=null){if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let a=e,s=r?.errors;if(s!=null){let c=a.findIndex(f=>f.route.id&&s?.[f.route.id]!==void 0);ci(c>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),a=a.slice(0,Math.min(a.length,c+1))}let o=!1,l=-1;if(r)for(let c=0;c<a.length;c++){let f=a[c];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(l=c),f.route.id){let{loaderData:h,errors:p}=r,g=f.route.loader&&!h.hasOwnProperty(f.route.id)&&(!p||p[f.route.id]===void 0);if(f.route.lazy||g){o=!0,l>=0?a=a.slice(0,l+1):a=[a[0]];break}}}return a.reduceRight((c,f,h)=>{let p,g=!1,y=null,m=null;r&&(p=s&&f.route.id?s[f.route.id]:void 0,y=f.route.errorElement||bW,o&&(l<0&&h===0?(Rk("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),g=!0,m=null):l===h&&(g=!0,m=f.route.hydrateFallbackElement||null)));let w=t.concat(a.slice(0,h+1)),b=()=>{let E;return p?E=y:g?E=m:f.route.Component?E=N.createElement(f.route.Component,null):f.route.element?E=f.route.element:E=c,N.createElement(CW,{match:f,routeContext:{outlet:c,matches:w,isDataRoute:r!=null},children:E})};return r&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?N.createElement(BW,{location:r.location,revalidation:r.revalidation,component:y,error:p,children:b(),routeContext:{outlet:null,matches:w,isDataRoute:!0},unstable_onError:n}):b()},null)}function F4(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function _W(e){let t=N.useContext(rg);return ci(t,F4(e)),t}function SW(e){let t=N.useContext(Nw);return ci(t,F4(e)),t}function FW(e){let t=N.useContext(Zc);return ci(t,F4(e)),t}function T4(e){let t=FW(e),r=t.matches[t.matches.length-1];return ci(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function TW(){return T4("useRouteId")}function OW(){let e=N.useContext(S4),t=SW("useRouteError"),r=T4("useRouteError");return e!==void 0?e:t.errors?.[r]}function UW(){let{router:e}=_W("useNavigate"),t=T4("useNavigate"),r=N.useRef(!1);return kk(()=>{r.current=!0}),N.useCallback(async(i,a={})=>{Kl(r.current,Pk),r.current&&(typeof i=="number"?e.navigate(i):await e.navigate(i,{fromRouteId:t,...a}))},[e,t])}var wU={};function Rk(e,t,r){!t&&!wU[e]&&(wU[e]=!0,Kl(!1,r))}N.memo(NW);function NW({routes:e,future:t,state:r,unstable_onError:n}){return Qk(e,void 0,r,n,t)}function ya(e){ci(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function LW({basename:e="/",children:t=null,location:r,navigationType:n="POP",navigator:i,static:a=!1}){ci(!K1(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),o=N.useMemo(()=>({basename:s,navigator:i,static:a,future:{}}),[s,i,a]);typeof r=="string"&&(r=tg(r));let{pathname:l="/",search:c="",hash:f="",state:h=null,key:p="default"}=r,g=N.useMemo(()=>{let y=zc(l,s);return y==null?null:{location:{pathname:y,search:c,hash:f,state:h,key:p},navigationType:n}},[s,l,c,f,h,p,n]);return Kl(g!=null,`<Router basename="${s}"> is not able to match the URL "${l}${c}${f}" because it does not start with the basename, so the <Router> won't render anything.`),g==null?null:N.createElement(ql.Provider,{value:o},N.createElement(H1.Provider,{children:t,value:g}))}function DW({children:e,location:t}){return wW(_E(e),t)}function _E(e,t=[]){let r=[];return N.Children.forEach(e,(n,i)=>{if(!N.isValidElement(n))return;let a=[...t,i];if(n.type===N.Fragment){r.push.apply(r,_E(n.props.children,a));return}ci(n.type===ya,`[${typeof n.type=="string"?n.type:n.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),ci(!n.props.index||!n.props.children,"An index route cannot have child routes.");let s={id:n.props.id||a.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,middleware:n.props.middleware,loader:n.props.loader,action:n.props.action,hydrateFallbackElement:n.props.hydrateFallbackElement,HydrateFallback:n.props.HydrateFallback,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.hasErrorBoundary===!0||n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(s.children=_E(n.props.children,a)),r.push(s)}),r}var ky="get",Qy="application/x-www-form-urlencoded";function Lw(e){return e!=null&&typeof e.tagName=="string"}function IW(e){return Lw(e)&&e.tagName.toLowerCase()==="button"}function MW(e){return Lw(e)&&e.tagName.toLowerCase()==="form"}function PW(e){return Lw(e)&&e.tagName.toLowerCase()==="input"}function kW(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function QW(e,t){return e.button===0&&(!t||t==="_self")&&!kW(e)}var vm=null;function RW(){if(vm===null)try{new FormData(document.createElement("form"),0),vm=!1}catch{vm=!0}return vm}var jW=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function dB(e){return e!=null&&!jW.has(e)?(Kl(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Qy}"`),null):e}function HW(e,t){let r,n,i,a,s;if(MW(e)){let o=e.getAttribute("action");n=o?zc(o,t):null,r=e.getAttribute("method")||ky,i=dB(e.getAttribute("enctype"))||Qy,a=new FormData(e)}else if(IW(e)||PW(e)&&(e.type==="submit"||e.type==="image")){let o=e.form;if(o==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||o.getAttribute("action");if(n=l?zc(l,t):null,r=e.getAttribute("formmethod")||o.getAttribute("method")||ky,i=dB(e.getAttribute("formenctype"))||dB(o.getAttribute("enctype"))||Qy,a=new FormData(o,e),!RW()){let{name:c,type:f,value:h}=e;if(f==="image"){let p=c?`${c}.`:"";a.append(`${p}x`,"0"),a.append(`${p}y`,"0")}else c&&a.append(c,h)}}else{if(Lw(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=ky,n=null,i=Qy,s=e}return a&&i==="text/plain"&&(s=a,a=void 0),{action:n,method:r.toLowerCase(),encType:i,formData:a,body:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function O4(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function KW(e,t,r){let n=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n.pathname==="/"?n.pathname=`_root.${r}`:t&&zc(n.pathname,t)==="/"?n.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:n.pathname=`${n.pathname.replace(/\/$/,"")}.${r}`,n}async function zW(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function VW(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function GW(e,t,r){let n=await Promise.all(e.map(async i=>{let a=t.routes[i.route.id];if(a){let s=await zW(a,r);return s.links?s.links():[]}return[]}));return $W(n.flat(1).filter(VW).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function xU(e,t,r,n,i,a){let s=(l,c)=>r[c]?l.route.id!==r[c].route.id:!0,o=(l,c)=>r[c].pathname!==l.pathname||r[c].route.path?.endsWith("*")&&r[c].params["*"]!==l.params["*"];return a==="assets"?t.filter((l,c)=>s(l,c)||o(l,c)):a==="data"?t.filter((l,c)=>{let f=n.routes[l.route.id];if(!f||!f.hasLoader)return!1;if(s(l,c)||o(l,c))return!0;if(l.route.shouldRevalidate){let h=l.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:l.params,defaultShouldRevalidate:!0});if(typeof h=="boolean")return h}return!0}):[]}function qW(e,t,{includeHydrateFallback:r}={}){return WW(e.map(n=>{let i=t.routes[n.route.id];if(!i)return[];let a=[i.module];return i.clientActionModule&&(a=a.concat(i.clientActionModule)),i.clientLoaderModule&&(a=a.concat(i.clientLoaderModule)),r&&i.hydrateFallbackModule&&(a=a.concat(i.hydrateFallbackModule)),i.imports&&(a=a.concat(i.imports)),a}).flat(1))}function WW(e){return[...new Set(e)]}function YW(e){let t={},r=Object.keys(e).sort();for(let n of r)t[n]=e[n];return t}function $W(e,t){let r=new Set;return new Set(t),e.reduce((n,i)=>{let a=JSON.stringify(YW(i));return r.has(a)||(r.add(a),n.push({key:a,link:i})),n},[])}function jk(){let e=N.useContext(rg);return O4(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function XW(){let e=N.useContext(Nw);return O4(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var U4=N.createContext(void 0);U4.displayName="FrameworkContext";function Hk(){let e=N.useContext(U4);return O4(e,"You must render this element inside a <HydratedRouter> element"),e}function JW(e,t){let r=N.useContext(U4),[n,i]=N.useState(!1),[a,s]=N.useState(!1),{onFocus:o,onBlur:l,onMouseEnter:c,onMouseLeave:f,onTouchStart:h}=t,p=N.useRef(null);N.useEffect(()=>{if(e==="render"&&s(!0),e==="viewport"){let m=b=>{b.forEach(E=>{s(E.isIntersecting)})},w=new IntersectionObserver(m,{threshold:.5});return p.current&&w.observe(p.current),()=>{w.disconnect()}}},[e]),N.useEffect(()=>{if(n){let m=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(m)}}},[n]);let g=()=>{i(!0)},y=()=>{i(!1),s(!1)};return r?e!=="intent"?[a,p,{}]:[a,p,{onFocus:op(o,g),onBlur:op(l,y),onMouseEnter:op(c,g),onMouseLeave:op(f,y),onTouchStart:op(h,g)}]:[!1,p,{}]}function op(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function ZW({page:e,...t}){let{router:r}=jk(),n=N.useMemo(()=>Ok(r.routes,e,r.basename),[r.routes,e,r.basename]);return n?N.createElement(tY,{page:e,matches:n,...t}):null}function eY(e){let{manifest:t,routeModules:r}=Hk(),[n,i]=N.useState([]);return N.useEffect(()=>{let a=!1;return GW(e,t,r).then(s=>{a||i(s)}),()=>{a=!0}},[e,t,r]),n}function tY({page:e,matches:t,...r}){let n=Wh(),{manifest:i,routeModules:a}=Hk(),{basename:s}=jk(),{loaderData:o,matches:l}=XW(),c=N.useMemo(()=>xU(e,t,l,i,n,"data"),[e,t,l,i,n]),f=N.useMemo(()=>xU(e,t,l,i,n,"assets"),[e,t,l,i,n]),h=N.useMemo(()=>{if(e===n.pathname+n.search+n.hash)return[];let y=new Set,m=!1;if(t.forEach(b=>{let E=i.routes[b.route.id];!E||!E.hasLoader||(!c.some(S=>S.route.id===b.route.id)&&b.route.id in o&&a[b.route.id]?.shouldRevalidate||E.hasClientLoader?m=!0:y.add(b.route.id))}),y.size===0)return[];let w=KW(e,s,"data");return m&&y.size>0&&w.searchParams.set("_routes",t.filter(b=>y.has(b.route.id)).map(b=>b.route.id).join(",")),[w.pathname+w.search]},[s,o,n,i,c,t,e,a]),p=N.useMemo(()=>qW(f,i),[f,i]),g=eY(f);return N.createElement(N.Fragment,null,h.map(y=>N.createElement("link",{key:y,rel:"prefetch",as:"fetch",href:y,...r})),p.map(y=>N.createElement("link",{key:y,rel:"modulepreload",href:y,...r})),g.map(({key:y,link:m})=>N.createElement("link",{key:y,nonce:r.nonce,...m})))}function rY(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var Kk=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Kk&&(window.__reactRouterVersion="7.9.4")}catch{}function nY({basename:e,children:t,window:r}){let n=N.useRef();n.current==null&&(n.current=Vq({window:r,v5Compat:!0}));let i=n.current,[a,s]=N.useState({action:i.action,location:i.location}),o=N.useCallback(l=>{N.startTransition(()=>s(l))},[s]);return N.useLayoutEffect(()=>i.listen(o),[i,o]),N.createElement(LW,{basename:e,children:t,location:a.location,navigationType:a.action,navigator:i})}var zk=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,N4=N.forwardRef(function({onClick:t,discover:r="render",prefetch:n="none",relative:i,reloadDocument:a,replace:s,state:o,target:l,to:c,preventScrollReset:f,viewTransition:h,...p},g){let{basename:y}=N.useContext(ql),m=typeof c=="string"&&zk.test(c),w,b=!1;if(typeof c=="string"&&m&&(w=c,Kk))try{let O=new URL(window.location.href),V=c.startsWith("//")?new URL(O.protocol+c):new URL(c),I=zc(V.pathname,y);V.origin===O.origin&&I!=null?c=I+V.search+V.hash:b=!0}catch{Kl(!1,`<Link to="${c}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let E=mW(c,{relative:i}),[S,T,D]=JW(n,p),k=sY(c,{replace:s,state:o,target:l,preventScrollReset:f,relative:i,viewTransition:h});function P(O){t&&t(O),O.defaultPrevented||k(O)}let R=N.createElement("a",{...p,...D,href:w||E,onClick:b||a?t:P,ref:rY(g,T),target:l,"data-discover":!m&&r==="render"?"true":void 0});return S&&!m?N.createElement(N.Fragment,null,R,N.createElement(ZW,{page:E})):R});N4.displayName="Link";var Xs=N.forwardRef(function({"aria-current":t="page",caseSensitive:r=!1,className:n="",end:i=!1,style:a,to:s,viewTransition:o,children:l,...c},f){let h=z1(s,{relative:c.relative}),p=Wh(),g=N.useContext(Nw),{navigator:y,basename:m}=N.useContext(ql),w=g!=null&&uY(h)&&o===!0,b=y.encodeLocation?y.encodeLocation(h).pathname:h.pathname,E=p.pathname,S=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;r||(E=E.toLowerCase(),S=S?S.toLowerCase():null,b=b.toLowerCase()),S&&m&&(S=zc(S,m)||S);const T=b!=="/"&&b.endsWith("/")?b.length-1:b.length;let D=E===b||!i&&E.startsWith(b)&&E.charAt(T)==="/",k=S!=null&&(S===b||!i&&S.startsWith(b)&&S.charAt(b.length)==="/"),P={isActive:D,isPending:k,isTransitioning:w},R=D?t:void 0,O;typeof n=="function"?O=n(P):O=[n,D?"active":null,k?"pending":null,w?"transitioning":null].filter(Boolean).join(" ");let V=typeof a=="function"?a(P):a;return N.createElement(N4,{...c,"aria-current":R,className:O,ref:f,style:V,to:s,viewTransition:o},typeof l=="function"?l(P):l)});Xs.displayName="NavLink";var iY=N.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:n,replace:i,state:a,method:s=ky,action:o,onSubmit:l,relative:c,preventScrollReset:f,viewTransition:h,...p},g)=>{let y=lY(),m=cY(o,{relative:c}),w=s.toLowerCase()==="get"?"get":"post",b=typeof o=="string"&&zk.test(o),E=S=>{if(l&&l(S),S.defaultPrevented)return;S.preventDefault();let T=S.nativeEvent.submitter,D=T?.getAttribute("formmethod")||s;y(T||S.currentTarget,{fetcherKey:t,method:D,navigate:r,replace:i,state:a,relative:c,preventScrollReset:f,viewTransition:h})};return N.createElement("form",{ref:g,method:w,action:m,onSubmit:n?l:E,...p,"data-discover":!b&&e==="render"?"true":void 0})});iY.displayName="Form";function aY(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Vk(e){let t=N.useContext(rg);return ci(t,aY(e)),t}function sY(e,{target:t,replace:r,state:n,preventScrollReset:i,relative:a,viewTransition:s}={}){let o=ng(),l=Wh(),c=z1(e,{relative:a});return N.useCallback(f=>{if(QW(f,t)){f.preventDefault();let h=r!==void 0?r:l1(l)===l1(c);o(e,{replace:h,state:n,preventScrollReset:i,relative:a,viewTransition:s})}},[l,o,c,r,n,t,e,i,a,s])}var oY=0,AY=()=>`__${String(++oY)}__`;function lY(){let{router:e}=Vk("useSubmit"),{basename:t}=N.useContext(ql),r=TW();return N.useCallback(async(n,i={})=>{let{action:a,method:s,encType:o,formData:l,body:c}=HW(n,t);if(i.navigate===!1){let f=i.fetcherKey||AY();await e.fetch(f,r,i.action||a,{preventScrollReset:i.preventScrollReset,formData:l,body:c,formMethod:i.method||s,formEncType:i.encType||o,flushSync:i.flushSync})}else await e.navigate(i.action||a,{preventScrollReset:i.preventScrollReset,formData:l,body:c,formMethod:i.method||s,formEncType:i.encType||o,replace:i.replace,state:i.state,fromRouteId:r,flushSync:i.flushSync,viewTransition:i.viewTransition})},[e,t,r])}function cY(e,{relative:t}={}){let{basename:r}=N.useContext(ql),n=N.useContext(Zc);ci(n,"useFormAction must be used inside a RouteContext");let[i]=n.matches.slice(-1),a={...z1(e||".",{relative:t})},s=Wh();if(e==null){a.search=s.search;let o=new URLSearchParams(a.search),l=o.getAll("index");if(l.some(f=>f==="")){o.delete("index"),l.filter(h=>h).forEach(h=>o.append("index",h));let f=o.toString();a.search=f?`?${f}`:""}}return(!e||e===".")&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(a.pathname=a.pathname==="/"?r:Pc([r,a.pathname])),l1(a)}function uY(e,{relative:t}={}){let r=N.useContext(Mk);ci(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=Vk("useViewTransitionState"),i=z1(e,{relative:t});if(!r.isTransitioning)return!1;let a=zc(r.currentLocation.pathname,n)||r.currentLocation.pathname,s=zc(r.nextLocation.pathname,n)||r.nextLocation.pathname;return i2(i.pathname,s)!=null||i2(i.pathname,a)!=null}var Gk=Tk();const bU=e=>{let t;const r=new Set,n=(c,f)=>{const h=typeof c=="function"?c(t):c;if(!Object.is(h,t)){const p=t;t=f??(typeof h!="object"||h===null)?h:Object.assign({},t,h),r.forEach(g=>g(t,p))}},i=()=>t,o={setState:n,getState:i,getInitialState:()=>l,subscribe:c=>(r.add(c),()=>r.delete(c))},l=t=e(n,i,o);return o},fY=(e=>e?bU(e):bU),hY=e=>e;function dY(e,t=hY){const r=x0.useSyncExternalStore(e.subscribe,x0.useCallback(()=>t(e.getState()),[e,t]),x0.useCallback(()=>t(e.getInitialState()),[e,t]));return x0.useDebugValue(r),r}const BU=e=>{const t=fY(e),r=n=>dY(t,n);return Object.assign(r,t),r},gY=(e=>e?BU(e):BU),L4=gY(e=>({isAuthenticated:!1,userInfo:null,login:t=>e({isAuthenticated:!0,userInfo:t}),logout:()=>e({isAuthenticated:!1,userInfo:null})})),pY=()=>{const[e,t]=N.useState(!1),r=ng(),{isAuthenticated:n,userInfo:i,logout:a,login:s}=L4(),o=()=>t(!e),l=()=>{a(),r("/")},c=i?.rol||"PUBLICO";return F.jsxs("nav",{className:"navbar",children:[F.jsxs(N4,{to:"/",className:"navbar-logo",children:[F.jsx("img",{src:"/img/logo.png",alt:"Hospital logo"}),"Hospital de Apoyo de Recuay"]}),F.jsx("div",{className:"menu-icon",onClick:o,children:F.jsx("span",{children:e?"✖":"☰"})}),F.jsxs("ul",{className:`nav-menu ${e?"active":""}`,children:[c==="PUBLICO"&&F.jsxs(F.Fragment,{children:[F.jsx("li",{className:"nav-item",children:F.jsx(Xs,{to:"/",className:"nav-link",onClick:o,children:"Inicio"})}),F.jsx("li",{className:"nav-item",children:F.jsx(Xs,{to:"/triaje-publico",className:"nav-link",onClick:o,children:"Triaje"})}),F.jsx("li",{className:"nav-item",children:F.jsx(Xs,{to:"/medicos",className:"nav-link",onClick:o,children:"Médicos"})}),F.jsx("li",{className:"nav-item",children:F.jsx(Xs,{to:"/ubicacion",className:"nav-link",onClick:o,children:"Ubicación"})}),F.jsx("li",{className:"nav-item",children:F.jsx(Xs,{to:"/atencion",className:"nav-link",onClick:o,children:"Atención"})})]}),c==="ENFERMERO"&&F.jsxs(F.Fragment,{children:[F.jsx("li",{className:"nav-item",children:F.jsx(Xs,{to:"/pacientes-hoy",className:"nav-link",onClick:o,children:"Pacientes Hoy"})}),F.jsx("li",{className:"nav-item",children:F.jsx(Xs,{to:"/reportes-triaje",className:"nav-link",onClick:o,children:"Reportes Triaje"})}),F.jsx("li",{className:"nav-item",children:F.jsx(Xs,{to:"/triaje-asistido",className:"nav-link",onClick:o,children:"Triaje Asistido"})})]}),c==="DOCTOR"&&F.jsxs(F.Fragment,{children:[F.jsx("li",{className:"nav-item",children:F.jsx(Xs,{to:"/panel-doctor",className:"nav-link",onClick:o,children:"Panel Médico"})}),F.jsx("li",{className:"nav-item",children:F.jsx(Xs,{to:"/historial-clinico",className:"nav-link",onClick:o,children:"Historial Clínico"})}),F.jsx("li",{className:"nav-item",children:F.jsx(Xs,{to:"/ver-triaje",className:"nav-link",onClick:o,children:"Ver Triajes"})}),F.jsx("li",{className:"nav-item",children:F.jsx(Xs,{to:"/derivaciones",className:"nav-link",onClick:o,children:"Derivaciones"})})]}),n?F.jsx("li",{className:"nav-item",children:F.jsx("button",{className:"logout-btn",onClick:l,children:"Cerrar Sesión"})}):F.jsx("li",{className:"nav-item",children:F.jsx(Xs,{to:"/login",className:"logout-btn",onClick:o,children:"Iniciar Sesión"})})]})]})},vY=()=>{const e=ng();return N.useEffect(()=>{const t=document.querySelector(".hero-title"),r=n=>{const i=document.createElement("div");i.className="heart",i.style.left=`${n.clientX}px`,i.style.top=`${n.clientY}px`,document.body.appendChild(i),setTimeout(()=>i.remove(),2e3)};return t&&(t.addEventListener("click",r),t.addEventListener("mousemove",n=>{Math.random()<.02&&r(n)})),()=>t?.removeEventListener("click",r)},[]),F.jsxs("div",{className:"home-wrapper",children:[F.jsxs("section",{className:"hero-section",style:{backgroundImage:"url('/img/main.jpg')"},children:[F.jsx("div",{className:"hero-overlay"}),F.jsxs("div",{className:"hero-content",children:[F.jsx("h1",{className:"hero-title",children:"Hospital de Apoyo de Recuay"}),F.jsx("p",{className:"hero-subtitle",children:"“Cuidando la vida con amor, ciencia y compromiso.”"})]})]}),F.jsxs("section",{className:"mv-section",children:[F.jsxs("div",{className:"mv-card mv-mision",children:[F.jsx("h2",{children:"Misión"}),F.jsx("p",{children:"Brindar atención médica integral, equitativa y oportuna, fortaleciendo la salud preventiva y el respeto a la dignidad humana, con un enfoque intercultural."})]}),F.jsxs("div",{className:"mv-card mv-vision",children:[F.jsx("h2",{children:"Visión"}),F.jsx("p",{children:"Ser un hospital modelo en la región Áncash, reconocido por su calidad humana, innovación tecnológica y compromiso con el bienestar de la comunidad."})]})]}),F.jsxs("section",{className:"access-section",children:[F.jsx("h3",{children:"Seleccione el área de atención"}),F.jsxs("div",{className:"access-buttons",children:[F.jsx("button",{className:"access-btn",onClick:()=>e("/medicos"),children:"Médicos"}),F.jsx("button",{className:"access-btn",onClick:()=>e("/triaje-publico"),children:"Triaje"}),F.jsx("button",{className:"access-btn",onClick:()=>e("/ubicacion"),children:"Ubicación"})]})]}),F.jsx("footer",{className:"footer",children:F.jsx("p",{children:"© 2025 Hospital de Apoyo Recuay — Dirección Regional de Salud Áncash"})})]})},mY=()=>{const e=ng(),t=[{titulo:"Triaje General",icono:"",ruta:"/triaje-general"},{titulo:"Triaje Adulto Mayor",icono:"",ruta:"/triaje-mayores"},{titulo:"CRED (Niños y Lactantes)",icono:"",ruta:"/triaje-cred"},{titulo:"Obstetricia / Gestantes",icono:"",ruta:"/triaje-obstetrico"}];return F.jsxs("div",{className:"triage-container",children:[F.jsxs("header",{className:"triage-header",children:[F.jsx("h1",{children:"Seleccione su tipo de atención"}),F.jsx("p",{children:"Elija la opción que corresponda a su situación o la del paciente."})]}),F.jsx("div",{className:"triage-grid",children:t.map((r,n)=>F.jsxs("button",{className:"triage-card",onClick:()=>e(r.ruta),children:[F.jsx("span",{className:"triage-icon",children:r.icono}),F.jsx("span",{className:"triage-title",children:r.titulo})]},n))})]})},yY=()=>F.jsxs("div",{className:"ubicacion-container",children:[F.jsx("h1",{children:" Hospital de Apoyo Recuay"}),F.jsx("p",{className:"intro-text",children:"Bienvenido al Hospital de Apoyo Recuay. Estamos ubicados en la región de Áncash, brindando atención médica integral a la población de la provincia de Recuay y zonas aledañas."}),F.jsxs("div",{className:"info-section",children:[F.jsxs("div",{className:"info-card",children:[F.jsx("h2",{children:"Horario de Atención"}),F.jsxs("p",{children:["Lunes a Domingo de ",F.jsx("strong",{children:"8:00 a.m."})," a ",F.jsx("strong",{children:"8:00 p.m."})]}),F.jsx("p",{children:"Emergencias: las 24 horas del día"})]}),F.jsxs("div",{className:"info-card",children:[F.jsx("h2",{children:"Teléfonos"}),F.jsx("p",{children:"Central: (043) 451234"}),F.jsx("p",{children:"Emergencias: (043) 451235"}),F.jsx("p",{children:"Correo: hospitalrecuay@minsa.gob.pe"})]}),F.jsxs("div",{className:"info-card",children:[F.jsx("h2",{children:"Dirección"}),F.jsx("p",{children:"Jr. 28 de Julio N° 215, Recuay - Áncash, Perú"}),F.jsx("p",{children:"Referencia: A 2 cuadras de la Plaza de Armas de Recuay."})]})]}),F.jsxs("div",{className:"map-section",children:[F.jsx("h2",{children:"Cómo llegar"}),F.jsx("p",{children:"Puedes ubicar el hospital fácilmente en el siguiente mapa interactivo o usar el botón para abrirlo directamente en Google Maps."}),F.jsx("iframe",{title:"Ubicación del Hospital de Apoyo Recuay",src:"https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3102.378909270249!2d-77.43979928853812!3d-9.765843099999998!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x91a90b2a7e7c69df%3A0x123456789abc!2sHospital%20de%20Apoyo%20Recuay!5e0!3m2!1ses!2spe!4v1697526580000!5m2!1ses!2spe",width:"100%",height:"400",style:{border:"0",borderRadius:"12px"},allowFullScreen:"",loading:"lazy"}),F.jsx("a",{href:"https://www.google.com/maps/dir//Hospital+de+Apoyo+Recuay",target:"_blank",rel:"noopener noreferrer",className:"btn-maps",children:"Abrir en Google Maps"})]})]});function qk(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=qk(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Ur(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=qk(e))&&(n&&(n+=" "),n+=t);return n}const wY=(e,t,r,n)=>{if(r==="length"||r==="prototype"||r==="arguments"||r==="caller")return;const i=Object.getOwnPropertyDescriptor(e,r),a=Object.getOwnPropertyDescriptor(t,r);!xY(i,a)&&n||Object.defineProperty(e,r,a)},xY=function(e,t){return e===void 0||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)},bY=(e,t)=>{const r=Object.getPrototypeOf(t);r!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,r)},BY=(e,t)=>`/* Wrapped ${e}*/
${t}`,CY=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),EY=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),_Y=(e,t,r)=>{const n=r===""?"":`with ${r.trim()}() `,i=BY.bind(null,n,t.toString());Object.defineProperty(i,"name",EY);const{writable:a,enumerable:s,configurable:o}=CY;Object.defineProperty(e,"toString",{value:i,writable:a,enumerable:s,configurable:o})};function SY(e,t,{ignoreNonConfigurable:r=!1}={}){const{name:n}=e;for(const i of Reflect.ownKeys(t))wY(e,t,i,r);return bY(e,t),_Y(e,t,n),e}const FY=new WeakMap,CU=new WeakMap;function Wk(e,{cacheKey:t,cache:r=new Map,maxAge:n}={}){if(n===0)return e;if(typeof n=="number"){if(n>2147483647)throw new TypeError("The `maxAge` option cannot exceed 2147483647.");if(n<0)throw new TypeError("The `maxAge` option should not be a negative number.")}const i=function(...a){const s=t?t(a):a[0],o=r.get(s);if(o)return o.data;const l=e.apply(this,a),c=typeof n=="function"?n(...a):n;if(r.set(s,{data:l,maxAge:c?Date.now()+c:Number.POSITIVE_INFINITY}),c&&c>0&&c!==Number.POSITIVE_INFINITY){const f=setTimeout(()=>{r.delete(s)},c);f.unref?.();const h=CU.get(e)??new Set;h.add(f),CU.set(e,h)}return l};return SY(i,e,{ignoreNonConfigurable:!0}),FY.set(i,r),i}function TY(e){return typeof e=="string"}function OY(e,t,r){return r.indexOf(e)===t}function UY(e){return e.toLowerCase()===e}function EU(e){return e.indexOf(",")===-1?e:e.split(",")}function SE(e){if(!e)return e;if(e==="C"||e==="posix"||e==="POSIX")return"en-US";if(e.indexOf(".")!==-1){var t=e.split(".")[0],r=t===void 0?"":t;return SE(r)}if(e.indexOf("@")!==-1){var n=e.split("@")[0],r=n===void 0?"":n;return SE(r)}if(e.indexOf("-")===-1||!UY(e))return e;var i=e.split("-"),a=i[0],s=i[1],o=s===void 0?"":s;return"".concat(a,"-").concat(o.toUpperCase())}function NY(e){var t=e===void 0?{}:e,r=t.useFallbackLocale,n=r===void 0?!0:r,i=t.fallbackLocale,a=i===void 0?"en-US":i,s=[];if(typeof navigator<"u"){for(var o=navigator.languages||[],l=[],c=0,f=o;c<f.length;c++){var h=f[c];l=l.concat(EU(h))}var p=navigator.language,g=p&&EU(p);s=s.concat(l,g)}return n&&s.push(a),s.filter(TY).map(SE).filter(OY)}var LY=Wk(NY,{cacheKey:JSON.stringify});function DY(e){return LY(e)[0]||null}var Yk=Wk(DY,{cacheKey:JSON.stringify});function eu(e,t,r){return function(i,a=r){const s=e(i)+a;return t(s)}}function V1(e){return function(r){return new Date(e(r).getTime()-1)}}function G1(e,t){return function(n){return[e(n),t(n)]}}function ti(e){if(e instanceof Date)return e.getFullYear();if(typeof e=="number")return e;const t=Number.parseInt(e,10);if(typeof e=="string"&&!Number.isNaN(t))return t;throw new Error(`Failed to get year from date: ${e}.`)}function Bf(e){if(e instanceof Date)return e.getMonth();throw new Error(`Failed to get month from date: ${e}.`)}function Dw(e){if(e instanceof Date)return e.getDate();throw new Error(`Failed to get year from date: ${e}.`)}function ig(e){const t=ti(e),r=t+(-t+1)%100,n=new Date;return n.setFullYear(r,0,1),n.setHours(0,0,0,0),n}const IY=eu(ti,ig,-100),$k=eu(ti,ig,100),D4=V1($k),MY=eu(ti,D4,-100),Xk=G1(ig,D4);function Cf(e){const t=ti(e),r=t+(-t+1)%10,n=new Date;return n.setFullYear(r,0,1),n.setHours(0,0,0,0),n}const Jk=eu(ti,Cf,-10),I4=eu(ti,Cf,10),Iw=V1(I4),Zk=eu(ti,Iw,-10),eQ=G1(Cf,Iw);function ag(e){const t=ti(e),r=new Date;return r.setFullYear(t,0,1),r.setHours(0,0,0,0),r}const tQ=eu(ti,ag,-1),M4=eu(ti,ag,1),Mw=V1(M4),rQ=eu(ti,Mw,-1),PY=G1(ag,Mw);function P4(e,t){return function(n,i=t){const a=ti(n),s=Bf(n)+i,o=new Date;return o.setFullYear(a,s,1),o.setHours(0,0,0,0),e(o)}}function Yh(e){const t=ti(e),r=Bf(e),n=new Date;return n.setFullYear(t,r,1),n.setHours(0,0,0,0),n}const nQ=P4(Yh,-1),k4=P4(Yh,1),q1=V1(k4),iQ=P4(q1,-1),kY=G1(Yh,q1);function QY(e,t){return function(n,i=t){const a=ti(n),s=Bf(n),o=Dw(n)+i,l=new Date;return l.setFullYear(a,s,o),l.setHours(0,0,0,0),e(l)}}function W1(e){const t=ti(e),r=Bf(e),n=Dw(e),i=new Date;return i.setFullYear(t,r,n),i.setHours(0,0,0,0),i}const RY=QY(W1,1),Q4=V1(RY),jY=G1(W1,Q4);function aQ(e){return Dw(q1(e))}var Ka={GREGORY:"gregory",HEBREW:"hebrew",ISLAMIC:"islamic",ISO_8601:"iso8601"},HY={gregory:["en-CA","en-US","es-AR","es-BO","es-CL","es-CO","es-CR","es-DO","es-EC","es-GT","es-HN","es-MX","es-NI","es-PA","es-PE","es-PR","es-SV","es-VE","pt-BR"],hebrew:["he","he-IL"],islamic:["ar","ar-AE","ar-BH","ar-DZ","ar-EG","ar-IQ","ar-JO","ar-KW","ar-LY","ar-OM","ar-QA","ar-SA","ar-SD","ar-SY","ar-YE","dv","dv-MV","ps","ps-AR"]},R4=[0,1,2,3,4,5,6],gB=new Map;function KY(e){return function(r,n){var i=r||Yk();gB.has(i)||gB.set(i,new Map);var a=gB.get(i);return a.has(e)||a.set(e,new Intl.DateTimeFormat(i||void 0,e).format),a.get(e)(n)}}function zY(e){var t=new Date(e);return new Date(t.setHours(12))}function $h(e){return function(t,r){return KY(e)(t,zY(r))}}var VY={day:"numeric"},GY={day:"numeric",month:"long",year:"numeric"},qY={month:"long"},WY={month:"long",year:"numeric"},YY={weekday:"short"},$Y={weekday:"long"},XY={year:"numeric"},JY=$h(VY),ZY=$h(GY),e$=$h(qY),sQ=$h(WY),t$=$h(YY),r$=$h($Y),Pw=$h(XY),n$=R4[0],i$=R4[5],_U=R4[6];function c1(e,t){t===void 0&&(t=Ka.ISO_8601);var r=e.getDay();switch(t){case Ka.ISO_8601:return(r+6)%7;case Ka.ISLAMIC:return(r+1)%7;case Ka.HEBREW:case Ka.GREGORY:return r;default:throw new Error("Unsupported calendar type.")}}function a$(e){var t=ig(e);return ti(t)}function s$(e){var t=Cf(e);return ti(t)}function FE(e,t){t===void 0&&(t=Ka.ISO_8601);var r=ti(e),n=Bf(e),i=e.getDate()-c1(e,t);return new Date(r,n,i)}function o$(e,t){t===void 0&&(t=Ka.ISO_8601);var r=t===Ka.GREGORY?Ka.GREGORY:Ka.ISO_8601,n=FE(e,t),i=ti(e)+1,a,s;do a=new Date(i,0,r===Ka.ISO_8601?4:1),s=FE(a,t),i-=1;while(e<s);return Math.round((n.getTime()-s.getTime())/(864e5*7))+1}function Bh(e,t){switch(e){case"century":return ig(t);case"decade":return Cf(t);case"year":return ag(t);case"month":return Yh(t);case"day":return W1(t);default:throw new Error("Invalid rangeType: ".concat(e))}}function A$(e,t){switch(e){case"century":return IY(t);case"decade":return Jk(t);case"year":return tQ(t);case"month":return nQ(t);default:throw new Error("Invalid rangeType: ".concat(e))}}function oQ(e,t){switch(e){case"century":return $k(t);case"decade":return I4(t);case"year":return M4(t);case"month":return k4(t);default:throw new Error("Invalid rangeType: ".concat(e))}}function l$(e,t){switch(e){case"decade":return Jk(t,-100);case"year":return tQ(t,-10);case"month":return nQ(t,-12);default:throw new Error("Invalid rangeType: ".concat(e))}}function c$(e,t){switch(e){case"decade":return I4(t,100);case"year":return M4(t,10);case"month":return k4(t,12);default:throw new Error("Invalid rangeType: ".concat(e))}}function AQ(e,t){switch(e){case"century":return D4(t);case"decade":return Iw(t);case"year":return Mw(t);case"month":return q1(t);case"day":return Q4(t);default:throw new Error("Invalid rangeType: ".concat(e))}}function u$(e,t){switch(e){case"century":return MY(t);case"decade":return Zk(t);case"year":return rQ(t);case"month":return iQ(t);default:throw new Error("Invalid rangeType: ".concat(e))}}function f$(e,t){switch(e){case"decade":return Zk(t,-100);case"year":return rQ(t,-10);case"month":return iQ(t,-12);default:throw new Error("Invalid rangeType: ".concat(e))}}function SU(e,t){switch(e){case"century":return Xk(t);case"decade":return eQ(t);case"year":return PY(t);case"month":return kY(t);case"day":return jY(t);default:throw new Error("Invalid rangeType: ".concat(e))}}function h$(e,t,r){var n=[t,r].sort(function(i,a){return i.getTime()-a.getTime()});return[Bh(e,n[0]),AQ(e,n[1])]}function lQ(e,t,r){return r.map(function(n){return(t||Pw)(e,n)}).join(" – ")}function d$(e,t,r){return lQ(e,t,Xk(r))}function cQ(e,t,r){return lQ(e,t,eQ(r))}function g$(e){return e.getDay()===new Date().getDay()}function uQ(e,t){t===void 0&&(t=Ka.ISO_8601);var r=e.getDay();switch(t){case Ka.ISLAMIC:case Ka.HEBREW:return r===i$||r===_U;case Ka.ISO_8601:case Ka.GREGORY:return r===_U||r===n$;default:throw new Error("Unsupported calendar type.")}}var Ol="react-calendar__navigation";function p$(e){var t=e.activeStartDate,r=e.drillUp,n=e.formatMonthYear,i=n===void 0?sQ:n,a=e.formatYear,s=a===void 0?Pw:a,o=e.locale,l=e.maxDate,c=e.minDate,f=e.navigationAriaLabel,h=f===void 0?"":f,p=e.navigationAriaLive,g=e.navigationLabel,y=e.next2AriaLabel,m=y===void 0?"":y,w=e.next2Label,b=w===void 0?"»":w,E=e.nextAriaLabel,S=E===void 0?"":E,T=e.nextLabel,D=T===void 0?"›":T,k=e.prev2AriaLabel,P=k===void 0?"":k,R=e.prev2Label,O=R===void 0?"«":R,V=e.prevAriaLabel,I=V===void 0?"":V,Q=e.prevLabel,W=Q===void 0?"‹":Q,J=e.setActiveStartDate,fe=e.showDoubleView,G=e.view,se=e.views,ge=se.indexOf(G)>0,ye=G!=="century",_e=A$(G,t),Z=ye?l$(G,t):void 0,L=oQ(G,t),j=ye?c$(G,t):void 0,K=(function(){if(_e.getFullYear()<0)return!0;var Ge=u$(G,t);return c&&c>=Ge})(),q=ye&&(function(){if(Z.getFullYear()<0)return!0;var Ge=f$(G,t);return c&&c>=Ge})(),re=l&&l<L,he=ye&&l&&l<j;function Be(){J(_e,"prev")}function ae(){J(Z,"prev2")}function be(){J(L,"next")}function ke(){J(j,"next2")}function Fe(Ge){var le=(function(){switch(G){case"century":return d$(o,s,Ge);case"decade":return cQ(o,s,Ge);case"year":return s(o,Ge);case"month":return i(o,Ge);default:throw new Error("Invalid view: ".concat(G,"."))}})();return g?g({date:Ge,label:le,locale:o||Yk()||void 0,view:G}):le}function st(){var Ge="".concat(Ol,"__label");return F.jsxs("button",{"aria-label":h,"aria-live":p,className:Ge,disabled:!ge,onClick:r,style:{flexGrow:1},type:"button",children:[F.jsx("span",{className:"".concat(Ge,"__labelText ").concat(Ge,"__labelText--from"),children:Fe(t)}),fe?F.jsxs(F.Fragment,{children:[F.jsx("span",{className:"".concat(Ge,"__divider"),children:" – "}),F.jsx("span",{className:"".concat(Ge,"__labelText ").concat(Ge,"__labelText--to"),children:Fe(L)})]}):null]})}return F.jsxs("div",{className:Ol,children:[O!==null&&ye?F.jsx("button",{"aria-label":P,className:"".concat(Ol,"__arrow ").concat(Ol,"__prev2-button"),disabled:q,onClick:ae,type:"button",children:O}):null,W!==null&&F.jsx("button",{"aria-label":I,className:"".concat(Ol,"__arrow ").concat(Ol,"__prev-button"),disabled:K,onClick:Be,type:"button",children:W}),st(),D!==null&&F.jsx("button",{"aria-label":S,className:"".concat(Ol,"__arrow ").concat(Ol,"__next-button"),disabled:re,onClick:be,type:"button",children:D}),b!==null&&ye?F.jsx("button",{"aria-label":m,className:"".concat(Ol,"__arrow ").concat(Ol,"__next2-button"),disabled:he,onClick:ke,type:"button",children:b}):null]})}var b0=function(){return b0=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},b0.apply(this,arguments)},v$=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function FU(e){return"".concat(e,"%")}function j4(e){var t=e.children,r=e.className,n=e.count,i=e.direction,a=e.offset,s=e.style,o=e.wrap,l=v$(e,["children","className","count","direction","offset","style","wrap"]);return F.jsx("div",b0({className:r,style:b0({display:"flex",flexDirection:i,flexWrap:o?"wrap":"nowrap"},s)},l,{children:N.Children.map(t,function(c,f){var h=a&&f===0?FU(100*a/n):null;return N.cloneElement(c,b0(b0({},c.props),{style:{flexBasis:FU(100/n),flexShrink:0,flexGrow:0,overflow:"hidden",marginLeft:h,marginInlineStart:h,marginInlineEnd:0}}))})}))}function m$(e,t,r){return t&&t>e?t:r&&r<e?r:e}function u1(e,t){return t[0]<=e&&t[1]>=e}function y$(e,t){return e[0]<=t[0]&&e[1]>=t[1]}function fQ(e,t){return u1(e[0],t)||u1(e[1],t)}function TU(e,t,r){var n=fQ(t,e),i=[];if(n){i.push(r);var a=u1(e[0],t),s=u1(e[1],t);a&&i.push("".concat(r,"Start")),s&&i.push("".concat(r,"End")),a&&s&&i.push("".concat(r,"BothEnds"))}return i}function w$(e){return Array.isArray(e)?e[0]!==null&&e[1]!==null:e!==null}function x$(e){if(!e)throw new Error("args is required");var t=e.value,r=e.date,n=e.hover,i="react-calendar__tile",a=[i];if(!r)return a;var s=new Date,o=(function(){if(Array.isArray(r))return r;var g=e.dateType;if(!g)throw new Error("dateType is required when date is not an array of two dates");return SU(g,r)})();if(u1(s,o)&&a.push("".concat(i,"--now")),!t||!w$(t))return a;var l=(function(){if(Array.isArray(t))return t;var g=e.valueType;if(!g)throw new Error("valueType is required when value is not an array of two dates");return SU(g,t)})();y$(l,o)?a.push("".concat(i,"--active")):fQ(l,o)&&a.push("".concat(i,"--hasActive"));var c=TU(l,o,"".concat(i,"--range"));a.push.apply(a,c);var f=Array.isArray(t)?t:[t];if(n&&f.length===1){var h=n>l[0]?[l[0],n]:[n,l[0]],p=TU(h,o,"".concat(i,"--hover"));a.push.apply(a,p)}return a}function kw(e){for(var t=e.className,r=e.count,n=r===void 0?3:r,i=e.dateTransform,a=e.dateType,s=e.end,o=e.hover,l=e.offset,c=e.renderTile,f=e.start,h=e.step,p=h===void 0?1:h,g=e.value,y=e.valueType,m=[],w=f;w<=s;w+=p){var b=i(w);m.push(c({classes:x$({date:b,dateType:a,hover:o,value:g,valueType:y}),date:b}))}return F.jsx(j4,{className:t,count:n,offset:l,wrap:!0,children:m})}function Qw(e){var t=e.activeStartDate,r=e.children,n=e.classes,i=e.date,a=e.formatAbbr,s=e.locale,o=e.maxDate,l=e.maxDateTransform,c=e.minDate,f=e.minDateTransform,h=e.onClick,p=e.onMouseOver,g=e.style,y=e.tileClassName,m=e.tileContent,w=e.tileDisabled,b=e.view,E=N.useMemo(function(){var T={activeStartDate:t,date:i,view:b};return typeof y=="function"?y(T):y},[t,i,y,b]),S=N.useMemo(function(){var T={activeStartDate:t,date:i,view:b};return typeof m=="function"?m(T):m},[t,i,m,b]);return F.jsxs("button",{className:Ur(n,E),disabled:c&&f(c)>i||o&&l(o)<i||w?.({activeStartDate:t,date:i,view:b}),onClick:h?function(T){return h(i,T)}:void 0,onFocus:p?function(){return p(i)}:void 0,onMouseOver:p?function(){return p(i)}:void 0,style:g,type:"button",children:[a?F.jsx("abbr",{"aria-label":a(s,i),children:r}):r,S]})}var TE=function(){return TE=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},TE.apply(this,arguments)},b$=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},OU="react-calendar__century-view__decades__decade";function B$(e){var t=e.classes,r=t===void 0?[]:t,n=e.currentCentury,i=e.formatYear,a=i===void 0?Pw:i,s=b$(e,["classes","currentCentury","formatYear"]),o=s.date,l=s.locale,c=[];return r&&c.push.apply(c,r),c.push(OU),ig(o).getFullYear()!==n&&c.push("".concat(OU,"--neighboringCentury")),F.jsx(Qw,TE({},s,{classes:c,maxDateTransform:Iw,minDateTransform:Cf,view:"century",children:cQ(l,a,o)}))}var OE=function(){return OE=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},OE.apply(this,arguments)},UU=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function C$(e){var t=e.activeStartDate,r=e.hover,n=e.showNeighboringCentury,i=e.value,a=e.valueType,s=UU(e,["activeStartDate","hover","showNeighboringCentury","value","valueType"]),o=a$(t),l=o+(n?119:99);return F.jsx(kw,{className:"react-calendar__century-view__decades",dateTransform:Cf,dateType:"decade",end:l,hover:r,renderTile:function(c){var f=c.date,h=UU(c,["date"]);return F.jsx(B$,OE({},s,h,{activeStartDate:t,currentCentury:o,date:f}),f.getTime())},start:o,step:10,value:i,valueType:a})}var UE=function(){return UE=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},UE.apply(this,arguments)};function E$(e){function t(){return F.jsx(C$,UE({},e))}return F.jsx("div",{className:"react-calendar__century-view",children:t()})}var NE=function(){return NE=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},NE.apply(this,arguments)},_$=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},NU="react-calendar__decade-view__years__year";function S$(e){var t=e.classes,r=t===void 0?[]:t,n=e.currentDecade,i=e.formatYear,a=i===void 0?Pw:i,s=_$(e,["classes","currentDecade","formatYear"]),o=s.date,l=s.locale,c=[];return r&&c.push.apply(c,r),c.push(NU),Cf(o).getFullYear()!==n&&c.push("".concat(NU,"--neighboringDecade")),F.jsx(Qw,NE({},s,{classes:c,maxDateTransform:Mw,minDateTransform:ag,view:"decade",children:a(l,o)}))}var LE=function(){return LE=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},LE.apply(this,arguments)},LU=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function F$(e){var t=e.activeStartDate,r=e.hover,n=e.showNeighboringDecade,i=e.value,a=e.valueType,s=LU(e,["activeStartDate","hover","showNeighboringDecade","value","valueType"]),o=s$(t),l=o+(n?11:9);return F.jsx(kw,{className:"react-calendar__decade-view__years",dateTransform:ag,dateType:"year",end:l,hover:r,renderTile:function(c){var f=c.date,h=LU(c,["date"]);return F.jsx(S$,LE({},s,h,{activeStartDate:t,currentDecade:o,date:f}),f.getTime())},start:o,value:i,valueType:a})}var DE=function(){return DE=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},DE.apply(this,arguments)};function T$(e){function t(){return F.jsx(F$,DE({},e))}return F.jsx("div",{className:"react-calendar__decade-view",children:t()})}var IE=function(){return IE=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},IE.apply(this,arguments)},O$=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},DU=function(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))},U$="react-calendar__year-view__months__month";function N$(e){var t=e.classes,r=t===void 0?[]:t,n=e.formatMonth,i=n===void 0?e$:n,a=e.formatMonthYear,s=a===void 0?sQ:a,o=O$(e,["classes","formatMonth","formatMonthYear"]),l=o.date,c=o.locale;return F.jsx(Qw,IE({},o,{classes:DU(DU([],r,!0),[U$],!1),formatAbbr:s,maxDateTransform:q1,minDateTransform:Yh,view:"year",children:i(c,l)}))}var ME=function(){return ME=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},ME.apply(this,arguments)},IU=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function L$(e){var t=e.activeStartDate,r=e.hover,n=e.value,i=e.valueType,a=IU(e,["activeStartDate","hover","value","valueType"]),s=0,o=11,l=ti(t);return F.jsx(kw,{className:"react-calendar__year-view__months",dateTransform:function(c){var f=new Date;return f.setFullYear(l,c,1),Yh(f)},dateType:"month",end:o,hover:r,renderTile:function(c){var f=c.date,h=IU(c,["date"]);return F.jsx(N$,ME({},a,h,{activeStartDate:t,date:f}),f.getTime())},start:s,value:n,valueType:i})}var PE=function(){return PE=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},PE.apply(this,arguments)};function D$(e){function t(){return F.jsx(L$,PE({},e))}return F.jsx("div",{className:"react-calendar__year-view",children:t()})}var kE=function(){return kE=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},kE.apply(this,arguments)},I$=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},pB="react-calendar__month-view__days__day";function M$(e){var t=e.calendarType,r=e.classes,n=r===void 0?[]:r,i=e.currentMonthIndex,a=e.formatDay,s=a===void 0?JY:a,o=e.formatLongDate,l=o===void 0?ZY:o,c=I$(e,["calendarType","classes","currentMonthIndex","formatDay","formatLongDate"]),f=c.date,h=c.locale,p=[];return n&&p.push.apply(p,n),p.push(pB),uQ(f,t)&&p.push("".concat(pB,"--weekend")),f.getMonth()!==i&&p.push("".concat(pB,"--neighboringMonth")),F.jsx(Qw,kE({},c,{classes:p,formatAbbr:l,maxDateTransform:Q4,minDateTransform:W1,view:"month",children:s(h,f)}))}var QE=function(){return QE=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},QE.apply(this,arguments)},MU=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function P$(e){var t=e.activeStartDate,r=e.calendarType,n=e.hover,i=e.showFixedNumberOfWeeks,a=e.showNeighboringMonth,s=e.value,o=e.valueType,l=MU(e,["activeStartDate","calendarType","hover","showFixedNumberOfWeeks","showNeighboringMonth","value","valueType"]),c=ti(t),f=Bf(t),h=i||a,p=c1(t,r),g=h?0:p,y=(h?-p:0)+1,m=(function(){if(i)return y+42-1;var w=aQ(t);if(a){var b=new Date;b.setFullYear(c,f,w),b.setHours(0,0,0,0);var E=7-c1(b,r)-1;return w+E}return w})();return F.jsx(kw,{className:"react-calendar__month-view__days",count:7,dateTransform:function(w){var b=new Date;return b.setFullYear(c,f,w),W1(b)},dateType:"day",hover:n,end:m,renderTile:function(w){var b=w.date,E=MU(w,["date"]);return F.jsx(M$,QE({},l,E,{activeStartDate:t,calendarType:r,currentMonthIndex:f,date:b}),b.getTime())},offset:g,start:y,value:s,valueType:o})}var hQ="react-calendar__month-view__weekdays",vB="".concat(hQ,"__weekday");function k$(e){for(var t=e.calendarType,r=e.formatShortWeekday,n=r===void 0?t$:r,i=e.formatWeekday,a=i===void 0?r$:i,s=e.locale,o=e.onMouseLeave,l=new Date,c=Yh(l),f=ti(c),h=Bf(c),p=[],g=1;g<=7;g+=1){var y=new Date(f,h,g-c1(c,t)),m=a(s,y);p.push(F.jsx("div",{className:Ur(vB,g$(y)&&"".concat(vB,"--current"),uQ(y,t)&&"".concat(vB,"--weekend")),children:F.jsx("abbr",{"aria-label":m,title:m,children:n(s,y).replace(".","")})},g))}return F.jsx(j4,{className:hQ,count:7,onFocus:o,onMouseOver:o,children:p})}var a2=function(){return a2=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},a2.apply(this,arguments)},PU=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},kU="react-calendar__tile";function Q$(e){var t=e.onClickWeekNumber,r=e.weekNumber,n=F.jsx("span",{children:r});if(t){var i=e.date,a=e.onClickWeekNumber,s=e.weekNumber,o=PU(e,["date","onClickWeekNumber","weekNumber"]);return F.jsx("button",a2({},o,{className:kU,onClick:function(l){return a(s,i,l)},type:"button",children:n}))}else{e.date,e.onClickWeekNumber,e.weekNumber;var o=PU(e,["date","onClickWeekNumber","weekNumber"]);return F.jsx("div",a2({},o,{className:kU,children:n}))}}function R$(e){var t=e.activeStartDate,r=e.calendarType,n=e.onClickWeekNumber,i=e.onMouseLeave,a=e.showFixedNumberOfWeeks,s=(function(){if(a)return 6;var c=aQ(t),f=c1(t,r),h=c-(7-f);return 1+Math.ceil(h/7)})(),o=(function(){for(var c=ti(t),f=Bf(t),h=Dw(t),p=[],g=0;g<s;g+=1)p.push(FE(new Date(c,f,h+g*7),r));return p})(),l=o.map(function(c){return o$(c,r)});return F.jsx(j4,{className:"react-calendar__month-view__weekNumbers",count:s,direction:"column",onFocus:i,onMouseOver:i,style:{flexBasis:"calc(100% * (1 / 8)",flexShrink:0},children:l.map(function(c,f){var h=o[f];if(!h)throw new Error("date is not defined");return F.jsx(Q$,{date:h,onClickWeekNumber:n,weekNumber:c},c)})})}var RE=function(){return RE=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},RE.apply(this,arguments)},j$=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function H$(e){if(e)for(var t=0,r=Object.entries(HY);t<r.length;t++){var n=r[t],i=n[0],a=n[1];if(a.includes(e))return i}return Ka.ISO_8601}function K$(e){var t=e.activeStartDate,r=e.locale,n=e.onMouseLeave,i=e.showFixedNumberOfWeeks,a=e.calendarType,s=a===void 0?H$(r):a,o=e.formatShortWeekday,l=e.formatWeekday,c=e.onClickWeekNumber,f=e.showWeekNumbers,h=j$(e,["calendarType","formatShortWeekday","formatWeekday","onClickWeekNumber","showWeekNumbers"]);function p(){return F.jsx(k$,{calendarType:s,formatShortWeekday:o,formatWeekday:l,locale:r,onMouseLeave:n})}function g(){return f?F.jsx(R$,{activeStartDate:t,calendarType:s,onClickWeekNumber:c,onMouseLeave:n,showFixedNumberOfWeeks:i}):null}function y(){return F.jsx(P$,RE({calendarType:s},h))}var m="react-calendar__month-view";return F.jsx("div",{className:Ur(m,f?"".concat(m,"--weekNumbers"):""),children:F.jsxs("div",{style:{display:"flex",alignItems:"flex-end"},children:[g(),F.jsxs("div",{style:{flexGrow:1,width:"100%"},children:[p(),y()]})]})})}var B0=function(){return B0=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},B0.apply(this,arguments)},mm="react-calendar",Ry=["century","decade","year","month"],z$=["decade","year","month","day"],H4=new Date;H4.setFullYear(1,0,1);H4.setHours(0,0,0,0);var V$=new Date(864e13);function Op(e){return e instanceof Date?e:new Date(e)}function dQ(e,t){return Ry.slice(Ry.indexOf(e),Ry.indexOf(t)+1)}function G$(e,t,r){var n=dQ(t,r);return n.indexOf(e)!==-1}function K4(e,t,r){return e&&G$(e,t,r)?e:r}function gQ(e){var t=Ry.indexOf(e);return z$[t]}function q$(e,t){var r=Array.isArray(e)?e[t]:e;if(!r)return null;var n=Op(r);if(Number.isNaN(n.getTime()))throw new Error("Invalid date: ".concat(e));return n}function pQ(e,t){var r=e.value,n=e.minDate,i=e.maxDate,a=e.maxDetail,s=q$(r,t);if(!s)return null;var o=gQ(a),l=(function(){switch(t){case 0:return Bh(o,s);case 1:return AQ(o,s);default:throw new Error("Invalid index value: ".concat(t))}})();return m$(l,n,i)}var z4=function(e){return pQ(e,0)},vQ=function(e){return pQ(e,1)},W$=function(e){return[z4,vQ].map(function(t){return t(e)})};function mQ(e){var t=e.maxDate,r=e.maxDetail,n=e.minDate,i=e.minDetail,a=e.value,s=e.view,o=K4(s,i,r),l=z4({value:a,minDate:n,maxDate:t,maxDetail:r})||new Date;return Bh(o,l)}function Y$(e){var t=e.activeStartDate,r=e.defaultActiveStartDate,n=e.defaultValue,i=e.defaultView,a=e.maxDate,s=e.maxDetail,o=e.minDate,l=e.minDetail,c=e.value,f=e.view,h=K4(f,l,s),p=t||r;return p?Bh(h,p):mQ({maxDate:a,maxDetail:s,minDate:o,minDetail:l,value:c||n,view:f||i})}function mB(e){return e&&(!Array.isArray(e)||e.length===1)}function ym(e,t){return e instanceof Date&&t instanceof Date&&e.getTime()===t.getTime()}var yQ=N.forwardRef(function(t,r){var n=t.activeStartDate,i=t.allowPartialRange,a=t.calendarType,s=t.className,o=t.defaultActiveStartDate,l=t.defaultValue,c=t.defaultView,f=t.formatDay,h=t.formatLongDate,p=t.formatMonth,g=t.formatMonthYear,y=t.formatShortWeekday,m=t.formatWeekday,w=t.formatYear,b=t.goToRangeStartOnSelect,E=b===void 0?!0:b,S=t.inputRef,T=t.locale,D=t.maxDate,k=D===void 0?V$:D,P=t.maxDetail,R=P===void 0?"month":P,O=t.minDate,V=O===void 0?H4:O,I=t.minDetail,Q=I===void 0?"century":I,W=t.navigationAriaLabel,J=t.navigationAriaLive,fe=t.navigationLabel,G=t.next2AriaLabel,se=t.next2Label,ge=t.nextAriaLabel,ye=t.nextLabel,_e=t.onActiveStartDateChange,Z=t.onChange,L=t.onClickDay,j=t.onClickDecade,K=t.onClickMonth,q=t.onClickWeekNumber,re=t.onClickYear,he=t.onDrillDown,Be=t.onDrillUp,ae=t.onViewChange,be=t.prev2AriaLabel,ke=t.prev2Label,Fe=t.prevAriaLabel,st=t.prevLabel,Ge=t.returnValue,le=Ge===void 0?"start":Ge,$e=t.selectRange,tt=t.showDoubleView,wt=t.showFixedNumberOfWeeks,nt=t.showNavigation,Tt=nt===void 0?!0:nt,yt=t.showNeighboringCentury,Ht=t.showNeighboringDecade,It=t.showNeighboringMonth,Vt=It===void 0?!0:It,cr=t.showWeekNumbers,Jt=t.tileClassName,ur=t.tileContent,rr=t.tileDisabled,Et=t.value,nr=t.view,Ot=N.useState(o),dn=Ot[0],or=Ot[1],Kt=N.useState(null),Xt=Kt[0],vr=Kt[1],Rt=N.useState(Array.isArray(l)?l.map(function(Te){return Te!==null?Op(Te):null}):l!=null?Op(l):null),Nr=Rt[0],Gt=Rt[1],$t=N.useState(c),Rr=$t[0],sr=$t[1],mt=n||dn||Y$({activeStartDate:n,defaultActiveStartDate:o,defaultValue:l,defaultView:c,maxDate:k,maxDetail:R,minDate:V,minDetail:Q,value:Et,view:nr}),Zt=(function(){var Te=(function(){return $e&&mB(Nr)?Nr:Et!==void 0?Et:Nr})();return Te?Array.isArray(Te)?Te.map(function(je){return je!==null?Op(je):null}):Te!==null?Op(Te):null:null})(),Pi=gQ(R),fr=K4(nr||Rr,Q,R),In=dQ(Q,R),fa=$e?Xt:null,Mt=In.indexOf(fr)<In.length-1,Ja=In.indexOf(fr)>0,Fa=N.useCallback(function(Te){var je=(function(){switch(le){case"start":return z4;case"end":return vQ;case"range":return W$;default:throw new Error("Invalid returnValue.")}})();return je({maxDate:k,maxDetail:R,minDate:V,value:Te})},[k,R,V,le]),ii=N.useCallback(function(Te,je){or(Te);var Ne={action:je,activeStartDate:Te,value:Zt,view:fr};_e&&!ym(mt,Te)&&_e(Ne)},[mt,_e,Zt,fr]),fi=N.useCallback(function(Te,je){var Ne=(function(){switch(fr){case"century":return j;case"decade":return re;case"year":return K;case"month":return L;default:throw new Error("Invalid view: ".concat(fr,"."))}})();Ne&&Ne(Te,je)},[L,j,K,re,fr]),zr=N.useCallback(function(Te,je){if(Mt){fi(Te,je);var Ne=In[In.indexOf(fr)+1];if(!Ne)throw new Error("Attempted to drill down from the lowest view.");or(Te),sr(Ne);var Ie={action:"drillDown",activeStartDate:Te,value:Zt,view:Ne};_e&&!ym(mt,Te)&&_e(Ie),ae&&fr!==Ne&&ae(Ie),he&&he(Ie)}},[mt,Mt,_e,fi,he,ae,Zt,fr,In]),gn=N.useCallback(function(){if(Ja){var Te=In[In.indexOf(fr)-1];if(!Te)throw new Error("Attempted to drill up from the highest view.");var je=Bh(Te,mt);or(je),sr(Te);var Ne={action:"drillUp",activeStartDate:je,value:Zt,view:Te};_e&&!ym(mt,je)&&_e(Ne),ae&&fr!==Te&&ae(Ne),Be&&Be(Ne)}},[mt,Ja,_e,Be,ae,Zt,fr,In]),ee=N.useCallback(function(Te,je){var Ne=Zt;fi(Te,je);var Ie=$e&&!mB(Ne),Pe;if($e)if(Ie)Pe=Bh(Pi,Te);else{if(!Ne)throw new Error("previousValue is required");if(Array.isArray(Ne))throw new Error("previousValue must not be an array");Pe=h$(Pi,Ne,Te)}else Pe=Fa(Te);var ot=!$e||Ie||E?mQ({maxDate:k,maxDetail:R,minDate:V,minDetail:Q,value:Pe,view:fr}):null;je.persist(),or(ot),Gt(Pe);var ft={action:"onChange",activeStartDate:ot,value:Pe,view:fr};if(_e&&!ym(mt,ot)&&_e(ft),Z)if($e){var pt=mB(Pe);if(!pt)Z(Pe||null,je);else if(i){if(Array.isArray(Pe))throw new Error("value must not be an array");Z([Pe||null,null],je)}}else Z(Pe||null,je)},[mt,i,Fa,E,k,R,V,Q,_e,Z,fi,$e,Zt,Pi,fr]);function ve(Te){vr(Te)}function Ae(){vr(null)}N.useImperativeHandle(r,function(){return{activeStartDate:mt,drillDown:zr,drillUp:gn,onChange:ee,setActiveStartDate:ii,value:Zt,view:fr}},[mt,zr,gn,ee,ii,Zt,fr]);function ce(Te){var je=Te?oQ(fr,mt):Bh(fr,mt),Ne=Mt?zr:ee,Ie={activeStartDate:je,hover:fa,locale:T,maxDate:k,minDate:V,onClick:Ne,onMouseOver:$e?ve:void 0,tileClassName:Jt,tileContent:ur,tileDisabled:rr,value:Zt,valueType:Pi};switch(fr){case"century":return F.jsx(E$,B0({formatYear:w,showNeighboringCentury:yt},Ie));case"decade":return F.jsx(T$,B0({formatYear:w,showNeighboringDecade:Ht},Ie));case"year":return F.jsx(D$,B0({formatMonth:p,formatMonthYear:g},Ie));case"month":return F.jsx(K$,B0({calendarType:a,formatDay:f,formatLongDate:h,formatShortWeekday:y,formatWeekday:m,onClickWeekNumber:q,onMouseLeave:$e?Ae:void 0,showFixedNumberOfWeeks:typeof wt<"u"?wt:tt,showNeighboringMonth:Vt,showWeekNumbers:cr},Ie));default:throw new Error("Invalid view: ".concat(fr,"."))}}function de(){return Tt?F.jsx(p$,{activeStartDate:mt,drillUp:gn,formatMonthYear:g,formatYear:w,locale:T,maxDate:k,minDate:V,navigationAriaLabel:W,navigationAriaLive:J,navigationLabel:fe,next2AriaLabel:G,next2Label:se,nextAriaLabel:ge,nextLabel:ye,prev2AriaLabel:be,prev2Label:ke,prevAriaLabel:Fe,prevLabel:st,setActiveStartDate:ii,showDoubleView:tt,view:fr,views:In}):null}var we=Array.isArray(Zt)?Zt:[Zt];return F.jsxs("div",{className:Ur(mm,$e&&we.length===1&&"".concat(mm,"--selectRange"),tt&&"".concat(mm,"--doubleView"),s),ref:S,children:[de(),F.jsxs("div",{className:"".concat(mm,"__viewContainer"),onBlur:$e?Ae:void 0,onMouseLeave:$e?Ae:void 0,children:[ce(),tt?ce(!0):null]})]})});const Ap="http://127.0.0.1:8000",Os={BASE:Ap,TRIAJE:`${Ap}/triaje`,AUTH:`${Ap}/auth`,DERIVACIONES:`${Ap}/derivaciones`,UPLOADS:`${Ap}/uploads`},yB=Os.TRIAJE,$$=()=>{const[e,t]=N.useState(!1),[r,n]=N.useState(new Date),[i,a]=N.useState(""),[s,o]=N.useState(""),[l,c]=N.useState(""),[f,h]=N.useState([]),[p,g]=N.useState(""),[y,m]=N.useState([]),[w,b]=N.useState({}),[E,S]=N.useState([]),[T,D]=N.useState(""),[k,P]=N.useState(""),[R,O]=N.useState(!1),[V,I]=N.useState(!1),[Q,W]=N.useState(""),[J,fe]=N.useState(""),G="c067dbaad4659c8dfe9f24adf25b5e6d8e34ca175a6f0c9451534bf6b521aeba",se=async()=>{if(T.trim().length!==8){W("⚠️ El DNI debe tener exactamente 8 dígitos.");return}O(!0),W(""),P(""),I(!1);try{const K=await(await fetch("https://apiperu.dev/api/dni",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${G}`},body:JSON.stringify({dni:T})})).json();if(K.success&&K.data){const{nombres:q,apellido_paterno:re,apellido_materno:he}=K.data,Be=`${q} ${re} ${he}`;P(Be),I(!0)}else W("❌ DNI no encontrado en la base de RENIEC.")}catch(j){console.error(j),W("🚫 Error al conectar con el servidor.")}finally{O(!1)}},ge=async j=>{if(!(j instanceof Date))return;const K=j.toISOString().split("T")[0];try{const re=await(await fetch(`${yB}/hoy?fecha=${K}`)).json();S(re.map(Be=>Be.dni));const he=re.map(Be=>{const ae=new Date(Be.fecha_registro),be=ae.getHours().toString().padStart(2,"0"),ke=ae.getMinutes().toString().padStart(2,"0");return`${be}:${ke}`});m(he)}catch(q){console.error("Error al cargar citas del día",q)}},ye=async()=>{try{const K=await(await fetch(`${yB}/ocupadas`)).json(),q={};(K.ocupadas||[]).forEach(re=>{const he=re.split("T")[0];q[he]=(q[he]||0)+1}),b(q)}catch(j){console.error("Error cargando fechas ocupadas",j)}};N.useEffect(()=>{ye()},[]),N.useEffect(()=>{r&&ge(r)},[r]);const _e=async j=>{j.preventDefault();try{if(!(r instanceof Date)){alert("Seleccione una fecha válida");return}if(!i){alert("Seleccione una hora válida");return}if(y.includes(i)){alert("⚠️ Esa hora ya está ocupada. Elija otra.");return}const[K,q]=i.split(":"),re=r.getFullYear(),he=(r.getMonth()+1).toString().padStart(2,"0"),Be=r.getDate().toString().padStart(2,"0"),ae=`${re}-${he}-${Be}T${K}:${q}:00`,be=new FormData;be.append("dni",T),be.append("nombre",k),be.append("telefono",p),be.append("sintomas",l),be.append("area",s),be.append("fecha_cita",ae),f.forEach(st=>be.append("archivos",st));const ke=await fetch(`${yB}/registrar`,{method:"POST",body:be});if(!ke.ok)throw new Error("Error al registrar");const Fe=await ke.json();alert("✅ "+Fe.mensaje),fe("Registro exitoso. Revise su cita en Pacientes Hoy."),t(!1),h([]),a(""),ye()}catch(K){console.error(K),alert("No se pudo registrar la cita.")}},L=(()=>{const j=[];for(let K=8;K<=20;K++){const q=K.toString().padStart(2,"0");j.push(`${q}:00`)}return j})();return F.jsxs("div",{className:"triage-general-container",children:[F.jsxs("header",{className:"triage-general-header",children:[F.jsx("h1",{children:"🩺 Triaje General"}),F.jsxs("p",{children:["El ",F.jsx("strong",{children:"personal médico y de enfermería"})," será quien realice su evaluación al llegar al hospital. Si desea"," ",F.jsx("strong",{children:"reservar una cita programada"})," (por ejemplo, para control o nutrición), puede hacerlo aquí."]})]}),F.jsxs("section",{className:"info-section",children:[F.jsx("h2",{children:"Información Importante"}),F.jsxs("ul",{children:[F.jsxs("li",{children:["Horario de atención al público:"," ",F.jsx("strong",{children:"8:00 a.m. – 8:00 p.m."})]}),F.jsxs("li",{children:["🚨 Fuera de este horario solo se atienden"," ",F.jsx("strong",{children:"emergencias médicas"}),"."]}),F.jsx("li",{children:"Complete su DNI para registrar la cita a su nombre y evitar duplicaciones."})]}),F.jsxs("div",{className:"info-enfermero",children:[F.jsx("strong",{children:"Personal de triaje:"})," Lic. ",F.jsx("em",{children:"María Callirgos"})]})]}),F.jsx("div",{className:"boton-reserva",children:F.jsx("button",{className:"btn-principal",onClick:()=>t(!e),children:e?"Ocultar Reserva":"📅 Reservar Cita"})}),e&&F.jsxs("section",{className:"reserva-section",children:[F.jsx("h2",{children:"Reserva de Cita"}),F.jsxs("form",{onSubmit:_e,className:"reserva-form",children:[F.jsx("label",{children:"Ingrese su DNI:"}),F.jsxs("div",{className:"dni-busqueda",children:[F.jsx("input",{type:"text",maxLength:"8",placeholder:"Ej. 12345678",value:T,onChange:j=>D(j.target.value),required:!0}),F.jsx("button",{type:"button",onClick:se,className:"btn-buscar",disabled:R,children:R?"Buscando...":"Buscar"})]}),Q&&F.jsx("p",{className:"error-text",children:Q}),V&&F.jsxs("div",{className:"nombre-encontrado",children:[F.jsx("strong",{children:"Nombre:"})," ",k]}),V&&F.jsxs(F.Fragment,{children:[F.jsxs("div",{className:"calendar-container",children:[F.jsx("label",{children:"Seleccione la fecha:"}),F.jsx(yQ,{onChange:n,value:r,tileClassName:({date:j,view:K})=>{if(K==="month"){const q=j.toISOString().split("T")[0];if(w[q])return"ocupado-dia"}}})]}),F.jsx("label",{children:"Seleccione la hora:"}),F.jsxs("select",{value:i,onChange:j=>a(j.target.value),required:!0,children:[F.jsx("option",{value:"",children:"Seleccione hora"}),L.map((j,K)=>F.jsx("option",{value:j,disabled:y.includes(j),style:y.includes(j)?{color:"red",fontWeight:"bold"}:{},children:y.includes(j)?`${j} (Ocupado)`:j},K))]}),F.jsx("label",{children:"Ingrese su número de teléfono:"}),F.jsx("input",{type:"tel",placeholder:"Ej. 987654321",value:p,onChange:j=>g(j.target.value),required:!0}),F.jsx("label",{children:"Seleccione al profesional:"}),F.jsxs("select",{value:s,onChange:j=>o(j.target.value),required:!0,children:[F.jsx("option",{value:"",children:"Seleccione profesional"}),F.jsx("option",{value:"Nutricionista - Dr. Renzo tarazona",children:"Nutricionista - Dr. Renzo tarazona"}),F.jsx("option",{value:`Medicina General - Dr. Miguel Herrera\r
`,children:"Medicina General - Dr. Miguel Herrera"}),F.jsx("option",{value:`Obstetricia - Lic. Karim carrion\r
`,children:"Obstetricia - Lic. Karim carrion"}),F.jsx("option",{value:`Pediatría - Dr. Renzo tarazona\r
`,children:"Pediatría - Dr. Renzo tarazona"})]}),F.jsx("label",{children:"Motivo de consulta:"}),F.jsx("textarea",{rows:"3",placeholder:"Describa brevemente su motivo de atención...",value:l,onChange:j=>c(j.target.value),required:!0}),F.jsx("label",{children:"Documentos adjuntos (PDF o imágenes):"}),F.jsx("input",{type:"file",accept:".pdf,.png,.jpg,.jpeg",multiple:!0,onChange:j=>h(K=>[...K,...Array.from(j.target.files)])}),f.length>0&&F.jsx("div",{className:"lista-archivos",children:f.map((j,K)=>F.jsxs("div",{className:"archivo-item",children:["📎 ",F.jsx("strong",{children:j.name}),F.jsx("button",{type:"button",className:"btn-eliminar",onClick:()=>h(q=>q.filter((re,he)=>he!==K)),children:"❌"})]},K))}),F.jsxs("p",{className:"nota-horario",children:[F.jsx("strong",{children:"Recuerde:"})," El horario de atención es de 8:00 a.m. a 8:00 p.m."]}),F.jsx("button",{type:"submit",className:"btn-enviar",children:"Confirmar Reserva"})]})]}),E.length>0&&F.jsxs("div",{className:"dni-ocupados",children:[F.jsx("strong",{children:"DNIs registrados para esta fecha:"}),F.jsx("ul",{children:E.map((j,K)=>F.jsxs("li",{children:["🧍 ",j]},K))})]}),J&&F.jsx("p",{className:"mensaje",children:J})]})]})},X$=(e,t="es-PE")=>{window.speechSynthesis.cancel();const r=new SpeechSynthesisUtterance(e);r.lang=t,r.rate=.85,r.pitch=1.1,r.volume=1;const n=window.speechSynthesis.getVoices(),i=n.find(a=>a.name.includes("Google español de Perú"))||n.find(a=>a.name.includes("Google español"))||n.find(a=>a.lang.includes("es"));i&&(r.voice=i),window.speechSynthesis.speak(r)},QU=e=>{window.speechSynthesis.cancel();const t=new SpeechSynthesisUtterance(e);t.lang="es-ES",t.rate=.8,t.pitch=.9,t.volume=1;const r=window.speechSynthesis.getVoices(),n=r.find(i=>i.name.includes("Google español"))||r.find(i=>i.lang.includes("es"));n&&(t.voice=n),window.speechSynthesis.speak(t)},J$=()=>{const[e,t]=N.useState(!1),r=`
    Bienvenido al módulo de triaje para adultos mayores. 
    Por favor recuerde traer su documento de identidad, 
    resultados médicos previos y asistir acompañado si presenta movilidad reducida. 
    El personal médico realizará la evaluación correspondiente con prioridad.
  `,n=`
    Ñuqaqa rimani: warmi qhari llapa runakuna, hukninpaq hampiyta munankiqa, ama hina qochuykuy. 
    Apamuykuy DNI, hampiykuykuna, ñawpaqmi ruwasqayki análisiskuna, kayta rikhuriykuy hampikuykuna. 
    Ñawi hampiy runakunaqa triaje nisqata ruwanku rikhuriykipaq allin kawsayta.
  `;N.useEffect(()=>{const s=()=>{setTimeout(()=>{window.speechSynthesis.cancel(),QU(n),t(!0),setTimeout(()=>t(!1),11e3)},1200)};return window.speechSynthesis.getVoices().length>0?s():window.speechSynthesis.onvoiceschanged=s,()=>{window.speechSynthesis.cancel(),t(!1)}},[]);const i=(s,o)=>{t(!0),o(s),setTimeout(()=>t(!1),1e4)},a=()=>{window.speechSynthesis.cancel(),t(!1)};return F.jsxs("div",{className:"triaje-adulto-container",children:[F.jsxs("header",{className:"triaje-header",children:[F.jsx("h1",{children:"Triaje para Personas Adultas Mayores"}),F.jsx("p",{children:"Este módulo está diseñado para brindar atención prioritaria a nuestros adultos mayores. Aquí encontrará las indicaciones necesarias antes de ser atendido."})]}),F.jsxs("section",{className:"triaje-card",children:[F.jsx("h2",{children:"Recomendaciones Generales"}),F.jsxs("ul",{children:[F.jsx("li",{children:"Traer su Documento Nacional de Identidad (DNI)."}),F.jsx("li",{children:"Traer resultados de análisis o estudios médicos previos."}),F.jsx("li",{children:"Informar sobre los medicamentos que toma con frecuencia."}),F.jsx("li",{children:"Asistir acompañado si tiene dificultades para movilizarse."}),F.jsx("li",{children:"El personal médico realizará su evaluación de triaje."})]})]}),F.jsxs("section",{className:"voz-section",children:[F.jsx("h2",{children:"Escuchar indicaciones"}),F.jsx("p",{className:"texto-voz",children:r}),F.jsx("div",{className:"botones-voz",children:e?F.jsx("button",{className:"btn-detener",onClick:a,children:"Detener voz"}):F.jsxs(F.Fragment,{children:[F.jsx("button",{className:"btn-voz español",onClick:()=>i(r,X$),children:"Escuchar en Español"}),F.jsx("button",{className:"btn-voz quechua",onClick:()=>i(n,QU),children:"Escuchar en Quechua"})]})})]})]})},Z$=()=>{const[e,t]=N.useState(""),[r,n]=N.useState(""),[i,a]=N.useState(!1),[s,o]=N.useState(!1),[l,c]=N.useState(""),[f,h]=N.useState(null),[p,g]=N.useState(""),y=async()=>{if(e.trim().length!==8){c("El DNI debe tener 8 dígitos.");return}a(!0),c(""),n(""),o(!1),setTimeout(()=>{const E={12345678:{nombre:"JUAN POMA MENDOZA",nacimiento:"2024-02-15"},87654321:{nombre:"LUISA CHÁVEZ CHURATA",nacimiento:"2023-08-10"}}[e];if(E){n(E.nombre);const S=new Date(E.nacimiento),T=new Date,D=(T.getFullYear()-S.getFullYear())*12+(T.getMonth()-S.getMonth());h(D),o(!0),m(D)}else c("DNI no encontrado.");a(!1)},1500)},m=b=>{let E="";b<2?E="Control de 0-1 mes: peso/talla, orientación lactancia, micronutrientes.":b<4?E="Control de 2-3 meses: vacunas, peso/talla, desarrollo psicomotor.":b<6?E="Control de 4-5 meses: seguimiento nutricional y desarrollo.":b<12?E="Control de 6-11 meses: vacunas semestrales, anemia, introducción alimentos.":b<18?E="Control de 12-17 meses: peso/talla, desarrollo, tamizaje de anemia.":b<24?E="Control de 18-23 meses: evaluación global, alimentación, lenguaje.":E="Control de 24 meses o más: revisión semestral/anual, crecimiento y desarrollo general.",g(E)},w=()=>{alert(`Reservando cita para ${r}, ${f} meses: ${p}`)};return F.jsxs("div",{className:"cred-container",children:[F.jsx("h1",{children:"CRED – Control de Crecimiento y Desarrollo"}),F.jsx("p",{children:"Ingrese el DNI del niño o niña para determinar su edad en meses y ver su próximo control."}),F.jsxs("div",{className:"form-group",children:[F.jsx("label",{children:"DNI del niño:"}),F.jsxs("div",{className:"dni-search",children:[F.jsx("input",{type:"text",maxLength:"8",placeholder:"Ej. 12345678",value:e,onChange:b=>t(b.target.value)}),F.jsx("button",{type:"button",onClick:y,disabled:i,children:i?"Buscando...":"Buscar"})]}),l&&F.jsx("p",{className:"error-text",children:l}),s&&F.jsxs("p",{className:"found-info",children:["👤 Nombre: ",r," — Edad: ",f," meses"]})]}),s&&F.jsxs("div",{className:"control-info",children:[F.jsx("h2",{children:"Información de control"}),F.jsx("p",{children:p}),F.jsx("button",{className:"btn-reservar",onClick:w,children:"📅 Reservar cita"})]})]})},eX=()=>{const[e,t]=N.useState(""),[r,n]=N.useState(""),[i,a]=N.useState(""),[s,o]=N.useState(null),[l,c]=N.useState([]),[f,h]=N.useState(""),[p,g]=N.useState(""),[y,m]=N.useState(!1),w="c067dbaad4659c8dfe9f24adf25b5e6d8e34ca175a6f0c9451534bf6b521aeba",b={"2025-10-21":["Obs. Karim carrion","Obs. Lourdes huerta"],"2025-10-22":["Obs. Karim carrion","Obs. Lourdes huerta"],"2025-10-23":["Obs. Karim carrion","Obs. Lourdes huerta"],"2025-10-24":["Obs. Karim carrion","Obs. Lourdes huerta"],"2025-10-25":["Obs. Karim carrion","Obs. Lourdes huerta"]},E=async()=>{if(e.trim().length!==8){g("El DNI debe tener 8 dígitos.");return}try{m(!0),g("");const k=await(await fetch(`https://apiperu.dev/api/dni/${e}`,{headers:{Authorization:`Bearer ${w}`}})).json();k.success?n(`${k.data.nombres} ${k.data.apellido_paterno} ${k.data.apellido_materno}`):g("No se encontró información en RENIEC.")}catch{g("Error al conectar con la API.")}finally{m(!1)}},S=D=>{const k=D.toISOString().split("T")[0];o(k);const P=b[k]||[];c(P),h("")},T=()=>{if(!e||!r||!i||!s||!f){alert("Por favor complete todos los campos antes de reservar.");return}alert(`Cita reservada correctamente.

 Gestante: ${r}
🪪 DNI: ${e}
🩺 Meses de gestación: ${i}
📅 Fecha: ${s}
👨‍⚕️ Doctor: ${f}`)};return F.jsxs("div",{className:"obst-container",children:[F.jsx("h1",{children:"Área de Obstetricia - Gestantes"}),F.jsx("p",{className:"intro-text",children:"Bienvenida al módulo de Obstetricia del Hospital de Apoyo Recuay. Aquí podrá registrar su cita prenatal y conocer qué personal la atenderá. Recuerde traer su DNI, carnet de control, y si presenta dolor, sangrado o mareos, comuníquelo al área de emergencia."}),F.jsxs("div",{className:"form-section",children:[F.jsx("label",{htmlFor:"dni",children:"DNI de la gestante:"}),F.jsxs("div",{className:"dni-group",children:[F.jsx("input",{type:"text",id:"dni",placeholder:"Ej. 87654321",value:e,onChange:D=>t(D.target.value),maxLength:"8"}),F.jsx("button",{onClick:E,disabled:y,children:y?"Buscando...":"Buscar"})]}),p&&F.jsx("p",{className:"error-text",children:p}),r&&F.jsxs("p",{className:"gestante-nombre",children:[F.jsx("strong",{children:"Nombre:"})," ",r]})]}),r&&F.jsxs("div",{className:"meses-group",children:[F.jsx("label",{htmlFor:"meses",children:"Meses de gestación:"}),F.jsx("input",{type:"number",id:"meses",min:"1",max:"9",value:i,onChange:D=>a(D.target.value),placeholder:"Ej. 5"})]}),r&&i&&F.jsxs("div",{className:"calendar-section",children:[F.jsx("h2",{children:"Seleccione la fecha de su cita"}),F.jsx(yQ,{onChange:S,value:s?new Date(s):new Date("2025-10-21"),minDate:new Date("2025-10-21"),maxDate:new Date("2025-10-25")}),s&&F.jsxs("div",{className:"doctor-section",children:[F.jsxs("h3",{children:["Doctores disponibles el ",s]}),l.length>0?F.jsxs("select",{value:f,onChange:D=>h(D.target.value),children:[F.jsx("option",{value:"",children:"-- Seleccione un doctor --"}),l.map((D,k)=>F.jsx("option",{value:D,children:D},k))]}):F.jsx("p",{children:"No hay doctores asignados ese día."})]}),f&&F.jsx("button",{className:"btn-reservar",onClick:T,children:"Reservar cita"})]})]})},wm=Os.TRIAJE,tX=["blanco","verde","amarillo","naranja","rojo"];function rX(){const[e,t]=N.useState([]),[r,n]=N.useState(""),[i,a]=N.useState("todos"),[s,o]=N.useState(!1),[l,c]=N.useState(""),f=async()=>{try{o(!0),c("");const y=r?`${wm}/hoy?fecha=${r}`:`${wm}/hoy`,m=await fetch(y);if(!m.ok)throw new Error("No se pudo cargar los pacientes");const w=await m.json();t(Array.isArray(w)?w:[])}catch(y){console.error(y),c("Error al cargar los pacientes.")}finally{o(!1)}};N.useEffect(()=>{f()},[r]);const h=async(y,m)=>{try{const w=new FormData;if(w.append("color",m),!(await fetch(`${wm}/color/${y}`,{method:"PUT",body:w})).ok)throw new Error;await f()}catch{alert("⚠️ No se pudo actualizar el color del paciente.")}},p=N.useMemo(()=>(i==="todos"?e:e.filter(m=>m.area?.toLowerCase().includes(i.toLowerCase()))).map(m=>({...m,color:(m.color||"blanco").toLowerCase(),fecha:m.fecha_registro?new Date(m.fecha_registro):null})),[e,i]),g=N.useMemo(()=>{const y=new Set(e.map(m=>m.area).filter(Boolean));return["todos",...Array.from(y)]},[e]);return F.jsxs("div",{className:"ph-wrap",children:[F.jsxs("header",{className:"ph-header",children:[F.jsx("h1",{children:"🩺 Pacientes Hoy"}),F.jsxs("div",{className:"ph-filtros",children:[F.jsx("label",{children:"Fecha:"}),F.jsx("input",{type:"date",value:r,onChange:y=>n(y.target.value)}),F.jsx("label",{children:"Área:"}),F.jsx("select",{value:i,onChange:y=>a(y.target.value),children:g.map(y=>F.jsx("option",{value:y,children:y==="todos"?"Todas las áreas":y},y))}),F.jsx("button",{className:"btn-recargar",onClick:f,children:"Recargar"})]})]}),l&&F.jsx("div",{className:"ph-error",children:l}),s&&F.jsx("div",{className:"ph-loading",children:"Cargando pacientes..."}),F.jsxs("table",{className:"ph-table",children:[F.jsx("thead",{children:F.jsxs("tr",{children:[F.jsx("th",{children:"DNI"}),F.jsx("th",{children:"Nombre"}),F.jsx("th",{children:"Teléfono"}),F.jsx("th",{children:"Área"}),F.jsx("th",{children:"Síntomas"}),F.jsx("th",{children:"Fecha/Hora"}),F.jsx("th",{children:"Color"}),F.jsx("th",{children:"Adjunto"}),F.jsx("th",{children:"Estado"})]})}),F.jsxs("tbody",{children:[p.map(y=>F.jsxs("tr",{className:`row-${y.color}`,children:[F.jsx("td",{children:y.dni}),F.jsx("td",{children:y.nombre}),F.jsx("td",{children:y.telefono}),F.jsx("td",{children:y.area}),F.jsx("td",{style:{maxWidth:280},children:y.sintomas}),F.jsx("td",{children:y.fecha?y.fecha.toLocaleString("es-PE",{dateStyle:"short",timeStyle:"short"}):"—"}),F.jsx("td",{children:F.jsx("select",{value:y.color,onChange:m=>h(y.id,m.target.value),children:tX.map(m=>F.jsx("option",{value:m,children:m},m))})}),F.jsx("td",{children:y.archivos?(()=>{let m=[];try{m=JSON.parse(y.archivos),Array.isArray(m)||(m=[String(y.archivos)])}catch{const w=String(y.archivos);m=w.includes(",")?w.split(",").map(b=>b.trim()):[w]}return m.map((w,b)=>F.jsx("div",{children:F.jsxs("a",{className:"ph-link",href:`${wm}/archivo/${encodeURIComponent(w)}`,target:"_blank",rel:"noreferrer",title:w,children:["📎 ",w.length>28?w.slice(0,28)+"…":w]})},b))})():"—"}),F.jsx("td",{children:F.jsx("span",{className:`badge badge-${y.color}`,children:(y.color||"blanco").toUpperCase()})})]},y.id)),!s&&p.length===0&&F.jsx("tr",{children:F.jsx("td",{colSpan:9,style:{textAlign:"center",padding:"20px"},children:"Sin registros para esta fecha o área seleccionada."})})]})]})]})}var nX=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"];function V4(e){if(typeof e!="string")return!1;var t=nX;return t.includes(e)}var iX=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"];function wQ(e){if(typeof e!="string")return!1;var t=iX;return t.includes(e)}function xQ(e){return typeof e=="string"&&e.startsWith("data-")}function Mo(e){var t=Object.entries(e).filter(r=>{var[n]=r;return wQ(n)||xQ(n)});return Object.fromEntries(t)}function Lh(e){if(e==null)return null;if(N.isValidElement(e)&&typeof e.props=="object"&&e.props!==null){var t=e.props;return Mo(t)}return typeof e=="object"&&!Array.isArray(e)?Mo(e):null}function Us(e){var t=Object.entries(e).filter(r=>{var[n]=r;return wQ(n)||xQ(n)||V4(n)});return Object.fromEntries(t)}function aX(e){return e==null?null:N.isValidElement(e)?Us(e.props):typeof e=="object"&&!Array.isArray(e)?Us(e):null}var sX=["children","width","height","viewBox","className","style","title","desc"];function jE(){return jE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},jE.apply(null,arguments)}function oX(e,t){if(e==null)return{};var r,n,i=AX(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function AX(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var G4=N.forwardRef((e,t)=>{var{children:r,width:n,height:i,viewBox:a,className:s,style:o,title:l,desc:c}=e,f=oX(e,sX),h=a||{width:n,height:i,x:0,y:0},p=Ur("recharts-surface",s);return N.createElement("svg",jE({},Us(f),{className:p,width:n,height:i,style:o,viewBox:"".concat(h.x," ").concat(h.y," ").concat(h.width," ").concat(h.height),ref:t}),N.createElement("title",null,l),N.createElement("desc",null,c),r)}),lX=["children","className"];function HE(){return HE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},HE.apply(null,arguments)}function cX(e,t){if(e==null)return{};var r,n,i=uX(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function uX(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Ya=N.forwardRef((e,t)=>{var{children:r,className:n}=e,i=cX(e,lX),a=Ur("recharts-layer",n);return N.createElement("g",HE({className:a},Us(i),{ref:t}),r)}),bQ=N.createContext(null),fX=()=>N.useContext(bQ);function Un(e){return function(){return e}}const BQ=Math.cos,s2=Math.sin,ol=Math.sqrt,o2=Math.PI,Rw=2*o2,KE=Math.PI,zE=2*KE,lh=1e-6,hX=zE-lh;function CQ(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function dX(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return CQ;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class gX{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?CQ:dX(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,s){this._append`C${+t},${+r},${+n},${+i},${this._x1=+a},${this._y1=+s}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let s=this._x1,o=this._y1,l=n-t,c=i-r,f=s-t,h=o-r,p=f*f+h*h;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(p>lh)if(!(Math.abs(h*l-c*f)>lh)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let g=n-s,y=i-o,m=l*l+c*c,w=g*g+y*y,b=Math.sqrt(m),E=Math.sqrt(p),S=a*Math.tan((KE-Math.acos((m+p-w)/(2*b*E)))/2),T=S/E,D=S/b;Math.abs(T-1)>lh&&this._append`L${t+T*f},${r+T*h}`,this._append`A${a},${a},0,0,${+(h*g>f*y)},${this._x1=t+D*l},${this._y1=r+D*c}`}}arc(t,r,n,i,a,s){if(t=+t,r=+r,n=+n,s=!!s,n<0)throw new Error(`negative radius: ${n}`);let o=n*Math.cos(i),l=n*Math.sin(i),c=t+o,f=r+l,h=1^s,p=s?i-a:a-i;this._x1===null?this._append`M${c},${f}`:(Math.abs(this._x1-c)>lh||Math.abs(this._y1-f)>lh)&&this._append`L${c},${f}`,n&&(p<0&&(p=p%zE+zE),p>hX?this._append`A${n},${n},0,1,${h},${t-o},${r-l}A${n},${n},0,1,${h},${this._x1=c},${this._y1=f}`:p>lh&&this._append`A${n},${n},0,${+(p>=KE)},${h},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function q4(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new gX(t)}function W4(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function EQ(e){this._context=e}EQ.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function jw(e){return new EQ(e)}function _Q(e){return e[0]}function SQ(e){return e[1]}function FQ(e,t){var r=Un(!0),n=null,i=jw,a=null,s=q4(o);e=typeof e=="function"?e:e===void 0?_Q:Un(e),t=typeof t=="function"?t:t===void 0?SQ:Un(t);function o(l){var c,f=(l=W4(l)).length,h,p=!1,g;for(n==null&&(a=i(g=s())),c=0;c<=f;++c)!(c<f&&r(h=l[c],c,l))===p&&((p=!p)?a.lineStart():a.lineEnd()),p&&a.point(+e(h,c,l),+t(h,c,l));if(g)return a=null,g+""||null}return o.x=function(l){return arguments.length?(e=typeof l=="function"?l:Un(+l),o):e},o.y=function(l){return arguments.length?(t=typeof l=="function"?l:Un(+l),o):t},o.defined=function(l){return arguments.length?(r=typeof l=="function"?l:Un(!!l),o):r},o.curve=function(l){return arguments.length?(i=l,n!=null&&(a=i(n)),o):i},o.context=function(l){return arguments.length?(l==null?n=a=null:a=i(n=l),o):n},o}function xm(e,t,r){var n=null,i=Un(!0),a=null,s=jw,o=null,l=q4(c);e=typeof e=="function"?e:e===void 0?_Q:Un(+e),t=typeof t=="function"?t:Un(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?SQ:Un(+r);function c(h){var p,g,y,m=(h=W4(h)).length,w,b=!1,E,S=new Array(m),T=new Array(m);for(a==null&&(o=s(E=l())),p=0;p<=m;++p){if(!(p<m&&i(w=h[p],p,h))===b)if(b=!b)g=p,o.areaStart(),o.lineStart();else{for(o.lineEnd(),o.lineStart(),y=p-1;y>=g;--y)o.point(S[y],T[y]);o.lineEnd(),o.areaEnd()}b&&(S[p]=+e(w,p,h),T[p]=+t(w,p,h),o.point(n?+n(w,p,h):S[p],r?+r(w,p,h):T[p]))}if(E)return o=null,E+""||null}function f(){return FQ().defined(i).curve(s).context(a)}return c.x=function(h){return arguments.length?(e=typeof h=="function"?h:Un(+h),n=null,c):e},c.x0=function(h){return arguments.length?(e=typeof h=="function"?h:Un(+h),c):e},c.x1=function(h){return arguments.length?(n=h==null?null:typeof h=="function"?h:Un(+h),c):n},c.y=function(h){return arguments.length?(t=typeof h=="function"?h:Un(+h),r=null,c):t},c.y0=function(h){return arguments.length?(t=typeof h=="function"?h:Un(+h),c):t},c.y1=function(h){return arguments.length?(r=h==null?null:typeof h=="function"?h:Un(+h),c):r},c.lineX0=c.lineY0=function(){return f().x(e).y(t)},c.lineY1=function(){return f().x(e).y(r)},c.lineX1=function(){return f().x(n).y(t)},c.defined=function(h){return arguments.length?(i=typeof h=="function"?h:Un(!!h),c):i},c.curve=function(h){return arguments.length?(s=h,a!=null&&(o=s(a)),c):s},c.context=function(h){return arguments.length?(h==null?a=o=null:o=s(a=h),c):a},c}class TQ{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function pX(e){return new TQ(e,!0)}function vX(e){return new TQ(e,!1)}const Y4={draw(e,t){const r=ol(t/o2);e.moveTo(r,0),e.arc(0,0,r,0,Rw)}},mX={draw(e,t){const r=ol(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},OQ=ol(1/3),yX=OQ*2,wX={draw(e,t){const r=ol(t/yX),n=r*OQ;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},xX={draw(e,t){const r=ol(t),n=-r/2;e.rect(n,n,r,r)}},bX=.8908130915292852,UQ=s2(o2/10)/s2(7*o2/10),BX=s2(Rw/10)*UQ,CX=-BQ(Rw/10)*UQ,EX={draw(e,t){const r=ol(t*bX),n=BX*r,i=CX*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const s=Rw*a/5,o=BQ(s),l=s2(s);e.lineTo(l*r,-o*r),e.lineTo(o*n-l*i,l*n+o*i)}e.closePath()}},wB=ol(3),_X={draw(e,t){const r=-ol(t/(wB*3));e.moveTo(0,r*2),e.lineTo(-wB*r,-r),e.lineTo(wB*r,-r),e.closePath()}},rA=-.5,nA=ol(3)/2,VE=1/ol(12),SX=(VE/2+1)*3,FX={draw(e,t){const r=ol(t/SX),n=r/2,i=r*VE,a=n,s=r*VE+r,o=-a,l=s;e.moveTo(n,i),e.lineTo(a,s),e.lineTo(o,l),e.lineTo(rA*n-nA*i,nA*n+rA*i),e.lineTo(rA*a-nA*s,nA*a+rA*s),e.lineTo(rA*o-nA*l,nA*o+rA*l),e.lineTo(rA*n+nA*i,rA*i-nA*n),e.lineTo(rA*a+nA*s,rA*s-nA*a),e.lineTo(rA*o+nA*l,rA*l-nA*o),e.closePath()}};function TX(e,t){let r=null,n=q4(i);e=typeof e=="function"?e:Un(e||Y4),t=typeof t=="function"?t:Un(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:Un(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:Un(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function A2(){}function l2(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function NQ(e){this._context=e}NQ.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:l2(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:l2(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function OX(e){return new NQ(e)}function LQ(e){this._context=e}LQ.prototype={areaStart:A2,areaEnd:A2,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:l2(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function UX(e){return new LQ(e)}function DQ(e){this._context=e}DQ.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:l2(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function NX(e){return new DQ(e)}function IQ(e){this._context=e}IQ.prototype={areaStart:A2,areaEnd:A2,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function LX(e){return new IQ(e)}function RU(e){return e<0?-1:1}function jU(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),s=(r-e._y1)/(i||n<0&&-0),o=(a*i+s*n)/(n+i);return(RU(a)+RU(s))*Math.min(Math.abs(a),Math.abs(s),.5*Math.abs(o))||0}function HU(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function xB(e,t,r){var n=e._x0,i=e._y0,a=e._x1,s=e._y1,o=(a-n)/3;e._context.bezierCurveTo(n+o,i+o*t,a-o,s-o*r,a,s)}function c2(e){this._context=e}c2.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:xB(this,this._t0,HU(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,xB(this,HU(this,r=jU(this,e,t)),r);break;default:xB(this,this._t0,r=jU(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function MQ(e){this._context=new PQ(e)}(MQ.prototype=Object.create(c2.prototype)).point=function(e,t){c2.prototype.point.call(this,t,e)};function PQ(e){this._context=e}PQ.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function DX(e){return new c2(e)}function IX(e){return new MQ(e)}function kQ(e){this._context=e}kQ.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=KU(e),i=KU(t),a=0,s=1;s<r;++a,++s)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],e[s],t[s]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function KU(e){var t,r=e.length-1,n,i=new Array(r),a=new Array(r),s=new Array(r);for(i[0]=0,a[0]=2,s[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,s[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,s[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,s[t]-=n*s[t-1];for(i[r-1]=s[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(s[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function MX(e){return new kQ(e)}function Hw(e,t){this._context=e,this._t=t}Hw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function PX(e){return new Hw(e,.5)}function kX(e){return new Hw(e,0)}function QX(e){return new Hw(e,1)}function j0(e,t){if((s=e.length)>1)for(var r=1,n,i,a=e[t[0]],s,o=a.length;r<s;++r)for(i=a,a=e[t[r]],n=0;n<o;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function GE(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function RX(e,t){return e[t]}function jX(e){const t=[];return t.key=e,t}function HX(){var e=Un([]),t=GE,r=j0,n=RX;function i(a){var s=Array.from(e.apply(this,arguments),jX),o,l=s.length,c=-1,f;for(const h of a)for(o=0,++c;o<l;++o)(s[o][c]=[0,+n(h,s[o].key,c,a)]).data=h;for(o=0,f=W4(t(s));o<l;++o)s[f[o]].index=o;return r(s,f),s}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:Un(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:Un(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?GE:typeof a=="function"?a:Un(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??j0,i):r},i}function KX(e,t){if((n=e.length)>0){for(var r,n,i=0,a=e[0].length,s;i<a;++i){for(s=r=0;r<n;++r)s+=e[r][i][1]||0;if(s)for(r=0;r<n;++r)e[r][i][1]/=s}j0(e,t)}}function zX(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,a=n.length;r<a;++r){for(var s=0,o=0;s<i;++s)o+=e[s][r][1]||0;n[r][1]+=n[r][0]=-o/2}j0(e,t)}}function VX(e,t){if(!(!((s=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,s;n<a;++n){for(var o=0,l=0,c=0;o<s;++o){for(var f=e[t[o]],h=f[n][1]||0,p=f[n-1][1]||0,g=(h-p)/2,y=0;y<o;++y){var m=e[t[y]],w=m[n][1]||0,b=m[n-1][1]||0;g+=w-b}l+=h,c+=g*h}i[n-1][1]+=i[n-1][0]=r,l&&(r-=c/l)}i[n-1][1]+=i[n-1][0]=r,j0(e,t)}}var bB={},BB={},zU;function GX(){return zU||(zU=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==="__proto__"}e.isUnsafeProperty=t})(BB)),BB}var CB={},VU;function QQ(){return VU||(VU=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){switch(typeof r){case"number":case"symbol":return!1;case"string":return r.includes(".")||r.includes("[")||r.includes("]")}}e.isDeepKey=t})(CB)),CB}var EB={},GU;function $4(){return GU||(GU=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="string"||typeof r=="symbol"?r:Object.is(r?.valueOf?.(),-0)?"-0":String(r)}e.toKey=t})(EB)),EB}var _B={},SB={},qU;function qX(){return qU||(qU=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){if(r==null)return"";if(typeof r=="string")return r;if(Array.isArray(r))return r.map(t).join(",");const n=String(r);return n==="0"&&Object.is(Number(r),-0)?"-0":n}e.toString=t})(SB)),SB}var WU;function X4(){return WU||(WU=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=qX(),r=$4();function n(i){if(Array.isArray(i))return i.map(r.toKey);if(typeof i=="symbol")return[i];i=t.toString(i);const a=[],s=i.length;if(s===0)return a;let o=0,l="",c="",f=!1;for(i.charCodeAt(0)===46&&(a.push(""),o++);o<s;){const h=i[o];c?h==="\\"&&o+1<s?(o++,l+=i[o]):h===c?c="":l+=h:f?h==='"'||h==="'"?c=h:h==="]"?(f=!1,a.push(l),l=""):l+=h:h==="["?(f=!0,l&&(a.push(l),l="")):h==="."?l&&(a.push(l),l=""):l+=h,o++}return l&&a.push(l),a}e.toPath=n})(_B)),_B}var YU;function J4(){return YU||(YU=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=GX(),r=QQ(),n=$4(),i=X4();function a(o,l,c){if(o==null)return c;switch(typeof l){case"string":{if(t.isUnsafeProperty(l))return c;const f=o[l];return f===void 0?r.isDeepKey(l)?a(o,i.toPath(l),c):c:f}case"number":case"symbol":{typeof l=="number"&&(l=n.toKey(l));const f=o[l];return f===void 0?c:f}default:{if(Array.isArray(l))return s(o,l,c);if(Object.is(l?.valueOf(),-0)?l="-0":l=String(l),t.isUnsafeProperty(l))return c;const f=o[l];return f===void 0?c:f}}}function s(o,l,c){if(l.length===0)return c;let f=o;for(let h=0;h<l.length;h++){if(f==null||t.isUnsafeProperty(l[h]))return c;f=f[l[h]]}return f===void 0?c:f}e.get=a})(bB)),bB}var FB,$U;function WX(){return $U||($U=1,FB=J4().get),FB}var YX=WX();const Dh=sl(YX);var Ca=e=>e===0?0:e>0?1:-1,gA=e=>typeof e=="number"&&e!=+e,Vc=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,zt=e=>(typeof e=="number"||e instanceof Number)&&!gA(e),zl=e=>zt(e)||typeof e=="string",$X=0,f1=e=>{var t=++$X;return"".concat(e||"").concat(t)},us=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!zt(t)&&typeof t!="string")return n;var a;if(Vc(t)){if(r==null)return n;var s=t.indexOf("%");a=r*parseFloat(t.slice(0,s))/100}else a=+t;return gA(a)&&(a=n),i&&r!=null&&a>r&&(a=r),a},RQ=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,r={},n=0;n<t;n++)if(!r[e[n]])r[e[n]]=!0;else return!0;return!1};function Bi(e,t,r){return zt(e)&&zt(t)?e+r*(t-e):t}function jQ(e,t,r){if(!(!e||!e.length))return e.find(n=>n&&(typeof t=="function"?t(n):Dh(n,t))===r)}var ei=e=>e===null||typeof e>"u",Y1=e=>ei(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1)),XX=["type","size","sizeType"];function qE(){return qE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qE.apply(null,arguments)}function XU(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function JU(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?XU(Object(r),!0).forEach(function(n){JX(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):XU(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function JX(e,t,r){return(t=ZX(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ZX(e){var t=eJ(e,"string");return typeof t=="symbol"?t:t+""}function eJ(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tJ(e,t){if(e==null)return{};var r,n,i=rJ(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function rJ(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var HQ={symbolCircle:Y4,symbolCross:mX,symbolDiamond:wX,symbolSquare:xX,symbolStar:EX,symbolTriangle:_X,symbolWye:FX},nJ=Math.PI/180,iJ=e=>{var t="symbol".concat(Y1(e));return HQ[t]||Y4},aJ=(e,t,r)=>{if(t==="area")return e;switch(r){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var n=18*nJ;return 1.25*e*e*(Math.tan(n)-Math.tan(n*2)*Math.tan(n)**2)}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},sJ=(e,t)=>{HQ["symbol".concat(Y1(e))]=t},Z4=e=>{var{type:t="circle",size:r=64,sizeType:n="area"}=e,i=tJ(e,XX),a=JU(JU({},i),{},{type:t,size:r,sizeType:n}),s="circle";typeof t=="string"&&(s=t);var o=()=>{var p=iJ(s),g=TX().type(p).size(aJ(r,n,s)),y=g();if(y!==null)return y},{className:l,cx:c,cy:f}=a,h=Us(a);return c===+c&&f===+f&&r===+r?N.createElement("path",qE({},h,{className:Ur("recharts-symbols",l),transform:"translate(".concat(c,", ").concat(f,")"),d:o()})):null};Z4.registerSymbol=sJ;var eS=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if(N.isValidElement(e)&&(r=e.props),typeof r!="object"&&typeof r!="function")return null;var n={};return Object.keys(r).forEach(i=>{V4(i)&&(n[i]=(a=>r[i](r,a)))}),n},oJ=(e,t,r)=>n=>(e(t,r,n),null),$1=(e,t,r)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var n=null;return Object.keys(e).forEach(i=>{var a=e[i];V4(i)&&typeof a=="function"&&(n||(n={}),n[i]=oJ(a,t,r))}),n};function WE(){return WE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},WE.apply(null,arguments)}function ZU(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function AJ(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ZU(Object(r),!0).forEach(function(n){tS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ZU(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tS(e,t,r){return(t=lJ(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lJ(e){var t=cJ(e,"string");return typeof t=="symbol"?t:t+""}function cJ(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var iA=32;class rS extends N.PureComponent{renderIcon(t,r){var{inactiveColor:n}=this.props,i=iA/2,a=iA/6,s=iA/3,o=t.inactive?n:t.color,l=r??t.type;if(l==="none")return null;if(l==="plainline")return N.createElement("line",{strokeWidth:4,fill:"none",stroke:o,strokeDasharray:t.payload.strokeDasharray,x1:0,y1:i,x2:iA,y2:i,className:"recharts-legend-icon"});if(l==="line")return N.createElement("path",{strokeWidth:4,fill:"none",stroke:o,d:"M0,".concat(i,"h").concat(s,`
            A`).concat(a,",").concat(a,",0,1,1,").concat(2*s,",").concat(i,`
            H`).concat(iA,"M").concat(2*s,",").concat(i,`
            A`).concat(a,",").concat(a,",0,1,1,").concat(s,",").concat(i),className:"recharts-legend-icon"});if(l==="rect")return N.createElement("path",{stroke:"none",fill:o,d:"M0,".concat(iA/8,"h").concat(iA,"v").concat(iA*3/4,"h").concat(-iA,"z"),className:"recharts-legend-icon"});if(N.isValidElement(t.legendIcon)){var c=AJ({},t);return delete c.legendIcon,N.cloneElement(t.legendIcon,c)}return N.createElement(Z4,{fill:o,cx:i,cy:i,size:iA,sizeType:"diameter",type:l})}renderItems(){var{payload:t,iconSize:r,layout:n,formatter:i,inactiveColor:a,iconType:s}=this.props,o={x:0,y:0,width:iA,height:iA},l={display:n==="horizontal"?"inline-block":"block",marginRight:10},c={display:"inline-block",verticalAlign:"middle",marginRight:4};return t.map((f,h)=>{var p=f.formatter||i,g=Ur({"recharts-legend-item":!0,["legend-item-".concat(h)]:!0,inactive:f.inactive});if(f.type==="none")return null;var y=f.inactive?a:f.color,m=p?p(f.value,f,h):f.value;return N.createElement("li",WE({className:g,style:l,key:"legend-item-".concat(h)},$1(this.props,f,h)),N.createElement(G4,{width:r,height:r,viewBox:o,style:c,"aria-label":"".concat(m," legend icon")},this.renderIcon(f,s)),N.createElement("span",{className:"recharts-legend-item-text",style:{color:y}},m))})}render(){var{payload:t,layout:r,align:n}=this.props;if(!t||!t.length)return null;var i={padding:0,margin:0,textAlign:r==="horizontal"?n:"left"};return N.createElement("ul",{className:"recharts-default-legend",style:i},this.renderItems())}}tS(rS,"displayName","Legend");tS(rS,"defaultProps",{align:"center",iconSize:14,inactiveColor:"#ccc",layout:"horizontal",verticalAlign:"middle"});var TB={},OB={},eN;function uJ(){return eN||(eN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n){const i=new Map;for(let a=0;a<r.length;a++){const s=r[a],o=n(s);i.has(o)||i.set(o,s)}return Array.from(i.values())}e.uniqBy=t})(OB)),OB}var UB={},tN;function KQ(){return tN||(tN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r}e.identity=t})(UB)),UB}var NB={},LB={},DB={},rN;function fJ(){return rN||(rN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Number.isSafeInteger(r)&&r>=0}e.isLength=t})(DB)),DB}var nN;function nS(){return nN||(nN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=fJ();function r(n){return n!=null&&typeof n!="function"&&t.isLength(n.length)}e.isArrayLike=r})(LB)),LB}var IB={},iN;function hJ(){return iN||(iN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="object"&&r!==null}e.isObjectLike=t})(IB)),IB}var aN;function dJ(){return aN||(aN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=nS(),r=hJ();function n(i){return r.isObjectLike(i)&&t.isArrayLike(i)}e.isArrayLikeObject=n})(NB)),NB}var MB={},PB={},sN;function gJ(){return sN||(sN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=J4();function r(n){return function(i){return t.get(i,n)}}e.property=r})(PB)),PB}var kB={},QB={},RB={},jB={},oN;function zQ(){return oN||(oN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r!==null&&(typeof r=="object"||typeof r=="function")}e.isObject=t})(jB)),jB}var HB={},AN;function VQ(){return AN||(AN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==null||typeof r!="object"&&typeof r!="function"}e.isPrimitive=t})(HB)),HB}var KB={},lN;function GQ(){return lN||(lN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n){return r===n||Number.isNaN(r)&&Number.isNaN(n)}e.eq=t})(KB)),KB}var cN;function pJ(){return cN||(cN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=iS(),r=zQ(),n=VQ(),i=GQ();function a(h,p,g){return typeof g!="function"?t.isMatch(h,p):s(h,p,function y(m,w,b,E,S,T){const D=g(m,w,b,E,S,T);return D!==void 0?!!D:s(m,w,y,T)},new Map)}function s(h,p,g,y){if(p===h)return!0;switch(typeof p){case"object":return o(h,p,g,y);case"function":return Object.keys(p).length>0?s(h,{...p},g,y):i.eq(h,p);default:return r.isObject(h)?typeof p=="string"?p==="":!0:i.eq(h,p)}}function o(h,p,g,y){if(p==null)return!0;if(Array.isArray(p))return c(h,p,g,y);if(p instanceof Map)return l(h,p,g,y);if(p instanceof Set)return f(h,p,g,y);const m=Object.keys(p);if(h==null)return m.length===0;if(m.length===0)return!0;if(y&&y.has(p))return y.get(p)===h;y&&y.set(p,h);try{for(let w=0;w<m.length;w++){const b=m[w];if(!n.isPrimitive(h)&&!(b in h)||p[b]===void 0&&h[b]!==void 0||p[b]===null&&h[b]!==null||!g(h[b],p[b],b,h,p,y))return!1}return!0}finally{y&&y.delete(p)}}function l(h,p,g,y){if(p.size===0)return!0;if(!(h instanceof Map))return!1;for(const[m,w]of p.entries()){const b=h.get(m);if(g(b,w,m,h,p,y)===!1)return!1}return!0}function c(h,p,g,y){if(p.length===0)return!0;if(!Array.isArray(h))return!1;const m=new Set;for(let w=0;w<p.length;w++){const b=p[w];let E=!1;for(let S=0;S<h.length;S++){if(m.has(S))continue;const T=h[S];let D=!1;if(g(T,b,w,h,p,y)&&(D=!0),D){m.add(S),E=!0;break}}if(!E)return!1}return!0}function f(h,p,g,y){return p.size===0?!0:h instanceof Set?c([...h],[...p],g,y):!1}e.isMatchWith=a,e.isSetMatch=f})(RB)),RB}var uN;function iS(){return uN||(uN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=pJ();function r(n,i){return t.isMatchWith(n,i,()=>{})}e.isMatch=r})(QB)),QB}var zB={},VB={},GB={},fN;function vJ(){return fN||(fN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Object.getOwnPropertySymbols(r).filter(n=>Object.prototype.propertyIsEnumerable.call(r,n))}e.getSymbols=t})(GB)),GB}var qB={},hN;function qQ(){return hN||(hN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==null?r===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(r)}e.getTag=t})(qB)),qB}var WB={},dN;function WQ(){return dN||(dN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t="[object RegExp]",r="[object String]",n="[object Number]",i="[object Boolean]",a="[object Arguments]",s="[object Symbol]",o="[object Date]",l="[object Map]",c="[object Set]",f="[object Array]",h="[object Function]",p="[object ArrayBuffer]",g="[object Object]",y="[object Error]",m="[object DataView]",w="[object Uint8Array]",b="[object Uint8ClampedArray]",E="[object Uint16Array]",S="[object Uint32Array]",T="[object BigUint64Array]",D="[object Int8Array]",k="[object Int16Array]",P="[object Int32Array]",R="[object BigInt64Array]",O="[object Float32Array]",V="[object Float64Array]";e.argumentsTag=a,e.arrayBufferTag=p,e.arrayTag=f,e.bigInt64ArrayTag=R,e.bigUint64ArrayTag=T,e.booleanTag=i,e.dataViewTag=m,e.dateTag=o,e.errorTag=y,e.float32ArrayTag=O,e.float64ArrayTag=V,e.functionTag=h,e.int16ArrayTag=k,e.int32ArrayTag=P,e.int8ArrayTag=D,e.mapTag=l,e.numberTag=n,e.objectTag=g,e.regexpTag=t,e.setTag=c,e.stringTag=r,e.symbolTag=s,e.uint16ArrayTag=E,e.uint32ArrayTag=S,e.uint8ArrayTag=w,e.uint8ClampedArrayTag=b})(WB)),WB}var YB={},gN;function mJ(){return gN||(gN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return ArrayBuffer.isView(r)&&!(r instanceof DataView)}e.isTypedArray=t})(YB)),YB}var pN;function YQ(){return pN||(pN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=vJ(),r=qQ(),n=WQ(),i=VQ(),a=mJ();function s(f,h){return o(f,void 0,f,new Map,h)}function o(f,h,p,g=new Map,y=void 0){const m=y?.(f,h,p,g);if(m!==void 0)return m;if(i.isPrimitive(f))return f;if(g.has(f))return g.get(f);if(Array.isArray(f)){const w=new Array(f.length);g.set(f,w);for(let b=0;b<f.length;b++)w[b]=o(f[b],b,p,g,y);return Object.hasOwn(f,"index")&&(w.index=f.index),Object.hasOwn(f,"input")&&(w.input=f.input),w}if(f instanceof Date)return new Date(f.getTime());if(f instanceof RegExp){const w=new RegExp(f.source,f.flags);return w.lastIndex=f.lastIndex,w}if(f instanceof Map){const w=new Map;g.set(f,w);for(const[b,E]of f)w.set(b,o(E,b,p,g,y));return w}if(f instanceof Set){const w=new Set;g.set(f,w);for(const b of f)w.add(o(b,void 0,p,g,y));return w}if(typeof Buffer<"u"&&Buffer.isBuffer(f))return f.subarray();if(a.isTypedArray(f)){const w=new(Object.getPrototypeOf(f)).constructor(f.length);g.set(f,w);for(let b=0;b<f.length;b++)w[b]=o(f[b],b,p,g,y);return w}if(f instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&f instanceof SharedArrayBuffer)return f.slice(0);if(f instanceof DataView){const w=new DataView(f.buffer.slice(0),f.byteOffset,f.byteLength);return g.set(f,w),l(w,f,p,g,y),w}if(typeof File<"u"&&f instanceof File){const w=new File([f],f.name,{type:f.type});return g.set(f,w),l(w,f,p,g,y),w}if(typeof Blob<"u"&&f instanceof Blob){const w=new Blob([f],{type:f.type});return g.set(f,w),l(w,f,p,g,y),w}if(f instanceof Error){const w=new f.constructor;return g.set(f,w),w.message=f.message,w.name=f.name,w.stack=f.stack,w.cause=f.cause,l(w,f,p,g,y),w}if(f instanceof Boolean){const w=new Boolean(f.valueOf());return g.set(f,w),l(w,f,p,g,y),w}if(f instanceof Number){const w=new Number(f.valueOf());return g.set(f,w),l(w,f,p,g,y),w}if(f instanceof String){const w=new String(f.valueOf());return g.set(f,w),l(w,f,p,g,y),w}if(typeof f=="object"&&c(f)){const w=Object.create(Object.getPrototypeOf(f));return g.set(f,w),l(w,f,p,g,y),w}return f}function l(f,h,p=f,g,y){const m=[...Object.keys(h),...t.getSymbols(h)];for(let w=0;w<m.length;w++){const b=m[w],E=Object.getOwnPropertyDescriptor(f,b);(E==null||E.writable)&&(f[b]=o(h[b],b,p,g,y))}}function c(f){switch(r.getTag(f)){case n.argumentsTag:case n.arrayTag:case n.arrayBufferTag:case n.dataViewTag:case n.booleanTag:case n.dateTag:case n.float32ArrayTag:case n.float64ArrayTag:case n.int8ArrayTag:case n.int16ArrayTag:case n.int32ArrayTag:case n.mapTag:case n.numberTag:case n.objectTag:case n.regexpTag:case n.setTag:case n.stringTag:case n.symbolTag:case n.uint8ArrayTag:case n.uint8ClampedArrayTag:case n.uint16ArrayTag:case n.uint32ArrayTag:return!0;default:return!1}}e.cloneDeepWith=s,e.cloneDeepWithImpl=o,e.copyProperties=l})(VB)),VB}var vN;function yJ(){return vN||(vN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=YQ();function r(n){return t.cloneDeepWithImpl(n,void 0,n,new Map,void 0)}e.cloneDeep=r})(zB)),zB}var mN;function wJ(){return mN||(mN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=iS(),r=yJ();function n(i){return i=r.cloneDeep(i),a=>t.isMatch(a,i)}e.matches=n})(kB)),kB}var $B={},XB={},JB={},yN;function xJ(){return yN||(yN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=YQ(),r=WQ();function n(i,a){return t.cloneDeepWith(i,(s,o,l,c)=>{const f=a?.(s,o,l,c);if(f!==void 0)return f;if(typeof i=="object")switch(Object.prototype.toString.call(i)){case r.numberTag:case r.stringTag:case r.booleanTag:{const h=new i.constructor(i?.valueOf());return t.copyProperties(h,i),h}case r.argumentsTag:{const h={};return t.copyProperties(h,i),h.length=i.length,h[Symbol.iterator]=i[Symbol.iterator],h}default:return}})}e.cloneDeepWith=n})(JB)),JB}var wN;function bJ(){return wN||(wN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=xJ();function r(n){return t.cloneDeepWith(n)}e.cloneDeep=r})(XB)),XB}var ZB={},e5={},xN;function $Q(){return xN||(xN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=/^(?:0|[1-9]\d*)$/;function r(n,i=Number.MAX_SAFE_INTEGER){switch(typeof n){case"number":return Number.isInteger(n)&&n>=0&&n<i;case"symbol":return!1;case"string":return t.test(n)}}e.isIndex=r})(e5)),e5}var t5={},bN;function BJ(){return bN||(bN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=qQ();function r(n){return n!==null&&typeof n=="object"&&t.getTag(n)==="[object Arguments]"}e.isArguments=r})(t5)),t5}var BN;function CJ(){return BN||(BN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=QQ(),r=$Q(),n=BJ(),i=X4();function a(s,o){let l;if(Array.isArray(o)?l=o:typeof o=="string"&&t.isDeepKey(o)&&s?.[o]==null?l=i.toPath(o):l=[o],l.length===0)return!1;let c=s;for(let f=0;f<l.length;f++){const h=l[f];if((c==null||!Object.hasOwn(c,h))&&!((Array.isArray(c)||n.isArguments(c))&&r.isIndex(h)&&h<c.length))return!1;c=c[h]}return!0}e.has=a})(ZB)),ZB}var CN;function EJ(){return CN||(CN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=iS(),r=$4(),n=bJ(),i=J4(),a=CJ();function s(o,l){switch(typeof o){case"object":{Object.is(o?.valueOf(),-0)&&(o="-0");break}case"number":{o=r.toKey(o);break}}return l=n.cloneDeep(l),function(c){const f=i.get(c,o);return f===void 0?a.has(c,o):l===void 0?f===void 0:t.isMatch(f,l)}}e.matchesProperty=s})($B)),$B}var EN;function _J(){return EN||(EN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=KQ(),r=gJ(),n=wJ(),i=EJ();function a(s){if(s==null)return t.identity;switch(typeof s){case"function":return s;case"object":return Array.isArray(s)&&s.length===2?i.matchesProperty(s[0],s[1]):n.matches(s);case"string":case"symbol":case"number":return r.property(s)}}e.iteratee=a})(MB)),MB}var _N;function SJ(){return _N||(_N=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=uJ(),r=KQ(),n=dJ(),i=_J();function a(s,o=r.identity){return n.isArrayLikeObject(s)?t.uniqBy(Array.from(s),i.iteratee(o)):[]}e.uniqBy=a})(TB)),TB}var r5,SN;function FJ(){return SN||(SN=1,r5=SJ().uniqBy),r5}var TJ=FJ();const FN=sl(TJ);function XQ(e,t,r){return t===!0?FN(e,r):typeof t=="function"?FN(e,t):e}var n5={exports:{}},i5={},a5={exports:{}},s5={};/**
 * @license React
 * use-sync-external-store-shim.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var TN;function OJ(){if(TN)return s5;TN=1;var e=eg();function t(h,p){return h===p&&(h!==0||1/h===1/p)||h!==h&&p!==p}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,i=e.useEffect,a=e.useLayoutEffect,s=e.useDebugValue;function o(h,p){var g=p(),y=n({inst:{value:g,getSnapshot:p}}),m=y[0].inst,w=y[1];return a(function(){m.value=g,m.getSnapshot=p,l(m)&&w({inst:m})},[h,g,p]),i(function(){return l(m)&&w({inst:m}),h(function(){l(m)&&w({inst:m})})},[h]),s(g),g}function l(h){var p=h.getSnapshot;h=h.value;try{var g=p();return!r(h,g)}catch{return!0}}function c(h,p){return p()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:o;return s5.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,s5}var ON;function UJ(){return ON||(ON=1,a5.exports=OJ()),a5.exports}/**
 * @license React
 * use-sync-external-store-shim/with-selector.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var UN;function NJ(){if(UN)return i5;UN=1;var e=eg(),t=UJ();function r(c,f){return c===f&&(c!==0||1/c===1/f)||c!==c&&f!==f}var n=typeof Object.is=="function"?Object.is:r,i=t.useSyncExternalStore,a=e.useRef,s=e.useEffect,o=e.useMemo,l=e.useDebugValue;return i5.useSyncExternalStoreWithSelector=function(c,f,h,p,g){var y=a(null);if(y.current===null){var m={hasValue:!1,value:null};y.current=m}else m=y.current;y=o(function(){function b(k){if(!E){if(E=!0,S=k,k=p(k),g!==void 0&&m.hasValue){var P=m.value;if(g(P,k))return T=P}return T=k}if(P=T,n(S,k))return P;var R=p(k);return g!==void 0&&g(P,R)?(S=k,P):(S=k,T=R)}var E=!1,S,T,D=h===void 0?null:h;return[function(){return b(f())},D===null?void 0:function(){return b(D())}]},[f,h,p,g]);var w=i(c,y[0],y[1]);return s(function(){m.hasValue=!0,m.value=w},[w]),l(w),w},i5}var NN;function LJ(){return NN||(NN=1,n5.exports=NJ()),n5.exports}var DJ=LJ(),aS=N.createContext(null),IJ=e=>e,ri=()=>{var e=N.useContext(aS);return e?e.store.dispatch:IJ},jy=()=>{},MJ=()=>jy,PJ=(e,t)=>e===t;function Pt(e){var t=N.useContext(aS);return DJ.useSyncExternalStoreWithSelector(t?t.subscription.addNestedSub:MJ,t?t.store.getState:jy,t?t.store.getState:jy,t?e:jy,PJ)}function kJ(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function QJ(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function RJ(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){const r=e.map(n=>typeof n=="function"?`function ${n.name||"unnamed"}()`:typeof n).join(", ");throw new TypeError(`${t}[${r}]`)}}var LN=e=>Array.isArray(e)?e:[e];function jJ(e){const t=Array.isArray(e[0])?e[0]:e;return RJ(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function HJ(e,t){const r=[],{length:n}=e;for(let i=0;i<n;i++)r.push(e[i].apply(null,t));return r}var KJ=class{constructor(e){this.value=e}deref(){return this.value}},zJ=typeof WeakRef<"u"?WeakRef:KJ,VJ=0,DN=1;function bm(){return{s:VJ,v:void 0,o:null,p:null}}function JQ(e,t={}){let r=bm();const{resultEqualityCheck:n}=t;let i,a=0;function s(){let o=r;const{length:l}=arguments;for(let h=0,p=l;h<p;h++){const g=arguments[h];if(typeof g=="function"||typeof g=="object"&&g!==null){let y=o.o;y===null&&(o.o=y=new WeakMap);const m=y.get(g);m===void 0?(o=bm(),y.set(g,o)):o=m}else{let y=o.p;y===null&&(o.p=y=new Map);const m=y.get(g);m===void 0?(o=bm(),y.set(g,o)):o=m}}const c=o;let f;if(o.s===DN)f=o.v;else if(f=e.apply(null,arguments),a++,n){const h=i?.deref?.()??i;h!=null&&n(h,f)&&(f=h,a!==0&&a--),i=typeof f=="object"&&f!==null||typeof f=="function"?new zJ(f):f}return c.s=DN,c.v=f,f}return s.clearCache=()=>{r=bm(),s.resetResultsCount()},s.resultsCount=()=>a,s.resetResultsCount=()=>{a=0},s}function GJ(e,...t){const r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,n=(...i)=>{let a=0,s=0,o,l={},c=i.pop();typeof c=="object"&&(l=c,c=i.pop()),kJ(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const f={...r,...l},{memoize:h,memoizeOptions:p=[],argsMemoize:g=JQ,argsMemoizeOptions:y=[]}=f,m=LN(p),w=LN(y),b=jJ(i),E=h(function(){return a++,c.apply(null,arguments)},...m),S=g(function(){s++;const D=HJ(b,arguments);return o=E.apply(null,D),o},...w);return Object.assign(S,{resultFunc:c,memoizedResultFunc:E,dependencies:b,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>o,recomputations:()=>a,resetRecomputations:()=>{a=0},memoize:h,argsMemoize:g})};return Object.assign(n,{withTypes:()=>n}),n}var ze=GJ(JQ),qJ=Object.assign((e,t=ze)=>{QJ(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const r=Object.keys(e),n=r.map(a=>e[a]);return t(n,(...a)=>a.reduce((s,o,l)=>(s[r[l]]=o,s),{}))},{withTypes:()=>qJ}),o5={},A5={},l5={},IN;function WJ(){return IN||(IN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="symbol"?1:n===null?2:n===void 0?3:n!==n?4:0}const r=(n,i,a)=>{if(n!==i){const s=t(n),o=t(i);if(s===o&&s===0){if(n<i)return a==="desc"?1:-1;if(n>i)return a==="desc"?-1:1}return a==="desc"?o-s:s-o}return 0};e.compareValues=r})(l5)),l5}var c5={},u5={},MN;function ZQ(){return MN||(MN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="symbol"||r instanceof Symbol}e.isSymbol=t})(u5)),u5}var PN;function YJ(){return PN||(PN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ZQ(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,s){return Array.isArray(a)?!1:typeof a=="number"||typeof a=="boolean"||a==null||t.isSymbol(a)?!0:typeof a=="string"&&(n.test(a)||!r.test(a))||s!=null&&Object.hasOwn(s,a)}e.isKey=i})(c5)),c5}var kN;function $J(){return kN||(kN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=WJ(),r=YJ(),n=X4();function i(a,s,o,l){if(a==null)return[];o=l?void 0:o,Array.isArray(a)||(a=Object.values(a)),Array.isArray(s)||(s=s==null?[null]:[s]),s.length===0&&(s=[null]),Array.isArray(o)||(o=o==null?[]:[o]),o=o.map(g=>String(g));const c=(g,y)=>{let m=g;for(let w=0;w<y.length&&m!=null;++w)m=m[y[w]];return m},f=(g,y)=>y==null||g==null?y:typeof g=="object"&&"key"in g?Object.hasOwn(y,g.key)?y[g.key]:c(y,g.path):typeof g=="function"?g(y):Array.isArray(g)?c(y,g):typeof y=="object"?y[g]:y,h=s.map(g=>(Array.isArray(g)&&g.length===1&&(g=g[0]),g==null||typeof g=="function"||Array.isArray(g)||r.isKey(g)?g:{key:g,path:n.toPath(g)}));return a.map(g=>({original:g,criteria:h.map(y=>f(y,g))})).slice().sort((g,y)=>{for(let m=0;m<h.length;m++){const w=t.compareValues(g.criteria[m],y.criteria[m],o[m]);if(w!==0)return w}return 0}).map(g=>g.original)}e.orderBy=i})(A5)),A5}var f5={},QN;function XJ(){return QN||(QN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n=1){const i=[],a=Math.floor(n),s=(o,l)=>{for(let c=0;c<o.length;c++){const f=o[c];Array.isArray(f)&&l<a?s(f,l+1):i.push(f)}};return s(r,0),i}e.flatten=t})(f5)),f5}var h5={},RN;function eR(){return RN||(RN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=$Q(),r=nS(),n=zQ(),i=GQ();function a(s,o,l){return n.isObject(l)&&(typeof o=="number"&&r.isArrayLike(l)&&t.isIndex(o)&&o<l.length||typeof o=="string"&&o in l)?i.eq(l[o],s):!1}e.isIterateeCall=a})(h5)),h5}var jN;function JJ(){return jN||(jN=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=$J(),r=XJ(),n=eR();function i(a,...s){const o=s.length;return o>1&&n.isIterateeCall(a,s[0],s[1])?s=[]:o>2&&n.isIterateeCall(s[0],s[1],s[2])&&(s=[s[0]]),t.orderBy(a,r.flatten(s),["asc"])}e.sortBy=i})(o5)),o5}var d5,HN;function ZJ(){return HN||(HN=1,d5=JJ().sortBy),d5}var eZ=ZJ();const Kw=sl(eZ);var tR=e=>e.legend.settings,tZ=e=>e.legend.size,rZ=e=>e.legend.payload,nZ=ze([rZ,tR],(e,t)=>{var{itemSorter:r}=t,n=e.flat(1);return r?Kw(n,r):n});function iZ(){return Pt(nZ)}var Bm=1;function rR(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[t,r]=N.useState({height:0,left:0,top:0,width:0}),n=N.useCallback(i=>{if(i!=null){var a=i.getBoundingClientRect(),s={height:a.height,left:a.left,top:a.top,width:a.width};(Math.abs(s.height-t.height)>Bm||Math.abs(s.left-t.left)>Bm||Math.abs(s.top-t.top)>Bm||Math.abs(s.width-t.width)>Bm)&&r({height:s.height,left:s.left,top:s.top,width:s.width})}},[t.width,t.height,t.top,t.left,...e]);return[t,n]}function Qa(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var aZ=typeof Symbol=="function"&&Symbol.observable||"@@observable",KN=aZ,g5=()=>Math.random().toString(36).substring(7).split("").join("."),sZ={INIT:`@@redux/INIT${g5()}`,REPLACE:`@@redux/REPLACE${g5()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${g5()}`},u2=sZ;function sS(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function nR(e,t,r){if(typeof e!="function")throw new Error(Qa(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Qa(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Qa(1));return r(nR)(e,t)}let n=e,i=t,a=new Map,s=a,o=0,l=!1;function c(){s===a&&(s=new Map,a.forEach((w,b)=>{s.set(b,w)}))}function f(){if(l)throw new Error(Qa(3));return i}function h(w){if(typeof w!="function")throw new Error(Qa(4));if(l)throw new Error(Qa(5));let b=!0;c();const E=o++;return s.set(E,w),function(){if(b){if(l)throw new Error(Qa(6));b=!1,c(),s.delete(E),a=null}}}function p(w){if(!sS(w))throw new Error(Qa(7));if(typeof w.type>"u")throw new Error(Qa(8));if(typeof w.type!="string")throw new Error(Qa(17));if(l)throw new Error(Qa(9));try{l=!0,i=n(i,w)}finally{l=!1}return(a=s).forEach(E=>{E()}),w}function g(w){if(typeof w!="function")throw new Error(Qa(10));n=w,p({type:u2.REPLACE})}function y(){const w=h;return{subscribe(b){if(typeof b!="object"||b===null)throw new Error(Qa(11));function E(){const T=b;T.next&&T.next(f())}return E(),{unsubscribe:w(E)}},[KN](){return this}}}return p({type:u2.INIT}),{dispatch:p,subscribe:h,getState:f,replaceReducer:g,[KN]:y}}function oZ(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:u2.INIT})>"u")throw new Error(Qa(12));if(typeof r(void 0,{type:u2.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Qa(13))})}function iR(e){const t=Object.keys(e),r={};for(let a=0;a<t.length;a++){const s=t[a];typeof e[s]=="function"&&(r[s]=e[s])}const n=Object.keys(r);let i;try{oZ(r)}catch(a){i=a}return function(s={},o){if(i)throw i;let l=!1;const c={};for(let f=0;f<n.length;f++){const h=n[f],p=r[h],g=s[h],y=p(g,o);if(typeof y>"u")throw o&&o.type,new Error(Qa(14));c[h]=y,l=l||y!==g}return l=l||n.length!==Object.keys(s).length,l?c:s}}function f2(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function AZ(...e){return t=>(r,n)=>{const i=t(r,n);let a=()=>{throw new Error(Qa(15))};const s={getState:i.getState,dispatch:(l,...c)=>a(l,...c)},o=e.map(l=>l(s));return a=f2(...o)(i.dispatch),{...i,dispatch:a}}}function aR(e){return sS(e)&&"type"in e&&typeof e.type=="string"}var sR=Symbol.for("immer-nothing"),zN=Symbol.for("immer-draftable"),Po=Symbol.for("immer-state");function ZA(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var H0=Object.getPrototypeOf;function Ih(e){return!!e&&!!e[Po]}function Gc(e){return e?oR(e)||Array.isArray(e)||!!e[zN]||!!e.constructor?.[zN]||X1(e)||Vw(e):!1}var lZ=Object.prototype.constructor.toString();function oR(e){if(!e||typeof e!="object")return!1;const t=H0(e);if(t===null)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object?!0:typeof r=="function"&&Function.toString.call(r)===lZ}function h2(e,t){zw(e)===0?Reflect.ownKeys(e).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function zw(e){const t=e[Po];return t?t.type_:Array.isArray(e)?1:X1(e)?2:Vw(e)?3:0}function YE(e,t){return zw(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function AR(e,t,r){const n=zw(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function cZ(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function X1(e){return e instanceof Map}function Vw(e){return e instanceof Set}function ch(e){return e.copy_||e.base_}function $E(e,t){if(X1(e))return new Map(e);if(Vw(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=oR(e);if(t===!0||t==="class_only"&&!r){const n=Object.getOwnPropertyDescriptors(e);delete n[Po];let i=Reflect.ownKeys(n);for(let a=0;a<i.length;a++){const s=i[a],o=n[s];o.writable===!1&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(n[s]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[s]})}return Object.create(H0(e),n)}else{const n=H0(e);if(n!==null&&r)return{...e};const i=Object.create(n);return Object.assign(i,e)}}function oS(e,t=!1){return Gw(e)||Ih(e)||!Gc(e)||(zw(e)>1&&Object.defineProperties(e,{set:{value:Cm},add:{value:Cm},clear:{value:Cm},delete:{value:Cm}}),Object.freeze(e),t&&Object.values(e).forEach(r=>oS(r,!0))),e}function Cm(){ZA(2)}function Gw(e){return Object.isFrozen(e)}var uZ={};function Mh(e){const t=uZ[e];return t||ZA(0,e),t}var h1;function lR(){return h1}function fZ(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function VN(e,t){t&&(Mh("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function XE(e){JE(e),e.drafts_.forEach(hZ),e.drafts_=null}function JE(e){e===h1&&(h1=e.parent_)}function GN(e){return h1=fZ(h1,e)}function hZ(e){const t=e[Po];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function qN(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[Po].modified_&&(XE(t),ZA(4)),Gc(e)&&(e=d2(t,e),t.parent_||g2(t,e)),t.patches_&&Mh("Patches").generateReplacementPatches_(r[Po].base_,e,t.patches_,t.inversePatches_)):e=d2(t,r,[]),XE(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==sR?e:void 0}function d2(e,t,r){if(Gw(t))return t;const n=t[Po];if(!n)return h2(t,(i,a)=>WN(e,n,t,i,a,r)),t;if(n.scope_!==e)return t;if(!n.modified_)return g2(e,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;const i=n.copy_;let a=i,s=!1;n.type_===3&&(a=new Set(i),i.clear(),s=!0),h2(a,(o,l)=>WN(e,n,i,o,l,r,s)),g2(e,i,!1),r&&e.patches_&&Mh("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}function WN(e,t,r,n,i,a,s){if(Ih(i)){const o=a&&t&&t.type_!==3&&!YE(t.assigned_,n)?a.concat(n):void 0,l=d2(e,i,o);if(AR(r,n,l),Ih(l))e.canAutoFreeze_=!1;else return}else s&&r.add(i);if(Gc(i)&&!Gw(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;d2(e,i),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&(X1(r)?r.has(n):Object.prototype.propertyIsEnumerable.call(r,n))&&g2(e,i)}}function g2(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&oS(t,r)}function dZ(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:lR(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=n,a=AS;r&&(i=[n],a=d1);const{revoke:s,proxy:o}=Proxy.revocable(i,a);return n.draft_=o,n.revoke_=s,o}var AS={get(e,t){if(t===Po)return e;const r=ch(e);if(!YE(r,t))return gZ(e,r,t);const n=r[t];return e.finalized_||!Gc(n)?n:n===p5(e.base_,t)?(v5(e),e.copy_[t]=e_(n,e)):n},has(e,t){return t in ch(e)},ownKeys(e){return Reflect.ownKeys(ch(e))},set(e,t,r){const n=cR(ch(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const i=p5(ch(e),t),a=i?.[Po];if(a&&a.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(cZ(r,i)&&(r!==void 0||YE(e.base_,t)))return!0;v5(e),ZE(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty(e,t){return p5(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,v5(e),ZE(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=ch(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){ZA(11)},getPrototypeOf(e){return H0(e.base_)},setPrototypeOf(){ZA(12)}},d1={};h2(AS,(e,t)=>{d1[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});d1.deleteProperty=function(e,t){return d1.set.call(this,e,t,void 0)};d1.set=function(e,t,r){return AS.set.call(this,e[0],t,r,e[0])};function p5(e,t){const r=e[Po];return(r?ch(r):e)[t]}function gZ(e,t,r){const n=cR(t,r);return n?"value"in n?n.value:n.get?.call(e.draft_):void 0}function cR(e,t){if(!(t in e))return;let r=H0(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=H0(r)}}function ZE(e){e.modified_||(e.modified_=!0,e.parent_&&ZE(e.parent_))}function v5(e){e.copy_||(e.copy_=$E(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var pZ=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){const a=r;r=t;const s=this;return function(l=a,...c){return s.produce(l,f=>r.call(this,f,...c))}}typeof r!="function"&&ZA(6),n!==void 0&&typeof n!="function"&&ZA(7);let i;if(Gc(t)){const a=GN(this),s=e_(t,void 0);let o=!0;try{i=r(s),o=!1}finally{o?XE(a):JE(a)}return VN(a,n),qN(i,a)}else if(!t||typeof t!="object"){if(i=r(t),i===void 0&&(i=t),i===sR&&(i=void 0),this.autoFreeze_&&oS(i,!0),n){const a=[],s=[];Mh("Patches").generateReplacementPatches_(t,i,a,s),n(a,s)}return i}else ZA(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(s,...o)=>this.produceWithPatches(s,l=>t(l,...o));let n,i;return[this.produce(t,r,(s,o)=>{n=s,i=o}),n,i]},typeof e?.autoFreeze=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof e?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Gc(e)||ZA(8),Ih(e)&&(e=kc(e));const t=GN(this),r=e_(e,void 0);return r[Po].isManual_=!0,JE(t),r}finishDraft(e,t){const r=e&&e[Po];(!r||!r.isManual_)&&ZA(9);const{scope_:n}=r;return VN(n,t),qN(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const i=t[r];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}r>-1&&(t=t.slice(r+1));const n=Mh("Patches").applyPatches_;return Ih(e)?n(e,t):this.produce(e,i=>n(i,t))}};function e_(e,t){const r=X1(e)?Mh("MapSet").proxyMap_(e,t):Vw(e)?Mh("MapSet").proxySet_(e,t):dZ(e,t);return(t?t.scope_:lR()).drafts_.push(r),r}function kc(e){return Ih(e)||ZA(10,e),uR(e)}function uR(e){if(!Gc(e)||Gw(e))return e;const t=e[Po];let r;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=$E(e,t.scope_.immer_.useStrictShallowCopy_)}else r=$E(e,!0);return h2(r,(n,i)=>{AR(r,n,uR(i))}),t&&(t.finalized_=!1),r}var vZ=new pZ,fR=vZ.produce;function hR(e){return({dispatch:r,getState:n})=>i=>a=>typeof a=="function"?a(r,n,e):i(a)}var mZ=hR(),yZ=hR,wZ=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?f2:f2.apply(null,arguments)};function pA(e,t){function r(...n){if(t){let i=t(...n);if(!i)throw new Error(Io(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>aR(n)&&n.type===e,r}var dR=class Up extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Up.prototype)}static get[Symbol.species](){return Up}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Up(...t[0].concat(this)):new Up(...t.concat(this))}};function YN(e){return Gc(e)?fR(e,()=>{}):e}function Em(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function xZ(e){return typeof e=="boolean"}var bZ=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=t??{};let s=new dR;return r&&(xZ(r)?s.push(mZ):s.push(yZ(r.extraArgument))),s},gR="RTK_autoBatch",Es=()=>e=>({payload:e,meta:{[gR]:!0}}),$N=e=>t=>{setTimeout(t,e)},pR=(e={type:"raf"})=>t=>(...r)=>{const n=t(...r);let i=!0,a=!1,s=!1;const o=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:$N(10):e.type==="callback"?e.queueNotification:$N(e.timeout),c=()=>{s=!1,a&&(a=!1,o.forEach(f=>f()))};return Object.assign({},n,{subscribe(f){const h=()=>i&&f(),p=n.subscribe(h);return o.add(f),()=>{p(),o.delete(f)}},dispatch(f){try{return i=!f?.meta?.[gR],a=!i,a&&(s||(s=!0,l(c))),n.dispatch(f)}finally{i=!0}}})},BZ=e=>function(r){const{autoBatch:n=!0}=r??{};let i=new dR(e);return n&&i.push(pR(typeof n=="object"?n:void 0)),i};function CZ(e){const t=bZ(),{reducer:r=void 0,middleware:n,devTools:i=!0,preloadedState:a=void 0,enhancers:s=void 0}=e||{};let o;if(typeof r=="function")o=r;else if(sS(r))o=iR(r);else throw new Error(Io(1));let l;typeof n=="function"?l=n(t):l=t();let c=f2;i&&(c=wZ({trace:!1,...typeof i=="object"&&i}));const f=AZ(...l),h=BZ(f);let p=typeof s=="function"?s(h):h();const g=c(...p);return nR(o,a,g)}function vR(e){const t={},r=[];let n;const i={addCase(a,s){const o=typeof a=="string"?a:a.type;if(!o)throw new Error(Io(28));if(o in t)throw new Error(Io(29));return t[o]=s,i},addAsyncThunk(a,s){return s.pending&&(t[a.pending.type]=s.pending),s.rejected&&(t[a.rejected.type]=s.rejected),s.fulfilled&&(t[a.fulfilled.type]=s.fulfilled),s.settled&&r.push({matcher:a.settled,reducer:s.settled}),i},addMatcher(a,s){return r.push({matcher:a,reducer:s}),i},addDefaultCase(a){return n=a,i}};return e(i),[t,r,n]}function EZ(e){return typeof e=="function"}function _Z(e,t){let[r,n,i]=vR(t),a;if(EZ(e))a=()=>YN(e());else{const o=YN(e);a=()=>o}function s(o=a(),l){let c=[r[l.type],...n.filter(({matcher:f})=>f(l)).map(({reducer:f})=>f)];return c.filter(f=>!!f).length===0&&(c=[i]),c.reduce((f,h)=>{if(h)if(Ih(f)){const g=h(f,l);return g===void 0?f:g}else{if(Gc(f))return fR(f,p=>h(p,l));{const p=h(f,l);if(p===void 0){if(f===null)return f;throw Error("A case reducer on a non-draftable value must not return undefined")}return p}}return f},o)}return s.getInitialState=a,s}var SZ="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",FZ=(e=21)=>{let t="",r=e;for(;r--;)t+=SZ[Math.random()*64|0];return t},TZ=Symbol.for("rtk-slice-createasyncthunk");function OZ(e,t){return`${e}/${t}`}function UZ({creators:e}={}){const t=e?.asyncThunk?.[TZ];return function(n){const{name:i,reducerPath:a=i}=n;if(!i)throw new Error(Io(11));const s=(typeof n.reducers=="function"?n.reducers(LZ()):n.reducers)||{},o=Object.keys(s),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(S,T){const D=typeof S=="string"?S:S.type;if(!D)throw new Error(Io(12));if(D in l.sliceCaseReducersByType)throw new Error(Io(13));return l.sliceCaseReducersByType[D]=T,c},addMatcher(S,T){return l.sliceMatchers.push({matcher:S,reducer:T}),c},exposeAction(S,T){return l.actionCreators[S]=T,c},exposeCaseReducer(S,T){return l.sliceCaseReducersByName[S]=T,c}};o.forEach(S=>{const T=s[S],D={reducerName:S,type:OZ(i,S),createNotation:typeof n.reducers=="function"};IZ(T)?PZ(D,T,c,t):DZ(D,T,c)});function f(){const[S={},T=[],D=void 0]=typeof n.extraReducers=="function"?vR(n.extraReducers):[n.extraReducers],k={...S,...l.sliceCaseReducersByType};return _Z(n.initialState,P=>{for(let R in k)P.addCase(R,k[R]);for(let R of l.sliceMatchers)P.addMatcher(R.matcher,R.reducer);for(let R of T)P.addMatcher(R.matcher,R.reducer);D&&P.addDefaultCase(D)})}const h=S=>S,p=new Map,g=new WeakMap;let y;function m(S,T){return y||(y=f()),y(S,T)}function w(){return y||(y=f()),y.getInitialState()}function b(S,T=!1){function D(P){let R=P[S];return typeof R>"u"&&T&&(R=Em(g,D,w)),R}function k(P=h){const R=Em(p,T,()=>new WeakMap);return Em(R,P,()=>{const O={};for(const[V,I]of Object.entries(n.selectors??{}))O[V]=NZ(I,P,()=>Em(g,P,w),T);return O})}return{reducerPath:S,getSelectors:k,get selectors(){return k(D)},selectSlice:D}}const E={name:i,reducer:m,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:w,...b(a),injectInto(S,{reducerPath:T,...D}={}){const k=T??a;return S.inject({reducerPath:k,reducer:m},D),{...E,...b(k,!0)}}};return E}}function NZ(e,t,r,n){function i(a,...s){let o=t(a);return typeof o>"u"&&n&&(o=r()),e(o,...s)}return i.unwrapped=e,i}var Qo=UZ();function LZ(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function DZ({type:e,reducerName:t,createNotation:r},n,i){let a,s;if("reducer"in n){if(r&&!MZ(n))throw new Error(Io(17));a=n.reducer,s=n.prepare}else a=n;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,s?pA(e,s):pA(e))}function IZ(e){return e._reducerDefinitionType==="asyncThunk"}function MZ(e){return e._reducerDefinitionType==="reducerWithPrepare"}function PZ({type:e,reducerName:t},r,n,i){if(!i)throw new Error(Io(18));const{payloadCreator:a,fulfilled:s,pending:o,rejected:l,settled:c,options:f}=r,h=i(e,a,f);n.exposeAction(t,h),s&&n.addCase(h.fulfilled,s),o&&n.addCase(h.pending,o),l&&n.addCase(h.rejected,l),c&&n.addMatcher(h.settled,c),n.exposeCaseReducer(t,{fulfilled:s||_m,pending:o||_m,rejected:l||_m,settled:c||_m})}function _m(){}var kZ="task",mR="listener",yR="completed",lS="cancelled",QZ=`task-${lS}`,RZ=`task-${yR}`,t_=`${mR}-${lS}`,jZ=`${mR}-${yR}`,qw=class{constructor(e){this.code=e,this.message=`${kZ} ${lS} (reason: ${e})`}name="TaskAbortError";message},cS=(e,t)=>{if(typeof e!="function")throw new TypeError(Io(32))},p2=()=>{},wR=(e,t=p2)=>(e.catch(t),e),xR=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),Ch=(e,t)=>{const r=e.signal;r.aborted||("reason"in r||Object.defineProperty(r,"reason",{enumerable:!0,value:t,configurable:!0,writable:!0}),e.abort(t))},Eh=e=>{if(e.aborted){const{reason:t}=e;throw new qw(t)}};function bR(e,t){let r=p2;return new Promise((n,i)=>{const a=()=>i(new qw(e.reason));if(e.aborted){a();return}r=xR(e,a),t.finally(()=>r()).then(n,i)}).finally(()=>{r=p2})}var HZ=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(r){return{status:r instanceof qw?"cancelled":"rejected",error:r}}finally{t?.()}},v2=e=>t=>wR(bR(e,t).then(r=>(Eh(e),r))),BR=e=>{const t=v2(e);return r=>t(new Promise(n=>setTimeout(n,r)))},{assign:T0}=Object,XN={},Ww="listenerMiddleware",KZ=(e,t)=>{const r=n=>xR(e,()=>Ch(n,e.reason));return(n,i)=>{cS(n);const a=new AbortController;r(a);const s=HZ(async()=>{Eh(e),Eh(a.signal);const o=await n({pause:v2(a.signal),delay:BR(a.signal),signal:a.signal});return Eh(a.signal),o},()=>Ch(a,RZ));return i?.autoJoin&&t.push(s.catch(p2)),{result:v2(e)(s),cancel(){Ch(a,QZ)}}}},zZ=(e,t)=>{const r=async(n,i)=>{Eh(t);let a=()=>{};const o=[new Promise((l,c)=>{let f=e({predicate:n,effect:(h,p)=>{p.unsubscribe(),l([h,p.getState(),p.getOriginalState()])}});a=()=>{f(),c()}})];i!=null&&o.push(new Promise(l=>setTimeout(l,i,null)));try{const l=await bR(t,Promise.race(o));return Eh(t),l}finally{a()}};return(n,i)=>wR(r(n,i))},CR=e=>{let{type:t,actionCreator:r,matcher:n,predicate:i,effect:a}=e;if(t)i=pA(t).match;else if(r)t=r.type,i=r.match;else if(n)i=n;else if(!i)throw new Error(Io(21));return cS(a),{predicate:i,type:t,effect:a}},ER=T0(e=>{const{type:t,predicate:r,effect:n}=CR(e);return{id:FZ(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error(Io(22))}}},{withTypes:()=>ER}),JN=(e,t)=>{const{type:r,effect:n,predicate:i}=CR(t);return Array.from(e.values()).find(a=>(typeof r=="string"?a.type===r:a.predicate===i)&&a.effect===n)},r_=e=>{e.pending.forEach(t=>{Ch(t,t_)})},VZ=(e,t)=>()=>{for(const r of t.keys())r_(r);e.clear()},ZN=(e,t,r)=>{try{e(t,r)}catch(n){setTimeout(()=>{throw n},0)}},_R=T0(pA(`${Ww}/add`),{withTypes:()=>_R}),GZ=pA(`${Ww}/removeAll`),SR=T0(pA(`${Ww}/remove`),{withTypes:()=>SR}),qZ=(...e)=>{console.error(`${Ww}/error`,...e)},J1=(e={})=>{const t=new Map,r=new Map,n=g=>{const y=r.get(g)??0;r.set(g,y+1)},i=g=>{const y=r.get(g)??1;y===1?r.delete(g):r.set(g,y-1)},{extra:a,onError:s=qZ}=e;cS(s);const o=g=>(g.unsubscribe=()=>t.delete(g.id),t.set(g.id,g),y=>{g.unsubscribe(),y?.cancelActive&&r_(g)}),l=g=>{const y=JN(t,g)??ER(g);return o(y)};T0(l,{withTypes:()=>l});const c=g=>{const y=JN(t,g);return y&&(y.unsubscribe(),g.cancelActive&&r_(y)),!!y};T0(c,{withTypes:()=>c});const f=async(g,y,m,w)=>{const b=new AbortController,E=zZ(l,b.signal),S=[];try{g.pending.add(b),n(g),await Promise.resolve(g.effect(y,T0({},m,{getOriginalState:w,condition:(T,D)=>E(T,D).then(Boolean),take:E,delay:BR(b.signal),pause:v2(b.signal),extra:a,signal:b.signal,fork:KZ(b.signal,S),unsubscribe:g.unsubscribe,subscribe:()=>{t.set(g.id,g)},cancelActiveListeners:()=>{g.pending.forEach((T,D,k)=>{T!==b&&(Ch(T,t_),k.delete(T))})},cancel:()=>{Ch(b,t_),g.pending.delete(b)},throwIfCancelled:()=>{Eh(b.signal)}})))}catch(T){T instanceof qw||ZN(s,T,{raisedBy:"effect"})}finally{await Promise.all(S),Ch(b,jZ),i(g),g.pending.delete(b)}},h=VZ(t,r);return{middleware:g=>y=>m=>{if(!aR(m))return y(m);if(_R.match(m))return l(m.payload);if(GZ.match(m)){h();return}if(SR.match(m))return c(m.payload);let w=g.getState();const b=()=>{if(w===XN)throw new Error(Io(23));return w};let E;try{if(E=y(m),t.size>0){const S=g.getState(),T=Array.from(t.values());for(const D of T){let k=!1;try{k=D.predicate(m,S,w)}catch(P){k=!1,ZN(s,P,{raisedBy:"predicate"})}k&&f(D,m,g,b)}}}finally{w=XN}return E},startListening:l,stopListening:c,clearListeners:h}};function Io(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var WZ={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},FR=Qo({name:"chartLayout",initialState:WZ,reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){var r,n,i,a;e.margin.top=(r=t.payload.top)!==null&&r!==void 0?r:0,e.margin.right=(n=t.payload.right)!==null&&n!==void 0?n:0,e.margin.bottom=(i=t.payload.bottom)!==null&&i!==void 0?i:0,e.margin.left=(a=t.payload.left)!==null&&a!==void 0?a:0},setScale(e,t){e.scale=t.payload}}}),{setMargin:YZ,setLayout:$Z,setChartSize:XZ,setScale:JZ}=FR.actions,ZZ=FR.reducer;function eL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function tL(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?eL(Object(r),!0).forEach(function(n){eee(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eL(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function eee(e,t,r){return(t=tee(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tee(e){var t=ree(e,"string");return typeof t=="symbol"?t:t+""}function ree(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var m2=Math.PI/180,nee=e=>e*180/Math.PI,Vi=(e,t,r,n)=>({x:e+Math.cos(-m2*n)*r,y:t+Math.sin(-m2*n)*r}),TR=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},iee=(e,t)=>{var{x:r,y:n}=e,{x:i,y:a}=t;return Math.sqrt((r-i)**2+(n-a)**2)},aee=(e,t)=>{var{x:r,y:n}=e,{cx:i,cy:a}=t,s=iee({x:r,y:n},{x:i,y:a});if(s<=0)return{radius:s,angle:0};var o=(r-i)/s,l=Math.acos(o);return n>a&&(l=2*Math.PI-l),{radius:s,angle:nee(l),angleInRadian:l}},see=e=>{var{startAngle:t,endAngle:r}=e,n=Math.floor(t/360),i=Math.floor(r/360),a=Math.min(n,i);return{startAngle:t-a*360,endAngle:r-a*360}},oee=(e,t)=>{var{startAngle:r,endAngle:n}=t,i=Math.floor(r/360),a=Math.floor(n/360),s=Math.min(i,a);return e+s*360},Aee=(e,t)=>{var{x:r,y:n}=e,{radius:i,angle:a}=aee({x:r,y:n},t),{innerRadius:s,outerRadius:o}=t;if(i<s||i>o||i===0)return null;var{startAngle:l,endAngle:c}=see(t),f=a,h;if(l<=c){for(;f>c;)f-=360;for(;f<l;)f+=360;h=f>=l&&f<=c}else{for(;f>l;)f-=360;for(;f<c;)f+=360;h=f>=c&&f<=l}return h?tL(tL({},t),{},{radius:i,angle:oee(f,t)}):null};function OR(e,t,r){return Array.isArray(e)&&e&&t+r!==0?e.slice(t,r+1):e}function rL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function cA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rL(Object(r),!0).forEach(function(n){lee(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rL(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function lee(e,t,r){return(t=cee(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cee(e){var t=uee(e,"string");return typeof t=="symbol"?t:t+""}function uee(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Dn(e,t,r){return ei(e)||ei(t)?r:zl(t)?Dh(e,t,r):typeof t=="function"?t(e):r}var fee=(e,t,r,n,i)=>{var a,s=-1,o=(a=t?.length)!==null&&a!==void 0?a:0;if(o<=1||e==null)return 0;if(n==="angleAxis"&&i!=null&&Math.abs(Math.abs(i[1]-i[0])-360)<=1e-6)for(var l=0;l<o;l++){var c=l>0?r[l-1].coordinate:r[o-1].coordinate,f=r[l].coordinate,h=l>=o-1?r[0].coordinate:r[l+1].coordinate,p=void 0;if(Ca(f-c)!==Ca(h-f)){var g=[];if(Ca(h-f)===Ca(i[1]-i[0])){p=h;var y=f+i[1]-i[0];g[0]=Math.min(y,(y+c)/2),g[1]=Math.max(y,(y+c)/2)}else{p=c;var m=h+i[1]-i[0];g[0]=Math.min(f,(m+f)/2),g[1]=Math.max(f,(m+f)/2)}var w=[Math.min(f,(p+f)/2),Math.max(f,(p+f)/2)];if(e>w[0]&&e<=w[1]||e>=g[0]&&e<=g[1]){({index:s}=r[l]);break}}else{var b=Math.min(c,h),E=Math.max(c,h);if(e>(b+f)/2&&e<=(E+f)/2){({index:s}=r[l]);break}}}else if(t){for(var S=0;S<o;S++)if(S===0&&e<=(t[S].coordinate+t[S+1].coordinate)/2||S>0&&S<o-1&&e>(t[S].coordinate+t[S-1].coordinate)/2&&e<=(t[S].coordinate+t[S+1].coordinate)/2||S===o-1&&e>(t[S].coordinate+t[S-1].coordinate)/2){({index:s}=t[S]);break}}return s},hee=(e,t,r)=>{if(t&&r){var{width:n,height:i}=r,{align:a,verticalAlign:s,layout:o}=t;if((o==="vertical"||o==="horizontal"&&s==="middle")&&a!=="center"&&zt(e[a]))return cA(cA({},e),{},{[a]:e[a]+(n||0)});if((o==="horizontal"||o==="vertical"&&a==="center")&&s!=="middle"&&zt(e[s]))return cA(cA({},e),{},{[s]:e[s]+(i||0)})}return e},Ef=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis",UR=(e,t,r,n)=>{if(n)return e.map(o=>o.coordinate);var i,a,s=e.map(o=>(o.coordinate===t&&(i=!0),o.coordinate===r&&(a=!0),o.coordinate));return i||s.push(t),a||s.push(r),s},NR=(e,t,r)=>{if(!e)return null;var{duplicateDomain:n,type:i,range:a,scale:s,realScaleType:o,isCategorical:l,categoricalDomain:c,tickCount:f,ticks:h,niceTicks:p,axisType:g}=e;if(!s)return null;var y=o==="scaleBand"&&s.bandwidth?s.bandwidth()/2:2,m=i==="category"&&s.bandwidth?s.bandwidth()/y:0;if(m=g==="angleAxis"&&a&&a.length>=2?Ca(a[0]-a[1])*2*m:m,h||p){var w=(h||p||[]).map((b,E)=>{var S=n?n.indexOf(b):b;return{coordinate:s(S)+m,value:b,offset:m,index:E}});return w.filter(b=>!gA(b.coordinate))}return l&&c?c.map((b,E)=>({coordinate:s(b)+m,value:b,index:E,offset:m})):s.ticks&&f!=null?s.ticks(f).map((b,E)=>({coordinate:s(b)+m,value:b,offset:m,index:E})):s.domain().map((b,E)=>({coordinate:s(b)+m,value:n?n[b]:b,index:E,offset:m}))},nL=1e-4,dee=e=>{var t=e.domain();if(!(!t||t.length<=2)){var r=t.length,n=e.range(),i=Math.min(n[0],n[1])-nL,a=Math.max(n[0],n[1])+nL,s=e(t[0]),o=e(t[r-1]);(s<i||s>a||o<i||o>a)&&e.domain([t[0],t[r-1]])}},gee=(e,t)=>{if(!t||t.length!==2||!zt(t[0])||!zt(t[1]))return e;var r=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]),i=[e[0],e[1]];return(!zt(e[0])||e[0]<r)&&(i[0]=r),(!zt(e[1])||e[1]>n)&&(i[1]=n),i[0]>n&&(i[0]=n),i[1]<r&&(i[1]=r),i},pee=e=>{var t=e.length;if(!(t<=0))for(var r=0,n=e[0].length;r<n;++r)for(var i=0,a=0,s=0;s<t;++s){var o=gA(e[s][r][1])?e[s][r][0]:e[s][r][1];o>=0?(e[s][r][0]=i,e[s][r][1]=i+o,i=e[s][r][1]):(e[s][r][0]=a,e[s][r][1]=a+o,a=e[s][r][1])}},vee=e=>{var t=e.length;if(!(t<=0))for(var r=0,n=e[0].length;r<n;++r)for(var i=0,a=0;a<t;++a){var s=gA(e[a][r][1])?e[a][r][0]:e[a][r][1];s>=0?(e[a][r][0]=i,e[a][r][1]=i+s,i=e[a][r][1]):(e[a][r][0]=0,e[a][r][1]=0)}},mee={sign:pee,expand:KX,none:j0,silhouette:zX,wiggle:VX,positive:vee},yee=(e,t,r)=>{var n=mee[r],i=HX().keys(t).value((a,s)=>+Dn(a,s,0)).order(GE).offset(n);return i(e)};function wee(e){return e==null?void 0:String(e)}function iL(e){var{axis:t,ticks:r,bandSize:n,entry:i,index:a,dataKey:s}=e;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!ei(i[t.dataKey])){var o=jQ(r,"value",i[t.dataKey]);if(o)return o.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var l=Dn(i,ei(s)?t.dataKey:s);return ei(l)?null:t.scale(l)}var aL=e=>{var{axis:t,ticks:r,offset:n,bandSize:i,entry:a,index:s}=e;if(t.type==="category")return r[s]?r[s].coordinate+n:null;var o=Dn(a,t.dataKey,t.scale.domain()[s]);return ei(o)?null:t.scale(o)-i/2+n},xee=e=>{var{numericAxis:t}=e,r=t.scale.domain();if(t.type==="number"){var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return n<=0&&i>=0?0:i<0?i:n}return r[0]},bee=e=>{var t=e.flat(2).filter(zt);return[Math.min(...t),Math.max(...t)]},Bee=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],Cee=(e,t,r)=>{if(e!=null)return Bee(Object.keys(e).reduce((n,i)=>{var a=e[i],{stackedData:s}=a,o=s.reduce((l,c)=>{var f=OR(c,t,r),h=bee(f);return[Math.min(l[0],h[0]),Math.max(l[1],h[1])]},[1/0,-1/0]);return[Math.min(o[0],n[0]),Math.max(o[1],n[1])]},[1/0,-1/0]))},sL=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,oL=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,g1=(e,t,r)=>{if(e&&e.scale&&e.scale.bandwidth){var n=e.scale.bandwidth();if(!r||n>0)return n}if(e&&t&&t.length>=2){for(var i=Kw(t,f=>f.coordinate),a=1/0,s=1,o=i.length;s<o;s++){var l=i[s],c=i[s-1];a=Math.min((l.coordinate||0)-(c.coordinate||0),a)}return a===1/0?0:a}return r?void 0:0};function AL(e){var{tooltipEntrySettings:t,dataKey:r,payload:n,value:i,name:a}=e;return cA(cA({},t),{},{dataKey:r,payload:n,value:i,name:a})}function sg(e,t){if(e)return String(e);if(typeof t=="string")return t}function Eee(e,t,r,n,i){if(r==="horizontal"||r==="vertical"){var a=e>=i.left&&e<=i.left+i.width&&t>=i.top&&t<=i.top+i.height;return a?{x:e,y:t}:null}return n?Aee({x:e,y:t},n):null}var _ee=(e,t,r,n)=>{var i=t.find(c=>c&&c.index===r);if(i){if(e==="horizontal")return{x:i.coordinate,y:n.y};if(e==="vertical")return{x:n.x,y:i.coordinate};if(e==="centric"){var a=i.coordinate,{radius:s}=n;return cA(cA(cA({},n),Vi(n.cx,n.cy,s,a)),{},{angle:a,radius:s})}var o=i.coordinate,{angle:l}=n;return cA(cA(cA({},n),Vi(n.cx,n.cy,o,l)),{},{angle:l,radius:o})}return{x:0,y:0}},See=(e,t)=>t==="horizontal"?e.x:t==="vertical"?e.y:t==="centric"?e.angle:e.radius,tu=e=>e.layout.width,ru=e=>e.layout.height,Fee=e=>e.layout.scale,LR=e=>e.layout.margin,Yw=ze(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),$w=ze(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),DR="data-recharts-item-index",IR="data-recharts-item-data-key",Z1=60;function lL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Sm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?lL(Object(r),!0).forEach(function(n){Tee(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lL(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Tee(e,t,r){return(t=Oee(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Oee(e){var t=Uee(e,"string");return typeof t=="symbol"?t:t+""}function Uee(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Nee=e=>e.brush.height;function Lee(e){var t=$w(e);return t.reduce((r,n)=>{if(n.orientation==="left"&&!n.mirror&&!n.hide){var i=typeof n.width=="number"?n.width:Z1;return r+i}return r},0)}function Dee(e){var t=$w(e);return t.reduce((r,n)=>{if(n.orientation==="right"&&!n.mirror&&!n.hide){var i=typeof n.width=="number"?n.width:Z1;return r+i}return r},0)}function Iee(e){var t=Yw(e);return t.reduce((r,n)=>n.orientation==="top"&&!n.mirror&&!n.hide?r+n.height:r,0)}function Mee(e){var t=Yw(e);return t.reduce((r,n)=>n.orientation==="bottom"&&!n.mirror&&!n.hide?r+n.height:r,0)}var Aa=ze([tu,ru,LR,Nee,Lee,Dee,Iee,Mee,tR,tZ],(e,t,r,n,i,a,s,o,l,c)=>{var f={left:(r.left||0)+i,right:(r.right||0)+a},h={top:(r.top||0)+s,bottom:(r.bottom||0)+o},p=Sm(Sm({},h),f),g=p.bottom;p.bottom+=n,p=hee(p,l,c);var y=e-p.left-p.right,m=t-p.top-p.bottom;return Sm(Sm({brushBottom:g},p),{},{width:Math.max(y,0),height:Math.max(m,0)})}),Pee=ze(Aa,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),uS=ze(tu,ru,(e,t)=>({x:0,y:0,width:e,height:t})),kee=N.createContext(null),Ns=()=>N.useContext(kee)!=null,Xw=e=>e.brush,Jw=ze([Xw,Aa,LR],(e,t,r)=>({height:e.height,x:zt(e.x)?e.x:t.left,y:zt(e.y)?e.y:t.top+t.height+t.brushBottom-(r?.bottom||0),width:zt(e.width)?e.width:t.width})),m5={},y5={},w5={},cL;function Qee(){return cL||(cL=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n,{signal:i,edges:a}={}){let s,o=null;const l=a!=null&&a.includes("leading"),c=a==null||a.includes("trailing"),f=()=>{o!==null&&(r.apply(s,o),s=void 0,o=null)},h=()=>{c&&f(),m()};let p=null;const g=()=>{p!=null&&clearTimeout(p),p=setTimeout(()=>{p=null,h()},n)},y=()=>{p!==null&&(clearTimeout(p),p=null)},m=()=>{y(),s=void 0,o=null},w=()=>{f()},b=function(...E){if(i?.aborted)return;s=this,o=E;const S=p==null;g(),l&&S&&f()};return b.schedule=g,b.cancel=m,b.flush=w,i?.addEventListener("abort",m,{once:!0}),b}e.debounce=t})(w5)),w5}var uL;function Ree(){return uL||(uL=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Qee();function r(n,i=0,a={}){typeof a!="object"&&(a={});const{leading:s=!1,trailing:o=!0,maxWait:l}=a,c=Array(2);s&&(c[0]="leading"),o&&(c[1]="trailing");let f,h=null;const p=t.debounce(function(...m){f=n.apply(this,m),h=null},i,{edges:c}),g=function(...m){return l!=null&&(h===null&&(h=Date.now()),Date.now()-h>=l)?(f=n.apply(this,m),h=Date.now(),p.cancel(),p.schedule(),f):(p.apply(this,m),f)},y=()=>(p.flush(),f);return g.cancel=p.cancel,g.flush=y,g}e.debounce=r})(y5)),y5}var fL;function jee(){return fL||(fL=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Ree();function r(n,i=0,a={}){const{leading:s=!0,trailing:o=!0}=a;return t.debounce(n,i,{leading:s,maxWait:i,trailing:o})}e.throttle=r})(m5)),m5}var x5,hL;function Hee(){return hL||(hL=1,x5=jee().throttle),x5}var Kee=Hee();const zee=sl(Kee);var y2=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a]},MR=(e,t,r)=>{var{width:n="100%",height:i="100%",aspect:a,maxHeight:s}=r,o=Vc(n)?e:Number(n),l=Vc(i)?t:Number(i);return a&&a>0&&(o?l=o/a:l&&(o=l*a),s&&l>s&&(l=s)),{calculatedWidth:o,calculatedHeight:l}},Vee={width:0,height:0,overflow:"visible"},Gee={width:0,overflowX:"visible"},qee={height:0,overflowY:"visible"},Wee={},Yee=e=>{var{width:t,height:r}=e,n=Vc(t),i=Vc(r);return n&&i?Vee:n?Gee:i?qee:Wee};function $ee(e){var{width:t,height:r,aspect:n}=e,i=t,a=r;return i===void 0&&a===void 0?(i="100%",a="100%"):i===void 0?i=n&&n>0?void 0:"100%":a===void 0&&(a=n&&n>0?void 0:"100%"),{width:i,height:a}}function ds(e){return Number.isFinite(e)}function K0(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function n_(){return n_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n_.apply(null,arguments)}function dL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function gL(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dL(Object(r),!0).forEach(function(n){Xee(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dL(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Xee(e,t,r){return(t=Jee(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Jee(e){var t=Zee(e,"string");return typeof t=="symbol"?t:t+""}function Zee(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var PR=N.createContext({width:-1,height:-1});function kR(e){var{children:t,width:r,height:n}=e,i=N.useMemo(()=>({width:r,height:n}),[r,n]);return r<=0||n<=0?null:N.createElement(PR.Provider,{value:i},t)}var fS=()=>N.useContext(PR),ete=N.forwardRef((e,t)=>{var{aspect:r,initialDimension:n={width:-1,height:-1},width:i,height:a,minWidth:s=0,minHeight:o,maxHeight:l,children:c,debounce:f=0,id:h,className:p,onResize:g,style:y={}}=e,m=N.useRef(null),w=N.useRef();w.current=g,N.useImperativeHandle(t,()=>m.current);var[b,E]=N.useState({containerWidth:n.width,containerHeight:n.height}),S=N.useCallback((R,O)=>{E(V=>{var I=Math.round(R),Q=Math.round(O);return V.containerWidth===I&&V.containerHeight===Q?V:{containerWidth:I,containerHeight:Q}})},[]);N.useEffect(()=>{var R=Q=>{var W,{width:J,height:fe}=Q[0].contentRect;S(J,fe),(W=w.current)===null||W===void 0||W.call(w,J,fe)};f>0&&(R=zee(R,f,{trailing:!0,leading:!1}));var O=new ResizeObserver(R),{width:V,height:I}=m.current.getBoundingClientRect();return S(V,I),O.observe(m.current),()=>{O.disconnect()}},[S,f]);var{containerWidth:T,containerHeight:D}=b;y2(!r||r>0,"The aspect(%s) must be greater than zero.",r);var{calculatedWidth:k,calculatedHeight:P}=MR(T,D,{width:i,height:a,aspect:r,maxHeight:l});return y2(k>0||P>0,`The width(%s) and height(%s) of chart should be greater than 0,
       please check the style of container, or the props width(%s) and height(%s),
       or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
       height and width.`,k,P,i,a,s,o,r),N.createElement("div",{id:h?"".concat(h):void 0,className:Ur("recharts-responsive-container",p),style:gL(gL({},y),{},{width:i,height:a,minWidth:s,minHeight:o,maxHeight:l}),ref:m},N.createElement("div",{style:Yee({width:i,height:a})},N.createElement(kR,{width:k,height:P},c)))}),Hy=N.forwardRef((e,t)=>{var r=fS();if(K0(r.width)&&K0(r.height))return e.children;var{width:n,height:i}=$ee({width:e.width,height:e.height,aspect:e.aspect}),{calculatedWidth:a,calculatedHeight:s}=MR(void 0,void 0,{width:n,height:i,aspect:e.aspect,maxHeight:e.maxHeight});return zt(a)&&zt(s)?N.createElement(kR,{width:a,height:s},e.children):N.createElement(ete,n_({},e,{width:n,height:i,ref:t}))}),Zw=()=>{var e,t=Ns(),r=Pt(Pee),n=Pt(Jw),i=(e=Pt(Xw))===null||e===void 0?void 0:e.padding;return!t||!n||!i?r:{width:n.width-i.left-i.right,height:n.height-i.top-i.bottom,x:i.left,y:i.top}},tte={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},QR=()=>{var e;return(e=Pt(Aa))!==null&&e!==void 0?e:tte},hS=()=>Pt(tu),dS=()=>Pt(ru),rte=()=>Pt(e=>e.layout.margin),Qr=e=>e.layout.layoutType,ex=()=>Pt(Qr),tx=e=>{var t=ri(),r=Ns(),{width:n,height:i}=e,a=fS(),s=n,o=i;return a&&(s=a.width>0?a.width:n,o=a.height>0?a.height:i),N.useEffect(()=>{!r&&K0(s)&&K0(o)&&t(XZ({width:s,height:o}))},[t,r,s,o]),null},nte={settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},RR=Qo({name:"legend",initialState:nte,reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter},addLegendPayload:{reducer(e,t){e.payload.push(t.payload)},prepare:Es()},removeLegendPayload:{reducer(e,t){var r=kc(e).payload.indexOf(t.payload);r>-1&&e.payload.splice(r,1)},prepare:Es()}}}),{setLegendSize:pL,setLegendSettings:ite,addLegendPayload:jR,removeLegendPayload:HR}=RR.actions,ate=RR.reducer,ste=["contextPayload"];function i_(){return i_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i_.apply(null,arguments)}function vL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function z0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vL(Object(r),!0).forEach(function(n){gS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vL(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gS(e,t,r){return(t=ote(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ote(e){var t=Ate(e,"string");return typeof t=="symbol"?t:t+""}function Ate(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lte(e,t){if(e==null)return{};var r,n,i=cte(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function cte(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function ute(e){return e.value}function fte(e){var{contextPayload:t}=e,r=lte(e,ste),n=XQ(t,e.payloadUniqBy,ute),i=z0(z0({},r),{},{payload:n});return N.isValidElement(e.content)?N.cloneElement(e.content,i):typeof e.content=="function"?N.createElement(e.content,i):N.createElement(rS,i)}function hte(e,t,r,n,i,a){var{layout:s,align:o,verticalAlign:l}=t,c,f;return(!e||(e.left===void 0||e.left===null)&&(e.right===void 0||e.right===null))&&(o==="center"&&s==="vertical"?c={left:((n||0)-a.width)/2}:c=o==="right"?{right:r&&r.right||0}:{left:r&&r.left||0}),(!e||(e.top===void 0||e.top===null)&&(e.bottom===void 0||e.bottom===null))&&(l==="middle"?f={top:((i||0)-a.height)/2}:f=l==="bottom"?{bottom:r&&r.bottom||0}:{top:r&&r.top||0}),z0(z0({},c),f)}function dte(e){var t=ri();return N.useEffect(()=>{t(ite(e))},[t,e]),null}function gte(e){var t=ri();return N.useEffect(()=>(t(pL(e)),()=>{t(pL({width:0,height:0}))}),[t,e]),null}function pte(e){var t=iZ(),r=fX(),n=rte(),{width:i,height:a,wrapperStyle:s,portal:o}=e,[l,c]=rR([t]),f=hS(),h=dS();if(f==null||h==null)return null;var p=f-(n.left||0)-(n.right||0),g=rx.getWidthOrHeight(e.layout,a,i,p),y=o?s:z0(z0({position:"absolute",width:g?.width||i||"auto",height:g?.height||a||"auto"},hte(s,e,n,f,h,l)),s),m=o??r;if(m==null)return null;var w=N.createElement("div",{className:"recharts-legend-wrapper",style:y,ref:c},N.createElement(dte,{layout:e.layout,align:e.align,verticalAlign:e.verticalAlign,itemSorter:e.itemSorter}),N.createElement(gte,{width:l.width,height:l.height}),N.createElement(fte,i_({},e,g,{margin:n,chartWidth:f,chartHeight:h,contextPayload:t})));return Gk.createPortal(w,m)}let rx=class extends N.PureComponent{static getWidthOrHeight(t,r,n,i){return t==="vertical"&&zt(r)?{height:r}:t==="horizontal"?{width:n||i}:null}render(){return N.createElement(pte,this.props)}};gS(rx,"displayName","Legend");gS(rx,"defaultProps",{align:"center",iconSize:14,itemSorter:"value",layout:"horizontal",verticalAlign:"bottom"});function a_(){return a_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},a_.apply(null,arguments)}function mL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function b5(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mL(Object(r),!0).forEach(function(n){vte(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mL(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vte(e,t,r){return(t=mte(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mte(e){var t=yte(e,"string");return typeof t=="symbol"?t:t+""}function yte(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wte(e){return Array.isArray(e)&&zl(e[0])&&zl(e[1])?e.join(" ~ "):e}var xte=e=>{var{separator:t=" : ",contentStyle:r={},itemStyle:n={},labelStyle:i={},payload:a,formatter:s,itemSorter:o,wrapperClassName:l,labelClassName:c,label:f,labelFormatter:h,accessibilityLayer:p=!1}=e,g=()=>{if(a&&a.length){var D={padding:0,margin:0},k=(o?Kw(a,o):a).map((P,R)=>{if(P.type==="none")return null;var O=P.formatter||s||wte,{value:V,name:I}=P,Q=V,W=I;if(O){var J=O(V,I,P,R,a);if(Array.isArray(J))[Q,W]=J;else if(J!=null)Q=J;else return null}var fe=b5({display:"block",paddingTop:4,paddingBottom:4,color:P.color||"#000"},n);return N.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(R),style:fe},zl(W)?N.createElement("span",{className:"recharts-tooltip-item-name"},W):null,zl(W)?N.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,N.createElement("span",{className:"recharts-tooltip-item-value"},Q),N.createElement("span",{className:"recharts-tooltip-item-unit"},P.unit||""))});return N.createElement("ul",{className:"recharts-tooltip-item-list",style:D},k)}return null},y=b5({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},r),m=b5({margin:0},i),w=!ei(f),b=w?f:"",E=Ur("recharts-default-tooltip",l),S=Ur("recharts-tooltip-label",c);w&&h&&a!==void 0&&a!==null&&(b=h(f,a));var T=p?{role:"status","aria-live":"assertive"}:{};return N.createElement("div",a_({className:E,style:y},T),N.createElement("p",{className:S,style:m},N.isValidElement(b)?b:"".concat(b)),g())},lp="recharts-tooltip-wrapper",bte={visibility:"hidden"};function Bte(e){var{coordinate:t,translateX:r,translateY:n}=e;return Ur(lp,{["".concat(lp,"-right")]:zt(r)&&t&&zt(t.x)&&r>=t.x,["".concat(lp,"-left")]:zt(r)&&t&&zt(t.x)&&r<t.x,["".concat(lp,"-bottom")]:zt(n)&&t&&zt(t.y)&&n>=t.y,["".concat(lp,"-top")]:zt(n)&&t&&zt(t.y)&&n<t.y})}function yL(e){var{allowEscapeViewBox:t,coordinate:r,key:n,offsetTopLeft:i,position:a,reverseDirection:s,tooltipDimension:o,viewBox:l,viewBoxDimension:c}=e;if(a&&zt(a[n]))return a[n];var f=r[n]-o-(i>0?i:0),h=r[n]+i;if(t[n])return s[n]?f:h;var p=l[n];if(p==null)return 0;if(s[n]){var g=f,y=p;return g<y?Math.max(h,p):Math.max(f,p)}if(c==null)return 0;var m=h+o,w=p+c;return m>w?Math.max(f,p):Math.max(h,p)}function Cte(e){var{translateX:t,translateY:r,useTranslate3d:n}=e;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function Ete(e){var{allowEscapeViewBox:t,coordinate:r,offsetTopLeft:n,position:i,reverseDirection:a,tooltipBox:s,useTranslate3d:o,viewBox:l}=e,c,f,h;return s.height>0&&s.width>0&&r?(f=yL({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:s.width,viewBox:l,viewBoxDimension:l.width}),h=yL({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:s.height,viewBox:l,viewBoxDimension:l.height}),c=Cte({translateX:f,translateY:h,useTranslate3d:o})):c=bte,{cssProperties:c,cssClasses:Bte({translateX:f,translateY:h,coordinate:r})}}function wL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Fm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wL(Object(r),!0).forEach(function(n){s_(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wL(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function s_(e,t,r){return(t=_te(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _te(e){var t=Ste(e,"string");return typeof t=="symbol"?t:t+""}function Ste(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class Fte extends N.PureComponent{constructor(){super(...arguments),s_(this,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),s_(this,"handleKeyDown",t=>{if(t.key==="Escape"){var r,n,i,a;this.setState({dismissed:!0,dismissedAtCoordinate:{x:(r=(n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==null&&r!==void 0?r:0,y:(i=(a=this.props.coordinate)===null||a===void 0?void 0:a.y)!==null&&i!==void 0?i:0}})}})}componentDidMount(){document.addEventListener("keydown",this.handleKeyDown)}componentWillUnmount(){document.removeEventListener("keydown",this.handleKeyDown)}componentDidUpdate(){var t,r;this.state.dismissed&&(((t=this.props.coordinate)===null||t===void 0?void 0:t.x)!==this.state.dismissedAtCoordinate.x||((r=this.props.coordinate)===null||r===void 0?void 0:r.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}render(){var{active:t,allowEscapeViewBox:r,animationDuration:n,animationEasing:i,children:a,coordinate:s,hasPayload:o,isAnimationActive:l,offset:c,position:f,reverseDirection:h,useTranslate3d:p,viewBox:g,wrapperStyle:y,lastBoundingBox:m,innerRef:w,hasPortalFromProps:b}=this.props,{cssClasses:E,cssProperties:S}=Ete({allowEscapeViewBox:r,coordinate:s,offsetTopLeft:c,position:f,reverseDirection:h,tooltipBox:{height:m.height,width:m.width},useTranslate3d:p,viewBox:g}),T=b?{}:Fm(Fm({transition:l&&t?"transform ".concat(n,"ms ").concat(i):void 0},S),{},{pointerEvents:"none",visibility:!this.state.dismissed&&t&&o?"visible":"hidden",position:"absolute",top:0,left:0}),D=Fm(Fm({},T),{},{visibility:!this.state.dismissed&&t&&o?"visible":"hidden"},y);return N.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:E,style:D,ref:w},a)}}var Tte=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),_f={devToolsEnabled:!1,isSsr:Tte()},KR=()=>Pt(e=>e.rootProps.accessibilityLayer);function o_(){return o_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o_.apply(null,arguments)}function xL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function bL(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xL(Object(r),!0).forEach(function(n){Ote(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xL(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ote(e,t,r){return(t=Ute(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ute(e){var t=Nte(e,"string");return typeof t=="symbol"?t:t+""}function Nte(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var BL={curveBasisClosed:UX,curveBasisOpen:NX,curveBasis:OX,curveBumpX:pX,curveBumpY:vX,curveLinearClosed:LX,curveLinear:jw,curveMonotoneX:DX,curveMonotoneY:IX,curveNatural:MX,curveStep:PX,curveStepAfter:QX,curveStepBefore:kX},Tm=e=>ds(e.x)&&ds(e.y),cp=e=>e.x,up=e=>e.y,Lte=(e,t)=>{if(typeof e=="function")return e;var r="curve".concat(Y1(e));return(r==="curveMonotone"||r==="curveBump")&&t?BL["".concat(r).concat(t==="vertical"?"Y":"X")]:BL[r]||jw},Dte=e=>{var{type:t="linear",points:r=[],baseLine:n,layout:i,connectNulls:a=!1}=e,s=Lte(t,i),o=a?r.filter(Tm):r,l;if(Array.isArray(n)){var c=a?n.filter(h=>Tm(h)):n,f=o.map((h,p)=>bL(bL({},h),{},{base:c[p]}));return i==="vertical"?l=xm().y(up).x1(cp).x0(h=>h.base.x):l=xm().x(cp).y1(up).y0(h=>h.base.y),l.defined(Tm).curve(s),l(f)}return i==="vertical"&&zt(n)?l=xm().y(up).x1(cp).x0(n):zt(n)?l=xm().x(cp).y1(up).y0(n):l=FQ().x(cp).y(up),l.defined(Tm).curve(s),l(o)},pS=e=>{var{className:t,points:r,path:n,pathRef:i}=e;if((!r||!r.length)&&!n)return null;var a=r&&r.length?Dte(e):n;return N.createElement("path",o_({},Mo(e),eS(e),{className:Ur("recharts-curve",t),d:a===null?void 0:a,ref:i}))},Ite=["x","y","top","left","width","height","className"];function A_(){return A_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},A_.apply(null,arguments)}function CL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Mte(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?CL(Object(r),!0).forEach(function(n){Pte(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):CL(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Pte(e,t,r){return(t=kte(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kte(e){var t=Qte(e,"string");return typeof t=="symbol"?t:t+""}function Qte(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Rte(e,t){if(e==null)return{};var r,n,i=jte(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function jte(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Hte=(e,t,r,n,i,a)=>"M".concat(e,",").concat(i,"v").concat(n,"M").concat(a,",").concat(t,"h").concat(r),Kte=e=>{var{x:t=0,y:r=0,top:n=0,left:i=0,width:a=0,height:s=0,className:o}=e,l=Rte(e,Ite),c=Mte({x:t,y:r,top:n,left:i,width:a,height:s},l);return!zt(t)||!zt(r)||!zt(a)||!zt(s)||!zt(n)||!zt(i)?null:N.createElement("path",A_({},Us(c),{className:Ur("recharts-cross",o),d:Hte(t,r,a,s,n,i)}))};function zte(e,t,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-i,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function EL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Vte(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?EL(Object(r),!0).forEach(function(n){Gte(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):EL(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Gte(e,t,r){return(t=qte(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qte(e){var t=Wte(e,"string");return typeof t=="symbol"?t:t+""}function Wte(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Xa(e,t){var r=Vte({},e),n=t,i=Object.keys(t),a=i.reduce((s,o)=>(s[o]===void 0&&n[o]!==void 0&&(s[o]=n[o]),s),r);return a}function Yte(){}function $te(e){return e!=null}function _L(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function SL(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_L(Object(r),!0).forEach(function(n){Xte(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_L(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Xte(e,t,r){return(t=Jte(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Jte(e){var t=Zte(e,"string");return typeof t=="symbol"?t:t+""}function Zte(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ere=e=>e.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),zR=(e,t,r)=>e.map(n=>"".concat(ere(n)," ").concat(t,"ms ").concat(r)).join(","),tre=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((r,n)=>r.filter(i=>n.includes(i))),p1=(e,t)=>Object.keys(t).reduce((r,n)=>SL(SL({},r),{},{[n]:e(n,t[n])}),{});function FL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ha(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?FL(Object(r),!0).forEach(function(n){rre(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):FL(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function rre(e,t,r){return(t=nre(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nre(e){var t=ire(e,"string");return typeof t=="symbol"?t:t+""}function ire(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var w2=(e,t,r)=>e+(t-e)*r,l_=e=>{var{from:t,to:r}=e;return t!==r},VR=(e,t,r)=>{var n=p1((i,a)=>{if(l_(a)){var[s,o]=e(a.from,a.to,a.velocity);return Ha(Ha({},a),{},{from:s,velocity:o})}return a},t);return r<1?p1((i,a)=>l_(a)?Ha(Ha({},a),{},{velocity:w2(a.velocity,n[i].velocity,r),from:w2(a.from,n[i].from,r)}):a,t):VR(e,n,r-1)};function are(e,t,r,n,i,a){var s,o=n.reduce((p,g)=>Ha(Ha({},p),{},{[g]:{from:e[g],velocity:0,to:t[g]}}),{}),l=()=>p1((p,g)=>g.from,o),c=()=>!Object.values(o).filter(l_).length,f=null,h=p=>{s||(s=p);var g=p-s,y=g/r.dt;o=VR(r,o,y),i(Ha(Ha(Ha({},e),t),l())),s=p,c()||(f=a.setTimeout(h))};return()=>(f=a.setTimeout(h),()=>{f()})}function sre(e,t,r,n,i,a,s){var o=null,l=i.reduce((h,p)=>Ha(Ha({},h),{},{[p]:[e[p],t[p]]}),{}),c,f=h=>{c||(c=h);var p=(h-c)/n,g=p1((m,w)=>w2(...w,r(p)),l);if(a(Ha(Ha(Ha({},e),t),g)),p<1)o=s.setTimeout(f);else{var y=p1((m,w)=>w2(...w,r(1)),l);a(Ha(Ha(Ha({},e),t),y))}};return()=>(o=s.setTimeout(f),()=>{o()})}const ore=(e,t,r,n,i,a)=>{var s=tre(e,t);return r.isStepper===!0?are(e,t,r,s,i,a):sre(e,t,r,n,s,i,a)};var x2=1e-4,GR=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],qR=(e,t)=>e.map((r,n)=>r*t**n).reduce((r,n)=>r+n),TL=(e,t)=>r=>{var n=GR(e,t);return qR(n,r)},Are=(e,t)=>r=>{var n=GR(e,t),i=[...n.map((a,s)=>a*s).slice(1),0];return qR(i,r)},OL=function(){for(var t,r,n,i,a=arguments.length,s=new Array(a),o=0;o<a;o++)s[o]=arguments[o];if(s.length===1)switch(s[0]){case"linear":[t,n,r,i]=[0,0,1,1];break;case"ease":[t,n,r,i]=[.25,.1,.25,1];break;case"ease-in":[t,n,r,i]=[.42,0,1,1];break;case"ease-out":[t,n,r,i]=[.42,0,.58,1];break;case"ease-in-out":[t,n,r,i]=[0,0,.58,1];break;default:{var l=s[0].split("(");l[0]==="cubic-bezier"&&l[1].split(")")[0].split(",").length===4&&([t,n,r,i]=l[1].split(")")[0].split(",").map(y=>parseFloat(y)))}}else s.length===4&&([t,n,r,i]=s);var c=TL(t,r),f=TL(n,i),h=Are(t,r),p=y=>y>1?1:y<0?0:y,g=y=>{for(var m=y>1?1:y,w=m,b=0;b<8;++b){var E=c(w)-m,S=h(w);if(Math.abs(E-m)<x2||S<x2)return f(w);w=p(w-E/S)}return f(w)};return g.isStepper=!1,g},lre=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{stiff:r=100,damping:n=8,dt:i=17}=t,a=(s,o,l)=>{var c=-(s-o)*r,f=l*n,h=l+(c-f)*i/1e3,p=l*i/1e3+s;return Math.abs(p-o)<x2&&Math.abs(h)<x2?[o,0]:[p,h]};return a.isStepper=!0,a.dt=i,a},cre=e=>{if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return OL(e);case"spring":return lre();default:if(e.split("(")[0]==="cubic-bezier")return OL(e)}return typeof e=="function"?e:null};function ure(e){var t,r=()=>null,n=!1,i=null,a=s=>{if(!n){if(Array.isArray(s)){if(!s.length)return;var o=s,[l,...c]=o;if(typeof l=="number"){i=e.setTimeout(a.bind(null,c),l);return}a(l),i=e.setTimeout(a.bind(null,c));return}typeof s=="string"&&(t=s,r(t)),typeof s=="object"&&(t=s,r(t)),typeof s=="function"&&s()}};return{stop:()=>{n=!0},start:s=>{n=!1,i&&(i(),i=null),a(s)},subscribe:s=>(r=s,()=>{r=()=>null}),getTimeoutController:()=>e}}class fre{setTimeout(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=performance.now(),i=null,a=s=>{s-n>=r?t(s):typeof requestAnimationFrame=="function"&&(i=requestAnimationFrame(a))};return i=requestAnimationFrame(a),()=>{cancelAnimationFrame(i)}}}function hre(){return ure(new fre)}var dre=N.createContext(hre);function gre(e,t){var r=N.useContext(dre);return N.useMemo(()=>t??r(e),[e,t,r])}var pre={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},UL={t:0},B5={t:1};function ev(e){var t=Xa(e,pre),{isActive:r,canBegin:n,duration:i,easing:a,begin:s,onAnimationEnd:o,onAnimationStart:l,children:c}=t,f=gre(t.animationId,t.animationManager),[h,p]=N.useState(r?UL:B5),g=N.useRef(null);return N.useEffect(()=>{r||p(B5)},[r]),N.useEffect(()=>{if(!r||!n)return Yte;var y=ore(UL,B5,cre(a),i,p,f.getTimeoutController()),m=()=>{g.current=y()};return f.start([l,s,m,i,o]),()=>{f.stop(),g.current&&g.current(),o()}},[r,n,i,a,s,l,o,f]),c(h.t)}function tv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",r=N.useRef(f1(t)),n=N.useRef(e);return n.current!==e&&(r.current=f1(t),n.current=e),r.current}var vre=["radius"],mre=["radius"];function NL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function LL(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?NL(Object(r),!0).forEach(function(n){yre(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):NL(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yre(e,t,r){return(t=wre(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wre(e){var t=xre(e,"string");return typeof t=="symbol"?t:t+""}function xre(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function b2(){return b2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},b2.apply(null,arguments)}function DL(e,t){if(e==null)return{};var r,n,i=bre(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function bre(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var IL=(e,t,r,n,i)=>{var a=Math.min(Math.abs(r)/2,Math.abs(n)/2),s=n>=0?1:-1,o=r>=0?1:-1,l=n>=0&&r>=0||n<0&&r<0?1:0,c;if(a>0&&i instanceof Array){for(var f=[0,0,0,0],h=0,p=4;h<p;h++)f[h]=i[h]>a?a:i[h];c="M".concat(e,",").concat(t+s*f[0]),f[0]>0&&(c+="A ".concat(f[0],",").concat(f[0],",0,0,").concat(l,",").concat(e+o*f[0],",").concat(t)),c+="L ".concat(e+r-o*f[1],",").concat(t),f[1]>0&&(c+="A ".concat(f[1],",").concat(f[1],",0,0,").concat(l,`,
        `).concat(e+r,",").concat(t+s*f[1])),c+="L ".concat(e+r,",").concat(t+n-s*f[2]),f[2]>0&&(c+="A ".concat(f[2],",").concat(f[2],",0,0,").concat(l,`,
        `).concat(e+r-o*f[2],",").concat(t+n)),c+="L ".concat(e+o*f[3],",").concat(t+n),f[3]>0&&(c+="A ".concat(f[3],",").concat(f[3],",0,0,").concat(l,`,
        `).concat(e,",").concat(t+n-s*f[3])),c+="Z"}else if(a>0&&i===+i&&i>0){var g=Math.min(a,i);c="M ".concat(e,",").concat(t+s*g,`
            A `).concat(g,",").concat(g,",0,0,").concat(l,",").concat(e+o*g,",").concat(t,`
            L `).concat(e+r-o*g,",").concat(t,`
            A `).concat(g,",").concat(g,",0,0,").concat(l,",").concat(e+r,",").concat(t+s*g,`
            L `).concat(e+r,",").concat(t+n-s*g,`
            A `).concat(g,",").concat(g,",0,0,").concat(l,",").concat(e+r-o*g,",").concat(t+n,`
            L `).concat(e+o*g,",").concat(t+n,`
            A `).concat(g,",").concat(g,",0,0,").concat(l,",").concat(e,",").concat(t+n-s*g," Z")}else c="M ".concat(e,",").concat(t," h ").concat(r," v ").concat(n," h ").concat(-r," Z");return c},Bre={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},WR=e=>{var t=Xa(e,Bre),r=N.useRef(null),[n,i]=N.useState(-1);N.useEffect(()=>{if(r.current&&r.current.getTotalLength)try{var se=r.current.getTotalLength();se&&i(se)}catch{}},[]);var{x:a,y:s,width:o,height:l,radius:c,className:f}=t,{animationEasing:h,animationDuration:p,animationBegin:g,isAnimationActive:y,isUpdateAnimationActive:m}=t,w=N.useRef(o),b=N.useRef(l),E=N.useRef(a),S=N.useRef(s),T=N.useMemo(()=>({x:a,y:s,width:o,height:l,radius:c}),[a,s,o,l,c]),D=tv(T,"rectangle-");if(a!==+a||s!==+s||o!==+o||l!==+l||o===0||l===0)return null;var k=Ur("recharts-rectangle",f);if(!m){var P=Us(t),{radius:R}=P,O=DL(P,vre);return N.createElement("path",b2({},O,{radius:typeof c=="number"?c:void 0,className:k,d:IL(a,s,o,l,c)}))}var V=w.current,I=b.current,Q=E.current,W=S.current,J="0px ".concat(n===-1?1:n,"px"),fe="".concat(n,"px 0px"),G=zR(["strokeDasharray"],p,typeof h=="string"?h:void 0);return N.createElement(ev,{animationId:D,key:D,canBegin:n>0,duration:p,easing:h,isActive:m,begin:g},se=>{var ge=Bi(V,o,se),ye=Bi(I,l,se),_e=Bi(Q,a,se),Z=Bi(W,s,se);r.current&&(w.current=ge,b.current=ye,E.current=_e,S.current=Z);var L;y?se>0?L={transition:G,strokeDasharray:fe}:L={strokeDasharray:J}:L={strokeDasharray:fe};var j=Us(t),{radius:K}=j,q=DL(j,mre);return N.createElement("path",b2({},q,{radius:typeof c=="number"?c:void 0,className:k,d:IL(_e,Z,ge,ye,c),ref:r,style:LL(LL({},L),t.style)}))})};function YR(e){var{cx:t,cy:r,radius:n,startAngle:i,endAngle:a}=e,s=Vi(t,r,n,i),o=Vi(t,r,n,a);return{points:[s,o],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function c_(){return c_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},c_.apply(null,arguments)}var Cre=(e,t)=>{var r=Ca(t-e),n=Math.min(Math.abs(t-e),359.999);return r*n},Om=e=>{var{cx:t,cy:r,radius:n,angle:i,sign:a,isExternal:s,cornerRadius:o,cornerIsExternal:l}=e,c=o*(s?1:-1)+n,f=Math.asin(o/c)/m2,h=l?i:i+a*f,p=Vi(t,r,c,h),g=Vi(t,r,n,h),y=l?i-a*f:i,m=Vi(t,r,c*Math.cos(f*m2),y);return{center:p,circleTangency:g,lineTangency:m,theta:f}},$R=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:i,startAngle:a,endAngle:s}=e,o=Cre(a,s),l=a+o,c=Vi(t,r,i,a),f=Vi(t,r,i,l),h="M ".concat(c.x,",").concat(c.y,`
    A `).concat(i,",").concat(i,`,0,
    `).concat(+(Math.abs(o)>180),",").concat(+(a>l),`,
    `).concat(f.x,",").concat(f.y,`
  `);if(n>0){var p=Vi(t,r,n,a),g=Vi(t,r,n,l);h+="L ".concat(g.x,",").concat(g.y,`
            A `).concat(n,",").concat(n,`,0,
            `).concat(+(Math.abs(o)>180),",").concat(+(a<=l),`,
            `).concat(p.x,",").concat(p.y," Z")}else h+="L ".concat(t,",").concat(r," Z");return h},Ere=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:i,cornerRadius:a,forceCornerRadius:s,cornerIsExternal:o,startAngle:l,endAngle:c}=e,f=Ca(c-l),{circleTangency:h,lineTangency:p,theta:g}=Om({cx:t,cy:r,radius:i,angle:l,sign:f,cornerRadius:a,cornerIsExternal:o}),{circleTangency:y,lineTangency:m,theta:w}=Om({cx:t,cy:r,radius:i,angle:c,sign:-f,cornerRadius:a,cornerIsExternal:o}),b=o?Math.abs(l-c):Math.abs(l-c)-g-w;if(b<0)return s?"M ".concat(p.x,",").concat(p.y,`
        a`).concat(a,",").concat(a,",0,0,1,").concat(a*2,`,0
        a`).concat(a,",").concat(a,",0,0,1,").concat(-a*2,`,0
      `):$R({cx:t,cy:r,innerRadius:n,outerRadius:i,startAngle:l,endAngle:c});var E="M ".concat(p.x,",").concat(p.y,`
    A`).concat(a,",").concat(a,",0,0,").concat(+(f<0),",").concat(h.x,",").concat(h.y,`
    A`).concat(i,",").concat(i,",0,").concat(+(b>180),",").concat(+(f<0),",").concat(y.x,",").concat(y.y,`
    A`).concat(a,",").concat(a,",0,0,").concat(+(f<0),",").concat(m.x,",").concat(m.y,`
  `);if(n>0){var{circleTangency:S,lineTangency:T,theta:D}=Om({cx:t,cy:r,radius:n,angle:l,sign:f,isExternal:!0,cornerRadius:a,cornerIsExternal:o}),{circleTangency:k,lineTangency:P,theta:R}=Om({cx:t,cy:r,radius:n,angle:c,sign:-f,isExternal:!0,cornerRadius:a,cornerIsExternal:o}),O=o?Math.abs(l-c):Math.abs(l-c)-D-R;if(O<0&&a===0)return"".concat(E,"L").concat(t,",").concat(r,"Z");E+="L".concat(P.x,",").concat(P.y,`
      A`).concat(a,",").concat(a,",0,0,").concat(+(f<0),",").concat(k.x,",").concat(k.y,`
      A`).concat(n,",").concat(n,",0,").concat(+(O>180),",").concat(+(f>0),",").concat(S.x,",").concat(S.y,`
      A`).concat(a,",").concat(a,",0,0,").concat(+(f<0),",").concat(T.x,",").concat(T.y,"Z")}else E+="L".concat(t,",").concat(r,"Z");return E},_re={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},XR=e=>{var t=Xa(e,_re),{cx:r,cy:n,innerRadius:i,outerRadius:a,cornerRadius:s,forceCornerRadius:o,cornerIsExternal:l,startAngle:c,endAngle:f,className:h}=t;if(a<i||c===f)return null;var p=Ur("recharts-sector",h),g=a-i,y=us(s,g,0,!0),m;return y>0&&Math.abs(c-f)<360?m=Ere({cx:r,cy:n,innerRadius:i,outerRadius:a,cornerRadius:Math.min(y,g/2),forceCornerRadius:o,cornerIsExternal:l,startAngle:c,endAngle:f}):m=$R({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:c,endAngle:f}),N.createElement("path",c_({},Us(t),{className:p,d:m}))};function Sre(e,t,r){var n,i,a,s;if(e==="horizontal")n=t.x,a=n,i=r.top,s=r.top+r.height;else if(e==="vertical")i=t.y,s=i,n=r.left,a=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var{cx:o,cy:l,innerRadius:c,outerRadius:f,angle:h}=t,p=Vi(o,l,c,h),g=Vi(o,l,f,h);n=p.x,i=p.y,a=g.x,s=g.y}else return YR(t);return[{x:n,y:i},{x:a,y:s}]}var C5={},E5={},_5={},ML;function Fre(){return ML||(ML=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ZQ();function r(n){return t.isSymbol(n)?NaN:Number(n)}e.toNumber=r})(_5)),_5}var PL;function Tre(){return PL||(PL=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Fre();function r(n){return n?(n=t.toNumber(n),n===1/0||n===-1/0?(n<0?-1:1)*Number.MAX_VALUE:n===n?n:0):n===0?n:0}e.toFinite=r})(E5)),E5}var kL;function Ore(){return kL||(kL=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=eR(),r=Tre();function n(i,a,s){s&&typeof s!="number"&&t.isIterateeCall(i,a,s)&&(a=s=void 0),i=r.toFinite(i),a===void 0?(a=i,i=0):a=r.toFinite(a),s=s===void 0?i<a?1:-1:r.toFinite(s);const o=Math.max(Math.ceil((a-i)/(s||1)),0),l=new Array(o);for(let c=0;c<o;c++)l[c]=i,i+=s;return l}e.range=n})(C5)),C5}var S5,QL;function Ure(){return QL||(QL=1,S5=Ore().range),S5}var Nre=Ure();const JR=sl(Nre);function Af(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Lre(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function vS(e){let t,r,n;e.length!==2?(t=Af,r=(o,l)=>Af(e(o),l),n=(o,l)=>e(o)-l):(t=e===Af||e===Lre?e:Dre,r=e,n=e);function i(o,l,c=0,f=o.length){if(c<f){if(t(l,l)!==0)return f;do{const h=c+f>>>1;r(o[h],l)<0?c=h+1:f=h}while(c<f)}return c}function a(o,l,c=0,f=o.length){if(c<f){if(t(l,l)!==0)return f;do{const h=c+f>>>1;r(o[h],l)<=0?c=h+1:f=h}while(c<f)}return c}function s(o,l,c=0,f=o.length){const h=i(o,l,c,f-1);return h>c&&n(o[h-1],l)>-n(o[h],l)?h-1:h}return{left:i,center:s,right:a}}function Dre(){return 0}function ZR(e){return e===null?NaN:+e}function*Ire(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const Mre=vS(Af),rv=Mre.right;vS(ZR).center;class RL extends Map{constructor(t,r=Qre){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(jL(this,t))}has(t){return super.has(jL(this,t))}set(t,r){return super.set(Pre(this,t),r)}delete(t){return super.delete(kre(this,t))}}function jL({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function Pre({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function kre({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function Qre(e){return e!==null&&typeof e=="object"?e.valueOf():e}function Rre(e=Af){if(e===Af)return e7;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function e7(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const jre=Math.sqrt(50),Hre=Math.sqrt(10),Kre=Math.sqrt(2);function B2(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),s=a>=jre?10:a>=Hre?5:a>=Kre?2:1;let o,l,c;return i<0?(c=Math.pow(10,-i)/s,o=Math.round(e*c),l=Math.round(t*c),o/c<e&&++o,l/c>t&&--l,c=-c):(c=Math.pow(10,i)*s,o=Math.round(e/c),l=Math.round(t/c),o*c<e&&++o,l*c>t&&--l),l<o&&.5<=r&&r<2?B2(e,t,r*2):[o,l,c]}function u_(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,a,s]=n?B2(t,e,r):B2(e,t,r);if(!(a>=i))return[];const o=a-i+1,l=new Array(o);if(n)if(s<0)for(let c=0;c<o;++c)l[c]=(a-c)/-s;else for(let c=0;c<o;++c)l[c]=(a-c)*s;else if(s<0)for(let c=0;c<o;++c)l[c]=(i+c)/-s;else for(let c=0;c<o;++c)l[c]=(i+c)*s;return l}function f_(e,t,r){return t=+t,e=+e,r=+r,B2(e,t,r)[2]}function h_(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?f_(t,e,r):f_(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function HL(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function KL(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function t7(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?e7:Rre(i);n>r;){if(n-r>600){const l=n-r+1,c=t-r+1,f=Math.log(l),h=.5*Math.exp(2*f/3),p=.5*Math.sqrt(f*h*(l-h)/l)*(c-l/2<0?-1:1),g=Math.max(r,Math.floor(t-c*h/l+p)),y=Math.min(n,Math.floor(t+(l-c)*h/l+p));t7(e,t,g,y,i)}const a=e[t];let s=r,o=n;for(fp(e,r,t),i(e[n],a)>0&&fp(e,r,n);s<o;){for(fp(e,s,o),++s,--o;i(e[s],a)<0;)++s;for(;i(e[o],a)>0;)--o}i(e[r],a)===0?fp(e,r,o):(++o,fp(e,o,n)),o<=t&&(r=o+1),t<=o&&(n=o-1)}return e}function fp(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function zre(e,t,r){if(e=Float64Array.from(Ire(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return KL(e);if(t>=1)return HL(e);var n,i=(n-1)*t,a=Math.floor(i),s=HL(t7(e,a).subarray(0,a+1)),o=KL(e.subarray(a+1));return s+(o-s)*(i-a)}}function Vre(e,t,r=ZR){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),s=+r(e[a],a,e),o=+r(e[a+1],a+1,e);return s+(o-s)*(i-a)}}function Gre(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n<i;)a[n]=e+n*r;return a}function wA(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function nu(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const d_=Symbol("implicit");function mS(){var e=new RL,t=[],r=[],n=d_;function i(a){let s=e.get(a);if(s===void 0){if(n!==d_)return n;e.set(a,s=t.push(a)-1)}return r[s%r.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new RL;for(const s of a)e.has(s)||e.set(s,t.push(s)-1);return i},i.range=function(a){return arguments.length?(r=Array.from(a),i):r.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return mS(t,r).unknown(n)},wA.apply(i,arguments),i}function yS(){var e=mS().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,s,o=!1,l=0,c=0,f=.5;delete e.unknown;function h(){var p=t().length,g=i<n,y=g?i:n,m=g?n:i;a=(m-y)/Math.max(1,p-l+c*2),o&&(a=Math.floor(a)),y+=(m-y-a*(p-l))*f,s=a*(1-l),o&&(y=Math.round(y),s=Math.round(s));var w=Gre(p).map(function(b){return y+a*b});return r(g?w.reverse():w)}return e.domain=function(p){return arguments.length?(t(p),h()):t()},e.range=function(p){return arguments.length?([n,i]=p,n=+n,i=+i,h()):[n,i]},e.rangeRound=function(p){return[n,i]=p,n=+n,i=+i,o=!0,h()},e.bandwidth=function(){return s},e.step=function(){return a},e.round=function(p){return arguments.length?(o=!!p,h()):o},e.padding=function(p){return arguments.length?(l=Math.min(1,c=+p),h()):l},e.paddingInner=function(p){return arguments.length?(l=Math.min(1,p),h()):l},e.paddingOuter=function(p){return arguments.length?(c=+p,h()):c},e.align=function(p){return arguments.length?(f=Math.max(0,Math.min(1,p)),h()):f},e.copy=function(){return yS(t(),[n,i]).round(o).paddingInner(l).paddingOuter(c).align(f)},wA.apply(h(),arguments)}function r7(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return r7(t())},e}function qre(){return r7(yS.apply(null,arguments).paddingInner(1))}function wS(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function n7(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function nv(){}var v1=.7,C2=1/v1,O0="\\s*([+-]?\\d+)\\s*",m1="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Hl="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Wre=/^#([0-9a-f]{3,8})$/,Yre=new RegExp(`^rgb\\(${O0},${O0},${O0}\\)$`),$re=new RegExp(`^rgb\\(${Hl},${Hl},${Hl}\\)$`),Xre=new RegExp(`^rgba\\(${O0},${O0},${O0},${m1}\\)$`),Jre=new RegExp(`^rgba\\(${Hl},${Hl},${Hl},${m1}\\)$`),Zre=new RegExp(`^hsl\\(${m1},${Hl},${Hl}\\)$`),ene=new RegExp(`^hsla\\(${m1},${Hl},${Hl},${m1}\\)$`),zL={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};wS(nv,y1,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:VL,formatHex:VL,formatHex8:tne,formatHsl:rne,formatRgb:GL,toString:GL});function VL(){return this.rgb().formatHex()}function tne(){return this.rgb().formatHex8()}function rne(){return i7(this).formatHsl()}function GL(){return this.rgb().formatRgb()}function y1(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Wre.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?qL(t):r===3?new to(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Um(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Um(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Yre.exec(e))?new to(t[1],t[2],t[3],1):(t=$re.exec(e))?new to(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Xre.exec(e))?Um(t[1],t[2],t[3],t[4]):(t=Jre.exec(e))?Um(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Zre.exec(e))?$L(t[1],t[2]/100,t[3]/100,1):(t=ene.exec(e))?$L(t[1],t[2]/100,t[3]/100,t[4]):zL.hasOwnProperty(e)?qL(zL[e]):e==="transparent"?new to(NaN,NaN,NaN,0):null}function qL(e){return new to(e>>16&255,e>>8&255,e&255,1)}function Um(e,t,r,n){return n<=0&&(e=t=r=NaN),new to(e,t,r,n)}function nne(e){return e instanceof nv||(e=y1(e)),e?(e=e.rgb(),new to(e.r,e.g,e.b,e.opacity)):new to}function g_(e,t,r,n){return arguments.length===1?nne(e):new to(e,t,r,n??1)}function to(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}wS(to,g_,n7(nv,{brighter(e){return e=e==null?C2:Math.pow(C2,e),new to(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?v1:Math.pow(v1,e),new to(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new to(_h(this.r),_h(this.g),_h(this.b),E2(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:WL,formatHex:WL,formatHex8:ine,formatRgb:YL,toString:YL}));function WL(){return`#${mh(this.r)}${mh(this.g)}${mh(this.b)}`}function ine(){return`#${mh(this.r)}${mh(this.g)}${mh(this.b)}${mh((isNaN(this.opacity)?1:this.opacity)*255)}`}function YL(){const e=E2(this.opacity);return`${e===1?"rgb(":"rgba("}${_h(this.r)}, ${_h(this.g)}, ${_h(this.b)}${e===1?")":`, ${e})`}`}function E2(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function _h(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function mh(e){return e=_h(e),(e<16?"0":"")+e.toString(16)}function $L(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new el(e,t,r,n)}function i7(e){if(e instanceof el)return new el(e.h,e.s,e.l,e.opacity);if(e instanceof nv||(e=y1(e)),!e)return new el;if(e instanceof el)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),s=NaN,o=a-i,l=(a+i)/2;return o?(t===a?s=(r-n)/o+(r<n)*6:r===a?s=(n-t)/o+2:s=(t-r)/o+4,o/=l<.5?a+i:2-a-i,s*=60):o=l>0&&l<1?0:s,new el(s,o,l,e.opacity)}function ane(e,t,r,n){return arguments.length===1?i7(e):new el(e,t,r,n??1)}function el(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}wS(el,ane,n7(nv,{brighter(e){return e=e==null?C2:Math.pow(C2,e),new el(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?v1:Math.pow(v1,e),new el(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new to(F5(e>=240?e-240:e+120,i,n),F5(e,i,n),F5(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new el(XL(this.h),Nm(this.s),Nm(this.l),E2(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=E2(this.opacity);return`${e===1?"hsl(":"hsla("}${XL(this.h)}, ${Nm(this.s)*100}%, ${Nm(this.l)*100}%${e===1?")":`, ${e})`}`}}));function XL(e){return e=(e||0)%360,e<0?e+360:e}function Nm(e){return Math.max(0,Math.min(1,e||0))}function F5(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const xS=e=>()=>e;function sne(e,t){return function(r){return e+r*t}}function one(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function Ane(e){return(e=+e)==1?a7:function(t,r){return r-t?one(t,r,e):xS(isNaN(t)?r:t)}}function a7(e,t){var r=t-e;return r?sne(e,r):xS(isNaN(e)?t:e)}const JL=(function e(t){var r=Ane(t);function n(i,a){var s=r((i=g_(i)).r,(a=g_(a)).r),o=r(i.g,a.g),l=r(i.b,a.b),c=a7(i.opacity,a.opacity);return function(f){return i.r=s(f),i.g=o(f),i.b=l(f),i.opacity=c(f),i+""}}return n.gamma=e,n})(1);function lne(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=e[i]*(1-a)+t[i]*a;return n}}function cne(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function une(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),s;for(s=0;s<n;++s)i[s]=og(e[s],t[s]);for(;s<r;++s)a[s]=t[s];return function(o){for(s=0;s<n;++s)a[s]=i[s](o);return a}}function fne(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function _2(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function hne(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=og(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var p_=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,T5=new RegExp(p_.source,"g");function dne(e){return function(){return e}}function gne(e){return function(t){return e(t)+""}}function pne(e,t){var r=p_.lastIndex=T5.lastIndex=0,n,i,a,s=-1,o=[],l=[];for(e=e+"",t=t+"";(n=p_.exec(e))&&(i=T5.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),o[s]?o[s]+=a:o[++s]=a),(n=n[0])===(i=i[0])?o[s]?o[s]+=i:o[++s]=i:(o[++s]=null,l.push({i:s,x:_2(n,i)})),r=T5.lastIndex;return r<t.length&&(a=t.slice(r),o[s]?o[s]+=a:o[++s]=a),o.length<2?l[0]?gne(l[0].x):dne(t):(t=l.length,function(c){for(var f=0,h;f<t;++f)o[(h=l[f]).i]=h.x(c);return o.join("")})}function og(e,t){var r=typeof t,n;return t==null||r==="boolean"?xS(t):(r==="number"?_2:r==="string"?(n=y1(t))?(t=n,JL):pne:t instanceof y1?JL:t instanceof Date?fne:cne(t)?lne:Array.isArray(t)?une:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?hne:_2)(e,t)}function bS(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function vne(e,t){t===void 0&&(t=e,e=og);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(s){var o=Math.max(0,Math.min(n-1,Math.floor(s*=n)));return a[o](s-o)}}function mne(e){return function(){return e}}function S2(e){return+e}var ZL=[0,1];function Ss(e){return e}function v_(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:mne(isNaN(t)?NaN:.5)}function yne(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function wne(e,t,r){var n=e[0],i=e[1],a=t[0],s=t[1];return i<n?(n=v_(i,n),a=r(s,a)):(n=v_(n,i),a=r(a,s)),function(o){return a(n(o))}}function xne(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),a=new Array(n),s=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<n;)i[s]=v_(e[s],e[s+1]),a[s]=r(t[s],t[s+1]);return function(o){var l=rv(e,o,1,n)-1;return a[l](i[l](o))}}function iv(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function nx(){var e=ZL,t=ZL,r=og,n,i,a,s=Ss,o,l,c;function f(){var p=Math.min(e.length,t.length);return s!==Ss&&(s=yne(e[0],e[p-1])),o=p>2?xne:wne,l=c=null,h}function h(p){return p==null||isNaN(p=+p)?a:(l||(l=o(e.map(n),t,r)))(n(s(p)))}return h.invert=function(p){return s(i((c||(c=o(t,e.map(n),_2)))(p)))},h.domain=function(p){return arguments.length?(e=Array.from(p,S2),f()):e.slice()},h.range=function(p){return arguments.length?(t=Array.from(p),f()):t.slice()},h.rangeRound=function(p){return t=Array.from(p),r=bS,f()},h.clamp=function(p){return arguments.length?(s=p?!0:Ss,f()):s!==Ss},h.interpolate=function(p){return arguments.length?(r=p,f()):r},h.unknown=function(p){return arguments.length?(a=p,h):a},function(p,g){return n=p,i=g,f()}}function BS(){return nx()(Ss,Ss)}function bne(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function F2(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function V0(e){return e=F2(Math.abs(e)),e?e[1]:NaN}function Bne(e,t){return function(r,n){for(var i=r.length,a=[],s=0,o=e[0],l=0;i>0&&o>0&&(l+o+1>n&&(o=Math.max(1,n-l)),a.push(r.substring(i-=o,i+o)),!((l+=o+1)>n));)o=e[s=(s+1)%e.length];return a.reverse().join(t)}}function Cne(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var Ene=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function w1(e){if(!(t=Ene.exec(e)))throw new Error("invalid format: "+e);var t;return new CS({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}w1.prototype=CS.prototype;function CS(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}CS.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function _ne(e){e:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var s7;function Sne(e,t){var r=F2(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(s7=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,s=n.length;return a===s?n:a>s?n+new Array(a-s+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+F2(e,Math.max(0,t+a-1))[0]}function eD(e,t){var r=F2(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const tD={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:bne,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>eD(e*100,t),r:eD,s:Sne,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function rD(e){return e}var nD=Array.prototype.map,iD=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Fne(e){var t=e.grouping===void 0||e.thousands===void 0?rD:Bne(nD.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?rD:Cne(nD.call(e.numerals,String)),s=e.percent===void 0?"%":e.percent+"",o=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(h){h=w1(h);var p=h.fill,g=h.align,y=h.sign,m=h.symbol,w=h.zero,b=h.width,E=h.comma,S=h.precision,T=h.trim,D=h.type;D==="n"?(E=!0,D="g"):tD[D]||(S===void 0&&(S=12),T=!0,D="g"),(w||p==="0"&&g==="=")&&(w=!0,p="0",g="=");var k=m==="$"?r:m==="#"&&/[boxX]/.test(D)?"0"+D.toLowerCase():"",P=m==="$"?n:/[%p]/.test(D)?s:"",R=tD[D],O=/[defgprs%]/.test(D);S=S===void 0?6:/[gprs]/.test(D)?Math.max(1,Math.min(21,S)):Math.max(0,Math.min(20,S));function V(I){var Q=k,W=P,J,fe,G;if(D==="c")W=R(I)+W,I="";else{I=+I;var se=I<0||1/I<0;if(I=isNaN(I)?l:R(Math.abs(I),S),T&&(I=_ne(I)),se&&+I==0&&y!=="+"&&(se=!1),Q=(se?y==="("?y:o:y==="-"||y==="("?"":y)+Q,W=(D==="s"?iD[8+s7/3]:"")+W+(se&&y==="("?")":""),O){for(J=-1,fe=I.length;++J<fe;)if(G=I.charCodeAt(J),48>G||G>57){W=(G===46?i+I.slice(J+1):I.slice(J))+W,I=I.slice(0,J);break}}}E&&!w&&(I=t(I,1/0));var ge=Q.length+I.length+W.length,ye=ge<b?new Array(b-ge+1).join(p):"";switch(E&&w&&(I=t(ye+I,ye.length?b-W.length:1/0),ye=""),g){case"<":I=Q+I+W+ye;break;case"=":I=Q+ye+I+W;break;case"^":I=ye.slice(0,ge=ye.length>>1)+Q+I+W+ye.slice(ge);break;default:I=ye+Q+I+W;break}return a(I)}return V.toString=function(){return h+""},V}function f(h,p){var g=c((h=w1(h),h.type="f",h)),y=Math.max(-8,Math.min(8,Math.floor(V0(p)/3)))*3,m=Math.pow(10,-y),w=iD[8+y/3];return function(b){return g(m*b)+w}}return{format:c,formatPrefix:f}}var Lm,ES,o7;Tne({thousands:",",grouping:[3],currency:["$",""]});function Tne(e){return Lm=Fne(e),ES=Lm.format,o7=Lm.formatPrefix,Lm}function One(e){return Math.max(0,-V0(Math.abs(e)))}function Une(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(V0(t)/3)))*3-V0(Math.abs(e)))}function Nne(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,V0(t)-V0(e))+1}function A7(e,t,r,n){var i=h_(e,t,r),a;switch(n=w1(n??",f"),n.type){case"s":{var s=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=Une(i,s))&&(n.precision=a),o7(n,s)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=Nne(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=One(i))&&(n.precision=a-(n.type==="%")*2);break}}return ES(n)}function Sf(e){var t=e.domain;return e.ticks=function(r){var n=t();return u_(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return A7(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,s=n[i],o=n[a],l,c,f=10;for(o<s&&(c=s,s=o,o=c,c=i,i=a,a=c);f-- >0;){if(c=f_(s,o,r),c===l)return n[i]=s,n[a]=o,t(n);if(c>0)s=Math.floor(s/c)*c,o=Math.ceil(o/c)*c;else if(c<0)s=Math.ceil(s*c)/c,o=Math.floor(o*c)/c;else break;l=c}return e},e}function l7(){var e=BS();return e.copy=function(){return iv(e,l7())},wA.apply(e,arguments),Sf(e)}function c7(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,S2),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return c7(e).unknown(t)},e=arguments.length?Array.from(e,S2):[0,1],Sf(r)}function u7(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],s;return a<i&&(s=r,r=n,n=s,s=i,i=a,a=s),e[r]=t.floor(i),e[n]=t.ceil(a),e}function aD(e){return Math.log(e)}function sD(e){return Math.exp(e)}function Lne(e){return-Math.log(-e)}function Dne(e){return-Math.exp(-e)}function Ine(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Mne(e){return e===10?Ine:e===Math.E?Math.exp:t=>Math.pow(e,t)}function Pne(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function oD(e){return(t,r)=>-e(-t,r)}function _S(e){const t=e(aD,sD),r=t.domain;let n=10,i,a;function s(){return i=Pne(n),a=Mne(n),r()[0]<0?(i=oD(i),a=oD(a),e(Lne,Dne)):e(aD,sD),t}return t.base=function(o){return arguments.length?(n=+o,s()):n},t.domain=function(o){return arguments.length?(r(o),s()):r()},t.ticks=o=>{const l=r();let c=l[0],f=l[l.length-1];const h=f<c;h&&([c,f]=[f,c]);let p=i(c),g=i(f),y,m;const w=o==null?10:+o;let b=[];if(!(n%1)&&g-p<w){if(p=Math.floor(p),g=Math.ceil(g),c>0){for(;p<=g;++p)for(y=1;y<n;++y)if(m=p<0?y/a(-p):y*a(p),!(m<c)){if(m>f)break;b.push(m)}}else for(;p<=g;++p)for(y=n-1;y>=1;--y)if(m=p>0?y/a(-p):y*a(p),!(m<c)){if(m>f)break;b.push(m)}b.length*2<w&&(b=u_(c,f,w))}else b=u_(p,g,Math.min(g-p,w)).map(a);return h?b.reverse():b},t.tickFormat=(o,l)=>{if(o==null&&(o=10),l==null&&(l=n===10?"s":","),typeof l!="function"&&(!(n%1)&&(l=w1(l)).precision==null&&(l.trim=!0),l=ES(l)),o===1/0)return l;const c=Math.max(1,n*o/t.ticks().length);return f=>{let h=f/a(Math.round(i(f)));return h*n<n-.5&&(h*=n),h<=c?l(f):""}},t.nice=()=>r(u7(r(),{floor:o=>a(Math.floor(i(o))),ceil:o=>a(Math.ceil(i(o)))})),t}function f7(){const e=_S(nx()).domain([1,10]);return e.copy=()=>iv(e,f7()).base(e.base()),wA.apply(e,arguments),e}function AD(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function lD(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function SS(e){var t=1,r=e(AD(t),lD(t));return r.constant=function(n){return arguments.length?e(AD(t=+n),lD(t)):t},Sf(r)}function h7(){var e=SS(nx());return e.copy=function(){return iv(e,h7()).constant(e.constant())},wA.apply(e,arguments)}function cD(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function kne(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Qne(e){return e<0?-e*e:e*e}function FS(e){var t=e(Ss,Ss),r=1;function n(){return r===1?e(Ss,Ss):r===.5?e(kne,Qne):e(cD(r),cD(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},Sf(t)}function TS(){var e=FS(nx());return e.copy=function(){return iv(e,TS()).exponent(e.exponent())},wA.apply(e,arguments),e}function Rne(){return TS.apply(null,arguments).exponent(.5)}function uD(e){return Math.sign(e)*e*e}function jne(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function d7(){var e=BS(),t=[0,1],r=!1,n;function i(a){var s=jne(e(a));return isNaN(s)?n:r?Math.round(s):s}return i.invert=function(a){return e.invert(uD(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,S2)).map(uD)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return d7(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},wA.apply(i,arguments),Sf(i)}function g7(){var e=[],t=[],r=[],n;function i(){var s=0,o=Math.max(1,t.length);for(r=new Array(o-1);++s<o;)r[s-1]=Vre(e,s/o);return a}function a(s){return s==null||isNaN(s=+s)?n:t[rv(r,s)]}return a.invertExtent=function(s){var o=t.indexOf(s);return o<0?[NaN,NaN]:[o>0?r[o-1]:e[0],o<r.length?r[o]:e[e.length-1]]},a.domain=function(s){if(!arguments.length)return e.slice();e=[];for(let o of s)o!=null&&!isNaN(o=+o)&&e.push(o);return e.sort(Af),i()},a.range=function(s){return arguments.length?(t=Array.from(s),i()):t.slice()},a.unknown=function(s){return arguments.length?(n=s,a):n},a.quantiles=function(){return r.slice()},a.copy=function(){return g7().domain(e).range(t).unknown(n)},wA.apply(a,arguments)}function p7(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function s(l){return l!=null&&l<=l?i[rv(n,l,0,r)]:a}function o(){var l=-1;for(n=new Array(r);++l<r;)n[l]=((l+1)*t-(l-r)*e)/(r+1);return s}return s.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,o()):[e,t]},s.range=function(l){return arguments.length?(r=(i=Array.from(l)).length-1,o()):i.slice()},s.invertExtent=function(l){var c=i.indexOf(l);return c<0?[NaN,NaN]:c<1?[e,n[0]]:c>=r?[n[r-1],t]:[n[c-1],n[c]]},s.unknown=function(l){return arguments.length&&(a=l),s},s.thresholds=function(){return n.slice()},s.copy=function(){return p7().domain([e,t]).range(i).unknown(a)},wA.apply(Sf(s),arguments)}function v7(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[rv(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var s=t.indexOf(a);return[e[s-1],e[s]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return v7().domain(e).range(t).unknown(r)},wA.apply(i,arguments)}const O5=new Date,U5=new Date;function la(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const s=i(a),o=i.ceil(a);return a-s<o-a?s:o},i.offset=(a,s)=>(t(a=new Date(+a),s==null?1:Math.floor(s)),a),i.range=(a,s,o)=>{const l=[];if(a=i.ceil(a),o=o==null?1:Math.floor(o),!(a<s)||!(o>0))return l;let c;do l.push(c=new Date(+a)),t(a,o),e(a);while(c<a&&a<s);return l},i.filter=a=>la(s=>{if(s>=s)for(;e(s),!a(s);)s.setTime(s-1)},(s,o)=>{if(s>=s)if(o<0)for(;++o<=0;)for(;t(s,-1),!a(s););else for(;--o>=0;)for(;t(s,1),!a(s););}),r&&(i.count=(a,s)=>(O5.setTime(+a),U5.setTime(+s),e(O5),e(U5),Math.floor(r(O5,U5))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?s=>n(s)%a===0:s=>i.count(0,s)%a===0):i)),i}const T2=la(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);T2.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?la(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):T2);T2.range;const Dc=1e3,fA=Dc*60,Ic=fA*60,qc=Ic*24,OS=qc*7,fD=qc*30,N5=qc*365,yh=la(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Dc)},(e,t)=>(t-e)/Dc,e=>e.getUTCSeconds());yh.range;const US=la(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Dc)},(e,t)=>{e.setTime(+e+t*fA)},(e,t)=>(t-e)/fA,e=>e.getMinutes());US.range;const NS=la(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*fA)},(e,t)=>(t-e)/fA,e=>e.getUTCMinutes());NS.range;const LS=la(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Dc-e.getMinutes()*fA)},(e,t)=>{e.setTime(+e+t*Ic)},(e,t)=>(t-e)/Ic,e=>e.getHours());LS.range;const DS=la(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Ic)},(e,t)=>(t-e)/Ic,e=>e.getUTCHours());DS.range;const av=la(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*fA)/qc,e=>e.getDate()-1);av.range;const ix=la(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/qc,e=>e.getUTCDate()-1);ix.range;const m7=la(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/qc,e=>Math.floor(e/qc));m7.range;function Xh(e){return la(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*fA)/OS)}const ax=Xh(0),O2=Xh(1),Hne=Xh(2),Kne=Xh(3),G0=Xh(4),zne=Xh(5),Vne=Xh(6);ax.range;O2.range;Hne.range;Kne.range;G0.range;zne.range;Vne.range;function Jh(e){return la(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/OS)}const sx=Jh(0),U2=Jh(1),Gne=Jh(2),qne=Jh(3),q0=Jh(4),Wne=Jh(5),Yne=Jh(6);sx.range;U2.range;Gne.range;qne.range;q0.range;Wne.range;Yne.range;const IS=la(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());IS.range;const MS=la(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());MS.range;const Wc=la(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Wc.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:la(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});Wc.range;const Yc=la(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Yc.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:la(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});Yc.range;function y7(e,t,r,n,i,a){const s=[[yh,1,Dc],[yh,5,5*Dc],[yh,15,15*Dc],[yh,30,30*Dc],[a,1,fA],[a,5,5*fA],[a,15,15*fA],[a,30,30*fA],[i,1,Ic],[i,3,3*Ic],[i,6,6*Ic],[i,12,12*Ic],[n,1,qc],[n,2,2*qc],[r,1,OS],[t,1,fD],[t,3,3*fD],[e,1,N5]];function o(c,f,h){const p=f<c;p&&([c,f]=[f,c]);const g=h&&typeof h.range=="function"?h:l(c,f,h),y=g?g.range(c,+f+1):[];return p?y.reverse():y}function l(c,f,h){const p=Math.abs(f-c)/h,g=vS(([,,w])=>w).right(s,p);if(g===s.length)return e.every(h_(c/N5,f/N5,h));if(g===0)return T2.every(Math.max(h_(c,f,h),1));const[y,m]=s[p/s[g-1][2]<s[g][2]/p?g-1:g];return y.every(m)}return[o,l]}const[$ne,Xne]=y7(Yc,MS,sx,m7,DS,NS),[Jne,Zne]=y7(Wc,IS,ax,av,LS,US);function L5(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function D5(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function hp(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function eie(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,s=e.shortDays,o=e.months,l=e.shortMonths,c=dp(i),f=gp(i),h=dp(a),p=gp(a),g=dp(s),y=gp(s),m=dp(o),w=gp(o),b=dp(l),E=gp(l),S={a:se,A:ge,b:ye,B:_e,c:null,d:mD,e:mD,f:Bie,g:Lie,G:Iie,H:wie,I:xie,j:bie,L:w7,m:Cie,M:Eie,p:Z,q:L,Q:xD,s:bD,S:_ie,u:Sie,U:Fie,V:Tie,w:Oie,W:Uie,x:null,X:null,y:Nie,Y:Die,Z:Mie,"%":wD},T={a:j,A:K,b:q,B:re,c:null,d:yD,e:yD,f:Rie,g:$ie,G:Jie,H:Pie,I:kie,j:Qie,L:b7,m:jie,M:Hie,p:he,q:Be,Q:xD,s:bD,S:Kie,u:zie,U:Vie,V:Gie,w:qie,W:Wie,x:null,X:null,y:Yie,Y:Xie,Z:Zie,"%":wD},D={a:V,A:I,b:Q,B:W,c:J,d:pD,e:pD,f:pie,g:gD,G:dD,H:vD,I:vD,j:fie,L:gie,m:uie,M:hie,p:O,q:cie,Q:mie,s:yie,S:die,u:aie,U:sie,V:oie,w:iie,W:Aie,x:fe,X:G,y:gD,Y:dD,Z:lie,"%":vie};S.x=k(r,S),S.X=k(n,S),S.c=k(t,S),T.x=k(r,T),T.X=k(n,T),T.c=k(t,T);function k(ae,be){return function(ke){var Fe=[],st=-1,Ge=0,le=ae.length,$e,tt,wt;for(ke instanceof Date||(ke=new Date(+ke));++st<le;)ae.charCodeAt(st)===37&&(Fe.push(ae.slice(Ge,st)),(tt=hD[$e=ae.charAt(++st)])!=null?$e=ae.charAt(++st):tt=$e==="e"?" ":"0",(wt=be[$e])&&($e=wt(ke,tt)),Fe.push($e),Ge=st+1);return Fe.push(ae.slice(Ge,st)),Fe.join("")}}function P(ae,be){return function(ke){var Fe=hp(1900,void 0,1),st=R(Fe,ae,ke+="",0),Ge,le;if(st!=ke.length)return null;if("Q"in Fe)return new Date(Fe.Q);if("s"in Fe)return new Date(Fe.s*1e3+("L"in Fe?Fe.L:0));if(be&&!("Z"in Fe)&&(Fe.Z=0),"p"in Fe&&(Fe.H=Fe.H%12+Fe.p*12),Fe.m===void 0&&(Fe.m="q"in Fe?Fe.q:0),"V"in Fe){if(Fe.V<1||Fe.V>53)return null;"w"in Fe||(Fe.w=1),"Z"in Fe?(Ge=D5(hp(Fe.y,0,1)),le=Ge.getUTCDay(),Ge=le>4||le===0?U2.ceil(Ge):U2(Ge),Ge=ix.offset(Ge,(Fe.V-1)*7),Fe.y=Ge.getUTCFullYear(),Fe.m=Ge.getUTCMonth(),Fe.d=Ge.getUTCDate()+(Fe.w+6)%7):(Ge=L5(hp(Fe.y,0,1)),le=Ge.getDay(),Ge=le>4||le===0?O2.ceil(Ge):O2(Ge),Ge=av.offset(Ge,(Fe.V-1)*7),Fe.y=Ge.getFullYear(),Fe.m=Ge.getMonth(),Fe.d=Ge.getDate()+(Fe.w+6)%7)}else("W"in Fe||"U"in Fe)&&("w"in Fe||(Fe.w="u"in Fe?Fe.u%7:"W"in Fe?1:0),le="Z"in Fe?D5(hp(Fe.y,0,1)).getUTCDay():L5(hp(Fe.y,0,1)).getDay(),Fe.m=0,Fe.d="W"in Fe?(Fe.w+6)%7+Fe.W*7-(le+5)%7:Fe.w+Fe.U*7-(le+6)%7);return"Z"in Fe?(Fe.H+=Fe.Z/100|0,Fe.M+=Fe.Z%100,D5(Fe)):L5(Fe)}}function R(ae,be,ke,Fe){for(var st=0,Ge=be.length,le=ke.length,$e,tt;st<Ge;){if(Fe>=le)return-1;if($e=be.charCodeAt(st++),$e===37){if($e=be.charAt(st++),tt=D[$e in hD?be.charAt(st++):$e],!tt||(Fe=tt(ae,ke,Fe))<0)return-1}else if($e!=ke.charCodeAt(Fe++))return-1}return Fe}function O(ae,be,ke){var Fe=c.exec(be.slice(ke));return Fe?(ae.p=f.get(Fe[0].toLowerCase()),ke+Fe[0].length):-1}function V(ae,be,ke){var Fe=g.exec(be.slice(ke));return Fe?(ae.w=y.get(Fe[0].toLowerCase()),ke+Fe[0].length):-1}function I(ae,be,ke){var Fe=h.exec(be.slice(ke));return Fe?(ae.w=p.get(Fe[0].toLowerCase()),ke+Fe[0].length):-1}function Q(ae,be,ke){var Fe=b.exec(be.slice(ke));return Fe?(ae.m=E.get(Fe[0].toLowerCase()),ke+Fe[0].length):-1}function W(ae,be,ke){var Fe=m.exec(be.slice(ke));return Fe?(ae.m=w.get(Fe[0].toLowerCase()),ke+Fe[0].length):-1}function J(ae,be,ke){return R(ae,t,be,ke)}function fe(ae,be,ke){return R(ae,r,be,ke)}function G(ae,be,ke){return R(ae,n,be,ke)}function se(ae){return s[ae.getDay()]}function ge(ae){return a[ae.getDay()]}function ye(ae){return l[ae.getMonth()]}function _e(ae){return o[ae.getMonth()]}function Z(ae){return i[+(ae.getHours()>=12)]}function L(ae){return 1+~~(ae.getMonth()/3)}function j(ae){return s[ae.getUTCDay()]}function K(ae){return a[ae.getUTCDay()]}function q(ae){return l[ae.getUTCMonth()]}function re(ae){return o[ae.getUTCMonth()]}function he(ae){return i[+(ae.getUTCHours()>=12)]}function Be(ae){return 1+~~(ae.getUTCMonth()/3)}return{format:function(ae){var be=k(ae+="",S);return be.toString=function(){return ae},be},parse:function(ae){var be=P(ae+="",!1);return be.toString=function(){return ae},be},utcFormat:function(ae){var be=k(ae+="",T);return be.toString=function(){return ae},be},utcParse:function(ae){var be=P(ae+="",!0);return be.toString=function(){return ae},be}}}var hD={"-":"",_:" ",0:"0"},Sa=/^\s*\d+/,tie=/^%/,rie=/[\\^$*+?|[\]().{}]/g;function Yr(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function nie(e){return e.replace(rie,"\\$&")}function dp(e){return new RegExp("^(?:"+e.map(nie).join("|")+")","i")}function gp(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function iie(e,t,r){var n=Sa.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function aie(e,t,r){var n=Sa.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function sie(e,t,r){var n=Sa.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function oie(e,t,r){var n=Sa.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function Aie(e,t,r){var n=Sa.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function dD(e,t,r){var n=Sa.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function gD(e,t,r){var n=Sa.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function lie(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function cie(e,t,r){var n=Sa.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function uie(e,t,r){var n=Sa.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function pD(e,t,r){var n=Sa.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function fie(e,t,r){var n=Sa.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function vD(e,t,r){var n=Sa.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function hie(e,t,r){var n=Sa.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function die(e,t,r){var n=Sa.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function gie(e,t,r){var n=Sa.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function pie(e,t,r){var n=Sa.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function vie(e,t,r){var n=tie.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function mie(e,t,r){var n=Sa.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function yie(e,t,r){var n=Sa.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function mD(e,t){return Yr(e.getDate(),t,2)}function wie(e,t){return Yr(e.getHours(),t,2)}function xie(e,t){return Yr(e.getHours()%12||12,t,2)}function bie(e,t){return Yr(1+av.count(Wc(e),e),t,3)}function w7(e,t){return Yr(e.getMilliseconds(),t,3)}function Bie(e,t){return w7(e,t)+"000"}function Cie(e,t){return Yr(e.getMonth()+1,t,2)}function Eie(e,t){return Yr(e.getMinutes(),t,2)}function _ie(e,t){return Yr(e.getSeconds(),t,2)}function Sie(e){var t=e.getDay();return t===0?7:t}function Fie(e,t){return Yr(ax.count(Wc(e)-1,e),t,2)}function x7(e){var t=e.getDay();return t>=4||t===0?G0(e):G0.ceil(e)}function Tie(e,t){return e=x7(e),Yr(G0.count(Wc(e),e)+(Wc(e).getDay()===4),t,2)}function Oie(e){return e.getDay()}function Uie(e,t){return Yr(O2.count(Wc(e)-1,e),t,2)}function Nie(e,t){return Yr(e.getFullYear()%100,t,2)}function Lie(e,t){return e=x7(e),Yr(e.getFullYear()%100,t,2)}function Die(e,t){return Yr(e.getFullYear()%1e4,t,4)}function Iie(e,t){var r=e.getDay();return e=r>=4||r===0?G0(e):G0.ceil(e),Yr(e.getFullYear()%1e4,t,4)}function Mie(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Yr(t/60|0,"0",2)+Yr(t%60,"0",2)}function yD(e,t){return Yr(e.getUTCDate(),t,2)}function Pie(e,t){return Yr(e.getUTCHours(),t,2)}function kie(e,t){return Yr(e.getUTCHours()%12||12,t,2)}function Qie(e,t){return Yr(1+ix.count(Yc(e),e),t,3)}function b7(e,t){return Yr(e.getUTCMilliseconds(),t,3)}function Rie(e,t){return b7(e,t)+"000"}function jie(e,t){return Yr(e.getUTCMonth()+1,t,2)}function Hie(e,t){return Yr(e.getUTCMinutes(),t,2)}function Kie(e,t){return Yr(e.getUTCSeconds(),t,2)}function zie(e){var t=e.getUTCDay();return t===0?7:t}function Vie(e,t){return Yr(sx.count(Yc(e)-1,e),t,2)}function B7(e){var t=e.getUTCDay();return t>=4||t===0?q0(e):q0.ceil(e)}function Gie(e,t){return e=B7(e),Yr(q0.count(Yc(e),e)+(Yc(e).getUTCDay()===4),t,2)}function qie(e){return e.getUTCDay()}function Wie(e,t){return Yr(U2.count(Yc(e)-1,e),t,2)}function Yie(e,t){return Yr(e.getUTCFullYear()%100,t,2)}function $ie(e,t){return e=B7(e),Yr(e.getUTCFullYear()%100,t,2)}function Xie(e,t){return Yr(e.getUTCFullYear()%1e4,t,4)}function Jie(e,t){var r=e.getUTCDay();return e=r>=4||r===0?q0(e):q0.ceil(e),Yr(e.getUTCFullYear()%1e4,t,4)}function Zie(){return"+0000"}function wD(){return"%"}function xD(e){return+e}function bD(e){return Math.floor(+e/1e3)}var Zd,C7,E7;eae({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function eae(e){return Zd=eie(e),C7=Zd.format,Zd.parse,E7=Zd.utcFormat,Zd.utcParse,Zd}function tae(e){return new Date(e)}function rae(e){return e instanceof Date?+e:+new Date(+e)}function PS(e,t,r,n,i,a,s,o,l,c){var f=BS(),h=f.invert,p=f.domain,g=c(".%L"),y=c(":%S"),m=c("%I:%M"),w=c("%I %p"),b=c("%a %d"),E=c("%b %d"),S=c("%B"),T=c("%Y");function D(k){return(l(k)<k?g:o(k)<k?y:s(k)<k?m:a(k)<k?w:n(k)<k?i(k)<k?b:E:r(k)<k?S:T)(k)}return f.invert=function(k){return new Date(h(k))},f.domain=function(k){return arguments.length?p(Array.from(k,rae)):p().map(tae)},f.ticks=function(k){var P=p();return e(P[0],P[P.length-1],k??10)},f.tickFormat=function(k,P){return P==null?D:c(P)},f.nice=function(k){var P=p();return(!k||typeof k.range!="function")&&(k=t(P[0],P[P.length-1],k??10)),k?p(u7(P,k)):f},f.copy=function(){return iv(f,PS(e,t,r,n,i,a,s,o,l,c))},f}function nae(){return wA.apply(PS(Jne,Zne,Wc,IS,ax,av,LS,US,yh,C7).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function iae(){return wA.apply(PS($ne,Xne,Yc,MS,sx,ix,DS,NS,yh,E7).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function ox(){var e=0,t=1,r,n,i,a,s=Ss,o=!1,l;function c(h){return h==null||isNaN(h=+h)?l:s(i===0?.5:(h=(a(h)-r)*i,o?Math.max(0,Math.min(1,h)):h))}c.domain=function(h){return arguments.length?([e,t]=h,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),c):[e,t]},c.clamp=function(h){return arguments.length?(o=!!h,c):o},c.interpolator=function(h){return arguments.length?(s=h,c):s};function f(h){return function(p){var g,y;return arguments.length?([g,y]=p,s=h(g,y),c):[s(0),s(1)]}}return c.range=f(og),c.rangeRound=f(bS),c.unknown=function(h){return arguments.length?(l=h,c):l},function(h){return a=h,r=h(e),n=h(t),i=r===n?0:1/(n-r),c}}function Ff(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function _7(){var e=Sf(ox()(Ss));return e.copy=function(){return Ff(e,_7())},nu.apply(e,arguments)}function S7(){var e=_S(ox()).domain([1,10]);return e.copy=function(){return Ff(e,S7()).base(e.base())},nu.apply(e,arguments)}function F7(){var e=SS(ox());return e.copy=function(){return Ff(e,F7()).constant(e.constant())},nu.apply(e,arguments)}function kS(){var e=FS(ox());return e.copy=function(){return Ff(e,kS()).exponent(e.exponent())},nu.apply(e,arguments)}function aae(){return kS.apply(null,arguments).exponent(.5)}function T7(){var e=[],t=Ss;function r(n){if(n!=null&&!isNaN(n=+n))return t((rv(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let i of n)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(Af),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,i)=>t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>zre(e,a/n))},r.copy=function(){return T7(t).domain(e)},nu.apply(r,arguments)}function Ax(){var e=0,t=.5,r=1,n=1,i,a,s,o,l,c=Ss,f,h=!1,p;function g(m){return isNaN(m=+m)?p:(m=.5+((m=+f(m))-a)*(n*m<n*a?o:l),c(h?Math.max(0,Math.min(1,m)):m))}g.domain=function(m){return arguments.length?([e,t,r]=m,i=f(e=+e),a=f(t=+t),s=f(r=+r),o=i===a?0:.5/(a-i),l=a===s?0:.5/(s-a),n=a<i?-1:1,g):[e,t,r]},g.clamp=function(m){return arguments.length?(h=!!m,g):h},g.interpolator=function(m){return arguments.length?(c=m,g):c};function y(m){return function(w){var b,E,S;return arguments.length?([b,E,S]=w,c=vne(m,[b,E,S]),g):[c(0),c(.5),c(1)]}}return g.range=y(og),g.rangeRound=y(bS),g.unknown=function(m){return arguments.length?(p=m,g):p},function(m){return f=m,i=m(e),a=m(t),s=m(r),o=i===a?0:.5/(a-i),l=a===s?0:.5/(s-a),n=a<i?-1:1,g}}function O7(){var e=Sf(Ax()(Ss));return e.copy=function(){return Ff(e,O7())},nu.apply(e,arguments)}function U7(){var e=_S(Ax()).domain([.1,1,10]);return e.copy=function(){return Ff(e,U7()).base(e.base())},nu.apply(e,arguments)}function N7(){var e=SS(Ax());return e.copy=function(){return Ff(e,N7()).constant(e.constant())},nu.apply(e,arguments)}function QS(){var e=FS(Ax());return e.copy=function(){return Ff(e,QS()).exponent(e.exponent())},nu.apply(e,arguments)}function sae(){return QS.apply(null,arguments).exponent(.5)}const Np=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:yS,scaleDiverging:O7,scaleDivergingLog:U7,scaleDivergingPow:QS,scaleDivergingSqrt:sae,scaleDivergingSymlog:N7,scaleIdentity:c7,scaleImplicit:d_,scaleLinear:l7,scaleLog:f7,scaleOrdinal:mS,scalePoint:qre,scalePow:TS,scaleQuantile:g7,scaleQuantize:p7,scaleRadial:d7,scaleSequential:_7,scaleSequentialLog:S7,scaleSequentialPow:kS,scaleSequentialQuantile:T7,scaleSequentialSqrt:aae,scaleSequentialSymlog:F7,scaleSqrt:Rne,scaleSymlog:h7,scaleThreshold:v7,scaleTime:nae,scaleUtc:iae,tickFormat:A7},Symbol.toStringTag,{value:"Module"}));var Tf=e=>e.chartData,RS=ze([Tf],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),lx=(e,t,r,n)=>n?RS(e):Tf(e);function Ph(e){if(Array.isArray(e)&&e.length===2){var[t,r]=e;if(ds(t)&&ds(r))return!0}return!1}function BD(e,t,r){return r?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function L7(e,t){if(t&&typeof e!="function"&&Array.isArray(e)&&e.length===2){var[r,n]=e,i,a;if(ds(r))i=r;else if(typeof r=="function")return;if(ds(n))a=n;else if(typeof n=="function")return;var s=[i,a];if(Ph(s))return s}}function oae(e,t,r){if(!(!r&&t==null)){if(typeof e=="function"&&t!=null)try{var n=e(t,r);if(Ph(n))return BD(n,t,r)}catch{}if(Array.isArray(e)&&e.length===2){var[i,a]=e,s,o;if(i==="auto")t!=null&&(s=Math.min(...t));else if(zt(i))s=i;else if(typeof i=="function")try{t!=null&&(s=i(t?.[0]))}catch{}else if(typeof i=="string"&&sL.test(i)){var l=sL.exec(i);if(l==null||t==null)s=void 0;else{var c=+l[1];s=t[0]-c}}else s=t?.[0];if(a==="auto")t!=null&&(o=Math.max(...t));else if(zt(a))o=a;else if(typeof a=="function")try{t!=null&&(o=a(t?.[1]))}catch{}else if(typeof a=="string"&&oL.test(a)){var f=oL.exec(a);if(f==null||t==null)o=void 0;else{var h=+f[1];o=t[1]+h}}else o=t?.[1];var p=[s,o];if(Ph(p))return t==null?p:BD(p,t,r)}}}var Ag=1e9,Aae={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},HS,Zn=!0,vA="[DecimalError] ",Sh=vA+"Invalid argument: ",jS=vA+"Exponent out of range: ",lg=Math.floor,uh=Math.pow,lae=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Lo,xa=1e7,Kn=7,D7=9007199254740991,N2=lg(D7/Kn),Ft={};Ft.absoluteValue=Ft.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};Ft.comparedTo=Ft.cmp=function(e){var t,r,n,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};Ft.decimalPlaces=Ft.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*Kn;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};Ft.dividedBy=Ft.div=function(e){return Qc(this,new this.constructor(e))};Ft.dividedToIntegerBy=Ft.idiv=function(e){var t=this,r=t.constructor;return On(Qc(t,new r(e),0,1),r.precision)};Ft.equals=Ft.eq=function(e){return!this.cmp(e)};Ft.exponent=function(){return Gi(this)};Ft.greaterThan=Ft.gt=function(e){return this.cmp(e)>0};Ft.greaterThanOrEqualTo=Ft.gte=function(e){return this.cmp(e)>=0};Ft.isInteger=Ft.isint=function(){return this.e>this.d.length-2};Ft.isNegative=Ft.isneg=function(){return this.s<0};Ft.isPositive=Ft.ispos=function(){return this.s>0};Ft.isZero=function(){return this.s===0};Ft.lessThan=Ft.lt=function(e){return this.cmp(e)<0};Ft.lessThanOrEqualTo=Ft.lte=function(e){return this.cmp(e)<1};Ft.logarithm=Ft.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(Lo))throw Error(vA+"NaN");if(r.s<1)throw Error(vA+(r.s?"NaN":"-Infinity"));return r.eq(Lo)?new n(0):(Zn=!1,t=Qc(x1(r,a),x1(e,a),a),Zn=!0,On(t,i))};Ft.minus=Ft.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?P7(t,e):I7(t,(e.s=-e.s,e))};Ft.modulo=Ft.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(vA+"NaN");return r.s?(Zn=!1,t=Qc(r,e,0,1).times(e),Zn=!0,r.minus(t)):On(new n(r),i)};Ft.naturalExponential=Ft.exp=function(){return M7(this)};Ft.naturalLogarithm=Ft.ln=function(){return x1(this)};Ft.negated=Ft.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};Ft.plus=Ft.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?I7(t,e):P7(t,(e.s=-e.s,e))};Ft.precision=Ft.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Sh+e);if(t=Gi(i)+1,n=i.d.length-1,r=n*Kn+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};Ft.squareRoot=Ft.sqrt=function(){var e,t,r,n,i,a,s,o=this,l=o.constructor;if(o.s<1){if(!o.s)return new l(0);throw Error(vA+"NaN")}for(e=Gi(o),Zn=!1,i=Math.sqrt(+o),i==0||i==1/0?(t=Rl(o.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=lg((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new l(t)):n=new l(i.toString()),r=l.precision,i=s=r+3;;)if(a=n,n=a.plus(Qc(o,a,s+2)).times(.5),Rl(a.d).slice(0,s)===(t=Rl(n.d)).slice(0,s)){if(t=t.slice(s-3,s+1),i==s&&t=="4999"){if(On(a,r+1,0),a.times(a).eq(o)){n=a;break}}else if(t!="9999")break;s+=4}return Zn=!0,On(n,r)};Ft.times=Ft.mul=function(e){var t,r,n,i,a,s,o,l,c,f=this,h=f.constructor,p=f.d,g=(e=new h(e)).d;if(!f.s||!e.s)return new h(0);for(e.s*=f.s,r=f.e+e.e,l=p.length,c=g.length,l<c&&(a=p,p=g,g=a,s=l,l=c,c=s),a=[],s=l+c,n=s;n--;)a.push(0);for(n=c;--n>=0;){for(t=0,i=l+n;i>n;)o=a[i]+g[n]*p[i-n-1]+t,a[i--]=o%xa|0,t=o/xa|0;a[i]=(a[i]+t)%xa|0}for(;!a[--s];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,Zn?On(e,h.precision):e};Ft.toDecimalPlaces=Ft.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(Vl(e,0,Ag),t===void 0?t=n.rounding:Vl(t,0,8),On(r,e+Gi(r)+1,t))};Ft.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=kh(n,!0):(Vl(e,0,Ag),t===void 0?t=i.rounding:Vl(t,0,8),n=On(new i(n),e+1,t),r=kh(n,!0,e+1)),r};Ft.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?kh(i):(Vl(e,0,Ag),t===void 0?t=a.rounding:Vl(t,0,8),n=On(new a(i),e+Gi(i)+1,t),r=kh(n.abs(),!1,e+Gi(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};Ft.toInteger=Ft.toint=function(){var e=this,t=e.constructor;return On(new t(e),Gi(e)+1,t.rounding)};Ft.toNumber=function(){return+this};Ft.toPower=Ft.pow=function(e){var t,r,n,i,a,s,o=this,l=o.constructor,c=12,f=+(e=new l(e));if(!e.s)return new l(Lo);if(o=new l(o),!o.s){if(e.s<1)throw Error(vA+"Infinity");return o}if(o.eq(Lo))return o;if(n=l.precision,e.eq(Lo))return On(o,n);if(t=e.e,r=e.d.length-1,s=t>=r,a=o.s,s){if((r=f<0?-f:f)<=D7){for(i=new l(Lo),t=Math.ceil(n/Kn+4),Zn=!1;r%2&&(i=i.times(o),ED(i.d,t)),r=lg(r/2),r!==0;)o=o.times(o),ED(o.d,t);return Zn=!0,e.s<0?new l(Lo).div(i):On(i,n)}}else if(a<0)throw Error(vA+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,o.s=1,Zn=!1,i=e.times(x1(o,n+c)),Zn=!0,i=M7(i),i.s=a,i};Ft.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=Gi(i),n=kh(i,r<=a.toExpNeg||r>=a.toExpPos)):(Vl(e,1,Ag),t===void 0?t=a.rounding:Vl(t,0,8),i=On(new a(i),e,t),r=Gi(i),n=kh(i,e<=r||r<=a.toExpNeg,e)),n};Ft.toSignificantDigits=Ft.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(Vl(e,1,Ag),t===void 0?t=n.rounding:Vl(t,0,8)),On(new n(r),e,t)};Ft.toString=Ft.valueOf=Ft.val=Ft.toJSON=Ft[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Gi(e),r=e.constructor;return kh(e,t<=r.toExpNeg||t>=r.toExpPos)};function I7(e,t){var r,n,i,a,s,o,l,c,f=e.constructor,h=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),Zn?On(t,h):t;if(l=e.d,c=t.d,s=e.e,i=t.e,l=l.slice(),a=s-i,a){for(a<0?(n=l,a=-a,o=c.length):(n=c,i=s,o=l.length),s=Math.ceil(h/Kn),o=s>o?s+1:o+1,a>o&&(a=o,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(o=l.length,a=c.length,o-a<0&&(a=o,n=c,c=l,l=n),r=0;a;)r=(l[--a]=l[a]+c[a]+r)/xa|0,l[a]%=xa;for(r&&(l.unshift(r),++i),o=l.length;l[--o]==0;)l.pop();return t.d=l,t.e=i,Zn?On(t,h):t}function Vl(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Sh+e)}function Rl(e){var t,r,n,i=e.length-1,a="",s=e[0];if(i>0){for(a+=s,t=1;t<i;t++)n=e[t]+"",r=Kn-n.length,r&&(a+=Wu(r)),a+=n;s=e[t],n=s+"",r=Kn-n.length,r&&(a+=Wu(r))}else if(s===0)return"0";for(;s%10===0;)s/=10;return a+s}var Qc=(function(){function e(n,i){var a,s=0,o=n.length;for(n=n.slice();o--;)a=n[o]*i+s,n[o]=a%xa|0,s=a/xa|0;return s&&n.unshift(s),n}function t(n,i,a,s){var o,l;if(a!=s)l=a>s?1:-1;else for(o=l=0;o<a;o++)if(n[o]!=i[o]){l=n[o]>i[o]?1:-1;break}return l}function r(n,i,a){for(var s=0;a--;)n[a]-=s,s=n[a]<i[a]?1:0,n[a]=s*xa+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,s){var o,l,c,f,h,p,g,y,m,w,b,E,S,T,D,k,P,R,O=n.constructor,V=n.s==i.s?1:-1,I=n.d,Q=i.d;if(!n.s)return new O(n);if(!i.s)throw Error(vA+"Division by zero");for(l=n.e-i.e,P=Q.length,D=I.length,g=new O(V),y=g.d=[],c=0;Q[c]==(I[c]||0);)++c;if(Q[c]>(I[c]||0)&&--l,a==null?E=a=O.precision:s?E=a+(Gi(n)-Gi(i))+1:E=a,E<0)return new O(0);if(E=E/Kn+2|0,c=0,P==1)for(f=0,Q=Q[0],E++;(c<D||f)&&E--;c++)S=f*xa+(I[c]||0),y[c]=S/Q|0,f=S%Q|0;else{for(f=xa/(Q[0]+1)|0,f>1&&(Q=e(Q,f),I=e(I,f),P=Q.length,D=I.length),T=P,m=I.slice(0,P),w=m.length;w<P;)m[w++]=0;R=Q.slice(),R.unshift(0),k=Q[0],Q[1]>=xa/2&&++k;do f=0,o=t(Q,m,P,w),o<0?(b=m[0],P!=w&&(b=b*xa+(m[1]||0)),f=b/k|0,f>1?(f>=xa&&(f=xa-1),h=e(Q,f),p=h.length,w=m.length,o=t(h,m,p,w),o==1&&(f--,r(h,P<p?R:Q,p))):(f==0&&(o=f=1),h=Q.slice()),p=h.length,p<w&&h.unshift(0),r(m,h,w),o==-1&&(w=m.length,o=t(Q,m,P,w),o<1&&(f++,r(m,P<w?R:Q,w))),w=m.length):o===0&&(f++,m=[0]),y[c++]=f,o&&m[0]?m[w++]=I[T]||0:(m=[I[T]],w=1);while((T++<D||m[0]!==void 0)&&E--)}return y[0]||y.shift(),g.e=l,On(g,s?a+Gi(g)+1:a)}})();function M7(e,t){var r,n,i,a,s,o,l=0,c=0,f=e.constructor,h=f.precision;if(Gi(e)>16)throw Error(jS+Gi(e));if(!e.s)return new f(Lo);for(Zn=!1,o=h,s=new f(.03125);e.abs().gte(.1);)e=e.times(s),c+=5;for(n=Math.log(uh(2,c))/Math.LN10*2+5|0,o+=n,r=i=a=new f(Lo),f.precision=o;;){if(i=On(i.times(e),o),r=r.times(++l),s=a.plus(Qc(i,r,o)),Rl(s.d).slice(0,o)===Rl(a.d).slice(0,o)){for(;c--;)a=On(a.times(a),o);return f.precision=h,t==null?(Zn=!0,On(a,h)):a}a=s}}function Gi(e){for(var t=e.e*Kn,r=e.d[0];r>=10;r/=10)t++;return t}function I5(e,t,r){if(t>e.LN10.sd())throw Zn=!0,r&&(e.precision=r),Error(vA+"LN10 precision limit exceeded");return On(new e(e.LN10),t)}function Wu(e){for(var t="";e--;)t+="0";return t}function x1(e,t){var r,n,i,a,s,o,l,c,f,h=1,p=10,g=e,y=g.d,m=g.constructor,w=m.precision;if(g.s<1)throw Error(vA+(g.s?"NaN":"-Infinity"));if(g.eq(Lo))return new m(0);if(t==null?(Zn=!1,c=w):c=t,g.eq(10))return t==null&&(Zn=!0),I5(m,c);if(c+=p,m.precision=c,r=Rl(y),n=r.charAt(0),a=Gi(g),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)g=g.times(e),r=Rl(g.d),n=r.charAt(0),h++;a=Gi(g),n>1?(g=new m("0."+r),a++):g=new m(n+"."+r.slice(1))}else return l=I5(m,c+2,w).times(a+""),g=x1(new m(n+"."+r.slice(1)),c-p).plus(l),m.precision=w,t==null?(Zn=!0,On(g,w)):g;for(o=s=g=Qc(g.minus(Lo),g.plus(Lo),c),f=On(g.times(g),c),i=3;;){if(s=On(s.times(f),c),l=o.plus(Qc(s,new m(i),c)),Rl(l.d).slice(0,c)===Rl(o.d).slice(0,c))return o=o.times(2),a!==0&&(o=o.plus(I5(m,c+2,w).times(a+""))),o=Qc(o,new m(h),c),m.precision=w,t==null?(Zn=!0,On(o,w)):o;o=l,i+=2}}function CD(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=lg(r/Kn),e.d=[],n=(r+1)%Kn,r<0&&(n+=Kn),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=Kn;n<i;)e.d.push(+t.slice(n,n+=Kn));t=t.slice(n),n=Kn-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),Zn&&(e.e>N2||e.e<-N2))throw Error(jS+r)}else e.s=0,e.e=0,e.d=[0];return e}function On(e,t,r){var n,i,a,s,o,l,c,f,h=e.d;for(s=1,a=h[0];a>=10;a/=10)s++;if(n=t-s,n<0)n+=Kn,i=t,c=h[f=0];else{if(f=Math.ceil((n+1)/Kn),a=h.length,f>=a)return e;for(c=a=h[f],s=1;a>=10;a/=10)s++;n%=Kn,i=n-Kn+s}if(r!==void 0&&(a=uh(10,s-i-1),o=c/a%10|0,l=t<0||h[f+1]!==void 0||c%a,l=r<4?(o||l)&&(r==0||r==(e.s<0?3:2)):o>5||o==5&&(r==4||l||r==6&&(n>0?i>0?c/uh(10,s-i):0:h[f-1])%10&1||r==(e.s<0?8:7))),t<1||!h[0])return l?(a=Gi(e),h.length=1,t=t-a-1,h[0]=uh(10,(Kn-t%Kn)%Kn),e.e=lg(-t/Kn)||0):(h.length=1,h[0]=e.e=e.s=0),e;if(n==0?(h.length=f,a=1,f--):(h.length=f+1,a=uh(10,Kn-n),h[f]=i>0?(c/uh(10,s-i)%uh(10,i)|0)*a:0),l)for(;;)if(f==0){(h[0]+=a)==xa&&(h[0]=1,++e.e);break}else{if(h[f]+=a,h[f]!=xa)break;h[f--]=0,a=1}for(n=h.length;h[--n]===0;)h.pop();if(Zn&&(e.e>N2||e.e<-N2))throw Error(jS+Gi(e));return e}function P7(e,t){var r,n,i,a,s,o,l,c,f,h,p=e.constructor,g=p.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new p(e),Zn?On(t,g):t;if(l=e.d,h=t.d,n=t.e,c=e.e,l=l.slice(),s=c-n,s){for(f=s<0,f?(r=l,s=-s,o=h.length):(r=h,n=c,o=l.length),i=Math.max(Math.ceil(g/Kn),o)+2,s>i&&(s=i,r.length=1),r.reverse(),i=s;i--;)r.push(0);r.reverse()}else{for(i=l.length,o=h.length,f=i<o,f&&(o=i),i=0;i<o;i++)if(l[i]!=h[i]){f=l[i]<h[i];break}s=0}for(f&&(r=l,l=h,h=r,t.s=-t.s),o=l.length,i=h.length-o;i>0;--i)l[o++]=0;for(i=h.length;i>s;){if(l[--i]<h[i]){for(a=i;a&&l[--a]===0;)l[a]=xa-1;--l[a],l[i]+=xa}l[i]-=h[i]}for(;l[--o]===0;)l.pop();for(;l[0]===0;l.shift())--n;return l[0]?(t.d=l,t.e=n,Zn?On(t,g):t):new p(0)}function kh(e,t,r){var n,i=Gi(e),a=Rl(e.d),s=a.length;return t?(r&&(n=r-s)>0?a=a.charAt(0)+"."+a.slice(1)+Wu(n):s>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+Wu(-i-1)+a,r&&(n=r-s)>0&&(a+=Wu(n))):i>=s?(a+=Wu(i+1-s),r&&(n=r-i-1)>0&&(a=a+"."+Wu(n))):((n=i+1)<s&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-s)>0&&(i+1===s&&(a+="."),a+=Wu(n))),e.s<0?"-"+a:a}function ED(e,t){if(e.length>t)return e.length=t,!0}function k7(e){var t,r,n;function i(a){var s=this;if(!(s instanceof i))return new i(a);if(s.constructor=i,a instanceof i){s.s=a.s,s.e=a.e,s.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(Sh+a);if(a>0)s.s=1;else if(a<0)a=-a,s.s=-1;else{s.s=0,s.e=0,s.d=[0];return}if(a===~~a&&a<1e7){s.e=0,s.d=[a];return}return CD(s,a.toString())}else if(typeof a!="string")throw Error(Sh+a);if(a.charCodeAt(0)===45?(a=a.slice(1),s.s=-1):s.s=1,lae.test(a))CD(s,a);else throw Error(Sh+a)}if(i.prototype=Ft,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=k7,i.config=i.set=cae,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function cae(e){if(!e||typeof e!="object")throw Error(vA+"Object expected");var t,r,n,i=["precision",1,Ag,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(lg(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(Sh+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Sh+r+": "+n);return this}var HS=k7(Aae);Lo=new HS(1);const cn=HS;var uae=e=>e,Q7={},R7=e=>e===Q7,_D=e=>function t(){return arguments.length===0||arguments.length===1&&R7(arguments.length<=0?void 0:arguments[0])?t:e(...arguments)},j7=(e,t)=>e===1?t:_D(function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var a=n.filter(s=>s!==Q7).length;return a>=e?t(...n):j7(e-a,_D(function(){for(var s=arguments.length,o=new Array(s),l=0;l<s;l++)o[l]=arguments[l];var c=n.map(f=>R7(f)?o.shift():f);return t(...c,...o)}))}),cx=e=>j7(e.length,e),m_=(e,t)=>{for(var r=[],n=e;n<t;++n)r[n-e]=n;return r},fae=cx((e,t)=>Array.isArray(t)?t.map(e):Object.keys(t).map(r=>t[r]).map(e)),hae=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return uae;var i=r.reverse(),a=i[0],s=i.slice(1);return function(){return s.reduce((o,l)=>l(o),a(...arguments))}},y_=e=>Array.isArray(e)?e.reverse():e.split("").reverse().join(""),H7=e=>{var t=null,r=null;return function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return t&&i.every((s,o)=>{var l;return s===((l=t)===null||l===void 0?void 0:l[o])})||(t=i,r=e(...i)),r}};function K7(e){var t;return e===0?t=1:t=Math.floor(new cn(e).abs().log(10).toNumber())+1,t}function z7(e,t,r){for(var n=new cn(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}cx((e,t,r)=>{var n=+e,i=+t;return n+r*(i-n)});cx((e,t,r)=>{var n=t-+e;return n=n||1/0,(r-e)/n});cx((e,t,r)=>{var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});var V7=e=>{var[t,r]=e,[n,i]=[t,r];return t>r&&([n,i]=[r,t]),[n,i]},G7=(e,t,r)=>{if(e.lte(0))return new cn(0);var n=K7(e.toNumber()),i=new cn(10).pow(n),a=e.div(i),s=n!==1?.05:.1,o=new cn(Math.ceil(a.div(s).toNumber())).add(r).mul(s),l=o.mul(i);return t?new cn(l.toNumber()):new cn(Math.ceil(l.toNumber()))},dae=(e,t,r)=>{var n=new cn(1),i=new cn(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new cn(10).pow(K7(e)-1),i=new cn(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new cn(Math.floor(e)))}else e===0?i=new cn(Math.floor((t-1)/2)):r||(i=new cn(Math.floor(e)));var s=Math.floor((t-1)/2),o=hae(fae(l=>i.add(new cn(l-s).mul(n)).toNumber()),m_);return o(0,t)},q7=function(t,r,n,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((r-t)/(n-1)))return{step:new cn(0),tickMin:new cn(0),tickMax:new cn(0)};var s=G7(new cn(r).sub(t).div(n-1),i,a),o;t<=0&&r>=0?o=new cn(0):(o=new cn(t).add(r).div(2),o=o.sub(new cn(o).mod(s)));var l=Math.ceil(o.sub(t).div(s).toNumber()),c=Math.ceil(new cn(r).sub(o).div(s).toNumber()),f=l+c+1;return f>n?q7(t,r,n,i,a+1):(f<n&&(c=r>0?c+(n-f):c,l=r>0?l:l+(n-f)),{step:s,tickMin:o.sub(new cn(l).mul(s)),tickMax:o.add(new cn(c).mul(s))})};function gae(e){var[t,r]=e,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=Math.max(n,2),[s,o]=V7([t,r]);if(s===-1/0||o===1/0){var l=o===1/0?[s,...m_(0,n-1).map(()=>1/0)]:[...m_(0,n-1).map(()=>-1/0),o];return t>r?y_(l):l}if(s===o)return dae(s,n,i);var{step:c,tickMin:f,tickMax:h}=q7(s,o,a,i,0),p=z7(f,h.add(new cn(.1).mul(c)),c);return t>r?y_(p):p}function pae(e,t){var[r,n]=e,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,[a,s]=V7([r,n]);if(a===-1/0||s===1/0)return[r,n];if(a===s)return[a];var o=Math.max(t,2),l=G7(new cn(s).sub(a).div(o-1),i,0),c=[...z7(new cn(a),new cn(s),l),s];return i===!1&&(c=c.map(f=>Math.round(f))),r>n?y_(c):c}var vae=H7(gae),mae=H7(pae),W7=e=>e.rootProps.maxBarSize,yae=e=>e.rootProps.barGap,Y7=e=>e.rootProps.barCategoryGap,wae=e=>e.rootProps.barSize,sv=e=>e.rootProps.stackOffset,KS=e=>e.options.chartName,zS=e=>e.rootProps.syncId,$7=e=>e.rootProps.syncMethod,VS=e=>e.options.eventEmitter,Nc={allowDuplicatedCategory:!0,angleAxisId:0,reversed:!1,scale:"auto",tick:!0,type:"category"},Fo={allowDataOverflow:!1,allowDuplicatedCategory:!0,radiusAxisId:0,scale:"auto",tick:!0,tickCount:5,type:"number"},ux=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t},xae={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:Nc.angleAxisId,includeHidden:!1,name:void 0,reversed:Nc.reversed,scale:Nc.scale,tick:Nc.tick,tickCount:void 0,ticks:void 0,type:Nc.type,unit:void 0},bae={allowDataOverflow:Fo.allowDataOverflow,allowDecimals:!1,allowDuplicatedCategory:Fo.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:Fo.radiusAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:Fo.scale,tick:Fo.tick,tickCount:Fo.tickCount,ticks:void 0,type:Fo.type,unit:void 0},Bae={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:Nc.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:Nc.angleAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:Nc.scale,tick:Nc.tick,tickCount:void 0,ticks:void 0,type:"number",unit:void 0},Cae={allowDataOverflow:Fo.allowDataOverflow,allowDecimals:!1,allowDuplicatedCategory:Fo.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:Fo.radiusAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:Fo.scale,tick:Fo.tick,tickCount:Fo.tickCount,ticks:void 0,type:"category",unit:void 0},GS=(e,t)=>e.polarAxis.angleAxis[t]!=null?e.polarAxis.angleAxis[t]:e.layout.layoutType==="radial"?Bae:xae,qS=(e,t)=>e.polarAxis.radiusAxis[t]!=null?e.polarAxis.radiusAxis[t]:e.layout.layoutType==="radial"?Cae:bae,fx=e=>e.polarOptions,WS=ze([tu,ru,Aa],TR),X7=ze([fx,WS],(e,t)=>{if(e!=null)return us(e.innerRadius,t,0)}),J7=ze([fx,WS],(e,t)=>{if(e!=null)return us(e.outerRadius,t,t*.8)}),Eae=e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:r}=e;return[t,r]},Z7=ze([fx],Eae);ze([GS,Z7],ux);var ej=ze([WS,X7,J7],(e,t,r)=>{if(!(e==null||t==null||r==null))return[t,r]});ze([qS,ej],ux);var tj=ze([Qr,fx,X7,J7,tu,ru],(e,t,r,n,i,a)=>{if(!(e!=="centric"&&e!=="radial"||t==null||r==null||n==null)){var{cx:s,cy:o,startAngle:l,endAngle:c}=t;return{cx:us(s,i,i/2),cy:us(o,a,a/2),innerRadius:r,outerRadius:n,startAngle:l,endAngle:c,clockWise:!1}}}),ni=(e,t)=>t,ov=(e,t,r)=>r;function YS(e){return e?.id}var ca=e=>{var t=Qr(e);return t==="horizontal"?"xAxis":t==="vertical"?"yAxis":t==="centric"?"angleAxis":"radiusAxis"},cg=e=>e.tooltip.settings.axisId,ua=e=>{var t=ca(e),r=cg(e);return Av(e,t,r)},rj=ze([ua],e=>e?.dataKey);function nj(e,t,r){var{chartData:n=[]}=t,{allowDuplicatedCategory:i,dataKey:a}=r,s=new Map;return e.forEach(o=>{var l,c=(l=o.data)!==null&&l!==void 0?l:n;if(!(c==null||c.length===0)){var f=YS(o);c.forEach((h,p)=>{var g=a==null||i?p:String(Dn(h,a,null)),y=Dn(h,o.dataKey,0),m;s.has(g)?m=s.get(g):m={},Object.assign(m,{[f]:y}),s.set(g,m)})}}),Array.from(s.values())}function hx(e){return e.stackId!=null&&e.dataKey!=null}var dx=(e,t)=>e===t?!0:e==null||t==null?!1:e[0]===t[0]&&e[1]===t[1];function gx(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===0&&t.length===0?!0:e===t}function SD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function L2(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?SD(Object(r),!0).forEach(function(n){_ae(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):SD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _ae(e,t,r){return(t=Sae(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Sae(e){var t=Fae(e,"string");return typeof t=="symbol"?t:t+""}function Fae(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var w_=[0,"auto"],Co={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:void 0,height:30,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"bottom",padding:{left:0,right:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"category",unit:void 0},ij=(e,t)=>e.cartesianAxis.xAxis[t],iu=(e,t)=>{var r=ij(e,t);return r??Co},Eo={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:w_,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"left",padding:{top:0,bottom:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"number",unit:void 0,width:Z1},aj=(e,t)=>e.cartesianAxis.yAxis[t],au=(e,t)=>{var r=aj(e,t);return r??Eo},Tae={domain:[0,"auto"],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:"",range:[64,64],scale:"auto",type:"number",unit:""},$S=(e,t)=>{var r=e.cartesianAxis.zAxis[t];return r??Tae},ui=(e,t,r)=>{switch(t){case"xAxis":return iu(e,r);case"yAxis":return au(e,r);case"zAxis":return $S(e,r);case"angleAxis":return GS(e,r);case"radiusAxis":return qS(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},Oae=(e,t,r)=>{switch(t){case"xAxis":return iu(e,r);case"yAxis":return au(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},Av=(e,t,r)=>{switch(t){case"xAxis":return iu(e,r);case"yAxis":return au(e,r);case"angleAxis":return GS(e,r);case"radiusAxis":return qS(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},sj=e=>e.graphicalItems.cartesianItems.some(t=>t.type==="bar")||e.graphicalItems.polarItems.some(t=>t.type==="radialBar");function XS(e,t){return r=>{switch(e){case"xAxis":return"xAxisId"in r&&r.xAxisId===t;case"yAxis":return"yAxisId"in r&&r.yAxisId===t;case"zAxis":return"zAxisId"in r&&r.zAxisId===t;case"angleAxis":return"angleAxisId"in r&&r.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in r&&r.radiusAxisId===t;default:return!1}}}var px=e=>e.graphicalItems.cartesianItems,Uae=ze([ni,ov],XS),JS=(e,t,r)=>e.filter(r).filter(n=>t?.includeHidden===!0?!0:!n.hide),lv=ze([px,ui,Uae],JS,{memoizeOptions:{resultEqualityCheck:gx}}),oj=ze([lv],e=>e.filter(t=>t.type==="area"||t.type==="bar").filter(hx)),Aj=e=>e.filter(t=>!("stackId"in t)||t.stackId===void 0),Nae=ze([lv],Aj),ZS=e=>e.map(t=>t.data).filter(Boolean).flat(1),Lae=ze([lv],ZS,{memoizeOptions:{resultEqualityCheck:gx}}),e3=(e,t)=>{var{chartData:r=[],dataStartIndex:n,dataEndIndex:i}=t;return e.length>0?e:r.slice(n,i+1)},t3=ze([Lae,lx],e3),r3=(e,t,r)=>t?.dataKey!=null?e.map(n=>({value:Dn(n,t.dataKey)})):r.length>0?r.map(n=>n.dataKey).flatMap(n=>e.map(i=>({value:Dn(i,n)}))):e.map(n=>({value:n})),vx=ze([t3,ui,lv],r3);function lj(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function Ky(e){if(zl(e)||e instanceof Date){var t=Number(e);if(ds(t))return t}}function FD(e){if(Array.isArray(e)){var t=[Ky(e[0]),Ky(e[1])];return Ph(t)?t:void 0}var r=Ky(e);if(r!=null)return[r,r]}function ug(e){return e.map(Ky).filter($te)}function Dae(e,t,r){return!r||typeof t!="number"||gA(t)?[]:r.length?ug(r.flatMap(n=>{var i=Dn(e,n.dataKey),a,s;if(Array.isArray(i)?[a,s]=i:a=s=i,!(!ds(a)||!ds(s)))return[t-a,t+s]})):[]}var Iae=ze([oj,lx,ua],nj),cj=(e,t,r)=>{var n={},i=t.reduce((a,s)=>(s.stackId==null||(a[s.stackId]==null&&(a[s.stackId]=[]),a[s.stackId].push(s)),a),n);return Object.fromEntries(Object.entries(i).map(a=>{var[s,o]=a,l=o.map(YS);return[s,{stackedData:yee(e,l,r),graphicalItems:o}]}))},x_=ze([Iae,oj,sv],cj),uj=(e,t,r,n)=>{var{dataStartIndex:i,dataEndIndex:a}=t;if(n==null&&r!=="zAxis"){var s=Cee(e,i,a);if(!(s!=null&&s[0]===0&&s[1]===0))return s}},Mae=ze([ui],e=>e.allowDataOverflow),n3=e=>{var t;if(e==null||!("domain"in e))return w_;if(e.domain!=null)return e.domain;if(e.ticks!=null){if(e.type==="number"){var r=ug(e.ticks);return[Math.min(...r),Math.max(...r)]}if(e.type==="category")return e.ticks.map(String)}return(t=e?.domain)!==null&&t!==void 0?t:w_},i3=ze([ui],n3),a3=ze([i3,Mae],L7),Pae=ze([x_,Tf,ni,a3],uj,{memoizeOptions:{resultEqualityCheck:dx}}),mx=e=>e.errorBars,kae=(e,t,r)=>e.flatMap(n=>t[n.id]).filter(Boolean).filter(n=>lj(r,n)),D2=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r.filter(Boolean);if(i.length!==0){var a=i.flat(),s=Math.min(...a),o=Math.max(...a);return[s,o]}},s3=(e,t,r,n,i)=>{var a,s;if(r.length>0&&e.forEach(o=>{r.forEach(l=>{var c,f,h=(c=n[l.id])===null||c===void 0?void 0:c.filter(b=>lj(i,b)),p=Dn(o,(f=t.dataKey)!==null&&f!==void 0?f:l.dataKey),g=Dae(o,p,h);if(g.length>=2){var y=Math.min(...g),m=Math.max(...g);(a==null||y<a)&&(a=y),(s==null||m>s)&&(s=m)}var w=FD(p);w!=null&&(a=a==null?w[0]:Math.min(a,w[0]),s=s==null?w[1]:Math.max(s,w[1]))})}),t?.dataKey!=null&&e.forEach(o=>{var l=FD(Dn(o,t.dataKey));l!=null&&(a=a==null?l[0]:Math.min(a,l[0]),s=s==null?l[1]:Math.max(s,l[1]))}),ds(a)&&ds(s))return[a,s]},Qae=ze([t3,ui,Nae,mx,ni],s3,{memoizeOptions:{resultEqualityCheck:dx}});function Rae(e){var{value:t}=e;if(zl(t)||t instanceof Date)return t}var jae=(e,t,r)=>{var n=e.map(Rae).filter(i=>i!=null);return r&&(t.dataKey==null||t.allowDuplicatedCategory&&RQ(n))?JR(0,e.length):t.allowDuplicatedCategory?n:Array.from(new Set(n))},fj=e=>e.referenceElements.dots,fg=(e,t,r)=>e.filter(n=>n.ifOverflow==="extendDomain").filter(n=>t==="xAxis"?n.xAxisId===r:n.yAxisId===r),Hae=ze([fj,ni,ov],fg),hj=e=>e.referenceElements.areas,Kae=ze([hj,ni,ov],fg),dj=e=>e.referenceElements.lines,zae=ze([dj,ni,ov],fg),gj=(e,t)=>{var r=ug(e.map(n=>t==="xAxis"?n.x:n.y));if(r.length!==0)return[Math.min(...r),Math.max(...r)]},Vae=ze(Hae,ni,gj),pj=(e,t)=>{var r=ug(e.flatMap(n=>[t==="xAxis"?n.x1:n.y1,t==="xAxis"?n.x2:n.y2]));if(r.length!==0)return[Math.min(...r),Math.max(...r)]},Gae=ze([Kae,ni],pj),vj=(e,t)=>{var r=ug(e.map(n=>t==="xAxis"?n.x:n.y));if(r.length!==0)return[Math.min(...r),Math.max(...r)]},qae=ze(zae,ni,vj),Wae=ze(Vae,qae,Gae,(e,t,r)=>D2(e,r,t)),o3=(e,t,r,n,i,a,s,o)=>{if(r!=null)return r;var l=s==="vertical"&&o==="xAxis"||s==="horizontal"&&o==="yAxis",c=l?D2(n,a,i):D2(a,i);return oae(t,c,e.allowDataOverflow)},Yae=ze([ui,i3,a3,Pae,Qae,Wae,Qr,ni],o3,{memoizeOptions:{resultEqualityCheck:dx}}),$ae=[0,1],A3=(e,t,r,n,i,a,s)=>{if(!((e==null||r==null||r.length===0)&&s===void 0)){var{dataKey:o,type:l}=e,c=Ef(t,a);return c&&o==null?JR(0,r.length):l==="category"?jae(n,e,c):i==="expand"?$ae:s}},l3=ze([ui,Qr,t3,vx,sv,ni,Yae],A3),mj=(e,t,r,n,i)=>{if(e!=null){var{scale:a,type:s}=e;if(a==="auto")return t==="radial"&&i==="radiusAxis"?"band":t==="radial"&&i==="angleAxis"?"linear":s==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?"point":s==="category"?"band":"linear";if(typeof a=="string"){var o="scale".concat(Y1(a));return o in Np?o:"point"}}},hg=ze([ui,Qr,sj,KS,ni],mj);function Xae(e){if(e!=null){if(e in Np)return Np[e]();var t="scale".concat(Y1(e));if(t in Np)return Np[t]()}}function c3(e,t,r,n){if(!(r==null||n==null)){if(typeof e.scale=="function")return e.scale.copy().domain(r).range(n);var i=Xae(t);if(i!=null){var a=i.domain(r).range(n);return dee(a),a}}}var u3=(e,t,r)=>{var n=n3(t);if(!(r!=="auto"&&r!=="linear")){if(t!=null&&t.tickCount&&Array.isArray(n)&&(n[0]==="auto"||n[1]==="auto")&&Ph(e))return vae(e,t.tickCount,t.allowDecimals);if(t!=null&&t.tickCount&&t.type==="number"&&Ph(e))return mae(e,t.tickCount,t.allowDecimals)}},f3=ze([l3,Av,hg],u3),h3=(e,t,r,n)=>{if(n!=="angleAxis"&&e?.type==="number"&&Ph(t)&&Array.isArray(r)&&r.length>0){var i=t[0],a=r[0],s=t[1],o=r[r.length-1];return[Math.min(i,a),Math.max(s,o)]}return t},Jae=ze([ui,l3,f3,ni],h3),Zae=ze(vx,ui,(e,t)=>{if(!(!t||t.type!=="number")){var r=1/0,n=Array.from(ug(e.map(o=>o.value))).sort((o,l)=>o-l);if(n.length<2)return 1/0;var i=n[n.length-1]-n[0];if(i===0)return 1/0;for(var a=0;a<n.length-1;a++){var s=n[a+1]-n[a];r=Math.min(r,s)}return r/i}}),yj=ze(Zae,Qr,Y7,Aa,(e,t,r,n)=>n,(e,t,r,n,i)=>{if(!ds(e))return 0;var a=t==="vertical"?n.height:n.width;if(i==="gap")return e*a/2;if(i==="no-gap"){var s=us(r,e*a),o=e*a/2;return o-s-(o-s)/a*s}return 0}),ese=(e,t)=>{var r=iu(e,t);return r==null||typeof r.padding!="string"?0:yj(e,"xAxis",t,r.padding)},tse=(e,t)=>{var r=au(e,t);return r==null||typeof r.padding!="string"?0:yj(e,"yAxis",t,r.padding)},rse=ze(iu,ese,(e,t)=>{var r,n;if(e==null)return{left:0,right:0};var{padding:i}=e;return typeof i=="string"?{left:t,right:t}:{left:((r=i.left)!==null&&r!==void 0?r:0)+t,right:((n=i.right)!==null&&n!==void 0?n:0)+t}}),nse=ze(au,tse,(e,t)=>{var r,n;if(e==null)return{top:0,bottom:0};var{padding:i}=e;return typeof i=="string"?{top:t,bottom:t}:{top:((r=i.top)!==null&&r!==void 0?r:0)+t,bottom:((n=i.bottom)!==null&&n!==void 0?n:0)+t}}),ise=ze([Aa,rse,Jw,Xw,(e,t,r)=>r],(e,t,r,n,i)=>{var{padding:a}=n;return i?[a.left,r.width-a.right]:[e.left+t.left,e.left+e.width-t.right]}),ase=ze([Aa,Qr,nse,Jw,Xw,(e,t,r)=>r],(e,t,r,n,i,a)=>{var{padding:s}=i;return a?[n.height-s.bottom,s.top]:t==="horizontal"?[e.top+e.height-r.bottom,e.top+r.top]:[e.top+r.top,e.top+e.height-r.bottom]}),cv=(e,t,r,n)=>{var i;switch(t){case"xAxis":return ise(e,r,n);case"yAxis":return ase(e,r,n);case"zAxis":return(i=$S(e,r))===null||i===void 0?void 0:i.range;case"angleAxis":return Z7(e);case"radiusAxis":return ej(e,r);default:return}},wj=ze([ui,cv],ux),dg=ze([ui,hg,Jae,wj],c3);ze([lv,mx,ni],kae);function xj(e,t){return e.id<t.id?-1:e.id>t.id?1:0}var yx=(e,t)=>t,wx=(e,t,r)=>r,sse=ze(Yw,yx,wx,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort(xj)),ose=ze($w,yx,wx,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort(xj)),bj=(e,t)=>({width:e.width,height:t.height}),Ase=(e,t)=>{var r=typeof t.width=="number"?t.width:Z1;return{width:r,height:e.height}},Bj=ze(Aa,iu,bj),lse=(e,t,r)=>{switch(t){case"top":return e.top;case"bottom":return r-e.bottom;default:return 0}},cse=(e,t,r)=>{switch(t){case"left":return e.left;case"right":return r-e.right;default:return 0}},use=ze(ru,Aa,sse,yx,wx,(e,t,r,n,i)=>{var a={},s;return r.forEach(o=>{var l=bj(t,o);s==null&&(s=lse(t,n,e));var c=n==="top"&&!i||n==="bottom"&&i;a[o.id]=s-Number(c)*l.height,s+=(c?-1:1)*l.height}),a}),fse=ze(tu,Aa,ose,yx,wx,(e,t,r,n,i)=>{var a={},s;return r.forEach(o=>{var l=Ase(t,o);s==null&&(s=cse(t,n,e));var c=n==="left"&&!i||n==="right"&&i;a[o.id]=s-Number(c)*l.width,s+=(c?-1:1)*l.width}),a}),hse=(e,t)=>{var r=iu(e,t);if(r!=null)return use(e,r.orientation,r.mirror)},dse=ze([Aa,iu,hse,(e,t)=>t],(e,t,r,n)=>{if(t!=null){var i=r?.[n];return i==null?{x:e.left,y:0}:{x:e.left,y:i}}}),gse=(e,t)=>{var r=au(e,t);if(r!=null)return fse(e,r.orientation,r.mirror)},pse=ze([Aa,au,gse,(e,t)=>t],(e,t,r,n)=>{if(t!=null){var i=r?.[n];return i==null?{x:0,y:e.top}:{x:i,y:e.top}}}),Cj=ze(Aa,au,(e,t)=>{var r=typeof t.width=="number"?t.width:Z1;return{width:r,height:e.height}}),TD=(e,t,r)=>{switch(t){case"xAxis":return Bj(e,r).width;case"yAxis":return Cj(e,r).height;default:return}},Ej=(e,t,r,n)=>{if(r!=null){var{allowDuplicatedCategory:i,type:a,dataKey:s}=r,o=Ef(e,n),l=t.map(c=>c.value);if(s&&o&&a==="category"&&i&&RQ(l))return l}},d3=ze([Qr,vx,ui,ni],Ej),_j=(e,t,r,n)=>{if(!(r==null||r.dataKey==null)){var{type:i,scale:a}=r,s=Ef(e,n);if(s&&(i==="number"||a!=="auto"))return t.map(o=>o.value)}},g3=ze([Qr,vx,Av,ni],_j),OD=ze([Qr,Oae,hg,dg,d3,g3,cv,f3,ni],(e,t,r,n,i,a,s,o,l)=>{if(t==null)return null;var c=Ef(e,l);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:l,categoricalDomain:a,duplicateDomain:i,isCategorical:c,niceTicks:o,range:s,realScaleType:r,scale:n}}),vse=(e,t,r,n,i,a,s,o,l)=>{if(!(t==null||n==null)){var c=Ef(e,l),{type:f,ticks:h,tickCount:p}=t,g=r==="scaleBand"&&typeof n.bandwidth=="function"?n.bandwidth()/2:2,y=f==="category"&&n.bandwidth?n.bandwidth()/g:0;y=l==="angleAxis"&&a!=null&&a.length>=2?Ca(a[0]-a[1])*2*y:y;var m=h||i;if(m){var w=m.map((b,E)=>{var S=s?s.indexOf(b):b;return{index:E,coordinate:n(S)+y,value:b,offset:y}});return w.filter(b=>!gA(b.coordinate))}return c&&o?o.map((b,E)=>({coordinate:n(b)+y,value:b,index:E,offset:y})):n.ticks?n.ticks(p).map(b=>({coordinate:n(b)+y,value:b,offset:y})):n.domain().map((b,E)=>({coordinate:n(b)+y,value:s?s[b]:b,index:E,offset:y}))}},Sj=ze([Qr,Av,hg,dg,f3,cv,d3,g3,ni],vse),mse=(e,t,r,n,i,a,s)=>{if(!(t==null||r==null||n==null||n[0]===n[1])){var o=Ef(e,s),{tickCount:l}=t,c=0;return c=s==="angleAxis"&&n?.length>=2?Ca(n[0]-n[1])*2*c:c,o&&a?a.map((f,h)=>({coordinate:r(f)+c,value:f,index:h,offset:c})):r.ticks?r.ticks(l).map(f=>({coordinate:r(f)+c,value:f,offset:c})):r.domain().map((f,h)=>({coordinate:r(f)+c,value:i?i[f]:f,index:h,offset:c}))}},ff=ze([Qr,Av,dg,cv,d3,g3,ni],mse),hf=ze(ui,dg,(e,t)=>{if(!(e==null||t==null))return L2(L2({},e),{},{scale:t})}),yse=ze([ui,hg,l3,wj],c3);ze((e,t,r)=>$S(e,r),yse,(e,t)=>{if(!(e==null||t==null))return L2(L2({},e),{},{scale:t})});var wse=ze([Qr,Yw,$w],(e,t,r)=>{switch(e){case"horizontal":return t.some(n=>n.reversed)?"right-to-left":"left-to-right";case"vertical":return r.some(n=>n.reversed)?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}}),Fj=e=>e.options.defaultTooltipEventType,Tj=e=>e.options.validateTooltipEventTypes;function Oj(e,t,r){if(e==null)return t;var n=e?"axis":"item";return r==null?t:r.includes(n)?n:t}function p3(e,t){var r=Fj(e),n=Tj(e);return Oj(t,r,n)}function xse(e){return Pt(t=>p3(t,e))}var Uj=(e,t)=>{var r,n=Number(t);if(!(gA(n)||t==null))return n>=0?e==null||(r=e[n])===null||r===void 0?void 0:r.value:void 0},bse=e=>e.tooltip.settings,Xu={active:!1,index:null,dataKey:void 0,coordinate:void 0},Bse={itemInteraction:{click:Xu,hover:Xu},axisInteraction:{click:Xu,hover:Xu},keyboardInteraction:Xu,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0,sourceViewBox:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:"hover",axisId:0,active:!1,defaultIndex:void 0}},Nj=Qo({name:"tooltip",initialState:Bse,reducers:{addTooltipEntrySettings:{reducer(e,t){e.tooltipItemPayloads.push(t.payload)},prepare:Es()},removeTooltipEntrySettings:{reducer(e,t){var r=kc(e).tooltipItemPayloads.indexOf(t.payload);r>-1&&e.tooltipItemPayloads.splice(r,1)},prepare:Es()},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate,e.keyboardInteraction.dataKey=t.payload.activeDataKey}}}),{addTooltipEntrySettings:Cse,removeTooltipEntrySettings:Ese,setTooltipSettingsState:_se,setActiveMouseOverItemIndex:Lj,mouseLeaveItem:Sse,mouseLeaveChart:Dj,setActiveClickItemIndex:Fse,setMouseOverAxisIndex:Ij,setMouseClickAxisIndex:Tse,setSyncInteraction:b_,setKeyboardInteraction:B_}=Nj.actions,Ose=Nj.reducer;function UD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Dm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?UD(Object(r),!0).forEach(function(n){Use(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):UD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Use(e,t,r){return(t=Nse(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Nse(e){var t=Lse(e,"string");return typeof t=="symbol"?t:t+""}function Lse(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Dse(e,t,r){return t==="axis"?r==="click"?e.axisInteraction.click:e.axisInteraction.hover:r==="click"?e.itemInteraction.click:e.itemInteraction.hover}function Ise(e){return e.index!=null}var Mj=(e,t,r,n)=>{if(t==null)return Xu;var i=Dse(e,t,r);if(i==null)return Xu;if(i.active)return i;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&e.syncInteraction.index!=null)return e.syncInteraction;var a=e.settings.active===!0;if(Ise(i)){if(a)return Dm(Dm({},i),{},{active:!0})}else if(n!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:n};return Dm(Dm({},Xu),{},{coordinate:i.coordinate})},v3=(e,t)=>{var r=e?.index;if(r==null)return null;var n=Number(r);if(!ds(n))return r;var i=0,a=1/0;return t.length>0&&(a=t.length-1),String(Math.max(i,Math.min(n,a)))},Pj=(e,t,r,n,i,a,s,o)=>{if(!(a==null||o==null)){var l=s[0],c=l==null?void 0:o(l.positions,a);if(c!=null)return c;var f=i?.[Number(a)];if(f)switch(r){case"horizontal":return{x:f.coordinate,y:(n.top+t)/2};default:return{x:(n.left+e)/2,y:f.coordinate}}}},kj=(e,t,r,n)=>{if(t==="axis")return e.tooltipItemPayloads;if(e.tooltipItemPayloads.length===0)return[];var i;return r==="hover"?i=e.itemInteraction.hover.dataKey:i=e.itemInteraction.click.dataKey,i==null&&n!=null?[e.tooltipItemPayloads[0]]:e.tooltipItemPayloads.filter(a=>{var s;return((s=a.settings)===null||s===void 0?void 0:s.dataKey)===i})},uv=e=>e.options.tooltipPayloadSearcher,gg=e=>e.tooltip;function ND(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function LD(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ND(Object(r),!0).forEach(function(n){Mse(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ND(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Mse(e,t,r){return(t=Pse(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Pse(e){var t=kse(e,"string");return typeof t=="symbol"?t:t+""}function kse(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Qse(e,t){return e??t}var Qj=(e,t,r,n,i,a,s)=>{if(!(t==null||a==null)){var{chartData:o,computedData:l,dataStartIndex:c,dataEndIndex:f}=r,h=[];return e.reduce((p,g)=>{var y,{dataDefinedOnItem:m,settings:w}=g,b=Qse(m,o),E=Array.isArray(b)?OR(b,c,f):b,S=(y=w?.dataKey)!==null&&y!==void 0?y:n,T=w?.nameKey,D;if(n&&Array.isArray(E)&&!Array.isArray(E[0])&&s==="axis"?D=jQ(E,n,i):D=a(E,t,l,T),Array.isArray(D))D.forEach(P=>{var R=LD(LD({},w),{},{name:P.name,unit:P.unit,color:void 0,fill:void 0});p.push(AL({tooltipEntrySettings:R,dataKey:P.dataKey,payload:P.payload,value:Dn(P.payload,P.dataKey),name:P.name}))});else{var k;p.push(AL({tooltipEntrySettings:w,dataKey:S,payload:D,value:Dn(D,S),name:(k=Dn(D,T))!==null&&k!==void 0?k:w?.name}))}return p},h)}},m3=ze([ua,Qr,sj,KS,ca],mj),Rse=ze([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),jse=ze([ca,cg],XS),fv=ze([Rse,ua,jse],JS,{memoizeOptions:{resultEqualityCheck:gx}}),Hse=ze([fv],e=>e.filter(hx)),Kse=ze([fv],ZS,{memoizeOptions:{resultEqualityCheck:gx}}),pg=ze([Kse,Tf],e3),zse=ze([Hse,Tf,ua],nj),y3=ze([pg,ua,fv],r3),Rj=ze([ua],n3),Vse=ze([ua],e=>e.allowDataOverflow),jj=ze([Rj,Vse],L7),Gse=ze([fv],e=>e.filter(hx)),qse=ze([zse,Gse,sv],cj),Wse=ze([qse,Tf,ca,jj],uj),Yse=ze([fv],Aj),$se=ze([pg,ua,Yse,mx,ca],s3,{memoizeOptions:{resultEqualityCheck:dx}}),Xse=ze([fj,ca,cg],fg),Jse=ze([Xse,ca],gj),Zse=ze([hj,ca,cg],fg),eoe=ze([Zse,ca],pj),toe=ze([dj,ca,cg],fg),roe=ze([toe,ca],vj),noe=ze([Jse,roe,eoe],D2),ioe=ze([ua,Rj,jj,Wse,$se,noe,Qr,ca],o3),Hj=ze([ua,Qr,pg,y3,sv,ca,ioe],A3),aoe=ze([Hj,ua,m3],u3),soe=ze([ua,Hj,aoe,ca],h3),Kj=e=>{var t=ca(e),r=cg(e),n=!1;return cv(e,t,r,n)},zj=ze([ua,Kj],ux),Vj=ze([ua,m3,soe,zj],c3),ooe=ze([Qr,y3,ua,ca],Ej),Aoe=ze([Qr,y3,ua,ca],_j),loe=(e,t,r,n,i,a,s,o)=>{if(t){var{type:l}=t,c=Ef(e,o);if(n){var f=r==="scaleBand"&&n.bandwidth?n.bandwidth()/2:2,h=l==="category"&&n.bandwidth?n.bandwidth()/f:0;return h=o==="angleAxis"&&i!=null&&i?.length>=2?Ca(i[0]-i[1])*2*h:h,c&&s?s.map((p,g)=>({coordinate:n(p)+h,value:p,index:g,offset:h})):n.domain().map((p,g)=>({coordinate:n(p)+h,value:a?a[p]:p,index:g,offset:h}))}}},su=ze([Qr,ua,m3,Vj,Kj,ooe,Aoe,ca],loe),w3=ze([Fj,Tj,bse],(e,t,r)=>Oj(r.shared,e,t)),Gj=e=>e.tooltip.settings.trigger,x3=e=>e.tooltip.settings.defaultIndex,xx=ze([gg,w3,Gj,x3],Mj),df=ze([xx,pg],v3),qj=ze([su,df],Uj),Wj=ze([xx],e=>{if(e)return e.dataKey}),Yj=ze([gg,w3,Gj,x3],kj),coe=ze([tu,ru,Qr,Aa,su,x3,Yj,uv],Pj),uoe=ze([xx,coe],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),foe=ze([xx],e=>e.active),hoe=ze([Yj,df,Tf,rj,qj,uv,w3],Qj),doe=ze([hoe],e=>{if(e!=null){var t=e.map(r=>r.payload).filter(r=>r!=null);return Array.from(new Set(t))}});function DD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ID(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?DD(Object(r),!0).forEach(function(n){goe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):DD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function goe(e,t,r){return(t=poe(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function poe(e){var t=voe(e,"string");return typeof t=="symbol"?t:t+""}function voe(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var moe=()=>Pt(ua),yoe=()=>{var e=moe(),t=Pt(su),r=Pt(Vj);return g1(ID(ID({},e),{},{scale:r}),t)},woe=()=>Pt(KS),b3=(e,t)=>t,$j=(e,t,r)=>r,B3=(e,t,r,n)=>n,xoe=ze(su,e=>Kw(e,t=>t.coordinate)),C3=ze([gg,b3,$j,B3],Mj),Xj=ze([C3,pg],v3),boe=(e,t,r)=>{if(t!=null){var n=gg(e);return t==="axis"?r==="hover"?n.axisInteraction.hover.dataKey:n.axisInteraction.click.dataKey:r==="hover"?n.itemInteraction.hover.dataKey:n.itemInteraction.click.dataKey}},Jj=ze([gg,b3,$j,B3],kj),I2=ze([tu,ru,Qr,Aa,su,B3,Jj,uv],Pj),Boe=ze([C3,I2],(e,t)=>{var r;return(r=e.coordinate)!==null&&r!==void 0?r:t}),Zj=ze(su,Xj,Uj),Coe=ze([Jj,Xj,Tf,rj,Zj,uv,b3],Qj),Eoe=ze([C3],e=>({isActive:e.active,activeIndex:e.index})),_oe=(e,t,r,n,i,a,s,o)=>{if(!(!e||!t||!n||!i||!a)){var l=Eee(e.chartX,e.chartY,t,r,o);if(l){var c=See(l,t),f=fee(c,s,a,n,i),h=_ee(t,a,f,l);return{activeIndex:String(f),activeCoordinate:h}}}};function C_(){return C_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},C_.apply(null,arguments)}function MD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Im(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?MD(Object(r),!0).forEach(function(n){Soe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):MD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Soe(e,t,r){return(t=Foe(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Foe(e){var t=Toe(e,"string");return typeof t=="symbol"?t:t+""}function Toe(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ooe(e){var{coordinate:t,payload:r,index:n,offset:i,tooltipAxisBandSize:a,layout:s,cursor:o,tooltipEventType:l,chartName:c}=e,f=t,h=r,p=n;if(!o||!f||c!=="ScatterChart"&&l!=="axis")return null;var g,y;if(c==="ScatterChart")g=f,y=Kte;else if(c==="BarChart")g=zte(s,f,i,a),y=WR;else if(s==="radial"){var{cx:m,cy:w,radius:b,startAngle:E,endAngle:S}=YR(f);g={cx:m,cy:w,startAngle:E,endAngle:S,innerRadius:b,outerRadius:b},y=XR}else g={points:Sre(s,f,i)},y=pS;var T=typeof o=="object"&&"className"in o?o.className:void 0,D=Im(Im(Im(Im({stroke:"#ccc",pointerEvents:"none"},i),g),Lh(o)),{},{payload:h,payloadIndex:p,className:Ur("recharts-tooltip-cursor",T)});return N.isValidElement(o)?N.cloneElement(o,D):N.createElement(y,D)}function Uoe(e){var t=yoe(),r=QR(),n=ex(),i=woe();return N.createElement(Ooe,C_({},e,{coordinate:e.coordinate,index:e.index,payload:e.payload,offset:r,layout:n,tooltipAxisBandSize:t,chartName:i}))}var eH=N.createContext(null),Noe=()=>N.useContext(eH),M5={exports:{}},PD;function Loe(){return PD||(PD=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(l,c,f){this.fn=l,this.context=c,this.once=f||!1}function a(l,c,f,h,p){if(typeof f!="function")throw new TypeError("The listener must be a function");var g=new i(f,h||l,p),y=r?r+c:c;return l._events[y]?l._events[y].fn?l._events[y]=[l._events[y],g]:l._events[y].push(g):(l._events[y]=g,l._eventsCount++),l}function s(l,c){--l._eventsCount===0?l._events=new n:delete l._events[c]}function o(){this._events=new n,this._eventsCount=0}o.prototype.eventNames=function(){var c=[],f,h;if(this._eventsCount===0)return c;for(h in f=this._events)t.call(f,h)&&c.push(r?h.slice(1):h);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(f)):c},o.prototype.listeners=function(c){var f=r?r+c:c,h=this._events[f];if(!h)return[];if(h.fn)return[h.fn];for(var p=0,g=h.length,y=new Array(g);p<g;p++)y[p]=h[p].fn;return y},o.prototype.listenerCount=function(c){var f=r?r+c:c,h=this._events[f];return h?h.fn?1:h.length:0},o.prototype.emit=function(c,f,h,p,g,y){var m=r?r+c:c;if(!this._events[m])return!1;var w=this._events[m],b=arguments.length,E,S;if(w.fn){switch(w.once&&this.removeListener(c,w.fn,void 0,!0),b){case 1:return w.fn.call(w.context),!0;case 2:return w.fn.call(w.context,f),!0;case 3:return w.fn.call(w.context,f,h),!0;case 4:return w.fn.call(w.context,f,h,p),!0;case 5:return w.fn.call(w.context,f,h,p,g),!0;case 6:return w.fn.call(w.context,f,h,p,g,y),!0}for(S=1,E=new Array(b-1);S<b;S++)E[S-1]=arguments[S];w.fn.apply(w.context,E)}else{var T=w.length,D;for(S=0;S<T;S++)switch(w[S].once&&this.removeListener(c,w[S].fn,void 0,!0),b){case 1:w[S].fn.call(w[S].context);break;case 2:w[S].fn.call(w[S].context,f);break;case 3:w[S].fn.call(w[S].context,f,h);break;case 4:w[S].fn.call(w[S].context,f,h,p);break;default:if(!E)for(D=1,E=new Array(b-1);D<b;D++)E[D-1]=arguments[D];w[S].fn.apply(w[S].context,E)}}return!0},o.prototype.on=function(c,f,h){return a(this,c,f,h,!1)},o.prototype.once=function(c,f,h){return a(this,c,f,h,!0)},o.prototype.removeListener=function(c,f,h,p){var g=r?r+c:c;if(!this._events[g])return this;if(!f)return s(this,g),this;var y=this._events[g];if(y.fn)y.fn===f&&(!p||y.once)&&(!h||y.context===h)&&s(this,g);else{for(var m=0,w=[],b=y.length;m<b;m++)(y[m].fn!==f||p&&!y[m].once||h&&y[m].context!==h)&&w.push(y[m]);w.length?this._events[g]=w.length===1?w[0]:w:s(this,g)}return this},o.prototype.removeAllListeners=function(c){var f;return c?(f=r?r+c:c,this._events[f]&&s(this,f)):(this._events=new n,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prefixed=r,o.EventEmitter=o,e.exports=o})(M5)),M5.exports}var Doe=Loe();const Ioe=sl(Doe);var b1=new Ioe,E_="recharts.syncEvent.tooltip",kD="recharts.syncEvent.brush";function E3(e,t){if(t){var r=Number.parseInt(t,10);if(!gA(r))return e?.[r]}}var Moe={chartName:"",tooltipPayloadSearcher:void 0,eventEmitter:void 0,defaultTooltipEventType:"axis"},tH=Qo({name:"options",initialState:Moe,reducers:{createEventEmitter:e=>{e.eventEmitter==null&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),Poe=tH.reducer,{createEventEmitter:koe}=tH.actions;function Qoe(e){return e.tooltip.syncInteraction}var Roe={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},rH=Qo({name:"chartData",initialState:Roe,reducers:{setChartData(e,t){if(e.chartData=t.payload,t.payload==null){e.dataStartIndex=0,e.dataEndIndex=0;return}t.payload.length>0&&e.dataEndIndex!==t.payload.length-1&&(e.dataEndIndex=t.payload.length-1)},setComputedData(e,t){e.computedData=t.payload},setDataStartEndIndexes(e,t){var{startIndex:r,endIndex:n}=t.payload;r!=null&&(e.dataStartIndex=r),n!=null&&(e.dataEndIndex=n)}}}),{setChartData:QD,setDataStartEndIndexes:joe,setComputedData:sOe}=rH.actions,Hoe=rH.reducer,Koe=["x","y"];function RD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function e0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?RD(Object(r),!0).forEach(function(n){zoe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):RD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zoe(e,t,r){return(t=Voe(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Voe(e){var t=Goe(e,"string");return typeof t=="symbol"?t:t+""}function Goe(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qoe(e,t){if(e==null)return{};var r,n,i=Woe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Woe(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var nH=()=>{};function Yoe(){var e=Pt(zS),t=Pt(VS),r=ri(),n=Pt($7),i=Pt(su),a=ex(),s=Zw(),o=Pt(l=>l.rootProps.className);N.useEffect(()=>{if(e==null)return nH;var l=(c,f,h)=>{if(t!==h&&e===c){if(n==="index"){var p;if(s&&f!==null&&f!==void 0&&(p=f.payload)!==null&&p!==void 0&&p.coordinate&&f.payload.sourceViewBox){var g=f.payload.coordinate,{x:y,y:m}=g,w=qoe(g,Koe),{x:b,y:E,width:S,height:T}=f.payload.sourceViewBox,D=e0(e0({},w),{},{x:s.x+(S?(y-b)/S:0)*s.width,y:s.y+(T?(m-E)/T:0)*s.height});r(e0(e0({},f),{},{payload:e0(e0({},f.payload),{},{coordinate:D})}))}else r(f);return}if(i!=null){var k;if(typeof n=="function"){var P={activeTooltipIndex:f.payload.index==null?void 0:Number(f.payload.index),isTooltipActive:f.payload.active,activeIndex:f.payload.index==null?void 0:Number(f.payload.index),activeLabel:f.payload.label,activeDataKey:f.payload.dataKey,activeCoordinate:f.payload.coordinate},R=n(i,P);k=i[R]}else n==="value"&&(k=i.find(G=>String(G.value)===f.payload.label));var{coordinate:O}=f.payload;if(k==null||f.payload.active===!1||O==null||s==null){r(b_({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0}));return}var{x:V,y:I}=O,Q=Math.min(V,s.x+s.width),W=Math.min(I,s.y+s.height),J={x:a==="horizontal"?k.coordinate:Q,y:a==="horizontal"?W:k.coordinate},fe=b_({active:f.payload.active,coordinate:J,dataKey:f.payload.dataKey,index:String(k.index),label:f.payload.label,sourceViewBox:f.payload.sourceViewBox});r(fe)}}};return b1.on(E_,l),()=>{b1.off(E_,l)}},[o,r,t,e,n,i,a,s])}function $oe(){var e=Pt(zS),t=Pt(VS),r=ri();N.useEffect(()=>{if(e==null)return nH;var n=(i,a,s)=>{t!==s&&e===i&&r(joe(a))};return b1.on(kD,n),()=>{b1.off(kD,n)}},[r,t,e])}function Xoe(){var e=ri();N.useEffect(()=>{e(koe())},[e]),Yoe(),$oe()}function Joe(e,t,r,n,i,a){var s=Pt(g=>boe(g,e,t)),o=Pt(VS),l=Pt(zS),c=Pt($7),f=Pt(Qoe),h=f?.active,p=Zw();N.useEffect(()=>{if(!h&&l!=null&&o!=null){var g=b_({active:a,coordinate:r,dataKey:s,index:i,label:typeof n=="number"?String(n):n,sourceViewBox:p});b1.emit(E_,l,g,o)}},[h,r,s,i,n,o,l,c,a,p])}function jD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function HD(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jD(Object(r),!0).forEach(function(n){Zoe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Zoe(e,t,r){return(t=eAe(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eAe(e){var t=tAe(e,"string");return typeof t=="symbol"?t:t+""}function tAe(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function rAe(e){return e.dataKey}function nAe(e,t){return N.isValidElement(e)?N.cloneElement(e,t):typeof e=="function"?N.createElement(e,t):N.createElement(xte,t)}var KD=[],iAe={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",axisId:0,contentStyle:{},cursor:!0,filterNull:!0,isAnimationActive:!_f.isSsr,itemSorter:"name",itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,wrapperStyle:{}};function zy(e){var t=Xa(e,iAe),{active:r,allowEscapeViewBox:n,animationDuration:i,animationEasing:a,content:s,filterNull:o,isAnimationActive:l,offset:c,payloadUniqBy:f,position:h,reverseDirection:p,useTranslate3d:g,wrapperStyle:y,cursor:m,shared:w,trigger:b,defaultIndex:E,portal:S,axisId:T}=t,D=ri(),k=typeof E=="number"?String(E):E;N.useEffect(()=>{D(_se({shared:w,trigger:b,axisId:T,active:r,defaultIndex:k}))},[D,w,b,T,r,k]);var P=Zw(),R=KR(),O=xse(w),{activeIndex:V,isActive:I}=Pt(q=>Eoe(q,O,b,k)),Q=Pt(q=>Coe(q,O,b,k)),W=Pt(q=>Zj(q,O,b,k)),J=Pt(q=>Boe(q,O,b,k)),fe=Q,G=Noe(),se=r??I,[ge,ye]=rR([fe,se]),_e=O==="axis"?W:void 0;Joe(O,b,J,_e,V,se);var Z=S??G;if(Z==null)return null;var L=fe??KD;se||(L=KD),o&&L.length&&(L=XQ(fe.filter(q=>q.value!=null&&(q.hide!==!0||t.includeHidden)),f,rAe));var j=L.length>0,K=N.createElement(Fte,{allowEscapeViewBox:n,animationDuration:i,animationEasing:a,isAnimationActive:l,active:se,coordinate:J,hasPayload:j,offset:c,position:h,reverseDirection:p,useTranslate3d:g,viewBox:P,wrapperStyle:y,lastBoundingBox:ge,innerRef:ye,hasPortalFromProps:!!S},nAe(s,HD(HD({},t),{},{payload:L,label:_e,active:se,coordinate:J,accessibilityLayer:R})));return N.createElement(N.Fragment,null,Gk.createPortal(K,Z),se&&N.createElement(Uoe,{cursor:m,tooltipEventType:O,coordinate:J,payload:fe,index:V}))}var hv=e=>null;hv.displayName="Cell";function aAe(e,t,r){return(t=sAe(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sAe(e){var t=oAe(e,"string");return typeof t=="symbol"?t:t+""}function oAe(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class AAe{constructor(t){aAe(this,"cache",new Map),this.maxSize=t}get(t){var r=this.cache.get(t);return r!==void 0&&(this.cache.delete(t),this.cache.set(t,r)),r}set(t,r){if(this.cache.has(t))this.cache.delete(t);else if(this.cache.size>=this.maxSize){var n=this.cache.keys().next().value;this.cache.delete(n)}this.cache.set(t,r)}clear(){this.cache.clear()}size(){return this.cache.size}}function zD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function lAe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zD(Object(r),!0).forEach(function(n){cAe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cAe(e,t,r){return(t=uAe(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uAe(e){var t=fAe(e,"string");return typeof t=="symbol"?t:t+""}function fAe(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var hAe={cacheSize:2e3,enableCache:!0},iH=lAe({},hAe),VD=new AAe(iH.cacheSize),dAe={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},GD="recharts_measurement_span";function gAe(e,t){var r=t.fontSize||"",n=t.fontFamily||"",i=t.fontWeight||"",a=t.fontStyle||"",s=t.letterSpacing||"",o=t.textTransform||"";return"".concat(e,"|").concat(r,"|").concat(n,"|").concat(i,"|").concat(a,"|").concat(s,"|").concat(o)}var qD=(e,t)=>{try{var r=document.getElementById(GD);r||(r=document.createElement("span"),r.setAttribute("id",GD),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),Object.assign(r.style,dAe,t),r.textContent="".concat(e);var n=r.getBoundingClientRect();return{width:n.width,height:n.height}}catch{return{width:0,height:0}}},zp=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||_f.isSsr)return{width:0,height:0};if(!iH.enableCache)return qD(t,r);var n=gAe(t,r),i=VD.get(n);if(i)return i;var a=qD(t,r);return VD.set(n,a),a},WD=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,YD=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,pAe=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,vAe=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,aH={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},mAe=Object.keys(aH),C0="NaN";function yAe(e,t){return e*aH[t]}class Js{static parse(t){var r,[,n,i]=(r=vAe.exec(t))!==null&&r!==void 0?r:[];return new Js(parseFloat(n),i??"")}constructor(t,r){this.num=t,this.unit=r,this.num=t,this.unit=r,gA(t)&&(this.unit=""),r!==""&&!pAe.test(r)&&(this.num=NaN,this.unit=""),mAe.includes(r)&&(this.num=yAe(t,r),this.unit="px")}add(t){return this.unit!==t.unit?new Js(NaN,""):new Js(this.num+t.num,this.unit)}subtract(t){return this.unit!==t.unit?new Js(NaN,""):new Js(this.num-t.num,this.unit)}multiply(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new Js(NaN,""):new Js(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new Js(NaN,""):new Js(this.num/t.num,this.unit||t.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return gA(this.num)}}function sH(e){if(e.includes(C0))return C0;for(var t=e;t.includes("*")||t.includes("/");){var r,[,n,i,a]=(r=WD.exec(t))!==null&&r!==void 0?r:[],s=Js.parse(n??""),o=Js.parse(a??""),l=i==="*"?s.multiply(o):s.divide(o);if(l.isNaN())return C0;t=t.replace(WD,l.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var c,[,f,h,p]=(c=YD.exec(t))!==null&&c!==void 0?c:[],g=Js.parse(f??""),y=Js.parse(p??""),m=h==="+"?g.add(y):g.subtract(y);if(m.isNaN())return C0;t=t.replace(YD,m.toString())}return t}var $D=/\(([^()]*)\)/;function wAe(e){for(var t=e,r;(r=$D.exec(t))!=null;){var[,n]=r;t=t.replace($D,sH(n))}return t}function xAe(e){var t=e.replace(/\s+/g,"");return t=wAe(t),t=sH(t),t}function bAe(e){try{return xAe(e)}catch{return C0}}function P5(e){var t=bAe(e.slice(5,-1));return t===C0?"":t}var BAe=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],CAe=["dx","dy","angle","className","breakAll"];function __(){return __=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},__.apply(null,arguments)}function XD(e,t){if(e==null)return{};var r,n,i=EAe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function EAe(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var oH=/[ \f\n\r\t\v\u2028\u2029]+/,AH=e=>{var{children:t,breakAll:r,style:n}=e;try{var i=[];ei(t)||(r?i=t.toString().split(""):i=t.toString().split(oH));var a=i.map(o=>({word:o,width:zp(o,n).width})),s=r?0:zp(" ",n).width;return{wordsWithComputedWidth:a,spaceWidth:s}}catch{return null}},_Ae=(e,t,r,n,i)=>{var{maxLines:a,children:s,style:o,breakAll:l}=e,c=zt(a),f=s,h=function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return I.reduce((Q,W)=>{var{word:J,width:fe}=W,G=Q[Q.length-1];if(G&&(n==null||i||G.width+fe+r<Number(n)))G.words.push(J),G.width+=fe+r;else{var se={words:[J],width:fe};Q.push(se)}return Q},[])},p=h(t),g=V=>V.reduce((I,Q)=>I.width>Q.width?I:Q);if(!c||i)return p;var y=p.length>a||g(p).width>Number(n);if(!y)return p;for(var m="…",w=V=>{var I=f.slice(0,V),Q=AH({breakAll:l,style:o,children:I+m}).wordsWithComputedWidth,W=h(Q),J=W.length>a||g(W).width>Number(n);return[J,W]},b=0,E=f.length-1,S=0,T;b<=E&&S<=f.length-1;){var D=Math.floor((b+E)/2),k=D-1,[P,R]=w(k),[O]=w(D);if(!P&&!O&&(b=D+1),P&&O&&(E=D-1),!P&&O){T=R;break}S++}return T||p},JD=e=>{var t=ei(e)?[]:e.toString().split(oH);return[{words:t}]},SAe=e=>{var{width:t,scaleToFit:r,children:n,style:i,breakAll:a,maxLines:s}=e;if((t||r)&&!_f.isSsr){var o,l,c=AH({breakAll:a,children:n,style:i});if(c){var{wordsWithComputedWidth:f,spaceWidth:h}=c;o=f,l=h}else return JD(n);return _Ae({breakAll:a,children:n,maxLines:s,style:i},o,l,t,r)}return JD(n)},ZD="#808080",bx=N.forwardRef((e,t)=>{var{x:r=0,y:n=0,lineHeight:i="1em",capHeight:a="0.71em",scaleToFit:s=!1,textAnchor:o="start",verticalAnchor:l="end",fill:c=ZD}=e,f=XD(e,BAe),h=N.useMemo(()=>SAe({breakAll:f.breakAll,children:f.children,maxLines:f.maxLines,scaleToFit:s,style:f.style,width:f.width}),[f.breakAll,f.children,f.maxLines,s,f.style,f.width]),{dx:p,dy:g,angle:y,className:m,breakAll:w}=f,b=XD(f,CAe);if(!zl(r)||!zl(n)||h.length===0)return null;var E=r+(zt(p)?p:0),S=n+(zt(g)?g:0),T;switch(l){case"start":T=P5("calc(".concat(a,")"));break;case"middle":T=P5("calc(".concat((h.length-1)/2," * -").concat(i," + (").concat(a," / 2))"));break;default:T=P5("calc(".concat(h.length-1," * -").concat(i,")"));break}var D=[];if(s){var k=h[0].width,{width:P}=f;D.push("scale(".concat(zt(P)?P/k:1,")"))}return y&&D.push("rotate(".concat(y,", ").concat(E,", ").concat(S,")")),D.length&&(b.transform=D.join(" ")),N.createElement("text",__({},Us(b),{ref:t,x:E,y:S,className:Ur("recharts-text",m),textAnchor:o,fill:c.includes("url")?ZD:c}),h.map((R,O)=>{var V=R.words.join(w?"":" ");return N.createElement("tspan",{x:E,dy:O===0?T:i,key:"".concat(V,"-").concat(O)},V)}))});bx.displayName="Text";var FAe=["labelRef"];function TAe(e,t){if(e==null)return{};var r,n,i=OAe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function OAe(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function e6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ui(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?e6(Object(r),!0).forEach(function(n){UAe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):e6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function UAe(e,t,r){return(t=NAe(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function NAe(e){var t=LAe(e,"string");return typeof t=="symbol"?t:t+""}function LAe(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Lc(){return Lc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Lc.apply(null,arguments)}var lH=N.createContext(null),DAe=e=>{var{x:t,y:r,width:n,height:i,children:a}=e,s=N.useMemo(()=>({x:t,y:r,width:n,height:i}),[t,r,n,i]);return N.createElement(lH.Provider,{value:s},a)},cH=()=>{var e=N.useContext(lH),t=Zw();return e||t},IAe=N.createContext(null),MAe=()=>{var e=N.useContext(IAe),t=Pt(tj);return e||t},PAe=e=>{var{value:t,formatter:r}=e,n=ei(e.children)?t:e.children;return typeof r=="function"?r(n):n},_3=e=>e!=null&&typeof e=="function",kAe=(e,t)=>{var r=Ca(t-e),n=Math.min(Math.abs(t-e),360);return r*n},QAe=(e,t,r,n,i)=>{var{offset:a,className:s}=e,{cx:o,cy:l,innerRadius:c,outerRadius:f,startAngle:h,endAngle:p,clockWise:g}=i,y=(c+f)/2,m=kAe(h,p),w=m>=0?1:-1,b,E;switch(t){case"insideStart":b=h+w*a,E=g;break;case"insideEnd":b=p-w*a,E=!g;break;case"end":b=p+w*a,E=g;break;default:throw new Error("Unsupported position ".concat(t))}E=m<=0?E:!E;var S=Vi(o,l,y,b),T=Vi(o,l,y,b+(E?1:-1)*359),D="M".concat(S.x,",").concat(S.y,`
    A`).concat(y,",").concat(y,",0,1,").concat(E?0:1,`,
    `).concat(T.x,",").concat(T.y),k=ei(e.id)?f1("recharts-radial-line-"):e.id;return N.createElement("text",Lc({},n,{dominantBaseline:"central",className:Ur("recharts-radial-bar-label",s)}),N.createElement("defs",null,N.createElement("path",{id:k,d:D})),N.createElement("textPath",{xlinkHref:"#".concat(k)},r))},RAe=(e,t,r)=>{var{cx:n,cy:i,innerRadius:a,outerRadius:s,startAngle:o,endAngle:l}=e,c=(o+l)/2;if(r==="outside"){var{x:f,y:h}=Vi(n,i,s+t,c);return{x:f,y:h,textAnchor:f>=n?"start":"end",verticalAnchor:"middle"}}if(r==="center")return{x:n,y:i,textAnchor:"middle",verticalAnchor:"middle"};if(r==="centerTop")return{x:n,y:i,textAnchor:"middle",verticalAnchor:"start"};if(r==="centerBottom")return{x:n,y:i,textAnchor:"middle",verticalAnchor:"end"};var p=(a+s)/2,{x:g,y}=Vi(n,i,p,c);return{x:g,y,textAnchor:"middle",verticalAnchor:"middle"}},uH=e=>"cx"in e&&zt(e.cx),jAe=(e,t)=>{var{parentViewBox:r,offset:n,position:i}=e,a;r!=null&&!uH(r)&&(a=r);var{x:s,y:o,width:l,height:c}=t,f=c>=0?1:-1,h=f*n,p=f>0?"end":"start",g=f>0?"start":"end",y=l>=0?1:-1,m=y*n,w=y>0?"end":"start",b=y>0?"start":"end";if(i==="top"){var E={x:s+l/2,y:o-f*n,textAnchor:"middle",verticalAnchor:p};return Ui(Ui({},E),a?{height:Math.max(o-a.y,0),width:l}:{})}if(i==="bottom"){var S={x:s+l/2,y:o+c+h,textAnchor:"middle",verticalAnchor:g};return Ui(Ui({},S),a?{height:Math.max(a.y+a.height-(o+c),0),width:l}:{})}if(i==="left"){var T={x:s-m,y:o+c/2,textAnchor:w,verticalAnchor:"middle"};return Ui(Ui({},T),a?{width:Math.max(T.x-a.x,0),height:c}:{})}if(i==="right"){var D={x:s+l+m,y:o+c/2,textAnchor:b,verticalAnchor:"middle"};return Ui(Ui({},D),a?{width:Math.max(a.x+a.width-D.x,0),height:c}:{})}var k=a?{width:l,height:c}:{};return i==="insideLeft"?Ui({x:s+m,y:o+c/2,textAnchor:b,verticalAnchor:"middle"},k):i==="insideRight"?Ui({x:s+l-m,y:o+c/2,textAnchor:w,verticalAnchor:"middle"},k):i==="insideTop"?Ui({x:s+l/2,y:o+h,textAnchor:"middle",verticalAnchor:g},k):i==="insideBottom"?Ui({x:s+l/2,y:o+c-h,textAnchor:"middle",verticalAnchor:p},k):i==="insideTopLeft"?Ui({x:s+m,y:o+h,textAnchor:b,verticalAnchor:g},k):i==="insideTopRight"?Ui({x:s+l-m,y:o+h,textAnchor:w,verticalAnchor:g},k):i==="insideBottomLeft"?Ui({x:s+m,y:o+c-h,textAnchor:b,verticalAnchor:p},k):i==="insideBottomRight"?Ui({x:s+l-m,y:o+c-h,textAnchor:w,verticalAnchor:p},k):i&&typeof i=="object"&&(zt(i.x)||Vc(i.x))&&(zt(i.y)||Vc(i.y))?Ui({x:s+us(i.x,l),y:o+us(i.y,c),textAnchor:"end",verticalAnchor:"end"},k):Ui({x:s+l/2,y:o+c/2,textAnchor:"middle",verticalAnchor:"middle"},k)},HAe={offset:5};function Yu(e){var t=Xa(e,HAe),{viewBox:r,position:n,value:i,children:a,content:s,className:o="",textBreakAll:l,labelRef:c}=t,f=MAe(),h=cH(),p=n==="center"?h:f??h,g=r||p;if(!g||ei(i)&&ei(a)&&!N.isValidElement(s)&&typeof s!="function")return null;var y=Ui(Ui({},t),{},{viewBox:g});if(N.isValidElement(s)){var{labelRef:m}=y,w=TAe(y,FAe);return N.cloneElement(s,w)}var b;if(typeof s=="function"){if(b=N.createElement(s,y),N.isValidElement(b))return b}else b=PAe(t);var E=uH(g),S=Us(t);if(E&&(n==="insideStart"||n==="insideEnd"||n==="end"))return QAe(t,n,b,S,g);var T=E?RAe(g,t.offset,t.position):jAe(t,g);return N.createElement(bx,Lc({ref:c,className:Ur("recharts-label",o)},S,T,{breakAll:l}),b)}Yu.displayName="Label";var KAe=(e,t,r)=>{if(!e)return null;var n={viewBox:t,labelRef:r};return e===!0?N.createElement(Yu,Lc({key:"label-implicit"},n)):zl(e)?N.createElement(Yu,Lc({key:"label-implicit",value:e},n)):N.isValidElement(e)?e.type===Yu?N.cloneElement(e,Ui({key:"label-implicit"},n)):N.createElement(Yu,Lc({key:"label-implicit",content:e},n)):_3(e)?N.createElement(Yu,Lc({key:"label-implicit",content:e},n)):e&&typeof e=="object"?N.createElement(Yu,Lc({},e,{key:"label-implicit"},n)):null};function zAe(e){var{label:t,labelRef:r}=e,n=cH();return KAe(t,n,r)||null}var k5={},Q5={},t6;function VAe(){return t6||(t6=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r[r.length-1]}e.last=t})(Q5)),Q5}var R5={},r6;function GAe(){return r6||(r6=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Array.isArray(r)?r:Array.from(r)}e.toArray=t})(R5)),R5}var n6;function qAe(){return n6||(n6=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=VAe(),r=GAe(),n=nS();function i(a){if(n.isArrayLike(a))return t.last(r.toArray(a))}e.last=i})(k5)),k5}var j5,i6;function WAe(){return i6||(i6=1,j5=qAe().last),j5}var YAe=WAe();const $Ae=sl(YAe);var XAe=["valueAccessor"],JAe=["dataKey","clockWise","id","textBreakAll"];function M2(){return M2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},M2.apply(null,arguments)}function a6(e,t){if(e==null)return{};var r,n,i=ZAe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function ZAe(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var ele=e=>Array.isArray(e.value)?$Ae(e.value):e.value,fH=N.createContext(void 0),hH=fH.Provider,dH=N.createContext(void 0),tle=dH.Provider;function rle(){return N.useContext(fH)}function nle(){return N.useContext(dH)}function Vy(e){var{valueAccessor:t=ele}=e,r=a6(e,XAe),{dataKey:n,clockWise:i,id:a,textBreakAll:s}=r,o=a6(r,JAe),l=rle(),c=nle(),f=l||c;return!f||!f.length?null:N.createElement(Ya,{className:"recharts-label-list"},f.map((h,p)=>{var g,y=ei(n)?t(h,p):Dn(h&&h.payload,n),m=ei(a)?{}:{id:"".concat(a,"-").concat(p)};return N.createElement(Yu,M2({key:"label-".concat(p)},Us(h),o,m,{fill:(g=r.fill)!==null&&g!==void 0?g:h.fill,parentViewBox:h.parentViewBox,value:y,textBreakAll:s,viewBox:h.viewBox,index:p}))}))}Vy.displayName="LabelList";function S3(e){var{label:t}=e;return t?t===!0?N.createElement(Vy,{key:"labelList-implicit"}):N.isValidElement(t)||_3(t)?N.createElement(Vy,{key:"labelList-implicit",content:t}):typeof t=="object"?N.createElement(Vy,M2({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}function S_(){return S_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},S_.apply(null,arguments)}var gH=e=>{var{cx:t,cy:r,r:n,className:i}=e,a=Ur("recharts-dot",i);return t===+t&&r===+r&&n===+n?N.createElement("circle",S_({},Mo(e),eS(e),{className:a,cx:t,cy:r,r:n})):null},pH=e=>e.graphicalItems.polarItems,ile=ze([ni,ov],XS),Bx=ze([pH,ui,ile],JS),ale=ze([Bx],ZS),Cx=ze([ale,RS],e3),sle=ze([Cx,ui,Bx],r3);ze([Cx,ui,Bx],(e,t,r)=>r.length>0?e.flatMap(n=>r.flatMap(i=>{var a,s=Dn(n,(a=t.dataKey)!==null&&a!==void 0?a:i.dataKey);return{value:s,errorDomain:[]}})).filter(Boolean):t?.dataKey!=null?e.map(n=>({value:Dn(n,t.dataKey),errorDomain:[]})):e.map(n=>({value:n,errorDomain:[]})));var s6=()=>{},ole=ze([Cx,ui,Bx,mx,ni],s3),Ale=ze([ui,i3,a3,s6,ole,s6,Qr,ni],o3),vH=ze([ui,Qr,Cx,sle,sv,ni,Ale],A3),lle=ze([vH,ui,hg],u3);ze([ui,vH,lle,ni],h3);var cle={radiusAxis:{},angleAxis:{}},mH=Qo({name:"polarAxis",initialState:cle,reducers:{addRadiusAxis(e,t){e.radiusAxis[t.payload.id]=t.payload},removeRadiusAxis(e,t){delete e.radiusAxis[t.payload.id]},addAngleAxis(e,t){e.angleAxis[t.payload.id]=t.payload},removeAngleAxis(e,t){delete e.angleAxis[t.payload.id]}}}),{addRadiusAxis:oOe,removeRadiusAxis:AOe,addAngleAxis:lOe,removeAngleAxis:cOe}=mH.actions,ule=mH.reducer;function o6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function A6(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?o6(Object(r),!0).forEach(function(n){fle(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fle(e,t,r){return(t=hle(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hle(e){var t=dle(e,"string");return typeof t=="symbol"?t:t+""}function dle(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var gle=(e,t)=>t,F3=ze([pH,gle],(e,t)=>e.filter(r=>r.type==="pie").find(r=>r.id===t)),ple=[],T3=(e,t,r)=>r?.length===0?ple:r,yH=ze([RS,F3,T3],(e,t,r)=>{var{chartData:n}=e;if(t!=null){var i;if(t?.data!=null&&t.data.length>0?i=t.data:i=n,(!i||!i.length)&&r!=null&&(i=r.map(a=>A6(A6({},t.presentationProps),a.props))),i!=null)return i}}),vle=ze([yH,F3,T3],(e,t,r)=>{if(!(e==null||t==null))return e.map((n,i)=>{var a,s=Dn(n,t.nameKey,t.name),o;return r!=null&&(a=r[i])!==null&&a!==void 0&&(a=a.props)!==null&&a!==void 0&&a.fill?o=r[i].props.fill:typeof n=="object"&&n!=null&&"fill"in n?o=n.fill:o=t.fill,{value:sg(s,t.dataKey),color:o,payload:n,type:t.legendType}})}),mle=ze([yH,F3,T3,Aa],(e,t,r,n)=>{if(!(t==null||e==null))return mce({offset:n,pieSettings:t,displayedData:e,cells:r})}),H5={exports:{}},bn={};/**
 * @license React
 * react-is.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var l6;function yle(){if(l6)return bn;l6=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),o=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");function y(m){if(typeof m=="object"&&m!==null){var w=m.$$typeof;switch(w){case e:switch(m=m.type,m){case r:case i:case n:case l:case c:case p:return m;default:switch(m=m&&m.$$typeof,m){case s:case o:case h:case f:return m;case a:return m;default:return w}}case t:return w}}}return bn.ContextConsumer=a,bn.ContextProvider=s,bn.Element=e,bn.ForwardRef=o,bn.Fragment=r,bn.Lazy=h,bn.Memo=f,bn.Portal=t,bn.Profiler=i,bn.StrictMode=n,bn.Suspense=l,bn.SuspenseList=c,bn.isContextConsumer=function(m){return y(m)===a},bn.isContextProvider=function(m){return y(m)===s},bn.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===e},bn.isForwardRef=function(m){return y(m)===o},bn.isFragment=function(m){return y(m)===r},bn.isLazy=function(m){return y(m)===h},bn.isMemo=function(m){return y(m)===f},bn.isPortal=function(m){return y(m)===t},bn.isProfiler=function(m){return y(m)===i},bn.isStrictMode=function(m){return y(m)===n},bn.isSuspense=function(m){return y(m)===l},bn.isSuspenseList=function(m){return y(m)===c},bn.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===r||m===i||m===n||m===l||m===c||typeof m=="object"&&m!==null&&(m.$$typeof===h||m.$$typeof===f||m.$$typeof===s||m.$$typeof===a||m.$$typeof===o||m.$$typeof===g||m.getModuleId!==void 0)},bn.typeOf=y,bn}var c6;function wle(){return c6||(c6=1,H5.exports=yle()),H5.exports}var xle=wle(),u6=e=>typeof e=="string"?e:e?e.displayName||e.name||"Component":"",f6=null,K5=null,wH=e=>{if(e===f6&&Array.isArray(K5))return K5;var t=[];return N.Children.forEach(e,r=>{ei(r)||(xle.isFragment(r)?t=t.concat(wH(r.props.children)):t.push(r))}),K5=t,f6=e,t};function O3(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(i=>u6(i)):n=[u6(t)],wH(e).forEach(i=>{var a=Dh(i,"type.displayName")||Dh(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}var xH=e=>e&&typeof e=="object"&&"clipDot"in e?!!e.clipDot:!0,z5={},h6;function ble(){return h6||(h6=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){if(typeof r!="object"||r==null)return!1;if(Object.getPrototypeOf(r)===null)return!0;if(Object.prototype.toString.call(r)!=="[object Object]"){const i=r[Symbol.toStringTag];return i==null||!Object.getOwnPropertyDescriptor(r,Symbol.toStringTag)?.writable?!1:r.toString()===`[object ${i}]`}let n=r;for(;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(r)===n}e.isPlainObject=t})(z5)),z5}var V5,d6;function Ble(){return d6||(d6=1,V5=ble().isPlainObject),V5}var Cle=Ble();const Ele=sl(Cle);function g6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function p6(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?g6(Object(r),!0).forEach(function(n){_le(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _le(e,t,r){return(t=Sle(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Sle(e){var t=Fle(e,"string");return typeof t=="symbol"?t:t+""}function Fle(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function P2(){return P2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},P2.apply(null,arguments)}var v6=(e,t,r,n,i)=>{var a=r-n,s;return s="M ".concat(e,",").concat(t),s+="L ".concat(e+r,",").concat(t),s+="L ".concat(e+r-a/2,",").concat(t+i),s+="L ".concat(e+r-a/2-n,",").concat(t+i),s+="L ".concat(e,",").concat(t," Z"),s},Tle={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Ole=e=>{var t=Xa(e,Tle),{x:r,y:n,upperWidth:i,lowerWidth:a,height:s,className:o}=t,{animationEasing:l,animationDuration:c,animationBegin:f,isUpdateAnimationActive:h}=t,p=N.useRef(null),[g,y]=N.useState(-1),m=N.useRef(i),w=N.useRef(a),b=N.useRef(s),E=N.useRef(r),S=N.useRef(n),T=tv(e,"trapezoid-");if(N.useEffect(()=>{if(p.current&&p.current.getTotalLength)try{var J=p.current.getTotalLength();J&&y(J)}catch{}},[]),r!==+r||n!==+n||i!==+i||a!==+a||s!==+s||i===0&&a===0||s===0)return null;var D=Ur("recharts-trapezoid",o);if(!h)return N.createElement("g",null,N.createElement("path",P2({},Us(t),{className:D,d:v6(r,n,i,a,s)})));var k=m.current,P=w.current,R=b.current,O=E.current,V=S.current,I="0px ".concat(g===-1?1:g,"px"),Q="".concat(g,"px 0px"),W=zR(["strokeDasharray"],c,l);return N.createElement(ev,{animationId:T,key:T,canBegin:g>0,duration:c,easing:l,isActive:h,begin:f},J=>{var fe=Bi(k,i,J),G=Bi(P,a,J),se=Bi(R,s,J),ge=Bi(O,r,J),ye=Bi(V,n,J);p.current&&(m.current=fe,w.current=G,b.current=se,E.current=ge,S.current=ye);var _e=J>0?{transition:W,strokeDasharray:Q}:{strokeDasharray:I};return N.createElement("path",P2({},Us(t),{className:D,d:v6(ge,ye,fe,G,se),ref:p,style:p6(p6({},_e),t.style)}))})},Ule=["option","shapeType","propTransformer","activeClassName","isActive"];function Nle(e,t){if(e==null)return{};var r,n,i=Lle(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Lle(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function m6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function k2(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?m6(Object(r),!0).forEach(function(n){Dle(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Dle(e,t,r){return(t=Ile(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ile(e){var t=Mle(e,"string");return typeof t=="symbol"?t:t+""}function Mle(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ple(e,t){return k2(k2({},t),e)}function kle(e,t){return e==="symbols"}function y6(e){var{shapeType:t,elementProps:r}=e;switch(t){case"rectangle":return N.createElement(WR,r);case"trapezoid":return N.createElement(Ole,r);case"sector":return N.createElement(XR,r);case"symbols":if(kle(t))return N.createElement(Z4,r);break;default:return null}}function Qle(e){return N.isValidElement(e)?e.props:e}function bH(e){var{option:t,shapeType:r,propTransformer:n=Ple,activeClassName:i="recharts-active-shape",isActive:a}=e,s=Nle(e,Ule),o;if(N.isValidElement(t))o=N.cloneElement(t,k2(k2({},s),Qle(t)));else if(typeof t=="function")o=t(s);else if(Ele(t)&&typeof t!="boolean"){var l=n(t,s);o=N.createElement(y6,{shapeType:r,elementProps:l})}else{var c=s;o=N.createElement(y6,{shapeType:r,elementProps:c})}return a?N.createElement(Ya,{className:i},o):o}var U3=(e,t)=>{var r=ri();return(n,i)=>a=>{e?.(n,i,a),r(Lj({activeIndex:String(i),activeDataKey:t,activeCoordinate:n.tooltipPosition}))}},N3=e=>{var t=ri();return(r,n)=>i=>{e?.(r,n,i),t(Sse())}},L3=(e,t)=>{var r=ri();return(n,i)=>a=>{e?.(n,i,a),r(Fse({activeIndex:String(i),activeDataKey:t,activeCoordinate:n.tooltipPosition}))}};function D3(e){var{fn:t,args:r}=e,n=ri(),i=Ns();return N.useLayoutEffect(()=>{if(!i){var a=t(r);return n(Cse(a)),()=>{n(Ese(a))}}},[t,r,n,i]),null}var BH=()=>{};function CH(e){var{legendPayload:t}=e,r=ri(),n=Ns();return N.useLayoutEffect(()=>n?BH:(r(jR(t)),()=>{r(HR(t))}),[r,n,t]),null}function Rle(e){var{legendPayload:t}=e,r=ri(),n=Pt(Qr);return N.useLayoutEffect(()=>n!=="centric"&&n!=="radial"?BH:(r(jR(t)),()=>{r(HR(t))}),[r,n,t]),null}var G5,jle=()=>{var[e]=N.useState(()=>f1("uid-"));return e},Hle=(G5=Pq.useId)!==null&&G5!==void 0?G5:jle;function Kle(e,t){var r=Hle();return t||(e?"".concat(e,"-").concat(r):r)}var zle=N.createContext(void 0),I3=e=>{var{id:t,type:r,children:n}=e,i=Kle("recharts-".concat(r),t);return N.createElement(zle.Provider,{value:i},n(i))},Vle={cartesianItems:[],polarItems:[]},EH=Qo({name:"graphicalItems",initialState:Vle,reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push(t.payload)},prepare:Es()},replaceCartesianGraphicalItem:{reducer(e,t){var{prev:r,next:n}=t.payload,i=kc(e).cartesianItems.indexOf(r);i>-1&&(e.cartesianItems[i]=n)},prepare:Es()},removeCartesianGraphicalItem:{reducer(e,t){var r=kc(e).cartesianItems.indexOf(t.payload);r>-1&&e.cartesianItems.splice(r,1)},prepare:Es()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push(t.payload)},prepare:Es()},removePolarGraphicalItem:{reducer(e,t){var r=kc(e).polarItems.indexOf(t.payload);r>-1&&e.polarItems.splice(r,1)},prepare:Es()}}}),{addCartesianGraphicalItem:Gle,replaceCartesianGraphicalItem:qle,removeCartesianGraphicalItem:Wle,addPolarGraphicalItem:Yle,removePolarGraphicalItem:$le}=EH.actions,Xle=EH.reducer;function _H(e){var t=ri(),r=N.useRef(null);return N.useLayoutEffect(()=>{r.current===null?t(Gle(e)):r.current!==e&&t(qle({prev:r.current,next:e})),r.current=e},[t,e]),N.useLayoutEffect(()=>()=>{r.current&&(t(Wle(r.current)),r.current=null)},[t]),null}function Jle(e){var t=ri();return N.useLayoutEffect(()=>(t(Yle(e)),()=>{t($le(e))}),[t,e]),null}var Zle=["onMouseEnter","onClick","onMouseLeave"],ece=["id"],tce=["id"];function M3(e,t){if(e==null)return{};var r,n,i=rce(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function rce(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function w6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Jn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?w6(Object(r),!0).forEach(function(n){nce(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nce(e,t,r){return(t=ice(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ice(e){var t=ace(e,"string");return typeof t=="symbol"?t:t+""}function ace(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gf(){return gf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},gf.apply(null,arguments)}function sce(e){var t=N.useMemo(()=>O3(e.children,hv),[e.children]),r=Pt(n=>vle(n,e.id,t));return r==null?null:N.createElement(Rle,{legendPayload:r})}function oce(e){var{dataKey:t,nameKey:r,sectors:n,stroke:i,strokeWidth:a,fill:s,name:o,hide:l,tooltipType:c}=e;return{dataDefinedOnItem:n.map(f=>f.tooltipPayload),positions:n.map(f=>f.tooltipPosition),settings:{stroke:i,strokeWidth:a,fill:s,dataKey:t,nameKey:r,name:sg(o,t),hide:l,type:c,color:s,unit:""}}}var Ace=(e,t)=>e>t?"start":e<t?"end":"middle",lce=(e,t,r)=>us(typeof t=="function"?t(e):t,r,r*.8),cce=(e,t,r)=>{var{top:n,left:i,width:a,height:s}=t,o=TR(a,s),l=i+us(e.cx,a,a/2),c=n+us(e.cy,s,s/2),f=us(e.innerRadius,o,0),h=lce(r,e.outerRadius,o),p=e.maxRadius||Math.sqrt(a*a+s*s)/2;return{cx:l,cy:c,innerRadius:f,outerRadius:h,maxRadius:p}},uce=(e,t)=>{var r=Ca(t-e),n=Math.min(Math.abs(t-e),360);return r*n};function fce(e){return e&&typeof e=="object"&&"className"in e&&typeof e.className=="string"?e.className:""}var hce=(e,t)=>{if(N.isValidElement(e))return N.cloneElement(e,t);if(typeof e=="function")return e(t);var r=Ur("recharts-pie-label-line",typeof e!="boolean"?e.className:"");return N.createElement(pS,gf({},t,{type:"linear",className:r}))},dce=(e,t,r)=>{if(N.isValidElement(e))return N.cloneElement(e,t);var n=r;if(typeof e=="function"&&(n=e(t),N.isValidElement(n)))return n;var i=Ur("recharts-pie-label-text",fce(e));return N.createElement(bx,gf({},t,{alignmentBaseline:"middle",className:i}),n)};function gce(e){var{sectors:t,props:r,showLabels:n}=e,{label:i,labelLine:a,dataKey:s}=r;if(!n||!i||!t)return null;var o=Mo(r),l=Lh(i),c=Lh(a),f=typeof i=="object"&&"offsetRadius"in i&&typeof i.offsetRadius=="number"&&i.offsetRadius||20,h=t.map((p,g)=>{var y=(p.startAngle+p.endAngle)/2,m=Vi(p.cx,p.cy,p.outerRadius+f,y),w=Jn(Jn(Jn(Jn({},o),p),{},{stroke:"none"},l),{},{index:g,textAnchor:Ace(m.x,p.cx)},m),b=Jn(Jn(Jn(Jn({},o),p),{},{fill:"none",stroke:p.fill},c),{},{index:g,points:[Vi(p.cx,p.cy,p.outerRadius,y),m],key:"line"});return N.createElement(Ya,{key:"label-".concat(p.startAngle,"-").concat(p.endAngle,"-").concat(p.midAngle,"-").concat(g)},a&&hce(a,b),dce(i,w,Dn(p,s)))});return N.createElement(Ya,{className:"recharts-pie-labels"},h)}function pce(e){var{sectors:t,props:r,showLabels:n}=e,{label:i}=r;return typeof i=="object"&&i!=null&&"position"in i?N.createElement(S3,{label:i}):N.createElement(gce,{sectors:t,props:r,showLabels:n})}function vce(e){var{sectors:t,activeShape:r,inactiveShape:n,allOtherPieProps:i}=e,a=Pt(df),{onMouseEnter:s,onClick:o,onMouseLeave:l}=i,c=M3(i,Zle),f=U3(s,i.dataKey),h=N3(l),p=L3(o,i.dataKey);return t==null||t.length===0?null:N.createElement(N.Fragment,null,t.map((g,y)=>{if(g?.startAngle===0&&g?.endAngle===0&&t.length!==1)return null;var m=r&&String(y)===a,w=a?n:null,b=m?r:w,E=Jn(Jn({},g),{},{stroke:g.stroke,tabIndex:-1,[DR]:y,[IR]:i.dataKey});return N.createElement(Ya,gf({key:"sector-".concat(g?.startAngle,"-").concat(g?.endAngle,"-").concat(g.midAngle,"-").concat(y),tabIndex:-1,className:"recharts-pie-sector"},$1(c,g,y),{onMouseEnter:f(g,y),onMouseLeave:h(g,y),onClick:p(g,y)}),N.createElement(bH,gf({option:b,isActive:m,shapeType:"sector"},E)))}))}function mce(e){var t,{pieSettings:r,displayedData:n,cells:i,offset:a}=e,{cornerRadius:s,startAngle:o,endAngle:l,dataKey:c,nameKey:f,tooltipType:h}=r,p=Math.abs(r.minAngle),g=uce(o,l),y=Math.abs(g),m=n.length<=1?0:(t=r.paddingAngle)!==null&&t!==void 0?t:0,w=n.filter(k=>Dn(k,c,0)!==0).length,b=(y>=360?w:w-1)*m,E=y-w*p-b,S=n.reduce((k,P)=>{var R=Dn(P,c,0);return k+(zt(R)?R:0)},0),T;if(S>0){var D;T=n.map((k,P)=>{var R=Dn(k,c,0),O=Dn(k,f,P),V=cce(r,a,k),I=(zt(R)?R:0)/S,Q,W=Jn(Jn({},k),i&&i[P]&&i[P].props);P?Q=D.endAngle+Ca(g)*m*(R!==0?1:0):Q=o;var J=Q+Ca(g)*((R!==0?p:0)+I*E),fe=(Q+J)/2,G=(V.innerRadius+V.outerRadius)/2,se=[{name:O,value:R,payload:W,dataKey:c,type:h}],ge=Vi(V.cx,V.cy,G,fe);return D=Jn(Jn(Jn(Jn({},r.presentationProps),{},{percent:I,cornerRadius:s,name:O,tooltipPayload:se,midAngle:fe,middleRadius:G,tooltipPosition:ge},W),V),{},{value:R,startAngle:Q,endAngle:J,payload:W,paddingAngle:Ca(g)*m}),D})}return T}function yce(e){var{showLabels:t,sectors:r,children:n}=e,i=N.useMemo(()=>!t||!r?[]:r.map(a=>({value:a.value,payload:a.payload,clockWise:!1,parentViewBox:void 0,viewBox:{cx:a.cx,cy:a.cy,innerRadius:a.innerRadius,outerRadius:a.outerRadius,startAngle:a.startAngle,endAngle:a.endAngle,clockWise:!1},fill:a.fill})),[r,t]);return N.createElement(tle,{value:t?i:void 0},n)}function wce(e){var{props:t,previousSectorsRef:r}=e,{sectors:n,isAnimationActive:i,animationBegin:a,animationDuration:s,animationEasing:o,activeShape:l,inactiveShape:c,onAnimationStart:f,onAnimationEnd:h}=t,p=tv(t,"recharts-pie-"),g=r.current,[y,m]=N.useState(!1),w=N.useCallback(()=>{typeof h=="function"&&h(),m(!1)},[h]),b=N.useCallback(()=>{typeof f=="function"&&f(),m(!0)},[f]);return N.createElement(yce,{showLabels:!y,sectors:n},N.createElement(ev,{animationId:p,begin:a,duration:s,isActive:i,easing:o,onAnimationStart:b,onAnimationEnd:w,key:p},E=>{var S=[],T=n&&n[0],D=T?.startAngle;return n?.forEach((k,P)=>{var R=g&&g[P],O=P>0?Dh(k,"paddingAngle",0):0;if(R){var V=Bi(R.endAngle-R.startAngle,k.endAngle-k.startAngle,E),I=Jn(Jn({},k),{},{startAngle:D+O,endAngle:D+V+O});S.push(I),D=I.endAngle}else{var{endAngle:Q,startAngle:W}=k,J=Bi(0,Q-W,E),fe=Jn(Jn({},k),{},{startAngle:D+O,endAngle:D+J+O});S.push(fe),D=fe.endAngle}}),r.current=S,N.createElement(Ya,null,N.createElement(vce,{sectors:S,activeShape:l,inactiveShape:c,allOtherPieProps:t}))}),N.createElement(pce,{showLabels:!y,sectors:n,props:t}),t.children)}var xce={animationBegin:400,animationDuration:1500,animationEasing:"ease",cx:"50%",cy:"50%",dataKey:"value",endAngle:360,fill:"#808080",hide:!1,innerRadius:0,isAnimationActive:!_f.isSsr,labelLine:!0,legendType:"rect",minAngle:0,nameKey:"name",outerRadius:"80%",paddingAngle:0,rootTabIndex:0,startAngle:0,stroke:"#fff"};function bce(e){var{id:t}=e,r=M3(e,ece),{hide:n,className:i,rootTabIndex:a}=e,s=N.useMemo(()=>O3(e.children,hv),[e.children]),o=Pt(f=>mle(f,t,s)),l=N.useRef(null),c=Ur("recharts-pie",i);return n||o==null?(l.current=null,N.createElement(Ya,{tabIndex:a,className:c})):N.createElement(N.Fragment,null,N.createElement(D3,{fn:oce,args:Jn(Jn({},e),{},{sectors:o})}),N.createElement(Ya,{tabIndex:a,className:c},N.createElement(wce,{props:Jn(Jn({},r),{},{sectors:o}),previousSectorsRef:l})))}function SH(e){var t=Xa(e,xce),{id:r}=t,n=M3(t,tce),i=Mo(n);return N.createElement(I3,{id:r,type:"pie"},a=>N.createElement(N.Fragment,null,N.createElement(Jle,{type:"pie",id:a,data:n.data,dataKey:n.dataKey,hide:n.hide,angleAxisId:0,radiusAxisId:0,name:n.name,nameKey:n.nameKey,tooltipType:n.tooltipType,legendType:n.legendType,fill:n.fill,cx:n.cx,cy:n.cy,startAngle:n.startAngle,endAngle:n.endAngle,paddingAngle:n.paddingAngle,minAngle:n.minAngle,innerRadius:n.innerRadius,outerRadius:n.outerRadius,cornerRadius:n.cornerRadius,presentationProps:i,maxRadius:t.maxRadius}),N.createElement(sce,gf({},n,{id:a})),N.createElement(bce,gf({},n,{id:a}))))}SH.displayName="Pie";function x6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function b6(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?x6(Object(r),!0).forEach(function(n){Bce(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Bce(e,t,r){return(t=Cce(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Cce(e){var t=Ece(e,"string");return typeof t=="symbol"?t:t+""}function Ece(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var _ce={xAxis:{},yAxis:{},zAxis:{}},FH=Qo({name:"cartesianAxis",initialState:_ce,reducers:{addXAxis:{reducer(e,t){e.xAxis[t.payload.id]=t.payload},prepare:Es()},removeXAxis:{reducer(e,t){delete e.xAxis[t.payload.id]},prepare:Es()},addYAxis:{reducer(e,t){e.yAxis[t.payload.id]=t.payload},prepare:Es()},removeYAxis:{reducer(e,t){delete e.yAxis[t.payload.id]},prepare:Es()},addZAxis:{reducer(e,t){e.zAxis[t.payload.id]=t.payload},prepare:Es()},removeZAxis:{reducer(e,t){delete e.zAxis[t.payload.id]},prepare:Es()},updateYAxisWidth(e,t){var{id:r,width:n}=t.payload,i=e.yAxis[r];if(i){var a=i.widthHistory||[];if(a.length===3&&a[0]===a[2]&&n===a[1]&&n!==i.width&&Math.abs(n-a[0])<=1)return;var s=[...a,n].slice(-3);e.yAxis[r]=b6(b6({},e.yAxis[r]),{},{width:n,widthHistory:s})}}}}),{addXAxis:Sce,removeXAxis:Fce,addYAxis:Tce,removeYAxis:Oce,addZAxis:uOe,removeZAxis:fOe,updateYAxisWidth:Uce}=FH.actions,Nce=FH.reducer,Lce=ze([Aa],e=>{if(e)return{top:e.top,bottom:e.bottom,left:e.left,right:e.right}}),Dce=ze([Lce,tu,ru],(e,t,r)=>{if(!(!e||t==null||r==null))return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,r-e.top-e.bottom)}}),P3=()=>Pt(Dce),Ice=()=>Pt(doe);function B6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function C6(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?B6(Object(r),!0).forEach(function(n){Mce(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):B6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Mce(e,t,r){return(t=Pce(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Pce(e){var t=kce(e,"string");return typeof t=="symbol"?t:t+""}function kce(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Qce=e=>{var{point:t,childIndex:r,mainColor:n,activeDot:i,dataKey:a}=e;if(i===!1||t.x==null||t.y==null)return null;var s=C6(C6({index:r,dataKey:a,cx:t.x,cy:t.y,r:4,fill:n??"none",strokeWidth:2,stroke:"#fff",payload:t.payload,value:t.value},Lh(i)),eS(i)),o;return N.isValidElement(i)?o=N.cloneElement(i,s):typeof i=="function"?o=i(s):o=N.createElement(gH,s),N.createElement(Ya,{className:"recharts-active-dot"},o)};function Rce(e){var{points:t,mainColor:r,activeDot:n,itemDataKey:i}=e,a=Pt(df),s=Ice();if(t==null||s==null)return null;var o=t.find(l=>s.includes(l.payload));return ei(o)?null:Qce({point:o,childIndex:Number(a),mainColor:r,dataKey:i,activeDot:n})}var jce="Invariant failed";function Hce(e,t){throw new Error(jce)}var Kce=["x","y"];function F_(){return F_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},F_.apply(null,arguments)}function E6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function pp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?E6(Object(r),!0).forEach(function(n){zce(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zce(e,t,r){return(t=Vce(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Vce(e){var t=Gce(e,"string");return typeof t=="symbol"?t:t+""}function Gce(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qce(e,t){if(e==null)return{};var r,n,i=Wce(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Wce(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Yce(e,t){var{x:r,y:n}=e,i=qce(e,Kce),a="".concat(r),s=parseInt(a,10),o="".concat(n),l=parseInt(o,10),c="".concat(t.height||i.height),f=parseInt(c,10),h="".concat(t.width||i.width),p=parseInt(h,10);return pp(pp(pp(pp(pp({},t),i),s?{x:s}:{}),l?{y:l}:{}),{},{height:f,width:p,name:t.name,radius:t.radius})}function k3(e){return N.createElement(bH,F_({shapeType:"rectangle",propTransformer:Yce,activeClassName:"recharts-active-bar"},e))}var $ce=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return(n,i)=>{if(zt(t))return t;var a=zt(n)||ei(n);return a?t(n,i):(a||Hce(),r)}},Xce={},TH=Qo({name:"errorBars",initialState:Xce,reducers:{addErrorBar:(e,t)=>{var{itemId:r,errorBar:n}=t.payload;e[r]||(e[r]=[]),e[r].push(n)},replaceErrorBar:(e,t)=>{var{itemId:r,prev:n,next:i}=t.payload;e[r]&&(e[r]=e[r].map(a=>a.dataKey===n.dataKey&&a.direction===n.direction?i:a))},removeErrorBar:(e,t)=>{var{itemId:r,errorBar:n}=t.payload;e[r]&&(e[r]=e[r].filter(i=>i.dataKey!==n.dataKey||i.direction!==n.direction))}}}),{addErrorBar:hOe,replaceErrorBar:dOe,removeErrorBar:gOe}=TH.actions,Jce=TH.reducer,Zce=["children"];function eue(e,t){if(e==null)return{};var r,n,i=tue(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function tue(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var rue={data:[],xAxisId:"xAxis-0",yAxisId:"yAxis-0",dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0},nue=N.createContext(rue);function OH(e){var{children:t}=e,r=eue(e,Zce);return N.createElement(nue.Provider,{value:r},t)}function Q3(e,t){var r,n,i=Pt(c=>iu(c,e)),a=Pt(c=>au(c,t)),s=(r=i?.allowDataOverflow)!==null&&r!==void 0?r:Co.allowDataOverflow,o=(n=a?.allowDataOverflow)!==null&&n!==void 0?n:Eo.allowDataOverflow,l=s||o;return{needClip:l,needClipX:s,needClipY:o}}function UH(e){var{xAxisId:t,yAxisId:r,clipPathId:n}=e,i=P3(),{needClipX:a,needClipY:s,needClip:o}=Q3(t,r);if(!o)return null;var{x:l,y:c,width:f,height:h}=i;return N.createElement("clipPath",{id:"clipPath-".concat(n)},N.createElement("rect",{x:a?l:l-f/2,y:s?c:c-h/2,width:a?f:f*2,height:s?h:h*2}))}var iue=["onMouseEnter","onMouseLeave","onClick"],aue=["value","background","tooltipPosition"],sue=["id"],oue=["onMouseEnter","onClick","onMouseLeave"];function pf(){return pf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pf.apply(null,arguments)}function _6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _s(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_6(Object(r),!0).forEach(function(n){Aue(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Aue(e,t,r){return(t=lue(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lue(e){var t=cue(e,"string");return typeof t=="symbol"?t:t+""}function cue(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Q2(e,t){if(e==null)return{};var r,n,i=uue(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function uue(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var fue=e=>{var{dataKey:t,name:r,fill:n,legendType:i,hide:a}=e;return[{inactive:a,dataKey:t,type:i,color:n,value:sg(r,t),payload:e}]};function hue(e){var{dataKey:t,stroke:r,strokeWidth:n,fill:i,name:a,hide:s,unit:o}=e;return{dataDefinedOnItem:void 0,positions:void 0,settings:{stroke:r,strokeWidth:n,fill:i,dataKey:t,nameKey:void 0,name:sg(a,t),hide:s,type:e.tooltipType,color:e.fill,unit:o}}}function due(e){var t=Pt(df),{data:r,dataKey:n,background:i,allOtherBarProps:a}=e,{onMouseEnter:s,onMouseLeave:o,onClick:l}=a,c=Q2(a,iue),f=U3(s,n),h=N3(o),p=L3(l,n);if(!i||r==null)return null;var g=Lh(i);return N.createElement(N.Fragment,null,r.map((y,m)=>{var{value:w,background:b,tooltipPosition:E}=y,S=Q2(y,aue);if(!b)return null;var T=f(y,m),D=h(y,m),k=p(y,m),P=_s(_s(_s(_s(_s({option:i,isActive:String(m)===t},S),{},{fill:"#eee"},b),g),$1(c,y,m)),{},{onMouseEnter:T,onMouseLeave:D,onClick:k,dataKey:n,index:m,className:"recharts-bar-background-rectangle"});return N.createElement(k3,pf({key:"background-bar-".concat(m)},P))}))}function gue(e){var{showLabels:t,children:r,rects:n}=e,i=n?.map(a=>{var s={x:a.x,y:a.y,width:a.width,height:a.height};return _s(_s({},s),{},{value:a.value,payload:a.payload,parentViewBox:a.parentViewBox,viewBox:s,fill:a.fill})});return N.createElement(hH,{value:t?i:void 0},r)}function pue(e){var{shape:t,activeBar:r,baseProps:n,entry:i,index:a,dataKey:s}=e,o=Pt(df),l=Pt(Wj),c=r&&String(a)===o&&(l==null||s===l),f=c?r:t;return N.createElement(k3,pf({},n,{name:String(n.name)},i,{isActive:c,option:f,index:a,dataKey:s}))}function vue(e){var{shape:t,baseProps:r,entry:n,index:i,dataKey:a}=e;return N.createElement(k3,pf({},r,{name:String(r.name)},n,{isActive:!1,option:t,index:i,dataKey:a}))}function mue(e){var{data:t,props:r}=e,n=Mo(r),{id:i}=n,a=Q2(n,sue),{shape:s,dataKey:o,activeBar:l}=r,{onMouseEnter:c,onClick:f,onMouseLeave:h}=r,p=Q2(r,oue),g=U3(c,o),y=N3(h),m=L3(f,o);return t?N.createElement(N.Fragment,null,t.map((w,b)=>N.createElement(Ya,pf({key:"rectangle-".concat(w?.x,"-").concat(w?.y,"-").concat(w?.value,"-").concat(b),className:"recharts-bar-rectangle"},$1(p,w,b),{onMouseEnter:g(w,b),onMouseLeave:y(w,b),onClick:m(w,b)}),l?N.createElement(pue,{shape:s,activeBar:l,baseProps:a,entry:w,index:b,dataKey:o}):N.createElement(vue,{shape:s,baseProps:a,entry:w,index:b,dataKey:o})))):null}function yue(e){var{props:t,previousRectanglesRef:r}=e,{data:n,layout:i,isAnimationActive:a,animationBegin:s,animationDuration:o,animationEasing:l,onAnimationEnd:c,onAnimationStart:f}=t,h=r.current,p=tv(t,"recharts-bar-"),[g,y]=N.useState(!1),m=!g,w=N.useCallback(()=>{typeof c=="function"&&c(),y(!1)},[c]),b=N.useCallback(()=>{typeof f=="function"&&f(),y(!0)},[f]);return N.createElement(gue,{showLabels:m,rects:n},N.createElement(ev,{animationId:p,begin:s,duration:o,isActive:a,easing:l,onAnimationEnd:w,onAnimationStart:b,key:p},E=>{var S=E===1?n:n?.map((T,D)=>{var k=h&&h[D];if(k)return _s(_s({},T),{},{x:Bi(k.x,T.x,E),y:Bi(k.y,T.y,E),width:Bi(k.width,T.width,E),height:Bi(k.height,T.height,E)});if(i==="horizontal"){var P=Bi(0,T.height,E);return _s(_s({},T),{},{y:T.y+T.height-P,height:P})}var R=Bi(0,T.width,E);return _s(_s({},T),{},{width:R})});return E>0&&(r.current=S??null),S==null?null:N.createElement(Ya,null,N.createElement(mue,{props:t,data:S}))}),N.createElement(S3,{label:t.label}),t.children)}function wue(e){var t=N.useRef(null);return N.createElement(yue,{previousRectanglesRef:t,props:e})}var NH=0,xue=(e,t)=>{var r=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:r,errorVal:Dn(e,t)}};class bue extends N.PureComponent{render(){var{hide:t,data:r,dataKey:n,className:i,xAxisId:a,yAxisId:s,needClip:o,background:l,id:c}=this.props;if(t||r==null)return null;var f=Ur("recharts-bar",i),h=c;return N.createElement(Ya,{className:f,id:c},o&&N.createElement("defs",null,N.createElement(UH,{clipPathId:h,xAxisId:a,yAxisId:s})),N.createElement(Ya,{className:"recharts-bar-rectangles",clipPath:o?"url(#clipPath-".concat(h,")"):void 0},N.createElement(due,{data:r,dataKey:n,background:l,allOtherBarProps:this.props}),N.createElement(wue,this.props)))}}var Bue={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:"ease",hide:!1,isAnimationActive:!_f.isSsr,legendType:"rect",minPointSize:NH,xAxisId:0,yAxisId:0};function Cue(e){var{xAxisId:t,yAxisId:r,hide:n,legendType:i,minPointSize:a,activeBar:s,animationBegin:o,animationDuration:l,animationEasing:c,isAnimationActive:f}=e,{needClip:h}=Q3(t,r),p=ex(),g=Ns(),y=O3(e.children,hv),m=Pt(E=>Jue(E,t,r,g,e.id,y));if(p!=="vertical"&&p!=="horizontal")return null;var w,b=m?.[0];return b==null||b.height==null||b.width==null?w=0:w=p==="vertical"?b.height/2:b.width/2,N.createElement(OH,{xAxisId:t,yAxisId:r,data:m,dataPointFormatter:xue,errorBarOffset:w},N.createElement(bue,pf({},e,{layout:p,needClip:h,data:m,xAxisId:t,yAxisId:r,hide:n,legendType:i,minPointSize:a,activeBar:s,animationBegin:o,animationDuration:l,animationEasing:c,isAnimationActive:f})))}function Eue(e){var{layout:t,barSettings:{dataKey:r,minPointSize:n},pos:i,bandSize:a,xAxis:s,yAxis:o,xAxisTicks:l,yAxisTicks:c,stackedData:f,displayedData:h,offset:p,cells:g,parentViewBox:y}=e,m=t==="horizontal"?o:s,w=f?m.scale.domain():null,b=xee({numericAxis:m});return h.map((E,S)=>{var T,D,k,P,R,O;f?T=gee(f[S],w):(T=Dn(E,r),Array.isArray(T)||(T=[b,T]));var V=$ce(n,NH)(T[1],S);if(t==="horizontal"){var I,[Q,W]=[o.scale(T[0]),o.scale(T[1])];D=aL({axis:s,ticks:l,bandSize:a,offset:i.offset,entry:E,index:S}),k=(I=W??Q)!==null&&I!==void 0?I:void 0,P=i.size;var J=Q-W;if(R=gA(J)?0:J,O={x:D,y:p.top,width:P,height:p.height},Math.abs(V)>0&&Math.abs(R)<Math.abs(V)){var fe=Ca(R||V)*(Math.abs(V)-Math.abs(R));k-=fe,R+=fe}}else{var[G,se]=[s.scale(T[0]),s.scale(T[1])];if(D=G,k=aL({axis:o,ticks:c,bandSize:a,offset:i.offset,entry:E,index:S}),P=se-G,R=i.size,O={x:p.left,y:k,width:p.width,height:R},Math.abs(V)>0&&Math.abs(P)<Math.abs(V)){var ge=Ca(P||V)*(Math.abs(V)-Math.abs(P));P+=ge}}if(D==null||k==null||P==null||R==null)return null;var ye=_s(_s({},E),{},{x:D,y:k,width:P,height:R,value:f?T:T[1],payload:E,background:O,tooltipPosition:{x:D+P/2,y:k+R/2},parentViewBox:y},g&&g[S]&&g[S].props);return ye}).filter(Boolean)}function _ue(e){var t=Xa(e,Bue),r=Ns();return N.createElement(I3,{id:t.id,type:"bar"},n=>N.createElement(N.Fragment,null,N.createElement(CH,{legendPayload:fue(t)}),N.createElement(D3,{fn:hue,args:t}),N.createElement(_H,{type:"bar",id:n,data:void 0,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,stackId:wee(t.stackId),hide:t.hide,barSize:t.barSize,minPointSize:t.minPointSize,maxBarSize:t.maxBarSize,isPanorama:r}),N.createElement(Cue,pf({},t,{id:n}))))}var LH=N.memo(_ue);LH.displayName="Bar";function S6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Mm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?S6(Object(r),!0).forEach(function(n){Sue(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):S6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Sue(e,t,r){return(t=Fue(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Fue(e){var t=Tue(e,"string");return typeof t=="symbol"?t:t+""}function Tue(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Oue=(e,t)=>t,Uue=(e,t,r)=>r,Nue=(e,t,r,n)=>n,Lue=(e,t,r,n,i)=>i,dv=ze([px,Lue],(e,t)=>e.filter(r=>r.type==="bar").find(r=>r.id===t)),Due=ze([dv],e=>e?.maxBarSize),Iue=(e,t,r,n,i,a)=>a,F6=(e,t,r)=>{var n=r??e;if(!ei(n))return us(n,t,0)},Mue=ze([Qr,px,Oue,Uue,Nue],(e,t,r,n,i)=>t.filter(a=>e==="horizontal"?a.xAxisId===r:a.yAxisId===n).filter(a=>a.isPanorama===i).filter(a=>a.hide===!1).filter(a=>a.type==="bar")),Pue=(e,t,r,n)=>{var i=Qr(e);return i==="horizontal"?x_(e,"yAxis",r,n):x_(e,"xAxis",t,n)},kue=(e,t,r)=>{var n=Qr(e);return n==="horizontal"?TD(e,"xAxis",t):TD(e,"yAxis",r)},Que=(e,t,r)=>{var n={},i=e.filter(hx),a=e.filter(c=>c.stackId==null),s=i.reduce((c,f)=>(c[f.stackId]||(c[f.stackId]=[]),c[f.stackId].push(f),c),n),o=Object.entries(s).map(c=>{var[f,h]=c,p=h.map(y=>y.dataKey),g=F6(t,r,h[0].barSize);return{stackId:f,dataKeys:p,barSize:g}}),l=a.map(c=>{var f=[c.dataKey].filter(p=>p!=null),h=F6(t,r,c.barSize);return{stackId:void 0,dataKeys:f,barSize:h}});return[...o,...l]},Rue=ze([Mue,wae,kue],Que),jue=(e,t,r,n,i)=>{var a,s,o=dv(e,t,r,n,i);if(o!=null){var l=Qr(e),c=W7(e),{maxBarSize:f}=o,h=ei(f)?c:f,p,g;return l==="horizontal"?(p=hf(e,"xAxis",t,n),g=ff(e,"xAxis",t,n)):(p=hf(e,"yAxis",r,n),g=ff(e,"yAxis",r,n)),(a=(s=g1(p,g,!0))!==null&&s!==void 0?s:h)!==null&&a!==void 0?a:0}},DH=(e,t,r,n)=>{var i=Qr(e),a,s;return i==="horizontal"?(a=hf(e,"xAxis",t,n),s=ff(e,"xAxis",t,n)):(a=hf(e,"yAxis",r,n),s=ff(e,"yAxis",r,n)),g1(a,s)};function Hue(e,t,r,n,i){var a=n.length;if(!(a<1)){var s=us(e,r,0,!0),o,l=[];if(ds(n[0].barSize)){var c=!1,f=r/a,h=n.reduce((b,E)=>b+(E.barSize||0),0);h+=(a-1)*s,h>=r&&(h-=(a-1)*s,s=0),h>=r&&f>0&&(c=!0,f*=.9,h=a*f);var p=(r-h)/2>>0,g={offset:p-s,size:0};o=n.reduce((b,E)=>{var S,T={stackId:E.stackId,dataKeys:E.dataKeys,position:{offset:g.offset+g.size+s,size:c?f:(S=E.barSize)!==null&&S!==void 0?S:0}},D=[...b,T];return g=D[D.length-1].position,D},l)}else{var y=us(t,r,0,!0);r-2*y-(a-1)*s<=0&&(s=0);var m=(r-2*y-(a-1)*s)/a;m>1&&(m>>=0);var w=ds(i)?Math.min(m,i):m;o=n.reduce((b,E,S)=>[...b,{stackId:E.stackId,dataKeys:E.dataKeys,position:{offset:y+(m+s)*S+(m-w)/2,size:w}}],l)}return o}}var Kue=(e,t,r,n,i,a,s)=>{var o=ei(s)?t:s,l=Hue(r,n,i!==a?i:a,e,o);return i!==a&&l!=null&&(l=l.map(c=>Mm(Mm({},c),{},{position:Mm(Mm({},c.position),{},{offset:c.position.offset-i/2})}))),l},zue=ze([Rue,W7,yae,Y7,jue,DH,Due],Kue),Vue=(e,t,r,n)=>hf(e,"xAxis",t,n),Gue=(e,t,r,n)=>hf(e,"yAxis",r,n),que=(e,t,r,n)=>ff(e,"xAxis",t,n),Wue=(e,t,r,n)=>ff(e,"yAxis",r,n),Yue=ze([zue,dv],(e,t)=>{if(!(e==null||t==null)){var r=e.find(n=>n.stackId===t.stackId&&t.dataKey!=null&&n.dataKeys.includes(t.dataKey));if(r!=null)return r.position}}),$ue=(e,t)=>{var r=YS(t);if(!(!e||r==null||t==null)){var{stackId:n}=t;if(n!=null){var i=e[n];if(i){var{stackedData:a}=i;if(a)return a.find(s=>s.key===r)}}}},Xue=ze([Pue,dv],$ue),Jue=ze([Aa,uS,Vue,Gue,que,Wue,Yue,Qr,lx,DH,Xue,dv,Iue],(e,t,r,n,i,a,s,o,l,c,f,h,p)=>{var{chartData:g,dataStartIndex:y,dataEndIndex:m}=l;if(!(h==null||s==null||t==null||o!=="horizontal"&&o!=="vertical"||r==null||n==null||i==null||a==null||c==null)){var{data:w}=h,b;if(w!=null&&w.length>0?b=w:b=g?.slice(y,m+1),b!=null)return Eue({layout:o,barSettings:h,pos:s,parentViewBox:t,bandSize:c,xAxis:r,yAxis:n,xAxisTicks:i,yAxisTicks:a,stackedData:f,displayedData:b,offset:e,cells:p})}}),IH=e=>{var{chartData:t}=e,r=ri(),n=Ns();return N.useEffect(()=>n?()=>{}:(r(QD(t)),()=>{r(QD(void 0))}),[t,r,n]),null},T6={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},MH=Qo({name:"brush",initialState:T6,reducers:{setBrushSettings(e,t){return t.payload==null?T6:t.payload}}}),{setBrushSettings:pOe}=MH.actions,Zue=MH.reducer;function efe(e,t,r){return(t=tfe(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tfe(e){var t=rfe(e,"string");return typeof t=="symbol"?t:t+""}function rfe(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class R3{static create(t){return new R3(t)}constructor(t){this.scale=t}get domain(){return this.scale.domain}get range(){return this.scale.range}get rangeMin(){return this.range()[0]}get rangeMax(){return this.range()[1]}get bandwidth(){return this.scale.bandwidth}apply(t){var{bandAware:r,position:n}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t!==void 0){if(n)switch(n){case"start":return this.scale(t);case"middle":{var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+i}case"end":{var a=this.bandwidth?this.bandwidth():0;return this.scale(t)+a}default:return this.scale(t)}if(r){var s=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+s}return this.scale(t)}}isInRange(t){var r=this.range(),n=r[0],i=r[r.length-1];return n<=i?t>=n&&t<=i:t>=i&&t<=n}}efe(R3,"EPS",1e-4);function nfe(e){return(e%180+180)%180}var ife=function(t){var{width:r,height:n}=t,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=nfe(i),s=a*Math.PI/180,o=Math.atan(n/r),l=s>o&&s<Math.PI-o?n/Math.sin(s):r/Math.cos(s);return Math.abs(l)},afe={dots:[],areas:[],lines:[]},PH=Qo({name:"referenceElements",initialState:afe,reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var r=kc(e).dots.findIndex(n=>n===t.payload);r!==-1&&e.dots.splice(r,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var r=kc(e).areas.findIndex(n=>n===t.payload);r!==-1&&e.areas.splice(r,1)},addLine:(e,t)=>{e.lines.push(t.payload)},removeLine:(e,t)=>{var r=kc(e).lines.findIndex(n=>n===t.payload);r!==-1&&e.lines.splice(r,1)}}}),{addDot:vOe,removeDot:mOe,addArea:yOe,removeArea:wOe,addLine:xOe,removeLine:bOe}=PH.actions,sfe=PH.reducer,ofe=N.createContext(void 0),Afe=e=>{var{children:t}=e,[r]=N.useState("".concat(f1("recharts"),"-clip")),n=P3();if(n==null)return null;var{x:i,y:a,width:s,height:o}=n;return N.createElement(ofe.Provider,{value:r},N.createElement("defs",null,N.createElement("clipPath",{id:r},N.createElement("rect",{x:i,y:a,height:o,width:s}))),t)};function W0(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if({}.hasOwnProperty.call(t,n)&&!{}.hasOwnProperty.call(e,n))return!1;return!0}function kH(e,t,r){if(t<1)return[];if(t===1&&r===void 0)return e;for(var n=[],i=0;i<e.length;i+=t)n.push(e[i]);return n}function lfe(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return ife(n,r)}function cfe(e,t,r){var n=r==="width",{x:i,y:a,width:s,height:o}=e;return t===1?{start:n?i:a,end:n?i+s:a+o}:{start:n?i+s:a+o,end:n?i:a}}function R2(e,t,r,n,i){if(e*t<e*n||e*t>e*i)return!1;var a=r();return e*(t-e*a/2-n)>=0&&e*(t+e*a/2-i)<=0}function ufe(e,t){return kH(e,t+1)}function ffe(e,t,r,n,i){for(var a=(n||[]).slice(),{start:s,end:o}=t,l=0,c=1,f=s,h=function(){var y=n?.[l];if(y===void 0)return{v:kH(n,c)};var m=l,w,b=()=>(w===void 0&&(w=r(y,m)),w),E=y.coordinate,S=l===0||R2(e,E,b,f,o);S||(l=0,f=s,c+=1),S&&(f=E+e*(b()/2+i),l+=c)},p;c<=a.length;)if(p=h(),p)return p.v;return[]}function O6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function As(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?O6(Object(r),!0).forEach(function(n){hfe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hfe(e,t,r){return(t=dfe(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dfe(e){var t=gfe(e,"string");return typeof t=="symbol"?t:t+""}function gfe(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pfe(e,t,r,n,i){for(var a=(n||[]).slice(),s=a.length,{start:o}=t,{end:l}=t,c=function(p){var g=a[p],y,m=()=>(y===void 0&&(y=r(g,p)),y);if(p===s-1){var w=e*(g.coordinate+e*m()/2-l);a[p]=g=As(As({},g),{},{tickCoord:w>0?g.coordinate-w*e:g.coordinate})}else a[p]=g=As(As({},g),{},{tickCoord:g.coordinate});var b=R2(e,g.tickCoord,m,o,l);b&&(l=g.tickCoord-e*(m()/2+i),a[p]=As(As({},g),{},{isShow:!0}))},f=s-1;f>=0;f--)c(f);return a}function vfe(e,t,r,n,i,a){var s=(n||[]).slice(),o=s.length,{start:l,end:c}=t;if(a){var f=n[o-1],h=r(f,o-1),p=e*(f.coordinate+e*h/2-c);s[o-1]=f=As(As({},f),{},{tickCoord:p>0?f.coordinate-p*e:f.coordinate});var g=R2(e,f.tickCoord,()=>h,l,c);g&&(c=f.tickCoord-e*(h/2+i),s[o-1]=As(As({},f),{},{isShow:!0}))}for(var y=a?o-1:o,m=function(E){var S=s[E],T,D=()=>(T===void 0&&(T=r(S,E)),T);if(E===0){var k=e*(S.coordinate-e*D()/2-l);s[E]=S=As(As({},S),{},{tickCoord:k<0?S.coordinate-k*e:S.coordinate})}else s[E]=S=As(As({},S),{},{tickCoord:S.coordinate});var P=R2(e,S.tickCoord,D,l,c);P&&(l=S.tickCoord+e*(D()/2+i),s[E]=As(As({},S),{},{isShow:!0}))},w=0;w<y;w++)m(w);return s}function j3(e,t,r){var{tick:n,ticks:i,viewBox:a,minTickGap:s,orientation:o,interval:l,tickFormatter:c,unit:f,angle:h}=e;if(!i||!i.length||!n)return[];if(zt(l)||_f.isSsr){var p;return(p=ufe(i,zt(l)?l:0))!==null&&p!==void 0?p:[]}var g=[],y=o==="top"||o==="bottom"?"width":"height",m=f&&y==="width"?zp(f,{fontSize:t,letterSpacing:r}):{width:0,height:0},w=(S,T)=>{var D=typeof c=="function"?c(S.value,T):S.value;return y==="width"?lfe(zp(D,{fontSize:t,letterSpacing:r}),m,h):zp(D,{fontSize:t,letterSpacing:r})[y]},b=i.length>=2?Ca(i[1].coordinate-i[0].coordinate):1,E=cfe(a,b,y);return l==="equidistantPreserveStart"?ffe(b,E,w,i,s):(l==="preserveStart"||l==="preserveStartEnd"?g=vfe(b,E,w,i,s,l==="preserveStartEnd"):g=pfe(b,E,w,i,s),g.filter(S=>S.isShow))}var mfe=e=>{var{ticks:t,label:r,labelGapWithTick:n=5,tickSize:i=0,tickMargin:a=0}=e,s=0;if(t){Array.from(t).forEach(f=>{if(f){var h=f.getBoundingClientRect();h.width>s&&(s=h.width)}});var o=r?r.getBoundingClientRect().width:0,l=i+a,c=s+l+o+(r?n:0);return Math.round(c)}return 0},yfe=["axisLine","width","height","className","hide","ticks"],wfe=["viewBox"],xfe=["viewBox"];function T_(e,t){if(e==null)return{};var r,n,i=bfe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function bfe(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Qh(){return Qh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Qh.apply(null,arguments)}function U6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function aa(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?U6(Object(r),!0).forEach(function(n){Bfe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):U6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Bfe(e,t,r){return(t=Cfe(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Cfe(e){var t=Efe(e,"string");return typeof t=="symbol"?t:t+""}function Efe(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var H3={x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"};function _fe(e){var{x:t,y:r,width:n,height:i,orientation:a,mirror:s,axisLine:o,otherSvgProps:l}=e;if(!o)return null;var c=aa(aa(aa({},l),Mo(o)),{},{fill:"none"});if(a==="top"||a==="bottom"){var f=+(a==="top"&&!s||a==="bottom"&&s);c=aa(aa({},c),{},{x1:t,y1:r+f*i,x2:t+n,y2:r+f*i})}else{var h=+(a==="left"&&!s||a==="right"&&s);c=aa(aa({},c),{},{x1:t+h*n,y1:r,x2:t+h*n,y2:r+i})}return N.createElement("line",Qh({},c,{className:Ur("recharts-cartesian-axis-line",Dh(o,"className"))}))}function Sfe(e,t,r,n,i,a,s,o,l){var c,f,h,p,g,y,m=o?-1:1,w=e.tickSize||s,b=zt(e.tickCoord)?e.tickCoord:e.coordinate;switch(a){case"top":c=f=e.coordinate,p=r+ +!o*i,h=p-m*w,y=h-m*l,g=b;break;case"left":h=p=e.coordinate,f=t+ +!o*n,c=f-m*w,g=c-m*l,y=b;break;case"right":h=p=e.coordinate,f=t+ +o*n,c=f+m*w,g=c+m*l,y=b;break;default:c=f=e.coordinate,p=r+ +o*i,h=p+m*w,y=h+m*l,g=b;break}return{line:{x1:c,y1:h,x2:f,y2:p},tick:{x:g,y}}}function Ffe(e,t){switch(e){case"left":return t?"start":"end";case"right":return t?"end":"start";default:return"middle"}}function Tfe(e,t){switch(e){case"left":case"right":return"middle";case"top":return t?"start":"end";default:return t?"end":"start"}}function Ofe(e){var{option:t,tickProps:r,value:n}=e,i,a=Ur(r.className,"recharts-cartesian-axis-tick-value");if(N.isValidElement(t))i=N.cloneElement(t,aa(aa({},r),{},{className:a}));else if(typeof t=="function")i=t(aa(aa({},r),{},{className:a}));else{var s="recharts-cartesian-axis-tick-value";typeof t!="boolean"&&(s=Ur(s,t?.className)),i=N.createElement(bx,Qh({},r,{className:s}),n)}return i}function Ufe(e){var{ticks:t=[],tick:r,tickLine:n,stroke:i,tickFormatter:a,unit:s,padding:o,tickTextProps:l,orientation:c,mirror:f,x:h,y:p,width:g,height:y,tickSize:m,tickMargin:w,fontSize:b,letterSpacing:E,getTicksConfig:S,events:T}=e,D=j3(aa(aa({},S),{},{ticks:t}),b,E),k=Ffe(c,f),P=Tfe(c,f),R=Mo(S),O=Lh(r),V={};typeof n=="object"&&(V=n);var I=aa(aa({},R),{},{fill:"none"},V),Q=D.map((W,J)=>{var{line:fe,tick:G}=Sfe(W,h,p,g,y,c,m,f,w),se=aa(aa(aa(aa({textAnchor:k,verticalAnchor:P},R),{},{stroke:"none",fill:i},O),G),{},{index:J,payload:W,visibleTicksCount:D.length,tickFormatter:a,padding:o},l);return N.createElement(Ya,Qh({className:"recharts-cartesian-axis-tick",key:"tick-".concat(W.value,"-").concat(W.coordinate,"-").concat(W.tickCoord)},$1(T,W,J)),n&&N.createElement("line",Qh({},I,fe,{className:Ur("recharts-cartesian-axis-tick-line",Dh(n,"className"))})),r&&N.createElement(Ofe,{option:r,tickProps:se,value:"".concat(typeof a=="function"?a(W.value,J):W.value).concat(s||"")}))});return Q.length>0?N.createElement("g",{className:"recharts-cartesian-axis-ticks"},Q):null}var Nfe=N.forwardRef((e,t)=>{var{axisLine:r,width:n,height:i,className:a,hide:s,ticks:o}=e,l=T_(e,yfe),[c,f]=N.useState(""),[h,p]=N.useState(""),g=N.useRef(null);N.useImperativeHandle(t,()=>({getCalculatedWidth:()=>{var m;return mfe({ticks:g.current,label:(m=e.labelRef)===null||m===void 0?void 0:m.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}}));var y=N.useCallback(m=>{if(m){var w=m.getElementsByClassName("recharts-cartesian-axis-tick-value");g.current=w;var b=w[0];if(b){var E=window.getComputedStyle(b),S=E.fontSize,T=E.letterSpacing;(S!==c||T!==h)&&(f(S),p(T))}}},[c,h]);return s||n!=null&&n<=0||i!=null&&i<=0?null:N.createElement(Ya,{className:Ur("recharts-cartesian-axis",a),ref:y},N.createElement(_fe,{x:e.x,y:e.y,width:n,height:i,orientation:e.orientation,mirror:e.mirror,axisLine:r,otherSvgProps:Mo(e)}),N.createElement(Ufe,{ticks:o,tick:e.tick,tickLine:e.tickLine,stroke:e.stroke,tickFormatter:e.tickFormatter,unit:e.unit,padding:e.padding,tickTextProps:e.tickTextProps,orientation:e.orientation,mirror:e.mirror,x:e.x,y:e.y,width:e.width,height:e.height,tickSize:e.tickSize,tickMargin:e.tickMargin,fontSize:c,letterSpacing:h,getTicksConfig:e,events:l}),N.createElement(DAe,{x:e.x,y:e.y,width:e.width,height:e.height},N.createElement(zAe,{label:e.label,labelRef:e.labelRef}),e.children))}),Lfe=N.memo(Nfe,(e,t)=>{var{viewBox:r}=e,n=T_(e,wfe),{viewBox:i}=t,a=T_(t,xfe);return W0(r,i)&&W0(n,a)}),K3=N.forwardRef((e,t)=>{var r=Xa(e,H3);return N.createElement(Lfe,Qh({},r,{ref:t}))});K3.displayName="CartesianAxis";var Dfe=["x1","y1","x2","y2","key"],Ife=["offset"],Mfe=["xAxisId","yAxisId"],Pfe=["xAxisId","yAxisId"];function N6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function cs(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?N6(Object(r),!0).forEach(function(n){kfe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):N6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function kfe(e,t,r){return(t=Qfe(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qfe(e){var t=Rfe(e,"string");return typeof t=="symbol"?t:t+""}function Rfe(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wh(){return wh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wh.apply(null,arguments)}function j2(e,t){if(e==null)return{};var r,n,i=jfe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function jfe(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Hfe=e=>{var{fill:t}=e;if(!t||t==="none")return null;var{fillOpacity:r,x:n,y:i,width:a,height:s,ry:o}=e;return N.createElement("rect",{x:n,y:i,ry:o,width:a,height:s,stroke:"none",fill:t,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function QH(e,t){var r;if(N.isValidElement(e))r=N.cloneElement(e,t);else if(typeof e=="function")r=e(t);else{var{x1:n,y1:i,x2:a,y2:s,key:o}=t,l=j2(t,Dfe),c=Mo(l),{offset:f}=c,h=j2(c,Ife);r=N.createElement("line",wh({},h,{x1:n,y1:i,x2:a,y2:s,fill:"none",key:o}))}return r}function Kfe(e){var{x:t,width:r,horizontal:n=!0,horizontalPoints:i}=e;if(!n||!i||!i.length)return null;var{xAxisId:a,yAxisId:s}=e,o=j2(e,Mfe),l=i.map((c,f)=>{var h=cs(cs({},o),{},{x1:t,y1:c,x2:t+r,y2:c,key:"line-".concat(f),index:f});return QH(n,h)});return N.createElement("g",{className:"recharts-cartesian-grid-horizontal"},l)}function zfe(e){var{y:t,height:r,vertical:n=!0,verticalPoints:i}=e;if(!n||!i||!i.length)return null;var{xAxisId:a,yAxisId:s}=e,o=j2(e,Pfe),l=i.map((c,f)=>{var h=cs(cs({},o),{},{x1:c,y1:t,x2:c,y2:t+r,key:"line-".concat(f),index:f});return QH(n,h)});return N.createElement("g",{className:"recharts-cartesian-grid-vertical"},l)}function Vfe(e){var{horizontalFill:t,fillOpacity:r,x:n,y:i,width:a,height:s,horizontalPoints:o,horizontal:l=!0}=e;if(!l||!t||!t.length)return null;var c=o.map(h=>Math.round(h+i-i)).sort((h,p)=>h-p);i!==c[0]&&c.unshift(0);var f=c.map((h,p)=>{var g=!c[p+1],y=g?i+s-h:c[p+1]-h;if(y<=0)return null;var m=p%t.length;return N.createElement("rect",{key:"react-".concat(p),y:h,x:n,height:y,width:a,stroke:"none",fill:t[m],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return N.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function Gfe(e){var{vertical:t=!0,verticalFill:r,fillOpacity:n,x:i,y:a,width:s,height:o,verticalPoints:l}=e;if(!t||!r||!r.length)return null;var c=l.map(h=>Math.round(h+i-i)).sort((h,p)=>h-p);i!==c[0]&&c.unshift(0);var f=c.map((h,p)=>{var g=!c[p+1],y=g?i+s-h:c[p+1]-h;if(y<=0)return null;var m=p%r.length;return N.createElement("rect",{key:"react-".concat(p),x:h,y:a,width:y,height:o,stroke:"none",fill:r[m],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return N.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var qfe=(e,t)=>{var{xAxis:r,width:n,height:i,offset:a}=e;return UR(j3(cs(cs(cs({},H3),r),{},{ticks:NR(r),viewBox:{x:0,y:0,width:n,height:i}})),a.left,a.left+a.width,t)},Wfe=(e,t)=>{var{yAxis:r,width:n,height:i,offset:a}=e;return UR(j3(cs(cs(cs({},H3),r),{},{ticks:NR(r),viewBox:{x:0,y:0,width:n,height:i}})),a.top,a.top+a.height,t)},Yfe={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0};function H2(e){var t=hS(),r=dS(),n=QR(),i=cs(cs({},Xa(e,Yfe)),{},{x:zt(e.x)?e.x:n.left,y:zt(e.y)?e.y:n.top,width:zt(e.width)?e.width:n.width,height:zt(e.height)?e.height:n.height}),{xAxisId:a,yAxisId:s,x:o,y:l,width:c,height:f,syncWithTicks:h,horizontalValues:p,verticalValues:g}=i,y=Ns(),m=Pt(O=>OD(O,"xAxis",a,y)),w=Pt(O=>OD(O,"yAxis",s,y));if(!zt(c)||c<=0||!zt(f)||f<=0||!zt(o)||o!==+o||!zt(l)||l!==+l)return null;var b=i.verticalCoordinatesGenerator||qfe,E=i.horizontalCoordinatesGenerator||Wfe,{horizontalPoints:S,verticalPoints:T}=i;if((!S||!S.length)&&typeof E=="function"){var D=p&&p.length,k=E({yAxis:w?cs(cs({},w),{},{ticks:D?p:w.ticks}):void 0,width:t,height:r,offset:n},D?!0:h);y2(Array.isArray(k),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof k,"]")),Array.isArray(k)&&(S=k)}if((!T||!T.length)&&typeof b=="function"){var P=g&&g.length,R=b({xAxis:m?cs(cs({},m),{},{ticks:P?g:m.ticks}):void 0,width:t,height:r,offset:n},P?!0:h);y2(Array.isArray(R),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof R,"]")),Array.isArray(R)&&(T=R)}return N.createElement("g",{className:"recharts-cartesian-grid"},N.createElement(Hfe,{fill:i.fill,fillOpacity:i.fillOpacity,x:i.x,y:i.y,width:i.width,height:i.height,ry:i.ry}),N.createElement(Vfe,wh({},i,{horizontalPoints:S})),N.createElement(Gfe,wh({},i,{verticalPoints:T})),N.createElement(Kfe,wh({},i,{offset:n,horizontalPoints:S,xAxis:m,yAxis:w})),N.createElement(zfe,wh({},i,{offset:n,verticalPoints:T,xAxis:m,yAxis:w})))}H2.displayName="CartesianGrid";var RH=(e,t,r,n)=>hf(e,"xAxis",t,n),jH=(e,t,r,n)=>ff(e,"xAxis",t,n),HH=(e,t,r,n)=>hf(e,"yAxis",r,n),KH=(e,t,r,n)=>ff(e,"yAxis",r,n),$fe=ze([Qr,RH,HH,jH,KH],(e,t,r,n,i)=>Ef(e,"xAxis")?g1(t,n,!1):g1(r,i,!1)),Xfe=(e,t,r,n,i)=>i;function Jfe(e){return e.type==="line"}var Zfe=ze([px,Xfe],(e,t)=>e.filter(Jfe).find(r=>r.id===t)),ehe=ze([Qr,RH,HH,jH,KH,Zfe,$fe,lx],(e,t,r,n,i,a,s,o)=>{var{chartData:l,dataStartIndex:c,dataEndIndex:f}=o;if(!(a==null||t==null||r==null||n==null||i==null||n.length===0||i.length===0||s==null)){var{dataKey:h,data:p}=a,g;if(p!=null&&p.length>0?g=p:g=l?.slice(c,f+1),g!=null)return Bhe({layout:e,xAxis:t,yAxis:r,xAxisTicks:n,yAxisTicks:i,dataKey:h,bandSize:s,displayedData:g})}});function the(e){var t=Lh(e),r=3,n=2;if(t!=null){var{r:i,strokeWidth:a}=t,s=Number(i),o=Number(a);return(Number.isNaN(s)||s<0)&&(s=r),(Number.isNaN(o)||o<0)&&(o=n),{r:s,strokeWidth:o}}return{r,strokeWidth:n}}var rhe=["id"],nhe=["type","layout","connectNulls","needClip"],ihe=["activeDot","animateNewValues","animationBegin","animationDuration","animationEasing","connectNulls","dot","hide","isAnimationActive","label","legendType","xAxisId","yAxisId","id"];function L6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Oo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?L6(Object(r),!0).forEach(function(n){ahe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):L6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ahe(e,t,r){return(t=she(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function she(e){var t=ohe(e,"string");return typeof t=="symbol"?t:t+""}function ohe(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function z3(e,t){if(e==null)return{};var r,n,i=Ahe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Ahe(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Rh(){return Rh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Rh.apply(null,arguments)}var lhe=e=>{var{dataKey:t,name:r,stroke:n,legendType:i,hide:a}=e;return[{inactive:a,dataKey:t,type:i,color:n,value:sg(r,t),payload:e}]};function che(e){var{dataKey:t,data:r,stroke:n,strokeWidth:i,fill:a,name:s,hide:o,unit:l}=e;return{dataDefinedOnItem:r,positions:void 0,settings:{stroke:n,strokeWidth:i,fill:a,dataKey:t,nameKey:void 0,name:sg(s,t),hide:o,type:e.tooltipType,color:e.stroke,unit:l}}}var zH=(e,t)=>"".concat(t,"px ").concat(e-t,"px");function uhe(e,t){for(var r=e.length%2!==0?[...e,0]:e,n=[],i=0;i<t;++i)n=[...n,...r];return n}var fhe=(e,t,r)=>{var n=r.reduce((h,p)=>h+p);if(!n)return zH(t,e);for(var i=Math.floor(e/n),a=e%n,s=t-e,o=[],l=0,c=0;l<r.length;c+=r[l],++l)if(c+r[l]>a){o=[...r.slice(0,l),a-c];break}var f=o.length%2===0?[0,s]:[s];return[...uhe(r,i),...o,...f].map(h=>"".concat(h,"px")).join(", ")};function hhe(e,t){var r;if(N.isValidElement(e))r=N.cloneElement(e,t);else if(typeof e=="function")r=e(t);else{var n=Ur("recharts-line-dot",typeof e!="boolean"?e.className:"");r=N.createElement(gH,Rh({},t,{className:n}))}return r}function dhe(e,t){return e==null?!1:t?!0:e.length===1}function ghe(e){var{clipPathId:t,points:r,props:n}=e,{dot:i,dataKey:a,needClip:s}=n;if(!dhe(r,i))return null;var{id:o}=n,l=z3(n,rhe),c=xH(i),f=Mo(l),h=aX(i),p=r.map((y,m)=>{var w=Oo(Oo(Oo({key:"dot-".concat(m),r:3},f),h),{},{index:m,cx:y.x,cy:y.y,dataKey:a,value:y.value,payload:y.payload,points:r});return hhe(i,w)}),g={clipPath:s?"url(#clipPath-".concat(c?"":"dots-").concat(t,")"):void 0};return N.createElement(Ya,Rh({className:"recharts-line-dots",key:"dots"},g),p)}function phe(e){var{showLabels:t,children:r,points:n}=e,i=N.useMemo(()=>n?.map(a=>{var s={x:a.x,y:a.y,width:0,height:0};return Oo(Oo({},s),{},{value:a.value,payload:a.payload,viewBox:s,parentViewBox:void 0,fill:void 0})}),[n]);return N.createElement(hH,{value:t?i:null},r)}function D6(e){var{clipPathId:t,pathRef:r,points:n,strokeDasharray:i,props:a}=e,{type:s,layout:o,connectNulls:l,needClip:c}=a,f=z3(a,nhe),h=Oo(Oo({},Us(f)),{},{fill:"none",className:"recharts-line-curve",clipPath:c?"url(#clipPath-".concat(t,")"):void 0,points:n,type:s,layout:o,connectNulls:l,strokeDasharray:i??a.strokeDasharray});return N.createElement(N.Fragment,null,n?.length>1&&N.createElement(pS,Rh({},h,{pathRef:r})),N.createElement(ghe,{points:n,clipPathId:t,props:a}))}function vhe(e){try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch{return 0}}function mhe(e){var{clipPathId:t,props:r,pathRef:n,previousPointsRef:i,longestAnimatedLengthRef:a}=e,{points:s,strokeDasharray:o,isAnimationActive:l,animationBegin:c,animationDuration:f,animationEasing:h,animateNewValues:p,width:g,height:y,onAnimationEnd:m,onAnimationStart:w}=r,b=i.current,E=tv(r,"recharts-line-"),[S,T]=N.useState(!1),D=!S,k=N.useCallback(()=>{typeof m=="function"&&m(),T(!1)},[m]),P=N.useCallback(()=>{typeof w=="function"&&w(),T(!0)},[w]),R=vhe(n.current),O=a.current;return N.createElement(phe,{points:s,showLabels:D},r.children,N.createElement(ev,{animationId:E,begin:c,duration:f,isActive:l,easing:h,onAnimationEnd:k,onAnimationStart:P,key:E},V=>{var I=Bi(O,R+O,V),Q=Math.min(I,R),W;if(l)if(o){var J="".concat(o).split(/[,\s]+/gim).map(se=>parseFloat(se));W=fhe(Q,R,J)}else W=zH(R,Q);else W=o==null?void 0:String(o);if(b){var fe=b.length/s.length,G=V===1?s:s.map((se,ge)=>{var ye=Math.floor(ge*fe);if(b[ye]){var _e=b[ye];return Oo(Oo({},se),{},{x:Bi(_e.x,se.x,V),y:Bi(_e.y,se.y,V)})}return p?Oo(Oo({},se),{},{x:Bi(g*2,se.x,V),y:Bi(y/2,se.y,V)}):Oo(Oo({},se),{},{x:se.x,y:se.y})});return i.current=G,N.createElement(D6,{props:r,points:G,clipPathId:t,pathRef:n,strokeDasharray:W})}return V>0&&R>0&&(i.current=s,a.current=Q),N.createElement(D6,{props:r,points:s,clipPathId:t,pathRef:n,strokeDasharray:W})}),N.createElement(S3,{label:r.label}))}function yhe(e){var{clipPathId:t,props:r}=e,n=N.useRef(null),i=N.useRef(0),a=N.useRef(null);return N.createElement(mhe,{props:r,clipPathId:t,previousPointsRef:n,longestAnimatedLengthRef:i,pathRef:a})}var whe=(e,t)=>({x:e.x,y:e.y,value:e.value,errorVal:Dn(e.payload,t)});class xhe extends N.Component{render(){var{hide:t,dot:r,points:n,className:i,xAxisId:a,yAxisId:s,top:o,left:l,width:c,height:f,id:h,needClip:p}=this.props;if(t)return null;var g=Ur("recharts-line",i),y=h,{r:m,strokeWidth:w}=the(r),b=xH(r),E=m*2+w;return N.createElement(N.Fragment,null,N.createElement(Ya,{className:g},p&&N.createElement("defs",null,N.createElement(UH,{clipPathId:y,xAxisId:a,yAxisId:s}),!b&&N.createElement("clipPath",{id:"clipPath-dots-".concat(y)},N.createElement("rect",{x:l-E/2,y:o-E/2,width:c+E,height:f+E}))),N.createElement(OH,{xAxisId:a,yAxisId:s,data:n,dataPointFormatter:whe,errorBarOffset:0},N.createElement(yhe,{props:this.props,clipPathId:y}))),N.createElement(Rce,{activeDot:this.props.activeDot,points:n,mainColor:this.props.stroke,itemDataKey:this.props.dataKey}))}}var VH={activeDot:!0,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!0,fill:"#fff",hide:!1,isAnimationActive:!_f.isSsr,label:!1,legendType:"line",stroke:"#3182bd",strokeWidth:1,xAxisId:0,yAxisId:0};function bhe(e){var t=Xa(e,VH),{activeDot:r,animateNewValues:n,animationBegin:i,animationDuration:a,animationEasing:s,connectNulls:o,dot:l,hide:c,isAnimationActive:f,label:h,legendType:p,xAxisId:g,yAxisId:y,id:m}=t,w=z3(t,ihe),{needClip:b}=Q3(g,y),E=P3(),S=ex(),T=Ns(),D=Pt(V=>ehe(V,g,y,T,m));if(S!=="horizontal"&&S!=="vertical"||D==null||E==null)return null;var{height:k,width:P,x:R,y:O}=E;return N.createElement(xhe,Rh({},w,{id:m,connectNulls:o,dot:l,activeDot:r,animateNewValues:n,animationBegin:i,animationDuration:a,animationEasing:s,isAnimationActive:f,hide:c,label:h,legendType:p,xAxisId:g,yAxisId:y,points:D,layout:S,height:k,width:P,left:R,top:O,needClip:b}))}function Bhe(e){var{layout:t,xAxis:r,yAxis:n,xAxisTicks:i,yAxisTicks:a,dataKey:s,bandSize:o,displayedData:l}=e;return l.map((c,f)=>{var h=Dn(c,s);if(t==="horizontal"){var p=iL({axis:r,ticks:i,bandSize:o,entry:c,index:f}),g=ei(h)?null:n.scale(h);return{x:p,y:g,value:h,payload:c}}var y=ei(h)?null:r.scale(h),m=iL({axis:n,ticks:a,bandSize:o,entry:c,index:f});return y==null||m==null?null:{x:y,y:m,value:h,payload:c}}).filter(Boolean)}function Che(e){var t=Xa(e,VH),r=Ns();return N.createElement(I3,{id:t.id,type:"line"},n=>N.createElement(N.Fragment,null,N.createElement(CH,{legendPayload:lhe(t)}),N.createElement(D3,{fn:che,args:t}),N.createElement(_H,{type:"line",id:n,data:t.data,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,hide:t.hide,isPanorama:r}),N.createElement(bhe,Rh({},t,{id:n}))))}var V3=N.memo(Che);V3.displayName="Line";var Ehe=["dangerouslySetInnerHTML","ticks"],_he=["id"],She=["domain"],Fhe=["domain"];function O_(){return O_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},O_.apply(null,arguments)}function K2(e,t){if(e==null)return{};var r,n,i=The(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function The(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Ohe(e){var t=ri();return N.useLayoutEffect(()=>(t(Sce(e)),()=>{t(Fce(e))}),[e,t]),null}var Uhe=e=>{var{xAxisId:t,className:r}=e,n=Pt(uS),i=Ns(),a="xAxis",s=Pt(w=>dg(w,a,t,i)),o=Pt(w=>Sj(w,a,t,i)),l=Pt(w=>Bj(w,t)),c=Pt(w=>dse(w,t)),f=Pt(w=>ij(w,t));if(l==null||c==null||f==null)return null;var{dangerouslySetInnerHTML:h,ticks:p}=e,g=K2(e,Ehe),{id:y}=f,m=K2(f,_he);return N.createElement(K3,O_({},g,m,{scale:s,x:c.x,y:c.y,width:l.width,height:l.height,className:Ur("recharts-".concat(a," ").concat(a),r),viewBox:n,ticks:o}))},Nhe={allowDataOverflow:Co.allowDataOverflow,allowDecimals:Co.allowDecimals,allowDuplicatedCategory:Co.allowDuplicatedCategory,height:Co.height,hide:!1,mirror:Co.mirror,orientation:Co.orientation,padding:Co.padding,reversed:Co.reversed,scale:Co.scale,tickCount:Co.tickCount,type:Co.type,xAxisId:0},Lhe=e=>{var t,r,n,i,a,s=Xa(e,Nhe);return N.createElement(N.Fragment,null,N.createElement(Ohe,{interval:(t=s.interval)!==null&&t!==void 0?t:"preserveEnd",id:s.xAxisId,scale:s.scale,type:s.type,padding:s.padding,allowDataOverflow:s.allowDataOverflow,domain:s.domain,dataKey:s.dataKey,allowDuplicatedCategory:s.allowDuplicatedCategory,allowDecimals:s.allowDecimals,tickCount:s.tickCount,includeHidden:(r=s.includeHidden)!==null&&r!==void 0?r:!1,reversed:s.reversed,ticks:s.ticks,height:s.height,orientation:s.orientation,mirror:s.mirror,hide:s.hide,unit:s.unit,name:s.name,angle:(n=s.angle)!==null&&n!==void 0?n:0,minTickGap:(i=s.minTickGap)!==null&&i!==void 0?i:5,tick:(a=s.tick)!==null&&a!==void 0?a:!0,tickFormatter:s.tickFormatter}),N.createElement(Uhe,s))},Dhe=(e,t)=>{var{domain:r}=e,n=K2(e,She),{domain:i}=t,a=K2(t,Fhe);return W0(n,a)?Array.isArray(r)&&r.length===2&&Array.isArray(i)&&i.length===2?r[0]===i[0]&&r[1]===i[1]:W0({domain:r},{domain:i}):!1},z2=N.memo(Lhe,Dhe);z2.displayName="XAxis";var Ihe=["dangerouslySetInnerHTML","ticks"],Mhe=["id"],Phe=["domain"],khe=["domain"];function U_(){return U_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},U_.apply(null,arguments)}function V2(e,t){if(e==null)return{};var r,n,i=Qhe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Qhe(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Rhe(e){var t=ri();return N.useLayoutEffect(()=>(t(Tce(e)),()=>{t(Oce(e))}),[e,t]),null}var jhe=e=>{var{yAxisId:t,className:r,width:n,label:i}=e,a=N.useRef(null),s=N.useRef(null),o=Pt(uS),l=Ns(),c=ri(),f="yAxis",h=Pt(D=>dg(D,f,t,l)),p=Pt(D=>Cj(D,t)),g=Pt(D=>pse(D,t)),y=Pt(D=>Sj(D,f,t,l)),m=Pt(D=>aj(D,t));if(N.useLayoutEffect(()=>{if(!(n!=="auto"||!p||_3(i)||N.isValidElement(i)||m==null)){var D=a.current;if(D){var k=D.getCalculatedWidth();Math.round(p.width)!==Math.round(k)&&c(Uce({id:t,width:k}))}}},[y,p,c,i,t,n,m]),p==null||g==null||m==null)return null;var{dangerouslySetInnerHTML:w,ticks:b}=e,E=V2(e,Ihe),{id:S}=m,T=V2(m,Mhe);return N.createElement(K3,U_({},E,T,{ref:a,labelRef:s,scale:h,x:g.x,y:g.y,tickTextProps:n==="auto"?{width:void 0}:{width:n},width:p.width,height:p.height,className:Ur("recharts-".concat(f," ").concat(f),r),viewBox:o,ticks:y}))},Hhe={allowDataOverflow:Eo.allowDataOverflow,allowDecimals:Eo.allowDecimals,allowDuplicatedCategory:Eo.allowDuplicatedCategory,hide:!1,mirror:Eo.mirror,orientation:Eo.orientation,padding:Eo.padding,reversed:Eo.reversed,scale:Eo.scale,tickCount:Eo.tickCount,type:Eo.type,width:Eo.width,yAxisId:0},Khe=e=>{var t,r,n,i,a,s=Xa(e,Hhe);return N.createElement(N.Fragment,null,N.createElement(Rhe,{interval:(t=s.interval)!==null&&t!==void 0?t:"preserveEnd",id:s.yAxisId,scale:s.scale,type:s.type,domain:s.domain,allowDataOverflow:s.allowDataOverflow,dataKey:s.dataKey,allowDuplicatedCategory:s.allowDuplicatedCategory,allowDecimals:s.allowDecimals,tickCount:s.tickCount,padding:s.padding,includeHidden:(r=s.includeHidden)!==null&&r!==void 0?r:!1,reversed:s.reversed,ticks:s.ticks,width:s.width,orientation:s.orientation,mirror:s.mirror,hide:s.hide,unit:s.unit,name:s.name,angle:(n=s.angle)!==null&&n!==void 0?n:0,minTickGap:(i=s.minTickGap)!==null&&i!==void 0?i:5,tick:(a=s.tick)!==null&&a!==void 0?a:!0,tickFormatter:s.tickFormatter}),N.createElement(jhe,s))},zhe=(e,t)=>{var{domain:r}=e,n=V2(e,Phe),{domain:i}=t,a=V2(t,khe);return W0(n,a)?Array.isArray(r)&&r.length===2&&Array.isArray(i)&&i.length===2?r[0]===i[0]&&r[1]===i[1]:W0({domain:r},{domain:i}):!1},G2=N.memo(Khe,zhe);G2.displayName="YAxis";var q5={exports:{}},W5={};/**
 * @license React
 * use-sync-external-store-with-selector.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var I6;function Vhe(){if(I6)return W5;I6=1;var e=eg();function t(l,c){return l===c&&(l!==0||1/l===1/c)||l!==l&&c!==c}var r=typeof Object.is=="function"?Object.is:t,n=e.useSyncExternalStore,i=e.useRef,a=e.useEffect,s=e.useMemo,o=e.useDebugValue;return W5.useSyncExternalStoreWithSelector=function(l,c,f,h,p){var g=i(null);if(g.current===null){var y={hasValue:!1,value:null};g.current=y}else y=g.current;g=s(function(){function w(D){if(!b){if(b=!0,E=D,D=h(D),p!==void 0&&y.hasValue){var k=y.value;if(p(k,D))return S=k}return S=D}if(k=S,r(E,D))return k;var P=h(D);return p!==void 0&&p(k,P)?(E=D,k):(E=D,S=P)}var b=!1,E,S,T=f===void 0?null:f;return[function(){return w(c())},T===null?void 0:function(){return w(T())}]},[c,f,h,p]);var m=n(l,g[0],g[1]);return a(function(){y.hasValue=!0,y.value=m},[m]),o(m),m},W5}var M6;function Ghe(){return M6||(M6=1,q5.exports=Vhe()),q5.exports}Ghe();function qhe(e){e()}function Whe(){let e=null,t=null;return{clear(){e=null,t=null},notify(){qhe(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){const r=[];let n=e;for(;n;)r.push(n),n=n.next;return r},subscribe(r){let n=!0;const i=t={callback:r,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!n||e===null||(n=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var P6={notify(){},get:()=>[]};function Yhe(e,t){let r,n=P6,i=0,a=!1;function s(m){f();const w=n.subscribe(m);let b=!1;return()=>{b||(b=!0,w(),h())}}function o(){n.notify()}function l(){y.onStateChange&&y.onStateChange()}function c(){return a}function f(){i++,r||(r=e.subscribe(l),n=Whe())}function h(){i--,r&&i===0&&(r(),r=void 0,n.clear(),n=P6)}function p(){a||(a=!0,f())}function g(){a&&(a=!1,h())}const y={addNestedSub:s,notifyNestedSubs:o,handleChangeWrapper:l,isSubscribed:c,trySubscribe:p,tryUnsubscribe:g,getListeners:()=>n};return y}var $he=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Xhe=$he(),Jhe=()=>typeof navigator<"u"&&navigator.product==="ReactNative",Zhe=Jhe(),ede=()=>Xhe||Zhe?N.useLayoutEffect:N.useEffect,tde=ede(),rde=Symbol.for("react-redux-context"),nde=typeof globalThis<"u"?globalThis:{};function ide(){if(!N.createContext)return{};const e=nde[rde]??=new Map;let t=e.get(N.createContext);return t||(t=N.createContext(null),e.set(N.createContext,t)),t}var ade=ide();function sde(e){const{children:t,context:r,serverState:n,store:i}=e,a=N.useMemo(()=>{const l=Yhe(i);return{store:i,subscription:l,getServerState:n?()=>n:void 0}},[i,n]),s=N.useMemo(()=>i.getState(),[i]);tde(()=>{const{subscription:l}=a;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),s!==i.getState()&&l.notifyNestedSubs(),()=>{l.tryUnsubscribe(),l.onStateChange=void 0}},[a,s]);const o=r||ade;return N.createElement(o.Provider,{value:a},t)}var ode=sde,Ade=(e,t)=>t,G3=ze([Ade,Qr,tj,ca,zj,su,xoe,Aa],_oe),q3=e=>{var t=e.currentTarget.getBoundingClientRect(),r=t.width/e.currentTarget.offsetWidth,n=t.height/e.currentTarget.offsetHeight;return{chartX:Math.round((e.clientX-t.left)/r),chartY:Math.round((e.clientY-t.top)/n)}},GH=pA("mouseClick"),qH=J1();qH.startListening({actionCreator:GH,effect:(e,t)=>{var r=e.payload,n=G3(t.getState(),q3(r));n?.activeIndex!=null&&t.dispatch(Tse({activeIndex:n.activeIndex,activeDataKey:void 0,activeCoordinate:n.activeCoordinate}))}});var N_=pA("mouseMove"),WH=J1();WH.startListening({actionCreator:N_,effect:(e,t)=>{var r=e.payload,n=t.getState(),i=p3(n,n.tooltip.settings.shared),a=G3(n,q3(r));i==="axis"&&(a?.activeIndex!=null?t.dispatch(Ij({activeIndex:a.activeIndex,activeDataKey:void 0,activeCoordinate:a.activeCoordinate})):t.dispatch(Dj()))}});var k6={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index"},YH=Qo({name:"rootProps",initialState:k6,reducers:{updateOptions:(e,t)=>{var r;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=(r=t.payload.barGap)!==null&&r!==void 0?r:k6.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className}}}),lde=YH.reducer,{updateOptions:cde}=YH.actions,$H=Qo({name:"polarOptions",initialState:null,reducers:{updatePolarOptions:(e,t)=>t.payload}}),{updatePolarOptions:ude}=$H.actions,fde=$H.reducer,XH=pA("keyDown"),JH=pA("focus"),W3=J1();W3.startListening({actionCreator:XH,effect:(e,t)=>{var r=t.getState(),n=r.rootProps.accessibilityLayer!==!1;if(n){var{keyboardInteraction:i}=r.tooltip,a=e.payload;if(!(a!=="ArrowRight"&&a!=="ArrowLeft"&&a!=="Enter")){var s=Number(v3(i,pg(r))),o=su(r);if(a==="Enter"){var l=I2(r,"axis","hover",String(i.index));t.dispatch(B_({active:!i.active,activeIndex:i.index,activeDataKey:i.dataKey,activeCoordinate:l}));return}var c=wse(r),f=c==="left-to-right"?1:-1,h=a==="ArrowRight"?1:-1,p=s+h*f;if(!(o==null||p>=o.length||p<0)){var g=I2(r,"axis","hover",String(p));t.dispatch(B_({active:!0,activeIndex:p.toString(),activeDataKey:void 0,activeCoordinate:g}))}}}}});W3.startListening({actionCreator:JH,effect:(e,t)=>{var r=t.getState(),n=r.rootProps.accessibilityLayer!==!1;if(n){var{keyboardInteraction:i}=r.tooltip;if(!i.active&&i.index==null){var a="0",s=I2(r,"axis","hover",String(a));t.dispatch(B_({activeDataKey:void 0,active:!0,activeIndex:a,activeCoordinate:s}))}}}});var sA=pA("externalEvent"),ZH=J1();ZH.startListening({actionCreator:sA,effect:(e,t)=>{if(e.payload.handler!=null){var r=t.getState(),n={activeCoordinate:uoe(r),activeDataKey:Wj(r),activeIndex:df(r),activeLabel:qj(r),activeTooltipIndex:df(r),isTooltipActive:foe(r)};e.payload.handler(n,e.payload.reactEvent)}}});var hde=ze([gg],e=>e.tooltipItemPayloads),dde=ze([hde,uv,(e,t,r)=>t,(e,t,r)=>r],(e,t,r,n)=>{var i=e.find(o=>o.settings.dataKey===n);if(i!=null){var{positions:a}=i;if(a!=null){var s=t(a,r);return s}}}),e9=pA("touchMove"),t9=J1();t9.startListening({actionCreator:e9,effect:(e,t)=>{var r=e.payload,n=t.getState(),i=p3(n,n.tooltip.settings.shared);if(i==="axis"){var a=G3(n,q3({clientX:r.touches[0].clientX,clientY:r.touches[0].clientY,currentTarget:r.currentTarget}));a?.activeIndex!=null&&t.dispatch(Ij({activeIndex:a.activeIndex,activeDataKey:void 0,activeCoordinate:a.activeCoordinate}))}else if(i==="item"){var s,o=r.touches[0],l=document.elementFromPoint(o.clientX,o.clientY);if(!l||!l.getAttribute)return;var c=l.getAttribute(DR),f=(s=l.getAttribute(IR))!==null&&s!==void 0?s:void 0,h=dde(t.getState(),c,f);t.dispatch(Lj({activeDataKey:f,activeIndex:c,activeCoordinate:h}))}}});var gde=iR({brush:Zue,cartesianAxis:Nce,chartData:Hoe,errorBars:Jce,graphicalItems:Xle,layout:ZZ,legend:ate,options:Poe,polarAxis:ule,polarOptions:fde,referenceElements:sfe,rootProps:lde,tooltip:Ose}),pde=function(t){return CZ({reducer:gde,preloadedState:t,middleware:r=>r({serializableCheck:!1}).concat([qH.middleware,WH.middleware,W3.middleware,ZH.middleware,t9.middleware]),enhancers:r=>{var n=r;return typeof r=="function"&&(n=r()),n.concat(pR({type:"raf"}))},devTools:_f.devToolsEnabled})};function r9(e){var{preloadedState:t,children:r,reduxStoreName:n}=e,i=Ns(),a=N.useRef(null);if(i)return r;a.current==null&&(a.current=pde(t));var s=aS;return N.createElement(ode,{context:s,store:a.current},r)}function n9(e){var{layout:t,margin:r}=e,n=ri(),i=Ns();return N.useEffect(()=>{i||(n($Z(t)),n(YZ(r)))},[n,i,t,r]),null}function i9(e){var t=ri();return N.useEffect(()=>{t(cde(e))},[t,e]),null}var vde=["children"];function mde(e,t){if(e==null)return{};var r,n,i=yde(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function yde(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function q2(){return q2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},q2.apply(null,arguments)}var wde={width:"100%",height:"100%",display:"block"},xde=N.forwardRef((e,t)=>{var r=hS(),n=dS(),i=KR();if(!K0(r)||!K0(n))return null;var{children:a,otherAttributes:s,title:o,desc:l}=e,c,f;return typeof s.tabIndex=="number"?c=s.tabIndex:c=i?0:void 0,typeof s.role=="string"?f=s.role:f=i?"application":void 0,N.createElement(G4,q2({},s,{title:o,desc:l,role:f,tabIndex:c,width:r,height:n,style:wde,ref:t}),a)}),bde=e=>{var{children:t}=e,r=Pt(Jw);if(!r)return null;var{width:n,height:i,y:a,x:s}=r;return N.createElement(G4,{width:n,height:i,x:s,y:a},t)},Q6=N.forwardRef((e,t)=>{var{children:r}=e,n=mde(e,vde),i=Ns();return i?N.createElement(bde,null,r):N.createElement(xde,q2({ref:t},n),r)});function Bde(){var e=ri(),[t,r]=N.useState(null),n=Pt(Fee);return N.useEffect(()=>{if(t!=null){var i=t.getBoundingClientRect(),a=i.width/t.offsetWidth;ds(a)&&a!==n&&e(JZ(a))}},[t,e,n]),r}function R6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Cde(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?R6(Object(r),!0).forEach(function(n){Ede(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):R6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ede(e,t,r){return(t=_de(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _de(e){var t=Sde(e,"string");return typeof t=="symbol"?t:t+""}function Sde(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jh(){return jh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},jh.apply(null,arguments)}var Fde=()=>(Xoe(),null);function W2(e){if(typeof e=="number")return e;if(typeof e=="string"){var t=parseFloat(e);if(!Number.isNaN(t))return t}return 0}var Tde=N.forwardRef((e,t)=>{var r,n,i=N.useRef(null),[a,s]=N.useState({containerWidth:W2((r=e.style)===null||r===void 0?void 0:r.width),containerHeight:W2((n=e.style)===null||n===void 0?void 0:n.height)}),o=N.useCallback((c,f)=>{s(h=>{var p=Math.round(c),g=Math.round(f);return h.containerWidth===p&&h.containerHeight===g?h:{containerWidth:p,containerHeight:g}})},[]),l=N.useCallback(c=>{if(typeof t=="function"&&t(c),c!=null){var{width:f,height:h}=c.getBoundingClientRect();o(f,h);var p=y=>{var{width:m,height:w}=y[0].contentRect;o(m,w)},g=new ResizeObserver(p);g.observe(c),i.current=g}},[t,o]);return N.useEffect(()=>()=>{var c=i.current;c?.disconnect()},[o]),N.createElement(N.Fragment,null,N.createElement(tx,{width:a.containerWidth,height:a.containerHeight}),N.createElement("div",jh({ref:l},e)))}),Ode=N.forwardRef((e,t)=>{var{width:r,height:n}=e,[i,a]=N.useState({containerWidth:W2(r),containerHeight:W2(n)}),s=N.useCallback((l,c)=>{a(f=>{var h=Math.round(l),p=Math.round(c);return f.containerWidth===h&&f.containerHeight===p?f:{containerWidth:h,containerHeight:p}})},[]),o=N.useCallback(l=>{if(typeof t=="function"&&t(l),l!=null){var{width:c,height:f}=l.getBoundingClientRect();s(c,f)}},[t,s]);return N.createElement(N.Fragment,null,N.createElement(tx,{width:i.containerWidth,height:i.containerHeight}),N.createElement("div",jh({ref:o},e)))}),Ude=N.forwardRef((e,t)=>{var{width:r,height:n}=e;return N.createElement(N.Fragment,null,N.createElement(tx,{width:r,height:n}),N.createElement("div",jh({ref:t},e)))}),Nde=N.forwardRef((e,t)=>{var{width:r,height:n}=e;return Vc(r)||Vc(n)?N.createElement(Ode,jh({},e,{ref:t})):N.createElement(Ude,jh({},e,{ref:t}))});function Lde(e){return e===!0?Tde:Nde}var Dde=N.forwardRef((e,t)=>{var{children:r,className:n,height:i,onClick:a,onContextMenu:s,onDoubleClick:o,onMouseDown:l,onMouseEnter:c,onMouseLeave:f,onMouseMove:h,onMouseUp:p,onTouchEnd:g,onTouchMove:y,onTouchStart:m,style:w,width:b,responsive:E,dispatchTouchEvents:S=!0}=e,T=N.useRef(null),D=ri(),[k,P]=N.useState(null),[R,O]=N.useState(null),V=Bde(),I=fS(),Q=I?.width>0?I.width:b,W=I?.height>0?I.height:i,J=N.useCallback(ae=>{V(ae),typeof t=="function"&&t(ae),P(ae),O(ae),ae!=null&&(T.current=ae)},[V,t,P,O]),fe=N.useCallback(ae=>{D(GH(ae)),D(sA({handler:a,reactEvent:ae}))},[D,a]),G=N.useCallback(ae=>{D(N_(ae)),D(sA({handler:c,reactEvent:ae}))},[D,c]),se=N.useCallback(ae=>{D(Dj()),D(sA({handler:f,reactEvent:ae}))},[D,f]),ge=N.useCallback(ae=>{D(N_(ae)),D(sA({handler:h,reactEvent:ae}))},[D,h]),ye=N.useCallback(()=>{D(JH())},[D]),_e=N.useCallback(ae=>{D(XH(ae.key))},[D]),Z=N.useCallback(ae=>{D(sA({handler:s,reactEvent:ae}))},[D,s]),L=N.useCallback(ae=>{D(sA({handler:o,reactEvent:ae}))},[D,o]),j=N.useCallback(ae=>{D(sA({handler:l,reactEvent:ae}))},[D,l]),K=N.useCallback(ae=>{D(sA({handler:p,reactEvent:ae}))},[D,p]),q=N.useCallback(ae=>{D(sA({handler:m,reactEvent:ae}))},[D,m]),re=N.useCallback(ae=>{S&&D(e9(ae)),D(sA({handler:y,reactEvent:ae}))},[D,S,y]),he=N.useCallback(ae=>{D(sA({handler:g,reactEvent:ae}))},[D,g]),Be=Lde(E);return N.createElement(eH.Provider,{value:k},N.createElement(bQ.Provider,{value:R},N.createElement(Be,{width:Q??w?.width,height:W??w?.height,className:Ur("recharts-wrapper",n),style:Cde({position:"relative",cursor:"default",width:Q,height:W},w),onClick:fe,onContextMenu:Z,onDoubleClick:L,onFocus:ye,onKeyDown:_e,onMouseDown:j,onMouseEnter:G,onMouseLeave:se,onMouseMove:ge,onMouseUp:K,onTouchEnd:he,onTouchMove:re,onTouchStart:q,ref:J},N.createElement(Fde,null),r)))}),Ide=["width","height","responsive","children","className","style","compact","title","desc"];function Mde(e,t){if(e==null)return{};var r,n,i=Pde(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Pde(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var a9=N.forwardRef((e,t)=>{var{width:r,height:n,responsive:i,children:a,className:s,style:o,compact:l,title:c,desc:f}=e,h=Mde(e,Ide),p=Mo(h);return l?N.createElement(N.Fragment,null,N.createElement(tx,{width:r,height:n}),N.createElement(Q6,{otherAttributes:p,title:c,desc:f},a)):N.createElement(Dde,{className:s,style:o,width:r,height:n,responsive:i,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},N.createElement(Q6,{otherAttributes:p,title:c,desc:f,ref:t},N.createElement(Afe,null,a)))});function L_(){return L_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},L_.apply(null,arguments)}var kde={top:5,right:5,bottom:5,left:5},Qde={accessibilityLayer:!0,layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:kde,reverseStackOrder:!1,syncMethod:"index",responsive:!1},s9=N.forwardRef(function(t,r){var n,i=Xa(t.categoricalChartProps,Qde),{chartName:a,defaultTooltipEventType:s,validateTooltipEventTypes:o,tooltipPayloadSearcher:l,categoricalChartProps:c}=t,f={chartName:a,defaultTooltipEventType:s,validateTooltipEventTypes:o,tooltipPayloadSearcher:l,eventEmitter:void 0};return N.createElement(r9,{preloadedState:{options:f},reduxStoreName:(n=c.id)!==null&&n!==void 0?n:a},N.createElement(IH,{chartData:c.data}),N.createElement(n9,{layout:i.layout,margin:i.margin}),N.createElement(i9,{accessibilityLayer:i.accessibilityLayer,barCategoryGap:i.barCategoryGap,maxBarSize:i.maxBarSize,stackOffset:i.stackOffset,barGap:i.barGap,barSize:i.barSize,syncId:i.syncId,syncMethod:i.syncMethod,className:i.className}),N.createElement(a9,L_({},i,{ref:r})))}),Rde=["axis"],o9=N.forwardRef((e,t)=>N.createElement(s9,{chartName:"LineChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:Rde,tooltipPayloadSearcher:E3,categoricalChartProps:e,ref:t})),jde=["axis","item"],Hde=N.forwardRef((e,t)=>N.createElement(s9,{chartName:"BarChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:jde,tooltipPayloadSearcher:E3,categoricalChartProps:e,ref:t}));function Kde(e){var t=ri();return N.useEffect(()=>{t(ude(e))},[t,e]),null}var zde=["layout"];function D_(){return D_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},D_.apply(null,arguments)}function Vde(e,t){if(e==null)return{};var r,n,i=Gde(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Gde(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var qde={top:5,right:5,bottom:5,left:5},Wde={accessibilityLayer:!0,stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:qde,reverseStackOrder:!1,syncMethod:"index",layout:"radial",responsive:!1},Yde=N.forwardRef(function(t,r){var n,i=Xa(t.categoricalChartProps,Wde),{layout:a}=i,s=Vde(i,zde),{chartName:o,defaultTooltipEventType:l,validateTooltipEventTypes:c,tooltipPayloadSearcher:f}=t,h={chartName:o,defaultTooltipEventType:l,validateTooltipEventTypes:c,tooltipPayloadSearcher:f,eventEmitter:void 0};return N.createElement(r9,{preloadedState:{options:h},reduxStoreName:(n=i.id)!==null&&n!==void 0?n:o},N.createElement(IH,{chartData:i.data}),N.createElement(n9,{layout:a,margin:i.margin}),N.createElement(i9,{accessibilityLayer:i.accessibilityLayer,barCategoryGap:i.barCategoryGap,maxBarSize:i.maxBarSize,stackOffset:i.stackOffset,barGap:i.barGap,barSize:i.barSize,syncId:i.syncId,syncMethod:i.syncMethod,className:i.className}),N.createElement(Kde,{cx:i.cx,cy:i.cy,startAngle:i.startAngle,endAngle:i.endAngle,innerRadius:i.innerRadius,outerRadius:i.outerRadius}),N.createElement(a9,D_({},s,{ref:r})))}),$de=["item"],Xde={layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"},Jde=N.forwardRef((e,t)=>{var r=Xa(e,Xde);return N.createElement(Yde,{chartName:"PieChart",defaultTooltipEventType:"item",validateTooltipEventTypes:$de,tooltipPayloadSearcher:E3,categoricalChartProps:r,ref:t})});/*!
 * html2canvas 1.4.1 <https://html2canvas.hertzen.com>
 * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
 * Released under MIT License
 *//*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var I_=function(e,t){return I_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},I_(e,t)};function Al(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");I_(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var M_=function(){return M_=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},M_.apply(this,arguments)};function bs(e,t,r,n){function i(a){return a instanceof r?a:new r(function(s){s(a)})}return new(r||(r=Promise))(function(a,s){function o(f){try{c(n.next(f))}catch(h){s(h)}}function l(f){try{c(n.throw(f))}catch(h){s(h)}}function c(f){f.done?a(f.value):i(f.value).then(o,l)}c((n=n.apply(e,[])).next())})}function os(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(c){return function(f){return l([c,f])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=c[0]&2?i.return:c[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,c[1])).done)return a;switch(i=0,a&&(c=[c[0]&2,a.value]),c[0]){case 0:case 1:a=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,i=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){r.label=c[1];break}if(c[0]===6&&r.label<a[1]){r.label=a[1],a=c;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(c);break}a[2]&&r.ops.pop(),r.trys.pop();continue}c=t.call(e,r)}catch(f){c=[6,f],i=0}finally{n=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function Pm(e,t,r){if(arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||t)}var $c=(function(){function e(t,r,n,i){this.left=t,this.top=r,this.width=n,this.height=i}return e.prototype.add=function(t,r,n,i){return new e(this.left+t,this.top+r,this.width+n,this.height+i)},e.fromClientRect=function(t,r){return new e(r.left+t.windowBounds.left,r.top+t.windowBounds.top,r.width,r.height)},e.fromDOMRectList=function(t,r){var n=Array.from(r).find(function(i){return i.width!==0});return n?new e(n.left+t.windowBounds.left,n.top+t.windowBounds.top,n.width,n.height):e.EMPTY},e.EMPTY=new e(0,0,0,0),e})(),Ex=function(e,t){return $c.fromClientRect(e,t.getBoundingClientRect())},Zde=function(e){var t=e.body,r=e.documentElement;if(!t||!r)throw new Error("Unable to get document size");var n=Math.max(Math.max(t.scrollWidth,r.scrollWidth),Math.max(t.offsetWidth,r.offsetWidth),Math.max(t.clientWidth,r.clientWidth)),i=Math.max(Math.max(t.scrollHeight,r.scrollHeight),Math.max(t.offsetHeight,r.offsetHeight),Math.max(t.clientHeight,r.clientHeight));return new $c(0,0,n,i)},_x=function(e){for(var t=[],r=0,n=e.length;r<n;){var i=e.charCodeAt(r++);if(i>=55296&&i<=56319&&r<n){var a=e.charCodeAt(r++);(a&64512)===56320?t.push(((i&1023)<<10)+(a&1023)+65536):(t.push(i),r--)}else t.push(i)}return t},Ni=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var r=e.length;if(!r)return"";for(var n=[],i=-1,a="";++i<r;){var s=e[i];s<=65535?n.push(s):(s-=65536,n.push((s>>10)+55296,s%1024+56320)),(i+1===r||n.length>16384)&&(a+=String.fromCharCode.apply(String,n),n.length=0)}return a},j6="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e0e=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var km=0;km<j6.length;km++)e0e[j6.charCodeAt(km)]=km;var H6="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Lp=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Qm=0;Qm<H6.length;Qm++)Lp[H6.charCodeAt(Qm)]=Qm;var t0e=function(e){var t=e.length*.75,r=e.length,n,i=0,a,s,o,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);var c=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(t):new Array(t),f=Array.isArray(c)?c:new Uint8Array(c);for(n=0;n<r;n+=4)a=Lp[e.charCodeAt(n)],s=Lp[e.charCodeAt(n+1)],o=Lp[e.charCodeAt(n+2)],l=Lp[e.charCodeAt(n+3)],f[i++]=a<<2|s>>4,f[i++]=(s&15)<<4|o>>2,f[i++]=(o&3)<<6|l&63;return c},r0e=function(e){for(var t=e.length,r=[],n=0;n<t;n+=2)r.push(e[n+1]<<8|e[n]);return r},n0e=function(e){for(var t=e.length,r=[],n=0;n<t;n+=4)r.push(e[n+3]<<24|e[n+2]<<16|e[n+1]<<8|e[n]);return r},Fh=5,Y3=11,Y5=2,i0e=Y3-Fh,A9=65536>>Fh,a0e=1<<Fh,$5=a0e-1,s0e=1024>>Fh,o0e=A9+s0e,A0e=o0e,l0e=32,c0e=A0e+l0e,u0e=65536>>Y3,f0e=1<<i0e,h0e=f0e-1,K6=function(e,t,r){return e.slice?e.slice(t,r):new Uint16Array(Array.prototype.slice.call(e,t,r))},d0e=function(e,t,r){return e.slice?e.slice(t,r):new Uint32Array(Array.prototype.slice.call(e,t,r))},g0e=function(e,t){var r=t0e(e),n=Array.isArray(r)?n0e(r):new Uint32Array(r),i=Array.isArray(r)?r0e(r):new Uint16Array(r),a=24,s=K6(i,a/2,n[4]/2),o=n[5]===2?K6(i,(a+n[4])/2):d0e(n,Math.ceil((a+n[4])/4));return new p0e(n[0],n[1],n[2],n[3],s,o)},p0e=(function(){function e(t,r,n,i,a,s){this.initialValue=t,this.errorValue=r,this.highStart=n,this.highValueIndex=i,this.index=a,this.data=s}return e.prototype.get=function(t){var r;if(t>=0){if(t<55296||t>56319&&t<=65535)return r=this.index[t>>Fh],r=(r<<Y5)+(t&$5),this.data[r];if(t<=65535)return r=this.index[A9+(t-55296>>Fh)],r=(r<<Y5)+(t&$5),this.data[r];if(t<this.highStart)return r=c0e-u0e+(t>>Y3),r=this.index[r],r+=t>>Fh&h0e,r=this.index[r],r=(r<<Y5)+(t&$5),this.data[r];if(t<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e})(),z6="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",v0e=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Rm=0;Rm<z6.length;Rm++)v0e[z6.charCodeAt(Rm)]=Rm;var m0e=" ",V6=50,y0e=1,l9=2,c9=3,w0e=4,x0e=5,G6=7,u9=8,q6=9,Ju=10,P_=11,W6=12,k_=13,b0e=14,Dp=15,Q_=16,jm=17,vp=18,B0e=19,Y6=20,R_=21,mp=22,X5=23,t0=24,Bo=25,Ip=26,Mp=27,r0=28,C0e=29,gh=30,E0e=31,Hm=32,Km=33,j_=34,H_=35,K_=36,B1=37,z_=38,Gy=39,qy=40,J5=41,f9=42,_0e=43,S0e=[9001,65288],h9="!",Tr="×",zm="÷",V_=g0e(m0e),Bc=[gh,K_],G_=[y0e,l9,c9,x0e],d9=[Ju,u9],$6=[Mp,Ip],F0e=G_.concat(d9),X6=[z_,Gy,qy,j_,H_],T0e=[Dp,k_],O0e=function(e,t){t===void 0&&(t="strict");var r=[],n=[],i=[];return e.forEach(function(a,s){var o=V_.get(a);if(o>V6?(i.push(!0),o-=V6):i.push(!1),["normal","auto","loose"].indexOf(t)!==-1&&[8208,8211,12316,12448].indexOf(a)!==-1)return n.push(s),r.push(Q_);if(o===w0e||o===P_){if(s===0)return n.push(s),r.push(gh);var l=r[s-1];return F0e.indexOf(l)===-1?(n.push(n[s-1]),r.push(l)):(n.push(s),r.push(gh))}if(n.push(s),o===E0e)return r.push(t==="strict"?R_:B1);if(o===f9||o===C0e)return r.push(gh);if(o===_0e)return a>=131072&&a<=196605||a>=196608&&a<=262141?r.push(B1):r.push(gh);r.push(o)}),[n,r,i]},Z5=function(e,t,r,n){var i=n[r];if(Array.isArray(e)?e.indexOf(i)!==-1:e===i)for(var a=r;a<=n.length;){a++;var s=n[a];if(s===t)return!0;if(s!==Ju)break}if(i===Ju)for(var a=r;a>0;){a--;var o=n[a];if(Array.isArray(e)?e.indexOf(o)!==-1:e===o)for(var l=r;l<=n.length;){l++;var s=n[l];if(s===t)return!0;if(s!==Ju)break}if(o!==Ju)break}return!1},J6=function(e,t){for(var r=e;r>=0;){var n=t[r];if(n===Ju)r--;else return n}return 0},U0e=function(e,t,r,n,i){if(r[n]===0)return Tr;var a=n-1;if(Array.isArray(i)&&i[a]===!0)return Tr;var s=a-1,o=a+1,l=t[a],c=s>=0?t[s]:0,f=t[o];if(l===l9&&f===c9)return Tr;if(G_.indexOf(l)!==-1)return h9;if(G_.indexOf(f)!==-1||d9.indexOf(f)!==-1)return Tr;if(J6(a,t)===u9)return zm;if(V_.get(e[a])===P_||(l===Hm||l===Km)&&V_.get(e[o])===P_||l===G6||f===G6||l===q6||[Ju,k_,Dp].indexOf(l)===-1&&f===q6||[jm,vp,B0e,t0,r0].indexOf(f)!==-1||J6(a,t)===mp||Z5(X5,mp,a,t)||Z5([jm,vp],R_,a,t)||Z5(W6,W6,a,t))return Tr;if(l===Ju)return zm;if(l===X5||f===X5)return Tr;if(f===Q_||l===Q_)return zm;if([k_,Dp,R_].indexOf(f)!==-1||l===b0e||c===K_&&T0e.indexOf(l)!==-1||l===r0&&f===K_||f===Y6||Bc.indexOf(f)!==-1&&l===Bo||Bc.indexOf(l)!==-1&&f===Bo||l===Mp&&[B1,Hm,Km].indexOf(f)!==-1||[B1,Hm,Km].indexOf(l)!==-1&&f===Ip||Bc.indexOf(l)!==-1&&$6.indexOf(f)!==-1||$6.indexOf(l)!==-1&&Bc.indexOf(f)!==-1||[Mp,Ip].indexOf(l)!==-1&&(f===Bo||[mp,Dp].indexOf(f)!==-1&&t[o+1]===Bo)||[mp,Dp].indexOf(l)!==-1&&f===Bo||l===Bo&&[Bo,r0,t0].indexOf(f)!==-1)return Tr;if([Bo,r0,t0,jm,vp].indexOf(f)!==-1)for(var h=a;h>=0;){var p=t[h];if(p===Bo)return Tr;if([r0,t0].indexOf(p)!==-1)h--;else break}if([Mp,Ip].indexOf(f)!==-1)for(var h=[jm,vp].indexOf(l)!==-1?s:a;h>=0;){var p=t[h];if(p===Bo)return Tr;if([r0,t0].indexOf(p)!==-1)h--;else break}if(z_===l&&[z_,Gy,j_,H_].indexOf(f)!==-1||[Gy,j_].indexOf(l)!==-1&&[Gy,qy].indexOf(f)!==-1||[qy,H_].indexOf(l)!==-1&&f===qy||X6.indexOf(l)!==-1&&[Y6,Ip].indexOf(f)!==-1||X6.indexOf(f)!==-1&&l===Mp||Bc.indexOf(l)!==-1&&Bc.indexOf(f)!==-1||l===t0&&Bc.indexOf(f)!==-1||Bc.concat(Bo).indexOf(l)!==-1&&f===mp&&S0e.indexOf(e[o])===-1||Bc.concat(Bo).indexOf(f)!==-1&&l===vp)return Tr;if(l===J5&&f===J5){for(var g=r[a],y=1;g>0&&(g--,t[g]===J5);)y++;if(y%2!==0)return Tr}return l===Hm&&f===Km?Tr:zm},N0e=function(e,t){t||(t={lineBreak:"normal",wordBreak:"normal"});var r=O0e(e,t.lineBreak),n=r[0],i=r[1],a=r[2];(t.wordBreak==="break-all"||t.wordBreak==="break-word")&&(i=i.map(function(o){return[Bo,gh,f9].indexOf(o)!==-1?B1:o}));var s=t.wordBreak==="keep-all"?a.map(function(o,l){return o&&e[l]>=19968&&e[l]<=40959}):void 0;return[n,i,s]},L0e=(function(){function e(t,r,n,i){this.codePoints=t,this.required=r===h9,this.start=n,this.end=i}return e.prototype.slice=function(){return Ni.apply(void 0,this.codePoints.slice(this.start,this.end))},e})(),D0e=function(e,t){var r=_x(e),n=N0e(r,t),i=n[0],a=n[1],s=n[2],o=r.length,l=0,c=0;return{next:function(){if(c>=o)return{done:!0,value:null};for(var f=Tr;c<o&&(f=U0e(r,a,i,++c,s))===Tr;);if(f!==Tr||c===o){var h=new L0e(r,f,l,c);return l=c,{value:h,done:!1}}return{done:!0,value:null}}}},I0e=1,M0e=2,gv=4,Z6=8,Y2=10,e8=47,Vp=92,P0e=9,k0e=32,Vm=34,yp=61,Q0e=35,R0e=36,j0e=37,Gm=39,qm=40,wp=41,H0e=95,Zs=45,K0e=33,z0e=60,V0e=62,G0e=64,q0e=91,W0e=93,Y0e=61,$0e=123,Wm=63,X0e=125,t8=124,J0e=126,Z0e=128,r8=65533,eC=42,xh=43,ege=44,tge=58,rge=59,C1=46,nge=0,ige=8,age=11,sge=14,oge=31,Age=127,Ul=-1,g9=48,p9=97,v9=101,lge=102,cge=117,uge=122,m9=65,y9=69,w9=70,fge=85,hge=90,ls=function(e){return e>=g9&&e<=57},dge=function(e){return e>=55296&&e<=57343},n0=function(e){return ls(e)||e>=m9&&e<=w9||e>=p9&&e<=lge},gge=function(e){return e>=p9&&e<=uge},pge=function(e){return e>=m9&&e<=hge},vge=function(e){return gge(e)||pge(e)},mge=function(e){return e>=Z0e},Ym=function(e){return e===Y2||e===P0e||e===k0e},$2=function(e){return vge(e)||mge(e)||e===H0e},n8=function(e){return $2(e)||ls(e)||e===Zs},yge=function(e){return e>=nge&&e<=ige||e===age||e>=sge&&e<=oge||e===Age},$u=function(e,t){return e!==Vp?!1:t!==Y2},$m=function(e,t,r){return e===Zs?$2(t)||$u(t,r):$2(e)?!0:!!(e===Vp&&$u(e,t))},tC=function(e,t,r){return e===xh||e===Zs?ls(t)?!0:t===C1&&ls(r):ls(e===C1?t:e)},wge=function(e){var t=0,r=1;(e[t]===xh||e[t]===Zs)&&(e[t]===Zs&&(r=-1),t++);for(var n=[];ls(e[t]);)n.push(e[t++]);var i=n.length?parseInt(Ni.apply(void 0,n),10):0;e[t]===C1&&t++;for(var a=[];ls(e[t]);)a.push(e[t++]);var s=a.length,o=s?parseInt(Ni.apply(void 0,a),10):0;(e[t]===y9||e[t]===v9)&&t++;var l=1;(e[t]===xh||e[t]===Zs)&&(e[t]===Zs&&(l=-1),t++);for(var c=[];ls(e[t]);)c.push(e[t++]);var f=c.length?parseInt(Ni.apply(void 0,c),10):0;return r*(i+o*Math.pow(10,-s))*Math.pow(10,l*f)},xge={type:2},bge={type:3},Bge={type:4},Cge={type:13},Ege={type:8},_ge={type:21},Sge={type:9},Fge={type:10},Tge={type:11},Oge={type:12},Uge={type:14},Xm={type:23},Nge={type:1},Lge={type:25},Dge={type:24},Ige={type:26},Mge={type:27},Pge={type:28},kge={type:29},Qge={type:31},q_={type:32},x9=(function(){function e(){this._value=[]}return e.prototype.write=function(t){this._value=this._value.concat(_x(t))},e.prototype.read=function(){for(var t=[],r=this.consumeToken();r!==q_;)t.push(r),r=this.consumeToken();return t},e.prototype.consumeToken=function(){var t=this.consumeCodePoint();switch(t){case Vm:return this.consumeStringToken(Vm);case Q0e:var r=this.peekCodePoint(0),n=this.peekCodePoint(1),i=this.peekCodePoint(2);if(n8(r)||$u(n,i)){var a=$m(r,n,i)?M0e:I0e,s=this.consumeName();return{type:5,value:s,flags:a}}break;case R0e:if(this.peekCodePoint(0)===yp)return this.consumeCodePoint(),Cge;break;case Gm:return this.consumeStringToken(Gm);case qm:return xge;case wp:return bge;case eC:if(this.peekCodePoint(0)===yp)return this.consumeCodePoint(),Uge;break;case xh:if(tC(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case ege:return Bge;case Zs:var o=t,l=this.peekCodePoint(0),c=this.peekCodePoint(1);if(tC(o,l,c))return this.reconsumeCodePoint(t),this.consumeNumericToken();if($m(o,l,c))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();if(l===Zs&&c===V0e)return this.consumeCodePoint(),this.consumeCodePoint(),Dge;break;case C1:if(tC(t,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(t),this.consumeNumericToken();break;case e8:if(this.peekCodePoint(0)===eC)for(this.consumeCodePoint();;){var f=this.consumeCodePoint();if(f===eC&&(f=this.consumeCodePoint(),f===e8))return this.consumeToken();if(f===Ul)return this.consumeToken()}break;case tge:return Ige;case rge:return Mge;case z0e:if(this.peekCodePoint(0)===K0e&&this.peekCodePoint(1)===Zs&&this.peekCodePoint(2)===Zs)return this.consumeCodePoint(),this.consumeCodePoint(),Lge;break;case G0e:var h=this.peekCodePoint(0),p=this.peekCodePoint(1),g=this.peekCodePoint(2);if($m(h,p,g)){var s=this.consumeName();return{type:7,value:s}}break;case q0e:return Pge;case Vp:if($u(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),this.consumeIdentLikeToken();break;case W0e:return kge;case Y0e:if(this.peekCodePoint(0)===yp)return this.consumeCodePoint(),Ege;break;case $0e:return Tge;case X0e:return Oge;case cge:case fge:var y=this.peekCodePoint(0),m=this.peekCodePoint(1);return y===xh&&(n0(m)||m===Wm)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(t),this.consumeIdentLikeToken();case t8:if(this.peekCodePoint(0)===yp)return this.consumeCodePoint(),Sge;if(this.peekCodePoint(0)===t8)return this.consumeCodePoint(),_ge;break;case J0e:if(this.peekCodePoint(0)===yp)return this.consumeCodePoint(),Fge;break;case Ul:return q_}return Ym(t)?(this.consumeWhiteSpace(),Qge):ls(t)?(this.reconsumeCodePoint(t),this.consumeNumericToken()):$2(t)?(this.reconsumeCodePoint(t),this.consumeIdentLikeToken()):{type:6,value:Ni(t)}},e.prototype.consumeCodePoint=function(){var t=this._value.shift();return typeof t>"u"?-1:t},e.prototype.reconsumeCodePoint=function(t){this._value.unshift(t)},e.prototype.peekCodePoint=function(t){return t>=this._value.length?-1:this._value[t]},e.prototype.consumeUnicodeRangeToken=function(){for(var t=[],r=this.consumeCodePoint();n0(r)&&t.length<6;)t.push(r),r=this.consumeCodePoint();for(var n=!1;r===Wm&&t.length<6;)t.push(r),r=this.consumeCodePoint(),n=!0;if(n){var i=parseInt(Ni.apply(void 0,t.map(function(l){return l===Wm?g9:l})),16),a=parseInt(Ni.apply(void 0,t.map(function(l){return l===Wm?w9:l})),16);return{type:30,start:i,end:a}}var s=parseInt(Ni.apply(void 0,t),16);if(this.peekCodePoint(0)===Zs&&n0(this.peekCodePoint(1))){this.consumeCodePoint(),r=this.consumeCodePoint();for(var o=[];n0(r)&&o.length<6;)o.push(r),r=this.consumeCodePoint();var a=parseInt(Ni.apply(void 0,o),16);return{type:30,start:s,end:a}}else return{type:30,start:s,end:s}},e.prototype.consumeIdentLikeToken=function(){var t=this.consumeName();return t.toLowerCase()==="url"&&this.peekCodePoint(0)===qm?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===qm?(this.consumeCodePoint(),{type:19,value:t}):{type:20,value:t}},e.prototype.consumeUrlToken=function(){var t=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Ul)return{type:22,value:""};var r=this.peekCodePoint(0);if(r===Gm||r===Vm){var n=this.consumeStringToken(this.consumeCodePoint());return n.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Ul||this.peekCodePoint(0)===wp)?(this.consumeCodePoint(),{type:22,value:n.value}):(this.consumeBadUrlRemnants(),Xm)}for(;;){var i=this.consumeCodePoint();if(i===Ul||i===wp)return{type:22,value:Ni.apply(void 0,t)};if(Ym(i))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Ul||this.peekCodePoint(0)===wp?(this.consumeCodePoint(),{type:22,value:Ni.apply(void 0,t)}):(this.consumeBadUrlRemnants(),Xm);if(i===Vm||i===Gm||i===qm||yge(i))return this.consumeBadUrlRemnants(),Xm;if(i===Vp)if($u(i,this.peekCodePoint(0)))t.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Xm;else t.push(i)}},e.prototype.consumeWhiteSpace=function(){for(;Ym(this.peekCodePoint(0));)this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){for(;;){var t=this.consumeCodePoint();if(t===wp||t===Ul)return;$u(t,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},e.prototype.consumeStringSlice=function(t){for(var r=5e4,n="";t>0;){var i=Math.min(r,t);n+=Ni.apply(void 0,this._value.splice(0,i)),t-=i}return this._value.shift(),n},e.prototype.consumeStringToken=function(t){var r="",n=0;do{var i=this._value[n];if(i===Ul||i===void 0||i===t)return r+=this.consumeStringSlice(n),{type:0,value:r};if(i===Y2)return this._value.splice(0,n),Nge;if(i===Vp){var a=this._value[n+1];a!==Ul&&a!==void 0&&(a===Y2?(r+=this.consumeStringSlice(n),n=-1,this._value.shift()):$u(i,a)&&(r+=this.consumeStringSlice(n),r+=Ni(this.consumeEscapedCodePoint()),n=-1))}n++}while(!0)},e.prototype.consumeNumber=function(){var t=[],r=gv,n=this.peekCodePoint(0);for((n===xh||n===Zs)&&t.push(this.consumeCodePoint());ls(this.peekCodePoint(0));)t.push(this.consumeCodePoint());n=this.peekCodePoint(0);var i=this.peekCodePoint(1);if(n===C1&&ls(i))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),r=Z6;ls(this.peekCodePoint(0));)t.push(this.consumeCodePoint());n=this.peekCodePoint(0),i=this.peekCodePoint(1);var a=this.peekCodePoint(2);if((n===y9||n===v9)&&((i===xh||i===Zs)&&ls(a)||ls(i)))for(t.push(this.consumeCodePoint(),this.consumeCodePoint()),r=Z6;ls(this.peekCodePoint(0));)t.push(this.consumeCodePoint());return[wge(t),r]},e.prototype.consumeNumericToken=function(){var t=this.consumeNumber(),r=t[0],n=t[1],i=this.peekCodePoint(0),a=this.peekCodePoint(1),s=this.peekCodePoint(2);if($m(i,a,s)){var o=this.consumeName();return{type:15,number:r,flags:n,unit:o}}return i===j0e?(this.consumeCodePoint(),{type:16,number:r,flags:n}):{type:17,number:r,flags:n}},e.prototype.consumeEscapedCodePoint=function(){var t=this.consumeCodePoint();if(n0(t)){for(var r=Ni(t);n0(this.peekCodePoint(0))&&r.length<6;)r+=Ni(this.consumeCodePoint());Ym(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(r,16);return n===0||dge(n)||n>1114111?r8:n}return t===Ul?r8:t},e.prototype.consumeName=function(){for(var t="";;){var r=this.consumeCodePoint();if(n8(r))t+=Ni(r);else if($u(r,this.peekCodePoint(0)))t+=Ni(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(r),t}},e})(),b9=(function(){function e(t){this._tokens=t}return e.create=function(t){var r=new x9;return r.write(t),new e(r.read())},e.parseValue=function(t){return e.create(t).parseComponentValue()},e.parseValues=function(t){return e.create(t).parseComponentValues()},e.prototype.parseComponentValue=function(){for(var t=this.consumeToken();t.type===31;)t=this.consumeToken();if(t.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(t);var r=this.consumeComponentValue();do t=this.consumeToken();while(t.type===31);if(t.type===32)return r;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},e.prototype.parseComponentValues=function(){for(var t=[];;){var r=this.consumeComponentValue();if(r.type===32)return t;t.push(r),t.push()}},e.prototype.consumeComponentValue=function(){var t=this.consumeToken();switch(t.type){case 11:case 28:case 2:return this.consumeSimpleBlock(t.type);case 19:return this.consumeFunction(t)}return t},e.prototype.consumeSimpleBlock=function(t){for(var r={type:t,values:[]},n=this.consumeToken();;){if(n.type===32||jge(n,t))return r;this.reconsumeToken(n),r.values.push(this.consumeComponentValue()),n=this.consumeToken()}},e.prototype.consumeFunction=function(t){for(var r={name:t.value,values:[],type:18};;){var n=this.consumeToken();if(n.type===32||n.type===3)return r;this.reconsumeToken(n),r.values.push(this.consumeComponentValue())}},e.prototype.consumeToken=function(){var t=this._tokens.shift();return typeof t>"u"?q_:t},e.prototype.reconsumeToken=function(t){this._tokens.unshift(t)},e})(),pv=function(e){return e.type===15},vg=function(e){return e.type===17},Cn=function(e){return e.type===20},Rge=function(e){return e.type===0},W_=function(e,t){return Cn(e)&&e.value===t},B9=function(e){return e.type!==31},Y0=function(e){return e.type!==31&&e.type!==4},Wl=function(e){var t=[],r=[];return e.forEach(function(n){if(n.type===4){if(r.length===0)throw new Error("Error parsing function args, zero tokens for arg");t.push(r),r=[];return}n.type!==31&&r.push(n)}),r.length&&t.push(r),t},jge=function(e,t){return t===11&&e.type===12||t===28&&e.type===29?!0:t===2&&e.type===3},vf=function(e){return e.type===17||e.type===15},zi=function(e){return e.type===16||vf(e)},C9=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},qa={type:17,number:0,flags:gv},$3={type:16,number:50,flags:gv},Zu={type:16,number:100,flags:gv},Pp=function(e,t,r){var n=e[0],i=e[1];return[Nn(n,t),Nn(typeof i<"u"?i:n,r)]},Nn=function(e,t){if(e.type===16)return e.number/100*t;if(pv(e))switch(e.unit){case"rem":case"em":return 16*e.number;case"px":default:return e.number}return e.number},E9="deg",_9="grad",S9="rad",F9="turn",Sx={name:"angle",parse:function(e,t){if(t.type===15)switch(t.unit){case E9:return Math.PI*t.number/180;case _9:return Math.PI/200*t.number;case S9:return t.number;case F9:return Math.PI*2*t.number}throw new Error("Unsupported angle type")}},T9=function(e){return e.type===15&&(e.unit===E9||e.unit===_9||e.unit===S9||e.unit===F9)},O9=function(e){var t=e.filter(Cn).map(function(r){return r.value}).join(" ");switch(t){case"to bottom right":case"to right bottom":case"left top":case"top left":return[qa,qa];case"to top":case"bottom":return hA(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[qa,Zu];case"to right":case"left":return hA(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Zu,Zu];case"to bottom":case"top":return hA(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Zu,qa];case"to left":case"right":return hA(270)}return 0},hA=function(e){return Math.PI*e/180},lf={name:"color",parse:function(e,t){if(t.type===18){var r=Hge[t.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported color function "'+t.name+'"');return r(e,t.values)}if(t.type===5){if(t.value.length===3){var n=t.value.substring(0,1),i=t.value.substring(1,2),a=t.value.substring(2,3);return ef(parseInt(n+n,16),parseInt(i+i,16),parseInt(a+a,16),1)}if(t.value.length===4){var n=t.value.substring(0,1),i=t.value.substring(1,2),a=t.value.substring(2,3),s=t.value.substring(3,4);return ef(parseInt(n+n,16),parseInt(i+i,16),parseInt(a+a,16),parseInt(s+s,16)/255)}if(t.value.length===6){var n=t.value.substring(0,2),i=t.value.substring(2,4),a=t.value.substring(4,6);return ef(parseInt(n,16),parseInt(i,16),parseInt(a,16),1)}if(t.value.length===8){var n=t.value.substring(0,2),i=t.value.substring(2,4),a=t.value.substring(4,6),s=t.value.substring(6,8);return ef(parseInt(n,16),parseInt(i,16),parseInt(a,16),parseInt(s,16)/255)}}if(t.type===20){var o=Rc[t.value.toUpperCase()];if(typeof o<"u")return o}return Rc.TRANSPARENT}},cf=function(e){return(255&e)===0},wa=function(e){var t=255&e,r=255&e>>8,n=255&e>>16,i=255&e>>24;return t<255?"rgba("+i+","+n+","+r+","+t/255+")":"rgb("+i+","+n+","+r+")"},ef=function(e,t,r,n){return(e<<24|t<<16|r<<8|Math.round(n*255)<<0)>>>0},i8=function(e,t){if(e.type===17)return e.number;if(e.type===16){var r=t===3?1:255;return t===3?e.number/100*r:Math.round(e.number/100*r)}return 0},a8=function(e,t){var r=t.filter(Y0);if(r.length===3){var n=r.map(i8),i=n[0],a=n[1],s=n[2];return ef(i,a,s,1)}if(r.length===4){var o=r.map(i8),i=o[0],a=o[1],s=o[2],l=o[3];return ef(i,a,s,l)}return 0};function rC(e,t,r){return r<0&&(r+=1),r>=1&&(r-=1),r<1/6?(t-e)*r*6+e:r<1/2?t:r<2/3?(t-e)*6*(2/3-r)+e:e}var s8=function(e,t){var r=t.filter(Y0),n=r[0],i=r[1],a=r[2],s=r[3],o=(n.type===17?hA(n.number):Sx.parse(e,n))/(Math.PI*2),l=zi(i)?i.number/100:0,c=zi(a)?a.number/100:0,f=typeof s<"u"&&zi(s)?Nn(s,1):1;if(l===0)return ef(c*255,c*255,c*255,1);var h=c<=.5?c*(l+1):c+l-c*l,p=c*2-h,g=rC(p,h,o+1/3),y=rC(p,h,o),m=rC(p,h,o-1/3);return ef(g*255,y*255,m*255,f)},Hge={hsl:s8,hsla:s8,rgb:a8,rgba:a8},Gp=function(e,t){return lf.parse(e,b9.create(t).parseComponentValue())},Rc={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},Kge={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map(function(r){if(Cn(r))switch(r.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},zge={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Fx=function(e,t){var r=lf.parse(e,t[0]),n=t[1];return n&&zi(n)?{color:r,stop:n}:{color:r,stop:null}},o8=function(e,t){var r=e[0],n=e[e.length-1];r.stop===null&&(r.stop=qa),n.stop===null&&(n.stop=Zu);for(var i=[],a=0,s=0;s<e.length;s++){var o=e[s].stop;if(o!==null){var l=Nn(o,t);l>a?i.push(l):i.push(a),a=l}else i.push(null)}for(var c=null,s=0;s<i.length;s++){var f=i[s];if(f===null)c===null&&(c=s);else if(c!==null){for(var h=s-c,p=i[c-1],g=(f-p)/(h+1),y=1;y<=h;y++)i[c+y-1]=g*y;c=null}}return e.map(function(m,w){var b=m.color;return{color:b,stop:Math.max(Math.min(1,i[w]/t),0)}})},Vge=function(e,t,r){var n=t/2,i=r/2,a=Nn(e[0],t)-n,s=i-Nn(e[1],r);return(Math.atan2(s,a)+Math.PI*2)%(Math.PI*2)},Gge=function(e,t,r){var n=typeof e=="number"?e:Vge(e,t,r),i=Math.abs(t*Math.sin(n))+Math.abs(r*Math.cos(n)),a=t/2,s=r/2,o=i/2,l=Math.sin(n-Math.PI/2)*o,c=Math.cos(n-Math.PI/2)*o;return[i,a-c,a+c,s-l,s+l]},XA=function(e,t){return Math.sqrt(e*e+t*t)},A8=function(e,t,r,n,i){var a=[[0,0],[0,t],[e,0],[e,t]];return a.reduce(function(s,o){var l=o[0],c=o[1],f=XA(r-l,n-c);return(i?f<s.optimumDistance:f>s.optimumDistance)?{optimumCorner:o,optimumDistance:f}:s},{optimumDistance:i?1/0:-1/0,optimumCorner:null}).optimumCorner},qge=function(e,t,r,n,i){var a=0,s=0;switch(e.size){case 0:e.shape===0?a=s=Math.min(Math.abs(t),Math.abs(t-n),Math.abs(r),Math.abs(r-i)):e.shape===1&&(a=Math.min(Math.abs(t),Math.abs(t-n)),s=Math.min(Math.abs(r),Math.abs(r-i)));break;case 2:if(e.shape===0)a=s=Math.min(XA(t,r),XA(t,r-i),XA(t-n,r),XA(t-n,r-i));else if(e.shape===1){var o=Math.min(Math.abs(r),Math.abs(r-i))/Math.min(Math.abs(t),Math.abs(t-n)),l=A8(n,i,t,r,!0),c=l[0],f=l[1];a=XA(c-t,(f-r)/o),s=o*a}break;case 1:e.shape===0?a=s=Math.max(Math.abs(t),Math.abs(t-n),Math.abs(r),Math.abs(r-i)):e.shape===1&&(a=Math.max(Math.abs(t),Math.abs(t-n)),s=Math.max(Math.abs(r),Math.abs(r-i)));break;case 3:if(e.shape===0)a=s=Math.max(XA(t,r),XA(t,r-i),XA(t-n,r),XA(t-n,r-i));else if(e.shape===1){var o=Math.max(Math.abs(r),Math.abs(r-i))/Math.max(Math.abs(t),Math.abs(t-n)),h=A8(n,i,t,r,!1),c=h[0],f=h[1];a=XA(c-t,(f-r)/o),s=o*a}break}return Array.isArray(e.size)&&(a=Nn(e.size[0],n),s=e.size.length===2?Nn(e.size[1],i):a),[a,s]},Wge=function(e,t){var r=hA(180),n=[];return Wl(t).forEach(function(i,a){if(a===0){var s=i[0];if(s.type===20&&s.value==="to"){r=O9(i);return}else if(T9(s)){r=Sx.parse(e,s);return}}var o=Fx(e,i);n.push(o)}),{angle:r,stops:n,type:1}},Jm=function(e,t){var r=hA(180),n=[];return Wl(t).forEach(function(i,a){if(a===0){var s=i[0];if(s.type===20&&["top","left","right","bottom"].indexOf(s.value)!==-1){r=O9(i);return}else if(T9(s)){r=(Sx.parse(e,s)+hA(270))%hA(360);return}}var o=Fx(e,i);n.push(o)}),{angle:r,stops:n,type:1}},Yge=function(e,t){var r=hA(180),n=[],i=1,a=0,s=3,o=[];return Wl(t).forEach(function(l,c){var f=l[0];if(c===0){if(Cn(f)&&f.value==="linear"){i=1;return}else if(Cn(f)&&f.value==="radial"){i=2;return}}if(f.type===18){if(f.name==="from"){var h=lf.parse(e,f.values[0]);n.push({stop:qa,color:h})}else if(f.name==="to"){var h=lf.parse(e,f.values[0]);n.push({stop:Zu,color:h})}else if(f.name==="color-stop"){var p=f.values.filter(Y0);if(p.length===2){var h=lf.parse(e,p[1]),g=p[0];vg(g)&&n.push({stop:{type:16,number:g.number*100,flags:g.flags},color:h})}}}}),i===1?{angle:(r+hA(180))%hA(360),stops:n,type:i}:{size:s,shape:a,stops:n,position:o,type:i}},U9="closest-side",N9="farthest-side",L9="closest-corner",D9="farthest-corner",I9="circle",M9="ellipse",P9="cover",k9="contain",$ge=function(e,t){var r=0,n=3,i=[],a=[];return Wl(t).forEach(function(s,o){var l=!0;if(o===0){var c=!1;l=s.reduce(function(h,p){if(c)if(Cn(p))switch(p.value){case"center":return a.push($3),h;case"top":case"left":return a.push(qa),h;case"right":case"bottom":return a.push(Zu),h}else(zi(p)||vf(p))&&a.push(p);else if(Cn(p))switch(p.value){case I9:return r=0,!1;case M9:return r=1,!1;case"at":return c=!0,!1;case U9:return n=0,!1;case P9:case N9:return n=1,!1;case k9:case L9:return n=2,!1;case D9:return n=3,!1}else if(vf(p)||zi(p))return Array.isArray(n)||(n=[]),n.push(p),!1;return h},l)}if(l){var f=Fx(e,s);i.push(f)}}),{size:n,shape:r,stops:i,position:a,type:2}},Zm=function(e,t){var r=0,n=3,i=[],a=[];return Wl(t).forEach(function(s,o){var l=!0;if(o===0?l=s.reduce(function(f,h){if(Cn(h))switch(h.value){case"center":return a.push($3),!1;case"top":case"left":return a.push(qa),!1;case"right":case"bottom":return a.push(Zu),!1}else if(zi(h)||vf(h))return a.push(h),!1;return f},l):o===1&&(l=s.reduce(function(f,h){if(Cn(h))switch(h.value){case I9:return r=0,!1;case M9:return r=1,!1;case k9:case U9:return n=0,!1;case N9:return n=1,!1;case L9:return n=2,!1;case P9:case D9:return n=3,!1}else if(vf(h)||zi(h))return Array.isArray(n)||(n=[]),n.push(h),!1;return f},l)),l){var c=Fx(e,s);i.push(c)}}),{size:n,shape:r,stops:i,position:a,type:2}},Xge=function(e){return e.type===1},Jge=function(e){return e.type===2},X3={name:"image",parse:function(e,t){if(t.type===22){var r={url:t.value,type:0};return e.cache.addImage(t.value),r}if(t.type===18){var n=Q9[t.name];if(typeof n>"u")throw new Error('Attempting to parse an unsupported image function "'+t.name+'"');return n(e,t.values)}throw new Error("Unsupported image type "+t.type)}};function Zge(e){return!(e.type===20&&e.value==="none")&&(e.type!==18||!!Q9[e.name])}var Q9={"linear-gradient":Wge,"-moz-linear-gradient":Jm,"-ms-linear-gradient":Jm,"-o-linear-gradient":Jm,"-webkit-linear-gradient":Jm,"radial-gradient":$ge,"-moz-radial-gradient":Zm,"-ms-radial-gradient":Zm,"-o-radial-gradient":Zm,"-webkit-radial-gradient":Zm,"-webkit-gradient":Yge},epe={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(e,t){if(t.length===0)return[];var r=t[0];return r.type===20&&r.value==="none"?[]:t.filter(function(n){return Y0(n)&&Zge(n)}).map(function(n){return X3.parse(e,n)})}},tpe={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(e,t){return t.map(function(r){if(Cn(r))switch(r.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},rpe={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(e,t){return Wl(t).map(function(r){return r.filter(zi)}).map(C9)}},npe={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(e,t){return Wl(t).map(function(r){return r.filter(Cn).map(function(n){return n.value}).join(" ")}).map(ipe)}},ipe=function(e){switch(e){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},U0;(function(e){e.AUTO="auto",e.CONTAIN="contain",e.COVER="cover"})(U0||(U0={}));var ape={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(e,t){return Wl(t).map(function(r){return r.filter(spe)})}},spe=function(e){return Cn(e)||zi(e)},Tx=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},ope=Tx("top"),Ape=Tx("right"),lpe=Tx("bottom"),cpe=Tx("left"),Ox=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:1,parse:function(t,r){return C9(r.filter(zi))}}},upe=Ox("top-left"),fpe=Ox("top-right"),hpe=Ox("bottom-right"),dpe=Ox("bottom-left"),Ux=function(e){return{name:"border-"+e+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(t,r){switch(r){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},gpe=Ux("top"),ppe=Ux("right"),vpe=Ux("bottom"),mpe=Ux("left"),Nx=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:0,prefix:!1,parse:function(t,r){return pv(r)?r.number:0}}},ype=Nx("top"),wpe=Nx("right"),xpe=Nx("bottom"),bpe=Nx("left"),Bpe={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Cpe={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(e,t){switch(t){case"rtl":return 1;case"ltr":default:return 0}}},Epe={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(e,t){return t.filter(Cn).reduce(function(r,n){return r|_pe(n.value)},0)}},_pe=function(e){switch(e){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},Spe={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Fpe={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(e,t){return t.type===20&&t.value==="normal"?0:t.type===17||t.type===15?t.number:0}},X2;(function(e){e.NORMAL="normal",e.STRICT="strict"})(X2||(X2={}));var Tpe={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"strict":return X2.STRICT;case"normal":default:return X2.NORMAL}}},Ope={name:"line-height",initialValue:"normal",prefix:!1,type:4},l8=function(e,t){return Cn(e)&&e.value==="normal"?1.2*t:e.type===17?t*e.number:zi(e)?Nn(e,t):t},Upe={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(e,t){return t.type===20&&t.value==="none"?null:X3.parse(e,t)}},Npe={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(e,t){switch(t){case"inside":return 0;case"outside":default:return 1}}},Y_={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},Lx=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:4}},Lpe=Lx("top"),Dpe=Lx("right"),Ipe=Lx("bottom"),Mpe=Lx("left"),Ppe={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(e,t){return t.filter(Cn).map(function(r){switch(r.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},kpe={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"break-word":return"break-word";case"normal":default:return"normal"}}},Dx=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Qpe=Dx("top"),Rpe=Dx("right"),jpe=Dx("bottom"),Hpe=Dx("left"),Kpe={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(e,t){switch(t){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},zpe={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(e,t){switch(t){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Vpe={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return t.length===1&&W_(t[0],"none")?[]:Wl(t).map(function(r){for(var n={color:Rc.TRANSPARENT,offsetX:qa,offsetY:qa,blur:qa},i=0,a=0;a<r.length;a++){var s=r[a];vf(s)?(i===0?n.offsetX=s:i===1?n.offsetY=s:n.blur=s,i++):n.color=lf.parse(e,s)}return n})}},Gpe={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},qpe={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(e,t){if(t.type===20&&t.value==="none")return null;if(t.type===18){var r=$pe[t.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported transform function "'+t.name+'"');return r(t.values)}return null}},Wpe=function(e){var t=e.filter(function(r){return r.type===17}).map(function(r){return r.number});return t.length===6?t:null},Ype=function(e){var t=e.filter(function(l){return l.type===17}).map(function(l){return l.number}),r=t[0],n=t[1];t[2],t[3];var i=t[4],a=t[5];t[6],t[7],t[8],t[9],t[10],t[11];var s=t[12],o=t[13];return t[14],t[15],t.length===16?[r,n,i,a,s,o]:null},$pe={matrix:Wpe,matrix3d:Ype},c8={type:16,number:50,flags:gv},Xpe=[c8,c8],Jpe={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(e,t){var r=t.filter(zi);return r.length!==2?Xpe:[r[0],r[1]]}},Zpe={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(e,t){switch(t){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},qp;(function(e){e.NORMAL="normal",e.BREAK_ALL="break-all",e.KEEP_ALL="keep-all"})(qp||(qp={}));var e1e={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"break-all":return qp.BREAK_ALL;case"keep-all":return qp.KEEP_ALL;case"normal":default:return qp.NORMAL}}},t1e={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(e,t){if(t.type===20)return{auto:!0,order:0};if(vg(t))return{auto:!1,order:t.number};throw new Error("Invalid z-index number parsed")}},R9={name:"time",parse:function(e,t){if(t.type===15)switch(t.unit.toLowerCase()){case"s":return 1e3*t.number;case"ms":return t.number}throw new Error("Unsupported time type")}},r1e={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(e,t){return vg(t)?t.number:1}},n1e={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},i1e={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(e,t){return t.filter(Cn).map(function(r){switch(r.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(r){return r!==0})}},a1e={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(e,t){var r=[],n=[];return t.forEach(function(i){switch(i.type){case 20:case 0:r.push(i.value);break;case 17:r.push(i.number.toString());break;case 4:n.push(r.join(" ")),r.length=0;break}}),r.length&&n.push(r.join(" ")),n.map(function(i){return i.indexOf(" ")===-1?i:"'"+i+"'"})}},s1e={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},o1e={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(e,t){if(vg(t))return t.number;if(Cn(t))switch(t.value){case"bold":return 700;case"normal":default:return 400}return 400}},A1e={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return t.filter(Cn).map(function(r){return r.value})}},l1e={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(e,t){switch(t){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},sa=function(e,t){return(e&t)!==0},c1e={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(e,t){if(t.length===0)return[];var r=t[0];return r.type===20&&r.value==="none"?[]:t}},u1e={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(t.length===0)return null;var r=t[0];if(r.type===20&&r.value==="none")return null;for(var n=[],i=t.filter(B9),a=0;a<i.length;a++){var s=i[a],o=i[a+1];if(s.type===20){var l=o&&vg(o)?o.number:1;n.push({counter:s.value,increment:l})}}return n}},f1e={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(t.length===0)return[];for(var r=[],n=t.filter(B9),i=0;i<n.length;i++){var a=n[i],s=n[i+1];if(Cn(a)&&a.value!=="none"){var o=s&&vg(s)?s.number:0;r.push({counter:a.value,reset:o})}}return r}},h1e={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(e,t){return t.filter(pv).map(function(r){return R9.parse(e,r)})}},d1e={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(e,t){if(t.length===0)return null;var r=t[0];if(r.type===20&&r.value==="none")return null;var n=[],i=t.filter(Rge);if(i.length%2!==0)return null;for(var a=0;a<i.length;a+=2){var s=i[a].value,o=i[a+1].value;n.push({open:s,close:o})}return n}},u8=function(e,t,r){if(!e)return"";var n=e[Math.min(t,e.length-1)];return n?r?n.open:n.close:""},g1e={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,t){return t.length===1&&W_(t[0],"none")?[]:Wl(t).map(function(r){for(var n={color:255,offsetX:qa,offsetY:qa,blur:qa,spread:qa,inset:!1},i=0,a=0;a<r.length;a++){var s=r[a];W_(s,"inset")?n.inset=!0:vf(s)?(i===0?n.offsetX=s:i===1?n.offsetY=s:i===2?n.blur=s:n.spread=s,i++):n.color=lf.parse(e,s)}return n})}},p1e={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(e,t){var r=[0,1,2],n=[];return t.filter(Cn).forEach(function(i){switch(i.value){case"stroke":n.push(1);break;case"fill":n.push(0);break;case"markers":n.push(2);break}}),r.forEach(function(i){n.indexOf(i)===-1&&n.push(i)}),n}},v1e={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},m1e={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return pv(t)?t.number:0}},y1e=(function(){function e(t,r){var n,i;this.animationDuration=Ct(t,h1e,r.animationDuration),this.backgroundClip=Ct(t,Kge,r.backgroundClip),this.backgroundColor=Ct(t,zge,r.backgroundColor),this.backgroundImage=Ct(t,epe,r.backgroundImage),this.backgroundOrigin=Ct(t,tpe,r.backgroundOrigin),this.backgroundPosition=Ct(t,rpe,r.backgroundPosition),this.backgroundRepeat=Ct(t,npe,r.backgroundRepeat),this.backgroundSize=Ct(t,ape,r.backgroundSize),this.borderTopColor=Ct(t,ope,r.borderTopColor),this.borderRightColor=Ct(t,Ape,r.borderRightColor),this.borderBottomColor=Ct(t,lpe,r.borderBottomColor),this.borderLeftColor=Ct(t,cpe,r.borderLeftColor),this.borderTopLeftRadius=Ct(t,upe,r.borderTopLeftRadius),this.borderTopRightRadius=Ct(t,fpe,r.borderTopRightRadius),this.borderBottomRightRadius=Ct(t,hpe,r.borderBottomRightRadius),this.borderBottomLeftRadius=Ct(t,dpe,r.borderBottomLeftRadius),this.borderTopStyle=Ct(t,gpe,r.borderTopStyle),this.borderRightStyle=Ct(t,ppe,r.borderRightStyle),this.borderBottomStyle=Ct(t,vpe,r.borderBottomStyle),this.borderLeftStyle=Ct(t,mpe,r.borderLeftStyle),this.borderTopWidth=Ct(t,ype,r.borderTopWidth),this.borderRightWidth=Ct(t,wpe,r.borderRightWidth),this.borderBottomWidth=Ct(t,xpe,r.borderBottomWidth),this.borderLeftWidth=Ct(t,bpe,r.borderLeftWidth),this.boxShadow=Ct(t,g1e,r.boxShadow),this.color=Ct(t,Bpe,r.color),this.direction=Ct(t,Cpe,r.direction),this.display=Ct(t,Epe,r.display),this.float=Ct(t,Spe,r.cssFloat),this.fontFamily=Ct(t,a1e,r.fontFamily),this.fontSize=Ct(t,s1e,r.fontSize),this.fontStyle=Ct(t,l1e,r.fontStyle),this.fontVariant=Ct(t,A1e,r.fontVariant),this.fontWeight=Ct(t,o1e,r.fontWeight),this.letterSpacing=Ct(t,Fpe,r.letterSpacing),this.lineBreak=Ct(t,Tpe,r.lineBreak),this.lineHeight=Ct(t,Ope,r.lineHeight),this.listStyleImage=Ct(t,Upe,r.listStyleImage),this.listStylePosition=Ct(t,Npe,r.listStylePosition),this.listStyleType=Ct(t,Y_,r.listStyleType),this.marginTop=Ct(t,Lpe,r.marginTop),this.marginRight=Ct(t,Dpe,r.marginRight),this.marginBottom=Ct(t,Ipe,r.marginBottom),this.marginLeft=Ct(t,Mpe,r.marginLeft),this.opacity=Ct(t,r1e,r.opacity);var a=Ct(t,Ppe,r.overflow);this.overflowX=a[0],this.overflowY=a[a.length>1?1:0],this.overflowWrap=Ct(t,kpe,r.overflowWrap),this.paddingTop=Ct(t,Qpe,r.paddingTop),this.paddingRight=Ct(t,Rpe,r.paddingRight),this.paddingBottom=Ct(t,jpe,r.paddingBottom),this.paddingLeft=Ct(t,Hpe,r.paddingLeft),this.paintOrder=Ct(t,p1e,r.paintOrder),this.position=Ct(t,zpe,r.position),this.textAlign=Ct(t,Kpe,r.textAlign),this.textDecorationColor=Ct(t,n1e,(n=r.textDecorationColor)!==null&&n!==void 0?n:r.color),this.textDecorationLine=Ct(t,i1e,(i=r.textDecorationLine)!==null&&i!==void 0?i:r.textDecoration),this.textShadow=Ct(t,Vpe,r.textShadow),this.textTransform=Ct(t,Gpe,r.textTransform),this.transform=Ct(t,qpe,r.transform),this.transformOrigin=Ct(t,Jpe,r.transformOrigin),this.visibility=Ct(t,Zpe,r.visibility),this.webkitTextStrokeColor=Ct(t,v1e,r.webkitTextStrokeColor),this.webkitTextStrokeWidth=Ct(t,m1e,r.webkitTextStrokeWidth),this.wordBreak=Ct(t,e1e,r.wordBreak),this.zIndex=Ct(t,t1e,r.zIndex)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},e.prototype.isTransparent=function(){return cf(this.backgroundColor)},e.prototype.isTransformed=function(){return this.transform!==null},e.prototype.isPositioned=function(){return this.position!==0},e.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},e.prototype.isFloating=function(){return this.float!==0},e.prototype.isInlineLevel=function(){return sa(this.display,4)||sa(this.display,33554432)||sa(this.display,268435456)||sa(this.display,536870912)||sa(this.display,67108864)||sa(this.display,134217728)},e})(),w1e=(function(){function e(t,r){this.content=Ct(t,c1e,r.content),this.quotes=Ct(t,d1e,r.quotes)}return e})(),f8=(function(){function e(t,r){this.counterIncrement=Ct(t,u1e,r.counterIncrement),this.counterReset=Ct(t,f1e,r.counterReset)}return e})(),Ct=function(e,t,r){var n=new x9,i=r!==null&&typeof r<"u"?r.toString():t.initialValue;n.write(i);var a=new b9(n.read());switch(t.type){case 2:var s=a.parseComponentValue();return t.parse(e,Cn(s)?s.value:t.initialValue);case 0:return t.parse(e,a.parseComponentValue());case 1:return t.parse(e,a.parseComponentValues());case 4:return a.parseComponentValue();case 3:switch(t.format){case"angle":return Sx.parse(e,a.parseComponentValue());case"color":return lf.parse(e,a.parseComponentValue());case"image":return X3.parse(e,a.parseComponentValue());case"length":var o=a.parseComponentValue();return vf(o)?o:qa;case"length-percentage":var l=a.parseComponentValue();return zi(l)?l:qa;case"time":return R9.parse(e,a.parseComponentValue())}break}},x1e="data-html2canvas-debug",b1e=function(e){var t=e.getAttribute(x1e);switch(t){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},$_=function(e,t){var r=b1e(e);return r===1||t===r},Yl=(function(){function e(t,r){if(this.context=t,this.textNodes=[],this.elements=[],this.flags=0,$_(r,3))debugger;this.styles=new y1e(t,window.getComputedStyle(r,null)),Z_(r)&&(this.styles.animationDuration.some(function(n){return n>0})&&(r.style.animationDuration="0s"),this.styles.transform!==null&&(r.style.transform="none")),this.bounds=Ex(this.context,r),$_(r,4)&&(this.flags|=16)}return e})(),B1e=" ",h8="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",kp=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var ey=0;ey<h8.length;ey++)kp[h8.charCodeAt(ey)]=ey;var C1e=function(e){var t=e.length*.75,r=e.length,n,i=0,a,s,o,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);var c=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(t):new Array(t),f=Array.isArray(c)?c:new Uint8Array(c);for(n=0;n<r;n+=4)a=kp[e.charCodeAt(n)],s=kp[e.charCodeAt(n+1)],o=kp[e.charCodeAt(n+2)],l=kp[e.charCodeAt(n+3)],f[i++]=a<<2|s>>4,f[i++]=(s&15)<<4|o>>2,f[i++]=(o&3)<<6|l&63;return c},E1e=function(e){for(var t=e.length,r=[],n=0;n<t;n+=2)r.push(e[n+1]<<8|e[n]);return r},_1e=function(e){for(var t=e.length,r=[],n=0;n<t;n+=4)r.push(e[n+3]<<24|e[n+2]<<16|e[n+1]<<8|e[n]);return r},Th=5,J3=11,nC=2,S1e=J3-Th,j9=65536>>Th,F1e=1<<Th,iC=F1e-1,T1e=1024>>Th,O1e=j9+T1e,U1e=O1e,N1e=32,L1e=U1e+N1e,D1e=65536>>J3,I1e=1<<S1e,M1e=I1e-1,d8=function(e,t,r){return e.slice?e.slice(t,r):new Uint16Array(Array.prototype.slice.call(e,t,r))},P1e=function(e,t,r){return e.slice?e.slice(t,r):new Uint32Array(Array.prototype.slice.call(e,t,r))},k1e=function(e,t){var r=C1e(e),n=Array.isArray(r)?_1e(r):new Uint32Array(r),i=Array.isArray(r)?E1e(r):new Uint16Array(r),a=24,s=d8(i,a/2,n[4]/2),o=n[5]===2?d8(i,(a+n[4])/2):P1e(n,Math.ceil((a+n[4])/4));return new Q1e(n[0],n[1],n[2],n[3],s,o)},Q1e=(function(){function e(t,r,n,i,a,s){this.initialValue=t,this.errorValue=r,this.highStart=n,this.highValueIndex=i,this.index=a,this.data=s}return e.prototype.get=function(t){var r;if(t>=0){if(t<55296||t>56319&&t<=65535)return r=this.index[t>>Th],r=(r<<nC)+(t&iC),this.data[r];if(t<=65535)return r=this.index[j9+(t-55296>>Th)],r=(r<<nC)+(t&iC),this.data[r];if(t<this.highStart)return r=L1e-D1e+(t>>J3),r=this.index[r],r+=t>>Th&M1e,r=this.index[r],r=(r<<nC)+(t&iC),this.data[r];if(t<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e})(),g8="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",R1e=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var ty=0;ty<g8.length;ty++)R1e[g8.charCodeAt(ty)]=ty;var j1e=1,aC=2,sC=3,p8=4,v8=5,H1e=7,m8=8,oC=9,AC=10,y8=11,w8=12,x8=13,b8=14,lC=15,K1e=function(e){for(var t=[],r=0,n=e.length;r<n;){var i=e.charCodeAt(r++);if(i>=55296&&i<=56319&&r<n){var a=e.charCodeAt(r++);(a&64512)===56320?t.push(((i&1023)<<10)+(a&1023)+65536):(t.push(i),r--)}else t.push(i)}return t},z1e=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var r=e.length;if(!r)return"";for(var n=[],i=-1,a="";++i<r;){var s=e[i];s<=65535?n.push(s):(s-=65536,n.push((s>>10)+55296,s%1024+56320)),(i+1===r||n.length>16384)&&(a+=String.fromCharCode.apply(String,n),n.length=0)}return a},V1e=k1e(B1e),AA="×",cC="÷",G1e=function(e){return V1e.get(e)},q1e=function(e,t,r){var n=r-2,i=t[n],a=t[r-1],s=t[r];if(a===aC&&s===sC)return AA;if(a===aC||a===sC||a===p8||s===aC||s===sC||s===p8)return cC;if(a===m8&&[m8,oC,y8,w8].indexOf(s)!==-1||(a===y8||a===oC)&&(s===oC||s===AC)||(a===w8||a===AC)&&s===AC||s===x8||s===v8||s===H1e||a===j1e)return AA;if(a===x8&&s===b8){for(;i===v8;)i=t[--n];if(i===b8)return AA}if(a===lC&&s===lC){for(var o=0;i===lC;)o++,i=t[--n];if(o%2===0)return AA}return cC},W1e=function(e){var t=K1e(e),r=t.length,n=0,i=0,a=t.map(G1e);return{next:function(){if(n>=r)return{done:!0,value:null};for(var s=AA;n<r&&(s=q1e(t,a,++n))===AA;);if(s!==AA||n===r){var o=z1e.apply(null,t.slice(i,n));return i=n,{value:o,done:!1}}return{done:!0,value:null}}}},Y1e=function(e){for(var t=W1e(e),r=[],n;!(n=t.next()).done;)n.value&&r.push(n.value.slice());return r},$1e=function(e){var t=123;if(e.createRange){var r=e.createRange();if(r.getBoundingClientRect){var n=e.createElement("boundtest");n.style.height=t+"px",n.style.display="block",e.body.appendChild(n),r.selectNode(n);var i=r.getBoundingClientRect(),a=Math.round(i.height);if(e.body.removeChild(n),a===t)return!0}}return!1},X1e=function(e){var t=e.createElement("boundtest");t.style.width="50px",t.style.display="block",t.style.fontSize="12px",t.style.letterSpacing="0px",t.style.wordSpacing="0px",e.body.appendChild(t);var r=e.createRange();t.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var n=t.firstChild,i=_x(n.data).map(function(l){return Ni(l)}),a=0,s={},o=i.every(function(l,c){r.setStart(n,a),r.setEnd(n,a+l.length);var f=r.getBoundingClientRect();a+=l.length;var h=f.x>s.x||f.y>s.y;return s=f,c===0?!0:h});return e.body.removeChild(t),o},J1e=function(){return typeof new Image().crossOrigin<"u"},Z1e=function(){return typeof new XMLHttpRequest().responseType=="string"},eve=function(e){var t=new Image,r=e.createElement("canvas"),n=r.getContext("2d");if(!n)return!1;t.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{n.drawImage(t,0,0),r.toDataURL()}catch{return!1}return!0},B8=function(e){return e[0]===0&&e[1]===255&&e[2]===0&&e[3]===255},tve=function(e){var t=e.createElement("canvas"),r=100;t.width=r,t.height=r;var n=t.getContext("2d");if(!n)return Promise.reject(!1);n.fillStyle="rgb(0, 255, 0)",n.fillRect(0,0,r,r);var i=new Image,a=t.toDataURL();i.src=a;var s=X_(r,r,0,0,i);return n.fillStyle="red",n.fillRect(0,0,r,r),C8(s).then(function(o){n.drawImage(o,0,0);var l=n.getImageData(0,0,r,r).data;n.fillStyle="red",n.fillRect(0,0,r,r);var c=e.createElement("div");return c.style.backgroundImage="url("+a+")",c.style.height=r+"px",B8(l)?C8(X_(r,r,0,0,c)):Promise.reject(!1)}).then(function(o){return n.drawImage(o,0,0),B8(n.getImageData(0,0,r,r).data)}).catch(function(){return!1})},X_=function(e,t,r,n,i){var a="http://www.w3.org/2000/svg",s=document.createElementNS(a,"svg"),o=document.createElementNS(a,"foreignObject");return s.setAttributeNS(null,"width",e.toString()),s.setAttributeNS(null,"height",t.toString()),o.setAttributeNS(null,"width","100%"),o.setAttributeNS(null,"height","100%"),o.setAttributeNS(null,"x",r.toString()),o.setAttributeNS(null,"y",n.toString()),o.setAttributeNS(null,"externalResourcesRequired","true"),s.appendChild(o),o.appendChild(i),s},C8=function(e){return new Promise(function(t,r){var n=new Image;n.onload=function(){return t(n)},n.onerror=r,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(e))})},Ra={get SUPPORT_RANGE_BOUNDS(){var e=$1e(document);return Object.defineProperty(Ra,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_WORD_BREAKING(){var e=Ra.SUPPORT_RANGE_BOUNDS&&X1e(document);return Object.defineProperty(Ra,"SUPPORT_WORD_BREAKING",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=eve(document);return Object.defineProperty(Ra,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e=typeof Array.from=="function"&&typeof window.fetch=="function"?tve(document):Promise.resolve(!1);return Object.defineProperty(Ra,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=J1e();return Object.defineProperty(Ra,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e=Z1e();return Object.defineProperty(Ra,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){var e="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Ra,"SUPPORT_CORS_XHR",{value:e}),e},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var e=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(Ra,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:e}),e}},Wp=(function(){function e(t,r){this.text=t,this.bounds=r}return e})(),rve=function(e,t,r,n){var i=ave(t,r),a=[],s=0;return i.forEach(function(o){if(r.textDecorationLine.length||o.trim().length>0)if(Ra.SUPPORT_RANGE_BOUNDS){var l=E8(n,s,o.length).getClientRects();if(l.length>1){var c=Z3(o),f=0;c.forEach(function(p){a.push(new Wp(p,$c.fromDOMRectList(e,E8(n,f+s,p.length).getClientRects()))),f+=p.length})}else a.push(new Wp(o,$c.fromDOMRectList(e,l)))}else{var h=n.splitText(o.length);a.push(new Wp(o,nve(e,n))),n=h}else Ra.SUPPORT_RANGE_BOUNDS||(n=n.splitText(o.length));s+=o.length}),a},nve=function(e,t){var r=t.ownerDocument;if(r){var n=r.createElement("html2canvaswrapper");n.appendChild(t.cloneNode(!0));var i=t.parentNode;if(i){i.replaceChild(n,t);var a=Ex(e,n);return n.firstChild&&i.replaceChild(n.firstChild,n),a}}return $c.EMPTY},E8=function(e,t,r){var n=e.ownerDocument;if(!n)throw new Error("Node has no owner document");var i=n.createRange();return i.setStart(e,t),i.setEnd(e,t+r),i},Z3=function(e){if(Ra.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(t.segment(e)).map(function(r){return r.segment})}return Y1e(e)},ive=function(e,t){if(Ra.SUPPORT_NATIVE_TEXT_SEGMENTATION){var r=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(r.segment(e)).map(function(n){return n.segment})}return ove(e,t)},ave=function(e,t){return t.letterSpacing!==0?Z3(e):ive(e,t)},sve=[32,160,4961,65792,65793,4153,4241],ove=function(e,t){for(var r=D0e(e,{lineBreak:t.lineBreak,wordBreak:t.overflowWrap==="break-word"?"break-word":t.wordBreak}),n=[],i,a=function(){if(i.value){var s=i.value.slice(),o=_x(s),l="";o.forEach(function(c){sve.indexOf(c)===-1?l+=Ni(c):(l.length&&n.push(l),n.push(Ni(c)),l="")}),l.length&&n.push(l)}};!(i=r.next()).done;)a();return n},Ave=(function(){function e(t,r,n){this.text=lve(r.data,n.textTransform),this.textBounds=rve(t,this.text,n,r)}return e})(),lve=function(e,t){switch(t){case 1:return e.toLowerCase();case 3:return e.replace(cve,uve);case 2:return e.toUpperCase();default:return e}},cve=/(^|\s|:|-|\(|\))([a-z])/g,uve=function(e,t,r){return e.length>0?t+r.toUpperCase():e},H9=(function(e){Al(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i.src=n.currentSrc||n.src,i.intrinsicWidth=n.naturalWidth,i.intrinsicHeight=n.naturalHeight,i.context.cache.addImage(i.src),i}return t})(Yl),K9=(function(e){Al(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i.canvas=n,i.intrinsicWidth=n.width,i.intrinsicHeight=n.height,i}return t})(Yl),z9=(function(e){Al(t,e);function t(r,n){var i=e.call(this,r,n)||this,a=new XMLSerializer,s=Ex(r,n);return n.setAttribute("width",s.width+"px"),n.setAttribute("height",s.height+"px"),i.svg="data:image/svg+xml,"+encodeURIComponent(a.serializeToString(n)),i.intrinsicWidth=n.width.baseVal.value,i.intrinsicHeight=n.height.baseVal.value,i.context.cache.addImage(i.svg),i}return t})(Yl),V9=(function(e){Al(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i.value=n.value,i}return t})(Yl),J_=(function(e){Al(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i.start=n.start,i.reversed=typeof n.reversed=="boolean"&&n.reversed===!0,i}return t})(Yl),fve=[{type:15,flags:0,unit:"px",number:3}],hve=[{type:16,flags:0,number:50}],dve=function(e){return e.width>e.height?new $c(e.left+(e.width-e.height)/2,e.top,e.height,e.height):e.width<e.height?new $c(e.left,e.top+(e.height-e.width)/2,e.width,e.width):e},gve=function(e){var t=e.type===pve?new Array(e.value.length+1).join("•"):e.value;return t.length===0?e.placeholder||"":t},J2="checkbox",Z2="radio",pve="password",_8=707406591,eF=(function(e){Al(t,e);function t(r,n){var i=e.call(this,r,n)||this;switch(i.type=n.type.toLowerCase(),i.checked=n.checked,i.value=gve(n),(i.type===J2||i.type===Z2)&&(i.styles.backgroundColor=3739148031,i.styles.borderTopColor=i.styles.borderRightColor=i.styles.borderBottomColor=i.styles.borderLeftColor=2779096575,i.styles.borderTopWidth=i.styles.borderRightWidth=i.styles.borderBottomWidth=i.styles.borderLeftWidth=1,i.styles.borderTopStyle=i.styles.borderRightStyle=i.styles.borderBottomStyle=i.styles.borderLeftStyle=1,i.styles.backgroundClip=[0],i.styles.backgroundOrigin=[0],i.bounds=dve(i.bounds)),i.type){case J2:i.styles.borderTopRightRadius=i.styles.borderTopLeftRadius=i.styles.borderBottomRightRadius=i.styles.borderBottomLeftRadius=fve;break;case Z2:i.styles.borderTopRightRadius=i.styles.borderTopLeftRadius=i.styles.borderBottomRightRadius=i.styles.borderBottomLeftRadius=hve;break}return i}return t})(Yl),G9=(function(e){Al(t,e);function t(r,n){var i=e.call(this,r,n)||this,a=n.options[n.selectedIndex||0];return i.value=a&&a.text||"",i}return t})(Yl),q9=(function(e){Al(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i.value=n.value,i}return t})(Yl),W9=(function(e){Al(t,e);function t(r,n){var i=e.call(this,r,n)||this;i.src=n.src,i.width=parseInt(n.width,10)||0,i.height=parseInt(n.height,10)||0,i.backgroundColor=i.styles.backgroundColor;try{if(n.contentWindow&&n.contentWindow.document&&n.contentWindow.document.documentElement){i.tree=$9(r,n.contentWindow.document.documentElement);var a=n.contentWindow.document.documentElement?Gp(r,getComputedStyle(n.contentWindow.document.documentElement).backgroundColor):Rc.TRANSPARENT,s=n.contentWindow.document.body?Gp(r,getComputedStyle(n.contentWindow.document.body).backgroundColor):Rc.TRANSPARENT;i.backgroundColor=cf(a)?cf(s)?i.styles.backgroundColor:s:a}}catch{}return i}return t})(Yl),vve=["OL","UL","MENU"],Wy=function(e,t,r,n){for(var i=t.firstChild,a=void 0;i;i=a)if(a=i.nextSibling,X9(i)&&i.data.trim().length>0)r.textNodes.push(new Ave(e,i,r.styles));else if(E0(i))if(tK(i)&&i.assignedNodes)i.assignedNodes().forEach(function(o){return Wy(e,o,r,n)});else{var s=Y9(e,i);s.styles.isVisible()&&(mve(i,s,n)?s.flags|=4:yve(s.styles)&&(s.flags|=2),vve.indexOf(i.tagName)!==-1&&(s.flags|=8),r.elements.push(s),i.slot,i.shadowRoot?Wy(e,i.shadowRoot,s,n):!ew(i)&&!J9(i)&&!tw(i)&&Wy(e,i,s,n))}},Y9=function(e,t){return e4(t)?new H9(e,t):Z9(t)?new K9(e,t):J9(t)?new z9(e,t):wve(t)?new V9(e,t):xve(t)?new J_(e,t):bve(t)?new eF(e,t):tw(t)?new G9(e,t):ew(t)?new q9(e,t):eK(t)?new W9(e,t):new Yl(e,t)},$9=function(e,t){var r=Y9(e,t);return r.flags|=4,Wy(e,t,r,r),r},mve=function(e,t,r){return t.styles.isPositionedWithZIndex()||t.styles.opacity<1||t.styles.isTransformed()||tF(e)&&r.styles.isTransparent()},yve=function(e){return e.isPositioned()||e.isFloating()},X9=function(e){return e.nodeType===Node.TEXT_NODE},E0=function(e){return e.nodeType===Node.ELEMENT_NODE},Z_=function(e){return E0(e)&&typeof e.style<"u"&&!Yy(e)},Yy=function(e){return typeof e.className=="object"},wve=function(e){return e.tagName==="LI"},xve=function(e){return e.tagName==="OL"},bve=function(e){return e.tagName==="INPUT"},Bve=function(e){return e.tagName==="HTML"},J9=function(e){return e.tagName==="svg"},tF=function(e){return e.tagName==="BODY"},Z9=function(e){return e.tagName==="CANVAS"},S8=function(e){return e.tagName==="VIDEO"},e4=function(e){return e.tagName==="IMG"},eK=function(e){return e.tagName==="IFRAME"},F8=function(e){return e.tagName==="STYLE"},Cve=function(e){return e.tagName==="SCRIPT"},ew=function(e){return e.tagName==="TEXTAREA"},tw=function(e){return e.tagName==="SELECT"},tK=function(e){return e.tagName==="SLOT"},T8=function(e){return e.tagName.indexOf("-")>0},Eve=(function(){function e(){this.counters={}}return e.prototype.getCounterValue=function(t){var r=this.counters[t];return r&&r.length?r[r.length-1]:1},e.prototype.getCounterValues=function(t){var r=this.counters[t];return r||[]},e.prototype.pop=function(t){var r=this;t.forEach(function(n){return r.counters[n].pop()})},e.prototype.parse=function(t){var r=this,n=t.counterIncrement,i=t.counterReset,a=!0;n!==null&&n.forEach(function(o){var l=r.counters[o.counter];l&&o.increment!==0&&(a=!1,l.length||l.push(1),l[Math.max(0,l.length-1)]+=o.increment)});var s=[];return a&&i.forEach(function(o){var l=r.counters[o.counter];s.push(o.counter),l||(l=r.counters[o.counter]=[]),l.push(o.reset)}),s},e})(),O8={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},U8={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},_ve={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},Sve={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},i0=function(e,t,r,n,i,a){return e<t||e>r?E1(e,i,a.length>0):n.integers.reduce(function(s,o,l){for(;e>=o;)e-=o,s+=n.values[l];return s},"")+a},rK=function(e,t,r,n){var i="";do r||e--,i=n(e)+i,e/=t;while(e*t>=t);return i},Oi=function(e,t,r,n,i){var a=r-t+1;return(e<0?"-":"")+(rK(Math.abs(e),a,n,function(s){return Ni(Math.floor(s%a)+t)})+i)},ah=function(e,t,r){r===void 0&&(r=". ");var n=t.length;return rK(Math.abs(e),n,!1,function(i){return t[Math.floor(i%n)]})+r},p0=1,Gu=2,qu=4,Qp=8,Cc=function(e,t,r,n,i,a){if(e<-9999||e>9999)return E1(e,4,i.length>0);var s=Math.abs(e),o=i;if(s===0)return t[0]+o;for(var l=0;s>0&&l<=4;l++){var c=s%10;c===0&&sa(a,p0)&&o!==""?o=t[c]+o:c>1||c===1&&l===0||c===1&&l===1&&sa(a,Gu)||c===1&&l===1&&sa(a,qu)&&e>100||c===1&&l>1&&sa(a,Qp)?o=t[c]+(l>0?r[l-1]:"")+o:c===1&&l>0&&(o=r[l-1]+o),s=Math.floor(s/10)}return(e<0?n:"")+o},N8="十百千萬",L8="拾佰仟萬",D8="マイナス",uC="마이너스",E1=function(e,t,r){var n=r?". ":"",i=r?"、":"",a=r?", ":"",s=r?" ":"";switch(t){case 0:return"•"+s;case 1:return"◦"+s;case 2:return"◾"+s;case 5:var o=Oi(e,48,57,!0,n);return o.length<4?"0"+o:o;case 4:return ah(e,"〇一二三四五六七八九",i);case 6:return i0(e,1,3999,O8,3,n).toLowerCase();case 7:return i0(e,1,3999,O8,3,n);case 8:return Oi(e,945,969,!1,n);case 9:return Oi(e,97,122,!1,n);case 10:return Oi(e,65,90,!1,n);case 11:return Oi(e,1632,1641,!0,n);case 12:case 49:return i0(e,1,9999,U8,3,n);case 35:return i0(e,1,9999,U8,3,n).toLowerCase();case 13:return Oi(e,2534,2543,!0,n);case 14:case 30:return Oi(e,6112,6121,!0,n);case 15:return ah(e,"子丑寅卯辰巳午未申酉戌亥",i);case 16:return ah(e,"甲乙丙丁戊己庚辛壬癸",i);case 17:case 48:return Cc(e,"零一二三四五六七八九",N8,"負",i,Gu|qu|Qp);case 47:return Cc(e,"零壹貳參肆伍陸柒捌玖",L8,"負",i,p0|Gu|qu|Qp);case 42:return Cc(e,"零一二三四五六七八九",N8,"负",i,Gu|qu|Qp);case 41:return Cc(e,"零壹贰叁肆伍陆柒捌玖",L8,"负",i,p0|Gu|qu|Qp);case 26:return Cc(e,"〇一二三四五六七八九","十百千万",D8,i,0);case 25:return Cc(e,"零壱弐参四伍六七八九","拾百千万",D8,i,p0|Gu|qu);case 31:return Cc(e,"영일이삼사오육칠팔구","십백천만",uC,a,p0|Gu|qu);case 33:return Cc(e,"零一二三四五六七八九","十百千萬",uC,a,0);case 32:return Cc(e,"零壹貳參四五六七八九","拾百千",uC,a,p0|Gu|qu);case 18:return Oi(e,2406,2415,!0,n);case 20:return i0(e,1,19999,Sve,3,n);case 21:return Oi(e,2790,2799,!0,n);case 22:return Oi(e,2662,2671,!0,n);case 22:return i0(e,1,10999,_ve,3,n);case 23:return ah(e,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return ah(e,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return Oi(e,3302,3311,!0,n);case 28:return ah(e,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",i);case 29:return ah(e,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",i);case 34:return Oi(e,3792,3801,!0,n);case 37:return Oi(e,6160,6169,!0,n);case 38:return Oi(e,4160,4169,!0,n);case 39:return Oi(e,2918,2927,!0,n);case 40:return Oi(e,1776,1785,!0,n);case 43:return Oi(e,3046,3055,!0,n);case 44:return Oi(e,3174,3183,!0,n);case 45:return Oi(e,3664,3673,!0,n);case 46:return Oi(e,3872,3881,!0,n);case 3:default:return Oi(e,48,57,!0,n)}},nK="data-html2canvas-ignore",I8=(function(){function e(t,r,n){if(this.context=t,this.options=n,this.scrolledElements=[],this.referenceElement=r,this.counters=new Eve,this.quoteDepth=0,!r.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(r.ownerDocument.documentElement,!1)}return e.prototype.toIFrame=function(t,r){var n=this,i=Fve(t,r);if(!i.contentWindow)return Promise.reject("Unable to find iframe window");var a=t.defaultView.pageXOffset,s=t.defaultView.pageYOffset,o=i.contentWindow,l=o.document,c=Uve(i).then(function(){return bs(n,void 0,void 0,function(){var f,h;return os(this,function(p){switch(p.label){case 0:return this.scrolledElements.forEach(Ive),o&&(o.scrollTo(r.left,r.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(o.scrollY!==r.top||o.scrollX!==r.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(o.scrollX-r.left,o.scrollY-r.top,0,0))),f=this.options.onclone,h=this.clonedReferenceElement,typeof h>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:l.fonts&&l.fonts.ready?[4,l.fonts.ready]:[3,2];case 1:p.sent(),p.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,Ove(l)]:[3,4];case 3:p.sent(),p.label=4;case 4:return typeof f=="function"?[2,Promise.resolve().then(function(){return f(l,h)}).then(function(){return i})]:[2,i]}})})});return l.open(),l.write(Lve(document.doctype)+"<html></html>"),Dve(this.referenceElement.ownerDocument,a,s),l.replaceChild(l.adoptNode(this.documentElement),l.documentElement),l.close(),c},e.prototype.createElementClone=function(t){if($_(t,2))debugger;if(Z9(t))return this.createCanvasClone(t);if(S8(t))return this.createVideoClone(t);if(F8(t))return this.createStyleClone(t);var r=t.cloneNode(!1);return e4(r)&&(e4(t)&&t.currentSrc&&t.currentSrc!==t.src&&(r.src=t.currentSrc,r.srcset=""),r.loading==="lazy"&&(r.loading="eager")),T8(r)?this.createCustomElementClone(r):r},e.prototype.createCustomElementClone=function(t){var r=document.createElement("html2canvascustomelement");return fC(t.style,r),r},e.prototype.createStyleClone=function(t){try{var r=t.sheet;if(r&&r.cssRules){var n=[].slice.call(r.cssRules,0).reduce(function(a,s){return s&&typeof s.cssText=="string"?a+s.cssText:a},""),i=t.cloneNode(!1);return i.textContent=n,i}}catch(a){if(this.context.logger.error("Unable to access cssRules property",a),a.name!=="SecurityError")throw a}return t.cloneNode(!1)},e.prototype.createCanvasClone=function(t){var r;if(this.options.inlineImages&&t.ownerDocument){var n=t.ownerDocument.createElement("img");try{return n.src=t.toDataURL(),n}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",t)}}var i=t.cloneNode(!1);try{i.width=t.width,i.height=t.height;var a=t.getContext("2d"),s=i.getContext("2d");if(s)if(!this.options.allowTaint&&a)s.putImageData(a.getImageData(0,0,t.width,t.height),0,0);else{var o=(r=t.getContext("webgl2"))!==null&&r!==void 0?r:t.getContext("webgl");if(o){var l=o.getContextAttributes();l?.preserveDrawingBuffer===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",t)}s.drawImage(t,0,0)}return i}catch{this.context.logger.info("Unable to clone canvas as it is tainted",t)}return i},e.prototype.createVideoClone=function(t){var r=t.ownerDocument.createElement("canvas");r.width=t.offsetWidth,r.height=t.offsetHeight;var n=r.getContext("2d");try{return n&&(n.drawImage(t,0,0,r.width,r.height),this.options.allowTaint||n.getImageData(0,0,r.width,r.height)),r}catch{this.context.logger.info("Unable to clone video as it is tainted",t)}var i=t.ownerDocument.createElement("canvas");return i.width=t.offsetWidth,i.height=t.offsetHeight,i},e.prototype.appendChildNode=function(t,r,n){(!E0(r)||!Cve(r)&&!r.hasAttribute(nK)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(r)))&&(!this.options.copyStyles||!E0(r)||!F8(r))&&t.appendChild(this.cloneNode(r,n))},e.prototype.cloneChildNodes=function(t,r,n){for(var i=this,a=t.shadowRoot?t.shadowRoot.firstChild:t.firstChild;a;a=a.nextSibling)if(E0(a)&&tK(a)&&typeof a.assignedNodes=="function"){var s=a.assignedNodes();s.length&&s.forEach(function(o){return i.appendChildNode(r,o,n)})}else this.appendChildNode(r,a,n)},e.prototype.cloneNode=function(t,r){if(X9(t))return document.createTextNode(t.data);if(!t.ownerDocument)return t.cloneNode(!1);var n=t.ownerDocument.defaultView;if(n&&E0(t)&&(Z_(t)||Yy(t))){var i=this.createElementClone(t);i.style.transitionProperty="none";var a=n.getComputedStyle(t),s=n.getComputedStyle(t,":before"),o=n.getComputedStyle(t,":after");this.referenceElement===t&&Z_(i)&&(this.clonedReferenceElement=i),tF(i)&&kve(i);var l=this.counters.parse(new f8(this.context,a)),c=this.resolvePseudoContent(t,i,s,Yp.BEFORE);T8(t)&&(r=!0),S8(t)||this.cloneChildNodes(t,i,r),c&&i.insertBefore(c,i.firstChild);var f=this.resolvePseudoContent(t,i,o,Yp.AFTER);return f&&i.appendChild(f),this.counters.pop(l),(a&&(this.options.copyStyles||Yy(t))&&!eK(t)||r)&&fC(a,i),(t.scrollTop!==0||t.scrollLeft!==0)&&this.scrolledElements.push([i,t.scrollLeft,t.scrollTop]),(ew(t)||tw(t))&&(ew(i)||tw(i))&&(i.value=t.value),i}return t.cloneNode(!1)},e.prototype.resolvePseudoContent=function(t,r,n,i){var a=this;if(n){var s=n.content,o=r.ownerDocument;if(!(!o||!s||s==="none"||s==="-moz-alt-content"||n.display==="none")){this.counters.parse(new f8(this.context,n));var l=new w1e(this.context,n),c=o.createElement("html2canvaspseudoelement");fC(n,c),l.content.forEach(function(h){if(h.type===0)c.appendChild(o.createTextNode(h.value));else if(h.type===22){var p=o.createElement("img");p.src=h.value,p.style.opacity="1",c.appendChild(p)}else if(h.type===18){if(h.name==="attr"){var g=h.values.filter(Cn);g.length&&c.appendChild(o.createTextNode(t.getAttribute(g[0].value)||""))}else if(h.name==="counter"){var y=h.values.filter(Y0),m=y[0],w=y[1];if(m&&Cn(m)){var b=a.counters.getCounterValue(m.value),E=w&&Cn(w)?Y_.parse(a.context,w.value):3;c.appendChild(o.createTextNode(E1(b,E,!1)))}}else if(h.name==="counters"){var S=h.values.filter(Y0),m=S[0],T=S[1],w=S[2];if(m&&Cn(m)){var D=a.counters.getCounterValues(m.value),k=w&&Cn(w)?Y_.parse(a.context,w.value):3,P=T&&T.type===0?T.value:"",R=D.map(function(I){return E1(I,k,!1)}).join(P);c.appendChild(o.createTextNode(R))}}}else if(h.type===20)switch(h.value){case"open-quote":c.appendChild(o.createTextNode(u8(l.quotes,a.quoteDepth++,!0)));break;case"close-quote":c.appendChild(o.createTextNode(u8(l.quotes,--a.quoteDepth,!1)));break;default:c.appendChild(o.createTextNode(h.value))}}),c.className=t4+" "+r4;var f=i===Yp.BEFORE?" "+t4:" "+r4;return Yy(r)?r.className.baseValue+=f:r.className+=f,c}}},e.destroy=function(t){return t.parentNode?(t.parentNode.removeChild(t),!0):!1},e})(),Yp;(function(e){e[e.BEFORE=0]="BEFORE",e[e.AFTER=1]="AFTER"})(Yp||(Yp={}));var Fve=function(e,t){var r=e.createElement("iframe");return r.className="html2canvas-container",r.style.visibility="hidden",r.style.position="fixed",r.style.left="-10000px",r.style.top="0px",r.style.border="0",r.width=t.width.toString(),r.height=t.height.toString(),r.scrolling="no",r.setAttribute(nK,"true"),e.body.appendChild(r),r},Tve=function(e){return new Promise(function(t){if(e.complete){t();return}if(!e.src){t();return}e.onload=t,e.onerror=t})},Ove=function(e){return Promise.all([].slice.call(e.images,0).map(Tve))},Uve=function(e){return new Promise(function(t,r){var n=e.contentWindow;if(!n)return r("No window assigned for iframe");var i=n.document;n.onload=e.onload=function(){n.onload=e.onload=null;var a=setInterval(function(){i.body.childNodes.length>0&&i.readyState==="complete"&&(clearInterval(a),t(e))},50)}})},Nve=["all","d","content"],fC=function(e,t){for(var r=e.length-1;r>=0;r--){var n=e.item(r);Nve.indexOf(n)===-1&&t.style.setProperty(n,e.getPropertyValue(n))}return t},Lve=function(e){var t="";return e&&(t+="<!DOCTYPE ",e.name&&(t+=e.name),e.internalSubset&&(t+=e.internalSubset),e.publicId&&(t+='"'+e.publicId+'"'),e.systemId&&(t+='"'+e.systemId+'"'),t+=">"),t},Dve=function(e,t,r){e&&e.defaultView&&(t!==e.defaultView.pageXOffset||r!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(t,r)},Ive=function(e){var t=e[0],r=e[1],n=e[2];t.scrollLeft=r,t.scrollTop=n},Mve=":before",Pve=":after",t4="___html2canvas___pseudoelement_before",r4="___html2canvas___pseudoelement_after",M8=`{
    content: "" !important;
    display: none !important;
}`,kve=function(e){Qve(e,"."+t4+Mve+M8+`
         .`+r4+Pve+M8)},Qve=function(e,t){var r=e.ownerDocument;if(r){var n=r.createElement("style");n.textContent=t,e.appendChild(n)}},iK=(function(){function e(){}return e.getOrigin=function(t){var r=e._link;return r?(r.href=t,r.href=r.href,r.protocol+r.hostname+r.port):"about:blank"},e.isSameOrigin=function(t){return e.getOrigin(t)===e._origin},e.setContext=function(t){e._link=t.document.createElement("a"),e._origin=e.getOrigin(t.location.href)},e._origin="about:blank",e})(),Rve=(function(){function e(t,r){this.context=t,this._options=r,this._cache={}}return e.prototype.addImage=function(t){var r=Promise.resolve();return this.has(t)||(dC(t)||zve(t))&&(this._cache[t]=this.loadImage(t)).catch(function(){}),r},e.prototype.match=function(t){return this._cache[t]},e.prototype.loadImage=function(t){return bs(this,void 0,void 0,function(){var r,n,i,a,s=this;return os(this,function(o){switch(o.label){case 0:return r=iK.isSameOrigin(t),n=!hC(t)&&this._options.useCORS===!0&&Ra.SUPPORT_CORS_IMAGES&&!r,i=!hC(t)&&!r&&!dC(t)&&typeof this._options.proxy=="string"&&Ra.SUPPORT_CORS_XHR&&!n,!r&&this._options.allowTaint===!1&&!hC(t)&&!dC(t)&&!i&&!n?[2]:(a=t,i?[4,this.proxy(a)]:[3,2]);case 1:a=o.sent(),o.label=2;case 2:return this.context.logger.debug("Added image "+t.substring(0,256)),[4,new Promise(function(l,c){var f=new Image;f.onload=function(){return l(f)},f.onerror=c,(Vve(a)||n)&&(f.crossOrigin="anonymous"),f.src=a,f.complete===!0&&setTimeout(function(){return l(f)},500),s._options.imageTimeout>0&&setTimeout(function(){return c("Timed out ("+s._options.imageTimeout+"ms) loading image")},s._options.imageTimeout)})];case 3:return[2,o.sent()]}})})},e.prototype.has=function(t){return typeof this._cache[t]<"u"},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(t){var r=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var i=t.substring(0,256);return new Promise(function(a,s){var o=Ra.SUPPORT_RESPONSE_TYPE?"blob":"text",l=new XMLHttpRequest;l.onload=function(){if(l.status===200)if(o==="text")a(l.response);else{var h=new FileReader;h.addEventListener("load",function(){return a(h.result)},!1),h.addEventListener("error",function(p){return s(p)},!1),h.readAsDataURL(l.response)}else s("Failed to proxy resource "+i+" with status code "+l.status)},l.onerror=s;var c=n.indexOf("?")>-1?"&":"?";if(l.open("GET",""+n+c+"url="+encodeURIComponent(t)+"&responseType="+o),o!=="text"&&l instanceof XMLHttpRequest&&(l.responseType=o),r._options.imageTimeout){var f=r._options.imageTimeout;l.timeout=f,l.ontimeout=function(){return s("Timed out ("+f+"ms) proxying "+i)}}l.send()})},e})(),jve=/^data:image\/svg\+xml/i,Hve=/^data:image\/.*;base64,/i,Kve=/^data:image\/.*/i,zve=function(e){return Ra.SUPPORT_SVG_DRAWING||!Gve(e)},hC=function(e){return Kve.test(e)},Vve=function(e){return Hve.test(e)},dC=function(e){return e.substr(0,4)==="blob"},Gve=function(e){return e.substr(-3).toLowerCase()==="svg"||jve.test(e)},xt=(function(){function e(t,r){this.type=0,this.x=t,this.y=r}return e.prototype.add=function(t,r){return new e(this.x+t,this.y+r)},e})(),a0=function(e,t,r){return new xt(e.x+(t.x-e.x)*r,e.y+(t.y-e.y)*r)},ry=(function(){function e(t,r,n,i){this.type=1,this.start=t,this.startControl=r,this.endControl=n,this.end=i}return e.prototype.subdivide=function(t,r){var n=a0(this.start,this.startControl,t),i=a0(this.startControl,this.endControl,t),a=a0(this.endControl,this.end,t),s=a0(n,i,t),o=a0(i,a,t),l=a0(s,o,t);return r?new e(this.start,n,s,l):new e(l,o,a,this.end)},e.prototype.add=function(t,r){return new e(this.start.add(t,r),this.startControl.add(t,r),this.endControl.add(t,r),this.end.add(t,r))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e})(),uA=function(e){return e.type===1},qve=(function(){function e(t){var r=t.styles,n=t.bounds,i=Pp(r.borderTopLeftRadius,n.width,n.height),a=i[0],s=i[1],o=Pp(r.borderTopRightRadius,n.width,n.height),l=o[0],c=o[1],f=Pp(r.borderBottomRightRadius,n.width,n.height),h=f[0],p=f[1],g=Pp(r.borderBottomLeftRadius,n.width,n.height),y=g[0],m=g[1],w=[];w.push((a+l)/n.width),w.push((y+h)/n.width),w.push((s+m)/n.height),w.push((c+p)/n.height);var b=Math.max.apply(Math,w);b>1&&(a/=b,s/=b,l/=b,c/=b,h/=b,p/=b,y/=b,m/=b);var E=n.width-l,S=n.height-p,T=n.width-h,D=n.height-m,k=r.borderTopWidth,P=r.borderRightWidth,R=r.borderBottomWidth,O=r.borderLeftWidth,V=Nn(r.paddingTop,t.bounds.width),I=Nn(r.paddingRight,t.bounds.width),Q=Nn(r.paddingBottom,t.bounds.width),W=Nn(r.paddingLeft,t.bounds.width);this.topLeftBorderDoubleOuterBox=a>0||s>0?$n(n.left+O/3,n.top+k/3,a-O/3,s-k/3,rn.TOP_LEFT):new xt(n.left+O/3,n.top+k/3),this.topRightBorderDoubleOuterBox=a>0||s>0?$n(n.left+E,n.top+k/3,l-P/3,c-k/3,rn.TOP_RIGHT):new xt(n.left+n.width-P/3,n.top+k/3),this.bottomRightBorderDoubleOuterBox=h>0||p>0?$n(n.left+T,n.top+S,h-P/3,p-R/3,rn.BOTTOM_RIGHT):new xt(n.left+n.width-P/3,n.top+n.height-R/3),this.bottomLeftBorderDoubleOuterBox=y>0||m>0?$n(n.left+O/3,n.top+D,y-O/3,m-R/3,rn.BOTTOM_LEFT):new xt(n.left+O/3,n.top+n.height-R/3),this.topLeftBorderDoubleInnerBox=a>0||s>0?$n(n.left+O*2/3,n.top+k*2/3,a-O*2/3,s-k*2/3,rn.TOP_LEFT):new xt(n.left+O*2/3,n.top+k*2/3),this.topRightBorderDoubleInnerBox=a>0||s>0?$n(n.left+E,n.top+k*2/3,l-P*2/3,c-k*2/3,rn.TOP_RIGHT):new xt(n.left+n.width-P*2/3,n.top+k*2/3),this.bottomRightBorderDoubleInnerBox=h>0||p>0?$n(n.left+T,n.top+S,h-P*2/3,p-R*2/3,rn.BOTTOM_RIGHT):new xt(n.left+n.width-P*2/3,n.top+n.height-R*2/3),this.bottomLeftBorderDoubleInnerBox=y>0||m>0?$n(n.left+O*2/3,n.top+D,y-O*2/3,m-R*2/3,rn.BOTTOM_LEFT):new xt(n.left+O*2/3,n.top+n.height-R*2/3),this.topLeftBorderStroke=a>0||s>0?$n(n.left+O/2,n.top+k/2,a-O/2,s-k/2,rn.TOP_LEFT):new xt(n.left+O/2,n.top+k/2),this.topRightBorderStroke=a>0||s>0?$n(n.left+E,n.top+k/2,l-P/2,c-k/2,rn.TOP_RIGHT):new xt(n.left+n.width-P/2,n.top+k/2),this.bottomRightBorderStroke=h>0||p>0?$n(n.left+T,n.top+S,h-P/2,p-R/2,rn.BOTTOM_RIGHT):new xt(n.left+n.width-P/2,n.top+n.height-R/2),this.bottomLeftBorderStroke=y>0||m>0?$n(n.left+O/2,n.top+D,y-O/2,m-R/2,rn.BOTTOM_LEFT):new xt(n.left+O/2,n.top+n.height-R/2),this.topLeftBorderBox=a>0||s>0?$n(n.left,n.top,a,s,rn.TOP_LEFT):new xt(n.left,n.top),this.topRightBorderBox=l>0||c>0?$n(n.left+E,n.top,l,c,rn.TOP_RIGHT):new xt(n.left+n.width,n.top),this.bottomRightBorderBox=h>0||p>0?$n(n.left+T,n.top+S,h,p,rn.BOTTOM_RIGHT):new xt(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=y>0||m>0?$n(n.left,n.top+D,y,m,rn.BOTTOM_LEFT):new xt(n.left,n.top+n.height),this.topLeftPaddingBox=a>0||s>0?$n(n.left+O,n.top+k,Math.max(0,a-O),Math.max(0,s-k),rn.TOP_LEFT):new xt(n.left+O,n.top+k),this.topRightPaddingBox=l>0||c>0?$n(n.left+Math.min(E,n.width-P),n.top+k,E>n.width+P?0:Math.max(0,l-P),Math.max(0,c-k),rn.TOP_RIGHT):new xt(n.left+n.width-P,n.top+k),this.bottomRightPaddingBox=h>0||p>0?$n(n.left+Math.min(T,n.width-O),n.top+Math.min(S,n.height-R),Math.max(0,h-P),Math.max(0,p-R),rn.BOTTOM_RIGHT):new xt(n.left+n.width-P,n.top+n.height-R),this.bottomLeftPaddingBox=y>0||m>0?$n(n.left+O,n.top+Math.min(D,n.height-R),Math.max(0,y-O),Math.max(0,m-R),rn.BOTTOM_LEFT):new xt(n.left+O,n.top+n.height-R),this.topLeftContentBox=a>0||s>0?$n(n.left+O+W,n.top+k+V,Math.max(0,a-(O+W)),Math.max(0,s-(k+V)),rn.TOP_LEFT):new xt(n.left+O+W,n.top+k+V),this.topRightContentBox=l>0||c>0?$n(n.left+Math.min(E,n.width+O+W),n.top+k+V,E>n.width+O+W?0:l-O+W,c-(k+V),rn.TOP_RIGHT):new xt(n.left+n.width-(P+I),n.top+k+V),this.bottomRightContentBox=h>0||p>0?$n(n.left+Math.min(T,n.width-(O+W)),n.top+Math.min(S,n.height+k+V),Math.max(0,h-(P+I)),p-(R+Q),rn.BOTTOM_RIGHT):new xt(n.left+n.width-(P+I),n.top+n.height-(R+Q)),this.bottomLeftContentBox=y>0||m>0?$n(n.left+O+W,n.top+D,Math.max(0,y-(O+W)),m-(R+Q),rn.BOTTOM_LEFT):new xt(n.left+O+W,n.top+n.height-(R+Q))}return e})(),rn;(function(e){e[e.TOP_LEFT=0]="TOP_LEFT",e[e.TOP_RIGHT=1]="TOP_RIGHT",e[e.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",e[e.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(rn||(rn={}));var $n=function(e,t,r,n,i){var a=4*((Math.sqrt(2)-1)/3),s=r*a,o=n*a,l=e+r,c=t+n;switch(i){case rn.TOP_LEFT:return new ry(new xt(e,c),new xt(e,c-o),new xt(l-s,t),new xt(l,t));case rn.TOP_RIGHT:return new ry(new xt(e,t),new xt(e+s,t),new xt(l,c-o),new xt(l,c));case rn.BOTTOM_RIGHT:return new ry(new xt(l,t),new xt(l,t+o),new xt(e+s,c),new xt(e,c));case rn.BOTTOM_LEFT:default:return new ry(new xt(l,c),new xt(l-s,c),new xt(e,t+o),new xt(e,t))}},rw=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},Wve=function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]},nw=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},Yve=(function(){function e(t,r,n){this.offsetX=t,this.offsetY=r,this.matrix=n,this.type=0,this.target=6}return e})(),ny=(function(){function e(t,r){this.path=t,this.target=r,this.type=1}return e})(),$ve=(function(){function e(t){this.opacity=t,this.type=2,this.target=6}return e})(),Xve=function(e){return e.type===0},aK=function(e){return e.type===1},Jve=function(e){return e.type===2},P8=function(e,t){return e.length===t.length?e.some(function(r,n){return r===t[n]}):!1},Zve=function(e,t,r,n,i){return e.map(function(a,s){switch(s){case 0:return a.add(t,r);case 1:return a.add(t+n,r);case 2:return a.add(t+n,r+i);case 3:return a.add(t,r+i)}return a})},sK=(function(){function e(t){this.element=t,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return e})(),oK=(function(){function e(t,r){if(this.container=t,this.parent=r,this.effects=[],this.curves=new qve(this.container),this.container.styles.opacity<1&&this.effects.push(new $ve(this.container.styles.opacity)),this.container.styles.transform!==null){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,i=this.container.bounds.top+this.container.styles.transformOrigin[1].number,a=this.container.styles.transform;this.effects.push(new Yve(n,i,a))}if(this.container.styles.overflowX!==0){var s=rw(this.curves),o=nw(this.curves);P8(s,o)?this.effects.push(new ny(s,6)):(this.effects.push(new ny(s,2)),this.effects.push(new ny(o,4)))}}return e.prototype.getEffects=function(t){for(var r=[2,3].indexOf(this.container.styles.position)===-1,n=this.parent,i=this.effects.slice(0);n;){var a=n.effects.filter(function(l){return!aK(l)});if(r||n.container.styles.position!==0||!n.parent){if(i.unshift.apply(i,a),r=[2,3].indexOf(n.container.styles.position)===-1,n.container.styles.overflowX!==0){var s=rw(n.curves),o=nw(n.curves);P8(s,o)||i.unshift(new ny(o,6))}}else i.unshift.apply(i,a);n=n.parent}return i.filter(function(l){return sa(l.target,t)})},e})(),n4=function(e,t,r,n){e.container.elements.forEach(function(i){var a=sa(i.flags,4),s=sa(i.flags,2),o=new oK(i,e);sa(i.styles.display,2048)&&n.push(o);var l=sa(i.flags,8)?[]:n;if(a||s){var c=a||i.styles.isPositioned()?r:t,f=new sK(o);if(i.styles.isPositioned()||i.styles.opacity<1||i.styles.isTransformed()){var h=i.styles.zIndex.order;if(h<0){var p=0;c.negativeZIndex.some(function(y,m){return h>y.element.container.styles.zIndex.order?(p=m,!1):p>0}),c.negativeZIndex.splice(p,0,f)}else if(h>0){var g=0;c.positiveZIndex.some(function(y,m){return h>=y.element.container.styles.zIndex.order?(g=m+1,!1):g>0}),c.positiveZIndex.splice(g,0,f)}else c.zeroOrAutoZIndexOrTransformedOrOpacity.push(f)}else i.styles.isFloating()?c.nonPositionedFloats.push(f):c.nonPositionedInlineLevel.push(f);n4(o,f,a?f:r,l)}else i.styles.isInlineLevel()?t.inlineLevel.push(o):t.nonInlineLevel.push(o),n4(o,t,r,l);sa(i.flags,8)&&AK(i,l)})},AK=function(e,t){for(var r=e instanceof J_?e.start:1,n=e instanceof J_?e.reversed:!1,i=0;i<t.length;i++){var a=t[i];a.container instanceof V9&&typeof a.container.value=="number"&&a.container.value!==0&&(r=a.container.value),a.listValue=E1(r,a.container.styles.listStyleType,!0),r+=n?-1:1}},eme=function(e){var t=new oK(e,null),r=new sK(t),n=[];return n4(t,r,r,n),AK(t.container,n),r},k8=function(e,t){switch(t){case 0:return dA(e.topLeftBorderBox,e.topLeftPaddingBox,e.topRightBorderBox,e.topRightPaddingBox);case 1:return dA(e.topRightBorderBox,e.topRightPaddingBox,e.bottomRightBorderBox,e.bottomRightPaddingBox);case 2:return dA(e.bottomRightBorderBox,e.bottomRightPaddingBox,e.bottomLeftBorderBox,e.bottomLeftPaddingBox);case 3:default:return dA(e.bottomLeftBorderBox,e.bottomLeftPaddingBox,e.topLeftBorderBox,e.topLeftPaddingBox)}},tme=function(e,t){switch(t){case 0:return dA(e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox,e.topRightBorderBox,e.topRightBorderDoubleOuterBox);case 1:return dA(e.topRightBorderBox,e.topRightBorderDoubleOuterBox,e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox);case 2:return dA(e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox,e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox);case 3:default:return dA(e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox,e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox)}},rme=function(e,t){switch(t){case 0:return dA(e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox,e.topRightBorderDoubleInnerBox,e.topRightPaddingBox);case 1:return dA(e.topRightBorderDoubleInnerBox,e.topRightPaddingBox,e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox);case 2:return dA(e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox,e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox);case 3:default:return dA(e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox,e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox)}},nme=function(e,t){switch(t){case 0:return iy(e.topLeftBorderStroke,e.topRightBorderStroke);case 1:return iy(e.topRightBorderStroke,e.bottomRightBorderStroke);case 2:return iy(e.bottomRightBorderStroke,e.bottomLeftBorderStroke);case 3:default:return iy(e.bottomLeftBorderStroke,e.topLeftBorderStroke)}},iy=function(e,t){var r=[];return uA(e)?r.push(e.subdivide(.5,!1)):r.push(e),uA(t)?r.push(t.subdivide(.5,!0)):r.push(t),r},dA=function(e,t,r,n){var i=[];return uA(e)?i.push(e.subdivide(.5,!1)):i.push(e),uA(r)?i.push(r.subdivide(.5,!0)):i.push(r),uA(n)?i.push(n.subdivide(.5,!0).reverse()):i.push(n),uA(t)?i.push(t.subdivide(.5,!1).reverse()):i.push(t),i},lK=function(e){var t=e.bounds,r=e.styles;return t.add(r.borderLeftWidth,r.borderTopWidth,-(r.borderRightWidth+r.borderLeftWidth),-(r.borderTopWidth+r.borderBottomWidth))},iw=function(e){var t=e.styles,r=e.bounds,n=Nn(t.paddingLeft,r.width),i=Nn(t.paddingRight,r.width),a=Nn(t.paddingTop,r.width),s=Nn(t.paddingBottom,r.width);return r.add(n+t.borderLeftWidth,a+t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth+n+i),-(t.borderTopWidth+t.borderBottomWidth+a+s))},ime=function(e,t){return e===0?t.bounds:e===2?iw(t):lK(t)},ame=function(e,t){return e===0?t.bounds:e===2?iw(t):lK(t)},gC=function(e,t,r){var n=ime(v0(e.styles.backgroundOrigin,t),e),i=ame(v0(e.styles.backgroundClip,t),e),a=sme(v0(e.styles.backgroundSize,t),r,n),s=a[0],o=a[1],l=Pp(v0(e.styles.backgroundPosition,t),n.width-s,n.height-o),c=ome(v0(e.styles.backgroundRepeat,t),l,a,n,i),f=Math.round(n.left+l[0]),h=Math.round(n.top+l[1]);return[c,f,h,s,o]},s0=function(e){return Cn(e)&&e.value===U0.AUTO},ay=function(e){return typeof e=="number"},sme=function(e,t,r){var n=t[0],i=t[1],a=t[2],s=e[0],o=e[1];if(!s)return[0,0];if(zi(s)&&o&&zi(o))return[Nn(s,r.width),Nn(o,r.height)];var l=ay(a);if(Cn(s)&&(s.value===U0.CONTAIN||s.value===U0.COVER)){if(ay(a)){var c=r.width/r.height;return c<a!=(s.value===U0.COVER)?[r.width,r.width/a]:[r.height*a,r.height]}return[r.width,r.height]}var f=ay(n),h=ay(i),p=f||h;if(s0(s)&&(!o||s0(o))){if(f&&h)return[n,i];if(!l&&!p)return[r.width,r.height];if(p&&l){var g=f?n:i*a,y=h?i:n/a;return[g,y]}var m=f?n:r.width,w=h?i:r.height;return[m,w]}if(l){var b=0,E=0;return zi(s)?b=Nn(s,r.width):zi(o)&&(E=Nn(o,r.height)),s0(s)?b=E*a:(!o||s0(o))&&(E=b/a),[b,E]}var S=null,T=null;if(zi(s)?S=Nn(s,r.width):o&&zi(o)&&(T=Nn(o,r.height)),S!==null&&(!o||s0(o))&&(T=f&&h?S/n*i:r.height),T!==null&&s0(s)&&(S=f&&h?T/i*n:r.width),S!==null&&T!==null)return[S,T];throw new Error("Unable to calculate background-size for element")},v0=function(e,t){var r=e[t];return typeof r>"u"?e[0]:r},ome=function(e,t,r,n,i){var a=t[0],s=t[1],o=r[0],l=r[1];switch(e){case 2:return[new xt(Math.round(n.left),Math.round(n.top+s)),new xt(Math.round(n.left+n.width),Math.round(n.top+s)),new xt(Math.round(n.left+n.width),Math.round(l+n.top+s)),new xt(Math.round(n.left),Math.round(l+n.top+s))];case 3:return[new xt(Math.round(n.left+a),Math.round(n.top)),new xt(Math.round(n.left+a+o),Math.round(n.top)),new xt(Math.round(n.left+a+o),Math.round(n.height+n.top)),new xt(Math.round(n.left+a),Math.round(n.height+n.top))];case 1:return[new xt(Math.round(n.left+a),Math.round(n.top+s)),new xt(Math.round(n.left+a+o),Math.round(n.top+s)),new xt(Math.round(n.left+a+o),Math.round(n.top+s+l)),new xt(Math.round(n.left+a),Math.round(n.top+s+l))];default:return[new xt(Math.round(i.left),Math.round(i.top)),new xt(Math.round(i.left+i.width),Math.round(i.top)),new xt(Math.round(i.left+i.width),Math.round(i.height+i.top)),new xt(Math.round(i.left),Math.round(i.height+i.top))]}},Ame="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Q8="Hidden Text",lme=(function(){function e(t){this._data={},this._document=t}return e.prototype.parseMetrics=function(t,r){var n=this._document.createElement("div"),i=this._document.createElement("img"),a=this._document.createElement("span"),s=this._document.body;n.style.visibility="hidden",n.style.fontFamily=t,n.style.fontSize=r,n.style.margin="0",n.style.padding="0",n.style.whiteSpace="nowrap",s.appendChild(n),i.src=Ame,i.width=1,i.height=1,i.style.margin="0",i.style.padding="0",i.style.verticalAlign="baseline",a.style.fontFamily=t,a.style.fontSize=r,a.style.margin="0",a.style.padding="0",a.appendChild(this._document.createTextNode(Q8)),n.appendChild(a),n.appendChild(i);var o=i.offsetTop-a.offsetTop+2;n.removeChild(a),n.appendChild(this._document.createTextNode(Q8)),n.style.lineHeight="normal",i.style.verticalAlign="super";var l=i.offsetTop-n.offsetTop+2;return s.removeChild(n),{baseline:o,middle:l}},e.prototype.getMetrics=function(t,r){var n=t+" "+r;return typeof this._data[n]>"u"&&(this._data[n]=this.parseMetrics(t,r)),this._data[n]},e})(),cK=(function(){function e(t,r){this.context=t,this.options=r}return e})(),cme=1e4,ume=(function(e){Al(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i._activeEffects=[],i.canvas=n.canvas?n.canvas:document.createElement("canvas"),i.ctx=i.canvas.getContext("2d"),n.canvas||(i.canvas.width=Math.floor(n.width*n.scale),i.canvas.height=Math.floor(n.height*n.scale),i.canvas.style.width=n.width+"px",i.canvas.style.height=n.height+"px"),i.fontMetrics=new lme(document),i.ctx.scale(i.options.scale,i.options.scale),i.ctx.translate(-n.x,-n.y),i.ctx.textBaseline="bottom",i._activeEffects=[],i.context.logger.debug("Canvas renderer initialized ("+n.width+"x"+n.height+") with scale "+n.scale),i}return t.prototype.applyEffects=function(r){for(var n=this;this._activeEffects.length;)this.popEffect();r.forEach(function(i){return n.applyEffect(i)})},t.prototype.applyEffect=function(r){this.ctx.save(),Jve(r)&&(this.ctx.globalAlpha=r.opacity),Xve(r)&&(this.ctx.translate(r.offsetX,r.offsetY),this.ctx.transform(r.matrix[0],r.matrix[1],r.matrix[2],r.matrix[3],r.matrix[4],r.matrix[5]),this.ctx.translate(-r.offsetX,-r.offsetY)),aK(r)&&(this.path(r.path),this.ctx.clip()),this._activeEffects.push(r)},t.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},t.prototype.renderStack=function(r){return bs(this,void 0,void 0,function(){var n;return os(this,function(i){switch(i.label){case 0:return n=r.element.container.styles,n.isVisible()?[4,this.renderStackContent(r)]:[3,2];case 1:i.sent(),i.label=2;case 2:return[2]}})})},t.prototype.renderNode=function(r){return bs(this,void 0,void 0,function(){return os(this,function(n){switch(n.label){case 0:if(sa(r.container.flags,16))debugger;return r.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(r)]:[3,3];case 1:return n.sent(),[4,this.renderNodeContent(r)];case 2:n.sent(),n.label=3;case 3:return[2]}})})},t.prototype.renderTextWithLetterSpacing=function(r,n,i){var a=this;if(n===0)this.ctx.fillText(r.text,r.bounds.left,r.bounds.top+i);else{var s=Z3(r.text);s.reduce(function(o,l){return a.ctx.fillText(l,o,r.bounds.top+i),o+a.ctx.measureText(l).width},r.bounds.left)}},t.prototype.createFontStyle=function(r){var n=r.fontVariant.filter(function(s){return s==="normal"||s==="small-caps"}).join(""),i=pme(r.fontFamily).join(", "),a=pv(r.fontSize)?""+r.fontSize.number+r.fontSize.unit:r.fontSize.number+"px";return[[r.fontStyle,n,r.fontWeight,a,i].join(" "),i,a]},t.prototype.renderTextNode=function(r,n){return bs(this,void 0,void 0,function(){var i,a,s,o,l,c,f,h,p=this;return os(this,function(g){return i=this.createFontStyle(n),a=i[0],s=i[1],o=i[2],this.ctx.font=a,this.ctx.direction=n.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",l=this.fontMetrics.getMetrics(s,o),c=l.baseline,f=l.middle,h=n.paintOrder,r.textBounds.forEach(function(y){h.forEach(function(m){switch(m){case 0:p.ctx.fillStyle=wa(n.color),p.renderTextWithLetterSpacing(y,n.letterSpacing,c);var w=n.textShadow;w.length&&y.text.trim().length&&(w.slice(0).reverse().forEach(function(b){p.ctx.shadowColor=wa(b.color),p.ctx.shadowOffsetX=b.offsetX.number*p.options.scale,p.ctx.shadowOffsetY=b.offsetY.number*p.options.scale,p.ctx.shadowBlur=b.blur.number,p.renderTextWithLetterSpacing(y,n.letterSpacing,c)}),p.ctx.shadowColor="",p.ctx.shadowOffsetX=0,p.ctx.shadowOffsetY=0,p.ctx.shadowBlur=0),n.textDecorationLine.length&&(p.ctx.fillStyle=wa(n.textDecorationColor||n.color),n.textDecorationLine.forEach(function(b){switch(b){case 1:p.ctx.fillRect(y.bounds.left,Math.round(y.bounds.top+c),y.bounds.width,1);break;case 2:p.ctx.fillRect(y.bounds.left,Math.round(y.bounds.top),y.bounds.width,1);break;case 3:p.ctx.fillRect(y.bounds.left,Math.ceil(y.bounds.top+f),y.bounds.width,1);break}}));break;case 1:n.webkitTextStrokeWidth&&y.text.trim().length&&(p.ctx.strokeStyle=wa(n.webkitTextStrokeColor),p.ctx.lineWidth=n.webkitTextStrokeWidth,p.ctx.lineJoin=window.chrome?"miter":"round",p.ctx.strokeText(y.text,y.bounds.left,y.bounds.top+c)),p.ctx.strokeStyle="",p.ctx.lineWidth=0,p.ctx.lineJoin="miter";break}})}),[2]})})},t.prototype.renderReplacedElement=function(r,n,i){if(i&&r.intrinsicWidth>0&&r.intrinsicHeight>0){var a=iw(r),s=nw(n);this.path(s),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(i,0,0,r.intrinsicWidth,r.intrinsicHeight,a.left,a.top,a.width,a.height),this.ctx.restore()}},t.prototype.renderNodeContent=function(r){return bs(this,void 0,void 0,function(){var n,i,a,s,o,l,E,E,c,f,h,p,T,g,y,D,m,w,b,E,S,T,D;return os(this,function(k){switch(k.label){case 0:this.applyEffects(r.getEffects(4)),n=r.container,i=r.curves,a=n.styles,s=0,o=n.textNodes,k.label=1;case 1:return s<o.length?(l=o[s],[4,this.renderTextNode(l,a)]):[3,4];case 2:k.sent(),k.label=3;case 3:return s++,[3,1];case 4:if(!(n instanceof H9))return[3,8];k.label=5;case 5:return k.trys.push([5,7,,8]),[4,this.context.cache.match(n.src)];case 6:return E=k.sent(),this.renderReplacedElement(n,i,E),[3,8];case 7:return k.sent(),this.context.logger.error("Error loading image "+n.src),[3,8];case 8:if(n instanceof K9&&this.renderReplacedElement(n,i,n.canvas),!(n instanceof z9))return[3,12];k.label=9;case 9:return k.trys.push([9,11,,12]),[4,this.context.cache.match(n.svg)];case 10:return E=k.sent(),this.renderReplacedElement(n,i,E),[3,12];case 11:return k.sent(),this.context.logger.error("Error loading svg "+n.svg.substring(0,255)),[3,12];case 12:return n instanceof W9&&n.tree?(c=new t(this.context,{scale:this.options.scale,backgroundColor:n.backgroundColor,x:0,y:0,width:n.width,height:n.height}),[4,c.render(n.tree)]):[3,14];case 13:f=k.sent(),n.width&&n.height&&this.ctx.drawImage(f,0,0,n.width,n.height,n.bounds.left,n.bounds.top,n.bounds.width,n.bounds.height),k.label=14;case 14:if(n instanceof eF&&(h=Math.min(n.bounds.width,n.bounds.height),n.type===J2?n.checked&&(this.ctx.save(),this.path([new xt(n.bounds.left+h*.39363,n.bounds.top+h*.79),new xt(n.bounds.left+h*.16,n.bounds.top+h*.5549),new xt(n.bounds.left+h*.27347,n.bounds.top+h*.44071),new xt(n.bounds.left+h*.39694,n.bounds.top+h*.5649),new xt(n.bounds.left+h*.72983,n.bounds.top+h*.23),new xt(n.bounds.left+h*.84,n.bounds.top+h*.34085),new xt(n.bounds.left+h*.39363,n.bounds.top+h*.79)]),this.ctx.fillStyle=wa(_8),this.ctx.fill(),this.ctx.restore()):n.type===Z2&&n.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(n.bounds.left+h/2,n.bounds.top+h/2,h/4,0,Math.PI*2,!0),this.ctx.fillStyle=wa(_8),this.ctx.fill(),this.ctx.restore())),fme(n)&&n.value.length){switch(p=this.createFontStyle(a),T=p[0],g=p[1],y=this.fontMetrics.getMetrics(T,g).baseline,this.ctx.font=T,this.ctx.fillStyle=wa(a.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=dme(n.styles.textAlign),D=iw(n),m=0,n.styles.textAlign){case 1:m+=D.width/2;break;case 2:m+=D.width;break}w=D.add(m,0,0,-D.height/2+1),this.ctx.save(),this.path([new xt(D.left,D.top),new xt(D.left+D.width,D.top),new xt(D.left+D.width,D.top+D.height),new xt(D.left,D.top+D.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Wp(n.value,w),a.letterSpacing,y),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!sa(n.styles.display,2048))return[3,20];if(n.styles.listStyleImage===null)return[3,19];if(b=n.styles.listStyleImage,b.type!==0)return[3,18];E=void 0,S=b.url,k.label=15;case 15:return k.trys.push([15,17,,18]),[4,this.context.cache.match(S)];case 16:return E=k.sent(),this.ctx.drawImage(E,n.bounds.left-(E.width+10),n.bounds.top),[3,18];case 17:return k.sent(),this.context.logger.error("Error loading list-style-image "+S),[3,18];case 18:return[3,20];case 19:r.listValue&&n.styles.listStyleType!==-1&&(T=this.createFontStyle(a)[0],this.ctx.font=T,this.ctx.fillStyle=wa(a.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",D=new $c(n.bounds.left,n.bounds.top+Nn(n.styles.paddingTop,n.bounds.width),n.bounds.width,l8(a.lineHeight,a.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Wp(r.listValue,D),a.letterSpacing,l8(a.lineHeight,a.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),k.label=20;case 20:return[2]}})})},t.prototype.renderStackContent=function(r){return bs(this,void 0,void 0,function(){var n,i,b,a,s,b,o,l,b,c,f,b,h,p,b,g,y,b,m,w,b;return os(this,function(E){switch(E.label){case 0:if(sa(r.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(r.element)];case 1:E.sent(),n=0,i=r.negativeZIndex,E.label=2;case 2:return n<i.length?(b=i[n],[4,this.renderStack(b)]):[3,5];case 3:E.sent(),E.label=4;case 4:return n++,[3,2];case 5:return[4,this.renderNodeContent(r.element)];case 6:E.sent(),a=0,s=r.nonInlineLevel,E.label=7;case 7:return a<s.length?(b=s[a],[4,this.renderNode(b)]):[3,10];case 8:E.sent(),E.label=9;case 9:return a++,[3,7];case 10:o=0,l=r.nonPositionedFloats,E.label=11;case 11:return o<l.length?(b=l[o],[4,this.renderStack(b)]):[3,14];case 12:E.sent(),E.label=13;case 13:return o++,[3,11];case 14:c=0,f=r.nonPositionedInlineLevel,E.label=15;case 15:return c<f.length?(b=f[c],[4,this.renderStack(b)]):[3,18];case 16:E.sent(),E.label=17;case 17:return c++,[3,15];case 18:h=0,p=r.inlineLevel,E.label=19;case 19:return h<p.length?(b=p[h],[4,this.renderNode(b)]):[3,22];case 20:E.sent(),E.label=21;case 21:return h++,[3,19];case 22:g=0,y=r.zeroOrAutoZIndexOrTransformedOrOpacity,E.label=23;case 23:return g<y.length?(b=y[g],[4,this.renderStack(b)]):[3,26];case 24:E.sent(),E.label=25;case 25:return g++,[3,23];case 26:m=0,w=r.positiveZIndex,E.label=27;case 27:return m<w.length?(b=w[m],[4,this.renderStack(b)]):[3,30];case 28:E.sent(),E.label=29;case 29:return m++,[3,27];case 30:return[2]}})})},t.prototype.mask=function(r){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(r.slice(0).reverse()),this.ctx.closePath()},t.prototype.path=function(r){this.ctx.beginPath(),this.formatPath(r),this.ctx.closePath()},t.prototype.formatPath=function(r){var n=this;r.forEach(function(i,a){var s=uA(i)?i.start:i;a===0?n.ctx.moveTo(s.x,s.y):n.ctx.lineTo(s.x,s.y),uA(i)&&n.ctx.bezierCurveTo(i.startControl.x,i.startControl.y,i.endControl.x,i.endControl.y,i.end.x,i.end.y)})},t.prototype.renderRepeat=function(r,n,i,a){this.path(r),this.ctx.fillStyle=n,this.ctx.translate(i,a),this.ctx.fill(),this.ctx.translate(-i,-a)},t.prototype.resizeImage=function(r,n,i){var a;if(r.width===n&&r.height===i)return r;var s=(a=this.canvas.ownerDocument)!==null&&a!==void 0?a:document,o=s.createElement("canvas");o.width=Math.max(1,n),o.height=Math.max(1,i);var l=o.getContext("2d");return l.drawImage(r,0,0,r.width,r.height,0,0,n,i),o},t.prototype.renderBackgroundImage=function(r){return bs(this,void 0,void 0,function(){var n,i,a,s,o,l;return os(this,function(c){switch(c.label){case 0:n=r.styles.backgroundImage.length-1,i=function(f){var h,p,g,V,G,se,W,J,R,y,V,G,se,W,J,m,w,b,E,S,T,D,k,P,R,O,V,I,Q,W,J,fe,G,se,ge,ye,_e,Z,L,j,K,q;return os(this,function(re){switch(re.label){case 0:if(f.type!==0)return[3,5];h=void 0,p=f.url,re.label=1;case 1:return re.trys.push([1,3,,4]),[4,a.context.cache.match(p)];case 2:return h=re.sent(),[3,4];case 3:return re.sent(),a.context.logger.error("Error loading background-image "+p),[3,4];case 4:return h&&(g=gC(r,n,[h.width,h.height,h.width/h.height]),V=g[0],G=g[1],se=g[2],W=g[3],J=g[4],R=a.ctx.createPattern(a.resizeImage(h,W,J),"repeat"),a.renderRepeat(V,R,G,se)),[3,6];case 5:Xge(f)?(y=gC(r,n,[null,null,null]),V=y[0],G=y[1],se=y[2],W=y[3],J=y[4],m=Gge(f.angle,W,J),w=m[0],b=m[1],E=m[2],S=m[3],T=m[4],D=document.createElement("canvas"),D.width=W,D.height=J,k=D.getContext("2d"),P=k.createLinearGradient(b,S,E,T),o8(f.stops,w).forEach(function(he){return P.addColorStop(he.stop,wa(he.color))}),k.fillStyle=P,k.fillRect(0,0,W,J),W>0&&J>0&&(R=a.ctx.createPattern(D,"repeat"),a.renderRepeat(V,R,G,se))):Jge(f)&&(O=gC(r,n,[null,null,null]),V=O[0],I=O[1],Q=O[2],W=O[3],J=O[4],fe=f.position.length===0?[$3]:f.position,G=Nn(fe[0],W),se=Nn(fe[fe.length-1],J),ge=qge(f,G,se,W,J),ye=ge[0],_e=ge[1],ye>0&&_e>0&&(Z=a.ctx.createRadialGradient(I+G,Q+se,0,I+G,Q+se,ye),o8(f.stops,ye*2).forEach(function(he){return Z.addColorStop(he.stop,wa(he.color))}),a.path(V),a.ctx.fillStyle=Z,ye!==_e?(L=r.bounds.left+.5*r.bounds.width,j=r.bounds.top+.5*r.bounds.height,K=_e/ye,q=1/K,a.ctx.save(),a.ctx.translate(L,j),a.ctx.transform(1,0,0,K,0,0),a.ctx.translate(-L,-j),a.ctx.fillRect(I,q*(Q-j)+j,W,J*q),a.ctx.restore()):a.ctx.fill())),re.label=6;case 6:return n--,[2]}})},a=this,s=0,o=r.styles.backgroundImage.slice(0).reverse(),c.label=1;case 1:return s<o.length?(l=o[s],[5,i(l)]):[3,4];case 2:c.sent(),c.label=3;case 3:return s++,[3,1];case 4:return[2]}})})},t.prototype.renderSolidBorder=function(r,n,i){return bs(this,void 0,void 0,function(){return os(this,function(a){return this.path(k8(i,n)),this.ctx.fillStyle=wa(r),this.ctx.fill(),[2]})})},t.prototype.renderDoubleBorder=function(r,n,i,a){return bs(this,void 0,void 0,function(){var s,o;return os(this,function(l){switch(l.label){case 0:return n<3?[4,this.renderSolidBorder(r,i,a)]:[3,2];case 1:return l.sent(),[2];case 2:return s=tme(a,i),this.path(s),this.ctx.fillStyle=wa(r),this.ctx.fill(),o=rme(a,i),this.path(o),this.ctx.fill(),[2]}})})},t.prototype.renderNodeBackgroundAndBorders=function(r){return bs(this,void 0,void 0,function(){var n,i,a,s,o,l,c,f,h=this;return os(this,function(p){switch(p.label){case 0:return this.applyEffects(r.getEffects(2)),n=r.container.styles,i=!cf(n.backgroundColor)||n.backgroundImage.length,a=[{style:n.borderTopStyle,color:n.borderTopColor,width:n.borderTopWidth},{style:n.borderRightStyle,color:n.borderRightColor,width:n.borderRightWidth},{style:n.borderBottomStyle,color:n.borderBottomColor,width:n.borderBottomWidth},{style:n.borderLeftStyle,color:n.borderLeftColor,width:n.borderLeftWidth}],s=hme(v0(n.backgroundClip,0),r.curves),i||n.boxShadow.length?(this.ctx.save(),this.path(s),this.ctx.clip(),cf(n.backgroundColor)||(this.ctx.fillStyle=wa(n.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(r.container)]):[3,2];case 1:p.sent(),this.ctx.restore(),n.boxShadow.slice(0).reverse().forEach(function(g){h.ctx.save();var y=rw(r.curves),m=g.inset?0:cme,w=Zve(y,-m+(g.inset?1:-1)*g.spread.number,(g.inset?1:-1)*g.spread.number,g.spread.number*(g.inset?-2:2),g.spread.number*(g.inset?-2:2));g.inset?(h.path(y),h.ctx.clip(),h.mask(w)):(h.mask(y),h.ctx.clip(),h.path(w)),h.ctx.shadowOffsetX=g.offsetX.number+m,h.ctx.shadowOffsetY=g.offsetY.number,h.ctx.shadowColor=wa(g.color),h.ctx.shadowBlur=g.blur.number,h.ctx.fillStyle=g.inset?wa(g.color):"rgba(0,0,0,1)",h.ctx.fill(),h.ctx.restore()}),p.label=2;case 2:o=0,l=0,c=a,p.label=3;case 3:return l<c.length?(f=c[l],f.style!==0&&!cf(f.color)&&f.width>0?f.style!==2?[3,5]:[4,this.renderDashedDottedBorder(f.color,f.width,o,r.curves,2)]:[3,11]):[3,13];case 4:return p.sent(),[3,11];case 5:return f.style!==3?[3,7]:[4,this.renderDashedDottedBorder(f.color,f.width,o,r.curves,3)];case 6:return p.sent(),[3,11];case 7:return f.style!==4?[3,9]:[4,this.renderDoubleBorder(f.color,f.width,o,r.curves)];case 8:return p.sent(),[3,11];case 9:return[4,this.renderSolidBorder(f.color,o,r.curves)];case 10:p.sent(),p.label=11;case 11:o++,p.label=12;case 12:return l++,[3,3];case 13:return[2]}})})},t.prototype.renderDashedDottedBorder=function(r,n,i,a,s){return bs(this,void 0,void 0,function(){var o,l,c,f,h,p,g,y,m,w,b,E,S,T,D,k,D,k;return os(this,function(P){return this.ctx.save(),o=nme(a,i),l=k8(a,i),s===2&&(this.path(l),this.ctx.clip()),uA(l[0])?(c=l[0].start.x,f=l[0].start.y):(c=l[0].x,f=l[0].y),uA(l[1])?(h=l[1].end.x,p=l[1].end.y):(h=l[1].x,p=l[1].y),i===0||i===2?g=Math.abs(c-h):g=Math.abs(f-p),this.ctx.beginPath(),s===3?this.formatPath(o):this.formatPath(l.slice(0,2)),y=n<3?n*3:n*2,m=n<3?n*2:n,s===3&&(y=n,m=n),w=!0,g<=y*2?w=!1:g<=y*2+m?(b=g/(2*y+m),y*=b,m*=b):(E=Math.floor((g+m)/(y+m)),S=(g-E*y)/(E-1),T=(g-(E+1)*y)/E,m=T<=0||Math.abs(m-S)<Math.abs(m-T)?S:T),w&&(s===3?this.ctx.setLineDash([0,y+m]):this.ctx.setLineDash([y,m])),s===3?(this.ctx.lineCap="round",this.ctx.lineWidth=n):this.ctx.lineWidth=n*2+1.1,this.ctx.strokeStyle=wa(r),this.ctx.stroke(),this.ctx.setLineDash([]),s===2&&(uA(l[0])&&(D=l[3],k=l[0],this.ctx.beginPath(),this.formatPath([new xt(D.end.x,D.end.y),new xt(k.start.x,k.start.y)]),this.ctx.stroke()),uA(l[1])&&(D=l[1],k=l[2],this.ctx.beginPath(),this.formatPath([new xt(D.end.x,D.end.y),new xt(k.start.x,k.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},t.prototype.render=function(r){return bs(this,void 0,void 0,function(){var n;return os(this,function(i){switch(i.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=wa(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),n=eme(r),[4,this.renderStack(n)];case 1:return i.sent(),this.applyEffects([]),[2,this.canvas]}})})},t})(cK),fme=function(e){return e instanceof q9||e instanceof G9?!0:e instanceof eF&&e.type!==Z2&&e.type!==J2},hme=function(e,t){switch(e){case 0:return rw(t);case 2:return Wve(t);case 1:default:return nw(t)}},dme=function(e){switch(e){case 1:return"center";case 2:return"right";case 0:default:return"left"}},gme=["-apple-system","system-ui"],pme=function(e){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?e.filter(function(t){return gme.indexOf(t)===-1}):e},vme=(function(e){Al(t,e);function t(r,n){var i=e.call(this,r,n)||this;return i.canvas=n.canvas?n.canvas:document.createElement("canvas"),i.ctx=i.canvas.getContext("2d"),i.options=n,i.canvas.width=Math.floor(n.width*n.scale),i.canvas.height=Math.floor(n.height*n.scale),i.canvas.style.width=n.width+"px",i.canvas.style.height=n.height+"px",i.ctx.scale(i.options.scale,i.options.scale),i.ctx.translate(-n.x,-n.y),i.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+n.width+"x"+n.height+" at "+n.x+","+n.y+") with scale "+n.scale),i}return t.prototype.render=function(r){return bs(this,void 0,void 0,function(){var n,i;return os(this,function(a){switch(a.label){case 0:return n=X_(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,r),[4,mme(n)];case 1:return i=a.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=wa(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(i,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},t})(cK),mme=function(e){return new Promise(function(t,r){var n=new Image;n.onload=function(){t(n)},n.onerror=r,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(e))})},yme=(function(){function e(t){var r=t.id,n=t.enabled;this.id=r,this.enabled=n,this.start=Date.now()}return e.prototype.debug=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,Pm([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},e.prototype.getTime=function(){return Date.now()-this.start},e.prototype.info=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,Pm([this.id,this.getTime()+"ms"],t))},e.prototype.warn=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,Pm([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},e.prototype.error=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,Pm([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},e.instances={},e})(),wme=(function(){function e(t,r){var n;this.windowBounds=r,this.instanceName="#"+e.instanceCount++,this.logger=new yme({id:this.instanceName,enabled:t.logging}),this.cache=(n=t.cache)!==null&&n!==void 0?n:new Rve(this,t)}return e.instanceCount=1,e})(),Ix=function(e,t){return t===void 0&&(t={}),xme(e,t)};typeof window<"u"&&iK.setContext(window);var xme=function(e,t){return bs(void 0,void 0,void 0,function(){var r,n,i,a,s,o,l,c,f,h,p,g,y,m,w,b,E,S,T,D,P,k,P,R,O,V,I,Q,W,J,fe,G,se,ge,ye,_e,Z,L,j,K;return os(this,function(q){switch(q.label){case 0:if(!e||typeof e!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(r=e.ownerDocument,!r)throw new Error("Element is not attached to a Document");if(n=r.defaultView,!n)throw new Error("Document is not attached to a Window");return i={allowTaint:(R=t.allowTaint)!==null&&R!==void 0?R:!1,imageTimeout:(O=t.imageTimeout)!==null&&O!==void 0?O:15e3,proxy:t.proxy,useCORS:(V=t.useCORS)!==null&&V!==void 0?V:!1},a=M_({logging:(I=t.logging)!==null&&I!==void 0?I:!0,cache:t.cache},i),s={windowWidth:(Q=t.windowWidth)!==null&&Q!==void 0?Q:n.innerWidth,windowHeight:(W=t.windowHeight)!==null&&W!==void 0?W:n.innerHeight,scrollX:(J=t.scrollX)!==null&&J!==void 0?J:n.pageXOffset,scrollY:(fe=t.scrollY)!==null&&fe!==void 0?fe:n.pageYOffset},o=new $c(s.scrollX,s.scrollY,s.windowWidth,s.windowHeight),l=new wme(a,o),c=(G=t.foreignObjectRendering)!==null&&G!==void 0?G:!1,f={allowTaint:(se=t.allowTaint)!==null&&se!==void 0?se:!1,onclone:t.onclone,ignoreElements:t.ignoreElements,inlineImages:c,copyStyles:c},l.logger.debug("Starting document clone with size "+o.width+"x"+o.height+" scrolled to "+-o.left+","+-o.top),h=new I8(l,e,f),p=h.clonedReferenceElement,p?[4,h.toIFrame(r,o)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return g=q.sent(),y=tF(p)||Bve(p)?Zde(p.ownerDocument):Ex(l,p),m=y.width,w=y.height,b=y.left,E=y.top,S=bme(l,p,t.backgroundColor),T={canvas:t.canvas,backgroundColor:S,scale:(ye=(ge=t.scale)!==null&&ge!==void 0?ge:n.devicePixelRatio)!==null&&ye!==void 0?ye:1,x:((_e=t.x)!==null&&_e!==void 0?_e:0)+b,y:((Z=t.y)!==null&&Z!==void 0?Z:0)+E,width:(L=t.width)!==null&&L!==void 0?L:Math.ceil(m),height:(j=t.height)!==null&&j!==void 0?j:Math.ceil(w)},c?(l.logger.debug("Document cloned, using foreign object rendering"),P=new vme(l,T),[4,P.render(p)]):[3,3];case 2:return D=q.sent(),[3,5];case 3:return l.logger.debug("Document cloned, element located at "+b+","+E+" with size "+m+"x"+w+" using computed rendering"),l.logger.debug("Starting DOM parsing"),k=$9(l,p),S===k.styles.backgroundColor&&(k.styles.backgroundColor=Rc.TRANSPARENT),l.logger.debug("Starting renderer for element at "+T.x+","+T.y+" with size "+T.width+"x"+T.height),P=new ume(l,T),[4,P.render(k)];case 4:D=q.sent(),q.label=5;case 5:return(!((K=t.removeContainer)!==null&&K!==void 0)||K)&&(I8.destroy(g)||l.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),l.logger.debug("Finished rendering"),[2,D]}})})},bme=function(e,t,r){var n=t.ownerDocument,i=n.documentElement?Gp(e,getComputedStyle(n.documentElement).backgroundColor):Rc.TRANSPARENT,a=n.body?Gp(e,getComputedStyle(n.body).backgroundColor):Rc.TRANSPARENT,s=typeof r=="string"?Gp(e,r):r===null?Rc.TRANSPARENT:4294967295;return t===n.documentElement?cf(i)?cf(a)?s:a:i:s};const Bme=Object.freeze(Object.defineProperty({__proto__:null,default:Ix},Symbol.toStringTag,{value:"Module"})),Cme="modulepreload",Eme=function(e){return"/"+e},R8={},pC=function(t,r,n){let i=Promise.resolve();if(r&&r.length>0){let l=function(c){return Promise.all(c.map(f=>Promise.resolve(f).then(h=>({status:"fulfilled",value:h}),h=>({status:"rejected",reason:h}))))};document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),o=s?.nonce||s?.getAttribute("nonce");i=l(r.map(c=>{if(c=Eme(c),c in R8)return;R8[c]=!0;const f=c.endsWith(".css"),h=f?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${h}`))return;const p=document.createElement("link");if(p.rel=f?"stylesheet":Cme,f||(p.as="script"),p.crossOrigin="",p.href=c,o&&p.setAttribute("nonce",o),document.head.appendChild(p),f)return new Promise((g,y)=>{p.addEventListener("load",g),p.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${c}`)))})}))}function a(s){const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=s,window.dispatchEvent(o),!o.defaultPrevented)throw s}return i.then(s=>{for(const o of s||[])o.status==="rejected"&&a(o.reason);return t().catch(a)})};function un(e){"@babel/helpers - typeof";return un=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},un(e)}var il=Uint8Array,Do=Uint16Array,rF=Int32Array,nF=new il([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,0,0,0]),iF=new il([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,0,0]),j8=new il([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),uK=function(e,t){for(var r=new Do(31),n=0;n<31;++n)r[n]=t+=1<<e[n-1];for(var i=new rF(r[30]),n=1;n<30;++n)for(var a=r[n];a<r[n+1];++a)i[a]=a-r[n]<<5|n;return{b:r,r:i}},fK=uK(nF,2),_me=fK.b,i4=fK.r;_me[28]=258,i4[258]=28;var Sme=uK(iF,0),H8=Sme.r,a4=new Do(32768);for(var zn=0;zn<32768;++zn){var Hu=(zn&43690)>>1|(zn&21845)<<1;Hu=(Hu&52428)>>2|(Hu&13107)<<2,Hu=(Hu&61680)>>4|(Hu&3855)<<4,a4[zn]=((Hu&65280)>>8|(Hu&255)<<8)>>1}var $p=(function(e,t,r){for(var n=e.length,i=0,a=new Do(t);i<n;++i)e[i]&&++a[e[i]-1];var s=new Do(t);for(i=1;i<t;++i)s[i]=s[i-1]+a[i-1]<<1;var o;if(r){o=new Do(1<<t);var l=15-t;for(i=0;i<n;++i)if(e[i])for(var c=i<<4|e[i],f=t-e[i],h=s[e[i]-1]++<<f,p=h|(1<<f)-1;h<=p;++h)o[a4[h]>>l]=c}else for(o=new Do(n),i=0;i<n;++i)e[i]&&(o[i]=a4[s[e[i]-1]++]>>15-e[i]);return o}),Hh=new il(288);for(var zn=0;zn<144;++zn)Hh[zn]=8;for(var zn=144;zn<256;++zn)Hh[zn]=9;for(var zn=256;zn<280;++zn)Hh[zn]=7;for(var zn=280;zn<288;++zn)Hh[zn]=8;var aw=new il(32);for(var zn=0;zn<32;++zn)aw[zn]=5;var Fme=$p(Hh,9,0),Tme=$p(aw,5,0),hK=function(e){return(e+7)/8|0},Ome=function(e,t,r){return(r==null||r>e.length)&&(r=e.length),new il(e.subarray(t,r))},Ec=function(e,t,r){r<<=t&7;var n=t/8|0;e[n]|=r,e[n+1]|=r>>8},xp=function(e,t,r){r<<=t&7;var n=t/8|0;e[n]|=r,e[n+1]|=r>>8,e[n+2]|=r>>16},vC=function(e,t){for(var r=[],n=0;n<e.length;++n)e[n]&&r.push({s:n,f:e[n]});var i=r.length,a=r.slice();if(!i)return{t:gK,l:0};if(i==1){var s=new il(r[0].s+1);return s[r[0].s]=1,{t:s,l:1}}r.sort(function(D,k){return D.f-k.f}),r.push({s:-1,f:25001});var o=r[0],l=r[1],c=0,f=1,h=2;for(r[0]={s:-1,f:o.f+l.f,l:o,r:l};f!=i-1;)o=r[r[c].f<r[h].f?c++:h++],l=r[c!=f&&r[c].f<r[h].f?c++:h++],r[f++]={s:-1,f:o.f+l.f,l:o,r:l};for(var p=a[0].s,n=1;n<i;++n)a[n].s>p&&(p=a[n].s);var g=new Do(p+1),y=s4(r[f-1],g,0);if(y>t){var n=0,m=0,w=y-t,b=1<<w;for(a.sort(function(k,P){return g[P.s]-g[k.s]||k.f-P.f});n<i;++n){var E=a[n].s;if(g[E]>t)m+=b-(1<<y-g[E]),g[E]=t;else break}for(m>>=w;m>0;){var S=a[n].s;g[S]<t?m-=1<<t-g[S]++-1:++n}for(;n>=0&&m;--n){var T=a[n].s;g[T]==t&&(--g[T],++m)}y=t}return{t:new il(g),l:y}},s4=function(e,t,r){return e.s==-1?Math.max(s4(e.l,t,r+1),s4(e.r,t,r+1)):t[e.s]=r},K8=function(e){for(var t=e.length;t&&!e[--t];);for(var r=new Do(++t),n=0,i=e[0],a=1,s=function(l){r[n++]=l},o=1;o<=t;++o)if(e[o]==i&&o!=t)++a;else{if(!i&&a>2){for(;a>138;a-=138)s(32754);a>2&&(s(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(s(i),--a;a>6;a-=6)s(8304);a>2&&(s(a-3<<5|8208),a=0)}for(;a--;)s(i);a=1,i=e[o]}return{c:r.subarray(0,n),n:t}},bp=function(e,t){for(var r=0,n=0;n<t.length;++n)r+=e[n]*t[n];return r},dK=function(e,t,r){var n=r.length,i=hK(t+2);e[i]=n&255,e[i+1]=n>>8,e[i+2]=e[i]^255,e[i+3]=e[i+1]^255;for(var a=0;a<n;++a)e[i+a+4]=r[a];return(i+4+n)*8},z8=function(e,t,r,n,i,a,s,o,l,c,f){Ec(t,f++,r),++i[256];for(var h=vC(i,15),p=h.t,g=h.l,y=vC(a,15),m=y.t,w=y.l,b=K8(p),E=b.c,S=b.n,T=K8(m),D=T.c,k=T.n,P=new Do(19),R=0;R<E.length;++R)++P[E[R]&31];for(var R=0;R<D.length;++R)++P[D[R]&31];for(var O=vC(P,7),V=O.t,I=O.l,Q=19;Q>4&&!V[j8[Q-1]];--Q);var W=c+5<<3,J=bp(i,Hh)+bp(a,aw)+s,fe=bp(i,p)+bp(a,m)+s+14+3*Q+bp(P,V)+2*P[16]+3*P[17]+7*P[18];if(l>=0&&W<=J&&W<=fe)return dK(t,f,e.subarray(l,l+c));var G,se,ge,ye;if(Ec(t,f,1+(fe<J)),f+=2,fe<J){G=$p(p,g,0),se=p,ge=$p(m,w,0),ye=m;var _e=$p(V,I,0);Ec(t,f,S-257),Ec(t,f+5,k-1),Ec(t,f+10,Q-4),f+=14;for(var R=0;R<Q;++R)Ec(t,f+3*R,V[j8[R]]);f+=3*Q;for(var Z=[E,D],L=0;L<2;++L)for(var j=Z[L],R=0;R<j.length;++R){var K=j[R]&31;Ec(t,f,_e[K]),f+=V[K],K>15&&(Ec(t,f,j[R]>>5&127),f+=j[R]>>12)}}else G=Fme,se=Hh,ge=Tme,ye=aw;for(var R=0;R<o;++R){var q=n[R];if(q>255){var K=q>>18&31;xp(t,f,G[K+257]),f+=se[K+257],K>7&&(Ec(t,f,q>>23&31),f+=nF[K]);var re=q&31;xp(t,f,ge[re]),f+=ye[re],re>3&&(xp(t,f,q>>5&8191),f+=iF[re])}else xp(t,f,G[q]),f+=se[q]}return xp(t,f,G[256]),f+se[256]},Ume=new rF([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),gK=new il(0),Nme=function(e,t,r,n,i,a){var s=a.z||e.length,o=new il(n+s+5*(1+Math.ceil(s/7e3))+i),l=o.subarray(n,o.length-i),c=a.l,f=(a.r||0)&7;if(t){f&&(l[0]=a.r>>3);for(var h=Ume[t-1],p=h>>13,g=h&8191,y=(1<<r)-1,m=a.p||new Do(32768),w=a.h||new Do(y+1),b=Math.ceil(r/3),E=2*b,S=function(Ge){return(e[Ge]^e[Ge+1]<<b^e[Ge+2]<<E)&y},T=new rF(25e3),D=new Do(288),k=new Do(32),P=0,R=0,O=a.i||0,V=0,I=a.w||0,Q=0;O+2<s;++O){var W=S(O),J=O&32767,fe=w[W];if(m[J]=fe,w[W]=J,I<=O){var G=s-O;if((P>7e3||V>24576)&&(G>423||!c)){f=z8(e,l,0,T,D,k,R,V,Q,O-Q,f),V=P=R=0,Q=O;for(var se=0;se<286;++se)D[se]=0;for(var se=0;se<30;++se)k[se]=0}var ge=2,ye=0,_e=g,Z=J-fe&32767;if(G>2&&W==S(O-Z))for(var L=Math.min(p,G)-1,j=Math.min(32767,O),K=Math.min(258,G);Z<=j&&--_e&&J!=fe;){if(e[O+ge]==e[O+ge-Z]){for(var q=0;q<K&&e[O+q]==e[O+q-Z];++q);if(q>ge){if(ge=q,ye=Z,q>L)break;for(var re=Math.min(Z,q-2),he=0,se=0;se<re;++se){var Be=O-Z+se&32767,ae=m[Be],be=Be-ae&32767;be>he&&(he=be,fe=Be)}}}J=fe,fe=m[J],Z+=J-fe&32767}if(ye){T[V++]=268435456|i4[ge]<<18|H8[ye];var ke=i4[ge]&31,Fe=H8[ye]&31;R+=nF[ke]+iF[Fe],++D[257+ke],++k[Fe],I=O+ge,++P}else T[V++]=e[O],++D[e[O]]}}for(O=Math.max(O,I);O<s;++O)T[V++]=e[O],++D[e[O]];f=z8(e,l,c,T,D,k,R,V,Q,O-Q,f),c||(a.r=f&7|l[f/8|0]<<3,f-=7,a.h=w,a.p=m,a.i=O,a.w=I)}else{for(var O=a.w||0;O<s+c;O+=65535){var st=O+65535;st>=s&&(l[f/8|0]=c,st=s),f=dK(l,f+1,e.subarray(O,st))}a.i=s}return Ome(o,0,n+hK(f)+i)},pK=function(){var e=1,t=0;return{p:function(r){for(var n=e,i=t,a=r.length|0,s=0;s!=a;){for(var o=Math.min(s+2655,a);s<o;++s)i+=n+=r[s];n=(n&65535)+15*(n>>16),i=(i&65535)+15*(i>>16)}e=n,t=i},d:function(){return e%=65521,t%=65521,(e&255)<<24|(e&65280)<<8|(t&255)<<8|t>>8}}},Lme=function(e,t,r,n,i){if(!i&&(i={l:1},t.dictionary)){var a=t.dictionary.subarray(-32768),s=new il(a.length+e.length);s.set(a),s.set(e,a.length),e=s,i.w=a.length}return Nme(e,t.level==null?6:t.level,t.mem==null?i.l?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):20:12+t.mem,r,n,i)},vK=function(e,t,r){for(;r;++t)e[t]=r,r>>>=8},Dme=function(e,t){var r=t.level,n=r==0?0:r<6?1:r==9?3:2;if(e[0]=120,e[1]=n<<6|(t.dictionary&&32),e[1]|=31-(e[0]<<8|e[1])%31,t.dictionary){var i=pK();i.p(t.dictionary),vK(e,2,i.d())}};function o4(e,t){t||(t={});var r=pK();r.p(e);var n=Lme(e,t,t.dictionary?6:2,4);return Dme(n,t),vK(n,n.length-4,r.d()),n}var Ime=typeof TextDecoder<"u"&&new TextDecoder,Mme=0;try{Ime.decode(gK,{stream:!0}),Mme=1}catch{}function Pme(e){if(Array.isArray(e))return e}function kme(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,s,o=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(o.push(n.value),o.length!==t);l=!0);}catch(f){c=!0,i=f}finally{try{if(!l&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw i}}return o}}function V8(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Qme(e,t){if(e){if(typeof e=="string")return V8(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?V8(e,t):void 0}}function Rme(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function G8(e,t){return Pme(e)||kme(e,t)||Qme(e,t)||Rme()}function q8(e,t="utf8"){return new TextDecoder(t).decode(e)}const jme=new TextEncoder;function Hme(e){return jme.encode(e)}const Kme=1024*8,zme=(()=>{const e=new Uint8Array(4),t=new Uint32Array(e.buffer);return!((t[0]=1)&e[0])})(),mC={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array};class aF{buffer;byteLength;byteOffset;length;offset;lastWrittenByte;littleEndian;_data;_mark;_marks;constructor(t=Kme,r={}){let n=!1;typeof t=="number"?t=new ArrayBuffer(t):(n=!0,this.lastWrittenByte=t.byteLength);const i=r.offset?r.offset>>>0:0,a=t.byteLength-i;let s=i;(ArrayBuffer.isView(t)||t instanceof aF)&&(t.byteLength!==t.buffer.byteLength&&(s=t.byteOffset+i),t=t.buffer),n?this.lastWrittenByte=a:this.lastWrittenByte=0,this.buffer=t,this.length=a,this.byteLength=a,this.byteOffset=s,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,s,a),this._mark=0,this._marks=[]}available(t=1){return this.offset+t<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(t=1){return this.offset+=t,this}back(t=1){return this.offset-=t,this}seek(t){return this.offset=t,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){const t=this._marks.pop();if(t===void 0)throw new Error("Mark stack empty");return this.seek(t),this}rewind(){return this.offset=0,this}ensureAvailable(t=1){if(!this.available(t)){const n=(this.offset+t)*2,i=new Uint8Array(n);i.set(new Uint8Array(this.buffer)),this.buffer=i.buffer,this.length=n,this.byteLength=n,this._data=new DataView(this.buffer)}return this}readBoolean(){return this.readUint8()!==0}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(t=1){return this.readArray(t,"uint8")}readArray(t,r){const n=mC[r].BYTES_PER_ELEMENT*t,i=this.byteOffset+this.offset,a=this.buffer.slice(i,i+n);if(this.littleEndian===zme&&r!=="uint8"&&r!=="int8"){const o=new Uint8Array(this.buffer.slice(i,i+n));o.reverse();const l=new mC[r](o.buffer);return this.offset+=n,l.reverse(),l}const s=new mC[r](a);return this.offset+=n,s}readInt16(){const t=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,t}readUint16(){const t=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,t}readInt32(){const t=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,t}readUint32(){const t=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,t}readFloat32(){const t=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,t}readFloat64(){const t=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,t}readBigInt64(){const t=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,t}readBigUint64(){const t=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,t}readChar(){return String.fromCharCode(this.readInt8())}readChars(t=1){let r="";for(let n=0;n<t;n++)r+=this.readChar();return r}readUtf8(t=1){return q8(this.readBytes(t))}decodeText(t=1,r="utf8"){return q8(this.readBytes(t),r)}writeBoolean(t){return this.writeUint8(t?255:0),this}writeInt8(t){return this.ensureAvailable(1),this._data.setInt8(this.offset++,t),this._updateLastWrittenByte(),this}writeUint8(t){return this.ensureAvailable(1),this._data.setUint8(this.offset++,t),this._updateLastWrittenByte(),this}writeByte(t){return this.writeUint8(t)}writeBytes(t){this.ensureAvailable(t.length);for(let r=0;r<t.length;r++)this._data.setUint8(this.offset++,t[r]);return this._updateLastWrittenByte(),this}writeInt16(t){return this.ensureAvailable(2),this._data.setInt16(this.offset,t,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(t){return this.ensureAvailable(2),this._data.setUint16(this.offset,t,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(t){return this.ensureAvailable(4),this._data.setInt32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(t){return this.ensureAvailable(4),this._data.setUint32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(t){return this.ensureAvailable(4),this._data.setFloat32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(t){return this.ensureAvailable(8),this._data.setFloat64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(t){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(t){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(t){return this.writeUint8(t.charCodeAt(0))}writeChars(t){for(let r=0;r<t.length;r++)this.writeUint8(t.charCodeAt(r));return this}writeUtf8(t){return this.writeBytes(Hme(t))}toArray(){return new Uint8Array(this.buffer,this.byteOffset,this.lastWrittenByte)}getWrittenByteLength(){return this.lastWrittenByte-this.byteOffset}_updateLastWrittenByte(){this.offset>this.lastWrittenByte&&(this.lastWrittenByte=this.offset)}}function mg(e){let t=e.length;for(;--t>=0;)e[t]=0}const Vme=3,Gme=258,mK=29,qme=256,Wme=qme+1+mK,yK=30,Yme=512,$me=new Array((Wme+2)*2);mg($me);const Xme=new Array(yK*2);mg(Xme);const Jme=new Array(Yme);mg(Jme);const Zme=new Array(Gme-Vme+1);mg(Zme);const eye=new Array(mK);mg(eye);const tye=new Array(yK);mg(tye);const rye=(e,t,r,n)=>{let i=e&65535|0,a=e>>>16&65535|0,s=0;for(;r!==0;){s=r>2e3?2e3:r,r-=s;do i=i+t[n++]|0,a=a+i|0;while(--s);i%=65521,a%=65521}return i|a<<16|0};var A4=rye;const nye=()=>{let e,t=[];for(var r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=e&1?3988292384^e>>>1:e>>>1;t[r]=e}return t},iye=new Uint32Array(nye()),aye=(e,t,r,n)=>{const i=iye,a=n+r;e^=-1;for(let s=n;s<a;s++)e=e>>>8^i[(e^t[s])&255];return e^-1};var Nl=aye,l4={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"},wK={Z_NO_FLUSH:0,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_DEFLATED:8};const sye=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var oye=function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const r=t.shift();if(r){if(typeof r!="object")throw new TypeError(r+"must be non-object");for(const n in r)sye(r,n)&&(e[n]=r[n])}}return e},Aye=e=>{let t=0;for(let n=0,i=e.length;n<i;n++)t+=e[n].length;const r=new Uint8Array(t);for(let n=0,i=0,a=e.length;n<a;n++){let s=e[n];r.set(s,i),i+=s.length}return r},xK={assign:oye,flattenChunks:Aye};let bK=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{bK=!1}const _1=new Uint8Array(256);for(let e=0;e<256;e++)_1[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;_1[254]=_1[254]=1;var lye=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,r,n,i,a,s=e.length,o=0;for(i=0;i<s;i++)r=e.charCodeAt(i),(r&64512)===55296&&i+1<s&&(n=e.charCodeAt(i+1),(n&64512)===56320&&(r=65536+(r-55296<<10)+(n-56320),i++)),o+=r<128?1:r<2048?2:r<65536?3:4;for(t=new Uint8Array(o),a=0,i=0;a<o;i++)r=e.charCodeAt(i),(r&64512)===55296&&i+1<s&&(n=e.charCodeAt(i+1),(n&64512)===56320&&(r=65536+(r-55296<<10)+(n-56320),i++)),r<128?t[a++]=r:r<2048?(t[a++]=192|r>>>6,t[a++]=128|r&63):r<65536?(t[a++]=224|r>>>12,t[a++]=128|r>>>6&63,t[a++]=128|r&63):(t[a++]=240|r>>>18,t[a++]=128|r>>>12&63,t[a++]=128|r>>>6&63,t[a++]=128|r&63);return t};const cye=(e,t)=>{if(t<65534&&e.subarray&&bK)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let r="";for(let n=0;n<t;n++)r+=String.fromCharCode(e[n]);return r};var uye=(e,t)=>{const r=t||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let n,i;const a=new Array(r*2);for(i=0,n=0;n<r;){let s=e[n++];if(s<128){a[i++]=s;continue}let o=_1[s];if(o>4){a[i++]=65533,n+=o-1;continue}for(s&=o===2?31:o===3?15:7;o>1&&n<r;)s=s<<6|e[n++]&63,o--;if(o>1){a[i++]=65533;continue}s<65536?a[i++]=s:(s-=65536,a[i++]=55296|s>>10&1023,a[i++]=56320|s&1023)}return cye(a,i)},fye=(e,t)=>{t=t||e.length,t>e.length&&(t=e.length);let r=t-1;for(;r>=0&&(e[r]&192)===128;)r--;return r<0||r===0?t:r+_1[e[r]]>t?r:t},c4={string2buf:lye,buf2string:uye,utf8border:fye};function hye(){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}var dye=hye;const sy=16209,gye=16191;var pye=function(t,r){let n,i,a,s,o,l,c,f,h,p,g,y,m,w,b,E,S,T,D,k,P,R,O,V;const I=t.state;n=t.next_in,O=t.input,i=n+(t.avail_in-5),a=t.next_out,V=t.output,s=a-(r-t.avail_out),o=a+(t.avail_out-257),l=I.dmax,c=I.wsize,f=I.whave,h=I.wnext,p=I.window,g=I.hold,y=I.bits,m=I.lencode,w=I.distcode,b=(1<<I.lenbits)-1,E=(1<<I.distbits)-1;e:do{y<15&&(g+=O[n++]<<y,y+=8,g+=O[n++]<<y,y+=8),S=m[g&b];t:for(;;){if(T=S>>>24,g>>>=T,y-=T,T=S>>>16&255,T===0)V[a++]=S&65535;else if(T&16){D=S&65535,T&=15,T&&(y<T&&(g+=O[n++]<<y,y+=8),D+=g&(1<<T)-1,g>>>=T,y-=T),y<15&&(g+=O[n++]<<y,y+=8,g+=O[n++]<<y,y+=8),S=w[g&E];r:for(;;){if(T=S>>>24,g>>>=T,y-=T,T=S>>>16&255,T&16){if(k=S&65535,T&=15,y<T&&(g+=O[n++]<<y,y+=8,y<T&&(g+=O[n++]<<y,y+=8)),k+=g&(1<<T)-1,k>l){t.msg="invalid distance too far back",I.mode=sy;break e}if(g>>>=T,y-=T,T=a-s,k>T){if(T=k-T,T>f&&I.sane){t.msg="invalid distance too far back",I.mode=sy;break e}if(P=0,R=p,h===0){if(P+=c-T,T<D){D-=T;do V[a++]=p[P++];while(--T);P=a-k,R=V}}else if(h<T){if(P+=c+h-T,T-=h,T<D){D-=T;do V[a++]=p[P++];while(--T);if(P=0,h<D){T=h,D-=T;do V[a++]=p[P++];while(--T);P=a-k,R=V}}}else if(P+=h-T,T<D){D-=T;do V[a++]=p[P++];while(--T);P=a-k,R=V}for(;D>2;)V[a++]=R[P++],V[a++]=R[P++],V[a++]=R[P++],D-=3;D&&(V[a++]=R[P++],D>1&&(V[a++]=R[P++]))}else{P=a-k;do V[a++]=V[P++],V[a++]=V[P++],V[a++]=V[P++],D-=3;while(D>2);D&&(V[a++]=V[P++],D>1&&(V[a++]=V[P++]))}}else if((T&64)===0){S=w[(S&65535)+(g&(1<<T)-1)];continue r}else{t.msg="invalid distance code",I.mode=sy;break e}break}}else if((T&64)===0){S=m[(S&65535)+(g&(1<<T)-1)];continue t}else if(T&32){I.mode=gye;break e}else{t.msg="invalid literal/length code",I.mode=sy;break e}break}}while(n<i&&a<o);D=y>>3,n-=D,y-=D<<3,g&=(1<<y)-1,t.next_in=n,t.next_out=a,t.avail_in=n<i?5+(i-n):5-(n-i),t.avail_out=a<o?257+(o-a):257-(a-o),I.hold=g,I.bits=y};const o0=15,W8=852,Y8=592,$8=0,yC=1,X8=2,vye=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]),mye=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]),yye=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]),wye=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]),xye=(e,t,r,n,i,a,s,o)=>{const l=o.bits;let c=0,f=0,h=0,p=0,g=0,y=0,m=0,w=0,b=0,E=0,S,T,D,k,P,R=null,O;const V=new Uint16Array(o0+1),I=new Uint16Array(o0+1);let Q=null,W,J,fe;for(c=0;c<=o0;c++)V[c]=0;for(f=0;f<n;f++)V[t[r+f]]++;for(g=l,p=o0;p>=1&&V[p]===0;p--);if(g>p&&(g=p),p===0)return i[a++]=1<<24|64<<16|0,i[a++]=1<<24|64<<16|0,o.bits=1,0;for(h=1;h<p&&V[h]===0;h++);for(g<h&&(g=h),w=1,c=1;c<=o0;c++)if(w<<=1,w-=V[c],w<0)return-1;if(w>0&&(e===$8||p!==1))return-1;for(I[1]=0,c=1;c<o0;c++)I[c+1]=I[c]+V[c];for(f=0;f<n;f++)t[r+f]!==0&&(s[I[t[r+f]]++]=f);if(e===$8?(R=Q=s,O=20):e===yC?(R=vye,Q=mye,O=257):(R=yye,Q=wye,O=0),E=0,f=0,c=h,P=a,y=g,m=0,D=-1,b=1<<g,k=b-1,e===yC&&b>W8||e===X8&&b>Y8)return 1;for(;;){W=c-m,s[f]+1<O?(J=0,fe=s[f]):s[f]>=O?(J=Q[s[f]-O],fe=R[s[f]-O]):(J=96,fe=0),S=1<<c-m,T=1<<y,h=T;do T-=S,i[P+(E>>m)+T]=W<<24|J<<16|fe|0;while(T!==0);for(S=1<<c-1;E&S;)S>>=1;if(S!==0?(E&=S-1,E+=S):E=0,f++,--V[c]===0){if(c===p)break;c=t[r+s[f]]}if(c>g&&(E&k)!==D){for(m===0&&(m=g),P+=h,y=c-m,w=1<<y;y+m<p&&(w-=V[y+m],!(w<=0));)y++,w<<=1;if(b+=1<<y,e===yC&&b>W8||e===X8&&b>Y8)return 1;D=E&k,i[D]=g<<24|y<<16|P-a|0}}return E!==0&&(i[P+E]=c-m<<24|64<<16|0),o.bits=g,0};var Xp=xye;const bye=0,BK=1,CK=2,{Z_FINISH:J8,Z_BLOCK:Bye,Z_TREES:oy,Z_OK:Kh,Z_STREAM_END:Cye,Z_NEED_DICT:Eye,Z_STREAM_ERROR:mA,Z_DATA_ERROR:EK,Z_MEM_ERROR:_K,Z_BUF_ERROR:_ye,Z_DEFLATED:Z8}=wK,Mx=16180,eI=16181,tI=16182,rI=16183,nI=16184,iI=16185,aI=16186,sI=16187,oI=16188,AI=16189,sw=16190,_c=16191,wC=16192,lI=16193,xC=16194,cI=16195,uI=16196,fI=16197,hI=16198,Ay=16199,ly=16200,dI=16201,gI=16202,pI=16203,vI=16204,mI=16205,bC=16206,yI=16207,wI=16208,Xn=16209,SK=16210,FK=16211,Sye=852,Fye=592,Tye=15,Oye=Tye,xI=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function Uye(){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 Zh=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.mode<Mx||t.mode>FK?1:0},TK=e=>{if(Zh(e))return mA;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=Mx,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(Sye),t.distcode=t.distdyn=new Int32Array(Fye),t.sane=1,t.back=-1,Kh},OK=e=>{if(Zh(e))return mA;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,TK(e)},UK=(e,t)=>{let r;if(Zh(e))return mA;const n=e.state;return t<0?(r=0,t=-t):(r=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?mA:(n.window!==null&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,OK(e))},NK=(e,t)=>{if(!e)return mA;const r=new Uye;e.state=r,r.strm=e,r.window=null,r.mode=Mx;const n=UK(e,t);return n!==Kh&&(e.state=null),n},Nye=e=>NK(e,Oye);let bI=!0,BC,CC;const Lye=e=>{if(bI){BC=new Int32Array(512),CC=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(Xp(BK,e.lens,0,288,BC,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;Xp(CK,e.lens,0,32,CC,0,e.work,{bits:5}),bI=!1}e.lencode=BC,e.lenbits=9,e.distcode=CC,e.distbits=5},LK=(e,t,r,n)=>{let i;const a=e.state;return a.window===null&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new Uint8Array(a.wsize)),n>=a.wsize?(a.window.set(t.subarray(r-a.wsize,r),0),a.wnext=0,a.whave=a.wsize):(i=a.wsize-a.wnext,i>n&&(i=n),a.window.set(t.subarray(r-n,r-n+i),a.wnext),n-=i,n?(a.window.set(t.subarray(r-n,r),0),a.wnext=n,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=i))),0},Dye=(e,t)=>{let r,n,i,a,s,o,l,c,f,h,p,g,y,m,w=0,b,E,S,T,D,k,P,R;const O=new Uint8Array(4);let V,I;const Q=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Zh(e)||!e.output||!e.input&&e.avail_in!==0)return mA;r=e.state,r.mode===_c&&(r.mode=wC),s=e.next_out,i=e.output,l=e.avail_out,a=e.next_in,n=e.input,o=e.avail_in,c=r.hold,f=r.bits,h=o,p=l,R=Kh;e:for(;;)switch(r.mode){case Mx:if(r.wrap===0){r.mode=wC;break}for(;f<16;){if(o===0)break e;o--,c+=n[a++]<<f,f+=8}if(r.wrap&2&&c===35615){r.wbits===0&&(r.wbits=15),r.check=0,O[0]=c&255,O[1]=c>>>8&255,r.check=Nl(r.check,O,2,0),c=0,f=0,r.mode=eI;break}if(r.head&&(r.head.done=!1),!(r.wrap&1)||(((c&255)<<8)+(c>>8))%31){e.msg="incorrect header check",r.mode=Xn;break}if((c&15)!==Z8){e.msg="unknown compression method",r.mode=Xn;break}if(c>>>=4,f-=4,P=(c&15)+8,r.wbits===0&&(r.wbits=P),P>15||P>r.wbits){e.msg="invalid window size",r.mode=Xn;break}r.dmax=1<<r.wbits,r.flags=0,e.adler=r.check=1,r.mode=c&512?AI:_c,c=0,f=0;break;case eI:for(;f<16;){if(o===0)break e;o--,c+=n[a++]<<f,f+=8}if(r.flags=c,(r.flags&255)!==Z8){e.msg="unknown compression method",r.mode=Xn;break}if(r.flags&57344){e.msg="unknown header flags set",r.mode=Xn;break}r.head&&(r.head.text=c>>8&1),r.flags&512&&r.wrap&4&&(O[0]=c&255,O[1]=c>>>8&255,r.check=Nl(r.check,O,2,0)),c=0,f=0,r.mode=tI;case tI:for(;f<32;){if(o===0)break e;o--,c+=n[a++]<<f,f+=8}r.head&&(r.head.time=c),r.flags&512&&r.wrap&4&&(O[0]=c&255,O[1]=c>>>8&255,O[2]=c>>>16&255,O[3]=c>>>24&255,r.check=Nl(r.check,O,4,0)),c=0,f=0,r.mode=rI;case rI:for(;f<16;){if(o===0)break e;o--,c+=n[a++]<<f,f+=8}r.head&&(r.head.xflags=c&255,r.head.os=c>>8),r.flags&512&&r.wrap&4&&(O[0]=c&255,O[1]=c>>>8&255,r.check=Nl(r.check,O,2,0)),c=0,f=0,r.mode=nI;case nI:if(r.flags&1024){for(;f<16;){if(o===0)break e;o--,c+=n[a++]<<f,f+=8}r.length=c,r.head&&(r.head.extra_len=c),r.flags&512&&r.wrap&4&&(O[0]=c&255,O[1]=c>>>8&255,r.check=Nl(r.check,O,2,0)),c=0,f=0}else r.head&&(r.head.extra=null);r.mode=iI;case iI:if(r.flags&1024&&(g=r.length,g>o&&(g=o),g&&(r.head&&(P=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Uint8Array(r.head.extra_len)),r.head.extra.set(n.subarray(a,a+g),P)),r.flags&512&&r.wrap&4&&(r.check=Nl(r.check,n,g,a)),o-=g,a+=g,r.length-=g),r.length))break e;r.length=0,r.mode=aI;case aI:if(r.flags&2048){if(o===0)break e;g=0;do P=n[a+g++],r.head&&P&&r.length<65536&&(r.head.name+=String.fromCharCode(P));while(P&&g<o);if(r.flags&512&&r.wrap&4&&(r.check=Nl(r.check,n,g,a)),o-=g,a+=g,P)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=sI;case sI:if(r.flags&4096){if(o===0)break e;g=0;do P=n[a+g++],r.head&&P&&r.length<65536&&(r.head.comment+=String.fromCharCode(P));while(P&&g<o);if(r.flags&512&&r.wrap&4&&(r.check=Nl(r.check,n,g,a)),o-=g,a+=g,P)break e}else r.head&&(r.head.comment=null);r.mode=oI;case oI:if(r.flags&512){for(;f<16;){if(o===0)break e;o--,c+=n[a++]<<f,f+=8}if(r.wrap&4&&c!==(r.check&65535)){e.msg="header crc mismatch",r.mode=Xn;break}c=0,f=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=_c;break;case AI:for(;f<32;){if(o===0)break e;o--,c+=n[a++]<<f,f+=8}e.adler=r.check=xI(c),c=0,f=0,r.mode=sw;case sw:if(r.havedict===0)return e.next_out=s,e.avail_out=l,e.next_in=a,e.avail_in=o,r.hold=c,r.bits=f,Eye;e.adler=r.check=1,r.mode=_c;case _c:if(t===Bye||t===oy)break e;case wC:if(r.last){c>>>=f&7,f-=f&7,r.mode=bC;break}for(;f<3;){if(o===0)break e;o--,c+=n[a++]<<f,f+=8}switch(r.last=c&1,c>>>=1,f-=1,c&3){case 0:r.mode=lI;break;case 1:if(Lye(r),r.mode=Ay,t===oy){c>>>=2,f-=2;break e}break;case 2:r.mode=uI;break;case 3:e.msg="invalid block type",r.mode=Xn}c>>>=2,f-=2;break;case lI:for(c>>>=f&7,f-=f&7;f<32;){if(o===0)break e;o--,c+=n[a++]<<f,f+=8}if((c&65535)!==(c>>>16^65535)){e.msg="invalid stored block lengths",r.mode=Xn;break}if(r.length=c&65535,c=0,f=0,r.mode=xC,t===oy)break e;case xC:r.mode=cI;case cI:if(g=r.length,g){if(g>o&&(g=o),g>l&&(g=l),g===0)break e;i.set(n.subarray(a,a+g),s),o-=g,a+=g,l-=g,s+=g,r.length-=g;break}r.mode=_c;break;case uI:for(;f<14;){if(o===0)break e;o--,c+=n[a++]<<f,f+=8}if(r.nlen=(c&31)+257,c>>>=5,f-=5,r.ndist=(c&31)+1,c>>>=5,f-=5,r.ncode=(c&15)+4,c>>>=4,f-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=Xn;break}r.have=0,r.mode=fI;case fI:for(;r.have<r.ncode;){for(;f<3;){if(o===0)break e;o--,c+=n[a++]<<f,f+=8}r.lens[Q[r.have++]]=c&7,c>>>=3,f-=3}for(;r.have<19;)r.lens[Q[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,V={bits:r.lenbits},R=Xp(bye,r.lens,0,19,r.lencode,0,r.work,V),r.lenbits=V.bits,R){e.msg="invalid code lengths set",r.mode=Xn;break}r.have=0,r.mode=hI;case hI:for(;r.have<r.nlen+r.ndist;){for(;w=r.lencode[c&(1<<r.lenbits)-1],b=w>>>24,E=w>>>16&255,S=w&65535,!(b<=f);){if(o===0)break e;o--,c+=n[a++]<<f,f+=8}if(S<16)c>>>=b,f-=b,r.lens[r.have++]=S;else{if(S===16){for(I=b+2;f<I;){if(o===0)break e;o--,c+=n[a++]<<f,f+=8}if(c>>>=b,f-=b,r.have===0){e.msg="invalid bit length repeat",r.mode=Xn;break}P=r.lens[r.have-1],g=3+(c&3),c>>>=2,f-=2}else if(S===17){for(I=b+3;f<I;){if(o===0)break e;o--,c+=n[a++]<<f,f+=8}c>>>=b,f-=b,P=0,g=3+(c&7),c>>>=3,f-=3}else{for(I=b+7;f<I;){if(o===0)break e;o--,c+=n[a++]<<f,f+=8}c>>>=b,f-=b,P=0,g=11+(c&127),c>>>=7,f-=7}if(r.have+g>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=Xn;break}for(;g--;)r.lens[r.have++]=P}}if(r.mode===Xn)break;if(r.lens[256]===0){e.msg="invalid code -- missing end-of-block",r.mode=Xn;break}if(r.lenbits=9,V={bits:r.lenbits},R=Xp(BK,r.lens,0,r.nlen,r.lencode,0,r.work,V),r.lenbits=V.bits,R){e.msg="invalid literal/lengths set",r.mode=Xn;break}if(r.distbits=6,r.distcode=r.distdyn,V={bits:r.distbits},R=Xp(CK,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,V),r.distbits=V.bits,R){e.msg="invalid distances set",r.mode=Xn;break}if(r.mode=Ay,t===oy)break e;case Ay:r.mode=ly;case ly:if(o>=6&&l>=258){e.next_out=s,e.avail_out=l,e.next_in=a,e.avail_in=o,r.hold=c,r.bits=f,pye(e,p),s=e.next_out,i=e.output,l=e.avail_out,a=e.next_in,n=e.input,o=e.avail_in,c=r.hold,f=r.bits,r.mode===_c&&(r.back=-1);break}for(r.back=0;w=r.lencode[c&(1<<r.lenbits)-1],b=w>>>24,E=w>>>16&255,S=w&65535,!(b<=f);){if(o===0)break e;o--,c+=n[a++]<<f,f+=8}if(E&&(E&240)===0){for(T=b,D=E,k=S;w=r.lencode[k+((c&(1<<T+D)-1)>>T)],b=w>>>24,E=w>>>16&255,S=w&65535,!(T+b<=f);){if(o===0)break e;o--,c+=n[a++]<<f,f+=8}c>>>=T,f-=T,r.back+=T}if(c>>>=b,f-=b,r.back+=b,r.length=S,E===0){r.mode=mI;break}if(E&32){r.back=-1,r.mode=_c;break}if(E&64){e.msg="invalid literal/length code",r.mode=Xn;break}r.extra=E&15,r.mode=dI;case dI:if(r.extra){for(I=r.extra;f<I;){if(o===0)break e;o--,c+=n[a++]<<f,f+=8}r.length+=c&(1<<r.extra)-1,c>>>=r.extra,f-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=gI;case gI:for(;w=r.distcode[c&(1<<r.distbits)-1],b=w>>>24,E=w>>>16&255,S=w&65535,!(b<=f);){if(o===0)break e;o--,c+=n[a++]<<f,f+=8}if((E&240)===0){for(T=b,D=E,k=S;w=r.distcode[k+((c&(1<<T+D)-1)>>T)],b=w>>>24,E=w>>>16&255,S=w&65535,!(T+b<=f);){if(o===0)break e;o--,c+=n[a++]<<f,f+=8}c>>>=T,f-=T,r.back+=T}if(c>>>=b,f-=b,r.back+=b,E&64){e.msg="invalid distance code",r.mode=Xn;break}r.offset=S,r.extra=E&15,r.mode=pI;case pI:if(r.extra){for(I=r.extra;f<I;){if(o===0)break e;o--,c+=n[a++]<<f,f+=8}r.offset+=c&(1<<r.extra)-1,c>>>=r.extra,f-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=Xn;break}r.mode=vI;case vI:if(l===0)break e;if(g=p-l,r.offset>g){if(g=r.offset-g,g>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=Xn;break}g>r.wnext?(g-=r.wnext,y=r.wsize-g):y=r.wnext-g,g>r.length&&(g=r.length),m=r.window}else m=i,y=s-r.offset,g=r.length;g>l&&(g=l),l-=g,r.length-=g;do i[s++]=m[y++];while(--g);r.length===0&&(r.mode=ly);break;case mI:if(l===0)break e;i[s++]=r.length,l--,r.mode=ly;break;case bC:if(r.wrap){for(;f<32;){if(o===0)break e;o--,c|=n[a++]<<f,f+=8}if(p-=l,e.total_out+=p,r.total+=p,r.wrap&4&&p&&(e.adler=r.check=r.flags?Nl(r.check,i,p,s-p):A4(r.check,i,p,s-p)),p=l,r.wrap&4&&(r.flags?c:xI(c))!==r.check){e.msg="incorrect data check",r.mode=Xn;break}c=0,f=0}r.mode=yI;case yI:if(r.wrap&&r.flags){for(;f<32;){if(o===0)break e;o--,c+=n[a++]<<f,f+=8}if(r.wrap&4&&c!==(r.total&4294967295)){e.msg="incorrect length check",r.mode=Xn;break}c=0,f=0}r.mode=wI;case wI:R=Cye;break e;case Xn:R=EK;break e;case SK:return _K;case FK:default:return mA}return e.next_out=s,e.avail_out=l,e.next_in=a,e.avail_in=o,r.hold=c,r.bits=f,(r.wsize||p!==e.avail_out&&r.mode<Xn&&(r.mode<bC||t!==J8))&&LK(e,e.output,e.next_out,p-e.avail_out),h-=e.avail_in,p-=e.avail_out,e.total_in+=h,e.total_out+=p,r.total+=p,r.wrap&4&&p&&(e.adler=r.check=r.flags?Nl(r.check,i,p,e.next_out-p):A4(r.check,i,p,e.next_out-p)),e.data_type=r.bits+(r.last?64:0)+(r.mode===_c?128:0)+(r.mode===Ay||r.mode===xC?256:0),(h===0&&p===0||t===J8)&&R===Kh&&(R=_ye),R},Iye=e=>{if(Zh(e))return mA;let t=e.state;return t.window&&(t.window=null),e.state=null,Kh},Mye=(e,t)=>{if(Zh(e))return mA;const r=e.state;return(r.wrap&2)===0?mA:(r.head=t,t.done=!1,Kh)},Pye=(e,t)=>{const r=t.length;let n,i,a;return Zh(e)||(n=e.state,n.wrap!==0&&n.mode!==sw)?mA:n.mode===sw&&(i=1,i=A4(i,t,r,0),i!==n.check)?EK:(a=LK(e,t,r,r),a?(n.mode=SK,_K):(n.havedict=1,Kh))};var kye=OK,Qye=UK,Rye=TK,jye=Nye,Hye=NK,Kye=Dye,zye=Iye,Vye=Mye,Gye=Pye,qye="pako inflate (from Nodeca project)",Oc={inflateReset:kye,inflateReset2:Qye,inflateResetKeep:Rye,inflateInit:jye,inflateInit2:Hye,inflate:Kye,inflateEnd:zye,inflateGetHeader:Vye,inflateSetDictionary:Gye,inflateInfo:qye};function Wye(){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}var Yye=Wye;const DK=Object.prototype.toString,{Z_NO_FLUSH:$ye,Z_FINISH:Xye,Z_OK:S1,Z_STREAM_END:EC,Z_NEED_DICT:_C,Z_STREAM_ERROR:Jye,Z_DATA_ERROR:BI,Z_MEM_ERROR:Zye}=wK;function vv(e){this.options=xK.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15)===0&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new dye,this.strm.avail_out=0;let r=Oc.inflateInit2(this.strm,t.windowBits);if(r!==S1)throw new Error(l4[r]);if(this.header=new Yye,Oc.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=c4.string2buf(t.dictionary):DK.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=Oc.inflateSetDictionary(this.strm,t.dictionary),r!==S1)))throw new Error(l4[r])}vv.prototype.push=function(e,t){const r=this.strm,n=this.options.chunkSize,i=this.options.dictionary;let a,s,o;if(this.ended)return!1;for(t===~~t?s=t:s=t===!0?Xye:$ye,DK.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;;){for(r.avail_out===0&&(r.output=new Uint8Array(n),r.next_out=0,r.avail_out=n),a=Oc.inflate(r,s),a===_C&&i&&(a=Oc.inflateSetDictionary(r,i),a===S1?a=Oc.inflate(r,s):a===BI&&(a=_C));r.avail_in>0&&a===EC&&r.state.wrap>0&&e[r.next_in]!==0;)Oc.inflateReset(r),a=Oc.inflate(r,s);switch(a){case Jye:case BI:case _C:case Zye:return this.onEnd(a),this.ended=!0,!1}if(o=r.avail_out,r.next_out&&(r.avail_out===0||a===EC))if(this.options.to==="string"){let l=c4.utf8border(r.output,r.next_out),c=r.next_out-l,f=c4.buf2string(r.output,l);r.next_out=c,r.avail_out=n-c,c&&r.output.set(r.output.subarray(l,l+c),0),this.onData(f)}else this.onData(r.output.length===r.next_out?r.output:r.output.subarray(0,r.next_out));if(!(a===S1&&o===0)){if(a===EC)return a=Oc.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,!0;if(r.avail_in===0)break}}return!0};vv.prototype.onData=function(e){this.chunks.push(e)};vv.prototype.onEnd=function(e){e===S1&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=xK.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function e2e(e,t){const r=new vv(t);if(r.push(e),r.err)throw r.msg||l4[r.err];return r.result}var t2e=vv,r2e=e2e,n2e={Inflate:t2e,inflate:r2e};const{Inflate:i2e,inflate:a2e}=n2e;var CI=i2e,s2e=a2e;const IK=[];for(let e=0;e<256;e++){let t=e;for(let r=0;r<8;r++)t&1?t=3988292384^t>>>1:t=t>>>1;IK[e]=t}const EI=4294967295;function o2e(e,t,r){let n=e;for(let i=0;i<r;i++)n=IK[(n^t[i])&255]^n>>>8;return n}function A2e(e,t){return(o2e(EI,e,t)^EI)>>>0}function _I(e,t,r){const n=e.readUint32(),i=A2e(new Uint8Array(e.buffer,e.byteOffset+e.offset-t-4,t),t);if(i!==n)throw new Error(`CRC mismatch for chunk ${r}. Expected ${n}, found ${i}`)}function MK(e,t,r){for(let n=0;n<r;n++)t[n]=e[n]}function PK(e,t,r,n){let i=0;for(;i<n;i++)t[i]=e[i];for(;i<r;i++)t[i]=e[i]+t[i-n]&255}function kK(e,t,r,n){let i=0;if(r.length===0)for(;i<n;i++)t[i]=e[i];else for(;i<n;i++)t[i]=e[i]+r[i]&255}function QK(e,t,r,n,i){let a=0;if(r.length===0){for(;a<i;a++)t[a]=e[a];for(;a<n;a++)t[a]=e[a]+(t[a-i]>>1)&255}else{for(;a<i;a++)t[a]=e[a]+(r[a]>>1)&255;for(;a<n;a++)t[a]=e[a]+(t[a-i]+r[a]>>1)&255}}function RK(e,t,r,n,i){let a=0;if(r.length===0){for(;a<i;a++)t[a]=e[a];for(;a<n;a++)t[a]=e[a]+t[a-i]&255}else{for(;a<i;a++)t[a]=e[a]+r[a]&255;for(;a<n;a++)t[a]=e[a]+l2e(t[a-i],r[a],r[a-i])&255}}function l2e(e,t,r){const n=e+t-r,i=Math.abs(n-e),a=Math.abs(n-t),s=Math.abs(n-r);return i<=a&&i<=s?e:a<=s?t:r}function c2e(e,t,r,n,i,a){switch(e){case 0:MK(t,r,i);break;case 1:PK(t,r,i,a);break;case 2:kK(t,r,n,i);break;case 3:QK(t,r,n,i,a);break;case 4:RK(t,r,n,i,a);break;default:throw new Error(`Unsupported filter: ${e}`)}}const u2e=new Uint16Array([255]),f2e=new Uint8Array(u2e.buffer),h2e=f2e[0]===255;function d2e(e){const{data:t,width:r,height:n,channels:i,depth:a}=e,s=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],o=Math.ceil(a/8)*i,l=new Uint8Array(n*r*o);let c=0;for(let f=0;f<7;f++){const h=s[f],p=Math.ceil((r-h.x)/h.xStep),g=Math.ceil((n-h.y)/h.yStep);if(p<=0||g<=0)continue;const y=p*o,m=new Uint8Array(y);for(let w=0;w<g;w++){const b=t[c++],E=t.subarray(c,c+y);c+=y;const S=new Uint8Array(y);c2e(b,E,S,m,y,o),m.set(S);for(let T=0;T<p;T++){const D=h.x+T*h.xStep,k=h.y+w*h.yStep;if(!(D>=r||k>=n))for(let P=0;P<o;P++)l[(k*r+D)*o+P]=S[T*o+P]}}}if(a===16){const f=new Uint16Array(l.buffer);if(h2e)for(let h=0;h<f.length;h++)f[h]=g2e(f[h]);return f}else return l}function g2e(e){return(e&255)<<8|e>>8&255}const p2e=new Uint16Array([255]),v2e=new Uint8Array(p2e.buffer),m2e=v2e[0]===255,y2e=new Uint8Array(0);function SI(e){const{data:t,width:r,height:n,channels:i,depth:a}=e,s=Math.ceil(a/8)*i,o=Math.ceil(a/8*i*r),l=new Uint8Array(n*o);let c=y2e,f=0,h,p;for(let g=0;g<n;g++){switch(h=t.subarray(f+1,f+1+o),p=l.subarray(g*o,(g+1)*o),t[f]){case 0:MK(h,p,o);break;case 1:PK(h,p,o,s);break;case 2:kK(h,p,c,o);break;case 3:QK(h,p,c,o,s);break;case 4:RK(h,p,c,o,s);break;default:throw new Error(`Unsupported filter: ${t[f]}`)}c=p,f+=o+1}if(a===16){const g=new Uint16Array(l.buffer);if(m2e)for(let y=0;y<g.length;y++)g[y]=w2e(g[y]);return g}else return l}function w2e(e){return(e&255)<<8|e>>8&255}const $y=Uint8Array.of(137,80,78,71,13,10,26,10);function FI(e){if(!x2e(e.readBytes($y.length)))throw new Error("wrong PNG signature")}function x2e(e){if(e.length<$y.length)return!1;for(let t=0;t<$y.length;t++)if(e[t]!==$y[t])return!1;return!0}const b2e="tEXt",B2e=0,jK=new TextDecoder("latin1");function C2e(e){if(_2e(e),e.length===0||e.length>79)throw new Error("keyword length must be between 1 and 79")}const E2e=/^[\u0000-\u00FF]*$/;function _2e(e){if(!E2e.test(e))throw new Error("invalid latin1 text")}function S2e(e,t,r){const n=HK(t);e[n]=F2e(t,r-n.length-1)}function HK(e){for(e.mark();e.readByte()!==B2e;);const t=e.offset;e.reset();const r=jK.decode(e.readBytes(t-e.offset-1));return e.skip(1),C2e(r),r}function F2e(e,t){return jK.decode(e.readBytes(t))}const bo={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},SC={UNKNOWN:-1,DEFLATE:0},TI={UNKNOWN:-1,ADAPTIVE:0},FC={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},cy={NONE:0,BACKGROUND:1,PREVIOUS:2},TC={SOURCE:0,OVER:1};class T2e extends aF{_checkCrc;_inflator;_png;_apng;_end;_hasPalette;_palette;_hasTransparency;_transparency;_compressionMethod;_filterMethod;_interlaceMethod;_colorType;_isAnimated;_numberOfFrames;_numberOfPlays;_frames;_writingDataChunks;constructor(t,r={}){super(t);const{checkCrc:n=!1}=r;this._checkCrc=n,this._inflator=new CI,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array(0),depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=new Uint16Array(0),this._compressionMethod=SC.UNKNOWN,this._filterMethod=TI.UNKNOWN,this._interlaceMethod=FC.UNKNOWN,this._colorType=bo.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(FI(this);!this._end;){const t=this.readUint32(),r=this.readChars(4);this.decodeChunk(t,r)}return this.decodeImage(),this._png}decodeApng(){for(FI(this);!this._end;){const t=this.readUint32(),r=this.readChars(4);this.decodeApngChunk(t,r)}return this.decodeApngImage(),this._apng}decodeChunk(t,r){const n=this.offset;switch(r){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(t);break;case"IDAT":this.decodeIDAT(t);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(t);break;case"iCCP":this.decodeiCCP(t);break;case b2e:S2e(this._png.text,this,t);break;case"pHYs":this.decodepHYs();break;default:this.skip(t);break}if(this.offset-n!==t)throw new Error(`Length mismatch while decoding chunk ${r}`);this._checkCrc?_I(this,t+4,r):this.skip(4)}decodeApngChunk(t,r){const n=this.offset;switch(r!=="fdAT"&&r!=="IDAT"&&this._writingDataChunks&&this.pushDataToFrame(),r){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(t);break;default:this.decodeChunk(t,r),this.offset=n+t;break}if(this.offset-n!==t)throw new Error(`Length mismatch while decoding chunk ${r}`);this._checkCrc?_I(this,t+4,r):this.skip(4)}decodeIHDR(){const t=this._png;t.width=this.readUint32(),t.height=this.readUint32(),t.depth=O2e(this.readUint8());const r=this.readUint8();this._colorType=r;let n;switch(r){case bo.GREYSCALE:n=1;break;case bo.TRUECOLOUR:n=3;break;case bo.INDEXED_COLOUR:n=1;break;case bo.GREYSCALE_ALPHA:n=2;break;case bo.TRUECOLOUR_ALPHA:n=4;break;case bo.UNKNOWN:default:throw new Error(`Unknown color type: ${r}`)}if(this._png.channels=n,this._compressionMethod=this.readUint8(),this._compressionMethod!==SC.DEFLATE)throw new Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){const t={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array(0)};this._frames.push(t)}decodePLTE(t){if(t%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${t}`);const r=t/3;this._hasPalette=!0;const n=[];this._palette=n;for(let i=0;i<r;i++)n.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(t){this._writingDataChunks=!0;const r=t,n=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,n,r)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(t)}decodeFDAT(t){this._writingDataChunks=!0;let r=t,n=this.offset+this.byteOffset;if(n+=4,r-=4,this._inflator.push(new Uint8Array(this.buffer,n,r)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(t)}decodetRNS(t){switch(this._colorType){case bo.GREYSCALE:case bo.TRUECOLOUR:{if(t%2!==0)throw new RangeError(`tRNS chunk length must be a multiple of 2. Got ${t}`);if(t/2>this._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${t/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(t/2);for(let r=0;r<t/2;r++)this._transparency[r]=this.readUint16();break}case bo.INDEXED_COLOUR:{if(t>this._palette.length)throw new Error(`tRNS chunk contains more alpha values than there are palette colors (${t} vs ${this._palette.length})`);let r=0;for(;r<t;r++){const n=this.readByte();this._palette[r].push(n)}for(;r<this._palette.length;r++)this._palette[r].push(255);break}case bo.UNKNOWN:case bo.GREYSCALE_ALPHA:case bo.TRUECOLOUR_ALPHA:default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(t){const r=HK(this),n=this.readUint8();if(n!==SC.DEFLATE)throw new Error(`Unsupported iCCP compression method: ${n}`);const i=this.readBytes(t-r.length-2);this._png.iccEmbeddedProfile={name:r,profile:s2e(i)}}decodepHYs(){const t=this.readUint32(),r=this.readUint32(),n=this.readByte();this._png.resolution={x:t,y:r,unit:n}}decodeApngImage(){this._apng.width=this._png.width,this._apng.height=this._png.height,this._apng.channels=this._png.channels,this._apng.depth=this._png.depth,this._apng.numberOfFrames=this._numberOfFrames,this._apng.numberOfPlays=this._numberOfPlays,this._apng.text=this._png.text,this._apng.resolution=this._png.resolution;for(let t=0;t<this._numberOfFrames;t++){const r={sequenceNumber:this._frames[t].sequenceNumber,delayNumber:this._frames[t].delayNumber,delayDenominator:this._frames[t].delayDenominator,data:this._apng.depth===8?new Uint8Array(this._apng.width*this._apng.height*this._apng.channels):new Uint16Array(this._apng.width*this._apng.height*this._apng.channels)},n=this._frames.at(t);if(n){if(n.data=SI({data:n.data,width:n.width,height:n.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),t===0||n.xOffset===0&&n.yOffset===0&&n.width===this._png.width&&n.height===this._png.height)r.data=n.data;else{const i=this._apng.frames.at(t-1);this.disposeFrame(n,i,r),this.addFrameDataToCanvas(r,n)}this._apng.frames.push(r)}}return this._apng}disposeFrame(t,r,n){switch(t.disposeOp){case cy.NONE:break;case cy.BACKGROUND:for(let i=0;i<this._png.height;i++)for(let a=0;a<this._png.width;a++){const s=(i*t.width+a)*this._png.channels;for(let o=0;o<this._png.channels;o++)n.data[s+o]=0}break;case cy.PREVIOUS:n.data.set(r.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(t,r){const n=1<<this._png.depth,i=(a,s)=>{const o=((a+r.yOffset)*this._png.width+r.xOffset+s)*this._png.channels,l=(a*r.width+s)*this._png.channels;return{index:o,frameIndex:l}};switch(r.blendOp){case TC.SOURCE:for(let a=0;a<r.height;a++)for(let s=0;s<r.width;s++){const{index:o,frameIndex:l}=i(a,s);for(let c=0;c<this._png.channels;c++)t.data[o+c]=r.data[l+c]}break;case TC.OVER:for(let a=0;a<r.height;a++)for(let s=0;s<r.width;s++){const{index:o,frameIndex:l}=i(a,s);for(let c=0;c<this._png.channels;c++){const f=r.data[l+this._png.channels-1]/n,h=c%(this._png.channels-1)===0?1:r.data[l+c],p=Math.floor(f*h+(1-f)*t.data[o+c]);t.data[o+c]+=p}}break;default:throw new Error("Unknown blendOp")}}decodeImage(){if(this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);const t=this._isAnimated?(this._frames?.at(0)).data:this._inflator.result;if(this._filterMethod!==TI.ADAPTIVE)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===FC.NO_INTERLACE)this._png.data=SI({data:t,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else if(this._interlaceMethod===FC.ADAM7)this._png.data=d2e({data:t,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else throw new Error(`Interlace method ${this._interlaceMethod} not supported`);this._hasPalette&&(this._png.palette=this._palette),this._hasTransparency&&(this._png.transparency=this._transparency)}pushDataToFrame(){const t=this._inflator.result,r=this._frames.at(-1);r?r.data=t:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:cy.NONE,blendOp:TC.SOURCE,data:t}),this._inflator=new CI,this._writingDataChunks=!1}}function O2e(e){if(e!==1&&e!==2&&e!==4&&e!==8&&e!==16)throw new Error(`invalid bit depth: ${e}`);return e}var OI;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.METRE=1]="METRE"})(OI||(OI={}));function U2e(e,t){return new T2e(e,t).decode()}var lr=(function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this})();function OC(){lr.console&&typeof lr.console.log=="function"&&lr.console.log.apply(lr.console,arguments)}var Fn={log:OC,warn:function(e){lr.console&&(typeof lr.console.warn=="function"?lr.console.warn.apply(lr.console,arguments):OC.call(null,arguments))},error:function(e){lr.console&&(typeof lr.console.error=="function"?lr.console.error.apply(lr.console,arguments):OC(e))}};function UC(e,t,r){var n=new XMLHttpRequest;n.open("GET",e),n.responseType="blob",n.onload=function(){fh(n.response,t,r)},n.onerror=function(){Fn.error("could not download file")},n.send()}function UI(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function uy(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var fh=lr.saveAs||((typeof window>"u"?"undefined":un(window))!=="object"||window!==lr?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(e,t,r){var n=lr.URL||lr.webkitURL,i=document.createElement("a");t=t||e.name||"download",i.download=t,i.rel="noopener",typeof e=="string"?(i.href=e,i.origin!==location.origin?UI(i.href)?UC(e,t,r):uy(i,i.target="_blank"):uy(i)):(i.href=n.createObjectURL(e),setTimeout(function(){n.revokeObjectURL(i.href)},4e4),setTimeout(function(){uy(i)},0))}:"msSaveOrOpenBlob"in navigator?function(e,t,r){if(t=t||e.name||"download",typeof e=="string")if(UI(e))UC(e,t,r);else{var n=document.createElement("a");n.href=e,n.target="_blank",setTimeout(function(){uy(n)})}else navigator.msSaveOrOpenBlob((function(i,a){return a===void 0?a={autoBom:!1}:un(a)!=="object"&&(Fn.warn("Deprecated: Expected third argument to be a object"),a={autoBom:!a}),a.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(i.type)?new Blob(["\uFEFF",i],{type:i.type}):i})(e,r),t)}:function(e,t,r,n){if((n=n||open("","_blank"))&&(n.document.title=n.document.body.innerText="downloading..."),typeof e=="string")return UC(e,t,r);var i=e.type==="application/octet-stream",a=/constructor/i.test(lr.HTMLElement)||lr.safari,s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||i&&a)&&(typeof FileReader>"u"?"undefined":un(FileReader))==="object"){var o=new FileReader;o.onloadend=function(){var f=o.result;f=s?f:f.replace(/^data:[^;]*;/,"data:attachment/file;"),n?n.location.href=f:location=f,n=null},o.readAsDataURL(e)}else{var l=lr.URL||lr.webkitURL,c=l.createObjectURL(e);n?n.location=c:location.href=c,n=null,setTimeout(function(){l.revokeObjectURL(c)},4e4)}});/**
 * A class to parse color values
 * @author Stoyan Stefanov <sstoo@gmail.com>
 * {@link   http://www.phpied.com/rgb-color-parser-in-javascript/}
 * @license Use it if you like it
 */function KK(e){var t;e=e||"",this.ok=!1,e.charAt(0)=="#"&&(e=e.substr(1,6)),e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[e=(e=e.replace(/ /g,"")).toLowerCase()]||e;for(var r=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(o){return[parseInt(o[1]),parseInt(o[2]),parseInt(o[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(o){return[parseInt(o[1],16),parseInt(o[2],16),parseInt(o[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(o){return[parseInt(o[1]+o[1],16),parseInt(o[2]+o[2],16),parseInt(o[3]+o[3],16)]}}],n=0;n<r.length;n++){var i=r[n].re,a=r[n].process,s=i.exec(e);s&&(t=a(s),this.r=t[0],this.g=t[1],this.b=t[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var o=this.r.toString(16),l=this.g.toString(16),c=this.b.toString(16);return o.length==1&&(o="0"+o),l.length==1&&(l="0"+l),c.length==1&&(c="0"+c),"#"+o+l+c}}var Xy=lr.atob.bind(lr),NI=lr.btoa.bind(lr);/**
 * @license
 * Joseph Myers does not specify a particular license for his work.
 *
 * Author: Joseph Myers
 * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
 *
 * Modified by: Owen Leong
 */function NC(e,t){var r=e[0],n=e[1],i=e[2],a=e[3];r=ns(r,n,i,a,t[0],7,-680876936),a=ns(a,r,n,i,t[1],12,-389564586),i=ns(i,a,r,n,t[2],17,606105819),n=ns(n,i,a,r,t[3],22,-1044525330),r=ns(r,n,i,a,t[4],7,-176418897),a=ns(a,r,n,i,t[5],12,1200080426),i=ns(i,a,r,n,t[6],17,-1473231341),n=ns(n,i,a,r,t[7],22,-45705983),r=ns(r,n,i,a,t[8],7,1770035416),a=ns(a,r,n,i,t[9],12,-1958414417),i=ns(i,a,r,n,t[10],17,-42063),n=ns(n,i,a,r,t[11],22,-1990404162),r=ns(r,n,i,a,t[12],7,1804603682),a=ns(a,r,n,i,t[13],12,-40341101),i=ns(i,a,r,n,t[14],17,-1502002290),r=is(r,n=ns(n,i,a,r,t[15],22,1236535329),i,a,t[1],5,-165796510),a=is(a,r,n,i,t[6],9,-1069501632),i=is(i,a,r,n,t[11],14,643717713),n=is(n,i,a,r,t[0],20,-373897302),r=is(r,n,i,a,t[5],5,-701558691),a=is(a,r,n,i,t[10],9,38016083),i=is(i,a,r,n,t[15],14,-660478335),n=is(n,i,a,r,t[4],20,-405537848),r=is(r,n,i,a,t[9],5,568446438),a=is(a,r,n,i,t[14],9,-1019803690),i=is(i,a,r,n,t[3],14,-187363961),n=is(n,i,a,r,t[8],20,1163531501),r=is(r,n,i,a,t[13],5,-1444681467),a=is(a,r,n,i,t[2],9,-51403784),i=is(i,a,r,n,t[7],14,1735328473),r=as(r,n=is(n,i,a,r,t[12],20,-1926607734),i,a,t[5],4,-378558),a=as(a,r,n,i,t[8],11,-2022574463),i=as(i,a,r,n,t[11],16,1839030562),n=as(n,i,a,r,t[14],23,-35309556),r=as(r,n,i,a,t[1],4,-1530992060),a=as(a,r,n,i,t[4],11,1272893353),i=as(i,a,r,n,t[7],16,-155497632),n=as(n,i,a,r,t[10],23,-1094730640),r=as(r,n,i,a,t[13],4,681279174),a=as(a,r,n,i,t[0],11,-358537222),i=as(i,a,r,n,t[3],16,-722521979),n=as(n,i,a,r,t[6],23,76029189),r=as(r,n,i,a,t[9],4,-640364487),a=as(a,r,n,i,t[12],11,-421815835),i=as(i,a,r,n,t[15],16,530742520),r=ss(r,n=as(n,i,a,r,t[2],23,-995338651),i,a,t[0],6,-198630844),a=ss(a,r,n,i,t[7],10,1126891415),i=ss(i,a,r,n,t[14],15,-1416354905),n=ss(n,i,a,r,t[5],21,-57434055),r=ss(r,n,i,a,t[12],6,1700485571),a=ss(a,r,n,i,t[3],10,-1894986606),i=ss(i,a,r,n,t[10],15,-1051523),n=ss(n,i,a,r,t[1],21,-2054922799),r=ss(r,n,i,a,t[8],6,1873313359),a=ss(a,r,n,i,t[15],10,-30611744),i=ss(i,a,r,n,t[6],15,-1560198380),n=ss(n,i,a,r,t[13],21,1309151649),r=ss(r,n,i,a,t[4],6,-145523070),a=ss(a,r,n,i,t[11],10,-1120210379),i=ss(i,a,r,n,t[2],15,718787259),n=ss(n,i,a,r,t[9],21,-343485551),e[0]=tf(r,e[0]),e[1]=tf(n,e[1]),e[2]=tf(i,e[2]),e[3]=tf(a,e[3])}function Px(e,t,r,n,i,a){return t=tf(tf(t,e),tf(n,a)),tf(t<<i|t>>>32-i,r)}function ns(e,t,r,n,i,a,s){return Px(t&r|~t&n,e,t,i,a,s)}function is(e,t,r,n,i,a,s){return Px(t&n|r&~n,e,t,i,a,s)}function as(e,t,r,n,i,a,s){return Px(t^r^n,e,t,i,a,s)}function ss(e,t,r,n,i,a,s){return Px(r^(t|~n),e,t,i,a,s)}function zK(e){var t,r=e.length,n=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)NC(n,N2e(e.substring(t-64,t)));e=e.substring(t-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<e.length;t++)i[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(i[t>>2]|=128<<(t%4<<3),t>55)for(NC(n,i),t=0;t<16;t++)i[t]=0;return i[14]=8*r,NC(n,i),n}function N2e(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return r}var LI="0123456789abcdef".split("");function L2e(e){for(var t="",r=0;r<4;r++)t+=LI[e>>8*r+4&15]+LI[e>>8*r&15];return t}function D2e(e){return String.fromCharCode(255&e,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function u4(e){return zK(e).map(D2e).join("")}var I2e=(function(e){for(var t=0;t<e.length;t++)e[t]=L2e(e[t]);return e.join("")})(zK("hello"))!="5d41402abc4b2a76b9719d911017c592";function tf(e,t){if(I2e){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}return e+t&4294967295}/**
 * @license
 * FPDF is released under a permissive license: there is no usage restriction.
 * You may embed it freely in your application (commercial or not), with or
 * without modifications.
 *
 * Reference: http://www.fpdf.org/en/script/script37.php
 */function f4(e,t){var r,n,i,a;if(e!==r){for(var s=(i=e,a=1+(256/e.length|0),new Array(a+1).join(i)),o=[],l=0;l<256;l++)o[l]=l;var c=0;for(l=0;l<256;l++){var f=o[l];c=(c+f+s.charCodeAt(l))%256,o[l]=o[c],o[c]=f}r=e,n=o}else o=n;var h=t.length,p=0,g=0,y="";for(l=0;l<h;l++)g=(g+(f=o[p=(p+1)%256]))%256,o[p]=o[g],o[g]=f,s=o[(o[p]+o[g])%256],y+=String.fromCharCode(t.charCodeAt(l)^s);return y}/**
 * @license
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 * Author: Owen Leong (@owenl131)
 * Date: 15 Oct 2020
 * References:
 * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
 * https://github.com/foliojs/pdfkit/blob/master/lib/security.js
 * http://www.fpdf.org/en/script/script37.php
 */var DI={print:4,modify:8,copy:16,"annot-forms":32};function m0(e,t,r,n){this.v=1,this.r=2;var i=192;e.forEach(function(o){if(DI.perm!==void 0)throw new Error("Invalid permission: "+o);i+=DI[o]}),this.padding="(¿N^NuAd\0NVÿú\b..\0¶Ðh>/\f©þdSiz";var a=(t+this.padding).substr(0,32),s=(r+this.padding).substr(0,32);this.O=this.processOwnerPassword(a,s),this.P=-(1+(255^i)),this.encryptionKey=u4(a+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(n)).substr(0,5),this.U=f4(this.encryptionKey,this.padding)}function y0(e){if(/[^\u0000-\u00ff]/.test(e))throw new Error("Invalid PDF Name Object: "+e+", Only accept ASCII characters.");for(var t="",r=e.length,n=0;n<r;n++){var i=e.charCodeAt(n);t+=i<33||i===35||i===37||i===40||i===41||i===47||i===60||i===62||i===91||i===93||i===123||i===125||i>126?"#"+("0"+i.toString(16)).slice(-2):e[n]}return t}function II(e){if(un(e)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};this.subscribe=function(r,n,i){if(i=i||!1,typeof r!="string"||typeof n!="function"||typeof i!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");t.hasOwnProperty(r)||(t[r]={});var a=Math.random().toString(35);return t[r][a]=[n,!!i],a},this.unsubscribe=function(r){for(var n in t)if(t[n][r])return delete t[n][r],Object.keys(t[n]).length===0&&delete t[n],!0;return!1},this.publish=function(r){if(t.hasOwnProperty(r)){var n=Array.prototype.slice.call(arguments,1),i=[];for(var a in t[r]){var s=t[r][a];try{s[0].apply(e,n)}catch(o){lr.console&&Fn.error("jsPDF PubSub Error",o.message,o)}s[1]&&i.push(a)}i.length&&i.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function ow(e){if(!(this instanceof ow))return new ow(e);var t="opacity,stroke-opacity".split(",");for(var r in e)e.hasOwnProperty(r)&&t.indexOf(r)>=0&&(this[r]=e[r]);this.id="",this.objectNumber=-1}function VK(e,t){this.gState=e,this.matrix=t,this.id="",this.objectNumber=-1}function ph(e,t,r,n,i){if(!(this instanceof ph))return new ph(e,t,r,n,i);this.type=e==="axial"?2:3,this.coords=t,this.colors=r,VK.call(this,n,i)}function _0(e,t,r,n,i){if(!(this instanceof _0))return new _0(e,t,r,n,i);this.boundingBox=e,this.xStep=t,this.yStep=r,this.stream="",this.cloneIndex=0,VK.call(this,n,i)}function jt(e){var t,r=typeof arguments[0]=="string"?arguments[0]:"p",n=arguments[1],i=arguments[2],a=arguments[3],s=[],o=1,l=16,c="S",f=null;un(e=e||{})==="object"&&(r=e.orientation,n=e.unit||n,i=e.format||i,a=e.compress||e.compressPdf||a,(f=e.encryption||null)!==null&&(f.userPassword=f.userPassword||"",f.ownerPassword=f.ownerPassword||"",f.userPermissions=f.userPermissions||[]),o=typeof e.userUnit=="number"?Math.abs(e.userUnit):1,e.precision!==void 0&&(t=e.precision),e.floatPrecision!==void 0&&(l=e.floatPrecision),c=e.defaultPathOperation||"S"),s=e.filters||(a===!0?["FlateEncode"]:s),n=n||"mm",r=(""+(r||"P")).toLowerCase();var h=e.putOnlyUsedFonts||!1,p={},g={internal:{},__private__:{}};g.__private__.PubSub=II;var y="1.3",m=g.__private__.getPdfVersion=function(){return y};g.__private__.setPdfVersion=function(U){y=U};var w={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};g.__private__.getPageFormats=function(){return w};var b=g.__private__.getPageFormat=function(U){return w[U]};i=i||"a4";var E="compat",S="advanced",T=E;function D(){this.saveGraphicsState(),le(new Mt(nr,0,0,-nr,0,TA()*nr).toString()+" cm"),this.setFontSize(this.getFontSize()/nr),c="n",T=S}function k(){this.restoreGraphicsState(),c="S",T=E}var P=g.__private__.combineFontStyleAndFontWeight=function(U,Y){if(U=="bold"&&Y=="normal"||U=="bold"&&Y==400||U=="normal"&&Y=="italic"||U=="bold"&&Y=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return Y&&(U=Y==400||Y==="normal"?U==="italic"?"italic":"normal":Y!=700&&Y!=="bold"||U!=="normal"?(Y==700?"bold":Y)+""+U:"bold"),U};g.advancedAPI=function(U){var Y=T===E;return Y&&D.call(this),typeof U!="function"||(U(this),Y&&k.call(this)),this},g.compatAPI=function(U){var Y=T===S;return Y&&k.call(this),typeof U!="function"||(U(this),Y&&D.call(this)),this},g.isAdvancedAPI=function(){return T===S};var R,O=function(U){if(T!==S)throw new Error(U+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},V=g.roundToPrecision=g.__private__.roundToPrecision=function(U,Y){var xe=t||Y;if(isNaN(U)||isNaN(xe))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return U.toFixed(xe).replace(/0+$/,"")};R=g.hpf=g.__private__.hpf=typeof l=="number"?function(U){if(isNaN(U))throw new Error("Invalid argument passed to jsPDF.hpf");return V(U,l)}:l==="smart"?function(U){if(isNaN(U))throw new Error("Invalid argument passed to jsPDF.hpf");return V(U,U>-1&&U<1?16:5)}:function(U){if(isNaN(U))throw new Error("Invalid argument passed to jsPDF.hpf");return V(U,16)};var I=g.f2=g.__private__.f2=function(U){if(isNaN(U))throw new Error("Invalid argument passed to jsPDF.f2");return V(U,2)},Q=g.__private__.f3=function(U){if(isNaN(U))throw new Error("Invalid argument passed to jsPDF.f3");return V(U,3)},W=g.scale=g.__private__.scale=function(U){if(isNaN(U))throw new Error("Invalid argument passed to jsPDF.scale");return T===E?U*nr:T===S?U:void 0},J=function(U){return W((function(Y){return T===E?TA()-Y:T===S?Y:void 0})(U))};g.__private__.setPrecision=g.setPrecision=function(U){typeof parseInt(U,10)=="number"&&(t=parseInt(U,10))};var fe,G="00000000000000000000000000000000",se=g.__private__.getFileId=function(){return G},ge=g.__private__.setFileId=function(U){return G=U!==void 0&&/^[a-fA-F0-9]{32}$/.test(U)?U.toUpperCase():G.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),f!==null&&(_i=new m0(f.userPermissions,f.userPassword,f.ownerPassword,G)),G};g.setFileId=function(U){return ge(U),this},g.getFileId=function(){return se()};var ye=g.__private__.convertDateToPDFDate=function(U){var Y=U.getTimezoneOffset(),xe=Y<0?"+":"-",Ee=Math.floor(Math.abs(Y/60)),Le=Math.abs(Y%60),Ze=[xe,K(Ee),"'",K(Le),"'"].join("");return["D:",U.getFullYear(),K(U.getMonth()+1),K(U.getDate()),K(U.getHours()),K(U.getMinutes()),K(U.getSeconds()),Ze].join("")},_e=g.__private__.convertPDFDateToDate=function(U){var Y=parseInt(U.substr(2,4),10),xe=parseInt(U.substr(6,2),10)-1,Ee=parseInt(U.substr(8,2),10),Le=parseInt(U.substr(10,2),10),Ze=parseInt(U.substr(12,2),10),At=parseInt(U.substr(14,2),10);return new Date(Y,xe,Ee,Le,Ze,At,0)},Z=g.__private__.setCreationDate=function(U){var Y;if(U===void 0&&(U=new Date),U instanceof Date)Y=ye(U);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(U))throw new Error("Invalid argument passed to jsPDF.setCreationDate");Y=U}return fe=Y},L=g.__private__.getCreationDate=function(U){var Y=fe;return U==="jsDate"&&(Y=_e(fe)),Y};g.setCreationDate=function(U){return Z(U),this},g.getCreationDate=function(U){return L(U)};var j,K=g.__private__.padd2=function(U){return("0"+parseInt(U)).slice(-2)},q=g.__private__.padd2Hex=function(U){return("00"+(U=U.toString())).substr(U.length)},re=0,he=[],Be=[],ae=0,be=[],ke=[],Fe=!1,st=Be;g.__private__.setCustomOutputDestination=function(U){Fe=!0,st=U};var Ge=function(U){Fe||(st=U)};g.__private__.resetCustomOutputDestination=function(){Fe=!1,st=Be};var le=g.__private__.out=function(U){return U=U.toString(),ae+=U.length+1,st.push(U),st},$e=g.__private__.write=function(U){return le(arguments.length===1?U.toString():Array.prototype.join.call(arguments," "))},tt=g.__private__.getArrayBuffer=function(U){for(var Y=U.length,xe=new ArrayBuffer(Y),Ee=new Uint8Array(xe);Y--;)Ee[Y]=U.charCodeAt(Y);return xe},wt=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];g.__private__.getStandardFonts=function(){return wt};var nt=e.fontSize||16;g.__private__.setFontSize=g.setFontSize=function(U){return nt=T===S?U/nr:U,this};var Tt,yt=g.__private__.getFontSize=g.getFontSize=function(){return T===E?nt:nt*nr},Ht=e.R2L||!1;g.__private__.setR2L=g.setR2L=function(U){return Ht=U,this},g.__private__.getR2L=g.getR2L=function(){return Ht};var It,Vt=g.__private__.setZoomMode=function(U){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(U))Tt=U;else if(isNaN(U)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(U)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+U+'" is not recognized.');Tt=U}else Tt=parseInt(U,10)};g.__private__.getZoomMode=function(){return Tt};var cr,Jt=g.__private__.setPageMode=function(U){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(U)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+U+'" is not recognized.');It=U};g.__private__.getPageMode=function(){return It};var ur=g.__private__.setLayoutMode=function(U){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(U)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+U+'" is not recognized.');cr=U};g.__private__.getLayoutMode=function(){return cr},g.__private__.setDisplayMode=g.setDisplayMode=function(U,Y,xe){return Vt(U),ur(Y),Jt(xe),this};var rr={title:"",subject:"",author:"",keywords:"",creator:""};g.__private__.getDocumentProperty=function(U){if(Object.keys(rr).indexOf(U)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return rr[U]},g.__private__.getDocumentProperties=function(){return rr},g.__private__.setDocumentProperties=g.setProperties=g.setDocumentProperties=function(U){for(var Y in rr)rr.hasOwnProperty(Y)&&U[Y]&&(rr[Y]=U[Y]);return this},g.__private__.setDocumentProperty=function(U,Y){if(Object.keys(rr).indexOf(U)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return rr[U]=Y};var Et,nr,Ot,dn,or,Kt={},Xt={},vr=[],Rt={},Nr={},Gt={},$t={},Rr=null,sr=0,mt=[],Zt=new II(g),Pi=e.hotfixes||[],fr={},In={},fa=[],Mt=function U(Y,xe,Ee,Le,Ze,At){if(!(this instanceof U))return new U(Y,xe,Ee,Le,Ze,At);isNaN(Y)&&(Y=1),isNaN(xe)&&(xe=0),isNaN(Ee)&&(Ee=0),isNaN(Le)&&(Le=1),isNaN(Ze)&&(Ze=0),isNaN(At)&&(At=0),this._matrix=[Y,xe,Ee,Le,Ze,At]};Object.defineProperty(Mt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(U){this._matrix[0]=U}}),Object.defineProperty(Mt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(U){this._matrix[1]=U}}),Object.defineProperty(Mt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(U){this._matrix[2]=U}}),Object.defineProperty(Mt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(U){this._matrix[3]=U}}),Object.defineProperty(Mt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(U){this._matrix[4]=U}}),Object.defineProperty(Mt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(U){this._matrix[5]=U}}),Object.defineProperty(Mt.prototype,"a",{get:function(){return this._matrix[0]},set:function(U){this._matrix[0]=U}}),Object.defineProperty(Mt.prototype,"b",{get:function(){return this._matrix[1]},set:function(U){this._matrix[1]=U}}),Object.defineProperty(Mt.prototype,"c",{get:function(){return this._matrix[2]},set:function(U){this._matrix[2]=U}}),Object.defineProperty(Mt.prototype,"d",{get:function(){return this._matrix[3]},set:function(U){this._matrix[3]=U}}),Object.defineProperty(Mt.prototype,"e",{get:function(){return this._matrix[4]},set:function(U){this._matrix[4]=U}}),Object.defineProperty(Mt.prototype,"f",{get:function(){return this._matrix[5]},set:function(U){this._matrix[5]=U}}),Object.defineProperty(Mt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Mt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Mt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Mt.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Mt.prototype.join=function(U){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(R).join(U)},Mt.prototype.multiply=function(U){var Y=U.sx*this.sx+U.shy*this.shx,xe=U.sx*this.shy+U.shy*this.sy,Ee=U.shx*this.sx+U.sy*this.shx,Le=U.shx*this.shy+U.sy*this.sy,Ze=U.tx*this.sx+U.ty*this.shx+this.tx,At=U.tx*this.shy+U.ty*this.sy+this.ty;return new Mt(Y,xe,Ee,Le,Ze,At)},Mt.prototype.decompose=function(){var U=this.sx,Y=this.shy,xe=this.shx,Ee=this.sy,Le=this.tx,Ze=this.ty,At=Math.sqrt(U*U+Y*Y),Ut=(U/=At)*xe+(Y/=At)*Ee;xe-=U*Ut,Ee-=Y*Ut;var kt=Math.sqrt(xe*xe+Ee*Ee);return Ut/=kt,U*(Ee/=kt)<Y*(xe/=kt)&&(U=-U,Y=-Y,Ut=-Ut,At=-At),{scale:new Mt(At,0,0,kt,0,0),translate:new Mt(1,0,0,1,Le,Ze),rotate:new Mt(U,Y,-Y,U,0,0),skew:new Mt(1,0,Ut,1,0,0)}},Mt.prototype.toString=function(U){return this.join(" ")},Mt.prototype.inversed=function(){var U=this.sx,Y=this.shy,xe=this.shx,Ee=this.sy,Le=this.tx,Ze=this.ty,At=1/(U*Ee-Y*xe),Ut=Ee*At,kt=-Y*At,ar=-xe*At,hr=U*At;return new Mt(Ut,kt,ar,hr,-Ut*Le-ar*Ze,-kt*Le-hr*Ze)},Mt.prototype.applyToPoint=function(U){var Y=U.x*this.sx+U.y*this.shx+this.tx,xe=U.x*this.shy+U.y*this.sy+this.ty;return new Ds(Y,xe)},Mt.prototype.applyToRectangle=function(U){var Y=this.applyToPoint(U),xe=this.applyToPoint(new Ds(U.x+U.w,U.y+U.h));return new CA(Y.x,Y.y,xe.x-Y.x,xe.y-Y.y)},Mt.prototype.clone=function(){var U=this.sx,Y=this.shy,xe=this.shx,Ee=this.sy,Le=this.tx,Ze=this.ty;return new Mt(U,Y,xe,Ee,Le,Ze)},g.Matrix=Mt;var Ja=g.matrixMult=function(U,Y){return Y.multiply(U)},Fa=new Mt(1,0,0,1,0,0);g.unitMatrix=g.identityMatrix=Fa;var ii=function(U,Y){if(!Nr[U]){var xe=(Y instanceof ph?"Sh":"P")+(Object.keys(Rt).length+1).toString(10);Y.id=xe,Nr[U]=xe,Rt[xe]=Y,Zt.publish("addPattern",Y)}};g.ShadingPattern=ph,g.TilingPattern=_0,g.addShadingPattern=function(U,Y){return O("addShadingPattern()"),ii(U,Y),this},g.beginTilingPattern=function(U){O("beginTilingPattern()"),tc(U.boundingBox[0],U.boundingBox[1],U.boundingBox[2]-U.boundingBox[0],U.boundingBox[3]-U.boundingBox[1],U.matrix)},g.endTilingPattern=function(U,Y){O("endTilingPattern()"),Y.stream=ke[j].join(`
`),ii(U,Y),Zt.publish("endTilingPattern",Y),fa.pop().restore()};var fi,zr=g.__private__.newObject=function(){var U=gn();return ee(U,!0),U},gn=g.__private__.newObjectDeferred=function(){return re++,he[re]=function(){return ae},re},ee=function(U,Y){return Y=typeof Y=="boolean"&&Y,he[U]=ae,Y&&le(U+" 0 obj"),U},ve=g.__private__.newAdditionalObject=function(){var U={objId:gn(),content:""};return be.push(U),U},Ae=gn(),ce=gn(),de=g.__private__.decodeColorString=function(U){var Y=U.split(" ");if(Y.length!==2||Y[1]!=="g"&&Y[1]!=="G")Y.length!==5||Y[4]!=="k"&&Y[4]!=="K"||(Y=[(1-Y[0])*(1-Y[3]),(1-Y[1])*(1-Y[3]),(1-Y[2])*(1-Y[3]),"r"]);else{var xe=parseFloat(Y[0]);Y=[xe,xe,xe,"r"]}for(var Ee="#",Le=0;Le<3;Le++)Ee+=("0"+Math.floor(255*parseFloat(Y[Le])).toString(16)).slice(-2);return Ee},we=g.__private__.encodeColorString=function(U){var Y;typeof U=="string"&&(U={ch1:U});var xe=U.ch1,Ee=U.ch2,Le=U.ch3,Ze=U.ch4,At=U.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof xe=="string"&&xe.charAt(0)!=="#"){var Ut=new KK(xe);if(Ut.ok)xe=Ut.toHex();else if(!/^\d*\.?\d*$/.test(xe))throw new Error('Invalid color "'+xe+'" passed to jsPDF.encodeColorString.')}if(typeof xe=="string"&&/^#[0-9A-Fa-f]{3}$/.test(xe)&&(xe="#"+xe[1]+xe[1]+xe[2]+xe[2]+xe[3]+xe[3]),typeof xe=="string"&&/^#[0-9A-Fa-f]{6}$/.test(xe)){var kt=parseInt(xe.substr(1),16);xe=kt>>16&255,Ee=kt>>8&255,Le=255&kt}if(Ee===void 0||Ze===void 0&&xe===Ee&&Ee===Le)Y=typeof xe=="string"?xe+" "+At[0]:U.precision===2?I(xe/255)+" "+At[0]:Q(xe/255)+" "+At[0];else if(Ze===void 0||un(Ze)==="object"){if(Ze&&!isNaN(Ze.a)&&Ze.a===0)return["1.","1.","1.",At[1]].join(" ");Y=typeof xe=="string"?[xe,Ee,Le,At[1]].join(" "):U.precision===2?[I(xe/255),I(Ee/255),I(Le/255),At[1]].join(" "):[Q(xe/255),Q(Ee/255),Q(Le/255),At[1]].join(" ")}else Y=typeof xe=="string"?[xe,Ee,Le,Ze,At[2]].join(" "):U.precision===2?[I(xe),I(Ee),I(Le),I(Ze),At[2]].join(" "):[Q(xe),Q(Ee),Q(Le),Q(Ze),At[2]].join(" ");return Y},Te=g.__private__.getFilters=function(){return s},je=g.__private__.putStream=function(U){var Y=(U=U||{}).data||"",xe=U.filters||Te(),Ee=U.alreadyAppliedFilters||[],Le=U.addLength1||!1,Ze=Y.length,At=U.objectId,Ut=function(Si){return Si};if(f!==null&&At===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");f!==null&&(Ut=_i.encryptor(At,0));var kt={};xe===!0&&(xe=["FlateEncode"]);var ar=U.additionalKeyValues||[],hr=(kt=jt.API.processDataByFilters!==void 0?jt.API.processDataByFilters(Y,xe):{data:Y,reverseChain:[]}).reverseChain+(Array.isArray(Ee)?Ee.join(" "):Ee.toString());if(kt.data.length!==0&&(ar.push({key:"Length",value:kt.data.length}),Le===!0&&ar.push({key:"Length1",value:Ze})),hr.length!=0)if(hr.split("/").length-1==1)ar.push({key:"Filter",value:hr});else{ar.push({key:"Filter",value:"["+hr+"]"});for(var Lr=0;Lr<ar.length;Lr+=1)if(ar[Lr].key==="DecodeParms"){for(var Pn=[],ai=0;ai<kt.reverseChain.split("/").length-1;ai+=1)Pn.push("null");Pn.push(ar[Lr].value),ar[Lr].value="["+Pn.join(" ")+"]"}}le("<<");for(var pn=0;pn<ar.length;pn++)le("/"+ar[pn].key+" "+ar[pn].value);le(">>"),kt.data.length!==0&&(le("stream"),le(Ut(kt.data)),le("endstream"))},Ne=g.__private__.putPage=function(U){var Y=U.number,xe=U.data,Ee=U.objId,Le=U.contentsObjId;ee(Ee,!0),le("<</Type /Page"),le("/Parent "+U.rootDictionaryObjId+" 0 R"),le("/Resources "+U.resourceDictionaryObjId+" 0 R"),le("/MediaBox ["+parseFloat(R(U.mediaBox.bottomLeftX))+" "+parseFloat(R(U.mediaBox.bottomLeftY))+" "+R(U.mediaBox.topRightX)+" "+R(U.mediaBox.topRightY)+"]"),U.cropBox!==null&&le("/CropBox ["+R(U.cropBox.bottomLeftX)+" "+R(U.cropBox.bottomLeftY)+" "+R(U.cropBox.topRightX)+" "+R(U.cropBox.topRightY)+"]"),U.bleedBox!==null&&le("/BleedBox ["+R(U.bleedBox.bottomLeftX)+" "+R(U.bleedBox.bottomLeftY)+" "+R(U.bleedBox.topRightX)+" "+R(U.bleedBox.topRightY)+"]"),U.trimBox!==null&&le("/TrimBox ["+R(U.trimBox.bottomLeftX)+" "+R(U.trimBox.bottomLeftY)+" "+R(U.trimBox.topRightX)+" "+R(U.trimBox.topRightY)+"]"),U.artBox!==null&&le("/ArtBox ["+R(U.artBox.bottomLeftX)+" "+R(U.artBox.bottomLeftY)+" "+R(U.artBox.topRightX)+" "+R(U.artBox.topRightY)+"]"),typeof U.userUnit=="number"&&U.userUnit!==1&&le("/UserUnit "+U.userUnit),Zt.publish("putPage",{objId:Ee,pageContext:mt[Y],pageNumber:Y,page:xe}),le("/Contents "+Le+" 0 R"),le(">>"),le("endobj");var Ze=xe.join(`
`);return T===S&&(Ze+=`
Q`),ee(Le,!0),je({data:Ze,filters:Te(),objectId:Le}),le("endobj"),Ee},Ie=g.__private__.putPages=function(){var U,Y,xe=[];for(U=1;U<=sr;U++)mt[U].objId=gn(),mt[U].contentsObjId=gn();for(U=1;U<=sr;U++)xe.push(Ne({number:U,data:ke[U],objId:mt[U].objId,contentsObjId:mt[U].contentsObjId,mediaBox:mt[U].mediaBox,cropBox:mt[U].cropBox,bleedBox:mt[U].bleedBox,trimBox:mt[U].trimBox,artBox:mt[U].artBox,userUnit:mt[U].userUnit,rootDictionaryObjId:Ae,resourceDictionaryObjId:ce}));ee(Ae,!0),le("<</Type /Pages");var Ee="/Kids [";for(Y=0;Y<sr;Y++)Ee+=xe[Y]+" 0 R ";le(Ee+"]"),le("/Count "+sr),le(">>"),le("endobj"),Zt.publish("postPutPages")},Pe=function(U){Zt.publish("putFont",{font:U,out:le,newObject:zr,putStream:je}),U.isAlreadyPutted!==!0&&(U.objectNumber=zr(),le("<<"),le("/Type /Font"),le("/BaseFont /"+y0(U.postScriptName)),le("/Subtype /Type1"),typeof U.encoding=="string"&&le("/Encoding /"+U.encoding),le("/FirstChar 32"),le("/LastChar 255"),le(">>"),le("endobj"))},ot=function(U){U.objectNumber=zr();var Y=[];Y.push({key:"Type",value:"/XObject"}),Y.push({key:"Subtype",value:"/Form"}),Y.push({key:"BBox",value:"["+[R(U.x),R(U.y),R(U.x+U.width),R(U.y+U.height)].join(" ")+"]"}),Y.push({key:"Matrix",value:"["+U.matrix.toString()+"]"});var xe=U.pages[1].join(`
`);je({data:xe,additionalKeyValues:Y,objectId:U.objectNumber}),le("endobj")},ft=function(U,Y){Y||(Y=21);var xe=zr(),Ee=(function(At,Ut){var kt,ar=[],hr=1/(Ut-1);for(kt=0;kt<1;kt+=hr)ar.push(kt);if(ar.push(1),At[0].offset!=0){var Lr={offset:0,color:At[0].color};At.unshift(Lr)}if(At[At.length-1].offset!=1){var Pn={offset:1,color:At[At.length-1].color};At.push(Pn)}for(var ai="",pn=0,Si=0;Si<ar.length;Si++){for(kt=ar[Si];kt>At[pn+1].offset;)pn++;var di=At[pn].offset,$i=(kt-di)/(At[pn+1].offset-di),OA=At[pn].color,fo=At[pn+1].color;ai+=q(Math.round((1-$i)*OA[0]+$i*fo[0]).toString(16))+q(Math.round((1-$i)*OA[1]+$i*fo[1]).toString(16))+q(Math.round((1-$i)*OA[2]+$i*fo[2]).toString(16))}return ai.trim()})(U.colors,Y),Le=[];Le.push({key:"FunctionType",value:"0"}),Le.push({key:"Domain",value:"[0.0 1.0]"}),Le.push({key:"Size",value:"["+Y+"]"}),Le.push({key:"BitsPerSample",value:"8"}),Le.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Le.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),je({data:Ee,additionalKeyValues:Le,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:xe}),le("endobj"),U.objectNumber=zr(),le("<< /ShadingType "+U.type),le("/ColorSpace /DeviceRGB");var Ze="/Coords ["+R(parseFloat(U.coords[0]))+" "+R(parseFloat(U.coords[1]))+" ";U.type===2?Ze+=R(parseFloat(U.coords[2]))+" "+R(parseFloat(U.coords[3])):Ze+=R(parseFloat(U.coords[2]))+" "+R(parseFloat(U.coords[3]))+" "+R(parseFloat(U.coords[4]))+" "+R(parseFloat(U.coords[5])),le(Ze+="]"),U.matrix&&le("/Matrix ["+U.matrix.toString()+"]"),le("/Function "+xe+" 0 R"),le("/Extend [true true]"),le(">>"),le("endobj")},pt=function(U,Y){var xe=gn(),Ee=zr();Y.push({resourcesOid:xe,objectOid:Ee}),U.objectNumber=Ee;var Le=[];Le.push({key:"Type",value:"/Pattern"}),Le.push({key:"PatternType",value:"1"}),Le.push({key:"PaintType",value:"1"}),Le.push({key:"TilingType",value:"1"}),Le.push({key:"BBox",value:"["+U.boundingBox.map(R).join(" ")+"]"}),Le.push({key:"XStep",value:R(U.xStep)}),Le.push({key:"YStep",value:R(U.yStep)}),Le.push({key:"Resources",value:xe+" 0 R"}),U.matrix&&Le.push({key:"Matrix",value:"["+U.matrix.toString()+"]"}),je({data:U.stream,additionalKeyValues:Le,objectId:U.objectNumber}),le("endobj")},ut=function(U){for(var Y in U.objectNumber=zr(),le("<<"),U)switch(Y){case"opacity":le("/ca "+I(U[Y]));break;case"stroke-opacity":le("/CA "+I(U[Y]))}le(">>"),le("endobj")},dt=function(U){ee(U.resourcesOid,!0),le("<<"),le("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),(function(){for(var Y in le("/Font <<"),Kt)Kt.hasOwnProperty(Y)&&(h===!1||h===!0&&p.hasOwnProperty(Y))&&le("/"+Y+" "+Kt[Y].objectNumber+" 0 R");le(">>")})(),(function(){if(Object.keys(Rt).length>0){for(var Y in le("/Shading <<"),Rt)Rt.hasOwnProperty(Y)&&Rt[Y]instanceof ph&&Rt[Y].objectNumber>=0&&le("/"+Y+" "+Rt[Y].objectNumber+" 0 R");Zt.publish("putShadingPatternDict"),le(">>")}})(),(function(Y){if(Object.keys(Rt).length>0){for(var xe in le("/Pattern <<"),Rt)Rt.hasOwnProperty(xe)&&Rt[xe]instanceof g.TilingPattern&&Rt[xe].objectNumber>=0&&Rt[xe].objectNumber<Y&&le("/"+xe+" "+Rt[xe].objectNumber+" 0 R");Zt.publish("putTilingPatternDict"),le(">>")}})(U.objectOid),(function(){if(Object.keys(Gt).length>0){var Y;for(Y in le("/ExtGState <<"),Gt)Gt.hasOwnProperty(Y)&&Gt[Y].objectNumber>=0&&le("/"+Y+" "+Gt[Y].objectNumber+" 0 R");Zt.publish("putGStateDict"),le(">>")}})(),(function(){for(var Y in le("/XObject <<"),fr)fr.hasOwnProperty(Y)&&fr[Y].objectNumber>=0&&le("/"+Y+" "+fr[Y].objectNumber+" 0 R");Zt.publish("putXobjectDict"),le(">>")})(),le(">>"),le("endobj")},_t=function(U){Xt[U.fontName]=Xt[U.fontName]||{},Xt[U.fontName][U.fontStyle]=U.id},$r=function(U,Y,xe,Ee,Le){var Ze={id:"F"+(Object.keys(Kt).length+1).toString(10),postScriptName:U,fontName:Y,fontStyle:xe,encoding:Ee,isStandardFont:Le||!1,metadata:{}};return Zt.publish("addFont",{font:Ze,instance:this}),Kt[Ze.id]=Ze,_t(Ze),Ze.id},br=g.__private__.pdfEscape=g.pdfEscape=function(U,Y){return(function(xe,Ee){var Le,Ze,At,Ut,kt,ar,hr,Lr,Pn;if(At=(Ee=Ee||{}).sourceEncoding||"Unicode",kt=Ee.outputEncoding,(Ee.autoencode||kt)&&Kt[Et].metadata&&Kt[Et].metadata[At]&&Kt[Et].metadata[At].encoding&&(Ut=Kt[Et].metadata[At].encoding,!kt&&Kt[Et].encoding&&(kt=Kt[Et].encoding),!kt&&Ut.codePages&&(kt=Ut.codePages[0]),typeof kt=="string"&&(kt=Ut[kt]),kt)){for(hr=!1,ar=[],Le=0,Ze=xe.length;Le<Ze;Le++)(Lr=kt[xe.charCodeAt(Le)])?ar.push(String.fromCharCode(Lr)):ar.push(xe[Le]),ar[Le].charCodeAt(0)>>8&&(hr=!0);xe=ar.join("")}for(Le=xe.length;hr===void 0&&Le!==0;)xe.charCodeAt(Le-1)>>8&&(hr=!0),Le--;if(!hr)return xe;for(ar=Ee.noBOM?[]:[254,255],Le=0,Ze=xe.length;Le<Ze;Le++){if((Pn=(Lr=xe.charCodeAt(Le))>>8)>>8)throw new Error("Character at position "+Le+" of string '"+xe+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");ar.push(Pn),ar.push(Lr-(Pn<<8))}return String.fromCharCode.apply(void 0,ar)})(U,Y).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},tn=g.__private__.beginPage=function(U){ke[++sr]=[],mt[sr]={objId:0,contentsObjId:0,userUnit:Number(o),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(U[0]),topRightY:Number(U[1])}},Ao(sr),Ge(ke[j])},Ta=function(U,Y){var xe,Ee,Le;switch(r=Y||r,typeof U=="string"&&(xe=b(U.toLowerCase()),Array.isArray(xe)&&(Ee=xe[0],Le=xe[1])),Array.isArray(U)&&(Ee=U[0]*nr,Le=U[1]*nr),isNaN(Ee)&&(Ee=i[0],Le=i[1]),(Ee>14400||Le>14400)&&(Fn.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),Ee=Math.min(14400,Ee),Le=Math.min(14400,Le)),i=[Ee,Le],r.substr(0,1)){case"l":Le>Ee&&(i=[Le,Ee]);break;case"p":Ee>Le&&(i=[Le,Ee])}tn(i),er(Jl),le(vs),cu!==0&&le(cu+" J"),ki!==0&&le(ki+" j"),Zt.publish("addPage",{pageNumber:sr})},oo=function(U){U>0&&U<=sr&&(ke.splice(U,1),mt.splice(U,1),sr--,j>sr&&(j=sr),this.setPage(j))},Ao=function(U){U>0&&U<=sr&&(j=U)},gs=g.__private__.getNumberOfPages=g.getNumberOfPages=function(){return ke.length-1},ul=function(U,Y,xe){var Ee,Le=void 0;return xe=xe||{},U=U!==void 0?U:Kt[Et].fontName,Y=Y!==void 0?Y:Kt[Et].fontStyle,Ee=U.toLowerCase(),Xt[Ee]!==void 0&&Xt[Ee][Y]!==void 0?Le=Xt[Ee][Y]:Xt[U]!==void 0&&Xt[U][Y]!==void 0?Le=Xt[U][Y]:xe.disableWarning===!1&&Fn.warn("Unable to look up font label for font '"+U+"', '"+Y+"'. Refer to getFontList() for available fonts."),Le||xe.noFallback||(Le=Xt.times[Y])==null&&(Le=Xt.times.normal),Le},Mn=g.__private__.putInfo=function(){var U=zr(),Y=function(Ee){return Ee};for(var xe in f!==null&&(Y=_i.encryptor(U,0)),le("<<"),le("/Producer ("+br(Y("jsPDF "+jt.version))+")"),rr)rr.hasOwnProperty(xe)&&rr[xe]&&le("/"+xe.substr(0,1).toUpperCase()+xe.substr(1)+" ("+br(Y(rr[xe]))+")");le("/CreationDate ("+br(Y(fe))+")"),le(">>"),le("endobj")},bA=g.__private__.putCatalog=function(U){var Y=(U=U||{}).rootDictionaryObjId||Ae;switch(zr(),le("<<"),le("/Type /Catalog"),le("/Pages "+Y+" 0 R"),Tt||(Tt="fullwidth"),Tt){case"fullwidth":le("/OpenAction [3 0 R /FitH null]");break;case"fullheight":le("/OpenAction [3 0 R /FitV null]");break;case"fullpage":le("/OpenAction [3 0 R /Fit]");break;case"original":le("/OpenAction [3 0 R /XYZ null null 1]");break;default:var xe=""+Tt;xe.substr(xe.length-1)==="%"&&(Tt=parseInt(Tt)/100),typeof Tt=="number"&&le("/OpenAction [3 0 R /XYZ null null "+I(Tt)+"]")}switch(cr||(cr="continuous"),cr){case"continuous":le("/PageLayout /OneColumn");break;case"single":le("/PageLayout /SinglePage");break;case"two":case"twoleft":le("/PageLayout /TwoColumnLeft");break;case"tworight":le("/PageLayout /TwoColumnRight")}It&&le("/PageMode /"+It),Zt.publish("putCatalog"),le(">>"),le("endobj")},lo=g.__private__.putTrailer=function(){le("trailer"),le("<<"),le("/Size "+(re+1)),le("/Root "+re+" 0 R"),le("/Info "+(re-1)+" 0 R"),f!==null&&le("/Encrypt "+_i.oid+" 0 R"),le("/ID [ <"+G+"> <"+G+"> ]"),le(">>")},jr=g.__private__.putHeader=function(){le("%PDF-"+y),le("%ºß¬à")},Uf=g.__private__.putXRef=function(){var U="0000000000";le("xref"),le("0 "+(re+1)),le("0000000000 65535 f ");for(var Y=1;Y<=re;Y++)typeof he[Y]=="function"?le((U+he[Y]()).slice(-10)+" 00000 n "):he[Y]!==void 0?le((U+he[Y]).slice(-10)+" 00000 n "):le("0000000000 00000 n ")},Ro=g.__private__.buildDocument=function(){var U;re=0,ae=0,Be=[],he=[],be=[],Ae=gn(),ce=gn(),Ge(Be),Zt.publish("buildDocument"),jr(),Ie(),(function(){Zt.publish("putAdditionalObjects");for(var xe=0;xe<be.length;xe++){var Ee=be[xe];ee(Ee.objId,!0),le(Ee.content),le("endobj")}Zt.publish("postPutAdditionalObjects")})(),U=[],(function(){for(var xe in Kt)Kt.hasOwnProperty(xe)&&(h===!1||h===!0&&p.hasOwnProperty(xe))&&Pe(Kt[xe])})(),(function(){var xe;for(xe in Gt)Gt.hasOwnProperty(xe)&&ut(Gt[xe])})(),(function(){for(var xe in fr)fr.hasOwnProperty(xe)&&ot(fr[xe])})(),(function(xe){var Ee;for(Ee in Rt)Rt.hasOwnProperty(Ee)&&(Rt[Ee]instanceof ph?ft(Rt[Ee]):Rt[Ee]instanceof _0&&pt(Rt[Ee],xe))})(U),Zt.publish("putResources"),U.forEach(dt),dt({resourcesOid:ce,objectOid:Number.MAX_SAFE_INTEGER}),Zt.publish("postPutResources"),f!==null&&(_i.oid=zr(),le("<<"),le("/Filter /Standard"),le("/V "+_i.v),le("/R "+_i.r),le("/U <"+_i.toHexString(_i.U)+">"),le("/O <"+_i.toHexString(_i.O)+">"),le("/P "+_i.P),le(">>"),le("endobj")),Mn(),bA();var Y=ae;return Uf(),lo(),le("startxref"),le(""+Y),le("%%EOF"),Ge(ke[j]),Be.join(`
`)},fl=g.__private__.getBlob=function(U){return new Blob([tt(U)],{type:"application/pdf"})},Nf=g.output=g.__private__.output=(fi=function(U,Y){switch(typeof(Y=Y||{})=="string"?Y={filename:Y}:Y.filename=Y.filename||"generated.pdf",U){case void 0:return Ro();case"save":g.save(Y.filename);break;case"arraybuffer":return tt(Ro());case"blob":return fl(Ro());case"bloburi":case"bloburl":if(lr.URL!==void 0&&typeof lr.URL.createObjectURL=="function")return lr.URL&&lr.URL.createObjectURL(fl(Ro()))||void 0;Fn.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var xe="",Ee=Ro();try{xe=NI(Ee)}catch{xe=NI(unescape(encodeURIComponent(Ee)))}return"data:application/pdf;filename="+Y.filename+";base64,"+xe;case"pdfobjectnewwindow":if(Object.prototype.toString.call(lr)==="[object Window]"){var Le="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",Ze=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';Y.pdfObjectUrl&&(Le=Y.pdfObjectUrl,Ze="");var At='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><script src="'+Le+'"'+Ze+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(Y)+");<\/script></body></html>",Ut=lr.open();return Ut!==null&&Ut.document.write(At),Ut}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(lr)==="[object Window]"){var kt='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe id="pdfViewer" src="'+(Y.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+Y.filename+'" width="500px" height="400px" /></body></html>',ar=lr.open();if(ar!==null){ar.document.write(kt);var hr=this;ar.document.documentElement.querySelector("#pdfViewer").onload=function(){ar.document.title=Y.filename,ar.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(hr.output("bloburl"))}}return ar}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(lr)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var Lr='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe src="'+this.output("datauristring",Y)+'"></iframe></body></html>',Pn=lr.open();if(Pn!==null&&(Pn.document.write(Lr),Pn.document.title=Y.filename),Pn||typeof safari>"u")return Pn;break;case"datauri":case"dataurl":return lr.document.location.href=this.output("datauristring",Y);default:return null}},fi.foo=function(){try{return fi.apply(this,arguments)}catch(xe){var U=xe.stack||"";~U.indexOf(" at ")&&(U=U.split(" at ")[1]);var Y="Error in function "+U.split(`
`)[0].split("<")[0]+": "+xe.message;if(!lr.console)throw new Error(Y);lr.console.error(Y,xe),lr.alert&&alert(Y)}},fi.foo.bar=fi,fi.foo),Oa=function(U){return Array.isArray(Pi)===!0&&Pi.indexOf(U)>-1};switch(n){case"pt":nr=1;break;case"mm":nr=72/25.4;break;case"cm":nr=72/2.54;break;case"in":nr=72;break;case"px":nr=Oa("px_scaling")==1?.75:96/72;break;case"pc":case"em":nr=12;break;case"ex":nr=6;break;default:if(typeof n!="number")throw new Error("Invalid unit: "+n);nr=n}var _i=null;Z(),ge();var hi=g.__private__.getPageInfo=g.getPageInfo=function(U){if(isNaN(U)||U%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:mt[U].objId,pageNumber:U,pageContext:mt[U]}},Au=g.__private__.getPageInfoByObjId=function(U){if(isNaN(U)||U%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var Y in mt)if(mt[Y].objId===U)break;return hi(Y)},cd=g.__private__.getCurrentPageInfo=g.getCurrentPageInfo=function(){return{objId:mt[j].objId,pageNumber:j,pageContext:mt[j]}};g.addPage=function(){return Ta.apply(this,arguments),this},g.setPage=function(){return Ao.apply(this,arguments),Ge.call(this,ke[j]),this},g.insertPage=function(U){return this.addPage(),this.movePage(j,U),this},g.movePage=function(U,Y){var xe,Ee;if(U>Y){xe=ke[U],Ee=mt[U];for(var Le=U;Le>Y;Le--)ke[Le]=ke[Le-1],mt[Le]=mt[Le-1];ke[Y]=xe,mt[Y]=Ee,this.setPage(Y)}else if(U<Y){xe=ke[U],Ee=mt[U];for(var Ze=U;Ze<Y;Ze++)ke[Ze]=ke[Ze+1],mt[Ze]=mt[Ze+1];ke[Y]=xe,mt[Y]=Ee,this.setPage(Y)}return this},g.deletePage=function(){return oo.apply(this,arguments),this},g.__private__.text=g.text=function(U,Y,xe,Ee,Le){var Ze,At,Ut,kt,ar,hr,Lr,Pn,ai,pn=(Ee=Ee||{}).scope||this;if(typeof U=="number"&&typeof Y=="number"&&(typeof xe=="string"||Array.isArray(xe))){var Si=xe;xe=Y,Y=U,U=Si}if(arguments[3]instanceof Mt==0?(Ut=arguments[4],kt=arguments[5],un(Lr=arguments[3])==="object"&&Lr!==null||(typeof Ut=="string"&&(kt=Ut,Ut=null),typeof Lr=="string"&&(kt=Lr,Lr=null),typeof Lr=="number"&&(Ut=Lr,Lr=null),Ee={flags:Lr,angle:Ut,align:kt})):(O("The transform parameter of text() with a Matrix value"),ai=Le),isNaN(Y)||isNaN(xe)||U==null)throw new Error("Invalid arguments passed to jsPDF.text");if(U.length===0)return pn;var di,$i="",OA=typeof Ee.lineHeightFactor=="number"?Ee.lineHeightFactor:BA,fo=pn.internal.scaleFactor;function UA(Hr){return Hr=Hr.split("	").join(Array(Ee.TabLen||9).join(" ")),br(Hr,Lr)}function jf(Hr){for(var Dr,vn=Hr.concat(),oi=[],$o=vn.length;$o--;)typeof(Dr=vn.shift())=="string"?oi.push(Dr):Array.isArray(Hr)&&(Dr.length===1||Dr[1]===void 0&&Dr[2]===void 0)?oi.push(Dr[0]):oi.push([Dr[0],Dr[1],Dr[2]]);return oi}function fu(Hr,Dr){var vn;if(typeof Hr=="string")vn=Dr(Hr)[0];else if(Array.isArray(Hr)){for(var oi,$o,vo=Hr.concat(),ac=[],zf=vo.length;zf--;)typeof(oi=vo.shift())=="string"?ac.push(Dr(oi)[0]):Array.isArray(oi)&&typeof oi[0]=="string"&&($o=Dr(oi[0],oi[1],oi[2]),ac.push([$o[0],$o[1],$o[2]]));vn=ac}return vn}var Ko=!1,ho=!0;if(typeof U=="string")Ko=!0;else if(Array.isArray(U)){var nc=U.concat();At=[];for(var NA,Qi=nc.length;Qi--;)(typeof(NA=nc.shift())!="string"||Array.isArray(NA)&&typeof NA[0]!="string")&&(ho=!1);Ko=ho}if(Ko===!1)throw new Error('Type of text must be string or Array. "'+U+'" is not recognized.');typeof U=="string"&&(U=U.match(/[\r?\n]/)?U.split(/\r\n|\r|\n/g):[U]);var dl=nt/pn.internal.scaleFactor,gl=dl*(OA-1);switch(Ee.baseline){case"bottom":xe-=gl;break;case"top":xe+=dl-gl;break;case"hanging":xe+=dl-2*gl;break;case"middle":xe+=dl/2-gl}if((hr=Ee.maxWidth||0)>0&&(typeof U=="string"?U=pn.splitTextToSize(U,hr):Object.prototype.toString.call(U)==="[object Array]"&&(U=U.reduce(function(Hr,Dr){return Hr.concat(pn.splitTextToSize(Dr,hr))},[]))),Ze={text:U,x:Y,y:xe,options:Ee,mutex:{pdfEscape:br,activeFontKey:Et,fonts:Kt,activeFontSize:nt}},Zt.publish("preProcessText",Ze),U=Ze.text,Ut=(Ee=Ze.options).angle,ai instanceof Mt==0&&Ut&&typeof Ut=="number"){Ut*=Math.PI/180,Ee.rotationDirection===0&&(Ut=-Ut),T===S&&(Ut=-Ut);var hu=Math.cos(Ut),zo=Math.sin(Ut);ai=new Mt(hu,zo,-zo,hu,0,0)}else Ut&&Ut instanceof Mt&&(ai=Ut);T!==S||ai||(ai=Fa),(ar=Ee.charSpace||Ls)!==void 0&&($i+=R(W(ar))+` Tc
`,this.setCharSpace(this.getCharSpace()||0)),(Pn=Ee.horizontalScale)!==void 0&&($i+=R(100*Pn)+` Tz
`),Ee.lang;var Na=-1,LA=Ee.renderingMode!==void 0?Ee.renderingMode:Ee.stroke,du=pn.internal.getCurrentPageInfo().pageContext;switch(LA){case 0:case!1:case"fill":Na=0;break;case 1:case!0:case"stroke":Na=1;break;case 2:case"fillThenStroke":Na=2;break;case 3:case"invisible":Na=3;break;case 4:case"fillAndAddForClipping":Na=4;break;case 5:case"strokeAndAddPathForClipping":Na=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":Na=6;break;case 7:case"addToPathForClipping":Na=7}var Hf=du.usedRenderingMode!==void 0?du.usedRenderingMode:-1;Na!==-1?$i+=Na+` Tr
`:Hf!==-1&&($i+=`0 Tr
`),Na!==-1&&(du.usedRenderingMode=Na),kt=Ee.align||"left";var ms,go=nt*OA,DA=pn.internal.pageSize.getWidth(),Kf=Kt[Et];ar=Ee.charSpace||Ls,hr=Ee.maxWidth||0,Lr=Object.assign({autoencode:!0,noBOM:!0},Ee.flags);var po=[],pl=function(Hr){return pn.getStringUnitWidth(Hr,{font:Kf,charSpace:ar,fontSize:nt,doKerning:!1})*nt/fo};if(Object.prototype.toString.call(U)==="[object Array]"){var es;At=jf(U),kt!=="left"&&(ms=At.map(pl));var La,Vo=0;if(kt==="right"){Y-=ms[0],U=[],Qi=At.length;for(var Go=0;Go<Qi;Go++)Go===0?(La=ps(Y),es=Yi(xe)):(La=W(Vo-ms[Go]),es=-go),U.push([At[Go],La,es]),Vo=ms[Go]}else if(kt==="center"){Y-=ms[0]/2,U=[],Qi=At.length;for(var IA=0;IA<Qi;IA++)IA===0?(La=ps(Y),es=Yi(xe)):(La=W((Vo-ms[IA])/2),es=-go),U.push([At[IA],La,es]),Vo=ms[IA]}else if(kt==="left"){U=[],Qi=At.length;for(var gu=0;gu<Qi;gu++)U.push(At[gu])}else if(kt==="justify"&&Kf.encoding==="Identity-H"){U=[],Qi=At.length,hr=hr!==0?hr:DA;for(var pu=0,si=0;si<Qi;si++)if(es=si===0?Yi(xe):-go,La=si===0?ps(Y):pu,si<Qi-1){var yd=W((hr-ms[si])/(At[si].split(" ").length-1)),qo=At[si].split(" ");U.push([qo[0]+" ",La,es]),pu=0;for(var Wo=1;Wo<qo.length;Wo++){var Xi=(pl(qo[Wo-1]+" "+qo[Wo])-pl(qo[Wo]))*fo+yd;Wo==qo.length-1?U.push([qo[Wo],Xi,0]):U.push([qo[Wo]+" ",Xi,0]),pu-=Xi}}else U.push([At[si],La,es]);U.push(["",pu,0])}else{if(kt!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(U=[],Qi=At.length,hr=hr!==0?hr:DA,si=0;si<Qi;si++){es=si===0?Yi(xe):-go,La=si===0?ps(Y):0;var MA=At[si].split(" ").length-1,vu=MA>0?(hr-ms[si])/MA:0;si<Qi-1?po.push(R(W(vu))):po.push(0),U.push([At[si],La,es])}}}(typeof Ee.R2L=="boolean"?Ee.R2L:Ht)===!0&&(U=fu(U,function(Hr,Dr,vn){return[Hr.split("").reverse().join(""),Dr,vn]})),Ze={text:U,x:Y,y:xe,options:Ee,mutex:{pdfEscape:br,activeFontKey:Et,fonts:Kt,activeFontSize:nt}},Zt.publish("postProcessText",Ze),U=Ze.text,di=Ze.mutex.isHex||!1;var mu=Kt[Et].encoding;mu!=="WinAnsiEncoding"&&mu!=="StandardEncoding"||(U=fu(U,function(Hr,Dr,vn){return[UA(Hr),Dr,vn]})),At=jf(U),U=[];for(var PA,kA,Yo,ic=Array.isArray(At[0])?1:0,ys="",QA=function(Hr,Dr,vn){var oi="";return vn instanceof Mt?(vn=typeof Ee.angle=="number"?Ja(vn,new Mt(1,0,0,1,Hr,Dr)):Ja(new Mt(1,0,0,1,Hr,Dr),vn),T===S&&(vn=Ja(new Mt(1,0,0,-1,0,0),vn)),oi=vn.join(" ")+` Tm
`):oi=R(Hr)+" "+R(Dr)+` Td
`,oi},ha=0;ha<At.length;ha++){switch(ys="",ic){case 1:Yo=(di?"<":"(")+At[ha][0]+(di?">":")"),PA=parseFloat(At[ha][1]),kA=parseFloat(At[ha][2]);break;case 0:Yo=(di?"<":"(")+At[ha]+(di?">":")"),PA=ps(Y),kA=Yi(xe)}po!==void 0&&po[ha]!==void 0&&(ys=po[ha]+` Tw
`),ha===0?U.push(ys+QA(PA,kA,ai)+Yo):ic===0?U.push(ys+Yo):ic===1&&U.push(ys+QA(PA,kA,ai)+Yo)}U=ic===0?U.join(` Tj
T* `):U.join(` Tj
`),U+=` Tj
`;var Is=`BT
/`;return Is+=Et+" "+nt+` Tf
`,Is+=R(nt*OA)+` TL
`,Is+=jo+`
`,Is+=$i,Is+=U,le(Is+="ET"),p[Et]=!0,pn};var Lf=g.__private__.clip=g.clip=function(U){return le(U==="evenodd"?"W*":"W"),this};g.clipEvenOdd=function(){return Lf("evenodd")},g.__private__.discardPath=g.discardPath=function(){return le("n"),this};var Ua=g.__private__.isValidStyle=function(U){var Y=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(U)!==-1&&(Y=!0),Y};g.__private__.setDefaultPathOperation=g.setDefaultPathOperation=function(U){return Ua(U)&&(c=U),this};var Df=g.__private__.getStyle=g.getStyle=function(U){var Y=c;switch(U){case"D":case"S":Y="S";break;case"F":Y="f";break;case"FD":case"DF":Y="B";break;case"f":case"f*":case"B":case"B*":Y=U}return Y},If=g.close=function(){return le("h"),this};g.stroke=function(){return le("S"),this},g.fill=function(U){return co("f",U),this},g.fillEvenOdd=function(U){return co("f*",U),this},g.fillStroke=function(U){return co("B",U),this},g.fillStrokeEvenOdd=function(U){return co("B*",U),this};var co=function(U,Y){un(Y)==="object"?fd(Y,U):le(U)},Xl=function(U){U===null||T===S&&U===void 0||(U=Df(U),le(U))};function ud(U,Y,xe,Ee,Le){var Ze=new _0(Y||this.boundingBox,xe||this.xStep,Ee||this.yStep,this.gState,Le||this.matrix);Ze.stream=this.stream;var At=U+"$$"+this.cloneIndex+++"$$";return ii(At,Ze),Ze}var fd=function(U,Y){var xe=Nr[U.key],Ee=Rt[xe];if(Ee instanceof ph)le("q"),le(Mf(Y)),Ee.gState&&g.setGState(Ee.gState),le(U.matrix.toString()+" cm"),le("/"+xe+" sh"),le("Q");else if(Ee instanceof _0){var Le=new Mt(1,0,0,-1,0,TA());U.matrix&&(Le=Le.multiply(U.matrix||Fa),xe=ud.call(Ee,U.key,U.boundingBox,U.xStep,U.yStep,Le).id),le("q"),le("/Pattern cs"),le("/"+xe+" scn"),Ee.gState&&g.setGState(Ee.gState),le(Y),le("Q")}},Mf=function(U){switch(U){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},Pf=g.moveTo=function(U,Y){return le(R(W(U))+" "+R(J(Y))+" m"),this},hd=g.lineTo=function(U,Y){return le(R(W(U))+" "+R(J(Y))+" l"),this},Za=g.curveTo=function(U,Y,xe,Ee,Le,Ze){return le([R(W(U)),R(J(Y)),R(W(xe)),R(J(Ee)),R(W(Le)),R(J(Ze)),"c"].join(" ")),this};g.__private__.line=g.line=function(U,Y,xe,Ee,Le){if(isNaN(U)||isNaN(Y)||isNaN(xe)||isNaN(Ee)||!Ua(Le))throw new Error("Invalid arguments passed to jsPDF.line");return T===E?this.lines([[xe-U,Ee-Y]],U,Y,[1,1],Le||"S"):this.lines([[xe-U,Ee-Y]],U,Y,[1,1]).stroke()},g.__private__.lines=g.lines=function(U,Y,xe,Ee,Le,Ze){var At,Ut,kt,ar,hr,Lr,Pn,ai,pn,Si,di,$i;if(typeof U=="number"&&($i=xe,xe=Y,Y=U,U=$i),Ee=Ee||[1,1],Ze=Ze||!1,isNaN(Y)||isNaN(xe)||!Array.isArray(U)||!Array.isArray(Ee)||!Ua(Le)||typeof Ze!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(Pf(Y,xe),At=Ee[0],Ut=Ee[1],ar=U.length,Si=Y,di=xe,kt=0;kt<ar;kt++)(hr=U[kt]).length===2?(Si=hr[0]*At+Si,di=hr[1]*Ut+di,hd(Si,di)):(Lr=hr[0]*At+Si,Pn=hr[1]*Ut+di,ai=hr[2]*At+Si,pn=hr[3]*Ut+di,Si=hr[4]*At+Si,di=hr[5]*Ut+di,Za(Lr,Pn,ai,pn,Si,di));return Ze&&If(),Xl(Le),this},g.path=function(U){for(var Y=0;Y<U.length;Y++){var xe=U[Y],Ee=xe.c;switch(xe.op){case"m":Pf(Ee[0],Ee[1]);break;case"l":hd(Ee[0],Ee[1]);break;case"c":Za.apply(this,Ee);break;case"h":If()}}return this},g.__private__.rect=g.rect=function(U,Y,xe,Ee,Le){if(isNaN(U)||isNaN(Y)||isNaN(xe)||isNaN(Ee)||!Ua(Le))throw new Error("Invalid arguments passed to jsPDF.rect");return T===E&&(Ee=-Ee),le([R(W(U)),R(J(Y)),R(W(xe)),R(W(Ee)),"re"].join(" ")),Xl(Le),this},g.__private__.triangle=g.triangle=function(U,Y,xe,Ee,Le,Ze,At){if(isNaN(U)||isNaN(Y)||isNaN(xe)||isNaN(Ee)||isNaN(Le)||isNaN(Ze)||!Ua(At))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[xe-U,Ee-Y],[Le-xe,Ze-Ee],[U-Le,Y-Ze]],U,Y,[1,1],At,!0),this},g.__private__.roundedRect=g.roundedRect=function(U,Y,xe,Ee,Le,Ze,At){if(isNaN(U)||isNaN(Y)||isNaN(xe)||isNaN(Ee)||isNaN(Le)||isNaN(Ze)||!Ua(At))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var Ut=4/3*(Math.SQRT2-1);return Le=Math.min(Le,.5*xe),Ze=Math.min(Ze,.5*Ee),this.lines([[xe-2*Le,0],[Le*Ut,0,Le,Ze-Ze*Ut,Le,Ze],[0,Ee-2*Ze],[0,Ze*Ut,-Le*Ut,Ze,-Le,Ze],[2*Le-xe,0],[-Le*Ut,0,-Le,-Ze*Ut,-Le,-Ze],[0,2*Ze-Ee],[0,-Ze*Ut,Le*Ut,-Ze,Le,-Ze]],U+Le,Y,[1,1],At,!0),this},g.__private__.ellipse=g.ellipse=function(U,Y,xe,Ee,Le){if(isNaN(U)||isNaN(Y)||isNaN(xe)||isNaN(Ee)||!Ua(Le))throw new Error("Invalid arguments passed to jsPDF.ellipse");var Ze=4/3*(Math.SQRT2-1)*xe,At=4/3*(Math.SQRT2-1)*Ee;return Pf(U+xe,Y),Za(U+xe,Y-At,U+Ze,Y-Ee,U,Y-Ee),Za(U-Ze,Y-Ee,U-xe,Y-At,U-xe,Y),Za(U-xe,Y+At,U-Ze,Y+Ee,U,Y+Ee),Za(U+Ze,Y+Ee,U+xe,Y+At,U+xe,Y),Xl(Le),this},g.__private__.circle=g.circle=function(U,Y,xe,Ee){if(isNaN(U)||isNaN(Y)||isNaN(xe)||!Ua(Ee))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(U,Y,xe,xe,Ee)},g.setFont=function(U,Y,xe){return xe&&(Y=P(Y,xe)),Et=ul(U,Y,{disableWarning:!1}),this};var uo=g.__private__.getFont=g.getFont=function(){return Kt[ul.apply(g,arguments)]};g.__private__.getFontList=g.getFontList=function(){var U,Y,xe={};for(U in Xt)if(Xt.hasOwnProperty(U))for(Y in xe[U]=[],Xt[U])Xt[U].hasOwnProperty(Y)&&xe[U].push(Y);return xe},g.addFont=function(U,Y,xe,Ee,Le){var Ze=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&Ze.indexOf(arguments[3])!==-1?Le=arguments[3]:arguments[3]&&Ze.indexOf(arguments[3])==-1&&(xe=P(xe,Ee)),$r.call(this,U,Y,xe,Le=Le||"Identity-H")};var BA,Jl=e.lineWidth||.200025,hl=g.__private__.getLineWidth=g.getLineWidth=function(){return Jl},er=g.__private__.setLineWidth=g.setLineWidth=function(U){return Jl=U,le(R(W(U))+" w"),this};g.__private__.setLineDash=jt.API.setLineDash=jt.API.setLineDashPattern=function(U,Y){if(U=U||[],Y=Y||0,isNaN(Y)||!Array.isArray(U))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return U=U.map(function(xe){return R(W(xe))}).join(" "),Y=R(W(Y)),le("["+U+"] "+Y+" d"),this};var dd=g.__private__.getLineHeight=g.getLineHeight=function(){return nt*BA};g.__private__.getLineHeight=g.getLineHeight=function(){return nt*BA};var kf=g.__private__.setLineHeightFactor=g.setLineHeightFactor=function(U){return typeof(U=U||1.15)=="number"&&(BA=U),this},gd=g.__private__.getLineHeightFactor=g.getLineHeightFactor=function(){return BA};kf(e.lineHeight);var ps=g.__private__.getHorizontalCoordinate=function(U){return W(U)},Yi=g.__private__.getVerticalCoordinate=function(U){return T===S?U:mt[j].mediaBox.topRightY-mt[j].mediaBox.bottomLeftY-W(U)},Qf=g.__private__.getHorizontalCoordinateString=g.getHorizontalCoordinateString=function(U){return R(ps(U))},Zl=g.__private__.getVerticalCoordinateString=g.getVerticalCoordinateString=function(U){return R(Yi(U))},vs=e.strokeColor||"0 G";g.__private__.getStrokeColor=g.getDrawColor=function(){return de(vs)},g.__private__.setStrokeColor=g.setDrawColor=function(U,Y,xe,Ee){return vs=we({ch1:U,ch2:Y,ch3:xe,ch4:Ee,pdfColorType:"draw",precision:2}),le(vs),this};var ec=e.fillColor||"0 g";g.__private__.getFillColor=g.getFillColor=function(){return de(ec)},g.__private__.setFillColor=g.setFillColor=function(U,Y,xe,Ee){return ec=we({ch1:U,ch2:Y,ch3:xe,ch4:Ee,pdfColorType:"fill",precision:2}),le(ec),this};var jo=e.textColor||"0 g",pd=g.__private__.getTextColor=g.getTextColor=function(){return de(jo)};g.__private__.setTextColor=g.setTextColor=function(U,Y,xe,Ee){return jo=we({ch1:U,ch2:Y,ch3:xe,ch4:Ee,pdfColorType:"text",precision:3}),this};var Ls=e.charSpace,lu=g.__private__.getCharSpace=g.getCharSpace=function(){return parseFloat(Ls||0)};g.__private__.setCharSpace=g.setCharSpace=function(U){if(isNaN(U))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Ls=U,this};var cu=0;g.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},g.__private__.setLineCap=g.setLineCap=function(U){var Y=g.CapJoinStyles[U];if(Y===void 0)throw new Error("Line cap style of '"+U+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return cu=Y,le(Y+" J"),this};var ki=0;g.__private__.setLineJoin=g.setLineJoin=function(U){var Y=g.CapJoinStyles[U];if(Y===void 0)throw new Error("Line join style of '"+U+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return ki=Y,le(Y+" j"),this},g.__private__.setLineMiterLimit=g.__private__.setMiterLimit=g.setLineMiterLimit=g.setMiterLimit=function(U){if(U=U||0,isNaN(U))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return le(R(W(U))+" M"),this},g.GState=ow,g.setGState=function(U){(U=typeof U=="string"?Gt[$t[U]]:Ho(null,U)).equals(Rr)||(le("/"+U.id+" gs"),Rr=U)};var Ho=function(U,Y){if(!U||!$t[U]){var xe=!1;for(var Ee in Gt)if(Gt.hasOwnProperty(Ee)&&Gt[Ee].equals(Y)){xe=!0;break}if(xe)Y=Gt[Ee];else{var Le="GS"+(Object.keys(Gt).length+1).toString(10);Gt[Le]=Y,Y.id=Le}return U&&($t[U]=Y.id),Zt.publish("addGState",Y),Y}};g.addGState=function(U,Y){return Ho(U,Y),this},g.saveGraphicsState=function(){return le("q"),vr.push({key:Et,size:nt,color:jo}),this},g.restoreGraphicsState=function(){le("Q");var U=vr.pop();return Et=U.key,nt=U.size,jo=U.color,Rr=null,this},g.setCurrentTransformationMatrix=function(U){return le(U.toString()+" cm"),this},g.comment=function(U){return le("#"+U),this};var Ds=function(U,Y){var xe=U||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return xe},set:function(Ze){isNaN(Ze)||(xe=parseFloat(Ze))}});var Ee=Y||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return Ee},set:function(Ze){isNaN(Ze)||(Ee=parseFloat(Ze))}});var Le="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return Le},set:function(Ze){Le=Ze.toString()}}),this},CA=function(U,Y,xe,Ee){Ds.call(this,U,Y),this.type="rect";var Le=xe||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return Le},set:function(At){isNaN(At)||(Le=parseFloat(At))}});var Ze=Ee||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return Ze},set:function(At){isNaN(At)||(Ze=parseFloat(At))}}),this},uu=function(){this.page=sr,this.currentPage=j,this.pages=ke.slice(0),this.pagesContext=mt.slice(0),this.x=Ot,this.y=dn,this.matrix=or,this.width=_A(j),this.height=Rf(j),this.outputDestination=st,this.id="",this.objectNumber=-1};uu.prototype.restore=function(){sr=this.page,j=this.currentPage,mt=this.pagesContext,ke=this.pages,Ot=this.x,dn=this.y,or=this.matrix,rc(j,this.width),SA(j,this.height),st=this.outputDestination};var tc=function(U,Y,xe,Ee,Le){fa.push(new uu),sr=j=0,ke=[],Ot=U,dn=Y,or=Le,tn([xe,Ee])};for(var EA in g.beginFormObject=function(U,Y,xe,Ee,Le){return tc(U,Y,xe,Ee,Le),this},g.endFormObject=function(U){return(function(Y){if(In[Y])fa.pop().restore();else{var xe=new uu,Ee="Xo"+(Object.keys(fr).length+1).toString(10);xe.id=Ee,In[Y]=Ee,fr[Ee]=xe,Zt.publish("addFormObject",xe),fa.pop().restore()}})(U),this},g.doFormObject=function(U,Y){var xe=fr[In[U]];return le("q"),le(Y.toString()+" cm"),le("/"+xe.id+" Do"),le("Q"),this},g.getFormObject=function(U){var Y=fr[In[U]];return{x:Y.x,y:Y.y,width:Y.width,height:Y.height,matrix:Y.matrix}},g.save=function(U,Y){return U=U||"generated.pdf",(Y=Y||{}).returnPromise=Y.returnPromise||!1,Y.returnPromise===!1?(fh(fl(Ro()),U),typeof fh.unload=="function"&&lr.setTimeout&&setTimeout(fh.unload,911),this):new Promise(function(xe,Ee){try{var Le=fh(fl(Ro()),U);typeof fh.unload=="function"&&lr.setTimeout&&setTimeout(fh.unload,911),xe(Le)}catch(Ze){Ee(Ze.message)}})},jt.API)jt.API.hasOwnProperty(EA)&&(EA==="events"&&jt.API.events.length?(function(U,Y){var xe,Ee,Le;for(Le=Y.length-1;Le!==-1;Le--)xe=Y[Le][0],Ee=Y[Le][1],U.subscribe.apply(U,[xe].concat(typeof Ee=="function"?[Ee]:Ee))})(Zt,jt.API.events):g[EA]=jt.API[EA]);function _A(U){return mt[U].mediaBox.topRightX-mt[U].mediaBox.bottomLeftX}function rc(U,Y){mt[U].mediaBox.topRightX=Y+mt[U].mediaBox.bottomLeftX}function Rf(U){return mt[U].mediaBox.topRightY-mt[U].mediaBox.bottomLeftY}function SA(U,Y){mt[U].mediaBox.topRightY=Y+mt[U].mediaBox.bottomLeftY}var FA=g.getPageWidth=function(U){return _A(U=U||j)/nr},vd=g.setPageWidth=function(U,Y){rc(U,Y*nr)},TA=g.getPageHeight=function(U){return Rf(U=U||j)/nr},md=g.setPageHeight=function(U,Y){SA(U,Y*nr)};return g.internal={pdfEscape:br,getStyle:Df,getFont:uo,getFontSize:yt,getCharSpace:lu,getTextColor:pd,getLineHeight:dd,getLineHeightFactor:gd,getLineWidth:hl,write:$e,getHorizontalCoordinate:ps,getVerticalCoordinate:Yi,getCoordinateString:Qf,getVerticalCoordinateString:Zl,collections:{},newObject:zr,newAdditionalObject:ve,newObjectDeferred:gn,newObjectDeferredBegin:ee,getFilters:Te,putStream:je,events:Zt,scaleFactor:nr,pageSize:{getWidth:function(){return FA(j)},setWidth:function(U){vd(j,U)},getHeight:function(){return TA(j)},setHeight:function(U){md(j,U)}},encryptionOptions:f,encryption:_i,getEncryptor:function(U){return f!==null?_i.encryptor(U,0):function(Y){return Y}},output:Nf,getNumberOfPages:gs,get pages(){return ke},out:le,f2:I,f3:Q,getPageInfo:hi,getPageInfoByObjId:Au,getCurrentPageInfo:cd,getPDFVersion:m,Point:Ds,Rectangle:CA,Matrix:Mt,hasHotfix:Oa},Object.defineProperty(g.internal.pageSize,"width",{get:function(){return FA(j)},set:function(U){vd(j,U)},enumerable:!0,configurable:!0}),Object.defineProperty(g.internal.pageSize,"height",{get:function(){return TA(j)},set:function(U){md(j,U)},enumerable:!0,configurable:!0}),(function(U){for(var Y=0,xe=wt.length;Y<xe;Y++){var Ee=$r.call(this,U[Y][0],U[Y][1],U[Y][2],wt[Y][3],!0);h===!1&&(p[Ee]=!0);var Le=U[Y][0].split("-");_t({id:Ee,fontName:Le[0],fontStyle:Le[1]||""})}Zt.publish("addFonts",{fonts:Kt,dictionary:Xt})}).call(g,wt),Et="F1",Ta(i,r),Zt.publish("initialized"),g}m0.prototype.lsbFirstWord=function(e){return String.fromCharCode(255&e,e>>8&255,e>>16&255,e>>24&255)},m0.prototype.toHexString=function(e){return e.split("").map(function(t){return("0"+(255&t.charCodeAt(0)).toString(16)).slice(-2)}).join("")},m0.prototype.hexToBytes=function(e){for(var t=[],r=0;r<e.length;r+=2)t.push(String.fromCharCode(parseInt(e.substr(r,2),16)));return t.join("")},m0.prototype.processOwnerPassword=function(e,t){return f4(u4(t).substr(0,5),e)},m0.prototype.encryptor=function(e,t){var r=u4(this.encryptionKey+String.fromCharCode(255&e,e>>8&255,e>>16&255,255&t,t>>8&255)).substr(0,10);return function(n){return f4(r,n)}},ow.prototype.equals=function(e){var t,r="id,objectNumber,equals";if(!e||un(e)!==un(this))return!1;var n=0;for(t in this)if(!(r.indexOf(t)>=0)){if(this.hasOwnProperty(t)&&!e.hasOwnProperty(t)||this[t]!==e[t])return!1;n++}for(t in e)e.hasOwnProperty(t)&&r.indexOf(t)<0&&n--;return n===0},jt.API={events:[]},jt.version="3.0.4";var xi=jt.API,sF=1,ed=function(e){return e.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},A0=function(e){return e.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},pr=function(e){return e.toFixed(2)},Ku=function(e){return e.toFixed(5)};xi.__acroform__={};var so=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e},MI=function(e){return e*sF},Il=function(e){var t=new qK,r=Dt.internal.getHeight(e)||0,n=Dt.internal.getWidth(e)||0;return t.BBox=[0,0,Number(pr(n)),Number(pr(r))],t},M2e=xi.__acroform__.setBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return e|1<<t},P2e=xi.__acroform__.clearBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return e&~(1<<t)},k2e=xi.__acroform__.getBit=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return e&1<<t?1:0},Li=xi.__acroform__.getBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return k2e(e,t-1)},Di=xi.__acroform__.setBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return M2e(e,t-1)},Ii=xi.__acroform__.clearBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return P2e(e,t-1)},Q2e=xi.__acroform__.calculateCoordinates=function(e,t){var r=t.internal.getHorizontalCoordinate,n=t.internal.getVerticalCoordinate,i=e[0],a=e[1],s=e[2],o=e[3],l={};return l.lowerLeft_X=r(i)||0,l.lowerLeft_Y=n(a+o)||0,l.upperRight_X=r(i+s)||0,l.upperRight_Y=n(a)||0,[Number(pr(l.lowerLeft_X)),Number(pr(l.lowerLeft_Y)),Number(pr(l.upperRight_X)),Number(pr(l.upperRight_Y))]},R2e=function(e){if(e.appearanceStreamContent)return e.appearanceStreamContent;if(e.V||e.DV){var t=[],r=e._V||e.DV,n=h4(e,r),i=e.scope.internal.getFont(e.fontName,e.fontStyle).id;t.push("/Tx BMC"),t.push("q"),t.push("BT"),t.push(e.scope.__private__.encodeColorString(e.color)),t.push("/"+i+" "+pr(n.fontSize)+" Tf"),t.push("1 0 0 1 0 0 Tm"),t.push(n.text),t.push("ET"),t.push("Q"),t.push("EMC");var a=Il(e);return a.scope=e.scope,a.stream=t.join(`
`),a}},h4=function(e,t){var r=e.fontSize===0?e.maxFontSize:e.fontSize,n={text:"",fontSize:""},i=(t=(t=t.substr(0,1)=="("?t.substr(1):t).substr(t.length-1)==")"?t.substr(0,t.length-1):t).split(" ");i=e.multiline?i.map(function(I){return I.split(`
`)}):i.map(function(I){return[I]});var a=r,s=Dt.internal.getHeight(e)||0;s=s<0?-s:s;var o=Dt.internal.getWidth(e)||0;o=o<0?-o:o;var l=function(I,Q,W){if(I+1<i.length){var J=Q+" "+i[I+1][0];return fy(J,e,W).width<=o-4}return!1};a++;e:for(;a>0;){t="",a--;var c,f,h=fy("3",e,a).height,p=e.multiline?s-a:(s-h)/2,g=p+=2,y=0,m=0,w=0;if(a<=0){t=`(...) Tj
`,t+="% Width of Text: "+fy(t,e,a=12).width+", FieldWidth:"+o+`
`;break}for(var b="",E=0,S=0;S<i.length;S++)if(i.hasOwnProperty(S)){var T=!1;if(i[S].length!==1&&w!==i[S].length-1){if((h+2)*(E+2)+2>s)continue e;b+=i[S][w],T=!0,m=S,S--}else{b=(b+=i[S][w]+" ").substr(b.length-1)==" "?b.substr(0,b.length-1):b;var D=parseInt(S),k=l(D,b,a),P=S>=i.length-1;if(k&&!P){b+=" ",w=0;continue}if(k||P){if(P)m=D;else if(e.multiline&&(h+2)*(E+2)+2>s)continue e}else{if(!e.multiline||(h+2)*(E+2)+2>s)continue e;m=D}}for(var R="",O=y;O<=m;O++){var V=i[O];if(e.multiline){if(O===m){R+=V[w]+" ",w=(w+1)%V.length;continue}if(O===y){R+=V[V.length-1]+" ";continue}}R+=V[0]+" "}switch(R=R.substr(R.length-1)==" "?R.substr(0,R.length-1):R,f=fy(R,e,a).width,e.textAlign){case"right":c=o-f-2;break;case"center":c=(o-f)/2;break;default:c=2}t+=pr(c)+" "+pr(g)+` Td
`,t+="("+ed(R)+`) Tj
`,t+=-pr(c)+` 0 Td
`,g=-(a+2),f=0,y=T?m:m+1,E++,b=""}break}return n.text=t,n.fontSize=a,n},fy=function(e,t,r){var n=t.scope.internal.getFont(t.fontName,t.fontStyle),i=t.scope.getStringUnitWidth(e,{font:n,fontSize:parseFloat(r),charSpace:0})*parseFloat(r);return{height:t.scope.getStringUnitWidth("3",{font:n,fontSize:parseFloat(r),charSpace:0})*parseFloat(r)*1.5,width:i}},j2e={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},H2e=function(e,t){var r={type:"reference",object:e};t.internal.getPageInfo(e.page).pageContext.annotations.find(function(n){return n.type===r.type&&n.object===r.object})===void 0&&t.internal.getPageInfo(e.page).pageContext.annotations.push(r)},K2e=function(e,t){if(t.scope=e,e.internal!==void 0&&(e.internal.acroformPlugin===void 0||e.internal.acroformPlugin.isInitialized===!1)){if(ll.FieldNum=0,e.internal.acroformPlugin=JSON.parse(JSON.stringify(j2e)),e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");sF=e.internal.scaleFactor,e.internal.acroformPlugin.acroFormDictionaryRoot=new WK,e.internal.acroformPlugin.acroFormDictionaryRoot.scope=e,e.internal.acroformPlugin.acroFormDictionaryRoot._eventID=e.internal.events.subscribe("postPutResources",function(){(function(r){r.internal.events.unsubscribe(r.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete r.internal.acroformPlugin.acroFormDictionaryRoot._eventID,r.internal.acroformPlugin.printedOut=!0})(e)}),e.internal.events.subscribe("buildDocument",function(){(function(r){r.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var n=r.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var i in n)if(n.hasOwnProperty(i)){var a=n[i];a.objId=void 0,a.hasAnnotation&&H2e(a,r)}})(e)}),e.internal.events.subscribe("putCatalog",function(){(function(r){if(r.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");r.internal.write("/AcroForm "+r.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(e)}),e.internal.events.subscribe("postPutPages",function(r){(function(n,i){var a=!n;for(var s in n||(i.internal.newObjectDeferredBegin(i.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),i.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),n=n||i.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(n.hasOwnProperty(s)){var o=n[s],l=[],c=o.Rect;if(o.Rect&&(o.Rect=Q2e(o.Rect,i)),i.internal.newObjectDeferredBegin(o.objId,!0),o.DA=Dt.createDefaultAppearanceStream(o),un(o)==="object"&&typeof o.getKeyValueListForStream=="function"&&(l=o.getKeyValueListForStream()),o.Rect=c,o.hasAppearanceStream&&!o.appearanceStreamContent){var f=R2e(o);l.push({key:"AP",value:"<</N "+f+">>"}),i.internal.acroformPlugin.xForms.push(f)}if(o.appearanceStreamContent){var h="";for(var p in o.appearanceStreamContent)if(o.appearanceStreamContent.hasOwnProperty(p)){var g=o.appearanceStreamContent[p];if(h+="/"+p+" ",h+="<<",Object.keys(g).length>=1||Array.isArray(g)){for(var s in g)if(g.hasOwnProperty(s)){var y=g[s];typeof y=="function"&&(y=y.call(i,o)),h+="/"+s+" "+y+" ",i.internal.acroformPlugin.xForms.indexOf(y)>=0||i.internal.acroformPlugin.xForms.push(y)}}else typeof(y=g)=="function"&&(y=y.call(i,o)),h+="/"+s+" "+y,i.internal.acroformPlugin.xForms.indexOf(y)>=0||i.internal.acroformPlugin.xForms.push(y);h+=">>"}l.push({key:"AP",value:`<<
`+h+">>"})}i.internal.putStream({additionalKeyValues:l,objectId:o.objId}),i.internal.out("endobj")}a&&(function(m,w){for(var b in m)if(m.hasOwnProperty(b)){var E=b,S=m[b];w.internal.newObjectDeferredBegin(S.objId,!0),un(S)==="object"&&typeof S.putStream=="function"&&S.putStream(),delete m[E]}})(i.internal.acroformPlugin.xForms,i)})(r,e)}),e.internal.acroformPlugin.isInitialized=!0}},GK=xi.__acroform__.arrayToPdfArray=function(e,t,r){var n=function(s){return s};if(Array.isArray(e)){for(var i="[",a=0;a<e.length;a++)switch(a!==0&&(i+=" "),un(e[a])){case"boolean":case"number":case"object":i+=e[a].toString();break;case"string":e[a].substr(0,1)!=="/"?(t!==void 0&&r&&(n=r.internal.getEncryptor(t)),i+="("+ed(n(e[a].toString()))+")"):i+=e[a].toString()}return i+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},LC=function(e,t,r){var n=function(i){return i};return t!==void 0&&r&&(n=r.internal.getEncryptor(t)),(e=e||"").toString(),"("+ed(n(e))+")"},jl=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(e){this._objId=e}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};jl.prototype.toString=function(){return this.objId+" 0 R"},jl.prototype.putStream=function(){var e=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:e,objectId:this.objId}),this.scope.internal.out("endobj")},jl.prototype.getKeyValueListForStream=function(){var e=[],t=Object.getOwnPropertyNames(this).filter(function(a){return a!="content"&&a!="appearanceStreamContent"&&a!="scope"&&a!="objId"&&a.substring(0,1)!="_"});for(var r in t)if(Object.getOwnPropertyDescriptor(this,t[r]).configurable===!1){var n=t[r],i=this[n];i&&(Array.isArray(i)?e.push({key:n,value:GK(i,this.objId,this.scope)}):i instanceof jl?(i.scope=this.scope,e.push({key:n,value:i.objId+" 0 R"})):typeof i!="function"&&e.push({key:n,value:i}))}return e};var qK=function(){jl.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var e,t=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return t},set:function(r){t=r}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(r){e=r.trim()},get:function(){return e||null}})};so(qK,jl);var WK=function(){jl.call(this);var e,t=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return t.length>0?t:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return t}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(e){var r=function(n){return n};return this.scope&&(r=this.scope.internal.getEncryptor(this.objId)),"("+ed(r(e))+")"}},set:function(r){e=r}})};so(WK,jl);var ll=function e(){jl.call(this);var t=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return t},set:function(b){if(isNaN(b))throw new Error('Invalid value "'+b+'" for attribute F supplied.');t=b}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!Li(t,3)},set:function(b){b?this.F=Di(t,3):this.F=Ii(t,3)}});var r=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return r},set:function(b){if(isNaN(b))throw new Error('Invalid value "'+b+'" for attribute Ff supplied.');r=b}});var n=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(n.length!==0)return n},set:function(b){n=b!==void 0?b:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[0])?0:n[0]},set:function(b){n[0]=b}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[1])?0:n[1]},set:function(b){n[1]=b}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[2])?0:n[2]},set:function(b){n[2]=b}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[3])?0:n[3]},set:function(b){n[3]=b}});var i="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return i},set:function(b){switch(b){case"/Btn":case"/Tx":case"/Ch":case"/Sig":i=b;break;default:throw new Error('Invalid value "'+b+'" for attribute FT supplied.')}}});var a=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!a||a.length<1){if(this instanceof Aw)return;a="FieldObject"+e.FieldNum++}var b=function(E){return E};return this.scope&&(b=this.scope.internal.getEncryptor(this.objId)),"("+ed(b(a))+")"},set:function(b){a=b.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return a},set:function(b){a=b}});var s="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return s},set:function(b){s=b}});var o="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return o},set:function(b){o=b}});var l=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return l},set:function(b){l=b}});var c=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return c===void 0?50/sF:c},set:function(b){c=b}});var f="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return f},set:function(b){f=b}});var h="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!h||this instanceof Aw||this instanceof Oh))return LC(h,this.objId,this.scope)},set:function(b){b=b.toString(),h=b}});var p=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(p)return this instanceof ba==0?LC(p,this.objId,this.scope):p},set:function(b){b=b.toString(),p=this instanceof ba==0?b.substr(0,1)==="("?A0(b.substr(1,b.length-2)):A0(b):b}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof ba==1?A0(p.substr(1,p.length-1)):p},set:function(b){b=b.toString(),p=this instanceof ba==1?"/"+b:b}});var g=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(g)return g},set:function(b){this.V=b}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(g)return this instanceof ba==0?LC(g,this.objId,this.scope):g},set:function(b){b=b.toString(),g=this instanceof ba==0?b.substr(0,1)==="("?A0(b.substr(1,b.length-2)):A0(b):b}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof ba==1?A0(g.substr(1,g.length-1)):g},set:function(b){b=b.toString(),g=this instanceof ba==1?"/"+b:b}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var y,m=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return m},set:function(b){b=!!b,m=b}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(y)return y},set:function(b){y=b}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!Li(this.Ff,1)},set:function(b){b?this.Ff=Di(this.Ff,1):this.Ff=Ii(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!Li(this.Ff,2)},set:function(b){b?this.Ff=Di(this.Ff,2):this.Ff=Ii(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!Li(this.Ff,3)},set:function(b){b?this.Ff=Di(this.Ff,3):this.Ff=Ii(this.Ff,3)}});var w=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(w!==null)return w},set:function(b){if([0,1,2].indexOf(b)===-1)throw new Error('Invalid value "'+b+'" for attribute Q supplied.');w=b}}),Object.defineProperty(this,"textAlign",{get:function(){var b;switch(w){case 0:default:b="left";break;case 1:b="center";break;case 2:b="right"}return b},configurable:!0,enumerable:!0,set:function(b){switch(b){case"right":case 2:w=2;break;case"center":case 1:w=1;break;default:w=0}}})};so(ll,jl);var N0=function(){ll.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var e=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return e},set:function(r){e=r}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return e},set:function(r){e=r}});var t=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return GK(t,this.objId,this.scope)},set:function(r){var n,i;i=[],typeof(n=r)=="string"&&(i=(function(a,s,o){o||(o=1);for(var l,c=[];l=s.exec(a);)c.push(l[o]);return c})(n,/\((.*?)\)/g)),t=i}}),this.getOptions=function(){return t},this.setOptions=function(r){t=r,this.sort&&t.sort()},this.addOption=function(r){r=(r=r||"").toString(),t.push(r),this.sort&&t.sort()},this.removeOption=function(r,n){for(n=n||!1,r=(r=r||"").toString();t.indexOf(r)!==-1&&(t.splice(t.indexOf(r),1),n!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!Li(this.Ff,18)},set:function(r){r?this.Ff=Di(this.Ff,18):this.Ff=Ii(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!Li(this.Ff,19)},set:function(r){this.combo===!0&&(r?this.Ff=Di(this.Ff,19):this.Ff=Ii(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!Li(this.Ff,20)},set:function(r){r?(this.Ff=Di(this.Ff,20),t.sort()):this.Ff=Ii(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!Li(this.Ff,22)},set:function(r){r?this.Ff=Di(this.Ff,22):this.Ff=Ii(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Li(this.Ff,23)},set:function(r){r?this.Ff=Di(this.Ff,23):this.Ff=Ii(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!Li(this.Ff,27)},set:function(r){r?this.Ff=Di(this.Ff,27):this.Ff=Ii(this.Ff,27)}}),this.hasAppearanceStream=!1};so(N0,ll);var L0=function(){N0.call(this),this.fontName="helvetica",this.combo=!1};so(L0,N0);var D0=function(){L0.call(this),this.combo=!0};so(D0,L0);var Jy=function(){D0.call(this),this.edit=!0};so(Jy,D0);var ba=function(){ll.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!Li(this.Ff,15)},set:function(r){r?this.Ff=Di(this.Ff,15):this.Ff=Ii(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!Li(this.Ff,16)},set:function(r){r?this.Ff=Di(this.Ff,16):this.Ff=Ii(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!Li(this.Ff,17)},set:function(r){r?this.Ff=Di(this.Ff,17):this.Ff=Ii(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!Li(this.Ff,26)},set:function(r){r?this.Ff=Di(this.Ff,26):this.Ff=Ii(this.Ff,26)}});var e,t={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var r=function(a){return a};if(this.scope&&(r=this.scope.internal.getEncryptor(this.objId)),Object.keys(t).length!==0){var n,i=[];for(n in i.push("<<"),t)i.push("/"+n+" ("+ed(r(t[n]))+")");return i.push(">>"),i.join(`
`)}},set:function(r){un(r)==="object"&&(t=r)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return t.CA||""},set:function(r){typeof r=="string"&&(t.CA=r)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(r){e=r}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(r){e="/"+r}})};so(ba,ll);var Zy=function(){ba.call(this),this.pushButton=!0};so(Zy,ba);var I0=function(){ba.call(this),this.radio=!0,this.pushButton=!1;var e=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t!==void 0?t:[]}})};so(I0,ba);var Aw=function(){var e,t;ll.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return e},set:function(i){e=i}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(i){t=i}});var r,n={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var i=function(o){return o};this.scope&&(i=this.scope.internal.getEncryptor(this.objId));var a,s=[];for(a in s.push("<<"),n)s.push("/"+a+" ("+ed(i(n[a]))+")");return s.push(">>"),s.join(`
`)},set:function(i){un(i)==="object"&&(n=i)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return n.CA||""},set:function(i){typeof i=="string"&&(n.CA=i)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return r},set:function(i){r=i}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return r.substr(1,r.length-1)},set:function(i){r="/"+i}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Dt.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};so(Aw,ll),I0.prototype.setAppearance=function(e){if(!("createAppearanceStream"in e)||!("getCA"in e))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var t in this.Kids)if(this.Kids.hasOwnProperty(t)){var r=this.Kids[t];r.appearanceStreamContent=e.createAppearanceStream(r.optionName),r.caption=e.getCA()}},I0.prototype.createOption=function(e){var t=new Aw;return t.Parent=this,t.optionName=e,this.Kids.push(t),z2e.call(this.scope,t),t};var e2=function(){ba.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Dt.CheckBox.createAppearanceStream()};so(e2,ba);var Oh=function(){ll.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!Li(this.Ff,13)},set:function(t){t?this.Ff=Di(this.Ff,13):this.Ff=Ii(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!Li(this.Ff,21)},set:function(t){t?this.Ff=Di(this.Ff,21):this.Ff=Ii(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Li(this.Ff,23)},set:function(t){t?this.Ff=Di(this.Ff,23):this.Ff=Ii(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!Li(this.Ff,24)},set:function(t){t?this.Ff=Di(this.Ff,24):this.Ff=Ii(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!Li(this.Ff,25)},set:function(t){t?this.Ff=Di(this.Ff,25):this.Ff=Ii(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!Li(this.Ff,26)},set:function(t){t?this.Ff=Di(this.Ff,26):this.Ff=Ii(this.Ff,26)}});var e=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){Number.isInteger(t)&&(e=t)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};so(Oh,ll);var t2=function(){Oh.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!Li(this.Ff,14)},set:function(e){e?this.Ff=Di(this.Ff,14):this.Ff=Ii(this.Ff,14)}}),this.password=!0};so(t2,Oh);var Dt={CheckBox:{createAppearanceStream:function(){return{N:{On:Dt.CheckBox.YesNormal},D:{On:Dt.CheckBox.YesPushDown,Off:Dt.CheckBox.OffPushDown}}},YesPushDown:function(e){var t=Il(e);t.scope=e.scope;var r=[],n=e.scope.internal.getFont(e.fontName,e.fontStyle).id,i=e.scope.__private__.encodeColorString(e.color),a=h4(e,e.caption);return r.push("0.749023 g"),r.push("0 0 "+pr(Dt.internal.getWidth(e))+" "+pr(Dt.internal.getHeight(e))+" re"),r.push("f"),r.push("BMC"),r.push("q"),r.push("0 0 1 rg"),r.push("/"+n+" "+pr(a.fontSize)+" Tf "+i),r.push("BT"),r.push(a.text),r.push("ET"),r.push("Q"),r.push("EMC"),t.stream=r.join(`
`),t},YesNormal:function(e){var t=Il(e);t.scope=e.scope;var r=e.scope.internal.getFont(e.fontName,e.fontStyle).id,n=e.scope.__private__.encodeColorString(e.color),i=[],a=Dt.internal.getHeight(e),s=Dt.internal.getWidth(e),o=h4(e,e.caption);return i.push("1 g"),i.push("0 0 "+pr(s)+" "+pr(a)+" re"),i.push("f"),i.push("q"),i.push("0 0 1 rg"),i.push("0 0 "+pr(s-1)+" "+pr(a-1)+" re"),i.push("W"),i.push("n"),i.push("0 g"),i.push("BT"),i.push("/"+r+" "+pr(o.fontSize)+" Tf "+n),i.push(o.text),i.push("ET"),i.push("Q"),t.stream=i.join(`
`),t},OffPushDown:function(e){var t=Il(e);t.scope=e.scope;var r=[];return r.push("0.749023 g"),r.push("0 0 "+pr(Dt.internal.getWidth(e))+" "+pr(Dt.internal.getHeight(e))+" re"),r.push("f"),t.stream=r.join(`
`),t}},RadioButton:{Circle:{createAppearanceStream:function(e){var t={D:{Off:Dt.RadioButton.Circle.OffPushDown},N:{}};return t.N[e]=Dt.RadioButton.Circle.YesNormal,t.D[e]=Dt.RadioButton.Circle.YesPushDown,t},getCA:function(){return"l"},YesNormal:function(e){var t=Il(e);t.scope=e.scope;var r=[],n=Dt.internal.getWidth(e)<=Dt.internal.getHeight(e)?Dt.internal.getWidth(e)/4:Dt.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var i=Dt.internal.Bezier_C,a=Number((n*i).toFixed(5));return r.push("q"),r.push("1 0 0 1 "+Ku(Dt.internal.getWidth(e)/2)+" "+Ku(Dt.internal.getHeight(e)/2)+" cm"),r.push(n+" 0 m"),r.push(n+" "+a+" "+a+" "+n+" 0 "+n+" c"),r.push("-"+a+" "+n+" -"+n+" "+a+" -"+n+" 0 c"),r.push("-"+n+" -"+a+" -"+a+" -"+n+" 0 -"+n+" c"),r.push(a+" -"+n+" "+n+" -"+a+" "+n+" 0 c"),r.push("f"),r.push("Q"),t.stream=r.join(`
`),t},YesPushDown:function(e){var t=Il(e);t.scope=e.scope;var r=[],n=Dt.internal.getWidth(e)<=Dt.internal.getHeight(e)?Dt.internal.getWidth(e)/4:Dt.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var i=Number((2*n).toFixed(5)),a=Number((i*Dt.internal.Bezier_C).toFixed(5)),s=Number((n*Dt.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+Ku(Dt.internal.getWidth(e)/2)+" "+Ku(Dt.internal.getHeight(e)/2)+" cm"),r.push(i+" 0 m"),r.push(i+" "+a+" "+a+" "+i+" 0 "+i+" c"),r.push("-"+a+" "+i+" -"+i+" "+a+" -"+i+" 0 c"),r.push("-"+i+" -"+a+" -"+a+" -"+i+" 0 -"+i+" c"),r.push(a+" -"+i+" "+i+" -"+a+" "+i+" 0 c"),r.push("f"),r.push("Q"),r.push("0 g"),r.push("q"),r.push("1 0 0 1 "+Ku(Dt.internal.getWidth(e)/2)+" "+Ku(Dt.internal.getHeight(e)/2)+" cm"),r.push(n+" 0 m"),r.push(n+" "+s+" "+s+" "+n+" 0 "+n+" c"),r.push("-"+s+" "+n+" -"+n+" "+s+" -"+n+" 0 c"),r.push("-"+n+" -"+s+" -"+s+" -"+n+" 0 -"+n+" c"),r.push(s+" -"+n+" "+n+" -"+s+" "+n+" 0 c"),r.push("f"),r.push("Q"),t.stream=r.join(`
`),t},OffPushDown:function(e){var t=Il(e);t.scope=e.scope;var r=[],n=Dt.internal.getWidth(e)<=Dt.internal.getHeight(e)?Dt.internal.getWidth(e)/4:Dt.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var i=Number((2*n).toFixed(5)),a=Number((i*Dt.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+Ku(Dt.internal.getWidth(e)/2)+" "+Ku(Dt.internal.getHeight(e)/2)+" cm"),r.push(i+" 0 m"),r.push(i+" "+a+" "+a+" "+i+" 0 "+i+" c"),r.push("-"+a+" "+i+" -"+i+" "+a+" -"+i+" 0 c"),r.push("-"+i+" -"+a+" -"+a+" -"+i+" 0 -"+i+" c"),r.push(a+" -"+i+" "+i+" -"+a+" "+i+" 0 c"),r.push("f"),r.push("Q"),t.stream=r.join(`
`),t}},Cross:{createAppearanceStream:function(e){var t={D:{Off:Dt.RadioButton.Cross.OffPushDown},N:{}};return t.N[e]=Dt.RadioButton.Cross.YesNormal,t.D[e]=Dt.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(e){var t=Il(e);t.scope=e.scope;var r=[],n=Dt.internal.calculateCross(e);return r.push("q"),r.push("1 1 "+pr(Dt.internal.getWidth(e)-2)+" "+pr(Dt.internal.getHeight(e)-2)+" re"),r.push("W"),r.push("n"),r.push(pr(n.x1.x)+" "+pr(n.x1.y)+" m"),r.push(pr(n.x2.x)+" "+pr(n.x2.y)+" l"),r.push(pr(n.x4.x)+" "+pr(n.x4.y)+" m"),r.push(pr(n.x3.x)+" "+pr(n.x3.y)+" l"),r.push("s"),r.push("Q"),t.stream=r.join(`
`),t},YesPushDown:function(e){var t=Il(e);t.scope=e.scope;var r=Dt.internal.calculateCross(e),n=[];return n.push("0.749023 g"),n.push("0 0 "+pr(Dt.internal.getWidth(e))+" "+pr(Dt.internal.getHeight(e))+" re"),n.push("f"),n.push("q"),n.push("1 1 "+pr(Dt.internal.getWidth(e)-2)+" "+pr(Dt.internal.getHeight(e)-2)+" re"),n.push("W"),n.push("n"),n.push(pr(r.x1.x)+" "+pr(r.x1.y)+" m"),n.push(pr(r.x2.x)+" "+pr(r.x2.y)+" l"),n.push(pr(r.x4.x)+" "+pr(r.x4.y)+" m"),n.push(pr(r.x3.x)+" "+pr(r.x3.y)+" l"),n.push("s"),n.push("Q"),t.stream=n.join(`
`),t},OffPushDown:function(e){var t=Il(e);t.scope=e.scope;var r=[];return r.push("0.749023 g"),r.push("0 0 "+pr(Dt.internal.getWidth(e))+" "+pr(Dt.internal.getHeight(e))+" re"),r.push("f"),t.stream=r.join(`
`),t}}},createDefaultAppearanceStream:function(e){var t=e.scope.internal.getFont(e.fontName,e.fontStyle).id,r=e.scope.__private__.encodeColorString(e.color);return"/"+t+" "+e.fontSize+" Tf "+r}};Dt.internal={Bezier_C:.551915024494,calculateCross:function(e){var t=Dt.internal.getWidth(e),r=Dt.internal.getHeight(e),n=Math.min(t,r);return{x1:{x:(t-n)/2,y:(r-n)/2+n},x2:{x:(t-n)/2+n,y:(r-n)/2},x3:{x:(t-n)/2,y:(r-n)/2},x4:{x:(t-n)/2+n,y:(r-n)/2+n}}}},Dt.internal.getWidth=function(e){var t=0;return un(e)==="object"&&(t=MI(e.Rect[2])),t},Dt.internal.getHeight=function(e){var t=0;return un(e)==="object"&&(t=MI(e.Rect[3])),t};var z2e=xi.addField=function(e){if(K2e(this,e),!(e instanceof ll))throw new Error("Invalid argument passed to jsPDF.addField.");var t;return(t=e).scope.internal.acroformPlugin.printedOut&&(t.scope.internal.acroformPlugin.printedOut=!1,t.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),t.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t),e.page=e.scope.internal.getCurrentPageInfo().pageNumber,this};xi.AcroFormChoiceField=N0,xi.AcroFormListBox=L0,xi.AcroFormComboBox=D0,xi.AcroFormEditBox=Jy,xi.AcroFormButton=ba,xi.AcroFormPushButton=Zy,xi.AcroFormRadioButton=I0,xi.AcroFormCheckBox=e2,xi.AcroFormTextField=Oh,xi.AcroFormPasswordField=t2,xi.AcroFormAppearance=Dt,xi.AcroForm={ChoiceField:N0,ListBox:L0,ComboBox:D0,EditBox:Jy,Button:ba,PushButton:Zy,RadioButton:I0,CheckBox:e2,TextField:Oh,PasswordField:t2,Appearance:Dt},jt.AcroForm={ChoiceField:N0,ListBox:L0,ComboBox:D0,EditBox:Jy,Button:ba,PushButton:Zy,RadioButton:I0,CheckBox:e2,TextField:Oh,PasswordField:t2,Appearance:Dt};jt.AcroForm;function YK(e){return e.reduce(function(t,r,n){return t[r]=n,t},{})}(function(e){var t="addImage_";e.__addimage__={};var r="UNKNOWN",n={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},i=e.__addimage__.getImageFileTypeByImageData=function(I,Q){var W,J,fe,G,se,ge=r;if((Q=Q||r)==="RGBA"||I.data!==void 0&&I.data instanceof Uint8ClampedArray&&"height"in I&&"width"in I)return"RGBA";if(k(I))for(se in n)for(fe=n[se],W=0;W<fe.length;W+=1){for(G=!0,J=0;J<fe[W].length;J+=1)if(fe[W][J]!==void 0&&fe[W][J]!==I[J]){G=!1;break}if(G===!0){ge=se;break}}else for(se in n)for(fe=n[se],W=0;W<fe.length;W+=1){for(G=!0,J=0;J<fe[W].length;J+=1)if(fe[W][J]!==void 0&&fe[W][J]!==I.charCodeAt(J)){G=!1;break}if(G===!0){ge=se;break}}return ge===r&&Q!==r&&(ge=Q),ge},a=function I(Q){for(var W=this.internal.write,J=this.internal.putStream,fe=(0,this.internal.getFilters)();fe.indexOf("FlateEncode")!==-1;)fe.splice(fe.indexOf("FlateEncode"),1);Q.objectId=this.internal.newObject();var G=[];if(G.push({key:"Type",value:"/XObject"}),G.push({key:"Subtype",value:"/Image"}),G.push({key:"Width",value:Q.width}),G.push({key:"Height",value:Q.height}),Q.colorSpace===b.INDEXED?G.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(Q.palette.length/3-1)+" "+("sMask"in Q&&Q.sMask!==void 0?Q.objectId+2:Q.objectId+1)+" 0 R]"}):(G.push({key:"ColorSpace",value:"/"+Q.colorSpace}),Q.colorSpace===b.DEVICE_CMYK&&G.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),G.push({key:"BitsPerComponent",value:Q.bitsPerComponent}),"decodeParameters"in Q&&Q.decodeParameters!==void 0&&G.push({key:"DecodeParms",value:"<<"+Q.decodeParameters+">>"}),"transparency"in Q&&Array.isArray(Q.transparency)&&Q.transparency.length>0){for(var se="",ge=0,ye=Q.transparency.length;ge<ye;ge++)se+=Q.transparency[ge]+" "+Q.transparency[ge]+" ";G.push({key:"Mask",value:"["+se+"]"})}Q.sMask!==void 0&&G.push({key:"SMask",value:Q.objectId+1+" 0 R"});var _e=Q.filter!==void 0?["/"+Q.filter]:void 0;if(J({data:Q.data,additionalKeyValues:G,alreadyAppliedFilters:_e,objectId:Q.objectId}),W("endobj"),"sMask"in Q&&Q.sMask!==void 0){var Z,L=(Z=Q.sMaskBitsPerComponent)!==null&&Z!==void 0?Z:Q.bitsPerComponent,j={width:Q.width,height:Q.height,colorSpace:"DeviceGray",bitsPerComponent:L,data:Q.sMask};"filter"in Q&&(j.decodeParameters="/Predictor ".concat(Q.predictor," /Colors 1 /BitsPerComponent ").concat(L," /Columns ").concat(Q.width),j.filter=Q.filter),I.call(this,j)}if(Q.colorSpace===b.INDEXED){var K=this.internal.newObject();J({data:R(new Uint8Array(Q.palette)),objectId:K}),W("endobj")}},s=function(){var I=this.internal.collections[t+"images"];for(var Q in I)a.call(this,I[Q])},o=function(){var I,Q=this.internal.collections[t+"images"],W=this.internal.write;for(var J in Q)W("/I"+(I=Q[J]).index,I.objectId,"0","R")},l=function(){this.internal.collections[t+"images"]||(this.internal.collections[t+"images"]={},this.internal.events.subscribe("putResources",s),this.internal.events.subscribe("putXobjectDict",o))},c=function(){var I=this.internal.collections[t+"images"];return l.call(this),I},f=function(){return Object.keys(this.internal.collections[t+"images"]).length},h=function(I){return typeof e["process"+I.toUpperCase()]=="function"},p=function(I){return un(I)==="object"&&I.nodeType===1},g=function(I,Q){if(I.nodeName==="IMG"&&I.hasAttribute("src")){var W=""+I.getAttribute("src");if(W.indexOf("data:image/")===0)return Xy(unescape(W).split("base64,").pop());var J=e.loadFile(W,!0);if(J!==void 0)return J}if(I.nodeName==="CANVAS"){if(I.width===0||I.height===0)throw new Error("Given canvas must have data. Canvas width: "+I.width+", height: "+I.height);var fe;switch(Q){case"PNG":fe="image/png";break;case"WEBP":fe="image/webp";break;default:fe="image/jpeg"}return Xy(I.toDataURL(fe,1).split("base64,").pop())}},y=function(I){var Q=this.internal.collections[t+"images"];if(Q){for(var W in Q)if(I===Q[W].alias)return Q[W]}},m=function(I,Q,W){return I||Q||(I=-96,Q=-96),I<0&&(I=-1*W.width*72/I/this.internal.scaleFactor),Q<0&&(Q=-1*W.height*72/Q/this.internal.scaleFactor),I===0&&(I=Q*W.width/W.height),Q===0&&(Q=I*W.height/W.width),[I,Q]},w=function(I,Q,W,J,fe,G){var se=m.call(this,W,J,fe),ge=this.internal.getCoordinateString,ye=this.internal.getVerticalCoordinateString,_e=c.call(this);if(W=se[0],J=se[1],_e[fe.index]=fe,G){G*=Math.PI/180;var Z=Math.cos(G),L=Math.sin(G),j=function(q){return q.toFixed(4)},K=[j(Z),j(L),j(-1*L),j(Z),0,0,"cm"]}this.internal.write("q"),G?(this.internal.write([1,"0","0",1,ge(I),ye(Q+J),"cm"].join(" ")),this.internal.write(K.join(" ")),this.internal.write([ge(W),"0","0",ge(J),"0","0","cm"].join(" "))):this.internal.write([ge(W),"0","0",ge(J),ge(I),ye(Q+J),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+fe.index+" Do"),this.internal.write("Q")},b=e.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};e.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var E=e.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},S=e.__addimage__.sHashCode=function(I){var Q,W,J=0;if(typeof I=="string")for(W=I.length,Q=0;Q<W;Q++)J=(J<<5)-J+I.charCodeAt(Q),J|=0;else if(k(I))for(W=I.byteLength/2,Q=0;Q<W;Q++)J=(J<<5)-J+I[Q],J|=0;return J},T=e.__addimage__.validateStringAsBase64=function(I){(I=I||"").toString().trim();var Q=!0;return I.length===0&&(Q=!1),I.length%4!=0&&(Q=!1),/^[A-Za-z0-9+/]+$/.test(I.substr(0,I.length-2))===!1&&(Q=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(I.substr(-2))===!1&&(Q=!1),Q},D=e.__addimage__.extractImageFromDataUrl=function(I){if(I==null||!(I=I.trim()).startsWith("data:"))return null;var Q=I.indexOf(",");return Q<0?null:I.substring(0,Q).trim().endsWith("base64")?I.substring(Q+1):null};e.__addimage__.isArrayBuffer=function(I){return I instanceof ArrayBuffer};var k=e.__addimage__.isArrayBufferView=function(I){return I instanceof Int8Array||I instanceof Uint8Array||I instanceof Uint8ClampedArray||I instanceof Int16Array||I instanceof Uint16Array||I instanceof Int32Array||I instanceof Uint32Array||I instanceof Float32Array||I instanceof Float64Array},P=e.__addimage__.binaryStringToUint8Array=function(I){for(var Q=I.length,W=new Uint8Array(Q),J=0;J<Q;J++)W[J]=I.charCodeAt(J);return W},R=e.__addimage__.arrayBufferToBinaryString=function(I){for(var Q="",W=k(I)?I:new Uint8Array(I),J=0;J<W.length;J+=8192)Q+=String.fromCharCode.apply(null,W.subarray(J,J+8192));return Q};e.addImage=function(){var I,Q,W,J,fe,G,se,ge,ye;if(typeof arguments[1]=="number"?(Q=r,W=arguments[1],J=arguments[2],fe=arguments[3],G=arguments[4],se=arguments[5],ge=arguments[6],ye=arguments[7]):(Q=arguments[1],W=arguments[2],J=arguments[3],fe=arguments[4],G=arguments[5],se=arguments[6],ge=arguments[7],ye=arguments[8]),un(I=arguments[0])==="object"&&!p(I)&&"imageData"in I){var _e=I;I=_e.imageData,Q=_e.format||Q||r,W=_e.x||W||0,J=_e.y||J||0,fe=_e.w||_e.width||fe,G=_e.h||_e.height||G,se=_e.alias||se,ge=_e.compression||ge,ye=_e.rotation||_e.angle||ye}var Z=this.internal.getFilters();if(ge===void 0&&Z.indexOf("FlateEncode")!==-1&&(ge="SLOW"),isNaN(W)||isNaN(J))throw new Error("Invalid coordinates passed to jsPDF.addImage");l.call(this);var L=O.call(this,I,Q,se,ge);return w.call(this,W,J,fe,G,L,ye),this};var O=function(I,Q,W,J){var fe,G,se;if(typeof I=="string"&&i(I)===r){I=unescape(I);var ge=V(I,!1);(ge!==""||(ge=e.loadFile(I,!0))!==void 0)&&(I=ge)}if(p(I)&&(I=g(I,Q)),Q=i(I,Q),!h(Q))throw new Error("addImage does not support files of type '"+Q+"', please ensure that a plugin for '"+Q+"' support is added.");if(((se=W)==null||se.length===0)&&(W=(function(ye){return typeof ye=="string"||k(ye)?S(ye):k(ye.data)?S(ye.data):null})(I)),(fe=y.call(this,W))||(I instanceof Uint8Array||Q==="RGBA"||(G=I,I=P(I)),fe=this["process"+Q.toUpperCase()](I,f.call(this),W,(function(ye){return ye&&typeof ye=="string"&&(ye=ye.toUpperCase()),ye in e.image_compression?ye:E.NONE})(J),G)),!fe)throw new Error("An unknown error occurred whilst processing the image.");return fe},V=e.__addimage__.convertBase64ToBinaryString=function(I,Q){Q=typeof Q!="boolean"||Q;var W,J="";if(typeof I=="string"){var fe;W=(fe=D(I))!==null&&fe!==void 0?fe:I;try{J=Xy(W)}catch(G){if(Q)throw T(W)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+G.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return J};e.getImageProperties=function(I){var Q,W,J="";if(p(I)&&(I=g(I)),typeof I=="string"&&i(I)===r&&((J=V(I,!1))===""&&(J=e.loadFile(I)||""),I=J),W=i(I),!h(W))throw new Error("addImage does not support files of type '"+W+"', please ensure that a plugin for '"+W+"' support is added.");if(I instanceof Uint8Array||(I=P(I)),!(Q=this["process"+W.toUpperCase()](I)))throw new Error("An unknown error occurred whilst processing the image");return Q.fileType=W,Q}})(jt.API),(function(e){var t=function(r){if(r!==void 0&&r!="")return!0};jt.API.events.push(["addPage",function(r){this.internal.getPageInfo(r.pageNumber).pageContext.annotations=[]}]),e.events.push(["putPage",function(r){for(var n,i,a,s=this.internal.getCoordinateString,o=this.internal.getVerticalCoordinateString,l=this.internal.getPageInfoByObjId(r.objId),c=r.pageContext.annotations,f=!1,h=0;h<c.length&&!f;h++)switch((n=c[h]).type){case"link":(t(n.options.url)||t(n.options.pageNumber))&&(f=!0);break;case"reference":case"text":case"freetext":f=!0}if(f!=0){this.internal.write("/Annots [");for(var p=0;p<c.length;p++){n=c[p];var g=this.internal.pdfEscape,y=this.internal.getEncryptor(r.objId);switch(n.type){case"reference":this.internal.write(" "+n.object.objId+" 0 R ");break;case"text":var m=this.internal.newAdditionalObject(),w=this.internal.newAdditionalObject(),b=this.internal.getEncryptor(m.objId),E=n.title||"Note";a="<</Type /Annot /Subtype /Text "+(i="/Rect ["+s(n.bounds.x)+" "+o(n.bounds.y+n.bounds.h)+" "+s(n.bounds.x+n.bounds.w)+" "+o(n.bounds.y)+"] ")+"/Contents ("+g(b(n.contents))+")",a+=" /Popup "+w.objId+" 0 R",a+=" /P "+l.objId+" 0 R",a+=" /T ("+g(b(E))+") >>",m.content=a;var S=m.objId+" 0 R";a="<</Type /Annot /Subtype /Popup "+(i="/Rect ["+s(n.bounds.x+30)+" "+o(n.bounds.y+n.bounds.h)+" "+s(n.bounds.x+n.bounds.w+30)+" "+o(n.bounds.y)+"] ")+" /Parent "+S,n.open&&(a+=" /Open true"),a+=" >>",w.content=a,this.internal.write(m.objId,"0 R",w.objId,"0 R");break;case"freetext":i="/Rect ["+s(n.bounds.x)+" "+o(n.bounds.y)+" "+s(n.bounds.x+n.bounds.w)+" "+o(n.bounds.y+n.bounds.h)+"] ";var T=n.color||"#000000";a="<</Type /Annot /Subtype /FreeText "+i+"/Contents ("+g(y(n.contents))+")",a+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+T+")",a+=" /Border [0 0 0]",a+=" >>",this.internal.write(a);break;case"link":if(n.options.name){var D=this.annotations._nameMap[n.options.name];n.options.pageNumber=D.page,n.options.top=D.y}else n.options.top||(n.options.top=0);if(i="/Rect ["+n.finalBounds.x+" "+n.finalBounds.y+" "+n.finalBounds.w+" "+n.finalBounds.h+"] ",a="",n.options.url)a="<</Type /Annot /Subtype /Link "+i+"/Border [0 0 0] /A <</S /URI /URI ("+g(y(n.options.url))+") >>";else if(n.options.pageNumber)switch(a="<</Type /Annot /Subtype /Link "+i+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(n.options.pageNumber).objId+" 0 R",n.options.magFactor=n.options.magFactor||"XYZ",n.options.magFactor){case"Fit":a+=" /Fit]";break;case"FitH":a+=" /FitH "+n.options.top+"]";break;case"FitV":n.options.left=n.options.left||0,a+=" /FitV "+n.options.left+"]";break;default:var k=o(n.options.top);n.options.left=n.options.left||0,n.options.zoom===void 0&&(n.options.zoom=0),a+=" /XYZ "+n.options.left+" "+k+" "+n.options.zoom+"]"}a!=""&&(a+=" >>",this.internal.write(a))}}this.internal.write("]")}}]),e.createAnnotation=function(r){var n=this.internal.getCurrentPageInfo();switch(r.type){case"link":this.link(r.bounds.x,r.bounds.y,r.bounds.w,r.bounds.h,r);break;case"text":case"freetext":n.pageContext.annotations.push(r)}},e.link=function(r,n,i,a,s){var o=this.internal.getCurrentPageInfo(),l=this.internal.getCoordinateString,c=this.internal.getVerticalCoordinateString;o.pageContext.annotations.push({finalBounds:{x:l(r),y:c(n),w:l(r+i),h:c(n+a)},options:s,type:"link"})},e.textWithLink=function(r,n,i,a){var s,o,l=this.getTextWidth(r),c=this.internal.getLineHeight()/this.internal.scaleFactor;if(a.maxWidth!==void 0){o=a.maxWidth;var f=this.splitTextToSize(r,o).length;s=Math.ceil(c*f)}else o=l,s=c;return this.text(r,n,i,a),i+=.2*c,a.align==="center"&&(n-=l/2),a.align==="right"&&(n-=l),this.link(n,i-c,o,s,a),l},e.getTextWidth=function(r){var n=this.internal.getFontSize();return this.getStringUnitWidth(r)*n/this.internal.scaleFactor}})(jt.API),(function(e){var t={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},r={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},n={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},i=[1570,1571,1573,1575];e.__arabicParser__={};var a=e.__arabicParser__.isInArabicSubstitutionA=function(m){return t[m.charCodeAt(0)]!==void 0},s=e.__arabicParser__.isArabicLetter=function(m){return typeof m=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(m)},o=e.__arabicParser__.isArabicEndLetter=function(m){return s(m)&&a(m)&&t[m.charCodeAt(0)].length<=2},l=e.__arabicParser__.isArabicAlfLetter=function(m){return s(m)&&i.indexOf(m.charCodeAt(0))>=0};e.__arabicParser__.arabicLetterHasIsolatedForm=function(m){return s(m)&&a(m)&&t[m.charCodeAt(0)].length>=1};var c=e.__arabicParser__.arabicLetterHasFinalForm=function(m){return s(m)&&a(m)&&t[m.charCodeAt(0)].length>=2};e.__arabicParser__.arabicLetterHasInitialForm=function(m){return s(m)&&a(m)&&t[m.charCodeAt(0)].length>=3};var f=e.__arabicParser__.arabicLetterHasMedialForm=function(m){return s(m)&&a(m)&&t[m.charCodeAt(0)].length==4},h=e.__arabicParser__.resolveLigatures=function(m){var w=0,b=r,E="",S=0;for(w=0;w<m.length;w+=1)b[m.charCodeAt(w)]!==void 0?(S++,typeof(b=b[m.charCodeAt(w)])=="number"&&(E+=String.fromCharCode(b),b=r,S=0),w===m.length-1&&(b=r,E+=m.charAt(w-(S-1)),w-=S-1,S=0)):(b=r,E+=m.charAt(w-S),w-=S,S=0);return E};e.__arabicParser__.isArabicDiacritic=function(m){return m!==void 0&&n[m.charCodeAt(0)]!==void 0};var p=e.__arabicParser__.getCorrectForm=function(m,w,b){return s(m)?a(m)===!1?-1:!c(m)||!s(w)&&!s(b)||!s(b)&&o(w)||o(m)&&!s(w)||o(m)&&l(w)||o(m)&&o(w)?0:f(m)&&s(w)&&!o(w)&&s(b)&&c(b)?3:o(m)||!s(b)?1:2:-1},g=function(m){var w=0,b=0,E=0,S="",T="",D="",k=(m=m||"").split("\\s+"),P=[];for(w=0;w<k.length;w+=1){for(P.push(""),b=0;b<k[w].length;b+=1)S=k[w][b],T=k[w][b-1],D=k[w][b+1],s(S)?(E=p(S,T,D),P[w]+=E!==-1?String.fromCharCode(t[S.charCodeAt(0)][E]):S):P[w]+=S;P[w]=h(P[w])}return P.join(" ")},y=e.__arabicParser__.processArabic=e.processArabic=function(){var m,w=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,b=[];if(Array.isArray(w)){var E=0;for(b=[],E=0;E<w.length;E+=1)Array.isArray(w[E])?b.push([g(w[E][0]),w[E][1],w[E][2]]):b.push([g(w[E])]);m=b}else m=g(w);return typeof arguments[0]=="string"?m:(arguments[0].text=m,arguments[0])};e.events.push(["preProcessText",y])})(jt.API),jt.API.autoPrint=function(e){var t;return(e=e||{}).variant=e.variant||"non-conform",e.variant==="javascript"?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",function(){t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+t+" 0 R")})),this},(function(e){var t=function(){var r=void 0;Object.defineProperty(this,"pdf",{get:function(){return r},set:function(o){r=o}});var n=150;Object.defineProperty(this,"width",{get:function(){return n},set:function(o){n=isNaN(o)||Number.isInteger(o)===!1||o<0?150:o,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=n+1)}});var i=300;Object.defineProperty(this,"height",{get:function(){return i},set:function(o){i=isNaN(o)||Number.isInteger(o)===!1||o<0?300:o,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=i+1)}});var a=[];Object.defineProperty(this,"childNodes",{get:function(){return a},set:function(o){a=o}});var s={};Object.defineProperty(this,"style",{get:function(){return s},set:function(o){s=o}}),Object.defineProperty(this,"parentNode",{})};t.prototype.getContext=function(r,n){var i;if((r=r||"2d")!=="2d")return null;for(i in n)this.pdf.context2d.hasOwnProperty(i)&&(this.pdf.context2d[i]=n[i]);return this.pdf.context2d._canvas=this,this.pdf.context2d},t.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},e.events.push(["initialized",function(){this.canvas=new t,this.canvas.pdf=this}])})(jt.API),(function(e){var t={left:0,top:0,bottom:0,right:0},r=!1,n=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},t),this.internal.__cell__.margins.width=this.getPageWidth(),i.call(this))},i=function(){this.internal.__cell__.lastCell=new a,this.internal.__cell__.pages=1},a=function(){var l=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return l},set:function(m){l=m}});var c=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return c},set:function(m){c=m}});var f=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return f},set:function(m){f=m}});var h=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return h},set:function(m){h=m}});var p=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return p},set:function(m){p=m}});var g=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return g},set:function(m){g=m}});var y=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return y},set:function(m){y=m}}),this};a.prototype.clone=function(){return new a(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},a.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},e.setHeaderFunction=function(l){return n.call(this),this.internal.__cell__.headerFunction=typeof l=="function"?l:void 0,this},e.getTextDimensions=function(l,c){n.call(this);var f=(c=c||{}).fontSize||this.getFontSize(),h=c.font||this.getFont(),p=c.scaleFactor||this.internal.scaleFactor,g=0,y=0,m=0,w=this;if(!Array.isArray(l)&&typeof l!="string"){if(typeof l!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");l=String(l)}var b=c.maxWidth;b>0?typeof l=="string"?l=this.splitTextToSize(l,b):Object.prototype.toString.call(l)==="[object Array]"&&(l=l.reduce(function(S,T){return S.concat(w.splitTextToSize(T,b))},[])):l=Array.isArray(l)?l:[l];for(var E=0;E<l.length;E++)g<(m=this.getStringUnitWidth(l[E],{font:h})*f)&&(g=m);return g!==0&&(y=l.length),{w:g/=p,h:Math.max((y*f*this.getLineHeightFactor()-f*(this.getLineHeightFactor()-1))/p,0)}},e.cellAddPage=function(){n.call(this),this.addPage();var l=this.internal.__cell__.margins||t;return this.internal.__cell__.lastCell=new a(l.left,l.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var s=e.cell=function(){var l;l=arguments[0]instanceof a?arguments[0]:new a(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]),n.call(this);var c=this.internal.__cell__.lastCell,f=this.internal.__cell__.padding,h=this.internal.__cell__.margins||t,p=this.internal.__cell__.tableHeaderRow,g=this.internal.__cell__.printHeaders;return c.lineNumber!==void 0&&(c.lineNumber===l.lineNumber?(l.x=(c.x||0)+(c.width||0),l.y=c.y||0):c.y+c.height+l.height+h.bottom>this.getPageHeight()?(this.cellAddPage(),l.y=h.top,g&&p&&(this.printHeaderRow(l.lineNumber,!0),l.y+=p[0].height)):l.y=c.y+c.height||l.y),l.text[0]!==void 0&&(this.rect(l.x,l.y,l.width,l.height,r===!0?"FD":void 0),l.align==="right"?this.text(l.text,l.x+l.width-f,l.y+f,{align:"right",baseline:"top"}):l.align==="center"?this.text(l.text,l.x+l.width/2,l.y+f,{align:"center",baseline:"top",maxWidth:l.width-f-f}):this.text(l.text,l.x+f,l.y+f,{align:"left",baseline:"top",maxWidth:l.width-f-f})),this.internal.__cell__.lastCell=l,this};e.table=function(l,c,f,h,p){if(n.call(this),!f)throw new Error("No data for PDF table.");var g,y,m,w,b=[],E=[],S=[],T={},D={},k=[],P=[],R=(p=p||{}).autoSize||!1,O=p.printHeaders!==!1,V=p.css&&p.css["font-size"]!==void 0?16*p.css["font-size"]:p.fontSize||12,I=p.margins||Object.assign({width:this.getPageWidth()},t),Q=typeof p.padding=="number"?p.padding:3,W=p.headerBackgroundColor||"#c8c8c8",J=p.headerTextColor||"#000";if(i.call(this),this.internal.__cell__.printHeaders=O,this.internal.__cell__.margins=I,this.internal.__cell__.table_font_size=V,this.internal.__cell__.padding=Q,this.internal.__cell__.headerBackgroundColor=W,this.internal.__cell__.headerTextColor=J,this.setFontSize(V),h==null)E=b=Object.keys(f[0]),S=b.map(function(){return"left"});else if(Array.isArray(h)&&un(h[0])==="object")for(b=h.map(function(_e){return _e.name}),E=h.map(function(_e){return _e.prompt||_e.name||""}),S=h.map(function(_e){return _e.align||"left"}),g=0;g<h.length;g+=1)D[h[g].name]=.7499990551181103*h[g].width;else Array.isArray(h)&&typeof h[0]=="string"&&(E=b=h,S=b.map(function(){return"left"}));if(R||Array.isArray(h)&&typeof h[0]=="string")for(g=0;g<b.length;g+=1){for(T[w=b[g]]=f.map(function(_e){return _e[w]}),this.setFont(void 0,"bold"),k.push(this.getTextDimensions(E[g],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),y=T[w],this.setFont(void 0,"normal"),m=0;m<y.length;m+=1)k.push(this.getTextDimensions(y[m],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);D[w]=Math.max.apply(null,k)+Q+Q,k=[]}if(O){var fe={};for(g=0;g<b.length;g+=1)fe[b[g]]={},fe[b[g]].text=E[g],fe[b[g]].align=S[g];var G=o.call(this,fe,D);P=b.map(function(_e){return new a(l,c,D[_e],G,fe[_e].text,void 0,fe[_e].align)}),this.setTableHeaderRow(P),this.printHeaderRow(1,!1)}var se=h.reduce(function(_e,Z){return _e[Z.name]=Z.align,_e},{});for(g=0;g<f.length;g+=1){"rowStart"in p&&p.rowStart instanceof Function&&p.rowStart({row:g,data:f[g]},this);var ge=o.call(this,f[g],D);for(m=0;m<b.length;m+=1){var ye=f[g][b[m]];"cellStart"in p&&p.cellStart instanceof Function&&p.cellStart({row:g,col:m,data:ye},this),s.call(this,new a(l,c,D[b[m]],ge,ye,g+2,se[b[m]]))}}return this.internal.__cell__.table_x=l,this.internal.__cell__.table_y=c,this};var o=function(l,c){var f=this.internal.__cell__.padding,h=this.internal.__cell__.table_font_size,p=this.internal.scaleFactor;return Object.keys(l).map(function(g){var y=l[g];return this.splitTextToSize(y.hasOwnProperty("text")?y.text:y,c[g]-f-f)},this).map(function(g){return this.getLineHeightFactor()*g.length*h/p+f+f},this).reduce(function(g,y){return Math.max(g,y)},0)};e.setTableHeaderRow=function(l){n.call(this),this.internal.__cell__.tableHeaderRow=l},e.printHeaderRow=function(l,c){if(n.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var f;if(r=!0,typeof this.internal.__cell__.headerFunction=="function"){var h=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new a(h[0],h[1],h[2],h[3],void 0,-1)}this.setFont(void 0,"bold");for(var p=[],g=0;g<this.internal.__cell__.tableHeaderRow.length;g+=1){f=this.internal.__cell__.tableHeaderRow[g].clone(),c&&(f.y=this.internal.__cell__.margins.top||0,p.push(f)),f.lineNumber=l;var y=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),s.call(this,f),this.setTextColor(y)}p.length>0&&this.setTableHeaderRow(p),this.setFont(void 0,"normal"),r=!1}})(jt.API);var $K={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},XK=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],d4=YK(XK),JK=[100,200,300,400,500,600,700,800,900],V2e=YK(JK);function DC(e){var t=e.family.replace(/"|'/g,"").toLowerCase(),r=(function(a){return $K[a=a||"normal"]?a:"normal"})(e.style),n=(function(a){return a?typeof a=="number"?a>=100&&a<=900&&a%100==0?a:400:/^\d00$/.test(a)?parseInt(a):a==="bold"?700:400:400})(e.weight),i=(function(a){return typeof d4[a=a||"normal"]=="number"?a:"normal"})(e.stretch);return{family:t,style:r,weight:n,stretch:i,src:e.src||[],ref:e.ref||{name:t,style:[i,r,n].join(" ")}}}function PI(e,t,r,n){var i;for(i=r;i>=0&&i<t.length;i+=n)if(e[t[i]])return e[t[i]];for(i=r;i>=0&&i<t.length;i-=n)if(e[t[i]])return e[t[i]]}var G2e={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},kI={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function QI(e){return[e.stretch,e.style,e.weight,e.family].join(" ")}function RI(e){return e.trimLeft()}function q2e(e,t){for(var r=0;r<e.length;){if(e.charAt(r)===t)return[e.substring(0,r),e.substring(r+1)];r+=1}return null}function W2e(e){var t=e.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return t===null?null:[t[0],e.substring(t[0].length)]}var hy,jI,HI,l0,dy,KI,zI,VI,IC=["times"];function GI(e,t,r,n,i){var a=4,s=WI;switch(i){case jt.API.image_compression.FAST:a=1,s=qI;break;case jt.API.image_compression.MEDIUM:a=6,s=YI;break;case jt.API.image_compression.SLOW:a=9,s=$I}e=(function(l,c,f,h){for(var p,g=l.length/c,y=new Uint8Array(l.length+g),m=[Y2e,qI,WI,YI,$I],w=0;w<g;w+=1){var b=w*c,E=l.subarray(b,b+c);if(h)y.set(h(E,f,p),b+w);else{for(var S=m.length,T=[],D=0;D<S;D+=1)T[D]=m[D](E,f,p);var k=X2e(T.concat());y.set(T[k],b+w)}p=E}return y})(e,t,Math.ceil(r*n/8),s);var o=o4(e,{level:a});return jt.API.__addimage__.arrayBufferToBinaryString(o)}function Y2e(e){var t=Array.apply([],e);return t.unshift(0),t}function qI(e,t){var r=e.length,n=[];n[0]=1;for(var i=0;i<r;i+=1){var a=e[i-t]||0;n[i+1]=e[i]-a+256&255}return n}function WI(e,t,r){var n=e.length,i=[];i[0]=2;for(var a=0;a<n;a+=1){var s=r&&r[a]||0;i[a+1]=e[a]-s+256&255}return i}function YI(e,t,r){var n=e.length,i=[];i[0]=3;for(var a=0;a<n;a+=1){var s=e[a-t]||0,o=r&&r[a]||0;i[a+1]=e[a]+256-(s+o>>>1)&255}return i}function $I(e,t,r){var n=e.length,i=[];i[0]=4;for(var a=0;a<n;a+=1){var s=$2e(e[a-t]||0,r&&r[a]||0,r&&r[a-t]||0);i[a+1]=e[a]-s+256&255}return i}function $2e(e,t,r){if(e===t&&t===r)return e;var n=Math.abs(t-r),i=Math.abs(e-r),a=Math.abs(e+t-r-r);return n<=i&&n<=a?e:i<=a?t:r}function X2e(e){var t=e.map(function(r){return r.reduce(function(n,i){return n+Math.abs(i)},0)});return t.indexOf(Math.min.apply(null,t))}function MC(e,t,r){var n=t*r,i=Math.floor(n/8),a=16-(n-8*i+r),s=(1<<r)-1;return ZK(e,i)>>a&s}function XI(e,t,r,n){var i=r*n,a=Math.floor(i/8),s=16-(i-8*a+n),o=(1<<n)-1,l=(t&o)<<s;(function(c,f,h){if(f+1<c.byteLength)c.setUint16(f,h,!1);else{var p=h>>8&255;c.setUint8(f,p)}})(e,a,ZK(e,a)&~(o<<s)&65535|l)}function ZK(e,t){return t+1<e.byteLength?e.getUint16(t,!1):e.getUint8(t)<<8}function J2e(e){var t=0;if(e[t++]!==71||e[t++]!==73||e[t++]!==70||e[t++]!==56||(e[t++]+1&253)!=56||e[t++]!==97)throw new Error("Invalid GIF 87a/89a header.");var r=e[t++]|e[t++]<<8,n=e[t++]|e[t++]<<8,i=e[t++],a=i>>7,s=1<<1+(7&i);e[t++],e[t++];var o=null,l=null;a&&(o=t,l=s,t+=3*s);var c=!0,f=[],h=0,p=null,g=0,y=null;for(this.width=r,this.height=n;c&&t<e.length;)switch(e[t++]){case 33:switch(e[t++]){case 255:if(e[t]!==11||e[t+1]==78&&e[t+2]==69&&e[t+3]==84&&e[t+4]==83&&e[t+5]==67&&e[t+6]==65&&e[t+7]==80&&e[t+8]==69&&e[t+9]==50&&e[t+10]==46&&e[t+11]==48&&e[t+12]==3&&e[t+13]==1&&e[t+16]==0)t+=14,y=e[t++]|e[t++]<<8,t++;else for(t+=12;;){if(!((I=e[t++])>=0))throw Error("Invalid block size");if(I===0)break;t+=I}break;case 249:if(e[t++]!==4||e[t+4]!==0)throw new Error("Invalid graphics extension block.");var m=e[t++];h=e[t++]|e[t++]<<8,p=e[t++],1&m||(p=null),g=m>>2&7,t++;break;case 254:for(;;){if(!((I=e[t++])>=0))throw Error("Invalid block size");if(I===0)break;t+=I}break;default:throw new Error("Unknown graphic control label: 0x"+e[t-1].toString(16))}break;case 44:var w=e[t++]|e[t++]<<8,b=e[t++]|e[t++]<<8,E=e[t++]|e[t++]<<8,S=e[t++]|e[t++]<<8,T=e[t++],D=T>>6&1,k=1<<1+(7&T),P=o,R=l,O=!1;T>>7&&(O=!0,P=t,R=k,t+=3*k);var V=t;for(t++;;){var I;if(!((I=e[t++])>=0))throw Error("Invalid block size");if(I===0)break;t+=I}f.push({x:w,y:b,width:E,height:S,has_local_palette:O,palette_offset:P,palette_size:R,data_offset:V,data_length:t-V,transparent_index:p,interlaced:!!D,delay:h,disposal:g});break;case 59:c=!1;break;default:throw new Error("Unknown gif block: 0x"+e[t-1].toString(16))}this.numFrames=function(){return f.length},this.loopCount=function(){return y},this.frameInfo=function(Q){if(Q<0||Q>=f.length)throw new Error("Frame index out of range.");return f[Q]},this.decodeAndBlitFrameBGRA=function(Q,W){var J=this.frameInfo(Q),fe=J.width*J.height,G=new Uint8Array(fe);JI(e,J.data_offset,G,fe);var se=J.palette_offset,ge=J.transparent_index;ge===null&&(ge=256);var ye=J.width,_e=r-ye,Z=ye,L=4*(J.y*r+J.x),j=4*((J.y+J.height)*r+J.x),K=L,q=4*_e;J.interlaced===!0&&(q+=4*r*7);for(var re=8,he=0,Be=G.length;he<Be;++he){var ae=G[he];if(Z===0&&(Z=ye,(K+=q)>=j&&(q=4*_e+4*r*(re-1),K=L+(ye+_e)*(re<<1),re>>=1)),ae===ge)K+=4;else{var be=e[se+3*ae],ke=e[se+3*ae+1],Fe=e[se+3*ae+2];W[K++]=Fe,W[K++]=ke,W[K++]=be,W[K++]=255}--Z}},this.decodeAndBlitFrameRGBA=function(Q,W){var J=this.frameInfo(Q),fe=J.width*J.height,G=new Uint8Array(fe);JI(e,J.data_offset,G,fe);var se=J.palette_offset,ge=J.transparent_index;ge===null&&(ge=256);var ye=J.width,_e=r-ye,Z=ye,L=4*(J.y*r+J.x),j=4*((J.y+J.height)*r+J.x),K=L,q=4*_e;J.interlaced===!0&&(q+=4*r*7);for(var re=8,he=0,Be=G.length;he<Be;++he){var ae=G[he];if(Z===0&&(Z=ye,(K+=q)>=j&&(q=4*_e+4*r*(re-1),K=L+(ye+_e)*(re<<1),re>>=1)),ae===ge)K+=4;else{var be=e[se+3*ae],ke=e[se+3*ae+1],Fe=e[se+3*ae+2];W[K++]=be,W[K++]=ke,W[K++]=Fe,W[K++]=255}--Z}}}function JI(e,t,r,n){for(var i=e[t++],a=1<<i,s=a+1,o=s+1,l=i+1,c=(1<<l)-1,f=0,h=0,p=0,g=e[t++],y=new Int32Array(4096),m=null;;){for(;f<16&&g!==0;)h|=e[t++]<<f,f+=8,g===1?g=e[t++]:--g;if(f<l)break;var w=h&c;if(h>>=l,f-=l,w!==a){if(w===s)break;for(var b=w<o?w:m,E=0,S=b;S>a;)S=y[S]>>8,++E;var T=S;if(p+E+(b!==w?1:0)>n)return void Fn.log("Warning, gif stream longer than expected.");r[p++]=T;var D=p+=E;for(b!==w&&(r[p++]=T),S=b;E--;)S=y[S],r[--D]=255&S,S>>=8;m!==null&&o<4096&&(y[o++]=m<<8|T,o>=c+1&&l<12&&(++l,c=c<<1|1)),m=w}else o=s+1,c=(1<<(l=i+1))-1,m=null}return p!==n&&Fn.log("Warning, gif stream shorter than expected."),r}/**
 * @license
  Copyright (c) 2008, Adobe Systems Incorporated
  All rights reserved.

  Redistribution and use in source and binary forms, with or without 
  modification, are permitted provided that the following conditions are
  met:

  * Redistributions of source code must retain the above copyright notice, 
    this list of conditions and the following disclaimer.
  
  * Redistributions in binary form must reproduce the above copyright
    notice, this list of conditions and the following disclaimer in the 
    documentation and/or other materials provided with the distribution.
  
  * Neither the name of Adobe Systems Incorporated nor the names of its 
    contributors may be used to endorse or promote products derived from 
    this software without specific prior written permission.

  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/function PC(e){var t,r,n,i,a,s=Math.floor,o=new Array(64),l=new Array(64),c=new Array(64),f=new Array(64),h=new Array(65535),p=new Array(65535),g=new Array(64),y=new Array(64),m=[],w=0,b=7,E=new Array(64),S=new Array(64),T=new Array(64),D=new Array(256),k=new Array(2048),P=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],R=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],O=[0,1,2,3,4,5,6,7,8,9,10,11],V=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],I=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],Q=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],W=[0,1,2,3,4,5,6,7,8,9,10,11],J=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],fe=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function G(L,j){for(var K=0,q=0,re=new Array,he=1;he<=16;he++){for(var Be=1;Be<=L[he];Be++)re[j[q]]=[],re[j[q]][0]=K,re[j[q]][1]=he,q++,K++;K*=2}return re}function se(L){for(var j=L[0],K=L[1]-1;K>=0;)j&1<<K&&(w|=1<<b),K--,--b<0&&(w==255?(ge(255),ge(0)):ge(w),b=7,w=0)}function ge(L){m.push(L)}function ye(L){ge(L>>8&255),ge(255&L)}function _e(L,j,K,q,re){for(var he,Be=re[0],ae=re[240],be=(function(nt,Tt){var yt,Ht,It,Vt,cr,Jt,ur,rr,Et,nr,Ot=0;for(Et=0;Et<8;++Et){yt=nt[Ot],Ht=nt[Ot+1],It=nt[Ot+2],Vt=nt[Ot+3],cr=nt[Ot+4],Jt=nt[Ot+5],ur=nt[Ot+6];var dn=yt+(rr=nt[Ot+7]),or=yt-rr,Kt=Ht+ur,Xt=Ht-ur,vr=It+Jt,Rt=It-Jt,Nr=Vt+cr,Gt=Vt-cr,$t=dn+Nr,Rr=dn-Nr,sr=Kt+vr,mt=Kt-vr;nt[Ot]=$t+sr,nt[Ot+4]=$t-sr;var Zt=.707106781*(mt+Rr);nt[Ot+2]=Rr+Zt,nt[Ot+6]=Rr-Zt;var Pi=.382683433*(($t=Gt+Rt)-(mt=Xt+or)),fr=.5411961*$t+Pi,In=1.306562965*mt+Pi,fa=.707106781*(sr=Rt+Xt),Mt=or+fa,Ja=or-fa;nt[Ot+5]=Ja+fr,nt[Ot+3]=Ja-fr,nt[Ot+1]=Mt+In,nt[Ot+7]=Mt-In,Ot+=8}for(Ot=0,Et=0;Et<8;++Et){yt=nt[Ot],Ht=nt[Ot+8],It=nt[Ot+16],Vt=nt[Ot+24],cr=nt[Ot+32],Jt=nt[Ot+40],ur=nt[Ot+48];var Fa=yt+(rr=nt[Ot+56]),ii=yt-rr,fi=Ht+ur,zr=Ht-ur,gn=It+Jt,ee=It-Jt,ve=Vt+cr,Ae=Vt-cr,ce=Fa+ve,de=Fa-ve,we=fi+gn,Te=fi-gn;nt[Ot]=ce+we,nt[Ot+32]=ce-we;var je=.707106781*(Te+de);nt[Ot+16]=de+je,nt[Ot+48]=de-je;var Ne=.382683433*((ce=Ae+ee)-(Te=zr+ii)),Ie=.5411961*ce+Ne,Pe=1.306562965*Te+Ne,ot=.707106781*(we=ee+zr),ft=ii+ot,pt=ii-ot;nt[Ot+40]=pt+Ie,nt[Ot+24]=pt-Ie,nt[Ot+8]=ft+Pe,nt[Ot+56]=ft-Pe,Ot++}for(Et=0;Et<64;++Et)nr=nt[Et]*Tt[Et],g[Et]=nr>0?nr+.5|0:nr-.5|0;return g})(L,j),ke=0;ke<64;++ke)y[P[ke]]=be[ke];var Fe=y[0]-K;K=y[0],Fe==0?se(q[0]):(se(q[p[he=32767+Fe]]),se(h[he]));for(var st=63;st>0&&y[st]==0;)st--;if(st==0)return se(Be),K;for(var Ge,le=1;le<=st;){for(var $e=le;y[le]==0&&le<=st;)++le;var tt=le-$e;if(tt>=16){Ge=tt>>4;for(var wt=1;wt<=Ge;++wt)se(ae);tt&=15}he=32767+y[le],se(re[(tt<<4)+p[he]]),se(h[he]),le++}return st!=63&&se(Be),K}function Z(L){L=Math.min(Math.max(L,1),100),a!=L&&((function(j){for(var K=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],q=0;q<64;q++){var re=s((K[q]*j+50)/100);re=Math.min(Math.max(re,1),255),o[P[q]]=re}for(var he=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],Be=0;Be<64;Be++){var ae=s((he[Be]*j+50)/100);ae=Math.min(Math.max(ae,1),255),l[P[Be]]=ae}for(var be=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],ke=0,Fe=0;Fe<8;Fe++)for(var st=0;st<8;st++)c[ke]=1/(o[P[ke]]*be[Fe]*be[st]*8),f[ke]=1/(l[P[ke]]*be[Fe]*be[st]*8),ke++})(L<50?Math.floor(5e3/L):Math.floor(200-2*L)),a=L)}this.encode=function(L,j){j&&Z(j),m=new Array,w=0,b=7,ye(65496),ye(65504),ye(16),ge(74),ge(70),ge(73),ge(70),ge(0),ge(1),ge(1),ge(0),ye(1),ye(1),ge(0),ge(0),(function(){ye(65499),ye(132),ge(0);for(var Ht=0;Ht<64;Ht++)ge(o[Ht]);ge(1);for(var It=0;It<64;It++)ge(l[It])})(),(function(Ht,It){ye(65472),ye(17),ge(8),ye(It),ye(Ht),ge(3),ge(1),ge(17),ge(0),ge(2),ge(17),ge(1),ge(3),ge(17),ge(1)})(L.width,L.height),(function(){ye(65476),ye(418),ge(0);for(var Ht=0;Ht<16;Ht++)ge(R[Ht+1]);for(var It=0;It<=11;It++)ge(O[It]);ge(16);for(var Vt=0;Vt<16;Vt++)ge(V[Vt+1]);for(var cr=0;cr<=161;cr++)ge(I[cr]);ge(1);for(var Jt=0;Jt<16;Jt++)ge(Q[Jt+1]);for(var ur=0;ur<=11;ur++)ge(W[ur]);ge(17);for(var rr=0;rr<16;rr++)ge(J[rr+1]);for(var Et=0;Et<=161;Et++)ge(fe[Et])})(),ye(65498),ye(12),ge(3),ge(1),ge(0),ge(2),ge(17),ge(3),ge(17),ge(0),ge(63),ge(0);var K=0,q=0,re=0;w=0,b=7,this.encode.displayName="_encode_";for(var he,Be,ae,be,ke,Fe,st,Ge,le,$e=L.data,tt=L.width,wt=L.height,nt=4*tt,Tt=0;Tt<wt;){for(he=0;he<nt;){for(ke=nt*Tt+he,st=-1,Ge=0,le=0;le<64;le++)Fe=ke+(Ge=le>>3)*nt+(st=4*(7&le)),Tt+Ge>=wt&&(Fe-=nt*(Tt+1+Ge-wt)),he+st>=nt&&(Fe-=he+st-nt+4),Be=$e[Fe++],ae=$e[Fe++],be=$e[Fe++],E[le]=(k[Be]+k[ae+256|0]+k[be+512|0]>>16)-128,S[le]=(k[Be+768|0]+k[ae+1024|0]+k[be+1280|0]>>16)-128,T[le]=(k[Be+1280|0]+k[ae+1536|0]+k[be+1792|0]>>16)-128;K=_e(E,c,K,t,n),q=_e(S,f,q,r,i),re=_e(T,f,re,r,i),he+=32}Tt+=8}if(b>=0){var yt=[];yt[1]=b+1,yt[0]=(1<<b+1)-1,se(yt)}return ye(65497),new Uint8Array(m)},e=e||50,(function(){for(var L=String.fromCharCode,j=0;j<256;j++)D[j]=L(j)})(),t=G(R,O),r=G(Q,W),n=G(V,I),i=G(J,fe),(function(){for(var L=1,j=2,K=1;K<=15;K++){for(var q=L;q<j;q++)p[32767+q]=K,h[32767+q]=[],h[32767+q][1]=K,h[32767+q][0]=q;for(var re=-(j-1);re<=-L;re++)p[32767+re]=K,h[32767+re]=[],h[32767+re][1]=K,h[32767+re][0]=j-1+re;L<<=1,j<<=1}})(),(function(){for(var L=0;L<256;L++)k[L]=19595*L,k[L+256|0]=38470*L,k[L+512|0]=7471*L+32768,k[L+768|0]=-11059*L,k[L+1024|0]=-21709*L,k[L+1280|0]=32768*L+8421375,k[L+1536|0]=-27439*L,k[L+1792|0]=-5329*L})(),Z(e)}/**
 * @license
 * Copyright (c) 2017 Aras Abbasi
 *
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 */function WA(e,t){if(this.pos=0,this.buffer=e,this.datav=new DataView(e.buffer),this.is_with_alpha=!!t,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function ZI(e){function t(O){if(!O)throw Error("assert :P")}function r(O,V,I){for(var Q=0;4>Q;Q++)if(O[V+Q]!=I.charCodeAt(Q))return!0;return!1}function n(O,V,I,Q,W){for(var J=0;J<W;J++)O[V+J]=I[Q+J]}function i(O,V,I,Q){for(var W=0;W<Q;W++)O[V+W]=I}function a(O){return new Int32Array(O)}function s(O,V){for(var I=[],Q=0;Q<O;Q++)I.push(new V);return I}function o(O,V){var I=[];return(function Q(W,J,fe){for(var G=fe[J],se=0;se<G&&(W.push(fe.length>J+1?[]:new V),!(fe.length<J+1));se++)Q(W[se],J+1,fe)})(I,0,O),I}var l=function(){var O=this;function V(x,C){for(var M=1<<C-1>>>0;x&M;)M>>>=1;return M?(x&M-1)+M:x}function I(x,C,M,H,X){t(!(H%M));do x[C+(H-=M)]=X;while(0<H)}function Q(x,C,M,H,X){if(t(2328>=X),512>=X)var te=a(512);else if((te=a(X))==null)return 0;return(function(ne,oe,ue,me,Se,Re){var pe,Ue,Me=oe,Ye=1<<ue,Qe=a(16),We=a(16);for(t(Se!=0),t(me!=null),t(ne!=null),t(0<ue),Ue=0;Ue<Se;++Ue){if(15<me[Ue])return 0;++Qe[me[Ue]]}if(Qe[0]==Se)return 0;for(We[1]=0,pe=1;15>pe;++pe){if(Qe[pe]>1<<pe)return 0;We[pe+1]=We[pe]+Qe[pe]}for(Ue=0;Ue<Se;++Ue)pe=me[Ue],0<me[Ue]&&(Re[We[pe]++]=Ue);if(We[15]==1)return(me=new W).g=0,me.value=Re[0],I(ne,Me,1,Ye,me),Ye;var et,ct=-1,at=Ye-1,Lt=0,bt=1,Ar=1,St=1<<ue;for(Ue=0,pe=1,Se=2;pe<=ue;++pe,Se<<=1){if(bt+=Ar<<=1,0>(Ar-=Qe[pe]))return 0;for(;0<Qe[pe];--Qe[pe])(me=new W).g=pe,me.value=Re[Ue++],I(ne,Me+Lt,Se,St,me),Lt=V(Lt,pe)}for(pe=ue+1,Se=2;15>=pe;++pe,Se<<=1){if(bt+=Ar<<=1,0>(Ar-=Qe[pe]))return 0;for(;0<Qe[pe];--Qe[pe]){if(me=new W,(Lt&at)!=ct){for(Me+=St,et=1<<(ct=pe)-ue;15>ct&&!(0>=(et-=Qe[ct]));)++ct,et<<=1;Ye+=St=1<<(et=ct-ue),ne[oe+(ct=Lt&at)].g=et+ue,ne[oe+ct].value=Me-oe-ct}me.g=pe-ue,me.value=Re[Ue++],I(ne,Me+(Lt>>ue),Se,St,me),Lt=V(Lt,pe)}}return bt!=2*We[15]-1?0:Ye})(x,C,M,H,X,te)}function W(){this.value=this.g=0}function J(){this.value=this.g=0}function fe(){this.G=s(5,W),this.H=a(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=s(pl,J)}function G(x,C,M,H){t(x!=null),t(C!=null),t(2147483648>H),x.Ca=254,x.I=0,x.b=-8,x.Ka=0,x.oa=C,x.pa=M,x.Jd=C,x.Yc=M+H,x.Zc=4<=H?M+H-4+1:M,Be(x)}function se(x,C){for(var M=0;0<C--;)M|=be(x,128)<<C;return M}function ge(x,C){var M=se(x,C);return ae(x)?-M:M}function ye(x,C,M,H){var X,te=0;for(t(x!=null),t(C!=null),t(4294967288>H),x.Sb=H,x.Ra=0,x.u=0,x.h=0,4<H&&(H=4),X=0;X<H;++X)te+=C[M+X]<<8*X;x.Ra=te,x.bb=H,x.oa=C,x.pa=M}function _e(x){for(;8<=x.u&&x.bb<x.Sb;)x.Ra>>>=8,x.Ra+=x.oa[x.pa+x.bb]<<Vo-8>>>0,++x.bb,x.u-=8;q(x)&&(x.h=1,x.u=0)}function Z(x,C){if(t(0<=C),!x.h&&C<=La){var M=K(x)&es[C];return x.u+=C,_e(x),M}return x.h=1,x.u=0}function L(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function j(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function K(x){return x.Ra>>>(x.u&Vo-1)>>>0}function q(x){return t(x.bb<=x.Sb),x.h||x.bb==x.Sb&&x.u>Vo}function re(x,C){x.u=C,x.h=q(x)}function he(x){x.u>=Go&&(t(x.u>=Go),_e(x))}function Be(x){t(x!=null&&x.oa!=null),x.pa<x.Zc?(x.I=(x.oa[x.pa++]|x.I<<8)>>>0,x.b+=8):(t(x!=null&&x.oa!=null),x.pa<x.Yc?(x.b+=8,x.I=x.oa[x.pa++]|x.I<<8):x.Ka?x.b=0:(x.I<<=8,x.b+=8,x.Ka=1))}function ae(x){return se(x,1)}function be(x,C){var M=x.Ca;0>x.b&&Be(x);var H=x.b,X=M*C>>>8,te=(x.I>>>H>X)+0;for(te?(M-=X,x.I-=X+1<<H>>>0):M=X+1,H=M,X=0;256<=H;)X+=8,H>>=8;return H=7^X+IA[H],x.b-=H,x.Ca=(M<<H)-1,te}function ke(x,C,M){x[C+0]=M>>24&255,x[C+1]=M>>16&255,x[C+2]=M>>8&255,x[C+3]=255&M}function Fe(x,C){return x[C+0]|x[C+1]<<8}function st(x,C){return Fe(x,C)|x[C+2]<<16}function Ge(x,C){return Fe(x,C)|Fe(x,C+2)<<16}function le(x,C){var M=1<<C;return t(x!=null),t(0<C),x.X=a(M),x.X==null?0:(x.Mb=32-C,x.Xa=C,1)}function $e(x,C){t(x!=null),t(C!=null),t(x.Xa==C.Xa),n(C.X,0,x.X,0,1<<C.Xa)}function tt(){this.X=[],this.Xa=this.Mb=0}function wt(x,C,M,H){t(M!=null),t(H!=null);var X=M[0],te=H[0];return X==0&&(X=(x*te+C/2)/C),te==0&&(te=(C*X+x/2)/x),0>=X||0>=te?0:(M[0]=X,H[0]=te,1)}function nt(x,C){return x+(1<<C)-1>>>C}function Tt(x,C){return((4278255360&x)+(4278255360&C)>>>0&4278255360)+((16711935&x)+(16711935&C)>>>0&16711935)>>>0}function yt(x,C){O[C]=function(M,H,X,te,ne,oe,ue){var me;for(me=0;me<ne;++me){var Se=O[x](oe[ue+me-1],X,te+me);oe[ue+me]=Tt(M[H+me],Se)}}}function Ht(){this.ud=this.hd=this.jd=0}function It(x,C){return((4278124286&(x^C))>>>1)+(x&C)>>>0}function Vt(x){return 0<=x&&256>x?x:0>x?0:255<x?255:void 0}function cr(x,C){return Vt(x+(x-C+.5>>1))}function Jt(x,C,M){return Math.abs(C-M)-Math.abs(x-M)}function ur(x,C,M,H,X,te,ne){for(H=te[ne-1],M=0;M<X;++M)te[ne+M]=H=Tt(x[C+M],H)}function rr(x,C,M,H,X){var te;for(te=0;te<M;++te){var ne=x[C+te],oe=ne>>8&255,ue=16711935&(ue=(ue=16711935&ne)+((oe<<16)+oe));H[X+te]=(4278255360&ne)+ue>>>0}}function Et(x,C){C.jd=255&x,C.hd=x>>8&255,C.ud=x>>16&255}function nr(x,C,M,H,X,te){var ne;for(ne=0;ne<H;++ne){var oe=C[M+ne],ue=oe>>>8,me=oe,Se=255&(Se=(Se=oe>>>16)+((x.jd<<24>>24)*(ue<<24>>24)>>>5));me=255&(me=(me+=(x.hd<<24>>24)*(ue<<24>>24)>>>5)+((x.ud<<24>>24)*(Se<<24>>24)>>>5)),X[te+ne]=(4278255360&oe)+(Se<<16)+me}}function Ot(x,C,M,H,X){O[C]=function(te,ne,oe,ue,me,Se,Re,pe,Ue){for(ue=Re;ue<pe;++ue)for(Re=0;Re<Ue;++Re)me[Se++]=X(oe[H(te[ne++])])},O[x]=function(te,ne,oe,ue,me,Se,Re){var pe=8>>te.b,Ue=te.Ea,Me=te.K[0],Ye=te.w;if(8>pe)for(te=(1<<te.b)-1,Ye=(1<<pe)-1;ne<oe;++ne){var Qe,We=0;for(Qe=0;Qe<Ue;++Qe)Qe&te||(We=H(ue[me++])),Se[Re++]=X(Me[We&Ye]),We>>=pe}else O["VP8LMapColor"+M](ue,me,Me,Ye,Se,Re,ne,oe,Ue)}}function dn(x,C,M,H,X){for(M=C+M;C<M;){var te=x[C++];H[X++]=te>>16&255,H[X++]=te>>8&255,H[X++]=255&te}}function or(x,C,M,H,X){for(M=C+M;C<M;){var te=x[C++];H[X++]=te>>16&255,H[X++]=te>>8&255,H[X++]=255&te,H[X++]=te>>24&255}}function Kt(x,C,M,H,X){for(M=C+M;C<M;){var te=(ne=x[C++])>>16&240|ne>>12&15,ne=240&ne|ne>>28&15;H[X++]=te,H[X++]=ne}}function Xt(x,C,M,H,X){for(M=C+M;C<M;){var te=(ne=x[C++])>>16&248|ne>>13&7,ne=ne>>5&224|ne>>3&31;H[X++]=te,H[X++]=ne}}function vr(x,C,M,H,X){for(M=C+M;C<M;){var te=x[C++];H[X++]=255&te,H[X++]=te>>8&255,H[X++]=te>>16&255}}function Rt(x,C,M,H,X,te){if(te==0)for(M=C+M;C<M;)ke(H,((te=x[C++])[0]>>24|te[1]>>8&65280|te[2]<<8&16711680|te[3]<<24)>>>0),X+=32;else n(H,X,x,C,M)}function Nr(x,C){O[C][0]=O[x+"0"],O[C][1]=O[x+"1"],O[C][2]=O[x+"2"],O[C][3]=O[x+"3"],O[C][4]=O[x+"4"],O[C][5]=O[x+"5"],O[C][6]=O[x+"6"],O[C][7]=O[x+"7"],O[C][8]=O[x+"8"],O[C][9]=O[x+"9"],O[C][10]=O[x+"10"],O[C][11]=O[x+"11"],O[C][12]=O[x+"12"],O[C][13]=O[x+"13"],O[C][14]=O[x+"0"],O[C][15]=O[x+"0"]}function Gt(x){return x==$f||x==Cd||x==wu||x==Ed}function $t(){this.eb=[],this.size=this.A=this.fb=0}function Rr(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function sr(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new $t,this.f.kb=new Rr,this.sd=null}function mt(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function Zt(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function Pi(x){return alert("todo:WebPSamplerProcessPlane"),x.T}function fr(x,C){var M=x.T,H=C.ba.f.RGBA,X=H.eb,te=H.fb+x.ka*H.A,ne=ea[C.ba.S],oe=x.y,ue=x.O,me=x.f,Se=x.N,Re=x.ea,pe=x.W,Ue=C.cc,Me=C.dc,Ye=C.Mc,Qe=C.Nc,We=x.ka,et=x.ka+x.T,ct=x.U,at=ct+1>>1;for(We==0?ne(oe,ue,null,null,me,Se,Re,pe,me,Se,Re,pe,X,te,null,null,ct):(ne(C.ec,C.fc,oe,ue,Ue,Me,Ye,Qe,me,Se,Re,pe,X,te-H.A,X,te,ct),++M);We+2<et;We+=2)Ue=me,Me=Se,Ye=Re,Qe=pe,Se+=x.Rc,pe+=x.Rc,te+=2*H.A,ne(oe,(ue+=2*x.fa)-x.fa,oe,ue,Ue,Me,Ye,Qe,me,Se,Re,pe,X,te-H.A,X,te,ct);return ue+=x.fa,x.j+et<x.o?(n(C.ec,C.fc,oe,ue,ct),n(C.cc,C.dc,me,Se,at),n(C.Mc,C.Nc,Re,pe,at),M--):1&et||ne(oe,ue,null,null,me,Se,Re,pe,me,Se,Re,pe,X,te+H.A,null,null,ct),M}function In(x,C,M){var H=x.F,X=[x.J];if(H!=null){var te=x.U,ne=C.ba.S,oe=ne==Yf||ne==wu;C=C.ba.f.RGBA;var ue=[0],me=x.ka;ue[0]=x.T,x.Kb&&(me==0?--ue[0]:(--me,X[0]-=x.width),x.j+x.ka+x.T==x.o&&(ue[0]=x.o-x.j-me));var Se=C.eb;me=C.fb+me*C.A,x=Vf(H,X[0],x.width,te,ue,Se,me+(oe?0:3),C.A),t(M==ue),x&&Gt(ne)&&sc(Se,me,oe,te,ue,C.A)}return 0}function fa(x){var C=x.ma,M=C.ba.S,H=11>M,X=M==ga||M==Ps||M==Yf||M==yu||M==12||Gt(M);if(C.memory=null,C.Ib=null,C.Jb=null,C.Nd=null,!DA(C.Oa,x,X?11:12))return 0;if(X&&Gt(M)&&jf(),x.da)alert("todo:use_scaling");else{if(H){if(C.Ib=Pi,x.Kb){if(M=x.U+1>>1,C.memory=a(x.U+2*M),C.memory==null)return 0;C.ec=C.memory,C.fc=0,C.cc=C.ec,C.dc=C.fc+x.U,C.Mc=C.cc,C.Nc=C.dc+M,C.Ib=fr,jf()}}else alert("todo:EmitYUV");X&&(C.Jb=In,H&&fo())}if(H&&!Bl){for(x=0;256>x;++x)ta[x]=89858*(x-128)+Bu>>Ks,$x[x]=-22014*(x-128)+Bu,Ov[x]=-45773*(x-128),Od[x]=113618*(x-128)+Bu>>Ks;for(x=cc;x<bl;++x)C=76283*(x-16)+Bu>>Ks,Xx[x-cc]=Mn(C,255),Jx[x-cc]=Mn(C+8>>4,15);Bl=1}return 1}function Mt(x){var C=x.ma,M=x.U,H=x.T;return t(!(1&x.ka)),0>=M||0>=H?0:(M=C.Ib(x,C),C.Jb!=null&&C.Jb(x,C,M),C.Dc+=M,1)}function Ja(x){x.ma.memory=null}function Fa(x,C,M,H){return Z(x,8)!=47?0:(C[0]=Z(x,14)+1,M[0]=Z(x,14)+1,H[0]=Z(x,1),Z(x,3)!=0?0:!x.h)}function ii(x,C){if(4>x)return x+1;var M=x-2>>1;return(2+(1&x)<<M)+Z(C,M)+1}function fi(x,C){return 120<C?C-120:1<=(M=((M=Qs[C-1])>>4)*x+(8-(15&M)))?M:1;var M}function zr(x,C,M){var H=K(M),X=x[C+=255&H].g-8;return 0<X&&(re(M,M.u+8),H=K(M),C+=x[C].value,C+=H&(1<<X)-1),re(M,M.u+x[C].g),x[C].value}function gn(x,C,M){return M.g+=x.g,M.value+=x.value<<C>>>0,t(8>=M.g),x.g}function ee(x,C,M){var H=x.xc;return t((C=H==0?0:x.vc[x.md*(M>>H)+(C>>H)])<x.Wb),x.Ya[C]}function ve(x,C,M,H){var X=x.ab,te=x.c*C,ne=x.C;C=ne+C;var oe=M,ue=H;for(H=x.Ta,M=x.Ua;0<X--;){var me=x.gc[X],Se=ne,Re=C,pe=oe,Ue=ue,Me=(ue=H,oe=M,me.Ea);switch(t(Se<Re),t(Re<=me.nc),me.hc){case 2:si(pe,Ue,(Re-Se)*Me,ue,oe);break;case 0:var Ye=Se,Qe=Re,We=ue,et=oe,ct=(St=me).Ea;Ye==0&&(gu(pe,Ue,null,null,1,We,et),ur(pe,Ue+1,0,0,ct-1,We,et+1),Ue+=ct,et+=ct,++Ye);for(var at=1<<St.b,Lt=at-1,bt=nt(ct,St.b),Ar=St.K,St=St.w+(Ye>>St.b)*bt;Ye<Qe;){var Br=Ar,_n=St,dr=1;for(pu(pe,Ue,We,et-ct,1,We,et);dr<ct;){var Bt=(dr&~Lt)+at;Bt>ct&&(Bt=ct),(0,MA[Br[_n++]>>8&15])(pe,Ue+ +dr,We,et+dr-ct,Bt-dr,We,et+dr),dr=Bt}Ue+=ct,et+=ct,++Ye&Lt||(St+=bt)}Re!=me.nc&&n(ue,oe-Me,ue,oe+(Re-Se-1)*Me,Me);break;case 1:for(Me=pe,Qe=Ue,ct=(pe=me.Ea)-(et=pe&~(We=(Ue=1<<me.b)-1)),Ye=nt(pe,me.b),at=me.K,me=me.w+(Se>>me.b)*Ye;Se<Re;){for(Lt=at,bt=me,Ar=new Ht,St=Qe+et,Br=Qe+pe;Qe<St;)Et(Lt[bt++],Ar),vu(Ar,Me,Qe,Ue,ue,oe),Qe+=Ue,oe+=Ue;Qe<Br&&(Et(Lt[bt++],Ar),vu(Ar,Me,Qe,ct,ue,oe),Qe+=ct,oe+=ct),++Se&We||(me+=Ye)}break;case 3:if(pe==ue&&Ue==oe&&0<me.b){for(Qe=ue,pe=Me=oe+(Re-Se)*Me-(et=(Re-Se)*nt(me.Ea,me.b)),Ue=ue,We=oe,Ye=[],et=(ct=et)-1;0<=et;--et)Ye[et]=Ue[We+et];for(et=ct-1;0<=et;--et)Qe[pe+et]=Ye[et];yd(me,Se,Re,ue,Me,ue,oe)}else yd(me,Se,Re,pe,Ue,ue,oe)}oe=H,ue=M}ue!=M&&n(H,M,oe,ue,te)}function Ae(x,C){var M=x.V,H=x.Ba+x.c*x.C,X=C-x.C;if(t(C<=x.l.o),t(16>=X),0<X){var te=x.l,ne=x.Ta,oe=x.Ua,ue=te.width;if(ve(x,X,M,H),X=oe=[oe],t((M=x.C)<(H=C)),t(te.v<te.va),H>te.o&&(H=te.o),M<te.j){var me=te.j-M;M=te.j,X[0]+=me*ue}if(M>=H?M=0:(X[0]+=4*te.v,te.ka=M-te.j,te.U=te.va-te.v,te.T=H-M,M=1),M){if(oe=oe[0],11>(M=x.ca).S){var Se=M.f.RGBA,Re=(H=M.S,X=te.U,te=te.T,me=Se.eb,Se.A),pe=te;for(Se=Se.fb+x.Ma*Se.A;0<pe--;){var Ue=ne,Me=oe,Ye=X,Qe=me,We=Se;switch(H){case bd:mu(Ue,Me,Ye,Qe,We);break;case ga:PA(Ue,Me,Ye,Qe,We);break;case $f:PA(Ue,Me,Ye,Qe,We),sc(Qe,We,0,Ye,1,0);break;case Bd:ic(Ue,Me,Ye,Qe,We);break;case Ps:Rt(Ue,Me,Ye,Qe,We,1);break;case Cd:Rt(Ue,Me,Ye,Qe,We,1),sc(Qe,We,0,Ye,1,0);break;case Yf:Rt(Ue,Me,Ye,Qe,We,0);break;case wu:Rt(Ue,Me,Ye,Qe,We,0),sc(Qe,We,1,Ye,1,0);break;case yu:kA(Ue,Me,Ye,Qe,We);break;case Ed:kA(Ue,Me,Ye,Qe,We),Ms(Qe,We,Ye,1,0);break;case vl:Yo(Ue,Me,Ye,Qe,We);break;default:t(0)}oe+=ue,Se+=Re}x.Ma+=te}else alert("todo:EmitRescaledRowsYUVA");t(x.Ma<=M.height)}}x.C=C,t(x.C<=x.i)}function ce(x){var C;if(0<x.ua)return 0;for(C=0;C<x.Wb;++C){var M=x.Ya[C].G,H=x.Ya[C].H;if(0<M[1][H[1]+0].g||0<M[2][H[2]+0].g||0<M[3][H[3]+0].g)return 0}return 1}function de(x,C,M,H,X,te){if(x.Z!=0){var ne=x.qd,oe=x.rd;for(t(jA[x.Z]!=null);C<M;++C)jA[x.Z](ne,oe,H,X,H,X,te),ne=H,oe=X,X+=te;x.qd=ne,x.rd=oe}}function we(x,C){var M=x.l.ma,H=M.Z==0||M.Z==1?x.l.j:x.C;if(H=x.C<H?H:x.C,t(C<=x.l.o),C>H){var X=x.l.width,te=M.ca,ne=M.tb+X*H,oe=x.V,ue=x.Ba+x.c*H,me=x.gc;t(x.ab==1),t(me[0].hc==3),Wo(me[0],H,C,oe,ue,te,ne),de(M,H,C,te,ne,X)}x.C=x.Ma=C}function Te(x,C,M,H,X,te,ne){var oe=x.$/H,ue=x.$%H,me=x.m,Se=x.s,Re=M+x.$,pe=Re;X=M+H*X;var Ue=M+H*te,Me=280+Se.ua,Ye=x.Pb?oe:16777216,Qe=0<Se.ua?Se.Wa:null,We=Se.wc,et=Re<Ue?ee(Se,ue,oe):null;t(x.C<te),t(Ue<=X);var ct=!1;e:for(;;){for(;ct||Re<Ue;){var at=0;if(oe>=Ye){var Lt=Re-M;t((Ye=x).Pb),Ye.wd=Ye.m,Ye.xd=Lt,0<Ye.s.ua&&$e(Ye.s.Wa,Ye.s.vb),Ye=oe+ml}if(ue&We||(et=ee(Se,ue,oe)),t(et!=null),et.Qb&&(C[Re]=et.qb,ct=!0),!ct)if(he(me),et.jc){at=me,Lt=C;var bt=Re,Ar=et.pd[K(at)&pl-1];t(et.jc),256>Ar.g?(re(at,at.u+Ar.g),Lt[bt]=Ar.value,at=0):(re(at,at.u+Ar.g-256),t(256<=Ar.value),at=Ar.value),at==0&&(ct=!0)}else at=zr(et.G[0],et.H[0],me);if(me.h)break;if(ct||256>at){if(!ct)if(et.nd)C[Re]=(et.qb|at<<8)>>>0;else{if(he(me),ct=zr(et.G[1],et.H[1],me),he(me),Lt=zr(et.G[2],et.H[2],me),bt=zr(et.G[3],et.H[3],me),me.h)break;C[Re]=(bt<<24|ct<<16|at<<8|Lt)>>>0}if(ct=!1,++Re,++ue>=H&&(ue=0,++oe,ne!=null&&oe<=te&&!(oe%16)&&ne(x,oe),Qe!=null))for(;pe<Re;)at=C[pe++],Qe.X[(506832829*at&4294967295)>>>Qe.Mb]=at}else if(280>at){if(at=ii(at-256,me),Lt=zr(et.G[4],et.H[4],me),he(me),Lt=fi(H,Lt=ii(Lt,me)),me.h)break;if(Re-M<Lt||X-Re<at)break e;for(bt=0;bt<at;++bt)C[Re+bt]=C[Re+bt-Lt];for(Re+=at,ue+=at;ue>=H;)ue-=H,++oe,ne!=null&&oe<=te&&!(oe%16)&&ne(x,oe);if(t(Re<=X),ue&We&&(et=ee(Se,ue,oe)),Qe!=null)for(;pe<Re;)at=C[pe++],Qe.X[(506832829*at&4294967295)>>>Qe.Mb]=at}else{if(!(at<Me))break e;for(ct=at-280,t(Qe!=null);pe<Re;)at=C[pe++],Qe.X[(506832829*at&4294967295)>>>Qe.Mb]=at;at=Re,t(!(ct>>>(Lt=Qe).Xa)),C[at]=Lt.X[ct],ct=!0}ct||t(me.h==q(me))}if(x.Pb&&me.h&&Re<X)t(x.m.h),x.a=5,x.m=x.wd,x.$=x.xd,0<x.s.ua&&$e(x.s.vb,x.s.Wa);else{if(me.h)break e;ne?.(x,oe>te?te:oe),x.a=0,x.$=Re-M}return 1}return x.a=3,0}function je(x){t(x!=null),x.vc=null,x.yc=null,x.Ya=null;var C=x.Wa;C!=null&&(C.X=null),x.vb=null,t(x!=null)}function Ne(){var x=new ar;return x==null?null:(x.a=0,x.xb=Fg,Nr("Predictor","VP8LPredictors"),Nr("Predictor","VP8LPredictors_C"),Nr("PredictorAdd","VP8LPredictorsAdd"),Nr("PredictorAdd","VP8LPredictorsAdd_C"),si=rr,vu=nr,mu=dn,PA=or,kA=Kt,Yo=Xt,ic=vr,O.VP8LMapColor32b=qo,O.VP8LMapColor8b=Xi,x)}function Ie(x,C,M,H,X){var te=1,ne=[x],oe=[C],ue=H.m,me=H.s,Se=null,Re=0;e:for(;;){if(M)for(;te&&Z(ue,1);){var pe=ne,Ue=oe,Me=H,Ye=1,Qe=Me.m,We=Me.gc[Me.ab],et=Z(Qe,2);if(Me.Oc&1<<et)te=0;else{switch(Me.Oc|=1<<et,We.hc=et,We.Ea=pe[0],We.nc=Ue[0],We.K=[null],++Me.ab,t(4>=Me.ab),et){case 0:case 1:We.b=Z(Qe,3)+2,Ye=Ie(nt(We.Ea,We.b),nt(We.nc,We.b),0,Me,We.K),We.K=We.K[0];break;case 3:var ct,at=Z(Qe,8)+1,Lt=16<at?0:4<at?1:2<at?2:3;if(pe[0]=nt(We.Ea,Lt),We.b=Lt,ct=Ye=Ie(at,1,0,Me,We.K)){var bt,Ar=at,St=We,Br=1<<(8>>St.b),_n=a(Br);if(_n==null)ct=0;else{var dr=St.K[0],Bt=St.w;for(_n[0]=St.K[0][0],bt=1;bt<1*Ar;++bt)_n[bt]=Tt(dr[Bt+bt],_n[bt-1]);for(;bt<4*Br;++bt)_n[bt]=0;St.K[0]=null,St.K[0]=_n,ct=1}}Ye=ct;break;case 2:break;default:t(0)}te=Ye}}if(ne=ne[0],oe=oe[0],te&&Z(ue,1)&&!(te=1<=(Re=Z(ue,4))&&11>=Re)){H.a=3;break e}var vt;if(vt=te)t:{var kn,tr,mr,Xr=H,Fi=ne,ra=oe,mn=Re,gi=M,pa=Xr.m,pi=Xr.s,wr=[null],Mr=1,Qn=0,Kr=Rs[mn];r:for(;;){if(gi&&Z(pa,1)){var Ti=Z(pa,3)+2,Rn=nt(Fi,Ti),Pr=nt(ra,Ti),li=Rn*Pr;if(!Ie(Rn,Pr,0,Xr,wr))break r;for(wr=wr[0],pi.xc=Ti,kn=0;kn<li;++kn){var Jr=wr[kn]>>8&65535;wr[kn]=Jr,Jr>=Mr&&(Mr=Jr+1)}}if(pa.h)break r;for(tr=0;5>tr;++tr){var vi=Ac[tr];!tr&&0<mn&&(vi+=1<<mn),Qn<vi&&(Qn=vi)}var mi=s(Mr*Kr,W),nn=Mr,Ir=s(nn,fe);if(Ir==null)var va=null;else t(65536>=nn),va=Ir;var qn=a(Qn);if(va==null||qn==null||mi==null){Xr.a=1;break r}var qt=mi;for(kn=mr=0;kn<Mr;++kn){var Wt=va[kn],kr=Wt.G,ts=Wt.H,zs=0,Ia=1,yi=0;for(tr=0;5>tr;++tr){vi=Ac[tr],kr[tr]=qt,ts[tr]=mr,!tr&&0<mn&&(vi+=1<<mn);i:{var Cl,El=vi,Nd=Xr,yn=qn,Og=qt,Ug=mr,Ld=0,HA=Nd.m,Zx=Z(HA,1);if(i(yn,0,0,El),Zx){var Ng=Z(HA,1)+1,Lg=Z(HA,1),Dd=Z(HA,Lg==0?1:8);yn[Dd]=1,Ng==2&&(yn[Dd=Z(HA,8)]=1);var Ri=1}else{var Wn=a(19),eh=Z(HA,4)+4;if(19<eh){Nd.a=3;var _l=0;break i}for(Cl=0;Cl<eh;++Cl)Wn[Xf[Cl]]=Z(HA,3);var Eu=void 0,uc=void 0,Jo=Nd,Id=Wn,_u=El,Md=yn,Pd=0,KA=Jo.m,Dg=8,Ig=s(128,W);n:for(;Q(Ig,0,7,Id,19);){if(Z(KA,1)){var Uv=2+2*Z(KA,3);if((Eu=2+Z(KA,Uv))>_u)break n}else Eu=_u;for(uc=0;uc<_u&&Eu--;){he(KA);var Mg=Ig[0+(127&K(KA))];re(KA,KA.u+Mg.g);var Sl=Mg.value;if(16>Sl)Md[uc++]=Sl,Sl!=0&&(Dg=Sl);else{var Nv=Sl==16,Lv=Sl-16,Dv=xu[Lv],Pg=Z(KA,ks[Lv])+Dv;if(uc+Pg>_u)break n;for(var Iv=Nv?Dg:0;0<Pg--;)Md[uc++]=Iv}}Pd=1;break n}Pd||(Jo.a=3),Ri=Pd}(Ri=Ri&&!HA.h)&&(Ld=Q(Og,Ug,8,yn,El)),Ri&&Ld!=0?_l=Ld:(Nd.a=3,_l=0)}if(_l==0)break r;if(Ia&&_d[tr]==1&&(Ia=qt[mr].g==0),zs+=qt[mr].g,mr+=_l,3>=tr){var fc,kd=qn[0];for(fc=1;fc<vi;++fc)qn[fc]>kd&&(kd=qn[fc]);yi+=kd}}if(Wt.nd=Ia,Wt.Qb=0,Ia&&(Wt.qb=(kr[3][ts[3]+0].value<<24|kr[1][ts[1]+0].value<<16|kr[2][ts[2]+0].value)>>>0,zs==0&&256>kr[0][ts[0]+0].value&&(Wt.Qb=1,Wt.qb+=kr[0][ts[0]+0].value<<8)),Wt.jc=!Wt.Qb&&6>yi,Wt.jc){var th,Zo=Wt;for(th=0;th<pl;++th){var zA=th,VA=Zo.pd[zA],Qd=Zo.G[0][Zo.H[0]+zA];256<=Qd.value?(VA.g=Qd.g+256,VA.value=Qd.value):(VA.g=0,VA.value=0,zA>>=gn(Qd,8,VA),zA>>=gn(Zo.G[1][Zo.H[1]+zA],16,VA),zA>>=gn(Zo.G[2][Zo.H[2]+zA],0,VA),gn(Zo.G[3][Zo.H[3]+zA],24,VA))}}}pi.vc=wr,pi.Wb=Mr,pi.Ya=va,pi.yc=mi,vt=1;break t}vt=0}if(!(te=vt)){H.a=3;break e}if(0<Re){if(me.ua=1<<Re,!le(me.Wa,Re)){H.a=1,te=0;break e}}else me.ua=0;var Rd=H,hc=ne,Mv=oe,Su=Rd.s,Fu=Su.xc;if(Rd.c=hc,Rd.i=Mv,Su.md=nt(hc,Fu),Su.wc=Fu==0?-1:(1<<Fu)-1,M){H.xb=yl;break e}if((Se=a(ne*oe))==null){H.a=1,te=0;break e}te=(te=Te(H,Se,0,ne,oe,oe,null))&&!ue.h;break e}return te?(X!=null?X[0]=Se:(t(Se==null),t(M)),H.$=0,M||je(me)):je(me),te}function Pe(x,C){var M=x.c*x.i,H=M+C+16*C;return t(x.c<=C),x.V=a(H),x.V==null?(x.Ta=null,x.Ua=0,x.a=1,0):(x.Ta=x.V,x.Ua=x.Ba+M+C,1)}function ot(x,C){var M=x.C,H=C-M,X=x.V,te=x.Ba+x.c*M;for(t(C<=x.l.o);0<H;){var ne=16<H?16:H,oe=x.l.ma,ue=x.l.width,me=ue*ne,Se=oe.ca,Re=oe.tb+ue*M,pe=x.Ta,Ue=x.Ua;ve(x,ne,X,te),ws(pe,Ue,Se,Re,me),de(oe,M,M+ne,Se,Re,ue),H-=ne,X+=ne*x.c,M+=ne}t(M==C),x.C=x.Ma=C}function ft(){this.ub=this.yd=this.td=this.Rb=0}function pt(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function ut(){this.Fb=this.Bb=this.Cb=0,this.Zb=a(4),this.Lb=a(4)}function dt(){this.Yb=(function(){var x=[];return(function C(M,H,X){for(var te=X[H],ne=0;ne<te&&(M.push(X.length>H+1?[]:0),!(X.length<H+1));ne++)C(M[ne],H+1,X)})(x,0,[3,11]),x})()}function _t(){this.jb=a(3),this.Wc=o([4,8],dt),this.Xc=o([4,17],dt)}function $r(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new a(4),this.od=new a(4)}function br(){this.ld=this.La=this.dd=this.tc=0}function tn(){this.Na=this.la=0}function Ta(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function oo(){this.ad=a(384),this.Za=0,this.Ob=a(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function Ao(){this.uc=this.M=this.Nb=0,this.wa=Array(new br),this.Y=0,this.ya=Array(new oo),this.aa=0,this.l=new bA}function gs(){this.y=a(16),this.f=a(8),this.ea=a(8)}function ul(){this.cb=this.a=0,this.sc="",this.m=new L,this.Od=new ft,this.Kc=new pt,this.ed=new $r,this.Qa=new ut,this.Ic=this.$c=this.Aa=0,this.D=new Ao,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=s(8,L),this.ia=0,this.pb=s(4,Ta),this.Pa=new _t,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new gs),this.Hd=0,this.rb=Array(new tn),this.sb=0,this.wa=Array(new br),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new oo),this.L=this.aa=0,this.gd=o([4,2],br),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function Mn(x,C){return 0>x?0:x>C?C:x}function bA(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function lo(){var x=new ul;return x!=null&&(x.a=0,x.sc="OK",x.cb=0,x.Xb=0,xs||(xs=fl)),x}function jr(x,C,M){return x.a==0&&(x.a=C,x.sc=M,x.cb=0),0}function Uf(x,C,M){return 3<=M&&x[C+0]==157&&x[C+1]==1&&x[C+2]==42}function Ro(x,C){if(x==null)return 0;if(x.a=0,x.sc="OK",C==null)return jr(x,2,"null VP8Io passed to VP8GetHeaders()");var M=C.data,H=C.w,X=C.ha;if(4>X)return jr(x,7,"Truncated header.");var te=M[H+0]|M[H+1]<<8|M[H+2]<<16,ne=x.Od;if(ne.Rb=!(1&te),ne.td=te>>1&7,ne.yd=te>>4&1,ne.ub=te>>5,3<ne.td)return jr(x,3,"Incorrect keyframe parameters.");if(!ne.yd)return jr(x,4,"Frame not displayable.");H+=3,X-=3;var oe=x.Kc;if(ne.Rb){if(7>X)return jr(x,7,"cannot parse picture header");if(!Uf(M,H,X))return jr(x,3,"Bad code word");oe.c=16383&(M[H+4]<<8|M[H+3]),oe.Td=M[H+4]>>6,oe.i=16383&(M[H+6]<<8|M[H+5]),oe.Ud=M[H+6]>>6,H+=7,X-=7,x.za=oe.c+15>>4,x.Ub=oe.i+15>>4,C.width=oe.c,C.height=oe.i,C.Da=0,C.j=0,C.v=0,C.va=C.width,C.o=C.height,C.da=0,C.ib=C.width,C.hb=C.height,C.U=C.width,C.T=C.height,i((te=x.Pa).jb,0,255,te.jb.length),t((te=x.Qa)!=null),te.Cb=0,te.Bb=0,te.Fb=1,i(te.Zb,0,0,te.Zb.length),i(te.Lb,0,0,te.Lb)}if(ne.ub>X)return jr(x,7,"bad partition length");G(te=x.m,M,H,ne.ub),H+=ne.ub,X-=ne.ub,ne.Rb&&(oe.Ld=ae(te),oe.Kd=ae(te)),oe=x.Qa;var ue,me=x.Pa;if(t(te!=null),t(oe!=null),oe.Cb=ae(te),oe.Cb){if(oe.Bb=ae(te),ae(te)){for(oe.Fb=ae(te),ue=0;4>ue;++ue)oe.Zb[ue]=ae(te)?ge(te,7):0;for(ue=0;4>ue;++ue)oe.Lb[ue]=ae(te)?ge(te,6):0}if(oe.Bb)for(ue=0;3>ue;++ue)me.jb[ue]=ae(te)?se(te,8):255}else oe.Bb=0;if(te.Ka)return jr(x,3,"cannot parse segment header");if((oe=x.ed).zd=ae(te),oe.Tb=se(te,6),oe.wb=se(te,3),oe.Pc=ae(te),oe.Pc&&ae(te)){for(me=0;4>me;++me)ae(te)&&(oe.vd[me]=ge(te,6));for(me=0;4>me;++me)ae(te)&&(oe.od[me]=ge(te,6))}if(x.L=oe.Tb==0?0:oe.zd?1:2,te.Ka)return jr(x,3,"cannot parse filter header");var Se=X;if(X=ue=H,H=ue+Se,oe=Se,x.Xb=(1<<se(x.m,2))-1,Se<3*(me=x.Xb))M=7;else{for(ue+=3*me,oe-=3*me,Se=0;Se<me;++Se){var Re=M[X+0]|M[X+1]<<8|M[X+2]<<16;Re>oe&&(Re=oe),G(x.Jc[+Se],M,ue,Re),ue+=Re,oe-=Re,X+=3}G(x.Jc[+me],M,ue,oe),M=ue<H?0:5}if(M!=0)return jr(x,M,"cannot parse partitions");for(M=se(ue=x.m,7),X=ae(ue)?ge(ue,4):0,H=ae(ue)?ge(ue,4):0,oe=ae(ue)?ge(ue,4):0,me=ae(ue)?ge(ue,4):0,ue=ae(ue)?ge(ue,4):0,Se=x.Qa,Re=0;4>Re;++Re){if(Se.Cb){var pe=Se.Zb[Re];Se.Fb||(pe+=M)}else{if(0<Re){x.pb[Re]=x.pb[0];continue}pe=M}var Ue=x.pb[Re];Ue.Sc[0]=js[Mn(pe+X,127)],Ue.Sc[1]=Hs[Mn(pe+0,127)],Ue.Eb[0]=2*js[Mn(pe+H,127)],Ue.Eb[1]=101581*Hs[Mn(pe+oe,127)]>>16,8>Ue.Eb[1]&&(Ue.Eb[1]=8),Ue.Qc[0]=js[Mn(pe+me,117)],Ue.Qc[1]=Hs[Mn(pe+ue,127)],Ue.lc=pe+ue}if(!ne.Rb)return jr(x,4,"Not a key frame.");for(ae(te),ne=x.Pa,M=0;4>M;++M){for(X=0;8>X;++X)for(H=0;3>H;++H)for(oe=0;11>oe;++oe)me=be(te,En[M][X][H][oe])?se(te,8):Tv[M][X][H][oe],ne.Wc[M][X].Yb[H][oe]=me;for(X=0;17>X;++X)ne.Xc[M][X]=ne.Wc[M][Cr[X]]}return x.kc=ae(te),x.kc&&(x.Bd=se(te,8)),x.cb=1}function fl(x,C,M,H,X,te,ne){var oe=C[X].Yb[M];for(M=0;16>X;++X){if(!be(x,oe[M+0]))return X;for(;!be(x,oe[M+1]);)if(oe=C[++X].Yb[0],M=0,X==16)return 16;var ue=C[X+1].Yb;if(be(x,oe[M+2])){var me=x,Se=0;if(be(me,(pe=oe)[(Re=M)+3]))if(be(me,pe[Re+6])){for(oe=0,Re=2*(Se=be(me,pe[Re+8]))+(pe=be(me,pe[Re+9+Se])),Se=0,pe=Fv[Re];pe[oe];++oe)Se+=Se+be(me,pe[oe]);Se+=3+(8<<Re)}else be(me,pe[Re+7])?(Se=7+2*be(me,165),Se+=be(me,145)):Se=5+be(me,159);else Se=be(me,pe[Re+4])?3+be(me,pe[Re+5]):2;oe=ue[2]}else Se=1,oe=ue[1];ue=ne+Sg[X],0>(me=x).b&&Be(me);var Re,pe=me.b,Ue=(Re=me.Ca>>1)-(me.I>>pe)>>31;--me.b,me.Ca+=Ue,me.Ca|=1,me.I-=(Re+1&Ue)<<pe,te[ue]=((Se^Ue)-Ue)*H[(0<X)+0]}return 16}function Nf(x){var C=x.rb[x.sb-1];C.la=0,C.Na=0,i(x.zc,0,0,x.zc.length),x.ja=0}function Oa(x,C,M,H,X){X=x[C+M+32*H]+(X>>3),x[C+M+32*H]=-256&X?0>X?0:255:X}function _i(x,C,M,H,X,te){Oa(x,C,0,M,H+X),Oa(x,C,1,M,H+te),Oa(x,C,2,M,H-te),Oa(x,C,3,M,H-X)}function hi(x){return(20091*x>>16)+x}function Au(x,C,M,H){var X,te=0,ne=a(16);for(X=0;4>X;++X){var oe=x[C+0]+x[C+8],ue=x[C+0]-x[C+8],me=(35468*x[C+4]>>16)-hi(x[C+12]),Se=hi(x[C+4])+(35468*x[C+12]>>16);ne[te+0]=oe+Se,ne[te+1]=ue+me,ne[te+2]=ue-me,ne[te+3]=oe-Se,te+=4,C++}for(X=te=0;4>X;++X)oe=(x=ne[te+0]+4)+ne[te+8],ue=x-ne[te+8],me=(35468*ne[te+4]>>16)-hi(ne[te+12]),Oa(M,H,0,0,oe+(Se=hi(ne[te+4])+(35468*ne[te+12]>>16))),Oa(M,H,1,0,ue+me),Oa(M,H,2,0,ue-me),Oa(M,H,3,0,oe-Se),te++,H+=32}function cd(x,C,M,H){var X=x[C+0]+4,te=35468*x[C+4]>>16,ne=hi(x[C+4]),oe=35468*x[C+1]>>16;_i(M,H,0,X+ne,x=hi(x[C+1]),oe),_i(M,H,1,X+te,x,oe),_i(M,H,2,X-te,x,oe),_i(M,H,3,X-ne,x,oe)}function Lf(x,C,M,H,X){Au(x,C,M,H),X&&Au(x,C+16,M,H+4)}function Ua(x,C,M,H){QA(x,C+0,M,H,1),QA(x,C+32,M,H+128,1)}function Df(x,C,M,H){var X;for(x=x[C+0]+4,X=0;4>X;++X)for(C=0;4>C;++C)Oa(M,H,C,X,x)}function If(x,C,M,H){x[C+0]&&Hr(x,C+0,M,H),x[C+16]&&Hr(x,C+16,M,H+4),x[C+32]&&Hr(x,C+32,M,H+128),x[C+48]&&Hr(x,C+48,M,H+128+4)}function co(x,C,M,H){var X,te=a(16);for(X=0;4>X;++X){var ne=x[C+0+X]+x[C+12+X],oe=x[C+4+X]+x[C+8+X],ue=x[C+4+X]-x[C+8+X],me=x[C+0+X]-x[C+12+X];te[0+X]=ne+oe,te[8+X]=ne-oe,te[4+X]=me+ue,te[12+X]=me-ue}for(X=0;4>X;++X)ne=(x=te[0+4*X]+3)+te[3+4*X],oe=te[1+4*X]+te[2+4*X],ue=te[1+4*X]-te[2+4*X],me=x-te[3+4*X],M[H+0]=ne+oe>>3,M[H+16]=me+ue>>3,M[H+32]=ne-oe>>3,M[H+48]=me-ue>>3,H+=64}function Xl(x,C,M){var H,X=C-32,te=da,ne=255-x[X-1];for(H=0;H<M;++H){var oe,ue=te,me=ne+x[C-1];for(oe=0;oe<M;++oe)x[C+oe]=ue[me+x[X+oe]];C+=32}}function ud(x,C){Xl(x,C,4)}function fd(x,C){Xl(x,C,8)}function Mf(x,C){Xl(x,C,16)}function Pf(x,C){var M;for(M=0;16>M;++M)n(x,C+32*M,x,C-32,16)}function hd(x,C){var M;for(M=16;0<M;--M)i(x,C,x[C-1],16),C+=32}function Za(x,C,M){var H;for(H=0;16>H;++H)i(C,M+32*H,x,16)}function uo(x,C){var M,H=16;for(M=0;16>M;++M)H+=x[C-1+32*M]+x[C+M-32];Za(H>>5,x,C)}function BA(x,C){var M,H=8;for(M=0;16>M;++M)H+=x[C-1+32*M];Za(H>>4,x,C)}function Jl(x,C){var M,H=8;for(M=0;16>M;++M)H+=x[C+M-32];Za(H>>4,x,C)}function hl(x,C){Za(128,x,C)}function er(x,C,M){return x+2*C+M+2>>2}function dd(x,C){var M,H=C-32;for(H=new Uint8Array([er(x[H-1],x[H+0],x[H+1]),er(x[H+0],x[H+1],x[H+2]),er(x[H+1],x[H+2],x[H+3]),er(x[H+2],x[H+3],x[H+4])]),M=0;4>M;++M)n(x,C+32*M,H,0,H.length)}function kf(x,C){var M=x[C-1],H=x[C-1+32],X=x[C-1+64],te=x[C-1+96];ke(x,C+0,16843009*er(x[C-1-32],M,H)),ke(x,C+32,16843009*er(M,H,X)),ke(x,C+64,16843009*er(H,X,te)),ke(x,C+96,16843009*er(X,te,te))}function gd(x,C){var M,H=4;for(M=0;4>M;++M)H+=x[C+M-32]+x[C-1+32*M];for(H>>=3,M=0;4>M;++M)i(x,C+32*M,H,4)}function ps(x,C){var M=x[C-1+0],H=x[C-1+32],X=x[C-1+64],te=x[C-1-32],ne=x[C+0-32],oe=x[C+1-32],ue=x[C+2-32],me=x[C+3-32];x[C+0+96]=er(H,X,x[C-1+96]),x[C+1+96]=x[C+0+64]=er(M,H,X),x[C+2+96]=x[C+1+64]=x[C+0+32]=er(te,M,H),x[C+3+96]=x[C+2+64]=x[C+1+32]=x[C+0+0]=er(ne,te,M),x[C+3+64]=x[C+2+32]=x[C+1+0]=er(oe,ne,te),x[C+3+32]=x[C+2+0]=er(ue,oe,ne),x[C+3+0]=er(me,ue,oe)}function Yi(x,C){var M=x[C+1-32],H=x[C+2-32],X=x[C+3-32],te=x[C+4-32],ne=x[C+5-32],oe=x[C+6-32],ue=x[C+7-32];x[C+0+0]=er(x[C+0-32],M,H),x[C+1+0]=x[C+0+32]=er(M,H,X),x[C+2+0]=x[C+1+32]=x[C+0+64]=er(H,X,te),x[C+3+0]=x[C+2+32]=x[C+1+64]=x[C+0+96]=er(X,te,ne),x[C+3+32]=x[C+2+64]=x[C+1+96]=er(te,ne,oe),x[C+3+64]=x[C+2+96]=er(ne,oe,ue),x[C+3+96]=er(oe,ue,ue)}function Qf(x,C){var M=x[C-1+0],H=x[C-1+32],X=x[C-1+64],te=x[C-1-32],ne=x[C+0-32],oe=x[C+1-32],ue=x[C+2-32],me=x[C+3-32];x[C+0+0]=x[C+1+64]=te+ne+1>>1,x[C+1+0]=x[C+2+64]=ne+oe+1>>1,x[C+2+0]=x[C+3+64]=oe+ue+1>>1,x[C+3+0]=ue+me+1>>1,x[C+0+96]=er(X,H,M),x[C+0+64]=er(H,M,te),x[C+0+32]=x[C+1+96]=er(M,te,ne),x[C+1+32]=x[C+2+96]=er(te,ne,oe),x[C+2+32]=x[C+3+96]=er(ne,oe,ue),x[C+3+32]=er(oe,ue,me)}function Zl(x,C){var M=x[C+0-32],H=x[C+1-32],X=x[C+2-32],te=x[C+3-32],ne=x[C+4-32],oe=x[C+5-32],ue=x[C+6-32],me=x[C+7-32];x[C+0+0]=M+H+1>>1,x[C+1+0]=x[C+0+64]=H+X+1>>1,x[C+2+0]=x[C+1+64]=X+te+1>>1,x[C+3+0]=x[C+2+64]=te+ne+1>>1,x[C+0+32]=er(M,H,X),x[C+1+32]=x[C+0+96]=er(H,X,te),x[C+2+32]=x[C+1+96]=er(X,te,ne),x[C+3+32]=x[C+2+96]=er(te,ne,oe),x[C+3+64]=er(ne,oe,ue),x[C+3+96]=er(oe,ue,me)}function vs(x,C){var M=x[C-1+0],H=x[C-1+32],X=x[C-1+64],te=x[C-1+96];x[C+0+0]=M+H+1>>1,x[C+2+0]=x[C+0+32]=H+X+1>>1,x[C+2+32]=x[C+0+64]=X+te+1>>1,x[C+1+0]=er(M,H,X),x[C+3+0]=x[C+1+32]=er(H,X,te),x[C+3+32]=x[C+1+64]=er(X,te,te),x[C+3+64]=x[C+2+64]=x[C+0+96]=x[C+1+96]=x[C+2+96]=x[C+3+96]=te}function ec(x,C){var M=x[C-1+0],H=x[C-1+32],X=x[C-1+64],te=x[C-1+96],ne=x[C-1-32],oe=x[C+0-32],ue=x[C+1-32],me=x[C+2-32];x[C+0+0]=x[C+2+32]=M+ne+1>>1,x[C+0+32]=x[C+2+64]=H+M+1>>1,x[C+0+64]=x[C+2+96]=X+H+1>>1,x[C+0+96]=te+X+1>>1,x[C+3+0]=er(oe,ue,me),x[C+2+0]=er(ne,oe,ue),x[C+1+0]=x[C+3+32]=er(M,ne,oe),x[C+1+32]=x[C+3+64]=er(H,M,ne),x[C+1+64]=x[C+3+96]=er(X,H,M),x[C+1+96]=er(te,X,H)}function jo(x,C){var M;for(M=0;8>M;++M)n(x,C+32*M,x,C-32,8)}function pd(x,C){var M;for(M=0;8>M;++M)i(x,C,x[C-1],8),C+=32}function Ls(x,C,M){var H;for(H=0;8>H;++H)i(C,M+32*H,x,8)}function lu(x,C){var M,H=8;for(M=0;8>M;++M)H+=x[C+M-32]+x[C-1+32*M];Ls(H>>4,x,C)}function cu(x,C){var M,H=4;for(M=0;8>M;++M)H+=x[C+M-32];Ls(H>>3,x,C)}function ki(x,C){var M,H=4;for(M=0;8>M;++M)H+=x[C-1+32*M];Ls(H>>3,x,C)}function Ho(x,C){Ls(128,x,C)}function Ds(x,C,M){var H=x[C-M],X=x[C+0],te=3*(X-H)+RA[1020+x[C-2*M]-x[C+M]],ne=Wf[112+(te+4>>3)];x[C-M]=da[255+H+Wf[112+(te+3>>3)]],x[C+0]=da[255+X-ne]}function CA(x,C,M,H){var X=x[C+0],te=x[C+M];return Ji[255+x[C-2*M]-x[C-M]]>H||Ji[255+te-X]>H}function uu(x,C,M,H){return 4*Ji[255+x[C-M]-x[C+0]]+Ji[255+x[C-2*M]-x[C+M]]<=H}function tc(x,C,M,H,X){var te=x[C-3*M],ne=x[C-2*M],oe=x[C-M],ue=x[C+0],me=x[C+M],Se=x[C+2*M],Re=x[C+3*M];return 4*Ji[255+oe-ue]+Ji[255+ne-me]>H?0:Ji[255+x[C-4*M]-te]<=X&&Ji[255+te-ne]<=X&&Ji[255+ne-oe]<=X&&Ji[255+Re-Se]<=X&&Ji[255+Se-me]<=X&&Ji[255+me-ue]<=X}function EA(x,C,M,H){var X=2*H+1;for(H=0;16>H;++H)uu(x,C+H,M,X)&&Ds(x,C+H,M)}function _A(x,C,M,H){var X=2*H+1;for(H=0;16>H;++H)uu(x,C+H*M,1,X)&&Ds(x,C+H*M,1)}function rc(x,C,M,H){var X;for(X=3;0<X;--X)EA(x,C+=4*M,M,H)}function Rf(x,C,M,H){var X;for(X=3;0<X;--X)_A(x,C+=4,M,H)}function SA(x,C,M,H,X,te,ne,oe){for(te=2*te+1;0<X--;){if(tc(x,C,M,te,ne))if(CA(x,C,M,oe))Ds(x,C,M);else{var ue=x,me=C,Se=M,Re=ue[me-2*Se],pe=ue[me-Se],Ue=ue[me+0],Me=ue[me+Se],Ye=ue[me+2*Se],Qe=27*(et=RA[1020+3*(Ue-pe)+RA[1020+Re-Me]])+63>>7,We=18*et+63>>7,et=9*et+63>>7;ue[me-3*Se]=da[255+ue[me-3*Se]+et],ue[me-2*Se]=da[255+Re+We],ue[me-Se]=da[255+pe+Qe],ue[me+0]=da[255+Ue-Qe],ue[me+Se]=da[255+Me-We],ue[me+2*Se]=da[255+Ye-et]}C+=H}}function FA(x,C,M,H,X,te,ne,oe){for(te=2*te+1;0<X--;){if(tc(x,C,M,te,ne))if(CA(x,C,M,oe))Ds(x,C,M);else{var ue=x,me=C,Se=M,Re=ue[me-Se],pe=ue[me+0],Ue=ue[me+Se],Me=Wf[112+(4+(Ye=3*(pe-Re))>>3)],Ye=Wf[112+(Ye+3>>3)],Qe=Me+1>>1;ue[me-2*Se]=da[255+ue[me-2*Se]+Qe],ue[me-Se]=da[255+Re+Ye],ue[me+0]=da[255+pe-Me],ue[me+Se]=da[255+Ue-Qe]}C+=H}}function vd(x,C,M,H,X,te){SA(x,C,M,1,16,H,X,te)}function TA(x,C,M,H,X,te){SA(x,C,1,M,16,H,X,te)}function md(x,C,M,H,X,te){var ne;for(ne=3;0<ne;--ne)FA(x,C+=4*M,M,1,16,H,X,te)}function U(x,C,M,H,X,te){var ne;for(ne=3;0<ne;--ne)FA(x,C+=4,1,M,16,H,X,te)}function Y(x,C,M,H,X,te,ne,oe){SA(x,C,X,1,8,te,ne,oe),SA(M,H,X,1,8,te,ne,oe)}function xe(x,C,M,H,X,te,ne,oe){SA(x,C,1,X,8,te,ne,oe),SA(M,H,1,X,8,te,ne,oe)}function Ee(x,C,M,H,X,te,ne,oe){FA(x,C+4*X,X,1,8,te,ne,oe),FA(M,H+4*X,X,1,8,te,ne,oe)}function Le(x,C,M,H,X,te,ne,oe){FA(x,C+4,1,X,8,te,ne,oe),FA(M,H+4,1,X,8,te,ne,oe)}function Ze(){this.ba=new sr,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new Zt,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function At(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function Ut(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function kt(){this.ua=0,this.Wa=new tt,this.vb=new tt,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new fe,this.yc=new W}function ar(){this.xb=this.a=0,this.l=new bA,this.ca=new sr,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new j,this.Pb=0,this.wd=new j,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new kt,this.ab=0,this.gc=s(4,Ut),this.Oc=0}function hr(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new bA,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function Lr(x,C,M,H,X,te,ne){for(x=x==null?0:x[C+0],C=0;C<ne;++C)X[te+C]=x+M[H+C]&255,x=X[te+C]}function Pn(x,C,M,H,X,te,ne){var oe;if(x==null)Lr(null,null,M,H,X,te,ne);else for(oe=0;oe<ne;++oe)X[te+oe]=x[C+oe]+M[H+oe]&255}function ai(x,C,M,H,X,te,ne){if(x==null)Lr(null,null,M,H,X,te,ne);else{var oe,ue=x[C+0],me=ue,Se=ue;for(oe=0;oe<ne;++oe)me=Se+(ue=x[C+oe])-me,Se=M[H+oe]+(-256&me?0>me?0:255:me)&255,me=ue,X[te+oe]=Se}}function pn(x,C,M,H){var X=C.width,te=C.o;if(t(x!=null&&C!=null),0>M||0>=H||M+H>te)return null;if(!x.Cc){if(x.ga==null){var ne;if(x.ga=new hr,(ne=x.ga==null)||(ne=C.width*C.o,t(x.Gb.length==0),x.Gb=a(ne),x.Uc=0,x.Gb==null?ne=0:(x.mb=x.Gb,x.nb=x.Uc,x.rc=null,ne=1),ne=!ne),!ne){ne=x.ga;var oe=x.Fa,ue=x.P,me=x.qc,Se=x.mb,Re=x.nb,pe=ue+1,Ue=me-1,Me=ne.l;if(t(oe!=null&&Se!=null&&C!=null),jA[0]=null,jA[1]=Lr,jA[2]=Pn,jA[3]=ai,ne.ca=Se,ne.tb=Re,ne.c=C.width,ne.i=C.height,t(0<ne.c&&0<ne.i),1>=me)C=0;else if(ne.$a=3&oe[ue+0],ne.Z=oe[ue+0]>>2&3,ne.Lc=oe[ue+0]>>4&3,ue=oe[ue+0]>>6&3,0>ne.$a||1<ne.$a||4<=ne.Z||1<ne.Lc||ue)C=0;else if(Me.put=Mt,Me.ac=fa,Me.bc=Ja,Me.ma=ne,Me.width=C.width,Me.height=C.height,Me.Da=C.Da,Me.v=C.v,Me.va=C.va,Me.j=C.j,Me.o=C.o,ne.$a)e:{t(ne.$a==1),C=Ne();t:for(;;){if(C==null){C=0;break e}if(t(ne!=null),ne.mc=C,C.c=ne.c,C.i=ne.i,C.l=ne.l,C.l.ma=ne,C.l.width=ne.c,C.l.height=ne.i,C.a=0,ye(C.m,oe,pe,Ue),!Ie(ne.c,ne.i,1,C,null)||(C.ab==1&&C.gc[0].hc==3&&ce(C.s)?(ne.ic=1,oe=C.c*C.i,C.Ta=null,C.Ua=0,C.V=a(oe),C.Ba=0,C.V==null?(C.a=1,C=0):C=1):(ne.ic=0,C=Pe(C,ne.c)),!C))break t;C=1;break e}ne.mc=null,C=0}else C=Ue>=ne.c*ne.i;ne=!C}if(ne)return null;x.ga.Lc!=1?x.Ga=0:H=te-M}t(x.ga!=null),t(M+H<=te);e:{if(C=(oe=x.ga).c,te=oe.l.o,oe.$a==0){if(pe=x.rc,Ue=x.Vc,Me=x.Fa,ue=x.P+1+M*C,me=x.mb,Se=x.nb+M*C,t(ue<=x.P+x.qc),oe.Z!=0)for(t(jA[oe.Z]!=null),ne=0;ne<H;++ne)jA[oe.Z](pe,Ue,Me,ue,me,Se,C),pe=me,Ue=Se,Se+=C,ue+=C;else for(ne=0;ne<H;++ne)n(me,Se,Me,ue,C),pe=me,Ue=Se,Se+=C,ue+=C;x.rc=pe,x.Vc=Ue}else{if(t(oe.mc!=null),C=M+H,t((ne=oe.mc)!=null),t(C<=ne.i),ne.C>=C)C=1;else if(oe.ic||fo(),oe.ic){oe=ne.V,pe=ne.Ba,Ue=ne.c;var Ye=ne.i,Qe=(Me=1,ue=ne.$/Ue,me=ne.$%Ue,Se=ne.m,Re=ne.s,ne.$),We=Ue*Ye,et=Ue*C,ct=Re.wc,at=Qe<et?ee(Re,me,ue):null;t(Qe<=We),t(C<=Ye),t(ce(Re));t:for(;;){for(;!Se.h&&Qe<et;){if(me&ct||(at=ee(Re,me,ue)),t(at!=null),he(Se),256>(Ye=zr(at.G[0],at.H[0],Se)))oe[pe+Qe]=Ye,++Qe,++me>=Ue&&(me=0,++ue<=C&&!(ue%16)&&we(ne,ue));else{if(!(280>Ye)){Me=0;break t}Ye=ii(Ye-256,Se);var Lt,bt=zr(at.G[4],at.H[4],Se);if(he(Se),!(Qe>=(bt=fi(Ue,bt=ii(bt,Se)))&&We-Qe>=Ye)){Me=0;break t}for(Lt=0;Lt<Ye;++Lt)oe[pe+Qe+Lt]=oe[pe+Qe+Lt-bt];for(Qe+=Ye,me+=Ye;me>=Ue;)me-=Ue,++ue<=C&&!(ue%16)&&we(ne,ue);Qe<et&&me&ct&&(at=ee(Re,me,ue))}t(Se.h==q(Se))}we(ne,ue>C?C:ue);break t}!Me||Se.h&&Qe<We?(Me=0,ne.a=Se.h?5:3):ne.$=Qe,C=Me}else C=Te(ne,ne.V,ne.Ba,ne.c,ne.i,C,ot);if(!C){H=0;break e}}M+H>=te&&(x.Cc=1),H=1}if(!H)return null;if(x.Cc&&((H=x.ga)!=null&&(H.mc=null),x.ga=null,0<x.Ga))return alert("todo:WebPDequantizeLevels"),null}return x.nb+M*X}function Si(x,C,M,H,X,te){for(;0<X--;){var ne,oe=x,ue=C+(M?1:0),me=x,Se=C+(M?0:3);for(ne=0;ne<H;++ne){var Re=me[Se+4*ne];Re!=255&&(Re*=32897,oe[ue+4*ne+0]=oe[ue+4*ne+0]*Re>>23,oe[ue+4*ne+1]=oe[ue+4*ne+1]*Re>>23,oe[ue+4*ne+2]=oe[ue+4*ne+2]*Re>>23)}C+=te}}function di(x,C,M,H,X){for(;0<H--;){var te;for(te=0;te<M;++te){var ne=x[C+2*te+0],oe=15&(me=x[C+2*te+1]),ue=4369*oe,me=(240&me|me>>4)*ue>>16;x[C+2*te+0]=(240&ne|ne>>4)*ue>>16&240|(15&ne|ne<<4)*ue>>16>>4&15,x[C+2*te+1]=240&me|oe}C+=X}}function $i(x,C,M,H,X,te,ne,oe){var ue,me,Se=255;for(me=0;me<X;++me){for(ue=0;ue<H;++ue){var Re=x[C+ue];te[ne+4*ue]=Re,Se&=Re}C+=M,ne+=oe}return Se!=255}function OA(x,C,M,H,X){var te;for(te=0;te<X;++te)M[H+te]=x[C+te]>>8}function fo(){sc=Si,Ms=di,Vf=$i,ws=OA}function UA(x,C,M){O[x]=function(H,X,te,ne,oe,ue,me,Se,Re,pe,Ue,Me,Ye,Qe,We,et,ct){var at,Lt=ct-1>>1,bt=oe[ue+0]|me[Se+0]<<16,Ar=Re[pe+0]|Ue[Me+0]<<16;t(H!=null);var St=3*bt+Ar+131074>>2;for(C(H[X+0],255&St,St>>16,Ye,Qe),te!=null&&(St=3*Ar+bt+131074>>2,C(te[ne+0],255&St,St>>16,We,et)),at=1;at<=Lt;++at){var Br=oe[ue+at]|me[Se+at]<<16,_n=Re[pe+at]|Ue[Me+at]<<16,dr=bt+Br+Ar+_n+524296,Bt=dr+2*(Br+Ar)>>3;St=Bt+bt>>1,bt=(dr=dr+2*(bt+_n)>>3)+Br>>1,C(H[X+2*at-1],255&St,St>>16,Ye,Qe+(2*at-1)*M),C(H[X+2*at-0],255&bt,bt>>16,Ye,Qe+(2*at-0)*M),te!=null&&(St=dr+Ar>>1,bt=Bt+_n>>1,C(te[ne+2*at-1],255&St,St>>16,We,et+(2*at-1)*M),C(te[ne+2*at+0],255&bt,bt>>16,We,et+(2*at+0)*M)),bt=Br,Ar=_n}1&ct||(St=3*bt+Ar+131074>>2,C(H[X+ct-1],255&St,St>>16,Ye,Qe+(ct-1)*M),te!=null&&(St=3*Ar+bt+131074>>2,C(te[ne+ct-1],255&St,St>>16,We,et+(ct-1)*M)))}}function jf(){ea[bd]=lc,ea[ga]=bu,ea[Bd]=Tg,ea[Ps]=Fd,ea[Yf]=wl,ea[yu]=Xo,ea[vl]=xl,ea[$f]=bu,ea[Cd]=Fd,ea[wu]=wl,ea[Ed]=Xo}function fu(x){return x&-16384?0>x?0:255:x>>Td}function Ko(x,C){return fu((19077*x>>8)+(26149*C>>8)-14234)}function ho(x,C,M){return fu((19077*x>>8)-(6419*C>>8)-(13320*M>>8)+8708)}function nc(x,C){return fu((19077*x>>8)+(33050*C>>8)-17685)}function NA(x,C,M,H,X){H[X+0]=Ko(x,M),H[X+1]=ho(x,C,M),H[X+2]=nc(x,C)}function Qi(x,C,M,H,X){H[X+0]=nc(x,C),H[X+1]=ho(x,C,M),H[X+2]=Ko(x,M)}function dl(x,C,M,H,X){var te=ho(x,C,M);C=te<<3&224|nc(x,C)>>3,H[X+0]=248&Ko(x,M)|te>>5,H[X+1]=C}function gl(x,C,M,H,X){var te=240&nc(x,C)|15;H[X+0]=240&Ko(x,M)|ho(x,C,M)>>4,H[X+1]=te}function hu(x,C,M,H,X){H[X+0]=255,NA(x,C,M,H,X+1)}function zo(x,C,M,H,X){Qi(x,C,M,H,X),H[X+3]=255}function Na(x,C,M,H,X){NA(x,C,M,H,X),H[X+3]=255}function LA(x,C,M){O[x]=function(H,X,te,ne,oe,ue,me,Se,Re){for(var pe=Se+(-2&Re)*M;Se!=pe;)C(H[X+0],te[ne+0],oe[ue+0],me,Se),C(H[X+1],te[ne+0],oe[ue+0],me,Se+M),X+=2,++ne,++ue,Se+=2*M;1&Re&&C(H[X+0],te[ne+0],oe[ue+0],me,Se)}}function du(x,C,M){return M==0?x==0?C==0?6:5:C==0?4:0:M}function Hf(x,C,M,H,X){switch(x>>>30){case 3:QA(C,M,H,X,0);break;case 2:ha(C,M,H,X);break;case 1:Hr(C,M,H,X)}}function ms(x,C){var M,H,X=C.M,te=C.Nb,ne=x.oc,oe=x.pc+40,ue=x.oc,me=x.pc+584,Se=x.oc,Re=x.pc+600;for(M=0;16>M;++M)ne[oe+32*M-1]=129;for(M=0;8>M;++M)ue[me+32*M-1]=129,Se[Re+32*M-1]=129;for(0<X?ne[oe-1-32]=ue[me-1-32]=Se[Re-1-32]=129:(i(ne,oe-32-1,127,21),i(ue,me-32-1,127,9),i(Se,Re-32-1,127,9)),H=0;H<x.za;++H){var pe=C.ya[C.aa+H];if(0<H){for(M=-1;16>M;++M)n(ne,oe+32*M-4,ne,oe+32*M+12,4);for(M=-1;8>M;++M)n(ue,me+32*M-4,ue,me+32*M+4,4),n(Se,Re+32*M-4,Se,Re+32*M+4,4)}var Ue=x.Gd,Me=x.Hd+H,Ye=pe.ad,Qe=pe.Hc;if(0<X&&(n(ne,oe-32,Ue[Me].y,0,16),n(ue,me-32,Ue[Me].f,0,8),n(Se,Re-32,Ue[Me].ea,0,8)),pe.Za){var We=ne,et=oe-32+16;for(0<X&&(H>=x.za-1?i(We,et,Ue[Me].y[15],4):n(We,et,Ue[Me+1].y,0,4)),M=0;4>M;M++)We[et+128+M]=We[et+256+M]=We[et+384+M]=We[et+0+M];for(M=0;16>M;++M,Qe<<=2)We=ne,et=oe+Ai[M],Gn[pe.Ob[M]](We,et),Hf(Qe,Ye,16*+M,We,et)}else if(We=du(H,X,pe.Ob[0]),Da[We](ne,oe),Qe!=0)for(M=0;16>M;++M,Qe<<=2)Hf(Qe,Ye,16*+M,ne,oe+Ai[M]);for(M=pe.Gc,We=du(H,X,pe.Dd),mo[We](ue,me),mo[We](Se,Re),Qe=Ye,We=ue,et=me,255&(pe=0|M)&&(170&pe?Is(Qe,256,We,et):Dr(Qe,256,We,et)),pe=Se,Qe=Re,255&(M>>=8)&&(170&M?Is(Ye,320,pe,Qe):Dr(Ye,320,pe,Qe)),X<x.Ub-1&&(n(Ue[Me].y,0,ne,oe+480,16),n(Ue[Me].f,0,ue,me+224,8),n(Ue[Me].ea,0,Se,Re+224,8)),M=8*te*x.B,Ue=x.sa,Me=x.ta+16*H+16*te*x.R,Ye=x.qa,pe=x.ra+8*H+M,Qe=x.Ha,We=x.Ia+8*H+M,M=0;16>M;++M)n(Ue,Me+M*x.R,ne,oe+32*M,16);for(M=0;8>M;++M)n(Ye,pe+M*x.B,ue,me+32*M,8),n(Qe,We+M*x.B,Se,Re+32*M,8)}}function go(x,C,M,H,X,te,ne,oe,ue){var me=[0],Se=[0],Re=0,pe=ue!=null?ue.kd:0,Ue=ue??new At;if(x==null||12>M)return 7;Ue.data=x,Ue.w=C,Ue.ha=M,C=[C],M=[M],Ue.gb=[Ue.gb];e:{var Me=C,Ye=M,Qe=Ue.gb;if(t(x!=null),t(Ye!=null),t(Qe!=null),Qe[0]=0,12<=Ye[0]&&!r(x,Me[0],"RIFF")){if(r(x,Me[0]+8,"WEBP")){Qe=3;break e}var We=Ge(x,Me[0]+4);if(12>We||4294967286<We){Qe=3;break e}if(pe&&We>Ye[0]-8){Qe=7;break e}Qe[0]=We,Me[0]+=12,Ye[0]-=12}Qe=0}if(Qe!=0)return Qe;for(We=0<Ue.gb[0],M=M[0];;){e:{var et=x;Ye=C,Qe=M;var ct=me,at=Se,Lt=Me=[0];if((St=Re=[Re])[0]=0,8>Qe[0])Qe=7;else{if(!r(et,Ye[0],"VP8X")){if(Ge(et,Ye[0]+4)!=10){Qe=3;break e}if(18>Qe[0]){Qe=7;break e}var bt=Ge(et,Ye[0]+8),Ar=1+st(et,Ye[0]+12);if(2147483648<=Ar*(et=1+st(et,Ye[0]+15))){Qe=3;break e}Lt!=null&&(Lt[0]=bt),ct!=null&&(ct[0]=Ar),at!=null&&(at[0]=et),Ye[0]+=18,Qe[0]-=18,St[0]=1}Qe=0}}if(Re=Re[0],Me=Me[0],Qe!=0)return Qe;if(Ye=!!(2&Me),!We&&Re)return 3;if(te!=null&&(te[0]=!!(16&Me)),ne!=null&&(ne[0]=Ye),oe!=null&&(oe[0]=0),ne=me[0],Me=Se[0],Re&&Ye&&ue==null){Qe=0;break}if(4>M){Qe=7;break}if(We&&Re||!We&&!Re&&!r(x,C[0],"ALPH")){M=[M],Ue.na=[Ue.na],Ue.P=[Ue.P],Ue.Sa=[Ue.Sa];e:{bt=x,Qe=C,We=M;var St=Ue.gb;ct=Ue.na,at=Ue.P,Lt=Ue.Sa,Ar=22,t(bt!=null),t(We!=null),et=Qe[0];var Br=We[0];for(t(ct!=null),t(Lt!=null),ct[0]=null,at[0]=null,Lt[0]=0;;){if(Qe[0]=et,We[0]=Br,8>Br){Qe=7;break e}var _n=Ge(bt,et+4);if(4294967286<_n){Qe=3;break e}var dr=8+_n+1&-2;if(Ar+=dr,0<St&&Ar>St){Qe=3;break e}if(!r(bt,et,"VP8 ")||!r(bt,et,"VP8L")){Qe=0;break e}if(Br[0]<dr){Qe=7;break e}r(bt,et,"ALPH")||(ct[0]=bt,at[0]=et+8,Lt[0]=_n),et+=dr,Br-=dr}}if(M=M[0],Ue.na=Ue.na[0],Ue.P=Ue.P[0],Ue.Sa=Ue.Sa[0],Qe!=0)break}M=[M],Ue.Ja=[Ue.Ja],Ue.xa=[Ue.xa];e:if(St=x,Qe=C,We=M,ct=Ue.gb[0],at=Ue.Ja,Lt=Ue.xa,bt=Qe[0],et=!r(St,bt,"VP8 "),Ar=!r(St,bt,"VP8L"),t(St!=null),t(We!=null),t(at!=null),t(Lt!=null),8>We[0])Qe=7;else{if(et||Ar){if(St=Ge(St,bt+4),12<=ct&&St>ct-12){Qe=3;break e}if(pe&&St>We[0]-8){Qe=7;break e}at[0]=St,Qe[0]+=8,We[0]-=8,Lt[0]=Ar}else Lt[0]=5<=We[0]&&St[bt+0]==47&&!(St[bt+4]>>5),at[0]=We[0];Qe=0}if(M=M[0],Ue.Ja=Ue.Ja[0],Ue.xa=Ue.xa[0],C=C[0],Qe!=0)break;if(4294967286<Ue.Ja)return 3;if(oe==null||Ye||(oe[0]=Ue.xa?2:1),ne=[ne],Me=[Me],Ue.xa){if(5>M){Qe=7;break}oe=ne,pe=Me,Ye=te,x==null||5>M?x=0:5<=M&&x[C+0]==47&&!(x[C+4]>>5)?(We=[0],St=[0],ct=[0],ye(at=new j,x,C,M),Fa(at,We,St,ct)?(oe!=null&&(oe[0]=We[0]),pe!=null&&(pe[0]=St[0]),Ye!=null&&(Ye[0]=ct[0]),x=1):x=0):x=0}else{if(10>M){Qe=7;break}oe=Me,x==null||10>M||!Uf(x,C+3,M-3)?x=0:(pe=x[C+0]|x[C+1]<<8|x[C+2]<<16,Ye=16383&(x[C+7]<<8|x[C+6]),x=16383&(x[C+9]<<8|x[C+8]),1&pe||3<(pe>>1&7)||!(pe>>4&1)||pe>>5>=Ue.Ja||!Ye||!x?x=0:(ne&&(ne[0]=Ye),oe&&(oe[0]=x),x=1))}if(!x||(ne=ne[0],Me=Me[0],Re&&(me[0]!=ne||Se[0]!=Me)))return 3;ue!=null&&(ue[0]=Ue,ue.offset=C-ue.w,t(4294967286>C-ue.w),t(ue.offset==ue.ha-M));break}return Qe==0||Qe==7&&Re&&ue==null?(te!=null&&(te[0]|=Ue.na!=null&&0<Ue.na.length),H!=null&&(H[0]=ne),X!=null&&(X[0]=Me),0):Qe}function DA(x,C,M){var H=C.width,X=C.height,te=0,ne=0,oe=H,ue=X;if(C.Da=x!=null&&0<x.Da,C.Da&&(oe=x.cd,ue=x.bd,te=x.v,ne=x.j,11>M||(te&=-2,ne&=-2),0>te||0>ne||0>=oe||0>=ue||te+oe>H||ne+ue>X))return 0;if(C.v=te,C.j=ne,C.va=te+oe,C.o=ne+ue,C.U=oe,C.T=ue,C.da=x!=null&&0<x.da,C.da){if(!wt(oe,ue,M=[x.ib],te=[x.hb]))return 0;C.ib=M[0],C.hb=te[0]}return C.ob=x!=null&&x.ob,C.Kb=x==null||!x.Sd,C.da&&(C.ob=C.ib<3*H/4&&C.hb<3*X/4,C.Kb=0),1}function Kf(x){if(x==null)return 2;if(11>x.S){var C=x.f.RGBA;C.fb+=(x.height-1)*C.A,C.A=-C.A}else C=x.f.kb,x=x.height,C.O+=(x-1)*C.fa,C.fa=-C.fa,C.N+=(x-1>>1)*C.Ab,C.Ab=-C.Ab,C.W+=(x-1>>1)*C.Db,C.Db=-C.Db,C.F!=null&&(C.J+=(x-1)*C.lb,C.lb=-C.lb);return 0}function po(x,C,M,H){if(H==null||0>=x||0>=C)return 2;if(M!=null){if(M.Da){var X=M.cd,te=M.bd,ne=-2&M.v,oe=-2&M.j;if(0>ne||0>oe||0>=X||0>=te||ne+X>x||oe+te>C)return 2;x=X,C=te}if(M.da){if(!wt(x,C,X=[M.ib],te=[M.hb]))return 2;x=X[0],C=te[0]}}H.width=x,H.height=C;e:{var ue=H.width,me=H.height;if(x=H.S,0>=ue||0>=me||!(x>=bd&&13>x))x=2;else{if(0>=H.Rd&&H.sd==null){ne=te=X=C=0;var Se=(oe=ue*Ud[x])*me;if(11>x||(te=(me+1)/2*(C=(ue+1)/2),x==12&&(ne=(X=ue)*me)),(me=a(Se+2*te+ne))==null){x=1;break e}H.sd=me,11>x?((ue=H.f.RGBA).eb=me,ue.fb=0,ue.A=oe,ue.size=Se):((ue=H.f.kb).y=me,ue.O=0,ue.fa=oe,ue.Fd=Se,ue.f=me,ue.N=0+Se,ue.Ab=C,ue.Cd=te,ue.ea=me,ue.W=0+Se+te,ue.Db=C,ue.Ed=te,x==12&&(ue.F=me,ue.J=0+Se+2*te),ue.Tc=ne,ue.lb=X)}if(C=1,X=H.S,te=H.width,ne=H.height,X>=bd&&13>X)if(11>X)x=H.f.RGBA,C&=(oe=Math.abs(x.A))*(ne-1)+te<=x.size,C&=oe>=te*Ud[X],C&=x.eb!=null;else{x=H.f.kb,oe=(te+1)/2,Se=(ne+1)/2,ue=Math.abs(x.fa),me=Math.abs(x.Ab);var Re=Math.abs(x.Db),pe=Math.abs(x.lb),Ue=pe*(ne-1)+te;C&=ue*(ne-1)+te<=x.Fd,C&=me*(Se-1)+oe<=x.Cd,C=(C&=Re*(Se-1)+oe<=x.Ed)&ue>=te&me>=oe&Re>=oe,C&=x.y!=null,C&=x.f!=null,C&=x.ea!=null,X==12&&(C&=pe>=te,C&=Ue<=x.Tc,C&=x.F!=null)}else C=0;x=C?0:2}}return x!=0||M!=null&&M.fd&&(x=Kf(H)),x}var pl=64,es=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],La=24,Vo=32,Go=8,IA=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];yt("Predictor0","PredictorAdd0"),O.Predictor0=function(){return 4278190080},O.Predictor1=function(x){return x},O.Predictor2=function(x,C,M){return C[M+0]},O.Predictor3=function(x,C,M){return C[M+1]},O.Predictor4=function(x,C,M){return C[M-1]},O.Predictor5=function(x,C,M){return It(It(x,C[M+1]),C[M+0])},O.Predictor6=function(x,C,M){return It(x,C[M-1])},O.Predictor7=function(x,C,M){return It(x,C[M+0])},O.Predictor8=function(x,C,M){return It(C[M-1],C[M+0])},O.Predictor9=function(x,C,M){return It(C[M+0],C[M+1])},O.Predictor10=function(x,C,M){return It(It(x,C[M-1]),It(C[M+0],C[M+1]))},O.Predictor11=function(x,C,M){var H=C[M+0];return 0>=Jt(H>>24&255,x>>24&255,(C=C[M-1])>>24&255)+Jt(H>>16&255,x>>16&255,C>>16&255)+Jt(H>>8&255,x>>8&255,C>>8&255)+Jt(255&H,255&x,255&C)?H:x},O.Predictor12=function(x,C,M){var H=C[M+0];return(Vt((x>>24&255)+(H>>24&255)-((C=C[M-1])>>24&255))<<24|Vt((x>>16&255)+(H>>16&255)-(C>>16&255))<<16|Vt((x>>8&255)+(H>>8&255)-(C>>8&255))<<8|Vt((255&x)+(255&H)-(255&C)))>>>0},O.Predictor13=function(x,C,M){var H=C[M-1];return(cr((x=It(x,C[M+0]))>>24&255,H>>24&255)<<24|cr(x>>16&255,H>>16&255)<<16|cr(x>>8&255,H>>8&255)<<8|cr(255&x,255&H))>>>0};var gu=O.PredictorAdd0;O.PredictorAdd1=ur,yt("Predictor2","PredictorAdd2"),yt("Predictor3","PredictorAdd3"),yt("Predictor4","PredictorAdd4"),yt("Predictor5","PredictorAdd5"),yt("Predictor6","PredictorAdd6"),yt("Predictor7","PredictorAdd7"),yt("Predictor8","PredictorAdd8"),yt("Predictor9","PredictorAdd9"),yt("Predictor10","PredictorAdd10"),yt("Predictor11","PredictorAdd11"),yt("Predictor12","PredictorAdd12"),yt("Predictor13","PredictorAdd13");var pu=O.PredictorAdd2;Ot("ColorIndexInverseTransform","MapARGB","32b",function(x){return x>>8&255},function(x){return x}),Ot("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(x){return x},function(x){return x>>8&255});var si,yd=O.ColorIndexInverseTransform,qo=O.MapARGB,Wo=O.VP8LColorIndexInverseTransformAlpha,Xi=O.MapAlpha,MA=O.VP8LPredictorsAdd=[];MA.length=16,(O.VP8LPredictors=[]).length=16,(O.VP8LPredictorsAdd_C=[]).length=16,(O.VP8LPredictors_C=[]).length=16;var vu,mu,PA,kA,Yo,ic,ys,QA,ha,Is,Hr,Dr,vn,oi,$o,vo,ac,zf,Cg,Ev,_v,Sv,Eg,_g,sc,Ms,Vf,ws,oc=a(511),wd=a(2041),Gf=a(225),qf=a(767),xd=0,RA=wd,Wf=Gf,da=qf,Ji=oc,bd=0,ga=1,Bd=2,Ps=3,Yf=4,yu=5,vl=6,$f=7,Cd=8,wu=9,Ed=10,ks=[2,3,7],xu=[3,3,11],Ac=[280,256,256,256,40],_d=[0,1,1,1,0],Xf=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Qs=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],Rs=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],ml=8,js=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],Hs=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,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,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],xs=null,Fv=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],Sg=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],Sd=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],Tv=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],Zi=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],En=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],Cr=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],Da=[],Gn=[],mo=[],yl=1,Fg=2,jA=[],ea=[];UA("UpsampleRgbLinePair",NA,3),UA("UpsampleBgrLinePair",Qi,3),UA("UpsampleRgbaLinePair",Na,4),UA("UpsampleBgraLinePair",zo,4),UA("UpsampleArgbLinePair",hu,4),UA("UpsampleRgba4444LinePair",gl,2),UA("UpsampleRgb565LinePair",dl,2);var lc=O.UpsampleRgbLinePair,Tg=O.UpsampleBgrLinePair,bu=O.UpsampleRgbaLinePair,Fd=O.UpsampleBgraLinePair,wl=O.UpsampleArgbLinePair,Xo=O.UpsampleRgba4444LinePair,xl=O.UpsampleRgb565LinePair,Ks=16,Bu=1<<Ks-1,cc=-227,bl=482,Td=6,Bl=0,ta=a(256),Od=a(256),Ov=a(256),$x=a(256),Xx=a(bl-cc),Jx=a(bl-cc);LA("YuvToRgbRow",NA,3),LA("YuvToBgrRow",Qi,3),LA("YuvToRgbaRow",Na,4),LA("YuvToBgraRow",zo,4),LA("YuvToArgbRow",hu,4),LA("YuvToRgba4444Row",gl,2),LA("YuvToRgb565Row",dl,2);var Ai=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Cu=[0,2,8],Jf=[8,7,6,4,4,2,2,2,1,1,1,1],Zf=1;this.WebPDecodeRGBA=function(x,C,M,H,X){var te=ga,ne=new Ze,oe=new sr;ne.ba=oe,oe.S=te,oe.width=[oe.width],oe.height=[oe.height];var ue=oe.width,me=oe.height,Se=new mt;if(Se==null||x==null)var Re=2;else t(Se!=null),Re=go(x,C,M,Se.width,Se.height,Se.Pd,Se.Qd,Se.format,null);if(Re!=0?ue=0:(ue!=null&&(ue[0]=Se.width[0]),me!=null&&(me[0]=Se.height[0]),ue=1),ue){oe.width=oe.width[0],oe.height=oe.height[0],H!=null&&(H[0]=oe.width),X!=null&&(X[0]=oe.height);e:{if(H=new bA,(X=new At).data=x,X.w=C,X.ha=M,X.kd=1,C=[0],t(X!=null),((x=go(X.data,X.w,X.ha,null,null,null,C,null,X))==0||x==7)&&C[0]&&(x=4),(C=x)==0){if(t(ne!=null),H.data=X.data,H.w=X.w+X.offset,H.ha=X.ha-X.offset,H.put=Mt,H.ac=fa,H.bc=Ja,H.ma=ne,X.xa){if((x=Ne())==null){ne=1;break e}if((function(pe,Ue){var Me=[0],Ye=[0],Qe=[0];t:for(;;){if(pe==null)return 0;if(Ue==null)return pe.a=2,0;if(pe.l=Ue,pe.a=0,ye(pe.m,Ue.data,Ue.w,Ue.ha),!Fa(pe.m,Me,Ye,Qe)){pe.a=3;break t}if(pe.xb=Fg,Ue.width=Me[0],Ue.height=Ye[0],!Ie(Me[0],Ye[0],1,pe,null))break t;return 1}return t(pe.a!=0),0})(x,H)){if(H=(C=po(H.width,H.height,ne.Oa,ne.ba))==0){t:{H=x;r:for(;;){if(H==null){H=0;break t}if(t(H.s.yc!=null),t(H.s.Ya!=null),t(0<H.s.Wb),t((M=H.l)!=null),t((X=M.ma)!=null),H.xb!=0){if(H.ca=X.ba,H.tb=X.tb,t(H.ca!=null),!DA(X.Oa,M,Ps)){H.a=2;break r}if(!Pe(H,M.width)||M.da)break r;if((M.da||Gt(H.ca.S))&&fo(),11>H.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),H.ca.f.kb.F!=null&&fo()),H.Pb&&0<H.s.ua&&H.s.vb.X==null&&!le(H.s.vb,H.s.Wa.Xa)){H.a=1;break r}H.xb=0}if(!Te(H,H.V,H.Ba,H.c,H.i,M.o,Ae))break r;X.Dc=H.Ma,H=1;break t}t(H.a!=0),H=0}H=!H}H&&(C=x.a)}else C=x.a}else{if((x=new lo)==null){ne=1;break e}if(x.Fa=X.na,x.P=X.P,x.qc=X.Sa,Ro(x,H)){if((C=po(H.width,H.height,ne.Oa,ne.ba))==0){if(x.Aa=0,M=ne.Oa,t((X=x)!=null),M!=null){if(0<(ue=0>(ue=M.Md)?0:100<ue?255:255*ue/100)){for(me=Se=0;4>me;++me)12>(Re=X.pb[me]).lc&&(Re.ia=ue*Jf[0>Re.lc?0:Re.lc]>>3),Se|=Re.ia;Se&&(alert("todo:VP8InitRandom"),X.ia=1)}X.Ga=M.Id,100<X.Ga?X.Ga=100:0>X.Ga&&(X.Ga=0)}(function(pe,Ue){if(pe==null)return 0;if(Ue==null)return jr(pe,2,"NULL VP8Io parameter in VP8Decode().");if(!pe.cb&&!Ro(pe,Ue))return 0;if(t(pe.cb),Ue.ac==null||Ue.ac(Ue)){Ue.ob&&(pe.L=0);var Me=Cu[pe.L];if(pe.L==2?(pe.yb=0,pe.zb=0):(pe.yb=Ue.v-Me>>4,pe.zb=Ue.j-Me>>4,0>pe.yb&&(pe.yb=0),0>pe.zb&&(pe.zb=0)),pe.Va=Ue.o+15+Me>>4,pe.Hb=Ue.va+15+Me>>4,pe.Hb>pe.za&&(pe.Hb=pe.za),pe.Va>pe.Ub&&(pe.Va=pe.Ub),0<pe.L){var Ye=pe.ed;for(Me=0;4>Me;++Me){var Qe;if(pe.Qa.Cb){var We=pe.Qa.Lb[Me];pe.Qa.Fb||(We+=Ye.Tb)}else We=Ye.Tb;for(Qe=0;1>=Qe;++Qe){var et=pe.gd[Me][Qe],ct=We;if(Ye.Pc&&(ct+=Ye.vd[0],Qe&&(ct+=Ye.od[0])),0<(ct=0>ct?0:63<ct?63:ct)){var at=ct;0<Ye.wb&&(at=4<Ye.wb?at>>2:at>>1)>9-Ye.wb&&(at=9-Ye.wb),1>at&&(at=1),et.dd=at,et.tc=2*ct+at,et.ld=40<=ct?2:15<=ct?1:0}else et.tc=0;et.La=Qe}}}Me=0}else jr(pe,6,"Frame setup failed"),Me=pe.a;if(Me=Me==0){if(Me){pe.$c=0,0<pe.Aa||(pe.Ic=Zf);t:{Me=pe.Ic,Ye=4*(at=pe.za);var Lt=32*at,bt=at+1,Ar=0<pe.L?at*(0<pe.Aa?2:1):0,St=(pe.Aa==2?2:1)*at;if((et=Ye+832+(Qe=3*(16*Me+Cu[pe.L])/2*Lt)+(We=pe.Fa!=null&&0<pe.Fa.length?pe.Kc.c*pe.Kc.i:0))!=et)Me=0;else{if(et>pe.Vb){if(pe.Vb=0,pe.Ec=a(et),pe.Fc=0,pe.Ec==null){Me=jr(pe,1,"no memory during frame initialization.");break t}pe.Vb=et}et=pe.Ec,ct=pe.Fc,pe.Ac=et,pe.Bc=ct,ct+=Ye,pe.Gd=s(Lt,gs),pe.Hd=0,pe.rb=s(bt+1,tn),pe.sb=1,pe.wa=Ar?s(Ar,br):null,pe.Y=0,pe.D.Nb=0,pe.D.wa=pe.wa,pe.D.Y=pe.Y,0<pe.Aa&&(pe.D.Y+=at),t(!0),pe.oc=et,pe.pc=ct,ct+=832,pe.ya=s(St,oo),pe.aa=0,pe.D.ya=pe.ya,pe.D.aa=pe.aa,pe.Aa==2&&(pe.D.aa+=at),pe.R=16*at,pe.B=8*at,at=(Lt=Cu[pe.L])*pe.R,Lt=Lt/2*pe.B,pe.sa=et,pe.ta=ct+at,pe.qa=pe.sa,pe.ra=pe.ta+16*Me*pe.R+Lt,pe.Ha=pe.qa,pe.Ia=pe.ra+8*Me*pe.B+Lt,pe.$c=0,ct+=Qe,pe.mb=We?et:null,pe.nb=We?ct:null,t(ct+We<=pe.Fc+pe.Vb),Nf(pe),i(pe.Ac,pe.Bc,0,Ye),Me=1}}if(Me){if(Ue.ka=0,Ue.y=pe.sa,Ue.O=pe.ta,Ue.f=pe.qa,Ue.N=pe.ra,Ue.ea=pe.Ha,Ue.Vd=pe.Ia,Ue.fa=pe.R,Ue.Rc=pe.B,Ue.F=null,Ue.J=0,!xd){for(Me=-255;255>=Me;++Me)oc[255+Me]=0>Me?-Me:Me;for(Me=-1020;1020>=Me;++Me)wd[1020+Me]=-128>Me?-128:127<Me?127:Me;for(Me=-112;112>=Me;++Me)Gf[112+Me]=-16>Me?-16:15<Me?15:Me;for(Me=-255;510>=Me;++Me)qf[255+Me]=0>Me?0:255<Me?255:Me;xd=1}ys=co,QA=Lf,Is=Ua,Hr=Df,Dr=If,ha=cd,vn=vd,oi=TA,$o=Y,vo=xe,ac=md,zf=U,Cg=Ee,Ev=Le,_v=EA,Sv=_A,Eg=rc,_g=Rf,Gn[0]=gd,Gn[1]=ud,Gn[2]=dd,Gn[3]=kf,Gn[4]=ps,Gn[5]=Qf,Gn[6]=Yi,Gn[7]=Zl,Gn[8]=ec,Gn[9]=vs,Da[0]=uo,Da[1]=Mf,Da[2]=Pf,Da[3]=hd,Da[4]=BA,Da[5]=Jl,Da[6]=hl,mo[0]=lu,mo[1]=fd,mo[2]=jo,mo[3]=pd,mo[4]=ki,mo[5]=cu,mo[6]=Ho,Me=1}else Me=0}Me&&(Me=(function(Br,_n){for(Br.M=0;Br.M<Br.Va;++Br.M){var dr,Bt=Br.Jc[Br.M&Br.Xb],vt=Br.m,kn=Br;for(dr=0;dr<kn.za;++dr){var tr=vt,mr=kn,Xr=mr.Ac,Fi=mr.Bc+4*dr,ra=mr.zc,mn=mr.ya[mr.aa+dr];if(mr.Qa.Bb?mn.$b=be(tr,mr.Pa.jb[0])?2+be(tr,mr.Pa.jb[2]):be(tr,mr.Pa.jb[1]):mn.$b=0,mr.kc&&(mn.Ad=be(tr,mr.Bd)),mn.Za=!be(tr,145)+0,mn.Za){var gi=mn.Ob,pa=0;for(mr=0;4>mr;++mr){var pi,wr=ra[0+mr];for(pi=0;4>pi;++pi){wr=Zi[Xr[Fi+pi]][wr];for(var Mr=Sd[be(tr,wr[0])];0<Mr;)Mr=Sd[2*Mr+be(tr,wr[Mr])];wr=-Mr,Xr[Fi+pi]=wr}n(gi,pa,Xr,Fi,4),pa+=4,ra[0+mr]=wr}}else wr=be(tr,156)?be(tr,128)?1:3:be(tr,163)?2:0,mn.Ob[0]=wr,i(Xr,Fi,wr,4),i(ra,0,wr,4);mn.Dd=be(tr,142)?be(tr,114)?be(tr,183)?1:3:2:0}if(kn.m.Ka)return jr(Br,7,"Premature end-of-partition0 encountered.");for(;Br.ja<Br.za;++Br.ja){if(kn=Bt,tr=(vt=Br).rb[vt.sb-1],Xr=vt.rb[vt.sb+vt.ja],dr=vt.ya[vt.aa+vt.ja],Fi=vt.kc?dr.Ad:0)tr.la=Xr.la=0,dr.Za||(tr.Na=Xr.Na=0),dr.Hc=0,dr.Gc=0,dr.ia=0;else{var Qn,Kr;if(tr=Xr,Xr=kn,Fi=vt.Pa.Xc,ra=vt.ya[vt.aa+vt.ja],mn=vt.pb[ra.$b],mr=ra.ad,gi=0,pa=vt.rb[vt.sb-1],wr=pi=0,i(mr,gi,0,384),ra.Za)var Ti=0,Rn=Fi[3];else{Mr=a(16);var Pr=tr.Na+pa.Na;if(Pr=xs(Xr,Fi[1],Pr,mn.Eb,0,Mr,0),tr.Na=pa.Na=(0<Pr)+0,1<Pr)ys(Mr,0,mr,gi);else{var li=Mr[0]+3>>3;for(Mr=0;256>Mr;Mr+=16)mr[gi+Mr]=li}Ti=1,Rn=Fi[0]}var Jr=15&tr.la,vi=15&pa.la;for(Mr=0;4>Mr;++Mr){var mi=1&vi;for(li=Kr=0;4>li;++li)Jr=Jr>>1|(mi=(Pr=xs(Xr,Rn,Pr=mi+(1&Jr),mn.Sc,Ti,mr,gi))>Ti)<<7,Kr=Kr<<2|(3<Pr?3:1<Pr?2:mr[gi+0]!=0),gi+=16;Jr>>=4,vi=vi>>1|mi<<7,pi=(pi<<8|Kr)>>>0}for(Rn=Jr,Ti=vi>>4,Qn=0;4>Qn;Qn+=2){for(Kr=0,Jr=tr.la>>4+Qn,vi=pa.la>>4+Qn,Mr=0;2>Mr;++Mr){for(mi=1&vi,li=0;2>li;++li)Pr=mi+(1&Jr),Jr=Jr>>1|(mi=0<(Pr=xs(Xr,Fi[2],Pr,mn.Qc,0,mr,gi)))<<3,Kr=Kr<<2|(3<Pr?3:1<Pr?2:mr[gi+0]!=0),gi+=16;Jr>>=2,vi=vi>>1|mi<<5}wr|=Kr<<4*Qn,Rn|=Jr<<4<<Qn,Ti|=(240&vi)<<Qn}tr.la=Rn,pa.la=Ti,ra.Hc=pi,ra.Gc=wr,ra.ia=43690&wr?0:mn.ia,Fi=!(pi|wr)}if(0<vt.L&&(vt.wa[vt.Y+vt.ja]=vt.gd[dr.$b][dr.Za],vt.wa[vt.Y+vt.ja].La|=!Fi),kn.Ka)return jr(Br,7,"Premature end-of-file encountered.")}if(Nf(Br),vt=_n,kn=1,dr=(Bt=Br).D,tr=0<Bt.L&&Bt.M>=Bt.zb&&Bt.M<=Bt.Va,Bt.Aa==0)t:{if(dr.M=Bt.M,dr.uc=tr,ms(Bt,dr),kn=1,dr=(Kr=Bt.D).Nb,tr=(wr=Cu[Bt.L])*Bt.R,Xr=wr/2*Bt.B,Mr=16*dr*Bt.R,li=8*dr*Bt.B,Fi=Bt.sa,ra=Bt.ta-tr+Mr,mn=Bt.qa,mr=Bt.ra-Xr+li,gi=Bt.Ha,pa=Bt.Ia-Xr+li,vi=(Jr=Kr.M)==0,pi=Jr>=Bt.Va-1,Bt.Aa==2&&ms(Bt,Kr),Kr.uc)for(mi=(Pr=Bt).D.M,t(Pr.D.uc),Kr=Pr.yb;Kr<Pr.Hb;++Kr){Ti=Kr,Rn=mi;var nn=(Ir=(yi=Pr).D).Nb;Qn=yi.R;var Ir=Ir.wa[Ir.Y+Ti],va=yi.sa,qn=yi.ta+16*nn*Qn+16*Ti,qt=Ir.dd,Wt=Ir.tc;if(Wt!=0)if(t(3<=Wt),yi.L==1)0<Ti&&Sv(va,qn,Qn,Wt+4),Ir.La&&_g(va,qn,Qn,Wt),0<Rn&&_v(va,qn,Qn,Wt+4),Ir.La&&Eg(va,qn,Qn,Wt);else{var kr=yi.B,ts=yi.qa,zs=yi.ra+8*nn*kr+8*Ti,Ia=yi.Ha,yi=yi.Ia+8*nn*kr+8*Ti;nn=Ir.ld,0<Ti&&(oi(va,qn,Qn,Wt+4,qt,nn),vo(ts,zs,Ia,yi,kr,Wt+4,qt,nn)),Ir.La&&(zf(va,qn,Qn,Wt,qt,nn),Ev(ts,zs,Ia,yi,kr,Wt,qt,nn)),0<Rn&&(vn(va,qn,Qn,Wt+4,qt,nn),$o(ts,zs,Ia,yi,kr,Wt+4,qt,nn)),Ir.La&&(ac(va,qn,Qn,Wt,qt,nn),Cg(ts,zs,Ia,yi,kr,Wt,qt,nn))}}if(Bt.ia&&alert("todo:DitherRow"),vt.put!=null){if(Kr=16*Jr,Jr=16*(Jr+1),vi?(vt.y=Bt.sa,vt.O=Bt.ta+Mr,vt.f=Bt.qa,vt.N=Bt.ra+li,vt.ea=Bt.Ha,vt.W=Bt.Ia+li):(Kr-=wr,vt.y=Fi,vt.O=ra,vt.f=mn,vt.N=mr,vt.ea=gi,vt.W=pa),pi||(Jr-=wr),Jr>vt.o&&(Jr=vt.o),vt.F=null,vt.J=null,Bt.Fa!=null&&0<Bt.Fa.length&&Kr<Jr&&(vt.J=pn(Bt,vt,Kr,Jr-Kr),vt.F=Bt.mb,vt.F==null&&vt.F.length==0)){kn=jr(Bt,3,"Could not decode alpha data.");break t}Kr<vt.j&&(wr=vt.j-Kr,Kr=vt.j,t(!(1&wr)),vt.O+=Bt.R*wr,vt.N+=Bt.B*(wr>>1),vt.W+=Bt.B*(wr>>1),vt.F!=null&&(vt.J+=vt.width*wr)),Kr<Jr&&(vt.O+=vt.v,vt.N+=vt.v>>1,vt.W+=vt.v>>1,vt.F!=null&&(vt.J+=vt.v),vt.ka=Kr-vt.j,vt.U=vt.va-vt.v,vt.T=Jr-Kr,kn=vt.put(vt))}dr+1!=Bt.Ic||pi||(n(Bt.sa,Bt.ta-tr,Fi,ra+16*Bt.R,tr),n(Bt.qa,Bt.ra-Xr,mn,mr+8*Bt.B,Xr),n(Bt.Ha,Bt.Ia-Xr,gi,pa+8*Bt.B,Xr))}if(!kn)return jr(Br,6,"Output aborted.")}return 1})(pe,Ue)),Ue.bc!=null&&Ue.bc(Ue),Me&=1}return Me?(pe.cb=0,Me):0})(x,H)||(C=x.a)}}else C=x.a}C==0&&ne.Oa!=null&&ne.Oa.fd&&(C=Kf(ne.ba))}ne=C}te=ne!=0?null:11>te?oe.f.RGBA.eb:oe.f.kb.y}else te=null;return te};var Ud=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function c(O,V){for(var I="",Q=0;Q<4;Q++)I+=String.fromCharCode(O[V++]);return I}function f(O,V){return O[V+0]|O[V+1]<<8}function h(O,V){return(O[V+0]|O[V+1]<<8|O[V+2]<<16)>>>0}function p(O,V){return(O[V+0]|O[V+1]<<8|O[V+2]<<16|O[V+3]<<24)>>>0}new l;var g=[0],y=[0],m=[],w=new l,b=e,E=(function(O,V){var I={},Q=0,W=!1,J=0,fe=0;if(I.frames=[],!(function(L,j){for(var K=0;K<4;K++)if(L[j+K]!="RIFF".charCodeAt(K))return!0;return!1})(O,V)){for(p(O,V+=4),V+=8;V<O.length;){var G=c(O,V),se=p(O,V+=4);V+=4;var ge=se+(1&se);switch(G){case"VP8 ":case"VP8L":I.frames[Q]===void 0&&(I.frames[Q]={}),(Z=I.frames[Q]).src_off=W?fe:V-8,Z.src_size=J+se+8,Q++,W&&(W=!1,J=0,fe=0);break;case"VP8X":(Z=I.header={}).feature_flags=O[V];var ye=V+4;Z.canvas_width=1+h(O,ye),ye+=3,Z.canvas_height=1+h(O,ye),ye+=3;break;case"ALPH":W=!0,J=ge+8,fe=V-8;break;case"ANIM":(Z=I.header).bgcolor=p(O,V),ye=V+4,Z.loop_count=f(O,ye),ye+=2;break;case"ANMF":var _e,Z;(Z=I.frames[Q]={}).offset_x=2*h(O,V),V+=3,Z.offset_y=2*h(O,V),V+=3,Z.width=1+h(O,V),V+=3,Z.height=1+h(O,V),V+=3,Z.duration=h(O,V),V+=3,_e=O[V++],Z.dispose=1&_e,Z.blend=_e>>1&1}G!="ANMF"&&(V+=ge)}return I}})(b,0);E.response=b,E.rgbaoutput=!0,E.dataurl=!1;var S=E.header?E.header:null,T=E.frames?E.frames:null;if(S){S.loop_counter=S.loop_count,g=[S.canvas_height],y=[S.canvas_width];for(var D=0;D<T.length&&T[D].blend!=0;D++);}var k=T[0],P=w.WebPDecodeRGBA(b,k.src_off,k.src_size,y,g);k.rgba=P,k.imgwidth=y[0],k.imgheight=g[0];for(var R=0;R<y[0]*g[0]*4;R++)m[R]=P[R];return this.width=y,this.height=g,this.data=m,this}(function(e){var t,r,n,i,a,s,o,l,c,f=function(L){return L=L||{},this.isStrokeTransparent=L.isStrokeTransparent||!1,this.strokeOpacity=L.strokeOpacity||1,this.strokeStyle=L.strokeStyle||"#000000",this.fillStyle=L.fillStyle||"#000000",this.isFillTransparent=L.isFillTransparent||!1,this.fillOpacity=L.fillOpacity||1,this.font=L.font||"10px sans-serif",this.textBaseline=L.textBaseline||"alphabetic",this.textAlign=L.textAlign||"left",this.lineWidth=L.lineWidth||1,this.lineJoin=L.lineJoin||"miter",this.lineCap=L.lineCap||"butt",this.path=L.path||[],this.transform=L.transform!==void 0?L.transform.clone():new l,this.globalCompositeOperation=L.globalCompositeOperation||"normal",this.globalAlpha=L.globalAlpha||1,this.clip_path=L.clip_path||[],this.currentPoint=L.currentPoint||new s,this.miterLimit=L.miterLimit||10,this.lastPoint=L.lastPoint||new s,this.lineDashOffset=L.lineDashOffset||0,this.lineDash=L.lineDash||[],this.margin=L.margin||[0,0,0,0],this.prevPageLastElemOffset=L.prevPageLastElemOffset||0,this.ignoreClearRect=typeof L.ignoreClearRect!="boolean"||L.ignoreClearRect,this};e.events.push(["initialized",function(){this.context2d=new h(this),t=this.internal.f2,r=this.internal.getCoordinateString,n=this.internal.getVerticalCoordinateString,i=this.internal.getHorizontalCoordinate,a=this.internal.getVerticalCoordinate,s=this.internal.Point,o=this.internal.Rectangle,l=this.internal.Matrix,c=new f}]);var h=function(L){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var j=L;Object.defineProperty(this,"pdf",{get:function(){return j}});var K=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return K},set:function(le){K=!!le}});var q=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return q},set:function(le){q=!!le}});var re=0;Object.defineProperty(this,"posX",{get:function(){return re},set:function(le){isNaN(le)||(re=le)}});var he=0;Object.defineProperty(this,"posY",{get:function(){return he},set:function(le){isNaN(le)||(he=le)}}),Object.defineProperty(this,"margin",{get:function(){return c.margin},set:function(le){var $e;typeof le=="number"?$e=[le,le,le,le]:(($e=new Array(4))[0]=le[0],$e[1]=le.length>=2?le[1]:$e[0],$e[2]=le.length>=3?le[2]:$e[0],$e[3]=le.length>=4?le[3]:$e[1]),c.margin=$e}});var Be=!1;Object.defineProperty(this,"autoPaging",{get:function(){return Be},set:function(le){Be=le}});var ae=0;Object.defineProperty(this,"lastBreak",{get:function(){return ae},set:function(le){ae=le}});var be=[];Object.defineProperty(this,"pageBreaks",{get:function(){return be},set:function(le){be=le}}),Object.defineProperty(this,"ctx",{get:function(){return c},set:function(le){le instanceof f&&(c=le)}}),Object.defineProperty(this,"path",{get:function(){return c.path},set:function(le){c.path=le}});var ke=[];Object.defineProperty(this,"ctxStack",{get:function(){return ke},set:function(le){ke=le}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(le){var $e;$e=p(le),this.ctx.fillStyle=$e.style,this.ctx.isFillTransparent=$e.a===0,this.ctx.fillOpacity=$e.a,this.pdf.setFillColor($e.r,$e.g,$e.b,{a:$e.a}),this.pdf.setTextColor($e.r,$e.g,$e.b,{a:$e.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(le){var $e=p(le);this.ctx.strokeStyle=$e.style,this.ctx.isStrokeTransparent=$e.a===0,this.ctx.strokeOpacity=$e.a,$e.a===0?this.pdf.setDrawColor(255,255,255):($e.a,this.pdf.setDrawColor($e.r,$e.g,$e.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(le){["butt","round","square"].indexOf(le)!==-1&&(this.ctx.lineCap=le,this.pdf.setLineCap(le))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(le){isNaN(le)||(this.ctx.lineWidth=le,this.pdf.setLineWidth(le))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(le){["bevel","round","miter"].indexOf(le)!==-1&&(this.ctx.lineJoin=le,this.pdf.setLineJoin(le))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(le){isNaN(le)||(this.ctx.miterLimit=le,this.pdf.setMiterLimit(le))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(le){this.ctx.textBaseline=le}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(le){["right","end","center","left","start"].indexOf(le)!==-1&&(this.ctx.textAlign=le)}});var Fe=null,st=null,Ge=null;Object.defineProperty(this,"fontFaces",{get:function(){return Ge},set:function(le){Fe=null,st=null,Ge=le}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(le){var $e;if(this.ctx.font=le,($e=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z0-9]+?)\s*$/i.exec(le))!==null){var tt=$e[1];$e[2];var wt=$e[3],nt=$e[4];$e[5];var Tt=$e[6],yt=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(nt)[2];nt=Math.floor(yt==="px"?parseFloat(nt)*this.pdf.internal.scaleFactor:yt==="em"?parseFloat(nt)*this.pdf.getFontSize():parseFloat(nt)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(nt);var Ht=(function(Ot){var dn,or,Kt=[],Xt=Ot.trim();if(Xt==="")return IC;if(Xt in kI)return[kI[Xt]];for(;Xt!=="";){switch(or=null,dn=(Xt=RI(Xt)).charAt(0)){case'"':case"'":or=q2e(Xt.substring(1),dn);break;default:or=W2e(Xt)}if(or===null||(Kt.push(or[0]),(Xt=RI(or[1]))!==""&&Xt.charAt(0)!==","))return IC;Xt=Xt.replace(/^,/,"")}return Kt})(Tt);if(this.fontFaces){var It=(function(Ot,dn){var or=Ot.getFontList(),Kt=JSON.stringify(or);if(Fe===null||st!==Kt){var Xt=(function(vr){var Rt=[];return Object.keys(vr).forEach(function(Nr){vr[Nr].forEach(function(Gt){var $t=null;switch(Gt){case"bold":$t={family:Nr,weight:"bold"};break;case"italic":$t={family:Nr,style:"italic"};break;case"bolditalic":$t={family:Nr,weight:"bold",style:"italic"};break;case"":case"normal":$t={family:Nr}}$t!==null&&($t.ref={name:Nr,style:Gt},Rt.push($t))})}),Rt})(or);Fe=(function(vr){for(var Rt={},Nr=0;Nr<vr.length;++Nr){var Gt=DC(vr[Nr]),$t=Gt.family,Rr=Gt.stretch,sr=Gt.style,mt=Gt.weight;Rt[$t]=Rt[$t]||{},Rt[$t][Rr]=Rt[$t][Rr]||{},Rt[$t][Rr][sr]=Rt[$t][Rr][sr]||{},Rt[$t][Rr][sr][mt]=Gt}return Rt})(Xt.concat(dn)),st=Kt}return Fe})(this.pdf,this.fontFaces),Vt=Ht.map(function(Ot){return{family:Ot,stretch:"normal",weight:wt,style:tt}}),cr=(function(Ot,dn,or){for(var Kt=(or=or||{}).defaultFontFamily||"times",Xt=Object.assign({},G2e,or.genericFontFamilies||{}),vr=null,Rt=null,Nr=0;Nr<dn.length;++Nr)if(Xt[(vr=DC(dn[Nr])).family]&&(vr.family=Xt[vr.family]),Ot.hasOwnProperty(vr.family)){Rt=Ot[vr.family];break}if(!(Rt=Rt||Ot[Kt]))throw new Error("Could not find a font-family for the rule '"+QI(vr)+"' and default family '"+Kt+"'.");if(Rt=(function(Gt,$t){if($t[Gt])return $t[Gt];var Rr=d4[Gt],sr=Rr<=d4.normal?-1:1,mt=PI($t,XK,Rr,sr);if(!mt)throw new Error("Could not find a matching font-stretch value for "+Gt);return mt})(vr.stretch,Rt),Rt=(function(Gt,$t){if($t[Gt])return $t[Gt];for(var Rr=$K[Gt],sr=0;sr<Rr.length;++sr)if($t[Rr[sr]])return $t[Rr[sr]];throw new Error("Could not find a matching font-style for "+Gt)})(vr.style,Rt),!(Rt=(function(Gt,$t){if($t[Gt])return $t[Gt];if(Gt===400&&$t[500])return $t[500];if(Gt===500&&$t[400])return $t[400];var Rr=V2e[Gt],sr=PI($t,JK,Rr,Gt<400?-1:1);if(!sr)throw new Error("Could not find a matching font-weight for value "+Gt);return sr})(vr.weight,Rt)))throw new Error("Failed to resolve a font for the rule '"+QI(vr)+"'.");return Rt})(It,Vt);this.pdf.setFont(cr.ref.name,cr.ref.style)}else{var Jt="";(wt==="bold"||parseInt(wt,10)>=700||tt==="bold")&&(Jt="bold"),tt==="italic"&&(Jt+="italic"),Jt.length===0&&(Jt="normal");for(var ur="",rr={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},Et=0;Et<Ht.length;Et++){if(this.pdf.internal.getFont(Ht[Et],Jt,{noFallback:!0,disableWarning:!0})!==void 0){ur=Ht[Et];break}if(Jt==="bolditalic"&&this.pdf.internal.getFont(Ht[Et],"bold",{noFallback:!0,disableWarning:!0})!==void 0)ur=Ht[Et],Jt="bold";else if(this.pdf.internal.getFont(Ht[Et],"normal",{noFallback:!0,disableWarning:!0})!==void 0){ur=Ht[Et],Jt="normal";break}}if(ur===""){for(var nr=0;nr<Ht.length;nr++)if(rr[Ht[nr]]){ur=rr[Ht[nr]];break}}ur=ur===""?"Times":ur,this.pdf.setFont(ur,Jt)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(le){this.ctx.globalCompositeOperation=le}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(le){this.ctx.globalAlpha=le}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(le){this.ctx.lineDashOffset=le,Z.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(le){this.ctx.lineDash=le,Z.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(le){this.ctx.ignoreClearRect=!!le}})};h.prototype.setLineDash=function(L){this.lineDash=L},h.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},h.prototype.fill=function(){T.call(this,"fill",!1)},h.prototype.stroke=function(){T.call(this,"stroke",!1)},h.prototype.beginPath=function(){this.path=[{type:"begin"}]},h.prototype.moveTo=function(L,j){if(isNaN(L)||isNaN(j))throw Fn.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var K=this.ctx.transform.applyToPoint(new s(L,j));this.path.push({type:"mt",x:K.x,y:K.y}),this.ctx.lastPoint=new s(L,j)},h.prototype.closePath=function(){var L=new s(0,0),j=0;for(j=this.path.length-1;j!==-1;j--)if(this.path[j].type==="begin"&&un(this.path[j+1])==="object"&&typeof this.path[j+1].x=="number"){L=new s(this.path[j+1].x,this.path[j+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new s(L.x,L.y)},h.prototype.lineTo=function(L,j){if(isNaN(L)||isNaN(j))throw Fn.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var K=this.ctx.transform.applyToPoint(new s(L,j));this.path.push({type:"lt",x:K.x,y:K.y}),this.ctx.lastPoint=new s(K.x,K.y)},h.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),T.call(this,null,!0)},h.prototype.quadraticCurveTo=function(L,j,K,q){if(isNaN(K)||isNaN(q)||isNaN(L)||isNaN(j))throw Fn.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var re=this.ctx.transform.applyToPoint(new s(K,q)),he=this.ctx.transform.applyToPoint(new s(L,j));this.path.push({type:"qct",x1:he.x,y1:he.y,x:re.x,y:re.y}),this.ctx.lastPoint=new s(re.x,re.y)},h.prototype.bezierCurveTo=function(L,j,K,q,re,he){if(isNaN(re)||isNaN(he)||isNaN(L)||isNaN(j)||isNaN(K)||isNaN(q))throw Fn.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var Be=this.ctx.transform.applyToPoint(new s(re,he)),ae=this.ctx.transform.applyToPoint(new s(L,j)),be=this.ctx.transform.applyToPoint(new s(K,q));this.path.push({type:"bct",x1:ae.x,y1:ae.y,x2:be.x,y2:be.y,x:Be.x,y:Be.y}),this.ctx.lastPoint=new s(Be.x,Be.y)},h.prototype.arc=function(L,j,K,q,re,he){if(isNaN(L)||isNaN(j)||isNaN(K)||isNaN(q)||isNaN(re))throw Fn.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(he=!!he,!this.ctx.transform.isIdentity){var Be=this.ctx.transform.applyToPoint(new s(L,j));L=Be.x,j=Be.y;var ae=this.ctx.transform.applyToPoint(new s(0,K)),be=this.ctx.transform.applyToPoint(new s(0,0));K=Math.sqrt(Math.pow(ae.x-be.x,2)+Math.pow(ae.y-be.y,2))}Math.abs(re-q)>=2*Math.PI&&(q=0,re=2*Math.PI),this.path.push({type:"arc",x:L,y:j,radius:K,startAngle:q,endAngle:re,counterclockwise:he})},h.prototype.arcTo=function(L,j,K,q,re){throw new Error("arcTo not implemented.")},h.prototype.rect=function(L,j,K,q){if(isNaN(L)||isNaN(j)||isNaN(K)||isNaN(q))throw Fn.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(L,j),this.lineTo(L+K,j),this.lineTo(L+K,j+q),this.lineTo(L,j+q),this.lineTo(L,j),this.lineTo(L+K,j),this.lineTo(L,j)},h.prototype.fillRect=function(L,j,K,q){if(isNaN(L)||isNaN(j)||isNaN(K)||isNaN(q))throw Fn.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!g.call(this)){var re={};this.lineCap!=="butt"&&(re.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(re.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(L,j,K,q),this.fill(),re.hasOwnProperty("lineCap")&&(this.lineCap=re.lineCap),re.hasOwnProperty("lineJoin")&&(this.lineJoin=re.lineJoin)}},h.prototype.strokeRect=function(L,j,K,q){if(isNaN(L)||isNaN(j)||isNaN(K)||isNaN(q))throw Fn.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");y.call(this)||(this.beginPath(),this.rect(L,j,K,q),this.stroke())},h.prototype.clearRect=function(L,j,K,q){if(isNaN(L)||isNaN(j)||isNaN(K)||isNaN(q))throw Fn.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(L,j,K,q))},h.prototype.save=function(L){L=typeof L!="boolean"||L;for(var j=this.pdf.internal.getCurrentPageInfo().pageNumber,K=0;K<this.pdf.internal.getNumberOfPages();K++)this.pdf.setPage(K+1),this.pdf.internal.out("q");if(this.pdf.setPage(j),L){this.ctx.fontSize=this.pdf.internal.getFontSize();var q=new f(this.ctx);this.ctxStack.push(this.ctx),this.ctx=q}},h.prototype.restore=function(L){L=typeof L!="boolean"||L;for(var j=this.pdf.internal.getCurrentPageInfo().pageNumber,K=0;K<this.pdf.internal.getNumberOfPages();K++)this.pdf.setPage(K+1),this.pdf.internal.out("Q");this.pdf.setPage(j),L&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},h.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var p=function(L){var j,K,q,re;if(L.isCanvasGradient===!0&&(L=L.getColor()),!L)return{r:0,g:0,b:0,a:0,style:L};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(L))j=0,K=0,q=0,re=0;else{var he=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(L);if(he!==null)j=parseInt(he[1]),K=parseInt(he[2]),q=parseInt(he[3]),re=1;else if((he=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(L))!==null)j=parseInt(he[1]),K=parseInt(he[2]),q=parseInt(he[3]),re=parseFloat(he[4]);else{if(re=1,typeof L=="string"&&L.charAt(0)!=="#"){var Be=new KK(L);L=Be.ok?Be.toHex():"#000000"}L.length===4?(j=L.substring(1,2),j+=j,K=L.substring(2,3),K+=K,q=L.substring(3,4),q+=q):(j=L.substring(1,3),K=L.substring(3,5),q=L.substring(5,7)),j=parseInt(j,16),K=parseInt(K,16),q=parseInt(q,16)}}return{r:j,g:K,b:q,a:re,style:L}},g=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},y=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};h.prototype.fillText=function(L,j,K,q){if(isNaN(j)||isNaN(K)||typeof L!="string")throw Fn.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(q=isNaN(q)?void 0:q,!g.call(this)){var re=ge(this.ctx.transform.rotation),he=this.ctx.transform.scaleX;Q.call(this,{text:L,x:j,y:K,scale:he,angle:re,align:this.textAlign,maxWidth:q})}},h.prototype.strokeText=function(L,j,K,q){if(isNaN(j)||isNaN(K)||typeof L!="string")throw Fn.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!y.call(this)){q=isNaN(q)?void 0:q;var re=ge(this.ctx.transform.rotation),he=this.ctx.transform.scaleX;Q.call(this,{text:L,x:j,y:K,scale:he,renderingMode:"stroke",angle:re,align:this.textAlign,maxWidth:q})}},h.prototype.measureText=function(L){if(typeof L!="string")throw Fn.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var j=this.pdf,K=this.pdf.internal.scaleFactor,q=j.internal.getFontSize(),re=j.getStringUnitWidth(L)*q/j.internal.scaleFactor;return new function(he){var Be=(he=he||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return Be}}),this}({width:re*=Math.round(96*K/72*1e4)/1e4})},h.prototype.scale=function(L,j){if(isNaN(L)||isNaN(j))throw Fn.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var K=new l(L,0,0,j,0,0);this.ctx.transform=this.ctx.transform.multiply(K)},h.prototype.rotate=function(L){if(isNaN(L))throw Fn.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var j=new l(Math.cos(L),Math.sin(L),-Math.sin(L),Math.cos(L),0,0);this.ctx.transform=this.ctx.transform.multiply(j)},h.prototype.translate=function(L,j){if(isNaN(L)||isNaN(j))throw Fn.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var K=new l(1,0,0,1,L,j);this.ctx.transform=this.ctx.transform.multiply(K)},h.prototype.transform=function(L,j,K,q,re,he){if(isNaN(L)||isNaN(j)||isNaN(K)||isNaN(q)||isNaN(re)||isNaN(he))throw Fn.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var Be=new l(L,j,K,q,re,he);this.ctx.transform=this.ctx.transform.multiply(Be)},h.prototype.setTransform=function(L,j,K,q,re,he){L=isNaN(L)?1:L,j=isNaN(j)?0:j,K=isNaN(K)?0:K,q=isNaN(q)?1:q,re=isNaN(re)?0:re,he=isNaN(he)?0:he,this.ctx.transform=new l(L,j,K,q,re,he)};var m=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};h.prototype.drawImage=function(L,j,K,q,re,he,Be,ae,be){var ke=this.pdf.getImageProperties(L),Fe=1,st=1,Ge=1,le=1;q!==void 0&&ae!==void 0&&(Ge=ae/q,le=be/re,Fe=ke.width/q*ae/q,st=ke.height/re*be/re),he===void 0&&(he=j,Be=K,j=0,K=0),q!==void 0&&ae===void 0&&(ae=q,be=re),q===void 0&&ae===void 0&&(ae=ke.width,be=ke.height);var $e=this.ctx.transform.decompose(),tt=ge($e.rotate.shx),wt=new l,nt=(wt=(wt=(wt=wt.multiply($e.translate)).multiply($e.skew)).multiply($e.scale)).applyToRectangle(new o(he-j*Ge,Be-K*le,q*Fe,re*st));if(this.autoPaging){for(var Tt,yt=w.call(this,nt),Ht=[],It=0;It<yt.length;It+=1)Ht.indexOf(yt[It])===-1&&Ht.push(yt[It]);S(Ht);for(var Vt=Ht[0],cr=Ht[Ht.length-1],Jt=Vt;Jt<cr+1;Jt++){this.pdf.setPage(Jt);var ur=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],rr=Jt===1?this.posY+this.margin[0]:this.margin[0],Et=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],nr=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Ot=Jt===1?0:Et+(Jt-2)*nr;if(this.ctx.clip_path.length!==0){var dn=this.path;Tt=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=E(Tt,this.posX+this.margin[3],-Ot+rr+this.ctx.prevPageLastElemOffset),D.call(this,"fill",!0),this.path=dn}var or=JSON.parse(JSON.stringify(nt));or=E([or],this.posX+this.margin[3],-Ot+rr+this.ctx.prevPageLastElemOffset)[0];var Kt=(Jt>Vt||Jt<cr)&&m.call(this);Kt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],ur,nr,null).clip().discardPath()),this.pdf.addImage(L,"JPEG",or.x,or.y,or.w,or.h,null,null,tt),Kt&&this.pdf.restoreGraphicsState()}}else this.pdf.addImage(L,"JPEG",nt.x,nt.y,nt.w,nt.h,null,null,tt)};var w=function(L,j,K){var q=[];j=j||this.pdf.internal.pageSize.width,K=K||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var re=this.posY+this.ctx.prevPageLastElemOffset;switch(L.type){default:case"mt":case"lt":q.push(Math.floor((L.y+re)/K)+1);break;case"arc":q.push(Math.floor((L.y+re-L.radius)/K)+1),q.push(Math.floor((L.y+re+L.radius)/K)+1);break;case"qct":var he=ye(this.ctx.lastPoint.x,this.ctx.lastPoint.y,L.x1,L.y1,L.x,L.y);q.push(Math.floor((he.y+re)/K)+1),q.push(Math.floor((he.y+he.h+re)/K)+1);break;case"bct":var Be=_e(this.ctx.lastPoint.x,this.ctx.lastPoint.y,L.x1,L.y1,L.x2,L.y2,L.x,L.y);q.push(Math.floor((Be.y+re)/K)+1),q.push(Math.floor((Be.y+Be.h+re)/K)+1);break;case"rect":q.push(Math.floor((L.y+re)/K)+1),q.push(Math.floor((L.y+L.h+re)/K)+1)}for(var ae=0;ae<q.length;ae+=1)for(;this.pdf.internal.getNumberOfPages()<q[ae];)b.call(this);return q},b=function(){var L=this.fillStyle,j=this.strokeStyle,K=this.font,q=this.lineCap,re=this.lineWidth,he=this.lineJoin;this.pdf.addPage(),this.fillStyle=L,this.strokeStyle=j,this.font=K,this.lineCap=q,this.lineWidth=re,this.lineJoin=he},E=function(L,j,K){for(var q=0;q<L.length;q++)switch(L[q].type){case"bct":L[q].x2+=j,L[q].y2+=K;case"qct":L[q].x1+=j,L[q].y1+=K;default:L[q].x+=j,L[q].y+=K}return L},S=function(L){return L.sort(function(j,K){return j-K})},T=function(L,j){var K=this.fillStyle,q=this.strokeStyle,re=this.lineCap,he=this.lineWidth,Be=Math.abs(he*this.ctx.transform.scaleX),ae=this.lineJoin;if(this.autoPaging){for(var be,ke,Fe=JSON.parse(JSON.stringify(this.path)),st=JSON.parse(JSON.stringify(this.path)),Ge=[],le=0;le<st.length;le++)if(st[le].x!==void 0)for(var $e=w.call(this,st[le]),tt=0;tt<$e.length;tt+=1)Ge.indexOf($e[tt])===-1&&Ge.push($e[tt]);for(var wt=0;wt<Ge.length;wt++)for(;this.pdf.internal.getNumberOfPages()<Ge[wt];)b.call(this);S(Ge);for(var nt=Ge[0],Tt=Ge[Ge.length-1],yt=nt;yt<Tt+1;yt++){this.pdf.setPage(yt),this.fillStyle=K,this.strokeStyle=q,this.lineCap=re,this.lineWidth=Be,this.lineJoin=ae;var Ht=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],It=yt===1?this.posY+this.margin[0]:this.margin[0],Vt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],cr=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Jt=yt===1?0:Vt+(yt-2)*cr;if(this.ctx.clip_path.length!==0){var ur=this.path;be=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=E(be,this.posX+this.margin[3],-Jt+It+this.ctx.prevPageLastElemOffset),D.call(this,L,!0),this.path=ur}if(ke=JSON.parse(JSON.stringify(Fe)),this.path=E(ke,this.posX+this.margin[3],-Jt+It+this.ctx.prevPageLastElemOffset),j===!1||yt===0){var rr=(yt>nt||yt<Tt)&&m.call(this);rr&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Ht,cr,null).clip().discardPath()),D.call(this,L,j),rr&&this.pdf.restoreGraphicsState()}this.lineWidth=he}this.path=Fe}else this.lineWidth=Be,D.call(this,L,j),this.lineWidth=he},D=function(L,j){if((L!=="stroke"||j||!y.call(this))&&(L==="stroke"||j||!g.call(this))){for(var K,q,re=[],he=this.path,Be=0;Be<he.length;Be++){var ae=he[Be];switch(ae.type){case"begin":re.push({begin:!0});break;case"close":re.push({close:!0});break;case"mt":re.push({start:ae,deltas:[],abs:[]});break;case"lt":var be=re.length;if(he[Be-1]&&!isNaN(he[Be-1].x)&&(K=[ae.x-he[Be-1].x,ae.y-he[Be-1].y],be>0)){for(;be>=0;be--)if(re[be-1].close!==!0&&re[be-1].begin!==!0){re[be-1].deltas.push(K),re[be-1].abs.push(ae);break}}break;case"bct":K=[ae.x1-he[Be-1].x,ae.y1-he[Be-1].y,ae.x2-he[Be-1].x,ae.y2-he[Be-1].y,ae.x-he[Be-1].x,ae.y-he[Be-1].y],re[re.length-1].deltas.push(K);break;case"qct":var ke=he[Be-1].x+2/3*(ae.x1-he[Be-1].x),Fe=he[Be-1].y+2/3*(ae.y1-he[Be-1].y),st=ae.x+2/3*(ae.x1-ae.x),Ge=ae.y+2/3*(ae.y1-ae.y),le=ae.x,$e=ae.y;K=[ke-he[Be-1].x,Fe-he[Be-1].y,st-he[Be-1].x,Ge-he[Be-1].y,le-he[Be-1].x,$e-he[Be-1].y],re[re.length-1].deltas.push(K);break;case"arc":re.push({deltas:[],abs:[],arc:!0}),Array.isArray(re[re.length-1].abs)&&re[re.length-1].abs.push(ae)}}q=j?null:L==="stroke"?"stroke":"fill";for(var tt=!1,wt=0;wt<re.length;wt++)if(re[wt].arc)for(var nt=re[wt].abs,Tt=0;Tt<nt.length;Tt++){var yt=nt[Tt];yt.type==="arc"?R.call(this,yt.x,yt.y,yt.radius,yt.startAngle,yt.endAngle,yt.counterclockwise,void 0,j,!tt):W.call(this,yt.x,yt.y),tt=!0}else if(re[wt].close===!0)this.pdf.internal.out("h"),tt=!1;else if(re[wt].begin!==!0){var Ht=re[wt].start.x,It=re[wt].start.y;J.call(this,re[wt].deltas,Ht,It),tt=!0}q&&O.call(this,q),j&&V.call(this)}},k=function(L){var j=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,K=j*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return L-K;case"top":return L+j-K;case"hanging":return L+j-2*K;case"middle":return L+j/2-K;default:return L}},P=function(L){return L+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};h.prototype.createLinearGradient=function(){var L=function(){};return L.colorStops=[],L.addColorStop=function(j,K){this.colorStops.push([j,K])},L.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},L.isCanvasGradient=!0,L},h.prototype.createPattern=function(){return this.createLinearGradient()},h.prototype.createRadialGradient=function(){return this.createLinearGradient()};var R=function(L,j,K,q,re,he,Be,ae,be){for(var ke=G.call(this,K,q,re,he),Fe=0;Fe<ke.length;Fe++){var st=ke[Fe];Fe===0&&(be?I.call(this,st.x1+L,st.y1+j):W.call(this,st.x1+L,st.y1+j)),fe.call(this,L,j,st.x2,st.y2,st.x3,st.y3,st.x4,st.y4)}ae?V.call(this):O.call(this,Be)},O=function(L){switch(L){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},V=function(){this.pdf.clip(),this.pdf.discardPath()},I=function(L,j){this.pdf.internal.out(r(L)+" "+n(j)+" m")},Q=function(L){var j;switch(L.align){case"right":case"end":j="right";break;case"center":j="center";break;default:j="left"}var K,q,re,he=this.pdf.getTextDimensions(L.text),Be=k.call(this,L.y),ae=P.call(this,Be)-he.h,be=this.ctx.transform.applyToPoint(new s(L.x,Be));if(this.autoPaging){var ke=this.ctx.transform.decompose(),Fe=new l;Fe=(Fe=(Fe=Fe.multiply(ke.translate)).multiply(ke.skew)).multiply(ke.scale);for(var st=this.ctx.transform.applyToRectangle(new o(L.x,Be,he.w,he.h)),Ge=Fe.applyToRectangle(new o(L.x,ae,he.w,he.h)),le=w.call(this,Ge),$e=[],tt=0;tt<le.length;tt+=1)$e.indexOf(le[tt])===-1&&$e.push(le[tt]);S($e);for(var wt=$e[0],nt=$e[$e.length-1],Tt=wt;Tt<nt+1;Tt++){this.pdf.setPage(Tt);var yt=Tt===1?this.posY+this.margin[0]:this.margin[0],Ht=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],It=this.pdf.internal.pageSize.height-this.margin[2],Vt=It-this.margin[0],cr=this.pdf.internal.pageSize.width-this.margin[1],Jt=cr-this.margin[3],ur=Tt===1?0:Ht+(Tt-2)*Vt;if(this.ctx.clip_path.length!==0){var rr=this.path;K=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=E(K,this.posX+this.margin[3],-1*ur+yt),D.call(this,"fill",!0),this.path=rr}var Et=E([JSON.parse(JSON.stringify(Ge))],this.posX+this.margin[3],-ur+yt+this.ctx.prevPageLastElemOffset)[0];L.scale>=.01&&(q=this.pdf.internal.getFontSize(),this.pdf.setFontSize(q*L.scale),re=this.lineWidth,this.lineWidth=re*L.scale);var nr=this.autoPaging!=="text";if(nr||Et.y+Et.h<=It){if(nr||Et.y>=yt&&Et.x<=cr){var Ot=nr?L.text:this.pdf.splitTextToSize(L.text,L.maxWidth||cr-Et.x)[0],dn=E([JSON.parse(JSON.stringify(st))],this.posX+this.margin[3],-ur+yt+this.ctx.prevPageLastElemOffset)[0],or=nr&&(Tt>wt||Tt<nt)&&m.call(this);or&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Jt,Vt,null).clip().discardPath()),this.pdf.text(Ot,dn.x,dn.y,{angle:L.angle,align:j,renderingMode:L.renderingMode}),or&&this.pdf.restoreGraphicsState()}}else Et.y<It&&(this.ctx.prevPageLastElemOffset+=It-Et.y);L.scale>=.01&&(this.pdf.setFontSize(q),this.lineWidth=re)}}else L.scale>=.01&&(q=this.pdf.internal.getFontSize(),this.pdf.setFontSize(q*L.scale),re=this.lineWidth,this.lineWidth=re*L.scale),this.pdf.text(L.text,be.x+this.posX,be.y+this.posY,{angle:L.angle,align:j,renderingMode:L.renderingMode,maxWidth:L.maxWidth}),L.scale>=.01&&(this.pdf.setFontSize(q),this.lineWidth=re)},W=function(L,j,K,q){K=K||0,q=q||0,this.pdf.internal.out(r(L+K)+" "+n(j+q)+" l")},J=function(L,j,K){return this.pdf.lines(L,j,K,null,null)},fe=function(L,j,K,q,re,he,Be,ae){this.pdf.internal.out([t(i(K+L)),t(a(q+j)),t(i(re+L)),t(a(he+j)),t(i(Be+L)),t(a(ae+j)),"c"].join(" "))},G=function(L,j,K,q){for(var re=2*Math.PI,he=Math.PI/2;j>K;)j-=re;var Be=Math.abs(K-j);Be<re&&q&&(Be=re-Be);for(var ae=[],be=q?-1:1,ke=j;Be>1e-5;){var Fe=ke+be*Math.min(Be,he);ae.push(se.call(this,L,ke,Fe)),Be-=Math.abs(Fe-ke),ke=Fe}return ae},se=function(L,j,K){var q=(K-j)/2,re=L*Math.cos(q),he=L*Math.sin(q),Be=re,ae=-he,be=Be*Be+ae*ae,ke=be+Be*re+ae*he,Fe=4/3*(Math.sqrt(2*be*ke)-ke)/(Be*he-ae*re),st=Be-Fe*ae,Ge=ae+Fe*Be,le=st,$e=-Ge,tt=q+j,wt=Math.cos(tt),nt=Math.sin(tt);return{x1:L*Math.cos(j),y1:L*Math.sin(j),x2:st*wt-Ge*nt,y2:st*nt+Ge*wt,x3:le*wt-$e*nt,y3:le*nt+$e*wt,x4:L*Math.cos(K),y4:L*Math.sin(K)}},ge=function(L){return 180*L/Math.PI},ye=function(L,j,K,q,re,he){var Be=L+.5*(K-L),ae=j+.5*(q-j),be=re+.5*(K-re),ke=he+.5*(q-he),Fe=Math.min(L,re,Be,be),st=Math.max(L,re,Be,be),Ge=Math.min(j,he,ae,ke),le=Math.max(j,he,ae,ke);return new o(Fe,Ge,st-Fe,le-Ge)},_e=function(L,j,K,q,re,he,Be,ae){var be,ke,Fe,st,Ge,le,$e,tt,wt,nt,Tt,yt,Ht,It,Vt=K-L,cr=q-j,Jt=re-K,ur=he-q,rr=Be-re,Et=ae-he;for(ke=0;ke<41;ke++)wt=($e=(Fe=L+(be=ke/40)*Vt)+be*((Ge=K+be*Jt)-Fe))+be*(Ge+be*(re+be*rr-Ge)-$e),nt=(tt=(st=j+be*cr)+be*((le=q+be*ur)-st))+be*(le+be*(he+be*Et-le)-tt),ke==0?(Tt=wt,yt=nt,Ht=wt,It=nt):(Tt=Math.min(Tt,wt),yt=Math.min(yt,nt),Ht=Math.max(Ht,wt),It=Math.max(It,nt));return new o(Math.round(Tt),Math.round(yt),Math.round(Ht-Tt),Math.round(It-yt))},Z=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var L,j,K=(L=this.ctx.lineDash,j=this.ctx.lineDashOffset,JSON.stringify({lineDash:L,lineDashOffset:j}));this.prevLineDash!==K&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=K)}}})(jt.API),(function(e){var t=function(s){var o,l,c,f,h,p,g,y,m,w;for(l=[],c=0,f=(s+=o="\0\0\0\0".slice(s.length%4||4)).length;f>c;c+=4)(h=(s.charCodeAt(c)<<24)+(s.charCodeAt(c+1)<<16)+(s.charCodeAt(c+2)<<8)+s.charCodeAt(c+3))!==0?(p=(h=((h=((h=((h=(h-(w=h%85))/85)-(m=h%85))/85)-(y=h%85))/85)-(g=h%85))/85)%85,l.push(p+33,g+33,y+33,m+33,w+33)):l.push(122);return(function(b,E){for(var S=E;S>0;S--)b.pop()})(l,o.length),String.fromCharCode.apply(String,l)+"~>"},r=function(s){var o,l,c,f,h,p=String,g="length",y=255,m="charCodeAt",w="slice",b="replace";for(s[w](-2),s=s[w](0,-2)[b](/\s/g,"")[b]("z","!!!!!"),c=[],f=0,h=(s+=o="uuuuu"[w](s[g]%5||5))[g];h>f;f+=5)l=52200625*(s[m](f)-33)+614125*(s[m](f+1)-33)+7225*(s[m](f+2)-33)+85*(s[m](f+3)-33)+(s[m](f+4)-33),c.push(y&l>>24,y&l>>16,y&l>>8,y&l);return(function(E,S){for(var T=S;T>0;T--)E.pop()})(c,o[g]),p.fromCharCode.apply(p,c)},n=function(s){return s.split("").map(function(o){return("0"+o.charCodeAt().toString(16)).slice(-2)}).join("")+">"},i=function(s){var o=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((s=s.replace(/\s/g,"")).indexOf(">")!==-1&&(s=s.substr(0,s.indexOf(">"))),s.length%2&&(s+="0"),o.test(s)===!1)return"";for(var l="",c=0;c<s.length;c+=2)l+=String.fromCharCode("0x"+(s[c]+s[c+1]));return l},a=function(s){for(var o=new Uint8Array(s.length),l=s.length;l--;)o[l]=s.charCodeAt(l);return(o=o4(o)).reduce(function(c,f){return c+String.fromCharCode(f)},"")};e.processDataByFilters=function(s,o){var l=0,c=s||"",f=[];for(typeof(o=o||[])=="string"&&(o=[o]),l=0;l<o.length;l+=1)switch(o[l]){case"ASCII85Decode":case"/ASCII85Decode":c=r(c),f.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":c=t(c),f.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":c=i(c),f.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":c=n(c),f.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":c=a(c),f.push("/FlateDecode");break;default:throw new Error('The filter: "'+o[l]+'" is not implemented')}return{data:c,reverseChain:f.reverse().join(" ")}}})(jt.API),(function(e){e.loadFile=function(t,r,n){return(function(i,a,s){a=a!==!1,s=typeof s=="function"?s:function(){};var o=void 0;try{o=(function(l,c,f){var h=new XMLHttpRequest,p=0,g=function(y){var m=y.length,w=[],b=String.fromCharCode;for(p=0;p<m;p+=1)w.push(b(255&y.charCodeAt(p)));return w.join("")};if(h.open("GET",l,!c),h.overrideMimeType("text/plain; charset=x-user-defined"),c===!1&&(h.onload=function(){h.status===200?f(g(this.responseText)):f(void 0)}),h.send(null),c&&h.status===200)return g(h.responseText)})(i,a,s)}catch{}return o})(t,r,n)},e.loadImageFile=e.loadFile})(jt.API),(function(e){function t(){return(lr.html2canvas?Promise.resolve(lr.html2canvas):pC(()=>Promise.resolve().then(()=>Bme),[])).catch(function(o){return Promise.reject(new Error("Could not load html2canvas: "+o))}).then(function(o){return o.default?o.default:o})}function r(){return(lr.DOMPurify?Promise.resolve(lr.DOMPurify):pC(()=>import("./purify.es-B6FQ9oRL.js"),[])).catch(function(o){return Promise.reject(new Error("Could not load dompurify: "+o))}).then(function(o){return o.default?o.default:o})}var n=function(o){var l=un(o);return l==="undefined"?"undefined":l==="string"||o instanceof String?"string":l==="number"||o instanceof Number?"number":l==="function"||o instanceof Function?"function":o&&o.constructor===Array?"array":o&&o.nodeType===1?"element":l==="object"?"object":"unknown"},i=function(o,l){var c=document.createElement(o);for(var f in l.className&&(c.className=l.className),l.innerHTML&&l.dompurify&&(c.innerHTML=l.dompurify.sanitize(l.innerHTML)),l.style)c.style[f]=l.style[f];return c},a=function o(l,c){for(var f=l.nodeType===3?document.createTextNode(l.nodeValue):l.cloneNode(!1),h=l.firstChild;h;h=h.nextSibling)c!==!0&&h.nodeType===1&&h.nodeName==="SCRIPT"||f.appendChild(o(h,c));return l.nodeType===1&&(l.nodeName==="CANVAS"?(f.width=l.width,f.height=l.height,f.getContext("2d").drawImage(l,0,0)):l.nodeName!=="TEXTAREA"&&l.nodeName!=="SELECT"||(f.value=l.value),f.addEventListener("load",function(){f.scrollTop=l.scrollTop,f.scrollLeft=l.scrollLeft},!0)),f},s=function o(l){var c=Object.assign(o.convert(Promise.resolve()),JSON.parse(JSON.stringify(o.template))),f=o.convert(Promise.resolve(),c);return(f=f.setProgress(1,o,1,[o])).set(l)};(s.prototype=Object.create(Promise.prototype)).constructor=s,s.convert=function(o,l){return o.__proto__=l||s.prototype,o},s.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},s.prototype.from=function(o,l){return this.then(function(){switch(l=l||(function(c){switch(n(c)){case"string":return"string";case"element":return c.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}})(o),l){case"string":return this.then(r).then(function(c){return this.set({src:i("div",{innerHTML:o,dompurify:c})})});case"element":return this.set({src:o});case"canvas":return this.set({canvas:o});case"img":return this.set({img:o});default:return this.error("Unknown source type.")}})},s.prototype.to=function(o){switch(o){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},s.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var o={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},l=a(this.prop.src,this.opt.html2canvas.javascriptEnabled);l.tagName==="BODY"&&(o.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=i("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=i("div",{className:"html2pdf__container",style:o}),this.prop.container.appendChild(l),this.prop.container.firstChild.appendChild(i("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},s.prototype.toCanvas=function(){var o=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(o).then(t).then(function(l){var c=Object.assign({},this.opt.html2canvas);return delete c.onrendered,l(this.prop.container,c)}).then(function(l){(this.opt.html2canvas.onrendered||function(){})(l),this.prop.canvas=l,document.body.removeChild(this.prop.overlay)})},s.prototype.toContext2d=function(){var o=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(o).then(t).then(function(l){var c=this.opt.jsPDF,f=this.opt.fontFaces,h=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,p=Object.assign({async:!0,allowTaint:!0,scale:h,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete p.onrendered,c.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,c.context2d.posX=this.opt.x,c.context2d.posY=this.opt.y,c.context2d.margin=this.opt.margin,c.context2d.fontFaces=f,f)for(var g=0;g<f.length;++g){var y=f[g],m=y.src.find(function(w){return w.format==="truetype"});m&&c.addFont(m.url,y.ref.name,y.ref.style)}return p.windowHeight=p.windowHeight||0,p.windowHeight=p.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):p.windowHeight,c.context2d.save(!0),l(this.prop.container,p)}).then(function(l){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(l),this.prop.canvas=l,document.body.removeChild(this.prop.overlay)})},s.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var o=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=o})},s.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},s.prototype.output=function(o,l,c){return(c=c||"pdf").toLowerCase()==="img"||c.toLowerCase()==="image"?this.outputImg(o,l):this.outputPdf(o,l)},s.prototype.outputPdf=function(o,l){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(o,l)})},s.prototype.outputImg=function(o){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(o){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+o+'" is not supported.'}})},s.prototype.save=function(o){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(o?{filename:o}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},s.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},s.prototype.set=function(o){if(n(o)!=="object")return this;var l=Object.keys(o||{}).map(function(c){if(c in s.template.prop)return function(){this.prop[c]=o[c]};switch(c){case"margin":return this.setMargin.bind(this,o.margin);case"jsPDF":return function(){return this.opt.jsPDF=o.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,o.pageSize);default:return function(){this.opt[c]=o[c]}}},this);return this.then(function(){return this.thenList(l)})},s.prototype.get=function(o,l){return this.then(function(){var c=o in s.template.prop?this.prop[o]:this.opt[o];return l?l(c):c})},s.prototype.setMargin=function(o){return this.then(function(){switch(n(o)){case"number":o=[o,o,o,o];case"array":if(o.length===2&&(o=[o[0],o[1],o[0],o[1]]),o.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=o}).then(this.setPageSize)},s.prototype.setPageSize=function(o){function l(c,f){return Math.floor(c*f/72*96)}return this.then(function(){(o=o||jt.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(o.inner={width:o.width-this.opt.margin[1]-this.opt.margin[3],height:o.height-this.opt.margin[0]-this.opt.margin[2]},o.inner.px={width:l(o.inner.width,o.k),height:l(o.inner.height,o.k)},o.inner.ratio=o.inner.height/o.inner.width),this.prop.pageSize=o})},s.prototype.setProgress=function(o,l,c,f){return o!=null&&(this.progress.val=o),l!=null&&(this.progress.state=l),c!=null&&(this.progress.n=c),f!=null&&(this.progress.stack=f),this.progress.ratio=this.progress.val/this.progress.state,this},s.prototype.updateProgress=function(o,l,c,f){return this.setProgress(o?this.progress.val+o:null,l||null,c?this.progress.n+c:null,f?this.progress.stack.concat(f):null)},s.prototype.then=function(o,l){var c=this;return this.thenCore(o,l,function(f,h){return c.updateProgress(null,null,1,[f]),Promise.prototype.then.call(this,function(p){return c.updateProgress(null,f),p}).then(f,h).then(function(p){return c.updateProgress(1),p})})},s.prototype.thenCore=function(o,l,c){c=c||Promise.prototype.then;var f=this;o&&(o=o.bind(f)),l&&(l=l.bind(f));var h=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?f:s.convert(Object.assign({},f),Promise.prototype),p=c.call(h,o,l);return s.convert(p,f.__proto__)},s.prototype.thenExternal=function(o,l){return Promise.prototype.then.call(this,o,l)},s.prototype.thenList=function(o){var l=this;return o.forEach(function(c){l=l.thenCore(c)}),l},s.prototype.catch=function(o){o&&(o=o.bind(this));var l=Promise.prototype.catch.call(this,o);return s.convert(l,this)},s.prototype.catchExternal=function(o){return Promise.prototype.catch.call(this,o)},s.prototype.error=function(o){return this.then(function(){throw new Error(o)})},s.prototype.using=s.prototype.set,s.prototype.saveAs=s.prototype.save,s.prototype.export=s.prototype.output,s.prototype.run=s.prototype.then,jt.getPageSize=function(o,l,c){if(un(o)==="object"){var f=o;o=f.orientation,l=f.unit||l,c=f.format||c}l=l||"mm",c=c||"a4",o=(""+(o||"P")).toLowerCase();var h,p=(""+c).toLowerCase(),g={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(l){case"pt":h=1;break;case"mm":h=72/25.4;break;case"cm":h=72/2.54;break;case"in":h=72;break;case"px":h=.75;break;case"pc":case"em":h=12;break;case"ex":h=6;break;default:throw"Invalid unit: "+l}var y,m=0,w=0;if(g.hasOwnProperty(p))m=g[p][1]/h,w=g[p][0]/h;else try{m=c[1],w=c[0]}catch{throw new Error("Invalid format: "+c)}if(o==="p"||o==="portrait")o="p",w>m&&(y=w,w=m,m=y);else{if(o!=="l"&&o!=="landscape")throw"Invalid orientation: "+o;o="l",m>w&&(y=w,w=m,m=y)}return{width:w,height:m,unit:l,k:h,orientation:o}},e.html=function(o,l){(l=l||{}).callback=l.callback||function(){},l.html2canvas=l.html2canvas||{},l.html2canvas.canvas=l.html2canvas.canvas||this.canvas,l.jsPDF=l.jsPDF||this,l.fontFaces=l.fontFaces?l.fontFaces.map(DC):null;var c=new s(l);return l.worker?c:c.from(o).doCallback()}})(jt.API),jt.API.addJS=function(e){return HI=e,this.internal.events.subscribe("postPutResources",function(){hy=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(hy+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),jI=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+HI+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){hy!==void 0&&jI!==void 0&&this.internal.out("/Names <</JavaScript "+hy+" 0 R>>")}),this},(function(e){var t;e.events.push(["postPutResources",function(){var r=this,n=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var i=r.outline.render().split(/\r\n/),a=0;a<i.length;a++){var s=i[a],o=n.exec(s);if(o!=null){var l=o[1];r.internal.newObjectDeferredBegin(l,!1)}r.internal.write(s)}if(this.outline.createNamedDestinations){var c=this.internal.pages.length,f=[];for(a=0;a<c;a++){var h=r.internal.newObject();f.push(h);var p=r.internal.getPageInfo(a+1);r.internal.write("<< /D["+p.objId+" 0 R /XYZ null null null]>> endobj")}var g=r.internal.newObject();for(r.internal.write("<< /Names [ "),a=0;a<f.length;a++)r.internal.write("(page_"+(a+1)+")"+f[a]+" 0 R");r.internal.write(" ] >>","endobj"),t=r.internal.newObject(),r.internal.write("<< /Dests "+g+" 0 R"),r.internal.write(">>","endobj")}}]),e.events.push(["putCatalog",function(){var r=this;r.outline.root.children.length>0&&(r.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&r.internal.write("/Names "+t+" 0 R"))}]),e.events.push(["initialized",function(){var r=this;r.outline={createNamedDestinations:!1,root:{children:[]}},r.outline.add=function(n,i,a){var s={title:i,options:a,children:[]};return n==null&&(n=this.root),n.children.push(s),s},r.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=r,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},r.outline.genIds_r=function(n){n.id=r.internal.newObjectDeferred();for(var i=0;i<n.children.length;i++)this.genIds_r(n.children[i])},r.outline.renderRoot=function(n){this.objStart(n),this.line("/Type /Outlines"),n.children.length>0&&(this.line("/First "+this.makeRef(n.children[0])),this.line("/Last "+this.makeRef(n.children[n.children.length-1]))),this.line("/Count "+this.count_r({count:0},n)),this.objEnd()},r.outline.renderItems=function(n){for(var i=this.ctx.pdf.internal.getVerticalCoordinateString,a=0;a<n.children.length;a++){var s=n.children[a];this.objStart(s),this.line("/Title "+this.makeString(s.title)),this.line("/Parent "+this.makeRef(n)),a>0&&this.line("/Prev "+this.makeRef(n.children[a-1])),a<n.children.length-1&&this.line("/Next "+this.makeRef(n.children[a+1])),s.children.length>0&&(this.line("/First "+this.makeRef(s.children[0])),this.line("/Last "+this.makeRef(s.children[s.children.length-1])));var o=this.count=this.count_r({count:0},s);if(o>0&&this.line("/Count "+o),s.options&&s.options.pageNumber){var l=r.internal.getPageInfo(s.options.pageNumber);this.line("/Dest ["+l.objId+" 0 R /XYZ 0 "+i(0)+" 0]")}this.objEnd()}for(var c=0;c<n.children.length;c++)this.renderItems(n.children[c])},r.outline.line=function(n){this.ctx.val+=n+`\r
`},r.outline.makeRef=function(n){return n.id+" 0 R"},r.outline.makeString=function(n){return"("+r.internal.pdfEscape(n)+")"},r.outline.objStart=function(n){this.ctx.val+=`\r
`+n.id+` 0 obj\r
<<\r
`},r.outline.objEnd=function(){this.ctx.val+=`>> \r
endobj\r
`},r.outline.count_r=function(n,i){for(var a=0;a<i.children.length;a++)n.count++,this.count_r(n,i.children[a]);return n.count}}])})(jt.API),(function(e){var t=[192,193,194,195,196,197,198,199];e.processJPEG=function(r,n,i,a,s,o){var l,c=this.decode.DCT_DECODE,f=null;if(typeof r=="string"||this.__addimage__.isArrayBuffer(r)||this.__addimage__.isArrayBufferView(r)){switch(r=s||r,r=this.__addimage__.isArrayBuffer(r)?new Uint8Array(r):r,l=(function(h){for(var p,g=256*h.charCodeAt(4)+h.charCodeAt(5),y=h.length,m={width:0,height:0,numcomponents:1},w=4;w<y;w+=2){if(w+=g,t.indexOf(h.charCodeAt(w+1))!==-1){p=256*h.charCodeAt(w+5)+h.charCodeAt(w+6),m={width:256*h.charCodeAt(w+7)+h.charCodeAt(w+8),height:p,numcomponents:h.charCodeAt(w+9)};break}g=256*h.charCodeAt(w+2)+h.charCodeAt(w+3)}return m})(r=this.__addimage__.isArrayBufferView(r)?this.__addimage__.arrayBufferToBinaryString(r):r),l.numcomponents){case 1:o=this.color_spaces.DEVICE_GRAY;break;case 4:o=this.color_spaces.DEVICE_CMYK;break;case 3:o=this.color_spaces.DEVICE_RGB}f={data:r,width:l.width,height:l.height,colorSpace:o,bitsPerComponent:8,filter:c,index:n,alias:i}}return f}})(jt.API),jt.API.processPNG=function(e,t,r,n){if(this.__addimage__.isArrayBuffer(e)&&(e=new Uint8Array(e)),this.__addimage__.isArrayBufferView(e)){var i,a=U2e(e,{checkCrc:!0}),s=a.width,o=a.height,l=a.channels,c=a.palette,f=a.depth;i=c&&l===1?(function(R){for(var O=R.width,V=R.height,I=R.data,Q=R.palette,W=R.depth,J=!1,fe=[],G=[],se=void 0,ge=!1,ye=0,_e=0;_e<Q.length;_e++){var Z=G8(Q[_e],4),L=Z[0],j=Z[1],K=Z[2],q=Z[3];fe.push(L,j,K),q!=null&&(q===0?(ye++,G.length<1&&G.push(_e)):q<255&&(ge=!0))}if(ge||ye>1){J=!0,G=void 0;var re=O*V;se=new Uint8Array(re);for(var he=new DataView(I.buffer),Be=0;Be<re;Be++){var ae=MC(he,Be,W),be=G8(Q[ae],4)[3];se[Be]=be}}else ye===0&&(G=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:J?8:void 0,colorBytes:I,alphaBytes:se,needSMask:J,palette:fe,mask:G}})(a):l===2||l===4?(function(R){for(var O=R.data,V=R.width,I=R.height,Q=R.channels,W=R.depth,J=Q===2?"DeviceGray":"DeviceRGB",fe=Q-1,G=V*I,se=fe,ge=G*se,ye=1*G,_e=Math.ceil(ge*W/8),Z=Math.ceil(ye*W/8),L=new Uint8Array(_e),j=new Uint8Array(Z),K=new DataView(O.buffer),q=new DataView(L.buffer),re=new DataView(j.buffer),he=!1,Be=0;Be<G;Be++){for(var ae=Be*Q,be=0;be<se;be++)XI(q,MC(K,ae+be,W),Be*se+be,W);var ke=MC(K,ae+se,W);ke<(1<<W)-1&&(he=!0),XI(re,ke,1*Be,W)}return{colorSpace:J,colorsPerPixel:fe,sMaskBitsPerComponent:he?W:void 0,colorBytes:L,alphaBytes:j,needSMask:he}})(a):(function(R){var O=R.data,V=R.channels===1?"DeviceGray":"DeviceRGB";return{colorSpace:V,colorsPerPixel:V==="DeviceGray"?1:3,colorBytes:O instanceof Uint16Array?(function(I){for(var Q=I.length,W=new Uint8Array(2*Q),J=new DataView(W.buffer,W.byteOffset,W.byteLength),fe=0;fe<Q;fe++)J.setUint16(2*fe,I[fe],!1);return W})(O):O,needSMask:!1}})(a);var h,p,g,y=i,m=y.colorSpace,w=y.colorsPerPixel,b=y.sMaskBitsPerComponent,E=y.colorBytes,S=y.alphaBytes,T=y.needSMask,D=y.palette,k=y.mask,P=null;return n!==jt.API.image_compression.NONE&&typeof o4=="function"?(P=(function(R){var O;switch(R){case jt.API.image_compression.FAST:O=11;break;case jt.API.image_compression.MEDIUM:O=13;break;case jt.API.image_compression.SLOW:O=14;break;default:O=12}return O})(n),h=this.decode.FLATE_DECODE,p="/Predictor ".concat(P," /Colors ").concat(w," /BitsPerComponent ").concat(f," /Columns ").concat(s),e=GI(E,Math.ceil(s*w*f/8),w,f,n),T&&(g=GI(S,Math.ceil(s*b/8),1,b,n))):(h=void 0,p=void 0,e=E,T&&(g=S)),(this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e))&&(e=this.__addimage__.arrayBufferToBinaryString(e)),(g&&this.__addimage__.isArrayBuffer(g)||this.__addimage__.isArrayBufferView(g))&&(g=this.__addimage__.arrayBufferToBinaryString(g)),{alias:r,data:e,index:t,filter:h,decodeParameters:p,transparency:k,palette:D,sMask:g,predictor:P,width:s,height:o,bitsPerComponent:f,sMaskBitsPerComponent:b,colorSpace:m}}},(function(e){e.processGIF89A=function(t,r,n,i){var a=new J2e(t),s=a.width,o=a.height,l=[];a.decodeAndBlitFrameRGBA(0,l);var c={data:l,width:s,height:o},f=new PC(100).encode(c,100);return e.processJPEG.call(this,f,r,n,i)},e.processGIF87A=e.processGIF89A})(jt.API),WA.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var e=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(e);for(var t=0;t<e;t++){var r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0);this.palette[t]={red:i,green:n,blue:r,quad:a}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},WA.prototype.parseBGR=function(){this.pos=this.offset;try{var e="bit"+this.bitPP,t=this.width*this.height*4;this.data=new Uint8Array(t),this[e]()}catch(r){Fn.log("bit decode error:"+r)}},WA.prototype.bit1=function(){var e,t=Math.ceil(this.width/8),r=t%4;for(e=this.height-1;e>=0;e--){for(var n=this.bottom_up?e:this.height-1-e,i=0;i<t;i++)for(var a=this.datav.getUint8(this.pos++,!0),s=n*this.width*4+8*i*4,o=0;o<8&&8*i+o<this.width;o++){var l=this.palette[a>>7-o&1];this.data[s+4*o]=l.blue,this.data[s+4*o+1]=l.green,this.data[s+4*o+2]=l.red,this.data[s+4*o+3]=255}r!==0&&(this.pos+=4-r)}},WA.prototype.bit4=function(){for(var e=Math.ceil(this.width/2),t=e%4,r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,i=0;i<e;i++){var a=this.datav.getUint8(this.pos++,!0),s=n*this.width*4+2*i*4,o=a>>4,l=15&a,c=this.palette[o];if(this.data[s]=c.blue,this.data[s+1]=c.green,this.data[s+2]=c.red,this.data[s+3]=255,2*i+1>=this.width)break;c=this.palette[l],this.data[s+4]=c.blue,this.data[s+4+1]=c.green,this.data[s+4+2]=c.red,this.data[s+4+3]=255}t!==0&&(this.pos+=4-t)}},WA.prototype.bit8=function(){for(var e=this.width%4,t=this.height-1;t>=0;t--){for(var r=this.bottom_up?t:this.height-1-t,n=0;n<this.width;n++){var i=this.datav.getUint8(this.pos++,!0),a=r*this.width*4+4*n;if(i<this.palette.length){var s=this.palette[i];this.data[a]=s.red,this.data[a+1]=s.green,this.data[a+2]=s.blue,this.data[a+3]=255}else this.data[a]=255,this.data[a+1]=255,this.data[a+2]=255,this.data[a+3]=255}e!==0&&(this.pos+=4-e)}},WA.prototype.bit15=function(){for(var e=this.width%3,t=parseInt("11111",2),r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,i=0;i<this.width;i++){var a=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(a&t)/t*255|0,o=(a>>5&t)/t*255|0,l=(a>>10&t)/t*255|0,c=a>>15?255:0,f=n*this.width*4+4*i;this.data[f]=l,this.data[f+1]=o,this.data[f+2]=s,this.data[f+3]=c}this.pos+=e}},WA.prototype.bit16=function(){for(var e=this.width%3,t=parseInt("11111",2),r=parseInt("111111",2),n=this.height-1;n>=0;n--){for(var i=this.bottom_up?n:this.height-1-n,a=0;a<this.width;a++){var s=this.datav.getUint16(this.pos,!0);this.pos+=2;var o=(s&t)/t*255|0,l=(s>>5&r)/r*255|0,c=(s>>11)/t*255|0,f=i*this.width*4+4*a;this.data[f]=c,this.data[f+1]=l,this.data[f+2]=o,this.data[f+3]=255}this.pos+=e}},WA.prototype.bit24=function(){for(var e=this.height-1;e>=0;e--){for(var t=this.bottom_up?e:this.height-1-e,r=0;r<this.width;r++){var n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),s=t*this.width*4+4*r;this.data[s]=a,this.data[s+1]=i,this.data[s+2]=n,this.data[s+3]=255}this.pos+=this.width%4}},WA.prototype.bit32=function(){for(var e=this.height-1;e>=0;e--)for(var t=this.bottom_up?e:this.height-1-e,r=0;r<this.width;r++){var n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),o=t*this.width*4+4*r;this.data[o]=a,this.data[o+1]=i,this.data[o+2]=n,this.data[o+3]=s}},WA.prototype.getData=function(){return this.data},(function(e){e.processBMP=function(t,r,n,i){var a=new WA(t,!1),s=a.width,o=a.height,l={data:a.getData(),width:s,height:o},c=new PC(100).encode(l,100);return e.processJPEG.call(this,c,r,n,i)}})(jt.API),ZI.prototype.getData=function(){return this.data},(function(e){e.processWEBP=function(t,r,n,i){var a=new ZI(t),s=a.width,o=a.height,l={data:a.getData(),width:s,height:o},c=new PC(100).encode(l,100);return e.processJPEG.call(this,c,r,n,i)}})(jt.API),jt.API.processRGBA=function(e,t,r){for(var n=e.data,i=n.length,a=new Uint8Array(i/4*3),s=new Uint8Array(i/4),o=0,l=0,c=0;c<i;c+=4){var f=n[c],h=n[c+1],p=n[c+2],g=n[c+3];a[o++]=f,a[o++]=h,a[o++]=p,s[l++]=g}var y=this.__addimage__.arrayBufferToBinaryString(a);return{alpha:this.__addimage__.arrayBufferToBinaryString(s),data:y,index:t,alias:r,colorSpace:"DeviceRGB",bitsPerComponent:8,width:e.width,height:e.height}},jt.API.setLanguage=function(e){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[e]!==void 0&&(this.internal.languageSettings.languageCode=e,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},l0=jt.API,dy=l0.getCharWidthsArray=function(e,t){var r,n,i=(t=t||{}).font||this.internal.getFont(),a=t.fontSize||this.internal.getFontSize(),s=t.charSpace||this.internal.getCharSpace(),o=t.widths?t.widths:i.metadata.Unicode.widths,l=o.fof?o.fof:1,c=t.kerning?t.kerning:i.metadata.Unicode.kerning,f=c.fof?c.fof:1,h=t.doKerning!==!1,p=0,g=e.length,y=0,m=o[0]||l,w=[];for(r=0;r<g;r++)n=e.charCodeAt(r),typeof i.metadata.widthOfString=="function"?w.push((i.metadata.widthOfGlyph(i.metadata.characterToGlyph(n))+s*(1e3/a)||0)/1e3):(p=h&&un(c[n])==="object"&&!isNaN(parseInt(c[n][y],10))?c[n][y]/f:0,w.push((o[n]||m)/l+p)),y=n;return w},KI=l0.getStringUnitWidth=function(e,t){var r=(t=t||{}).fontSize||this.internal.getFontSize(),n=t.font||this.internal.getFont(),i=t.charSpace||this.internal.getCharSpace();return l0.processArabic&&(e=l0.processArabic(e)),typeof n.metadata.widthOfString=="function"?n.metadata.widthOfString(e,r,i)/r:dy.apply(this,arguments).reduce(function(a,s){return a+s},0)},zI=function(e,t,r,n){for(var i=[],a=0,s=e.length,o=0;a!==s&&o+t[a]<r;)o+=t[a],a++;i.push(e.slice(0,a));var l=a;for(o=0;a!==s;)o+t[a]>n&&(i.push(e.slice(l,a)),o=0,l=a),o+=t[a],a++;return l!==a&&i.push(e.slice(l,a)),i},VI=function(e,t,r){r||(r={});var n,i,a,s,o,l,c,f=[],h=[f],p=r.textIndent||0,g=0,y=0,m=e.split(" "),w=dy.apply(this,[" ",r])[0];if(l=r.lineIndent===-1?m[0].length+2:r.lineIndent||0){var b=Array(l).join(" "),E=[];m.map(function(T){(T=T.split(/\s*\n/)).length>1?E=E.concat(T.map(function(D,k){return(k&&D.length?`
`:"")+D})):E.push(T[0])}),m=E,l=KI.apply(this,[b,r])}for(a=0,s=m.length;a<s;a++){var S=0;if(n=m[a],l&&n[0]==`
`&&(n=n.substr(1),S=1),p+g+(y=(i=dy.apply(this,[n,r])).reduce(function(T,D){return T+D},0))>t||S){if(y>t){for(o=zI.apply(this,[n,i,t-(p+g),t]),f.push(o.shift()),f=[o.pop()];o.length;)h.push([o.shift()]);y=i.slice(n.length-(f[0]?f[0].length:0)).reduce(function(T,D){return T+D},0)}else f=[n];h.push(f),p=y+l,g=w}else f.push(n),p+=g+y,g=w}return c=l?function(T,D){return(D?b:"")+T.join(" ")}:function(T){return T.join(" ")},h.map(c)},l0.splitTextToSize=function(e,t,r){var n,i=(r=r||{}).fontSize||this.internal.getFontSize(),a=(function(f){if(f.widths&&f.kerning)return{widths:f.widths,kerning:f.kerning};var h=this.internal.getFont(f.fontName,f.fontStyle),p="Unicode";return h.metadata[p]?{widths:h.metadata[p].widths||{0:1},kerning:h.metadata[p].kerning||{}}:{font:h.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,r);n=Array.isArray(e)?e:String(e).split(/\r?\n/);var s=1*this.internal.scaleFactor*t/i;a.textIndent=r.textIndent?1*r.textIndent*this.internal.scaleFactor/i:0,a.lineIndent=r.lineIndent;var o,l,c=[];for(o=0,l=n.length;o<l;o++)c=c.concat(VI.apply(this,[n[o],s,a]));return c},(function(e){e.__fontmetrics__=e.__fontmetrics__||{};for(var t="0123456789abcdef",r="klmnopqrstuvwxyz",n={},i={},a=0;a<16;a++)n[r[a]]=t[a],i[t[a]]=r[a];var s=function(p){return"0x"+parseInt(p,10).toString(16)},o=e.__fontmetrics__.compress=function(p){var g,y,m,w,b=["{"];for(var E in p){if(g=p[E],isNaN(parseInt(E,10))?y="'"+E+"'":(E=parseInt(E,10),y=(y=s(E).slice(2)).slice(0,-1)+i[y.slice(-1)]),typeof g=="number")g<0?(m=s(g).slice(3),w="-"):(m=s(g).slice(2),w=""),m=w+m.slice(0,-1)+i[m.slice(-1)];else{if(un(g)!=="object")throw new Error("Don't know what to do with value type "+un(g)+".");m=o(g)}b.push(y+m)}return b.push("}"),b.join("")},l=e.__fontmetrics__.uncompress=function(p){if(typeof p!="string")throw new Error("Invalid argument passed to uncompress.");for(var g,y,m,w,b={},E=1,S=b,T=[],D="",k="",P=p.length-1,R=1;R<P;R+=1)(w=p[R])=="'"?g?(m=g.join(""),g=void 0):g=[]:g?g.push(w):w=="{"?(T.push([S,m]),S={},m=void 0):w=="}"?((y=T.pop())[0][y[1]]=S,m=void 0,S=y[0]):w=="-"?E=-1:m===void 0?n.hasOwnProperty(w)?(D+=n[w],m=parseInt(D,16)*E,E=1,D=""):D+=w:n.hasOwnProperty(w)?(k+=n[w],S[m]=parseInt(k,16)*E,E=1,m=void 0,k=""):k+=w;return b},c={codePages:["WinAnsiEncoding"],WinAnsiEncoding:l("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},f={Unicode:{Courier:c,"Courier-Bold":c,"Courier-BoldOblique":c,"Courier-Oblique":c,Helvetica:c,"Helvetica-Bold":c,"Helvetica-BoldOblique":c,"Helvetica-Oblique":c,"Times-Roman":c,"Times-Bold":c,"Times-BoldItalic":c,"Times-Italic":c}},h={Unicode:{"Courier-Oblique":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":l("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":l("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":l("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:l("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:l("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":l("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:l("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":l("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":l("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":l("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};e.events.push(["addFont",function(p){var g=p.font,y=h.Unicode[g.postScriptName];y&&(g.metadata.Unicode={},g.metadata.Unicode.widths=y.widths,g.metadata.Unicode.kerning=y.kerning);var m=f.Unicode[g.postScriptName];m&&(g.metadata.Unicode.encoding=m,g.encoding=m.codePages[0])}])})(jt.API),(function(e){var t=function(r){for(var n=r.length,i=new Uint8Array(n),a=0;a<n;a++)i[a]=r.charCodeAt(a);return i};e.API.events.push(["addFont",function(r){var n=void 0,i=r.font,a=r.instance;if(!i.isStandardFont){if(a===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");if(typeof(n=a.existsFileInVFS(i.postScriptName)===!1?a.loadFile(i.postScriptName):a.getFileFromVFS(i.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");(function(s,o){o=/^\x00\x01\x00\x00/.test(o)?t(o):t(Xy(o)),s.metadata=e.API.TTFFont.open(o),s.metadata.Unicode=s.metadata.Unicode||{encoding:{},kerning:{},widths:[]},s.metadata.glyIdsUsed=[0]})(i,n)}}])})(jt),jt.API.addSvgAsImage=function(e,t,r,n,i,a,s,o){if(isNaN(t)||isNaN(r))throw Fn.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(n)||isNaN(i))throw Fn.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var l=document.createElement("canvas");l.width=n,l.height=i;var c=l.getContext("2d");c.fillStyle="#fff",c.fillRect(0,0,l.width,l.height);var f={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},h=this;return(lr.canvg?Promise.resolve(lr.canvg):pC(()=>import("./index.es-CjPnMxRl.js"),[])).catch(function(p){return Promise.reject(new Error("Could not load canvg: "+p))}).then(function(p){return p.default?p.default:p}).then(function(p){return p.fromString(c,e,f)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(p){return p.render(f)}).then(function(){h.addImage(l.toDataURL("image/jpeg",1),t,r,n,i,s,o)})},jt.API.putTotalPages=function(e){var t,r=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(e,"g"),r=this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(e,this.internal.getFont()),"g"),r=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var n=1;n<=this.internal.getNumberOfPages();n++)for(var i=0;i<this.internal.pages[n].length;i++)this.internal.pages[n][i]=this.internal.pages[n][i].replace(t,r);return this},jt.API.viewerPreferences=function(e,t){var r;e=e||{},t=t||!1;var n,i,a,s={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},o=Object.keys(s),l=[],c=0,f=0,h=0;function p(y,m){var w,b=!1;for(w=0;w<y.length;w+=1)y[w]===m&&(b=!0);return b}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(s)),this.internal.viewerpreferences.isSubscribed=!1),r=this.internal.viewerpreferences.configuration,e==="reset"||t===!0){var g=o.length;for(h=0;h<g;h+=1)r[o[h]].value=r[o[h]].defaultValue,r[o[h]].explicitSet=!1}if(un(e)==="object"){for(i in e)if(a=e[i],p(o,i)&&a!==void 0){if(r[i].type==="boolean"&&typeof a=="boolean")r[i].value=a;else if(r[i].type==="name"&&p(r[i].valueSet,a))r[i].value=a;else if(r[i].type==="integer"&&Number.isInteger(a))r[i].value=a;else if(r[i].type==="array"){for(c=0;c<a.length;c+=1)if(n=!0,a[c].length===1&&typeof a[c][0]=="number")l.push(String(a[c]-1));else if(a[c].length>1){for(f=0;f<a[c].length;f+=1)typeof a[c][f]!="number"&&(n=!1);n===!0&&l.push([a[c][0]-1,a[c][1]-1].join(" "))}r[i].value="["+l.join(" ")+"]"}else r[i].value=r[i].defaultValue;r[i].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var y,m=[];for(y in r)r[y].explicitSet===!0&&(r[y].type==="name"?m.push("/"+y+" /"+r[y].value):m.push("/"+y+" "+r[y].value));m.length!==0&&this.internal.write(`/ViewerPreferences
<<
`+m.join(`
`)+`
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=r,this},(function(e){var t=function(){var n='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',i=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),a=unescape(encodeURIComponent(n)),s=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),o=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),l=unescape(encodeURIComponent("</x:xmpmeta>")),c=a.length+s.length+o.length+i.length+l.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+c+" >>"),this.internal.write("stream"),this.internal.write(i+a+s+o+l),this.internal.write("endstream"),this.internal.write("endobj")},r=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};e.addMetadata=function(n,i){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:n,namespaceuri:i||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",r),this.internal.events.subscribe("postPutResources",t)),this}})(jt.API),(function(e){var t=e.API,r=t.pdfEscape16=function(a,s){for(var o,l=s.metadata.Unicode.widths,c=["","0","00","000","0000"],f=[""],h=0,p=a.length;h<p;++h){if(o=s.metadata.characterToGlyph(a.charCodeAt(h)),s.metadata.glyIdsUsed.push(o),s.metadata.toUnicode[o]=a.charCodeAt(h),l.indexOf(o)==-1&&(l.push(o),l.push([parseInt(s.metadata.widthOfGlyph(o),10)])),o=="0")return f.join("");o=o.toString(16),f.push(c[4-o.length],o)}return f.join("")},n=function(a){var s,o,l,c,f,h,p;for(f=`/CIDInit /ProcSet findresource begin
12 dict begin
begincmap
/CIDSystemInfo <<
  /Registry (Adobe)
  /Ordering (UCS)
  /Supplement 0
>> def
/CMapName /Adobe-Identity-UCS def
/CMapType 2 def
1 begincodespacerange
<0000><ffff>
endcodespacerange`,l=[],h=0,p=(o=Object.keys(a).sort(function(g,y){return g-y})).length;h<p;h++)s=o[h],l.length>=100&&(f+=`
`+l.length+` beginbfchar
`+l.join(`
`)+`
endbfchar`,l=[]),a[s]!==void 0&&a[s]!==null&&typeof a[s].toString=="function"&&(c=("0000"+a[s].toString(16)).slice(-4),s=("0000"+(+s).toString(16)).slice(-4),l.push("<"+s+"><"+c+">"));return l.length&&(f+=`
`+l.length+` beginbfchar
`+l.join(`
`)+`
endbfchar
`),f+`endcmap
CMapName currentdict /CMap defineresource pop
end
end`};t.events.push(["putFont",function(a){(function(s){var o=s.font,l=s.out,c=s.newObject,f=s.putStream;if(o.metadata instanceof e.API.TTFFont&&o.encoding==="Identity-H"){for(var h=o.metadata.Unicode.widths,p=o.metadata.subset.encode(o.metadata.glyIdsUsed,1),g="",y=0;y<p.length;y++)g+=String.fromCharCode(p[y]);var m=c();f({data:g,addLength1:!0,objectId:m}),l("endobj");var w=c();f({data:n(o.metadata.toUnicode),addLength1:!0,objectId:w}),l("endobj");var b=c();l("<<"),l("/Type /FontDescriptor"),l("/FontName /"+y0(o.fontName)),l("/FontFile2 "+m+" 0 R"),l("/FontBBox "+e.API.PDFObject.convert(o.metadata.bbox)),l("/Flags "+o.metadata.flags),l("/StemV "+o.metadata.stemV),l("/ItalicAngle "+o.metadata.italicAngle),l("/Ascent "+o.metadata.ascender),l("/Descent "+o.metadata.decender),l("/CapHeight "+o.metadata.capHeight),l(">>"),l("endobj");var E=c();l("<<"),l("/Type /Font"),l("/BaseFont /"+y0(o.fontName)),l("/FontDescriptor "+b+" 0 R"),l("/W "+e.API.PDFObject.convert(h)),l("/CIDToGIDMap /Identity"),l("/DW 1000"),l("/Subtype /CIDFontType2"),l("/CIDSystemInfo"),l("<<"),l("/Supplement 0"),l("/Registry (Adobe)"),l("/Ordering ("+o.encoding+")"),l(">>"),l(">>"),l("endobj"),o.objectNumber=c(),l("<<"),l("/Type /Font"),l("/Subtype /Type0"),l("/ToUnicode "+w+" 0 R"),l("/BaseFont /"+y0(o.fontName)),l("/Encoding /"+o.encoding),l("/DescendantFonts ["+E+" 0 R]"),l(">>"),l("endobj"),o.isAlreadyPutted=!0}})(a)}]),t.events.push(["putFont",function(a){(function(s){var o=s.font,l=s.out,c=s.newObject,f=s.putStream;if(o.metadata instanceof e.API.TTFFont&&o.encoding==="WinAnsiEncoding"){for(var h=o.metadata.rawData,p="",g=0;g<h.length;g++)p+=String.fromCharCode(h[g]);var y=c();f({data:p,addLength1:!0,objectId:y}),l("endobj");var m=c();f({data:n(o.metadata.toUnicode),addLength1:!0,objectId:m}),l("endobj");var w=c();l("<<"),l("/Descent "+o.metadata.decender),l("/CapHeight "+o.metadata.capHeight),l("/StemV "+o.metadata.stemV),l("/Type /FontDescriptor"),l("/FontFile2 "+y+" 0 R"),l("/Flags 96"),l("/FontBBox "+e.API.PDFObject.convert(o.metadata.bbox)),l("/FontName /"+y0(o.fontName)),l("/ItalicAngle "+o.metadata.italicAngle),l("/Ascent "+o.metadata.ascender),l(">>"),l("endobj"),o.objectNumber=c();for(var b=0;b<o.metadata.hmtx.widths.length;b++)o.metadata.hmtx.widths[b]=parseInt(o.metadata.hmtx.widths[b]*(1e3/o.metadata.head.unitsPerEm));l("<</Subtype/TrueType/Type/Font/ToUnicode "+m+" 0 R/BaseFont/"+y0(o.fontName)+"/FontDescriptor "+w+" 0 R/Encoding/"+o.encoding+" /FirstChar 29 /LastChar 255 /Widths "+e.API.PDFObject.convert(o.metadata.hmtx.widths)+">>"),l("endobj"),o.isAlreadyPutted=!0}})(a)}]);var i=function(a){var s,o=a.text||"",l=a.x,c=a.y,f=a.options||{},h=a.mutex||{},p=h.pdfEscape,g=h.activeFontKey,y=h.fonts,m=g,w="",b=0,E="",S=y[m].encoding;if(y[m].encoding!=="Identity-H")return{text:o,x:l,y:c,options:f,mutex:h};for(E=o,m=g,Array.isArray(o)&&(E=o[0]),b=0;b<E.length;b+=1)y[m].metadata.hasOwnProperty("cmap")&&(s=y[m].metadata.cmap.unicode.codeMap[E[b].charCodeAt(0)]),s||E[b].charCodeAt(0)<256&&y[m].metadata.hasOwnProperty("Unicode")?w+=E[b]:w+="";var T="";return parseInt(m.slice(1))<14||S==="WinAnsiEncoding"?T=p(w,m).split("").map(function(D){return D.charCodeAt(0).toString(16)}).join(""):S==="Identity-H"&&(T=r(w,y[m])),h.isHex=!0,{text:T,x:l,y:c,options:f,mutex:h}};t.events.push(["postProcessText",function(a){var s=a.text||"",o=[],l={text:s,x:a.x,y:a.y,options:a.options,mutex:a.mutex};if(Array.isArray(s)){var c=0;for(c=0;c<s.length;c+=1)Array.isArray(s[c])&&s[c].length===3?o.push([i(Object.assign({},l,{text:s[c][0]})).text,s[c][1],s[c][2]]):o.push(i(Object.assign({},l,{text:s[c]})).text);a.text=o}else a.text=i(Object.assign({},l,{text:s})).text}])})(jt),(function(e){var t=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};e.existsFileInVFS=function(r){return t.call(this),this.internal.vFS[r]!==void 0},e.addFileToVFS=function(r,n){return t.call(this),this.internal.vFS[r]=n,this},e.getFileFromVFS=function(r){return t.call(this),this.internal.vFS[r]!==void 0?this.internal.vFS[r]:null}})(jt.API),(function(e){e.__bidiEngine__=e.prototype.__bidiEngine__=function(n){var i,a,s,o,l,c,f,h=t,p=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],g=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],y={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},m={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},w=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],b=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),E=!1,S=0;this.__bidiEngine__={};var T=function(I){var Q=I.charCodeAt(),W=Q>>8,J=m[W];return J!==void 0?h[256*J+(255&Q)]:W===252||W===253?"AL":b.test(W)?"L":W===8?"R":"N"},D=function(I){for(var Q,W=0;W<I.length;W++){if((Q=T(I.charAt(W)))==="L")return!1;if(Q==="R")return!0}return!1},k=function(I,Q,W,J){var fe,G,se,ge,ye=Q[J];switch(ye){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":E=!1;break;case"N":case"AN":break;case"EN":E&&(ye="AN");break;case"AL":E=!0,ye="R";break;case"WS":case"BN":ye="N";break;case"CS":J<1||J+1>=Q.length||(fe=W[J-1])!=="EN"&&fe!=="AN"||(G=Q[J+1])!=="EN"&&G!=="AN"?ye="N":E&&(G="AN"),ye=G===fe?G:"N";break;case"ES":ye=(fe=J>0?W[J-1]:"B")==="EN"&&J+1<Q.length&&Q[J+1]==="EN"?"EN":"N";break;case"ET":if(J>0&&W[J-1]==="EN"){ye="EN";break}if(E){ye="N";break}for(se=J+1,ge=Q.length;se<ge&&Q[se]==="ET";)se++;ye=se<ge&&Q[se]==="EN"?"EN":"N";break;case"NSM":if(s&&!o){for(ge=Q.length,se=J+1;se<ge&&Q[se]==="NSM";)se++;if(se<ge){var _e=I[J],Z=_e>=1425&&_e<=2303||_e===64286;if(fe=Q[se],Z&&(fe==="R"||fe==="AL")){ye="R";break}}}ye=J<1||(fe=Q[J-1])==="B"?"N":W[J-1];break;case"B":E=!1,i=!0,ye=S;break;case"S":a=!0,ye="N"}return ye},P=function(I,Q,W){var J=I.split("");return W&&R(J,W,{hiLevel:S}),J.reverse(),Q&&Q.reverse(),J.join("")},R=function(I,Q,W){var J,fe,G,se,ge,ye=-1,_e=I.length,Z=0,L=[],j=S?g:p,K=[];for(E=!1,i=!1,a=!1,fe=0;fe<_e;fe++)K[fe]=T(I[fe]);for(G=0;G<_e;G++){if(ge=Z,L[G]=k(I,K,L,G),J=240&(Z=j[ge][y[L[G]]]),Z&=15,Q[G]=se=j[Z][5],J>0)if(J===16){for(fe=ye;fe<G;fe++)Q[fe]=1;ye=-1}else ye=-1;if(j[Z][6])ye===-1&&(ye=G);else if(ye>-1){for(fe=ye;fe<G;fe++)Q[fe]=se;ye=-1}K[G]==="B"&&(Q[G]=0),W.hiLevel|=se}a&&(function(q,re,he){for(var Be=0;Be<he;Be++)if(q[Be]==="S"){re[Be]=S;for(var ae=Be-1;ae>=0&&q[ae]==="WS";ae--)re[ae]=S}})(K,Q,_e)},O=function(I,Q,W,J,fe){if(!(fe.hiLevel<I)){if(I===1&&S===1&&!i)return Q.reverse(),void(W&&W.reverse());for(var G,se,ge,ye,_e=Q.length,Z=0;Z<_e;){if(J[Z]>=I){for(ge=Z+1;ge<_e&&J[ge]>=I;)ge++;for(ye=Z,se=ge-1;ye<se;ye++,se--)G=Q[ye],Q[ye]=Q[se],Q[se]=G,W&&(G=W[ye],W[ye]=W[se],W[se]=G);Z=ge}Z++}}},V=function(I,Q,W){var J=I.split(""),fe={hiLevel:S};return W||(W=[]),R(J,W,fe),(function(G,se,ge){if(ge.hiLevel!==0&&f)for(var ye,_e=0;_e<G.length;_e++)se[_e]===1&&(ye=w.indexOf(G[_e]))>=0&&(G[_e]=w[ye+1])})(J,W,fe),O(2,J,Q,W,fe),O(1,J,Q,W,fe),J.join("")};return this.__bidiEngine__.doBidiReorder=function(I,Q,W){if((function(fe,G){if(G)for(var se=0;se<fe.length;se++)G[se]=se;o===void 0&&(o=D(fe)),c===void 0&&(c=D(fe))})(I,Q),s||!l||c)if(s&&l&&o^c)S=o?1:0,I=P(I,Q,W);else if(!s&&l&&c)S=o?1:0,I=V(I,Q,W),I=P(I,Q);else if(!s||o||l||c){if(s&&!l&&o^c)I=P(I,Q),o?(S=0,I=V(I,Q,W)):(S=1,I=V(I,Q,W),I=P(I,Q));else if(s&&o&&!l&&c)S=1,I=V(I,Q,W),I=P(I,Q);else if(!s&&!l&&o^c){var J=f;o?(S=1,I=V(I,Q,W),S=0,f=!1,I=V(I,Q,W),f=J):(S=0,I=V(I,Q,W),I=P(I,Q),S=1,f=!1,I=V(I,Q,W),f=J,I=P(I,Q))}}else S=0,I=V(I,Q,W);else S=o?1:0,I=V(I,Q,W);return I},this.__bidiEngine__.setOptions=function(I){I&&(s=I.isInputVisual,l=I.isOutputVisual,o=I.isInputRtl,c=I.isOutputRtl,f=I.isSymmetricSwapping)},this.__bidiEngine__.setOptions(n),this.__bidiEngine__};var t=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],r=new e.__bidiEngine__({isInputVisual:!0});e.API.events.push(["postProcessText",function(n){var i=n.text;n.x,n.y;var a=n.options||{};n.mutex,a.lang;var s=[];if(a.isInputVisual=typeof a.isInputVisual!="boolean"||a.isInputVisual,r.setOptions(a),Object.prototype.toString.call(i)==="[object Array]"){var o=0;for(s=[],o=0;o<i.length;o+=1)Object.prototype.toString.call(i[o])==="[object Array]"?s.push([r.doBidiReorder(i[o][0]),i[o][1],i[o][2]]):s.push([r.doBidiReorder(i[o])]);n.text=s}else n.text=r.doBidiReorder(i);r.setOptions({isInputVisual:!0})}])})(jt),jt.API.TTFFont=(function(){function e(t){var r;if(this.rawData=t,r=this.contents=new mf(t),this.contents.pos=4,r.readString(4)==="ttcf")throw new Error("TTCF not supported.");r.pos=0,this.parse(),this.subset=new hwe(this),this.registerTTF()}return e.open=function(t){return new e(t)},e.prototype.parse=function(){return this.directory=new Z2e(this.contents),this.head=new twe(this),this.name=new swe(this),this.cmap=new ez(this),this.toUnicode={},this.hhea=new rwe(this),this.maxp=new owe(this),this.hmtx=new Awe(this),this.post=new iwe(this),this.os2=new nwe(this),this.loca=new fwe(this),this.glyf=new lwe(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},e.prototype.registerTTF=function(){var t,r,n,i,a;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=(function(){var s,o,l,c;for(c=[],s=0,o=(l=this.bbox).length;s<o;s++)t=l[s],c.push(Math.round(t*this.scaleFactor));return c}).call(this),this.stemV=0,this.post.exists?(n=255&(i=this.post.italic_angle),32768&(r=i>>16)&&(r=-(1+(65535^r))),this.italicAngle=+(r+"."+n)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(a=this.familyClass)===1||a===2||a===3||a===4||a===5||a===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},e.prototype.characterToGlyph=function(t){var r;return((r=this.cmap.unicode)!=null?r.codeMap[t]:void 0)||0},e.prototype.widthOfGlyph=function(t){var r;return r=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(t).advance*r},e.prototype.widthOfString=function(t,r,n){var i,a,s,o;for(s=0,a=0,o=(t=""+t).length;0<=o?a<o:a>o;a=0<=o?++a:--a)i=t.charCodeAt(a),s+=this.widthOfGlyph(this.characterToGlyph(i))+n*(1e3/r)||0;return s*(r/1e3)},e.prototype.lineHeight=function(t,r){var n;return r==null&&(r=!1),n=r?this.lineGap:0,(this.ascender+n-this.decender)/1e3*t},e})();var cl,mf=(function(){function e(t){this.data=t??[],this.pos=0,this.length=this.data.length}return e.prototype.readByte=function(){return this.data[this.pos++]},e.prototype.writeByte=function(t){return this.data[this.pos++]=t},e.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},e.prototype.writeUInt32=function(t){return this.writeByte(t>>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t)},e.prototype.readInt32=function(){var t;return(t=this.readUInt32())>=2147483648?t-4294967296:t},e.prototype.writeInt32=function(t){return t<0&&(t+=4294967296),this.writeUInt32(t)},e.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},e.prototype.writeUInt16=function(t){return this.writeByte(t>>8&255),this.writeByte(255&t)},e.prototype.readInt16=function(){var t;return(t=this.readUInt16())>=32768?t-65536:t},e.prototype.writeInt16=function(t){return t<0&&(t+=65536),this.writeUInt16(t)},e.prototype.readString=function(t){var r,n;for(n=[],r=0;0<=t?r<t:r>t;r=0<=t?++r:--r)n[r]=String.fromCharCode(this.readByte());return n.join("")},e.prototype.writeString=function(t){var r,n,i;for(i=[],r=0,n=t.length;0<=n?r<n:r>n;r=0<=n?++r:--r)i.push(this.writeByte(t.charCodeAt(r)));return i},e.prototype.readShort=function(){return this.readInt16()},e.prototype.writeShort=function(t){return this.writeInt16(t)},e.prototype.readLongLong=function(){var t,r,n,i,a,s,o,l;return t=this.readByte(),r=this.readByte(),n=this.readByte(),i=this.readByte(),a=this.readByte(),s=this.readByte(),o=this.readByte(),l=this.readByte(),128&t?-1*(72057594037927940*(255^t)+281474976710656*(255^r)+1099511627776*(255^n)+4294967296*(255^i)+16777216*(255^a)+65536*(255^s)+256*(255^o)+(255^l)+1):72057594037927940*t+281474976710656*r+1099511627776*n+4294967296*i+16777216*a+65536*s+256*o+l},e.prototype.writeLongLong=function(t){var r,n;return r=Math.floor(t/4294967296),n=4294967295&t,this.writeByte(r>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r),this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n)},e.prototype.readInt=function(){return this.readInt32()},e.prototype.writeInt=function(t){return this.writeInt32(t)},e.prototype.read=function(t){var r,n;for(r=[],n=0;0<=t?n<t:n>t;n=0<=t?++n:--n)r.push(this.readByte());return r},e.prototype.write=function(t){var r,n,i,a;for(a=[],n=0,i=t.length;n<i;n++)r=t[n],a.push(this.writeByte(r));return a},e})(),Z2e=(function(){var e;function t(r){var n,i,a;for(this.scalarType=r.readInt(),this.tableCount=r.readShort(),this.searchRange=r.readShort(),this.entrySelector=r.readShort(),this.rangeShift=r.readShort(),this.tables={},i=0,a=this.tableCount;0<=a?i<a:i>a;i=0<=a?++i:--i)n={tag:r.readString(4),checksum:r.readInt(),offset:r.readInt(),length:r.readInt()},this.tables[n.tag]=n}return t.prototype.encode=function(r){var n,i,a,s,o,l,c,f,h,p,g,y,m;for(m in g=Object.keys(r).length,l=Math.log(2),h=16*Math.floor(Math.log(g)/l),s=Math.floor(h/l),f=16*g-h,(i=new mf).writeInt(this.scalarType),i.writeShort(g),i.writeShort(h),i.writeShort(s),i.writeShort(f),a=16*g,c=i.pos+a,o=null,y=[],r)for(p=r[m],i.writeString(m),i.writeInt(e(p)),i.writeInt(c),i.writeInt(p.length),y=y.concat(p),m==="head"&&(o=c),c+=p.length;c%4;)y.push(0),c++;return i.write(y),n=2981146554-e(i.data),i.pos=o+8,i.writeUInt32(n),i.data},e=function(r){var n,i,a,s;for(r=tz.call(r);r.length%4;)r.push(0);for(a=new mf(r),i=0,n=0,s=r.length;n<s;n=n+=4)i+=a.readUInt32();return 4294967295&i},t})(),ewe={}.hasOwnProperty,$l=function(e,t){for(var r in t)ewe.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e};cl=(function(){function e(t){var r;this.file=t,r=this.file.directory.tables[this.tag],this.exists=!!r,r&&(this.offset=r.offset,this.length=r.length,this.parse(this.file.contents))}return e.prototype.parse=function(){},e.prototype.encode=function(){},e.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},e})();var twe=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return $l(e,cl),e.prototype.tag="head",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.revision=t.readInt(),this.checkSumAdjustment=t.readInt(),this.magicNumber=t.readInt(),this.flags=t.readShort(),this.unitsPerEm=t.readShort(),this.created=t.readLongLong(),this.modified=t.readLongLong(),this.xMin=t.readShort(),this.yMin=t.readShort(),this.xMax=t.readShort(),this.yMax=t.readShort(),this.macStyle=t.readShort(),this.lowestRecPPEM=t.readShort(),this.fontDirectionHint=t.readShort(),this.indexToLocFormat=t.readShort(),this.glyphDataFormat=t.readShort()},e.prototype.encode=function(t){var r;return(r=new mf).writeInt(this.version),r.writeInt(this.revision),r.writeInt(this.checkSumAdjustment),r.writeInt(this.magicNumber),r.writeShort(this.flags),r.writeShort(this.unitsPerEm),r.writeLongLong(this.created),r.writeLongLong(this.modified),r.writeShort(this.xMin),r.writeShort(this.yMin),r.writeShort(this.xMax),r.writeShort(this.yMax),r.writeShort(this.macStyle),r.writeShort(this.lowestRecPPEM),r.writeShort(this.fontDirectionHint),r.writeShort(t),r.writeShort(this.glyphDataFormat),r.data},e})(),eM=(function(){function e(t,r){var n,i,a,s,o,l,c,f,h,p,g,y,m,w,b,E,S;switch(this.platformID=t.readUInt16(),this.encodingID=t.readShort(),this.offset=r+t.readInt(),h=t.pos,t.pos=this.offset,this.format=t.readUInt16(),this.length=t.readUInt16(),this.language=t.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(l=0;l<256;++l)this.codeMap[l]=t.readByte();break;case 4:for(g=t.readUInt16(),p=g/2,t.pos+=6,a=(function(){var T,D;for(D=[],l=T=0;0<=p?T<p:T>p;l=0<=p?++T:--T)D.push(t.readUInt16());return D})(),t.pos+=2,m=(function(){var T,D;for(D=[],l=T=0;0<=p?T<p:T>p;l=0<=p?++T:--T)D.push(t.readUInt16());return D})(),c=(function(){var T,D;for(D=[],l=T=0;0<=p?T<p:T>p;l=0<=p?++T:--T)D.push(t.readUInt16());return D})(),f=(function(){var T,D;for(D=[],l=T=0;0<=p?T<p:T>p;l=0<=p?++T:--T)D.push(t.readUInt16());return D})(),i=(this.length-t.pos+this.offset)/2,o=(function(){var T,D;for(D=[],l=T=0;0<=i?T<i:T>i;l=0<=i?++T:--T)D.push(t.readUInt16());return D})(),l=b=0,S=a.length;b<S;l=++b)for(w=a[l],n=E=y=m[l];y<=w?E<=w:E>=w;n=y<=w?++E:--E)f[l]===0?s=n+c[l]:(s=o[f[l]/2+(n-y)-(p-l)]||0)!==0&&(s+=c[l]),this.codeMap[n]=65535&s}t.pos=h}return e.encode=function(t,r){var n,i,a,s,o,l,c,f,h,p,g,y,m,w,b,E,S,T,D,k,P,R,O,V,I,Q,W,J,fe,G,se,ge,ye,_e,Z,L,j,K,q,re,he,Be,ae,be,ke,Fe;switch(J=new mf,s=Object.keys(t).sort(function(st,Ge){return st-Ge}),r){case"macroman":for(m=0,w=(function(){var st=[];for(y=0;y<256;++y)st.push(0);return st})(),E={0:0},a={},fe=0,ye=s.length;fe<ye;fe++)E[ae=t[i=s[fe]]]==null&&(E[ae]=++m),a[i]={old:t[i],new:E[t[i]]},w[i]=E[t[i]];return J.writeUInt16(1),J.writeUInt16(0),J.writeUInt32(12),J.writeUInt16(0),J.writeUInt16(262),J.writeUInt16(0),J.write(w),{charMap:a,subtable:J.data,maxGlyphID:m+1};case"unicode":for(Q=[],h=[],S=0,E={},n={},b=c=null,G=0,_e=s.length;G<_e;G++)E[D=t[i=s[G]]]==null&&(E[D]=++S),n[i]={old:D,new:E[D]},o=E[D]-i,b!=null&&o===c||(b&&h.push(b),Q.push(i),c=o),b=i;for(b&&h.push(b),h.push(65535),Q.push(65535),V=2*(O=Q.length),R=2*Math.pow(Math.log(O)/Math.LN2,2),p=Math.log(R/2)/Math.LN2,P=2*O-R,l=[],k=[],g=[],y=se=0,Z=Q.length;se<Z;y=++se){if(I=Q[y],f=h[y],I===65535){l.push(0),k.push(0);break}if(I-(W=n[I].new)>=32768)for(l.push(0),k.push(2*(g.length+O-y)),i=ge=I;I<=f?ge<=f:ge>=f;i=I<=f?++ge:--ge)g.push(n[i].new);else l.push(W-I),k.push(0)}for(J.writeUInt16(3),J.writeUInt16(1),J.writeUInt32(12),J.writeUInt16(4),J.writeUInt16(16+8*O+2*g.length),J.writeUInt16(0),J.writeUInt16(V),J.writeUInt16(R),J.writeUInt16(p),J.writeUInt16(P),he=0,L=h.length;he<L;he++)i=h[he],J.writeUInt16(i);for(J.writeUInt16(0),Be=0,j=Q.length;Be<j;Be++)i=Q[Be],J.writeUInt16(i);for(be=0,K=l.length;be<K;be++)o=l[be],J.writeUInt16(o);for(ke=0,q=k.length;ke<q;ke++)T=k[ke],J.writeUInt16(T);for(Fe=0,re=g.length;Fe<re;Fe++)m=g[Fe],J.writeUInt16(m);return{charMap:n,subtable:J.data,maxGlyphID:S+1}}},e})(),ez=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return $l(e,cl),e.prototype.tag="cmap",e.prototype.parse=function(t){var r,n,i;for(t.pos=this.offset,this.version=t.readUInt16(),i=t.readUInt16(),this.tables=[],this.unicode=null,n=0;0<=i?n<i:n>i;n=0<=i?++n:--n)r=new eM(t,this.offset),this.tables.push(r),r.isUnicode&&this.unicode==null&&(this.unicode=r);return!0},e.encode=function(t,r){var n,i;return r==null&&(r="macroman"),n=eM.encode(t,r),(i=new mf).writeUInt16(0),i.writeUInt16(1),n.table=i.data.concat(n.subtable),n},e})(),rwe=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return $l(e,cl),e.prototype.tag="hhea",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.ascender=t.readShort(),this.decender=t.readShort(),this.lineGap=t.readShort(),this.advanceWidthMax=t.readShort(),this.minLeftSideBearing=t.readShort(),this.minRightSideBearing=t.readShort(),this.xMaxExtent=t.readShort(),this.caretSlopeRise=t.readShort(),this.caretSlopeRun=t.readShort(),this.caretOffset=t.readShort(),t.pos+=8,this.metricDataFormat=t.readShort(),this.numberOfMetrics=t.readUInt16()},e})(),nwe=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return $l(e,cl),e.prototype.tag="OS/2",e.prototype.parse=function(t){if(t.pos=this.offset,this.version=t.readUInt16(),this.averageCharWidth=t.readShort(),this.weightClass=t.readUInt16(),this.widthClass=t.readUInt16(),this.type=t.readShort(),this.ySubscriptXSize=t.readShort(),this.ySubscriptYSize=t.readShort(),this.ySubscriptXOffset=t.readShort(),this.ySubscriptYOffset=t.readShort(),this.ySuperscriptXSize=t.readShort(),this.ySuperscriptYSize=t.readShort(),this.ySuperscriptXOffset=t.readShort(),this.ySuperscriptYOffset=t.readShort(),this.yStrikeoutSize=t.readShort(),this.yStrikeoutPosition=t.readShort(),this.familyClass=t.readShort(),this.panose=(function(){var r,n;for(n=[],r=0;r<10;++r)n.push(t.readByte());return n})(),this.charRange=(function(){var r,n;for(n=[],r=0;r<4;++r)n.push(t.readInt());return n})(),this.vendorID=t.readString(4),this.selection=t.readShort(),this.firstCharIndex=t.readShort(),this.lastCharIndex=t.readShort(),this.version>0&&(this.ascent=t.readShort(),this.descent=t.readShort(),this.lineGap=t.readShort(),this.winAscent=t.readShort(),this.winDescent=t.readShort(),this.codePageRange=(function(){var r,n;for(n=[],r=0;r<2;r=++r)n.push(t.readInt());return n})(),this.version>1))return this.xHeight=t.readShort(),this.capHeight=t.readShort(),this.defaultChar=t.readShort(),this.breakChar=t.readShort(),this.maxContext=t.readShort()},e})(),iwe=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return $l(e,cl),e.prototype.tag="post",e.prototype.parse=function(t){var r,n,i;switch(t.pos=this.offset,this.format=t.readInt(),this.italicAngle=t.readInt(),this.underlinePosition=t.readShort(),this.underlineThickness=t.readShort(),this.isFixedPitch=t.readInt(),this.minMemType42=t.readInt(),this.maxMemType42=t.readInt(),this.minMemType1=t.readInt(),this.maxMemType1=t.readInt(),this.format){case 65536:case 196608:break;case 131072:var a;for(n=t.readUInt16(),this.glyphNameIndex=[],a=0;0<=n?a<n:a>n;a=0<=n?++a:--a)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],i=[];t.pos<this.offset+this.length;)r=t.readByte(),i.push(this.names.push(t.readString(r)));return i;case 151552:return n=t.readUInt16(),this.offsets=t.read(n);case 262144:return this.map=(function(){var s,o,l;for(l=[],a=s=0,o=this.file.maxp.numGlyphs;0<=o?s<o:s>o;a=0<=o?++s:--s)l.push(t.readUInt32());return l}).call(this)}},e})(),awe=function(e,t){this.raw=e,this.length=e.length,this.platformID=t.platformID,this.encodingID=t.encodingID,this.languageID=t.languageID},swe=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return $l(e,cl),e.prototype.tag="name",e.prototype.parse=function(t){var r,n,i,a,s,o,l,c,f,h,p;for(t.pos=this.offset,t.readShort(),r=t.readShort(),o=t.readShort(),n=[],a=0;0<=r?a<r:a>r;a=0<=r?++a:--a)n.push({platformID:t.readShort(),encodingID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:this.offset+o+t.readShort()});for(l={},a=f=0,h=n.length;f<h;a=++f)i=n[a],t.pos=i.offset,c=t.readString(i.length),s=new awe(c,i),l[p=i.nameID]==null&&(l[p]=[]),l[i.nameID].push(s);this.strings=l,this.copyright=l[0],this.fontFamily=l[1],this.fontSubfamily=l[2],this.uniqueSubfamily=l[3],this.fontName=l[4],this.version=l[5];try{this.postscriptName=l[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=l[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=l[7],this.manufacturer=l[8],this.designer=l[9],this.description=l[10],this.vendorUrl=l[11],this.designerUrl=l[12],this.license=l[13],this.licenseUrl=l[14],this.preferredFamily=l[15],this.preferredSubfamily=l[17],this.compatibleFull=l[18],this.sampleText=l[19]},e})(),owe=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return $l(e,cl),e.prototype.tag="maxp",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.numGlyphs=t.readUInt16(),this.maxPoints=t.readUInt16(),this.maxContours=t.readUInt16(),this.maxCompositePoints=t.readUInt16(),this.maxComponentContours=t.readUInt16(),this.maxZones=t.readUInt16(),this.maxTwilightPoints=t.readUInt16(),this.maxStorage=t.readUInt16(),this.maxFunctionDefs=t.readUInt16(),this.maxInstructionDefs=t.readUInt16(),this.maxStackElements=t.readUInt16(),this.maxSizeOfInstructions=t.readUInt16(),this.maxComponentElements=t.readUInt16(),this.maxComponentDepth=t.readUInt16()},e})(),Awe=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return $l(e,cl),e.prototype.tag="hmtx",e.prototype.parse=function(t){var r,n,i,a,s,o,l;for(t.pos=this.offset,this.metrics=[],r=0,o=this.file.hhea.numberOfMetrics;0<=o?r<o:r>o;r=0<=o?++r:--r)this.metrics.push({advance:t.readUInt16(),lsb:t.readInt16()});for(i=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=(function(){var c,f;for(f=[],r=c=0;0<=i?c<i:c>i;r=0<=i?++c:--c)f.push(t.readInt16());return f})(),this.widths=(function(){var c,f,h,p;for(p=[],c=0,f=(h=this.metrics).length;c<f;c++)a=h[c],p.push(a.advance);return p}).call(this),n=this.widths[this.widths.length-1],l=[],r=s=0;0<=i?s<i:s>i;r=0<=i?++s:--s)l.push(this.widths.push(n));return l},e.prototype.forGlyph=function(t){return t in this.metrics?this.metrics[t]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[t-this.metrics.length]}},e})(),tz=[].slice,lwe=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return $l(e,cl),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(t){var r,n,i,a,s,o,l,c,f,h;return t in this.cache?this.cache[t]:(a=this.file.loca,r=this.file.contents,n=a.indexOf(t),(i=a.lengthOf(t))===0?this.cache[t]=null:(r.pos=this.offset+n,s=(o=new mf(r.read(i))).readShort(),c=o.readShort(),h=o.readShort(),l=o.readShort(),f=o.readShort(),this.cache[t]=s===-1?new uwe(o,c,h,l,f):new cwe(o,s,c,h,l,f),this.cache[t]))},e.prototype.encode=function(t,r,n){var i,a,s,o,l;for(s=[],a=[],o=0,l=r.length;o<l;o++)i=t[r[o]],a.push(s.length),i&&(s=s.concat(i.encode(n)));return a.push(s.length),{table:s,offsets:a}},e})(),cwe=(function(){function e(t,r,n,i,a,s){this.raw=t,this.numberOfContours=r,this.xMin=n,this.yMin=i,this.xMax=a,this.yMax=s,this.compound=!1}return e.prototype.encode=function(){return this.raw.data},e})(),uwe=(function(){function e(t,r,n,i,a){var s,o;for(this.raw=t,this.xMin=r,this.yMin=n,this.xMax=i,this.yMax=a,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],s=this.raw;o=s.readShort(),this.glyphOffsets.push(s.pos),this.glyphIDs.push(s.readUInt16()),32&o;)s.pos+=1&o?4:2,128&o?s.pos+=8:64&o?s.pos+=4:8&o&&(s.pos+=2)}return e.prototype.encode=function(){var t,r,n;for(r=new mf(tz.call(this.raw.data)),t=0,n=this.glyphIDs.length;t<n;++t)r.pos=this.glyphOffsets[t];return r.data},e})(),fwe=(function(){function e(){return e.__super__.constructor.apply(this,arguments)}return $l(e,cl),e.prototype.tag="loca",e.prototype.parse=function(t){var r,n;return t.pos=this.offset,r=this.file.head.indexToLocFormat,this.offsets=r===0?(function(){var i,a;for(a=[],n=0,i=this.length;n<i;n+=2)a.push(2*t.readUInt16());return a}).call(this):(function(){var i,a;for(a=[],n=0,i=this.length;n<i;n+=4)a.push(t.readUInt32());return a}).call(this)},e.prototype.indexOf=function(t){return this.offsets[t]},e.prototype.lengthOf=function(t){return this.offsets[t+1]-this.offsets[t]},e.prototype.encode=function(t,r){for(var n=new Uint32Array(this.offsets.length),i=0,a=0,s=0;s<n.length;++s)if(n[s]=i,a<r.length&&r[a]==s){++a,n[s]=i;var o=this.offsets[s],l=this.offsets[s+1]-o;l>0&&(i+=l)}for(var c=new Array(4*n.length),f=0;f<n.length;++f)c[4*f+3]=255&n[f],c[4*f+2]=(65280&n[f])>>8,c[4*f+1]=(16711680&n[f])>>16,c[4*f]=(4278190080&n[f])>>24;return c},e})(),hwe=(function(){function e(t){this.font=t,this.subset={},this.unicodes={},this.next=33}return e.prototype.generateCmap=function(){var t,r,n,i,a;for(r in i=this.font.cmap.tables[0].codeMap,t={},a=this.subset)n=a[r],t[r]=i[n];return t},e.prototype.glyphsFor=function(t){var r,n,i,a,s,o,l;for(i={},s=0,o=t.length;s<o;s++)i[a=t[s]]=this.font.glyf.glyphFor(a);for(a in r=[],i)(n=i[a])!=null&&n.compound&&r.push.apply(r,n.glyphIDs);if(r.length>0)for(a in l=this.glyphsFor(r))n=l[a],i[a]=n;return i},e.prototype.encode=function(t,r){var n,i,a,s,o,l,c,f,h,p,g,y,m,w,b;for(i in n=ez.encode(this.generateCmap(),"unicode"),s=this.glyphsFor(t),g={0:0},b=n.charMap)g[(l=b[i]).old]=l.new;for(y in p=n.maxGlyphID,s)y in g||(g[y]=p++);return f=(function(E){var S,T;for(S in T={},E)T[E[S]]=S;return T})(g),h=Object.keys(f).sort(function(E,S){return E-S}),m=(function(){var E,S,T;for(T=[],E=0,S=h.length;E<S;E++)o=h[E],T.push(f[o]);return T})(),a=this.font.glyf.encode(s,m,g),c=this.font.loca.encode(a.offsets,m),w={cmap:this.font.cmap.raw(),glyf:a.table,loca:c,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(r)},this.font.os2.exists&&(w["OS/2"]=this.font.os2.raw()),this.font.directory.encode(w)},e})();jt.API.PDFObject=(function(){var e;function t(){}return e=function(r,n){return(Array(n+1).join("0")+r).slice(-n)},t.convert=function(r){var n,i,a,s;if(Array.isArray(r))return"["+(function(){var o,l,c;for(c=[],o=0,l=r.length;o<l;o++)n=r[o],c.push(t.convert(n));return c})().join(" ")+"]";if(typeof r=="string")return"/"+r;if(r?.isString)return"("+r+")";if(r instanceof Date)return"(D:"+e(r.getUTCFullYear(),4)+e(r.getUTCMonth(),2)+e(r.getUTCDate(),2)+e(r.getUTCHours(),2)+e(r.getUTCMinutes(),2)+e(r.getUTCSeconds(),2)+"Z)";if({}.toString.call(r)==="[object Object]"){for(i in a=["<<"],r)s=r[i],a.push("/"+i+" "+t.convert(s));return a.push(">>"),a.join(`
`)}return""+r},t})();/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */var lw={};lw.version="0.18.5";var rz=1252,dwe=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],nz=function(e){dwe.indexOf(e)!=-1&&(rz=e)};function gwe(){nz(1252)}var F1=function(e){nz(e)};function pwe(){F1(1200),gwe()}var gy=function(t){return String.fromCharCode(t)},tM=function(t){return String.fromCharCode(t)},cw,rf="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function T1(e){for(var t="",r=0,n=0,i=0,a=0,s=0,o=0,l=0,c=0;c<e.length;)r=e.charCodeAt(c++),a=r>>2,n=e.charCodeAt(c++),s=(r&3)<<4|n>>4,i=e.charCodeAt(c++),o=(n&15)<<2|i>>6,l=i&63,isNaN(n)?o=l=64:isNaN(i)&&(l=64),t+=rf.charAt(a)+rf.charAt(s)+rf.charAt(o)+rf.charAt(l);return t}function Xc(e){var t="",r=0,n=0,i=0,a=0,s=0,o=0,l=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var c=0;c<e.length;)a=rf.indexOf(e.charAt(c++)),s=rf.indexOf(e.charAt(c++)),r=a<<2|s>>4,t+=String.fromCharCode(r),o=rf.indexOf(e.charAt(c++)),n=(s&15)<<4|o>>2,o!==64&&(t+=String.fromCharCode(n)),l=rf.indexOf(e.charAt(c++)),i=(o&3)<<6|l,l!==64&&(t+=String.fromCharCode(i));return t}var en=(function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node})(),ou=(function(){if(typeof Buffer<"u"){var e=!Buffer.from;if(!e)try{Buffer.from("foo","utf8")}catch{e=!0}return e?function(t,r){return r?new Buffer(t,r):new Buffer(t)}:Buffer.from.bind(Buffer)}return function(){}})();function zh(e){return en?Buffer.alloc?Buffer.alloc(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}function rM(e){return en?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}var tl=function(t){return en?ou(t,"binary"):t.split("").map(function(r){return r.charCodeAt(0)&255})};function kx(e){if(typeof ArrayBuffer>"u")return tl(e);for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),n=0;n!=e.length;++n)r[n]=e.charCodeAt(n)&255;return t}function mv(e){if(Array.isArray(e))return e.map(function(n){return String.fromCharCode(n)}).join("");for(var t=[],r=0;r<e.length;++r)t[r]=String.fromCharCode(e[r]);return t.join("")}function vwe(e){if(typeof Uint8Array>"u")throw new Error("Unsupported");return new Uint8Array(e)}var za=en?function(e){return Buffer.concat(e.map(function(t){return Buffer.isBuffer(t)?t:ou(t)}))}:function(e){if(typeof Uint8Array<"u"){var t=0,r=0;for(t=0;t<e.length;++t)r+=e[t].length;var n=new Uint8Array(r),i=0;for(t=0,r=0;t<e.length;r+=i,++t)if(i=e[t].length,e[t]instanceof Uint8Array)n.set(e[t],r);else{if(typeof e[t]=="string")throw"wtf";n.set(new Uint8Array(e[t]),r)}return n}return[].concat.apply([],e.map(function(a){return Array.isArray(a)?a:[].slice.call(a)}))};function mwe(e){for(var t=[],r=0,n=e.length+250,i=zh(e.length+255),a=0;a<e.length;++a){var s=e.charCodeAt(a);if(s<128)i[r++]=s;else if(s<2048)i[r++]=192|s>>6&31,i[r++]=128|s&63;else if(s>=55296&&s<57344){s=(s&1023)+64;var o=e.charCodeAt(++a)&1023;i[r++]=240|s>>8&7,i[r++]=128|s>>2&63,i[r++]=128|o>>6&15|(s&3)<<4,i[r++]=128|o&63}else i[r++]=224|s>>12&15,i[r++]=128|s>>6&63,i[r++]=128|s&63;r>n&&(t.push(i.slice(0,r)),r=0,i=zh(65535),n=65530)}return t.push(i.slice(0,r)),za(t)}var Jp=/\u0000/g,py=/[\u0001-\u0006]/g;function M0(e){for(var t="",r=e.length-1;r>=0;)t+=e.charAt(r--);return t}function rl(e,t){var r=""+e;return r.length>=t?r:bi("0",t-r.length)+r}function oF(e,t){var r=""+e;return r.length>=t?r:bi(" ",t-r.length)+r}function uw(e,t){var r=""+e;return r.length>=t?r:r+bi(" ",t-r.length)}function ywe(e,t){var r=""+Math.round(e);return r.length>=t?r:bi("0",t-r.length)+r}function wwe(e,t){var r=""+e;return r.length>=t?r:bi("0",t-r.length)+r}var nM=Math.pow(2,32);function c0(e,t){if(e>nM||e<-nM)return ywe(e,t);var r=Math.round(e);return wwe(r,t)}function fw(e,t){return t=t||0,e.length>=7+t&&(e.charCodeAt(t)|32)===103&&(e.charCodeAt(t+1)|32)===101&&(e.charCodeAt(t+2)|32)===110&&(e.charCodeAt(t+3)|32)===101&&(e.charCodeAt(t+4)|32)===114&&(e.charCodeAt(t+5)|32)===97&&(e.charCodeAt(t+6)|32)===108}var iM=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],kC=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];function xwe(e){return e||(e={}),e[0]="General",e[1]="0",e[2]="0.00",e[3]="#,##0",e[4]="#,##0.00",e[9]="0%",e[10]="0.00%",e[11]="0.00E+00",e[12]="# ?/?",e[13]="# ??/??",e[14]="m/d/yy",e[15]="d-mmm-yy",e[16]="d-mmm",e[17]="mmm-yy",e[18]="h:mm AM/PM",e[19]="h:mm:ss AM/PM",e[20]="h:mm",e[21]="h:mm:ss",e[22]="m/d/yy h:mm",e[37]="#,##0 ;(#,##0)",e[38]="#,##0 ;[Red](#,##0)",e[39]="#,##0.00;(#,##0.00)",e[40]="#,##0.00;[Red](#,##0.00)",e[45]="mm:ss",e[46]="[h]:mm:ss",e[47]="mmss.0",e[48]="##0.0E+0",e[49]="@",e[56]='"上午/下午 "hh"時"mm"分"ss"秒 "',e}var Ei={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "'},aM={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},bwe={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function hw(e,t,r){for(var n=e<0?-1:1,i=e*n,a=0,s=1,o=0,l=1,c=0,f=0,h=Math.floor(i);c<t&&(h=Math.floor(i),o=h*s+a,f=h*c+l,!(i-h<5e-8));)i=1/(i-h),a=s,s=o,l=c,c=f;if(f>t&&(c>t?(f=l,o=a):(f=c,o=s)),!r)return[0,n*o,f];var p=Math.floor(n*o/f);return[p,n*o-p*f,f]}function vy(e,t,r){if(e>2958465||e<0)return null;var n=e|0,i=Math.floor(86400*(e-n)),a=0,s=[],o={D:n,T:i,u:86400*(e-n)-i,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(o.u)<1e-6&&(o.u=0),t&&t.date1904&&(n+=1462),o.u>.9999&&(o.u=0,++i==86400&&(o.T=i=0,++n,++o.D)),n===60)s=r?[1317,10,29]:[1900,2,29],a=3;else if(n===0)s=r?[1317,8,29]:[1900,1,0],a=6;else{n>60&&--n;var l=new Date(1900,0,1);l.setDate(l.getDate()+n-1),s=[l.getFullYear(),l.getMonth()+1,l.getDate()],a=l.getDay(),n<60&&(a=(a+6)%7),r&&(a=Twe(l,s))}return o.y=s[0],o.m=s[1],o.d=s[2],o.S=i%60,i=Math.floor(i/60),o.M=i%60,i=Math.floor(i/60),o.H=i,o.q=a,o}var iz=new Date(1899,11,31,0,0,0),Bwe=iz.getTime(),Cwe=new Date(1900,2,1,0,0,0);function az(e,t){var r=e.getTime();return t?r-=1461*24*60*60*1e3:e>=Cwe&&(r+=1440*60*1e3),(r-(Bwe+(e.getTimezoneOffset()-iz.getTimezoneOffset())*6e4))/(1440*60*1e3)}function AF(e){return e.indexOf(".")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function Ewe(e){return e.indexOf("E")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function _we(e){var t=e<0?12:11,r=AF(e.toFixed(12));return r.length<=t||(r=e.toPrecision(10),r.length<=t)?r:e.toExponential(5)}function Swe(e){var t=AF(e.toFixed(11));return t.length>(e<0?12:11)||t==="0"||t==="-0"?e.toPrecision(6):t}function Fwe(e){var t=Math.floor(Math.log(Math.abs(e))*Math.LOG10E),r;return t>=-4&&t<=-1?r=e.toPrecision(10+t):Math.abs(t)<=9?r=_we(e):t===10?r=e.toFixed(10).substr(0,12):r=Swe(e),AF(Ewe(r.toUpperCase()))}function g4(e,t){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(e|0)===e?e.toString(10):Fwe(e);case"undefined":return"";case"object":if(e==null)return"";if(e instanceof Date)return yf(14,az(e,t&&t.date1904),t)}throw new Error("unsupported value in General format: "+e)}function Twe(e,t){t[0]-=581;var r=e.getDay();return e<60&&(r=(r+6)%7),r}function Owe(e,t,r,n){var i="",a=0,s=0,o=r.y,l,c=0;switch(e){case 98:o=r.y+543;case 121:switch(t.length){case 1:case 2:l=o%100,c=2;break;default:l=o%1e4,c=4;break}break;case 109:switch(t.length){case 1:case 2:l=r.m,c=t.length;break;case 3:return kC[r.m-1][1];case 5:return kC[r.m-1][0];default:return kC[r.m-1][2]}break;case 100:switch(t.length){case 1:case 2:l=r.d,c=t.length;break;case 3:return iM[r.q][0];default:return iM[r.q][1]}break;case 104:switch(t.length){case 1:case 2:l=1+(r.H+11)%12,c=t.length;break;default:throw"bad hour format: "+t}break;case 72:switch(t.length){case 1:case 2:l=r.H,c=t.length;break;default:throw"bad hour format: "+t}break;case 77:switch(t.length){case 1:case 2:l=r.M,c=t.length;break;default:throw"bad minute format: "+t}break;case 115:if(t!="s"&&t!="ss"&&t!=".0"&&t!=".00"&&t!=".000")throw"bad second format: "+t;return r.u===0&&(t=="s"||t=="ss")?rl(r.S,t.length):(n>=2?s=n===3?1e3:100:s=n===1?10:1,a=Math.round(s*(r.S+r.u)),a>=60*s&&(a=0),t==="s"?a===0?"0":""+a/s:(i=rl(a,2+n),t==="ss"?i.substr(0,2):"."+i.substr(2,t.length-1)));case 90:switch(t){case"[h]":case"[hh]":l=r.D*24+r.H;break;case"[m]":case"[mm]":l=(r.D*24+r.H)*60+r.M;break;case"[s]":case"[ss]":l=((r.D*24+r.H)*60+r.M)*60+Math.round(r.S+r.u);break;default:throw"bad abstime format: "+t}c=t.length===3?1:2;break;case 101:l=o,c=1;break}var f=c>0?rl(l,c):"";return f}function nf(e){var t=3;if(e.length<=t)return e;for(var r=e.length%t,n=e.substr(0,r);r!=e.length;r+=t)n+=(n.length>0?",":"")+e.substr(r,t);return n}var sz=/%/g;function Uwe(e,t,r){var n=t.replace(sz,""),i=t.length-n.length;return jc(e,n,r*Math.pow(10,2*i))+bi("%",i)}function Nwe(e,t,r){for(var n=t.length-1;t.charCodeAt(n-1)===44;)--n;return jc(e,t.substr(0,n),r/Math.pow(10,3*(t.length-n)))}function oz(e,t){var r,n=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(t==0)return"0.0E+0";if(t<0)return"-"+oz(e,-t);var i=e.indexOf(".");i===-1&&(i=e.indexOf("E"));var a=Math.floor(Math.log(t)*Math.LOG10E)%i;if(a<0&&(a+=i),r=(t/Math.pow(10,a)).toPrecision(n+1+(i+a)%i),r.indexOf("e")===-1){var s=Math.floor(Math.log(t)*Math.LOG10E);for(r.indexOf(".")===-1?r=r.charAt(0)+"."+r.substr(1)+"E+"+(s-r.length+a):r+="E+"+(s-a);r.substr(0,2)==="0.";)r=r.charAt(0)+r.substr(2,i)+"."+r.substr(2+i),r=r.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(o,l,c,f){return l+c+f.substr(0,(i+a)%i)+"."+f.substr(a)+"E"})}else r=t.toExponential(n);return e.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),e.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}var Az=/# (\?+)( ?)\/( ?)(\d+)/;function Lwe(e,t,r){var n=parseInt(e[4],10),i=Math.round(t*n),a=Math.floor(i/n),s=i-a*n,o=n;return r+(a===0?"":""+a)+" "+(s===0?bi(" ",e[1].length+1+e[4].length):oF(s,e[1].length)+e[2]+"/"+e[3]+rl(o,e[4].length))}function Dwe(e,t,r){return r+(t===0?"":""+t)+bi(" ",e[1].length+2+e[4].length)}var lz=/^#*0*\.([0#]+)/,cz=/\).*[0#]/,uz=/\(###\) ###\\?-####/;function Bs(e){for(var t="",r,n=0;n!=e.length;++n)switch(r=e.charCodeAt(n)){case 35:break;case 63:t+=" ";break;case 48:t+="0";break;default:t+=String.fromCharCode(r)}return t}function sM(e,t){var r=Math.pow(10,t);return""+Math.round(e*r)/r}function oM(e,t){var r=e-Math.floor(e),n=Math.pow(10,t);return t<(""+Math.round(r*n)).length?0:Math.round(r*n)}function Iwe(e,t){return t<(""+Math.round((e-Math.floor(e))*Math.pow(10,t))).length?1:0}function Mwe(e){return e<2147483647&&e>-2147483648?""+(e>=0?e|0:e-1|0):""+Math.floor(e)}function oA(e,t,r){if(e.charCodeAt(0)===40&&!t.match(cz)){var n=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?oA("n",n,r):"("+oA("n",n,-r)+")"}if(t.charCodeAt(t.length-1)===44)return Nwe(e,t,r);if(t.indexOf("%")!==-1)return Uwe(e,t,r);if(t.indexOf("E")!==-1)return oz(t,r);if(t.charCodeAt(0)===36)return"$"+oA(e,t.substr(t.charAt(1)==" "?2:1),r);var i,a,s,o,l=Math.abs(r),c=r<0?"-":"";if(t.match(/^00+$/))return c+c0(l,t.length);if(t.match(/^[#?]+$/))return i=c0(r,0),i==="0"&&(i=""),i.length>t.length?i:Bs(t.substr(0,t.length-i.length))+i;if(a=t.match(Az))return Lwe(a,l,c);if(t.match(/^#+0+$/))return c+c0(l,t.length-t.indexOf("0"));if(a=t.match(lz))return i=sM(r,a[1].length).replace(/^([^\.]+)$/,"$1."+Bs(a[1])).replace(/\.$/,"."+Bs(a[1])).replace(/\.(\d*)$/,function(y,m){return"."+m+bi("0",Bs(a[1]).length-m.length)}),t.indexOf("0.")!==-1?i:i.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),a=t.match(/^(0*)\.(#*)$/))return c+sM(l,a[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,a[1].length?"0.":".");if(a=t.match(/^#{1,3},##0(\.?)$/))return c+nf(c0(l,0));if(a=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+oA(e,t,-r):nf(""+(Math.floor(r)+Iwe(r,a[1].length)))+"."+rl(oM(r,a[1].length),a[1].length);if(a=t.match(/^#,#*,#0/))return oA(e,t.replace(/^#,#*,/,""),r);if(a=t.match(/^([0#]+)(\\?-([0#]+))+$/))return i=M0(oA(e,t.replace(/[\\-]/g,""),r)),s=0,M0(M0(t.replace(/\\/g,"")).replace(/[0#]/g,function(y){return s<i.length?i.charAt(s++):y==="0"?"0":""}));if(t.match(uz))return i=oA(e,"##########",r),"("+i.substr(0,3)+") "+i.substr(3,3)+"-"+i.substr(6);var f="";if(a=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(a[4].length,7),o=hw(l,Math.pow(10,s)-1,!1),i=""+c,f=jc("n",a[1],o[1]),f.charAt(f.length-1)==" "&&(f=f.substr(0,f.length-1)+"0"),i+=f+a[2]+"/"+a[3],f=uw(o[2],s),f.length<a[4].length&&(f=Bs(a[4].substr(a[4].length-f.length))+f),i+=f,i;if(a=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(Math.max(a[1].length,a[4].length),7),o=hw(l,Math.pow(10,s)-1,!0),c+(o[0]||(o[1]?"":"0"))+" "+(o[1]?oF(o[1],s)+a[2]+"/"+a[3]+uw(o[2],s):bi(" ",2*s+1+a[2].length+a[3].length));if(a=t.match(/^[#0?]+$/))return i=c0(r,0),t.length<=i.length?i:Bs(t.substr(0,t.length-i.length))+i;if(a=t.match(/^([#0?]+)\.([#0]+)$/)){i=""+r.toFixed(Math.min(a[2].length,10)).replace(/([^0])0+$/,"$1"),s=i.indexOf(".");var h=t.indexOf(".")-s,p=t.length-i.length-h;return Bs(t.substr(0,h)+i+t.substr(t.length-p))}if(a=t.match(/^00,000\.([#0]*0)$/))return s=oM(r,a[1].length),r<0?"-"+oA(e,t,-r):nf(Mwe(r)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(y){return"00,"+(y.length<3?rl(0,3-y.length):"")+y})+"."+rl(s,a[1].length);switch(t){case"###,##0.00":return oA(e,"#,##0.00",r);case"###,###":case"##,###":case"#,###":var g=nf(c0(l,0));return g!=="0"?c+g:"";case"###,###.00":return oA(e,"###,##0.00",r).replace(/^0\./,".");case"#,###.00":return oA(e,"#,##0.00",r).replace(/^0\./,".")}throw new Error("unsupported format |"+t+"|")}function Pwe(e,t,r){for(var n=t.length-1;t.charCodeAt(n-1)===44;)--n;return jc(e,t.substr(0,n),r/Math.pow(10,3*(t.length-n)))}function kwe(e,t,r){var n=t.replace(sz,""),i=t.length-n.length;return jc(e,n,r*Math.pow(10,2*i))+bi("%",i)}function fz(e,t){var r,n=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(t==0)return"0.0E+0";if(t<0)return"-"+fz(e,-t);var i=e.indexOf(".");i===-1&&(i=e.indexOf("E"));var a=Math.floor(Math.log(t)*Math.LOG10E)%i;if(a<0&&(a+=i),r=(t/Math.pow(10,a)).toPrecision(n+1+(i+a)%i),!r.match(/[Ee]/)){var s=Math.floor(Math.log(t)*Math.LOG10E);r.indexOf(".")===-1?r=r.charAt(0)+"."+r.substr(1)+"E+"+(s-r.length+a):r+="E+"+(s-a),r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(o,l,c,f){return l+c+f.substr(0,(i+a)%i)+"."+f.substr(a)+"E"})}else r=t.toExponential(n);return e.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),e.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}function Ml(e,t,r){if(e.charCodeAt(0)===40&&!t.match(cz)){var n=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?Ml("n",n,r):"("+Ml("n",n,-r)+")"}if(t.charCodeAt(t.length-1)===44)return Pwe(e,t,r);if(t.indexOf("%")!==-1)return kwe(e,t,r);if(t.indexOf("E")!==-1)return fz(t,r);if(t.charCodeAt(0)===36)return"$"+Ml(e,t.substr(t.charAt(1)==" "?2:1),r);var i,a,s,o,l=Math.abs(r),c=r<0?"-":"";if(t.match(/^00+$/))return c+rl(l,t.length);if(t.match(/^[#?]+$/))return i=""+r,r===0&&(i=""),i.length>t.length?i:Bs(t.substr(0,t.length-i.length))+i;if(a=t.match(Az))return Dwe(a,l,c);if(t.match(/^#+0+$/))return c+rl(l,t.length-t.indexOf("0"));if(a=t.match(lz))return i=(""+r).replace(/^([^\.]+)$/,"$1."+Bs(a[1])).replace(/\.$/,"."+Bs(a[1])),i=i.replace(/\.(\d*)$/,function(y,m){return"."+m+bi("0",Bs(a[1]).length-m.length)}),t.indexOf("0.")!==-1?i:i.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),a=t.match(/^(0*)\.(#*)$/))return c+(""+l).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,a[1].length?"0.":".");if(a=t.match(/^#{1,3},##0(\.?)$/))return c+nf(""+l);if(a=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+Ml(e,t,-r):nf(""+r)+"."+bi("0",a[1].length);if(a=t.match(/^#,#*,#0/))return Ml(e,t.replace(/^#,#*,/,""),r);if(a=t.match(/^([0#]+)(\\?-([0#]+))+$/))return i=M0(Ml(e,t.replace(/[\\-]/g,""),r)),s=0,M0(M0(t.replace(/\\/g,"")).replace(/[0#]/g,function(y){return s<i.length?i.charAt(s++):y==="0"?"0":""}));if(t.match(uz))return i=Ml(e,"##########",r),"("+i.substr(0,3)+") "+i.substr(3,3)+"-"+i.substr(6);var f="";if(a=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(a[4].length,7),o=hw(l,Math.pow(10,s)-1,!1),i=""+c,f=jc("n",a[1],o[1]),f.charAt(f.length-1)==" "&&(f=f.substr(0,f.length-1)+"0"),i+=f+a[2]+"/"+a[3],f=uw(o[2],s),f.length<a[4].length&&(f=Bs(a[4].substr(a[4].length-f.length))+f),i+=f,i;if(a=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(Math.max(a[1].length,a[4].length),7),o=hw(l,Math.pow(10,s)-1,!0),c+(o[0]||(o[1]?"":"0"))+" "+(o[1]?oF(o[1],s)+a[2]+"/"+a[3]+uw(o[2],s):bi(" ",2*s+1+a[2].length+a[3].length));if(a=t.match(/^[#0?]+$/))return i=""+r,t.length<=i.length?i:Bs(t.substr(0,t.length-i.length))+i;if(a=t.match(/^([#0]+)\.([#0]+)$/)){i=""+r.toFixed(Math.min(a[2].length,10)).replace(/([^0])0+$/,"$1"),s=i.indexOf(".");var h=t.indexOf(".")-s,p=t.length-i.length-h;return Bs(t.substr(0,h)+i+t.substr(t.length-p))}if(a=t.match(/^00,000\.([#0]*0)$/))return r<0?"-"+Ml(e,t,-r):nf(""+r).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(y){return"00,"+(y.length<3?rl(0,3-y.length):"")+y})+"."+rl(0,a[1].length);switch(t){case"###,###":case"##,###":case"#,###":var g=nf(""+l);return g!=="0"?c+g:"";default:if(t.match(/\.[0#?]*$/))return Ml(e,t.slice(0,t.lastIndexOf(".")),r)+Bs(t.slice(t.lastIndexOf(".")))}throw new Error("unsupported format |"+t+"|")}function jc(e,t,r){return(r|0)===r?Ml(e,t,r):oA(e,t,r)}function Qwe(e){for(var t=[],r=!1,n=0,i=0;n<e.length;++n)switch(e.charCodeAt(n)){case 34:r=!r;break;case 95:case 42:case 92:++n;break;case 59:t[t.length]=e.substr(i,n-i),i=n+1}if(t[t.length]=e.substr(i),r===!0)throw new Error("Format |"+e+"| unterminated string ");return t}var hz=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function dz(e){for(var t=0,r="",n="";t<e.length;)switch(r=e.charAt(t)){case"G":fw(e,t)&&(t+=6),t++;break;case'"':for(;e.charCodeAt(++t)!==34&&t<e.length;);++t;break;case"\\":t+=2;break;case"_":t+=2;break;case"@":++t;break;case"B":case"b":if(e.charAt(t+1)==="1"||e.charAt(t+1)==="2")return!0;case"M":case"D":case"Y":case"H":case"S":case"E":case"m":case"d":case"y":case"h":case"s":case"e":case"g":return!0;case"A":case"a":case"上":if(e.substr(t,3).toUpperCase()==="A/P"||e.substr(t,5).toUpperCase()==="AM/PM"||e.substr(t,5).toUpperCase()==="上午/下午")return!0;++t;break;case"[":for(n=r;e.charAt(t++)!=="]"&&t<e.length;)n+=e.charAt(t);if(n.match(hz))return!0;break;case".":case"0":case"#":for(;t<e.length&&("0#?.,E+-%".indexOf(r=e.charAt(++t))>-1||r=="\\"&&e.charAt(t+1)=="-"&&"0#".indexOf(e.charAt(t+2))>-1););break;case"?":for(;e.charAt(++t)===r;);break;case"*":++t,(e.charAt(t)==" "||e.charAt(t)=="*")&&++t;break;case"(":case")":++t;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;t<e.length&&"0123456789".indexOf(e.charAt(++t))>-1;);break;case" ":++t;break;default:++t;break}return!1}function Rwe(e,t,r,n){for(var i=[],a="",s=0,o="",l="t",c,f,h,p="H";s<e.length;)switch(o=e.charAt(s)){case"G":if(!fw(e,s))throw new Error("unrecognized character "+o+" in "+e);i[i.length]={t:"G",v:"General"},s+=7;break;case'"':for(a="";(h=e.charCodeAt(++s))!==34&&s<e.length;)a+=String.fromCharCode(h);i[i.length]={t:"t",v:a},++s;break;case"\\":var g=e.charAt(++s),y=g==="("||g===")"?g:"t";i[i.length]={t:y,v:g},++s;break;case"_":i[i.length]={t:"t",v:" "},s+=2;break;case"@":i[i.length]={t:"T",v:t},++s;break;case"B":case"b":if(e.charAt(s+1)==="1"||e.charAt(s+1)==="2"){if(c==null&&(c=vy(t,r,e.charAt(s+1)==="2"),c==null))return"";i[i.length]={t:"X",v:e.substr(s,2)},l=o,s+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":o=o.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(t<0||c==null&&(c=vy(t,r),c==null))return"";for(a=o;++s<e.length&&e.charAt(s).toLowerCase()===o;)a+=o;o==="m"&&l.toLowerCase()==="h"&&(o="M"),o==="h"&&(o=p),i[i.length]={t:o,v:a},l=o;break;case"A":case"a":case"上":var m={t:o,v:o};if(c==null&&(c=vy(t,r)),e.substr(s,3).toUpperCase()==="A/P"?(c!=null&&(m.v=c.H>=12?"P":"A"),m.t="T",p="h",s+=3):e.substr(s,5).toUpperCase()==="AM/PM"?(c!=null&&(m.v=c.H>=12?"PM":"AM"),m.t="T",s+=5,p="h"):e.substr(s,5).toUpperCase()==="上午/下午"?(c!=null&&(m.v=c.H>=12?"下午":"上午"),m.t="T",s+=5,p="h"):(m.t="t",++s),c==null&&m.t==="T")return"";i[i.length]=m,l=o;break;case"[":for(a=o;e.charAt(s++)!=="]"&&s<e.length;)a+=e.charAt(s);if(a.slice(-1)!=="]")throw'unterminated "[" block: |'+a+"|";if(a.match(hz)){if(c==null&&(c=vy(t,r),c==null))return"";i[i.length]={t:"Z",v:a.toLowerCase()},l=a.charAt(1)}else a.indexOf("$")>-1&&(a=(a.match(/\$([^-\[\]]*)/)||[])[1]||"$",dz(e)||(i[i.length]={t:"t",v:a}));break;case".":if(c!=null){for(a=o;++s<e.length&&(o=e.charAt(s))==="0";)a+=o;i[i.length]={t:"s",v:a};break}case"0":case"#":for(a=o;++s<e.length&&"0#?.,E+-%".indexOf(o=e.charAt(s))>-1;)a+=o;i[i.length]={t:"n",v:a};break;case"?":for(a=o;e.charAt(++s)===o;)a+=o;i[i.length]={t:o,v:a},l=o;break;case"*":++s,(e.charAt(s)==" "||e.charAt(s)=="*")&&++s;break;case"(":case")":i[i.length]={t:n===1?"t":o,v:o},++s;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(a=o;s<e.length&&"0123456789".indexOf(e.charAt(++s))>-1;)a+=e.charAt(s);i[i.length]={t:"D",v:a};break;case" ":i[i.length]={t:o,v:o},++s;break;case"$":i[i.length]={t:"t",v:"$"},++s;break;default:if(",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(o)===-1)throw new Error("unrecognized character "+o+" in "+e);i[i.length]={t:"t",v:o},++s;break}var w=0,b=0,E;for(s=i.length-1,l="t";s>=0;--s)switch(i[s].t){case"h":case"H":i[s].t=p,l="h",w<1&&(w=1);break;case"s":(E=i[s].v.match(/\.0+$/))&&(b=Math.max(b,E[0].length-1)),w<3&&(w=3);case"d":case"y":case"M":case"e":l=i[s].t;break;case"m":l==="s"&&(i[s].t="M",w<2&&(w=2));break;case"X":break;case"Z":w<1&&i[s].v.match(/[Hh]/)&&(w=1),w<2&&i[s].v.match(/[Mm]/)&&(w=2),w<3&&i[s].v.match(/[Ss]/)&&(w=3)}switch(w){case 0:break;case 1:c.u>=.5&&(c.u=0,++c.S),c.S>=60&&(c.S=0,++c.M),c.M>=60&&(c.M=0,++c.H);break;case 2:c.u>=.5&&(c.u=0,++c.S),c.S>=60&&(c.S=0,++c.M);break}var S="",T;for(s=0;s<i.length;++s)switch(i[s].t){case"t":case"T":case" ":case"D":break;case"X":i[s].v="",i[s].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":i[s].v=Owe(i[s].t.charCodeAt(0),i[s].v,c,b),i[s].t="t";break;case"n":case"?":for(T=s+1;i[T]!=null&&((o=i[T].t)==="?"||o==="D"||(o===" "||o==="t")&&i[T+1]!=null&&(i[T+1].t==="?"||i[T+1].t==="t"&&i[T+1].v==="/")||i[s].t==="("&&(o===" "||o==="n"||o===")")||o==="t"&&(i[T].v==="/"||i[T].v===" "&&i[T+1]!=null&&i[T+1].t=="?"));)i[s].v+=i[T].v,i[T]={v:"",t:";"},++T;S+=i[s].v,s=T-1;break;case"G":i[s].t="t",i[s].v=g4(t,r);break}var D="",k,P;if(S.length>0){S.charCodeAt(0)==40?(k=t<0&&S.charCodeAt(0)===45?-t:t,P=jc("n",S,k)):(k=t<0&&n>1?-t:t,P=jc("n",S,k),k<0&&i[0]&&i[0].t=="t"&&(P=P.substr(1),i[0].v="-"+i[0].v)),T=P.length-1;var R=i.length;for(s=0;s<i.length;++s)if(i[s]!=null&&i[s].t!="t"&&i[s].v.indexOf(".")>-1){R=s;break}var O=i.length;if(R===i.length&&P.indexOf("E")===-1){for(s=i.length-1;s>=0;--s)i[s]==null||"n?".indexOf(i[s].t)===-1||(T>=i[s].v.length-1?(T-=i[s].v.length,i[s].v=P.substr(T+1,i[s].v.length)):T<0?i[s].v="":(i[s].v=P.substr(0,T+1),T=-1),i[s].t="t",O=s);T>=0&&O<i.length&&(i[O].v=P.substr(0,T+1)+i[O].v)}else if(R!==i.length&&P.indexOf("E")===-1){for(T=P.indexOf(".")-1,s=R;s>=0;--s)if(!(i[s]==null||"n?".indexOf(i[s].t)===-1)){for(f=i[s].v.indexOf(".")>-1&&s===R?i[s].v.indexOf(".")-1:i[s].v.length-1,D=i[s].v.substr(f+1);f>=0;--f)T>=0&&(i[s].v.charAt(f)==="0"||i[s].v.charAt(f)==="#")&&(D=P.charAt(T--)+D);i[s].v=D,i[s].t="t",O=s}for(T>=0&&O<i.length&&(i[O].v=P.substr(0,T+1)+i[O].v),T=P.indexOf(".")+1,s=R;s<i.length;++s)if(!(i[s]==null||"n?(".indexOf(i[s].t)===-1&&s!==R)){for(f=i[s].v.indexOf(".")>-1&&s===R?i[s].v.indexOf(".")+1:0,D=i[s].v.substr(0,f);f<i[s].v.length;++f)T<P.length&&(D+=P.charAt(T++));i[s].v=D,i[s].t="t",O=s}}}for(s=0;s<i.length;++s)i[s]!=null&&"n?".indexOf(i[s].t)>-1&&(k=n>1&&t<0&&s>0&&i[s-1].v==="-"?-t:t,i[s].v=jc(i[s].t,i[s].v,k),i[s].t="t");var V="";for(s=0;s!==i.length;++s)i[s]!=null&&(V+=i[s].v);return V}var AM=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function lM(e,t){if(t==null)return!1;var r=parseFloat(t[2]);switch(t[1]){case"=":if(e==r)return!0;break;case">":if(e>r)return!0;break;case"<":if(e<r)return!0;break;case"<>":if(e!=r)return!0;break;case">=":if(e>=r)return!0;break;case"<=":if(e<=r)return!0;break}return!1}function jwe(e,t){var r=Qwe(e),n=r.length,i=r[n-1].indexOf("@");if(n<4&&i>-1&&--n,r.length>4)throw new Error("cannot find right format for |"+r.join("|")+"|");if(typeof t!="number")return[4,r.length===4||i>-1?r[r.length-1]:"@"];switch(r.length){case 1:r=i>-1?["General","General","General",r[0]]:[r[0],r[0],r[0],"@"];break;case 2:r=i>-1?[r[0],r[0],r[0],r[1]]:[r[0],r[1],r[0],"@"];break;case 3:r=i>-1?[r[0],r[1],r[0],r[2]]:[r[0],r[1],r[2],"@"];break}var a=t>0?r[0]:t<0?r[1]:r[2];if(r[0].indexOf("[")===-1&&r[1].indexOf("[")===-1)return[n,a];if(r[0].match(/\[[=<>]/)!=null||r[1].match(/\[[=<>]/)!=null){var s=r[0].match(AM),o=r[1].match(AM);return lM(t,s)?[n,r[0]]:lM(t,o)?[n,r[1]]:[n,r[s!=null&&o!=null?2:1]]}return[n,a]}function yf(e,t,r){r==null&&(r={});var n="";switch(typeof e){case"string":e=="m/d/yy"&&r.dateNF?n=r.dateNF:n=e;break;case"number":e==14&&r.dateNF?n=r.dateNF:n=(r.table!=null?r.table:Ei)[e],n==null&&(n=r.table&&r.table[aM[e]]||Ei[aM[e]]),n==null&&(n=bwe[e]||"General");break}if(fw(n,0))return g4(t,r);t instanceof Date&&(t=az(t,r.date1904));var i=jwe(n,t);if(fw(i[1]))return g4(t,r);if(t===!0)t="TRUE";else if(t===!1)t="FALSE";else if(t===""||t==null)return"";return Rwe(i[1],t,r,i[0])}function gz(e,t){if(typeof t!="number"){t=+t||-1;for(var r=0;r<392;++r){if(Ei[r]==null){t<0&&(t=r);continue}if(Ei[r]==e){t=r;break}}t<0&&(t=391)}return Ei[t]=e,t}function Qx(e){for(var t=0;t!=392;++t)e[t]!==void 0&&gz(e[t],t)}function Rx(){Ei=xwe()}var pz=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function Hwe(e){var t=typeof e=="number"?Ei[e]:e;return t=t.replace(pz,"(\\d+)"),new RegExp("^"+t+"$")}function Kwe(e,t,r){var n=-1,i=-1,a=-1,s=-1,o=-1,l=-1;(t.match(pz)||[]).forEach(function(h,p){var g=parseInt(r[p+1],10);switch(h.toLowerCase().charAt(0)){case"y":n=g;break;case"d":a=g;break;case"h":s=g;break;case"s":l=g;break;case"m":s>=0?o=g:i=g;break}}),l>=0&&o==-1&&i>=0&&(o=i,i=-1);var c=(""+(n>=0?n:new Date().getFullYear())).slice(-4)+"-"+("00"+(i>=1?i:1)).slice(-2)+"-"+("00"+(a>=1?a:1)).slice(-2);c.length==7&&(c="0"+c),c.length==8&&(c="20"+c);var f=("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(o>=0?o:0)).slice(-2)+":"+("00"+(l>=0?l:0)).slice(-2);return s==-1&&o==-1&&l==-1?c:n==-1&&i==-1&&a==-1?f:c+"T"+f}var zwe=(function(){var e={};e.version="1.2.0";function t(){for(var P=0,R=new Array(256),O=0;O!=256;++O)P=O,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,R[O]=P;return typeof Int32Array<"u"?new Int32Array(R):R}var r=t();function n(P){var R=0,O=0,V=0,I=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(V=0;V!=256;++V)I[V]=P[V];for(V=0;V!=256;++V)for(O=P[V],R=256+V;R<4096;R+=256)O=I[R]=O>>>8^P[O&255];var Q=[];for(V=1;V!=16;++V)Q[V-1]=typeof Int32Array<"u"?I.subarray(V*256,V*256+256):I.slice(V*256,V*256+256);return Q}var i=n(r),a=i[0],s=i[1],o=i[2],l=i[3],c=i[4],f=i[5],h=i[6],p=i[7],g=i[8],y=i[9],m=i[10],w=i[11],b=i[12],E=i[13],S=i[14];function T(P,R){for(var O=R^-1,V=0,I=P.length;V<I;)O=O>>>8^r[(O^P.charCodeAt(V++))&255];return~O}function D(P,R){for(var O=R^-1,V=P.length-15,I=0;I<V;)O=S[P[I++]^O&255]^E[P[I++]^O>>8&255]^b[P[I++]^O>>16&255]^w[P[I++]^O>>>24]^m[P[I++]]^y[P[I++]]^g[P[I++]]^p[P[I++]]^h[P[I++]]^f[P[I++]]^c[P[I++]]^l[P[I++]]^o[P[I++]]^s[P[I++]]^a[P[I++]]^r[P[I++]];for(V+=15;I<V;)O=O>>>8^r[(O^P[I++])&255];return~O}function k(P,R){for(var O=R^-1,V=0,I=P.length,Q=0,W=0;V<I;)Q=P.charCodeAt(V++),Q<128?O=O>>>8^r[(O^Q)&255]:Q<2048?(O=O>>>8^r[(O^(192|Q>>6&31))&255],O=O>>>8^r[(O^(128|Q&63))&255]):Q>=55296&&Q<57344?(Q=(Q&1023)+64,W=P.charCodeAt(V++)&1023,O=O>>>8^r[(O^(240|Q>>8&7))&255],O=O>>>8^r[(O^(128|Q>>2&63))&255],O=O>>>8^r[(O^(128|W>>6&15|(Q&3)<<4))&255],O=O>>>8^r[(O^(128|W&63))&255]):(O=O>>>8^r[(O^(224|Q>>12&15))&255],O=O>>>8^r[(O^(128|Q>>6&63))&255],O=O>>>8^r[(O^(128|Q&63))&255]);return~O}return e.table=r,e.bstr=T,e.buf=D,e.str=k,e})(),Bn=(function(){var t={};t.version="1.2.1";function r(ee,ve){for(var Ae=ee.split("/"),ce=ve.split("/"),de=0,we=0,Te=Math.min(Ae.length,ce.length);de<Te;++de){if(we=Ae[de].length-ce[de].length)return we;if(Ae[de]!=ce[de])return Ae[de]<ce[de]?-1:1}return Ae.length-ce.length}function n(ee){if(ee.charAt(ee.length-1)=="/")return ee.slice(0,-1).indexOf("/")===-1?ee:n(ee.slice(0,-1));var ve=ee.lastIndexOf("/");return ve===-1?ee:ee.slice(0,ve+1)}function i(ee){if(ee.charAt(ee.length-1)=="/")return i(ee.slice(0,-1));var ve=ee.lastIndexOf("/");return ve===-1?ee:ee.slice(ve+1)}function a(ee,ve){typeof ve=="string"&&(ve=new Date(ve));var Ae=ve.getHours();Ae=Ae<<6|ve.getMinutes(),Ae=Ae<<5|ve.getSeconds()>>>1,ee.write_shift(2,Ae);var ce=ve.getFullYear()-1980;ce=ce<<4|ve.getMonth()+1,ce=ce<<5|ve.getDate(),ee.write_shift(2,ce)}function s(ee){var ve=ee.read_shift(2)&65535,Ae=ee.read_shift(2)&65535,ce=new Date,de=Ae&31;Ae>>>=5;var we=Ae&15;Ae>>>=4,ce.setMilliseconds(0),ce.setFullYear(Ae+1980),ce.setMonth(we-1),ce.setDate(de);var Te=ve&31;ve>>>=5;var je=ve&63;return ve>>>=6,ce.setHours(ve),ce.setMinutes(je),ce.setSeconds(Te<<1),ce}function o(ee){To(ee,0);for(var ve={},Ae=0;ee.l<=ee.length-4;){var ce=ee.read_shift(2),de=ee.read_shift(2),we=ee.l+de,Te={};switch(ce){case 21589:Ae=ee.read_shift(1),Ae&1&&(Te.mtime=ee.read_shift(4)),de>5&&(Ae&2&&(Te.atime=ee.read_shift(4)),Ae&4&&(Te.ctime=ee.read_shift(4))),Te.mtime&&(Te.mt=new Date(Te.mtime*1e3));break}ee.l=we,ve[ce]=Te}return ve}var l;function c(){return l||(l={})}function f(ee,ve){if(ee[0]==80&&ee[1]==75)return $t(ee,ve);if((ee[0]|32)==109&&(ee[1]|32)==105)return Mt(ee,ve);if(ee.length<512)throw new Error("CFB file size "+ee.length+" < 512");var Ae=3,ce=512,de=0,we=0,Te=0,je=0,Ne=0,Ie=[],Pe=ee.slice(0,512);To(Pe,0);var ot=h(Pe);switch(Ae=ot[0],Ae){case 3:ce=512;break;case 4:ce=4096;break;case 0:if(ot[1]==0)return $t(ee,ve);default:throw new Error("Major Version: Expected 3 or 4 saw "+Ae)}ce!==512&&(Pe=ee.slice(0,ce),To(Pe,28));var ft=ee.slice(0,ce);p(Pe,Ae);var pt=Pe.read_shift(4,"i");if(Ae===3&&pt!==0)throw new Error("# Directory Sectors: Expected 0 saw "+pt);Pe.l+=4,Te=Pe.read_shift(4,"i"),Pe.l+=4,Pe.chk("00100000","Mini Stream Cutoff Size: "),je=Pe.read_shift(4,"i"),de=Pe.read_shift(4,"i"),Ne=Pe.read_shift(4,"i"),we=Pe.read_shift(4,"i");for(var ut=-1,dt=0;dt<109&&(ut=Pe.read_shift(4,"i"),!(ut<0));++dt)Ie[dt]=ut;var _t=g(ee,ce);w(Ne,we,_t,ce,Ie);var $r=E(_t,Te,Ie,ce);$r[Te].name="!Directory",de>0&&je!==W&&($r[je].name="!MiniFAT"),$r[Ie[0]].name="!FAT",$r.fat_addrs=Ie,$r.ssz=ce;var br={},tn=[],Ta=[],oo=[];S(Te,$r,_t,tn,de,br,Ta,je),y(Ta,oo,tn),tn.shift();var Ao={FileIndex:Ta,FullPaths:oo};return ve&&ve.raw&&(Ao.raw={header:ft,sectors:_t}),Ao}function h(ee){if(ee[ee.l]==80&&ee[ee.l+1]==75)return[0,0];ee.chk(J,"Header Signature: "),ee.l+=16;var ve=ee.read_shift(2,"u");return[ee.read_shift(2,"u"),ve]}function p(ee,ve){var Ae=9;switch(ee.l+=2,Ae=ee.read_shift(2)){case 9:if(ve!=3)throw new Error("Sector Shift: Expected 9 saw "+Ae);break;case 12:if(ve!=4)throw new Error("Sector Shift: Expected 12 saw "+Ae);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+Ae)}ee.chk("0600","Mini Sector Shift: "),ee.chk("000000000000","Reserved: ")}function g(ee,ve){for(var Ae=Math.ceil(ee.length/ve)-1,ce=[],de=1;de<Ae;++de)ce[de-1]=ee.slice(de*ve,(de+1)*ve);return ce[Ae-1]=ee.slice(Ae*ve),ce}function y(ee,ve,Ae){for(var ce=0,de=0,we=0,Te=0,je=0,Ne=Ae.length,Ie=[],Pe=[];ce<Ne;++ce)Ie[ce]=Pe[ce]=ce,ve[ce]=Ae[ce];for(;je<Pe.length;++je)ce=Pe[je],de=ee[ce].L,we=ee[ce].R,Te=ee[ce].C,Ie[ce]===ce&&(de!==-1&&Ie[de]!==de&&(Ie[ce]=Ie[de]),we!==-1&&Ie[we]!==we&&(Ie[ce]=Ie[we])),Te!==-1&&(Ie[Te]=ce),de!==-1&&ce!=Ie[ce]&&(Ie[de]=Ie[ce],Pe.lastIndexOf(de)<je&&Pe.push(de)),we!==-1&&ce!=Ie[ce]&&(Ie[we]=Ie[ce],Pe.lastIndexOf(we)<je&&Pe.push(we));for(ce=1;ce<Ne;++ce)Ie[ce]===ce&&(we!==-1&&Ie[we]!==we?Ie[ce]=Ie[we]:de!==-1&&Ie[de]!==de&&(Ie[ce]=Ie[de]));for(ce=1;ce<Ne;++ce)if(ee[ce].type!==0){if(je=ce,je!=Ie[je])do je=Ie[je],ve[ce]=ve[je]+"/"+ve[ce];while(je!==0&&Ie[je]!==-1&&je!=Ie[je]);Ie[ce]=-1}for(ve[0]+="/",ce=1;ce<Ne;++ce)ee[ce].type!==2&&(ve[ce]+="/")}function m(ee,ve,Ae){for(var ce=ee.start,de=ee.size,we=[],Te=ce;Ae&&de>0&&Te>=0;)we.push(ve.slice(Te*Q,Te*Q+Q)),de-=Q,Te=vh(Ae,Te*4);return we.length===0?Xe(0):za(we).slice(0,ee.size)}function w(ee,ve,Ae,ce,de){var we=W;if(ee===W){if(ve!==0)throw new Error("DIFAT chain shorter than expected")}else if(ee!==-1){var Te=Ae[ee],je=(ce>>>2)-1;if(!Te)return;for(var Ne=0;Ne<je&&(we=vh(Te,Ne*4))!==W;++Ne)de.push(we);w(vh(Te,ce-4),ve-1,Ae,ce,de)}}function b(ee,ve,Ae,ce,de){var we=[],Te=[];de||(de=[]);var je=ce-1,Ne=0,Ie=0;for(Ne=ve;Ne>=0;){de[Ne]=!0,we[we.length]=Ne,Te.push(ee[Ne]);var Pe=Ae[Math.floor(Ne*4/ce)];if(Ie=Ne*4&je,ce<4+Ie)throw new Error("FAT boundary crossed: "+Ne+" 4 "+ce);if(!ee[Pe])break;Ne=vh(ee[Pe],Ie)}return{nodes:we,data:vM([Te])}}function E(ee,ve,Ae,ce){var de=ee.length,we=[],Te=[],je=[],Ne=[],Ie=ce-1,Pe=0,ot=0,ft=0,pt=0;for(Pe=0;Pe<de;++Pe)if(je=[],ft=Pe+ve,ft>=de&&(ft-=de),!Te[ft]){Ne=[];var ut=[];for(ot=ft;ot>=0;){ut[ot]=!0,Te[ot]=!0,je[je.length]=ot,Ne.push(ee[ot]);var dt=Ae[Math.floor(ot*4/ce)];if(pt=ot*4&Ie,ce<4+pt)throw new Error("FAT boundary crossed: "+ot+" 4 "+ce);if(!ee[dt]||(ot=vh(ee[dt],pt),ut[ot]))break}we[ft]={nodes:je,data:vM([Ne])}}return we}function S(ee,ve,Ae,ce,de,we,Te,je){for(var Ne=0,Ie=ce.length?2:0,Pe=ve[ee].data,ot=0,ft=0,pt;ot<Pe.length;ot+=128){var ut=Pe.slice(ot,ot+128);To(ut,64),ft=ut.read_shift(2),pt=hF(ut,0,ft-Ie),ce.push(pt);var dt={name:pt,type:ut.read_shift(1),color:ut.read_shift(1),L:ut.read_shift(4,"i"),R:ut.read_shift(4,"i"),C:ut.read_shift(4,"i"),clsid:ut.read_shift(16),state:ut.read_shift(4,"i"),start:0,size:0},_t=ut.read_shift(2)+ut.read_shift(2)+ut.read_shift(2)+ut.read_shift(2);_t!==0&&(dt.ct=T(ut,ut.l-8));var $r=ut.read_shift(2)+ut.read_shift(2)+ut.read_shift(2)+ut.read_shift(2);$r!==0&&(dt.mt=T(ut,ut.l-8)),dt.start=ut.read_shift(4,"i"),dt.size=ut.read_shift(4,"i"),dt.size<0&&dt.start<0&&(dt.size=dt.type=0,dt.start=W,dt.name=""),dt.type===5?(Ne=dt.start,de>0&&Ne!==W&&(ve[Ne].name="!StreamData")):dt.size>=4096?(dt.storage="fat",ve[dt.start]===void 0&&(ve[dt.start]=b(Ae,dt.start,ve.fat_addrs,ve.ssz)),ve[dt.start].name=dt.name,dt.content=ve[dt.start].data.slice(0,dt.size)):(dt.storage="minifat",dt.size<0?dt.size=0:Ne!==W&&dt.start!==W&&ve[Ne]&&(dt.content=m(dt,ve[Ne].data,(ve[je]||{}).data))),dt.content&&To(dt.content,0),we[pt]=dt,Te.push(dt)}}function T(ee,ve){return new Date((No(ee,ve+4)/1e7*Math.pow(2,32)+No(ee,ve)/1e7-11644473600)*1e3)}function D(ee,ve){return c(),f(l.readFileSync(ee),ve)}function k(ee,ve){var Ae=ve&&ve.type;switch(Ae||en&&Buffer.isBuffer(ee)&&(Ae="buffer"),Ae||"base64"){case"file":return D(ee,ve);case"base64":return f(tl(Xc(ee)),ve);case"binary":return f(tl(ee),ve)}return f(ee,ve)}function P(ee,ve){var Ae=ve||{},ce=Ae.root||"Root Entry";if(ee.FullPaths||(ee.FullPaths=[]),ee.FileIndex||(ee.FileIndex=[]),ee.FullPaths.length!==ee.FileIndex.length)throw new Error("inconsistent CFB structure");ee.FullPaths.length===0&&(ee.FullPaths[0]=ce+"/",ee.FileIndex[0]={name:ce,type:5}),Ae.CLSID&&(ee.FileIndex[0].clsid=Ae.CLSID),R(ee)}function R(ee){var ve="Sh33tJ5";if(!Bn.find(ee,"/"+ve)){var Ae=Xe(4);Ae[0]=55,Ae[1]=Ae[3]=50,Ae[2]=54,ee.FileIndex.push({name:ve,type:2,content:Ae,size:4,L:69,R:69,C:69}),ee.FullPaths.push(ee.FullPaths[0]+ve),O(ee)}}function O(ee,ve){P(ee);for(var Ae=!1,ce=!1,de=ee.FullPaths.length-1;de>=0;--de){var we=ee.FileIndex[de];switch(we.type){case 0:ce?Ae=!0:(ee.FileIndex.pop(),ee.FullPaths.pop());break;case 1:case 2:case 5:ce=!0,isNaN(we.R*we.L*we.C)&&(Ae=!0),we.R>-1&&we.L>-1&&we.R==we.L&&(Ae=!0);break;default:Ae=!0;break}}if(!(!Ae&&!ve)){var Te=new Date(1987,1,19),je=0,Ne=Object.create?Object.create(null):{},Ie=[];for(de=0;de<ee.FullPaths.length;++de)Ne[ee.FullPaths[de]]=!0,ee.FileIndex[de].type!==0&&Ie.push([ee.FullPaths[de],ee.FileIndex[de]]);for(de=0;de<Ie.length;++de){var Pe=n(Ie[de][0]);ce=Ne[Pe],ce||(Ie.push([Pe,{name:i(Pe).replace("/",""),type:1,clsid:G,ct:Te,mt:Te,content:null}]),Ne[Pe]=!0)}for(Ie.sort(function(pt,ut){return r(pt[0],ut[0])}),ee.FullPaths=[],ee.FileIndex=[],de=0;de<Ie.length;++de)ee.FullPaths[de]=Ie[de][0],ee.FileIndex[de]=Ie[de][1];for(de=0;de<Ie.length;++de){var ot=ee.FileIndex[de],ft=ee.FullPaths[de];if(ot.name=i(ft).replace("/",""),ot.L=ot.R=ot.C=-(ot.color=1),ot.size=ot.content?ot.content.length:0,ot.start=0,ot.clsid=ot.clsid||G,de===0)ot.C=Ie.length>1?1:-1,ot.size=0,ot.type=5;else if(ft.slice(-1)=="/"){for(je=de+1;je<Ie.length&&n(ee.FullPaths[je])!=ft;++je);for(ot.C=je>=Ie.length?-1:je,je=de+1;je<Ie.length&&n(ee.FullPaths[je])!=n(ft);++je);ot.R=je>=Ie.length?-1:je,ot.type=1}else n(ee.FullPaths[de+1]||"")==n(ft)&&(ot.R=de+1),ot.type=2}}}function V(ee,ve){var Ae=ve||{};if(Ae.fileType=="mad")return Ja(ee,Ae);switch(O(ee),Ae.fileType){case"zip":return sr(ee,Ae)}var ce=(function(pt){for(var ut=0,dt=0,_t=0;_t<pt.FileIndex.length;++_t){var $r=pt.FileIndex[_t];if($r.content){var br=$r.content.length;br>0&&(br<4096?ut+=br+63>>6:dt+=br+511>>9)}}for(var tn=pt.FullPaths.length+3>>2,Ta=ut+7>>3,oo=ut+127>>7,Ao=Ta+dt+tn+oo,gs=Ao+127>>7,ul=gs<=109?0:Math.ceil((gs-109)/127);Ao+gs+ul+127>>7>gs;)ul=++gs<=109?0:Math.ceil((gs-109)/127);var Mn=[1,ul,gs,oo,tn,dt,ut,0];return pt.FileIndex[0].size=ut<<6,Mn[7]=(pt.FileIndex[0].start=Mn[0]+Mn[1]+Mn[2]+Mn[3]+Mn[4]+Mn[5])+(Mn[6]+7>>3),Mn})(ee),de=Xe(ce[7]<<9),we=0,Te=0;{for(we=0;we<8;++we)de.write_shift(1,fe[we]);for(we=0;we<8;++we)de.write_shift(2,0);for(de.write_shift(2,62),de.write_shift(2,3),de.write_shift(2,65534),de.write_shift(2,9),de.write_shift(2,6),we=0;we<3;++we)de.write_shift(2,0);for(de.write_shift(4,0),de.write_shift(4,ce[2]),de.write_shift(4,ce[0]+ce[1]+ce[2]+ce[3]-1),de.write_shift(4,0),de.write_shift(4,4096),de.write_shift(4,ce[3]?ce[0]+ce[1]+ce[2]-1:W),de.write_shift(4,ce[3]),de.write_shift(-4,ce[1]?ce[0]-1:W),de.write_shift(4,ce[1]),we=0;we<109;++we)de.write_shift(-4,we<ce[2]?ce[1]+we:-1)}if(ce[1])for(Te=0;Te<ce[1];++Te){for(;we<236+Te*127;++we)de.write_shift(-4,we<ce[2]?ce[1]+we:-1);de.write_shift(-4,Te===ce[1]-1?W:Te+1)}var je=function(pt){for(Te+=pt;we<Te-1;++we)de.write_shift(-4,we+1);pt&&(++we,de.write_shift(-4,W))};for(Te=we=0,Te+=ce[1];we<Te;++we)de.write_shift(-4,se.DIFSECT);for(Te+=ce[2];we<Te;++we)de.write_shift(-4,se.FATSECT);je(ce[3]),je(ce[4]);for(var Ne=0,Ie=0,Pe=ee.FileIndex[0];Ne<ee.FileIndex.length;++Ne)Pe=ee.FileIndex[Ne],Pe.content&&(Ie=Pe.content.length,!(Ie<4096)&&(Pe.start=Te,je(Ie+511>>9)));for(je(ce[6]+7>>3);de.l&511;)de.write_shift(-4,se.ENDOFCHAIN);for(Te=we=0,Ne=0;Ne<ee.FileIndex.length;++Ne)Pe=ee.FileIndex[Ne],Pe.content&&(Ie=Pe.content.length,!(!Ie||Ie>=4096)&&(Pe.start=Te,je(Ie+63>>6)));for(;de.l&511;)de.write_shift(-4,se.ENDOFCHAIN);for(we=0;we<ce[4]<<2;++we){var ot=ee.FullPaths[we];if(!ot||ot.length===0){for(Ne=0;Ne<17;++Ne)de.write_shift(4,0);for(Ne=0;Ne<3;++Ne)de.write_shift(4,-1);for(Ne=0;Ne<12;++Ne)de.write_shift(4,0);continue}Pe=ee.FileIndex[we],we===0&&(Pe.start=Pe.size?Pe.start-1:W);var ft=we===0&&Ae.root||Pe.name;if(Ie=2*(ft.length+1),de.write_shift(64,ft,"utf16le"),de.write_shift(2,Ie),de.write_shift(1,Pe.type),de.write_shift(1,Pe.color),de.write_shift(-4,Pe.L),de.write_shift(-4,Pe.R),de.write_shift(-4,Pe.C),Pe.clsid)de.write_shift(16,Pe.clsid,"hex");else for(Ne=0;Ne<4;++Ne)de.write_shift(4,0);de.write_shift(4,Pe.state||0),de.write_shift(4,0),de.write_shift(4,0),de.write_shift(4,0),de.write_shift(4,0),de.write_shift(4,Pe.start),de.write_shift(4,Pe.size),de.write_shift(4,0)}for(we=1;we<ee.FileIndex.length;++we)if(Pe=ee.FileIndex[we],Pe.size>=4096)if(de.l=Pe.start+1<<9,en&&Buffer.isBuffer(Pe.content))Pe.content.copy(de,de.l,0,Pe.size),de.l+=Pe.size+511&-512;else{for(Ne=0;Ne<Pe.size;++Ne)de.write_shift(1,Pe.content[Ne]);for(;Ne&511;++Ne)de.write_shift(1,0)}for(we=1;we<ee.FileIndex.length;++we)if(Pe=ee.FileIndex[we],Pe.size>0&&Pe.size<4096)if(en&&Buffer.isBuffer(Pe.content))Pe.content.copy(de,de.l,0,Pe.size),de.l+=Pe.size+63&-64;else{for(Ne=0;Ne<Pe.size;++Ne)de.write_shift(1,Pe.content[Ne]);for(;Ne&63;++Ne)de.write_shift(1,0)}if(en)de.l=de.length;else for(;de.l<de.length;)de.write_shift(1,0);return de}function I(ee,ve){var Ae=ee.FullPaths.map(function(Ne){return Ne.toUpperCase()}),ce=Ae.map(function(Ne){var Ie=Ne.split("/");return Ie[Ie.length-(Ne.slice(-1)=="/"?2:1)]}),de=!1;ve.charCodeAt(0)===47?(de=!0,ve=Ae[0].slice(0,-1)+ve):de=ve.indexOf("/")!==-1;var we=ve.toUpperCase(),Te=de===!0?Ae.indexOf(we):ce.indexOf(we);if(Te!==-1)return ee.FileIndex[Te];var je=!we.match(py);for(we=we.replace(Jp,""),je&&(we=we.replace(py,"!")),Te=0;Te<Ae.length;++Te)if((je?Ae[Te].replace(py,"!"):Ae[Te]).replace(Jp,"")==we||(je?ce[Te].replace(py,"!"):ce[Te]).replace(Jp,"")==we)return ee.FileIndex[Te];return null}var Q=64,W=-2,J="d0cf11e0a1b11ae1",fe=[208,207,17,224,161,177,26,225],G="00000000000000000000000000000000",se={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:W,FREESECT:-1,HEADER_SIGNATURE:J,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:G,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function ge(ee,ve,Ae){c();var ce=V(ee,Ae);l.writeFileSync(ve,ce)}function ye(ee){for(var ve=new Array(ee.length),Ae=0;Ae<ee.length;++Ae)ve[Ae]=String.fromCharCode(ee[Ae]);return ve.join("")}function _e(ee,ve){var Ae=V(ee,ve);switch(ve&&ve.type||"buffer"){case"file":return c(),l.writeFileSync(ve.filename,Ae),Ae;case"binary":return typeof Ae=="string"?Ae:ye(Ae);case"base64":return T1(typeof Ae=="string"?Ae:ye(Ae));case"buffer":if(en)return Buffer.isBuffer(Ae)?Ae:ou(Ae);case"array":return typeof Ae=="string"?tl(Ae):Ae}return Ae}var Z;function L(ee){try{var ve=ee.InflateRaw,Ae=new ve;if(Ae._processChunk(new Uint8Array([3,0]),Ae._finishFlushFlag),Ae.bytesRead)Z=ee;else throw new Error("zlib does not expose bytesRead")}catch(ce){console.error("cannot use native zlib: "+(ce.message||ce))}}function j(ee,ve){if(!Z)return Nr(ee,ve);var Ae=Z.InflateRaw,ce=new Ae,de=ce._processChunk(ee.slice(ee.l),ce._finishFlushFlag);return ee.l+=ce.bytesRead,de}function K(ee){return Z?Z.deflateRawSync(ee):nr(ee)}var q=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],re=[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],he=[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];function Be(ee){var ve=(ee<<1|ee<<11)&139536|(ee<<5|ee<<15)&558144;return(ve>>16|ve>>8|ve)&255}for(var ae=typeof Uint8Array<"u",be=ae?new Uint8Array(256):[],ke=0;ke<256;++ke)be[ke]=Be(ke);function Fe(ee,ve){var Ae=be[ee&255];return ve<=8?Ae>>>8-ve:(Ae=Ae<<8|be[ee>>8&255],ve<=16?Ae>>>16-ve:(Ae=Ae<<8|be[ee>>16&255],Ae>>>24-ve))}function st(ee,ve){var Ae=ve&7,ce=ve>>>3;return(ee[ce]|(Ae<=6?0:ee[ce+1]<<8))>>>Ae&3}function Ge(ee,ve){var Ae=ve&7,ce=ve>>>3;return(ee[ce]|(Ae<=5?0:ee[ce+1]<<8))>>>Ae&7}function le(ee,ve){var Ae=ve&7,ce=ve>>>3;return(ee[ce]|(Ae<=4?0:ee[ce+1]<<8))>>>Ae&15}function $e(ee,ve){var Ae=ve&7,ce=ve>>>3;return(ee[ce]|(Ae<=3?0:ee[ce+1]<<8))>>>Ae&31}function tt(ee,ve){var Ae=ve&7,ce=ve>>>3;return(ee[ce]|(Ae<=1?0:ee[ce+1]<<8))>>>Ae&127}function wt(ee,ve,Ae){var ce=ve&7,de=ve>>>3,we=(1<<Ae)-1,Te=ee[de]>>>ce;return Ae<8-ce||(Te|=ee[de+1]<<8-ce,Ae<16-ce)||(Te|=ee[de+2]<<16-ce,Ae<24-ce)||(Te|=ee[de+3]<<24-ce),Te&we}function nt(ee,ve,Ae){var ce=ve&7,de=ve>>>3;return ce<=5?ee[de]|=(Ae&7)<<ce:(ee[de]|=Ae<<ce&255,ee[de+1]=(Ae&7)>>8-ce),ve+3}function Tt(ee,ve,Ae){var ce=ve&7,de=ve>>>3;return Ae=(Ae&1)<<ce,ee[de]|=Ae,ve+1}function yt(ee,ve,Ae){var ce=ve&7,de=ve>>>3;return Ae<<=ce,ee[de]|=Ae&255,Ae>>>=8,ee[de+1]=Ae,ve+8}function Ht(ee,ve,Ae){var ce=ve&7,de=ve>>>3;return Ae<<=ce,ee[de]|=Ae&255,Ae>>>=8,ee[de+1]=Ae&255,ee[de+2]=Ae>>>8,ve+16}function It(ee,ve){var Ae=ee.length,ce=2*Ae>ve?2*Ae:ve+5,de=0;if(Ae>=ve)return ee;if(en){var we=rM(ce);if(ee.copy)ee.copy(we);else for(;de<ee.length;++de)we[de]=ee[de];return we}else if(ae){var Te=new Uint8Array(ce);if(Te.set)Te.set(ee);else for(;de<Ae;++de)Te[de]=ee[de];return Te}return ee.length=ce,ee}function Vt(ee){for(var ve=new Array(ee),Ae=0;Ae<ee;++Ae)ve[Ae]=0;return ve}function cr(ee,ve,Ae){var ce=1,de=0,we=0,Te=0,je=0,Ne=ee.length,Ie=ae?new Uint16Array(32):Vt(32);for(we=0;we<32;++we)Ie[we]=0;for(we=Ne;we<Ae;++we)ee[we]=0;Ne=ee.length;var Pe=ae?new Uint16Array(Ne):Vt(Ne);for(we=0;we<Ne;++we)Ie[de=ee[we]]++,ce<de&&(ce=de),Pe[we]=0;for(Ie[0]=0,we=1;we<=ce;++we)Ie[we+16]=je=je+Ie[we-1]<<1;for(we=0;we<Ne;++we)je=ee[we],je!=0&&(Pe[we]=Ie[je+16]++);var ot=0;for(we=0;we<Ne;++we)if(ot=ee[we],ot!=0)for(je=Fe(Pe[we],ce)>>ce-ot,Te=(1<<ce+4-ot)-1;Te>=0;--Te)ve[je|Te<<ot]=ot&15|we<<4;return ce}var Jt=ae?new Uint16Array(512):Vt(512),ur=ae?new Uint16Array(32):Vt(32);if(!ae){for(var rr=0;rr<512;++rr)Jt[rr]=0;for(rr=0;rr<32;++rr)ur[rr]=0}(function(){for(var ee=[],ve=0;ve<32;ve++)ee.push(5);cr(ee,ur,32);var Ae=[];for(ve=0;ve<=143;ve++)Ae.push(8);for(;ve<=255;ve++)Ae.push(9);for(;ve<=279;ve++)Ae.push(7);for(;ve<=287;ve++)Ae.push(8);cr(Ae,Jt,288)})();var Et=(function(){for(var ve=ae?new Uint8Array(32768):[],Ae=0,ce=0;Ae<he.length-1;++Ae)for(;ce<he[Ae+1];++ce)ve[ce]=Ae;for(;ce<32768;++ce)ve[ce]=29;var de=ae?new Uint8Array(259):[];for(Ae=0,ce=0;Ae<re.length-1;++Ae)for(;ce<re[Ae+1];++ce)de[ce]=Ae;function we(je,Ne){for(var Ie=0;Ie<je.length;){var Pe=Math.min(65535,je.length-Ie),ot=Ie+Pe==je.length;for(Ne.write_shift(1,+ot),Ne.write_shift(2,Pe),Ne.write_shift(2,~Pe&65535);Pe-- >0;)Ne[Ne.l++]=je[Ie++]}return Ne.l}function Te(je,Ne){for(var Ie=0,Pe=0,ot=ae?new Uint16Array(32768):[];Pe<je.length;){var ft=Math.min(65535,je.length-Pe);if(ft<10){for(Ie=nt(Ne,Ie,+(Pe+ft==je.length)),Ie&7&&(Ie+=8-(Ie&7)),Ne.l=Ie/8|0,Ne.write_shift(2,ft),Ne.write_shift(2,~ft&65535);ft-- >0;)Ne[Ne.l++]=je[Pe++];Ie=Ne.l*8;continue}Ie=nt(Ne,Ie,+(Pe+ft==je.length)+2);for(var pt=0;ft-- >0;){var ut=je[Pe];pt=(pt<<5^ut)&32767;var dt=-1,_t=0;if((dt=ot[pt])&&(dt|=Pe&-32768,dt>Pe&&(dt-=32768),dt<Pe))for(;je[dt+_t]==je[Pe+_t]&&_t<250;)++_t;if(_t>2){ut=de[_t],ut<=22?Ie=yt(Ne,Ie,be[ut+1]>>1)-1:(yt(Ne,Ie,3),Ie+=5,yt(Ne,Ie,be[ut-23]>>5),Ie+=3);var $r=ut<8?0:ut-4>>2;$r>0&&(Ht(Ne,Ie,_t-re[ut]),Ie+=$r),ut=ve[Pe-dt],Ie=yt(Ne,Ie,be[ut]>>3),Ie-=3;var br=ut<4?0:ut-2>>1;br>0&&(Ht(Ne,Ie,Pe-dt-he[ut]),Ie+=br);for(var tn=0;tn<_t;++tn)ot[pt]=Pe&32767,pt=(pt<<5^je[Pe])&32767,++Pe;ft-=_t-1}else ut<=143?ut=ut+48:Ie=Tt(Ne,Ie,1),Ie=yt(Ne,Ie,be[ut]),ot[pt]=Pe&32767,++Pe}Ie=yt(Ne,Ie,0)-1}return Ne.l=(Ie+7)/8|0,Ne.l}return function(Ne,Ie){return Ne.length<8?we(Ne,Ie):Te(Ne,Ie)}})();function nr(ee){var ve=Xe(50+Math.floor(ee.length*1.1)),Ae=Et(ee,ve);return ve.slice(0,Ae)}var Ot=ae?new Uint16Array(32768):Vt(32768),dn=ae?new Uint16Array(32768):Vt(32768),or=ae?new Uint16Array(128):Vt(128),Kt=1,Xt=1;function vr(ee,ve){var Ae=$e(ee,ve)+257;ve+=5;var ce=$e(ee,ve)+1;ve+=5;var de=le(ee,ve)+4;ve+=4;for(var we=0,Te=ae?new Uint8Array(19):Vt(19),je=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],Ne=1,Ie=ae?new Uint8Array(8):Vt(8),Pe=ae?new Uint8Array(8):Vt(8),ot=Te.length,ft=0;ft<de;++ft)Te[q[ft]]=we=Ge(ee,ve),Ne<we&&(Ne=we),Ie[we]++,ve+=3;var pt=0;for(Ie[0]=0,ft=1;ft<=Ne;++ft)Pe[ft]=pt=pt+Ie[ft-1]<<1;for(ft=0;ft<ot;++ft)(pt=Te[ft])!=0&&(je[ft]=Pe[pt]++);var ut=0;for(ft=0;ft<ot;++ft)if(ut=Te[ft],ut!=0){pt=be[je[ft]]>>8-ut;for(var dt=(1<<7-ut)-1;dt>=0;--dt)or[pt|dt<<ut]=ut&7|ft<<3}var _t=[];for(Ne=1;_t.length<Ae+ce;)switch(pt=or[tt(ee,ve)],ve+=pt&7,pt>>>=3){case 16:for(we=3+st(ee,ve),ve+=2,pt=_t[_t.length-1];we-- >0;)_t.push(pt);break;case 17:for(we=3+Ge(ee,ve),ve+=3;we-- >0;)_t.push(0);break;case 18:for(we=11+tt(ee,ve),ve+=7;we-- >0;)_t.push(0);break;default:_t.push(pt),Ne<pt&&(Ne=pt);break}var $r=_t.slice(0,Ae),br=_t.slice(Ae);for(ft=Ae;ft<286;++ft)$r[ft]=0;for(ft=ce;ft<30;++ft)br[ft]=0;return Kt=cr($r,Ot,286),Xt=cr(br,dn,30),ve}function Rt(ee,ve){if(ee[0]==3&&!(ee[1]&3))return[zh(ve),2];for(var Ae=0,ce=0,de=rM(ve||1<<18),we=0,Te=de.length>>>0,je=0,Ne=0;(ce&1)==0;){if(ce=Ge(ee,Ae),Ae+=3,ce>>>1)ce>>1==1?(je=9,Ne=5):(Ae=vr(ee,Ae),je=Kt,Ne=Xt);else{Ae&7&&(Ae+=8-(Ae&7));var Ie=ee[Ae>>>3]|ee[(Ae>>>3)+1]<<8;if(Ae+=32,Ie>0)for(!ve&&Te<we+Ie&&(de=It(de,we+Ie),Te=de.length);Ie-- >0;)de[we++]=ee[Ae>>>3],Ae+=8;continue}for(;;){!ve&&Te<we+32767&&(de=It(de,we+32767),Te=de.length);var Pe=wt(ee,Ae,je),ot=ce>>>1==1?Jt[Pe]:Ot[Pe];if(Ae+=ot&15,ot>>>=4,(ot>>>8&255)===0)de[we++]=ot;else{if(ot==256)break;ot-=257;var ft=ot<8?0:ot-4>>2;ft>5&&(ft=0);var pt=we+re[ot];ft>0&&(pt+=wt(ee,Ae,ft),Ae+=ft),Pe=wt(ee,Ae,Ne),ot=ce>>>1==1?ur[Pe]:dn[Pe],Ae+=ot&15,ot>>>=4;var ut=ot<4?0:ot-2>>1,dt=he[ot];for(ut>0&&(dt+=wt(ee,Ae,ut),Ae+=ut),!ve&&Te<pt&&(de=It(de,pt+100),Te=de.length);we<pt;)de[we]=de[we-dt],++we}}}return ve?[de,Ae+7>>>3]:[de.slice(0,we),Ae+7>>>3]}function Nr(ee,ve){var Ae=ee.slice(ee.l||0),ce=Rt(Ae,ve);return ee.l+=ce[1],ce[0]}function Gt(ee,ve){if(ee)typeof console<"u"&&console.error(ve);else throw new Error(ve)}function $t(ee,ve){var Ae=ee;To(Ae,0);var ce=[],de=[],we={FileIndex:ce,FullPaths:de};P(we,{root:ve.root});for(var Te=Ae.length-4;(Ae[Te]!=80||Ae[Te+1]!=75||Ae[Te+2]!=5||Ae[Te+3]!=6)&&Te>=0;)--Te;Ae.l=Te+4,Ae.l+=4;var je=Ae.read_shift(2);Ae.l+=6;var Ne=Ae.read_shift(4);for(Ae.l=Ne,Te=0;Te<je;++Te){Ae.l+=20;var Ie=Ae.read_shift(4),Pe=Ae.read_shift(4),ot=Ae.read_shift(2),ft=Ae.read_shift(2),pt=Ae.read_shift(2);Ae.l+=8;var ut=Ae.read_shift(4),dt=o(Ae.slice(Ae.l+ot,Ae.l+ot+ft));Ae.l+=ot+ft+pt;var _t=Ae.l;Ae.l=ut+4,Rr(Ae,Ie,Pe,we,dt),Ae.l=_t}return we}function Rr(ee,ve,Ae,ce,de){ee.l+=2;var we=ee.read_shift(2),Te=ee.read_shift(2),je=s(ee);if(we&8257)throw new Error("Unsupported ZIP encryption");for(var Ne=ee.read_shift(4),Ie=ee.read_shift(4),Pe=ee.read_shift(4),ot=ee.read_shift(2),ft=ee.read_shift(2),pt="",ut=0;ut<ot;++ut)pt+=String.fromCharCode(ee[ee.l++]);if(ft){var dt=o(ee.slice(ee.l,ee.l+ft));(dt[21589]||{}).mt&&(je=dt[21589].mt),((de||{})[21589]||{}).mt&&(je=de[21589].mt)}ee.l+=ft;var _t=ee.slice(ee.l,ee.l+Ie);switch(Te){case 8:_t=j(ee,Pe);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+Te)}var $r=!1;we&8&&(Ne=ee.read_shift(4),Ne==134695760&&(Ne=ee.read_shift(4),$r=!0),Ie=ee.read_shift(4),Pe=ee.read_shift(4)),Ie!=ve&&Gt($r,"Bad compressed size: "+ve+" != "+Ie),Pe!=Ae&&Gt($r,"Bad uncompressed size: "+Ae+" != "+Pe),ii(ce,pt,_t,{unsafe:!0,mt:je})}function sr(ee,ve){var Ae=ve||{},ce=[],de=[],we=Xe(1),Te=Ae.compression?8:0,je=0,Ne=0,Ie=0,Pe=0,ot=0,ft=ee.FullPaths[0],pt=ft,ut=ee.FileIndex[0],dt=[],_t=0;for(Ne=1;Ne<ee.FullPaths.length;++Ne)if(pt=ee.FullPaths[Ne].slice(ft.length),ut=ee.FileIndex[Ne],!(!ut.size||!ut.content||pt=="Sh33tJ5")){var $r=Pe,br=Xe(pt.length);for(Ie=0;Ie<pt.length;++Ie)br.write_shift(1,pt.charCodeAt(Ie)&127);br=br.slice(0,br.l),dt[ot]=zwe.buf(ut.content,0);var tn=ut.content;Te==8&&(tn=K(tn)),we=Xe(30),we.write_shift(4,67324752),we.write_shift(2,20),we.write_shift(2,je),we.write_shift(2,Te),ut.mt?a(we,ut.mt):we.write_shift(4,0),we.write_shift(-4,dt[ot]),we.write_shift(4,tn.length),we.write_shift(4,ut.content.length),we.write_shift(2,br.length),we.write_shift(2,0),Pe+=we.length,ce.push(we),Pe+=br.length,ce.push(br),Pe+=tn.length,ce.push(tn),we=Xe(46),we.write_shift(4,33639248),we.write_shift(2,0),we.write_shift(2,20),we.write_shift(2,je),we.write_shift(2,Te),we.write_shift(4,0),we.write_shift(-4,dt[ot]),we.write_shift(4,tn.length),we.write_shift(4,ut.content.length),we.write_shift(2,br.length),we.write_shift(2,0),we.write_shift(2,0),we.write_shift(2,0),we.write_shift(2,0),we.write_shift(4,0),we.write_shift(4,$r),_t+=we.l,de.push(we),_t+=br.length,de.push(br),++ot}return we=Xe(22),we.write_shift(4,101010256),we.write_shift(2,0),we.write_shift(2,0),we.write_shift(2,ot),we.write_shift(2,ot),we.write_shift(4,_t),we.write_shift(4,Pe),we.write_shift(2,0),za([za(ce),za(de),we])}var mt={htm:"text/html",xml:"text/xml",gif:"image/gif",jpg:"image/jpeg",png:"image/png",mso:"application/x-mso",thmx:"application/vnd.ms-officetheme",sh33tj5:"application/octet-stream"};function Zt(ee,ve){if(ee.ctype)return ee.ctype;var Ae=ee.name||"",ce=Ae.match(/\.([^\.]+)$/);return ce&&mt[ce[1]]||ve&&(ce=(Ae=ve).match(/[\.\\]([^\.\\])+$/),ce&&mt[ce[1]])?mt[ce[1]]:"application/octet-stream"}function Pi(ee){for(var ve=T1(ee),Ae=[],ce=0;ce<ve.length;ce+=76)Ae.push(ve.slice(ce,ce+76));return Ae.join(`\r
`)+`\r
`}function fr(ee){var ve=ee.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,function(Ie){var Pe=Ie.charCodeAt(0).toString(16).toUpperCase();return"="+(Pe.length==1?"0"+Pe:Pe)});ve=ve.replace(/ $/mg,"=20").replace(/\t$/mg,"=09"),ve.charAt(0)==`
`&&(ve="=0D"+ve.slice(1)),ve=ve.replace(/\r(?!\n)/mg,"=0D").replace(/\n\n/mg,`
=0A`).replace(/([^\r\n])\n/mg,"$1=0A");for(var Ae=[],ce=ve.split(`\r
`),de=0;de<ce.length;++de){var we=ce[de];if(we.length==0){Ae.push("");continue}for(var Te=0;Te<we.length;){var je=76,Ne=we.slice(Te,Te+je);Ne.charAt(je-1)=="="?je--:Ne.charAt(je-2)=="="?je-=2:Ne.charAt(je-3)=="="&&(je-=3),Ne=we.slice(Te,Te+je),Te+=je,Te<we.length&&(Ne+="="),Ae.push(Ne)}}return Ae.join(`\r
`)}function In(ee){for(var ve=[],Ae=0;Ae<ee.length;++Ae){for(var ce=ee[Ae];Ae<=ee.length&&ce.charAt(ce.length-1)=="=";)ce=ce.slice(0,ce.length-1)+ee[++Ae];ve.push(ce)}for(var de=0;de<ve.length;++de)ve[de]=ve[de].replace(/[=][0-9A-Fa-f]{2}/g,function(we){return String.fromCharCode(parseInt(we.slice(1),16))});return tl(ve.join(`\r
`))}function fa(ee,ve,Ae){for(var ce="",de="",we="",Te,je=0;je<10;++je){var Ne=ve[je];if(!Ne||Ne.match(/^\s*$/))break;var Ie=Ne.match(/^(.*?):\s*([^\s].*)$/);if(Ie)switch(Ie[1].toLowerCase()){case"content-location":ce=Ie[2].trim();break;case"content-type":we=Ie[2].trim();break;case"content-transfer-encoding":de=Ie[2].trim();break}}switch(++je,de.toLowerCase()){case"base64":Te=tl(Xc(ve.slice(je).join("")));break;case"quoted-printable":Te=In(ve.slice(je));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+de)}var Pe=ii(ee,ce.slice(Ae.length),Te,{unsafe:!0});we&&(Pe.ctype=we)}function Mt(ee,ve){if(ye(ee.slice(0,13)).toLowerCase()!="mime-version:")throw new Error("Unsupported MAD header");var Ae=ve&&ve.root||"",ce=(en&&Buffer.isBuffer(ee)?ee.toString("binary"):ye(ee)).split(`\r
`),de=0,we="";for(de=0;de<ce.length;++de)if(we=ce[de],!!/^Content-Location:/i.test(we)&&(we=we.slice(we.indexOf("file")),Ae||(Ae=we.slice(0,we.lastIndexOf("/")+1)),we.slice(0,Ae.length)!=Ae))for(;Ae.length>0&&(Ae=Ae.slice(0,Ae.length-1),Ae=Ae.slice(0,Ae.lastIndexOf("/")+1),we.slice(0,Ae.length)!=Ae););var Te=(ce[1]||"").match(/boundary="(.*?)"/);if(!Te)throw new Error("MAD cannot find boundary");var je="--"+(Te[1]||""),Ne=[],Ie=[],Pe={FileIndex:Ne,FullPaths:Ie};P(Pe);var ot,ft=0;for(de=0;de<ce.length;++de){var pt=ce[de];pt!==je&&pt!==je+"--"||(ft++&&fa(Pe,ce.slice(ot,de),Ae),ot=de)}return Pe}function Ja(ee,ve){var Ae=ve||{},ce=Ae.boundary||"SheetJS";ce="------="+ce;for(var de=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+ce.slice(2)+'"',"","",""],we=ee.FullPaths[0],Te=we,je=ee.FileIndex[0],Ne=1;Ne<ee.FullPaths.length;++Ne)if(Te=ee.FullPaths[Ne].slice(we.length),je=ee.FileIndex[Ne],!(!je.size||!je.content||Te=="Sh33tJ5")){Te=Te.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,function(_t){return"_x"+_t.charCodeAt(0).toString(16)+"_"}).replace(/[\u0080-\uFFFF]/g,function(_t){return"_u"+_t.charCodeAt(0).toString(16)+"_"});for(var Ie=je.content,Pe=en&&Buffer.isBuffer(Ie)?Ie.toString("binary"):ye(Ie),ot=0,ft=Math.min(1024,Pe.length),pt=0,ut=0;ut<=ft;++ut)(pt=Pe.charCodeAt(ut))>=32&&pt<128&&++ot;var dt=ot>=ft*4/5;de.push(ce),de.push("Content-Location: "+(Ae.root||"file:///C:/SheetJS/")+Te),de.push("Content-Transfer-Encoding: "+(dt?"quoted-printable":"base64")),de.push("Content-Type: "+Zt(je,Te)),de.push(""),de.push(dt?fr(Pe):Pi(Pe))}return de.push(ce+`--\r
`),de.join(`\r
`)}function Fa(ee){var ve={};return P(ve,ee),ve}function ii(ee,ve,Ae,ce){var de=ce&&ce.unsafe;de||P(ee);var we=!de&&Bn.find(ee,ve);if(!we){var Te=ee.FullPaths[0];ve.slice(0,Te.length)==Te?Te=ve:(Te.slice(-1)!="/"&&(Te+="/"),Te=(Te+ve).replace("//","/")),we={name:i(ve),type:2},ee.FileIndex.push(we),ee.FullPaths.push(Te),de||Bn.utils.cfb_gc(ee)}return we.content=Ae,we.size=Ae?Ae.length:0,ce&&(ce.CLSID&&(we.clsid=ce.CLSID),ce.mt&&(we.mt=ce.mt),ce.ct&&(we.ct=ce.ct)),we}function fi(ee,ve){P(ee);var Ae=Bn.find(ee,ve);if(Ae){for(var ce=0;ce<ee.FileIndex.length;++ce)if(ee.FileIndex[ce]==Ae)return ee.FileIndex.splice(ce,1),ee.FullPaths.splice(ce,1),!0}return!1}function zr(ee,ve,Ae){P(ee);var ce=Bn.find(ee,ve);if(ce){for(var de=0;de<ee.FileIndex.length;++de)if(ee.FileIndex[de]==ce)return ee.FileIndex[de].name=i(Ae),ee.FullPaths[de]=Ae,!0}return!1}function gn(ee){O(ee,!0)}return t.find=I,t.read=k,t.parse=f,t.write=_e,t.writeFile=ge,t.utils={cfb_new:Fa,cfb_add:ii,cfb_del:fi,cfb_mov:zr,cfb_gc:gn,ReadShift:e1,CheckField:Dz,prep_blob:To,bconcat:za,use_zlib:L,_deflateRaw:nr,_inflateRaw:Nr,consts:se},t})();function Vwe(e){return typeof e=="string"?kx(e):Array.isArray(e)?vwe(e):e}function yv(e,t,r){if(typeof Deno<"u"){if(r&&typeof t=="string")switch(r){case"utf8":t=new TextEncoder(r).encode(t);break;case"binary":t=kx(t);break;default:throw new Error("Unsupported encoding "+r)}return Deno.writeFileSync(e,t)}var n=r=="utf8"?U1(t):t;if(typeof IE_SaveFile<"u")return IE_SaveFile(n,e);if(typeof Blob<"u"){var i=new Blob([Vwe(n)],{type:"application/octet-stream"});if(typeof navigator<"u"&&navigator.msSaveBlob)return navigator.msSaveBlob(i,e);if(typeof saveAs<"u")return saveAs(i,e);if(typeof URL<"u"&&typeof document<"u"&&document.createElement&&URL.createObjectURL){var a=URL.createObjectURL(i);if(typeof chrome=="object"&&typeof(chrome.downloads||{}).download=="function")return URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(a)},6e4),chrome.downloads.download({url:a,filename:e,saveAs:!0});var s=document.createElement("a");if(s.download!=null)return s.download=e,s.href=a,document.body.appendChild(s),s.click(),document.body.removeChild(s),URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(a)},6e4),a}}if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var o=File(e);return o.open("w"),o.encoding="binary",Array.isArray(t)&&(t=mv(t)),o.write(t),o.close(),t}catch(l){if(!l.message||!l.message.match(/onstruct/))throw l}throw new Error("cannot save file "+e)}function $a(e){for(var t=Object.keys(e),r=[],n=0;n<t.length;++n)Object.prototype.hasOwnProperty.call(e,t[n])&&r.push(t[n]);return r}function cM(e,t){for(var r=[],n=$a(e),i=0;i!==n.length;++i)r[e[n[i]][t]]==null&&(r[e[n[i]][t]]=n[i]);return r}function lF(e){for(var t=[],r=$a(e),n=0;n!==r.length;++n)t[e[r[n]]]=r[n];return t}function jx(e){for(var t=[],r=$a(e),n=0;n!==r.length;++n)t[e[r[n]]]=parseInt(r[n],10);return t}function Gwe(e){for(var t=[],r=$a(e),n=0;n!==r.length;++n)t[e[r[n]]]==null&&(t[e[r[n]]]=[]),t[e[r[n]]].push(r[n]);return t}var dw=new Date(1899,11,30,0,0,0);function io(e,t){var r=e.getTime(),n=dw.getTime()+(e.getTimezoneOffset()-dw.getTimezoneOffset())*6e4;return(r-n)/(1440*60*1e3)}var vz=new Date,qwe=dw.getTime()+(vz.getTimezoneOffset()-dw.getTimezoneOffset())*6e4,uM=vz.getTimezoneOffset();function mz(e){var t=new Date;return t.setTime(e*24*60*60*1e3+qwe),t.getTimezoneOffset()!==uM&&t.setTime(t.getTime()+(t.getTimezoneOffset()-uM)*6e4),t}var fM=new Date("2017-02-19T19:06:09.000Z"),yz=isNaN(fM.getFullYear())?new Date("2/19/17"):fM,Wwe=yz.getFullYear()==2017;function Ts(e,t){var r=new Date(e);if(Wwe)return t>0?r.setTime(r.getTime()+r.getTimezoneOffset()*60*1e3):t<0&&r.setTime(r.getTime()-r.getTimezoneOffset()*60*1e3),r;if(e instanceof Date)return e;if(yz.getFullYear()==1917&&!isNaN(r.getFullYear())){var n=r.getFullYear();return e.indexOf(""+n)>-1||r.setFullYear(r.getFullYear()+100),r}var i=e.match(/\d+/g)||["2017","2","19","0","0","0"],a=new Date(+i[0],+i[1]-1,+i[2],+i[3]||0,+i[4]||0,+i[5]||0);return e.indexOf("Z")>-1&&(a=new Date(a.getTime()-a.getTimezoneOffset()*60*1e3)),a}function Hx(e,t){if(en&&Buffer.isBuffer(e))return e.toString("binary");if(typeof TextDecoder<"u")try{var r={"€":"","‚":"",ƒ:"","„":"","…":"","†":"","‡":"","ˆ":"","‰":"",Š:"","‹":"",Œ:"",Ž:"","‘":"","’":"","“":"","”":"","•":"","–":"","—":"","˜":"","™":"",š:"","›":"",œ:"",ž:"",Ÿ:""};return Array.isArray(e)&&(e=new Uint8Array(e)),new TextDecoder("latin1").decode(e).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,function(a){return r[a]||a})}catch{}for(var n=[],i=0;i!=e.length;++i)n.push(String.fromCharCode(e[i]));return n.join("")}function ao(e){if(typeof JSON<"u"&&!Array.isArray(e))return JSON.parse(JSON.stringify(e));if(typeof e!="object"||e==null)return e;if(e instanceof Date)return new Date(e.getTime());var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=ao(e[r]));return t}function bi(e,t){for(var r="";r.length<t;)r+=e;return r}function Hc(e){var t=Number(e);if(!isNaN(t))return isFinite(t)?t:NaN;if(!/\d/.test(e))return t;var r=1,n=e.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,function(){return r*=100,""});return!isNaN(t=Number(n))||(n=n.replace(/[(](.*)[)]/,function(i,a){return r=-r,a}),!isNaN(t=Number(n)))?t/r:t}var Ywe=["january","february","march","april","may","june","july","august","september","october","november","december"];function O1(e){var t=new Date(e),r=new Date(NaN),n=t.getYear(),i=t.getMonth(),a=t.getDate();if(isNaN(a))return r;var s=e.toLowerCase();if(s.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if(s=s.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,""),s.length>3&&Ywe.indexOf(s)==-1)return r}else if(s.match(/[a-z]/))return r;return n<0||n>8099?r:(i>0||a>1)&&n!=101?t:e.match(/[^-0-9:,\/\\]/)?r:t}function xr(e,t,r){if(e.FullPaths){if(typeof r=="string"){var n;return en?n=ou(r):n=mwe(r),Bn.utils.cfb_add(e,t,n)}Bn.utils.cfb_add(e,t,r)}else e.file(t,r)}function cF(){return Bn.utils.cfb_new()}var Wi=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r
`,$we={"&quot;":'"',"&apos;":"'","&gt;":">","&lt;":"<","&amp;":"&"},uF=lF($we),fF=/[&<>'"]/g,Xwe=/[\u0000-\u0008\u000b-\u001f]/g;function fn(e){var t=e+"";return t.replace(fF,function(r){return uF[r]}).replace(Xwe,function(r){return"_x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+"_"})}function hM(e){return fn(e).replace(/ /g,"_x0020_")}var wz=/[\u0000-\u001f]/g;function Jwe(e){var t=e+"";return t.replace(fF,function(r){return uF[r]}).replace(/\n/g,"<br/>").replace(wz,function(r){return"&#x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+";"})}function Zwe(e){var t=e+"";return t.replace(fF,function(r){return uF[r]}).replace(wz,function(r){return"&#x"+r.charCodeAt(0).toString(16).toUpperCase()+";"})}function exe(e){return e.replace(/(\r\n|[\r\n])/g,"&#10;")}function txe(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function QC(e){for(var t="",r=0,n=0,i=0,a=0,s=0,o=0;r<e.length;){if(n=e.charCodeAt(r++),n<128){t+=String.fromCharCode(n);continue}if(i=e.charCodeAt(r++),n>191&&n<224){s=(n&31)<<6,s|=i&63,t+=String.fromCharCode(s);continue}if(a=e.charCodeAt(r++),n<240){t+=String.fromCharCode((n&15)<<12|(i&63)<<6|a&63);continue}s=e.charCodeAt(r++),o=((n&7)<<18|(i&63)<<12|(a&63)<<6|s&63)-65536,t+=String.fromCharCode(55296+(o>>>10&1023)),t+=String.fromCharCode(56320+(o&1023))}return t}function dM(e){var t=zh(2*e.length),r,n,i=1,a=0,s=0,o;for(n=0;n<e.length;n+=i)i=1,(o=e.charCodeAt(n))<128?r=o:o<224?(r=(o&31)*64+(e.charCodeAt(n+1)&63),i=2):o<240?(r=(o&15)*4096+(e.charCodeAt(n+1)&63)*64+(e.charCodeAt(n+2)&63),i=3):(i=4,r=(o&7)*262144+(e.charCodeAt(n+1)&63)*4096+(e.charCodeAt(n+2)&63)*64+(e.charCodeAt(n+3)&63),r-=65536,s=55296+(r>>>10&1023),r=56320+(r&1023)),s!==0&&(t[a++]=s&255,t[a++]=s>>>8,s=0),t[a++]=r%256,t[a++]=r>>>8;return t.slice(0,a).toString("ucs2")}function gM(e){return ou(e,"binary").toString("utf8")}var my="foo bar bazâð£",Zp=en&&(gM(my)==QC(my)&&gM||dM(my)==QC(my)&&dM)||QC,U1=en?function(e){return ou(e,"utf8").toString("binary")}:function(e){for(var t=[],r=0,n=0,i=0;r<e.length;)switch(n=e.charCodeAt(r++),!0){case n<128:t.push(String.fromCharCode(n));break;case n<2048:t.push(String.fromCharCode(192+(n>>6))),t.push(String.fromCharCode(128+(n&63)));break;case(n>=55296&&n<57344):n-=55296,i=e.charCodeAt(r++)-56320+(n<<10),t.push(String.fromCharCode(240+(i>>18&7))),t.push(String.fromCharCode(144+(i>>12&63))),t.push(String.fromCharCode(128+(i>>6&63))),t.push(String.fromCharCode(128+(i&63)));break;default:t.push(String.fromCharCode(224+(n>>12))),t.push(String.fromCharCode(128+(n>>6&63))),t.push(String.fromCharCode(128+(n&63)))}return t.join("")},rxe=(function(){var e=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(t){return[new RegExp("&"+t[0]+";","ig"),t[1]]});return function(r){for(var n=r.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+</g,"<").replace(/[\t\n\r ]+/g," ").replace(/<\s*[bB][rR]\s*\/?>/g,`
`).replace(/<[^>]*>/g,""),i=0;i<e.length;++i)n=n.replace(e[i][0],e[i][1]);return n}})(),xz=/(^\s|\s$|\n)/;function Va(e,t){return"<"+e+(t.match(xz)?' xml:space="preserve"':"")+">"+t+"</"+e+">"}function N1(e){return $a(e).map(function(t){return" "+t+'="'+e[t]+'"'}).join("")}function ht(e,t,r){return"<"+e+(r!=null?N1(r):"")+(t!=null?(t.match(xz)?' xml:space="preserve"':"")+">"+t+"</"+e:"/")+">"}function p4(e,t){try{return e.toISOString().replace(/\.\d*/,"")}catch(r){if(t)throw r}return""}function nxe(e,t){switch(typeof e){case"string":var r=ht("vt:lpwstr",fn(e));return r=r.replace(/&quot;/g,"_x0022_"),r;case"number":return ht((e|0)==e?"vt:i4":"vt:r8",fn(String(e)));case"boolean":return ht("vt:bool",e?"true":"false")}if(e instanceof Date)return ht("vt:filetime",p4(e));throw new Error("Unable to serialize "+e)}var Ba={CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",CT:"http://schemas.openxmlformats.org/package/2006/content-types",RELS:"http://schemas.openxmlformats.org/package/2006/relationships",TCMNT:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"},yg=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"],Uo={o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",dt:"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",mv:"http://macVmlSchemaUri",v:"urn:schemas-microsoft-com:vml",html:"http://www.w3.org/TR/REC-html40"};function ixe(e,t){for(var r=1-2*(e[t+7]>>>7),n=((e[t+7]&127)<<4)+(e[t+6]>>>4&15),i=e[t+6]&15,a=5;a>=0;--a)i=i*256+e[t+a];return n==2047?i==0?r*(1/0):NaN:(n==0?n=-1022:(n-=1023,i+=Math.pow(2,52)),r*Math.pow(2,n-52)*i)}function axe(e,t,r){var n=(t<0||1/t==-1/0?1:0)<<7,i=0,a=0,s=n?-t:t;isFinite(s)?s==0?i=a=0:(i=Math.floor(Math.log(s)/Math.LN2),a=s*Math.pow(2,52-i),i<=-1023&&(!isFinite(a)||a<Math.pow(2,52))?i=-1022:(a-=Math.pow(2,52),i+=1023)):(i=2047,a=isNaN(t)?26985:0);for(var o=0;o<=5;++o,a/=256)e[r+o]=a&255;e[r+6]=(i&15)<<4|a&15,e[r+7]=i>>4|n}var pM=function(e){for(var t=[],r=10240,n=0;n<e[0].length;++n)if(e[0][n])for(var i=0,a=e[0][n].length;i<a;i+=r)t.push.apply(t,e[0][n].slice(i,i+r));return t},vM=en?function(e){return e[0].length>0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map(function(t){return Buffer.isBuffer(t)?t:ou(t)})):pM(e)}:pM,mM=function(e,t,r){for(var n=[],i=t;i<r;i+=2)n.push(String.fromCharCode(Rp(e,i)));return n.join("").replace(Jp,"")},hF=en?function(e,t,r){return Buffer.isBuffer(e)?e.toString("utf16le",t,r).replace(Jp,""):mM(e,t,r)}:mM,yM=function(e,t,r){for(var n=[],i=t;i<t+r;++i)n.push(("0"+e[i].toString(16)).slice(-2));return n.join("")},bz=en?function(e,t,r){return Buffer.isBuffer(e)?e.toString("hex",t,t+r):yM(e,t,r)}:yM,wM=function(e,t,r){for(var n=[],i=t;i<r;i++)n.push(String.fromCharCode(w0(e,i)));return n.join("")},wv=en?function(t,r,n){return Buffer.isBuffer(t)?t.toString("utf8",r,n):wM(t,r,n)}:wM,Bz=function(e,t){var r=No(e,t);return r>0?wv(e,t+4,t+4+r-1):""},Cz=Bz,Ez=function(e,t){var r=No(e,t);return r>0?wv(e,t+4,t+4+r-1):""},_z=Ez,Sz=function(e,t){var r=2*No(e,t);return r>0?wv(e,t+4,t+4+r-1):""},Fz=Sz,Tz=function(t,r){var n=No(t,r);return n>0?hF(t,r+4,r+4+n):""},Oz=Tz,Uz=function(e,t){var r=No(e,t);return r>0?wv(e,t+4,t+4+r):""},Nz=Uz,Lz=function(e,t){return ixe(e,t)},gw=Lz,dF=function(t){return Array.isArray(t)||typeof Uint8Array<"u"&&t instanceof Uint8Array};en&&(Cz=function(t,r){if(!Buffer.isBuffer(t))return Bz(t,r);var n=t.readUInt32LE(r);return n>0?t.toString("utf8",r+4,r+4+n-1):""},_z=function(t,r){if(!Buffer.isBuffer(t))return Ez(t,r);var n=t.readUInt32LE(r);return n>0?t.toString("utf8",r+4,r+4+n-1):""},Fz=function(t,r){if(!Buffer.isBuffer(t))return Sz(t,r);var n=2*t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+n-1)},Oz=function(t,r){if(!Buffer.isBuffer(t))return Tz(t,r);var n=t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+n)},Nz=function(t,r){if(!Buffer.isBuffer(t))return Uz(t,r);var n=t.readUInt32LE(r);return t.toString("utf8",r+4,r+4+n)},gw=function(t,r){return Buffer.isBuffer(t)?t.readDoubleLE(r):Lz(t,r)},dF=function(t){return Buffer.isBuffer(t)||Array.isArray(t)||typeof Uint8Array<"u"&&t instanceof Uint8Array});var w0=function(e,t){return e[t]},Rp=function(e,t){return e[t+1]*256+e[t]},sxe=function(e,t){var r=e[t+1]*256+e[t];return r<32768?r:(65535-r+1)*-1},No=function(e,t){return e[t+3]*(1<<24)+(e[t+2]<<16)+(e[t+1]<<8)+e[t]},vh=function(e,t){return e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]},oxe=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]};function e1(e,t){var r="",n,i,a=[],s,o,l,c;switch(t){case"dbcs":if(c=this.l,en&&Buffer.isBuffer(this))r=this.slice(this.l,this.l+2*e).toString("utf16le");else for(l=0;l<e;++l)r+=String.fromCharCode(Rp(this,c)),c+=2;e*=2;break;case"utf8":r=wv(this,this.l,this.l+e);break;case"utf16le":e*=2,r=hF(this,this.l,this.l+e);break;case"wstr":return e1.call(this,e,"dbcs");case"lpstr-ansi":r=Cz(this,this.l),e=4+No(this,this.l);break;case"lpstr-cp":r=_z(this,this.l),e=4+No(this,this.l);break;case"lpwstr":r=Fz(this,this.l),e=4+2*No(this,this.l);break;case"lpp4":e=4+No(this,this.l),r=Oz(this,this.l),e&2&&(e+=2);break;case"8lpp4":e=4+No(this,this.l),r=Nz(this,this.l),e&3&&(e+=4-(e&3));break;case"cstr":for(e=0,r="";(s=w0(this,this.l+e++))!==0;)a.push(gy(s));r=a.join("");break;case"_wstr":for(e=0,r="";(s=Rp(this,this.l+e))!==0;)a.push(gy(s)),e+=2;e+=2,r=a.join("");break;case"dbcs-cont":for(r="",c=this.l,l=0;l<e;++l){if(this.lens&&this.lens.indexOf(c)!==-1)return s=w0(this,c),this.l=c+1,o=e1.call(this,e-l,s?"dbcs-cont":"sbcs-cont"),a.join("")+o;a.push(gy(Rp(this,c))),c+=2}r=a.join(""),e*=2;break;case"cpstr":case"sbcs-cont":for(r="",c=this.l,l=0;l!=e;++l){if(this.lens&&this.lens.indexOf(c)!==-1)return s=w0(this,c),this.l=c+1,o=e1.call(this,e-l,s?"dbcs-cont":"sbcs-cont"),a.join("")+o;a.push(gy(w0(this,c))),c+=1}r=a.join("");break;default:switch(e){case 1:return n=w0(this,this.l),this.l++,n;case 2:return n=(t==="i"?sxe:Rp)(this,this.l),this.l+=2,n;case 4:case-4:return t==="i"||(this[this.l+3]&128)===0?(n=(e>0?vh:oxe)(this,this.l),this.l+=4,n):(i=No(this,this.l),this.l+=4,i);case 8:case-8:if(t==="f")return e==8?i=gw(this,this.l):i=gw([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,i;e=8;case 16:r=bz(this,this.l,e);break}}return this.l+=e,r}var Axe=function(e,t,r){e[r]=t&255,e[r+1]=t>>>8&255,e[r+2]=t>>>16&255,e[r+3]=t>>>24&255},lxe=function(e,t,r){e[r]=t&255,e[r+1]=t>>8&255,e[r+2]=t>>16&255,e[r+3]=t>>24&255},cxe=function(e,t,r){e[r]=t&255,e[r+1]=t>>>8&255};function uxe(e,t,r){var n=0,i=0;if(r==="dbcs"){for(i=0;i!=t.length;++i)cxe(this,t.charCodeAt(i),this.l+2*i);n=2*t.length}else if(r==="sbcs"){for(t=t.replace(/[^\x00-\x7F]/g,"_"),i=0;i!=t.length;++i)this[this.l+i]=t.charCodeAt(i)&255;n=t.length}else if(r==="hex"){for(;i<e;++i)this[this.l++]=parseInt(t.slice(2*i,2*i+2),16)||0;return this}else if(r==="utf16le"){var a=Math.min(this.l+e,this.length);for(i=0;i<Math.min(t.length,e);++i){var s=t.charCodeAt(i);this[this.l++]=s&255,this[this.l++]=s>>8}for(;this.l<a;)this[this.l++]=0;return this}else switch(e){case 1:n=1,this[this.l]=t&255;break;case 2:n=2,this[this.l]=t&255,t>>>=8,this[this.l+1]=t&255;break;case 3:n=3,this[this.l]=t&255,t>>>=8,this[this.l+1]=t&255,t>>>=8,this[this.l+2]=t&255;break;case 4:n=4,Axe(this,t,this.l);break;case 8:if(n=8,r==="f"){axe(this,t,this.l);break}case 16:break;case-4:n=4,lxe(this,t,this.l);break}return this.l+=n,this}function Dz(e,t){var r=bz(this,this.l,e.length>>1);if(r!==e)throw new Error(t+"Expected "+e+" saw "+r);this.l+=e.length>>1}function To(e,t){e.l=t,e.read_shift=e1,e.chk=Dz,e.write_shift=uxe}function Gl(e,t){e.l+=t}function Xe(e){var t=zh(e);return To(t,0),t}function no(){var e=[],t=en?256:2048,r=function(c){var f=Xe(c);return To(f,0),f},n=r(t),i=function(){n&&(n.length>n.l&&(n=n.slice(0,n.l),n.l=n.length),n.length>0&&e.push(n),n=null)},a=function(c){return n&&c<n.length-n.l?n:(i(),n=r(Math.max(c+1,t)))},s=function(){return i(),za(e)},o=function(c){i(),n=c,n.l==null&&(n.l=n.length),a(t)};return{next:a,push:o,end:s,_bufs:e}}function lt(e,t,r,n){var i=+t,a;if(!isNaN(i)){n||(n=i_e[i].p||(r||[]).length||0),a=1+(i>=128?1:0)+1,n>=128&&++a,n>=16384&&++a,n>=2097152&&++a;var s=e.next(a);i<=127?s.write_shift(1,i):(s.write_shift(1,(i&127)+128),s.write_shift(1,i>>7));for(var o=0;o!=4;++o)if(n>=128)s.write_shift(1,(n&127)+128),n>>=7;else{s.write_shift(1,n);break}n>0&&dF(r)&&e.push(r)}}function t1(e,t,r){var n=ao(e);if(t.s?(n.cRel&&(n.c+=t.s.c),n.rRel&&(n.r+=t.s.r)):(n.cRel&&(n.c+=t.c),n.rRel&&(n.r+=t.r)),!r||r.biff<12){for(;n.c>=256;)n.c-=256;for(;n.r>=65536;)n.r-=65536}return n}function xM(e,t,r){var n=ao(e);return n.s=t1(n.s,t.s,r),n.e=t1(n.e,t.s,r),n}function r1(e,t){if(e.cRel&&e.c<0)for(e=ao(e);e.c<0;)e.c+=t>8?16384:256;if(e.rRel&&e.r<0)for(e=ao(e);e.r<0;)e.r+=t>8?1048576:t>5?65536:16384;var r=hn(e);return!e.cRel&&e.cRel!=null&&(r=dxe(r)),!e.rRel&&e.rRel!=null&&(r=fxe(r)),r}function RC(e,t){return e.s.r==0&&!e.s.rRel&&e.e.r==(t.biff>=12?1048575:t.biff>=8?65536:16384)&&!e.e.rRel?(e.s.cRel?"":"$")+fs(e.s.c)+":"+(e.e.cRel?"":"$")+fs(e.e.c):e.s.c==0&&!e.s.cRel&&e.e.c==(t.biff>=12?16383:255)&&!e.e.cRel?(e.s.rRel?"":"$")+Wa(e.s.r)+":"+(e.e.rRel?"":"$")+Wa(e.e.r):r1(e.s,t.biff)+":"+r1(e.e,t.biff)}function gF(e){return parseInt(hxe(e),10)-1}function Wa(e){return""+(e+1)}function fxe(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function hxe(e){return e.replace(/\$(\d+)$/,"$1")}function pF(e){for(var t=gxe(e),r=0,n=0;n!==t.length;++n)r=26*r+t.charCodeAt(n)-64;return r-1}function fs(e){if(e<0)throw new Error("invalid column "+e);var t="";for(++e;e;e=Math.floor((e-1)/26))t=String.fromCharCode((e-1)%26+65)+t;return t}function dxe(e){return e.replace(/^([A-Z])/,"$$$1")}function gxe(e){return e.replace(/^\$([A-Z])/,"$1")}function pxe(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function Ea(e){for(var t=0,r=0,n=0;n<e.length;++n){var i=e.charCodeAt(n);i>=48&&i<=57?t=10*t+(i-48):i>=65&&i<=90&&(r=26*r+(i-64))}return{c:r-1,r:t-1}}function hn(e){for(var t=e.c+1,r="";t;t=(t-1)/26|0)r=String.fromCharCode((t-1)%26+65)+r;return r+(e.r+1)}function ko(e){var t=e.indexOf(":");return t==-1?{s:Ea(e),e:Ea(e)}:{s:Ea(e.slice(0,t)),e:Ea(e.slice(t+1))}}function qi(e,t){return typeof t>"u"||typeof t=="number"?qi(e.s,e.e):(typeof e!="string"&&(e=hn(e)),typeof t!="string"&&(t=hn(t)),e==t?e:e+":"+t)}function Vn(e){var t={s:{c:0,r:0},e:{c:0,r:0}},r=0,n=0,i=0,a=e.length;for(r=0;n<a&&!((i=e.charCodeAt(n)-64)<1||i>26);++n)r=26*r+i;for(t.s.c=--r,r=0;n<a&&!((i=e.charCodeAt(n)-48)<0||i>9);++n)r=10*r+i;if(t.s.r=--r,n===a||i!=10)return t.e.c=t.s.c,t.e.r=t.s.r,t;for(++n,r=0;n!=a&&!((i=e.charCodeAt(n)-64)<1||i>26);++n)r=26*r+i;for(t.e.c=--r,r=0;n!=a&&!((i=e.charCodeAt(n)-48)<0||i>9);++n)r=10*r+i;return t.e.r=--r,t}function bM(e,t){var r=e.t=="d"&&t instanceof Date;if(e.z!=null)try{return e.w=yf(e.z,r?io(t):t)}catch{}try{return e.w=yf((e.XF||{}).numFmtId||(r?14:0),r?io(t):t)}catch{return""+t}}function Jc(e,t,r){return e==null||e.t==null||e.t=="z"?"":e.w!==void 0?e.w:(e.t=="d"&&!e.z&&r&&r.dateNF&&(e.z=r.dateNF),e.t=="e"?xv[e.v]||e.v:t==null?bM(e,e.v):bM(e,t))}function td(e,t){var r=t&&t.sheet?t.sheet:"Sheet1",n={};return n[r]=e,{SheetNames:[r],Sheets:n}}function Iz(e,t,r){var n=r||{},i=e?Array.isArray(e):n.dense,a=e||(i?[]:{}),s=0,o=0;if(a&&n.origin!=null){if(typeof n.origin=="number")s=n.origin;else{var l=typeof n.origin=="string"?Ea(n.origin):n.origin;s=l.r,o=l.c}a["!ref"]||(a["!ref"]="A1:A1")}var c={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(a["!ref"]){var f=Vn(a["!ref"]);c.s.c=f.s.c,c.s.r=f.s.r,c.e.c=Math.max(c.e.c,f.e.c),c.e.r=Math.max(c.e.r,f.e.r),s==-1&&(c.e.r=s=f.e.r+1)}for(var h=0;h!=t.length;++h)if(t[h]){if(!Array.isArray(t[h]))throw new Error("aoa_to_sheet expects an array of arrays");for(var p=0;p!=t[h].length;++p)if(!(typeof t[h][p]>"u")){var g={v:t[h][p]},y=s+h,m=o+p;if(c.s.r>y&&(c.s.r=y),c.s.c>m&&(c.s.c=m),c.e.r<y&&(c.e.r=y),c.e.c<m&&(c.e.c=m),t[h][p]&&typeof t[h][p]=="object"&&!Array.isArray(t[h][p])&&!(t[h][p]instanceof Date))g=t[h][p];else if(Array.isArray(g.v)&&(g.f=t[h][p][1],g.v=g.v[0]),g.v===null)if(g.f)g.t="n";else if(n.nullError)g.t="e",g.v=0;else if(n.sheetStubs)g.t="z";else continue;else typeof g.v=="number"?g.t="n":typeof g.v=="boolean"?g.t="b":g.v instanceof Date?(g.z=n.dateNF||Ei[14],n.cellDates?(g.t="d",g.w=yf(g.z,io(g.v))):(g.t="n",g.v=io(g.v),g.w=yf(g.z,g.v))):g.t="s";if(i)a[y]||(a[y]=[]),a[y][m]&&a[y][m].z&&(g.z=a[y][m].z),a[y][m]=g;else{var w=hn({c:m,r:y});a[w]&&a[w].z&&(g.z=a[w].z),a[w]=g}}}return c.s.c<1e7&&(a["!ref"]=qi(c)),a}function wg(e,t){return Iz(null,e,t)}function vxe(e){return e.read_shift(4,"i")}function nl(e,t){return t||(t=Xe(4)),t.write_shift(4,e),t}function hs(e){var t=e.read_shift(4);return t===0?"":e.read_shift(t,"dbcs")}function _a(e,t){var r=!1;return t==null&&(r=!0,t=Xe(4+2*e.length)),t.write_shift(4,e.length),e.length>0&&t.write_shift(0,e,"dbcs"),r?t.slice(0,t.l):t}function mxe(e){return{ich:e.read_shift(2),ifnt:e.read_shift(2)}}function yxe(e,t){return t||(t=Xe(4)),t.write_shift(2,0),t.write_shift(2,0),t}function vF(e,t){var r=e.l,n=e.read_shift(1),i=hs(e),a=[],s={t:i,h:i};if((n&1)!==0){for(var o=e.read_shift(4),l=0;l!=o;++l)a.push(mxe(e));s.r=a}else s.r=[{ich:0,ifnt:0}];return e.l=r+t,s}function wxe(e,t){var r=!1;return t==null&&(r=!0,t=Xe(15+4*e.t.length)),t.write_shift(1,0),_a(e.t,t),r?t.slice(0,t.l):t}var xxe=vF;function bxe(e,t){var r=!1;return t==null&&(r=!0,t=Xe(23+4*e.t.length)),t.write_shift(1,1),_a(e.t,t),t.write_shift(4,1),yxe({},t),r?t.slice(0,t.l):t}function xA(e){var t=e.read_shift(4),r=e.read_shift(2);return r+=e.read_shift(1)<<16,e.l++,{c:t,iStyleRef:r}}function rd(e,t){return t==null&&(t=Xe(8)),t.write_shift(-4,e.c),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}function nd(e){var t=e.read_shift(2);return t+=e.read_shift(1)<<16,e.l++,{c:-1,iStyleRef:t}}function id(e,t){return t==null&&(t=Xe(4)),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}var Bxe=hs,Mz=_a;function mF(e){var t=e.read_shift(4);return t===0||t===4294967295?"":e.read_shift(t,"dbcs")}function pw(e,t){var r=!1;return t==null&&(r=!0,t=Xe(127)),t.write_shift(4,e.length>0?e.length:4294967295),e.length>0&&t.write_shift(0,e,"dbcs"),r?t.slice(0,t.l):t}var Cxe=hs,v4=mF,yF=pw;function Pz(e){var t=e.slice(e.l,e.l+4),r=t[0]&1,n=t[0]&2;e.l+=4;var i=n===0?gw([0,0,0,0,t[0]&252,t[1],t[2],t[3]],0):vh(t,0)>>2;return r?i/100:i}function kz(e,t){t==null&&(t=Xe(4));var r=0,n=0,i=e*100;if(e==(e|0)&&e>=-536870912&&e<1<<29?n=1:i==(i|0)&&i>=-536870912&&i<1<<29&&(n=1,r=1),n)t.write_shift(-4,((r?i:e)<<2)+(r+2));else throw new Error("unsupported RkNumber "+e)}function Qz(e){var t={s:{},e:{}};return t.s.r=e.read_shift(4),t.e.r=e.read_shift(4),t.s.c=e.read_shift(4),t.e.c=e.read_shift(4),t}function Exe(e,t){return t||(t=Xe(16)),t.write_shift(4,e.s.r),t.write_shift(4,e.e.r),t.write_shift(4,e.s.c),t.write_shift(4,e.e.c),t}var ad=Qz,xg=Exe;function bg(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function Vh(e,t){return(t||Xe(8)).write_shift(8,e,"f")}function _xe(e){var t={},r=e.read_shift(1),n=r>>>1,i=e.read_shift(1),a=e.read_shift(2,"i"),s=e.read_shift(1),o=e.read_shift(1),l=e.read_shift(1);switch(e.l++,n){case 0:t.auto=1;break;case 1:t.index=i;var c=Ixe[i];c&&(t.rgb=LM(c));break;case 2:t.rgb=LM([s,o,l]);break;case 3:t.theme=i;break}return a!=0&&(t.tint=a>0?a/32767:a/32768),t}function vw(e,t){if(t||(t=Xe(8)),!e||e.auto)return t.write_shift(4,0),t.write_shift(4,0),t;e.index!=null?(t.write_shift(1,2),t.write_shift(1,e.index)):e.theme!=null?(t.write_shift(1,6),t.write_shift(1,e.theme)):(t.write_shift(1,5),t.write_shift(1,0));var r=e.tint||0;if(r>0?r*=32767:r<0&&(r*=32768),t.write_shift(2,r),!e.rgb||e.theme!=null)t.write_shift(2,0),t.write_shift(1,0),t.write_shift(1,0);else{var n=e.rgb||"FFFFFF";typeof n=="number"&&(n=("000000"+n.toString(16)).slice(-6)),t.write_shift(1,parseInt(n.slice(0,2),16)),t.write_shift(1,parseInt(n.slice(2,4),16)),t.write_shift(1,parseInt(n.slice(4,6),16)),t.write_shift(1,255)}return t}function Sxe(e){var t=e.read_shift(1);e.l++;var r={fBold:t&1,fItalic:t&2,fUnderline:t&4,fStrikeout:t&8,fOutline:t&16,fShadow:t&32,fCondense:t&64,fExtend:t&128};return r}function Fxe(e,t){t||(t=Xe(2));var r=(e.italic?2:0)|(e.strike?8:0)|(e.outline?16:0)|(e.shadow?32:0)|(e.condense?64:0)|(e.extend?128:0);return t.write_shift(1,r),t.write_shift(1,0),t}var Rz=2,So=3,yy=11,mw=19,wy=64,Txe=65,Oxe=71,Uxe=4108,Nxe=4126,ja=80,BM={1:{n:"CodePage",t:Rz},2:{n:"Category",t:ja},3:{n:"PresentationFormat",t:ja},4:{n:"ByteCount",t:So},5:{n:"LineCount",t:So},6:{n:"ParagraphCount",t:So},7:{n:"SlideCount",t:So},8:{n:"NoteCount",t:So},9:{n:"HiddenCount",t:So},10:{n:"MultimediaClipCount",t:So},11:{n:"ScaleCrop",t:yy},12:{n:"HeadingPairs",t:Uxe},13:{n:"TitlesOfParts",t:Nxe},14:{n:"Manager",t:ja},15:{n:"Company",t:ja},16:{n:"LinksUpToDate",t:yy},17:{n:"CharacterCount",t:So},19:{n:"SharedDoc",t:yy},22:{n:"HyperlinksChanged",t:yy},23:{n:"AppVersion",t:So,p:"version"},24:{n:"DigSig",t:Txe},26:{n:"ContentType",t:ja},27:{n:"ContentStatus",t:ja},28:{n:"Language",t:ja},29:{n:"Version",t:ja},255:{},2147483648:{n:"Locale",t:mw},2147483651:{n:"Behavior",t:mw},1919054434:{}},CM={1:{n:"CodePage",t:Rz},2:{n:"Title",t:ja},3:{n:"Subject",t:ja},4:{n:"Author",t:ja},5:{n:"Keywords",t:ja},6:{n:"Comments",t:ja},7:{n:"Template",t:ja},8:{n:"LastAuthor",t:ja},9:{n:"RevNumber",t:ja},10:{n:"EditTime",t:wy},11:{n:"LastPrinted",t:wy},12:{n:"CreatedDate",t:wy},13:{n:"ModifiedDate",t:wy},14:{n:"PageCount",t:So},15:{n:"WordCount",t:So},16:{n:"CharCount",t:So},17:{n:"Thumbnail",t:Oxe},18:{n:"Application",t:ja},19:{n:"DocSecurity",t:So},255:{},2147483648:{n:"Locale",t:mw},2147483651:{n:"Behavior",t:mw},1919054434:{}};function Lxe(e){return e.map(function(t){return[t>>16&255,t>>8&255,t&255]})}var Dxe=Lxe([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),Ixe=ao(Dxe),xv={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},Mxe={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"},xy={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function jz(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function Hz(e,t){var r=Gwe(Mxe),n=[],i;n[n.length]=Wi,n[n.length]=ht("Types",null,{xmlns:Ba.CT,"xmlns:xsd":Ba.xsd,"xmlns:xsi":Ba.xsi}),n=n.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map(function(l){return ht("Default",null,{Extension:l[0],ContentType:l[1]})}));var a=function(l){e[l]&&e[l].length>0&&(i=e[l][0],n[n.length]=ht("Override",null,{PartName:(i[0]=="/"?"":"/")+i,ContentType:xy[l][t.bookType]||xy[l].xlsx}))},s=function(l){(e[l]||[]).forEach(function(c){n[n.length]=ht("Override",null,{PartName:(c[0]=="/"?"":"/")+c,ContentType:xy[l][t.bookType]||xy[l].xlsx})})},o=function(l){(e[l]||[]).forEach(function(c){n[n.length]=ht("Override",null,{PartName:(c[0]=="/"?"":"/")+c,ContentType:r[l][0]})})};return a("workbooks"),s("sheets"),s("charts"),o("themes"),["strs","styles"].forEach(a),["coreprops","extprops","custprops"].forEach(o),o("vba"),o("comments"),o("threadedcomments"),o("drawings"),s("metadata"),o("people"),n.length>2&&(n[n.length]="</Types>",n[1]=n[1].replace("/>",">")),n.join("")}var qr={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function Kz(e){var t=e.lastIndexOf("/");return e.slice(0,t+1)+"_rels/"+e.slice(t+1)+".rels"}function P0(e){var t=[Wi,ht("Relationships",null,{xmlns:Ba.RELS})];return $a(e["!id"]).forEach(function(r){t[t.length]=ht("Relationship",null,e["!id"][r])}),t.length>2&&(t[t.length]="</Relationships>",t[1]=t[1].replace("/>",">")),t.join("")}function An(e,t,r,n,i,a){if(i||(i={}),e["!id"]||(e["!id"]={}),e["!idx"]||(e["!idx"]=1),t<0)for(t=e["!idx"];e["!id"]["rId"+t];++t);if(e["!idx"]=t+1,i.Id="rId"+t,i.Type=n,i.Target=r,[qr.HLINK,qr.XPATH,qr.XMISS].indexOf(i.Type)>-1&&(i.TargetMode="External"),e["!id"][i.Id])throw new Error("Cannot rewrite rId "+t);return e["!id"][i.Id]=i,e[("/"+i.Target).replace("//","/")]=i,t}function Pxe(e){var t=[Wi];t.push(`<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.2">
`),t.push(`  <manifest:file-entry manifest:full-path="/" manifest:version="1.2" manifest:media-type="application/vnd.oasis.opendocument.spreadsheet"/>
`);for(var r=0;r<e.length;++r)t.push('  <manifest:file-entry manifest:full-path="'+e[r][0]+'" manifest:media-type="'+e[r][1]+`"/>
`);return t.push("</manifest:manifest>"),t.join("")}function EM(e,t,r){return['  <rdf:Description rdf:about="'+e+`">
`,'    <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/'+(r||"odf")+"#"+t+`"/>
`,`  </rdf:Description>
`].join("")}function kxe(e,t){return['  <rdf:Description rdf:about="'+e+`">
`,'    <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="'+t+`"/>
`,`  </rdf:Description>
`].join("")}function Qxe(e){var t=[Wi];t.push(`<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
`);for(var r=0;r!=e.length;++r)t.push(EM(e[r][0],e[r][1])),t.push(kxe("",e[r][0]));return t.push(EM("","Document","pkg")),t.push("</rdf:RDF>"),t.join("")}function zz(){return'<office:document-meta xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" office:version="1.2"><office:meta><meta:generator>SheetJS '+lw.version+"</meta:generator></office:meta></office:document-meta>"}var Uh=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]];function jC(e,t,r,n,i){i[e]!=null||t==null||t===""||(i[e]=t,t=fn(t),n[n.length]=r?ht(e,t,r):Va(e,t))}function Vz(e,t){var r=t||{},n=[Wi,ht("cp:coreProperties",null,{"xmlns:cp":Ba.CORE_PROPS,"xmlns:dc":Ba.dc,"xmlns:dcterms":Ba.dcterms,"xmlns:dcmitype":Ba.dcmitype,"xmlns:xsi":Ba.xsi})],i={};if(!e&&!r.Props)return n.join("");e&&(e.CreatedDate!=null&&jC("dcterms:created",typeof e.CreatedDate=="string"?e.CreatedDate:p4(e.CreatedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,i),e.ModifiedDate!=null&&jC("dcterms:modified",typeof e.ModifiedDate=="string"?e.ModifiedDate:p4(e.ModifiedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,i));for(var a=0;a!=Uh.length;++a){var s=Uh[a],o=r.Props&&r.Props[s[1]]!=null?r.Props[s[1]]:e?e[s[1]]:null;o===!0?o="1":o===!1?o="0":typeof o=="number"&&(o=String(o)),o!=null&&jC(s[0],o,null,n,i)}return n.length>2&&(n[n.length]="</cp:coreProperties>",n[1]=n[1].replace("/>",">")),n.join("")}var k0=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]],Gz=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function qz(e){var t=[],r=ht;return e||(e={}),e.Application="SheetJS",t[t.length]=Wi,t[t.length]=ht("Properties",null,{xmlns:Ba.EXT_PROPS,"xmlns:vt":Ba.vt}),k0.forEach(function(n){if(e[n[1]]!==void 0){var i;switch(n[2]){case"string":i=fn(String(e[n[1]]));break;case"bool":i=e[n[1]]?"true":"false";break}i!==void 0&&(t[t.length]=r(n[0],i))}}),t[t.length]=r("HeadingPairs",r("vt:vector",r("vt:variant","<vt:lpstr>Worksheets</vt:lpstr>")+r("vt:variant",r("vt:i4",String(e.Worksheets))),{size:2,baseType:"variant"})),t[t.length]=r("TitlesOfParts",r("vt:vector",e.SheetNames.map(function(n){return"<vt:lpstr>"+fn(n)+"</vt:lpstr>"}).join(""),{size:e.Worksheets,baseType:"lpstr"})),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}function Wz(e){var t=[Wi,ht("Properties",null,{xmlns:Ba.CUST_PROPS,"xmlns:vt":Ba.vt})];if(!e)return t.join("");var r=1;return $a(e).forEach(function(i){++r,t[t.length]=ht("property",nxe(e[i]),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:r,name:fn(i)})}),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}var _M={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"};function Rxe(e,t){var r=[];return $a(_M).map(function(n){for(var i=0;i<Uh.length;++i)if(Uh[i][1]==n)return Uh[i];for(i=0;i<k0.length;++i)if(k0[i][1]==n)return k0[i];throw n}).forEach(function(n){if(e[n[1]]!=null){var i=t&&t.Props&&t.Props[n[1]]!=null?t.Props[n[1]]:e[n[1]];switch(n[2]){case"date":i=new Date(i).toISOString().replace(/\.\d*Z/,"Z");break}typeof i=="number"?i=String(i):i===!0||i===!1?i=i?"1":"0":i instanceof Date&&(i=new Date(i).toISOString().replace(/\.\d*Z/,"")),r.push(Va(_M[n[1]]||n[1],i))}}),ht("DocumentProperties",r.join(""),{xmlns:Uo.o})}function jxe(e,t){var r=["Worksheets","SheetNames"],n="CustomDocumentProperties",i=[];return e&&$a(e).forEach(function(a){if(Object.prototype.hasOwnProperty.call(e,a)){for(var s=0;s<Uh.length;++s)if(a==Uh[s][1])return;for(s=0;s<k0.length;++s)if(a==k0[s][1])return;for(s=0;s<r.length;++s)if(a==r[s])return;var o=e[a],l="string";typeof o=="number"?(l="float",o=String(o)):o===!0||o===!1?(l="boolean",o=o?"1":"0"):o=String(o),i.push(ht(hM(a),o,{"dt:dt":l}))}}),t&&$a(t).forEach(function(a){if(Object.prototype.hasOwnProperty.call(t,a)&&!(e&&Object.prototype.hasOwnProperty.call(e,a))){var s=t[a],o="string";typeof s=="number"?(o="float",s=String(s)):s===!0||s===!1?(o="boolean",s=s?"1":"0"):s instanceof Date?(o="dateTime.tz",s=s.toISOString()):s=String(s),i.push(ht(hM(a),s,{"dt:dt":o}))}}),"<"+n+' xmlns="'+Uo.o+'">'+i.join("")+"</"+n+">"}function Hxe(e){var t=typeof e=="string"?new Date(Date.parse(e)):e,r=t.getTime()/1e3+11644473600,n=r%Math.pow(2,32),i=(r-n)/Math.pow(2,32);n*=1e7,i*=1e7;var a=n/Math.pow(2,32)|0;a>0&&(n=n%Math.pow(2,32),i+=a);var s=Xe(8);return s.write_shift(4,n),s.write_shift(4,i),s}function SM(e,t){var r=Xe(4),n=Xe(4);switch(r.write_shift(4,e==80?31:e),e){case 3:n.write_shift(-4,t);break;case 5:n=Xe(8),n.write_shift(8,t,"f");break;case 11:n.write_shift(4,t?1:0);break;case 64:n=Hxe(t);break;case 31:case 80:for(n=Xe(4+2*(t.length+1)+(t.length%2?0:2)),n.write_shift(4,t.length+1),n.write_shift(0,t,"dbcs");n.l!=n.length;)n.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+e+" "+t)}return za([r,n])}var Yz=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function Kxe(e){switch(typeof e){case"boolean":return 11;case"number":return(e|0)==e?3:5;case"string":return 31;case"object":if(e instanceof Date)return 64;break}return-1}function FM(e,t,r){var n=Xe(8),i=[],a=[],s=8,o=0,l=Xe(8),c=Xe(8);if(l.write_shift(4,2),l.write_shift(4,1200),c.write_shift(4,1),a.push(l),i.push(c),s+=8+l.length,!t){c=Xe(8),c.write_shift(4,0),i.unshift(c);var f=[Xe(4)];for(f[0].write_shift(4,e.length),o=0;o<e.length;++o){var h=e[o][0];for(l=Xe(8+2*(h.length+1)+(h.length%2?0:2)),l.write_shift(4,o+2),l.write_shift(4,h.length+1),l.write_shift(0,h,"dbcs");l.l!=l.length;)l.write_shift(1,0);f.push(l)}l=za(f),a.unshift(l),s+=8+l.length}for(o=0;o<e.length;++o)if(!(t&&!t[e[o][0]])&&!(Yz.indexOf(e[o][0])>-1||Gz.indexOf(e[o][0])>-1)&&e[o][1]!=null){var p=e[o][1],g=0;if(t){g=+t[e[o][0]];var y=r[g];if(y.p=="version"&&typeof p=="string"){var m=p.split(".");p=(+m[0]<<16)+(+m[1]||0)}l=SM(y.t,p)}else{var w=Kxe(p);w==-1&&(w=31,p=String(p)),l=SM(w,p)}a.push(l),c=Xe(8),c.write_shift(4,t?g:2+o),i.push(c),s+=8+l.length}var b=8*(a.length+1);for(o=0;o<a.length;++o)i[o].write_shift(4,b),b+=a[o].length;return n.write_shift(4,s),n.write_shift(4,a.length),za([n].concat(i).concat(a))}function TM(e,t,r,n,i,a){var s=Xe(i?68:48),o=[s];s.write_shift(2,65534),s.write_shift(2,0),s.write_shift(4,842412599),s.write_shift(16,Bn.utils.consts.HEADER_CLSID,"hex"),s.write_shift(4,i?2:1),s.write_shift(16,t,"hex"),s.write_shift(4,i?68:48);var l=FM(e,r,n);if(o.push(l),i){var c=FM(i,null,null);s.write_shift(16,a,"hex"),s.write_shift(4,68+l.length),o.push(c)}return za(o)}function zxe(e,t){t||(t=Xe(e));for(var r=0;r<e;++r)t.write_shift(1,0);return t}function Vxe(e,t){return e.read_shift(t)===1}function Cs(e,t){return t||(t=Xe(2)),t.write_shift(2,+!!e),t}function $z(e){return e.read_shift(2,"u")}function lA(e,t){return t||(t=Xe(2)),t.write_shift(2,e),t}function Xz(e,t,r){return r||(r=Xe(2)),r.write_shift(1,t=="e"?+e:+!!e),r.write_shift(1,t=="e"?1:0),r}function Jz(e,t,r){var n=e.read_shift(r&&r.biff>=12?2:1),i="sbcs-cont";if(r&&r.biff>=8,!r||r.biff==8){var a=e.read_shift(1);a&&(i="dbcs-cont")}else r.biff==12&&(i="wstr");r.biff>=2&&r.biff<=5&&(i="cpstr");var s=n?e.read_shift(n,i):"";return s}function Gxe(e){var t=e.t||"",r=Xe(3);r.write_shift(2,t.length),r.write_shift(1,1);var n=Xe(2*t.length);n.write_shift(2*t.length,t,"utf16le");var i=[r,n];return za(i)}function qxe(e,t,r){var n;if(r){if(r.biff>=2&&r.biff<=5)return e.read_shift(t,"cpstr");if(r.biff>=12)return e.read_shift(t,"dbcs-cont")}var i=e.read_shift(1);return i===0?n=e.read_shift(t,"sbcs-cont"):n=e.read_shift(t,"dbcs-cont"),n}function Wxe(e,t,r){var n=e.read_shift(r&&r.biff==2?1:2);return n===0?(e.l++,""):qxe(e,n,r)}function Yxe(e,t,r){if(r.biff>5)return Wxe(e,t,r);var n=e.read_shift(1);return n===0?(e.l++,""):e.read_shift(n,r.biff<=4||!e.lens?"cpstr":"sbcs-cont")}function Zz(e,t,r){return r||(r=Xe(3+2*e.length)),r.write_shift(2,e.length),r.write_shift(1,1),r.write_shift(31,e,"utf16le"),r}function OM(e,t){t||(t=Xe(6+e.length*2)),t.write_shift(4,1+e.length);for(var r=0;r<e.length;++r)t.write_shift(2,e.charCodeAt(r));return t.write_shift(2,0),t}function $xe(e){var t=Xe(512),r=0,n=e.Target;n.slice(0,7)=="file://"&&(n=n.slice(7));var i=n.indexOf("#"),a=i>-1?31:23;switch(n.charAt(0)){case"#":a=28;break;case".":a&=-3;break}t.write_shift(4,2),t.write_shift(4,a);var s=[8,6815827,6619237,4849780,83];for(r=0;r<s.length;++r)t.write_shift(4,s[r]);if(a==28)n=n.slice(1),OM(n,t);else if(a&2){for(s="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),r=0;r<s.length;++r)t.write_shift(1,parseInt(s[r],16));var o=i>-1?n.slice(0,i):n;for(t.write_shift(4,2*(o.length+1)),r=0;r<o.length;++r)t.write_shift(2,o.charCodeAt(r));t.write_shift(2,0),a&8&&OM(i>-1?n.slice(i+1):"",t)}else{for(s="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),r=0;r<s.length;++r)t.write_shift(1,parseInt(s[r],16));for(var l=0;n.slice(l*3,l*3+3)=="../"||n.slice(l*3,l*3+3)=="..\\";)++l;for(t.write_shift(2,l),t.write_shift(4,n.length-3*l+1),r=0;r<n.length-3*l;++r)t.write_shift(1,n.charCodeAt(r+3*l)&255);for(t.write_shift(1,0),t.write_shift(2,65535),t.write_shift(2,57005),r=0;r<6;++r)t.write_shift(4,0)}return t.slice(0,t.l)}function Gh(e,t,r,n){return n||(n=Xe(6)),n.write_shift(2,e),n.write_shift(2,t),n.write_shift(2,r||0),n}function Xxe(e,t,r){var n=r.biff>8?4:2,i=e.read_shift(n),a=e.read_shift(n,"i"),s=e.read_shift(n,"i");return[i,a,s]}function Jxe(e){var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(2),i=e.read_shift(2);return{s:{c:n,r:t},e:{c:i,r}}}function eV(e,t){return t||(t=Xe(8)),t.write_shift(2,e.s.r),t.write_shift(2,e.e.r),t.write_shift(2,e.s.c),t.write_shift(2,e.e.c),t}function wF(e,t,r){var n=1536,i=16;switch(r.bookType){case"biff8":break;case"biff5":n=1280,i=8;break;case"biff4":n=4,i=6;break;case"biff3":n=3,i=6;break;case"biff2":n=2,i=4;break;case"xla":break;default:throw new Error("unsupported BIFF version")}var a=Xe(i);return a.write_shift(2,n),a.write_shift(2,t),i>4&&a.write_shift(2,29282),i>6&&a.write_shift(2,1997),i>8&&(a.write_shift(2,49161),a.write_shift(2,1),a.write_shift(2,1798),a.write_shift(2,0)),a}function Zxe(e,t){var r=!t||t.biff==8,n=Xe(r?112:54);for(n.write_shift(t.biff==8?2:1,7),r&&n.write_shift(1,0),n.write_shift(4,859007059),n.write_shift(4,5458548|(r?0:536870912));n.l<n.length;)n.write_shift(1,r?0:32);return n}function ebe(e,t){var r=!t||t.biff>=8?2:1,n=Xe(8+r*e.name.length);n.write_shift(4,e.pos),n.write_shift(1,e.hs||0),n.write_shift(1,e.dt),n.write_shift(1,e.name.length),t.biff>=8&&n.write_shift(1,1),n.write_shift(r*e.name.length,e.name,t.biff<8?"sbcs":"utf16le");var i=n.slice(0,n.l);return i.l=n.l,i}function tbe(e,t){var r=Xe(8);r.write_shift(4,e.Count),r.write_shift(4,e.Unique);for(var n=[],i=0;i<e.length;++i)n[i]=Gxe(e[i]);var a=za([r].concat(n));return a.parts=[r.length].concat(n.map(function(s){return s.length})),a}function rbe(){var e=Xe(18);return e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,29280),e.write_shift(2,17600),e.write_shift(2,56),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,1),e.write_shift(2,500),e}function nbe(e){var t=Xe(18),r=1718;return e&&e.RTL&&(r|=64),t.write_shift(2,r),t.write_shift(4,0),t.write_shift(4,64),t.write_shift(4,0),t.write_shift(4,0),t}function ibe(e,t){var r=e.name||"Arial",n=t&&t.biff==5,i=n?15+r.length:16+2*r.length,a=Xe(i);return a.write_shift(2,e.sz*20),a.write_shift(4,0),a.write_shift(2,400),a.write_shift(4,0),a.write_shift(2,0),a.write_shift(1,r.length),n||a.write_shift(1,1),a.write_shift((n?1:2)*r.length,r,n?"sbcs":"utf16le"),a}function abe(e,t,r,n){var i=Xe(10);return Gh(e,t,n,i),i.write_shift(4,r),i}function sbe(e,t,r,n,i){var a=!i||i.biff==8,s=Xe(8+ +a+(1+a)*r.length);return Gh(e,t,n,s),s.write_shift(2,r.length),a&&s.write_shift(1,1),s.write_shift((1+a)*r.length,r,a?"utf16le":"sbcs"),s}function obe(e,t,r,n){var i=r&&r.biff==5;n||(n=Xe(i?3+t.length:5+2*t.length)),n.write_shift(2,e),n.write_shift(i?1:2,t.length),i||n.write_shift(1,1),n.write_shift((i?1:2)*t.length,t,i?"sbcs":"utf16le");var a=n.length>n.l?n.slice(0,n.l):n;return a.l==null&&(a.l=a.length),a}function Abe(e,t){var r=t.biff==8||!t.biff?4:2,n=Xe(2*r+6);return n.write_shift(r,e.s.r),n.write_shift(r,e.e.r+1),n.write_shift(2,e.s.c),n.write_shift(2,e.e.c+1),n.write_shift(2,0),n}function UM(e,t,r,n){var i=r&&r.biff==5;n||(n=Xe(i?16:20)),n.write_shift(2,0),e.style?(n.write_shift(2,e.numFmtId||0),n.write_shift(2,65524)):(n.write_shift(2,e.numFmtId||0),n.write_shift(2,t<<4));var a=0;return e.numFmtId>0&&i&&(a|=1024),n.write_shift(4,a),n.write_shift(4,0),i||n.write_shift(4,0),n.write_shift(2,0),n}function lbe(e){var t=Xe(8);return t.write_shift(4,0),t.write_shift(2,0),t.write_shift(2,0),t}function cbe(e,t,r,n,i,a){var s=Xe(8);return Gh(e,t,n,s),Xz(r,a,s),s}function ube(e,t,r,n){var i=Xe(14);return Gh(e,t,n,i),Vh(r,i),i}function fbe(e,t,r){if(r.biff<8)return hbe(e,t,r);for(var n=[],i=e.l+t,a=e.read_shift(r.biff>8?4:2);a--!==0;)n.push(Xxe(e,r.biff>8?12:6,r));if(e.l!=i)throw new Error("Bad ExternSheet: "+e.l+" != "+i);return n}function hbe(e,t,r){e[e.l+1]==3&&e[e.l]++;var n=Jz(e,t,r);return n.charCodeAt(0)==3?n.slice(1):n}function dbe(e){var t=Xe(2+e.length*8);t.write_shift(2,e.length);for(var r=0;r<e.length;++r)eV(e[r],t);return t}function gbe(e){var t=Xe(24),r=Ea(e[0]);t.write_shift(2,r.r),t.write_shift(2,r.r),t.write_shift(2,r.c),t.write_shift(2,r.c);for(var n="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),i=0;i<16;++i)t.write_shift(1,parseInt(n[i],16));return za([t,$xe(e[1])])}function pbe(e){var t=e[1].Tooltip,r=Xe(10+2*(t.length+1));r.write_shift(2,2048);var n=Ea(e[0]);r.write_shift(2,n.r),r.write_shift(2,n.r),r.write_shift(2,n.c),r.write_shift(2,n.c);for(var i=0;i<t.length;++i)r.write_shift(2,t.charCodeAt(i));return r.write_shift(2,0),r}function vbe(e){return e||(e=Xe(4)),e.write_shift(2,1),e.write_shift(2,1),e}function mbe(e,t,r){if(!r.cellStyles)return Gl(e,t);var n=r&&r.biff>=12?4:2,i=e.read_shift(n),a=e.read_shift(n),s=e.read_shift(n),o=e.read_shift(n),l=e.read_shift(2);n==2&&(e.l+=2);var c={s:i,e:a,w:s,ixfe:o,flags:l};return(r.biff>=5||!r.biff)&&(c.level=l>>8&7),c}function ybe(e,t){var r=Xe(12);r.write_shift(2,t),r.write_shift(2,t),r.write_shift(2,e.width*256),r.write_shift(2,0);var n=0;return e.hidden&&(n|=1),r.write_shift(1,n),n=e.level||0,r.write_shift(1,n),r.write_shift(2,0),r}function wbe(e){for(var t=Xe(2*e),r=0;r<e;++r)t.write_shift(2,r+1);return t}function xbe(e,t,r){var n=Xe(15);return Bv(n,e,t),n.write_shift(8,r,"f"),n}function bbe(e,t,r){var n=Xe(9);return Bv(n,e,t),n.write_shift(2,r),n}var Bbe=(function(){var e={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},t=lF({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function r(o,l){var c=[],f=zh(1);switch(l.type){case"base64":f=tl(Xc(o));break;case"binary":f=tl(o);break;case"buffer":case"array":f=o;break}To(f,0);var h=f.read_shift(1),p=!!(h&136),g=!1,y=!1;switch(h){case 2:break;case 3:break;case 48:g=!0,p=!0;break;case 49:g=!0,p=!0;break;case 131:break;case 139:break;case 140:y=!0;break;case 245:break;default:throw new Error("DBF Unsupported Version: "+h.toString(16))}var m=0,w=521;h==2&&(m=f.read_shift(2)),f.l+=3,h!=2&&(m=f.read_shift(4)),m>1048576&&(m=1e6),h!=2&&(w=f.read_shift(2));var b=f.read_shift(2),E=l.codepage||1252;h!=2&&(f.l+=16,f.read_shift(1),f[f.l]!==0&&(E=e[f[f.l]]),f.l+=1,f.l+=2),y&&(f.l+=36);for(var S=[],T={},D=Math.min(f.length,h==2?521:w-10-(g?264:0)),k=y?32:11;f.l<D&&f[f.l]!=13;)switch(T={},T.name=cw.utils.decode(E,f.slice(f.l,f.l+k)).replace(/[\u0000\r\n].*$/g,""),f.l+=k,T.type=String.fromCharCode(f.read_shift(1)),h!=2&&!y&&(T.offset=f.read_shift(4)),T.len=f.read_shift(1),h==2&&(T.offset=f.read_shift(2)),T.dec=f.read_shift(1),T.name.length&&S.push(T),h!=2&&(f.l+=y?13:14),T.type){case"B":(!g||T.len!=8)&&l.WTF&&console.log("Skipping "+T.name+":"+T.type);break;case"G":case"P":l.WTF&&console.log("Skipping "+T.name+":"+T.type);break;case"+":case"0":case"@":case"C":case"D":case"F":case"I":case"L":case"M":case"N":case"O":case"T":case"Y":break;default:throw new Error("Unknown Field Type: "+T.type)}if(f[f.l]!==13&&(f.l=w-1),f.read_shift(1)!==13)throw new Error("DBF Terminator not found "+f.l+" "+f[f.l]);f.l=w;var P=0,R=0;for(c[0]=[],R=0;R!=S.length;++R)c[0][R]=S[R].name;for(;m-- >0;){if(f[f.l]===42){f.l+=b;continue}for(++f.l,c[++P]=[],R=0,R=0;R!=S.length;++R){var O=f.slice(f.l,f.l+S[R].len);f.l+=S[R].len,To(O,0);var V=cw.utils.decode(E,O);switch(S[R].type){case"C":V.trim().length&&(c[P][R]=V.replace(/\s+$/,""));break;case"D":V.length===8?c[P][R]=new Date(+V.slice(0,4),+V.slice(4,6)-1,+V.slice(6,8)):c[P][R]=V;break;case"F":c[P][R]=parseFloat(V.trim());break;case"+":case"I":c[P][R]=y?O.read_shift(-4,"i")^2147483648:O.read_shift(4,"i");break;case"L":switch(V.trim().toUpperCase()){case"Y":case"T":c[P][R]=!0;break;case"N":case"F":c[P][R]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+V+"|")}break;case"M":if(!p)throw new Error("DBF Unexpected MEMO for type "+h.toString(16));c[P][R]="##MEMO##"+(y?parseInt(V.trim(),10):O.read_shift(4));break;case"N":V=V.replace(/\u0000/g,"").trim(),V&&V!="."&&(c[P][R]=+V||0);break;case"@":c[P][R]=new Date(O.read_shift(-8,"f")-621356832e5);break;case"T":c[P][R]=new Date((O.read_shift(4)-2440588)*864e5+O.read_shift(4));break;case"Y":c[P][R]=O.read_shift(4,"i")/1e4+O.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":c[P][R]=-O.read_shift(-8,"f");break;case"B":if(g&&S[R].len==8){c[P][R]=O.read_shift(8,"f");break}case"G":case"P":O.l+=S[R].len;break;case"0":if(S[R].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+S[R].type)}}}if(h!=2&&f.l<f.length&&f[f.l++]!=26)throw new Error("DBF EOF Marker missing "+(f.l-1)+" of "+f.length+" "+f[f.l-1].toString(16));return l&&l.sheetRows&&(c=c.slice(0,l.sheetRows)),l.DBF=S,c}function n(o,l){var c=l||{};c.dateNF||(c.dateNF="yyyymmdd");var f=wg(r(o,c),c);return f["!cols"]=c.DBF.map(function(h){return{wch:h.len,DBF:h}}),delete c.DBF,f}function i(o,l){try{return td(n(o,l),l)}catch(c){if(l&&l.WTF)throw c}return{SheetNames:[],Sheets:{}}}var a={B:8,C:250,L:1,D:8,"?":0,"":0};function s(o,l){var c=l||{};if(+c.codepage>=0&&F1(+c.codepage),c.type=="string")throw new Error("Cannot write DBF to JS string");var f=no(),h=Bw(o,{header:1,raw:!0,cellDates:!0}),p=h[0],g=h.slice(1),y=o["!cols"]||[],m=0,w=0,b=0,E=1;for(m=0;m<p.length;++m){if(((y[m]||{}).DBF||{}).name){p[m]=y[m].DBF.name,++b;continue}if(p[m]!=null){if(++b,typeof p[m]=="number"&&(p[m]=p[m].toString(10)),typeof p[m]!="string")throw new Error("DBF Invalid column name "+p[m]+" |"+typeof p[m]+"|");if(p.indexOf(p[m])!==m){for(w=0;w<1024;++w)if(p.indexOf(p[m]+"_"+w)==-1){p[m]+="_"+w;break}}}}var S=Vn(o["!ref"]),T=[],D=[],k=[];for(m=0;m<=S.e.c-S.s.c;++m){var P="",R="",O=0,V=[];for(w=0;w<g.length;++w)g[w][m]!=null&&V.push(g[w][m]);if(V.length==0||p[m]==null){T[m]="?";continue}for(w=0;w<V.length;++w){switch(typeof V[w]){case"number":R="B";break;case"string":R="C";break;case"boolean":R="L";break;case"object":R=V[w]instanceof Date?"D":"C";break;default:R="C"}O=Math.max(O,String(V[w]).length),P=P&&P!=R?"C":R}O>250&&(O=250),R=((y[m]||{}).DBF||{}).type,R=="C"&&y[m].DBF.len>O&&(O=y[m].DBF.len),P=="B"&&R=="N"&&(P="N",k[m]=y[m].DBF.dec,O=y[m].DBF.len),D[m]=P=="C"||R=="N"?O:a[P]||0,E+=D[m],T[m]=P}var I=f.next(32);for(I.write_shift(4,318902576),I.write_shift(4,g.length),I.write_shift(2,296+32*b),I.write_shift(2,E),m=0;m<4;++m)I.write_shift(4,0);for(I.write_shift(4,0|(+t[rz]||3)<<8),m=0,w=0;m<p.length;++m)if(p[m]!=null){var Q=f.next(32),W=(p[m].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);Q.write_shift(1,W,"sbcs"),Q.write_shift(1,T[m]=="?"?"C":T[m],"sbcs"),Q.write_shift(4,w),Q.write_shift(1,D[m]||a[T[m]]||0),Q.write_shift(1,k[m]||0),Q.write_shift(1,2),Q.write_shift(4,0),Q.write_shift(1,0),Q.write_shift(4,0),Q.write_shift(4,0),w+=D[m]||a[T[m]]||0}var J=f.next(264);for(J.write_shift(4,13),m=0;m<65;++m)J.write_shift(4,0);for(m=0;m<g.length;++m){var fe=f.next(E);for(fe.write_shift(1,0),w=0;w<p.length;++w)if(p[w]!=null)switch(T[w]){case"L":fe.write_shift(1,g[m][w]==null?63:g[m][w]?84:70);break;case"B":fe.write_shift(8,g[m][w]||0,"f");break;case"N":var G="0";for(typeof g[m][w]=="number"&&(G=g[m][w].toFixed(k[w]||0)),b=0;b<D[w]-G.length;++b)fe.write_shift(1,32);fe.write_shift(1,G,"sbcs");break;case"D":g[m][w]?(fe.write_shift(4,("0000"+g[m][w].getFullYear()).slice(-4),"sbcs"),fe.write_shift(2,("00"+(g[m][w].getMonth()+1)).slice(-2),"sbcs"),fe.write_shift(2,("00"+g[m][w].getDate()).slice(-2),"sbcs")):fe.write_shift(8,"00000000","sbcs");break;case"C":var se=String(g[m][w]!=null?g[m][w]:"").slice(0,D[w]);for(fe.write_shift(1,se,"sbcs"),b=0;b<D[w]-se.length;++b)fe.write_shift(1,32);break}}return f.next(1).write_shift(1,26),f.end()}return{to_workbook:i,to_sheet:n,from_sheet:s}})(),Cbe=(function(){var e={AA:"À",BA:"Á",CA:"Â",DA:195,HA:"Ä",JA:197,AE:"È",BE:"É",CE:"Ê",HE:"Ë",AI:"Ì",BI:"Í",CI:"Î",HI:"Ï",AO:"Ò",BO:"Ó",CO:"Ô",DO:213,HO:"Ö",AU:"Ù",BU:"Ú",CU:"Û",HU:"Ü",Aa:"à",Ba:"á",Ca:"â",Da:227,Ha:"ä",Ja:229,Ae:"è",Be:"é",Ce:"ê",He:"ë",Ai:"ì",Bi:"í",Ci:"î",Hi:"ï",Ao:"ò",Bo:"ó",Co:"ô",Do:245,Ho:"ö",Au:"ù",Bu:"ú",Cu:"û",Hu:"ü",KC:"Ç",Kc:"ç",q:"æ",z:"œ",a:"Æ",j:"Œ",DN:209,Dn:241,Hy:255,S:169,c:170,R:174,"B ":180,0:176,1:177,2:178,3:179,5:181,6:182,7:183,Q:185,k:186,b:208,i:216,l:222,s:240,y:248,"!":161,'"':162,"#":163,"(":164,"%":165,"'":167,"H ":168,"+":171,";":187,"<":188,"=":189,">":190,"?":191,"{":223},t=new RegExp("\x1BN("+$a(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),r=function(p,g){var y=e[g];return typeof y=="number"?tM(y):y},n=function(p,g,y){var m=g.charCodeAt(0)-32<<4|y.charCodeAt(0)-48;return m==59?p:tM(m)};e["|"]=254;function i(p,g){switch(g.type){case"base64":return a(Xc(p),g);case"binary":return a(p,g);case"buffer":return a(en&&Buffer.isBuffer(p)?p.toString("binary"):mv(p),g);case"array":return a(Hx(p),g)}throw new Error("Unrecognized type "+g.type)}function a(p,g){var y=p.split(/[\n\r]+/),m=-1,w=-1,b=0,E=0,S=[],T=[],D=null,k={},P=[],R=[],O=[],V=0,I;for(+g.codepage>=0&&F1(+g.codepage);b!==y.length;++b){V=0;var Q=y[b].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,n).replace(t,r),W=Q.replace(/;;/g,"\0").split(";").map(function(q){return q.replace(/\u0000/g,";")}),J=W[0],fe;if(Q.length>0)switch(J){case"ID":break;case"E":break;case"B":break;case"O":break;case"W":break;case"P":W[1].charAt(0)=="P"&&T.push(Q.slice(3).replace(/;;/g,";"));break;case"C":var G=!1,se=!1,ge=!1,ye=!1,_e=-1,Z=-1;for(E=1;E<W.length;++E)switch(W[E].charAt(0)){case"A":break;case"X":w=parseInt(W[E].slice(1))-1,se=!0;break;case"Y":for(m=parseInt(W[E].slice(1))-1,se||(w=0),I=S.length;I<=m;++I)S[I]=[];break;case"K":fe=W[E].slice(1),fe.charAt(0)==='"'?fe=fe.slice(1,fe.length-1):fe==="TRUE"?fe=!0:fe==="FALSE"?fe=!1:isNaN(Hc(fe))?isNaN(O1(fe).getDate())||(fe=Ts(fe)):(fe=Hc(fe),D!==null&&dz(D)&&(fe=mz(fe))),G=!0;break;case"E":ye=!0;var L=bBe(W[E].slice(1),{r:m,c:w});S[m][w]=[S[m][w],L];break;case"S":ge=!0,S[m][w]=[S[m][w],"S5S"];break;case"G":break;case"R":_e=parseInt(W[E].slice(1))-1;break;case"C":Z=parseInt(W[E].slice(1))-1;break;default:if(g&&g.WTF)throw new Error("SYLK bad record "+Q)}if(G&&(S[m][w]&&S[m][w].length==2?S[m][w][0]=fe:S[m][w]=fe,D=null),ge){if(ye)throw new Error("SYLK shared formula cannot have own formula");var j=_e>-1&&S[_e][Z];if(!j||!j[1])throw new Error("SYLK shared formula cannot find base");S[m][w][1]=BBe(j[1],{r:m-_e,c:w-Z})}break;case"F":var K=0;for(E=1;E<W.length;++E)switch(W[E].charAt(0)){case"X":w=parseInt(W[E].slice(1))-1,++K;break;case"Y":for(m=parseInt(W[E].slice(1))-1,I=S.length;I<=m;++I)S[I]=[];break;case"M":V=parseInt(W[E].slice(1))/20;break;case"F":break;case"G":break;case"P":D=T[parseInt(W[E].slice(1))];break;case"S":break;case"D":break;case"N":break;case"W":for(O=W[E].slice(1).split(" "),I=parseInt(O[0],10);I<=parseInt(O[1],10);++I)V=parseInt(O[2],10),R[I-1]=V===0?{hidden:!0}:{wch:V},xF(R[I-1]);break;case"C":w=parseInt(W[E].slice(1))-1,R[w]||(R[w]={});break;case"R":m=parseInt(W[E].slice(1))-1,P[m]||(P[m]={}),V>0?(P[m].hpt=V,P[m].hpx=aV(V)):V===0&&(P[m].hidden=!0);break;default:if(g&&g.WTF)throw new Error("SYLK bad record "+Q)}K<1&&(D=null);break;default:if(g&&g.WTF)throw new Error("SYLK bad record "+Q)}}return P.length>0&&(k["!rows"]=P),R.length>0&&(k["!cols"]=R),g&&g.sheetRows&&(S=S.slice(0,g.sheetRows)),[S,k]}function s(p,g){var y=i(p,g),m=y[0],w=y[1],b=wg(m,g);return $a(w).forEach(function(E){b[E]=w[E]}),b}function o(p,g){return td(s(p,g),g)}function l(p,g,y,m){var w="C;Y"+(y+1)+";X"+(m+1)+";K";switch(p.t){case"n":w+=p.v||0,p.f&&!p.F&&(w+=";E"+BF(p.f,{r:y,c:m}));break;case"b":w+=p.v?"TRUE":"FALSE";break;case"e":w+=p.w||p.v;break;case"d":w+='"'+(p.w||p.v)+'"';break;case"s":w+='"'+p.v.replace(/"/g,"").replace(/;/g,";;")+'"';break}return w}function c(p,g){g.forEach(function(y,m){var w="F;W"+(m+1)+" "+(m+1)+" ";y.hidden?w+="0":(typeof y.width=="number"&&!y.wpx&&(y.wpx=yw(y.width)),typeof y.wpx=="number"&&!y.wch&&(y.wch=ww(y.wpx)),typeof y.wch=="number"&&(w+=Math.round(y.wch))),w.charAt(w.length-1)!=" "&&p.push(w)})}function f(p,g){g.forEach(function(y,m){var w="F;";y.hidden?w+="M0;":y.hpt?w+="M"+20*y.hpt+";":y.hpx&&(w+="M"+20*xw(y.hpx)+";"),w.length>2&&p.push(w+"R"+(m+1))})}function h(p,g){var y=["ID;PWXL;N;E"],m=[],w=Vn(p["!ref"]),b,E=Array.isArray(p),S=`\r
`;y.push("P;PGeneral"),y.push("F;P0;DG0G8;M255"),p["!cols"]&&c(y,p["!cols"]),p["!rows"]&&f(y,p["!rows"]),y.push("B;Y"+(w.e.r-w.s.r+1)+";X"+(w.e.c-w.s.c+1)+";D"+[w.s.c,w.s.r,w.e.c,w.e.r].join(" "));for(var T=w.s.r;T<=w.e.r;++T)for(var D=w.s.c;D<=w.e.c;++D){var k=hn({r:T,c:D});b=E?(p[T]||[])[D]:p[k],!(!b||b.v==null&&(!b.f||b.F))&&m.push(l(b,p,T,D))}return y.join(S)+S+m.join(S)+S+"E"+S}return{to_workbook:o,to_sheet:s,from_sheet:h}})(),Ebe=(function(){function e(a,s){switch(s.type){case"base64":return t(Xc(a),s);case"binary":return t(a,s);case"buffer":return t(en&&Buffer.isBuffer(a)?a.toString("binary"):mv(a),s);case"array":return t(Hx(a),s)}throw new Error("Unrecognized type "+s.type)}function t(a,s){for(var o=a.split(`
`),l=-1,c=-1,f=0,h=[];f!==o.length;++f){if(o[f].trim()==="BOT"){h[++l]=[],c=0;continue}if(!(l<0)){var p=o[f].trim().split(","),g=p[0],y=p[1];++f;for(var m=o[f]||"";(m.match(/["]/g)||[]).length&1&&f<o.length-1;)m+=`
`+o[++f];switch(m=m.trim(),+g){case-1:if(m==="BOT"){h[++l]=[],c=0;continue}else if(m!=="EOD")throw new Error("Unrecognized DIF special command "+m);break;case 0:m==="TRUE"?h[l][c]=!0:m==="FALSE"?h[l][c]=!1:isNaN(Hc(y))?isNaN(O1(y).getDate())?h[l][c]=y:h[l][c]=Ts(y):h[l][c]=Hc(y),++c;break;case 1:m=m.slice(1,m.length-1),m=m.replace(/""/g,'"'),m&&m.match(/^=".*"$/)&&(m=m.slice(2,-1)),h[l][c++]=m!==""?m:null;break}if(m==="EOD")break}}return s&&s.sheetRows&&(h=h.slice(0,s.sheetRows)),h}function r(a,s){return wg(e(a,s),s)}function n(a,s){return td(r(a,s),s)}var i=(function(){var a=function(l,c,f,h,p){l.push(c),l.push(f+","+h),l.push('"'+p.replace(/"/g,'""')+'"')},s=function(l,c,f,h){l.push(c+","+f),l.push(c==1?'"'+h.replace(/"/g,'""')+'"':h)};return function(l){var c=[],f=Vn(l["!ref"]),h,p=Array.isArray(l);a(c,"TABLE",0,1,"sheetjs"),a(c,"VECTORS",0,f.e.r-f.s.r+1,""),a(c,"TUPLES",0,f.e.c-f.s.c+1,""),a(c,"DATA",0,0,"");for(var g=f.s.r;g<=f.e.r;++g){s(c,-1,0,"BOT");for(var y=f.s.c;y<=f.e.c;++y){var m=hn({r:g,c:y});if(h=p?(l[g]||[])[y]:l[m],!h){s(c,1,0,"");continue}switch(h.t){case"n":var w=h.w;!w&&h.v!=null&&(w=h.v),w==null?h.f&&!h.F?s(c,1,0,"="+h.f):s(c,1,0,""):s(c,0,w,"V");break;case"b":s(c,0,h.v?1:0,h.v?"TRUE":"FALSE");break;case"s":s(c,1,0,isNaN(h.v)?h.v:'="'+h.v+'"');break;case"d":h.w||(h.w=yf(h.z||Ei[14],io(Ts(h.v)))),s(c,0,h.w,"V");break;default:s(c,1,0,"")}}}s(c,-1,0,"EOD");var b=`\r
`,E=c.join(b);return E}})();return{to_workbook:n,to_sheet:r,from_sheet:i}})(),tV=(function(){function e(h){return h.replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,`
`)}function t(h){return h.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function r(h,p){for(var g=h.split(`
`),y=-1,m=-1,w=0,b=[];w!==g.length;++w){var E=g[w].trim().split(":");if(E[0]==="cell"){var S=Ea(E[1]);if(b.length<=S.r)for(y=b.length;y<=S.r;++y)b[y]||(b[y]=[]);switch(y=S.r,m=S.c,E[2]){case"t":b[y][m]=e(E[3]);break;case"v":b[y][m]=+E[3];break;case"vtf":var T=E[E.length-1];case"vtc":switch(E[3]){case"nl":b[y][m]=!!+E[4];break;default:b[y][m]=+E[4];break}E[2]=="vtf"&&(b[y][m]=[b[y][m],T])}}}return p&&p.sheetRows&&(b=b.slice(0,p.sheetRows)),b}function n(h,p){return wg(r(h,p),p)}function i(h,p){return td(n(h,p),p)}var a=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join(`
`),s=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join(`
`)+`
`,o=["# SocialCalc Spreadsheet Control Save","part:sheet"].join(`
`),l="--SocialCalcSpreadsheetControlSave--";function c(h){if(!h||!h["!ref"])return"";for(var p=[],g=[],y,m="",w=ko(h["!ref"]),b=Array.isArray(h),E=w.s.r;E<=w.e.r;++E)for(var S=w.s.c;S<=w.e.c;++S)if(m=hn({r:E,c:S}),y=b?(h[E]||[])[S]:h[m],!(!y||y.v==null||y.t==="z")){switch(g=["cell",m,"t"],y.t){case"s":case"str":g.push(t(y.v));break;case"n":y.f?(g[2]="vtf",g[3]="n",g[4]=y.v,g[5]=t(y.f)):(g[2]="v",g[3]=y.v);break;case"b":g[2]="vt"+(y.f?"f":"c"),g[3]="nl",g[4]=y.v?"1":"0",g[5]=t(y.f||(y.v?"TRUE":"FALSE"));break;case"d":var T=io(Ts(y.v));g[2]="vtc",g[3]="nd",g[4]=""+T,g[5]=y.w||yf(y.z||Ei[14],T);break;case"e":continue}p.push(g.join(":"))}return p.push("sheet:c:"+(w.e.c-w.s.c+1)+":r:"+(w.e.r-w.s.r+1)+":tvf:1"),p.push("valueformat:1:text-wiki"),p.join(`
`)}function f(h){return[a,s,o,s,c(h),l].join(`
`)}return{to_workbook:i,to_sheet:n,from_sheet:f}})(),_be=(function(){function e(f,h,p,g,y){y.raw?h[p][g]=f:f===""||(f==="TRUE"?h[p][g]=!0:f==="FALSE"?h[p][g]=!1:isNaN(Hc(f))?isNaN(O1(f).getDate())?h[p][g]=f:h[p][g]=Ts(f):h[p][g]=Hc(f))}function t(f,h){var p=h||{},g=[];if(!f||f.length===0)return g;for(var y=f.split(/[\r\n]/),m=y.length-1;m>=0&&y[m].length===0;)--m;for(var w=10,b=0,E=0;E<=m;++E)b=y[E].indexOf(" "),b==-1?b=y[E].length:b++,w=Math.max(w,b);for(E=0;E<=m;++E){g[E]=[];var S=0;for(e(y[E].slice(0,w).trim(),g,E,S,p),S=1;S<=(y[E].length-w)/10+1;++S)e(y[E].slice(w+(S-1)*10,w+S*10).trim(),g,E,S,p)}return p.sheetRows&&(g=g.slice(0,p.sheetRows)),g}var r={44:",",9:"	",59:";",124:"|"},n={44:3,9:2,59:1,124:0};function i(f){for(var h={},p=!1,g=0,y=0;g<f.length;++g)(y=f.charCodeAt(g))==34?p=!p:!p&&y in r&&(h[y]=(h[y]||0)+1);y=[];for(g in h)Object.prototype.hasOwnProperty.call(h,g)&&y.push([h[g],g]);if(!y.length){h=n;for(g in h)Object.prototype.hasOwnProperty.call(h,g)&&y.push([h[g],g])}return y.sort(function(m,w){return m[0]-w[0]||n[m[1]]-n[w[1]]}),r[y.pop()[1]]||44}function a(f,h){var p=h||{},g="",y=p.dense?[]:{},m={s:{c:0,r:0},e:{c:0,r:0}};f.slice(0,4)=="sep="?f.charCodeAt(5)==13&&f.charCodeAt(6)==10?(g=f.charAt(4),f=f.slice(7)):f.charCodeAt(5)==13||f.charCodeAt(5)==10?(g=f.charAt(4),f=f.slice(6)):g=i(f.slice(0,1024)):p&&p.FS?g=p.FS:g=i(f.slice(0,1024));var w=0,b=0,E=0,S=0,T=0,D=g.charCodeAt(0),k=!1,P=0,R=f.charCodeAt(0);f=f.replace(/\r\n/mg,`
`);var O=p.dateNF!=null?Hwe(p.dateNF):null;function V(){var I=f.slice(S,T),Q={};if(I.charAt(0)=='"'&&I.charAt(I.length-1)=='"'&&(I=I.slice(1,-1).replace(/""/g,'"')),I.length===0)Q.t="z";else if(p.raw)Q.t="s",Q.v=I;else if(I.trim().length===0)Q.t="s",Q.v=I;else if(I.charCodeAt(0)==61)I.charCodeAt(1)==34&&I.charCodeAt(I.length-1)==34?(Q.t="s",Q.v=I.slice(2,-1).replace(/""/g,'"')):CBe(I)?(Q.t="n",Q.f=I.slice(1)):(Q.t="s",Q.v=I);else if(I=="TRUE")Q.t="b",Q.v=!0;else if(I=="FALSE")Q.t="b",Q.v=!1;else if(!isNaN(E=Hc(I)))Q.t="n",p.cellText!==!1&&(Q.w=I),Q.v=E;else if(!isNaN(O1(I).getDate())||O&&I.match(O)){Q.z=p.dateNF||Ei[14];var W=0;O&&I.match(O)&&(I=Kwe(I,p.dateNF,I.match(O)||[]),W=1),p.cellDates?(Q.t="d",Q.v=Ts(I,W)):(Q.t="n",Q.v=io(Ts(I,W))),p.cellText!==!1&&(Q.w=yf(Q.z,Q.v instanceof Date?io(Q.v):Q.v)),p.cellNF||delete Q.z}else Q.t="s",Q.v=I;if(Q.t=="z"||(p.dense?(y[w]||(y[w]=[]),y[w][b]=Q):y[hn({c:b,r:w})]=Q),S=T+1,R=f.charCodeAt(S),m.e.c<b&&(m.e.c=b),m.e.r<w&&(m.e.r=w),P==D)++b;else if(b=0,++w,p.sheetRows&&p.sheetRows<=w)return!0}e:for(;T<f.length;++T)switch(P=f.charCodeAt(T)){case 34:R===34&&(k=!k);break;case D:case 10:case 13:if(!k&&V())break e;break}return T-S>0&&V(),y["!ref"]=qi(m),y}function s(f,h){return!(h&&h.PRN)||h.FS||f.slice(0,4)=="sep="||f.indexOf("	")>=0||f.indexOf(",")>=0||f.indexOf(";")>=0?a(f,h):wg(t(f,h),h)}function o(f,h){var p="",g=h.type=="string"?[0,0,0,0]:k_e(f,h);switch(h.type){case"base64":p=Xc(f);break;case"binary":p=f;break;case"buffer":h.codepage==65001?p=f.toString("utf8"):h.codepage&&typeof cw<"u"||(p=en&&Buffer.isBuffer(f)?f.toString("binary"):mv(f));break;case"array":p=Hx(f);break;case"string":p=f;break;default:throw new Error("Unrecognized type "+h.type)}return g[0]==239&&g[1]==187&&g[2]==191?p=Zp(p.slice(3)):h.type!="string"&&h.type!="buffer"&&h.codepage==65001?p=Zp(p):h.type=="binary"&&typeof cw<"u",p.slice(0,19)=="socialcalc:version:"?tV.to_sheet(h.type=="string"?p:Zp(p),h):s(p,h)}function l(f,h){return td(o(f,h),h)}function c(f){for(var h=[],p=Vn(f["!ref"]),g,y=Array.isArray(f),m=p.s.r;m<=p.e.r;++m){for(var w=[],b=p.s.c;b<=p.e.c;++b){var E=hn({r:m,c:b});if(g=y?(f[m]||[])[b]:f[E],!g||g.v==null){w.push("          ");continue}for(var S=(g.w||(Jc(g),g.w)||"").slice(0,10);S.length<10;)S+=" ";w.push(S+(b===0?" ":""))}h.push(w.join(""))}return h.join(`
`)}return{to_workbook:l,to_sheet:o,from_sheet:c}})(),NM=(function(){function e(L,j,K){if(L){To(L,L.l||0);for(var q=K.Enum||_e;L.l<L.length;){var re=L.read_shift(2),he=q[re]||q[65535],Be=L.read_shift(2),ae=L.l+Be,be=he.f&&he.f(L,Be,K);if(L.l=ae,j(be,he,re))return}}}function t(L,j){switch(j.type){case"base64":return r(tl(Xc(L)),j);case"binary":return r(tl(L),j);case"buffer":case"array":return r(L,j)}throw"Unsupported type "+j.type}function r(L,j){if(!L)return L;var K=j||{},q=K.dense?[]:{},re="Sheet1",he="",Be=0,ae={},be=[],ke=[],Fe={s:{r:0,c:0},e:{r:0,c:0}},st=K.sheetRows||0;if(L[2]==0&&(L[3]==8||L[3]==9)&&L.length>=16&&L[14]==5&&L[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(L[2]==2)K.Enum=_e,e(L,function(tt,wt,nt){switch(nt){case 0:K.vers=tt,tt>=4096&&(K.qpro=!0);break;case 6:Fe=tt;break;case 204:tt&&(he=tt);break;case 222:he=tt;break;case 15:case 51:K.qpro||(tt[1].v=tt[1].v.slice(1));case 13:case 14:case 16:nt==14&&(tt[2]&112)==112&&(tt[2]&15)>1&&(tt[2]&15)<15&&(tt[1].z=K.dateNF||Ei[14],K.cellDates&&(tt[1].t="d",tt[1].v=mz(tt[1].v))),K.qpro&&tt[3]>Be&&(q["!ref"]=qi(Fe),ae[re]=q,be.push(re),q=K.dense?[]:{},Fe={s:{r:0,c:0},e:{r:0,c:0}},Be=tt[3],re=he||"Sheet"+(Be+1),he="");var Tt=K.dense?(q[tt[0].r]||[])[tt[0].c]:q[hn(tt[0])];if(Tt){Tt.t=tt[1].t,Tt.v=tt[1].v,tt[1].z!=null&&(Tt.z=tt[1].z),tt[1].f!=null&&(Tt.f=tt[1].f);break}K.dense?(q[tt[0].r]||(q[tt[0].r]=[]),q[tt[0].r][tt[0].c]=tt[1]):q[hn(tt[0])]=tt[1];break}},K);else if(L[2]==26||L[2]==14)K.Enum=Z,L[2]==14&&(K.qpro=!0,L.l=0),e(L,function(tt,wt,nt){switch(nt){case 204:re=tt;break;case 22:tt[1].v=tt[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(tt[3]>Be&&(q["!ref"]=qi(Fe),ae[re]=q,be.push(re),q=K.dense?[]:{},Fe={s:{r:0,c:0},e:{r:0,c:0}},Be=tt[3],re="Sheet"+(Be+1)),st>0&&tt[0].r>=st)break;K.dense?(q[tt[0].r]||(q[tt[0].r]=[]),q[tt[0].r][tt[0].c]=tt[1]):q[hn(tt[0])]=tt[1],Fe.e.c<tt[0].c&&(Fe.e.c=tt[0].c),Fe.e.r<tt[0].r&&(Fe.e.r=tt[0].r);break;case 27:tt[14e3]&&(ke[tt[14e3][0]]=tt[14e3][1]);break;case 1537:ke[tt[0]]=tt[1],tt[0]==Be&&(re=tt[1]);break}},K);else throw new Error("Unrecognized LOTUS BOF "+L[2]);if(q["!ref"]=qi(Fe),ae[he||re]=q,be.push(he||re),!ke.length)return{SheetNames:be,Sheets:ae};for(var Ge={},le=[],$e=0;$e<ke.length;++$e)ae[be[$e]]?(le.push(ke[$e]||be[$e]),Ge[ke[$e]]=ae[ke[$e]]||ae[be[$e]]):(le.push(ke[$e]),Ge[ke[$e]]={"!ref":"A1"});return{SheetNames:le,Sheets:Ge}}function n(L,j){var K=j||{};if(+K.codepage>=0&&F1(+K.codepage),K.type=="string")throw new Error("Cannot write WK1 to JS string");var q=no(),re=Vn(L["!ref"]),he=Array.isArray(L),Be=[];gt(q,0,a(1030)),gt(q,6,l(re));for(var ae=Math.min(re.e.r,8191),be=re.s.r;be<=ae;++be)for(var ke=Wa(be),Fe=re.s.c;Fe<=re.e.c;++Fe){be===re.s.r&&(Be[Fe]=fs(Fe));var st=Be[Fe]+ke,Ge=he?(L[be]||[])[Fe]:L[st];if(!(!Ge||Ge.t=="z"))if(Ge.t=="n")(Ge.v|0)==Ge.v&&Ge.v>=-32768&&Ge.v<=32767?gt(q,13,g(be,Fe,Ge.v)):gt(q,14,m(be,Fe,Ge.v));else{var le=Jc(Ge);gt(q,15,h(be,Fe,le.slice(0,239)))}}return gt(q,1),q.end()}function i(L,j){var K=j||{};if(+K.codepage>=0&&F1(+K.codepage),K.type=="string")throw new Error("Cannot write WK3 to JS string");var q=no();gt(q,0,s(L));for(var re=0,he=0;re<L.SheetNames.length;++re)(L.Sheets[L.SheetNames[re]]||{})["!ref"]&&gt(q,27,ye(L.SheetNames[re],he++));var Be=0;for(re=0;re<L.SheetNames.length;++re){var ae=L.Sheets[L.SheetNames[re]];if(!(!ae||!ae["!ref"])){for(var be=Vn(ae["!ref"]),ke=Array.isArray(ae),Fe=[],st=Math.min(be.e.r,8191),Ge=be.s.r;Ge<=st;++Ge)for(var le=Wa(Ge),$e=be.s.c;$e<=be.e.c;++$e){Ge===be.s.r&&(Fe[$e]=fs($e));var tt=Fe[$e]+le,wt=ke?(ae[Ge]||[])[$e]:ae[tt];if(!(!wt||wt.t=="z"))if(wt.t=="n")gt(q,23,V(Ge,$e,Be,wt.v));else{var nt=Jc(wt);gt(q,22,P(Ge,$e,Be,nt.slice(0,239)))}}++Be}}return gt(q,1),q.end()}function a(L){var j=Xe(2);return j.write_shift(2,L),j}function s(L){var j=Xe(26);j.write_shift(2,4096),j.write_shift(2,4),j.write_shift(4,0);for(var K=0,q=0,re=0,he=0;he<L.SheetNames.length;++he){var Be=L.SheetNames[he],ae=L.Sheets[Be];if(!(!ae||!ae["!ref"])){++re;var be=ko(ae["!ref"]);K<be.e.r&&(K=be.e.r),q<be.e.c&&(q=be.e.c)}}return K>8191&&(K=8191),j.write_shift(2,K),j.write_shift(1,re),j.write_shift(1,q),j.write_shift(2,0),j.write_shift(2,0),j.write_shift(1,1),j.write_shift(1,2),j.write_shift(4,0),j.write_shift(4,0),j}function o(L,j,K){var q={s:{c:0,r:0},e:{c:0,r:0}};return j==8&&K.qpro?(q.s.c=L.read_shift(1),L.l++,q.s.r=L.read_shift(2),q.e.c=L.read_shift(1),L.l++,q.e.r=L.read_shift(2),q):(q.s.c=L.read_shift(2),q.s.r=L.read_shift(2),j==12&&K.qpro&&(L.l+=2),q.e.c=L.read_shift(2),q.e.r=L.read_shift(2),j==12&&K.qpro&&(L.l+=2),q.s.c==65535&&(q.s.c=q.e.c=q.s.r=q.e.r=0),q)}function l(L){var j=Xe(8);return j.write_shift(2,L.s.c),j.write_shift(2,L.s.r),j.write_shift(2,L.e.c),j.write_shift(2,L.e.r),j}function c(L,j,K){var q=[{c:0,r:0},{t:"n",v:0},0,0];return K.qpro&&K.vers!=20768?(q[0].c=L.read_shift(1),q[3]=L.read_shift(1),q[0].r=L.read_shift(2),L.l+=2):(q[2]=L.read_shift(1),q[0].c=L.read_shift(2),q[0].r=L.read_shift(2)),q}function f(L,j,K){var q=L.l+j,re=c(L,j,K);if(re[1].t="s",K.vers==20768){L.l++;var he=L.read_shift(1);return re[1].v=L.read_shift(he,"utf8"),re}return K.qpro&&L.l++,re[1].v=L.read_shift(q-L.l,"cstr"),re}function h(L,j,K){var q=Xe(7+K.length);q.write_shift(1,255),q.write_shift(2,j),q.write_shift(2,L),q.write_shift(1,39);for(var re=0;re<q.length;++re){var he=K.charCodeAt(re);q.write_shift(1,he>=128?95:he)}return q.write_shift(1,0),q}function p(L,j,K){var q=c(L,j,K);return q[1].v=L.read_shift(2,"i"),q}function g(L,j,K){var q=Xe(7);return q.write_shift(1,255),q.write_shift(2,j),q.write_shift(2,L),q.write_shift(2,K,"i"),q}function y(L,j,K){var q=c(L,j,K);return q[1].v=L.read_shift(8,"f"),q}function m(L,j,K){var q=Xe(13);return q.write_shift(1,255),q.write_shift(2,j),q.write_shift(2,L),q.write_shift(8,K,"f"),q}function w(L,j,K){var q=L.l+j,re=c(L,j,K);if(re[1].v=L.read_shift(8,"f"),K.qpro)L.l=q;else{var he=L.read_shift(2);T(L.slice(L.l,L.l+he),re),L.l+=he}return re}function b(L,j,K){var q=j&32768;return j&=-32769,j=(q?L:0)+(j>=8192?j-16384:j),(q?"":"$")+(K?fs(j):Wa(j))}var E={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},S=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function T(L,j){To(L,0);for(var K=[],q=0,re="",he="",Be="",ae="";L.l<L.length;){var be=L[L.l++];switch(be){case 0:K.push(L.read_shift(8,"f"));break;case 1:he=b(j[0].c,L.read_shift(2),!0),re=b(j[0].r,L.read_shift(2),!1),K.push(he+re);break;case 2:{var ke=b(j[0].c,L.read_shift(2),!0),Fe=b(j[0].r,L.read_shift(2),!1);he=b(j[0].c,L.read_shift(2),!0),re=b(j[0].r,L.read_shift(2),!1),K.push(ke+Fe+":"+he+re)}break;case 3:if(L.l<L.length){console.error("WK1 premature formula end");return}break;case 4:K.push("("+K.pop()+")");break;case 5:K.push(L.read_shift(2));break;case 6:{for(var st="";be=L[L.l++];)st+=String.fromCharCode(be);K.push('"'+st.replace(/"/g,'""')+'"')}break;case 8:K.push("-"+K.pop());break;case 23:K.push("+"+K.pop());break;case 22:K.push("NOT("+K.pop()+")");break;case 20:case 21:ae=K.pop(),Be=K.pop(),K.push(["AND","OR"][be-20]+"("+Be+","+ae+")");break;default:if(be<32&&S[be])ae=K.pop(),Be=K.pop(),K.push(Be+S[be]+ae);else if(E[be]){if(q=E[be][1],q==69&&(q=L[L.l++]),q>K.length){console.error("WK1 bad formula parse 0x"+be.toString(16)+":|"+K.join("|")+"|");return}var Ge=K.slice(-q);K.length-=q,K.push(E[be][0]+"("+Ge.join(",")+")")}else return be<=7?console.error("WK1 invalid opcode "+be.toString(16)):be<=24?console.error("WK1 unsupported op "+be.toString(16)):be<=30?console.error("WK1 invalid opcode "+be.toString(16)):be<=115?console.error("WK1 unsupported function opcode "+be.toString(16)):console.error("WK1 unrecognized opcode "+be.toString(16))}}K.length==1?j[1].f=""+K[0]:console.error("WK1 bad formula parse |"+K.join("|")+"|")}function D(L){var j=[{c:0,r:0},{t:"n",v:0},0];return j[0].r=L.read_shift(2),j[3]=L[L.l++],j[0].c=L[L.l++],j}function k(L,j){var K=D(L);return K[1].t="s",K[1].v=L.read_shift(j-4,"cstr"),K}function P(L,j,K,q){var re=Xe(6+q.length);re.write_shift(2,L),re.write_shift(1,K),re.write_shift(1,j),re.write_shift(1,39);for(var he=0;he<q.length;++he){var Be=q.charCodeAt(he);re.write_shift(1,Be>=128?95:Be)}return re.write_shift(1,0),re}function R(L,j){var K=D(L);K[1].v=L.read_shift(2);var q=K[1].v>>1;if(K[1].v&1)switch(q&7){case 0:q=(q>>3)*5e3;break;case 1:q=(q>>3)*500;break;case 2:q=(q>>3)/20;break;case 3:q=(q>>3)/200;break;case 4:q=(q>>3)/2e3;break;case 5:q=(q>>3)/2e4;break;case 6:q=(q>>3)/16;break;case 7:q=(q>>3)/64;break}return K[1].v=q,K}function O(L,j){var K=D(L),q=L.read_shift(4),re=L.read_shift(4),he=L.read_shift(2);if(he==65535)return q===0&&re===3221225472?(K[1].t="e",K[1].v=15):q===0&&re===3489660928?(K[1].t="e",K[1].v=42):K[1].v=0,K;var Be=he&32768;return he=(he&32767)-16446,K[1].v=(1-Be*2)*(re*Math.pow(2,he+32)+q*Math.pow(2,he)),K}function V(L,j,K,q){var re=Xe(14);if(re.write_shift(2,L),re.write_shift(1,K),re.write_shift(1,j),q==0)return re.write_shift(4,0),re.write_shift(4,0),re.write_shift(2,65535),re;var he=0,Be=0,ae=0,be=0;return q<0&&(he=1,q=-q),Be=Math.log2(q)|0,q/=Math.pow(2,Be-31),be=q>>>0,(be&2147483648)==0&&(q/=2,++Be,be=q>>>0),q-=be,be|=2147483648,be>>>=0,q*=Math.pow(2,32),ae=q>>>0,re.write_shift(4,ae),re.write_shift(4,be),Be+=16383+(he?32768:0),re.write_shift(2,Be),re}function I(L,j){var K=O(L);return L.l+=j-14,K}function Q(L,j){var K=D(L),q=L.read_shift(4);return K[1].v=q>>6,K}function W(L,j){var K=D(L),q=L.read_shift(8,"f");return K[1].v=q,K}function J(L,j){var K=W(L);return L.l+=j-10,K}function fe(L,j){return L[L.l+j-1]==0?L.read_shift(j,"cstr"):""}function G(L,j){var K=L[L.l++];K>j-1&&(K=j-1);for(var q="";q.length<K;)q+=String.fromCharCode(L[L.l++]);return q}function se(L,j,K){if(!(!K.qpro||j<21)){var q=L.read_shift(1);L.l+=17,L.l+=1,L.l+=2;var re=L.read_shift(j-21,"cstr");return[q,re]}}function ge(L,j){for(var K={},q=L.l+j;L.l<q;){var re=L.read_shift(2);if(re==14e3){for(K[re]=[0,""],K[re][0]=L.read_shift(2);L[L.l];)K[re][1]+=String.fromCharCode(L[L.l]),L.l++;L.l++}}return K}function ye(L,j){var K=Xe(5+L.length);K.write_shift(2,14e3),K.write_shift(2,j);for(var q=0;q<L.length;++q){var re=L.charCodeAt(q);K[K.l++]=re>127?95:re}return K[K.l++]=0,K}var _e={0:{n:"BOF",f:$z},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:o},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:p},14:{n:"NUMBER",f:y},15:{n:"LABEL",f},16:{n:"FORMULA",f:w},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:fe},222:{n:"SHEETNAMELP",f:G},65535:{n:""}},Z={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:k},23:{n:"NUMBER17",f:O},24:{n:"NUMBER18",f:R},25:{n:"FORMULA19",f:I},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:ge},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:Q},38:{n:"??"},39:{n:"NUMBER27",f:W},40:{n:"FORMULA28",f:J},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:fe},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:se},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:n,book_to_wk3:i,to_workbook:t}})(),Sbe=/^\s|\s$|[\t\n\r]/;function rV(e,t){if(!t.bookSST)return"";var r=[Wi];r[r.length]=ht("sst",null,{xmlns:yg[0],count:e.Count,uniqueCount:e.Unique});for(var n=0;n!=e.length;++n)if(e[n]!=null){var i=e[n],a="<si>";i.r?a+=i.r:(a+="<t",i.t||(i.t=""),i.t.match(Sbe)&&(a+=' xml:space="preserve"'),a+=">"+fn(i.t)+"</t>"),a+="</si>",r[r.length]=a}return r.length>2&&(r[r.length]="</sst>",r[1]=r[1].replace("/>",">")),r.join("")}function Fbe(e){return[e.read_shift(4),e.read_shift(4)]}function Tbe(e,t){return t||(t=Xe(8)),t.write_shift(4,e.Count),t.write_shift(4,e.Unique),t}var Obe=wxe;function Ube(e){var t=no();lt(t,159,Tbe(e));for(var r=0;r<e.length;++r)lt(t,19,Obe(e[r]));return lt(t,160),t.end()}function Nbe(e){for(var t=[],r=e.split(""),n=0;n<r.length;++n)t[n]=r[n].charCodeAt(0);return t}function nV(e){var t=0,r,n=Nbe(e),i=n.length+1,a,s,o,l,c;for(r=zh(i),r[0]=n.length,a=1;a!=i;++a)r[a]=n[a-1];for(a=i-1;a>=0;--a)s=r[a],o=(t&16384)===0?0:1,l=t<<1&32767,c=o|l,t=c^s;return t^52811}var Lbe=(function(){function e(i,a){switch(a.type){case"base64":return t(Xc(i),a);case"binary":return t(i,a);case"buffer":return t(en&&Buffer.isBuffer(i)?i.toString("binary"):mv(i),a);case"array":return t(Hx(i),a)}throw new Error("Unrecognized type "+a.type)}function t(i,a){var s=a||{},o=s.dense?[]:{},l=i.match(/\\trowd.*?\\row\b/g);if(!l.length)throw new Error("RTF missing table");var c={s:{c:0,r:0},e:{c:0,r:l.length-1}};return l.forEach(function(f,h){Array.isArray(o)&&(o[h]=[]);for(var p=/\\\w+\b/g,g=0,y,m=-1;y=p.exec(f);){switch(y[0]){case"\\cell":var w=f.slice(g,p.lastIndex-y[0].length);if(w[0]==" "&&(w=w.slice(1)),++m,w.length){var b={v:w,t:"s"};Array.isArray(o)?o[h][m]=b:o[hn({r:h,c:m})]=b}break}g=p.lastIndex}m>c.e.c&&(c.e.c=m)}),o["!ref"]=qi(c),o}function r(i,a){return td(e(i,a),a)}function n(i){for(var a=["{\\rtf1\\ansi"],s=Vn(i["!ref"]),o,l=Array.isArray(i),c=s.s.r;c<=s.e.r;++c){a.push("\\trowd\\trautofit1");for(var f=s.s.c;f<=s.e.c;++f)a.push("\\cellx"+(f+1));for(a.push("\\pard\\intbl"),f=s.s.c;f<=s.e.c;++f){var h=hn({r:c,c:f});o=l?(i[c]||[])[f]:i[h],!(!o||o.v==null&&(!o.f||o.F))&&(a.push(" "+(o.w||(Jc(o),o.w))),a.push("\\cell"))}a.push("\\pard\\intbl\\row")}return a.join("")+"}"}return{to_workbook:r,to_sheet:e,from_sheet:n}})();function LM(e){for(var t=0,r=1;t!=3;++t)r=r*256+(e[t]>255?255:e[t]<0?0:e[t]);return r.toString(16).toUpperCase().slice(1)}var Dbe=6,Kc=Dbe;function yw(e){return Math.floor((e+Math.round(128/Kc)/256)*Kc)}function ww(e){return Math.floor((e-5)/Kc*100+.5)/100}function m4(e){return Math.round((e*Kc+5)/Kc*256)/256}function xF(e){e.width?(e.wpx=yw(e.width),e.wch=ww(e.wpx),e.MDW=Kc):e.wpx?(e.wch=ww(e.wpx),e.width=m4(e.wch),e.MDW=Kc):typeof e.wch=="number"&&(e.width=m4(e.wch),e.wpx=yw(e.width),e.MDW=Kc),e.customWidth&&delete e.customWidth}var Ibe=96,iV=Ibe;function xw(e){return e*96/iV}function aV(e){return e*iV/96}function Mbe(e){var t=["<numFmts>"];return[[5,8],[23,26],[41,44],[50,392]].forEach(function(r){for(var n=r[0];n<=r[1];++n)e[n]!=null&&(t[t.length]=ht("numFmt",null,{numFmtId:n,formatCode:fn(e[n])}))}),t.length===1?"":(t[t.length]="</numFmts>",t[0]=ht("numFmts",null,{count:t.length-2}).replace("/>",">"),t.join(""))}function Pbe(e){var t=[];return t[t.length]=ht("cellXfs",null),e.forEach(function(r){t[t.length]=ht("xf",null,r)}),t[t.length]="</cellXfs>",t.length===2?"":(t[0]=ht("cellXfs",null,{count:t.length-2}).replace("/>",">"),t.join(""))}function sV(e,t){var r=[Wi,ht("styleSheet",null,{xmlns:yg[0],"xmlns:vt":Ba.vt})],n;return e.SSF&&(n=Mbe(e.SSF))!=null&&(r[r.length]=n),r[r.length]='<fonts count="1"><font><sz val="12"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts>',r[r.length]='<fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills>',r[r.length]='<borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders>',r[r.length]='<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',(n=Pbe(t.cellXfs))&&(r[r.length]=n),r[r.length]='<cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>',r[r.length]='<dxfs count="0"/>',r[r.length]='<tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4"/>',r.length>2&&(r[r.length]="</styleSheet>",r[1]=r[1].replace("/>",">")),r.join("")}function kbe(e,t){var r=e.read_shift(2),n=hs(e);return[r,n]}function Qbe(e,t,r){r||(r=Xe(6+4*t.length)),r.write_shift(2,e),_a(t,r);var n=r.length>r.l?r.slice(0,r.l):r;return r.l==null&&(r.l=r.length),n}function Rbe(e,t,r){var n={};n.sz=e.read_shift(2)/20;var i=Sxe(e);i.fItalic&&(n.italic=1),i.fCondense&&(n.condense=1),i.fExtend&&(n.extend=1),i.fShadow&&(n.shadow=1),i.fOutline&&(n.outline=1),i.fStrikeout&&(n.strike=1);var a=e.read_shift(2);switch(a===700&&(n.bold=1),e.read_shift(2)){case 1:n.vertAlign="superscript";break;case 2:n.vertAlign="subscript";break}var s=e.read_shift(1);s!=0&&(n.underline=s);var o=e.read_shift(1);o>0&&(n.family=o);var l=e.read_shift(1);switch(l>0&&(n.charset=l),e.l++,n.color=_xe(e),e.read_shift(1)){case 1:n.scheme="major";break;case 2:n.scheme="minor";break}return n.name=hs(e),n}function jbe(e,t){t||(t=Xe(153)),t.write_shift(2,e.sz*20),Fxe(e,t),t.write_shift(2,e.bold?700:400);var r=0;e.vertAlign=="superscript"?r=1:e.vertAlign=="subscript"&&(r=2),t.write_shift(2,r),t.write_shift(1,e.underline||0),t.write_shift(1,e.family||0),t.write_shift(1,e.charset||0),t.write_shift(1,0),vw(e.color,t);var n=0;return n=2,t.write_shift(1,n),_a(e.name,t),t.length>t.l?t.slice(0,t.l):t}var Hbe=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],HC,Kbe=Gl;function DM(e,t){t||(t=Xe(84)),HC||(HC=lF(Hbe));var r=HC[e.patternType];r==null&&(r=40),t.write_shift(4,r);var n=0;if(r!=40)for(vw({auto:1},t),vw({auto:1},t);n<12;++n)t.write_shift(4,0);else{for(;n<4;++n)t.write_shift(4,0);for(;n<12;++n)t.write_shift(4,0)}return t.length>t.l?t.slice(0,t.l):t}function zbe(e,t){var r=e.l+t,n=e.read_shift(2),i=e.read_shift(2);return e.l=r,{ixfe:n,numFmtId:i}}function oV(e,t,r){r||(r=Xe(16)),r.write_shift(2,t||0),r.write_shift(2,e.numFmtId||0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(1,0),r.write_shift(1,0);var n=0;return r.write_shift(1,n),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(1,0),r}function Bp(e,t){return t||(t=Xe(10)),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(4,0),t.write_shift(4,0),t}var Vbe=Gl;function Gbe(e,t){return t||(t=Xe(51)),t.write_shift(1,0),Bp(null,t),Bp(null,t),Bp(null,t),Bp(null,t),Bp(null,t),t.length>t.l?t.slice(0,t.l):t}function qbe(e,t){return t||(t=Xe(52)),t.write_shift(4,e.xfId),t.write_shift(2,1),t.write_shift(1,0),t.write_shift(1,0),pw(e.name||"",t),t.length>t.l?t.slice(0,t.l):t}function Wbe(e,t,r){var n=Xe(2052);return n.write_shift(4,e),pw(t,n),pw(r,n),n.length>n.l?n.slice(0,n.l):n}function Ybe(e,t){if(t){var r=0;[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var i=n[0];i<=n[1];++i)t[i]!=null&&++r}),r!=0&&(lt(e,615,nl(r)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var i=n[0];i<=n[1];++i)t[i]!=null&&lt(e,44,Qbe(i,t[i]))}),lt(e,616))}}function $be(e){var t=1;lt(e,611,nl(t)),lt(e,43,jbe({sz:12,color:{theme:1},name:"Calibri",family:2})),lt(e,612)}function Xbe(e){var t=2;lt(e,603,nl(t)),lt(e,45,DM({patternType:"none"})),lt(e,45,DM({patternType:"gray125"})),lt(e,604)}function Jbe(e){var t=1;lt(e,613,nl(t)),lt(e,46,Gbe()),lt(e,614)}function Zbe(e){var t=1;lt(e,626,nl(t)),lt(e,47,oV({numFmtId:0},65535)),lt(e,627)}function eBe(e,t){lt(e,617,nl(t.length)),t.forEach(function(r){lt(e,47,oV(r,0))}),lt(e,618)}function tBe(e){var t=1;lt(e,619,nl(t)),lt(e,48,qbe({xfId:0,name:"Normal"})),lt(e,620)}function rBe(e){var t=0;lt(e,505,nl(t)),lt(e,506)}function nBe(e){var t=0;lt(e,508,Wbe(t,"TableStyleMedium9","PivotStyleMedium4")),lt(e,509)}function iBe(e,t){var r=no();return lt(r,278),Ybe(r,e.SSF),$be(r),Xbe(r),Jbe(r),Zbe(r),eBe(r,t.cellXfs),tBe(r),rBe(r),nBe(r),lt(r,279),r.end()}function AV(e,t){if(t&&t.themeXLSX)return t.themeXLSX;if(e&&typeof e.raw=="string")return e.raw;var r=[Wi];return r[r.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">',r[r.length]="<a:themeElements>",r[r.length]='<a:clrScheme name="Office">',r[r.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>',r[r.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>',r[r.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>',r[r.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>',r[r.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>',r[r.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>',r[r.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>',r[r.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>',r[r.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>',r[r.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>',r[r.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>',r[r.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>',r[r.length]="</a:clrScheme>",r[r.length]='<a:fontScheme name="Office">',r[r.length]="<a:majorFont>",r[r.length]='<a:latin typeface="Cambria"/>',r[r.length]='<a:ea typeface=""/>',r[r.length]='<a:cs typeface=""/>',r[r.length]='<a:font script="Jpan" typeface="ＭＳ Ｐゴシック"/>',r[r.length]='<a:font script="Hang" typeface="맑은 고딕"/>',r[r.length]='<a:font script="Hans" typeface="宋体"/>',r[r.length]='<a:font script="Hant" typeface="新細明體"/>',r[r.length]='<a:font script="Arab" typeface="Times New Roman"/>',r[r.length]='<a:font script="Hebr" typeface="Times New Roman"/>',r[r.length]='<a:font script="Thai" typeface="Tahoma"/>',r[r.length]='<a:font script="Ethi" typeface="Nyala"/>',r[r.length]='<a:font script="Beng" typeface="Vrinda"/>',r[r.length]='<a:font script="Gujr" typeface="Shruti"/>',r[r.length]='<a:font script="Khmr" typeface="MoolBoran"/>',r[r.length]='<a:font script="Knda" typeface="Tunga"/>',r[r.length]='<a:font script="Guru" typeface="Raavi"/>',r[r.length]='<a:font script="Cans" typeface="Euphemia"/>',r[r.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',r[r.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',r[r.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',r[r.length]='<a:font script="Thaa" typeface="MV Boli"/>',r[r.length]='<a:font script="Deva" typeface="Mangal"/>',r[r.length]='<a:font script="Telu" typeface="Gautami"/>',r[r.length]='<a:font script="Taml" typeface="Latha"/>',r[r.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',r[r.length]='<a:font script="Orya" typeface="Kalinga"/>',r[r.length]='<a:font script="Mlym" typeface="Kartika"/>',r[r.length]='<a:font script="Laoo" typeface="DokChampa"/>',r[r.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',r[r.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',r[r.length]='<a:font script="Viet" typeface="Times New Roman"/>',r[r.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',r[r.length]='<a:font script="Geor" typeface="Sylfaen"/>',r[r.length]="</a:majorFont>",r[r.length]="<a:minorFont>",r[r.length]='<a:latin typeface="Calibri"/>',r[r.length]='<a:ea typeface=""/>',r[r.length]='<a:cs typeface=""/>',r[r.length]='<a:font script="Jpan" typeface="ＭＳ Ｐゴシック"/>',r[r.length]='<a:font script="Hang" typeface="맑은 고딕"/>',r[r.length]='<a:font script="Hans" typeface="宋体"/>',r[r.length]='<a:font script="Hant" typeface="新細明體"/>',r[r.length]='<a:font script="Arab" typeface="Arial"/>',r[r.length]='<a:font script="Hebr" typeface="Arial"/>',r[r.length]='<a:font script="Thai" typeface="Tahoma"/>',r[r.length]='<a:font script="Ethi" typeface="Nyala"/>',r[r.length]='<a:font script="Beng" typeface="Vrinda"/>',r[r.length]='<a:font script="Gujr" typeface="Shruti"/>',r[r.length]='<a:font script="Khmr" typeface="DaunPenh"/>',r[r.length]='<a:font script="Knda" typeface="Tunga"/>',r[r.length]='<a:font script="Guru" typeface="Raavi"/>',r[r.length]='<a:font script="Cans" typeface="Euphemia"/>',r[r.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',r[r.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',r[r.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',r[r.length]='<a:font script="Thaa" typeface="MV Boli"/>',r[r.length]='<a:font script="Deva" typeface="Mangal"/>',r[r.length]='<a:font script="Telu" typeface="Gautami"/>',r[r.length]='<a:font script="Taml" typeface="Latha"/>',r[r.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',r[r.length]='<a:font script="Orya" typeface="Kalinga"/>',r[r.length]='<a:font script="Mlym" typeface="Kartika"/>',r[r.length]='<a:font script="Laoo" typeface="DokChampa"/>',r[r.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',r[r.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',r[r.length]='<a:font script="Viet" typeface="Arial"/>',r[r.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',r[r.length]='<a:font script="Geor" typeface="Sylfaen"/>',r[r.length]="</a:minorFont>",r[r.length]="</a:fontScheme>",r[r.length]='<a:fmtScheme name="Office">',r[r.length]="<a:fillStyleLst>",r[r.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:lin ang="16200000" scaled="1"/>',r[r.length]="</a:gradFill>",r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="100000"/><a:shade val="100000"/><a:satMod val="130000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="50000"/><a:shade val="100000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:lin ang="16200000" scaled="0"/>',r[r.length]="</a:gradFill>",r[r.length]="</a:fillStyleLst>",r[r.length]="<a:lnStyleLst>",r[r.length]='<a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"><a:shade val="95000"/><a:satMod val="105000"/></a:schemeClr></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]='<a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]='<a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]="</a:lnStyleLst>",r[r.length]="<a:effectStyleLst>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]="</a:effectStyle>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]="</a:effectStyle>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]='<a:scene3d><a:camera prst="orthographicFront"><a:rot lat="0" lon="0" rev="0"/></a:camera><a:lightRig rig="threePt" dir="t"><a:rot lat="0" lon="0" rev="1200000"/></a:lightRig></a:scene3d>',r[r.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>',r[r.length]="</a:effectStyle>",r[r.length]="</a:effectStyleLst>",r[r.length]="<a:bgFillStyleLst>",r[r.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>',r[r.length]="</a:gradFill>",r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>',r[r.length]="</a:gradFill>",r[r.length]="</a:bgFillStyleLst>",r[r.length]="</a:fmtScheme>",r[r.length]="</a:themeElements>",r[r.length]="<a:objectDefaults>",r[r.length]="<a:spDef>",r[r.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="1"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="3"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="2"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="lt1"/></a:fontRef></a:style>',r[r.length]="</a:spDef>",r[r.length]="<a:lnDef>",r[r.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style>',r[r.length]="</a:lnDef>",r[r.length]="</a:objectDefaults>",r[r.length]="<a:extraClrSchemeLst/>",r[r.length]="</a:theme>",r.join("")}function aBe(e,t){return{flags:e.read_shift(4),version:e.read_shift(4),name:hs(e)}}function sBe(e){var t=Xe(12+2*e.name.length);return t.write_shift(4,e.flags),t.write_shift(4,e.version),_a(e.name,t),t.slice(0,t.l)}function oBe(e){for(var t=[],r=e.read_shift(4);r-- >0;)t.push([e.read_shift(4),e.read_shift(4)]);return t}function ABe(e){var t=Xe(4+8*e.length);t.write_shift(4,e.length);for(var r=0;r<e.length;++r)t.write_shift(4,e[r][0]),t.write_shift(4,e[r][1]);return t}function lBe(e,t){var r=Xe(8+2*t.length);return r.write_shift(4,e),_a(t,r),r.slice(0,r.l)}function cBe(e){return e.l+=4,e.read_shift(4)!=0}function uBe(e,t){var r=Xe(8);return r.write_shift(4,e),r.write_shift(4,1),r}function fBe(){var e=no();return lt(e,332),lt(e,334,nl(1)),lt(e,335,sBe({name:"XLDAPR",version:12e4,flags:3496657072})),lt(e,336),lt(e,339,lBe(1,"XLDAPR")),lt(e,52),lt(e,35,nl(514)),lt(e,4096,nl(0)),lt(e,4097,lA(1)),lt(e,36),lt(e,53),lt(e,340),lt(e,337,uBe(1)),lt(e,51,ABe([[1,0]])),lt(e,338),lt(e,333),e.end()}function lV(){var e=[Wi];return e.push(`<metadata xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:xlrd="http://schemas.microsoft.com/office/spreadsheetml/2017/richdata" xmlns:xda="http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray">
  <metadataTypes count="1">
    <metadataType name="XLDAPR" minSupportedVersion="120000" copy="1" pasteAll="1" pasteValues="1" merge="1" splitFirst="1" rowColShift="1" clearFormats="1" clearComments="1" assign="1" coerce="1" cellMeta="1"/>
  </metadataTypes>
  <futureMetadata name="XLDAPR" count="1">
    <bk>
      <extLst>
        <ext uri="{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}">
          <xda:dynamicArrayProperties fDynamic="1" fCollapsed="0"/>
        </ext>
      </extLst>
    </bk>
  </futureMetadata>
  <cellMetadata count="1">
    <bk>
      <rc t="1" v="0"/>
    </bk>
  </cellMetadata>
</metadata>`),e.join("")}function hBe(e){var t={};t.i=e.read_shift(4);var r={};r.r=e.read_shift(4),r.c=e.read_shift(4),t.r=hn(r);var n=e.read_shift(1);return n&2&&(t.l="1"),n&8&&(t.a="1"),t}var S0=1024;function cV(e,t){for(var r=[21600,21600],n=["m0,0l0",r[1],r[0],r[1],r[0],"0xe"].join(","),i=[ht("xml",null,{"xmlns:v":Uo.v,"xmlns:o":Uo.o,"xmlns:x":Uo.x,"xmlns:mv":Uo.mv}).replace(/\/>/,">"),ht("o:shapelayout",ht("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"}),ht("v:shapetype",[ht("v:stroke",null,{joinstyle:"miter"}),ht("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:r.join(","),path:n})];S0<e*1e3;)S0+=1e3;return t.forEach(function(a){var s=Ea(a[0]),o={color2:"#BEFF82",type:"gradient"};o.type=="gradient"&&(o.angle="-180");var l=o.type=="gradient"?ht("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,c=ht("v:fill",l,o),f={on:"t",obscured:"t"};++S0,i=i.concat(["<v:shape"+N1({id:"_x0000_s"+S0,type:"#_x0000_t202",style:"position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10"+(a[1].hidden?";visibility:hidden":""),fillcolor:"#ECFAD4",strokecolor:"#edeaa1"})+">",c,ht("v:shadow",null,f),ht("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",Va("x:Anchor",[s.c+1,0,s.r+1,0,s.c+3,20,s.r+5,20].join(",")),Va("x:AutoFill","False"),Va("x:Row",String(s.r)),Va("x:Column",String(s.c)),a[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])}),i.push("</xml>"),i.join("")}function uV(e){var t=[Wi,ht("comments",null,{xmlns:yg[0]})],r=[];return t.push("<authors>"),e.forEach(function(n){n[1].forEach(function(i){var a=fn(i.a);r.indexOf(a)==-1&&(r.push(a),t.push("<author>"+a+"</author>")),i.T&&i.ID&&r.indexOf("tc="+i.ID)==-1&&(r.push("tc="+i.ID),t.push("<author>tc="+i.ID+"</author>"))})}),r.length==0&&(r.push("SheetJ5"),t.push("<author>SheetJ5</author>")),t.push("</authors>"),t.push("<commentList>"),e.forEach(function(n){var i=0,a=[];if(n[1][0]&&n[1][0].T&&n[1][0].ID?i=r.indexOf("tc="+n[1][0].ID):n[1].forEach(function(l){l.a&&(i=r.indexOf(fn(l.a))),a.push(l.t||"")}),t.push('<comment ref="'+n[0]+'" authorId="'+i+'"><text>'),a.length<=1)t.push(Va("t",fn(a[0]||"")));else{for(var s=`Comment:
    `+a[0]+`
`,o=1;o<a.length;++o)s+=`Reply:
    `+a[o]+`
`;t.push(Va("t",fn(s)))}t.push("</text></comment>")}),t.push("</commentList>"),t.length>2&&(t[t.length]="</comments>",t[1]=t[1].replace("/>",">")),t.join("")}function dBe(e,t,r){var n=[Wi,ht("ThreadedComments",null,{xmlns:Ba.TCMNT}).replace(/[\/]>/,">")];return e.forEach(function(i){var a="";(i[1]||[]).forEach(function(s,o){if(!s.T){delete s.ID;return}s.a&&t.indexOf(s.a)==-1&&t.push(s.a);var l={ref:i[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+r.tcid++).slice(-12)+"}"};o==0?a=l.id:l.parentId=a,s.ID=l.id,s.a&&(l.personId="{54EE7950-7262-4200-6969-"+("000000000000"+t.indexOf(s.a)).slice(-12)+"}"),n.push(ht("threadedComment",Va("text",s.t||""),l))})}),n.push("</ThreadedComments>"),n.join("")}function gBe(e){var t=[Wi,ht("personList",null,{xmlns:Ba.TCMNT,"xmlns:x":yg[0]}).replace(/[\/]>/,">")];return e.forEach(function(r,n){t.push(ht("person",null,{displayName:r,id:"{54EE7950-7262-4200-6969-"+("000000000000"+n).slice(-12)+"}",userId:r,providerId:"None"}))}),t.push("</personList>"),t.join("")}function pBe(e){var t={};t.iauthor=e.read_shift(4);var r=ad(e);return t.rfx=r.s,t.ref=hn(r.s),e.l+=16,t}function vBe(e,t){return t==null&&(t=Xe(36)),t.write_shift(4,e[1].iauthor),xg(e[0],t),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t}var mBe=hs;function yBe(e){return _a(e.slice(0,54))}function wBe(e){var t=no(),r=[];return lt(t,628),lt(t,630),e.forEach(function(n){n[1].forEach(function(i){r.indexOf(i.a)>-1||(r.push(i.a.slice(0,54)),lt(t,632,yBe(i.a)))})}),lt(t,631),lt(t,633),e.forEach(function(n){n[1].forEach(function(i){i.iauthor=r.indexOf(i.a);var a={s:Ea(n[0]),e:Ea(n[0])};lt(t,635,vBe([a,i])),i.t&&i.t.length>0&&lt(t,637,bxe(i)),lt(t,636),delete i.iauthor})}),lt(t,634),lt(t,629),t.end()}function xBe(e,t){t.FullPaths.forEach(function(r,n){if(n!=0){var i=r.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");i.slice(-1)!=="/"&&Bn.utils.cfb_add(e,i,t.FileIndex[n].content)}})}var fV=["xlsb","xlsm","xlam","biff8","xla"],bBe=(function(){var e=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,t={r:0,c:0};function r(n,i,a,s){var o=!1,l=!1;a.length==0?l=!0:a.charAt(0)=="["&&(l=!0,a=a.slice(1,-1)),s.length==0?o=!0:s.charAt(0)=="["&&(o=!0,s=s.slice(1,-1));var c=a.length>0?parseInt(a,10)|0:0,f=s.length>0?parseInt(s,10)|0:0;return o?f+=t.c:--f,l?c+=t.r:--c,i+(o?"":"$")+fs(f)+(l?"":"$")+Wa(c)}return function(i,a){return t=a,i.replace(e,r)}})(),bF=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,BF=(function(){return function(t,r){return t.replace(bF,function(n,i,a,s,o,l){var c=pF(s)-(a?0:r.c),f=gF(l)-(o?0:r.r),h=f==0?"":o?f+1:"["+f+"]",p=c==0?"":a?c+1:"["+c+"]";return i+"R"+h+"C"+p})}})();function BBe(e,t){return e.replace(bF,function(r,n,i,a,s,o){return n+(i=="$"?i+a:fs(pF(a)+t.c))+(s=="$"?s+o:Wa(gF(o)+t.r))})}function CBe(e){return e.length!=1}function Ki(e){e.l+=1}function wf(e,t){var r=e.read_shift(2);return[r&16383,r>>14&1,r>>15&1]}function hV(e,t,r){var n=2;if(r){if(r.biff>=2&&r.biff<=5)return dV(e);r.biff==12&&(n=4)}var i=e.read_shift(n),a=e.read_shift(n),s=wf(e),o=wf(e);return{s:{r:i,c:s[0],cRel:s[1],rRel:s[2]},e:{r:a,c:o[0],cRel:o[1],rRel:o[2]}}}function dV(e){var t=wf(e),r=wf(e),n=e.read_shift(1),i=e.read_shift(1);return{s:{r:t[0],c:n,cRel:t[1],rRel:t[2]},e:{r:r[0],c:i,cRel:r[1],rRel:r[2]}}}function EBe(e,t,r){if(r.biff<8)return dV(e);var n=e.read_shift(r.biff==12?4:2),i=e.read_shift(r.biff==12?4:2),a=wf(e),s=wf(e);return{s:{r:n,c:a[0],cRel:a[1],rRel:a[2]},e:{r:i,c:s[0],cRel:s[1],rRel:s[2]}}}function gV(e,t,r){if(r&&r.biff>=2&&r.biff<=5)return _Be(e);var n=e.read_shift(r&&r.biff==12?4:2),i=wf(e);return{r:n,c:i[0],cRel:i[1],rRel:i[2]}}function _Be(e){var t=wf(e),r=e.read_shift(1);return{r:t[0],c:r,cRel:t[1],rRel:t[2]}}function SBe(e){var t=e.read_shift(2),r=e.read_shift(2);return{r:t,c:r&255,fQuoted:!!(r&16384),cRel:r>>15,rRel:r>>15}}function FBe(e,t,r){var n=r&&r.biff?r.biff:8;if(n>=2&&n<=5)return TBe(e);var i=e.read_shift(n>=12?4:2),a=e.read_shift(2),s=(a&16384)>>14,o=(a&32768)>>15;if(a&=16383,o==1)for(;i>524287;)i-=1048576;if(s==1)for(;a>8191;)a=a-16384;return{r:i,c:a,cRel:s,rRel:o}}function TBe(e){var t=e.read_shift(2),r=e.read_shift(1),n=(t&32768)>>15,i=(t&16384)>>14;return t&=16383,n==1&&t>=8192&&(t=t-16384),i==1&&r>=128&&(r=r-256),{r:t,c:r,cRel:i,rRel:n}}function OBe(e,t,r){var n=(e[e.l++]&96)>>5,i=hV(e,r.biff>=2&&r.biff<=5?6:8,r);return[n,i]}function UBe(e,t,r){var n=(e[e.l++]&96)>>5,i=e.read_shift(2,"i"),a=8;if(r)switch(r.biff){case 5:e.l+=12,a=6;break;case 12:a=12;break}var s=hV(e,a,r);return[n,i,s]}function NBe(e,t,r){var n=(e[e.l++]&96)>>5;return e.l+=r&&r.biff>8?12:r.biff<8?6:8,[n]}function LBe(e,t,r){var n=(e[e.l++]&96)>>5,i=e.read_shift(2),a=8;if(r)switch(r.biff){case 5:e.l+=12,a=6;break;case 12:a=12;break}return e.l+=a,[n,i]}function DBe(e,t,r){var n=(e[e.l++]&96)>>5,i=EBe(e,t-1,r);return[n,i]}function IBe(e,t,r){var n=(e[e.l++]&96)>>5;return e.l+=r.biff==2?6:r.biff==12?14:7,[n]}function IM(e){var t=e[e.l+1]&1,r=1;return e.l+=4,[t,r]}function MBe(e,t,r){e.l+=2;for(var n=e.read_shift(r&&r.biff==2?1:2),i=[],a=0;a<=n;++a)i.push(e.read_shift(r&&r.biff==2?1:2));return i}function PBe(e,t,r){var n=e[e.l+1]&255?1:0;return e.l+=2,[n,e.read_shift(r&&r.biff==2?1:2)]}function kBe(e,t,r){var n=e[e.l+1]&255?1:0;return e.l+=2,[n,e.read_shift(r&&r.biff==2?1:2)]}function QBe(e){var t=e[e.l+1]&255?1:0;return e.l+=2,[t,e.read_shift(2)]}function RBe(e,t,r){var n=e[e.l+1]&255?1:0;return e.l+=r&&r.biff==2?3:4,[n]}function pV(e){var t=e.read_shift(1),r=e.read_shift(1);return[t,r]}function jBe(e){return e.read_shift(2),pV(e)}function HBe(e){return e.read_shift(2),pV(e)}function KBe(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var i=gV(e,0,r);return[n,i]}function zBe(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var i=FBe(e,0,r);return[n,i]}function VBe(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var i=e.read_shift(2);r&&r.biff==5&&(e.l+=12);var a=gV(e,0,r);return[n,i,a]}function GBe(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var i=e.read_shift(r&&r.biff<=3?1:2);return[G5e[i],yV[i],n]}function qBe(e,t,r){var n=e[e.l++],i=e.read_shift(1),a=r&&r.biff<=3?[n==88?-1:0,e.read_shift(1)]:WBe(e);return[i,(a[0]===0?yV:V5e)[a[1]]]}function WBe(e){return[e[e.l+1]>>7,e.read_shift(2)&32767]}function YBe(e,t,r){e.l+=r&&r.biff==2?3:4}function $Be(e,t,r){if(e.l++,r&&r.biff==12)return[e.read_shift(4,"i"),0];var n=e.read_shift(2),i=e.read_shift(r&&r.biff==2?1:2);return[n,i]}function XBe(e){return e.l++,xv[e.read_shift(1)]}function JBe(e){return e.l++,e.read_shift(2)}function ZBe(e){return e.l++,e.read_shift(1)!==0}function e5e(e){return e.l++,bg(e)}function t5e(e,t,r){return e.l++,Jz(e,t-1,r)}function r5e(e,t){var r=[e.read_shift(1)];if(t==12)switch(r[0]){case 2:r[0]=4;break;case 4:r[0]=16;break;case 0:r[0]=1;break;case 1:r[0]=2;break}switch(r[0]){case 4:r[1]=Vxe(e,1)?"TRUE":"FALSE",t!=12&&(e.l+=7);break;case 37:case 16:r[1]=xv[e[e.l]],e.l+=t==12?4:8;break;case 0:e.l+=8;break;case 1:r[1]=bg(e);break;case 2:r[1]=Yxe(e,0,{biff:t>0&&t<8?2:t});break;default:throw new Error("Bad SerAr: "+r[0])}return r}function n5e(e,t,r){for(var n=e.read_shift(r.biff==12?4:2),i=[],a=0;a!=n;++a)i.push((r.biff==12?ad:Jxe)(e));return i}function i5e(e,t,r){var n=0,i=0;r.biff==12?(n=e.read_shift(4),i=e.read_shift(4)):(i=1+e.read_shift(1),n=1+e.read_shift(2)),r.biff>=2&&r.biff<8&&(--n,--i==0&&(i=256));for(var a=0,s=[];a!=n&&(s[a]=[]);++a)for(var o=0;o!=i;++o)s[a][o]=r5e(e,r.biff);return s}function a5e(e,t,r){var n=e.read_shift(1)>>>5&3,i=!r||r.biff>=8?4:2,a=e.read_shift(i);switch(r.biff){case 2:e.l+=5;break;case 3:case 4:e.l+=8;break;case 5:e.l+=12;break}return[n,0,a]}function s5e(e,t,r){if(r.biff==5)return o5e(e);var n=e.read_shift(1)>>>5&3,i=e.read_shift(2),a=e.read_shift(4);return[n,i,a]}function o5e(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2,"i");e.l+=8;var n=e.read_shift(2);return e.l+=12,[t,r,n]}function A5e(e,t,r){var n=e.read_shift(1)>>>5&3;e.l+=r&&r.biff==2?3:4;var i=e.read_shift(r&&r.biff==2?1:2);return[n,i]}function l5e(e,t,r){var n=e.read_shift(1)>>>5&3,i=e.read_shift(r&&r.biff==2?1:2);return[n,i]}function c5e(e,t,r){var n=e.read_shift(1)>>>5&3;return e.l+=4,r.biff<8&&e.l--,r.biff==12&&(e.l+=2),[n]}function u5e(e,t,r){var n=(e[e.l++]&96)>>5,i=e.read_shift(2),a=4;if(r)switch(r.biff){case 5:a=15;break;case 12:a=6;break}return e.l+=a,[n,i]}var f5e=Gl,h5e=Gl,d5e=Gl;function bv(e,t,r){return e.l+=2,[SBe(e)]}function CF(e){return e.l+=6,[]}var g5e=bv,p5e=CF,v5e=CF,m5e=bv;function vV(e){return e.l+=2,[$z(e),e.read_shift(2)&1]}var y5e=bv,w5e=vV,x5e=CF,b5e=bv,B5e=bv,C5e=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function E5e(e){e.l+=2;var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(4),i=e.read_shift(2),a=e.read_shift(2),s=C5e[r>>2&31];return{ixti:t,coltype:r&3,rt:s,idx:n,c:i,C:a}}function _5e(e){return e.l+=2,[e.read_shift(4)]}function S5e(e,t,r){return e.l+=5,e.l+=2,e.l+=r.biff==2?1:4,["PTGSHEET"]}function F5e(e,t,r){return e.l+=r.biff==2?4:5,["PTGENDSHEET"]}function T5e(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2);return[t,r]}function O5e(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2);return[t,r]}function U5e(e){return e.l+=4,[0,0]}var MM={1:{n:"PtgExp",f:$Be},2:{n:"PtgTbl",f:d5e},3:{n:"PtgAdd",f:Ki},4:{n:"PtgSub",f:Ki},5:{n:"PtgMul",f:Ki},6:{n:"PtgDiv",f:Ki},7:{n:"PtgPower",f:Ki},8:{n:"PtgConcat",f:Ki},9:{n:"PtgLt",f:Ki},10:{n:"PtgLe",f:Ki},11:{n:"PtgEq",f:Ki},12:{n:"PtgGe",f:Ki},13:{n:"PtgGt",f:Ki},14:{n:"PtgNe",f:Ki},15:{n:"PtgIsect",f:Ki},16:{n:"PtgUnion",f:Ki},17:{n:"PtgRange",f:Ki},18:{n:"PtgUplus",f:Ki},19:{n:"PtgUminus",f:Ki},20:{n:"PtgPercent",f:Ki},21:{n:"PtgParen",f:Ki},22:{n:"PtgMissArg",f:Ki},23:{n:"PtgStr",f:t5e},26:{n:"PtgSheet",f:S5e},27:{n:"PtgEndSheet",f:F5e},28:{n:"PtgErr",f:XBe},29:{n:"PtgBool",f:ZBe},30:{n:"PtgInt",f:JBe},31:{n:"PtgNum",f:e5e},32:{n:"PtgArray",f:IBe},33:{n:"PtgFunc",f:GBe},34:{n:"PtgFuncVar",f:qBe},35:{n:"PtgName",f:a5e},36:{n:"PtgRef",f:KBe},37:{n:"PtgArea",f:OBe},38:{n:"PtgMemArea",f:A5e},39:{n:"PtgMemErr",f:f5e},40:{n:"PtgMemNoMem",f:h5e},41:{n:"PtgMemFunc",f:l5e},42:{n:"PtgRefErr",f:c5e},43:{n:"PtgAreaErr",f:NBe},44:{n:"PtgRefN",f:zBe},45:{n:"PtgAreaN",f:DBe},46:{n:"PtgMemAreaN",f:T5e},47:{n:"PtgMemNoMemN",f:O5e},57:{n:"PtgNameX",f:s5e},58:{n:"PtgRef3d",f:VBe},59:{n:"PtgArea3d",f:UBe},60:{n:"PtgRefErr3d",f:u5e},61:{n:"PtgAreaErr3d",f:LBe},255:{}},N5e={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},L5e={1:{n:"PtgElfLel",f:vV},2:{n:"PtgElfRw",f:b5e},3:{n:"PtgElfCol",f:g5e},6:{n:"PtgElfRwV",f:B5e},7:{n:"PtgElfColV",f:m5e},10:{n:"PtgElfRadical",f:y5e},11:{n:"PtgElfRadicalS",f:x5e},13:{n:"PtgElfColS",f:p5e},15:{n:"PtgElfColSV",f:v5e},16:{n:"PtgElfRadicalLel",f:w5e},25:{n:"PtgList",f:E5e},29:{n:"PtgSxName",f:_5e},255:{}},D5e={0:{n:"PtgAttrNoop",f:U5e},1:{n:"PtgAttrSemi",f:RBe},2:{n:"PtgAttrIf",f:kBe},4:{n:"PtgAttrChoose",f:MBe},8:{n:"PtgAttrGoto",f:PBe},16:{n:"PtgAttrSum",f:YBe},32:{n:"PtgAttrBaxcel",f:IM},33:{n:"PtgAttrBaxcel",f:IM},64:{n:"PtgAttrSpace",f:jBe},65:{n:"PtgAttrSpaceSemi",f:HBe},128:{n:"PtgAttrIfError",f:QBe},255:{}};function I5e(e,t,r,n){if(n.biff<8)return Gl(e,t);for(var i=e.l+t,a=[],s=0;s!==r.length;++s)switch(r[s][0]){case"PtgArray":r[s][1]=i5e(e,0,n),a.push(r[s][1]);break;case"PtgMemArea":r[s][2]=n5e(e,r[s][1],n),a.push(r[s][2]);break;case"PtgExp":n&&n.biff==12&&(r[s][1][1]=e.read_shift(4),a.push(r[s][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+r[s][0]}return t=i-e.l,t!==0&&a.push(Gl(e,t)),a}function M5e(e,t,r){for(var n=e.l+t,i,a,s=[];n!=e.l;)t=n-e.l,a=e[e.l],i=MM[a]||MM[N5e[a]],(a===24||a===25)&&(i=(a===24?L5e:D5e)[e[e.l+1]]),!i||!i.f?Gl(e,t):s.push([i.n,i.f(e,t,r)]);return s}function P5e(e){for(var t=[],r=0;r<e.length;++r){for(var n=e[r],i=[],a=0;a<n.length;++a){var s=n[a];if(s)switch(s[0]){case 2:i.push('"'+s[1].replace(/"/g,'""')+'"');break;default:i.push(s[1])}else i.push("")}t.push(i.join(","))}return t.join(";")}var k5e={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function Q5e(e,t){if(!e&&!(t&&t.biff<=5&&t.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(e)?"'"+e+"'":e}function mV(e,t,r){if(!e)return"SH33TJSERR0";if(r.biff>8&&(!e.XTI||!e.XTI[t]))return e.SheetNames[t];if(!e.XTI)return"SH33TJSERR6";var n=e.XTI[t];if(r.biff<8)return t>1e4&&(t-=65536),t<0&&(t=-t),t==0?"":e.XTI[t-1];if(!n)return"SH33TJSERR1";var i="";if(r.biff>8)switch(e[n[0]][0]){case 357:return i=n[1]==-1?"#REF":e.SheetNames[n[1]],n[1]==n[2]?i:i+":"+e.SheetNames[n[2]];case 358:return r.SID!=null?e.SheetNames[r.SID]:"SH33TJSSAME"+e[n[0]][0];case 355:default:return"SH33TJSSRC"+e[n[0]][0]}switch(e[n[0]][0][0]){case 1025:return i=n[1]==-1?"#REF":e.SheetNames[n[1]]||"SH33TJSERR3",n[1]==n[2]?i:i+":"+e.SheetNames[n[2]];case 14849:return e[n[0]].slice(1).map(function(a){return a.Name}).join(";;");default:return e[n[0]][0][3]?(i=n[1]==-1?"#REF":e[n[0]][0][3][n[1]]||"SH33TJSERR4",n[1]==n[2]?i:i+":"+e[n[0]][0][3][n[2]]):"SH33TJSERR2"}}function PM(e,t,r){var n=mV(e,t,r);return n=="#REF"?n:Q5e(n,r)}function $0(e,t,r,n,i){var a=i&&i.biff||8,s={s:{c:0,r:0}},o=[],l,c,f,h=0,p=0,g,y="";if(!e[0]||!e[0][0])return"";for(var m=-1,w="",b=0,E=e[0].length;b<E;++b){var S=e[0][b];switch(S[0]){case"PtgUminus":o.push("-"+o.pop());break;case"PtgUplus":o.push("+"+o.pop());break;case"PtgPercent":o.push(o.pop()+"%");break;case"PtgAdd":case"PtgConcat":case"PtgDiv":case"PtgEq":case"PtgGe":case"PtgGt":case"PtgLe":case"PtgLt":case"PtgMul":case"PtgNe":case"PtgPower":case"PtgSub":if(l=o.pop(),c=o.pop(),m>=0){switch(e[0][m][1][0]){case 0:w=bi(" ",e[0][m][1][1]);break;case 1:w=bi("\r",e[0][m][1][1]);break;default:if(w="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][m][1][0])}c=c+w,m=-1}o.push(c+k5e[S[0]]+l);break;case"PtgIsect":l=o.pop(),c=o.pop(),o.push(c+" "+l);break;case"PtgUnion":l=o.pop(),c=o.pop(),o.push(c+","+l);break;case"PtgRange":l=o.pop(),c=o.pop(),o.push(c+":"+l);break;case"PtgAttrChoose":break;case"PtgAttrGoto":break;case"PtgAttrIf":break;case"PtgAttrIfError":break;case"PtgRef":f=t1(S[1][1],s,i),o.push(r1(f,a));break;case"PtgRefN":f=r?t1(S[1][1],r,i):S[1][1],o.push(r1(f,a));break;case"PtgRef3d":h=S[1][1],f=t1(S[1][2],s,i),y=PM(n,h,i),o.push(y+"!"+r1(f,a));break;case"PtgFunc":case"PtgFuncVar":var T=S[1][0],D=S[1][1];T||(T=0),T&=127;var k=T==0?[]:o.slice(-T);o.length-=T,D==="User"&&(D=k.shift()),o.push(D+"("+k.join(",")+")");break;case"PtgBool":o.push(S[1]?"TRUE":"FALSE");break;case"PtgInt":o.push(S[1]);break;case"PtgNum":o.push(String(S[1]));break;case"PtgStr":o.push('"'+S[1].replace(/"/g,'""')+'"');break;case"PtgErr":o.push(S[1]);break;case"PtgAreaN":g=xM(S[1][1],r?{s:r}:s,i),o.push(RC(g,i));break;case"PtgArea":g=xM(S[1][1],s,i),o.push(RC(g,i));break;case"PtgArea3d":h=S[1][1],g=S[1][2],y=PM(n,h,i),o.push(y+"!"+RC(g,i));break;case"PtgAttrSum":o.push("SUM("+o.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":p=S[1][2];var P=(n.names||[])[p-1]||(n[0]||[])[p],R=P?P.Name:"SH33TJSNAME"+String(p);R&&R.slice(0,6)=="_xlfn."&&!i.xlfn&&(R=R.slice(6)),o.push(R);break;case"PtgNameX":var O=S[1][1];p=S[1][2];var V;if(i.biff<=5)O<0&&(O=-O),n[O]&&(V=n[O][p]);else{var I="";if(((n[O]||[])[0]||[])[0]==14849||(((n[O]||[])[0]||[])[0]==1025?n[O][p]&&n[O][p].itab>0&&(I=n.SheetNames[n[O][p].itab-1]+"!"):I=n.SheetNames[p-1]+"!"),n[O]&&n[O][p])I+=n[O][p].Name;else if(n[0]&&n[0][p])I+=n[0][p].Name;else{var Q=(mV(n,O,i)||"").split(";;");Q[p-1]?I=Q[p-1]:I+="SH33TJSERRX"}o.push(I);break}V||(V={Name:"SH33TJSERRY"}),o.push(V.Name);break;case"PtgParen":var W="(",J=")";if(m>=0){switch(w="",e[0][m][1][0]){case 2:W=bi(" ",e[0][m][1][1])+W;break;case 3:W=bi("\r",e[0][m][1][1])+W;break;case 4:J=bi(" ",e[0][m][1][1])+J;break;case 5:J=bi("\r",e[0][m][1][1])+J;break;default:if(i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][m][1][0])}m=-1}o.push(W+o.pop()+J);break;case"PtgRefErr":o.push("#REF!");break;case"PtgRefErr3d":o.push("#REF!");break;case"PtgExp":f={c:S[1][1],r:S[1][0]};var fe={c:r.c,r:r.r};if(n.sharedf[hn(f)]){var G=n.sharedf[hn(f)];o.push($0(G,s,fe,n,i))}else{var se=!1;for(l=0;l!=n.arrayf.length;++l)if(c=n.arrayf[l],!(f.c<c[0].s.c||f.c>c[0].e.c)&&!(f.r<c[0].s.r||f.r>c[0].e.r)){o.push($0(c[1],s,fe,n,i)),se=!0;break}se||o.push(S[1])}break;case"PtgArray":o.push("{"+P5e(S[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":m=b;break;case"PtgTbl":break;case"PtgMemErr":break;case"PtgMissArg":o.push("");break;case"PtgAreaErr":o.push("#REF!");break;case"PtgAreaErr3d":o.push("#REF!");break;case"PtgList":o.push("Table"+S[1].idx+"[#"+S[1].rt+"]");break;case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":break;case"PtgMemFunc":break;case"PtgMemNoMem":break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");case"PtgSxName":throw new Error("Unrecognized Formula Token: "+String(S));default:throw new Error("Unrecognized Formula Token: "+String(S))}var ge=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(i.biff!=3&&m>=0&&ge.indexOf(e[0][b][0])==-1){S=e[0][m];var ye=!0;switch(S[1][0]){case 4:ye=!1;case 0:w=bi(" ",S[1][1]);break;case 5:ye=!1;case 1:w=bi("\r",S[1][1]);break;default:if(w="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+S[1][0])}o.push((ye?w:"")+o.pop()+(ye?"":w)),m=-1}}if(o.length>1&&i.WTF)throw new Error("bad formula stack");return o[0]}function R5e(e){if(e==null){var t=Xe(8);return t.write_shift(1,3),t.write_shift(1,0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,65535),t}else if(typeof e=="number")return Vh(e);return Vh(0)}function j5e(e,t,r,n,i){var a=Gh(t,r,i),s=R5e(e.v),o=Xe(6),l=33;o.write_shift(2,l),o.write_shift(4,0);for(var c=Xe(e.bf.length),f=0;f<e.bf.length;++f)c[f]=e.bf[f];var h=za([a,s,o,c]);return h}function Kx(e,t,r){var n=e.read_shift(4),i=M5e(e,n,r),a=e.read_shift(4),s=a>0?I5e(e,a,i,r):null;return[i,s]}var H5e=Kx,zx=Kx,K5e=Kx,z5e=Kx,V5e={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},yV={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},G5e={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function q5e(e){var t="of:="+e.replace(bF,"$1[.$2$3$4$5]").replace(/\]:\[/g,":");return t.replace(/;/g,"|").replace(/,/g,";")}function W5e(e){return e.replace(/\./,"!")}var n1=typeof Map<"u";function EF(e,t,r){var n=0,i=e.length;if(r){if(n1?r.has(t):Object.prototype.hasOwnProperty.call(r,t)){for(var a=n1?r.get(t):r[t];n<a.length;++n)if(e[a[n]].t===t)return e.Count++,a[n]}}else for(;n<i;++n)if(e[n].t===t)return e.Count++,n;return e[i]={t},e.Count++,e.Unique++,r&&(n1?(r.has(t)||r.set(t,[]),r.get(t).push(i)):(Object.prototype.hasOwnProperty.call(r,t)||(r[t]=[]),r[t].push(i))),i}function Vx(e,t){var r={min:e+1,max:e+1},n=-1;return t.MDW&&(Kc=t.MDW),t.width!=null?r.customWidth=1:t.wpx!=null?n=ww(t.wpx):t.wch!=null&&(n=t.wch),n>-1?(r.width=m4(n),r.customWidth=1):t.width!=null&&(r.width=t.width),t.hidden&&(r.hidden=!0),t.level!=null&&(r.outlineLevel=r.level=t.level),r}function wV(e,t){if(e){var r=[.7,.7,.75,.75,.3,.3];e.left==null&&(e.left=r[0]),e.right==null&&(e.right=r[1]),e.top==null&&(e.top=r[2]),e.bottom==null&&(e.bottom=r[3]),e.header==null&&(e.header=r[4]),e.footer==null&&(e.footer=r[5])}}function Of(e,t,r){var n=r.revssf[t.z!=null?t.z:"General"],i=60,a=e.length;if(n==null&&r.ssf){for(;i<392;++i)if(r.ssf[i]==null){gz(t.z,i),r.ssf[i]=t.z,r.revssf[t.z]=n=i;break}}for(i=0;i!=a;++i)if(e[i].numFmtId===n)return i;return e[a]={numFmtId:n,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},a}function Y5e(e,t,r){if(e&&e["!ref"]){var n=Vn(e["!ref"]);if(n.e.c<n.s.c||n.e.r<n.s.r)throw new Error("Bad range ("+r+"): "+e["!ref"])}}function $5e(e){if(e.length===0)return"";for(var t='<mergeCells count="'+e.length+'">',r=0;r!=e.length;++r)t+='<mergeCell ref="'+qi(e[r])+'"/>';return t+"</mergeCells>"}function X5e(e,t,r,n,i){var a=!1,s={},o=null;if(n.bookType!=="xlsx"&&t.vbaraw){var l=t.SheetNames[r];try{t.Workbook&&(l=t.Workbook.Sheets[r].CodeName||l)}catch{}a=!0,s.codeName=U1(fn(l))}if(e&&e["!outline"]){var c={summaryBelow:1,summaryRight:1};e["!outline"].above&&(c.summaryBelow=0),e["!outline"].left&&(c.summaryRight=0),o=(o||"")+ht("outlinePr",null,c)}!a&&!o||(i[i.length]=ht("sheetPr",o,s))}var J5e=["objects","scenarios","selectLockedCells","selectUnlockedCells"],Z5e=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function eCe(e){var t={sheet:1};return J5e.forEach(function(r){e[r]!=null&&e[r]&&(t[r]="1")}),Z5e.forEach(function(r){e[r]!=null&&!e[r]&&(t[r]="0")}),e.password&&(t.password=nV(e.password).toString(16).toUpperCase()),ht("sheetProtection",null,t)}function tCe(e){return wV(e),ht("pageMargins",null,e)}function rCe(e,t){for(var r=["<cols>"],n,i=0;i!=t.length;++i)(n=t[i])&&(r[r.length]=ht("col",null,Vx(i,n)));return r[r.length]="</cols>",r.join("")}function nCe(e,t,r,n){var i=typeof e.ref=="string"?e.ref:qi(e.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var a=r.Workbook.Names,s=ko(i);s.s.r==s.e.r&&(s.e.r=ko(t["!ref"]).e.r,i=qi(s));for(var o=0;o<a.length;++o){var l=a[o];if(l.Name=="_xlnm._FilterDatabase"&&l.Sheet==n){l.Ref="'"+r.SheetNames[n]+"'!"+i;break}}return o==a.length&&a.push({Name:"_xlnm._FilterDatabase",Sheet:n,Ref:"'"+r.SheetNames[n]+"'!"+i}),ht("autoFilter",null,{ref:i})}function iCe(e,t,r,n){var i={workbookViewId:"0"};return(((n||{}).Workbook||{}).Views||[])[0]&&(i.rightToLeft=n.Workbook.Views[0].RTL?"1":"0"),ht("sheetViews",ht("sheetView",null,i),{})}function aCe(e,t,r,n){if(e.c&&r["!comments"].push([t,e.c]),e.v===void 0&&typeof e.f!="string"||e.t==="z"&&!e.f)return"";var i="",a=e.t,s=e.v;if(e.t!=="z")switch(e.t){case"b":i=e.v?"1":"0";break;case"n":i=""+e.v;break;case"e":i=xv[e.v];break;case"d":n&&n.cellDates?i=Ts(e.v,-1).toISOString():(e=ao(e),e.t="n",i=""+(e.v=io(Ts(e.v)))),typeof e.z>"u"&&(e.z=Ei[14]);break;default:i=e.v;break}var o=Va("v",fn(i)),l={r:t},c=Of(n.cellXfs,e,n);switch(c!==0&&(l.s=c),e.t){case"n":break;case"d":l.t="d";break;case"b":l.t="b";break;case"e":l.t="e";break;case"z":break;default:if(e.v==null){delete e.t;break}if(e.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(n&&n.bookSST){o=Va("v",""+EF(n.Strings,e.v,n.revStrings)),l.t="s";break}l.t="str";break}if(e.t!=a&&(e.t=a,e.v=s),typeof e.f=="string"&&e.f){var f=e.F&&e.F.slice(0,t.length)==t?{t:"array",ref:e.F}:null;o=ht("f",fn(e.f),f)+(e.v!=null?o:"")}return e.l&&r["!links"].push([t,e.l]),e.D&&(l.cm=1),ht("c",o,l)}function sCe(e,t,r,n){var i=[],a=[],s=Vn(e["!ref"]),o="",l,c="",f=[],h=0,p=0,g=e["!rows"],y=Array.isArray(e),m={r:c},w,b=-1;for(p=s.s.c;p<=s.e.c;++p)f[p]=fs(p);for(h=s.s.r;h<=s.e.r;++h){for(a=[],c=Wa(h),p=s.s.c;p<=s.e.c;++p){l=f[p]+c;var E=y?(e[h]||[])[p]:e[l];E!==void 0&&(o=aCe(E,l,e,t))!=null&&a.push(o)}(a.length>0||g&&g[h])&&(m={r:c},g&&g[h]&&(w=g[h],w.hidden&&(m.hidden=1),b=-1,w.hpx?b=xw(w.hpx):w.hpt&&(b=w.hpt),b>-1&&(m.ht=b,m.customHeight=1),w.level&&(m.outlineLevel=w.level)),i[i.length]=ht("row",a.join(""),m))}if(g)for(;h<g.length;++h)g&&g[h]&&(m={r:h+1},w=g[h],w.hidden&&(m.hidden=1),b=-1,w.hpx?b=xw(w.hpx):w.hpt&&(b=w.hpt),b>-1&&(m.ht=b,m.customHeight=1),w.level&&(m.outlineLevel=w.level),i[i.length]=ht("row","",m));return i.join("")}function xV(e,t,r,n){var i=[Wi,ht("worksheet",null,{xmlns:yg[0],"xmlns:r":Ba.r})],a=r.SheetNames[e],s=0,o="",l=r.Sheets[a];l==null&&(l={});var c=l["!ref"]||"A1",f=Vn(c);if(f.e.c>16383||f.e.r>1048575){if(t.WTF)throw new Error("Range "+c+" exceeds format limit A1:XFD1048576");f.e.c=Math.min(f.e.c,16383),f.e.r=Math.min(f.e.c,1048575),c=qi(f)}n||(n={}),l["!comments"]=[];var h=[];X5e(l,r,e,t,i),i[i.length]=ht("dimension",null,{ref:c}),i[i.length]=iCe(l,t,e,r),t.sheetFormat&&(i[i.length]=ht("sheetFormatPr",null,{defaultRowHeight:t.sheetFormat.defaultRowHeight||"16",baseColWidth:t.sheetFormat.baseColWidth||"10",outlineLevelRow:t.sheetFormat.outlineLevelRow||"7"})),l["!cols"]!=null&&l["!cols"].length>0&&(i[i.length]=rCe(l,l["!cols"])),i[s=i.length]="<sheetData/>",l["!links"]=[],l["!ref"]!=null&&(o=sCe(l,t),o.length>0&&(i[i.length]=o)),i.length>s+1&&(i[i.length]="</sheetData>",i[s]=i[s].replace("/>",">")),l["!protect"]&&(i[i.length]=eCe(l["!protect"])),l["!autofilter"]!=null&&(i[i.length]=nCe(l["!autofilter"],l,r,e)),l["!merges"]!=null&&l["!merges"].length>0&&(i[i.length]=$5e(l["!merges"]));var p=-1,g,y=-1;return l["!links"].length>0&&(i[i.length]="<hyperlinks>",l["!links"].forEach(function(m){m[1].Target&&(g={ref:m[0]},m[1].Target.charAt(0)!="#"&&(y=An(n,-1,fn(m[1].Target).replace(/#.*$/,""),qr.HLINK),g["r:id"]="rId"+y),(p=m[1].Target.indexOf("#"))>-1&&(g.location=fn(m[1].Target.slice(p+1))),m[1].Tooltip&&(g.tooltip=fn(m[1].Tooltip)),i[i.length]=ht("hyperlink",null,g))}),i[i.length]="</hyperlinks>"),delete l["!links"],l["!margins"]!=null&&(i[i.length]=tCe(l["!margins"])),(!t||t.ignoreEC||t.ignoreEC==null)&&(i[i.length]=Va("ignoredErrors",ht("ignoredError",null,{numberStoredAsText:1,sqref:c}))),h.length>0&&(y=An(n,-1,"../drawings/drawing"+(e+1)+".xml",qr.DRAW),i[i.length]=ht("drawing",null,{"r:id":"rId"+y}),l["!drawing"]=h),l["!comments"].length>0&&(y=An(n,-1,"../drawings/vmlDrawing"+(e+1)+".vml",qr.VML),i[i.length]=ht("legacyDrawing",null,{"r:id":"rId"+y}),l["!legacy"]=y),i.length>1&&(i[i.length]="</worksheet>",i[1]=i[1].replace("/>",">")),i.join("")}function oCe(e,t){var r={},n=e.l+t;r.r=e.read_shift(4),e.l+=4;var i=e.read_shift(2);e.l+=1;var a=e.read_shift(1);return e.l=n,a&7&&(r.level=a&7),a&16&&(r.hidden=!0),a&32&&(r.hpt=i/20),r}function ACe(e,t,r){var n=Xe(145),i=(r["!rows"]||[])[e]||{};n.write_shift(4,e),n.write_shift(4,0);var a=320;i.hpx?a=xw(i.hpx)*20:i.hpt&&(a=i.hpt*20),n.write_shift(2,a),n.write_shift(1,0);var s=0;i.level&&(s|=i.level),i.hidden&&(s|=16),(i.hpx||i.hpt)&&(s|=32),n.write_shift(1,s),n.write_shift(1,0);var o=0,l=n.l;n.l+=4;for(var c={r:e,c:0},f=0;f<16;++f)if(!(t.s.c>f+1<<10||t.e.c<f<<10)){for(var h=-1,p=-1,g=f<<10;g<f+1<<10;++g){c.c=g;var y=Array.isArray(r)?(r[c.r]||[])[c.c]:r[hn(c)];y&&(h<0&&(h=g),p=g)}h<0||(++o,n.write_shift(4,h),n.write_shift(4,p))}var m=n.l;return n.l=l,n.write_shift(4,o),n.l=m,n.length>n.l?n.slice(0,n.l):n}function lCe(e,t,r,n){var i=ACe(n,r,t);(i.length>17||(t["!rows"]||[])[n])&&lt(e,0,i)}var cCe=ad,uCe=xg;function fCe(){}function hCe(e,t){var r={},n=e[e.l];return++e.l,r.above=!(n&64),r.left=!(n&128),e.l+=18,r.name=Bxe(e),r}function dCe(e,t,r){r==null&&(r=Xe(84+4*e.length));var n=192;t&&(t.above&&(n&=-65),t.left&&(n&=-129)),r.write_shift(1,n);for(var i=1;i<3;++i)r.write_shift(1,0);return vw({auto:1},r),r.write_shift(-4,-1),r.write_shift(-4,-1),Mz(e,r),r.slice(0,r.l)}function gCe(e){var t=xA(e);return[t]}function pCe(e,t,r){return r==null&&(r=Xe(8)),rd(t,r)}function vCe(e){var t=nd(e);return[t]}function mCe(e,t,r){return r==null&&(r=Xe(4)),id(t,r)}function yCe(e){var t=xA(e),r=e.read_shift(1);return[t,r,"b"]}function wCe(e,t,r){return r==null&&(r=Xe(9)),rd(t,r),r.write_shift(1,e.v?1:0),r}function xCe(e){var t=nd(e),r=e.read_shift(1);return[t,r,"b"]}function bCe(e,t,r){return r==null&&(r=Xe(5)),id(t,r),r.write_shift(1,e.v?1:0),r}function BCe(e){var t=xA(e),r=e.read_shift(1);return[t,r,"e"]}function CCe(e,t,r){return r==null&&(r=Xe(9)),rd(t,r),r.write_shift(1,e.v),r}function ECe(e){var t=nd(e),r=e.read_shift(1);return[t,r,"e"]}function _Ce(e,t,r){return r==null&&(r=Xe(8)),id(t,r),r.write_shift(1,e.v),r.write_shift(2,0),r.write_shift(1,0),r}function SCe(e){var t=xA(e),r=e.read_shift(4);return[t,r,"s"]}function FCe(e,t,r){return r==null&&(r=Xe(12)),rd(t,r),r.write_shift(4,t.v),r}function TCe(e){var t=nd(e),r=e.read_shift(4);return[t,r,"s"]}function OCe(e,t,r){return r==null&&(r=Xe(8)),id(t,r),r.write_shift(4,t.v),r}function UCe(e){var t=xA(e),r=bg(e);return[t,r,"n"]}function NCe(e,t,r){return r==null&&(r=Xe(16)),rd(t,r),Vh(e.v,r),r}function LCe(e){var t=nd(e),r=bg(e);return[t,r,"n"]}function DCe(e,t,r){return r==null&&(r=Xe(12)),id(t,r),Vh(e.v,r),r}function ICe(e){var t=xA(e),r=Pz(e);return[t,r,"n"]}function MCe(e,t,r){return r==null&&(r=Xe(12)),rd(t,r),kz(e.v,r),r}function PCe(e){var t=nd(e),r=Pz(e);return[t,r,"n"]}function kCe(e,t,r){return r==null&&(r=Xe(8)),id(t,r),kz(e.v,r),r}function QCe(e){var t=xA(e),r=vF(e);return[t,r,"is"]}function RCe(e){var t=xA(e),r=hs(e);return[t,r,"str"]}function jCe(e,t,r){return r==null&&(r=Xe(12+4*e.v.length)),rd(t,r),_a(e.v,r),r.length>r.l?r.slice(0,r.l):r}function HCe(e){var t=nd(e),r=hs(e);return[t,r,"str"]}function KCe(e,t,r){return r==null&&(r=Xe(8+4*e.v.length)),id(t,r),_a(e.v,r),r.length>r.l?r.slice(0,r.l):r}function zCe(e,t,r){var n=e.l+t,i=xA(e);i.r=r["!row"];var a=e.read_shift(1),s=[i,a,"b"];if(r.cellFormula){e.l+=2;var o=zx(e,n-e.l,r);s[3]=$0(o,null,i,r.supbooks,r)}else e.l=n;return s}function VCe(e,t,r){var n=e.l+t,i=xA(e);i.r=r["!row"];var a=e.read_shift(1),s=[i,a,"e"];if(r.cellFormula){e.l+=2;var o=zx(e,n-e.l,r);s[3]=$0(o,null,i,r.supbooks,r)}else e.l=n;return s}function GCe(e,t,r){var n=e.l+t,i=xA(e);i.r=r["!row"];var a=bg(e),s=[i,a,"n"];if(r.cellFormula){e.l+=2;var o=zx(e,n-e.l,r);s[3]=$0(o,null,i,r.supbooks,r)}else e.l=n;return s}function qCe(e,t,r){var n=e.l+t,i=xA(e);i.r=r["!row"];var a=hs(e),s=[i,a,"str"];if(r.cellFormula){e.l+=2;var o=zx(e,n-e.l,r);s[3]=$0(o,null,i,r.supbooks,r)}else e.l=n;return s}var WCe=ad,YCe=xg;function $Ce(e,t){return t==null&&(t=Xe(4)),t.write_shift(4,e),t}function XCe(e,t){var r=e.l+t,n=ad(e),i=mF(e),a=hs(e),s=hs(e),o=hs(e);e.l=r;var l={rfx:n,relId:i,loc:a,display:o};return s&&(l.Tooltip=s),l}function JCe(e,t){var r=Xe(50+4*(e[1].Target.length+(e[1].Tooltip||"").length));xg({s:Ea(e[0]),e:Ea(e[0])},r),yF("rId"+t,r);var n=e[1].Target.indexOf("#"),i=n==-1?"":e[1].Target.slice(n+1);return _a(i||"",r),_a(e[1].Tooltip||"",r),_a("",r),r.slice(0,r.l)}function ZCe(){}function eEe(e,t,r){var n=e.l+t,i=Qz(e),a=e.read_shift(1),s=[i];if(s[2]=a,r.cellFormula){var o=H5e(e,n-e.l,r);s[1]=o}else e.l=n;return s}function tEe(e,t,r){var n=e.l+t,i=ad(e),a=[i];if(r.cellFormula){var s=z5e(e,n-e.l,r);a[1]=s,e.l=n}else e.l=n;return a}function rEe(e,t,r){r==null&&(r=Xe(18));var n=Vx(e,t);r.write_shift(-4,e),r.write_shift(-4,e),r.write_shift(4,(n.width||10)*256),r.write_shift(4,0);var i=0;return t.hidden&&(i|=1),typeof n.width=="number"&&(i|=2),t.level&&(i|=t.level<<8),r.write_shift(2,i),r}var bV=["left","right","top","bottom","header","footer"];function nEe(e){var t={};return bV.forEach(function(r){t[r]=bg(e)}),t}function iEe(e,t){return t==null&&(t=Xe(48)),wV(e),bV.forEach(function(r){Vh(e[r],t)}),t}function aEe(e){var t=e.read_shift(2);return e.l+=28,{RTL:t&32}}function sEe(e,t,r){r==null&&(r=Xe(30));var n=924;return(((t||{}).Views||[])[0]||{}).RTL&&(n|=32),r.write_shift(2,n),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(2,0),r.write_shift(2,100),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(4,0),r}function oEe(e){var t=Xe(24);return t.write_shift(4,4),t.write_shift(4,1),xg(e,t),t}function AEe(e,t){return t==null&&(t=Xe(66)),t.write_shift(2,e.password?nV(e.password):0),t.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach(function(r){r[1]?t.write_shift(4,e[r[0]]!=null&&!e[r[0]]?1:0):t.write_shift(4,e[r[0]]!=null&&e[r[0]]?0:1)}),t}function lEe(){}function cEe(){}function uEe(e,t,r,n,i,a,s){if(t.v===void 0)return!1;var o="";switch(t.t){case"b":o=t.v?"1":"0";break;case"d":t=ao(t),t.z=t.z||Ei[14],t.v=io(Ts(t.v)),t.t="n";break;case"n":case"e":o=""+t.v;break;default:o=t.v;break}var l={r,c:n};switch(l.s=Of(i.cellXfs,t,i),t.l&&a["!links"].push([hn(l),t.l]),t.c&&a["!comments"].push([hn(l),t.c]),t.t){case"s":case"str":return i.bookSST?(o=EF(i.Strings,t.v,i.revStrings),l.t="s",l.v=o,s?lt(e,18,OCe(t,l)):lt(e,7,FCe(t,l))):(l.t="str",s?lt(e,17,KCe(t,l)):lt(e,6,jCe(t,l))),!0;case"n":return t.v==(t.v|0)&&t.v>-1e3&&t.v<1e3?s?lt(e,13,kCe(t,l)):lt(e,2,MCe(t,l)):s?lt(e,16,DCe(t,l)):lt(e,5,NCe(t,l)),!0;case"b":return l.t="b",s?lt(e,15,bCe(t,l)):lt(e,4,wCe(t,l)),!0;case"e":return l.t="e",s?lt(e,14,_Ce(t,l)):lt(e,3,CCe(t,l)),!0}return s?lt(e,12,mCe(t,l)):lt(e,1,pCe(t,l)),!0}function fEe(e,t,r,n){var i=Vn(t["!ref"]||"A1"),a,s="",o=[];lt(e,145);var l=Array.isArray(t),c=i.e.r;t["!rows"]&&(c=Math.max(i.e.r,t["!rows"].length-1));for(var f=i.s.r;f<=c;++f){s=Wa(f),lCe(e,t,i,f);var h=!1;if(f<=i.e.r)for(var p=i.s.c;p<=i.e.c;++p){f===i.s.r&&(o[p]=fs(p)),a=o[p]+s;var g=l?(t[f]||[])[p]:t[a];if(!g){h=!1;continue}h=uEe(e,g,f,p,n,t,h)}}lt(e,146)}function hEe(e,t){!t||!t["!merges"]||(lt(e,177,$Ce(t["!merges"].length)),t["!merges"].forEach(function(r){lt(e,176,YCe(r))}),lt(e,178))}function dEe(e,t){!t||!t["!cols"]||(lt(e,390),t["!cols"].forEach(function(r,n){r&&lt(e,60,rEe(n,r))}),lt(e,391))}function gEe(e,t){!t||!t["!ref"]||(lt(e,648),lt(e,649,oEe(Vn(t["!ref"]))),lt(e,650))}function pEe(e,t,r){t["!links"].forEach(function(n){if(n[1].Target){var i=An(r,-1,n[1].Target.replace(/#.*$/,""),qr.HLINK);lt(e,494,JCe(n,i))}}),delete t["!links"]}function vEe(e,t,r,n){if(t["!comments"].length>0){var i=An(n,-1,"../drawings/vmlDrawing"+(r+1)+".vml",qr.VML);lt(e,551,yF("rId"+i)),t["!legacy"]=i}}function mEe(e,t,r,n){if(t["!autofilter"]){var i=t["!autofilter"],a=typeof i.ref=="string"?i.ref:qi(i.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var s=r.Workbook.Names,o=ko(a);o.s.r==o.e.r&&(o.e.r=ko(t["!ref"]).e.r,a=qi(o));for(var l=0;l<s.length;++l){var c=s[l];if(c.Name=="_xlnm._FilterDatabase"&&c.Sheet==n){c.Ref="'"+r.SheetNames[n]+"'!"+a;break}}l==s.length&&s.push({Name:"_xlnm._FilterDatabase",Sheet:n,Ref:"'"+r.SheetNames[n]+"'!"+a}),lt(e,161,xg(Vn(a))),lt(e,162)}}function yEe(e,t,r){lt(e,133),lt(e,137,sEe(t,r)),lt(e,138),lt(e,134)}function wEe(e,t){t["!protect"]&&lt(e,535,AEe(t["!protect"]))}function xEe(e,t,r,n){var i=no(),a=r.SheetNames[e],s=r.Sheets[a]||{},o=a;try{r&&r.Workbook&&(o=r.Workbook.Sheets[e].CodeName||o)}catch{}var l=Vn(s["!ref"]||"A1");if(l.e.c>16383||l.e.r>1048575){if(t.WTF)throw new Error("Range "+(s["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");l.e.c=Math.min(l.e.c,16383),l.e.r=Math.min(l.e.c,1048575)}return s["!links"]=[],s["!comments"]=[],lt(i,129),(r.vbaraw||s["!outline"])&&lt(i,147,dCe(o,s["!outline"])),lt(i,148,uCe(l)),yEe(i,s,r.Workbook),dEe(i,s),fEe(i,s,e,t),wEe(i,s),mEe(i,s,r,e),hEe(i,s),pEe(i,s,n),s["!margins"]&&lt(i,476,iEe(s["!margins"])),(!t||t.ignoreEC||t.ignoreEC==null)&&gEe(i,s),vEe(i,s,e,n),lt(i,130),i.end()}function bEe(e,t){e.l+=10;var r=hs(e);return{name:r}}var BEe=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]];function CEe(e){return!e.Workbook||!e.Workbook.WBProps?"false":txe(e.Workbook.WBProps.date1904)?"true":"false"}var EEe="][*?/\\".split("");function BV(e,t){if(e.length>31)throw new Error("Sheet names cannot exceed 31 chars");var r=!0;return EEe.forEach(function(n){if(e.indexOf(n)!=-1)throw new Error("Sheet name cannot contain : \\ / ? * [ ]")}),r}function _Ee(e,t,r){e.forEach(function(n,i){BV(n);for(var a=0;a<i;++a)if(n==e[a])throw new Error("Duplicate Sheet Name: "+n);if(r){var s=t&&t[i]&&t[i].CodeName||n;if(s.charCodeAt(0)==95&&s.length>22)throw new Error("Bad Code Name: Worksheet"+s)}})}function SEe(e){if(!e||!e.SheetNames||!e.Sheets)throw new Error("Invalid Workbook");if(!e.SheetNames.length)throw new Error("Workbook is empty");var t=e.Workbook&&e.Workbook.Sheets||[];_Ee(e.SheetNames,t,!!e.vbaraw);for(var r=0;r<e.SheetNames.length;++r)Y5e(e.Sheets[e.SheetNames[r]],e.SheetNames[r],r)}function CV(e){var t=[Wi];t[t.length]=ht("workbook",null,{xmlns:yg[0],"xmlns:r":Ba.r});var r=e.Workbook&&(e.Workbook.Names||[]).length>0,n={codeName:"ThisWorkbook"};e.Workbook&&e.Workbook.WBProps&&(BEe.forEach(function(o){e.Workbook.WBProps[o[0]]!=null&&e.Workbook.WBProps[o[0]]!=o[1]&&(n[o[0]]=e.Workbook.WBProps[o[0]])}),e.Workbook.WBProps.CodeName&&(n.codeName=e.Workbook.WBProps.CodeName,delete n.CodeName)),t[t.length]=ht("workbookPr",null,n);var i=e.Workbook&&e.Workbook.Sheets||[],a=0;if(i&&i[0]&&i[0].Hidden){for(t[t.length]="<bookViews>",a=0;a!=e.SheetNames.length&&!(!i[a]||!i[a].Hidden);++a);a==e.SheetNames.length&&(a=0),t[t.length]='<workbookView firstSheet="'+a+'" activeTab="'+a+'"/>',t[t.length]="</bookViews>"}for(t[t.length]="<sheets>",a=0;a!=e.SheetNames.length;++a){var s={name:fn(e.SheetNames[a].slice(0,31))};if(s.sheetId=""+(a+1),s["r:id"]="rId"+(a+1),i[a])switch(i[a].Hidden){case 1:s.state="hidden";break;case 2:s.state="veryHidden";break}t[t.length]=ht("sheet",null,s)}return t[t.length]="</sheets>",r&&(t[t.length]="<definedNames>",e.Workbook&&e.Workbook.Names&&e.Workbook.Names.forEach(function(o){var l={name:o.Name};o.Comment&&(l.comment=o.Comment),o.Sheet!=null&&(l.localSheetId=""+o.Sheet),o.Hidden&&(l.hidden="1"),o.Ref&&(t[t.length]=ht("definedName",fn(o.Ref),l))}),t[t.length]="</definedNames>"),t.length>2&&(t[t.length]="</workbook>",t[1]=t[1].replace("/>",">")),t.join("")}function FEe(e,t){var r={};return r.Hidden=e.read_shift(4),r.iTabID=e.read_shift(4),r.strRelID=v4(e),r.name=hs(e),r}function TEe(e,t){return t||(t=Xe(127)),t.write_shift(4,e.Hidden),t.write_shift(4,e.iTabID),yF(e.strRelID,t),_a(e.name.slice(0,31),t),t.length>t.l?t.slice(0,t.l):t}function OEe(e,t){var r={},n=e.read_shift(4);r.defaultThemeVersion=e.read_shift(4);var i=t>8?hs(e):"";return i.length>0&&(r.CodeName=i),r.autoCompressPictures=!!(n&65536),r.backupFile=!!(n&64),r.checkCompatibility=!!(n&4096),r.date1904=!!(n&1),r.filterPrivacy=!!(n&8),r.hidePivotFieldList=!!(n&1024),r.promptedSolutions=!!(n&16),r.publishItems=!!(n&2048),r.refreshAllConnections=!!(n&262144),r.saveExternalLinkValues=!!(n&128),r.showBorderUnselectedTables=!!(n&4),r.showInkAnnotation=!!(n&32),r.showObjects=["all","placeholders","none"][n>>13&3],r.showPivotChartFilter=!!(n&32768),r.updateLinks=["userSet","never","always"][n>>8&3],r}function UEe(e,t){t||(t=Xe(72));var r=0;return e&&e.filterPrivacy&&(r|=8),t.write_shift(4,r),t.write_shift(4,0),Mz(e&&e.CodeName||"ThisWorkbook",t),t.slice(0,t.l)}function NEe(e,t,r){var n=e.l+t;e.l+=4,e.l+=1;var i=e.read_shift(4),a=Cxe(e),s=K5e(e,0,r),o=mF(e);e.l=n;var l={Name:a,Ptg:s};return i<268435455&&(l.Sheet=i),o&&(l.Comment=o),l}function LEe(e,t){lt(e,143);for(var r=0;r!=t.SheetNames.length;++r){var n=t.Workbook&&t.Workbook.Sheets&&t.Workbook.Sheets[r]&&t.Workbook.Sheets[r].Hidden||0,i={Hidden:n,iTabID:r+1,strRelID:"rId"+(r+1),name:t.SheetNames[r]};lt(e,156,TEe(i))}lt(e,144)}function DEe(e,t){t||(t=Xe(127));for(var r=0;r!=4;++r)t.write_shift(4,0);return _a("SheetJS",t),_a(lw.version,t),_a(lw.version,t),_a("7262",t),t.length>t.l?t.slice(0,t.l):t}function IEe(e,t){t||(t=Xe(29)),t.write_shift(-4,0),t.write_shift(-4,460),t.write_shift(4,28800),t.write_shift(4,17600),t.write_shift(4,500),t.write_shift(4,e),t.write_shift(4,e);var r=120;return t.write_shift(1,r),t.length>t.l?t.slice(0,t.l):t}function MEe(e,t){if(!(!t.Workbook||!t.Workbook.Sheets)){for(var r=t.Workbook.Sheets,n=0,i=-1,a=-1;n<r.length;++n)!r[n]||!r[n].Hidden&&i==-1?i=n:r[n].Hidden==1&&a==-1&&(a=n);a>i||(lt(e,135),lt(e,158,IEe(i)),lt(e,136))}}function PEe(e,t){var r=no();return lt(r,131),lt(r,128,DEe()),lt(r,153,UEe(e.Workbook&&e.Workbook.WBProps||null)),MEe(r,e),LEe(r,e),lt(r,132),r.end()}function kEe(e,t,r){return(t.slice(-4)===".bin"?PEe:CV)(e)}function QEe(e,t,r,n,i){return(t.slice(-4)===".bin"?xEe:xV)(e,r,n,i)}function REe(e,t,r){return(t.slice(-4)===".bin"?iBe:sV)(e,r)}function jEe(e,t,r){return(t.slice(-4)===".bin"?Ube:rV)(e,r)}function HEe(e,t,r){return(t.slice(-4)===".bin"?wBe:uV)(e)}function KEe(e){return(e.slice(-4)===".bin"?fBe:lV)()}function zEe(e,t){var r=[];return e.Props&&r.push(Rxe(e.Props,t)),e.Custprops&&r.push(jxe(e.Props,e.Custprops)),r.join("")}function VEe(){return""}function GEe(e,t){var r=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'];return t.cellXfs.forEach(function(n,i){var a=[];a.push(ht("NumberFormat",null,{"ss:Format":fn(Ei[n.numFmtId])}));var s={"ss:ID":"s"+(21+i)};r.push(ht("Style",a.join(""),s))}),ht("Styles",r.join(""))}function EV(e){return ht("NamedRange",null,{"ss:Name":e.Name,"ss:RefersTo":"="+BF(e.Ref,{r:0,c:0})})}function qEe(e){if(!((e||{}).Workbook||{}).Names)return"";for(var t=e.Workbook.Names,r=[],n=0;n<t.length;++n){var i=t[n];i.Sheet==null&&(i.Name.match(/^_xlfn\./)||r.push(EV(i)))}return ht("Names",r.join(""))}function WEe(e,t,r,n){if(!e||!((n||{}).Workbook||{}).Names)return"";for(var i=n.Workbook.Names,a=[],s=0;s<i.length;++s){var o=i[s];o.Sheet==r&&(o.Name.match(/^_xlfn\./)||a.push(EV(o)))}return a.join("")}function YEe(e,t,r,n){if(!e)return"";var i=[];if(e["!margins"]&&(i.push("<PageSetup>"),e["!margins"].header&&i.push(ht("Header",null,{"x:Margin":e["!margins"].header})),e["!margins"].footer&&i.push(ht("Footer",null,{"x:Margin":e["!margins"].footer})),i.push(ht("PageMargins",null,{"x:Bottom":e["!margins"].bottom||"0.75","x:Left":e["!margins"].left||"0.7","x:Right":e["!margins"].right||"0.7","x:Top":e["!margins"].top||"0.75"})),i.push("</PageSetup>")),n&&n.Workbook&&n.Workbook.Sheets&&n.Workbook.Sheets[r])if(n.Workbook.Sheets[r].Hidden)i.push(ht("Visible",n.Workbook.Sheets[r].Hidden==1?"SheetHidden":"SheetVeryHidden",{}));else{for(var a=0;a<r&&!(n.Workbook.Sheets[a]&&!n.Workbook.Sheets[a].Hidden);++a);a==r&&i.push("<Selected/>")}return((((n||{}).Workbook||{}).Views||[])[0]||{}).RTL&&i.push("<DisplayRightToLeft/>"),e["!protect"]&&(i.push(Va("ProtectContents","True")),e["!protect"].objects&&i.push(Va("ProtectObjects","True")),e["!protect"].scenarios&&i.push(Va("ProtectScenarios","True")),e["!protect"].selectLockedCells!=null&&!e["!protect"].selectLockedCells?i.push(Va("EnableSelection","NoSelection")):e["!protect"].selectUnlockedCells!=null&&!e["!protect"].selectUnlockedCells&&i.push(Va("EnableSelection","UnlockedCells")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach(function(s){e["!protect"][s[0]]&&i.push("<"+s[1]+"/>")})),i.length==0?"":ht("WorksheetOptions",i.join(""),{xmlns:Uo.x})}function $Ee(e){return e.map(function(t){var r=exe(t.t||""),n=ht("ss:Data",r,{xmlns:"http://www.w3.org/TR/REC-html40"});return ht("Comment",n,{"ss:Author":t.a})}).join("")}function XEe(e,t,r,n,i,a,s){if(!e||e.v==null&&e.f==null)return"";var o={};if(e.f&&(o["ss:Formula"]="="+fn(BF(e.f,s))),e.F&&e.F.slice(0,t.length)==t){var l=Ea(e.F.slice(t.length+1));o["ss:ArrayRange"]="RC:R"+(l.r==s.r?"":"["+(l.r-s.r)+"]")+"C"+(l.c==s.c?"":"["+(l.c-s.c)+"]")}if(e.l&&e.l.Target&&(o["ss:HRef"]=fn(e.l.Target),e.l.Tooltip&&(o["x:HRefScreenTip"]=fn(e.l.Tooltip))),r["!merges"])for(var c=r["!merges"],f=0;f!=c.length;++f)c[f].s.c!=s.c||c[f].s.r!=s.r||(c[f].e.c>c[f].s.c&&(o["ss:MergeAcross"]=c[f].e.c-c[f].s.c),c[f].e.r>c[f].s.r&&(o["ss:MergeDown"]=c[f].e.r-c[f].s.r));var h="",p="";switch(e.t){case"z":if(!n.sheetStubs)return"";break;case"n":h="Number",p=String(e.v);break;case"b":h="Boolean",p=e.v?"1":"0";break;case"e":h="Error",p=xv[e.v];break;case"d":h="DateTime",p=new Date(e.v).toISOString(),e.z==null&&(e.z=e.z||Ei[14]);break;case"s":h="String",p=Zwe(e.v||"");break}var g=Of(n.cellXfs,e,n);o["ss:StyleID"]="s"+(21+g),o["ss:Index"]=s.c+1;var y=e.v!=null?p:"",m=e.t=="z"?"":'<Data ss:Type="'+h+'">'+y+"</Data>";return(e.c||[]).length>0&&(m+=$Ee(e.c)),ht("Cell",m,o)}function JEe(e,t){var r='<Row ss:Index="'+(e+1)+'"';return t&&(t.hpt&&!t.hpx&&(t.hpx=aV(t.hpt)),t.hpx&&(r+=' ss:AutoFitHeight="0" ss:Height="'+t.hpx+'"'),t.hidden&&(r+=' ss:Hidden="1"')),r+">"}function ZEe(e,t,r,n){if(!e["!ref"])return"";var i=Vn(e["!ref"]),a=e["!merges"]||[],s=0,o=[];e["!cols"]&&e["!cols"].forEach(function(w,b){xF(w);var E=!!w.width,S=Vx(b,w),T={"ss:Index":b+1};E&&(T["ss:Width"]=yw(S.width)),w.hidden&&(T["ss:Hidden"]="1"),o.push(ht("Column",null,T))});for(var l=Array.isArray(e),c=i.s.r;c<=i.e.r;++c){for(var f=[JEe(c,(e["!rows"]||[])[c])],h=i.s.c;h<=i.e.c;++h){var p=!1;for(s=0;s!=a.length;++s)if(!(a[s].s.c>h)&&!(a[s].s.r>c)&&!(a[s].e.c<h)&&!(a[s].e.r<c)){(a[s].s.c!=h||a[s].s.r!=c)&&(p=!0);break}if(!p){var g={r:c,c:h},y=hn(g),m=l?(e[c]||[])[h]:e[y];f.push(XEe(m,y,e,t,r,n,g))}}f.push("</Row>"),f.length>2&&o.push(f.join(""))}return o.join("")}function e_e(e,t,r){var n=[],i=r.SheetNames[e],a=r.Sheets[i],s=a?WEe(a,t,e,r):"";return s.length>0&&n.push("<Names>"+s+"</Names>"),s=a?ZEe(a,t,e,r):"",s.length>0&&n.push("<Table>"+s+"</Table>"),n.push(YEe(a,t,e,r)),n.join("")}function t_e(e,t){t||(t={}),e.SSF||(e.SSF=ao(Ei)),e.SSF&&(Rx(),Qx(e.SSF),t.revssf=jx(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF,t.cellXfs=[],Of(t.cellXfs,{},{revssf:{General:0}}));var r=[];r.push(zEe(e,t)),r.push(VEe()),r.push(""),r.push("");for(var n=0;n<e.SheetNames.length;++n)r.push(ht("Worksheet",e_e(n,t,e),{"ss:Name":fn(e.SheetNames[n])}));return r[2]=GEe(e,t),r[3]=qEe(e),Wi+ht("Workbook",r.join(""),{xmlns:Uo.ss,"xmlns:o":Uo.o,"xmlns:x":Uo.x,"xmlns:ss":Uo.ss,"xmlns:dt":Uo.dt,"xmlns:html":Uo.html})}var KC={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function r_e(e,t){var r=[],n=[],i=[],a=0,s,o=cM(BM,"n"),l=cM(CM,"n");if(e.Props)for(s=$a(e.Props),a=0;a<s.length;++a)(Object.prototype.hasOwnProperty.call(o,s[a])?r:Object.prototype.hasOwnProperty.call(l,s[a])?n:i).push([s[a],e.Props[s[a]]]);if(e.Custprops)for(s=$a(e.Custprops),a=0;a<s.length;++a)Object.prototype.hasOwnProperty.call(e.Props||{},s[a])||(Object.prototype.hasOwnProperty.call(o,s[a])?r:Object.prototype.hasOwnProperty.call(l,s[a])?n:i).push([s[a],e.Custprops[s[a]]]);var c=[];for(a=0;a<i.length;++a)Yz.indexOf(i[a][0])>-1||Gz.indexOf(i[a][0])>-1||i[a][1]!=null&&c.push(i[a]);n.length&&Bn.utils.cfb_add(t,"/SummaryInformation",TM(n,KC.SI,l,CM)),(r.length||c.length)&&Bn.utils.cfb_add(t,"/DocumentSummaryInformation",TM(r,KC.DSI,o,BM,c.length?c:null,KC.UDI))}function n_e(e,t){var r=t||{},n=Bn.utils.cfb_new({root:"R"}),i="/Workbook";switch(r.bookType||"xls"){case"xls":r.bookType="biff8";case"xla":r.bookType||(r.bookType="xla");case"biff8":i="/Workbook",r.biff=8;break;case"biff5":i="/Book",r.biff=5;break;default:throw new Error("invalid type "+r.bookType+" for XLS CFB")}return Bn.utils.cfb_add(n,i,_V(e,r)),r.biff==8&&(e.Props||e.Custprops)&&r_e(e,n),r.biff==8&&e.vbaraw&&xBe(n,Bn.read(e.vbaraw,{type:typeof e.vbaraw=="string"?"binary":"buffer"})),n}var i_e={0:{f:oCe},1:{f:gCe},2:{f:ICe},3:{f:BCe},4:{f:yCe},5:{f:UCe},6:{f:RCe},7:{f:SCe},8:{f:qCe},9:{f:GCe},10:{f:zCe},11:{f:VCe},12:{f:vCe},13:{f:PCe},14:{f:ECe},15:{f:xCe},16:{f:LCe},17:{f:HCe},18:{f:TCe},19:{f:vF},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:NEe},40:{},42:{},43:{f:Rbe},44:{f:kbe},45:{f:Kbe},46:{f:Vbe},47:{f:zbe},48:{},49:{f:vxe},50:{},51:{f:oBe},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:mbe},62:{f:QCe},63:{f:hBe},64:{f:lEe},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:Gl,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:aEe},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:hCe},148:{f:cCe,p:16},151:{f:ZCe},152:{},153:{f:OEe},154:{},155:{},156:{f:FEe},157:{},158:{},159:{T:1,f:Fbe},160:{T:-1},161:{T:1,f:ad},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:WCe},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:aBe},336:{T:-1},337:{f:cBe,T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:v4},357:{},358:{},359:{},360:{T:1},361:{},362:{f:fbe},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:eEe},427:{f:tEe},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:nEe},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:fCe},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:XCe},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:v4},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:mBe},633:{T:1},634:{T:-1},635:{T:1,f:pBe},636:{T:-1},637:{f:xxe},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:bEe},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:cEe},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}};function gt(e,t,r,n){var i=t;if(!isNaN(i)){var a=n||(r||[]).length||0,s=e.next(4);s.write_shift(2,i),s.write_shift(2,a),a>0&&dF(r)&&e.push(r)}}function a_e(e,t,r,n){var i=(r||[]).length||0;if(i<=8224)return gt(e,t,r,i);var a=t;if(!isNaN(a)){for(var s=r.parts||[],o=0,l=0,c=0;c+(s[o]||8224)<=8224;)c+=s[o]||8224,o++;var f=e.next(4);for(f.write_shift(2,a),f.write_shift(2,c),e.push(r.slice(l,l+c)),l+=c;l<i;){for(f=e.next(4),f.write_shift(2,60),c=0;c+(s[o]||8224)<=8224;)c+=s[o]||8224,o++;f.write_shift(2,c),e.push(r.slice(l,l+c)),l+=c}}}function Bv(e,t,r){return e||(e=Xe(7)),e.write_shift(2,t),e.write_shift(2,r),e.write_shift(2,0),e.write_shift(1,0),e}function s_e(e,t,r,n){var i=Xe(9);return Bv(i,e,t),Xz(r,n||"b",i),i}function o_e(e,t,r){var n=Xe(8+2*r.length);return Bv(n,e,t),n.write_shift(1,r.length),n.write_shift(r.length,r,"sbcs"),n.l<n.length?n.slice(0,n.l):n}function A_e(e,t,r,n){if(t.v!=null)switch(t.t){case"d":case"n":var i=t.t=="d"?io(Ts(t.v)):t.v;i==(i|0)&&i>=0&&i<65536?gt(e,2,bbe(r,n,i)):gt(e,3,xbe(r,n,i));return;case"b":case"e":gt(e,5,s_e(r,n,t.v,t.t));return;case"s":case"str":gt(e,4,o_e(r,n,(t.v||"").slice(0,255)));return}gt(e,1,Bv(null,r,n))}function l_e(e,t,r,n){var i=Array.isArray(t),a=Vn(t["!ref"]||"A1"),s,o="",l=[];if(a.e.c>255||a.e.r>16383){if(n.WTF)throw new Error("Range "+(t["!ref"]||"A1")+" exceeds format limit A1:IV16384");a.e.c=Math.min(a.e.c,255),a.e.r=Math.min(a.e.c,16383),s=qi(a)}for(var c=a.s.r;c<=a.e.r;++c){o=Wa(c);for(var f=a.s.c;f<=a.e.c;++f){c===a.s.r&&(l[f]=fs(f)),s=l[f]+o;var h=i?(t[c]||[])[f]:t[s];h&&A_e(e,h,c,f)}}}function c_e(e,t){for(var r=t||{},n=no(),i=0,a=0;a<e.SheetNames.length;++a)e.SheetNames[a]==r.sheet&&(i=a);if(i==0&&r.sheet&&e.SheetNames[0]!=r.sheet)throw new Error("Sheet not found: "+r.sheet);return gt(n,r.biff==4?1033:r.biff==3?521:9,wF(e,16,r)),l_e(n,e.Sheets[e.SheetNames[i]],i,r),gt(n,10),n.end()}function u_e(e,t,r){gt(e,49,ibe({sz:12,name:"Arial"},r))}function f_e(e,t,r){t&&[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var i=n[0];i<=n[1];++i)t[i]!=null&&gt(e,1054,obe(i,t[i],r))})}function h_e(e,t){var r=Xe(19);r.write_shift(4,2151),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(2,3),r.write_shift(1,1),r.write_shift(4,0),gt(e,2151,r),r=Xe(39),r.write_shift(4,2152),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(2,3),r.write_shift(1,0),r.write_shift(4,0),r.write_shift(2,1),r.write_shift(4,4),r.write_shift(2,0),eV(Vn(t["!ref"]||"A1"),r),r.write_shift(4,4),gt(e,2152,r)}function d_e(e,t){for(var r=0;r<16;++r)gt(e,224,UM({numFmtId:0,style:!0},0,t));t.cellXfs.forEach(function(n){gt(e,224,UM(n,0,t))})}function g_e(e,t){for(var r=0;r<t["!links"].length;++r){var n=t["!links"][r];gt(e,440,gbe(n)),n[1].Tooltip&&gt(e,2048,pbe(n))}delete t["!links"]}function p_e(e,t){if(t){var r=0;t.forEach(function(n,i){++r<=256&&n&&gt(e,125,ybe(Vx(i,n),i))})}}function v_e(e,t,r,n,i){var a=16+Of(i.cellXfs,t,i);if(t.v==null&&!t.bf){gt(e,513,Gh(r,n,a));return}if(t.bf)gt(e,6,j5e(t,r,n,i,a));else switch(t.t){case"d":case"n":var s=t.t=="d"?io(Ts(t.v)):t.v;gt(e,515,ube(r,n,s,a));break;case"b":case"e":gt(e,517,cbe(r,n,t.v,a,i,t.t));break;case"s":case"str":if(i.bookSST){var o=EF(i.Strings,t.v,i.revStrings);gt(e,253,abe(r,n,o,a))}else gt(e,516,sbe(r,n,(t.v||"").slice(0,255),a,i));break;default:gt(e,513,Gh(r,n,a))}}function m_e(e,t,r){var n=no(),i=r.SheetNames[e],a=r.Sheets[i]||{},s=(r||{}).Workbook||{},o=(s.Sheets||[])[e]||{},l=Array.isArray(a),c=t.biff==8,f,h="",p=[],g=Vn(a["!ref"]||"A1"),y=c?65536:16384;if(g.e.c>255||g.e.r>=y){if(t.WTF)throw new Error("Range "+(a["!ref"]||"A1")+" exceeds format limit A1:IV16384");g.e.c=Math.min(g.e.c,255),g.e.r=Math.min(g.e.c,y-1)}gt(n,2057,wF(r,16,t)),gt(n,13,lA(1)),gt(n,12,lA(100)),gt(n,15,Cs(!0)),gt(n,17,Cs(!1)),gt(n,16,Vh(.001)),gt(n,95,Cs(!0)),gt(n,42,Cs(!1)),gt(n,43,Cs(!1)),gt(n,130,lA(1)),gt(n,128,lbe()),gt(n,131,Cs(!1)),gt(n,132,Cs(!1)),c&&p_e(n,a["!cols"]),gt(n,512,Abe(g,t)),c&&(a["!links"]=[]);for(var m=g.s.r;m<=g.e.r;++m){h=Wa(m);for(var w=g.s.c;w<=g.e.c;++w){m===g.s.r&&(p[w]=fs(w)),f=p[w]+h;var b=l?(a[m]||[])[w]:a[f];b&&(v_e(n,b,m,w,t),c&&b.l&&a["!links"].push([f,b.l]))}}var E=o.CodeName||o.name||i;return c&&gt(n,574,nbe((s.Views||[])[0])),c&&(a["!merges"]||[]).length&&gt(n,229,dbe(a["!merges"])),c&&g_e(n,a),gt(n,442,Zz(E)),c&&h_e(n,a),gt(n,10),n.end()}function y_e(e,t,r){var n=no(),i=(e||{}).Workbook||{},a=i.Sheets||[],s=i.WBProps||{},o=r.biff==8,l=r.biff==5;if(gt(n,2057,wF(e,5,r)),r.bookType=="xla"&&gt(n,135),gt(n,225,o?lA(1200):null),gt(n,193,zxe(2)),l&&gt(n,191),l&&gt(n,192),gt(n,226),gt(n,92,Zxe("SheetJS",r)),gt(n,66,lA(o?1200:1252)),o&&gt(n,353,lA(0)),o&&gt(n,448),gt(n,317,wbe(e.SheetNames.length)),o&&e.vbaraw&&gt(n,211),o&&e.vbaraw){var c=s.CodeName||"ThisWorkbook";gt(n,442,Zz(c))}gt(n,156,lA(17)),gt(n,25,Cs(!1)),gt(n,18,Cs(!1)),gt(n,19,lA(0)),o&&gt(n,431,Cs(!1)),o&&gt(n,444,lA(0)),gt(n,61,rbe()),gt(n,64,Cs(!1)),gt(n,141,lA(0)),gt(n,34,Cs(CEe(e)=="true")),gt(n,14,Cs(!0)),o&&gt(n,439,Cs(!1)),gt(n,218,lA(0)),u_e(n,e,r),f_e(n,e.SSF,r),d_e(n,r),o&&gt(n,352,Cs(!1));var f=n.end(),h=no();o&&gt(h,140,vbe()),o&&r.Strings&&a_e(h,252,tbe(r.Strings)),gt(h,10);var p=h.end(),g=no(),y=0,m=0;for(m=0;m<e.SheetNames.length;++m)y+=(o?12:11)+(o?2:1)*e.SheetNames[m].length;var w=f.length+y+p.length;for(m=0;m<e.SheetNames.length;++m){var b=a[m]||{};gt(g,133,ebe({pos:w,hs:b.Hidden||0,dt:0,name:e.SheetNames[m]},r)),w+=t[m].length}var E=g.end();if(y!=E.length)throw new Error("BS8 "+y+" != "+E.length);var S=[];return f.length&&S.push(f),E.length&&S.push(E),p.length&&S.push(p),za(S)}function w_e(e,t){var r=t||{},n=[];e&&!e.SSF&&(e.SSF=ao(Ei)),e&&e.SSF&&(Rx(),Qx(e.SSF),r.revssf=jx(e.SSF),r.revssf[e.SSF[65535]]=0,r.ssf=e.SSF),r.Strings=[],r.Strings.Count=0,r.Strings.Unique=0,_F(r),r.cellXfs=[],Of(r.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={});for(var i=0;i<e.SheetNames.length;++i)n[n.length]=m_e(i,r,e);return n.unshift(y_e(e,n,r)),za(n)}function _V(e,t){for(var r=0;r<=e.SheetNames.length;++r){var n=e.Sheets[e.SheetNames[r]];if(!(!n||!n["!ref"])){var i=ko(n["!ref"]);i.e.c>255&&typeof console<"u"&&console.error&&console.error("Worksheet '"+e.SheetNames[r]+"' extends beyond column IV (255).  Data may be lost.")}}var a=t||{};switch(a.biff||2){case 8:case 5:return w_e(e,t);case 4:case 3:case 2:return c_e(e,t)}throw new Error("invalid type "+a.bookType+" for BIFF")}function x_e(e,t,r,n){for(var i=e["!merges"]||[],a=[],s=t.s.c;s<=t.e.c;++s){for(var o=0,l=0,c=0;c<i.length;++c)if(!(i[c].s.r>r||i[c].s.c>s)&&!(i[c].e.r<r||i[c].e.c<s)){if(i[c].s.r<r||i[c].s.c<s){o=-1;break}o=i[c].e.r-i[c].s.r+1,l=i[c].e.c-i[c].s.c+1;break}if(!(o<0)){var f=hn({r,c:s}),h=n.dense?(e[r]||[])[s]:e[f],p=h&&h.v!=null&&(h.h||Jwe(h.w||(Jc(h),h.w)||""))||"",g={};o>1&&(g.rowspan=o),l>1&&(g.colspan=l),n.editable?p='<span contenteditable="true">'+p+"</span>":h&&(g["data-t"]=h&&h.t||"z",h.v!=null&&(g["data-v"]=h.v),h.z!=null&&(g["data-z"]=h.z),h.l&&(h.l.Target||"#").charAt(0)!="#"&&(p='<a href="'+h.l.Target+'">'+p+"</a>")),g.id=(n.id||"sjs")+"-"+f,a.push(ht("td",p,g))}}var y="<tr>";return y+a.join("")+"</tr>"}var b_e='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',B_e="</body></html>";function C_e(e,t,r){var n=[];return n.join("")+"<table"+(r&&r.id?' id="'+r.id+'"':"")+">"}function SV(e,t){var r=t||{},n=r.header!=null?r.header:b_e,i=r.footer!=null?r.footer:B_e,a=[n],s=ko(e["!ref"]);r.dense=Array.isArray(e),a.push(C_e(e,s,r));for(var o=s.s.r;o<=s.e.r;++o)a.push(x_e(e,s,o,r));return a.push("</table>"+i),a.join("")}function FV(e,t,r){var n=r||{},i=0,a=0;if(n.origin!=null)if(typeof n.origin=="number")i=n.origin;else{var s=typeof n.origin=="string"?Ea(n.origin):n.origin;i=s.r,a=s.c}var o=t.getElementsByTagName("tr"),l=Math.min(n.sheetRows||1e7,o.length),c={s:{r:0,c:0},e:{r:i,c:a}};if(e["!ref"]){var f=ko(e["!ref"]);c.s.r=Math.min(c.s.r,f.s.r),c.s.c=Math.min(c.s.c,f.s.c),c.e.r=Math.max(c.e.r,f.e.r),c.e.c=Math.max(c.e.c,f.e.c),i==-1&&(c.e.r=i=f.e.r+1)}var h=[],p=0,g=e["!rows"]||(e["!rows"]=[]),y=0,m=0,w=0,b=0,E=0,S=0;for(e["!cols"]||(e["!cols"]=[]);y<o.length&&m<l;++y){var T=o[y];if(kM(T)){if(n.display)continue;g[m]={hidden:!0}}var D=T.children;for(w=b=0;w<D.length;++w){var k=D[w];if(!(n.display&&kM(k))){var P=k.hasAttribute("data-v")?k.getAttribute("data-v"):k.hasAttribute("v")?k.getAttribute("v"):rxe(k.innerHTML),R=k.getAttribute("data-z")||k.getAttribute("z");for(p=0;p<h.length;++p){var O=h[p];O.s.c==b+a&&O.s.r<m+i&&m+i<=O.e.r&&(b=O.e.c+1-a,p=-1)}S=+k.getAttribute("colspan")||1,((E=+k.getAttribute("rowspan")||1)>1||S>1)&&h.push({s:{r:m+i,c:b+a},e:{r:m+i+(E||1)-1,c:b+a+(S||1)-1}});var V={t:"s",v:P},I=k.getAttribute("data-t")||k.getAttribute("t")||"";P!=null&&(P.length==0?V.t=I||"z":n.raw||P.trim().length==0||I=="s"||(P==="TRUE"?V={t:"b",v:!0}:P==="FALSE"?V={t:"b",v:!1}:isNaN(Hc(P))?isNaN(O1(P).getDate())||(V={t:"d",v:Ts(P)},n.cellDates||(V={t:"n",v:io(V.v)}),V.z=n.dateNF||Ei[14]):V={t:"n",v:Hc(P)})),V.z===void 0&&R!=null&&(V.z=R);var Q="",W=k.getElementsByTagName("A");if(W&&W.length)for(var J=0;J<W.length&&!(W[J].hasAttribute("href")&&(Q=W[J].getAttribute("href"),Q.charAt(0)!="#"));++J);Q&&Q.charAt(0)!="#"&&(V.l={Target:Q}),n.dense?(e[m+i]||(e[m+i]=[]),e[m+i][b+a]=V):e[hn({c:b+a,r:m+i})]=V,c.e.c<b+a&&(c.e.c=b+a),b+=S}}++m}return h.length&&(e["!merges"]=(e["!merges"]||[]).concat(h)),c.e.r=Math.max(c.e.r,m-1+i),e["!ref"]=qi(c),m>=l&&(e["!fullref"]=qi((c.e.r=o.length-y+m-1+i,c))),e}function TV(e,t){var r=t||{},n=r.dense?[]:{};return FV(n,e,t)}function E_e(e,t){return td(TV(e,t),t)}function kM(e){var t="",r=__e(e);return r&&(t=r(e).getPropertyValue("display")),t||(t=e.style&&e.style.display),t==="none"}function __e(e){return e.ownerDocument.defaultView&&typeof e.ownerDocument.defaultView.getComputedStyle=="function"?e.ownerDocument.defaultView.getComputedStyle:typeof getComputedStyle=="function"?getComputedStyle:null}var S_e=(function(){var e=["<office:master-styles>",'<style:master-page style:name="mp1" style:page-layout-name="mp1">',"<style:header/>",'<style:header-left style:display="false"/>',"<style:footer/>",'<style:footer-left style:display="false"/>',"</style:master-page>","</office:master-styles>"].join(""),t="<office:document-styles "+N1({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","office:version":"1.2"})+">"+e+"</office:document-styles>";return function(){return Wi+t}})(),QM=(function(){var e=function(a){return fn(a).replace(/  +/g,function(s){return'<text:s text:c="'+s.length+'"/>'}).replace(/\t/g,"<text:tab/>").replace(/\n/g,"</text:p><text:p>").replace(/^ /,"<text:s/>").replace(/ $/,"<text:s/>")},t=`          <table:table-cell />
`,r=`          <table:covered-table-cell/>
`,n=function(a,s,o){var l=[];l.push('      <table:table table:name="'+fn(s.SheetNames[o])+`" table:style-name="ta1">
`);var c=0,f=0,h=ko(a["!ref"]||"A1"),p=a["!merges"]||[],g=0,y=Array.isArray(a);if(a["!cols"])for(f=0;f<=h.e.c;++f)l.push("        <table:table-column"+(a["!cols"][f]?' table:style-name="co'+a["!cols"][f].ods+'"':"")+`></table:table-column>
`);var m="",w=a["!rows"]||[];for(c=0;c<h.s.r;++c)m=w[c]?' table:style-name="ro'+w[c].ods+'"':"",l.push("        <table:table-row"+m+`></table:table-row>
`);for(;c<=h.e.r;++c){for(m=w[c]?' table:style-name="ro'+w[c].ods+'"':"",l.push("        <table:table-row"+m+`>
`),f=0;f<h.s.c;++f)l.push(t);for(;f<=h.e.c;++f){var b=!1,E={},S="";for(g=0;g!=p.length;++g)if(!(p[g].s.c>f)&&!(p[g].s.r>c)&&!(p[g].e.c<f)&&!(p[g].e.r<c)){(p[g].s.c!=f||p[g].s.r!=c)&&(b=!0),E["table:number-columns-spanned"]=p[g].e.c-p[g].s.c+1,E["table:number-rows-spanned"]=p[g].e.r-p[g].s.r+1;break}if(b){l.push(r);continue}var T=hn({r:c,c:f}),D=y?(a[c]||[])[f]:a[T];if(D&&D.f&&(E["table:formula"]=fn(q5e(D.f)),D.F&&D.F.slice(0,T.length)==T)){var k=ko(D.F);E["table:number-matrix-columns-spanned"]=k.e.c-k.s.c+1,E["table:number-matrix-rows-spanned"]=k.e.r-k.s.r+1}if(!D){l.push(t);continue}switch(D.t){case"b":S=D.v?"TRUE":"FALSE",E["office:value-type"]="boolean",E["office:boolean-value"]=D.v?"true":"false";break;case"n":S=D.w||String(D.v||0),E["office:value-type"]="float",E["office:value"]=D.v||0;break;case"s":case"str":S=D.v==null?"":D.v,E["office:value-type"]="string";break;case"d":S=D.w||Ts(D.v).toISOString(),E["office:value-type"]="date",E["office:date-value"]=Ts(D.v).toISOString(),E["table:style-name"]="ce1";break;default:l.push(t);continue}var P=e(S);if(D.l&&D.l.Target){var R=D.l.Target;R=R.charAt(0)=="#"?"#"+W5e(R.slice(1)):R,R.charAt(0)!="#"&&!R.match(/^\w+:/)&&(R="../"+R),P=ht("text:a",P,{"xlink:href":R.replace(/&/g,"&amp;")})}l.push("          "+ht("table:table-cell",ht("text:p",P,{}),E)+`
`)}l.push(`        </table:table-row>
`)}return l.push(`      </table:table>
`),l.join("")},i=function(a,s){a.push(` <office:automatic-styles>
`),a.push(`  <number:date-style style:name="N37" number:automatic-order="true">
`),a.push(`   <number:month number:style="long"/>
`),a.push(`   <number:text>/</number:text>
`),a.push(`   <number:day number:style="long"/>
`),a.push(`   <number:text>/</number:text>
`),a.push(`   <number:year/>
`),a.push(`  </number:date-style>
`);var o=0;s.SheetNames.map(function(c){return s.Sheets[c]}).forEach(function(c){if(c&&c["!cols"]){for(var f=0;f<c["!cols"].length;++f)if(c["!cols"][f]){var h=c["!cols"][f];if(h.width==null&&h.wpx==null&&h.wch==null)continue;xF(h),h.ods=o;var p=c["!cols"][f].wpx+"px";a.push('  <style:style style:name="co'+o+`" style:family="table-column">
`),a.push('   <style:table-column-properties fo:break-before="auto" style:column-width="'+p+`"/>
`),a.push(`  </style:style>
`),++o}}});var l=0;s.SheetNames.map(function(c){return s.Sheets[c]}).forEach(function(c){if(c&&c["!rows"]){for(var f=0;f<c["!rows"].length;++f)if(c["!rows"][f]){c["!rows"][f].ods=l;var h=c["!rows"][f].hpx+"px";a.push('  <style:style style:name="ro'+l+`" style:family="table-row">
`),a.push('   <style:table-row-properties fo:break-before="auto" style:row-height="'+h+`"/>
`),a.push(`  </style:style>
`),++l}}}),a.push(`  <style:style style:name="ta1" style:family="table" style:master-page-name="mp1">
`),a.push(`   <style:table-properties table:display="true" style:writing-mode="lr-tb"/>
`),a.push(`  </style:style>
`),a.push(`  <style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N37"/>
`),a.push(` </office:automatic-styles>
`)};return function(s,o){var l=[Wi],c=N1({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"}),f=N1({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});o.bookType=="fods"?(l.push("<office:document"+c+f+`>
`),l.push(zz().replace(/office:document-meta/g,"office:meta"))):l.push("<office:document-content"+c+`>
`),i(l,s),l.push(`  <office:body>
`),l.push(`    <office:spreadsheet>
`);for(var h=0;h!=s.SheetNames.length;++h)l.push(n(s.Sheets[s.SheetNames[h]],s,h));return l.push(`    </office:spreadsheet>
`),l.push(`  </office:body>
`),o.bookType=="fods"?l.push("</office:document>"):l.push("</office:document-content>"),l.join("")}})();function OV(e,t){if(t.bookType=="fods")return QM(e,t);var r=cF(),n="",i=[],a=[];return n="mimetype",xr(r,n,"application/vnd.oasis.opendocument.spreadsheet"),n="content.xml",xr(r,n,QM(e,t)),i.push([n,"text/xml"]),a.push([n,"ContentFile"]),n="styles.xml",xr(r,n,S_e(e,t)),i.push([n,"text/xml"]),a.push([n,"StylesFile"]),n="meta.xml",xr(r,n,Wi+zz()),i.push([n,"text/xml"]),a.push([n,"MetadataFile"]),n="manifest.rdf",xr(r,n,Qxe(a)),i.push([n,"application/rdf+xml"]),n="META-INF/manifest.xml",xr(r,n,Pxe(i)),r}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function bw(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function F_e(e){return typeof TextEncoder<"u"?new TextEncoder().encode(e):tl(U1(e))}function T_e(e,t){e:for(var r=0;r<=e.length-t.length;++r){for(var n=0;n<t.length;++n)if(e[r+n]!=t[n])continue e;return!0}return!1}function xf(e){var t=e.reduce(function(i,a){return i+a.length},0),r=new Uint8Array(t),n=0;return e.forEach(function(i){r.set(i,n),n+=i.length}),r}function O_e(e,t,r){var n=Math.floor(r==0?0:Math.LOG10E*Math.log(Math.abs(r)))+6176-20,i=r/Math.pow(10,n-6176);e[t+15]|=n>>7,e[t+14]|=(n&127)<<1;for(var a=0;i>=1;++a,i/=256)e[t+a]=i&255;e[t+15]|=r>=0?0:128}function L1(e,t){var r=t?t[0]:0,n=e[r]&127;e:if(e[r++]>=128&&(n|=(e[r]&127)<<7,e[r++]<128||(n|=(e[r]&127)<<14,e[r++]<128)||(n|=(e[r]&127)<<21,e[r++]<128)||(n+=(e[r]&127)*Math.pow(2,28),++r,e[r++]<128)||(n+=(e[r]&127)*Math.pow(2,35),++r,e[r++]<128)||(n+=(e[r]&127)*Math.pow(2,42),++r,e[r++]<128)))break e;return t&&(t[0]=r),n}function on(e){var t=new Uint8Array(7);t[0]=e&127;var r=1;e:if(e>127){if(t[r-1]|=128,t[r]=e>>7&127,++r,e<=16383||(t[r-1]|=128,t[r]=e>>14&127,++r,e<=2097151)||(t[r-1]|=128,t[r]=e>>21&127,++r,e<=268435455)||(t[r-1]|=128,t[r]=e/256>>>21&127,++r,e<=34359738367)||(t[r-1]|=128,t[r]=e/65536>>>21&127,++r,e<=4398046511103))break e;t[r-1]|=128,t[r]=e/16777216>>>21&127,++r}return t.slice(0,r)}function Q0(e){var t=0,r=e[t]&127;e:if(e[t++]>=128){if(r|=(e[t]&127)<<7,e[t++]<128||(r|=(e[t]&127)<<14,e[t++]<128)||(r|=(e[t]&127)<<21,e[t++]<128))break e;r|=(e[t]&127)<<28}return r}function ia(e){for(var t=[],r=[0];r[0]<e.length;){var n=r[0],i=L1(e,r),a=i&7;i=Math.floor(i/8);var s=0,o;if(i==0)break;switch(a){case 0:{for(var l=r[0];e[r[0]++]>=128;);o=e.slice(l,r[0])}break;case 5:s=4,o=e.slice(r[0],r[0]+s),r[0]+=s;break;case 1:s=8,o=e.slice(r[0],r[0]+s),r[0]+=s;break;case 2:s=L1(e,r),o=e.slice(r[0],r[0]+s),r[0]+=s;break;case 3:case 4:default:throw new Error("PB Type ".concat(a," for Field ").concat(i," at offset ").concat(n))}var c={data:o,type:a};t[i]==null?t[i]=[c]:t[i].push(c)}return t}function ka(e){var t=[];return e.forEach(function(r,n){r.forEach(function(i){i.data&&(t.push(on(n*8+i.type)),i.type==2&&t.push(on(i.data.length)),t.push(i.data))})}),xf(t)}function YA(e){for(var t,r=[],n=[0];n[0]<e.length;){var i=L1(e,n),a=ia(e.slice(n[0],n[0]+i));n[0]+=i;var s={id:Q0(a[1][0].data),messages:[]};a[2].forEach(function(o){var l=ia(o.data),c=Q0(l[3][0].data);s.messages.push({meta:l,data:e.slice(n[0],n[0]+c)}),n[0]+=c}),(t=a[3])!=null&&t[0]&&(s.merge=Q0(a[3][0].data)>>>0>0),r.push(s)}return r}function u0(e){var t=[];return e.forEach(function(r){var n=[];n[1]=[{data:on(r.id),type:0}],n[2]=[],r.merge!=null&&(n[3]=[{data:on(+!!r.merge),type:0}]);var i=[];r.messages.forEach(function(s){i.push(s.data),s.meta[3]=[{type:0,data:on(s.data.length)}],n[2].push({data:ka(s.meta),type:2})});var a=ka(n);t.push(on(a.length)),t.push(a),i.forEach(function(s){return t.push(s)})}),xf(t)}function U_e(e,t){if(e!=0)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var r=[0],n=L1(t,r),i=[];r[0]<t.length;){var a=t[r[0]]&3;if(a==0){var s=t[r[0]++]>>2;if(s<60)++s;else{var o=s-59;s=t[r[0]],o>1&&(s|=t[r[0]+1]<<8),o>2&&(s|=t[r[0]+2]<<16),o>3&&(s|=t[r[0]+3]<<24),s>>>=0,s++,r[0]+=o}i.push(t.slice(r[0],r[0]+s)),r[0]+=s;continue}else{var l=0,c=0;if(a==1?(c=(t[r[0]]>>2&7)+4,l=(t[r[0]++]&224)<<3,l|=t[r[0]++]):(c=(t[r[0]++]>>2)+1,a==2?(l=t[r[0]]|t[r[0]+1]<<8,r[0]+=2):(l=(t[r[0]]|t[r[0]+1]<<8|t[r[0]+2]<<16|t[r[0]+3]<<24)>>>0,r[0]+=4)),i=[xf(i)],l==0)throw new Error("Invalid offset 0");if(l>i[0].length)throw new Error("Invalid offset beyond length");if(c>=l)for(i.push(i[0].slice(-l)),c-=l;c>=i[i.length-1].length;)i.push(i[i.length-1]),c-=i[i.length-1].length;i.push(i[0].slice(-l,-l+c))}}var f=xf(i);if(f.length!=n)throw new Error("Unexpected length: ".concat(f.length," != ").concat(n));return f}function $A(e){for(var t=[],r=0;r<e.length;){var n=e[r++],i=e[r]|e[r+1]<<8|e[r+2]<<16;r+=3,t.push(U_e(n,e.slice(r,r+i))),r+=i}if(r!==e.length)throw new Error("data is not a valid framed stream!");return xf(t)}function f0(e){for(var t=[],r=0;r<e.length;){var n=Math.min(e.length-r,268435455),i=new Uint8Array(4);t.push(i);var a=on(n),s=a.length;t.push(a),n<=60?(s++,t.push(new Uint8Array([n-1<<2]))):n<=256?(s+=2,t.push(new Uint8Array([240,n-1&255]))):n<=65536?(s+=3,t.push(new Uint8Array([244,n-1&255,n-1>>8&255]))):n<=16777216?(s+=4,t.push(new Uint8Array([248,n-1&255,n-1>>8&255,n-1>>16&255]))):n<=4294967296&&(s+=5,t.push(new Uint8Array([252,n-1&255,n-1>>8&255,n-1>>16&255,n-1>>>24&255]))),t.push(e.slice(r,r+n)),s+=n,i[0]=0,i[1]=s&255,i[2]=s>>8&255,i[3]=s>>16&255,r+=n}return xf(t)}function zC(e,t){var r=new Uint8Array(32),n=bw(r),i=12,a=0;switch(r[0]=5,e.t){case"n":r[1]=2,O_e(r,i,e.v),a|=1,i+=16;break;case"b":r[1]=6,n.setFloat64(i,e.v?1:0,!0),a|=2,i+=8;break;case"s":if(t.indexOf(e.v)==-1)throw new Error("Value ".concat(e.v," missing from SST!"));r[1]=3,n.setUint32(i,t.indexOf(e.v),!0),a|=8,i+=4;break;default:throw"unsupported cell type "+e.t}return n.setUint32(8,a,!0),r.slice(0,i)}function VC(e,t){var r=new Uint8Array(32),n=bw(r),i=12,a=0;switch(r[0]=3,e.t){case"n":r[2]=2,n.setFloat64(i,e.v,!0),a|=32,i+=8;break;case"b":r[2]=6,n.setFloat64(i,e.v?1:0,!0),a|=32,i+=8;break;case"s":if(t.indexOf(e.v)==-1)throw new Error("Value ".concat(e.v," missing from SST!"));r[2]=3,n.setUint32(i,t.indexOf(e.v),!0),a|=16,i+=4;break;default:throw"unsupported cell type "+e.t}return n.setUint32(4,a,!0),r.slice(0,i)}function zu(e){var t=ia(e);return L1(t[1][0].data)}function N_e(e,t,r){var n,i,a,s;if(!((n=e[6])!=null&&n[0])||!((i=e[7])!=null&&i[0]))throw"Mutation only works on post-BNC storages!";var o=((s=(a=e[8])==null?void 0:a[0])==null?void 0:s.data)&&Q0(e[8][0].data)>0||!1;if(o)throw"Math only works with normal offsets";for(var l=0,c=bw(e[7][0].data),f=0,h=[],p=bw(e[4][0].data),g=0,y=[],m=0;m<t.length;++m){if(t[m]==null){c.setUint16(m*2,65535,!0),p.setUint16(m*2,65535);continue}c.setUint16(m*2,f,!0),p.setUint16(m*2,g,!0);var w,b;switch(typeof t[m]){case"string":w=zC({t:"s",v:t[m]},r),b=VC({t:"s",v:t[m]},r);break;case"number":w=zC({t:"n",v:t[m]},r),b=VC({t:"n",v:t[m]},r);break;case"boolean":w=zC({t:"b",v:t[m]},r),b=VC({t:"b",v:t[m]},r);break;default:throw new Error("Unsupported value "+t[m])}h.push(w),f+=w.length,y.push(b),g+=b.length,++l}for(e[2][0].data=on(l);m<e[7][0].data.length/2;++m)c.setUint16(m*2,65535,!0),p.setUint16(m*2,65535,!0);return e[6][0].data=xf(h),e[3][0].data=xf(y),l}function L_e(e,t){if(!t||!t.numbers)throw new Error("Must pass a `numbers` option -- check the README");var r=e.Sheets[e.SheetNames[0]];e.SheetNames.length>1&&console.error("The Numbers writer currently writes only the first table");var n=ko(r["!ref"]);n.s.r=n.s.c=0;var i=!1;n.e.c>9&&(i=!0,n.e.c=9),n.e.r>49&&(i=!0,n.e.r=49),i&&console.error("The Numbers writer is currently limited to ".concat(qi(n)));var a=Bw(r,{range:n,header:1}),s=["~Sh33tJ5~"];a.forEach(function(j){return j.forEach(function(K){typeof K=="string"&&s.push(K)})});var o={},l=[],c=Bn.read(t.numbers,{type:"base64"});c.FileIndex.map(function(j,K){return[j,c.FullPaths[K]]}).forEach(function(j){var K=j[0],q=j[1];if(K.type==2&&K.name.match(/\.iwa/)){var re=K.content,he=$A(re),Be=YA(he);Be.forEach(function(ae){l.push(ae.id),o[ae.id]={deps:[],location:q,type:Q0(ae.messages[0].meta[1][0].data)}})}}),l.sort(function(j,K){return j-K});var f=l.filter(function(j){return j>1}).map(function(j){return[j,on(j)]});c.FileIndex.map(function(j,K){return[j,c.FullPaths[K]]}).forEach(function(j){var K=j[0];if(j[1],!!K.name.match(/\.iwa/)){var q=YA($A(K.content));q.forEach(function(re){re.messages.forEach(function(he){f.forEach(function(Be){re.messages.some(function(ae){return Q0(ae.meta[1][0].data)!=11006&&T_e(ae.data,Be[1])})&&o[Be[0]].deps.push(re.id)})})})}});for(var h=Bn.find(c,o[1].location),p=YA($A(h.content)),g,y=0;y<p.length;++y){var m=p[y];m.id==1&&(g=m)}var w=zu(ia(g.messages[0].data)[1][0].data);for(h=Bn.find(c,o[w].location),p=YA($A(h.content)),y=0;y<p.length;++y)m=p[y],m.id==w&&(g=m);for(w=zu(ia(g.messages[0].data)[2][0].data),h=Bn.find(c,o[w].location),p=YA($A(h.content)),y=0;y<p.length;++y)m=p[y],m.id==w&&(g=m);for(w=zu(ia(g.messages[0].data)[2][0].data),h=Bn.find(c,o[w].location),p=YA($A(h.content)),y=0;y<p.length;++y)m=p[y],m.id==w&&(g=m);var b=ia(g.messages[0].data);{b[6][0].data=on(n.e.r+1),b[7][0].data=on(n.e.c+1);var E=zu(b[46][0].data),S=Bn.find(c,o[E].location),T=YA($A(S.content));{for(var D=0;D<T.length&&T[D].id!=E;++D);if(T[D].id!=E)throw"Bad ColumnRowUIDMapArchive";var k=ia(T[D].messages[0].data);k[1]=[],k[2]=[],k[3]=[];for(var P=0;P<=n.e.c;++P){var R=[];R[1]=R[2]=[{type:0,data:on(P+420690)}],k[1].push({type:2,data:ka(R)}),k[2].push({type:0,data:on(P)}),k[3].push({type:0,data:on(P)})}k[4]=[],k[5]=[],k[6]=[];for(var O=0;O<=n.e.r;++O)R=[],R[1]=R[2]=[{type:0,data:on(O+726270)}],k[4].push({type:2,data:ka(R)}),k[5].push({type:0,data:on(O)}),k[6].push({type:0,data:on(O)});T[D].messages[0].data=ka(k)}S.content=f0(u0(T)),S.size=S.content.length,delete b[46];var V=ia(b[4][0].data);{V[7][0].data=on(n.e.r+1);var I=ia(V[1][0].data),Q=zu(I[2][0].data);S=Bn.find(c,o[Q].location),T=YA($A(S.content));{if(T[0].id!=Q)throw"Bad HeaderStorageBucket";var W=ia(T[0].messages[0].data);for(O=0;O<a.length;++O){var J=ia(W[2][0].data);J[1][0].data=on(O),J[4][0].data=on(a[O].length),W[2][O]={type:W[2][0].type,data:ka(J)}}T[0].messages[0].data=ka(W)}S.content=f0(u0(T)),S.size=S.content.length;var fe=zu(V[2][0].data);S=Bn.find(c,o[fe].location),T=YA($A(S.content));{if(T[0].id!=fe)throw"Bad HeaderStorageBucket";for(W=ia(T[0].messages[0].data),P=0;P<=n.e.c;++P)J=ia(W[2][0].data),J[1][0].data=on(P),J[4][0].data=on(n.e.r+1),W[2][P]={type:W[2][0].type,data:ka(J)};T[0].messages[0].data=ka(W)}S.content=f0(u0(T)),S.size=S.content.length;var G=zu(V[4][0].data);(function(){for(var j=Bn.find(c,o[G].location),K=YA($A(j.content)),q,re=0;re<K.length;++re){var he=K[re];he.id==G&&(q=he)}var Be=ia(q.messages[0].data);{Be[3]=[];var ae=[];s.forEach(function(Fe,st){ae[1]=[{type:0,data:on(st)}],ae[2]=[{type:0,data:on(1)}],ae[3]=[{type:2,data:F_e(Fe)}],Be[3].push({type:2,data:ka(ae)})})}q.messages[0].data=ka(Be);var be=u0(K),ke=f0(be);j.content=ke,j.size=j.content.length})();var se=ia(V[3][0].data);{var ge=se[1][0];delete se[2];var ye=ia(ge.data);{var _e=zu(ye[2][0].data);(function(){for(var j=Bn.find(c,o[_e].location),K=YA($A(j.content)),q,re=0;re<K.length;++re){var he=K[re];he.id==_e&&(q=he)}var Be=ia(q.messages[0].data);{delete Be[6],delete se[7];var ae=new Uint8Array(Be[5][0].data);Be[5]=[];for(var be=0,ke=0;ke<=n.e.r;++ke){var Fe=ia(ae);be+=N_e(Fe,a[ke],s),Fe[1][0].data=on(ke),Be[5].push({data:ka(Fe),type:2})}Be[1]=[{type:0,data:on(n.e.c+1)}],Be[2]=[{type:0,data:on(n.e.r+1)}],Be[3]=[{type:0,data:on(be)}],Be[4]=[{type:0,data:on(n.e.r+1)}]}q.messages[0].data=ka(Be);var st=u0(K),Ge=f0(st);j.content=Ge,j.size=j.content.length})()}ge.data=ka(ye)}V[3][0].data=ka(se)}b[4][0].data=ka(V)}g.messages[0].data=ka(b);var Z=u0(p),L=f0(Z);return h.content=L,h.size=h.content.length,c}function D_e(e){return function(r){for(var n=0;n!=e.length;++n){var i=e[n];r[i[0]]===void 0&&(r[i[0]]=i[1]),i[2]==="n"&&(r[i[0]]=Number(r[i[0]]))}}}function _F(e){D_e([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(e)}function I_e(e,t){return t.bookType=="ods"?OV(e,t):t.bookType=="numbers"?L_e(e,t):t.bookType=="xlsb"?M_e(e,t):P_e(e,t)}function M_e(e,t){S0=1024,e&&!e.SSF&&(e.SSF=ao(Ei)),e&&e.SSF&&(Rx(),Qx(e.SSF),t.revssf=jx(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,n1?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var r=t.bookType=="xlsb"?"bin":"xml",n=fV.indexOf(t.bookType)>-1,i=jz();_F(t=t||{});var a=cF(),s="",o=0;if(t.cellXfs=[],Of(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),s="docProps/core.xml",xr(a,s,Vz(e.Props,t)),i.coreprops.push(s),An(t.rels,2,s,qr.CORE_PROPS),s="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{for(var l=[],c=0;c<e.SheetNames.length;++c)(e.Workbook.Sheets[c]||{}).Hidden!=2&&l.push(e.SheetNames[c]);e.Props.SheetNames=l}for(e.Props.Worksheets=e.Props.SheetNames.length,xr(a,s,qz(e.Props)),i.extprops.push(s),An(t.rels,3,s,qr.EXT_PROPS),e.Custprops!==e.Props&&$a(e.Custprops||{}).length>0&&(s="docProps/custom.xml",xr(a,s,Wz(e.Custprops)),i.custprops.push(s),An(t.rels,4,s,qr.CUST_PROPS)),o=1;o<=e.SheetNames.length;++o){var f={"!id":{}},h=e.Sheets[e.SheetNames[o-1]],p=(h||{})["!type"]||"sheet";switch(p){case"chart":default:s="xl/worksheets/sheet"+o+"."+r,xr(a,s,QEe(o-1,s,t,e,f)),i.sheets.push(s),An(t.wbrels,-1,"worksheets/sheet"+o+"."+r,qr.WS[0])}if(h){var g=h["!comments"],y=!1,m="";g&&g.length>0&&(m="xl/comments"+o+"."+r,xr(a,m,HEe(g,m)),i.comments.push(m),An(f,-1,"../comments"+o+"."+r,qr.CMNT),y=!0),h["!legacy"]&&y&&xr(a,"xl/drawings/vmlDrawing"+o+".vml",cV(o,h["!comments"])),delete h["!comments"],delete h["!legacy"]}f["!id"].rId1&&xr(a,Kz(s),P0(f))}return t.Strings!=null&&t.Strings.length>0&&(s="xl/sharedStrings."+r,xr(a,s,jEe(t.Strings,s,t)),i.strs.push(s),An(t.wbrels,-1,"sharedStrings."+r,qr.SST)),s="xl/workbook."+r,xr(a,s,kEe(e,s)),i.workbooks.push(s),An(t.rels,1,s,qr.WB),s="xl/theme/theme1.xml",xr(a,s,AV(e.Themes,t)),i.themes.push(s),An(t.wbrels,-1,"theme/theme1.xml",qr.THEME),s="xl/styles."+r,xr(a,s,REe(e,s,t)),i.styles.push(s),An(t.wbrels,-1,"styles."+r,qr.STY),e.vbaraw&&n&&(s="xl/vbaProject.bin",xr(a,s,e.vbaraw),i.vba.push(s),An(t.wbrels,-1,"vbaProject.bin",qr.VBA)),s="xl/metadata."+r,xr(a,s,KEe(s)),i.metadata.push(s),An(t.wbrels,-1,"metadata."+r,qr.XLMETA),xr(a,"[Content_Types].xml",Hz(i,t)),xr(a,"_rels/.rels",P0(t.rels)),xr(a,"xl/_rels/workbook."+r+".rels",P0(t.wbrels)),delete t.revssf,delete t.ssf,a}function P_e(e,t){S0=1024,e&&!e.SSF&&(e.SSF=ao(Ei)),e&&e.SSF&&(Rx(),Qx(e.SSF),t.revssf=jx(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,n1?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var r="xml",n=fV.indexOf(t.bookType)>-1,i=jz();_F(t=t||{});var a=cF(),s="",o=0;if(t.cellXfs=[],Of(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),s="docProps/core.xml",xr(a,s,Vz(e.Props,t)),i.coreprops.push(s),An(t.rels,2,s,qr.CORE_PROPS),s="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{for(var l=[],c=0;c<e.SheetNames.length;++c)(e.Workbook.Sheets[c]||{}).Hidden!=2&&l.push(e.SheetNames[c]);e.Props.SheetNames=l}e.Props.Worksheets=e.Props.SheetNames.length,xr(a,s,qz(e.Props)),i.extprops.push(s),An(t.rels,3,s,qr.EXT_PROPS),e.Custprops!==e.Props&&$a(e.Custprops||{}).length>0&&(s="docProps/custom.xml",xr(a,s,Wz(e.Custprops)),i.custprops.push(s),An(t.rels,4,s,qr.CUST_PROPS));var f=["SheetJ5"];for(t.tcid=0,o=1;o<=e.SheetNames.length;++o){var h={"!id":{}},p=e.Sheets[e.SheetNames[o-1]],g=(p||{})["!type"]||"sheet";switch(g){case"chart":default:s="xl/worksheets/sheet"+o+"."+r,xr(a,s,xV(o-1,t,e,h)),i.sheets.push(s),An(t.wbrels,-1,"worksheets/sheet"+o+"."+r,qr.WS[0])}if(p){var y=p["!comments"],m=!1,w="";if(y&&y.length>0){var b=!1;y.forEach(function(E){E[1].forEach(function(S){S.T==!0&&(b=!0)})}),b&&(w="xl/threadedComments/threadedComment"+o+"."+r,xr(a,w,dBe(y,f,t)),i.threadedcomments.push(w),An(h,-1,"../threadedComments/threadedComment"+o+"."+r,qr.TCMNT)),w="xl/comments"+o+"."+r,xr(a,w,uV(y)),i.comments.push(w),An(h,-1,"../comments"+o+"."+r,qr.CMNT),m=!0}p["!legacy"]&&m&&xr(a,"xl/drawings/vmlDrawing"+o+".vml",cV(o,p["!comments"])),delete p["!comments"],delete p["!legacy"]}h["!id"].rId1&&xr(a,Kz(s),P0(h))}return t.Strings!=null&&t.Strings.length>0&&(s="xl/sharedStrings."+r,xr(a,s,rV(t.Strings,t)),i.strs.push(s),An(t.wbrels,-1,"sharedStrings."+r,qr.SST)),s="xl/workbook."+r,xr(a,s,CV(e)),i.workbooks.push(s),An(t.rels,1,s,qr.WB),s="xl/theme/theme1.xml",xr(a,s,AV(e.Themes,t)),i.themes.push(s),An(t.wbrels,-1,"theme/theme1.xml",qr.THEME),s="xl/styles."+r,xr(a,s,sV(e,t)),i.styles.push(s),An(t.wbrels,-1,"styles."+r,qr.STY),e.vbaraw&&n&&(s="xl/vbaProject.bin",xr(a,s,e.vbaraw),i.vba.push(s),An(t.wbrels,-1,"vbaProject.bin",qr.VBA)),s="xl/metadata."+r,xr(a,s,lV()),i.metadata.push(s),An(t.wbrels,-1,"metadata."+r,qr.XLMETA),f.length>1&&(s="xl/persons/person.xml",xr(a,s,gBe(f)),i.people.push(s),An(t.wbrels,-1,"persons/person.xml",qr.PEOPLE)),xr(a,"[Content_Types].xml",Hz(i,t)),xr(a,"_rels/.rels",P0(t.rels)),xr(a,"xl/_rels/workbook."+r+".rels",P0(t.wbrels)),delete t.revssf,delete t.ssf,a}function k_e(e,t){var r="";switch((t||{}).type||"base64"){case"buffer":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":r=Xc(e.slice(0,12));break;case"binary":r=e;break;case"array":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];default:throw new Error("Unrecognized type "+(t&&t.type||"undefined"))}return[r.charCodeAt(0),r.charCodeAt(1),r.charCodeAt(2),r.charCodeAt(3),r.charCodeAt(4),r.charCodeAt(5),r.charCodeAt(6),r.charCodeAt(7)]}function UV(e,t){switch(t.type){case"base64":case"binary":break;case"buffer":case"array":t.type="";break;case"file":return yv(t.file,Bn.write(e,{type:en?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");default:throw new Error("Unrecognized type "+t.type)}return Bn.write(e,t)}function Q_e(e,t){var r=ao(t||{}),n=I_e(e,r);return R_e(n,r)}function R_e(e,t){var r={},n=en?"nodebuffer":typeof Uint8Array<"u"?"array":"string";if(t.compression&&(r.compression="DEFLATE"),t.password)r.type=n;else switch(t.type){case"base64":r.type="base64";break;case"binary":r.type="string";break;case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");case"buffer":case"file":r.type=n;break;default:throw new Error("Unrecognized type "+t.type)}var i=e.FullPaths?Bn.write(e,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[r.type]||r.type,compression:!!t.compression}):e.generate(r);if(typeof Deno<"u"&&typeof i=="string"){if(t.type=="binary"||t.type=="base64")return i;i=new Uint8Array(kx(i))}return t.password&&typeof encrypt_agile<"u"?UV(encrypt_agile(i,t.password),t):t.type==="file"?yv(t.file,i):t.type=="string"?Zp(i):i}function j_e(e,t){var r=t||{},n=n_e(e,r);return UV(n,r)}function Pl(e,t,r){r||(r="");var n=r+e;switch(t.type){case"base64":return T1(U1(n));case"binary":return U1(n);case"string":return e;case"file":return yv(t.file,n,"utf8");case"buffer":return en?ou(n,"utf8"):typeof TextEncoder<"u"?new TextEncoder().encode(n):Pl(n,{type:"binary"}).split("").map(function(i){return i.charCodeAt(0)})}throw new Error("Unrecognized type "+t.type)}function H_e(e,t){switch(t.type){case"base64":return T1(e);case"binary":return e;case"string":return e;case"file":return yv(t.file,e,"binary");case"buffer":return en?ou(e,"binary"):e.split("").map(function(r){return r.charCodeAt(0)})}throw new Error("Unrecognized type "+t.type)}function by(e,t){switch(t.type){case"string":case"base64":case"binary":for(var r="",n=0;n<e.length;++n)r+=String.fromCharCode(e[n]);return t.type=="base64"?T1(r):t.type=="string"?Zp(r):r;case"file":return yv(t.file,e);case"buffer":return e;default:throw new Error("Unrecognized type "+t.type)}}function NV(e,t){pwe(),SEe(e);var r=ao(t||{});if(r.cellStyles&&(r.cellNF=!0,r.sheetStubs=!0),r.type=="array"){r.type="binary";var n=NV(e,r);return r.type="array",kx(n)}var i=0;if(r.sheet&&(typeof r.sheet=="number"?i=r.sheet:i=e.SheetNames.indexOf(r.sheet),!e.SheetNames[i]))throw new Error("Sheet not found: "+r.sheet+" : "+typeof r.sheet);switch(r.bookType||"xlsb"){case"xml":case"xlml":return Pl(t_e(e,r),r);case"slk":case"sylk":return Pl(Cbe.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"htm":case"html":return Pl(SV(e.Sheets[e.SheetNames[i]],r),r);case"txt":return H_e(LV(e.Sheets[e.SheetNames[i]],r),r);case"csv":return Pl(SF(e.Sheets[e.SheetNames[i]],r),r,"\uFEFF");case"dif":return Pl(Ebe.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"dbf":return by(Bbe.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"prn":return Pl(_be.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"rtf":return Pl(Lbe.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"eth":return Pl(tV.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"fods":return Pl(OV(e,r),r);case"wk1":return by(NM.sheet_to_wk1(e.Sheets[e.SheetNames[i]],r),r);case"wk3":return by(NM.book_to_wk3(e,r),r);case"biff2":r.biff||(r.biff=2);case"biff3":r.biff||(r.biff=3);case"biff4":return r.biff||(r.biff=4),by(_V(e,r),r);case"biff5":r.biff||(r.biff=5);case"biff8":case"xla":case"xls":return r.biff||(r.biff=8),j_e(e,r);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return Q_e(e,r);default:throw new Error("Unrecognized bookType |"+r.bookType+"|")}}function K_e(e){if(!e.bookType){var t={xls:"biff8",htm:"html",slk:"sylk",socialcalc:"eth",Sh33tJS:"WTF"},r=e.file.slice(e.file.lastIndexOf(".")).toLowerCase();r.match(/^\.[a-z]+$/)&&(e.bookType=r.slice(1)),e.bookType=t[e.bookType]||e.bookType}}function z_e(e,t,r){var n={};return n.type="file",n.file=t,K_e(n),NV(e,n)}function V_e(e,t,r,n,i,a,s,o){var l=Wa(r),c=o.defval,f=o.raw||!Object.prototype.hasOwnProperty.call(o,"raw"),h=!0,p=i===1?[]:{};if(i!==1)if(Object.defineProperty)try{Object.defineProperty(p,"__rowNum__",{value:r,enumerable:!1})}catch{p.__rowNum__=r}else p.__rowNum__=r;if(!s||e[r])for(var g=t.s.c;g<=t.e.c;++g){var y=s?e[r][g]:e[n[g]+l];if(y===void 0||y.t===void 0){if(c===void 0)continue;a[g]!=null&&(p[a[g]]=c);continue}var m=y.v;switch(y.t){case"z":if(m==null)break;continue;case"e":m=m==0?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+y.t)}if(a[g]!=null){if(m==null)if(y.t=="e"&&m===null)p[a[g]]=null;else if(c!==void 0)p[a[g]]=c;else if(f&&m===null)p[a[g]]=null;else continue;else p[a[g]]=f&&(y.t!=="n"||y.t==="n"&&o.rawNumbers!==!1)?m:Jc(y,m,o);m!=null&&(h=!1)}}return{row:p,isempty:h}}function Bw(e,t){if(e==null||e["!ref"]==null)return[];var r={t:"n",v:0},n=0,i=1,a=[],s=0,o="",l={s:{r:0,c:0},e:{r:0,c:0}},c=t||{},f=c.range!=null?c.range:e["!ref"];switch(c.header===1?n=1:c.header==="A"?n=2:Array.isArray(c.header)?n=3:c.header==null&&(n=0),typeof f){case"string":l=Vn(f);break;case"number":l=Vn(e["!ref"]),l.s.r=f;break;default:l=f}n>0&&(i=0);var h=Wa(l.s.r),p=[],g=[],y=0,m=0,w=Array.isArray(e),b=l.s.r,E=0,S={};w&&!e[b]&&(e[b]=[]);var T=c.skipHidden&&e["!cols"]||[],D=c.skipHidden&&e["!rows"]||[];for(E=l.s.c;E<=l.e.c;++E)if(!(T[E]||{}).hidden)switch(p[E]=fs(E),r=w?e[b][E]:e[p[E]+h],n){case 1:a[E]=E-l.s.c;break;case 2:a[E]=p[E];break;case 3:a[E]=c.header[E-l.s.c];break;default:if(r==null&&(r={w:"__EMPTY",t:"s"}),o=s=Jc(r,null,c),m=S[s]||0,!m)S[s]=1;else{do o=s+"_"+m++;while(S[o]);S[s]=m,S[o]=1}a[E]=o}for(b=l.s.r+i;b<=l.e.r;++b)if(!(D[b]||{}).hidden){var k=V_e(e,l,b,p,n,a,w,c);(k.isempty===!1||(n===1?c.blankrows!==!1:c.blankrows))&&(g[y++]=k.row)}return g.length=y,g}var RM=/"/g;function G_e(e,t,r,n,i,a,s,o){for(var l=!0,c=[],f="",h=Wa(r),p=t.s.c;p<=t.e.c;++p)if(n[p]){var g=o.dense?(e[r]||[])[p]:e[n[p]+h];if(g==null)f="";else if(g.v!=null){l=!1,f=""+(o.rawNumbers&&g.t=="n"?g.v:Jc(g,null,o));for(var y=0,m=0;y!==f.length;++y)if((m=f.charCodeAt(y))===i||m===a||m===34||o.forceQuotes){f='"'+f.replace(RM,'""')+'"';break}f=="ID"&&(f='"ID"')}else g.f!=null&&!g.F?(l=!1,f="="+g.f,f.indexOf(",")>=0&&(f='"'+f.replace(RM,'""')+'"')):f="";c.push(f)}return o.blankrows===!1&&l?null:c.join(s)}function SF(e,t){var r=[],n=t??{};if(e==null||e["!ref"]==null)return"";var i=Vn(e["!ref"]),a=n.FS!==void 0?n.FS:",",s=a.charCodeAt(0),o=n.RS!==void 0?n.RS:`
`,l=o.charCodeAt(0),c=new RegExp((a=="|"?"\\|":a)+"+$"),f="",h=[];n.dense=Array.isArray(e);for(var p=n.skipHidden&&e["!cols"]||[],g=n.skipHidden&&e["!rows"]||[],y=i.s.c;y<=i.e.c;++y)(p[y]||{}).hidden||(h[y]=fs(y));for(var m=0,w=i.s.r;w<=i.e.r;++w)(g[w]||{}).hidden||(f=G_e(e,i,w,h,s,l,a,n),f!=null&&(n.strip&&(f=f.replace(c,"")),(f||n.blankrows!==!1)&&r.push((m++?o:"")+f)));return delete n.dense,r.join("")}function LV(e,t){t||(t={}),t.FS="	",t.RS=`
`;var r=SF(e,t);return r}function q_e(e){var t="",r,n="";if(e==null||e["!ref"]==null)return[];var i=Vn(e["!ref"]),a="",s=[],o,l=[],c=Array.isArray(e);for(o=i.s.c;o<=i.e.c;++o)s[o]=fs(o);for(var f=i.s.r;f<=i.e.r;++f)for(a=Wa(f),o=i.s.c;o<=i.e.c;++o)if(t=s[o]+a,r=c?(e[f]||[])[o]:e[t],n="",r!==void 0){if(r.F!=null){if(t=r.F,!r.f)continue;n=r.f,t.indexOf(":")==-1&&(t=t+":"+t)}if(r.f!=null)n=r.f;else{if(r.t=="z")continue;if(r.t=="n"&&r.v!=null)n=""+r.v;else if(r.t=="b")n=r.v?"TRUE":"FALSE";else if(r.w!==void 0)n="'"+r.w;else{if(r.v===void 0)continue;r.t=="s"?n="'"+r.v:n=""+r.v}}l[l.length]=t+"="+n}return l}function DV(e,t,r){var n=r||{},i=+!n.skipHeader,a=e||{},s=0,o=0;if(a&&n.origin!=null)if(typeof n.origin=="number")s=n.origin;else{var l=typeof n.origin=="string"?Ea(n.origin):n.origin;s=l.r,o=l.c}var c,f={s:{c:0,r:0},e:{c:o,r:s+t.length-1+i}};if(a["!ref"]){var h=Vn(a["!ref"]);f.e.c=Math.max(f.e.c,h.e.c),f.e.r=Math.max(f.e.r,h.e.r),s==-1&&(s=h.e.r+1,f.e.r=s+t.length-1+i)}else s==-1&&(s=0,f.e.r=t.length-1+i);var p=n.header||[],g=0;t.forEach(function(m,w){$a(m).forEach(function(b){(g=p.indexOf(b))==-1&&(p[g=p.length]=b);var E=m[b],S="z",T="",D=hn({c:o+g,r:s+w+i});c=D1(a,D),E&&typeof E=="object"&&!(E instanceof Date)?a[D]=E:(typeof E=="number"?S="n":typeof E=="boolean"?S="b":typeof E=="string"?S="s":E instanceof Date?(S="d",n.cellDates||(S="n",E=io(E)),T=n.dateNF||Ei[14]):E===null&&n.nullError&&(S="e",E=0),c?(c.t=S,c.v=E,delete c.w,delete c.R,T&&(c.z=T)):a[D]=c={t:S,v:E},T&&(c.z=T))})}),f.e.c=Math.max(f.e.c,o+p.length-1);var y=Wa(s);if(i)for(g=0;g<p.length;++g)a[fs(g+o)+y]={t:"s",v:p[g]};return a["!ref"]=qi(f),a}function W_e(e,t){return DV(null,e,t)}function D1(e,t,r){if(typeof t=="string"){if(Array.isArray(e)){var n=Ea(t);return e[n.r]||(e[n.r]=[]),e[n.r][n.c]||(e[n.r][n.c]={t:"z"})}return e[t]||(e[t]={t:"z"})}return typeof t!="number"?D1(e,hn(t)):D1(e,hn({r:t,c:r||0}))}function Y_e(e,t){if(typeof t=="number"){if(t>=0&&e.SheetNames.length>t)return t;throw new Error("Cannot find sheet # "+t)}else if(typeof t=="string"){var r=e.SheetNames.indexOf(t);if(r>-1)return r;throw new Error("Cannot find sheet name |"+t+"|")}else throw new Error("Cannot find sheet |"+t+"|")}function $_e(){return{SheetNames:[],Sheets:{}}}function X_e(e,t,r,n){var i=1;if(!r)for(;i<=65535&&e.SheetNames.indexOf(r="Sheet"+i)!=-1;++i,r=void 0);if(!r||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(n&&e.SheetNames.indexOf(r)>=0){var a=r.match(/(^.*?)(\d+)$/);i=a&&+a[2]||0;var s=a&&a[1]||r;for(++i;i<=65535&&e.SheetNames.indexOf(r=s+i)!=-1;++i);}if(BV(r),e.SheetNames.indexOf(r)>=0)throw new Error("Worksheet with name |"+r+"| already exists!");return e.SheetNames.push(r),e.Sheets[r]=t,r}function J_e(e,t,r){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var n=Y_e(e,t);switch(e.Workbook.Sheets[n]||(e.Workbook.Sheets[n]={}),r){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+r)}e.Workbook.Sheets[n].Hidden=r}function Z_e(e,t){return e.z=t,e}function IV(e,t,r){return t?(e.l={Target:t},r&&(e.l.Tooltip=r)):delete e.l,e}function e4e(e,t,r){return IV(e,"#"+t,r)}function t4e(e,t,r){e.c||(e.c=[]),e.c.push({t,a:r||"SheetJS"})}function r4e(e,t,r,n){for(var i=typeof t!="string"?t:Vn(t),a=typeof t=="string"?t:qi(t),s=i.s.r;s<=i.e.r;++s)for(var o=i.s.c;o<=i.e.c;++o){var l=D1(e,s,o);l.t="n",l.F=a,delete l.v,s==i.s.r&&o==i.s.c&&(l.f=r,n&&(l.D=!0))}return e}var GC={encode_col:fs,encode_row:Wa,encode_cell:hn,encode_range:qi,decode_col:pF,decode_row:gF,split_cell:pxe,decode_cell:Ea,decode_range:ko,format_cell:Jc,sheet_add_aoa:Iz,sheet_add_json:DV,sheet_add_dom:FV,aoa_to_sheet:wg,json_to_sheet:W_e,table_to_sheet:TV,table_to_book:E_e,sheet_to_csv:SF,sheet_to_txt:LV,sheet_to_json:Bw,sheet_to_html:SV,sheet_to_formulae:q_e,sheet_to_row_object_array:Bw,sheet_get_cell:D1,book_new:$_e,book_append_sheet:X_e,book_set_sheet_visibility:J_e,cell_set_number_format:Z_e,cell_set_hyperlink:IV,cell_set_internal_link:e4e,cell_add_comment:t4e,sheet_set_array_formula:r4e,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};const n4e=Os.TRIAJE;function i4e(){const[e,t]=N.useState([]),[r,n]=N.useState("todos"),[i,a]=N.useState("todos"),[s,o]=N.useState(!1),l=N.useRef(null),c=async()=>{try{o(!0);const w=await fetch(`${n4e}/hoy`);if(!w.ok)throw new Error(`Error HTTP ${w.status}`);const b=await w.json();t(Array.isArray(b)?b:b.pacientes||[])}catch(w){console.error("Error al cargar reportes:",w),t([])}finally{o(!1)}};N.useEffect(()=>{c()},[]);const f=N.useMemo(()=>e.filter(w=>{const b=r==="todos"||(w.area||"").toLowerCase().includes(r.toLowerCase()),E=i==="todos"||(w.color||"").toLowerCase()===i.toLowerCase();return b&&E}),[e,r,i]),h=Object.entries(f.reduce((w,b)=>(w[b.area||"Sin área"]=(w[b.area||"Sin área"]||0)+1,w),{})).map(([w,b])=>({area:w,cantidad:b})),p=Object.entries(f.reduce((w,b)=>(w[b.color||"Sin color"]=(w[b.color||"Sin color"]||0)+1,w),{})).map(([w,b])=>({color:w,cantidad:b})),g=Object.entries(f.reduce((w,b)=>{const E=b.fecha_registro?.split("T")[0];return E&&(w[E]=(w[E]||0)+1),w},{})).map(([w,b])=>({fecha:w,cantidad:b})).sort((w,b)=>new Date(w.fecha)-new Date(b.fecha)),y={rojo:"#ef4444",naranja:"#f97316",amarillo:"#facc15",verde:"#22c55e",blanco:"#d1d5db"},m=async w=>{if(l.current){if(w==="png"||w==="pdf"){const b=await Ix(l.current,{scale:2}),E=b.toDataURL("image/png");if(w==="png"){const S=document.createElement("a");S.href=E,S.download="reporte_triaje.png",S.click()}else{const S=new jt("l","mm","a4"),T=280,D=b.height*T/b.width;S.addImage(E,"PNG",10,10,T,D);let k=D+20;S.setFontSize(12),S.text("Detalle de Pacientes Atendidos",14,k),k+=8,S.setFontSize(9),f.forEach((P,R)=>{k>180&&(S.addPage(),k=20),S.text(`${R+1}. ${P.nombre} | DNI: ${P.dni} | Área: ${P.area||"—"} | Color: ${P.color||"—"} | Fecha: ${P.fecha_registro?.split("T")[0]||"—"}`,14,k),k+=6}),S.save("reporte_triaje.pdf")}}if(w==="excel"){const b=GC.json_to_sheet(f.map(S=>({DNI:S.dni,Nombre:S.nombre,Teléfono:S.telefono,Área:S.area,Color:S.color,Fecha:S.fecha_registro?.split("T")[0]}))),E=GC.book_new();GC.book_append_sheet(E,b,"Reporte Triaje"),z_e(E,"reporte_triaje.xlsx")}}};return F.jsxs("div",{className:"reportes-container",children:[F.jsx("h1",{children:"Reportes de Triaje"}),F.jsxs("div",{className:"filtros",children:[F.jsxs("div",{children:[F.jsx("label",{children:"Área:"}),F.jsxs("select",{value:r,onChange:w=>n(w.target.value),children:[F.jsx("option",{value:"todos",children:"Todas"}),F.jsx("option",{value:"Medicina General",children:"Medicina General"}),F.jsx("option",{value:"Obstetricia",children:"Obstetricia"}),F.jsx("option",{value:"Nutricionista",children:"Nutricionista"}),F.jsx("option",{value:"Pediatría",children:"Pediatría"})]})]}),F.jsxs("div",{children:[F.jsx("label",{children:"Color:"}),F.jsxs("select",{value:i,onChange:w=>a(w.target.value),children:[F.jsx("option",{value:"todos",children:"Todos"}),F.jsx("option",{value:"rojo",children:"Rojo"}),F.jsx("option",{value:"naranja",children:"Naranja"}),F.jsx("option",{value:"amarillo",children:"Amarillo"}),F.jsx("option",{value:"verde",children:"Verde"}),F.jsx("option",{value:"blanco",children:"Blanco"})]})]}),F.jsx("button",{onClick:c,children:"Actualizar"}),F.jsxs("div",{className:"botones-descarga",children:[F.jsx("button",{onClick:()=>m("png"),children:"📷 PNG"}),F.jsx("button",{onClick:()=>m("pdf"),children:"📄 PDF"}),F.jsx("button",{onClick:()=>m("excel"),children:"📘 Excel"})]})]}),s&&F.jsx("p",{className:"loading",children:"Cargando datos..."}),F.jsxs("div",{ref:l,className:"graficos",children:[F.jsxs("div",{className:"grafico",children:[F.jsx("h4",{children:"Pacientes por Área"}),F.jsx(Hy,{width:"100%",height:250,children:F.jsxs(Hde,{data:h,children:[F.jsx(H2,{strokeDasharray:"3 3"}),F.jsx(z2,{dataKey:"area"}),F.jsx(G2,{}),F.jsx(zy,{}),F.jsx(LH,{dataKey:"cantidad",fill:"#3b82f6"})]})})]}),F.jsxs("div",{className:"grafico",children:[F.jsx("h4",{children:"Distribución por Color"}),F.jsx(Hy,{width:"100%",height:250,children:F.jsxs(Jde,{children:[F.jsx(SH,{data:p,dataKey:"cantidad",nameKey:"color",outerRadius:90,label:!0,children:p.map((w,b)=>F.jsx(hv,{fill:y[w.color]||"#ccc"},b))}),F.jsx(zy,{})]})})]}),F.jsxs("div",{className:"grafico",children:[F.jsx("h4",{children:"Evolución de Citas Atendidas por Día"}),F.jsx(Hy,{width:"100%",height:250,children:F.jsxs(o9,{data:g,children:[F.jsx(H2,{strokeDasharray:"3 3"}),F.jsx(z2,{dataKey:"fecha"}),F.jsx(G2,{allowDecimals:!1}),F.jsx(zy,{formatter:w=>[`${w} citas`,"Cantidad"],labelFormatter:w=>`📅 ${w}`}),F.jsx(V3,{type:"monotone",dataKey:"cantidad",stroke:"#10b981",strokeWidth:3,dot:{r:4},activeDot:{r:7,stroke:"#065f46",strokeWidth:2},animationDuration:1e3})]})})]})]}),F.jsxs("table",{className:"tabla",children:[F.jsx("thead",{children:F.jsxs("tr",{children:[F.jsx("th",{children:"Fecha"}),F.jsx("th",{children:"DNI"}),F.jsx("th",{children:"Nombre"}),F.jsx("th",{children:"Teléfono"}),F.jsx("th",{children:"Área"}),F.jsx("th",{children:"Color"})]})}),F.jsx("tbody",{children:f.length>0?f.map((w,b)=>F.jsxs("tr",{children:[F.jsx("td",{children:w.fecha_registro?.split("T")[0]||"—"}),F.jsx("td",{children:w.dni}),F.jsx("td",{children:w.nombre}),F.jsx("td",{children:w.telefono}),F.jsx("td",{children:w.area}),F.jsx("td",{children:F.jsx("span",{className:`badge badge-${w.color}`,children:(w.color||"—").toUpperCase()})})]},b)):F.jsx("tr",{children:F.jsx("td",{colSpan:"6",style:{textAlign:"center",padding:"1rem"},children:"No hay datos disponibles"})})})]})]})}const jM=Os.TRIAJE,HM="c067dbaad4659c8dfe9f24adf25b5e6d8e34ca175a6f0c9451534bf6b521aeba";function a4e(){const[e,t]=N.useState(""),[r,n]=N.useState(""),[i,a]=N.useState(""),[s,o]=N.useState(""),[l,c]=N.useState(""),[f,h]=N.useState(""),[p,g]=N.useState(""),[y,m]=N.useState(""),[w,b]=N.useState(""),[E,S]=N.useState("blanco"),[T,D]=N.useState(""),[k,P]=N.useState(""),[R,O]=N.useState(!1),[V,I]=N.useState(!1),[Q,W]=N.useState(!1),[J,fe]=N.useState(""),G=async()=>{if(e.length!==8){P("DNI inválido.");return}O(!0),P(""),D("");try{const Z=await(await fetch("https://apiperu.dev/api/dni",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${HM}`},body:JSON.stringify({dni:e})})).json();if(Z.success&&Z.data){const L=`${Z.data.nombres} ${Z.data.apellido_paterno} ${Z.data.apellido_materno}`;n(L),I(!0)}else P("DNI no encontrado en RENIEC.")}catch{P("Error al conectar.")}finally{O(!1)}},se=async()=>{if(J)try{const _e=new FormData;if(_e.append("dni",e),_e.append("nombre",J),!(await fetch(`${jM}/ingreso_directo`,{method:"POST",body:_e})).ok)throw new Error;D("🚨 Ingreso directo registrado en emergencia"),W(!1),t(""),fe("")}catch{P("No se pudo registrar el ingreso directo.")}},ge=async()=>{O(!0),P("");try{const Z=await(await fetch("https://apiperu.dev/api/dni",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${HM}`},body:JSON.stringify({dni:e})})).json();if(Z.success&&Z.data){const L=`${Z.data.nombres} ${Z.data.apellido_paterno} ${Z.data.apellido_materno}`;fe(L)}else P("No existe en RENIEC.")}catch{P("Error de red.")}finally{O(!1)}},ye=async _e=>{_e.preventDefault();const Z=new FormData;Z.append("dni",e),Z.append("nombre",r),Z.append("telefono",i),Z.append("sintomas",s),Z.append("area",l),Z.append("temperatura",f),Z.append("presion",p),Z.append("frecuencia",y),Z.append("saturacion",w),Z.append("color",E);try{const L=await fetch(`${jM}/asistido`,{method:"POST",body:Z});if(!L.ok)throw new Error;const j=await L.json();D("✔ "+j.mensaje),I(!1),t(""),n(""),a(""),o(""),c(""),h(""),g(""),m(""),b(""),S("blanco")}catch{P("Error al registrar atención.")}};return F.jsxs("div",{className:"asistido-container",children:[F.jsx("h1",{children:"Triaje Asistido"}),F.jsxs("div",{className:"busqueda-dni-block",children:[F.jsx("input",{type:"text",placeholder:"DNI",maxLength:"8",value:e,onChange:_e=>t(_e.target.value.replace(/\D/g,""))}),F.jsx("button",{onClick:G,disabled:R,children:R?"Buscando...":"Buscar"}),F.jsx("button",{onClick:()=>W(!0),className:"btn-directo",children:"🚨 Ingreso Directo"})]}),k&&F.jsx("p",{className:"error",children:k}),T&&F.jsx("p",{className:"mensaje",children:T}),Q&&F.jsxs("div",{className:"modal-ingreso",children:[F.jsx("h3",{children:"Ingreso Directo a Emergencia"}),F.jsx("button",{onClick:ge,disabled:R,children:"Validar DNI"}),J&&F.jsxs("p",{children:["Paciente: ",J]}),F.jsx("button",{onClick:se,className:"btn-directo",children:"Confirmar"}),F.jsx("button",{onClick:()=>W(!1),children:"Cancelar"})]}),V&&F.jsxs("form",{onSubmit:ye,className:"asistido-form",children:[F.jsx("label",{children:"Nombre:"}),F.jsx("input",{type:"text",value:r,readOnly:!0}),F.jsx("label",{children:"Teléfono:"}),F.jsx("input",{value:i,onChange:_e=>a(_e.target.value)}),F.jsx("label",{children:"Área:"}),F.jsxs("select",{value:l,onChange:_e=>c(_e.target.value),required:!0,children:[F.jsx("option",{value:"",children:"Seleccione"}),F.jsx("option",{value:"Medicina General",children:"Medicina General"}),F.jsx("option",{value:"Obstetricia",children:"Obstetricia"}),F.jsx("option",{value:"Nutricionista",children:"Nutricionista"}),F.jsx("option",{value:"Pediatría",children:"Pediatría"})]}),F.jsx("label",{children:"Síntomas:"}),F.jsx("textarea",{rows:"2",value:s,onChange:_e=>o(_e.target.value)}),F.jsxs("div",{className:"grid-signos",children:[F.jsxs("div",{children:[F.jsx("label",{children:"Temp:"}),F.jsx("input",{type:"number",step:"0.1",value:f,onChange:_e=>h(_e.target.value)})]}),F.jsxs("div",{children:[F.jsx("label",{children:"Freq:"}),F.jsx("input",{type:"number",value:y,onChange:_e=>m(_e.target.value)})]}),F.jsxs("div",{children:[F.jsx("label",{children:"Presión:"}),F.jsx("input",{value:p,onChange:_e=>g(_e.target.value)})]}),F.jsxs("div",{children:[F.jsx("label",{children:"Sat:"}),F.jsx("input",{type:"number",value:w,onChange:_e=>b(_e.target.value)})]})]}),F.jsx("label",{children:"Color:"}),F.jsxs("select",{value:E,onChange:_e=>S(_e.target.value),children:[F.jsx("option",{value:"blanco",children:"Blanco"}),F.jsx("option",{value:"verde",children:"Verde"}),F.jsx("option",{value:"amarillo",children:"Amarillo"}),F.jsx("option",{value:"naranja",children:"Naranja"}),F.jsx("option",{value:"rojo",children:"Rojo"})]}),F.jsx("button",{type:"submit",className:"btn-registrar",children:"Guardar Evaluación"})]})]})}const s4e=()=>{const[e,t]=N.useState("doctores"),r={doctores:[{nombre:"Dr. Miguel Herrera",carrera:"Medicina General",años:25,historia:"Egresado de la Universidad Nacional Mayor de San Marcos, especialista en medicina interna y atención comunitaria.",img:"public/img/Herrera.jpg"},{nombre:"Dr. Óscar roldan",carrera:"Pediatría",años:1,historia:"Egresado de la Universidad Cayetano Heredia, especialista en pedriatría, comprometido con el cuidado integral de la niñez y prevención de enfermedades crónicas.",img:"public/img/Oscar.jpg"},{nombre:"Dr. Renzo tarazona",carrera:"Cardiología",años:1,historia:"Egresado de la Universidad Nacional Mayor de San Marcos, ha dirigido campañas de salud cardiovascular en comunidades rurales de Áncash.",img:"public/img/Renzo.jpg"},{nombre:"Dra. Hellen Chacon",carrera:"Neurologia",años:1,historia:"Neurología con 1 año de experiencia clínica, dedicado al diagnóstico, prevención y tratamiento de enfermedades del sistema nervioso. Destaca por su compromiso con la actualización científica y su enfoque humano en la atención integral del paciente.",img:"public/img/Hellen.jpg"}],enfermeras:[{nombre:"Enf. Kety Cáceres",carrera:"Enfermería General",años:6,historia:"Dedicada al cuidado humanizado y formación de nuevos profesionales.",img:"public/img/Kety.jpg"},{nombre:"Enf. María olivera",carrera:"Pediatría",años:8,historia:"Especialista en atención infantil y vacunación CRED.",img:"public/img/Maria.jpg"},{nombre:"Enf. Sandra rojas",carrera:"Urgencias",años:5,historia:"Atiende en el área de emergencias con vocación y empatía.",img:"public/img/Sandra.jpg"},{nombre:"Enf. Kristel pinto",carrera:"Salud Comunitaria",años:5,historia:"Comprometida con la educación sanitaria y prevención en zonas rurales.",img:"public/img/Kristel.jpg"},{nombre:"Enf. Luz Gonzales",carrera:"Obstetricia",años:5,historia:"Apoya en el área obstétrica y controles prenatales.",img:"public/img/Luz.jpg"},{nombre:"Enf. Diana alcántara",carrera:"Cuidados Intensivos",años:5,historia:"Atiende pacientes críticos con alto compromiso profesional.",img:"public/img/Diana.jpg"},{nombre:"Enf. Karim carrion",carrera:"Obstetricia",años:17,historia:"Especializada en la atención integral de la salud sexual y reproductiva de la mujer. Su amplia experiencia abarca control prenatal, parto humanizado, planificación familiar y educación en salud materna, destacándose por su compromiso, ética profesional y vocación de servicio.",img:"public/img/Karim.jpg"},{nombre:"Enf. Pedro Ramirez",carrera:"Personal Técnico",años:27,historia:"forma parte del personal técnico de salud, con sólida formación y experiencia en procedimientos asistenciales y apoyo clínico. Su labor se centra en garantizar la correcta atención a los pacientes, el manejo responsable de equipos médicos y la colaboración activa con el equipo multidisciplinario.",img:"public/img/Pedro.jpg"}],administrativos:[{nombre:" Zarela andrade",carrera:"Secretaria",años:2,historia:"Coordina el área de logística y gestión hospitalaria.",img:"public/img/Zarela.jpg"},{nombre:"Ing. Jose luis ayala",carrera:"Estádistico",años:3,historia:"Encargado del área de estadistica y creación de Dashboards.",img:"public/img/Jose.jpg"},{nombre:"Dr. Miguel Herrera",carrera:"Director",años:20,historia:"Director general del hospital de apoyo recuay, encargado de la supervición de todo lo que ocurre en el hospital.",img:"public/img/Herrera.jpg"},{nombre:"Sr. Lucio mena",carrera:"Gestión Pública",años:14,historia:"Apoya en transparencia y procesos administrativos del MINSA.",img:"public/img/Lucio.jpg"},{nombre:"Srta. Lisbeth salvador",carrera:"Psicología",años:1,historia:"Especializada en la evaluación y acompañamiento psicológico de niños, adolescentes y adultos. Su trabajo se centra en promover el bienestar emocional y el desarrollo personal mediante un enfoque ético, empático y basado en evidencia científica.",img:"public/img/Lis.jpg"}]};return F.jsxs("div",{className:"portal-container",children:[F.jsx("h1",{children:"Nuestros Profesionales Medicos"}),F.jsx("p",{className:"portal-description",children:"Conoce al equipo de profesionales del Hospital de Apoyo Recuay: doctores, enfermeras y personal administrativo comprometido con la salud y bienestar de nuestra comunidad."}),F.jsxs("div",{className:"categoria-selector",children:[F.jsx("button",{className:e==="doctores"?"active":"",onClick:()=>t("doctores"),children:"Doctores"}),F.jsx("button",{className:e==="enfermeras"?"active":"",onClick:()=>t("enfermeras"),children:"Enfermeras"}),F.jsx("button",{className:e==="administrativos"?"active":"",onClick:()=>t("administrativos"),children:"Administrativos"})]}),F.jsx("div",{className:"galeria",children:r[e].map((n,i)=>F.jsx("div",{className:"card",children:F.jsxs("div",{className:"card-img",children:[F.jsx("img",{src:n.img,alt:n.nombre}),F.jsxs("div",{className:"card-overlay",children:[F.jsx("h3",{children:n.nombre}),F.jsx("p",{children:F.jsx("strong",{children:n.carrera})}),F.jsxs("p",{children:[n.años," años de servicio"]}),F.jsx("p",{className:"historia",children:n.historia})]})]})},i))})]})},o4e=`${Os.TRIAJE}/historial`;function A4e(){const[e,t]=N.useState(""),[r,n]=N.useState(null),[i,a]=N.useState([]),[s,o]=N.useState(!1),[l,c]=N.useState(""),f=async()=>{if(e.trim().length!==8){c("El DNI debe tener 8 dígitos.");return}o(!0),c(""),n(null),a([]);try{const p=await(await fetch(`${o4e}/${e}`)).json();if(p.mensaje){c(p.mensaje);return}n(p.paciente),a(p.historial||[])}catch(h){console.error(h),c("Error al conectar con el servidor.")}finally{o(!1)}};return F.jsxs("div",{className:"historial-container",children:[F.jsxs("header",{className:"historial-header",children:[F.jsx("h1",{children:"Historial Clínico del Paciente"}),F.jsx("p",{children:"Consulta los registros de atención, signos vitales y archivos clínicos registrados en el sistema de triaje."})]}),F.jsxs("section",{className:"busqueda-section",children:[F.jsx("label",{children:"Ingrese DNI del paciente:"}),F.jsxs("div",{className:"busqueda-input",children:[F.jsx("input",{type:"text",maxLength:"8",placeholder:"Ej. 12345678",value:e,onChange:h=>t(h.target.value)}),F.jsx("button",{onClick:f,disabled:s,children:s?"Buscando...":"🔍 Buscar"})]}),l&&F.jsx("p",{className:"error-text",children:l})]}),r&&F.jsxs("section",{className:"datos-paciente",children:[F.jsx("h2",{children:"👤 Datos del Paciente"}),F.jsxs("ul",{children:[F.jsxs("li",{children:[F.jsx("strong",{children:"DNI:"})," ",r.dni]}),F.jsxs("li",{children:[F.jsx("strong",{children:"Nombre:"})," ",r.nombre]}),F.jsxs("li",{children:[F.jsx("strong",{children:"Teléfono:"})," ",r.telefono]})]})]}),i.length>0&&F.jsxs("section",{className:"historial-section",children:[F.jsx("h2",{children:"📅 Registros Médicos"}),F.jsxs("table",{className:"historial-tabla",children:[F.jsx("thead",{children:F.jsxs("tr",{children:[F.jsx("th",{children:"Fecha"}),F.jsx("th",{children:"Área"}),F.jsx("th",{children:"Síntomas"}),F.jsx("th",{children:"Temp (°C)"}),F.jsx("th",{children:"Presión"}),F.jsx("th",{children:"Frecuencia"}),F.jsx("th",{children:"Saturación"}),F.jsx("th",{children:"Color"}),F.jsx("th",{children:"Archivos"})]})}),F.jsx("tbody",{children:i.map((h,p)=>F.jsxs("tr",{children:[F.jsx("td",{children:new Date(h.fecha_registro).toLocaleString("es-PE",{dateStyle:"short",timeStyle:"short"})}),F.jsx("td",{children:h.area||"—"}),F.jsx("td",{children:h.sintomas||"—"}),F.jsx("td",{children:h.temperatura||"—"}),F.jsx("td",{children:h.presion||"—"}),F.jsx("td",{children:h.frecuencia||"—"}),F.jsx("td",{children:h.saturacion||"—"}),F.jsx("td",{children:F.jsx("span",{className:`badge badge-${h.color}`,children:(h.color||"blanco").toUpperCase()})}),F.jsx("td",{children:Array.isArray(h.archivos)&&h.archivos.length>0?F.jsx("ul",{children:h.archivos.map((g,y)=>F.jsx("li",{children:F.jsxs("a",{href:`${Os.UPLOADS}/${g}`,target:"_blank",rel:"noreferrer",children:["📎 ",g]})},y))}):"—"})]},p))})]})]})]})}var h0={},qC,KM;function l4e(){return KM||(KM=1,qC=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}),qC}var WC={},Vu={},zM;function sd(){if(zM)return Vu;zM=1;let e;const t=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return Vu.getSymbolSize=function(n){if(!n)throw new Error('"version" cannot be null or undefined');if(n<1||n>40)throw new Error('"version" should be in range from 1 to 40');return n*4+17},Vu.getSymbolTotalCodewords=function(n){return t[n]},Vu.getBCHDigit=function(r){let n=0;for(;r!==0;)n++,r>>>=1;return n},Vu.setToSJISFunction=function(n){if(typeof n!="function")throw new Error('"toSJISFunc" is not a valid function.');e=n},Vu.isKanjiModeEnabled=function(){return typeof e<"u"},Vu.toSJIS=function(n){return e(n)},Vu}var YC={},VM;function FF(){return VM||(VM=1,(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(r){if(typeof r!="string")throw new Error("Param is not a string");switch(r.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+r)}}e.isValid=function(n){return n&&typeof n.bit<"u"&&n.bit>=0&&n.bit<4},e.from=function(n,i){if(e.isValid(n))return n;try{return t(n)}catch{return i}}})(YC)),YC}var $C,GM;function c4e(){if(GM)return $C;GM=1;function e(){this.buffer=[],this.length=0}return e.prototype={get:function(t){const r=Math.floor(t/8);return(this.buffer[r]>>>7-t%8&1)===1},put:function(t,r){for(let n=0;n<r;n++)this.putBit((t>>>r-n-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(t){const r=Math.floor(this.length/8);this.buffer.length<=r&&this.buffer.push(0),t&&(this.buffer[r]|=128>>>this.length%8),this.length++}},$C=e,$C}var XC,qM;function u4e(){if(qM)return XC;qM=1;function e(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}return e.prototype.set=function(t,r,n,i){const a=t*this.size+r;this.data[a]=n,i&&(this.reservedBit[a]=!0)},e.prototype.get=function(t,r){return this.data[t*this.size+r]},e.prototype.xor=function(t,r,n){this.data[t*this.size+r]^=n},e.prototype.isReserved=function(t,r){return this.reservedBit[t*this.size+r]},XC=e,XC}var JC={},WM;function f4e(){return WM||(WM=1,(function(e){const t=sd().getSymbolSize;e.getRowColCoords=function(n){if(n===1)return[];const i=Math.floor(n/7)+2,a=t(n),s=a===145?26:Math.ceil((a-13)/(2*i-2))*2,o=[a-7];for(let l=1;l<i-1;l++)o[l]=o[l-1]-s;return o.push(6),o.reverse()},e.getPositions=function(n){const i=[],a=e.getRowColCoords(n),s=a.length;for(let o=0;o<s;o++)for(let l=0;l<s;l++)o===0&&l===0||o===0&&l===s-1||o===s-1&&l===0||i.push([a[o],a[l]]);return i}})(JC)),JC}var ZC={},YM;function h4e(){if(YM)return ZC;YM=1;const e=sd().getSymbolSize,t=7;return ZC.getPositions=function(n){const i=e(n);return[[0,0],[i-t,0],[0,i-t]]},ZC}var eE={},$M;function d4e(){return $M||($M=1,(function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(i){return i!=null&&i!==""&&!isNaN(i)&&i>=0&&i<=7},e.from=function(i){return e.isValid(i)?parseInt(i,10):void 0},e.getPenaltyN1=function(i){const a=i.size;let s=0,o=0,l=0,c=null,f=null;for(let h=0;h<a;h++){o=l=0,c=f=null;for(let p=0;p<a;p++){let g=i.get(h,p);g===c?o++:(o>=5&&(s+=t.N1+(o-5)),c=g,o=1),g=i.get(p,h),g===f?l++:(l>=5&&(s+=t.N1+(l-5)),f=g,l=1)}o>=5&&(s+=t.N1+(o-5)),l>=5&&(s+=t.N1+(l-5))}return s},e.getPenaltyN2=function(i){const a=i.size;let s=0;for(let o=0;o<a-1;o++)for(let l=0;l<a-1;l++){const c=i.get(o,l)+i.get(o,l+1)+i.get(o+1,l)+i.get(o+1,l+1);(c===4||c===0)&&s++}return s*t.N2},e.getPenaltyN3=function(i){const a=i.size;let s=0,o=0,l=0;for(let c=0;c<a;c++){o=l=0;for(let f=0;f<a;f++)o=o<<1&2047|i.get(c,f),f>=10&&(o===1488||o===93)&&s++,l=l<<1&2047|i.get(f,c),f>=10&&(l===1488||l===93)&&s++}return s*t.N3},e.getPenaltyN4=function(i){let a=0;const s=i.data.length;for(let l=0;l<s;l++)a+=i.data[l];return Math.abs(Math.ceil(a*100/s/5)-10)*t.N4};function r(n,i,a){switch(n){case e.Patterns.PATTERN000:return(i+a)%2===0;case e.Patterns.PATTERN001:return i%2===0;case e.Patterns.PATTERN010:return a%3===0;case e.Patterns.PATTERN011:return(i+a)%3===0;case e.Patterns.PATTERN100:return(Math.floor(i/2)+Math.floor(a/3))%2===0;case e.Patterns.PATTERN101:return i*a%2+i*a%3===0;case e.Patterns.PATTERN110:return(i*a%2+i*a%3)%2===0;case e.Patterns.PATTERN111:return(i*a%3+(i+a)%2)%2===0;default:throw new Error("bad maskPattern:"+n)}}e.applyMask=function(i,a){const s=a.size;for(let o=0;o<s;o++)for(let l=0;l<s;l++)a.isReserved(l,o)||a.xor(l,o,r(i,l,o))},e.getBestMask=function(i,a){const s=Object.keys(e.Patterns).length;let o=0,l=1/0;for(let c=0;c<s;c++){a(c),e.applyMask(c,i);const f=e.getPenaltyN1(i)+e.getPenaltyN2(i)+e.getPenaltyN3(i)+e.getPenaltyN4(i);e.applyMask(c,i),f<l&&(l=f,o=c)}return o}})(eE)),eE}var By={},XM;function MV(){if(XM)return By;XM=1;const e=FF(),t=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],r=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return By.getBlocksCount=function(i,a){switch(a){case e.L:return t[(i-1)*4+0];case e.M:return t[(i-1)*4+1];case e.Q:return t[(i-1)*4+2];case e.H:return t[(i-1)*4+3];default:return}},By.getTotalCodewordsCount=function(i,a){switch(a){case e.L:return r[(i-1)*4+0];case e.M:return r[(i-1)*4+1];case e.Q:return r[(i-1)*4+2];case e.H:return r[(i-1)*4+3];default:return}},By}var tE={},Cp={},JM;function g4e(){if(JM)return Cp;JM=1;const e=new Uint8Array(512),t=new Uint8Array(256);return(function(){let n=1;for(let i=0;i<255;i++)e[i]=n,t[n]=i,n<<=1,n&256&&(n^=285);for(let i=255;i<512;i++)e[i]=e[i-255]})(),Cp.log=function(n){if(n<1)throw new Error("log("+n+")");return t[n]},Cp.exp=function(n){return e[n]},Cp.mul=function(n,i){return n===0||i===0?0:e[t[n]+t[i]]},Cp}var ZM;function p4e(){return ZM||(ZM=1,(function(e){const t=g4e();e.mul=function(n,i){const a=new Uint8Array(n.length+i.length-1);for(let s=0;s<n.length;s++)for(let o=0;o<i.length;o++)a[s+o]^=t.mul(n[s],i[o]);return a},e.mod=function(n,i){let a=new Uint8Array(n);for(;a.length-i.length>=0;){const s=a[0];for(let l=0;l<i.length;l++)a[l]^=t.mul(i[l],s);let o=0;for(;o<a.length&&a[o]===0;)o++;a=a.slice(o)}return a},e.generateECPolynomial=function(n){let i=new Uint8Array([1]);for(let a=0;a<n;a++)i=e.mul(i,new Uint8Array([1,t.exp(a)]));return i}})(tE)),tE}var rE,eP;function v4e(){if(eP)return rE;eP=1;const e=p4e();function t(r){this.genPoly=void 0,this.degree=r,this.degree&&this.initialize(this.degree)}return t.prototype.initialize=function(n){this.degree=n,this.genPoly=e.generateECPolynomial(this.degree)},t.prototype.encode=function(n){if(!this.genPoly)throw new Error("Encoder not initialized");const i=new Uint8Array(n.length+this.degree);i.set(n);const a=e.mod(i,this.genPoly),s=this.degree-a.length;if(s>0){const o=new Uint8Array(this.degree);return o.set(a,s),o}return a},rE=t,rE}var nE={},iE={},aE={},tP;function PV(){return tP||(tP=1,aE.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}),aE}var Ll={},rP;function kV(){if(rP)return Ll;rP=1;const e="[0-9]+",t="[A-Z $%*+\\-./:]+";let r="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";r=r.replace(/u/g,"\\u");const n="(?:(?![A-Z0-9 $%*+\\-./:]|"+r+`)(?:.|[\r
]))+`;Ll.KANJI=new RegExp(r,"g"),Ll.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Ll.BYTE=new RegExp(n,"g"),Ll.NUMERIC=new RegExp(e,"g"),Ll.ALPHANUMERIC=new RegExp(t,"g");const i=new RegExp("^"+r+"$"),a=new RegExp("^"+e+"$"),s=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return Ll.testKanji=function(l){return i.test(l)},Ll.testNumeric=function(l){return a.test(l)},Ll.testAlphanumeric=function(l){return s.test(l)},Ll}var nP;function od(){return nP||(nP=1,(function(e){const t=PV(),r=kV();e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(a,s){if(!a.ccBits)throw new Error("Invalid mode: "+a);if(!t.isValid(s))throw new Error("Invalid version: "+s);return s>=1&&s<10?a.ccBits[0]:s<27?a.ccBits[1]:a.ccBits[2]},e.getBestModeForData=function(a){return r.testNumeric(a)?e.NUMERIC:r.testAlphanumeric(a)?e.ALPHANUMERIC:r.testKanji(a)?e.KANJI:e.BYTE},e.toString=function(a){if(a&&a.id)return a.id;throw new Error("Invalid mode")},e.isValid=function(a){return a&&a.bit&&a.ccBits};function n(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+i)}}e.from=function(a,s){if(e.isValid(a))return a;try{return n(a)}catch{return s}}})(iE)),iE}var iP;function m4e(){return iP||(iP=1,(function(e){const t=sd(),r=MV(),n=FF(),i=od(),a=PV(),s=7973,o=t.getBCHDigit(s);function l(p,g,y){for(let m=1;m<=40;m++)if(g<=e.getCapacity(m,y,p))return m}function c(p,g){return i.getCharCountIndicator(p,g)+4}function f(p,g){let y=0;return p.forEach(function(m){const w=c(m.mode,g);y+=w+m.getBitsLength()}),y}function h(p,g){for(let y=1;y<=40;y++)if(f(p,y)<=e.getCapacity(y,g,i.MIXED))return y}e.from=function(g,y){return a.isValid(g)?parseInt(g,10):y},e.getCapacity=function(g,y,m){if(!a.isValid(g))throw new Error("Invalid QR Code version");typeof m>"u"&&(m=i.BYTE);const w=t.getSymbolTotalCodewords(g),b=r.getTotalCodewordsCount(g,y),E=(w-b)*8;if(m===i.MIXED)return E;const S=E-c(m,g);switch(m){case i.NUMERIC:return Math.floor(S/10*3);case i.ALPHANUMERIC:return Math.floor(S/11*2);case i.KANJI:return Math.floor(S/13);case i.BYTE:default:return Math.floor(S/8)}},e.getBestVersionForData=function(g,y){let m;const w=n.from(y,n.M);if(Array.isArray(g)){if(g.length>1)return h(g,w);if(g.length===0)return 1;m=g[0]}else m=g;return l(m.mode,m.getLength(),w)},e.getEncodedBits=function(g){if(!a.isValid(g)||g<7)throw new Error("Invalid QR Code version");let y=g<<12;for(;t.getBCHDigit(y)-o>=0;)y^=s<<t.getBCHDigit(y)-o;return g<<12|y}})(nE)),nE}var sE={},aP;function y4e(){if(aP)return sE;aP=1;const e=sd(),t=1335,r=21522,n=e.getBCHDigit(t);return sE.getEncodedBits=function(a,s){const o=a.bit<<3|s;let l=o<<10;for(;e.getBCHDigit(l)-n>=0;)l^=t<<e.getBCHDigit(l)-n;return(o<<10|l)^r},sE}var oE={},AE,sP;function w4e(){if(sP)return AE;sP=1;const e=od();function t(r){this.mode=e.NUMERIC,this.data=r.toString()}return t.getBitsLength=function(n){return 10*Math.floor(n/3)+(n%3?n%3*3+1:0)},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(n){let i,a,s;for(i=0;i+3<=this.data.length;i+=3)a=this.data.substr(i,3),s=parseInt(a,10),n.put(s,10);const o=this.data.length-i;o>0&&(a=this.data.substr(i),s=parseInt(a,10),n.put(s,o*3+1))},AE=t,AE}var lE,oP;function x4e(){if(oP)return lE;oP=1;const e=od(),t=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function r(n){this.mode=e.ALPHANUMERIC,this.data=n}return r.getBitsLength=function(i){return 11*Math.floor(i/2)+6*(i%2)},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(i){let a;for(a=0;a+2<=this.data.length;a+=2){let s=t.indexOf(this.data[a])*45;s+=t.indexOf(this.data[a+1]),i.put(s,11)}this.data.length%2&&i.put(t.indexOf(this.data[a]),6)},lE=r,lE}var cE,AP;function b4e(){if(AP)return cE;AP=1;const e=od();function t(r){this.mode=e.BYTE,typeof r=="string"?this.data=new TextEncoder().encode(r):this.data=new Uint8Array(r)}return t.getBitsLength=function(n){return n*8},t.prototype.getLength=function(){return this.data.length},t.prototype.getBitsLength=function(){return t.getBitsLength(this.data.length)},t.prototype.write=function(r){for(let n=0,i=this.data.length;n<i;n++)r.put(this.data[n],8)},cE=t,cE}var uE,lP;function B4e(){if(lP)return uE;lP=1;const e=od(),t=sd();function r(n){this.mode=e.KANJI,this.data=n}return r.getBitsLength=function(i){return i*13},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(n){let i;for(i=0;i<this.data.length;i++){let a=t.toSJIS(this.data[i]);if(a>=33088&&a<=40956)a-=33088;else if(a>=57408&&a<=60351)a-=49472;else throw new Error("Invalid SJIS character: "+this.data[i]+`
Make sure your charset is UTF-8`);a=(a>>>8&255)*192+(a&255),n.put(a,13)}},uE=r,uE}var fE={exports:{}},cP;function C4e(){return cP||(cP=1,(function(e){var t={single_source_shortest_paths:function(r,n,i){var a={},s={};s[n]=0;var o=t.PriorityQueue.make();o.push(n,0);for(var l,c,f,h,p,g,y,m,w;!o.empty();){l=o.pop(),c=l.value,h=l.cost,p=r[c]||{};for(f in p)p.hasOwnProperty(f)&&(g=p[f],y=h+g,m=s[f],w=typeof s[f]>"u",(w||m>y)&&(s[f]=y,o.push(f,y),a[f]=c))}if(typeof i<"u"&&typeof s[i]>"u"){var b=["Could not find a path from ",n," to ",i,"."].join("");throw new Error(b)}return a},extract_shortest_path_from_predecessor_list:function(r,n){for(var i=[],a=n;a;)i.push(a),r[a],a=r[a];return i.reverse(),i},find_path:function(r,n,i){var a=t.single_source_shortest_paths(r,n,i);return t.extract_shortest_path_from_predecessor_list(a,i)},PriorityQueue:{make:function(r){var n=t.PriorityQueue,i={},a;r=r||{};for(a in n)n.hasOwnProperty(a)&&(i[a]=n[a]);return i.queue=[],i.sorter=r.sorter||n.default_sorter,i},default_sorter:function(r,n){return r.cost-n.cost},push:function(r,n){var i={value:r,cost:n};this.queue.push(i),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(fE)),fE.exports}var uP;function E4e(){return uP||(uP=1,(function(e){const t=od(),r=w4e(),n=x4e(),i=b4e(),a=B4e(),s=kV(),o=sd(),l=C4e();function c(b){return unescape(encodeURIComponent(b)).length}function f(b,E,S){const T=[];let D;for(;(D=b.exec(S))!==null;)T.push({data:D[0],index:D.index,mode:E,length:D[0].length});return T}function h(b){const E=f(s.NUMERIC,t.NUMERIC,b),S=f(s.ALPHANUMERIC,t.ALPHANUMERIC,b);let T,D;return o.isKanjiModeEnabled()?(T=f(s.BYTE,t.BYTE,b),D=f(s.KANJI,t.KANJI,b)):(T=f(s.BYTE_KANJI,t.BYTE,b),D=[]),E.concat(S,T,D).sort(function(P,R){return P.index-R.index}).map(function(P){return{data:P.data,mode:P.mode,length:P.length}})}function p(b,E){switch(E){case t.NUMERIC:return r.getBitsLength(b);case t.ALPHANUMERIC:return n.getBitsLength(b);case t.KANJI:return a.getBitsLength(b);case t.BYTE:return i.getBitsLength(b)}}function g(b){return b.reduce(function(E,S){const T=E.length-1>=0?E[E.length-1]:null;return T&&T.mode===S.mode?(E[E.length-1].data+=S.data,E):(E.push(S),E)},[])}function y(b){const E=[];for(let S=0;S<b.length;S++){const T=b[S];switch(T.mode){case t.NUMERIC:E.push([T,{data:T.data,mode:t.ALPHANUMERIC,length:T.length},{data:T.data,mode:t.BYTE,length:T.length}]);break;case t.ALPHANUMERIC:E.push([T,{data:T.data,mode:t.BYTE,length:T.length}]);break;case t.KANJI:E.push([T,{data:T.data,mode:t.BYTE,length:c(T.data)}]);break;case t.BYTE:E.push([{data:T.data,mode:t.BYTE,length:c(T.data)}])}}return E}function m(b,E){const S={},T={start:{}};let D=["start"];for(let k=0;k<b.length;k++){const P=b[k],R=[];for(let O=0;O<P.length;O++){const V=P[O],I=""+k+O;R.push(I),S[I]={node:V,lastCount:0},T[I]={};for(let Q=0;Q<D.length;Q++){const W=D[Q];S[W]&&S[W].node.mode===V.mode?(T[W][I]=p(S[W].lastCount+V.length,V.mode)-p(S[W].lastCount,V.mode),S[W].lastCount+=V.length):(S[W]&&(S[W].lastCount=V.length),T[W][I]=p(V.length,V.mode)+4+t.getCharCountIndicator(V.mode,E))}}D=R}for(let k=0;k<D.length;k++)T[D[k]].end=0;return{map:T,table:S}}function w(b,E){let S;const T=t.getBestModeForData(b);if(S=t.from(E,T),S!==t.BYTE&&S.bit<T.bit)throw new Error('"'+b+'" cannot be encoded with mode '+t.toString(S)+`.
 Suggested mode is: `+t.toString(T));switch(S===t.KANJI&&!o.isKanjiModeEnabled()&&(S=t.BYTE),S){case t.NUMERIC:return new r(b);case t.ALPHANUMERIC:return new n(b);case t.KANJI:return new a(b);case t.BYTE:return new i(b)}}e.fromArray=function(E){return E.reduce(function(S,T){return typeof T=="string"?S.push(w(T,null)):T.data&&S.push(w(T.data,T.mode)),S},[])},e.fromString=function(E,S){const T=h(E,o.isKanjiModeEnabled()),D=y(T),k=m(D,S),P=l.find_path(k.map,"start","end"),R=[];for(let O=1;O<P.length-1;O++)R.push(k.table[P[O]].node);return e.fromArray(g(R))},e.rawSplit=function(E){return e.fromArray(h(E,o.isKanjiModeEnabled()))}})(oE)),oE}var fP;function _4e(){if(fP)return WC;fP=1;const e=sd(),t=FF(),r=c4e(),n=u4e(),i=f4e(),a=h4e(),s=d4e(),o=MV(),l=v4e(),c=m4e(),f=y4e(),h=od(),p=E4e();function g(k,P){const R=k.size,O=a.getPositions(P);for(let V=0;V<O.length;V++){const I=O[V][0],Q=O[V][1];for(let W=-1;W<=7;W++)if(!(I+W<=-1||R<=I+W))for(let J=-1;J<=7;J++)Q+J<=-1||R<=Q+J||(W>=0&&W<=6&&(J===0||J===6)||J>=0&&J<=6&&(W===0||W===6)||W>=2&&W<=4&&J>=2&&J<=4?k.set(I+W,Q+J,!0,!0):k.set(I+W,Q+J,!1,!0))}}function y(k){const P=k.size;for(let R=8;R<P-8;R++){const O=R%2===0;k.set(R,6,O,!0),k.set(6,R,O,!0)}}function m(k,P){const R=i.getPositions(P);for(let O=0;O<R.length;O++){const V=R[O][0],I=R[O][1];for(let Q=-2;Q<=2;Q++)for(let W=-2;W<=2;W++)Q===-2||Q===2||W===-2||W===2||Q===0&&W===0?k.set(V+Q,I+W,!0,!0):k.set(V+Q,I+W,!1,!0)}}function w(k,P){const R=k.size,O=c.getEncodedBits(P);let V,I,Q;for(let W=0;W<18;W++)V=Math.floor(W/3),I=W%3+R-8-3,Q=(O>>W&1)===1,k.set(V,I,Q,!0),k.set(I,V,Q,!0)}function b(k,P,R){const O=k.size,V=f.getEncodedBits(P,R);let I,Q;for(I=0;I<15;I++)Q=(V>>I&1)===1,I<6?k.set(I,8,Q,!0):I<8?k.set(I+1,8,Q,!0):k.set(O-15+I,8,Q,!0),I<8?k.set(8,O-I-1,Q,!0):I<9?k.set(8,15-I-1+1,Q,!0):k.set(8,15-I-1,Q,!0);k.set(O-8,8,1,!0)}function E(k,P){const R=k.size;let O=-1,V=R-1,I=7,Q=0;for(let W=R-1;W>0;W-=2)for(W===6&&W--;;){for(let J=0;J<2;J++)if(!k.isReserved(V,W-J)){let fe=!1;Q<P.length&&(fe=(P[Q]>>>I&1)===1),k.set(V,W-J,fe),I--,I===-1&&(Q++,I=7)}if(V+=O,V<0||R<=V){V-=O,O=-O;break}}}function S(k,P,R){const O=new r;R.forEach(function(J){O.put(J.mode.bit,4),O.put(J.getLength(),h.getCharCountIndicator(J.mode,k)),J.write(O)});const V=e.getSymbolTotalCodewords(k),I=o.getTotalCodewordsCount(k,P),Q=(V-I)*8;for(O.getLengthInBits()+4<=Q&&O.put(0,4);O.getLengthInBits()%8!==0;)O.putBit(0);const W=(Q-O.getLengthInBits())/8;for(let J=0;J<W;J++)O.put(J%2?17:236,8);return T(O,k,P)}function T(k,P,R){const O=e.getSymbolTotalCodewords(P),V=o.getTotalCodewordsCount(P,R),I=O-V,Q=o.getBlocksCount(P,R),W=O%Q,J=Q-W,fe=Math.floor(O/Q),G=Math.floor(I/Q),se=G+1,ge=fe-G,ye=new l(ge);let _e=0;const Z=new Array(Q),L=new Array(Q);let j=0;const K=new Uint8Array(k.buffer);for(let ae=0;ae<Q;ae++){const be=ae<J?G:se;Z[ae]=K.slice(_e,_e+be),L[ae]=ye.encode(Z[ae]),_e+=be,j=Math.max(j,be)}const q=new Uint8Array(O);let re=0,he,Be;for(he=0;he<j;he++)for(Be=0;Be<Q;Be++)he<Z[Be].length&&(q[re++]=Z[Be][he]);for(he=0;he<ge;he++)for(Be=0;Be<Q;Be++)q[re++]=L[Be][he];return q}function D(k,P,R,O){let V;if(Array.isArray(k))V=p.fromArray(k);else if(typeof k=="string"){let fe=P;if(!fe){const G=p.rawSplit(k);fe=c.getBestVersionForData(G,R)}V=p.fromString(k,fe||40)}else throw new Error("Invalid data");const I=c.getBestVersionForData(V,R);if(!I)throw new Error("The amount of data is too big to be stored in a QR Code");if(!P)P=I;else if(P<I)throw new Error(`
The chosen QR Code version cannot contain this amount of data.
Minimum version required to store current data is: `+I+`.
`);const Q=S(P,R,V),W=e.getSymbolSize(P),J=new n(W);return g(J,P),y(J),m(J,P),b(J,R,0),P>=7&&w(J,P),E(J,Q),isNaN(O)&&(O=s.getBestMask(J,b.bind(null,J,R))),s.applyMask(O,J),b(J,R,O),{modules:J,version:P,errorCorrectionLevel:R,maskPattern:O,segments:V}}return WC.create=function(P,R){if(typeof P>"u"||P==="")throw new Error("No input text");let O=t.M,V,I;return typeof R<"u"&&(O=t.from(R.errorCorrectionLevel,t.M),V=c.from(R.version),I=s.from(R.maskPattern),R.toSJISFunc&&e.setToSJISFunction(R.toSJISFunc)),D(P,V,O,I)},WC}var hE={},dE={},hP;function QV(){return hP||(hP=1,(function(e){function t(r){if(typeof r=="number"&&(r=r.toString()),typeof r!="string")throw new Error("Color should be defined as hex string");let n=r.slice().replace("#","").split("");if(n.length<3||n.length===5||n.length>8)throw new Error("Invalid hex color: "+r);(n.length===3||n.length===4)&&(n=Array.prototype.concat.apply([],n.map(function(a){return[a,a]}))),n.length===6&&n.push("F","F");const i=parseInt(n.join(""),16);return{r:i>>24&255,g:i>>16&255,b:i>>8&255,a:i&255,hex:"#"+n.slice(0,6).join("")}}e.getOptions=function(n){n||(n={}),n.color||(n.color={});const i=typeof n.margin>"u"||n.margin===null||n.margin<0?4:n.margin,a=n.width&&n.width>=21?n.width:void 0,s=n.scale||4;return{width:a,scale:a?4:s,margin:i,color:{dark:t(n.color.dark||"#000000ff"),light:t(n.color.light||"#ffffffff")},type:n.type,rendererOpts:n.rendererOpts||{}}},e.getScale=function(n,i){return i.width&&i.width>=n+i.margin*2?i.width/(n+i.margin*2):i.scale},e.getImageWidth=function(n,i){const a=e.getScale(n,i);return Math.floor((n+i.margin*2)*a)},e.qrToImageData=function(n,i,a){const s=i.modules.size,o=i.modules.data,l=e.getScale(s,a),c=Math.floor((s+a.margin*2)*l),f=a.margin*l,h=[a.color.light,a.color.dark];for(let p=0;p<c;p++)for(let g=0;g<c;g++){let y=(p*c+g)*4,m=a.color.light;if(p>=f&&g>=f&&p<c-f&&g<c-f){const w=Math.floor((p-f)/l),b=Math.floor((g-f)/l);m=h[o[w*s+b]?1:0]}n[y++]=m.r,n[y++]=m.g,n[y++]=m.b,n[y]=m.a}}})(dE)),dE}var dP;function S4e(){return dP||(dP=1,(function(e){const t=QV();function r(i,a,s){i.clearRect(0,0,a.width,a.height),a.style||(a.style={}),a.height=s,a.width=s,a.style.height=s+"px",a.style.width=s+"px"}function n(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}e.render=function(a,s,o){let l=o,c=s;typeof l>"u"&&(!s||!s.getContext)&&(l=s,s=void 0),s||(c=n()),l=t.getOptions(l);const f=t.getImageWidth(a.modules.size,l),h=c.getContext("2d"),p=h.createImageData(f,f);return t.qrToImageData(p.data,a,l),r(h,c,f),h.putImageData(p,0,0),c},e.renderToDataURL=function(a,s,o){let l=o;typeof l>"u"&&(!s||!s.getContext)&&(l=s,s=void 0),l||(l={});const c=e.render(a,s,l),f=l.type||"image/png",h=l.rendererOpts||{};return c.toDataURL(f,h.quality)}})(hE)),hE}var gE={},gP;function F4e(){if(gP)return gE;gP=1;const e=QV();function t(i,a){const s=i.a/255,o=a+'="'+i.hex+'"';return s<1?o+" "+a+'-opacity="'+s.toFixed(2).slice(1)+'"':o}function r(i,a,s){let o=i+a;return typeof s<"u"&&(o+=" "+s),o}function n(i,a,s){let o="",l=0,c=!1,f=0;for(let h=0;h<i.length;h++){const p=Math.floor(h%a),g=Math.floor(h/a);!p&&!c&&(c=!0),i[h]?(f++,h>0&&p>0&&i[h-1]||(o+=c?r("M",p+s,.5+g+s):r("m",l,0),l=0,c=!1),p+1<a&&i[h+1]||(o+=r("h",f),f=0)):l++}return o}return gE.render=function(a,s,o){const l=e.getOptions(s),c=a.modules.size,f=a.modules.data,h=c+l.margin*2,p=l.color.light.a?"<path "+t(l.color.light,"fill")+' d="M0 0h'+h+"v"+h+'H0z"/>':"",g="<path "+t(l.color.dark,"stroke")+' d="'+n(f,c,l.margin)+'"/>',y='viewBox="0 0 '+h+" "+h+'"',w='<svg xmlns="http://www.w3.org/2000/svg" '+(l.width?'width="'+l.width+'" height="'+l.width+'" ':"")+y+' shape-rendering="crispEdges">'+p+g+`</svg>
`;return typeof o=="function"&&o(null,w),w},gE}var pP;function T4e(){if(pP)return h0;pP=1;const e=l4e(),t=_4e(),r=S4e(),n=F4e();function i(a,s,o,l,c){const f=[].slice.call(arguments,1),h=f.length,p=typeof f[h-1]=="function";if(!p&&!e())throw new Error("Callback required as last argument");if(p){if(h<2)throw new Error("Too few arguments provided");h===2?(c=o,o=s,s=l=void 0):h===3&&(s.getContext&&typeof c>"u"?(c=l,l=void 0):(c=l,l=o,o=s,s=void 0))}else{if(h<1)throw new Error("Too few arguments provided");return h===1?(o=s,s=l=void 0):h===2&&!s.getContext&&(l=o,o=s,s=void 0),new Promise(function(g,y){try{const m=t.create(o,l);g(a(m,s,l))}catch(m){y(m)}})}try{const g=t.create(o,l);c(null,a(g,s,l))}catch(g){c(g)}}return h0.create=t.create,h0.toCanvas=i.bind(null,r.render),h0.toDataURL=i.bind(null,r.renderToDataURL),h0.toString=i.bind(null,function(a,s,o){return n.render(a,o)}),h0}var O4e=T4e();const U4e=sl(O4e),Cy=Os.TRIAJE;function N4e(){const[e,t]=N.useState(""),[r,n]=N.useState(null),[i,a]=N.useState([]),[s,o]=N.useState(!1),[l,c]=N.useState(!1),[f,h]=N.useState(!1),[p,g]=N.useState(""),[y,m]=N.useState(!1),[w,b]=N.useState([]),[E,S]=N.useState([]),[T,D]=N.useState({temperatura:"",presion:"",frecuencia:"",saturacion:"",color:"verde"}),[k,P]=N.useState({areaDestino:"",motivo:"",observaciones:"",archivo:null,prioridad:""}),R=(G,se,ge)=>G&&G>=39||ge&&ge<=88||se&&se>=130?"rojo":G&&G>=38||ge&&ge<=92?"naranja":G&&G>=37.5||ge&&ge<=95?"amarillo":"verde",O=async()=>{try{const G=await fetch(`${Cy}/doctor/rojos`);if(!G.ok)return;const se=await G.json();S(se||[])}catch(G){console.error("Error cargando pacientes rojos",G)}};N.useEffect(()=>{O()},[]);const V=async()=>{if(!e.trim())return alert("Ingrese un DNI válido");m(!0);try{const se=await(await fetch(`${Cy}/historial_datos/${e}`)).json(),ye=await(await fetch(`${Cy}/historial/${e}`)).json();n(ye.paciente||null),a(se||[])}catch{alert("Error al cargar el historial clínico.")}finally{m(!1)}},I=async G=>{t(G),await V()},Q=async G=>{G.preventDefault();try{const se=T.temperatura?parseFloat(T.temperatura):null,ge=T.frecuencia?parseInt(T.frecuencia,10):null,ye=T.saturacion?parseInt(T.saturacion,10):null,_e=R(se,ge,ye),Z=new FormData;if(Z.append("dni",e),Z.append("nombre",r?.nombre||"Desconocido"),Z.append("telefono",r?.telefono||""),Z.append("temperatura",T.temperatura),Z.append("presion",T.presion),Z.append("frecuencia",T.frecuencia),Z.append("saturacion",T.saturacion),Z.append("color",_e),!(await fetch(`${Cy}/asistido`,{method:"POST",body:Z})).ok)throw new Error;alert("Nuevo control registrado correctamente"),await V(),await O(),D({temperatura:"",presion:"",frecuencia:"",saturacion:"",color:"verde"}),o(!1)}catch{alert("No se pudo registrar el control")}},W=async()=>{const G=new jt("p","mm","a4"),se=G.internal.pageSize.getWidth();G.setFillColor(30,58,138),G.rect(0,0,se,40,"F");const ge=new Image;ge.src="/img/logo.png",ge.onload=async()=>{G.addImage(ge,"PNG",10,8,24,24),G.setTextColor(255,255,255),G.setFont("helvetica","bold"),G.setFontSize(16),G.text("Hospital de Apoyo de Recuay",40,18),G.setFontSize(11),G.text("Departamento de Medicina General",40,25),G.text(`Informe Clínico – ${new Date().toLocaleDateString("es-PE")}`,40,32);let ye=50;G.setTextColor(0,0,0),G.setFontSize(13),G.setFont("helvetica","bold"),G.text("Datos del Paciente",15,ye),G.setFontSize(11),G.setFont("helvetica","normal"),ye+=8,G.text(`Nombre: ${r?.nombre}`,15,ye),ye+=6,G.text(`DNI: ${r?.dni}`,15,ye),ye+=6,G.text(`Teléfono: ${r?.telefono||"-"}`,15,ye),ye+=10,G.setFont("helvetica","bold"),G.text("Evolución Clínica",15,ye),ye+=6,G.setFillColor(226,232,240),G.rect(10,ye,190,8,"F"),G.setFontSize(10),G.text("Fecha",15,ye+5),G.text("Temp",45,ye+5),G.text("Presión",70,ye+5),G.text("Freq",100,ye+5),G.text("Sat",130,ye+5),G.text("Prioridad",155,ye+5),ye+=10,i.forEach((he,Be)=>{he.color==="rojo"?G.setFillColor(254,226,226):he.color==="amarillo"?G.setFillColor(254,249,195):G.setFillColor(220,252,231),G.rect(10,ye-4,190,7,"F"),G.text(he.fecha_registro?.split("T")[0],15,ye),G.text(String(he.temperatura),45,ye),G.text(String(he.presion),72,ye),G.text(String(he.frecuencia),102,ye),G.text(String(he.saturacion),132,ye),G.text(he.color.toUpperCase(),155,ye),ye+=7});const _e=document.querySelector(".graficos-grid"),Z=await Ix(_e,{scale:2});G.addPage();const L=Z.toDataURL("image/png");G.addImage(L,"PNG",10,20,se-20,160),G.addPage(),G.setFont("helvetica","bold"),G.setFontSize(13),G.text("Indicaciones Médicas",15,20),G.setFont("helvetica","normal"),G.setFontSize(11);const j=p||"Sin indicaciones registradas.",K=G.splitTextToSize(j,180);G.text(K,15,30),G.setDrawColor(30,58,138),G.circle(150,240,22),G.setFontSize(9),G.text("SELLO DIGITAL",140,230),G.text("Dr. Medicina General",132,236),G.text("Hospital Recuay",135,242),G.text(new Date().toLocaleString("es-PE"),132,248);const q=`https://hospital-recuay.pe/informes/${r?.dni}`,re=await U4e.toDataURL(q);G.addImage(re,"PNG",15,235,30,30),G.setFontSize(9),G.text(`Escanee el QR para
verificar el informe`,15,270),G.save(`Informe_Clinico_${r?.dni}.pdf`)}},J=async()=>{if(!r)return alert("Debe buscar primero un paciente.");if(!k.areaDestino||!k.motivo||!k.prioridad)return alert("Complete todos los campos, incluida la prioridad.");const G=new FormData;G.append("paciente_dni",r.dni),G.append("nombre_paciente",r.nombre),G.append("area_origen","Medicina General"),G.append("area_destino",k.areaDestino),G.append("motivo",k.motivo),G.append("observaciones",k.observaciones),G.append("prioridad",k.prioridad),k.archivo&&G.append("archivo",k.archivo);try{if(!(await fetch(`${Os.DERIVACIONES}/registrar`,{method:"POST",body:G})).ok)throw new Error;alert("Derivación enviada correctamente."),P({areaDestino:"",motivo:"",observaciones:"",archivo:null,prioridad:""}),h(!1)}catch{alert("Error al enviar la derivación.")}},fe=(G,se,ge,ye)=>F.jsxs("div",{className:"grafico-card",children:[F.jsx("h4",{children:G}),F.jsx(Hy,{width:"100%",height:250,children:F.jsxs(o9,{data:i,margin:{top:10,right:20,left:0,bottom:30},children:[F.jsx(H2,{strokeDasharray:"3 3"}),F.jsx(z2,{dataKey:"fecha_registro",tick:{fontSize:10},angle:-30,textAnchor:"end",height:50}),F.jsx(G2,{}),F.jsx(zy,{formatter:_e=>`${_e} ${ye}`}),F.jsx(rx,{}),F.jsx(V3,{type:"monotone",dataKey:se,stroke:ge,strokeWidth:2,dot:{r:3}})]})})]});return F.jsxs("div",{className:"panel-medico-container",children:[w.length>0&&F.jsxs("div",{className:"alerta-critical",children:[F.jsx("h3",{children:"🚨 Paciente crítico ingresó a EMERGENCIA"}),F.jsxs("p",{children:[w[0].dni," – ",w[0].nombre]})]}),F.jsxs("header",{className:"panel-header",children:[F.jsx("h1",{children:"Panel Médico"}),F.jsx("p",{children:"Visualiza la evolución del paciente y registra nuevos controles."})]}),E.length>0&&F.jsxs("div",{className:"panel-rojos",children:[F.jsx("h3",{children:"🔴 Pacientes críticos en espera"}),F.jsx("div",{className:"lista-rojos",children:E.map(G=>F.jsxs("button",{className:"btn-rojo",onClick:()=>I(G.dni),children:[G.dni," – ",G.nombre]},G.id))})]}),F.jsxs("div",{className:"buscar-dni",children:[F.jsx("input",{type:"text",placeholder:"Ingrese DNI",maxLength:"8",value:e,onChange:G=>t(G.target.value)}),F.jsx("button",{onClick:V,children:"Buscar"})]}),y&&F.jsx("p",{className:"loading",children:"Cargando..."}),r&&F.jsxs("div",{className:"info-paciente",children:[F.jsx("h3",{children:"Datos del paciente"}),F.jsxs("p",{children:[F.jsx("strong",{children:"Nombre:"})," ",r.nombre]}),F.jsxs("p",{children:[F.jsx("strong",{children:"DNI:"})," ",r.dni]}),F.jsxs("p",{children:[F.jsx("strong",{children:"Teléfono:"})," ",r.telefono||"No registrado"]})]}),i.length>0&&F.jsxs(F.Fragment,{children:[F.jsxs("div",{className:"graficos-grid",children:[fe("Temperatura (°C)","temperatura","#ef4444","°C"),fe("Frecuencia (bpm)","frecuencia","#3b82f6","bpm"),fe("Saturación (%)","saturacion","#16a34a","%"),fe("Presión (mmHg)","presion","#f59e0b","mmHg")]}),F.jsxs("div",{className:"acciones-panel",children:[F.jsx("button",{className:"btn-pdf",onClick:W,children:"Descargar PDF"}),F.jsx("button",{className:"btn-control",onClick:()=>o(!s),children:s?"Cerrar":"Registrar nuevo control"}),F.jsx("button",{className:"btn-indicaciones",onClick:()=>c(!l),children:"Indicaciones"}),F.jsx("button",{className:"btn-derivar",onClick:()=>h(!f),children:"Derivar"})]})]}),s&&F.jsxs("div",{className:"form-nuevo-control fade-in",children:[F.jsx("h3",{children:"Registrar nuevo control"}),F.jsxs("form",{onSubmit:Q,children:[F.jsxs("div",{className:"control-row",children:[F.jsx("label",{children:"Temperatura (°C):"}),F.jsx("input",{type:"number",step:"0.1",value:T.temperatura,onChange:G=>D({...T,temperatura:G.target.value}),required:!0})]}),F.jsxs("div",{className:"control-row",children:[F.jsx("label",{children:"Presión:"}),F.jsx("input",{type:"text",value:T.presion,onChange:G=>D({...T,presion:G.target.value}),required:!0})]}),F.jsxs("div",{className:"control-row",children:[F.jsx("label",{children:"Frecuencia:"}),F.jsx("input",{type:"number",value:T.frecuencia,onChange:G=>D({...T,frecuencia:G.target.value}),required:!0})]}),F.jsxs("div",{className:"control-row",children:[F.jsx("label",{children:"Saturación (%):"}),F.jsx("input",{type:"number",value:T.saturacion,onChange:G=>D({...T,saturacion:G.target.value}),required:!0})]}),F.jsx("button",{className:"btn-guardar",children:"Guardar"})]})]}),l&&F.jsxs("div",{className:"form-indicaciones fade-in",children:[F.jsx("h3",{children:"Indicaciones médicas"}),F.jsx("textarea",{rows:"5",value:p,onChange:G=>g(G.target.value)}),F.jsx("button",{className:"btn-guardar",onClick:()=>c(!1),children:"Guardar"})]}),f&&F.jsxs("div",{className:"form-derivacion fade-in",children:[F.jsx("h3",{children:"Derivar paciente"}),F.jsx("label",{children:"Área destino:"}),F.jsxs("select",{value:k.areaDestino,onChange:G=>P({...k,areaDestino:G.target.value}),children:[F.jsx("option",{value:"",children:"Seleccione área"}),F.jsx("option",{value:"Pediatría",children:"Pediatría"}),F.jsx("option",{value:"Nutrición",children:"Nutrición"}),F.jsx("option",{value:"Obstetricia",children:"Obstetricia"}),F.jsx("option",{value:"Medicina Interna",children:"Medicina Interna"})]}),F.jsx("label",{children:"Prioridad:"}),F.jsxs("select",{value:k.prioridad,onChange:G=>P({...k,prioridad:G.target.value}),children:[F.jsx("option",{value:"",children:"Seleccione prioridad"}),F.jsx("option",{value:"Crítica",children:"🔴 Crítica"}),F.jsx("option",{value:"Alta",children:"🟠 Alta"}),F.jsx("option",{value:"Media",children:"🟡 Media"}),F.jsx("option",{value:"Normal",children:"🟢 Normal"})]}),F.jsx("label",{children:"Motivo:"}),F.jsx("textarea",{rows:"3",value:k.motivo,onChange:G=>P({...k,motivo:G.target.value})}),F.jsx("label",{children:"Observaciones:"}),F.jsx("textarea",{rows:"2",value:k.observaciones,onChange:G=>P({...k,observaciones:G.target.value})}),F.jsx("label",{children:"Adjuntar PDF:"}),F.jsx("input",{type:"file",accept:"application/pdf",onChange:G=>P({...k,archivo:G.target.files[0]})}),F.jsx("button",{className:"btn-enviar",onClick:J,children:"Enviar derivación"})]})]})}const L4e=`${Os.DERIVACIONES}/todas`;function D4e(){const[e,t]=N.useState([]),r=async()=>{try{const n=await fetch(L4e);if(!n.ok)throw new Error("Error al obtener derivaciones");const i=await n.json();t(Array.isArray(i)?i:[])}catch(n){console.error("❌ Error cargando derivaciones:",n),alert("No se pudieron cargar las derivaciones del servidor.")}};return N.useEffect(()=>{r()},[]),F.jsxs("div",{className:"derivaciones-container",children:[F.jsx("h2",{children:"Derivaciones de Pacientes"}),F.jsxs("table",{className:"tabla-derivaciones",children:[F.jsx("thead",{children:F.jsxs("tr",{children:[F.jsx("th",{children:"Fecha"}),F.jsx("th",{children:"DNI"}),F.jsx("th",{children:"Paciente"}),F.jsx("th",{children:"De"}),F.jsx("th",{children:"Hacia"}),F.jsx("th",{children:"Motivo"}),F.jsx("th",{children:"Observaciones"}),F.jsx("th",{children:"Prioridad"})," ",F.jsx("th",{children:"Archivo"})]})}),F.jsx("tbody",{children:e.length===0?F.jsx("tr",{children:F.jsx("td",{colSpan:"9",className:"sin-registros",children:"No hay derivaciones registradas."})}):e.map((n,i)=>F.jsxs("tr",{children:[F.jsx("td",{children:n.fecha_derivacion?new Date(n.fecha_derivacion).toLocaleString("es-PE"):"—"}),F.jsx("td",{children:n.paciente_dni||"—"}),F.jsx("td",{children:n.nombre_paciente||"—"}),F.jsx("td",{children:n.area_origen||"—"}),F.jsx("td",{children:n.area_destino||"—"}),F.jsx("td",{children:n.motivo||"—"}),F.jsx("td",{children:n.observaciones||"—"}),F.jsx("td",{children:n.prioridad?F.jsx("span",{className:`tag-prioridad ${n.prioridad.toLowerCase().replace("í","i")}`,children:n.prioridad}):F.jsx("span",{className:"tag-prioridad normal",children:"Normal"})}),F.jsx("td",{children:n.archivo_pdf?F.jsx("a",{href:`${Os.UPLOADS}/${n.archivo_pdf}`,target:"_blank",rel:"noopener noreferrer",children:"📎 Ver PDF"}):"—"})]},i))})]})]})}/*!
 * @kurkle/color v0.3.4
 * https://github.com/kurkle/color#readme
 * (c) 2024 Jukka Kurkela
 * Released under the MIT License
 */function Cv(e){return e+.5|0}const af=(e,t,r)=>Math.max(Math.min(e,r),t);function jp(e){return af(Cv(e*2.55),0,255)}function uf(e){return af(Cv(e*255),0,255)}function Uc(e){return af(Cv(e/2.55)/100,0,1)}function vP(e){return af(Cv(e*100),0,100)}const aA={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},y4=[..."0123456789ABCDEF"],I4e=e=>y4[e&15],M4e=e=>y4[(e&240)>>4]+y4[e&15],Ey=e=>(e&240)>>4===(e&15),P4e=e=>Ey(e.r)&&Ey(e.g)&&Ey(e.b)&&Ey(e.a);function k4e(e){var t=e.length,r;return e[0]==="#"&&(t===4||t===5?r={r:255&aA[e[1]]*17,g:255&aA[e[2]]*17,b:255&aA[e[3]]*17,a:t===5?aA[e[4]]*17:255}:(t===7||t===9)&&(r={r:aA[e[1]]<<4|aA[e[2]],g:aA[e[3]]<<4|aA[e[4]],b:aA[e[5]]<<4|aA[e[6]],a:t===9?aA[e[7]]<<4|aA[e[8]]:255})),r}const Q4e=(e,t)=>e<255?t(e):"";function R4e(e){var t=P4e(e)?I4e:M4e;return e?"#"+t(e.r)+t(e.g)+t(e.b)+Q4e(e.a,t):void 0}const j4e=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function RV(e,t,r){const n=t*Math.min(r,1-r),i=(a,s=(a+e/30)%12)=>r-n*Math.max(Math.min(s-3,9-s,1),-1);return[i(0),i(8),i(4)]}function H4e(e,t,r){const n=(i,a=(i+e/60)%6)=>r-r*t*Math.max(Math.min(a,4-a,1),0);return[n(5),n(3),n(1)]}function K4e(e,t,r){const n=RV(e,1,.5);let i;for(t+r>1&&(i=1/(t+r),t*=i,r*=i),i=0;i<3;i++)n[i]*=1-t-r,n[i]+=t;return n}function z4e(e,t,r,n,i){return e===i?(t-r)/n+(t<r?6:0):t===i?(r-e)/n+2:(e-t)/n+4}function TF(e){const r=e.r/255,n=e.g/255,i=e.b/255,a=Math.max(r,n,i),s=Math.min(r,n,i),o=(a+s)/2;let l,c,f;return a!==s&&(f=a-s,c=o>.5?f/(2-a-s):f/(a+s),l=z4e(r,n,i,f,a),l=l*60+.5),[l|0,c||0,o]}function OF(e,t,r,n){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,r,n)).map(uf)}function UF(e,t,r){return OF(RV,e,t,r)}function V4e(e,t,r){return OF(K4e,e,t,r)}function G4e(e,t,r){return OF(H4e,e,t,r)}function jV(e){return(e%360+360)%360}function q4e(e){const t=j4e.exec(e);let r=255,n;if(!t)return;t[5]!==n&&(r=t[6]?jp(+t[5]):uf(+t[5]));const i=jV(+t[2]),a=+t[3]/100,s=+t[4]/100;return t[1]==="hwb"?n=V4e(i,a,s):t[1]==="hsv"?n=G4e(i,a,s):n=UF(i,a,s),{r:n[0],g:n[1],b:n[2],a:r}}function W4e(e,t){var r=TF(e);r[0]=jV(r[0]+t),r=UF(r),e.r=r[0],e.g=r[1],e.b=r[2]}function Y4e(e){if(!e)return;const t=TF(e),r=t[0],n=vP(t[1]),i=vP(t[2]);return e.a<255?`hsla(${r}, ${n}%, ${i}%, ${Uc(e.a)})`:`hsl(${r}, ${n}%, ${i}%)`}const mP={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"},yP={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 $4e(){const e={},t=Object.keys(yP),r=Object.keys(mP);let n,i,a,s,o;for(n=0;n<t.length;n++){for(s=o=t[n],i=0;i<r.length;i++)a=r[i],o=o.replace(a,mP[a]);a=parseInt(yP[s],16),e[o]=[a>>16&255,a>>8&255,a&255]}return e}let _y;function X4e(e){_y||(_y=$4e(),_y.transparent=[0,0,0,0]);const t=_y[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const J4e=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function Z4e(e){const t=J4e.exec(e);let r=255,n,i,a;if(t){if(t[7]!==n){const s=+t[7];r=t[8]?jp(s):af(s*255,0,255)}return n=+t[1],i=+t[3],a=+t[5],n=255&(t[2]?jp(n):af(n,0,255)),i=255&(t[4]?jp(i):af(i,0,255)),a=255&(t[6]?jp(a):af(a,0,255)),{r:n,g:i,b:a,a:r}}}function eSe(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${Uc(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const pE=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,d0=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function tSe(e,t,r){const n=d0(Uc(e.r)),i=d0(Uc(e.g)),a=d0(Uc(e.b));return{r:uf(pE(n+r*(d0(Uc(t.r))-n))),g:uf(pE(i+r*(d0(Uc(t.g))-i))),b:uf(pE(a+r*(d0(Uc(t.b))-a))),a:e.a+r*(t.a-e.a)}}function Sy(e,t,r){if(e){let n=TF(e);n[t]=Math.max(0,Math.min(n[t]+n[t]*r,t===0?360:1)),n=UF(n),e.r=n[0],e.g=n[1],e.b=n[2]}}function HV(e,t){return e&&Object.assign(t||{},e)}function wP(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=uf(e[3]))):(t=HV(e,{r:0,g:0,b:0,a:1}),t.a=uf(t.a)),t}function rSe(e){return e.charAt(0)==="r"?Z4e(e):q4e(e)}class I1{constructor(t){if(t instanceof I1)return t;const r=typeof t;let n;r==="object"?n=wP(t):r==="string"&&(n=k4e(t)||X4e(t)||rSe(t)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var t=HV(this._rgb);return t&&(t.a=Uc(t.a)),t}set rgb(t){this._rgb=wP(t)}rgbString(){return this._valid?eSe(this._rgb):void 0}hexString(){return this._valid?R4e(this._rgb):void 0}hslString(){return this._valid?Y4e(this._rgb):void 0}mix(t,r){if(t){const n=this.rgb,i=t.rgb;let a;const s=r===a?.5:r,o=2*s-1,l=n.a-i.a,c=((o*l===-1?o:(o+l)/(1+o*l))+1)/2;a=1-c,n.r=255&c*n.r+a*i.r+.5,n.g=255&c*n.g+a*i.g+.5,n.b=255&c*n.b+a*i.b+.5,n.a=s*n.a+(1-s)*i.a,this.rgb=n}return this}interpolate(t,r){return t&&(this._rgb=tSe(this._rgb,t._rgb,r)),this}clone(){return new I1(this.rgb)}alpha(t){return this._rgb.a=uf(t),this}clearer(t){const r=this._rgb;return r.a*=1-t,this}greyscale(){const t=this._rgb,r=Cv(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=r,this}opaquer(t){const r=this._rgb;return r.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 Sy(this._rgb,2,t),this}darken(t){return Sy(this._rgb,2,-t),this}saturate(t){return Sy(this._rgb,1,t),this}desaturate(t){return Sy(this._rgb,1,-t),this}rotate(t){return W4e(this._rgb,t),this}}/*!
 * Chart.js v4.5.1
 * https://www.chartjs.org
 * (c) 2025 Chart.js Contributors
 * Released under the MIT License
 */function Sc(){}const nSe=(()=>{let e=0;return()=>e++})();function Ln(e){return e==null}function Ga(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 Wr(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function yA(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function Dl(e,t){return yA(e)?e:t}function Or(e,t){return typeof e>"u"?t:e}const iSe=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,KV=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function Hn(e,t,r){if(e&&typeof e.call=="function")return e.apply(r,t)}function ln(e,t,r,n){let i,a,s;if(Ga(e))for(a=e.length,i=0;i<a;i++)t.call(r,e[i],i);else if(Wr(e))for(s=Object.keys(e),a=s.length,i=0;i<a;i++)t.call(r,e[s[i]],s[i])}function Cw(e,t){let r,n,i,a;if(!e||!t||e.length!==t.length)return!1;for(r=0,n=e.length;r<n;++r)if(i=e[r],a=t[r],i.datasetIndex!==a.datasetIndex||i.index!==a.index)return!1;return!0}function Ew(e){if(Ga(e))return e.map(Ew);if(Wr(e)){const t=Object.create(null),r=Object.keys(e),n=r.length;let i=0;for(;i<n;++i)t[r[i]]=Ew(e[r[i]]);return t}return e}function zV(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function aSe(e,t,r,n){if(!zV(e))return;const i=t[e],a=r[e];Wr(i)&&Wr(a)?M1(i,a,n):t[e]=Ew(a)}function M1(e,t,r){const n=Ga(t)?t:[t],i=n.length;if(!Wr(e))return e;r=r||{};const a=r.merger||aSe;let s;for(let o=0;o<i;++o){if(s=n[o],!Wr(s))continue;const l=Object.keys(s);for(let c=0,f=l.length;c<f;++c)a(l[c],e,s,r)}return e}function i1(e,t){return M1(e,t,{merger:sSe})}function sSe(e,t,r){if(!zV(e))return;const n=t[e],i=r[e];Wr(n)&&Wr(i)?i1(n,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=Ew(i))}const xP={"":e=>e,x:e=>e.x,y:e=>e.y};function oSe(e){const t=e.split("."),r=[];let n="";for(const i of t)n+=i,n.endsWith("\\")?n=n.slice(0,-1)+".":(r.push(n),n="");return r}function ASe(e){const t=oSe(e);return r=>{for(const n of t){if(n==="")break;r=r&&r[n]}return r}}function P1(e,t){return(xP[t]||(xP[t]=ASe(t)))(e)}function NF(e){return e.charAt(0).toUpperCase()+e.slice(1)}const _w=e=>typeof e<"u",bf=e=>typeof e=="function",bP=(e,t)=>{if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0};function lSe(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const Tn=Math.PI,Ci=2*Tn,cSe=Ci+Tn,Sw=Number.POSITIVE_INFINITY,uSe=Tn/180,oa=Tn/2,sh=Tn/4,BP=Tn*2/3,VV=Math.log10,X0=Math.sign;function a1(e,t,r){return Math.abs(e-t)<r}function CP(e){const t=Math.round(e);e=a1(e,t,e/1e3)?t:e;const r=Math.pow(10,Math.floor(VV(e))),n=e/r;return(n<=1?1:n<=2?2:n<=5?5:10)*r}function fSe(e){const t=[],r=Math.sqrt(e);let n;for(n=1;n<r;n++)e%n===0&&(t.push(n),t.push(e/n));return r===(r|0)&&t.push(r),t.sort((i,a)=>i-a).pop(),t}function hSe(e){return typeof e=="symbol"||typeof e=="object"&&e!==null&&!(Symbol.toPrimitive in e||"toString"in e||"valueOf"in e)}function k1(e){return!hSe(e)&&!isNaN(parseFloat(e))&&isFinite(e)}function dSe(e,t){const r=Math.round(e);return r-t<=e&&r+t>=e}function gSe(e,t,r){let n,i,a;for(n=0,i=e.length;n<i;n++)a=e[n][r],isNaN(a)||(t.min=Math.min(t.min,a),t.max=Math.max(t.max,a))}function Mc(e){return e*(Tn/180)}function pSe(e){return e*(180/Tn)}function EP(e){if(!yA(e))return;let t=1,r=0;for(;Math.round(e*t)/t!==e;)t*=10,r++;return r}function GV(e,t){const r=t.x-e.x,n=t.y-e.y,i=Math.sqrt(r*r+n*n);let a=Math.atan2(n,r);return a<-.5*Tn&&(a+=Ci),{angle:a,distance:i}}function w4(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function vSe(e,t){return(e-t+cSe)%Ci-Tn}function JA(e){return(e%Ci+Ci)%Ci}function Q1(e,t,r,n){const i=JA(e),a=JA(t),s=JA(r),o=JA(a-i),l=JA(s-i),c=JA(i-a),f=JA(i-s);return i===a||i===s||n&&a===s||o>l&&c<f}function Fs(e,t,r){return Math.max(t,Math.min(r,e))}function mSe(e){return Fs(e,-32768,32767)}function F0(e,t,r,n=1e-6){return e>=Math.min(t,r)-n&&e<=Math.max(t,r)+n}function LF(e,t,r){r=r||(s=>e[s]<t);let n=e.length-1,i=0,a;for(;n-i>1;)a=i+n>>1,r(a)?i=a:n=a;return{lo:i,hi:n}}const bh=(e,t,r,n)=>LF(e,r,n?i=>{const a=e[i][t];return a<r||a===r&&e[i+1][t]===r}:i=>e[i][t]<r),ySe=(e,t,r)=>LF(e,r,n=>e[n][t]>=r);function wSe(e,t,r){let n=0,i=e.length;for(;n<i&&e[n]<t;)n++;for(;i>n&&e[i-1]>r;)i--;return n>0||i<e.length?e.slice(n,i):e}const qV=["push","pop","shift","splice","unshift"];function xSe(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),qV.forEach(r=>{const n="_onData"+NF(r),i=e[r];Object.defineProperty(e,r,{configurable:!0,enumerable:!1,value(...a){const s=i.apply(this,a);return e._chartjs.listeners.forEach(o=>{typeof o[n]=="function"&&o[n](...a)}),s}})})}function _P(e,t){const r=e._chartjs;if(!r)return;const n=r.listeners,i=n.indexOf(t);i!==-1&&n.splice(i,1),!(n.length>0)&&(qV.forEach(a=>{delete e[a]}),delete e._chartjs)}function bSe(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const WV=(function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame})();function YV(e,t){let r=[],n=!1;return function(...i){r=i,n||(n=!0,WV.call(window,()=>{n=!1,e.apply(t,r)}))}}function BSe(e,t){let r;return function(...n){return t?(clearTimeout(r),r=setTimeout(e,t,n)):e.apply(this,n),t}}const $V=e=>e==="start"?"left":e==="end"?"right":"center",_o=(e,t,r)=>e==="start"?t:e==="end"?r:(t+r)/2,CSe=(e,t,r,n)=>e===(n?"left":"right")?r:e==="center"?(t+r)/2:t;function ESe(e,t,r){const n=t.length;let i=0,a=n;if(e._sorted){const{iScale:s,vScale:o,_parsed:l}=e,c=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null,f=s.axis,{min:h,max:p,minDefined:g,maxDefined:y}=s.getUserBounds();if(g){if(i=Math.min(bh(l,f,h).lo,r?n:bh(t,f,s.getPixelForValue(h)).lo),c){const m=l.slice(0,i+1).reverse().findIndex(w=>!Ln(w[o.axis]));i-=Math.max(0,m)}i=Fs(i,0,n-1)}if(y){let m=Math.max(bh(l,s.axis,p,!0).hi+1,r?0:bh(t,f,s.getPixelForValue(p),!0).hi+1);if(c){const w=l.slice(m-1).findIndex(b=>!Ln(b[o.axis]));m+=Math.max(0,w)}a=Fs(m,i,n)-i}else a=n-i}return{start:i,count:a}}function _Se(e){const{xScale:t,yScale:r,_scaleRanges:n}=e,i={xmin:t.min,xmax:t.max,ymin:r.min,ymax:r.max};if(!n)return e._scaleRanges=i,!0;const a=n.xmin!==t.min||n.xmax!==t.max||n.ymin!==r.min||n.ymax!==r.max;return Object.assign(n,i),a}const Fy=e=>e===0||e===1,SP=(e,t,r)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*Ci/r)),FP=(e,t,r)=>Math.pow(2,-10*e)*Math.sin((e-t)*Ci/r)+1,s1={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*oa)+1,easeOutSine:e=>Math.sin(e*oa),easeInOutSine:e=>-.5*(Math.cos(Tn*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=>Fy(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=>Fy(e)?e:SP(e,.075,.3),easeOutElastic:e=>Fy(e)?e:FP(e,.075,.3),easeInOutElastic(e){return Fy(e)?e:e<.5?.5*SP(e*2,.1125,.45):.5+.5*FP(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-s1.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?s1.easeInBounce(e*2)*.5:s1.easeOutBounce(e*2-1)*.5+.5};function DF(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function TP(e){return DF(e)?e:new I1(e)}function vE(e){return DF(e)?e:new I1(e).saturate(.5).darken(.1).hexString()}const SSe=["x","y","borderWidth","radius","tension"],FSe=["color","borderColor","backgroundColor"];function TSe(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:FSe},numbers:{type:"number",properties:SSe}}),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 OSe(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const OP=new Map;function USe(e,t){t=t||{};const r=e+JSON.stringify(t);let n=OP.get(r);return n||(n=new Intl.NumberFormat(e,t),OP.set(r,n)),n}function IF(e,t,r){return USe(t,r).format(e)}const NSe={values(e){return Ga(e)?e:""+e},numeric(e,t,r){if(e===0)return"0";const n=this.chart.options.locale;let i,a=e;if(r.length>1){const c=Math.max(Math.abs(r[0].value),Math.abs(r[r.length-1].value));(c<1e-4||c>1e15)&&(i="scientific"),a=LSe(e,r)}const s=VV(Math.abs(a)),o=isNaN(s)?1:Math.max(Math.min(-1*Math.floor(s),20),0),l={notation:i,minimumFractionDigits:o,maximumFractionDigits:o};return Object.assign(l,this.options.ticks.format),IF(e,n,l)}};function LSe(e,t){let r=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(r)>=1&&e!==Math.floor(e)&&(r=e-Math.floor(e)),r}var XV={formatters:NSe};function DSe(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,r)=>r.lineWidth,tickColor:(t,r)=>r.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:XV.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 qh=Object.create(null),x4=Object.create(null);function o1(e,t){if(!t)return e;const r=t.split(".");for(let n=0,i=r.length;n<i;++n){const a=r[n];e=e[a]||(e[a]=Object.create(null))}return e}function mE(e,t,r){return typeof t=="string"?M1(o1(e,t),r):M1(o1(e,""),t)}class ISe{constructor(t,r){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=n=>n.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=(n,i)=>vE(i.backgroundColor),this.hoverBorderColor=(n,i)=>vE(i.borderColor),this.hoverColor=(n,i)=>vE(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(r)}set(t,r){return mE(this,t,r)}get(t){return o1(this,t)}describe(t,r){return mE(x4,t,r)}override(t,r){return mE(qh,t,r)}route(t,r,n,i){const a=o1(this,t),s=o1(this,n),o="_"+r;Object.defineProperties(a,{[o]:{value:a[r],writable:!0},[r]:{enumerable:!0,get(){const l=this[o],c=s[i];return Wr(l)?Object.assign({},c,l):Or(l,c)},set(l){this[o]=l}}})}apply(t){t.forEach(r=>r(this))}}var Mi=new ISe({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[TSe,OSe,DSe]);function MSe(e){return!e||Ln(e.size)||Ln(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function UP(e,t,r,n,i){let a=t[i];return a||(a=t[i]=e.measureText(i).width,r.push(i)),a>n&&(n=a),n}function oh(e,t,r){const n=e.currentDevicePixelRatio,i=r!==0?Math.max(r/2,.5):0;return Math.round((t-i)*n)/n+i}function NP(e,t){!t&&!e||(t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function b4(e,t,r,n){JV(e,t,r,n,null)}function JV(e,t,r,n,i){let a,s,o,l,c,f,h,p;const g=t.pointStyle,y=t.rotation,m=t.radius;let w=(y||0)*uSe;if(g&&typeof g=="object"&&(a=g.toString(),a==="[object HTMLImageElement]"||a==="[object HTMLCanvasElement]")){e.save(),e.translate(r,n),e.rotate(w),e.drawImage(g,-g.width/2,-g.height/2,g.width,g.height),e.restore();return}if(!(isNaN(m)||m<=0)){switch(e.beginPath(),g){default:i?e.ellipse(r,n,i/2,m,0,0,Ci):e.arc(r,n,m,0,Ci),e.closePath();break;case"triangle":f=i?i/2:m,e.moveTo(r+Math.sin(w)*f,n-Math.cos(w)*m),w+=BP,e.lineTo(r+Math.sin(w)*f,n-Math.cos(w)*m),w+=BP,e.lineTo(r+Math.sin(w)*f,n-Math.cos(w)*m),e.closePath();break;case"rectRounded":c=m*.516,l=m-c,s=Math.cos(w+sh)*l,h=Math.cos(w+sh)*(i?i/2-c:l),o=Math.sin(w+sh)*l,p=Math.sin(w+sh)*(i?i/2-c:l),e.arc(r-h,n-o,c,w-Tn,w-oa),e.arc(r+p,n-s,c,w-oa,w),e.arc(r+h,n+o,c,w,w+oa),e.arc(r-p,n+s,c,w+oa,w+Tn),e.closePath();break;case"rect":if(!y){l=Math.SQRT1_2*m,f=i?i/2:l,e.rect(r-f,n-l,2*f,2*l);break}w+=sh;case"rectRot":h=Math.cos(w)*(i?i/2:m),s=Math.cos(w)*m,o=Math.sin(w)*m,p=Math.sin(w)*(i?i/2:m),e.moveTo(r-h,n-o),e.lineTo(r+p,n-s),e.lineTo(r+h,n+o),e.lineTo(r-p,n+s),e.closePath();break;case"crossRot":w+=sh;case"cross":h=Math.cos(w)*(i?i/2:m),s=Math.cos(w)*m,o=Math.sin(w)*m,p=Math.sin(w)*(i?i/2:m),e.moveTo(r-h,n-o),e.lineTo(r+h,n+o),e.moveTo(r+p,n-s),e.lineTo(r-p,n+s);break;case"star":h=Math.cos(w)*(i?i/2:m),s=Math.cos(w)*m,o=Math.sin(w)*m,p=Math.sin(w)*(i?i/2:m),e.moveTo(r-h,n-o),e.lineTo(r+h,n+o),e.moveTo(r+p,n-s),e.lineTo(r-p,n+s),w+=sh,h=Math.cos(w)*(i?i/2:m),s=Math.cos(w)*m,o=Math.sin(w)*m,p=Math.sin(w)*(i?i/2:m),e.moveTo(r-h,n-o),e.lineTo(r+h,n+o),e.moveTo(r+p,n-s),e.lineTo(r-p,n+s);break;case"line":s=i?i/2:Math.cos(w)*m,o=Math.sin(w)*m,e.moveTo(r-s,n-o),e.lineTo(r+s,n+o);break;case"dash":e.moveTo(r,n),e.lineTo(r+Math.cos(w)*(i?i/2:m),n+Math.sin(w)*m);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function R1(e,t,r){return r=r||.5,!t||e&&e.x>t.left-r&&e.x<t.right+r&&e.y>t.top-r&&e.y<t.bottom+r}function MF(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function PF(e){e.restore()}function PSe(e,t,r,n,i){if(!t)return e.lineTo(r.x,r.y);if(i==="middle"){const a=(t.x+r.x)/2;e.lineTo(a,t.y),e.lineTo(a,r.y)}else i==="after"!=!!n?e.lineTo(t.x,r.y):e.lineTo(r.x,t.y);e.lineTo(r.x,r.y)}function kSe(e,t,r,n){if(!t)return e.lineTo(r.x,r.y);e.bezierCurveTo(n?t.cp1x:t.cp2x,n?t.cp1y:t.cp2y,n?r.cp2x:r.cp1x,n?r.cp2y:r.cp1y,r.x,r.y)}function QSe(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),Ln(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 RSe(e,t,r,n,i){if(i.strikethrough||i.underline){const a=e.measureText(n),s=t-a.actualBoundingBoxLeft,o=t+a.actualBoundingBoxRight,l=r-a.actualBoundingBoxAscent,c=r+a.actualBoundingBoxDescent,f=i.strikethrough?(l+c)/2:c;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=i.decorationWidth||2,e.moveTo(s,f),e.lineTo(o,f),e.stroke()}}function jSe(e,t){const r=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=r}function Fw(e,t,r,n,i,a={}){const s=Ga(t)?t:[t],o=a.strokeWidth>0&&a.strokeColor!=="";let l,c;for(e.save(),e.font=i.string,QSe(e,a),l=0;l<s.length;++l)c=s[l],a.backdrop&&jSe(e,a.backdrop),o&&(a.strokeColor&&(e.strokeStyle=a.strokeColor),Ln(a.strokeWidth)||(e.lineWidth=a.strokeWidth),e.strokeText(c,r,n,a.maxWidth)),e.fillText(c,r,n,a.maxWidth),RSe(e,r,n,c,a),n+=Number(i.lineHeight);e.restore()}function B4(e,t){const{x:r,y:n,w:i,h:a,radius:s}=t;e.arc(r+s.topLeft,n+s.topLeft,s.topLeft,1.5*Tn,Tn,!0),e.lineTo(r,n+a-s.bottomLeft),e.arc(r+s.bottomLeft,n+a-s.bottomLeft,s.bottomLeft,Tn,oa,!0),e.lineTo(r+i-s.bottomRight,n+a),e.arc(r+i-s.bottomRight,n+a-s.bottomRight,s.bottomRight,oa,0,!0),e.lineTo(r+i,n+s.topRight),e.arc(r+i-s.topRight,n+s.topRight,s.topRight,0,-oa,!0),e.lineTo(r+s.topLeft,n)}const HSe=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,KSe=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function zSe(e,t){const r=(""+e).match(HSe);if(!r||r[1]==="normal")return t*1.2;switch(e=+r[2],r[3]){case"px":return e;case"%":e/=100;break}return t*e}const VSe=e=>+e||0;function kF(e,t){const r={},n=Wr(t),i=n?Object.keys(t):t,a=Wr(e)?n?s=>Or(e[s],e[t[s]]):s=>e[s]:()=>e;for(const s of i)r[s]=VSe(a(s));return r}function GSe(e){return kF(e,{top:"y",right:"x",bottom:"y",left:"x"})}function A1(e){return kF(e,["topLeft","topRight","bottomLeft","bottomRight"])}function al(e){const t=GSe(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function ro(e,t){e=e||{},t=t||Mi.font;let r=Or(e.size,t.size);typeof r=="string"&&(r=parseInt(r,10));let n=Or(e.style,t.style);n&&!(""+n).match(KSe)&&(console.warn('Invalid font style specified: "'+n+'"'),n=void 0);const i={family:Or(e.family,t.family),lineHeight:zSe(Or(e.lineHeight,t.lineHeight),r),size:r,style:n,weight:Or(e.weight,t.weight),string:""};return i.string=MSe(i),i}function Ty(e,t,r,n){let i,a,s;for(i=0,a=e.length;i<a;++i)if(s=e[i],s!==void 0&&s!==void 0)return s}function qSe(e,t,r){const{min:n,max:i}=e,a=KV(t,(i-n)/2),s=(o,l)=>r&&o===0?0:o+l;return{min:s(n,-Math.abs(a)),max:s(i,a)}}function Ad(e,t){return Object.assign(Object.create(e),t)}function QF(e,t=[""],r,n,i=()=>e[0]){const a=r||e;typeof n>"u"&&(n=rG("_fallback",e));const s={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:a,_fallback:n,_getTarget:i,override:o=>QF([o,...e],t,a,n)};return new Proxy(s,{deleteProperty(o,l){return delete o[l],delete o._keys,delete e[0][l],!0},get(o,l){return eG(o,l,()=>t3e(l,t,e,o))},getOwnPropertyDescriptor(o,l){return Reflect.getOwnPropertyDescriptor(o._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(o,l){return DP(o).includes(l)},ownKeys(o){return DP(o)},set(o,l,c){const f=o._storage||(o._storage=i());return o[l]=f[l]=c,delete o._keys,!0}})}function J0(e,t,r,n){const i={_cacheable:!1,_proxy:e,_context:t,_subProxy:r,_stack:new Set,_descriptors:ZV(e,n),setContext:a=>J0(e,a,r,n),override:a=>J0(e.override(a),t,r,n)};return new Proxy(i,{deleteProperty(a,s){return delete a[s],delete e[s],!0},get(a,s,o){return eG(a,s,()=>YSe(a,s,o))},getOwnPropertyDescriptor(a,s){return a._descriptors.allKeys?Reflect.has(e,s)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,s)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(a,s){return Reflect.has(e,s)},ownKeys(){return Reflect.ownKeys(e)},set(a,s,o){return e[s]=o,delete a[s],!0}})}function ZV(e,t={scriptable:!0,indexable:!0}){const{_scriptable:r=t.scriptable,_indexable:n=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:r,indexable:n,isScriptable:bf(r)?r:()=>r,isIndexable:bf(n)?n:()=>n}}const WSe=(e,t)=>e?e+NF(t):t,RF=(e,t)=>Wr(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function eG(e,t,r){if(Object.prototype.hasOwnProperty.call(e,t)||t==="constructor")return e[t];const n=r();return e[t]=n,n}function YSe(e,t,r){const{_proxy:n,_context:i,_subProxy:a,_descriptors:s}=e;let o=n[t];return bf(o)&&s.isScriptable(t)&&(o=$Se(t,o,e,r)),Ga(o)&&o.length&&(o=XSe(t,o,e,s.isIndexable)),RF(t,o)&&(o=J0(o,i,a&&a[t],s)),o}function $Se(e,t,r,n){const{_proxy:i,_context:a,_subProxy:s,_stack:o}=r;if(o.has(e))throw new Error("Recursion detected: "+Array.from(o).join("->")+"->"+e);o.add(e);let l=t(a,s||n);return o.delete(e),RF(e,l)&&(l=jF(i._scopes,i,e,l)),l}function XSe(e,t,r,n){const{_proxy:i,_context:a,_subProxy:s,_descriptors:o}=r;if(typeof a.index<"u"&&n(e))return t[a.index%t.length];if(Wr(t[0])){const l=t,c=i._scopes.filter(f=>f!==l);t=[];for(const f of l){const h=jF(c,i,e,f);t.push(J0(h,a,s&&s[e],o))}}return t}function tG(e,t,r){return bf(e)?e(t,r):e}const JSe=(e,t)=>e===!0?t:typeof e=="string"?P1(t,e):void 0;function ZSe(e,t,r,n,i){for(const a of t){const s=JSe(r,a);if(s){e.add(s);const o=tG(s._fallback,r,i);if(typeof o<"u"&&o!==r&&o!==n)return o}else if(s===!1&&typeof n<"u"&&r!==n)return null}return!1}function jF(e,t,r,n){const i=t._rootScopes,a=tG(t._fallback,r,n),s=[...e,...i],o=new Set;o.add(n);let l=LP(o,s,r,a||r,n);return l===null||typeof a<"u"&&a!==r&&(l=LP(o,s,a,l,n),l===null)?!1:QF(Array.from(o),[""],i,a,()=>e3e(t,r,n))}function LP(e,t,r,n,i){for(;r;)r=ZSe(e,t,r,n,i);return r}function e3e(e,t,r){const n=e._getTarget();t in n||(n[t]={});const i=n[t];return Ga(i)&&Wr(r)?r:i||{}}function t3e(e,t,r,n){let i;for(const a of t)if(i=rG(WSe(a,e),r),typeof i<"u")return RF(e,i)?jF(r,n,e,i):i}function rG(e,t){for(const r of t){if(!r)continue;const n=r[e];if(typeof n<"u")return n}}function DP(e){let t=e._keys;return t||(t=e._keys=r3e(e._scopes)),t}function r3e(e){const t=new Set;for(const r of e)for(const n of Object.keys(r).filter(i=>!i.startsWith("_")))t.add(n);return Array.from(t)}const n3e=Number.EPSILON||1e-14,Z0=(e,t)=>t<e.length&&!e[t].skip&&e[t],nG=e=>e==="x"?"y":"x";function i3e(e,t,r,n){const i=e.skip?t:e,a=t,s=r.skip?t:r,o=w4(a,i),l=w4(s,a);let c=o/(o+l),f=l/(o+l);c=isNaN(c)?0:c,f=isNaN(f)?0:f;const h=n*c,p=n*f;return{previous:{x:a.x-h*(s.x-i.x),y:a.y-h*(s.y-i.y)},next:{x:a.x+p*(s.x-i.x),y:a.y+p*(s.y-i.y)}}}function a3e(e,t,r){const n=e.length;let i,a,s,o,l,c=Z0(e,0);for(let f=0;f<n-1;++f)if(l=c,c=Z0(e,f+1),!(!l||!c)){if(a1(t[f],0,n3e)){r[f]=r[f+1]=0;continue}i=r[f]/t[f],a=r[f+1]/t[f],o=Math.pow(i,2)+Math.pow(a,2),!(o<=9)&&(s=3/Math.sqrt(o),r[f]=i*s*t[f],r[f+1]=a*s*t[f])}}function s3e(e,t,r="x"){const n=nG(r),i=e.length;let a,s,o,l=Z0(e,0);for(let c=0;c<i;++c){if(s=o,o=l,l=Z0(e,c+1),!o)continue;const f=o[r],h=o[n];s&&(a=(f-s[r])/3,o[`cp1${r}`]=f-a,o[`cp1${n}`]=h-a*t[c]),l&&(a=(l[r]-f)/3,o[`cp2${r}`]=f+a,o[`cp2${n}`]=h+a*t[c])}}function o3e(e,t="x"){const r=nG(t),n=e.length,i=Array(n).fill(0),a=Array(n);let s,o,l,c=Z0(e,0);for(s=0;s<n;++s)if(o=l,l=c,c=Z0(e,s+1),!!l){if(c){const f=c[t]-l[t];i[s]=f!==0?(c[r]-l[r])/f:0}a[s]=o?c?X0(i[s-1])!==X0(i[s])?0:(i[s-1]+i[s])/2:i[s-1]:i[s]}a3e(e,i,a),s3e(e,a,t)}function Oy(e,t,r){return Math.max(Math.min(e,r),t)}function A3e(e,t){let r,n,i,a,s,o=R1(e[0],t);for(r=0,n=e.length;r<n;++r)s=a,a=o,o=r<n-1&&R1(e[r+1],t),a&&(i=e[r],s&&(i.cp1x=Oy(i.cp1x,t.left,t.right),i.cp1y=Oy(i.cp1y,t.top,t.bottom)),o&&(i.cp2x=Oy(i.cp2x,t.left,t.right),i.cp2y=Oy(i.cp2y,t.top,t.bottom)))}function l3e(e,t,r,n,i){let a,s,o,l;if(t.spanGaps&&(e=e.filter(c=>!c.skip)),t.cubicInterpolationMode==="monotone")o3e(e,i);else{let c=n?e[e.length-1]:e[0];for(a=0,s=e.length;a<s;++a)o=e[a],l=i3e(c,o,e[Math.min(a+1,s-(n?0:1))%s],t.tension),o.cp1x=l.previous.x,o.cp1y=l.previous.y,o.cp2x=l.next.x,o.cp2y=l.next.y,c=o}t.capBezierPoints&&A3e(e,r)}function HF(){return typeof window<"u"&&typeof document<"u"}function KF(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function Tw(e,t,r){let n;return typeof e=="string"?(n=parseInt(e,10),e.indexOf("%")!==-1&&(n=n/100*t.parentNode[r])):n=e,n}const Gx=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function c3e(e,t){return Gx(e).getPropertyValue(t)}const u3e=["top","right","bottom","left"];function Nh(e,t,r){const n={};r=r?"-"+r:"";for(let i=0;i<4;i++){const a=u3e[i];n[a]=parseFloat(e[t+"-"+a+r])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}const f3e=(e,t,r)=>(e>0||t>0)&&(!r||!r.shadowRoot);function h3e(e,t){const r=e.touches,n=r&&r.length?r[0]:e,{offsetX:i,offsetY:a}=n;let s=!1,o,l;if(f3e(i,a,e.target))o=i,l=a;else{const c=t.getBoundingClientRect();o=n.clientX-c.left,l=n.clientY-c.top,s=!0}return{x:o,y:l,box:s}}function hh(e,t){if("native"in e)return e;const{canvas:r,currentDevicePixelRatio:n}=t,i=Gx(r),a=i.boxSizing==="border-box",s=Nh(i,"padding"),o=Nh(i,"border","width"),{x:l,y:c,box:f}=h3e(e,r),h=s.left+(f&&o.left),p=s.top+(f&&o.top);let{width:g,height:y}=t;return a&&(g-=s.width+o.width,y-=s.height+o.height),{x:Math.round((l-h)/g*r.width/n),y:Math.round((c-p)/y*r.height/n)}}function d3e(e,t,r){let n,i;if(t===void 0||r===void 0){const a=e&&KF(e);if(!a)t=e.clientWidth,r=e.clientHeight;else{const s=a.getBoundingClientRect(),o=Gx(a),l=Nh(o,"border","width"),c=Nh(o,"padding");t=s.width-c.width-l.width,r=s.height-c.height-l.height,n=Tw(o.maxWidth,a,"clientWidth"),i=Tw(o.maxHeight,a,"clientHeight")}}return{width:t,height:r,maxWidth:n||Sw,maxHeight:i||Sw}}const sf=e=>Math.round(e*10)/10;function g3e(e,t,r,n){const i=Gx(e),a=Nh(i,"margin"),s=Tw(i.maxWidth,e,"clientWidth")||Sw,o=Tw(i.maxHeight,e,"clientHeight")||Sw,l=d3e(e,t,r);let{width:c,height:f}=l;if(i.boxSizing==="content-box"){const p=Nh(i,"border","width"),g=Nh(i,"padding");c-=g.width+p.width,f-=g.height+p.height}return c=Math.max(0,c-a.width),f=Math.max(0,n?c/n:f-a.height),c=sf(Math.min(c,s,l.maxWidth)),f=sf(Math.min(f,o,l.maxHeight)),c&&!f&&(f=sf(c/2)),(t!==void 0||r!==void 0)&&n&&l.height&&f>l.height&&(f=l.height,c=sf(Math.floor(f*n))),{width:c,height:f}}function IP(e,t,r){const n=t||1,i=sf(e.height*n),a=sf(e.width*n);e.height=sf(e.height),e.width=sf(e.width);const s=e.canvas;return s.style&&(r||!s.style.height&&!s.style.width)&&(s.style.height=`${e.height}px`,s.style.width=`${e.width}px`),e.currentDevicePixelRatio!==n||s.height!==i||s.width!==a?(e.currentDevicePixelRatio=n,s.height=i,s.width=a,e.ctx.setTransform(n,0,0,n,0,0),!0):!1}const p3e=(function(){let e=!1;try{const t={get passive(){return e=!0,!1}};HF()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return e})();function MP(e,t){const r=c3e(e,t),n=r&&r.match(/^(\d+)(\.\d+)?px$/);return n?+n[1]:void 0}function dh(e,t,r,n){return{x:e.x+r*(t.x-e.x),y:e.y+r*(t.y-e.y)}}function v3e(e,t,r,n){return{x:e.x+r*(t.x-e.x),y:n==="middle"?r<.5?e.y:t.y:n==="after"?r<1?e.y:t.y:r>0?t.y:e.y}}function m3e(e,t,r,n){const i={x:e.cp2x,y:e.cp2y},a={x:t.cp1x,y:t.cp1y},s=dh(e,i,r),o=dh(i,a,r),l=dh(a,t,r),c=dh(s,o,r),f=dh(o,l,r);return dh(c,f,r)}const y3e=function(e,t){return{x(r){return e+e+t-r},setWidth(r){t=r},textAlign(r){return r==="center"?r:r==="right"?"left":"right"},xPlus(r,n){return r-n},leftForLtr(r,n){return r-n}}},w3e=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function R0(e,t,r){return e?y3e(t,r):w3e()}function iG(e,t){let r,n;(t==="ltr"||t==="rtl")&&(r=e.canvas.style,n=[r.getPropertyValue("direction"),r.getPropertyPriority("direction")],r.setProperty("direction",t,"important"),e.prevTextDirection=n)}function aG(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function sG(e){return e==="angle"?{between:Q1,compare:vSe,normalize:JA}:{between:F0,compare:(t,r)=>t-r,normalize:t=>t}}function PP({start:e,end:t,count:r,loop:n,style:i}){return{start:e%r,end:t%r,loop:n&&(t-e+1)%r===0,style:i}}function x3e(e,t,r){const{property:n,start:i,end:a}=r,{between:s,normalize:o}=sG(n),l=t.length;let{start:c,end:f,loop:h}=e,p,g;if(h){for(c+=l,f+=l,p=0,g=l;p<g&&s(o(t[c%l][n]),i,a);++p)c--,f--;c%=l,f%=l}return f<c&&(f+=l),{start:c,end:f,loop:h,style:e.style}}function b3e(e,t,r){if(!r)return[e];const{property:n,start:i,end:a}=r,s=t.length,{compare:o,between:l,normalize:c}=sG(n),{start:f,end:h,loop:p,style:g}=x3e(e,t,r),y=[];let m=!1,w=null,b,E,S;const T=()=>l(i,S,b)&&o(i,S)!==0,D=()=>o(a,b)===0||l(a,S,b),k=()=>m||T(),P=()=>!m||D();for(let R=f,O=f;R<=h;++R)E=t[R%s],!E.skip&&(b=c(E[n]),b!==S&&(m=l(b,i,a),w===null&&k()&&(w=o(b,i)===0?R:O),w!==null&&P()&&(y.push(PP({start:w,end:R,loop:p,count:s,style:g})),w=null),O=R,S=b));return w!==null&&y.push(PP({start:w,end:h,loop:p,count:s,style:g})),y}function B3e(e,t){const r=[],n=e.segments;for(let i=0;i<n.length;i++){const a=b3e(n[i],e.points,t);a.length&&r.push(...a)}return r}function C3e(e,t,r,n){let i=0,a=t-1;if(r&&!n)for(;i<t&&!e[i].skip;)i++;for(;i<t&&e[i].skip;)i++;for(i%=t,r&&(a+=i);a>i&&e[a%t].skip;)a--;return a%=t,{start:i,end:a}}function E3e(e,t,r,n){const i=e.length,a=[];let s=t,o=e[t],l;for(l=t+1;l<=r;++l){const c=e[l%i];c.skip||c.stop?o.skip||(n=!1,a.push({start:t%i,end:(l-1)%i,loop:n}),t=s=c.stop?l:null):(s=l,o.skip&&(t=l)),o=c}return s!==null&&a.push({start:t%i,end:s%i,loop:n}),a}function _3e(e,t){const r=e.points,n=e.options.spanGaps,i=r.length;if(!i)return[];const a=!!e._loop,{start:s,end:o}=C3e(r,i,a,n);if(n===!0)return kP(e,[{start:s,end:o,loop:a}],r,t);const l=o<s?o+i:o,c=!!e._fullLoop&&s===0&&o===i-1;return kP(e,E3e(r,s,l,c),r,t)}function kP(e,t,r,n){return!n||!n.setContext||!r?t:S3e(e,t,r,n)}function S3e(e,t,r,n){const i=e._chart.getContext(),a=QP(e.options),{_datasetIndex:s,options:{spanGaps:o}}=e,l=r.length,c=[];let f=a,h=t[0].start,p=h;function g(y,m,w,b){const E=o?-1:1;if(y!==m){for(y+=l;r[y%l].skip;)y-=E;for(;r[m%l].skip;)m+=E;y%l!==m%l&&(c.push({start:y%l,end:m%l,loop:w,style:b}),f=b,h=m%l)}}for(const y of t){h=o?h:y.start;let m=r[h%l],w;for(p=h+1;p<=y.end;p++){const b=r[p%l];w=QP(n.setContext(Ad(i,{type:"segment",p0:m,p1:b,p0DataIndex:(p-1)%l,p1DataIndex:p%l,datasetIndex:s}))),F3e(w,f)&&g(h,p-1,y.loop,f),m=b,f=w}h<p-1&&g(h,p-1,y.loop,f)}return c}function QP(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function F3e(e,t){if(!t)return!1;const r=[],n=function(i,a){return DF(a)?(r.includes(a)||r.push(a),r.indexOf(a)):a};return JSON.stringify(e,n)!==JSON.stringify(t,n)}function Uy(e,t,r){return e.options.clip?e[r]:t[r]}function T3e(e,t){const{xScale:r,yScale:n}=e;return r&&n?{left:Uy(r,t,"left"),right:Uy(r,t,"right"),top:Uy(n,t,"top"),bottom:Uy(n,t,"bottom")}:t}function O3e(e,t){const r=t._clip;if(r.disabled)return!1;const n=T3e(t,e.chartArea);return{left:r.left===!1?0:n.left-(r.left===!0?0:r.left),right:r.right===!1?e.width:n.right+(r.right===!0?0:r.right),top:r.top===!1?0:n.top-(r.top===!0?0:r.top),bottom:r.bottom===!1?e.height:n.bottom+(r.bottom===!0?0:r.bottom)}}/*!
 * Chart.js v4.5.1
 * https://www.chartjs.org
 * (c) 2025 Chart.js Contributors
 * Released under the MIT License
 */class U3e{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,r,n,i){const a=r.listeners[i],s=r.duration;a.forEach(o=>o({chart:t,initial:r.initial,numSteps:s,currentStep:Math.min(n-r.start,s)}))}_refresh(){this._request||(this._running=!0,this._request=WV.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let r=0;this._charts.forEach((n,i)=>{if(!n.running||!n.items.length)return;const a=n.items;let s=a.length-1,o=!1,l;for(;s>=0;--s)l=a[s],l._active?(l._total>n.duration&&(n.duration=l._total),l.tick(t),o=!0):(a[s]=a[a.length-1],a.pop());o&&(i.draw(),this._notify(i,n,t,"progress")),a.length||(n.running=!1,this._notify(i,n,t,"complete"),n.initial=!1),r+=a.length}),this._lastDate=t,r===0&&(this._running=!1)}_getAnims(t){const r=this._charts;let n=r.get(t);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},r.set(t,n)),n}listen(t,r,n){this._getAnims(t).listeners[r].push(n)}add(t,r){!r||!r.length||this._getAnims(t).items.push(...r)}has(t){return this._getAnims(t).items.length>0}start(t){const r=this._charts.get(t);r&&(r.running=!0,r.start=Date.now(),r.duration=r.items.reduce((n,i)=>Math.max(n,i._duration),0),this._refresh())}running(t){if(!this._running)return!1;const r=this._charts.get(t);return!(!r||!r.running||!r.items.length)}stop(t){const r=this._charts.get(t);if(!r||!r.items.length)return;const n=r.items;let i=n.length-1;for(;i>=0;--i)n[i].cancel();r.items=[],this._notify(t,r,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var Fc=new U3e;const RP="transparent",N3e={boolean(e,t,r){return r>.5?t:e},color(e,t,r){const n=TP(e||RP),i=n.valid&&TP(t||RP);return i&&i.valid?i.mix(n,r).hexString():t},number(e,t,r){return e+(t-e)*r}};class L3e{constructor(t,r,n,i){const a=r[n];i=Ty([t.to,i,a,t.from]);const s=Ty([t.from,a,i]);this._active=!0,this._fn=t.fn||N3e[t.type||typeof s],this._easing=s1[t.easing]||s1.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=r,this._prop=n,this._from=s,this._to=i,this._promises=void 0}active(){return this._active}update(t,r,n){if(this._active){this._notify(!1);const i=this._target[this._prop],a=n-this._start,s=this._duration-a;this._start=n,this._duration=Math.floor(Math.max(s,t.duration)),this._total+=a,this._loop=!!t.loop,this._to=Ty([t.to,r,i,t.from]),this._from=Ty([t.from,i,r])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const r=t-this._start,n=this._duration,i=this._prop,a=this._from,s=this._loop,o=this._to;let l;if(this._active=a!==o&&(s||r<n),!this._active){this._target[i]=o,this._notify(!0);return}if(r<0){this._target[i]=a;return}l=r/n%2,l=s&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[i]=this._fn(a,o,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((r,n)=>{t.push({res:r,rej:n})})}_notify(t){const r=t?"res":"rej",n=this._promises||[];for(let i=0;i<n.length;i++)n[i][r]()}}class oG{constructor(t,r){this._chart=t,this._properties=new Map,this.configure(r)}configure(t){if(!Wr(t))return;const r=Object.keys(Mi.animation),n=this._properties;Object.getOwnPropertyNames(t).forEach(i=>{const a=t[i];if(!Wr(a))return;const s={};for(const o of r)s[o]=a[o];(Ga(a.properties)&&a.properties||[i]).forEach(o=>{(o===i||!n.has(o))&&n.set(o,s)})})}_animateOptions(t,r){const n=r.options,i=I3e(t,n);if(!i)return[];const a=this._createAnimations(i,n);return n.$shared&&D3e(t.options.$animations,n).then(()=>{t.options=n},()=>{}),a}_createAnimations(t,r){const n=this._properties,i=[],a=t.$animations||(t.$animations={}),s=Object.keys(r),o=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,r));continue}const f=r[c];let h=a[c];const p=n.get(c);if(h)if(p&&h.active()){h.update(p,f,o);continue}else h.cancel();if(!p||!p.duration){t[c]=f;continue}a[c]=h=new L3e(p,t,c,f),i.push(h)}return i}update(t,r){if(this._properties.size===0){Object.assign(t,r);return}const n=this._createAnimations(t,r);if(n.length)return Fc.add(this._chart,n),!0}}function D3e(e,t){const r=[],n=Object.keys(t);for(let i=0;i<n.length;i++){const a=e[n[i]];a&&a.active()&&r.push(a.wait())}return Promise.all(r)}function I3e(e,t){if(!t)return;let r=e.options;if(!r){e.options=t;return}return r.$shared&&(e.options=r=Object.assign({},r,{$shared:!1,$animations:{}})),r}function jP(e,t){const r=e&&e.options||{},n=r.reverse,i=r.min===void 0?t:0,a=r.max===void 0?t:0;return{start:n?a:i,end:n?i:a}}function M3e(e,t,r){if(r===!1)return!1;const n=jP(e,r),i=jP(t,r);return{top:i.end,right:n.end,bottom:i.start,left:n.start}}function P3e(e){let t,r,n,i;return Wr(e)?(t=e.top,r=e.right,n=e.bottom,i=e.left):t=r=n=i=e,{top:t,right:r,bottom:n,left:i,disabled:e===!1}}function AG(e,t){const r=[],n=e._getSortedDatasetMetas(t);let i,a;for(i=0,a=n.length;i<a;++i)r.push(n[i].index);return r}function HP(e,t,r,n={}){const i=e.keys,a=n.mode==="single";let s,o,l,c;if(t===null)return;let f=!1;for(s=0,o=i.length;s<o;++s){if(l=+i[s],l===r){if(f=!0,n.all)continue;break}c=e.values[l],yA(c)&&(a||t===0||X0(t)===X0(c))&&(t+=c)}return!f&&!n.all?0:t}function k3e(e,t){const{iScale:r,vScale:n}=t,i=r.axis==="x"?"x":"y",a=n.axis==="x"?"x":"y",s=Object.keys(e),o=new Array(s.length);let l,c,f;for(l=0,c=s.length;l<c;++l)f=s[l],o[l]={[i]:f,[a]:e[f]};return o}function yE(e,t){const r=e&&e.options.stacked;return r||r===void 0&&t.stack!==void 0}function Q3e(e,t,r){return`${e.id}.${t.id}.${r.stack||r.type}`}function R3e(e){const{min:t,max:r,minDefined:n,maxDefined:i}=e.getUserBounds();return{min:n?t:Number.NEGATIVE_INFINITY,max:i?r:Number.POSITIVE_INFINITY}}function j3e(e,t,r){const n=e[t]||(e[t]={});return n[r]||(n[r]={})}function KP(e,t,r,n){for(const i of t.getMatchingVisibleMetas(n).reverse()){const a=e[i.index];if(r&&a>0||!r&&a<0)return i.index}return null}function zP(e,t){const{chart:r,_cachedMeta:n}=e,i=r._stacks||(r._stacks={}),{iScale:a,vScale:s,index:o}=n,l=a.axis,c=s.axis,f=Q3e(a,s,n),h=t.length;let p;for(let g=0;g<h;++g){const y=t[g],{[l]:m,[c]:w}=y,b=y._stacks||(y._stacks={});p=b[c]=j3e(i,f,m),p[o]=w,p._top=KP(p,s,!0,n.type),p._bottom=KP(p,s,!1,n.type);const E=p._visualValues||(p._visualValues={});E[o]=w}}function wE(e,t){const r=e.scales;return Object.keys(r).filter(n=>r[n].axis===t).shift()}function H3e(e,t){return Ad(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function K3e(e,t,r){return Ad(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:r,index:t,mode:"default",type:"data"})}function Ep(e,t){const r=e.controller.index,n=e.vScale&&e.vScale.axis;if(n){t=t||e._parsed;for(const i of t){const a=i._stacks;if(!a||a[n]===void 0||a[n][r]===void 0)return;delete a[n][r],a[n]._visualValues!==void 0&&a[n]._visualValues[r]!==void 0&&delete a[n]._visualValues[r]}}}const xE=e=>e==="reset"||e==="none",VP=(e,t)=>t?e:Object.assign({},e),z3e=(e,t,r)=>e&&!t.hidden&&t._stacked&&{keys:AG(r,!0),values:null};class zF{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(t,r){this.chart=t,this._ctx=t.ctx,this.index=r,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=yE(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&&Ep(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,r=this._cachedMeta,n=this.getDataset(),i=(h,p,g,y)=>h==="x"?p:h==="r"?y:g,a=r.xAxisID=Or(n.xAxisID,wE(t,"x")),s=r.yAxisID=Or(n.yAxisID,wE(t,"y")),o=r.rAxisID=Or(n.rAxisID,wE(t,"r")),l=r.indexAxis,c=r.iAxisID=i(l,a,s,o),f=r.vAxisID=i(l,s,a,o);r.xScale=this.getScaleForId(a),r.yScale=this.getScaleForId(s),r.rScale=this.getScaleForId(o),r.iScale=this.getScaleForId(c),r.vScale=this.getScaleForId(f)}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 r=this._cachedMeta;return t===r.iScale?r.vScale:r.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&_P(this._data,this),t._stacked&&Ep(t)}_dataCheck(){const t=this.getDataset(),r=t.data||(t.data=[]),n=this._data;if(Wr(r)){const i=this._cachedMeta;this._data=k3e(r,i)}else if(n!==r){if(n){_P(n,this);const i=this._cachedMeta;Ep(i),i._parsed=[]}r&&Object.isExtensible(r)&&xSe(r,this),this._syncList=[],this._data=r}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const r=this._cachedMeta,n=this.getDataset();let i=!1;this._dataCheck();const a=r._stacked;r._stacked=yE(r.vScale,r),r.stack!==n.stack&&(i=!0,Ep(r),r.stack=n.stack),this._resyncElements(t),(i||a!==r._stacked)&&(zP(this,r._parsed),r._stacked=yE(r.vScale,r))}configure(){const t=this.chart.config,r=t.datasetScopeKeys(this._type),n=t.getOptionScopes(this.getDataset(),r,!0);this.options=t.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,r){const{_cachedMeta:n,_data:i}=this,{iScale:a,_stacked:s}=n,o=a.axis;let l=t===0&&r===i.length?!0:n._sorted,c=t>0&&n._parsed[t-1],f,h,p;if(this._parsing===!1)n._parsed=i,n._sorted=!0,p=i;else{Ga(i[t])?p=this.parseArrayData(n,i,t,r):Wr(i[t])?p=this.parseObjectData(n,i,t,r):p=this.parsePrimitiveData(n,i,t,r);const g=()=>h[o]===null||c&&h[o]<c[o];for(f=0;f<r;++f)n._parsed[f+t]=h=p[f],l&&(g()&&(l=!1),c=h);n._sorted=l}s&&zP(this,p)}parsePrimitiveData(t,r,n,i){const{iScale:a,vScale:s}=t,o=a.axis,l=s.axis,c=a.getLabels(),f=a===s,h=new Array(i);let p,g,y;for(p=0,g=i;p<g;++p)y=p+n,h[p]={[o]:f||a.parse(c[y],y),[l]:s.parse(r[y],y)};return h}parseArrayData(t,r,n,i){const{xScale:a,yScale:s}=t,o=new Array(i);let l,c,f,h;for(l=0,c=i;l<c;++l)f=l+n,h=r[f],o[l]={x:a.parse(h[0],f),y:s.parse(h[1],f)};return o}parseObjectData(t,r,n,i){const{xScale:a,yScale:s}=t,{xAxisKey:o="x",yAxisKey:l="y"}=this._parsing,c=new Array(i);let f,h,p,g;for(f=0,h=i;f<h;++f)p=f+n,g=r[p],c[f]={x:a.parse(P1(g,o),p),y:s.parse(P1(g,l),p)};return c}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,r,n){const i=this.chart,a=this._cachedMeta,s=r[t.axis],o={keys:AG(i,!0),values:r._stacks[t.axis]._visualValues};return HP(o,s,a.index,{mode:n})}updateRangeFromParsed(t,r,n,i){const a=n[r.axis];let s=a===null?NaN:a;const o=i&&n._stacks[r.axis];i&&o&&(i.values=o,s=HP(i,a,this._cachedMeta.index)),t.min=Math.min(t.min,s),t.max=Math.max(t.max,s)}getMinMax(t,r){const n=this._cachedMeta,i=n._parsed,a=n._sorted&&t===n.iScale,s=i.length,o=this._getOtherScale(t),l=z3e(r,n,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:f,max:h}=R3e(o);let p,g;function y(){g=i[p];const m=g[o.axis];return!yA(g[t.axis])||f>m||h<m}for(p=0;p<s&&!(!y()&&(this.updateRangeFromParsed(c,t,g,l),a));++p);if(a){for(p=s-1;p>=0;--p)if(!y()){this.updateRangeFromParsed(c,t,g,l);break}}return c}getAllParsedValues(t){const r=this._cachedMeta._parsed,n=[];let i,a,s;for(i=0,a=r.length;i<a;++i)s=r[i][t.axis],yA(s)&&n.push(s);return n}getMaxOverflow(){return!1}getLabelAndValue(t){const r=this._cachedMeta,n=r.iScale,i=r.vScale,a=this.getParsed(t);return{label:n?""+n.getLabelForValue(a[n.axis]):"",value:i?""+i.getLabelForValue(a[i.axis]):""}}_update(t){const r=this._cachedMeta;this.update(t||"default"),r._clip=P3e(Or(this.options.clip,M3e(r.xScale,r.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,r=this.chart,n=this._cachedMeta,i=n.data||[],a=r.chartArea,s=[],o=this._drawStart||0,l=this._drawCount||i.length-o,c=this.options.drawActiveElementsOnTop;let f;for(n.dataset&&n.dataset.draw(t,a,o,l),f=o;f<o+l;++f){const h=i[f];h.hidden||(h.active&&c?s.push(h):h.draw(t,a))}for(f=0;f<s.length;++f)s[f].draw(t,a)}getStyle(t,r){const n=r?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(t||0,n)}getContext(t,r,n){const i=this.getDataset();let a;if(t>=0&&t<this._cachedMeta.data.length){const s=this._cachedMeta.data[t];a=s.$context||(s.$context=K3e(this.getContext(),t,s)),a.parsed=this.getParsed(t),a.raw=i.data[t],a.index=a.dataIndex=t}else a=this.$context||(this.$context=H3e(this.chart.getContext(),this.index)),a.dataset=i,a.index=a.datasetIndex=this.index;return a.active=!!r,a.mode=n,a}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,r){return this._resolveElementOptions(this.dataElementType.id,r,t)}_resolveElementOptions(t,r="default",n){const i=r==="active",a=this._cachedDataOpts,s=t+"-"+r,o=a[s],l=this.enableOptionSharing&&_w(n);if(o)return VP(o,l);const c=this.chart.config,f=c.datasetElementScopeKeys(this._type,t),h=i?[`${t}Hover`,"hover",t,""]:[t,""],p=c.getOptionScopes(this.getDataset(),f),g=Object.keys(Mi.elements[t]),y=()=>this.getContext(n,i,r),m=c.resolveNamedOptions(p,g,y,h);return m.$shared&&(m.$shared=l,a[s]=Object.freeze(VP(m,l))),m}_resolveAnimations(t,r,n){const i=this.chart,a=this._cachedDataOpts,s=`animation-${r}`,o=a[s];if(o)return o;let l;if(i.options.animation!==!1){const f=this.chart.config,h=f.datasetAnimationScopeKeys(this._type,r),p=f.getOptionScopes(this.getDataset(),h);l=f.createResolver(p,this.getContext(t,n,r))}const c=new oG(i,l&&l.animations);return l&&l._cacheable&&(a[s]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,r){return!r||xE(t)||this.chart._animationsDisabled}_getSharedOptions(t,r){const n=this.resolveDataElementOptions(t,r),i=this._sharedOptions,a=this.getSharedOptions(n),s=this.includeOptions(r,a)||a!==i;return this.updateSharedOptions(a,r,n),{sharedOptions:a,includeOptions:s}}updateElement(t,r,n,i){xE(i)?Object.assign(t,n):this._resolveAnimations(r,i).update(t,n)}updateSharedOptions(t,r,n){t&&!xE(r)&&this._resolveAnimations(void 0,r).update(t,n)}_setStyle(t,r,n,i){t.active=i;const a=this.getStyle(r,i);this._resolveAnimations(r,n,i).update(t,{options:!i&&this.getSharedOptions(a)||a})}removeHoverStyle(t,r,n){this._setStyle(t,n,"active",!1)}setHoverStyle(t,r,n){this._setStyle(t,n,"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 r=this._data,n=this._cachedMeta.data;for(const[o,l,c]of this._syncList)this[o](l,c);this._syncList=[];const i=n.length,a=r.length,s=Math.min(a,i);s&&this.parse(0,s),a>i?this._insertElements(i,a-i,t):a<i&&this._removeElements(a,i-a)}_insertElements(t,r,n=!0){const i=this._cachedMeta,a=i.data,s=t+r;let o;const l=c=>{for(c.length+=r,o=c.length-1;o>=s;o--)c[o]=c[o-r]};for(l(a),o=t;o<s;++o)a[o]=new this.dataElementType;this._parsing&&l(i._parsed),this.parse(t,r),n&&this.updateElements(a,t,r,"reset")}updateElements(t,r,n,i){}_removeElements(t,r){const n=this._cachedMeta;if(this._parsing){const i=n._parsed.splice(t,r);n._stacked&&Ep(n,i)}n.data.splice(t,r)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[r,n,i]=t;this[r](n,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,r){r&&this._sync(["_removeElements",t,r]);const n=arguments.length-2;n&&this._sync(["_insertElements",t,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function V3e(e,t,r){let n=1,i=1,a=0,s=0;if(t<Ci){const o=e,l=o+t,c=Math.cos(o),f=Math.sin(o),h=Math.cos(l),p=Math.sin(l),g=(S,T,D)=>Q1(S,o,l,!0)?1:Math.max(T,T*r,D,D*r),y=(S,T,D)=>Q1(S,o,l,!0)?-1:Math.min(T,T*r,D,D*r),m=g(0,c,h),w=g(oa,f,p),b=y(Tn,c,h),E=y(Tn+oa,f,p);n=(m-b)/2,i=(w-E)/2,a=-(m+b)/2,s=-(w+E)/2}return{ratioX:n,ratioY:i,offsetX:a,offsetY:s}}class G3e extends zF{static id="doughnut";static 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"};static descriptors={_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const r=t.data,{labels:{pointStyle:n,textAlign:i,color:a,useBorderRadius:s,borderRadius:o}}=t.legend.options;return r.labels.length&&r.datasets.length?r.labels.map((l,c)=>{const h=t.getDatasetMeta(0).controller.getStyle(c);return{text:l,fillStyle:h.backgroundColor,fontColor:a,hidden:!t.getDataVisibility(c),lineDash:h.borderDash,lineDashOffset:h.borderDashOffset,lineJoin:h.borderJoinStyle,lineWidth:h.borderWidth,strokeStyle:h.borderColor,textAlign:i,pointStyle:n,borderRadius:s&&(o||h.borderRadius),index:c}}):[]}},onClick(t,r,n){n.chart.toggleDataVisibility(r.index),n.chart.update()}}}};constructor(t,r){super(t,r),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,r){const n=this.getDataset().data,i=this._cachedMeta;if(this._parsing===!1)i._parsed=n;else{let a=l=>+n[l];if(Wr(n[t])){const{key:l="value"}=this._parsing;a=c=>+P1(n[c],l)}let s,o;for(s=t,o=t+r;s<o;++s)i._parsed[s]=a(s)}}_getRotation(){return Mc(this.options.rotation-90)}_getCircumference(){return Mc(this.options.circumference)}_getRotationExtents(){let t=Ci,r=-Ci;for(let n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)&&this.chart.getDatasetMeta(n).type===this._type){const i=this.chart.getDatasetMeta(n).controller,a=i._getRotation(),s=i._getCircumference();t=Math.min(t,a),r=Math.max(r,a+s)}return{rotation:t,circumference:r-t}}update(t){const r=this.chart,{chartArea:n}=r,i=this._cachedMeta,a=i.data,s=this.getMaxBorderWidth()+this.getMaxOffset(a)+this.options.spacing,o=Math.max((Math.min(n.width,n.height)-s)/2,0),l=Math.min(iSe(this.options.cutout,o),1),c=this._getRingWeight(this.index),{circumference:f,rotation:h}=this._getRotationExtents(),{ratioX:p,ratioY:g,offsetX:y,offsetY:m}=V3e(h,f,l),w=(n.width-s)/p,b=(n.height-s)/g,E=Math.max(Math.min(w,b)/2,0),S=KV(this.options.radius,E),T=Math.max(S*l,0),D=(S-T)/this._getVisibleDatasetWeightTotal();this.offsetX=y*S,this.offsetY=m*S,i.total=this.calculateTotal(),this.outerRadius=S-D*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-D*c,0),this.updateElements(a,0,a.length,t)}_circumference(t,r){const n=this.options,i=this._cachedMeta,a=this._getCircumference();return r&&n.animation.animateRotate||!this.chart.getDataVisibility(t)||i._parsed[t]===null||i.data[t].hidden?0:this.calculateCircumference(i._parsed[t]*a/Ci)}updateElements(t,r,n,i){const a=i==="reset",s=this.chart,o=s.chartArea,c=s.options.animation,f=(o.left+o.right)/2,h=(o.top+o.bottom)/2,p=a&&c.animateScale,g=p?0:this.innerRadius,y=p?0:this.outerRadius,{sharedOptions:m,includeOptions:w}=this._getSharedOptions(r,i);let b=this._getRotation(),E;for(E=0;E<r;++E)b+=this._circumference(E,a);for(E=r;E<r+n;++E){const S=this._circumference(E,a),T=t[E],D={x:f+this.offsetX,y:h+this.offsetY,startAngle:b,endAngle:b+S,circumference:S,outerRadius:y,innerRadius:g};w&&(D.options=m||this.resolveDataElementOptions(E,T.active?"active":i)),b+=S,this.updateElement(T,E,D,i)}}calculateTotal(){const t=this._cachedMeta,r=t.data;let n=0,i;for(i=0;i<r.length;i++){const a=t._parsed[i];a!==null&&!isNaN(a)&&this.chart.getDataVisibility(i)&&!r[i].hidden&&(n+=Math.abs(a))}return n}calculateCircumference(t){const r=this._cachedMeta.total;return r>0&&!isNaN(t)?Ci*(Math.abs(t)/r):0}getLabelAndValue(t){const r=this._cachedMeta,n=this.chart,i=n.data.labels||[],a=IF(r._parsed[t],n.options.locale);return{label:i[t]||"",value:a}}getMaxBorderWidth(t){let r=0;const n=this.chart;let i,a,s,o,l;if(!t){for(i=0,a=n.data.datasets.length;i<a;++i)if(n.isDatasetVisible(i)){s=n.getDatasetMeta(i),t=s.data,o=s.controller;break}}if(!t)return 0;for(i=0,a=t.length;i<a;++i)l=o.resolveDataElementOptions(i),l.borderAlign!=="inner"&&(r=Math.max(r,l.borderWidth||0,l.hoverBorderWidth||0));return r}getMaxOffset(t){let r=0;for(let n=0,i=t.length;n<i;++n){const a=this.resolveDataElementOptions(n);r=Math.max(r,a.offset||0,a.hoverOffset||0)}return r}_getRingWeightOffset(t){let r=0;for(let n=0;n<t;++n)this.chart.isDatasetVisible(n)&&(r+=this._getRingWeight(n));return r}_getRingWeight(t){return Math.max(Or(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}class q3e extends zF{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const r=this._cachedMeta,{dataset:n,data:i=[],_dataset:a}=r,s=this.chart._animationsDisabled;let{start:o,count:l}=ESe(r,i,s);this._drawStart=o,this._drawCount=l,_Se(r)&&(o=0,l=i.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!a._decimated,n.points=i;const c=this.resolveDatasetElementOptions(t);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(n,void 0,{animated:!s,options:c},t),this.updateElements(i,o,l,t)}updateElements(t,r,n,i){const a=i==="reset",{iScale:s,vScale:o,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:f,includeOptions:h}=this._getSharedOptions(r,i),p=s.axis,g=o.axis,{spanGaps:y,segment:m}=this.options,w=k1(y)?y:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||a||i==="none",E=r+n,S=t.length;let T=r>0&&this.getParsed(r-1);for(let D=0;D<S;++D){const k=t[D],P=b?k:{};if(D<r||D>=E){P.skip=!0;continue}const R=this.getParsed(D),O=Ln(R[g]),V=P[p]=s.getPixelForValue(R[p],D),I=P[g]=a||O?o.getBasePixel():o.getPixelForValue(l?this.applyStack(o,R,l):R[g],D);P.skip=isNaN(V)||isNaN(I)||O,P.stop=D>0&&Math.abs(R[p]-T[p])>w,m&&(P.parsed=R,P.raw=c.data[D]),h&&(P.options=f||this.resolveDataElementOptions(D,k.active?"active":i)),b||this.updateElement(k,D,P,i),T=R}}getMaxOverflow(){const t=this._cachedMeta,r=t.dataset,n=r.options&&r.options.borderWidth||0,i=t.data||[];if(!i.length)return n;const a=i[0].size(this.resolveDataElementOptions(0)),s=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(n,a,s)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}function Ah(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class VF{static override(t){Object.assign(VF.prototype,t)}options;constructor(t){this.options=t||{}}init(){}formats(){return Ah()}parse(){return Ah()}format(){return Ah()}add(){return Ah()}diff(){return Ah()}startOf(){return Ah()}endOf(){return Ah()}}var W3e={_date:VF};function Y3e(e,t,r,n){const{controller:i,data:a,_sorted:s}=e,o=i._cachedMeta.iScale,l=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null;if(o&&t===o.axis&&t!=="r"&&s&&a.length){const c=o._reversePixels?ySe:bh;if(n){if(i._sharedOptions){const f=a[0],h=typeof f.getRange=="function"&&f.getRange(t);if(h){const p=c(a,t,r-h),g=c(a,t,r+h);return{lo:p.lo,hi:g.hi}}}}else{const f=c(a,t,r);if(l){const{vScale:h}=i._cachedMeta,{_parsed:p}=e,g=p.slice(0,f.lo+1).reverse().findIndex(m=>!Ln(m[h.axis]));f.lo-=Math.max(0,g);const y=p.slice(f.hi).findIndex(m=>!Ln(m[h.axis]));f.hi+=Math.max(0,y)}return f}}return{lo:0,hi:a.length-1}}function qx(e,t,r,n,i){const a=e.getSortedVisibleDatasetMetas(),s=r[t];for(let o=0,l=a.length;o<l;++o){const{index:c,data:f}=a[o],{lo:h,hi:p}=Y3e(a[o],t,s,i);for(let g=h;g<=p;++g){const y=f[g];y.skip||n(y,c,g)}}}function $3e(e){const t=e.indexOf("x")!==-1,r=e.indexOf("y")!==-1;return function(n,i){const a=t?Math.abs(n.x-i.x):0,s=r?Math.abs(n.y-i.y):0;return Math.sqrt(Math.pow(a,2)+Math.pow(s,2))}}function bE(e,t,r,n,i){const a=[];return!i&&!e.isPointInArea(t)||qx(e,r,t,function(o,l,c){!i&&!R1(o,e.chartArea,0)||o.inRange(t.x,t.y,n)&&a.push({element:o,datasetIndex:l,index:c})},!0),a}function X3e(e,t,r,n){let i=[];function a(s,o,l){const{startAngle:c,endAngle:f}=s.getProps(["startAngle","endAngle"],n),{angle:h}=GV(s,{x:t.x,y:t.y});Q1(h,c,f)&&i.push({element:s,datasetIndex:o,index:l})}return qx(e,r,t,a),i}function J3e(e,t,r,n,i,a){let s=[];const o=$3e(r);let l=Number.POSITIVE_INFINITY;function c(f,h,p){const g=f.inRange(t.x,t.y,i);if(n&&!g)return;const y=f.getCenterPoint(i);if(!(!!a||e.isPointInArea(y))&&!g)return;const w=o(t,y);w<l?(s=[{element:f,datasetIndex:h,index:p}],l=w):w===l&&s.push({element:f,datasetIndex:h,index:p})}return qx(e,r,t,c),s}function BE(e,t,r,n,i,a){return!a&&!e.isPointInArea(t)?[]:r==="r"&&!n?X3e(e,t,r,i):J3e(e,t,r,n,i,a)}function GP(e,t,r,n,i){const a=[],s=r==="x"?"inXRange":"inYRange";let o=!1;return qx(e,r,t,(l,c,f)=>{l[s]&&l[s](t[r],i)&&(a.push({element:l,datasetIndex:c,index:f}),o=o||l.inRange(t.x,t.y,i))}),n&&!o?[]:a}var Z3e={modes:{index(e,t,r,n){const i=hh(t,e),a=r.axis||"x",s=r.includeInvisible||!1,o=r.intersect?bE(e,i,a,n,s):BE(e,i,a,!1,n,s),l=[];return o.length?(e.getSortedVisibleDatasetMetas().forEach(c=>{const f=o[0].index,h=c.data[f];h&&!h.skip&&l.push({element:h,datasetIndex:c.index,index:f})}),l):[]},dataset(e,t,r,n){const i=hh(t,e),a=r.axis||"xy",s=r.includeInvisible||!1;let o=r.intersect?bE(e,i,a,n,s):BE(e,i,a,!1,n,s);if(o.length>0){const l=o[0].datasetIndex,c=e.getDatasetMeta(l).data;o=[];for(let f=0;f<c.length;++f)o.push({element:c[f],datasetIndex:l,index:f})}return o},point(e,t,r,n){const i=hh(t,e),a=r.axis||"xy",s=r.includeInvisible||!1;return bE(e,i,a,n,s)},nearest(e,t,r,n){const i=hh(t,e),a=r.axis||"xy",s=r.includeInvisible||!1;return BE(e,i,a,r.intersect,n,s)},x(e,t,r,n){const i=hh(t,e);return GP(e,i,"x",r.intersect,n)},y(e,t,r,n){const i=hh(t,e);return GP(e,i,"y",r.intersect,n)}}};const lG=["left","top","right","bottom"];function _p(e,t){return e.filter(r=>r.pos===t)}function qP(e,t){return e.filter(r=>lG.indexOf(r.pos)===-1&&r.box.axis===t)}function Sp(e,t){return e.sort((r,n)=>{const i=t?n:r,a=t?r:n;return i.weight===a.weight?i.index-a.index:i.weight-a.weight})}function eFe(e){const t=[];let r,n,i,a,s,o;for(r=0,n=(e||[]).length;r<n;++r)i=e[r],{position:a,options:{stack:s,stackWeight:o=1}}=i,t.push({index:r,box:i,pos:a,horizontal:i.isHorizontal(),weight:i.weight,stack:s&&a+s,stackWeight:o});return t}function tFe(e){const t={};for(const r of e){const{stack:n,pos:i,stackWeight:a}=r;if(!n||!lG.includes(i))continue;const s=t[n]||(t[n]={count:0,placed:0,weight:0,size:0});s.count++,s.weight+=a}return t}function rFe(e,t){const r=tFe(e),{vBoxMaxWidth:n,hBoxMaxHeight:i}=t;let a,s,o;for(a=0,s=e.length;a<s;++a){o=e[a];const{fullSize:l}=o.box,c=r[o.stack],f=c&&o.stackWeight/c.weight;o.horizontal?(o.width=f?f*n:l&&t.availableWidth,o.height=i):(o.width=n,o.height=f?f*i:l&&t.availableHeight)}return r}function nFe(e){const t=eFe(e),r=Sp(t.filter(c=>c.box.fullSize),!0),n=Sp(_p(t,"left"),!0),i=Sp(_p(t,"right")),a=Sp(_p(t,"top"),!0),s=Sp(_p(t,"bottom")),o=qP(t,"x"),l=qP(t,"y");return{fullSize:r,leftAndTop:n.concat(a),rightAndBottom:i.concat(l).concat(s).concat(o),chartArea:_p(t,"chartArea"),vertical:n.concat(i).concat(l),horizontal:a.concat(s).concat(o)}}function WP(e,t,r,n){return Math.max(e[r],t[r])+Math.max(e[n],t[n])}function cG(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 iFe(e,t,r,n){const{pos:i,box:a}=r,s=e.maxPadding;if(!Wr(i)){r.size&&(e[i]-=r.size);const h=n[r.stack]||{size:0,count:1};h.size=Math.max(h.size,r.horizontal?a.height:a.width),r.size=h.size/h.count,e[i]+=r.size}a.getPadding&&cG(s,a.getPadding());const o=Math.max(0,t.outerWidth-WP(s,e,"left","right")),l=Math.max(0,t.outerHeight-WP(s,e,"top","bottom")),c=o!==e.w,f=l!==e.h;return e.w=o,e.h=l,r.horizontal?{same:c,other:f}:{same:f,other:c}}function aFe(e){const t=e.maxPadding;function r(n){const i=Math.max(t[n]-e[n],0);return e[n]+=i,i}e.y+=r("top"),e.x+=r("left"),r("right"),r("bottom")}function sFe(e,t){const r=t.maxPadding;function n(i){const a={left:0,top:0,right:0,bottom:0};return i.forEach(s=>{a[s]=Math.max(t[s],r[s])}),a}return n(e?["left","right"]:["top","bottom"])}function Hp(e,t,r,n){const i=[];let a,s,o,l,c,f;for(a=0,s=e.length,c=0;a<s;++a){o=e[a],l=o.box,l.update(o.width||t.w,o.height||t.h,sFe(o.horizontal,t));const{same:h,other:p}=iFe(t,r,o,n);c|=h&&i.length,f=f||p,l.fullSize||i.push(o)}return c&&Hp(i,t,r,n)||f}function Ny(e,t,r,n,i){e.top=r,e.left=t,e.right=t+n,e.bottom=r+i,e.width=n,e.height=i}function YP(e,t,r,n){const i=r.padding;let{x:a,y:s}=t;for(const o of e){const l=o.box,c=n[o.stack]||{placed:0,weight:1},f=o.stackWeight/c.weight||1;if(o.horizontal){const h=t.w*f,p=c.size||l.height;_w(c.start)&&(s=c.start),l.fullSize?Ny(l,i.left,s,r.outerWidth-i.right-i.left,p):Ny(l,t.left+c.placed,s,h,p),c.start=s,c.placed+=h,s=l.bottom}else{const h=t.h*f,p=c.size||l.width;_w(c.start)&&(a=c.start),l.fullSize?Ny(l,a,i.top,p,r.outerHeight-i.bottom-i.top):Ny(l,a,t.top+c.placed,p,h),c.start=a,c.placed+=h,a=l.right}}t.x=a,t.y=s}var of={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(r){t.draw(r)}}]},e.boxes.push(t)},removeBox(e,t){const r=e.boxes?e.boxes.indexOf(t):-1;r!==-1&&e.boxes.splice(r,1)},configure(e,t,r){t.fullSize=r.fullSize,t.position=r.position,t.weight=r.weight},update(e,t,r,n){if(!e)return;const i=al(e.options.layout.padding),a=Math.max(t-i.width,0),s=Math.max(r-i.height,0),o=nFe(e.boxes),l=o.vertical,c=o.horizontal;ln(e.boxes,m=>{typeof m.beforeLayout=="function"&&m.beforeLayout()});const f=l.reduce((m,w)=>w.box.options&&w.box.options.display===!1?m:m+1,0)||1,h=Object.freeze({outerWidth:t,outerHeight:r,padding:i,availableWidth:a,availableHeight:s,vBoxMaxWidth:a/2/f,hBoxMaxHeight:s/2}),p=Object.assign({},i);cG(p,al(n));const g=Object.assign({maxPadding:p,w:a,h:s,x:i.left,y:i.top},i),y=rFe(l.concat(c),h);Hp(o.fullSize,g,h,y),Hp(l,g,h,y),Hp(c,g,h,y)&&Hp(l,g,h,y),aFe(g),YP(o.leftAndTop,g,h,y),g.x+=g.w,g.y+=g.h,YP(o.rightAndBottom,g,h,y),e.chartArea={left:g.left,top:g.top,right:g.left+g.w,bottom:g.top+g.h,height:g.h,width:g.w},ln(o.chartArea,m=>{const w=m.box;Object.assign(w,e.chartArea),w.update(g.w,g.h,{left:0,top:0,right:0,bottom:0})})}};class uG{acquireContext(t,r){}releaseContext(t){return!1}addEventListener(t,r,n){}removeEventListener(t,r,n){}getDevicePixelRatio(){return 1}getMaximumSize(t,r,n,i){return r=Math.max(0,r||t.width),n=n||t.height,{width:r,height:Math.max(0,i?Math.floor(r/i):n)}}isAttached(t){return!0}updateConfig(t){}}class oFe extends uG{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const r2="$chartjs",AFe={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},$P=e=>e===null||e==="";function lFe(e,t){const r=e.style,n=e.getAttribute("height"),i=e.getAttribute("width");if(e[r2]={initial:{height:n,width:i,style:{display:r.display,height:r.height,width:r.width}}},r.display=r.display||"block",r.boxSizing=r.boxSizing||"border-box",$P(i)){const a=MP(e,"width");a!==void 0&&(e.width=a)}if($P(n))if(e.style.height==="")e.height=e.width/(t||2);else{const a=MP(e,"height");a!==void 0&&(e.height=a)}return e}const fG=p3e?{passive:!0}:!1;function cFe(e,t,r){e&&e.addEventListener(t,r,fG)}function uFe(e,t,r){e&&e.canvas&&e.canvas.removeEventListener(t,r,fG)}function fFe(e,t){const r=AFe[e.type]||e.type,{x:n,y:i}=hh(e,t);return{type:r,chart:t,native:e,x:n!==void 0?n:null,y:i!==void 0?i:null}}function Ow(e,t){for(const r of e)if(r===t||r.contains(t))return!0}function hFe(e,t,r){const n=e.canvas,i=new MutationObserver(a=>{let s=!1;for(const o of a)s=s||Ow(o.addedNodes,n),s=s&&!Ow(o.removedNodes,n);s&&r()});return i.observe(document,{childList:!0,subtree:!0}),i}function dFe(e,t,r){const n=e.canvas,i=new MutationObserver(a=>{let s=!1;for(const o of a)s=s||Ow(o.removedNodes,n),s=s&&!Ow(o.addedNodes,n);s&&r()});return i.observe(document,{childList:!0,subtree:!0}),i}const j1=new Map;let XP=0;function hG(){const e=window.devicePixelRatio;e!==XP&&(XP=e,j1.forEach((t,r)=>{r.currentDevicePixelRatio!==e&&t()}))}function gFe(e,t){j1.size||window.addEventListener("resize",hG),j1.set(e,t)}function pFe(e){j1.delete(e),j1.size||window.removeEventListener("resize",hG)}function vFe(e,t,r){const n=e.canvas,i=n&&KF(n);if(!i)return;const a=YV((o,l)=>{const c=i.clientWidth;r(o,l),c<i.clientWidth&&r()},window),s=new ResizeObserver(o=>{const l=o[0],c=l.contentRect.width,f=l.contentRect.height;c===0&&f===0||a(c,f)});return s.observe(i),gFe(e,a),s}function CE(e,t,r){r&&r.disconnect(),t==="resize"&&pFe(e)}function mFe(e,t,r){const n=e.canvas,i=YV(a=>{e.ctx!==null&&r(fFe(a,e))},e);return cFe(n,t,i),i}class yFe extends uG{acquireContext(t,r){const n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?(lFe(t,r),n):null}releaseContext(t){const r=t.canvas;if(!r[r2])return!1;const n=r[r2].initial;["height","width"].forEach(a=>{const s=n[a];Ln(s)?r.removeAttribute(a):r.setAttribute(a,s)});const i=n.style||{};return Object.keys(i).forEach(a=>{r.style[a]=i[a]}),r.width=r.width,delete r[r2],!0}addEventListener(t,r,n){this.removeEventListener(t,r);const i=t.$proxies||(t.$proxies={}),s={attach:hFe,detach:dFe,resize:vFe}[r]||mFe;i[r]=s(t,r,n)}removeEventListener(t,r){const n=t.$proxies||(t.$proxies={}),i=n[r];if(!i)return;({attach:CE,detach:CE,resize:CE}[r]||uFe)(t,r,i),n[r]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,r,n,i){return g3e(t,r,n,i)}isAttached(t){const r=t&&KF(t);return!!(r&&r.isConnected)}}function wFe(e){return!HF()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?oFe:yFe}class ld{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(t){const{x:r,y:n}=this.getProps(["x","y"],t);return{x:r,y:n}}hasValue(){return k1(this.x)&&k1(this.y)}getProps(t,r){const n=this.$animations;if(!r||!n)return this;const i={};return t.forEach(a=>{i[a]=n[a]&&n[a].active()?n[a]._to:this[a]}),i}}function xFe(e,t){const r=e.options.ticks,n=bFe(e),i=Math.min(r.maxTicksLimit||n,n),a=r.major.enabled?CFe(t):[],s=a.length,o=a[0],l=a[s-1],c=[];if(s>i)return EFe(t,c,a,s/i),c;const f=BFe(a,t,i);if(s>0){let h,p;const g=s>1?Math.round((l-o)/(s-1)):null;for(Ly(t,c,f,Ln(g)?0:o-g,o),h=0,p=s-1;h<p;h++)Ly(t,c,f,a[h],a[h+1]);return Ly(t,c,f,l,Ln(g)?t.length:l+g),c}return Ly(t,c,f),c}function bFe(e){const t=e.options.offset,r=e._tickSize(),n=e._length/r+(t?0:1),i=e._maxLength/r;return Math.floor(Math.min(n,i))}function BFe(e,t,r){const n=_Fe(e),i=t.length/r;if(!n)return Math.max(i,1);const a=fSe(n);for(let s=0,o=a.length-1;s<o;s++){const l=a[s];if(l>i)return l}return Math.max(i,1)}function CFe(e){const t=[];let r,n;for(r=0,n=e.length;r<n;r++)e[r].major&&t.push(r);return t}function EFe(e,t,r,n){let i=0,a=r[0],s;for(n=Math.ceil(n),s=0;s<e.length;s++)s===a&&(t.push(e[s]),i++,a=r[i*n])}function Ly(e,t,r,n,i){const a=Or(n,0),s=Math.min(Or(i,e.length),e.length);let o=0,l,c,f;for(r=Math.ceil(r),i&&(l=i-n,r=l/Math.floor(l/r)),f=a;f<0;)o++,f=Math.round(a+o*r);for(c=Math.max(a,0);c<s;c++)c===f&&(t.push(e[c]),o++,f=Math.round(a+o*r))}function _Fe(e){const t=e.length;let r,n;if(t<2)return!1;for(n=e[0],r=1;r<t;++r)if(e[r]-e[r-1]!==n)return!1;return n}const SFe=e=>e==="left"?"right":e==="right"?"left":e,JP=(e,t,r)=>t==="top"||t==="left"?e[t]+r:e[t]-r,ZP=(e,t)=>Math.min(t||e,e);function ek(e,t){const r=[],n=e.length/t,i=e.length;let a=0;for(;a<i;a+=n)r.push(e[Math.floor(a)]);return r}function FFe(e,t,r){const n=e.ticks.length,i=Math.min(t,n-1),a=e._startPixel,s=e._endPixel,o=1e-6;let l=e.getPixelForTick(i),c;if(!(r&&(n===1?c=Math.max(l-a,s-l):t===0?c=(e.getPixelForTick(1)-l)/2:c=(l-e.getPixelForTick(i-1))/2,l+=i<t?c:-c,l<a-o||l>s+o)))return l}function TFe(e,t){ln(e,r=>{const n=r.gc,i=n.length/2;let a;if(i>t){for(a=0;a<i;++a)delete r.data[n[a]];n.splice(0,i)}})}function Fp(e){return e.drawTicks?e.tickLength:0}function tk(e,t){if(!e.display)return 0;const r=ro(e.font,t),n=al(e.padding);return(Ga(e.text)?e.text.length:1)*r.lineHeight+n.height}function OFe(e,t){return Ad(e,{scale:t,type:"scale"})}function UFe(e,t,r){return Ad(e,{tick:r,index:t,type:"tick"})}function NFe(e,t,r){let n=$V(e);return(r&&t!=="right"||!r&&t==="right")&&(n=SFe(n)),n}function LFe(e,t,r,n){const{top:i,left:a,bottom:s,right:o,chart:l}=e,{chartArea:c,scales:f}=l;let h=0,p,g,y;const m=s-i,w=o-a;if(e.isHorizontal()){if(g=_o(n,a,o),Wr(r)){const b=Object.keys(r)[0],E=r[b];y=f[b].getPixelForValue(E)+m-t}else r==="center"?y=(c.bottom+c.top)/2+m-t:y=JP(e,r,t);p=o-a}else{if(Wr(r)){const b=Object.keys(r)[0],E=r[b];g=f[b].getPixelForValue(E)-w+t}else r==="center"?g=(c.left+c.right)/2-w+t:g=JP(e,r,t);y=_o(n,s,i),h=r==="left"?-oa:oa}return{titleX:g,titleY:y,maxWidth:p,rotation:h}}class Bg extends ld{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,r){return t}getUserBounds(){let{_userMin:t,_userMax:r,_suggestedMin:n,_suggestedMax:i}=this;return t=Dl(t,Number.POSITIVE_INFINITY),r=Dl(r,Number.NEGATIVE_INFINITY),n=Dl(n,Number.POSITIVE_INFINITY),i=Dl(i,Number.NEGATIVE_INFINITY),{min:Dl(t,n),max:Dl(r,i),minDefined:yA(t),maxDefined:yA(r)}}getMinMax(t){let{min:r,max:n,minDefined:i,maxDefined:a}=this.getUserBounds(),s;if(i&&a)return{min:r,max:n};const o=this.getMatchingVisibleMetas();for(let l=0,c=o.length;l<c;++l)s=o[l].controller.getMinMax(this,t),i||(r=Math.min(r,s.min)),a||(n=Math.max(n,s.max));return r=a&&r>n?n:r,n=i&&r>n?r:n,{min:Dl(r,Dl(n,r)),max:Dl(n,Dl(r,n))}}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(){Hn(this.options.beforeUpdate,[this])}update(t,r,n){const{beginAtZero:i,grace:a,ticks:s}=this.options,o=s.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=r,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=qSe(this,a,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=o<this.ticks.length;this._convertTicksToLabels(l?ek(this.ticks,o):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),s.display&&(s.autoSkip||s.source==="auto")&&(this.ticks=xFe(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,r,n;this.isHorizontal()?(r=this.left,n=this.right):(r=this.top,n=this.bottom,t=!t),this._startPixel=r,this._endPixel=n,this._reversePixels=t,this._length=n-r,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Hn(this.options.afterUpdate,[this])}beforeSetDimensions(){Hn(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(){Hn(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),Hn(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Hn(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const r=this.options.ticks;let n,i,a;for(n=0,i=t.length;n<i;n++)a=t[n],a.label=Hn(r.callback,[a.value,n,t],this)}afterTickToLabelConversion(){Hn(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Hn(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,r=t.ticks,n=ZP(this.ticks.length,t.ticks.maxTicksLimit),i=r.minRotation||0,a=r.maxRotation;let s=i,o,l,c;if(!this._isVisible()||!r.display||i>=a||n<=1||!this.isHorizontal()){this.labelRotation=i;return}const f=this._getLabelSizes(),h=f.widest.width,p=f.highest.height,g=Fs(this.chart.width-h,0,this.maxWidth);o=t.offset?this.maxWidth/n:g/(n-1),h+6>o&&(o=g/(n-(t.offset?.5:1)),l=this.maxHeight-Fp(t.grid)-r.padding-tk(t.title,this.chart.options.font),c=Math.sqrt(h*h+p*p),s=pSe(Math.min(Math.asin(Fs((f.highest.height+6)/o,-1,1)),Math.asin(Fs(l/c,-1,1))-Math.asin(Fs(p/c,-1,1)))),s=Math.max(i,Math.min(a,s))),this.labelRotation=s}afterCalculateLabelRotation(){Hn(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Hn(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:r,options:{ticks:n,title:i,grid:a}}=this,s=this._isVisible(),o=this.isHorizontal();if(s){const l=tk(i,r.options.font);if(o?(t.width=this.maxWidth,t.height=Fp(a)+l):(t.height=this.maxHeight,t.width=Fp(a)+l),n.display&&this.ticks.length){const{first:c,last:f,widest:h,highest:p}=this._getLabelSizes(),g=n.padding*2,y=Mc(this.labelRotation),m=Math.cos(y),w=Math.sin(y);if(o){const b=n.mirror?0:w*h.width+m*p.height;t.height=Math.min(this.maxHeight,t.height+b+g)}else{const b=n.mirror?0:m*h.width+w*p.height;t.width=Math.min(this.maxWidth,t.width+b+g)}this._calculatePadding(c,f,w,m)}}this._handleMargins(),o?(this.width=this._length=r.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=r.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,r,n,i){const{ticks:{align:a,padding:s},position:o}=this.options,l=this.labelRotation!==0,c=o!=="top"&&this.axis==="x";if(this.isHorizontal()){const f=this.getPixelForTick(0)-this.left,h=this.right-this.getPixelForTick(this.ticks.length-1);let p=0,g=0;l?c?(p=i*t.width,g=n*r.height):(p=n*t.height,g=i*r.width):a==="start"?g=r.width:a==="end"?p=t.width:a!=="inner"&&(p=t.width/2,g=r.width/2),this.paddingLeft=Math.max((p-f+s)*this.width/(this.width-f),0),this.paddingRight=Math.max((g-h+s)*this.width/(this.width-h),0)}else{let f=r.height/2,h=t.height/2;a==="start"?(f=0,h=t.height):a==="end"&&(f=r.height,h=0),this.paddingTop=f+s,this.paddingBottom=h+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(){Hn(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:r}=this.options;return r==="top"||r==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let r,n;for(r=0,n=t.length;r<n;r++)Ln(t[r].label)&&(t.splice(r,1),n--,r--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const r=this.options.ticks.sampleSize;let n=this.ticks;r<n.length&&(n=ek(n,r)),this._labelSizes=t=this._computeLabelSizes(n,n.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,r,n){const{ctx:i,_longestTextCache:a}=this,s=[],o=[],l=Math.floor(r/ZP(r,n));let c=0,f=0,h,p,g,y,m,w,b,E,S,T,D;for(h=0;h<r;h+=l){if(y=t[h].label,m=this._resolveTickFontOptions(h),i.font=w=m.string,b=a[w]=a[w]||{data:{},gc:[]},E=m.lineHeight,S=T=0,!Ln(y)&&!Ga(y))S=UP(i,b.data,b.gc,S,y),T=E;else if(Ga(y))for(p=0,g=y.length;p<g;++p)D=y[p],!Ln(D)&&!Ga(D)&&(S=UP(i,b.data,b.gc,S,D),T+=E);s.push(S),o.push(T),c=Math.max(S,c),f=Math.max(T,f)}TFe(a,r);const k=s.indexOf(c),P=o.indexOf(f),R=O=>({width:s[O]||0,height:o[O]||0});return{first:R(0),last:R(r-1),widest:R(k),highest:R(P),widths:s,heights:o}}getLabelForValue(t){return t}getPixelForValue(t,r){return NaN}getValueForPixel(t){}getPixelForTick(t){const r=this.ticks;return t<0||t>r.length-1?null:this.getPixelForValue(r[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const r=this._startPixel+t*this._length;return mSe(this._alignToPixels?oh(this.chart,r,0):r)}getDecimalForPixel(t){const r=(t-this._startPixel)/this._length;return this._reversePixels?1-r:r}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:r}=this;return t<0&&r<0?r:t>0&&r>0?t:0}getContext(t){const r=this.ticks||[];if(t>=0&&t<r.length){const n=r[t];return n.$context||(n.$context=UFe(this.getContext(),t,n))}return this.$context||(this.$context=OFe(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,r=Mc(this.labelRotation),n=Math.abs(Math.cos(r)),i=Math.abs(Math.sin(r)),a=this._getLabelSizes(),s=t.autoSkipPadding||0,o=a?a.widest.width+s:0,l=a?a.highest.height+s:0;return this.isHorizontal()?l*n>o*i?o/n:l/i:l*i<o*n?l/n:o/i}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const r=this.axis,n=this.chart,i=this.options,{grid:a,position:s,border:o}=i,l=a.offset,c=this.isHorizontal(),h=this.ticks.length+(l?1:0),p=Fp(a),g=[],y=o.setContext(this.getContext()),m=y.display?y.width:0,w=m/2,b=function(G){return oh(n,G,m)};let E,S,T,D,k,P,R,O,V,I,Q,W;if(s==="top")E=b(this.bottom),P=this.bottom-p,O=E-w,I=b(t.top)+w,W=t.bottom;else if(s==="bottom")E=b(this.top),I=t.top,W=b(t.bottom)-w,P=E+w,O=this.top+p;else if(s==="left")E=b(this.right),k=this.right-p,R=E-w,V=b(t.left)+w,Q=t.right;else if(s==="right")E=b(this.left),V=t.left,Q=b(t.right)-w,k=E+w,R=this.left+p;else if(r==="x"){if(s==="center")E=b((t.top+t.bottom)/2+.5);else if(Wr(s)){const G=Object.keys(s)[0],se=s[G];E=b(this.chart.scales[G].getPixelForValue(se))}I=t.top,W=t.bottom,P=E+w,O=P+p}else if(r==="y"){if(s==="center")E=b((t.left+t.right)/2);else if(Wr(s)){const G=Object.keys(s)[0],se=s[G];E=b(this.chart.scales[G].getPixelForValue(se))}k=E-w,R=k-p,V=t.left,Q=t.right}const J=Or(i.ticks.maxTicksLimit,h),fe=Math.max(1,Math.ceil(h/J));for(S=0;S<h;S+=fe){const G=this.getContext(S),se=a.setContext(G),ge=o.setContext(G),ye=se.lineWidth,_e=se.color,Z=ge.dash||[],L=ge.dashOffset,j=se.tickWidth,K=se.tickColor,q=se.tickBorderDash||[],re=se.tickBorderDashOffset;T=FFe(this,S,l),T!==void 0&&(D=oh(n,T,ye),c?k=R=V=Q=D:P=O=I=W=D,g.push({tx1:k,ty1:P,tx2:R,ty2:O,x1:V,y1:I,x2:Q,y2:W,width:ye,color:_e,borderDash:Z,borderDashOffset:L,tickWidth:j,tickColor:K,tickBorderDash:q,tickBorderDashOffset:re}))}return this._ticksLength=h,this._borderValue=E,g}_computeLabelItems(t){const r=this.axis,n=this.options,{position:i,ticks:a}=n,s=this.isHorizontal(),o=this.ticks,{align:l,crossAlign:c,padding:f,mirror:h}=a,p=Fp(n.grid),g=p+f,y=h?-f:g,m=-Mc(this.labelRotation),w=[];let b,E,S,T,D,k,P,R,O,V,I,Q,W="middle";if(i==="top")k=this.bottom-y,P=this._getXAxisLabelAlignment();else if(i==="bottom")k=this.top+y,P=this._getXAxisLabelAlignment();else if(i==="left"){const fe=this._getYAxisLabelAlignment(p);P=fe.textAlign,D=fe.x}else if(i==="right"){const fe=this._getYAxisLabelAlignment(p);P=fe.textAlign,D=fe.x}else if(r==="x"){if(i==="center")k=(t.top+t.bottom)/2+g;else if(Wr(i)){const fe=Object.keys(i)[0],G=i[fe];k=this.chart.scales[fe].getPixelForValue(G)+g}P=this._getXAxisLabelAlignment()}else if(r==="y"){if(i==="center")D=(t.left+t.right)/2-g;else if(Wr(i)){const fe=Object.keys(i)[0],G=i[fe];D=this.chart.scales[fe].getPixelForValue(G)}P=this._getYAxisLabelAlignment(p).textAlign}r==="y"&&(l==="start"?W="top":l==="end"&&(W="bottom"));const J=this._getLabelSizes();for(b=0,E=o.length;b<E;++b){S=o[b],T=S.label;const fe=a.setContext(this.getContext(b));R=this.getPixelForTick(b)+a.labelOffset,O=this._resolveTickFontOptions(b),V=O.lineHeight,I=Ga(T)?T.length:1;const G=I/2,se=fe.color,ge=fe.textStrokeColor,ye=fe.textStrokeWidth;let _e=P;s?(D=R,P==="inner"&&(b===E-1?_e=this.options.reverse?"left":"right":b===0?_e=this.options.reverse?"right":"left":_e="center"),i==="top"?c==="near"||m!==0?Q=-I*V+V/2:c==="center"?Q=-J.highest.height/2-G*V+V:Q=-J.highest.height+V/2:c==="near"||m!==0?Q=V/2:c==="center"?Q=J.highest.height/2-G*V:Q=J.highest.height-I*V,h&&(Q*=-1),m!==0&&!fe.showLabelBackdrop&&(D+=V/2*Math.sin(m))):(k=R,Q=(1-I)*V/2);let Z;if(fe.showLabelBackdrop){const L=al(fe.backdropPadding),j=J.heights[b],K=J.widths[b];let q=Q-L.top,re=0-L.left;switch(W){case"middle":q-=j/2;break;case"bottom":q-=j;break}switch(P){case"center":re-=K/2;break;case"right":re-=K;break;case"inner":b===E-1?re-=K:b>0&&(re-=K/2);break}Z={left:re,top:q,width:K+L.width,height:j+L.height,color:fe.backdropColor}}w.push({label:T,font:O,textOffset:Q,options:{rotation:m,color:se,strokeColor:ge,strokeWidth:ye,textAlign:_e,textBaseline:W,translation:[D,k],backdrop:Z}})}return w}_getXAxisLabelAlignment(){const{position:t,ticks:r}=this.options;if(-Mc(this.labelRotation))return t==="top"?"left":"right";let i="center";return r.align==="start"?i="left":r.align==="end"?i="right":r.align==="inner"&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:r,ticks:{crossAlign:n,mirror:i,padding:a}}=this.options,s=this._getLabelSizes(),o=t+a,l=s.widest.width;let c,f;return r==="left"?i?(f=this.right+a,n==="near"?c="left":n==="center"?(c="center",f+=l/2):(c="right",f+=l)):(f=this.right-o,n==="near"?c="right":n==="center"?(c="center",f-=l/2):(c="left",f=this.left)):r==="right"?i?(f=this.left+a,n==="near"?c="right":n==="center"?(c="center",f-=l/2):(c="left",f-=l)):(f=this.left+o,n==="near"?c="left":n==="center"?(c="center",f+=l/2):(c="right",f=this.right)):c="right",{textAlign:c,x:f}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,r=this.options.position;if(r==="left"||r==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(r==="top"||r==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:r},left:n,top:i,width:a,height:s}=this;r&&(t.save(),t.fillStyle=r,t.fillRect(n,i,a,s),t.restore())}getLineWidthForValue(t){const r=this.options.grid;if(!this._isVisible()||!r.display)return 0;const i=this.ticks.findIndex(a=>a.value===t);return i>=0?r.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){const r=this.options.grid,n=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let a,s;const o=(l,c,f)=>{!f.width||!f.color||(n.save(),n.lineWidth=f.width,n.strokeStyle=f.color,n.setLineDash(f.borderDash||[]),n.lineDashOffset=f.borderDashOffset,n.beginPath(),n.moveTo(l.x,l.y),n.lineTo(c.x,c.y),n.stroke(),n.restore())};if(r.display)for(a=0,s=i.length;a<s;++a){const l=i[a];r.drawOnChartArea&&o({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),r.drawTicks&&o({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:r,options:{border:n,grid:i}}=this,a=n.setContext(this.getContext()),s=n.display?a.width:0;if(!s)return;const o=i.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let c,f,h,p;this.isHorizontal()?(c=oh(t,this.left,s)-s/2,f=oh(t,this.right,o)+o/2,h=p=l):(h=oh(t,this.top,s)-s/2,p=oh(t,this.bottom,o)+o/2,c=f=l),r.save(),r.lineWidth=a.width,r.strokeStyle=a.color,r.beginPath(),r.moveTo(c,h),r.lineTo(f,p),r.stroke(),r.restore()}drawLabels(t){if(!this.options.ticks.display)return;const n=this.ctx,i=this._computeLabelArea();i&&MF(n,i);const a=this.getLabelItems(t);for(const s of a){const o=s.options,l=s.font,c=s.label,f=s.textOffset;Fw(n,c,0,f,l,o)}i&&PF(n)}drawTitle(){const{ctx:t,options:{position:r,title:n,reverse:i}}=this;if(!n.display)return;const a=ro(n.font),s=al(n.padding),o=n.align;let l=a.lineHeight/2;r==="bottom"||r==="center"||Wr(r)?(l+=s.bottom,Ga(n.text)&&(l+=a.lineHeight*(n.text.length-1))):l+=s.top;const{titleX:c,titleY:f,maxWidth:h,rotation:p}=LFe(this,l,r,o);Fw(t,n.text,0,0,a,{color:n.color,maxWidth:h,rotation:p,textAlign:NFe(o,r,i),textBaseline:"middle",translation:[c,f]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,r=t.ticks&&t.ticks.z||0,n=Or(t.grid&&t.grid.z,-1),i=Or(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==Bg.prototype.draw?[{z:r,draw:a=>{this.draw(a)}}]:[{z:n,draw:a=>{this.drawBackground(),this.drawGrid(a),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:r,draw:a=>{this.drawLabels(a)}}]}getMatchingVisibleMetas(t){const r=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",i=[];let a,s;for(a=0,s=r.length;a<s;++a){const o=r[a];o[n]===this.id&&(!t||o.type===t)&&i.push(o)}return i}_resolveTickFontOptions(t){const r=this.options.ticks.setContext(this.getContext(t));return ro(r.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class Dy{constructor(t,r,n){this.type=t,this.scope=r,this.override=n,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const r=Object.getPrototypeOf(t);let n;MFe(r)&&(n=this.register(r));const i=this.items,a=t.id,s=this.scope+"."+a;if(!a)throw new Error("class does not have id: "+t);return a in i||(i[a]=t,DFe(t,s,n),this.override&&Mi.override(t.id,t.overrides)),s}get(t){return this.items[t]}unregister(t){const r=this.items,n=t.id,i=this.scope;n in r&&delete r[n],i&&n in Mi[i]&&(delete Mi[i][n],this.override&&delete qh[n])}}function DFe(e,t,r){const n=M1(Object.create(null),[r?Mi.get(r):{},Mi.get(t),e.defaults]);Mi.set(t,n),e.defaultRoutes&&IFe(t,e.defaultRoutes),e.descriptors&&Mi.describe(t,e.descriptors)}function IFe(e,t){Object.keys(t).forEach(r=>{const n=r.split("."),i=n.pop(),a=[e].concat(n).join("."),s=t[r].split("."),o=s.pop(),l=s.join(".");Mi.route(a,i,l,o)})}function MFe(e){return"id"in e&&"defaults"in e}class PFe{constructor(){this.controllers=new Dy(zF,"datasets",!0),this.elements=new Dy(ld,"elements"),this.plugins=new Dy(Object,"plugins"),this.scales=new Dy(Bg,"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,r,n){[...r].forEach(i=>{const a=n||this._getRegistryForType(i);n||a.isForType(i)||a===this.plugins&&i.id?this._exec(t,a,i):ln(i,s=>{const o=n||this._getRegistryForType(s);this._exec(t,o,s)})})}_exec(t,r,n){const i=NF(t);Hn(n["before"+i],[],n),r[t](n),Hn(n["after"+i],[],n)}_getRegistryForType(t){for(let r=0;r<this._typedRegistries.length;r++){const n=this._typedRegistries[r];if(n.isForType(t))return n}return this.plugins}_get(t,r,n){const i=r.get(t);if(i===void 0)throw new Error('"'+t+'" is not a registered '+n+".");return i}}var Ql=new PFe;class kFe{constructor(){this._init=void 0}notify(t,r,n,i){if(r==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install")),this._init===void 0)return;const a=i?this._descriptors(t).filter(i):this._descriptors(t),s=this._notify(a,t,r,n);return r==="afterDestroy"&&(this._notify(a,t,"stop"),this._notify(this._init,t,"uninstall"),this._init=void 0),s}_notify(t,r,n,i){i=i||{};for(const a of t){const s=a.plugin,o=s[n],l=[r,i,a.options];if(Hn(o,l,s)===!1&&i.cancelable)return!1}return!0}invalidate(){Ln(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const r=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),r}_createDescriptors(t,r){const n=t&&t.config,i=Or(n.options&&n.options.plugins,{}),a=QFe(n);return i===!1&&!r?[]:jFe(t,a,i,r)}_notifyStateChanges(t){const r=this._oldCache||[],n=this._cache,i=(a,s)=>a.filter(o=>!s.some(l=>o.plugin.id===l.plugin.id));this._notify(i(r,n),t,"stop"),this._notify(i(n,r),t,"start")}}function QFe(e){const t={},r=[],n=Object.keys(Ql.plugins.items);for(let a=0;a<n.length;a++)r.push(Ql.getPlugin(n[a]));const i=e.plugins||[];for(let a=0;a<i.length;a++){const s=i[a];r.indexOf(s)===-1&&(r.push(s),t[s.id]=!0)}return{plugins:r,localIds:t}}function RFe(e,t){return!t&&e===!1?null:e===!0?{}:e}function jFe(e,{plugins:t,localIds:r},n,i){const a=[],s=e.getContext();for(const o of t){const l=o.id,c=RFe(n[l],i);c!==null&&a.push({plugin:o,options:HFe(e.config,{plugin:o,local:r[l]},c,s)})}return a}function HFe(e,{plugin:t,local:r},n,i){const a=e.pluginScopeKeys(t),s=e.getOptionScopes(n,a);return r&&t.defaults&&s.push(t.defaults),e.createResolver(s,i,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function C4(e,t){const r=Mi.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||r.indexAxis||"x"}function KFe(e,t){let r=e;return e==="_index_"?r=t:e==="_value_"&&(r=t==="x"?"y":"x"),r}function zFe(e,t){return e===t?"_index_":"_value_"}function rk(e){if(e==="x"||e==="y"||e==="r")return e}function VFe(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function E4(e,...t){if(rk(e))return e;for(const r of t){const n=r.axis||VFe(r.position)||e.length>1&&rk(e[0].toLowerCase());if(n)return n}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function nk(e,t,r){if(r[t+"AxisID"]===e)return{axis:t}}function GFe(e,t){if(t.data&&t.data.datasets){const r=t.data.datasets.filter(n=>n.xAxisID===e||n.yAxisID===e);if(r.length)return nk(e,"x",r[0])||nk(e,"y",r[0])}return{}}function qFe(e,t){const r=qh[e.type]||{scales:{}},n=t.scales||{},i=C4(e.type,t),a=Object.create(null);return Object.keys(n).forEach(s=>{const o=n[s];if(!Wr(o))return console.error(`Invalid scale configuration for scale: ${s}`);if(o._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${s}`);const l=E4(s,o,GFe(s,e),Mi.scales[o.type]),c=zFe(l,i),f=r.scales||{};a[s]=i1(Object.create(null),[{axis:l},o,f[l],f[c]])}),e.data.datasets.forEach(s=>{const o=s.type||e.type,l=s.indexAxis||C4(o,t),f=(qh[o]||{}).scales||{};Object.keys(f).forEach(h=>{const p=KFe(h,l),g=s[p+"AxisID"]||p;a[g]=a[g]||Object.create(null),i1(a[g],[{axis:p},n[g],f[h]])})}),Object.keys(a).forEach(s=>{const o=a[s];i1(o,[Mi.scales[o.type],Mi.scale])}),a}function dG(e){const t=e.options||(e.options={});t.plugins=Or(t.plugins,{}),t.scales=qFe(e,t)}function gG(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function WFe(e){return e=e||{},e.data=gG(e.data),dG(e),e}const ik=new Map,pG=new Set;function Iy(e,t){let r=ik.get(e);return r||(r=t(),ik.set(e,r),pG.add(r)),r}const Tp=(e,t,r)=>{const n=P1(t,r);n!==void 0&&e.add(n)};class YFe{constructor(t){this._config=WFe(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=gG(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(),dG(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Iy(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,r){return Iy(`${t}.transition.${r}`,()=>[[`datasets.${t}.transitions.${r}`,`transitions.${r}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,r){return Iy(`${t}-${r}`,()=>[[`datasets.${t}.elements.${r}`,`datasets.${t}`,`elements.${r}`,""]])}pluginScopeKeys(t){const r=t.id,n=this.type;return Iy(`${n}-plugin-${r}`,()=>[[`plugins.${r}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,r){const n=this._scopeCache;let i=n.get(t);return(!i||r)&&(i=new Map,n.set(t,i)),i}getOptionScopes(t,r,n){const{options:i,type:a}=this,s=this._cachedScopes(t,n),o=s.get(r);if(o)return o;const l=new Set;r.forEach(f=>{t&&(l.add(t),f.forEach(h=>Tp(l,t,h))),f.forEach(h=>Tp(l,i,h)),f.forEach(h=>Tp(l,qh[a]||{},h)),f.forEach(h=>Tp(l,Mi,h)),f.forEach(h=>Tp(l,x4,h))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),pG.has(r)&&s.set(r,c),c}chartOptionScopes(){const{options:t,type:r}=this;return[t,qh[r]||{},Mi.datasets[r]||{},{type:r},Mi,x4]}resolveNamedOptions(t,r,n,i=[""]){const a={$shared:!0},{resolver:s,subPrefixes:o}=ak(this._resolverCache,t,i);let l=s;if(XFe(s,r)){a.$shared=!1,n=bf(n)?n():n;const c=this.createResolver(t,n,o);l=J0(s,n,c)}for(const c of r)a[c]=l[c];return a}createResolver(t,r,n=[""],i){const{resolver:a}=ak(this._resolverCache,t,n);return Wr(r)?J0(a,r,void 0,i):a}}function ak(e,t,r){let n=e.get(t);n||(n=new Map,e.set(t,n));const i=r.join();let a=n.get(i);return a||(a={resolver:QF(t,r),subPrefixes:r.filter(o=>!o.toLowerCase().includes("hover"))},n.set(i,a)),a}const $Fe=e=>Wr(e)&&Object.getOwnPropertyNames(e).some(t=>bf(e[t]));function XFe(e,t){const{isScriptable:r,isIndexable:n}=ZV(e);for(const i of t){const a=r(i),s=n(i),o=(s||a)&&e[i];if(a&&(bf(o)||$Fe(o))||s&&Ga(o))return!0}return!1}var JFe="4.5.1";const ZFe=["top","bottom","left","right","chartArea"];function sk(e,t){return e==="top"||e==="bottom"||ZFe.indexOf(e)===-1&&t==="x"}function ok(e,t){return function(r,n){return r[e]===n[e]?r[t]-n[t]:r[e]-n[e]}}function Ak(e){const t=e.chart,r=t.options.animation;t.notifyPlugins("afterRender"),Hn(r&&r.onComplete,[e],t)}function eTe(e){const t=e.chart,r=t.options.animation;Hn(r&&r.onProgress,[e],t)}function vG(e){return HF()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const n2={},lk=e=>{const t=vG(e);return Object.values(n2).filter(r=>r.canvas===t).pop()};function tTe(e,t,r){const n=Object.keys(e);for(const i of n){const a=+i;if(a>=t){const s=e[i];delete e[i],(r>0||a>t)&&(e[a+r]=s)}}}function rTe(e,t,r,n){return!r||e.type==="mouseout"?null:n?t:e}let Wx=class{static defaults=Mi;static instances=n2;static overrides=qh;static registry=Ql;static version=JFe;static getChart=lk;static register(...t){Ql.add(...t),ck()}static unregister(...t){Ql.remove(...t),ck()}constructor(t,r){const n=this.config=new YFe(r),i=vG(t),a=lk(i);if(a)throw new Error("Canvas is already in use. Chart with ID '"+a.id+"' must be destroyed before the canvas with ID '"+a.canvas.id+"' can be reused.");const s=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||wFe(i)),this.platform.updateConfig(n);const o=this.platform.acquireContext(i,s.aspectRatio),l=o&&o.canvas,c=l&&l.height,f=l&&l.width;if(this.id=nSe(),this.ctx=o,this.canvas=l,this.width=f,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 kFe,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=BSe(h=>this.update(h),s.resizeDelay||0),this._dataChanges=[],n2[this.id]=this,!o||!l){console.error("Failed to create chart: can't acquire context from the given item");return}Fc.listen(this,"complete",Ak),Fc.listen(this,"progress",eTe),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:r},width:n,height:i,_aspectRatio:a}=this;return Ln(t)?r&&a?a:i?n/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 Ql}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():IP(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return NP(this.canvas,this.ctx),this}stop(){return Fc.stop(this),this}resize(t,r){Fc.running(this)?this._resizeBeforeDraw={width:t,height:r}:this._resize(t,r)}_resize(t,r){const n=this.options,i=this.canvas,a=n.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(i,t,r,a),o=n.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,IP(this,o,!0)&&(this.notifyPlugins("resize",{size:s}),Hn(n.onResize,[this,s],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const r=this.options.scales||{};ln(r,(n,i)=>{n.id=i})}buildOrUpdateScales(){const t=this.options,r=t.scales,n=this.scales,i=Object.keys(n).reduce((s,o)=>(s[o]=!1,s),{});let a=[];r&&(a=a.concat(Object.keys(r).map(s=>{const o=r[s],l=E4(s,o),c=l==="r",f=l==="x";return{options:o,dposition:c?"chartArea":f?"bottom":"left",dtype:c?"radialLinear":f?"category":"linear"}}))),ln(a,s=>{const o=s.options,l=o.id,c=E4(l,o),f=Or(o.type,s.dtype);(o.position===void 0||sk(o.position,c)!==sk(s.dposition))&&(o.position=s.dposition),i[l]=!0;let h=null;if(l in n&&n[l].type===f)h=n[l];else{const p=Ql.getScale(f);h=new p({id:l,type:f,ctx:this.ctx,chart:this}),n[h.id]=h}h.init(o,t)}),ln(i,(s,o)=>{s||delete n[o]}),ln(n,s=>{of.configure(this,s,s.options),of.addBox(this,s)})}_updateMetasets(){const t=this._metasets,r=this.data.datasets.length,n=t.length;if(t.sort((i,a)=>i.index-a.index),n>r){for(let i=r;i<n;++i)this._destroyDatasetMeta(i);t.splice(r,n-r)}this._sortedMetasets=t.slice(0).sort(ok("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:r}}=this;t.length>r.length&&delete this._stacks,t.forEach((n,i)=>{r.filter(a=>a===n._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const t=[],r=this.data.datasets;let n,i;for(this._removeUnreferencedMetasets(),n=0,i=r.length;n<i;n++){const a=r[n];let s=this.getDatasetMeta(n);const o=a.type||this.config.type;if(s.type&&s.type!==o&&(this._destroyDatasetMeta(n),s=this.getDatasetMeta(n)),s.type=o,s.indexAxis=a.indexAxis||C4(o,this.options),s.order=a.order||0,s.index=n,s.label=""+a.label,s.visible=this.isDatasetVisible(n),s.controller)s.controller.updateIndex(n),s.controller.linkScales();else{const l=Ql.getController(o),{datasetElementType:c,dataElementType:f}=Mi.datasets[o];Object.assign(l,{dataElementType:Ql.getElement(f),datasetElementType:c&&Ql.getElement(c)}),s.controller=new l(this,n),t.push(s.controller)}}return this._updateMetasets(),t}_resetElements(){ln(this.data.datasets,(t,r)=>{this.getDatasetMeta(r).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const r=this.config;r.update();const n=this._options=r.createResolver(r.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const a=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let c=0,f=this.data.datasets.length;c<f;c++){const{controller:h}=this.getDatasetMeta(c),p=!i&&a.indexOf(h)===-1;h.buildOrUpdateElements(p),s=Math.max(+h.getMaxOverflow(),s)}s=this._minPadding=n.layout.autoPadding?s:0,this._updateLayout(s),i||ln(a,c=>{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(ok("z","_idx"));const{_active:o,_lastEvent:l}=this;l?this._eventHandler(l,!0):o.length&&this._updateHoverStyles(o,o,!0),this.render()}_updateScales(){ln(this.scales,t=>{of.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,r=new Set(Object.keys(this._listeners)),n=new Set(t.events);(!bP(r,n)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,r=this._getUniformDataChanges()||[];for(const{method:n,start:i,count:a}of r){const s=n==="_removeElements"?-a:a;tTe(t,i,s)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const r=this.data.datasets.length,n=a=>new Set(t.filter(s=>s[0]===a).map((s,o)=>o+","+s.splice(1).join(","))),i=n(0);for(let a=1;a<r;a++)if(!bP(i,n(a)))return;return Array.from(i).map(a=>a.split(",")).map(a=>({method:a[1],start:+a[2],count:+a[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;of.update(this,this.width,this.height,t);const r=this.chartArea,n=r.width<=0||r.height<=0;this._layers=[],ln(this.boxes,i=>{n&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,a)=>{i._idx=a}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let r=0,n=this.data.datasets.length;r<n;++r)this.getDatasetMeta(r).controller.configure();for(let r=0,n=this.data.datasets.length;r<n;++r)this._updateDataset(r,bf(t)?t({datasetIndex:r}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,r){const n=this.getDatasetMeta(t),i={meta:n,index:t,mode:r,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",i)!==!1&&(n.controller._update(r),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(Fc.has(this)?this.attached&&!Fc.running(this)&&Fc.start(this):(this.draw(),Ak({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:n,height:i}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(n,i)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const r=this._layers;for(t=0;t<r.length&&r[t].z<=0;++t)r[t].draw(this.chartArea);for(this._drawDatasets();t<r.length;++t)r[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const r=this._sortedMetasets,n=[];let i,a;for(i=0,a=r.length;i<a;++i){const s=r[i];(!t||s.visible)&&n.push(s)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let r=t.length-1;r>=0;--r)this._drawDataset(t[r]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const r=this.ctx,n={meta:t,index:t.index,cancelable:!0},i=O3e(this,t);this.notifyPlugins("beforeDatasetDraw",n)!==!1&&(i&&MF(r,i),t.controller.draw(),i&&PF(r),n.cancelable=!1,this.notifyPlugins("afterDatasetDraw",n))}isPointInArea(t){return R1(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,r,n,i){const a=Z3e.modes[r];return typeof a=="function"?a(this,t,n,i):[]}getDatasetMeta(t){const r=this.data.datasets[t],n=this._metasets;let i=n.filter(a=>a&&a._dataset===r).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:r&&r.order||0,index:t,_dataset:r,_parsed:[],_sorted:!1},n.push(i)),i}getContext(){return this.$context||(this.$context=Ad(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const r=this.data.datasets[t];if(!r)return!1;const n=this.getDatasetMeta(t);return typeof n.hidden=="boolean"?!n.hidden:!r.hidden}setDatasetVisibility(t,r){const n=this.getDatasetMeta(t);n.hidden=!r}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,r,n){const i=n?"show":"hide",a=this.getDatasetMeta(t),s=a.controller._resolveAnimations(void 0,i);_w(r)?(a.data[r].hidden=!n,this.update()):(this.setDatasetVisibility(t,n),s.update(a,{visible:n}),this.update(o=>o.datasetIndex===t?i:void 0))}hide(t,r){this._updateVisibility(t,r,!1)}show(t,r){this._updateVisibility(t,r,!0)}_destroyDatasetMeta(t){const r=this._metasets[t];r&&r.controller&&r.controller._destroy(),delete this._metasets[t]}_stop(){let t,r;for(this.stop(),Fc.remove(this),t=0,r=this.data.datasets.length;t<r;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:r}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),NP(t,r),this.platform.releaseContext(r),this.canvas=null,this.ctx=null),delete n2[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,r=this.platform,n=(a,s)=>{r.addEventListener(this,a,s),t[a]=s},i=(a,s,o)=>{a.offsetX=s,a.offsetY=o,this._eventHandler(a)};ln(this.options.events,a=>n(a,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,r=this.platform,n=(l,c)=>{r.addEventListener(this,l,c),t[l]=c},i=(l,c)=>{t[l]&&(r.removeEventListener(this,l,c),delete t[l])},a=(l,c)=>{this.canvas&&this.resize(l,c)};let s;const o=()=>{i("attach",o),this.attached=!0,this.resize(),n("resize",a),n("detach",s)};s=()=>{this.attached=!1,i("resize",a),this._stop(),this._resize(0,0),n("attach",o)},r.isAttached(this.canvas)?o():s()}unbindEvents(){ln(this._listeners,(t,r)=>{this.platform.removeEventListener(this,r,t)}),this._listeners={},ln(this._responsiveListeners,(t,r)=>{this.platform.removeEventListener(this,r,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,r,n){const i=n?"set":"remove";let a,s,o,l;for(r==="dataset"&&(a=this.getDatasetMeta(t[0].datasetIndex),a.controller["_"+i+"DatasetHoverStyle"]()),o=0,l=t.length;o<l;++o){s=t[o];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 r=this._active||[],n=t.map(({datasetIndex:a,index:s})=>{const o=this.getDatasetMeta(a);if(!o)throw new Error("No dataset found at index "+a);return{datasetIndex:a,element:o.data[s],index:s}});!Cw(n,r)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,r))}notifyPlugins(t,r,n){return this._plugins.notify(this,t,r,n)}isPluginEnabled(t){return this._plugins._cache.filter(r=>r.plugin.id===t).length===1}_updateHoverStyles(t,r,n){const i=this.options.hover,a=(l,c)=>l.filter(f=>!c.some(h=>f.datasetIndex===h.datasetIndex&&f.index===h.index)),s=a(r,t),o=n?t:a(t,r);s.length&&this.updateHoverStyle(s,i.mode,!1),o.length&&i.mode&&this.updateHoverStyle(o,i.mode,!0)}_eventHandler(t,r){const n={event:t,replay:r,cancelable:!0,inChartArea:this.isPointInArea(t)},i=s=>(s.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",n,i)===!1)return;const a=this._handleEvent(t,r,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,i),(a||n.changed)&&this.render(),this}_handleEvent(t,r,n){const{_active:i=[],options:a}=this,s=r,o=this._getActiveElements(t,i,n,s),l=lSe(t),c=rTe(t,this._lastEvent,n,l);n&&(this._lastEvent=null,Hn(a.onHover,[t,o,this],this),l&&Hn(a.onClick,[t,o,this],this));const f=!Cw(o,i);return(f||r)&&(this._active=o,this._updateHoverStyles(o,i,r)),this._lastEvent=c,f}_getActiveElements(t,r,n,i){if(t.type==="mouseout")return[];if(!n)return r;const a=this.options.hover;return this.getElementsAtEventForMode(t,a.mode,a,i)}};function ck(){return ln(Wx.instances,e=>e._plugins.invalidate())}function nTe(e,t,r){const{startAngle:n,x:i,y:a,outerRadius:s,innerRadius:o,options:l}=t,{borderWidth:c,borderJoinStyle:f}=l,h=Math.min(c/s,JA(n-r));if(e.beginPath(),e.arc(i,a,s-c/2,n+h/2,r-h/2),o>0){const p=Math.min(c/o,JA(n-r));e.arc(i,a,o+c/2,r-p/2,n+p/2,!0)}else{const p=Math.min(c/2,s*JA(n-r));if(f==="round")e.arc(i,a,p,r-Tn/2,n+Tn/2,!0);else if(f==="bevel"){const g=2*p*p,y=-g*Math.cos(r+Tn/2)+i,m=-g*Math.sin(r+Tn/2)+a,w=g*Math.cos(n+Tn/2)+i,b=g*Math.sin(n+Tn/2)+a;e.lineTo(y,m),e.lineTo(w,b)}}e.closePath(),e.moveTo(0,0),e.rect(0,0,e.canvas.width,e.canvas.height),e.clip("evenodd")}function iTe(e,t,r){const{startAngle:n,pixelMargin:i,x:a,y:s,outerRadius:o,innerRadius:l}=t;let c=i/o;e.beginPath(),e.arc(a,s,o,n-c,r+c),l>i?(c=i/l,e.arc(a,s,l,r+c,n-c,!0)):e.arc(a,s,i,r+oa,n-oa),e.closePath(),e.clip()}function aTe(e){return kF(e,["outerStart","outerEnd","innerStart","innerEnd"])}function sTe(e,t,r,n){const i=aTe(e.options.borderRadius),a=(r-t)/2,s=Math.min(a,n*t/2),o=l=>{const c=(r-Math.min(a,l))*n/2;return Fs(l,0,Math.min(a,c))};return{outerStart:o(i.outerStart),outerEnd:o(i.outerEnd),innerStart:Fs(i.innerStart,0,s),innerEnd:Fs(i.innerEnd,0,s)}}function g0(e,t,r,n){return{x:r+e*Math.cos(t),y:n+e*Math.sin(t)}}function Uw(e,t,r,n,i,a){const{x:s,y:o,startAngle:l,pixelMargin:c,innerRadius:f}=t,h=Math.max(t.outerRadius+n+r-c,0),p=f>0?f+n+r+c:0;let g=0;const y=i-l;if(n){const fe=f>0?f-n:0,G=h>0?h-n:0,se=(fe+G)/2,ge=se!==0?y*se/(se+n):y;g=(y-ge)/2}const m=Math.max(.001,y*h-r/Tn)/h,w=(y-m)/2,b=l+w+g,E=i-w-g,{outerStart:S,outerEnd:T,innerStart:D,innerEnd:k}=sTe(t,p,h,E-b),P=h-S,R=h-T,O=b+S/P,V=E-T/R,I=p+D,Q=p+k,W=b+D/I,J=E-k/Q;if(e.beginPath(),a){const fe=(O+V)/2;if(e.arc(s,o,h,O,fe),e.arc(s,o,h,fe,V),T>0){const ye=g0(R,V,s,o);e.arc(ye.x,ye.y,T,V,E+oa)}const G=g0(Q,E,s,o);if(e.lineTo(G.x,G.y),k>0){const ye=g0(Q,J,s,o);e.arc(ye.x,ye.y,k,E+oa,J+Math.PI)}const se=(E-k/p+(b+D/p))/2;if(e.arc(s,o,p,E-k/p,se,!0),e.arc(s,o,p,se,b+D/p,!0),D>0){const ye=g0(I,W,s,o);e.arc(ye.x,ye.y,D,W+Math.PI,b-oa)}const ge=g0(P,b,s,o);if(e.lineTo(ge.x,ge.y),S>0){const ye=g0(P,O,s,o);e.arc(ye.x,ye.y,S,b-oa,O)}}else{e.moveTo(s,o);const fe=Math.cos(O)*h+s,G=Math.sin(O)*h+o;e.lineTo(fe,G);const se=Math.cos(V)*h+s,ge=Math.sin(V)*h+o;e.lineTo(se,ge)}e.closePath()}function oTe(e,t,r,n,i){const{fullCircles:a,startAngle:s,circumference:o}=t;let l=t.endAngle;if(a){Uw(e,t,r,n,l,i);for(let c=0;c<a;++c)e.fill();isNaN(o)||(l=s+(o%Ci||Ci))}return Uw(e,t,r,n,l,i),e.fill(),l}function ATe(e,t,r,n,i){const{fullCircles:a,startAngle:s,circumference:o,options:l}=t,{borderWidth:c,borderJoinStyle:f,borderDash:h,borderDashOffset:p,borderRadius:g}=l,y=l.borderAlign==="inner";if(!c)return;e.setLineDash(h||[]),e.lineDashOffset=p,y?(e.lineWidth=c*2,e.lineJoin=f||"round"):(e.lineWidth=c,e.lineJoin=f||"bevel");let m=t.endAngle;if(a){Uw(e,t,r,n,m,i);for(let w=0;w<a;++w)e.stroke();isNaN(o)||(m=s+(o%Ci||Ci))}y&&iTe(e,t,m),l.selfJoin&&m-s>=Tn&&g===0&&f!=="miter"&&nTe(e,t,m),a||(Uw(e,t,r,n,m,i),e.stroke())}class lTe extends ld{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0,selfJoin:!1};static defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!0,_indexable:t=>t!=="borderDash"};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;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,r,n){const i=this.getProps(["x","y"],n),{angle:a,distance:s}=GV(i,{x:t,y:r}),{startAngle:o,endAngle:l,innerRadius:c,outerRadius:f,circumference:h}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),p=(this.options.spacing+this.options.borderWidth)/2,g=Or(h,l-o),y=Q1(a,o,l)&&o!==l,m=g>=Ci||y,w=F0(s,c+p,f+p);return m&&w}getCenterPoint(t){const{x:r,y:n,startAngle:i,endAngle:a,innerRadius:s,outerRadius:o}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],t),{offset:l,spacing:c}=this.options,f=(i+a)/2,h=(s+o+c+l)/2;return{x:r+Math.cos(f)*h,y:n+Math.sin(f)*h}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:r,circumference:n}=this,i=(r.offset||0)/4,a=(r.spacing||0)/2,s=r.circular;if(this.pixelMargin=r.borderAlign==="inner"?.33:0,this.fullCircles=n>Ci?Math.floor(n/Ci):0,n===0||this.innerRadius<0||this.outerRadius<0)return;t.save();const o=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(o)*i,Math.sin(o)*i);const l=1-Math.sin(Math.min(Tn,n||0)),c=i*l;t.fillStyle=r.backgroundColor,t.strokeStyle=r.borderColor,oTe(t,this,c,a,s),ATe(t,this,c,a,s),t.restore()}}function mG(e,t,r=t){e.lineCap=Or(r.borderCapStyle,t.borderCapStyle),e.setLineDash(Or(r.borderDash,t.borderDash)),e.lineDashOffset=Or(r.borderDashOffset,t.borderDashOffset),e.lineJoin=Or(r.borderJoinStyle,t.borderJoinStyle),e.lineWidth=Or(r.borderWidth,t.borderWidth),e.strokeStyle=Or(r.borderColor,t.borderColor)}function cTe(e,t,r){e.lineTo(r.x,r.y)}function uTe(e){return e.stepped?PSe:e.tension||e.cubicInterpolationMode==="monotone"?kSe:cTe}function yG(e,t,r={}){const n=e.length,{start:i=0,end:a=n-1}=r,{start:s,end:o}=t,l=Math.max(i,s),c=Math.min(a,o),f=i<s&&a<s||i>o&&a>o;return{count:n,start:l,loop:t.loop,ilen:c<l&&!f?n+c-l:c-l}}function fTe(e,t,r,n){const{points:i,options:a}=t,{count:s,start:o,loop:l,ilen:c}=yG(i,r,n),f=uTe(a);let{move:h=!0,reverse:p}=n||{},g,y,m;for(g=0;g<=c;++g)y=i[(o+(p?c-g:g))%s],!y.skip&&(h?(e.moveTo(y.x,y.y),h=!1):f(e,m,y,p,a.stepped),m=y);return l&&(y=i[(o+(p?c:0))%s],f(e,m,y,p,a.stepped)),!!l}function hTe(e,t,r,n){const i=t.points,{count:a,start:s,ilen:o}=yG(i,r,n),{move:l=!0,reverse:c}=n||{};let f=0,h=0,p,g,y,m,w,b;const E=T=>(s+(c?o-T:T))%a,S=()=>{m!==w&&(e.lineTo(f,w),e.lineTo(f,m),e.lineTo(f,b))};for(l&&(g=i[E(0)],e.moveTo(g.x,g.y)),p=0;p<=o;++p){if(g=i[E(p)],g.skip)continue;const T=g.x,D=g.y,k=T|0;k===y?(D<m?m=D:D>w&&(w=D),f=(h*f+T)/++h):(S(),e.lineTo(T,D),y=k,h=0,m=w=D),b=D}S()}function _4(e){const t=e.options,r=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!r?hTe:fTe}function dTe(e){return e.stepped?v3e:e.tension||e.cubicInterpolationMode==="monotone"?m3e:dh}function gTe(e,t,r,n){let i=t._path;i||(i=t._path=new Path2D,t.path(i,r,n)&&i.closePath()),mG(e,t.options),e.stroke(i)}function pTe(e,t,r,n){const{segments:i,options:a}=t,s=_4(t);for(const o of i)mG(e,a,o.style),e.beginPath(),s(e,t,o,{start:r,end:r+n-1})&&e.closePath(),e.stroke()}const vTe=typeof Path2D=="function";function mTe(e,t,r,n){vTe&&!t.options.segment?gTe(e,t,r,n):pTe(e,t,r,n)}class yTe extends ld{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"};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,r){const n=this.options;if((n.tension||n.cubicInterpolationMode==="monotone")&&!n.stepped&&!this._pointsUpdated){const i=n.spanGaps?this._loop:this._fullLoop;l3e(this._points,n,t,i,r),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=_3e(this,this.options.segment))}first(){const t=this.segments,r=this.points;return t.length&&r[t[0].start]}last(){const t=this.segments,r=this.points,n=t.length;return n&&r[t[n-1].end]}interpolate(t,r){const n=this.options,i=t[r],a=this.points,s=B3e(this,{property:r,start:i,end:i});if(!s.length)return;const o=[],l=dTe(n);let c,f;for(c=0,f=s.length;c<f;++c){const{start:h,end:p}=s[c],g=a[h],y=a[p];if(g===y){o.push(g);continue}const m=Math.abs((i-g[r])/(y[r]-g[r])),w=l(g,y,m,n.stepped);w[r]=t[r],o.push(w)}return o.length===1?o[0]:o}pathSegment(t,r,n){return _4(this)(t,this,r,n)}path(t,r,n){const i=this.segments,a=_4(this);let s=this._loop;r=r||0,n=n||this.points.length-r;for(const o of i)s&=a(t,this,o,{start:r,end:r+n-1});return!!s}draw(t,r,n,i){const a=this.options||{};(this.points||[]).length&&a.borderWidth&&(t.save(),mTe(t,this,n,i),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function uk(e,t,r,n){const i=e.options,{[r]:a}=e.getProps([r],n);return Math.abs(t-a)<i.radius+i.hitRadius}class wTe extends ld{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};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,r,n){const i=this.options,{x:a,y:s}=this.getProps(["x","y"],n);return Math.pow(t-a,2)+Math.pow(r-s,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(t,r){return uk(this,t,"x",r)}inYRange(t,r){return uk(this,t,"y",r)}getCenterPoint(t){const{x:r,y:n}=this.getProps(["x","y"],t);return{x:r,y:n}}size(t){t=t||this.options||{};let r=t.radius||0;r=Math.max(r,r&&t.hoverRadius||0);const n=r&&t.borderWidth||0;return(r+n)*2}draw(t,r){const n=this.options;this.skip||n.radius<.1||!R1(this,r,this.size(n)/2)||(t.strokeStyle=n.borderColor,t.lineWidth=n.borderWidth,t.fillStyle=n.backgroundColor,b4(t,n,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}const fk=(e,t)=>{let{boxHeight:r=t,boxWidth:n=t}=e;return e.usePointStyle&&(r=Math.min(r,t),n=e.pointStyleWidth||Math.min(n,t)),{boxWidth:n,boxHeight:r,itemHeight:Math.max(t,r)}},xTe=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class hk extends ld{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,r,n){this.maxWidth=t,this.maxHeight=r,this._margins=n,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 r=Hn(t.generateLabels,[this.chart],this)||[];t.filter&&(r=r.filter(n=>t.filter(n,this.chart.data))),t.sort&&(r=r.sort((n,i)=>t.sort(n,i,this.chart.data))),this.options.reverse&&r.reverse(),this.legendItems=r}fit(){const{options:t,ctx:r}=this;if(!t.display){this.width=this.height=0;return}const n=t.labels,i=ro(n.font),a=i.size,s=this._computeTitleHeight(),{boxWidth:o,itemHeight:l}=fk(n,a);let c,f;r.font=i.string,this.isHorizontal()?(c=this.maxWidth,f=this._fitRows(s,a,o,l)+10):(f=this.maxHeight,c=this._fitCols(s,i,o,l)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(f,t.maxHeight||this.maxHeight)}_fitRows(t,r,n,i){const{ctx:a,maxWidth:s,options:{labels:{padding:o}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],f=i+o;let h=t;a.textAlign="left",a.textBaseline="middle";let p=-1,g=-f;return this.legendItems.forEach((y,m)=>{const w=n+r/2+a.measureText(y.text).width;(m===0||c[c.length-1]+w+2*o>s)&&(h+=f,c[c.length-(m>0?0:1)]=0,g+=f,p++),l[m]={left:0,top:g,row:p,width:w,height:i},c[c.length-1]+=w+o}),h}_fitCols(t,r,n,i){const{ctx:a,maxHeight:s,options:{labels:{padding:o}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],f=s-t;let h=o,p=0,g=0,y=0,m=0;return this.legendItems.forEach((w,b)=>{const{itemWidth:E,itemHeight:S}=bTe(n,r,a,w,i);b>0&&g+S+2*o>f&&(h+=p+o,c.push({width:p,height:g}),y+=p+o,m++,p=g=0),l[b]={left:y,top:g,col:m,width:E,height:S},p=Math.max(p,E),g+=S+o}),h+=p,c.push({width:p,height:g}),h}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:r,options:{align:n,labels:{padding:i},rtl:a}}=this,s=R0(a,this.left,this.width);if(this.isHorizontal()){let o=0,l=_o(n,this.left+i,this.right-this.lineWidths[o]);for(const c of r)o!==c.row&&(o=c.row,l=_o(n,this.left+i,this.right-this.lineWidths[o])),c.top+=this.top+t+i,c.left=s.leftForLtr(s.x(l),c.width),l+=c.width+i}else{let o=0,l=_o(n,this.top+t+i,this.bottom-this.columnSizes[o].height);for(const c of r)c.col!==o&&(o=c.col,l=_o(n,this.top+t+i,this.bottom-this.columnSizes[o].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;MF(t,this),this._draw(),PF(t)}}_draw(){const{options:t,columnSizes:r,lineWidths:n,ctx:i}=this,{align:a,labels:s}=t,o=Mi.color,l=R0(t.rtl,this.left,this.width),c=ro(s.font),{padding:f}=s,h=c.size,p=h/2;let g;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=c.string;const{boxWidth:y,boxHeight:m,itemHeight:w}=fk(s,h),b=function(k,P,R){if(isNaN(y)||y<=0||isNaN(m)||m<0)return;i.save();const O=Or(R.lineWidth,1);if(i.fillStyle=Or(R.fillStyle,o),i.lineCap=Or(R.lineCap,"butt"),i.lineDashOffset=Or(R.lineDashOffset,0),i.lineJoin=Or(R.lineJoin,"miter"),i.lineWidth=O,i.strokeStyle=Or(R.strokeStyle,o),i.setLineDash(Or(R.lineDash,[])),s.usePointStyle){const V={radius:m*Math.SQRT2/2,pointStyle:R.pointStyle,rotation:R.rotation,borderWidth:O},I=l.xPlus(k,y/2),Q=P+p;JV(i,V,I,Q,s.pointStyleWidth&&y)}else{const V=P+Math.max((h-m)/2,0),I=l.leftForLtr(k,y),Q=A1(R.borderRadius);i.beginPath(),Object.values(Q).some(W=>W!==0)?B4(i,{x:I,y:V,w:y,h:m,radius:Q}):i.rect(I,V,y,m),i.fill(),O!==0&&i.stroke()}i.restore()},E=function(k,P,R){Fw(i,R.text,k,P+w/2,c,{strikethrough:R.hidden,textAlign:l.textAlign(R.textAlign)})},S=this.isHorizontal(),T=this._computeTitleHeight();S?g={x:_o(a,this.left+f,this.right-n[0]),y:this.top+f+T,line:0}:g={x:this.left+f,y:_o(a,this.top+T+f,this.bottom-r[0].height),line:0},iG(this.ctx,t.textDirection);const D=w+f;this.legendItems.forEach((k,P)=>{i.strokeStyle=k.fontColor,i.fillStyle=k.fontColor;const R=i.measureText(k.text).width,O=l.textAlign(k.textAlign||(k.textAlign=s.textAlign)),V=y+p+R;let I=g.x,Q=g.y;l.setWidth(this.width),S?P>0&&I+V+f>this.right&&(Q=g.y+=D,g.line++,I=g.x=_o(a,this.left+f,this.right-n[g.line])):P>0&&Q+D>this.bottom&&(I=g.x=I+r[g.line].width+f,g.line++,Q=g.y=_o(a,this.top+T+f,this.bottom-r[g.line].height));const W=l.x(I);if(b(W,Q,k),I=CSe(O,I+y+p,S?I+V:this.right,t.rtl),E(l.x(I),Q,k),S)g.x+=V+f;else if(typeof k.text!="string"){const J=c.lineHeight;g.y+=wG(k,J)+f}else g.y+=D}),aG(this.ctx,t.textDirection)}drawTitle(){const t=this.options,r=t.title,n=ro(r.font),i=al(r.padding);if(!r.display)return;const a=R0(t.rtl,this.left,this.width),s=this.ctx,o=r.position,l=n.size/2,c=i.top+l;let f,h=this.left,p=this.width;if(this.isHorizontal())p=Math.max(...this.lineWidths),f=this.top+c,h=_o(t.align,h,this.right-p);else{const y=this.columnSizes.reduce((m,w)=>Math.max(m,w.height),0);f=c+_o(t.align,this.top,this.bottom-y-t.labels.padding-this._computeTitleHeight())}const g=_o(o,h,h+p);s.textAlign=a.textAlign($V(o)),s.textBaseline="middle",s.strokeStyle=r.color,s.fillStyle=r.color,s.font=n.string,Fw(s,r.text,g,f,n)}_computeTitleHeight(){const t=this.options.title,r=ro(t.font),n=al(t.padding);return t.display?r.lineHeight+n.height:0}_getLegendItemAt(t,r){let n,i,a;if(F0(t,this.left,this.right)&&F0(r,this.top,this.bottom)){for(a=this.legendHitBoxes,n=0;n<a.length;++n)if(i=a[n],F0(t,i.left,i.left+i.width)&&F0(r,i.top,i.top+i.height))return this.legendItems[n]}return null}handleEvent(t){const r=this.options;if(!ETe(t.type,r))return;const n=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const i=this._hoveredItem,a=xTe(i,n);i&&!a&&Hn(r.onLeave,[t,i,this],this),this._hoveredItem=n,n&&!a&&Hn(r.onHover,[t,n,this],this)}else n&&Hn(r.onClick,[t,n,this],this)}}function bTe(e,t,r,n,i){const a=BTe(n,e,t,r),s=CTe(i,n,t.lineHeight);return{itemWidth:a,itemHeight:s}}function BTe(e,t,r,n){let i=e.text;return i&&typeof i!="string"&&(i=i.reduce((a,s)=>a.length>s.length?a:s)),t+r.size/2+n.measureText(i).width}function CTe(e,t,r){let n=e;return typeof t.text!="string"&&(n=wG(t,r)),n}function wG(e,t){const r=e.text?e.text.length:0;return t*r}function ETe(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var _Te={id:"legend",_element:hk,start(e,t,r){const n=e.legend=new hk({ctx:e.ctx,options:r,chart:e});of.configure(e,n,r),of.addBox(e,n)},stop(e){of.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,r){const n=e.legend;of.configure(e,n,r),n.options=r},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,r){const n=t.datasetIndex,i=r.chart;i.isDatasetVisible(n)?(i.hide(n),t.hidden=!0):(i.show(n),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:r,pointStyle:n,textAlign:i,color:a,useBorderRadius:s,borderRadius:o}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(r?0:void 0),f=al(c.borderWidth);return{text:t[l.index].label,fillStyle:c.backgroundColor,fontColor:a,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(f.width+f.height)/4,strokeStyle:c.borderColor,pointStyle:n||c.pointStyle,rotation:c.rotation,textAlign:i||c.textAlign,borderRadius:s&&(o||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)}}};const Kp={average(e){if(!e.length)return!1;let t,r,n=new Set,i=0,a=0;for(t=0,r=e.length;t<r;++t){const o=e[t].element;if(o&&o.hasValue()){const l=o.tooltipPosition();n.add(l.x),i+=l.y,++a}}return a===0||n.size===0?!1:{x:[...n].reduce((o,l)=>o+l)/n.size,y:i/a}},nearest(e,t){if(!e.length)return!1;let r=t.x,n=t.y,i=Number.POSITIVE_INFINITY,a,s,o;for(a=0,s=e.length;a<s;++a){const l=e[a].element;if(l&&l.hasValue()){const c=l.getCenterPoint(),f=w4(t,c);f<i&&(i=f,o=l)}}if(o){const l=o.tooltipPosition();r=l.x,n=l.y}return{x:r,y:n}}};function kl(e,t){return t&&(Ga(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function Tc(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
`)>-1?e.split(`
`):e}function STe(e,t){const{element:r,datasetIndex:n,index:i}=t,a=e.getDatasetMeta(n).controller,{label:s,value:o}=a.getLabelAndValue(i);return{chart:e,label:s,parsed:a.getParsed(i),raw:e.data.datasets[n].data[i],formattedValue:o,dataset:a.getDataset(),dataIndex:i,datasetIndex:n,element:r}}function dk(e,t){const r=e.chart.ctx,{body:n,footer:i,title:a}=e,{boxWidth:s,boxHeight:o}=t,l=ro(t.bodyFont),c=ro(t.titleFont),f=ro(t.footerFont),h=a.length,p=i.length,g=n.length,y=al(t.padding);let m=y.height,w=0,b=n.reduce((T,D)=>T+D.before.length+D.lines.length+D.after.length,0);if(b+=e.beforeBody.length+e.afterBody.length,h&&(m+=h*c.lineHeight+(h-1)*t.titleSpacing+t.titleMarginBottom),b){const T=t.displayColors?Math.max(o,l.lineHeight):l.lineHeight;m+=g*T+(b-g)*l.lineHeight+(b-1)*t.bodySpacing}p&&(m+=t.footerMarginTop+p*f.lineHeight+(p-1)*t.footerSpacing);let E=0;const S=function(T){w=Math.max(w,r.measureText(T).width+E)};return r.save(),r.font=c.string,ln(e.title,S),r.font=l.string,ln(e.beforeBody.concat(e.afterBody),S),E=t.displayColors?s+2+t.boxPadding:0,ln(n,T=>{ln(T.before,S),ln(T.lines,S),ln(T.after,S)}),E=0,r.font=f.string,ln(e.footer,S),r.restore(),w+=y.width,{width:w,height:m}}function FTe(e,t){const{y:r,height:n}=t;return r<n/2?"top":r>e.height-n/2?"bottom":"center"}function TTe(e,t,r,n){const{x:i,width:a}=n,s=r.caretSize+r.caretPadding;if(e==="left"&&i+a+s>t.width||e==="right"&&i-a-s<0)return!0}function OTe(e,t,r,n){const{x:i,width:a}=r,{width:s,chartArea:{left:o,right:l}}=e;let c="center";return n==="center"?c=i<=(o+l)/2?"left":"right":i<=a/2?c="left":i>=s-a/2&&(c="right"),TTe(c,e,t,r)&&(c="center"),c}function gk(e,t,r){const n=r.yAlign||t.yAlign||FTe(e,r);return{xAlign:r.xAlign||t.xAlign||OTe(e,t,r,n),yAlign:n}}function UTe(e,t){let{x:r,width:n}=e;return t==="right"?r-=n:t==="center"&&(r-=n/2),r}function NTe(e,t,r){let{y:n,height:i}=e;return t==="top"?n+=r:t==="bottom"?n-=i+r:n-=i/2,n}function pk(e,t,r,n){const{caretSize:i,caretPadding:a,cornerRadius:s}=e,{xAlign:o,yAlign:l}=r,c=i+a,{topLeft:f,topRight:h,bottomLeft:p,bottomRight:g}=A1(s);let y=UTe(t,o);const m=NTe(t,l,c);return l==="center"?o==="left"?y+=c:o==="right"&&(y-=c):o==="left"?y-=Math.max(f,p)+i:o==="right"&&(y+=Math.max(h,g)+i),{x:Fs(y,0,n.width-t.width),y:Fs(m,0,n.height-t.height)}}function My(e,t,r){const n=al(r.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-n.right:e.x+n.left}function vk(e){return kl([],Tc(e))}function LTe(e,t,r){return Ad(e,{tooltip:t,tooltipItems:r,type:"tooltip"})}function mk(e,t){const r=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return r?e.override(r):e}const xG={beforeTitle:Sc,title(e){if(e.length>0){const t=e[0],r=t.chart.data.labels,n=r?r.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(n>0&&t.dataIndex<n)return r[t.dataIndex]}return""},afterTitle:Sc,beforeBody:Sc,beforeLabel:Sc,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 r=e.formattedValue;return Ln(r)||(t+=r),t},labelColor(e){const r=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:r.borderColor,backgroundColor:r.backgroundColor,borderWidth:r.borderWidth,borderDash:r.borderDash,borderDashOffset:r.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const r=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:r.pointStyle,rotation:r.rotation}},afterLabel:Sc,afterBody:Sc,beforeFooter:Sc,footer:Sc,afterFooter:Sc};function $s(e,t,r,n){const i=e[t].call(r,n);return typeof i>"u"?xG[t].call(r,n):i}class yk extends ld{static positioners=Kp;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 r=this.chart,n=this.options.setContext(this.getContext()),i=n.enabled&&r.options.animation&&n.animations,a=new oG(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(a)),a}getContext(){return this.$context||(this.$context=LTe(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,r){const{callbacks:n}=r,i=$s(n,"beforeTitle",this,t),a=$s(n,"title",this,t),s=$s(n,"afterTitle",this,t);let o=[];return o=kl(o,Tc(i)),o=kl(o,Tc(a)),o=kl(o,Tc(s)),o}getBeforeBody(t,r){return vk($s(r.callbacks,"beforeBody",this,t))}getBody(t,r){const{callbacks:n}=r,i=[];return ln(t,a=>{const s={before:[],lines:[],after:[]},o=mk(n,a);kl(s.before,Tc($s(o,"beforeLabel",this,a))),kl(s.lines,$s(o,"label",this,a)),kl(s.after,Tc($s(o,"afterLabel",this,a))),i.push(s)}),i}getAfterBody(t,r){return vk($s(r.callbacks,"afterBody",this,t))}getFooter(t,r){const{callbacks:n}=r,i=$s(n,"beforeFooter",this,t),a=$s(n,"footer",this,t),s=$s(n,"afterFooter",this,t);let o=[];return o=kl(o,Tc(i)),o=kl(o,Tc(a)),o=kl(o,Tc(s)),o}_createItems(t){const r=this._active,n=this.chart.data,i=[],a=[],s=[];let o=[],l,c;for(l=0,c=r.length;l<c;++l)o.push(STe(this.chart,r[l]));return t.filter&&(o=o.filter((f,h,p)=>t.filter(f,h,p,n))),t.itemSort&&(o=o.sort((f,h)=>t.itemSort(f,h,n))),ln(o,f=>{const h=mk(t.callbacks,f);i.push($s(h,"labelColor",this,f)),a.push($s(h,"labelPointStyle",this,f)),s.push($s(h,"labelTextColor",this,f))}),this.labelColors=i,this.labelPointStyles=a,this.labelTextColors=s,this.dataPoints=o,o}update(t,r){const n=this.options.setContext(this.getContext()),i=this._active;let a,s=[];if(!i.length)this.opacity!==0&&(a={opacity:0});else{const o=Kp[n.position].call(this,i,this._eventPosition);s=this._createItems(n),this.title=this.getTitle(s,n),this.beforeBody=this.getBeforeBody(s,n),this.body=this.getBody(s,n),this.afterBody=this.getAfterBody(s,n),this.footer=this.getFooter(s,n);const l=this._size=dk(this,n),c=Object.assign({},o,l),f=gk(this.chart,n,c),h=pk(n,c,f,this.chart);this.xAlign=f.xAlign,this.yAlign=f.yAlign,a={opacity:1,x:h.x,y:h.y,width:l.width,height:l.height,caretX:o.x,caretY:o.y}}this._tooltipItems=s,this.$context=void 0,a&&this._resolveAnimations().update(this,a),t&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:r})}drawCaret(t,r,n,i){const a=this.getCaretPosition(t,n,i);r.lineTo(a.x1,a.y1),r.lineTo(a.x2,a.y2),r.lineTo(a.x3,a.y3)}getCaretPosition(t,r,n){const{xAlign:i,yAlign:a}=this,{caretSize:s,cornerRadius:o}=n,{topLeft:l,topRight:c,bottomLeft:f,bottomRight:h}=A1(o),{x:p,y:g}=t,{width:y,height:m}=r;let w,b,E,S,T,D;return a==="center"?(T=g+m/2,i==="left"?(w=p,b=w-s,S=T+s,D=T-s):(w=p+y,b=w+s,S=T-s,D=T+s),E=w):(i==="left"?b=p+Math.max(l,f)+s:i==="right"?b=p+y-Math.max(c,h)-s:b=this.caretX,a==="top"?(S=g,T=S-s,w=b-s,E=b+s):(S=g+m,T=S+s,w=b+s,E=b-s),D=S),{x1:w,x2:b,x3:E,y1:S,y2:T,y3:D}}drawTitle(t,r,n){const i=this.title,a=i.length;let s,o,l;if(a){const c=R0(n.rtl,this.x,this.width);for(t.x=My(this,n.titleAlign,n),r.textAlign=c.textAlign(n.titleAlign),r.textBaseline="middle",s=ro(n.titleFont),o=n.titleSpacing,r.fillStyle=n.titleColor,r.font=s.string,l=0;l<a;++l)r.fillText(i[l],c.x(t.x),t.y+s.lineHeight/2),t.y+=s.lineHeight+o,l+1===a&&(t.y+=n.titleMarginBottom-o)}}_drawColorBox(t,r,n,i,a){const s=this.labelColors[n],o=this.labelPointStyles[n],{boxHeight:l,boxWidth:c}=a,f=ro(a.bodyFont),h=My(this,"left",a),p=i.x(h),g=l<f.lineHeight?(f.lineHeight-l)/2:0,y=r.y+g;if(a.usePointStyle){const m={radius:Math.min(c,l)/2,pointStyle:o.pointStyle,rotation:o.rotation,borderWidth:1},w=i.leftForLtr(p,c)+c/2,b=y+l/2;t.strokeStyle=a.multiKeyBackground,t.fillStyle=a.multiKeyBackground,b4(t,m,w,b),t.strokeStyle=s.borderColor,t.fillStyle=s.backgroundColor,b4(t,m,w,b)}else{t.lineWidth=Wr(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 m=i.leftForLtr(p,c),w=i.leftForLtr(i.xPlus(p,1),c-2),b=A1(s.borderRadius);Object.values(b).some(E=>E!==0)?(t.beginPath(),t.fillStyle=a.multiKeyBackground,B4(t,{x:m,y,w:c,h:l,radius:b}),t.fill(),t.stroke(),t.fillStyle=s.backgroundColor,t.beginPath(),B4(t,{x:w,y:y+1,w:c-2,h:l-2,radius:b}),t.fill()):(t.fillStyle=a.multiKeyBackground,t.fillRect(m,y,c,l),t.strokeRect(m,y,c,l),t.fillStyle=s.backgroundColor,t.fillRect(w,y+1,c-2,l-2))}t.fillStyle=this.labelTextColors[n]}drawBody(t,r,n){const{body:i}=this,{bodySpacing:a,bodyAlign:s,displayColors:o,boxHeight:l,boxWidth:c,boxPadding:f}=n,h=ro(n.bodyFont);let p=h.lineHeight,g=0;const y=R0(n.rtl,this.x,this.width),m=function(R){r.fillText(R,y.x(t.x+g),t.y+p/2),t.y+=p+a},w=y.textAlign(s);let b,E,S,T,D,k,P;for(r.textAlign=s,r.textBaseline="middle",r.font=h.string,t.x=My(this,w,n),r.fillStyle=n.bodyColor,ln(this.beforeBody,m),g=o&&w!=="right"?s==="center"?c/2+f:c+2+f:0,T=0,k=i.length;T<k;++T){for(b=i[T],E=this.labelTextColors[T],r.fillStyle=E,ln(b.before,m),S=b.lines,o&&S.length&&(this._drawColorBox(r,t,T,y,n),p=Math.max(h.lineHeight,l)),D=0,P=S.length;D<P;++D)m(S[D]),p=h.lineHeight;ln(b.after,m)}g=0,p=h.lineHeight,ln(this.afterBody,m),t.y-=a}drawFooter(t,r,n){const i=this.footer,a=i.length;let s,o;if(a){const l=R0(n.rtl,this.x,this.width);for(t.x=My(this,n.footerAlign,n),t.y+=n.footerMarginTop,r.textAlign=l.textAlign(n.footerAlign),r.textBaseline="middle",s=ro(n.footerFont),r.fillStyle=n.footerColor,r.font=s.string,o=0;o<a;++o)r.fillText(i[o],l.x(t.x),t.y+s.lineHeight/2),t.y+=s.lineHeight+n.footerSpacing}}drawBackground(t,r,n,i){const{xAlign:a,yAlign:s}=this,{x:o,y:l}=t,{width:c,height:f}=n,{topLeft:h,topRight:p,bottomLeft:g,bottomRight:y}=A1(i.cornerRadius);r.fillStyle=i.backgroundColor,r.strokeStyle=i.borderColor,r.lineWidth=i.borderWidth,r.beginPath(),r.moveTo(o+h,l),s==="top"&&this.drawCaret(t,r,n,i),r.lineTo(o+c-p,l),r.quadraticCurveTo(o+c,l,o+c,l+p),s==="center"&&a==="right"&&this.drawCaret(t,r,n,i),r.lineTo(o+c,l+f-y),r.quadraticCurveTo(o+c,l+f,o+c-y,l+f),s==="bottom"&&this.drawCaret(t,r,n,i),r.lineTo(o+g,l+f),r.quadraticCurveTo(o,l+f,o,l+f-g),s==="center"&&a==="left"&&this.drawCaret(t,r,n,i),r.lineTo(o,l+h),r.quadraticCurveTo(o,l,o+h,l),r.closePath(),r.fill(),i.borderWidth>0&&r.stroke()}_updateAnimationTarget(t){const r=this.chart,n=this.$animations,i=n&&n.x,a=n&&n.y;if(i||a){const s=Kp[t.position].call(this,this._active,this._eventPosition);if(!s)return;const o=this._size=dk(this,t),l=Object.assign({},s,this._size),c=gk(r,t,l),f=pk(t,l,c,r);(i._to!==f.x||a._to!==f.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=o.width,this.height=o.height,this.caretX=s.x,this.caretY=s.y,this._resolveAnimations().update(this,f))}}_willRender(){return!!this.opacity}draw(t){const r=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(r);const i={width:this.width,height:this.height},a={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const s=al(r.padding),o=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;r.enabled&&o&&(t.save(),t.globalAlpha=n,this.drawBackground(a,t,i,r),iG(t,r.textDirection),a.y+=s.top,this.drawTitle(a,t,r),this.drawBody(a,t,r),this.drawFooter(a,t,r),aG(t,r.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,r){const n=this._active,i=t.map(({datasetIndex:o,index:l})=>{const c=this.chart.getDatasetMeta(o);if(!c)throw new Error("Cannot find a dataset at index "+o);return{datasetIndex:o,element:c.data[l],index:l}}),a=!Cw(n,i),s=this._positionChanged(i,r);(a||s)&&(this._active=i,this._eventPosition=r,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,r,n=!0){if(r&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,a=this._active||[],s=this._getActiveElements(t,a,r,n),o=this._positionChanged(s,t),l=r||!Cw(s,a)||o;return l&&(this._active=s,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,r))),l}_getActiveElements(t,r,n,i){const a=this.options;if(t.type==="mouseout")return[];if(!i)return r.filter(o=>this.chart.data.datasets[o.datasetIndex]&&this.chart.getDatasetMeta(o.datasetIndex).controller.getParsed(o.index)!==void 0);const s=this.chart.getElementsAtEventForMode(t,a.mode,a,n);return a.reverse&&s.reverse(),s}_positionChanged(t,r){const{caretX:n,caretY:i,options:a}=this,s=Kp[a.position].call(this,t,r);return s!==!1&&(n!==s.x||i!==s.y)}}var DTe={id:"tooltip",_element:yk,positioners:Kp,afterInit(e,t,r){r&&(e.tooltip=new yk({chart:e,options:r}))},beforeUpdate(e,t,r){e.tooltip&&e.tooltip.initialize(r)},reset(e,t,r){e.tooltip&&e.tooltip.initialize(r)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const r={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...r,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",r)}},afterEvent(e,t){if(e.tooltip){const r=t.replay;e.tooltip.handleEvent(t.event,r,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:xG},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"]};const ITe=(e,t,r,n)=>(typeof t=="string"?(r=e.push(t)-1,n.unshift({index:r,label:t})):isNaN(t)&&(r=null),r);function MTe(e,t,r,n){const i=e.indexOf(t);if(i===-1)return ITe(e,t,r,n);const a=e.lastIndexOf(t);return i!==a?r:i}const PTe=(e,t)=>e===null?null:Fs(Math.round(e),0,t);function wk(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class kTe extends Bg{static id="category";static defaults={ticks:{callback:wk}};constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const r=this._addedLabels;if(r.length){const n=this.getLabels();for(const{index:i,label:a}of r)n[i]===a&&n.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,r){if(Ln(t))return null;const n=this.getLabels();return r=isFinite(r)&&n[r]===t?r:MTe(n,t,Or(r,t),this._addedLabels),PTe(r,n.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:r}=this.getUserBounds();let{min:n,max:i}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(n=0),r||(i=this.getLabels().length-1)),this.min=n,this.max=i}buildTicks(){const t=this.min,r=this.max,n=this.options.offset,i=[];let a=this.getLabels();a=t===0&&r===a.length-1?a:a.slice(t,r+1),this._valueRange=Math.max(a.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let s=t;s<=r;s++)i.push({value:s});return i}getLabelForValue(t){return wk.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 r=this.ticks;return t<0||t>r.length-1?null:this.getPixelForValue(r[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}function QTe(e,t){const r=[],{bounds:i,step:a,min:s,max:o,precision:l,count:c,maxTicks:f,maxDigits:h,includeBounds:p}=e,g=a||1,y=f-1,{min:m,max:w}=t,b=!Ln(s),E=!Ln(o),S=!Ln(c),T=(w-m)/(h+1);let D=CP((w-m)/y/g)*g,k,P,R,O;if(D<1e-14&&!b&&!E)return[{value:m},{value:w}];O=Math.ceil(w/D)-Math.floor(m/D),O>y&&(D=CP(O*D/y/g)*g),Ln(l)||(k=Math.pow(10,l),D=Math.ceil(D*k)/k),i==="ticks"?(P=Math.floor(m/D)*D,R=Math.ceil(w/D)*D):(P=m,R=w),b&&E&&a&&dSe((o-s)/a,D/1e3)?(O=Math.round(Math.min((o-s)/D,f)),D=(o-s)/O,P=s,R=o):S?(P=b?s:P,R=E?o:R,O=c-1,D=(R-P)/O):(O=(R-P)/D,a1(O,Math.round(O),D/1e3)?O=Math.round(O):O=Math.ceil(O));const V=Math.max(EP(D),EP(P));k=Math.pow(10,Ln(l)?V:l),P=Math.round(P*k)/k,R=Math.round(R*k)/k;let I=0;for(b&&(p&&P!==s?(r.push({value:s}),P<s&&I++,a1(Math.round((P+I*D)*k)/k,s,xk(s,T,e))&&I++):P<s&&I++);I<O;++I){const Q=Math.round((P+I*D)*k)/k;if(E&&Q>o)break;r.push({value:Q})}return E&&p&&R!==o?r.length&&a1(r[r.length-1].value,o,xk(o,T,e))?r[r.length-1].value=o:r.push({value:o}):(!E||R===o)&&r.push({value:R}),r}function xk(e,t,{horizontal:r,minRotation:n}){const i=Mc(n),a=(r?Math.sin(i):Math.cos(i))||.001,s=.75*t*(""+e).length;return Math.min(t/a,s)}class RTe extends Bg{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,r){return Ln(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:r,maxDefined:n}=this.getUserBounds();let{min:i,max:a}=this;const s=l=>i=r?i:l,o=l=>a=n?a:l;if(t){const l=X0(i),c=X0(a);l<0&&c<0?o(0):l>0&&c>0&&s(0)}if(i===a){let l=a===0?1:Math.abs(a*.05);o(a+l),t||s(i-l)}this.min=i,this.max=a}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:r,stepSize:n}=t,i;return n?(i=Math.ceil(this.max/n)-Math.floor(this.min/n)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${n} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),r=r||11),r&&(i=Math.min(r,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,r=t.ticks;let n=this.getTickLimit();n=Math.max(2,n);const i={maxTicks:n,bounds:t.bounds,min:t.min,max:t.max,precision:r.precision,step:r.stepSize,count:r.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:r.minRotation||0,includeBounds:r.includeBounds!==!1},a=this._range||this,s=QTe(i,a);return t.bounds==="ticks"&&gSe(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 r=this.min,n=this.max;if(super.configure(),this.options.offset&&t.length){const i=(n-r)/Math.max(t.length-1,1)/2;r-=i,n+=i}this._startValue=r,this._endValue=n,this._valueRange=n-r}getLabelForValue(t){return IF(t,this.chart.options.locale,this.options.ticks.format)}}class jTe extends RTe{static id="linear";static defaults={ticks:{callback:XV.formatters.numeric}};determineDataLimits(){const{min:t,max:r}=this.getMinMax(!0);this.min=yA(t)?t:0,this.max=yA(r)?r:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),r=t?this.width:this.height,n=Mc(this.options.ticks.minRotation),i=(t?Math.sin(n):Math.cos(n))||.001,a=this._resolveTickFontOptions(0);return Math.ceil(r/Math.min(40,a.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}}const Yx={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}},eo=Object.keys(Yx);function bk(e,t){return e-t}function Bk(e,t){if(Ln(t))return null;const r=e._adapter,{parser:n,round:i,isoWeekday:a}=e._parseOpts;let s=t;return typeof n=="function"&&(s=n(s)),yA(s)||(s=typeof n=="string"?r.parse(s,n):r.parse(s)),s===null?null:(i&&(s=i==="week"&&(k1(a)||a===!0)?r.startOf(s,"isoWeek",a):r.startOf(s,i)),+s)}function Ck(e,t,r,n){const i=eo.length;for(let a=eo.indexOf(e);a<i-1;++a){const s=Yx[eo[a]],o=s.steps?s.steps:Number.MAX_SAFE_INTEGER;if(s.common&&Math.ceil((r-t)/(o*s.size))<=n)return eo[a]}return eo[i-1]}function HTe(e,t,r,n,i){for(let a=eo.length-1;a>=eo.indexOf(r);a--){const s=eo[a];if(Yx[s].common&&e._adapter.diff(i,n,s)>=t-1)return s}return eo[r?eo.indexOf(r):0]}function KTe(e){for(let t=eo.indexOf(e)+1,r=eo.length;t<r;++t)if(Yx[eo[t]].common)return eo[t]}function Ek(e,t,r){if(!r)e[t]=!0;else if(r.length){const{lo:n,hi:i}=LF(r,t),a=r[n]>=t?r[n]:r[i];e[a]=!0}}function zTe(e,t,r,n){const i=e._adapter,a=+i.startOf(t[0].value,n),s=t[t.length-1].value;let o,l;for(o=a;o<=s;o=+i.add(o,1,n))l=r[o],l>=0&&(t[l].major=!0);return t}function _k(e,t,r){const n=[],i={},a=t.length;let s,o;for(s=0;s<a;++s)o=t[s],i[o]=s,n.push({value:o,major:!1});return a===0||!r?n:zTe(e,n,i,r)}class Sk extends Bg{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};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,r={}){const n=t.time||(t.time={}),i=this._adapter=new W3e._date(t.adapters.date);i.init(r),i1(n.displayFormats,i.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(t),this._normalized=r.normalized}parse(t,r){return t===void 0?null:Bk(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,r=this._adapter,n=t.time.unit||"day";let{min:i,max:a,minDefined:s,maxDefined:o}=this.getUserBounds();function l(c){!s&&!isNaN(c.min)&&(i=Math.min(i,c.min)),!o&&!isNaN(c.max)&&(a=Math.max(a,c.max))}(!s||!o)&&(l(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&l(this.getMinMax(!1))),i=yA(i)&&!isNaN(i)?i:+r.startOf(Date.now(),n),a=yA(a)&&!isNaN(a)?a:+r.endOf(Date.now(),n)+1,this.min=Math.min(i,a-1),this.max=Math.max(i+1,a)}_getLabelBounds(){const t=this.getLabelTimestamps();let r=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return t.length&&(r=t[0],n=t[t.length-1]),{min:r,max:n}}buildTicks(){const t=this.options,r=t.time,n=t.ticks,i=n.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 a=this.min,s=this.max,o=wSe(i,a,s);return this._unit=r.unit||(n.autoSkip?Ck(r.minUnit,this.min,this.max,this._getLabelCapacity(a)):HTe(this,o.length,r.minUnit,this.min,this.max)),this._majorUnit=!n.major.enabled||this._unit==="year"?void 0:KTe(this._unit),this.initOffsets(i),t.reverse&&o.reverse(),_k(this,o,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let r=0,n=0,i,a;this.options.offset&&t.length&&(i=this.getDecimalForValue(t[0]),t.length===1?r=1-i:r=(this.getDecimalForValue(t[1])-i)/2,a=this.getDecimalForValue(t[t.length-1]),t.length===1?n=a:n=(a-this.getDecimalForValue(t[t.length-2]))/2);const s=t.length<3?.5:.25;r=Fs(r,0,s),n=Fs(n,0,s),this._offsets={start:r,end:n,factor:1/(r+1+n)}}_generate(){const t=this._adapter,r=this.min,n=this.max,i=this.options,a=i.time,s=a.unit||Ck(a.minUnit,r,n,this._getLabelCapacity(r)),o=Or(i.ticks.stepSize,1),l=s==="week"?a.isoWeekday:!1,c=k1(l)||l===!0,f={};let h=r,p,g;if(c&&(h=+t.startOf(h,"isoWeek",l)),h=+t.startOf(h,c?"day":s),t.diff(n,r,s)>1e5*o)throw new Error(r+" and "+n+" are too far apart with stepSize of "+o+" "+s);const y=i.ticks.source==="data"&&this.getDataTimestamps();for(p=h,g=0;p<n;p=+t.add(p,o,s),g++)Ek(f,p,y);return(p===n||i.bounds==="ticks"||g===1)&&Ek(f,p,y),Object.keys(f).sort(bk).map(m=>+m)}getLabelForValue(t){const r=this._adapter,n=this.options.time;return n.tooltipFormat?r.format(t,n.tooltipFormat):r.format(t,n.displayFormats.datetime)}format(t,r){const i=this.options.time.displayFormats,a=this._unit,s=r||i[a];return this._adapter.format(t,s)}_tickFormatFunction(t,r,n,i){const a=this.options,s=a.ticks.callback;if(s)return Hn(s,[t,r,n],this);const o=a.time.displayFormats,l=this._unit,c=this._majorUnit,f=l&&o[l],h=c&&o[c],p=n[r],g=c&&h&&p&&p.major;return this._adapter.format(t,i||(g?h:f))}generateTickLabels(t){let r,n,i;for(r=0,n=t.length;r<n;++r)i=t[r],i.label=this._tickFormatFunction(i.value,r,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const r=this._offsets,n=this.getDecimalForValue(t);return this.getPixelForDecimal((r.start+n)*r.factor)}getValueForPixel(t){const r=this._offsets,n=this.getDecimalForPixel(t)/r.factor-r.end;return this.min+n*(this.max-this.min)}_getLabelSize(t){const r=this.options.ticks,n=this.ctx.measureText(t).width,i=Mc(this.isHorizontal()?r.maxRotation:r.minRotation),a=Math.cos(i),s=Math.sin(i),o=this._resolveTickFontOptions(0).size;return{w:n*a+o*s,h:n*s+o*a}}_getLabelCapacity(t){const r=this.options.time,n=r.displayFormats,i=n[r.unit]||n.millisecond,a=this._tickFormatFunction(t,0,_k(this,[t],this._majorUnit),i),s=this._getLabelSize(a),o=Math.floor(this.isHorizontal()?this.width/s.w:this.height/s.h)-1;return o>0?o:1}getDataTimestamps(){let t=this._cache.data||[],r,n;if(t.length)return t;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(r=0,n=i.length;r<n;++r)t=t.concat(i[r].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let r,n;if(t.length)return t;const i=this.getLabels();for(r=0,n=i.length;r<n;++r)t.push(Bk(this,i[r]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return bSe(t.sort(bk))}}function Py(e,t,r){let n=0,i=e.length-1,a,s,o,l;r?(t>=e[n].pos&&t<=e[i].pos&&({lo:n,hi:i}=bh(e,"pos",t)),{pos:a,time:o}=e[n],{pos:s,time:l}=e[i]):(t>=e[n].time&&t<=e[i].time&&({lo:n,hi:i}=bh(e,"time",t)),{time:a,pos:o}=e[n],{time:s,pos:l}=e[i]);const c=s-a;return c?o+(l-o)*(t-a)/c:o}class COe extends Sk{static id="timeseries";static defaults=Sk.defaults;constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),r=this._table=this.buildLookupTable(t);this._minPos=Py(r,this.min),this._tableRange=Py(r,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:r,max:n}=this,i=[],a=[];let s,o,l,c,f;for(s=0,o=t.length;s<o;++s)c=t[s],c>=r&&c<=n&&i.push(c);if(i.length<2)return[{time:r,pos:0},{time:n,pos:1}];for(s=0,o=i.length;s<o;++s)f=i[s+1],l=i[s-1],c=i[s],Math.round((f+l)/2)!==c&&a.push({time:c,pos:s/(o-1)});return a}_generate(){const t=this.min,r=this.max;let n=super.getDataTimestamps();return(!n.includes(t)||!n.length)&&n.splice(0,0,t),(!n.includes(r)||n.length===1)&&n.push(r),n.sort((i,a)=>i-a)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const r=this.getDataTimestamps(),n=this.getLabelTimestamps();return r.length&&n.length?t=this.normalize(r.concat(n)):t=r.length?r:n,t=this._cache.all=t,t}getDecimalForValue(t){return(Py(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const r=this._offsets,n=this.getDecimalForPixel(t)/r.factor-r.end;return Py(this._table,n*this._tableRange+this._minPos,!0)}}const bG="label";function Fk(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function VTe(e,t){const r=e.options;r&&t&&Object.assign(r,t)}function BG(e,t){e.labels=t}function CG(e,t,r=bG){const n=[];e.datasets=t.map(i=>{const a=e.datasets.find(s=>s[r]===i[r]);return!a||!i.data||n.includes(a)?{...i}:(n.push(a),Object.assign(a,i),a)})}function GTe(e,t=bG){const r={labels:[],datasets:[]};return BG(r,e.labels),CG(r,e.datasets,t),r}function qTe(e,t){const{height:r=150,width:n=300,redraw:i=!1,datasetIdKey:a,type:s,data:o,options:l,plugins:c=[],fallbackContent:f,updateMode:h,...p}=e,g=N.useRef(null),y=N.useRef(null),m=()=>{g.current&&(y.current=new Wx(g.current,{type:s,data:GTe(o,a),options:l&&{...l},plugins:c}),Fk(t,y.current))},w=()=>{Fk(t,null),y.current&&(y.current.destroy(),y.current=null)};return N.useEffect(()=>{!i&&y.current&&l&&VTe(y.current,l)},[i,l]),N.useEffect(()=>{!i&&y.current&&BG(y.current.config.data,o.labels)},[i,o.labels]),N.useEffect(()=>{!i&&y.current&&o.datasets&&CG(y.current.config.data,o.datasets,a)},[i,o.datasets]),N.useEffect(()=>{y.current&&(i?(w(),setTimeout(m)):y.current.update(h))},[i,l,o.labels,o.datasets,h]),N.useEffect(()=>{y.current&&(w(),setTimeout(m))},[s]),N.useEffect(()=>(m(),()=>w()),[]),F.jsx("canvas",{ref:g,role:"img",height:r,width:n,...p,children:f})}const WTe=N.forwardRef(qTe);function EG(e,t){return Wx.register(t),N.forwardRef((r,n)=>F.jsx(WTe,{...r,ref:n,type:e}))}const YTe=EG("line",q3e),$Te=EG("doughnut",G3e);Wx.register(kTe,jTe,wTe,yTe,lTe,DTe,_Te);const XTe=`${Os.TRIAJE}/doctor/triajes`;function JTe(){const[e,t]=N.useState([]),[r,n]=N.useState("todos"),[i,a]=N.useState(""),s=async()=>{try{const V=await(await fetch(XTe)).json();t(Array.isArray(V)?V:[])}catch(O){console.error("Error cargando triajes:",O)}};N.useEffect(()=>{s();const O=setInterval(s,15e3);return()=>clearInterval(O)},[]);const o=O=>{const V=O.filter(Q=>Q.tiempo_espera_min!==null&&Q.tiempo_espera_min>=0);if(V.length===0)return"—";const I=V.reduce((Q,W)=>Q+W.tiempo_espera_min,0);return Math.round(I/V.length)},l=O=>o(e.filter(V=>V.color===O)),c=()=>o(e.filter(O=>O.estado==="ATENDIDO")),f=e.filter(O=>O.estado==="EN ESPERA"||O.estado==="EN_ESPERA"),h=()=>o(f),p=O=>{const V=l(O),I=f.filter(W=>W.color===O);if(V==="—")return O==="rojo"?1:O==="naranja"?10:O==="amarillo"?30:O==="verde"?60:30;const Q=1+I.length*.1;return Math.round(V*Q)},g=[...f].filter(O=>O.color==="rojo"||O.color==="naranja").sort((O,V)=>(V.tiempo_espera_min||0)-(O.tiempo_espera_min||0)).slice(0,5),y={};e.forEach(O=>{if(O.tiempo_espera_min==null||O.tiempo_espera_min<0)return;const V=new Date(O.fecha_registro).toISOString().slice(0,10);y[V]||(y[V]=[]),y[V].push(O.tiempo_espera_min)});const m=Object.keys(y).sort(),w=m.map(O=>{const V=y[O],I=V.reduce((Q,W)=>Q+W,0);return Math.round(I/V.length)}),b={labels:m,datasets:[{label:"Espera promedio (min)",data:w,borderColor:"#2563eb",backgroundColor:"rgba(37,99,235,0.15)",tension:.3,fill:!0}]},E={responsive:!0,plugins:{legend:{display:!0,position:"bottom"}},scales:{x:{ticks:{maxRotation:45,minRotation:45}},y:{beginAtZero:!0}}},S=["rojo","naranja","amarillo","verde","blanco"].map(O=>e.filter(V=>V.color===O).length),T={labels:["Rojo","Naranja","Amarillo","Verde","Blanco"],datasets:[{data:S,backgroundColor:["#dc2626","#f97316","#eab308","#16a34a","#9ca3af"]}]},D={plugins:{legend:{position:"bottom"}}},k=e.filter(O=>r==="todos"?!0:O.color===r).filter(O=>{const V=i.toLowerCase();return O.dni.toLowerCase().includes(V)||O.nombre.toLowerCase().includes(V)}),P=async O=>{if(window.confirm("¿Marcar paciente como atendido?"))try{await fetch(`${Os.TRIAJE}/doctor/atender/${O}`,{method:"PUT"}),s()}catch(V){console.error("Error al marcar atendido:",V)}},R=async()=>{try{const O=new jt("l","mm","a4"),V=O.internal.pageSize.getWidth();O.setFont("helvetica","bold"),O.setFontSize(16),O.text("Hospital de Apoyo de Recuay",10,12),O.setFontSize(12),O.setFont("helvetica","normal"),O.text("Reporte de Triaje – Panel de indicadores",10,18),O.text(`Fecha de generación: ${new Date().toLocaleString("es-PE")}`,10,24),O.line(10,27,V-10,27);const I=document.getElementById("panel-triaje-dashboard");if(!I){alert("No se encontró el panel para exportar.");return}const Q=await Ix(I,{scale:2}),W=Q.toDataURL("image/png"),J=V-20,fe=Q.height*J/Q.width;O.addImage(W,"PNG",10,32,J,fe),O.save("Reporte_Triaje.pdf")}catch(O){console.error("Error al generar PDF:",O),alert("No se pudo generar el PDF")}};return F.jsxs("div",{className:"ver-triaje-container",children:[F.jsxs("div",{className:"header-triaje",children:[F.jsx("h2",{children:"🩺 Triajes registrados"}),F.jsx("button",{className:"btn-pdf",onClick:R,children:"📄 Descargar reporte PDF"})]}),F.jsxs("div",{id:"panel-triaje-dashboard",children:[F.jsxs("div",{className:"kpi-grid",children:[F.jsxs("div",{className:"kpi-card",children:[F.jsx("span",{className:"kpi-label",children:"Pacientes en espera"}),F.jsx("span",{className:"kpi-value",children:f.length})]}),F.jsxs("div",{className:"kpi-card",children:[F.jsx("span",{className:"kpi-label",children:"Tiempo espera actual"}),F.jsx("span",{className:"kpi-value",children:h()==="—"?"—":`${h()} min`})]}),F.jsxs("div",{className:"kpi-card",children:[F.jsx("span",{className:"kpi-label",children:"Atención promedio"}),F.jsx("span",{className:"kpi-value",children:c()==="—"?"—":`${c()} min`})]}),F.jsxs("div",{className:"kpi-card critico",children:[F.jsx("span",{className:"kpi-label",children:"Rojos en espera"}),F.jsx("span",{className:"kpi-value",children:f.filter(O=>O.color==="rojo").length})]})]}),F.jsxs("div",{className:"dashboard-grid",children:[F.jsxs("div",{className:"stats-grid",children:[F.jsxs("div",{className:"stat-card",children:[F.jsx("h4",{children:"Total triajes"}),F.jsx("p",{children:e.length})]}),F.jsxs("div",{className:"stat-card rojo",children:[F.jsx("h4",{children:"Rojo"}),F.jsxs("p",{children:[l("rojo")," min"]}),F.jsxs("small",{children:["Estimado actual: ",p("rojo")," min"]})]}),F.jsxs("div",{className:"stat-card naranja",children:[F.jsx("h4",{children:"Naranja"}),F.jsxs("p",{children:[l("naranja")," min"]}),F.jsxs("small",{children:["Estimado actual: ",p("naranja")," min"]})]}),F.jsxs("div",{className:"stat-card amarillo",children:[F.jsx("h4",{children:"Amarillo"}),F.jsxs("p",{children:[l("amarillo")," min"]}),F.jsxs("small",{children:["Estimado actual: ",p("amarillo")," min"]})]}),F.jsxs("div",{className:"stat-card verde",children:[F.jsx("h4",{children:"Verde"}),F.jsxs("p",{children:[l("verde")," min"]}),F.jsxs("small",{children:["Estimado actual: ",p("verde")," min"]})]})]}),F.jsxs("div",{className:"charts-container",children:[F.jsxs("div",{className:"chart-card",children:[F.jsx("h4",{children:"Evolución del tiempo de espera"}),m.length>0?F.jsx(YTe,{data:b,options:E}):F.jsx("p",{className:"chart-placeholder",children:"Aún no hay datos suficientes para la serie temporal."})]}),F.jsxs("div",{className:"chart-card",children:[F.jsx("h4",{children:"Distribución por prioridad"}),e.length>0?F.jsx($Te,{data:T,options:D}):F.jsx("p",{className:"chart-placeholder",children:"No hay registros de triaje disponibles."})]})]})]}),F.jsxs("div",{className:"criticos-panel",children:[F.jsx("h4",{children:"Ranking de pacientes críticos en espera"}),g.length===0?F.jsx("p",{className:"chart-placeholder",children:"No hay pacientes ROJOS/NARANJA en espera."}):F.jsx("ul",{children:g.map(O=>F.jsxs("li",{children:[F.jsx("span",{className:`dot ${O.color}`}),F.jsxs("strong",{children:[O.nombre," (",O.dni,")"]})," ","— ",O.area," —"," ",O.tiempo_espera_min!=null?`${O.tiempo_espera_min} min`:"sin dato"]},O.id))})]})]}),F.jsxs("div",{className:"filtros-triaje",children:[F.jsx("label",{children:"Filtrar por prioridad:"}),F.jsxs("select",{value:r,onChange:O=>n(O.target.value),children:[F.jsx("option",{value:"todos",children:"Todos"}),F.jsx("option",{value:"rojo",children:"Rojo (Emergencia)"}),F.jsx("option",{value:"naranja",children:"Naranja (Muy urgente)"}),F.jsx("option",{value:"amarillo",children:"Amarillo (Urgente)"}),F.jsx("option",{value:"verde",children:"Verde (No urgente)"}),F.jsx("option",{value:"blanco",children:"Blanco (En espera)"})]})]}),F.jsx("div",{className:"buscador-triaje",children:F.jsx("input",{type:"text",placeholder:"Buscar por DNI o nombre del paciente...",value:i,onChange:O=>a(O.target.value)})}),F.jsxs("table",{className:"tabla-triajes",children:[F.jsx("thead",{children:F.jsxs("tr",{children:[F.jsx("th",{children:"Fecha"}),F.jsx("th",{children:"DNI"}),F.jsx("th",{children:"Paciente"}),F.jsx("th",{children:"Área"}),F.jsx("th",{children:"Prioridad"}),F.jsx("th",{children:"Estado"}),F.jsx("th",{children:"Espera (min)"}),F.jsx("th",{children:"Acción"})]})}),F.jsx("tbody",{children:k.length===0?F.jsx("tr",{children:F.jsx("td",{colSpan:"8",className:"sin-datos",children:"No hay triajes para mostrar"})}):k.map(O=>F.jsxs("tr",{children:[F.jsx("td",{children:new Date(O.fecha_registro).toLocaleString("es-PE")}),F.jsx("td",{children:O.dni}),F.jsx("td",{children:O.nombre}),F.jsx("td",{children:O.area}),F.jsx("td",{children:F.jsx("span",{className:`badge ${O.color}`,children:O.color.toUpperCase()})}),F.jsx("td",{children:O.estado}),F.jsx("td",{children:O.tiempo_espera_min!==null?`${O.tiempo_espera_min} min`:"—"}),F.jsx("td",{children:O.estado==="EN ESPERA"||O.estado==="EN_ESPERA"?F.jsx("button",{className:"btn-atender",onClick:()=>P(O.id),children:"Atender"}):F.jsx("span",{className:"atendido-ok",children:"✔"})})]},O.id))})]})]})}const ZTe=`${Os.TRIAJE}/doctor/triajes`;function eOe(){const[e,t]=N.useState(null),[r,n]=N.useState(null);N.useEffect(()=>{i();const s=setInterval(i,1e4);return()=>clearInterval(s)},[]);const i=async()=>{const l=(await(await fetch(ZTe)).json()).filter(f=>f.estado==="EN ESPERA"),c={rojo:1,naranja:2,amarillo:3,verde:4,blanco:5};l.sort((f,h)=>c[f.color]!==c[h.color]?c[f.color]-c[h.color]:new Date(f.fecha_registro)-new Date(h.fecha_registro)),t(l[0]||null),n(l[1]||null)},a=s=>`****${s?.slice(-4)}`;return F.jsxs("div",{className:"atencion-container",children:[F.jsx("h2",{children:"🩺 Atención al Paciente"}),F.jsxs("div",{className:"bloque",children:[F.jsx("h3",{children:"🔴 En atención"}),e?F.jsxs(F.Fragment,{children:[F.jsxs("p",{children:[F.jsx("strong",{children:"DNI:"})," ",a(e.dni)]}),F.jsxs("p",{children:[F.jsx("strong",{children:"Paciente:"})," ",e.nombre]}),F.jsxs("p",{children:[F.jsx("strong",{children:"Área:"})," ",e.area]}),F.jsx("span",{className:`badge ${e.color}`,children:e.color.toUpperCase()})]}):F.jsx("p",{className:"vacio",children:"No hay paciente en atención"})]}),F.jsxs("div",{className:"bloque",children:[F.jsx("h3",{children:"⏭ Siguiente paciente"}),r?F.jsxs(F.Fragment,{children:[F.jsxs("p",{children:[F.jsx("strong",{children:"DNI:"})," ",a(r.dni)]}),F.jsxs("p",{children:[F.jsx("strong",{children:"Paciente:"})," ",r.nombre]}),F.jsxs("p",{children:[F.jsx("strong",{children:"Área:"})," ",r.area]}),F.jsx("span",{className:`badge ${r.color}`,children:r.color.toUpperCase()})]}):F.jsx("p",{className:"vacio",children:"En espera"})]}),F.jsx("div",{className:"mensaje-info",children:"ℹ️ El orden de atención se determina por prioridad clínica y tiempo de espera."})]})}const tOe=()=>{const[e,t]=N.useState(""),[r,n]=N.useState(""),[i,a]=N.useState(""),[s,o]=N.useState(""),[l,c]=N.useState(""),[f,h]=N.useState(""),[p,g]=N.useState(!1),{login:y}=L4(),m=ng(),w=async b=>{if(b.preventDefault(),h(""),!e||!r){h("Usuario y contraseña son obligatorios.");return}if(p&&(!i||!s||!l)){h("Complete todos los campos del registro.");return}if(p){try{const E=await fetch(`${Os.AUTH}/register`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({emailOrUser:e,password:r,dni:i,phone:s,role:l})}),S=await E.json();if(!E.ok){h(S.detail||"Error al registrar usuario.");return}alert("Usuario registrado correctamente. Ahora puede iniciar sesión."),g(!1),n("")}catch{h("Error de conexión con el servidor.")}return}try{const E=await fetch(`${Os.AUTH}/login`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({emailOrUser:e,password:r})}),S=await E.json();if(!E.ok){h(S.detail||"Credenciales incorrectas.");return}y({id:S.user.id,email:S.user.email,dni:S.user.dni,rol:S.user.role}),S.user.role==="DOCTOR"?m("/panel-doctor"):S.user.role==="ENFERMERO"?m("/pacientes-hoy"):m("/")}catch{h("Error de conexión con el servidor.")}};return F.jsxs("div",{className:"login-container",children:[F.jsx("h2",{children:p?"Registrar Usuario":"Iniciar Sesión"}),F.jsxs("form",{onSubmit:w,children:[F.jsxs("div",{className:"form-group",children:[F.jsx("label",{children:"Usuario o Correo"}),F.jsx("input",{type:"text",value:e,onChange:b=>t(b.target.value),required:!0})]}),F.jsxs("div",{className:"form-group",children:[F.jsx("label",{children:"Contraseña"}),F.jsx("input",{type:"password",value:r,onChange:b=>n(b.target.value),required:!0})]}),p&&F.jsxs(F.Fragment,{children:[F.jsxs("div",{className:"form-group",children:[F.jsx("label",{children:"DNI"}),F.jsx("input",{type:"text",value:i,onChange:b=>a(b.target.value),required:!0})]}),F.jsxs("div",{className:"form-group",children:[F.jsx("label",{children:"Celular"}),F.jsx("input",{type:"text",value:s,onChange:b=>o(b.target.value),required:!0})]}),F.jsxs("div",{className:"form-group",children:[F.jsx("label",{children:"Rol"}),F.jsxs("select",{value:l,onChange:b=>c(b.target.value),required:!0,children:[F.jsx("option",{value:"",children:"Seleccione un rol"}),F.jsx("option",{value:"ENFERMERO",children:"Enfermero"}),F.jsx("option",{value:"DOCTOR",children:"Doctor"})]})]})]}),f&&F.jsx("div",{className:"error",children:f}),F.jsx("button",{type:"submit",className:"btn-login",children:p?"Registrar":"Iniciar Sesión"})]}),F.jsx("button",{className:"btn-toggle",onClick:()=>{g(!p),h("")},children:p?"¿Ya tienes cuenta? Iniciar sesión":"¿No tienes cuenta? Regístrate"})]})},rOe=()=>{const[e,t]=N.useState(!1),r=ng(),n=()=>{t(!1),r("/triaje-general")},i=()=>{t(!1),r("/login")};return F.jsxs(F.Fragment,{children:[F.jsx("div",{className:"agente-btn",onClick:()=>t(!e),children:F.jsx("span",{className:"emoji-robot",children:"🤖"})}),e&&F.jsxs("div",{className:"agente-panel",children:[F.jsx("h3",{children:"Asistente Virtual"}),F.jsx("p",{children:"Hola 👋 ¿Cómo deseas ingresar al sistema?"}),F.jsx("button",{onClick:n,className:"agente-opcion",children:"🧑‍⚕️ Soy paciente"}),F.jsx("button",{onClick:i,className:"agente-opcion",children:"👩‍⚕️ Soy enfermero"}),F.jsx("button",{onClick:i,className:"agente-opcion",children:"👨‍⚕️ Soy médico"}),F.jsx("button",{className:"agente-cerrar",onClick:()=>t(!1),children:"Cerrar"})]})]})};function nOe(){const{login:e}=L4();return F.jsxs(nY,{children:[F.jsx(pY,{}),F.jsx(rOe,{}),F.jsxs(DW,{children:[F.jsx(ya,{path:"/",element:F.jsx(vY,{})}),F.jsx(ya,{path:"/triaje-publico",element:F.jsx(mY,{})}),F.jsx(ya,{path:"/ubicacion",element:F.jsx(yY,{})}),F.jsx(ya,{path:"/triaje-general",element:F.jsx($$,{})}),F.jsx(ya,{path:"/triaje-mayores",element:F.jsx(J$,{})}),F.jsx(ya,{path:"/triaje-cred",element:F.jsx(Z$,{})}),F.jsx(ya,{path:"/triaje-obstetrico",element:F.jsx(eX,{})}),F.jsx(ya,{path:"/medicos",element:F.jsx(s4e,{})}),F.jsx(ya,{path:"/pacientes-hoy",element:F.jsx(rX,{})}),F.jsx(ya,{path:"/reportes-triaje",element:F.jsx(i4e,{})}),F.jsx(ya,{path:"/triaje-asistido",element:F.jsx(a4e,{})}),F.jsx(ya,{path:"/historial-clinico",element:F.jsx(A4e,{})}),F.jsx(ya,{path:"/panel-doctor",element:F.jsx(N4e,{})}),F.jsx(ya,{path:"/ver-triaje",element:F.jsx(JTe,{})}),F.jsx(ya,{path:"/derivaciones",element:F.jsx(D4e,{})}),F.jsx(ya,{path:"/atencion",element:F.jsx(eOe,{})}),F.jsx(ya,{path:"/login",element:F.jsx(tOe,{})})]})]})}zq.createRoot(document.getElementById("root")).render(F.jsx(x0.StrictMode,{children:F.jsx(nOe,{})}));export{un as _,iOe as c,sl as g};
