1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ad6faf24-d0fc-4ce9-94eb-18e2493caf5e",e._sentryDebugIdIdentifier="sentry-dbid-ad6faf24-d0fc-4ce9-94eb-18e2493caf5e")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9927],{54224:function(e,t,n){(function(e){"use strict";var t,r,o,i,a,s,l,u=Object.defineProperty,c=(e,t,n)=>{let r;return(r="symbol"!=typeof t?t+"":t)in e?u(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,n},p={},d=[],f=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function h(e,t){for(var n in t)e[n]=t[n];return e}function m(e){var t=e.parentNode;t&&t.removeChild(e)}function g(e,n,r){var o,i,a,s={};for(a in n)"key"==a?o=n[a]:"ref"==a?i=n[a]:s[a]=n[a];if(arguments.length>2&&(s.children=arguments.length>3?t.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===s[a]&&(s[a]=e.defaultProps[a]
vendor: 5,104 bytes, line 1
1);return y(e,s,o,i,null)}function y(e,t,n,i,a){var s={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++o:a};return null==a&&null!=r.vnode&&r.vnode(s),s}function v(){return{current:null}}function b(e){return e.children}function _(e,t){this.props=e,this.context=t}function S(e,t){if(null==t)return e.__?S(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?S(e):null}function w(e){(!e.__d&&(e.__d=!0)&&i.push(e)&&!O.__r++||s!==r.debounceRendering)&&((s=r.debounceRendering)||a)(O)}function O(){for(var e;O.__r=i.length;)e=i.sort(function(e,t){return e.__v.__b-t.__v.__b}),i=[],e.some(function(e){var t,n,r,o,i;e.__d&&(o=(r=e.__v).__e,(i=e.__P)&&(t=[],(n=h({},r)).__v=r.__v+1,D(i,r,n,e.__n,void 0!==i.ownerSVGElement,null!=r.__h?[o]:null,t,null==o?S(r):o,r.__h),T(t,r),r.__e!=o&&function e(t){var n,r;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,n=0;n<t.__k.length;n++)if(null!=(r=t.__k[n])&&null!=r.__e){t.__e=t.__c.base=r.__e;break}return e(t)}}(r)))})}function E(e,t,n,o,i,a,s,l,u,c){var f,h,g,v,_,w,O,E=o&&o.__k||d,A=E.length;for(n.__k=[],f=0;f<t.length;f++)if(null!=(v=n.__k[f]=null==(v=t[f])||"boolean"==typeof v?null:"string"==typeof v||"number"==typeof v||"bigint"==typeof v?y(null,v,null,null,v):Array.isArray(v)?y(b,{children:v},null,null,null):v.__b>0?y(v.type,v.props,v.key,null,v.__v):v)){if(v.__=n,v.__b=n.__b+1,null===(g=E[f])||g&&v.key==g.key&&v.type===g.type)E[f]=void 0;else for(h=0;h<A;h++){if((g=E[h])&&v.key==g.key&&v.type===g.type){E[h]=void 0;break}g=null}D(e,v,g=g||p,i,a,s,l,u,c),_=v.__e,(h=v.ref)&&g.ref!=h&&(O||(O=[]),g.ref&&O.push(g.ref,null,v),O.push(h,v.__c||_,v)),null!=_?(null==w&&(w=_),"function"==typeof v.type&&v.__k===g.__k?v.__d=u=function e(t,n,r){for(var o,i=t.__k,a=0;i&&a<i.length;a++)(o=i[a])&&(o.__=t,n="function"==typeof o.type?e(o,n,r):x(r,o,o,i,o.__e,n));return n}(v,u,e):u=x(e,v,g,E,_,u),"function"==typeof n.type&&(n.__d=u)):u&&g.__e==u&&u.parentNode!=e&&(u=S(g))}for(n.__e=w,f=A;f--;)null!=E[f]&&("function"==typeof n.type&&null!=E[f].__e&&E[f].__e==n.__d&&(n.__d=S(o,f+1)),function e(t,n,o){var i,a;if(r.unmount&&r.unmount(t),(i=t.ref)&&(i.current&&i.current!==t.__e||j(i,null,n)),null!=(i=t.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){r.__e(e,n)}i.base=i.__P=null}if(i=t.__k)for(a=0;a<i.length;a++)i[a]&&e(i[a],n,"function"!=typeof t.type);o||null==t.__e||m(t.__e),t.__e=t.__d=void 0}(E[f],E[f]));if(O)for(f=0;f<O.length;f++)j(O[f],O[++f],O[++f])}function A(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some(function(e){A(e,t)}):t.push(e)),t}function x(e,t,n,r,o,i){var a,s,l;if(void 0!==t.__d)a=t.__d,t.__d=void 0;else if(null==n||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),a=null;else{for(s=i,l=0;(s=s.nextSibling)&&l<r.length;l+=2)if(s==o)break e;e.insertBefore(o,i),a=i}return void 0!==a?a:o.nextSibling}function C(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||f.test(t)?n:n+"px"}function k(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||C(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||C(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?M:P,i):e.removeEventListener(t,i?M:P,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch{}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function P(e){this.l[e.type+!1](r.event?r.event(e):e)}function M(e){this.l[e.type+!0](r.event?r.event(e):e)}function D(e,n,o,i,a,s,l,u,c){var d,f,g,y,v,w,O,A,x,C,P,M=n.type;if(void 0!==n.constructor)return null;null!=o.__h&&(c=o.__h,u=n.__e=o.__e,n.__h=null,s=[u]),(d=r.__b)&&d(n);try{e:if("function"==typeof M){if(A=n.props,x=(d=M.contextType)&&i[d.__c],C=d?x?x.props.value:d.__:i,o.__c?O=(f=n.__c=o.__c).__=f.__E:("prototype"in M&&M.prototype.render?n.__c=f=new M(A,C):(n.__c=f=new _(A,C),f.constructor=M,f.render=N),x&&x.sub(f),f.props=A,f.state||(f.state={}),f.context=C,f.__n=i,g=f.__d=!0,f.__h=[]),null==f.__s&&(f.__s=f.state),null!=M.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=h({},f.__s)),h(f.__s,M.getDerivedStateFromProps(A,f.__s))),y=f.props,v=f.state,g)null==M.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==M.getDerivedStateFromProps&&A!==y&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(A,C),!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(A,f.__s,C)||n.__v===o.__v){f.props=A,f.state=f.__s,n.__v!==o.__v&&(f.__d=!1),f.__v=n,n.__e=o.__e,n.__k=o.__k,n.__k.forEac
1h(function(e){e&&(e.__=n)}),f.__h.length&&l.push(f);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(A,f.__s,C),null!=f.componentDidUpdate&&f.__h.push(function(){f.componentDidUpdate(y,v,w)})}f.context=C,f.props=A,f.state=f.__s,(d=r.__r)&&d(n),f.__d=!1,f.__v=n,f.__P=e,d=f.render(f.props,f.state,f.context),f.state=f.__s,null!=f.getChildContext&&(i=h(h({},i),f.getChildContext())),g||null==f.getSnapshotBeforeUpdate||(w=f.getSnapshotBeforeUpdate(y,v)),P=null!=d&&d.type===b&&null==d.key?d.props.children:d,E(e,Array.isArray(P)?P:[P],n,o,i,a,s,l,u,c),f.base=n.__e,n.__h=null,f.__h.length&&l.push(f),O&&(f.__E=f.__=null),f.__e=!1}else null==s&&n.__v===o.__v?(n.__k=o.__k,n.__e=o.__e):n.__e=function(e,n,r,o,i,a,s,l){var u,c,d,f=r.props,h=n.props,g=n.type,y=0;if("svg"===g&&(i=!0),null!=a){for(;y<a.length;y++)if((u=a[y])&&"setAttribute"in u==!!g&&(g?u.localName===g:3===u.nodeType)){e=u,a[y]=null;break}}if(null==e){if(null===g)return document.createTextNode(h);e=i?document.createElementNS("http://www.w3.org/2000/svg",g):document.createElement(g,h.is&&h),a=null,l=!1}if(null===g)f===h||l&&e.data===h||(e.data=h);else{if(a=a&&t.call(e.childNodes),c=(f=r.props||p).dangerouslySetInnerHTML,d=h.dangerouslySetInnerHTML,!l){if(null!=a)for(f={},y=0;y<e.attributes.length;y++)f[e.attributes[y].name]=e.attributes[y].value;(d||c)&&(d&&(c&&d.__html==c.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||k(e,i,null,n[i],r);for(i in t)o&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||k(e,i,t[i],n[i],r)}(e,h,f,i,l),d)n.__k=[];else if(E(e,Array.isArray(y=n.props.children)?y:[y],n,r,o,i&&"foreignObject"!==g,a,s,a?a[0]:r.__k&&S(r,0),l),null!=a)for(y=a.length;y--;)null!=a[y]&&m(a[y]);l||("value"in h&&void 0!==(y=h.value)&&(y!==f.value||y!==e.value||"progress"===g&&!y)&&k(e,"value",y,f.value,!1),"checked"in h&&void 0!==(y=h.checked)&&y!==e.checked&&k(e,"checked",y,f.checked,!1))}return e}(o.__e,n,o,i,a,s,l,c);(d=r.diffed)&&d(n)}catch(e){n.__v=null,(c||null!=s)&&(n.__e=u,n.__h=!!c,s[s.indexOf(u)]=null),r.__e(e,n,o)}}function T(e,t){r.__c&&r.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){r.__e(e,t.__v)}})}function j(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){r.__e(e,n)}}function N(e,t,n){return this.constructor(e,n)}function R(e,n,o){var i,a,s;r.__&&r.__(e,n),a=(i="function"==typeof o)?null:o&&o.__k||n.__k,s=[],D(n,e=(!i&&o||n).__k=g(b,null,[e]),a||p,p,void 0!==n.ownerSVGElement,!i&&o?[o]:a?null:n.firstChild?t.call(n.childNodes):null,s,!i&&o?o:a?a.__e:n.firstChild,i),T(s,e)}function L(e,n,r){var o,i,a,s=h({},e.props);for(a in n)"key"==a?o=n[a]:"ref"==a?i=n[a]:s[a]=n[a];return arguments.length>2&&(s.children=arguments.length>3?t.call(arguments,2):r),y(e.type,s,o||e.key,i||e.ref,null)}function I(e,t){var n={__c:t="__cC"+l++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(w)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}t=d.slice,r={__e:function(e,t){for(var n,r,o;t=t.__;)if((n=t.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(e)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),o=n.__d),o)return n.__E=n}catch(t){e=t}throw e}},o=0,_.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=h({},this.state),"function"==typeof e&&(e=e(h({},n),this.props)),e&&h(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),w(this))},_.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),w(this))},_.prototype.render=b,i=[],a="function"==typeof Promise?Promise.prototype.then.bind(Prom
1ise.resolve()):setTimeout,O.__r=0,l=0;var F,U,V,H=0,$=[],z=r.__b,B=r.__r,W=r.diffed,G=r.__c,Y=r.unmount;function X(e,t){r.__h&&r.__h(U,e,H||t),H=0;var n=U.__H||(U.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function q(e){return H=1,K(ec,e)}function K(e,t,n){var r=X(F++,2);return r.t=e,r.__c||(r.__=[n?n(t):ec(void 0,t),function(e){var t=r.t(r.__[0],e);r.__[0]!==t&&(r.__=[t,r.__[1]],r.__c.setState({}))}],r.__c=U),r.__}function J(e,t){var n=X(F++,3);!r.__s&&eu(n.__H,t)&&(n.__=e,n.__H=t,U.__H.__h.push(n))}function Z(e,t){var n=X(F++,4);!r.__s&&eu(n.__H,t)&&(n.__=e,n.__H=t,U.__h.push(n))}function Q(e){return H=5,et(function(){return{current:e}},[])}function ee(e,t,n){H=6,Z(function(){"function"==typeof e?e(t()):e&&(e.current=t())},null==n?n:n.concat(e))}function et(e,t){var n=X(F++,7);return eu(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function en(e,t){return H=8,et(function(){return e},t)}function er(e){var t=U.context[e.__c],n=X(F++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(U)),t.props.value):e.__}function eo(e,t){r.useDebugValue&&r.useDebugValue(t?t(e):e)}function ei(){var e;for($.sort(function(e,t){return e.__v.__b-t.__v.__b});e=$.pop();)if(e.__P)try{e.__H.__h.forEach(es),e.__H.__h.forEach(el),e.__H.__h=[]}catch(t){e.__H.__h=[],r.__e(t,e.__v)}}r.__b=function(e){U=null,z&&z(e)},r.__r=function(e){B&&B(e),F=0;var t=(U=e.__c).__H;t&&(t.__h.forEach(es),t.__h.forEach(el),t.__h=[])},r.diffed=function(e){W&&W(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==$.push(t)&&V===r.requestAnimationFrame||((V=r.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),ea&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);ea&&(t=requestAnimationFrame(n))})(ei)),U=null},r.__c=function(e,t){t.some(function(e){try{e.__h.forEach(es),e.__h=e.__h.filter(function(e){return!e.__||el(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],r.__e(n,e.__v)}}),G&&G(e,t)},r.unmount=function(e){Y&&Y(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{es(e)}catch(e){t=e}}),t&&r.__e(t,n.__v))};var ea="function"==typeof requestAnimationFrame;function es(e){var t=U,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),U=t}function el(e){var t=U;e.__c=e.__(),U=t}function eu(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function ec(e,t){return"function"==typeof t?t(e):t}function ep(e,t){for(var n in t)e[n]=t[n];return e}function ed(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function ef(e){this.props=e}function eh(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:ed(this.props,e)}function r(t){return this.shouldComponentUpdate=n,g(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(ef.prototype=new _).isPureReactComponent=!0,ef.prototype.shouldComponentUpdate=function(e,t){return ed(this.props,e)||ed(this.state,t)};var em=r.__b;r.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),em&&em(e)};var eg="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function ey(e){function t(t,n){var r=ep({},t);return delete r.ref,e(r,(n=t.ref||n)&&("object"!=typeof n||"current"in n)?n:null)}return t.$$typeof=eg,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var ev=function(e,t){return null==e?null:A(A(e).map(t))},eb={map:ev,forEach:ev,count:function(e){return e?A(e).length:0},only:function(e){var t=A(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:A},e_=r.__e;r.__e=function(e,t,n){if(e.then){for(var r,o=t;o=o.__;)if((r=o.__c)&&r.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),r.__c(e,t)}e_(e,t,n)};var eS=r.unmount;function ew(){this.__u=0,this.t=null,this.__b=null}function eO(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function eE(e){var t,n,r;function o(o){if(t||(t=e()).then(function(e){n=e.default||e},function(e){r=e}),r)throw r;if(!n)throw t;return g(n,o)}return o.displayName="Lazy",o.__f=!0,o}function eA(){this.u=null,this.o=null}r.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),eS&&eS(e)},(ew.prototype=new _).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=eO(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(s):s())};n.__R=a;var s=function(){if(!--r.__u){if(r.state.__e){var e,t=r.state.__e;r.__v.__k[0]=function e(t,n,r){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(t){return e(t,n,r)}),t.__c&&t.__c.__P===n&&(t.__e&&r.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=r)),t}(t,t.__c.__P,t.__c.__O)}for(r.setState({__e:r.__b=null});e=r.t.pop();)e.forceUpdate()}},l=!0===t.__h;r.__u++||l||r.setState({__e:r.__b=r.__v.__k[0]}),e.then(a,a)},ew.prototype.componentWillUnmount=function(){this.t=[]},ew.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]=function e(t,n,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(e){"function"==typeof e.__c&&e.__c()}),t.__c.__H=null),null!=(t=ep({},t)).__c&&(t.__c.__P===r&&(t.__c.__P=n),t.__c=null),t.__k=t.__k&&t.__k.map(function(t){return e(t,n,r)})),t}(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__e&&g(b,null,e.fallback);return o&&(o.__h=null),[g(b,null,t.__e?null:e.children),o]};var ex=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!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 eC(e){return this.getChildContext=function(){return e.context},e.children}function ek(e){var t=this,n=e.i;t.componentWillUnmount=function(){R(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),R(g(eC,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function eP(e,t){return g(ek,{__v:e,i:t})}(eA.prototype=new _).__e=function(e){var t=this,n=eO(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),ex(t,e,r)):o()};n?n(i):i()}},eA.prototype.render=function(e){this.u=null,this.o=new Map;var t=A(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},eA.prototype.componentDidUpdate=eA.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){ex(e,n,t)})};var eM="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,eD=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,eT="undefined"!=typeof document;
1function ej(e,t,n){return null==t.__k&&(t.textContent=""),R(e,t),"function"==typeof n&&n(),e?e.__c:null}function eN(e,t,n){return function e(t,n){R(t,n,e)}(e,t),"function"==typeof n&&n(),e?e.__c:null}_.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(_.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var eR=r.event;function eL(){}function eI(){return this.cancelBubble}function eF(){return this.defaultPrevented}r.event=function(e){return eR&&(e=eR(e)),e.persist=eL,e.isPropagationStopped=eI,e.isDefaultPrevented=eF,e.nativeEvent=e};var eU,eV={configurable:!0,get:function(){return this.class}},eH=r.vnode;r.vnode=function(e){var t=e.type,n=e.props,r=n;if("string"==typeof t){var o=-1===t.indexOf("-");for(var i in r={},n){var a,s=n[i];eT&&"children"===i&&"noscript"===t||"value"===i&&"defaultValue"in n&&null==s||("defaultValue"===i&&"value"in n&&null==n.value?i="value":"download"===i&&!0===s?s="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+t)&&(a=n.type,!("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(a))?i="oninput":/^onfocus$/i.test(i)?i="onfocusin":/^onblur$/i.test(i)?i="onfocusout":/^on(Ani|Tra|Tou|BeforeInp)/.test(i)?i=i.toLowerCase():o&&eD.test(i)?i=i.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===s&&(s=void 0),r[i]=s)}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=A(n.children).forEach(function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)})),"select"==t&&null!=r.defaultValue&&(r.value=A(n.children).forEach(function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value})),e.props=r,n.class!=n.className&&(eV.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",eV))}e.$$typeof=eM,eH&&eH(e)};var e$=r.__r;r.__r=function(e){e$&&e$(e),eU=e.__c};var ez={ReactCurrentDispatcher:{current:{readContext:function(e){return eU.__n[e.__c].props.value}}}};function eB(e){return g.bind(null,e)}function eW(e){return!!e&&e.$$typeof===eM}function eG(e){return eW(e)?L.apply(null,arguments):e}function eY(e){return!!e.__k&&(R(null,e),!0)}function eX(e){return e&&(e.base||1===e.nodeType&&e)||null}var eq=function(e,t){return e(t)},eK=function(e,t){return e(t)},eJ={useState:q,useReducer:K,useEffect:J,useLayoutEffect:Z,useRef:Q,useImperativeHandle:ee,useMemo:et,useCallback:en,useContext:er,useDebugValue:eo,version:"17.0.2",Children:eb,render:ej,hydrate:eN,unmountComponentAtNode:eY,createPortal:eP,createElement:g,createContext:I,createFactory:eB,cloneElement:eG,createRef:v,Fragment:b,isValidElement:eW,findDOMNode:eX,Component:_,PureComponent:ef,memo:eh,forwardRef:ey,flushSync:eK,unstable_batchedUpdates:eq,StrictMode:b,Suspense:ew,SuspenseList:eA,lazy:eE,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ez},eZ=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:eJ,version:"17.0.2",Children:eb,render:ej,hydrate:eN,unmountComponentAtNode:eY,createPortal:eP,createFactory:eB,cloneElement:eG,isValidElement:eW,findDOMNode:eX,PureComponent:ef,memo:eh,forwardRef:ey,flushSync:eK,unstable_batchedUpdates:eq,StrictMode:b,Suspense:ew,SuspenseList:eA,lazy:eE,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ez,createElement:g,createContext:I,createRef:v,Fragment:b,Component:_,useState:q,useReducer:K,useEffect:J,useLayoutEffect:Z,useRef:Q,useImperativeHandle:ee,useMemo:et,useCallback:en,useContext:er,useDebugValue:eo,useErrorBoundary:function(e){var t=X(F++,10),n=q();return t.__=e,U.componentDidCatch||(U.componentDidCatch=function(e){t.__&&t.__(e),n[1](e)}),[n[0],function(){n[1](void 0)}]}}),eQ="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function e0(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach(function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}),t}var e1={exports:{}};function e9(){}e9.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function o(){r.off(e,o),t.apply(n,arguments)}return o._=t,this.on(e,o,n)}
1,emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,o=n.length;r<o;r++)n[r].fn.apply(n[r].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),r=n[e],o=[];if(r&&t)for(var i=0,a=r.length;i<a;i++)r[i].fn!==t&&r[i].fn._!==t&&o.push(r[i]);return o.length?n[e]=o:delete n[e],this}},e1.exports=e9,e1.exports.TinyEmitter=e9;var e2=e1.exports;let e6="http://www.w3.org/2000/svg",e3=e=>{let t=e.getAttribute("class");return t?new Set(t.split(" ")):new Set},e4=(e,t)=>{let n=e3(e);n.add(t),e.setAttribute("class",Array.from(n).join(" "))},e5=(e,t)=>e3(e).has(t),e8=(e,t)=>{let n=e.selector("FragmentSelector");if(null!=n&&n.conformsTo.startsWith("http://www.w3.org/TR/media-frags")){let{value:e}=n,r=e.includes(":")?e.substring(e.indexOf("=")+1,e.indexOf(":")):"pixel",[o,i,a,s]=(e.includes(":")?e.substring(e.indexOf(":")+1):e.substring(e.indexOf("=")+1)).split(",").map(parseFloat);return"percent"===r.toLowerCase()&&(o=o*t.naturalWidth/100,i=i*t.naturalHeight/100,a=a*t.naturalWidth/100,s=s*t.naturalHeight/100),{x:o,y:i,w:a,h:s}}},e7=(e,t,n,r,o,i)=>(null==i?void 0:i.toLowerCase())==="percent"?((e,t,n,r,o)=>{let i=e/o.naturalWidth*100,a=t/o.naturalHeight*100,s=n/o.naturalWidth*100,l=r/o.naturalHeight*100;return{source:o.src,selector:{type:"FragmentSelector",conformsTo:"http://www.w3.org/TR/media-frags/",value:`xywh=percent:${i},${a},${s},${l}`}}})(e,t,n,r,o):{source:null==o?void 0:o.src,selector:{type:"FragmentSelector",conformsTo:"http://www.w3.org/TR/media-frags/",value:`xywh=pixel:${e},${t},${n},${r}`}},te=(e,t,n,r,o)=>{e.setAttribute("x",t),e.setAttribute("y",n),e.setAttribute("width",r),e.setAttribute("height",o)},tt=(e,t,n)=>{e.setAttribute("cx",t),e.setAttribute("cy",n),e.setAttribute("r",7)},tn=(e,t,n,r,o)=>{let i=document.createElementNS(e6,"path");i.setAttribute("fill-rule","evenodd");let{naturalWidth:a,naturalHeight:s}=e;return i.setAttribute("d",`M0 0 h${a} v${s} h-${a} z M${t} ${n} h${r} v${o} h-${r} z`),i},tr=(e,t,n,r,o,i)=>{let{naturalWidth:a,naturalHeight:s}=t;e.setAttribute("d",`M0 0 h${a} v${s} h-${a} z M${n} ${r} h${o} v${i} h-${o} z`)},to=(e,t,n,r)=>{let{x:o,y:i,w:a,h:s}="Annotation"===e.type||"Selection"===e.type?e8(e,t):{x:e,y:t,w:n,h:r},l=document.createElementNS(e6,"g");if(0===a&&0===s){e4(l,"a9s-point"),e4(l,"a9s-non-scaling"),l.setAttribute("transform-origin",`${o} ${i}`);let e=document.createElementNS(e6,"circle"),t=document.createElementNS(e6,"circle");t.setAttribute("class","a9s-inner"),tt(t,o,i),e.setAttribute("class","a9s-outer"),tt(e,o,i),l.appendChild(e),l.appendChild(t)}else{let e=document.createElementNS(e6,"rect"),t=document.createElementNS(e6,"rect");t.setAttribute("class","a9s-inner"),te(t,o,i,a,s),e.setAttribute("class","a9s-outer"),te(e,o,i,a,s),l.appendChild(e),l.appendChild(t)}return l},ti=e=>{let t=e.querySelector(".a9s-outer");if("rect"===t.nodeName){let e=parseFloat(t.getAttribute("x")),n=parseFloat(t.getAttribute("y"));return{x:e,y:n,w:parseFloat(t.getAttribute("width")),h:parseFloat(t.getAttribute("height"))}}return{x:parseFloat(t.getAttribute("cx")),y:parseFloat(t.getAttribute("cy")),w:0,h:0}},ta=(e,t,n,r,o)=>{let i=e.querySelector(".a9s-inner"),a=e.querySelector(".a9s-outer");"rect"===a.nodeName?(te(i,t,n,r,o),te(a,t,n,r,o)):(tt(i,t,n),tt(a,t,n))},ts=e=>{let t=0,n=e.length-1;for(let r=0;r<e.length;r++)t+=(e[n][0]+e[r][0])*(e[n][1]-e[r][1]),n=r;return Math.abs(.5*t)},tl=(e,t)=>{let n=e[0],r=e[1],o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){let a=t[e][0],s=t[e][1],l=t[i][0],u=t[i][1];s>r!=u>r&&n<(l-a)*(r-s)/(u-s)+a&&(o=!o)}return o},tu=e=>{let t=e=>{Array.from(e.attributes).forEach(t=>{t.name.startsWith("on")&&e.removeAttribute(t.name)})};return Array.from(e.getElementsByTagName("script")).reverse().forEach(e=>e.parentNode.removeChild(e)),t(e),Array.from(e.querySelectorAll("*")).forEach(t),e},tc=e=>{let t=e.selector("SvgSelector");if(t){let e=new DOMParser,{value:n}=t,r=e.parseFromString(n,"image/svg+xml"),o=r.lookupPrefix(e6),i=r.lookupNamespaceURI(null);return o||i?tu(r).firstChild:tu((e=>{let t=new XMLSerializer().serializeToString(e.documentElement).replace("<svg>",`<svg xmlns="${e6}">`);return new DOMParser().parseFromString(t,"image/svg+xml").documentElement})(r)).firstChild}},tp=e=>{let t=tc(e),n=document.createElementNS(e6,"g"),r=t.cloneNode(!0);r.setAttribute("class","a9s-inner");let o=t.cloneNode(!0);return o.setAttribute("class","a9s-outer"),n.appendChild(o),n.appendChild(r),n},td=(e,t)=>{let n=e.querySelector(".a9s-inner").cloneNode(!0);n.removeAttribute("class"),n.removeAttribute("xmlns");let r=n.outerHTML||new XMLSerializer().serializeToString(n);return r=r.replace(` xmlns="${e6}"`,""),{source:null==t?void 0:t.src,selector:{type:"SvgSelector",value:`<svg>${r}</svg>`}}},tf={FragmentSelector:to,SvgSelector:tp},th={FragmentSelector:(e,t)=>
1{let{w:n,h:r}=e8(e,t);return n*r},SvgSelector:e=>{let t=tc(e),n=t.nodeName.toLowerCase();if("polygon"===n)return ts(t.getAttribute("points").trim().split(" ").map(e=>e.split(",").map(e=>parseFloat(e.trim()))));if("circle"===n){var r,o=t;let e=o.getAttribute("r");return e*e*Math.PI}if("ellipse"===n){return(r=t).getAttribute("rx")*r.getAttribute("ry")*Math.PI}if("path"==n){var i=t;let e=(e=>{let t=e.getAttribute("d").split(/(?=M|m|L|l|H|h|V|v|Z|z)/g).map(e=>e.trim()),n=[],r=[];for(let e of t){let t=e.substring(0,1);if("z"===t.toLowerCase())n.push([...r]),r=[];else{let n=e.substring(1).split(" ").map(e=>parseFloat(e.trim())),o=t===t.toUpperCase(),i=o?n[0]:n[0]+r[r.length-1][0],a=o?n[1]:n[1]+r[r.length-1][1];r.push([i,a])}}return r.length>0&&n.push([...r]),n})(i);if(1==e.length)return ts(e[0]);{let t=t=>e.find(e=>{if(t!==e){for(let n of t)if(!tl(n,e))return!1;return!0}}),n=0;for(let r of e)t(r)?n-=ts(r):n+=ts(r);return n}}if("line"==n)return 0;throw`Unsupported SVG shape type: ${n}`}},tm=e=>{let t=e.targets[0];if(t)return Array.isArray(t.selector)?t.selector[0]:t.selector},tg=(e,t)=>th[tm(e).type](e,t);var ty={exports:{}},tv={},tb=e0(eZ),t_={exports:{}};function tS(){}function tw(){}tw.resetWarningCache=tS,t_.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=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 a.name="Invariant Violation",a}}function t(){return e}e.isRequired=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:tw,resetWarningCache:tS};return n.PropTypes=n,n}();var tO=e0(Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:function(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=function e(t){var n,r,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t)if(Array.isArray(t))for(n=0;n<t.length;n++)t[n]&&(r=e(t[n]))&&(o&&(o+=" "),o+=r);else for(n in t)t[n]&&(o&&(o+=" "),o+=n);return o}(e))&&(r&&(r+=" "),r+=t);return r}})),tE={},tA={};Object.defineProperty(tA,"__esModule",{value:!0}),tA.findInArray=function(e,t){for(var n=0,r=e.length;n<r;n++)if(t.apply(t,[e[n],n,e]))return e[n]},tA.isFunction=function(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)},tA.isNum=function(e){return"number"==typeof e&&!isNaN(e)},tA.int=function(e){return parseInt(e,10)},tA.dontSetMe=function(e,t,n){if(e[t])return Error("Invalid prop ".concat(t," passed to ").concat(n," - do not set this, set it on the child."))};var tx={};Object.defineProperty(tx,"__esModule",{value:!0}),tx.getPrefix=tk,tx.browserPrefixToKey=tP,tx.browserPrefixToStyle=function(e,t){return t?"-".concat(t.toLowerCase(),"-").concat(e):e},tx.default=void 0;var tC=["Moz","Webkit","O","ms"];function tk(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window)return"";var r=null==(e=window.document)||null==(t=e.documentElement)?void 0:t.style;if(!r||n in r)return"";for(var o=0;o<tC.length;o++)if(tP(n,tC[o])in r)return tC[o];return""}function tP(e,t){return t?"".concat(t).concat(function(e){for(var t="",n=!0,r=0;r<e.length;r++)n?(t+=e[r].toUpperCase(),n=!1):"-"===e[r]?n=!0:t+=e[r];return t}(e)):e}function tM(e){return(tM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}tx.default=tk(),Object.defineProperty(tE,"__esModule",{value:!0}),tE.matchesSelector=tI,tE.matchesSelectorAndParentsTo=function(e,t,n){var r=e;do{if(tI(r,t))return!0;if(r===n)break;r=r.parentNode}while(r);return!1},tE.addEvent=function(e,t,n,r){if(e){var o=tN({capture:!0},r);e.addEventListener?e.addEventListener(t,n,o):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n}},tE.removeEvent=function(e,t,n,r){if(e){var o=tN({capture:!0},r);e.removeEventListener?e.removeEventListener(t,n,o):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null}},tE.outerHeight=function(e){var t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,tA.int)(n.borderTopWidth),t+=(0,tA.int)(n.borderBottomWidth)},tE.outerWidth=function(e){var t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,tA.int)(n.borderLeftWidth),t+=(0,tA.int)(n.borderRightWidth)},tE.innerHeight=function(e){var t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,tA.int)(n.paddingTop),t-=(0,tA.int)(n.paddingBottom)},tE.innerWidth=function(e){var t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,tA.int)(n.paddingLeft),t-=(0,tA.int)(n.paddingRight)},tE.offsetXYFromParent=function(e,t,n){var r=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect();return{x:(e.clientX+t.scrollLeft-r.left)/n,y:(e.clientY+t.scrollTop-r.top)/n}},tE.createCSSTransform=function(e,t){var n=tF(e,t,"px");return tR({},(0,tD.browserPrefixToKey)("transform",tD.default),n)},tE.createSVGTransform=function(e,t){return tF(e,t,"")},tE.getTranslation=tF,tE.getTouch=function(e,t){return e.targetTouches&&(0,tA.findInArray)(e.targetTouches,function(e){return t===e.identifier})||e.changedTouches&&(0,tA.findInArray)(e.changedTouches,function(e){return t===e.identifier})},tE.getTouchIdentifier=function(e){return e.targetTouches&&e.targetTouches[0]?e.targetTouches[0].identifier:e.changedTouches&&e.changedTouches[0]?e.changedTouches[0].identifier:void 0},tE.addUserSelectStyles=function(e){if(e){var t=e.getElementById("react-draggable-style-el");t||((t=e.createElement("style")).type="text/css",t.id="react-draggable-style-el",t.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;} 2`,t.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;} 3`,e.getElementsByTagName("head")[0].appendChild(t)),e.body&&tU(e.body,"react-draggable-transparent-selection")}},tE.removeUserSelectStyles=function(e){if(e)try{if(e.body&&tV(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{var t=(e.defaultView||window).getSelection();t&&"Caret"!==t.type&&t.removeAllRanges()}}catch{}},tE.addClassName=tU,tE.removeClassName=tV;
3var tD=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==tM(e)&&"function"!=typeof e)return{default:e};var n=tT(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(tx);function tT(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(tT=function(e){return e?n:t})(e)}function tj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function tN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tj(Object(n),!0).forEach(function(t){tR(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tj(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function tR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tL="";function tI(e,t){return tL||(tL=(0,tA.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(t){return(0,tA.isFunction)(e[t])})),!!(0,tA.isFunction)(e[tL])&&e[tL](t)}function tF(e,t,n){var r=e.x,o=e.y,i="translate(".concat(r).concat(n,",").concat(o).concat(n,")");if(t){var a="".concat("string"==typeof t.x?t.x:t.x+n),s="".concat("string"==typeof t.y?t.y:t.y+n);i="translate(".concat(a,", ").concat(s,")")+i}return i}function tU(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)")))||(e.className+=" ".concat(t))}function tV(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(RegExp("(?:^|\\s)".concat(t,"(?!\\S)"),"g"),"")}var tH={};function t$(e){var t=e.findDOMNode();if(!t)throw Error("<DraggableCore>: Unmounted during event!");return t}Object.defineProperty(tH,"__esModule",{value:!0}),tH.getBoundPosition=function(e,t,n){if(!e.props.bounds)return[t,n];var r=e.props.bounds;r="string"==typeof r?r:{left:(i=r).left,top:i.top,right:i.right,bottom:i.bottom};var o=t$(e);if("string"==typeof r){var i,a,s=o.ownerDocument,l=s.defaultView;if(!((a="parent"===r?o.parentNode:s.querySelector(r))instanceof l.HTMLElement))throw Error('Bounds selector "'+r+'" could not find an element.');var u=l.getComputedStyle(o),c=l.getComputedStyle(a);r={left:-o.offsetLeft+(0,tA.int)(c.paddingLeft)+(0,tA.int)(u.marginLeft),top:-o.offsetTop+(0,tA.int)(c.paddingTop)+(0,tA.int)(u.marginTop),right:(0,tE.innerWidth)(a)-(0,tE.outerWidth)(o)-o.offsetLeft+(0,tA.int)(c.paddingRight)-(0,tA.int)(u.marginRight),bottom:(0,tE.innerHeight)(a)-(0,tE.outerHeight)(o)-o.offsetTop+(0,tA.int)(c.paddingBottom)-(0,tA.int)(u.marginBottom)}}return(0,tA.isNum)(r.right)&&(t=Math.min(t,r.right)),(0,tA.isNum)(r.bottom)&&(n=Math.min(n,r.bottom)),(0,tA.isNum)(r.left)&&(t=Math.max(t,r.left)),(0,tA.isNum)(r.top)&&(n=Math.max(n,r.top)),[t,n]}
3,tH.snapToGrid=function(e,t,n){return[Math.round(t/e[0])*e[0],Math.round(n/e[1])*e[1]]},tH.canDragX=function(e){return"both"===e.props.axis||"x"===e.props.axis},tH.canDragY=function(e){return"both"===e.props.axis||"y"===e.props.axis},tH.getControlPosition=function(e,t,n){var r="number"==typeof t?(0,tE.getTouch)(e,t):null;if("number"==typeof t&&!r)return null;var o=t$(n),i=n.props.offsetParent||o.offsetParent||o.ownerDocument.body;return(0,tE.offsetXYFromParent)(r||e,i,n.props.scale)},tH.createCoreData=function(e,t,n){var r=e.state,o=!(0,tA.isNum)(r.lastX),i=t$(e);return o?{node:i,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:i,deltaX:t-r.lastX,deltaY:n-r.lastY,lastX:r.lastX,lastY:r.lastY,x:t,y:n}},tH.createDraggableData=function(e,t){var n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}};var tz={},tB={};function tW(e){return(tW="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(tB,"__esModule",{value:!0}),tB.default=function(){},Object.defineProperty(tz,"__esModule",{value:!0}),tz.default=void 0;var tG=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==tW(e)&&"function"!=typeof e)return{default:e};var n=tJ(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(tb),tY=tK(t_.exports),tX=tK(tb),tq=tK(tB);function tK(e){return e&&e.__esModule?e:{default:e}}function tJ(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(tJ=function(e){return e?n:t})(e)}function tZ(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function tQ(e,t){return(tQ=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function t0(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function t1(e){return(t1=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function t9(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var t2={start:"touchstart",move:"touchmove",stop:"touchend"},t6={start:"mousedown",move:"mousemove",stop:"mouseup"},t3=t6,t4=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");o.prototype=Object.create(e&&e.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),e&&tQ(o,e);var t,n,r=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var e,n=t1(o);return e=t?Reflect.construct(n,arguments,t1(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"===tW(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return t0(e)}(this,e)});function o(){var e;if(!(this instanceof o))throw TypeError("Cannot call a class as a function");for(var t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];return t9(t0(e=r.call.apply(r,[this].concat(n))),"state",{dragging:!1,lastX:NaN,lastY:NaN,touchIdentifier:null}),t9(t0(e),"mounted",!1),t9(t0(e),"handleDragStart",function(t){if(e.props.onMouseDown(t),!e.props.allowAnyClick&&"number"==typeof t.button&&0!==t.button)return!1;var n=e.findDOMNode();if(!n||!n.ownerDocument||!n.ownerDocument.body)throw Error("<DraggableCore> not mounted on DragStart!");var r=n.ownerDocument;if(!(e.props.disabled||!(t.target instanceof r.defaultView.Node)||e.props.handle&&!(0,tE.matchesSelectorAndParentsTo)(t.target,e.props.handle,n)||e.props.cancel&&(0,tE.matchesSelectorAndParentsTo)(t.target,e.props.cancel,n))){"touchstart"===t.type&&t.preventDefault();var o=(0,tE.getTouchIdentifier)(t);e.setState({touchIdentifier:o});var i=(0,tH.getControlPosition)(t,o,t0(e));if(null!=i){var a=i.x,s=i.y,l=(0,tH.createCoreData)(t0(e),a,s);(0,tq.default)("DraggableCore: handleDragStart: %j",l),(0,tq.default)("calling",e.props.onStart),!1===e.props.onStart(t,l)||!1===e.mounted||(e.props.enableUserSelectHack&&(0,tE.addUserSelectStyles)(r),e.setState({dragging:!0,lastX:a,lastY:s}),(0,tE.addEvent)(r,t3.move,e.handleDrag),(0,tE.addEvent)(r,t3.stop,e.handleDragStop))}}}),t9(t0(e),"handleDrag",function(t){var n=(0,tH.getControlPosition)(t,e.state.touchIdentifier,t0(e));if(null!=n){var r=n.x,o=n.y;if(Array.isArray(e.props.grid)){var i,a=r-e.state.lastX,s=o-e.state.lastY,l=function(e){if(Array.isArray(e))return e}
3(i=(0,tH.snapToGrid)(e.props.grid,a,s))||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(i,2)||function(e,t){if(e){if("string"==typeof e)return tZ(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tZ(e,t)}}(i,2)||function(){throw TypeError(`Invalid attempt to destructure non-iterable instance. 4In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}();if(a=l[0],s=l[1],!a&&!s)return;r=e.state.lastX+a,o=e.state.lastY+s}var u=(0,tH.createCoreData)(t0(e),r,o);if((0,tq.default)("DraggableCore: handleDrag: %j",u),!1===e.props.onDrag(t,u)||!1===e.mounted){try{e.handleDragStop(new MouseEvent("mouseup"))}catch{var c=document.createEvent("MouseEvents");c.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),e.handleDragStop(c)}return}e.setState({lastX:r,lastY:o})}}),t9(t0(e),"handleDragStop",function(t){if(e.state.dragging){var n=(0,tH.getControlPosition)(t,e.state.touchIdentifier,t0(e));if(null!=n){var r=n.x,o=n.y,i=(0,tH.createCoreData)(t0(e),r,o);if(!1===e.props.onStop(t,i)||!1===e.mounted)return!1;var a=e.findDOMNode();a&&e.props.enableUserSelectHack&&(0,tE.removeUserSelectStyles)(a.ownerDocument),(0,tq.default)("DraggableCore: handleDragStop: %j",i),e.setState({dragging:!1,lastX:NaN,lastY:NaN}),a&&((0,tq.default)("DraggableCore: Removing handlers"),(0,tE.removeEvent)(a.ownerDocument,t3.move,e.handleDrag),(0,tE.removeEvent)(a.ownerDocument,t3.stop,e.handleDragStop))}}}),t9(t0(e),"onMouseDown",function(t){return t3=t6,e.handleDragStart(t)}),t9(t0(e),"onMouseUp",function(t){return t3=t6,e.handleDragStop(t)}),t9(t0(e),"onTouchStart",function(t){return t3=t2,e.handleDragStart(t)}),t9(t0(e),"onTouchEnd",function(t){return t3=t2,e.handleDragStop(t)}),e}return n=[{key:"componentDidMount",value:function(){this.mounted=!0;var e=this.findDOMNode();e&&(0,tE.addEvent)(e,t2.start,this.onTouchStart,{passive:!1})}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var e=this.findDOMNode();if(e){var t=e.ownerDocument;(0,tE.removeEvent)(t,t6.move,this.handleDrag),(0,tE.removeEvent)(t,t2.move,this.handleDrag),(0,tE.removeEvent)(t,t6.stop,this.handleDragStop),(0,tE.removeEvent)(t,t2.stop,this.handleDragStop),(0,tE.removeEvent)(e,t2.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,tE.removeUserSelectStyles)(t)}}},{key:"findDOMNode",value:function(){var e,t,n;return null!=(e=null==(t=this.props)||null==(n=t.nodeRef)?void 0:n.current)?e:tX.default.findDOMNode(this)}},{key:"render",value:function(){return tG.cloneElement(tG.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(o.prototype,n),o}(tG.Component);tz.default=t4,t9(t4,"displayName","DraggableCore"),t9(t4,"propTypes",{allowAnyClick:tY.default.bool,disabled:tY.default.bool,enableUserSelectHack:tY.default.bool,offsetParent:function(e,t){if(e[t]&&1!==e[t].nodeType)throw Error("Draggable's offsetParent must be a DOM Node.")},grid:tY.default.arrayOf(tY.default.number),handle:tY.default.string,cancel:tY.default.string,nodeRef:tY.default.object,onStart:tY.default.func,onDrag:tY.default.func,onStop:tY.default.func,onMouseDown:tY.default.func,scale:tY.default.number,className:tA.dontSetMe,style:tA.dontSetMe,transform:tA.dontSetMe}),t9(t4,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),function(e){function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
4Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return a.default}}),e.default=void 0;var n=function(e,n){if(e&&e.__esModule)return e;if(null===e||"object"!==t(e)&&"function"!=typeof e)return{default:e};var r=c(n);if(r&&r.has(e))return r.get(e);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(o,a,s):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o}(tb),r=u(t_.exports),o=u(tb),i=u(tO),a=u(tz),s=u(tB),l=["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"];function u(e){return e&&e.__esModule?e:{default:e}}function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach(function(t){b(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");_.prototype=Object.create(e&&e.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),e&&g(_,e);var r,u,c,d=(r=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var e,n=v(_);return e=r?Reflect.construct(n,arguments,v(this).constructor):n.apply(this,arguments),function(e,n){if(n&&("object"===t(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return y(e)}(this,e)});function _(e){var t;return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,_),b(y(t=d.call(this,e)),"onDragStart",function(e,n){if((0,s.default)("Draggable: onDragStart: %j",n),!1===t.props.onStart(e,(0,tH.createDraggableData)(y(t),n)))return!1;t.setState({dragging:!0,dragged:!0})}),b(y(t),"onDrag",function(e,n){if(!t.state.dragging)return!1;(0,s.default)("Draggable: onDrag: %j",n);var r=(0,tH.createDraggableData)(y(t),n),o={x:r.x,y:r.y};if(t.props.bounds){var i,a=o.x,l=o.y;o.x+=t.state.slackX,o.y+=t.state.slackY;var u=function(e){if(Array.isArray(e))return e}(i=(0,tH.getBoundPosition)(y(t),o.x,o.y))||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(i,2)||function(e,t){if(e){if("string"==typeof e)return h(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h(e,t)}}
4(i,2)||function(){throw TypeError(`Invalid attempt to destructure non-iterable instance. 5In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}(),c=u[0],p=u[1];o.x=c,o.y=p,o.slackX=t.state.slackX+(a-o.x),o.slackY=t.state.slackY+(l-o.y),r.x=o.x,r.y=o.y,r.deltaX=o.x-t.state.x,r.deltaY=o.y-t.state.y}if(!1===t.props.onDrag(e,r))return!1;t.setState(o)}),b(y(t),"onDragStop",function(e,n){if(!t.state.dragging||!1===t.props.onStop(e,(0,tH.createDraggableData)(y(t),n)))return!1;(0,s.default)("Draggable: onDragStop: %j",n);var r={dragging:!1,slackX:0,slackY:0};if(t.props.position){var o=t.props.position,i=o.x,a=o.y;r.x=i,r.y=a}t.setState(r)}),t.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:f({},e.position),slackX:0,slackY:0,isElementSVG:!1},e.position&&!(e.onDrag||e.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element."),t}return u=[{key:"componentDidMount",value:function(){void 0!==window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}},{key:"componentWillUnmount",value:function(){this.setState({dragging:!1})}},{key:"findDOMNode",value:function(){var e,t,n;return null!=(e=null==(t=this.props)||null==(n=t.nodeRef)?void 0:n.current)?e:o.default.findDOMNode(this)}},{key:"render",value:function(){var e,t=this.props;t.axis,t.bounds;var r=t.children,o=t.defaultPosition,s=t.defaultClassName,u=t.defaultClassNameDragging,c=t.defaultClassNameDragged,d=t.position,h=t.positionOffset;t.scale;var m=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,l),g={},y=null,v=!d||this.state.dragging,_=d||o,S={x:(0,tH.canDragX)(this)&&v?this.state.x:_.x,y:(0,tH.canDragY)(this)&&v?this.state.y:_.y};this.state.isElementSVG?y=(0,tE.createSVGTransform)(S,h):g=(0,tE.createCSSTransform)(S,h);var w=(0,i.default)(r.props.className||"",s,(b(e={},u,this.state.dragging),b(e,c,this.state.dragged),e));return n.createElement(a.default,p({},m,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),n.cloneElement(n.Children.only(r),{className:w,style:f(f({},r.props.style),g),transform:y}))}}],c=[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.position,r=t.prevPropsPosition;return n&&(!r||n.x!==r.x||n.y!==r.y)?((0,s.default)("Draggable: getDerivedStateFromProps %j",{position:n,prevPropsPosition:r}),{x:n.x,y:n.y,prevPropsPosition:f({},n)}):null}}],u&&m(_.prototype,u),c&&m(_,c),_}(n.Component);e.default=_,b(_,"displayName","Draggable"),b(_,"propTypes",f(f({},a.default.propTypes),{},{axis:r.default.oneOf(["both","x","y","none"]),bounds:r.default.oneOfType([r.default.shape({left:r.default.number,right:r.default.number,top:r.default.number,bottom:r.default.number}
5),r.default.string,r.default.oneOf([!1])]),defaultClassName:r.default.string,defaultClassNameDragging:r.default.string,defaultClassNameDragged:r.default.string,defaultPosition:r.default.shape({x:r.default.number,y:r.default.number}),positionOffset:r.default.shape({x:r.default.oneOfType([r.default.number,r.default.string]),y:r.default.oneOfType([r.default.number,r.default.string])}),position:r.default.shape({x:r.default.number,y:r.default.number}),className:tA.dontSetMe,style:tA.dontSetMe,transform:tA.dontSetMe})),b(_,"defaultProps",f(f({},a.default.defaultProps),{},{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}))}(tv);var t5=tv.default,t8=tv.DraggableCore;ty.exports=t5,ty.exports.default=t5,ty.exports.DraggableCore=t8;var t7=ty.exports,ne=["second","minute","hour","day","week","month","year"],nt=["ç§","åé","å°æ¶","天","å¨","个æ","å¹´"],nn={},nr=function(e,t){nn[e]=t},no=function(e){return nn[e]||nn.en_US},ni=[60,60,24,7,365/7/12,12];function na(e){return e instanceof Date?e:new Date(!isNaN(e)||/^\d+$/.test(e)?parseInt(e):e=(e||"").trim().replace(/\.\d+/,"").replace(/-/,"/").replace(/-/,"/").replace(/(\d)T(\d)/,"$1 $2").replace(/Z/," UTC").replace(/([+-]\d\d):?(\d\d)/," $1$2"))}function ns(e,t){var n=+(e<0);e=Math.abs(e);for(var r=e,o=0;e>=ni[o]&&o<ni.length;o++)e/=ni[o];return o*=2,(e=Math.floor(e))>(0===o?9:1)&&(o+=1),t(e,o,r)[n].replace("%s",e.toString())}function nl(e,t){return((t?na(t):new Date)-na(e))/1e3}var nu="timeago-id";function nc(e){return parseInt(e.getAttribute(nu))}var np={},nd=function(e){clearTimeout(e),delete np[e]};function nf(e){e?nd(nc(e)):Object.keys(np).forEach(nd)}nr("en_US",function(e,t){if(0===t)return["just now","right now"];var n=ne[Math.floor(t/2)];return e>1&&(n+="s"),[e+" "+n+" ago","in "+e+" "+n]}),nr("zh_CN",function(e,t){if(0===t)return["åå","çå»å"];var n=nt[~~(t/2)];return[e+" "+n+"å",e+" "+n+"å"]});var nh,nm,ng=globalThis&&globalThis.__extends||(nh=function(e,t){return(nh=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}nh(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),ny=globalThis&&globalThis.__assign||function(){return(ny=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},nv=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n},nb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.dom=null,t}return ng(t,e),t.prototype.componentDidMount=function(){this.renderTimeAgo()},t.prototype.componentDidUpdate=function(){this.renderTimeAgo()},t.prototype.renderTimeAgo=function(){var e,t=this.props,n=t.live,r=t.datetime,o=t.locale,i=t.opts;nf(this.dom),!1!==n&&(this.dom.setAttribute("datetime",""+(r instanceof Date?r.getTime():r)),e=this.dom,(e.length?e:[e]).forEach(function(e){!function e(t,n,r,o){nd(nc(t));var i=o.relativeDate,a=o.minInterval,s=nl(n,i);t.innerText=ns(s,r);var l=setTimeout(function(){e(t,n,r,o)},Math.min(1e3*Math.max(function(e){for(var t=1,n=0,r=Math.abs(e);e>=ni[n]&&n<ni.length;n++)e/=ni[n],t*=ni[n];return r%=t,Math.ceil(r=r?t-r:t)}(s),a||1),0x7fffffff));np[l]=0,t.setAttribute(nu,l)}(e,e.getAttribute("datetime"),no(o),i||{})}))},t.prototype.componentWillUnmount=function(){nf(this.dom)},t.prototype.render=function(){var e=this,t=this.props,n=t.datetime;t.live;var r=t.locale,o=t.opts,i=nv(t,["datetime","live","locale","opts"]);return g("time",ny({ref:function(t){e.dom=t}},i),ns(nl(n,o&&o.relativeDate),no(r)))},t.defaultProps={live:!0,className:""},t}(ef),n_=Object.prototype.toString,nS=function(e){var t=n_.call(e),n="[object Arguments]"===t;return n||(n="[object Array]"!==t&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===n_.call(e.callee)),n};if(!Object.keys){var nw=Object.prototype.hasOwnProperty,nO=Object.prototype.toString,nE=Object.prototype.propertyIsEnumerable,nA=!nE.call({toString:null},"toString"),nx=nE.call(function(){}
5,"prototype"),nC=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],nk=function(e){var t=e.constructor;return t&&t.prototype===e},nP={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},nM=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!nP["$"+e]&&nw.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{nk(window[e])}catch{return!0}}catch{return!0}return!1}(),nD=function(e){if("undefined"==typeof window||!nM)return nk(e);try{return nk(e)}catch{return!1}};nm=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===nO.call(e),r=nS(e),o=t&&"[object String]"===nO.call(e),i=[];if(!t&&!n&&!r)throw TypeError("Object.keys called on a non-object");var a=nx&&n;if(o&&e.length>0&&!nw.call(e,0))for(var s=0;s<e.length;++s)i.push(String(s));if(r&&e.length>0)for(var l=0;l<e.length;++l)i.push(String(l));else for(var u in e)!(a&&"prototype"===u)&&nw.call(e,u)&&i.push(String(u));if(nA)for(var c=nD(e),p=0;p<nC.length;++p)!(c&&"constructor"===nC[p])&&nw.call(e,nC[p])&&i.push(nC[p]);return i}}var nT=nm,nj=Array.prototype.slice,nN=Object.keys,nR=nN?function(e){return nN(e)}:nT,nL=Object.keys;nR.shim=function(){return Object.keys?function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2)||(Object.keys=function(e){return nS(e)?nL(nj.call(e)):nL(e)}):Object.keys=nR,Object.keys||nR};var nI="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),nF=Object.prototype.toString,nU=Array.prototype.concat,nV=Object.defineProperty,nH=nV&&function(){var e={};try{for(var t in nV(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch{return!1}}(),n$=function(e,t,n,r){t in e&&("function"!=typeof r||"[object Function]"!==nF.call(r)||!r())||(nH?nV(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0}):e[t]=n)},nz=function(e,t){var n=arguments.length>2?arguments[2]:{},r=nR(t);nI&&(r=nU.call(r,Object.getOwnPropertySymbols(t)));for(var o=0;o<r.length;o+=1)n$(e,r[o],t[r[o]],n[r[o]])};nz.supportsDescriptors=!!nH;var nB,nW={exports:{}},nG=Array.prototype.slice,nY=Object.prototype.toString,nX=Function.prototype.bind||function(e){var t=this;if("function"!=typeof t||"[object Function]"!==nY.call(t))throw TypeError("Function.prototype.bind called on incompatible "+t);for(var n,r=nG.call(arguments,1),o=Math.max(0,t.length-r.length),i=[],a=0;a<o;a++)i.push("$"+a);if(n=Function("binder","return function ("+i.join(",")+"){ return binder.apply(this,arguments); }")(function(){if(!(this instanceof n))return t.apply(e,r.concat(nG.call(arguments)));var o=t.apply(this,r.concat(nG.call(arguments)));return Object(o)===o?o:this}),t.prototype){var s=function(){};s.prototype=t.prototype,n.prototype=new s,s.prototype=null}return n},nq=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0},nK="undefined"!=typeof Symbol&&Symbol,nJ=function(){return"function"==typeof nK&&"function"==typeof Symbol&&"symbol"==typeof nK("foo")&&"symbol"==typeof Symbol("bar")&&nq()},nZ=nX.call(Function.call,Object.prototype.hasOwnProperty),nQ=SyntaxError,n0=Function,n1=TypeError,n9=function(e){try{return n0('"use strict"; return ('+e+").constructor;")()}catch{}},n2=Object.getOwnPropertyDescriptor;if(n2)try{n2({},"")}catch{n2=null}var n6=function(){throw new n1},n3=n2?function(){try{return arguments.callee,n6}catch{try{return n2(arguments,"callee").get}catch{return n6}}}():n6,n4=nJ(),n5=Object.getPrototypeOf||function(e){return e.__proto__},n8={},n7="undefined"==typeof Uint8Array?nB:n5(Uint8Array),re={"%AggregateError%":"undefined"==typeof AggregateError?nB:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?nB:ArrayBuffer,"%ArrayIteratorPrototype%":n4?n5([][Symbol.iterator]()):nB,"%AsyncFromSyncIteratorPrototype%":nB,"%AsyncFunction%":n8,"%AsyncGenerator%":n8,"%AsyncGeneratorFunction%":n8,"%AsyncIteratorPrototype%":n8,"%Atomics%":"undefined"==typeof Atomics?nB:Atomics,"%BigInt%":"undefined"==typeof BigInt?nB:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?nB:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?nB:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?nB:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?nB:FinalizationRegistry,"%Function%":n0,"%GeneratorFunction%":n8,"%Int8Array%":"undefined"==typeof Int8Array?nB:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?nB:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?nB:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
5IteratorPrototype%":n4?n5(n5([][Symbol.iterator]())):nB,"%JSON%":"object"==typeof JSON?JSON:nB,"%Map%":"undefined"==typeof Map?nB:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&n4?n5(new Map()[Symbol.iterator]()):nB,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?nB:Promise,"%Proxy%":"undefined"==typeof Proxy?nB:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?nB:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?nB:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&n4?n5(new Set()[Symbol.iterator]()):nB,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?nB:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":n4?n5(""[Symbol.iterator]()):nB,"%Symbol%":n4?Symbol:nB,"%SyntaxError%":nQ,"%ThrowTypeError%":n3,"%TypedArray%":n7,"%TypeError%":n1,"%Uint8Array%":"undefined"==typeof Uint8Array?nB:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?nB:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?nB:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?nB:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?nB:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?nB:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?nB:WeakSet},rt=function e(t){var n;if("%AsyncFunction%"===t)n=n9("async function () {}");else if("%GeneratorFunction%"===t)n=n9("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=n9("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&(n=n5(o.prototype))}return re[t]=n,n},rn={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},rr=nX.call(Function.call,Array.prototype.concat),ro=nX.call(Function.apply,Array.prototype.splice),ri=nX.call(Function.call,String.prototype.replace),ra=nX.call(Function.call,String.prototype.slice),rs=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,rl=/\\(\\)?/g,ru=function(e){var t=ra(e,0,1),n=ra(e,-1);if("%"===t&&"%"!==n)throw new nQ("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new nQ("invalid intrinsic syntax, expected opening `%`");var r=[];return ri(e,rs,function(e,t,n,o){r[r.length]=n?ri(o,rl,"$1"):t||e}),r},rc=function(e,t){var n,r=e;if(nZ(rn,r)&&(r="%"+(n=rn[r])[0]+"%"),nZ(re,r)){var o=re[r];if(o===n8&&(o=rt(r)),void 0===o&&!t)throw new n1("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new nQ("intrinsic "+e+" does not exist!")},rp=function(e,t){if("string"!=typeof e||0===e.length)throw new n1("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new n1('"allowMissing" argument must be a boolean');var n=ru(e),r=n.length>0?n[0]:"",o=rc("%"+r+"%",t),i=o.name,a=o.value,s=!1,l=o.alias;l&&(r=l[0],ro(n,rr([0,1],l)));for(var u=1,c=!0;u<n.length;u+=1){var p=n[u],d=ra(p,0,1),f=ra(p,-1);if(('"'===d||"'"===d||"`"===d||'"'===f||"'"===f||"`"===f)&&d!==f)throw new nQ("property names with quotes must have matching quotes");if("constructor"!==p&&c||(s=!0),r+="."+p,nZ(re,i="%"+r+"%"))a=re[i];
5else if(null!=a){if(!(p in a)){if(!t)throw new n1("base intrinsic for "+e+" exists, but the property is not available.");return}if(n2&&u+1>=n.length){var h=n2(a,p);a=(c=!!h)&&"get"in h&&!("originalValue"in h.get)?h.get:a[p]}else c=nZ(a,p),a=a[p];c&&!s&&(re[i]=a)}}return a};!function(e){var t=rp("%Function.prototype.apply%"),n=rp("%Function.prototype.call%"),r=rp("%Reflect.apply%",!0)||nX.call(n,t),o=rp("%Object.getOwnPropertyDescriptor%",!0),i=rp("%Object.defineProperty%",!0),a=rp("%Math.max%");if(i)try{i({},"a",{value:1})}catch{i=null}e.exports=function(e){var t=r(nX,n,arguments);return o&&i&&o(t,"length").configurable&&i(t,"length",{value:1+a(0,e.length-(arguments.length-1))}),t};var s=function(){return r(nX,t,arguments)};i?i(e.exports,"apply",{value:s}):e.exports.apply=s}(nW);var rd=nW.exports,rf=rd(rp("String.prototype.indexOf")),rh=function(e,t){var n=rp(e,!!t);return"function"==typeof n&&rf(e,".prototype.")>-1?rd(n):n},rm=rp("%TypeError%"),rg=function(e,t){if(null==e)throw new rm(t||"Cannot call method on "+e);return e},ry=rp("%Array%"),rv=!ry.isArray&&rh("Object.prototype.toString"),rb=ry.isArray||function(e){return"[object Array]"===rv(e)},r_=rp("%TypeError%"),rS=rp("%Reflect.apply%",!0)||rh("%Function.prototype.apply%"),rw=e0(Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:{}})),rO="function"==typeof Map&&Map.prototype,rE=Object.getOwnPropertyDescriptor&&rO?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,rA=rO&&rE&&"function"==typeof rE.get?rE.get:null,rx=rO&&Map.prototype.forEach,rC="function"==typeof Set&&Set.prototype,rk=Object.getOwnPropertyDescriptor&&rC?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,rP=rC&&rk&&"function"==typeof rk.get?rk.get:null,rM=rC&&Set.prototype.forEach,rD="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,rT="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,rj="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,rN=Boolean.prototype.valueOf,rR=Object.prototype.toString,rL=Function.prototype.toString,rI=String.prototype.match,rF=String.prototype.slice,rU=String.prototype.replace,rV=String.prototype.toUpperCase,rH=String.prototype.toLowerCase,r$=RegExp.prototype.test,rz=Array.prototype.concat,rB=Array.prototype.join,rW=Array.prototype.slice,rG=Math.floor,rY="function"==typeof BigInt?BigInt.prototype.valueOf:null,rX=Object.getOwnPropertySymbols,rq="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,rK="function"==typeof Symbol&&"object"==typeof Symbol.iterator,rJ="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===rK?"object":"symbol")?Symbol.toStringTag:null,rZ=Object.prototype.propertyIsEnumerable,rQ=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function r0(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||r$.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-rG(-e):rG(e);if(r!==e){var o=String(r),i=rF.call(t,o.length+1);return rU.call(o,n,"$&_")+"."+rU.call(rU.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return rU.call(t,n,"$&_")}var r1=rw.custom,r9=r1&&r3(r1)?r1:null;function r2(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function r6(e){return"[object Array]"===r8(e)&&(!rJ||!("object"==typeof e&&rJ in e))}function r3(e){if(rK)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!rq)return!1;try{return rq.call(e),!0}catch{}return!1}var r4=Object.prototype.hasOwnProperty||function(e){return e in this};function r5(e,t){return r4.call(e,t)}function r8(e){return rR.call(e)}function r7(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return -1}function oe(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+rV.call(t.toString(16))}function ot(e){return"Object("+e+")"}function on(e){return e+" { ? }"}function or(e,t,n,r){return e+" ("+t+") {"+(r?oo(n,r):rB.call(n,", "))+"}"}function oo(e,t){if(0===e.length)return"";var n=` 6`+t.prev+t.base;return n+rB.call(e,","+n)+` 7`+t.prev}function oi(e,t){var n=r6(e),r=[];if(n){r.length=e.length;for(var o=0;o<e.length;o++)r[o]=r5(e,o)?t(e[o],e):""}var i,a="function"==typeof rX?rX(e):[];if(rK){i={};for(var s=0;s<a.length;s++)i["$"+a[s]]=a[s]}for(var l in e)!r5(e,l)||n&&String(Number(l))===l&&l<e.length||rK&&i["$"+l]instanceof Symbol||(r$.call(/[^\w$]/,l)?r.push(t(l,e)+": "+t(e[l],e)):r.push(l+": "+t(e[l],e)));if("function"==typeof rX)for(var u=0;u<a.length;u++)rZ.call(e,a[u])&&r.push("["+t(a[u])+"]: "+t(e[a[u]],e));return r}var oa,os,ol=function(e){return"string"==typeof e||"symbol"==typeof e},ou=function(e){return"symbol"==typeof e?"Symbol":"bigint"==typeof e?"BigInt":null===e?"Null":void 0===e?"Undefined":"function"==typeof e||"object"==typeof e?"Object":"number"==typeof e?"Number":"boolean"==typeof e?"Boolean":"string"==typeof e?"String":void 0},oc=rp("%TypeError%"),op=function e(t,n,r,o){var i,a,s,l,u,c,p=n||{};if(r5(p,"quoteStyle")&&"single"!==p.quoteStyle&&"double"!==p.quoteStyle)throw TypeError('option "quoteStyle" must be "single" or "double"');if(r5(p,"maxStringLength")&&("number"==typeof p.maxStringLength?p.maxStringLength<0&&p.maxStringLength!==1/0:null!==p.maxStringLength))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var d=!r5(p,"customInspect")||p.customInspect;if("boolean"!=typeof d&&"symbol"!==d)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
7if(r5(p,"indent")&&null!==p.indent&&" "!==p.indent&&!(parseInt(p.indent,10)===p.indent&&p.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(r5(p,"numericSeparator")&&"boolean"!=typeof p.numericSeparator)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var f=p.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return function e(t,n){if(t.length>n.maxStringLength){var r=t.length-n.maxStringLength;return e(rF.call(t,0,n.maxStringLength),n)+("... "+r)+" more character"+(r>1?"s":"")}return r2(rU.call(rU.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,oe),"single",n)}(t,p);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var h=String(t);return f?r0(t,h):h}if("bigint"==typeof t){var m=String(t)+"n";return f?r0(t,m):m}var g=void 0===p.depth?5:p.depth;if(void 0===r&&(r=0),r>=g&&g>0&&"object"==typeof t)return r6(t)?"[Array]":"[Object]";var y=function(e,t){var n;if(" "===e.indent)n=" ";else{if("number"!=typeof e.indent||!(e.indent>0))return null;n=rB.call(Array(e.indent+1)," ")}return{base:n,prev:rB.call(Array(t+1),n)}}(p,r);if(void 0===o)o=[];else if(r7(o,t)>=0)return"[Circular]";function v(t,n,i){if(n&&(o=rW.call(o)).push(n),i){var a={depth:p.depth};return r5(p,"quoteStyle")&&(a.quoteStyle=p.quoteStyle),e(t,a,r+1,o)}return e(t,p,r+1,o)}if("function"==typeof t){var b=function(e){if(e.name)return e.name;var t=rI.call(rL.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),_=oi(t,v);return"[Function"+(b?": "+b:" (anonymous)")+"]"+(_.length>0?" { "+rB.call(_,", ")+" }":"")}if(r3(t)){var S=rK?rU.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):rq.call(t);return"object"!=typeof t||rK?S:ot(S)}if((w=t)&&"object"==typeof w&&("undefined"!=typeof HTMLElement&&w instanceof HTMLElement||"string"==typeof w.nodeName&&"function"==typeof w.getAttribute)){for(var w,O,E="<"+rH.call(String(t.nodeName)),A=t.attributes||[],x=0;x<A.length;x++){E+=" "+A[x].name+"="+r2((O=A[x].value,rU.call(String(O),/"/g,""")),"double",p)}return E+=">",t.childNodes&&t.childNodes.length&&(E+="..."),E+="</"+rH.call(String(t.nodeName))+">"}if(r6(t)){if(0===t.length)return"[]";var C=oi(t,v);return y&&!function(e){for(var t=0;t<e.length;t++)if(r7(e[t],` 8`)>=0)return!1;return!0}(C)?"["+oo(C,y)+"]":"[ "+rB.call(C,", ")+" ]"}if("[object Error]"===r8(i=t)&&(!rJ||!("object"==typeof i&&rJ in i))){var k=oi(t,v);return"cause"in t&&!rZ.call(t,"cause")?"{ ["+String(t)+"] "+rB.call(rz.call("[cause]: "+v(t.cause),k),", ")+" }":0===k.length?"["+String(t)+"]":"{ ["+String(t)+"] "+rB.call(k,", ")+" }"}if("object"==typeof t&&d){if(r9&&"function"==typeof t[r9])return t[r9]();if("symbol"!==d&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!rA||!e||"object"!=typeof e)return!1;try{rA.call(e);try{rP.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}(t)){var P=[];return rx.call(t,function(e,n){P.push(v(n,t,!0)+" => "+v(e,t))}),or("Map",rA.call(t),P,y)}if(function(e){if(!rP||!e||"object"!=typeof e)return!1;try{rP.call(e);try{rA.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}(t)){var M=[];return rM.call(t,function(e){M.push(v(e,t))}),or("Set",rP.call(t),M,y)}if(function(e){if(!rD||!e||"object"!=typeof e)return!1;try{rD.call(e,rD);try{rT.call(e,rT)}catch{return!0}return e instanceof WeakMap}catch{}return!1}(t))return on("WeakMap");if(function(e){if(!rT||!e||"object"!=typeof e)return!1;try{rT.call(e,rT);try{rD.call(e,rD)}catch{return!0}return e instanceof WeakSet}catch{}return!1}(t))return on("WeakSet");if(function(e){if(!rj||!e||"object"!=typeof e)return!1;try{return rj.call(e),!0}catch{}return!1}(t))return on("WeakRef");if("[object Number]"===r8(a=t)&&(!rJ||!("object"==typeof a&&rJ in a)))return ot(v(Number(t)));if(function(e){if(!e||"object"!=typeof e||!rY)return!1;try{return rY.call(e),!0}catch{}return!1}(t))return ot(v(rY.call(t)));if("[object Boolean]"===r8(s=t)&&(!rJ||!("object"==typeof s&&rJ in s)))return ot(rN.call(t));if("[object String]"===r8(l=t)&&(!rJ||!("object"==typeof l&&rJ in l)))return ot(v(String(t)));if(!("[object Date]"===r8(u=t)&&(!rJ||!("object"==typeof u&&rJ in u)))&&!("[object RegExp]"===r8(c=t)&&(!rJ||!("object"==typeof c&&rJ in c)
8))){var D=oi(t,v),T=rQ?rQ(t)===Object.prototype:t instanceof Object||t.constructor===Object,j=t instanceof Object?"":"null prototype",N=!T&&rJ&&Object(t)===t&&rJ in t?rF.call(r8(t),8,-1):j?"Object":"",R=(T||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(N||j?"["+rB.call(rz.call([],N||[],j||[]),": ")+"] ":"");return 0===D.length?R+"{}":y?R+"{"+oo(D,y)+"}":R+"{ "+rB.call(D,", ")+" }"}return String(t)},od=function(e,t){if("Object"!==ou(e))throw new oc("Assertion failed: Type(O) is not Object");if(!ol(t))throw new oc("Assertion failed: IsPropertyKey(P) is not true, got "+op(t));return e[t]},of=rp("%TypeError%"),oh=Function.prototype.toString,om="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof om&&"function"==typeof Object.defineProperty)try{oa=Object.defineProperty({},"length",{get:function(){throw os}}),os={},om(function(){throw 42},null,oa)}catch(e){e!==os&&(om=null)}else om=null;var og=/^\s*class\b/,oy=function(e){try{var t=oh.call(e);return og.test(t)}catch{return!1}},ov=function(e){try{return!oy(e)&&(oh.call(e),!0)}catch{return!1}},ob=Object.prototype.toString,o_="function"==typeof Symbol&&!!Symbol.toStringTag,oS="object"==typeof document&&void 0===document.all&&void 0!==document.all?document.all:{},ow=om?function(e){if(e===oS)return!0;if(!e||"function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;try{om(e,null,oa)}catch(e){if(e!==os)return!1}return!oy(e)}:function(e){if(e===oS)return!0;if(!e||"function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;if(o_)return ov(e);if(oy(e))return!1;var t=ob.call(e);return"[object Function]"===t||"[object GeneratorFunction]"===t},oO=rp("%Math%"),oE=rp("%Number%").MAX_SAFE_INTEGER||oO.pow(2,53)-1,oA=rp("%Math.abs%"),ox=Math.floor,oC=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e},ok=Object.prototype.toString,oP=function(e){var t;if(t=arguments.length>1?arguments[1]:"[object Date]"===ok.call(e)?String:Number,t===String||t===Number){var n,r,o=t===String?["toString","valueOf"]:["valueOf","toString"];for(r=0;r<o.length;++r)if(ow(e[o[r]])&&oC(n=e[o[r]]()))return n;throw TypeError("No default value")}throw TypeError("invalid [[DefaultValue]] hint supplied")},oM=Number.isNaN||function(e){return e!=e},oD=Number.isNaN||function(e){return e!=e},oT=Number.isFinite||function(e){return"number"==typeof e&&!oD(e)&&e!==1/0&&e!==-1/0},oj=function(e){var t=function(e){return oC(e)?e:arguments.length>1?oP(e,arguments[1]):oP(e)}(e,Number);if("string"!=typeof t)return+t;var n=t.replace(/^[ \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u0085]+|[ \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u0085]+$/g,"");return/^0[ob]|^[+-]0x/.test(n)?NaN:+n},oN=rp("RegExp.prototype.test"),oR=nW.exports,oL=function(){return nq()&&!!Symbol.toStringTag},oI=Date.prototype.getDay,oF=function(e){try{return oI.call(e),!0}catch{return!1}},oU=Object.prototype.toString,oV=oL(),oH={exports:{}},o$=Object.prototype.toString;if(nJ()){var oz=Symbol.prototype.toString,oB=/^Symbol\(.*\)$/;oH.exports=function(e){if("symbol"==typeof e)return!0;if("[object Symbol]"!==o$.call(e))return!1;try{return"symbol"==typeof e.valueOf()&&oB.test(oz.call(e))}catch{return!1}}}else oH.exports=function(e){return!1};var oW="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,oG=oH.exports,oY=function(e,t){if(null==e)throw TypeError("Cannot call method on "+e);if("string"!=typeof t||"number"!==t&&"string"!==t)throw TypeError('hint must be "string" or "number"');var n,r,o,i="string"===t?["toString","valueOf"]:["valueOf","toString"];for(o=0;o<i.length;++o)if(ow(n=e[i[o]])&&oC(r=n.call(e)))return r;throw TypeError("No default value")},oX=function(e,t){var n=e[t];if(null!=n){if(!ow(n))throw TypeError(n+" returned for property "+t+" of object "+e+" is not a function");return n}},oq=function(e){if(oC(e))return e;var t,n="default";if(arguments.length>1&&(arguments[1]===String?n="string":arguments[1]===Number&&(n="number")),oW&&(Symbol.toPrimitive?t=oX(e,Symbol.toPrimitive):oG(e)&&(t=Symbol.prototype.valueOf)),void 0!==t){var r=t.call(e,n);if(oC(r))return r;throw TypeError("unable to convert exotic object to primitive")}return"default"===n&&("object"==typeof e&&null!==e&&(oV?oF(e):"[object Date]"===oU.call(e))||oG(e))&&(n="string"),oY(e,"default"===n?"number":n)},oK=rp("%TypeError%"),oJ=rp("%Number%"),oZ=rp("%RegExp%"),oQ=rp("%parseInt%"),o0=function(e){return oR(oN,e)},o1=rh("String.prototype.slice"),o9=o0(/^0b[01]+$/i),o2=o0(/^0o[0-7]+$/i),o6=o0(/^[-+]0x[0-9a-f]+$/i),o3=o0(new oZ("[\x85â￾]","g")),o4=` 9\v\f\r \xa0\u1680\u180E\u2000\u2001\u2002\u2003ââ ââââââ¯âã\u2028\u2029\uFEFF`,o5=RegExp("(^["+o4+"]+)|(["+o4+"]+$)","g"),o8=rh("String.prototype.replace"),o7=function(e){var t=oj(e);return oM(t)?0:0!==t&&oT(t)?(t>=0?1:-1)*ox(oA(t)):t},ie=function e(t){var n=null===t||"function"!=typeof t&&"object"!=typeof t?t:function(e){return arguments.length>1?oq(e,arguments[1]):oq(e)}(t,oJ);if("symbol"==typeof n)throw new oK("Cannot convert a Symbol value to a number");if("bigint"==typeof n)throw new oK("Conversion from 'BigInt' to 'number' is not allowed.");if("string"==typeof n){if(o9(n))return e(oQ(o1(n,2),2));if(o2(n))return e(oQ(o1(n,2),8));if(o3(n)||o6(n))return NaN;var r=o8(n,o5,"");if(r!==n)return e(r)}return oJ(n)},it=function(e){var t=ie(e);return 0!==t&&(t=o7(t)),0===t?0:t},ir=rp("%TypeError%"),io=function(e){var t=it(e);return t<=0?0:t>oE?oE:t},ii=rp("%Object%"),ia=rp("%String%"),is=rp("%TypeError%"),il=function(e){if("symbol"==typeof e)throw new is("Cannot convert a Symbol value to a string");return ia(e)},iu=String.prototype.valueOf,ic=function(e){try{return iu.call(e),!0}catch{return!1}},ip=Object.prototype.toString,id=oL(),ih=rp("%TypeError%"),im=function(e,t){var n=arguments.length>2?arguments[2]:[];if(!rb(n))throw new r_("Assertion failed: optional `argumentsList`, if provided, must be a List");return rS(e,t,n)},ig=function(e,t){if("Object"!==ou(e))throw new of("Assertion failed: `O` must be an Object");
9if(!ol(t))throw new of("Assertion failed: `P` must be a Property Key");return t in e},iy=function(e){if("Object"!==ou(e))throw new ir("Assertion failed: `obj` must be an Object");return io(od(e,"length"))},iv=rh("String.prototype.split"),ib=Object("a"),i_="a"!==ib[0]||!(0 in ib),iS=function(e){var t,n=(rg(this),ii(this)),r=i_&&("string"==typeof this||"object"==typeof this&&(id?ic(this):"[object String]"===ip.call(this)))?iv(this,""):n,o=iy(r);if(!ow(e))throw new ih("Array.prototype.forEach callback must be a function");arguments.length>1&&(t=arguments[1]);for(var i=0;i<o;){var a=il(i);ig(r,a)&&im(e,t,[od(r,a),i,r]),i+=1}},iw=function(e){var t=!0,n=!0,r=!1;if("function"==typeof e){try{e.call("f",function(e,n,r){"object"!=typeof r&&(t=!1)}),e.call([null],function(){n="string"==typeof this},"x")}catch{r=!0}return!r&&t&&n}return!1},iO=function(){var e=Array.prototype.forEach;return iw(e)?e:iS},iE=nW.exports,iA=iO(),ix=rh("Array.prototype.slice"),iC=iE.apply(iA),ik=function(e,t){return rg(e),iC(e,ix(arguments,1))};nz(ik,{getPolyfill:iO,implementation:iS,shim:function(){var e=iO();return nz(Array.prototype,{forEach:e},{forEach:function(){return Array.prototype.forEach!==e}}),e}});var iP=rh("Object.prototype.propertyIsEnumerable"),iM=rh("Array.prototype.push"),iD=function(e){var t=rg(e),n=[];for(var r in t)iP(t,r)&&iM(n,[r,t[r]]);return n},iT=function(){return"function"==typeof Object.entries?Object.entries:iD},ij=(0,nW.exports)(iT(),Object);nz(ij,{getPolyfill:iT,implementation:iD,shim:function(){var e=iT();return nz(Object,{entries:e},{entries:function(){return Object.entries!==e}}),e}});var iN=rh("String.prototype.replace"),iR=/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,iL=/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/,iI=function(){return iN(iN(il(rg(this)),iR,""),iL,"")},iF=function(){return String.prototype.trim&&"â"==="â".trim()?String.prototype.trim:iI},iU=(0,nW.exports)(iF());nz(iU,{getPolyfill:iF,implementation:iI,shim:function(){var e=iF();return nz(String.prototype,{trim:e},{trim:function(){return String.prototype.trim!==e}}),e}});var iV=function(e){},iH=String.prototype.replace,i$=String.prototype.split,iz="||||",iB=function(e){var t=e%100,n=t%10;return 11!==t&&1===n?0:2<=n&&n<=4&&!(t>=12&&t<=14)?1:2},iW={pluralTypes:{arabic:function(e){if(e<3)return e;var t=e%100;return t>=3&&t<=10?3:t>=11?4:5},bosnian_serbian:iB,chinese:function(){return 0},croatian:iB,french:function(e){return+(e>=2)},german:function(e){return+(1!==e)},russian:iB,lithuanian:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=9&&(e%100<11||e%100>19)?1:2},czech:function(e){return 1===e?0:e>=2&&e<=4?1:2},polish:function(e){if(1===e)return 0;var t=e%10;return 2<=t&&t<=4&&(e%100<10||e%100>=20)?1:2},icelandic:function(e){return+(e%10!=1||e%100==11)},slovenian:function(e){var t=e%100;return 1===t?0:2===t?1:3===t||4===t?2:3}},pluralTypeToLanguages:{arabic:["ar"],bosnian_serbian:["bs-Latn-BA","bs-Cyrl-BA","srl-RS","sr-RS"],chinese:["id","id-ID","ja","ko","ko-KR","lo","ms","th","th-TH","zh"],croatian:["hr","hr-HR"],german:["fa","da","de","en","es","fi","el","he","hi-IN","hu","hu-HU","it","nl","no","pt","sv","tr"],french:["fr","tl","pt-br"],russian:["ru","ru-RU"],lithuanian:["lt"],czech:["cs","cs-CZ","sk"],polish:["pl"],icelandic:["is"],slovenian:["sl-SL"]}};function iG(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var iY=(li={},function(e,t){var n,r,o,i=li[t];return i&&!e.pluralTypes[i]&&(i=null,li[t]=i),i||(i=(n=e.pluralTypeToLanguages,r={},ik(ij(n),function(e){var t=e[0];ik(e[1],function(e){r[e]=t})}),o=r)[t]||o[i$.call(t,/-/,1)[0]]||o.en)&&(li[t]=i),i}),iX=/%\{(.*?)\}/g;function iq(e,t,n,r,o){if("string"!=typeof e)throw TypeError("Polyglot.transformPhrase expects argument #1 to be string");if(null==t)return e;var i=e,a="number"==typeof t?{smart_count:t}:t;if(null!=a.smart_count&&e){var s,l=o||iW,u=i$.call(e,iz),c=iY(l,n||"en");i=iU(u[s=a.smart_count,l.pluralTypes[c](s)]||u[0])}return iH.call(i,r||iX,function(e,t){return nZ(a,t)&&null!=a[t]?a[t]:e})}function iK(e){var t=e||{};this.phrases={},this.extend(t.phrases||{}),this.currentLocale=t.locale||"en";var n=t.allowMissing?iq:null;this.onMissingKey="function"==typeof t.onMissingKey?t.onMissingKey:n,this.warn=t.warn||iV,this.tokenRegex=function(e){var t=e&&e.prefix||"%{",n=e&&e.suffix||"}";if(t===iz||n===iz)throw RangeError('"'+iz+'" token is reserved for pluralization');return RegExp(iG(t)+"(.*?)"+iG(n),"g")}(t.interpolation),this.pluralRules=t.pluralRules||iW}iK.prototype.locale=function(e){return e&&(this.currentLocale=e),this.currentLocale},iK.prototype.extend=function(e,t){ik(ij(e||{}),function(e){var n=e[0],r=e[1],o=t?t+"."+n:n;"object"==typeof r?this.extend(r,o):this.phrases[o]=r},this)},iK.prototype.unset=function(e,t){"string"==typeof e?delete this.phrases[e]:ik(ij(e||{}),function(e){var n=e[0],r=e[1],o=t?t+"."+n:n;"object"==typeof r?this.unset(r,o):delete this.phrases[o]},this)},iK.prototype.clear=function(){this.phrases={}},iK.prototype.replace=function(e){this.clear(),this.extend(e)},iK.prototype.t=function(e,t){var n,r,o=null==t?{}:t;return"string"==typeof this.phrases[e]?n=this.phrases[e]:"string"==typeof o._?n=o._:this.onMissingKey?r=(0,this.onMissingKey)(e,o,this.currentLocale,this.tokenRegex,this.pluralRules):(this.warn('Missing translation for key: "'+e+'"'),r=e),"string"==typeof n&&(r=iq(n,o,this.currentLocale,this.tokenRegex,this.pluralRules)),r},iK.prototype.has=function(e){return nZ(this.phrases,e)},iK.transformPhrase=function(e,t,n){return iq(e,t,n)};var iJ={};
9Object.defineProperty(iJ,"__esModule",{value:!0});var iZ=[["ثاÙÙØ©","ثاÙÙØªÙÙ","%s Ø«ÙØ§Ù","%s ثاÙÙØ©"],["دÙÙÙØ©","دÙÙÙØªÙÙ","%s Ø¯ÙØ§Ø¦Ù","%s دÙÙÙØ©"],["ساعة","ساعتÙÙ","%s ساعات","%s ساعة"],["ÙÙÙ
","ÙÙÙ
ÙÙ","%s Ø£ÙØ§Ù
","%s ÙÙÙ
اÙ"],["Ø£Ø³Ø¨ÙØ¹","Ø£Ø³Ø¨ÙØ¹ÙÙ","%s Ø£Ø³Ø§Ø¨ÙØ¹","%s Ø£Ø³Ø¨ÙØ¹Ø§Ù"],["Ø´ÙØ±","Ø´ÙØ±ÙÙ","%s Ø£Ø´ÙØ±","%s Ø´ÙØ±Ø§Ù"],["عاÙ
","عاÙ
ÙÙ","%s Ø£Ø¹ÙØ§Ù
","%s عاÙ
اÙ"]],iQ=iJ.default=function(e,t){if(0===t)return["Ù
ÙØ° ÙØØ¸Ø§Øª","بعد ÙØØ¸Ø§Øª"];var n,r=(n=Math.floor(t/2),e<3?iZ[n][e-1]:e>=3&&e<=10?iZ[n][2]:iZ[n][3]);return["Ù
ÙØ° "+r,"بعد "+r]},i0={};Object.defineProperty(i0,"__esModule",{value:!0});var i1=i0.default=function(e,t){var n=0;return(1==t||3==t||5==t||7==t||9==t||11==t||13==t)&&e>=5&&(n=1),[[["pr\xe1vÄ teÄ","pr\xe1vÄ teÄ"]],[["pÅed %s vteÅinami","za %s vteÅiny"],["pÅed %s vteÅinami","za %s vteÅin"]],[["pÅed minutou","za minutu"]],[["pÅed %s minutami","za %s minuty"],["pÅed %s minutami","za %s minut"]],[["pÅed hodinou","za hodinu"]],[["pÅed %s hodinami","za %s hodiny"],["pÅed %s hodinami","za %s hodin"]],[["vÄera","z\xedtra"]],[["pÅed %s dny","za %s dny"],["pÅed %s dny","za %s dnů"]],[["minul\xfd t\xfdden","pÅ\xedÅ¡t\xed t\xfdden"]],[["pÅed %s t\xfddny","za %s t\xfddny"],["pÅed %s t\xfddny","za %s t\xfddnů"]],[["minul\xfd mÄs\xedc","pÅ\xedst\xed mÄs\xedc"]],[["pÅed %s mÄs\xedci","za %s mÄs\xedce"],["pÅed %s mÄs\xedci","za %s mÄs\xedců"]],[["pÅed rokem","pÅ\xedst\xed rok"]],[["pÅed %s lety","za %s roky"],["pÅed %s lety","za %s let"]]][t][n]},i9={};Object.defineProperty(i9,"__esModule",{value:!0});var i2=i9.default=function(e,t){return[["gerade eben","vor einer Weile"],["vor %s Sekunden","in %s Sekunden"],["vor 1 Minute","in 1 Minute"],["vor %s Minuten","in %s Minuten"],["vor 1 Stunde","in 1 Stunde"],["vor %s Stunden","in %s Stunden"],["vor 1 Tag","in 1 Tag"],["vor %s Tagen","in %s Tagen"],["vor 1 Woche","in 1 Woche"],["vor %s Wochen","in %s Wochen"],["vor 1 Monat","in 1 Monat"],["vor %s Monaten","in %s Monaten"],["vor 1 Jahr","in 1 Jahr"],["vor %s Jahren","in %s Jahren"]][t]},i6={};Object.defineProperty(i6,"__esModule",{value:!0});var i3=i6.default=function(e,t){return[["μÏÎ»Î¹Ï ÏÏÏα","Ïε λίγο"],["%s δεÏ
ÏεÏÏλεÏÏα ÏÏιν","Ïε %s δεÏ
ÏεÏÏλεÏÏα"],["1 λεÏÏÏ ÏÏιν","Ïε 1 λεÏÏÏ"],["%s λεÏÏά ÏÏιν","Ïε %s λεÏÏά"],["1 ÏÏα ÏÏιν","Ïε 1 ÏÏα"],["%s ÏÏÎµÏ ÏÏιν","Ïε %s ÏÏεÏ"],["1 μÎÏα ÏÏιν","Ïε 1 μÎÏα"],["%s μÎÏÎµÏ ÏÏιν","Ïε %s μÎÏεÏ"],["1 εβδομάδα ÏÏιν","Ïε 1 εβδομάδα"],["%s ÎµÎ²Î´Î¿Î¼Î¬Î´ÎµÏ ÏÏιν","Ïε %s εβδομάδεÏ"],["1 μήνα ÏÏιν","Ïε 1 μήνα"],["%s Î¼Î®Î½ÎµÏ ÏÏιν","Ïε %s μήνεÏ"],["1 ÏÏÏνο ÏÏιν","Ïε 1 ÏÏÏνο"],["%s ÏÏÏνια ÏÏιν","Ïε %s ÏÏÏνια"]][t]},i4={};Object.defineProperty(i4,"__esModule",{value:!0});var i5=i4.default=function(e,t){return[["justo ahora","en un rato"],["hace %s segundos","en %s segundos"],["hace 1 minuto","en 1 minuto"],["hace %s minutos","en %s minutos"],["hace 1 hora","en 1 hora"],["hace %s horas","en %s horas"],["hace 1 d\xeda","en 1 d\xeda"],["hace %s d\xedas","en %s d\xedas"],["hace 1 semana","en 1 semana"],["hace %s semanas","en %s semanas"],["hace 1 mes","en 1 mes"],["hace %s meses","en %s meses"],["hace 1 a\xf1o","en 1 a\xf1o"],["hace %s a\xf1os","en %s a\xf1os"]][t]},i8={};Object.defineProperty(i8,"__esModule",{value:!0});var i7=i8.default=function(e,t){return[["juuri \xe4sken","juuri nyt"],["%s sekuntia sitten","%s sekunnin p\xe4\xe4st\xe4"],["minuutti sitten","minuutin p\xe4\xe4st\xe4"],["%s minuuttia sitten","%s minuutin p\xe4\xe4st\xe4"],["tunti sitten","tunnin p\xe4\xe4st\xe4"],["%s tuntia sitten","%s tunnin p\xe4\xe4st\xe4"],["p\xe4iv\xe4 sitten","p\xe4iv\xe4n p\xe4\xe4st\xe4"],["%s p\xe4iv\xe4\xe4 sitten","%s p\xe4iv\xe4n p\xe4\xe4st\xe4"],["viikko sitten","viikon p\xe4\xe4st\xe4"],["%s viikkoa sitten","%s viikon p\xe4\xe4st\xe4"],["kuukausi sitten","kuukauden p\xe4\xe4st\xe4"],["%s kuukautta sitten","%s kuukauden p\xe4\xe4st\xe4"],["vuosi sitten","vuoden p\xe4\xe4st\xe4"],["%s vuotta sitten","%s vuoden p\xe4\xe4st\xe4"]][t]},ae={};
9Object.defineProperty(ae,"__esModule",{value:!0});var at=ae.default=function(e,t){return[["\xe0 l'instant","dans un instant"],["il y a %s secondes","dans %s secondes"],["il y a 1 minute","dans 1 minute"],["il y a %s minutes","dans %s minutes"],["il y a 1 heure","dans 1 heure"],["il y a %s heures","dans %s heures"],["il y a 1 jour","dans 1 jour"],["il y a %s jours","dans %s jours"],["il y a 1 semaine","dans 1 semaine"],["il y a %s semaines","dans %s semaines"],["il y a 1 mois","dans 1 mois"],["il y a %s mois","dans %s mois"],["il y a 1 an","dans 1 an"],["il y a %s ans","dans %s ans"]][t]},an={};Object.defineProperty(an,"__esModule",{value:!0});var ar=an.default=function(e,t){return[["xusto agora","daqu\xed a un pouco"],["hai %s segundos","en %s segundos"],["hai 1 minuto","nun minuto"],["hai %s minutos","en %s minutos"],["hai 1 hora","nunha hora"],["hai %s horas","en %s horas"],["hai 1 d\xeda","nun d\xeda"],["hai %s d\xedas","en %s d\xedas"],["hai 1 semana","nunha semana"],["hai %s semanas","en %s semanas"],["hai 1 mes","nun mes"],["hai %s meses","en %s meses"],["hai 1 ano","nun ano"],["hai %s anos","en %s anos"]][t]},ao={};Object.defineProperty(ao,"__esModule",{value:!0});var ai=ao.default=function(e,t){return[["à¤
à¤à¥","à¤à¥à¤ समय"],["%s सà¥à¤à¤à¤¡ पहलà¥","%s सà¥à¤à¤à¤¡ मà¥à¤"],["1 मिनठपहलà¥","1 मिनठमà¥à¤"],["%s मिनठपहलà¥","%s मिनठमà¥à¤"],["1 à¤à¤à¤à¥ पहलà¥","1 à¤à¤à¤à¥ मà¥à¤"],["%s à¤à¤à¤à¥ पहलà¥","%s à¤à¤à¤à¥ मà¥à¤"],["1 दिन पहलà¥","1 दिन मà¥à¤"],["%s दिन पहलà¥","%s दिनà¥à¤ मà¥à¤"],["1 सपà¥à¤¤à¤¾à¤¹ पहलà¥","1 सपà¥à¤¤à¤¾à¤¹ मà¥à¤"],["%s हफà¥à¤¤à¥ पहलà¥","%s हफà¥à¤¤à¥à¤ मà¥à¤"],["1 महà¥à¤¨à¥ पहलà¥","1 महà¥à¤¨à¥ मà¥à¤"],["%s महà¥à¤¨à¥ पहलà¥","%s महà¥à¤¨à¥à¤ मà¥à¤"],["1 साल पहलà¥","1 साल मà¥à¤"],["%s साल पहलà¥","%s साल मà¥à¤"]][t]},aa={};Object.defineProperty(aa,"__esModule",{value:!0});var as=aa.default=function(e,t){return[["poco fa","fra poco"],["%s secondi fa","fra %s secondi"],["un minuto fa","fra un minuto"],["%s minuti fa","fra %s minuti"],["un'ora fa","fra un'ora"],["%s ore fa","fra %s ore"],["un giorno fa","fra un giorno"],["%s giorni fa","fra %s giorni"],["una settimana fa","fra una settimana"],["%s settimane fa","fra %s settimane"],["un mese fa","fra un mese"],["%s mesi fa","fra %s mesi"],["un anno fa","fra un anno"],["%s anni fa","fra %s anni"]][t]},al={};Object.defineProperty(al,"__esModule",{value:!0});var au=al.default=function(e,t){return[["ãããå","ããã«"],["%sç§å","%sç§ä»¥å
"],["1åå","1å以å
"],["%såå","%så以å
"],["1æéå","1æé以å
"],["%sæéå","%sæé以å
"],["1æ¥å","1æ¥ä»¥å
"],["%sæ¥å","%sæ¥ä»¥å
"],["1é±éå","1é±é以å
"],["%sé±éå","%sé±é以å
"],["1ã¶æå","1ã¶æä»¥å
"],["%sã¶æå","%sã¶æä»¥å
"],["1å¹´å","1年以å
"],["%så¹´å","%s年以å
"]][t]},ac={};Object.defineProperty(ac,"__esModule",{value:!0});var ap=ac.default=function(e,t){return[["ë°©ê¸","ê³§"],["%sì´ ì ","%sì´ í"],["1ë¶ ì ","1ë¶ í"],["%së¶ ì ","%së¶ í"],["1ìê° ì ","1ìê° í"],["%sìê° ì ","%sìê° í"],["1ì¼ ì ","1ì¼ í"],["%sì¼ ì ","%sì¼ í"],["1ì£¼ì¼ ì ","1ì£¼ì¼ í"],["%sì£¼ì¼ ì ","%sì£¼ì¼ í"],["1ê°ì ì ","1ê°ì í"],["%sê°ì ì ","%sê°ì í"],["1ë
ì ","1ë
í"],["%së
ì ","%së
í"]][t]},ad={};Object.defineProperty(ad,"__esModule",{value:!0});var af=ad.default=function(e,t){return[["recent","binnenkort"],["%s seconden geleden","binnen %s seconden"],["1 minuut geleden","binnen 1 minuut"],["%s minuten geleden","binnen %s minuten"],["1 uur geleden","binnen 1 uur"],["%s uur geleden","binnen %s uur"],["1 dag geleden","binnen 1 dag"],["%s dagen geleden","binnen %s dagen"],["1 week geleden","binnen 1 week"],["%s weken geleden","binnen %s weken"],["1 maand geleden","binnen 1 maand"],["%s maanden geleden","binnen %s maanden"],["1 jaar geleden","binnen 1 jaar"],["%s jaar geleden","binnen %s jaar"]][t]},ah={};Object.defineProperty(ah,"__esModule",{value:!0});var am=ah.default=function(e,t){return[["agora mesmo","agora"],["h\xe1 %s segundos","em %s segundos"],["h\xe1 um minuto","em um minuto"],["h\xe1 %s minutos","em %s minutos"],["h\xe1 uma hora","em uma hora"],["h\xe1 %s horas","em %s horas"],["h\xe1 um dia","em um dia"],["h\xe1 %s dias","em %s dias"],["h\xe1 uma semana","em uma semana"],["h\xe1 %s semanas","em %s semanas"],["h\xe1 um m\xeas","em um m\xeas"],["h\xe1 %s meses","em %s meses"],["h\xe1 um ano","em um ano"],["h\xe1 %s anos","em %s anos"]][t]},ag={};function ay(e,t,n,r,o){var i=o%10,a=r;return 1===o?a=e:1===i&&o>20?a=t:i>1&&i<5&&(o>20||o<10)&&(a=n),a}
9Object.defineProperty(ag,"__esModule",{value:!0});var av=ay.bind(null,"ÑекÑндÑ","%s ÑекÑндÑ","%s ÑекÑндÑ","%s ÑекÑнд"),ab=ay.bind(null,"минÑÑÑ","%s минÑÑÑ","%s минÑÑÑ","%s минÑÑ"),a_=ay.bind(null,"ÑаÑ","%s ÑаÑ","%s ÑаÑа","%s ÑаÑов"),aS=ay.bind(null,"денÑ","%s денÑ","%s днÑ","%s дней"),aw=ay.bind(null,"неделÑ","%s неделÑ","%s недели","%s неделÑ"),aO=ay.bind(null,"меÑÑÑ","%s меÑÑÑ","%s меÑÑÑа","%s меÑÑÑев"),aE=ay.bind(null,"год","%s год","%s года","%s леÑ"),aA=ag.default=function(e,t){switch(t){case 0:return["ÑолÑко ÑÑо","ÑеÑез неÑколÑко ÑекÑнд"];case 1:return[av(e)+" назад","ÑеÑез "+av(e)];case 2:case 3:return[ab(e)+" назад","ÑеÑез "+ab(e)];case 4:case 5:return[a_(e)+" назад","ÑеÑез "+a_(e)];case 6:return["вÑеÑа","завÑÑа"];case 7:return[aS(e)+" назад","ÑеÑез "+aS(e)];case 8:case 9:return[aw(e)+" назад","ÑеÑез "+aw(e)];case 10:case 11:return[aO(e)+" назад","ÑеÑез "+aO(e)];case 12:case 13:return[aE(e)+" назад","ÑеÑез "+aE(e)];default:return["",""]}},ax={};Object.defineProperty(ax,"__esModule",{value:!0});var aC=ax.default=function(e,t){return[["just nu","om en stund"],["%s sekunder sedan","om %s sekunder"],["1 minut sedan","om 1 minut"],["%s minuter sedan","om %s minuter"],["1 timme sedan","om 1 timme"],["%s timmar sedan","om %s timmar"],["1 dag sedan","om 1 dag"],["%s dagar sedan","om %s dagar"],["1 vecka sedan","om 1 vecka"],["%s veckor sedan","om %s veckor"],["1 m\xe5nad sedan","om 1 m\xe5nad"],["%s m\xe5nader sedan","om %s m\xe5nader"],["1 \xe5r sedan","om 1 \xe5r"],["%s \xe5r sedan","om %s \xe5r"]][t]},ak={};Object.defineProperty(ak,"__esModule",{value:!0});var aP=ak.default=function(e,t){return[["à¹à¸¡à¸·à¹à¸à¸ªà¸±à¸à¸à¸£à¸¹à¹à¸à¸µà¹","à¸à¸µà¸à¸ªà¸±à¸à¸à¸£à¸¹à¹"],["%s วิà¸à¸²à¸à¸µà¸à¸µà¹à¹à¸¥à¹à¸§","à¹à¸ %s วิà¸à¸²à¸à¸µ"],["1 à¸à¸²à¸à¸µà¸à¸µà¹à¹à¸¥à¹à¸§","à¹à¸ 1 à¸à¸²à¸à¸µ"],["%s à¸à¸²à¸à¸µà¸à¸µà¹à¹à¸¥à¹à¸§","à¹à¸ %s à¸à¸²à¸à¸µ"],["1 à¸à¸±à¹à¸§à¹à¸¡à¸à¸à¸µà¹à¹à¸¥à¹à¸§","à¹à¸ 1 à¸à¸±à¹à¸§à¹à¸¡à¸"],["%s à¸à¸±à¹à¸§à¹à¸¡à¸à¸à¸µà¹à¹à¸¥à¹à¸§","à¹à¸ %s à¸à¸±à¹à¸§à¹à¸¡à¸"],["1 วัà¸à¸à¸µà¹à¹à¸¥à¹à¸§","à¹à¸ 1 วัà¸"],["%s วัà¸à¸à¸µà¹à¹à¸¥à¹à¸§","à¹à¸ %s วัà¸"],["1 à¸à¸²à¸à¸´à¸à¸¢à¹à¸à¸µà¹à¹à¸¥à¹à¸§","à¹à¸ 1 à¸à¸²à¸à¸´à¸à¸¢à¹"],["%s à¸à¸²à¸à¸´à¸à¸¢à¹à¸à¸µà¹à¹à¸¥à¹à¸§","à¹à¸ %s à¸à¸²à¸à¸´à¸à¸¢à¹"],["1 à¹à¸à¸·à¸à¸à¸à¸µà¹à¹à¸¥à¹à¸§","à¹à¸ 1 à¹à¸à¸·à¸à¸"],["%s à¹à¸à¸·à¸à¸à¸à¸µà¹à¹à¸¥à¹à¸§","à¹à¸ %s à¹à¸à¸·à¸à¸"],["1 à¸à¸µà¸à¸µà¹à¹à¸¥à¹à¸§","à¹à¸ 1 à¸à¸µ"],["%s à¸à¸µà¸à¸µà¹à¹à¸¥à¹à¸§","à¹à¸ %s à¸à¸µ"]][t]},aM={};Object.defineProperty(aM,"__esModule",{value:!0});var aD=aM.default=function(e,t){return[["az \xf6nce","Åimdi"],["%s saniye \xf6nce","%s saniye i\xe7inde"],["1 dakika \xf6nce","1 dakika i\xe7inde"],["%s dakika \xf6nce","%s dakika i\xe7inde"],["1 saat \xf6nce","1 saat i\xe7inde"],["%s saat \xf6nce","%s saat i\xe7inde"],["1 g\xfcn \xf6nce","1 g\xfcn i\xe7inde"],["%s g\xfcn \xf6nce","%s g\xfcn i\xe7inde"],["1 hafta \xf6nce","1 hafta i\xe7inde"],["%s hafta \xf6nce","%s hafta i\xe7inde"],["1 ay \xf6nce","1 ay i\xe7inde"],["%s ay \xf6nce","%s ay i\xe7inde"],["1 yıl \xf6nce","1 yıl i\xe7inde"],["%s yıl \xf6nce","%s yıl i\xe7inde"]][t]},aT={};Object.defineProperty(aT,"__esModule",{value:!0});var aj=["ç§","åé","å°æ¶","天","å¨","个æ","å¹´"],aN=aT.default=function(e,t){if(0===t)return["åå","çå»å"];var n=aj[~~(t/2)];return[e+" "+n+"å",e+" "+n+"å"]},aR={};Object.defineProperty(aR,"__esModule",{value:!0});var aL=aR.default=function(e,t){return[["åå","çå»å¾"],["%s ç§å","%s ç§å¾"],["1 åéå","1 åéå¾"],["%s åéå","%s åéå¾"],["1 å°æå","1 å°æå¾"],["%s å°æå","%s å°æå¾"],["1 天å","1 天å¾"],["%s 天å","%s 天å¾"],["1 é±å","1 é±å¾"],["%s é±å","%s é±å¾"],["1 åæå","1 åæå¾"],["%s åæå","%s åæå¾"],["1 å¹´å","1 å¹´å¾"],["%s å¹´å","%s å¹´å¾"]][t]};
9let aI={ar:{"Add a comment...":"Ø¥Ø¶Ø§ÙØ© تعÙÙÙ","Add a reply...":"Ø¥Ø¶Ø§ÙØ© رد","Add tag...":"Ø¥Ø¶Ø§ÙØ© Ø¹ÙØ§Ù
Ø©",Cancel:"Ø¥ÙØºØ§Ø¡",Close:"Ø¥ØºÙØ§Ù",Edit:"Edit",Delete:"Delete",Ok:"تÙ
"},cs:{"Add a comment...":"Napsat koment\xe1Å...","Add a reply...":"OdpovÄdÄt...","Add tag...":"PÅidat Å¡t\xedtek...",Cancel:"ZruÅ¡it",Close:"ZavÅ\xedt",Edit:"Upravit",Delete:"Smazat",Ok:"Ok"},de:{"Add a comment...":"Kommentar schreiben...","Add a reply...":"Antwort schreiben...","Add tag...":"Tag...",Cancel:"Abbrechen",Close:"Schliessen",Edit:"Bearbeiten",Delete:"L\xf6schen",Ok:"Ok"},el:{"Add a comment...":"ΣÏολίαÏε...","Add a reply...":"ÎÏάνÏηÏε...","Add tag...":"Î ÏÏÏθεÏε tag...",Cancel:"ÎκÏ
Ïο",Close:"ÎλείÏιμο",Edit:"ÎÏεξεÏγαÏία",Delete:"ÎιαγÏαÏή",Ok:"Ok"},es:{"Add a comment...":"Agregar un comentario...","Add a reply...":"Agregar una respuesta...","Add tag...":"Etiquetar...",Cancel:"Cancelar",Close:"Cerrar",Edit:"Editar",Delete:"Eliminar",Ok:"Ok"},fi:{"Add a comment...":"Lis\xe4\xe4 kommentti","Add a reply...":"Lis\xe4\xe4 vastaus","Add tag...":"Lis\xe4\xe4 tunniste",Cancel:"Peruuta",Close:"Sulje",Edit:"Muokkaa",Delete:"Poista",Ok:"Ok"},fr:{"Add a comment...":"Ajouter un commentaire...","Add a reply...":"Ajouter une r\xe9ponse...","Add tag...":"Ajouter une \xe9tiquette...",Cancel:"Annuler",Close:"Fermer",Edit:"\xc9diter",Delete:"Supprimer",Ok:"Ok"},gl:{"Add a comment...":"Engadir un comentario...","Add a reply...":"Engadir unha resposta...","Add tag...":"Etiquetar...",Cancel:"Cancelar",Close:"Pechar",Edit:"Edit",Delete:"Delete",Ok:"Ok"},hi:{"Add a comment...":"à¤à¤¿à¤ªà¥à¤ªà¤£à¥ à¤à¥à¤¡à¤¼à¥à¤","Add a reply...":"à¤à¤µà¤¾à¤¬ दà¥à¤","Add tag...":"à¤à¥à¤ लà¤à¤¾à¤à¤",Cancel:"रदà¥à¤¦ à¤à¤°à¥à¤",Close:"बà¤à¤¦ à¤à¤°à¥à¤",Edit:"सà¤à¤ªà¤¾à¤¦à¤¿à¤¤ à¤à¤°à¥à¤",Delete:"हà¤à¤¾à¤à¤",Ok:"ठà¥à¤ हà¥"},it:{"Add a comment...":"Commenta...","Add a reply...":"Rispondi...","Add tag...":"Aggiungi tag...",Cancel:"Annulla",Close:"Chiudi",Edit:"Edit",Delete:"Delete",Ok:"Ok"},ja:{"Add a comment...":"ã³ã¡ã³ãã追å ãã...","Add a reply...":"è¿ä¿¡ãã...","Add tag...":"ã¿ã°ã追å ãã...",Cancel:"ãã£ã³ã»ã«",Close:"éãã",Edit:"ç·¨é",Delete:"åé¤",Ok:"Ok"},ko:{"Add a comment...":"ëê¸ ì¶ê°","Add a reply...":"ëµê¸ ì¶ê°","Add tag...":"íê·¸ ì¶ê°",Cancel:"ì·¨ì",Close:"ë«ê¸°",Edit:"ìì ",Delete:"ìì ",Ok:"íì¸"},nl:{"Add a comment...":"Commentaar toevoegen...","Add a reply...":"Antwoord toevoegen...","Add tag...":"Tag toevoegen...",Cancel:"Afbreken",Close:"Sluiten",Edit:"Bewerken",Delete:"Verwijderen",Ok:"Ok"},pt:{"Add a comment...":"Adicionar um coment\xe1rio...","Add a reply...":"Adicionar uma resposta...","Add tag...":"Etiquetar...",Cancel:"Cancelar",Close:"Fechar",Edit:"Editar",Delete:"Apagar",Ok:"Ok"},ru:{"Add a comment...":"ÐобавиÑÑ ÐºÐ¾Ð¼Ð¼ÐµÐ½ÑаÑий...","Add a reply...":"ÐобавиÑÑ Ð¾ÑвеÑ...","Add tag...":"ÐобавиÑÑ ÑÑг...",Cancel:"ÐÑмена",Close:"ÐакÑÑÑÑ",Edit:"РедакÑиÑоваÑÑ",Delete:"УдалиÑÑ",Ok:"Ðк"},sv:{"Add a comment...":"Skriv en kommentar...","Add a reply...":"Skriv ett svar...","Add tag...":"Tagg...",Cancel:"Cancel",Close:"St\xe4ng",Edit:"Edit",Delete:"Delete",Ok:"Ok"},th:{"Add a comment...":"à¹à¸à¸´à¹à¸¡à¸à¸à¸¡à¹à¸¡à¸à¸à¹...","Add a reply...":"à¸à¸à¸à¸à¸¥à¸±à¸...","Add tag...":"à¹à¸à¸´à¹à¸¡à¹à¸à¹à¸...",Cancel:"ยà¸à¹à¸¥à¸´à¸",Close:"à¸à¸´à¸",Edit:"à¹à¸à¹à¹à¸",Delete:"ลà¸",Ok:"à¸à¸à¸¥à¸"},tr:{"Add a comment...":"Yorum ekle...","Add a reply...":"Cevap ekle...","Add tag...":"Tag Ekle...",Cancel:"İptal",Close:"Kapat",Edit:"D\xfczenle",Delete:"Sil",Ok:"Tamam"},ur:{"Add a comment...":"ØªØ¨ØµØ±Û Ú©Ø±ÛÚº","Add a reply...":"Ø¬ÙØ§Ø¨ دÛÚº","Add tag...":"Ù¹ÛÚ¯ ÙگائÛÚº",Cancel:"Ù
ÙØ³ÙØ® کرÛÚº",Close:"Ø¨ÙØ¯ کرÛÚº",Edit:"ترÙ
ÛÙ
کرÛÚº",Delete:"ÛٹائÛÚº",Ok:"Ù¹Ú¾ÛÚ© ÛÛ"},zh:{"Add a comment...":"æ·»å æ³¨é...","Add a reply...":"æ·»å åå¤...","Add tag...":"æ ç¾...",Cancel:"åæ¶",Close:"å
³é",Edit:"ç¼è¾",Delete:"å é¤",Ok:"确认"},"zh-CN":{"Add a comment...":"æ·»å è¯è®º...","Add a reply...":"æ·»å åå¤...","Add tag...":"æ·»å æ ç¾...",Cancel:"åæ¶",Close:"å
³é",Edit:"ç¼è¾",Delete:"å é¤",Ok:"确认"},"zh-TW":{"Add a comment...":"æ·»å è©è«...","Add a reply...":"æ·»å åè¦...","Add tag...":"æ·»å æ¨ç±¤...",Cancel:"åæ¶",Close:"éé",Edit:"編輯",Delete:"åªé¤",Ok:"確èª"}},aF=Object.keys(aI),aU=new iK({allowMissing:!0});aU.init=(e,t)=>
9{aU.clear(),e&&(aU.locale(e),aU.extend(aI[e])),t&&aU.extend(t)},nr("ar",iQ),nr("cs",i1),nr("de",i2),nr("el",i3),nr("es",i5),nr("fi",i7),nr("fr",at),nr("gl",ar),nr("hi",ai),nr("it",as),nr("ja",au),nr("ko",ap),nr("nl",af),nr("pt",am),nr("ru",aA),nr("sv",aC),nr("th",aP),nr("tr",aD),nr("zh",aN),nr("zh-CN",aN),nr("zh-TW",aL),aU.registerMessages=(e,t)=>{aI[e]?aI[e]={...aI[e],...t}:aI[e]=t};var aV=e=>{let t=Q();return function(e,t){let n=n=>{e.current&&!e.current.contains(event.target)&&t()};J(()=>(document.addEventListener("mousedown",n),()=>document.removeEventListener("mousedown",n)))}(t,()=>e.onClickOutside()),eJ.createElement("ul",{ref:t,className:"r6o-comment-dropdown-menu"},eJ.createElement("li",{onClick:e.onEdit},aU.t("Edit")),eJ.createElement("li",{onClick:e.onDelete},aU.t("Delete")))},aH={},a$={},az={exports:{}};(function(e,t){var n,r,o="function"==typeof Map?new Map:(n=[],r=[],{has:function(e){return n.indexOf(e)>-1},get:function(e){return r[n.indexOf(e)]},set:function(e,t){-1===n.indexOf(e)&&(n.push(e),r.push(t))},delete:function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),r.splice(t,1))}}),i=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch{i=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function a(e){var t=o.get(e);t&&t.destroy()}function s(e){var t=o.get(e);t&&t.update()}var l=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((l=function(e){return e}).destroy=function(e){return e},l.update=function(e){return e}):((l=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],function(e){return function(e){if(!(!e||!e.nodeName||"TEXTAREA"!==e.nodeName||o.has(e))){var t,n=null,r=null,a=null,s=function(){e.clientWidth!==r&&p()},l=(function(t){window.removeEventListener("resize",s,!1),e.removeEventListener("input",p,!1),e.removeEventListener("keyup",p,!1),e.removeEventListener("autosize:destroy",l,!1),e.removeEventListener("autosize:update",p,!1),Object.keys(t).forEach(function(n){e.style[n]=t[n]}),o.delete(e)}).bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",l,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",p,!1),window.addEventListener("resize",s,!1),e.addEventListener("input",p,!1),e.addEventListener("autosize:update",p,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",o.set(e,{destroy:l,update:p}),"vertical"===(t=window.getComputedStyle(e,null)).resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),isNaN(n="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth))&&(n=0),p()}function u(t){var n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t}function c(){if(0!==e.scrollHeight){var t=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(e),o=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+n+"px",r=e.clientWidth,t.forEach(function(e){e.node.scrollTop=e.scrollTop}),o&&(document.documentElement.scrollTop=o)}}function p(){c();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),r="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(r<t?"hidden"===n.overflowY&&(u("scroll"),c(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight):"hidden"!==n.overflowY&&(u("hidden"),c(),r="content-box"===n.boxSizing?Math.round(parseFloat(window.getComputedStyle(e,null).height)):e.offsetHeight),a!==r){a=r;var o=i("autosize:resized");try{e.dispatchEvent(o)}catch{}}}}(e)}),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],a),e},l.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],s),e}),t.default=l,e.exports=t.default})(az,az.exports);var aB=function(e,t,n){return((n=window.getComputedStyle)?n(e):e.currentStyle)[t.replace(/-(\w)/gi,function(e,t){return t.toUpperCase()})]}
9,aW=eQ&&eQ.__extends||(la=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}la(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),aG=eQ&&eQ.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},aY=eQ&&eQ.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&(n[r[o]]=e[r[o]]);return n};a$.__esModule=!0;var aX=t_.exports,aq=az.exports,aK=function(e){var t=aB(e,"line-height"),n=parseFloat(t,10);if(t===n+""){var r=e.style.lineHeight;e.style.lineHeight=t+"em",n=parseFloat(t=aB(e,"line-height"),10),r?e.style.lineHeight=r:delete e.style.lineHeight}if(-1!==t.indexOf("pt")?(n*=4,n/=3):-1!==t.indexOf("mm")?(n*=96,n/=25.4):-1!==t.indexOf("cm")?(n*=96,n/=2.54):-1!==t.indexOf("in")?n*=96:-1!==t.indexOf("pc")&&(n*=16),n=Math.round(n),"normal"===t){var o=e.nodeName,i=document.createElement(o);i.innerHTML=" ","TEXTAREA"===o.toUpperCase()&&i.setAttribute("rows","1");var a=aB(e,"font-size");i.style.fontSize=a,i.style.padding="0px",i.style.border="0px";var s=document.body;s.appendChild(i),n=i.offsetHeight,s.removeChild(i)}return n},aJ="autosize:resized",aZ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={lineHeight:null},t.textarea=null,t.onResize=function(e){t.props.onResize&&t.props.onResize(e)},t.updateLineHeight=function(){t.textarea&&t.setState({lineHeight:aK(t.textarea)})},t.onChange=function(e){var n=t.props.onChange;t.currentValue=e.currentTarget.value,n&&n(e)},t}return aW(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.maxRows,r=t.async;"number"==typeof n&&this.updateLineHeight(),"number"==typeof n||r?setTimeout(function(){return e.textarea&&aq(e.textarea)}):this.textarea&&aq(this.textarea),this.textarea&&this.textarea.addEventListener(aJ,this.onResize)},t.prototype.componentWillUnmount=function(){this.textarea&&(this.textarea.removeEventListener(aJ,this.onResize),aq.destroy(this.textarea))},t.prototype.render=function(){var e=this,t=this.props;t.onResize;var n=t.maxRows;t.onChange;var r=t.style;t.innerRef;var o=t.children,i=aY(t,["onResize","maxRows","onChange","style","innerRef","children"]),a=this.state.lineHeight,s=n&&a?a*n:null;return tb.createElement("textarea",aG({},i,{onChange:this.onChange,style:s?aG({},r,{maxHeight:s}):r,ref:function(t){e.textarea=t,"function"==typeof e.props.innerRef?e.props.innerRef(t):e.props.innerRef&&(e.props.innerRef.current=t)}}),o)},t.prototype.componentDidUpdate=function(){this.textarea&&aq.update(this.textarea)},t.defaultProps={rows:1,async:!1},t.propTypes={rows:aX.number,maxRows:aX.number,onResize:aX.func,innerRef:aX.any,async:aX.bool},t}(tb.Component);a$.TextareaAutosize=tb.forwardRef(function(e,t){return tb.createElement(aZ,aG({},e,{innerRef:t}))}),aH.__esModule=!0,aH.default=a$.TextareaAutosize;var aQ=aH&&aH.__esModule&&Object.prototype.hasOwnProperty.call(aH,"default")?aH.default:aH;class a0 extends _{constructor(e){super(e),c(this,"onKeyDown",e=>{13===e.which&&e.ctrlKey&&this.props.onSaveAndClose()}),c(this,"onKeyUp",e=>{46===e.which&&e.stopPropagation()}),this.element=v()}componentDidMount(){this.props.focus&&this.element.current&&this.element.current.focus({preventScroll:!0})}render(){return eJ.createElement(aQ,{ref:this.element,className:"r6o-editable-text",value:this.props.content,placeholder:this.props.placeholder||aU.t("Add a comment..."),disabled:!this.props.editable,onChange:this.props.onChange,onKeyUp:this.onKeyUp,onKeyDown:this.onKeyDown})}}function a1(){return(a1=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}).apply(this,arguments)}var a9=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepe
vendor: 5,161 bytes, line 9
9nd?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(((t=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&t.setAttribute("nonce",this.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t));var t,n=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(n);try{r.insertRule(e,r.cssRules.length)}catch{}}else n.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){return e.parentNode&&e.parentNode.removeChild(e)}),this.tags=[],this.ctr=0},e}(),a2="-ms-",a6="-moz-",a3="-webkit-",a4="comm",a5="rule",a8="decl",a7="@keyframes",se=Math.abs,st=String.fromCharCode,sn=Object.assign;function sr(e,t,n){return e.replace(t,n)}function so(e,t){return e.indexOf(t)}function si(e,t){return 0|e.charCodeAt(t)}function sa(e,t,n){return e.slice(t,n)}function ss(e){return e.length}function sl(e,t){return t.push(e),e}var su=1,sc=1,sp=0,sd=0,sf=0,sh="";function sm(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:su,column:sc,length:a,return:""}}function sg(e,t){return sn(sm("",null,null,"",null,null,0),e,{length:-e.length},t)}function sy(){return sf=sd<sp?si(sh,sd++):0,sc++,10===sf&&(sc=1,su++),sf}function sv(){return si(sh,sd)}function sb(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function s_(e){return su=sc=1,sp=ss(sh=e),sd=0,[]}function sS(e){var t,n;return(t=sd-1,n=function e(t){for(;sy();)switch(sf){case t:return sd;case 34:case 39:34!==t&&39!==t&&e(sf);break;case 40:41===t&&e(t);break;case 92:sy()}return sd}(91===e?e+2:40===e?e+1:e),sa(sh,t,n)).trim()}function sw(e,t,n,r,o,i,a,s,l,u,c){for(var p=o-1,d=0===o?i:[""],f=d.length,h=0,m=0,g=0;h<r;++h)for(var y=0,v=sa(e,p+1,p=se(m=a[h])),b=e;y<f;++y)(b=(m>0?d[y]+" "+v:sr(v,/&\f/g,d[y])).trim())&&(l[g++]=b);return sm(e,t,n,0===o?a5:s,l,u,c)}function sO(e,t,n,r){return sm(e,t,n,a8,sa(e,0,r),sa(e,r+1,-1),r)}function sE(e,t){for(var n="",r=e.length,o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function sA(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case a8:return e.return=e.return||e.value;case a4:return"";case a7:return e.return=e.value+"{"+sE(e.children,r)+"}";case a5:e.value=e.props.join(",")}return ss(n=sE(e.children,r))?e.return=e.value+"{"+n+"}":""}var sx=function(e,t,n){for(var r=0,o=0;r=o,o=sv(),38===r&&12===o&&(t[n]=1),!sb(o);)sy();return sa(sh,e,sd)},sC=function(e,t){var n=-1,r=44;do switch(sb(r)){case 0:38===r&&12===sv()&&(t[n]=1),e[n]+=sx(sd-1,t,n);break;case 2:e[n]+=sS(r);break;case 4:if(44===r){e[++n]=58===sv()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=st(r)}while(r=sy());return e},sk=function(e,t){var n;return n=sC(s_(e),t),sh="",n},sP=new WeakMap,sM=function(e){if(!("rule"!==e.type||!e.parent||e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if(!(1===e.props.length&&58!==t.charCodeAt(0)&&!sP.get(n))&&!r){sP.set(e,!0);for(var o=[],i=sk(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var u=0;u<a.length;u++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[u]):a[u]+" "+i[s]}}},sD=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},sT=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case a8:e.return=function e(t,n){switch(45^si(t,0)?(((n<<2^si(t,0))<<2^si(t,1))<<2^si(t,2))<<2^si(t,3):0){case 5103:return a3+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return a3+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return a3+t+a6+t+a2+t+t;case 6828:case 4268:return a3+t+a2+t+t;case 6165:return a3+t+a2+"flex-"+t+t;case 5187:return a3+t+sr(t,/(\w+).+(:[^]+)/,a3+"box-$1$2"+a2+"flex-$1$2")+t;case 5443:return a3+t+a2+"flex-item-"+sr(t,/flex-|-self/,"")+t;case 4675:return a3+t+a2+"flex-line-pack"+sr(t,/align-content|flex-|-self/,"")+t;case 5548:return a3+t+a2+sr(t,"shrink","negative")+t;case 5292:return a3+t+a2+sr(t,"basis","preferred-size")+t;case 6060:return a3+"box-"+sr(t,"-grow","")+a3+t+a2+sr(t,"grow","positive")+t;case 4554:return a3+sr(t,/([^-])(transform)/g,"$1"+a3+"$2")+t;case 6187:return sr(sr(sr(t,/(zoom-|grab)/,a3+"$1"),/(image-set)/,a3+"$1"),t,"")+t;
vendor: 4,848 bytes, line 9
9case 5495:case 3959:return sr(t,/(image-set\([^]*)/,a3+"$1$`$1");case 4968:return sr(sr(t,/(.+:)(flex-)?(.*)/,a3+"box-pack:$3"+a2+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+a3+t+t;case 4095:case 3583:case 4068:case 2532:return sr(t,/(.+)-inline(.+)/,a3+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ss(t)-1-n>6)switch(si(t,n+1)){case 109:if(45!==si(t,n+4))break;case 102:return sr(t,/(.+:)(.+)-([^]+)/,"$1"+a3+"$2-$3$1"+a6+(108==si(t,n+3)?"$3":"$2-$3"))+t;case 115:return~so(t,"stretch")?e(sr(t,"stretch","fill-available"),n)+t:t}break;case 4949:if(115!==si(t,n+1))break;case 6444:switch(si(t,ss(t)-3-(~so(t,"!important")&&10))){case 107:return sr(t,":",":"+a3)+t;case 101:return sr(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+a3+(45===si(t,14)?"inline-":"")+"box$3$1"+a3+"$2$3$1"+a2+"$2box$3")+t}break;case 5936:switch(si(t,n+11)){case 114:return a3+t+a2+sr(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return a3+t+a2+sr(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return a3+t+a2+sr(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return a3+t+a2+t+t}return t}(e.value,e.length);break;case a7:return sE([sg(e,{value:sr(e.value,"@","@"+a3)})],r);case a5:if(e.length){var o,i;return o=e.props,i=function(t){var n;switch(n=t,(n=/(::plac\w+|:read-\w+)/.exec(n))?n[0]:n){case":read-only":case":read-write":return sE([sg(e,{props:[sr(t,/:(read-\w+)/,":"+a6+"$1")]})],r);case"::placeholder":return sE([sg(e,{props:[sr(t,/:(plac\w+)/,":"+a3+"input-$1")]}),sg(e,{props:[sr(t,/:(plac\w+)/,":"+a6+"$1")]}),sg(e,{props:[sr(t,/:(plac\w+)/,a2+"input-$1")]})],r)}return""},o.map(i).join("")}}}],sj={exports:{}},sN={},sR="function"==typeof Symbol&&Symbol.for,sL=sR?Symbol.for("react.element"):60103,sI=sR?Symbol.for("react.portal"):60106,sF=sR?Symbol.for("react.fragment"):60107,sU=sR?Symbol.for("react.strict_mode"):60108,sV=sR?Symbol.for("react.profiler"):60114,sH=sR?Symbol.for("react.provider"):60109,s$=sR?Symbol.for("react.context"):60110,sz=sR?Symbol.for("react.async_mode"):60111,sB=sR?Symbol.for("react.concurrent_mode"):60111,sW=sR?Symbol.for("react.forward_ref"):60112,sG=sR?Symbol.for("react.suspense"):60113,sY=sR?Symbol.for("react.suspense_list"):60120,sX=sR?Symbol.for("react.memo"):60115,sq=sR?Symbol.for("react.lazy"):60116,sK=sR?Symbol.for("react.block"):60121,sJ=sR?Symbol.for("react.fundamental"):60117,sZ=sR?Symbol.for("react.responder"):60118,sQ=sR?Symbol.for("react.scope"):60119;function s0(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case sL:switch(e=e.type){case sz:case sB:case sF:case sV:case sU:case sG:return e;default:switch(e=e&&e.$$typeof){case s$:case sW:case sq:case sX:case sH:return e;default:return t}}case sI:return t}}}function s1(e){return s0(e)===sB}sN.AsyncMode=sz,sN.ConcurrentMode=sB,sN.ContextConsumer=s$,sN.ContextProvider=sH,sN.Element=sL,sN.ForwardRef=sW,sN.Fragment=sF,sN.Lazy=sq,sN.Memo=sX,sN.Portal=sI,sN.Profiler=sV,sN.StrictMode=sU,sN.Suspense=sG,sN.isAsyncMode=function(e){return s1(e)||s0(e)===sz},sN.isConcurrentMode=s1,sN.isContextConsumer=function(e){return s0(e)===s$},sN.isContextProvider=function(e){return s0(e)===sH},sN.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===sL},sN.isForwardRef=function(e){return s0(e)===sW},sN.isFragment=function(e){return s0(e)===sF},sN.isLazy=function(e){return s0(e)===sq},sN.isMemo=function(e){return s0(e)===sX},sN.isPortal=function(e){return s0(e)===sI},sN.isProfiler=function(e){return s0(e)===sV},sN.isStrictMode=function(e){return s0(e)===sU},sN.isSuspense=function(e){return s0(e)===sG},sN.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===sF||e===sB||e===sV||e===sU||e===sG||e===sY||"object"==typeof e&&null!==e&&(e.$$typeof===sq||e.$$typeof===sX||e.$$typeof===sH||e.$$typeof===s$||e.$$typeof===sW||e.$$typeof===sJ||e.$$typeof===sZ||e.$$typeof===sQ||e.$$typeof===sK)},sN.typeOf=s0,sj.exports=sN;var s9=sj.exports,s2={};function s6(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "}),r}s2[s9.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s2[s9.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};var s3=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},s4=function(e,t,n){s3(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next;while(void 0!==o)}},s5={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGr
9idRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},s8=/[A-Z]|^ms/g,s7=/_EMO_([^_]+?)_([^]*?)_EMO_/g,le=function(e){return 45===e.charCodeAt(1)},lt=function(e){return null!=e&&"boolean"!=typeof e},ln=(ls=function(e){return le(e)?e:e.replace(s8,"-$&").toLowerCase()},ll=Object.create(null),function(e){return void 0===ll[e]&&(ll[e]=ls(e)),ll[e]}),lr=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(s7,function(e,t,n){return lu={name:t,styles:n,next:lu},t})}return 1===s5[e]||le(e)||"number"!=typeof t||0===t?t:t+"px"};function lo(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return lu={name:n.name,styles:n.styles,next:lu},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)lu={name:r.name,styles:r.styles,next:lu},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=lo(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":lt(a)&&(r+=ln(i)+":"+lr(i,a)+";");else if(Array.isArray(a)&&"string"==typeof a[0]&&(null==t||void 0===t[a[0]]))for(var s=0;s<a.length;s++)lt(a[s])&&(r+=ln(i)+":"+lr(i,a[s])+";");else{var l=lo(e,t,a);switch(i){case"animation":case"animationName":r+=ln(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}}return r}(e,t,n);case"function":if(void 0!==e){var o=lu,i=n(e);return lu=o,lo(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var li,la,ls,ll,lu,lc=/label:\s*([^\s;\n{]+)\s*(;|$)/g,lp=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";lu=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=lo(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=lo(n,t,e[a]),r&&(o+=i[a]);lc.lastIndex=0;for(var s,l="";null!==(s=lc.exec(o));)l+="-"+s[1];return{name:function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))*0x5bd1e995+((t>>>16)*59797<<16),t^=t>>>24,n=(65535&t)*0x5bd1e995+((t>>>16)*59797<<16)^(65535&n)*0x5bd1e995+((n>>>16)*59797<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n^=255&e.charCodeAt(r),n=(65535&n)*0x5bd1e995+((n>>>16)*59797<<16)}return n^=n>>>13,(((n=(65535&n)*0x5bd1e995+((n>>>16)*59797<<16))^n>>>15)>>>0).toString(36)}(o)+l,styles:o,next:lu}},ld=!!eZ.useInsertionEffect&&eZ.useInsertionEffect||function(e){return e()},lf={}.hasOwnProperty,lh=I("undefined"!=typeof HTMLElement?function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r,o=e.stylisPlugins||sT,i={},a=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)i[t[n]]=!0;a.push(e)});var s,l,u,c,p=(l=(s=[sM,sD].concat(o,[sA,(u=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&u(e)})])).length,function(e,t,n,r){for(var o="",i=0;i<l;i++)o+=s[i](e,t,n,r)||"";return o}),d=function(e){var t,n;return sE((n=function e(t,n,r,o,i,a,s,l,u){for(var c,p=0,d=0,f=s,h=0,m=0,g=0,y=1,v=1,b=1,_=0,S="",w=i,O=a,E=o,A=S;v;)switch(g=_,_=sy()){case 40:if(108!=g&&58==si(A,f-1)){-1!=so(A+=sr(sS(_),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:A+=sS(_);break;case 9:case 10:case 13:case 32:A+=function(e){for(;(sf=sv())&&sf<33;)sy();return sb(e)>2||sb(sf)>3?"":" "}(g);break;case 92:A+=function(e,t){for(var n;--t&&sy()&&!(sf<48||sf>102||sf>57&&sf<65||sf>70&&sf<97););return n=sd+(t<6&&32==sv()&&32==sy()),sa(sh,e,n)}(sd-1,7);continue;case 47:switch(sv()){case 42:case 47:sl((c=function(e,t){for(;sy()&&e+sf!==57&&(e+sf!==84||47!==sv()););return"/*"+sa(sh,t,sd-1)+"*"+st(47===e?e:sy())}(sy(),sd),sm(c,n,r,a4,st(sf),sa(c,2,-2),0)),u);break;default:A+="/"}break;case 123*y:l[p++]=ss(A)*b;case 125*y:case 59:case 0:switch(_){case 0:case 125:v=0;case 59+d:-1==b&&(A=sr(A,/\f/g,"")),m>0&&ss(A)-f&&sl(m>32?sO(A+";",o,r,f-1):sO(sr(A," ","")+";",o,r,f-2),u);break;case 59:A+=";";default:if(sl(E=sw(A,n,r,p,d,i,l,S,w=[],O=[],f),a),123===_)if(0===d)e(A,n,E,E,w,a,f,l,O);else switch(99===h&&110===si(A,3)?100:h){case 100:case 108:case 109:case 115:e(t,E,E,o&&sl(sw(t,E,E,0,0,i,l,S,i,w=[],f),O),i,O,f,l,o?w:O);break;default:e(A,E,E,E,[""],O,0,l,O)}}p=d=m=0,y=b=1,S=A="",f=s;break;case 58:f=1+ss(A),m=g;default:if(y<1){if(123==_)--y;else if(125==_&&0==y++&&125==(sf=sd>0?si(sh,--sd):0,sc--,10===sf&&(sc=1,su--),sf))continue}switch(A+=st(_),_*y){case 38:b=d>0?1:(A+="\f",-1);break;case 44:l[p++]=(ss(A)-1)*b,b=1;break;case 64:45===sv()&&(A+=sS(sy())),h=sv(),d=f=ss(S=A+=function(e){for(;!sb(sv());)sy();return sa(sh,e,sd)}(sd)),_++;break;case 45:45===g&&2==ss(A)&&(y=0)}}return a}("",null,null,null,[""],t=s_(t=e),0,[0],t),sh="",n),p)},f={key:t,sheet:new a9({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:function(e,t,n,r){c=n,d(e?e+"{"+t.styles+"}":t.styles),r&&(f.inserted[t.name]=!0)}};return f.sheet.hydrate(a),f}({key:"css"}):null);lh.Provider;var lm=function(e){return ey(function(t,n){return e(t,er(lh),n)})},lg=I({}),ly="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",lv=function(e,t){var n={};for(var r in t)lf.call(t,r)&&(n[r]=t[r]);return n[ly]=e,n},lb=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return s3(t,n,r),ld(function(){return s4(t,n,r)}),null},l_=lm(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[ly],i=[r],a="";"string"==typeof e.className?a=s6(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=lp(i,void 0,er(lg));a+=t.key+"-"+s.name;var l={};for(var u in e)lf.call(e,u)&&"css"!==u&&u!==ly&&(l[u]=e[u]);return l.ref=n,l.className=a,g(b,null,g(lb,{cache:t,serialized:s,isStringTag:"string"==typeof o}),g(o,l))}),lS=function(e,t){var n=arguments;if(null==t||!lf.call(t,"css"))return g.apply(void 0,n);var r=n.length,o=Array(r);o[0]=l_,o[1]=lv(e,t);for(var i=2;i<r;i++)o[i]=n[i];return g.apply(null,o)};function lw(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return lp(t)}var lO=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var i=t[r];
9if(null!=i){var a=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))a=e(i);else for(var s in a="",i)i[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=i}a&&(o&&(o+=" "),o+=a)}}return o},lE=function(e){var t=e.cache,n=e.serializedArr;return ld(function(){for(var e=0;e<n.length;e++)s4(t,n[e],!1)}),null},lA=lm(function(e,t){var n=[],r=function(){for(var e=arguments.length,r=Array(e),o=0;o<e;o++)r[o]=arguments[o];var i=lp(r,t.registered);return n.push(i),s3(t,i,!1),t.key+"-"+i.name},o={css:r,cx:function(){for(var e,n,o,i,a=arguments.length,s=Array(a),l=0;l<a;l++)s[l]=arguments[l];return e=t.registered,i=s6(e,o=[],n=lO(s)),o.length<2?n:i+r(o)},theme:er(lg)},i=e.children(o);return g(b,null,g(lE,{cache:t,serializedArr:n}),i)});function lx(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function lC(e,t){if(null==e)return{};var n,r,o=lx(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function lk(e){return(lk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var lP={};Object.defineProperty(lP,"__esModule",{value:!0});var lM=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lD=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),lT=lN(tb),lj=lN(t_.exports);function lN(e){return e&&e.__esModule?e:{default:e}}var lR={position:"absolute",top:0,left:0,visibility:"hidden",height:0,overflow:"scroll",whiteSpace:"pre"},lL=["extraWidth","injectStyles","inputClassName","inputRef","inputStyle","minWidth","onAutosize","placeholderIsMinWidth"],lI=function(e,t){t.style.fontSize=e.fontSize,t.style.fontFamily=e.fontFamily,t.style.fontWeight=e.fontWeight,t.style.fontStyle=e.fontStyle,t.style.letterSpacing=e.letterSpacing,t.style.textTransform=e.textTransform},lF="undefined"!=typeof window&&!!window.navigator&&/MSIE |Trident\/|Edge\//.test(window.navigator.userAgent),lU=function(){return lF?"_"+Math.random().toString(36).substr(2,12):void 0},lV=function(e){function t(e){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");var n=function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.inputRef=function(e){n.input=e,"function"==typeof n.props.inputRef&&n.props.inputRef(e)},n.placeHolderSizerRef=function(e){n.placeHolderSizer=e},n.sizerRef=function(e){n.sizer=e},n.state={inputWidth:e.minWidth,inputId:e.id||lU(),prevId:e.id},n}return function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),lD(t,null,[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.id;return n!==t.prevId?{inputId:n||lU(),prevId:n}:null}}
9]),lD(t,[{key:"componentDidMount",value:function(){this.mounted=!0,this.copyInputStyles(),this.updateInputWidth()}},{key:"componentDidUpdate",value:function(e,t){t.inputWidth!==this.state.inputWidth&&"function"==typeof this.props.onAutosize&&this.props.onAutosize(this.state.inputWidth),this.updateInputWidth()}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"copyInputStyles",value:function(){if(!(!this.mounted||!window.getComputedStyle)){var e=this.input&&window.getComputedStyle(this.input);!e||(lI(e,this.sizer),this.placeHolderSizer&&lI(e,this.placeHolderSizer))}}},{key:"updateInputWidth",value:function(){if(!(!this.mounted||!this.sizer||void 0===this.sizer.scrollWidth)){var e=void 0;(e=(this.props.placeholder&&(!this.props.value||this.props.value&&this.props.placeholderIsMinWidth)?Math.max(this.sizer.scrollWidth,this.placeHolderSizer.scrollWidth)+2:this.sizer.scrollWidth+2)+("number"===this.props.type&&void 0===this.props.extraWidth?16:parseInt(this.props.extraWidth)||0))<this.props.minWidth&&(e=this.props.minWidth),e!==this.state.inputWidth&&this.setState({inputWidth:e})}}},{key:"getInput",value:function(){return this.input}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"renderStyles",value:function(){var e=this.props.injectStyles;return lF&&e?lT.default.createElement("style",{dangerouslySetInnerHTML:{__html:"input#"+this.state.inputId+"::-ms-clear {display: none;}"}}):null}},{key:"render",value:function(){var e=[this.props.defaultValue,this.props.value,""].reduce(function(e,t){return null!=e?e:t}),t=lM({},this.props.style);t.display||(t.display="inline-block");var n=lM({boxSizing:"content-box",width:this.state.inputWidth+"px"},this.props.inputStyle),r=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||!Object.prototype.hasOwnProperty.call(e,r)||(n[r]=e[r]);return n}(this.props,[]);return lL.forEach(function(e){return delete r[e]}),r.className=this.props.inputClassName,r.id=this.state.inputId,r.style=n,lT.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),lT.default.createElement("input",lM({},r,{ref:this.inputRef})),lT.default.createElement("div",{ref:this.sizerRef,style:lR},e),this.props.placeholder?lT.default.createElement("div",{ref:this.placeHolderSizerRef,style:lR},this.props.placeholder):null)}}]),t}(tb.Component);lV.propTypes={className:lj.default.string,defaultValue:lj.default.any,extraWidth:lj.default.oneOfType([lj.default.number,lj.default.string]),id:lj.default.string,injectStyles:lj.default.bool,inputClassName:lj.default.string,inputRef:lj.default.func,inputStyle:lj.default.object,minWidth:lj.default.oneOfType([lj.default.number,lj.default.string]),onAutosize:lj.default.func,onChange:lj.default.func,placeholder:lj.default.string,placeholderIsMinWidth:lj.default.bool,style:lj.default.object,value:lj.default.any},lV.defaultProps={minWidth:1,injectStyles:!0};var lH=lP.default=lV;function l$(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function lz(e){var t=function(e,t){if("object"!==lk(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==lk(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===lk(t)?t:String(t)}function lB(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,lz(r.key),r)}}function lW(e,t,n){return t&&lB(e.prototype,t),n&&lB(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function lG(e,t){return(lG=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function lY(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&lG(e,t)}function lX(e,t,n){return(t=lz(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function lK(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
9t%2?lq(Object(n),!0).forEach(function(t){var r;r=n[t],t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lq(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function lJ(e){return(lJ=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function lZ(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var n,r=lJ(e);return n=t?Reflect.construct(r,arguments,lJ(this).constructor):r.apply(this,arguments),n&&("object"==typeof n||"function"==typeof n)?n:function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this)}}var lQ=function(){};function l0(e,t,n){var r=[n];if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&r.push("".concat(o?"-"===o[0]?e+o:e+"__"+o:e));return r.filter(function(e){return e}).map(function(e){return String(e).trim()}).join(" ")}var l1=function(e){return Array.isArray(e)?e.filter(Boolean):"object"===lk(e)&&null!==e?[e]:[]},l9=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,lK({},lC(e,["className","clearValue","cx","getStyles","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"]))};function l2(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function l6(e){return l2(e)?window.pageYOffset:e.scrollTop}function l3(e,t){if(l2(e))return void window.scrollTo(0,t);e.scrollTop=t}function l4(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:lQ,o=l6(e),i=t-o,a=0;!function t(){var s;a+=10,l3(e,i*((s=(s=a)/n-1)*s*s+1)+o),a<n?window.requestAnimationFrame(t):r(e)}()}function l5(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}var l8=!1,l7="undefined"!=typeof window?window:{};l7.addEventListener&&l7.removeEventListener&&(l7.addEventListener("p",lQ,{get passive(){return l8=!0}}),l7.removeEventListener("p",lQ,!1));var ue=l8,ut=function(e){return"auto"===e?"bottom":e},un=I({getPortalPlacement:null}),ur=function(e){lY(n,e);var t=lZ(n);function n(){var e;l$(this,n);for(var r=arguments.length,o=Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={maxHeight:e.props.maxMenuHeight,placement:null},e.getPlacement=function(t){var n=e.props,r=n.minMenuHeight,o=n.maxMenuHeight,i=n.menuPlacement,a=n.menuPosition,s=n.menuShouldScrollIntoView,l=n.theme;if(t){var u="fixed"===a,c=function(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,s=e.theme.spacing,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/,o=document.documentElement;if("fixed"===t.position)return o;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),!(n&&"static"===t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return o}(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var c=l.getBoundingClientRect().height,p=n.getBoundingClientRect(),d=p.bottom,f=p.height,h=p.top,m=n.offsetParent.getBoundingClientRect().top,g=window.innerHeight,y=l6(l),v=parseInt(getComputedStyle(n).marginBottom,10),b=parseInt(getComputedStyle(n).marginTop,10),_=m-b,S=g-h,w=_+y,O=c-y-h,E=d-g+y+v,A=y+h-b;switch(o){case"auto":case"bottom":if(S>=f)return{placement:"bottom",maxHeight:t};if(O>=f&&!a)return i&&l4(l,E,160),{placement:"bottom",maxHeight:t};if(!a&&O>=r||a&&S>=r)return i&&l4(l,E,160),{placement:"bottom",maxHeight:a?S-v:O-v};if("auto"===o||a){var x=t,C=a?_:w;return C>=r&&(x=Math.min(C-v-s.controlHeight,t)),{placement:"top",maxHeight:x}}if("bottom"===o)return i&&l3(l,E),{placement:"bottom",maxHeight:t};break;case"top":if(_>=f)return{placement:"top",maxHeight:t};if(w>=f&&!a)return i&&l4(l,A,160),{placement:"top",maxHeight:t};if(!a&&w>=r||a&&_>=r){var k=t;return(!a&&w>=r||a&&_>=r)&&(k=a?_-b:w-b),i&&l4(l,A,160),{placement:"top",maxHeight:k}}return{placement:"bottom",maxHeight:t};default:throw Error('Invalid placement provided "'.concat(o,'".'))}return u}({maxHeight:o,menuEl:t,minHeight:r,placement:i,shouldScroll:s&&!u,isFixedPosition:u,theme:l}),p=e.context.getPortalPlacement;p&&p(c),e.setState(c)}},e.getUpdatedProps=function(){var t=e.props.menuPlacement,n=e.state.placement||ut(t);return lK(lK({},e.props),{},{placement:n,maxHeight:e.state.maxHeight})},e}return lW(n,[{key:"render",value:function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),n}(_);ur.contextType=un;var uo=function(e){var t=e.theme,n=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:"".concat(2*n,"px ").concat(3*n,"px"),textAlign:"center"}},ui=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return lS("div",a1({css:o("noOptionsMessage",e),className:r({"menu-notice":!0,"menu-notice--no-options":!0},n)},i),t)};ui.defaultProps={children:"No options"};var ua=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return lS("div",a1({css:o("loadingMessage",e),className:r({"menu-notice":!0,"menu-notice--loading":!0},n)},i),t)};ua.defaultProps={children:"Loading..."};var us,ul,uu,uc=function(e){lY(n,e);var t=lZ(n);function n(){var e;l$(this,n);for(var r=arguments.length,o=Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).state={placement:null},e.getPortalPlacement=function(t){var n=t.placement;n!==ut(e.props.menuPlacement)&&e.setState({placement:n})},e}return lW(n,[{key:"render",value:function(){var e,t=this.props,n=t.appendTo,r=t.children,o=t.className,i=t.controlElement,a=t.cx,s=t.innerProps,l=t.menuPlacement,u=t.menuPosition,c=t.getStyles,p="fixed"===u;if(!n&&!p||!i)return null;var d=this.state.placement||ut(l),f={bottom:(e=i.getBoundingClientRect()).bottom,height:e.height,left:e.left,right:e.right,top:e.top,width:e.width},h=p?0:window.pageYOffset,m=f[d]+h,g=lS("div",a1({css:c("menuPortal",{offset:m,position:u,rect:f}),className:a({"menu-portal":!0},o)},s),r);return lS(un.Provider,{value:{getPortalPlacement:this.getPortalPlacement}},n?eP(g,n):g)}}]),n}(_),up={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},ud=function(e){var t=e.size,n=lC(e,["size"]);return lS("svg",a1({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:up},n))},uf=function(e){return lS(ud,a1({size:20},e),lS("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},uh=function(e){return lS(ud,a1({size:20},e),lS("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},um=function(e){var t=e.isFocused,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorContainer",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*r,transition:"color 150ms",":hover":{color:t?o.neutral80:o.neutral40}}},ug=function(){var e=lw.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(uu||(us=[` 10 0%, 80%, 100% { opacity: 0; } 11 40% { opacity: 1; } 12`],ul||(ul=us.slice(0)),uu=Object.freeze(Object.defineProperties(us,{raw:{value:Object.freeze(ul)}
12})))),uy=function(e){var t=e.delay,n=e.offset;return lS("span",{css:lw({animation:"".concat(ug," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":null,height:"1em",verticalAlign:"top",width:"1em"},"","")})},uv=function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps,i=e.isRtl;return lS("div",a1({css:r("loadingIndicator",e),className:n({indicator:!0,"loading-indicator":!0},t)},o),lS(uy,{delay:0,offset:i}),lS(uy,{delay:160,offset:!0}),lS(uy,{delay:320,offset:!i}))};uv.defaultProps={size:4};var ub=function(e){var t=e.children;return lS("div",e.innerProps,t)},u_=function(e){var t=e.children,n=e.className,r=e.components,o=e.cx,i=e.data,a=e.getStyles,s=e.innerProps,l=e.isDisabled,u=e.removeProps,c=e.selectProps,p=r.Container,d=r.Label,f=r.Remove;return lS(lA,null,function(r){var h=r.css,m=r.cx;return lS(p,{data:i,innerProps:lK({className:m(h(a("multiValue",e)),o({"multi-value":!0,"multi-value--is-disabled":l},n))},s),selectProps:c},lS(d,{data:i,innerProps:{className:m(h(a("multiValueLabel",e)),o({"multi-value__label":!0},n))},selectProps:c},t),lS(f,{data:i,innerProps:lK({className:m(h(a("multiValueRemove",e)),o({"multi-value__remove":!0},n))},u),selectProps:c}))})};u_.defaultProps={cropWithEllipsis:!0};var uS={ClearIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return lS("div",a1({css:o("clearIndicator",e),className:r({indicator:!0,"clear-indicator":!0},n)},i),t||lS(uf,null))},Control:function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.className,i=e.isDisabled,a=e.isFocused,s=e.innerRef,l=e.innerProps,u=e.menuIsOpen;return lS("div",a1({ref:s,css:r("control",e),className:n({control:!0,"control--is-disabled":i,"control--is-focused":a,"control--menu-is-open":u},o)},l),t)},DropdownIndicator:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return lS("div",a1({css:o("dropdownIndicator",e),className:r({indicator:!0,"dropdown-indicator":!0},n)},i),t||lS(uh,null))},DownChevron:uh,CrossIcon:uf,Group:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.Heading,a=e.headingProps,s=e.innerProps,l=e.label,u=e.theme,c=e.selectProps;return lS("div",a1({css:o("group",e),className:r({group:!0},n)},s),lS(i,a1({},a,{selectProps:c,theme:u,getStyles:o,cx:r}),l),lS("div",null,t))},GroupHeading:function(e){var t=e.getStyles,n=e.cx,r=e.className,o=l9(e);o.data;var i=lC(o,["data"]);return lS("div",a1({css:t("groupHeading",e),className:n({"group-heading":!0},r)},i))},IndicatorsContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.innerProps,i=e.getStyles;return lS("div",a1({css:i("indicatorsContainer",e),className:r({indicators:!0},n)},o),t)},IndicatorSeparator:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps;return lS("span",a1({},o,{css:r("indicatorSeparator",e),className:n({"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,n=e.cx,r=e.getStyles,o=l9(e),i=o.innerRef,a=o.isDisabled,s=o.isHidden,l=lC(o,["innerRef","isDisabled","isHidden"]);return lS("div",{css:r("input",e)},lS(lH,a1({className:n({input:!0},t),inputRef:i,inputStyle:{label:"input",background:0,border:0,fontSize:"inherit",opacity:+!s,outline:0,padding:0,color:"inherit"},disabled:a},l)))},LoadingIndicator:uv,Menu:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerRef,a=e.innerProps;return lS("div",a1({css:o("menu",e),className:r({menu:!0},n),ref:i},a),t)},MenuList:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps,a=e.innerRef,s=e.isMulti;return lS("div",a1({css:o("menuList",e),className:r({"menu-list":!0,"menu-list--is-multi":s},n),ref:a},i),t)},MenuPortal:uc,LoadingMessage:ua,NoOptionsMessage:ui,MultiValue:u_,MultiValueContainer:ub,MultiValueLabel:ub,MultiValueRemove:function(e){var t=e.children;return lS("div",e.innerProps,t||lS(uf,{size:14}))},Option:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.isDisabled,a=e.isFocused,s=e.isSelected,l=e.innerRef,u=e.innerProps;return lS("div",a1({css:o("option",e),className:r({option:!0,"option--is-disabled":i,"option--is-focused":a,"option--is-selected":s},n),ref:l},u),t)},Placeholder:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return lS("div",a1({css:o("placeholder",e),className:r({placeholder:!0},n)},i),t)},SelectContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps,a=e.isDisabled,s=e.isRtl;return lS("div",a1({css:o("container",e),className:r({"--is-disabled":a,"--is-rtl":s},n)},i),t)},SingleValue:function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.isDisabled,a=e.innerProps;return lS("div",a1({css:o("singleValue",e),className:r({"single-value":!0,"single-value--is-disabled":i},n)},a),t)},ValueContainer:function(e){var t=e.children,n=e.className,r=e.cx,o=e.innerProps,i=e.isMulti,a=e.getStyles,s=e.hasValue;return lS("div",a1({css:a("valueContainer",e),className:r({"value-container":!0,"value-container--is-multi":i,"value-container--has-value":s},n)},o),t)}};function uw(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function uO(e){return function(e){if(Array.isArray(e))return uw(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return uw(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uw(e,void 0)}}(e)||function(){throw TypeError(`Invalid attempt to spread non-iterable instance. 13In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}for(var uE=Number.isNaN||function(e){return"number"==typeof e&&e!=e},uA={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},ux=function(e){return lS("span",a1({css:uA},e))},uC={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.isDisabled,o=e.tabSelectsValue;switch(e.context){case"menu":return"Use Up and Down to choose options".concat(r?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.isDisabled;
13switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"select-option":return o?"option ".concat(r," is disabled. Select another option."):"option ".concat(r,", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=void 0===n?{}:n,o=e.options,i=e.label,a=void 0===i?"":i,s=e.selectValue,l=e.isDisabled,u=e.isSelected,c=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&s)return"value ".concat(a," focused, ").concat(c(s,r),".");if("menu"===t){var p="".concat(u?"selected":"focused").concat(l?" disabled":"");return"option ".concat(a," ").concat(p,", ").concat(c(o,r),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},uk=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,i=e.isFocused,a=e.selectValue,s=e.selectProps,l=s.ariaLiveMessages,u=s.getOptionLabel,c=s.inputValue,p=s.isMulti,d=s.isOptionDisabled,f=s.isSearchable,h=s.menuIsOpen,m=s.options,g=s.screenReaderStatus,y=s.tabSelectsValue,v=s["aria-label"],b=s["aria-live"],_=et(function(){return lK(lK({},uC),l||{})},[l]),S=et(function(){var e="";if(t&&_.onChange){var n=t.option,r=t.removedValue,o=t.value,i=r||n||(Array.isArray(o)?null:o),a=lK({isDisabled:i&&d(i),label:i?u(i):""},t);e=_.onChange(a)}return e},[t,d,u,_]),w=et(function(){var e="",t=n||r,o=!!(n&&a&&a.includes(n));if(t&&_.onFocus){var i={focused:t,label:u(t),isDisabled:d(t),isSelected:o,options:m,context:t===n?"menu":"value",selectValue:a};e=_.onFocus(i)}return e},[n,r,u,d,_,m,a]),O=et(function(){var e="";if(h&&m.length&&_.onFilter){var t=g({count:o.length});e=_.onFilter({inputValue:c,resultsMessage:t})}return e},[o,c,h,_,m,g]),E=et(function(){var e="";if(_.guidance){var t=r?"value":h?"menu":"input";e=_.guidance({"aria-label":v,context:t,isDisabled:n&&d(n),isMulti:p,isSearchable:f,tabSelectsValue:y})}return e},[v,n,r,p,d,f,h,_,y]),A="".concat(w," ").concat(O," ").concat(E);return lS(ux,{"aria-live":b,"aria-atomic":"false","aria-relevant":"additions text"},i&&lS(eJ.Fragment,null,lS("span",{id:"aria-selection"},S),lS("span",{id:"aria-context"},A)))},uP=[{base:"A",letters:"Aâ¶ï¼¡\xc0\xc1\xc2ẦẤẪẨ\xc3ÄÄáº°áº®áº´áº²È¦Ç \xc4ÇẢ\xc5ǺÇÈÈẠẬẶá¸ÄȺⱯ"},{base:"AA",letters:"ê²"},{base:"AE",letters:"\xc6ǼǢ"},{base:"AO",letters:"ê´"},{base:"AU",letters:"ê¶"},{base:"AV",letters:"ê¸êº"},{base:"AY",letters:"ê¼"},{base:"B",letters:"Bâ·ï¼¢á¸á¸á¸ÉÆÆ"},{base:"C",letters:"Câ¸ï¼£ÄÄÄÄ\xc7á¸ÆÈ»ê¾"},{base:"D",letters:"Dâ¹ï¼¤á¸Äá¸á¸á¸á¸ÄÆÆÆê¹"},{base:"DZ",letters:"DZÇ"},{base:"Dz",letters:"DzÇ
"},{base:"E",letters:"Eâºï¼¥\xc8\xc9\xcaá»áº¾á»á»áº¼Äá¸á¸ÄÄ\xcbẺÄÈÈẸá»È¨á¸Äá¸á¸ÆÆ"},{base:"F",letters:"Fâ»ï¼¦á¸Æê»"},{base:"G",letters:"Gâ¼ï¼§Ç´ÄḠÄÄ Ç¦Ä¢Ç¤Æê ê½ê¾"},{base:"H",letters:"Hâ½ï¼¨Ä¤á¸¢á¸¦ÈḤḨḪĦⱧⱵê"},{base:"I",letters:"Iâ¾ï¼©\xcc\xcd\xceĨĪĬİ\xcfḮá»ÇÈÈá»Ä®á¸¬Æ"},{base:"J",letters:"Jâ¿ï¼ªÄ´É"},{base:"K",letters:"KâKḰǨḲĶḴÆâ±©êêêê¢"},{base:"L",letters:"LâLĿĹĽḶḸĻḼḺÅȽⱢⱠêêê"},{base:"LJ",letters:"Ç"},{base:"Lj",letters:"Ç"},{base:"M",letters:"Mâï¼á¸¾á¹á¹â±®Æ"},{base:"N",letters:"NâNǸÅ\xd1á¹Åá¹Å
á¹á¹È Æêê¤"},{base:"NJ",letters:"Ç"},{base:"Nj",letters:"Ç"},{base:"O",letters:"OâO\xd2\xd3\xd4á»á»á»á»\xd5á¹È¬á¹Åá¹á¹ÅȮȰ\xd6Ȫá»ÅÇÈÈÆ á»á»á» á»á»¢á»á»ÇªÇ¬\xd8Ç¾ÆÆêê"},{base:"OI",letters:"Æ¢"},{base:"OO",letters:"ê"},{base:"OU",letters:"È¢"},{base:"P",letters:"Pâ
ï¼°á¹á¹Æ¤â±£êêê"},{base:"Q",letters:"Qâï¼±êêÉ"},{base:"R",letters:"Râï¼²Åá¹ÅÈÈá¹á¹Åá¹ÉⱤêê¦ê"},{base:"S",letters:"Sâï¼³áºÅṤÅṠŠṦṢṨÈÅâ±¾ê¨ê"},{base:"T",letters:"TâTṪŤṬÈŢṰṮŦƬƮȾê"},{base:"TZ",letters:"ê¨"},{base:"U",letters:"Uâï¼µ\xd9\xda\xdbŨṸŪṺŬ\xdcÇÇÇÇỦŮŰÇÈÈÆ¯á»ªá»¨á»®á»¬á»°á»¤á¹²Å²á¹¶á¹´É"},{base:"V",letters:"VâVṼṾƲêÉ
"},{base:"VY",letters:"ê "},{base:"W",letters:"Wâï¼·áºáºÅ´áºáºáºâ±²"},{base:"X",letters:"XâXáºáº"},{base:"Y",letters:"YâYỲ\xddŶỸȲáºÅ¸á»¶á»´Æ³ÉỾ"},{base:"Z",letters:"ZâZŹáºÅ»Å½áºáºÆµÈ¤â±¿â±«ê¢"},{base:"a",letters:"aâï½áº\xe0\xe1\xe2ầấẫẩ\xe3ÄÄằắẵẳȧǡ\xe4Çả\xe5Ç»ÇÈÈạáºáº·á¸Ä
â±¥É"},{base:"aa",letters:"ê³"},{base:"ae",letters:"\xe6ǽǣ"},{base:"ao",letters:"êµ"},{base:"au",letters:"ê·"},{base:"av",letters:"ê¹ê»"},{base:"ay",letters:"ê½"},{base:"b",letters:"bâï½á¸á¸
á¸ÆÆÉ"}
13,{base:"c",letters:"câï½ÄÄÄÄ\xe7á¸ÆÈ¼ê¿â"},{base:"d",letters:"dâï½á¸Äá¸á¸á¸á¸ÄÆÉÉêº"},{base:"dz",letters:"dzÇ"},{base:"e",letters:"eâï½
\xe8\xe9\xeaá»áº¿á»
á»áº½Äá¸á¸ÄÄ\xebẻÄÈ
Èẹá»È©á¸Äá¸á¸ÉÉÇ"},{base:"f",letters:"fâï½á¸Æê¼"},{base:"g",letters:"gâï½ÇµÄḡÄÄ¡Ç§Ä£Ç¥É ê¡áµ¹ê¿"},{base:"h",letters:"hâï½Ä¥á¸£á¸§ÈḥḩḫáºÄ§â±¨â±¶É¥"},{base:"hv",letters:"Æ"},{base:"i",letters:"iâï½\xec\xed\xeeĩīÄ\xefḯá»ÇÈÈá»Ä¯á¸É¨Ä±"},{base:"j",letters:"jâï½ÄµÇ°É"},{base:"k",letters:"kâï½á¸±Ç©á¸³Ä·á¸µÆâ±ªêêê
ê£"},{base:"l",letters:"lâï½ÅÄºÄ¾á¸·á¸¹Ä¼á¸½á¸»Å¿ÅÆÉ«â±¡êêê"},{base:"lj",letters:"Ç"},{base:"m",letters:"mâï½á¸¿á¹á¹É±É¯"},{base:"n",letters:"nâï½Ç¹Å\xf1á¹
Åá¹Åá¹á¹ÆÉ²Åêê¥"},{base:"nj",letters:"Ç"},{base:"o",letters:"oâï½\xf2\xf3\xf4á»á»á»á»\xf5á¹Èá¹Åá¹á¹Åȯȱ\xf6È«á»ÅÇÈÈÆ¡á»á»á»¡á»á»£á»á»Ç«Ç\xf8Ç¿Éêêɵ"},{base:"oi",letters:"Æ£"},{base:"ou",letters:"È£"},{base:"oo",letters:"ê"},{base:"p",letters:"pâï½á¹á¹Æ¥áµ½êêê"},{base:"q",letters:"qâ ï½Éêê"},{base:"r",letters:"râ¡ï½Åá¹ÅÈÈá¹á¹Åá¹Éɽêê§ê"},{base:"s",letters:"sâ¢ï½\xdfÅá¹¥ÅṡšṧṣṩÈÅÈ¿ê©ê
áº"},{base:"t",letters:"tâ£ï½á¹«áºÅ¥á¹ÈţṱṯŧÆÊⱦê"},{base:"tz",letters:"ê©"},{base:"u",letters:"uâ¤ï½\xf9\xfa\xfbũṹūṻÅ\xfcÇÇÇÇủůűÇÈÈÆ°á»«á»©á»¯á»á»±á»¥á¹³Å³á¹·á¹µÊ"},{base:"v",letters:"vâ¥ï½á¹½á¹¿ÊêÊ"},{base:"vy",letters:"ê¡"},{base:"w",letters:"wâ¦ï½áºáºÅµáºáº
áºáºâ±³"},{base:"x",letters:"xâ§ï½áºáº"},{base:"y",letters:"yâ¨ï½á»³\xfdŷỹȳáº\xffá»·áºá»µÆ´Éỿ"},{base:"z",letters:"zâ©ï½ÅºáºÅ¼Å¾áºáºÆ¶È¥Éⱬê£"}],uM=RegExp("["+uP.map(function(e){return e.letters}).join("")+"]","g"),uD={},uT=0;uT<uP.length;uT++)for(var uj=uP[uT],uN=0;uN<uj.letters.length;uN++)uD[uj.letters[uN]]=uj.base;var uR=function(e){return e.replace(uM,function(e){return uD[e]})},uL=(void 0===cL&&(cL=function(e,t){if(e.length!==t.length)return!1;for(var n,r,o=0;o<e.length;o++)if(!((n=e[o])===(r=t[o])||uE(n)&&uE(r)))return!1;return!0}),cU=[],cV=!1,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return cV&&cI===this&&cL(e,cU)||(cF=uR.apply(this,e),cV=!0,cI=this,cU=e),cF}),uI=function(e){return e.replace(/^\s+|\s+$/g,"")},uF=function(e){return"".concat(e.label," ").concat(e.value)};function uU(e){e.in,e.out,e.onExited,e.appear,e.enter,e.exit;var t=e.innerRef;e.emotion;var n=lC(e,["in","out","onExited","appear","enter","exit","innerRef","emotion"]);return lS("input",a1({ref:t},n,{css:lw({label:"dummyInput",background:0,border:0,fontSize:"inherit",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(0)"},"","")}))}var uV=function(e){e.preventDefault(),e.stopPropagation()},uH=["boxSizing","height","overflow","paddingRight","position"],u$={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function uz(e){e.preventDefault()}function uB(e){e.stopPropagation()}function uW(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function uG(){return"ontouchstart"in window||navigator.maxTouchPoints}var uY=!!("undefined"!=typeof window&&window.document&&window.document.createElement),uX=0,uq={capture:!1,passive:!1},uK=function(){return document.activeElement&&document.activeElement.blur()},uJ={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function uZ(e){var t,n,r,o,i,a,s,l,u,c,p,d,f,h,m,g,y,v,b,_,S,w,O,E,A=e.children,x=e.lockEnabled,C=e.captureEnabled,k=(n=(t={isEnabled:void 0===C||C,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}
13).isEnabled,r=t.onBottomArrive,o=t.onBottomLeave,i=t.onTopArrive,a=t.onTopLeave,s=Q(!1),l=Q(!1),u=Q(0),c=Q(null),p=en(function(e,t){if(null!==c.current){var n=c.current,u=n.scrollTop,p=n.scrollHeight,d=n.clientHeight,f=c.current,h=t>0,m=p-d-u,g=!1;m>t&&s.current&&(o&&o(e),s.current=!1),h&&l.current&&(a&&a(e),l.current=!1),h&&t>m?(r&&!s.current&&r(e),f.scrollTop=p,g=!0,s.current=!0):!h&&-t>u&&(i&&!l.current&&i(e),f.scrollTop=0,g=!0,l.current=!0),g&&uV(e)}},[]),d=en(function(e){p(e,e.deltaY)},[p]),f=en(function(e){u.current=e.changedTouches[0].clientY},[]),h=en(function(e){var t=u.current-e.changedTouches[0].clientY;p(e,t)},[p]),J(function(){if(n){var e=c.current;return m(e),function(){g(e)}}},[n,m=en(function(e){if(e){var t=!!ue&&{passive:!1};"function"==typeof e.addEventListener&&e.addEventListener("wheel",d,t),"function"==typeof e.addEventListener&&e.addEventListener("touchstart",f,t),"function"==typeof e.addEventListener&&e.addEventListener("touchmove",h,t)}},[h,f,d]),g=en(function(e){e&&("function"==typeof e.removeEventListener&&e.removeEventListener("wheel",d,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchstart",f,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchmove",h,!1))},[h,f,d])]),function(e){c.current=e}),P=(v=(y={isEnabled:x}).isEnabled,_=void 0===(b=y.accountForScrollbars)||b,S=Q({}),w=Q(null),J(function(){if(v){var e=w.current;return O(e),function(){E(e)}}},[v,O=en(function(e){if(uY){var t=document.body,n=t&&t.style;if(_&&uH.forEach(function(e){var t=n&&n[e];S.current[e]=t}),_&&uX<1){var r=parseInt(S.current.paddingRight,10)||0,o=document.body?document.body.clientWidth:0,i=window.innerWidth-o+r||0;Object.keys(u$).forEach(function(e){var t=u$[e];n&&(n[e]=t)}),n&&(n.paddingRight="".concat(i,"px"))}t&&uG()&&(t.addEventListener("touchmove",uz,uq),e&&(e.addEventListener("touchstart",uW,uq),e.addEventListener("touchmove",uB,uq))),uX+=1}},[]),E=en(function(e){if(uY){var t=document.body,n=t&&t.style;uX=Math.max(uX-1,0),_&&uX<1&&uH.forEach(function(e){var t=S.current[e];n&&(n[e]=t)}),t&&uG()&&(t.removeEventListener("touchmove",uz,uq),e&&(e.removeEventListener("touchstart",uW,uq),e.removeEventListener("touchmove",uB,uq)))}},[])]),function(e){w.current=e});return lS(eJ.Fragment,null,x&&lS("div",{onClick:uK,css:uJ}),A(function(e){k(e),P(e)}))}var uQ={clearIndicator:um,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":null,pointerEvents:t?"none":null,position:"relative"}},control:function(e){var t=e.isDisabled,n=e.isFocused,r=e.theme,o=r.colors,i=r.borderRadius,a=r.spacing;return{label:"control",alignItems:"center",backgroundColor:t?o.neutral5:o.neutral0,borderColor:t?o.neutral10:n?o.primary:o.neutral20,borderRadius:i,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(o.primary):null,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:a.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?o.primary:o.neutral30}}},dropdownIndicator:um,group:function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading:function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:"500",marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing.baseUnit,o=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?o.neutral10:o.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},input:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,visibility:t?"hidden":"visible",color:o.neutral80}},loadingIndicator:function(e){var t=e.isFocused,n=e.size,r=e.theme,o=r.colors,i=r.spacing.baseUnit;return{label:"loadingIndicator",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*i,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},loadingMessage:uo,menu:function(e){var t,n=e.placement,r=e.theme,o=r.borderRadius,i=r.spacing,a=r.colors;return lX(t={label:"menu"},n?({bottom:"top",top:"bottom"})[n]:"bottom","100%"),lX(t,"backgroundColor",a.neutral0),lX(t,"borderRadius",o),lX(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),lX(t,"marginBottom",i.menuGutter),lX(t,"marginTop",i.menuGutter),lX(t,"position","absolute"),lX(t,"width","100%"),lX(t,"zIndex",1),t},menuList:function(e){var t=e.maxHeight,n=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:r/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},multiValueLabel:function(e){var t=e.theme,n=t.borderRadius,r=t.colors,o=e.cropWithEllipsis;return{borderRadius:n/2,color:r.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:o?"ellipsis":null,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,n=t.spacing,r=t.borderRadius,o=t.colors;return{alignItems:"center",borderRadius:r/2,backgroundColor:e.isFocused&&o.dangerLight,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}}},noOptionsMessage:uo,option:function(e){var t=e.isDisabled,n=e.isFocused,r=e.isSelected,o=e.theme,i=o.spacing,a=o.colors;return{label:"option",backgroundColor:r?a.primary:n?a.primary25:"transparent",color:t?a.neutral20:r?a.neutral0:"inherit",curs
13or:"default",display:"block",fontSize:"inherit",padding:"".concat(2*i.baseUnit,"px ").concat(3*i.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:!t&&(r?a.primary:a.primary50)}}},placeholder:function(e){var t=e.theme,n=t.spacing;return{label:"placeholder",color:t.colors.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2,position:"absolute",top:"50%",transform:"translateY(-50%)"}},singleValue:function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,o=n.colors;return{label:"singleValue",color:t?o.neutral40:o.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2,maxWidth:"calc(100% - ".concat(2*r.baseUnit,"px)"),overflow:"hidden",position:"absolute",textOverflow:"ellipsis",whiteSpace:"nowrap",top:"50%",transform:"translateY(-50%)"}},valueContainer:function(e){var t=e.theme.spacing;return{alignItems:"center",display:"flex",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}},u0={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},u1={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:l5(),captureMenuScroll:!l5(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){var n=lK({ignoreCase:!0,ignoreAccents:!0,stringify:uF,trim:!0,matchFrom:"any"},void 0),r=n.ignoreCase,o=n.ignoreAccents,i=n.stringify,a=n.trim,s=n.matchFrom,l=a?uI(t):t,u=a?uI(i(e)):i(e);return r&&(l=l.toLowerCase(),u=u.toLowerCase()),o&&(l=uL(l),u=uR(u)),"start"===s?u.substr(0,l.length)===l:u.indexOf(l)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:"0",tabSelectsValue:!0};function u9(e,t,n,r){var o=u8(e,t,n),i=u7(e,t,n),a=u4(e,t),s=u5(e,t);return{type:"option",data:t,isDisabled:o,isSelected:i,label:a,value:s,index:r}}function u2(e,t){return e.options.map(function(n,r){if(n.options){var o=n.options.map(function(n,r){return u9(e,n,t,r)}).filter(function(t){return u3(e,t)});return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=u9(e,n,t,r);return u3(e,i)?i:void 0}).filter(function(e){return!!e})}function u6(e){return e.reduce(function(e,t){return"group"===t.type?e.push.apply(e,uO(t.options.map(function(e){return e.data}))):e.push(t.data),e},[])}function u3(e,t){var n=e.inputValue,r=t.data,o=t.isSelected,i=t.label,a=t.value;return(!ct(e)||!o)&&ce(e,{label:i,value:a,data:r},void 0===n?"":n)}var u4=function(e,t){return e.getOptionLabel(t)},u5=function(e,t){return e.getOptionValue(t)};function u8(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function u7(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=u5(e,t);return n.some(function(t){return u5(e,t)===r})}function ce(e,t,n){return!e.filterOption||e.filterOption(t,n)}var ct=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},cn=1,cr=function(e){lY(n,e);var t=lZ(n);function n(e){var r;return l$(this,n),(r=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.instancePrefix="",r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focu
13sedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,o=n.onChange;t.name=n.name,r.ariaOnChange(e,t),o(e,t)},r.setValue=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"set-value",n=arguments.length>2?arguments[2]:void 0,o=r.props,i=o.closeMenuOnSelect,a=o.isMulti;r.onInputChange("",{action:"set-value"}),i&&(r.setState({inputIsHiddenAfterUpdate:!a}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,o=t.isMulti,i=t.name,a=r.state.selectValue,s=o&&r.isOptionSelected(e,a),l=r.isOptionDisabled(e,a);if(s){var u=r.getOptionValue(e);r.setValue(a.filter(function(e){return r.getOptionValue(e)!==u}),"deselect-option",e)}else{if(l)return void r.ariaOnChange(e,{action:"select-option",name:i});o?r.setValue([].concat(uO(a),[e]),"select-option",e):r.setValue(e,"select-option")}n&&r.blurInput()},r.removeValue=function(e){var t=r.props.isMulti,n=r.state.selectValue,o=r.getOptionValue(e),i=n.filter(function(e){return r.getOptionValue(e)!==o}),a=t?i:i[0]||null;r.onChange(a,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange(r.props.isMulti?[]:null,{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,t=r.state.selectValue,n=t[t.length-1],o=t.slice(0,t.length-1),i=e?o:o[0]||null;r.onChange(i,{action:"pop-value",removedValue:n})},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return l0.apply(void 0,[r.props.classNamePrefix].concat(t))},r.getOptionLabel=function(e){return u4(r.props,e)},r.getOptionValue=function(e){return u5(r.props,e)},r.getStyles=function(e,t){var n=uQ[e](t);n.boxSizing="border-box";var o=r.props.styles[e];return o?o(n,t):n},r.getElementId=function(e){return"".concat(r.instancePrefix,"-").concat(e)},r.getComponents=function(){var e;return e=r.props,lK(lK({},uS),e.components)},r.buildCategorizedOptions=function(){return u2(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return u6(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(e,t){r.setState({ariaSelection:lK({value:e},t)})},r.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(e){r.blockOptionHover=!1},r.onControlMouseDown=function(e){var t=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&r.onMenuClose():t&&r.openMenu("first"):(t&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()},r.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button)&&!r.props.isDisabled){var t=r.props,n=t.isMulti,o=t.menuIsOpen;r.focusInput(),o?(r.setState({inputIsHiddenAfterUpdate:!n}),r.onMenuClose()):r.openMenu("first"),e.preventDefault(),e.stopPropagation()}},r.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(r.clearValue(),e.stopPropagation(),r.openAfterFocus=!1,"touchend"===e.type?r.focusInput():setTimeout(function(){return r.focusInput()}))},r.onScroll=function(e){"boolean"==typeof r.props.closeMenuOnScroll?e.target instanceof HTMLElement&&l2(e.target)&&r.props.onMenuClose():"function"==typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(e)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(r.initialTouchX=n.clientX,r.initialTouchY=n.clientY,r.userIsDragging=!1)},r.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var o=Math.abs(n.clientX-r.initialTouchX),i=Math.abs(n.clientY-r.initialTouchY);r.userIsDragging=o>5||i>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(t,{action:"input-change"}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){if(r.menuListRef&&r.menuListRef.contains(document.activeElement))return void r.inputRef.focus();r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur"}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1})},r.onOptionHover=function(e){r.blockOptionHover||r.state.focusedOption===e||r.setState({focusedOption:e})},r.shouldHideSelectedOptions=function(){return ct(r.props)},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,o=t.backspaceRemovesValue,i=t.escapeClearsValue,a=t.inputValue,s=t.isClearable,l=t.isDisabled,u=t.menuIsOpen,c=t.onKeyDown,p=t.tabSelectsValue,d=t.openMenuOnFocus,f=r.state,h=f.focusedOption,m=f.focusedValue,g=f.selectValue;if(!l&&!("function"==typeof c&&(c(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;
13r.focusValue("previous");break;case"ArrowRight":if(!n||a)return;r.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)r.removeValue(m);else{if(!o)return;n?r.popValue():s&&r.clearValue()}break;case"Tab":if(r.isComposing||e.shiftKey||!u||!p||!h||d&&r.isOptionSelected(h,g))return;r.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(u){if(!h||r.isComposing)return;r.selectOption(h);break}return;case"Escape":u?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close"}),r.onMenuClose()):s&&i&&r.clearValue();break;case" ":if(a)return;if(!u){r.openMenu("first");break}if(!h)return;r.selectOption(h);break;case"ArrowUp":u?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":u?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!u)return;r.focusOption("pageup");break;case"PageDown":if(!u)return;r.focusOption("pagedown");break;case"Home":if(!u)return;r.focusOption("first");break;case"End":if(!u)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.instancePrefix="react-select-"+(r.props.instanceId||++cn),r.state.selectValue=l1(e.value),r}return lW(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"componentDidUpdate",value:function(e){var t,n,r,o,i,a=this.props,s=a.isDisabled,l=a.menuIsOpen,u=this.state.isFocused;(u&&!s&&e.isDisabled||u&&l&&!e.menuIsOpen)&&this.focusInput(),u&&s&&!e.isDisabled&&this.setState({isFocused:!1},this.onMenuClose),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(t=this.menuListRef,n=this.focusedOptionRef,r=t.getBoundingClientRect(),o=n.getBoundingClientRect(),i=n.offsetHeight/3,o.bottom+i>r.bottom?l3(t,Math.min(n.offsetTop+n.clientHeight-t.offsetHeight+i,t.scrollHeight)):o.top-i<r.top&&l3(t,Math.max(n.offsetTop-i,0)),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close"}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var s=i.indexOf(r[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a]},function(){return t.onMenuOpen()})}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===o?0:-1===o?i:o-1;break;case"next":o>-1&&o<i&&(a=o+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,i=r.indexOf(n);n||(i=-1),"up"===e?o=i>0?i-1:r.length-1:"down"===e?o=(i+1)%r.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(u0):lK(lK({},u0),this.props.theme):u0}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getValue,o=this.selectOption,i=this.setValue,a=this.props,s=a.isMulti,l=a.isRtl,u=a.options;return{clearValue:e,cx:t,getStyles:n,getValue:r,hasValue:this.hasValue(),isMulti:s,isRtl:l,options:u,selectOption:o,selectProps:a,setValue:i,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return u8(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return u7(this.props,e,t)}},{key:"filterOption",value:function(e,t){return ce(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"!=typeof this.props.formatOptionLabel)return this.getOptionLabel(e);var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,o=e.inputValue,i=e.tabIndex,a=e.form,s=this.getComponents().Input,l=this.state.inputIsHidden,u=this.commonProps,c=r||this.getElementId("input"),p={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]};return n?eJ.createElement(s,a1({},u,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:c,innerRef:this.getInputRef,isDisabled:t,isHidden:l,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:i,form:a,type:"text",value:o},p)):eJ.createElement(uU,a1({id:c,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:lQ,onFocus:this.onInputFocus,readOnly:!0,disabled:t,tabIndex:i,form:a,value:""},p))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,i=t.MultiValueRemove,a=t.SingleValue,s=t.Placeholder,l=this.commonProps,u=this.props,c=u.controlShouldRenderValue,p=u.isDisabled,d=u.isMulti,f=u.inputValue,h=u.placeholder,m=this.state,g=m.selectValue,y=m.focusedValue,v=m.isFocused;if(!this.hasValue()||!c)return f?null:eJ.createElement(s,a1({},l,{key:"placeholder",isDisabled:p,isFocused:v}),h);if(d)return g.map(function(t,a){var s=t===y;return eJ.createElement(n,a1({}
13,l,{components:{Container:r,Label:o,Remove:i},isFocused:s,isDisabled:p,key:"".concat(e.getOptionValue(t)).concat(a),index:a,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},data:t}),e.formatOptionLabel(t,"value"))});if(f)return null;var b=g[0];return eJ.createElement(a,a1({},l,{data:b,isDisabled:p}),this.formatOptionLabel(b,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return eJ.createElement(e,a1({},t,{innerProps:a,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;return e&&o?eJ.createElement(e,a1({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:i})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,i=this.state.isFocused;return eJ.createElement(n,a1({},r,{isDisabled:o,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return eJ.createElement(e,a1({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,o=t.Menu,i=t.MenuList,a=t.MenuPortal,s=t.LoadingMessage,l=t.NoOptionsMessage,u=t.Option,c=this.commonProps,p=this.state.focusedOption,d=this.props,f=d.captureMenuScroll,h=d.inputValue,m=d.isLoading,g=d.loadingMessage,y=d.minMenuHeight,v=d.maxMenuHeight,b=d.menuIsOpen,_=d.menuPlacement,S=d.menuPosition,w=d.menuPortalTarget,O=d.menuShouldBlockScroll,E=d.menuShouldScrollIntoView,A=d.noOptionsMessage,x=d.onMenuScrollToTop,C=d.onMenuScrollToBottom;if(!b)return null;var k,P=function(t,n){var r=t.type,o=t.data,i=t.isDisabled,a=t.isSelected,s=t.label,l=t.value,d=p===o,f=i?void 0:function(){return e.onOptionHover(o)},h=i?void 0:function(){return e.selectOption(o)},m="".concat(e.getElementId("option"),"-").concat(n);return eJ.createElement(u,a1({},c,{innerProps:{id:m,onClick:h,onMouseMove:f,onMouseOver:f,tabIndex:-1},data:o,isDisabled:i,isSelected:a,key:m,label:s,type:r,value:l,isFocused:d,innerRef:d?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())k=this.getCategorizedOptions().map(function(t){if("group"===t.type){var o=t.data,i=t.options,a=t.index,s="".concat(e.getElementId("group"),"-").concat(a),l="".concat(s,"-heading");return eJ.createElement(n,a1({},c,{key:s,data:o,options:i,Heading:r,headingProps:{id:l,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map(function(e){return P(e,"".concat(a,"-").concat(e.index))}))}if("option"===t.type)return P(t,"".concat(t.index))});else if(m){var M=g({inputValue:h});if(null===M)return null;k=eJ.createElement(s,c,M)}else{var D=A({inputValue:h});if(null===D)return null;k=eJ.createElement(l,c,D)}var T={minMenuHeight:y,maxMenuHeight:v,menuPlacement:_,menuPosition:S,menuShouldScrollIntoView:E},j=eJ.createElement(ur,a1({},c,T),function(t){var n=t.ref,r=t.placerProps,a=r.placement,s=r.maxHeight;return eJ.createElement(o,a1({},c,T,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:m,placement:a}),eJ.createElement(uZ,{captureEnabled:f,onTopArrive:x,onBottomArrive:C,lockEnabled:O},function(t){return eJ.createElement(i,a1({},c,{innerRef:function(n){e.getMenuListRef(n),t(n)},isLoading:m,maxHeight:s,focusedOption:p}),k)}))});return w||"fixed"===S?eJ.createElement(a,a1({},c,{appendTo:w,controlElement:this.controlRef,menuPlacement:_,menuPosition:S}
13),j):j}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,i=t.name,a=this.state.selectValue;if(!(!i||r))if(o)if(n){var s=a.map(function(t){return e.getOptionValue(t)}).join(n);return eJ.createElement("input",{name:i,type:"hidden",value:s})}else{var l=a.length>0?a.map(function(t,n){return eJ.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})}):eJ.createElement("input",{name:i,type:"hidden"});return eJ.createElement("div",null,l)}else{var u=a[0]?this.getOptionValue(a[0]):"";return eJ.createElement("input",{name:i,type:"hidden",value:u})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,i=t.isFocused,a=t.selectValue,s=this.getFocusableOptions();return eJ.createElement(uk,a1({},e,{ariaSelection:n,focusedOption:r,focusedValue:o,isFocused:i,selectValue:a,focusableOptions:s}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,i=this.props,a=i.className,s=i.id,l=i.isDisabled,u=i.menuIsOpen,c=this.state.isFocused,p=this.commonProps=this.getCommonProps();return eJ.createElement(r,a1({},p,{className:a,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:l,isFocused:c}),this.renderLiveRegion(),eJ.createElement(t,a1({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:l,isFocused:c,menuIsOpen:u}),eJ.createElement(o,a1({},p,{isDisabled:l}),this.renderPlaceholderOrValue(),this.renderInput()),eJ.createElement(n,a1({},p,{isDisabled:l}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,i=e.options,a=e.value,s=e.menuIsOpen,l=e.inputValue,u={};if(n&&(a!==n.value||i!==n.options||s!==n.menuIsOpen||l!==n.inputValue)){var c,p=l1(a),d=s?u6(u2(e,p)):[],f=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,p):null;u={selectValue:p,focusedOption:(c=t.focusedOption)&&d.indexOf(c)>-1?c:d[0],focusedValue:f,clearFocusValueOnUpdate:!1}}var h=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{};return lK(lK(lK({},u),h),{},{prevProps:e})}}]),n}(_);cr.defaultProps=u1;var co=(c$=cH=function(e){lY(n,e);var t=lZ(n);function n(){var e;l$(this,n);for(var r=arguments.length,o=Array(r),i=0;i<r;i++)o[i]=arguments[i];return(e=t.call.apply(t,[this].concat(o))).select=void 0,e.state={inputValue:void 0!==e.props.inputValue?e.props.inputValue:e.props.defaultInputValue,menuIsOpen:void 0!==e.props.menuIsOpen?e.props.menuIsOpen:e.props.defaultMenuIsOpen,value:void 0!==e.props.value?e.props.value:e.props.defaultValue},e.onChange=function(t,n){e.callProp("onChange",t,n),e.setState({value:t})},e.onInputChange=function(t,n){var r=e.callProp("onInputChange",t,n);e.setState({inputValue:void 0!==r?r:t})},e.onMenuOpen=function(){e.callProp("onMenuOpen"),e.setState({menuIsOpen:!0})},e.onMenuClose=function(){e.callProp("onMenuClose"),e.setState({menuIsOpen:!1})},e}return lW(n,[{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"getProp",value:function(e){return void 0!==this.props[e]?this.props[e]:this.state[e]}},{key:"callProp",value:function(e){if("function"==typeof this.props[e]){for(var t,n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return(t=this.props)[e].apply(t,r)}}},{key:"render",value:function(){var e=this,t=this.props;t.defaultInputValue,t.defaultMenuIsOpen,t.defaultValue;var n=lC(t,["defaultInputValue","defaultMenuIsOpen","defaultValue"]);return eJ.createElement(cr,a1({},n,{ref:function(t){e.select=t},inputValue:this.getProp("inputValue"),menuIsOpen:this.getProp("menuIsOpen"),onChange:this.onChange,onInputChange:this.onInputChange,onMenuClose:this.onMenuClose,onMenuOpen:this.onMenuOpen,value:this.getProp("value")}))}}]),n}(_),cH.defaultProps={defaultInputValue:"",defaultMenuIsOpen:!1,defaultValue:null},c$);let ci=[{value:"assessing",label:"Assessing"},{value:"bookmarking",label:"Bookmarking"},{value:"classifying",label:"Classifying"},{value:"commenting",label:"Commenting"},{value:"describing",label:"Describing"},{value:"editing",label:"Editing"},{value:"highlighting",label:"Highlighting"},{value:"identifying",label:"Identifying"},{value:"linking",label:"Linking"},{value:"moderating",label:"Moderating"},{value:"questioning",label:"Questioning"},{value:"replying",label:"Replying"},{value:"supplementing",label:"Transcription"}];var ca=e=>{let t=e.content?ci.find(t=>t.value===e.content):null;return eJ.createElement("div",{className:"r6o-purposedropdown"},eJ.createElement(co,{value:t,onChange:e.onChange,options:ci,isDisabled:!e.editable}))};let cs=e=>eJ.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1000 940",width:e.width},eJ.createElement("metadata",null,"IcoFont Icons"),eJ.createElement("title",null,"simple-down"),eJ.createElement("glyph",{glyphName:"simple-down",unicode:"",horizAdvX:"1000"}
13),eJ.createElement("path",{fill:"currentColor",d:"M200 392.6l300 300 300-300-85.10000000000002-85.10000000000002-214.89999999999998 214.79999999999995-214.89999999999998-214.89999999999998-85.10000000000002 85.20000000000005z"})),cl=e=>eJ.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"180 150 700 800",width:e.width},eJ.createElement("metadata",null,"IcoFont Icons"),eJ.createElement("title",null,"close"),eJ.createElement("glyph",{glyphName:"close",unicode:"",horizAdvX:"1000"}),eJ.createElement("path",{fill:"currentColor",d:"M709.8 206.6c-64.39999999999998 65.50000000000003-128.89999999999998 131.20000000000002-194.19999999999993 197.6-8.600000000000023 8.699999999999989-22.400000000000034 8.800000000000011-31 0-65-66-129.70000000000005-131.8-194.5-197.6-8.600000000000023-8.699999999999989-22.400000000000034-8.599999999999994-30.900000000000034 0.09999999999999432-15.699999999999989 16.200000000000017-31.099999999999994 32.30000000000001-47.099999999999994 48.80000000000001-8.5 8.800000000000011-8.299999999999983 23 0.20000000000001705 31.69999999999999 63.099999999999966 64.19999999999999 127.89999999999998 130.10000000000002 193.59999999999997 197 8.600000000000023 8.699999999999989 8.5 22.80000000000001 0 31.599999999999966-65.19999999999999 66.40000000000009-130.2 132.5-194.7 198.10000000000002-8.5 8.700000000000045-8.5 22.800000000000068 0.20000000000001705 31.399999999999977l47.79999999999998 47.90000000000009c8.600000000000023 8.599999999999909 22.600000000000023 8.599999999999909 31.100000000000023-0.10000000000002274l194.2-197.30000000000007c8.600000000000023-8.699999999999932 22.399999999999977-8.699999999999932 31 0 64.70000000000005 65.80000000000007 129.20000000000005 131.4000000000001 194.20000000000005 197.5 8.599999999999909 8.700000000000045 22.5 8.800000000000068 31 0.10000000000002274 16-16.199999999999932 31.699999999999932-32.19999999999993 47.59999999999991-48.299999999999955 8.600000000000023-8.700000000000045 8.600000000000023-22.899999999999977 0.10000000000002274-31.600000000000023-63.799999999999955-65-128.5-130.89999999999998-194.19999999999993-197.79999999999995-8.600000000000023-8.700000000000045-8.600000000000023-22.900000000000034 0-31.600000000000023 65.19999999999993-66.40000000000003 130.0999999999999-132.5 194.5-198.20000000000005 8.599999999999909-8.699999999999989 8.5-22.799999999999955-0.10000000000002274-31.49999999999997l-47.80000000000007-48.099999999999994c-8.5-8.5-22.399999999999977-8.400000000000006-31 0.29999999999998295z"})),cu=e=>eJ.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",width:e.width},eJ.createElement("path",{fill:"currentColor",d:"M268 416h24a12 12 0 0 0 12-12V188a12 12 0 0 0-12-12h-24a12 12 0 0 0-12 12v216a12 12 0 0 0 12 12zM432 80h-82.41l-34-56.7A48 48 0 0 0 274.41 0H173.59a48 48 0 0 0-41.16 23.3L98.41 80H16A16 16 0 0 0 0 96v16a16 16 0 0 0 16 16h16v336a48 48 0 0 0 48 48h288a48 48 0 0 0 48-48V128h16a16 16 0 0 0 16-16V96a16 16 0 0 0-16-16zM171.84 50.91A6 6 0 0 1 177 48h94a6 6 0 0 1 5.15 2.91L293.61 80H154.39zM368 464H80V128h288zm-212-48h24a12 12 0 0 0 12-12V188a12 12 0 0 0-12-12h-24a12 12 0 0 0-12 12v216a12 12 0 0 0 12 12z"}));var cc=e=>{let[t,n]=q(!1),[r,o]=q(!1),i=e.body.modified||e.body.created,a=e.body.creator&&eJ.createElement("div",{className:"r6o-lastmodified"},eJ.createElement("span",{className:"r6o-lastmodified-by"},e.body.creator.name||e.body.creator.id),e.body.created&&eJ.createElement("span",{className:"r6o-lastmodified-at"},eJ.createElement(nb,{datetime:e.env.toClientTime(i),locale:aU.locale()})));return e.readOnly?eJ.createElement("div",{className:"r6o-widget comment"},eJ.createElement("div",{className:"r6o-readonly-comment"},e.body.value),a):eJ.createElement("div",{className:t?"r6o-widget comment editable":"r6o-widget comment"},eJ.createElement(a0,{editable:t,content:e.body.value,onChange:t=>e.onUpdate(e.body,{...e.body,value:t.target.value}),onSaveAndClose:e.onSaveAndClose}),!t&&a,e.purposeSelector&&eJ.createElement(ca,{editable:t,content:e.body.purpose,onChange:t=>e.onUpdate(e.body,{...e.body,purpose:t.value}),onSaveAndClose:e.onSaveAndClose}),eJ.createElement("div",{className:r?"r6o-icon r6o-arrow-down r6o-menu-open":"r6o-icon r6o-arrow-down",onClick:()=>o(!r)},eJ.createElement(cs,{width:12})),r&&eJ.createElement(aV,{onEdit:e=>{n(!0),o(!1)},onDelete:t=>{e.onDelete(e.body),o(!1)},onClickOutside:()=>o(!1)}))};let cp=ci.map(e=>e.value),cd=(e,t)=>{let n=t?cp.indexOf(e.purpose)>-1:"commenting"==e.purpose||"replying"==e.purpose;return"TextualBody"===e.type&&(!Object.prototype.hasOwnProperty.call(e,"purpose")||n)},cf=(e,t)=>
13{var n,r;if(!0===t.editable)return!1;if(!1===t.editable)return!0;if("MINE_ONLY"===t.editable){let o=null==(n=e.creator)?void 0:n.id;return(null==(r=t.env.user)?void 0:r.id)!==o}return t.readOnly},ch=e=>{let t,n,r=e.annotation?e.annotation.bodies.filter(t=>cd(t,e.purposeSelector)):[],o=(t=r.find(e=>!0==e.draft),n=r.length>1,t||{type:"TextualBody",value:"",purpose:n?"replying":"commenting",draft:!0}),i=r.filter(e=>e!=o),a=!e.readOnly&&e.annotation,s=0===i.length||!e.disableReply;return eJ.createElement(eJ.Fragment,null,i.map((t,n)=>eJ.createElement(cc,{key:n,env:e.env,purposeSelector:e.purposeSelector,readOnly:cf(t,e),body:t,onUpdate:e.onUpdateBody,onDelete:e.onRemoveBody,onSaveAndClose:e.onSaveAndClose})),a&&s&&eJ.createElement("div",{className:"r6o-widget comment editable"},eJ.createElement(a0,{focus:e.focus,content:o.value,editable:!0,placeholder:i.length>0?aU.t("Add a reply..."):e.textPlaceHolder||aU.t("Add a comment..."),onChange:t=>{let n=o.value,r=t.target.value;0===n.length&&r.length>0?e.onAppendBody({...o,value:r}):n.length>0&&0===r.length?e.onRemoveBody(o):e.onUpdateBody(o,{...o,value:r})},onSaveAndClose:()=>e.onSaveAndClose()}),e.purposeSelector&&o.value.length>0&&eJ.createElement(ca,{editable:!0,content:o.purpose,onChange:t=>e.onUpdateBody(o,{...o,purpose:t.value}),onSaveAndClose:()=>e.onSaveAndClose()})))};function cm(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,lG(e,t)}
13function cg(e,t){return e.replace(RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}ch.disableDelete=(e,t)=>e.bodies.filter(e=>cd(e,t.purposeSelector)).some(e=>cf(e,t));var cy=eJ.createContext(null),cv="unmounted",cb="exited",c_="entering",cS="entered",cw="exiting",cO=function(e){function t(t,n){var r,o=e.call(this,t,n)||this,i=n&&!n.isMounting?t.enter:t.appear;return o.appearStatus=null,t.in?i?(r=cb,o.appearStatus=c_):r=cS:r=t.unmountOnExit||t.mountOnEnter?cv:cb,o.state={status:r},o.nextCallback=null,o}cm(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===cv?{status:cb}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==c_&&n!==cS&&(t=c_):(n===c_||n===cS)&&(t=cw)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===c_?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===cb&&this.setState({status:cv})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[eJ.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;if(!e&&!n)return void this.safeSetState({status:cS},function(){t.props.onEntered(i)});this.props.onEnter(i,a),this.safeSetState({status:c_},function(){t.props.onEntering(i,a),t.onTransitionEnd(l,function(){t.safeSetState({status:cS},function(){t.props.onEntered(i,a)})})})},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:eJ.findDOMNode(this);if(!t)return void this.safeSetState({status:cb},function(){e.props.onExited(r)});this.props.onExit(r),this.safeSetState({status:cw},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:cb},function(){e.props.onExited(r)})})})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:eJ.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(!n||r)return void setTimeout(this.nextCallback,0);if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)},n.render=function(){var e=this.state.status;if(e===cv)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=lx(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return eJ.createElement(cy.Provider,{value:null},"function"==typeof n?n(e,r):eJ.cloneElement(eJ.Children.only(n),r))},t}(eJ.Component);function cE(){}cO.contextType=cy,cO.propTypes={},cO.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:cE,onEntering:cE,onEntered:cE,onExit:cE,onExiting:cE,onExited:cE},cO.UNMOUNTED=cv,cO.EXITED=cb,cO.ENTERING=c_,cO.ENTERED=cS,cO.EXITING=cw;var cA=function(e,t){return e&&t&&t.split(" ").forEach(function(t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=cg(e.className,t):e.setAttribute("class",cg(e.className&&e.className.baseVal||"",t))})},cx=function(e){function t(){for(var t,n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];
13return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1];t.removeClasses(o,"exit"),t.addClass(o,i?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1];t.addClass(o,i?"appear":"enter","active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.removeClasses(o,i),t.addClass(o,i,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,o=r&&n?n+"-":"",i=r?""+o+e:n[e],a=r?i+"-active":n[e+"Active"],s=r?i+"-done":n[e+"Done"];return{baseClassName:i,activeClassName:a,doneClassName:s}},t}cm(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r,o=this.getClassNames(t)[n+"ClassName"],i=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&i&&(o+=" "+i),"active"===n&&e&&e.scrollTop,o&&(this.appliedClasses[t][n]=o,r=o,e&&r&&r.split(" ").forEach(function(t){e.classList?e.classList.add(t):(e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" "))||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,o=n.active,i=n.done;this.appliedClasses[t]={},r&&cA(e,r),o&&cA(e,o),i&&cA(e,i)},n.render=function(){var e=this.props;e.classNames;var t=lx(e,["classNames"]);return eJ.createElement(cO,a1({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(eJ.Component);cx.defaultProps={classNames:""},cx.propTypes={};var cC=e=>{let t=Q(),[n,r]=q(e.initialValue||""),[o,i]=q([]),[a,s]=q(null);J(()=>{e.focus&&t.current.querySelector("input").focus({preventScroll:!0})},[]),J(()=>{e.onChange&&e.onChange(n)},[n]);let l=()=>{if(null!==a)e.onSubmit(o[a]);else{let t=n.trim();if(t){let n=Array.isArray(e.vocabulary)?e.vocabulary.find(e=>(e.label||e).toLowerCase()===t.toLowerCase()):null;n?e.onSubmit(n):e.onSubmit(t)}}r(""),i([]),s(null)};return eJ.createElement("div",{ref:t,className:"r6o-autocomplete"},eJ.createElement("div",null,eJ.createElement("input",{onKeyDown:t=>{13===t.which?l():27===t.which?e.onCancel&&e.onCancel():o.length>0?38===t.which?null===a?s(0):s(Math.max(0,a-1)):40===t.which&&(null===a?s(0):s(Math.min(o.length-1,a+1))):40===t.which&&Array.isArray(e.vocabulary)&&i(e.vocabulary)},onChange:t=>{let{value:n}=t.target;r(n),s(null),n?(t=>{if("function"==typeof e.vocabulary){let n=(0,e.vocabulary)(t);n.then?n.then(i):i(n)}else i(e.vocabulary.filter(e=>(e.label?e.label:e).toLowerCase().startsWith(t.toLowerCase())))})(n):i([])},value:n,placeholder:e.placeholder})),eJ.createElement("ul",null,o.length>0&&o.map((e,t)=>eJ.createElement("li",{key:`${e.label?e.label:e}${t}`,onClick:l,onMouseEnter:()=>s(t),style:a===t?{backgroundColor:"#bde4ff"}:{}},e.label?e.label:e))))},ck=e=>{let t=e.annotation?e.annotation.bodies.filter(e=>"tagging"===e.purpose):[],n=t.slice().reverse().find(e=>e.draft)||{type:"TextualBody",value:"",purpose:"tagging",draft:!0},r=t.filter(e=>e!=n),[o,i]=q(!1),a=e=>e.value||e.source.label;return eJ.createElement("div",{className:"r6o-widget r6o-tag"},r.length>0&&eJ.createElement("ul",{className:"r6o-taglist"},r.map(t=>eJ.createElement("li",{key:a(t),onClick:e=>{i(o!==t&&t)}},eJ.createElement("span",{className:"r6o-label"},a(t)),!e.readOnly&&eJ.createElement(cx,{in:o===t,timeout:200,classNames:"r6o-delete"},eJ.createElement("span",{className:"r6o-delete-wrapper",onClick:n=>{n.stopPropagation(),e.onRemoveBody(t)}},eJ.createElement("span",{className:"r6o-delete"},eJ.createElement(cl,{width:12}))))))),!e.readOnly&&eJ.createElement(cC,{focus:e.focus,placeholder:e.textPlaceHolder||aU.t("Add tag..."),vocabulary:e.vocabulary||[],onChange:t=>{let r=n.value.trim(),o=t.trim();0===r.length&&o.length>0?e.onAppendBody({...n,value:o}):r.length>0&&0===o.length?e.onRemoveBody(n):r!==o&&e.onUpdateBody(n,{...n,value:o})},onSubmit:t=>{let r=t.uri?{type:"SpecificResource",purpose:"tagging",source:{id:t.uri,label:t.label}}:{type:"TextualBody",purpose:"tagging",value:t.label||t};0===n.value.trim().length?e.onAppendBody(r):e.onUpdateBody(n,r)}}))};class cP extends _{constructor(e){super(e),this.element=eJ.createRef()}renderWidget(e){let t=this.props.widget({annotation:e.annotation,readOnly:e.readOnly,...e.config,onAppendBody:(t,n)=>e.onAppendBody(t,n),onUpdateBody:(t,n,r)=>e.onUpdateBody(t,n,r),onUpsertBody:(t,n,r)=>e.onUpsertBody(t,n,r),onRemoveBody:(t,n)=>e.onRemoveBody(t,n),onBatchModify:(t,n)=>e.onBatchModify(t,n),onSetProperty:(t,n)=>e.onSetProperty(t,n),onAddContext:t=>e.onAddContext(t),onSaveAndClose:()=>e.onSaveAndClose()});for(;this.element.current.firstChild;)this.element.current.removeChild(this.element.current.lastChild);this.element.current.appendChild(t)}componentDidMount(){this.renderWidget(this.props)}componentWillReceiveProps(e){this.element.current&&this.props.annotation!==e.annotation&&this.renderWidget(e)}render(){return eJ.createElement("div",{ref:this.element,className:"widget"})}}window.React=eJ,window.ReactDOM=eJ;let cM={COMMENT:ch,TAG:ck},cD=[eJ.createElement(ch,null),eJ.createElement(ck,null)],cT=e=>{let t=(e,t,n)=>{var r;if("string"==typeof e||e instanceof String)return eJ.createElement(cM[e],t);if((null==n?void 0:n.toLowerCase())==="react")return eJ.createElement(e,t);if((null==n?void 0:n.toLowerCase())==="plainjs")return eJ.createElement(cP,{widget:e,config:t});if("function"==typeof e&&null!=(r=e.prototype)&&r.isReactComponent||"function"==typeof e&&(String(e).match(/return .+\(['|"].+['|"],\s*\{/g)||String(e).match(/return .+preact_compat/)||String(e).match(/return .+\.createElement/g)))return eJ.createElement(e,t);if("function"==typeof e||e instanceof Function)return eJ.createElement(cP,{widget:e,config:t});throw`${e} is not a valid plugin`};if(!e.widget)return t(e);{let{widget:n,force:r,...o}=e;return t(n,o,r)}};var cj=(e,t,n,r)=>{let o=e.getBoundingClientRect();t.className="r6o-editor r6o-arrow-top r6o-arrow-left";let{left:i,top:a,right:s,bottom:l}=n.getBoundingClientRect();if(t.style.top=`${l-o.top+14}px`,t.style.left=`${i-o.left}px`,r){let n=t.children[1].getBoundingClientRect(),{innerWidth:r,innerHe
13ight:i}=e.ownerDocument.defaultView;if(n.right>r&&(t.classList.remove("r6o-arrow-left"),t.classList.add("r6o-arrow-right"),t.style.left=`${s-n.width-o.left}px`),n.bottom>i){t.classList.remove("r6o-arrow-top"),t.classList.add("r6o-arrow-bottom");let e=t.children[1].getBoundingClientRect().height;t.style.top=`${a-o.top-e-14}px`}let u=t.children[1].getBoundingClientRect();if(u.top<0){t.classList.add("pushed","down"),t.style.top=`${-o.top}px`;let e=l-o.top;u.height-o.top>e&&t.classList.remove("r6o-arrow-bottom")}u.left<0&&(t.classList.add("pushed","right"),t.style.left=`${-o.left}px`),requestAnimationFrame(()=>t.style.opacity=1)}};let cN=e=>{let{top:t,left:n,width:r,height:o}=e.getBoundingClientRect();return`${t}, ${n}, ${r}, ${o}`};class cR extends _{constructor(e){super(e),c(this,"initResizeObserver",()=>{let e=void 0===this.props.autoPosition||this.props.autoPosition;if(null!=window&&window.ResizeObserver){let t=new ResizeObserver(()=>{this.state.dragged||cj(this.props.wrapperEl,this.element.current,this.props.selectedElement,e)});return t.observe(this.props.wrapperEl),()=>t.disconnect()}this.state.dragged||cj(this.props.wrapperEl,this.element.current,this.props.selectedElement,e)}),c(this,"creationMeta",e=>{let t={},{user:n}=this.props.env;return n&&(t.creator={},n.id&&(t.creator.id=n.id),n.displayName&&(t.creator.name=n.displayName),t[e.created?"modified":"created"]=this.props.env.getCurrentTimeAdjusted()),t}),c(this,"getCurrentAnnotation",()=>this.state.currentAnnotation.clone()),c(this,"hasChanges",()=>{var e;return!(null!=(e=this.props.annotation)&&e.isEqual(this.state.currentAnnotation))}),c(this,"updateCurrentAnnotation",(e,t)=>{this.setState({currentAnnotation:this.state.currentAnnotation.clone(e)},()=>{t?this.onOk():this.props.onChanged&&this.props.onChanged()})}),c(this,"onAppendBody",(e,t)=>this.updateCurrentAnnotation({body:[...this.state.currentAnnotation.bodies,{...e,...this.creationMeta(e)}]},t)),c(this,"onUpdateBody",(e,t,n)=>this.updateCurrentAnnotation({body:this.state.currentAnnotation.bodies.map(n=>n===e?{...t,...this.creationMeta(t)}:n)},n)),c(this,"onRemoveBody",(e,t)=>this.updateCurrentAnnotation({body:this.state.currentAnnotation.bodies.filter(t=>t!==e)},t)),c(this,"onUpsertBody",(e,t,n)=>{if(null==e&&null!=t)this.onAppendBody(t,n);else if(null!=e&&null!=t)this.onUpdateBody(e,t,n);else if(null!=e&&null==t){let t=this.state.currentAnnotation.bodies.find(t=>t.purpose===e.purpose);t?this.onUpdateBody(t,e,n):this.onAppendBody(e,n)}}),c(this,"onBatchModify",(e,t)=>{let n=e.filter(e=>"upsert"===e.action&&e.body).map(e=>({previous:this.state.currentAnnotation.bodies.find(t=>t.purpose===e.body.purpose),updated:{...e.body,...this.creationMeta(e.body)}})),r=e.filter(e=>"remove"===e.action).map(e=>e.body),o=[...e.filter(e=>"append"===e.action||"upsert"===e.action&&e.updated&&!e.previous).map(e=>({...e.body,...this.creationMeta(e.body)})),...n.filter(e=>!e.previous).map(e=>e.updated)],i=[...e.filter(e=>"update"===e.action||"upsert"===e.action&&e.updated&&e.previous).map(e=>({previous:e.previous,updated:{...e.updated,...this.creationMeta(e.updated)}})),...n.filter(e=>e.previous)],a=[...this.state.currentAnnotation.bodies.filter(e=>!r.includes(e)).map(e=>{let t=i.find(t=>t.previous===e);return t?t.updated:e}),...o];this.updateCurrentAnnotation({body:a},t)}),c(this,"onSetProperty",(e,t)=>{if(["@context","id","type","body","target"].includes(e))throw new Exception(`Cannot set ${e} - not allowed`);if(t)this.updateCurrentAnnotation({[e]:t});else{let t=this.currentAnnotation.clone();delete t[e],this.setState({currentAnnotation:t})}}),c(this,"onAddContext",e=>{let{currentAnnotation:t}=this.state,n=Array.isArray(t.context)?t.context:[t.context];0>n.indexOf(e)&&(n.push(e),this.updateCurrentAnnotation({"@context":n}))}),c(this,"onCancel",()=>this.props.onCancel(this.props.annotation)),c(this,"onOk",()=>{let e=e=>e.clone({body:e.bodies.map(({draft:e,...t})=>t)}),{currentAnnotation:t}=this.state;0!==t.bodies.length||this.props.allowEmpty?t.isSelection?this.props.onAnnotationCreated(e(t).toAnnotation()):this.props.onAnnotationUpdated(e(t),this.props.annotation):t.isSelection?this.onCancel():this.props.onAnnotationDeleted(this.props.annotation)}),c(this,"onDelete",()=>this.props.onAnnotationDeleted(this.props.annotation)),this.element=eJ.createRef(),this.state={currentAnnotation:e.annotation,dragged:!1,selectionBounds:cN(e.selectedElement)}}componentWillReceiveProps(e){var t;let{selectionBounds:n}=this.state,r=cN(e.selectedElement);null!=(t=this.props.annotation)&&t.isEqual(e.annotation)?this.setState({selectionBounds:r}):this.setState({currentAnnotation:e.annotation,selectionBounds:r}),this.props.modifiedTarget!=e.modifiedTarget&&this.state.currentAnnotation&&this.updateCurrentAnnotation({target:this.props.modifiedTarget}),n!=r&&this.element.current&&(this.removeObserver&&this.removeObserver(),this.removeObserver=this.initResizeObserver())}componentDidMount(){this.removeObserver=this.initResizeObserver(),new MutationObserver(()=>{this.element.current&&(this.removeObserver&&this.removeObserver(),this.removeObserver=this.initResizeObserver())}).observe(this.element.current,{childList:!0,subtree:!0})}componentWillUnmount(){this.removeObserver&&this.removeObserver()}render(){let{currentAnnotation:e}=this.state,t=this.props.widgets?this.props.widgets.map(cT):cD,n=t=>!!t.type.disableDelete&&t.type.disableDelete(e,{...t.props,readOnly:this.props.readOnly,env:this.props.env}),r=e&&(e.bodies.length>0||this.props.allowEmpty)&&!this.props.readOnly&&!e.isSelection&&!t.some(n);return eJ.createElement(t7,{disabled:!this.props.detachable,handle:".r6o-draggable",cancel:".r6o-btn, .r6o-btn *",onDrag:()=>this.setState({dragged:!0})},eJ.createElement("div",{ref:this.element,className:this.state.dragged?"r6o-editor dragged":"r6o-editor"},eJ.createElement("div",{className:"r6o-arrow"}),eJ.createElement("div",{className:"r6o-editor-inner"},t.map((t,n)=>eJ.cloneElement(t,{key:`${n}`,focus:0===n,annotation:e,readOnly:this.props.readOnly,env:this.props.env,onAppendBody:this.onAppendBody,onUpdateBody:this.onUpdateBody,onRemoveBody:this.onRemoveBody,onUpsertBody:this.onUpsertBody,onBatchModify:this.onBatchModify,onSetProperty:this.onSetProperty,onAddContext:this.onAddContext,onSaveAndClose:this.onOk})),this.props.readOnly?eJ.createElement("div",{className:"r6o-footer"},eJ.createElement("button",{className:"r6o-btn",onClick:this.onCancel},aU.t("Close"))):eJ.createElement("div",{className:this.props.detachable?"r6o-footer r6o-draggable":"r6o-footer"},r&&eJ.createElement("button",{className:"r6o-btn left delete-annotation",title:aU.t("Delete"),onClick:this.onDelete},eJ.createElement(cu,{width:12})),eJ.createElement("button",{className:"r6o-btn outline",onClick:this.onCancel},aU.t("Cancel")),eJ.createElement("button",{className:"r6o-btn ",onClick:this.onOk},aU.t("Ok"))))))}}for(var cL,cI,cF,cU,cV,cH,c$,cz,cB=new Uint8Array(16),cW=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,cG=[],cY=0;cY<256;++cY)cG.push((cY+256).toString(16).substr(1));function cX(e,t,n){var r=(e=e||{}).random||(e.rng||function(){if(!cz&&!(cz="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return cz(cB)})();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(cG[e[t+0]]+cG[e[t+1]]+cG[e[t+2]]+cG[e[t+3]]+"-"+cG[e[t+4]]+cG[e[t+5]]+"-"+cG[e[t+6]]+cG[e[t+7]]+"-"+cG[e[t+8]]+cG[e[t+9]]+"-"+cG[e[t+10]]+cG[e[t+11]]+cG[e[t+12]]+cG[e[t+13]]+cG[e[t+14]]+cG[e[t+15]]).toLowerCase();if(!("string"==typeof n&&cW.test(n)))throw TypeError("Stringified UUID is invali
13d");return n}(r)}var cq=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(o=r;0!=o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(i=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,i[o]))return!1;for(o=r;0!=o--;){var r,o,i,a=i[o];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n};let cK=class{constructor(e,t){c(this,"clone",(e,t)=>new cK({...this.underlying,...e},{...this.opts,...t})),c(this,"selector",e=>{let{target:t}=this.underlying;if(t.selector)return(Array.isArray(t.selector)?t.selector:[t.selector]).find(t=>t.type===e)}),this.underlying=e,this.opts=t}isEqual(e){return(null==e?void 0:e.type)==="Annotation"&&(this.underlying===e.underlying||!!this.underlying.id&&!!e.underlying.id&&cq(this.underlying,e.underlying))}get readOnly(){var e;return null==(e=this.opts)?void 0:e.readOnly}get id(){return this.underlying.id}get context(){return this.underlying["@context"]}get type(){return this.underlying.type}get motivation(){return this.underlying.motivation}get body(){return this.underlying.body}get target(){return this.underlying.target}get bodies(){return Array.isArray(this.underlying.body)?this.underlying.body:[this.underlying.body]}set bodies(e){this.underlying.body=e}get targets(){return Array.isArray(this.underlying.target)?this.underlying.target:[this.underlying.target]}get quote(){var e;return null==(e=this.selector("TextQuoteSelector"))?void 0:e.exact}get start(){var e;return null==(e=this.selector("TextPositionSelector"))?void 0:e.start}get end(){var e;return null==(e=this.selector("TextPositionSelector"))?void 0:e.end}};c(cK,"create",e=>new cK({...{"@context":"http://www.w3.org/ns/anno.jsonld",type:"Annotation",id:`#${cX()}`,body:[]},...e}));class cJ{constructor(e,t){c(this,"clone",e=>{let t=new cJ;return t.underlying=JSON.parse(JSON.stringify(this.underlying)),e&&(t.underlying={...t.underlying,...e}),t}),c(this,"selector",e=>{let{target:t}=this.underlying;if(t.selector)return(Array.isArray(t.selector)?t.selector:[t.selector]).find(t=>t.type===e)}),c(this,"toAnnotation",()=>new cK(Object.assign({},this.underlying,{type:"Annotation",id:`#${cX()}`}))),this.underlying={"@context":"http://www.w3.org/ns/anno.jsonld",type:"Selection",body:t||[],target:e}}get context(){return this.underlying["@context"]}get type(){return this.underlying.type}get body(){return this.underlying.body}get target(){return this.underlying.target}get targets(){return Array.isArray(this.underlying.target)?this.underlying.target:[this.underlying.target]}isEqual(e){return!!e&&cq(this.underlying,e.underlying)}get bodies(){return Array.isArray(this.underlying.body)?this.underlying.body:[this.underlying.body]}get quote(){var e;return null==(e=this.selector("TextQuoteSelector"))?void 0:e.exact}get isSelection(){return!0}}let cZ=0;class cQ{constructor(e,t,n,r,o){c(this,"dragTo",(e,t)=>{this.group.style.display=null,this.opposite=[e,t];let{x:n,y:r,w:o,h:i}=this.bbox;tr(this.mask,this.env.image,n,r,o,i),ta(this.rect,n,r,o,i)}),c(this,"getBoundingClientRect",()=>this.rect.getBoundingClientRect()),c(this,"toSelection",()=>{let{x:e,y:t,w:n,h:r}=this.bbox;return new cJ(e7(e,t,n,r,this.env.image,this.config.fragmentUnit))}),c(this,"destroy",()=>{this.group.parentNode.removeChild(this.group),this.mask=null,this.rect=null,this.group=null}),this.anchor=[e,t],this.opposite=[e,t],this.config=r,this.env=o,this.group=document.createElementNS(e6,"g"),this.mask=tn(o.image,e,t,2,2),this.mask.setAttribute("class","a9s-selection-mask"),this.rect=to(e,t,2,2),this.rect.setAttribute("class","a9s-selection"),this.group.style.pointerEvents="none",this.group.style.display="none",this.group.appendChild(this.mask),this.group.appendChild(this.rect),n.appendChild(this.group)}get bbox(){let e=this.opposite[0]-this.anchor[0],t=this.opposite[1]-this.anchor[1];return{x:e>0?this.anchor[0]:this.opposite[0],y:t>0?this.anchor[1]:this.opposite[1],w:Math.max(1,Math.abs(e)),h:Math.max(1,Math.abs(t))}}
13get element(){return this.rect}}let c0={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup"},c1=()=>"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0,c9="An implementation is missing",c2=c1();class c6 extends e2{constructor(e,t,n){super(),c(this,"enableResponsive",()=>{window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(()=>{let e=this.svg.getBoundingClientRect(),{width:t,height:n}=this.svg.viewBox.baseVal;this.scale=Math.max(t/e.width,n/e.height),this.onScaleChanged&&this.onScaleChanged(this.scale)}),this.resizeObserver.observe(this.svg.parentNode))}),c(this,"getSVGPoint",e=>{let t=this.svg.createSVGPoint();if(!c2)return t.x=e.offsetX,t.y=e.offsetY,t.matrixTransform(this.g.getCTM().inverse());{let n=this.svg.getBoundingClientRect(),r=e.clientX-n.x,o=e.clientY-n.y,{left:i,top:a}=this.svg.getBoundingClientRect();return t.x=r+i,t.y=o+a,t.matrixTransform(this.g.getScreenCTM().inverse())}}),c(this,"drawHandle",(e,t)=>{let n=document.createElementNS(e6,"g");n.setAttribute("class","a9s-handle");let r=document.createElementNS(e6,"g"),o=n=>{let r=document.createElementNS(e6,"circle");return r.setAttribute("cx",e),r.setAttribute("cy",t),r.setAttribute("r",n),r.setAttribute("transform-origin",`${e} ${t}`),r},i=this.config.handleRadius||6,a=o(i);a.setAttribute("class","a9s-handle-inner");let s=o(i+1);return s.setAttribute("class","a9s-handle-outer"),r.appendChild(s),r.appendChild(a),n.appendChild(r),n}),c(this,"setHandleXY",(e,t,n)=>{let r=e.querySelector(".a9s-handle-inner");r.setAttribute("cx",t),r.setAttribute("cy",n),r.setAttribute("transform-origin",`${t} ${n}`);let o=e.querySelector(".a9s-handle-outer");o.setAttribute("cx",t),o.setAttribute("cy",n),o.setAttribute("transform-origin",`${t} ${n}`)}),c(this,"getHandleXY",e=>{let t=e.querySelector(".a9s-handle-outer");return{x:parseFloat(t.getAttribute("cx")),y:parseFloat(t.getAttribute("cy"))}}),c(this,"scaleHandle",e=>{let t=e.querySelector(".a9s-handle-inner"),n=e.querySelector(".a9s-handle-outer"),r=this.scale*(this.config.handleRadius||6);t.setAttribute("r",r),n.setAttribute("r",r)}),this.svg=e.closest("svg"),this.g=e,this.config=t,this.env=n,this.scale=1;let{image:r}=n;(r instanceof Element||r instanceof HTMLDocument)&&this.enableResponsive()}destroy(){this.resizeObserver&&this.resizeObserver.disconnect(),this.resizeObserver=null}}class c3 extends c6{constructor(e,t,n){super(e,t,n),c(this,"attachListeners",({mouseMove:e,mouseUp:t,dblClick:n})=>{e&&(this.mouseMove=t=>{let{x:n,y:r}=this.getSVGPoint(t);this.started||(this.emit("startSelection",{x:n,y:r}),this.started=!0),e(n,r,t)},this.svg.addEventListener("mousemove",this.mouseMove)),t&&(this.mouseUp=e=>{if(0!==e.button)return;let{x:n,y:r}=this.getSVGPoint(e);t(n,r,e)},document.addEventListener("mouseup",this.mouseUp)),n&&(this.dblClick=e=>{let{x:t,y:r}=this.getSVGPoint(e);n(t,r,e)},document.addEventListener("dblclick",this.dblClick))}),c(this,"detachListeners",()=>{this.mouseMove&&this.svg.removeEventListener("mousemove",this.mouseMove),this.mouseUp&&document.removeEventListener("mouseup",this.mouseUp),this.dblClick&&document.removeEventListener("dblclick",this.dblClick)}),c(this,"start",(e,t)=>{let{x:n,y:r}=this.getSVGPoint(e),{naturalWidth:o,naturalHeight:i}=this.env.image;this.startDrawing(n<0?0:n>o?o:n,r<0?0:r>i?i:r,t,e)}),c(this,"startDrawing",e=>{throw Error(c9)}),c(this,"createEditableShape",(e,t)=>{throw Error(c9)}),this.started=!1}get isDrawing(){throw Error(c9)}}c3.supports=e=>{throw Error(c9)};let c4="An implementation is missing";class c5 extends c6{constructor(e,t,n,r){super(t,n,r),c(this,"updateState",e=>{throw Error(c4)}),this.annotation=e}get element(){throw Error(c4)}}let c8=/firefox/i.test(navigator.userAgent),c7=(e,t,n,r,o)=>{e.setAttribute("width",r),e.setAttribute("height",o),c8?(e.setAttribute("x",0),e.setAttribute("y",0),e.setAttribute("transform",`translate(${t}, ${n})`)):(e.setAttribute("x",t),e.setAttribute("y",n))},pe=(e,t,n)=>{if(!n)return e;let r=n.reduce((e,n)=>{let r=n(t);if(!r)return e;if("string"==typeof r||r instanceof String)e.className=e.className?`${e.className} ${r}`:r;else if(r.nodeType===Node.ELEMENT_NODE)e.elements=e.elements?[...e.elements,r]:[r];else{let{className:t,style:n,element:o}=r;t&&(e.className=e.className?`${e.className} ${t}`:t),n&&(e.style=e.style?`${e.style} ${n}`:n),o&&(e.elements=e.elements?[...e.elements,o]:[o])}for(let t in r)r.hasOwnProperty(t)&&t.startsWith("data-")&&(e[t]=r[t]);return e},{}),{className:o,style:i,elements:a}=r;if(o&&e4(e,o),i){let t=e.querySelector(".a9s-outer"),n=e.querySelector(".a9s-inner");t&&n?(t.setAttribute("style","display:none"),n.setAttribute("style",i)):e.setAttribute("style",i)}for(let t in a&&a.forEach(t=>((e,t)=>{let{x:n,y:r,width:o,height:i}=t.getBBox(),a=document.createElementNS(e6,"svg");a.setAttribute("class","a9s-formatter-el"),c7(a,n,r,o,i);let s=document.createElementNS(e6,"g");s.appendChild(e),a.appendChild(s),t.append(a)})(t,e)),r)r.hasOwnProperty(t)&&t.startsWith("data-")&&e.setAttribute(t,r[t])},pt=(e,t,n,r,o)=>{let i=e.querySelector(".a9s-formatter-el");i&&c7(i,t,n,r,o)},pn="corner",pr="edge";class po extends c5{constructor(e,t,n,r){super(e,t,n,r),c(this,"onScaleChanged",()=>this.handles.map(this.scaleHandle)),c(this,"setSize",(e,t,n,r)=>{ta(this.rectangle,e,t,n,r),tr(this.mask,this.env.image,e,t,n,r),pt(this.elementGroup,e,t,n,r);let[o,i,a,s,l,u,c,p]=this.handles;this.setHandleXY(o,e,t),this.setHandleXY(i,e+n,t),this.setHandleXY(a,e+n,t+r),this.setHandleXY(s,e,t+r),this.enableEdgeControls&&(this.setHandleXY(l,e+n/2,t),this.setHandleXY(u,e+n,t+r/2),this.setHandleXY(c,e+n/2,t+r),this.setHandleXY(p,e,t+r/2))}),c(this,"stretchCorners",(e,t,n)=>
13{let r=this.getHandleXY(t),o=n.x-r.x,i=n.y-r.y,a=o>0?r.x:n.x,s=i>0?r.y:n.y,l=Math.abs(o),u=Math.abs(i);return this.setSize(a,s,l,u),{x:a,y:s,w:l,h:u}}),c(this,"stretchEdge",(e,t,n)=>{let r=this.getHandleXY(t),o=ti(this.rectangle),i=e%2==0,a=i?o.w:n.x-r.x,s=i?n.y-r.y:o.h,l=i?o.x:a>0?r.x:n.x,u=i?s>0?r.y:n.y:o.y,c=Math.abs(a),p=Math.abs(s);return this.setSize(l,u,c,p),{x:l,y:u,w:c,h:p}}),c(this,"onGrab",(e,t)=>n=>{if(0!==n.button)return;this.grabbedElem=e,this.grabbedType=t;let r=this.getSVGPoint(n),{x:o,y:i}=ti(this.rectangle);this.mouseOffset={x:r.x-o,y:r.y-i}}),c(this,"onMouseMove",e=>{if(0!==e.button)return;let t=(e,t)=>e<0?0:e>t?t:e;if(this.grabbedElem){let n=this.getSVGPoint(e);if(this.grabbedElem===this.rectangle){let{w:e,h:r}=ti(this.rectangle),{naturalWidth:o,naturalHeight:i}=this.env.image,a=t(n.x-this.mouseOffset.x,o-e),s=t(n.y-this.mouseOffset.y,i-r);this.setSize(a,s,e,r),this.emit("update",e7(a,s,e,r,this.env.image,this.config.fragmentUnit))}else{let e=this.handles.indexOf(this.grabbedElem),t=this.handles[2^e],{x:r,y:o,w:i,h:a}=this.grabbedType===pn?this.stretchCorners(e,t,n):this.stretchEdge(e,t,n);this.emit("update",e7(r,o,i,a,this.env.image,this.config.fragmentUnit))}}}),c(this,"onMouseUp",e=>{this.grabbedElem=null,this.grabbedType=null,this.mouseOffset=null}),c(this,"updateState",e=>{let{x:t,y:n,w:r,h:o}=e8(e,this.env.image);this.setSize(t,n,r,o)}),this.svg.addEventListener("mousemove",this.onMouseMove),this.svg.addEventListener("mouseup",this.onMouseUp);let{x:o,y:i,w:a,h:s}=e8(e,r.image);this.containerGroup=document.createElementNS(e6,"g"),this.mask=tn(r.image,o,i,a,s),this.mask.setAttribute("class","a9s-selection-mask"),this.containerGroup.appendChild(this.mask),this.elementGroup=document.createElementNS(e6,"g"),this.elementGroup.setAttribute("class","a9s-annotation editable selected"),this.elementGroup.setAttribute("data-id",e.id),this.rectangle=to(o,i,a,s),this.rectangle.querySelector(".a9s-inner").addEventListener("mousedown",this.onGrab(this.rectangle)),this.elementGroup.appendChild(this.rectangle),this.enableEdgeControls=n.enableEdgeControls;let l=this.enableEdgeControls?[[o+a/2,i,pr],[o+a,i+s/2,pr],[o+a/2,i+s,pr],[o,i+s/2,pr]]:[];this.handles=[[o,i,pn],[o+a,i,pn],[o+a,i+s,pn],[o,i+s,pn],...l].map(e=>{let[t,n,r]=e,o=this.drawHandle(t,n);return o.addEventListener("mousedown",this.onGrab(o,r)),this.elementGroup.appendChild(o),o}),this.containerGroup.appendChild(this.elementGroup),t.appendChild(this.containerGroup),pe(this.rectangle,e,n.formatters),this.grabbedElem=null,this.grabbedType=null,this.mouseOffset=null}get element(){return this.elementGroup}destroy(){this.containerGroup.parentNode.removeChild(this.containerGroup),super.destroy()}}class pi extends c3{constructor(e,t,n){super(e,t,n),c(this,"startDrawing",(e,t)=>{this.attachListeners({mouseMove:this.onMouseMove,mouseUp:this.onMouseUp}),this.rubberband=new cQ(e,t,this.g,this.config,this.env)}),c(this,"stop",()=>{this.rubberband&&(this.rubberband.destroy(),this.rubberband=null)}),c(this,"onMouseMove",(e,t)=>{let{naturalWidth:n,naturalHeight:r}=this.env.image,o=Math.min(Math.max(e,0),n),i=Math.min(Math.max(t,0),r);this.rubberband.dragTo(o,i)}),c(this,"onMouseUp",()=>{this.detachListeners(),this.started=!1;let{width:e,height:t}=this.rubberband.getBoundingClientRect(),n=this.config.minSelectionWidth||4,r=this.config.minSelectionHeight||4;if(e>=n&&t>=r){let{element:e}=this.rubberband;e.annotation=this.rubberband.toSelection(),this.emit("complete",e)}else this.emit("cancel");this.stop()}),c(this,"createEditableShape",(e,t)=>new po(e,this.g,{...this.config,formatters:t},this.env)),this.rubberband=null}get isDrawing(){return null!=this.rubberband}}pi.identifier="rect",pi.supports=e=>{let t=e.selector("FragmentSelector");return null==t?void 0:t.conformsTo.startsWith("http://www.w3.org/TR/media-frags")};class pa{constructor(e,t){c(this,"redraw",()=>{this.mask.setAttribute("d",`M0 0 h${this.w} v${this.h} h-${this.w} z M${this.polygon.getAttribute("points")} z`)}),c(this,"destroy",()=>this.mask.parentNode.removeChild(this.mask)),this.w=e.naturalWidth,this.h=e.naturalHeight,this.polygon=t,this.mask=document.createElementNS(e6,"path"),this.mask.setAttribute("fill-rule","evenodd"),this.mask.setAttribute("class","a9s-selection-mask"),this.mask.setAttribute("d",`M0 0 h${this.w} v${this.h} h-${this.w} z M${this.polygon.getAttribute("points")} z`)}
13get element(){return this.mask}}class ps{constructor(e,t,n){c(this,"setPoints",e=>{let t=e.map(e=>`${e[0]},${e[1]}`).join(" ");this.outer.setAttribute("points",t),this.inner.setAttribute("points",t)}),c(this,"getBoundingClientRect",()=>this.outer.getBoundingClientRect()),c(this,"dragTo",e=>{this.group.style.display=null,this.mousepos=e;let t=[...this.points,e];this.setPoints(t),this.mask.redraw()}),c(this,"addPoint",()=>{let[e,t]=this.mousepos,n=this.points[this.points.length-1];Math.pow(e-n[0],2)+Math.pow(t-n[1],2)>4&&(this.points=[...this.points,this.mousepos],this.setPoints(this.points),this.mask.redraw())}),c(this,"destroy",()=>{this.group.parentNode.removeChild(this.group),this.polygon=null,this.group=null}),c(this,"toSelection",()=>new cJ(td(this.group,this.env.image))),this.points=[e],this.env=n,this.mousepos=e,this.group=document.createElementNS(e6,"g"),this.polygon=document.createElementNS(e6,"g"),this.polygon.setAttribute("class","a9s-selection"),this.outer=document.createElementNS(e6,"polygon"),this.outer.setAttribute("class","a9s-outer"),this.inner=document.createElementNS(e6,"polygon"),this.inner.setAttribute("class","a9s-inner"),this.setPoints(this.points),this.mask=new pa(n.image,this.inner),this.polygon.appendChild(this.outer),this.polygon.appendChild(this.inner),this.group.style.display="none",this.group.appendChild(this.mask.element),this.group.appendChild(this.polygon),t.appendChild(this.group)}get element(){return this.polygon}}let pl=e=>{let t=e.querySelector(".a9s-inner").points,n=[];for(let e=0;e<t.numberOfItems;e++)n.push(t.getItem(e));return n};class pu extends c5{constructor(e,t,n,r){super(e,t,n,r),c(this,"onScaleChanged",()=>this.handles.map(this.scaleHandle)),c(this,"setPoints",e=>{let t=e=>Math.round(10*e)/10,n=e.map(e=>`${t(e.x)},${t(e.y)}`).join(" ");this.shape.querySelector(".a9s-inner").setAttribute("points",n);let r=this.shape.querySelector(".a9s-outer");r.setAttribute("points",n),this.mask.redraw();let{x:o,y:i,width:a,height:s}=r.getBBox();pt(this.elementGroup,o,i,a,s)}),c(this,"onGrab",e=>t=>{0===t.button&&(this.grabbedElem=e,this.grabbedAt=this.getSVGPoint(t))}),c(this,"onMouseMove",e=>{let t=(e,t,n)=>e+t<0?-e:e+t>n?n-e:t;if(this.grabbedElem){let n=this.getSVGPoint(e);if(this.grabbedElem===this.shape){let{x:e,y:r,width:o,height:i}=this.shape.querySelector(".a9s-inner").getBBox(),{naturalWidth:a,naturalHeight:s}=this.env.image,l=t(e,n.x-this.grabbedAt.x,a-o),u=t(r,n.y-this.grabbedAt.y,s-i),c=pl(this.shape).map(e=>({x:e.x+l,y:e.y+u}));this.grabbedAt=n,this.setPoints(c),c.forEach((e,t)=>this.setHandleXY(this.handles[t],e.x,e.y)),this.emit("update",td(this.shape,this.env.image))}else{let e=this.handles.indexOf(this.grabbedElem),t=pl(this.shape).map((t,r)=>r===e?n:t);this.setPoints(t),this.setHandleXY(this.handles[e],n.x,n.y),this.emit("update",td(this.shape,this.env.image))}}}),c(this,"onMouseUp",e=>{this.grabbedElem=null,this.grabbedAt=null}),c(this,"updateState",e=>{let t=tc(e).getAttribute("points").split(" ").map(e=>{let[t,n]=e.split(",").map(e=>parseFloat(e.trim()));return{x:t,y:n}});this.setPoints(t),t.forEach((e,t)=>this.setHandleXY(this.handles[t],e.x,e.y))}),c(this,"destroy",()=>{this.containerGroup.parentNode.removeChild(this.containerGroup),super.destroy()}),this.svg.addEventListener("mousemove",this.onMouseMove),this.svg.addEventListener("mouseup",this.onMouseUp),this.containerGroup=document.createElementNS(e6,"g"),this.shape=tp(e),this.shape.querySelector(".a9s-inner").addEventListener("mousedown",this.onGrab(this.shape)),this.mask=new pa(r.image,this.shape.querySelector(".a9s-inner")),this.containerGroup.appendChild(this.mask.element),this.elementGroup=document.createElementNS(e6,"g"),this.elementGroup.setAttribute("class","a9s-annotation editable selected"),this.elementGroup.setAttribute("data-id",e.id),this.elementGroup.appendChild(this.shape),this.handles=pl(this.shape).map(e=>{let t=this.drawHandle(e.x,e.y);return t.addEventListener("mousedown",this.onGrab(t)),this.elementGroup.appendChild(t),t}),this.containerGroup.appendChild(this.elementGroup),t.appendChild(this.containerGroup),pe(this.shape,e,n.formatters),this.grabbedElem=null,this.grabbedAt=null}
13get element(){return this.elementGroup}}class pc extends c3{constructor(e,t,n){super(e,t,n),c(this,"startDrawing",(e,t,n)=>{this._isDrawing=!0,this._startOnSingleClick=n,this.attachListeners({mouseMove:this.onMouseMove,mouseUp:this.onMouseUp,dblClick:this.onDblClick}),this.rubberband=new ps([e,t],this.g,this.env)}),c(this,"stop",()=>{this.detachListeners(),this._isDrawing=!1,this.rubberband&&(this.rubberband.destroy(),this.rubberband=null)}),c(this,"onMouseMove",(e,t)=>this.rubberband.dragTo([e,t])),c(this,"onMouseUp",()=>{let{width:e,height:t}=this.rubberband.getBoundingClientRect(),n=this.config.minSelectionWidth||4,r=this.config.minSelectionHeight||4;e>=n||t>=r?this.rubberband.addPoint():this._startOnSingleClick||(this.emit("cancel"),this.stop())}),c(this,"onDblClick",()=>{this._isDrawing=!1;let e=this.rubberband.element;e.annotation=this.rubberband.toSelection(),this.emit("complete",e),this.stop()}),c(this,"createEditableShape",(e,t)=>new pu(e,this.g,{...this.config,formatters:t},this.env)),this._isDrawing=!1,this._startOnSingleClick=!1}get isDrawing(){return this._isDrawing}}pc.identifier="polygon",pc.supports=e=>{var t;let n=e.selector("SvgSelector");if(n)return null==(t=n.value)?void 0:t.match(/^<svg.*<polygon/g)};class pp extends e2{constructor(e,t,n){super(),c(this,"listTools",()=>this._registered.map(e=>e.identifier)),c(this,"registerTool",e=>{let t=e.identifier;this.listTools().includes(t)&&this.unregisterTool(t),this._registered.unshift(e)}),c(this,"unregisterTool",e=>this._registered=this._registered.filter(t=>t.identifier!==e)),c(this,"setCurrent",e=>{this._current&&this._current.destroy();let t="string"==typeof e||e instanceof String?this._registered.find(t=>t.identifier===e):e;this._current=new t(this._g,this._config,this._env),this._current.on("startSelection",e=>this.emit("startSelection",e)),this._current.on("complete",e=>this.emit("complete",e)),this._current.on("cancel",e=>this.emit("cancel",e))}),c(this,"forAnnotation",e=>{var t;let[n,...r]=e.targets,o=null==(t=n.renderedVia)?void 0:t.name,i=o?this._registered.find(e=>e.identifier===o):this._registered.find(t=>t.supports(e));return i?new i(this._g,this._config,this._env):null}),this._g=e,this._config=t,this._env=n,this._registered=[pi,pc],this.setCurrent(pi)}get current(){return this._current}}class pd{constructor(e,t,n){this.svg=e.closest("svg"),this.g=document.createElementNS(e6,"g"),this.g.setAttribute("class","a9s-crosshair");let r=document.createElementNS(e6,"line"),o=document.createElementNS(e6,"line");this.g.appendChild(r),this.g.appendChild(o),e.appendChild(this.g);let i=t=>{let n=this.svg.getBoundingClientRect(),r=t.clientX-n.x,o=t.clientY-n.y,i=this.svg.createSVGPoint(),{left:a,top:s}=this.svg.getBoundingClientRect();return i.x=r+a,i.y=o+s,i.matrixTransform(e.getScreenCTM().inverse())};this.svg.parentElement.addEventListener("pointermove",e=>{let{x:a,y:s}=i(e);r.setAttribute("x1",0),r.setAttribute("y1",s),r.setAttribute("x2",t),r.setAttribute("y2",s),o.setAttribute("x1",a),o.setAttribute("y1",0),o.setAttribute("x2",a),o.setAttribute("y2",n)})}}let pf=(e,t)=>
13{let n=(e5(t,".a9s-annotation")?t:t.closest(".a9s-annotation")).querySelector(".a9s-outer"),r=e.naturalWidth/e.width,o=e.naturalHeight/e.height,i=e.getBoundingClientRect(),a=n.getBoundingClientRect(),s=a.x-i.x,l=a.y-i.y,{width:u,height:c}=a,p=document.createElement("CANVAS"),d=p.getContext("2d");return p.width=u*r,p.height=c*o,d.drawImage(e,s*r,l*o,u*r,c*o,0,0,u*r,c*o),{snippet:p,transform:e=>[s*r+e[0],l*o+e[1]]}},ph=c1();class pm extends e2{constructor(e){super(),c(this,"_attachMouseListeners",(e,t)=>{e.addEventListener("mouseenter",()=>{var n,r;null!=(r=null==(n=this.tools)?void 0:n.current)&&r.isDrawing||(this.currentHover!==e&&this.emit("mouseEnterAnnotation",t,e),this.currentHover=e)}),e.addEventListener("mouseleave",()=>{var n,r;null!=(r=null==(n=this.tools)?void 0:n.current)&&r.isDrawing||(this.emit("mouseLeaveAnnotation",t,e),this.currentHover=null)}),ph&&(e.addEventListener("touchstart",t=>{t.stopPropagation(),this.currentHover=e}),e.addEventListener("touchend",t=>{let{clientX:n,clientY:r}=t.changedTouches[0],o=document.elementFromPoint(n,r);t.stopPropagation(),e.contains(o)&&(this.currentHover=e,this.selectCurrentHover())}))}),c(this,"_lazy",e=>{this.imageEl.naturalWidth?e():this.imageEl.addEventListener("load",()=>e())}),c(this,"_onMouseDown",e=>{var t,n;0===e.button&&(this.readOnly||this.selectedShape||this.tools.current.isDrawing?null!=(n=null==(t=this.tools)?void 0:t.current)&&n.isDrawing||this.selectedShape===this.currentHover||this.selectCurrentHover():this.tools.current.start(e,this.drawOnSingleClick&&!this.currentHover))}),c(this,"_refreshNonScalingAnnotations",()=>{let e=this.getCurrentScale();e!==1/0&&Array.from(this.svg.querySelectorAll(".a9s-non-scaling")).forEach(t=>{t.setAttribute("transform",`scale(${e})`)})}),c(this,"_scaleFormatterElements",e=>{let t=this.getCurrentScale();if(t!==1/0)if(e){let n=e.querySelector(".a9s-formatter-el");n&&n.firstChild.setAttribute("transform",`scale(${t})`)}else Array.from(this.g.querySelectorAll(".a9s-formatter-el")).forEac
13h(e=>e.firstChild.setAttribute("transform",`scale(${t})`))}),c(this,"addAnnotation",e=>{let t=((e,t)=>tf[tm(e).type](e,t))(e,this.imageEl);return e4(t,"a9s-annotation"),t.setAttribute("data-id",e.id),t.annotation=e,this._attachMouseListeners(t,e),this.g.appendChild(t),pe(t,e,this.formatters),this._scaleFormatterElements(t),t}),c(this,"addDrawingTool",e=>{var t;return null==(t=this.tools)?void 0:t.registerTool(e)}),c(this,"addOrUpdateAnnotation",(e,t)=>{this.selectedShape&&(this.selectedShape.annotation.isEqual(e)||this.selectedShape.annotation.isEqual(t))&&(this.deselect(),this.emit("select",{})),t&&this.removeAnnotation(t),this.removeAnnotation(e);let n=this.addAnnotation(e);e5(n,"a9s-non-scaling")&&n.setAttribute("transform",`scale(${this.getCurrentScale()})`),this.redraw()}),c(this,"deselect",e=>{var t;if(this.selectedShape){null==(t=this.tools)||t.current.stop();let{annotation:n}=this.selectedShape;this.selectedShape.destroy?(this.selectedShape.destroy(),this.selectedShape=null,n.isSelection||(this.addAnnotation(n),e||this.redraw())):(((e,t)=>{let n=e3(e);n.delete(t),0===n.size?e.removeAttribute("class"):e.setAttribute("class",Array.from(n).join(" "))})(this.selectedShape,"selected"),this.selectedShape=null)}}),c(this,"destroy",()=>{this.deselect(),this.currentHover=null,this.svg.parentNode.removeChild(this.svg)}),c(this,"findShape",e=>{let t=null!=e&&e.id?e.id:e;return this.g.querySelector(`.a9s-annotation[data-id="${t}"]`)}),c(this,"getAnnotations",()=>Array.from(this.g.querySelectorAll(".a9s-annotation")).map(e=>e.annotation)),c(this,"getCurrentScale",()=>{let e=this.svg.getBoundingClientRect(),{width:t,height:n}=this.svg.viewBox.baseVal;return Math.max(t/e.width,n/e.height)}),c(this,"getSelectedImageSnippet",()=>{if(this.selectedShape){let e=this.selectedShape.element||this.selectedShape;return pf(this.imageEl,e)}}),c(this,"init",e=>{this.deselect(),this.currentHover=null,Array.from(this.g.querySelectorAll(".a9s-annotation")).forEach(e=>this.g.removeChild(e)),this._lazy(()=>{e.sort((e,t)=>tg(t,this.imageEl)-tg(e,this.imageEl)),e.forEach(this.addAnnotation)}),this._refreshNonScalingAnnotations()}),c(this,"listDrawingTools",()=>{var e;return null==(e=this.tools)?void 0:e.listTools()}),c(this,"overrideId",(e,t)=>{let n=this.findShape(e);n.setAttribute("data-id",t);let{annotation:r}=n,o=r.clone({id:t});return n.annotation=o,o}),c(this,"redraw",()=>{let e=Array.from(this.g.querySelectorAll(".a9s-annotation:not(.selected)")),t=e.map(e=>e.annotation);t.sort((e,t)=>tg(t,this.imageEl)-tg(e,this.imageEl)),e.forEach(e=>this.g.removeChild(e)),t.forEach(this.addAnnotation)}),c(this,"removeAnnotation",e=>{var t,n,r;let o=e.type?e.id:e;(null==(t=this.selectedShape)?void 0:t.annotation.id)===o&&this.deselect();let i=this.findShape(e);i&&((null==(n=this.selectedShape)?void 0:n.annotation)===i.annotation&&this.deselect(),(null==(r=this.currentHover)?void 0:r.annotation)===i.annotation&&(this.currentHover=null),i.parentNode.removeChild(i))}),c(this,"removeDrawingTool",e=>{var t;return null==(t=this.tools)?void 0:t.unregisterTool(e)}),c(this,"selectAnnotation",(e,t)=>{this.selectedShape&&this.deselect();let n=this.findShape(e);if(n){this.selectShape(n,t);let e=this.selectedShape.element?this.selectedShape.element:this.selectedShape;return{annotation:n.annotation,element:e}}this.deselect()}),c(this,"selectCurrentHover",()=>{this.currentHover?this.disableSelect?this.emit("clickAnnotation",this.currentHover.annotation,this.currentHover):this.selectShape(this.currentHover):(this.deselect(),this.emit("select",{skipEvent:!0}))}),c(this,"selectShape",(e,t)=>{var n;if(t||e.annotation.isSelection||this.emit("clickAnnotation",e.annotation,e),(null==(n=this.selectedShape)?void 0:n.annotation)===e.annotation)return;this.selectedShape&&this.selectedShape.annotation!==e.annotation&&this.deselect(!0);let{annotation:r}=e;if(this.readOnly||r.readOnly)e4(e,"selected"),this.selectedShape=e,t||this.emit("select",{annotation:r,element:e,skipEvent:t});else{let n=this.tools.forAnnotation(r);n?(e.parentNode.removeChild(e),this.selectedShape=n.createEditableShape(r,this.formatters),this.selectedShape.element.annotation=r,this._scaleFormatterElements(this.selectedShape.element),this.selectedShape.on("update",e=>
13{this.selectedShape&&this.emit("updateTarget",this.selectedShape.element,e)}),setTimeout(()=>{var e;null!=this.selectedShape&&this._attachMouseListeners(this.selectedShape.element,r),t||(this.currentHover=null==(e=this.selectedShape)?void 0:e.element)},1)):this.selectedShape=e,t||this.emit("select",{annotation:r,element:this.selectedShape.element||this.selectedShape})}}),c(this,"setDrawingTool",e=>{var t;this.tools&&(null==(t=this.tools.current)||t.stop(),this.tools.setCurrent(e))}),c(this,"setVisible",e=>{e?this.svg.style.display=null:(this.deselect(),this.svg.style.display="none")}),c(this,"stopDrawing",()=>{var e,t;null==(t=null==(e=this.tools)?void 0:e.current)||t.stop()});let{wrapperEl:t,config:n,env:r}=e;this.imageEl=r.image,this.readOnly=n.readOnly,n.formatter?this.formatters=[n.formatter]:n.formatters&&(this.formatters=Array.isArray(n.formatters)?n.formatters:[n.formatters]),this.disableSelect=n.disableSelect,this.drawOnSingleClick=n.drawOnSingleClick,this.svg=document.createElementNS(e6,"svg"),this.svg.setAttribute("tabindex",0),ph?(this.svg.setAttribute("class","a9s-annotationlayer touch"),(e=>{let t=null,n=(e,t)=>new MouseEvent(e,{screenX:t.screenX,screenY:t.screenY,clientX:t.clientX,clientY:t.clientY,pageX:t.pageX,pageY:t.pageY,bubbles:!0}),r=e=>{let r=e.changedTouches[0],o=n(c0[e.type],r);r.target.dispatchEvent(o),e.preventDefault(),("touchstart"===e.type||"touchmove"===e.type)&&(t&&clearTimeout(t),t=setTimeout(()=>{let e=n("dblclick",r);r.target.dispatchEvent(e)},800)),"touchend"===e.type&&t&&clearTimeout(t)};e.addEventListener("touchstart",r,!0),e.addEventListener("touchmove",r,!0),e.addEventListener("touchend",r,!0),e.addEventListener("touchcancel",r,!0)})(this.svg),this.svg.addEventListener("touchstart",()=>{this.currentHover=null,this.selectCurrentHover()})):this.svg.setAttribute("class","a9s-annotationlayer");let{naturalWidth:o,naturalHeight:i}=this.imageEl;if(o||i)this.svg.setAttribute("viewBox",`0 0 ${o} ${i}`);else{let{width:e,height:t}=this.imageEl;this.svg.setAttribute("viewBox",`0 0 ${e} ${t}`),"img"!==this.imageEl.nodeName.toLowerCase()&&(this.imageEl.naturalWidth=e,this.imageEl.naturalHeight=t),this.imageEl.addEventListener("load",()=>{this.emit("load",this.imageEl.src),this.svg.setAttribute("viewBox",`0 0 ${this.imageEl.naturalWidth} ${this.imageEl.naturalHeight}`)})}this.g=document.createElementNS(e6,"g"),this.svg.appendChild(this.g),t.appendChild(this.svg),n.crosshair&&(this.crosshair=new pd(this.g,o,i),e4(this.svg,"no-cursor")),this.selectedShape=null,this.tools=new pp(this.g,n,r),this.tools.on("startSelection",e=>this.emit("startSelection",e)),this.tools.on("cancel",this.selectCurrentHover),this.tools.on("complete",this.selectShape),this.svg.addEventListener("mousedown",this._onMouseDown),this.currentHover=null,window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(()=>{this._refreshNonScalingAnnotations(),this._scaleFormatterElements()}),this.resizeObserver.observe(this.svg.parentNode))}}var pg=0;function py(e,t,n,o,i){var a,s,l={};for(s in t)"ref"==s?a=t[s]:l[s]=t[s];var u={type:e,props:l,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--pg,__source:o,__self:i};if("function"==typeof e&&(a=e.defaultProps))for(s in a)void 0===l[s]&&(l[s]=a[s]);return r.vnode&&r.vnode(u),u}class pv extends _{constructor(e){super(e),c(this,"clearState",e=>this.setState({selectedAnnotation:null,selectedDOMElement:null,modifiedTarget:null,beforeHeadlessModify:null},e)),c(this,"forwardEvent",(e,t)=>{this.annotationLayer.on(e,(e,n)=>{this.props[t](e.clone(),n)})}),c(this,"onKeyUp",e=>{if(27===e.which){this.annotationLayer.stopDrawing();let{selectedAnnotation:e}=this.state;e&&(this.cancelSelected(),this.props.onCancelSelected(e))}else if(46===e.which){let{disableDeleteKey:e}=this.props.config;if(!e){let{selectedAnnotation:e}=this.state;e&&(e.isSelection?this.onCancelAnnotation(e):this.onDeleteAnnotation(e))}}}),c(this,"handleStartSelect",e=>this.props.onSelectionStarted(e)),c(this,"handleSelect",(e,t)=>{this.state.editorDisabled?this.onHeadlessSelect(e,t):this.onNormalSelect(e,t)}),c(this,"onNormalSelect",(e,t)=>{let{annotation:n,element:r}=e;if(n){let e=e=>{this.setState({selectedAnnotation:n,selectedDOMElement:r,modifiedTarget:null,beforeHeadlessModify:null},()=>{t||(n.isSelection?this.props.onSelectionCreated(n.clone()):this.props.onAnnotationSelected(n.clone(),r)),e&&e()})},{selectedAnnotation:o}=this.state;o&&!o.isEqual(n)?this.clearState(()=>{this.props.onCancelSelected(o.clone()),e(()=>this.props.onChangeSelected(n.clone(),o.clone()))}):e()}else{let{selectedAnnotation:e}=this.state;e?this.clearState(()=>{this.props.onCancelSelected(e)}):this.clearState()}}),c(this,"onHeadlessSelect",(e,t)=>{this.saveSelected().then(()=>{this.onNormalSelect(e,t);let{annotation:n}=e;if(n&&!n.isSelection){let t=this.annotationLayer.selectAnnotation(e.annotation,!0);this.setState({selectedDOMElement:t.element})}})}),c(this,"handleUpdateTarget",(e,t)=>{this.setState({selectedDOMElement:e,modifiedTarget:t});let n=JSON.parse(JSON.stringify(t));this.props.onSelectionTargetChanged(n)}),c(this,"overrideAnnotationId",e=>t=>{let{id:n}=e;this.state.selectedAnnotation?this.clearState(()=>{this.annotationLayer.overrideId(n,t)}):this.annotationLayer.overrideId(n,t)}),c(this,"onCreateOrUpdateAnnotation",(e,t)=>(n,r)=>{let o=n.isSelection?n.toAnnotation():n;o=this.state.modifiedTarget?o.clone({target:this.state.modifiedTarget}):o.clone(),this.clearState(()=>{this.annotationLayer.deselect(),this.annotationLayer.addOrUpdateAnnotation(o,r),r?this.props[e](o,r.clone()):this.props[e](o,this.overrideAnnotationId(o)),t&&t()})}),c(this,"onDeleteAnnotation",e=>{this.clearState(),this.annotationLayer.removeAnnotation(e),this.props.onAnnotationDeleted(e)}),c(this,"onCancelAnnotation",(e,t)=>{this.annotationLayer.deselect(),this.props.onCancelSelected(e),this.clearState(t)}),c(this,"addAnnotation",e=>this.annotationLayer.addOrUpdateAnnotation(e.clone())),c(this,"addDrawingTool",e=>this.annotationLayer.addDrawingTool(e)),c(this,"cancelSelected",()=>new Promise(e=>{this.annotationLayer.deselect(),this.state.selectedAnnotation?this.clearState(e):e()})),c(this,"getAnnotationById",e=>{var t;return null==(t=this.annotationLayer.findShape(e))?void 0:t.annotation}),c(this,"getAnnotations",()=>this.annotationLayer.getAnnotations().map(e=>e.clone())),c(this,"getImageSnippetById",e=>{let t=this.annotationLayer.findShape(e);if(t)return pf(this.props.env.image,t)}),c(this,"getSelected",()=>{var e;if(this.state.selectedAnnotation)return this.state.editorDisabled?this.state.selectedAnnotation:null==(e=this._editor.current)?void 0:e.getCurrentAnnotation()}),c(this,"getSelectedImageSnippet",()=>this.annotationLayer.getSelectedImageSnippet()),c(this,"listDrawingTools",()=>this.annotationLayer.listDrawingTools()),c(this,"removeAnnotation",e=>{this.annotationLayer.removeAnnotation(e),this.state.selectedAnnotation&&this.setState({selectedAnnotation:null})}),c(this,"removeDrawingTool",e=>this.annotationLayer.removeDrawingTool(e)),c(this,"saveSelected",()=>new Promise(e=>{let t=this.state.selectedAnnotation;if(t)if(this._editor.current)this._editor.current.onOk(),e();else if(t.isSelection)t.bodies.length>0||this.props.config.allowEmpty?this.onCreateOrUpdateAnnotation("onAnnotationCreated",e)(t):(this.annotationLayer.deselect(),e());else{let{beforeHeadlessModify:n,modifiedTarget:r}=this.state;n?this.onCreateOrUpdateAnnotation("onAnnotationUpdated",e)(t,n):r?this.onCreateOrUpdateAnnotation("onAnnotationUpdated",e)(t,t):this.onCancelAnnotation(t,e)}else e()})),c(this,"selectAnnotation",e=>{let t=this.annotationLayer.selectAnnotation(e,!0);if(t)return this.handleSelect(t,!0),t.annotation.clone();this.clearState()}),c(this,"setAnnotations",e=>this.annotationLayer.init(e.map(e=>e.clone()))),c(this,"setDrawingTool",e=>this.annotationLayer.setDrawingTool(e)),c(this,"setVisible",e=>{this.annotationLayer.setVisible(e),e||this.clearState()}),c(this,"updateSelected",(e,t)=>new Promise(n=>{this.state.selectedAnnotation&&(t?this.state.selectedAnnotation.isSelection?this.onCreateOrUpdateAnnotation("onAnnotationCreated",
13n)(e):this.onCreateOrUpdateAnnotation("onAnnotationUpdated",n)(e,this.state.selectedAnnotation):this.setState({selectedAnnotation:e,beforeHeadlessModify:this.state.beforeHeadlessModify||this.state.selectedAnnotation},n))})),this.state={selectedAnnotation:null,selectedDOMElement:null,modifiedTarget:null,readOnly:this.props.config.readOnly,editorDisabled:this.props.config.disableEditor,widgets:this.props.config.widgets,beforeHeadlessModify:null},this._editor=eJ.createRef()}componentDidMount(){this.annotationLayer=new pm(this.props),this.annotationLayer.on("load",this.props.onLoad),this.annotationLayer.on("startSelection",this.handleStartSelect),this.annotationLayer.on("select",this.handleSelect),this.annotationLayer.on("updateTarget",this.handleUpdateTarget),this.forwardEvent("clickAnnotation","onClickAnnotation"),this.forwardEvent("mouseEnterAnnotation","onMouseEnterAnnotation"),this.forwardEvent("mouseLeaveAnnotation","onMouseLeaveAnnotation"),document.addEventListener("keyup",this.onKeyUp)}componentWillUnmount(){this.annotationLayer.destroy(),document.removeEventListener("keyup",this.onKeyUp)}get disableEditor(){return this.state.editorDisabled}set disableEditor(e){this.setState({editorDisabled:e})}get disableSelect(){return this.annotationLayer.disableSelect}set disableSelect(e){this.annotationLayer.disableSelect=e}get formatters(){return this.annotationLayer.formatters}set formatters(e){this.annotationLayer.formatters=e,this.annotationLayer.redraw()}get readOnly(){return this.state.readOnly}set readOnly(e){this.annotationLayer.readOnly=e,this.setState({readOnly:e})}get widgets(){return this.state.widgets}set widgets(e){this.setState({widgets:e})}render(){var e;let t=this.state.selectedAnnotation&&!this.state.editorDisabled,n=this.state.readOnly||(null==(e=this.state.selectedAnnotation)?void 0:e.readOnly);return t&&py(cR,{ref:this._editor,detachable:!0,wrapperEl:this.props.wrapperEl,annotation:this.state.selectedAnnotation,modifiedTarget:this.state.modifiedTarget,selectedElement:this.state.selectedDOMElement,readOnly:n,allowEmpty:this.props.config.allowEmpty,widgets:this.state.widgets,env:this.props.env,onAnnotationCreated:this.onCreateOrUpdateAnnotation("onAnnotationCreated"),onAnnotationUpdated:this.onCreateOrUpdateAnnotation("onAnnotationUpdated"),onAnnotationDeleted:this.onDeleteAnnotation,onCancel:this.onCancelAnnotation})}}class pb{constructor(e){c(this,"handleAnnotationCreated",(e,t)=>this._emitter.emit("createAnnotation",e.underlying,t)),c(this,"handleAnnotationDeleted",e=>this._emitter.emit("deleteAnnotation",e.underlying)),c(this,"handleAnnotationSelected",(e,t)=>this._emitter.emit("selectAnnotation",e.underlying,t)),c(this,"handleAnnotationUpdated",(e,t)=>this._emitter.emit("updateAnnotation",e.underlying,t.underlying)),c(this,"handleCancelSelected",e=>this._emitter.emit("cancelSelected",e.underlying)),c(this,"handleChangeSelected",(e,t)=>this._emitter.emit("changeSelected",e.underlying,t.underlying)),c(this,"handleClickAnnotation",(e,t)=>this._emitter.emit("clickAnnotation",e.underlying,t)),c(this,"handleLoad",e=>this._emitter.emit("load",e)),c(this,"handleSelectionCreated",e=>this._emitter.emit("createSelection",e.underlying)),c(this,"handleSelectionStarted",e=>this._emitter.emit("startSelection",e)),c(this,"handleSelectionTargetChanged",e=>this._emitter.emit("changeSelectionTarget",e)),c(this,"handleMouseEnterAnnotation",(e,t)=>this._emitter.emit("mouseEnterAnnotation",e.underlying,t)),c(this,"handleMouseLeaveAnnotation",(e,t)=>this._emitter.emit("mouseLeaveAnnotation",e.underlying,t)),c(this,"_wrap",e=>(null==e?void 0:e.type)==="Annotation"?new cK(e):e),c(this,"addAnnotation",(e,t)=>this._app.current.addAnnotation(new cK(e,{readOnly:t}))),c(this,"addDrawingTool",e=>this._app.current.addDrawingTool(e)),c(this,"cancelSelected",()=>this._app.current.cancelSelected()),c(this,"clearAnnotations",()=>this.setAnnotations([])),c(this,"clearAuthInfo",()=>this._env.user=null),c(this,"destroy",()=>{eJ.unmountComponentAtNode(this._appContainerEl),this._element.parentNode.insertBefore(this._env.image,this._element),this._element.parentNode.removeChild(this._element)}),c(this,"getAnnotationById",e=>{let t=this._app.current.getAnnotationById(e);return null==t?void 0:t.underlying}),c(this,"getAnnotations",()=>this._app.current.getAnnotations().map(e=>e.underlying)),c(this,"getImageSnippetById",e=>this._app.current.getImageSnippetById(e)),c(this,"getSelected",()=>{let e=this._app.current.getSelected();return null==e?void 0:e.underlying}),c(this,"getSelectedImageSnippet",()=>this._app.current.getSelectedImageSnippet()),c(this,"listDrawingTools",()=>this._app.current.listDrawingTools()),c(this,"loadAnnotations",e=>fetch(e).then(e=>e.json()).then(e=>(this.setAnnotations(e),e))),c(this,"off",(e,t)=>this._emitter.off(e,t)),c(this,"on",(e,t)=>this._emitter.on(e,t)),c(this,"once",(e,t)=>this._emitter.once(e,t)),c(this,"removeAnnotation",e=>this._app.current.removeAnnotation(this._wrap(e))),c(this,"removeDrawingTool",e=>this._app.current.removeDrawingTool(e)),c(this,"saveSelected",()=>this._app.current.saveSelected()),c(this,"selectAnnotation",e=>{let t=this._app.current.selectAnnotation(this._wrap(e));return null==t?void 0:t.underlying}),c(this,"setAnnotations",e=>{let t=(e||[]).map(e=>new cK(e));this._app.current.setAnnotations(t)}),c(this,"setAuthInfo",e=>this._env.user=e),c(this,"setDrawingTool",e=>this._app.current.setDrawingTool(e)),c(this,"setServerTime",e=>this._env.setServerTime(e)),c(this,"setVisible",e=>this._app.current.setVisible(e)),c(this,"updateSelected",(e,t)=>{let n=null;"Annotation"===e.type?n=new cK(e):"Selection"===e.type&&(n=new cJ(e.target,e.body)),n&&this._app.current.updateSelected(n,t)}),this._app=eJ.createRef(),this._emitter=new e2,e.disableEditor=e.disableEditor||e.headless;let t=e.image.nodeType?e.image:document.getElementById(e.image);t.style.display="block",this._env={setServerTime:e=>{cZ=e-Date.now()},getCurrentTimeAdjusted:()=>new Date(Date.now()+cZ).toISOString(),toClientTime:e=>Date.parse(e)-cZ},this._env.image=t,((e,t)=>
13{if(e){let n="auto"===e?window.navigator.userLanguage||window.navigator.language:e,r=n.split("-")[0].toLowerCase(),o=[n,r].find(e=>aF.includes(e));o||console.warn(`Unsupported locale '${n}'. Falling back to default en.`),aU.init(o,t)}else aU.init(null,t)})(e.locale,e.messages),this._element=document.createElement("DIV"),this._element.style.position="relative",this._element.style.display="inline-block",t.parentNode.insertBefore(this._element,t),this._element.appendChild(t),this._appContainerEl=document.createElement("DIV"),this._element.appendChild(this._appContainerEl),eJ.render(py(pv,{ref:this._app,env:this._env,wrapperEl:this._element,config:e,onSelectionStarted:this.handleSelectionStarted,onSelectionCreated:this.handleSelectionCreated,onSelectionTargetChanged:this.handleSelectionTargetChanged,onAnnotationCreated:this.handleAnnotationCreated,onAnnotationSelected:this.handleAnnotationSelected,onAnnotationUpdated:this.handleAnnotationUpdated,onAnnotationDeleted:this.handleAnnotationDeleted,onCancelSelected:this.handleCancelSelected,onChangeSelected:this.handleChangeSelected,onClickAnnotation:this.handleClickAnnotation,onLoad:this.handleLoad,onMouseEnterAnnotation:this.handleMouseEnterAnnotation,onMouseLeaveAnnotation:this.handleMouseLeaveAnnotation}),this._appContainerEl)}get disableEditor(){return this._app.current.disableEditor}set disableEditor(e){this._app.current.disableEditor=e}get disableSelect(){return this._app.current.disableSelect}set disableSelect(e){this._app.current.disableSelect=e}get formatters(){return this._app.current.formatters||[]}set formatters(e){if(e){let t=Array.isArray(e)?e:[e];this._app.current.formatters=t}else this._app.current.formatters=null}get readOnly(){return this._app.current.readOnly}set readOnly(e){this._app.current.readOnly=e}get widgets(){return this._app.current.widgets}set widgets(e){this._app.current.widgets=e}}e.Annotorious=pb,e.init=e=>new pb(e),Object.defineProperty(e,"__esModule",{value:!0}),e[Symbol.toStringTag]="Module"})(t)}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.