phanpy/assets/vendor-f6XEe9UY.js
Lim Chee Aun 76ac532d0f Imported from 2024.01.11.e791ea8.tar.gz.
SHA256:4ab0cd0f94f3ec70e5f0c4328e3eba9e30b88e0ebaa18f1c163f191495a81186
2024-01-13 13:59:30 +00:00

142 lines
243 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

var wn,W,ya,eu,lt,Zo,ga,Br,wa,dn={},ba=[],tu=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,sr=Array.isArray;function Ge(e,t){for(var n in t)e[n]=t[n];return e}function Ea(e){var t=e.parentNode;t&&t.removeChild(e)}function te(e,t,n){var r,o,i,a={};for(i in t)i=="key"?r=t[i]:i=="ref"?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?wn.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)a[i]===void 0&&(a[i]=e.defaultProps[i]);return sn(e,a,r,o,null)}function sn(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:o??++ya,__i:-1,__u:0};return o==null&&W.vnode!=null&&W.vnode(i),i}function ho(){return{current:null}}function De(e){return e.children}function Pe(e,t){this.props=e,this.context=t}function kt(e,t){if(t==null)return e.__?kt(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?kt(e):null}function Sa(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return Sa(e)}}function Ur(e){(!e.__d&&(e.__d=!0)&&lt.push(e)&&!jn.__r++||Zo!==W.debounceRendering)&&((Zo=W.debounceRendering)||ga)(jn)}function jn(){var e,t,n,r,o,i,a,u,s;for(lt.sort(Br);e=lt.shift();)e.__d&&(t=lt.length,r=void 0,i=(o=(n=e).__v).__e,u=[],s=[],(a=n.__P)&&((r=Ge({},o)).__v=o.__v+1,W.vnode&&W.vnode(r),po(a,r,o,n.__n,a.ownerSVGElement!==void 0,32&o.__u?[i]:null,u,i??kt(o),!!(32&o.__u),s),r.__.__k[r.__i]=r,Ca(u,r,s),r.__e!=i&&Sa(r)),lt.length>t&&lt.sort(Br));jn.__r=0}function Ta(e,t,n,r,o,i,a,u,s,l,d){var c,f,h,p,m,_=r&&r.__k||ba,v=t.length;for(n.__d=s,nu(n,t,_),s=n.__d,c=0;c<v;c++)(h=n.__k[c])!=null&&typeof h!="boolean"&&typeof h!="function"&&(f=h.__i===-1?dn:_[h.__i]||dn,h.__i=c,po(e,h,f,o,i,a,u,s,l,d),p=h.__e,h.ref&&f.ref!=h.ref&&(f.ref&&mo(f.ref,null,h),d.push(h.ref,h.__c||p,h)),m==null&&p!=null&&(m=p),65536&h.__u||f.__k===h.__k?s=xa(h,s,e):typeof h.type=="function"&&h.__d!==void 0?s=h.__d:p&&(s=p.nextSibling),h.__d=void 0,h.__u&=-196609);n.__d=s,n.__e=m}function nu(e,t,n){var r,o,i,a,u,s=t.length,l=n.length,d=l,c=0;for(e.__k=[],r=0;r<s;r++)(o=e.__k[r]=(o=t[r])==null||typeof o=="boolean"||typeof o=="function"?null:typeof o=="string"||typeof o=="number"||typeof o=="bigint"||o.constructor==String?sn(null,o,null,null,o):sr(o)?sn(De,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?sn(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)!=null?(o.__=e,o.__b=e.__b+1,u=ru(o,n,a=r+c,d),o.__i=u,i=null,u!==-1&&(d--,(i=n[u])&&(i.__u|=131072)),i==null||i.__v===null?(u==-1&&c--,typeof o.type!="function"&&(o.__u|=65536)):u!==a&&(u===a+1?c++:u>a?d>s-a?c+=u-a:c--:c=u<a&&u==a-1?u-a:0,u!==r+c&&(o.__u|=65536))):(i=n[r])&&i.key==null&&i.__e&&(i.__e==e.__d&&(e.__d=kt(i)),qr(i,i,!1),n[r]=null,d--);if(d)for(r=0;r<l;r++)(i=n[r])!=null&&!(131072&i.__u)&&(i.__e==e.__d&&(e.__d=kt(i)),qr(i,i))}function xa(e,t,n){var r,o;if(typeof e.type=="function"){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=xa(r[o],t,n));return t}return e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e),t&&t.nextSibling}function Ze(e,t){return t=t||[],e==null||typeof e=="boolean"||(sr(e)?e.some(function(n){Ze(n,t)}):t.push(e)),t}function ru(e,t,n,r){var o=e.key,i=e.type,a=n-1,u=n+1,s=t[n];if(s===null||s&&o==s.key&&i===s.type)return n;if(r>(s!=null&&!(131072&s.__u)?1:0))for(;a>=0||u<t.length;){if(a>=0){if((s=t[a])&&!(131072&s.__u)&&o==s.key&&i===s.type)return a;a--}if(u<t.length){if((s=t[u])&&!(131072&s.__u)&&o==s.key&&i===s.type)return u;u++}}return-1}function Vo(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||tu.test(t)?n:n+"px"}function xn(e,t,n,r,o){var i;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||Vo(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Vo(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")i=t!==(t=t.replace(/(PointerCapture)$|Capture$/,"$1")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=Date.now(),e.addEventListener(t,i?Xo:Jo,i)):e.removeEventListener(t,i?Xo:Jo,i);else{if(o)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 in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,n))}}function Jo(e){var t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();return t(W.event?W.event(e):e)}function Xo(e){return this.l[e.type+!0](W.event?W.event(e):e)}function po(e,t,n,r,o,i,a,u,s,l){var d,c,f,h,p,m,_,v,y,T,M,x,b,C,B,S=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(s=!!(32&n.__u),i=[u=t.__e=n.__e]),(d=W.__b)&&d(t);e:if(typeof S=="function")try{if(v=t.props,y=(d=S.contextType)&&r[d.__c],T=d?y?y.props.value:d.__:r,n.__c?_=(c=t.__c=n.__c).__=c.__E:("prototype"in S&&S.prototype.render?t.__c=c=new S(v,T):(t.__c=c=new Pe(v,T),c.constructor=S,c.render=iu),y&&y.sub(c),c.props=v,c.state||(c.state={}),c.context=T,c.__n=r,f=c.__d=!0,c.__h=[],c._sb=[]),c.__s==null&&(c.__s=c.state),S.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=Ge({},c.__s)),Ge(c.__s,S.getDerivedStateFromProps(v,c.__s))),h=c.props,p=c.state,c.__v=t,f)S.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(S.getDerivedStateFromProps==null&&v!==h&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(v,T),!c.__e&&(c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(v,c.__s,T)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(c.props=v,c.state=c.__s,c.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(L){L&&(L.__=t)}),M=0;M<c._sb.length;M++)c.__h.push(c._sb[M]);c._sb=[],c.__h.length&&a.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(v,c.__s,T),c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(h,p,m)})}if(c.context=T,c.props=v,c.__P=e,c.__e=!1,x=W.__r,b=0,"prototype"in S&&S.prototype.render){for(c.state=c.__s,c.__d=!1,x&&x(t),d=c.render(c.props,c.state,c.context),C=0;C<c._sb.length;C++)c.__h.push(c._sb[C]);c._sb=[]}else do c.__d=!1,x&&x(t),d=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++b<25);c.state=c.__s,c.getChildContext!=null&&(r=Ge(Ge({},r),c.getChildContext())),f||c.getSnapshotBeforeUpdate==null||(m=c.getSnapshotBeforeUpdate(h,p)),Ta(e,sr(B=d!=null&&d.type===De&&d.key==null?d.props.children:d)?B:[B],t,n,r,o,i,a,u,s,l),c.base=t.__e,t.__u&=-161,c.__h.length&&a.push(c),_&&(c.__E=c.__=null)}catch(L){t.__v=null,s||i!=null?(t.__e=u,t.__u|=s?160:32,i[i.indexOf(u)]=null):(t.__e=n.__e,t.__k=n.__k),W.__e(L,t,n)}else i==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=ou(n.__e,t,n,r,o,i,a,s,l);(d=W.diffed)&&d(t)}function Ca(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)mo(n[r],n[++r],n[++r]);W.__c&&W.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){W.__e(i,o.__v)}})}function ou(e,t,n,r,o,i,a,u,s){var l,d,c,f,h,p,m,_=n.props,v=t.props,y=t.type;if(y==="svg"&&(o=!0),i!=null){for(l=0;l<i.length;l++)if((h=i[l])&&"setAttribute"in h==!!y&&(y?h.localName===y:h.nodeType===3)){e=h,i[l]=null;break}}if(e==null){if(y===null)return document.createTextNode(v);e=o?document.createElementNS("http://www.w3.org/2000/svg",y):document.createElement(y,v.is&&v),i=null,u=!1}if(y===null)_===v||u&&e.data===v||(e.data=v);else{if(i=i&&wn.call(e.childNodes),_=n.props||dn,!u&&i!=null)for(_={},l=0;l<e.attributes.length;l++)_[(h=e.attributes[l]).name]=h.value;for(l in _)h=_[l],l=="children"||(l=="dangerouslySetInnerHTML"?c=h:l==="key"||l in v||xn(e,l,null,h,o));for(l in v)h=v[l],l=="children"?f=h:l=="dangerouslySetInnerHTML"?d=h:l=="value"?p=h:l=="checked"?m=h:l==="key"||u&&typeof h!="function"||_[l]===h||xn(e,l,h,_[l],o);if(d)u||c&&(d.__html===c.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(c&&(e.innerHTML=""),Ta(e,sr(f)?f:[f],t,n,r,o&&y!=="foreignObject",i,a,i?i[0]:n.__k&&kt(n,0),u,s),i!=null)for(l=i.length;l--;)i[l]!=null&&Ea(i[l]);u||(l="value",p!==void 0&&(p!==e[l]||y==="progress"&&!p||y==="option"&&p!==_[l])&&xn(e,l,p,_[l],!1),l="checked",m!==void 0&&m!==e[l]&&xn(e,l,m,_[l],!1))}return e}function mo(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){W.__e(r,n)}}function qr(e,t,n){var r,o;if(W.unmount&&W.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||mo(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){W.__e(i,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&qr(r[o],t,n||typeof e.type!="function");n||e.__e==null||Ea(e.__e),e.__=e.__e=e.__d=void 0}function iu(e,t,n){return this.constructor(e,n)}function fn(e,t,n){var r,o,i,a;W.__&&W.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],a=[],po(t,e=(!r&&n||t).__k=te(De,null,[e]),o||dn,dn,t.ownerSVGElement!==void 0,!r&&n?[n]:o?null:t.firstChild?wn.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,a),Ca(i,e,a)}function Aa(e,t){fn(e,t,Aa)}function au(e,t,n){var r,o,i,a,u=Ge({},e.props);for(i in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)i=="key"?r=t[i]:i=="ref"?o=t[i]:u[i]=t[i]===void 0&&a!==void 0?a[i]:t[i];return arguments.length>2&&(u.children=arguments.length>3?wn.call(arguments,2):n),sn(e.type,u,r||e.key,o||e.ref,null)}function be(e,t){var n={__c:t="__cC"+wa++,__:e,Consumer:function(r,o){return r.children(o)},Provider:function(r){var o,i;return this.getChildContext||(o=[],(i={})[t]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(a){this.props.value!==a.value&&o.some(function(u){u.__e=!0,Ur(u)})},this.sub=function(a){o.push(a);var u=a.componentWillUnmount;a.componentWillUnmount=function(){o.splice(o.indexOf(a),1),u&&u.call(a)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}wn=ba.slice,W={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(u){e=u}throw e}},ya=0,eu=function(e){return e!=null&&e.constructor==null},Pe.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Ge({},this.state),typeof e=="function"&&(e=e(Ge({},n),this.props)),e&&Ge(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Ur(this))},Pe.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Ur(this))},Pe.prototype.render=De,lt=[],ga=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Br=function(e,t){return e.__v.__b-t.__v.__b},jn.__r=0,wa=0;var Ve,oe,Sr,Qo,$t=0,Oa=[],Nn=[],ei=W.__b,ti=W.__r,ni=W.diffed,ri=W.__c,oi=W.unmount;function mt(e,t){W.__h&&W.__h(oe,e,$t||t),$t=0;var n=oe.__H||(oe.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:Nn}),n.__[e]}function me(e){return $t=1,ur(Pa,e)}function ur(e,t,n){var r=mt(Ve++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Pa(void 0,t),function(u){var s=r.__N?r.__N[0]:r.__[0],l=r.t(s,u);s!==l&&(r.__N=[l,r.__[1]],r.__c.setState({}))}],r.__c=oe,!oe.u)){var o=function(u,s,l){if(!r.__c.__H)return!0;var d=r.__c.__H.__.filter(function(f){return f.__c});if(d.every(function(f){return!f.__N}))return!i||i.call(this,u,s,l);var c=!1;return d.forEach(function(f){if(f.__N){var h=f.__[0];f.__=f.__N,f.__N=void 0,h!==f.__[0]&&(c=!0)}}),!(!c&&r.__c.props===u)&&(!i||i.call(this,u,s,l))};oe.u=!0;var i=oe.shouldComponentUpdate,a=oe.componentWillUpdate;oe.componentWillUpdate=function(u,s,l){if(this.__e){var d=i;i=void 0,o(u,s,l),i=d}a&&a.call(this,u,s,l)},oe.shouldComponentUpdate=o}return r.__N||r.__}function ie(e,t){var n=mt(Ve++,3);!W.__s&&vo(n.__H,t)&&(n.__=e,n.i=t,oe.__H.__h.push(n))}function Je(e,t){var n=mt(Ve++,4);!W.__s&&vo(n.__H,t)&&(n.__=e,n.i=t,oe.__h.push(n))}function K(e){return $t=5,ae(function(){return{current:e}},[])}function cr(e,t,n){$t=6,Je(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},n==null?n:n.concat(e))}function ae(e,t){var n=mt(Ve++,7);return vo(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function _e(e,t){return $t=8,ae(function(){return e},t)}function ne(e){var t=oe.context[e.__c],n=mt(Ve++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(oe)),t.props.value):e.__}function _o(e,t){W.useDebugValue&&W.useDebugValue(t?t(e):e)}function su(e){var t=mt(Ve++,10),n=me();return t.__=e,oe.componentDidCatch||(oe.componentDidCatch=function(r,o){t.__&&t.__(r,o),n[1](r)}),[n[0],function(){n[1](void 0)}]}function Ma(){var e=mt(Ve++,11);if(!e.__){for(var t=oe.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function uu(){for(var e;e=Oa.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(kn),e.__H.__h.forEach(Wr),e.__H.__h=[]}catch(t){e.__H.__h=[],W.__e(t,e.__v)}}W.__b=function(e){oe=null,ei&&ei(e)},W.__r=function(e){ti&&ti(e),Ve=0;var t=(oe=e.__c).__H;t&&(Sr===oe?(t.__h=[],oe.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=Nn,n.__N=n.i=void 0})):(t.__h.forEach(kn),t.__h.forEach(Wr),t.__h=[],Ve=0)),Sr=oe},W.diffed=function(e){ni&&ni(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Oa.push(t)!==1&&Qo===W.requestAnimationFrame||((Qo=W.requestAnimationFrame)||cu)(uu)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==Nn&&(n.__=n.__V),n.i=void 0,n.__V=Nn})),Sr=oe=null},W.__c=function(e,t){t.some(function(n){try{n.__h.forEach(kn),n.__h=n.__h.filter(function(r){return!r.__||Wr(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],W.__e(r,n.__v)}}),ri&&ri(e,t)},W.unmount=function(e){oi&&oi(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{kn(r)}catch(o){t=o}}),n.__H=void 0,t&&W.__e(t,n.__v))};var ii=typeof requestAnimationFrame=="function";function cu(e){var t,n=function(){clearTimeout(r),ii&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);ii&&(t=requestAnimationFrame(n))}function kn(e){var t=oe,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),oe=t}function Wr(e){var t=oe;e.__c=e.__(),oe=t}function vo(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Pa(e,t){return typeof t=="function"?t(e):t}function Ra(e,t){for(var n in t)e[n]=t[n];return e}function Kr(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function zn(e){this.props=e}function bn(e,t){function n(o){var i=this.props.ref,a=i==o.ref;return!a&&i&&(i.call?i(null):i.current=null),t?!t(this.props,o)||!a:Kr(this.props,o)}function r(o){return this.shouldComponentUpdate=n,te(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(zn.prototype=new Pe).isPureReactComponent=!0,zn.prototype.shouldComponentUpdate=function(e,t){return Kr(this.props,e)||Kr(this.state,t)};var ai=W.__b;W.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),ai&&ai(e)};var lu=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function it(e){function t(n){var r=Ra({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=lu,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var si=function(e,t){return e==null?null:Ze(Ze(e).map(t))},lr={map:si,forEach:si,count:function(e){return e?Ze(e).length:0},only:function(e){var t=Ze(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:Ze},du=W.__e;W.__e=function(e,t,n,r){if(e.then){for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t)}du(e,t,n,r)};var ui=W.unmount;function La(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=Ra({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return La(r,t,n)})),e}function Da(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return Da(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function un(){this.__u=0,this.t=null,this.__b=null}function Ia(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Na(e){var t,n,r;function o(i){if(t||(t=e()).then(function(a){n=a.default||a},function(a){r=a}),r)throw r;if(!n)throw t;return te(n,i)}return o.displayName="Lazy",o.__f=!0,o}function Mt(){this.u=null,this.o=null}W.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),ui&&ui(e)},(un.prototype=new Pe).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var o=Ia(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(u):u())};n.__R=a;var u=function(){if(!--r.__u){if(r.state.__a){var s=r.state.__a;r.__v.__k[0]=Da(s,s.__c.__P,s.__c.__O)}var l;for(r.setState({__a:r.__b=null});l=r.t.pop();)l.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},un.prototype.componentWillUnmount=function(){this.t=[]},un.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=La(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&te(De,null,e.fallback);return o&&(o.__u&=-33),[te(De,null,t.__a?null:e.children),o]};var ci=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function fu(e){return this.getChildContext=function(){return e.context},e.children}function hu(e){var t=this,n=e.i;t.componentWillUnmount=function(){fn(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(r){this.childNodes.push(r),t.i.appendChild(r)},insertBefore:function(r,o){this.childNodes.push(r),t.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.i.removeChild(r)}}),fn(te(fu,{context:t.context},e.__v),t.l)}function hn(e,t){var n=te(hu,{__v:e,i:t});return n.containerInfo=t,n}(Mt.prototype=new Pe).__a=function(e){var t=this,n=Ia(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),ci(t,e,r)):o()};n?n(i):i()}},Mt.prototype.render=function(e){this.u=null,this.o=new Map;var t=Ze(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Mt.prototype.componentDidUpdate=Mt.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){ci(e,n,t)})};var ka=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,pu=/^(?: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]/,mu=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,_u=/[A-Z0-9]/g,vu=typeof document<"u",yu=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function $a(e,t,n){return t.__k==null&&(t.textContent=""),fn(e,t),typeof n=="function"&&n(),e?e.__c:null}function ja(e,t,n){return Aa(e,t),typeof n=="function"&&n(),e?e.__c:null}Pe.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Pe.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var li=W.event;function gu(){}function wu(){return this.cancelBubble}function bu(){return this.defaultPrevented}W.event=function(e){return li&&(e=li(e)),e.persist=gu,e.isPropagationStopped=wu,e.isDefaultPrevented=bu,e.nativeEvent=e};var yo,Eu={enumerable:!1,configurable:!0,get:function(){return this.class}},di=W.vnode;W.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,o={};for(var i in n){var a=n[i];if(!(i==="value"&&"defaultValue"in n&&a==null||vu&&i==="children"&&r==="noscript"||i==="class"||i==="className")){var u=i.toLowerCase();i==="defaultValue"&&"value"in n&&n.value==null?i="value":i==="download"&&a===!0?a="":u==="ondoubleclick"?i="ondblclick":u!=="onchange"||r!=="input"&&r!=="textarea"||yu(n.type)?u==="onfocus"?i="onfocusin":u==="onblur"?i="onfocusout":mu.test(i)?i=u:r.indexOf("-")===-1&&pu.test(i)?i=i.replace(_u,"-$&").toLowerCase():a===null&&(a=void 0):u=i="oninput",u==="oninput"&&o[i=u]&&(i="oninputCapture"),o[i]=a}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=Ze(n.children).forEach(function(s){s.props.selected=o.value.indexOf(s.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=Ze(n.children).forEach(function(s){s.props.selected=o.multiple?o.defaultValue.indexOf(s.props.value)!=-1:o.defaultValue==s.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",Eu)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=ka,di&&di(e)};var fi=W.__r;W.__r=function(e){fi&&fi(e),yo=e.__c};var hi=W.diffed;W.diffed=function(e){hi&&hi(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),yo=null};var za={ReactCurrentDispatcher:{current:{readContext:function(e){return yo.__n[e.__c].props.value}}}},Su="17.0.2";function Fa(e){return te.bind(null,e)}function Bt(e){return!!e&&e.$$typeof===ka}function Ha(e){return Bt(e)&&e.type===De}function dr(e){return Bt(e)?au.apply(null,arguments):e}function Ba(e){return!!e.__k&&(fn(null,e),!0)}function Ua(e){return e&&(e.base||e.nodeType===1&&e)||null}var go=function(e,t){return e(t)},wo=function(e,t){return e(t)},qa=De;function bo(e){e()}function Wa(e){return e}function Ka(){return[!1,bo]}var Ga=Je,Ya=Bt;function Za(e,t){var n=t(),r=me({h:{__:n,v:t}}),o=r[0].h,i=r[1];return Je(function(){o.__=n,o.v=t,Tr(o)&&i({h:o})},[e,n,t]),ie(function(){return Tr(o)&&i({h:o}),e(function(){Tr(o)&&i({h:o})})},[e]),n}function Tr(e){var t,n,r=e.v,o=e.__;try{var i=r();return!((t=o)===(n=i)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}var Pt={useState:me,useId:Ma,useReducer:ur,useEffect:ie,useLayoutEffect:Je,useInsertionEffect:Ga,useTransition:Ka,useDeferredValue:Wa,useSyncExternalStore:Za,startTransition:bo,useRef:K,useImperativeHandle:cr,useMemo:ae,useCallback:_e,useContext:ne,useDebugValue:_o,version:"17.0.2",Children:lr,render:$a,hydrate:ja,unmountComponentAtNode:Ba,createPortal:hn,createElement:te,createContext:be,createFactory:Fa,cloneElement:dr,createRef:ho,Fragment:De,isValidElement:Bt,isElement:Ya,isFragment:Ha,findDOMNode:Ua,Component:Pe,PureComponent:zn,memo:bn,forwardRef:it,flushSync:wo,unstable_batchedUpdates:go,StrictMode:qa,Suspense:un,SuspenseList:Mt,lazy:Na,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:za};const Fn=Object.freeze(Object.defineProperty({__proto__:null,Children:lr,Component:Pe,Fragment:De,PureComponent:zn,StrictMode:qa,Suspense:un,SuspenseList:Mt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:za,cloneElement:dr,createContext:be,createElement:te,createFactory:Fa,createPortal:hn,createRef:ho,default:Pt,findDOMNode:Ua,flushSync:wo,forwardRef:it,hydrate:ja,isElement:Ya,isFragment:Ha,isValidElement:Bt,lazy:Na,memo:bn,render:$a,startTransition:bo,unmountComponentAtNode:Ba,unstable_batchedUpdates:go,useCallback:_e,useContext:ne,useDebugValue:_o,useDeferredValue:Wa,useEffect:ie,useErrorBoundary:su,useId:Ma,useImperativeHandle:cr,useInsertionEffect:Ga,useLayoutEffect:Je,useMemo:ae,useReducer:ur,useRef:K,useState:me,useSyncExternalStore:Za,useTransition:Ka,version:Su},Symbol.toStringTag,{value:"Module"}));/**
* @remix-run/router v1.2.1
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function Hn(){return Hn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hn.apply(this,arguments)}var tt;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(tt||(tt={}));const pi="popstate";function Tu(e){e===void 0&&(e={});function t(o,i){let{pathname:a="/",search:u="",hash:s=""}=_t(o.location.hash.substr(1));return Gr("",{pathname:a,search:u,hash:s},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(o,i){let a=o.document.querySelector("base"),u="";if(a&&a.getAttribute("href")){let s=o.location.href,l=s.indexOf("#");u=l===-1?s:s.slice(0,l)}return u+"#"+(typeof i=="string"?i:Eo(i))}function r(o,i){xu(o.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(i)+")")}return Ou(t,n,r,e)}function ve(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function xu(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Cu(){return Math.random().toString(36).substr(2,8)}function mi(e){return{usr:e.state,key:e.key}}function Gr(e,t,n,r){return n===void 0&&(n=null),Hn({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?_t(t):t,{state:n,key:t&&t.key||r||Cu()})}function Eo(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function _t(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Au(e){let t=typeof window<"u"&&typeof window.location<"u"&&window.location.origin!=="null"?window.location.origin:window.location.href,n=typeof e=="string"?e:Eo(e);return ve(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}function Ou(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,u=tt.Pop,s=null;function l(){u=tt.Pop,s&&s({action:u,location:f.location})}function d(h,p){u=tt.Push;let m=Gr(f.location,h,p);n&&n(m,h);let _=mi(m),v=f.createHref(m);try{a.pushState(_,"",v)}catch{o.location.assign(v)}i&&s&&s({action:u,location:f.location})}function c(h,p){u=tt.Replace;let m=Gr(f.location,h,p);n&&n(m,h);let _=mi(m),v=f.createHref(m);a.replaceState(_,"",v),i&&s&&s({action:u,location:f.location})}let f={get action(){return u},get location(){return e(o,a)},listen(h){if(s)throw new Error("A history only accepts one active listener");return o.addEventListener(pi,l),s=h,()=>{o.removeEventListener(pi,l),s=null}},createHref(h){return t(o,h)},encodeLocation(h){let p=Au(typeof h=="string"?h:Eo(h));return{pathname:p.pathname,search:p.search,hash:p.hash}},push:d,replace:c,go(h){return a.go(h)}};return f}var _i;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(_i||(_i={}));function Mu(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?_t(t):t,o=Xa(r.pathname||"/",n);if(o==null)return null;let i=Va(e);Pu(i);let a=null;for(let u=0;a==null&&u<i.length;++u)a=zu(i[u],Bu(o));return a}function Va(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(i,a,u)=>{let s={relativePath:u===void 0?i.path||"":u,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};s.relativePath.startsWith("/")&&(ve(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),s.relativePath=s.relativePath.slice(r.length));let l=ft([r,s.relativePath]),d=n.concat(s);i.children&&i.children.length>0&&(ve(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+l+'".')),Va(i.children,t,d,l)),!(i.path==null&&!i.index)&&t.push({path:l,score:$u(l,i.index),routesMeta:d})};return e.forEach((i,a)=>{var u;if(i.path===""||!((u=i.path)!=null&&u.includes("?")))o(i,a);else for(let s of Ja(i.path))o(i,a,s)}),t}function Ja(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=Ja(r.join("/")),u=[];return u.push(...a.map(s=>s===""?i:[i,s].join("/"))),o&&u.push(...a),u.map(s=>e.startsWith("/")&&s===""?"/":s)}function Pu(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:ju(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Ru=/^:\w+$/,Lu=3,Du=2,Iu=1,Nu=10,ku=-2,vi=e=>e==="*";function $u(e,t){let n=e.split("/"),r=n.length;return n.some(vi)&&(r+=ku),t&&(r+=Du),n.filter(o=>!vi(o)).reduce((o,i)=>o+(Ru.test(i)?Lu:i===""?Iu:Nu),r)}function ju(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function zu(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let a=0;a<n.length;++a){let u=n[a],s=a===n.length-1,l=o==="/"?t:t.slice(o.length)||"/",d=Fu({path:u.relativePath,caseSensitive:u.caseSensitive,end:s},l);if(!d)return null;Object.assign(r,d.params);let c=u.route;i.push({params:r,pathname:ft([o,d.pathname]),pathnameBase:Yu(ft([o,d.pathnameBase])),route:c}),d.pathnameBase!=="/"&&(o=ft([o,d.pathnameBase]))}return i}function Fu(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Hu(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),u=o.slice(1);return{params:r.reduce((l,d,c)=>{if(d==="*"){let f=u[c]||"";a=i.slice(0,i.length-f.length).replace(/(.)\/+$/,"$1")}return l[d]=Uu(u[c]||"",d),l},{}),pathname:i,pathnameBase:a,pattern:e}}function Hu(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),So(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(a,u)=>(r.push(u),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function Bu(e){try{return decodeURI(e)}catch(t){return So(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Uu(e,t){try{return decodeURIComponent(e)}catch(n){return So(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function Xa(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function So(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function qu(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?_t(e):e;return{pathname:n?n.startsWith("/")?n:Wu(n,t):t,search:Zu(r),hash:Vu(o)}}function Wu(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function xr(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function Ku(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Gu(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=_t(e):(o=Hn({},e),ve(!o.pathname||!o.pathname.includes("?"),xr("?","pathname","search",o)),ve(!o.pathname||!o.pathname.includes("#"),xr("#","pathname","hash",o)),ve(!o.search||!o.search.includes("#"),xr("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,u;if(r||a==null)u=n;else{let c=t.length-1;if(a.startsWith("..")){let f=a.split("/");for(;f[0]==="..";)f.shift(),c-=1;o.pathname=f.join("/")}u=c>=0?t[c]:"/"}let s=qu(o,u),l=a&&a!=="/"&&a.endsWith("/"),d=(i||a===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(l||d)&&(s.pathname+="/"),s}const ft=e=>e.join("/").replace(/\/\/+/g,"/"),Yu=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Zu=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Vu=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class Ju{constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function Xu(e){return e instanceof Ju}const Qa=["post","put","patch","delete"],rp=new Set(Qa),Qu=["get",...Qa],op=new Set(Qu);const ip=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";/**
* React Router v6.6.2
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function Yr(){return Yr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yr.apply(this,arguments)}function ec(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const tc=typeof Object.is=="function"?Object.is:ec,{useState:nc,useEffect:rc,useLayoutEffect:oc,useDebugValue:ic}=Fn;function ac(e,t,n){const r=t(),[{inst:o},i]=nc({inst:{value:r,getSnapshot:t}});return oc(()=>{o.value=r,o.getSnapshot=t,Cr(o)&&i({inst:o})},[e,r,t]),rc(()=>(Cr(o)&&i({inst:o}),e(()=>{Cr(o)&&i({inst:o})})),[e]),ic(r),r}function Cr(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!tc(n,r)}catch{return!0}}function sc(e,t,n){return t()}const uc=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",cc=!uc,lc=cc?sc:ac,ap="useSyncExternalStore"in Fn?(e=>e.useSyncExternalStore)(Fn):lc,es=be(null),ts=be(null);const To=be(null),fr=be(null),Ut=be({outlet:null,matches:[]}),ns=be(null);function hr(){return ne(fr)!=null}function xo(){return hr()||ve(!1),ne(fr).location}function dc(){hr()||ve(!1);let{basename:e,navigator:t}=ne(To),{matches:n}=ne(Ut),{pathname:r}=xo(),o=JSON.stringify(Ku(n).map(u=>u.pathnameBase)),i=K(!1);return ie(()=>{i.current=!0}),_e(function(u,s){if(s===void 0&&(s={}),!i.current)return;if(typeof u=="number"){t.go(u);return}let l=Gu(u,JSON.parse(o),r,s.relative==="path");e!=="/"&&(l.pathname=l.pathname==="/"?e:ft([e,l.pathname])),(s.replace?t.replace:t.push)(l,s.state,s)},[e,t,o,r])}function sp(){let{matches:e}=ne(Ut),t=e[e.length-1];return t?t.params:{}}function fc(e,t){hr()||ve(!1);let{navigator:n}=ne(To),r=ne(ts),{matches:o}=ne(Ut),i=o[o.length-1],a=i?i.params:{},u=i?i.pathname:"/",s=i?i.pathnameBase:"/",l=i&&i.route,d=xo(),c;if(t){var f;let v=typeof t=="string"?_t(t):t;s==="/"||(f=v.pathname)!=null&&f.startsWith(s)||ve(!1),c=v}else c=d;let h=c.pathname||"/",p=s==="/"?h:h.slice(s.length)||"/",m=Mu(e,{pathname:p}),_=_c(m&&m.map(v=>Object.assign({},v,{params:Object.assign({},a,v.params),pathname:ft([s,n.encodeLocation?n.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?s:ft([s,n.encodeLocation?n.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),o,r||void 0);return t&&_?te(fr.Provider,{value:{location:Yr({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:tt.Pop}},_):_}function hc(){let e=wc(),t=Xu(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r};return te(De,null,te("h2",null,"Unhandled Thrown Error!"),te("h3",{style:{fontStyle:"italic"}},t),n?te("pre",{style:o},n):null,te("p",null,"💿 Hey developer 👋"),te("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",te("code",{style:i},"errorElement")," props on ",te("code",{style:i},"<Route>")))}class pc extends Pe{constructor(t){super(t),this.state={location:t.location,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location?{error:t.error,location:t.location}:{error:t.error||n.error,location:n.location}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?te(Ut.Provider,{value:this.props.routeContext},te(ns.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function mc(e){let{routeContext:t,match:n,children:r}=e,o=ne(es);return o&&o.static&&o.staticContext&&n.route.errorElement&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),te(Ut.Provider,{value:t},r)}function _c(e,t,n){if(t===void 0&&(t=[]),e==null)if(n!=null&&n.errors)e=n.matches;else return null;let r=e,o=n==null?void 0:n.errors;if(o!=null){let i=r.findIndex(a=>a.route.id&&(o==null?void 0:o[a.route.id]));i>=0||ve(!1),r=r.slice(0,Math.min(r.length,i+1))}return r.reduceRight((i,a,u)=>{let s=a.route.id?o==null?void 0:o[a.route.id]:null,l=n?a.route.errorElement||te(hc,null):null,d=t.concat(r.slice(0,u+1)),c=()=>te(mc,{match:a,routeContext:{outlet:i,matches:d}},s?l:a.route.element!==void 0?a.route.element:i);return n&&(a.route.errorElement||u===0)?te(pc,{location:n.location,component:l,error:s,children:c(),routeContext:{outlet:null,matches:d}}):c()},null)}var yi;(function(e){e.UseRevalidator="useRevalidator"})(yi||(yi={}));var Bn;(function(e){e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator"})(Bn||(Bn={}));function vc(e){let t=ne(ts);return t||ve(!1),t}function yc(e){let t=ne(Ut);return t||ve(!1),t}function gc(e){let t=yc(e),n=t.matches[t.matches.length-1];return n.route.id||ve(!1),n.route.id}function wc(){var e;let t=ne(ns),n=vc(Bn.UseRouteError),r=gc(Bn.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function bc(e){ve(!1)}function Ec(e){let{basename:t="/",children:n=null,location:r,navigationType:o=tt.Pop,navigator:i,static:a=!1}=e;hr()&&ve(!1);let u=t.replace(/^\/*/,"/"),s=ae(()=>({basename:u,navigator:i,static:a}),[u,i,a]);typeof r=="string"&&(r=_t(r));let{pathname:l="/",search:d="",hash:c="",state:f=null,key:h="default"}=r,p=ae(()=>{let m=Xa(l,u);return m==null?null:{pathname:m,search:d,hash:c,state:f,key:h}},[u,l,d,c,f,h]);return p==null?null:te(To.Provider,{value:s},te(fr.Provider,{children:n,value:{location:p,navigationType:o}}))}function up(e){let{children:t,location:n}=e,r=ne(es),o=r&&!t?r.router.routes:Zr(t);return fc(o,n)}var gi;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(gi||(gi={}));const cp=new Promise(()=>{});function Zr(e,t){t===void 0&&(t=[]);let n=[];return lr.forEach(e,(r,o)=>{if(!Bt(r))return;if(r.type===De){n.push.apply(n,Zr(r.props.children,t));return}r.type!==bc&&ve(!1),!r.props.index||!r.props.children||ve(!1);let i=[...t,o],a={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,hasErrorBoundary:r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle};r.props.children&&(a.children=Zr(r.props.children,i)),n.push(a)}),n}/**
* React Router DOM v6.6.2
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function Vr(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(o=>[n,o]):[[n,r]])},[]))}function Sc(e,t){let n=Vr(e);for(let r of t.keys())n.has(r)||t.getAll(r).forEach(o=>{n.append(r,o)});return n}function lp(e){let{basename:t,children:n,window:r}=e,o=K();o.current==null&&(o.current=Tu({window:r,v5Compat:!0}));let i=o.current,[a,u]=me({action:i.action,location:i.location});return Je(()=>i.listen(u),[i]),te(Ec,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:i})}var wi;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(wi||(wi={}));var bi;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(bi||(bi={}));function dp(e){let t=K(Vr(e)),n=xo(),r=ae(()=>Sc(n.search,t.current),[n.search]),o=dc(),i=_e((a,u)=>{const s=Vr(typeof a=="function"?a(r):a);o("?"+s,u)},[o,r]);return[r,i]}var fp=Tc;function Tc(e,t,n){var r=null,o=null,i=function(){r&&(clearTimeout(r),o=null,r=null)},a=function(){var s=o;i(),s&&s()},u=function(){if(!t)return e.apply(this,arguments);var s=this,l=arguments,d=n&&!r;if(i(),o=function(){e.apply(s,l)},r=setTimeout(function(){if(r=null,!d){var c=o;return o=null,c()}},t),d)return o()};return u.cancel=i,u.flush=a,u}/*!
* swiped-events.js - v@version@
* Pure JavaScript swipe events
* https://github.com/john-doherty/swiped-events
* @inspiration https://stackoverflow.com/questions/16348031/disable-scrolling-when-touch-moving-certain-element
* @author John Doherty <www.johndoherty.info>
* @license MIT
*/(function(e,t){"use strict";typeof e.CustomEvent!="function"&&(e.CustomEvent=function(h,p){p=p||{bubbles:!1,cancelable:!1,detail:void 0};var m=t.createEvent("CustomEvent");return m.initCustomEvent(h,p.bubbles,p.cancelable,p.detail),m},e.CustomEvent.prototype=e.Event.prototype),t.addEventListener("touchstart",d,!1),t.addEventListener("touchmove",c,!1),t.addEventListener("touchend",l,!1);var n=null,r=null,o=null,i=null,a=null,u=null,s=0;function l(h){if(u===h.target){var p=parseInt(f(u,"data-swipe-threshold","20"),10),m=f(u,"data-swipe-unit","px"),_=parseInt(f(u,"data-swipe-timeout","500"),10),v=Date.now()-a,y="",T=h.changedTouches||h.touches||[];if(m==="vh"&&(p=Math.round(p/100*t.documentElement.clientHeight)),m==="vw"&&(p=Math.round(p/100*t.documentElement.clientWidth)),Math.abs(o)>Math.abs(i)?Math.abs(o)>p&&v<_&&(o>0?y="swiped-left":y="swiped-right"):Math.abs(i)>p&&v<_&&(i>0?y="swiped-up":y="swiped-down"),y!==""){var M={dir:y.replace(/swiped-/,""),touchType:(T[0]||{}).touchType||"direct",fingers:s,xStart:parseInt(n,10),xEnd:parseInt((T[0]||{}).clientX||-1,10),yStart:parseInt(r,10),yEnd:parseInt((T[0]||{}).clientY||-1,10)};u.dispatchEvent(new CustomEvent("swiped",{bubbles:!0,cancelable:!0,detail:M})),u.dispatchEvent(new CustomEvent(y,{bubbles:!0,cancelable:!0,detail:M}))}n=null,r=null,a=null}}function d(h){h.target.getAttribute("data-swipe-ignore")!=="true"&&(u=h.target,a=Date.now(),n=h.touches[0].clientX,r=h.touches[0].clientY,o=0,i=0,s=h.touches.length)}function c(h){if(!(!n||!r)){var p=h.touches[0].clientX,m=h.touches[0].clientY;o=n-p,i=r-m}}function f(h,p,m){for(;h&&h!==t.documentElement;){var _=h.getAttribute(p);if(_)return _;h=h.parentNode}return m}})(window,document);const xc=Symbol(),Co=Symbol(),Jt="a",cn="w";let Cc=(e,t)=>new Proxy(e,t);const Jr=Object.getPrototypeOf,Xr=new WeakMap,rs=e=>e&&(Xr.has(e)?Xr.get(e):Jr(e)===Object.prototype||Jr(e)===Array.prototype),Un=e=>typeof e=="object"&&e!==null,Ei=new WeakMap,Ao=e=>e[Co]||e,os=(e,t,n)=>{if(!rs(e))return e;const r=Ao(e),o=(a=>Object.isFrozen(a)||Object.values(Object.getOwnPropertyDescriptors(a)).some(u=>!u.writable))(r);let i=n&&n.get(r);return i&&i[1].f===o||(i=((a,u)=>{const s={f:u};let l=!1;const d=(f,h)=>{if(!l){let p=s[Jt].get(a);if(p||(p={},s[Jt].set(a,p)),f===cn)p[cn]=!0;else{let m=p[f];m||(m=new Set,p[f]=m),m.add(h)}}},c={get:(f,h)=>h===Co?a:(d("k",h),os(Reflect.get(f,h),s[Jt],s.c)),has:(f,h)=>h===xc?(l=!0,s[Jt].delete(a),!0):(d("h",h),Reflect.has(f,h)),getOwnPropertyDescriptor:(f,h)=>(d("o",h),Reflect.getOwnPropertyDescriptor(f,h)),ownKeys:f=>(d(cn),Reflect.ownKeys(f))};return u&&(c.set=c.deleteProperty=()=>!1),[c,s]})(r,o),i[1].p=Cc(o?(a=>{let u=Ei.get(a);if(!u){if(Array.isArray(a))u=Array.from(a);else{const s=Object.getOwnPropertyDescriptors(a);Object.values(s).forEach(l=>{l.configurable=!0}),u=Object.create(Jr(a),s)}Ei.set(a,u)}return u})(r):r,i[0]),n&&n.set(r,i)),i[1][Jt]=t,i[1].c=n,i[1].p},is=(e,t,n,r)=>{if(Object.is(e,t))return!1;if(!Un(e)||!Un(t))return!0;const o=n.get(Ao(e));if(!o)return!0;if(r){const a=r.get(e);if(a&&a.n===t)return a.g;r.set(e,{n:t,g:!1})}let i=null;try{for(const a of o.h||[])if(i=Reflect.has(e,a)!==Reflect.has(t,a),i)return i;if(o[cn]===!0){if(i=((a,u)=>{const s=Reflect.ownKeys(a),l=Reflect.ownKeys(u);return s.length!==l.length||s.some((d,c)=>d!==l[c])})(e,t),i)return i}else for(const a of o.o||[])if(i=!!Reflect.getOwnPropertyDescriptor(e,a)!=!!Reflect.getOwnPropertyDescriptor(t,a),i)return i;for(const a of o.k||[])if(i=is(e[a],t[a],n,r),i)return i;return i===null&&(i=!0),i}finally{r&&r.set(e,{n:t,g:i})}};const Ac=e=>rs(e)&&e[Co]||null,Si=(e,t=!0)=>{Xr.set(e,t)},Oc=(e,t,n)=>{const r=[],o=new WeakSet,i=(a,u)=>{if(o.has(a))return;Un(a)&&o.add(a);const s=Un(a)&&t.get(Ao(a));if(s){var l,d;if((l=s.h)==null||l.forEach(f=>{const h=`:has(${String(f)})`;r.push(u?[...u,h]:[h])}),s[cn]===!0){const f=":ownKeys";r.push(u?[...u,f]:[f])}else{var c;(c=s.o)==null||c.forEach(f=>{const h=`:hasOwn(${String(f)})`;r.push(u?[...u,h]:[h])})}(d=s.k)==null||d.forEach(f=>{n&&!("value"in(Object.getOwnPropertyDescriptor(a,f)||{}))||i(a[f],u?[...u,f]:[f])})}else u&&r.push(u)};return i(e),r};var qn={PHANPY_CLIENT_NAME:"Phanpy",PHANPY_WEBSITE:"https://phanpy.social",PHANPY_LINGVA_INSTANCES:"lingva.phanpy.social lingva.lunar.icu lingva.garudalinux.org translate.plausibility.cloud",PHANPY_PRIVACY_POLICY_URL:"https://github.com/cheeaun/phanpy/blob/main/PRIVACY.MD",VITE_APP_ENV:"production",BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const Ar=e=>typeof e=="object"&&e!==null,dt=new WeakMap,Cn=new WeakSet,Mc=(e=Object.is,t=(l,d)=>new Proxy(l,d),n=l=>Ar(l)&&!Cn.has(l)&&(Array.isArray(l)||!(Symbol.iterator in l))&&!(l instanceof WeakMap)&&!(l instanceof WeakSet)&&!(l instanceof Error)&&!(l instanceof Number)&&!(l instanceof Date)&&!(l instanceof String)&&!(l instanceof RegExp)&&!(l instanceof ArrayBuffer),r=l=>{switch(l.status){case"fulfilled":return l.value;case"rejected":throw l.reason;default:throw l}},o=new WeakMap,i=(l,d,c=r)=>{const f=o.get(l);if((f==null?void 0:f[0])===d)return f[1];const h=Array.isArray(l)?[]:Object.create(Object.getPrototypeOf(l));return Si(h,!0),o.set(l,[d,h]),Reflect.ownKeys(l).forEach(p=>{const m=Reflect.get(l,p);Cn.has(m)?(Si(m,!1),h[p]=m):m instanceof Promise?Object.defineProperty(h,p,{get(){return c(m)}}):dt.has(m)?h[p]=Qr(m,c):h[p]=m}),Object.freeze(h)},a=new WeakMap,u=[1,1],s=l=>{if(!Ar(l))throw new Error("object required");const d=a.get(l);if(d)return d;let c=u[0];const f=new Set,h=(S,L=++u[0])=>{c!==L&&(c=L,f.forEach(w=>w(S,L)))};let p=u[1];const m=(S=++u[1])=>(p!==S&&!f.size&&(p=S,v.forEach(([L])=>{const w=L[1](S);w>c&&(c=w)})),c),_=S=>(L,w)=>{const I=[...L];I[1]=[S,...I[1]],h(I,w)},v=new Map,y=(S,L)=>{if((qn&&"production")!=="production"&&v.has(S))throw new Error("prop listener already exists");if(f.size){const w=L[3](_(S));v.set(S,[L,w])}else v.set(S,[L])},T=S=>{var L;const w=v.get(S);w&&(v.delete(S),(L=w[1])==null||L.call(w))},M=S=>(f.add(S),f.size===1&&v.forEach(([w,I],q)=>{if((qn&&"production")!=="production"&&I)throw new Error("remove already exists");const D=w[3](_(q));v.set(q,[w,D])}),()=>{f.delete(S),f.size===0&&v.forEach(([w,I],q)=>{I&&(I(),v.set(q,[w]))})}),x=Array.isArray(l)?[]:Object.create(Object.getPrototypeOf(l)),C=t(x,{deleteProperty(S,L){const w=Reflect.get(S,L);T(L);const I=Reflect.deleteProperty(S,L);return I&&h(["delete",[L],w]),I},set(S,L,w,I){var q;const D=Reflect.has(S,L),A=Reflect.get(S,L,I);if(D&&e(A,w))return!0;T(L),Ar(w)&&(w=Ac(w)||w);let O=w;if(!((q=Object.getOwnPropertyDescriptor(S,L))!=null&&q.set))if(w instanceof Promise)w.then(P=>{w.status="fulfilled",w.value=P,h(["resolve",[L],P])}).catch(P=>{w.status="rejected",w.reason=P,h(["reject",[L],P])});else{!dt.has(w)&&n(w)&&(O=Rc(w));const P=!Cn.has(O)&&dt.get(O);P&&y(L,P)}return Reflect.set(S,L,O,I),h(["set",[L],w,A]),!0}});a.set(l,C);const B=[x,m,i,M];return dt.set(C,B),Reflect.ownKeys(l).forEach(S=>{const L=Object.getOwnPropertyDescriptor(l,S);L.get||L.set?Object.defineProperty(x,S,L):C[S]=l[S]}),C})=>[s,dt,Cn,e,t,n,r,o,i,a,u],[Pc]=Mc();function Rc(e={}){return Pc(e)}function as(e,t,n){const r=dt.get(e);(qn&&"production")!=="production"&&!r&&console.warn("Please use proxy object");let o;const i=[],a=r[3];let u=!1;const l=a(d=>{if(i.push(d),n){t(i.splice(0));return}o||(o=Promise.resolve().then(()=>{o=void 0,u&&t(i.splice(0))}))});return u=!0,()=>{u=!1,l()}}function Qr(e,t){const n=dt.get(e);(qn&&"production")!=="production"&&!n&&console.warn("Please use proxy object");const[r,o,i]=n;return i(r,o(),t)}var at=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Lc(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Oo={exports:{}},ss={};const Dc=Lc(Fn);/**
* @license React
* use-sync-external-store-shim.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var jt=Dc;function Ic(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Nc=typeof Object.is=="function"?Object.is:Ic,kc=jt.useState,$c=jt.useEffect,jc=jt.useLayoutEffect,zc=jt.useDebugValue;function Fc(e,t){var n=t(),r=kc({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return jc(function(){o.value=n,o.getSnapshot=t,Or(o)&&i({inst:o})},[e,n,t]),$c(function(){return Or(o)&&i({inst:o}),e(function(){Or(o)&&i({inst:o})})},[e]),zc(n),n}function Or(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Nc(e,n)}catch{return!0}}function Hc(e,t){return t()}var Bc=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Hc:Fc,hp=ss.useSyncExternalStore=jt.useSyncExternalStore!==void 0?jt.useSyncExternalStore:Bc,pp=Oo.exports;Oo.exports=ss;var Uc=Oo.exports;const qc=Xe(Uc);var Wc={PHANPY_CLIENT_NAME:"Phanpy",PHANPY_WEBSITE:"https://phanpy.social",PHANPY_LINGVA_INSTANCES:"lingva.phanpy.social lingva.lunar.icu lingva.garudalinux.org translate.plausibility.cloud",PHANPY_PRIVACY_POLICY_URL:"https://github.com/cheeaun/phanpy/blob/main/PRIVACY.MD",VITE_APP_ENV:"production",BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{use:Ti}=Pt,{useSyncExternalStore:Kc}=qc,Gc=(e,t)=>{const n=K();ie(()=>{n.current=Oc(e,t,!0)}),_o(n.current)};function mp(e,t){const n=t==null?void 0:t.sync,r=K(),o=K();let i=!0;const a=Kc(_e(l=>{const d=as(e,l,n);return l(),d},[e,n]),()=>{const l=Qr(e,Ti);try{if(!i&&r.current&&o.current&&!is(r.current,l,o.current,new WeakMap))return r.current}catch{}return l},()=>Qr(e,Ti));i=!1;const u=new WeakMap;ie(()=>{r.current=a,o.current=u}),(Wc&&"production")!=="production"&&Gc(a,u);const s=ae(()=>new WeakMap,[]);return os(a,u,s)}var Yc=0,_p=Array.isArray;function se(e,t,n,r,o,i){var a,u,s={};for(u in t)u=="ref"?a=t[u]:s[u]=t[u];var l={type:e,props:s,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--Yc,__i:-1,__u:0,__source:o,__self:i};if(typeof e=="function"&&(a=e.defaultProps))for(u in a)s[u]===void 0&&(s[u]=a[u]);return W.vnode&&W.vnode(l),l}function eo(){return eo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eo.apply(this,arguments)}var us=["shift","alt","meta","mod","ctrl"],Zc={esc:"escape",return:"enter",".":"period",",":"comma","-":"slash"," ":"space","`":"backquote","#":"backslash","+":"bracketright",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function nt(e){return(Zc[e]||e).trim().toLowerCase().replace(/key|digit|numpad|arrow/,"")}function Vc(e){return us.includes(e)}function Mr(e,t){return t===void 0&&(t=","),e.split(t)}function Pr(e,t,n){t===void 0&&(t="+");var r=e.toLocaleLowerCase().split(t).map(function(a){return nt(a)}),o={alt:r.includes("alt"),ctrl:r.includes("ctrl")||r.includes("control"),shift:r.includes("shift"),meta:r.includes("meta"),mod:r.includes("mod")},i=r.filter(function(a){return!us.includes(a)});return eo({},o,{keys:i,description:n})}(function(){typeof document<"u"&&(document.addEventListener("keydown",function(e){e.key!==void 0&&cs([nt(e.key),nt(e.code)])}),document.addEventListener("keyup",function(e){e.key!==void 0&&ls([nt(e.key),nt(e.code)])})),typeof window<"u"&&window.addEventListener("blur",function(){rt.clear()})})();var rt=new Set;function Mo(e){return Array.isArray(e)}function Jc(e,t){t===void 0&&(t=",");var n=Mo(e)?e:e.split(t);return n.every(function(r){return rt.has(r.trim().toLowerCase())})}function cs(e){var t=Array.isArray(e)?e:[e];rt.has("meta")&&rt.forEach(function(n){return!Vc(n)&&rt.delete(n.toLowerCase())}),t.forEach(function(n){return rt.add(n.toLowerCase())})}function ls(e){var t=Array.isArray(e)?e:[e];e==="meta"?rt.clear():t.forEach(function(n){return rt.delete(n.toLowerCase())})}function Xc(e,t,n){(typeof n=="function"&&n(e,t)||n===!0)&&e.preventDefault()}function Qc(e,t,n){return typeof n=="function"?n(e,t):n===!0||n===void 0}function el(e){return ds(e,["input","textarea","select"])}function ds(e,t){var n=e.target;t===void 0&&(t=!1);var r=n&&n.tagName;return Mo(t)?!!(r&&t&&t.some(function(o){return o.toLowerCase()===r.toLowerCase()})):!!(r&&t&&t===!0)}function tl(e,t){return e.length===0&&t?(console.warn('A hotkey has the "scopes" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a <HotkeysProvider>'),!0):t?e.some(function(n){return t.includes(n)})||e.includes("*"):!0}var nl=function(t,n,r){r===void 0&&(r=!1);var o=n.alt,i=n.meta,a=n.mod,u=n.shift,s=n.ctrl,l=n.keys,d=t.key,c=t.code,f=t.ctrlKey,h=t.metaKey,p=t.shiftKey,m=t.altKey,_=nt(c),v=d.toLowerCase();if(!(l!=null&&l.includes(_))&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(_))return!1;if(!r){if(o===!m&&v!=="alt"||u===!p&&v!=="shift")return!1;if(a){if(!h&&!f)return!1}else if(i===!h&&v!=="meta"&&v!=="os"||s===!f&&v!=="ctrl"&&v!=="control")return!1}return l&&l.length===1&&(l.includes(v)||l.includes(_))?!0:l?Jc(l):!l},rl=be(void 0),ol=function(){return ne(rl)};function fs(e,t){return e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(e).length===Object.keys(t).length&&Object.keys(e).reduce(function(n,r){return n&&fs(e[r],t[r])},!0):e===t}var il=be({hotkeys:[],enabledScopes:[],toggleScope:function(){},enableScope:function(){},disableScope:function(){}}),al=function(){return ne(il)};function sl(e){var t=K(void 0);return fs(t.current,e)||(t.current=e),t.current}var xi=function(t){t.stopPropagation(),t.preventDefault(),t.stopImmediatePropagation()},ul=typeof window<"u"?Je:ie;function vp(e,t,n,r){var o=K(null),i=K(!1),a=n instanceof Array?r instanceof Array?void 0:r:n,u=Mo(e)?e.join(a==null?void 0:a.splitKey):e,s=n instanceof Array?n:r instanceof Array?r:void 0,l=_e(t,s??[]),d=K(l);s?d.current=l:d.current=t;var c=sl(a),f=al(),h=f.enabledScopes,p=ol();return ul(function(){if(!((c==null?void 0:c.enabled)===!1||!tl(h,c==null?void 0:c.scopes))){var m=function(M,x){var b;if(x===void 0&&(x=!1),!(el(M)&&!ds(M,c==null?void 0:c.enableOnFormTags))){if(o.current!==null){var C=o.current.getRootNode();if((C instanceof Document||C instanceof ShadowRoot)&&C.activeElement!==o.current&&!o.current.contains(C.activeElement)){xi(M);return}}(b=M.target)!=null&&b.isContentEditable&&!(c!=null&&c.enableOnContentEditable)||Mr(u,c==null?void 0:c.splitKey).forEach(function(B){var S,L=Pr(B,c==null?void 0:c.combinationKey);if(nl(M,L,c==null?void 0:c.ignoreModifiers)||(S=L.keys)!=null&&S.includes("*")){if(c!=null&&c.ignoreEventWhen!=null&&c.ignoreEventWhen(M)||x&&i.current)return;if(Xc(M,L,c==null?void 0:c.preventDefault),!Qc(M,L,c==null?void 0:c.enabled)){xi(M);return}d.current(M,L),x||(i.current=!0)}})}},_=function(M){M.key!==void 0&&(cs(nt(M.code)),((c==null?void 0:c.keydown)===void 0&&(c==null?void 0:c.keyup)!==!0||c!=null&&c.keydown)&&m(M))},v=function(M){M.key!==void 0&&(ls(nt(M.code)),i.current=!1,c!=null&&c.keyup&&m(M,!0))},y=o.current||(a==null?void 0:a.document)||document;return y.addEventListener("keyup",v),y.addEventListener("keydown",_),p&&Mr(u,c==null?void 0:c.splitKey).forEach(function(T){return p.addHotkey(Pr(T,c==null?void 0:c.combinationKey,c==null?void 0:c.description))}),function(){y.removeEventListener("keyup",v),y.removeEventListener("keydown",_),p&&Mr(u,c==null?void 0:c.splitKey).forEach(function(T){return p.removeHotkey(Pr(T,c==null?void 0:c.combinationKey,c==null?void 0:c.description))})}}},[u,c,h]),o}function cl(e,t){var n=Object.setPrototypeOf;n?n(e,t):e.__proto__=t}function ll(e,t){t===void 0&&(t=e.constructor);var n=Error.captureStackTrace;n&&n(e,t)}var dl=function(){var e=function(n,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,i){o.__proto__=i}||function(o,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(o[a]=i[a])},e(n,r)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),qt=function(e){dl(t,e);function t(n,r){var o=this.constructor,i=e.call(this,n,r)||this;return Object.defineProperty(i,"name",{value:o.name,enumerable:!1,configurable:!0}),cl(i,o.prototype),ll(i),i}return t}(Error);var to=function(e,t){return to=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},to(e,t)};function fl(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");to(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var fe=function(){return fe=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},fe.apply(this,arguments)};function Wn(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}function hl(e){return e.toLowerCase()}var pl=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],ml=/[^A-Z0-9]+/gi;function hs(e,t){t===void 0&&(t={});for(var n=t.splitRegexp,r=n===void 0?pl:n,o=t.stripRegexp,i=o===void 0?ml:o,a=t.transform,u=a===void 0?hl:a,s=t.delimiter,l=s===void 0?" ":s,d=Ci(Ci(e,r,"$1\0$2"),i,"\0"),c=0,f=d.length;d.charAt(c)==="\0";)c++;for(;d.charAt(f-1)==="\0";)f--;return d.slice(c,f).split("\0").map(u).join(l)}function Ci(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce(function(r,o){return r.replace(o,n)},e)}function ps(e,t){var n=e.charAt(0),r=e.substr(1).toLowerCase();return t>0&&n>="0"&&n<="9"?"_"+n+r:""+n.toUpperCase()+r}function _l(e,t){return t===void 0&&(t={}),hs(e,fe({delimiter:"",transform:ps},t))}function vl(e,t){return t===0?e.toLowerCase():ps(e,t)}function yl(e,t){return t===void 0&&(t={}),_l(e,fe({transform:vl},t))}function gl(e,t){return t===void 0&&(t={}),hs(e,fe({delimiter:"."},t))}function Po(e,t){return t===void 0&&(t={}),gl(e,fe({delimiter:"_"},t))}var wl=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")};const Ro=Xe(wl);function bl(){let e,t;const n=new Promise((...r)=>[e,t]=r);return Object.freeze({resolve:e,reject:t,promise:n})}function El(e,t){const n=[],r=[],o=e((...d)=>{const c=r.shift();c?c.resolve({value:d,done:!1}):n.push(d)}),i=t==null?void 0:t.signal;let a=!1,u=null;const s=()=>{u=new Error("Abort Error")},l=()=>{o==null||o(),i==null||i.removeEventListener("abort",s)};return i==null||i.addEventListener("abort",s,{once:!0}),{async next(){const d=n.shift();if(d)return{value:d,done:!1};if(a)return{value:void 0,done:!0};if(u)return Promise.reject(u);const c=bl();return r.push(c),c.promise},async return(){a=!0,l();for(const d of r)d.resolve({value:void 0,done:!0});return{value:void 0,done:!0}},async throw(d){return u=d,l(),{value:void 0,done:!0}},[Symbol.asyncIterator](){return this}}}class ht extends qt{}class Ai extends qt{constructor(t,n,r,o){super(t,o),this.contentType=n,this.data=r}}class ms extends qt{constructor(t,n){super(t.message,n),this.statusCode=t.statusCode,this.message=t.message,this.description=t.description,this.additionalProperties=t.additionalProperties,this.details=t.details}}class _s extends qt{}class Oi extends qt{constructor(t,n){super(t,n),this.message=t}}function vs(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function $e(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function u(d){try{l(r.next(d))}catch(c){a(c)}}function s(d){try{l(r.throw(d))}catch(c){a(c)}}function l(d){d.done?i(d.value):o(d.value).then(u,s)}l((r=r.apply(e,t||[])).next())})}function Mi(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Te(e){return this instanceof Te?(this.v=e,this):new Te(e)}function Kn(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o={},a("next"),a("throw"),a("return"),o[Symbol.asyncIterator]=function(){return this},o;function a(f){r[f]&&(o[f]=function(h){return new Promise(function(p,m){i.push([f,h,p,m])>1||u(f,h)})})}function u(f,h){try{s(r[f](h))}catch(p){c(i[0][3],p)}}function s(f){f.value instanceof Te?Promise.resolve(f.value.v).then(l,d):c(i[0][2],f)}function l(f){u("next",f)}function d(f){u("throw",f)}function c(f,h){f(h),i.shift(),i.length&&u(i[0][0],i[0][1])}}function Gn(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Mi=="function"?Mi(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(a){return new Promise(function(u,s){a=e[i](a),o(u,s,a.done,a.value)})}}function o(i,a,u,s){Promise.resolve(s).then(function(l){i({value:l,done:u})},a)}}const ys=e=>new Promise(t=>setTimeout(()=>t(),e));function Sl(){}class Tl extends qt{constructor(t,n){super(`Maximum number of attempts reached: ${t}`,n)}}class xl{constructor(t={}){this.props=t,this.attempts=0}sleep(){return $e(this,void 0,void 0,function*(){if(this.attempts>=this.maxAttempts)throw new Tl(this.attempts);yield ys(this.getTimeout()),this.attempts++})}clear(){this.attempts=0}get factor(){var t;return(t=this.props.factor)!==null&&t!==void 0?t:1e3}get base(){var t;return(t=this.props.base)!==null&&t!==void 0?t:2}get maxAttempts(){var t;return(t=this.props.maxAttempts)!==null&&t!==void 0?t:Number.POSITIVE_INFINITY}getTimeout(){return this.factor*Math.pow(this.base,this.attempts)}values(){return Kn(this,arguments,function*(){for(;this.attempts<this.maxAttempts;)yield yield Te(this.sleep())})}[Symbol.asyncIterator](){return this.values()}}const Cl=()=>{let e,t;return{promise:new Promise((r,o)=>{e=r,t=o}),resolve:e,reject:t}},Al=e=>{const t=new Map;for(const n of e.split(",")){const r=n.match(/<([^>]+)>;\s*rel="([^"]+)"/);r&&t.set(r[2],r[1])}return t};class Yn{constructor(t,n,r,o,i="next"){this.http=t,this.nextPath=n,this.nextParams=r,this.meta=o,this.direction=i}next(){return $e(this,void 0,void 0,function*(){if(this.nextPath==null)return{done:!0,value:void 0};const t=yield this.http.request(Object.assign({method:"GET",path:this.nextPath,search:this.nextParams},this.meta)),n=this.getLink(t.headers.get("link"));return this.nextPath=n==null?void 0:n.pathname,this.nextParams=n==null?void 0:n.search.replace(/^\?/,""),{done:!1,value:yield t.data}})}return(t){return $e(this,void 0,void 0,function*(){return this.clear(),{done:!0,value:yield t}})}throw(t){return $e(this,void 0,void 0,function*(){throw this.clear(),t})}then(t=Promise.resolve.bind(Promise),n=Promise.reject.bind(Promise)){return this.next().then(r=>t(r.value),n)}values(){return this[Symbol.asyncIterator]()}getDirection(){return this.direction}setDirection(t){return new Yn(this.http,this.nextPath,this.nextParams,this.meta,t)}[Symbol.asyncIterator](){return this}getLink(t){if(t==null)return;const n=Al(t).get(this.direction);if(n!=null)return new URL(n)}clear(){this.nextPath=void 0,this.nextParams=void 0}clone(){return new Yn(this.http,this.nextPath,this.nextParams,this.meta,this.direction)}}class Ol{constructor(t,n={}){this.http=t,this.params=n,this.waitForMediaAttachment=r=>$e(this,void 0,void 0,function*(){let o;const i=AbortSignal.timeout(this.mediaTimeout);for(;o==null;){if(i.aborted)throw new _s(`Media processing timed out of ${this.mediaTimeout}ms`);try{yield ys(1e3);const a=yield this.http.get(`/api/v1/media/${r}`);a.url!=null&&(o=a)}catch(a){if(a instanceof ms&&a.statusCode===404)continue;throw a}}return o})}dispatch(t){const n=this.toPrimitiveAction(t.type),r=this.isPrimitiveAction(t.type)?t.path:t.path+"/"+Po(t.type),o=this.inferEncoding(n,r),i=Object.assign(Object.assign({},t.meta),{encoding:o});switch(n){case"fetch":return this.http.get(r,t.data,i);case"create":return r==="/api/v2/media"?this.http.post(r,t.data,i).then(a=>this.waitForMediaAttachment(a.id)):this.http.post(r,t.data,i);case"update":return this.http.patch(r,t.data,i);case"remove":return this.http.delete(r,t.data,i);case"list":return new Yn(this.http,r,t.data)}}isPrimitiveAction(t){switch(t){case"fetch":case"create":case"update":case"remove":case"list":return!0;default:return!1}}toPrimitiveAction(t){if(this.isPrimitiveAction(t))return t;switch(t){case"lookup":case"verify_credentials":return"fetch";case"update_credentials":return"update";default:return"create"}}inferEncoding(t,n){return t==="create"&&n==="/api/v1/accounts"||t==="update"&&n==="/api/v1/accounts/update_credentials"||t==="create"&&n==="/api/v1/email"||t==="create"&&n==="/api/v1/featured_tag"||t==="create"&&n==="/api/v1/media"||t==="create"&&n==="/api/v2/media"?"multipart-form":"json"}get mediaTimeout(){var t;return(t=this.params.mediaTimeout)!==null&&t!==void 0?t:60*1e3}}function Ml(e){return e.readyState===Ro.OPEN?Promise.resolve():new Promise((t,n)=>{const r=a=>{n(a)},o=()=>{n(new Error("WebSocket closed"))},i=()=>{t()};e.addEventListener("error",r,{once:!0}),e.addEventListener("close",o,{once:!0}),e.addEventListener("open",i,{once:!0})})}function Pl(e){return e.readyState===Ro.CLOSED?Promise.resolve():new Promise(t=>{const n=()=>{t()};e.addEventListener("error",n,{once:!0}),e.addEventListener("close",n,{once:!0})})}class Rl{constructor(t,n){this.props=t,this.logger=n,this.queue=[],this.disableRetry=!1,this.initialized=!1,this.init=()=>$e(this,void 0,void 0,function*(){var r,o,i,a,u,s,l,d,c,f;if(!this.initialized){this.initialized=!0;try{for(var h=!0,p=Gn(this.backoff),m;m=yield p.next(),r=m.done,!r;h=!0){a=m.value,h=!1;const _=a;(u=this.ws)===null||u===void 0||u.close();try{(s=this.logger)===null||s===void 0||s.log("info","Connecting to WebSocket...");{const v=(l=this.props.implementation)!==null&&l!==void 0?l:Ro,y=new v(...this.props.constructorParameters);yield Ml(y),this.ws=y}(d=this.logger)===null||d===void 0||d.log("info","Connected to WebSocket");for(const{resolve:v}of this.queue)v(this.ws);this.queue=[],yield Pl(this.ws),(c=this.logger)===null||c===void 0||c.log("info","WebSocket closed"),this.backoff.clear()}catch(v){(f=this.logger)===null||f===void 0||f.log("error","WebSocket error:",v)}if(this.disableRetry)break}}catch(_){o={error:_}}finally{try{!h&&!r&&(i=p.return)&&(yield i.call(p))}finally{if(o)throw o.error}}for(const{reject:_}of this.queue)_(new Oi(`Failed to connect to WebSocket after ${this.props.maxAttempts} attempts`));this.queue=[]}}),this.backoff=new xl({maxAttempts:this.props.maxAttempts})}canAcquire(){return!this.disableRetry}acquire(){return $e(this,void 0,void 0,function*(){if(this.init(),this.ws!=null)return this.ws;const t=Cl();return this.queue.push(t),yield t.promise})}close(){var t;this.disableRetry=!0,(t=this.ws)===null||t===void 0||t.close(),this.backoff.clear();for(const{reject:n}of this.queue)n(new Oi("WebSocket closed"));this.queue=[]}}function Ll(e){return Kn(this,arguments,function*(){var n,r,o,i;const a=f=>$e(this,void 0,void 0,function*(){if(s.return==null)throw new ht("events.return is undefined");yield s.return(f)}),u=f=>$e(this,void 0,void 0,function*(){if(s.return==null)throw new ht("events.return is undefined");yield s.return(f)}),s=El(f=>(e.addEventListener("message",f),e.addEventListener("error",u),e.addEventListener("close",a),()=>{e.removeEventListener("message",f),e.removeEventListener("error",u),e.removeEventListener("close",a)}));try{for(var l=!0,d=Gn(s),c;c=yield Te(d.next()),n=c.done,!n;l=!0){i=c.value,l=!1;const[f]=i;yield yield Te(f)}}catch(f){r={error:f}}finally{try{!l&&!n&&(o=d.return)&&(yield Te(o.call(d)))}finally{if(r)throw r.error}}})}class Dl{constructor(t,n,r,o,i){this.connector=t,this.serializer=n,this.stream=r,this.logger=o,this.params=i}values(){var t,n,r;return Kn(this,arguments,function*(){var i,a,u,s;for((t=this.logger)===null||t===void 0||t.log("info","Subscribing to stream",this.stream);this.connector.canAcquire();){this.connection=yield Te(this.connector.acquire());const f=Ll(this.connection),h=this.serializer.serialize("json",Object.assign({type:"subscribe",stream:this.stream},this.params));(n=this.logger)===null||n===void 0||n.log("debug","↑ WEBSOCKET",h),this.connection.send(h);try{for(var l=!0,d=(a=void 0,Gn(this.transformIntoEvents(f))),c;c=yield Te(d.next()),i=c.done,!i;l=!0){s=c.value,l=!1;const p=s;this.matches(p)&&((r=this.logger)===null||r===void 0||r.log("debug","↓ WEBSOCKET",p),yield yield Te(p))}}catch(p){a={error:p}}finally{try{!l&&!i&&(u=d.return)&&(yield Te(u.call(d)))}finally{if(a)throw a.error}}}})}unsubscribe(){if(this.connection==null)return;const t=this.serializer.serialize("json",Object.assign({type:"unsubscribe",stream:this.stream},this.params));this.connection.send(t)}[Symbol.asyncIterator](){return this.values()}[Symbol.dispose](){this.unsubscribe()}matches(t){var n;const r=(n=this.params)!==null&&n!==void 0?n:{},o=Object.values(r);return[this.stream,...o].every(a=>t.stream.includes(a))}transformIntoEvents(t){return Kn(this,arguments,function*(){var r,o,i,a;try{for(var u=!0,s=Gn(t),l;l=yield Te(s.next()),r=l.done,!r;u=!0){a=l.value,u=!1;const d=a,c=yield Te(this.parseMessage(d.data));yield yield Te(c)}}catch(d){o={error:d}}finally{try{!u&&!r&&(i=s.return)&&(yield Te(i.call(s)))}finally{if(o)throw o.error}}})}parseMessage(t){return $e(this,void 0,void 0,function*(){const n=this.serializer.deserialize("json",t);if("error"in n)throw new ht(n.error);const r=n.event==="delete"||n.payload==null?n.payload:this.serializer.deserialize("json",n.payload);return{stream:n.stream,event:n.event,payload:r}})}}class Il{constructor(t,n,r){this.connector=t,this.serializer=n,this.logger=r}dispatch(t){var n;if(t.type==="close")return this.connector.close(),{};if(t.type==="prepare")return this.connector.acquire();if(t.type!=="subscribe")throw new ht("Unknown action type");const r=(n=t.data)!==null&&n!==void 0?n:{},o=t.path.replace(/^\//,"").replaceAll("/",":");return new Dl(this.connector,this.serializer,o,this.logger,Object.assign({},r))}}const pn=(e,t=[])=>new Proxy(Sl,{get:kl(e,t),apply:$l(e,t)}),Nl=new Set(["then","catch","finally","inspect","toString","valueOf","toJSON","constructor","prototype","length","name","caller","callee","arguments","bind","apply","call"]),kl=(e,t)=>(n,r)=>{if(!(typeof r=="string"&&Nl.has(r))&&typeof r!="symbol")return r==="$select"?pn(e,[...t,r]):pn(e,[...t,Po(r)])},$l=(e,t)=>(n,r,o)=>{const i=t.pop();if(i==null)throw new Error("No action specified");if(i==="$select")return pn(e,[...t,...o]);const a="/"+t.join("/"),[u,s]=o;return e.dispatch({type:i,path:a,data:u,meta:s})},jl=e=>{const t=new AbortController;for(const n of e)n.addEventListener("abort",()=>t.abort(),{once:!0});return t.signal},zl=([e,...t])=>{const n=new Headers(e);for(const r of t)for(const[o,i]of new Headers(r).entries())n.set(o,i);return n},Fl=1e3*300;class Hl{constructor(t,n){this.props=t,this.serializer=n}mergeRequestInitWithDefaults(t={}){const n=Object.assign({},this.props.requestInit);{const{headers:r,signal:o}=t,i=vs(t,["headers","signal"]);Object.assign(n,i),n.headers=this.mergeHeadersWithDefaults(r),n.signal=this.mergeAbortSignalWithDefaults(o)}return n}resolvePath(t,n){const r=new URL(t,this.props.url);return typeof n=="string"?r.search=n:n!=null&&(r.search=this.serializer.serialize("querystring",n)),r}createTimeout(){var t;return AbortSignal.timeout((t=this.props.timeout)!==null&&t!==void 0?t:Fl)}mergeHeadersWithDefaults(t={}){var n,r;const o=zl([(r=(n=this.props.requestInit)===null||n===void 0?void 0:n.headers)!==null&&r!==void 0?r:{},t]),i=new Headers(o);return this.props.accessToken&&i.set("Authorization",`Bearer ${this.props.accessToken}`),new Headers(i)}mergeAbortSignalWithDefaults(t){var n;const o=[this.createTimeout()];return!((n=this.props.requestInit)===null||n===void 0)&&n.signal&&o.push(this.props.requestInit.signal),t!=null&&o.push(t),jl(o)}}class Bl{constructor(t,n){this.props=t,this.serializer=n}getProtocols(t=[]){return this.props.useInsecureAccessToken||this.props.accessToken==null?[...t]:[this.props.accessToken,...t]}resolvePath(t,n={}){const r=new URL(t,this.props.streamingApiUrl);return this.props.useInsecureAccessToken&&(n.accessToken=this.props.accessToken),r.search=this.serializer.serialize("querystring",n),r}getMaxAttempts(){return this.props.retry===!0||this.props.retry==null?Number.POSITIVE_INFINITY:this.props.retry===!1?1:this.props.retry}}class Ul{get(t,n,r={}){return this.request(Object.assign({method:"GET",path:t,search:n},r)).then(o=>o.data)}post(t,n,r={}){return this.request(Object.assign({method:"POST",path:t,body:n},r)).then(o=>o.data)}delete(t,n,r={}){return this.request(Object.assign({method:"DELETE",path:t,body:n},r)).then(o=>o.data)}put(t,n,r={}){return this.request(Object.assign({method:"PUT",path:t,body:n},r)).then(o=>o.data)}patch(t,n,r={}){return this.request(Object.assign({method:"PATCH",path:t,body:n},r)).then(o=>o.data)}}const Pi=e=>{var t;const n=(t=e.get("Content-Type"))===null||t===void 0?void 0:t.replace(/\s*;.*$/,"");if(typeof n=="string")switch(n){case"application/json":return"json";case"multipart/form-data":return"multipart-form";default:return}};class ql extends Ul{constructor(t,n,r){super(),this.serializer=t,this.config=n,this.logger=r}request(t){var n,r,o,i,a;return $e(this,void 0,void 0,function*(){const u=this.createRequest(t);try{(n=this.logger)===null||n===void 0||n.log("info",`${u.method} ${u.url}`),(r=this.logger)===null||r===void 0||r.log("debug"," body",{encoding:t.encoding,body:t.body});const s=yield fetch(u);if(!s.ok)throw s;const l=yield s.text(),d=Pi(s.headers);if(d==null)throw new ht("The server returned data with an unknown encoding.");const c=this.serializer.deserialize(d,l);return(o=this.logger)===null||o===void 0||o.log("info",`${u.method} ${u.url}`),(i=this.logger)===null||i===void 0||i.log("debug"," body",l),{headers:s.headers,data:c}}catch(s){throw(a=this.logger)===null||a===void 0||a.log("debug","HTTP failed",s),yield this.createError(s)}})}createRequest(t){const{method:n,path:r,search:o,encoding:i="json",requestInit:a={}}=t,u=this.config.resolvePath(r,o),s=this.serializer.serialize(i,t.body),l=this.config.mergeRequestInitWithDefaults(a),d=new Request(u,Object.assign({method:n,body:s},l));return typeof s=="string"&&i==="json"&&d.headers.set("Content-Type","application/json"),d}createError(t){return $e(this,void 0,void 0,function*(){if(t instanceof Response){const n=Pi(t.headers);if(n==null)throw new ht("The server returned data with an unknown encoding. The server may be down.");const r=this.serializer.deserialize(n,yield t.text()),{error:o,errorDescription:i,details:a}=r,u=vs(r,["error","errorDescription","details"]);return new ms({statusCode:t.status,message:o,description:i,details:a,additionalProperties:u},{cause:t})}return t!=null&&t.name==="AbortError"?new _s("Request timed out",{cause:t}):t})}}class Wl{constructor(t){this.level=t}log(t,n,r){if(!this.level.satisfies(t))return;const o=r==null?[n]:[n,r];switch(t){case"debug":{console.debug(...o);return}case"info":{console.info(...o);return}case"warn":{console.warn(...o);return}case"error":{console.error(...o);return}}}}const Me=Object.freeze({DEBUG:1,INFO:2,WARN:4,ERROR:8});class Rt{constructor(t){this.level=t}satisfies(t){switch(t){case"debug":return!!(this.level&Me.DEBUG);case"info":return!!(this.level&Me.INFO);case"warn":return!!(this.level&Me.WARN);case"error":return!!(this.level&Me.ERROR)}}static from(t){switch(t){case"debug":return new Rt(Me.DEBUG|Me.INFO|Me.WARN|Me.ERROR);case"info":return new Rt(Me.INFO|Me.WARN|Me.ERROR);case"warn":return new Rt(Me.WARN|Me.ERROR);case"error":return new Rt(Me.ERROR)}}}const gs=e=>{const t=Rt.from(e??"warn");return new Wl(t)},Lo=e=>typeof e=="object"&&e!==null&&e.constructor.name==="Object",no=(e,t="")=>Array.isArray(e)?e.map((n,r)=>no(n,t==""?r.toString():`${t}[${r}]`)).reduce((n,r)=>Object.assign(n,r),{}):Lo(e)?Object.entries(e).map(([n,r])=>no(r,t===""?n:`${t}[${n}]`)).reduce((n,r)=>Object.assign(n,r),{}):t===""?e:{[t]:e},ro=(e,t="")=>Array.isArray(e)?e.flatMap((n,r)=>ro(n,t==""?r.toString():`${t}[]`)):Lo(e)?Object.entries(e).flatMap(([n,r])=>ro(r,t===""?n:`${t}[${n}]`)):[[t,e]],Kl=e=>ro(e).filter(([,t])=>t!=null).map(([t,n])=>`${t}=${encodeURIComponent(n)}`).join("&"),Gl={stringify:Kl},oo=(e,t)=>Array.isArray(e)?e.map(n=>oo(n,t)):Lo(e)?Object.fromEntries(Object.entries(e).map(([n,r])=>[t(n),oo(r,t)])):e,Ri=(e,t)=>oo(e,r=>r.includes(":")||r.startsWith("_")?r:t(r));class ws{serialize(t,n){const r=Ri(n,Po);switch(t){case"json":return JSON.stringify(r);case"multipart-form":{const o=new FormData;for(const[i,a]of Object.entries(no(r)))o.append(i,a);return o}case"querystring":return Gl.stringify(r);default:throw new ht(`Unknown content type ${t} to serialize.`)}}deserialize(t,n){switch(t){case"json":try{return Ri(JSON.parse(n),yl)}catch{throw new Ai(`Malformed JSON ${n} returned from the server.`,t,n)}default:throw new Ai(`Unknown content type ${t} returned from the server.`,t,n)}}}const yp=e=>{const t=new ws,n=new Hl(e,t),r=gs(e.log),o=new ql(t,n,r),i=new Ol(o);return pn(i,["api"])};function gp(e){const t=new ws,n=new Bl(e,t),r=gs(e.log),o=new Rl({constructorParameters:[n.resolvePath("/api/v1/streaming"),n.getProtocols()],implementation:e.implementation,maxAttempts:n.getMaxAttempts()},r),i=new Il(o,t,r);return pn(i)}var Do={exports:{}};/*!
* Toastify js 1.12.0
* https://github.com/apvarun/toastify-js
* @license MIT licensed
*
* Copyright (C) 2018 Varun A P
*/var wp=Do.exports;(function(e){(function(t,n){e.exports?e.exports=n():t.Toastify=n()})(at,function(t){var n=function(a){return new n.lib.init(a)},r="1.12.0";n.defaults={oldestFirst:!0,text:"Toastify is awesome!",node:void 0,duration:3e3,selector:void 0,callback:function(){},destination:void 0,newWindow:!1,close:!1,gravity:"toastify-top",positionLeft:!1,position:"",backgroundColor:"",avatar:"",className:"",stopOnFocus:!0,onClick:function(){},offset:{x:0,y:0},escapeMarkup:!0,ariaLive:"polite",style:{background:""}},n.lib=n.prototype={toastify:r,constructor:n,init:function(a){return a||(a={}),this.options={},this.toastElement=null,this.options.text=a.text||n.defaults.text,this.options.node=a.node||n.defaults.node,this.options.duration=a.duration===0?0:a.duration||n.defaults.duration,this.options.selector=a.selector||n.defaults.selector,this.options.callback=a.callback||n.defaults.callback,this.options.destination=a.destination||n.defaults.destination,this.options.newWindow=a.newWindow||n.defaults.newWindow,this.options.close=a.close||n.defaults.close,this.options.gravity=a.gravity==="bottom"?"toastify-bottom":n.defaults.gravity,this.options.positionLeft=a.positionLeft||n.defaults.positionLeft,this.options.position=a.position||n.defaults.position,this.options.backgroundColor=a.backgroundColor||n.defaults.backgroundColor,this.options.avatar=a.avatar||n.defaults.avatar,this.options.className=a.className||n.defaults.className,this.options.stopOnFocus=a.stopOnFocus===void 0?n.defaults.stopOnFocus:a.stopOnFocus,this.options.onClick=a.onClick||n.defaults.onClick,this.options.offset=a.offset||n.defaults.offset,this.options.escapeMarkup=a.escapeMarkup!==void 0?a.escapeMarkup:n.defaults.escapeMarkup,this.options.ariaLive=a.ariaLive||n.defaults.ariaLive,this.options.style=a.style||n.defaults.style,a.backgroundColor&&(this.options.style.background=a.backgroundColor),this},buildToast:function(){if(!this.options)throw"Toastify is not initialized";var a=document.createElement("div");a.className="toastify on "+this.options.className,this.options.position?a.className+=" toastify-"+this.options.position:this.options.positionLeft===!0?(a.className+=" toastify-left",console.warn("Property `positionLeft` will be depreciated in further versions. Please use `position` instead.")):a.className+=" toastify-right",a.className+=" "+this.options.gravity,this.options.backgroundColor&&console.warn('DEPRECATION NOTICE: "backgroundColor" is being deprecated. Please use the "style.background" property.');for(var u in this.options.style)a.style[u]=this.options.style[u];if(this.options.ariaLive&&a.setAttribute("aria-live",this.options.ariaLive),this.options.node&&this.options.node.nodeType===Node.ELEMENT_NODE)a.appendChild(this.options.node);else if(this.options.escapeMarkup?a.innerText=this.options.text:a.innerHTML=this.options.text,this.options.avatar!==""){var s=document.createElement("img");s.src=this.options.avatar,s.className="toastify-avatar",this.options.position=="left"||this.options.positionLeft===!0?a.appendChild(s):a.insertAdjacentElement("afterbegin",s)}if(this.options.close===!0){var l=document.createElement("button");l.type="button",l.setAttribute("aria-label","Close"),l.className="toast-close",l.innerHTML="&#10006;",l.addEventListener("click",(function(_){_.stopPropagation(),this.removeElement(this.toastElement),window.clearTimeout(this.toastElement.timeOutValue)}).bind(this));var d=window.innerWidth>0?window.innerWidth:screen.width;(this.options.position=="left"||this.options.positionLeft===!0)&&d>360?a.insertAdjacentElement("afterbegin",l):a.appendChild(l)}if(this.options.stopOnFocus&&this.options.duration>0){var c=this;a.addEventListener("mouseover",function(_){window.clearTimeout(a.timeOutValue)}),a.addEventListener("mouseleave",function(){a.timeOutValue=window.setTimeout(function(){c.removeElement(a)},c.options.duration)})}if(typeof this.options.destination<"u"&&a.addEventListener("click",(function(_){_.stopPropagation(),this.options.newWindow===!0?window.open(this.options.destination,"_blank"):window.location=this.options.destination}).bind(this)),typeof this.options.onClick=="function"&&typeof this.options.destination>"u"&&a.addEventListener("click",(function(_){_.stopPropagation(),this.options.onClick()}).bind(this)),typeof this.options.offset=="object"){var f=o("x",this.options),h=o("y",this.options),p=this.options.position=="left"?f:"-"+f,m=this.options.gravity=="toastify-top"?h:"-"+h;a.style.transform="translate("+p+","+m+")"}return a},showToast:function(){this.toastElement=this.buildToast();var a;if(typeof this.options.selector=="string"?a=document.getElementById(this.options.selector):this.options.selector instanceof HTMLElement||typeof ShadowRoot<"u"&&this.options.selector instanceof ShadowRoot?a=this.options.selector:a=document.body,!a)throw"Root element is not defined";var u=n.defaults.oldestFirst?a.firstChild:a.lastChild;return a.insertBefore(this.toastElement,u),n.reposition(),this.options.duration>0&&(this.toastElement.timeOutValue=window.setTimeout((function(){this.removeElement(this.toastElement)}).bind(this),this.options.duration)),this},hideToast:function(){this.toastElement.timeOutValue&&clearTimeout(this.toastElement.timeOutValue),this.removeElement(this.toastElement)},removeElement:function(a){a.className=a.className.replace(" on",""),window.setTimeout((function(){this.options.node&&this.options.node.parentNode&&this.options.node.parentNode.removeChild(this.options.node),a.parentNode&&a.parentNode.removeChild(a),this.options.callback.call(a),n.reposition()}).bind(this),400)}},n.reposition=function(){for(var a={top:15,bottom:15},u={top:15,bottom:15},s={top:15,bottom:15},l=document.getElementsByClassName("toastify"),d,c=0;c<l.length;c++){i(l[c],"toastify-top")===!0?d="toastify-top":d="toastify-bottom";var f=l[c].offsetHeight;d=d.substr(9,d.length-1);var h=15,p=window.innerWidth>0?window.innerWidth:screen.width;p<=360?(l[c].style[d]=s[d]+"px",s[d]+=f+h):i(l[c],"toastify-left")===!0?(l[c].style[d]=a[d]+"px",a[d]+=f+h):(l[c].style[d]=u[d]+"px",u[d]+=f+h)}return this};function o(a,u){return u.offset[a]?isNaN(u.offset[a])?u.offset[a]:u.offset[a]+"px":"0px"}function i(a,u){return!a||typeof u!="string"?!1:!!(a.className&&a.className.trim().split(/\s+/gi).indexOf(u)>-1)}return n.lib.init.prototype=n.lib,n})})(Do);var Yl=Do.exports;const bp=Xe(Yl);var Zl=Object.getOwnPropertyNames,Vl=Object.getOwnPropertySymbols,Jl=Object.prototype.hasOwnProperty;function Li(e,t){return function(r,o,i){return e(r,o,i)&&t(r,o,i)}}function An(e){return function(n,r,o){if(!n||!r||typeof n!="object"||typeof r!="object")return e(n,r,o);var i=o.cache,a=i.get(n),u=i.get(r);if(a&&u)return a===r&&u===n;i.set(n,r),i.set(r,n);var s=e(n,r,o);return i.delete(n),i.delete(r),s}}function Di(e){return Zl(e).concat(Vl(e))}var bs=Object.hasOwn||function(e,t){return Jl.call(e,t)};function Wt(e,t){return e||t?e===t:e===t||e!==e&&t!==t}var Es="_owner",Ii=Object.getOwnPropertyDescriptor,Ni=Object.keys;function Xl(e,t,n){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function Ql(e,t){return Wt(e.getTime(),t.getTime())}function ki(e,t,n){if(e.size!==t.size)return!1;for(var r={},o=e.entries(),i=0,a,u;(a=o.next())&&!a.done;){for(var s=t.entries(),l=!1,d=0;(u=s.next())&&!u.done;){var c=a.value,f=c[0],h=c[1],p=u.value,m=p[0],_=p[1];!l&&!r[d]&&(l=n.equals(f,m,i,d,e,t,n)&&n.equals(h,_,f,m,e,t,n))&&(r[d]=!0),d++}if(!l)return!1;i++}return!0}function ed(e,t,n){var r=Ni(e),o=r.length;if(Ni(t).length!==o)return!1;for(var i;o-- >0;)if(i=r[o],i===Es&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!bs(t,i)||!n.equals(e[i],t[i],i,i,e,t,n))return!1;return!0}function Xt(e,t,n){var r=Di(e),o=r.length;if(Di(t).length!==o)return!1;for(var i,a,u;o-- >0;)if(i=r[o],i===Es&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!bs(t,i)||!n.equals(e[i],t[i],i,i,e,t,n)||(a=Ii(e,i),u=Ii(t,i),(a||u)&&(!a||!u||a.configurable!==u.configurable||a.enumerable!==u.enumerable||a.writable!==u.writable)))return!1;return!0}function td(e,t){return Wt(e.valueOf(),t.valueOf())}function nd(e,t){return e.source===t.source&&e.flags===t.flags}function $i(e,t,n){if(e.size!==t.size)return!1;for(var r={},o=e.values(),i,a;(i=o.next())&&!i.done;){for(var u=t.values(),s=!1,l=0;(a=u.next())&&!a.done;)!s&&!r[l]&&(s=n.equals(i.value,a.value,i.value,a.value,e,t,n))&&(r[l]=!0),l++;if(!s)return!1}return!0}function rd(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}var od="[object Arguments]",id="[object Boolean]",ad="[object Date]",sd="[object Map]",ud="[object Number]",cd="[object Object]",ld="[object RegExp]",dd="[object Set]",fd="[object String]",hd=Array.isArray,ji=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,zi=Object.assign,pd=Object.prototype.toString.call.bind(Object.prototype.toString);function md(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areMapsEqual,o=e.areObjectsEqual,i=e.arePrimitiveWrappersEqual,a=e.areRegExpsEqual,u=e.areSetsEqual,s=e.areTypedArraysEqual;return function(d,c,f){if(d===c)return!0;if(d==null||c==null||typeof d!="object"||typeof c!="object")return d!==d&&c!==c;var h=d.constructor;if(h!==c.constructor)return!1;if(h===Object)return o(d,c,f);if(hd(d))return t(d,c,f);if(ji!=null&&ji(d))return s(d,c,f);if(h===Date)return n(d,c,f);if(h===RegExp)return a(d,c,f);if(h===Map)return r(d,c,f);if(h===Set)return u(d,c,f);var p=pd(d);return p===ad?n(d,c,f):p===ld?a(d,c,f):p===sd?r(d,c,f):p===dd?u(d,c,f):p===cd?typeof d.then!="function"&&typeof c.then!="function"&&o(d,c,f):p===od?o(d,c,f):p===id||p===ud||p===fd?i(d,c,f):!1}}function _d(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,o={areArraysEqual:r?Xt:Xl,areDatesEqual:Ql,areMapsEqual:r?Li(ki,Xt):ki,areObjectsEqual:r?Xt:ed,arePrimitiveWrappersEqual:td,areRegExpsEqual:nd,areSetsEqual:r?Li($i,Xt):$i,areTypedArraysEqual:r?Xt:rd};if(n&&(o=zi({},o,n(o))),t){var i=An(o.areArraysEqual),a=An(o.areMapsEqual),u=An(o.areObjectsEqual),s=An(o.areSetsEqual);o=zi({},o,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:u,areSetsEqual:s})}return o}function vd(e){return function(t,n,r,o,i,a,u){return e(t,n,u)}}function yd(e){var t=e.circular,n=e.comparator,r=e.createState,o=e.equals,i=e.strict;if(r)return function(s,l){var d=r(),c=d.cache,f=c===void 0?t?new WeakMap:void 0:c,h=d.meta;return n(s,l,{cache:f,equals:o,meta:h,strict:i})};if(t)return function(s,l){return n(s,l,{cache:new WeakMap,equals:o,meta:void 0,strict:i})};var a={cache:void 0,equals:o,meta:void 0,strict:i};return function(s,l){return n(s,l,a)}}var Ep=st(),Sp=st({strict:!0}),Tp=st({circular:!0}),xp=st({circular:!0,strict:!0}),Cp=st({createInternalComparator:function(){return Wt}}),Ap=st({strict:!0,createInternalComparator:function(){return Wt}}),Op=st({circular:!0,createInternalComparator:function(){return Wt}}),Mp=st({circular:!0,createInternalComparator:function(){return Wt},strict:!0});function st(e){e===void 0&&(e={});var t=e.circular,n=t===void 0?!1:t,r=e.createInternalComparator,o=e.createState,i=e.strict,a=i===void 0?!1:i,u=_d(e),s=md(u),l=r?r(s):vd(s);return yd({circular:n,comparator:s,createState:o,equals:l,strict:a})}function Pp(e,t,n,r){let o=e[t];return as(e,()=>{const i=e[t];Object.is(o,i)||n(o=i)},r)}const Rp=Symbol();var Zn={exports:{}},tn={exports:{}},Lp=tn.exports,Fi;function gd(){return Fi||(Fi=1,function(e,t){(function(n,r){e.exports=r()})(at,function(){"use strict";var n={isEqual:!0,isMatchingKey:!0,isPromise:!0,maxSize:!0,onCacheAdd:!0,onCacheChange:!0,onCacheHit:!0,transformKey:!0},r=Array.prototype.slice;function o(c){var f=c.length;return f?f===1?[c[0]]:f===2?[c[0],c[1]]:f===3?[c[0],c[1],c[2]]:r.call(c,0):[]}function i(c){var f={};for(var h in c)n[h]||(f[h]=c[h]);return f}function a(c){return typeof c=="function"&&c.isMemoized}function u(c,f){return c===f||c!==c&&f!==f}function s(c,f){var h={};for(var p in c)h[p]=c[p];for(var p in f)h[p]=f[p];return h}var l=function(){function c(f){this.keys=[],this.values=[],this.options=f;var h=typeof f.isMatchingKey=="function";h?this.getKeyIndex=this._getKeyIndexFromMatchingKey:f.maxSize>1?this.getKeyIndex=this._getKeyIndexForMany:this.getKeyIndex=this._getKeyIndexForSingle,this.canTransformKey=typeof f.transformKey=="function",this.shouldCloneArguments=this.canTransformKey||h,this.shouldUpdateOnAdd=typeof f.onCacheAdd=="function",this.shouldUpdateOnChange=typeof f.onCacheChange=="function",this.shouldUpdateOnHit=typeof f.onCacheHit=="function"}return Object.defineProperty(c.prototype,"size",{get:function(){return this.keys.length},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"snapshot",{get:function(){return{keys:o(this.keys),size:this.size,values:o(this.values)}},enumerable:!1,configurable:!0}),c.prototype._getKeyIndexFromMatchingKey=function(f){var h=this.options,p=h.isMatchingKey,m=h.maxSize,_=this.keys,v=_.length;if(!v)return-1;if(p(_[0],f))return 0;if(m>1){for(var y=1;y<v;y++)if(p(_[y],f))return y}return-1},c.prototype._getKeyIndexForMany=function(f){var h=this.options.isEqual,p=this.keys,m=p.length;if(!m)return-1;if(m===1)return this._getKeyIndexForSingle(f);var _=f.length,v,y;if(_>1){for(var T=0;T<m;T++)if(v=p[T],v.length===_){for(y=0;y<_&&h(v[y],f[y]);y++);if(y===_)return T}}else for(var T=0;T<m;T++)if(v=p[T],v.length===_&&h(v[0],f[0]))return T;return-1},c.prototype._getKeyIndexForSingle=function(f){var h=this.keys;if(!h.length)return-1;var p=h[0],m=p.length;if(f.length!==m)return-1;var _=this.options.isEqual;if(m>1){for(var v=0;v<m;v++)if(!_(p[v],f[v]))return-1;return 0}return _(p[0],f[0])?0:-1},c.prototype.orderByLru=function(f,h,p){for(var m=this.keys,_=this.values,v=m.length,y=p;y--;)m[y+1]=m[y],_[y+1]=_[y];m[0]=f,_[0]=h;var T=this.options.maxSize;v===T&&p===v?(m.pop(),_.pop()):p>=T&&(m.length=_.length=T)},c.prototype.updateAsyncCache=function(f){var h=this,p=this.options,m=p.onCacheChange,_=p.onCacheHit,v=this.keys[0],y=this.values[0];this.values[0]=y.then(function(T){return h.shouldUpdateOnHit&&_(h,h.options,f),h.shouldUpdateOnChange&&m(h,h.options,f),T},function(T){var M=h.getKeyIndex(v);throw M!==-1&&(h.keys.splice(M,1),h.values.splice(M,1)),T})},c}();function d(c,f){if(f===void 0&&(f={}),a(c))return d(c.fn,s(c.options,f));if(typeof c!="function")throw new TypeError("You must pass a function to `memoize`.");var h=f.isEqual,p=h===void 0?u:h,m=f.isMatchingKey,_=f.isPromise,v=_===void 0?!1:_,y=f.maxSize,T=y===void 0?1:y,M=f.onCacheAdd,x=f.onCacheChange,b=f.onCacheHit,C=f.transformKey,B=s({isEqual:p,isMatchingKey:m,isPromise:v,maxSize:T,onCacheAdd:M,onCacheChange:x,onCacheHit:b,transformKey:C},i(f)),S=new l(B),L=S.keys,w=S.values,I=S.canTransformKey,q=S.shouldCloneArguments,D=S.shouldUpdateOnAdd,A=S.shouldUpdateOnChange,O=S.shouldUpdateOnHit,P=function(){var R=q?o(arguments):arguments;I&&(R=C(R));var U=L.length?S.getKeyIndex(R):-1;if(U!==-1)O&&b(S,B,P),U&&(S.orderByLru(L[U],w[U],U),A&&x(S,B,P));else{var F=c.apply(this,arguments),G=q?R:o(arguments);S.orderByLru(G,F,L.length),v&&S.updateAsyncCache(P),D&&M(S,B,P),A&&x(S,B,P)}return w[0]};return P.cache=S,P.fn=c,P.isMemoized=!0,P.options=B,P}return d})}(tn,tn.exports)),tn.exports}var nn={exports:{}},Dp=nn.exports,Hi;function wd(){return Hi||(Hi=1,function(e,t){(function(n,r){r(t)})(at,function(n){"use strict";var r=typeof WeakMap=="function",o=Object.keys;function i(w,I){return w===I||w!==w&&I!==I}function a(w){return w.constructor===Object||w.constructor==null}function u(w){return!!w&&typeof w.then=="function"}function s(w){return!!(w&&w.$$typeof)}function l(){var w=[];return{delete:function(I){for(var q=0;q<w.length;++q)if(w[q][0]===I){w.splice(q,1);return}},get:function(I){for(var q=0;q<w.length;++q)if(w[q][0]===I)return w[q][1]},set:function(I,q){for(var D=0;D<w.length;++D)if(w[D][0]===I){w[D][1]=q;return}w.push([I,q])}}}var d=function(w){return w?function(){return new WeakMap}:l}(r);function c(w){return function(q){var D=w||q;return function(O,P,R,U,F,G,Z){Z===void 0&&(Z=d());var Q=!!O&&typeof O=="object",re=!!P&&typeof P=="object";if(Q!==re)return!1;if(!Q&&!re)return D(O,P,Z);var ue=Z.get(O);if(ue&&Z.get(P))return ue===P;Z.set(O,P),Z.set(P,O);var Ee=D(O,P,Z);return Z.delete(O),Z.delete(P),Ee}}}function f(w,I,q,D){var A=w.length;if(I.length!==A)return!1;for(;A-- >0;)if(!q(w[A],I[A],A,A,w,I,D))return!1;return!0}function h(w,I,q,D){var A=w.size===I.size;if(A&&w.size){var O={},P=0;w.forEach(function(R,U){if(A){var F=!1,G=0;I.forEach(function(Z,Q){!F&&!O[G]&&(F=q(U,Q,P,G,w,I,D)&&q(R,Z,U,Q,w,I,D),F&&(O[G]=!0)),G++}),P++,A=F}})}return A}var p="_owner",m=Function.prototype.bind.call(Function.prototype.call,Object.prototype.hasOwnProperty);function _(w,I,q,D){var A=o(w),O=A.length;if(o(I).length!==O)return!1;if(O)for(var P=void 0;O-- >0;){if(P=A[O],P===p){var R=s(w),U=s(I);if((R||U)&&R!==U)return!1}if(!m(I,P)||!q(w[P],I[P],P,P,w,I,D))return!1}return!0}var v=function(){return/foo/g.flags==="g"?function(I,q){return I.source===q.source&&I.flags===q.flags}:function(I,q){return I.source===q.source&&I.global===q.global&&I.ignoreCase===q.ignoreCase&&I.multiline===q.multiline&&I.unicode===q.unicode&&I.sticky===q.sticky&&I.lastIndex===q.lastIndex}}();function y(w,I,q,D){var A=w.size===I.size;if(A&&w.size){var O={};w.forEach(function(P,R){if(A){var U=!1,F=0;I.forEach(function(G,Z){!U&&!O[F]&&(U=q(P,G,R,Z,w,I,D),U&&(O[F]=!0)),F++}),A=U}})}return A}var T=typeof Map=="function",M=typeof Set=="function",x=Object.prototype.valueOf;function b(w){var I=typeof w=="function"?w(q):function(D,A,O,P,R,U,F){return q(D,A,F)};function q(D,A,O){if(D===A)return!0;if(D&&A&&typeof D=="object"&&typeof A=="object"){if(a(D)&&a(A))return _(D,A,I,O);var P=Array.isArray(D),R=Array.isArray(A);return P||R?P===R&&f(D,A,I,O):(P=D instanceof Date,R=A instanceof Date,P||R?P===R&&i(D.getTime(),A.getTime()):(P=D instanceof RegExp,R=A instanceof RegExp,P||R?P===R&&v(D,A):u(D)||u(A)?D===A:T&&(P=D instanceof Map,R=A instanceof Map,P||R)?P===R&&h(D,A,I,O):M&&(P=D instanceof Set,R=A instanceof Set,P||R)?P===R&&y(D,A,I,O):D.valueOf!==x||A.valueOf!==x?i(D.valueOf(),A.valueOf()):_(D,A,I,O)))}return D!==D&&A!==A}return q}var C=b(),B=b(function(){return i}),S=b(c()),L=b(c(i));n.circularDeepEqual=S,n.circularShallowEqual=L,n.createCustomEqual=b,n.deepEqual=C,n.sameValueZeroEqual=i,n.shallowEqual=B,Object.defineProperty(n,"__esModule",{value:!0})})}(nn,nn.exports)),nn.exports}var Ip=Zn.exports;(function(e,t){(function(n,r){e.exports=r(gd(),wd())})(at,function(n,r){"use strict";function o(){return o=Object.assign?Object.assign.bind():function(g){for(var E=1;E<arguments.length;E++){var j=arguments[E];for(var N in j)Object.prototype.hasOwnProperty.call(j,N)&&(g[N]=j[N])}return g},o.apply(this,arguments)}function i(g,E){if(g==null)return{};var j={},N=Object.keys(g),z,k;for(k=0;k<N.length;k++)z=N[k],!(E.indexOf(z)>=0)&&(j[z]=g[z]);return j}var a={isDeepEqual:!1,isPromise:!1,isReact:!1,isSerialized:!1,isShallowEqual:!1,matchesArg:void 0,matchesKey:void 0,maxAge:void 0,maxArgs:void 0,maxSize:1,onExpire:void 0,profileName:void 0,serializer:void 0,updateCacheForKey:void 0,transformArgs:void 0,updateExpire:!1};function u(){for(var g=arguments.length,E=new Array(g),j=0;j<g;j++)E[j]=arguments[j];return E.reduce(function(N,z){if(typeof N=="function")return typeof z=="function"?function(){N.apply(this,arguments),z.apply(this,arguments)}:N;if(typeof z=="function")return z})}function s(){for(var g=arguments.length,E=new Array(g),j=0;j<g;j++)E[j]=arguments[j];return E.reduce(function(N,z){if(typeof N=="function")return typeof z=="function"?function(){return N(z.apply(this,arguments))}:N;if(typeof z=="function")return z})}function l(g,E){for(var j=0;j<g.length;j++)if(g[j].key===E)return j;return-1}function d(g,E){var j=typeof E=="function"?E:function(N,z){for(var k=0;k<z.length;k++)if(!g(N[k],z[k]))return!1;return!0};return function(N,z){for(var k=0;k<N.length;k++)if(N[k].length===z.length&&j(N[k],z))return k;return-1}}function c(g,E){return!E||E===a?g:o({},g,E,{onCacheAdd:u(g.onCacheAdd,E.onCacheAdd),onCacheChange:u(g.onCacheChange,E.onCacheChange),onCacheHit:u(g.onCacheHit,E.onCacheHit),transformArgs:s(g.transformArgs,E.transformArgs)})}function f(g){return typeof g=="function"&&g.isMoized}function h(g,E,j){try{var N=j||E||"anonymous";Object.defineProperty(g,"name",{configurable:!0,enumerable:!1,value:"moized("+N+")",writable:!0})}catch{}}function p(g,E,j){var N=l(g,E);N!==-1&&(clearTimeout(g[N].timeoutId),j&&g.splice(N,1))}function m(g,E){var j=setTimeout(g,E);return typeof j.unref=="function"&&j.unref(),j}function _(g,E,j,N){var z=E.maxAge;return function k($,V,J){var ee=$.keys[0];if(l(g,ee)===-1){var le=function(){var Ne=d(j,N),Fe=Ne($.keys,ee),et=$.values[Fe];~Fe&&($.keys.splice(Fe,1),$.values.splice(Fe,1),typeof E.onCacheChange=="function"&&E.onCacheChange($,V,J)),p(g,ee,!0),typeof E.onExpire=="function"&&E.onExpire(ee)===!1&&($.keys.unshift(ee),$.values.unshift(et),k($,V,J),typeof E.onCacheChange=="function"&&E.onCacheChange($,V,J))};g.push({expirationMethod:le,key:ee,timeoutId:m(le,z)})}}}function v(g,E){return function(N){var z=N.keys[0],k=l(g,z);~k&&(p(g,z,!1),g[k].timeoutId=m(g[k].expirationMethod,E.maxAge))}}function y(g,E,j,N){var z=typeof E.maxAge=="number"&&isFinite(E.maxAge)?_(g,E,j,N):void 0;return{onCacheAdd:z,onCacheHit:z&&E.updateExpire?v(g,E):void 0}}var T={anonymousProfileNameCounter:1,isCollectingStats:!1,profiles:{}},M=!1;function x(g){g?delete T.profiles[g]:T.profiles={}}function b(g){g===void 0&&(g=!0),T.isCollectingStats=g}function C(g){var E=g.profileName;return function(){E&&!T.profiles[E]&&(T.profiles[E]={calls:0,hits:0}),T.profiles[E].calls++}}function B(g){return function(){var E=T.profiles,j=g.profileName;E[j]||(E[j]={calls:0,hits:0}),E[j].calls++,E[j].hits++}}function S(g){return g.displayName||g.name||"Anonymous "+T.anonymousProfileNameCounter++}function L(g,E){return g?(E/g*100).toFixed(4)+"%":"0.0000%"}function w(g){!T.isCollectingStats&&!M&&(console.warn('Stats are not currently being collected, please run "collectStats" to enable them.'),M=!0);var E=T.profiles;if(g){if(!E[g])return{calls:0,hits:0,usage:"0.0000%"};var j=E[g];return o({},j,{usage:L(j.calls,j.hits)})}var N=Object.keys(T.profiles).reduce(function(z,k){return z.calls+=E[k].calls,z.hits+=E[k].hits,z},{calls:0,hits:0});return o({},N,{profiles:Object.keys(E).reduce(function(z,k){return z[k]=w(k),z},{}),usage:L(N.calls,N.hits)})}function I(g){return T.isCollectingStats?{onCacheAdd:C(g),onCacheHit:B(g)}:{}}var q={arguments:!0,callee:!0,caller:!0,constructor:!0,length:!0,name:!0,prototype:!0};function D(g,E,j){j===void 0&&(j=[]),Object.getOwnPropertyNames(g).forEach(function(N){if(!q[N]&&j.indexOf(N)===-1){var z=Object.getOwnPropertyDescriptor(g,N);z.get||z.set?Object.defineProperty(E,N,z):E[N]=g[N]}})}function A(g,E){var j=E.expirations,N=g.options,z=d(N.isEqual,N.isMatchingKey),k=g;k.clear=function(){var $=k._microMemoizeOptions.onCacheChange,V=k.cache;return V.keys.length=0,V.values.length=0,$&&$(V,k.options,k),!0},k.clearStats=function(){x(k.options.profileName)},k.get=function($){var V=k._microMemoizeOptions.transformKey,J=k.cache,ee=V?V($):$,le=z(J.keys,ee);return le!==-1?k.apply(this,$):void 0},k.getStats=function(){return w(k.options.profileName)},k.has=function($){var V=k._microMemoizeOptions.transformKey,J=V?V($):$;return z(k.cache.keys,J)!==-1},k.keys=function(){return k.cacheSnapshot.keys},k.remove=function($){var V=k._microMemoizeOptions,J=V.onCacheChange,ee=V.transformKey,le=k.cache,de=z(le.keys,ee?ee($):$);if(de===-1)return!1;var Ne=le.keys[de];return le.keys.splice(de,1),le.values.splice(de,1),J&&J(le,k.options,k),p(j,Ne,!0),!0},k.set=function($,V){var J=k._microMemoizeOptions,ee=k.cache,le=k.options,de=J.onCacheAdd,Ne=J.onCacheChange,Fe=J.transformKey,et=Fe?Fe($):$,He=z(ee.keys,et);if(He===-1){var Oe=le.maxSize-1;ee.size>Oe&&(ee.keys.length=Oe,ee.values.length=Oe),ee.keys.unshift(et),ee.values.unshift(V),le.isPromise&&ee.updateAsyncCache(k),de&&de(ee,le,k),Ne&&Ne(ee,le,k)}else{var ut=ee.keys[He];ee.values[He]=V,He>0&&ee.orderByLru(ut,V,He),le.isPromise&&ee.updateAsyncCache(k),typeof Ne=="function"&&Ne(ee,le,k)}},k.values=function(){return k.cacheSnapshot.values}}function O(g,E){var j=E.expirations,N=E.options,z=E.originalFunction,k=g.options;Object.defineProperties(g,{_microMemoizeOptions:{configurable:!0,get:function(){return k}},cacheSnapshot:{configurable:!0,get:function(){var J=g.cache;return{keys:J.keys.slice(0),size:J.size,values:J.values.slice(0)}}},expirations:{configurable:!0,get:function(){return j}},expirationsSnapshot:{configurable:!0,get:function(){return j.slice(0)}},isMoized:{configurable:!0,get:function(){return!0}},options:{configurable:!0,get:function(){return N}},originalFunction:{configurable:!0,get:function(){return z}}});var $=g;D(z,$)}function P(g,E){return A(g,E),O(g,E),g}var R=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.element"):60103;function U(g,E,j){var N=g(o({maxArgs:2,isShallowEqual:!0},j,{isReact:!1}));E.displayName||(E.displayName=E.name||"Component");function z(k,$,V){this.props=k,this.context=$,this.updater=V,this.MoizedComponent=N(E)}return z.prototype.isReactComponent={},z.prototype.render=function(){return{$$typeof:R,type:this.MoizedComponent,props:this.props,ref:null,key:null,_owner:null}},D(E,z,["contextType","contextTypes"]),z.displayName="Moized("+(E.displayName||E.name||"Component")+")",h(z,E.name,j.profileName),z}function F(g){return function(E){if(g>=E.length)return E;if(g===0)return[];if(g===1)return[E[0]];if(g===2)return[E[0],E[1]];if(g===3)return[E[0],E[1],E[2]];for(var j=[],N=0;N<g;N++)j[N]=E[N];return j}}function G(g,E){for(var j=g.length,N=0;N<j;++N)if(g[N]===E)return N+1;return 0}function Z(){var g=[],E=[];return function(N,z){var k=typeof z;if(k==="function"||k==="symbol")return z.toString();if(typeof z=="object"){if(g.length){var $=G(g,this);$===0?g[g.length]=this:(g.splice($),E.splice($)),E[E.length]=N;var V=G(g,z);if(V!==0)return"[ref="+(E.slice(0,V).join(".")||".")+"]"}else g[0]=z,E[0]=N;return z}return""+z}}function Q(g){var E=typeof g;return g&&(E==="object"||E==="function")?JSON.stringify(g,Z()):g}function re(g){for(var E="|",j=0;j<g.length;j++)E+=Q(g[j])+"|";return[E]}function ue(g){return typeof g.serializer=="function"?g.serializer:re}function Ee(g,E){return g[0]===E[0]}function pe(g){if(typeof g=="function")return function(E,j,N){return g(N.cache,N.options,N)}}function ze(g){return g.matchesArg||g.isDeepEqual&&r.deepEqual||g.isShallowEqual&&r.shallowEqual||r.sameValueZeroEqual}function Ce(g){return g.matchesKey||g.isSerialized&&Ee||void 0}function ce(g){return s(g.isSerialized&&ue(g),typeof g.transformArgs=="function"&&g.transformArgs,typeof g.maxArgs=="number"&&F(g.maxArgs))}function Ae(g){var E=g.options.updateCacheForKey,j=function(){for(var z=arguments.length,k=new Array(z),$=0;$<z;$++)k[$]=arguments[$];if(!E(k))return g.apply(this,k);var V=g.fn.apply(this,k);return g.set(k,V),V};return D(g,j),j}var Ie=["matchesArg","isDeepEqual","isPromise","isReact","isSerialized","isShallowEqual","matchesKey","maxAge","maxArgs","maxSize","onCacheAdd","onCacheChange","onCacheHit","onExpire","profileName","serializer","updateCacheForKey","transformArgs","updateExpire"],H=function g(E,j){var N=j||a;if(f(E)){var z=E.originalFunction,k=c(E.options,N);return g(z,k)}if(typeof E=="object")return function(bt,gr){if(typeof bt=="function"){var wr=c(E,gr);return g(bt,wr)}var Sn=c(E,bt);return g(Sn)};if(N.isReact)return U(g,E,N);var $=o({},a,N,{maxAge:typeof N.maxAge=="number"&&N.maxAge>=0?N.maxAge:a.maxAge,maxArgs:typeof N.maxArgs=="number"&&N.maxArgs>=0?N.maxArgs:a.maxArgs,maxSize:typeof N.maxSize=="number"&&N.maxSize>=0?N.maxSize:a.maxSize,profileName:N.profileName||S(E)}),V=[];$.matchesArg,$.isDeepEqual;var J=$.isPromise;$.isReact,$.isSerialized,$.isShallowEqual,$.matchesKey,$.maxAge,$.maxArgs;var ee=$.maxSize,le=$.onCacheAdd,de=$.onCacheChange,Ne=$.onCacheHit;$.onExpire,$.profileName,$.serializer;var Fe=$.updateCacheForKey;$.transformArgs,$.updateExpire;var et=i($,Ie),He=ze($),Oe=Ce($),ut=y(V,$,He,Oe),En=I($),Yt=ce($),Zt=o({},et,{isEqual:He,isMatchingKey:Oe,isPromise:J,maxSize:ee,onCacheAdd:pe(u(le,ut.onCacheAdd,En.onCacheAdd)),onCacheChange:pe(de),onCacheHit:pe(u(Ne,ut.onCacheHit,En.onCacheHit)),transformKey:Yt}),yr=n(E,Zt),wt=P(yr,{expirations:V,options:$,originalFunction:E});return Fe&&(wt=Ae(wt)),h(wt,E.name,N.profileName),wt};H.clearStats=x,H.collectStats=b,H.compose=function(){return s.apply(void 0,arguments)||H},H.deep=H({isDeepEqual:!0}),H.getStats=w,H.infinite=H({maxSize:1/0}),H.isCollectingStats=function(){return T.isCollectingStats},H.isMoized=function(E){return typeof E=="function"&&!!E.isMoized},H.matchesArg=function(g){return H({matchesArg:g})},H.matchesKey=function(g){return H({matchesKey:g})};function ye(g,E){if(E===!0)return H({maxAge:g,updateExpire:E});if(typeof E=="object"){var j=E.onExpire,N=E.updateExpire;return H({maxAge:g,onExpire:j,updateExpire:N})}return H(typeof E=="function"?{maxAge:g,onExpire:E,updateExpire:!0}:{maxAge:g})}return H.maxAge=ye,H.maxArgs=function(g){return H({maxArgs:g})},H.maxSize=function(g){return H({maxSize:g})},H.profile=function(g){return H({profileName:g})},H.promise=H({isPromise:!0,updateExpire:!0}),H.react=H({isReact:!0}),H.serialize=H({isSerialized:!0}),H.serializeWith=function(g){return H({isSerialized:!0,serializer:g})},H.shallow=H({isShallowEqual:!0}),H.transformArgs=function(g){return H({transformArgs:g})},H.updateCacheForKey=function(g){return H({updateCacheForKey:g})},Object.defineProperty(H,"default",{configurable:!1,enumerable:!1,value:H,writable:!1}),H})})(Zn,Zn.exports);var bd=Zn.exports;const Np=Xe(bd);let Ed=class extends Error{constructor(){super("Throttled function aborted"),this.name="AbortError"}};function $p({limit:e,interval:t,strict:n,onDelay:r}){if(!Number.isFinite(e))throw new TypeError("Expected `limit` to be a finite number");if(!Number.isFinite(t))throw new TypeError("Expected `interval` to be a finite number");const o=new Map;let i=0,a=0;function u(){const c=Date.now();return c-i>t?(a=1,i=c,0):(a<e?a++:(i+=t,a=1),i-c)}const s=[];function l(){const c=Date.now();if(s.length>0&&c-s.at(-1)>t&&(s.length=0),s.length<e)return s.push(c),0;const f=s[0]+t;return s.shift(),s.push(f),Math.max(0,f-c)}const d=n?l:u;return c=>{const f=function(...h){if(!f.isEnabled)return(async()=>c.apply(this,h))();let p;return new Promise((m,_)=>{const v=()=>{m(c.apply(this,h)),o.delete(p)},y=d();y>0?(p=setTimeout(v,y),o.set(p,_),r==null||r()):v()})};return f.abort=()=>{for(const h of o.keys())clearTimeout(h),o.get(h)(new Ed);o.clear(),s.splice(0,s.length)},f.isEnabled=!0,Object.defineProperty(f,"queueSize",{get(){return o.size}}),f}}const Ss=new Set,Re=new WeakMap,zt=new WeakMap,pt=new WeakMap,io=new WeakMap,Sd=new WeakMap,Ft=new WeakMap,Vn=new WeakMap,rn=new WeakSet;let ot,Io=0,No=0;const Ye="__aa_tgt",mn="__aa_del",Jn="__aa_new",Td=e=>{const t=Md(e);t&&t.forEach(n=>Pd(n))},xd=e=>{e.forEach(t=>{t.target===ot&&Ad(),Re.has(t.target)&&vt(t.target)})};function Cd(e){const t=io.get(e);t==null||t.disconnect();let n=Re.get(e),r=0;const o=5;n||(n=Ht(e),Re.set(e,n));const{offsetWidth:i,offsetHeight:a}=ot,s=[n.top-o,i-(n.left+o+n.width),a-(n.top+o+n.height),n.left-o].map(d=>`${-1*Math.floor(d)}px`).join(" "),l=new IntersectionObserver(()=>{++r>1&&vt(e)},{root:ot,threshold:1,rootMargin:s});l.observe(e),io.set(e,l)}function vt(e){clearTimeout(Vn.get(e));const t=pr(e),n=_n(t)?500:t.duration;Vn.set(e,setTimeout(async()=>{const r=pt.get(e);try{await(r==null?void 0:r.finished),Re.set(e,Ht(e)),Cd(e)}catch{}},n))}function Ad(){clearTimeout(Vn.get(ot)),Vn.set(ot,setTimeout(()=>{Ss.forEach(e=>As(e,t=>Ts(()=>vt(t))))},100))}function Od(e){setTimeout(()=>{Sd.set(e,setInterval(()=>Ts(vt.bind(null,e)),2e3))},Math.round(2e3*Math.random()))}function Ts(e){typeof requestIdleCallback=="function"?requestIdleCallback(()=>e()):requestAnimationFrame(()=>e())}let ao,Lt;typeof window<"u"&&(ot=document.documentElement,ao=new MutationObserver(Td),Lt=new ResizeObserver(xd),window.addEventListener("scroll",()=>{No=window.scrollY,Io=window.scrollX}),Lt.observe(ot));function Md(e){return e.reduce((r,o)=>[...r,...Array.from(o.addedNodes),...Array.from(o.removedNodes)],[]).every(r=>r.nodeName==="#comment")?!1:e.reduce((r,o)=>{if(r===!1)return!1;if(o.target instanceof Element){if(Rr(o.target),!r.has(o.target)){r.add(o.target);for(let i=0;i<o.target.children.length;i++){const a=o.target.children.item(i);if(a){if(mn in a)return!1;Rr(o.target,a),r.add(a)}}}if(o.removedNodes.length)for(let i=0;i<o.removedNodes.length;i++){const a=o.removedNodes[i];if(mn in a)return!1;a instanceof Element&&(r.add(a),Rr(o.target,a),zt.set(a,[o.previousSibling,o.nextSibling]))}}return r},new Set)}function Rr(e,t){!t&&!(Ye in e)?Object.defineProperty(e,Ye,{value:e}):t&&!(Ye in t)&&Object.defineProperty(t,Ye,{value:e})}function Pd(e){var t;const n=e.isConnected,r=Re.has(e);n&&zt.has(e)&&zt.delete(e),pt.has(e)&&((t=pt.get(e))===null||t===void 0||t.cancel()),Jn in e?Bi(e):r&&n?Ld(e):r&&!n?Dd(e):Bi(e)}function Ue(e){return Number(e.replace(/[^0-9.\-]/g,""))}function Rd(e){let t=e.parentElement;for(;t;){if(t.scrollLeft||t.scrollTop)return{x:t.scrollLeft,y:t.scrollTop};t=t.parentElement}return{x:0,y:0}}function Ht(e){const t=e.getBoundingClientRect(),{x:n,y:r}=Rd(e);return{top:t.top+r,left:t.left+n,width:t.width,height:t.height}}function xs(e,t,n){let r=t.width,o=t.height,i=n.width,a=n.height;const u=getComputedStyle(e);if(u.getPropertyValue("box-sizing")==="content-box"){const l=Ue(u.paddingTop)+Ue(u.paddingBottom)+Ue(u.borderTopWidth)+Ue(u.borderBottomWidth),d=Ue(u.paddingLeft)+Ue(u.paddingRight)+Ue(u.borderRightWidth)+Ue(u.borderLeftWidth);r-=d,i-=d,o-=l,a-=l}return[r,i,o,a].map(Math.round)}function pr(e){return Ye in e&&Ft.has(e[Ye])?Ft.get(e[Ye]):{duration:250,easing:"ease-in-out"}}function Cs(e){if(Ye in e)return e[Ye]}function ko(e){const t=Cs(e);return t?rn.has(t):!1}function As(e,...t){t.forEach(n=>n(e,Ft.has(e)));for(let n=0;n<e.children.length;n++){const r=e.children.item(n);r&&t.forEach(o=>o(r,Ft.has(r)))}}function $o(e){return Array.isArray(e)?e:[e]}function _n(e){return typeof e=="function"}function Ld(e){const t=Re.get(e),n=Ht(e);if(!ko(e))return Re.set(e,n);let r;if(!t)return;const o=pr(e);if(typeof o!="function"){const i=t.left-n.left,a=t.top-n.top,[u,s,l,d]=xs(e,t,n),c={transform:`translate(${i}px, ${a}px)`},f={transform:"translate(0, 0)"};u!==s&&(c.width=`${u}px`,f.width=`${s}px`),l!==d&&(c.height=`${l}px`,f.height=`${d}px`),r=e.animate([c,f],{duration:o.duration,easing:o.easing})}else{const[i]=$o(o(e,"remain",t,n));r=new Animation(i),r.play()}pt.set(e,r),Re.set(e,n),r.addEventListener("finish",vt.bind(null,e))}function Bi(e){Jn in e&&delete e[Jn];const t=Ht(e);Re.set(e,t);const n=pr(e);if(!ko(e))return;let r;if(typeof n!="function")r=e.animate([{transform:"scale(.98)",opacity:0},{transform:"scale(0.98)",opacity:0,offset:.5},{transform:"scale(1)",opacity:1}],{duration:n.duration*1.5,easing:"ease-in"});else{const[o]=$o(n(e,"add",t));r=new Animation(o),r.play()}pt.set(e,r),r.addEventListener("finish",vt.bind(null,e))}function Ui(e,t){var n;e.remove(),Re.delete(e),zt.delete(e),pt.delete(e),(n=io.get(e))===null||n===void 0||n.disconnect(),setTimeout(()=>{if(mn in e&&delete e[mn],Object.defineProperty(e,Jn,{value:!0,configurable:!0}),t&&e instanceof HTMLElement)for(const r in t)e.style[r]=""},0)}function Dd(e){var t;if(!zt.has(e)||!Re.has(e))return;const[n,r]=zt.get(e);Object.defineProperty(e,mn,{value:!0,configurable:!0});const o=window.scrollX,i=window.scrollY;if(r&&r.parentNode&&r.parentNode instanceof Element?r.parentNode.insertBefore(e,r):n&&n.parentNode?n.parentNode.appendChild(e):(t=Cs(e))===null||t===void 0||t.appendChild(e),!ko(e))return Ui(e);const[a,u,s,l]=Nd(e),d=pr(e),c=Re.get(e);(o!==Io||i!==No)&&Id(e,o,i,d);let f,h={position:"absolute",top:`${a}px`,left:`${u}px`,width:`${s}px`,height:`${l}px`,margin:"0",pointerEvents:"none",transformOrigin:"center",zIndex:"100"};if(!_n(d))Object.assign(e.style,h),f=e.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.98)",opacity:0}],{duration:d.duration,easing:"ease-out"});else{const[p,m]=$o(d(e,"remove",c));(m==null?void 0:m.styleReset)!==!1&&(h=(m==null?void 0:m.styleReset)||h,Object.assign(e.style,h)),f=new Animation(p),f.play()}pt.set(e,f),f.addEventListener("finish",Ui.bind(null,e,h))}function Id(e,t,n,r){const o=Io-t,i=No-n,a=document.documentElement.style.scrollBehavior;if(getComputedStyle(ot).scrollBehavior==="smooth"&&(document.documentElement.style.scrollBehavior="auto"),window.scrollTo(window.scrollX+o,window.scrollY+i),!e.parentElement)return;const s=e.parentElement;let l=s.clientHeight,d=s.clientWidth;const c=performance.now();function f(){requestAnimationFrame(()=>{if(!_n(r)){const h=l-s.clientHeight,p=d-s.clientWidth;c+r.duration>performance.now()?(window.scrollTo({left:window.scrollX-p,top:window.scrollY-h}),l=s.clientHeight,d=s.clientWidth,f()):document.documentElement.style.scrollBehavior=a}})}f()}function Nd(e){const t=Re.get(e),[n,,r]=xs(e,t,Ht(e));let o=e.parentElement;for(;o&&(getComputedStyle(o).position==="static"||o instanceof HTMLBodyElement);)o=o.parentElement;o||(o=document.body);const i=getComputedStyle(o),a=Re.get(o)||Ht(o),u=Math.round(t.top-a.top)-Ue(i.borderTopWidth),s=Math.round(t.left-a.left)-Ue(i.borderLeftWidth);return[u,s,n,r]}function kd(e,t={}){return ao&&Lt&&(window.matchMedia("(prefers-reduced-motion: reduce)").matches&&!_n(t)&&!t.disrespectUserMotionPreference||(rn.add(e),getComputedStyle(e).position==="static"&&Object.assign(e.style,{position:"relative"}),As(e,vt,Od,o=>Lt==null?void 0:Lt.observe(o)),_n(t)?Ft.set(e,t):Ft.set(e,{duration:250,easing:"ease-in-out",...t}),ao.observe(e,{childList:!0}),Ss.add(e))),Object.freeze({parent:e,enable:()=>{rn.add(e)},disable:()=>{rn.delete(e)},isEnabled:()=>rn.has(e)})}function jp(e){const t=K(null),[n,r]=me(),o=i=>{n&&(i?n.enable():n.disable())};return ie(()=>{t.current instanceof HTMLElement&&r(kd(t.current,e||{}))},[]),[t,o]}var jo={exports:{}},$d="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",jd=$d;var zd=jd;function Os(){}function Ms(){}Ms.resetWarningCache=Os;var Fd=function(){function e(r,o,i,a,u,s){if(s!==zd){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Ms,resetWarningCache:Os};return n.PropTypes=n,n};var zp=jo.exports;if(!1)var Fp,Hp;else jo.exports=Fd();var Y=jo.exports;const zo=e=>!!e&&e[0]==="o",so=go||(e=>e());const Ct=(e,t,n=1e-4)=>Math.abs(e-t)<n,vn=(e,t)=>e===!0||!!(e&&e[t]),xe=(e,t)=>typeof e=="function"?e(t):e,Hd="_szhsinMenu",Bd=e=>e[Hd];const Kt=(e,t)=>(t&&Object.keys(t).forEach(n=>{const r=e[n],o=t[n];typeof o=="function"&&r?e[n]=(...i)=>{o(...i),r(...i)}:e[n]=o}),e),Ud=e=>{if(typeof e!="string")return{top:0,right:0,bottom:0,left:0};const t=e.trim().split(/\s+/,4).map(parseFloat),n=isNaN(t[0])?0:t[0],r=isNaN(t[1])?n:t[1];return{top:n,right:r,bottom:isNaN(t[2])?n:t[2],left:isNaN(t[3])?r:t[3]}},Lr=e=>{for(;e;){if(e=e.parentNode,!e||e===document.body||!e.parentNode)return;const{overflow:t,overflowX:n,overflowY:r}=getComputedStyle(e);if(/auto|scroll|overlay|hidden/.test(t+r+n))return e}};function mr(e,t){return{"aria-disabled":e||void 0,tabIndex:t?0:-1}}function qi(e,t){for(let n=0;n<e.length;n++)if(e[n]===t)return n;return-1}const qd=e=>({[e?`${e}ClassName`:"className"]:Y.oneOfType([Y.string,Y.func])}),Wd={className:Y.string,...qd("menu"),arrowProps:Y.object,focusProps:Y.object,menuStyle:Y.object,arrow:Y.bool,setDownOverflow:Y.bool,gap:Y.number,shift:Y.number,align:Y.oneOf(["start","center","end"]),direction:Y.oneOf(["left","right","top","bottom"]),position:Y.oneOf(["auto","anchor","initial"]),overflow:Y.oneOf(["auto","visible","hidden"])},Bp={...Wd,containerProps:Y.object,initialMounted:Y.bool,unmountOnClose:Y.bool,transition:Y.oneOfType([Y.bool,Y.exact({open:Y.bool,close:Y.bool,item:Y.bool})]),transitionTimeout:Y.number,boundingBoxRef:Y.object,boundingBoxPadding:Y.string,reposition:Y.oneOf(["auto","initial"]),repositionFlag:Y.oneOfType([Y.string,Y.number]),viewScroll:Y.oneOf(["auto","close","initial"]),submenuOpenDelay:Y.number,submenuCloseDelay:Y.number,portal:Y.oneOfType([Y.bool,Y.exact({target:Y.object,stablePosition:Y.bool})]),theming:Y.string,onItemClick:Y.func},Up={instanceRef:Y.oneOfType([Y.object,Y.func]),onMenuChange:Y.func},We=({block:e,element:t,modifiers:n,className:r})=>ae(()=>{const o=t?`${e}__${t}`:e;let i=o;n&&Object.keys(n).forEach(u=>{const s=n[u];s&&(i+=` ${o}--${s===!0?u:`${u}-${s}`}`)});let a=typeof r=="function"?r(n):r;return typeof a=="string"&&(a=a.trim(),a&&(i+=` ${a}`)),i},[e,t,n,r]),Kd="szh-menu-container",qe="szh-menu";const Gd="arrow",Fo="item",Yd="divider",Zd="header",Vd="group",Jd="submenu";const Ps=be(),Ho=be({}),Xn=be({}),Bo=be({}),Xd=be({}),_r=be({}),we=Object.freeze({ENTER:"Enter",ESC:"Escape",SPACE:" ",HOME:"Home",END:"End",LEFT:"ArrowLeft",RIGHT:"ArrowRight",UP:"ArrowUp",DOWN:"ArrowDown"}),he=Object.freeze({RESET:0,SET:1,UNSET:2,INCREASE:3,DECREASE:4,FIRST:5,LAST:6,SET_INDEX:7}),yn=Object.freeze({CLICK:"click",CANCEL:"cancel",BLUR:"blur",SCROLL:"scroll"}),It=Object.freeze({FIRST:"first",LAST:"last"}),Qd=Object.freeze({entering:"opening",entered:"open",exiting:"closing",exited:"closed"}),Dr="absolute",Uo="presentation",vr="menuitem",Wi={"aria-hidden":!0,role:vr};const ef=({className:e,containerRef:t,containerProps:n,children:r,isOpen:o,theming:i,transition:a,onClose:u})=>{const s=vn(a,"item");return se("div",{...Kt({onKeyDown:({key:c})=>{switch(c){case we.ESC:xe(u,{key:c,reason:yn.CANCEL});break}},onBlur:c=>{o&&!c.currentTarget.contains(c.relatedTarget)&&xe(u,{reason:yn.BLUR})}},n),className:We({block:Kd,modifiers:ae(()=>({theme:i,itemTransition:s}),[i,s]),className:e}),style:{position:"absolute",...n==null?void 0:n.style},ref:t,children:r})},tf=()=>{let e,t=0;return{toggle:n=>{n?t++:t--,t=Math.max(t,0)},on:(n,r,o)=>{t?e||(e=setTimeout(()=>{e=0,r()},n)):o==null||o()},off:()=>{e&&(clearTimeout(e),e=0)}}},nf=(e,t)=>{const[n,r]=me(),i=K({items:[],hoverIndex:-1,sorted:!1}).current,a=_e((s,l)=>{const{items:d}=i;if(!s)i.items=[];else if(l)d.push(s);else{const c=d.indexOf(s);c>-1&&(d.splice(c,1),s.contains(document.activeElement)&&(t.current.focus(),r()))}i.hoverIndex=-1,i.sorted=!1},[i,t]),u=_e((s,l,d)=>{const{items:c,hoverIndex:f}=i,h=()=>{if(i.sorted)return;const _=e.current.querySelectorAll(".szh-menu__item");c.sort((v,y)=>qi(_,v)-qi(_,y)),i.sorted=!0};let p=-1,m;switch(s){case he.RESET:break;case he.SET:m=l;break;case he.UNSET:m=_=>_===l?void 0:_;break;case he.FIRST:h(),p=0,m=c[p];break;case he.LAST:h(),p=c.length-1,m=c[p];break;case he.SET_INDEX:h(),p=d,m=c[p];break;case he.INCREASE:h(),p=f,p<0&&(p=c.indexOf(l)),p++,p>=c.length&&(p=0),m=c[p];break;case he.DECREASE:h(),p=f,p<0&&(p=c.indexOf(l)),p--,p<0&&(p=c.length-1),m=c[p];break;default:}m||(p=-1),r(m),i.hoverIndex=p},[e,i]);return{hoverItem:n,dispatch:u,updateItems:a}},rf=(e,t,n,r)=>{const o=t.current.getBoundingClientRect(),i=e.current.getBoundingClientRect(),a=n===window?{left:0,top:0,right:document.documentElement.clientWidth,bottom:window.innerHeight}:n.getBoundingClientRect(),u=Ud(r),s=p=>p+i.left-a.left-u.left,l=p=>p+i.left+o.width-a.right+u.right,d=p=>p+i.top-a.top-u.top,c=p=>p+i.top+o.height-a.bottom+u.bottom;return{menuRect:o,containerRect:i,getLeftOverflow:s,getRightOverflow:l,getTopOverflow:d,getBottomOverflow:c,confineHorizontally:p=>{let m=s(p);if(m<0)p-=m;else{const _=l(p);_>0&&(p-=_,m=s(p),m<0&&(p-=m))}return p},confineVertically:p=>{let m=d(p);if(m<0)p-=m;else{const _=c(p);_>0&&(p-=_,m=d(p),m<0&&(p-=m))}return p}}},of=({arrowRef:e,menuY:t,anchorRect:n,containerRect:r,menuRect:o})=>{let i=n.top-r.top-t+n.height/2;const a=e.current.offsetHeight*1.25;return i=Math.max(a,i),i=Math.min(i,o.height-a),i},af=({anchorRect:e,containerRect:t,menuRect:n,placeLeftorRightY:r,placeLeftX:o,placeRightX:i,getLeftOverflow:a,getRightOverflow:u,confineHorizontally:s,confineVertically:l,arrowRef:d,arrow:c,direction:f,position:h})=>{let p=f,m=r;h!=="initial"&&(m=l(m),h==="anchor"&&(m=Math.min(m,e.bottom-t.top),m=Math.max(m,e.top-t.top-n.height)));let _,v,y;return p==="left"?(_=o,h!=="initial"&&(v=a(_),v<0&&(y=u(i),(y<=0||-v>y)&&(_=i,p="right")))):(_=i,h!=="initial"&&(y=u(_),y>0&&(v=a(o),(v>=0||-v<y)&&(_=o,p="left")))),h==="auto"&&(_=s(_)),{arrowY:c?of({menuY:m,arrowRef:d,anchorRect:e,containerRect:t,menuRect:n}):void 0,x:_,y:m,computedDirection:p}},sf=({arrowRef:e,menuX:t,anchorRect:n,containerRect:r,menuRect:o})=>{let i=n.left-r.left-t+n.width/2;const a=e.current.offsetWidth*1.25;return i=Math.max(a,i),i=Math.min(i,o.width-a),i},uf=({anchorRect:e,containerRect:t,menuRect:n,placeToporBottomX:r,placeTopY:o,placeBottomY:i,getTopOverflow:a,getBottomOverflow:u,confineHorizontally:s,confineVertically:l,arrowRef:d,arrow:c,direction:f,position:h})=>{let p=f==="top"?"top":"bottom",m=r;h!=="initial"&&(m=s(m),h==="anchor"&&(m=Math.min(m,e.right-t.left),m=Math.max(m,e.left-t.left-n.width)));let _,v,y;return p==="top"?(_=o,h!=="initial"&&(v=a(_),v<0&&(y=u(i),(y<=0||-v>y)&&(_=i,p="bottom")))):(_=i,h!=="initial"&&(y=u(_),y>0&&(v=a(o),(v>=0||-v<y)&&(_=o,p="top")))),h==="auto"&&(_=l(_)),{arrowX:c?sf({menuX:m,arrowRef:d,anchorRect:e,containerRect:t,menuRect:n}):void 0,x:m,y:_,computedDirection:p}},cf=({arrow:e,align:t,direction:n,gap:r,shift:o,position:i,anchorRect:a,arrowRef:u,positionHelpers:s})=>{const{menuRect:l,containerRect:d}=s,c=n==="left"||n==="right";let f=c?r:o,h=c?o:r;if(e){const x=u.current;c?f+=x.offsetWidth:h+=x.offsetHeight}const p=a.left-d.left-l.width-f,m=a.right-d.left+f,_=a.top-d.top-l.height-h,v=a.bottom-d.top+h;let y,T;t==="end"?(y=a.right-d.left-l.width,T=a.bottom-d.top-l.height):t==="center"?(y=a.left-d.left-(l.width-a.width)/2,T=a.top-d.top-(l.height-a.height)/2):(y=a.left-d.left,T=a.top-d.top),y+=f,T+=h;const M={...s,anchorRect:a,placeLeftX:p,placeRightX:m,placeLeftorRightY:T,placeTopY:_,placeBottomY:v,placeToporBottomX:y,arrowRef:u,arrow:e,direction:n,position:i};switch(n){case"left":case"right":return af(M);case"top":case"bottom":default:return uf(M)}},Nt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?Je:ie;function Ki(e,t){typeof e=="function"?e(t):e.current=t}const Gt=(e,t)=>ae(()=>e?t?n=>{Ki(e,n),Ki(t,n)}:e:t,[e,t]),Gi=-9999,Rs=({ariaLabel:e,menuClassName:t,menuStyle:n,arrow:r,arrowProps:o={},anchorPoint:i,anchorRef:a,containerRef:u,containerProps:s,focusProps:l,externalRef:d,parentScrollingRef:c,align:f="start",direction:h="bottom",position:p="auto",overflow:m="visible",setDownOverflow:_,repositionFlag:v,captureFocus:y=!0,state:T,endTransition:M,isDisabled:x,menuItemFocus:b,gap:C=0,shift:B=0,children:S,onClose:L,...w})=>{const[I,q]=me({x:Gi,y:Gi}),[D,A]=me({}),[O,P]=me(),[R,U]=me(h),[F]=me(tf),[G,Z]=ur(X=>X+1,1),{transition:Q,boundingBoxRef:re,boundingBoxPadding:ue,rootMenuRef:Ee,rootAnchorRef:pe,scrollNodesRef:ze,reposition:Ce,viewScroll:ce,submenuCloseDelay:Ae}=ne(_r),{submenuCtx:Ie,reposSubmenu:H=v}=ne(Xn),ye=K(null),g=K(),E=K(),j=K(!1),N=K({width:0,height:0}),z=K(()=>{}),{hoverItem:k,dispatch:$,updateItems:V}=nf(ye,g),J=zo(T),ee=vn(Q,"open"),le=vn(Q,"close"),de=ze.current,Ne=X=>{switch(X.key){case we.HOME:$(he.FIRST);break;case we.END:$(he.LAST);break;case we.UP:$(he.DECREASE,k);break;case we.DOWN:$(he.INCREASE,k);break;case we.SPACE:X.target&&X.target.className.indexOf(qe)!==-1&&X.preventDefault();return;default:return}X.preventDefault(),X.stopPropagation()},Fe=()=>{T==="closing"&&P(),xe(M)},et=X=>{X.stopPropagation(),F.on(Ae,()=>{$(he.RESET),g.current.focus()})},He=X=>{X.target===X.currentTarget&&F.off()},Oe=_e(X=>{var Se;const Be=a?(Se=a.current)==null?void 0:Se.getBoundingClientRect():i?{left:i.x,right:i.x,top:i.y,bottom:i.y,width:0,height:0}:null;if(!Be)return;de.menu||(de.menu=(re?re.current:Lr(Ee.current))||window);const ke=rf(u,ye,de.menu,ue);let{arrowX:ge,arrowY:Et,x:St,y:Ke,computedDirection:br}=cf({arrow:r,align:f,direction:h,gap:C,shift:B,position:p,anchorRect:Be,arrowRef:E,positionHelpers:ke});const{menuRect:Go}=ke;let Tt=Go.height;if(!X&&m!=="visible"){const{getTopOverflow:Xs,getBottomOverflow:Qs}=ke;let xt,Er;const Yo=N.current.height,Tn=Qs(Ke);if(Tn>0||Ct(Tn,0)&&Ct(Tt,Yo))xt=Tt-Tn,Er=Tn;else{const Vt=Xs(Ke);(Vt<0||Ct(Vt,0)&&Ct(Tt,Yo))&&(xt=Tt+Vt,Er=0-Vt,xt>=0&&(Ke-=Vt))}xt>=0?(Tt=xt,P({height:xt,overflowAmt:Er})):P()}r&&A({x:ge,y:Et}),q({x:St,y:Ke}),U(br),N.current={width:Go.width,height:Tt}},[r,f,ue,h,C,B,p,m,i,a,u,re,Ee,de]);Nt(()=>{J&&(Oe(),j.current&&Z()),j.current=J,z.current=Oe},[J,Oe,H]),Nt(()=>{O&&!_&&(ye.current.scrollTop=0)},[O,_]),Nt(()=>V,[V]),ie(()=>{let{menu:X}=de;if(!J||!X)return;if(X=X.addEventListener?X:window,!de.anchors){de.anchors=[];let ge=Lr(pe&&pe.current);for(;ge&&ge!==X;)de.anchors.push(ge),ge=Lr(ge)}let Se=ce;if(de.anchors.length&&Se==="initial"&&(Se="auto"),Se==="initial")return;const Be=()=>{Se==="auto"?so(()=>Oe(!0)):xe(L,{reason:yn.SCROLL})},ke=de.anchors.concat(ce!=="initial"?X:[]);return ke.forEach(ge=>ge.addEventListener("scroll",Be)),()=>ke.forEach(ge=>ge.removeEventListener("scroll",Be))},[pe,de,J,L,ce,Oe]);const ut=!!O&&O.overflowAmt>0;ie(()=>{if(ut||!J||!c)return;const X=()=>so(Oe),Se=c.current;return Se.addEventListener("scroll",X),()=>Se.removeEventListener("scroll",X)},[J,ut,c,Oe]),ie(()=>{if(typeof ResizeObserver!="function"||Ce==="initial")return;const X=new ResizeObserver(([Be])=>{const{borderBoxSize:ke,target:ge}=Be;let Et,St;if(ke){const{inlineSize:Ke,blockSize:br}=ke[0]||ke;Et=Ke,St=br}else{const Ke=ge.getBoundingClientRect();Et=Ke.width,St=Ke.height}Et===0||St===0||Ct(Et,N.current.width,1)&&Ct(St,N.current.height,1)||wo(()=>{z.current(),Z()})}),Se=ye.current;return X.observe(Se,{box:"border-box"}),()=>X.unobserve(Se)},[Ce]),ie(()=>{if(!J){$(he.RESET),le||P();return}const{position:X,alwaysUpdate:Se}=b||{},Be=()=>{X===It.FIRST?$(he.FIRST):X===It.LAST?$(he.LAST):X>=-1&&$(he.SET_INDEX,void 0,X)};if(Se)Be();else if(y){const ke=setTimeout(()=>{const ge=ye.current;ge&&!ge.contains(document.activeElement)&&(g.current.focus(),Be())},ee?170:100);return()=>clearTimeout(ke)}},[J,ee,le,y,b,$]);const En=ae(()=>({isParentOpen:J,submenuCtx:F,dispatch:$,updateItems:V}),[J,F,$,V]);let Yt,Zt;O&&(_?Zt=O.overflowAmt:Yt=O.height);const yr=ae(()=>({reposSubmenu:G,submenuCtx:F,overflow:m,overflowAmt:Zt,parentMenuRef:ye,parentDir:R}),[G,F,m,Zt,R]),wt=Yt>=0?{maxHeight:Yt,overflow:m}:void 0,bt=ae(()=>({state:T,dir:R}),[T,R]),gr=ae(()=>({dir:R}),[R]),wr=We({block:qe,element:Gd,modifiers:gr,className:o.className}),Sn=se("ul",{role:"menu","aria-label":e,...mr(x),...Kt({onPointerEnter:Ie==null?void 0:Ie.off,onPointerMove:et,onPointerLeave:He,onKeyDown:Ne,onAnimationEnd:Fe},w),ref:Gt(d,ye),className:We({block:qe,modifiers:bt,className:t}),style:{...n,...wt,margin:0,display:T==="closed"?"none":void 0,position:Dr,left:I.x,top:I.y},children:[se("li",{tabIndex:-1,style:{position:Dr,left:0,top:0,display:"block",outline:"none"},ref:g,...Wi,...l}),r&&se("li",{...Wi,...o,className:wr,style:{display:"block",position:Dr,left:D.x,top:D.y,...o.style},ref:E}),se(Xn.Provider,{value:yr,children:se(Ho.Provider,{value:En,children:se(Ps.Provider,{value:k,children:xe(S,bt)})})})]});return s?se(ef,{...s,isOpen:J,children:Sn}):Sn},lf=it(function({"aria-label":t,className:n,containerProps:r,initialMounted:o,unmountOnClose:i,transition:a,transitionTimeout:u,boundingBoxRef:s,boundingBoxPadding:l,reposition:d="auto",submenuOpenDelay:c=300,submenuCloseDelay:f=150,viewScroll:h="initial",portal:p,theming:m,onItemClick:_,...v},y){const T=K(null),M=K({}),{anchorRef:x,state:b,onClose:C}=v,B=ae(()=>({initialMounted:o,unmountOnClose:i,transition:a,transitionTimeout:u,boundingBoxRef:s,boundingBoxPadding:l,rootMenuRef:T,rootAnchorRef:x,scrollNodesRef:M,reposition:d,viewScroll:h,submenuOpenDelay:c,submenuCloseDelay:f}),[o,i,a,u,x,s,l,d,h,c,f]),S=ae(()=>({handleClick(w,I){w.stopPropagation||xe(_,w);let q=w.keepOpen;q===void 0&&(q=I&&w.key===we.SPACE),q||xe(C,{value:w.value,key:w.key,reason:yn.CLICK})},handleClose(w){xe(C,{key:w,reason:yn.CLICK})}}),[_,C]);if(!b)return null;const L=se(_r.Provider,{value:B,children:se(Bo.Provider,{value:S,children:se(Rs,{...v,ariaLabel:t||"Menu",externalRef:y,containerRef:T,containerProps:{className:n,containerRef:T,containerProps:r,theming:m,transition:a,onClose:C}})})});return p===!0&&typeof document<"u"?hn(L,document.body):p?p.target?hn(L,p.target):p.stablePosition?null:L:L}),uo=0,co=1,Qn=2,er=3,tr=4,df=5,Ls=6,ff=["preEnter","entering","entered","preExit","exiting","exited","unmounted"],Ds=e=>({_s:e,status:ff[e],isEnter:e<er,isMounted:e!==Ls,isResolved:e===Qn||e>tr}),lo=e=>e?Ls:df,hf=(e,t)=>{switch(e){case co:case uo:return Qn;case tr:case er:return lo(t)}},pf=e=>typeof e=="object"?[e.enter,e.exit]:[e,e],Yi=(e,t,n,r,o)=>{clearTimeout(r.current);const i=Ds(e);t(i),n.current=i,o&&o({current:i})},mf=({enter:e=!0,exit:t=!0,preEnter:n,preExit:r,timeout:o,initialEntered:i,mountOnEnter:a,unmountOnExit:u,onStateChange:s}={})=>{const[l,d]=me(()=>Ds(i?Qn:lo(a))),c=K(l),f=K(),[h,p]=pf(o),m=_e(()=>{const v=hf(c.current._s,u);v&&Yi(v,d,c,f,s)},[s,u]),_=_e(v=>{const y=M=>{switch(Yi(M,d,c,f,s),M){case co:h>=0&&(f.current=setTimeout(m,h));break;case tr:p>=0&&(f.current=setTimeout(m,p));break;case uo:case er:f.current=setTimeout(()=>y(M+1),0);break}},T=c.current.isEnter;typeof v!="boolean"&&(v=!T),v?!T&&y(e?n?uo:co:Qn):T&&y(t?r?er:tr:lo(u))},[m,s,e,t,n,r,h,p,u]);return ie(()=>()=>clearTimeout(f.current),[]),[l,_,m]};const _f=({initialOpen:e,initialMounted:t,unmountOnClose:n,transition:r,transitionTimeout:o=500}={})=>{const[{status:i},a,u]=mf({initialEntered:e,mountOnEnter:!t,unmountOnExit:n,timeout:o,enter:vn(r,"open"),exit:vn(r,"close")});return[{state:Qd[i],endTransition:u},a]},Is=e=>{const[t,n]=_f(e),[r,o]=me(),i=(a,u)=>{o({position:a,alwaysUpdate:u}),n(!0)};return[{menuItemFocus:r,...t},n,i]},vf=(e,t)=>{const[n]=me({});return{onMouseDown:()=>{n.v=e&&e!=="closed"},onClick:r=>n.v?n.v=!1:t(!0,r)}},Ns=(e,t)=>{const n=K(t);ie(()=>{n.current!==t&&xe(e,{open:t}),n.current=t},[e,t])},qp=it(function({"aria-label":t,captureFocus:n,initialOpen:r,menuButton:o,instanceRef:i,onMenuChange:a,...u},s){const[l,d,c]=Is(u),{state:f}=l,h=zo(f),p=K(null),m=vf(f,(x,b)=>c(b.detail?void 0:It.FIRST)),_=_e(x=>{d(!1),x.key&&p.current.focus()},[d]),v=x=>{switch(x.key){case we.UP:c(It.LAST);break;case we.DOWN:c(It.FIRST);break;default:return}x.preventDefault()},y=xe(o,{open:h});if(!y||!y.type)throw new Error("Menu requires a menuButton prop.");const T={ref:Gt(y.ref,p),...Kt({onKeyDown:v,...m},y.props)};Bd(y.type)==="MenuButton"&&(T.isOpen=h);const M=dr(y,T);return Ns(a,h),cr(i,()=>({openMenu:c,closeMenu:()=>d(!1)})),se(De,{children:[M,se(lf,{...u,...l,"aria-label":t||(typeof y.props.children=="string"?y.props.children:"Menu"),anchorRef:p,ref:s,onClose:_})]})}),qo=(e,t)=>{const n=bn(t),r=it((o,i)=>{const a=K(null);return se(n,{...o,itemRef:a,externalRef:i,isHovering:ne(Ps)===a.current})});return r.displayName=`WithHovering(${e})`,r},ks=(e,t,n)=>{Nt(()=>{if(e)return;const r=t.current;return n(r,!0),()=>{n(r)}},[e,t,n])},Wp=qo("SubMenu",function({"aria-label":t,className:n,disabled:r,direction:o,label:i,openTrigger:a,onMenuChange:u,isHovering:s,instanceRef:l,itemRef:d,captureFocus:c,repositionFlag:f,itemProps:h={},...p}){const m=ne(_r),{rootMenuRef:_,submenuOpenDelay:v,submenuCloseDelay:y}=m,{parentMenuRef:T,parentDir:M,overflow:x}=ne(Xn),{isParentOpen:b,submenuCtx:C,dispatch:B,updateItems:S}=ne(Ho),L=x!=="visible",[w,I,q]=Is(m),{state:D}=w,A=!!r,O=zo(D),P=K(null),[R]=me({v:0}),U=()=>{C.off(),R.v&&(clearTimeout(R.v),R.v=0)},F=(...H)=>{U(),G(),!A&&q(...H)},G=()=>!s&&!A&&B(he.SET,d.current),Z=H=>{G(),a||(R.v=setTimeout(()=>so(F),Math.max(H,0)))},Q=H=>{A||(H.stopPropagation(),!(R.v||O)&&C.on(y,()=>Z(v-y),()=>Z(v)))},re=()=>{U(),O||B(he.UNSET,d.current)},ue=H=>{if(s)switch(H.key){case we.ENTER:H.preventDefault();case we.SPACE:case we.RIGHT:a!=="none"&&F(It.FIRST)}},Ee=H=>{let ye=!1;switch(H.key){case we.LEFT:O&&(d.current.focus(),I(!1),ye=!0);break;case we.RIGHT:O||(ye=!0);break}ye&&(H.preventDefault(),H.stopPropagation())};ks(A,d,S),Ns(u,O),ie(()=>C.toggle(O),[C,O]),ie(()=>()=>clearTimeout(R.v),[R]),ie(()=>{s&&b?d.current.focus():I(!1)},[s,b,I,d]),cr(l,()=>({openMenu:(...H)=>{b&&F(...H)},closeMenu:()=>{O&&(d.current.focus(),I(!1))}}));const pe=ae(()=>({open:O,hover:s,disabled:A,submenu:!0}),[O,s,A]),{ref:ze,className:Ce,...ce}=h,Ae=Kt({onPointerEnter:C.off,onPointerMove:Q,onPointerLeave:re,onKeyDown:ue,onClick:()=>a!=="none"&&F()},ce),Ie=()=>{const H=se(Rs,{...p,...w,ariaLabel:t||(typeof i=="string"?i:"Submenu"),anchorRef:d,containerRef:L?_:P,direction:o||(M==="right"||M==="left"?M:"right"),parentScrollingRef:L&&T,isDisabled:A}),ye=_.current;return L&&ye?hn(H,ye):H};return se("li",{className:We({block:qe,element:Jd,className:n}),style:{position:"relative"},role:Uo,ref:P,onKeyDown:Ee,children:[se("div",{role:vr,"aria-haspopup":!0,"aria-expanded":O,...mr(A,s),...Ae,ref:Gt(ze,d),className:We({block:qe,element:Fo,modifiers:pe,className:Ce}),children:ae(()=>xe(i,pe),[i,pe])}),D&&Ie()]})}),$s=(e,t,n,r)=>{const{submenuCloseDelay:o}=ne(_r),{isParentOpen:i,submenuCtx:a,dispatch:u,updateItems:s}=ne(Ho),l=()=>{!n&&!r&&u(he.SET,e.current)},d=()=>{!r&&u(he.UNSET,e.current)},c=p=>{n&&!p.currentTarget.contains(p.relatedTarget)&&d()},f=p=>{r||(p.stopPropagation(),a.on(o,l,l))},h=(p,m)=>{a.off(),!m&&d()};return ks(r,e,s),ie(()=>{n&&i&&t.current&&t.current.focus()},[t,n,i]),{setHover:l,onBlur:c,onPointerMove:f,onPointerLeave:h}},Kp=qo("MenuItem",function({className:t,value:n,href:r,type:o,checked:i,disabled:a,children:u,onClick:s,isHovering:l,itemRef:d,externalRef:c,...f}){const h=!!a,{setHover:p,...m}=$s(d,d,l,h),_=ne(Bo),v=ne(Xd),y=o==="radio",T=o==="checkbox",M=!!r&&!h&&!y&&!T,x=y?v.value===n:T?!!i:!1,b=w=>{if(h){w.stopPropagation(),w.preventDefault();return}const I={value:n,syntheticEvent:w};w.key!==void 0&&(I.key=w.key),T&&(I.checked=!x),y&&(I.name=v.name),xe(s,I),y&&xe(v.onRadioChange,I),_.handleClick(I,T||y)},C=w=>{if(l)switch(w.key){case we.ENTER:w.preventDefault();case we.SPACE:M?d.current.click():b(w)}},B=ae(()=>({type:o,disabled:h,hover:l,checked:x,anchor:M}),[o,h,l,x,M]),S=Kt({...m,onPointerDown:p,onKeyDown:C,onClick:b},f),L={role:y?"menuitemradio":T?"menuitemcheckbox":vr,"aria-checked":y||T?x:void 0,...mr(h,l),...S,ref:Gt(c,d),className:We({block:qe,element:Fo,modifiers:B,className:t}),children:ae(()=>xe(u,B),[u,B])};return M?se("li",{role:Uo,children:se("a",{href:r,...L})}):se("li",{...L})}),Gp=qo("FocusableItem",function({className:t,disabled:n,children:r,isHovering:o,itemRef:i,externalRef:a,...u}){const s=!!n,l=K(null),{setHover:d,onPointerLeave:c,...f}=$s(i,l,o,s),{handleClose:h}=ne(Bo),p=ae(()=>({disabled:s,hover:o,focusable:!0}),[s,o]),m=ae(()=>xe(r,{...p,ref:l,closeMenu:h}),[r,p,h]),_=Kt({...f,onPointerLeave:v=>c(v,!0),onFocus:d},u);return se("li",{role:vr,...mr(s),..._,ref:Gt(a,i),className:We({block:qe,element:Fo,modifiers:p,className:t}),children:m})}),Yp=bn(it(function({className:t,...n},r){return se("li",{role:"separator",...n,ref:r,className:We({block:qe,element:Yd,className:t})})})),Zp=bn(it(function({className:t,...n},r){return se("li",{role:Uo,...n,ref:r,className:We({block:qe,element:Zd,className:t})})})),Vp=it(function({className:t,style:n,takeOverflow:r,...o},i){const a=K(null),[u,s]=me(),{overflow:l,overflowAmt:d}=ne(Xn);return Nt(()=>{let c;r&&d>=0&&(c=a.current.getBoundingClientRect().height-d,c<0&&(c=0)),s(c>=0?{maxHeight:c,overflow:l}:void 0)},[r,l,d]),Nt(()=>{u&&(a.current.scrollTop=0)},[u]),se("div",{...o,ref:Gt(i,a),className:We({block:qe,element:Vd,className:t}),style:{...n,...u}})});function Jp(){const[e,t]=me({width:null,height:null});return Je(()=>{const n=()=>{t({width:window.innerWidth,height:window.innerHeight})};return n(),window.addEventListener("resize",n),()=>{window.removeEventListener("resize",n)}},[]),e}var nr={exports:{}},Xp=nr.exports;(function(e,t){(function(n,r){e.exports=r()})(at,function(){"use strict";var n=1e3,r=6e4,o=36e5,i="millisecond",a="second",u="minute",s="hour",l="day",d="week",c="month",f="quarter",h="year",p="date",m="Invalid Date",_=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|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,y={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(D){var A=["th","st","nd","rd"],O=D%100;return"["+D+(A[(O-20)%10]||A[O]||A[0])+"]"}},T=function(D,A,O){var P=String(D);return!P||P.length>=A?D:""+Array(A+1-P.length).join(O)+D},M={s:T,z:function(D){var A=-D.utcOffset(),O=Math.abs(A),P=Math.floor(O/60),R=O%60;return(A<=0?"+":"-")+T(P,2,"0")+":"+T(R,2,"0")},m:function D(A,O){if(A.date()<O.date())return-D(O,A);var P=12*(O.year()-A.year())+(O.month()-A.month()),R=A.clone().add(P,c),U=O-R<0,F=A.clone().add(P+(U?-1:1),c);return+(-(P+(O-R)/(U?R-F:F-R))||0)},a:function(D){return D<0?Math.ceil(D)||0:Math.floor(D)},p:function(D){return{M:c,y:h,w:d,d:l,D:p,h:s,m:u,s:a,ms:i,Q:f}[D]||String(D||"").toLowerCase().replace(/s$/,"")},u:function(D){return D===void 0}},x="en",b={};b[x]=y;var C="$isDayjsObject",B=function(D){return D instanceof I||!(!D||!D[C])},S=function D(A,O,P){var R;if(!A)return x;if(typeof A=="string"){var U=A.toLowerCase();b[U]&&(R=U),O&&(b[U]=O,R=U);var F=A.split("-");if(!R&&F.length>1)return D(F[0])}else{var G=A.name;b[G]=A,R=G}return!P&&R&&(x=R),R||!P&&x},L=function(D,A){if(B(D))return D.clone();var O=typeof A=="object"?A:{};return O.date=D,O.args=arguments,new I(O)},w=M;w.l=S,w.i=B,w.w=function(D,A){return L(D,{locale:A.$L,utc:A.$u,x:A.$x,$offset:A.$offset})};var I=function(){function D(O){this.$L=S(O.locale,null,!0),this.parse(O),this.$x=this.$x||O.x||{},this[C]=!0}var A=D.prototype;return A.parse=function(O){this.$d=function(P){var R=P.date,U=P.utc;if(R===null)return new Date(NaN);if(w.u(R))return new Date;if(R instanceof Date)return new Date(R);if(typeof R=="string"&&!/Z$/i.test(R)){var F=R.match(_);if(F){var G=F[2]-1||0,Z=(F[7]||"0").substring(0,3);return U?new Date(Date.UTC(F[1],G,F[3]||1,F[4]||0,F[5]||0,F[6]||0,Z)):new Date(F[1],G,F[3]||1,F[4]||0,F[5]||0,F[6]||0,Z)}}return new Date(R)}(O),this.init()},A.init=function(){var O=this.$d;this.$y=O.getFullYear(),this.$M=O.getMonth(),this.$D=O.getDate(),this.$W=O.getDay(),this.$H=O.getHours(),this.$m=O.getMinutes(),this.$s=O.getSeconds(),this.$ms=O.getMilliseconds()},A.$utils=function(){return w},A.isValid=function(){return this.$d.toString()!==m},A.isSame=function(O,P){var R=L(O);return this.startOf(P)<=R&&R<=this.endOf(P)},A.isAfter=function(O,P){return L(O)<this.startOf(P)},A.isBefore=function(O,P){return this.endOf(P)<L(O)},A.$g=function(O,P,R){return w.u(O)?this[P]:this.set(R,O)},A.unix=function(){return Math.floor(this.valueOf()/1e3)},A.valueOf=function(){return this.$d.getTime()},A.startOf=function(O,P){var R=this,U=!!w.u(P)||P,F=w.p(O),G=function(Ce,ce){var Ae=w.w(R.$u?Date.UTC(R.$y,ce,Ce):new Date(R.$y,ce,Ce),R);return U?Ae:Ae.endOf(l)},Z=function(Ce,ce){return w.w(R.toDate()[Ce].apply(R.toDate("s"),(U?[0,0,0,0]:[23,59,59,999]).slice(ce)),R)},Q=this.$W,re=this.$M,ue=this.$D,Ee="set"+(this.$u?"UTC":"");switch(F){case h:return U?G(1,0):G(31,11);case c:return U?G(1,re):G(0,re+1);case d:var pe=this.$locale().weekStart||0,ze=(Q<pe?Q+7:Q)-pe;return G(U?ue-ze:ue+(6-ze),re);case l:case p:return Z(Ee+"Hours",0);case s:return Z(Ee+"Minutes",1);case u:return Z(Ee+"Seconds",2);case a:return Z(Ee+"Milliseconds",3);default:return this.clone()}},A.endOf=function(O){return this.startOf(O,!1)},A.$set=function(O,P){var R,U=w.p(O),F="set"+(this.$u?"UTC":""),G=(R={},R[l]=F+"Date",R[p]=F+"Date",R[c]=F+"Month",R[h]=F+"FullYear",R[s]=F+"Hours",R[u]=F+"Minutes",R[a]=F+"Seconds",R[i]=F+"Milliseconds",R)[U],Z=U===l?this.$D+(P-this.$W):P;if(U===c||U===h){var Q=this.clone().set(p,1);Q.$d[G](Z),Q.init(),this.$d=Q.set(p,Math.min(this.$D,Q.daysInMonth())).$d}else G&&this.$d[G](Z);return this.init(),this},A.set=function(O,P){return this.clone().$set(O,P)},A.get=function(O){return this[w.p(O)]()},A.add=function(O,P){var R,U=this;O=Number(O);var F=w.p(P),G=function(re){var ue=L(U);return w.w(ue.date(ue.date()+Math.round(re*O)),U)};if(F===c)return this.set(c,this.$M+O);if(F===h)return this.set(h,this.$y+O);if(F===l)return G(1);if(F===d)return G(7);var Z=(R={},R[u]=r,R[s]=o,R[a]=n,R)[F]||1,Q=this.$d.getTime()+O*Z;return w.w(Q,this)},A.subtract=function(O,P){return this.add(-1*O,P)},A.format=function(O){var P=this,R=this.$locale();if(!this.isValid())return R.invalidDate||m;var U=O||"YYYY-MM-DDTHH:mm:ssZ",F=w.z(this),G=this.$H,Z=this.$m,Q=this.$M,re=R.weekdays,ue=R.months,Ee=R.meridiem,pe=function(ce,Ae,Ie,H){return ce&&(ce[Ae]||ce(P,U))||Ie[Ae].slice(0,H)},ze=function(ce){return w.s(G%12||12,ce,"0")},Ce=Ee||function(ce,Ae,Ie){var H=ce<12?"AM":"PM";return Ie?H.toLowerCase():H};return U.replace(v,function(ce,Ae){return Ae||function(Ie){switch(Ie){case"YY":return String(P.$y).slice(-2);case"YYYY":return w.s(P.$y,4,"0");case"M":return Q+1;case"MM":return w.s(Q+1,2,"0");case"MMM":return pe(R.monthsShort,Q,ue,3);case"MMMM":return pe(ue,Q);case"D":return P.$D;case"DD":return w.s(P.$D,2,"0");case"d":return String(P.$W);case"dd":return pe(R.weekdaysMin,P.$W,re,2);case"ddd":return pe(R.weekdaysShort,P.$W,re,3);case"dddd":return re[P.$W];case"H":return String(G);case"HH":return w.s(G,2,"0");case"h":return ze(1);case"hh":return ze(2);case"a":return Ce(G,Z,!0);case"A":return Ce(G,Z,!1);case"m":return String(Z);case"mm":return w.s(Z,2,"0");case"s":return String(P.$s);case"ss":return w.s(P.$s,2,"0");case"SSS":return w.s(P.$ms,3,"0");case"Z":return F}return null}(ce)||F.replace(":","")})},A.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},A.diff=function(O,P,R){var U,F=this,G=w.p(P),Z=L(O),Q=(Z.utcOffset()-this.utcOffset())*r,re=this-Z,ue=function(){return w.m(F,Z)};switch(G){case h:U=ue()/12;break;case c:U=ue();break;case f:U=ue()/3;break;case d:U=(re-Q)/6048e5;break;case l:U=(re-Q)/864e5;break;case s:U=re/o;break;case u:U=re/r;break;case a:U=re/n;break;default:U=re}return R?U:w.a(U)},A.daysInMonth=function(){return this.endOf(c).$D},A.$locale=function(){return b[this.$L]},A.locale=function(O,P){if(!O)return this.$L;var R=this.clone(),U=S(O,P,!0);return U&&(R.$L=U),R},A.clone=function(){return w.w(this.$d,this)},A.toDate=function(){return new Date(this.valueOf())},A.toJSON=function(){return this.isValid()?this.toISOString():null},A.toISOString=function(){return this.$d.toISOString()},A.toString=function(){return this.$d.toUTCString()},D}(),q=I.prototype;return L.prototype=q,[["$ms",i],["$s",a],["$m",u],["$H",s],["$W",l],["$M",c],["$y",h],["$D",p]].forEach(function(D){q[D[1]]=function(A){return this.$g(A,D[0],D[1])}}),L.extend=function(D,A){return D.$i||(D(A,I,L),D.$i=!0),L},L.locale=S,L.isDayjs=B,L.unix=function(D){return L(1e3*D)},L.en=b[x],L.Ls=b,L.p={},L})})(nr,nr.exports);var yf=nr.exports;const Qp=Xe(yf);var rr={exports:{}},em=rr.exports;(function(e,t){(function(n,r){e.exports=r()})(at,function(){return function(n){var r={};function o(i){if(r[i])return r[i].exports;var a=r[i]={i,l:!1,exports:{}};return n[i].call(a.exports,a,a.exports,o),a.l=!0,a.exports}return o.m=n,o.c=r,o.d=function(i,a,u){o.o(i,a)||Object.defineProperty(i,a,{enumerable:!0,get:u})},o.r=function(i){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},o.t=function(i,a){if(1&a&&(i=o(i)),8&a||4&a&&typeof i=="object"&&i&&i.__esModule)return i;var u=Object.create(null);if(o.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:i}),2&a&&typeof i!="string")for(var s in i)o.d(u,s,(function(l){return i[l]}).bind(null,s));return u},o.n=function(i){var a=i&&i.__esModule?function(){return i.default}:function(){return i};return o.d(a,"a",a),a},o.o=function(i,a){return Object.prototype.hasOwnProperty.call(i,a)},o.p="",o(o.s=1)}([function(n,r,o){var i,a=(function(){var u={ns:1e-6,us:.001,µs:.001,μs:.001,ms:1,s:1e3,m:6e4,h:36e5,d:864e5,w:6048e5},s=function(l){if(l instanceof s)return l;switch(typeof l){case"number":if(!isFinite(l))throw new Error("invalid duration: "+l);this._milliseconds=l;break;case"string":this._milliseconds=s.parse(l).valueOf();break;case"undefined":this._milliseconds=0;break;default:throw new Error("invalid duration: "+l)}};return s.millisecond=new s(1),s.second=new s(1e3),s.minute=new s(6e4),s.hour=new s(36e5),s.day=new s(864e5),s.week=new s(6048e5),s.prototype.nanoseconds=function(){return Math.floor(this._milliseconds/1e-6)},s.prototype.microseconds=function(){return Math.floor(this._milliseconds/.001)},s.prototype.milliseconds=function(){return this._milliseconds},s.prototype.seconds=function(){return Math.floor(this._milliseconds/1e3)},s.prototype.minutes=function(){return Math.floor(this._milliseconds/6e4)},s.prototype.hours=function(){return Math.floor(this._milliseconds/36e5)},s.prototype.days=function(){return Math.floor(this._milliseconds/864e5)},s.prototype.weeks=function(){return Math.floor(this._milliseconds/6048e5)},s.prototype.toString=function(){var l="",d=Math.abs(this._milliseconds),c=this._milliseconds<0?"-":"";if(d===0)return"0";var f=Math.floor(d/36e5);f!==0&&(d-=36e5*f,l+=f.toString()+"h");var h=Math.floor(d/6e4);h!==0&&(d-=6e4*h,l+=h.toString()+"m");var p=Math.floor(d/1e3);return p!==0&&(d-=1e3*p,l+=p.toString()+"s"),d!==0&&(l+=d.toString()+"ms"),c+l},s.prototype.valueOf=function(){return this._milliseconds},s.parse=function(l){if(l==="0"||l==="+0"||l==="-0")return new s(0);for(var d,c,f,h=/([\-\+\d\.]+)([a-zµμ]+)/g,p=0,m=0,_=l[0]==="-"?-1:1;f=h.exec(l);){if(d=f[2],c=Math.abs(parseFloat(f[1])),m++,isNaN(c))throw new Error("invalid duration");if(u[d]===void 0)throw new Error("invalid unit: "+d);p+=c*u[d]}if(m===0)throw new Error("invalid duration");return new s(Math.floor(p)*_)},s.prototype.roundTo=function(l){var d=new s(l).valueOf();this._milliseconds=d*Math.round(this._milliseconds/d)},s.prototype.isGreaterThan=function(l){return this.valueOf()>new s(l).valueOf()},s.prototype.isLessThan=function(l){return this.valueOf()<new s(l).valueOf()},s.prototype.isEqualTo=function(l){return this.valueOf()===new s(l).valueOf()},s.prototype.after=function(l){return new Date(l.valueOf()+this._milliseconds)},s.since=function(l){return new s(new Date().valueOf()-l.valueOf())},s.until=function(l){return new s(l.valueOf()-new Date().valueOf())},s.fromMicroseconds=function(l){var d=Math.floor(l/1e3);return new s(d)},s.fromNanoseconds=function(l){var d=Math.floor(l/1e6);return new s(d)},s.between=function(l,d){return new s(d.valueOf()-l.valueOf())},s.add=function(l,d){return new s(l+d)},s.subtract=function(l,d){return new s(l-d)},s.multiply=function(l,d){return new s(l*d)},s.divide=function(l,d){return l/d},s}).call(this);(i=(function(){return a}).apply(r,[]))===void 0||(n.exports=i)},function(n,r,o){"use strict";o.r(r);var i=o(0),a=o.n(i),u={en:{now:"Now",seconds:"%ds",minutes:"%dm",hours:"%dh",days:"MMM D",years:"MMM D, YYYY"},es:{now:"Ahora",seconds:"%ds",minutes:"%dmin",hours:"%dh",days:"D MMM.",years:"D MMM. YYYY"},ru:{now:"1 с",seconds:"%d с",minutes:"%d мин",hours:"%d ч",days:"D MMM.",years:"D MMM. YYYY"},fr:{now:"Μaintenant",seconds:"%ds",minutes:"%dm",hours:"%dh",days:"MMM D",years:"MMM D, YYYY"},el:{now:"Τώρα",seconds:"%dδ",minutes:"%dλ",hours:"%dω",days:"MMM D",years:"MMM D, YYYY"}};r.default=function(s,l,d){l.prototype.twitter=function(){return function(c){var f=c.$locale(),h=f?f.name:"en",p=Math.abs(c.diff(new Date)),m=null,_=null;if(m=p<=1e3?"now":p<6e4?"seconds":p<36e5?"minutes":p<864e5?"hours":p<31536e6?"days":"years",_&&m||!(["seconds","minutes","hours"].indexOf(m)>-1)||(_=new a.a(p)[m]()),m==="days"||m==="years"){var v=u[h][m];return c.format(v)}return u[h][m].replace("%d",_)}(this)}}}])})})(rr,rr.exports);var gf=rr.exports;const tm=Xe(gf);var or={exports:{}},nm=or.exports;(function(e,t){(function(n,r){e.exports=r()})(at,function(){"use strict";var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,o,i){var a=o.prototype,u=a.format;i.en.formats=n,a.format=function(s){s===void 0&&(s="YYYY-MM-DDTHH:mm:ssZ");var l=this.$locale().formats,d=function(c,f){return c.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(h,p,m){var _=m&&m.toUpperCase();return p||f[m]||n[m]||f[_].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(v,y,T){return y||T.slice(1)})})}(s,l===void 0?{}:l);return u.call(this,d)}}})})(or,or.exports);var wf=or.exports;const rm=Xe(wf);var ir={exports:{}},om=ir.exports;(function(e,t){(function(n,r){e.exports=r()})(at,function(){"use strict";return function(n,r,o){n=n||{};var i=r.prototype,a={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 u(l,d,c,f){return i.fromToBase(l,d,c,f)}o.en.relativeTime=a,i.fromToBase=function(l,d,c,f,h){for(var p,m,_,v=c.$locale().relativeTime||a,y=n.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"}],T=y.length,M=0;M<T;M+=1){var x=y[M];x.d&&(p=f?o(l).diff(c,x.d,!0):c.diff(l,x.d,!0));var b=(n.rounding||Math.round)(Math.abs(p));if(_=p>0,b<=x.r||!x.r){b<=1&&M>0&&(x=y[M-1]);var C=v[x.l];h&&(b=h(""+b)),m=typeof C=="string"?C.replace("%d",b):C(b,d,x.l,_);break}}if(d)return m;var B=_?v.future:v.past;return typeof B=="function"?B(m):B.replace("%s",m)},i.to=function(l,d){return u(l,d,this,!0)},i.from=function(l,d){return u(l,d,this)};var s=function(l){return l.$u?o.utc():o()};i.toNow=function(l){return this.to(s(this),l)},i.fromNow=function(l){return this.from(s(this),l)}}})})(ir,ir.exports);var bf=ir.exports;const im=Xe(bf);function Ef(e){return Intl.getCanonicalLocales(e)}var Ir={supplemental:{languageMatching:{"written-new":[{paradigmLocales:{_locales:"en en_GB es es_419 pt_BR pt_PT"}},{$enUS:{_value:"AS+CA+GU+MH+MP+PH+PR+UM+US+VI"}},{$cnsar:{_value:"HK+MO"}},{$americas:{_value:"019"}},{$maghreb:{_value:"MA+DZ+TN+LY+MR+EH"}},{no:{_desired:"nb",_distance:"1"}},{bs:{_desired:"hr",_distance:"4"}},{bs:{_desired:"sh",_distance:"4"}},{hr:{_desired:"sh",_distance:"4"}},{sr:{_desired:"sh",_distance:"4"}},{aa:{_desired:"ssy",_distance:"4"}},{de:{_desired:"gsw",_distance:"4",_oneway:"true"}},{de:{_desired:"lb",_distance:"4",_oneway:"true"}},{no:{_desired:"da",_distance:"8"}},{nb:{_desired:"da",_distance:"8"}},{ru:{_desired:"ab",_distance:"30",_oneway:"true"}},{en:{_desired:"ach",_distance:"30",_oneway:"true"}},{nl:{_desired:"af",_distance:"20",_oneway:"true"}},{en:{_desired:"ak",_distance:"30",_oneway:"true"}},{en:{_desired:"am",_distance:"30",_oneway:"true"}},{es:{_desired:"ay",_distance:"20",_oneway:"true"}},{ru:{_desired:"az",_distance:"30",_oneway:"true"}},{ur:{_desired:"bal",_distance:"20",_oneway:"true"}},{ru:{_desired:"be",_distance:"20",_oneway:"true"}},{en:{_desired:"bem",_distance:"30",_oneway:"true"}},{hi:{_desired:"bh",_distance:"30",_oneway:"true"}},{en:{_desired:"bn",_distance:"30",_oneway:"true"}},{zh:{_desired:"bo",_distance:"20",_oneway:"true"}},{fr:{_desired:"br",_distance:"20",_oneway:"true"}},{es:{_desired:"ca",_distance:"20",_oneway:"true"}},{fil:{_desired:"ceb",_distance:"30",_oneway:"true"}},{en:{_desired:"chr",_distance:"20",_oneway:"true"}},{ar:{_desired:"ckb",_distance:"30",_oneway:"true"}},{fr:{_desired:"co",_distance:"20",_oneway:"true"}},{fr:{_desired:"crs",_distance:"20",_oneway:"true"}},{sk:{_desired:"cs",_distance:"20"}},{en:{_desired:"cy",_distance:"20",_oneway:"true"}},{en:{_desired:"ee",_distance:"30",_oneway:"true"}},{en:{_desired:"eo",_distance:"30",_oneway:"true"}},{es:{_desired:"eu",_distance:"20",_oneway:"true"}},{da:{_desired:"fo",_distance:"20",_oneway:"true"}},{nl:{_desired:"fy",_distance:"20",_oneway:"true"}},{en:{_desired:"ga",_distance:"20",_oneway:"true"}},{en:{_desired:"gaa",_distance:"30",_oneway:"true"}},{en:{_desired:"gd",_distance:"20",_oneway:"true"}},{es:{_desired:"gl",_distance:"20",_oneway:"true"}},{es:{_desired:"gn",_distance:"20",_oneway:"true"}},{hi:{_desired:"gu",_distance:"30",_oneway:"true"}},{en:{_desired:"ha",_distance:"30",_oneway:"true"}},{en:{_desired:"haw",_distance:"20",_oneway:"true"}},{fr:{_desired:"ht",_distance:"20",_oneway:"true"}},{ru:{_desired:"hy",_distance:"30",_oneway:"true"}},{en:{_desired:"ia",_distance:"30",_oneway:"true"}},{en:{_desired:"ig",_distance:"30",_oneway:"true"}},{en:{_desired:"is",_distance:"20",_oneway:"true"}},{id:{_desired:"jv",_distance:"20",_oneway:"true"}},{en:{_desired:"ka",_distance:"30",_oneway:"true"}},{fr:{_desired:"kg",_distance:"30",_oneway:"true"}},{ru:{_desired:"kk",_distance:"30",_oneway:"true"}},{en:{_desired:"km",_distance:"30",_oneway:"true"}},{en:{_desired:"kn",_distance:"30",_oneway:"true"}},{en:{_desired:"kri",_distance:"30",_oneway:"true"}},{tr:{_desired:"ku",_distance:"30",_oneway:"true"}},{ru:{_desired:"ky",_distance:"30",_oneway:"true"}},{it:{_desired:"la",_distance:"20",_oneway:"true"}},{en:{_desired:"lg",_distance:"30",_oneway:"true"}},{fr:{_desired:"ln",_distance:"30",_oneway:"true"}},{en:{_desired:"lo",_distance:"30",_oneway:"true"}},{en:{_desired:"loz",_distance:"30",_oneway:"true"}},{fr:{_desired:"lua",_distance:"30",_oneway:"true"}},{hi:{_desired:"mai",_distance:"20",_oneway:"true"}},{en:{_desired:"mfe",_distance:"30",_oneway:"true"}},{fr:{_desired:"mg",_distance:"30",_oneway:"true"}},{en:{_desired:"mi",_distance:"20",_oneway:"true"}},{en:{_desired:"ml",_distance:"30",_oneway:"true"}},{ru:{_desired:"mn",_distance:"30",_oneway:"true"}},{hi:{_desired:"mr",_distance:"30",_oneway:"true"}},{id:{_desired:"ms",_distance:"30",_oneway:"true"}},{en:{_desired:"mt",_distance:"30",_oneway:"true"}},{en:{_desired:"my",_distance:"30",_oneway:"true"}},{en:{_desired:"ne",_distance:"30",_oneway:"true"}},{nb:{_desired:"nn",_distance:"20"}},{no:{_desired:"nn",_distance:"20"}},{en:{_desired:"nso",_distance:"30",_oneway:"true"}},{en:{_desired:"ny",_distance:"30",_oneway:"true"}},{en:{_desired:"nyn",_distance:"30",_oneway:"true"}},{fr:{_desired:"oc",_distance:"20",_oneway:"true"}},{en:{_desired:"om",_distance:"30",_oneway:"true"}},{en:{_desired:"or",_distance:"30",_oneway:"true"}},{en:{_desired:"pa",_distance:"30",_oneway:"true"}},{en:{_desired:"pcm",_distance:"20",_oneway:"true"}},{en:{_desired:"ps",_distance:"30",_oneway:"true"}},{es:{_desired:"qu",_distance:"30",_oneway:"true"}},{de:{_desired:"rm",_distance:"20",_oneway:"true"}},{en:{_desired:"rn",_distance:"30",_oneway:"true"}},{fr:{_desired:"rw",_distance:"30",_oneway:"true"}},{hi:{_desired:"sa",_distance:"30",_oneway:"true"}},{en:{_desired:"sd",_distance:"30",_oneway:"true"}},{en:{_desired:"si",_distance:"30",_oneway:"true"}},{en:{_desired:"sn",_distance:"30",_oneway:"true"}},{en:{_desired:"so",_distance:"30",_oneway:"true"}},{en:{_desired:"sq",_distance:"30",_oneway:"true"}},{en:{_desired:"st",_distance:"30",_oneway:"true"}},{id:{_desired:"su",_distance:"20",_oneway:"true"}},{en:{_desired:"sw",_distance:"30",_oneway:"true"}},{en:{_desired:"ta",_distance:"30",_oneway:"true"}},{en:{_desired:"te",_distance:"30",_oneway:"true"}},{ru:{_desired:"tg",_distance:"30",_oneway:"true"}},{en:{_desired:"ti",_distance:"30",_oneway:"true"}},{ru:{_desired:"tk",_distance:"30",_oneway:"true"}},{en:{_desired:"tlh",_distance:"30",_oneway:"true"}},{en:{_desired:"tn",_distance:"30",_oneway:"true"}},{en:{_desired:"to",_distance:"30",_oneway:"true"}},{ru:{_desired:"tt",_distance:"30",_oneway:"true"}},{en:{_desired:"tum",_distance:"30",_oneway:"true"}},{zh:{_desired:"ug",_distance:"20",_oneway:"true"}},{ru:{_desired:"uk",_distance:"20",_oneway:"true"}},{en:{_desired:"ur",_distance:"30",_oneway:"true"}},{ru:{_desired:"uz",_distance:"30",_oneway:"true"}},{fr:{_desired:"wo",_distance:"30",_oneway:"true"}},{en:{_desired:"xh",_distance:"30",_oneway:"true"}},{en:{_desired:"yi",_distance:"30",_oneway:"true"}},{en:{_desired:"yo",_distance:"30",_oneway:"true"}},{zh:{_desired:"za",_distance:"20",_oneway:"true"}},{en:{_desired:"zu",_distance:"30",_oneway:"true"}},{ar:{_desired:"aao",_distance:"10",_oneway:"true"}},{ar:{_desired:"abh",_distance:"10",_oneway:"true"}},{ar:{_desired:"abv",_distance:"10",_oneway:"true"}},{ar:{_desired:"acm",_distance:"10",_oneway:"true"}},{ar:{_desired:"acq",_distance:"10",_oneway:"true"}},{ar:{_desired:"acw",_distance:"10",_oneway:"true"}},{ar:{_desired:"acx",_distance:"10",_oneway:"true"}},{ar:{_desired:"acy",_distance:"10",_oneway:"true"}},{ar:{_desired:"adf",_distance:"10",_oneway:"true"}},{ar:{_desired:"aeb",_distance:"10",_oneway:"true"}},{ar:{_desired:"aec",_distance:"10",_oneway:"true"}},{ar:{_desired:"afb",_distance:"10",_oneway:"true"}},{ar:{_desired:"ajp",_distance:"10",_oneway:"true"}},{ar:{_desired:"apc",_distance:"10",_oneway:"true"}},{ar:{_desired:"apd",_distance:"10",_oneway:"true"}},{ar:{_desired:"arq",_distance:"10",_oneway:"true"}},{ar:{_desired:"ars",_distance:"10",_oneway:"true"}},{ar:{_desired:"ary",_distance:"10",_oneway:"true"}},{ar:{_desired:"arz",_distance:"10",_oneway:"true"}},{ar:{_desired:"auz",_distance:"10",_oneway:"true"}},{ar:{_desired:"avl",_distance:"10",_oneway:"true"}},{ar:{_desired:"ayh",_distance:"10",_oneway:"true"}},{ar:{_desired:"ayl",_distance:"10",_oneway:"true"}},{ar:{_desired:"ayn",_distance:"10",_oneway:"true"}},{ar:{_desired:"ayp",_distance:"10",_oneway:"true"}},{ar:{_desired:"bbz",_distance:"10",_oneway:"true"}},{ar:{_desired:"pga",_distance:"10",_oneway:"true"}},{ar:{_desired:"shu",_distance:"10",_oneway:"true"}},{ar:{_desired:"ssh",_distance:"10",_oneway:"true"}},{az:{_desired:"azb",_distance:"10",_oneway:"true"}},{et:{_desired:"vro",_distance:"10",_oneway:"true"}},{ff:{_desired:"ffm",_distance:"10",_oneway:"true"}},{ff:{_desired:"fub",_distance:"10",_oneway:"true"}},{ff:{_desired:"fue",_distance:"10",_oneway:"true"}},{ff:{_desired:"fuf",_distance:"10",_oneway:"true"}},{ff:{_desired:"fuh",_distance:"10",_oneway:"true"}},{ff:{_desired:"fui",_distance:"10",_oneway:"true"}},{ff:{_desired:"fuq",_distance:"10",_oneway:"true"}},{ff:{_desired:"fuv",_distance:"10",_oneway:"true"}},{gn:{_desired:"gnw",_distance:"10",_oneway:"true"}},{gn:{_desired:"gui",_distance:"10",_oneway:"true"}},{gn:{_desired:"gun",_distance:"10",_oneway:"true"}},{gn:{_desired:"nhd",_distance:"10",_oneway:"true"}},{iu:{_desired:"ikt",_distance:"10",_oneway:"true"}},{kln:{_desired:"enb",_distance:"10",_oneway:"true"}},{kln:{_desired:"eyo",_distance:"10",_oneway:"true"}},{kln:{_desired:"niq",_distance:"10",_oneway:"true"}},{kln:{_desired:"oki",_distance:"10",_oneway:"true"}},{kln:{_desired:"pko",_distance:"10",_oneway:"true"}},{kln:{_desired:"sgc",_distance:"10",_oneway:"true"}},{kln:{_desired:"tec",_distance:"10",_oneway:"true"}},{kln:{_desired:"tuy",_distance:"10",_oneway:"true"}},{kok:{_desired:"gom",_distance:"10",_oneway:"true"}},{kpe:{_desired:"gkp",_distance:"10",_oneway:"true"}},{luy:{_desired:"ida",_distance:"10",_oneway:"true"}},{luy:{_desired:"lkb",_distance:"10",_oneway:"true"}},{luy:{_desired:"lko",_distance:"10",_oneway:"true"}},{luy:{_desired:"lks",_distance:"10",_oneway:"true"}},{luy:{_desired:"lri",_distance:"10",_oneway:"true"}},{luy:{_desired:"lrm",_distance:"10",_oneway:"true"}},{luy:{_desired:"lsm",_distance:"10",_oneway:"true"}},{luy:{_desired:"lto",_distance:"10",_oneway:"true"}},{luy:{_desired:"lts",_distance:"10",_oneway:"true"}},{luy:{_desired:"lwg",_distance:"10",_oneway:"true"}},{luy:{_desired:"nle",_distance:"10",_oneway:"true"}},{luy:{_desired:"nyd",_distance:"10",_oneway:"true"}},{luy:{_desired:"rag",_distance:"10",_oneway:"true"}},{lv:{_desired:"ltg",_distance:"10",_oneway:"true"}},{mg:{_desired:"bhr",_distance:"10",_oneway:"true"}},{mg:{_desired:"bjq",_distance:"10",_oneway:"true"}},{mg:{_desired:"bmm",_distance:"10",_oneway:"true"}},{mg:{_desired:"bzc",_distance:"10",_oneway:"true"}},{mg:{_desired:"msh",_distance:"10",_oneway:"true"}},{mg:{_desired:"skg",_distance:"10",_oneway:"true"}},{mg:{_desired:"tdx",_distance:"10",_oneway:"true"}},{mg:{_desired:"tkg",_distance:"10",_oneway:"true"}},{mg:{_desired:"txy",_distance:"10",_oneway:"true"}},{mg:{_desired:"xmv",_distance:"10",_oneway:"true"}},{mg:{_desired:"xmw",_distance:"10",_oneway:"true"}},{mn:{_desired:"mvf",_distance:"10",_oneway:"true"}},{ms:{_desired:"bjn",_distance:"10",_oneway:"true"}},{ms:{_desired:"btj",_distance:"10",_oneway:"true"}},{ms:{_desired:"bve",_distance:"10",_oneway:"true"}},{ms:{_desired:"bvu",_distance:"10",_oneway:"true"}},{ms:{_desired:"coa",_distance:"10",_oneway:"true"}},{ms:{_desired:"dup",_distance:"10",_oneway:"true"}},{ms:{_desired:"hji",_distance:"10",_oneway:"true"}},{ms:{_desired:"id",_distance:"10",_oneway:"true"}},{ms:{_desired:"jak",_distance:"10",_oneway:"true"}},{ms:{_desired:"jax",_distance:"10",_oneway:"true"}},{ms:{_desired:"kvb",_distance:"10",_oneway:"true"}},{ms:{_desired:"kvr",_distance:"10",_oneway:"true"}},{ms:{_desired:"kxd",_distance:"10",_oneway:"true"}},{ms:{_desired:"lce",_distance:"10",_oneway:"true"}},{ms:{_desired:"lcf",_distance:"10",_oneway:"true"}},{ms:{_desired:"liw",_distance:"10",_oneway:"true"}},{ms:{_desired:"max",_distance:"10",_oneway:"true"}},{ms:{_desired:"meo",_distance:"10",_oneway:"true"}},{ms:{_desired:"mfa",_distance:"10",_oneway:"true"}},{ms:{_desired:"mfb",_distance:"10",_oneway:"true"}},{ms:{_desired:"min",_distance:"10",_oneway:"true"}},{ms:{_desired:"mqg",_distance:"10",_oneway:"true"}},{ms:{_desired:"msi",_distance:"10",_oneway:"true"}},{ms:{_desired:"mui",_distance:"10",_oneway:"true"}},{ms:{_desired:"orn",_distance:"10",_oneway:"true"}},{ms:{_desired:"ors",_distance:"10",_oneway:"true"}},{ms:{_desired:"pel",_distance:"10",_oneway:"true"}},{ms:{_desired:"pse",_distance:"10",_oneway:"true"}},{ms:{_desired:"tmw",_distance:"10",_oneway:"true"}},{ms:{_desired:"urk",_distance:"10",_oneway:"true"}},{ms:{_desired:"vkk",_distance:"10",_oneway:"true"}},{ms:{_desired:"vkt",_distance:"10",_oneway:"true"}},{ms:{_desired:"xmm",_distance:"10",_oneway:"true"}},{ms:{_desired:"zlm",_distance:"10",_oneway:"true"}},{ms:{_desired:"zmi",_distance:"10",_oneway:"true"}},{ne:{_desired:"dty",_distance:"10",_oneway:"true"}},{om:{_desired:"gax",_distance:"10",_oneway:"true"}},{om:{_desired:"hae",_distance:"10",_oneway:"true"}},{om:{_desired:"orc",_distance:"10",_oneway:"true"}},{or:{_desired:"spv",_distance:"10",_oneway:"true"}},{ps:{_desired:"pbt",_distance:"10",_oneway:"true"}},{ps:{_desired:"pst",_distance:"10",_oneway:"true"}},{qu:{_desired:"qub",_distance:"10",_oneway:"true"}},{qu:{_desired:"qud",_distance:"10",_oneway:"true"}},{qu:{_desired:"quf",_distance:"10",_oneway:"true"}},{qu:{_desired:"qug",_distance:"10",_oneway:"true"}},{qu:{_desired:"quh",_distance:"10",_oneway:"true"}},{qu:{_desired:"quk",_distance:"10",_oneway:"true"}},{qu:{_desired:"qul",_distance:"10",_oneway:"true"}},{qu:{_desired:"qup",_distance:"10",_oneway:"true"}},{qu:{_desired:"qur",_distance:"10",_oneway:"true"}},{qu:{_desired:"qus",_distance:"10",_oneway:"true"}},{qu:{_desired:"quw",_distance:"10",_oneway:"true"}},{qu:{_desired:"qux",_distance:"10",_oneway:"true"}},{qu:{_desired:"quy",_distance:"10",_oneway:"true"}},{qu:{_desired:"qva",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvc",_distance:"10",_oneway:"true"}},{qu:{_desired:"qve",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvh",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvi",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvj",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvl",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvm",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvn",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvo",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvp",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvs",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvw",_distance:"10",_oneway:"true"}},{qu:{_desired:"qvz",_distance:"10",_oneway:"true"}},{qu:{_desired:"qwa",_distance:"10",_oneway:"true"}},{qu:{_desired:"qwc",_distance:"10",_oneway:"true"}},{qu:{_desired:"qwh",_distance:"10",_oneway:"true"}},{qu:{_desired:"qws",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxa",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxc",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxh",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxl",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxn",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxo",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxp",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxr",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxt",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxu",_distance:"10",_oneway:"true"}},{qu:{_desired:"qxw",_distance:"10",_oneway:"true"}},{sc:{_desired:"sdc",_distance:"10",_oneway:"true"}},{sc:{_desired:"sdn",_distance:"10",_oneway:"true"}},{sc:{_desired:"sro",_distance:"10",_oneway:"true"}},{sq:{_desired:"aae",_distance:"10",_oneway:"true"}},{sq:{_desired:"aat",_distance:"10",_oneway:"true"}},{sq:{_desired:"aln",_distance:"10",_oneway:"true"}},{syr:{_desired:"aii",_distance:"10",_oneway:"true"}},{uz:{_desired:"uzs",_distance:"10",_oneway:"true"}},{yi:{_desired:"yih",_distance:"10",_oneway:"true"}},{zh:{_desired:"cdo",_distance:"10",_oneway:"true"}},{zh:{_desired:"cjy",_distance:"10",_oneway:"true"}},{zh:{_desired:"cpx",_distance:"10",_oneway:"true"}},{zh:{_desired:"czh",_distance:"10",_oneway:"true"}},{zh:{_desired:"czo",_distance:"10",_oneway:"true"}},{zh:{_desired:"gan",_distance:"10",_oneway:"true"}},{zh:{_desired:"hak",_distance:"10",_oneway:"true"}},{zh:{_desired:"hsn",_distance:"10",_oneway:"true"}},{zh:{_desired:"lzh",_distance:"10",_oneway:"true"}},{zh:{_desired:"mnp",_distance:"10",_oneway:"true"}},{zh:{_desired:"nan",_distance:"10",_oneway:"true"}},{zh:{_desired:"wuu",_distance:"10",_oneway:"true"}},{zh:{_desired:"yue",_distance:"10",_oneway:"true"}},{"*":{_desired:"*",_distance:"80"}},{"en-Latn":{_desired:"am-Ethi",_distance:"10",_oneway:"true"}},{"ru-Cyrl":{_desired:"az-Latn",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"bn-Beng",_distance:"10",_oneway:"true"}},{"zh-Hans":{_desired:"bo-Tibt",_distance:"10",_oneway:"true"}},{"ru-Cyrl":{_desired:"hy-Armn",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ka-Geor",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"km-Khmr",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"kn-Knda",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"lo-Laoo",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ml-Mlym",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"my-Mymr",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ne-Deva",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"or-Orya",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"pa-Guru",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ps-Arab",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"sd-Arab",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"si-Sinh",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ta-Taml",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"te-Telu",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ti-Ethi",_distance:"10",_oneway:"true"}},{"ru-Cyrl":{_desired:"tk-Latn",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"ur-Arab",_distance:"10",_oneway:"true"}},{"ru-Cyrl":{_desired:"uz-Latn",_distance:"10",_oneway:"true"}},{"en-Latn":{_desired:"yi-Hebr",_distance:"10",_oneway:"true"}},{"sr-Cyrl":{_desired:"sr-Latn",_distance:"5"}},{"zh-Hans":{_desired:"za-Latn",_distance:"10",_oneway:"true"}},{"zh-Hans":{_desired:"zh-Hani",_distance:"20",_oneway:"true"}},{"zh-Hant":{_desired:"zh-Hani",_distance:"20",_oneway:"true"}},{"ar-Arab":{_desired:"ar-Latn",_distance:"20",_oneway:"true"}},{"bn-Beng":{_desired:"bn-Latn",_distance:"20",_oneway:"true"}},{"gu-Gujr":{_desired:"gu-Latn",_distance:"20",_oneway:"true"}},{"hi-Deva":{_desired:"hi-Latn",_distance:"20",_oneway:"true"}},{"kn-Knda":{_desired:"kn-Latn",_distance:"20",_oneway:"true"}},{"ml-Mlym":{_desired:"ml-Latn",_distance:"20",_oneway:"true"}},{"mr-Deva":{_desired:"mr-Latn",_distance:"20",_oneway:"true"}},{"ta-Taml":{_desired:"ta-Latn",_distance:"20",_oneway:"true"}},{"te-Telu":{_desired:"te-Latn",_distance:"20",_oneway:"true"}},{"zh-Hans":{_desired:"zh-Latn",_distance:"20",_oneway:"true"}},{"ja-Jpan":{_desired:"ja-Latn",_distance:"5",_oneway:"true"}},{"ja-Jpan":{_desired:"ja-Hani",_distance:"5",_oneway:"true"}},{"ja-Jpan":{_desired:"ja-Hira",_distance:"5",_oneway:"true"}},{"ja-Jpan":{_desired:"ja-Kana",_distance:"5",_oneway:"true"}},{"ja-Jpan":{_desired:"ja-Hrkt",_distance:"5",_oneway:"true"}},{"ja-Hrkt":{_desired:"ja-Hira",_distance:"5",_oneway:"true"}},{"ja-Hrkt":{_desired:"ja-Kana",_distance:"5",_oneway:"true"}},{"ko-Kore":{_desired:"ko-Hani",_distance:"5",_oneway:"true"}},{"ko-Kore":{_desired:"ko-Hang",_distance:"5",_oneway:"true"}},{"ko-Kore":{_desired:"ko-Jamo",_distance:"5",_oneway:"true"}},{"ko-Hang":{_desired:"ko-Jamo",_distance:"5",_oneway:"true"}},{"*-*":{_desired:"*-*",_distance:"50"}},{"ar-*-$maghreb":{_desired:"ar-*-$maghreb",_distance:"4"}},{"ar-*-$!maghreb":{_desired:"ar-*-$!maghreb",_distance:"4"}},{"ar-*-*":{_desired:"ar-*-*",_distance:"5"}},{"en-*-$enUS":{_desired:"en-*-$enUS",_distance:"4"}},{"en-*-GB":{_desired:"en-*-$!enUS",_distance:"3"}},{"en-*-$!enUS":{_desired:"en-*-$!enUS",_distance:"4"}},{"en-*-*":{_desired:"en-*-*",_distance:"5"}},{"es-*-$americas":{_desired:"es-*-$americas",_distance:"4"}},{"es-*-$!americas":{_desired:"es-*-$!americas",_distance:"4"}},{"es-*-*":{_desired:"es-*-*",_distance:"5"}},{"pt-*-$americas":{_desired:"pt-*-$americas",_distance:"4"}},{"pt-*-$!americas":{_desired:"pt-*-$!americas",_distance:"4"}},{"pt-*-*":{_desired:"pt-*-*",_distance:"5"}},{"zh-Hant-$cnsar":{_desired:"zh-Hant-$cnsar",_distance:"4"}},{"zh-Hant-$!cnsar":{_desired:"zh-Hant-$!cnsar",_distance:"4"}},{"zh-Hant-*":{_desired:"zh-Hant-*",_distance:"5"}},{"*-*-*":{_desired:"*-*-*",_distance:"4"}}]}}},Sf={"001":["001","001-status-grouping","002","005","009","011","013","014","015","017","018","019","021","029","030","034","035","039","053","054","057","061","142","143","145","150","151","154","155","AC","AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CP","CQ","CR","CU","CV","CW","CX","CY","CZ","DE","DG","DJ","DK","DM","DO","DZ","EA","EC","EE","EG","EH","ER","ES","ET","EU","EZ","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","IC","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","QO","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TA","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","UN","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW"],"002":["002","002-status-grouping","011","014","015","017","018","202","AO","BF","BI","BJ","BW","CD","CF","CG","CI","CM","CV","DJ","DZ","EA","EG","EH","ER","ET","GA","GH","GM","GN","GQ","GW","IC","IO","KE","KM","LR","LS","LY","MA","MG","ML","MR","MU","MW","MZ","NA","NE","NG","RE","RW","SC","SD","SH","SL","SN","SO","SS","ST","SZ","TD","TF","TG","TN","TZ","UG","YT","ZA","ZM","ZW"],"003":["003","013","021","029","AG","AI","AW","BB","BL","BM","BQ","BS","BZ","CA","CR","CU","CW","DM","DO","GD","GL","GP","GT","HN","HT","JM","KN","KY","LC","MF","MQ","MS","MX","NI","PA","PM","PR","SV","SX","TC","TT","US","VC","VG","VI"],"005":["005","AR","BO","BR","BV","CL","CO","EC","FK","GF","GS","GY","PE","PY","SR","UY","VE"],"009":["009","053","054","057","061","AC","AQ","AS","AU","CC","CK","CP","CX","DG","FJ","FM","GU","HM","KI","MH","MP","NC","NF","NR","NU","NZ","PF","PG","PN","PW","QO","SB","TA","TK","TO","TV","UM","VU","WF","WS"],"011":["011","BF","BJ","CI","CV","GH","GM","GN","GW","LR","ML","MR","NE","NG","SH","SL","SN","TG"],"013":["013","BZ","CR","GT","HN","MX","NI","PA","SV"],"014":["014","BI","DJ","ER","ET","IO","KE","KM","MG","MU","MW","MZ","RE","RW","SC","SO","SS","TF","TZ","UG","YT","ZM","ZW"],"015":["015","DZ","EA","EG","EH","IC","LY","MA","SD","TN"],"017":["017","AO","CD","CF","CG","CM","GA","GQ","ST","TD"],"018":["018","BW","LS","NA","SZ","ZA"],"019":["003","005","013","019","019-status-grouping","021","029","419","AG","AI","AR","AW","BB","BL","BM","BO","BQ","BR","BS","BV","BZ","CA","CL","CO","CR","CU","CW","DM","DO","EC","FK","GD","GF","GL","GP","GS","GT","GY","HN","HT","JM","KN","KY","LC","MF","MQ","MS","MX","NI","PA","PE","PM","PR","PY","SR","SV","SX","TC","TT","US","UY","VC","VE","VG","VI"],"021":["021","BM","CA","GL","PM","US"],"029":["029","AG","AI","AW","BB","BL","BQ","BS","CU","CW","DM","DO","GD","GP","HT","JM","KN","KY","LC","MF","MQ","MS","PR","SX","TC","TT","VC","VG","VI"],"030":["030","CN","HK","JP","KP","KR","MN","MO","TW"],"034":["034","AF","BD","BT","IN","IR","LK","MV","NP","PK"],"035":["035","BN","ID","KH","LA","MM","MY","PH","SG","TH","TL","VN"],"039":["039","AD","AL","BA","ES","GI","GR","HR","IT","ME","MK","MT","PT","RS","SI","SM","VA","XK"],"053":["053","AU","CC","CX","HM","NF","NZ"],"054":["054","FJ","NC","PG","SB","VU"],"057":["057","FM","GU","KI","MH","MP","NR","PW","UM"],"061":["061","AS","CK","NU","PF","PN","TK","TO","TV","WF","WS"],142:["030","034","035","142","143","145","AE","AF","AM","AZ","BD","BH","BN","BT","CN","CY","GE","HK","ID","IL","IN","IQ","IR","JO","JP","KG","KH","KP","KR","KW","KZ","LA","LB","LK","MM","MN","MO","MV","MY","NP","OM","PH","PK","PS","QA","SA","SG","SY","TH","TJ","TL","TM","TR","TW","UZ","VN","YE"],143:["143","KG","KZ","TJ","TM","UZ"],145:["145","AE","AM","AZ","BH","CY","GE","IL","IQ","JO","KW","LB","OM","PS","QA","SA","SY","TR","YE"],150:["039","150","151","154","155","AD","AL","AT","AX","BA","BE","BG","BY","CH","CQ","CZ","DE","DK","EE","ES","FI","FO","FR","GB","GG","GI","GR","HR","HU","IE","IM","IS","IT","JE","LI","LT","LU","LV","MC","MD","ME","MK","MT","NL","NO","PL","PT","RO","RS","RU","SE","SI","SJ","SK","SM","UA","VA","XK"],151:["151","BG","BY","CZ","HU","MD","PL","RO","RU","SK","UA"],154:["154","AX","CQ","DK","EE","FI","FO","GB","GG","IE","IM","IS","JE","LT","LV","NO","SE","SJ"],155:["155","AT","BE","CH","DE","FR","LI","LU","MC","NL"],202:["011","014","017","018","202","AO","BF","BI","BJ","BW","CD","CF","CG","CI","CM","CV","DJ","ER","ET","GA","GH","GM","GN","GQ","GW","IO","KE","KM","LR","LS","MG","ML","MR","MU","MW","MZ","NA","NE","NG","RE","RW","SC","SH","SL","SN","SO","SS","ST","SZ","TD","TF","TG","TZ","UG","YT","ZA","ZM","ZW"],419:["005","013","029","419","AG","AI","AR","AW","BB","BL","BO","BQ","BR","BS","BV","BZ","CL","CO","CR","CU","CW","DM","DO","EC","FK","GD","GF","GP","GS","GT","GY","HN","HT","JM","KN","KY","LC","MF","MQ","MS","MX","NI","PA","PE","PR","PY","SR","SV","SX","TC","TT","UY","VC","VE","VG","VI"],EU:["AT","BE","BG","CY","CZ","DE","DK","EE","ES","EU","FI","FR","GR","HR","HU","IE","IT","LT","LU","LV","MT","NL","PL","PT","RO","SE","SI","SK"],EZ:["AT","BE","CY","DE","EE","ES","EZ","FI","FR","GR","IE","IT","LT","LU","LV","MT","NL","PT","SI","SK"],QO:["AC","AQ","CP","DG","QO","TA"],UN:["AD","AE","AF","AG","AL","AM","AO","AR","AT","AU","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BN","BO","BR","BS","BT","BW","BY","BZ","CA","CD","CF","CG","CH","CI","CL","CM","CN","CO","CR","CU","CV","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","ER","ES","ET","FI","FJ","FM","FR","GA","GB","GD","GE","GH","GM","GN","GQ","GR","GT","GW","GY","HN","HR","HT","HU","ID","IE","IL","IN","IQ","IR","IS","IT","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MG","MH","MK","ML","MM","MN","MR","MT","MU","MV","MW","MX","MY","MZ","NA","NE","NG","NI","NL","NO","NP","NR","NZ","OM","PA","PE","PG","PH","PK","PL","PT","PW","PY","QA","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SI","SK","SL","SM","SN","SO","SR","SS","ST","SV","SY","SZ","TD","TG","TH","TJ","TL","TM","TN","TO","TR","TT","TV","TZ","UA","UG","UN","US","UY","UZ","VC","VE","VN","VU","WS","YE","ZA","ZM","ZW"]},js=/-u(?:-[0-9a-z]{2,8})+/gi;function Ot(e,t,n){if(n===void 0&&(n=Error),!e)throw new n(t)}var Tf=840,Nr;function xf(){var e,t;if(!Nr){var n=(t=(e=Ir.supplemental.languageMatching["written-new"][0])===null||e===void 0?void 0:e.paradigmLocales)===null||t===void 0?void 0:t._locales.split(" "),r=Ir.supplemental.languageMatching["written-new"].slice(1,5),o=Ir.supplemental.languageMatching["written-new"].slice(5),i=o.map(function(a){var u=Object.keys(a)[0],s=a[u];return{supported:u,desired:s._desired,distance:+s._distance,oneway:s.oneway==="true"}},{});Nr={matches:i,matchVariables:r.reduce(function(a,u){var s=Object.keys(u)[0],l=u[s];return a[s.slice(1)]=l._value.split("+"),a},{}),paradigmLocales:Wn(Wn([],n,!0),n.map(function(a){return new Intl.Locale(a.replace(/_/g,"-")).maximize().toString()}),!0)}}return Nr}function On(e,t,n){var r=t.split("-"),o=r[0],i=r[1],a=r[2],u=!0;if(a&&a[0]==="$"){var s=a[1]!=="!",l=s?n[a.slice(1)]:n[a.slice(2)],d=l.map(function(c){return Sf[c]||[c]}).reduce(function(c,f){return Wn(Wn([],c,!0),f,!0)},[]);u&&(u=d.indexOf(e.region||"")>1==s)}else u&&(u=e.region?a==="*"||a===e.region:!0);return u&&(u=e.script?i==="*"||i===e.script:!0),u&&(u=e.language?o==="*"||o===e.language:!0),u}function Zi(e){return[e.language,e.script,e.region].filter(Boolean).join("-")}function kr(e,t,n){for(var r=0,o=n.matches;r<o.length;r++){var i=o[r],a=On(e,i.desired,n.matchVariables)&&On(t,i.supported,n.matchVariables);if(!i.oneway&&!a&&(a=On(e,i.supported,n.matchVariables)&&On(t,i.desired,n.matchVariables)),a){var u=i.distance*10;return n.paradigmLocales.indexOf(Zi(e))>-1!=n.paradigmLocales.indexOf(Zi(t))>-1?u-1:u}}throw new Error("No matching distance found")}function Cf(e,t){var n=new Intl.Locale(e).maximize(),r=new Intl.Locale(t).maximize(),o={language:n.language,script:n.script||"",region:n.region||""},i={language:r.language,script:r.script||"",region:r.region||""},a=0,u=xf();return o.language!==i.language&&(a+=kr({language:n.language,script:"",region:""},{language:r.language,script:"",region:""},u)),o.script!==i.script&&(a+=kr({language:n.language,script:o.script,region:""},{language:r.language,script:o.script,region:""},u)),o.region!==i.region&&(a+=kr(o,i,u)),a}function Af(e,t,n){n===void 0&&(n=Tf);var r=1/0,o={matchedDesiredLocale:"",distances:{}};return e.forEach(function(i,a){o.distances[i]||(o.distances[i]={}),t.forEach(function(u,s){var l=Cf(i,u)+s+a*40;o.distances[i][u]=l,l<r&&(r=l,o.matchedDesiredLocale=i,o.matchedSupportedLocale=u)})}),r>=n&&(o.matchedDesiredLocale=void 0,o.matchedSupportedLocale=void 0),o}function Of(e,t,n){var r,o,i=[],a=t.reduce(function(s,l){var d=l.replace(js,"");return i.push(d),s[d]=l,s},{}),u=Af(i,e);return u.matchedSupportedLocale&&u.matchedDesiredLocale&&(r=u.matchedSupportedLocale,o=a[u.matchedDesiredLocale].slice(u.matchedDesiredLocale.length)||void 0),r?{locale:r,extension:o}:{locale:n()}}function Mf(e,t){for(var n=t;;){if(e.indexOf(n)>-1)return n;var r=n.lastIndexOf("-");if(!~r)return;r>=2&&n[r-2]==="-"&&(r-=2),n=n.slice(0,r)}}function Pf(e,t,n){for(var r={locale:""},o=0,i=t;o<i.length;o++){var a=i[o],u=a.replace(js,""),s=Mf(e,u);if(s)return r.locale=s,a!==u&&(r.extension=a.slice(u.length,a.length)),r}return r.locale=n(),r}function Rf(e,t){Ot(t.length===2,"key must have 2 elements");var n=e.length,r="-".concat(t,"-"),o=e.indexOf(r);if(o!==-1){for(var i=o+4,a=i,u=i,s=!1;!s;){var l=e.indexOf("-",u),d=void 0;l===-1?d=n-u:d=l-u,d===2?s=!0:l===-1?(a=n,s=!0):(a=l,u=l+1)}return e.slice(i,a)}if(r="-".concat(t),o=e.indexOf(r),o!==-1&&o+3===n)return""}function Lf(e,t,n,r,o,i){var a=n.localeMatcher,u;a==="lookup"?u=Pf(Array.from(e),t,i):u=Of(Array.from(e),t,i);for(var s=u.locale,l={locale:"",dataLocale:s},d="-u",c=0,f=r;c<f.length;c++){var h=f[c];Ot(s in o,"Missing locale data for ".concat(s));var p=o[s];Ot(typeof p=="object"&&p!==null,"locale data ".concat(h," must be an object"));var m=p[h];Ot(Array.isArray(m),"keyLocaleData for ".concat(h," must be an array"));var _=m[0];Ot(typeof _=="string"||_===null,"value must be string or null but got ".concat(typeof _," in key ").concat(h));var v="";if(u.extension){var y=Rf(u.extension,h);y!==void 0&&(y!==""?~m.indexOf(y)&&(_=y,v="-".concat(h,"-").concat(_)):~y.indexOf("true")&&(_="true",v="-".concat(h)))}if(h in n){var T=n[h];Ot(typeof T=="string"||typeof T>"u"||T===null,"optionsValue must be String, Undefined or Null"),~m.indexOf(T)&&T!==_&&(_=T,v="")}l[h]=_,d+=v}if(d.length>2){var M=s.indexOf("-x-");if(M===-1)s=s+d;else{var x=s.slice(0,M),b=s.slice(M,s.length);s=x+d+b}s=Intl.getCanonicalLocales(s)[0]}return l.locale=s,l}function am(e,t,n,r){return Lf(t,Ef(e),{localeMatcher:(r==null?void 0:r.algorithm)||"best fit"},[],{},function(){return n}).locale}const Df=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,ar=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const t=e.match(Df);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},Vi=e=>e==="*"||e==="x"||e==="X",Ji=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},If=(e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t],Nf=(e,t)=>{if(Vi(e)||Vi(t))return 0;const[n,r]=If(Ji(e),Ji(t));return n>r?1:n<r?-1:0},Dt=(e,t)=>{for(let n=0;n<Math.max(e.length,t.length);n++){const r=Nf(e[n]||"0",t[n]||"0");if(r!==0)return r}return 0},kf=(e,t)=>{const n=ar(e),r=ar(t),o=n.pop(),i=r.pop(),a=Dt(n,r);return a!==0?a:o&&i?Dt(o.split("."),i.split(".")):o||i?o?-1:1:0},$f=(e,t,n)=>{jf(n);const r=kf(e,t);return zs[n].includes(r)},zs={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},Xi=Object.keys(zs),jf=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(Xi.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${Xi.join("|")}`)},$r=(e,t)=>{if(t=t.replace(/([><=]+)\s+/g,"$1"),t.includes("||"))return t.split("||").some(_=>$r(e,_));if(t.includes(" - ")){const[_,v]=t.split(" - ",2);return $r(e,`>=${_} <=${v}`)}else if(t.includes(" "))return t.trim().replace(/\s{2,}/g," ").split(" ").every(_=>$r(e,_));const n=t.match(/^([<>=~^]+)/),r=n?n[1]:"=";if(r!=="^"&&r!=="~")return $f(e,t,r);const[o,i,a,,u]=ar(e),[s,l,d,,c]=ar(t),f=[o,i,a],h=[s,l??"x",d??"x"];if(c&&(!u||Dt(f,h)!==0||Dt(u.split("."),c.split("."))===-1))return!1;const p=h.findIndex(_=>_!=="0")+1,m=r==="~"?2:p>1?p:1;return!(Dt(f.slice(0,m),h.slice(0,m))!==0||Dt(f.slice(m),h.slice(m))===-1)};var Fs={};function je(e,t){typeof t=="boolean"&&(t={forever:t}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=t||{},this._maxRetryTime=t&&t.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}var zf=je;je.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};je.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};je.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var t=new Date().getTime();if(e&&t-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var n=this._timeouts.shift();if(n===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),n=this._cachedTimeouts.slice(-1);else return!1;var r=this;return this._timer=setTimeout(function(){r._attempts++,r._operationTimeoutCb&&(r._timeout=setTimeout(function(){r._operationTimeoutCb(r._attempts)},r._operationTimeout),r._options.unref&&r._timeout.unref()),r._fn(r._attempts)},n),this._options.unref&&this._timer.unref(),!0};je.prototype.attempt=function(e,t){this._fn=e,t&&(t.timeout&&(this._operationTimeout=t.timeout),t.cb&&(this._operationTimeoutCb=t.cb));var n=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){n._operationTimeoutCb()},n._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};je.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)};je.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)};je.prototype.start=je.prototype.try;je.prototype.errors=function(){return this._errors};je.prototype.attempts=function(){return this._attempts};je.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},t=null,n=0,r=0;r<this._errors.length;r++){var o=this._errors[r],i=o.message,a=(e[i]||0)+1;e[i]=a,a>=n&&(t=o,n=a)}return t};(function(e){var t=zf;e.operation=function(n){var r=e.timeouts(n);return new t(r,{forever:n&&(n.forever||n.retries===1/0),unref:n&&n.unref,maxRetryTime:n&&n.maxRetryTime})},e.timeouts=function(n){if(n instanceof Array)return[].concat(n);var r={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var o in n)r[o]=n[o];if(r.minTimeout>r.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var i=[],a=0;a<r.retries;a++)i.push(this.createTimeout(a,r));return n&&n.forever&&!i.length&&i.push(this.createTimeout(a,r)),i.sort(function(u,s){return u-s}),i},e.createTimeout=function(n,r){var o=r.randomize?Math.random()+1:1,i=Math.round(o*Math.max(r.minTimeout,1)*Math.pow(r.factor,n));return i=Math.min(i,r.maxTimeout),i},e.wrap=function(n,r,o){if(r instanceof Array&&(o=r,r=null),!o){o=[];for(var i in n)typeof n[i]=="function"&&o.push(i)}for(var a=0;a<o.length;a++){var u=o[a],s=n[u];n[u]=(function(d){var c=e.operation(r),f=Array.prototype.slice.call(arguments,1),h=f.pop();f.push(function(p){c.retry(p)||(p&&(arguments[0]=c.mainError()),h.apply(this,arguments))}),c.attempt(function(){d.apply(n,f)})}).bind(n,s),n[u].options=r}}})(Fs);var Ff=Fs;const Hf=Xe(Ff),Bf=Object.prototype.toString,Uf=e=>Bf.call(e)==="[object Error]",qf=new Set(["Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Load failed","Network request failed","fetch failed"]);function Wf(e){return e&&Uf(e)&&e.name==="TypeError"&&typeof e.message=="string"?e.message==="Load failed"?e.stack===void 0:qf.has(e.message):!1}class Kf extends Error{constructor(t){super(),t instanceof Error?(this.originalError=t,{message:t}=t):(this.originalError=new Error(t),this.originalError.stack=this.stack),this.name="AbortError",this.message=t}}const Qi=(e,t,n)=>{const r=n.retries-(t-1);return e.attemptNumber=t,e.retriesLeft=r,e};async function sm(e,t){return new Promise((n,r)=>{t={onFailedAttempt(){},retries:10,shouldRetry:()=>!0,...t};const o=Hf.operation(t),i=()=>{var u;o.stop(),r((u=t.signal)==null?void 0:u.reason)};t.signal&&!t.signal.aborted&&t.signal.addEventListener("abort",i,{once:!0});const a=()=>{var u;(u=t.signal)==null||u.removeEventListener("abort",i),o.stop()};o.attempt(async u=>{try{const s=await e(u);a(),n(s)}catch(s){try{if(!(s instanceof Error))throw new TypeError(`Non-error was thrown: "${s}". You should only throw errors.`);if(s instanceof Kf)throw s.originalError;if(s instanceof TypeError&&!Wf(s))throw s;if(Qi(s,u,t),await t.shouldRetry(s)||(o.stop(),r(s)),await t.onFailedAttempt(s),!o.retry(s))throw o.mainError()}catch(l){Qi(l,u,t),a(),r(l)}}})})}class Gf{constructor(t,n,{tabInsertsSuggestions:r,defaultFirstOption:o}={}){this.input=t,this.list=n,this.tabInsertsSuggestions=r??!0,this.defaultFirstOption=o??!1,this.isComposing=!1,n.id||(n.id=`combobox-${Math.random().toString().slice(2,6)}`),this.ctrlBindings=!!navigator.userAgent.match(/Macintosh/),this.keyboardEventHandler=i=>Yf(i,this),this.compositionEventHandler=i=>Vf(i,this),this.inputHandler=this.clearSelection.bind(this),t.setAttribute("role","combobox"),t.setAttribute("aria-controls",n.id),t.setAttribute("aria-expanded","false"),t.setAttribute("aria-autocomplete","list"),t.setAttribute("aria-haspopup","listbox")}destroy(){this.clearSelection(),this.stop(),this.input.removeAttribute("role"),this.input.removeAttribute("aria-controls"),this.input.removeAttribute("aria-expanded"),this.input.removeAttribute("aria-autocomplete"),this.input.removeAttribute("aria-haspopup")}start(){this.input.setAttribute("aria-expanded","true"),this.input.addEventListener("compositionstart",this.compositionEventHandler),this.input.addEventListener("compositionend",this.compositionEventHandler),this.input.addEventListener("input",this.inputHandler),this.input.addEventListener("keydown",this.keyboardEventHandler),this.list.addEventListener("click",ea),this.indicateDefaultOption()}stop(){this.clearSelection(),this.input.setAttribute("aria-expanded","false"),this.input.removeEventListener("compositionstart",this.compositionEventHandler),this.input.removeEventListener("compositionend",this.compositionEventHandler),this.input.removeEventListener("input",this.inputHandler),this.input.removeEventListener("keydown",this.keyboardEventHandler),this.list.removeEventListener("click",ea)}indicateDefaultOption(){var t;this.defaultFirstOption&&((t=Array.from(this.list.querySelectorAll('[role="option"]:not([aria-disabled="true"])')).filter(jr)[0])===null||t===void 0||t.setAttribute("data-combobox-option-default","true"))}navigate(t=1){const n=Array.from(this.list.querySelectorAll('[aria-selected="true"]')).filter(jr)[0],r=Array.from(this.list.querySelectorAll('[role="option"]')).filter(jr),o=r.indexOf(n);if(o===r.length-1&&t===1||o===0&&t===-1){this.clearSelection(),this.input.focus();return}let i=t===1?0:r.length-1;if(n&&o>=0){const u=o+t;u>=0&&u<r.length&&(i=u)}const a=r[i];if(a)for(const u of r)u.removeAttribute("data-combobox-option-default"),a===u?(this.input.setAttribute("aria-activedescendant",a.id),a.setAttribute("aria-selected","true"),Jf(this.list,a)):u.removeAttribute("aria-selected")}clearSelection(){this.input.removeAttribute("aria-activedescendant");for(const t of this.list.querySelectorAll('[aria-selected="true"]'))t.removeAttribute("aria-selected");this.indicateDefaultOption()}}function Yf(e,t){if(!(e.shiftKey||e.metaKey||e.altKey)&&!(!t.ctrlBindings&&e.ctrlKey)&&!t.isComposing)switch(e.key){case"Enter":ta(t.input,t.list)&&e.preventDefault();break;case"Tab":t.tabInsertsSuggestions&&ta(t.input,t.list)&&e.preventDefault();break;case"Escape":t.clearSelection();break;case"ArrowDown":t.navigate(1),e.preventDefault();break;case"ArrowUp":t.navigate(-1),e.preventDefault();break;case"n":t.ctrlBindings&&e.ctrlKey&&(t.navigate(1),e.preventDefault());break;case"p":t.ctrlBindings&&e.ctrlKey&&(t.navigate(-1),e.preventDefault());break;default:if(e.ctrlKey)break;t.clearSelection()}}function ea(e){if(!(e.target instanceof Element))return;const t=e.target.closest('[role="option"]');t&&t.getAttribute("aria-disabled")!=="true"&&Zf(t)}function ta(e,t){const n=t.querySelector('[aria-selected="true"], [data-combobox-option-default="true"]');return n?(n.getAttribute("aria-disabled")==="true"||n.click(),!0):!1}function Zf(e){e.dispatchEvent(new CustomEvent("combobox-commit",{bubbles:!0}))}function jr(e){return!e.hidden&&!(e instanceof HTMLInputElement&&e.type==="hidden")&&(e.offsetWidth>0||e.offsetHeight>0)}function Vf(e,t){t.isComposing=e.type==="compositionstart",document.getElementById(t.input.getAttribute("aria-controls")||"")&&t.clearSelection()}function Jf(e,t){Xf(e,t)||(e.scrollTop=t.offsetTop)}function Xf(e,t){const n=e.scrollTop,r=n+e.clientHeight,o=t.offsetTop,i=o+t.clientHeight;return o>=n&&i<=r}const Qf=/\s|\(|\[/;function eh(e,t,n,{multiWord:r,lookBackIndex:o,lastMatchPosition:i}={multiWord:!1,lookBackIndex:0,lastMatchPosition:null}){let a=e.lastIndexOf(t,n-1);if(a===-1||a<o)return;if(r){if(i!=null){if(i===a)return;a=i-t.length}if(e[a+1]===" "&&n>=a+t.length+1||e.lastIndexOf(`
`,n-1)>a||e.lastIndexOf(".",n-1)>a)return}else if(e.lastIndexOf(" ",n-1)>a)return;const u=e[a-1];return u&&!Qf.test(u)?void 0:{text:e.substring(a+t.length,n),position:a+t.length}}const th=["position:absolute;","overflow:auto;","word-wrap:break-word;","top:0px;","left:-9999px;"],na=["box-sizing","font-family","font-size","font-style","font-variant","font-weight","height","letter-spacing","line-height","max-height","min-height","padding-bottom","padding-left","padding-right","padding-top","border-bottom","border-left","border-right","border-top","text-decoration","text-indent","text-transform","width","word-spacing"],ra=new WeakMap;function nh(e,t){const n=e.nodeName.toLowerCase();if(n!=="textarea"&&n!=="input")throw new Error("expected textField to a textarea or input");let r=ra.get(e);if(r&&r.parentElement===e.parentElement)r.innerHTML="";else{r=document.createElement("div"),ra.set(e,r);const u=window.getComputedStyle(e),s=th.slice(0);n==="textarea"?s.push("white-space:pre-wrap;"):s.push("white-space:nowrap;");for(let l=0,d=na.length;l<d;l++){const c=na[l];s.push(`${c}:${u.getPropertyValue(c)};`)}r.style.cssText=s.join(" ")}const o=document.createElement("span");o.style.cssText="position: absolute;",o.innerHTML="&nbsp;";let i,a;if(typeof t=="number"){let u=e.value.substring(0,t);u&&(i=document.createTextNode(u)),u=e.value.substring(t),u&&(a=document.createTextNode(u))}else{const u=e.value;u&&(i=document.createTextNode(u))}if(i&&r.appendChild(i),r.appendChild(o),a&&r.appendChild(a),!r.parentElement){if(!e.parentElement)throw new Error("textField must have a parentElement to mirror");e.parentElement.insertBefore(r,e)}return r.scrollTop=e.scrollTop,r.scrollLeft=e.scrollLeft,{mirror:r,marker:o}}function rh(e,t=e.selectionEnd){const{mirror:n,marker:r}=nh(e,t),o=n.getBoundingClientRect(),i=r.getBoundingClientRect();return setTimeout(()=>{n.remove()},5e3),{top:i.top-o.top,left:i.left-o.left}}const Mn=new WeakMap;function oh(e){try{if(e.matches(":popover-open"))return!0}catch{}try{if(e.matches("dialog:modal"))return!0}catch{}try{if(e.matches(":fullscreen"))return!0}catch{}return!1}class ih{constructor(t,n){this.expander=t,this.input=n,this.combobox=null,this.menu=null,this.match=null,this.justPasted=!1,this.lookBackIndex=0,this.oninput=this.onInput.bind(this),this.onpaste=this.onPaste.bind(this),this.onkeydown=this.onKeydown.bind(this),this.oncommit=this.onCommit.bind(this),this.onmousedown=this.onMousedown.bind(this),this.onblur=this.onBlur.bind(this),this.interactingWithList=!1,n.addEventListener("paste",this.onpaste),n.addEventListener("input",this.oninput),n.addEventListener("keydown",this.onkeydown),n.addEventListener("blur",this.onblur)}destroy(){this.input.removeEventListener("paste",this.onpaste),this.input.removeEventListener("input",this.oninput),this.input.removeEventListener("keydown",this.onkeydown),this.input.removeEventListener("blur",this.onblur)}dismissMenu(){this.deactivate()&&(this.lookBackIndex=this.input.selectionEnd||this.lookBackIndex)}activate(t,n){var r,o;if(this.input!==document.activeElement&&this.input!==((o=(r=document.activeElement)===null||r===void 0?void 0:r.shadowRoot)===null||o===void 0?void 0:o.activeElement))return;this.deactivate(),this.menu=n,n.id||(n.id=`text-expander-${Math.floor(Math.random()*1e5).toString()}`),this.expander.append(n),this.combobox=new Gf(this.input,n),this.expander.dispatchEvent(new Event("text-expander-activate"));let{top:i,left:a}=rh(this.input,t.position);if(oh(n)){const u=this.input.getBoundingClientRect();i+=u.top,a+=u.left,getComputedStyle(n).position==="absolute"&&(i+=window.scrollY,a+=window.scrollX)}n.style.top=`${i}px`,n.style.left=`${a}px`,this.combobox.start(),n.addEventListener("combobox-commit",this.oncommit),n.addEventListener("mousedown",this.onmousedown),this.combobox.navigate(1)}deactivate(){const t=this.menu;return!t||!this.combobox?!1:(this.expander.dispatchEvent(new Event("text-expander-deactivate")),this.menu=null,t.removeEventListener("combobox-commit",this.oncommit),t.removeEventListener("mousedown",this.onmousedown),this.combobox.destroy(),this.combobox=null,t.remove(),!0)}onCommit({target:t}){var n;const r=t;if(!(r instanceof HTMLElement)||!this.combobox)return;const o=this.match;if(!o)return;const i=this.input.value.substring(0,o.position-o.key.length),a=this.input.value.substring(o.position+o.text.length),u={item:r,key:o.key,value:null,continue:!1};if(!this.expander.dispatchEvent(new CustomEvent("text-expander-value",{cancelable:!0,detail:u}))||!u.value)return;let l=(n=this.expander.getAttribute("suffix"))!==null&&n!==void 0?n:" ";u.continue&&(l="");const d=`${u.value}${l}`;this.input.value=i+d+a;const c=i.length+d.length;this.deactivate(),this.input.focus({preventScroll:!0}),this.input.selectionStart=c,this.input.selectionEnd=c,u.continue||(this.lookBackIndex=c,this.match=null),this.expander.dispatchEvent(new CustomEvent("text-expander-committed",{cancelable:!1,detail:{input:this.input}}))}onBlur(){if(this.interactingWithList){this.interactingWithList=!1;return}this.deactivate()}onPaste(){this.justPasted=!0}async onInput(){if(this.justPasted){this.justPasted=!1;return}const t=this.findMatch();if(t){this.match=t;const n=await this.notifyProviders(t);if(!this.match)return;n?this.activate(t,n):this.deactivate()}else this.match=null,this.deactivate()}findMatch(){const t=this.input.selectionEnd||0,n=this.input.value;t<=this.lookBackIndex&&(this.lookBackIndex=t-1);for(const{key:r,multiWord:o}of this.expander.keys){const i=eh(n,r,t,{multiWord:o,lookBackIndex:this.lookBackIndex,lastMatchPosition:this.match?this.match.position:null});if(i)return{text:i.text,key:r,position:i.position}}}async notifyProviders(t){const n=[],r=u=>n.push(u);return this.expander.dispatchEvent(new CustomEvent("text-expander-change",{cancelable:!0,detail:{provide:r,text:t.text,key:t.key}}))?(await Promise.all(n)).filter(u=>u.matched).map(u=>u.fragment)[0]:void 0}onMousedown(){this.interactingWithList=!0}onKeydown(t){t.key==="Escape"&&(this.match=null,this.deactivate()&&(this.lookBackIndex=this.input.selectionEnd||this.lookBackIndex,t.stopImmediatePropagation(),t.preventDefault()))}}class oa extends HTMLElement{get keys(){const t=this.getAttribute("keys"),n=t?t.split(" "):[],r=this.getAttribute("multiword"),o=r?r.split(" "):[],i=o.length===0&&this.hasAttribute("multiword");return n.map(a=>({key:a,multiWord:i||o.includes(a)}))}connectedCallback(){const t=this.querySelector('input[type="text"], textarea');if(!(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement))return;const n=new ih(this,t);Mn.set(this,n)}disconnectedCallback(){const t=Mn.get(this);t&&(t.destroy(),Mn.delete(this))}dismiss(){const t=Mn.get(this);t&&t.dismissMenu()}}window.customElements.get("text-expander")||(window.TextExpanderElement=oa,window.customElements.define("text-expander",oa));var ia;(function(e){e[e.HIGH_SURROGATE_START=55296]="HIGH_SURROGATE_START",e[e.HIGH_SURROGATE_END=56319]="HIGH_SURROGATE_END",e[e.LOW_SURROGATE_START=56320]="LOW_SURROGATE_START",e[e.REGIONAL_INDICATOR_START=127462]="REGIONAL_INDICATOR_START",e[e.REGIONAL_INDICATOR_END=127487]="REGIONAL_INDICATOR_END",e[e.FITZPATRICK_MODIFIER_START=127995]="FITZPATRICK_MODIFIER_START",e[e.FITZPATRICK_MODIFIER_END=127999]="FITZPATRICK_MODIFIER_END",e[e.VARIATION_MODIFIER_START=65024]="VARIATION_MODIFIER_START",e[e.VARIATION_MODIFIER_END=65039]="VARIATION_MODIFIER_END",e[e.DIACRITICAL_MARKS_START=8400]="DIACRITICAL_MARKS_START",e[e.DIACRITICAL_MARKS_END=8447]="DIACRITICAL_MARKS_END",e[e.SUBDIVISION_INDICATOR_START=127988]="SUBDIVISION_INDICATOR_START",e[e.TAGS_START=917504]="TAGS_START",e[e.TAGS_END=917631]="TAGS_END",e[e.ZWJ=8205]="ZWJ"})(ia||(ia={}));const ah=Object.freeze([776,2359,2367,2984,3007,3021,3633,3635,3648,3657,4352,4449,4520]);var aa;function sh(e){if(typeof e!="string")throw new TypeError("string cannot be undefined or null");const t=[];let n=0,r=0;for(;n<e.length;)r+=uh(n+r,e),mh(e[n+r])&&r++,fh(e[n+r])&&r++,hh(e[n+r])&&r++,_h(e[n+r])?r++:(t.push(e.substring(n,n+r)),n+=r,r=0);return t}function uh(e,t){const n=t[e];if(!ch(n)||e===t.length-1)return 1;const r=n+t[e+1];let o=t.substring(e+2,e+5);return sa(r)&&sa(o)?4:lh(r)&&ph(o)?t.slice(e).indexOf(String.fromCodePoint(917631))+2:dh(o)?4:2}function ch(e){return e&&yt(e[0].charCodeAt(0),55296,56319)}function sa(e){return yt(Wo(e),127462,127487)}function lh(e){return yt(Wo(e),127988,127988)}function dh(e){return yt(Wo(e),127995,127999)}function fh(e){return typeof e=="string"&&yt(e.charCodeAt(0),65024,65039)}function hh(e){return typeof e=="string"&&yt(e.charCodeAt(0),8400,8447)}function ph(e){const t=e.codePointAt(0);return typeof e=="string"&&typeof t=="number"&&yt(t,917504,917631)}function mh(e){return typeof e=="string"&&ah.includes(e.charCodeAt(0))}function _h(e){return typeof e=="string"&&e.charCodeAt(0)===8205}function Wo(e){return(e.charCodeAt(0)-55296<<10)+(e.charCodeAt(1)-56320)+65536}function yt(e,t,n){return e>=t&&e<=n}function um(e,t,n){const r=sh(e);if(t===void 0)return e;if(t>=r.length)return"";const o=r.length-t;let i=t+(n===void 0?o:n);return i>t+o&&(i=void 0),r.slice(t,i).join("")}(function(e){e[e.unit_1=1]="unit_1",e[e.unit_2=2]="unit_2",e[e.unit_4=4]="unit_4"})(aa||(aa={}));function vh({onlyFirst:e=!1}={}){const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}const yh=vh();function gh(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(yh,"")}function wh(){const e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",o="\\u1ab0-\\u1aff",i="\\u1dc0-\\u1dff",a=t+n+r+o+i,u="\\ufe0e\\ufe0f",s="\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c14\\u0c60-\\u0c61",l="\\u0c3e-\\u0c44\\u0c46-\\u0c48\\u0c4a-\\u0c4c\\u0c62-\\u0c63",d="\\u0c15-\\u0c28\\u0c2a-\\u0c39",c="\\u0c58-\\u0c5a",f="\\u0c01-\\u0c03\\u0c4d\\u0c55\\u0c56",p=`[${s}(?:${d}(?!\\u0c4d))\\u0c66-\\u0c6f\\u0c78-\\u0c7e${c}]`,m=`[${d}${c}][${l}]|[${d}${c}][${f}`,v=`(?:${`[${d}]\\u0c4d[${d}]`}|${m}|${p})`,y=`[${e}]`,T=`[${a}]`,M="\\ud83c[\\udffb-\\udfff]",x=`(?:${T}|${M})`,b=`[^${e}]`,C="(?:\\ud83c[\\udde6-\\uddff]){2}",B="[\\ud800-\\udbff][\\udc00-\\udfff]",S="\\u200d",L="(?:\\ud83c\\udff4\\udb40\\udc67\\udb40\\udc62\\udb40(?:\\udc65|\\udc73|\\udc77)\\udb40(?:\\udc6e|\\udc63|\\udc6c)\\udb40(?:\\udc67|\\udc74|\\udc73)\\udb40\\udc7f)",w=`${x}?`,I=`[${u}]?`,q=`(?:${S}(?:${[b,C,B].join("|")})${I+w})*`,D=I+w+q,A=`${b}${T}?`,O=`(?:${[L,A,T,C,B,y].join("|")})`;return new RegExp(`${M}(?=${M})|${v}|${O+D}`,"g")}function cm(e,{countAnsiEscapeCodes:t=!1}={}){return e===""||(t||(e=gh(e)),e==="")?0:e.match(wh()).length}var ua=36,Hs="";for(;ua--;)Hs+=ua.toString(36);function lm(e){for(var t="",n=e||11;n--;)t+=Hs[Math.random()*36|0];return t}function bh(e,t,n){var r=this,o=K(null),i=K(0),a=K(null),u=K([]),s=K(),l=K(),d=K(e),c=K(!0);d.current=e;var f=typeof window<"u",h=!t&&t!==0&&f;if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var p=!!(n=n||{}).leading,m=!("trailing"in n)||!!n.trailing,_="maxWait"in n,v="debounceOnServer"in n&&!!n.debounceOnServer,y=_?Math.max(+n.maxWait||0,t):null;ie(function(){return c.current=!0,function(){c.current=!1}},[]);var T=ae(function(){var M=function(L){var w=u.current,I=s.current;return u.current=s.current=null,i.current=L,l.current=d.current.apply(I,w)},x=function(L,w){h&&cancelAnimationFrame(a.current),a.current=h?requestAnimationFrame(L):setTimeout(L,w)},b=function(L){if(!c.current)return!1;var w=L-o.current;return!o.current||w>=t||w<0||_&&L-i.current>=y},C=function(L){return a.current=null,m&&u.current?M(L):(u.current=s.current=null,l.current)},B=function L(){var w=Date.now();if(b(w))return C(w);if(c.current){var I=t-(w-o.current),q=_?Math.min(I,y-(w-i.current)):I;x(L,q)}},S=function(){if(f||v){var L=Date.now(),w=b(L);if(u.current=[].slice.call(arguments),s.current=r,o.current=L,w){if(!a.current&&c.current)return i.current=o.current,x(B,t),p?M(o.current):l.current;if(_)return x(B,t),M(o.current)}return a.current||x(B,t),l.current}};return S.cancel=function(){a.current&&(h?cancelAnimationFrame(a.current):clearTimeout(a.current)),i.current=0,u.current=o.current=s.current=a.current=null},S.isPending=function(){return!!a.current},S.flush=function(){return a.current?C(Date.now()):l.current},S},[p,_,t,y,m,h,f,v]);return T}function dm(e,t,n){var r=n===void 0?{}:n,o=r.leading,i=r.trailing;return bh(e,t,{maxWait:t,leading:o===void 0||o,trailing:i===void 0||i})}function Qe(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function Eh(e,t){const n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);const r=Qe(n);return(o,i)=>r.then(a=>i(a.transaction(t,o).objectStore(t)))}let zr;function gt(){return zr||(zr=Eh("keyval-store","keyval")),zr}function fm(e,t=gt()){return t("readonly",n=>Qe(n.get(e)))}function hm(e,t,n=gt()){return n("readwrite",r=>(r.put(t,e),Qe(r.transaction)))}function pm(e,t=gt()){return t("readonly",n=>Promise.all(e.map(r=>Qe(n.get(r)))))}function mm(e,t=gt()){return t("readwrite",n=>(n.delete(e),Qe(n.transaction)))}function _m(e,t=gt()){return t("readwrite",n=>(e.forEach(r=>n.delete(r)),Qe(n.transaction)))}function vm(e=gt()){return e("readwrite",t=>(t.clear(),Qe(t.transaction)))}function Sh(e,t){return e.openCursor().onsuccess=function(){this.result&&(t(this.result),this.result.continue())},Qe(e.transaction)}function ym(e=gt()){return e("readonly",t=>{if(t.getAllKeys)return Qe(t.getAllKeys());const n=[];return Sh(t,r=>n.push(r.key)).then(()=>n)})}class Le extends HTMLElement{constructor(){super(),this.isIframeLoaded=!1,this.setupDom()}static get observedAttributes(){return["videoid","playlistid"]}connectedCallback(){this.addEventListener("pointerover",Le.warmConnections,{once:!0}),this.addEventListener("click",()=>this.addIframe())}get videoId(){return encodeURIComponent(this.getAttribute("videoid")||"")}set videoId(t){this.setAttribute("videoid",t)}get playlistId(){return encodeURIComponent(this.getAttribute("playlistid")||"")}set playlistId(t){this.setAttribute("playlistid",t)}get videoTitle(){return this.getAttribute("videotitle")||"Video"}set videoTitle(t){this.setAttribute("videotitle",t)}get videoPlay(){return this.getAttribute("videoPlay")||"Play"}set videoPlay(t){this.setAttribute("videoPlay",t)}get videoStartAt(){return this.getAttribute("videoStartAt")||"0"}get autoLoad(){return this.hasAttribute("autoload")}get noCookie(){return this.hasAttribute("nocookie")}get posterQuality(){return this.getAttribute("posterquality")||"hqdefault"}get posterLoading(){return this.getAttribute("posterloading")||"lazy"}get params(){return`start=${this.videoStartAt}&${this.getAttribute("params")}`}set params(t){this.setAttribute("params",t)}setupDom(){const t=this.attachShadow({mode:"open"});let n="";window.liteYouTubeNonce&&(n=`nonce="${window.liteYouTubeNonce}"`),t.innerHTML=`
<style ${n}>
:host {
contain: content;
display: block;
position: relative;
width: 100%;
padding-bottom: calc(100% / (16 / 9));
}
@media (max-width: 40em) {
:host([short]) {
padding-bottom: calc(100% / (9 / 16));
}
}
#frame, #fallbackPlaceholder, iframe {
position: absolute;
width: 100%;
height: 100%;
left: 0;
}
#frame {
cursor: pointer;
}
#fallbackPlaceholder {
object-fit: cover;
}
#frame::before {
content: '';
display: block;
position: absolute;
top: 0;
background-image: linear-gradient(180deg, #111 -20%, transparent 90%);
height: 60px;
width: 100%;
z-index: 1;
}
#playButton {
width: 68px;
height: 48px;
background-color: transparent;
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 68 48"><path d="M66.52 7.74c-.78-2.93-2.49-5.41-5.42-6.19C55.79.13 34 0 34 0S12.21.13 6.9 1.55c-2.93.78-4.63 3.26-5.42 6.19C.06 13.05 0 24 0 24s.06 10.95 1.48 16.26c.78 2.93 2.49 5.41 5.42 6.19C12.21 47.87 34 48 34 48s21.79-.13 27.1-1.55c2.93-.78 4.64-3.26 5.42-6.19C67.94 34.95 68 24 68 24s-.06-10.95-1.48-16.26z" fill="red"/><path d="M45 24 27 14v20" fill="white"/></svg>');
z-index: 1;
border: 0;
border-radius: inherit;
}
#playButton:before {
content: '';
border-style: solid;
border-width: 11px 0 11px 19px;
border-color: transparent transparent transparent #fff;
}
#playButton,
#playButton:before {
position: absolute;
top: 50%;
left: 50%;
transform: translate3d(-50%, -50%, 0);
cursor: inherit;
}
/* Post-click styles */
.activated {
cursor: unset;
}
#frame.activated::before,
#frame.activated > #playButton {
display: none;
}
</style>
<div id="frame">
<picture>
<source id="webpPlaceholder" type="image/webp">
<source id="jpegPlaceholder" type="image/jpeg">
<img id="fallbackPlaceholder" referrerpolicy="origin" loading="lazy">
</picture>
<button id="playButton"></button>
</div>
`,this.domRefFrame=t.querySelector("#frame"),this.domRefImg={fallback:t.querySelector("#fallbackPlaceholder"),webp:t.querySelector("#webpPlaceholder"),jpeg:t.querySelector("#jpegPlaceholder")},this.domRefPlayButton=t.querySelector("#playButton")}setupComponent(){this.initImagePlaceholder(),this.domRefPlayButton.setAttribute("aria-label",`${this.videoPlay}: ${this.videoTitle}`),this.setAttribute("title",`${this.videoPlay}: ${this.videoTitle}`),(this.autoLoad||this.isYouTubeShort())&&this.initIntersectionObserver()}attributeChangedCallback(t,n,r){switch(t){case"videoid":case"playlistid":case"videoTitle":case"videoPlay":{n!==r&&(this.setupComponent(),this.domRefFrame.classList.contains("activated")&&(this.domRefFrame.classList.remove("activated"),this.shadowRoot.querySelector("iframe").remove(),this.isIframeLoaded=!1));break}default:break}}addIframe(t=!1){if(!this.isIframeLoaded){let n=t?0:1;const r=this.noCookie?"-nocookie":"";let o;this.playlistId?o=`?listType=playlist&list=${this.playlistId}&`:o=`${this.videoId}?`,this.isYouTubeShort()&&(this.params=`loop=1&mute=1&modestbranding=1&playsinline=1&rel=0&enablejsapi=1&playlist=${this.videoId}`,n=1);const i=`
<iframe frameborder="0" title="${this.videoTitle}"
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen
src="https://www.youtube${r}.com/embed/${o}autoplay=${n}&${this.params}"
></iframe>`;this.domRefFrame.insertAdjacentHTML("beforeend",i),this.domRefFrame.classList.add("activated"),this.isIframeLoaded=!0,this.attemptShortAutoPlay(),this.dispatchEvent(new CustomEvent("liteYoutubeIframeLoaded",{detail:{videoId:this.videoId},bubbles:!0,cancelable:!0}))}}initImagePlaceholder(){var r,o;const t=`https://i.ytimg.com/vi_webp/${this.videoId}/${this.posterQuality}.webp`,n=`https://i.ytimg.com/vi/${this.videoId}/${this.posterQuality}.jpg`;this.domRefImg.fallback.loading=this.posterLoading,this.domRefImg.webp.srcset=t,this.domRefImg.jpeg.srcset=n,this.domRefImg.fallback.src=n,this.domRefImg.fallback.setAttribute("aria-label",`${this.videoPlay}: ${this.videoTitle}`),(o=(r=this.domRefImg)==null?void 0:r.fallback)==null||o.setAttribute("alt",`${this.videoPlay}: ${this.videoTitle}`)}initIntersectionObserver(){const t={root:null,rootMargin:"0px",threshold:0};new IntersectionObserver((r,o)=>{r.forEach(i=>{i.isIntersecting&&!this.isIframeLoaded&&(Le.warmConnections(),this.addIframe(!0),o.unobserve(this))})},t).observe(this)}attemptShortAutoPlay(){this.isYouTubeShort()&&setTimeout(()=>{var t,n;(n=(t=this.shadowRoot.querySelector("iframe"))==null?void 0:t.contentWindow)==null||n.postMessage('{"event":"command","func":"playVideo","args":""}',"*")},2e3)}isYouTubeShort(){return this.getAttribute("short")===""&&window.matchMedia("(max-width: 40em)").matches}static addPrefetch(t,n){const r=document.createElement("link");r.rel=t,r.href=n,r.crossOrigin="true",document.head.append(r)}static warmConnections(){Le.isPreconnected||window.liteYouTubeIsPreconnected||(Le.addPrefetch("preconnect","https://i.ytimg.com/"),Le.addPrefetch("preconnect","https://s.ytimg.com"),Le.addPrefetch("preconnect","https://www.youtube.com"),Le.addPrefetch("preconnect","https://www.google.com"),Le.addPrefetch("preconnect","https://googleads.g.doubleclick.net"),Le.addPrefetch("preconnect","https://static.doubleclick.net"),Le.isPreconnected=!0,window.liteYouTubeIsPreconnected=!0)}}Le.isPreconnected=!1;customElements.define("lite-youtube",Le);const Th="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz#$%*+,-.:;=?@[]^_{|}~",$n=(e,t,n)=>{let r=0;for(;t<n;)r*=83,r+=Th.indexOf(e[t++]);return r},Bs=Math.pow,gn=Math.PI,xh=gn*2,Us=3294.6,qs=269.025,Ch=e=>e>10.31475?Bs(e/qs+.052132,2.4):e/Us,Fr=e=>~~(e>1227e-8?qs*Bs(e,.416666)-13.025:e*Us+1),ln=e=>(e<0?-1:1)*e*e,ca=e=>{for(e+=gn/2;e>gn;)e-=xh;const t=1.27323954*e-.405284735*ln(e);return .225*(ln(t)-t)+t};function Ah(e){const t=$n(e,2,6);return[t>>16,t>>8&255,t&255]}function gm(e,t,n,r){const o=$n(e,0,1),i=o%9+1,a=~~(o/9)+1,u=i*a;let s=0,l=0,d=0,c=0,f=0,h=0,p=0,m=0,_=0,v=0,y=0,T=0,M=0,x=0;const b=($n(e,1,2)+1)/13446*(r|1),C=new Float64Array(u*3),B=Ah(e);for(s=0;s<3;s++)C[s]=Ch(B[s]);for(s=1;s<u;s++)x=$n(e,4+s*2,6+s*2),C[s*3]=ln(~~(x/(19*19))-9)*b,C[s*3+1]=ln(~~(x/19)%19-9)*b,C[s*3+2]=ln(x%19-9)*b;const S=t*4,L=new Uint8ClampedArray(S*n);for(c=0;c<n;c++)for(T=gn*c/n,d=0;d<t;d++){for(f=0,h=0,p=0,M=gn*d/t,l=0;l<a;l++)for(_=ca(T*l),s=0;s<i;s++)m=ca(M*s)*_,v=(s+l*i)*3,f+=C[v]*m,h+=C[v+1]*m,p+=C[v+2]*m;y=4*d+c*S,L[y]=Fr(f),L[y+1]=Fr(h),L[y+2]=Fr(p),L[y+3]=255}return L}var on=(e=>(e.Mouse="mouse",e.Touch="touch",e.Pointer="pointer",e))(on||{}),an=(e=>(e.CancelledByMovement="cancelled-by-movement",e.CancelledByRelease="cancelled-by-release",e.CancelledOutsideElement="cancelled-outside-element",e))(an||{});const Ws=()=>typeof window=="object"?(window==null?void 0:window.PointerEvent)??null:null,Oh=()=>typeof window=="object"?(window==null?void 0:window.TouchEvent)??null:null;function Ks(e){const{nativeEvent:t}=e,n=Oh();return n&&t instanceof n||"touches"in e}function Gs(e){const t=Ws();return e.nativeEvent instanceof MouseEvent&&!(t&&e.nativeEvent instanceof t)}function Ys(e){const{nativeEvent:t}=e;if(!t)return!1;const n=Ws();return n&&t instanceof n||"pointerId"in t}function la(e){return Gs(e)||Ks(e)||Ys(e)}function da(e){return Ks(e)?{x:e.touches[0].pageX,y:e.touches[0].pageY}:Gs(e)||Ys(e)?{x:e.pageX,y:e.pageY}:null}function Mh(e){return{target:e.target,currentTarget:e.currentTarget,nativeEvent:e,persist:()=>{}}}function wm(e,{threshold:t=400,captureEvent:n=!1,detect:r=on.Pointer,cancelOnMovement:o=!1,cancelOutsideElement:i=!0,filterEvents:a,onStart:u,onMove:s,onFinish:l,onCancel:d}={}){const c=K(!1),f=K(!1),h=K(),p=K(),m=K(e),_=K(null),v=_e(x=>b=>{f.current||la(b)&&(a!==void 0&&!a(b)||(n&&b.persist(),u==null||u(b,{context:x}),_.current=da(b),f.current=!0,h.current=b.currentTarget,p.current=setTimeout(()=>{m.current&&(m.current(b,{context:x}),c.current=!0)},t)))},[n,a,u,t]),y=_e(x=>(b,C)=>{la(b)&&f.current&&(_.current=null,n&&b.persist(),c.current?l==null||l(b,{context:x}):f.current&&(d==null||d(b,{context:x,reason:C??an.CancelledByRelease})),c.current=!1,f.current=!1,p.current!==void 0&&clearTimeout(p.current))},[n,l,d]),T=_e(x=>b=>{if(s==null||s(b,{context:x}),o!==!1&&_.current){const C=da(b);if(C){const B=o===!0?25:o,S={x:Math.abs(C.x-_.current.x),y:Math.abs(C.y-_.current.y)};(S.x>B||S.y>B)&&y(x)(b,an.CancelledByMovement)}}},[y,o,s]),M=_e(x=>{if(e===null)return{};switch(r){case on.Mouse:{const b={onMouseDown:v(x),onMouseMove:T(x),onMouseUp:y(x)};return i&&(b.onMouseLeave=C=>{y(x)(C,an.CancelledOutsideElement)}),b}case on.Touch:return{onTouchStart:v(x),onTouchMove:T(x),onTouchEnd:y(x)};case on.Pointer:{const b={onPointerDown:v(x),onPointerMove:T(x),onPointerUp:y(x)};return i&&(b.onPointerLeave=C=>y(x)(C,an.CancelledOutsideElement)),b}}},[e,y,i,r,T,v]);return ie(()=>{if(!window)return;function x(b){const C=Mh(b);y()(C)}return window.addEventListener("mouseup",x),window.addEventListener("touchend",x),window.addEventListener("pointerup",x),()=>{window.removeEventListener("mouseup",x),window.removeEventListener("touchend",x),window.removeEventListener("pointerup",x)}},[y]),ie(()=>()=>{p.current!==void 0&&clearTimeout(p.current)},[]),ie(()=>{m.current=e},[e]),M}function Ph(e,t){var n=K(null),r=K(null);r.current=t;var o=K(null);ie(function(){i()});var i=_e(function(){var a=o.current,u=r.current,s=a||(u?u instanceof Element?u:u.current:null);n.current&&n.current.element===s&&n.current.subscriber===e||(n.current&&n.current.cleanup&&n.current.cleanup(),n.current={element:s,subscriber:e,cleanup:s?e(s):void 0})},[e]);return ie(function(){return function(){n.current&&n.current.cleanup&&(n.current.cleanup(),n.current=null)}},[]),_e(function(a){o.current=a,i()},[i])}function fa(e,t,n){return e[t]?e[t][0]?e[t][0][n]:e[t][n]:t==="contentBoxSize"?e.contentRect[n==="inlineSize"?"width":"height"]:void 0}function bm(e){e===void 0&&(e={});var t=e.onResize,n=K(void 0);n.current=t;var r=e.round||Math.round,o=K(),i=me({width:void 0,height:void 0}),a=i[0],u=i[1],s=K(!1);ie(function(){return s.current=!1,function(){s.current=!0}},[]);var l=K({width:void 0,height:void 0}),d=Ph(_e(function(c){return(!o.current||o.current.box!==e.box||o.current.round!==r)&&(o.current={box:e.box,round:r,instance:new ResizeObserver(function(f){var h=f[0],p=e.box==="border-box"?"borderBoxSize":e.box==="device-pixel-content-box"?"devicePixelContentBoxSize":"contentBoxSize",m=fa(h,p,"inlineSize"),_=fa(h,p,"blockSize"),v=m?r(m):void 0,y=_?r(_):void 0;if(l.current.width!==v||l.current.height!==y){var T={width:v,height:y};l.current.width=v,l.current.height=y,n.current?n.current(T):s.current||u(T)}})}),o.current.instance.observe(c,{box:e.box}),function(){o.current&&o.current.instance.unobserve(c)}},[e.box,r]),e.ref);return ae(function(){return{ref:d,width:a.width,height:a.height}},[d,a.width,a.height])}var Zs="kvfysmfp",Vs="ufhsfnkm",Rh=".".concat(Zs,"{overflow:hidden;touch-action:none}.").concat(Vs,"{transform-origin: 0 0}"),Lh=typeof window>"u",Dh=function(){return!Lh&&("ontouchstart"in window||navigator.maxTouchPoints>0)};var Em=function(e){var t=e.x,n=e.y,r=e.scale;return"scale3d(".concat(r,",").concat(r,", 1) translate3d(").concat(t,"px, ").concat(n,"px, 0)")};var Ih=Math.min,Nh=Math.max;function ha(e){var t=e.containerDimension,n=e.childDimension,r=e.padding,o=e.centerContained,i=n-t;return i+2*r<=0&&o?[i/2,i/2]:[Ih(i+r,0)-r,Nh(0,i+r)]}var pa=function(e,t){return t?"".concat(e," ").concat(t):e},Pn=Math.abs,kh=Math.min,$h=Math.sqrt,Js=typeof window>"u",jh=Js?!1:/(Mac)/i.test(navigator.platform),At=function(e){return e==="drag"},Qt=function(e){return e==="zoom"},zh=function(e){return jh&&e.ctrlKey},en=function(e){e.stopPropagation(),e.preventDefault()},ma=function(e,t){var n=e.x-t.x,r=e.y-t.y;return $h(n*n+r*r)},Fh=function(e,t){var n=ma(e[0],e[1]),r=ma(t[0],t[1]);return r/n},Hh=function(e,t){return e>t-.01&&e<t+.01},Bh=function(e){return-Math.cos(e*Math.PI)/2+.5},Uh=function(e){return{x:e.pageX,y:e.pageY}},Rn=function(e){return Array.from(e).map(Uh)},_a=function(e,t){return e+t},qh=function(e){return{x:e.map(function(t){var n=t.x;return n}).reduce(_a,0)/e.length,y:e.map(function(t){var n=t.y;return n}).reduce(_a,0)/e.length}},Hr=function(e,t,n){return n<e?e:n>t?t:n},Wh=function(e){return!(e.ctrlKey||e.metaKey)},Kh=function(e){if(e){var t=e.offsetWidth,n=e.offsetHeight;if(t&&n)return{width:t,height:n};var r=getComputedStyle(e),o=parseFloat(r.width),i=parseFloat(r.height);if(i&&o)return{width:o,height:i}}return{width:0,height:0}},Gh=function(e,t){return{x:t.x-e.x,y:t.y-e.y}},Yh=function(e,t){return e.x===t.x&&e.y===t.y},ct=function(){},Ln={x:0,y:0},Sm=function(e){fl(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n._prevDragMovePoint=null,n._containerObserver=null,n._fingers=0,n._firstMove=!0,n._initialOffset=fe({},Ln),n._interaction=null,n._isDoubleTap=!1,n._isOffsetsSet=!1,n._lastDragPosition=null,n._lastScale=1,n._lastTouchStart=0,n._lastZoomCenter=null,n._listenMouseMove=!1,n._nthZoom=0,n._offset=fe({},Ln),n._startOffset=fe({},Ln),n._startTouches=null,n._updatePlaned=!1,n._wheelTimeOut=null,n._zoomFactor=1,n._initialZoomFactor=1,n._draggingPoint=fe({},Ln),n._ignoreNextClick=!1,n._containerRef=ho(),n._handleClick=function(r){n._ignoreNextClick&&(n._ignoreNextClick=!1,r.stopPropagation())},n._onResize=function(){var r;!((r=n._containerRef)===null||r===void 0)&&r.current&&(n._updateInitialZoomFactor(),n._setupOffsets(),n._update())},n._handlerOnTouchEnd=n._handlerIfEnable(function(r){n._fingers=r.touches.length,n.props.shouldCancelHandledTouchEndEvents&&(Qt(n._interaction)||At(n._interaction)&&(n._startOffset.x!==n._offset.x||n._startOffset.y!==n._offset.y))&&en(r),At(n._interaction)&&!n._enoughToDrag()&&n._handleClick(r),n._updateInteraction(r)}),n._handlerOnTouchStart=n._handlerIfEnable(function(r){n._firstMove=!0,n._fingers=r.touches.length,n._detectDoubleTap(r)}),n._handlerOnTouchMove=n._handlerIfEnable(function(r){n._isDoubleTap||(n._collectInertia(r),n._firstMove?(n._updateInteraction(r),n._interaction&&en(r),n._startOffset=fe({},n._offset),n._startTouches=Rn(r.touches)):(Qt(n._interaction)?n._startTouches&&n._startTouches.length===2&&r.touches.length===2&&n._handleZoom(r,Fh(n._startTouches,Rn(r.touches))):At(n._interaction)&&n._handleDrag(r),n._interaction&&(en(r),n._update())),n._firstMove=!1)}),n._handlerWheel=function(r){if(!n.props.shouldInterceptWheel(r)){en(r);var o=r.pageX,i=r.pageY,a=r.deltaY,u=r.deltaMode,s=1;(zh(r)||u===1)&&(s=15);var l={touches:[{pageX:o,pageY:i}]},d=n._getOffsetByFirstTouch(l),c=a*s;n._stopAnimation(),n._scaleTo(n._zoomFactor-c/n.props.wheelScaleFactor,d),n._update(),clearTimeout(n._wheelTimeOut),n._wheelTimeOut=setTimeout(function(){return n._sanitize()},100)}},n._handlers=n.props.isTouch()?[["touchstart",n._handlerOnTouchStart],["touchend",n._handlerOnTouchEnd],["touchmove",n._handlerOnTouchMove]]:[["mousemove",n.simulate(n._handlerOnTouchMove),n.props._document],["mouseup",n.simulate(n._handlerOnTouchEnd),n.props._document],["mousedown",n.simulate(n._handlerOnTouchStart)],["click",n._handleClick],["wheel",n._handlerWheel]],n}return t.prototype._handleDragStart=function(n){this._ignoreNextClick=!0,this.props.onDragStart(),this._stopAnimation(),this._resetInertia(),this._lastDragPosition=null,this._hasInteraction=!0,this._draggingPoint=this._offset,this._handleDrag(n)},t.prototype._handleDrag=function(n){var r=this._getOffsetByFirstTouch(n);this._enoughToDrag()?this._drag(r,this._lastDragPosition):this._virtualDrag(r,this._lastDragPosition),this._offset=this._sanitizeOffset(this._offset),this._lastDragPosition=r},t.prototype._resetInertia=function(){this._velocity=null,this._prevDragMovePoint=null},t.prototype._realizeInertia=function(){var n=this,r=this.props,o=r.inertiaFriction,i=r.inertia;if(!(!i||!this._velocity)){var a=this._velocity,u=a.x,s=a.y;if(u||s){this._stopAnimation(),this._resetInertia();var l=function(){if(u*=o,s*=o,!u&&!s)return n._stopAnimation();var d=fe({},n._offset);if(n._addOffset({x:u,y:s}),n._offset=n._sanitizeOffset(n._offset),Yh(d,n._offset))return n._stopAnimation();n._update({isAnimation:!0})};this._animate(l,{duration:9999})}}},t.prototype._collectInertia=function(n){var r=n.touches;if(this.props.inertia){var o=Rn(r)[0],i=this._prevDragMovePoint;i&&(this._velocity=Gh(o,i)),this._prevDragMovePoint=o}},t.prototype._handleDragEnd=function(){this.props.onDragEnd(),this._end(),this._realizeInertia()},t.prototype._handleZoomStart=function(){this.props.onZoomStart(),this._stopAnimation(),this._lastScale=1,this._nthZoom=0,this._lastZoomCenter=null,this._hasInteraction=!0},t.prototype._handleZoom=function(n,r){var o=qh(this._getOffsetTouches(n)),i=r/this._lastScale;this._lastScale=r,this._nthZoom+=1,this._nthZoom>3&&(this._scale(i,o),this._drag(o,this._lastZoomCenter),this.props.enforceBoundsDuringZoom&&(this._offset=this._sanitizeOffset(this._offset))),this._lastZoomCenter=o},t.prototype._handleZoomEnd=function(){this.props.onZoomEnd(),this._end()},t.prototype._handleDoubleTap=function(n){var r=this;if(!(this._hasInteraction||this.props.tapZoomFactor===0)){var o=this.props.doubleTapZoomOutOnMaxScale&&this._zoomFactor===this.props.maxZoom||this.props.doubleTapToggleZoom&&this._zoomFactor>1;this.props.onDoubleTap(),this._ignoreNextClick=!0;var i=this._zoomFactor+this.props.tapZoomFactor,a=this._zoomFactor,u=function(l){r._scaleTo(a+l*(i-a),s)},s=this._getOffsetByFirstTouch(n);this._isDoubleTap=!0,a>i&&(s=this._getCurrentZoomCenter()),o?this._zoomOutAnimation():this._animate(u)}},t.prototype._computeInitialOffset=function(){var n=this._getContainerRect(),r=this._getChildSize(),o=r.width,i=r.height,a=-Pn(o*this._getInitialZoomFactor()-n.width)/2,u=-Pn(i*this._getInitialZoomFactor()-n.height)/2;this._initialOffset={x:a,y:u}},t.prototype._resetOffset=function(){this._offset=fe({},this._initialOffset)},t.prototype._setupOffsets=function(){this.props.setOffsetsOnce&&this._isOffsetsSet||(this._isOffsetsSet=!0,this._computeInitialOffset(),this._resetOffset())},t.prototype._sanitizeOffset=function(n){var r=this._getContainerRect(),o=this._getChildSize(),i=o.width,a=o.height,u=i*this._getInitialZoomFactor()*this._zoomFactor,s=a*this._getInitialZoomFactor()*this._zoomFactor,l=ha({containerDimension:r.width,childDimension:u,padding:this.props.horizontalPadding,centerContained:this.props.centerContained}),d=l[0],c=l[1],f=ha({containerDimension:r.height,childDimension:s,padding:this.props.verticalPadding,centerContained:this.props.centerContained}),h=f[0],p=f[1];return{x:Hr(d,c,n.x),y:Hr(h,p,n.y)}},t.prototype.alignCenter=function(n){var r=this,o=fe({duration:250,animated:!0},n),i=o.x,a=o.y,u=o.scale,s=o.animated,l=o.duration,d=i*this._initialZoomFactor,c=a*this._initialZoomFactor,f=this._zoomFactor,h=fe({},this._offset),p=this._getContainerRect(),m={x:p.width/2,y:p.height/2};if(this._zoomFactor=1,this._offset={x:-(m.x-d),y:-(m.y-c)},this._scaleTo(u,m),this._stopAnimation(),!s)return this._update();var _=this._zoomFactor-f,v={x:this._offset.x-h.x,y:this._offset.y-h.y};this._zoomFactor=f,this._offset=fe({},h);var y=function(T){var M=h.x+v.x*T,x=h.y+v.y*T;r._zoomFactor=f+_*T,r._offset=r._sanitizeOffset({x:M,y:x}),r._update()};this._animate(y,{callback:function(){return r._sanitize()},duration:l})},t.prototype.scaleTo=function(n){var r=this,o=fe({duration:250,animated:!0},n),i=o.x,a=o.y,u=o.scale,s=o.animated,l=o.duration,d=this._zoomFactor,c=fe({},this._offset);if(this._zoomFactor=1,this._offset={x:0,y:0},this._scaleTo(u,{x:i,y:a}),this._stopAnimation(),!s)return this._update();var f=this._zoomFactor-d,h={x:this._offset.x-c.x,y:this._offset.y-c.y};this._zoomFactor=d,this._offset=fe({},c);var p=function(m){var _=c.x+h.x*m,v=c.y+h.y*m;r._zoomFactor=d+f*m,r._offset={x:_,y:v},r._update()};this._animate(p,{callback:function(){return r._sanitize()},duration:l})},t.prototype._scaleTo=function(n,r){this._scale(n/this._zoomFactor,r),this._offset=this._sanitizeOffset(this._offset)},t.prototype._scale=function(n,r){n=this._scaleZoomFactor(n),this._addOffset({x:(n-1)*(r.x+this._offset.x),y:(n-1)*(r.y+this._offset.y)}),this.props.onZoomUpdate()},t.prototype._scaleZoomFactor=function(n){var r=this._zoomFactor;return this._zoomFactor*=n,this._zoomFactor=Hr(this.props.minZoom,this.props.maxZoom,this._zoomFactor),this._zoomFactor/r},t.prototype._canDrag=function(){return this.props.draggableUnZoomed||!Hh(this._zoomFactor,1)},t.prototype._drag=function(n,r){if(r){var o=-(n.y-r.y),i=-(n.x-r.x);this.props.lockDragAxis?Pn(i)>Pn(o)?this._addOffset({x:i,y:0}):this._addOffset({y:o,x:0}):this._addOffset({x:i,y:o}),this.props.onDragUpdate()}},t.prototype._virtualDrag=function(n,r){if(r){var o=-(n.y-r.y),i=-(n.x-r.x);this._draggingPoint={x:i+this._draggingPoint.x,y:o+this._draggingPoint.y}}},t.prototype._addOffset=function(n){var r=this._offset,o=r.x,i=r.y;this._offset={x:o+n.x,y:i+n.y}},t.prototype._sanitize=function(){this._zoomFactor<this.props.zoomOutFactor?(this._resetInertia(),this._zoomOutAnimation()):this._isInsaneOffset()&&this._sanitizeOffsetAnimation()},t.prototype._isInsaneOffset=function(){var n=this._offset,r=this._sanitizeOffset(n);return r.x!==n.x||r.y!==n.y},t.prototype._sanitizeOffsetAnimation=function(){var n=this,r=this._sanitizeOffset(this._offset),o=fe({},this._offset),i=function(a){var u=o.x+a*(r.x-o.x),s=o.y+a*(r.y-o.y);n._offset={x:u,y:s},n._update()};this._animate(i)},t.prototype._zoomOutAnimation=function(){var n=this;if(this._zoomFactor!==1){var r=this._zoomFactor,o=1,i=this._getCurrentZoomCenter(),a=function(u){var s=r+u*(o-r);n._scaleTo(s,i)};this._animate(a)}},t.prototype._getInitialZoomFactor=function(){return this._initialZoomFactor},t.prototype._getCurrentZoomCenter=function(){var n=this._offset,r=n.x,o=n.y,i=r-this._initialOffset.x,a=o-this._initialOffset.y;return{x:-1*r-i/(1/this._zoomFactor-1),y:-1*o-a/(1/this._zoomFactor-1)}},t.prototype._getOffsetByFirstTouch=function(n){return this._getOffsetTouches(n)[0]},t.prototype._getOffsetTouches=function(n){var r=this.props._document,o=r.documentElement,i=r.body,a=this._getContainerRect(),u=a.top,s=a.left,l=o.scrollTop||i.scrollTop,d=o.scrollLeft||i.scrollLeft,c=u+l,f=s+d;return Rn(n.touches).map(function(h){var p=h.x,m=h.y;return{x:p-f,y:m-c}})},t.prototype._animate=function(n,r){var o=this,i=new Date().getTime(),a=fe({timeFn:Bh,callback:function(){},duration:this.props.animationDuration},r),u=a.timeFn,s=a.callback,l=a.duration,d=function(){if(o._inAnimation){var c=new Date().getTime()-i,f=c/l;c>=l?(n(1),o._stopAnimation(),s(),o._update()):(f=u(f),n(f),o._update({isAnimation:!0}),requestAnimationFrame(d))}};this._inAnimation=!0,requestAnimationFrame(d)},t.prototype._stopAnimation=function(){this._inAnimation=!1},t.prototype._end=function(){this._hasInteraction=!1,this._sanitize(),this._update()},t.prototype._getContainerRect=function(){var n=this._containerRef.current;return n.getBoundingClientRect()},t.prototype._getChildSize=function(){var n=this._containerRef.current;return Kh(n==null?void 0:n.firstElementChild)},t.prototype._updateInitialZoomFactor=function(){var n=this._getContainerRect(),r=this._getChildSize(),o=n.width/r.width,i=n.height/r.height;this._initialZoomFactor=kh(o,i)},t.prototype._bindEvents=function(){var n=this,r=this._containerRef.current;window.ResizeObserver?(this._containerObserver=new ResizeObserver(this._onResize),this._containerObserver.observe(r)):window.addEventListener("resize",this._onResize),this._handlers.forEach(function(o){var i=o[0],a=o[1],u=o[2];(u||r).addEventListener(i,a,!0)}),Array.from(r.querySelectorAll("img")).forEach(function(o){return o.addEventListener("load",n._onResize)})},t.prototype._unSubscribe=function(){var n=this,r=this._containerRef.current;this._containerObserver&&(this._containerObserver.disconnect(),this._containerObserver=null),window.removeEventListener("resize",this._onResize),this._handlers.forEach(function(o){var i=o[0],a=o[1],u=o[2];(u||r).removeEventListener(i,a,!0)}),Array.from(r.querySelectorAll("img")).forEach(function(o){return o.removeEventListener("load",n._onResize)})},t.prototype._update=function(n){var r=this;if(!this._updatePlaned){var o=function(){var i=r._getInitialZoomFactor()*r._zoomFactor,a=-r._offset.x/i,u=-r._offset.y/i;r.props.onUpdate({scale:i,x:a,y:u})};if(n!=null&&n.isAnimation)return o();this._updatePlaned=!0,requestAnimationFrame(function(){r._updatePlaned=!1,o()})}},t.prototype._handlerIfEnable=function(n){var r=this;return function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];r.props.enabled&&n.apply(void 0,o)}},t.prototype._setInteraction=function(n,r){var o=this._interaction;o!==n&&(o&&!n&&(Qt(o)?this._handleZoomEnd():At(o)&&this._handleDragEnd()),Qt(n)?this._handleZoomStart():At(n)&&this._handleDragStart(r)),this._interaction=n},t.prototype._distanceBetweenNumbers=function(n,r){return n>r?n-r:r-n},t.prototype._enoughToDrag=function(){return this._distanceBetweenNumbers(this._startOffset.x,this._draggingPoint.x)>5||this._distanceBetweenNumbers(this._startOffset.y,this._draggingPoint.y)>5},t.prototype._updateInteraction=function(n){var r=this._fingers;if(r===2)return this._setInteraction("zoom",n);if(r===1&&this._canDrag())return this._setInteraction("drag",n);this._setInteraction(null,n)},t.prototype._detectDoubleTap=function(n){var r=new Date().getTime();this._fingers>1&&(this._lastTouchStart=0),r-this._lastTouchStart<300?(en(n),this._handleDoubleTap(n),Qt(this._interaction)?this._handleZoomEnd():At(this._interaction)&&this._handleDragEnd()):this._isDoubleTap=!1,this._fingers===1&&(this._lastTouchStart=r)},t.prototype.simulate=function(n){var r=this;return function(o){var i=o.pageX,a=o.pageY,u=o.type,s=u==="mouseup",l=u==="mousedown";l&&(o.preventDefault(),r._listenMouseMove=!0),r._listenMouseMove&&(o.touches=s?[]:[{pageX:i,pageY:a}],n(o)),s&&(r._listenMouseMove=!1)}},t.prototype.componentDidMount=function(){this._bindEvents(),this._update()},t.prototype.componentWillUnmount=function(){this._stopAnimation(),this._unSubscribe()},t.prototype.render=function(){var n=this.props,r=n.children,o=n.containerProps,i=lr.only(r),a=o||{};return Pt.createElement(Pt.Fragment,null,Pt.createElement("style",null,Rh),Pt.createElement("div",fe({},a,{ref:this._containerRef,className:pa(Zs,a.className)}),dr(i,{className:pa(Vs,i.props.className)})))},t.defaultProps={animationDuration:250,draggableUnZoomed:!0,enforceBoundsDuringZoom:!1,centerContained:!1,enabled:!0,inertia:!0,inertiaFriction:.96,horizontalPadding:0,isTouch:Dh,lockDragAxis:!1,maxZoom:5,minZoom:.5,onDoubleTap:ct,onDragEnd:ct,onDragStart:ct,onDragUpdate:ct,onZoomEnd:ct,onZoomStart:ct,onZoomUpdate:ct,setOffsetsOnce:!1,shouldInterceptWheel:Wh,shouldCancelHandledTouchEndEvents:!1,tapZoomFactor:1,verticalPadding:0,wheelScaleFactor:1500,zoomOutFactor:1.3,doubleTapZoomOutOnMaxScale:!1,doubleTapToggleZoom:!1,_document:Js?null:window.document},t}(Pe);if(!1)var Tm,xm,Cm,Am,Om,Mm,Pm;var Zh=Object.defineProperty,Vh=(e,t,n)=>t in e?Zh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Dn=(e,t,n)=>(Vh(e,typeof t!="symbol"?t+"":t,n),n),fo=new Map,In=new WeakMap,va=0,Jh=void 0;function Xh(e){return e?(In.has(e)||(va+=1,In.set(e,va.toString())),In.get(e)):"0"}function Qh(e){return Object.keys(e).sort().filter(t=>e[t]!==void 0).map(t=>`${t}_${t==="root"?Xh(e.root):e[t]}`).toString()}function ep(e){let t=Qh(e),n=fo.get(t);if(!n){const r=new Map;let o;const i=new IntersectionObserver(a=>{a.forEach(u=>{var s;const l=u.isIntersecting&&o.some(d=>u.intersectionRatio>=d);e.trackVisibility&&typeof u.isVisible>"u"&&(u.isVisible=l),(s=r.get(u.target))==null||s.forEach(d=>{d(l,u)})})},e);o=i.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:i,elements:r},fo.set(t,n)}return n}function tp(e,t,n={},r=Jh){if(typeof window.IntersectionObserver>"u"&&r!==void 0){const s=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:typeof n.threshold=="number"?n.threshold:0,time:0,boundingClientRect:s,intersectionRect:s,rootBounds:s}),()=>{}}const{id:o,observer:i,elements:a}=ep(n);let u=a.get(e)||[];return a.has(e)||a.set(e,u),u.push(t),i.observe(e),function(){u.splice(u.indexOf(t),1),u.length===0&&(a.delete(e),i.unobserve(e)),a.size===0&&(i.disconnect(),fo.delete(o))}}function np(e){return typeof e.children!="function"}var Rm=class extends Pe{constructor(e){super(e),Dn(this,"node",null),Dn(this,"_unobserveCb",null),Dn(this,"handleNode",t=>{this.node&&(this.unobserve(),!t&&!this.props.triggerOnce&&!this.props.skip&&this.setState({inView:!!this.props.initialInView,entry:void 0})),this.node=t||null,this.observeNode()}),Dn(this,"handleChange",(t,n)=>{t&&this.props.triggerOnce&&this.unobserve(),np(this.props)||this.setState({inView:t,entry:n}),this.props.onChange&&this.props.onChange(t,n)}),this.state={inView:!!e.initialInView,entry:void 0}}componentDidMount(){this.unobserve(),this.observeNode()}componentDidUpdate(e){(e.rootMargin!==this.props.rootMargin||e.root!==this.props.root||e.threshold!==this.props.threshold||e.skip!==this.props.skip||e.trackVisibility!==this.props.trackVisibility||e.delay!==this.props.delay)&&(this.unobserve(),this.observeNode())}componentWillUnmount(){this.unobserve()}observeNode(){if(!this.node||this.props.skip)return;const{threshold:e,root:t,rootMargin:n,trackVisibility:r,delay:o,fallbackInView:i}=this.props;this._unobserveCb=tp(this.node,this.handleChange,{threshold:e,root:t,rootMargin:n,trackVisibility:r,delay:o},i)}unobserve(){this._unobserveCb&&(this._unobserveCb(),this._unobserveCb=null)}render(){const{children:e}=this.props;if(typeof e=="function"){const{inView:h,entry:p}=this.state;return e({inView:h,entry:p,ref:this.handleNode})}const{as:t,triggerOnce:n,threshold:r,root:o,rootMargin:i,onChange:a,skip:u,trackVisibility:s,delay:l,initialInView:d,fallbackInView:c,...f}=this.props;return te(t||"div",{ref:this.handleNode,...f},e)}};var Ko={exports:{}},Lm=Ko.exports;(function(e){var t=function(){var n=String.fromCharCode,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",i={};function a(s,l){if(!i[s]){i[s]={};for(var d=0;d<s.length;d++)i[s][s.charAt(d)]=d}return i[s][l]}var u={compressToBase64:function(s){if(s==null)return"";var l=u._compress(s,6,function(d){return r.charAt(d)});switch(l.length%4){default:case 0:return l;case 1:return l+"===";case 2:return l+"==";case 3:return l+"="}},decompressFromBase64:function(s){return s==null?"":s==""?null:u._decompress(s.length,32,function(l){return a(r,s.charAt(l))})},compressToUTF16:function(s){return s==null?"":u._compress(s,15,function(l){return n(l+32)})+" "},decompressFromUTF16:function(s){return s==null?"":s==""?null:u._decompress(s.length,16384,function(l){return s.charCodeAt(l)-32})},compressToUint8Array:function(s){for(var l=u.compress(s),d=new Uint8Array(l.length*2),c=0,f=l.length;c<f;c++){var h=l.charCodeAt(c);d[c*2]=h>>>8,d[c*2+1]=h%256}return d},decompressFromUint8Array:function(s){if(s==null)return u.decompress(s);for(var l=new Array(s.length/2),d=0,c=l.length;d<c;d++)l[d]=s[d*2]*256+s[d*2+1];var f=[];return l.forEach(function(h){f.push(n(h))}),u.decompress(f.join(""))},compressToEncodedURIComponent:function(s){return s==null?"":u._compress(s,6,function(l){return o.charAt(l)})},decompressFromEncodedURIComponent:function(s){return s==null?"":s==""?null:(s=s.replace(/ /g,"+"),u._decompress(s.length,32,function(l){return a(o,s.charAt(l))}))},compress:function(s){return u._compress(s,16,function(l){return n(l)})},_compress:function(s,l,d){if(s==null)return"";var c,f,h={},p={},m="",_="",v="",y=2,T=3,M=2,x=[],b=0,C=0,B;for(B=0;B<s.length;B+=1)if(m=s.charAt(B),Object.prototype.hasOwnProperty.call(h,m)||(h[m]=T++,p[m]=!0),_=v+m,Object.prototype.hasOwnProperty.call(h,_))v=_;else{if(Object.prototype.hasOwnProperty.call(p,v)){if(v.charCodeAt(0)<256){for(c=0;c<M;c++)b=b<<1,C==l-1?(C=0,x.push(d(b)),b=0):C++;for(f=v.charCodeAt(0),c=0;c<8;c++)b=b<<1|f&1,C==l-1?(C=0,x.push(d(b)),b=0):C++,f=f>>1}else{for(f=1,c=0;c<M;c++)b=b<<1|f,C==l-1?(C=0,x.push(d(b)),b=0):C++,f=0;for(f=v.charCodeAt(0),c=0;c<16;c++)b=b<<1|f&1,C==l-1?(C=0,x.push(d(b)),b=0):C++,f=f>>1}y--,y==0&&(y=Math.pow(2,M),M++),delete p[v]}else for(f=h[v],c=0;c<M;c++)b=b<<1|f&1,C==l-1?(C=0,x.push(d(b)),b=0):C++,f=f>>1;y--,y==0&&(y=Math.pow(2,M),M++),h[_]=T++,v=String(m)}if(v!==""){if(Object.prototype.hasOwnProperty.call(p,v)){if(v.charCodeAt(0)<256){for(c=0;c<M;c++)b=b<<1,C==l-1?(C=0,x.push(d(b)),b=0):C++;for(f=v.charCodeAt(0),c=0;c<8;c++)b=b<<1|f&1,C==l-1?(C=0,x.push(d(b)),b=0):C++,f=f>>1}else{for(f=1,c=0;c<M;c++)b=b<<1|f,C==l-1?(C=0,x.push(d(b)),b=0):C++,f=0;for(f=v.charCodeAt(0),c=0;c<16;c++)b=b<<1|f&1,C==l-1?(C=0,x.push(d(b)),b=0):C++,f=f>>1}y--,y==0&&(y=Math.pow(2,M),M++),delete p[v]}else for(f=h[v],c=0;c<M;c++)b=b<<1|f&1,C==l-1?(C=0,x.push(d(b)),b=0):C++,f=f>>1;y--,y==0&&(y=Math.pow(2,M),M++)}for(f=2,c=0;c<M;c++)b=b<<1|f&1,C==l-1?(C=0,x.push(d(b)),b=0):C++,f=f>>1;for(;;)if(b=b<<1,C==l-1){x.push(d(b));break}else C++;return x.join("")},decompress:function(s){return s==null?"":s==""?null:u._decompress(s.length,32768,function(l){return s.charCodeAt(l)})},_decompress:function(s,l,d){var c=[],f,h=4,p=4,m=3,_="",v=[],y,T,M,x,b,C,B,S={val:d(0),position:l,index:1};for(y=0;y<3;y+=1)c[y]=y;for(M=0,b=Math.pow(2,2),C=1;C!=b;)x=S.val&S.position,S.position>>=1,S.position==0&&(S.position=l,S.val=d(S.index++)),M|=(x>0?1:0)*C,C<<=1;switch(f=M){case 0:for(M=0,b=Math.pow(2,8),C=1;C!=b;)x=S.val&S.position,S.position>>=1,S.position==0&&(S.position=l,S.val=d(S.index++)),M|=(x>0?1:0)*C,C<<=1;B=n(M);break;case 1:for(M=0,b=Math.pow(2,16),C=1;C!=b;)x=S.val&S.position,S.position>>=1,S.position==0&&(S.position=l,S.val=d(S.index++)),M|=(x>0?1:0)*C,C<<=1;B=n(M);break;case 2:return""}for(c[3]=B,T=B,v.push(B);;){if(S.index>s)return"";for(M=0,b=Math.pow(2,m),C=1;C!=b;)x=S.val&S.position,S.position>>=1,S.position==0&&(S.position=l,S.val=d(S.index++)),M|=(x>0?1:0)*C,C<<=1;switch(B=M){case 0:for(M=0,b=Math.pow(2,8),C=1;C!=b;)x=S.val&S.position,S.position>>=1,S.position==0&&(S.position=l,S.val=d(S.index++)),M|=(x>0?1:0)*C,C<<=1;c[p++]=n(M),B=p-1,h--;break;case 1:for(M=0,b=Math.pow(2,16),C=1;C!=b;)x=S.val&S.position,S.position>>=1,S.position==0&&(S.position=l,S.val=d(S.index++)),M|=(x>0?1:0)*C,C<<=1;c[p++]=n(M),B=p-1,h--;break;case 2:return v.join("")}if(h==0&&(h=Math.pow(2,m),m++),c[B])_=c[B];else if(B===p)_=T+T.charAt(0);else return null;v.push(_),c[p++]=T+_.charAt(0),h--,T=_,h==0&&(h=Math.pow(2,m),m++)}}};return u}();e!=null?e.exports=t:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return t})})(Ko);var Dm=Ko.exports;export{au as $,cr as A,fp as B,lf as C,sm as D,bp as E,ae as F,bc as G,lp as H,Rm as I,wm as J,fn as K,yp as L,Kp as M,it as N,gp as O,Np as P,$p as Q,up as R,Wp as S,_e as T,Qr as U,Rc as V,Ep as W,hn as X,Jp as Y,qp as Z,K as _,se as a,tm as a0,Qp as a1,rm as a2,im as a3,am as a4,$r as a5,Eh as a6,hm as a7,fm as a8,pm as a9,mm as aa,_m as ab,vm as ac,ym as ad,be as ae,bm as af,Em as ag,Sm as ah,gm as ai,Cp as aj,um as ak,lm as al,cm as am,mp as b,jp as c,Yp as d,xo as e,Ah as f,De as g,me as h,as as i,dc as j,dp as k,Dm as l,dm as m,bh as n,sp as o,ie as p,ne as q,Zp as r,ur as s,Gp as t,vp as u,Vp as v,bn as w,Pp as x,Je as y,Fu as z};
//# sourceMappingURL=vendor-f6XEe9UY.js.map