mirror of
https://github.com/hanzoai/metrics.git
synced 2026-10-30 20:03:39 +00:00
67 lines
222 KiB
JavaScript
67 lines
222 KiB
JavaScript
var ul,be,Uc,Kr,$s,Wc,Vc,jc,aa,zo,Bo,Gc,il={},Yc=[],Sh=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,cl=Array.isArray;function _r(e,t){for(var r in t)e[r]=t[r];return e}function sa(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function we(e,t,r){var n,l,i,o={};for(i in t)i=="key"?n=t[i]:i=="ref"?l=t[i]:o[i]=t[i];if(arguments.length>2&&(o.children=arguments.length>3?ul.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)o[i]===void 0&&(o[i]=e.defaultProps[i]);return el(e,o,n,l,null)}function el(e,t,r,n,l){var i={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:l??++Uc,__i:-1,__u:0};return l==null&&be.vnode!=null&&be.vnode(i),i}function Kc(){return{current:null}}function At(e){return e.children}function Kt(e,t){this.props=e,this.context=t}function kn(e,t){if(t==null)return e.__?kn(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null)return r.__e;return typeof e.type=="function"?kn(e):null}function Zc(e){var t,r;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null){e.__e=e.__c.base=r.__e;break}return Zc(e)}}function Ho(e){(!e.__d&&(e.__d=!0)&&Kr.push(e)&&!Bl.__r++||$s!=be.debounceRendering)&&(($s=be.debounceRendering)||Wc)(Bl)}function Bl(){for(var e,t,r,n,l,i,o,a=1;Kr.length;)Kr.length>a&&Kr.sort(Vc),e=Kr.shift(),a=Kr.length,e.__d&&(r=void 0,n=void 0,l=(n=(t=e).__v).__e,i=[],o=[],t.__P&&((r=_r({},n)).__v=n.__v+1,be.vnode&&be.vnode(r),ua(t.__P,r,n,t.__n,t.__P.namespaceURI,32&n.__u?[l]:null,i,l??kn(n),!!(32&n.__u),o),r.__v=n.__v,r.__.__k[r.__i]=r,Xc(i,r,o),n.__e=n.__=null,r.__e!=l&&Zc(r)));Bl.__r=0}function Qc(e,t,r,n,l,i,o,a,s,u,p){var f,d,k,m,g,v,R,w=n&&n.__k||Yc,O=t.length;for(s=xh(r,t,w,s,O),f=0;f<O;f++)(k=r.__k[f])!=null&&(d=k.__i==-1?il:w[k.__i]||il,k.__i=f,v=ua(e,k,d,l,i,o,a,s,u,p),m=k.__e,k.ref&&d.ref!=k.ref&&(d.ref&&ca(d.ref,null,k),p.push(k.ref,k.__c||m,k)),g==null&&m!=null&&(g=m),(R=!!(4&k.__u))||d.__k===k.__k?s=Jc(k,s,e,R):typeof k.type=="function"&&v!==void 0?s=v:m&&(s=m.nextSibling),k.__u&=-7);return r.__e=g,s}function xh(e,t,r,n,l){var i,o,a,s,u,p=r.length,f=p,d=0;for(e.__k=new Array(l),i=0;i<l;i++)(o=t[i])!=null&&typeof o!="boolean"&&typeof o!="function"?(typeof o=="string"||typeof o=="number"||typeof o=="bigint"||o.constructor==String?o=e.__k[i]=el(null,o,null,null,null):cl(o)?o=e.__k[i]=el(At,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?o=e.__k[i]=el(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):e.__k[i]=o,s=i+d,o.__=e,o.__b=e.__b+1,a=null,(u=o.__i=$h(o,r,s,f))!=-1&&(f--,(a=r[u])&&(a.__u|=2)),a==null||a.__v==null?(u==-1&&(l>p?d--:l<p&&d++),typeof o.type!="function"&&(o.__u|=4)):u!=s&&(u==s-1?d--:u==s+1?d++:(u>s?d--:d++,o.__u|=4))):e.__k[i]=null;if(f)for(i=0;i<p;i++)(a=r[i])!=null&&(2&a.__u)==0&&(a.__e==n&&(n=kn(a)),tf(a,a));return n}function Jc(e,t,r,n){var l,i;if(typeof e.type=="function"){for(l=e.__k,i=0;l&&i<l.length;i++)l[i]&&(l[i].__=e,t=Jc(l[i],t,r,n));return t}e.__e!=t&&(n&&(t&&e.type&&!t.parentNode&&(t=kn(e)),r.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function Sr(e,t){return t=t||[],e==null||typeof e=="boolean"||(cl(e)?e.some(function(r){Sr(r,t)}):t.push(e)),t}function $h(e,t,r,n){var l,i,o,a=e.key,s=e.type,u=t[r],p=u!=null&&(2&u.__u)==0;if(u===null&&a==null||p&&a==u.key&&s==u.type)return r;if(n>(p?1:0)){for(l=r-1,i=r+1;l>=0||i<t.length;)if((u=t[o=l>=0?l--:i++])!=null&&(2&u.__u)==0&&a==u.key&&s==u.type)return o}return-1}function Rs(e,t,r){t[0]=="-"?e.setProperty(t,r??""):e[t]=r==null?"":typeof r!="number"||Sh.test(t)?r:r+"px"}function $l(e,t,r,n,l){var i,o;e:if(t=="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||Rs(e.style,t,"");if(r)for(t in r)n&&r[t]==n[t]||Rs(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace(jc,"$1")),o=t.toLowerCase(),t=o in e||t=="onFocusOut"||t=="onFocusIn"?o.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=r,r?n?r.u=n.u:(r.u=aa,e.addEventListener(t,i?Bo:zo,i)):e.removeEventListener(t,i?Bo:zo,i);else{if(l=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=r??"";break e}catch{}typeof r=="function"||(r==null||r===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&r==1?"":r))}}function Es(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.t==null)t.t=aa++;else if(t.t<r.u)return;return r(be.event?be.event(t):t)}}}function ua(e,t,r,n,l,i,o,a,s,u){var p,f,d,k,m,g,v,R,w,O,D,T,E,S,x,N,F,A=t.type;if(t.constructor!==void 0)return null;128&r.__u&&(s=!!(32&r.__u),i=[a=t.__e=r.__e]),(p=be.__b)&&p(t);e:if(typeof A=="function")try{if(R=t.props,w="prototype"in A&&A.prototype.render,O=(p=A.contextType)&&n[p.__c],D=p?O?O.props.value:p.__:n,r.__c?v=(f=t.__c=r.__c).__=f.__E:(w?t.__c=f=new A(R,D):(t.__c=f=new Kt(R,D),f.constructor=A,f.render=Eh),O&&O.sub(f),f.state||(f.state={}),f.__n=n,d=f.__d=!0,f.__h=[],f._sb=[]),w&&f.__s==null&&(f.__s=f.state),w&&A.getDerivedStateFromProps!=null&&(f.__s==f.state&&(f.__s=_r({},f.__s)),_r(f.__s,A.getDerivedStateFromProps(R,f.__s))),k=f.props,m=f.state,f.__v=t,d)w&&A.getDerivedStateFromProps==null&&f.componentWillMount!=null&&f.componentWillMount(),w&&f.componentDidMount!=null&&f.__h.push(f.componentDidMount);else{if(w&&A.getDerivedStateFromProps==null&&R!==k&&f.componentWillReceiveProps!=null&&f.componentWillReceiveProps(R,D),t.__v==r.__v||!f.__e&&f.shouldComponentUpdate!=null&&f.shouldComponentUpdate(R,f.__s,D)===!1){for(t.__v!=r.__v&&(f.props=R,f.state=f.__s,f.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(G){G&&(G.__=t)}),T=0;T<f._sb.length;T++)f.__h.push(f._sb[T]);f._sb=[],f.__h.length&&o.push(f);break e}f.componentWillUpdate!=null&&f.componentWillUpdate(R,f.__s,D),w&&f.componentDidUpdate!=null&&f.__h.push(function(){f.componentDidUpdate(k,m,g)})}if(f.context=D,f.props=R,f.__P=e,f.__e=!1,E=be.__r,S=0,w){for(f.state=f.__s,f.__d=!1,E&&E(t),p=f.render(f.props,f.state,f.context),x=0;x<f._sb.length;x++)f.__h.push(f._sb[x]);f._sb=[]}else do f.__d=!1,E&&E(t),p=f.render(f.props,f.state,f.context),f.state=f.__s;while(f.__d&&++S<25);f.state=f.__s,f.getChildContext!=null&&(n=_r(_r({},n),f.getChildContext())),w&&!d&&f.getSnapshotBeforeUpdate!=null&&(g=f.getSnapshotBeforeUpdate(k,m)),N=p,p!=null&&p.type===At&&p.key==null&&(N=ef(p.props.children)),a=Qc(e,cl(N)?N:[N],t,r,n,l,i,o,a,s,u),f.base=t.__e,t.__u&=-161,f.__h.length&&o.push(f),v&&(f.__E=f.__=null)}catch(G){if(t.__v=null,s||i!=null)if(G.then){for(t.__u|=s?160:128;a&&a.nodeType==8&&a.nextSibling;)a=a.nextSibling;i[i.indexOf(a)]=null,t.__e=a}else{for(F=i.length;F--;)sa(i[F]);qo(t)}else t.__e=r.__e,t.__k=r.__k,G.then||qo(t);be.__e(G,t,r)}else i==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):a=t.__e=Rh(r.__e,t,r,n,l,i,o,s,u);return(p=be.diffed)&&p(t),128&t.__u?void 0:a}function qo(e){e&&e.__c&&(e.__c.__e=!0),e&&e.__k&&e.__k.forEach(qo)}function Xc(e,t,r){for(var n=0;n<r.length;n++)ca(r[n],r[++n],r[++n]);be.__c&&be.__c(t,e),e.some(function(l){try{e=l.__h,l.__h=[],e.some(function(i){i.call(l)})}catch(i){be.__e(i,l.__v)}})}function ef(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:cl(e)?e.map(ef):_r({},e)}function Rh(e,t,r,n,l,i,o,a,s){var u,p,f,d,k,m,g,v=r.props||il,R=t.props,w=t.type;if(w=="svg"?l="http://www.w3.org/2000/svg":w=="math"?l="http://www.w3.org/1998/Math/MathML":l||(l="http://www.w3.org/1999/xhtml"),i!=null){for(u=0;u<i.length;u++)if((k=i[u])&&"setAttribute"in k==!!w&&(w?k.localName==w:k.nodeType==3)){e=k,i[u]=null;break}}if(e==null){if(w==null)return document.createTextNode(R);e=document.createElementNS(l,w,R.is&&R),a&&(be.__m&&be.__m(t,i),a=!1),i=null}if(w==null)v===R||a&&e.data==R||(e.data=R);else{if(i=i&&ul.call(e.childNodes),!a&&i!=null)for(v={},u=0;u<e.attributes.length;u++)v[(k=e.attributes[u]).name]=k.value;for(u in v)if(k=v[u],u!="children"){if(u=="dangerouslySetInnerHTML")f=k;else if(!(u in R)){if(u=="value"&&"defaultValue"in R||u=="checked"&&"defaultChecked"in R)continue;$l(e,u,null,k,l)}}for(u in R)k=R[u],u=="children"?d=k:u=="dangerouslySetInnerHTML"?p=k:u=="value"?m=k:u=="checked"?g=k:a&&typeof k!="function"||v[u]===k||$l(e,u,k,v[u],l);if(p)a||f&&(p.__html==f.__html||p.__html==e.innerHTML)||(e.innerHTML=p.__html),t.__k=[];else if(f&&(e.innerHTML=""),Qc(t.type=="template"?e.content:e,cl(d)?d:[d],t,r,n,w=="foreignObject"?"http://www.w3.org/1999/xhtml":l,i,o,i?i[0]:r.__k&&kn(r,0),a,s),i!=null)for(u=i.length;u--;)sa(i[u]);a||(u="value",w=="progress"&&m==null?e.removeAttribute("value"):m!=null&&(m!==e[u]||w=="progress"&&!m||w=="option"&&m!=v[u])&&$l(e,u,m,v[u],l),u="checked",g!=null&&g!=e[u]&&$l(e,u,g,v[u],l))}return e}function ca(e,t,r){try{if(typeof e=="function"){var n=typeof e.__u=="function";n&&e.__u(),n&&t==null||(e.__u=e(t))}else e.current=t}catch(l){be.__e(l,r)}}function tf(e,t,r){var n,l;if(be.unmount&&be.unmount(e),(n=e.ref)&&(n.current&&n.current!=e.__e||ca(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(i){be.__e(i,t)}n.base=n.__P=null}if(n=e.__k)for(l=0;l<n.length;l++)n[l]&&tf(n[l],t,r||typeof e.type!="function");r||sa(e.__e),e.__c=e.__=e.__e=void 0}function Eh(e,t,r){return this.constructor(e,r)}function ol(e,t,r){var n,l,i,o;t==document&&(t=document.documentElement),be.__&&be.__(e,t),l=(n=typeof r=="function")?null:r&&r.__k||t.__k,i=[],o=[],ua(t,e=(!n&&r||t).__k=we(At,null,[e]),l||il,il,t.namespaceURI,!n&&r?[r]:l?null:t.firstChild?ul.call(t.childNodes):null,i,!n&&r?r:l?l.__e:t.firstChild,n,o),Xc(i,e,o)}function rf(e,t){ol(e,t,rf)}function Ph(e,t,r){var n,l,i,o,a=_r({},e.props);for(i in e.type&&e.type.defaultProps&&(o=e.type.defaultProps),t)i=="key"?n=t[i]:i=="ref"?l=t[i]:a[i]=t[i]===void 0&&o!=null?o[i]:t[i];return arguments.length>2&&(a.children=arguments.length>3?ul.call(arguments,2):r),el(e.type,a,n||e.key,l||e.ref,null)}function Ct(e){function t(r){var n,l;return this.getChildContext||(n=new Set,(l={})[t.__c]=this,this.getChildContext=function(){return l},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(i){this.props.value!=i.value&&n.forEach(function(o){o.__e=!0,Ho(o)})},this.sub=function(i){n.add(i);var o=i.componentWillUnmount;i.componentWillUnmount=function(){n&&n.delete(i),o&&o.call(i)}}),r.children}return t.__c="__cC"+Gc++,t.__=e,t.Provider=t.__l=(t.Consumer=function(r,n){return r.children(n)}).contextType=t,t}ul=Yc.slice,be={__e:function(e,t,r,n){for(var l,i,o;t=t.__;)if((l=t.__c)&&!l.__)try{if((i=l.constructor)&&i.getDerivedStateFromError!=null&&(l.setState(i.getDerivedStateFromError(e)),o=l.__d),l.componentDidCatch!=null&&(l.componentDidCatch(e,n||{}),o=l.__d),o)return l.__E=l}catch(a){e=a}throw e}},Uc=0,Kt.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=_r({},this.state),typeof e=="function"&&(e=e(_r({},r),this.props)),e&&_r(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),Ho(this))},Kt.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Ho(this))},Kt.prototype.render=At,Kr=[],Wc=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Vc=function(e,t){return e.__v.__b-t.__v.__b},Bl.__r=0,jc=/(PointerCapture)$|Capture$/i,aa=0,zo=Es(!1),Bo=Es(!0),Gc=0;var Ah=0;function o_(e,t,r,n,l,i){t||(t={});var o,a,s=t;if("ref"in s)for(a in s={},t)a=="ref"?o=t[a]:s[a]=t[a];var u={type:e,props:s,key:r,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Ah,__i:-1,__u:0,__source:l,__self:i};if(typeof e=="function"&&(o=e.defaultProps))for(a in o)s[a]===void 0&&(s[a]=o[a]);return be.vnode&&be.vnode(u),u}var Er,Ue,Ti,Ps,Sn=0,nf=[],Ze=be,As=Ze.__b,Os=Ze.__r,Ts=Ze.diffed,Ms=Ze.__c,Cs=Ze.unmount,Ds=Ze.__;function tn(e,t){Ze.__h&&Ze.__h(Ue,e,Sn||t),Sn=0;var r=Ue.__H||(Ue.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function Pr(e){return Sn=1,Kl(lf,e)}function Kl(e,t,r){var n=tn(Er++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):lf(void 0,t),function(a){var s=n.__N?n.__N[0]:n.__[0],u=n.t(s,a);s!==u&&(n.__N=[u,n.__[1]],n.__c.setState({}))}],n.__c=Ue,!Ue.__f)){var l=function(a,s,u){if(!n.__c.__H)return!0;var p=n.__c.__H.__.filter(function(d){return!!d.__c});if(p.every(function(d){return!d.__N}))return!i||i.call(this,a,s,u);var f=n.__c.props!==a;return p.forEach(function(d){if(d.__N){var k=d.__[0];d.__=d.__N,d.__N=void 0,k!==d.__[0]&&(f=!0)}}),i&&i.call(this,a,s,u)||f};Ue.__f=!0;var i=Ue.shouldComponentUpdate,o=Ue.componentWillUpdate;Ue.componentWillUpdate=function(a,s,u){if(this.__e){var p=i;i=void 0,l(a,s,u),i=p}o&&o.call(this,a,s,u)},Ue.shouldComponentUpdate=l}return n.__N||n.__}function Jr(e,t){var r=tn(Er++,3);!Ze.__s&&da(r.__H,t)&&(r.__=e,r.u=t,Ue.__H.__h.push(r))}function Hr(e,t){var r=tn(Er++,4);!Ze.__s&&da(r.__H,t)&&(r.__=e,r.u=t,Ue.__h.push(r))}function Ar(e){return Sn=5,$t(function(){return{current:e}},[])}function fa(e,t,r){Sn=6,Hr(function(){if(typeof e=="function"){var n=e(t());return function(){e(null),n&&typeof n=="function"&&n()}}if(e)return e.current=t(),function(){return e.current=null}},r==null?r:r.concat(e))}function $t(e,t){var r=tn(Er++,7);return da(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function Tr(e,t){return Sn=8,$t(function(){return e},t)}function Re(e){var t=Ue.context[e.__c],r=tn(Er++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(Ue)),t.props.value):e.__}function pa(e,t){Ze.useDebugValue&&Ze.useDebugValue(t?t(e):e)}function Oh(e){var t=tn(Er++,10),r=Pr();return t.__=e,Ue.componentDidCatch||(Ue.componentDidCatch=function(n,l){t.__&&t.__(n,l),r[1](n)}),[r[0],function(){r[1](void 0)}]}function ha(){var e=tn(Er++,11);if(!e.__){for(var t=Ue.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var r=t.__m||(t.__m=[0,0]);e.__="P"+r[0]+"-"+r[1]++}return e.__}function Th(){for(var e;e=nf.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Tl),e.__H.__h.forEach(Uo),e.__H.__h=[]}catch(t){e.__H.__h=[],Ze.__e(t,e.__v)}}Ze.__b=function(e){Ue=null,As&&As(e)},Ze.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Ds&&Ds(e,t)},Ze.__r=function(e){Os&&Os(e),Er=0;var t=(Ue=e.__c).__H;t&&(Ti===Ue?(t.__h=[],Ue.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(Tl),t.__h.forEach(Uo),t.__h=[],Er=0)),Ti=Ue},Ze.diffed=function(e){Ts&&Ts(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(nf.push(t)!==1&&Ps===Ze.requestAnimationFrame||((Ps=Ze.requestAnimationFrame)||Mh)(Th)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),Ti=Ue=null},Ze.__c=function(e,t){t.some(function(r){try{r.__h.forEach(Tl),r.__h=r.__h.filter(function(n){return!n.__||Uo(n)})}catch(n){t.some(function(l){l.__h&&(l.__h=[])}),t=[],Ze.__e(n,r.__v)}}),Ms&&Ms(e,t)},Ze.unmount=function(e){Cs&&Cs(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{Tl(n)}catch(l){t=l}}),r.__H=void 0,t&&Ze.__e(t,r.__v))};var Ls=typeof requestAnimationFrame=="function";function Mh(e){var t,r=function(){clearTimeout(n),Ls&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,35);Ls&&(t=requestAnimationFrame(r))}function Tl(e){var t=Ue,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),Ue=t}function Uo(e){var t=Ue;e.__c=e.__(),Ue=t}function da(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function lf(e,t){return typeof t=="function"?t(e):t}function of(e,t){for(var r in t)e[r]=t[r];return e}function Wo(e,t){for(var r in e)if(r!=="__source"&&!(r in t))return!0;for(var n in t)if(n!=="__source"&&e[n]!==t[n])return!0;return!1}function ma(e,t){var r=t(),n=Pr({t:{__:r,u:t}}),l=n[0].t,i=n[1];return Hr(function(){l.__=r,l.u=t,Mi(l)&&i({t:l})},[e,r,t]),Jr(function(){return Mi(l)&&i({t:l}),e(function(){Mi(l)&&i({t:l})})},[e]),r}function Mi(e){var t,r,n=e.u,l=e.__;try{var i=n();return!((t=l)===(r=i)&&(t!==0||1/t==1/r)||t!=t&&r!=r)}catch{return!0}}function Pn(e){e()}function ga(e){return e}function ya(){return[!1,Pn]}var va=Hr;function Hl(e,t){this.props=e,this.context=t}function _a(e,t){function r(l){var i=this.props.ref,o=i==l.ref;return!o&&i&&(i.call?i(null):i.current=null),t?!t(this.props,l)||!o:Wo(this.props,l)}function n(l){return this.shouldComponentUpdate=r,we(e,l)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n.type=e,n}(Hl.prototype=new Kt).isPureReactComponent=!0,Hl.prototype.shouldComponentUpdate=function(e,t){return Wo(this.props,e)||Wo(this.state,t)};var Is=be.__b;be.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Is&&Is(e)};var Ch=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function fl(e){function t(r){var n=of({},r);return delete n.ref,e(n,r.ref||null)}return t.$$typeof=Ch,t.render=e,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Ns=function(e,t){return e==null?null:Sr(Sr(e).map(t))},wa={map:Ns,forEach:Ns,count:function(e){return e?Sr(e).length:0},only:function(e){var t=Sr(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:Sr},Dh=be.__e;be.__e=function(e,t,r,n){if(e.then){for(var l,i=t;i=i.__;)if((l=i.__c)&&l.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),l.__c(e,t)}Dh(e,t,r,n)};var Fs=be.unmount;function af(e,t,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),e.__c.__H=null),(e=of({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return af(n,t,r)})),e}function sf(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return sf(n,t,r)}),e.__c&&e.__c.__P===t&&(e.__e&&r.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=r)),e}function tl(){this.__u=0,this.o=null,this.__b=null}function uf(e){if(!e.__)return null;var t=e.__.__c;return t&&t.__a&&t.__a(e)}function cf(e){var t,r,n,l=null;function i(o){if(t||(t=e()).then(function(a){a&&(l=a.default||a),n=!0},function(a){r=a,n=!0}),r)throw r;if(!n)throw t;return l?we(l,o):null}return i.displayName="Lazy",i.__f=!0,i}function _n(){this.i=null,this.l=null}be.unmount=function(e){var t=e.__c;t&&(t.__z=!0),t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Fs&&Fs(e)},(tl.prototype=new Kt).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var l=uf(n.__v),i=!1,o=function(){i||n.__z||(i=!0,r.__R=null,l?l(s):s())};r.__R=o;var a=r.__P;r.__P=null;var s=function(){if(!--n.__u){if(n.state.__a){var u=n.state.__a;n.__v.__k[0]=sf(u,u.__c.__P,u.__c.__O)}var p;for(n.setState({__a:n.__b=null});p=n.o.pop();)p.__P=a,p.forceUpdate()}};n.__u++||32&t.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(o,o)},tl.prototype.componentWillUnmount=function(){this.o=[]},tl.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=af(this.__b,r,n.__O=n.__P)}this.__b=null}var l=t.__a&&we(At,null,e.fallback);return l&&(l.__u&=-33),[we(At,null,t.__a?null:e.children),l]};var zs=function(e,t,r){if(++r[1]===r[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(r=e.i;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;e.i=r=r[2]}};function Lh(e){return this.getChildContext=function(){return e.context},e.children}function Ih(e){var t=this,r=e.h;if(t.componentWillUnmount=function(){ol(null,t.v),t.v=null,t.h=null},t.h&&t.h!==r&&t.componentWillUnmount(),!t.v){for(var n=t.__v;n!==null&&!n.__m&&n.__!==null;)n=n.__;t.h=r,t.v={nodeType:1,parentNode:r,childNodes:[],__k:{__m:n.__m},contains:function(){return!0},namespaceURI:r.namespaceURI,insertBefore:function(l,i){this.childNodes.push(l),t.h.insertBefore(l,i)},removeChild:function(l){this.childNodes.splice(this.childNodes.indexOf(l)>>>1,1),t.h.removeChild(l)}}}ol(we(Lh,{context:t.context},e.__v),t.v)}function ff(e,t){var r=we(Ih,{__v:e,h:t});return r.containerInfo=t,r}(_n.prototype=new Kt).__a=function(e){var t=this,r=uf(t.__v),n=t.l.get(e);return n[0]++,function(l){var i=function(){t.props.revealOrder?(n.push(l),zs(t,e,n)):l()};r?r(i):i()}},_n.prototype.render=function(e){this.i=null,this.l=new Map;var t=Sr(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var r=t.length;r--;)this.l.set(t[r],this.i=[1,0,this.i]);return e.children},_n.prototype.componentDidUpdate=_n.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){zs(e,r,t)})};var pf=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Nh=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Fh=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,zh=/[A-Z0-9]/g,Bh=typeof document<"u",Hh=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function hf(e,t,r){return t.__k==null&&(t.textContent=""),ol(e,t),typeof r=="function"&&r(),e?e.__c:null}function df(e,t,r){return rf(e,t),typeof r=="function"&&r(),e?e.__c:null}Kt.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Kt.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Bs=be.event;function qh(){}function Uh(){return this.cancelBubble}function Wh(){return this.defaultPrevented}be.event=function(e){return Bs&&(e=Bs(e)),e.persist=qh,e.isPropagationStopped=Uh,e.isDefaultPrevented=Wh,e.nativeEvent=e};var ba,Vh={enumerable:!1,configurable:!0,get:function(){return this.class}},Hs=be.vnode;be.vnode=function(e){typeof e.type=="string"&&(function(t){var r=t.props,n=t.type,l={},i=n.indexOf("-")===-1;for(var o in r){var a=r[o];if(!(o==="value"&&"defaultValue"in r&&a==null||Bh&&o==="children"&&n==="noscript"||o==="class"||o==="className")){var s=o.toLowerCase();o==="defaultValue"&&"value"in r&&r.value==null?o="value":o==="download"&&a===!0?a="":s==="translate"&&a==="no"?a=!1:s[0]==="o"&&s[1]==="n"?s==="ondoubleclick"?o="ondblclick":s!=="onchange"||n!=="input"&&n!=="textarea"||Hh(r.type)?s==="onfocus"?o="onfocusin":s==="onblur"?o="onfocusout":Fh.test(o)&&(o=s):s=o="oninput":i&&Nh.test(o)?o=o.replace(zh,"-$&").toLowerCase():a===null&&(a=void 0),s==="oninput"&&l[o=s]&&(o="oninputCapture"),l[o]=a}}n=="select"&&l.multiple&&Array.isArray(l.value)&&(l.value=Sr(r.children).forEach(function(u){u.props.selected=l.value.indexOf(u.props.value)!=-1})),n=="select"&&l.defaultValue!=null&&(l.value=Sr(r.children).forEach(function(u){u.props.selected=l.multiple?l.defaultValue.indexOf(u.props.value)!=-1:l.defaultValue==u.props.value})),r.class&&!r.className?(l.class=r.class,Object.defineProperty(l,"className",Vh)):(r.className&&!r.class||r.class&&r.className)&&(l.class=l.className=r.className),t.props=l})(e),e.$$typeof=pf,Hs&&Hs(e)};var qs=be.__r;be.__r=function(e){qs&&qs(e),ba=e.__c};var Us=be.diffed;be.diffed=function(e){Us&&Us(e);var t=e.props,r=e.__e;r!=null&&e.type==="textarea"&&"value"in t&&t.value!==r.value&&(r.value=t.value==null?"":t.value),ba=null};var mf={ReactCurrentDispatcher:{current:{readContext:function(e){return ba.__n[e.__c].props.value},useCallback:Tr,useContext:Re,useDebugValue:pa,useDeferredValue:ga,useEffect:Jr,useId:ha,useImperativeHandle:fa,useInsertionEffect:va,useLayoutEffect:Hr,useMemo:$t,useReducer:Kl,useRef:Ar,useState:Pr,useSyncExternalStore:ma,useTransition:ya}}},jh="18.3.1";function gf(e){return we.bind(null,e)}function An(e){return!!e&&e.$$typeof===pf}function yf(e){return An(e)&&e.type===At}function vf(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function _f(e){return An(e)?Ph.apply(null,arguments):e}function wf(e){return!!e.__k&&(ol(null,e),!0)}function bf(e){return e&&(e.base||e.nodeType===1&&e)||null}var kf=function(e,t){return e(t)},Sf=function(e,t){return e(t)},xf=At,$f=An,Gh={useState:Pr,useId:ha,useReducer:Kl,useEffect:Jr,useLayoutEffect:Hr,useInsertionEffect:va,useTransition:ya,useDeferredValue:ga,useSyncExternalStore:ma,startTransition:Pn,useRef:Ar,useImperativeHandle:fa,useMemo:$t,useCallback:Tr,useContext:Re,useDebugValue:pa,version:"18.3.1",Children:wa,render:hf,hydrate:df,unmountComponentAtNode:wf,createPortal:ff,createElement:we,createContext:Ct,createFactory:gf,cloneElement:_f,createRef:Kc,Fragment:At,isValidElement:An,isElement:$f,isFragment:yf,isMemo:vf,findDOMNode:bf,Component:Kt,PureComponent:Hl,memo:_a,forwardRef:fl,flushSync:Sf,unstable_batchedUpdates:kf,StrictMode:xf,Suspense:tl,SuspenseList:_n,lazy:cf,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:mf};const Yh=Object.freeze(Object.defineProperty({__proto__:null,Children:wa,Component:Kt,Fragment:At,PureComponent:Hl,StrictMode:xf,Suspense:tl,SuspenseList:_n,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:mf,cloneElement:_f,createContext:Ct,createElement:we,createFactory:gf,createPortal:ff,createRef:Kc,default:Gh,findDOMNode:bf,flushSync:Sf,forwardRef:fl,hydrate:df,isElement:$f,isFragment:yf,isMemo:vf,isValidElement:An,lazy:cf,memo:_a,render:hf,startTransition:Pn,unmountComponentAtNode:wf,unstable_batchedUpdates:kf,useCallback:Tr,useContext:Re,useDebugValue:pa,useDeferredValue:ga,useEffect:Jr,useErrorBoundary:Oh,useId:ha,useImperativeHandle:fa,useInsertionEffect:va,useLayoutEffect:Hr,useMemo:$t,useReducer:Kl,useRef:Ar,useState:Pr,useSyncExternalStore:ma,useTransition:ya,version:jh},Symbol.toStringTag,{value:"Module"}));var wn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Mr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Rf(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function n(){var l=!1;try{l=this instanceof n}catch{}return l?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var l=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,l.get?l:{enumerable:!0,get:function(){return e[n]}})}),r}var Ml={exports:{}},Kh=Ml.exports,Ws;function Zh(){return Ws||(Ws=1,(function(e,t){(function(r,n){e.exports=n()})(Kh,(function(){var r=1e3,n=6e4,l=36e5,i="millisecond",o="second",a="minute",s="hour",u="day",p="week",f="month",d="quarter",k="year",m="date",g="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,R=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,w={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(W){var B=["th","st","nd","rd"],z=W%100;return"["+W+(B[(z-20)%10]||B[z]||B[0])+"]"}},O=function(W,B,z){var q=String(W);return!q||q.length>=B?W:""+Array(B+1-q.length).join(z)+W},D={s:O,z:function(W){var B=-W.utcOffset(),z=Math.abs(B),q=Math.floor(z/60),L=z%60;return(B<=0?"+":"-")+O(q,2,"0")+":"+O(L,2,"0")},m:function W(B,z){if(B.date()<z.date())return-W(z,B);var q=12*(z.year()-B.year())+(z.month()-B.month()),L=B.clone().add(q,f),$=z-L<0,M=B.clone().add(q+($?-1:1),f);return+(-(q+(z-L)/($?L-M:M-L))||0)},a:function(W){return W<0?Math.ceil(W)||0:Math.floor(W)},p:function(W){return{M:f,y:k,w:p,d:u,D:m,h:s,m:a,s:o,ms:i,Q:d}[W]||String(W||"").toLowerCase().replace(/s$/,"")},u:function(W){return W===void 0}},T="en",E={};E[T]=w;var S="$isDayjsObject",x=function(W){return W instanceof G||!(!W||!W[S])},N=function W(B,z,q){var L;if(!B)return T;if(typeof B=="string"){var $=B.toLowerCase();E[$]&&(L=$),z&&(E[$]=z,L=$);var M=B.split("-");if(!L&&M.length>1)return W(M[0])}else{var V=B.name;E[V]=B,L=V}return!q&&L&&(T=L),L||!q&&T},F=function(W,B){if(x(W))return W.clone();var z=typeof B=="object"?B:{};return z.date=W,z.args=arguments,new G(z)},A=D;A.l=N,A.i=x,A.w=function(W,B){return F(W,{locale:B.$L,utc:B.$u,x:B.$x,$offset:B.$offset})};var G=(function(){function W(z){this.$L=N(z.locale,null,!0),this.parse(z),this.$x=this.$x||z.x||{},this[S]=!0}var B=W.prototype;return B.parse=function(z){this.$d=(function(q){var L=q.date,$=q.utc;if(L===null)return new Date(NaN);if(A.u(L))return new Date;if(L instanceof Date)return new Date(L);if(typeof L=="string"&&!/Z$/i.test(L)){var M=L.match(v);if(M){var V=M[2]-1||0,C=(M[7]||"0").substring(0,3);return $?new Date(Date.UTC(M[1],V,M[3]||1,M[4]||0,M[5]||0,M[6]||0,C)):new Date(M[1],V,M[3]||1,M[4]||0,M[5]||0,M[6]||0,C)}}return new Date(L)})(z),this.init()},B.init=function(){var z=this.$d;this.$y=z.getFullYear(),this.$M=z.getMonth(),this.$D=z.getDate(),this.$W=z.getDay(),this.$H=z.getHours(),this.$m=z.getMinutes(),this.$s=z.getSeconds(),this.$ms=z.getMilliseconds()},B.$utils=function(){return A},B.isValid=function(){return this.$d.toString()!==g},B.isSame=function(z,q){var L=F(z);return this.startOf(q)<=L&&L<=this.endOf(q)},B.isAfter=function(z,q){return F(z)<this.startOf(q)},B.isBefore=function(z,q){return this.endOf(q)<F(z)},B.$g=function(z,q,L){return A.u(z)?this[q]:this.set(L,z)},B.unix=function(){return Math.floor(this.valueOf()/1e3)},B.valueOf=function(){return this.$d.getTime()},B.startOf=function(z,q){var L=this,$=!!A.u(q)||q,M=A.p(z),V=function(te,J){var le=A.w(L.$u?Date.UTC(L.$y,J,te):new Date(L.$y,J,te),L);return $?le:le.endOf(u)},C=function(te,J){return A.w(L.toDate()[te].apply(L.toDate("s"),($?[0,0,0,0]:[23,59,59,999]).slice(J)),L)},y=this.$W,Q=this.$M,ae=this.$D,se="set"+(this.$u?"UTC":"");switch(M){case k:return $?V(1,0):V(31,11);case f:return $?V(1,Q):V(0,Q+1);case p:var K=this.$locale().weekStart||0,ne=(y<K?y+7:y)-K;return V($?ae-ne:ae+(6-ne),Q);case u:case m:return C(se+"Hours",0);case s:return C(se+"Minutes",1);case a:return C(se+"Seconds",2);case o:return C(se+"Milliseconds",3);default:return this.clone()}},B.endOf=function(z){return this.startOf(z,!1)},B.$set=function(z,q){var L,$=A.p(z),M="set"+(this.$u?"UTC":""),V=(L={},L[u]=M+"Date",L[m]=M+"Date",L[f]=M+"Month",L[k]=M+"FullYear",L[s]=M+"Hours",L[a]=M+"Minutes",L[o]=M+"Seconds",L[i]=M+"Milliseconds",L)[$],C=$===u?this.$D+(q-this.$W):q;if($===f||$===k){var y=this.clone().set(m,1);y.$d[V](C),y.init(),this.$d=y.set(m,Math.min(this.$D,y.daysInMonth())).$d}else V&&this.$d[V](C);return this.init(),this},B.set=function(z,q){return this.clone().$set(z,q)},B.get=function(z){return this[A.p(z)]()},B.add=function(z,q){var L,$=this;z=Number(z);var M=A.p(q),V=function(Q){var ae=F($);return A.w(ae.date(ae.date()+Math.round(Q*z)),$)};if(M===f)return this.set(f,this.$M+z);if(M===k)return this.set(k,this.$y+z);if(M===u)return V(1);if(M===p)return V(7);var C=(L={},L[a]=n,L[s]=l,L[o]=r,L)[M]||1,y=this.$d.getTime()+z*C;return A.w(y,this)},B.subtract=function(z,q){return this.add(-1*z,q)},B.format=function(z){var q=this,L=this.$locale();if(!this.isValid())return L.invalidDate||g;var $=z||"YYYY-MM-DDTHH:mm:ssZ",M=A.z(this),V=this.$H,C=this.$m,y=this.$M,Q=L.weekdays,ae=L.months,se=L.meridiem,K=function(J,le,ce,X){return J&&(J[le]||J(q,$))||ce[le].slice(0,X)},ne=function(J){return A.s(V%12||12,J,"0")},te=se||function(J,le,ce){var X=J<12?"AM":"PM";return ce?X.toLowerCase():X};return $.replace(R,(function(J,le){return le||(function(ce){switch(ce){case"YY":return String(q.$y).slice(-2);case"YYYY":return A.s(q.$y,4,"0");case"M":return y+1;case"MM":return A.s(y+1,2,"0");case"MMM":return K(L.monthsShort,y,ae,3);case"MMMM":return K(ae,y);case"D":return q.$D;case"DD":return A.s(q.$D,2,"0");case"d":return String(q.$W);case"dd":return K(L.weekdaysMin,q.$W,Q,2);case"ddd":return K(L.weekdaysShort,q.$W,Q,3);case"dddd":return Q[q.$W];case"H":return String(V);case"HH":return A.s(V,2,"0");case"h":return ne(1);case"hh":return ne(2);case"a":return te(V,C,!0);case"A":return te(V,C,!1);case"m":return String(C);case"mm":return A.s(C,2,"0");case"s":return String(q.$s);case"ss":return A.s(q.$s,2,"0");case"SSS":return A.s(q.$ms,3,"0");case"Z":return M}return null})(J)||M.replace(":","")}))},B.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},B.diff=function(z,q,L){var $,M=this,V=A.p(q),C=F(z),y=(C.utcOffset()-this.utcOffset())*n,Q=this-C,ae=function(){return A.m(M,C)};switch(V){case k:$=ae()/12;break;case f:$=ae();break;case d:$=ae()/3;break;case p:$=(Q-y)/6048e5;break;case u:$=(Q-y)/864e5;break;case s:$=Q/l;break;case a:$=Q/n;break;case o:$=Q/r;break;default:$=Q}return L?$:A.a($)},B.daysInMonth=function(){return this.endOf(f).$D},B.$locale=function(){return E[this.$L]},B.locale=function(z,q){if(!z)return this.$L;var L=this.clone(),$=N(z,q,!0);return $&&(L.$L=$),L},B.clone=function(){return A.w(this.$d,this)},B.toDate=function(){return new Date(this.valueOf())},B.toJSON=function(){return this.isValid()?this.toISOString():null},B.toISOString=function(){return this.$d.toISOString()},B.toString=function(){return this.$d.toUTCString()},W})(),j=G.prototype;return F.prototype=j,[["$ms",i],["$s",o],["$m",a],["$H",s],["$W",u],["$M",f],["$y",k],["$D",m]].forEach((function(W){j[W[1]]=function(B){return this.$g(B,W[0],W[1])}})),F.extend=function(W,B){return W.$i||(W(B,G,F),W.$i=!0),F},F.locale=N,F.isDayjs=x,F.unix=function(W){return F(1e3*W)},F.en=E[T],F.Ls=E,F.p={},F}))})(Ml)),Ml.exports}var Qh=Zh();const a_=Mr(Qh);var Cl={exports:{}},Jh=Cl.exports,Vs;function Xh(){return Vs||(Vs=1,(function(e,t){(function(r,n){e.exports=n()})(Jh,(function(){var r={year:0,month:1,day:2,hour:3,minute:4,second:5},n={};return function(l,i,o){var a,s=function(d,k,m){m===void 0&&(m={});var g=new Date(d),v=(function(R,w){w===void 0&&(w={});var O=w.timeZoneName||"short",D=R+"|"+O,T=n[D];return T||(T=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:R,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:O}),n[D]=T),T})(k,m);return v.formatToParts(g)},u=function(d,k){for(var m=s(d,k),g=[],v=0;v<m.length;v+=1){var R=m[v],w=R.type,O=R.value,D=r[w];D>=0&&(g[D]=parseInt(O,10))}var T=g[3],E=T===24?0:T,S=g[0]+"-"+g[1]+"-"+g[2]+" "+E+":"+g[4]+":"+g[5]+":000",x=+d;return(o.utc(S).valueOf()-(x-=x%1e3))/6e4},p=i.prototype;p.tz=function(d,k){d===void 0&&(d=a);var m,g=this.utcOffset(),v=this.toDate(),R=v.toLocaleString("en-US",{timeZone:d}),w=Math.round((v-new Date(R))/1e3/60),O=15*-Math.round(v.getTimezoneOffset()/15)-w;if(!Number(O))m=this.utcOffset(0,k);else if(m=o(R,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(O,!0),k){var D=m.utcOffset();m=m.add(g-D,"minute")}return m.$x.$timezone=d,m},p.offsetName=function(d){var k=this.$x.$timezone||o.tz.guess(),m=s(this.valueOf(),k,{timeZoneName:d}).find((function(g){return g.type.toLowerCase()==="timezonename"}));return m&&m.value};var f=p.startOf;p.startOf=function(d,k){if(!this.$x||!this.$x.$timezone)return f.call(this,d,k);var m=o(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return f.call(m,d,k).tz(this.$x.$timezone,!0)},o.tz=function(d,k,m){var g=m&&k,v=m||k||a,R=u(+o(),v);if(typeof d!="string")return o(d).tz(v);var w=(function(E,S,x){var N=E-60*S*1e3,F=u(N,x);if(S===F)return[N,S];var A=u(N-=60*(F-S)*1e3,x);return F===A?[N,F]:[E-60*Math.min(F,A)*1e3,Math.max(F,A)]})(o.utc(d,g).valueOf(),R,v),O=w[0],D=w[1],T=o(O).utcOffset(D);return T.$x.$timezone=v,T},o.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},o.tz.setDefault=function(d){a=d}}}))})(Cl)),Cl.exports}var ed=Xh();const s_=Mr(ed);var Dl={exports:{}},td=Dl.exports,js;function rd(){return js||(js=1,(function(e,t){(function(r,n){e.exports=n()})(td,(function(){var r,n,l=1e3,i=6e4,o=36e5,a=864e5,s=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,u=31536e6,p=2628e6,f=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,d={years:u,months:p,days:a,hours:o,minutes:i,seconds:l,milliseconds:1,weeks:6048e5},k=function(E){return E instanceof D},m=function(E,S,x){return new D(E,x,S.$l)},g=function(E){return n.p(E)+"s"},v=function(E){return E<0},R=function(E){return v(E)?Math.ceil(E):Math.floor(E)},w=function(E){return Math.abs(E)},O=function(E,S){return E?v(E)?{negative:!0,format:""+w(E)+S}:{negative:!1,format:""+E+S}:{negative:!1,format:""}},D=(function(){function E(x,N,F){var A=this;if(this.$d={},this.$l=F,x===void 0&&(this.$ms=0,this.parseFromMilliseconds()),N)return m(x*d[g(N)],this);if(typeof x=="number")return this.$ms=x,this.parseFromMilliseconds(),this;if(typeof x=="object")return Object.keys(x).forEach((function(W){A.$d[g(W)]=x[W]})),this.calMilliseconds(),this;if(typeof x=="string"){var G=x.match(f);if(G){var j=G.slice(2).map((function(W){return W!=null?Number(W):0}));return this.$d.years=j[0],this.$d.months=j[1],this.$d.weeks=j[2],this.$d.days=j[3],this.$d.hours=j[4],this.$d.minutes=j[5],this.$d.seconds=j[6],this.calMilliseconds(),this}}return this}var S=E.prototype;return S.calMilliseconds=function(){var x=this;this.$ms=Object.keys(this.$d).reduce((function(N,F){return N+(x.$d[F]||0)*d[F]}),0)},S.parseFromMilliseconds=function(){var x=this.$ms;this.$d.years=R(x/u),x%=u,this.$d.months=R(x/p),x%=p,this.$d.days=R(x/a),x%=a,this.$d.hours=R(x/o),x%=o,this.$d.minutes=R(x/i),x%=i,this.$d.seconds=R(x/l),x%=l,this.$d.milliseconds=x},S.toISOString=function(){var x=O(this.$d.years,"Y"),N=O(this.$d.months,"M"),F=+this.$d.days||0;this.$d.weeks&&(F+=7*this.$d.weeks);var A=O(F,"D"),G=O(this.$d.hours,"H"),j=O(this.$d.minutes,"M"),W=this.$d.seconds||0;this.$d.milliseconds&&(W+=this.$d.milliseconds/1e3,W=Math.round(1e3*W)/1e3);var B=O(W,"S"),z=x.negative||N.negative||A.negative||G.negative||j.negative||B.negative,q=G.format||j.format||B.format?"T":"",L=(z?"-":"")+"P"+x.format+N.format+A.format+q+G.format+j.format+B.format;return L==="P"||L==="-P"?"P0D":L},S.toJSON=function(){return this.toISOString()},S.format=function(x){var N=x||"YYYY-MM-DDTHH:mm:ss",F={Y:this.$d.years,YY:n.s(this.$d.years,2,"0"),YYYY:n.s(this.$d.years,4,"0"),M:this.$d.months,MM:n.s(this.$d.months,2,"0"),D:this.$d.days,DD:n.s(this.$d.days,2,"0"),H:this.$d.hours,HH:n.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:n.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:n.s(this.$d.seconds,2,"0"),SSS:n.s(this.$d.milliseconds,3,"0")};return N.replace(s,(function(A,G){return G||String(F[A])}))},S.as=function(x){return this.$ms/d[g(x)]},S.get=function(x){var N=this.$ms,F=g(x);return F==="milliseconds"?N%=1e3:N=F==="weeks"?R(N/d[F]):this.$d[F],N||0},S.add=function(x,N,F){var A;return A=N?x*d[g(N)]:k(x)?x.$ms:m(x,this).$ms,m(this.$ms+A*(F?-1:1),this)},S.subtract=function(x,N){return this.add(x,N,!0)},S.locale=function(x){var N=this.clone();return N.$l=x,N},S.clone=function(){return m(this.$ms,this)},S.humanize=function(x){return r().add(this.$ms,"ms").locale(this.$l).fromNow(!x)},S.valueOf=function(){return this.asMilliseconds()},S.milliseconds=function(){return this.get("milliseconds")},S.asMilliseconds=function(){return this.as("milliseconds")},S.seconds=function(){return this.get("seconds")},S.asSeconds=function(){return this.as("seconds")},S.minutes=function(){return this.get("minutes")},S.asMinutes=function(){return this.as("minutes")},S.hours=function(){return this.get("hours")},S.asHours=function(){return this.as("hours")},S.days=function(){return this.get("days")},S.asDays=function(){return this.as("days")},S.weeks=function(){return this.get("weeks")},S.asWeeks=function(){return this.as("weeks")},S.months=function(){return this.get("months")},S.asMonths=function(){return this.as("months")},S.years=function(){return this.get("years")},S.asYears=function(){return this.as("years")},E})(),T=function(E,S,x){return E.add(S.years()*x,"y").add(S.months()*x,"M").add(S.days()*x,"d").add(S.hours()*x,"h").add(S.minutes()*x,"m").add(S.seconds()*x,"s").add(S.milliseconds()*x,"ms")};return function(E,S,x){r=x,n=x().$utils(),x.duration=function(A,G){var j=x.locale();return m(A,{$l:j},G)},x.isDuration=k;var N=S.prototype.add,F=S.prototype.subtract;S.prototype.add=function(A,G){return k(A)?T(this,A,1):N.bind(this)(A,G)},S.prototype.subtract=function(A,G){return k(A)?T(this,A,-1):F.bind(this)(A,G)}}}))})(Dl)),Dl.exports}var nd=rd();const u_=Mr(nd);var Ll={exports:{}},ld=Ll.exports,Gs;function id(){return Gs||(Gs=1,(function(e,t){(function(r,n){e.exports=n()})(ld,(function(){return function(r,n,l){r=r||{};var i=n.prototype,o={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function a(u,p,f,d){return i.fromToBase(u,p,f,d)}l.en.relativeTime=o,i.fromToBase=function(u,p,f,d,k){for(var m,g,v,R=f.$locale().relativeTime||o,w=r.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],O=w.length,D=0;D<O;D+=1){var T=w[D];T.d&&(m=d?l(u).diff(f,T.d,!0):f.diff(u,T.d,!0));var E=(r.rounding||Math.round)(Math.abs(m));if(v=m>0,E<=T.r||!T.r){E<=1&&D>0&&(T=w[D-1]);var S=R[T.l];k&&(E=k(""+E)),g=typeof S=="string"?S.replace("%d",E):S(E,p,T.l,v);break}}if(p)return g;var x=v?R.future:R.past;return typeof x=="function"?x(g):x.replace("%s",g)},i.to=function(u,p){return a(u,p,this,!0)},i.from=function(u,p){return a(u,p,this)};var s=function(u){return u.$u?l.utc():l()};i.toNow=function(u){return this.to(s(this),u)},i.fromNow=function(u){return this.from(s(this),u)}}}))})(Ll)),Ll.exports}var od=id();const c_=Mr(od);var Il={exports:{}},ad=Il.exports,Ys;function sd(){return Ys||(Ys=1,(function(e,t){(function(r,n){e.exports=n()})(ad,(function(){var r="minute",n=/[+-]\d\d(?::?\d\d)?/g,l=/([+-]|\d\d)/g;return function(i,o,a){var s=o.prototype;a.utc=function(g){var v={date:g,utc:!0,args:arguments};return new o(v)},s.utc=function(g){var v=a(this.toDate(),{locale:this.$L,utc:!0});return g?v.add(this.utcOffset(),r):v},s.local=function(){return a(this.toDate(),{locale:this.$L,utc:!1})};var u=s.parse;s.parse=function(g){g.utc&&(this.$u=!0),this.$utils().u(g.$offset)||(this.$offset=g.$offset),u.call(this,g)};var p=s.init;s.init=function(){if(this.$u){var g=this.$d;this.$y=g.getUTCFullYear(),this.$M=g.getUTCMonth(),this.$D=g.getUTCDate(),this.$W=g.getUTCDay(),this.$H=g.getUTCHours(),this.$m=g.getUTCMinutes(),this.$s=g.getUTCSeconds(),this.$ms=g.getUTCMilliseconds()}else p.call(this)};var f=s.utcOffset;s.utcOffset=function(g,v){var R=this.$utils().u;if(R(g))return this.$u?0:R(this.$offset)?f.call(this):this.$offset;if(typeof g=="string"&&(g=(function(T){T===void 0&&(T="");var E=T.match(n);if(!E)return null;var S=(""+E[0]).match(l)||["-",0,0],x=S[0],N=60*+S[1]+ +S[2];return N===0?0:x==="+"?N:-N})(g),g===null))return this;var w=Math.abs(g)<=16?60*g:g;if(w===0)return this.utc(v);var O=this.clone();if(v)return O.$offset=w,O.$u=!1,O;var D=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(O=this.local().add(w+D,r)).$offset=w,O.$x.$localOffset=D,O};var d=s.format;s.format=function(g){var v=g||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return d.call(this,v)},s.valueOf=function(){var g=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*g},s.isUTC=function(){return!!this.$u},s.toISOString=function(){return this.toDate().toISOString()},s.toString=function(){return this.toDate().toUTCString()};var k=s.toDate;s.toDate=function(g){return g==="s"&&this.$offset?a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():k.call(this)};var m=s.diff;s.diff=function(g,v,R){if(g&&this.$u===g.$u)return m.call(this,g,v,R);var w=this.local(),O=a(g).local();return m.call(w,O,v,R)}}}))})(Il)),Il.exports}var ud=sd();const f_=Mr(ud);var Ks="popstate";function cd(e={}){function t(l,i){let{pathname:o="/",search:a="",hash:s=""}=rn(l.location.hash.substring(1));return!o.startsWith("/")&&!o.startsWith(".")&&(o="/"+o),Vo("",{pathname:o,search:a,hash:s},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function r(l,i){let o=l.document.querySelector("base"),a="";if(o&&o.getAttribute("href")){let s=l.location.href,u=s.indexOf("#");a=u===-1?s:s.slice(0,u)}return a+"#"+(typeof i=="string"?i:al(i))}function n(l,i){Zt(l.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(i)})`)}return pd(t,r,n,e)}function Qe(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Zt(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function fd(){return Math.random().toString(36).substring(2,10)}function Zs(e,t){return{usr:e.state,key:e.key,idx:t}}function Vo(e,t,r=null,n){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?rn(t):t,state:r,key:t&&t.key||n||fd()}}function al({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 rn(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 pd(e,t,r,n={}){let{window:l=document.defaultView,v5Compat:i=!1}=n,o=l.history,a="POP",s=null,u=p();u==null&&(u=0,o.replaceState({...o.state,idx:u},""));function p(){return(o.state||{idx:null}).idx}function f(){a="POP";let v=p(),R=v==null?null:v-u;u=v,s&&s({action:a,location:g.location,delta:R})}function d(v,R){a="PUSH";let w=Vo(g.location,v,R);r&&r(w,v),u=p()+1;let O=Zs(w,u),D=g.createHref(w);try{o.pushState(O,"",D)}catch(T){if(T instanceof DOMException&&T.name==="DataCloneError")throw T;l.location.assign(D)}i&&s&&s({action:a,location:g.location,delta:1})}function k(v,R){a="REPLACE";let w=Vo(g.location,v,R);r&&r(w,v),u=p();let O=Zs(w,u),D=g.createHref(w);o.replaceState(O,"",D),i&&s&&s({action:a,location:g.location,delta:0})}function m(v){return hd(v)}let g={get action(){return a},get location(){return e(l,o)},listen(v){if(s)throw new Error("A history only accepts one active listener");return l.addEventListener(Ks,f),s=v,()=>{l.removeEventListener(Ks,f),s=null}},createHref(v){return t(l,v)},createURL:m,encodeLocation(v){let R=m(v);return{pathname:R.pathname,search:R.search,hash:R.hash}},push:d,replace:k,go(v){return o.go(v)}};return g}function hd(e,t=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),Qe(r,"No window.location.(origin|href) available to create URL");let n=typeof e=="string"?e:al(e);return n=n.replace(/ $/,"%20"),!t&&n.startsWith("//")&&(n=r+n),new URL(n,r)}function Ef(e,t,r="/"){return dd(e,t,r,!1)}function dd(e,t,r,n){let l=typeof t=="string"?rn(t):t,i=Or(l.pathname||"/",r);if(i==null)return null;let o=Pf(e);md(o);let a=null;for(let s=0;a==null&&s<o.length;++s){let u=Rd(i);a=xd(o[s],u,n)}return a}function Pf(e,t=[],r=[],n="",l=!1){let i=(o,a,s=l,u)=>{let p={relativePath:u===void 0?o.path||"":u,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};if(p.relativePath.startsWith("/")){if(!p.relativePath.startsWith(n)&&s)return;Qe(p.relativePath.startsWith(n),`Absolute route path "${p.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),p.relativePath=p.relativePath.slice(n.length)}let f=xr([n,p.relativePath]),d=r.concat(p);o.children&&o.children.length>0&&(Qe(o.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${f}".`),Pf(o.children,t,d,f,s)),!(o.path==null&&!o.index)&&t.push({path:f,score:kd(f,o.index),routesMeta:d})};return e.forEach((o,a)=>{if(o.path===""||!o.path?.includes("?"))i(o,a);else for(let s of Af(o.path))i(o,a,!0,s)}),t}function Af(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,l=r.endsWith("?"),i=r.replace(/\?$/,"");if(n.length===0)return l?[i,""]:[i];let o=Af(n.join("/")),a=[];return a.push(...o.map(s=>s===""?i:[i,s].join("/"))),l&&a.push(...o),a.map(s=>e.startsWith("/")&&s===""?"/":s)}function md(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:Sd(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}var gd=/^:[\w-]+$/,yd=3,vd=2,_d=1,wd=10,bd=-2,Qs=e=>e==="*";function kd(e,t){let r=e.split("/"),n=r.length;return r.some(Qs)&&(n+=bd),t&&(n+=vd),r.filter(l=>!Qs(l)).reduce((l,i)=>l+(gd.test(i)?yd:i===""?_d:wd),n)}function Sd(e,t){return e.length===t.length&&e.slice(0,-1).every((n,l)=>n===t[l])?e[e.length-1]-t[t.length-1]:0}function xd(e,t,r=!1){let{routesMeta:n}=e,l={},i="/",o=[];for(let a=0;a<n.length;++a){let s=n[a],u=a===n.length-1,p=i==="/"?t:t.slice(i.length)||"/",f=ql({path:s.relativePath,caseSensitive:s.caseSensitive,end:u},p),d=s.route;if(!f&&u&&r&&!n[n.length-1].route.index&&(f=ql({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},p)),!f)return null;Object.assign(l,f.params),o.push({params:l,pathname:xr([i,f.pathname]),pathnameBase:Od(xr([i,f.pathnameBase])),route:d}),f.pathnameBase!=="/"&&(i=xr([i,f.pathnameBase]))}return o}function ql(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=$d(e.path,e.caseSensitive,e.end),l=t.match(r);if(!l)return null;let i=l[0],o=i.replace(/(.)\/+$/,"$1"),a=l.slice(1);return{params:n.reduce((u,{paramName:p,isOptional:f},d)=>{if(p==="*"){let m=a[d]||"";o=i.slice(0,i.length-m.length).replace(/(.)\/+$/,"$1")}const k=a[d];return f&&!k?u[p]=void 0:u[p]=(k||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:o,pattern:e}}function $d(e,t=!1,r=!0){Zt(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=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,a,s)=>(n.push({paramName:a,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(n.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),n]}function Rd(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Zt(!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 Or(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)||"/"}var Ed=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Pd(e,t="/"){let{pathname:r,search:n="",hash:l=""}=typeof e=="string"?rn(e):e,i;return r?(r=r.replace(/\/\/+/g,"/"),r.startsWith("/")?i=Js(r.substring(1),"/"):i=Js(r,t)):i=t,{pathname:i,search:Td(n),hash:Md(l)}}function Js(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?r.length>1&&r.pop():l!=="."&&r.push(l)}),r.length>1?r.join("/"):"/"}function Ci(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 Ad(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Of(e){let t=Ad(e);return t.map((r,n)=>n===t.length-1?r.pathname:r.pathnameBase)}function Tf(e,t,r,n=!1){let l;typeof e=="string"?l=rn(e):(l={...e},Qe(!l.pathname||!l.pathname.includes("?"),Ci("?","pathname","search",l)),Qe(!l.pathname||!l.pathname.includes("#"),Ci("#","pathname","hash",l)),Qe(!l.search||!l.search.includes("#"),Ci("#","search","hash",l)));let i=e===""||l.pathname==="",o=i?"/":l.pathname,a;if(o==null)a=r;else{let f=t.length-1;if(!n&&o.startsWith("..")){let d=o.split("/");for(;d[0]==="..";)d.shift(),f-=1;l.pathname=d.join("/")}a=f>=0?t[f]:"/"}let s=Pd(l,a),u=o&&o!=="/"&&o.endsWith("/"),p=(i||o===".")&&r.endsWith("/");return!s.pathname.endsWith("/")&&(u||p)&&(s.pathname+="/"),s}var xr=e=>e.join("/").replace(/\/\/+/g,"/"),Od=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Td=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Md=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,Cd=class{constructor(e,t,r,n=!1){this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function Dd(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function Ld(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Mf=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Cf(e,t){let r=e;if(typeof r!="string"||!Ed.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let n=r,l=!1;if(Mf)try{let i=new URL(window.location.href),o=r.startsWith("//")?new URL(i.protocol+r):new URL(r),a=Or(o.pathname,t);o.origin===i.origin&&a!=null?r=a+o.search+o.hash:l=!0}catch{Zt(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:n,isExternal:l,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Df=["POST","PUT","PATCH","DELETE"];new Set(Df);var Id=["GET",...Df];new Set(Id);var On=Ct(null);On.displayName="DataRouter";var Zl=Ct(null);Zl.displayName="DataRouterState";var Nd=Ct(!1),Lf=Ct({isTransitioning:!1});Lf.displayName="ViewTransition";var Fd=Ct(new Map);Fd.displayName="Fetchers";var zd=Ct(null);zd.displayName="Await";var Qt=Ct(null);Qt.displayName="Navigation";var pl=Ct(null);pl.displayName="Location";var wr=Ct({outlet:null,matches:[],isDataRoute:!1});wr.displayName="Route";var ka=Ct(null);ka.displayName="RouteError";var If="REACT_ROUTER_ERROR",Bd="REDIRECT",Hd="ROUTE_ERROR_RESPONSE";function qd(e){if(e.startsWith(`${If}:${Bd}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function Ud(e){if(e.startsWith(`${If}:${Hd}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new Cd(t.status,t.statusText,t.data)}catch{}}function Wd(e,{relative:t}={}){Qe(hl(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:n}=Re(Qt),{hash:l,pathname:i,search:o}=dl(e,{relative:t}),a=i;return r!=="/"&&(a=i==="/"?r:xr([r,i])),n.createHref({pathname:a,search:o,hash:l})}function hl(){return Re(pl)!=null}function qr(){return Qe(hl(),"useLocation() may be used only in the context of a <Router> component."),Re(pl).location}var Nf="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Ff(e){Re(Qt).static||Hr(e)}function zf(){let{isDataRoute:e}=Re(wr);return e?im():Vd()}function Vd(){Qe(hl(),"useNavigate() may be used only in the context of a <Router> component.");let e=Re(On),{basename:t,navigator:r}=Re(Qt),{matches:n}=Re(wr),{pathname:l}=qr(),i=JSON.stringify(Of(n)),o=Ar(!1);return Ff(()=>{o.current=!0}),Tr((s,u={})=>{if(Zt(o.current,Nf),!o.current)return;if(typeof s=="number"){r.go(s);return}let p=Tf(s,JSON.parse(i),l,u.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:xr([t,p.pathname])),(u.replace?r.replace:r.push)(p,u.state,u)},[t,r,i,l,e])}var jd=Ct(null);function Gd(e){let t=Re(wr).outlet;return $t(()=>t&&we(jd.Provider,{value:e},t),[t,e])}function dl(e,{relative:t}={}){let{matches:r}=Re(wr),{pathname:n}=qr(),l=JSON.stringify(Of(r));return $t(()=>Tf(e,JSON.parse(l),n,t==="path"),[e,l,n,t])}function Yd(e,t){return Bf(e,t)}function Bf(e,t,r,n,l){Qe(hl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=Re(Qt),{matches:o}=Re(wr),a=o[o.length-1],s=a?a.params:{},u=a?a.pathname:"/",p=a?a.pathnameBase:"/",f=a&&a.route;{let w=f&&f.path||"";qf(u,!f||w.endsWith("*")||w.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${w}">) 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="${w}"> to <Route path="${w==="/"?"*":`${w}/*`}">.`)}let d=qr(),k;if(t){let w=typeof t=="string"?rn(t):t;Qe(p==="/"||w.pathname?.startsWith(p),`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 "${p}" but pathname "${w.pathname}" was given in the \`location\` prop.`),k=w}else k=d;let m=k.pathname||"/",g=m;if(p!=="/"){let w=p.replace(/^\//,"").split("/");g="/"+m.replace(/^\//,"").split("/").slice(w.length).join("/")}let v=Ef(e,{pathname:g});Zt(f||v!=null,`No routes matched location "${k.pathname}${k.search}${k.hash}" `),Zt(v==null||v[v.length-1].route.element!==void 0||v[v.length-1].route.Component!==void 0||v[v.length-1].route.lazy!==void 0,`Matched leaf route at location "${k.pathname}${k.search}${k.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 R=Xd(v&&v.map(w=>Object.assign({},w,{params:Object.assign({},s,w.params),pathname:xr([p,i.encodeLocation?i.encodeLocation(w.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?p:xr([p,i.encodeLocation?i.encodeLocation(w.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathnameBase])})),o,r,n,l);return t&&R?we(pl.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...k},navigationType:"POP"}},R):R}function Kd(){let e=lm(),t=Dd(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)",l={padding:"0.5rem",backgroundColor:n},i={padding:"2px 4px",backgroundColor:n},o=null;return console.error("Error handled by React Router default ErrorBoundary:",e),o=we(At,null,we("p",null,"💿 Hey developer 👋"),we("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",we("code",{style:i},"ErrorBoundary")," or"," ",we("code",{style:i},"errorElement")," prop on your route.")),we(At,null,we("h2",null,"Unexpected Application Error!"),we("h3",{style:{fontStyle:"italic"}},t),r?we("pre",{style:l},r):null,o)}var Zd=we(Kd,null),Hf=class extends Kt{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.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const r=Ud(e.digest);r&&(e=r)}let t=e!==void 0?we(wr.Provider,{value:this.props.routeContext},we(ka.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?we(Qd,{error:e},t):t}};Hf.contextType=Nd;var Di=new WeakMap;function Qd({children:e,error:t}){let{basename:r}=Re(Qt);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let n=qd(t.digest);if(n){let l=Di.get(t);if(l)throw l;let i=Cf(n.location,r);if(Mf&&!Di.get(t))if(i.isExternal||n.reloadDocument)window.location.href=i.absoluteURL||i.to;else{const o=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:n.replace}));throw Di.set(t,o),o}return we("meta",{httpEquiv:"refresh",content:`0;url=${i.absoluteURL||i.to}`})}}return e}function Jd({routeContext:e,match:t,children:r}){let n=Re(On);return n&&n.static&&n.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=t.route.id),we(wr.Provider,{value:e},r)}function Xd(e,t=[],r=null,n=null,l=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 i=e,o=r?.errors;if(o!=null){let p=i.findIndex(f=>f.route.id&&o?.[f.route.id]!==void 0);Qe(p>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),i=i.slice(0,Math.min(i.length,p+1))}let a=!1,s=-1;if(r)for(let p=0;p<i.length;p++){let f=i[p];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(s=p),f.route.id){let{loaderData:d,errors:k}=r,m=f.route.loader&&!d.hasOwnProperty(f.route.id)&&(!k||k[f.route.id]===void 0);if(f.route.lazy||m){a=!0,s>=0?i=i.slice(0,s+1):i=[i[0]];break}}}let u=r&&n?(p,f)=>{n(p,{location:r.location,params:r.matches?.[0]?.params??{},unstable_pattern:Ld(r.matches),errorInfo:f})}:void 0;return i.reduceRight((p,f,d)=>{let k,m=!1,g=null,v=null;r&&(k=o&&f.route.id?o[f.route.id]:void 0,g=f.route.errorElement||Zd,a&&(s<0&&d===0?(qf("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),m=!0,v=null):s===d&&(m=!0,v=f.route.hydrateFallbackElement||null)));let R=t.concat(i.slice(0,d+1)),w=()=>{let O;return k?O=g:m?O=v:f.route.Component?O=we(f.route.Component,null):f.route.element?O=f.route.element:O=p,we(Jd,{match:f,routeContext:{outlet:p,matches:R,isDataRoute:r!=null},children:O})};return r&&(f.route.ErrorBoundary||f.route.errorElement||d===0)?we(Hf,{location:r.location,revalidation:r.revalidation,component:g,error:k,children:w(),routeContext:{outlet:null,matches:R,isDataRoute:!0},onError:u}):w()},null)}function Sa(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function em(e){let t=Re(On);return Qe(t,Sa(e)),t}function tm(e){let t=Re(Zl);return Qe(t,Sa(e)),t}function rm(e){let t=Re(wr);return Qe(t,Sa(e)),t}function xa(e){let t=rm(e),r=t.matches[t.matches.length-1];return Qe(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function nm(){return xa("useRouteId")}function lm(){let e=Re(ka),t=tm("useRouteError"),r=xa("useRouteError");return e!==void 0?e:t.errors?.[r]}function im(){let{router:e}=em("useNavigate"),t=xa("useNavigate"),r=Ar(!1);return Ff(()=>{r.current=!0}),Tr(async(l,i={})=>{Zt(r.current,Nf),r.current&&(typeof l=="number"?await e.navigate(l):await e.navigate(l,{fromRouteId:t,...i}))},[e,t])}var Xs={};function qf(e,t,r){!t&&!Xs[e]&&(Xs[e]=!0,Zt(!1,r))}_a(om);function om({routes:e,future:t,state:r,onError:n}){return Bf(e,void 0,r,n,t)}function p_(e){return Gd(e.context)}function am(e){Qe(!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 sm({basename:e="/",children:t=null,location:r,navigationType:n="POP",navigator:l,static:i=!1,unstable_useTransitions:o}){Qe(!hl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let a=e.replace(/^\/*/,"/"),s=$t(()=>({basename:a,navigator:l,static:i,unstable_useTransitions:o,future:{}}),[a,l,i,o]);typeof r=="string"&&(r=rn(r));let{pathname:u="/",search:p="",hash:f="",state:d=null,key:k="default"}=r,m=$t(()=>{let g=Or(u,a);return g==null?null:{location:{pathname:g,search:p,hash:f,state:d,key:k},navigationType:n}},[a,u,p,f,d,k,n]);return Zt(m!=null,`<Router basename="${a}"> is not able to match the URL "${u}${p}${f}" because it does not start with the basename, so the <Router> won't render anything.`),m==null?null:we(Qt.Provider,{value:s},we(pl.Provider,{children:t,value:m}))}function h_({children:e,location:t}){return Yd(jo(e),t)}function jo(e,t=[]){let r=[];return wa.forEach(e,(n,l)=>{if(!An(n))return;let i=[...t,l];if(n.type===At){r.push.apply(r,jo(n.props.children,i));return}Qe(n.type===am,`[${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>`),Qe(!n.props.index||!n.props.children,"An index route cannot have child routes.");let o={id:n.props.id||i.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&&(o.children=jo(n.props.children,i)),r.push(o)}),r}var Nl="get",Fl="application/x-www-form-urlencoded";function Ql(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function um(e){return Ql(e)&&e.tagName.toLowerCase()==="button"}function cm(e){return Ql(e)&&e.tagName.toLowerCase()==="form"}function fm(e){return Ql(e)&&e.tagName.toLowerCase()==="input"}function pm(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function hm(e,t){return e.button===0&&(!t||t==="_self")&&!pm(e)}function Go(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(l=>[r,l]):[[r,n]])},[]))}function dm(e,t){let r=Go(e);return t&&t.forEach((n,l)=>{r.has(l)||t.getAll(l).forEach(i=>{r.append(l,i)})}),r}var Rl=null;function mm(){if(Rl===null)try{new FormData(document.createElement("form"),0),Rl=!1}catch{Rl=!0}return Rl}var gm=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Li(e){return e!=null&&!gm.has(e)?(Zt(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Fl}"`),null):e}function ym(e,t){let r,n,l,i,o;if(cm(e)){let a=e.getAttribute("action");n=a?Or(a,t):null,r=e.getAttribute("method")||Nl,l=Li(e.getAttribute("enctype"))||Fl,i=new FormData(e)}else if(um(e)||fm(e)&&(e.type==="submit"||e.type==="image")){let a=e.form;if(a==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||a.getAttribute("action");if(n=s?Or(s,t):null,r=e.getAttribute("formmethod")||a.getAttribute("method")||Nl,l=Li(e.getAttribute("formenctype"))||Li(a.getAttribute("enctype"))||Fl,i=new FormData(a,e),!mm()){let{name:u,type:p,value:f}=e;if(p==="image"){let d=u?`${u}.`:"";i.append(`${d}x`,"0"),i.append(`${d}y`,"0")}else u&&i.append(u,f)}}else{if(Ql(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Nl,n=null,l=Fl,o=e}return i&&l==="text/plain"&&(o=i,i=void 0),{action:n,method:r.toLowerCase(),encType:l,formData:i,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function $a(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function vm(e,t,r,n){let l=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r?l.pathname.endsWith("/")?l.pathname=`${l.pathname}_.${n}`:l.pathname=`${l.pathname}.${n}`:l.pathname==="/"?l.pathname=`_root.${n}`:t&&Or(l.pathname,t)==="/"?l.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:l.pathname=`${l.pathname.replace(/\/$/,"")}.${n}`,l}async function _m(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 wm(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 bm(e,t,r){let n=await Promise.all(e.map(async l=>{let i=t.routes[l.route.id];if(i){let o=await _m(i,r);return o.links?o.links():[]}return[]}));return $m(n.flat(1).filter(wm).filter(l=>l.rel==="stylesheet"||l.rel==="preload").map(l=>l.rel==="stylesheet"?{...l,rel:"prefetch",as:"style"}:{...l,rel:"prefetch"}))}function eu(e,t,r,n,l,i){let o=(s,u)=>r[u]?s.route.id!==r[u].route.id:!0,a=(s,u)=>r[u].pathname!==s.pathname||r[u].route.path?.endsWith("*")&&r[u].params["*"]!==s.params["*"];return i==="assets"?t.filter((s,u)=>o(s,u)||a(s,u)):i==="data"?t.filter((s,u)=>{let p=n.routes[s.route.id];if(!p||!p.hasLoader)return!1;if(o(s,u)||a(s,u))return!0;if(s.route.shouldRevalidate){let f=s.route.shouldRevalidate({currentUrl:new URL(l.pathname+l.search+l.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:s.params,defaultShouldRevalidate:!0});if(typeof f=="boolean")return f}return!0}):[]}function km(e,t,{includeHydrateFallback:r}={}){return Sm(e.map(n=>{let l=t.routes[n.route.id];if(!l)return[];let i=[l.module];return l.clientActionModule&&(i=i.concat(l.clientActionModule)),l.clientLoaderModule&&(i=i.concat(l.clientLoaderModule)),r&&l.hydrateFallbackModule&&(i=i.concat(l.hydrateFallbackModule)),l.imports&&(i=i.concat(l.imports)),i}).flat(1))}function Sm(e){return[...new Set(e)]}function xm(e){let t={},r=Object.keys(e).sort();for(let n of r)t[n]=e[n];return t}function $m(e,t){let r=new Set;return new Set(t),e.reduce((n,l)=>{let i=JSON.stringify(xm(l));return r.has(i)||(r.add(i),n.push({key:i,link:l})),n},[])}function Uf(){let e=Re(On);return $a(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Rm(){let e=Re(Zl);return $a(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Ra=Ct(void 0);Ra.displayName="FrameworkContext";function Wf(){let e=Re(Ra);return $a(e,"You must render this element inside a <HydratedRouter> element"),e}function Em(e,t){let r=Re(Ra),[n,l]=Pr(!1),[i,o]=Pr(!1),{onFocus:a,onBlur:s,onMouseEnter:u,onMouseLeave:p,onTouchStart:f}=t,d=Ar(null);Jr(()=>{if(e==="render"&&o(!0),e==="viewport"){let g=R=>{R.forEach(w=>{o(w.isIntersecting)})},v=new IntersectionObserver(g,{threshold:.5});return d.current&&v.observe(d.current),()=>{v.disconnect()}}},[e]),Jr(()=>{if(n){let g=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(g)}}},[n]);let k=()=>{l(!0)},m=()=>{l(!1),o(!1)};return r?e!=="intent"?[i,d,{}]:[i,d,{onFocus:Vn(a,k),onBlur:Vn(s,m),onMouseEnter:Vn(u,k),onMouseLeave:Vn(p,m),onTouchStart:Vn(f,k)}]:[!1,d,{}]}function Vn(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function Pm({page:e,...t}){let{router:r}=Uf(),n=$t(()=>Ef(r.routes,e,r.basename),[r.routes,e,r.basename]);return n?we(Om,{page:e,matches:n,...t}):null}function Am(e){let{manifest:t,routeModules:r}=Wf(),[n,l]=Pr([]);return Jr(()=>{let i=!1;return bm(e,t,r).then(o=>{i||l(o)}),()=>{i=!0}},[e,t,r]),n}function Om({page:e,matches:t,...r}){let n=qr(),{future:l,manifest:i,routeModules:o}=Wf(),{basename:a}=Uf(),{loaderData:s,matches:u}=Rm(),p=$t(()=>eu(e,t,u,i,n,"data"),[e,t,u,i,n]),f=$t(()=>eu(e,t,u,i,n,"assets"),[e,t,u,i,n]),d=$t(()=>{if(e===n.pathname+n.search+n.hash)return[];let g=new Set,v=!1;if(t.forEach(w=>{let O=i.routes[w.route.id];!O||!O.hasLoader||(!p.some(D=>D.route.id===w.route.id)&&w.route.id in s&&o[w.route.id]?.shouldRevalidate||O.hasClientLoader?v=!0:g.add(w.route.id))}),g.size===0)return[];let R=vm(e,a,l.unstable_trailingSlashAwareDataRequests,"data");return v&&g.size>0&&R.searchParams.set("_routes",t.filter(w=>g.has(w.route.id)).map(w=>w.route.id).join(",")),[R.pathname+R.search]},[a,l.unstable_trailingSlashAwareDataRequests,s,n,i,p,t,e,o]),k=$t(()=>km(f,i),[f,i]),m=Am(f);return we(At,null,d.map(g=>we("link",{key:g,rel:"prefetch",as:"fetch",href:g,...r})),k.map(g=>we("link",{key:g,rel:"modulepreload",href:g,...r})),m.map(({key:g,link:v})=>we("link",{key:g,nonce:r.nonce,...v,crossOrigin:v.crossOrigin??r.crossOrigin})))}function Tm(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var Mm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Mm&&(window.__reactRouterVersion="7.13.0")}catch{}function d_({basename:e,children:t,unstable_useTransitions:r,window:n}){let l=Ar();l.current==null&&(l.current=cd({window:n,v5Compat:!0}));let i=l.current,[o,a]=Pr({action:i.action,location:i.location}),s=Tr(u=>{r===!1?a(u):Pn(()=>a(u))},[r]);return Hr(()=>i.listen(s),[i,s]),we(sm,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:i,unstable_useTransitions:r})}var Vf=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,jf=fl(function({onClick:t,discover:r="render",prefetch:n="none",relative:l,reloadDocument:i,replace:o,state:a,target:s,to:u,preventScrollReset:p,viewTransition:f,unstable_defaultShouldRevalidate:d,...k},m){let{basename:g,unstable_useTransitions:v}=Re(Qt),R=typeof u=="string"&&Vf.test(u),w=Cf(u,g);u=w.to;let O=Wd(u,{relative:l}),[D,T,E]=Em(n,k),S=Im(u,{replace:o,state:a,target:s,preventScrollReset:p,relative:l,viewTransition:f,unstable_defaultShouldRevalidate:d,unstable_useTransitions:v});function x(F){t&&t(F),F.defaultPrevented||S(F)}let N=we("a",{...k,...E,href:w.absoluteURL||O,onClick:w.isExternal||i?t:x,ref:Tm(m,T),target:s,"data-discover":!R&&r==="render"?"true":void 0});return D&&!R?we(At,null,N,we(Pm,{page:O})):N});jf.displayName="Link";var Cm=fl(function({"aria-current":t="page",caseSensitive:r=!1,className:n="",end:l=!1,style:i,to:o,viewTransition:a,children:s,...u},p){let f=dl(o,{relative:u.relative}),d=qr(),k=Re(Zl),{navigator:m,basename:g}=Re(Qt),v=k!=null&&Hm(f)&&a===!0,R=m.encodeLocation?m.encodeLocation(f).pathname:f.pathname,w=d.pathname,O=k&&k.navigation&&k.navigation.location?k.navigation.location.pathname:null;r||(w=w.toLowerCase(),O=O?O.toLowerCase():null,R=R.toLowerCase()),O&&g&&(O=Or(O,g)||O);const D=R!=="/"&&R.endsWith("/")?R.length-1:R.length;let T=w===R||!l&&w.startsWith(R)&&w.charAt(D)==="/",E=O!=null&&(O===R||!l&&O.startsWith(R)&&O.charAt(R.length)==="/"),S={isActive:T,isPending:E,isTransitioning:v},x=T?t:void 0,N;typeof n=="function"?N=n(S):N=[n,T?"active":null,E?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let F=typeof i=="function"?i(S):i;return we(jf,{...u,"aria-current":x,className:N,ref:p,style:F,to:o,viewTransition:a},typeof s=="function"?s(S):s)});Cm.displayName="NavLink";var Dm=fl(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:n,replace:l,state:i,method:o=Nl,action:a,onSubmit:s,relative:u,preventScrollReset:p,viewTransition:f,unstable_defaultShouldRevalidate:d,...k},m)=>{let{unstable_useTransitions:g}=Re(Qt),v=zm(),R=Bm(a,{relative:u}),w=o.toLowerCase()==="get"?"get":"post",O=typeof a=="string"&&Vf.test(a);return we("form",{ref:m,method:w,action:R,onSubmit:n?s:T=>{if(s&&s(T),T.defaultPrevented)return;T.preventDefault();let E=T.nativeEvent.submitter,S=E?.getAttribute("formmethod")||o,x=()=>v(E||T.currentTarget,{fetcherKey:t,method:S,navigate:r,replace:l,state:i,relative:u,preventScrollReset:p,viewTransition:f,unstable_defaultShouldRevalidate:d});g&&r!==!1?Pn(()=>x()):x()},...k,"data-discover":!O&&e==="render"?"true":void 0})});Dm.displayName="Form";function Lm(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Gf(e){let t=Re(On);return Qe(t,Lm(e)),t}function Im(e,{target:t,replace:r,state:n,preventScrollReset:l,relative:i,viewTransition:o,unstable_defaultShouldRevalidate:a,unstable_useTransitions:s}={}){let u=zf(),p=qr(),f=dl(e,{relative:i});return Tr(d=>{if(hm(d,t)){d.preventDefault();let k=r!==void 0?r:al(p)===al(f),m=()=>u(e,{replace:k,state:n,preventScrollReset:l,relative:i,viewTransition:o,unstable_defaultShouldRevalidate:a});s?Pn(()=>m()):m()}},[p,u,f,r,n,t,e,l,i,o,a,s])}function m_(e){Zt(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=Ar(Go(e)),r=Ar(!1),n=qr(),l=$t(()=>dm(n.search,r.current?null:t.current),[n.search]),i=zf(),o=Tr((a,s)=>{const u=Go(typeof a=="function"?a(new URLSearchParams(l)):a);r.current=!0,i("?"+u,s)},[i,l]);return[l,o]}var Nm=0,Fm=()=>`__${String(++Nm)}__`;function zm(){let{router:e}=Gf("useSubmit"),{basename:t}=Re(Qt),r=nm(),n=e.fetch,l=e.navigate;return Tr(async(i,o={})=>{let{action:a,method:s,encType:u,formData:p,body:f}=ym(i,t);if(o.navigate===!1){let d=o.fetcherKey||Fm();await n(d,r,o.action||a,{unstable_defaultShouldRevalidate:o.unstable_defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:p,body:f,formMethod:o.method||s,formEncType:o.encType||u,flushSync:o.flushSync})}else await l(o.action||a,{unstable_defaultShouldRevalidate:o.unstable_defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:p,body:f,formMethod:o.method||s,formEncType:o.encType||u,replace:o.replace,state:o.state,fromRouteId:r,flushSync:o.flushSync,viewTransition:o.viewTransition})},[n,l,t,r])}function Bm(e,{relative:t}={}){let{basename:r}=Re(Qt),n=Re(wr);Qe(n,"useFormAction must be used inside a RouteContext");let[l]=n.matches.slice(-1),i={...dl(e||".",{relative:t})},o=qr();if(e==null){i.search=o.search;let a=new URLSearchParams(i.search),s=a.getAll("index");if(s.some(p=>p==="")){a.delete("index"),s.filter(f=>f).forEach(f=>a.append("index",f));let p=a.toString();i.search=p?`?${p}`:""}}return(!e||e===".")&&l.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(i.pathname=i.pathname==="/"?r:xr([r,i.pathname])),al(i)}function Hm(e,{relative:t}={}){let r=Re(Lf);Qe(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=Gf("useViewTransitionState"),l=dl(e,{relative:t});if(!r.isTransitioning)return!1;let i=Or(r.currentLocation.pathname,n)||r.currentLocation.pathname,o=Or(r.nextLocation.pathname,n)||r.nextLocation.pathname;return ql(l.pathname,o)!=null||ql(l.pathname,i)!=null}var Ii,tu;function Tn(){return tu||(tu=1,Ii=TypeError),Ii}const qm={},Um=Object.freeze(Object.defineProperty({__proto__:null,default:qm},Symbol.toStringTag,{value:"Module"})),Wm=Rf(Um);var Ni,ru;function Jl(){if(ru)return Ni;ru=1;var e=typeof Map=="function"&&Map.prototype,t=Object.getOwnPropertyDescriptor&&e?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,r=e&&t&&typeof t.get=="function"?t.get:null,n=e&&Map.prototype.forEach,l=typeof Set=="function"&&Set.prototype,i=Object.getOwnPropertyDescriptor&&l?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,o=l&&i&&typeof i.get=="function"?i.get:null,a=l&&Set.prototype.forEach,s=typeof WeakMap=="function"&&WeakMap.prototype,u=s?WeakMap.prototype.has:null,p=typeof WeakSet=="function"&&WeakSet.prototype,f=p?WeakSet.prototype.has:null,d=typeof WeakRef=="function"&&WeakRef.prototype,k=d?WeakRef.prototype.deref:null,m=Boolean.prototype.valueOf,g=Object.prototype.toString,v=Function.prototype.toString,R=String.prototype.match,w=String.prototype.slice,O=String.prototype.replace,D=String.prototype.toUpperCase,T=String.prototype.toLowerCase,E=RegExp.prototype.test,S=Array.prototype.concat,x=Array.prototype.join,N=Array.prototype.slice,F=Math.floor,A=typeof BigInt=="function"?BigInt.prototype.valueOf:null,G=Object.getOwnPropertySymbols,j=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,W=typeof Symbol=="function"&&typeof Symbol.iterator=="object",B=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===W||!0)?Symbol.toStringTag:null,z=Object.prototype.propertyIsEnumerable,q=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(H){return H.__proto__}:null);function L(H,U){if(H===1/0||H===-1/0||H!==H||H&&H>-1e3&&H<1e3||E.call(/e/,U))return U;var ke=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof H=="number"){var $e=H<0?-F(-H):F(H);if($e!==H){var Le=String($e),me=w.call(U,Le.length+1);return O.call(Le,ke,"$&_")+"."+O.call(O.call(me,/([0-9]{3})/g,"$&_"),/_$/,"")}}return O.call(U,ke,"$&_")}var $=Wm,M=$.custom,V=fe(M)?M:null,C={__proto__:null,double:'"',single:"'"},y={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Ni=function H(U,ke,$e,Le){var me=ke||{};if(_e(me,"quoteStyle")&&!_e(C,me.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(_e(me,"maxStringLength")&&(typeof me.maxStringLength=="number"?me.maxStringLength<0&&me.maxStringLength!==1/0:me.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var Ut=_e(me,"customInspect")?me.customInspect:!0;if(typeof Ut!="boolean"&&Ut!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(_e(me,"indent")&&me.indent!==null&&me.indent!==" "&&!(parseInt(me.indent,10)===me.indent&&me.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(_e(me,"numericSeparator")&&typeof me.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var sr=me.numericSeparator;if(typeof U>"u")return"undefined";if(U===null)return"null";if(typeof U=="boolean")return U?"true":"false";if(typeof U=="string")return Je(U,me);if(typeof U=="number"){if(U===0)return 1/0/U>0?"0":"-0";var wt=String(U);return sr?L(U,wt):wt}if(typeof U=="bigint"){var ur=String(U)+"n";return sr?L(U,ur):ur}var Ln=typeof me.depth>"u"?5:me.depth;if(typeof $e>"u"&&($e=0),$e>=Ln&&Ln>0&&typeof U=="object")return K(U)?"[Array]":"[Object]";var Dr=Tt(me,$e);if(typeof Le>"u")Le=[];else if(Pe(Le,U)>=0)return"[Circular]";function Lt(bt,Xe,lt){if(Xe&&(Le=N.call(Le),Le.push(Xe)),lt){var nt={depth:me.depth};return _e(me,"quoteStyle")&&(nt.quoteStyle=me.quoteStyle),H(bt,nt,$e+1,Le)}return H(bt,me,$e+1,Le)}if(typeof U=="function"&&!te(U)){var cr=De(U),at=vt(U,Lt);return"[Function"+(cr?": "+cr:" (anonymous)")+"]"+(at.length>0?" { "+x.call(at,", ")+" }":"")}if(fe(U)){var It=W?O.call(String(U),/^(Symbol\(.*\))_[^)]*$/,"$1"):j.call(U);return typeof U=="object"&&!W?Dt(It):It}if(Fe(U)){for(var Wt="<"+T.call(String(U.nodeName)),fr=U.attributes||[],gt=0;gt<fr.length;gt++)Wt+=" "+fr[gt].name+"="+Q(ae(fr[gt].value),"double",me);return Wt+=">",U.childNodes&&U.childNodes.length&&(Wt+="..."),Wt+="</"+T.call(String(U.nodeName))+">",Wt}if(K(U)){if(U.length===0)return"[]";var pr=vt(U,Lt);return Dr&&!_t(pr)?"["+ft(pr,Dr)+"]":"[ "+x.call(pr,", ")+" ]"}if(J(U)){var hr=vt(U,Lt);return!("cause"in Error.prototype)&&"cause"in U&&!z.call(U,"cause")?"{ ["+String(U)+"] "+x.call(S.call("[cause]: "+Lt(U.cause),hr),", ")+" }":hr.length===0?"["+String(U)+"]":"{ ["+String(U)+"] "+x.call(hr,", ")+" }"}if(typeof U=="object"&&Ut){if(V&&typeof U[V]=="function"&&$)return $(U,{depth:Ln-$e});if(Ut!=="symbol"&&typeof U.inspect=="function")return U.inspect()}if(Ke(U)){var In=[];return n&&n.call(U,function(bt,Xe){In.push(Lt(Xe,U,!0)+" => "+Lt(bt,U))}),ar("Map",r.call(U),In,Dr)}if(he(U)){var Nn=[];return a&&a.call(U,function(bt){Nn.push(Lt(bt,U))}),ar("Set",o.call(U),Nn,Dr)}if(Ne(U))return Ot("WeakMap");if(ie(U))return Ot("WeakSet");if(rt(U))return Ot("WeakRef");if(ce(U))return Dt(Lt(Number(U)));if(ye(U))return Dt(Lt(A.call(U)));if(X(U))return Dt(m.call(U));if(le(U))return Dt(Lt(String(U)));if(typeof window<"u"&&U===window)return"{ [object Window] }";if(typeof globalThis<"u"&&U===globalThis||typeof wn<"u"&&U===wn)return"{ [object globalThis] }";if(!ne(U)&&!te(U)){var Fn=vt(U,Lt),gl=q?q(U)===Object.prototype:U instanceof Object||U.constructor===Object,Jt=U instanceof Object?"":"null prototype",yl=!gl&&B&&Object(U)===U&&B in U?w.call(Ee(U),8,-1):Jt?"Object":"",Ur=gl||typeof U.constructor!="function"?"":U.constructor.name?U.constructor.name+" ":"",on=Ur+(yl||Jt?"["+x.call(S.call([],yl||[],Jt||[]),": ")+"] ":"");return Fn.length===0?on+"{}":Dr?on+"{"+ft(Fn,Dr)+"}":on+"{ "+x.call(Fn,", ")+" }"}return String(U)};function Q(H,U,ke){var $e=ke.quoteStyle||U,Le=C[$e];return Le+H+Le}function ae(H){return O.call(String(H),/"/g,""")}function se(H){return!B||!(typeof H=="object"&&(B in H||typeof H[B]<"u"))}function K(H){return Ee(H)==="[object Array]"&&se(H)}function ne(H){return Ee(H)==="[object Date]"&&se(H)}function te(H){return Ee(H)==="[object RegExp]"&&se(H)}function J(H){return Ee(H)==="[object Error]"&&se(H)}function le(H){return Ee(H)==="[object String]"&&se(H)}function ce(H){return Ee(H)==="[object Number]"&&se(H)}function X(H){return Ee(H)==="[object Boolean]"&&se(H)}function fe(H){if(W)return H&&typeof H=="object"&&H instanceof Symbol;if(typeof H=="symbol")return!0;if(!H||typeof H!="object"||!j)return!1;try{return j.call(H),!0}catch{}return!1}function ye(H){if(!H||typeof H!="object"||!A)return!1;try{return A.call(H),!0}catch{}return!1}var de=Object.prototype.hasOwnProperty||function(H){return H in this};function _e(H,U){return de.call(H,U)}function Ee(H){return g.call(H)}function De(H){if(H.name)return H.name;var U=R.call(v.call(H),/^function\s*([\w$]+)/);return U?U[1]:null}function Pe(H,U){if(H.indexOf)return H.indexOf(U);for(var ke=0,$e=H.length;ke<$e;ke++)if(H[ke]===U)return ke;return-1}function Ke(H){if(!r||!H||typeof H!="object")return!1;try{r.call(H);try{o.call(H)}catch{return!0}return H instanceof Map}catch{}return!1}function Ne(H){if(!u||!H||typeof H!="object")return!1;try{u.call(H,u);try{f.call(H,f)}catch{return!0}return H instanceof WeakMap}catch{}return!1}function rt(H){if(!k||!H||typeof H!="object")return!1;try{return k.call(H),!0}catch{}return!1}function he(H){if(!o||!H||typeof H!="object")return!1;try{o.call(H);try{r.call(H)}catch{return!0}return H instanceof Set}catch{}return!1}function ie(H){if(!f||!H||typeof H!="object")return!1;try{f.call(H,f);try{u.call(H,u)}catch{return!0}return H instanceof WeakSet}catch{}return!1}function Fe(H){return!H||typeof H!="object"?!1:typeof HTMLElement<"u"&&H instanceof HTMLElement?!0:typeof H.nodeName=="string"&&typeof H.getAttribute=="function"}function Je(H,U){if(H.length>U.maxStringLength){var ke=H.length-U.maxStringLength,$e="... "+ke+" more character"+(ke>1?"s":"");return Je(w.call(H,0,U.maxStringLength),U)+$e}var Le=y[U.quoteStyle||"single"];Le.lastIndex=0;var me=O.call(O.call(H,Le,"\\$1"),/[\x00-\x1f]/g,Cr);return Q(me,"single",U)}function Cr(H){var U=H.charCodeAt(0),ke={8:"b",9:"t",10:"n",12:"f",13:"r"}[U];return ke?"\\"+ke:"\\x"+(U<16?"0":"")+D.call(U.toString(16))}function Dt(H){return"Object("+H+")"}function Ot(H){return H+" { ? }"}function ar(H,U,ke,$e){var Le=$e?ft(ke,$e):x.call(ke,", ");return H+" ("+U+") {"+Le+"}"}function _t(H){for(var U=0;U<H.length;U++)if(Pe(H[U],`
|
|
`)>=0)return!1;return!0}function Tt(H,U){var ke;if(H.indent===" ")ke=" ";else if(typeof H.indent=="number"&&H.indent>0)ke=x.call(Array(H.indent+1)," ");else return null;return{base:ke,prev:x.call(Array(U+1),ke)}}function ft(H,U){if(H.length===0)return"";var ke=`
|
|
`+U.prev+U.base;return ke+x.call(H,","+ke)+`
|
|
`+U.prev}function vt(H,U){var ke=K(H),$e=[];if(ke){$e.length=H.length;for(var Le=0;Le<H.length;Le++)$e[Le]=_e(H,Le)?U(H[Le],H):""}var me=typeof G=="function"?G(H):[],Ut;if(W){Ut={};for(var sr=0;sr<me.length;sr++)Ut["$"+me[sr]]=me[sr]}for(var wt in H)_e(H,wt)&&(ke&&String(Number(wt))===wt&&wt<H.length||W&&Ut["$"+wt]instanceof Symbol||(E.call(/[^\w$]/,wt)?$e.push(U(wt,H)+": "+U(H[wt],H)):$e.push(wt+": "+U(H[wt],H))));if(typeof G=="function")for(var ur=0;ur<me.length;ur++)z.call(H,me[ur])&&$e.push("["+U(me[ur])+"]: "+U(H[me[ur]],H));return $e}return Ni}var Fi,nu;function Vm(){if(nu)return Fi;nu=1;var e=Jl(),t=Tn(),r=function(a,s,u){for(var p=a,f;(f=p.next)!=null;p=f)if(f.key===s)return p.next=f.next,u||(f.next=a.next,a.next=f),f},n=function(a,s){if(a){var u=r(a,s);return u&&u.value}},l=function(a,s,u){var p=r(a,s);p?p.value=u:a.next={key:s,next:a.next,value:u}},i=function(a,s){return a?!!r(a,s):!1},o=function(a,s){if(a)return r(a,s,!0)};return Fi=function(){var s,u={assert:function(p){if(!u.has(p))throw new t("Side channel does not contain "+e(p))},delete:function(p){var f=s&&s.next,d=o(s,p);return d&&f&&f===d&&(s=void 0),!!d},get:function(p){return n(s,p)},has:function(p){return i(s,p)},set:function(p,f){s||(s={next:void 0}),l(s,p,f)}};return u},Fi}var zi,lu;function Yf(){return lu||(lu=1,zi=Object),zi}var Bi,iu;function jm(){return iu||(iu=1,Bi=Error),Bi}var Hi,ou;function Gm(){return ou||(ou=1,Hi=EvalError),Hi}var qi,au;function Ym(){return au||(au=1,qi=RangeError),qi}var Ui,su;function Km(){return su||(su=1,Ui=ReferenceError),Ui}var Wi,uu;function Zm(){return uu||(uu=1,Wi=SyntaxError),Wi}var Vi,cu;function Qm(){return cu||(cu=1,Vi=URIError),Vi}var ji,fu;function Jm(){return fu||(fu=1,ji=Math.abs),ji}var Gi,pu;function Xm(){return pu||(pu=1,Gi=Math.floor),Gi}var Yi,hu;function eg(){return hu||(hu=1,Yi=Math.max),Yi}var Ki,du;function tg(){return du||(du=1,Ki=Math.min),Ki}var Zi,mu;function rg(){return mu||(mu=1,Zi=Math.pow),Zi}var Qi,gu;function ng(){return gu||(gu=1,Qi=Math.round),Qi}var Ji,yu;function lg(){return yu||(yu=1,Ji=Number.isNaN||function(t){return t!==t}),Ji}var Xi,vu;function ig(){if(vu)return Xi;vu=1;var e=lg();return Xi=function(r){return e(r)||r===0?r:r<0?-1:1},Xi}var eo,_u;function og(){return _u||(_u=1,eo=Object.getOwnPropertyDescriptor),eo}var to,wu;function Kf(){if(wu)return to;wu=1;var e=og();if(e)try{e([],"length")}catch{e=null}return to=e,to}var ro,bu;function ag(){if(bu)return ro;bu=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return ro=e,ro}var no,ku;function sg(){return ku||(ku=1,no=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var l=42;t[r]=l;for(var i in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(t,r);if(a.value!==l||a.enumerable!==!0)return!1}return!0}),no}var lo,Su;function ug(){if(Su)return lo;Su=1;var e=typeof Symbol<"u"&&Symbol,t=sg();return lo=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},lo}var io,xu;function Zf(){return xu||(xu=1,io=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),io}var oo,$u;function Qf(){if($u)return oo;$u=1;var e=Yf();return oo=e.getPrototypeOf||null,oo}var ao,Ru;function cg(){if(Ru)return ao;Ru=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,r=Math.max,n="[object Function]",l=function(s,u){for(var p=[],f=0;f<s.length;f+=1)p[f]=s[f];for(var d=0;d<u.length;d+=1)p[d+s.length]=u[d];return p},i=function(s,u){for(var p=[],f=u,d=0;f<s.length;f+=1,d+=1)p[d]=s[f];return p},o=function(a,s){for(var u="",p=0;p<a.length;p+=1)u+=a[p],p+1<a.length&&(u+=s);return u};return ao=function(s){var u=this;if(typeof u!="function"||t.apply(u)!==n)throw new TypeError(e+u);for(var p=i(arguments,1),f,d=function(){if(this instanceof f){var R=u.apply(this,l(p,arguments));return Object(R)===R?R:this}return u.apply(s,l(p,arguments))},k=r(0,u.length-p.length),m=[],g=0;g<k;g++)m[g]="$"+g;if(f=Function("binder","return function ("+o(m,",")+"){ return binder.apply(this,arguments); }")(d),u.prototype){var v=function(){};v.prototype=u.prototype,f.prototype=new v,v.prototype=null}return f},ao}var so,Eu;function Xl(){if(Eu)return so;Eu=1;var e=cg();return so=Function.prototype.bind||e,so}var uo,Pu;function Ea(){return Pu||(Pu=1,uo=Function.prototype.call),uo}var co,Au;function Jf(){return Au||(Au=1,co=Function.prototype.apply),co}var fo,Ou;function fg(){return Ou||(Ou=1,fo=typeof Reflect<"u"&&Reflect&&Reflect.apply),fo}var po,Tu;function pg(){if(Tu)return po;Tu=1;var e=Xl(),t=Jf(),r=Ea(),n=fg();return po=n||e.call(r,t),po}var ho,Mu;function Xf(){if(Mu)return ho;Mu=1;var e=Xl(),t=Tn(),r=Ea(),n=pg();return ho=function(i){if(i.length<1||typeof i[0]!="function")throw new t("a function is required");return n(e,r,i)},ho}var mo,Cu;function hg(){if(Cu)return mo;Cu=1;var e=Xf(),t=Kf(),r;try{r=[].__proto__===Array.prototype}catch(o){if(!o||typeof o!="object"||!("code"in o)||o.code!=="ERR_PROTO_ACCESS")throw o}var n=!!r&&t&&t(Object.prototype,"__proto__"),l=Object,i=l.getPrototypeOf;return mo=n&&typeof n.get=="function"?e([n.get]):typeof i=="function"?function(a){return i(a==null?a:l(a))}:!1,mo}var go,Du;function dg(){if(Du)return go;Du=1;var e=Zf(),t=Qf(),r=hg();return go=e?function(l){return e(l)}:t?function(l){if(!l||typeof l!="object"&&typeof l!="function")throw new TypeError("getProto: not an object");return t(l)}:r?function(l){return r(l)}:null,go}var yo,Lu;function mg(){if(Lu)return yo;Lu=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=Xl();return yo=r.call(e,t),yo}var vo,Iu;function Pa(){if(Iu)return vo;Iu=1;var e,t=Yf(),r=jm(),n=Gm(),l=Ym(),i=Km(),o=Zm(),a=Tn(),s=Qm(),u=Jm(),p=Xm(),f=eg(),d=tg(),k=rg(),m=ng(),g=ig(),v=Function,R=function(te){try{return v('"use strict"; return ('+te+").constructor;")()}catch{}},w=Kf(),O=ag(),D=function(){throw new a},T=w?(function(){try{return arguments.callee,D}catch{try{return w(arguments,"callee").get}catch{return D}}})():D,E=ug()(),S=dg(),x=Qf(),N=Zf(),F=Jf(),A=Ea(),G={},j=typeof Uint8Array>"u"||!S?e:S(Uint8Array),W={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":E&&S?S([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":G,"%AsyncGenerator%":G,"%AsyncGeneratorFunction%":G,"%AsyncIteratorPrototype%":G,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":n,"%Float16Array%":typeof Float16Array>"u"?e:Float16Array,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":G,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":E&&S?S(S([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!E||!S?e:S(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":w,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":l,"%ReferenceError%":i,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!E||!S?e:S(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":E&&S?S(""[Symbol.iterator]()):e,"%Symbol%":E?Symbol:e,"%SyntaxError%":o,"%ThrowTypeError%":T,"%TypedArray%":j,"%TypeError%":a,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":s,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":A,"%Function.prototype.apply%":F,"%Object.defineProperty%":O,"%Object.getPrototypeOf%":x,"%Math.abs%":u,"%Math.floor%":p,"%Math.max%":f,"%Math.min%":d,"%Math.pow%":k,"%Math.round%":m,"%Math.sign%":g,"%Reflect.getPrototypeOf%":N};if(S)try{null.error}catch(te){var B=S(S(te));W["%Error.prototype%"]=B}var z=function te(J){var le;if(J==="%AsyncFunction%")le=R("async function () {}");else if(J==="%GeneratorFunction%")le=R("function* () {}");else if(J==="%AsyncGeneratorFunction%")le=R("async function* () {}");else if(J==="%AsyncGenerator%"){var ce=te("%AsyncGeneratorFunction%");ce&&(le=ce.prototype)}else if(J==="%AsyncIteratorPrototype%"){var X=te("%AsyncGenerator%");X&&S&&(le=S(X.prototype))}return W[J]=le,le},q={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},L=Xl(),$=mg(),M=L.call(A,Array.prototype.concat),V=L.call(F,Array.prototype.splice),C=L.call(A,String.prototype.replace),y=L.call(A,String.prototype.slice),Q=L.call(A,RegExp.prototype.exec),ae=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,se=/\\(\\)?/g,K=function(J){var le=y(J,0,1),ce=y(J,-1);if(le==="%"&&ce!=="%")throw new o("invalid intrinsic syntax, expected closing `%`");if(ce==="%"&&le!=="%")throw new o("invalid intrinsic syntax, expected opening `%`");var X=[];return C(J,ae,function(fe,ye,de,_e){X[X.length]=de?C(_e,se,"$1"):ye||fe}),X},ne=function(J,le){var ce=J,X;if($(q,ce)&&(X=q[ce],ce="%"+X[0]+"%"),$(W,ce)){var fe=W[ce];if(fe===G&&(fe=z(ce)),typeof fe>"u"&&!le)throw new a("intrinsic "+J+" exists, but is not available. Please file an issue!");return{alias:X,name:ce,value:fe}}throw new o("intrinsic "+J+" does not exist!")};return vo=function(J,le){if(typeof J!="string"||J.length===0)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof le!="boolean")throw new a('"allowMissing" argument must be a boolean');if(Q(/^%?[^%]*%?$/,J)===null)throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var ce=K(J),X=ce.length>0?ce[0]:"",fe=ne("%"+X+"%",le),ye=fe.name,de=fe.value,_e=!1,Ee=fe.alias;Ee&&(X=Ee[0],V(ce,M([0,1],Ee)));for(var De=1,Pe=!0;De<ce.length;De+=1){var Ke=ce[De],Ne=y(Ke,0,1),rt=y(Ke,-1);if((Ne==='"'||Ne==="'"||Ne==="`"||rt==='"'||rt==="'"||rt==="`")&&Ne!==rt)throw new o("property names with quotes must have matching quotes");if((Ke==="constructor"||!Pe)&&(_e=!0),X+="."+Ke,ye="%"+X+"%",$(W,ye))de=W[ye];else if(de!=null){if(!(Ke in de)){if(!le)throw new a("base intrinsic for "+J+" exists, but the property is not available.");return}if(w&&De+1>=ce.length){var he=w(de,Ke);Pe=!!he,Pe&&"get"in he&&!("originalValue"in he.get)?de=he.get:de=de[Ke]}else Pe=$(de,Ke),de=de[Ke];Pe&&!_e&&(W[ye]=de)}}return de},vo}var _o,Nu;function ep(){if(Nu)return _o;Nu=1;var e=Pa(),t=Xf(),r=t([e("%String.prototype.indexOf%")]);return _o=function(l,i){var o=e(l,!!i);return typeof o=="function"&&r(l,".prototype.")>-1?t([o]):o},_o}var wo,Fu;function tp(){if(Fu)return wo;Fu=1;var e=Pa(),t=ep(),r=Jl(),n=Tn(),l=e("%Map%",!0),i=t("Map.prototype.get",!0),o=t("Map.prototype.set",!0),a=t("Map.prototype.has",!0),s=t("Map.prototype.delete",!0),u=t("Map.prototype.size",!0);return wo=!!l&&function(){var f,d={assert:function(k){if(!d.has(k))throw new n("Side channel does not contain "+r(k))},delete:function(k){if(f){var m=s(f,k);return u(f)===0&&(f=void 0),m}return!1},get:function(k){if(f)return i(f,k)},has:function(k){return f?a(f,k):!1},set:function(k,m){f||(f=new l),o(f,k,m)}};return d},wo}var bo,zu;function gg(){if(zu)return bo;zu=1;var e=Pa(),t=ep(),r=Jl(),n=tp(),l=Tn(),i=e("%WeakMap%",!0),o=t("WeakMap.prototype.get",!0),a=t("WeakMap.prototype.set",!0),s=t("WeakMap.prototype.has",!0),u=t("WeakMap.prototype.delete",!0);return bo=i?function(){var f,d,k={assert:function(m){if(!k.has(m))throw new l("Side channel does not contain "+r(m))},delete:function(m){if(i&&m&&(typeof m=="object"||typeof m=="function")){if(f)return u(f,m)}else if(n&&d)return d.delete(m);return!1},get:function(m){return i&&m&&(typeof m=="object"||typeof m=="function")&&f?o(f,m):d&&d.get(m)},has:function(m){return i&&m&&(typeof m=="object"||typeof m=="function")&&f?s(f,m):!!d&&d.has(m)},set:function(m,g){i&&m&&(typeof m=="object"||typeof m=="function")?(f||(f=new i),a(f,m,g)):n&&(d||(d=n()),d.set(m,g))}};return k}:n,bo}var ko,Bu;function rp(){if(Bu)return ko;Bu=1;var e=Tn(),t=Jl(),r=Vm(),n=tp(),l=gg(),i=l||n||r;return ko=function(){var a,s={assert:function(u){if(!s.has(u))throw new e("Side channel does not contain "+t(u))},delete:function(u){return!!a&&a.delete(u)},get:function(u){return a&&a.get(u)},has:function(u){return!!a&&a.has(u)},set:function(u,p){a||(a=i()),a.set(u,p)}};return s},ko}var So,Hu;function Aa(){if(Hu)return So;Hu=1;var e=String.prototype.replace,t=/%20/g,r={RFC1738:"RFC1738",RFC3986:"RFC3986"};return So={default:r.RFC3986,formatters:{RFC1738:function(n){return e.call(n,t,"+")},RFC3986:function(n){return String(n)}},RFC1738:r.RFC1738,RFC3986:r.RFC3986},So}var xo,qu;function np(){if(qu)return xo;qu=1;var e=Aa(),t=rp(),r=Object.prototype.hasOwnProperty,n=Array.isArray,l=t(),i=function(S,x){return l.set(S,x),S},o=function(S){return l.has(S)},a=function(S){return l.get(S)},s=function(S,x){l.set(S,x)},u=(function(){for(var E=[],S=0;S<256;++S)E.push("%"+((S<16?"0":"")+S.toString(16)).toUpperCase());return E})(),p=function(S){for(;S.length>1;){var x=S.pop(),N=x.obj[x.prop];if(n(N)){for(var F=[],A=0;A<N.length;++A)typeof N[A]<"u"&&F.push(N[A]);x.obj[x.prop]=F}}},f=function(S,x){for(var N=x&&x.plainObjects?{__proto__:null}:{},F=0;F<S.length;++F)typeof S[F]<"u"&&(N[F]=S[F]);return N},d=function E(S,x,N){if(!x)return S;if(typeof x!="object"&&typeof x!="function"){if(n(S))S.push(x);else if(S&&typeof S=="object")if(o(S)){var F=a(S)+1;S[F]=x,s(S,F)}else(N&&(N.plainObjects||N.allowPrototypes)||!r.call(Object.prototype,x))&&(S[x]=!0);else return[S,x];return S}if(!S||typeof S!="object"){if(o(x)){for(var A=Object.keys(x),G=N&&N.plainObjects?{__proto__:null,0:S}:{0:S},j=0;j<A.length;j++){var W=parseInt(A[j],10);G[W+1]=x[A[j]]}return i(G,a(x)+1)}return[S].concat(x)}var B=S;return n(S)&&!n(x)&&(B=f(S,N)),n(S)&&n(x)?(x.forEach(function(z,q){if(r.call(S,q)){var L=S[q];L&&typeof L=="object"&&z&&typeof z=="object"?S[q]=E(L,z,N):S.push(z)}else S[q]=z}),S):Object.keys(x).reduce(function(z,q){var L=x[q];return r.call(z,q)?z[q]=E(z[q],L,N):z[q]=L,z},B)},k=function(S,x){return Object.keys(x).reduce(function(N,F){return N[F]=x[F],N},S)},m=function(E,S,x){var N=E.replace(/\+/g," ");if(x==="iso-8859-1")return N.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(N)}catch{return N}},g=1024,v=function(S,x,N,F,A){if(S.length===0)return S;var G=S;if(typeof S=="symbol"?G=Symbol.prototype.toString.call(S):typeof S!="string"&&(G=String(S)),N==="iso-8859-1")return escape(G).replace(/%u[0-9a-f]{4}/gi,function($){return"%26%23"+parseInt($.slice(2),16)+"%3B"});for(var j="",W=0;W<G.length;W+=g){for(var B=G.length>=g?G.slice(W,W+g):G,z=[],q=0;q<B.length;++q){var L=B.charCodeAt(q);if(L===45||L===46||L===95||L===126||L>=48&&L<=57||L>=65&&L<=90||L>=97&&L<=122||A===e.RFC1738&&(L===40||L===41)){z[z.length]=B.charAt(q);continue}if(L<128){z[z.length]=u[L];continue}if(L<2048){z[z.length]=u[192|L>>6]+u[128|L&63];continue}if(L<55296||L>=57344){z[z.length]=u[224|L>>12]+u[128|L>>6&63]+u[128|L&63];continue}q+=1,L=65536+((L&1023)<<10|B.charCodeAt(q)&1023),z[z.length]=u[240|L>>18]+u[128|L>>12&63]+u[128|L>>6&63]+u[128|L&63]}j+=z.join("")}return j},R=function(S){for(var x=[{obj:{o:S},prop:"o"}],N=[],F=0;F<x.length;++F)for(var A=x[F],G=A.obj[A.prop],j=Object.keys(G),W=0;W<j.length;++W){var B=j[W],z=G[B];typeof z=="object"&&z!==null&&N.indexOf(z)===-1&&(x.push({obj:G,prop:B}),N.push(z))}return p(x),S},w=function(S){return Object.prototype.toString.call(S)==="[object RegExp]"},O=function(S){return!S||typeof S!="object"?!1:!!(S.constructor&&S.constructor.isBuffer&&S.constructor.isBuffer(S))},D=function(S,x,N,F){if(o(S)){var A=a(S)+1;return S[A]=x,s(S,A),S}var G=[].concat(S,x);return G.length>N?i(f(G,{plainObjects:F}),G.length-1):G},T=function(S,x){if(n(S)){for(var N=[],F=0;F<S.length;F+=1)N.push(x(S[F]));return N}return x(S)};return xo={arrayToObject:f,assign:k,combine:D,compact:R,decode:m,encode:v,isBuffer:O,isOverflow:o,isRegExp:w,maybeMap:T,merge:d},xo}var $o,Uu;function yg(){if(Uu)return $o;Uu=1;var e=rp(),t=np(),r=Aa(),n=Object.prototype.hasOwnProperty,l={brackets:function(v){return v+"[]"},comma:"comma",indices:function(v,R){return v+"["+R+"]"},repeat:function(v){return v}},i=Array.isArray,o=Array.prototype.push,a=function(g,v){o.apply(g,i(v)?v:[v])},s=Date.prototype.toISOString,u=r.default,p={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:t.encode,encodeValuesOnly:!1,filter:void 0,format:u,formatter:r.formatters[u],indices:!1,serializeDate:function(v){return s.call(v)},skipNulls:!1,strictNullHandling:!1},f=function(v){return typeof v=="string"||typeof v=="number"||typeof v=="boolean"||typeof v=="symbol"||typeof v=="bigint"},d={},k=function g(v,R,w,O,D,T,E,S,x,N,F,A,G,j,W,B,z,q){for(var L=v,$=q,M=0,V=!1;($=$.get(d))!==void 0&&!V;){var C=$.get(v);if(M+=1,typeof C<"u"){if(C===M)throw new RangeError("Cyclic object value");V=!0}typeof $.get(d)>"u"&&(M=0)}if(typeof N=="function"?L=N(R,L):L instanceof Date?L=G(L):w==="comma"&&i(L)&&(L=t.maybeMap(L,function(ye){return ye instanceof Date?G(ye):ye})),L===null){if(T)return x&&!B?x(R,p.encoder,z,"key",j):R;L=""}if(f(L)||t.isBuffer(L)){if(x){var y=B?R:x(R,p.encoder,z,"key",j);return[W(y)+"="+W(x(L,p.encoder,z,"value",j))]}return[W(R)+"="+W(String(L))]}var Q=[];if(typeof L>"u")return Q;var ae;if(w==="comma"&&i(L))B&&x&&(L=t.maybeMap(L,x)),ae=[{value:L.length>0?L.join(",")||null:void 0}];else if(i(N))ae=N;else{var se=Object.keys(L);ae=F?se.sort(F):se}var K=S?String(R).replace(/\./g,"%2E"):String(R),ne=O&&i(L)&&L.length===1?K+"[]":K;if(D&&i(L)&&L.length===0)return ne+"[]";for(var te=0;te<ae.length;++te){var J=ae[te],le=typeof J=="object"&&J&&typeof J.value<"u"?J.value:L[J];if(!(E&&le===null)){var ce=A&&S?String(J).replace(/\./g,"%2E"):String(J),X=i(L)?typeof w=="function"?w(ne,ce):ne:ne+(A?"."+ce:"["+ce+"]");q.set(v,M);var fe=e();fe.set(d,q),a(Q,g(le,X,w,O,D,T,E,S,w==="comma"&&B&&i(L)?null:x,N,F,A,G,j,W,B,z,fe))}}return Q},m=function(v){if(!v)return p;if(typeof v.allowEmptyArrays<"u"&&typeof v.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof v.encodeDotInKeys<"u"&&typeof v.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(v.encoder!==null&&typeof v.encoder<"u"&&typeof v.encoder!="function")throw new TypeError("Encoder has to be a function.");var R=v.charset||p.charset;if(typeof v.charset<"u"&&v.charset!=="utf-8"&&v.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var w=r.default;if(typeof v.format<"u"){if(!n.call(r.formatters,v.format))throw new TypeError("Unknown format option provided.");w=v.format}var O=r.formatters[w],D=p.filter;(typeof v.filter=="function"||i(v.filter))&&(D=v.filter);var T;if(v.arrayFormat in l?T=v.arrayFormat:"indices"in v?T=v.indices?"indices":"repeat":T=p.arrayFormat,"commaRoundTrip"in v&&typeof v.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var E=typeof v.allowDots>"u"?v.encodeDotInKeys===!0?!0:p.allowDots:!!v.allowDots;return{addQueryPrefix:typeof v.addQueryPrefix=="boolean"?v.addQueryPrefix:p.addQueryPrefix,allowDots:E,allowEmptyArrays:typeof v.allowEmptyArrays=="boolean"?!!v.allowEmptyArrays:p.allowEmptyArrays,arrayFormat:T,charset:R,charsetSentinel:typeof v.charsetSentinel=="boolean"?v.charsetSentinel:p.charsetSentinel,commaRoundTrip:!!v.commaRoundTrip,delimiter:typeof v.delimiter>"u"?p.delimiter:v.delimiter,encode:typeof v.encode=="boolean"?v.encode:p.encode,encodeDotInKeys:typeof v.encodeDotInKeys=="boolean"?v.encodeDotInKeys:p.encodeDotInKeys,encoder:typeof v.encoder=="function"?v.encoder:p.encoder,encodeValuesOnly:typeof v.encodeValuesOnly=="boolean"?v.encodeValuesOnly:p.encodeValuesOnly,filter:D,format:w,formatter:O,serializeDate:typeof v.serializeDate=="function"?v.serializeDate:p.serializeDate,skipNulls:typeof v.skipNulls=="boolean"?v.skipNulls:p.skipNulls,sort:typeof v.sort=="function"?v.sort:null,strictNullHandling:typeof v.strictNullHandling=="boolean"?v.strictNullHandling:p.strictNullHandling}};return $o=function(g,v){var R=g,w=m(v),O,D;typeof w.filter=="function"?(D=w.filter,R=D("",R)):i(w.filter)&&(D=w.filter,O=D);var T=[];if(typeof R!="object"||R===null)return"";var E=l[w.arrayFormat],S=E==="comma"&&w.commaRoundTrip;O||(O=Object.keys(R)),w.sort&&O.sort(w.sort);for(var x=e(),N=0;N<O.length;++N){var F=O[N],A=R[F];w.skipNulls&&A===null||a(T,k(A,F,E,S,w.allowEmptyArrays,w.strictNullHandling,w.skipNulls,w.encodeDotInKeys,w.encode?w.encoder:null,w.filter,w.sort,w.allowDots,w.serializeDate,w.format,w.formatter,w.encodeValuesOnly,w.charset,x))}var G=T.join(w.delimiter),j=w.addQueryPrefix===!0?"?":"";return w.charsetSentinel&&(w.charset==="iso-8859-1"?j+="utf8=%26%2310003%3B&":j+="utf8=%E2%9C%93&"),G.length>0?j+G:""},$o}var Ro,Wu;function vg(){if(Wu)return Ro;Wu=1;var e=np(),t=Object.prototype.hasOwnProperty,r=Array.isArray,n={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:e.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},l=function(k){return k.replace(/&#(\d+);/g,function(m,g){return String.fromCharCode(parseInt(g,10))})},i=function(k,m,g){if(k&&typeof k=="string"&&m.comma&&k.indexOf(",")>-1)return k.split(",");if(m.throwOnLimitExceeded&&g>=m.arrayLimit)throw new RangeError("Array limit exceeded. Only "+m.arrayLimit+" element"+(m.arrayLimit===1?"":"s")+" allowed in an array.");return k},o="utf8=%26%2310003%3B",a="utf8=%E2%9C%93",s=function(m,g){var v={__proto__:null},R=g.ignoreQueryPrefix?m.replace(/^\?/,""):m;R=R.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var w=g.parameterLimit===1/0?void 0:g.parameterLimit,O=R.split(g.delimiter,g.throwOnLimitExceeded?w+1:w);if(g.throwOnLimitExceeded&&O.length>w)throw new RangeError("Parameter limit exceeded. Only "+w+" parameter"+(w===1?"":"s")+" allowed.");var D=-1,T,E=g.charset;if(g.charsetSentinel)for(T=0;T<O.length;++T)O[T].indexOf("utf8=")===0&&(O[T]===a?E="utf-8":O[T]===o&&(E="iso-8859-1"),D=T,T=O.length);for(T=0;T<O.length;++T)if(T!==D){var S=O[T],x=S.indexOf("]="),N=x===-1?S.indexOf("="):x+1,F,A;if(N===-1?(F=g.decoder(S,n.decoder,E,"key"),A=g.strictNullHandling?null:""):(F=g.decoder(S.slice(0,N),n.decoder,E,"key"),F!==null&&(A=e.maybeMap(i(S.slice(N+1),g,r(v[F])?v[F].length:0),function(j){return g.decoder(j,n.decoder,E,"value")}))),A&&g.interpretNumericEntities&&E==="iso-8859-1"&&(A=l(String(A))),S.indexOf("[]=")>-1&&(A=r(A)?[A]:A),F!==null){var G=t.call(v,F);G&&g.duplicates==="combine"?v[F]=e.combine(v[F],A,g.arrayLimit,g.plainObjects):(!G||g.duplicates==="last")&&(v[F]=A)}}return v},u=function(k,m,g,v){var R=0;if(k.length>0&&k[k.length-1]==="[]"){var w=k.slice(0,-1).join("");R=Array.isArray(m)&&m[w]?m[w].length:0}for(var O=v?m:i(m,g,R),D=k.length-1;D>=0;--D){var T,E=k[D];if(E==="[]"&&g.parseArrays)e.isOverflow(O)?T=O:T=g.allowEmptyArrays&&(O===""||g.strictNullHandling&&O===null)?[]:e.combine([],O,g.arrayLimit,g.plainObjects);else{T=g.plainObjects?{__proto__:null}:{};var S=E.charAt(0)==="["&&E.charAt(E.length-1)==="]"?E.slice(1,-1):E,x=g.decodeDotInKeys?S.replace(/%2E/g,"."):S,N=parseInt(x,10);!g.parseArrays&&x===""?T={0:O}:!isNaN(N)&&E!==x&&String(N)===x&&N>=0&&g.parseArrays&&N<=g.arrayLimit?(T=[],T[N]=O):x!=="__proto__"&&(T[x]=O)}O=T}return O},p=function(m,g){var v=g.allowDots?m.replace(/\.([^.[]+)/g,"[$1]"):m;if(g.depth<=0)return!g.plainObjects&&t.call(Object.prototype,v)&&!g.allowPrototypes?void 0:[v];var R=/(\[[^[\]]*])/,w=/(\[[^[\]]*])/g,O=R.exec(v),D=O?v.slice(0,O.index):v,T=[];if(D){if(!g.plainObjects&&t.call(Object.prototype,D)&&!g.allowPrototypes)return;T.push(D)}for(var E=0;(O=w.exec(v))!==null&&E<g.depth;){E+=1;var S=O[1].slice(1,-1);if(!g.plainObjects&&t.call(Object.prototype,S)&&!g.allowPrototypes)return;T.push(O[1])}if(O){if(g.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+g.depth+" and strictDepth is true");T.push("["+v.slice(O.index)+"]")}return T},f=function(m,g,v,R){if(m){var w=p(m,v);if(w)return u(w,g,v,R)}},d=function(m){if(!m)return n;if(typeof m.allowEmptyArrays<"u"&&typeof m.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof m.decodeDotInKeys<"u"&&typeof m.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(m.decoder!==null&&typeof m.decoder<"u"&&typeof m.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof m.charset<"u"&&m.charset!=="utf-8"&&m.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof m.throwOnLimitExceeded<"u"&&typeof m.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var g=typeof m.charset>"u"?n.charset:m.charset,v=typeof m.duplicates>"u"?n.duplicates:m.duplicates;if(v!=="combine"&&v!=="first"&&v!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var R=typeof m.allowDots>"u"?m.decodeDotInKeys===!0?!0:n.allowDots:!!m.allowDots;return{allowDots:R,allowEmptyArrays:typeof m.allowEmptyArrays=="boolean"?!!m.allowEmptyArrays:n.allowEmptyArrays,allowPrototypes:typeof m.allowPrototypes=="boolean"?m.allowPrototypes:n.allowPrototypes,allowSparse:typeof m.allowSparse=="boolean"?m.allowSparse:n.allowSparse,arrayLimit:typeof m.arrayLimit=="number"?m.arrayLimit:n.arrayLimit,charset:g,charsetSentinel:typeof m.charsetSentinel=="boolean"?m.charsetSentinel:n.charsetSentinel,comma:typeof m.comma=="boolean"?m.comma:n.comma,decodeDotInKeys:typeof m.decodeDotInKeys=="boolean"?m.decodeDotInKeys:n.decodeDotInKeys,decoder:typeof m.decoder=="function"?m.decoder:n.decoder,delimiter:typeof m.delimiter=="string"||e.isRegExp(m.delimiter)?m.delimiter:n.delimiter,depth:typeof m.depth=="number"||m.depth===!1?+m.depth:n.depth,duplicates:v,ignoreQueryPrefix:m.ignoreQueryPrefix===!0,interpretNumericEntities:typeof m.interpretNumericEntities=="boolean"?m.interpretNumericEntities:n.interpretNumericEntities,parameterLimit:typeof m.parameterLimit=="number"?m.parameterLimit:n.parameterLimit,parseArrays:m.parseArrays!==!1,plainObjects:typeof m.plainObjects=="boolean"?m.plainObjects:n.plainObjects,strictDepth:typeof m.strictDepth=="boolean"?!!m.strictDepth:n.strictDepth,strictNullHandling:typeof m.strictNullHandling=="boolean"?m.strictNullHandling:n.strictNullHandling,throwOnLimitExceeded:typeof m.throwOnLimitExceeded=="boolean"?m.throwOnLimitExceeded:!1}};return Ro=function(k,m){var g=d(m);if(k===""||k===null||typeof k>"u")return g.plainObjects?{__proto__:null}:{};for(var v=typeof k=="string"?s(k,g):k,R=g.plainObjects?{__proto__:null}:{},w=Object.keys(v),O=0;O<w.length;++O){var D=w[O],T=f(D,v[D],g,typeof k=="string");R=e.merge(R,T,g)}return g.allowSparse===!0?R:e.compact(R)},Ro}var Eo,Vu;function _g(){if(Vu)return Eo;Vu=1;var e=yg(),t=vg(),r=Aa();return Eo={formats:r,parse:t,stringify:e},Eo}var wg=_g();const g_=Mr(wg);var Po={exports:{}};var ju;function bg(){return ju||(ju=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var i="",o=0;o<arguments.length;o++){var a=arguments[o];a&&(i=l(i,n(a)))}return i}function n(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return r.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var o="";for(var a in i)t.call(i,a)&&i[a]&&(o=l(o,a));return o}function l(i,o){return o?i?i+" "+o:i+o:i}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(Po)),Po.exports}var kg=bg();const y_=Mr(kg);var Ao={exports:{}};const Gu=Rf(Yh);var Oo,Yu;function Sg(){if(Yu)return Oo;Yu=1;function e($){return $&&typeof $=="object"&&"default"in $?$.default:$}var t=e(Gu),r=Gu;function n($,M){for(var V=Object.getOwnPropertyNames(M),C=0;C<V.length;C++){var y=V[C],Q=Object.getOwnPropertyDescriptor(M,y);Q&&Q.configurable&&$[y]===void 0&&Object.defineProperty($,y,Q)}return $}function l(){return(l=Object.assign||function($){for(var M=1;M<arguments.length;M++){var V=arguments[M];for(var C in V)Object.prototype.hasOwnProperty.call(V,C)&&($[C]=V[C])}return $}).apply(this,arguments)}function i($,M){$.prototype=Object.create(M.prototype),n($.prototype.constructor=$,M)}function o($,M){if($==null)return{};var V,C,y={},Q=Object.keys($);for(C=0;C<Q.length;C++)V=Q[C],0<=M.indexOf(V)||(y[V]=$[V]);return y}function a($){if($===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return $}var s=function($,M,V,C,y,Q,ae,se){if(!$){var K;if(M===void 0)K=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var ne=[V,C,y,Q,ae,se],te=0;(K=new Error(M.replace(/%s/g,function(){return ne[te++]}))).name="Invariant Violation"}throw K.framesToPop=1,K}},u=s;function p($,M,V){if("selectionStart"in $&&"selectionEnd"in $)$.selectionStart=M,$.selectionEnd=V;else{var C=$.createTextRange();C.collapse(!0),C.moveStart("character",M),C.moveEnd("character",V-M),C.select()}}function f($){var M=0,V=0;if("selectionStart"in $&&"selectionEnd"in $)M=$.selectionStart,V=$.selectionEnd;else{var C=document.selection.createRange();C.parentElement()===$&&(M=-C.moveStart("character",-$.value.length),V=-C.moveEnd("character",-$.value.length))}return{start:M,end:V,length:V-M}}var d={9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"},k="_";function m($,M,V){var C="",y="",Q=null,ae=[];if(M===void 0&&(M=k),V==null&&(V=d),!$||typeof $!="string")return{maskChar:M,formatChars:V,mask:null,prefix:null,lastEditablePosition:null,permanents:[]};var se=!1;return $.split("").forEach(function(K){se=!se&&K==="\\"||(se||!V[K]?(ae.push(C.length),C.length===ae.length-1&&(y+=K)):Q=C.length+1,C+=K,!1)}),{maskChar:M,formatChars:V,prefix:y,mask:C,lastEditablePosition:Q,permanents:ae}}function g($,M){return $.permanents.indexOf(M)!==-1}function v($,M,V){var C=$.mask,y=$.formatChars;if(!V)return!1;if(g($,M))return C[M]===V;var Q=y[C[M]];return new RegExp(Q).test(V)}function R($,M){return M.split("").every(function(V,C){return g($,C)||!v($,C,V)})}function w($,M){var V=$.maskChar,C=$.prefix;if(!V){for(;M.length>C.length&&g($,M.length-1);)M=M.slice(0,M.length-1);return M.length}for(var y=C.length,Q=M.length;Q>=C.length;Q--){var ae=M[Q];if(!g($,Q)&&v($,Q,ae)){y=Q+1;break}}return y}function O($,M){return w($,M)===$.mask.length}function D($,M){var V=$.maskChar,C=$.mask,y=$.prefix;if(!V){for((M=E($,"",M,0)).length<y.length&&(M=y);M.length<C.length&&g($,M.length);)M+=C[M.length];return M}if(M)return E($,D($,""),M,0);for(var Q=0;Q<C.length;Q++)g($,Q)?M+=C[Q]:M+=V;return M}function T($,M,V,C){var y=V+C,Q=$.maskChar,ae=$.mask,se=$.prefix,K=M.split("");if(Q)return K.map(function(te,J){return J<V||y<=J?te:g($,J)?ae[J]:Q}).join("");for(var ne=y;ne<K.length;ne++)g($,ne)&&(K[ne]="");return V=Math.max(se.length,V),K.splice(V,y-V),M=K.join(""),D($,M)}function E($,M,V,C){var y=$.mask,Q=$.maskChar,ae=$.prefix,se=V.split(""),K=O($,M);return!Q&&C>M.length&&(M+=y.slice(M.length,C)),se.every(function(ne){for(;ce=ne,g($,le=C)&&ce!==y[le];){if(C>=M.length&&(M+=y[C]),te=ne,J=C,Q&&g($,J)&&te===Q)return!0;if(++C>=y.length)return!1}var te,J,le,ce;return!v($,C,ne)&&ne!==Q||(C<M.length?M=Q||K||C<ae.length?M.slice(0,C)+ne+M.slice(C+1):(M=M.slice(0,C)+ne+M.slice(C),D($,M)):Q||(M+=ne),++C<y.length)}),M}function S($,M,V,C){var y=$.mask,Q=$.maskChar,ae=V.split(""),se=C;return ae.every(function(K){for(;te=K,g($,ne=C)&&te!==y[ne];)if(++C>=y.length)return!1;var ne,te;return(v($,C,K)||K===Q)&&C++,C<y.length}),C-se}function x($,M){for(var V=M;0<=V;--V)if(!g($,V))return V;return null}function N($,M){for(var V=$.mask,C=M;C<V.length;++C)if(!g($,C))return C;return null}function F($){return $||$===0?$+"":""}function A($,M,V,C,y){var Q=$.mask,ae=$.prefix,se=$.lastEditablePosition,K=M,ne="",te=0,J=0,le=Math.min(y.start,V.start);return V.end>y.start?J=(te=S($,C,ne=K.slice(y.start,V.end),le))?y.length:0:K.length<C.length&&(J=C.length-K.length),K=C,J&&(J===1&&!y.length&&(le=y.start===V.start?N($,V.start):x($,V.start)),K=T($,K,le,J)),K=E($,K,ne,le),(le+=te)>=Q.length?le=Q.length:le<ae.length&&!te?le=ae.length:le>=ae.length&&le<se&&te&&(le=N($,le)),ne||(ne=null),{value:K=D($,K),enteredString:ne,selection:{start:le,end:le}}}function G(){var $=new RegExp("windows","i"),M=new RegExp("phone","i"),V=navigator.userAgent;return $.test(V)&&M.test(V)}function j($){return typeof $=="function"}function W(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame}function B(){return window.cancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame}function z($){return(B()?W():function(){return setTimeout($,1e3/60)})($)}function q($){(B()||clearTimeout)($)}var L=(function($){function M(C){var y=$.call(this,C)||this;y.focused=!1,y.mounted=!1,y.previousSelection=null,y.selectionDeferId=null,y.saveSelectionLoopDeferId=null,y.saveSelectionLoop=function(){y.previousSelection=y.getSelection(),y.saveSelectionLoopDeferId=z(y.saveSelectionLoop)},y.runSaveSelectionLoop=function(){y.saveSelectionLoopDeferId===null&&y.saveSelectionLoop()},y.stopSaveSelectionLoop=function(){y.saveSelectionLoopDeferId!==null&&(q(y.saveSelectionLoopDeferId),y.saveSelectionLoopDeferId=null,y.previousSelection=null)},y.getInputDOMNode=function(){if(!y.mounted)return null;var X=r.findDOMNode(a(a(y))),fe=typeof window<"u"&&X instanceof window.Element;if(X&&!fe)return null;if(X.nodeName!=="INPUT"&&(X=X.querySelector("input")),!X)throw new Error("react-input-mask: inputComponent doesn't contain input node");return X},y.getInputValue=function(){var X=y.getInputDOMNode();return X?X.value:null},y.setInputValue=function(X){var fe=y.getInputDOMNode();fe&&(y.value=X,fe.value=X)},y.setCursorToEnd=function(){var X=w(y.maskOptions,y.value),fe=N(y.maskOptions,X);fe!==null&&y.setCursorPosition(fe)},y.setSelection=function(X,fe,ye){ye===void 0&&(ye={});var de=y.getInputDOMNode(),_e=y.isFocused();de&&_e&&(ye.deferred||p(de,X,fe),y.selectionDeferId!==null&&q(y.selectionDeferId),y.selectionDeferId=z(function(){y.selectionDeferId=null,p(de,X,fe)}),y.previousSelection={start:X,end:fe,length:Math.abs(fe-X)})},y.getSelection=function(){return f(y.getInputDOMNode())},y.getCursorPosition=function(){return y.getSelection().start},y.setCursorPosition=function(X){y.setSelection(X,X)},y.isFocused=function(){return y.focused},y.getBeforeMaskedValueChangeConfig=function(){var X=y.maskOptions,fe=X.mask,ye=X.maskChar,de=X.permanents,_e=X.formatChars;return{mask:fe,maskChar:ye,permanents:de,alwaysShowMask:!!y.props.alwaysShowMask,formatChars:_e}},y.isInputAutofilled=function(X,fe,ye,de){var _e=y.getInputDOMNode();try{if(_e.matches(":-webkit-autofill"))return!0}catch{}return!y.focused||de.end<ye.length&&fe.end===X.length},y.onChange=function(X){var fe=a(a(y)).beforePasteState,ye=a(a(y)).previousSelection,de=y.props.beforeMaskedValueChange,_e=y.getInputValue(),Ee=y.value,De=y.getSelection();y.isInputAutofilled(_e,De,Ee,ye)&&(Ee=D(y.maskOptions,""),ye={start:0,end:0,length:0}),fe&&(ye=fe.selection,Ee=fe.value,De={start:ye.start+_e.length,end:ye.start+_e.length,length:0},_e=Ee.slice(0,ye.start)+_e+Ee.slice(ye.end),y.beforePasteState=null);var Pe=A(y.maskOptions,_e,De,Ee,ye),Ke=Pe.enteredString,Ne=Pe.selection,rt=Pe.value;if(j(de)){var he=de({value:rt,selection:Ne},{value:Ee,selection:ye},Ke,y.getBeforeMaskedValueChangeConfig());rt=he.value,Ne=he.selection}y.setInputValue(rt),j(y.props.onChange)&&y.props.onChange(X),y.isWindowsPhoneBrowser?y.setSelection(Ne.start,Ne.end,{deferred:!0}):y.setSelection(Ne.start,Ne.end)},y.onFocus=function(X){var fe=y.props.beforeMaskedValueChange,ye=y.maskOptions,de=ye.mask,_e=ye.prefix;if(y.focused=!0,y.mounted=!0,de){if(y.value)w(y.maskOptions,y.value)<y.maskOptions.mask.length&&y.setCursorToEnd();else{var Ee=D(y.maskOptions,_e),De=D(y.maskOptions,Ee),Pe=w(y.maskOptions,De),Ke=N(y.maskOptions,Pe),Ne={start:Ke,end:Ke};if(j(fe)){var rt=fe({value:De,selection:Ne},{value:y.value,selection:null},null,y.getBeforeMaskedValueChangeConfig());De=rt.value,Ne=rt.selection}var he=De!==y.getInputValue();he&&y.setInputValue(De),he&&j(y.props.onChange)&&y.props.onChange(X),y.setSelection(Ne.start,Ne.end)}y.runSaveSelectionLoop()}j(y.props.onFocus)&&y.props.onFocus(X)},y.onBlur=function(X){var fe=y.props.beforeMaskedValueChange,ye=y.maskOptions.mask;if(y.stopSaveSelectionLoop(),y.focused=!1,ye&&!y.props.alwaysShowMask&&R(y.maskOptions,y.value)){var de="";j(fe)&&(de=fe({value:de,selection:null},{value:y.value,selection:y.previousSelection},null,y.getBeforeMaskedValueChangeConfig()).value);var _e=de!==y.getInputValue();_e&&y.setInputValue(de),_e&&j(y.props.onChange)&&y.props.onChange(X)}j(y.props.onBlur)&&y.props.onBlur(X)},y.onMouseDown=function(X){if(!y.focused&&document.addEventListener){y.mouseDownX=X.clientX,y.mouseDownY=X.clientY,y.mouseDownTime=new Date().getTime();var fe=function ye(de){if(document.removeEventListener("mouseup",ye),y.focused){var _e=Math.abs(de.clientX-y.mouseDownX),Ee=Math.abs(de.clientY-y.mouseDownY),De=Math.max(_e,Ee),Pe=new Date().getTime()-y.mouseDownTime;(De<=10&&Pe<=200||De<=5&&Pe<=300)&&y.setCursorToEnd()}};document.addEventListener("mouseup",fe)}j(y.props.onMouseDown)&&y.props.onMouseDown(X)},y.onPaste=function(X){j(y.props.onPaste)&&y.props.onPaste(X),X.defaultPrevented||(y.beforePasteState={value:y.getInputValue(),selection:y.getSelection()},y.setInputValue(""))},y.handleRef=function(X){y.props.children==null&&j(y.props.inputRef)&&y.props.inputRef(X)};var Q=C.mask,ae=C.maskChar,se=C.formatChars,K=C.alwaysShowMask,ne=C.beforeMaskedValueChange,te=C.defaultValue,J=C.value;y.maskOptions=m(Q,ae,se),te==null&&(te=""),J==null&&(J=te);var le=F(J);if(y.maskOptions.mask&&(K||le)&&(le=D(y.maskOptions,le),j(ne))){var ce=C.value;C.value==null&&(ce=te),le=ne({value:le,selection:null},{value:ce=F(ce),selection:null},null,y.getBeforeMaskedValueChangeConfig()).value}return y.value=le,y}i(M,$);var V=M.prototype;return V.componentDidMount=function(){this.mounted=!0,this.getInputDOMNode()&&(this.isWindowsPhoneBrowser=G(),this.maskOptions.mask&&this.getInputValue()!==this.value&&this.setInputValue(this.value))},V.componentDidUpdate=function(){var C=this.previousSelection,y=this.props,Q=y.beforeMaskedValueChange,ae=y.alwaysShowMask,se=y.mask,K=y.maskChar,ne=y.formatChars,te=this.maskOptions,J=ae||this.isFocused(),le=this.props.value!=null,ce=le?F(this.props.value):this.value,X=C?C.start:null;if(this.maskOptions=m(se,K,ne),this.maskOptions.mask){!te.mask&&this.isFocused()&&this.runSaveSelectionLoop();var fe=this.maskOptions.mask&&this.maskOptions.mask!==te.mask;if(te.mask||le||(ce=this.getInputValue()),(fe||this.maskOptions.mask&&(ce||J))&&(ce=D(this.maskOptions,ce)),fe){var ye=w(this.maskOptions,ce);(X===null||ye<X)&&(X=O(this.maskOptions,ce)?ye:N(this.maskOptions,ye))}!this.maskOptions.mask||!R(this.maskOptions,ce)||J||le&&this.props.value||(ce="");var de={start:X,end:X};if(j(Q)){var _e=Q({value:ce,selection:de},{value:this.value,selection:this.previousSelection},null,this.getBeforeMaskedValueChangeConfig());ce=_e.value,de=_e.selection}this.value=ce;var Ee=this.getInputValue()!==this.value;Ee?(this.setInputValue(this.value),this.forceUpdate()):fe&&this.forceUpdate();var De=!1;de.start!=null&&de.end!=null&&(De=!C||C.start!==de.start||C.end!==de.end),(De||Ee)&&this.setSelection(de.start,de.end)}else te.mask&&(this.stopSaveSelectionLoop(),this.forceUpdate())},V.componentWillUnmount=function(){this.mounted=!1,this.selectionDeferId!==null&&q(this.selectionDeferId),this.stopSaveSelectionLoop()},V.render=function(){var C,y=this.props,Q=(y.mask,y.alwaysShowMask,y.maskChar,y.formatChars,y.inputRef,y.beforeMaskedValueChange,y.children),ae=o(y,["mask","alwaysShowMask","maskChar","formatChars","inputRef","beforeMaskedValueChange","children"]);if(Q){j(Q)||u(!1);var se=["onChange","onPaste","onMouseDown","onFocus","onBlur","value","disabled","readOnly"],K=l({},ae);se.forEach(function(te){return delete K[te]}),C=Q(K),se.filter(function(te){return C.props[te]!=null&&C.props[te]!==ae[te]}).length&&u(!1)}else C=t.createElement("input",l({ref:this.handleRef},ae));var ne={onFocus:this.onFocus,onBlur:this.onBlur};return this.maskOptions.mask&&(ae.disabled||ae.readOnly||(ne.onChange=this.onChange,ne.onPaste=this.onPaste,ne.onMouseDown=this.onMouseDown),ae.value!=null&&(ne.value=this.value)),C=t.cloneElement(C,ne)},M})(t.Component);return Oo=L,Oo}var Ku;function xg(){return Ku||(Ku=1,Ao.exports=Sg()),Ao.exports}var $g=xg();const v_=Mr($g);var To,Zu;function Rg(){if(Zu)return To;Zu=1;var e="Expected a function",t=NaN,r="[object Symbol]",n=/^\s+|\s+$/g,l=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,a=parseInt,s=typeof wn=="object"&&wn&&wn.Object===Object&&wn,u=typeof self=="object"&&self&&self.Object===Object&&self,p=s||u||Function("return this")(),f=Object.prototype,d=f.toString,k=Math.max,m=Math.min,g=function(){return p.Date.now()};function v(T,E,S){var x,N,F,A,G,j,W=0,B=!1,z=!1,q=!0;if(typeof T!="function")throw new TypeError(e);E=D(E)||0,R(S)&&(B=!!S.leading,z="maxWait"in S,F=z?k(D(S.maxWait)||0,E):F,q="trailing"in S?!!S.trailing:q);function L(K){var ne=x,te=N;return x=N=void 0,W=K,A=T.apply(te,ne),A}function $(K){return W=K,G=setTimeout(C,E),B?L(K):A}function M(K){var ne=K-j,te=K-W,J=E-ne;return z?m(J,F-te):J}function V(K){var ne=K-j,te=K-W;return j===void 0||ne>=E||ne<0||z&&te>=F}function C(){var K=g();if(V(K))return y(K);G=setTimeout(C,M(K))}function y(K){return G=void 0,q&&x?L(K):(x=N=void 0,A)}function Q(){G!==void 0&&clearTimeout(G),W=0,x=j=N=G=void 0}function ae(){return G===void 0?A:y(g())}function se(){var K=g(),ne=V(K);if(x=arguments,N=this,j=K,ne){if(G===void 0)return $(j);if(z)return G=setTimeout(C,E),L(j)}return G===void 0&&(G=setTimeout(C,E)),A}return se.cancel=Q,se.flush=ae,se}function R(T){var E=typeof T;return!!T&&(E=="object"||E=="function")}function w(T){return!!T&&typeof T=="object"}function O(T){return typeof T=="symbol"||w(T)&&d.call(T)==r}function D(T){if(typeof T=="number")return T;if(O(T))return t;if(R(T)){var E=typeof T.valueOf=="function"?T.valueOf():T;T=R(E)?E+"":E}if(typeof T!="string")return T===0?T:+T;T=T.replace(n,"");var S=i.test(T);return S||o.test(T)?a(T.slice(2),S?2:8):l.test(T)?t:+T}return To=v,To}var Eg=Rg();const __=Mr(Eg);function Oa(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var nn=Oa();function lp(e){nn=e}var rl={exec:()=>null};function Te(e,t=""){let r=typeof e=="string"?e:e.source,n={replace:(l,i)=>{let o=typeof i=="string"?i:i.source;return o=o.replace(Rt.caret,"$1"),r=r.replace(l,o),n},getRegex:()=>new RegExp(r,t)};return n}var Pg=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),Rt={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},Ag=/^(?:[ \t]*(?:\n|$))+/,Og=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Tg=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,ml=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Mg=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Ta=/(?:[*+-]|\d{1,9}[.)])/,ip=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,op=Te(ip).replace(/bull/g,Ta).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Cg=Te(ip).replace(/bull/g,Ta).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Ma=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Dg=/^[^\n]+/,Ca=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Lg=Te(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Ca).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Ig=Te(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Ta).getRegex(),ei="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Da=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Ng=Te("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Da).replace("tag",ei).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ap=Te(Ma).replace("hr",ml).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ei).getRegex(),Fg=Te(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",ap).getRegex(),La={blockquote:Fg,code:Og,def:Lg,fences:Tg,heading:Mg,hr:ml,html:Ng,lheading:op,list:Ig,newline:Ag,paragraph:ap,table:rl,text:Dg},Qu=Te("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",ml).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ei).getRegex(),zg={...La,lheading:Cg,table:Qu,paragraph:Te(Ma).replace("hr",ml).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Qu).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ei).getRegex()},Bg={...La,html:Te(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Da).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:rl,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Te(Ma).replace("hr",ml).replace("heading",` *#{1,6} *[^
|
|
]`).replace("lheading",op).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Hg=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,qg=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,sp=/^( {2,}|\\)\n(?!\s*$)/,Ug=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,ti=/[\p{P}\p{S}]/u,Ia=/[\s\p{P}\p{S}]/u,up=/[^\s\p{P}\p{S}]/u,Wg=Te(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Ia).getRegex(),cp=/(?!~)[\p{P}\p{S}]/u,Vg=/(?!~)[\s\p{P}\p{S}]/u,jg=/(?:[^\s\p{P}\p{S}]|~)/u,Gg=Te(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Pg?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),fp=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Yg=Te(fp,"u").replace(/punct/g,ti).getRegex(),Kg=Te(fp,"u").replace(/punct/g,cp).getRegex(),pp="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Zg=Te(pp,"gu").replace(/notPunctSpace/g,up).replace(/punctSpace/g,Ia).replace(/punct/g,ti).getRegex(),Qg=Te(pp,"gu").replace(/notPunctSpace/g,jg).replace(/punctSpace/g,Vg).replace(/punct/g,cp).getRegex(),Jg=Te("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,up).replace(/punctSpace/g,Ia).replace(/punct/g,ti).getRegex(),Xg=Te(/\\(punct)/,"gu").replace(/punct/g,ti).getRegex(),ey=Te(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),ty=Te(Da).replace("(?:-->|$)","-->").getRegex(),ry=Te("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",ty).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Ul=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,ny=Te(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Ul).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),hp=Te(/^!?\[(label)\]\[(ref)\]/).replace("label",Ul).replace("ref",Ca).getRegex(),dp=Te(/^!?\[(ref)\](?:\[\])?/).replace("ref",Ca).getRegex(),ly=Te("reflink|nolink(?!\\()","g").replace("reflink",hp).replace("nolink",dp).getRegex(),Ju=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Na={_backpedal:rl,anyPunctuation:Xg,autolink:ey,blockSkip:Gg,br:sp,code:qg,del:rl,emStrongLDelim:Yg,emStrongRDelimAst:Zg,emStrongRDelimUnd:Jg,escape:Hg,link:ny,nolink:dp,punctuation:Wg,reflink:hp,reflinkSearch:ly,tag:ry,text:Ug,url:rl},iy={...Na,link:Te(/^!?\[(label)\]\((.*?)\)/).replace("label",Ul).getRegex(),reflink:Te(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ul).getRegex()},Yo={...Na,emStrongRDelimAst:Qg,emStrongLDelim:Kg,url:Te(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Ju).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Te(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Ju).getRegex()},oy={...Yo,br:Te(sp).replace("{2,}","*").getRegex(),text:Te(Yo.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},El={normal:La,gfm:zg,pedantic:Bg},jn={normal:Na,gfm:Yo,breaks:oy,pedantic:iy},ay={"&":"&","<":"<",">":">",'"':""","'":"'"},Xu=e=>ay[e];function kr(e,t){if(t){if(Rt.escapeTest.test(e))return e.replace(Rt.escapeReplace,Xu)}else if(Rt.escapeTestNoEncode.test(e))return e.replace(Rt.escapeReplaceNoEncode,Xu);return e}function ec(e){try{e=encodeURI(e).replace(Rt.percentDecode,"%")}catch{return null}return e}function tc(e,t){let r=e.replace(Rt.findPipe,(i,o,a)=>{let s=!1,u=o;for(;--u>=0&&a[u]==="\\";)s=!s;return s?"|":" |"}),n=r.split(Rt.splitPipe),l=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;l<n.length;l++)n[l]=n[l].trim().replace(Rt.slashPipe,"|");return n}function Gn(e,t,r){let n=e.length;if(n===0)return"";let l=0;for(;l<n&&e.charAt(n-l-1)===t;)l++;return e.slice(0,n-l)}function sy(e,t){if(e.indexOf(t[1])===-1)return-1;let r=0;for(let n=0;n<e.length;n++)if(e[n]==="\\")n++;else if(e[n]===t[0])r++;else if(e[n]===t[1]&&(r--,r<0))return n;return r>0?-2:-1}function rc(e,t,r,n,l){let i=t.href,o=t.title||null,a=e[1].replace(l.other.outputLinkReplace,"$1");n.state.inLink=!0;let s={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:i,title:o,text:a,tokens:n.inlineTokens(a)};return n.state.inLink=!1,s}function uy(e,t,r){let n=e.match(r.other.indentCodeCompensation);if(n===null)return t;let l=n[1];return t.split(`
|
|
`).map(i=>{let o=i.match(r.other.beginningSpace);if(o===null)return i;let[a]=o;return a.length>=l.length?i.slice(l.length):i}).join(`
|
|
`)}var Wl=class{options;rules;lexer;constructor(e){this.options=e||nn}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let r=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?r:Gn(r,`
|
|
`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let r=t[0],n=uy(r,t[3]||"",this.rules);return{type:"code",raw:r,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let r=t[2].trim();if(this.rules.other.endingHash.test(r)){let n=Gn(r,"#");(this.options.pedantic||!n||this.rules.other.endingSpaceChar.test(n))&&(r=n.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:Gn(t[0],`
|
|
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let r=Gn(t[0],`
|
|
`).split(`
|
|
`),n="",l="",i=[];for(;r.length>0;){let o=!1,a=[],s;for(s=0;s<r.length;s++)if(this.rules.other.blockquoteStart.test(r[s]))a.push(r[s]),o=!0;else if(!o)a.push(r[s]);else break;r=r.slice(s);let u=a.join(`
|
|
`),p=u.replace(this.rules.other.blockquoteSetextReplace,`
|
|
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}
|
|
${u}`:u,l=l?`${l}
|
|
${p}`:p;let f=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(p,i,!0),this.lexer.state.top=f,r.length===0)break;let d=i.at(-1);if(d?.type==="code")break;if(d?.type==="blockquote"){let k=d,m=k.raw+`
|
|
`+r.join(`
|
|
`),g=this.blockquote(m);i[i.length-1]=g,n=n.substring(0,n.length-k.raw.length)+g.raw,l=l.substring(0,l.length-k.text.length)+g.text;break}else if(d?.type==="list"){let k=d,m=k.raw+`
|
|
`+r.join(`
|
|
`),g=this.list(m);i[i.length-1]=g,n=n.substring(0,n.length-d.raw.length)+g.raw,l=l.substring(0,l.length-k.raw.length)+g.raw,r=m.substring(i.at(-1).raw.length).split(`
|
|
`);continue}}return{type:"blockquote",raw:n,tokens:i,text:l}}}list(e){let t=this.rules.block.list.exec(e);if(t){let r=t[1].trim(),n=r.length>1,l={type:"list",raw:"",ordered:n,start:n?+r.slice(0,-1):"",loose:!1,items:[]};r=n?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=n?r:"[*+-]");let i=this.rules.other.listItemRegex(r),o=!1;for(;e;){let s=!1,u="",p="";if(!(t=i.exec(e))||this.rules.block.hr.test(e))break;u=t[0],e=e.substring(u.length);let f=t[2].split(`
|
|
`,1)[0].replace(this.rules.other.listReplaceTabs,g=>" ".repeat(3*g.length)),d=e.split(`
|
|
`,1)[0],k=!f.trim(),m=0;if(this.options.pedantic?(m=2,p=f.trimStart()):k?m=t[1].length+1:(m=t[2].search(this.rules.other.nonSpaceChar),m=m>4?1:m,p=f.slice(m),m+=t[1].length),k&&this.rules.other.blankLine.test(d)&&(u+=d+`
|
|
`,e=e.substring(d.length+1),s=!0),!s){let g=this.rules.other.nextBulletRegex(m),v=this.rules.other.hrRegex(m),R=this.rules.other.fencesBeginRegex(m),w=this.rules.other.headingBeginRegex(m),O=this.rules.other.htmlBeginRegex(m);for(;e;){let D=e.split(`
|
|
`,1)[0],T;if(d=D,this.options.pedantic?(d=d.replace(this.rules.other.listReplaceNesting," "),T=d):T=d.replace(this.rules.other.tabCharGlobal," "),R.test(d)||w.test(d)||O.test(d)||g.test(d)||v.test(d))break;if(T.search(this.rules.other.nonSpaceChar)>=m||!d.trim())p+=`
|
|
`+T.slice(m);else{if(k||f.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||R.test(f)||w.test(f)||v.test(f))break;p+=`
|
|
`+d}!k&&!d.trim()&&(k=!0),u+=D+`
|
|
`,e=e.substring(D.length+1),f=T.slice(m)}}l.loose||(o?l.loose=!0:this.rules.other.doubleBlankLine.test(u)&&(o=!0)),l.items.push({type:"list_item",raw:u,task:!!this.options.gfm&&this.rules.other.listIsTask.test(p),loose:!1,text:p,tokens:[]}),l.raw+=u}let a=l.items.at(-1);if(a)a.raw=a.raw.trimEnd(),a.text=a.text.trimEnd();else return;l.raw=l.raw.trimEnd();for(let s of l.items){if(this.lexer.state.top=!1,s.tokens=this.lexer.blockTokens(s.text,[]),s.task){if(s.text=s.text.replace(this.rules.other.listReplaceTask,""),s.tokens[0]?.type==="text"||s.tokens[0]?.type==="paragraph"){s.tokens[0].raw=s.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),s.tokens[0].text=s.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let p=this.lexer.inlineQueue.length-1;p>=0;p--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[p].src)){this.lexer.inlineQueue[p].src=this.lexer.inlineQueue[p].src.replace(this.rules.other.listReplaceTask,"");break}}let u=this.rules.other.listTaskCheckbox.exec(s.raw);if(u){let p={type:"checkbox",raw:u[0]+" ",checked:u[0]!=="[ ]"};s.checked=p.checked,l.loose?s.tokens[0]&&["paragraph","text"].includes(s.tokens[0].type)&&"tokens"in s.tokens[0]&&s.tokens[0].tokens?(s.tokens[0].raw=p.raw+s.tokens[0].raw,s.tokens[0].text=p.raw+s.tokens[0].text,s.tokens[0].tokens.unshift(p)):s.tokens.unshift({type:"paragraph",raw:p.raw,text:p.raw,tokens:[p]}):s.tokens.unshift(p)}}if(!l.loose){let u=s.tokens.filter(f=>f.type==="space"),p=u.length>0&&u.some(f=>this.rules.other.anyLine.test(f.raw));l.loose=p}}if(l.loose)for(let s of l.items){s.loose=!0;for(let u of s.tokens)u.type==="text"&&(u.type="paragraph")}return l}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let r=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",l=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:r,raw:t[0],href:n,title:l}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let r=tc(t[1]),n=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),l=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
`):[],i={type:"table",raw:t[0],header:[],align:[],rows:[]};if(r.length===n.length){for(let o of n)this.rules.other.tableAlignRight.test(o)?i.align.push("right"):this.rules.other.tableAlignCenter.test(o)?i.align.push("center"):this.rules.other.tableAlignLeft.test(o)?i.align.push("left"):i.align.push(null);for(let o=0;o<r.length;o++)i.header.push({text:r[o],tokens:this.lexer.inline(r[o]),header:!0,align:i.align[o]});for(let o of l)i.rows.push(tc(o,i.header.length).map((a,s)=>({text:a,tokens:this.lexer.inline(a),header:!1,align:i.align[s]})));return i}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let r=t[1].charAt(t[1].length-1)===`
|
|
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:r,tokens:this.lexer.inline(r)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let r=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;let i=Gn(r.slice(0,-1),"\\");if((r.length-i.length)%2===0)return}else{let i=sy(t[2],"()");if(i===-2)return;if(i>-1){let o=(t[0].indexOf("!")===0?5:4)+t[1].length+i;t[2]=t[2].substring(0,i),t[0]=t[0].substring(0,o).trim(),t[3]=""}}let n=t[2],l="";if(this.options.pedantic){let i=this.rules.other.pedanticHrefTitle.exec(n);i&&(n=i[1],l=i[3])}else l=t[3]?t[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?n=n.slice(1):n=n.slice(1,-1)),rc(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:l&&l.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){let n=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),l=t[n.toLowerCase()];if(!l){let i=r[0].charAt(0);return{type:"text",raw:i,text:i}}return rc(r,l,r[0],this.lexer,this.rules)}}emStrong(e,t,r=""){let n=this.rules.inline.emStrongLDelim.exec(e);if(!(!n||n[3]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!(n[1]||n[2])||!r||this.rules.inline.punctuation.exec(r))){let l=[...n[0]].length-1,i,o,a=l,s=0,u=n[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(u.lastIndex=0,t=t.slice(-1*e.length+l);(n=u.exec(t))!=null;){if(i=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!i)continue;if(o=[...i].length,n[3]||n[4]){a+=o;continue}else if((n[5]||n[6])&&l%3&&!((l+o)%3)){s+=o;continue}if(a-=o,a>0)continue;o=Math.min(o,o+a+s);let p=[...n[0]][0].length,f=e.slice(0,l+n.index+p+o);if(Math.min(l,o)%2){let k=f.slice(1,-1);return{type:"em",raw:f,text:k,tokens:this.lexer.inlineTokens(k)}}let d=f.slice(2,-2);return{type:"strong",raw:f,text:d,tokens:this.lexer.inlineTokens(d)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let r=t[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(r),l=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return n&&l&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:t[0],text:r}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let r,n;return t[2]==="@"?(r=t[1],n="mailto:"+r):(r=t[1],n=r),{type:"link",raw:t[0],text:r,href:n,tokens:[{type:"text",raw:r,text:r}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let r,n;if(t[2]==="@")r=t[0],n="mailto:"+r;else{let l;do l=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(l!==t[0]);r=t[0],t[1]==="www."?n="http://"+t[0]:n=t[0]}return{type:"link",raw:t[0],text:r,href:n,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let r=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:r}}}},lr=class Ko{tokens;options;state;inlineQueue;tokenizer;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||nn,this.options.tokenizer=this.options.tokenizer||new Wl,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={other:Rt,block:El.normal,inline:jn.normal};this.options.pedantic?(r.block=El.pedantic,r.inline=jn.pedantic):this.options.gfm&&(r.block=El.gfm,this.options.breaks?r.inline=jn.breaks:r.inline=jn.gfm),this.tokenizer.rules=r}static get rules(){return{block:El,inline:jn}}static lex(t,r){return new Ko(r).lex(t)}static lexInline(t,r){return new Ko(r).inlineTokens(t)}lex(t){t=t.replace(Rt.carriageReturn,`
|
|
`),this.blockTokens(t,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let n=this.inlineQueue[r];this.inlineTokens(n.src,n.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,r=[],n=!1){for(this.options.pedantic&&(t=t.replace(Rt.tabCharGlobal," ").replace(Rt.spaceLine,""));t;){let l;if(this.options.extensions?.block?.some(o=>(l=o.call({lexer:this},t,r))?(t=t.substring(l.raw.length),r.push(l),!0):!1))continue;if(l=this.tokenizer.space(t)){t=t.substring(l.raw.length);let o=r.at(-1);l.raw.length===1&&o!==void 0?o.raw+=`
|
|
`:r.push(l);continue}if(l=this.tokenizer.code(t)){t=t.substring(l.raw.length);let o=r.at(-1);o?.type==="paragraph"||o?.type==="text"?(o.raw+=(o.raw.endsWith(`
|
|
`)?"":`
|
|
`)+l.raw,o.text+=`
|
|
`+l.text,this.inlineQueue.at(-1).src=o.text):r.push(l);continue}if(l=this.tokenizer.fences(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.heading(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.hr(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.blockquote(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.list(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.html(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.def(t)){t=t.substring(l.raw.length);let o=r.at(-1);o?.type==="paragraph"||o?.type==="text"?(o.raw+=(o.raw.endsWith(`
|
|
`)?"":`
|
|
`)+l.raw,o.text+=`
|
|
`+l.raw,this.inlineQueue.at(-1).src=o.text):this.tokens.links[l.tag]||(this.tokens.links[l.tag]={href:l.href,title:l.title},r.push(l));continue}if(l=this.tokenizer.table(t)){t=t.substring(l.raw.length),r.push(l);continue}if(l=this.tokenizer.lheading(t)){t=t.substring(l.raw.length),r.push(l);continue}let i=t;if(this.options.extensions?.startBlock){let o=1/0,a=t.slice(1),s;this.options.extensions.startBlock.forEach(u=>{s=u.call({lexer:this},a),typeof s=="number"&&s>=0&&(o=Math.min(o,s))}),o<1/0&&o>=0&&(i=t.substring(0,o+1))}if(this.state.top&&(l=this.tokenizer.paragraph(i))){let o=r.at(-1);n&&o?.type==="paragraph"?(o.raw+=(o.raw.endsWith(`
|
|
`)?"":`
|
|
`)+l.raw,o.text+=`
|
|
`+l.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=o.text):r.push(l),n=i.length!==t.length,t=t.substring(l.raw.length);continue}if(l=this.tokenizer.text(t)){t=t.substring(l.raw.length);let o=r.at(-1);o?.type==="text"?(o.raw+=(o.raw.endsWith(`
|
|
`)?"":`
|
|
`)+l.raw,o.text+=`
|
|
`+l.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=o.text):r.push(l);continue}if(t){let o="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(o);break}else throw new Error(o)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){let n=t,l=null;if(this.tokens.links){let s=Object.keys(this.tokens.links);if(s.length>0)for(;(l=this.tokenizer.rules.inline.reflinkSearch.exec(n))!=null;)s.includes(l[0].slice(l[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,l.index)+"["+"a".repeat(l[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(l=this.tokenizer.rules.inline.anyPunctuation.exec(n))!=null;)n=n.slice(0,l.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let i;for(;(l=this.tokenizer.rules.inline.blockSkip.exec(n))!=null;)i=l[2]?l[2].length:0,n=n.slice(0,l.index+i)+"["+"a".repeat(l[0].length-i-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let o=!1,a="";for(;t;){o||(a=""),o=!1;let s;if(this.options.extensions?.inline?.some(p=>(s=p.call({lexer:this},t,r))?(t=t.substring(s.raw.length),r.push(s),!0):!1))continue;if(s=this.tokenizer.escape(t)){t=t.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.tag(t)){t=t.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.link(t)){t=t.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(s.raw.length);let p=r.at(-1);s.type==="text"&&p?.type==="text"?(p.raw+=s.raw,p.text+=s.text):r.push(s);continue}if(s=this.tokenizer.emStrong(t,n,a)){t=t.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.codespan(t)){t=t.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.br(t)){t=t.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.del(t)){t=t.substring(s.raw.length),r.push(s);continue}if(s=this.tokenizer.autolink(t)){t=t.substring(s.raw.length),r.push(s);continue}if(!this.state.inLink&&(s=this.tokenizer.url(t))){t=t.substring(s.raw.length),r.push(s);continue}let u=t;if(this.options.extensions?.startInline){let p=1/0,f=t.slice(1),d;this.options.extensions.startInline.forEach(k=>{d=k.call({lexer:this},f),typeof d=="number"&&d>=0&&(p=Math.min(p,d))}),p<1/0&&p>=0&&(u=t.substring(0,p+1))}if(s=this.tokenizer.inlineText(u)){t=t.substring(s.raw.length),s.raw.slice(-1)!=="_"&&(a=s.raw.slice(-1)),o=!0;let p=r.at(-1);p?.type==="text"?(p.raw+=s.raw,p.text+=s.text):r.push(s);continue}if(t){let p="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(p);break}else throw new Error(p)}}return r}},Vl=class{options;parser;constructor(e){this.options=e||nn}space(e){return""}code({text:e,lang:t,escaped:r}){let n=(t||"").match(Rt.notSpaceStart)?.[0],l=e.replace(Rt.endingNewline,"")+`
|
|
`;return n?'<pre><code class="language-'+kr(n)+'">'+(r?l:kr(l,!0))+`</code></pre>
|
|
`:"<pre><code>"+(r?l:kr(l,!0))+`</code></pre>
|
|
`}blockquote({tokens:e}){return`<blockquote>
|
|
${this.parser.parse(e)}</blockquote>
|
|
`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
|
|
`}hr(e){return`<hr>
|
|
`}list(e){let t=e.ordered,r=e.start,n="";for(let o=0;o<e.items.length;o++){let a=e.items[o];n+=this.listitem(a)}let l=t?"ol":"ul",i=t&&r!==1?' start="'+r+'"':"";return"<"+l+i+`>
|
|
`+n+"</"+l+`>
|
|
`}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
|
|
`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
|
|
`}table(e){let t="",r="";for(let l=0;l<e.header.length;l++)r+=this.tablecell(e.header[l]);t+=this.tablerow({text:r});let n="";for(let l=0;l<e.rows.length;l++){let i=e.rows[l];r="";for(let o=0;o<i.length;o++)r+=this.tablecell(i[o]);n+=this.tablerow({text:r})}return n&&(n=`<tbody>${n}</tbody>`),`<table>
|
|
<thead>
|
|
`+t+`</thead>
|
|
`+n+`</table>
|
|
`}tablerow({text:e}){return`<tr>
|
|
${e}</tr>
|
|
`}tablecell(e){let t=this.parser.parseInline(e.tokens),r=e.header?"th":"td";return(e.align?`<${r} align="${e.align}">`:`<${r}>`)+t+`</${r}>
|
|
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${kr(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:r}){let n=this.parser.parseInline(r),l=ec(e);if(l===null)return n;e=l;let i='<a href="'+e+'"';return t&&(i+=' title="'+kr(t)+'"'),i+=">"+n+"</a>",i}image({href:e,title:t,text:r,tokens:n}){n&&(r=this.parser.parseInline(n,this.parser.textRenderer));let l=ec(e);if(l===null)return kr(r);e=l;let i=`<img src="${e}" alt="${r}"`;return t&&(i+=` title="${kr(t)}"`),i+=">",i}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:kr(e.text)}},Fa=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},ir=class Zo{options;renderer;textRenderer;constructor(t){this.options=t||nn,this.options.renderer=this.options.renderer||new Vl,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Fa}static parse(t,r){return new Zo(r).parse(t)}static parseInline(t,r){return new Zo(r).parseInline(t)}parse(t){let r="";for(let n=0;n<t.length;n++){let l=t[n];if(this.options.extensions?.renderers?.[l.type]){let o=l,a=this.options.extensions.renderers[o.type].call({parser:this},o);if(a!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(o.type)){r+=a||"";continue}}let i=l;switch(i.type){case"space":{r+=this.renderer.space(i);break}case"hr":{r+=this.renderer.hr(i);break}case"heading":{r+=this.renderer.heading(i);break}case"code":{r+=this.renderer.code(i);break}case"table":{r+=this.renderer.table(i);break}case"blockquote":{r+=this.renderer.blockquote(i);break}case"list":{r+=this.renderer.list(i);break}case"checkbox":{r+=this.renderer.checkbox(i);break}case"html":{r+=this.renderer.html(i);break}case"def":{r+=this.renderer.def(i);break}case"paragraph":{r+=this.renderer.paragraph(i);break}case"text":{r+=this.renderer.text(i);break}default:{let o='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return r}parseInline(t,r=this.renderer){let n="";for(let l=0;l<t.length;l++){let i=t[l];if(this.options.extensions?.renderers?.[i.type]){let a=this.options.extensions.renderers[i.type].call({parser:this},i);if(a!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){n+=a||"";continue}}let o=i;switch(o.type){case"escape":{n+=r.text(o);break}case"html":{n+=r.html(o);break}case"link":{n+=r.link(o);break}case"image":{n+=r.image(o);break}case"checkbox":{n+=r.checkbox(o);break}case"strong":{n+=r.strong(o);break}case"em":{n+=r.em(o);break}case"codespan":{n+=r.codespan(o);break}case"br":{n+=r.br(o);break}case"del":{n+=r.del(o);break}case"text":{n+=r.text(o);break}default:{let a='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return n}},Zn=class{options;block;constructor(e){this.options=e||nn}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?lr.lex:lr.lexInline}provideParser(){return this.block?ir.parse:ir.parseInline}},cy=class{defaults=Oa();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=ir;Renderer=Vl;TextRenderer=Fa;Lexer=lr;Tokenizer=Wl;Hooks=Zn;constructor(...e){this.use(...e)}walkTokens(e,t){let r=[];for(let n of e)switch(r=r.concat(t.call(this,n)),n.type){case"table":{let l=n;for(let i of l.header)r=r.concat(this.walkTokens(i.tokens,t));for(let i of l.rows)for(let o of i)r=r.concat(this.walkTokens(o.tokens,t));break}case"list":{let l=n;r=r.concat(this.walkTokens(l.items,t));break}default:{let l=n;this.defaults.extensions?.childTokens?.[l.type]?this.defaults.extensions.childTokens[l.type].forEach(i=>{let o=l[i].flat(1/0);r=r.concat(this.walkTokens(o,t))}):l.tokens&&(r=r.concat(this.walkTokens(l.tokens,t)))}}return r}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(r=>{let n={...r};if(n.async=this.defaults.async||n.async||!1,r.extensions&&(r.extensions.forEach(l=>{if(!l.name)throw new Error("extension name required");if("renderer"in l){let i=t.renderers[l.name];i?t.renderers[l.name]=function(...o){let a=l.renderer.apply(this,o);return a===!1&&(a=i.apply(this,o)),a}:t.renderers[l.name]=l.renderer}if("tokenizer"in l){if(!l.level||l.level!=="block"&&l.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let i=t[l.level];i?i.unshift(l.tokenizer):t[l.level]=[l.tokenizer],l.start&&(l.level==="block"?t.startBlock?t.startBlock.push(l.start):t.startBlock=[l.start]:l.level==="inline"&&(t.startInline?t.startInline.push(l.start):t.startInline=[l.start]))}"childTokens"in l&&l.childTokens&&(t.childTokens[l.name]=l.childTokens)}),n.extensions=t),r.renderer){let l=this.defaults.renderer||new Vl(this.defaults);for(let i in r.renderer){if(!(i in l))throw new Error(`renderer '${i}' does not exist`);if(["options","parser"].includes(i))continue;let o=i,a=r.renderer[o],s=l[o];l[o]=(...u)=>{let p=a.apply(l,u);return p===!1&&(p=s.apply(l,u)),p||""}}n.renderer=l}if(r.tokenizer){let l=this.defaults.tokenizer||new Wl(this.defaults);for(let i in r.tokenizer){if(!(i in l))throw new Error(`tokenizer '${i}' does not exist`);if(["options","rules","lexer"].includes(i))continue;let o=i,a=r.tokenizer[o],s=l[o];l[o]=(...u)=>{let p=a.apply(l,u);return p===!1&&(p=s.apply(l,u)),p}}n.tokenizer=l}if(r.hooks){let l=this.defaults.hooks||new Zn;for(let i in r.hooks){if(!(i in l))throw new Error(`hook '${i}' does not exist`);if(["options","block"].includes(i))continue;let o=i,a=r.hooks[o],s=l[o];Zn.passThroughHooks.has(i)?l[o]=u=>{if(this.defaults.async&&Zn.passThroughHooksRespectAsync.has(i))return(async()=>{let f=await a.call(l,u);return s.call(l,f)})();let p=a.call(l,u);return s.call(l,p)}:l[o]=(...u)=>{if(this.defaults.async)return(async()=>{let f=await a.apply(l,u);return f===!1&&(f=await s.apply(l,u)),f})();let p=a.apply(l,u);return p===!1&&(p=s.apply(l,u)),p}}n.hooks=l}if(r.walkTokens){let l=this.defaults.walkTokens,i=r.walkTokens;n.walkTokens=function(o){let a=[];return a.push(i.call(this,o)),l&&(a=a.concat(l.call(this,o))),a}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return lr.lex(e,t??this.defaults)}parser(e,t){return ir.parse(e,t??this.defaults)}parseMarkdown(e){return(t,r)=>{let n={...r},l={...this.defaults,...n},i=this.onError(!!l.silent,!!l.async);if(this.defaults.async===!0&&n.async===!1)return i(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||t===null)return i(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return i(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(l.hooks&&(l.hooks.options=l,l.hooks.block=e),l.async)return(async()=>{let o=l.hooks?await l.hooks.preprocess(t):t,a=await(l.hooks?await l.hooks.provideLexer():e?lr.lex:lr.lexInline)(o,l),s=l.hooks?await l.hooks.processAllTokens(a):a;l.walkTokens&&await Promise.all(this.walkTokens(s,l.walkTokens));let u=await(l.hooks?await l.hooks.provideParser():e?ir.parse:ir.parseInline)(s,l);return l.hooks?await l.hooks.postprocess(u):u})().catch(i);try{l.hooks&&(t=l.hooks.preprocess(t));let o=(l.hooks?l.hooks.provideLexer():e?lr.lex:lr.lexInline)(t,l);l.hooks&&(o=l.hooks.processAllTokens(o)),l.walkTokens&&this.walkTokens(o,l.walkTokens);let a=(l.hooks?l.hooks.provideParser():e?ir.parse:ir.parseInline)(o,l);return l.hooks&&(a=l.hooks.postprocess(a)),a}catch(o){return i(o)}}}onError(e,t){return r=>{if(r.message+=`
|
|
Please report this to https://github.com/markedjs/marked.`,e){let n="<p>An error occurred:</p><pre>"+kr(r.message+"",!0)+"</pre>";return t?Promise.resolve(n):n}if(t)return Promise.reject(r);throw r}}},Xr=new cy;function Be(e,t){return Xr.parse(e,t)}Be.options=Be.setOptions=function(e){return Xr.setOptions(e),Be.defaults=Xr.defaults,lp(Be.defaults),Be};Be.getDefaults=Oa;Be.defaults=nn;Be.use=function(...e){return Xr.use(...e),Be.defaults=Xr.defaults,lp(Be.defaults),Be};Be.walkTokens=function(e,t){return Xr.walkTokens(e,t)};Be.parseInline=Xr.parseInline;Be.Parser=ir;Be.parser=ir.parse;Be.Renderer=Vl;Be.TextRenderer=Fa;Be.Lexer=lr;Be.lexer=lr.lex;Be.Tokenizer=Wl;Be.Hooks=Zn;Be.parse=Be;Be.options;Be.setOptions;Be.use;Be.walkTokens;Be.parseInline;ir.parse;lr.lex;const fy=!0,ct="u-",py="uplot",hy=ct+"hz",dy=ct+"vt",my=ct+"title",gy=ct+"wrap",yy=ct+"under",vy=ct+"over",_y=ct+"axis",Zr=ct+"off",wy=ct+"select",by=ct+"cursor-x",ky=ct+"cursor-y",Sy=ct+"cursor-pt",xy=ct+"legend",$y=ct+"live",Ry=ct+"inline",Ey=ct+"series",Py=ct+"marker",nc=ct+"label",Ay=ct+"value",Qn="width",Jn="height",Yn="top",lc="bottom",yn="left",Mo="right",za="#000",ic=za+"0",Co="mousemove",oc="mousedown",Do="mouseup",ac="mouseenter",sc="mouseleave",uc="dblclick",Oy="resize",Ty="scroll",cc="change",jl="dppxchange",Ba="--",Mn=typeof window<"u",Qo=Mn?document:null,bn=Mn?window:null,My=Mn?navigator:null;let Ce,Pl;function Jo(){let e=devicePixelRatio;Ce!=e&&(Ce=e,Pl&&ea(cc,Pl,Jo),Pl=matchMedia(`(min-resolution: ${Ce-.001}dppx) and (max-resolution: ${Ce+.001}dppx)`),Qr(cc,Pl,Jo),bn.dispatchEvent(new CustomEvent(jl)))}function Bt(e,t){if(t!=null){let r=e.classList;!r.contains(t)&&r.add(t)}}function Xo(e,t){let r=e.classList;r.contains(t)&&r.remove(t)}function Ge(e,t,r){e.style[t]=r+"px"}function rr(e,t,r,n){let l=Qo.createElement(e);return t!=null&&Bt(l,t),r?.insertBefore(l,n),l}function Gt(e,t){return rr("div",e,t)}const fc=new WeakMap;function vr(e,t,r,n,l){let i="translate("+t+"px,"+r+"px)",o=fc.get(e);i!=o&&(e.style.transform=i,fc.set(e,i),t<0||r<0||t>n||r>l?Bt(e,Zr):Xo(e,Zr))}const pc=new WeakMap;function hc(e,t,r){let n=t+r,l=pc.get(e);n!=l&&(pc.set(e,n),e.style.background=t,e.style.borderColor=r)}const dc=new WeakMap;function mc(e,t,r,n){let l=t+""+r,i=dc.get(e);l!=i&&(dc.set(e,l),e.style.height=r+"px",e.style.width=t+"px",e.style.marginLeft=n?-t/2+"px":0,e.style.marginTop=n?-r/2+"px":0)}const Ha={passive:!0},Cy={...Ha,capture:!0};function Qr(e,t,r,n){t.addEventListener(e,r,n?Cy:Ha)}function ea(e,t,r,n){t.removeEventListener(e,r,Ha)}Mn&&Jo();function nr(e,t,r,n){let l;r=r||0,n=n||t.length-1;let i=n<=2147483647;for(;n-r>1;)l=i?r+n>>1:Ht((r+n)/2),t[l]<e?r=l:n=l;return e-t[r]<=t[n]-e?r:n}function mp(e){return(r,n,l)=>{let i=-1,o=-1;for(let a=n;a<=l;a++)if(e(r[a])){i=a;break}for(let a=l;a>=n;a--)if(e(r[a])){o=a;break}return[i,o]}}const gp=e=>e!=null,yp=e=>e!=null&&e>0,ri=mp(gp),Dy=mp(yp);function Ly(e,t,r,n=0,l=!1){let i=l?Dy:ri,o=l?yp:gp;[t,r]=i(e,t,r);let a=e[t],s=e[t];if(t>-1)if(n==1)a=e[t],s=e[r];else if(n==-1)a=e[r],s=e[t];else for(let u=t;u<=r;u++){let p=e[u];o(p)&&(p<a?a=p:p>s&&(s=p))}return[a??He,s??-He]}function ni(e,t,r,n){let l=vc(e),i=vc(t);e==t&&(l==-1?(e*=r,t/=r):(e/=r,t*=r));let o=r==10?$r:vp,a=l==1?Ht:Yt,s=i==1?Yt:Ht,u=a(o(ut(e))),p=s(o(ut(t))),f=xn(r,u),d=xn(r,p);return r==10&&(u<0&&(f=qe(f,-u)),p<0&&(d=qe(d,-p))),n||r==2?(e=f*l,t=d*i):(e=kp(e,f),t=li(t,d)),[e,t]}function qa(e,t,r,n){let l=ni(e,t,r,n);return e==0&&(l[0]=0),t==0&&(l[1]=0),l}const Ua=.1,gc={mode:3,pad:Ua},nl={pad:0,soft:null,mode:0},Iy={min:nl,max:nl};function Gl(e,t,r,n){return ii(r)?yc(e,t,r):(nl.pad=r,nl.soft=n?0:null,nl.mode=n?3:0,yc(e,t,Iy))}function Oe(e,t){return e??t}function Ny(e,t,r){for(t=Oe(t,0),r=Oe(r,e.length-1);t<=r;){if(e[t]!=null)return!0;t++}return!1}function yc(e,t,r){let n=r.min,l=r.max,i=Oe(n.pad,0),o=Oe(l.pad,0),a=Oe(n.hard,-He),s=Oe(l.hard,He),u=Oe(n.soft,He),p=Oe(l.soft,-He),f=Oe(n.mode,0),d=Oe(l.mode,0),k=t-e,m=$r(k),g=Et(ut(e),ut(t)),v=$r(g),R=ut(v-m);(k<1e-24||R>10)&&(k=0,(e==0||t==0)&&(k=1e-24,f==2&&u!=He&&(i=0),d==2&&p!=-He&&(o=0)));let w=k||g||1e3,O=$r(w),D=xn(10,Ht(O)),T=w*(k==0?e==0?.1:1:i),E=qe(kp(e-T,D/10),24),S=e>=u&&(f==1||f==3&&E<=u||f==2&&E>=u)?u:He,x=Et(a,E<S&&e>=S?S:or(S,E)),N=w*(k==0?t==0?.1:1:o),F=qe(li(t+N,D/10),24),A=t<=p&&(d==1||d==3&&F>=p||d==2&&F<=p)?p:-He,G=or(s,F>A&&t<=A?A:Et(A,F));return x==G&&x==0&&(G=100),[x,G]}const Fy=new Intl.NumberFormat(Mn?My.language:"en-US"),Wa=e=>Fy.format(e),qt=Math,zl=qt.PI,ut=qt.abs,Ht=qt.floor,st=qt.round,Yt=qt.ceil,or=qt.min,Et=qt.max,xn=qt.pow,vc=qt.sign,$r=qt.log10,vp=qt.log2,zy=(e,t=1)=>qt.sinh(e)*t,Lo=(e,t=1)=>qt.asinh(e/t),He=1/0;function _c(e){return($r((e^e>>31)-(e>>31))|0)+1}function ta(e,t,r){return or(Et(e,t),r)}function _p(e){return typeof e=="function"}function xe(e){return _p(e)?e:()=>e}const By=()=>{},wp=e=>e,bp=(e,t)=>t,Hy=e=>null,wc=e=>!0,bc=(e,t)=>e==t,qy=/\.\d*?(?=9{6,}|0{6,})/gm,en=e=>{if(xp(e)||Br.has(e))return e;const t=`${e}`,r=t.match(qy);if(r==null)return e;let n=r[0].length-1;if(t.indexOf("e-")!=-1){let[l,i]=t.split("e");return+`${en(l)}e${i}`}return qe(e,n)};function Gr(e,t){return en(qe(en(e/t))*t)}function li(e,t){return en(Yt(en(e/t))*t)}function kp(e,t){return en(Ht(en(e/t))*t)}function qe(e,t=0){if(xp(e))return e;let r=10**t,n=e*r*(1+Number.EPSILON);return st(n)/r}const Br=new Map;function Sp(e){return((""+e).split(".")[1]||"").length}function sl(e,t,r,n){let l=[],i=n.map(Sp);for(let o=t;o<r;o++){let a=ut(o),s=qe(xn(e,o),a);for(let u=0;u<n.length;u++){let p=e==10?+`${n[u]}e${o}`:n[u]*s,f=(o>=0?0:a)+(o>=i[u]?0:i[u]),d=e==10?p:qe(p,f);l.push(d),Br.set(d,f)}}return l}const ll={},Va=[],$n=[null,null],zr=Array.isArray,xp=Number.isInteger,Uy=e=>e===void 0;function kc(e){return typeof e=="string"}function ii(e){let t=!1;if(e!=null){let r=e.constructor;t=r==null||r==Object}return t}function Wy(e){return e!=null&&typeof e=="object"}const Vy=Object.getPrototypeOf(Uint8Array),$p="__proto__";function Rn(e,t=ii){let r;if(zr(e)){let n=e.find(l=>l!=null);if(zr(n)||t(n)){r=Array(e.length);for(let l=0;l<e.length;l++)r[l]=Rn(e[l],t)}else r=e.slice()}else if(e instanceof Vy)r=e.slice();else if(t(e)){r={};for(let n in e)n!=$p&&(r[n]=Rn(e[n],t))}else r=e;return r}function ot(e){let t=arguments;for(let r=1;r<t.length;r++){let n=t[r];for(let l in n)l!=$p&&(ii(e[l])?ot(e[l],Rn(n[l])):e[l]=Rn(n[l]))}return e}const jy=0,Gy=1,Yy=2;function Ky(e,t,r){for(let n=0,l,i=-1;n<t.length;n++){let o=t[n];if(o>i){for(l=o-1;l>=0&&e[l]==null;)e[l--]=null;for(l=o+1;l<r&&e[l]==null;)e[i=l++]=null}}}function Zy(e,t){if(Xy(e)){let o=e[0].slice();for(let a=1;a<e.length;a++)o.push(...e[a].slice(1));return ev(o[0])||(o=Jy(o)),o}let r=new Set;for(let o=0;o<e.length;o++){let s=e[o][0],u=s.length;for(let p=0;p<u;p++)r.add(s[p])}let n=[Array.from(r).sort((o,a)=>o-a)],l=n[0].length,i=new Map;for(let o=0;o<l;o++)i.set(n[0][o],o);for(let o=0;o<e.length;o++){let a=e[o],s=a[0];for(let u=1;u<a.length;u++){let p=a[u],f=Array(l).fill(void 0),d=t?t[o][u]:Gy,k=[];for(let m=0;m<p.length;m++){let g=p[m],v=i.get(s[m]);g===null?d!=jy&&(f[v]=g,d==Yy&&k.push(v)):f[v]=g}Ky(f,k,l),n.push(f)}}return n}const Qy=typeof queueMicrotask>"u"?e=>Promise.resolve().then(e):queueMicrotask;function Jy(e){let t=e[0],r=t.length,n=Array(r);for(let i=0;i<n.length;i++)n[i]=i;n.sort((i,o)=>t[i]-t[o]);let l=[];for(let i=0;i<e.length;i++){let o=e[i],a=Array(r);for(let s=0;s<r;s++)a[s]=o[n[s]];l.push(a)}return l}function Xy(e){let t=e[0][0],r=t.length;for(let n=1;n<e.length;n++){let l=e[n][0];if(l.length!=r)return!1;if(l!=t){for(let i=0;i<r;i++)if(l[i]!=t[i])return!1}}return!0}function ev(e,t=100){const r=e.length;if(r<=1)return!0;let n=0,l=r-1;for(;n<=l&&e[n]==null;)n++;for(;l>=n&&e[l]==null;)l--;if(l<=n)return!0;const i=Et(1,Ht((l-n+1)/t));for(let o=e[n],a=n+i;a<=l;a+=i){const s=e[a];if(s!=null){if(s<=o)return!1;o=s}}return!0}const Rp=["January","February","March","April","May","June","July","August","September","October","November","December"],Ep=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function Pp(e){return e.slice(0,3)}const tv=Ep.map(Pp),rv=Rp.map(Pp),nv={MMMM:Rp,MMM:rv,WWWW:Ep,WWW:tv};function Kn(e){return(e<10?"0":"")+e}function lv(e){return(e<10?"00":e<100?"0":"")+e}const iv={YYYY:e=>e.getFullYear(),YY:e=>(e.getFullYear()+"").slice(2),MMMM:(e,t)=>t.MMMM[e.getMonth()],MMM:(e,t)=>t.MMM[e.getMonth()],MM:e=>Kn(e.getMonth()+1),M:e=>e.getMonth()+1,DD:e=>Kn(e.getDate()),D:e=>e.getDate(),WWWW:(e,t)=>t.WWWW[e.getDay()],WWW:(e,t)=>t.WWW[e.getDay()],HH:e=>Kn(e.getHours()),H:e=>e.getHours(),h:e=>{let t=e.getHours();return t==0?12:t>12?t-12:t},AA:e=>e.getHours()>=12?"PM":"AM",aa:e=>e.getHours()>=12?"pm":"am",a:e=>e.getHours()>=12?"p":"a",mm:e=>Kn(e.getMinutes()),m:e=>e.getMinutes(),ss:e=>Kn(e.getSeconds()),s:e=>e.getSeconds(),fff:e=>lv(e.getMilliseconds())};function ja(e,t){t=t||nv;let r=[],n=/\{([a-z]+)\}|[^{]+/gi,l;for(;l=n.exec(e);)r.push(l[0][0]=="{"?iv[l[1]]:l[0]);return i=>{let o="";for(let a=0;a<r.length;a++)o+=typeof r[a]=="string"?r[a]:r[a](i,t);return o}}const ov=new Intl.DateTimeFormat().resolvedOptions().timeZone;function av(e,t){let r;return t=="UTC"||t=="Etc/UTC"?r=new Date(+e+e.getTimezoneOffset()*6e4):t==ov?r=e:(r=new Date(e.toLocaleString("en-US",{timeZone:t})),r.setMilliseconds(e.getMilliseconds())),r}const Ap=e=>e%1==0,Yl=[1,2,2.5,5],sv=sl(10,-32,0,Yl),Op=sl(10,0,32,Yl),uv=Op.filter(Ap),Yr=sv.concat(Op),Ga=`
|
|
`,Tp="{YYYY}",Sc=Ga+Tp,Mp="{M}/{D}",Xn=Ga+Mp,Al=Xn+"/{YY}",Cp="{aa}",cv="{h}:{mm}",vn=cv+Cp,xc=Ga+vn,$c=":{ss}",Ie=null;function Dp(e){let t=e*1e3,r=t*60,n=r*60,l=n*24,i=l*30,o=l*365,s=(e==1?sl(10,0,3,Yl).filter(Ap):sl(10,-3,0,Yl)).concat([t,t*5,t*10,t*15,t*30,r,r*5,r*10,r*15,r*30,n,n*2,n*3,n*4,n*6,n*8,n*12,l,l*2,l*3,l*4,l*5,l*6,l*7,l*8,l*9,l*10,l*15,i,i*2,i*3,i*4,i*6,o,o*2,o*5,o*10,o*25,o*50,o*100]);const u=[[o,Tp,Ie,Ie,Ie,Ie,Ie,Ie,1],[l*28,"{MMM}",Sc,Ie,Ie,Ie,Ie,Ie,1],[l,Mp,Sc,Ie,Ie,Ie,Ie,Ie,1],[n,"{h}"+Cp,Al,Ie,Xn,Ie,Ie,Ie,1],[r,vn,Al,Ie,Xn,Ie,Ie,Ie,1],[t,$c,Al+" "+vn,Ie,Xn+" "+vn,Ie,xc,Ie,1],[e,$c+".{fff}",Al+" "+vn,Ie,Xn+" "+vn,Ie,xc,Ie,1]];function p(f){return(d,k,m,g,v,R)=>{let w=[],O=v>=o,D=v>=i&&v<o,T=f(m),E=qe(T*e,3),S=Io(T.getFullYear(),O?0:T.getMonth(),D||O?1:T.getDate()),x=qe(S*e,3);if(D||O){let N=D?v/i:0,F=O?v/o:0,A=E==x?E:qe(Io(S.getFullYear()+F,S.getMonth()+N,1)*e,3),G=new Date(st(A/e)),j=G.getFullYear(),W=G.getMonth();for(let B=0;A<=g;B++){let z=Io(j+F*B,W+N*B,1),q=z-f(qe(z*e,3));A=qe((+z+q)*e,3),A<=g&&w.push(A)}}else{let N=v>=l?l:v,F=Ht(m)-Ht(E),A=x+F+li(E-x,N);w.push(A);let G=f(A),j=G.getHours()+G.getMinutes()/r+G.getSeconds()/n,W=v/n,B=d.axes[k]._space,z=R/B;for(;A=qe(A+v,e==1?0:3),!(A>g);)if(W>1){let q=Ht(qe(j+W,6))%24,M=f(A).getHours()-q;M>1&&(M=-1),A-=M*n,j=(j+W)%24;let V=w[w.length-1];qe((A-V)/v,3)*z>=.7&&w.push(A)}else w.push(A)}return w}}return[s,u,p]}const[fv,pv,hv]=Dp(1),[dv,mv,gv]=Dp(.001);sl(2,-53,53,[1]);function Rc(e,t){return e.map(r=>r.map((n,l)=>l==0||l==8||n==null?n:t(l==1||r[8]==0?n:r[1]+n)))}function Ec(e,t){return(r,n,l,i,o)=>{let a=t.find(m=>o>=m[0])||t[t.length-1],s,u,p,f,d,k;return n.map(m=>{let g=e(m),v=g.getFullYear(),R=g.getMonth(),w=g.getDate(),O=g.getHours(),D=g.getMinutes(),T=g.getSeconds(),E=v!=s&&a[2]||R!=u&&a[3]||w!=p&&a[4]||O!=f&&a[5]||D!=d&&a[6]||T!=k&&a[7]||a[1];return s=v,u=R,p=w,f=O,d=D,k=T,E(g)})}}function yv(e,t){let r=ja(t);return(n,l,i,o,a)=>l.map(s=>r(e(s)))}function Io(e,t,r){return new Date(e,t,r)}function Pc(e,t){return t(e)}const vv="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function Ac(e,t){return(r,n,l,i)=>i==null?Ba:t(e(n))}function _v(e,t){let r=e.series[t];return r.width?r.stroke(e,t):r.points.width?r.points.stroke(e,t):null}function wv(e,t){return e.series[t].fill(e,t)}const bv={show:!0,live:!0,isolate:!1,mount:By,markers:{show:!0,width:2,stroke:_v,fill:wv,dash:"solid"},idx:null,idxs:null,values:[]};function kv(e,t){let r=e.cursor.points,n=Gt(),l=r.size(e,t);Ge(n,Qn,l),Ge(n,Jn,l);let i=l/-2;Ge(n,"marginLeft",i),Ge(n,"marginTop",i);let o=r.width(e,t,l);return o&&Ge(n,"borderWidth",o),n}function Sv(e,t){let r=e.series[t].points;return r._fill||r._stroke}function xv(e,t){let r=e.series[t].points;return r._stroke||r._fill}function $v(e,t){return e.series[t].points.size}const No=[0,0];function Rv(e,t,r){return No[0]=t,No[1]=r,No}function Ol(e,t,r,n=!0){return l=>{l.button==0&&(!n||l.target==t)&&r(l)}}function Fo(e,t,r,n=!0){return l=>{(!n||l.target==t)&&r(l)}}const Ev={show:!0,x:!0,y:!0,lock:!1,move:Rv,points:{one:!1,show:kv,size:$v,width:0,stroke:xv,fill:Sv},bind:{mousedown:Ol,mouseup:Ol,click:Ol,dblclick:Ol,mousemove:Fo,mouseleave:Fo,mouseenter:Fo},drag:{setScale:!0,x:!0,y:!1,dist:0,uni:null,click:(e,t)=>{t.stopPropagation(),t.stopImmediatePropagation()},_x:!1,_y:!1},focus:{dist:(e,t,r,n,l)=>n-l,prox:-1,bias:0},hover:{skip:[void 0],prox:null,bias:0},left:-10,top:-10,idx:null,dataIdx:null,idxs:null,event:null},Lp={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},Ya=ot({},Lp,{filter:bp}),Ip=ot({},Ya,{size:10}),Np=ot({},Lp,{show:!1}),Ka='12px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',Fp="bold "+Ka,zp=1.5,Oc={show:!0,scale:"x",stroke:za,space:50,gap:5,alignTo:1,size:50,labelGap:0,labelSize:30,labelFont:Fp,side:2,grid:Ya,ticks:Ip,border:Np,font:Ka,lineGap:zp,rotate:0},Pv="Value",Av="Time",Tc={show:!0,scale:"x",auto:!1,sorted:1,min:He,max:-He,idxs:[]};function Ov(e,t,r,n,l){return t.map(i=>i==null?"":Wa(i))}function Tv(e,t,r,n,l,i,o){let a=[],s=Br.get(l)||0;r=o?r:qe(li(r,l),s);for(let u=r;u<=n;u=qe(u+l,s))a.push(Object.is(u,-0)?0:u);return a}function ra(e,t,r,n,l,i,o){const a=[],s=e.scales[e.axes[t].scale].log,u=s==10?$r:vp,p=Ht(u(r));l=xn(s,p),s==10&&(l=Yr[nr(l,Yr)]);let f=r,d=l*s;s==10&&(d=Yr[nr(d,Yr)]);do a.push(f),f=f+l,s==10&&!Br.has(f)&&(f=qe(f,Br.get(l))),f>=d&&(l=f,d=l*s,s==10&&(d=Yr[nr(d,Yr)]));while(f<=n);return a}function Mv(e,t,r,n,l,i,o){let s=e.scales[e.axes[t].scale].asinh,u=n>s?ra(e,t,Et(s,r),n,l):[s],p=n>=0&&r<=0?[0]:[];return(r<-s?ra(e,t,Et(s,-n),-r,l):[s]).reverse().map(d=>-d).concat(p,u)}const Bp=/./,Cv=/[12357]/,Dv=/[125]/,Mc=/1/,na=(e,t,r,n)=>e.map((l,i)=>t==4&&l==0||i%n==0&&r.test(l.toExponential()[l<0?1:0])?l:null);function Lv(e,t,r,n,l){let i=e.axes[r],o=i.scale,a=e.scales[o],s=e.valToPos,u=i._space,p=s(10,o),f=s(9,o)-p>=u?Bp:s(7,o)-p>=u?Cv:s(5,o)-p>=u?Dv:Mc;if(f==Mc){let d=ut(s(1,o)-p);if(d<u)return na(t.slice().reverse(),a.distr,f,Yt(u/d)).reverse()}return na(t,a.distr,f,1)}function Iv(e,t,r,n,l){let i=e.axes[r],o=i.scale,a=i._space,s=e.valToPos,u=ut(s(1,o)-s(2,o));return u<a?na(t.slice().reverse(),3,Bp,Yt(a/u)).reverse():t}function Nv(e,t,r,n){return n==null?Ba:t==null?"":Wa(t)}const Cc={show:!0,scale:"y",stroke:za,space:30,gap:5,alignTo:1,size:50,labelGap:0,labelSize:30,labelFont:Fp,side:3,grid:Ya,ticks:Ip,border:Np,font:Ka,lineGap:zp,rotate:0};function Fv(e,t){let r=3+(e||1)*2;return qe(r*t,3)}function zv(e,t){let{scale:r,idxs:n}=e.series[0],l=e._data[0],i=e.valToPos(l[n[0]],r,!0),o=e.valToPos(l[n[1]],r,!0),a=ut(o-i),s=e.series[t],u=a/(s.points.space*Ce);return n[1]-n[0]<=u}const Dc={scale:null,auto:!0,sorted:0,min:He,max:-He},Hp=(e,t,r,n,l)=>l,Lc={show:!0,auto:!0,sorted:0,gaps:Hp,alpha:1,facets:[ot({},Dc,{scale:"x"}),ot({},Dc,{scale:"y"})]},Ic={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:Hp,alpha:1,points:{show:zv,filter:null},values:null,min:He,max:-He,idxs:[],path:null,clip:null};function Bv(e,t,r,n,l){return r/10}const qp={time:fy,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},Hv=ot({},qp,{time:!1,ori:1}),Nc={};function Up(e,t){let r=Nc[e];return r||(r={key:e,plots:[],sub(n){r.plots.push(n)},unsub(n){r.plots=r.plots.filter(l=>l!=n)},pub(n,l,i,o,a,s,u){for(let p=0;p<r.plots.length;p++)r.plots[p]!=l&&r.plots[p].pub(n,l,i,o,a,s,u)}},e!=null&&(Nc[e]=r)),r}const En=1,la=2;function ln(e,t,r){const n=e.mode,l=e.series[t],i=n==2?e._data[t]:e._data,o=e.scales,a=e.bbox;let s=i[0],u=n==2?i[1]:i[t],p=n==2?o[l.facets[0].scale]:o[e.series[0].scale],f=n==2?o[l.facets[1].scale]:o[l.scale],d=a.left,k=a.top,m=a.width,g=a.height,v=e.valToPosH,R=e.valToPosV;return p.ori==0?r(l,s,u,p,f,v,R,d,k,m,g,ai,Cn,ui,Vp,Gp):r(l,s,u,p,f,R,v,k,d,g,m,si,Dn,Ja,jp,Yp)}function Za(e,t){let r=0,n=0,l=Oe(e.bands,Va);for(let i=0;i<l.length;i++){let o=l[i];o.series[0]==t?r=o.dir:o.series[1]==t&&(o.dir==1?n|=1:n|=2)}return[r,n==1?-1:n==2?1:n==3?2:0]}function qv(e,t,r,n,l){let i=e.mode,o=e.series[t],a=i==2?o.facets[1].scale:o.scale,s=e.scales[a];return l==-1?s.min:l==1?s.max:s.distr==3?s.dir==1?s.min:s.max:0}function Rr(e,t,r,n,l,i){return ln(e,t,(o,a,s,u,p,f,d,k,m,g,v)=>{let R=o.pxRound;const w=u.dir*(u.ori==0?1:-1),O=u.ori==0?Cn:Dn;let D,T;w==1?(D=r,T=n):(D=n,T=r);let E=R(f(a[D],u,g,k)),S=R(d(s[D],p,v,m)),x=R(f(a[T],u,g,k)),N=R(d(i==1?p.max:p.min,p,v,m)),F=new Path2D(l);return O(F,x,N),O(F,E,N),O(F,E,S),F})}function oi(e,t,r,n,l,i){let o=null;if(e.length>0){o=new Path2D;const a=t==0?ui:Ja;let s=r;for(let f=0;f<e.length;f++){let d=e[f];if(d[1]>d[0]){let k=d[0]-s;k>0&&a(o,s,n,k,n+i),s=d[1]}}let u=r+l-s,p=10;u>0&&a(o,s,n-p/2,u,n+i+p)}return o}function Uv(e,t,r){let n=e[e.length-1];n&&n[0]==t?n[1]=r:e.push([t,r])}function Qa(e,t,r,n,l,i,o){let a=[],s=e.length;for(let u=l==1?r:n;u>=r&&u<=n;u+=l)if(t[u]===null){let f=u,d=u;if(l==1)for(;++u<=n&&t[u]===null;)d=u;else for(;--u>=r&&t[u]===null;)d=u;let k=i(e[f]),m=d==f?k:i(e[d]),g=f-l;k=o<=0&&g>=0&&g<s?i(e[g]):k;let R=d+l;m=o>=0&&R>=0&&R<s?i(e[R]):m,m>=k&&a.push([k,m])}return a}function Fc(e){return e==0?wp:e==1?st:t=>Gr(t,e)}function Wp(e){let t=e==0?ai:si,r=e==0?(l,i,o,a,s,u)=>{l.arcTo(i,o,a,s,u)}:(l,i,o,a,s,u)=>{l.arcTo(o,i,s,a,u)},n=e==0?(l,i,o,a,s)=>{l.rect(i,o,a,s)}:(l,i,o,a,s)=>{l.rect(o,i,s,a)};return(l,i,o,a,s,u=0,p=0)=>{u==0&&p==0?n(l,i,o,a,s):(u=or(u,a/2,s/2),p=or(p,a/2,s/2),t(l,i+u,o),r(l,i+a,o,i+a,o+s,u),r(l,i+a,o+s,i,o+s,p),r(l,i,o+s,i,o,p),r(l,i,o,i+a,o,u),l.closePath())}}const ai=(e,t,r)=>{e.moveTo(t,r)},si=(e,t,r)=>{e.moveTo(r,t)},Cn=(e,t,r)=>{e.lineTo(t,r)},Dn=(e,t,r)=>{e.lineTo(r,t)},ui=Wp(0),Ja=Wp(1),Vp=(e,t,r,n,l,i)=>{e.arc(t,r,n,l,i)},jp=(e,t,r,n,l,i)=>{e.arc(r,t,n,l,i)},Gp=(e,t,r,n,l,i,o)=>{e.bezierCurveTo(t,r,n,l,i,o)},Yp=(e,t,r,n,l,i,o)=>{e.bezierCurveTo(r,t,l,n,o,i)};function Kp(e){return(t,r,n,l,i)=>ln(t,r,(o,a,s,u,p,f,d,k,m,g,v)=>{let{pxRound:R,points:w}=o,O,D;u.ori==0?(O=ai,D=Vp):(O=si,D=jp);const T=qe(w.width*Ce,3);let E=(w.size-w.width)/2*Ce,S=qe(E*2,3),x=new Path2D,N=new Path2D,{left:F,top:A,width:G,height:j}=t.bbox;ui(N,F-S,A-S,G+S*2,j+S*2);const W=B=>{if(s[B]!=null){let z=R(f(a[B],u,g,k)),q=R(d(s[B],p,v,m));O(x,z+E,q),D(x,z,q,E,0,zl*2)}};if(i)i.forEach(W);else for(let B=n;B<=l;B++)W(B);return{stroke:T>0?x:null,fill:x,clip:N,flags:En|la}})}function Zp(e){return(t,r,n,l,i,o)=>{n!=l&&(i!=n&&o!=n&&e(t,r,n),i!=l&&o!=l&&e(t,r,l),e(t,r,o))}}const Wv=Zp(Cn),Vv=Zp(Dn);function Qp(e){const t=Oe(e?.alignGaps,0);return(r,n,l,i)=>ln(r,n,(o,a,s,u,p,f,d,k,m,g,v)=>{[l,i]=ri(s,l,i);let R=o.pxRound,w=j=>R(f(j,u,g,k)),O=j=>R(d(j,p,v,m)),D,T;u.ori==0?(D=Cn,T=Wv):(D=Dn,T=Vv);const E=u.dir*(u.ori==0?1:-1),S={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:En},x=S.stroke;let N=!1;if(i-l>=g*4){let j=y=>r.posToVal(y,u.key,!0),W=null,B=null,z,q,L,$=w(a[E==1?l:i]),M=w(a[l]),V=w(a[i]),C=j(E==1?M+1:V-1);for(let y=E==1?l:i;y>=l&&y<=i;y+=E){let Q=a[y],se=(E==1?Q<C:Q>C)?$:w(Q),K=s[y];se==$?K!=null?(q=K,W==null?(D(x,se,O(q)),z=W=B=q):q<W?W=q:q>B&&(B=q)):K===null&&(N=!0):(W!=null&&T(x,$,O(W),O(B),O(z),O(q)),K!=null?(q=K,D(x,se,O(q)),W=B=z=q):(W=B=null,K===null&&(N=!0)),$=se,C=j($+E))}W!=null&&W!=B&&L!=$&&T(x,$,O(W),O(B),O(z),O(q))}else for(let j=E==1?l:i;j>=l&&j<=i;j+=E){let W=s[j];W===null?N=!0:W!=null&&D(x,w(a[j]),O(W))}let[A,G]=Za(r,n);if(o.fill!=null||A!=0){let j=S.fill=new Path2D(x),W=o.fillTo(r,n,o.min,o.max,A),B=O(W),z=w(a[l]),q=w(a[i]);E==-1&&([q,z]=[z,q]),D(j,q,B),D(j,z,B)}if(!o.spanGaps){let j=[];N&&j.push(...Qa(a,s,l,i,E,w,t)),S.gaps=j=o.gaps(r,n,l,i,j),S.clip=oi(j,u.ori,k,m,g,v)}return G!=0&&(S.band=G==2?[Rr(r,n,l,i,x,-1),Rr(r,n,l,i,x,1)]:Rr(r,n,l,i,x,G)),S})}function jv(e){const t=Oe(e.align,1),r=Oe(e.ascDesc,!1),n=Oe(e.alignGaps,0),l=Oe(e.extend,!1);return(i,o,a,s)=>ln(i,o,(u,p,f,d,k,m,g,v,R,w,O)=>{[a,s]=ri(f,a,s);let D=u.pxRound,{left:T,width:E}=i.bbox,S=M=>D(m(M,d,w,v)),x=M=>D(g(M,k,O,R)),N=d.ori==0?Cn:Dn;const F={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:En},A=F.stroke,G=d.dir*(d.ori==0?1:-1);let j=x(f[G==1?a:s]),W=S(p[G==1?a:s]),B=W,z=W;l&&t==-1&&(z=T,N(A,z,j)),N(A,W,j);for(let M=G==1?a:s;M>=a&&M<=s;M+=G){let V=f[M];if(V==null)continue;let C=S(p[M]),y=x(V);t==1?N(A,C,j):N(A,B,y),N(A,C,y),j=y,B=C}let q=B;l&&t==1&&(q=T+E,N(A,q,j));let[L,$]=Za(i,o);if(u.fill!=null||L!=0){let M=F.fill=new Path2D(A),V=u.fillTo(i,o,u.min,u.max,L),C=x(V);N(M,q,C),N(M,z,C)}if(!u.spanGaps){let M=[];M.push(...Qa(p,f,a,s,G,S,n));let V=u.width*Ce/2,C=r||t==1?V:-V,y=r||t==-1?-V:V;M.forEach(Q=>{Q[0]+=C,Q[1]+=y}),F.gaps=M=u.gaps(i,o,a,s,M),F.clip=oi(M,d.ori,v,R,w,O)}return $!=0&&(F.band=$==2?[Rr(i,o,a,s,A,-1),Rr(i,o,a,s,A,1)]:Rr(i,o,a,s,A,$)),F})}function zc(e,t,r,n,l,i,o=He){if(e.length>1){let a=null;for(let s=0,u=1/0;s<e.length;s++)if(t[s]!==void 0){if(a!=null){let p=ut(e[s]-e[a]);p<u&&(u=p,o=ut(r(e[s],n,l,i)-r(e[a],n,l,i)))}a=s}}return o}function Gv(e){e=e||ll;const t=Oe(e.size,[.6,He,1]),r=e.align||0,n=e.gap||0;let l=e.radius;l=l==null?[0,0]:typeof l=="number"?[l,0]:l;const i=xe(l),o=1-t[0],a=Oe(t[1],He),s=Oe(t[2],1),u=Oe(e.disp,ll),p=Oe(e.each,k=>{}),{fill:f,stroke:d}=u;return(k,m,g,v)=>ln(k,m,(R,w,O,D,T,E,S,x,N,F,A)=>{let G=R.pxRound,j=r,W=n*Ce,B=a*Ce,z=s*Ce,q,L;D.ori==0?[q,L]=i(k,m):[L,q]=i(k,m);const $=D.dir*(D.ori==0?1:-1);let M=D.ori==0?ui:Ja,V=D.ori==0?p:(ie,Fe,Je,Cr,Dt,Ot,ar)=>{p(ie,Fe,Je,Dt,Cr,ar,Ot)},C=Oe(k.bands,Va).find(ie=>ie.series[0]==m),y=C!=null?C.dir:0,Q=R.fillTo(k,m,R.min,R.max,y),ae=G(S(Q,T,A,N)),se,K,ne,te=F,J=G(R.width*Ce),le=!1,ce=null,X=null,fe=null,ye=null;f!=null&&(J==0||d!=null)&&(le=!0,ce=f.values(k,m,g,v),X=new Map,new Set(ce).forEach(ie=>{ie!=null&&X.set(ie,new Path2D)}),J>0&&(fe=d.values(k,m,g,v),ye=new Map,new Set(fe).forEach(ie=>{ie!=null&&ye.set(ie,new Path2D)})));let{x0:de,size:_e}=u;if(de!=null&&_e!=null){j=1,w=de.values(k,m,g,v),de.unit==2&&(w=w.map(Je=>k.posToVal(x+Je*F,D.key,!0)));let ie=_e.values(k,m,g,v);_e.unit==2?K=ie[0]*F:K=E(ie[0],D,F,x)-E(0,D,F,x),te=zc(w,O,E,D,F,x,te),ne=te-K+W}else te=zc(w,O,E,D,F,x,te),ne=te*o+W,K=te-ne;ne<1&&(ne=0),J>=K/2&&(J=0),ne<5&&(G=wp);let Ee=ne>0,De=te-ne-(Ee?J:0);K=G(ta(De,z,B)),se=(j==0?K/2:j==$?0:K)-j*$*((j==0?W/2:0)+(Ee?J/2:0));const Pe={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:0},Ke=le?null:new Path2D;let Ne=null;if(C!=null)Ne=k.data[C.series[1]];else{let{y0:ie,y1:Fe}=u;ie!=null&&Fe!=null&&(O=Fe.values(k,m,g,v),Ne=ie.values(k,m,g,v))}let rt=q*K,he=L*K;for(let ie=$==1?g:v;ie>=g&&ie<=v;ie+=$){let Fe=O[ie];if(Fe==null)continue;if(Ne!=null){let ft=Ne[ie]??0;if(Fe-ft==0)continue;ae=S(ft,T,A,N)}let Je=D.distr!=2||u!=null?w[ie]:ie,Cr=E(Je,D,F,x),Dt=S(Oe(Fe,Q),T,A,N),Ot=G(Cr-se),ar=G(Et(Dt,ae)),_t=G(or(Dt,ae)),Tt=ar-_t;if(Fe!=null){let ft=Fe<0?he:rt,vt=Fe<0?rt:he;le?(J>0&&fe[ie]!=null&&M(ye.get(fe[ie]),Ot,_t+Ht(J/2),K,Et(0,Tt-J),ft,vt),ce[ie]!=null&&M(X.get(ce[ie]),Ot,_t+Ht(J/2),K,Et(0,Tt-J),ft,vt)):M(Ke,Ot,_t+Ht(J/2),K,Et(0,Tt-J),ft,vt),V(k,m,ie,Ot-J/2,_t,K+J,Tt)}}return J>0?Pe.stroke=le?ye:Ke:le||(Pe._fill=R.width==0?R._fill:R._stroke??R._fill,Pe.width=0),Pe.fill=le?X:Ke,Pe})}function Yv(e,t){const r=Oe(t?.alignGaps,0);return(n,l,i,o)=>ln(n,l,(a,s,u,p,f,d,k,m,g,v,R)=>{[i,o]=ri(u,i,o);let w=a.pxRound,O=q=>w(d(q,p,v,m)),D=q=>w(k(q,f,R,g)),T,E,S;p.ori==0?(T=ai,S=Cn,E=Gp):(T=si,S=Dn,E=Yp);const x=p.dir*(p.ori==0?1:-1);let N=O(s[x==1?i:o]),F=N,A=[],G=[];for(let q=x==1?i:o;q>=i&&q<=o;q+=x)if(u[q]!=null){let $=s[q],M=O($);A.push(F=M),G.push(D(u[q]))}const j={stroke:e(A,G,T,S,E,w),fill:null,clip:null,band:null,gaps:null,flags:En},W=j.stroke;let[B,z]=Za(n,l);if(a.fill!=null||B!=0){let q=j.fill=new Path2D(W),L=a.fillTo(n,l,a.min,a.max,B),$=D(L);S(q,F,$),S(q,N,$)}if(!a.spanGaps){let q=[];q.push(...Qa(s,u,i,o,x,O,r)),j.gaps=q=a.gaps(n,l,i,o,q),j.clip=oi(q,p.ori,m,g,v,R)}return z!=0&&(j.band=z==2?[Rr(n,l,i,o,W,-1),Rr(n,l,i,o,W,1)]:Rr(n,l,i,o,W,z)),j})}function Kv(e){return Yv(Zv,e)}function Zv(e,t,r,n,l,i){const o=e.length;if(o<2)return null;const a=new Path2D;if(r(a,e[0],t[0]),o==2)n(a,e[1],t[1]);else{let s=Array(o),u=Array(o-1),p=Array(o-1),f=Array(o-1);for(let d=0;d<o-1;d++)p[d]=t[d+1]-t[d],f[d]=e[d+1]-e[d],u[d]=p[d]/f[d];s[0]=u[0];for(let d=1;d<o-1;d++)u[d]===0||u[d-1]===0||u[d-1]>0!=u[d]>0?s[d]=0:(s[d]=3*(f[d-1]+f[d])/((2*f[d]+f[d-1])/u[d-1]+(f[d]+2*f[d-1])/u[d]),isFinite(s[d])||(s[d]=0));s[o-1]=u[o-2];for(let d=0;d<o-1;d++)l(a,e[d]+f[d]/3,t[d]+s[d]*f[d]/3,e[d+1]-f[d]/3,t[d+1]-s[d+1]*f[d]/3,e[d+1],t[d+1])}return a}const ia=new Set;function Bc(){for(let e of ia)e.syncRect(!0)}Mn&&(Qr(Oy,bn,Bc),Qr(Ty,bn,Bc,!0),Qr(jl,bn,()=>{Pt.pxRatio=Ce}));const Qv=Qp(),Jv=Kp();function Hc(e,t,r,n){return(n?[e[0],e[1]].concat(e.slice(2)):[e[0]].concat(e.slice(1))).map((i,o)=>oa(i,o,t,r))}function Xv(e,t){return e.map((r,n)=>n==0?{}:ot({},t,r))}function oa(e,t,r,n){return ot({},t==0?r:n,e)}function Jp(e,t,r){return t==null?$n:[t,r]}const e_=Jp;function t_(e,t,r){return t==null?$n:Gl(t,r,Ua,!0)}function Xp(e,t,r,n){return t==null?$n:ni(t,r,e.scales[n].log,!1)}const r_=Xp;function eh(e,t,r,n){return t==null?$n:qa(t,r,e.scales[n].log,!1)}const n_=eh;function l_(e,t,r,n,l){let i=Et(_c(e),_c(t)),o=t-e,a=nr(l/n*o,r);do{let s=r[a],u=n*s/o;if(u>=l&&i+(s<5?Br.get(s):0)<=17)return[s,u]}while(++a<r.length);return[0,0]}function qc(e){let t,r;return e=e.replace(/(\d+)px/,(n,l)=>(t=st((r=+l)*Ce))+"px"),[e,t,r]}function i_(e){e.show&&[e.font,e.labelFont].forEach(t=>{let r=qe(t[2]*Ce,1);t[0]=t[0].replace(/[0-9.]+px/,r+"px"),t[1]=r})}function Pt(e,t,r){const n={mode:Oe(e.mode,1)},l=n.mode;function i(c,h,_,b){let P=h.valToPct(c);return b+_*(h.dir==-1?1-P:P)}function o(c,h,_,b){let P=h.valToPct(c);return b+_*(h.dir==-1?P:1-P)}function a(c,h,_,b){return h.ori==0?i(c,h,_,b):o(c,h,_,b)}n.valToPosH=i,n.valToPosV=o;let s=!1;n.status=0;const u=n.root=Gt(py);if(e.id!=null&&(u.id=e.id),Bt(u,e.class),e.title){let c=Gt(my,u);c.textContent=e.title}const p=rr("canvas"),f=n.ctx=p.getContext("2d"),d=Gt(gy,u);Qr("click",d,c=>{c.target===m&&(We!=pn||Ye!=hn)&&yt.click(n,c)},!0);const k=n.under=Gt(yy,d);d.appendChild(p);const m=n.over=Gt(vy,d);e=Rn(e);const g=+Oe(e.pxAlign,1),v=Fc(g);(e.plugins||[]).forEach(c=>{c.opts&&(e=c.opts(n,e)||e)});const R=e.ms||.001,w=n.series=l==1?Hc(e.series||[],Tc,Ic,!1):Xv(e.series||[null],Lc),O=n.axes=Hc(e.axes||[],Oc,Cc,!0),D=n.scales={},T=n.bands=e.bands||[];T.forEach(c=>{c.fill=xe(c.fill||null),c.dir=Oe(c.dir,-1)});const E=l==2?w[1].facets[0].scale:w[0].scale,S={axes:sh,series:nh},x=(e.drawOrder||["axes","series"]).map(c=>S[c]);function N(c){const h=c.distr==3?_=>$r(_>0?_:c.clamp(n,_,c.min,c.max,c.key)):c.distr==4?_=>Lo(_,c.asinh):c.distr==100?_=>c.fwd(_):_=>_;return _=>{let b=h(_),{_min:P,_max:I}=c,Y=I-P;return(b-P)/Y}}function F(c){let h=D[c];if(h==null){let _=(e.scales||ll)[c]||ll;if(_.from!=null){F(_.from);let b=ot({},D[_.from],_,{key:c});b.valToPct=N(b),D[c]=b}else{h=D[c]=ot({},c==E?qp:Hv,_),h.key=c;let b=h.time,P=h.range,I=zr(P);if((c!=E||l==2&&!b)&&(I&&(P[0]==null||P[1]==null)&&(P={min:P[0]==null?gc:{mode:1,hard:P[0],soft:P[0]},max:P[1]==null?gc:{mode:1,hard:P[1],soft:P[1]}},I=!1),!I&&ii(P))){let Y=P;P=(Z,ee,re)=>ee==null?$n:Gl(ee,re,Y)}h.range=xe(P||(b?e_:c==E?h.distr==3?r_:h.distr==4?n_:Jp:h.distr==3?Xp:h.distr==4?eh:t_)),h.auto=xe(I?!1:h.auto),h.clamp=xe(h.clamp||Bv),h._min=h._max=null,h.valToPct=N(h)}}}F("x"),F("y"),l==1&&w.forEach(c=>{F(c.scale)}),O.forEach(c=>{F(c.scale)});for(let c in e.scales)F(c);const A=D[E],G=A.distr;let j,W;A.ori==0?(Bt(u,hy),j=i,W=o):(Bt(u,dy),j=o,W=i);const B={};for(let c in D){let h=D[c];(h.min!=null||h.max!=null)&&(B[c]={min:h.min,max:h.max},h.min=h.max=null)}const z=e.tzDate||(c=>new Date(st(c/R))),q=e.fmtDate||ja,L=R==1?hv(z):gv(z),$=Ec(z,Rc(R==1?pv:mv,q)),M=Ac(z,Pc(vv,q)),V=[],C=n.legend=ot({},bv,e.legend),y=n.cursor=ot({},Ev,{drag:{y:l==2}},e.cursor),Q=C.show,ae=y.show,se=C.markers;C.idxs=V,se.width=xe(se.width),se.dash=xe(se.dash),se.stroke=xe(se.stroke),se.fill=xe(se.fill);let K,ne,te,J=[],le=[],ce,X=!1,fe={};if(C.live){const c=w[1]?w[1].values:null;X=c!=null,ce=X?c(n,1,0):{_:0};for(let h in ce)fe[h]=Ba}if(Q)if(K=rr("table",xy,u),te=rr("tbody",null,K),C.mount(n,K),X){ne=rr("thead",null,K,te);let c=rr("tr",null,ne);rr("th",null,c);for(var ye in ce)rr("th",nc,c).textContent=ye}else Bt(K,Ry),C.live&&Bt(K,$y);const de={show:!0},_e={show:!1};function Ee(c,h){if(h==0&&(X||!C.live||l==2))return $n;let _=[],b=rr("tr",Ey,te,te.childNodes[h]);Bt(b,c.class),c.show||Bt(b,Zr);let P=rr("th",null,b);if(se.show){let Z=Gt(Py,P);if(h>0){let ee=se.width(n,h);ee&&(Z.style.border=ee+"px "+se.dash(n,h)+" "+se.stroke(n,h)),Z.style.background=se.fill(n,h)}}let I=Gt(nc,P);c.label instanceof HTMLElement?I.appendChild(c.label):I.textContent=c.label,h>0&&(se.show||(I.style.color=c.width>0?se.stroke(n,h):se.fill(n,h)),Pe("click",P,Z=>{if(y._lock)return;cr(Z);let ee=w.indexOf(c);if((Z.ctrlKey||Z.metaKey)!=C.isolate){let re=w.some((oe,ue)=>ue>0&&ue!=ee&&oe.show);w.forEach((oe,ue)=>{ue>0&&dr(ue,re?ue==ee?de:_e:de,!0,it.setSeries)})}else dr(ee,{show:!c.show},!0,it.setSeries)},!1),Wt&&Pe(ac,P,Z=>{y._lock||(cr(Z),dr(w.indexOf(c),mn,!0,it.setSeries))},!1));for(var Y in ce){let Z=rr("td",Ay,b);Z.textContent="--",_.push(Z)}return[b,_]}const De=new Map;function Pe(c,h,_,b=!0){const P=De.get(h)||{},I=y.bind[c](n,h,_,b);I&&(Qr(c,h,P[c]=I),De.set(h,P))}function Ke(c,h,_){const b=De.get(h)||{};for(let P in b)(c==null||P==c)&&(ea(P,h,b[P]),delete b[P]);c==null&&De.delete(h)}let Ne=0,rt=0,he=0,ie=0,Fe=0,Je=0,Cr=Fe,Dt=Je,Ot=he,ar=ie,_t=0,Tt=0,ft=0,vt=0;n.bbox={};let H=!1,U=!1,ke=!1,$e=!1,Le=!1,me=!1;function Ut(c,h,_){(_||c!=n.width||h!=n.height)&&sr(c,h),sn(!1),ke=!0,U=!0,un()}function sr(c,h){n.width=Ne=he=c,n.height=rt=ie=h,Fe=Je=0,Dr(),Lt();let _=n.bbox;_t=_.left=Gr(Fe*Ce,.5),Tt=_.top=Gr(Je*Ce,.5),ft=_.width=Gr(he*Ce,.5),vt=_.height=Gr(ie*Ce,.5)}const wt=3;function ur(){let c=!1,h=0;for(;!c;){h++;let _=oh(h),b=ah(h);c=h==wt||_&&b,c||(sr(n.width,n.height),U=!0)}}function Ln({width:c,height:h}){Ut(c,h)}n.setSize=Ln;function Dr(){let c=!1,h=!1,_=!1,b=!1;O.forEach((P,I)=>{if(P.show&&P._show){let{side:Y,_size:Z}=P,ee=Y%2,re=P.label!=null?P.labelSize:0,oe=Z+re;oe>0&&(ee?(he-=oe,Y==3?(Fe+=oe,b=!0):_=!0):(ie-=oe,Y==0?(Je+=oe,c=!0):h=!0))}}),Jt[0]=c,Jt[1]=_,Jt[2]=h,Jt[3]=b,he-=bt[1]+bt[3],Fe+=bt[3],ie-=bt[2]+bt[0],Je+=bt[0]}function Lt(){let c=Fe+he,h=Je+ie,_=Fe,b=Je;function P(I,Y){switch(I){case 1:return c+=Y,c-Y;case 2:return h+=Y,h-Y;case 3:return _-=Y,_+Y;case 0:return b-=Y,b+Y}}O.forEach((I,Y)=>{if(I.show&&I._show){let Z=I.side;I._pos=P(Z,I._size),I.label!=null&&(I._lpos=P(Z,I.labelSize))}})}if(y.dataIdx==null){let c=y.hover,h=c.skip=new Set(c.skip??[]);h.add(void 0);let _=c.prox=xe(c.prox),b=c.bias??=0;y.dataIdx=(P,I,Y,Z)=>{if(I==0)return Y;let ee=Y,re=_(P,I,Y,Z)??He,oe=re>=0&&re<He,ue=A.ori==0?he:ie,ve=y.left,Me=t[0],Ae=t[I];if(h.has(Ae[Y])){ee=null;let Se=null,ge=null,pe;if(b==0||b==-1)for(pe=Y;Se==null&&pe-- >0;)h.has(Ae[pe])||(Se=pe);if(b==0||b==1)for(pe=Y;ge==null&&pe++<Ae.length;)h.has(Ae[pe])||(ge=pe);if(Se!=null||ge!=null)if(oe){let je=Se==null?-1/0:j(Me[Se],A,ue,0),et=ge==null?1/0:j(Me[ge],A,ue,0),mt=ve-je,ze=et-ve;mt<=ze?mt<=re&&(ee=Se):ze<=re&&(ee=ge)}else ee=ge==null?Se:Se==null?ge:Y-Se<=ge-Y?Se:ge}else oe&&ut(ve-j(Me[Y],A,ue,0))>re&&(ee=null);return ee}}const cr=c=>{y.event=c};y.idxs=V,y._lock=!1;let at=y.points;at.show=xe(at.show),at.size=xe(at.size),at.stroke=xe(at.stroke),at.width=xe(at.width),at.fill=xe(at.fill);const It=n.focus=ot({},e.focus||{alpha:.3},y.focus),Wt=It.prox>=0,fr=Wt&&at.one;let gt=[],pr=[],hr=[];function In(c,h){let _=at.show(n,h);if(_ instanceof HTMLElement)return Bt(_,Sy),Bt(_,c.class),vr(_,-10,-10,he,ie),m.insertBefore(_,gt[h]),_}function Nn(c,h){if(l==1||h>0){let _=l==1&&D[c.scale].time,b=c.value;c.value=_?kc(b)?Ac(z,Pc(b,q)):b||M:b||Nv,c.label=c.label||(_?Av:Pv)}if(fr||h>0){c.width=c.width==null?1:c.width,c.paths=c.paths||Qv||Hy,c.fillTo=xe(c.fillTo||qv),c.pxAlign=+Oe(c.pxAlign,g),c.pxRound=Fc(c.pxAlign),c.stroke=xe(c.stroke||null),c.fill=xe(c.fill||null),c._stroke=c._fill=c._paths=c._focus=null;let _=Fv(Et(1,c.width),1),b=c.points=ot({},{size:_,width:Et(1,_*.2),stroke:c.stroke,space:_*2,paths:Jv,_stroke:null,_fill:null},c.points);b.show=xe(b.show),b.filter=xe(b.filter),b.fill=xe(b.fill),b.stroke=xe(b.stroke),b.paths=xe(b.paths),b.pxAlign=c.pxAlign}if(Q){let _=Ee(c,h);J.splice(h,0,_[0]),le.splice(h,0,_[1]),C.values.push(null)}if(ae){V.splice(h,0,null);let _=null;fr?h==0&&(_=In(c,h)):h>0&&(_=In(c,h)),gt.splice(h,0,_),pr.splice(h,0,0),hr.splice(h,0,0)}dt("addSeries",h)}function Fn(c,h){h=h??w.length,c=l==1?oa(c,h,Tc,Ic):oa(c,h,{},Lc),w.splice(h,0,c),Nn(w[h],h)}n.addSeries=Fn;function gl(c){if(w.splice(c,1),Q){C.values.splice(c,1),le.splice(c,1);let h=J.splice(c,1)[0];Ke(null,h.firstChild),h.remove()}ae&&(V.splice(c,1),gt.splice(c,1)[0].remove(),pr.splice(c,1),hr.splice(c,1)),dt("delSeries",c)}n.delSeries=gl;const Jt=[!1,!1,!1,!1];function yl(c,h){if(c._show=c.show,c.show){let _=c.side%2,b=D[c.scale];b==null&&(c.scale=_?w[1].scale:E,b=D[c.scale]);let P=b.time;c.size=xe(c.size),c.space=xe(c.space),c.rotate=xe(c.rotate),zr(c.incrs)&&c.incrs.forEach(Y=>{!Br.has(Y)&&Br.set(Y,Sp(Y))}),c.incrs=xe(c.incrs||(b.distr==2?uv:P?R==1?fv:dv:Yr)),c.splits=xe(c.splits||(P&&b.distr==1?L:b.distr==3?ra:b.distr==4?Mv:Tv)),c.stroke=xe(c.stroke),c.grid.stroke=xe(c.grid.stroke),c.ticks.stroke=xe(c.ticks.stroke),c.border.stroke=xe(c.border.stroke);let I=c.values;c.values=zr(I)&&!zr(I[0])?xe(I):P?zr(I)?Ec(z,Rc(I,q)):kc(I)?yv(z,I):I||$:I||Ov,c.filter=xe(c.filter||(b.distr>=3&&b.log==10?Lv:b.distr==3&&b.log==2?Iv:bp)),c.font=qc(c.font),c.labelFont=qc(c.labelFont),c._size=c.size(n,null,h,0),c._space=c._rotate=c._incrs=c._found=c._splits=c._values=null,c._size>0&&(Jt[h]=!0,c._el=Gt(_y,d))}}function Ur(c,h,_,b){let[P,I,Y,Z]=_,ee=h%2,re=0;return ee==0&&(Z||I)&&(re=h==0&&!P||h==2&&!Y?st(Oc.size/3):0),ee==1&&(P||Y)&&(re=h==1&&!I||h==3&&!Z?st(Cc.size/2):0),re}const on=n.padding=(e.padding||[Ur,Ur,Ur,Ur]).map(c=>xe(Oe(c,Ur))),bt=n._padding=on.map((c,h)=>c(n,h,Jt,0));let Xe,lt=null,nt=null;const vl=l==1?w[0].idxs:null;let Xt=null,zn=!1;function Xa(c,h){if(t=c??[],n.data=n._data=t,l==2){Xe=0;for(let _=1;_<w.length;_++)Xe+=t[_][0].length}else{t.length==0&&(n.data=n._data=t=[[]]),Xt=t[0],Xe=Xt.length;let _=t;if(G==2){_=t.slice();let b=_[0]=Array(Xe);for(let P=0;P<Xe;P++)b[P]=P}n._data=t=_}if(sn(!0),dt("setData"),G==2&&(ke=!0),h!==!1){let _=A;_.auto(n,zn)?ci():Ir(E,_.min,_.max),$e=$e||y.left>=0,me=!0,un()}}n.setData=Xa;function ci(){zn=!0;let c,h;l==1&&(Xe>0?(lt=vl[0]=0,nt=vl[1]=Xe-1,c=t[0][lt],h=t[0][nt],G==2?(c=lt,h=nt):c==h&&(G==3?[c,h]=ni(c,c,A.log,!1):G==4?[c,h]=qa(c,c,A.log,!1):A.time?h=c+st(86400/R):[c,h]=Gl(c,h,Ua,!0))):(lt=vl[0]=c=null,nt=vl[1]=h=null)),Ir(E,c,h)}let _l,an,fi,pi,hi,di,mi,gi,yi,Mt;function es(c,h,_,b,P,I){c??=ic,_??=Va,b??="butt",P??=ic,I??="round",c!=_l&&(f.strokeStyle=_l=c),P!=an&&(f.fillStyle=an=P),h!=fi&&(f.lineWidth=fi=h),I!=hi&&(f.lineJoin=hi=I),b!=di&&(f.lineCap=di=b),_!=pi&&f.setLineDash(pi=_)}function ts(c,h,_,b){h!=an&&(f.fillStyle=an=h),c!=mi&&(f.font=mi=c),_!=gi&&(f.textAlign=gi=_),b!=yi&&(f.textBaseline=yi=b)}function vi(c,h,_,b,P=0){if(b.length>0&&c.auto(n,zn)&&(h==null||h.min==null)){let I=Oe(lt,0),Y=Oe(nt,b.length-1),Z=_.min==null?Ly(b,I,Y,P,c.distr==3):[_.min,_.max];c.min=or(c.min,_.min=Z[0]),c.max=Et(c.max,_.max=Z[1])}}const rs={min:null,max:null};function th(){for(let b in D){let P=D[b];B[b]==null&&(P.min==null||B[E]!=null&&P.auto(n,zn))&&(B[b]=rs)}for(let b in D){let P=D[b];B[b]==null&&P.from!=null&&B[P.from]!=null&&(B[b]=rs)}B[E]!=null&&sn(!0);let c={};for(let b in B){let P=B[b];if(P!=null){let I=c[b]=Rn(D[b],Wy);if(P.min!=null)ot(I,P);else if(b!=E||l==2)if(Xe==0&&I.from==null){let Y=I.range(n,null,null,b);I.min=Y[0],I.max=Y[1]}else I.min=He,I.max=-He}}if(Xe>0){w.forEach((b,P)=>{if(l==1){let I=b.scale,Y=B[I];if(Y==null)return;let Z=c[I];if(P==0){let ee=Z.range(n,Z.min,Z.max,I);Z.min=ee[0],Z.max=ee[1],lt=nr(Z.min,t[0]),nt=nr(Z.max,t[0]),nt-lt>1&&(t[0][lt]<Z.min&<++,t[0][nt]>Z.max&&nt--),b.min=Xt[lt],b.max=Xt[nt]}else b.show&&b.auto&&vi(Z,Y,b,t[P],b.sorted);b.idxs[0]=lt,b.idxs[1]=nt}else if(P>0&&b.show&&b.auto){let[I,Y]=b.facets,Z=I.scale,ee=Y.scale,[re,oe]=t[P],ue=c[Z],ve=c[ee];ue!=null&&vi(ue,B[Z],I,re,I.sorted),ve!=null&&vi(ve,B[ee],Y,oe,Y.sorted),b.min=Y.min,b.max=Y.max}});for(let b in c){let P=c[b],I=B[b];if(P.from==null&&(I==null||I.min==null)){let Y=P.range(n,P.min==He?null:P.min,P.max==-He?null:P.max,b);P.min=Y[0],P.max=Y[1]}}}for(let b in c){let P=c[b];if(P.from!=null){let I=c[P.from];if(I.min==null)P.min=P.max=null;else{let Y=P.range(n,I.min,I.max,b);P.min=Y[0],P.max=Y[1]}}}let h={},_=!1;for(let b in c){let P=c[b],I=D[b];if(I.min!=P.min||I.max!=P.max){I.min=P.min,I.max=P.max;let Y=I.distr;I._min=Y==3?$r(I.min):Y==4?Lo(I.min,I.asinh):Y==100?I.fwd(I.min):I.min,I._max=Y==3?$r(I.max):Y==4?Lo(I.max,I.asinh):Y==100?I.fwd(I.max):I.max,h[b]=_=!0}}if(_){w.forEach((b,P)=>{l==2?P>0&&h.y&&(b._paths=null):h[b.scale]&&(b._paths=null)});for(let b in h)ke=!0,dt("setScale",b);ae&&y.left>=0&&($e=me=!0)}for(let b in B)B[b]=null}function rh(c){let h=ta(lt-1,0,Xe-1),_=ta(nt+1,0,Xe-1);for(;c[h]==null&&h>0;)h--;for(;c[_]==null&&_<Xe-1;)_++;return[h,_]}function nh(){if(Xe>0){let c=w.some(h=>h._focus)&&Mt!=It.alpha;c&&(f.globalAlpha=Mt=It.alpha),w.forEach((h,_)=>{if(_>0&&h.show&&(ns(_,!1),ns(_,!0),h._paths==null)){let b=Mt;Mt!=h.alpha&&(f.globalAlpha=Mt=h.alpha);let P=l==2?[0,t[_][0].length-1]:rh(t[_]);h._paths=h.paths(n,_,P[0],P[1]),Mt!=b&&(f.globalAlpha=Mt=b)}}),w.forEach((h,_)=>{if(_>0&&h.show){let b=Mt;Mt!=h.alpha&&(f.globalAlpha=Mt=h.alpha),h._paths!=null&&ls(_,!1);{let P=h._paths!=null?h._paths.gaps:null,I=h.points.show(n,_,lt,nt,P),Y=h.points.filter(n,_,I,P);(I||Y)&&(h.points._paths=h.points.paths(n,_,lt,nt,Y),ls(_,!0))}Mt!=b&&(f.globalAlpha=Mt=b),dt("drawSeries",_)}}),c&&(f.globalAlpha=Mt=1)}}function ns(c,h){let _=h?w[c].points:w[c];_._stroke=_.stroke(n,c),_._fill=_.fill(n,c)}function ls(c,h){let _=h?w[c].points:w[c],{stroke:b,fill:P,clip:I,flags:Y,_stroke:Z=_._stroke,_fill:ee=_._fill,_width:re=_.width}=_._paths;re=qe(re*Ce,3);let oe=null,ue=re%2/2;h&&ee==null&&(ee=re>0?"#fff":Z);let ve=_.pxAlign==1&&ue>0;if(ve&&f.translate(ue,ue),!h){let Me=_t-re/2,Ae=Tt-re/2,Se=ft+re,ge=vt+re;oe=new Path2D,oe.rect(Me,Ae,Se,ge)}h?_i(Z,re,_.dash,_.cap,ee,b,P,Y,I):lh(c,Z,re,_.dash,_.cap,ee,b,P,Y,oe,I),ve&&f.translate(-ue,-ue)}function lh(c,h,_,b,P,I,Y,Z,ee,re,oe){let ue=!1;ee!=0&&T.forEach((ve,Me)=>{if(ve.series[0]==c){let Ae=w[ve.series[1]],Se=t[ve.series[1]],ge=(Ae._paths||ll).band;zr(ge)&&(ge=ve.dir==1?ge[0]:ge[1]);let pe,je=null;Ae.show&&ge&&Ny(Se,lt,nt)?(je=ve.fill(n,Me)||I,pe=Ae._paths.clip):ge=null,_i(h,_,b,P,je,Y,Z,ee,re,oe,pe,ge),ue=!0}}),ue||_i(h,_,b,P,I,Y,Z,ee,re,oe)}const is=En|la;function _i(c,h,_,b,P,I,Y,Z,ee,re,oe,ue){es(c,h,_,b,P),(ee||re||ue)&&(f.save(),ee&&f.clip(ee),re&&f.clip(re)),ue?(Z&is)==is?(f.clip(ue),oe&&f.clip(oe),bl(P,Y),wl(c,I,h)):Z&la?(bl(P,Y),f.clip(ue),wl(c,I,h)):Z&En&&(f.save(),f.clip(ue),oe&&f.clip(oe),bl(P,Y),f.restore(),wl(c,I,h)):(bl(P,Y),wl(c,I,h)),(ee||re||ue)&&f.restore()}function wl(c,h,_){_>0&&(h instanceof Map?h.forEach((b,P)=>{f.strokeStyle=_l=P,f.stroke(b)}):h!=null&&c&&f.stroke(h))}function bl(c,h){h instanceof Map?h.forEach((_,b)=>{f.fillStyle=an=b,f.fill(_)}):h!=null&&c&&f.fill(h)}function ih(c,h,_,b){let P=O[c],I;if(b<=0)I=[0,0];else{let Y=P._space=P.space(n,c,h,_,b),Z=P._incrs=P.incrs(n,c,h,_,b,Y);I=l_(h,_,Z,b,Y)}return P._found=I}function wi(c,h,_,b,P,I,Y,Z,ee,re){let oe=Y%2/2;g==1&&f.translate(oe,oe),es(Z,Y,ee,re,Z),f.beginPath();let ue,ve,Me,Ae,Se=P+(b==0||b==3?-I:I);_==0?(ve=P,Ae=Se):(ue=P,Me=Se);for(let ge=0;ge<c.length;ge++)h[ge]!=null&&(_==0?ue=Me=c[ge]:ve=Ae=c[ge],f.moveTo(ue,ve),f.lineTo(Me,Ae));f.stroke(),g==1&&f.translate(-oe,-oe)}function oh(c){let h=!0;return O.forEach((_,b)=>{if(!_.show)return;let P=D[_.scale];if(P.min==null){_._show&&(h=!1,_._show=!1,sn(!1));return}else _._show||(h=!1,_._show=!0,sn(!1));let I=_.side,Y=I%2,{min:Z,max:ee}=P,[re,oe]=ih(b,Z,ee,Y==0?he:ie);if(oe==0)return;let ue=P.distr==2,ve=_._splits=_.splits(n,b,Z,ee,re,oe,ue),Me=P.distr==2?ve.map(pe=>Xt[pe]):ve,Ae=P.distr==2?Xt[ve[1]]-Xt[ve[0]]:re,Se=_._values=_.values(n,_.filter(n,Me,b,oe,Ae),b,oe,Ae);_._rotate=I==2?_.rotate(n,Se,b,oe):0;let ge=_._size;_._size=Yt(_.size(n,Se,b,c)),ge!=null&&_._size!=ge&&(h=!1)}),h}function ah(c){let h=!0;return on.forEach((_,b)=>{let P=_(n,b,Jt,c);P!=bt[b]&&(h=!1),bt[b]=P}),h}function sh(){for(let c=0;c<O.length;c++){let h=O[c];if(!h.show||!h._show)continue;let _=h.side,b=_%2,P,I,Y=h.stroke(n,c),Z=_==0||_==3?-1:1,[ee,re]=h._found;if(h.label!=null){let St=h.labelGap*Z,zt=st((h._lpos+St)*Ce);ts(h.labelFont[0],Y,"center",_==2?Yn:lc),f.save(),b==1?(P=I=0,f.translate(zt,st(Tt+vt/2)),f.rotate((_==3?-zl:zl)/2)):(P=st(_t+ft/2),I=zt);let jr=_p(h.label)?h.label(n,c,ee,re):h.label;f.fillText(jr,P,I),f.restore()}if(re==0)continue;let oe=D[h.scale],ue=b==0?ft:vt,ve=b==0?_t:Tt,Me=h._splits,Ae=oe.distr==2?Me.map(St=>Xt[St]):Me,Se=oe.distr==2?Xt[Me[1]]-Xt[Me[0]]:ee,ge=h.ticks,pe=h.border,je=ge.show?ge.size:0,et=st(je*Ce),mt=st((h.alignTo==2?h._size-je-h.gap:h.gap)*Ce),ze=h._rotate*-zl/180,tt=v(h._pos*Ce),Nt=(et+mt)*Z,kt=tt+Nt;I=b==0?kt:0,P=b==1?kt:0;let Vt=h.font[0],er=h.align==1?yn:h.align==2?Mo:ze>0?yn:ze<0?Mo:b==0?"center":_==3?Mo:yn,gr=ze||b==1?"middle":_==2?Yn:lc;ts(Vt,Y,er,gr);let Ft=h.font[1]*h.lineGap,jt=Me.map(St=>v(a(St,oe,ue,ve))),tr=h._values;for(let St=0;St<tr.length;St++){let zt=tr[St];if(zt!=null){b==0?P=jt[St]:I=jt[St],zt=""+zt;let jr=zt.indexOf(`
|
|
`)==-1?[zt]:zt.split(/\n/gm);for(let xt=0;xt<jr.length;xt++){let xs=jr[xt];ze?(f.save(),f.translate(P,I+xt*Ft),f.rotate(ze),f.fillText(xs,0,0),f.restore()):f.fillText(xs,P,I+xt*Ft)}}}ge.show&&wi(jt,ge.filter(n,Ae,c,re,Se),b,_,tt,et,qe(ge.width*Ce,3),ge.stroke(n,c),ge.dash,ge.cap);let yr=h.grid;yr.show&&wi(jt,yr.filter(n,Ae,c,re,Se),b,b==0?2:1,b==0?Tt:_t,b==0?vt:ft,qe(yr.width*Ce,3),yr.stroke(n,c),yr.dash,yr.cap),pe.show&&wi([tt],[1],b==0?1:0,b==0?1:2,b==1?Tt:_t,b==1?vt:ft,qe(pe.width*Ce,3),pe.stroke(n,c),pe.dash,pe.cap)}dt("drawAxes")}function sn(c){w.forEach((h,_)=>{_>0&&(h._paths=null,c&&(l==1?(h.min=null,h.max=null):h.facets.forEach(b=>{b.min=null,b.max=null})))})}let kl=!1,bi=!1,Bn=[];function uh(){bi=!1;for(let c=0;c<Bn.length;c++)dt(...Bn[c]);Bn.length=0}function un(){kl||(Qy(os),kl=!0)}function ch(c,h=!1){kl=!0,bi=h,c(n),os(),h&&Bn.length>0&&queueMicrotask(uh)}n.batch=ch;function os(){if(H&&(th(),H=!1),ke&&(ur(),ke=!1),U){if(Ge(k,yn,Fe),Ge(k,Yn,Je),Ge(k,Qn,he),Ge(k,Jn,ie),Ge(m,yn,Fe),Ge(m,Yn,Je),Ge(m,Qn,he),Ge(m,Jn,ie),Ge(d,Qn,Ne),Ge(d,Jn,rt),p.width=st(Ne*Ce),p.height=st(rt*Ce),O.forEach(({_el:c,_show:h,_size:_,_pos:b,side:P})=>{if(c!=null)if(h){let I=P===3||P===0?_:0,Y=P%2==1;Ge(c,Y?"left":"top",b-I),Ge(c,Y?"width":"height",_),Ge(c,Y?"top":"left",Y?Je:Fe),Ge(c,Y?"height":"width",Y?ie:he),Xo(c,Zr)}else Bt(c,Zr)}),_l=an=fi=hi=di=mi=gi=yi=pi=null,Mt=1,Un(!0),Fe!=Cr||Je!=Dt||he!=Ot||ie!=ar){sn(!1);let c=he/Ot,h=ie/ar;if(ae&&!$e&&y.left>=0){y.left*=c,y.top*=h,cn&&vr(cn,st(y.left),0,he,ie),fn&&vr(fn,0,st(y.top),he,ie);for(let _=0;_<gt.length;_++){let b=gt[_];b!=null&&(pr[_]*=c,hr[_]*=h,vr(b,Yt(pr[_]),Yt(hr[_]),he,ie))}}if(Ve.show&&!Le&&Ve.left>=0&&Ve.width>0){Ve.left*=c,Ve.width*=c,Ve.top*=h,Ve.height*=h;for(let _ in Ei)Ge(dn,_,Ve[_])}Cr=Fe,Dt=Je,Ot=he,ar=ie}dt("setSize"),U=!1}Ne>0&&rt>0&&(f.clearRect(0,0,p.width,p.height),dt("drawClear"),x.forEach(c=>c()),dt("draw")),Ve.show&&Le&&(Sl(Ve),Le=!1),ae&&$e&&(Vr(null,!0,!1),$e=!1),C.show&&C.live&&me&&($i(),me=!1),s||(s=!0,n.status=1,dt("ready")),zn=!1,kl=!1}n.redraw=(c,h)=>{ke=h||!1,c!==!1?Ir(E,A.min,A.max):un()};function ki(c,h){let _=D[c];if(_.from==null){if(Xe==0){let b=_.range(n,h.min,h.max,c);h.min=b[0],h.max=b[1]}if(h.min>h.max){let b=h.min;h.min=h.max,h.max=b}if(Xe>1&&h.min!=null&&h.max!=null&&h.max-h.min<1e-16)return;c==E&&_.distr==2&&Xe>0&&(h.min=nr(h.min,t[0]),h.max=nr(h.max,t[0]),h.min==h.max&&h.max++),B[c]=h,H=!0,un()}}n.setScale=ki;let Si,xi,cn,fn,as,ss,pn,hn,us,cs,We,Ye,Lr=!1;const yt=y.drag;let pt=yt.x,ht=yt.y;ae&&(y.x&&(Si=Gt(by,m)),y.y&&(xi=Gt(ky,m)),A.ori==0?(cn=Si,fn=xi):(cn=xi,fn=Si),We=y.left,Ye=y.top);const Ve=n.select=ot({show:!0,over:!0,left:0,width:0,top:0,height:0},e.select),dn=Ve.show?Gt(wy,Ve.over?m:k):null;function Sl(c,h){if(Ve.show){for(let _ in c)Ve[_]=c[_],_ in Ei&&Ge(dn,_,c[_]);h!==!1&&dt("setSelect")}}n.setSelect=Sl;function fh(c){if(w[c].show)Q&&Xo(J[c],Zr);else if(Q&&Bt(J[c],Zr),ae){let _=fr?gt[0]:gt[c];_!=null&&vr(_,-10,-10,he,ie)}}function Ir(c,h,_){ki(c,{min:h,max:_})}function dr(c,h,_,b){h.focus!=null&&gh(c),h.show!=null&&w.forEach((P,I)=>{I>0&&(c==I||c==null)&&(P.show=h.show,fh(I),l==2?(Ir(P.facets[0].scale,null,null),Ir(P.facets[1].scale,null,null)):Ir(P.scale,null,null),un())}),_!==!1&&dt("setSeries",c,h),b&&Wn("setSeries",n,c,h)}n.setSeries=dr;function ph(c,h){ot(T[c],h)}function hh(c,h){c.fill=xe(c.fill||null),c.dir=Oe(c.dir,-1),h=h??T.length,T.splice(h,0,c)}function dh(c){c==null?T.length=0:T.splice(c,1)}n.addBand=hh,n.setBand=ph,n.delBand=dh;function mh(c,h){w[c].alpha=h,ae&>[c]!=null&&(gt[c].style.opacity=h),Q&&J[c]&&(J[c].style.opacity=h)}let br,Nr,Wr;const mn={focus:!0};function gh(c){if(c!=Wr){let h=c==null,_=It.alpha!=1;w.forEach((b,P)=>{if(l==1||P>0){let I=h||P==0||P==c;b._focus=h?null:I,_&&mh(P,I?1:It.alpha)}}),Wr=c,_&&un()}}Q&&Wt&&Pe(sc,K,c=>{y._lock||(cr(c),Wr!=null&&dr(null,mn,!0,it.setSeries))});function mr(c,h,_){let b=D[h];_&&(c=c/Ce-(b.ori==1?Je:Fe));let P=he;b.ori==1&&(P=ie,c=P-c),b.dir==-1&&(c=P-c);let I=b._min,Y=b._max,Z=c/P,ee=I+(Y-I)*Z,re=b.distr;return re==3?xn(10,ee):re==4?zy(ee,b.asinh):re==100?b.bwd(ee):ee}function yh(c,h){let _=mr(c,E,h);return nr(_,t[0],lt,nt)}n.valToIdx=c=>nr(c,t[0]),n.posToIdx=yh,n.posToVal=mr,n.valToPos=(c,h,_)=>D[h].ori==0?i(c,D[h],_?ft:he,_?_t:0):o(c,D[h],_?vt:ie,_?Tt:0),n.setCursor=(c,h,_)=>{We=c.left,Ye=c.top,Vr(null,h,_)};function fs(c,h){Ge(dn,yn,Ve.left=c),Ge(dn,Qn,Ve.width=h)}function ps(c,h){Ge(dn,Yn,Ve.top=c),Ge(dn,Jn,Ve.height=h)}let Hn=A.ori==0?fs:ps,qn=A.ori==1?fs:ps;function vh(){if(Q&&C.live)for(let c=l==2?1:0;c<w.length;c++){if(c==0&&X)continue;let h=C.values[c],_=0;for(let b in h)le[c][_++].firstChild.nodeValue=h[b]}}function $i(c,h){if(c!=null&&(c.idxs?c.idxs.forEach((_,b)=>{V[b]=_}):Uy(c.idx)||V.fill(c.idx),C.idx=V[0]),Q&&C.live){for(let _=0;_<w.length;_++)(_>0||l==1&&!X)&&_h(_,V[_]);vh()}me=!1,h!==!1&&dt("setLegend")}n.setLegend=$i;function _h(c,h){let _=w[c],b=c==0&&G==2?Xt:t[c],P;X?P=_.values(n,c,h)??fe:(P=_.value(n,h==null?null:b[h],c,h),P=P==null?fe:{_:P}),C.values[c]=P}function Vr(c,h,_){us=We,cs=Ye,[We,Ye]=y.move(n,We,Ye),y.left=We,y.top=Ye,ae&&(cn&&vr(cn,st(We),0,he,ie),fn&&vr(fn,0,st(Ye),he,ie));let b,P=lt>nt;br=He,Nr=null;let I=A.ori==0?he:ie,Y=A.ori==1?he:ie;if(We<0||Xe==0||P){b=y.idx=null;for(let Z=0;Z<w.length;Z++){let ee=gt[Z];ee!=null&&vr(ee,-10,-10,he,ie)}Wt&&dr(null,mn,!0,c==null&&it.setSeries),C.live&&(V.fill(b),me=!0)}else{let Z,ee,re;l==1&&(Z=A.ori==0?We:Ye,ee=mr(Z,E),b=y.idx=nr(ee,t[0],lt,nt),re=j(t[0][b],A,I,0));let oe=-10,ue=-10,ve=0,Me=0,Ae=!0,Se="",ge="";for(let pe=l==2?1:0;pe<w.length;pe++){let je=w[pe],et=V[pe],mt=et==null?null:l==1?t[pe][et]:t[pe][1][et],ze=y.dataIdx(n,pe,b,ee),tt=ze==null?null:l==1?t[pe][ze]:t[pe][1][ze];if(me=me||tt!=mt||ze!=et,V[pe]=ze,pe>0&&je.show){let Nt=ze==null?-10:ze==b?re:j(l==1?t[0][ze]:t[pe][0][ze],A,I,0),kt=tt==null?-10:W(tt,l==1?D[je.scale]:D[je.facets[1].scale],Y,0);if(Wt&&tt!=null){let Vt=A.ori==1?We:Ye,er=ut(It.dist(n,pe,ze,kt,Vt));if(er<br){let gr=It.bias;if(gr!=0){let Ft=mr(Vt,je.scale),jt=tt>=0?1:-1,tr=Ft>=0?1:-1;tr==jt&&(tr==1?gr==1?tt>=Ft:tt<=Ft:gr==1?tt<=Ft:tt>=Ft)&&(br=er,Nr=pe)}else br=er,Nr=pe}}if(me||fr){let Vt,er;A.ori==0?(Vt=Nt,er=kt):(Vt=kt,er=Nt);let gr,Ft,jt,tr,yr,St,zt=!0,jr=at.bbox;if(jr!=null){zt=!1;let xt=jr(n,pe);jt=xt.left,tr=xt.top,gr=xt.width,Ft=xt.height}else jt=Vt,tr=er,gr=Ft=at.size(n,pe);if(St=at.fill(n,pe),yr=at.stroke(n,pe),fr)pe==Nr&&br<=It.prox&&(oe=jt,ue=tr,ve=gr,Me=Ft,Ae=zt,Se=St,ge=yr);else{let xt=gt[pe];xt!=null&&(pr[pe]=jt,hr[pe]=tr,mc(xt,gr,Ft,zt),hc(xt,St,yr),vr(xt,Yt(jt),Yt(tr),he,ie))}}}}if(fr){let pe=It.prox,je=Wr==null?br<=pe:br>pe||Nr!=Wr;if(me||je){let et=gt[0];et!=null&&(pr[0]=oe,hr[0]=ue,mc(et,ve,Me,Ae),hc(et,Se,ge),vr(et,Yt(oe),Yt(ue),he,ie))}}}if(Ve.show&&Lr)if(c!=null){let[Z,ee]=it.scales,[re,oe]=it.match,[ue,ve]=c.cursor.sync.scales,Me=c.cursor.drag;if(pt=Me._x,ht=Me._y,pt||ht){let{left:Ae,top:Se,width:ge,height:pe}=c.select,je=c.scales[ue].ori,et=c.posToVal,mt,ze,tt,Nt,kt,Vt=Z!=null&&re(Z,ue),er=ee!=null&&oe(ee,ve);Vt&&pt?(je==0?(mt=Ae,ze=ge):(mt=Se,ze=pe),tt=D[Z],Nt=j(et(mt,ue),tt,I,0),kt=j(et(mt+ze,ue),tt,I,0),Hn(or(Nt,kt),ut(kt-Nt))):Hn(0,I),er&&ht?(je==1?(mt=Ae,ze=ge):(mt=Se,ze=pe),tt=D[ee],Nt=W(et(mt,ve),tt,Y,0),kt=W(et(mt+ze,ve),tt,Y,0),qn(or(Nt,kt),ut(kt-Nt))):qn(0,Y)}else Pi()}else{let Z=ut(us-as),ee=ut(cs-ss);if(A.ori==1){let ve=Z;Z=ee,ee=ve}pt=yt.x&&Z>=yt.dist,ht=yt.y&&ee>=yt.dist;let re=yt.uni;re!=null?pt&&ht&&(pt=Z>=re,ht=ee>=re,!pt&&!ht&&(ee>Z?ht=!0:pt=!0)):yt.x&&yt.y&&(pt||ht)&&(pt=ht=!0);let oe,ue;pt&&(A.ori==0?(oe=pn,ue=We):(oe=hn,ue=Ye),Hn(or(oe,ue),ut(ue-oe)),ht||qn(0,Y)),ht&&(A.ori==1?(oe=pn,ue=We):(oe=hn,ue=Ye),qn(or(oe,ue),ut(ue-oe)),pt||Hn(0,I)),!pt&&!ht&&(Hn(0,0),qn(0,0))}if(yt._x=pt,yt._y=ht,c==null){if(_){if(Ss!=null){let[Z,ee]=it.scales;it.values[0]=Z!=null?mr(A.ori==0?We:Ye,Z):null,it.values[1]=ee!=null?mr(A.ori==1?We:Ye,ee):null}Wn(Co,n,We,Ye,he,ie,b)}if(Wt){let Z=_&&it.setSeries,ee=It.prox;Wr==null?br<=ee&&dr(Nr,mn,!0,Z):br>ee?dr(null,mn,!0,Z):Nr!=Wr&&dr(Nr,mn,!0,Z)}}me&&(C.idx=b,$i()),h!==!1&&dt("setCursor")}let Fr=null;Object.defineProperty(n,"rect",{get(){return Fr==null&&Un(!1),Fr}});function Un(c=!1){c?Fr=null:(Fr=m.getBoundingClientRect(),dt("syncRect",Fr))}function hs(c,h,_,b,P,I,Y){y._lock||Lr&&c!=null&&c.movementX==0&&c.movementY==0||(Ri(c,h,_,b,P,I,Y,!1,c!=null),c!=null?Vr(null,!0,!0):Vr(h,!0,!1))}function Ri(c,h,_,b,P,I,Y,Z,ee){if(Fr==null&&Un(!1),cr(c),c!=null)_=c.clientX-Fr.left,b=c.clientY-Fr.top;else{if(_<0||b<0){We=-10,Ye=-10;return}let[re,oe]=it.scales,ue=h.cursor.sync,[ve,Me]=ue.values,[Ae,Se]=ue.scales,[ge,pe]=it.match,je=h.axes[0].side%2==1,et=A.ori==0?he:ie,mt=A.ori==1?he:ie,ze=je?I:P,tt=je?P:I,Nt=je?b:_,kt=je?_:b;if(Ae!=null?_=ge(re,Ae)?a(ve,D[re],et,0):-10:_=et*(Nt/ze),Se!=null?b=pe(oe,Se)?a(Me,D[oe],mt,0):-10:b=mt*(kt/tt),A.ori==1){let Vt=_;_=b,b=Vt}}ee&&(h==null||h.cursor.event.type==Co)&&((_<=1||_>=he-1)&&(_=Gr(_,he)),(b<=1||b>=ie-1)&&(b=Gr(b,ie))),Z?(as=_,ss=b,[pn,hn]=y.move(n,_,b)):(We=_,Ye=b)}const Ei={width:0,height:0,left:0,top:0};function Pi(){Sl(Ei,!1)}let ds,ms,gs,ys;function vs(c,h,_,b,P,I,Y){Lr=!0,pt=ht=yt._x=yt._y=!1,Ri(c,h,_,b,P,I,Y,!0,!1),c!=null&&(Pe(Do,Qo,_s,!1),Wn(oc,n,pn,hn,he,ie,null));let{left:Z,top:ee,width:re,height:oe}=Ve;ds=Z,ms=ee,gs=re,ys=oe}function _s(c,h,_,b,P,I,Y){Lr=yt._x=yt._y=!1,Ri(c,h,_,b,P,I,Y,!1,!0);let{left:Z,top:ee,width:re,height:oe}=Ve,ue=re>0||oe>0,ve=ds!=Z||ms!=ee||gs!=re||ys!=oe;if(ue&&ve&&Sl(Ve),yt.setScale&&ue&&ve){let Me=Z,Ae=re,Se=ee,ge=oe;if(A.ori==1&&(Me=ee,Ae=oe,Se=Z,ge=re),pt&&Ir(E,mr(Me,E),mr(Me+Ae,E)),ht)for(let pe in D){let je=D[pe];pe!=E&&je.from==null&&je.min!=He&&Ir(pe,mr(Se+ge,pe),mr(Se,pe))}Pi()}else y.lock&&(y._lock=!y._lock,Vr(h,!0,c!=null));c!=null&&(Ke(Do,Qo),Wn(Do,n,We,Ye,he,ie,null))}function wh(c,h,_,b,P,I,Y){if(y._lock)return;cr(c);let Z=Lr;if(Lr){let ee=!0,re=!0,oe=10,ue,ve;A.ori==0?(ue=pt,ve=ht):(ue=ht,ve=pt),ue&&ve&&(ee=We<=oe||We>=he-oe,re=Ye<=oe||Ye>=ie-oe),ue&&ee&&(We=We<pn?0:he),ve&&re&&(Ye=Ye<hn?0:ie),Vr(null,!0,!0),Lr=!1}We=-10,Ye=-10,V.fill(null),Vr(null,!0,!0),Z&&(Lr=Z)}function ws(c,h,_,b,P,I,Y){y._lock||(cr(c),ci(),Pi(),c!=null&&Wn(uc,n,We,Ye,he,ie,null))}function bs(){O.forEach(i_),Ut(n.width,n.height,!0)}Qr(jl,bn,bs);const gn={};gn.mousedown=vs,gn.mousemove=hs,gn.mouseup=_s,gn.dblclick=ws,gn.setSeries=(c,h,_,b)=>{let P=it.match[2];_=P(n,h,_),_!=-1&&dr(_,b,!0,!1)},ae&&(Pe(oc,m,vs),Pe(Co,m,hs),Pe(ac,m,c=>{cr(c),Un(!1)}),Pe(sc,m,wh),Pe(uc,m,ws),ia.add(n),n.syncRect=Un);const xl=n.hooks=e.hooks||{};function dt(c,h,_){bi?Bn.push([c,h,_]):c in xl&&xl[c].forEach(b=>{b.call(null,n,h,_)})}(e.plugins||[]).forEach(c=>{for(let h in c.hooks)xl[h]=(xl[h]||[]).concat(c.hooks[h])});const ks=(c,h,_)=>_,it=ot({key:null,setSeries:!1,filters:{pub:wc,sub:wc},scales:[E,w[1]?w[1].scale:null],match:[bc,bc,ks],values:[null,null]},y.sync);it.match.length==2&&it.match.push(ks),y.sync=it;const Ss=it.key,Ai=Up(Ss);function Wn(c,h,_,b,P,I,Y){it.filters.pub(c,h,_,b,P,I,Y)&&Ai.pub(c,h,_,b,P,I,Y)}Ai.sub(n);function bh(c,h,_,b,P,I,Y){it.filters.sub(c,h,_,b,P,I,Y)&&gn[c](null,h,_,b,P,I,Y)}n.pub=bh;function kh(){Ai.unsub(n),ia.delete(n),De.clear(),ea(jl,bn,bs),u.remove(),K?.remove(),dt("destroy")}n.destroy=kh;function Oi(){dt("init",e,t),Xa(t||e.data,!1),B[E]?ki(E,B[E]):ci(),Le=Ve.show&&(Ve.width>0||Ve.height>0),$e=me=!0,Ut(e.width,e.height)}return w.forEach(Nn),O.forEach(yl),r?r instanceof HTMLElement?(r.appendChild(u),Oi()):r(n,Oi):Oi(),n}Pt.assign=ot;Pt.fmtNum=Wa;Pt.rangeNum=Gl;Pt.rangeLog=ni;Pt.rangeAsinh=qa;Pt.orient=ln;Pt.pxRatio=Ce;Pt.join=Zy;Pt.fmtDate=ja,Pt.tzDate=av;Pt.sync=Up;{Pt.addGap=Uv,Pt.clipGaps=oi;let e=Pt.paths={points:Kp};e.linear=Qp,e.stepped=jv,e.bars=Gv,e.spline=Kv}export{ff as $,Ar as A,fl as D,fa as F,d_ as H,v_ as I,jf as L,_a as M,Cm as N,p_ as O,Ct as Q,h_ as R,$t as T,we as _,u_ as a,o_ as b,y_ as c,a_ as d,Pr as e,Tr as f,zf as g,Kl as h,qr as i,m_ as j,At as k,__ as l,Be as m,Pt as n,Kc as o,Go as p,g_ as q,c_ as r,am as s,s_ as t,f_ as u,hf as v,Re as x,Jr as y};
|