PageSourceSearch

https://static.alan.com/web-assets/web-fr/66483aaebe6a06b0db2a81ef…282670.881635a3817a0e54.js?881635a3817a0e54

js alan.com collected 2026-09-24 17:44:15 UTC 245,468 bytes, 4 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="15b17295-5e1b-58f7-8179-b1bf1285f6ef")}catch(e){}}();
3(self.rspackChunk_alaneu_web_server=self.rspackChunk_alaneu_web_server||[]).push([[282670],{772238:function(e,t,n){"use strict";n(514041),n(908058)},308089:function(){"use strict";function e(e){var t=function(e){switch(e){case"Milliseconds":return 36e5;case"Seconds":return 3600;case"Minutes":return 60;case"Hours":return 1;default:return null}}(e);return function(n,r){if(void 0===r)return n["get"+e]();var o=new Date(n);return o["set"+e](r),t&&o["get"+e]()!=r&&("Hours"===e||r>=t&&o.getHours()-n.getHours()<Math.floor(r/t))&&o["set"+e](r+t),o}}e("Milliseconds"),e("Seconds"),e("Minutes"),e("Hours"),e("Day"),e("Date"),e("Month"),e("FullYear")},545615:function(e){e.exports=function(e,t,n){t.prototype.isBetween=function(e,t,r,o){var i=n(e),s=n(t),a="("===(o=o||"()")[0],l=")"===o[1];return(a?this.isAfter(i,r):!this.isBefore(i,r))&&(l?this.isBefore(s,r):!this.isAfter(s,r))||(a?this.isBefore(i,r):!this.isAfter(i,r))&&(l?this.isAfter(s,r):!this.isBefore(s,r))}}},496828:function(e){e.exports=function(e,t){t.prototype.isLeapYear=function(){return this.$y%4==0&&this.$y%100!=0||this.$y%400==0}}},633376:function(e){e.exports=function(e,t){t.prototype.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)}}},240515:function(e){e.exports=function(e,t){t.prototype.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)}}},925853:function(e){e.exports=function(e,t,n){var r=t.prototype,o=function(e){return e&&(e.indexOf?e:e.s)},i=function(e,t,n,r,i){var s=e.name?e:e.$locale(),a=o(s[t]),l=o(s[n]),c=a||l.map(function(e){return e.slice(0,r)});if(!i)return c;var u=s.weekStart;return c.map(function(e,t){return c[(t+(u||0))%7]})},s=function(){return n.Ls[n.locale()]},a=function(e,t){return e.formats[t]||e.formats[t.toUpperCase()].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})},l=function(){var e=this;return{months:function(t){return t?t.format("MMMM"):i(e,"months")},monthsShort:function(t){return t?t.format("MMM"):i(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):i(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):i(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):i(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return a(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return l.bind(this)()},n.localeData=function(){var e=s();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(t){return a(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return i(s(),"months")},n.monthsShort=function(){return i(s(),"monthsShort","months",3)},n.weekdays=function(e){return i(s(),"weekdays",null,null,e)},n.weekdaysShort=function(e){return i(s(),"weekdaysShort","weekdays",3,e)},n.weekdaysMin=function(e){return i(s(),"weekdaysMin","weekdays",2,e)}}},482917:function(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(t,n,r){var o=n.prototype,i=o.format;r.en.formats=e,o.format=function(t){void 0===t&&(t="YYYY-MM-DDTHH:mm:ssZ");var n,r,o=this.$locale().formats,s=(n=t,r=void 0===o?{}:o,n.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,n,o){var i=o&&o.toUpperCase();return n||r[o]||e[o]||r[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})}));return i.call(this,s)}}}()},403221:function(e){e.exports=function(e,t,n){var r=function(e,t){if(!t||!t.length||1===t.length&&!t[0]||1===t.length&&Array.isArray(t[0])&&!t[0].length)return null;1===t.length&&t[0].length>0&&(t=t[0]),n=(t=t.filter(function(e){return e}))[0];for(var n,r=1;r<t.length;r+=1)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n};n.max=function(){var e=[].slice.call(arguments,0);return r("isAfter",e)},n.min=function(){var e=[].slice.call(arguments,0);return r("isBefore",e)}}},357657:function(e){e.exports=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,o,i){var s=o.prototype;i.utc=function(e){var t={date:e,utc:!0,args:arguments};return new o(t)},s.utc=function(t){var n=i(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},s.local=function(){return i(this.toDate(),{locale:this.$L,utc:!1})};var a=s.parse;s.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),a.call(this,e)};var l=s.init;s.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else l.call(this)};var c=s.utcOffset;s.utcOffset=function(r,o){var i=this.$utils().u;if(i(r))return this.$u?0:i(this.$offset)?c.call(this):this.$offset;if("string"==typeof r&&null===(r=function(e){void 0===e&&(e="");var r=e.match(t);if(!r)return null;var o=(""+r[0]).match(n)||["-",0,0],i=o[0],s=60*o[1]+ +o[2];return 0===s?0:"+"===i?s:-s}(r)))return this;var s=16>=Math.abs(r)?60*r:r;if(0===s)return this.utc(o);var a=this.clone();if(o)return a.$offset=s,a.$u=!1,a;var l=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(a=this.local().add(s+l,e)).$offset=s,a.$x.$localOffset=l,a};var u=s.format;s.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return u.call(this,t)},s.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},s.isUTC=function(){return!!this.$u},s.toISOString=function(){return this.toDate().toISOString()},s.toString=function(){return this.toDate().toUTCString()};var d=s.toDate;s.toDate=function(e){return"s"===e&&this.$offset?i(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var h=s.diff;s.diff=function(e,t,n){if(e&&this.$u===e.$u)return h.call(this,e,t,n);var r=this.local(),o=i(e).local();return h.call(r,o,t,n)}}}()},630239:function(e,t,n){"use strict";var r=n(224133),o=new Date().getTime(),i="clearTimeout",s=function(e){var t=new Date().getTime(),n=setTimeout(e,Math.max(0,16-(t-o)));return o=t,n},a=function(e,t){return e+(e?t[0].toUpperCase()+t.substr(1):t)+"AnimationFrame"};r.A&&["","webkit","moz","o","ms"].some(function(e){var t=a(e,"request");return t in window&&(i=a(e,"cancel"),s=function(e){return window[t](e)}),!!s});var l=function(e){"function"==typeof window[i]&&window[i](e)},c=s;n.d(t,{cancel:function(){return l},request:function(){return c}})},364097:function(e,t,n){"use strict";var r=n(103727);function o(e,t,n){e.closest&&!n&&e.closest(t);var o=e;do{if((0,r.A)(o,t))return o;o=o.parentElement}while(o&&o!==n&&o.nodeType===document.ELEMENT_NODE)return null}n.d(t,{default:function(){return o}})},418973:function(e,t,n){"use strict";function r(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):void 0}n.d(t,{default:function(){return r}})},476651:function(e,t,n){"use strict";var r=n(176921),o=n(347687);function i(e,t){var n=(0,r.A)(e);return n?n.innerHeight:t?e.clientHeight:(0,o.default)(e).height}n.d(t,{default:function(){return i}})},562883:function(e,t,n){"use strict";
3var r=n(717257),o=n(881890);t.default=function(e,t,n,i){return(0,r.Ay)(e,t,n,i),function(){(0,o.A)(e,t,n,i)}}},347687:function(e,t,n){"use strict";var r=n(418973),o=n(969840),i=n(104892),s=n(138814);function a(e){var t=(0,o.A)(e),n={top:0,left:0,height:0,width:0},a=t&&t.documentElement;return a&&(0,r.default)(a,e)?(void 0!==e.getBoundingClientRect&&(n=e.getBoundingClientRect()),n={top:n.top+(0,s.A)(a)-(a.clientTop||0),left:n.left+(0,i.A)(a)-(a.clientLeft||0),width:n.width,height:n.height}):n}n.d(t,{default:function(){return a}})},694399:function(e,t,n){"use strict";var r=n(1913),o=n(71797),i=n(347687),s=n(471791),a=n(104892),l=n(138814);function c(e,t){var n,c={top:0,left:0};if("fixed"===(0,o.A)(e,"position"))n=e.getBoundingClientRect();else{var u=t||(0,s.A)(e);n=(0,i.default)(e),"html"!==(u.nodeName&&u.nodeName.toLowerCase())&&(c=(0,i.default)(u));var d=String((0,o.A)(u,"borderTopWidth")||0);c.top+=parseInt(d,10)-(0,l.A)(u)||0;var h=String((0,o.A)(u,"borderLeftWidth")||0);c.left+=parseInt(h,10)-(0,a.A)(u)||0}var f=String((0,o.A)(e,"marginTop")||0),p=String((0,o.A)(e,"marginLeft")||0);return(0,r.A)({},n,{top:n.top-c.top-(parseInt(f,10)||0),left:n.left-c.left-(parseInt(p,10)||0)})}n.d(t,{default:function(){return c}})},552576:function(e,t,n){"use strict";var r=Function.prototype.bind.call(Function.prototype.call,[].slice);function o(e,t){return r(e.querySelectorAll(t))}n.d(t,{default:function(){return o}})},176805:function(e,t,n){"use strict";var r,o=n(224133);function i(e){if((!r&&0!==r||e)&&o.A){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),r=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return r}n.d(t,{default:function(){return i}})},17734:function(e,t,n){"use strict";var r=n(176921),o=n(347687);function i(e,t){var n=(0,r.A)(e);return n?n.innerWidth:t?e.clientWidth:(0,o.default)(e).width}n.d(t,{default:function(){return i}})},908058:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e.default:e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i,s,a,l,c,u,d={},h=[],f=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function p(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 v(e,t,n){var r,o,s,a={};for(s in t)"key"==s?r=t[s]:"ref"==s?o=t[s]:a[s]=t[s];if(arguments.length>2&&(a.children=arguments.length>3?i.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(s in e.defaultProps)void 0===a[s]&&(a[s]=e.defaultProps[s]);return g(e,a,r,o,null)}function g(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++a:o};return null==o&&null!=s.vnode&&s.vnode(i),i}function y(){return{current:null}}function b(e){return e.children}function w(e,t){this.props=e,this.context=t}function _(e,t){if(null==t)return e.__?_(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?_(e):null}function k(e){(!e.__d&&(e.__d=!0)&&l.push(e)&&!S.__r++||u!==s.debounceRendering)&&((u=s.debounceRendering)||c)(S)}function S(){for(var e;S.__r=l.length;)e=l.sort(function(e,t){return e.__v.__b-t.__v.__b}),l=[],e.some(function(e){var t,n,r,o,i;e.__d&&(o=(r=e.__v).__e,(i=e.__P)&&(t=[],(n=p({},r)).__v=r.__v+1,R(i,r,n,e.__n,void 0!==i.ownerSVGElement,null!=r.__h?[o]:null,t,null==o?_(r):o,r.__h),z(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,r,o,i,a,l,c,u){var f,p,v,y,w,k,S,E=r&&r.__k||h,C=E.length;for(n.__k=[],f=0;f<t.length;f++)if(null!=(y=n.__k[f]=null==(y=t[f])||"boolean"==typeof y?null:"string"==typeof y||"number"==typeof y||"bigint"==typeof y?g(null,y,null,null,y):Array.isArray(y)?g(b,{children:y},null,null,null):y.__b>0?g(y.type,y.props,y.key,null,y.__v):y)){if(y.__=n,y.__b=n.__b+1,null===(v=E[f])||v&&y.key==v.key&&y.type===v.type)E[f]=void 0;else for(p=0;p<C;p++){if((v=E[p])&&y.key==v.key&&y.type===v.type){E[p]=void 0;break}v=null}R(e,y,v=v||d,o,i,a,l,c,u),w=y.__e,(p=y.ref)&&v.ref!=p&&(S||(S=[]),v.ref&&S.push(v.ref,null,y),S.push(p,y.__c||w,y)),null!=w?(null==k&&(k=w),"function"==typeof y.type&&y.__k===v.__k?y.__d=c=function e(t,n,r){for(var o,i=t.__k,s=0;i&&s<i.length;s++)(o=i[s])&&(o.__=t,n="function"==typeof o.type?e(o,n,r):x(r,o,o,i,o.__e,n));return n}(y,c,e):c=x(e,y,v,E,w,c),"function"==typeof n.type&&(n.__d=c)):c&&v.__e==c&&c.parentNode!=e&&(c=_(v))}for(n.__e=k,f=C;f--;)null!=E[f]&&("function"==typeof n.type&&null!=E[f].__e&&E[f].__e==n.__d&&(n.__d=_(r,f+1)),function e(t,n,r){var o,i;if(s.unmount&&s.unmount(t),(o=t.ref)&&(o.current&&o.current!==t.__e||O(o,null,n)),null!=(o=t.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){s.__e(e,n)}o.base=o.__P=null}if(o=t.__k)for(i=0;i<o.length;i++)o[i]&&e(o[i],n,"function"!=typeof t.type);r||null==t.__e||m(t.__e),t.__e=t.__d=void 0}(E[f],E[f]));if(S)for(f=0;f<S.length;f++)O(S[f],S[++f],S[++f])}function C(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some(function(e){C(e,t)}):t.push(e)),t}function x(e,t,n,r,o,i){var s,a,l;if(void 0!==t.__d)s=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),s=null;else{for(a=i,l=0;(a=a.nextSibling)&&l<r.length;l+=2)if(a==o)break e;e.insertBefore(o,i),s=i}return void 0!==s?s:o.nextSibling}function D(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||f.test(t)?n:n+"px"}function A(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||D(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||D(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?F:M,i):e.removeEventListener(t,i?F:M,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(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function M(e){this.l[e.type+!1](s.event?s.event(e):e)}function F(e){this.l[e.type+!0](s.event?s.event(e):e)}function R(e,t,n,r,o,a,l,c,u){var h,f,v,g,y,k,S,C,x,D,M,F=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(u=n.__h,c=t.__e=n.__e,t.__h=null,a=[c]),(h=s.__b)&&h(t);try{e:if("function"==typeof F){if(C=t.props,x=(h=F.contextType)&&r[h.__c],D=h?x?x.props.value:h.__:r,n.__c?S=(f=t.__c=n.__c).__=f.__E:("prototype"in F&&F.prototype.render?t.__c=f=new F(C,D):(t.__c=f=new w(C,D),f.constructor=F,f.render=T),x&&x.sub(f),f.props=C,f.state||(f.state={}),f.context=D,f.__n=r,v=f.__d=!0,f.__h=[]),null==f.__s&&(f.__s=f.state),null!=F.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=p({},f.__s)),p(f.__s,F.getDerivedStateFromProps(C,f.__s))),g=f.props,y=f.state,v)null==F.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==F.getDerivedStateFromProps&&C!==g&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(C,D),!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(C,f.__s,D)||t.__v===n.__v){f.props=C,f.state=f.__s,t.__v!==n.__v&&(f.__d=!1),f.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEac
vendor: 3,366 bytes, line 3
3h(function(e){e&&(e.__=t)}),f.__h.length&&l.push(f);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(C,f.__s,D),null!=f.componentDidUpdate&&f.__h.push(function(){f.componentDidUpdate(g,y,k)})}f.context=D,f.props=C,f.state=f.__s,(h=s.__r)&&h(t),f.__d=!1,f.__v=t,f.__P=e,h=f.render(f.props,f.state,f.context),f.state=f.__s,null!=f.getChildContext&&(r=p(p({},r),f.getChildContext())),v||null==f.getSnapshotBeforeUpdate||(k=f.getSnapshotBeforeUpdate(g,y)),M=null!=h&&h.type===b&&null==h.key?h.props.children:h,E(e,Array.isArray(M)?M:[M],t,n,r,o,a,l,c,u),f.base=t.__e,t.__h=null,f.__h.length&&l.push(f),S&&(f.__E=f.__=null),f.__e=!1}else null==a&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=function(e,t,n,r,o,s,a,l){var c,u,h,f=n.props,p=t.props,v=t.type,g=0;if("svg"===v&&(o=!0),null!=s){for(;g<s.length;g++)if((c=s[g])&&"setAttribute"in c==!!v&&(v?c.localName===v:3===c.nodeType)){e=c,s[g]=null;break}}if(null==e){if(null===v)return document.createTextNode(p);e=o?document.createElementNS("http://www.w3.org/2000/svg",v):document.createElement(v,p.is&&p),s=null,l=!1}if(null===v)f===p||l&&e.data===p||(e.data=p);else{if(s=s&&i.call(e.childNodes),u=(f=n.props||d).dangerouslySetInnerHTML,h=p.dangerouslySetInnerHTML,!l){if(null!=s)for(f={},g=0;g<e.attributes.length;g++)f[e.attributes[g].name]=e.attributes[g].value;(h||u)&&(h&&(u&&h.__html==u.__html||h.__html===e.innerHTML)||(e.innerHTML=h&&h.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||A(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]||A(e,i,t[i],n[i],r)}(e,p,f,o,l),h)t.__k=[];else if(E(e,Array.isArray(g=t.props.children)?g:[g],t,n,r,o&&"foreignObject"!==v,s,a,s?s[0]:n.__k&&_(n,0),l),null!=s)for(g=s.length;g--;)null!=s[g]&&m(s[g]);l||("value"in p&&void 0!==(g=p.value)&&(g!==f.value||g!==e.value||"progress"===v&&!g)&&A(e,"value",g,f.value,!1),"checked"in p&&void 0!==(g=p.checked)&&g!==e.checked&&A(e,"checked",g,f.checked,!1))}return e}(n.__e,t,n,r,o,a,l,u);(h=s.diffed)&&h(t)}catch(e){t.__v=null,(u||null!=a)&&(t.__e=c,t.__h=!!u,a[a.indexOf(c)]=null),s.__e(e,t,n)}}function z(e,t){s.__c&&s.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){s.__e(e,t.__v)}})}function O(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){s.__e(e,n)}}function T(e,t,n){return this.constructor(e,n)}function L(e,t,n){var r,o,a;s.__&&s.__(e,t),o=(r="function"==typeof n)?null:n&&n.__k||t.__k,a=[],R(t,e=(!r&&n||t).__k=v(b,null,[e]),o||d,d,void 0!==t.ownerSVGElement,!r&&n?[n]:o?null:t.firstChild?i.call(t.childNodes):null,a,!r&&n?n:o?o.__e:t.firstChild,r),z(a,e)}i=h.slice,s={__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}},a=0,w.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=p({},this.state),"function"==typeof e&&(e=e(p({},n),this.props)),e&&p(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),k(this))},w.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),k(this))},w.prototype.render=b,l=[],c="function"==typeof Promise?Promise.prototype.then.bind(Prom
3ise.resolve()):setTimeout,S.__r=0;var j=0;function I(e,t,n,r,o){var i,a,l={};for(a in t)"ref"==a?i=t[a]:l[a]=t[a];var c={type:e,props:l,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--j,__source:r,__self:o};if("function"==typeof e&&(i=e.defaultProps))for(a in i)void 0===l[a]&&(l[a]=i[a]);return s.vnode&&s.vnode(c),c}var P=function(e,t){try{window.localStorage[`emoji-mart.${e}`]=JSON.stringify(t)}catch(e){}},N=function(e){try{let t=window.localStorage[`emoji-mart.${e}`];if(t)return JSON.parse(t)}catch(e){}};let K=new Map,B=[{v:15,emoji:"🫨"},{v:14,emoji:"🫠"},{v:13.1,emoji:"😶‍🌫️"},{v:13,emoji:"🥸"},{v:12.1,emoji:"🧑‍🦰"},{v:12,emoji:"🥱"},{v:11,emoji:"🥰"},{v:5,emoji:"🤩"},{v:4,emoji:"👱‍♀️"},{v:3,emoji:"🤣"},{v:2,emoji:"👋🏻"},{v:1,emoji:"🙃"}];function H(e){if(K.has(e))return K.get(e);let t=$(e);return K.set(e,t),t}let $=(()=>{let e=null;try{navigator.userAgent.includes("jsdom")||(e=document.createElement("canvas").getContext("2d",{willReadFrequently:!0}))}catch{}if(!e)return()=>!1;let t=Math.floor(12.5);return e.font=t+"px Arial, Sans-Serif",e.textBaseline="top",e.canvas.width=40,e.canvas.height=25,t=>{e.clearRect(0,0,40,25),e.fillStyle="#FF0000",e.fillText(t,0,22),e.fillStyle="#0000FF",e.fillText(t,20,22);let n=e.getImageData(0,0,20,25).data,r=n.length,o=0;for(;o<r&&!n[o+3];o+=4);if(o>=r)return!1;let i=20+o/4%20,s=Math.floor(o/4/20),a=e.getImageData(i,s,1,1).data;return n[o]===a[0]&&n[o+2]===a[2]&&!(e.measureText(t).width>=20)}})();var W=function(){for(let{v:e,emoji:t}of B)if(H(t))return e};let V=["+1","grinning","kissing_heart","heart_eyes","laughing","stuck_out_tongue_winking_eye","sweat_smile","joy","scream","disappointed","unamused","weary","sob","sunglasses","heart"],J=null;var U=function(e){J||(J=N("frequently")||{});let t=e.id||e;t&&(J[t]||(J[t]=0),J[t]+=1,P("last",t),P("frequently",J))},Y=function({maxFrequentRows:e,perLine:t}){if(!e)return[];J||(J=N("frequently"));let n=[];if(!J){for(let e in J={},V.slice(0,t)){let r=V[e];J[r]=t-e,n.push(r)}return n}let r=e*t,o=N("last");for(let e in J)n.push(e);if(n.sort((e,t)=>{let n=J[t],r=J[e];return n==r?e.localeCompare(t):n-r}),n.length>r){let e=n.slice(r);for(let t of(n=n.slice(0,r),e))t!=o&&delete J[t];o&&-1==n.indexOf(o)&&(delete J[n[n.length-1]],n.splice(-1,1,o)),P("frequently",J)}return n},q={};q=JSON.parse('{"search":"Search","search_no_results_1":"Oh no!","search_no_results_2":"That emoji couldn’t be found","pick":"Pick an emoji…","add_custom":"Add custom emoji","categories":{"activity":"Activity","custom":"Custom","flags":"Flags","foods":"Food & Drink","frequent":"Frequently used","nature":"Animals & Nature","objects":"Objects","people":"Smileys & People","places":"Travel & Places","search":"Search Results","symbols":"Symbols"},"skins":{"1":"Default","2":"Light","3":"Medium-Light","4":"Medium","5":"Medium-Dark","6":"Dark","choose":"Choose default skin tone"}}');var G={autoFocus:{value:!1},dynamicWidth:{value:!1},emojiButtonColors:{value:null},emojiButtonRadius:{value:"100%"},emojiButtonSize:{value:36},emojiSize:{value:24},emojiVersion:{value:15,choices:[1,2,3,4,5,11,12,12.1,13,13.1,14,15]},exceptEmojis:{value:[]},icons:{value:"auto",choices:["auto","outline","solid"]},locale:{value:"en",choices:["en","ar","be","cs","de","es","fa","fi","fr","hi","it","ja","ko","nl","pl","pt","ru","sa","tr","uk","vi","zh"]},maxFrequentRows:{value:4},navPosition:{value:"top",choices:["top","bottom","none"]},noCountryFlags:{value:!1},noResultsEmoji:{value:null},perLine:{value:9},previewEmoji:{value:null},previewPosition:{value:"bottom",choices:["top","bottom","none"]},searchPosition:{value:"sticky",choices:["sticky","static","none"]},set:{value:"native",choices:["native","apple","facebook","google","twitter"]},skin:{value:1,choices:[1,2,3,4,5,6]},skinTonePosition:{value:"preview",choices:["preview","search","none"]},theme:{value:"auto",choices:["auto","light","dark"]},categories:null,categoryIcons:null,custom:null,data:null,i18n:null,getImageURL:null,getSpritesheetURL:null,onAddCustomEmoji:null,onClickOutside:null,onEmojiSelect:null,stickySearch:{deprecated:!0,value:!0}};let X=null,Z=null,Q={};async function ee(e){if(Q[e])return Q[e];let t=await fetch(e),n=await t.json();return Q[e]=n,n}let et=null,en=null,er=!1;function eo(e,{caller:t}={}){return et||(et=new Promise(e=>{en=e})),e?ei(e):t&&!er&&console.warn(`\`${t}\` requires data to be initialized first. Promise will be pending until \`init\` is called.`),et}async function ei(e){er=!0;let{emojiVersion:t,set:n,locale:o}=e;if(t||(t=G.emojiVersion.value),n||(n=G.set.value),o||(o=G.locale.value),Z)Z.categories=Z.categories.filter(e=>!e.name);else{for(let r in(Z=("function"==typeof e.data?await e.data():e.data)||await ee(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/sets/${t}/${n}.json`)).emoticons={},Z.natives={},Z.categories.unshift({id:"frequent",emojis:[]}),Z.aliases){let e=Z.aliases[r],t=Z.emojis[e];t&&(t.aliases||(t.aliases=[]),t.aliases.push(r))}Z.originalCategories=Z.categories}if(X=("function"==typeof e.i18n?await e.i18n():e.i18n)||("en"==o?r(q):await ee(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/i18n/${o}.json`)),e.custom)for(let t in e.custom){t=parseInt(t);let n=e.custom[t],r=e.custom[t-1];if(n.emojis&&n.emojis.length)for(let e of(n.id||(n.id=`custom_${t+1}`),n.name||(n.name=X.categories.custom),r&&!n.icon&&(n.target=r.target||r),Z.categories.push(n),n.emojis))Z.emojis[e.id]=e}e.categories&&(Z.categories=Z.originalCategories.filter(t=>-1!=e.categories.indexOf(t.id)).sort((t,n)=>e.categories.indexOf(t.id)-e.categories.indexOf(n.id)));let i=null,s=null;"native"==n&&(i=W(),s=e.noCountryFlags||!H("🇨🇦"));let a=Z.categories.length,l=!1;for(;a--;){let t=Z.categories[a];if("frequent"==t.id){let{maxFrequentRows:n,perLine:r}=e;n=n>=0?n:G.maxFrequentRows.value,r||(r=G.perLine.value),t.emojis=Y({maxFrequentRows:n,perLine:r})}if(!t.emojis||!t.emojis.length){Z.categories.splice(a,1);continue}let{categoryIcons:n}=e;if(n){let e=n[t.id];e&&!t.icon&&(t.icon=e)}let r=t.emojis.length;for(;r--;){let n=t.emojis[r],o=n.id?n:Z.emojis[n],a=()=>{t.emojis.splice(r,1)};if(!o||e.exceptEmojis&&e.exceptEmojis.includes(o.id)||i&&o.version>i||s&&"flags"==t.id&&!eu.includes(o.id)){a();continue}if(!o.search){if(l=!0,o.search=","+[[o.id,!1],[o.name,!0],[o.keywords,!1],[o.emoticons,!1]].map(([e,t])=>
3{if(e)return(Array.isArray(e)?e:[e]).map(e=>(t?e.split(/[-|_|\s]+/):[e]).map(e=>e.toLowerCase())).flat()}).flat().filter(e=>e&&e.trim()).join(","),o.emoticons)for(let e of o.emoticons)Z.emoticons[e]||(Z.emoticons[e]=o.id);let e=0;for(let t of o.skins){if(!t)continue;e++;let{native:n}=t;n&&(Z.natives[n]=o.id,o.search+=`,${n}`);let r=1==e?"":`:skin-tone-${e}:`;t.shortcodes=`:${o.id}:${r}`}}}}l&&ec.reset(),en()}function es(e,t,n){e||(e={});let r={};for(let o in t)r[o]=ea(o,e,t,n);return r}function ea(e,t,n,r){let o=n[e],i=r&&r.getAttribute(e)||(null!=t[e]&&void 0!=t[e]?t[e]:null);return o&&(null!=i&&o.value&&typeof o.value!=typeof i&&(i="boolean"==typeof o.value?"false"!=i:o.value.constructor(i)),o.transform&&i&&(i=o.transform(i)),(null==i||o.choices&&-1==o.choices.indexOf(i))&&(i=o.value)),i}let el=null;var ec={search:async function(e,{maxResults:t,caller:n}={}){let r,o;if(!e||!e.trim().length)return null;t||(t=90),await eo(null,{caller:n||"SearchIndex.search"});let i=e.toLowerCase().replace(/(\w)-/,"$1 ").split(/[\s|,]+/).filter((e,t,n)=>e.trim()&&n.indexOf(e)==t);if(!i.length)return;let s=el||(el=Object.values(Z.emojis));for(let e of i){if(!s.length)break;for(let t of(r=[],o={},s)){if(!t.search)continue;let n=t.search.indexOf(`,${e}`);-1!=n&&(r.push(t),o[t.id]||(o[t.id]=0),o[t.id]+=t.id==e?0:n+1)}s=r}return r.length<2||(r.sort((e,t)=>{let n=o[e.id],r=o[t.id];return n==r?e.id.localeCompare(t.id):n-r}),r.length>t&&(r=r.slice(0,t))),r},get:function(e){return e.id?e:Z.emojis[e]||Z.emojis[Z.aliases[e]]||Z.emojis[Z.natives[e]]},reset:function(){el=null},SHORTCODES_REGEX:/^(?:\:([^\:]+)\:)(?:\:skin-tone-(\d)\:)?$/};let eu=["checkered_flag","crossed_flags","pirate_flag","rainbow-flag","transgender_flag","triangular_flag_on_post","waving_black_flag","
3waving_white_flag"];async function ed(e=1){for(let t in[...Array(e).keys()])await new Promise(requestAnimationFrame)}let eh={activity:{outline:I("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:I("path",{d:"M12 0C5.373 0 0 5.372 0 12c0 6.627 5.373 12 12 12 6.628 0 12-5.373 12-12 0-6.628-5.372-12-12-12m9.949 11H17.05c.224-2.527 1.232-4.773 1.968-6.113A9.966 9.966 0 0 1 21.949 11M13 11V2.051a9.945 9.945 0 0 1 4.432 1.564c-.858 1.491-2.156 4.22-2.392 7.385H13zm-2 0H8.961c-.238-3.165-1.536-5.894-2.393-7.385A9.95 9.95 0 0 1 11 2.051V11zm0 2v8.949a9.937 9.937 0 0 1-4.432-1.564c.857-1.492 2.155-4.221 2.393-7.385H11zm4.04 0c.236 3.164 1.534 5.893 2.392 7.385A9.92 9.92 0 0 1 13 21.949V13h2.04zM4.982 4.887C5.718 6.227 6.726 8.473 6.951 11h-4.9a9.977 9.977 0 0 1 2.931-6.113M2.051 13h4.9c-.226 2.527-1.233 4.771-1.969 6.113A9.972 9.972 0 0 1 2.051 13m16.967 6.113c-.735-1.342-1.744-3.586-1.968-6.113h4.899a9.961 9.961 0 0 1-2.931 6.113"})}),solid:I("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:I("path",{d:"M16.17 337.5c0 44.98 7.565 83.54 13.98 107.9C35.22 464.3 50.46 496 174.9 496c9.566 0 19.59-.4707 29.84-1.271L17.33 307.3C16.53 317.6 16.17 327.7 16.17 337.5zM495.8 174.5c0-44.98-7.565-83.53-13.98-107.9c-4.688-17.54-18.34-31.23-36.04-35.95C435.5 27.91 392.9 16 337 16c-9.564 0-19.59 .4707-29.84 1.271l187.5 187.5C495.5 194.4 495.8 184.3 495.8 174.5zM26.77 248.8l236.3 236.3c142-36.1 203.9-150.4 222.2-221.1L248.9 26.87C106.9 62.96 45.07 177.2 26.77 248.8zM256 335.1c0 9.141-7.474 16-16 16c-4.094 0-8.188-1.564-11.31-4.689L164.7 283.3C161.6 280.2 160 276.1 160 271.1c0-8.529 6.865-16 16-16c4.095 0 8.189 1.562 11.31 4.688l64.01 64C254.4 327.8 256 331.9 256 335.1zM304 287.1c0 9.141-7.474 16-16 16c-4.094 0-8.188-1.564-11.31-4.689L212.7 235.3C209.6 232.2 208 228.1 208 223.1c0-9.141 7.473-16 16-16c4.094 0 8.188 1.562 11.31 4.688l64.01 64.01C302.5 279.8 304 283.9 304 287.1zM256 175.1c0-9.141 7.473-16 16-16c4.094 0 8.188 1.562 11.31 4.688l64.01 64.01c3.125 3.125 4.688 7.219 4.688 11.31c0 9.133-7.468 16-16 16c-4.094 0-8.189-1.562-11.31-4.688l-64.01-64.01C257.6 184.2 256 180.1 256 175.1z"})})},custom:I("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:I("path",{d:"M417.1 368c-5.937 10.27-16.69 16-27.75 16c-5.422 0-10.92-1.375-15.97-4.281L256 311.4V448c0 17.67-14.33 32-31.1 32S192 465.7 192 448V311.4l-118.3 68.29C68.67 382.6 63.17 384 57.75 384c-11.06 0-21.81-5.734-27.75-16c-8.828-15.31-3.594-34.88 11.72-43.72L159.1 256L41.72 187.7C26.41 178.9 21.17 159.3 29.1 144C36.63 132.5 49.26 126.7 61.65 128.2C65.78 128.7 69.88 130.1 73.72 132.3L192 200.6V64c0-17.67 14.33-32 32-32S256 46.33 256 64v136.6l118.3-68.29c3.838-2.213 7.939-3.539 12.07-4.051C398.7 126.7 411.4 132.5 417.1 144c8.828 15.31 3.594 34.88-11.72 43.72L288 256l118.3 68.28C421.6 333.1 426.8 352.7 417.1 368z"})}),flags:{outline:I("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:I("path",{d:"M0 0l6.084 24H8L1.916 0zM21 5h-4l-1-4H4l3 12h3l1 4h13L21 5zM6.563 3h7.875l2 8H8.563l-2-8zm8.832 10l-2.856 1.904L12.063 13h3.332zM19 13l-1.5-6h1.938l2 8H16l3-2z"})}),solid:I("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:I("path",{d:"M64 496C64 504.8 56.75 512 48 512h-32C7.25 512 0 504.8 0 496V32c0-17.75 14.25-32 32-32s32 14.25 32 32V496zM476.3 0c-6.365 0-13.01 1.35-19.34 4.233c-45.69 20.86-79.56 27.94-107.8 27.94c-59.96 0-94.81-31.86-163.9-31.87C160.9 .3055 131.6 4.867 96 15.75v350.5c32-9.984 59.87-14.1 84.85-14.1c73.63 0 124.9 31.78 198.6 31.78c31.91 0 68.02-5.971 111.1-23.09C504.1 355.9 512 344.4 512 332.1V30.73C512 11.1 495.3 0 476.3 0z"})})},foods:{outline:I("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:I("path",{d:"M17 4.978c-1.838 0-2.876.396-3.68.934.513-1.172 1.768-2.934 4.68-2.934a1 1 0 0 0 0-2c-2.921 0-4.629 1.365-5.547 2.512-.064.078-.119.162-.18.244C11.73 1.838 10.798.023 9.207.023 8.579.022 7.85.306 7 .978 5.027 2.54 5.329 3.902 6.492 4.999 3.609 5.222 0 7.352 0 12.969c0 4.582 4.961 11.009 9 11.009 1.975 0 2.371-.486 3-1 .629.514 1.025 1 3 1 4.039 0 9-6.418 9-11 0-5.953-4.055-8-7-8M8.242 2.546c.641-.508.943-.523.965-.523.426.169.975 1.405 1.357 3.055-1.527-.629-2.741-1.352-2.98-1.846.059-.112.241-.356.658
3-.686M15 21.978c-1.08 0-1.21-.109-1.559-.402l-.176-.146c-.367-.302-.816-.452-1.266-.452s-.898.15-1.266.452l-.176.146c-.347.292-.477.402-1.557.402-2.813 0-7-5.389-7-9.009 0-5.823 4.488-5.991 5-5.991 1.939 0 2.484.471 3.387 1.251l.323.276a1.995 1.995 0 0 0 2.58 0l.323-.276c.902-.78 1.447-1.251 3.387-1.251.512 0 5 .168 5 6 0 3.617-4.187 9-7 9"})}),solid:I("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:I("path",{d:"M481.9 270.1C490.9 279.1 496 291.3 496 304C496 316.7 490.9 328.9 481.9 337.9C472.9 346.9 460.7 352 448 352H64C51.27 352 39.06 346.9 30.06 337.9C21.06 328.9 16 316.7 16 304C16 291.3 21.06 279.1 30.06 270.1C39.06 261.1 51.27 256 64 256H448C460.7 256 472.9 261.1 481.9 270.1zM475.3 388.7C478.3 391.7 480 395.8 480 400V416C480 432.1 473.3 449.3 461.3 461.3C449.3 473.3 432.1 480 416 480H96C79.03 480 62.75 473.3 50.75 461.3C38.74 449.3 32 432.1 32 416V400C32 395.8 33.69 391.7 36.69 388.7C39.69 385.7 43.76 384 48 384H464C468.2 384 472.3 385.7 475.3 388.7zM50.39 220.8C45.93 218.6 42.03 215.5 38.97 211.6C35.91 207.7 33.79 203.2 32.75 198.4C31.71 193.5 31.8 188.5 32.99 183.7C54.98 97.02 146.5 32 256 32C365.5 32 457 97.02 479 183.7C480.2 188.5 480.3 193.5 479.2 198.4C478.2 203.2 476.1 207.7 473 211.6C469.1 215.5 466.1 218.6 461.6 220.8C457.2 222.9 452.3 224 447.3 224H64.67C59.73 224 54.84 222.9 50.39 220.8zM372.7 116.7C369.7 119.7 368 123.8 368 128C368 131.2 368.9 134.3 370.7 136.9C372.5 139.5 374.1 141.6 377.9 142.8C380.8 143.1 384 144.3 387.1 143.7C390.2 143.1 393.1 141.6 395.3 139.3C397.6 137.1 399.1 134.2 399.7 131.1C400.3 128 399.1 124.8 398.8 121.9C397.6 118.1 395.5 116.5 392.9 114.7C390.3 112.9 387.2 111.1 384 111.1C379.8 111.1 375.7 113.7 372.7 116.7V116.7zM244.7 84.69C241.7 87.69 240 91.76 240 96C240 99.16 240.9 102.3 242.7 104.9C244.5 107.5 246.1 109.6 249.9 110.8C252.8 111.1 256 112.3 259.1 111.7C262.2 111.1 265.1 109.6 267.3 107.3C269.6 105.1 271.1 102.2 271.7 99.12C272.3 96.02 271.1 92.8 270.8 89.88C269.6 86.95 267.5 84.45 264.9 82.7C262.3 80.94 259.2 79.1 256 79.1C251.8 79.1 247.7 81.69 244.7 84.69V84.69zM116.7 116.7C113.7 119.7 112 123.8 112 128C112 131.2 112.9 134.3 114.7 136.9C116.5 139.5 118.1 141.6 121.9 142.8C124.8 143.1 128 144.3 131.1 143.7C134.2 143.1 137.1 141.6 139.3 139.3C141.6 137.1 143.1 134.2 143.7 131.1C144.3 128 143.1 124.8 142.8 121.9C141.6 118.1 139.5 116.5 136.9 114.7C134.3 112.9 131.2 111.1 128 111.1C123.8 111.1 119.7 113.7 116.7 116.7L116.7 116.7z"})})},frequent:{outline:I("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[I("path",{d:"M13 4h-2l-.001 7H9v2h2v2h2v-2h4v-2h-4z"}),I("path",{d:"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"})]}),solid:I("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:I("path",{d:"M256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512zM232 256C232 264 236 271.5 242.7 275.1L338.7 339.1C349.7 347.3 364.6 344.3 371.1 333.3C379.3 322.3 376.3 307.4 365.3 300L280 243.2V120C280 106.7 269.3 96 255.1 96C242.7 96 231.1 106.7 231.1 120L232 256z"})})},nature:{outline:I("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[I("path",{d:"M15.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 15.5 8M8.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 8.5 8"}),I("path",{d:"M18.933 0h-.027c-.97 0-2.138.787-3.018 1.497-1.274-.374-2.612-.51-3.887-.51-1.285 0-2.616.133-3.874.517C7.245.79 6.069 0 5.093 0h-.027C3.352 0 .07 2.67.002 7.026c-.039 2.479.276 4.238 1.04 5.013.254.258.882.677 1.295.882.191 3.177.922 5.238 2.536 6.38.897.637 2.187.949 3.2 1.102C8.04 20.6 8 20.795 8 21c0 1.773 2.35 3 4 3 1.648 0 4-1.227 4-3 0-.201-.038-.393-.072-.586 2.573-.385 5.435-1.87
37 5.925-7.587.396-.22.887-.568 1.104-.788.763-.774 1.079-2.534 1.04-5.013C23.929 2.67 20.646 0 18.933 0M3.223 9.135c-.237.281-.837 1.155-.884 1.238-.15-.41-.368-1.349-.337-3.291.051-3.281 2.478-4.972 3.091-5.031.256.015.731.27 1.265.646-1.11 1.171-2.275 2.915-2.352 5.125-.133.546-.398.858-.783 1.313M12 22c-.901 0-1.954-.693-2-1 0-.654.475-1.236 1-1.602V20a1 1 0 1 0 2 0v-.602c.524.365 1 .947 1 1.602-.046.307-1.099 1-2 1m3-3.48v.02a4.752 4.752 0 0 0-1.262-1.02c1.092-.516 2.239-1.334 2.239-2.217 0-1.842-1.781-2.195-3.977-2.195-2.196 0-3.978.354-3.978 2.195 0 .883 1.148 1.701 2.238 2.217A4.8 4.8 0 0 0 9 18.539v-.025c-1-.076-2.182-.281-2.973-.842-1.301-.92-1.838-3.045-1.853-6.478l.023-.041c.496-.826 1.49-1.45 1.804-3.102 0-2.047 1.357-3.631 2.362-4.522C9.37 3.178 10.555 3 11.948 3c1.447 0 2.685.192 3.733.57 1 .9 2.316 2.465 2.316 4.48.313 1.651 1.307 2.275 1.803 3.102.035.058.068.117.102.178-.059 5.967-1.949 7.01-4.902 7.19m6.628-8.202c-.037-.065-.074-.13-.113-.195a7.587 7.587 0 0 0-.739-.987c-.385-.455-.648-.768-.782-1.313-.076-2.209-1.241-3.954-2.353-5.124.531-.376 1.004-.63 1.261-.647.636.071 3.044 1.764 3.096 5.031.027 1.81-.347 3.218-.37 3.235"})]}),solid:I("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",children:I("path",{d:"M332.7 19.85C334.6 8.395 344.5 0 356.1 0C363.6 0 370.6 3.52 375.1 9.502L392 32H444.1C456.8 32 469.1 37.06 478.1 46.06L496 64H552C565.3 64 576 74.75 576 88V112C576 156.2 540.2 192 496 192H426.7L421.6 222.5L309.6 158.5L332.7 19.85zM448 64C439.2 64 432 71.16 432 80C432 88.84 439.2 96 448 96C456.8 96 464 88.84 464 80C464 71.16 456.8 64 448 64zM416 256.1V480C416 497.7 401.7 512 384 512H352C334.3 512 320 497.7 320 480V364.8C295.1 377.1 268.8 384 240 384C211.2 384 184 377.1 160 364.8V480C160 497.7 145.7 512 128 512H96C78.33 512 64 497.7 64 480V249.8C35.23 238.9 12.64 214.5 4.836 183.3L.9558 167.8C-3.331 150.6 7.094 133.2 24.24 128.1C41.38 124.7 58.76 135.1 63.05 152.2L66.93 167.8C70.49 182 83.29 191.1 97.97 191.1H303.8L416 256.1z"})})},objects:{outline:I("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[I("path",{d:"M12 0a9 9 0 0 0-5 16.482V21s2.035 3 5 3 5-3 5-3v-4.518A9 9 0 0 0 12 0zm0 2c3.86 0 7 3.141 7 7s-3.14 7-7 7-7-3.141-7-7 3.14-7 7-7zM9 17.477c.94.332 1.946.523 3 .523s2.06-.19 3-.523v.834c-.91.436-1.925.689-3 .689a6.924 6.924 0 0 1-3-.69v-.833zm.236 3.07A8.854 8.854 0 0 0 12 21c.965 0 1.888-.167 2.758-.451C14.155 21.173 13.153 22 12 22c-1.102 0-2.117-.789-2.764-1.453z"}),I("path",{d:"M14.745 12.449h-.004c-.852-.024-1.188-.858-1.577-1.824-.421-1.061-.703-1.561-1.182-1.566h-.009c-.481 0-.783.497-1.235 1.537-.436.982-.801 1.811-1.636 1.791l-.276-.043c-.565-.171-.853-.691-1.284-1.794-.125-.313-.202-.632-.27-.913-.051-.213-.127-.53-.195-.634C7.067 9.004 7.039 9 6.99 9A1 1 0 0 1 7 7h.01c1.662.017 2.015 1.373 2.198 2.134.486-.981 1.304-2.058 2.797-2.075 1.531.018 2.28 1.153 2.731 2.141l.002-.008C14.944 8.424 15.327 7 16.979 7h.032A1 1 0 1 1 17 9h-.011c-.149.076-.256.474-.319.709a6.484 6.484 0 0 1-.311.951c-.429.973-.79 1.789-1.614 1.789"})]}),solid:I("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",children:I("path",{d:"M112.1 454.3c0 6.297 1.816 12.44 5.284 17.69l17.14 25.69c5.25 7.875 17.17 14.28 26.64 14.28h61.67c9.438 0 21.36-6.401 26.61-14.28l17.08-25.68c2.938-4.438 5.348-12.37 5.348-17.7L272 415.1h-160L112.1 454.3zM191.4 .0132C89.44 .3257 16 82.97 16 175.1c0 44.38 16.44 84.84 43.56 115.8c16.53 18.84 42.34 58.23 52.22 91.45c.0313 .25 .0938 .5166 .125 .7823h160.2c.0313-.2656 .0938-.5166 .125-.7823c9.875-33.22 35.69-72.61 52.22-91.45C351.6 260.8 368 220.4 368 175.1C368 78.61 288.9-.2837 191.4 .0132zM192 96.01c-44.13 0-80 35.89-80 79.1C112 184.8 104.8 192 96 192S80 184.8 80 176c0-61.76 50.25-111.1 112-111.1c8.844 0 16 7.159 16 16S200.8 96.01 192 96.01z"})})},people:{outline:I("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[I("path",{d:"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"}),I("path",{d:"M8 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 8 7M16 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 16 7M15.232 15c-.693 1.195-1.87 2-3.349 2-1.477 0-2.655-.805-3.347-2H15m3-2H6a6 6 0 1 0 12 0"})]}),solid:I("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:I("path",{d:"M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM256 432C332.1 432 396.2 382 415.2 314.1C419.1 300.4 407.8 288 393.6 288H118.4C104.2 288 92.92 300.4 96.76 314.1C115.8 382 179.9 432 256 432V432zM176.4 160C158.7 160 144.4 174.3 144.4 192C144.4 209.7 158.7 224 176.4 224C194 224 208.4 209.7 208.4 192C208.4 174.3 194 160 176.4 160zM336.4 224C354 224 368.4 209.7 368.4 192C368.4 
3174.3 354 160 336.4 160C318.7 160 304.4 174.3 304.4 192C304.4 209.7 318.7 224 336.4 224z"})})},places:{outline:I("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[I("path",{d:"M6.5 12C5.122 12 4 13.121 4 14.5S5.122 17 6.5 17 9 15.879 9 14.5 7.878 12 6.5 12m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5M17.5 12c-1.378 0-2.5 1.121-2.5 2.5s1.122 2.5 2.5 2.5 2.5-1.121 2.5-2.5-1.122-2.5-2.5-2.5m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5"}),I("path",{d:"M22.482 9.494l-1.039-.346L21.4 9h.6c.552 0 1-.439 1-.992 0-.006-.003-.008-.003-.008H23c0-1-.889-2-1.984-2h-.642l-.731-1.717C19.262 3.012 18.091 2 16.764 2H7.236C5.909 2 4.738 3.012 4.357 4.283L3.626 6h-.642C1.889 6 1 7 1 8h.003S1 8.002 1 8.008C1 8.561 1.448 9 2 9h.6l-.043.148-1.039.346a2.001 2.001 0 0 0-1.359 2.097l.751 7.508a1 1 0 0 0 .994.901H3v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h6v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h1.096a.999.999 0 0 0 .994-.901l.751-7.508a2.001 2.001 0 0 0-1.359-2.097M6.273 4.857C6.402 4.43 6.788 4 7.236 4h9.527c.448 0 .834.43.963.857L19.313 9H4.688l1.585-4.143zM7 21H5v-1h2v1zm12 0h-2v-1h2v1zm2.189-3H2.811l-.662-6.607L3 11h18l.852.393L21.189 18z"})]}),solid:I("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:I("path",{d:"M39.61 196.8L74.8 96.29C88.27 57.78 124.6 32 165.4 32H346.6C387.4 32 423.7 57.78 437.2 96.29L472.4 196.8C495.6 206.4 512 229.3 512 256V448C512 465.7 497.7 480 480 480H448C430.3 480 416 465.7 416 448V400H96V448C96 465.7 81.67 480 64 480H32C14.33 480 0 465.7 0 448V256C0 229.3 16.36 206.4 39.61 196.8V196.8zM109.1 192H402.9L376.8 117.4C372.3 104.6 360.2 96 346.6 96H165.4C151.8 96 139.7 104.6 135.2 117.4L109.1 192zM96 256C78.33 256 64 270.3 64 288C64 305.7 78.33 320 96 320C113.7 320 128 305.7 128 288C128 270.3 113.7 256 96 256zM416 320C433.7 320 448 305.7 448 288C448 270.3 433.7 256 416 256C398.3 256 384 270.3 384 288C384 305.7 398.3 320 416 320z"})})},symbols:{outline:I("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:I("path",{d:"M0 0h11v2H0zM4 11h3V6h4V4H0v2h4zM15.5 17c1.381 0 2.5-1.116 2.5-2.493s-1.119-2.493-2.5-2.493S13 13.13 13 14.507 14.119 17 15.5 17m0-2.986c.276 0 .5.222.5.493 0 .272-.224.493-.5.493s-.5-.221-.5-.493.224-.493.5-.493M21.5 19.014c-1.381 0-2.5 1.116-2.5 2.493S20.119 24 21.5 24s2.5-1.116 2.5-2.493-1.119-2.493-2.5-2.493m0 2.986a.497.497 0 0 1-.5-.493c0-.271.224-.493.5-.493s.5.222.5.493a.497.497 0 0 1-.5.493M22 13l-9 9 1.513 1.5 8.99-9.009zM17 11c2.209 0 4-1.119 4-2.5V2s.985-.161 1.498.949C23.01 4.055 23 6 23 6s1-1.119 1-3.135C24-.02 21 0 21 0h-2v6.347A5.853 5.853 0 0 0 17 6c-2.209 0-4 1.119-4 2.5s1.791 2.5 4 2.5M10.297 20.482l-1.475-1.585a47.54 47.54 0 0 1-1.442 1.129c-.307-.288-.989-1.016-2.045-2.183.902-.836 1.479-1.466 1.729-1.892s.376-.871.376-1.336c0-.592-.273-1.178-.818-1.759-.546-.581-1.329-.871-2.349-.871-1.008 0-1.79.293-2.344.879-.556.587-.832 1.181-.832 1.784 0 .813.419 1.748 1.256 2.805-.847.614-1.444 1.208-1.794 1.784a3.465 3.465 0 0 0-.523 1.833c0 .857.308 1.56.924 2.107.616.549 1.423.823 2.42.823 1.173 0 2.444-.379 3.813-1.137L8.235 24h2.819l-2.09-2.383 1.333-1.135zm-6.736-6.389a1.02 1.02 0 0 1 .73-.286c.31 0 .559.085.747.254a.849.849 0 0 1 .283.659c0 .518-.419 1.112-1.257 1.784-.536-.651-.805-1.231-.805-1.742a.901.901 0 0 1 .302-.669M3.74 22c-.427 0-.778-.116-1.057-.349-.279-.232-.418-.487-.418-.766 0-.594.509-1.288 1.527-2.083.968 1.134 1.717 1.946 2.248 2.438-.921.507-1.686.76-2.3.76"})}),solid:I("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:I("path",{d:"M500.3 7.251C507.7 13.33 512 22.41 512 31.1V175.1C512 202.5 483.3 223.1 447.1 223.1C412.7 223.1 383.1 202.5 383.1 175.1C383.1 149.5 412.7 127.1 447.1 127.1V71.03L351.1 90.23V207.1C351.1 234.5 323.3 255.1 287.1 255.1C252.7 255.1 223.1 234.5 223.1 207.1C223.1 181.5 252.7 159.1 287.1 159.1V63.1C287.1 48.74 298.8 35.61 313.7 32.62L473.7 .6198C483.1-1.261 492.9 1.173 500.3 7.251H500.3zM74.66 303.1L86.5 286.2C92.43 277.3 102.4 271.1 113.1 271.1H174.9C185.6 271.1 195.6 277.3 201.5 286.2L213.3 303.1H239.1C266.5 303.1 287.1 325.5 287.1 351.1V463.1C287.1 490.5 266.5 511.1 239.1 511.1H47.1C21.49 511.1-.0019 490.5-.0019 463.1V351.1C-.0019 325.5 21.49 303.1 47.1 303.1H74.66zM143.1 359.1C117.5 359.1 95.1 381.5 95.1 407.1C95.1 434.5 117.5 455.1 143.1 455.1C170.5 455.1 191.1 434.5 191.1 407.1C191.1 381.5 170.5 359.1 143.1 359.1zM440.3 367.1H496C502.7 367.1 508.6 372.1 510.1 378.4C513.3 384.6 511.6 391.7 506.5 396L378.5 508C372.9 512.1 364.6 513.3 358.6 508.9C352.6 504.6 350.3 496.6 353.3 489.7L391.7 399.1H336C329.3 399.1 323.4 395.9 321 389.6C318.7 383.4 320.4 376.3 325.5 371.1L453.5 259.1C459.1 255 467.4 254.7 473.4 259.1C479.4 263.4 481.6 271.4 478.7 278.3L440.3 367.1zM116.7 219.1L19.85 119.2C-8.112 90.26-6.614 42.31 24.85 15.34C51.82-8.137 93.26-3.642 118.2 21.83L128.2 32.32L137.7 21.83C162.7-3.642 203.6-8.137 231.6 15.34C262.6 42.31 264.1 90.26 236.1 119.2L139.7 219.1C133.2 225.6 122.7 225.6 116.7 219.1H116.7z"})})}},ef={loupe:I("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:I("path",{d:"M12.9 14.32a8 8 0 1 1 1.41-1.41l5.35 5.33-1.42 1.42-5.33-5.34zM8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12z"})}),delete:I("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:I("path",{d:"M10 8.586L2.929 1.515 1.515 2.929 8.586 10l-7.071 7.071 1.414 1.414L10 11.414l7.071 7.071 1.414-1.414L11.414 10l7.071-7.071-1.414-1.414L10 8.586z"})})};function ep(e){let{id:t,skin:n,emoji:r}=e;if(e.shortcodes){let r=e.shortcodes.match(ec.SHORTCODES_REGEX);r&&(t=r[1],r[2]&&(n=r[2]))}if(r||(r=ec.get(t||e.native)),!r)return e.fallback;let o=r.skins[n-1]||r.skins[0],i=o.src||("native"==e.set||e.spritesheet?void 0:"function"==typeof e.getImageURL?e.getImageURL(e.set,o.unified):`https://cdn.jsdelivr.net/npm/emoji-datasource-${e.set}@15.0.1/img/${e.set}/64/${o.unified}.png`),s="function"==typeof e.getSpritesheetURL?e.getSpritesheetURL(e.set):`https://cdn.jsdelivr.net/npm/emoji-datasource-${e.set}@15.0.1/img/${e.set}/sheets-256/64.png`;return I("span",{class:"emoji-mart-emoji","data-emoji-set":e.set,children:i?I("img",{style:{maxWidth:e.size||"1em",maxHeight:e.size||"1em",display:"inline-block"},alt:o.native||o.shortcodes,src:i}):"native"==e.set?I("span",{style:{fontSize:e.size,fontFamily:'"EmojiMart", "Segoe UI Emoji", "Segoe UI Symbol", "Segoe UI", "Apple Color Emoji", "Twemoji Mozilla", "Noto Color Emoji", "Android Emoji"'},children:o.native}):I("span",{style:{display:"block",width:e.size,height:e.size,backgroundImage:`url(${s})`,backgroundSize:`${100*Z.sheet.cols}% ${100*Z.sheet.rows}%`,backgroundPosition:`${100/(Z.sheet.cols-1)*o.x}% ${100/(Z.sheet.rows-1)*o.y}%`}})})}let em="u">typeof window&&window.HTMLElement?window.HTMLElement:Object;class ev extends em{static get observedAttributes(){return Object.keys(this.Props)}update(e={}){for(let t in e)this.attributeChangedCallback(t,null,e[t])}attributeChangedCallback(e,t,n){if(!this.component)return;let r=ea(e,{[e]:n},this.constructor.Props,this);this.component.componentWillReceiveProps?this.component.componentWillReceiveProps({[e]:r}):(this.component.props[e]=r,this.component.forceUpdate())}disconnectedCallback(){this.disconnected=!0,this.component&&this.component.unregister&&this.component.unregister()}constructor(e={}){if(super(),this.props=e,e.parent||e.ref){let t=null;const n=e.parent||(t=e.ref&&e.ref.current);t&&(t.innerHTML=""),n&&n.appendChild(this)}}}class eg extends ev{setShadow(){this.attachShadow({mode:"open"})}injectStyles(e){if(!e)return;let t=document.createElement("style");t.textContent=e,this.shadowRoot.insertBefore(t,this.shadowRoot.firstChild)}constructor(e,{styles:t}={}){super(e),this.setShadow(),this.injectStyles(t)}}var ey={fallback:"",id:"",native:"",shortcodes:"",size:{value:"",transform:e=>/\D/.test(e)?e:`${e}px`},set:G.set,skin:G.skin};class eb extends ev{async connectedCallback(){let e=es(this.props,ey,this);e.element=this,e.ref=e=>{this.component=e},await eo(),this.disconnected||L(I(ep,{...e}),this)}constructor(e){super(e)}}o(eb,"Props",ey),"u">typeof customElements&&!customElements.get("em-emoji")&&customElements.define("em-emoji",eb);var ew,e_,ek=[],eS=s.__b,eE=s.__r,eC=s.diffed,ex=s.__c,eD=s.unmount;function eA(){var e;
vendor: 5,626 bytes, line 3
3for(ek.sort(function(e,t){return e.__v.__b-t.__v.__b});e=ek.pop();)if(e.__P)try{e.__H.__h.forEach(eF),e.__H.__h.forEach(eR),e.__H.__h=[]}catch(t){e.__H.__h=[],s.__e(t,e.__v)}}s.__b=function(e){ew=null,eS&&eS(e)},s.__r=function(e){eE&&eE(e);var t=(ew=e.__c).__H;t&&(t.__h.forEach(eF),t.__h.forEach(eR),t.__h=[])},s.diffed=function(e){eC&&eC(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==ek.push(t)&&e_===s.requestAnimationFrame||((e_=s.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),eM&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);eM&&(t=requestAnimationFrame(n))})(eA)),ew=null},s.__c=function(e,t){t.some(function(e){try{e.__h.forEach(eF),e.__h=e.__h.filter(function(e){return!e.__||eR(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],s.__e(n,e.__v)}}),ex&&ex(e,t)},s.unmount=function(e){eD&&eD(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{eF(e)}catch(e){t=e}}),t&&s.__e(t,n.__v))};var eM="function"==typeof requestAnimationFrame;function eF(e){var t=ew,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),ew=t}function eR(e){var t=ew;e.__c=e.__(),ew=t}function ez(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 eO(e){this.props=e}(eO.prototype=new w).isPureReactComponent=!0,eO.prototype.shouldComponentUpdate=function(e,t){return ez(this.props,e)||ez(this.state,t)};var eT=s.__b;s.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),eT&&eT(e)},"u">typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref");var eL=s.__e;s.__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)}eL(e,t,n)};var ej=s.unmount;function eI(){this.__u=0,this.t=null,this.__b=null}function eP(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function eN(){this.u=null,this.o=null}s.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),ej&&ej(e)},(eI.prototype=new w).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=eP(r.__v),i=!1,s=function(){i||(i=!0,n.__R=null,o?o(a):a())};n.__R=s;var a=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(s,s)},eI.prototype.componentWillUnmount=function(){this.t=[]},eI.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=function(e,t){for(var n in t)e[n]=t[n];return e}({},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&&v(b,null,e.fallback);return o&&(o.__h=null),[v(b,null,t.__e?null:e.children),o]};var eK=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]}};(eN.prototype=new w).__e=function(e){var t=this,n=eP(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),eK(t,e,r)):o()};n?n(i):i()}},eN.prototype.render=function(e){this.u=null,this.o=new Map;var t=C(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},eN.prototype.componentDidUpdate=eN.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){eK(e,n,t)})};var eB="u">typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,eH=/^(?: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]/,e$="u">typeof document;w.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(w.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var eW=s.event;function eV(){}function eJ(){return this.cancelBubble}function eU(){return this.defaultPrevented}s.event=function(e){return eW&&(e=eW(e)),e.persist=eV,e.isPropagationStopped=eJ,e.isDefaultPrevented=eU,e.nativeEvent=e};var eY={configurable:!0,get:function(){return this.class}},eq=s.vnode;s.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 s,a=n[i];e$&&"children"===i&&"noscript"===t||"value"===i&&"defaultValue"in n&&null==a||("defaultValue"===i&&"value"in n&&null==n.value?i="value":"download"===i&&!0===a?a="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+t)&&(s=n.type,!("u">typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(s))?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&&eH.test(i)?i=i.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===a&&(a=void 0),r[i]=a)}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=C(n.children).forEac
3h(function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)})),"select"==t&&null!=r.defaultValue&&(r.value=C(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&&(eY.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",eY))}e.$$typeof=eB,eq&&eq(e)};var eG=s.__r;s.__r=function(e){eG&&eG(e),e.__c};let eX={light:"outline",dark:"solid"};class eZ extends eO{renderIcon(e){let{icon:t}=e;if(t){if(t.svg)return I("span",{class:"flex",dangerouslySetInnerHTML:{__html:t.svg}});if(t.src)return I("img",{src:t.src})}let n=eh[e.id]||eh.custom;return n["auto"==this.props.icons?eX[this.props.theme]:this.props.icons]||n}render(){let e=null;return I("nav",{id:"nav",class:"padding","data-position":this.props.position,dir:this.props.dir,children:I("div",{class:"flex relative",children:[this.categories.map((t,n)=>{let r=t.name||X.categories[t.id],o=!this.props.unfocused&&t.id==this.state.categoryId;return o&&(e=n),I("button",{"aria-label":r,"aria-selected":o||void 0,title:r,type:"button",class:"flex flex-grow flex-center",onMouseDown:e=>e.preventDefault(),onClick:()=>{this.props.onClick({category:t,i:n})},children:this.renderIcon(t)})}),I("div",{class:"bar",style:{width:`${100/this.categories.length}%`,opacity:+(null!=e),transform:"rtl"===this.props.dir?`scaleX(-1) translateX(${100*e}%)`:`translateX(${100*e}%)`}})]})})}constructor(){super(),this.categories=Z.categories.filter(e=>!e.target),this.state={categoryId:this.categories[0].id}}}class eQ extends eO{shouldComponentUpdate(e){for(let t in e)if("children"!=t&&e[t]!=this.props[t])return!0;return!1}render(){return this.props.children}}class e1 extends w{getInitialState(e=this.props){return{skin:N("skin")||e.skin,theme:this.initTheme(e.theme)}}componentWillMount(){this.dir=X.rtl?"rtl":"ltr",this.refs={menu:y(),navigation:y(),scroll:y(),search:y(),searchInput:y(),skinToneButton:y(),skinToneRadio:y()},this.initGrid(),!1==this.props.stickySearch&&"sticky"==this.props.searchPosition&&(console.warn("[EmojiMart] Deprecation warning: `stickySearch` has been renamed `searchPosition`."),this.props.searchPosition="static")}componentDidMount(){if(this.register(),this.shadowRoot=this.base.parentNode,this.props.autoFocus){let{searchInput:e}=this.refs;e.current&&e.current.focus()}}componentWillReceiveProps(e){for(let t in this.nextState||(this.nextState={}),e)this.nextState[t]=e[t];clearTimeout(this.nextStateTimer),this.nextStateTimer=setTimeout(()=>{let e=!1;for(let t in this.nextState)this.props[t]=this.nextState[t],("custom"===t||"categories"===t)&&(e=!0);delete this.nextState;let t=this.getInitialState();if(e)return this.reset(t);this.setState(t)})}componentWillUnmount(){this.unregister()}async reset(e={}){await eo(this.props),this.initGrid(),this.unobserve(),this.setState(e,()=>{this.observeCategories(),this.observeRows()})}register(){document.addEventListener("click",this.handleClickOutside),this.observe()}unregister(){document.removeEventListener("click",this.handleClickOutside),this.darkMedia?.removeEventListener("change",this.darkMediaCallback),this.unobserve()}observe(){this.observeCategories(),this.observeRows()}unobserve({except:e=[]}={}){for(let t of(Array.isArray(e)||(e=[e]),this.observers))e.includes(t)||t.disconnect();this.observers=[].concat(e)}initGrid(){let{categories:e}=Z;this.refs.categories=new Map;let t=Z.categories.map(e=>e.id).join(",");this.navKey&&this.navKey!=t&&this.refs.scroll.current&&(this.refs.scroll.current.scrollTop=0),this.navKey=t,this.grid=[],this.grid.setsize=0;let n=(e,t)=>{let n=[];n.__categoryId=t.id,n.__index=e.length,this.grid.push(n);let r=this.grid.length-1,o=r%10?{}:y();return o.index=r,o.posinset=this.grid.setsize+1,e.push(o),n};for(let t of e){let e=[],r=n(e,t);for(let o of t.emojis)r.length==this.getPerLine()&&(r=n(e,t)),this.grid.setsize+=1,r.push(o);this.refs.categories.set(t.id,{root:y(),rows:e})}}initTheme(e){if("auto"!=e)return e;if(!this.darkMedia){if(this.darkMedia=matchMedia("(prefers-color-scheme: dark)"),this.darkMedia.media.match(/^not/))return"light";this.darkMedia.addEventListener("change",this.darkMediaCallback)}
3return this.darkMedia.matches?"dark":"light"}initDynamicPerLine(e=this.props){if(!e.dynamicWidth)return;let{element:t,emojiButtonSize:n}=e,r=()=>{let{width:e}=t.getBoundingClientRect();return Math.floor(e/n)},o=new ResizeObserver(()=>{this.unobserve({except:o}),this.setState({perLine:r()},()=>{this.initGrid(),this.forceUpdate(()=>{this.observeCategories(),this.observeRows()})})});return o.observe(t),this.observers.push(o),r()}getPerLine(){return this.state.perLine||this.props.perLine}getEmojiByPos([e,t]){let n=this.state.searchResults||this.grid,r=n[e]&&n[e][t];if(r)return ec.get(r)}observeCategories(){let e=this.refs.navigation.current;if(!e)return;let t=new Map,n=t=>{t!=e.state.categoryId&&e.setState({categoryId:t})},r=new IntersectionObserver(e=>{for(let n of e){let e=n.target.dataset.id;t.set(e,n.intersectionRatio)}for(let[e,r]of[...t])if(r){n(e);break}},{root:this.refs.scroll.current,threshold:[0,1]});for(let{root:e}of this.refs.categories.values())r.observe(e.current);this.observers.push(r)}observeRows(){let e={...this.state.visibleRows},t=new IntersectionObserver(t=>{for(let n of t){let t=parseInt(n.target.dataset.index);n.isIntersecting?e[t]=!0:delete e[t]}this.setState({visibleRows:e})},{root:this.refs.scroll.current,rootMargin:`${15*this.props.emojiButtonSize}px 0px ${10*this.props.emojiButtonSize}px`});for(let{rows:e}of this.refs.categories.values())for(let n of e)n.current&&t.observe(n.current);this.observers.push(t)}preventDefault(e){e.preventDefault()}unfocusSearch(){let e=this.refs.searchInput.current;e&&e.blur()}navigate({e:e,input:t,left:n,right:r,up:o,down:i}){let s=this.state.searchResults||this.grid;if(!s.length)return;let[a,l]=this.state.pos,c=(()=>{if(0==a&&0==l&&!e.repeat&&(n||o))return null;if(-1==a)return!e.repeat&&(r||i)&&t.selectionStart==t.value.length?[0,0]:null;if(n||r){let e=s[a],t=n?-1:1;if(!e[l+=t]){if(a+=t,!(e=s[a]))return a=n?0:s.length-1,l=n?0:s[a].length-1,[a,l];l=n?e.length-1:0}return[a,l]}if(o||i){let e=s[a+=o?-1:1];return e?e[l]||(l=e.length-1):(a=o?0:s.length-1,l=o?0:s[a].length-1),[a,l]}})();if(c)e.preventDefault();else{this.state.pos[0]>-1&&this.setState({pos:[-1,-1]});return}this.setState({pos:c,keyboard:!0},()=>{this.scrollTo({row:c[0]})})}scrollTo({categoryId:e,row:t}){let n=this.state.searchResults||this.grid;if(!n.length)return;let r=this.refs.scroll.current,o=r.getBoundingClientRect(),i=0;if(t>=0&&(e=n[t].__categoryId),e&&(i=(this.refs[e]||this.refs.categories.get(e).root).current.getBoundingClientRect().top-(o.top-r.scrollTop)+1),t>=0)if(t){let e=i+n[t].__index*this.props.emojiButtonSize,s=e+this.props.emojiButtonSize+.88*this.props.emojiButtonSize;if(e<r.scrollTop)i=e;else{if(!(s>r.scrollTop+o.height))return;i=s-o.height}}else i=0;this.ignoreMouse(),r.scrollTop=i}ignoreMouse(){this.mouseIsIgnored=!0,clearTimeout(this.ignoreMouseTimer),this.ignoreMouseTimer=setTimeout(()=>{delete this.mouseIsIgnored},100)}handleEmojiOver(e){this.mouseIsIgnored||this.state.showSkins||this.setState({pos:e||[-1,-1],keyboard:!1})}handleEmojiClick({e:e,emoji:t,pos:n}){if(this.props.onEmojiSelect&&(!t&&n&&(t=this.getEmojiByPos(n)),t)){let n=function(e,{skinIndex:t=0}={}){let n=e.skins[t]||(t=0,e.skins[t]),r={id:e.id,name:e.name,native:n.native,unified:n.unified,keywords:e.keywords,shortcodes:n.shortcodes||e.shortcodes};return e.skins.length>1&&(r.skin=t+1),n.src&&(r.src=n.src),e.aliases&&e.aliases.length&&(r.aliases=e.aliases),e.emoticons&&e.emoticons.length&&(r.emoticons=e.emoticons),r}(t,{skinIndex:this.state.skin-1});this.props.maxFrequentRows&&U(n,this.props),this.props.onEmojiSelect(n,e)}}closeSkins(){this.state.showSkins&&(this.setState({showSkins:null,tempSkin:null}),this.base.removeEventListener("click",this.handleBaseClick),this.base.removeEventListener("keydown",this.handleBaseKeydown))}handleSkinMouseOver(e){this.setState({tempSkin:e})}handleSkinClick(e){this.ignoreMouse(),this.closeSkins(),this.setState({skin:e,tempSkin:null}),P("skin",e)}renderNav(){return I(eZ,{ref:this.refs.navigation,icons:this.props.icons,theme:this.state.theme,dir:this.dir,unfocused:!!this.state.searchResults,position:this.props.navPosition,onClick:this.handleCategoryClick},this.navKey)}renderPreview(){let e=this.getEmojiByPos(this.state.pos),t=this.state.searchResults&&!this.state.searchResults.length;return I("div",{id:"preview",class:"flex flex-middle",dir:this.dir,"data-
3position":this.props.previewPosition,children:[I("div",{class:"flex flex-middle flex-grow",children:[I("div",{class:"flex flex-auto flex-middle flex-center",style:{height:this.props.emojiButtonSize,fontSize:this.props.emojiButtonSize},children:I(ep,{emoji:e,id:t?this.props.noResultsEmoji||"cry":this.props.previewEmoji||("top"==this.props.previewPosition?"point_down":"point_up"),set:this.props.set,size:this.props.emojiButtonSize,skin:this.state.tempSkin||this.state.skin,spritesheet:!0,getSpritesheetURL:this.props.getSpritesheetURL})}),I("div",{class:`margin-${this.dir[0]}`,children:e||t?I("div",{class:`padding-${this.dir[2]} align-${this.dir[0]}`,children:[I("div",{class:"preview-title ellipsis",children:e?e.name:X.search_no_results_1}),I("div",{class:"preview-subtitle ellipsis color-c",children:e?e.skins[0].shortcodes:X.search_no_results_2})]}):I("div",{class:"preview-placeholder color-c",children:X.pick})})]}),!e&&"preview"==this.props.skinTonePosition&&this.renderSkinToneButton()]})}renderEmojiButton(e,{pos:t,posinset:n,grid:r}){var o;let i=this.props.emojiButtonSize,s=this.state.tempSkin||this.state.skin,a=(e.skins[s-1]||e.skins[0]).native,l=(o=this.state.pos,Array.isArray(o)&&Array.isArray(t)&&o.length===t.length&&o.every((e,n)=>e==t[n])),c=t.concat(e.id).join("");return I(eQ,{selected:l,skin:s,size:i,children:I("button",{"aria-label":a,"aria-selected":l||void 0,"aria-posinset":n,"aria-setsize":r.setsize,"data-keyboard":this.state.keyboard,title:"none"==this.props.previewPosition?e.name:void 0,type:"button",class:"flex flex-center flex-middle",tabindex:"-1",onClick:t=>this.handleEmojiClick({e:t,emoji:e}),onMouseEnter:()=>this.handleEmojiOver(t),onMouseLeave:()=>this.handleEmojiOver(),style:{width:this.props.emojiButtonSize,height:this.props.emojiButtonSize,fontSize:this.props.emojiSize,lineHeight:0},children:[I("div",{"aria-hidden":"true",class:"background",style:{borderRadius:this.props.emojiButtonRadius,backgroundColor:this.props.emojiButtonColors?this.props.emojiButtonColors[(n-1)%this.props.emojiButtonColors.length]:void 0}}),I(ep,{emoji:e,set:this.props.set,size:this.props.emojiSize,skin:s,spritesheet:!0,getSpritesheetURL:this.props.getSpritesheetURL})]})},c)}renderSearch(){let e="none"==this.props.previewPosition||"search"==this.props.skinTonePosition;return I("div",{children:[I("div",{class:"spacer"}),I("div",{class:"flex flex-middle",children:[I("div",{class:"search relative flex-grow",children:[I("input",{type:"search",ref:this.refs.searchInput,placeholder:X.search,onClick:this.handleSearchClick,onInput:this.handleSearchInput,onKeyDown:this.handleSearchKeyDown,autoComplete:"off"}),I("span",{class:"icon loupe flex",children:ef.loupe}),this.state.searchResults&&I("button",{title:"Clear","aria-label":"Clear",type:"button",class:"icon delete flex",onClick:this.clearSearch,onMouseDown:this.preventDefault,children:ef.delete})]}),e&&this.renderSkinToneButton()]})]})}renderSearchResults(){let{searchResults:e}=this.state;return e?I("div",{class:"category",ref:this.refs.search,children:[I("div",{class:`sticky padding-small align-${this.dir[0]}`,children:X.categories.search}),I("div",{children:e.length?e.map((t,n)=>I("div",{class:"flex",children:t.map((t,r)=>this.renderEmojiButton(t,{pos:[n,r],posinset:n*this.props.perLine+r+1,grid:e}))})):I("div",{class:`padding-small align-${this.dir[0]}`,children:this.props.onAddCustomEmoji&&I("a",{onClick:this.props.onAddCustomEmoji,children:X.add_custom})})})]}):null}renderCategories(){let{categories:e}=Z,t=!!this.state.searchResults,n=this.getPerLine();return I("div",{style:{visibility:t?"hidden":void 0,display:t?"none":void 0,height:"100%"},children:e.map(e=>{let{root:t,rows:r}=this.refs.categories.get(e.id);return I("div",{"data-id":e.target?e.target.id:e.id,class:"category",ref:t,children:[I("div",{class:`sticky padding-small align-${this.dir[0]}`,children:e.name||X.categories[e.id]}),I("div",{class:"relative",style:{height:r.length*this.props.emojiButtonSize},children:r.map((t,r)=>{let o=t.index-t.index%10,i=this.state.visibleRows[o],s="current"in t?t:void 0;if(!i&&!s)return null;let a=r*n,l=e.emojis.slice(a,a+n);return l.length<n&&l.push(...Array(n-l.length)),I("div",{"data-index":t.index,ref:s,class:"flex row",style:{to
3p:r*this.props.emojiButtonSize},children:i&&l.map((e,n)=>{if(!e)return I("div",{style:{width:this.props.emojiButtonSize,height:this.props.emojiButtonSize}});let r=ec.get(e);return this.renderEmojiButton(r,{pos:[t.index,n],posinset:t.posinset+n,grid:this.grid})})},t.index)})})]})})})}renderSkinToneButton(){return"none"==this.props.skinTonePosition?null:I("div",{class:"flex flex-auto flex-center flex-middle",style:{position:"relative",width:this.props.emojiButtonSize,height:this.props.emojiButtonSize},children:I("button",{type:"button",ref:this.refs.skinToneButton,class:"skin-tone-button flex flex-auto flex-center flex-middle","aria-selected":this.state.showSkins?"":void 0,"aria-label":X.skins.choose,title:X.skins.choose,onClick:this.openSkins,style:{width:this.props.emojiSize,height:this.props.emojiSize},children:I("span",{class:`skin-tone skin-tone-${this.state.skin}`})})})}renderLiveRegion(){let e=this.getEmojiByPos(this.state.pos);return I("div",{"aria-live":"polite",class:"sr-only",children:e?e.name:""})}renderSkins(){let e=this.refs.skinToneButton.current.getBoundingClientRect(),t=this.base.getBoundingClientRect(),n={};
3return"ltr"==this.dir?n.right=t.right-e.right-3:n.left=e.left-t.left-3,"bottom"==this.props.previewPosition&&"preview"==this.props.skinTonePosition?n.bottom=t.bottom-e.top+6:(n.top=e.bottom-t.top+3,n.bottom="auto"),I("div",{ref:this.refs.menu,role:"radiogroup",dir:this.dir,"aria-label":X.skins.choose,class:"menu hidden","data-position":n.top?"top":"bottom",style:n,children:[...Array(6).keys()].map(e=>{let t=e+1,n=this.state.skin==t;return I("div",{children:[I("input",{type:"radio",name:"skin-tone",value:t,"aria-label":X.skins[t],ref:n?this.refs.skinToneRadio:null,defaultChecked:n,onChange:()=>this.handleSkinMouseOver(t),onKeyDown:e=>{("Enter"==e.code||"Space"==e.code||"Tab"==e.code)&&(e.preventDefault(),this.handleSkinClick(t))}}),I("button",{"aria-hidden":"true",tabindex:"-1",onClick:()=>this.handleSkinClick(t),onMouseEnter:()=>this.handleSkinMouseOver(t),onMouseLeave:()=>this.handleSkinMouseOver(),class:"option flex flex-grow flex-middle",children:[I("span",{class:`skin-tone skin-tone-${t}`}),I("span",{class:"margin-small-lr",children:X.skins[t]})]})]})})})}render(){let e=this.props.perLine*this.props.emojiButtonSize;return I("section",{id:"root",class:"flex flex-column",dir:this.dir,style:{width:this.props.dynamicWidth?"100%":`calc(${e}px + (var(--padding) + var(--sidebar-width)))`},"data-emoji-set":this.props.set,"data-theme":this.state.theme,"data-menu":this.state.showSkins?"":void 0,children:["top"==this.props.previewPosition&&this.renderPreview(),"top"==this.props.navPosition&&this.renderNav(),"sticky"==this.props.searchPosition&&I("div",{class:"padding-lr",children:this.renderSearch()}),I("div",{ref:this.refs.scroll,class:"scroll flex-grow padding-lr",children:I("div",{style:{width:this.props.dynamicWidth?"100%":e,height:"100%"},children:["static"==this.props.searchPosition&&this.renderSearch(),this.renderSearchResults(),this.renderCategories()]})}),"bottom"==this.props.navPosition&&this.renderNav(),"bottom"==this.props.previewPosition&&this.renderPreview(),this.state.showSkins&&this.renderSkins(),this.renderLiveRegion()]})}constructor(e){super(),o(this,"darkMediaCallback",()=>{"auto"==this.props.theme&&this.setState({theme:this.darkMedia.matches?"dark":"light"})}),o(this,"handleClickOutside",e=>{let{element:t}=this.props;e.target!=t&&(this.state.showSkins&&this.closeSkins(),this.props.onClickOutside&&this.props.onClickOutside(e))}),o(this,"handleBaseClick",e=>{this.state.showSkins&&(e.target.closest(".menu")||(e.preventDefault(),e.stopImmediatePropagation(),this.closeSkins()))}),o(this,"handleBaseKeydown",e=>{this.state.showSkins&&"Escape"==e.key&&(e.preventDefault(),e.stopImmediatePropagation(),this.closeSkins())}),o(this,"handleSearchClick",()=>{this.getEmojiByPos(this.state.pos)&&this.setState({pos:[-1,-1]})}),o(this,"handleSearchInput",async()=>{let e=this.refs.searchInput.current;if(!e)return;let{value:t}=e,n=await ec.search(t),r=()=>{this.refs.scroll.current&&(this.refs.scroll.current.scrollTop=0)};if(!n)return this.setState({searchResults:n,pos:[-1,-1]},r);let o=e.selectionStart==e.value.length?[0,0]:[-1,-1],i=[];i.setsize=n.length;let s=null;for(let e of n)i.length&&s.length!=this.getPerLine()||((s=[]).__categoryId="search",s.__index=i.length,i.push(s)),s.push(e);this.ignoreMouse(),this.setState({searchResults:i,pos:o},r)}),o(this,"handleSearchKeyDown",e=>{let t=e.currentTarget;switch(e.stopImmediatePropagation(),e.key){case"ArrowLeft":this.navigate({e:e,input:t,left:!0});break;case"ArrowRight":this.navigate({e:e,input:t,right:!0});break;case"ArrowUp":this.navigate({e:e,input:t,up:!0});break;case"ArrowDown":this.navigate({e:e,input:t,down:!0});break;case"Enter":e.preventDefault(),this.handleEmojiClick({e:e,pos:this.state.pos});break;case"Escape":e.preventDefault(),this.state.searchResults?this.clearSearch():this.unfocusSearch()}}),o(this,"clearSearch",()=>{let e=this.refs.searchInput.current;e&&(e.value="",e.focus(),this.handleSearchInput())}),o(this,"handleCategoryClick",({category:e,i:t})=>{this.scrollTo(0==t?{row:-1}:{categoryId:e.id})}),o(this,"openSkins",e=>{let{currentTarget:t}=e,n=t.getBoundingClientRect();this.setState({showSkins:n},async()=>{await ed(2);let e=this.refs.menu.current;e&&(e.classList.remove("hidden"),this.refs.skinToneRadio.current.focus(),this.base.addEventListener("click",this.handleBaseClick,!0),this.base.addEventListener("keydown",this.handleBaseKeydown,!0))})}),this.observers=[],this.state={pos:[-1,-1],perLine:this.initDynamicPerLine(e),visibleRows:{0:!0},...this.getInitialState(e)}}}class e0 extends eg{async connectedCallback(){let e=es(this.props,G,this);e.element=this,e.ref=e=>{this.component=e},await eo(e),this.disconnected||L(I(e1,{...e}),this.shadowRoot)}constructor(e){super(e,{styles:r(e2)})}}o(e0,"Props",G),"u">typeof customElements&&!customElements.get("em-emoji-picker")&&customElements.define("em-emoji-picker",e0);var e2={};e2=':host {\n  width: min-content;\n  height: 435px;\n  min-height: 230px;\n  border-radius: var(--border-radius);\n  box-shadow: var(--shadow);\n  --border-radius: 10px;\n  --category-icon-size: 18px;\n  --font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;\n  --font-size: 15px;\n  --preview-placeholder-size: 21px;\n  --preview-title-size: 1.1em;\n  --preview-subtitle-size: .9em;\n  --shadow-color: 0deg 0% 0%;\n  --shadow: .3px .5px 2.7px hsl(var(--shadow-color) / .14), .4px .8px 1px -3.2px hsl(var(--shadow-color) / .14), 1px 2px 2.5px -4.5px hsl(var(--shadow-color) / .14);\n  display: flex;\n}\n\n[data-theme="light"] {\n  --em-rgb-color: var(--rgb-color, 34, 36, 39);\n  --em-rgb-accent: var(--rgb-accent, 34, 102, 237);\n  --em-rgb-background: var(--rgb-background, 255, 255, 255);\n  --em-rgb-input: var(--rgb-input, 255, 255, 255);\n  --em-color-border: var(--color-border, rgba(0, 0, 0, .05));\n  --em-color-border-over: var(--color-border-over, rgba(0, 0, 0, .1)
3);\n}\n\n[data-theme="dark"] {\n  --em-rgb-color: var(--rgb-color, 222, 222, 221);\n  --em-rgb-accent: var(--rgb-accent, 58, 130, 247);\n  --em-rgb-background: var(--rgb-background, 21, 22, 23);\n  --em-rgb-input: var(--rgb-input, 0, 0, 0);\n  --em-color-border: var(--color-border, rgba(255, 255, 255, .1));\n  --em-color-border-over: var(--color-border-over, rgba(255, 255, 255, .2));\n}\n\n#root {\n  --color-a: rgb(var(--em-rgb-color));\n  --color-b: rgba(var(--em-rgb-color), .65);\n  --color-c: rgba(var(--em-rgb-color), .45);\n  --padding: 12px;\n  --padding-small: calc(var(--padding) / 2);\n  --sidebar-width: 16px;\n  --duration: 225ms;\n  --duration-fast: 125ms;\n  --duration-instant: 50ms;\n  --easing: cubic-bezier(.4, 0, .2, 1);\n  width: 100%;\n  text-align: left;\n  border-radius: var(--border-radius);\n  background-color: rgb(var(--em-rgb-background));\n  position: relative;\n}\n\n@media (prefers-reduced-motion) {\n  #root {\n    --duration: 0;\n    --duration-fast: 0;\n    --duration-instant: 0;\n  }\n}\n\n#root[data-menu] button {\n  cursor: auto;\n}\n\n#root[data-menu] .menu button {\n  cursor: pointer;\n}\n\n:host, #root, input, button {\n  color: rgb(var(--em-rgb-color));\n  font-family: var(--font-family);\n  font-size: var(--font-size);\n  -webkit-font-smoothing: antialiased;\n  -moz-osx-font-smoothing: grayscale;\n  line-height: normal;\n}\n\n*, :before, :after {\n  box-sizing: border-box;\n  min-width: 0;\n  margin: 0;\n  padding: 0;\n}\n\n.relative {\n  position: relative;\n}\n\n.flex {\n  display: flex;\n}\n\n.flex-auto {\n  flex: none;\n}\n\n.flex-center {\n  justify-content: center;\n}\n\n.flex-column {\n  flex-direction: column;\n}\n\n.flex-grow {\n  flex: auto;\n}\n\n.flex-middle {\n  align-items: center;\n}\n\n.flex-wrap {\n  flex-wrap: wrap;\n}\n\n.padding {\n  padding: var(--padding);\n}\n\n.padding-t {\n  padding-top: var(--padding);\n}\n\n.padding-lr {\n  padding-left: var(--padding);\n  padding-right: var(--padding);\n}\n\n.padding-r {\n  padding-right: var(--padding);\n}\n\n.padding-small {\n  padding: var(--padding-small);\n}\n\n.padding-small-b {\n  padding-bottom: var(--padding-small);\n}\n\n.padding-small-lr {\n  padding-left: var(--padding-small);\n  padding-right: var(--padding-small);\n}\n\n.margin {\n  margin: var(--padding);\n}\n\n.margin-r {\n  margin-right: var(--padding);\n}\n\n.margin-l {\n  margin-left: var(--padding);\n}\n\n.margin-small-l {\n  margin-left: var(--padding-small);\n}\n\n.margin-small-lr {\n  margin-left: var(--padding-small);\n  margin-right: var(--padding-small);\n}\n\n.align-l {\n  text-align: left;\n}\n\n.align-r {\n  text-align: right;\n}\n\n.color-a {\n  color: var(--color-a);\n}\n\n.color-b {\n  color: var(--color-b);\n}\n\n.color-c {\n  color: var(--color-c);\n}\n\n.ellipsis {\n  white-space: nowrap;\n  max-width: 100%;\n  width: auto;\n  text-overflow: ellipsis;\n  overflow: hidden;\n}\n\n.sr-only {\n  width: 1px;\n  height: 1px;\n  position: absolute;\n  top: auto;\n  left: -10000px;\n  overflow: hidden;\n}\n\na {\n  cursor: pointer;\n  color: rgb(var(--em-rgb-accent));\n}\n\na:hover {\n  text-decoration: underline;\n}\n\n.spacer {\n  height: 10px;\n}\n\n[dir="rtl"] .scroll {\n  padding-left: 0;\n  padding-right: var(--padding);\n}\n\n.scroll {\n  padding-right: 0;\n  overflow-x: hidden;\n  overflow-y: auto;\n}\n\n.scroll::-webkit-scrollbar {\n  width: var(--sidebar-width);\n  height: var(--sidebar-width);\n}\n\n.scroll::-webkit-scrollbar-track {\n  border: 0;\n}\n\n.scroll::-webkit-scrollbar-button {\n  width: 0;\n  height: 0;\n  display: none;\n}\n\n.scroll::-webkit-scrollbar-corner {\n  background-color: rgba(0, 0, 0, 0);\n}\n\n.scroll::-webkit-scrollbar-thumb {\n  min-height: 20%;\n  min-height: 65px;\n  border: 4px solid rgb(var(--em-rgb-background));\n  border-radius: 8px;\n}\n\n.scroll::-webkit-scrollbar-thumb:hover {\n  background-color: var(--em-color-border-over) !important;\n}\n\n.scroll:hover::-webkit-scrollbar-thumb {\n  background-color: var(--em-color-border);\n}\n\n.sticky {\n  z-index: 1;\n  background-color: rgba(var(--em-rgb-background), .9);\n  -webkit-backdrop-filter: blur(4px);\n  backdrop-filter: blur(4px);\n  font-weight: 500;\n  position: sticky;\n  top: -1px;\n}\n\n[dir="rtl"] .search input[type="search"] {\n  padding: 10px 2.2em 10px 2em;\n}\n\n[dir="rtl"] .search .loupe {\n  left: auto;\n  right: .7em;\n}\n\n[dir="rtl"] .search .delete {\n  left: .7em;\n  right: auto;\n}\n\n.search {\n  z-index: 2;\n  position: relative;\n}\n\n.search input, .search button {\n  font-size: calc(var(--font-size)  - 1px);\n}\n\n.search input[type="search"] {\n  width: 100%;\n  background-color: var(--em-color-border);\n  transition-duration: var(--duration);\n  transition-property: background-color, box-shadow;\n  transition-timing-function: var(--easing);\n  border: 0;\n  border-radius: 10px;\n  outline: 0;\n  padding: 10px 2em 10px 2.2em;\n  display: block;\n}\n\n.search input[type="search"]::-ms-input-placeholder {\n  color: inherit;\n  opacity: .6;\n}\n\n.search input[type="search"]::placeholder {\n  color: inherit;\n  opacity: .6;\n}\n\n.search input[type="search"], .search input[type="search"]::-webkit-search-decoration, .search input[type="search"]::-webkit-search-cancel-button, .search input[type="search"]::-webkit-search-results-button, .search input[type="search"]::-webkit-search-results-decoration {\n  -webkit-appearance: none;\n  -ms-appearance: none;\n  appearance: none;\n}\n\n.search input[type="search"]:focus {\n  background-color: rgb(var(--em-rgb-input));\n  box-shadow: inset 0 0 0 1px rgb(var(--em-rgb-accent)), 0 1px 3px rgba(65, 69, 73, .2);\n}\n\n.search .icon {\n  z-index: 1;\n  color: rgba(var(--em-rgb-color), .7);\n  position: absolute;\n  top: 50%;\n  transform: translateY(-50%);\n}\n\n.search .loupe {\n  pointer-events: none;\n  left: .7em;\n}\n\n.search .delete {\n  right: .7em;\n}\n\nsvg {\n  fill: currentColor;\n  width: 1em;\n  height: 1em;\n}\n\nbutton {\n  -webkit-appearance: none;\n  -ms-appearance: none;\n  appearance: none;\n  cursor: pointer;
3\n  color: currentColor;\n  background-color: rgba(0, 0, 0, 0);\n  border: 0;\n}\n\n#nav {\n  z-index: 2;\n  padding-top: 12px;\n  padding-bottom: 12px;\n  padding-right: var(--sidebar-width);\n  position: relative;\n}\n\n#nav button {\n  color: var(--color-b);\n  transition: color var(--duration) var(--easing);\n}\n\n#nav button:hover {\n  color: var(--color-a);\n}\n\n#nav svg, #nav img {\n  width: var(--category-icon-size);\n  height: var(--category-icon-size);\n}\n\n#nav[dir="rtl"] .bar {\n  left: auto;\n  right: 0;\n}\n\n#nav .bar {\n  width: 100%;\n  height: 3px;\n  background-color: rgb(var(--em-rgb-accent));\n  transition: transform var(--duration) var(--easing);\n  border-radius: 3px 3px 0 0;\n  position: absolute;\n  bottom: -12px;\n  left: 0;\n}\n\n#nav button[aria-selected] {\n  color: rgb(var(--em-rgb-accent));\n}\n\n#preview {\n  z-index: 2;\n  padding: calc(var(--padding)  + 4px) var(--padding);\n  padding-right: var(--sidebar-width);\n  position: relative;\n}\n\n#preview .preview-placeholder {\n  font-size: var(--preview-placeholder-size);\n}\n\n#preview .preview-title {\n  font-size: var(--preview-title-size);\n}\n\n#preview .preview-subtitle {\n  font-size: var(--preview-subtitle-size);\n}\n\n#nav:before, #preview:before {\n  content: "";\n  height: 2px;\n  position: absolute;\n  left: 0;\n  right: 0;\n}\n\n#nav[data-position="top"]:before, #preview[data-position="top"]:before {\n  background: linear-gradient(to bottom, var(--em-color-border), transparent);\n  top: 100%;\n}\n\n#nav[data-position="bottom"]:before, #preview[data-position="bottom"]:before {\n  background: linear-gradient(to top, var(--em-color-border), transparent);\n  bottom: 100%;\n}\n\n.category:last-child {\n  min-height: calc(100% + 1px);\n}\n\n.category button {\n  font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, sans-serif;\n  position: relative;\n}\n\n.category button > * {\n  position: relative;\n}\n\n.category button .background {\n  opacity: 0;\n  background-color: var(--em-color-border);\n  transition: opacity var(--duration-fast) var(--easing) var(--duration-instant);\n  position: absolute;\n  top: 0;\n  bottom: 0;\n  left: 0;\n  right: 0;\n}\n\n.category button:hover .background {\n  transition-duration: var(--duration-instant);\n  transition-delay: 0s;\n}\n\n.category button[aria-selected] .background {\n  opacity: 1;\n}\n\n.category button[data-keyboard] .background {\n  transition: none;\n}\n\n.row {\n  width: 100%;\n  position: absolute;\n  top: 0;\n  left: 0;\n}\n\n.skin-tone-button {\n  border: 1px solid rgba(0, 0, 0, 0);\n  border-radius: 100%;\n}\n\n.skin-tone-button:hover {\n  border-color: var(--em-color-border);\n}\n\n.skin-tone-button:active .skin-tone {\n  transform: scale(.85) !important;\n}\n\n.skin-tone-button .skin-tone {\n  transition: transform var(--duration) var(--easing);\n}\n\n.skin-tone-button[aria-selected] {\n  background-color: var(--em-color-border);\n  border-top-color: rgba(0, 0, 0, .05);\n  border-bottom-color: rgba(0, 0, 0, 0);\n  border-left-width: 0;\n  border-right-width: 0;\n}\n\n.skin-tone-button[aria-selected] .skin-tone {\n  transform: scale(.9);\n}\n\n.menu {\n  z-index: 2;\n  white-space: nowrap;\n  border: 1px solid var(--em-color-border);\n  background-color: rgba(var(--em-rgb-background), .9);\n  -webkit-backdrop-filter: blur(4px);\n  backdrop-filter: blur(4px);\n  transition-property: opacity, transform;\n  transition-duration: var(--duration);\n  transition-timing-function: var(--easing);\n  border-radius: 10px;\n  padding: 4px;\n  position: absolute;\n  box-shadow: 1px 1px 5px rgba(0, 0, 0, .05);\n}\n\n.menu.hidden {\n  opacity: 0;\n}\n\n.menu[data-position="bottom"] {\n  transform-origin: 100% 100%;\n}\n\n.menu[data-position="bottom"].hidden {\n  transform: scale(.9)rotate(-3deg)translateY(5%);\n}\n\n.menu[data-position="top"] {\n  transform-origin: 100% 0;\n}\n\n.menu[data-position="top"].hidden {\n  transform: scale(.9)rotate(3deg)translateY(-5%);\n}\n\n.menu input[type="radio"] {\n  clip: rect(0 0 0 0);\n  width: 1px;\n  height: 1px;\n  border: 0;\n  margin: 0;\n  padding: 0;\n  position: absolute;\n  overflow: hidden;\n}\n\n.menu input[type="radio"]:checked + .option {\n  box-shadow: 0 0 0 2px rgb(var(--em-rgb-accent));\n}\n\n.option {\n  width: 100%;\n  border-radius: 6px;\n  padding: 4px 6px;\n}
3\n\n.option:hover {\n  color: #fff;\n  background-color: rgb(var(--em-rgb-accent));\n}\n\n.skin-tone {\n  width: 16px;\n  height: 16px;\n  border-radius: 100%;\n  display: inline-block;\n  position: relative;\n  overflow: hidden;\n}\n\n.skin-tone:after {\n  content: "";\n  mix-blend-mode: overlay;\n  background: linear-gradient(rgba(255, 255, 255, .2), rgba(0, 0, 0, 0));\n  border: 1px solid rgba(0, 0, 0, .8);\n  border-radius: 100%;\n  position: absolute;\n  top: 0;\n  bottom: 0;\n  left: 0;\n  right: 0;\n  box-shadow: inset 0 -2px 3px #000, inset 0 1px 2px #fff;\n}\n\n.skin-tone-1 {\n  background-color: #ffc93a;\n}\n\n.skin-tone-2 {\n  background-color: #ffdab7;\n}\n\n.skin-tone-3 {\n  background-color: #e7b98f;\n}\n\n.skin-tone-4 {\n  background-color: #c88c61;\n}\n\n.skin-tone-5 {\n  background-color: #a46134;\n}\n\n.skin-tone-6 {\n  background-color: #5d4437;\n}\n\n[data-index] {\n  justify-content: space-between;\n}\n\n[data-emoji-set="twitter"] .skin-tone:after {\n  box-shadow: none;\n  border-color: rgba(0, 0, 0, .5);\n}\n\n[data-emoji-set="twitter"] .skin-tone-1 {\n  background-color: #fade72;\n}\n\n[data-emoji-set="twitter"] .skin-tone-2 {\n  background-color: #f3dfd0;\n}\n\n[data-emoji-set="twitter"] .skin-tone-3 {\n  background-color: #eed3a8;\n}\n\n[data-emoji-set="twitter"] .skin-tone-4 {\n  background-color: #cfad8d;\n}\n\n[data-emoji-set="twitter"] .skin-tone-5 {\n  background-color: #a8805d;\n}\n\n[data-emoji-set="twitter"] .skin-tone-6 {\n  background-color: #765542;\n}\n\n[data-emoji-set="google"] .skin-tone:after {\n  box-shadow: inset 0 0 2px 2px rgba(0, 0, 0, .4);\n}\n\n[data-emoji-set="google"] .skin-tone-1 {\n  background-color: #f5c748;\n}\n\n[data-emoji-set="google"] .skin-tone-2 {\n  background-color: #f1d5aa;\n}\n\n[data-emoji-set="google"] .skin-tone-3 {\n  background-color: #d4b48d;\n}\n\n[data-emoji-set="google"] .skin-tone-4 {\n  background-color: #aa876b;\n}\n\n[data-emoji-set="google"] .skin-tone-5 {\n  background-color: #916544;\n}\n\n[data-emoji-set="google"] .skin-tone-6 {\n  background-color: #61493f;\n}\n\n[data-emoji-set="facebook"] .skin-tone:after {\n  border-color: rgba(0, 0, 0, .4);\n  box-shadow: inset 0 -2px 3px #000, inset 0 1px 4px #fff;\n}\n\n[data-emoji-set="facebook"] .skin-tone-1 {\n  background-color: #f5c748;\n}\n\n[data-emoji-set="facebook"] .skin-tone-2 {\n  background-color: #f1d5aa;\n}\n\n[data-emoji-set="facebook"] .skin-tone-3 {\n  background-color: #d4b48d;\n}\n\n[data-emoji-set="facebook"] .skin-tone-4 {\n  background-color: #aa876b;\n}\n\n[data-emoji-set="facebook"] .skin-tone-5 {\n  background-color: #916544;\n}\n\n[data-emoji-set="facebook"] .skin-tone-6 {\n  background-color: #61493f;\n}\n\n',n.d(t,{Ts:function(){return eo},dN:function(){return ec}})},430906:function(e,t,n){"use strict";var r=n(966065),o=n(655113),i=n(912506),s=n(264631),a=n(205123),l=n(592609),c=n(797126),u=n(775226),d=n(244191),h=n(514041),f=n(59828),p=n(939067),m=n.n(p),v=n(78958),g=n.n(v);n(308089);var y=n(437405),b=n(911410),w=n(988126),_=n.n(w),k=n(694399),S=n(630239),E=n(943588),C=n(347687),x=n(946343),D=n.n(x),A=n(476651),M=n(552576),F=n(418973),R=n(364097),z=n(562883),O=n(392154),T=n.n(O),L=n(573758),j=n.n(L),I=n(556840),P=n(17734),N=n(440074),K=n.n(N),B=n(176805),H=n(784933),$=n(376570),W=n(743922),V=n(632293),J=n.n(V),U=n(446155),Y=n.n(U),q=n(3326),G=n.n(q),X=n(302011),Z=n.n(X);function Q(e){return e.children}n(545615),n(633376),n(240515),n(925853),n(482917),n(403221),n(357657),n(496828);var ee="PREV",et="NEXT",en="TODAY",er="DATE",eo={MONTH:"month",WEEK:"week",WORK_WEEK:"work_week",DAY:"day",AGENDA:"agenda"},ei=Object.keys(eo).map(function(e){return eo[e]});m().oneOfType([m().string,m().func]),m().any,m().func,m().oneOfType([m().arrayOf(m().oneOf(ei)),m().objectOf(function(e,t){if(-1!==ei.indexOf(t)&&"boolean"==typeof e[t])return null;for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return m().elementType.apply(m(),[e,t].concat(r))})]),m().oneOfType([m().oneOf(["overlap","no-overlap"]),m().func]),m().oneOfType([m().string,m().func]);var es=function(e){function t(){var e;(0,s.A)(this,t);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=(0,l.A)(this,t,[].concat(r))).navigate=function(t){e.props.onNavigate(t)},e.view=function(t){e.props.onView(t)},e}return(0,c.A)(t,e),(0,a.A)(t,[{key:"render",value:function(){var e=this.props,t=e.localizer.messages,n=e.label;return h.createElement("div",{className:"rbc-toolbar"},h.createElement("span",{className:"rbc-btn-group"},h.createElement("button",{type:"button",onClick:this.navigate.bind(null,en)},t.today),h.createElement("button",{type:"button",onClick:this.navigate.bind(null,ee)},t.previous),h.createElement("button",{type:"button",onClick:this.navigate.bind(null,et)},t.next)),h.createElement("span",{className:"rbc-toolbar-label"},n),h.createElement("span",{className:"rbc-btn-group"},this.viewNamesGroup(t)))}},{key:"viewNamesGroup",value:function(e){var t=this,n=this.props.views,r=this.props.view;if(n.length>1)return n.map(function(n){return h.createElement("button",{type:"button",key:n,className:(0,d.default)({"rbc-active":r===n}),onClick:t.view.bind(null,n)},e[n])})}}])}(h.Component);function ea(e,t){e&&e.apply(null,[].concat(t))}var el={date:"Date",time:"Time",event:"Event",allDay:"All Day",week:"Week",work_week:"Work Week",day:"Day",month:"Month",previous:"Back",next:"Next",yesterday:"Yesterday",tomorrow:"Tomorrow",today:"Today",agenda:"Agenda",noEventsInRange:"There are no events in this range.",showMore:function(e){return"+".concat(e," more")}},ec=["style","className","event","selected","isAllDay","onSelect","onDoubleClick","onKeyPress","localizer","continuesPrior","continuesAfter","accessors","getters","children","components","slotStart","slotEnd"],eu=function(e){function t(){return(0,s.A)(this,t),(0,l.A)(this,t,arguments)}return(0,c.A)(t,e),(0,a.A)(t,[{key:"render",value:function(){var e=this.props,t=e.style,n=e.className,i=e.event,s=e.selected,a=e.isAllDay,l=e.onSelect,c=e.onDoubleClick,u=e.onKeyPress,f=e.localizer,p=e.continuesPrior,m=e.continuesAfter,v=e.accessors,g=e.getters,y=e.children,b=e.components,w=b.event,_=b.eventWrapper,k=e.slotStart,S=e.slotEnd,E=(0,o.A)(e,ec);delete E.resizable;var C=v.title(i),x=v.tooltip(i),D=v.end(i),A=v.start(i),M=v.allDay(i),F=a||M||f.diff(A,f.ceil(D,"day"),"day")>1,R=g.eventProp(i,A,D,s),z=h.createElement("div",{className:"rbc-event-content",title:x||void 0}
3,w?h.createElement(w,{event:i,continuesPrior:p,continuesAfter:m,title:C,isAllDay:M,localizer:f,slotStart:k,slotEnd:S}):C);return h.createElement(_,Object.assign({},this.props,{type:"date"}),h.createElement("div",Object.assign({},E,{style:(0,r.A)((0,r.A)({},R.style),t),className:(0,d.default)("rbc-event",n,R.className,{"rbc-selected":s,"rbc-event-allday":F,"rbc-event-continues-prior":p,"rbc-event-continues-after":m}),onClick:function(e){return l&&l(i,e)},onDoubleClick:function(e){return c&&c(i,e)},onKeyDown:function(e){return u&&u(i,e)}}),"function"==typeof y?y(z):z))}}])}(h.Component);function ed(e,t){return!!e&&null!=t&&D()(e,t)}function eh(e,t){return(e.right-e.left)/t}function ef(e,t,n,r){var o=eh(e,r);return n?r-1-Math.floor((t-e.left)/o):Math.floor((t-e.left)/o)}function ep(e){var t,n,r,o=e.containerRef,i=e.accessors,s=e.getters,a=e.selected,l=e.components,c=e.localizer,u=e.position,d=e.show,f=e.events,p=e.slotStart,m=e.slotEnd,v=e.onSelect,g=e.onDoubleClick,y=e.onKeyPress,b=e.handleDragStart,w=e.popperRef,_=e.target,k=e.offset;n=(t={ref:w,callback:d}).ref,r=t.callback,(0,h.useEffect)(function(){var e=function(e){n.current&&!n.current.contains(e.target)&&r()};return document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}},[n,r]),(0,h.useLayoutEffect)(function(){var e,t,n,r,i,s,a,l,c,u,d,h,f,p,m,v,g,y,b,S,E=(t=(e={target:_,offset:k,container:o.current,box:w.current}).target,n=e.offset,r=e.container,i=e.box,a=(s=(0,C.default)(t)).top,l=s.left,c=s.width,u=s.height,h=(d=(0,C.default)(r)).top,f=d.left,p=d.width,m=d.height,g=(v=(0,C.default)(i)).width,y=v.height,b=n.x,S=n.y,{topOffset:a+y>h+m?a-y-S:a+S+u,leftOffset:l+g>f+p?l+b-g+c:l+b}),x=E.topOffset,D=E.leftOffset;w.current.style.top="".concat(x,"px"),w.current.style.left="".concat(D,"px")},[k.x,k.y,_]);var S=u.width;return h.createElement("div",{style:{minWidth:S+S/2},className:"rbc-overlay",ref:w},h.createElement("div",{className:"rbc-overlay-header"},c.format(p,"dayHeaderFormat")),f.map(function(e,t){return h.createElement(eu,{key:t,type:"popup",localizer:c,event:e,getters:s,onSelect:v,accessors:i,components:l,onDoubleClick:g,onKeyPress:y,continuesPrior:c.lt(i.end(e),p,"day"),continuesAfter:c.gte(i.start(e),m,"day"),slotStart:p,slotEnd:m,selected:ed(e,a),draggable:!0,onDragStart:function(){return b(e)},onDragEnd:function(){return d()}})}))}var em=h.forwardRef(function(e,t){return h.createElement(ep,Object.assign({},e,{popperRef:t}))});function ev(e){var t=e.containerRef,n=e.popupOffset,r=void 0===n?5:n,o=e.overlay,i=e.accessors,s=e.localizer,a=e.components,l=e.getters,c=e.selected,u=e.handleSelectEvent,d=e.handleDoubleClickEvent,f=e.handleKeyPressEvent,p=e.handleDragStart,m=e.onHide,v=e.overlayDisplay,g=(0,h.useRef)(null);if(!o.position)return null;var y=r;isNaN(r)||(y={x:r,y:r});var b=o.position,w=o.events,_=o.date,k=o.end;return h.createElement(E.A,{rootClose:!0,flip:!0,show:!0,placement:"bottom",onHide:m,target:o.target},function(e){var n=e.props;return h.createElement(em,Object.assign({},n,{containerRef:t,ref:g,target:o.target,offset:y,accessors:i,getters:l,selected:c,components:a,localizer:s,position:b,show:v,events:w,slotStart:_,slotEnd:k,onSelect:u,onDoubleClick:d,onKeyPress:f,handleDragStart:p}))})}em.propTypes={accessors:m().object.isRequired,getters:m().object.isRequired,selected:m().object,components:m().object.isRequired,localizer:m().object.isRequired,position:m().object.isRequired,show:m().func.isRequired,events:m().array.isRequired,slotStart:m().instanceOf(Date).isRequired,slotEnd:m().instanceOf(Date),onSelect:m().func,onDoubleClick:m().func,onKeyPress:m().func,handleDragStart:m().func,style:m().object,offset:m().shape({x:m().number,y:m().number})};var eg=h.forwardRef(function(e,t){return h.createElement(ev,Object.assign({},e,{containerRef:t}))});function ey(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document;return(0,z.default)(n,e,t,{passive:!1})}function eb(e,t){var n,r,o;return n=t.clientX,r=t.clientY,o=document.elementFromPoint(n,r),!!(0,R.default)(o,".rbc-event",e)}function ew(e){var t=e;return e.touches&&e.touches.length&&(t=e.touches[0]),{clientX:t.clientX,clientY:t.clientY,pageX:t.pageX,pageY:t.pageY}}eg.propTypes={popupOffset:m().oneOfType([m().number,m().shape({x:m().number,y:m().number})]),overlay:m().shape({position:m().object,events:m().array,date:m().instanceOf(Date),end:m().instanceOf(Date)}),accessors:m().object.isRequired,localizer:m().object.isRequired,components:m().object.isRequired,getters:m().object.isRequired,selected:m().object,handleSelectEvent:m().func,handleDoubleClickEvent:m().func,handleKeyPressEvent:m().func,handleDragStart:m().func,onHide:m().func,overlayDisplay:m().func};var e_=(0,a.A)(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.global,o=n.longPressThreshold,i=n.validContainers;(0,s.A)(this,e),this._initialEvent=null,this.selecting=!1,this.isDetached=!1,this.container=t,this.globalMouse=!t||void 0!==r&&r,this.longPressThreshold=void 0===o?250:o,this.validContainers=void 0===i?[]:i,this._listeners=Object.create(null),this._handleInitialEvent=this._handleInitialEvent.bind(this),this._handleMoveEvent=this._handleMoveEvent.bind(this),this._handleTerminatingEvent=this._handleTerminatingEvent.bind(this),this._keyListener=this._keyListener.bind(this),this._dropFromOutsideListener=this._dropFromOutsideListener.bind(this),this._dragOverFromOutsideListener=this._dragOverFromOutsideListener.bind(this),this._removeTouchMoveWindowListener=ey("touchmove",function(){},window),this._removeKeyDownListener=ey("keydown",this._keyListener),this._removeKeyUpListener=ey("keyup",this._keyListener),this._removeDropFromOutsideListener=ey("drop",this._dropFromOutsideListener),this._removeDragOverFromOutsideListener=ey("dragover",this._dragOverFromOutsideListener),this._addInitialEventListener()},[{key:"on",value:function(e,t){var n=this._listeners[e]||(this._listeners[e]=[]);return n.push(t),{remove:function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}}}},{key:"emit",value:function(e){for(var t,n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];
3return(this._listeners[e]||[]).forEach(function(e){void 0===t&&(t=e.apply(void 0,r))}),t}},{key:"teardown",value:function(){this._initialEvent=null,this._initialEventData=null,this._selectRect=null,this.selecting=!1,this._lastClickData=null,this.isDetached=!0,this._listeners=Object.create(null),this._removeTouchMoveWindowListener&&this._removeTouchMoveWindowListener(),this._removeInitialEventListener&&this._removeInitialEventListener(),this._removeEndListener&&this._removeEndListener(),this._onEscListener&&this._onEscListener(),this._removeMoveListener&&this._removeMoveListener(),this._removeKeyUpListener&&this._removeKeyUpListener(),this._removeKeyDownListener&&this._removeKeyDownListener(),this._removeDropFromOutsideListener&&this._removeDropFromOutsideListener(),this._removeDragOverFromOutsideListener&&this._removeDragOverFromOutsideListener()}},{key:"isSelected",value:function(e){var t=this._selectRect;return!!t&&!!this.selecting&&ek(t,eS(e))}},{key:"filter",value:function(e){return this._selectRect&&this.selecting?e.filter(this.isSelected,this):[]}},{key:"_addLongPressListener",value:function(e,t){var n=this,r=null,o=null,i=null,s=function(t){r=setTimeout(function(){l(),e(t)},n.longPressThreshold),o=ey("touchmove",function(){return l()}),i=ey("touchend",function(){return l()})},a=ey("touchstart",s),l=function(){r&&clearTimeout(r),o&&o(),i&&i(),r=null,o=null,i=null};return t&&s(t),function(){l(),a()}}},{key:"_addInitialEventListener",value:function(){var e=this,t=ey("mousedown",function(t){e._removeInitialEventListener(),e._handleInitialEvent(t),e._removeInitialEventListener=ey("mousedown",e._handleInitialEvent)}),n=ey("touchstart",function(t){e._removeInitialEventListener(),e._removeInitialEventListener=e._addLongPressListener(e._handleInitialEvent,t)});this._removeInitialEventListener=function(){t(),n()}}},{key:"_dropFromOutsideListener",value:function(e){var t=ew(e),n=t.pageX,r=t.pageY,o=t.clientX,i=t.clientY;this.emit("dropFromOutside",{x:n,y:r,clientX:o,clientY:i}),e.preventDefault()}},{key:"_dragOverFromOutsideListener",value:function(e){var t=ew(e),n=t.pageX,r=t.pageY,o=t.clientX,i=t.clientY;this.emit("dragOverFromOutside",{x:n,y:r,clientX:o,clientY:i}),e.preventDefault()}},{key:"_handleInitialEvent",value:function(e){if(this._initialEvent=e,!this.isDetached){var t,n=ew(e),r=n.clientX,o=n.clientY,s=n.pageX,a=n.pageY,l=this.container();if(3!==e.which&&2!==e.button&&(!l||(0,F.default)(l,document.elementFromPoint(r,o)))){if(!this.globalMouse&&l&&!(0,F.default)(l,e.target)){var c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return"object"!==(0,i.A)(e)&&(e={top:e,left:e,right:e,bottom:e}),e}(0),u=c.top,d=c.left,h=c.bottom,f=c.right;if(!ek({top:(t=eS(l)).top-u,left:t.left-d,bottom:t.bottom+h,right:t.right+f},{top:a,left:s}))return}if(!1!==this.emit("beforeSelect",this._initialEventData={isTouch:/^touch/.test(e.type),x:s,y:a,clientX:r,clientY:o}))switch(e.type){case"mousedown":this._removeEndListener=ey("mouseup",this._handleTerminatingEvent),this._onEscListener=ey("keydown",this._handleTerminatingEvent),this._removeMoveListener=ey("mousemove",this._handleMoveEvent);break;case"touchstart":this._handleMoveEvent(e),this._removeEndListener=ey("touchend",this._handleTerminatingEvent),this._removeMoveListener=ey("touchmove",this._handleMoveEvent)}}}}},{key:"_isWithinValidContainer",value:function(e){var t=e.target,n=this.validContainers;return!n||!n.length||!t||n.some(function(e){return!!t.closest(e)})}},{key:"_handleTerminatingEvent",value:function(e){var t=this.selecting,n=this._selectRect;if(!t&&e.type.includes("key")&&(e=this._initialEvent),this.selecting=!1,this._removeEndListener&&this._removeEndListener(),this._removeMoveListener&&this._removeMoveListener(),this._selectRect=null,this._initialEvent=null,this._initialEventData=null,e){var r=!this.container||(0,F.default)(this.container(),e.target),o=this._isWithinValidContainer(e);return"Escape"!==e.key&&o?!t&&r?this._handleClickEvent(e):t?this.emit("select",n):this.emit("reset"):this.emit("reset")}}},{key:"_handleClickEvent",value:function(e){var t=ew(e),n=t.pageX,r=t.pageY,o=t.clientX,i=t.clientY,s=new Date().getTime();return this._lastClickData&&s-this._lastClickData.timestamp<250?(this._lastClickData=null,this.emit
3("doubleClick",{x:n,y:r,clientX:o,clientY:i})):(this._lastClickData={timestamp:s},this.emit("click",{x:n,y:r,clientX:o,clientY:i}))}},{key:"_handleMoveEvent",value:function(e){if(null!==this._initialEventData&&!this.isDetached){var t=this._initialEventData,n=t.x,r=t.y,o=ew(e),i=o.pageX,s=o.pageY,a=Math.abs(n-i),l=Math.abs(r-s),c=Math.min(i,n),u=Math.min(s,r),d=this.selecting,h=this.isClick(i,s);(!h||d||a||l)&&(d||h||this.emit("selectStart",this._initialEventData),h||(this.selecting=!0,this._selectRect={top:u,left:c,x:i,y:s,right:c+a,bottom:u+l},this.emit("selecting",this._selectRect)),e.preventDefault())}}},{key:"_keyListener",value:function(e){this.ctrl=e.metaKey||e.ctrlKey}},{key:"isClick",value:function(e,t){var n=this._initialEventData,r=n.x,o=n.y;return!n.isTouch&&5>=Math.abs(e-r)&&5>=Math.abs(t-o)}}]);function ek(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=eS(e),o=r.top,i=r.left,s=r.right,a=r.bottom,l=eS(t),c=l.top,u=l.left,d=l.right,h=l.bottom;return!((void 0===a?o:a)-n<c||o+n>(void 0===h?c:h)||(void 0===s?i:s)-n<u||i+n>(void 0===d?u:d))}function eS(e){if(!e.getBoundingClientRect)return e;var t=e.getBoundingClientRect(),n=t.left+eE("left"),r=t.top+eE("top");return{top:r,left:n,right:(e.offsetWidth||0)+n,bottom:(e.offsetHeight||0)+r}}function eE(e){return"left"===e?window.pageXOffset||document.body.scrollLeft||0:"top"===e?window.pageYOffset||document.body.scrollTop||0:void 0}var eC=function(e){function t(e,n){var r;return(0,s.A)(this,t),(r=(0,l.A)(this,t,[e,n])).state={selecting:!1},r.containerRef=(0,h.createRef)(),r}
3return(0,c.A)(t,e),(0,a.A)(t,[{key:"componentDidMount",value:function(){this.props.selectable&&this._selectable()}},{key:"componentWillUnmount",value:function(){this._teardownSelectable()}},{key:"componentDidUpdate",value:function(e){!e.selectable&&this.props.selectable&&this._selectable(),e.selectable&&!this.props.selectable&&this._teardownSelectable()}},{key:"render",value:function(){var e=this.props,t=e.range,n=e.getNow,r=e.getters,o=e.date,i=e.components.dateCellWrapper,s=e.localizer,a=this.state,l=a.selecting,c=a.startIdx,u=a.endIdx,f=n();return h.createElement("div",{className:"rbc-row-bg",ref:this.containerRef},t.map(function(e,n){var a=r.dayProp(e),p=a.className,m=a.style;return h.createElement(i,{key:n,value:e,range:t},h.createElement("div",{style:m,className:(0,d.default)("rbc-day-bg",p,l&&n>=c&&n<=u&&"rbc-selected-cell",s.isSameDate(e,f)&&"rbc-today",o&&s.neq(o,e,"month")&&"rbc-off-range-bg")}))}))}},{key:"_selectable",value:function(){var e=this,t=this.containerRef.current,n=this._selector=new e_(this.props.container,{longPressThreshold:this.props.longPressThreshold}),o=function(n,r){if(!eb(t,n)&&(o=n.clientX,i=n.clientY,s=document.elementFromPoint(o,i),!(0,R.default)(s,".rbc-show-more",t))){var o,i,s,a,l,c=eS(t),u=e.props,d=u.range,h=u.rtl;if(a=n.x,(l=n.y)>=c.top&&l<=c.bottom&&a>=c.left&&a<=c.right){var f=ef(c,n.x,h,d.length);e._selectSlot({startIdx:f,endIdx:f,action:r,box:n})}}e._initial={},e.setState({selecting:!1})};n.on("selecting",function(r){var o=e.props,i=o.range,s=o.rtl,a=-1,l=-1;if(e.state.selecting||(ea(e.props.onSelectStart,[r]),e._initial={x:r.x,y:r.y}),n.isSelected(t)){var c,u,d,h,f,p,m,v,g,y,b,w=eS(t),_=(c=e._initial,u=i.length,d=-1,h=-1,f=u-1,p=eh(w,u),m=ef(w,r.x,s,u),v=w.top<r.y&&w.bottom>r.y,g=w.top<c.y&&w.bottom>c.y,y=c.y>w.bottom,b=w.top>c.y,r.top<w.top&&r.bottom>w.bottom&&(d=0,h=f),v&&(b?(d=0,h=m):y&&(d=m,h=f)),g&&(d=h=s?f-Math.floor((c.x-w.left)/p):Math.floor((c.x-w.left)/p),v?m<d?d=m:h=m:c.y<r.y?h=f:d=0),{startIdx:d,endIdx:h});a=_.startIdx,l=_.endIdx}e.setState({selecting:!0,startIdx:a,endIdx:l})}),n.on("beforeSelect",function(t){if("ignoreEvents"===e.props.selectable)return!eb(e.containerRef.current,t)}),n.on("click",function(e){return o(e,"click")}),n.on("doubleClick",function(e){return o(e,"doubleClick")}),n.on("select",function(t){e._selectSlot((0,r.A)((0,r.A)({},e.state),{},{action:"select",bounds:t})),e._initial={},e.setState({selecting:!1}),ea(e.props.onSelectEnd,[e.state])})}},{key:"_teardownSelectable",value:function(){this._selector&&(this._selector.teardown(),this._selector=null)}},{key:"_selectSlot",value:function(e){var t=e.endIdx,n=e.startIdx,r=e.action,o=e.bounds,i=e.box;-1!==t&&-1!==n&&this.props.onSelectSlot&&this.props.onSelectSlot({start:n,end:t,action:r,bounds:o,box:i,resourceId:this.props.resourceId})}}])}(h.Component),ex={propTypes:{slotMetrics:m().object.isRequired,selected:m().object,isAllDay:m().bool,accessors:m().object.isRequired,localizer:m().object.isRequired,components:m().object.isRequired,getters:m().object.isRequired,onSelect:m().func,onDoubleClick:m().func,onKeyPress:m().func},defaultProps:{segments:[],selected:{}},renderEvent:function(e,t){var n=e.selected;e.isAllDay;var r=e.accessors,o=e.getters,i=e.onSelect,s=e.onDoubleClick,a=e.onKeyPress,l=e.localizer,c=e.slotMetrics,u=e.components,d=e.resizable,f=c.continuesPrior(t),p=c.continuesAfter(t);return h.createElement(eu,{event:t,getters:o,localizer:l,accessors:r,components:u,onSelect:i,onDoubleClick:s,onKeyPress:a,continuesPrior:f,continuesAfter:p,slotStart:c.first,slotEnd:c.last,selected:ed(t,n),resizable:d})},renderSpan:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:" ",o=Math.abs(t)/e*100+"%";return h.createElement("div",{key:n,className:"rbc-row-segment",style:{WebkitFlexBasis:o,flexBasis:o,maxWidth:o}},r)}},eD=function(e){function t(){return(0,s.A)(this,t),(0,l.A)(this,t,arguments)}return(0,c.A)(t,e),(0,a.A)(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.segments,r=t.slotMetrics.slots,o=t.className,i=1;return h.createElement("div",{className:(0,d.default)(o,"rbc-row")},n.reduce(function(t,n,o){var s=n.event,a=n.left,l=n.right,c=n.span,u="_lvl_"+o,d=a-i,h=ex.renderEvent(e.props,s);return d&&t.push(ex.renderSpan(r,d,"".concat(u,"_gap"))),t.push(ex.renderSpan(r,c,u,h)),i=l+1,t},[]))}}])}(h.Component);function eA(e){var t=e.dateRange,n=e.unit,r=e.localizer;return{first:t[0],last:r.add(t[t.length-1],1,void 0===n?"day":n)}}function eM(e){var t,n,r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0,i=[],s=[];for(t=0;t<e.length;t++){for(r=e[t],n=0;n<i.length&&function(e,t){return t.some(function(t){return t.left<=e.right&&t.right>=e.left})}(r,i[n]);n++);n>=o?s.push(r):(i[n]||(i[n]=[])).push(r)}for(t=0;t<i.length;t++)i[t].sort(function(e,t){return e.left-t.left});return{levels:i,extra:s}}function eF(e,t,n,r,o){var i={start:r.start(e),end:r.end(e)};return o.inEventRange({event:i,range:{start:t,end:n}})}function eR(e,t,n,r){var o={start:n.start(e),end:n.end(e),allDay:n.allDay(e)},i={start:n.start(t),end:n.end(t),allDay:n.allDay(t)};return r.sortEvents({evtA:o,evtB:i})}eD.defaultProps=(0,r.A)({},ex.defaultProps);var ez=function(e,t){return e.left<=t&&e.right>=t},eO=function(e,t){return e.filter(function(e){return ez(e,t)}).map(function(e){return e.event})},eT=function(e){function t(){return(0,s.A)(this,t),(0,l.A)(this,t,arguments)}return(0,c.A)(t,e),(0,a.A)(t,[{key:"render",value:function(){for(var e=this.props,t=e.segments,n=e.slotMetrics.slots,r=eM(t).levels[0],o=1,i=1,s=[];o<=n;){var a="_lvl_"+o,l=r.filter(function(e){return ez(e,o)})[0]||{},c=l.event,u=l.left,d=l.right,f=l.span;if(!c){if(this.getHiddenEventsForSlot(t,o).length>0){var p=o-i;p&&s.push(ex.renderSpan(n,p,a+"_gap")),s.push(ex.renderSpan(n,1,a,this.renderShowMore(t,o))),i=o+=1;continue}o++;continue}var m=Math.max(0,u-i);if(this.canRenderSlotEvent(u,f)){var v=ex.renderEvent(this.props,c);m&&s.push(ex.renderSpan(n,m,a+"_gap")),s.push(ex.renderSpan(n,f,a,v)),i=o=d+1}else m&&s.push(ex.renderSpan(n,m,a+"_gap")),s.push(ex.renderSpan(n,1,a,this.renderShowMore(t,o))),i=o+=1}return h.createElement("div",{className:"rbc-row"},s)}},{key:"getHiddenEventsForSlot",value:function(e,t){var n=eO(e,t),r=eM(e).levels[0].filter(function(e){return ez(e,t)}).map(function(e){return e.event});return n.filter(function(e){return!r.some(function(t){return t===e})})}},{key:"canRenderSlotEvent",value:function(e,t){var n=this.props.segments;return j()(e,e+t).every(function(e){return 1===eO(n,e).length})}},{key:"renderShowMore",value:function(e,t){var n=this,r=this.props,o=r.localizer,i=r.slotMetrics,s=r.components,a=i.getEventsForSlot(t),l=eO(e,t),c=l.length;
3if(null!=s&&s.showMore){var u=s.showMore,f=i.getDateForSlot(t-1);return!!c&&h.createElement(u,{localizer:o,slotDate:f,slot:t,count:c,events:a,remainingEvents:l})}return!!c&&h.createElement("button",{type:"button",key:"sm_"+t,className:(0,d.default)("rbc-button-link","rbc-show-more"),onClick:function(e){return n.showMore(t,e)}},o.messages.showMore(c,l,a))}},{key:"showMore",value:function(e,t){t.preventDefault(),t.stopPropagation(),this.props.onShowMore(e,t.target)}}])}(h.Component);eT.defaultProps=(0,r.A)({},ex.defaultProps);var eL=function(e){var t=e.children;return h.createElement("div",{className:"rbc-row-content-scroll-container"},t)},ej=function(e,t){return e[0].range===t[0].range&&e[0].events===t[0].events},eI=function(e){function t(){var e;(0,s.A)(this,t);for(var n=arguments.length,o=Array(n),i=0;i<n;i++)o[i]=arguments[i];return(e=(0,l.A)(this,t,[].concat(o))).handleSelectSlot=function(t){var n=e.props,r=n.range;(0,n.onSelectSlot)(r.slice(t.start,t.end+1),t)},e.handleShowMore=function(t,n){var r,o=e.props,i=o.range,s=o.onShowMore,a=e.slotMetrics(e.props),l=(0,M.default)(e.containerRef.current,".rbc-row-bg")[0];l&&(r=l.children[t-1]),s(a.getEventsForSlot(t),i[t-1],r,t,n)},e.getContainer=function(){var t=e.props.container;return t?t():e.containerRef.current},e.renderHeadingCell=function(t,n){var r=e.props,o=r.renderHeader,i=r.getNow,s=r.localizer;return o({date:t,key:"header_".concat(n),className:(0,d.default)("rbc-date-cell",s.isSameDate(t,i())&&"rbc-now")})},e.renderDummy=function(){var t=e.props,n=t.className,r=t.range,o=t.renderHeader,i=t.showAllEvents;return h.createElement("div",{className:n,ref:e.containerRef},h.createElement("div",{className:(0,d.default)("rbc-row-content",i&&"rbc-row-content-scrollable")},o&&h.createElement("div",{className:"rbc-row",ref:e.headingRowRef},r.map(e.renderHeadingCell)),h.createElement("div",{className:"rbc-row",ref:e.eventRowRef},h.createElement("div",{className:"rbc-row-segment"},h.createElement("div",{className:"rbc-event"},h.createElement("div",{className:"rbc-event-content"}," "))))))},e.containerRef=(0,h.createRef)(),e.headingRowRef=(0,h.createRef)(),e.eventRowRef=(0,h.createRef)(),e.slotMetrics=function e(){return(0,I.default)(function(t){for(var n=t.range,o=t.events,i=t.maxRows,s=t.minRows,a=t.accessors,l=t.localizer,c=eA({dateRange:n,localizer:l}),u=c.first,d=c.last,h=o.map(function(e){var t,r,o,i,s,c,u,d;return r=(t=eA({dateRange:n,localizer:l})).first,o=t.last,i=l.diff(r,o,"day"),s=l.max(l.startOf(a.start(e),"day"),r),c=l.min(l.ceil(a.end(e),"day"),o),u=T()(n,function(e){return l.isSameDate(e,s)}),{event:e,span:d=Math.max((d=Math.min(d=l.diff(s,c,"day"),i))-l.segmentOffset,1),left:u+1,right:Math.max(u+d,1)}}),f=eM(h,Math.max(i-1,1)),p=f.levels,m=f.extra,v=m.length>0?s-1:s;p.length<v;)p.push([]);return{first:u,last:d,levels:p,extra:m,range:n,slots:n.length,clone:function(n){return e()((0,r.A)((0,r.A)({},t),n))},getDateForSlot:function(e){return n[e]},getSlotForDate:function(e){return n.find(function(t){return l.isSameDate(t,e)})},getEventsForSlot:function(e){return h.filter(function(t){return t.left<=e&&t.right>=e}).map(function(e){return e.event})},continuesPrior:function(e){return l.continuesPrior(a.start(e),u)},continuesAfter:function(e){var t=a.start(e),n=a.end(e);return l.continuesAfter(t,n,d)}}},ej)}(),e}return(0,c.A)(t,e),(0,a.A)(t,[{key:"getRowLimit",value:function(){var e,t=(0,A.default)(this.eventRowRef.current),n=null!=(e=this.headingRowRef)&&e.current?(0,A.default)(this.headingRowRef.current):0;return Math.max(Math.floor(((0,A.default)(this.containerRef.current)-n)/t),1)}},{key:"render",value:function(){var e=this.props,t=e.date,n=e.rtl,r=e.range,o=e.className,i=e.selected,s=e.selectable,a=e.renderForMeasure,l=e.accessors,c=e.getters,u=e.components,f=e.getNow,p=e.renderHeader,m=e.onSelect,v=e.localizer,g=e.onSelectStart,y=e.onSelectEnd,b=e.onDoubleClick,w=e.onKeyPress,_=e.resourceId,k=e.longPressThreshold,S=e.isAllDay,E=e.resizable,C=e.showAllEvents;if(a)return this.renderDummy();var x=this.slotMetrics(this.props),D=x.levels,A=x.extra,M=C?eL:Q,F=u.weekWrapper,R={selected:i,accessors:l,getters:c,localizer:v,components:u,onSelect:m,onDoubleClick:b,onKeyPress:w,resourceId:_,slotMetrics:x,resizable:E};return h.createElement("div",{className:o,role:"rowgroup",ref:this.containerRef},h.createElement(eC,{localizer:v,date:t,getNow:f,rtl:n,range:r,selectable:s,container:this.getContainer,getters:c,onSelectStart:g,onSelectEnd:y,onSelectSlot:this.handleSelectSlot,components:u,longPressThreshold:k,resourceId:_}),h.createElement("div",{className:(0,d.default)("rbc-row-content",C&&"rbc-row-content-scrollable"),role:"row"},p&&h.createElement("div",{className:"rbc-row ",ref:this.headingRowRef},r.map(this.renderHeadingCell)),h.createElement(M,null,h.createElement(F,Object.assign({isAllDay:S},R,{rtl:this.props.rtl}),D.map(function(e,t){return h.createElement(eD,Object.assign({key:t,segments:e},R))}),!!A.length&&h.createElement(eT,Object.assign({segments:A,onShowMore:this.handleShowMore},R))))))}}])}(h.Component);eI.defaultProps={minRows:0,maxRows:1/0};var eP=function(e){var t=e.label;return h.createElement("span",{role:"columnheader","aria-sort":"none"},t)},eN=function(e){var t=e.label,n=e.drilldownView,r=e.onDrillDown;return n?h.createElement("button",{type:"button",className:"rbc-button-link",onClick:r},t):h.createElement("span",null,t)},eK=["date","className"],eB=function(e){function t(){var e;(0,s.A)(this,t);for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=(0,l.A)(this,t,[].concat(r))).getContainer=function(){return e.containerRef.current},e.renderWeek=function(t,n){var r,o,i,s,a,l,c,u,d,f=e.props,p=f.events,m=f.components,v=f.selectable,g=f.getNow,y=f.selected,w=f.date,_=f.localizer,k=f.longPressThreshold,S=f.accessors,E=f.getters,C=f.showAllEvents,x=e.state,D=x.needLimitMeasure,A=x.rowLimit,M=(r=(0,b.A)(p),o=t[0],i=t[t.length-1],s=r.filter(function(e){return eF(e,o,i,S,_)}),a=(0,b.A)(s),l=[],c=[],a.forEach(function(e){var t=S.start(e),n=S.end(e);_.daySpan(t,n)>1?l.push(e):c.push(e)}),u=l.sort(function(e,t){return eR(e,t,S,_)}),d=c.sort(function(e,t){return eR(e,t,S,_)}),[].concat((0,b.A)(u),(0,b.A)(d)));return h.createElement(eI,{key:n,ref:0===n?e.slotRowRef:void 0,container:e.getContainer,className:"rbc-month-row",getNow:g,date:w,range:t,events:M,maxRows:C?1/0:A,selected:y,selectable:v,components:m,accessors:S,getters:E,localizer:_,renderHeader:e.readerDateHeading,renderForMeasure:D,onShowMore:e.handleShowMore,onSelect:e.handleSelectEvent,onDoubleClick:e.handleDoubleClickEvent,onKeyPress:e.handleKeyPressEvent,onSelectSlot:e.handleSelectSlot,longPressThreshold:k,rtl:e.props.rtl,resizable:e.props.resizable,showAllEvents:C})},e.readerDateHeading=function(t){var n=t.date,r=t.className,i=(0,o.A)(t,eK),s=e.props,a=s.date,l=s.getDrilldownView,c=s.localizer,u=c.neq(
3a,n,"month"),f=c.isSameDate(n,a),p=l(n),m=c.format(n,"dateFormat"),v=e.props.components.dateHeader||eN;return h.createElement("div",Object.assign({},i,{className:(0,d.default)(r,u&&"rbc-off-range",f&&"rbc-current"),role:"cell"}),h.createElement(v,{label:m,date:n,drilldownView:p,isOffRange:u,onDrillDown:function(t){return e.handleHeadingClick(n,p,t)}}))},e.handleSelectSlot=function(t,n){e._pendingSelection=e._pendingSelection.concat(t),clearTimeout(e._selectTimer),e._selectTimer=setTimeout(function(){return e.selectDates(n)})},e.handleHeadingClick=function(t,n,r){r.preventDefault(),e.clearSelection(),ea(e.props.onDrillDown,[t,n])},e.handleSelectEvent=function(){e.clearSelection();for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];ea(e.props.onSelectEvent,n)},e.handleDoubleClickEvent=function(){e.clearSelection();for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];ea(e.props.onDoubleClickEvent,n)},e.handleKeyPressEvent=function(){e.clearSelection();for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];ea(e.props.onKeyPressEvent,n)},e.handleShowMore=function(t,n,r,o,i){var s=e.props,a=s.popup,l=s.onDrillDown,c=s.onShowMore,u=s.getDrilldownView,d=s.doShowMoreDrillDown;if(e.clearSelection(),a){var h=(0,k.default)(r,e.containerRef.current);e.setState({overlay:{date:n,events:t,position:h,target:i}})}else d&&ea(l,[n,u(n)||eo.DAY]);ea(c,[t,n,o])},e.overlayDisplay=function(){e.setState({overlay:null})},e.state={rowLimit:5,needLimitMeasure:!0,date:null},e.containerRef=(0,h.createRef)(),e.slotRowRef=(0,h.createRef)(),e._bgRows=[],e._pendingSelection=[],e}
3return(0,c.A)(t,e),(0,a.A)(t,[{key:"componentDidMount",value:function(){var e,t=this;this.state.needLimitMeasure&&this.measureRowLimit(this.props),window.addEventListener("resize",this._resizeListener=function(){e||S.request(function(){e=!1,t.setState({needLimitMeasure:!0})})},!1)}},{key:"componentDidUpdate",value:function(){this.state.needLimitMeasure&&this.measureRowLimit(this.props)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this._resizeListener,!1)}},{key:"render",value:function(){var e=this.props,t=e.date,n=e.localizer,r=e.className,o=n.visibleDays(t,n),i=_()(o,7);return this._weekCount=i.length,h.createElement("div",{className:(0,d.default)("rbc-month-view",r),role:"table","aria-label":"Month View",ref:this.containerRef},h.createElement("div",{className:"rbc-row rbc-month-header",role:"row"},this.renderHeaders(i[0])),i.map(this.renderWeek),this.props.popup&&this.renderOverlay())}},{key:"renderHeaders",value:function(e){var t=this.props,n=t.localizer,r=t.components,o=e[0],i=e[e.length-1],s=r.header||eP;return n.range(o,i,"day").map(function(e,t){return h.createElement("div",{key:"header_"+t,className:"rbc-header"},h.createElement(s,{date:e,localizer:n,label:n.format(e,"weekdayFormat")}))})}},{key:"renderOverlay",value:function(){var e,t,n=this,r=null!=(e=null==(t=this.state)?void 0:t.overlay)?e:{},o=this.props,i=o.accessors,s=o.localizer,a=o.components,l=o.getters,c=o.selected,u=o.popupOffset,d=o.handleDragStart;return h.createElement(eg,{overlay:r,accessors:i,localizer:s,components:a,getters:l,selected:c,popupOffset:u,ref:this.containerRef,handleKeyPressEvent:this.handleKeyPressEvent,handleSelectEvent:this.handleSelectEvent,handleDoubleClickEvent:this.handleDoubleClickEvent,handleDragStart:d,show:!!r.position,overlayDisplay:this.overlayDisplay,onHide:function(){return n.setState({overlay:null})}})}},{key:"measureRowLimit",value:function(){this.setState({needLimitMeasure:!1,rowLimit:this.slotRowRef.current.getRowLimit()})}},{key:"selectDates",value:function(e){var t=this._pendingSelection.slice();this._pendingSelection=[],t.sort(function(e,t){return e-t});var n=new Date(t[0]),r=new Date(t[t.length-1]);r.setDate(t[t.length-1].getDate()+1),ea(this.props.onSelectSlot,{slots:t,start:n,end:r,action:e.action,bounds:e.bounds,box:e.box})}},{key:"clearSelection",value:function(){clearTimeout(this._selectTimer),this._pendingSelection=[]}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.date;return{date:n,needLimitMeasure:e.localizer.neq(n,t.date,"month")}}}])}(h.Component);eB.range=function(e,t){var n=t.localizer;return{start:n.firstVisibleDay(e,n),end:n.lastVisibleDay(e,n)}},eB.navigate=function(e,t,n){var r=n.localizer;switch(t){case ee:return r.add(e,-1,"month");case et:return r.add(e,1,"month");default:return e}},eB.title=function(e,t){return t.localizer.format(e,"monthHeaderFormat")};var eH=function(e){var t=e.min,n=e.max,r=e.step,o=e.slots,i=e.localizer;return"".concat(+i.startOf(t,"minutes"))+"".concat(+i.startOf(n,"minutes"))+"".concat(r,"-").concat(o)};function e$(e){for(var t=e.min,n=e.max,r=e.step,o=e.timeslots,i=e.localizer,s=eH({start:t,end:n,step:r,timeslots:o,localizer:i}),a=1+i.getTotalMin(t,n),l=i.getMinutesFromMidnight(t),c=Math.ceil((a-1)/(r*o)),u=c*o,d=Array(c),h=Array(u),f=0;f<c;f++){d[f]=Array(o);for(var p=0;p<o;p++){var m=f*o+p,v=m*r;h[m]=d[f][p]=i.getSlotDate(t,l,v)}}var g=h.length*r;function y(e){return Math.min(i.diff(t,e,"minutes")+i.getDstOffset(t,e),a)}return h.push(i.getSlotDate(t,l,g)),{groups:d,update:function(e){return eH(e)!==s?e$(e):this},dateIsInGroup:function(e,t){var r=d[t+1];return i.inRange(e,d[t][0],r?r[0]:n,"minutes")},nextSlot:function(e){var t=h[Math.min(h.findIndex(function(t){return t===e||i.eq(t,e)})+1,h.length-1)];return i.eq(t,e)&&(t=i.add(e,r,"minutes")),t},closestSlotToPosition:function(e){var t=Math.min(h.length-1,Math.max(0,Math.floor(e*u)));return h[t]},closestSlotFromPoint:function(e,t){var n=Math.abs(t.top-t.bottom);return this.closestSlotToPosition((e.y-t.top)/n)},closestSlotFromDate:function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(i.lt(e,t,"minutes"))return h[0];if(i.gt(e,n,"minutes"))return h[h.length-1];var s=i.diff(t,e,"minutes");return h[(s-s%r)/r+o]},startsBeforeDay:function(e){return i.lt(e,t,"day")},startsAfterDay:function(e){return i.gt(e,n,"day")},startsBefore:function(e){return i.lt(i.merge(t,e),t,"minutes")},startsAfter:function(e){return i.gt(i.merge(n,e),n,"minutes")},getRange:function(e,o,s,a){s||(e=i.min(n,i.max(t,e))),a||(o=i.min(n,i.max(t,o)));var l=y(e),c=y(o),d=c>r*u&&!i.eq(n,o)?(l-r)/(r*u)*100:l/(r*u)*100;return{top:d,height:c/(r*u)*100-d,start:y(e),startDate:e,end:y(o),endDate:o}},getCurrentTimePosition:function(e){return y(e)/(r*u)*100}}}var eW=(0,a.A)(function e(t,n){var r=n.accessors,o=n.slotMetrics;(0,s.A)(this,e);var i=o.getRange(r.start(t),r.end(t)),a=i.start,l=i.startDate,c=i.end,u=i.endDate,d=i.top,h=i.height;this.start=a,this.end=c,this.startMs=+l,this.endMs=+u,this.top=d,this.height=h,this.data=t},[{key:"_width",get:function(){return this.rows?100/(this.rows.reduce(function(e,t){return Math.max(e,t.leaves.length+1)},0)+1):this.leaves?(100-this.container._width)/(this.leaves.length+1):this.row._width}},{key:"width",get:function(){var e=this._width,t=Math.min(100,1.7*this._width);if(this.rows)return t;if(this.leaves)return this.leaves.length>0?t:e;var n=this.row.leaves;return n.indexOf(this)===n.length-1?e:t}},{key:"xOffset",get:function(){if(this.rows)return 0;if(this.leaves)return this.container._width;var e=this.row,t=e.leaves,n=e.xOffset,r=e._width;return n+(t.indexOf(this)+1)*r}}]);function eV(e){for(var t=e.events,n=e.minimumStartDifference,r=e.slotMetrics,o=e.accessors,i=function(e){for(var t=K()(e,["startMs",function(e){return-e.endMs}]),n=[];t.length>0;){var r=t.shift();n.push(r);for(var o=0;o<t.length;o++){var i=t[o];if(!(r.endMs>i.startMs)){if(o>0){var s=t.splice(o,1)[0];n.push(s)}break}}}return n}(t.map(function(e){return new eW(e,{slotMetrics:r,accessors:o})})),s=[],a=0;a<i.length;a++)if(function(){var e,t=i[a],r=s.find(function(e){return e.end>t.start||Math.abs(t.start-e.start)<n});if(!r)return t.rows=[],s.push(t),1;t.container=r;for(var o=null,l=r.rows.length-1;!o&&l>=0;l--)e=r.rows[l],(Math.abs(t.start-e.start)<n||t.start>e.start&&t.start<e.end)&&(o=r.rows[l]);o?(o.leaves.push(t),t.row=o):(t.leaves=[],r.rows.push(t))}())continue;
3return i.map(function(e){return{event:e.data,style:{top:e.top,height:e.height,width:e.width,xOffset:Math.max(0,e.xOffset)}}})}var eJ={overlap:eV,"no-overlap":function(e){var t=eV({events:e.events,minimumStartDifference:e.minimumStartDifference,slotMetrics:e.slotMetrics,accessors:e.accessors});t.sort(function(e,t){return(e=e.style,t=t.style,e.top!==t.top)?e.top>t.top?1:-1:e.height!==t.height?e.top+e.height<t.top+t.height?1:-1:0});for(var n=0;n<t.length;++n)t[n].friends=[],delete t[n].style.left,delete t[n].style.left,delete t[n].idx,delete t[n].size;for(var r=0;r<t.length-1;++r)for(var o=t[r],i=o.style.top,s=o.style.top+o.style.height,a=r+1;a<t.length;++a){var l=t[a],c=l.style.top,u=l.style.top+l.style.height;(c>=i&&u<=s||u>i&&u<=s||c>=i&&c<s)&&(o.friends.push(l),l.friends.push(o))}for(var d=0;d<t.length;++d){for(var h=t[d],f=[],p=0;p<100;++p)f.push(1);for(var m=0;m<h.friends.length;++m)void 0!==h.friends[m].idx&&(f[h.friends[m].idx]=0);h.idx=f.indexOf(1)}for(var v=0;v<t.length;++v){var g=0;if(!t[v].size){var y=[];g=100/(function e(t,n,r){for(var o=0;o<t.friends.length;++o)if(!(r.indexOf(t.friends[o])>-1)){n=n>t.friends[o].idx?n:t.friends[o].idx,r.push(t.friends[o]);var i=e(t.friends[o],n,r);n=n>i?n:i}return n}(t[v],0,y)+1),t[v].size=g;for(var b=0;b<y.length;++b)y[b].size=g}}for(var w=0;w<t.length;++w){var _=t[w];_.style.left=_.idx*_.size;for(var k=0,S=0;S<_.friends.length;++S){var E=_.friends[S].idx;k=k>E?k:E}k<=_.idx&&(_.size=100-_.idx*_.size);var C=3*(0!==_.idx);_.style.width="calc(".concat(_.size,"% - ").concat(C,"px)"),_.style.height="calc(".concat(_.style.height,"% - 2px)"),_.style.xOffset="calc(".concat(_.style.left,"% + ").concat(C,"px)")}return t}},eU=function(e){function t(){return(0,s.A)(this,t),(0,l.A)(this,t,arguments)}return(0,c.A)(t,e),(0,a.A)(t,[{key:"render",value:function(){var e=this.props,t=e.renderSlot,n=e.resource,r=e.group,o=e.getters,i=e.components,s=(void 0===i?{}:i).timeSlotWrapper,a=void 0===s?Q:s,l=o?o.slotGroupProp(r):{};return h.createElement("div",Object.assign({className:"rbc-timeslot-group"},l),r.map(function(e,r){var i=o?o.slotProp(e,n):{};return h.createElement(a,{key:r,value:e,resource:n},h.createElement("div",Object.assign({},i,{className:(0,d.default)("rbc-time-slot",i.className)}),t&&t(e,r)))}))}}])}(h.Component);function eY(e){return"string"==typeof e?e:e+"%"}function eq(e){var t=e.style,n=e.className,o=e.event,i=e.accessors,s=e.rtl,a=e.selected,l=e.label,c=e.continuesPrior,u=e.continuesAfter,f=e.getters,p=e.onClick,m=e.onDoubleClick,v=e.isBackgroundEvent,g=e.onKeyPress,b=e.components,w=b.event,_=b.eventWrapper,k=i.title(o),S=i.tooltip(o),E=i.end(o),C=i.start(o),x=f.eventProp(o,C,E,a),D=[h.createElement("div",{key:"1",className:"rbc-event-label"},l),h.createElement("div",{key:"2",className:"rbc-event-content"},w?h.createElement(w,{event:o,title:k}):k)],A=t.height,M=t.top,F=t.width,R=t.xOffset,z=(0,r.A)((0,r.A)({},x.style),{},(0,y.A)({top:eY(M),height:eY(A),width:eY(F)},s?"right":"left",eY(R)));return h.createElement(_,Object.assign({type:"time"},e),h.createElement("div",{role:"button",tabIndex:0,onClick:p,onDoubleClick:m,style:z,onKeyDown:g,title:S?("string"==typeof l?l+": ":"")+S:void 0,className:(0,d.default)(v?"rbc-background-event":"rbc-event",n,x.className,{"rbc-selected":a,"rbc-event-continues-earlier":c,"rbc-event-continues-later":u})},D))}var eG=function(e){var t=e.children,n=e.className,r=e.style,o=e.innerRef;return h.createElement("div",{className:n,style:r,ref:o},t)},eX=h.forwardRef(function(e,t){return h.createElement(eG,Object.assign({},e,{innerRef:t}))}),eZ=["dayProp"],eQ=["eventContainerWrapper","timeIndicatorWrapper"],e1=function(e){function t(){var e;(0,s.A)(this,t);for(var n=arguments.length,o=Array(n),i=0;i<n;i++)o[i]=arguments[i];return(e=(0,l.A)(this,t,[].concat(o))).state={selecting:!1,timeIndicatorPosition:null},e.intervalTriggered=!1,e.renderEvents=function(t){var n=t.events,o=t.isBackgroundEvent,i=e.props,s=i.rtl,a=i.selected,l=i.accessors,c=i.localizer,u=i.getters,d=i.components,f=i.step,p=i.timeslots,m=i.dayLayoutAlgorithm,v=i.resizable,g=e.slotMetrics,y=c.messages;return(function(e){e.events,e.minimumStartDifference,e.slotMetrics,e.accessors;var t,n=e.dayLayoutAlgorithm,r=n;return(n in eJ&&(r=eJ[n]),(t=r)&&t.constructor&&t.call&&t.apply)?r.apply(this,arguments):[]}
3)({events:n,accessors:l,slotMetrics:g,minimumStartDifference:Math.ceil(f*p/2),dayLayoutAlgorithm:m}).map(function(t,n){var i,f,p=t.event,m=t.style,b=l.end(p),w=l.start(p),_=null!=(i=l.eventId(p))?i:"evt_"+n,k="eventTimeRangeFormat",S=g.startsBeforeDay(w),E=g.startsAfterDay(b);S?k="eventTimeRangeEndFormat":E&&(k="eventTimeRangeStartFormat"),f=S&&E?y.allDay:c.format({start:w,end:b},k);var C=S||g.startsBefore(w),x=E||g.startsAfter(b);return h.createElement(eq,{style:m,event:p,label:f,key:_,getters:u,rtl:s,components:d,continuesPrior:C,continuesAfter:x,accessors:l,resource:e.props.resource,selected:ed(p,a),onClick:function(t){return e._select((0,r.A)((0,r.A)((0,r.A)({},p),e.props.resource&&{sourceResource:e.props.resource}),o&&{isBackgroundEvent:!0}),t)},onDoubleClick:function(t){return e._doubleClick(p,t)},isBackgroundEvent:o,onKeyPress:function(t){return e._keyPress(p,t)},resizable:v})})},e._selectable=function(){var t=e.containerRef.current,n=e.props,o=n.longPressThreshold,i=n.localizer,s=e._selector=new e_(function(){return t},{longPressThreshold:o}),a=function(t){var n=e.props.onSelecting,r=e.state||{},o=l(t),s=o.startDate,a=o.endDate;n&&(i.eq(r.startDate,s,"minutes")&&i.eq(r.endDate,a,"minutes")||!1===n({start:s,end:a,resourceId:e.props.resource}))||(e.state.start!==o.start||e.state.end!==o.end||e.state.selecting!==o.selecting)&&e.setState(o)},l=function(n){var o=e.slotMetrics.closestSlotFromPoint(n,eS(t));e.state.selecting||(e._initialSlot=o);var s=e._initialSlot;i.lte(s,o)?o=e.slotMetrics.nextSlot(o):i.gt(s,o)&&(s=e.slotMetrics.nextSlot(s));var a=e.slotMetrics.getRange(i.min(s,o),i.max(s,o));return(0,r.A)((0,r.A)({},a),{},{selecting:!0,top:"".concat(a.top,"%"),height:"".concat(a.height,"%")})},c=function(t,n){if(!eb(e.containerRef.current,t)){var r=l(t),o=r.startDate,i=r.endDate;e._selectSlot({startDate:o,endDate:i,action:n,box:t})}e.setState({selecting:!1})};s.on("selecting",a),s.on("selectStart",a),s.on("beforeSelect",function(t){if("ignoreEvents"===e.props.selectable)return!eb(e.containerRef.current,t)}),s.on("click",function(e){return c(e,"click")}),s.on("doubleClick",function(e){return c(e,"doubleClick")}),s.on("select",function(t){e.state.selecting&&(e._selectSlot((0,r.A)((0,r.A)({},e.state),{},{action:"select",bounds:t})),e.setState({selecting:!1}))}),s.on("reset",function(){e.state.selecting&&e.setState({selecting:!1})})},e._teardownSelectable=function(){e._selector&&(e._selector.teardown(),e._selector=null)},e._selectSlot=function(t){for(var n=t.startDate,r=t.endDate,o=t.action,i=t.bounds,s=t.box,a=n,l=[];e.props.localizer.lte(a,r);)l.push(a),a=new Date(+a+60*e.props.step*1e3);ea(e.props.onSelectSlot,{slots:l,start:n,end:r,resourceId:e.props.resource,action:o,bounds:i,box:s})},e._select=function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];ea(e.props.onSelectEvent,n)},e._doubleClick=function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];ea(e.props.onDoubleClickEvent,n)},e._keyPress=function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];ea(e.props.onKeyPressEvent,n)},e.slotMetrics=e$(e.props),e.containerRef=(0,h.createRef)(),e}
3return(0,c.A)(t,e),(0,a.A)(t,[{key:"componentDidMount",value:function(){this.props.selectable&&this._selectable(),this.props.isNow&&this.setTimeIndicatorPositionUpdateInterval()}},{key:"componentWillUnmount",value:function(){this._teardownSelectable(),this.clearTimeIndicatorInterval()}},{key:"componentDidUpdate",value:function(e,t){this.props.selectable&&!e.selectable&&this._selectable(),!this.props.selectable&&e.selectable&&this._teardownSelectable();var n=this.props,r=n.getNow,o=n.isNow,i=n.localizer,s=n.date,a=n.min,l=n.max,c=i.neq(e.getNow(),r(),"minutes");if(e.isNow!==o||c){if(this.clearTimeIndicatorInterval(),o){var u=!c&&i.eq(e.date,s,"minutes")&&t.timeIndicatorPosition===this.state.timeIndicatorPosition;this.setTimeIndicatorPositionUpdateInterval(u)}}else o&&(i.neq(e.min,a,"minutes")||i.neq(e.max,l,"minutes"))&&this.positionTimeIndicator()}},{key:"setTimeIndicatorPositionUpdateInterval",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.intervalTriggered||t||this.positionTimeIndicator(),this._timeIndicatorTimeout=window.setTimeout(function(){e.intervalTriggered=!0,e.positionTimeIndicator(),e.setTimeIndicatorPositionUpdateInterval()},6e4)}},{key:"clearTimeIndicatorInterval",value:function(){this.intervalTriggered=!1,window.clearTimeout(this._timeIndicatorTimeout)}},{key:"positionTimeIndicator",value:function(){var e=this.props,t=e.min,n=e.max,r=(0,e.getNow)();if(r>=t&&r<=n){var o=this.slotMetrics.getCurrentTimePosition(r);this.intervalTriggered=!0,this.setState({timeIndicatorPosition:o})}else this.clearTimeIndicatorInterval()}},{key:"render",value:function(){var e=this.props,t=e.date,n=e.max,r=e.rtl,i=e.isNow,s=e.resource,a=e.accessors,l=e.localizer,c=e.getters,u=c.dayProp,f=(0,o.A)(c,eZ),p=e.components,m=p.eventContainerWrapper,v=p.timeIndicatorWrapper,g=(0,o.A)(p,eQ);this.slotMetrics=this.slotMetrics.update(this.props);var y=this.slotMetrics,b=this.state,w=b.selecting,_=b.top,k=b.height,S=b.startDate,E=b.endDate,C=u(n,s),x=C.className,D=C.style,A={className:"rbc-current-time-indicator",style:{top:"".concat(this.state.timeIndicatorPosition,"%")}},M=g.dayColumnWrapper||eX;return h.createElement(M,{ref:this.containerRef,date:t,style:D,className:(0,d.default)(x,"rbc-day-slot","rbc-time-column",i&&"rbc-now",i&&"rbc-today",w&&"rbc-slot-selecting"),slotMetrics:y,resource:s},y.groups.map(function(e,t){return h.createElement(eU,{key:t,group:e,resource:s,getters:f,components:g})}),h.createElement(m,{localizer:l,resource:s,accessors:a,getters:f,components:g,slotMetrics:y},h.createElement("div",{className:(0,d.default)("rbc-events-container",r&&"rtl")},this.renderEvents({events:this.props.backgroundEvents,isBackgroundEvent:!0}),this.renderEvents({events:this.props.events}))),w&&h.createElement("div",{className:"rbc-slot-selection",style:{to
3p:_,height:k}},h.createElement("span",null,l.format({start:S,end:E},"selectRangeFormat"))),i&&this.intervalTriggered&&h.createElement(v,A,h.createElement("div",A)))}}])}(h.Component);e1.defaultProps={dragThroughEvents:!0,timeslots:2};var e0=function(e){var t=e.label;return h.createElement(h.Fragment,null,t)},e2=function(e){function t(){var e;(0,s.A)(this,t);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=(0,l.A)(this,t,[].concat(r))).handleHeaderClick=function(t,n,r){r.preventDefault(),ea(e.props.onDrillDown,[t,n])},e.renderRow=function(t){var n=e.props,r=n.events,o=n.rtl,i=n.selectable,s=n.getNow,a=n.range,l=n.getters,c=n.localizer,u=n.accessors,d=n.components,f=n.resizable,p=u.resourceId(t),m=t?r.filter(function(e){return u.resource(e)===p}):r;return h.createElement(eI,{isAllDay:!0,rtl:o,getNow:s,minRows:2,maxRows:e.props.allDayMaxRows+1,range:a,events:m,resourceId:p,className:"rbc-allday-cell",selectable:i,selected:e.props.selected,components:d,accessors:u,getters:l,localizer:c,onSelect:e.props.onSelectEvent,onShowMore:e.props.onShowMore,onDoubleClick:e.props.onDoubleClickEvent,onKeyPress:e.props.onKeyPressEvent,onSelectSlot:e.props.onSelectSlot,longPressThreshold:e.props.longPressThreshold,resizable:f})},e}return(0,c.A)(t,e),(0,a.A)(t,[{key:"renderHeaderCells",value:function(e){var t=this,n=this.props,r=n.localizer,o=n.getDrilldownView,i=n.getNow,s=n.getters.dayProp,a=n.components.header,l=void 0===a?eP:a,c=i();return e.map(function(e,n){var i=o(e),a=r.format(e,"dayFormat"),u=s(e),f=u.className,p=u.style,m=h.createElement(l,{date:e,label:a,localizer:r});return h.createElement("div",{key:n,style:p,className:(0,d.default)("rbc-header",f,r.isSameDate(e,c)&&"rbc-today")},i?h.createElement("button",{type:"button",className:"rbc-button-link",onClick:function(n){return t.handleHeaderClick(e,i,n)}},m):h.createElement("span",null,m))})}},{key:"render",value:function(){var e=this,t=this.props,n=t.width,r=t.rtl,o=t.resources,i=t.range,s=t.events,a=t.getNow,l=t.accessors,c=t.selectable,f=t.components,p=t.getters,m=t.scrollRef,v=t.localizer,g=t.isOverflowing,y=t.components,b=y.timeGutterHeader,w=y.resourceHeader,_=void 0===w?e0:w,k=t.resizable,S={};g&&(S[r?"marginLeft":"marginRight"]="".concat((0,B.default)()-1,"px"));var E=o.groupEvents(s);return h.createElement("div",{style:S,ref:m,className:(0,d.default)("rbc-time-header",g&&"rbc-overflowing")},h.createElement("div",{className:"rbc-label rbc-time-header-gutter",style:{width:n,minWidth:n,maxWidth:n}},b&&h.createElement(b,null)),o.map(function(t,n){var o=(0,u.A)(t,2),s=o[0],d=o[1];return h.createElement("div",{className:"rbc-time-header-content",key:s||n},d&&h.createElement("div",{className:"rbc-row rbc-row-resource",key:"resource_".concat(n)},h.createElement("div",{className:"rbc-header"},h.createElement(_,{index:n,label:l.resourceTitle(d),resource:d}))),h.createElement("div",{className:"rbc-row rbc-time-header-cell".concat(i.length<=1?" rbc-time-header-cell-single-day":"")},e.renderHeaderCells(i)),h.createElement(eI,{isAllDay:!0,rtl:r,getNow:a,minRows:2,maxRows:e.props.allDayMaxRows+1,range:i,events:E.get(s)||[],resourceId:d&&s,className:"rbc-allday-cell",selectable:c,selected:e.props.selected,components:f,accessors:l,getters:p,localizer:v,onSelect:e.props.onSelectEvent,onShowMore:e.props.onShowMore,onDoubleClick:e.props.onDoubleClickEvent,onKeyDown:e.props.onKeyPressEvent,onSelectSlot:e.props.onSelectSlot,longPressThreshold:e.props.longPressThreshold,resizable:k}))}))}}])}(h.Component),e3=function(e){function t(){var e;(0,s.A)(this,t);for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=(0,l.A)(this,t,[].concat(r))).handleHeaderClick=function(t,n,r){r.preventDefault(),ea(e.props.onDrillDown,[t,n])},e}return(0,c.A)(t,e),(0,a.A)(t,[{key:"renderHeaderCells",value:function(e){var t=this,n=this.props,r=n.localizer,o=n.getDrilldownView,i=n.getNow,s=n.getters.dayProp,a=n.components,l=a.header,c=void 0===l?eP:l,f=a.resourceHeader,p=void 0===f?e0:f,m=n.resources,v=n.accessors,g=n.events,y=n.rtl,b=n.selectable,w=n.components,_=n.getters,k=n.resizable,S=i(),E=m.groupEvents(g);return e.map(function(n,a){var l=o(n),f=r.format(n,"dayFormat"),g=s(n),C=g.className,x=g.style,D=h.createElement(c,{date:n,label:f,localizer:r});return h.createElement("div",{key:a,className:"rbc-time-header-content rbc-resource-grouping"},h.createElement("div",{className:"rbc-row rbc-time-header-cell".concat(e.length<=1?" rbc-time-header-cell-single-day":"")},h.createElement("div",{style:x,className:(0,d.default)("rbc-header",C,r.isSameDate(n,S)&&"rbc-today")},l?h.createElement("button",{type:"button",className:"rbc-button-link",onClick:function(e){return t.handleHeaderClick(n,l,e)}},D):h.createElement("span",null,D))),h.createElement("div",{className:"rbc-row"},m.map(function(e,t){var o=(0,u.A)(e,2),i=o[0],s=o[1];return h.createElement("div",{key:"resource_".concat(i,"_").concat(t),className:(0,d.default)("rbc-header",C,r.isSameDate(n,S)&&"rbc-today")},h.createElement(p,{index:t,label:v.resourceTitle(s),resource:s}))}
3)),h.createElement("div",{className:"rbc-row rbc-m-b-negative-3 rbc-h-full"},m.map(function(e,o){var s=(0,u.A)(e,2),a=s[0],l=s[1],c=(E.get(a)||[]).filter(function(e){return r.isSameDate(e.start,n)||r.isSameDate(e.end,n)});return h.createElement(eI,{key:"resource_".concat(a,"_").concat(o),isAllDay:!0,rtl:y,getNow:i,minRows:2,maxRows:t.props.allDayMaxRows+1,range:[n],events:c,resourceId:l&&a,className:"rbc-allday-cell",selectable:b,selected:t.props.selected,components:w,accessors:v,getters:_,localizer:r,onSelect:t.props.onSelectEvent,onShowMore:t.props.onShowMore,onDoubleClick:t.props.onDoubleClickEvent,onKeyDown:t.props.onKeyPressEvent,onSelectSlot:t.props.onSelectSlot,longPressThreshold:t.props.longPressThreshold,resizable:k})})))})}},{key:"render",value:function(){var e=this.props,t=e.width,n=e.rtl,r=e.range,o=e.scrollRef,i=e.isOverflowing,s=e.components.timeGutterHeader,a={};return i&&(a[n?"marginLeft":"marginRight"]="".concat((0,B.default)()-1,"px")),h.createElement("div",{style:a,ref:o,className:(0,d.default)("rbc-time-header",i&&"rbc-overflowing")},h.createElement("div",{className:"rbc-label rbc-time-header-gutter",style:{width:t,minWidth:t,maxWidth:t}},s&&h.createElement(s,null)),this.renderHeaderCells(r))}}])}(h.Component),e4=function(e){var t=e.min,n=e.max,r=e.timeslots,o=e.step,i=e.localizer,s=e.getNow,a=e.resource,l=e.components,c=e.getters,f=e.gutterRef,p=l.timeGutterWrapper,m=(0,h.useMemo)(function(){var e,r,o,s;return r=(e={min:t,max:n,localizer:i}).min,o=e.max,(s=e.localizer).getTimezoneOffset(r)!==s.getTimezoneOffset(o)?{start:s.add(r,-1,"day"),end:s.add(o,-1,"day")}:{start:r,end:o}},[null==t?void 0:t.toISOString(),null==n?void 0:n.toISOString(),i]),v=m.start,g=m.end,y=(0,h.useState)(e$({min:v,max:g,timeslots:r,step:o,localizer:i})),b=(0,u.A)(y,2),w=b[0],_=b[1];(0,h.useEffect)(function(){w&&_(w.update({min:v,max:g,timeslots:r,step:o,localizer:i}))},[null==v?void 0:v.toISOString(),null==g?void 0:g.toISOString(),r,o]);var k=(0,h.useCallback)(function(e,t){if(t)return null;var n=w.dateIsInGroup(s(),t);return h.createElement("span",{className:(0,d.default)("rbc-label",n&&"rbc-now")},i.format(e,"timeGutterFormat"))},[w,i,s]);return h.createElement(p,{slotMetrics:w},h.createElement("div",{className:"rbc-time-gutter rbc-time-column",ref:f},w.groups.map(function(e,t){return h.createElement(eU,{key:t,group:e,resource:a,components:l,renderSlot:k,getters:c})})))},e5=h.forwardRef(function(e,t){return h.createElement(e4,Object.assign({gutterRef:t},e))}),e6={},e9=function(e){function t(e){var n;return(0,s.A)(this,t),(n=(0,l.A)(this,t,[e])).handleScroll=function(e){n.scrollRef.current&&(n.scrollRef.current.scrollLeft=e.target.scrollLeft)},n.handleResize=function(){S.cancel(n.rafHandle),n.rafHandle=S.request(n.checkOverflow)},n.handleKeyPressEvent=function(){n.clearSelection();for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];ea(n.props.onKeyPressEvent,t)},n.handleSelectEvent=function(){n.clearSelection();for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];ea(n.props.onSelectEvent,t)},n.handleDoubleClickEvent=function(){n.clearSelection();for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];ea(n.props.onDoubleClickEvent,t)},n.handleShowMore=function(e,t,o,i,s){var a=n.props,l=a.popup,c=a.onDrillDown,u=a.onShowMore,d=a.getDrilldownView,h=a.doShowMoreDrillDown;if(n.clearSelection(),l){var f=(0,k.default)(o,n.containerRef.current);n.setState({overlay:{date:t,events:e,position:(0,r.A)((0,r.A)({},f),{},{width:"200px"}),target:s}})}else h&&ea(c,[t,d(t)||eo.DAY]);ea(u,[e,t,i])},n.handleSelectAllDaySlot=function(e,t){var r=n.props.onSelectSlot,o=new Date(e[0]),i=new Date(e[e.length-1]);i.setDate(e[e.length-1].getDate()+1),ea(r,{slots:e,start:o,end:i,action:t.action,resourceId:t.resourceId})},n.overlayDisplay=function(){n.setState({overlay:null})},n.checkOverflow=function(){if(!n._updatingOverflow){var e=n.contentRef.current;if(null!=e&&e.scrollHeight){var t=e.scrollHeight>e.clientHeight;n.state.isOverflowing!==t&&(n._updatingOverflow=!0,n.setState({isOverflowing:t},function(){n._updatingOverflow=!1}))}}},n.memoizedResources=(0,I.default)(function(e,t){return{map:function(n){return e?e.map(function(e,r){return n([t.resourceId(e),e],r)}):[n([e6,null],0)]},groupEvents:function(n){var r=new Map;
3return e?n.forEach(function(e){var n=t.resource(e)||e6;if(Array.isArray(n))n.forEach(function(t){var n=r.get(t)||[];n.push(e),r.set(t,n)});else{var o=r.get(n)||[];o.push(e),r.set(n,o)}}):r.set(e6,n),r}}}),n.state={gutterWidth:void 0,isOverflowing:null},n.scrollRef=h.createRef(),n.contentRef=h.createRef(),n.containerRef=h.createRef(),n._scrollRatio=null,n.gutterRef=(0,h.createRef)(),n}return(0,c.A)(t,e),(0,a.A)(t,[{key:"getSnapshotBeforeUpdate",value:function(){return this.checkOverflow(),null}},{key:"componentDidMount",value:function(){null==this.props.width&&this.measureGutter(),this.calculateScroll(),this.applyScroll(),window.addEventListener("resize",this.handleResize)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.handleResize),S.cancel(this.rafHandle),this.measureGutterAnimationFrameRequest&&window.cancelAnimationFrame(this.measureGutterAnimationFrameRequest)}},{key:"componentDidUpdate",value:function(){this.applyScroll()}},{key:"renderDayColumn",value:function(e,t,n,r,o,i,s,a,l,c){var u=this.props,d=u.min,f=u.max,p=(r.get(t)||[]).filter(function(t){return i.inRange(e,s.start(t),s.end(t),"day")}),m=(o.get(t)||[]).filter(function(t){return i.inRange(e,s.start(t),s.end(t),"day")});return h.createElement(e1,Object.assign({},this.props,{localizer:i,min:i.merge(e,d),max:i.merge(e,f),resource:n&&t,components:a,isNow:i.isSameDate(e,c),key:"".concat(t,"-").concat(e),date:e,events:p,backgroundEvents:m,dayLayoutAlgorithm:l}))}},{key:"renderResourcesFirst",value:function(e,t,n,r,o,i,s,a,l){var c=this;return t.map(function(t){var d=(0,u.A)(t,2),h=d[0],f=d[1];return e.map(function(e){return c.renderDayColumn(e,h,f,n,r,o,i,a,l,s)})})}},{key:"renderRangeFirst",value:function(e,t,n,r,o,i,s,a,l){var c=this;return e.map(function(e){return h.createElement("div",{style:{display:"flex",minHeight:"100%",flex:1},key:e},t.map(function(t){var d=(0,u.A)(t,2),f=d[0],p=d[1];return h.createElement("div",{style:{flex:1},key:i.resourceId(p)},c.renderDayColumn(e,f,p,n,r,o,i,a,l,s))}))})}},{key:"renderEvents",value:function(e,t,n,r){var o=this.props,i=o.accessors,s=o.localizer,a=o.resourceGroupingLayout,l=o.components,c=o.dayLayoutAlgorithm,u=this.memoizedResources(this.props.resources,i),d=u.groupEvents(t),h=u.groupEvents(n);return a?this.renderRangeFirst(e,u,d,h,s,i,r,l,c):this.renderResourcesFirst(e,u,d,h,s,i,r,l,c)}},{key:"render",value:function(){var e,t=this.props,n=t.events,r=t.backgroundEvents,o=t.range,i=t.width,s=t.rtl,a=t.selected,l=t.getNow,c=t.resources,u=t.components,f=t.accessors,p=t.getters,m=t.localizer,v=t.min,g=t.max,y=t.showMultiDayTimes,b=t.longPressThreshold,w=t.resizable,_=t.resourceGroupingLayout;i=i||this.state.gutterWidth;var k=o[0],S=o[o.length-1];this.slots=o.length;var E=[],C=[],x=[];n.forEach(function(e){if(eF(e,k,S,f,m)){var t=f.start(e),n=f.end(e);f.allDay(e)||m.startAndEndAreDateOnly(t,n)||!y&&!m.isSameDate(t,n)?E.push(e):C.push(e)}}),r.forEach(function(e){eF(e,k,S,f,m)&&x.push(e)}),E.sort(function(e,t){return eR(e,t,f,m)});var D={range:o,events:E,width:i,rtl:s,getNow:l,localizer:m,selected:a,allDayMaxRows:this.props.showAllEvents?1/0:null!=(e=this.props.allDayMaxRows)?e:1/0,resources:this.memoizedResources(c,f),selectable:this.props.selectable,accessors:f,getters:p,components:u,scrollRef:this.scrollRef,isOverflowing:this.state.isOverflowing,longPressThreshold:b,onSelectSlot:this.handleSelectAllDaySlot,onSelectEvent:this.handleSelectEvent,onShowMore:this.handleShowMore,onDoubleClickEvent:this.props.onDoubleClickEvent,onKeyPressEvent:this.props.onKeyPressEvent,onDrillDown:this.props.onDrillDown,getDrilldownView:this.props.getDrilldownView,resizable:w};return h.createElement("div",{className:(0,d.default)("rbc-time-view",c&&"rbc-time-view-resources"),ref:this.containerRef},c&&c.length>1&&_?h.createElement(e3,D):h.createElement(e2,D),this.props.popup&&this.renderOverlay(),h.createElement("div",{ref:this.contentRef,className:"rbc-time-content",onScroll:this.handleScroll},h.createElement(e5,{date:k,ref:this.gutterRef,localizer:m,min:m.merge(k,v),max:m.merge(k,g),step:this.props.step,getNow:this.props.getNow,timeslots:this.props.timeslots,components:u,className:"rbc-time-gutter",getters:p}),this.renderEvents(o,C,x,l())))}},{key:"renderOverlay",value:function(){var e,t,n=this,r=null!=(e=null==(t=this.state)?void 0:t.overlay)?e:{},o=this.props,i=o.accessors,s=o.localizer,a=o.components,l=o.getters,c=o.selected,u=o.popupOffset,d=o.handleDragStart;return h.createElement(eg,{overlay:r,accessors:i,localizer:s,components:a,getters:l,selected:c,popupOffset:u,ref:this.containerRef,handleKeyPressEvent:this.handleKeyPressEvent,handleSelectEvent:this.handleSelectEvent,handleDoubleClickEvent:this.handleDoubleClickEvent,handleDragStart:d,show:!!r.position,overlayDisplay:this.overlayDisplay,onHide:function(){return n.setState({overlay:null})}})}},{key:"clearSelection",value:function(){clearTimeout(this._selectTimer),this._pendingSelection=[]}},{key:"measureGutter",value:function(){var e=this;this.measureGutterAnimationFrameRequest&&window.cancelAnimationFrame(this.measureGutterAnimationFrameRequest),this.measureGutterAnimationFrameRequest=window.requestAnimationFrame(function(){var t,n=null!=(t=e.gutterRef)&&t.current?(0,P.default)(e.gutterRef.current):void 0;n&&e.state.gutterWidth!==n&&e.setState({gutterWidth:n})})}},{key:"applyScroll",value:function(){if(null!=this._scrollRatio&&!0===this.props.enableAutoScroll){var e=this.contentRef.current;e.scrollTop=e.scrollHeight*this._scrollRatio,this._scrollRatio=null}}},{key:"calculateScroll",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=e.min,n=e.max,r=e.scrollToTime,o=e.localizer,i=o.diff(o.merge(r,t),r,"milliseconds"),s=o.diff(t,n,"milliseconds");this._scrollRatio=i/s}}])}(h.Component);e9.defaultProps={step:30,timeslots:2,resourceGroupingLayout:!1};var e7=["date","localizer","min","max","scrollToTime","enableAutoScroll"],e8=function(e){function t(){return(0,s.A)(this,t),(0,l.A)(this,t,arguments)}return(0,c.A)(t,e),(0,a.A)(t,[{key:"render",value:function(){var e=this.props,n=e.date,r=e.localizer,i=e.min,s=void 0===i?r.startOf(new Date,"day"):i,a=e.max,l=void 0===a?r.endOf(new Date,"day"):a,c=e.scrollToTime,u=void 0===c?r.startOf(new Date,"day"):c,d=e.enableAutoScroll,f=(0,o.A)(e,e7),p=t.range(n,{localizer:r});return h.createElement(e9,Object.assign({},f,{range:p,eventOffset:10,localizer:r,min:s,max:l,scrollToTime:u,enableAutoScroll:void 0===d||d}))}}])}(h.Component);e8.range=function(e,t){return[t.localizer.startOf(e,"day")]},e8.navigate=function(e,t,n){var r=n.localizer;switch(t){case ee:return r.add(e,-1,"day");case et:return r.add(e,1,"day");default:return e}},e8.title=function(e,t){return t.localizer.format(e,"dayHeaderFormat")};var te=["date","localizer","min","max","scrollToTime","enableAutoScroll"],tt=function(e){function t(){return(0,s.A)(this,t),(0,l.A)(this,t,arguments)}return(0,c.A)(t,e),(0,a.A)(t,[{key:"render",value:function(){var e=this.props,n=e.date,r=e.localizer,i=e.min,s=void 0===i?r.startOf(new Date,"day"):i,a=e.max,l=void 0===a?r.endOf(new Date,"day"):a,c=e.scrollToTime,u=void 0===c?r.startOf(new Date,"day"):c,d=e.enableAutoScroll,f=(0,o.A)(e,te),p=t.range(n,this.props);return h.createElement(e9,Object.assign({},f,{range:p,eventOffset:15,localizer:r,min:s,max:l,scrollToTime:u,enableAutoScroll:void 0===d||d}))}}])}(h.Component);tt.defaultProps=e9.defaultProps,tt.navigate=function(e,t,n){var r=n.localizer;switch(t){case ee:return r.add(e,-1,"week");case et:return r.add(e,1,"week");default:return e}},tt.range=function(e,t){var n=t.localizer,r=n.startOfWeek(),o=n.startOf(e,"week",r),i=n.endOf(e,"week",r);return n.range(o,i)},tt.title=function(e,t){var n=t.localizer,r=tt.range(e,{localizer:n}),o=(0,H.A)(r),i=o[0],s=o.slice(1);return n.format({start:i,end:s.pop()},"dayRangeHeaderFormat")};var tn=["date","localizer","min","max","scrollToTime","enableAutoScroll"];function tr(e,t){return tt.range(e,t).filter(function(e){return -1===[6,0].indexOf(e.getDay())})}var to=function(e){function t(){return(0,s.A)(this,t),(0,l.A)(this,t,arguments)}return(0,c.A)(t,e),(0,a.A)(t,[{key:"render",value:function(){var e=this.props,t=e.date,n=e.localizer,r=e.min,i=void 0===r?n.startOf(new Date,"day"):r,s=e.max,a=void 0===s?n.endOf(new Date,"day"):s,l=e.scrollToTime,c=void 0===l?n.startOf(new Date,"day"):l,u=e.enableAutoScroll,d=(0,o.A)(e,tn),f=tr(t,this.props);return h.createElement(e9,Object.assign({},d,{range:f,eventOffset:15,localizer:n,min:i,max:a,scrollToTime:c,enableAutoScroll:void 0===u||u}))}}])}(h.Component);function ti(e){var t=e.accessors,n=e.components,r=e.date,o=e.events,i=e.getters,s=e.length,a=e.localizer,l=e.onDoubleClickEvent,c=e.onSelectEvent,u=e.selected,d=(0,h.useRef)(null),f=(0,h.useRef)(null),p=(0,h.useRef)(null),m=(0,h.useRef)(null),v=(0,h.useRef)(null);(0,h.useEffect)(function(){b()});var g=function(e,r,o){var s=n.event,d=n.date;return(r=r.filter(function(n){return eF(n,a.startOf(e,"day"),a.endOf(e,"day"),t,a)})).map(function(n,f){var p=t.title(n),m=t.end(n),v=t.start(n),g=i.eventProp(n,v,m,ed(n,u)),b=0===f&&a.format(e,"agendaDateFormat"),w=0===f&&h.createElement("td",{rowSpan:r.length,className:"rbc-agenda-date-cell"},d?h.createElement(d,{day:e,label:b}):b);return h.createElement("tr",{key:o+"_"+f,className:g.className,style:g.style},w,h.createElement("td",{className:"rbc-agenda-time-cell"},y(e,n)),h.createElement("td",{className:"rbc-agenda-event-cell",onClick:function(e){return c&&c(n,e)},onDoubleClick:function(e){return l&&l(n,e)}},s?h.createElement(s,{event:n,title:p}
3):p))},[])},y=function(e,r){var o="",i=n.time,s=a.messages.allDay,l=t.end(r),c=t.start(r);return!t.allDay(r)&&(a.eq(c,l)?s=a.format(c,"agendaTimeFormat"):a.isSameDate(c,l)?s=a.format({start:c,end:l},"agendaTimeRangeFormat"):a.isSameDate(e,c)?s=a.format(c,"agendaTimeFormat"):a.isSameDate(e,l)&&(s=a.format(l,"agendaTimeFormat"))),a.gt(e,c,"day")&&(o="rbc-continues-prior"),a.lt(e,l,"day")&&(o+=" rbc-continues-after"),h.createElement("span",{className:o.trim()},i?h.createElement(i,{event:r,day:e,label:s}):s)},b=function(){if(v.current){var e=d.current,t=v.current.firstChild;if(t){var n=m.current.scrollHeight>m.current.clientHeight,r=[],o=r;r=[(0,P.default)(t.children[0]),(0,P.default)(t.children[1])],(o[0]!==r[0]||o[1]!==r[1])&&(f.current.style.width=r[0]+"px",p.current.style.width=r[1]+"px"),n?((0,$.A)(e,"rbc-header-overflowing"),e.style.marginRight=(0,B.default)()+"px"):(0,W.A)(e,"rbc-header-overflowing")}}},w=a.messages,_=a.add(r,void 0===s?30:s,"day"),k=a.range(r,_,"day");return(o=o.filter(function(e){return eF(e,a.startOf(r,"day"),a.endOf(_,"day"),t,a)})).sort(function(e,n){return t.start(e)-t.start(n)}),h.createElement("div",{className:"rbc-agenda-view"},0!==o.length?h.createElement(h.Fragment,null,h.createElement("table",{ref:d,className:"rbc-agenda-table"},h.createElement("thead",null,h.createElement("tr",null,h.createElement("th",{className:"rbc-header",ref:f},w.date),h.createElement("th",{className:"rbc-header",ref:p},w.time),h.createElement("th",{className:"rbc-header"},w.event)))),h.createElement("div",{className:"rbc-agenda-content",ref:m},h.createElement("table",{className:"rbc-agenda-table"},h.createElement("tbody",{ref:v},k.map(function(e,t){return g(e,o,t)}))))):h.createElement("span",{className:"rbc-agenda-empty"},w.noEventsInRange))}to.defaultProps=e9.defaultProps,to.range=tr,to.navigate=tt.navigate,to.title=function(e,t){var n=t.localizer,r=tr(e,{localizer:n}),o=(0,H.A)(r),i=o[0],s=o.slice(1);return n.format({start:i,end:s.pop()},"dayRangeHeaderFormat")},ti.range=function(e,t){var n=t.length,r=t.localizer.add(e,void 0===n?30:n,"day");return{start:e,end:r}},ti.navigate=function(e,t,n){var r=n.length,o=void 0===r?30:r,i=n.localizer;switch(t){case ee:return i.add(e,-o,"day");case et:return i.add(e,o,"day");default:return e}},ti.title=function(e,t){var n=t.length,r=t.localizer,o=r.add(e,void 0===n?30:n,"day");return r.format({start:e,end:o},"agendaHeaderFormat")};var ts=(0,y.A)((0,y.A)((0,y.A)((0,y.A)((0,y.A)({},eo.MONTH,eB),eo.WEEK,tt),eo.WORK_WEEK,to),eo.DAY,e8),eo.AGENDA,ti),ta=["action","date","today"],tl=function(e){return function(t){var n;return n=null,"function"==typeof e?n=e(t):"string"==typeof e&&"object"===(0,i.A)(t)&&null!=t&&e in t&&(n=t[e]),n}},tc=["view","date","getNow","onNavigate"],tu=["view","toolbar","events","backgroundEvents","resourceGroupingLayout","style","className","elementProps","date","getNow","length","showMultiDayTimes","onShowMore","doShowMoreDrillDown","components","formats","messages","culture"];function td(e){if(Array.isArray(e))return e;for(var t=[],n=0,r=Object.entries(e);n<r.length;n++){var o=(0,u.A)(r[n],2),i=o[0];o[1]&&t.push(i)}return t}var th=function(e){function t(){var e;(0,s.A)(this,t);for(var n=arguments.length,a=Array(n),c=0;c<n;c++)a[c]=arguments[c];return(e=(0,l.A)(this,t,[].concat(a))).getViews=function(){var t=e.props.views;return Array.isArray(t)?Z()(t,function(e,t){return e[t]=ts[t]},{}):"object"===(0,i.A)(t)?Y()(t,function(e,t){return!0===e?ts[t]:e}):ts},e.getView=function(){return e.getViews()[e.props.view]},e.getDrilldownView=function(t){var n=e.props,r=n.view,o=n.drilldownView,i=n.getDrilldownView;return i?i(t,r,Object.keys(e.getViews())):o},e.handleRangeChange=function(t,n,r){var o=e.props,i=o.onRangeChange,s=o.localizer;i&&n.range&&i(n.range(t,{localizer:s}),r)},e.handleNavigate=function(t,n){var i=e.props,s=i.view,a=i.date,l=i.getNow,c=i.onNavigate,u=(0,o.A)(i,tc),d=e.getView(),h=l();c(a=function(e,t){var n=t.action,r=t.date,i=t.today,s=(0,o.A)(t,ta);switch(e="string"==typeof e?ts[e]:e,n){case en:r=i||new Date;break;case er:break;default:g()(e&&"function"==typeof e.navigate,"Calendar View components must implement a static `.navigate(date, action)` method.s"),r=e.navigate(r,n,s)}return r}(d,(0,r.A)((0,r.A)({},u),{},{action:t,date:n||a||h,today:h})),s,t),e.handleRangeChange(a,d)},e.handleViewChange=function(t){t!==e.props.view&&-1!==td(e.props.views).indexOf(t)&&e.props.onView(t);var n=e.getViews();e.handleRangeChange(e.props.date||e.props.getNow(),n[t],t)},e.handleSelectEvent=function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];ea(e.props.onSelectEvent,n)},e.handleDoubleClickEvent=function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];ea(e.props.onDoubleClickEvent,n)},e.handleKeyPressEvent=function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];ea(e.props.onKeyPressEvent,n)},e.handleSelectSlot=function(t){ea(e.props.onSelectSlot,t)},e.handleDrillDown=function(t,n){var r=e.props.onDrillDown;r?r(t,n,e.drilldownView):(n&&e.handleViewChange(n),e.handleNavigate(er,t))},e.state={context:t.getContext(e.props)},e}return(0,c.A)(t,e),(0,a.A)(t,[{key:"render",value:function(){var e=this.props,t=e.view,n=e.toolbar,r=e.events,i=e.backgroundEvents,s=e.resourceGroupingLayout,a=e.style,l=e.className,c=e.elementProps,u=e.date,f=e.getNow,p=e.length,m=e.showMultiDayTimes,v=e.onShowMore,g=e.doShowMoreDrillDown;e.components,e.formats,e.messages,e.culture;var y=(0,o.A)(e,tu);u=u||f();var b=this.getView(),w=this.state.context,_=w.accessors,k=w.components,S=w.getters,E=w.localizer,C=w.viewNames,x=k.toolbar||es,D=b.title(u,{localizer:E,length:p});return h.createElement("div",Object.assign({},c,{className:(0,d.default)(l,"rbc-calendar",y.rtl&&"rbc-rtl"),style:a}),n&&h.createElement(x,{date:u,view:t,views:C,label:D,onView:this.handleViewChange,onNavigate:this.handleNavigate,localizer:E}),h.createElement(b,Object.assign({},y,{events:r,backgroundEvents:i,date:u,getNow:f,length:p,localizer:E,getters:S,components:k,accessors:_,showMultiDayTimes:m,getDrilldownView:this.getDrilldownView,onNavigate:this.handleNavigate,onDrillDown:this.handleDrillDown,onSelectEvent:this.handleSelectEvent,onDoubleClickEvent:this.handleDoubleClickEvent,onKeyPressEvent:this.handleKeyPressEvent,onSelectSlot:this.handleSelectSlot,onShowMore:v,doShowMoreDrillDown:g,resourceGroupingLayout:s})))}}],[{key:"getDerivedStateFromProps",value:function(e){return{context:t.getContext(e)}}},{key:"getContext",value:function(e){var t,n,o,i=e.startAccessor,s=e.endAccessor,a=e.allDayAccessor,l=e.tooltipAccessor,c=e.titleAccessor,u=e.resourceAccessor,d=e.resourceIdAccessor,h=e.resourceTitleAccessor,f=e.eventIdAccessor,p=e.eventPropGetter,m=e.backgroundEventPropGetter,v=e.slotPropGetter,g=e.slotGroupPropGetter,y=e.dayPropGetter,b=e.view,w=e.views,_=e.localizer,k=e.culture,S=e.messages,E=e.components,C=void 0===E?{}:E,x=e.formats,D=td(w),A=(t=void 0===S?{}:S,(0,r.A)((0,r.A)({},el),t));return{viewNames:D,localizer:(n=void 0===x?{}:x,o=(0,r.A)((0,r.A)({},_.formats),n),(0,r.A)((0,r.A)({},_),{},{messages:A,startOfWeek:function(){return _.startOfWeek(k)},format:function(e,t){return _.format(e,o[t]||t,k)}})),getters:{eventProp:function(){return p&&p.apply(void 0,arguments)||{}},backgroundEventProp:function(){return m&&m.apply(void 0,arguments)||{}},slotProp:function(){return v&&v.apply(void 0,arguments)||{}},slotGroupProp:function(){return g&&g.apply(void 0,arguments)||{}},dayProp:function(){return y&&y.apply(void 0,arguments)||{}}},components:J()(C[b]||{},G()(C,D),{eventWrapper:Q,backgroundEventWrapper:Q,eventContainerWrapper:Q,dateCellWrapper:Q,weekWrapper:Q,timeSlotWrapper:Q,timeGutterWrapper:Q,timeIndicatorWrapper:Q}),accessors:{start:tl(i),end:tl(s),allDay:tl(a),tooltip:tl(l),title:tl(c),resource:tl(u),resourceId:tl(d),resourceTitle:tl(h),eventId:tl(f)}}}}])}(h.Component);th.defaultProps={events:[],backgroundEvents:[],elementProps:{},popup:!1,toolbar:!0,view:eo.MONTH,views:[eo.MONTH,eo.WEEK,eo.DAY,eo.AGENDA],step:30,length:30,allDayMaxRows:1/0,doShowMoreDrillDown:!0,drilldownView:eo.DAY,titleAccessor:"title",tooltipAccessor:"title",allDayAccessor:"allDay",startAccessor:"start",endAccessor:"end",resourceAccessor:"resourceId",resourceIdAccessor:"id",resourceTitleAccessor:"title",eventIdAccessor:"id",longPressThreshold:250,getNow:function(){return new Date},dayLayoutAlgorithm:"overlap"},(0,f.Pd)(th,{view:"onView",date:"onNavigate",selected:"onSelectEvent"})},244191:function(e,t){"use strict";t.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}},59828:function(e,t,n){"use strict";n.d(t,{Pd:function(){return r.A}}),n(514041),n(651367);var r=n(391755)},130468:function(e,t,n){"use strict";var r=n(514041).useLayoutEffect;n.d(t,{A:function(){return r}})},747682:function(e,t,n){"use strict";var r=n(928459),o=n(900230),i=n(695145),s=n(959849),a=n(67783),l=n(629325),c=n(71293),u=n(33792),d=n(819331),h=n(965229),f=n(405860),p=n(698
3664),m=n(238220);function v(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}var g=function(e){return"[object Object]"===Object.prototype.toString.call(e)};function y(e){var t=this;if(!(this instanceof y))return new y(e);u.A.call(this,{type:"object",default:function(){var e=this;if(this._nodes.length){var t={};return this._nodes.forEach(function(n){t[n]=e.fields[n].default?e.fields[n].default():void 0}),t}}}),this.fields=Object.create(null),this._sortErrors=(0,f.A)([]),this._nodes=[],this._excludedEdges=[],this.withMutation(function(){t.transform(function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(t){e=null}return this.isType(e)?e:null}),e&&t.shape(e)})}(0,p.A)(y,u.A,{_typeCheck:function(e){return g(e)||"function"==typeof e},_cast:function(e,t){var n=this;void 0===t&&(t={});var i=u.A.prototype._cast.call(this,e);if(void 0===i)return this.default();if(!this._typeCheck(i))return i;for(var s,a=this.fields,l=!0===this._option("stripUnknown",t),c=this._nodes.concat(Object.keys(i).filter(function(e){return -1===n._nodes.indexOf(e)})),d={},h=(0,r.A)({},t,{parent:d,__validating:t.__validating||!1}),f=!1,p=function(e){var t;if("u"<typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(t=function(e){if(e){if("string"==typeof e)return v(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return v(e,void 0)}}(e))){t&&(e=t);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(t=e[Symbol.iterator]()).next.bind(t)}(c);!(s=p()).done;){var m=s.value,g=a[m],y=(0,o.A)(i,m);if(g){var b=void 0,w=g._options&&g._options.strict;if(h.path=(t.path?t.path+".":"")+m,h.value=i[m],!0===(g=g.resolve(h))._strip){f=f||m in i;continue}void 0!==(b=t.__validating&&w?i[m]:g.cast(i[m],h))&&(d[m]=b)}else y&&!l&&(d[m]=i[m]);d[m]!==i[m]&&(f=!0)}return f?d:i},_validate:function(e,t,n){var o=this;void 0===t&&(t={});var i=[],s=t,a=s.sync,l=s.from,c=void 0===l?[]:l,d=s.originalValue,h=void 0===d?e:d,f=s.abortEarly,p=void 0===f?this._options.abortEarly:f,v=s.recursive,y=void 0===v?this._options.recursive:v;c=[{schema:this,value:h}].concat(c),t.__validating=!0,t.originalValue=h,t.from=c,u.A.prototype._validate.call(this,e,t,function(e,s){if(e){if(p)return void n(e);i.push(e),s=e.value}if(!y||!g(s))return void n(i[0]||null,s);h=h||s;var l=o._nodes.map(function(e){return function(n,i){var a=-1===e.indexOf(".")?(t.path?t.path+".":"")+e:(t.path||"")+'["'+e+'"]',l=o.fields[e];l&&l.validate?l.validate(s[e],(0,r.A)({},t,{path:a,from:c,strict:!0,parent:s,originalValue:h[e]}),i):i(null)}});(0,m.A)({sync:a,tests:l,value:s,errors:i,endEarly:p,sort:o._sortErrors,path:t.path},n)})},concat:function(e){var t=u.A.prototype.concat.call(this,e);return t._nodes=(0,h.A)(t.fields,t._excludedEdges),t},shape:function(e,t){void 0===t&&(t=[]);var n=this.clone(),o=(0,r.A)(n.fields,e);if(n.fields=o,n._sortErrors=(0,f.A)(Object.keys(o)),t.length){Array.isArray(t[0])||(t=[t]);var i=t.map(function(e){return e[0]+"-"+e[1]});n._excludedEdges=n._excludedEdges.concat(i)}return n._nodes=(0,h.A)(o,n._excludedEdges),n},from:function(e,t,n){var i=(0,c.getter)(e,!0);return this.transform(function(s){if(null==s)return s;var a=s;return(0,o.A)(s,e)&&(a=(0,r.A)({},s),n||delete a[e],a[t]=i(s)),a})},noUnknown:function(e,t){void 0===e&&(e=!0),void 0===t&&(t=d.Ik.noUnknown),"string"==typeof e&&(t=e,e=!0);var n=this.test({name:"noUnknown",exclusive:!0,message:t,test:function(t){if(null==t)return!0;var n,r,o=(n=this.schema,r=Object.keys(n.fields),Object.keys(t).filter(function(e){return -1===r.indexOf(e)}));return!e||0===o.length||this.createError({params:{unknown:o.join(", ")}})}});return n._options.stripUnknown=e,n},unknown:function(e,t){return void 0===e&&(e=!0),void 0===t&&(t=d.Ik.noUnknown),this.noUnknown(!e,t)},transformKeys:function(e){return this.transform(function(t){return t&&(0,a.A)(t,function(t,n){return e(n)})})},camelCase:function(){return this.transformKeys(s.A)},snakeCase:function(){return this.transformKeys(i.A)},constantCase:function(){return this.transformKeys(function(e){return(0,i.A)(e).toUpperCase()})},describe:function(){var e=u.A.prototype.describe.call(this);return e.fields=(0,l.A)(this.fields,function(e){return e.describe()}),e}}),n.d(t,{A:function(){return y}})},475248:function(e,t,n){"use strict";var r=n(698664),o=n(33792),i=n(819331),s=n(617641),a=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i,l=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,c=/^(?:[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,u=function(e){return(0,s.A)(e)||e===e.trim()};function d(){var e=this;if(!(this instanceof d))return new d;o.A.call(this,{type:"string"}),this.withMutation(function(){e.transform(function(e){return this.isType(e)?e:null!=e&&e.toString?e.toString():e})})}(0,r.A)(d,o.A,{_typeCheck:function(e){return e instanceof String&&(e=e.valueOf()),"string"==typeof e},_isPresent:function(e){return o.A.prototype._isPresent.call(this,e)&&e.length>0},length:function(e,t){return void 0===t&&(t=i.Yj.length),this.test({message:t,name:"length",exclusive:!0,params:{length:e},test:function(t){return(0,s.A)(t)||t.length===this.resolve(e)}})},min:function(e,t){return void 0===t&&(t=i.Yj.min),this.test({message:t,name:"min",exclusive:!0,params:{min:e},test:function(t){return(0,s.A)(t)||t.length>=this.resolve(e)}})},max:function(e,t){return void 0===t&&(t=i.Yj.max),this.test({name:"max",exclusive:!0,message:t,params:{max:e},test:function(t){return(0,s.A)(t)||t.length<=this.resolve(e)}})},matches:function(e,t){var n,r,o=!1;return t&&("object"==typeof t?(o=t.excludeEmptyString,n=t.message,r=t.name):n=t),this.test({name:r||"matches",message:n||i.Yj.matches,params:{regex:e},test:function(t){return(0,s.A)(t)||""===t&&o||-1!==t.search(e)}})},email:function(e){return void 0===e&&(e=i.Yj.email),this.matches(a,{name:"email",message:e,excludeEmptyString:!0})},url:function(e){return void 0===e&&(e=i.Yj.url),this.matches(l,{name:"url",message:e,excludeEmptyString:!0})},uuid:function(e){return void 0===e&&(e=i.Yj.uuid),this.matches(c,{name:"uuid",message:e,excludeEmptyString:!1})},ensure:function(){return this.default("").transform(function(e){return null===e?"":e})},trim:function(e){return void 0===e&&(e=i.Yj.trim),this.transform(function(e){return null!=e?e.trim():e}).test({message:e,name:"trim",test:u})},lowercase:function(e){return void 0===e&&(e=i.Yj.lowercase),this.transform(function(e){return(0,s.A)(e)?e:e.toLowerCase()}).test({message:e,name:"string_case",exclusive:!0,test:function(e){return(0,s.A)(e)||e===e.toLowerCase()}})},uppercase:function(e){return void 0===e&&(e=i.Yj.uppercase),this.transform(function(e){return(0,s.A)(e)?e:e.toUpperCase()}).test({message:e,name:"string_case",exclusive:!0,test:function(e){return(0,s.A)(e)||e===e.toUpperCase()}})}}),n.d(t,{A:function(){return d}})},933050:function(e,t,n){"use strict";var r,o=n(514041),i=n(980175),s=n(831085),a=n(501860);n(843144);var l=n(926584);function c(e){let t=o.useRef(void 0),n=o.useCallback(t=>{let n=e.map(e=>{if(null!=e){if("function"==typeof e){let n=e(t);return"function"==typeof n?n:()=>{e(null)}}return e.current=t,()=>{e.current=null}}});return()=>
vendor: 4,389 bytes, line 3
3{n.forEach(e=>null==e?void 0:e())}},e);return o.useMemo(()=>e.every(e=>null==e)?null:e=>{t.current&&(t.current(),t.current=void 0),null!=e&&(t.current=n(e))},e)}let u="active",d="selected",h={...r||(r=n.t(o,2))},f=!1,p=0,m=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+p++,v=h.useId||function(){let[e,t]=o.useState(()=>f?m():void 0);return(0,i.OS)(()=>{null==e&&t(m())},[]),o.useEffect(()=>{f=!0},[]),e},g=o.createContext(null),y=o.createContext(null),b=()=>{var e;return(null==(e=o.useContext(g))?void 0:e.id)||null};function w(e){return"data-floating-ui-"+e}function _(e){-1!==e.current&&(clearTimeout(e.current),e.current=-1)}let k=w("safe-polygon");function S(e,t,n){if(n&&!(0,i.Go)(n))return 0;if("number"==typeof e)return e;if("function"==typeof e){let n=e();return"number"==typeof n?n:null==n?void 0:n[t]}return null==e?void 0:e[t]}function E(e){return"function"==typeof e?e():e}function C(e,t){void 0===t&&(t={});let{open:n,onOpenChange:r,dataRef:s,events:l,elements:c}=e,{enabled:u=!0,delay:d=0,handleClose:h=null,mouseOnly:f=!1,restMs:p=0,move:m=!0}=t,v=o.useContext(y),g=b(),w=(0,i.SE)(h),C=(0,i.SE)(d),x=(0,i.SE)(n),D=(0,i.SE)(p),A=o.useRef(),M=o.useRef(-1),F=o.useRef(),R=o.useRef(-1),z=o.useRef(!0),O=o.useRef(!1),T=o.useRef(()=>{}),L=o.useRef(!1),j=(0,i.Jt)(()=>{var e;let t=null==(e=s.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t});o.useEffect(()=>{if(u)return l.on("openchange",e),()=>{l.off("openchange",e)};function e(e){let{open:t}=e;t||(_(M),_(R),z.current=!0,L.current=!1)}},[u,l]),o.useEffect(()=>{if(!u||!w.current||!n)return;function e(e){j()&&r(!1,e,"hover")}let t=(0,i.YE)(c.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}},[c.floating,n,r,u,w,j]);let I=o.useCallback(function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");let o=S(C.current,"close",A.current);o&&!F.current?(_(M),M.current=window.setTimeout(()=>r(!1,e,n),o)):t&&(_(M),r(!1,e,n))},[C,r]),P=(0,i.Jt)(()=>{T.current(),F.current=void 0}),N=(0,i.Jt)(()=>{if(O.current){let e=(0,i.YE)(c.floating).body;e.style.pointerEvents="",e.removeAttribute(k),O.current=!1}}),K=(0,i.Jt)(()=>!!s.current.openEvent&&["click","mousedown"].includes(s.current.openEvent.type));o.useEffect(()=>{if(u&&(0,a.vq)(c.domReference)){let r=c.domReference,i=c.floating;return n&&r.addEventListener("mouseleave",o),m&&r.addEventListener("mousemove",e,{once:!0}),r.addEventListener("mouseenter",e),r.addEventListener("mouseleave",t),i&&(i.addEventListener("mouseleave",o),i.addEventListener("mouseenter",l),i.addEventListener("mouseleave",d)),()=>{n&&r.removeEventListener("mouseleave",o),m&&r.removeEventListener("mousemove",e),r.removeEventListener("mouseenter",e),r.removeEventListener("mouseleave",t),i&&(i.removeEventListener("mouseleave",o),i.removeEventListener("mouseenter",l),i.removeEventListener("mouseleave",d))}}function e(e){if(_(M),z.current=!1,f&&!(0,i.Go)(A.current)||E(D.current)>0&&!S(C.current,"open"))return;let t=S(C.current,"open",A.current);t?M.current=window.setTimeout(()=>{x.current||r(!0,e,"hover")},t):n||r(!0,e,"hover")}function t(e){if(K())return void N();T.current();let t=(0,i.YE)(c.floating);if(_(R),L.current=!1,w.current&&s.current.floatingContext){n||_(M),F.current=w.current({...s.current.floatingContext,tree:v,x:e.clientX,y:e.clientY,onClose(){N(),P(),K()||I(e,!0,"safe-polygon")}});let r=F.current;t.addEventListener("mousemove",r),T.current=()=>{t.removeEventListener("mousemove",r)};return}"touch"===A.current&&(0,i.gR)(c.floating,e.relatedTarget)||I(e)}function o(e){K()||s.current.floatingContext&&(null==w.current||w.current({...s.current.floatingContext,tree:v,x:e.clientX,y:e.clientY,onClose(){N(),P(),K()||I(e)}})(e))}function l(){_(M)}function d(e){K()||I(e,!1)}},[c,u,e,f,m,I,P,N,r,n,x,v,C,w,s,K,D]),(0,i.OS)(()=>{var e,t;if(u&&n&&null!=(e=w.current)&&null!=(e=e.__options)&&e.blockPointerEvents&&j()){O.current=!0;let e=c.floating;if((0,a.vq)(c.domReference)&&e){let n=(0,i.YE)(c.floating).body;n.setAttribute(k,"");let r=c.domReference,o=null==v||null==(t=v.nodesRef.current.find(e=>e.id===g))||null==(t=t.context)?void 0:t.elements.floating;return o&&(o.style.pointerEvents=""),n.style.pointerEvents="none",r.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{n.style.pointerEvents="",r.style.pointerEvents="",e.style.pointerEvents=""}}}}
3,[u,n,g,c,v,w,j]),(0,i.OS)(()=>{n||(A.current=void 0,L.current=!1,P(),N())},[n,P,N]),o.useEffect(()=>()=>{P(),_(M),_(R),N()},[u,c.domReference,P,N]);let B=o.useMemo(()=>{function e(e){A.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e;function o(){z.current||x.current||r(!0,t,"hover")}f&&!(0,i.Go)(A.current)||n||0===E(D.current)||L.current&&e.movementX**2+e.movementY**2<2||(_(R),"touch"===A.current?o():(L.current=!0,R.current=window.setTimeout(o,E(D.current))))}}},[f,r,n,x,D]);return o.useMemo(()=>u?{reference:B}:{},[u,B])}let x=()=>{},D=o.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:x,setState:x,isInstantPhase:!1}),A=()=>o.useContext(D);function M(e){let{children:t,delay:n,timeoutMs:r=0}=e,[a,l]=o.useReducer((e,t)=>({...e,...t}),{delay:n,timeoutMs:r,initialDelay:n,currentId:null,isInstantPhase:!1}),c=o.useRef(null),u=o.useCallback(e=>{l({currentId:e})},[]);return(0,i.OS)(()=>{a.currentId?null===c.current?c.current=a.currentId:a.isInstantPhase||l({isInstantPhase:!0}):(a.isInstantPhase&&l({isInstantPhase:!1}),c.current=null)},[a.currentId,a.isInstantPhase]),(0,s.jsx)(D.Provider,{value:o.useMemo(()=>({...a,setState:l,setCurrentId:u}),[a,u]),children:t})}function F(e,t){void 0===t&&(t={});let{open:n,onOpenChange:r,floatingId:o}=e,{id:s,enabled:a=!0}=t,l=null!=s?s:o,c=A(),{currentId:u,setCurrentId:d,initialDelay:h,setState:f,timeoutMs:p}=c;return(0,i.OS)(()=>{!a||u&&(f({delay:{open:1,close:S(h,"close")}}),u!==l&&r(!1))},[a,l,r,f,u,h]),(0,i.OS)(()=>{function e(){r(!1),f({delay:h,currentId:null})}if(a&&u&&!n&&u===l){if(p){let t=window.setTimeout(e,p);return()=>{clearTimeout(t)}}e()}},[a,n,f,u,l,r,h,p]),(0,i.OS)(()=>{!a||d!==x&&n&&d(l)},[a,n,d,l]),c}function R(e,t){if(!e||!t)return!1;let n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&(0,a.Ng)(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}let z={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},O={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},T=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function L(e,t){void 0===t&&(t={});let{open:n,onOpenChange:r,elements:s,dataRef:l}=e,{enabled:c=!0,escapeKey:u=!0,outsidePress:d=!0,outsidePressEvent:h="pointerdown",referencePress:f=!1,referencePressEvent:p="pointerdown",ancestorScroll:m=!1,bubbles:v,capture:g}=t,b=o.useContext(y),_=(0,i.Jt)("function"==typeof d?d:()=>!1),k="function"==typeof d?_:d,S=o.useRef(!1),{escapeKey:E,outsidePress:C}=T(v),{escapeKey:x,outsidePress:D}=T(g),A=o.useRef(!1),M=(0,i.Jt)(e=>{var t;if(!n||!c||!u||"Escape"!==e.key||A.current)return;let o=null==(t=l.current.floatingContext)?void 0:t.nodeId,s=b?(0,i.CM)(b.nodesRef.current,o):[];if(!E&&(e.stopPropagation(),s.length>0)){let e=!0;if(s.forEach(t=>{var n;if(null!=(n=t.context)&&n.open&&!t.context.dataRef.current.__escapeKeyBubbles){e=!1;return}}),!e)return}r(!1,(0,i.O_)(e)?e.nativeEvent:e,"escape-key")}),F=(0,i.Jt)(e=>{var t;let n=()=>{var t;M(e),null==(t=(0,i.EW)(e))||t.removeEventListener("keydown",n)};null==(t=(0,i.EW)(e))||t.addEventListener("keydown",n)}),R=(0,i.Jt)(e=>{var t;let n=l.current.insideReactTree;l.current.insideReactTree=!1;let o=S.current;if(S.current=!1,"click"===h&&o||n||"function"==typeof k&&!k(e))return;let c=(0,i.EW)(e),u="["+w("inert")+"]",d=(0,i.YE)(s.floating).querySelectorAll(u),f=(0,a.vq)(c)?c:null;for(;f&&!(0,a.eu)(f);){let e=(0,a.$4)(f);if((0,a.eu)(e)||!(0,a.vq)(e))break;f=e}if(d.length&&(0,a.vq)(c)&&!(0,i.tZ)(c)&&!(0,i.gR)(c,s.floating)&&Array.from(d).every(e=>!(0,i.gR)(f,e)))return;if((0,a.sb)(c)&&I){let t=(0,a.eu)(c),n=(0,a.L9)(c),r=/auto|scroll/,o=t||r.test(n.overflowX),i=t||r.test(n.overflowY),s=o&&c.clientWidth>0&&c.scrollWidth>c.clientWidth,l=i&&c.clientHeight>0&&c.scrollHeight>c.clientHeight,u="rtl"===n.direction,d=l&&(u?e.offsetX<=c.offsetWidth-c.clientWidth:e.offsetX>c.clientWidth),h=s&&e.offsetY>c.clientHeight;if(d||h)return}let p=null==(t=l.current.floatingContext)?void 0:t.nodeId,m=b&&(0,i.CM)(b.nodesRef.current,p).some(t=>{var n;return(0,i.F2)(e,null==(n=t.context)?void 0:n.elements.floating)});if((0,i.F2)(e,s.floating)||(0,i.F2)(e,s.domReference)||m)return;let v=b?(0,i.CM)(b.nodesRef.current,p):[];if(v.length>0){let e=!0;if(v.forEach(t=>{var n;if(null!=(n=t.context)&&n.open&&!t.context.dataRef.current.__outsidePressBubbles){e=!1;return}}),!e)return}r(!1,e,"outside-press")}),L=(0,i.Jt)(e=>{var t;let n=()=>{var t;R(e),null==(t=(0,i.EW)(e))||t.removeEventListener(h,n)};null==(t=(0,i.EW)(e))||t.addEventListener(h,n)});o.useEffect(()=>{if(!n||!c)return;l.current.__escapeKeyBubbles=E,l.current.__outsidePressBubbles=C;let e=-1;function t(e){r(!1,e,"ancestor-scroll")}function o(){window.clearTimeout(e),A.current=!0}function d(){e=window.setTimeout(()=>{A.current=!1},5*!!(0,a.Tc)())}let f=(0,i.YE)(s.floating);u&&(f.addEventListener("keydown",x?F:M,x),f.addEventListener("compositionstart",o),f.addEventListener("compositionend",d)),k&&f.addEventListener(h,D?L:R,D);let p=[];return m&&((0,a.vq)(s.domReference)&&(p=(0,a.v9)(s.domReference)),(0,a.vq)(s.floating)&&(p=p.concat((0,a.v9)(s.floating))),!(0,a.vq)(s.reference)&&s.reference&&s.reference.contextElement&&(p=p.concat((0,a.v9)(s.reference.contextElement)))),(p=p.filter(e=>{var t;
vendor: 4,644 bytes, line 3
3return e!==(null==(t=f.defaultView)?void 0:t.visualViewport)})).forEach(e=>{e.addEventListener("scroll",t,{passive:!0})}),()=>{u&&(f.removeEventListener("keydown",x?F:M,x),f.removeEventListener("compositionstart",o),f.removeEventListener("compositionend",d)),k&&f.removeEventListener(h,D?L:R,D),p.forEach(e=>{e.removeEventListener("scroll",t)}),window.clearTimeout(e)}},[l,s,u,k,h,n,r,m,c,E,C,M,x,F,R,D,L]),o.useEffect(()=>{l.current.insideReactTree=!1},[l,k,h]);let j=o.useMemo(()=>({onKeyDown:M,...f&&{[z[p]]:e=>{r(!1,e.nativeEvent,"reference-press")},..."click"!==p&&{onClick(e){r(!1,e.nativeEvent,"reference-press")}}}}),[M,r,f,p]),I=o.useMemo(()=>({onKeyDown:M,onMouseDown(){S.current=!0},onMouseUp(){S.current=!0},[O[h]]:()=>{l.current.insideReactTree=!0}}),[M,h,l]);return o.useMemo(()=>c?{reference:j,floating:I}:{},[c,j,I])}function j(e){void 0===e&&(e={});let{nodeId:t}=e,n=function(e){let{open:t=!1,onOpenChange:n,elements:r}=e,s=v(),a=o.useRef({}),[l]=o.useState(()=>{let e;return e=new Map,{emit(t,n){var r;null==(r=e.get(t))||r.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;null==(r=e.get(t))||r.delete(n)}}}),c=null!=b(),[u,d]=o.useState(r.reference),h=(0,i.Jt)((e,t,r)=>{a.current.openEvent=e?t:void 0,l.emit("openchange",{open:e,event:t,reason:r,nested:c}),null==n||n(e,t,r)}),f=o.useMemo(()=>({setPositionReference:d}),[]),p=o.useMemo(()=>({reference:u||r.reference||null,floating:r.floating||null,domReference:r.reference}),[u,r.reference,r.floating]);return o.useMemo(()=>({dataRef:a,open:t,onOpenChange:h,elements:p,events:l,floatingId:s,refs:f}),[t,h,p,l,s,f])}({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,s=r.elements,[c,u]=o.useState(null),[d,h]=o.useState(null),f=(null==s?void 0:s.domReference)||c,p=o.useRef(null),m=o.useContext(y);(0,i.OS)(()=>{f&&(p.current=f)},[f]);let g=(0,l.we)({...e,elements:{...s,...d&&{reference:d}}}),w=o.useCallback(e=>{let t=(0,a.vq)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;h(t),g.refs.setReference(t)},[g.refs]),_=o.useCallback(e=>{((0,a.vq)(e)||null===e)&&(p.current=e,u(e)),((0,a.vq)(g.refs.reference.current)||null===g.refs.reference.current||null!==e&&!(0,a.vq)(e))&&g.refs.setReference(e)},[g.refs]),k=o.useMemo(()=>({...g.refs,setReference:_,setPositionReference:w,domReference:p}),[g.refs,_,w]),S=o.useMemo(()=>({...g.elements,domReference:f}),[g.elements,f]),E=o.useMemo(()=>({...g,...r,refs:k,elements:S,nodeId:t}),[g,k,S,t,r]);return(0,i.OS)(()=>{r.dataRef.current.floatingContext=E;let e=null==m?void 0:m.nodesRef.current.find(e=>e.id===t);e&&(e.context=E)}),o.useMemo(()=>({...g,context:E,refs:k,elements:S}),[g,k,S,E])}function I(){return(0,i.cX)()&&(0,i.nr)()}function P(e,t){void 0===t&&(t={});let{open:n,onOpenChange:r,events:s,dataRef:l,elements:c}=e,{enabled:u=!0,visibleOnly:d=!0}=t,h=o.useRef(!1),f=o.useRef(-1),p=o.useRef(!0);o.useEffect(()=>{if(!u)return;let e=(0,a.zk)(c.domReference);function t(){!n&&(0,a.sb)(c.domReference)&&c.domReference===(0,i.RS)((0,i.YE)(c.domReference))&&(h.current=!0)}function r(){p.current=!0}function o(){p.current=!1}return e.addEventListener("blur",t),I()&&(e.addEventListener("keydown",r,!0),e.addEventListener("pointerdown",o,!0)),()=>{e.removeEventListener("blur",t),I()&&(e.removeEventListener("keydown",r,!0),e.removeEventListener("pointerdown",o,!0))}},[c.domReference,n,u]),o.useEffect(()=>{if(u)return s.on("openchange",e),()=>{s.off("openchange",e)};function e(e){let{reason:t}=e;("reference-press"===t||"escape-key"===t)&&(h.current=!0)}},[s,u]),o.useEffect(()=>()=>{_(f)},[]);let m=o.useMemo(()=>({onMouseLeave(){h.current=!1},onFocus(e){if(h.current)return;let t=(0,i.EW)(e.nativeEvent);if(d&&(0,a.vq)(t)){if(I()&&!e.relatedTarget){if(!p.current&&!(0,i.$u)(t))return}else if(!(0,i.em)(t))return}r(!0,e.nativeEvent,"focus")},onBlur(e){h.current=!1;let t=e.relatedTarget,n=e.nativeEvent,o=(0,a.vq)(t)&&t.hasAttribute(w("focus-guard"))&&"outside"===t.getAttribute("data-type");f.current=window.setTimeout(()=>{var e;let s=(0,i.RS)(c.domReference?c.domReference.ownerDocument:document);!t&&s===c.domReference||(0,i.gR)(null==(e=l.current.floatingContext)?void 0:e.refs.floating.current,s)||(0,i.gR)(c.domReference,s)||o||r(!1,n,"focus")})}}),[l,c.domReference,r,d]);return o.useMemo(()=>u?{reference:m}:{},[u,m])}function N(e,t,n){let r=new Map,o="item"===n,i=e;if(o&&e){let{[u]:t,[d]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1,"data-floating-ui-focusable":""},...i,...t.map(t=>{let r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r}).concat(e).reduce((e,t)=>
3(t&&Object.entries(t).forEach(t=>{let[n,i]=t;if(!(o&&[u,d].includes(n)))if(0===n.indexOf("on")){if(r.has(n)||r.set(n,[]),"function"==typeof i){var s;null==(s=r.get(n))||s.push(i),e[n]=function(){for(var e,t=arguments.length,o=Array(t),i=0;i<t;i++)o[i]=arguments[i];return null==(e=r.get(n))?void 0:e.map(e=>e(...o)).find(e=>void 0!==e)}}}else e[n]=i}),e),{})}}function K(e){void 0===e&&(e=[]);let t=e.map(e=>null==e?void 0:e.reference),n=e.map(e=>null==e?void 0:e.floating),r=e.map(e=>null==e?void 0:e.item),i=o.useCallback(t=>N(t,e,"reference"),t),s=o.useCallback(t=>N(t,e,"floating"),n),a=o.useCallback(t=>N(t,e,"item"),r);return o.useMemo(()=>({getReferenceProps:i,getFloatingProps:s,getItemProps:a}),[i,s,a])}let B=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function H(e,t){var n,r;void 0===t&&(t={});let{open:s,elements:a,floatingId:l}=e,{enabled:c=!0,role:u="dialog"}=t,d=v(),h=(null==(n=a.domReference)?void 0:n.id)||d,f=o.useMemo(()=>{var e;return(null==(e=(0,i.nd)(a.floating))?void 0:e.id)||l},[a.floating,l]),p=null!=(r=B.get(u))?r:u,m=null!=b(),g=o.useMemo(()=>"tooltip"===p||"label"===u?{["aria-"+("label"===u?"labelledby":"describedby")]:s?f:void 0}:{"aria-expanded":s?"true":"false","aria-haspopup":"alertdialog"===p?"dialog":p,"aria-controls":s?f:void 0,..."listbox"===p&&{role:"combobox"},..."menu"===p&&{id:h},..."menu"===p&&m&&{role:"menuitem"},..."select"===u&&{"aria-autocomplete":"none"},..."combobox"===u&&{"aria-autocomplete":"list"}},[p,f,m,s,h,u]),y=o.useMemo(()=>{let e={id:f,...p&&{role:p}};return"tooltip"===p||"label"===u?e:{...e,..."menu"===p&&{"aria-labelledby":h}}},[p,f,h,u]),w=o.useCallback(e=>{let{active:t,selected:n}=e,r={role:"option",...t&&{id:f+"-fui-option"}};switch(u){case"select":case"combobox":return{...r,"aria-selected":n}}return{}},[f,u]);return o.useMemo(()=>c?{reference:g,floating:y,item:w}:{},[c,g,y,w])}function $(e,t){let[n,r]=e,o=!1,i=t.length;for(let e=0,s=i-1;e<i;s=e++){let[i,a]=t[e]||[0,0],[l,c]=t[s]||[0,0];a>=r!=c>=r&&n<=(l-i)*(r-a)/(c-a)+i&&(o=!o)}return o}function W(e){void 0===e&&(e={});let{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e,o={current:-1},i=!1,s=null,l=null,c="u">typeof performance?performance.now():0,u=e=>{let{x:n,y:u,placement:d,elements:h,onClose:f,nodeId:p,tree:m}=e;return function(e){function v(){_(o),f()}if(_(o),!h.domReference||!h.floating||null==d||null==n||null==u)return;let{clientX:g,clientY:y}=e,b=[g,y],w="composedPath"in e?e.composedPath()[0]:e.target,k="mouseleave"===e.type,S=R(h.floating,w),E=R(h.domReference,w),C=h.domReference.getBoundingClientRect(),x=h.floating.getBoundingClientRect(),D=d.split("-")[0],A=n>x.right-x.width/2,M=u>x.bottom-x.height/2,F=b[0]>=C.x&&b[0]<=C.x+C.width&&b[1]>=C.y&&b[1]<=C.y+C.height,z=x.width>C.width,O=x.height>C.height,T=(z?C:x).left,L=(z?C:x).right,j=(O?C:x).top,I=(O?C:x).bottom;if(S&&(i=!0,!k))return;if(E&&(i=!1),E&&!k){i=!0;return}if(k&&(0,a.vq)(e.relatedTarget)&&R(h.floating,e.relatedTarget)||m&&function e(t,n,r){return void 0===r&&(r=!0),t.filter(e=>{var t;return e.parentId===n&&(!r||(null==(t=e.context)?void 0:t.open))}).flatMap(n=>[n,...e(t,n.id,r)])}(m.nodesRef.current,p).length)return;if("top"===D&&u>=C.bottom-1||"bottom"===D&&u<=C.top+1||"left"===D&&n>=C.right-1||"right"===D&&n<=C.left+1)return v();let P=[];switch(D){case"top":P=[[T,C.top+1],[T,x.bottom-1],[L,x.bottom-1],[L,C.top+1]];break;case"bottom":P=[[T,x.top+1],[T,C.bottom-1],[L,C.bottom-1],[L,x.top+1]];break;case"left":P=[[x.right-1,I],[x.right-1,j],[C.left+1,j],[C.left+1,I]];break;case"right":P=[[C.right-1,I],[C.right-1,j],[x.left+1,j],[x.left+1,I]]}if(!$([g,y],P)){if(i&&!F)return v();if(!k&&r){let t=function(e,t){let n=performance.now(),r=n-c;if(null===s||null===l||0===r)return s=e,l=t,c=n,null;let o=e-s,i=t-l,a=Math.sqrt(o*o+i*i);return s=e,l=t,c=n,a/r}(e.clientX,e.clientY);if(null!==t&&t<.1)return v()}$([g,y],function(e){let[n,r]=e;switch(D){case"top":{let e=[[x.left,A||z?x.bottom-t:x.top],[x.right,A?z?x.bottom-t:x.top:x.bottom-t]];return[[z?n+t/2:A?n+4*t:n-4*t,r+t+1],[z?n-t/2:A?n+4*t:n-4*t,r+t+1],...e]}case"bottom":{let e=[[x.left,A||z?x.top+t:x.bottom],[x.right,A?z?x.top+t:x.bottom:x.top+t]];return[[z?n+t/2:A?n+4*t:n-4*t,r-t],[z?n-t/2:A?n+4*t:n-4*t,r-t],...e]}case"left":return[[M||O?x.right-t:x.left,x.top],[M?O?x.right-t:x.left:x.right-t,x.bottom],[n+t+1,O?r+t/2:M?r+4*t:r-4*t],[n+t+1,O?r-t/2:M?r+4*t:r-4*t]];case"right":{let e=[[M||O?x.left+t:x.right,x.top],[M?O?x.left+t:x.right:x.left+t,x.bottom]];return[[n-t,O?r+t/2:M?r+4*t:r-4*t],[n-t,O?r-t/2:M?r+4*t:r-4*t],...e]}}}([n,u]))?!i&&r&&(o.current=window.setTimeout(v,40)):v()}}};return u.__options={blockPointerEvents:n},u}n.d(t,{It:function(){return H},Mk:function(){return C},SV:function(){return c},T3:function(){return M},bv:function(){return K},ck:function(){return F},iB:function(){return W},iQ:function(){return P},s9:function(){return L},we:function(){return j}},{$x:A})},433:function(e,t,n){"use strict";var r=n(135825);function o(e){return e<=.03928?e/12.92:((e+.055)/1.055)**2.4}function i(e,t=.179){return!e.startsWith("var(")&&function(e){if(e.startsWith("oklch(")){let t;return(((t=e.match(/oklch\((.*?)%\s/))?parseFloat(t[1]):null)||0)/100}let{r:t,g:n,b:i}=(0,r.K)(e);return .2126*o(t/255)+.7152*o(n/255)+.0722*o(i/255)}(e)>t}n.d(t,{e:function(){return i}})},491502:function(e,t,n){"use strict";n(831085);let r=(0,n(514041).createContext)({locale:"en",firstDayOfWeek:1,weekendDays:[0,6],labelSeparator:"–",consistentWeeks:!1});n.d(t,{},{sg:r})},765621:function(e,t,n){"use strict";var r=(0,n(53240).A)("outline","alarm","IconAlarm",[["path",{d:"M12 13m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0",key:"svg-0"}],["path",{d:"M12 10l0 3l2 0",key:"svg-1"}],["path",{d:"M7 4l-2.75 2",key:"svg-2"}],["path",{d:"M17 4l2.75 2",key:"svg-3"}]]);n.d(t,{default:function(){return r}})},196624:function(e,t,n){"use strict";var r=(0,n(53240).A)("outline","bell-off","IconBellOff",[["path",{d:"M9.346 5.353c.21 -.129 .428 -.246 .654 -.353a2 2 0 1 1 4 0a7 7 0 0 1 4 6v3m-1 3h-13a4 4 0 0 0 2 -3v-3a6.996 6.996 0 0 1 1.273 -3.707",key:"svg-0"}],["path",{d:"M9 17v1a3 3 0 0 0 6 0v-1",key:"svg-1"}],["path",{d:"M3 3l18 18",key:"svg-2"}]]);n.d(t,{default:function(){return r}})},300881:function(e,t,n){"use strict";var r=(0,n(53240).A)("outline","bell-ringing","IconBellRinging",[["path",{d:"M10 5a2 2 0 0 1 4 0a7 7 0 0 1 4 6v3a4 4 0 0 0 2 3h-16a4 4 0 0 0 2 -3v-3a7 7 0 0 1 4 -6",key:"svg-0"}],["path",{d:"M9 17v1a3 3 0 0 0 6 0v-1",key:"svg-1"}],["path",{d:"M21 6.727a11.05 11.05 0 0 0 -2.794 -3.727",key:"svg-2"}],["path",{d:"M3 6.727a11.05 11.05 0 0 1 2.792 -3.727",key:"svg-3"}]]);n.d(t,{default:function(){return r}})},511466:function(e,t,n){"use strict";var r=(0,n(53240).A)("outline","check","IconCheck",[["path",{d:"M5 12l5 5l10 -10",key:"svg-0"}]]);n.d(t,{default:function(){return r}})},373530:function(e,t,n){"use strict";var r=(0,n(53240).A)("filled","circle-arrow-left-filled","IconCircleArrowLeftFilled",[["path",{d:"M12 2a10 10 0 0 1 .324 19.995l-.324 .005l-.324 -.005a10 10 0 0 1 .324 -19.995zm.707 5.293a1 1 0 0 0 -1.414 0l-4 4a1.048 1.048 0 0 0 -.083 .094l-.064 .092l-.052 .098l-.044 .11l-.03 .112l-.017 .126l-.003 .075l.004 .09l.007 .058l.025 .118l.035 .105l.054 .113l.043 .07l.071 .095l.054 .058l4 4l.094 .083a1 1 0 0 0 1.32 -1.497l-2.292 -2.293h5.585l.117 -.007a1 1 0 0 0 -.117 -1.993h-5.586l2.293 -2.293l.083 -.094a1 1 0 0 0 -.083 -1.32z",key:"svg-0"}]]);n.d(t,{default:function(){return r}})},50662:function(e,t,n){"use strict";var r=(0,n(53240).A)("outline","circle-check","IconCircleCheck",[["path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-0"}],["path",{d:"M9 12l2 2l4 -4",key:"svg-1"}]]);n.d(t,{default:function(){return r}})},887850:function(e,t,n){"use strict";var r=(0,n(53240).A)("outline","click","IconClick",[["path",{d:"M3 12l3 0",key:"svg-0"}
3],["path",{d:"M12 3l0 3",key:"svg-1"}],["path",{d:"M7.8 7.8l-2.2 -2.2",key:"svg-2"}],["path",{d:"M16.2 7.8l2.2 -2.2",key:"svg-3"}],["path",{d:"M7.8 16.2l-2.2 2.2",key:"svg-4"}],["path",{d:"M12 12l9 3l-4 2l-2 4l-3 -9",key:"svg-5"}]]);n.d(t,{default:function(){return r}})},504925:function(e,t,n){"use strict";var r=(0,n(53240).A)("outline","eye","IconEye",[["path",{d:"M10 12a2 2 0 1 0 4 0a2 2 0 0 0 -4 0",key:"svg-0"}],["path",{d:"M21 12c-2.4 4 -5.4 6 -9 6c-3.6 0 -6.6 -2 -9 -6c2.4 -4 5.4 -6 9 -6c3.6 0 6.6 2 9 6",key:"svg-1"}]]);n.d(t,{default:function(){return r}})},951476:function(e,t,n){"use strict";var r=(0,n(53240).A)("outline","file-plus","IconFilePlus",[["path",{d:"M14 3v4a1 1 0 0 0 1 1h4",key:"svg-0"}],["path",{d:"M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z",key:"svg-1"}],["path",{d:"M12 11l0 6",key:"svg-2"}],["path",{d:"M9 14l6 0",key:"svg-3"}]]);n.d(t,{default:function(){return r}})},956186:function(e,t,n){"use strict";var r=(0,n(53240).A)("outline","info-circle","IconInfoCircle",[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 9h.01",key:"svg-1"}],["path",{d:"M11 12h1v4h1",key:"svg-2"}]]);n.d(t,{default:function(){return r}})},626746:function(e,t,n){"use strict";var r=(0,n(53240).A)("outline","list","IconList",[["path",{d:"M9 6l11 0",key:"svg-0"}],["path",{d:"M9 12l11 0",key:"svg-1"}],["path",{d:"M9 18l11 0",key:"svg-2"}],["path",{d:"M5 6l0 .01",key:"svg-3"}],["path",{d:"M5 12l0 .01",key:"svg-4"}],["path",{d:"M5 18l0 .01",key:"svg-5"}]]);n.d(t,{default:function(){return r}})},112503:function(e,t,n){"use strict";var r=(0,n(53240).A)("outline","mail","IconMail",[["path",{d:"M3 7a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-10z",key:"svg-0"}],["path",{d:"M3 7l9 6l9 -6",key:"svg-1"}]]);n.d(t,{default:function(){return r}})},454292:function(e,t,n){"use strict";var r=(0,n(53240).A)("outline","mail-opened","IconMailOpened",[["path",{d:"M3 9l9 6l9 -6l-9 -6l-9 6",key:"svg-0"}],["path",{d:"M21 9v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-10",key:"svg-1"}],["path",{d:"M3 19l6 -6",key:"svg-2"}],["path",{d:"M15 13l6 6",key:"svg-3"}]]);n.d(t,{default:function(){return r}})},933102:function(e,t,n){"use strict";var r=(0,n(53240).A)("outline","photo","IconPhoto",[["path",{d:"M15 8h.01",key:"svg-0"}],["path",{d:"M3 6a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v12a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3v-12z",key:"svg-1"}],["path",{d:"M3 16l5 -5c.928 -.893 2.072 -.893 3 0l5 5",key:"svg-2"}],["path",{d:"M14 14l1 -1c.928 -.893 2.072 -.893 3 0l3 3",key:"svg-3"}]]);n.d(t,{default:function(){return r}})},608597:function(e,t,n){"use strict";var r=(0,n(53240).A)("outline","route-alt-left","IconRouteAltLeft",[["path",{d:"M8 3h-5v5",key:"svg-0"}],["path",{d:"M16 3h5v5",key:"svg-1"}],["path",{d:"M3 3l7.536 7.536a5 5 0 0 1 1.464 3.534v6.93",key:"svg-2"}],["path",{d:"M18 6.01v-.01",key:"svg-3"}],["path",{d:"M16 8.02v-.01",key:"svg-4"}],["path",{d:"M14 10v.01",key:"svg-5"}]]);n.d(t,{default:function(){return r}})},605310:function(e,t,n){"use strict";var r=(0,n(53240).A)("outline","search","IconSearch",[["path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0",key:"svg-0"}],["path",{d:"M21 21l-6 -6",key:"svg-1"}]]);n.d(t,{default:function(){return r}})},799424:function(e,t,n){"use strict";var r=(0,n(53240).A)("outline","send","IconSend",[["path",{d:"M10 14l11 -11",key:"svg-0"}],["path",{d:"M21 3l-6.5 18a.55 .55 0 0 1 -1 0l-3.5 -7l-7 -3.5a.55 .55 0 0 1 0 -1l18 -6.5",key:"svg-1"}]]);n.d(t,{default:function(){return r}})},503650:function(e,t,n){"use strict";var r=(0,n(53240).A)("outline","x","IconX",[["path",{d:"M18 6l-12 12",key:"svg-0"}],["path",{d:"M6 6l12 12",key:"svg-1"}]]);n.d(t,{default:function(){return r}})},684396:function(e,t,n){"use strict";var r=n(179423),o=n(881570);let i="u">typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),s="u">typeof navigator&&/Win/.test(navigator.platform);function a(e,t,n=!0){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),n&&t.shiftKey&&(e="Shift-"+e),e}function l(e){let t;return new o.k_({props:{handleKeyDown:(t=function(e){let t=Object.create(null);for(let n in e)t[function(e){let t,n,r,o,s=e.split(/-(?!$)/),a=s[s.length-1];"Space"==a&&(a=" ");for(let e=0;e<s.length-1;e++){let a=s[e];if(/^(cmd|meta|m)$/i.test(a))o=!0;else if(/^a(lt)?$/i.test(a))t=!0;else if(/^(c|ctrl|control)$/i.test(a))n=!0;else if(/^s(hift)?$/i.test(a))r=!0;else if(/^mod$/i.test(a))i?o=!0:n=!0;else throw Error("Unrecognized modifier name: "+a)}return t&&(a="Alt-"+a),n&&(a="Ctrl-"+a),o&&(a="Meta-"+a),r&&(a="Shift-"+a),a}(n)]=e[n];return t}(e),function(e,n){let o=(0,r.xT)(n),i,l=t[a(o,n)];if(l&&l(e.state,e.dispatch,e))return!0;
3if(1==o.length&&" "!=o){if(n.shiftKey){let r=t[a(o,n,!1)];if(r&&r(e.state,e.dispatch,e))return!0}if((n.altKey||n.metaKey||n.ctrlKey)&&!(s&&n.ctrlKey&&n.altKey)&&(i=r.E3[n.keyCode])&&i!=o){let r=t[a(i,n)];if(r&&r(e.state,e.dispatch,e))return!0}}return!1})}})}n.d(t,{w:function(){return l}})},67075:function(e,t,n){"use strict";var r=n(311329),o=n(120258),i=n(881570);function s(e,t=null){return function(n,i){let{$from:s,$to:a}=n.selection,l=s.blockRange(a);if(!l)return!1;let c=i?n.tr:null;return!!function(e,t,n,i=null){let s=!1,a=t,l=t.$from.doc;if(t.depth>=2&&t.$from.node(t.depth-1).type.compatibleContent(n)&&0==t.startIndex){if(0==t.$from.index(t.depth-1))return!1;let e=l.resolve(t.start-2);a=new o.u$(e,e,t.depth),t.endIndex<t.parent.childCount&&(t=new o.u$(t.$from,l.resolve(t.$to.end(t.depth)),t.depth)),s=!0}let c=(0,r.oM)(a,n,i,t);return!!c&&(e&&function(e,t,n,i,s){let a=o.FK.empty;for(let e=n.length-1;e>=0;e--)a=o.FK.from(n[e].type.create(n[e].attrs,a));e.step(new r.Wg(t.start-2*!!i,t.end,t.start,t.end,new o.Ji(a,0,0),n.length,!0));let l=0;for(let e=0;e<n.length;e++)n[e].type==s&&(l=e+1);let c=n.length-l,u=t.start+n.length-2*!!i,d=t.parent;for(let n=t.startIndex,o=t.endIndex,i=!0;n<o;n++,i=!1)!i&&(0,r.zy)(e.doc,u,c)&&(e.split(u,c),u+=2*c),u+=d.child(n).nodeSize}(e,t,c,s,n),!0)}(c,l,e,t)&&(i&&i(c.scrollIntoView()),!0)}}function a(e,t){return function(n,s){let{$from:a,$to:l,node:c}=n.selection;if(c&&c.isBlock||a.depth<2||!a.sameParent(l))return!1;let u=a.node(-1);if(u.type!=e)return!1;if(0==a.parent.content.size&&a.node(-1).childCount==a.indexAfter(-1)){if(3==a.depth||a.node(-3).type!=e||a.index(-2)!=a.node(-2).childCount-1)return!1;if(s){let t=o.FK.empty,r=a.index(-1)?1:a.index(-2)?2:3;for(let e=a.depth-r;e>=a.depth-3;e--)t=o.FK.from(a.node(e).copy(t));let l=a.indexAfter(-1)<a.node(-2).childCount?1:a.indexAfter(-2)<a.node(-3).childCount?2:3;t=t.append(o.FK.from(e.createAndFill()));let c=a.before(a.depth-(r-1)),u=n.tr.replace(c,a.after(-l),new o.Ji(t,4-r,0)),d=-1;u.doc.nodesBetween(c,u.doc.content.size,(e,t)=>{if(d>-1)return!1;e.isTextblock&&0==e.content.size&&(d=t+1)}),d>-1&&u.setSelection(i.LN.near(u.doc.resolve(d))),s(u.scrollIntoView())}return!0}let d=l.pos==a.end()?u.contentMatchAt(0).defaultType:null,h=n.tr.delete(a.pos,l.pos),f=d?[t?{type:e,attrs:t}:null,{type:d}]:void 0;return!!(0,r.zy)(h.doc,a.pos,2,f)&&(s&&s(h.split(a.pos,2,f).scrollIntoView()),!0)}}function l(e){return function(t,n){let{$from:i,$to:s}=t.selection,a=i.blockRange(s,t=>t.childCount>0&&t.firstChild.type==e);return!!a&&(!n||(i.node(a.depth-1).type==e?function(e,t,n,i){let s=e.tr,a=i.end,l=i.$to.end(i.depth);a<l&&(s.step(new r.Wg(a-1,l,a,l,new o.Ji(o.FK.from(n.create(null,i.parent.copy())),1,0),1,!0)),i=new o.u$(s.doc.resolve(i.$from.pos),s.doc.resolve(l),i.depth));let c=(0,r.jP)(i);if(null==c)return!1;s.lift(i,c);let u=s.doc.resolve(s.mapping.map(a,-1)-1);return(0,r.n9)(s.doc,u.pos)&&u.nodeBefore.type==u.nodeAfter.type&&s.join(u.pos),t(s.scrollIntoView()),!0}(t,n,e,a):function(e,t,n){let i=e.tr,s=n.parent;for(let e=n.end,t=n.endIndex-1,r=n.startIndex;t>r;t--)e-=s.child(t).nodeSize,i.delete(e-1,e+1);let a=i.doc.resolve(n.start),l=a.nodeAfter;if(i.mapping.map(n.end)!=n.start+a.nodeAfter.nodeSize)return!1;let c=0==n.startIndex,u=n.endIndex==s.childCount,d=a.node(-1),h=a.index(-1);if(!d.canReplace(h+ +!c,h+1,l.content.append(u?o.FK.empty:o.FK.from(s))))return!1;let f=a.pos,p=f+l.nodeSize;return i.step(new r.Wg(f-!!c,p+ +!!u,f+1,p-1,new o.Ji((c?o.FK.empty:o.FK.from(s.copy(o.FK.empty))).append(u?o.FK.empty:o.FK.from(s.copy(o.FK.empty))),+!c,+!u),+!c)),t(i.scrollIntoView()),!0}(t,n,a)))}}n.d(t,{Sd:function(){return s},T2:function(){return l},wn:function(){return a}})},311329:function(e,t,n){"use strict";var r=n(120258);class o{constructor(e,t,n){this.pos=e,this.delInfo=t,this.recover=n}get deleted(){return(8&this.delInfo)>0}get deletedBefore(){return(5&this.delInfo)>0}get deletedAfter(){return(6&this.delInfo)>0}get deletedAcross(){return(4&this.delInfo)>0}}class i{constructor(e,t=!1){if(this.ranges=e,this.inverted=t,!e.length&&i.empty)return i.empty}recover(e){let t=0,n=65535&e;if(!this.inverted)for(let e=0;e<n;e++)t+=this.ranges[3*e+2]-this.ranges[3*e+1];return this.ranges[3*n]+t+(e-(65535&e))/65536}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,n){let r=0,i=this.inverted?2:1,s=this.inverted?1:2;
3for(let a=0;a<this.ranges.length;a+=3){let l=this.ranges[a]-(this.inverted?r:0);if(l>e)break;let c=this.ranges[a+i],u=this.ranges[a+s],d=l+c;if(e<=d){let i=c?e==l?-1:e==d?1:t:t,s=l+r+(i<0?0:u);if(n)return s;let h=e==(t<0?l:d)?null:a/3+(e-l)*65536,f=e==l?2:e==d?1:4;return(t<0?e!=l:e!=d)&&(f|=8),new o(s,f,h)}r+=u-c}return n?e+r:new o(e+r,0,null)}touches(e,t){let n=0,r=65535&t,o=this.inverted?2:1,i=this.inverted?1:2;for(let t=0;t<this.ranges.length;t+=3){let s=this.ranges[t]-(this.inverted?n:0);if(s>e)break;let a=this.ranges[t+o];if(e<=s+a&&t==3*r)return!0;n+=this.ranges[t+i]-a}return!1}forEach(e){let t=this.inverted?2:1,n=this.inverted?1:2;for(let r=0,o=0;r<this.ranges.length;r+=3){let i=this.ranges[r],s=i-(this.inverted?o:0),a=i+(this.inverted?0:o),l=this.ranges[r+t],c=this.ranges[r+n];e(s,s+l,a,a+c),o+=c-l}}invert(){return new i(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return 0==e?i.empty:new i(e<0?[0,-e,0]:[0,0,e])}}i.empty=new i([]);class s{constructor(e,t,n=0,r=e?e.length:0){this.mirror=t,this.from=n,this.to=r,this._maps=e||[],this.ownData=!(e||t)}get maps(){return this._maps}slice(e=0,t=this.maps.length){return new s(this._maps,this.mirror,e,t)}appendMap(e,t){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(e),null!=t&&this.setMirror(this._maps.length-1,t)}appendMapping(e){for(let t=0,n=this._maps.length;t<e._maps.length;t++){let r=e.getMirror(t);this.appendMap(e._maps[t],null!=r&&r<t?n+r:void 0)}}getMirror(e){if(this.mirror){for(let t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}}setMirror(e,t){this.mirror||(this.mirror=[]),this.mirror.push(e,t)}appendMappingInverted(e){for(let t=e.maps.length-1,n=this._maps.length+e._maps.length;t>=0;t--){let r=e.getMirror(t);this.appendMap(e._maps[t].invert(),null!=r&&r>t?n-r-1:void 0)}}invert(){let e=new s;return e.appendMappingInverted(this),e}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let n=this.from;n<this.to;n++)e=this._maps[n].map(e,t);return e}mapResult(e,t=1){return this._map(e,t,!1)}_map(e,t,n){let r=0;for(let n=this.from;n<this.to;n++){let o=this._maps[n].mapResult(e,t);if(null!=o.recover){let t=this.getMirror(n);if(null!=t&&t>n&&t<this.to){n=t,e=this._maps[t].recover(o.recover);continue}}r|=o.delInfo,e=o.pos}return n?e:new o(e,r,null)}}let a=Object.create(null);class l{getMap(){return i.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw RangeError("Invalid input for Step.fromJSON");let n=a[t.stepType];if(!n)throw RangeError(`No step type ${t.stepType} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in a)throw RangeError("Duplicate use of step JSON ID "+e);return a[e]=t,t.prototype.jsonID=e,t}}class c{constructor(e,t){this.doc=e,this.failed=t}static ok(e){return new c(e,null)}static fail(e){return new c(null,e)}static fromReplace(e,t,n,o){try{return c.ok(e.replace(t,n,o))}catch(e){if(e instanceof r.vI)return c.fail(e.message);throw e}}}function u(e,t,n){let o=[];for(let r=0;r<e.childCount;r++){let i=e.child(r);i.content.size&&(i=i.copy(u(i.content,t,i))),i.isInline&&(i=t(i,n,r)),o.push(i)}return r.FK.fromArray(o)}class d extends l{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=e.resolve(this.from),o=n.node(n.sharedDepth(this.to)),i=new r.Ji(u(t.content,(e,t)=>e.isAtom&&t.type.allowsMarkType(this.mark.type)?e.mark(this.mark.addToSet(e.marks)):e,o),t.openStart,t.openEnd);return c.fromReplace(e,this.from,this.to,i)}invert(){return new h(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deleted&&n.deleted||t.pos>=n.pos?null:new d(t.pos,n.pos,this.mark)}merge(e){return e instanceof d&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new d(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for AddMarkStep.fromJSON");return new d(t.from,t.to,e.markFromJSON(t.mark))}}l.jsonID("addMark",d);class h extends l{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}
3apply(e){let t=e.slice(this.from,this.to),n=new r.Ji(u(t.content,e=>e.mark(this.mark.removeFromSet(e.marks)),e),t.openStart,t.openEnd);return c.fromReplace(e,this.from,this.to,n)}invert(){return new d(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deleted&&n.deleted||t.pos>=n.pos?null:new h(t.pos,n.pos,this.mark)}merge(e){return e instanceof h&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new h(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for RemoveMarkStep.fromJSON");return new h(t.from,t.to,e.markFromJSON(t.mark))}}l.jsonID("removeMark",h);class f extends l{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return c.fail("No node at mark step's position");let n=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return c.fromReplace(e,this.pos,this.pos+1,new r.Ji(r.FK.from(n),0,+!t.isLeaf))}invert(e){let t=e.nodeAt(this.pos);if(t){let e=this.mark.addToSet(t.marks);if(e.length==t.marks.length){for(let n=0;n<t.marks.length;n++)if(!t.marks[n].isInSet(e))return new f(this.pos,t.marks[n]);return new f(this.pos,this.mark)}}return new p(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new f(t.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if("number"!=typeof t.pos)throw RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new f(t.pos,e.markFromJSON(t.mark))}}l.jsonID("addNodeMark",f);class p extends l{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return c.fail("No node at mark step's position");let n=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return c.fromReplace(e,this.pos,this.pos+1,new r.Ji(r.FK.from(n),0,+!t.isLeaf))}invert(e){let t=e.nodeAt(this.pos);return t&&this.mark.isInSet(t.marks)?new f(this.pos,this.mark):this}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new p(t.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if("number"!=typeof t.pos)throw RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new p(t.pos,e.markFromJSON(t.mark))}}l.jsonID("removeNodeMark",p);class m extends l{constructor(e,t,n,r=!1){super(),this.from=e,this.to=t,this.slice=n,this.structure=r}apply(e){return this.structure&&g(e,this.from,this.to)?c.fail("Structure replace would overwrite content"):c.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new i([this.from,this.to-this.from,this.slice.size])}invert(e){return new m(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let t=e.mapResult(this.to,-1),n=this.from==this.to&&m.MAP_BIAS<0?t:e.mapResult(this.from,1);return n.deletedAcross&&t.deletedAcross?null:new m(n.pos,Math.max(n.pos,t.pos),this.slice,this.structure)}merge(e){if(!(e instanceof m)||e.structure||this.structure)return null;if(this.from+this.slice.size!=e.from||this.slice.openEnd||e.slice.openStart)if(e.to!=this.from||this.slice.openStart||e.slice.openEnd)return null;else{let t=this.slice.size+e.slice.size==0?r.Ji.empty:new r.Ji(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new m(e.from,this.to,t,this.structure)}{let t=this.slice.size+e.slice.size==0?r.Ji.empty:new r.Ji(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new m(this.from,this.to+(e.to-e.from),t,this.structure)}}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw RangeError("Invalid input for ReplaceStep.fromJSON");return new m(t.from,t.to,r.Ji.fromJSON(e,t.slice),!!t.structure)}}m.MAP_BIAS=1,l.jsonID("replace",m);class v extends l{constructor(e,t,n,r,o,i,s=!1){super(),this.from=e,this.to=t,this.gapFrom=n,this.gapTo=r,this.slice=o,this.insert=i,this.structure=s}apply(e){if(this.structure&&(g(e,this.from,this.gapFrom)||g(e,this.gapTo,this.to)))return c.fail("Structure gap-replace would overwrite content");let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return c.fail("Gap is not a flat range");let n=this.slice.insertAt(this.insert,t.content);return n?c.fromReplace(e,this.from,this.to,n):c.fail("Content does not fit in gap")}getMap(){return new i([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let t=this.gapTo-this.gapFrom;return new v(this.from,this.from+this.slice.size+t,this.from+this.insert,this.from+this.insert+t,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1),r=this.from==this.gapFrom?t.pos:e.map(this.gapFrom,-1),o=this.to==this.gapTo?n.pos:e.map(this.gapTo,1);return t.deletedAcross&&n.deletedAcross||r<t.pos||o>n.pos?null:new v(t.pos,n.pos,r,o,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to||"number"!=typeof t.gapFrom||"number"!=typeof t.gapTo||"number"!=typeof t.insert)throw RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new v(t.from,t.to,t.gapFrom,t.gapTo,r.Ji.fromJSON(e,t.slice),t.insert,!!t.structure)}}function g(e,t,n){let r=e.resolve(t),o=n-t,i=r.depth;for(;o>0&&i>0&&r.indexAfter(i)==r.node(i).childCount;)i--,o--;if(o>0){let e=r.node(i).maybeChild(r.indexAfter(i));for(;o>0;){if(!e||e.isLeaf)return!0;e=e.firstChild,o--}}return!1}function y(e,t,n,o=n.contentMatch,i=!0){let s=e.doc.nodeAt(t),a=[],l=t+1;for(let t=0;t<s.childCount;
3t++){let c=s.child(t),u=l+c.nodeSize,d=o.matchType(c.type);if(d){o=d;for(let t=0;t<c.marks.length;t++)n.allowsMarkType(c.marks[t].type)||e.step(new h(l,u,c.marks[t]));if(i&&c.isText&&"pre"!=n.whitespace){let e,t=/\r?\n|\r/g,o;for(;e=t.exec(c.text);)o||(o=new r.Ji(r.FK.from(n.schema.text(" ",n.allowedMarks(c.marks))),0,0)),a.push(new m(l+e.index,l+e.index+e[0].length,o))}}else a.push(new m(l,u,r.Ji.empty));l=u}if(!o.validEnd){let t=o.fillBefore(r.FK.empty,!0);e.replace(l,l,new r.Ji(t,0,0))}for(let t=a.length-1;t>=0;t--)e.step(a[t])}function b(e){let t=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let n=e.depth,r=0,o=0;;--n){let i=e.$from.node(n),s=e.$from.index(n)+r,a=e.$to.indexAfter(n)-o;if(n<e.depth&&i.canReplace(s,a,t))return n;if(0==n||i.type.spec.isolating||!((0==s||i.canReplace(s,i.childCount))&&(a==i.childCount||i.canReplace(0,a))))break;s&&(r=1),a<i.childCount&&(o=1)}return null}function w(e,t,n=null,r=e){let o=function(e,t){let{parent:n,startIndex:r,endIndex:o}=e,i=n.contentMatchAt(r).findWrapping(t);if(!i)return null;let s=i.length?i[0]:t;return n.canReplaceWith(r,o,s)?i:null}(e,t),i=o&&function(e,t){let{parent:n,startIndex:r,endIndex:o}=e,i=n.child(r),s=t.contentMatch.findWrapping(i.type);if(!s)return null;let a=(s.length?s[s.length-1]:t).contentMatch;for(let e=r;a&&e<o;e++)a=a.matchType(n.child(e).type);return a&&a.validEnd?s:null}(r,t);return i?o.map(_).concat({type:t,attrs:n}).concat(i.map(_)):null}function _(e){return{type:e,attrs:null}}function k(e,t,n,r){t.forEach((o,i)=>{if(o.isText){let s,a=/\r?\n|\r/g;for(;s=a.exec(o.text);){let o=e.mapping.slice(r).map(n+1+i+s.index);e.replaceWith(o,o+1,t.type.schema.linebreakReplacement.create())}}})}function S(e,t,n,r){t.forEach((o,i)=>{if(o.type==o.type.schema.linebreakReplacement){let o=e.mapping.slice(r).map(n+1+i);e.replaceWith(o,o+1,t.type.schema.text("\n"))}})}function E(e,t,n=1,r){let o=e.resolve(t),i=o.depth-n,s=r&&r[r.length-1]||o.parent;if(i<0||o.parent.type.spec.isolating||!o.parent.canReplace(o.index(),o.parent.childCount)||!s.type.validContent(o.parent.content.cutByIndex(o.index(),o.parent.childCount)))return!1;for(let e=o.depth-1,t=n-2;e>i;e--,t--){let n=o.node(e),i=o.index(e);if(n.type.spec.isolating)return!1;let s=n.content.cutByIndex(i,n.childCount),a=r&&r[t+1];a&&(s=s.replaceChild(0,a.type.create(a.attrs)));let l=r&&r[t]||n;if(!n.canReplace(i+1,n.childCount)||!l.type.validContent(s))return!1}let a=o.indexAfter(i),l=r&&r[0];return o.node(i).canReplaceWith(a,a,l?l.type:o.node(i+1).type)}function C(e,t){var n,r;let o=e.resolve(t),i=o.index();return n=o.nodeBefore,r=o.nodeAfter,!!(n&&r&&!n.isLeaf&&function(e,t){t.content.size||e.type.compatibleContent(t.type);let n=e.contentMatchAt(e.childCount),{linebreakReplacement:r}=e.type.schema;for(let o=0;o<t.childCount;o++){let i=t.child(o),s=i.type==r?e.type.schema.nodes.text:i.type;if(!(n=n.matchType(s))||!e.type.allowsMarks(i.marks))return!1}return n.validEnd}(n,r))&&o.parent.canReplace(i,i+1)}function x(e,t,n){let r=e.resolve(t);if(!n.content.size)return t;let o=n.content;for(let e=0;e<n.openStart;e++)o=o.firstChild.content;for(let e=1;e<=(0==n.openStart&&n.size?2:1);e++)for(let t=r.depth;t>=0;t--){let n=t==r.depth?0:r.pos<=(r.start(t+1)+r.end(t+1))/2?-1:1,i=r.index(t)+ +(n>0),s=r.node(t),a=!1;if(1==e)a=s.canReplace(i,i,o);else{let e=s.contentMatchAt(i).findWrapping(o.firstChild.type);a=e&&s.canReplaceWith(i,i,e[0])}if(a)return 0==n?r.pos:n<0?r.before(t+1):r.after(t+1)}return null}function D(e,t,n=t,o=r.Ji.empty){if(t==n&&!o.size)return null;let i=e.resolve(t),s=e.resolve(n);return A(i,s,o)?new m(t,n,o):new M(i,s,o).fit()}function A(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}l.jsonID("replaceAround",v);class M{constructor(e,t,n){this.$from=e,this.$to=t,this.unplaced=n,this.frontier=[],this.placed=r.FK.empty;for(let t=0;t<=e.depth;t++){let n=e.node(t);this.frontier.push({type:n.type,match:n.contentMatchAt(e.indexAfter(t))})}for(let t=e.depth;t>0;t--)this.placed=r.FK.from(e.node(t).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),t=this.placed.size-this.depth-this.$from.depth,n=this.$from,o=this.close(e<0?this.$to:n.doc.resolve(e));if(!o)return null;let i=this.placed,s=n.depth,a=o.depth;for(;s&&a&&1==i.childCount;)i=i.firstChild.content,s--,a--;let l=new r.Ji(i,s,a);return e>-1?new v(n.pos,e,this.$to.pos,this.$to.end(),l,t):l.size||n.pos!=this.$to.pos?new m(n.pos,o.pos,l):null}findFittable(){let e=this.unplaced.openStart;for(let t=this.unplaced.content,n=0,r=this.unplaced.openEnd;n<e;n++){let o=t.firstChild;if(t.childCount>1&&(r=0),o.type.spec.isolating&&r<=n){e=n;break}t=o.content}for(let t=1;t<=2;t++)for(let n=1==t?e:this.unplaced.openStart;n>=0;n--){let e=null,o=(n?(e=z(this.unplaced.content,n-1).firstChild).content:this.unplaced.content).firstChild;for(let i=this.depth;i>=0;i--){let{type:s,match:a}=this.frontier[i],l,c=null;if(1==t&&(o?a.matchType(o.type)||(c=a.fillBefore(r.FK.from(o),!1)):e&&s.compatibleContent(e.type)))return{sliceDepth:n,frontierDepth:i,parent:e,inject:c};if(2==t&&o&&(l=a.findWrapping(o.type)))return{sliceDepth:n,frontierDepth:i,parent:e,wrap:l};
3if(e&&a.matchType(e.type))break}}}openMore(){let{content:e,openStart:t,openEnd:n}=this.unplaced;return!(T(e,-1)<=t)&&(this.unplaced.size>1&&T(e,1)>n&&n++,this.unplaced=new r.Ji(e,t+1,n),!0)}dropNode(){let{content:e,openStart:t,openEnd:n}=this.unplaced,o=z(e,t);if(o.childCount<=1&&t>0){let i=e.size-t<=t+o.size;this.unplaced=new r.Ji(F(e,t-1,1),t-1,i?t-1:n)}else this.unplaced=new r.Ji(F(e,t,1),t,n)}placeNodes({sliceDepth:e,frontierDepth:t,parent:n,inject:o,wrap:i}){for(;this.depth>t;)this.closeFrontierNode();if(i)for(let e=0;e<i.length;e++)this.openFrontierNode(i[e]);let s=this.unplaced,a=n?n.content:s.content,l=s.openStart-e,c=0,u=[],{match:d,type:h}=this.frontier[t];if(o){for(let e=0;e<o.childCount;e++)u.push(o.child(e));d=d.matchFragment(o)}let f=a.size+e-(s.content.size-s.openEnd);for(;c<a.childCount;){let e=a.child(c),t=d.matchType(e.type);if(!t)break;(++c>1||0==l||e.content.size)&&(d=t,u.push(function e(t,n,o){if(n<=0)return t;let i=t.content;return n>1&&(i=i.replaceChild(0,e(i.firstChild,n-1,1==i.childCount?o-1:0))),n>0&&(i=t.type.contentMatch.fillBefore(i).append(i),o<=0&&(i=i.append(t.type.contentMatch.matchFragment(i).fillBefore(r.FK.empty,!0)))),t.copy(i)}(e.mark(h.allowedMarks(e.marks)),1==c?l:0,c==a.childCount?f:-1)))}let p=c==a.childCount;p||(f=-1),this.placed=R(this.placed,t,r.FK.from(u)),this.frontier[t].match=d,p&&f<0&&n&&n.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let e=0,t=a;e<f;e++){let e=t.lastChild;this.frontier.push({type:e.type,match:e.contentMatchAt(e.childCount)}),t=e.content}this.unplaced=p?0==e?r.Ji.empty:new r.Ji(F(s.content,e-1,1),e-1,f<0?s.openEnd:e-1):new r.Ji(F(s.content,e,c),s.openStart,s.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return -1;let e=this.frontier[this.depth],t;if(!e.type.isTextblock||!O(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(t=this.findCloseLevel(this.$to))&&t.depth==this.depth)return -1;let{depth:n}=this.$to,r=this.$to.after(n);for(;n>1&&r==this.$to.end(--n);)++r;return r}findCloseLevel(e){t:for(let t=Math.min(this.depth,e.depth);t>=0;t--){let{match:n,type:r}=this.frontier[t],o=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),i=O(e,t,r,n,o);if(i){for(let n=t-1;n>=0;n--){let{match:t,type:r}=this.frontier[n],o=O(e,n,r,t,!0);if(!o||o.childCount)continue t}return{depth:t,fit:i,move:o?e.doc.resolve(e.after(t+1)):e}}}}close(e){let t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=R(this.placed,t.depth,t.fit)),e=t.move;for(let n=t.depth+1;n<=e.depth;n++){let t=e.node(n),r=t.type.contentMatch.fillBefore(t.content,!0,e.index(n));this.openFrontierNode(t.type,t.attrs,r)}return e}openFrontierNode(e,t=null,n){let o=this.frontier[this.depth];o.match=o.match.matchType(e),this.placed=R(this.placed,this.depth,r.FK.from(e.create(t,n))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let e=this.frontier.pop().match.fillBefore(r.FK.empty,!0);e.childCount&&(this.placed=R(this.placed,this.frontier.length,e))}}function F(e,t,n){return 0==t?e.cutByIndex(n,e.childCount):e.replaceChild(0,e.firstChild.copy(F(e.firstChild.content,t-1,n)))}function R(e,t,n){return 0==t?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(R(e.lastChild.content,t-1,n)))}function z(e,t){for(let n=0;n<t;n++)e=e.firstChild.content;return e}function O(e,t,n,r,o){let i=e.node(t),s=o?e.indexAfter(t):e.index(t);if(s==i.childCount&&!n.compatibleContent(i.type))return null;let a=r.fillBefore(i.content,!0,s);return a&&!function(e,t,n){for(let r=n;r<t.childCount;r++)if(!e.allowsMarks(t.child(r).marks))return!0;return!1}(n,i.content,s)?a:null}function T(e,t){for(let n=0;;n++){let r=t<0?e.firstChild:e.lastChild;if(!r||r.isAtom)return n;e=r.content}}function L(e,t){let n=[],r=Math.min(e.depth,t.depth);for(let o=r;o>=0;o--){let r=e.start(o);if(r<e.pos-(e.depth-o)||t.end(o)>t.pos+(t.depth-o)||e.node(o).type.spec.isolating||t.node(o).type.spec.isolating)break;(r==t.start(o)||o==e.depth&&o==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&o&&t.start(o-1)==r-1)&&n.push(o)}return n}class j extends l{constructor(e,t,n){super(),this.pos=e,this.attr=t,this.value=n}apply(e){let t=e.nodeAt(this.pos);if(!t)return c.fail("No node at attribute step's position");let n=Object.create(null);for(let e in t.attrs)n[e]=t.attrs[e];n[this.attr]=this.value;let o=t.type.create(n,null,t.marks);return c.fromReplace(e,this.pos,this.pos+1,new r.Ji(r.FK.from(o),0,+!t.isLeaf))}getMap(){return i.empty}invert(e){return new j(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new j(t.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,t){if("number"!=typeof t.pos||"string"!=typeof t.attr)throw RangeError("Invalid input for AttrStep.fromJSON");return new j(t.pos,t.attr,t.value)}}l.jsonID("attr",j);class I extends l{constructor(e,t){super(),this.attr=e,this.value=t}apply(e){let t=Object.create(null);for(let n in e.attrs)t[n]=e.attrs[n];t[this.attr]=this.value;let n=e.type.create(t,e.content,e.marks);return c.ok(n)}getMap(){return i.empty}invert(e){return new I(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,t){if("string"!=typeof t.attr)throw RangeError("Invalid input for DocAttrStep.fromJSON");return new I(t.attr,t.value)}}l.jsonID("docAttr",I);
3let P=class extends Error{};(P=function e(t){let n=Error.call(this,t);return n.__proto__=e.prototype,n}).prototype=Object.create(Error.prototype),P.prototype.constructor=P,P.prototype.name="TransformError";class N{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new s}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new P(t.failed);return this}maybeStep(e){let t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t}get docChanged(){return this.steps.length>0}changedRange(){let e=1e9,t=-1e9;for(let n=0;n<this.mapping.maps.length;n++){let r=this.mapping.maps[n];n&&(e=r.map(e,1),t=r.map(t,-1)),r.forEach((n,r,o,i)=>{e=Math.min(e,o),t=Math.max(t,i)})}return 1e9==e?null:{from:e,to:t}}addStep(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}replace(e,t=e,n=r.Ji.empty){let o=D(this.doc,e,t,n);return o&&this.step(o),this}replaceWith(e,t,n){return this.replace(e,t,new r.Ji(r.FK.from(n),0,0))}delete(e,t){return this.replace(e,t,r.Ji.empty)}insert(e,t){return this.replaceWith(e,e,t)}replaceRange(e,t,n){return!function(e,t,n,o){if(!o.size)return e.deleteRange(t,n);let i=e.doc.resolve(t),s=e.doc.resolve(n);if(A(i,s,o))return e.step(new m(t,n,o));let a=L(i,s);0==a[a.length-1]&&a.pop();let l=-(i.depth+1);a.unshift(l);for(let e=i.depth,t=i.pos-1;e>0;e--,t--){let n=i.node(e).type.spec;if(n.defining||n.definingAsContext||n.isolating)break;a.indexOf(e)>-1?l=e:i.before(e)==t&&a.splice(1,0,-e)}let c=a.indexOf(l),u=[],d=o.openStart;for(let e=o.content,t=0;;t++){let n=e.firstChild;if(u.push(n),t==o.openStart)break;e=n.content}for(let e=d-1;e>=0;e--){var h;let t=u[e],n=(h=t.type).spec.defining||h.spec.definingForContent;if(n&&!t.sameMarkup(i.node(Math.abs(l)-1)))d=e;else if(n||!t.type.isTextblock)break}for(let t=o.openStart;t>=0;t--){let l=(t+d+1)%(o.openStart+1),h=u[l];if(h)for(let t=0;t<a.length;t++){let u=a[(t+c)%a.length],d=!0;u<0&&(d=!1,u=-u);let f=i.node(u-1),p=i.index(u-1);if(f.canReplaceWith(p,p,h.type,h.marks))return e.replace(i.before(u),d?s.after(u):n,new r.Ji(function e(t,n,o,i,s){if(n<o){let r=t.firstChild;t=t.replaceChild(0,r.copy(e(r.content,n+1,o,i,r)))}if(n>i){let e=s.contentMatchAt(0),n=e.fillBefore(t).append(t);t=n.append(e.matchFragment(n).fillBefore(r.FK.empty,!0))}return t}(o.content,0,o.openStart,l),l,o.openEnd))}}let f=e.steps.length;for(let r=a.length-1;r>=0&&(e.replace(t,n,o),!(e.steps.length>f));r--){let e=a[r];e<0||(t=i.before(e),n=s.after(e))}}(this,e,t,n),this}replaceRangeWith(e,t,n){var o=e,i=t;if(!n.isInline&&o==i&&this.doc.resolve(o).parent.content.size){let e=function(e,t,n){let r=e.resolve(t);if(r.parent.canReplaceWith(r.index(),r.index(),n))return t;if(0==r.parentOffset)for(let e=r.depth-1;e>=0;e--){let t=r.index(e);if(r.node(e).canReplaceWith(t,t,n))return r.before(e+1);if(t>0)return null}if(r.parentOffset==r.parent.content.size)for(let e=r.depth-1;e>=0;e--){let t=r.indexAfter(e);if(r.node(e).canReplaceWith(t,t,n))return r.after(e+1);if(t<r.node(e).childCount)break}return null}(this.doc,o,n.type);null!=e&&(o=i=e)}return this.replaceRange(o,i,new r.Ji(r.FK.from(n),0,0)),this}deleteRange(e,t){return!function(e,t,n){let r=e.doc.resolve(t),o=e.doc.resolve(n);if(r.parent.isTextblock&&o.parent.isTextblock&&r.start()!=o.start()&&0==r.parentOffset&&0==o.parentOffset){let i=r.sharedDepth(n),s=!1;for(let e=r.depth;e>i;e--)r.node(e).type.spec.isolating&&(s=!0);for(let e=o.depth;e>i;e--)o.node(e).type.spec.isolating&&(s=!0);if(!s){for(let e=r.depth;e>0&&t==r.start(e);e--)t=r.before(e);for(let e=o.depth;e>0&&n==o.start(e);e--)n=o.before(e);r=e.doc.resolve(t),o=e.doc.resolve(n)}}let i=L(r,o);for(let t=0;t<i.length;t++){let n=i[t],s=t==i.length-1;if(s&&0==n||r.node(n).type.contentMatch.validEnd)return e.delete(r.start(n),o.end(n));if(n>0&&(s||r.node(n-1).canReplace(r.index(n-1),o.indexAfter(n-1))))return e.delete(r.before(n),o.after(n))}for(let i=1;i<=r.depth&&i<=o.depth;i++)if(t-r.start(i)==r.depth-i&&n>r.end(i)&&o.end(i)-n!=o.depth-i&&r.start(i-1)==o.start(i-1)&&r.node(i-1).canReplace(r.index(i-1),o.index(i-1)))return e.delete(r.before(i),n);e.delete(t,n)}(this,e,t),this}lift(e,t){return!function(e,t,n){let{$from:o,$to:i,depth:s}=t,a=o.before(s+1),l=i.after(s+1),c=a,u=l,d=r.FK.empty,h=0;for(let e=s,t=!1;e>n;e--)t||o.index(e)>
30?(t=!0,d=r.FK.from(o.node(e).copy(d)),h++):c--;let f=r.FK.empty,p=0;for(let e=s,t=!1;e>n;e--)t||i.after(e+1)<i.end(e)?(t=!0,f=r.FK.from(i.node(e).copy(f)),p++):u++;e.step(new v(c,u,a,l,new r.Ji(d.append(f),h,p),d.size-h,!0))}(this,e,t),this}join(e,t=1){return!function(e,t,n){let o=null,{linebreakReplacement:i}=e.doc.type.schema,s=e.doc.resolve(t-n),a=s.node().type;if(i&&a.inlineContent){let e="pre"==a.whitespace,t=!!a.contentMatch.matchType(i);e&&!t?o=!1:!e&&t&&(o=!0)}let l=e.steps.length;if(!1===o){let r=e.doc.resolve(t+n);S(e,r.node(),r.before(),l)}a.inlineContent&&y(e,t+n-1,a,s.node().contentMatchAt(s.index()),null==o);let c=e.mapping.slice(l),u=c.map(t-n);if(e.step(new m(u,c.map(t+n,-1),r.Ji.empty,!0)),!0===o){let t=e.doc.resolve(u);k(e,t.node(),t.before(),e.steps.length)}}(this,e,t),this}wrap(e,t){return!function(e,t,n){let o=r.FK.empty;for(let e=n.length-1;e>=0;e--){if(o.size){let t=n[e].type.contentMatch.matchFragment(o);if(!t||!t.validEnd)throw RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}o=r.FK.from(n[e].type.create(n[e].attrs,o))}let i=t.start,s=t.end;e.step(new v(i,s,i,s,new r.Ji(o,0,0),n.length,!0))}(this,e,t),this}setBlockType(e,t=e,n,o=null){var i=this;if(!n.isTextblock)throw RangeError("Type given to setBlockType should be a textblock");let s=i.steps.length;return i.doc.nodesBetween(e,t,(e,t)=>{var a,l,c;let u,d,h="function"==typeof o?o(e):o;if(e.isTextblock&&!e.hasMarkup(n,h)&&(a=i.doc,l=i.mapping.slice(s).map(t),c=n,d=(u=a.resolve(l)).index(),u.parent.canReplaceWith(d,d+1,c))){let o=null;if(n.schema.linebreakReplacement){let e="pre"==n.whitespace,t=!!n.contentMatch.matchType(n.schema.linebreakReplacement);e&&!t?o=!1:!e&&t&&(o=!0)}!1===o&&S(i,e,t,s),y(i,i.mapping.slice(s).map(t,1),n,void 0,null===o);let a=i.mapping.slice(s),l=a.map(t,1),c=a.map(t+e.nodeSize,1);return i.step(new v(l,c,l+1,c-1,new r.Ji(r.FK.from(n.create(h,null,e.marks)),0,0),1,!0)),!0===o&&k(i,e,t,s),!1}}),this}setNodeMarkup(e,t,n=null,o){return!function(e,t,n,o,i){let s=e.doc.nodeAt(t);if(!s)throw RangeError("No node at given position");n||(n=s.type);let a=n.create(o,null,i||s.marks);if(s.isLeaf)return e.replaceWith(t,t+s.nodeSize,a);if(!n.validContent(s.content))throw RangeError("Invalid content for node type "+n.name);e.step(new v(t,t+s.nodeSize,t+1,t+s.nodeSize-1,new r.Ji(r.FK.from(a),0,0),1,!0))}(this,e,t,n,o),this}setNodeAttribute(e,t,n){return this.step(new j(e,t,n)),this}setDocAttribute(e,t){return this.step(new I(e,t)),this}addNodeMark(e,t){return this.step(new f(e,t)),this}removeNodeMark(e,t){let n=this.doc.nodeAt(e);if(!n)throw RangeError("No node at position "+e);if(t instanceof r.CU)t.isInSet(n.marks)&&this.step(new p(e,t));else{let r=n.marks,o,i=[];for(;o=t.isInSet(r);)i.push(new p(e,o)),r=o.removeFromSet(r);for(let e=i.length-1;e>=0;e--)this.step(i[e])}return this}split(e,t=1,n){return!function(e,t,n=1,o){let i=e.doc.resolve(t),s=r.FK.empty,a=r.FK.empty;for(let e=i.depth,t=i.depth-n,l=n-1;e>t;e--,l--){s=r.FK.from(i.node(e).copy(s));let t=o&&o[l];a=r.FK.from(t?t.type.create(t.attrs,a):i.node(e).copy(a))}e.step(new m(t,t,new r.Ji(s.append(a),n,n),!0))}(this,e,t,n),this}addMark(e,t,n){var r;let o,i,s,a;return r=this,s=[],a=[],r.doc.nodesBetween(e,t,(r,l,c)=>{if(!r.isInline)return;let u=r.marks;if(!n.isInSet(u)&&c.type.allowsMarkType(n.type)){let c=Math.max(l,e),f=Math.min(l+r.nodeSize,t),p=n.addToSet(u);for(let e=0;e<u.length;e++)u[e].isInSet(p)||(o&&o.to==c&&o.mark.eq(u[e])?o.to=f:s.push(o=new h(c,f,u[e])));i&&i.to==c?i.to=f:a.push(i=new d(c,f,n))}}),s.forEach(e=>r.step(e)),a.forEach(e=>r.step(e)),this}removeMark(e,t,n){var o;let i,s;return o=this,i=[],s=0,o.doc.nodesBetween(e,t,(o,a)=>{if(!o.isInline)return;s++;let l=null;if(n instanceof r.sX){let e=o.marks,t;for(;t=n.isInSet(e);)(l||(l=[])).push(t),e=t.removeFromSet(e)}else n?n.isInSet(o.marks)&&(l=[n]):l=o.marks;if(l&&l.length){let n=Math.min(a+o.nodeSize,t);for(let t=0;t<l.length;t++){let r=l[t],o;for(let e=0;e<i.length;e++){let t=i[e];t.step==s-1&&r.eq(i[e].style)&&(o=t)}o?(o.to=n,o.step=s):i.push({style:r,from:Math.max(a,e),to:n,step:s})}}}
3),i.forEach(e=>o.step(new h(e.from,e.to,e.style))),this}clearIncompatible(e,t,n){return y(this,e,t,n),this}}n.d(t,{$L:function(){return D},Ln:function(){return m},Um:function(){return x},Wg:function(){return v},X9:function(){return s},dL:function(){return N},jP:function(){return b},n9:function(){return C},oM:function(){return w},zy:function(){return E}})},404660:function(e,t,n){"use strict";var r=n(514041),o=n(939067),i=n(649422),s=n(111846),a=["children"],l=["open"],c=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],u=["refKey","onChange","onClick"];function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,r,o=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],s=!0,a=!1;try{for(o=o.call(e);!(s=(n=o.next()).done)&&(i.push(n.value),!t||i.length!==t);s=!0);}catch(e){a=!0,r=e}finally{try{s||null==o.return||o.return()}finally{if(a)throw r}}return i}}(e,t)||h(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){if(e){if("string"==typeof e)return f(e,t);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 f(e,t)}}function f(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 p(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 m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach(function(t){v(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(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}var y=(0,r.forwardRef)(function(e,t){var n=e.children,o=_(g(e,a)),i=o.open,s=g(o,l);return(0,r.useImperativeHandle)(t,function(){return{open:i}},[i]),r.createElement(r.Fragment,null,n(m(m({},s),{},{open:i})))});y.displayName="Dropzone";var b={disabled:!1,getFilesFromEvent:i.R,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};y.defaultProps=b,y.propTypes={children:o.func,accept:o.objectOf(o.arrayOf(o.string)),multiple:o.bool,preventDropOnDocument:o.bool,noClick:o.bool,noKeyboard:o.bool,noDrag:o.bool,noDragEventsBubbling:o.bool,minSize:o.number,maxSize:o.number,maxFiles:o.number,disabled:o.bool,getFilesFromEvent:o.func,onFileDialogCancel:o.func,onFileDialogOpen:o.func,useFsAccessApi:o.bool,autoFocus:o.bool,onDragEnter:o.func,onDragLeave:o.func,onDragOver:o.func,onDrop:o.func,onDropAccepted:o.func,onDropRejected:o.func,onError:o.func,validator:o.func};var w={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function _(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=m(m({},b),e),n=t.accept,o=t.disabled,i=t.getFilesFromEvent,a=t.maxSize,l=t.minSize,p=t.multiple,y=t.maxFiles,_=t.onDragEnter,E=t.onDragLeave,C=t.onDragOver,x=t.onDrop,D=t.onDropAccepted,A=t.onDropRejected,M=t.onFileDialogCancel,F=t.onFileDialogOpen,R=t.useFsAccessApi,z=t.autoFocus,O=t.preventDropOnDocument,T=t.noClick,L=t.noKeyboard,j=t.noDrag,I=t.noDragEventsBubbling,P=t.onError,N=t.validator,K=(0,r.useMemo)(function(){return(0,s.DG)(n)},[n]),B=(0,r.useMemo)(function(){return(0,s.Vl)(n)},[n]),H=(0,r.useMemo)(function(){return"function"==typeof F?F:S},[F]),$=(0,r.useMemo)(function(){return"function"==typeof M?M:S},[M]),W=(0,r.useRef)(null),V=(0,r.useRef)(null),J=d((0,r.useReducer)(k,w),2),U=J[0],Y=J[1],q=U.isFocused,G=U.isFileDialogActive,X=(0,r.useRef)("u">typeof window&&window.isSecureContext&&R&&(0,s.vQ)()),Z=function(){!X.current&&G&&setTimeout(function(){V.current&&(V.current.files.length||(Y({type:"closeDialog"}),$()))},300)};(0,r.useEffect)(function(){return window.addEventListener("focus",Z,!1),function(){window.removeEventListener("focus",Z,!1)}},[V,G,$,X]);var Q=(0,r.useRef)([]),ee=function(e){W.current&&W.current.contains(e.target)||(e.preventDefault(),Q.current=[])};(0,r.useEffect)(function(){return O&&(document.addEventListener("dragover",s.rr,!1),document.addEventListener("drop",ee,!1)),function(){O&&(document.removeEventListener("dragover",s.rr),document.removeEventListener("drop",ee))}},[W,O]),(0,r.useEffect)(function(){return!o&&z&&W.current&&W.current.focus(),function(){}},[W,z,o]);var et=(0,r.useCallback)(function(e){P?P(e):console.error(e)},[P]),en=(0,r.useCallback)(function(e){var t;e.preventDefault(),e.persist(),em(e),Q.current=[].concat(function(e){if(Array.isArray(e))return f(e)}(t=Q.current)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||h(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[e.target]),(0,s.t)(e)&&Promise.resolve(i(e)).then(function(t){if(!(0,s.Qk)(e)||I){var n=t.length,r=n>0&&(0,s.gs)({files:t,accept:K,minSize:l,maxSize:a,multiple:p,maxFiles:y,validator:N});Y({isDragAccept:r,isDragReject:n>0&&!r,isDragActive:!0,type:"setDraggedFiles"}),_&&_(e)}}).catch(function(e){return et(e)})},[i,_,et,I,K,l,a,p,y,N]),er=(0,r.useCallback)(function(e){e.preventDefault(),e.persist(),em(e);var t=(0,s.t)(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&C&&C(e),!1},[C,I]),eo=(0,r.useCallback)(function(e){e.preventDefault(),e.persist(),em(e);var t=Q.current.filter(function(e){return W.current&&W.current.contains(e)}),n=t.indexOf(e.target);
3-1!==n&&t.splice(n,1),Q.current=t,!(t.length>0)&&(Y({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),(0,s.t)(e)&&E&&E(e))},[W,E,I]),ei=(0,r.useCallback)(function(e,t){var n=[],r=[];e.forEach(function(e){var t=d((0,s.WR)(e,K),2),o=t[0],i=t[1],c=d((0,s.Hz)(e,l,a),2),u=c[0],h=c[1],f=N?N(e):null;if(o&&u&&!f)n.push(e);else{var p=[i,h];f&&(p=p.concat(f)),r.push({file:e,errors:p.filter(function(e){return e})})}}),(!p&&n.length>1||p&&y>=1&&n.length>y)&&(n.forEach(function(e){r.push({file:e,errors:[s.Ri]})}),n.splice(0)),Y({acceptedFiles:n,fileRejections:r,isDragReject:r.length>0,type:"setFiles"}),x&&x(n,r,t),r.length>0&&A&&A(r,t),n.length>0&&D&&D(n,t)},[Y,p,K,l,a,y,x,D,A,N]),es=(0,r.useCallback)(function(e){e.preventDefault(),e.persist(),em(e),Q.current=[],(0,s.t)(e)&&Promise.resolve(i(e)).then(function(t){(!(0,s.Qk)(e)||I)&&ei(t,e)}).catch(function(e){return et(e)}),Y({type:"reset"})},[i,ei,et,I]),ea=(0,r.useCallback)(function(){if(X.current){Y({type:"openDialog"}),H(),window.showOpenFilePicker({multiple:p,types:B}).then(function(e){return i(e)}).then(function(e){ei(e,null),Y({type:"closeDialog"})}).catch(function(e){(0,s.rV)(e)?($(e),Y({type:"closeDialog"})):(0,s.v2)(e)?(X.current=!1,V.current?(V.current.value=null,V.current.click()):et(Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):et(e)});return}V.current&&(Y({type:"openDialog"}),H(),V.current.value=null,V.current.click())},[Y,H,$,R,ei,et,B,p]),el=(0,r.useCallback)(function(e){W.current&&W.current.isEqualNode(e.target)&&(" "===e.key||"Enter"===e.key||32===e.keyCode||13===e.keyCode)&&(e.preventDefault(),ea())},[W,ea]),ec=(0,r.useCallback)(function(){Y({type:"focus"})},[]),eu=(0,r.useCallback)(function(){Y({type:"blur"})},[]),ed=(0,r.useCallback)(function(){T||((0,s.lP)()?setTimeout(ea,0):ea())},[T,ea]),eh=function(e){return o?null:e},ef=function(e){return L?null:eh(e)},ep=function(e){return j?null:eh(e)},em=function(e){I&&e.stopPropagation()},ev=(0,r.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=e.role,r=e.onKeyDown,i=e.onFocus,a=e.onBlur,l=e.onClick,u=e.onDragEnter,d=e.onDragOver,h=e.onDragLeave,f=e.onDrop,p=g(e,c);return m(m(v({onKeyDown:ef((0,s.mK)(r,el)),onFocus:ef((0,s.mK)(i,ec)),onBlur:ef((0,s.mK)(a,eu)),onClick:eh((0,s.mK)(l,ed)),onDragEnter:ep((0,s.mK)(u,en)),onDragOver:ep((0,s.mK)(d,er)),onDragLeave:ep((0,s.mK)(h,eo)),onDrop:ep((0,s.mK)(f,es)),role:"string"==typeof n&&""!==n?n:"presentation"},void 0===t?"ref":t,W),o||L?{}:{tabIndex:0}),p)}},[W,el,ec,eu,ed,en,er,eo,es,L,j,o]),eg=(0,r.useCallback)(function(e){e.stopPropagation()},[]),ey=(0,r.useMemo)(function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=e.onChange,r=e.onClick,o=g(e,u);return m(m({},v({accept:K,multiple:p,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:eh((0,s.mK)(n,es)),onClick:eh((0,s.mK)(r,eg)),tabIndex:-1},void 0===t?"ref":t,V)),o)}},[V,n,p,es,o]);return m(m({},U),{},{isFocused:q&&!o,getRootProps:ev,getInputProps:ey,rootRef:W,inputRef:V,open:eh(ea)})}function k(e,t){switch(t.type){case"focus":return m(m({},e),{},{isFocused:!0});case"blur":return m(m({},e),{},{isFocused:!1});case"openDialog":return m(m({},w),{},{isFileDialogActive:!0});case"closeDialog":return m(m({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return m(m({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return m(m({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections,isDragReject:t.isDragReject});case"reset":return m({},w);default:return e}}function S(){}n.d(t,{VB:function(){return _}})},179423:function(e,t,n){"use strict";for(var r={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},o={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},i="u">typeof navigator&&/Mac/.test(navigator.platform),s="u">typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),a=0;a<10;a++)r[48+a]=r[96+a]=String(a);for(var a=1;a<=24;a++)r[a+111]="F"+a;for(var a=65;a<=90;a++)r[a]=String.fromCharCode(a+32),o[a]=String.fromCharCode(a);for(var l in r)o.hasOwnProperty(l)||(o[l]=r[l]);function c(e){var t=!(i&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||s&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key)&&e.key||(e.shiftKey?o:r)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}n.d(t,{E3:function(){return r},xT:function(){return c}})}}]);
4//# debugId=15b17295-5e1b-58f7-8179-b1bf1285f6ef

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.