1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[370],{7344:(e,t)=>{t.A=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 2===e.length?r(e[0],e[1])||null:e.slice(1).reduce(function(e,t){return r(e,t)},e[0])||null};var n=new WeakMap;function r(e,t){if(e&&t){var r=n.get(e)||new WeakMap;n.set(e,r);var o=r.get(t)||function(n){i(e,n),i(t,n)};return r.set(t,o),o}return e||t}function i(e,t){"function"==typeof e?e(t):e.current=t}},3155:(e,t,n)=>{n.d(t,{D0:()=>nu,ED:()=>nb,lV:()=>nd,l1:()=>no,Mt:()=>nc,j7:()=>t4});var r=function(e){var t;return!!e&&"object"==typeof e&&"[object RegExp]"!==(t=Object.prototype.toString.call(e))&&"[object Date]"!==t&&e.$$typeof!==i},i="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(e,t){return!1!==t.clone&&t.isMergeableObject(e)?s(Array.isArray(e)?[]:{},e,t):e}function a(e,t,n){return e.concat(t).map(function(e){return o(e,n)})}function s(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||a,n.isMergeableObject=n.isMergeableObject||r;var i,l,c=Array.isArray(t);return c!==Array.isArray(e)?o(t,n):c?n.arrayMerge(e,t,n):(l={},(i=n).isMergeableObject(e)&&Object.keys(e).forEach(function(t){l[t]=o(e[t],i)}),Object.keys(t).forEach(function(n){i.isMergeableObject(t[n])&&e[n]?l[n]=s(e[n],t[n],i):l[n]=o(t[n],i)}),l)}s.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,n){return s(e,n,t)},{})};let l=s;var c="object"==typeof global&&global&&global.Object===Object&&global,u="object"==typeof self&&self&&self.Object===Object&&self,d=c||u||Function("return this")(),f=d.Symbol,h=Object.prototype,p=h.hasOwnProperty,g=h.toString,m=f?f.toStringTag:void 0;let v=function(e){var t=p.call(e,m),n=e[m];try{e[m]=void 0;var r=!0}catch(e){}var i=g.call(e);return r&&(t?e[m]=n:delete e[m]),i};var y=Object.prototype.toString,b=f?f.toStringTag:void 0;let w=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":b&&b in Object(e)?v(e):y.call(e)},E=function(e,t){return function(n){return e(t(n))}};var S=E(Object.getPrototypeOf,Object);let _=function(e){return null!=e&&"object"==typeof e};var x=Object.prototype,R=Function.prototype.toString,C=x.hasOwnProperty,D=R.call(Object);let O=function(e){if(!_(e)||"[object Object]"!=w(e))return!1;var t=S(e);if(null===t)return!0;var n=C.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&R.call(n)==D},k=function(e,t){return e===t||e!=e&&t!=t},T=function(e,t){for(var n=e.length;n--;)if(k(e[n][0],t))return n;return -1};var M=Array.prototype.splice;function I(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}I.prototype.clear=function(){this.__data__=[],this.size=0},I.prototype.delete=function(e){var t=this.__data__,n=T(t,e);return!(n<0)&&(n==t.length-1?t.pop():M.call(t,n,1),--this.size,!0)},I.prototype.get=function(e){var t=this.__data__,n=T(t,e);return n<0?void 0:t[n][1]},I.prototype.has=function(e){return T(this.__data__,e)>-1},I.prototype.set=function(e,t){var n=this.__data__,r=T(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};let A=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},P=function(e){if(!A(e))return!1;var t=w(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t};var N=d["__core-js_shared__"],j=function(){var e=/[^.]+$/.exec(N&&N.keys&&N.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),L=Function.prototype.toString;let F=function(e){if(null!=e){try{return L.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var H=/^\[object .+?Constructor\]$/,U=Object.prototype,V=Function.prototype.toString,z=U.hasOwnProperty,W=RegExp("^"+V.call(z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");let Y=function(e,t){var n,r=null==e?void 0:e[t];return A(n=r)&&(!j||!(j in n))&&(P(n)?W:H).test(F(n))?r:void 0};var B=Y(d,"Map"),G=Y(Object,"create"),X=Object.prototype.hasOwnProperty,$=Object.prototype.hasOwnProperty;function q(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}q.prototype.clear=function(){this.__data__=G?G(null):{},this.size=0},q.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},q.prototype.get=function(e){var t=this.__data__;if(G){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return X.call(t,e)?t[e]:void 0},q.prototype.has=function(e){var t=this.__data__;return G?void 0!==t[e]:$.call(t,e)},q.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=G&&void 0===t?"__lodash_hash_undefined__":t,this};let K=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},Z=function(e,t){var n=e.__data__;return K(t)?n["string"==typeof t?"string":"hash"]:n.map};function Q(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function J(e){var t=this.__data__=new I(e);this.size=t.size}Q.prototype.clear=function(){this.size=0,this.__data__={hash:new q,map:new(B||I),string:new q}},Q.prototype.delete=function(e){var t=Z(this,e).delete(e);return this.size-=t?1:0,t},Q.prototype.get=function(e){return Z(this,e).get(e)},Q.prototype.has=function(e){return Z(this,e).has(e)},Q.prototype.set=function(e,t){var n=Z(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},J.prototype.clear=function(){this.__data__=new I,this.size=0},J.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},J.prototype.get=function(e){return this.__data__.get(e)},J.prototype.has=function(e){return this.__data__.has(e)},J.prototype.set=function(e,t){var n=this.__data__;if(n instanceof I){var r=n.__data__;if(!B||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Q(r)}
1return n.set(e,t),this.size=n.size,this};let ee=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e};var et=function(){try{var e=Y(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();let en=function(e,t,n){"__proto__"==t&&et?et(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n};var er=Object.prototype.hasOwnProperty;let ei=function(e,t,n){var r=e[t];er.call(e,t)&&k(r,n)&&(void 0!==n||t in e)||en(e,t,n)},eo=function(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],l=r?r(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),i?en(n,s,l):ei(n,s,l)}return n},ea=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},es=function(e){return _(e)&&"[object Arguments]"==w(e)};var el=Object.prototype,ec=el.hasOwnProperty,eu=el.propertyIsEnumerable,ed=es(function(){return arguments}())?es:function(e){return _(e)&&ec.call(e,"callee")&&!eu.call(e,"callee")},ef=Array.isArray,eh="object"==typeof exports&&exports&&!exports.nodeType&&exports,ep=eh&&"object"==typeof module&&module&&!module.nodeType&&module,eg=ep&&ep.exports===eh?d.Buffer:void 0;let em=(eg?eg.isBuffer:void 0)||function(){return!1};var ev=/^(?:0|[1-9]\d*)$/;let ey=function(e,t){var n=typeof e;return!!(t=null==t?0x1fffffffffffff:t)&&("number"==n||"symbol"!=n&&ev.test(e))&&e>-1&&e%1==0&&e<t},eb=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff};var ew={};ew["[object Float32Array]"]=ew["[object Float64Array]"]=ew["[object Int8Array]"]=ew["[object Int16Array]"]=ew["[object Int32Array]"]=ew["[object Uint8Array]"]=ew["[object Uint8ClampedArray]"]=ew["[object Uint16Array]"]=ew["[object Uint32Array]"]=!0,ew["[object Arguments]"]=ew["[object Array]"]=ew["[object ArrayBuffer]"]=ew["[object Boolean]"]=ew["[object DataView]"]=ew["[object Date]"]=ew["[object Error]"]=ew["[object Function]"]=ew["[object Map]"]=ew["[object Number]"]=ew["[object Object]"]=ew["[object RegExp]"]=ew["[object Set]"]=ew["[object String]"]=ew["[object WeakMap]"]=!1;let eE=function(e){return function(t){return e(t)}};var eS="object"==typeof exports&&exports&&!exports.nodeType&&exports,e_=eS&&"object"==typeof module&&module&&!module.nodeType&&module,ex=e_&&e_.exports===eS&&c.process,eR=function(){try{var e=e_&&e_.require&&e_.require("util").types;if(e)return e;return ex&&ex.binding&&ex.binding("util")}catch(e){}}(),eC=eR&&eR.isTypedArray,eD=eC?eE(eC):function(e){return _(e)&&eb(e.length)&&!!ew[w(e)]},eO=Object.prototype.hasOwnProperty;let ek=function(e,t){var n=ef(e),r=!n&&ed(e),i=!n&&!r&&em(e),o=!n&&!r&&!i&&eD(e),a=n||r||i||o,s=a?ea(e.length,String):[],l=s.length;for(var c in e)(t||eO.call(e,c))&&!(a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||ey(c,l)))&&s.push(c);return s};var eT=Object.prototype;let eM=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||eT)};var eI=E(Object.keys,Object),eA=Object.prototype.hasOwnProperty;let eP=function(e){if(!eM(e))return eI(e);var t=[];for(var n in Object(e))eA.call(e,n)&&"constructor"!=n&&t.push(n);return t},eN=function(e){return null!=e&&eb(e.length)&&!P(e)},ej=function(e){return eN(e)?ek(e):eP(e)},eL=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t};var eF=Object.prototype.hasOwnProperty;let eH=function(e){if(!A(e))return eL(e);var t=eM(e),n=[];for(var r in e)"constructor"==r&&(t||!eF.call(e,r))||n.push(r);return n},eU=function(e){return eN(e)?ek(e,!0):eH(e)};var eV="object"==typeof exports&&exports&&!exports.nodeType&&exports,ez=eV&&"object"==typeof module&&module&&!module.nodeType&&module,eW=ez&&ez.exports===eV?d.Buffer:void 0,eY=eW?eW.allocUnsafe:void 0;let eB=function(e,t){if(t)return e.slice();var n=e.length,r=eY?eY(n):new e.constructor(n);return e.copy(r),r},eG=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t},eX=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o},e$=function(){return[]};var eq=Object.prototype.propertyIsEnumerable,eK=Object.getOwnPropertySymbols,eZ=eK?function(e){return null==e?[]:eX(eK(e=Object(e)),function(t){return eq.call(e,t)})}:e$;let eQ=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e};var eJ=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)eQ(t,eZ(e)),e=S(e);return t}:e$;let e0=function(e,t,n){var r=t(e);return ef(e)?r:eQ(r,n(e))},e1=function(e){return e0(e,ej,eZ)},e2=function(e){return e0(e,eU,eJ)};var e3=Y(d,"DataView"),e4=Y(d,"Promise"),e5=Y(d,"Set"),e6=Y(d,"WeakMap"),e9="[object Map]",e8="[object Promise]",e7="[object Set]",te="[object WeakMap]",tt="[object DataView]",tn=F(e3),tr=F(B),ti=F(e4),to=F(e5),ta=F(e6),ts=w;(e3&&ts(new e3(new ArrayBuffer(1)))!=tt||B&&ts(new B)!=e9||e4&&ts(e4.resolve())!=e8||e5&&ts(new e5)!=e7||e6&&ts(new e6)!=te)&&(ts=function(e){var t=w(e),n="[object Object]"==t?e.constructor:void 0,r=n?F(n):"";if(r)switch(r){case tn:return tt;case tr:return e9;case ti:return e8;case to:return e7;case ta:return te}return t});let tl=ts;var tc=Object.prototype.hasOwnProperty;let tu=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&tc.call(e,"index")&&(n.index=e.index,n.input=e.input),n};var td=d.Uint8Array;let tf=function(e){var t=new e.constructor(e.byteLength);return new td(t).set(new td(e)),t},th=function(e,t){var n=t?tf(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)};var tp=/\w*$/;let tg=function(e){var t=new e.constructor(e.source,tp.exec(e));return t.lastIndex=e.lastIndex,t};var tm=f?f.prototype:void 0,tv=tm?tm.valueOf:void 0;let ty=function(e,t){var n=t?tf(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)},tb=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return tf(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return th(e,n);
1case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return ty(e,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return tg(e);case"[object Symbol]":return tv?Object(tv.call(e)):{}}};var tw=Object.create,tE=function(){function e(){}return function(t){if(!A(t))return{};if(tw)return tw(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),tS=eR&&eR.isMap,t_=tS?eE(tS):function(e){return _(e)&&"[object Map]"==tl(e)},tx=eR&&eR.isSet,tR=tx?eE(tx):function(e){return _(e)&&"[object Set]"==tl(e)},tC="[object Arguments]",tD="[object Function]",tO="[object Object]",tk={};tk[tC]=tk["[object Array]"]=tk["[object ArrayBuffer]"]=tk["[object DataView]"]=tk["[object Boolean]"]=tk["[object Date]"]=tk["[object Float32Array]"]=tk["[object Float64Array]"]=tk["[object Int8Array]"]=tk["[object Int16Array]"]=tk["[object Int32Array]"]=tk["[object Map]"]=tk["[object Number]"]=tk[tO]=tk["[object RegExp]"]=tk["[object Set]"]=tk["[object String]"]=tk["[object Symbol]"]=tk["[object Uint8Array]"]=tk["[object Uint8ClampedArray]"]=tk["[object Uint16Array]"]=tk["[object Uint32Array]"]=!0,tk["[object Error]"]=tk[tD]=tk["[object WeakMap]"]=!1;let tT=function e(t,n,r,i,o,a){var s,l=1&n,c=2&n,u=4&n;if(r&&(s=o?r(t,i,o,a):r(t)),void 0!==s)return s;if(!A(t))return t;var d=ef(t);if(d){if(s=tu(t),!l)return eG(t,s)}else{var f,h,p,g,m=tl(t),v=m==tD||"[object GeneratorFunction]"==m;if(em(t))return eB(t,l);if(m==tO||m==tC||v&&!o){if(s=c||v?{}:"function"!=typeof t.constructor||eM(t)?{}:tE(S(t)),!l)return c?(h=(f=s)&&eo(t,eU(t),f),eo(t,eJ(t),h)):(g=(p=s)&&eo(t,ej(t),p),eo(t,eZ(t),g))}else{if(!tk[m])return o?t:{};s=tb(t,m,l)}}a||(a=new J);var y=a.get(t);if(y)return y;a.set(t,s),tR(t)?t.forEach(function(i){s.add(e(i,n,r,i,t,a))}):t_(t)&&t.forEach(function(i,o){s.set(o,e(i,n,r,o,t,a))});var b=u?c?e2:e1:c?eU:ej,w=d?void 0:b(t);return ee(w||t,function(i,o){w&&(i=t[o=i]),ei(s,o,e(i,n,r,o,t,a))}),s},tM=function(e){return tT(e,5)};var tI=n(4041),tA=n(706),tP=n.n(tA);let tN=function(e,t){},tj=function(e){return tT(e,4)},tL=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i},tF=function(e){return"symbol"==typeof e||_(e)&&"[object Symbol]"==w(e)};function tH(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(tH.Cache||Q),n}tH.Cache=Q;var tU=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,tV=/\\(\\)?/g,tz=function(e){var t=tH(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(tU,function(e,n,r,i){t.push(r?i.replace(tV,"$1"):n||e)}),t}),tW=1/0;let tY=function(e){if("string"==typeof e||tF(e))return e;var t=e+"";return"0"==t&&1/e==-tW?"-0":t};var tB=1/0,tG=f?f.prototype:void 0,tX=tG?tG.toString:void 0;let t$=function e(t){if("string"==typeof t)return t;if(ef(t))return tL(t,e)+"";if(tF(t))return tX?tX.call(t):"";var n=t+"";return"0"==n&&1/t==-tB?"-0":n},tq=function(e){return ef(e)?tL(e,tY):tF(e)?[e]:eG(tz(null==e?"":t$(e)))};var tK=n(5985),tZ=n.n(tK);function tQ(){return(tQ=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function tJ(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function t0(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var t1=(0,tI.createContext)(void 0);t1.displayName="FormikContext";var t2=t1.Provider,t3=t1.Consumer;function t4(){var e=(0,tI.useContext)(t1);
1return e||tN(!1),e}var t5=function(e){return Array.isArray(e)&&0===e.length},t6=function(e){return"function"==typeof e},t9=function(e){return null!==e&&"object"==typeof e},t8=function(e){return"[object String]"===Object.prototype.toString.call(e)},t7=function(e){return 0===tI.Children.count(e)},ne=function(e){return t9(e)&&t6(e.then)};function nt(e,t,n,r){void 0===r&&(r=0);for(var i=tq(t);e&&r<i.length;)e=e[i[r++]];return r===i.length||e?void 0===e?n:e:n}function nn(e,t,n){for(var r=tj(e),i=r,o=0,a=tq(t);o<a.length-1;o++){var s=a[o],l=nt(e,a.slice(0,o+1));if(l&&(t9(l)||Array.isArray(l)))i=i[s]=tj(l);else{var c=a[o+1];i=i[s]=String(Math.floor(Number(c)))===c&&Number(c)>=0?[]:{}}}return(0===o?e:i)[a[o]]===n?e:(void 0===n?delete i[a[o]]:i[a[o]]=n,0===o&&void 0===n&&delete r[a[o]],r)}var nr={},ni={};function no(e){var t,n,r,i,o,a,s,c,u,d,f,h,p,g,m,v,y,b,w,E,S,_,x,R,C,D,k,T,M,I,A,P,N,j,L,F,H,U,V,z,W,Y,B,G,X,$,q,K,Z,Q,J,ee,et,en,er,ei=(n=void 0===(t=e.validateOnChange)||t,i=void 0===(r=e.validateOnBlur)||r,a=void 0!==(o=e.validateOnMount)&&o,s=e.isInitialValid,u=void 0!==(c=e.enableReinitialize)&&c,d=e.onSubmit,f=tJ(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),h=tQ({validateOnChange:n,validateOnBlur:i,validateOnMount:a,onSubmit:d},f),p=(0,tI.useRef)(h.initialValues),g=(0,tI.useRef)(h.initialErrors||nr),m=(0,tI.useRef)(h.initialTouched||ni),v=(0,tI.useRef)(h.initialStatus),y=(0,tI.useRef)(!1),b=(0,tI.useRef)({}),(0,tI.useEffect)(function(){return y.current=!0,function(){y.current=!1}},[]),w=(0,tI.useState)(0)[1],S=(E=(0,tI.useRef)({values:tM(h.initialValues),errors:tM(h.initialErrors)||nr,touched:tM(h.initialTouched)||ni,status:tM(h.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0})).current,_=(0,tI.useCallback)(function(e){var t=E.current;E.current=function(e,t){switch(t.type){case"SET_VALUES":return tQ({},e,{values:t.payload});case"SET_TOUCHED":return tQ({},e,{touched:t.payload});case"SET_ERRORS":if(tP()(e.errors,t.payload))return e;return tQ({},e,{errors:t.payload});case"SET_STATUS":return tQ({},e,{status:t.payload});case"SET_ISSUBMITTING":return tQ({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return tQ({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return tQ({},e,{values:nn(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return tQ({},e,{touched:nn(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return tQ({},e,{errors:nn(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return tQ({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return tQ({},e,{touched:function e(t,n,r,i){void 0===r&&(r=new WeakMap),void 0===i&&(i={});for(var o=0,a=Object.keys(t);o<a.length;o++){var s=a[o],l=t[s];t9(l)?r.get(l)||(r.set(l,!0),i[s]=Array.isArray(l)?[]:{},e(l,n,r,i[s])):i[s]=n}return i}(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return tQ({},e,{isSubmitting:!1});default:return e}}(t,e),t!==E.current&&w(function(e){return e+1})},[]),x=(0,tI.useCallback)(function(e,t){return new Promise(function(n,r){var i=h.validate(e,t);null==i?n(nr):ne(i)?i.then(function(e){n(e||nr)},function(e){r(e)}):n(i)})},[h.validate]),R=(0,tI.useCallback)(function(e,t){var n,r,i=h.validationSchema,o=t6(i)?i(t):i,a=t&&o.validateAt?o.validateAt(t,e):(void 0===n&&(n=!1),r=function e(t){var n=Array.isArray(t)?[]:{};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var i=String(r);!0===Array.isArray(t[i])?n[i]=t[i].map(function(t){return!0===Array.isArray(t)||O(t)?e(t):""!==t?t:void 0}):O(t[i])?n[i]=e(t[i]):n[i]=""!==t[i]?t[i]:void 0}return n}(e),o[n?"validateSync":"validate"](r,{abortEarly:!1,context:r}));return new Promise(function(e,t){a.then(function(){e(nr)},function(n){"ValidationError"===n.name?e(function(e){var t={};if(e.inner){if(0===e.inner.length)return nn(t,e.path,e.message);for(var n=e.inner,r=Array.isArray(n),i=0,n=r?n:n[Symbol.iterator]();;){if(r){if(i>=n.length)break;o=n[i++]}else{if((i=n.next()).done)break;o=i.value}var o,a=o;nt(t,a.path)||(t=nn(t,a.path,a.message))}}return t}(n)):t(n)})})},[h.validationSchema]),C=(0,tI.useCallback)(function(e,t){return new Promise(function(n){return n(b.current[e].validate(t))})},[]),D=(0,tI.useCallback)(function(e){var t=Object.keys(b.current).filter(function(e){return t6(b.current[e].validate)});return Promise.all(t.length>0?t.map(function(t){return C(t,nt(e,t))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")]).then(function(e){return e.reduce(function(e,n,r){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===n||n&&(e=nn(e,t[r],n)),e},{})})},[C]),k=(0,tI.useCallback)(function(e){return Promise.all([D(e),h.validationSchema?R(e):{},h.validate?x(e):{}]).then(function(e){var t=e[0],n=e[1],r=e[2];return l.all([t,n,r],{arrayMerge:na})})},[h.validate,h.validationSchema,D,x,R]),T=nl(function(e){return void 0===e&&(e=S.values),_({type:"SET_ISVALIDATING",payload:!0}),k(e).then(function(e){return y.current&&(_({type:"SET_ISVALIDATING",payload:!1}),_({type:"SET_ERRORS",payload:e})),e})}),(0,tI.useEffect)(function(){a&&!0===y.current&&tP()(p.current,h.initialValues)&&T(p.current)},[a,T]),M=(0,tI.useCallback)(function(e){var t=e&&e.values?e.values:p.current,n=e&&e.errors?e.errors:g.current?g.current:h.initialErrors||{},r=e&&e.touched?e.touched:m.current?m.current:h.initialTouched||{},i=e&&e.status?e.status:v.current?v.current:h.initialStatus;p.current=t,g.current=n,m.current=r,v.current=i;var o=function(){_({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:n,touched:r,status:i,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"==typeof e.submitCount?e.submitCount:0}})};if(h.onReset){var a=h.onReset(S.values,K);ne(a)?a.then(o):o()}else o()},[h.initialErrors,h.initialStatus,h.initialTouched,h.onReset]),(0,tI.useEffect)(function(){!0===y.
1current&&!tP()(p.current,h.initialValues)&&u&&(p.current=h.initialValues,M(),a&&T(p.current))},[u,h.initialValues,M,a,T]),(0,tI.useEffect)(function(){u&&!0===y.current&&!tP()(g.current,h.initialErrors)&&(g.current=h.initialErrors||nr,_({type:"SET_ERRORS",payload:h.initialErrors||nr}))},[u,h.initialErrors]),(0,tI.useEffect)(function(){u&&!0===y.current&&!tP()(m.current,h.initialTouched)&&(m.current=h.initialTouched||ni,_({type:"SET_TOUCHED",payload:h.initialTouched||ni}))},[u,h.initialTouched]),(0,tI.useEffect)(function(){u&&!0===y.current&&!tP()(v.current,h.initialStatus)&&(v.current=h.initialStatus,_({type:"SET_STATUS",payload:h.initialStatus}))},[u,h.initialStatus,h.initialTouched]),I=nl(function(e){if(b.current[e]&&t6(b.current[e].validate)){var t=nt(S.values,e),n=b.current[e].validate(t);return ne(n)?(_({type:"SET_ISVALIDATING",payload:!0}),n.then(function(e){return e}).then(function(t){_({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),_({type:"SET_ISVALIDATING",payload:!1})})):(_({type:"SET_FIELD_ERROR",payload:{field:e,value:n}}),Promise.resolve(n))}return h.validationSchema?(_({type:"SET_ISVALIDATING",payload:!0}),R(S.values,e).then(function(e){return e}).then(function(t){_({type:"SET_FIELD_ERROR",payload:{field:e,value:nt(t,e)}}),_({type:"SET_ISVALIDATING",payload:!1})})):Promise.resolve()}),A=(0,tI.useCallback)(function(e,t){var n=t.validate;b.current[e]={validate:n}},[]),P=(0,tI.useCallback)(function(e){delete b.current[e]},[]),N=nl(function(e,t){return _({type:"SET_TOUCHED",payload:e}),(void 0===t?i:t)?T(S.values):Promise.resolve()}),j=(0,tI.useCallback)(function(e){_({type:"SET_ERRORS",payload:e})},[]),L=nl(function(e,t){var r=t6(e)?e(S.values):e;return _({type:"SET_VALUES",payload:r}),(void 0===t?n:t)?T(r):Promise.resolve()}),F=(0,tI.useCallback)(function(e,t){_({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})},[]),H=nl(function(e,t,r){var i=t6(t)?t(nt(S.values,e)):t;return _({type:"SET_FIELD_VALUE",payload:{field:e,value:i}}),(void 0===r?n:r)?T(nn(S.values,e,i)):Promise.resolve()}),U=(0,tI.useCallback)(function(e,t){var n,r=t,i=e;if(!t8(e)){e.persist&&e.persist();var o=e.target?e.target:e.currentTarget,a=o.type,s=o.name,l=o.id,c=o.value,u=o.checked,d=(o.outerHTML,o.options),f=o.multiple;r=t||s||l,i=/number|range/.test(a)?isNaN(n=parseFloat(c))?"":n:/checkbox/.test(a)?function(e,t,n){if("boolean"==typeof e)return!!t;var r=[],i=!1,o=-1;if(Array.isArray(e))r=e,i=(o=e.indexOf(n))>=0;else if(!n||"true"==n||"false"==n)return!!t;return t&&n&&!i?r.concat(n):i?r.slice(0,o).concat(r.slice(o+1)):r}(nt(S.values,r),u,c):d&&f?Array.from(d).filter(function(e){return e.selected}).map(function(e){return e.value}):c}r&&H(r,i)},[H,S.values]),V=nl(function(e){if(t8(e))return function(t){return U(t,e)};U(e)}),z=nl(function(e,t,n){return void 0===t&&(t=!0),_({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===n?i:n)?T(S.values):Promise.resolve()}),W=(0,tI.useCallback)(function(e,t){e.persist&&e.persist();var n=e.target,r=n.name,i=n.id;n.outerHTML,z(t||r||i,!0)},[z]),Y=nl(function(e){if(t8(e))return function(t){return W(t,e)};W(e)}),B=(0,tI.useCallback)(function(e){t6(e)?_({type:"SET_FORMIK_STATE",payload:e}):_({type:"SET_FORMIK_STATE",payload:function(){return e}})},[]),G=(0,tI.useCallback)(function(e){_({type:"SET_STATUS",payload:e})},[]),X=(0,tI.useCallback)(function(e){_({type:"SET_ISSUBMITTING",payload:e})},[]),$=nl(function(){return _({type:"SUBMIT_ATTEMPT"}),T().then(function(e){var t,n=e instanceof Error;if(!n&&0===Object.keys(e).length){try{if(t=Z(),void 0===t)return}catch(e){throw e}return Promise.resolve(t).then(function(e){return y.current&&_({type:"SUBMIT_SUCCESS"}),e}).catch(function(e){if(y.current)throw _({type:"SUBMIT_FAILURE"}),e})}if(y.current&&(_({type:"SUBMIT_FAILURE"}),n))throw e})}),q=nl(function(e){e&&e.preventDefault&&t6(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&t6(e.stopPropagation)&&e.stopPropagation(),$().catch(function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)})}
1),K={resetForm:M,validateForm:T,validateField:I,setErrors:j,setFieldError:F,setFieldTouched:z,setFieldValue:H,setStatus:G,setSubmitting:X,setTouched:N,setValues:L,setFormikState:B,submitForm:$},Z=nl(function(){return d(S.values,K)}),Q=nl(function(e){e&&e.preventDefault&&t6(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&t6(e.stopPropagation)&&e.stopPropagation(),M()}),J=(0,tI.useCallback)(function(e){return{value:nt(S.values,e),error:nt(S.errors,e),touched:!!nt(S.touched,e),initialValue:nt(p.current,e),initialTouched:!!nt(m.current,e),initialError:nt(g.current,e)}},[S.errors,S.touched,S.values]),ee=(0,tI.useCallback)(function(e){return{setValue:function(t,n){return H(e,t,n)},setTouched:function(t,n){return z(e,t,n)},setError:function(t){return F(e,t)}}},[H,z,F]),et=(0,tI.useCallback)(function(e){var t=t9(e),n=t?e.name:e,r=nt(S.values,n),i={name:n,value:r,onChange:V,onBlur:Y};if(t){var o=e.type,a=e.value,s=e.as,l=e.multiple;"checkbox"===o?void 0===a?i.checked=!!r:(i.checked=!!(Array.isArray(r)&&~r.indexOf(a)),i.value=a):"radio"===o?(i.checked=r===a,i.value=a):"select"===s&&l&&(i.value=i.value||[],i.multiple=!0)}return i},[Y,V,S.values]),en=(0,tI.useMemo)(function(){return!tP()(p.current,S.values)},[p.current,S.values]),er=(0,tI.useMemo)(function(){return void 0!==s?en?S.errors&&0===Object.keys(S.errors).length:!1!==s&&t6(s)?s(h):s:S.errors&&0===Object.keys(S.errors).length},[s,en,S.errors,h]),tQ({},S,{initialValues:p.current,initialErrors:g.current,initialTouched:m.current,initialStatus:v.current,handleBlur:Y,handleChange:V,handleReset:Q,handleSubmit:q,resetForm:M,setErrors:j,setFormikState:B,setFieldTouched:z,setFieldValue:H,setFieldError:F,setStatus:G,setSubmitting:X,setTouched:N,setValues:L,submitForm:$,validateForm:T,validateField:I,isValid:er,dirty:en,unregisterField:P,registerField:A,getFieldProps:et,getFieldMeta:J,getFieldHelpers:ee,validateOnBlur:i,validateOnChange:n,validateOnMount:a})),eo=e.component,ea=e.children,es=e.render,el=e.innerRef;return(0,tI.useImperativeHandle)(el,function(){return ei}),(0,tI.createElement)(t2,{value:ei},eo?(0,tI.createElement)(eo,ei):es?es(ei):ea?t6(ea)?ea(ei):t7(ea)?null:tI.Children.only(ea):null)}function na(e,t,n){var r=e.slice();return t.forEach(function(t,i){if(void 0===r[i]){var o=!1!==n.clone&&n.isMergeableObject(t);r[i]=o?l(Array.isArray(t)?[]:{},t,n):t}else n.isMergeableObject(t)?r[i]=l(e[i],t,n):-1===e.indexOf(t)&&r.push(t)}),r}var ns="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?tI.useLayoutEffect:tI.useEffect;function nl(e){var t=(0,tI.useRef)(e);return ns(function(){t.current=e}),(0,tI.useCallback)(function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.current.apply(void 0,n)},[])}function nc(e){var t=t4(),n=t.getFieldProps,r=t.getFieldMeta,i=t.getFieldHelpers,o=t.registerField,a=t.unregisterField,s=t9(e)?e:{name:e},l=s.name,c=s.validate;(0,tI.useEffect)(function(){return l&&o(l,{validate:c}),function(){l&&a(l)}},[o,a,l,c]),l||tN(!1);var u=(0,tI.useMemo)(function(){return i(l)},[i,l]);return[n(s),r(l),u]}function nu(e){var t=e.validate,n=e.name,r=e.render,i=e.children,o=e.as,a=e.component,s=e.className,l=tJ(e,["validate","name","render","children","as","component","className"]),c=tJ(t4(),["validate","validationSchema"]),u=c.registerField,d=c.unregisterField;(0,tI.useEffect)(function(){return u(n,{validate:t}),function(){d(n)}},[u,d,n,t]);var f=c.getFieldProps(tQ({name:n},l)),h=c.getFieldMeta(n),p={field:f,form:c};if(r)return r(tQ({},p,{meta:h}));if(t6(i))return i(tQ({},p,{meta:h}));if(a){if("string"==typeof a){var g=l.innerRef,m=tJ(l,["innerRef"]);return(0,tI.createElement)(a,tQ({ref:g},f,m,{className:s}),i)}return(0,tI.createElement)(a,tQ({field:f,form:c},l,{className:s}),i)}var v=o||"input";if("string"==typeof v){var y=l.innerRef,b=tJ(l,["innerRef"]);return(0,tI.createElement)(v,tQ({ref:y},f,b,{className:s}),i)}return(0,tI.createElement)(v,tQ({},f,l,{className:s}),i)}var nd=(0,tI.forwardRef)(function(e,t){var n=e.action,r=tJ(e,["action"]),i=t4(),o=i.handleReset,a=i.handleSubmit;return(0,tI.createElement)("form",tQ({onSubmit:a,ref:t,onReset:o,action:null!=n?n:"#"},r))});nd.displayName="Form";var nf=function(e,t,n){var r=nm(e),i=r[t];return r.splice(t,1),r.splice(n,0,i),r},nh=function(e,t,n){var r=nm(e),i=r[t];return r[t]=r[n],r[n]=i,r},np=function(e,t,n){var r=nm(e);return r.splice(t,0,n),r},ng=function(e,t,n){var r=nm(e);return r[t]=n,r},nm=function(e){if(!e)return[];if(Array.isArray(e))return[].concat(e);var t=Object.keys(e).map(function(e){return parseInt(e)}).reduce(function(e,t){return t>e?t:e},0);return Array.from(tQ({},e,{length:t+1}))},nv=function(e,t){var n="function"==typeof e?e:t;return function(e){return Array.isArray(e)||t9(e)?n(nm(e)):e}},ny=function(e){function t(t){var n;return(n=e.call(this,t)||this).updateArrayField=function(e,t,r){var i=n.props,o=i.name;(0,i.formik.setFormikState)(function(n){var i=nv(r,e),a=nv(t,e),s=nn(n.values,o,e(nt(n.values,o))),l=r?i(nt(n.errors,o)):void 0,c=t?a(nt(n.touched,o)):void 0;return t5(l)&&(l=void 0),t5(c)&&(c=void 0),tQ({},n,{values:s,errors:r?nn(n.errors,o,l):n.errors,touched:t?nn(n.touched,o,c):n.touched})})},n.push=function(e){return n.updateArrayField(function(t){return[].concat(nm(t),[tM(e)])},!1,!1)},n.handlePush=function(e){return function(){return n.push(e)}},n.swap=function(e,t){return n.updateArrayField(function(n){return nh(n,e,t)},!0,!0)},n.handleSwap=function(e,t){return function(){return n.swap(e,t)}},n.move=function(e,t){return n.updateArrayField(function(n){return nf(n,e,t)},!0,!0)},n.handleMove=function(e,t){return function(){return n.move(e,t)}},n.insert=function(e,t){return n.updateArrayField(function(n){return np(n,e,t)},function(t){return np(t,e,null)},function(t){return np(t,e,null)})},n.handleInsert=function(e,t){return function(){return n.insert(e,t)}},n.replace=function(e,t){return n.updateArrayField(function(n){return ng(n,e,t)},!1,!1)},n.handleReplace=function(e,t){return function(){return n.replace(e,t)}},n.unshift=function(e){var t=-1;return n.updateArrayField(function(n){var r=n?[e].concat(n):[e];return t=r.length,r},function(e){return e?[null].concat(e):[null]},function(e){return e?[null].concat(e):[null]}),t},n.handleUnshift=function(e){return function(){return n.unshift(e)}},n.handleRemove=function(e){return function(){return n.remove(e)}},n.handlePop=function(){return function(){return n.pop()}},n.remove=n.remove.bind(t0(n)),n.pop=n.pop.bind(t0(n)),n}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e;var n=t.prototype;return n.componentDidUpdate=function(e){this.props.validateOnChange&&this.props.formik.validateOnChange&&!tP()(nt(e.formik.values,e.name),nt(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},n.remove=function(e){var t;return this.updateArrayField(function(n){var r=n?nm(n):[];return t||(t=r[e]),t6(r.splice)&&r.splice(e,1),t6(r.every)&&r.every(function(e){return void 0===e})?[]:r},!0,!0),t},n.pop=function(){var e;return this.updateArrayField(function(t){var n=t.slice();return e||(e=n&&n.pop&&n.pop()),n},!0,!0),e},n.render=function(){var e={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},t=this.props,n=t.component,r=t.render,i=t.children,o=t.name,a=tJ(t.formik,["validate","validationSchema"]),s=tQ({},e,{form:a,name:o});return n?(0,tI.createElement)(n,s):r?r(s):i?"function"==typeof i?i(s):t7(i)?null:tI.Children.only(i):null},t}(tI.Component);ny.defaultProps={validateOnChange:!0};var nb=function(e){var t=function(t){return(0,tI.createElement)(t3,null,function(n){return n||tN(!1),(0,tI.createElement)(e,tQ({},t,{formik:n}))})},n=e.displayName||e.name||e.constructor&&e.constructor.name||"Component";return t.WrappedComponent=e,t.displayName="FormikConnect("+n+")",tZ()(t,e)}(ny)},706:e=>{var t=Array.isArray,n=Object.keys,r=Object.prototype.hasOwnProperty,i="undefined"!=typeof Element;e.exports=function(e,o){try{return function e(o,a){if(o===a)return!0;
1if(o&&a&&"object"==typeof o&&"object"==typeof a){var s,l,c,u=t(o),d=t(a);if(u&&d){if((l=o.length)!=a.length)return!1;for(s=l;0!=s--;)if(!e(o[s],a[s]))return!1;return!0}if(u!=d)return!1;var f=o instanceof Date,h=a instanceof Date;if(f!=h)return!1;if(f&&h)return o.getTime()==a.getTime();var p=o instanceof RegExp,g=a instanceof RegExp;if(p!=g)return!1;if(p&&g)return o.toString()==a.toString();var m=n(o);if((l=m.length)!==n(a).length)return!1;for(s=l;0!=s--;)if(!r.call(a,m[s]))return!1;if(i&&o instanceof Element&&a instanceof Element)return o===a;for(s=l;0!=s--;)if(("_owner"!==(c=m[s])||!o.$$typeof)&&!e(o[c],a[c]))return!1;return!0}return o!=o&&a!=a}(e,o)}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-0x7ff5ffe4===e.number)return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}}},5985:(e,t,n)=>{var r=n(524),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(p){var i=h(n);i&&i!==p&&e(t,i,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=l(t),g=l(n),m=0;m<a.length;++m){var v=a[m];if(!o[v]&&!(r&&r[v])&&!(g&&g[v])&&!(s&&s[v])){var y=f(n,v);try{c(t,v,y)}catch(e){}}}}return t}}
1,9093:(e,t,n)=>{n.d(t,{k5:()=>l});var r=n(4041),i={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},o=r.createContext&&r.createContext(i),a=function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function l(e){return function(t){return r.createElement(c,a({attr:a({},e.attr)},t),function e(t){return t&&t.map(function(t,n){return r.createElement(t.tag,a({key:n},t.attr),e(t.child))})}(e.child))}}function c(e){var t=function(t){var n,i=e.attr,o=e.size,l=e.title,c=s(e,["attr","size","title"]),u=o||t.size||"1em";return t.className&&(n=t.className),e.className&&(n=(n?n+" ":"")+e.className),r.createElement("svg",a({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,i,c,{className:n,style:a(a({color:e.color||t.color},t.style),e.style),height:u,width:u,xmlns:"http://www.w3.org/2000/svg"}),l&&r.createElement("title",null,l),e.children)};return void 0!==o?r.createElement(o.Consumer,null,function(e){return t(e)}):t(i)}},8447:(e,t,n)=>{n.d(t,{d5:()=>T});var r,i,o,a=n(5181),s=0,l=[],c=[],u=a.fF.__b,d=a.fF.__r,f=a.fF.diffed,h=a.fF.__c,p=a.fF.unmount;function g(){for(var e;e=l.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(v),e.__H.__h.forEach(y),e.__H.__h=[]}catch(t){e.__H.__h=[],a.fF.__e(t,e.__v)}}a.fF.__b=function(e){r=null,u&&u(e)},a.fF.__r=function(e){d&&d(e);var t=(r=e.__c).__H;t&&(i===r?(t.__h=[],r.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.__V=c,e.__N=e.i=void 0})):(t.__h.forEach(v),t.__h.forEach(y),t.__h=[])),i=r},a.fF.diffed=function(e){f&&f(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==l.push(t)&&o===a.fF.requestAnimationFrame||((o=a.fF.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),m&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);m&&(t=requestAnimationFrame(n))})(g)),t.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.__V!==c&&(e.__=e.__V),e.i=void 0,e.__V=c})),i=r=null},a.fF.__c=function(e,t){t.some(function(e){try{e.__h.forEach(v),e.__h=e.__h.filter(function(e){return!e.__||y(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],a.fF.__e(n,e.__v)}}),h&&h(e,t)},a.fF.unmount=function(e){p&&p(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{v(e)}catch(e){t=e}}),n.__H=void 0,t&&a.fF.__e(t,n.__v))};var m="function"==typeof requestAnimationFrame;function v(e){var t=r,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),r=t}function y(e){var t=r;e.__c=e.__(),r=t}function b(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 w(e){this.props=e}(w.prototype=new a.uA).isPureReactComponent=!0,w.prototype.shouldComponentUpdate=function(e,t){return b(this.props,e)||b(this.state,t)};var E=a.fF.__b;a.fF.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),E&&E(e)},"undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref");var S=(a.v2,a.fF.__e);a.fF.__e=function(e,t,n,r){if(e.then){for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t)}S(e,t,n,r)};var _=a.fF.unmount;function x(){this.__u=0,this.t=null,this.__b=null}function R(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function C(){this.u=null,this.o=null}a.fF.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),_&&_(e)},(x.prototype=new a.uA).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var i=R(r.__v),o=!1,a=function(){o||(o=!0,n.__R=null,i?i(s):s())};n.__R=a;var s=function(){if(!--r.__u){if(r.state.__a){var e,t=r.state.__a;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({__a:r.__b=null});e=r.t.pop();)e.forceUpdate()}},l=!0===t.__h;r.__u++||l||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},x.prototype.componentWillUnmount=function(){this.t=[]},x.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 i=t.__a&&(0,a.n)(a.FK,null,e.fallback);return i&&(i.__h=null),[(0,a.n)(a.FK,null,t.__a?null:e.children),i]};var D=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function O(e){return this.getChildContext=function(){return e.context},e.children}function k(e){var t=this,n=e.i;t.componentWillUnmount=function(){(0,a.XX)(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),(0,a.XX)((0,a.n)(O,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function T(e,t){var n=(0,a.n)(k,{__v:e,i:t});return n.containerInfo=t,n}(C.prototype=new a.uA).__a=function(e){var t=this,n=R(t.__v),r=t.o.get(e);return r[0]++,function(i){var o=function(){t.props.revealOrder?(r.push(i),D(t,e,r)):i()};n?n(o):o()}},C.prototype.render=function(e){this.u=null,this.o=new Map;var t=(0,a.v2)(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},C.prototype.componentDidUpdate=C.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){D(e,n,t)})};var M="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,I=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,A="undefined"!=typeof document;a.uA.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(a.uA.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var P=a.fF.event;function N(){}function j(){return this.cancelBubble}function L(){return this.defaultPrevented}a.fF.event=function(e){return P&&(e=P(e)),e.persist=N,e.isPropagationStopped=j,e.isDefaultPrevented=L,e.nativeEvent=e};var F={configurable:!0,get:function(){return this.class}},H=a.fF.vnode;a.fF.vnode=function(e){var t=e.type,n=e.props,r=n;if("string"==typeof t){var i=-1===t.indexOf("-");for(var o in r={},n){var s,l=n[o];A&&"children"===o&&"noscript"===t||"value"===o&&"defaultValue"in n&&null==l||("defaultValue"===o&&"value"in n&&null==n.value?o="value":"download"===o&&!0===l?l="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+t)&&(s=n.type,!("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(s))?o="onin
1put":/^onfocus$/i.test(o)?o="onfocusin":/^onblur$/i.test(o)?o="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(o)?o=o.toLowerCase():i&&I.test(o)?o=o.replace(/[A-Z0-9]/g,"-$&").toLowerCase():null===l&&(l=void 0),/^oninput$/i.test(o)&&r[o=o.toLowerCase()]&&(o="oninputCapture"),r[o]=l)}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=(0,a.v2)(n.children).forEach(function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)})),"select"==t&&null!=r.defaultValue&&(r.value=(0,a.v2)(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&&(F.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",F))}e.$$typeof=M,H&&H(e)};var U=a.fF.__r;a.fF.__r=function(e){U&&U(e),e.__c},a.FK,a.n,a.q6,a._3,a.FK,a.uA},5181:(e,t,n)=>{n.d(t,{FK:()=>w,Ob:()=>L,Qv:()=>j,XX:()=>N,_3:()=>b,fF:()=>i,n:()=>v,q6:()=>F,uA:()=>R,v2:()=>function e(t,n){return n=n||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some(function(t){e(t,n)}):n.push(t)),n},zO:()=>a});var r,i,o,a,s,l,c,u,d,f={},h=[],p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function g(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 i,o,a,s={};
vendor: 4,693 bytes, line 1
1for(a in t)"key"==a?i=t[a]:"ref"==a?o=t[a]:s[a]=t[a];if(arguments.length>2&&(s.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===s[a]&&(s[a]=e.defaultProps[a]);return y(e,s,i,o,null)}function y(e,t,n,r,a){var s={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==a?++o:a};return null==a&&null!=i.vnode&&i.vnode(s),s}function b(){return{current:null}}function w(e){return e.children}function E(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||p.test(t)?n:n+"px"}function S(e,t,n,r,i){var o;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||E(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||E(e.style,t,n[t])}}else if("o"===t[0]&&"n"===t[1])o=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?r||e.addEventListener(t,o?x:_,o):e.removeEventListener(t,o?x:_,o);else if("dangerouslySetInnerHTML"!==t){if(i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"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&&-1==t.indexOf("-")?e.removeAttribute(t):e.setAttribute(t,n))}}function _(e){s=!0;try{return this.l[e.type+!1](i.event?i.event(e):e)}finally{s=!1}}function x(e){s=!0;try{return this.l[e.type+!0](i.event?i.event(e):e)}finally{s=!1}}function R(e,t){this.props=e,this.context=t}function C(e,t){if(null==t)return e.__?C(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?C(e):null}function D(e){(!e.__d&&(e.__d=!0)&&l.push(e)&&!O.__r++||c!==i.debounceRendering)&&((c=i.debounceRendering)||function(e){s?setTimeout(e):u(e)})(O)}function O(){var e,t,n,r,i,o,a,s;for(l.sort(function(e,t){return e.__v.__b-t.__v.__b});e=l.shift();)e.__d&&(t=l.length,r=void 0,i=void 0,a=(o=(n=e).__v).__e,(s=n.__P)&&(r=[],(i=g({},o)).__v=o.__v+1,M(s,o,i,n.__n,void 0!==s.ownerSVGElement,null!=o.__h?[a]:null,r,null==a?C(o):a,o.__h),I(r,o),o.__e!=a&&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)}}(o)),l.length>t&&l.sort(function(e,t){return e.__v.__b-t.__v.__b}));O.__r=0}function k(e,t,n,r,o,a,s,l,c,u){var d,p,g,v,b,E,S,_=r&&r.__k||h,x=_.length;for(n.__k=[],d=0;d<t.length;d++)if(null!=(v=n.__k[d]=null==(v=t[d])||"boolean"==typeof v?null:"string"==typeof v||"number"==typeof v||"bigint"==typeof v?y(null,v,null,null,v):Array.isArray(v)?y(w,{children:v},null,null,null):v.__b>0?y(v.type,v.props,v.key,v.ref?v.ref:null,v.__v):v)){if(v.__=n,v.__b=n.__b+1,null===(g=_[d])||g&&v.key==g.key&&v.type===g.type)_[d]=void 0;else for(p=0;p<x;p++){if((g=_[p])&&v.key==g.key&&v.type===g.type){_[p]=void 0;break}g=null}M(e,v,g=g||f,o,a,s,l,c,u),b=v.__e,(p=v.ref)&&g.ref!=p&&(S||(S=[]),g.ref&&S.push(g.ref,null,v),S.push(p,v.__c||b,v)),null!=b?(null==E&&(E=b),"function"==typeof v.type&&v.__k===g.__k?v.__d=c=function e(t,n,r){for(var i,o=t.__k,a=0;o&&a<o.length;a++)(i=o[a])&&(i.__=t,n="function"==typeof i.type?e(i,n,r):T(r,i,i,o,i.__e,n));return n}(v,c,e):c=T(e,v,g,_,b,c),"function"==typeof n.type&&(n.__d=c)):c&&g.__e==c&&c.parentNode!=e&&(c=C(g))}for(n.__e=E,d=x;d--;)null!=_[d]&&("function"==typeof n.type&&null!=_[d].__e&&_[d].__e==n.__d&&(n.__d=function e(t){var n,r,i;if(null==t.type||"string"==typeof t.type)return t.__e;if(t.__k){for(n=t.__k.length-1;n>=0;n--)if((r=t.__k[n])&&(i=e(r)))return i}return null}(r).nextSibling),function e(t,n,r){var o,a;if(i.unmount&&i.unmount(t),(o=t.ref)&&(o.current&&o.current!==t.__e||A(o,null,n)),null!=(o=t.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){i.__e(e,n)}o.base=o.__P=null,t.__c=void 0}if(o=t.__k)for(a=0;a<o.length;a++)o[a]&&e(o[a],n,r||"function"!=typeof t.type);r||null==t.__e||m(t.__e),t.__=t.__e=t.__d=void 0}(_[d],_[d]));if(S)for(d=0;d<S.length;d++)A(S[d],S[++d],S[++d])}function T(e,t,n,r,i,o){var a,s,l;if(void 0!==t.__d)a=t.__d,t.__d=void 0;else if(null==n||i!=o||null==i.parentNode)e:if(null==o||o.parentNode!==e)e.appendChild(i),a=null;else{for(s=o,l=0;(s=s.nextSibling)&&l<r.length;l+=1)if(s==i)break e;e.insertBefore(i,o),a=o}return void 0!==a?a:i.nextSibling}function M(e,t,n,o,a,s,l,c,u){var d,h,p,v,y,b,E,_,x,D,O,T,M,I,A,N=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(u=n.__h,c=t.__e=n.__e,t.__h=null,s=[c]),(d=i.__b)&&d(t);
vendor: 3,958 bytes, line 1
1try{e:if("function"==typeof N){if(_=t.props,x=(d=N.contextType)&&o[d.__c],D=d?x?x.props.value:d.__:o,n.__c?E=(h=t.__c=n.__c).__=h.__E:("prototype"in N&&N.prototype.render?t.__c=h=new N(_,D):(t.__c=h=new R(_,D),h.constructor=N,h.render=P),x&&x.sub(h),h.props=_,h.state||(h.state={}),h.context=D,h.__n=o,p=h.__d=!0,h.__h=[],h._sb=[]),null==h.__s&&(h.__s=h.state),null!=N.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=g({},h.__s)),g(h.__s,N.getDerivedStateFromProps(_,h.__s))),v=h.props,y=h.state,h.__v=t,p)null==N.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(null==N.getDerivedStateFromProps&&_!==v&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(_,D),!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(_,h.__s,D)||t.__v===n.__v){for(t.__v!==n.__v&&(h.props=_,h.state=h.__s,h.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(e){e&&(e.__=t)}),O=0;O<h._sb.length;O++)h.__h.push(h._sb[O]);h._sb=[],h.__h.length&&l.push(h);break e}null!=h.componentWillUpdate&&h.componentWillUpdate(_,h.__s,D),null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(v,y,b)})}if(h.context=D,h.props=_,h.__P=e,T=i.__r,M=0,"prototype"in N&&N.prototype.render){for(h.state=h.__s,h.__d=!1,T&&T(t),d=h.render(h.props,h.state,h.context),I=0;I<h._sb.length;I++)h.__h.push(h._sb[I]);h._sb=[]}else do h.__d=!1,T&&T(t),d=h.render(h.props,h.state,h.context),h.state=h.__s;while(h.__d&&++M<25);h.state=h.__s,null!=h.getChildContext&&(o=g(g({},o),h.getChildContext())),p||null==h.getSnapshotBeforeUpdate||(b=h.getSnapshotBeforeUpdate(v,y)),A=null!=d&&d.type===w&&null==d.key?d.props.children:d,k(e,Array.isArray(A)?A:[A],t,n,o,a,s,l,c,u),h.base=t.__e,t.__h=null,h.__h.length&&l.push(h),E&&(h.__E=h.__=null),h.__e=!1}else null==s&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=function(e,t,n,i,o,a,s,l){var c,u,d,h=n.props,p=t.props,g=t.type,v=0;if("svg"===g&&(o=!0),null!=a){for(;v<a.length;v++)if((c=a[v])&&"setAttribute"in c==!!g&&(g?c.localName===g:3===c.nodeType)){e=c,a[v]=null;break}}if(null==e){if(null===g)return document.createTextNode(p);e=o?document.createElementNS("http://www.w3.org/2000/svg",g):document.createElement(g,p.is&&p),a=null,l=!1}if(null===g)h===p||l&&e.data===p||(e.data=p);else{if(a=a&&r.call(e.childNodes),u=(h=n.props||f).dangerouslySetInnerHTML,d=p.dangerouslySetInnerHTML,!l){if(null!=a)for(h={},v=0;v<e.attributes.length;v++)h[e.attributes[v].name]=e.attributes[v].value;(d||u)&&(d&&(u&&d.__html==u.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(function(e,t,n,r,i){var o;for(o in n)"children"===o||"key"===o||o in t||S(e,o,null,n[o],r);for(o in t)i&&"function"!=typeof t[o]||"children"===o||"key"===o||"value"===o||"checked"===o||n[o]===t[o]||S(e,o,t[o],n[o],r)}(e,p,h,o,l),d)t.__k=[];else if(k(e,Array.isArray(v=t.props.children)?v:[v],t,n,i,o&&"foreignObject"!==g,a,s,a?a[0]:n.__k&&C(n,0),l),null!=a)for(v=a.length;v--;)null!=a[v]&&m(a[v]);l||("value"in p&&void 0!==(v=p.value)&&(v!==e.value||"progress"===g&&!v||"option"===g&&v!==h.value)&&S(e,"value",v,h.value,!1),"checked"in p&&void 0!==(v=p.checked)&&v!==e.checked&&S(e,"checked",v,h.checked,!1))}return e}(n.__e,t,n,o,a,s,l,u);(d=i.diffed)&&d(t)}catch(e){t.__v=null,(u||null!=s)&&(t.__e=c,t.__h=!!u,s[s.indexOf(c)]=null),i.__e(e,t,n)}}function I(e,t){i.__c&&i.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){i.__e(e,t.__v)}})}function A(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){i.__e(e,n)}}function P(e,t,n){return this.constructor(e,n)}function N(e,t,n){var o,a,s;i.__&&i.__(e,t),a=(o="function"==typeof n)?null:n&&n.__k||t.__k,s=[],M(t,e=(!o&&n||t).__k=v(w,null,[e]),a||f,f,void 0!==t.ownerSVGElement,!o&&n?[n]:a?null:t.firstChild?r.call(t.childNodes):null,s,!o&&n?n:a?a.__e:t.firstChild,o),I(s,e)}function j(e,t){N(e,t,j)}function L(e,t,n){var i,o,a,s=g({},e.props);
vendor: 1,435 bytes, line 1
1for(a in t)"key"==a?i=t[a]:"ref"==a?o=t[a]:s[a]=t[a];return arguments.length>2&&(s.children=arguments.length>3?r.call(arguments,2):n),y(e.type,s,i||e.key,o||e.ref,null)}function F(e,t){var n={__c:t="__cC"+d++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(function(e){e.__e=!0,D(e)})},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}r=h.slice,i={__e:function(e,t,n,r){for(var i,o,a;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(e)),a=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,r||{}),a=i.__d),a)return i.__E=i}catch(t){e=t}throw e}},o=0,a=function(e){return null!=e&&void 0===e.constructor},s=!1,R.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=g({},this.state),"function"==typeof e&&(e=e(g({},n),this.props)),e&&g(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),D(this))},R.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),D(this))},R.prototype.render=w,l=[],u="function"==typeof Promise?Promise.prototype.then.bind(Prom
1ise.resolve()):setTimeout,O.__r=0,d=0},320:(e,t)=>{var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case o:case s:case a:case h:return e;default:switch(e=e&&e.$$typeof){case c:case f:case m:case g:case l:return e;default:return t}}case i:return t}}}function S(e){return E(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=o,t.Lazy=m,t.Memo=g,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=h,t.isAsyncMode=function(e){return S(e)||E(e)===u},t.isConcurrentMode=S,t.isContextConsumer=function(e){return E(e)===c},t.isContextProvider=function(e){return E(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return E(e)===f},t.isFragment=function(e){return E(e)===o},t.isLazy=function(e){return E(e)===m},t.isMemo=function(e){return E(e)===g},t.isPortal=function(e){return E(e)===i},t.isProfiler=function(e){return E(e)===s},t.isStrictMode=function(e){return E(e)===a},t.isSuspense=function(e){return E(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===s||e===a||e===h||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===g||e.$$typeof===l||e.$$typeof===c||e.$$typeof===f||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=E},524:(e,t,n)=>{e.exports=n(320)},8844:(e,t,n)=>{let r;function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=i(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==i(t)?t:t+""}function a(e,t,n){return(t=o(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(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 l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){a(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c(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 u(e,t){if(e){if("string"==typeof e)return c(e,t);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,i=e}
1finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||u(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 f(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}n.d(t,{Wx:()=>n$});var h,p,g,m,v=n(4041),y=n.t(v,2),b=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function w(){return(w=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}function E(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,o(r.key),r)}}function S(e,t){return(S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function _(e){return(_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function x(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(x=function(){return!!e})()}function R(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||u(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var C=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t;this._insertTag(((t=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&t.setAttribute("nonce",this.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t))}var n=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(n);try{r.insertRule(e,r.cssRules.length)}catch(e){}}else n.appendChild(document.createTextNode(e));this.ctr++}
vendor: 4,213 bytes, line 1
1,t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),D=Math.abs,O=String.fromCharCode,k=Object.assign;function T(e,t,n){return e.replace(t,n)}function M(e,t){return e.indexOf(t)}function I(e,t){return 0|e.charCodeAt(t)}function A(e,t,n){return e.slice(t,n)}function P(e){return e.length}function N(e,t){return t.push(e),e}var j=1,L=1,F=0,H=0,U=0,V="";function z(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:j,column:L,length:a,return:""}}function W(e,t){return k(z("",null,null,"",null,null,0),e,{length:-e.length},t)}function Y(){return U=H<F?I(V,H++):0,L++,10===U&&(L=1,j++),U}function B(){return I(V,H)}function G(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function X(e){return j=L=1,F=P(V=e),H=0,[]}function $(e){var t,n;return(t=H-1,n=function e(t){for(;Y();)switch(U){case t:return H;case 34:case 39:34!==t&&39!==t&&e(U);break;case 40:41===t&&e(t);break;case 92:Y()}return H}(91===e?e+2:40===e?e+1:e),A(V,t,n)).trim()}var q="-ms-",K="-moz-",Z="-webkit-",Q="comm",J="rule",ee="decl",et="@keyframes";function en(e,t){for(var n="",r=e.length,i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function er(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case ee:return e.return=e.return||e.value;case Q:return"";case et:return e.return=e.value+"{"+en(e.children,r)+"}";case J:e.value=e.props.join(",")}return P(n=en(e.children,r))?e.return=e.value+"{"+n+"}":""}function ei(e,t,n,r,i,o,a,s,l,c,u){for(var d=i-1,f=0===i?o:[""],h=f.length,p=0,g=0,m=0;p<r;++p)for(var v=0,y=A(e,d+1,d=D(g=a[p])),b=e;v<h;++v)(b=(g>0?f[v]+" "+y:T(y,/&\f/g,f[v])).trim())&&(l[m++]=b);return z(e,t,n,0===i?J:s,l,c,u)}function eo(e,t,n,r){return z(e,t,n,ee,A(e,0,r),A(e,r+1,-1),r)}var ea=function(e,t,n){for(var r=0,i=0;r=i,i=B(),38===r&&12===i&&(t[n]=1),!G(i);)Y();return A(V,e,H)},es=function(e,t){var n=-1,r=44;do switch(G(r)){case 0:38===r&&12===B()&&(t[n]=1),e[n]+=ea(H-1,t,n);break;case 2:e[n]+=$(r);break;case 4:if(44===r){e[++n]=58===B()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=O(r)}while(r=Y());return e},el=function(e,t){var n;return n=es(X(e),t),V="",n},ec=new WeakMap,eu=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||ec.get(n))&&!r){ec.set(e,!0);for(var i=[],o=el(t,i),a=n.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},ed=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},ef=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case ee:e.return=function e(t,n){switch(45^I(t,0)?(((n<<2^I(t,0))<<2^I(t,1))<<2^I(t,2))<<2^I(t,3):0){case 5103:return Z+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Z+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return Z+t+K+t+q+t+t;case 6828:case 4268:return Z+t+q+t+t;case 6165:return Z+t+q+"flex-"+t+t;case 5187:return Z+t+T(t,/(\w+).+(:[^]+)/,Z+"box-$1$2"+q+"flex-$1$2")+t;case 5443:return Z+t+q+"flex-item-"+T(t,/flex-|-self/,"")+t;case 4675:return Z+t+q+"flex-line-pack"+T(t,/align-content|flex-|-self/,"")+t;case 5548:return Z+t+q+T(t,"shrink","negative")+t;case 5292:return Z+t+q+T(t,"basis","preferred-size")+t;case 6060:return Z+"box-"+T(t,"-grow","")+Z+t+q+T(t,"grow","positive")+t;case 4554:return Z+T(t,/([^-])(transform)/g,"$1"+Z+"$2")+t;case 6187:return T(T(T(t,/(zoom-|grab)/,Z+"$1"),/(image-set)/,Z+"$1"),t,"")+t;case 5495:case 3959:return T(t,/(image-set\([^]*)/,Z+"$1$`$1");case 4968:return T(T(t,/(.+:)(flex-)?(.*)/,Z+"box-pack:$3"+q+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Z+t+t;
vendor: 6,119 bytes, line 1
1case 4095:case 3583:case 4068:case 2532:return T(t,/(.+)-inline(.+)/,Z+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(P(t)-1-n>6)switch(I(t,n+1)){case 109:if(45!==I(t,n+4))break;case 102:return T(t,/(.+:)(.+)-([^]+)/,"$1"+Z+"$2-$3$1"+K+(108==I(t,n+3)?"$3":"$2-$3"))+t;case 115:return~M(t,"stretch")?e(T(t,"stretch","fill-available"),n)+t:t}break;case 4949:if(115!==I(t,n+1))break;case 6444:switch(I(t,P(t)-3-(~M(t,"!important")&&10))){case 107:return T(t,":",":"+Z)+t;case 101:return T(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Z+(45===I(t,14)?"inline-":"")+"box$3$1"+Z+"$2$3$1"+q+"$2box$3")+t}break;case 5936:switch(I(t,n+11)){case 114:return Z+t+q+T(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return Z+t+q+T(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return Z+t+q+T(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return Z+t+q+t+t}return t}(e.value,e.length);break;case et:return en([W(e,{value:T(e.value,"@","@"+Z)})],r);case J:if(e.length){var i,o;return i=e.props,o=function(t){var n;switch(n=t,(n=/(::plac\w+|:read-\w+)/.exec(n))?n[0]:n){case":read-only":case":read-write":return en([W(e,{props:[T(t,/:(read-\w+)/,":"+K+"$1")]})],r);case"::placeholder":return en([W(e,{props:[T(t,/:(plac\w+)/,":"+Z+"input-$1")]}),W(e,{props:[T(t,/:(plac\w+)/,":"+K+"$1")]}),W(e,{props:[T(t,/:(plac\w+)/,q+"input-$1")]})],r)}return""},i.map(o).join("")}}}],eh=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},ep=function(e,t,n){eh(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next;while(void 0!==i)}},eg={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},em=/[A-Z]|^ms/g,ev=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ey=function(e){return 45===e.charCodeAt(1)},eb=function(e){return null!=e&&"boolean"!=typeof e},ew=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}(function(e){return ey(e)?e:e.replace(em,"-$&").toLowerCase()}),eE=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(ev,function(e,t,n){return g={name:t,styles:n,next:g},t})}return 1===eg[e]||ey(e)||"number"!=typeof t||0===t?t:t+"px"};function eS(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return g={name:n.name,styles:n.styles,next:g},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)g={name:r.name,styles:r.styles,next:g},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=eS(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=o+"{"+t[a]+"}":eb(a)&&(r+=ew(o)+":"+eE(o,a)+";");else if(Array.isArray(a)&&"string"==typeof a[0]&&(null==t||void 0===t[a[0]]))for(var s=0;s<a.length;s++)eb(a[s])&&(r+=ew(o)+":"+eE(o,a[s])+";");else{var l=eS(e,t,a);switch(o){case"animation":case"animationName":r+=ew(o)+":"+l+";";break;default:r+=o+"{"+l+"}"}}}return r}(e,t,n);case"function":if(void 0!==e){var i=g,o=n(e);return g=i,eS(e,t,o)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var e_=/label:\s*([^\s;{]+)\s*(;|$)/g;function ex(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r,i=!0,o="";g=void 0;var a=e[0];null==a||void 0===a.raw?(i=!1,o+=eS(n,t,a)):o+=a[0];for(var s=1;s<e.length;s++)o+=eS(n,t,e[s]),i&&(o+=a[s]);e_.lastIndex=0;for(var l="";null!==(r=e_.exec(o));)l+="-"+r[1];return{name:function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))*0x5bd1e995+((t>>>16)*59797<<16),t^=t>>>24,n=(65535&t)*0x5bd1e995+((t>>>16)*59797<<16)^(65535&n)*0x5bd1e995+((n>>>16)*59797<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n^=255&e.charCodeAt(r),n=(65535&n)*0x5bd1e995+((n>>>16)*59797<<16)}return n^=n>>>13,(((n=(65535&n)*0x5bd1e995+((n>>>16)*59797<<16))^n>>>15)>>>0).toString(36)}(o)+l,styles:o,next:g}}var eR=!!y.useInsertionEffect&&y.useInsertionEffect,eC=eR||function(e){return e()};eR||v.useLayoutEffect;var eD=v.createContext("undefined"!=typeof HTMLElement?function(e){var t,n,r,i,o,a,s=e.key;if("css"===s){var l=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(l,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var c=e.stylisPlugins||ef,u={},d=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+s+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)u[t[n]]=!0;d.push(e)});var f=(n=(t=[eu,ed].concat(c,[er,(r=function(e){a.insert(e)},function(e){!e.root&&(e=e.return)&&r(e)})])).length,function(e,r,i,o){for(var a="",s=0;s<n;s++)a+=t[s](e,r,i,o)||"";return a}),h=function(e){var t,n;return en((n=function e(t,n,r,i,o,a,s,l,c){for(var u,d=0,f=0,h=s,p=0,g=0,m=0,v=1,y=1,b=1,w=0,E="",S=o,_=a,x=i,R=E;y;)switch(m=w,w=Y()){case 40:if(108!=m&&58==I(R,h-1)){-1!=M(R+=T($(w),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:R+=$(w);break;case 9:case 10:case 13:case 32:R+=function(e){for(;U=B();)if(U<33)Y();else break;return G(e)>2||G(U)>3?"":" "}(m);break;case 92:R+=function(e,t){for(var n;--t&&Y()&&!(U<48)&&!(U>102)&&(!(U>57)||!(U<65))&&(!(U>
170)||!(U<97)););return n=H+(t<6&&32==B()&&32==Y()),A(V,e,n)}(H-1,7);continue;case 47:switch(B()){case 42:case 47:N(z(u=function(e,t){for(;Y();)if(e+U===57)break;else if(e+U===84&&47===B())break;return"/*"+A(V,t,H-1)+"*"+O(47===e?e:Y())}(Y(),H),n,r,Q,O(U),A(u,2,-2),0),c);break;default:R+="/"}break;case 123*v:l[d++]=P(R)*b;case 125*v:case 59:case 0:switch(w){case 0:case 125:y=0;case 59+f:-1==b&&(R=T(R,/\f/g,"")),g>0&&P(R)-h&&N(g>32?eo(R+";",i,r,h-1):eo(T(R," ","")+";",i,r,h-2),c);break;case 59:R+=";";default:if(N(x=ei(R,n,r,d,f,o,l,E,S=[],_=[],h),a),123===w){if(0===f)e(R,n,x,x,S,a,h,l,_);else switch(99===p&&110===I(R,3)?100:p){case 100:case 108:case 109:case 115:e(t,x,x,i&&N(ei(t,x,x,0,0,o,l,E,o,S=[],h),_),o,_,h,l,i?S:_);break;default:e(R,x,x,x,[""],_,0,l,_)}}}d=f=g=0,v=b=1,E=R="",h=s;break;case 58:h=1+P(R),g=m;default:if(v<1){if(123==w)--v;else if(125==w&&0==v++&&125==(U=H>0?I(V,--H):0,L--,10===U&&(L=1,j--),U))continue}switch(R+=O(w),w*v){case 38:b=f>0?1:(R+="\f",-1);break;case 44:l[d++]=(P(R)-1)*b,b=1;break;case 64:45===B()&&(R+=$(Y())),p=B(),f=h=P(E=R+=function(e){for(;!G(B());)Y();return A(V,e,H)}(H)),w++;break;case 45:45===m&&2==P(R)&&(v=0)}}return a}("",null,null,null,[""],t=X(t=e),0,[0],t),V="",n),f)};o=function(e,t,n,r){a=n,h(e?e+"{"+t.styles+"}":t.styles),r&&(p.inserted[t.name]=!0)};var p={key:s,sheet:new C({key:s,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:u,registered:{},insert:o};return p.sheet.hydrate(d),p}({key:"css"}):null);eD.Provider;var eO=v.createContext({}),ek={}.hasOwnProperty,eT="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",eM=function(e,t){var n={};for(var r in t)ek.call(t,r)&&(n[r]=t[r]);return n[eT]=e,n},eI=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return eh(t,n,r),eC(function(){return ep(t,n,r)}),null},eA=(h=function(e,t,n){var r,i,o,a=e.css;"string"==typeof a&&void 0!==t.registered[a]&&(a=t.registered[a]);var s=e[eT],l=[a],c="";"string"==typeof e.className?(r=t.registered,i=e.className,o="",i.split(" ").forEach(function(e){void 0!==r[e]?l.push(r[e]+";"):e&&(o+=e+" ")}),c=o):null!=e.className&&(c=e.className+" ");var u=ex(l,void 0,v.useContext(eO));c+=t.key+"-"+u.name;var d={};for(var f in e)ek.call(e,f)&&"css"!==f&&f!==eT&&(d[f]=e[f]);return d.className=c,n&&(d.ref=n),v.createElement(v.Fragment,null,v.createElement(eI,{cache:t,serialized:u,isStringTag:"string"==typeof s}),v.createElement(s,d))},(0,v.forwardRef)(function(e,t){return h(e,(0,v.useContext)(eD),t)}));n(5985);var eP=function(e,t){var n=arguments;if(null==t||!ek.call(t,"css"))return v.createElement.apply(void 0,n);var r=n.length,i=Array(r);i[0]=eA,i[1]=eM(e,t);for(var o=2;o<r;o++)i[o]=n[o];return v.createElement.apply(null,i)};function eN(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return ex(t)}!function(e){var t;t||(t=e.JSX||(e.JSX={}))}(eP||(eP={}));var ej=n(3144);let eL=Math.min,eF=Math.max,eH=Math.round,eU=Math.floor,eV=e=>({x:e,y:e});function ez(){return"undefined"!=typeof window}function eW(e){return eG(e)?(e.nodeName||"").toLowerCase():"#document"}function eY(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function eB(e){var t;return null==(t=(eG(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function eG(e){return!!ez()&&(e instanceof Node||e instanceof eY(e).Node)}function eX(e){return!!ez()&&(e instanceof Element||e instanceof eY(e).Element)}function e$(e){return!!ez()&&(e instanceof HTMLElement||e instanceof eY(e).HTMLElement)}function eq(e){return!!ez()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof eY(e).ShadowRoot)}function eK(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=eZ(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==i&&"contents"!==i}function eZ(e){return eY(e).getComputedStyle(e)}function eQ(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function e(t){let n=function(e){if("html"===eW(e))return e;let t=e.assignedSlot||e.parentNode||eq(e)&&e.host||eB(e);return eq(t)?t.host:t}(t);return/^(html|body|#document)$/.test(eW(n))?t.ownerDocument?t.ownerDocument.body:t.body:e$(n)&&eK(n)?n:e(n)}(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),a=eY(i);if(!o)return t.concat(i,eQ(i,[],n));{let e=eJ(a);
1return t.concat(a,a.visualViewport||[],eK(i)?i:[],e&&n?eQ(e):[])}}function eJ(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function e0(e){return eX(e)?e:e.contextElement}function e1(e){let t=e0(e);if(!e$(t))return eV(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:o}=function(e){let t=eZ(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=e$(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=eH(n)!==o||eH(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}(t),a=(o?eH(n.width):n.width)/r,s=(o?eH(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}let e2=eV(0);function e3(e,t,n,i){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let a=e.getBoundingClientRect(),s=e0(e),l=eV(1);t&&(i?eX(i)&&(l=e1(i)):l=e1(e));let c=(void 0===(o=n)&&(o=!1),i&&(!o||i===eY(s))&&o)?function(e){let t=eY(e);return(null==r&&(r="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),r&&t.visualViewport)?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:e2}(s):eV(0),u=(a.left+c.x)/l.x,d=(a.top+c.y)/l.y,f=a.width/l.x,h=a.height/l.y;if(s){let e=eY(s),t=i&&eX(i)?eY(i):i,n=e,r=eJ(n);for(;r&&i&&t!==n;){let e=e1(r),t=r.getBoundingClientRect(),i=eZ(r),o=t.left+(r.clientLeft+parseFloat(i.paddingLeft))*e.x,a=t.top+(r.clientTop+parseFloat(i.paddingTop))*e.y;u*=e.x,d*=e.y,f*=e.x,h*=e.y,u+=o,d+=a,r=eJ(n=eY(r))}}return function(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}({width:f,height:h,x:u,y:d})}function e4(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}var e5=v.useLayoutEffect,e6=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],e9=function(){};function e8(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=[].concat(r);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&o.push("".concat(a?"-"===a[0]?e+a:e+"__"+a:e));return o.filter(function(e){return e}).map(function(e){return String(e).trim()}).join(" ")}var e7=function(e){return Array.isArray(e)?e.filter(Boolean):"object"===i(e)&&null!==e?[e]:[]},te=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,l({},f(e,e6))},tt=function(e,t,n){var r=e.cx,i=e.getStyles,o=e.getClassNames,a=e.className;return{css:i(t,e),className:r(null!=n?n:{},o(t,e),a)}};function tn(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function tr(e){return tn(e)?window.pageYOffset:e.scrollTop}function ti(e,t){if(tn(e)){window.scrollTo(0,t);return}e.scrollTop=t}function to(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e9,i=tr(e),o=t-i,a=0;!function t(){var s;a+=10,ti(e,o*((s=(s=a)/n-1)*s*s+1)+i),a<n?window.requestAnimationFrame(t):r(e)}()}function ta(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.offsetHeight/3;r.bottom+i>n.bottom?ti(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<n.top&&ti(e,Math.max(t.offsetTop-i,0))}function ts(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var tl=!1,tc="undefined"!=typeof window?window:{};tc.addEventListener&&tc.removeEventListener&&(tc.addEventListener("p",e9,{get passive(){return tl=!0}}),tc.removeEventListener("p",e9,!1));var tu=tl;function td(e){return null!=e}var tf=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Object.entries(e).filter(function(e){var t=d(e,1)[0];return!n.includes(t)}).reduce(function(e,t){var n=d(t,2),r=n[0],i=n[1];return e[r]=i,e},{})},th=["children","innerProps"],tp=["children","innerProps"],tg=function(e){return"auto"===e?"bottom":e},tm=(0,v.createContext)(null),tv=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,i=e.menuPlacement,o=e.menuPosition,a=e.menuShouldScrollIntoView,s=e.theme,c=((0,v.useContext)(tm)||{}).setPortalPlacement,u=(0,v.useRef)(null),f=d((0,v.useState)(r),2),h=f[0],p=f[1],g=d((0,v.useState)(null),2),m=g[0],y=g[1],b=s.spacing.controlHeight;return e5(function(){var e=u.current;if(e){var t="fixed"===o,s=function(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,o=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var u=l.getBoundingClientRect().height,d=n.getBoundingClientRect(),f=d.bottom,h=d.height,p=d.top,g=n.offsetParent.getBoundingClientRect().top,m=a?window.innerHeight:tn(l)?window.innerHeight:l.clientHeight,v=tr(l),y=parseInt(getComputedStyle(n).marginBottom,10),b=parseInt(getComputedStyle(n).marginTop,10),w=g-b,E=m-p,S=w+v,_=u-v-p,x=f-m+v+y,R=v+p-b;switch(i){case"auto":case"bottom":if(E>=h)return{placement:"bottom",maxHeight:t};if(_>=h&&!a)return o&&to(l,x,160),{placement:"bottom",maxHeight:t};if(!a&&_>=r||a&&E>=r)return o&&to(l,x,160),{placement:"bottom",maxHeight:a?E-y:_-y};if("auto"===i||a){var C=t,D=a?w:S;return D>=r&&(C=Math.min(D-y-s,t)),{placement:"top",maxHeight:C}}if("bottom"===i)return o&&ti(l,x),{placement:"bottom",maxHeight:t};break;case"top":if(w>=h)return{placement:"top",maxHeight:t};if(S>=h&&!a)return o&&to(l,R,160),{placement:"top",maxHeight:t};if(!a&&S>=r||a&&w>=r){var O=t;return(!a&&S>=r||a&&w>=r)&&(O=a?w-b:S-b),o&&to(l,R,160),{placement:"top",maxHeight:O}}return{placement:"bottom",maxHeight:t};default:throw Error('Invalid placement provided "'.concat(i,'".'))}return c}({maxHeight:r,menuEl:e,minHeight:n,placement:i,shouldScroll:a&&!t,isFixedPosition:t,controlHeight:b});p(s.maxHeight),y(s.placement),null==c||c(s.placement)}},[r,i,o,a,n,c,b]),t({ref:u,placerProps:l(l({},e),{},{placement:m||tg(i),maxHeight:h})})},ty=function(e,t){var n=e.theme,r=n.spacing.baseUnit,i=n.colors;return l({textAlign:"center"},t?{}:{color:i.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},tb=["size"],tw=["innerProps","isRtl","size"],tE={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},tS=function(e){var t=e.size,n=f(e,tb);return eP("svg",w({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:tE},n))},t_=function(e){return eP(tS,w({size:20},e),eP("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},tx=function(e){return eP(tS,w({size:20},e),eP("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},tR=function(e,t){var n=e.isFocused,r=e.theme,i=r.spacing.baseUnit,o=r.colors;
1return l({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?o.neutral60:o.neutral20,padding:2*i,":hover":{color:n?o.neutral80:o.neutral40}})},tC=function(){var e=eN.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(m||(m=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"]))),tD=function(e){var t=e.delay,n=e.offset;return eP("span",{css:eN({animation:"".concat(tC," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},tO=["data"],tk=["innerRef","isDisabled","isHidden","inputClassName"],tT={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},tM={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":l({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},tT)},tI=function(e){var t=e.children,n=e.innerProps;return eP("div",n,t)},tA={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return eP("div",w({},tt(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||eP(t_,null))},Control:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.innerRef,o=e.innerProps,a=e.menuIsOpen;return eP("div",w({ref:i},tt(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":a}),o,{"aria-disabled":n||void 0}),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return eP("div",w({},tt(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||eP(tx,null))},DownChevron:tx,CrossIcon:t_,Group:function(e){var t=e.children,n=e.cx,r=e.getStyles,i=e.getClassNames,o=e.Heading,a=e.headingProps,s=e.innerProps,l=e.label,c=e.theme,u=e.selectProps;return eP("div",w({},tt(e,"group",{group:!0}),s),eP(o,w({},a,{selectProps:u,theme:c,getStyles:r,getClassNames:i,cx:n}),l),eP("div",null,t))},GroupHeading:function(e){var t=te(e);t.data;var n=f(t,tO);return eP("div",w({},tt(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return eP("div",w({},tt(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return eP("span",w({},t,tt(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=te(e),i=r.innerRef,o=r.isDisabled,a=r.isHidden,s=r.inputClassName,c=f(r,tk);return eP("div",w({},tt(e,"input",{"input-container":!0}),{"data-value":n||""}),eP("input",w({className:t({input:!0},s),ref:i,style:l({label:"input",color:"inherit",background:0,opacity:a?0:1,width:"100%"},tT),disabled:o},c)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,i=f(e,tw);return eP("div",w({},tt(l(l({},i),{},{innerProps:t,isRtl:n,size:void 0===r?4:r}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),eP(tD,{delay:0,offset:n}),eP(tD,{delay:160,offset:!0}),eP(tD,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return eP("div",w({},tt(e,"menu",{menu:!0}),{ref:n},r),t)},MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,i=e.isMulti;return eP("div",w({},tt(e,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,r=e.controlElement,i=e.innerProps,o=e.menuPlacement,a=e.menuPosition,s=(0,v.useRef)(null),c=(0,v.useRef)(null),u=d((0,v.useState)(tg(o)),2),f=u[0],h=u[1],p=(0,v.useMemo)(function(){return{setPortalPlacement:h}},[]),g=d((0,v.useState)(null),2),m=g[0],y=g[1],b=(0,v.useCallback)(function(){if(r){var e,t={bottom:(e=r.getBoundingClientRect()).bottom,height:e.height,left:e.left,right:e.right,top:e.top,width:e.width},n="fixed"===a?0:window.pageYOffset,i=t[f]+n;(i!==(null==m?void 0:m.offset)||t.left!==(null==m?void 0:m.rect.left)||t.width!==(null==m?void 0:m.rect.width))&&y({offset:i,rect:t})}},[r,a,f,null==m?void 0:m.offset,null==m?void 0:m.rect.left,null==m?void 0:m.rect.width]);e5(function(){b()},[b]);var E=(0,v.useCallback)(function(){"function"==typeof c.current&&(c.current(),c.current=null),r&&s.current&&(c.current=function(e,t,n,r){let i;void 0===r&&(r={});let{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,u=e0(e),d=o||a?[...u?eQ(u):[],...t?eQ(t):[]]:[];
1d.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)});let f=u&&l?function(e,t){let n,r=null,i=eB(e);function o(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),o();let c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:h}=c;if(s||t(),!f||!h)return;let p=eU(d),g=eU(i.clientWidth-(u+f)),m={rootMargin:-p+"px "+-g+"px "+-eU(i.clientHeight-(d+h))+"px "+-eU(u)+"px",threshold:eF(0,eL(1,l))||1},v=!0;function y(t){let r=t[0].intersectionRatio;if(r!==l){if(!v)return a();r?a(!1,r):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==r||e4(c,e.getBoundingClientRect())||a(),v=!1}try{r=new IntersectionObserver(y,{...m,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(y,m)}r.observe(e)}(!0),o}(u,n):null,h=-1,p=null;s&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===u&&p&&t&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var e;null==(e=p)||e.observe(t)})),n()}),u&&!c&&p.observe(u),t&&p.observe(t));let g=c?e3(e):null;return c&&function t(){let r=e3(e);g&&!e4(g,r)&&n(),g=r,i=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{o&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=p)||e.disconnect(),p=null,c&&cancelAnimationFrame(i)}}(r,s.current,b,{elementResize:"ResizeObserver"in window}))},[r,b]);e5(function(){E()},[E]);var S=(0,v.useCallback)(function(e){s.current=e,E()},[E]);if(!t&&"fixed"!==a||!m)return null;var _=eP("div",w({ref:S},tt(l(l({},e),{},{offset:m.offset,position:a,rect:m.rect}),"menuPortal",{"menu-portal":!0}),i),n);return eP(tm.Provider,{value:p},t?(0,ej.createPortal)(_,t):_)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,i=f(e,tp);return eP("div",w({},tt(l(l({},i),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,r=e.innerProps,i=f(e,th);return eP("div",w({},tt(l(l({},i),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:function(e){var t=e.children,n=e.components,r=e.data,i=e.innerProps,o=e.isDisabled,a=e.removeProps,s=e.selectProps,c=n.Container,u=n.Label,d=n.Remove;return eP(c,{data:r,innerProps:l(l({},tt(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":o})),i),selectProps:s},eP(u,{data:r,innerProps:l({},tt(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),eP(d,{data:r,innerProps:l(l({},tt(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:s}))},MultiValueContainer:tI,MultiValueLabel:tI,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return eP("div",w({role:"button"},n),t||eP(t_,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.isSelected,o=e.innerRef,a=e.innerProps;return eP("div",w({},tt(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":i}),{ref:o,"aria-disabled":n},a),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return eP("div",w({},tt(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,i=e.isRtl;return eP("div",w({},tt(e,"container",{"--is-disabled":r,"--is-rtl":i}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return eP("div",w({},tt(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,i=e.hasValue;return eP("div",w({},tt(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":i}),n),t)}},tP=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function tN(e,t){if(e.length!==t.length)return!1;for(var n,r,i=0;i<e.length;i++)if(!((n=e[i])===(r=t[i])||tP(n)&&tP(r)))return!1;return!0}for(var tj={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},tL=function(e){return eP("span",w({css:tj},e))},tF={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,i=e.context,o=e.isInitialFocus;switch(i){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return o?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,i=e.labels,o=e.isDisabled;
1switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(i.length>1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return o?"option ".concat(r," is disabled. Select another option."):"option ".concat(r,", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,i=e.label,o=void 0===i?"":i,a=e.selectValue,s=e.isDisabled,l=e.isSelected,c=e.isAppleDevice,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(o," focused, ").concat(u(a,n),".");if("menu"===t&&c){var d="".concat(l?" selected":"").concat(s?" disabled":"");return"".concat(o).concat(d,", ").concat(u(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},tH=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,i=e.focusableOptions,o=e.isFocused,a=e.selectValue,s=e.selectProps,c=e.id,u=e.isAppleDevice,d=s.ariaLiveMessages,f=s.getOptionLabel,h=s.inputValue,p=s.isMulti,g=s.isOptionDisabled,m=s.isSearchable,y=s.menuIsOpen,b=s.options,w=s.screenReaderStatus,E=s.tabSelectsValue,S=s.isLoading,_=s["aria-label"],x=s["aria-live"],R=(0,v.useMemo)(function(){return l(l({},tF),d||{})},[d]),C=(0,v.useMemo)(function(){var e="";if(t&&R.onChange){var n=t.option,r=t.options,i=t.removedValue,o=t.removedValues,s=t.value,c=i||n||(Array.isArray(s)?null:s),u=c?f(c):"",d=r||o||void 0,h=d?d.map(f):[],p=l({isDisabled:c&&g(c,a),label:u,labels:h},t);e=R.onChange(p)}return e},[t,R,g,a,f]),D=(0,v.useMemo)(function(){var e="",t=n||r,o=!!(n&&a&&a.includes(n));if(t&&R.onFocus){var s={focused:t,label:f(t),isDisabled:g(t,a),isSelected:o,options:i,context:t===n?"menu":"value",selectValue:a,isAppleDevice:u};e=R.onFocus(s)}return e},[n,r,f,g,R,i,a,u]),O=(0,v.useMemo)(function(){var e="";if(y&&b.length&&!S&&R.onFilter){var t=w({count:i.length});e=R.onFilter({inputValue:h,resultsMessage:t})}return e},[i,h,y,R,b,w,S]),k=(null==t?void 0:t.action)==="initial-input-focus",T=(0,v.useMemo)(function(){var e="";if(R.guidance){var t=r?"value":y?"menu":"input";e=R.guidance({"aria-label":_,context:t,isDisabled:n&&g(n,a),isMulti:p,isSearchable:m,tabSelectsValue:E,isInitialFocus:k})}return e},[_,n,r,p,g,m,y,R,a,E,k]),M=eP(v.Fragment,null,eP("span",{id:"aria-selection"},C),eP("span",{id:"aria-focused"},D),eP("span",{id:"aria-results"},O),eP("span",{id:"aria-guidance"},T));return eP(v.Fragment,null,eP(tL,{id:c},k&&M),eP(tL,{"aria-live":x,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},o&&!k&&M))},tU=[{base:"A",letters:"Aâ¶ï¼¡\xc0\xc1\xc2ẦẤẪẨ\xc3ÄÄáº°áº®áº´áº²È¦Ç \xc4ÇẢ\xc5ǺÇÈÈẠẬẶá¸ÄȺⱯ"},{base:"AA",letters:"ê²"},{base:"AE",letters:"\xc6ǼǢ"},{base:"AO",letters:"ê´"},{base:"AU",letters:"ê¶"},{base:"AV",letters:"ê¸êº"},{base:"AY",letters:"ê¼"},{base:"B",letters:"Bâ·ï¼¢á¸á¸á¸ÉÆÆ"},{base:"C",letters:"Câ¸ï¼£ÄÄÄÄ\xc7á¸ÆÈ»ê¾"},{base:"D",letters:"Dâ¹ï¼¤á¸Äá¸á¸á¸á¸ÄÆÆÆê¹"},{base:"DZ",letters:"DZÇ"},{base:"Dz",letters:"DzÇ
"},{base:"E",letters:"Eâºï¼¥\xc8\xc9\xcaá»áº¾á»á»áº¼Äá¸á¸ÄÄ\xcbẺÄÈÈẸá»È¨á¸Äá¸á¸ÆÆ"},{base:"F",letters:"Fâ»ï¼¦á¸Æê»"},{base:"G",letters:"Gâ¼ï¼§Ç´ÄḠÄÄ Ç¦Ä¢Ç¤Æê ê½ê¾"},{base:"H",letters:"Hâ½ï¼¨Ä¤á¸¢á¸¦ÈḤḨḪĦⱧⱵê"},{base:"I",letters:"Iâ¾ï¼©\xcc\xcd\xceĨĪĬİ\xcfḮá»ÇÈÈá»Ä®á¸¬Æ"},{base:"J",letters:"Jâ¿ï¼ªÄ´É"},{base:"K",letters:"KâKḰǨḲĶḴÆâ±©êêêê¢"},{base:"L",letters:"LâLĿĹĽḶḸĻḼḺÅȽⱢⱠêêê"},{base:"LJ",letters:"Ç"},{base:"Lj",letters:"Ç"},{base:"M",letters:"Mâï¼á¸¾á¹á¹â±®Æ"},{base:"N",letters:"NâNǸÅ\xd1á¹Åá¹Å
á¹á¹È Æêê¤"},{base:"NJ",letters:"Ç"},{base:"Nj",letters:"Ç"},{base:"O",letters:"OâO\xd2\xd3\xd4á»á»á»á»\xd5á¹È¬á¹Åá¹á¹ÅȮȰ\xd6Ȫá»ÅÇÈÈÆ á»á»á» á»á»¢á»á»ÇªÇ¬\xd8Ç¾ÆÆêê"},{base:"OI",letters:"Æ¢"},{base:"OO",letters:"ê"},{base:"OU",letters:"È¢"},{base:"P",letters:"Pâ
ï¼°á¹á¹Æ¤â±£êêê"},{base:"Q",letters:"Qâï¼±êêÉ"}
1,{base:"R",letters:"Râï¼²Åá¹ÅÈÈá¹á¹Åá¹ÉⱤêê¦ê"},{base:"S",letters:"Sâï¼³áºÅṤÅṠŠṦṢṨÈÅâ±¾ê¨ê"},{base:"T",letters:"TâTṪŤṬÈŢṰṮŦƬƮȾê"},{base:"TZ",letters:"ê¨"},{base:"U",letters:"Uâï¼µ\xd9\xda\xdbŨṸŪṺŬ\xdcÇÇÇÇỦŮŰÇÈÈÆ¯á»ªá»¨á»®á»¬á»°á»¤á¹²Å²á¹¶á¹´É"},{base:"V",letters:"VâVṼṾƲêÉ
"},{base:"VY",letters:"ê "},{base:"W",letters:"Wâï¼·áºáºÅ´áºáºáºâ±²"},{base:"X",letters:"XâXáºáº"},{base:"Y",letters:"YâYỲ\xddŶỸȲáºÅ¸á»¶á»´Æ³ÉỾ"},{base:"Z",letters:"ZâZŹáºÅ»Å½áºáºÆµÈ¤â±¿â±«ê¢"},{base:"a",letters:"aâï½áº\xe0\xe1\xe2ầấẫẩ\xe3ÄÄằắẵẳȧǡ\xe4Çả\xe5Ç»ÇÈÈạáºáº·á¸Ä
â±¥É"},{base:"aa",letters:"ê³"},{base:"ae",letters:"\xe6ǽǣ"},{base:"ao",letters:"êµ"},{base:"au",letters:"ê·"},{base:"av",letters:"ê¹ê»"},{base:"ay",letters:"ê½"},{base:"b",letters:"bâï½á¸á¸
á¸ÆÆÉ"},{base:"c",letters:"câï½ÄÄÄÄ\xe7á¸ÆÈ¼ê¿â"},{base:"d",letters:"dâï½á¸Äá¸á¸á¸á¸ÄÆÉÉêº"},{base:"dz",letters:"dzÇ"},{base:"e",letters:"eâï½
\xe8\xe9\xeaá»áº¿á»
á»áº½Äá¸á¸ÄÄ\xebẻÄÈ
Èẹá»È©á¸Äá¸á¸ÉÉÇ"},{base:"f",letters:"fâï½á¸Æê¼"},{base:"g",letters:"gâï½ÇµÄḡÄÄ¡Ç§Ä£Ç¥É ê¡áµ¹ê¿"},{base:"h",letters:"hâï½Ä¥á¸£á¸§ÈḥḩḫáºÄ§â±¨â±¶É¥"},{base:"hv",letters:"Æ"},{base:"i",letters:"iâï½\xec\xed\xeeĩīÄ\xefḯá»ÇÈÈá»Ä¯á¸É¨Ä±"},{base:"j",letters:"jâï½ÄµÇ°É"},{base:"k",letters:"kâï½á¸±Ç©á¸³Ä·á¸µÆâ±ªêêê
ê£"},{base:"l",letters:"lâï½ÅÄºÄ¾á¸·á¸¹Ä¼á¸½á¸»Å¿ÅÆÉ«â±¡êêê"},{base:"lj",letters:"Ç"},{base:"m",letters:"mâï½á¸¿á¹á¹É±É¯"},{base:"n",letters:"nâï½Ç¹Å\xf1á¹
Åá¹Åá¹á¹ÆÉ²Åêê¥"},{base:"nj",letters:"Ç"},{base:"o",letters:"oâï½\xf2\xf3\xf4á»á»á»á»\xf5á¹Èá¹Åá¹á¹Åȯȱ\xf6È«á»ÅÇÈÈÆ¡á»á»á»¡á»á»£á»á»Ç«Ç\xf8Ç¿Éêêɵ"},{base:"oi",letters:"Æ£"},{base:"ou",letters:"È£"},{base:"oo",letters:"ê"},{base:"p",letters:"pâï½á¹á¹Æ¥áµ½êêê"},{base:"q",letters:"qâ ï½Éêê"},{base:"r",letters:"râ¡ï½Åá¹ÅÈÈá¹á¹Åá¹Éɽêê§ê"},{base:"s",letters:"sâ¢ï½\xdfÅá¹¥ÅṡšṧṣṩÈÅÈ¿ê©ê
áº"},{base:"t",letters:"tâ£ï½á¹«áºÅ¥á¹ÈţṱṯŧÆÊⱦê"},{base:"tz",letters:"ê©"},{base:"u",letters:"uâ¤ï½\xf9\xfa\xfbũṹūṻÅ\xfcÇÇÇÇủůűÇÈÈÆ°á»«á»©á»¯á»á»±á»¥á¹³Å³á¹·á¹µÊ"},{base:"v",letters:"vâ¥ï½á¹½á¹¿ÊêÊ"},{base:"vy",letters:"ê¡"},{base:"w",letters:"wâ¦ï½áºáºÅµáºáº
áºáºâ±³"},{base:"x",letters:"xâ§ï½áºáº"},{base:"y",letters:"yâ¨ï½á»³\xfdŷỹȳáº\xffá»·áºá»µÆ´Éỿ"},{base:"z",letters:"zâ©ï½ÅºáºÅ¼Å¾áºáºÆ¶È¥Éⱬê£"}],tV=RegExp("["+tU.map(function(e){return e.letters}).join("")+"]","g"),tz={},tW=0;tW<tU.length;tW++)for(var tY=tU[tW],tB=0;tB<tY.letters.length;tB++)tz[tY.letters[tB]]=tY.base;var tG=function(e){return e.replace(tV,function(e){return tz[e]})},tX=function(e,t){void 0===t&&(t=tN);var n=null;function r(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var o=e.apply(this,r);return n={lastResult:o,lastArgs:r,lastThis:this},o}return r.clear=function(){n=null},r}(tG),t$=function(e){return e.replace(/^\s+|\s+$/g,"")},tq=function(e){return"".concat(e.label," ").concat(e.value)},tK=["innerRef"];function tZ(e){var t=e.innerRef,n=tf(f(e,tK),"onExited","in","enter","exit","appear");return eP("input",w({ref:t},n,{css:eN({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var tQ=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()},tJ=["boxSizing","height","overflow","paddingRight","position"],t0={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function t1(e){e.cancelable&&e.preventDefault()}function t2(e){e.stopPropagation()}function t3(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function t4(){return"ontouchstart"in window||navigator.maxTouchPoints}var t5=!!("undefined"!=typeof window&&window.document&&window.document.createElement),t6=0,t9={capture:!1,passive:!1},t8=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},t7={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function ne(e){var t,n,r,i,o,a,s,l,c,u,d,f,h,p,g,m,y,b,w,E,S,_,x,R,C=e.children,D=e.lockEnabled,O=e.captureEnabled,k=(n=(t={isEnabled:void 0===O||O,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}).isEnabled,r=t.onBottomArrive,i=t.onBottomLeave,o=t.onTopArrive,a=t.onTopLeave,s=(0,v.useRef)(!1),l=(0,v.useRef)(!1),c=(0,v.useRef)(0),u=(0,v.useRef)(null),d=(0,v.useCallback)(function(e,t){if(null!==u.current){var n=u.current,c=n.scrollTop,d=n.scrollHeight,f=n.clientHeight,h=u.current,p=t>0,g=d-f-c,m=!1;g>t&&s.current&&(i&&i(e),s.current=!1),p&&l.current&&(a&&a(e),l.current=!1),p&&t>g?(r&&!s.current&&r(e),h.scrollTop=d,m=!0,s.current=!0):!p&&-t>c&&(o&&!l.current&&o(e),h.scrollTop=0,m=!0,l.current=!0),m&&tQ(e)}},[r,i,o,a]),f=(0,v.useCallback)(function(e){d(e,e.deltaY)},[d]),h=(0,v.useCallback)(function(e){c.current=e.changedTouches[0].clientY},[]),p=(0,v.useCallback)(function(e){var t=c.current-e.changedTouches[0].clientY;d(e,t)},[d]),g=(0,v.useCallback)(function(e){if(e){var t=!!tu&&{passive:!1};e.addEventListener("wheel",f,t),e.addEventListener("touchstart",h,t),e.addEventListener("touchmove",p,t)}},[p,h,f]),m=(0,v.useCallback)(function(e){e&&(e.removeEventListener("wheel",f,!1),e.removeEventListener("touchstart",h,!1),e.removeEventListener("touchmove",p,!1))},[p,h,f]),(0,v.useEffect)(function(){if(n){var e=u.current;return g(e),function(){m(e)}}},[n,g,m]),function(e){u.current=e}),T=(b=(y={isEnabled:D}).isEnabled,E=void 0===(w=y.accountForScrollbars)||w,S=(0,v.useRef)({}),_=(0,v.useRef)(null),x=(0,v.useCallback)(function(e){if(t5){var t=document.body,n=t&&t.style;if(E&&tJ.forEach(function(e){var t=n&&n[e];S.current[e]=t}),E&&t6<1){var r=parseInt(S.current.paddingRight,10)||0,i=document.body?document.body.clientWidth:0,o=window.innerWidth-i+r||0;
vendor: 5,381 bytes, line 1
1Object.keys(t0).forEach(function(e){var t=t0[e];n&&(n[e]=t)}),n&&(n.paddingRight="".concat(o,"px"))}t&&t4()&&(t.addEventListener("touchmove",t1,t9),e&&(e.addEventListener("touchstart",t3,t9),e.addEventListener("touchmove",t2,t9))),t6+=1}},[E]),R=(0,v.useCallback)(function(e){if(t5){var t=document.body,n=t&&t.style;t6=Math.max(t6-1,0),E&&t6<1&&tJ.forEach(function(e){var t=S.current[e];n&&(n[e]=t)}),t&&t4()&&(t.removeEventListener("touchmove",t1,t9),e&&(e.removeEventListener("touchstart",t3,t9),e.removeEventListener("touchmove",t2,t9)))}},[E]),(0,v.useEffect)(function(){if(b){var e=_.current;return x(e),function(){R(e)}}},[b,x,R]),function(e){_.current=e});return eP(v.Fragment,null,D&&eP("div",{onClick:t8,css:t7}),C(function(e){k(e),T(e)}))}var nt={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},nn=function(e){var t=e.name,n=e.onFocus;return eP("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:nt,value:"",onChange:function(){}})};function nr(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}var ni={clearIndicator:tR,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,i=e.theme,o=i.colors,a=i.borderRadius;return l({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:i.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?o.neutral5:o.neutral0,borderColor:n?o.neutral10:r?o.primary:o.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(o.primary):void 0,"&:hover":{borderColor:r?o.primary:o.neutral30}})},dropdownIndicator:tR,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,i=n.spacing;return l({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*i.baseUnit,paddingRight:3*i.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,i=r.spacing.baseUnit,o=r.colors;return l({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?o.neutral10:o.neutral20,marginBottom:2*i,marginTop:2*i})},input:function(e,t){var n=e.isDisabled,r=e.value,i=e.theme,o=i.spacing,a=i.colors;return l(l({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},tM),t?{}:{margin:o.baseUnit/2,paddingBottom:o.baseUnit/2,paddingTop:o.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,i=e.theme,o=i.colors,a=i.spacing.baseUnit;return l({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?o.neutral60:o.neutral20,padding:2*a})},loadingMessage:ty,menu:function(e,t){var n,r=e.placement,i=e.theme,o=i.borderRadius,s=i.spacing,c=i.colors;return l((a(n={label:"menu"},r?({bottom:"top",top:"bottom"})[r]:"bottom","100%"),a(n,"position","absolute"),a(n,"width","100%"),a(n,"zIndex",1),n),t?{}:{backgroundColor:c.neutral0,borderRadius:o,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return l({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,i=n.borderRadius,o=n.colors;return l({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:o.neutral10,borderRadius:i/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,i=n.colors,o=e.cropWithEllipsis;return l({overflow:"hidden",textOverflow:o||void 0===o?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,i=n.borderRadius,o=n.colors,a=e.isFocused;return l({alignItems:"center",display:"flex"},t?{}:{borderRadius:i/2,backgroundColor:a?o.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}})},noOptionsMessage:ty,option:function(e,t){var n=e.isDisabled,r=e.isFocused,i=e.isSelected,o=e.theme,a=o.spacing,s=o.colors;return l({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:i?s.primary:r?s.primary25:"transparent",color:n?s.neutral20:i?s.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:i?s.primary:s.primary50}})}
vendor: 4,121 bytes, line 1
1,placeholder:function(e,t){var n=e.theme,r=n.spacing,i=n.colors;return l({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:i.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,i=r.spacing,o=r.colors;return l({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?o.neutral40:o.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,i=e.hasValue,o=e.selectProps.controlShouldRenderValue;return l({alignItems:"center",display:r&&i&&o?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},no={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},na={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:ts(),captureMenuScroll:!ts(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=l({ignoreCase:!0,ignoreAccents:!0,stringify:tq,trim:!0,matchFrom:"any"},void 0),r=n.ignoreCase,i=n.ignoreAccents,o=n.stringify,a=n.trim,s=n.matchFrom,c=a?t$(t):t,u=a?t$(o(e)):o(e);return r&&(c=c.toLowerCase(),u=u.toLowerCase()),i&&(c=tX(c),u=tG(u)),"start"===s?u.substr(0,c.length)===c:u.indexOf(c)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function ns(e,t,n,r){var i=ng(e,t,n),o=nm(e,t,n),a=nh(e,t),s=np(e,t);return{type:"option",data:t,isDisabled:i,isSelected:o,label:a,value:s,index:r}}function nl(e,t){return e.options.map(function(n,r){if("options"in n){var i=n.options.map(function(n,r){return ns(e,n,t,r)}).filter(function(t){return nd(e,t)});return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var o=ns(e,n,t,r);return nd(e,o)?o:void 0}).filter(td)}function nc(e){return e.reduce(function(e,t){return"group"===t.type?e.push.apply(e,R(t.options.map(function(e){return e.data}))):e.push(t.data),e},[])}function nu(e,t){return e.reduce(function(e,n){return"group"===n.type?e.push.apply(e,R(n.options.map(function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}}))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e},[])}function nd(e,t){var n=e.inputValue,r=t.data,i=t.isSelected,o=t.label,a=t.value;return(!ny(e)||!i)&&nv(e,{label:o,value:a,data:r},void 0===n?"":n)}var nf=function(e,t){var n;return(null===(n=e.find(function(e){return e.data===t}))||void 0===n?void 0:n.id)||null},nh=function(e,t){return e.getOptionLabel(t)},np=function(e,t){return e.getOptionValue(t)};function ng(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function nm(e,t,n){if(n.indexOf(t)>-1)return!0;
1if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=np(e,t);return n.some(function(t){return np(e,t)===r})}function nv(e,t,n){return!e.filterOption||e.filterOption(t,n)}var ny=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},nb=1,nw=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&S(e,t)}(a,e);var t,n,r,o=(t=x(),function(){var e,n=_(a);return e=t?Reflect.construct(n,arguments,_(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"==i(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function a(e){var t;if(!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,i=r.onChange,o=r.name;n.name=o,t.ariaOnChange(e,n),i(e,n)},t.setValue=function(e,n,r){var i=t.props,o=i.closeMenuOnSelect,a=i.isMulti,s=i.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:s}),o&&(t.setState({inputIsHiddenAfterUpdate:!a}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,i=n.isMulti,o=n.name,a=t.state.selectValue,s=i&&t.isOptionSelected(e,a),l=t.isOptionDisabled(e,a);if(s){var c=t.getOptionValue(e);t.setValue(a.filter(function(e){return t.getOptionValue(e)!==c}),"deselect-option",e)}else if(l){t.ariaOnChange(e,{action:"select-option",option:e,name:o});return}else i?t.setValue([].concat(R(a),[e]),"select-option",e):t.setValue(e,"select-option");r&&t.blurInput()},t.removeValue=function(e){var n,r=t.props.isMulti,i=t.state.selectValue,o=t.getOptionValue(e),a=i.filter(function(e){return t.getOptionValue(e)!==o}),s=(n=a[0]||null,r?a:n);t.onChange(s,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e,n,r=t.state.selectValue;t.onChange((e=t.props.isMulti,n=[],e?n:null),{action:"clear",removedValues:r})},t.popValue=function(){var e,n=t.props.isMulti,r=t.state.selectValue,i=r[r.length-1],o=r.slice(0,r.length-1),a=(e=o[0]||null,n?o:e);i&&t.onChange(a,{action:"pop-value",removedValue:i})},t.getFocusedOptionId=function(e){return nf(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return nu(nl(t.props,t.state.selectValue),t.getElementId("option"))},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return e8.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return nh(t.props,e)},t.getOptionValue=function(e){return np(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,i=ni[e](n,r);i.boxSizing="border-box";var o=t.props.styles[e];return o?o(i,n):i},t.getClassNames=function(e,n){var r,i;return null===(r=(i=t.props.classNames)[e])||void 0===r?void 0:r.call(i,n)},t.getElementId=function(e){return"".concat(t.state.instancePrefix,"-").concat(e)},t.getComponents=function(){var e;return e=t.props,l(l({},tA),e.components)},t.buildCategorizedOptions=function(){return nl(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return nc(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:l({value:e},n)})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){if(!e.defaultPrevented){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():n&&t.openMenu("first"):(n&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},t.onDropdownIndicatorMouseDown=function(e){if((!e||"mousedown"!==e.type||0===e.button)&&!t.props.isDisabled){var n=t.props,r=n.isMulti,i=n.menuIsOpen;t.focusInput(),i?(t.setState({inputIsHiddenAfterUpdate:!r}),t.onMenuClose()):t.openMenu("first"),e.preventDefault()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.preventDefault(),t.openAfterFocus=!1,"touchend"===e.type?t.focu
vendor: 6,635 bytes, line 1
1sInput():setTimeout(function(){return t.focusInput()}))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&tn(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var i=Math.abs(r.clientX-t.initialTouchX),o=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=i>5||o>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,r=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(r,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;if(t.menuListRef&&t.menuListRef.contains(document.activeElement)){t.inputRef.focus();return}t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1})},t.onOptionHover=function(e){if(!t.blockOptionHover&&t.state.focusedOption!==e){var n=t.getFocusableOptions().indexOf(e);t.setState({focusedOption:e,focusedOptionId:n>-1?t.getFocusedOptionId(e):null})}},t.shouldHideSelectedOptions=function(){return ny(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,i=n.backspaceRemovesValue,o=n.escapeClearsValue,a=n.inputValue,s=n.isClearable,l=n.isDisabled,c=n.menuIsOpen,u=n.onKeyDown,d=n.tabSelectsValue,f=n.openMenuOnFocus,h=t.state,p=h.focusedOption,g=h.focusedValue,m=h.selectValue;if(!l){if("function"==typeof u&&(u(e),e.defaultPrevented))return;switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||a)return;t.focusValue("previous");break;case"ArrowRight":if(!r||a)return;t.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(g)t.removeValue(g);else{if(!i)return;r?t.popValue():s&&t.clearValue()}break;case"Tab":if(t.isComposing||e.shiftKey||!c||!d||!p||f&&t.isOptionSelected(p,m))return;t.selectOption(p);break;case"Enter":if(229===e.keyCode)break;if(c){if(!p||t.isComposing)return;t.selectOption(p);break}return;case"Escape":c?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:a}),t.onMenuClose()):s&&o&&t.clearValue();break;case" ":if(a)return;if(!c){t.openMenu("first");break}if(!p)return;t.selectOption(p);break;case"ArrowUp":c?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":c?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!c)return;t.focusOption("pageup");break;case"PageDown":if(!c)return;t.focusOption("pagedown");break;case"Home":if(!c)return;t.focusOption("first");break;case"End":if(!c)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.state.instancePrefix="react-select-"+(t.props.instanceId||++nb),t.state.selectValue=e7(e.value),e.menuIsOpen&&t.state.selectValue.length){var n=t.getFocusableOptionsWithIds(),r=t.buildFocusableOptions(),i=r.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=n,t.state.focusedOption=r[i],t.state.focusedOptionId=nf(n,r[i])}return t}return n=[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&ta(this.menuListRef,this.focusedOptionRef),(nr(/^Mac/i)||nr(/^iPhone/i)||nr(/^iPad/i)||nr(/^Mac/i)&&navigator.maxTouchPoints>1)&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,i=this.state.isFocused;(i&&!n&&e.isDisabled||i&&r&&!e.menuIsOpen)&&this.focusInput(),i&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):i||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(ta(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,i=n.isFocused,o=this.buildFocusableOptions(),a="first"===e?0:o.length-1;if(!this.props.isMulti){var s=o.indexOf(r[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:o[a],focusedOptionId:this.getFocusedOptionId(o[a])},function(){return t.onMenuOpen()})}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var i=n.indexOf(r);r||(i=-1);var o=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===i?0:-1===i?o:i-1;break;case"next":i>-1&&i<o&&(a=i+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var i=0,o=r.indexOf(n);
vendor: 4,418 bytes, line 1
1n||(o=-1),"up"===e?i=o>0?o-1:r.length-1:"down"===e?i=(o+1)%r.length:"pageup"===e?(i=o-t)<0&&(i=0):"pagedown"===e?(i=o+t)>r.length-1&&(i=r.length-1):"last"===e&&(i=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[i],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[i])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(no):l(l({},no),this.props.theme):no}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,i=this.getValue,o=this.selectOption,a=this.setValue,s=this.props,l=s.isMulti,c=s.isRtl,u=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:i,hasValue:this.hasValue(),isMulti:l,isRtl:c,options:u,selectOption:o,selectProps:s,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return ng(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return nm(this.props,e,t)}},{key:"filterOption",value:function(e,t){return nv(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"!=typeof this.props.formatOptionLabel)return this.getOptionLabel(e);var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,i=e.inputValue,o=e.tabIndex,a=e.form,s=e.menuIsOpen,c=e.required,u=this.getComponents().Input,d=this.state,f=d.inputIsHidden,h=d.ariaSelection,p=this.commonProps,g=r||this.getElementId("input"),m=l(l(l({"aria-autocomplete":"list","aria-expanded":s,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":c,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},s&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?(null==h?void 0:h.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?v.createElement(u,w({},p,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:g,innerRef:this.getInputRef,isDisabled:t,isHidden:f,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:o,form:a,type:"text",value:i},m)):v.createElement(tZ,w({id:g,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:e9,onFocus:this.onInputFocus,disabled:t,tabIndex:o,inputMode:"none",form:a,value:""},m))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,i=t.MultiValueLabel,o=t.MultiValueRemove,a=t.SingleValue,s=t.Placeholder,l=this.commonProps,c=this.props,u=c.controlShouldRenderValue,d=c.isDisabled,f=c.isMulti,h=c.inputValue,p=c.placeholder,g=this.state,m=g.selectValue,y=g.focusedValue,b=g.is
1Focused;if(!this.hasValue()||!u)return h?null:v.createElement(s,w({},l,{key:"placeholder",isDisabled:d,isFocused:b,innerProps:{id:this.getElementId("placeholder")}}),p);if(f)return m.map(function(t,a){var s=t===y,c="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return v.createElement(n,w({},l,{components:{Container:r,Label:i,Remove:o},isFocused:s,isDisabled:d,key:c,index:a,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))});if(h)return null;var E=m[0];return v.createElement(a,w({},l,{data:E,isDisabled:d}),this.formatOptionLabel(E,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,o=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||i)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return v.createElement(e,w({},t,{innerProps:a,isFocused:o}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,i=n.isLoading,o=this.state.isFocused;return e&&i?v.createElement(e,w({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:o})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,i=this.props.isDisabled,o=this.state.isFocused;return v.createElement(n,w({},r,{isDisabled:i,isFocused:o}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return v.createElement(e,w({},t,{innerProps:i,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e,t=this,n=this.getComponents(),r=n.Group,i=n.GroupHeading,o=n.Menu,a=n.MenuList,s=n.MenuPortal,l=n.LoadingMessage,c=n.NoOptionsMessage,u=n.Option,d=this.commonProps,f=this.state.focusedOption,h=this.props,p=h.captureMenuScroll,g=h.inputValue,m=h.isLoading,y=h.loadingMessage,b=h.minMenuHeight,E=h.maxMenuHeight,S=h.menuIsOpen,_=h.menuPlacement,x=h.menuPosition,R=h.menuPortalTarget,C=h.menuShouldBlockScroll,D=h.menuShouldScrollIntoView,O=h.noOptionsMessage,k=h.onMenuScrollToTop,T=h.onMenuScrollToBottom;if(!S)return null;var M=function(e,n){var r=e.type,i=e.data,o=e.isDisabled,a=e.isSelected,s=e.label,l=e.value,c=f===i,h=o?void 0:function(){return t.onOptionHover(i)},p=o?void 0:function(){return t.selectOption(i)},g="".concat(t.getElementId("option"),"-").concat(n),m={id:g,onClick:p,onMouseMove:h,onMouseOver:h,tabIndex:-1,role:"option","aria-selected":t.state.isAppleDevice?void 0:a};return v.createElement(u,w({},d,{innerProps:m,data:i,isDisabled:o,isSelected:a,key:g,label:s,type:r,value:l,isFocused:c,innerRef:c?t.getFocusedOptionRef:void 0}),t.formatOptionLabel(e.data,"menu"))};if(this.hasOptions())e=this.getCategorizedOptions().map(function(e){if("group"===e.type){var n=e.data,o=e.options,a=e.index,s="".concat(t.getElementId("group"),"-").concat(a),l="".concat(s,"-heading");return v.createElement(r,w({},d,{key:s,data:n,options:o,Heading:i,headingProps:{id:l,data:e.data},label:t.formatGroupLabel(e.data)}),e.options.map(function(e){return M(e,"".concat(a,"-").concat(e.index))}))}if("option"===e.type)return M(e,"".concat(e.index))});else if(m){var I=y({inputValue:g});if(null===I)return null;e=v.createElement(l,d,I)}else{var A=O({inputValue:g});if(null===A)return null;e=v.createElement(c,d,A)}var P={minMenuHeight:b,maxMenuHeight:E,menuPlacement:_,menuPosition:x,menuShouldScrollIntoView:D},N=v.createElement(tv,w({},d,P),function(n){var r=n.ref,i=n.placerProps,s=i.placement,l=i.maxHeight;return v.createElement(o,w({},d,P,{innerRef:r,innerProps:{onMouseDown:t.onMenuMouseDown,onMouseMove:t.onMenuMouseMove},isLoading:m,placement:s}),v.createElement(ne,{captureEnabled:p,onTopArrive:k,onBottomArrive:T,lockEnabled:C},function(n){return v.createElement(a,w({},d,{innerRef:function(e){t.getMenuListRef(e),n(e)},innerProps:{role:"listbox","aria-multiselectable":d.isMulti,id:t.getElementId("listbox")},isLoading:m,maxHeight:l,focusedOption:f}),e)}))});return R||"fixed"===x?v.createElement(s,w({},d,{appendTo:R,controlElement:this.controlRef,menuPlacement:_,menuPosition:x}),N):N}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,i=t.isMulti,o=t.name,a=t.required,s=this.state.selectValue;if(a&&!this.hasValue()&&!r)return v.createElement(nn,{name:o,onFocus:this.onValueInputFocus});if(o&&!r){if(i){if(n){var l=s.map(function(t){return e.getOptionValue(t)}).join(n);return v.createElement("input",{name:o,type:"hidden",value:l})}var c=s.length>0?s.map(function(t,n){return v.createElement("input",{key:"i-".concat(n),name:o,type:"hidden",value:e.getOptionValue(t)})}):v.createElement("input",{name:o,type:"hidden",value:""});return v.createElement("div",null,c)}var u=s[0]?this.getOptionValue(s[0]):"";return v.createElement("input",{name:o,type:"hidden",value:u})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,o=t.isFocused,a=t.selectValue,s=this.getFocusableOptions();return v.createElement(tH,w({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:i,isFocused:o,selectValue:a,focusableOptions:s,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,i=e.ValueContainer,o=this.props,a=o.className,s=o.id,l=o.isDisabled,c=o.menuIsOpen,u=this.state.isFocused,d=this.commonProps=this.getCommonProps();return v.createElement(r,w({},d,{className:a,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:l,isFocused:u}),this.renderLiveRegion(),v.createElement(t,w({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:l,isFocused:u,menuIsOpen:c}),v.createElement(i,w({},d,{isDisabled:l}),this.renderPlaceholderOrValue(),this.renderInput()),v.createElement(n,w({},d,{isDisabled:l}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){var n,r=t.prevProps,i=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,a=t.ariaSelection,s=t.isFocused,c=t.prevWasFocused,u=t.instancePrefix,d=e.options,f=e.value,h=e.menuIsOpen,p=e.inputValue,g=e.isMulti,m=e7(f),v={};if(r&&(f!==r.value||d!==r.options||h!==r.menuIsOpen||p!==r.inputValue)){var y,b=h?nc(nl(e,m)):[],w=h?nu(nl(e,m),"".concat(u,"-option")):[],E=i?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,m):null,S=(y=t.focusedOption)&&b.indexOf(y)>-1?y:b[0],_=nf(w,S);v={selectValue:m,focusedOption:S,focusedOptionId:_,focusableOptionsWithIds:w,focusedValue:E,clearFocusValueOnUpdate:!1}}var x=null!=o&&e!==r?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},R=a,C=s&&c;return s&&!C&&(R={value:(n=m[0]||null,g?m:n),options:m,action:"initial-input-focus"},C=!c),(null==a?void 0:a.action)==="initial-input-focus"&&(R=null),l(l(l({},v),x),{},{prevProps:e,ariaSelection:R,prevWasFocused:C})}}],n&&E(a.prototype,n),r&&E(a,r),Object.defineProperty(a,"prototype",{writable:!1}),a}(v.Component);nw.defaultProps=na;var nE=(0,v.forwardRef)(function(e,t){var n,r,i,o,a,s,c,u,h,p,g,m,y,E,S,_,x,R,C,D,O,k,T,M,I,A,P,N=(n=e.defaultInputValue,r=e.defaultMenuIsOpen,i=e.defaultValue,o=e.inputValue,a=e.menuIsOpen,s=e.onCh
1ange,c=e.onInputChange,u=e.onMenuClose,h=e.onMenuOpen,p=e.value,g=f(e,b),y=(m=d((0,v.useState)(void 0!==o?o:void 0===n?"":n),2))[0],E=m[1],_=(S=d((0,v.useState)(void 0!==a?a:void 0!==r&&r),2))[0],x=S[1],C=(R=d((0,v.useState)(void 0!==p?p:void 0===i?null:i),2))[0],D=R[1],O=(0,v.useCallback)(function(e,t){"function"==typeof s&&s(e,t),D(e)},[s]),k=(0,v.useCallback)(function(e,t){var n;"function"==typeof c&&(n=c(e,t)),E(void 0!==n?n:e)},[c]),T=(0,v.useCallback)(function(){"function"==typeof h&&h(),x(!0)},[h]),M=(0,v.useCallback)(function(){"function"==typeof u&&u(),x(!1)},[u]),I=void 0!==o?o:y,A=void 0!==a?a:_,P=void 0!==p?p:C,l(l({},g),{},{inputValue:I,menuIsOpen:A,onChange:O,onInputChange:k,onMenuClose:M,onMenuOpen:T,value:P}));return v.createElement(nw,w({ref:t},N))}),nS=n(7344),n_=n(1085),nx=Symbol("useLazyRef empty value"),nR=e=>{let t=(0,v.useRef)(nx);return t.current===nx&&(t.current=e()),t},nC=function(e){var t=v.useRef(e);return e5(function(){t.current=e}),t};function nD(e){return{isOk:()=>!0,isOkAnd:t=>t(e),isErr:()=>!1,isErrAnd:()=>!1,ok:()=>nT(e),err:()=>nk(),map:t=>nD(t(e)),mapOr:(t,n)=>n(e),mapOrElse:(t,n)=>n(e),mapErr:()=>nD(e),expect:()=>e,expectErr:e=>{throw Error(e)},unwrap:()=>e,unwrapErr:()=>{throw Error(`${e}`)},unwrapOr:()=>e,unwrapOrElse:()=>e,and:e=>e,andThen:t=>t(e),or:()=>nD(e),orElse:()=>nD(e)}}function nO(e){return{isOk:()=>!1,isOkAnd:()=>!1,isErr:()=>!0,isErrAnd:t=>t(e),ok:()=>nk(),err:()=>nT(e),map:()=>nO(e),mapOr:e=>e,mapOrElse:t=>t(e),mapErr:t=>nO(t(e)),expect:e=>{throw Error(e)},expectErr:()=>e,unwrap:()=>{throw Error(`${e}`)},unwrapErr:()=>e,unwrapOr:e=>e,unwrapOrElse:t=>t(e),and:()=>nO(e),andThen:()=>nO(e),or:e=>e,orElse:t=>t(e)}}function nk(){let e={and:()=>nk(),andThen:()=>nk(),expect:e=>{throw Error(e)},filter:()=>e,isSome:()=>!1,isSomeAnd:()=>!1,isNone:()=>!0,map:()=>nk(),mapOr:e=>e,mapOrElse:e=>e(),okOr:e=>nO(e),okOrElse:e=>nO(e()),or:e=>e,orElse:e=>e(),unwrap:()=>{throw Error("panic! call `unwrap` on a `None` value")},unwrapOr:e=>e,unwrapOrElse:e=>e(),xor:t=>t.isSome()?t:e};return e}function nT(e){let t={and:e=>e,andThen:t=>t(e),expect:()=>e,filter:n=>n(e)?t:nk(),isSome:()=>!0,isSomeAnd:t=>t(e),isNone:()=>!1,map:t=>nT(t(e)),mapOr:(t,n)=>n(e),mapOrElse:(t,n)=>n(e),okOr:()=>nD(e),okOrElse:()=>nD(e),or:()=>t,orElse:()=>t,unwrap:()=>e,unwrapOr:()=>e,unwrapOrElse:()=>e,xor:e=>e.isNone()?t:nk()};return t}var nM=setTimeout;let nI=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(t=n.useCachedSetTimeout?nM:setTimeout,new Promise(function(n){t(n,e)}));function i(e){return r.then(function(){return e})}return i.then=function(){return r.then.apply(r,arguments)},i.catch=Promise.resolve().catch,i};var nA=(p=tA.MenuList,function(e){let{selectProps:t,innerRef:n}=e,{handleScrolledToBottom:r,shouldLoadMore:i}=t,o=(0,v.useRef)(null),a=(0,v.useRef)(null),s=(0,v.useCallback)(()=>{let e=a.current;if(!e)return!1;let{scrollTop:t,scrollHeight:n,clientHeight:r}=e;return i(n,r,t)},[i]),l=(0,v.useCallback)(()=>{s()&&r&&r()},[s,r]),c=(0,v.useMemo)(()=>{let e=()=>{l(),o.current=setTimeout(e,300)};return e},[l]);return(0,v.useEffect)(()=>(c(),()=>{o.current&&clearTimeout(o.current)}),[]),(0,n_.jsx)(p,{...e,innerRef:(0,nS.A)(n,a)})}),nP=e=>(0,v.useMemo)(()=>({MenuList:nA,...e}),[e]),nN=(e,t)=>[...e,...t],nj=(e,t,n)=>e-t-10<n,nL=e=>({isFirstLoad:!0,options:[],hasMore:!0,isLoading:!1,lockedUntil:0,additional:e.additional}),nF=({options:e,defaultOptions:t,additional:n,defaultAdditional:r})=>{let i=!0===t?null:Array.isArray(t)?t:e;return i?{"":{isFirstLoad:!1,isLoading:!1,options:i,hasMore:!0,lockedUntil:0,additional:r||n}}:{}},nH='[react-select-async-paginate] response of "loadOptions" should be an object with "options" prop, which contains array of options.',nU=e=>{if(!e)return!1;let{options:t,hasMore:n}=e;return!!Array.isArray(t)&&("boolean"==typeof n||void 0===n)},nV=e=>{if(!nU(e))throw console.error(nH,"Received:",e),Error(nH);return!0},nz=async(e,t,n,r,i,o,a,s)=>{let l=t.current.inputValue,c=!n.current[l],u=c?nL(t.current):n.current[l];if(u.isLoading||!u.hasMore||u.lockedUntil>Date.now())return;if(i(t=>s&&"input-change"===e?{[l]:{...u,isLoading:!0}}:{...t,[l]:{...u,isLoading:!0}}),r>0&&"input-change"===e&&(await nI(r),l!==t.current.inputValue)){i(e=>{if(c){let{[l]:t,...n}=e;return n}return{...e,[l]:{...u,isLoading:!1}}});return}let{loadOptions:d,reloadOnErrorTimeout:f=0}=t.current,h=await Promise.resolve().then(()=>d(l,u.options,u.additional)).then(e=>nD(e),e=>nO(e));if(!a.current)return;if(h.isErr()){i(e=>({...e,[l]:{...u,isLoading:!1,lockedUntil:Date.now()+f}}));return}let p=h.unwrap();if(nV(p)){let{options:e,hasMore:t}=p,n=Object.hasOwn(p,"additional")?p.additional:u.additional;i(r=>({...r,[l]:{...u,options:o(u.options,e,n),hasMore:!!t,isLoading:!1,isFirstLoad:!1,additional:n}}))}},nW=e=>e+1,nY=(e,t=[])=>{let{clearCacheOnSearchChange:n=!1,clearCacheOnMenuClose:r=!1,defaultOptions:i,loadOptionsOnMenuOpen:o=!0,debounceTimeout:a=0,inputValue:s,menuIsOpen:l,filterOption:c=null,reduceOptions:u=nN,shouldLoadMore:d=nj,mapOptionsForMenu:f}=e,h=nC(l),p=function(){var e=(0,v.useRef)(!1);return(0,v.useEffect)(function(){return e.current=!0,function(){e.current=!1}},[]),e}(),g=nC(u),m=nC(o),y=(0,v.useRef)(!0),b=(0,v.useRef)(e);b.current=e;let[w,E]=(0,v.useState)(0),S=nR(()=>nF(e)),_=nC(e=>{nz(e,b,S,a,e=>{S.current=e(S.current),p.current&&E(nW)},g.current,p,n)}),x=(0,v.useCallback)(()=>{let e=b.current.inputValue;S.current[e]&&_.current("menu-scroll")},[_,S]);(0,v.useEffect)(()=>{y.current?y.current=!1:(S.current={},E(nW)),!0===i&&_.current("autoload")},t),(0,v.useEffect)(()=>{h.current&&!S.current[s]&&_.current("input-change")},[_,s,h,S]),(0,v.useEffect)(()=>
1{if(l){!S.current[""]&&m.current&&_.current("menu-toggle");return}r&&(S.current={},E(nW))},[_,m,l,S,r]);let R=S.current[s]||nL(e),C=(0,v.useMemo)(()=>f?f(R.options):R.options,[R.options,f]);return{handleScrolledToBottom:x,shouldLoadMore:d,filterOption:c,isLoading:R.isLoading||R.lockedUntil>Date.now(),isFirstLoad:R.isFirstLoad,options:C}},nB=(e,t=[])=>{let{inputValue:n,menuIsOpen:r,defaultInputValue:i,defaultMenuIsOpen:o,onInputChange:a,onMenuClose:s,onMenuOpen:l}=e,[c,u]=(0,v.useState)(i||""),[d,f]=(0,v.useState)(!!o),h="string"==typeof n?n:c,p="boolean"==typeof r?r:d,g=(0,v.useCallback)((e,t)=>{a&&a(e,t),u(e)},[a]),m=(0,v.useCallback)(()=>{s&&s(),f(!1)},[s]),y=(0,v.useCallback)(()=>{l&&l(),f(!0)},[l]);return{...nY({...e,inputValue:h,menuIsOpen:p},t),inputValue:h,menuIsOpen:p,onInputChange:g,onMenuClose:m,onMenuOpen:y}},nG=[],nX={},n$=function(e){let{components:t=nX,selectRef:n,isLoading:r,cacheUniqs:i=nG,menuPlacement:o,menuShouldScrollIntoView:a,...s}=e,l=nB(s,i),c=nP(t),u="boolean"==typeof r?r:l.isLoading;return(0,n_.jsx)(nE,{...e,...l,menuPlacement:o,menuShouldScrollIntoView:"auto"===o?!u&&a:a,isLoading:u,components:c,ref:n})}},9567:(e,t,n)=>{n.d(t,{p3:()=>eA});var r,i=["MO","TU","WE","TH","FR","SA","SU"],o=function(){function e(e,t){if(0===t)throw Error("Can't create weekday with n == 0");this.weekday=e,this.n=t}return e.fromStr=function(t){return new e(i.indexOf(t))},e.prototype.nth=function(t){return this.n===t?this:new e(this.weekday,t)},e.prototype.equals=function(e){return this.weekday===e.weekday&&this.n===e.n},e.prototype.toString=function(){var e=i[this.weekday];return this.n&&(e=(this.n>0?"+":"")+String(this.n)+e),e},e.prototype.getJsWeekday=function(){return 6===this.weekday?0:this.weekday+1},e}(),a=function(e){return null!=e},s=function(e){return"number"==typeof e},l=function(e){return"string"==typeof e&&i.includes(e)},c=Array.isArray,u=function(e,t){void 0===t&&(t=e),1==arguments.length&&(t=e,e=0);for(var n=[],r=e;r<t;r++)n.push(r);return n},d=function(e,t){var n=0,r=[];if(c(e))for(;n<t;n++)r[n]=[].concat(e);else for(;n<t;n++)r[n]=e;return r};function f(e,t,n){void 0===n&&(n=" ");var r=String(e);return(t>>=0,r.length>t)?String(r):((t-=r.length)>n.length&&(n+=d(n,t/n.length)),n.slice(0,t)+String(r))}var h=function(e,t,n){var r=e.split(t);return n?r.slice(0,n).concat([r.slice(n).join(t)]):r},p=function(e,t){var n=e%t;return n*t<0?n+t:n},g=function(e,t){return{div:Math.floor(e/t),mod:p(e,t)}},m=function(e){return!a(e)||0===e.length},v=function(e){return!m(e)},y=function(e,t){return v(e)&&-1!==e.indexOf(t)},b=function(e,t,n,r,i,o){return void 0===r&&(r=0),void 0===i&&(i=0),void 0===o&&(o=0),new Date(Date.UTC(e,t-1,n,r,i,o))},w=[31,28,31,30,31,30,31,31,30,31,30,31],E=b(1970,1,1),S=[6,0,1,2,3,4,5],_=function(e){return e%4==0&&e%100!=0||e%400==0},x=function(e){return e instanceof Date},R=function(e){return x(e)&&!isNaN(e.getTime())},C=function(e){return Math.round((e.getTime()-E.getTime())/864e5)},D=function(e){return new Date(E.getTime()+864e5*e)},O=function(e){var t=e.getUTCMonth();return 1===t&&_(e.getUTCFullYear())?29:w[t]},k=function(e){return S[e.getUTCDay()]},T=function(e,t){var n=b(e,t+1,1);return[k(n),O(n)]},M=function(e,t){return t=t||e,new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()))},I=function(e){return new Date(e.getTime())},A=function(e){for(var t=[],n=0;n<e.length;n++)t.push(I(e[n]));return t},P=function(e){e.sort(function(e,t){return e.getTime()-t.getTime()})},N=function(e,t){void 0===t&&(t=!0);var n=new Date(e);return[f(n.getUTCFullYear().toString(),4,"0"),f(n.getUTCMonth()+1,2,"0"),f(n.getUTCDate(),2,"0"),"T",f(n.getUTCHours(),2,"0"),f(n.getUTCMinutes(),2,"0"),f(n.getUTCSeconds(),2,"0"),t?"Z":""].join("")},j=function(e){var t=/^(\d{4})(\d{2})(\d{2})(T(\d{2})(\d{2})(\d{2})Z?)?$/.exec(e);if(!t)throw Error("Invalid UNTIL value: ".concat(e));return new Date(Date.UTC(parseInt(t[1],10),parseInt(t[2],10)-1,parseInt(t[3],10),parseInt(t[5],10)||0,parseInt(t[6],10)||0,parseInt(t[7],10)||0))}
1,L=function(e,t){return e.toLocaleString("sv-SE",{timeZone:t}).replace(" ","T")+"Z"},F=function(e,t){var n=new Date(L(e,Intl.DateTimeFormat().resolvedOptions().timeZone)),r=new Date(L(e,null!=t?t:"UTC")).getTime()-n.getTime();return new Date(e.getTime()-r)},H=function(){function e(e,t){this.minDate=null,this.maxDate=null,this._result=[],this.total=0,this.method=e,this.args=t,"between"===e?(this.maxDate=t.inc?t.before:new Date(t.before.getTime()-1),this.minDate=t.inc?t.after:new Date(t.after.getTime()+1)):"before"===e?this.maxDate=t.inc?t.dt:new Date(t.dt.getTime()-1):"after"===e&&(this.minDate=t.inc?t.dt:new Date(t.dt.getTime()+1))}return e.prototype.accept=function(e){++this.total;var t=this.minDate&&e<this.minDate,n=this.maxDate&&e>this.maxDate;if("between"===this.method){if(t)return!0;if(n)return!1}else if("before"===this.method){if(n)return!1}else if("after"===this.method)return!!t||(this.add(e),!1);return this.add(e)},e.prototype.add=function(e){return this._result.push(e),!0},e.prototype.getValue=function(){var e=this._result;switch(this.method){case"all":case"between":return e;default:return e.length?e[e.length-1]:null}},e.prototype.clone=function(){return new e(this.method,this.args)},e}(),U=n(5608),V=function(e){function t(t,n,r){var i=e.call(this,t,n)||this;return i.iterator=r,i}return(0,U.C6)(t,e),t.prototype.add=function(e){return!!this.iterator(e,this._result.length)&&(this._result.push(e),!0)},t}(H);let z={dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],tokens:{SKIP:/^[ \r\n\t]+|^\.$/,number:/^[1-9][0-9]*/,numberAsText:/^(one|two|three)/i,every:/^every/i,"day(s)":/^days?/i,"weekday(s)":/^weekdays?/i,"week(s)":/^weeks?/i,"hour(s)":/^hours?/i,"minute(s)":/^minutes?/i,"month(s)":/^months?/i,"year(s)":/^years?/i,on:/^(on|in)/i,at:/^(at)/i,the:/^the/i,first:/^first/i,second:/^second/i,third:/^third/i,nth:/^([1-9][0-9]*)(\.|th|nd|rd|st)/i,last:/^last/i,for:/^for/i,"time(s)":/^times?/i,until:/^(un)?til/i,monday:/^mo(n(day)?)?/i,tuesday:/^tu(e(s(day)?)?)?/i,wednesday:/^we(d(n(esday)?)?)?/i,thursday:/^th(u(r(sday)?)?)?/i,friday:/^fr(i(day)?)?/i,saturday:/^sa(t(urday)?)?/i,sunday:/^su(n(day)?)?/i,january:/^jan(uary)?/i,february:/^feb(ruary)?/i,march:/^mar(ch)?/i,april:/^apr(il)?/i,may:/^may/i,june:/^june?/i,july:/^july?/i,august:/^aug(ust)?/i,september:/^sep(t(ember)?)?/i,october:/^oct(ober)?/i,november:/^nov(ember)?/i,december:/^dec(ember)?/i,comma:/^(,\s*|(and|or)\s*)+/i}};var W=function(e,t){return -1!==e.indexOf(t)},Y=function(e){return e.toString()},B=function(e,t,n){return"".concat(t," ").concat(n,", ").concat(e)},G=function(){function e(e,t,n,r){if(void 0===t&&(t=Y),void 0===n&&(n=z),void 0===r&&(r=B),this.text=[],this.language=n||z,this.gettext=t,this.dateFormatter=r,this.rrule=e,this.options=e.options,this.origOptions=e.origOptions,this.origOptions.bymonthday){var i=[].concat(this.options.bymonthday),o=[].concat(this.options.bynmonthday);i.sort(function(e,t){return e-t}),o.sort(function(e,t){return t-e}),this.bymonthday=i.concat(o),this.bymonthday.length||(this.bymonthday=null)}if(a(this.origOptions.byweekday)){var s=c(this.origOptions.byweekday)?this.origOptions.byweekday:[this.origOptions.byweekday],l=String(s);this.byweekday={allWeeks:s.filter(function(e){return!e.n}),someWeeks:s.filter(function(e){return!!e.n}),isWeekdays:-1!==l.indexOf("MO")&&-1!==l.indexOf("TU")&&-1!==l.indexOf("WE")&&-1!==l.indexOf("TH")&&-1!==l.indexOf("FR")&&-1===l.indexOf("SA")&&-1===l.indexOf("SU"),isEveryDay:-1!==l.indexOf("MO")&&-1!==l.indexOf("TU")&&-1!==l.indexOf("WE")&&-1!==l.indexOf("TH")&&-1!==l.indexOf("FR")&&-1!==l.indexOf("SA")&&-1!==l.indexOf("SU")};var u=function(e,t){return e.weekday-t.weekday};this.byweekday.allWeeks.sort(u),this.byweekday.someWeeks.sort(u),this.byweekday.allWeeks.length||(this.byweekday.allWeeks=null),this.byweekday.someWeeks.length||(this.byweekday.someWeeks=null)}else this.byweekday=null}return e.isFullyConvertible=function(t){if(!(t.options.freq in e.IMPLEMENT
1ED)||t.origOptions.until&&t.origOptions.count)return!1;for(var n in t.origOptions){if(W(["dtstart","tzid","wkst","freq"],n))break;if(!W(e.IMPLEMENTED[t.options.freq],n))return!1}return!0},e.prototype.isFullyConvertible=function(){return e.isFullyConvertible(this.rrule)},e.prototype.toString=function(){var t=this.gettext;if(!(this.options.freq in e.IMPLEMENTED))return t("RRule error: Unable to fully convert this rrule to text");if(this.text=[t("every")],this[eA.FREQUENCIES[this.options.freq]](),this.options.until){this.add(t("until"));var n=this.options.until;this.add(this.dateFormatter(n.getUTCFullYear(),this.language.monthNames[n.getUTCMonth()],n.getUTCDate()))}else this.options.count&&this.add(t("for")).add(this.options.count.toString()).add(t(this.plural(this.options.count)?"times":"time"));return this.isFullyConvertible()||this.add(t("(~ approximate)")),this.text.join("")},e.prototype.HOURLY=function(){var e=this.gettext;1!==this.options.interval&&this.add(this.options.interval.toString()),this.add(e(this.plural(this.options.interval)?"hours":"hour"))},e.prototype.MINUTELY=function(){var e=this.gettext;1!==this.options.interval&&this.add(this.options.interval.toString()),this.add(e(this.plural(this.options.interval)?"minutes":"minute"))},e.prototype.DAILY=function(){var e=this.gettext;1!==this.options.interval&&this.add(this.options.interval.toString()),this.byweekday&&this.byweekday.isWeekdays?this.add(e(this.plural(this.options.interval)?"weekdays":"weekday")):this.add(e(this.plural(this.options.interval)?"days":"day")),this.origOptions.bymonth&&(this.add(e("in")),this._bymonth()),this.bymonthday?this._bymonthday():this.byweekday?this._byweekday():this.origOptions.byhour&&this._byhour()},e.prototype.WEEKLY=function(){var e=this.gettext;1!==this.options.interval&&this.add(this.options.interval.toString()).add(e(this.plural(this.options.interval)?"weeks":"week")),this.byweekday&&this.byweekday.isWeekdays?1===this.options.interval?this.add(e(this.plural(this.options.interval)?"weekdays":"weekday")):this.add(e("on")).add(e("weekdays")):this.byweekday&&this.byweekday.isEveryDay?this.add(e(this.plural(this.options.interval)?"days":"day")):(1===this.options.interval&&this.add(e("week")),this.origOptions.bymonth&&(this.add(e("in")),this._bymonth()),this.bymonthday?this._bymonthday():this.byweekday&&this._byweekday(),this.origOptions.byhour&&this._byhour())},e.prototype.MONTHLY=function(){var e=this.gettext;this.origOptions.bymonth?(1!==this.options.interval&&(this.add(this.options.interval.toString()).add(e("months")),this.plural(this.options.interval)&&this.add(e("in"))),this._bymonth()):(1!==this.options.interval&&this.add(this.options.interval.toString()),this.add(e(this.plural(this.options.interval)?"months":"month"))),this.bymonthday?this._bymonthday():this.byweekday&&this.byweekday.isWeekdays?this.add(e("on")).add(e("weekdays")):this.byweekday&&this._byweekday()},e.prototype.YEARLY=function(){var e=this.gettext;this.origOptions.bymonth?(1!==this.options.interval&&(this.add(this.options.interval.toString()),this.add(e("years"))),this._bymonth()):(1!==this.options.interval&&this.add(this.options.interval.toString()),this.add(e(this.plural(this.options.interval)?"years":"year"))),this.bymonthday?this._bymonthday():this.byweekday&&this._byweekday(),this.options.byyearday&&this.add(e("on the")).add(this.list(this.options.byyearday,this.nth,e("and"))).add(e("day")),this.options.byweekno&&this.add(e("in")).add(e(this.plural(this.options.byweekno.length)?"weeks":"week")).add(this.list(this.options.byweekno,void 0,e("and")))},e.prototype._bymonthday=function(){var e=this.gettext;this.byweekday&&this.byweekday.allWeeks?this.add(e("on")).add(this.list(this.byweekday.allWeeks,this.weekdaytext,e("or"))).add(e("the")).add(this.list(this.bymonthday,this.nth,e("or"))):this.add(e("on the")).add(this.list(this.bymonthday,this.nth,e("and")))},e.prototype._byweekday=function(){var e=this.gettext;this.byweekday.allWeeks&&!this.byweekday.isWeekdays&&this.add(e("on")).add(this.list(this.byweekday.allWeeks,this.weekdaytext)),this.byweekday.someWeeks&&(this.byweekday.allWeeks&&this.add(e("and")),this.add(e("on the")).add(this.list(this.byweekday.someWeeks,this.weekdaytext,e("and"))))},e.prototype._byhour=function(){var e=this.gettext;this.add(e("at")).add(this.list(this.origOptions.byhour,void 0,e("and")))},e.prototype._bymonth=function(){this.add(this.list(this.options.bymonth,this.monthtext,this.gettext("and")))},e.prototype.nth=function(e){e=parseInt(e.toString(),10);var t,n=this.gettext;if(-1===e)return n("last");var r=Math.abs(e);switch(r){case 1:case 21:case 31:t=r+n("st");break;
1case 2:case 22:t=r+n("nd");break;case 3:case 23:t=r+n("rd");break;default:t=r+n("th")}return e<0?t+" "+n("last"):t},e.prototype.monthtext=function(e){return this.language.monthNames[e-1]},e.prototype.weekdaytext=function(e){var t=s(e)?(e+1)%7:e.getJsWeekday();return(e.n?this.nth(e.n)+" ":"")+this.language.dayNames[t]},e.prototype.plural=function(e){return e%100!=1},e.prototype.add=function(e){return this.text.push(" "),this.text.push(e),this},e.prototype.list=function(e,t,n,r){var i=this;void 0===r&&(r=","),c(e)||(e=[e]),t=t||function(e){return e.toString()};var o=function(e){return t&&t.call(i,e)};return n?function(e,t,n){for(var r="",i=0;i<e.length;i++)0!==i&&(i===e.length-1?r+=" "+n+" ":r+=t+" "),r+=e[i];return r}(e.map(o),r,n):e.map(o).join(r+" ")},e}(),X=function(){function e(e){this.done=!0,this.rules=e}return e.prototype.start=function(e){return this.text=e,this.done=!1,this.nextSymbol()},e.prototype.isDone=function(){return this.done&&null===this.symbol},e.prototype.nextSymbol=function(){this.symbol=null,this.value=null;do{if(this.done)return!1;for(var e in t=null,this.rules){var t,n,r=(0,this.rules[e]).exec(this.text);r&&(null===t||r[0].length>t[0].length)&&(t=r,n=e)}if(null!=t&&(this.text=this.text.substr(t[0].length),""===this.text&&(this.done=!0)),null==t){this.done=!0,this.symbol=null,this.value=null;return}}while("SKIP"===n);return this.symbol=n,this.value=t,!0},e.prototype.accept=function(e){if(this.symbol===e){if(this.value){var t=this.value;return this.nextSymbol(),t}return this.nextSymbol(),!0}return!1},e.prototype.acceptNumber=function(){return this.accept("number")},e.prototype.expect=function(e){if(this.accept(e))return!0;throw Error("expected "+e+" but found "+this.symbol)},e}();function $(e,t){void 0===t&&(t=z);var n={},r=new X(t.tokens);if(!r.start(e))return null;return function(){r.expect("every");var e=r.acceptNumber();if(e&&(n.interval=parseInt(e[0],10)),r.isDone())throw Error("Unexpected end");switch(r.symbol){case"day(s)":n.freq=eA.DAILY,r.nextSymbol()&&(o(),c());break;case"weekday(s)":n.freq=eA.WEEKLY,n.byweekday=[eA.MO,eA.TU,eA.WE,eA.TH,eA.FR],r.nextSymbol(),o(),c();break;case"week(s)":n.freq=eA.WEEKLY,r.nextSymbol()&&(i(),o(),c());break;case"hour(s)":n.freq=eA.HOURLY,r.nextSymbol()&&(i(),c());break;case"minute(s)":n.freq=eA.MINUTELY,r.nextSymbol()&&(i(),c());break;case"month(s)":n.freq=eA.MONTHLY,r.nextSymbol()&&(i(),c());break;case"year(s)":n.freq=eA.YEARLY,r.nextSymbol()&&(i(),c());break;case"monday":case"tuesday":case"wednesday":case"thursday":case"friday":case"saturday":case"sunday":n.freq=eA.WEEKLY;var t=r.symbol.substr(0,2).toUpperCase();if(n.byweekday=[eA[t]],!r.nextSymbol())return;for(;r.accept("comma");){if(r.isDone())throw Error("Unexpected end");var u=s();if(!u)throw Error("Unexpected symbol "+r.symbol+", expected weekday");n.byweekday.push(eA[u]),r.nextSymbol()}o(),function(){r.accept("on"),r.accept("the");var e=l();if(e)for(n.bymonthday=[e],r.nextSymbol();r.accept("comma");){if(!(e=l()))throw Error("Unexpected symbol "+r.symbol+"; expected monthday");n.bymonthday.push(e),r.nextSymbol()}}(),c();break;case"january":case"february":case"march":case"april":case"may":case"june":case"july":case"august":case"september":case"october":case"november":case"december":if(n.freq=eA.YEARLY,n.bymonth=[a()],!r.nextSymbol())return;for(;r.accept("comma");){if(r.isDone())throw Error("Unexpected end");var d=a();if(!d)throw Error("Unexpected symbol "+r.symbol+", expected month");n.bymonth.push(d),r.nextSymbol()}i(),c();break;default:throw Error("Unknown symbol")}}(),n;function i(){var e=r.accept("on"),t=r.accept("the");if(e||t)do{var i=l(),o=s(),c=a();if(i)o?(r.nextSymbol(),n.byweekday||(n.byweekday=[]),n.byweekday.push(eA[o].nth(i))):(n.bymonthday||(n.bymonthday=[]),n.bymonthday.push(i),r.accept("day(s)"));else if(o)r.nextSymbol(),n.byweekday||(n.byweekday=[]),n.byweekday.push(eA[o]);else if("weekday(s)"===r.symbol)r.nextSymbol(),n.byweekday||(n.byweekday=[eA.MO,eA.TU,eA.WE,eA.TH,eA.FR]);else if("week(s)"===r.symbol){r.nextSymbol();var u=r.acceptNumber();if(!u)throw Error("Unexpected symbol "+r.symbol+", expected week number");for(n.byweekno=[parseInt(u[0],10)];r.accept("comma");){if(!(u=r.acceptNumber()))throw Error("Unexpected symbol "+r.symbol+"; expected monthday");n.byweekno.push(parseInt(u[0],10))}}else{if(!c)return;r.nextSymbol(),n.bymonth||(n.bymonth=[]),n.bymonth.push(c)}}while(r.accept("comma")||r.accept("the")||r.accept("on"))}function o(){if(r.accept("at"))do{var e=r.acceptNumber();if(!e)throw Error("Unexpected symbol "+r.symbol+", expected hour");for(n.byhour=[parseInt(e[0],10)];r.accept("comma");){if(!(e=r.acceptNumber()))throw Error("Unexpected symbol "+r.symbol+"; expected hour");n.byhour.push(parseInt(e[0],10))}}while(r.accept("comma")||r.accept("at"))}function a(){switch(r.symbol){case"january":return 1;case"february":return 2;case"march":return 3;case"april":return 4;case"may":return 5;case"june":return 6;case"july":return 7;case"august":return 8;case"september":return 9;
1case"october":return 10;case"november":return 11;case"december":return 12;default:return!1}}function s(){switch(r.symbol){case"monday":case"tuesday":case"wednesday":case"thursday":case"friday":case"saturday":case"sunday":return r.symbol.substr(0,2).toUpperCase();default:return!1}}function l(){switch(r.symbol){case"last":return r.nextSymbol(),-1;case"first":return r.nextSymbol(),1;case"second":return r.nextSymbol(),r.accept("last")?-2:2;case"third":return r.nextSymbol(),r.accept("last")?-3:3;case"nth":var e=parseInt(r.value[1],10);if(e<-366||e>366)throw Error("Nth out of range: "+e);return r.nextSymbol(),r.accept("last")?-e:e;default:return!1}}function c(){if("until"===r.symbol){var e=Date.parse(r.text);if(!e)throw Error("Cannot parse until date:"+r.text);n.until=new Date(e)}else r.accept("for")&&(n.count=parseInt(r.value[0],10),r.expect("number"))}}function q(e){return e<r.HOURLY}!function(e){e[e.YEARLY=0]="YEARLY",e[e.MONTHLY=1]="MONTHLY",e[e.WEEKLY=2]="WEEKLY",e[e.DAILY=3]="DAILY",e[e.HOURLY=4]="HOURLY",e[e.MINUTELY=5]="MINUTELY",e[e.SECONDLY=6]="SECONDLY"}(r||(r={}));var K=["count","until","interval","byweekday","bymonthday","bymonth"];
vendor: 3,335 bytes, line 1
1G.IMPLEMENTED=[],G.IMPLEMENTED[r.HOURLY]=K,G.IMPLEMENTED[r.MINUTELY]=K,G.IMPLEMENTED[r.DAILY]=["byhour"].concat(K),G.IMPLEMENTED[r.WEEKLY]=K,G.IMPLEMENTED[r.MONTHLY]=K,G.IMPLEMENTED[r.YEARLY]=["byweekno","byyearday"].concat(K);var Z=G.isFullyConvertible,Q=function(){function e(e,t,n,r){this.hour=e,this.minute=t,this.second=n,this.millisecond=r||0}return e.prototype.getHours=function(){return this.hour},e.prototype.getMinutes=function(){return this.minute},e.prototype.getSeconds=function(){return this.second},e.prototype.getMilliseconds=function(){return this.millisecond},e.prototype.getTime=function(){return(3600*this.hour+60*this.minute+this.second)*1e3+this.millisecond},e}(),J=function(e){function t(t,n,r,i,o,a,s){var l=e.call(this,i,o,a,s)||this;return l.year=t,l.month=n,l.day=r,l}return(0,U.C6)(t,e),t.fromDate=function(e){return new this(e.getUTCFullYear(),e.getUTCMonth()+1,e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.valueOf()%1e3)},t.prototype.getWeekday=function(){return k(new Date(this.getTime()))},t.prototype.getTime=function(){return new Date(Date.UTC(this.year,this.month-1,this.day,this.hour,this.minute,this.second,this.millisecond)).getTime()},t.prototype.getDay=function(){return this.day},t.prototype.getMonth=function(){return this.month},t.prototype.getYear=function(){return this.year},t.prototype.addYears=function(e){this.year+=e},t.prototype.addMonths=function(e){if(this.month+=e,this.month>12){var t=Math.floor(this.month/12),n=p(this.month,12);this.month=n,this.year+=t,0===this.month&&(this.month=12,--this.year)}},t.prototype.addWeekly=function(e,t){t>this.getWeekday()?this.day+=-(this.getWeekday()+1+(6-t))+7*e:this.day+=-(this.getWeekday()-t)+7*e,this.fixDay()},t.prototype.addDaily=function(e){this.day+=e,this.fixDay()},t.prototype.addHours=function(e,t,n){for(t&&(this.hour+=Math.floor((23-this.hour)/e)*e);;){this.hour+=e;var r=g(this.hour,24),i=r.div,o=r.mod;if(i&&(this.hour=o,this.addDaily(i)),m(n)||y(n,this.hour))break}},t.prototype.addMinutes=function(e,t,n,r){for(t&&(this.minute+=Math.floor((1439-(60*this.hour+this.minute))/e)*e);;){this.minute+=e;var i=g(this.minute,60),o=i.div,a=i.mod;if(o&&(this.minute=a,this.addHours(o,!1,n)),(m(n)||y(n,this.hour))&&(m(r)||y(r,this.minute)))break}},t.prototype.addSeconds=function(e,t,n,r,i){for(t&&(this.second+=Math.floor((86399-(3600*this.hour+60*this.minute+this.second))/e)*e);;){this.second+=e;var o=g(this.second,60),a=o.div,s=o.mod;if(a&&(this.second=s,this.addMinutes(a,!1,n,r)),(m(n)||y(n,this.hour))&&(m(r)||y(r,this.minute))&&(m(i)||y(i,this.second)))break}},t.prototype.fixDay=function(){if(!(this.day<=28)){var e=T(this.year,this.month-1)[1];if(!(this.day<=e))for(;this.day>e;){if(this.day-=e,++this.month,13===this.month&&(this.month=1,++this.year,this.year>9999))return;e=T(this.year,this.month-1)[1]}}},t.prototype.add=function(e,t){var n=e.freq,i=e.interval,o=e.wkst,a=e.byhour,s=e.byminute,l=e.bysecond;switch(n){case r.YEARLY:return this.addYears(i);case r.MONTHLY:return this.addMonths(i);case r.WEEKLY:return this.addWeekly(i,o);case r.DAILY:return this.addDaily(i);case r.HOURLY:return this.addHours(i,t,a);case r.MINUTELY:return this.addMinutes(i,t,a,s);case r.SECONDLY:return this.addSeconds(i,t,a,s,l)}},t}(Q);function ee(e){for(var t=[],n=Object.keys(e),r=0;r<n.length;r++){var i=n[r];
1y(eI,i)||t.push(i),x(e[i])&&!R(e[i])&&t.push(i)}if(t.length)throw Error("Invalid options: "+t.join(", "));return(0,U.Cl)({},e)}function et(e){var t=e.split("\n").map(er).filter(function(e){return null!==e});return(0,U.Cl)((0,U.Cl)({},t[0]),t[1])}function en(e){var t={},n=/DTSTART(?:;TZID=([^:=]+?))?(?::|=)([^;\s]+)/i.exec(e);if(!n)return t;var r=n[1],i=n[2];return r&&(t.tzid=r),t.dtstart=j(i),t}function er(e){if(!(e=e.replace(/^\s+|\s+$/,"")).length)return null;var t=/^([A-Z]+?)[:;]/.exec(e.toUpperCase());if(!t)return ei(e);var n=t[1];switch(n.toUpperCase()){case"RRULE":case"EXRULE":return ei(e);case"DTSTART":return en(e);default:throw Error("Unsupported RFC prop ".concat(n," in ").concat(e))}}function ei(e){var t=en(e.replace(/^RRULE:/i,""));return e.replace(/^(?:RRULE|EXRULE):/i,"").split(";").forEach(function(n){var i=n.split("="),a=i[0],s=i[1];switch(a.toUpperCase()){case"FREQ":t.freq=r[s.toUpperCase()];break;case"WKST":t.wkst=eT[s.toUpperCase()];break;case"COUNT":case"INTERVAL":case"BYSETPOS":case"BYMONTH":case"BYMONTHDAY":case"BYYEARDAY":case"BYWEEKNO":case"BYHOUR":case"BYMINUTE":case"BYSECOND":var l=-1!==s.indexOf(",")?s.split(",").map(eo):eo(s);t[a.toLowerCase()]=l;break;case"BYWEEKDAY":case"BYDAY":t.byweekday=s.split(",").map(function(e){if(2===e.length)return eT[e];var t=e.match(/^([+-]?\d{1,2})([A-Z]{2})$/);if(!t||t.length<3)throw SyntaxError("Invalid weekday string: ".concat(e));var n=Number(t[1]);return new o(eT[t[2]].weekday,n)});break;case"DTSTART":case"TZID":var c=en(e);t.tzid=c.tzid,t.dtstart=c.dtstart;break;case"UNTIL":t.until=j(s);break;case"BYEASTER":t.byeaster=Number(s);break;default:throw Error("Unknown RRULE property '"+a+"'")}}),t}function eo(e){return/^[+-]?\d+$/.test(e)?Number(e):e}var ea=function(){function e(e,t){if(isNaN(e.getTime()))throw RangeError("Invalid date passed to DateWithZone");this.date=e,this.tzid=t}return Object.defineProperty(e.prototype,"isUTC",{get:function(){return!this.tzid||"UTC"===this.tzid.toUpperCase()},enumerable:!1,configurable:!0}),e.prototype.toString=function(){var e=N(this.date.getTime(),this.isUTC);return this.isUTC?":".concat(e):";TZID=".concat(this.tzid,":").concat(e)},e.prototype.getTime=function(){return this.date.getTime()},e.prototype.rezonedDate=function(){return this.isUTC?this.date:F(this.date,this.tzid)},e}();function es(e){for(var t=[],n="",r=Object.keys(e),i=Object.keys(eM),l=0;l<r.length;l++)if("tzid"!==r[l]&&y(i,r[l])){var u,d=r[l].toUpperCase(),f=e[r[l]],h="";if(!(!a(f)||c(f)&&!f.length)){switch(d){case"FREQ":h=eA.FREQUENCIES[e.freq];break;case"WKST":h=s(f)?new o(f).toString():f.toString();break;case"BYWEEKDAY":d="BYDAY",h=(c(f)?f:[f]).map(function(e){return e instanceof o?e:c(e)?new o(e[0],e[1]):new o(e)}).toString();break;case"DTSTART":u=e.tzid,n=f?"DTSTART"+new ea(new Date(f),u).toString():"";break;case"UNTIL":h=N(f,!e.tzid);break;default:if(c(f)){for(var p=[],g=0;g<f.length;g++)p[g]=String(f[g]);h=p.toString()}else h=String(f)}h&&t.push([d,h])}}var m=t.map(function(e){var t=e[0],n=e[1];return"".concat(t,"=").concat(n.toString())}).join(";"),v="";return""!==m&&(v="RRULE:".concat(m)),[n,v].filter(function(e){return!!e}).join("\n")}var el=function(){function e(){this.all=!1,this.before=[],this.after=[],this.between=[]}return e.prototype._cacheAdd=function(e,t,n){t&&(t=t instanceof Date?I(t):A(t)),"all"===e?this.all=t:(n._value=t,this[e].push(n))},e.prototype._cacheGet=function(e,t){var n=!1,r=t?Object.keys(t):[],i=this[e];if("all"===e)n=this.all;else if(c(i))for(var o=0;o<i.length;o++){var a=i[o];if(!(r.length&&function(e){for(var n=0;n<r.length;n++){var i=r[n];if(!function(e,t){return Array.isArray(e)?!!Array.isArray(t)&&e.length===t.length&&e.every(function(e,n){return e.getTime()===t[n].getTime()}):e instanceof Date?t instanceof Date&&e.getTime()===t.getTime():e===t}(t[i],e[i]))return!0}return!1}(a))){n=a._value;break}}if(!n&&this.all){for(var s=new H(e,t),o=0;o<this.all.length&&s.accept(this.all[o]);o++);n=s.getValue(),this._cacheAdd(e,n,t)}return c(n)?A(n):n instanceof Date?I(n):n},e}(),ec=(0,U.fX)((0,U.fX)((0,U.fX)((0,U.fX)((0,U.fX)((0,U.fX)((0,U.fX)((0,U.fX)((0,U.fX)((0,U.fX)((0,U.fX)((0,U.fX)((0,U.fX)([],d(1,31),!0),d(2,28),!0),d(3,31),!0),d(4,30),!0),d(5,31),!0),d(6,30),!0),d(7,31),!0),d(8,31),!0),d(9,30),!0),d(10,31),!0),d(11,30),!0),d(12,31),!0),d(1,7),!0),eu=(0,U.fX)((0,U.fX)((0,U.fX)((0,U.fX)((0,U.fX)((0,U.fX)((0,U.fX)((0,U.fX)((0,U.fX)((0,U.fX)((0,U.fX)((0,U.fX)((0,U.fX)([],d(1,31),!0),d(2,29),!0),d(3,31),!0),d(4,30),!0),d(5,31),!0),d(6,30),!0),d(7,31),!0),d(8,31),!0),d(9,30),!0),d(10,31),!0),d(11,30),!0),d(12,31),!0),d(1,7),!0),ed=u(1,29),ef=u(1,30),eh=u(1,31),ep=u(1,32),eg=(0,U.fX)((0,U.fX)((0,U.fX)((0,U.fX)((0,U.fX)((0,U.fX)((0,U.fX)((0,U.fX)((0,U.fX)((0,U.fX)((0,U.fX)((0,U.fX)((0,U.fX)([],ep,!0),ef,!0),ep,!0),eh,!0),ep,!0),eh,!0),ep,!0),ep,!0),eh,!0),ep,!0),eh,!0),ep,!0),ep.slice(0,7),!0),em=(0,U.fX)((0,U.fX)((0,U.fX)((0,U.fX)((0,U.fX)((0,U.fX)((0,U.fX)((0,U.fX)((0,U.fX)((0,U.fX)((0,U.fX)((0,U.fX)((0,U.fX)([],ep,!0),ed,!0),ep,!0),eh,!0),ep,!0),eh,!0),ep,!0),ep,!0),eh,!0),ep,!0),eh,!0),ep,!0),ep.slice(0,7),!0),ev=u(-28,0),ey=u(-29,0),eb=u(-30,0),ew=u(-31,0),eE=(0,U.fX)((0,U.fX)((0,U.fX)((0,U.fX)((0,U.fX)((0,U.fX)((0,U.fX)((0,U.fX)((0,U.fX)((0,U.fX)((0,U.fX)((0,U.fX)((0,U.fX)([],ew,!0),ey,!0),ew,!0),eb,!0),ew,!0),eb,!0),ew,!0),ew,!0),eb,!0),ew,!0),eb,!0),ew,!0),ew.slice(0,7),!0),eS=(0,U.fX)((0,U.fX)((0,U.fX)((0,U.fX)((0,U.fX)((0,U.fX)((0,U.fX)((0,U.fX)((0,U.fX)((0,U.fX)((0,U.fX)((0,U.fX)((0,U.fX)([],ew,!0),ev,!0),ew,!0),eb,!0),ew,!0),eb,!0),ew,!0),ew,!0),eb,!0),ew,!0),eb,!0),ew,!0),ew.slice(0,7),!0),e_=[0,31,60,91,121,152,182,213,244,274,305,335,366],ex=[0,31,59,90,120,151,181,212,243,273,304,334,365],eR=function(){for(var e=[],t=0;t<55;t++)e=e.concat(u(7));return e}(),eC=function(){function e(e){this.options=e}return e.prototype.rebuild=function(e,t){var n,r,i,o,s,l,c,u,f,h,g=this.options;if(e!==this.lastyear&&(this.yearinfo=function(e,t){var n,r,i,o,a=b(e,1,1),s=_(e)?366:365,l=_(e+1)?366:365,c=C(a),u=k(a),f=(0,U.Cl)((0,U.Cl)({yearlen:s,nextyearlen:l,yearordinal:c,yearweekday:u},(n=_(e)?366:365,r=k(b(e,1,1)),365===n?{mmask:ec,mdaymask:em,nmdaymask:eS,wdaymask:eR.slice(r),mrange:ex}:{mmask:eu,mdaymask:eg,nmdaymask:eE,wdaymask:eR.slice(r),mrange:e_})),{wnomask:null});if(m(t.byweekno))return f;f.wnomask=d(0,s+7);var h=i=p(7-u+t.wkst,7);h>=4?(h=0,o=f.yearlen+p(u-t.wkst,7)):o=s-h;for(var g=Math.floor(Math.floor(o/7)+p(o,7)/4),v=0;v<t.byweekno.length;v++){var w=t.byweekno[v];if(w<0&&(w+=g+1),w>0&&w<=g){var E=void 0;w>1?(E=h+(w-1)*7,h!==i&&(E-=7-i)):E=h;for(var S=0;S<7&&(f.wnomask[E]=1,E++,f.wdaymask[E]!==t.wkst);S++);}}if(y(t.byweekno,1)){var E=h+7*g;if(h!==i&&(E-=7-i),E<s)for(var v=0;v<7&&(f.wnomask[E]=1,E+=1,f.wdaymask[E]!==t.wkst);v++);}if(h){var x=void 0;if(y(t.byweekno,-1))x=-1;else{var R=k(b(e-1,1,1)),D=p(7-R.valueOf()+t.wkst,7),O=_(e-1)?366:365,T=void 0;D>=4?(D=0,T=O+p(R-t.wkst,7)):T=s-h,x=Math.floor(52+p(T,7)/4)}if(y(t.byweekno,x))for(var E=0;E<h;E++)f.wnomask[E]=1}
1return f}(e,g)),v(g.bynweekday)&&(t!==this.lastmonth||e!==this.lastyear)){var w=this.yearinfo,E=w.yearlen,S=w.mrange,x=w.wdaymask;this.monthinfo=function(e,t,n,r,i,o){var a={lastyear:e,lastmonth:t,nwdaymask:[]},s=[];if(o.freq===eA.YEARLY){if(m(o.bymonth))s=[[0,n]];else for(var l=0;l<o.bymonth.length;l++)t=o.bymonth[l],s.push(r.slice(t-1,t+1))}else o.freq===eA.MONTHLY&&(s=[r.slice(t-1,t+1)]);if(m(s))return a;a.nwdaymask=d(0,n);for(var l=0;l<s.length;l++)for(var c=s[l],u=c[0],f=c[1]-1,h=0;h<o.bynweekday.length;h++){var g=void 0,v=o.bynweekday[h],y=v[0],b=v[1];b<0?(g=f+(b+1)*7,g-=p(i[g]-y,7)):(g=u+(b-1)*7,g+=p(7-i[g]+y,7)),u<=g&&g<=f&&(a.nwdaymask[g]=1)}return a}(e,t,E,S,x,g)}a(g.byeaster)&&(this.eastermask=(void 0===(n=g.byeaster)&&(n=0),r=e%19,i=Math.floor(e/100),o=e%100,s=Math.floor(i/4),l=Math.floor((i+8)/25),c=Math.floor((i-l+1)/3),u=Math.floor(19*r+i-s-c+15)%30,f=Math.floor(32+i%4*2+2*Math.floor(o/4)-u-o%4)%7,h=Math.floor((r+11*u+22*f)/451),[Math.ceil((Date.UTC(e,Math.floor((u+f-7*h+114)/31)-1,(u+f-7*h+114)%31+1+n)-Date.UTC(e,0,1))/864e5)]))},Object.defineProperty(e.prototype,"lastyear",{get:function(){return this.monthinfo?this.monthinfo.lastyear:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastmonth",{get:function(){return this.monthinfo?this.monthinfo.lastmonth:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"yearlen",{get:function(){return this.yearinfo.yearlen},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"yearordinal",{get:function(){return this.yearinfo.yearordinal},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mrange",{get:function(){return this.yearinfo.mrange},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"wdaymask",{get:function(){return this.yearinfo.wdaymask},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mmask",{get:function(){return this.yearinfo.mmask},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"wnomask",{get:function(){return this.yearinfo.wnomask},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nwdaymask",{get:function(){return this.monthinfo?this.monthinfo.nwdaymask:[]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextyearlen",{get:function(){return this.yearinfo.nextyearlen},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mdaymask",{get:function(){return this.yearinfo.mdaymask},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nmdaymask",{get:function(){return this.yearinfo.nmdaymask},enumerable:!1,configurable:!0}),e.prototype.ydayset=function(){return[u(this.yearlen),0,this.yearlen]},e.prototype.mdayset=function(e,t){for(var n=this.mrange[t-1],r=this.mrange[t],i=d(null,this.yearlen),o=n;o<r;o++)i[o]=o;return[i,n,r]},e.prototype.wdayset=function(e,t,n){for(var r=d(null,this.yearlen+7),i=C(b(e,t,n))-this.yearordinal,o=i,a=0;a<7&&(r[i]=i,++i,this.wdaymask[i]!==this.options.wkst);a++);return[r,o,i]},e.prototype.ddayset=function(e,t,n){var r=d(null,this.yearlen),i=C(b(e,t,n))-this.yearordinal;return r[i]=i,[r,i,i+1]},e.prototype.htimeset=function(e,t,n,r){var i=this,o=[];return this.options.byminute.forEach(function(t){o=o.concat(i.mtimeset(e,t,n,r))}),P(o),o},e.prototype.mtimeset=function(e,t,n,r){var i=this.options.bysecond.map(function(n){return new Q(e,t,n,r)});return P(i),i},e.prototype.stimeset=function(e,t,n,r){return[new Q(e,t,n,r)]},e.prototype.getdayset=function(e){switch(e){case r.YEARLY:return this.ydayset.bind(this);case r.MONTHLY:return this.mdayset.bind(this);case r.WEEKLY:return this.wdayset.bind(this);case r.DAILY:default:return this.ddayset.bind(this)}},e.prototype.gettimeset=function(e){switch(e){case r.HOURLY:return this.htimeset.bind(this);case r.MINUTELY:return this.mtimeset.bind(this);case r.SECONDLY:return this.stimeset.bind(this)}},e}();function eD(e,t){var n,r,i,o,s=t.dtstart,l=t.freq,c=t.interval,u=t.until,d=t.bysetpos,f=t.count;if(0===f||0===c)return ek(e);var h=J.fromDate(s),g=new eC(t);g.rebuild(h.year,h.month);for(var m=(n=t.freq,r=t.byhour,i=t.byminute,o=t.bysecond,q(n)?function(e){var t=e.dtstart.getTime()%1e3;if(!q(e.freq))return[];var n=[];return e.byhour.forEach(function(r){e.byminute.forEach(function(i){e.bysecond.forEac
1h(function(e){n.push(new Q(r,i,e,t))})})}),n}(t):n>=eA.HOURLY&&v(r)&&!y(r,h.hour)||n>=eA.MINUTELY&&v(i)&&!y(i,h.minute)||n>=eA.SECONDLY&&v(o)&&!y(o,h.second)?[]:g.gettimeset(n)(h.hour,h.minute,h.second,h.millisecond));;){var b=g.getdayset(l)(h.year,h.month,h.day),w=b[0],E=b[1],S=b[2],_=function(e,t,n,r,i){for(var o=!1,a=t;a<n;a++){var s=e[a];(o=function(e,t,n){var r=n.bymonth,i=n.byweekno,o=n.byweekday,a=n.byeaster,s=n.bymonthday,l=n.bynmonthday,c=n.byyearday;return v(r)&&!y(r,e.mmask[t])||v(i)&&!e.wnomask[t]||v(o)&&!y(o,e.wdaymask[t])||v(e.nwdaymask)&&!e.nwdaymask[t]||null!==a&&!y(e.eastermask,t)||(v(s)||v(l))&&!y(s,e.mdaymask[t])&&!y(l,e.nmdaymask[t])||v(c)&&(t<e.yearlen&&!y(c,t+1)&&!y(c,-e.yearlen+t)||t>=e.yearlen&&!y(c,t+1-e.yearlen)&&!y(c,-e.nextyearlen+t-e.yearlen))}(r,s,i))&&(e[s]=null)}return o}(w,E,S,g,t);if(v(d))for(var x=function(e,t,n,r,i,o){for(var s=[],l=0;l<e.length;l++){var c=void 0,u=void 0,d=e[l];d<0?(c=Math.floor(d/t.length),u=p(d,t.length)):(c=Math.floor((d-1)/t.length),u=p(d-1,t.length));for(var f=[],h=n;h<r;h++){var g=o[h];a(g)&&f.push(g)}var m=void 0;m=c<0?f.slice(c)[0]:f[c];var v=t[u],b=M(D(i.yearordinal+m),v);y(s,b)||s.push(b)}return P(s),s}(d,m,E,S,g,w),R=0;R<x.length;R++){var C=x[R];if(u&&C>u)return ek(e);if(C>=s){var O=eO(C,t);if(!e.accept(O)||f&&!--f)return ek(e)}}else for(var R=E;R<S;R++){var k=w[R];if(a(k))for(var T=D(g.yearordinal+k),I=0;I<m.length;I++){var C=M(T,m[I]);if(u&&C>u)return ek(e);if(C>=s){var O=eO(C,t);if(!e.accept(O)||f&&!--f)return ek(e)}}}if(0===t.interval||(h.add(t,_),h.year>9999))return ek(e);q(l)||(m=g.gettimeset(l)(h.hour,h.minute,h.second,0)),g.rebuild(h.year,h.month)}}function eO(e,t){return new ea(e,t.tzid).rezonedDate()}function ek(e){return e.getValue()}var eT={MO:new o(0),TU:new o(1),WE:new o(2),TH:new o(3),FR:new o(4),SA:new o(5),SU:new o(6)},eM={freq:r.YEARLY,dtstart:null,interval:1,wkst:eT.MO,count:null,until:null,tzid:null,bysetpos:null,bymonth:null,bymonthday:null,bynmonthday:null,byyearday:null,byweekno:null,byweekday:null,bynweekday:null,byhour:null,byminute:null,bysecond:null,byeaster:null},eI=Object.keys(eM),eA=function(){function e(e,t){void 0===e&&(e={}),void 0===t&&(t=!1),this._cache=t?null:new el,this.origOptions=ee(e);var n=function(e){var t=(0,U.Cl)((0,U.Cl)({},eM),ee(e));if(a(t.byeaster)&&(t.freq=eA.YEARLY),!(a(t.freq)&&eA.FREQUENCIES[t.freq]))throw Error("Invalid frequency: ".concat(t.freq," ").concat(e.freq));if(t.dtstart||(t.dtstart=new Date(new Date().setMilliseconds(0))),a(t.wkst)?s(t.wkst)||(t.wkst=t.wkst.weekday):t.wkst=eA.MO.weekday,a(t.bysetpos)){s(t.bysetpos)&&(t.bysetpos=[t.bysetpos]);for(var n=0;n<t.bysetpos.length;n++){var r=t.bysetpos[n];if(0===r||!(r>=-366&&r<=366))throw Error("bysetpos must be between 1 and 366, or between -366 and -1")}}if(!(t.byweekno||v(t.byweekno)||v(t.byyearday)||t.bymonthday||v(t.bymonthday)||a(t.byweekday)||a(t.byeaster)))switch(t.freq){case eA.YEARLY:t.bymonth||(t.bymonth=t.dtstart.getUTCMonth()+1),t.bymonthday=t.dtstart.getUTCDate();break;case eA.MONTHLY:t.bymonthday=t.dtstart.getUTCDate();break;case eA.WEEKLY:t.byweekday=[k(t.dtstart)]}if(a(t.bymonth)&&!c(t.bymonth)&&(t.bymonth=[t.bymonth]),a(t.byyearday)&&!c(t.byyearday)&&s(t.byyearday)&&(t.byyearday=[t.byyearday]),a(t.bymonthday)){if(c(t.bymonthday)){for(var i=[],u=[],n=0;n<t.bymonthday.length;n++){var r=t.bymonthday[n];r>0?i.push(r):r<0&&u.push(r)}t.bymonthday=i,t.bynmonthday=u}else t.bymonthday<0?(t.bynmonthday=[t.bymonthday],t.bymonthday=[]):(t.bynmonthday=[],t.bymonthday=[t.bymonthday])}else t.bymonthday=[],t.bynmonthday=[];if(a(t.byweekno)&&!c(t.byweekno)&&(t.byweekno=[t.byweekno]),a(t.byweekday)){if(s(t.byweekday))t.byweekday=[t.byweekday],t.bynweekday=null;else if(l(t.byweekday))t.byweekday=[o.fromStr(t.byweekday).weekday],t.bynweekday=null;else if(t.byweekday instanceof o)!t.byweekday.n||t.freq>eA.MONTHLY?(t.byweekday=[t.byweekday.weekday],t.bynweekday=null):(t.bynweekday=[[t.byweekday.weekday,t.byweekday.n]],t.byweekday=null);else{for(var d=[],f=[],n=0;n<t.byweekday.length;n++){var h=t.byweekday[n];if(s(h)){d.push(h);continue}if(l(h)){d.push(o.fromStr(h).weekday);continue}!h.n||t.freq>eA.MONTHLY?d.push(h.weekday):f.push([h.weekday,h.n])}t.byweekday=v(d)?d:null,t.bynweekday=v(f)?f:null}}else t.bynweekday=null;return a(t.byhour)?s(t.byhour)&&(t.byhour=[t.byhour]):t.byhour=t.freq<eA.HOURLY?[t.dtstart.getUTCHours()]:null,a(t.byminute)?s(t.byminute)&&(t.byminute=[t.byminute]):t.byminute=t.freq<eA.MINUTELY?[t.dtstart.getUTCMinutes()]:null,a(t.bysecond)?s(t.bysecond)&&(t.bysecond=[t.bysecond]):t.bysecond=t.freq<eA.SECONDLY?[t.dtstart.getUTCSeconds()]:null,{parsedOptions:t}}(e).parsedOptions;this.options=n}return e.parseText=function(e,t){return $(e,t)},e.fromText=function(e,t){var n;return void 0===(n=t)&&(n=z),new eA($(e,n)||void 0)},e.fromString=function(t){return new e(e.parseString(t)||void 0)},e.prototype._iter=function(e){return eD(e,this.options)},e.prototype._cacheGet=function(e,t){return!!this._cache&&this._cache._cacheGet(e,t)},e.prototype._cacheAdd=function(e,t,n){if(this._cache)return this._cache._cacheAdd(e,t,n
1)},e.prototype.all=function(e){if(e)return this._iter(new V("all",{},e));var t=this._cacheGet("all");return!1===t&&(t=this._iter(new H("all",{})),this._cacheAdd("all",t)),t},e.prototype.between=function(e,t,n,r){if(void 0===n&&(n=!1),!R(e)||!R(t))throw Error("Invalid date passed in to RRule.between");var i={before:t,after:e,inc:n};if(r)return this._iter(new V("between",i,r));var o=this._cacheGet("between",i);return!1===o&&(o=this._iter(new H("between",i)),this._cacheAdd("between",o,i)),o},e.prototype.before=function(e,t){if(void 0===t&&(t=!1),!R(e))throw Error("Invalid date passed in to RRule.before");var n={dt:e,inc:t},r=this._cacheGet("before",n);return!1===r&&(r=this._iter(new H("before",n)),this._cacheAdd("before",r,n)),r},e.prototype.after=function(e,t){if(void 0===t&&(t=!1),!R(e))throw Error("Invalid date passed in to RRule.after");var n={dt:e,inc:t},r=this._cacheGet("after",n);return!1===r&&(r=this._iter(new H("after",n)),this._cacheAdd("after",r,n)),r},e.prototype.count=function(){return this.all().length},e.prototype.toString=function(){return es(this.origOptions)},e.prototype.toText=function(e,t,n){return new G(this,e,t,n).toString()},e.prototype.isFullyConvertibleToText=function(){return Z(this)},e.prototype.clone=function(){return new e(this.origOptions)},e.FREQUENCIES=["YEARLY","MONTHLY","WEEKLY","DAILY","HOURLY","MINUTELY","SECONDLY"],e.YEARLY=r.YEARLY,e.MONTHLY=r.MONTHLY,e.WEEKLY=r.WEEKLY,e.DAILY=r.DAILY,e.HOURLY=r.HOURLY,e.MINUTELY=r.MINUTELY,e.SECONDLY=r.SECONDLY,e.MO=eT.MO,e.TU=eT.TU,e.WE=eT.WE,e.TH=eT.TH,e.FR=eT.FR,e.SA=eT.SA,e.SU=eT.SU,e.parseString=et,e.optionsToString=es,e}(),eP={dtstart:null,cache:!1,unfold:!1,forceset:!1,compatible:!1,tzid:null};function eN(e,t){return void 0===t&&(t={}),function(e,t){var n,r,i,o,a,s,l,c=(n=[],r=[],i=[],o=[],s=(a=en(e)).dtstart,l=a.tzid,(function(e,t){if(void 0===t&&(t=!1),!(e=e&&e.trim()))throw Error("Invalid empty string");if(!t)return e.split(/\s/);for(var n=e.split("\n"),r=0;r<n.length;){var i=n[r]=n[r].replace(/\s+$/g,"");i?r>0&&" "===i[0]?(n[r-1]+=i.slice(1),n.splice(r,1)):r+=1:n.splice(r,1)}return n})(e,t.unfold).forEach(function(e){if(e){var t,a=function(e){var t=function(e){if(-1===e.indexOf(":"))return{name:"RRULE",value:e};var t=h(e,":",1);return{name:t[0],value:t[1]}}(e),n=t.name,r=t.value,i=n.split(";");if(!i)throw Error("empty property name");return{name:i[0].toUpperCase(),parms:i.slice(1),value:r}}(e),s=a.name,c=a.parms,u=a.value;switch(s.toUpperCase()){case"RRULE":if(c.length)throw Error("unsupported RRULE parm: ".concat(c.join(",")));n.push(et(e));break;case"RDATE":var d=(null!==(t=/RDATE(?:;TZID=([^:=]+))?/i.exec(e))&&void 0!==t?t:[])[1];d&&!l&&(l=d),r=r.concat(eL(u,c));break;case"EXRULE":if(c.length)throw Error("unsupported EXRULE parm: ".concat(c.join(",")));i.push(et(u));break;case"EXDATE":o=o.concat(eL(u,c));break;case"DTSTART":break;default:throw Error("unsupported property: "+s)}}}),{dtstart:s,tzid:l,rrulevals:n,rdatevals:r,exrulevals:i,exdatevals:o}),u=c.rrulevals,d=c.rdatevals,f=c.exrulevals,p=c.exdatevals,g=c.dtstart,m=c.tzid,v=!1===t.cache;if(t.compatible&&(t.forceset=!0,t.unfold=!0),t.forceset||u.length>1||d.length||f.length||p.length){var y=new eH(v);return y.dtstart(g),y.tzid(m||void 0),u.forEach(function(e){y.rrule(new eA(ej(e,g,m),v))}),d.forEach(function(e){y.rdate(e)}),f.forEach(function(e){y.exrule(new eA(ej(e,g,m),v))}),p.forEach(function(e){y.exdate(e)}),t.compatible&&t.dtstart&&y.rdate(g),y}var b=u[0]||{};return new eA(ej(b,b.dtstart||t.dtstart||g,b.tzid||t.tzid||m),v)}(e,function(e){var t=[],n=Object.keys(e),r=Object.keys(eP);if(n.forEach(function(e){y(r,e)||t.push(e)}),t.length)throw Error("Invalid options: "+t.join(", "));return(0,U.Cl)((0,U.Cl)({},eP),e)}(t))}function ej(e,t,n){return(0,U.Cl)((0,U.Cl)({},e),{dtstart:t,tzid:n})}function eL(e,t){return!function(e){e.forEach(function(e){if(!/(VALUE=DATE(-TIME)?)|(TZID=)/.test(e))throw Error("unsupported RDATE/EXDATE parm: "+e)})}(t),e.split(",").map(function(e){return j(e)})}function eF(e){var t=this;return function(n){if(void 0!==n&&(t["_".concat(e)]=n),void 0!==t["_".concat(e)
1])return t["_".concat(e)];for(var r=0;r<t._rrule.length;r++){var i=t._rrule[r].origOptions[e];if(i)return i}}}var eH=function(e){function t(t){void 0===t&&(t=!1);var n=e.call(this,{},t)||this;return n.dtstart=eF.apply(n,["dtstart"]),n.tzid=eF.apply(n,["tzid"]),n._rrule=[],n._rdate=[],n._exrule=[],n._exdate=[],n}return(0,U.C6)(t,e),t.prototype._iter=function(e){return function(e,t,n,r,i,o){var a={},s=e.accept;function l(e,t){n.forEach(function(n){n.between(e,t,!0).forEach(function(e){a[Number(e)]=!0})})}i.forEach(function(e){a[Number(new ea(e,o).rezonedDate())]=!0}),e.accept=function(e){var t=Number(e);return isNaN(t)?s.call(this,e):!!a[t]||(l(new Date(t-1),new Date(t+1)),!!a[t])||(a[t]=!0,s.call(this,e))},"between"===e.method&&(l(e.args.after,e.args.before),e.accept=function(e){var t=Number(e);return!!a[t]||(a[t]=!0,s.call(this,e))});for(var c=0;c<r.length;c++){var u=new ea(r[c],o).rezonedDate();if(!e.accept(new Date(u.getTime())))break}t.forEach(function(t){eD(e,t.options)});var d=e._result;switch(P(d),e.method){case"all":case"between":return d;case"before":return d.length&&d[d.length-1]||null;default:return d.length&&d[0]||null}}(e,this._rrule,this._exrule,this._rdate,this._exdate,this.tzid())},t.prototype.rrule=function(e){eU(e,this._rrule)},t.prototype.exrule=function(e){eU(e,this._exrule)},t.prototype.rdate=function(e){eV(e,this._rdate)},t.prototype.exdate=function(e){eV(e,this._exdate)},t.prototype.rrules=function(){return this._rrule.map(function(e){return eN(e.toString())})},t.prototype.exrules=function(){return this._exrule.map(function(e){return eN(e.toString())})},t.prototype.rdates=function(){return this._rdate.map(function(e){return new Date(e.getTime())})},t.prototype.exdates=function(){return this._exdate.map(function(e){return new Date(e.getTime())})},t.prototype.valueOf=function(){var e=[];return!this._rrule.length&&this._dtstart&&(e=e.concat(es({dtstart:this._dtstart}))),this._rrule.forEach(function(t){e=e.concat(t.toString().split("\n"))}),this._exrule.forEach(function(t){e=e.concat(t.toString().split("\n").map(function(e){return e.replace(/^RRULE:/,"EXRULE:")}).filter(function(e){return!/^DTSTART/.test(e)}))}),this._rdate.length&&e.push(ez("RDATE",this._rdate,this.tzid())),this._exdate.length&&e.push(ez("EXDATE",this._exdate,this.tzid())),e},t.prototype.toString=function(){return this.valueOf().join("\n")},t.prototype.clone=function(){var e=new t(!!this._cache);return this._rrule.forEach(function(t){return e.rrule(t.clone())}),this._exrule.forEach(function(t){return e.exrule(t.clone())}),this._rdate.forEach(function(t){return e.rdate(new Date(t.getTime()))}),this._exdate.forEach(function(t){return e.exdate(new Date(t.getTime()))}),e},t}(eA);function eU(e,t){if(!(e instanceof eA))throw TypeError(String(e)+" is not RRule instance");y(t.map(String),String(e))||t.push(e)}function eV(e,t){if(!(e instanceof Date))throw TypeError(String(e)+" is not Date instance");y(t.map(Number),Number(e))||(t.push(e),P(t))}function ez(e,t,n){var r=!n||"UTC"===n.toUpperCase(),i=r?"".concat(e,":"):"".concat(e,";TZID=").concat(n,":"),o=t.map(function(e){return N(e.valueOf(),r)}).join(",");return"".concat(i).concat(o)}},7932:(e,t,n)=>{n.d(t,{Vv:()=>et,i1:()=>d});var r=n(533),i=n(5181);n(8447);let o=[],a={code:"en",week:{dow:0,doy:4},direction:"ltr",buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day",list:"list"},weekText:"W",weekTextLong:"Week",closeHint:"Close",timeHint:"Time",eventHint:"Event",allDayText:"all-day",moreLinkText:"more",noEventsText:"No events to display"},s=Object.assign(Object.assign({},a),{buttonHints:{prev:"Previous $0",next:"Next $0",today:(e,t)=>"day"===t?"Today":`This ${e}`},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint:e=>`Show ${e} more event${1===e?"":"s"}`});function l(e){let t=e.length>0?e[0].code:"en",n=o.concat(e),r={en:s};for(let e of n)r[e.code]=e;return{map:r,defaultCode:t}}function c(e,t){let n,r;return"object"!=typeof e||Array.isArray(e)?(r=function(e,t){for(let n=0;n<e.length;n+=1){let r=e[n].toLocaleLowerCase().split("-");for(let e=r.length;e>0;e-=1){let n=r.slice(0,e).join("-");if(t[n])return t[n]}}return null}(n=[].concat(e||[]),t)||s,u(e,n,r)):u(e.code,[e.code],e)}function u(e,t,n){let i=(0,r.m)([a,n],["buttonText"]);delete i.code;let{week:o}=i;return delete i.week,{codeArg:e,codes:t,week:o,simpleNumberFormat:new Intl.NumberFormat(e),options:i}}function d(e){return{id:(0,r.g)(),name:e.name,premiumReleaseDate:e.premiumReleaseDate?new Date(e.premiumReleaseDate):void 0,deps:e.deps||[],reducers:e.reducers||[],isLoadingFuncs:e.isLoadingFuncs||[],contextInit:[].concat(e.contextInit||[]),eventRefiners:e.eventRefiners||{},eventDefMemberAdders:e.eventDefMemberAdders||[],eventSourceRefiners:e.eventSourceRefiners||{},isDraggableTransformers:e.isDraggableTransformers||[],eventDragMutationMassagers:e.eventDragMutationMassagers||[],eventDefMutationAppliers:e.eventDefMutationAppliers||[],dateSelectionTransformers:e.dateSelectionTransformers||[],datePointTransforms:e.datePointTransforms||[],dateSpanTransforms:e.dateSpanTransforms||[],views:e.views||{},viewPropsTransformers:e.viewPropsTransformers||[],isPropsValid:e.isPropsValid||null,externalDefTransforms:e.externalDefTransforms||[],viewContainerAppends:e.viewContainerAppends||[],eventDropTransformers:e.eventDropTransformers||[],componentInteractions:e.componentInteractions||[],calendarInteractions:e.calendarInteractions||[],themeClasses:e.themeClasses||{},eventSourceDefs:e.eventSourceDefs||[],cmdFormatter:e.cmdFormatter,recurringTypes:e.recurringTypes||[],namedTimeZonedImpl:e.namedTimeZonedImpl,initialView:e.initialView||"",elementDraggingImpl:e.elementDraggingImpl,optionChangeHandlers:e.optionChangeHandlers||{},scrollGridImpl:e.scrollGridImpl||null,listenerRefiners:e.listenerRefiners||{},optionRefiners:e.optionRefiners||{},propSetHandlers:e.propSetHandlers||{}}}class f extends r.T{}function h(e,t,n,r){if(t[e])return t[e];let i=function(e,t,n,r){let i=n[e],o=r[e],a=e=>i&&null!==i[e]?i[e]:o&&null!==o[e]?o[e]:null,s=a("component"),l=a("superType"),c=null;if(l){if(l===e)throw Error("Can't have a custom view type that references itself");c=h(l,t,n,r)}return(!s&&c&&(s=c.component),s)?{type:e,component:s,defaults:Object.assign(Object.assign({},c?c.defaults:{}),i?i.rawOptions:{}),overrides:Object.assign(Object.assign({},c?c.overrides:{}),o?o.rawOptions:{})}:null}(e,t,n,r);return i&&(t[e]=i),i}function p(e){let t="function"==typeof e?{component:e}:e,{component:n}=t;return t.content?n=g(t):!n||n.prototype instanceof r.B||(n=g(Object.assign(Object.assign({},t),{content:n}))),{superType:t.type,component:n,rawOptions:t}}function g(e){return t=>(0,i.n)(r.V.Consumer,null,n=>(0,i.n)(r.C,{elTag:"div",elClasses:(0,r.b)(n.viewSpec),renderProps:Object.assign(Object.assign({},t),{nextDayThreshold:n.options.nextDayThreshold}),generatorName:void 0,customGenerator:e.content,classNameGenerator:e.classNames,didMount:e.didMount,willUnmount:e.willUnmount}))}function m(e,t,n,i){var o;let a=(0,r.a)(e,p),s=(o=t.views,(0,r.a)(o,p)),l=function(e,t){let n,r={};for(n in e)h(n,r,e,t);for(n in t)h(n,r,e,t);return r}(a,s);return(0,r.a)(l,e=>(function(e,t,n,i,o){let a,s,l=e.overrides.duration||e.defaults.duration||i.duration||n.duration,c=null,u="",d="",f={};if(l&&(void 0===(s=v[a=JSON.stringify(l)])&&(s=(0,r.d)(l),v[a]=s),c=s)){let e=(0,r.c)(c);u=e.unit,1===e.value&&(d=u,f=t[u]?t[u].rawOptions:{})}let h=t=>{let n=t.buttonText||{},r=e.defaults.buttonTextKey;return null!=r&&null!=n[r]?n[r]:null!=n[e.type]?n[e.type]:null!=n[d]?n[d]:null},p=t=>{let n=t.buttonHints||{},r=e.defaults.buttonTextKey;return null!=r&&null!=n[r]?n[r]:null!=n[e.type]?n[e.type]:null!=n[d]?n[d]:null};return{type:e.type,component:e.component,duration:c,durationUnit:u,singleUnit:d,optionDefaults:e.defaults,optionOverrides:Object.assign(Object.assign({},f),e.overrides),buttonTextOverride:h(i)||h(n)||e.overrides.buttonText,buttonTextDefault:h(o)||e.defaults.buttonText||h(r.e)||e.type,buttonTitleOverride:p(i)||p(n)||e.overrides.buttonHint,buttonTitleDefault:p(o)||e.defaults.buttonHint||p(r.e)}})(e,s,t,n,i))}f.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"},f.prototype.baseIconClass="fc-icon",f.prototype.iconClasses={close:"fc-icon-x",prev:"fc-icon-chevron-left",next:"fc-icon-chevron-right",prevYear:"fc-icon-chevrons-left",nextYear:"fc-icon-chevrons-right"},f.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"},f.prototype.iconOverrideOption="buttonIcons",f.prototype.iconOverrideCustomButtonOption="icon",f.prototype.iconOverridePrefix="fc-icon-";let v={};function y(e){for(let t in e)if(e[t].isFetching)return!0;return!1}function b(e,t,n,r){let i={};for(let e of t)i[e.sourceId]=e;return n&&(i=w(i,n,r)),Object.assign(Object.assign({},e),i)}function w(e,t,n){return E(e,(0,r.h)(e,e=>_(e,n)?!n.options.lazyFetching||!e.fetchRange||e.isFetching||t.start<e.fetchRange.start||t.end>e.fetchRange.end:!e.latestFetchId),t,!1,n)}function E(e,t,n,i,o){let a={};for(let s in e){let l=e[s];t[s]?a[s]=function(e,t,n,i){let{options:o,calendarApi:a}=i,s=i.pluginHooks.eventSourceDefs[e.sourceDefId],l=(0,r.g)();return s.fetch({eventSource:e,range:t,isRefetch:n,context:i},n=>{let{rawEvents:r}=n;o.eventSourceSuccess&&(r=o.eventSourceSuccess.call(a,r,n.response)||r),e.success&&(r=e.success.call(a,r,n.response)||r),i.dispatch({type:"RECEIVE_EVENTS",sourceId:e.sourceId,fetchId:l,fetchRange:t,rawEvents:r})},n=>{let r=!1;o.eventSourceFailure&&(o.eventSourceFailure.call(a,n),r=!0),e.failure&&(e.failure(n),r=!0),r||console.warn(n.message,n),i.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:e.sourceId,fetchId:l,fetchRange:t,error:n})}),Object.assign(Object.assign({},e),{isFetching:!0,latestFetchId:l})}(l,n,i,o):a[s]=l}return a}function S(e,t){return(0,r.h)(e,e=>_(e,t))}function _(e,t){return!t.pluginHooks.eventSourceDefs[e.sourceDefId].ignoreRange}function x(e,t,n,r,i){return{header:e.headerToolbar?R(e.headerToolbar,e,t,n,r,i):null,footer
1:e.footerToolbar?R(e.footerToolbar,e,t,n,r,i):null}}function R(e,t,n,i,o,a){let s={},l=[],c=!1;for(let u in e){let d=function(e,t,n,i,o,a){let s="rtl"===t.direction,l=t.customButtons||{},c=n.buttonText||{},u=t.buttonText||{},d=n.buttonHints||{},f=t.buttonHints||{},h=e?e.split(" "):[],p=[],g=!1;return{widgets:h.map(e=>e.split(",").map(e=>{let n,h,m,v,y,b;if("title"===e)return g=!0,{buttonName:e};if(n=l[e])m=e=>{n.click&&n.click.call(e.target,e,e.target)},(v=i.getCustomButtonIconClass(n))||(v=i.getIconClass(e,s))||(y=n.text),b=n.hint||n.text;else if(h=o[e]){p.push(e),m=()=>{a.changeView(e)},(y=h.buttonTextOverride)||(v=i.getIconClass(e,s))||(y=h.buttonTextDefault);let n=h.buttonTextOverride||h.buttonTextDefault;b=(0,r.k)(h.buttonTitleOverride||h.buttonTitleDefault||t.viewHint,[n,e],n)}else if(a[e]){if(m=()=>{a[e]()},(y=c[e])||(v=i.getIconClass(e,s))||(y=u[e]),"prevYear"===e||"nextYear"===e){let t="prevYear"===e?"prev":"next";b=(0,r.k)(d[t]||f[t],[u.year||"year","year"],u[e])}else b=t=>(0,r.k)(d[e]||f[e],[u[t]||t,t],u[e])}return{buttonName:e,buttonClick:m,buttonIcon:v,buttonText:y,buttonHint:b}})),viewsWithButtons:p,hasTitle:g}}(e[u],t,n,i,o,a);s[u]=d.widgets,l.push(...d.viewsWithButtons),c=c||d.hasTitle}return{sectionWidgets:s,viewsWithButtons:l,hasTitle:c}}class C{constructor(e,t,n){this.type=e,this.getCurrentData=t,this.dateEnv=n}get calendar(){return this.getCurrentData().calendarApi}get title(){return this.getCurrentData().viewTitle}get activeStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)}get activeEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)}get currentStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)}get currentEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)}getOption(e){return this.getCurrentData().options[e]}}let D=d({name:"array-event-source",eventSourceDefs:[{ignoreRange:!0,parseMeta:e=>Array.isArray(e.events)?e.events:null,fetch(e,t){t({rawEvents:e.eventSource.meta})}}]}),O=d({name:"func-event-source",eventSourceDefs:[{parseMeta:e=>"function"==typeof e.events?e.events:null,fetch(e,t,n){let{dateEnv:i}=e.context,o=e.eventSource.meta;(0,r.u)(o.bind(null,(0,r.l)(e.range,i)),e=>t({rawEvents:e}),n)}}]}),k=d({name:"json-event-source",eventSourceRefiners:{method:String,extraParams:r.n,startParam:String,endParam:String,timeZoneParam:String},eventSourceDefs:[{parseMeta:e=>e.url&&("json"===e.format||!e.format)?{url:e.url,format:"json",method:(e.method||"GET").toUpperCase(),extraParams:e.extraParams,startParam:e.startParam,endParam:e.endParam,timeZoneParam:e.timeZoneParam}:null,fetch(e,t,n){let{meta:i}=e.eventSource,o=function(e,t,n){let r,i,o,{dateEnv:a,options:s}=n,l={};return null==(r=e.startParam)&&(r=s.startParam),null==(i=e.endParam)&&(i=s.endParam),null==(o=e.timeZoneParam)&&(o=s.timeZoneParam),Object.assign(l,"function"==typeof e.extraParams?e.extraParams():e.extraParams||{}),l[r]=a.formatIso(t.start),l[i]=a.formatIso(t.end),"local"!==a.timeZone&&(l[o]=a.timeZone),l}(i,e.range,e.context);(0,r.r)(i.method,i.url,o).then(([e,n])=>{t({rawEvents:e,response:n})},n)}}]}),T={daysOfWeek:r.n,startTime:r.d,endTime:r.d,duration:r.d,startRecur:r.n,endRecur:r.n};function M(e,t){let n=(0,r.v)(t.getCurrentData().eventSources);if(1===n.length&&1===e.length&&Array.isArray(n[0]._raw)&&Array.isArray(e[0])){t.dispatch({type:"RESET_RAW_EVENTS",sourceId:n[0].sourceId,rawEvents:e[0]});return}let i=[];for(let t of e){let e=!1;for(let r=0;r<n.length;r+=1)if(n[r]._raw===t){n.splice(r,1),e=!0;break}e||i.push(t)}for(let e of n)t.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:e.sourceId});for(let e of i)t.calendarApi.addEventSource(e)}let I=[D,O,k,d({name:"simple-recurring-event",recurringTypes:[{parse(e,t){if(e.daysOfWeek||e.startTime||e.endTime||e.startRecur||e.endRecur){let n,i={daysOfWeek:e.daysOfWeek||null,startTime:e.startTime||null,endTime:e.endTime||null,startRecur:e.startRecur?t.createMarker(e.startRecur):null,endRecur:e.endRecur?t.createMarker(e.endRecur):null,dateEnv:t};return e.duration&&(n=e.duration),!n&&e.startTime&&e.endTime&&(n=(0,r.s)(e.endTime,e.startTime)),{allDayGuess:!!(!e.startTime&&!e.endTime),duration:n,typeData:i}}return null}
1,expand(e,t,n){let i=(0,r.o)(t,{start:e.startRecur,end:e.endRecur});return i?function(e,t,n,i,o){let a=e?(0,r.f)(e):null,s=(0,r.q)(o.start),l=o.end,c=[];for(t&&(t.milliseconds<0?l=(0,r.t)(l,1):t.milliseconds>=864e5&&(s=(0,r.t)(s,-1)));s<l;){let e;(!a||a[s.getUTCDay()])&&(e=t?i.add(s,t):s,c.push(i.createMarker(n.toDate(e)))),s=(0,r.t)(s,1)}return c}(e.daysOfWeek,e.startTime,e.dateEnv,n,i):[]}}],eventRefiners:T}),d({name:"change-handler",optionChangeHandlers:{events(e,t){M([e],t)},eventSources:M}}),d({name:"misc",isLoadingFuncs:[e=>y(e.eventSources)],propSetHandlers:{dateProfile:function(e,t){t.emitter.trigger("datesSet",Object.assign(Object.assign({},(0,r.l)(e.activeRange,t.dateEnv)),{view:t.viewApi}))},eventStore:function(e,t){let{emitter:n}=t;n.hasHandlers("eventsSet")&&n.trigger("eventsSet",(0,r.w)(e,t))}}})];class A{constructor(e,t){this.runTaskOption=e,this.drainedOption=t,this.queue=[],this.delayedRunner=new r.D(this.drain.bind(this))}request(e,t){this.queue.push(e),this.delayedRunner.request(t)}pause(e){this.delayedRunner.pause(e)}resume(e,t){this.delayedRunner.resume(e,t)}drain(){let{queue:e}=this;for(;e.length;){let t,n=[];for(;t=e.shift();)this.runTask(t),n.push(t);this.drained(n)}}runTask(e){this.runTaskOption&&this.runTaskOption(e)}drained(e){this.drainedOption&&this.drainedOption(e)}}function P(e,t,n){let i;return i=/^(year|month)$/.test(e.currentRangeUnit)?e.currentRange:e.activeRange,n.formatRange(i.start,i.end,(0,r.x)(t.titleFormat||function(e){let{currentRangeUnit:t}=e;if("year"===t)return{year:"numeric"};if("month"===t)return{year:"numeric",month:"long"};let n=(0,r.y)(e.currentRange.start,e.currentRange.end);return null!==n&&n>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}(e)),{isEndExclusive:e.isRangeAllDay,defaultSeparator:t.titleRangeSeparator})}class N{constructor(){this.resetListeners=new Set}handleInput(e,t){let n=this.dateEnv;if(e!==n&&("function"==typeof t?this.nowFn=t:n||(this.nowAnchorDate=e.toDate(t?e.createMarker(t):e.createNowMarker()),this.nowAnchorQueried=Date.now()),this.dateEnv=e,n))for(let e of this.resetListeners.values())e()}getDateMarker(){return this.nowAnchorDate?this.dateEnv.timestampToMarker(this.nowAnchorDate.valueOf()+(Date.now()-this.nowAnchorQueried)):this.dateEnv.createMarker(this.nowFn())}addResetListener(e){this.resetListeners.add(e)}removeResetListener(e){this.resetListeners.delete(e)}}class j{constructor(e){this.computeCurrentViewData=(0,r.z)(this._computeCurrentViewData),this.organizeRawLocales=(0,r.z)(l),this.buildLocale=(0,r.z)(c),this.buildPluginHooks=function(){let e,t=[],n=[];return(i,o)=>(e&&(0,r.i)(i,t)&&(0,r.i)(o,n)||(e=function(e,t){let n={},r={premiumReleaseDate:void 0,reducers:[],isLoadingFuncs:[],contextInit:[],eventRefiners:{},eventDefMemberAdders:[],eventSourceRefiners:{},isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],viewContainerAppends:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,initialView:"",elementDraggingImpl:null,optionChangeHandlers:{},scrollGridImpl:null,listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function i(e){for(let t of e){let e=t.name,o=n[e];void 0===o?(n[e]=t.id,i(t.deps),r=function(e,t){var n,r;return{premiumReleaseDate:(n=e.premiumReleaseDate,r=t.premiumReleaseDate,void 0===n?r:void 0===r?n:new Date(Math.max(n.valueOf(),r.valueOf()))),reducers:e.reducers.concat(t.reducers),isLoadingFuncs:e.isLoadingFuncs.concat(t.isLoadingFuncs),contextInit:e.contextInit.concat(t.contextInit),eventRefiners:Object.assign(Object.assign({},e.eventRefiners),t.eventRefiners),eventDefMemberAdders:e.eventDefMemberAdders.concat(t.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},e.eventSourceRefiners),t.eventSourceRefiners),isDraggableTransformers:e.isDraggableTransformers.concat(t.isDraggableTransformers),eventDragMutationMassagers:e.eventDragMutationMassagers.concat(t.eventDragMutationMassagers),eventDefMutationAppliers:e.eventDefMutationAppliers.concat(t.eventDefMutationAppliers),dateSelectionTransformers:e.dateSelectionTransformers.concat(t.dateSelectionTransformers),datePointTransforms:e.datePointTransforms.concat(t.datePointTransforms),dateSpanTransforms:e.dateSpanTransforms.concat(t.dateSpanTransforms),views:Object.assign(Object.assign({},e.views),t.views),viewPropsTransformers:e.viewPropsTransformers.concat(t.viewPropsTransformers),isPropsValid:t.isPropsValid||e.isPropsValid,externalDefTransforms:e.externalDefTransforms.concat(t.externalDefTransforms),viewContainerAppends:e.viewContainerAppends.concat(t.viewContainerAppends),eventDropTransformers:e.eventDropTransformers.concat(t.eventDropTransformers),calendarInteractions:e.calendarInteractions.concat(t.calendarInteractions),componentInteractions:e.componentInteractions.concat(t.componentInteractions),theme
1Classes:Object.assign(Object.assign({},e.themeClasses),t.themeClasses),eventSourceDefs:e.eventSourceDefs.concat(t.eventSourceDefs),cmdFormatter:t.cmdFormatter||e.cmdFormatter,recurringTypes:e.recurringTypes.concat(t.recurringTypes),namedTimeZonedImpl:t.namedTimeZonedImpl||e.namedTimeZonedImpl,initialView:e.initialView||t.initialView,elementDraggingImpl:e.elementDraggingImpl||t.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},e.optionChangeHandlers),t.optionChangeHandlers),scrollGridImpl:t.scrollGridImpl||e.scrollGridImpl,listenerRefiners:Object.assign(Object.assign({},e.listenerRefiners),t.listenerRefiners),optionRefiners:Object.assign(Object.assign({},e.optionRefiners),t.optionRefiners),propSetHandlers:Object.assign(Object.assign({},e.propSetHandlers),t.propSetHandlers)}}(r,t)):o!==t.id&&console.warn(`Duplicate plugin '${e}'`)}}return e&&i(e),i(t),r}(i,o)),t=i,n=o,e)}(),this.buildDateEnv=(0,r.z)(L),this.buildTheme=(0,r.z)(F),this.parseToolbars=(0,r.z)(x),this.buildViewSpecs=(0,r.z)(m),this.buildDateProfileGenerator=(0,r.A)(H),this.buildViewApi=(0,r.z)(U),this.buildViewUiProps=(0,r.A)(W),this.buildEventUiBySource=(0,r.z)(V,r.E),this.buildEventUiBases=(0,r.z)(z),this.parseContextBusinessHours=(0,r.A)(B),this.buildTitle=(0,r.z)(P),this.nowManager=new N,this.emitter=new r.F,this.actionRunner=new A(this._handleAction.bind(this),this.updateData.bind(this)),this.currentCalendarOptionsInput={},this.currentCalendarOptionsRefined={},this.currentViewOptionsInput={},this.currentViewOptionsRefined={},this.currentCalendarOptionsRefiners={},this.optionsForRefining=[],this.optionsForHandling=[],this.getCurrentData=()=>this.data,this.dispatch=e=>{this.actionRunner.request(e)},this.props=e,this.actionRunner.pause(),this.nowManager=new N;let t={},n=this.computeOptionsData(e.optionOverrides,t,e.calendarApi),i=n.calendarOptions.initialView||n.pluginHooks.initialView,o=this.computeCurrentViewData(i,n,e.optionOverrides,t);e.calendarApi.currentDataManager=this,this.emitter.setThisContext(e.calendarApi),this.emitter.setOptions(o.options);let a={nowManager:this.nowManager,dateEnv:n.dateEnv,options:n.calendarOptions,pluginHooks:n.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},s=function(e,t,n){let r=e.initialDate;return null!=r?t.createMarker(r):n.getDateMarker()}(n.calendarOptions,n.dateEnv,this.nowManager),u=o.dateProfileGenerator.build(s);for(let e of((0,r.G)(u.activeRange,s)||(s=u.currentRange.start),n.pluginHooks.contextInit))e(a);let d=function(e,t,n){let i=t?t.activeRange:null;return b({},function(e,t){let n=(0,r.j)(t),i=[].concat(e.eventSources||[]),o=[];for(let a of(e.initialEvents&&i.unshift(e.initialEvents),e.events&&i.unshift(e.events),i)){let e=(0,r.p)(a,t,n);e&&o.push(e)}return o}(e,n),i,n)}(n.calendarOptions,u,a),f={dynamicOptionOverrides:t,currentViewType:i,currentDate:s,dateProfile:u,businessHours:this.parseContextBusinessHours(a),eventSources:d,eventUiBases:{},eventStore:(0,r.H)(),renderableEventStore:(0,r.H)(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(a).selectionConfig},h=Object.assign(Object.assign({},a),f);for(let e of n.pluginHooks.reducers)Object.assign(f,e(null,null,h));Y(f,a)&&this.emitter.trigger("loading",!0),this.state=f,this.updateData(),this.actionRunner.resume()}resetOptions(e,t){let{props:n}=this;void 0===t?n.optionOverrides=e:(n.optionOverrides=Object.assign(Object.assign({},n.optionOverrides||{}),e),this.optionsForRefining.push(...t)),(void 0===t||t.length)&&this.actionRunner.request({type:"NOTHING"})}_handleAction(e){var t,n,i;let{props:o,state:a,emitter:s}
1=this,l=(t=a.dynamicOptionOverrides,"SET_OPTION"===e.type?Object.assign(Object.assign({},t),{[e.optionName]:e.rawOptionValue}):t),c=this.computeOptionsData(o.optionOverrides,l,o.calendarApi),u=(n=a.currentViewType,"CHANGE_VIEW_TYPE"===e.type&&(n=e.viewType),n),d=this.computeCurrentViewData(u,c,o.optionOverrides,l);o.calendarApi.currentDataManager=this,s.setThisContext(o.calendarApi),s.setOptions(d.options);let f={nowManager:this.nowManager,dateEnv:c.dateEnv,options:c.calendarOptions,pluginHooks:c.pluginHooks,calendarApi:o.calendarApi,dispatch:this.dispatch,emitter:s,getCurrentData:this.getCurrentData},{currentDate:h,dateProfile:p}=a;this.data&&this.data.dateProfileGenerator!==d.dateProfileGenerator&&(p=d.dateProfileGenerator.build(h)),i=h,h="CHANGE_DATE"===e.type?e.dateMarker:i,p=function(e,t,n,r){let i;switch(t.type){case"CHANGE_VIEW_TYPE":return r.build(t.dateMarker||n);case"CHANGE_DATE":return r.build(t.dateMarker);case"PREV":if((i=r.buildPrev(e,n)).isValid)return i;break;case"NEXT":if((i=r.buildNext(e,n)).isValid)return i}return e}(p,e,h,d.dateProfileGenerator),"PREV"!==e.type&&"NEXT"!==e.type&&(0,r.G)(p.currentRange,h)||(h=p.currentRange.start);let g=function(e,t,n,i){var o,a,s,l;let c=n?n.activeRange:null;switch(t.type){case"ADD_EVENT_SOURCES":return b(e,t.sources,c,i);case"REMOVE_EVENT_SOURCE":return o=t.sourceId,(0,r.h)(e,e=>e.sourceId!==o);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":if(n)return w(e,c,i);return e;case"FETCH_EVENT_SOURCES":return E(e,t.sourceIds?(0,r.f)(t.sourceIds):S(e,i),c,t.isRefetch||!1,i);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":let u;return a=t.sourceId,s=t.fetchId,l=t.fetchRange,(u=e[a])&&s===u.latestFetchId?Object.assign(Object.assign({},e),{[a]:Object.assign(Object.assign({},u),{isFetching:!1,fetchRange:l})}):e;case"REMOVE_ALL_EVENT_SOURCES":return{};default:return e}}(a.eventSources,e,p,f),m=(0,r.I)(a.eventStore,e,g,p,f),v=y(g)&&!d.options.progressiveEventRendering&&a.renderableEventStore||m,{eventUiSingleBase:_,selectionConfig:x}=this.buildViewUiProps(f),R=this.buildEventUiBySource(g),C=this.buildEventUiBases(v.defs,_,R),D={dynamicOptionOverrides:l,currentViewType:u,currentDate:h,dateProfile:p,eventSources:g,eventStore:m,renderableEventStore:v,selectionConfig:x,eventUiBases:C,businessHours:this.parseContextBusinessHours(f),dateSelection:function(e,t){switch(t.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return t.selection;default:return e}}(a.dateSelection,e),eventSelection:function(e,t){switch(t.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return t.eventInstanceId;default:return e}}(a.eventSelection,e),eventDrag:function(e,t){let n;switch(t.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return{affectedEvents:(n=t.state).affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}(a.eventDrag,e),eventResize:function(e,t){let n;switch(t.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return{affectedEvents:(n=t.state).affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}(a.eventResize,e)},O=Object.assign(Object.assign({},f),D);for(let t of c.pluginHooks.reducers)Object.assign(D,t(a,e,O));let k=Y(a,f),T=Y(D,f);!k&&T?s.trigger("loading",!0):k&&!T&&s.trigger("loading",!1),this.state=D,o.onAction&&o.onAction(e)}updateData(){let{props:e,state:t}=this,n=this.data,i=this.computeOptionsData(e.optionOverrides,t.dynamicOptionOverrides,e.calendarApi),o=this.computeCurrentViewData(t.currentViewType,i,e.optionOverrides,t.dynamicOptionOverrides),a=this.data=Object.assign(Object.assign(Object.assign({nowManager:this.nowManager,viewTitle:this.buildTitle(t.dateProfile,o.options,i.dateEnv),calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},i),o),t),s=i.pluginHooks.optionChangeHandlers,l=n&&n.calendarOptions,c=i.calendarOptions;if(l&&l!==c){if(l.timeZone!==c.timeZone){var u,d;let e;t.eventSources=a.eventSources=(u=a.eventSources,e=(d=t.dateProfile)?d.activeRange:null,E(u,S(u,a),e,!0,a)),t.eventStore=a.eventStore=(0,r.J)(a.eventStore,
1n.dateEnv,a.dateEnv),t.renderableEventStore=a.renderableEventStore=(0,r.J)(a.renderableEventStore,n.dateEnv,a.dateEnv)}for(let e in s)(-1!==this.optionsForHandling.indexOf(e)||l[e]!==c[e])&&s[e](c[e],a)}this.optionsForHandling=[],e.onData&&e.onData(a)}computeOptionsData(e,t,n){if(!this.optionsForRefining.length&&e===this.stableOptionOverrides&&t===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;let{refinedOptions:r,pluginHooks:i,localeDefaults:o,availableLocaleData:a,extra:s}=this.processRawCalendarOptions(e,t);G(s);let l=this.buildDateEnv(r.timeZone,r.locale,r.weekNumberCalculation,r.firstDay,r.weekText,i,a,r.defaultRangeSeparator),c=this.buildViewSpecs(i.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,o),u=this.buildTheme(r,i),d=this.parseToolbars(r,this.stableOptionOverrides,u,c,n);return this.stableCalendarOptionsData={calendarOptions:r,pluginHooks:i,dateEnv:l,viewSpecs:c,theme:u,toolbarConfig:d,localeDefaults:o,availableRawLocales:a.map}}processRawCalendarOptions(e,t){let{locales:n,locale:i}=(0,r.K)([r.e,e,t]),o=this.organizeRawLocales(n),a=o.map,s=this.buildLocale(i||o.defaultCode,a).options,l=this.buildPluginHooks(e.plugins||[],I),c=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},r.L),r.M),r.N),l.listenerRefiners),l.optionRefiners),u={},d=(0,r.K)([r.e,s,e,t]),f={},h=this.currentCalendarOptionsInput,p=this.currentCalendarOptionsRefined,g=!1;for(let e in d)-1===this.optionsForRefining.indexOf(e)&&(d[e]===h[e]||r.O[e]&&e in h&&r.O[e](h[e],d[e]))?f[e]=p[e]:c[e]?(f[e]=c[e](d[e]),g=!0):u[e]=h[e];return g&&(this.currentCalendarOptionsInput=d,this.currentCalendarOptionsRefined=f,this.stableOptionOverrides=e,this.stableDynamicOptionOverrides=t),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:l,availableLocaleData:o,localeDefaults:s,extra:u}}_computeCurrentViewData(e,t,n,r){let i=t.viewSpecs[e];if(!i)throw Error(`viewType "${e}" is not available. Please make sure you've loaded all neccessary plugins`);let{refinedOptions:o,extra:a}=this.processRawViewOptions(i,t.pluginHooks,t.localeDefaults,n,r);G(a),this.nowManager.handleInput(t.dateEnv,o.now);let s=this.buildDateProfileGenerator({dateProfileGeneratorClass:i.optionDefaults.dateProfileGeneratorClass,nowManager:this.nowManager,duration:i.duration,durationUnit:i.durationUnit,usesMinMaxTime:i.optionDefaults.usesMinMaxTime,dateEnv:t.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:o.slotMinTime,slotMaxTime:o.slotMaxTime,showNonCurrentDates:o.showNonCurrentDates,dayCount:o.dayCount,dateAlignment:o.dateAlignment,dateIncrement:o.dateIncrement,hiddenDays:o.hiddenDays,weekends:o.weekends,validRangeInput:o.validRange,visibleRangeInput:o.visibleRange,fixedWeekCount:o.fixedWeekCount});return{viewSpec:i,options:o,dateProfileGenerator:s,viewApi:this.buildViewApi(e,this.getCurrentData,t.dateEnv)}}processRawViewOptions(e,t,n,i,o){let a=(0,r.K)([r.e,e.optionDefaults,n,i,e.optionOverrides,o]),s=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},r.L),r.M),r.N),r.P),t.listenerRefiners),t.optionRefiners),l={},c=this.currentViewOptionsInput,u=this.currentViewOptionsRefined,d=!1,f={};for(let e in a)a[e]===c[e]||r.O[e]&&r.O[e](a[e],c[e])?l[e]=u[e]:(a[e]===this.currentCalendarOptionsInput[e]||r.O[e]&&r.O[e](a[e],this.currentCalendarOptionsInput[e])?e in this.currentCalendarOptionsRefined&&(l[e]=this.currentCalendarOptionsRefined[e]):s[e]?l[e]=s[e](a[e]):f[e]=a[e],d=!0);return d&&(this.currentViewOptionsInput=a,this.currentViewOptionsRefined=l),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:f}}}function L(e,t,n,i,o,a,s,l){let u=c(t||s.defaultCode,s.map);return new r.Q({calendarSystem:"gregory",timeZone:e,namedTimeZoneImpl:a.namedTimeZonedImpl,locale:u,weekNumberCalculation:n,firstDay:i,weekText:o,cmdFormatter:a.cmdFormatter,defaultSeparator:l})}function F(e,t){return new(t.themeClasses[e.themeSystem]||f)(e)}function H(e){return new(e.dateProfileGeneratorClass||r.R)(e)}
1function U(e,t,n){return new C(e,t,n)}function V(e){return(0,r.a)(e,e=>e.ui)}function z(e,t,n){let r={"":t};for(let t in e){let i=e[t];i.sourceId&&n[i.sourceId]&&(r[t]=n[i.sourceId])}return r}function W(e){let{options:t}=e;return{eventUiSingleBase:(0,r.S)({display:t.eventDisplay,editable:t.editable,startEditable:t.eventStartEditable,durationEditable:t.eventDurationEditable,constraint:t.eventConstraint,overlap:"boolean"==typeof t.eventOverlap?t.eventOverlap:void 0,allow:t.eventAllow,backgroundColor:t.eventBackgroundColor,borderColor:t.eventBorderColor,textColor:t.eventTextColor,color:t.eventColor},e),selectionConfig:(0,r.S)({constraint:t.selectConstraint,overlap:"boolean"==typeof t.selectOverlap?t.selectOverlap:void 0,allow:t.selectAllow},e)}}function Y(e,t){for(let n of t.pluginHooks.isLoadingFuncs)if(n(e))return!0;return!1}function B(e){return(0,r.U)(e.options.businessHours,e)}function G(e,t){for(let n in e)console.warn(`Unknown option '${n}'`+(t?` for view '${t}'`:""))}class X extends r.B{render(){let e=this.props.widgetGroups.map(e=>this.renderWidgetGroup(e));return(0,i.n)("div",{className:"fc-toolbar-chunk"},...e)}renderWidgetGroup(e){let{props:t}=this,{theme:n}=this.context,r=[],o=!0;for(let a of e){let{buttonName:e,buttonClick:s,buttonText:l,buttonIcon:c,buttonHint:u}=a;if("title"===e)o=!1,r.push((0,i.n)("h2",{className:"fc-toolbar-title",id:t.titleId},t.title));else{let o=e===t.activeButton,a=!t.isTodayEnabled&&"today"===e||!t.isPrevEnabled&&"prev"===e||!t.isNextEnabled&&"next"===e,d=[`fc-${e}-button`,n.getClass("button")];o&&d.push(n.getClass("buttonActive")),r.push((0,i.n)("button",{type:"button",title:"function"==typeof u?u(t.navUnit):u,disabled:a,"aria-pressed":o,className:d.join(" "),onClick:s},l||(c?(0,i.n)("span",{className:c,role:"img"}):"")))}}if(r.length>1){let e=o&&n.getClass("buttonGroup")||"";return(0,i.n)("div",{className:e},...r)}return r[0]}}class $ extends r.B{render(){let e,t,{model:n,extraClassName:r}=this.props,o=!1,a=n.sectionWidgets,s=a.center;a.left?(o=!0,e=a.left):e=a.start,a.right?(o=!0,t=a.right):t=a.end;let l=[r||"","fc-toolbar",o?"fc-toolbar-ltr":""];return(0,i.n)("div",{className:l.join(" ")},this.renderSection("start",e||[]),this.renderSection("center",s||[]),this.renderSection("end",t||[]))}renderSection(e,t){let{props:n}=this;return(0,i.n)(X,{key:e,widgetGroups:t,title:n.title,navUnit:n.navUnit,activeButton:n.activeButton,isTodayEnabled:n.isTodayEnabled,isPrevEnabled:n.isPrevEnabled,isNextEnabled:n.isNextEnabled,titleId:n.titleId})}}class q extends r.B{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=e=>{this.el=e,(0,r.W)(this.props.elRef,e),this.updateAvailableWidth()},this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:e,state:t}=this,{aspectRatio:n}=e,r=["fc-view-harness",n||e.liquid||e.height?"fc-view-harness-active":"fc-view-harness-passive"],o="",a="";return n?null!==t.availableWidth?o=t.availableWidth/n:a=`${1/n*100}%`:o=e.height||"",(0,i.n)("div",{"aria-labelledby":e.labeledById,ref:this.handleEl,className:r.join(" "),style:{height:o,paddingBottom:a}},e.children)}componentDidMount(){this.context.addResizeHandler(this.handleResize)}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}updateAvailableWidth(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})}}class K extends r.X{constructor(e){super(e),this.handleSegClick=(e,t)=>{let{component:n}=this,{context:i}=n,o=(0,r.Y)(t);if(o&&n.isValidSegDownEl(e.target)){let a=(0,r.Z)(e.target,".fc-event-forced-url"),s=a?a.querySelector("a[href]").href:"";i.emitter.trigger("eventClick",{el:t,event:new r._(n.context,o.eventRange.def,o.eventRange.instance),jsEvent:e,view:i.viewApi}),s&&!e.defaultPrevented&&(window.location.href=s)}},this.destroy=(0,r.$)(e.el,"click",".fc-event",this.handleSegClick)}}class Z extends r.X{constructor(e){super(e),this.handleEventElRemove=e=>{e===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(e,t)=>{(0,r.Y)(t)&&(this.currentSegEl=t,this.triggerEvent("eventMouseEnter",e,t))},this.handleSegLeave=(e,t)=>
1{this.currentSegEl&&(this.currentSegEl=null,this.triggerEvent("eventMouseLeave",e,t))},this.removeHoverListeners=(0,r.a0)(e.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(e,t,n){let{component:i}=this,{context:o}=i,a=(0,r.Y)(n);(!t||i.isValidSegDownEl(t.target))&&o.emitter.trigger(e,{el:n,event:new r._(o,a.eventRange.def,a.eventRange.instance),jsEvent:t,view:o.viewApi})}}class Q extends r.a1{constructor(){super(...arguments),this.buildViewContext=(0,r.z)(r.a2),this.buildViewPropTransformers=(0,r.z)(ee),this.buildToolbarProps=(0,r.z)(J),this.headerRef=(0,i._3)(),this.footerRef=(0,i._3)(),this.interactionsStore={},this.state={viewLabelId:(0,r.a3)()},this.registerInteractiveComponent=(e,t)=>{let n=(0,r.a4)(e,t),i=[K,Z].concat(this.props.pluginHooks.componentInteractions).map(e=>new e(n));this.interactionsStore[e.uid]=i,r.a5[e.uid]=n},this.unregisterInteractiveComponent=e=>{let t=this.interactionsStore[e.uid];if(t){for(let e of t)e.destroy();delete this.interactionsStore[e.uid]}delete r.a5[e.uid]},this.resizeRunner=new r.D(()=>{this.props.emitter.trigger("_resize",!0),this.props.emitter.trigger("windowResize",{view:this.props.viewApi})}),this.handleWindowResize=e=>{let{options:t}=this.props;t.handleWindowResize&&e.target===window&&this.resizeRunner.request(t.windowResizeDelay)}}render(){let e,{props:t}=this,{toolbarConfig:n,options:o}=t,a=!1,s="";t.isHeightAuto||t.forPrint?s="":null!=o.height?a=!0:null!=o.contentHeight?s=o.contentHeight:e=Math.max(o.aspectRatio,.5);let l=this.buildViewContext(t.viewSpec,t.viewApi,t.options,t.dateProfileGenerator,t.dateEnv,t.nowManager,t.theme,t.pluginHooks,t.dispatch,t.getCurrentData,t.emitter,t.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),c=n.header&&n.header.hasTitle?this.state.viewLabelId:void 0;return(0,i.n)(r.V.Provider,{value:l},(0,i.n)(r.a6,{unit:"day"},r=>{let o=this.buildToolbarProps(t.viewSpec,t.dateProfile,t.dateProfileGenerator,t.currentDate,r,t.viewTitle);return(0,i.n)(i.FK,null,n.header&&(0,i.n)($,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:n.header,titleId:c},o)),(0,i.n)(q,{liquid:a,height:s,aspectRatio:e,labeledById:c},this.renderView(t),this.buildAppendContent()),n.footer&&(0,i.n)($,Object.assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:n.footer,titleId:""},o)))}))}componentDidMount(){let{props:e}=this;this.calendarInteractions=e.pluginHooks.calendarInteractions.map(t=>new t(e)),window.addEventListener("resize",this.handleWindowResize);let{propSetHandlers:t}=e.pluginHooks;for(let n in t)t[n](e[n],e)}componentDidUpdate(e){let{props:t}=this,{propSetHandlers:n}=t.pluginHooks;for(let r in n)t[r]!==e[r]&&n[r](t[r],t)}componentWillUnmount(){for(let e of(window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear(),this.calendarInteractions))e.destroy();this.props.emitter.trigger("_unmount")}buildAppendContent(){let{props:e}=this,t=e.pluginHooks.viewContainerAppends.map(t=>t(e));return(0,i.n)(i.FK,{},...t)}renderView(e){let{pluginHooks:t}=e,{viewSpec:n}=e,r={dateProfile:e.dateProfile,businessHours:e.businessHours,eventStore:e.renderableEventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,isHeightAuto:e.isHeightAuto,forPrint:e.forPrint};for(let n of this.buildViewPropTransformers(t.viewPropsTransformers))Object.assign(r,n.transform(r,e));let o=n.component;return(0,i.n)(o,Object.assign({},r))}}function J(e,t,n,i,o,a){let s=n.build(o,void 0,!1),l=n.buildPrev(t,i,!1),c=n.buildNext(t,i,!1);return{title:a,activeButton:e.type,navUnit:e.singleUnit,isTodayEnabled:s.isValid&&!(0,r.G)(t.currentRange,o),isPrevEnabled:l.isValid,isNextEnabled:c.isValid}}function ee(e){return e.map(e=>new e)}class et extends r.a7{constructor(e,t={}){super(),this.isRendering=!1,this.isRendered=!1,this.currentClassNames=[],this.customContentRenderId=0,this.handleAction=e=>{switch(e.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":this.renderRunner.tryDrain()}},this.handleData=e=>{this.currentData=e,this.renderRunner.request(e.calendarOptions.rerenderDelay)},this.handleRenderRequest=()=>{if(this.isRendering){this.isRendered=!0;let{currentData:e}=this;(0,r.a8)(()=>{(0,i.XX)((0,i.n)(r.a9,{options:e.calendarOptions,theme:e.theme,emitter:e.emitter},(t,n,o,a)=>(this.setClassNames(t),this.setHeight(n),(0,i.n)(r.aa.Provider,{value:this.customContentRenderId},(0,i.n)(Q,Object.assign({isHeightAuto:o,forPrint:a},e))))),this.el)})}else this.isRendered&&(this.isRendered=!1,(0,i.XX)(null,this.el),this.setClassNames([]),this.setHeight(""))},(0,r.ab)(e),this.el=e,this.renderRunner=new r.D(this.handleRenderRequest),new j({optionOverrides:t,calendarApi:this,onAction:this.handleAction,onData:this.handleData})}render(){let e=this.isRendering;e?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),e&&this.updateSize()}destroy(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())}updateSize(){(0,r.a8)(()=>{super.updateSize()})}batchRendering(e){this.renderRunner.pause("batchRendering"),e(),this.renderRunner.resume("batchRendering")}pauseRendering(){this.renderRunner.pause("pauseRendering")}resumeRendering(){this.renderRunner.resume("pauseRendering",!0)}resetOptions(e,t){this.currentDataManager.resetOptions(e,t)}setClassNames(e){if(!(0,r.i)(e,this.currentClassNames)){let{classList:t}=this.el;
1for(let e of this.currentClassNames)t.remove(e);for(let n of e)t.add(n);this.currentClassNames=e}}setHeight(e){(0,r.ac)(this.el,"height",e)}}},2699:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(7932),i=n(1626),o=(0,r.i1)({name:"@fullcalendar/daygrid",initialView:"dayGridMonth",views:{dayGrid:{component:i.eu,dateProfileGeneratorClass:i.LH},dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},fixedWeekCount:!0},dayGridYear:{type:"dayGrid",duration:{years:1}}}})},1626:(e,t,n)=>{n.d(t,{LH:()=>I,eu:()=>T,t7:()=>k});var r=n(533),i=n(5181);class o extends r.bc{constructor(){super(...arguments),this.headerElRef=(0,i._3)()}renderSimpleLayout(e,t){let{props:n,context:o}=this,a=[],s=(0,r.ca)(o.options);return e&&a.push({type:"header",key:"header",isSticky:s,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),a.push({type:"body",key:"body",liquid:!0,chunk:{content:t}}),(0,i.n)(r.cq,{elClasses:["fc-daygrid"],viewSpec:o.viewSpec},(0,i.n)(r.bZ,{liquid:!n.isHeightAuto&&!n.forPrint,collapsibleWidth:n.forPrint,cols:[],sections:a}))}renderHScrollLayout(e,t,n,o){let a=this.context.pluginHooks.scrollGridImpl;if(!a)throw Error("No ScrollGrid implementation");let{props:s,context:l}=this,c=!s.forPrint&&(0,r.ca)(l.options),u=!s.forPrint&&(0,r.c9)(l.options),d=[];return e&&d.push({type:"header",key:"header",isSticky:c,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),d.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:t}]}),u&&d.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:r.c8}]}
1),(0,i.n)(r.cq,{elClasses:["fc-daygrid"],viewSpec:l.viewSpec},(0,i.n)(a,{liquid:!s.isHeightAuto&&!s.forPrint,forPrint:s.forPrint,collapsibleWidth:s.forPrint,colGroups:[{cols:[{span:n,minWidth:o}]}],sections:d}))}}function a(e,t){let n=[];for(let e=0;e<t;e+=1)n[e]=[];for(let t of e)n[t.row].push(t);return n}function s(e,t){let n=[];for(let e=0;e<t;e+=1)n[e]=[];for(let t of e)n[t.firstCol].push(t);return n}function l(e,t){let n=[];if(e){for(let r=0;r<t;r+=1)n[r]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};for(let t of e.segs)n[t.row].segs.push(t)}else for(let e=0;e<t;e+=1)n[e]=null;return n}let c=(0,r.x)({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function u(e){let{display:t}=e.eventRange.ui;return"list-item"===t||"auto"===t&&!e.eventRange.def.allDay&&e.firstCol===e.lastCol&&e.isStart&&e.isEnd}class d extends r.B{render(){let{props:e}=this;return(0,i.n)(r.cg,Object.assign({},e,{elClasses:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:c,defaultDisplayEventEnd:e.defaultDisplayEventEnd,disableResizing:!e.seg.eventRange.def.allDay}))}}class f extends r.B{render(){let{props:e,context:t}=this,{options:n}=t,{seg:o}=e,a=n.eventTimeFormat||c,s=(0,r.bO)(o,a,t,!0,e.defaultDisplayEventEnd);return(0,i.n)(r.ck,Object.assign({}
1,e,{elTag:"a",elClasses:["fc-daygrid-event","fc-daygrid-dot-event"],elAttrs:(0,r.bS)(e.seg,t),defaultGenerator:h,timeText:s,isResizing:!1,isDateSelecting:!1}))}}function h(e){return(0,i.n)(i.FK,null,(0,i.n)("div",{className:"fc-daygrid-event-dot",style:{borderColor:e.borderColor||e.backgroundColor}}),e.timeText&&(0,i.n)("div",{className:"fc-event-time"},e.timeText),(0,i.n)("div",{className:"fc-event-title"},e.event.title||(0,i.n)(i.FK,null,"\xa0")))}class p extends r.B{constructor(){super(...arguments),this.compileSegs=(0,r.z)(g)}render(){let{props:e}=this,{allSegs:t,invisibleSegs:n}=this.compileSegs(e.singlePlacements);return(0,i.n)(r.co,{elClasses:["fc-daygrid-more-link"],dateProfile:e.dateProfile,todayRange:e.todayRange,allDayDate:e.allDayDate,moreCnt:e.moreCnt,allSegs:t,hiddenSegs:n,alignmentElRef:e.alignmentElRef,alignGridTop:e.alignGridTop,extraDateSpan:e.extraDateSpan,popoverContent:()=>{let n=(e.eventDrag?e.eventDrag.affectedInstances:null)||(e.eventResize?e.eventResize.affectedInstances:null)||{};return(0,i.n)(i.FK,null,t.map(t=>{let o=t.eventRange.instance.instanceId;return(0,i.n)("div",{className:"fc-daygrid-event-harness",key:o,style:{visibility:n[o]?"hidden":""}},u(t)?(0,i.n)(f,Object.assign({seg:t,isDragging:!1,isSelected:o===e.eventSelection,defaultDisplayEventEnd:!1},(0,r.bQ)(t,e.todayRange))):(0,i.n)(d,Object.assign({seg:t,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:o===e.eventSelection,defaultDisplayEventEnd:!1},(0,r.bQ)(t,e.todayRange))))}))}})}}function g(e){let t=[],n=[];for(let r of e)t.push(r.seg),r.isVisible||n.push(r.seg);return{allSegs:t,invisibleSegs:n}}let m=(0,r.x)({week:"narrow"});class v extends r.bc{constructor(){super(...arguments),this.rootElRef=(0,i._3)(),this.state={dayNumberId:(0,r.a3)()},this.handleRootEl=e=>{(0,r.W)(this.rootElRef,e),(0,r.W)(this.props.elRef,e)}}render(){let{context:e,props:t,state:n,rootElRef:o}=this,{options:a,dateEnv:s}=e,{date:l,dateProfile:c}=t,u=t.showDayNumber&&function(e,t,n){let{start:i,end:o}=t,a=(0,r.be)(o,-1),s=n.getYear(i),l=n.getMonth(i),c=n.getYear(a),u=n.getMonth(a);return!(s===c&&l===u)&&!!(e.valueOf()===i.valueOf()||1===n.getDay(e)&&e.valueOf()<o.valueOf())}(l,c.currentRange,s);return(0,i.n)(r.ci,{elTag:"td",elRef:this.handleRootEl,elClasses:["fc-daygri
1d-day",...t.extraClassNames||[]],elAttrs:Object.assign(Object.assign(Object.assign({},t.extraDataAttrs),t.showDayNumber?{"aria-labelledby":n.dayNumberId}:{}),{role:"gridcell"}),defaultGenerator:y,date:l,dateProfile:c,todayRange:t.todayRange,showDayNumber:t.showDayNumber,isMonthStart:u,extraRenderProps:t.extraRenderProps},(s,c)=>(0,i.n)("div",{ref:t.innerElRef,className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",style:{minHeight:t.minHeight}},t.showWeekNumber&&(0,i.n)(r.cn,{elTag:"a",elClasses:["fc-daygrid-week-number"],elAttrs:(0,r.a_)(e,l,"week"),date:l,defaultFormat:m}),!c.isDisabled&&(t.showDayNumber||(0,r.cj)(a)||t.forceDayTop)?(0,i.n)("div",{className:"fc-daygrid-day-top"},(0,i.n)(s,{elTag:"a",elClasses:["fc-daygrid-day-number",u&&"fc-daygrid-month-start"],elAttrs:Object.assign(Object.assign({},(0,r.a_)(e,l)),{id:n.dayNumberId})})):t.showDayNumber?(0,i.n)("div",{className:"fc-daygrid-day-top",style:{visibility:"hidden"}},(0,i.n)("a",{className:"fc-daygrid-day-number"},"\xa0")):void 0,(0,i.n)("div",{className:"fc-daygrid-day-events",ref:t.fgContentElRef},t.fgContent,(0,i.n)("div",{className:"fc-daygrid-day-bottom",style:{marginTop:t.moreMarginTop}},(0,i.n)(p,{allDayDate:l,singlePlacements:t.singlePlacements,moreCnt:t.moreCnt,alignmentElRef:o,alignGridTop:!t.showDayNumber,extraDateSpan:t.extraDateSpan,dateProfile:t.dateProfile,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,todayRange:t.todayRange}))),(0,i.n)("div",{className:"fc-daygrid-day-bg"},t.bgContent)))}}function y(e){return e.dayNumberText||(0,i.n)(i.FK,null,"\xa0")}function b(e){return e.eventRange.instance.instanceId+":"+e.firstCol}function w(e){return b(e)+":"+e.lastCol}function E(e,t,n,i){if(e.firstCol===t&&e.lastCol===n-1)return e;let o=e.eventRange,a=o.range,s=(0,r.o)(a,{start:i[t].date,end:(0,r.t)(i[n-1].date,1)});return Object.assign(Object.assign({},e),{firstCol:t,lastCol:n-1,eventRange:{def:o.def,ui:Object.assign(Object.assign({},o.ui),{durationEditable:!1}),instance:o.instance,range:s},isStart:e.isStart&&s.start.valueOf()===a.start.valueOf(),isEnd:e.isEnd&&s.end.valueOf()===a.end.valueOf()})}class S extends r.by{constructor(){super(...arguments),this.hiddenConsumes=!1,this.forceHidden={}}addSegs(e){let t=super.addSegs(e),{entriesByLevel:n}=this,i=e=>!this.forceHidden[(0,r.bz)(e)];for(let e=0;e<n.length;e+=1)n[e]=n[e].filter(i);return t}handleInvalidInsertion(e,t,n){let{entriesByLevel:i,forceHidden:o}=this,{touchingEntry:a,touchingLevel:s,touchingLateral:l}=e;if(this.hiddenConsumes&&a){let e=(0,r.bz)(a);if(!o[e]){if(this.allowReslicing){let e=Object.assign(Object.assign({},a),{span:(0,r.bD)(a.span,t.span)});o[(0,r.bz)(e)]=!0,i[s][l]=e,n.push(e),this.splitEntry(a,t,n)}else o[e]=!0,n.push(a)}}super.handleInvalidInsertion(e,t,n)}}class _ extends r.bc{constructor(){super(...arguments),this.cellElRefs=new r.cd,this.frameElRefs=new r.cd,this.fgElRefs=new r.cd,this.segHarnessRefs=new r.cd,this.rootElRef=(0,i._3)(),this.state={framePositions:null,maxContentHeight:null,segHeights:{}},this.handleResize=e=>{e&&this.updateSizing(!0)}}render(){let{props:e,state:t,context:n}=this,{options:o}=n,a=e.cells.length,l=s(e.businessHourSegs,a),c=s(e.bgEventSegs,a),u=s(this.getHighlightSegs(),a),d=s(this.getMirrorSegs(),a),{singleColPlacements:f,multiColPlacements:h,moreCnts:p,moreMarginTops:g}=function(e,t,n,r,i,o,a){let s=new S(t=>i[e[t.index].eventRange.instance.instanceId+":"+t.span.start+":"+(t.span.end-1)]||1);s.allowReslicing=!0,s.strictOrder=r,!0===t||!0===n?(s.maxCoord=o,s.hiddenConsumes=!0):"number"==typeof t?s.maxStackCnt=t:"number"==typeof n&&(s.maxStackCnt=n,s.hiddenConsumes=!0);let l=[],c=[];for(let t=0;t<e.length;t+=1){let n=e[t];null!=i[w(n)]?l.push({index:t,span:{start:n.firstCol,end:n.lastCol+1}}):c.push(n)}let u=s.addSegs(l),{singleColPlacements:d,multiColPlacements:f,leftoverMargins:h}=function(e,t,n){let r=function(e,t){let n=[];for(let e=0;e<t;e+=1)n.push([]);for(let t of e)for(let e=t.span.start;e<t.span.end;e+=1)n[e].push(t);return n}(e,n.length),i=[],o=[],a=[];for(let e=0;e<n.length;e+=1){let s=r[e],l=[],c=0,u=0;for(let r of s){let i=t[r.index];l.push({seg:E(i,e,e+1,n),isVisible:!0,isAbsolute:!1,absoluteTop:r.levelCoord,marginTop:r.levelCoord-c}),c=r.levelCoord+r.thickness}let d=[];for(let r of(c=0,u=0,s)){let i=t[r.index],o=r.span.end-r.span.start>1,a=r.span.start===e;u+=r.levelCoord-c,c=r.levelCoord+r.thickness,o?(u+=r.thickness,a&&d.push({seg:E(i,r.span.start,r.span.end,n),isVisible:!0,isAbsolute:!0,absoluteTop:r.levelCoord,marginTop:0})):a&&(d.push({seg:E(i,r.span.start,r.span.end,n),isVisible:!0,isAbsolute:!1,absoluteTop:r.levelCoord,marginTop:u}),u=0)}i.push(l),o.push(d),a.push(u)}return{singleColPlacements:i,multiColPlacements:o,leftoverMargins:a}}(s.toRects(),e,a),p=[],g=[];for(let e of c){f[e.firstCol].push({seg:e,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let t=e.firstCol;t<=e.lastCol;t+=1)d[t].push({seg:E(e,t,t+1,a),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let e=0;e<a.length;e+=1)p.push(0);for(let t of u){let n=e[t.index],r=t.span;f[r.start].push({seg:E(n,r.start,r.end,a),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(let e=r.start;e<r.end;e+=1)p[e]+=1,d[e].push({seg:E(n,e,e+1,a),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(let e=0;e<a.length;e+=1)g.push(h[e]);return{singleColPlacements:d,multiColPlacements:f,moreCnts:p,moreMarginTops:g}}((0,r.bP)(e.fgEventSegs,o.eventOrder),e.dayMaxEvents,e.dayMaxEventRows,o.eventOrderStrict,t.segHeights,t.maxContentHeight,e.cells),m=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{};return(0,i.n)("tr",{ref:this.rootElRef,role:"row"},e.renderIntro&&e.renderIntro(),e.cells.map((t,n)=>{let r=this.renderFgSegs(n,e.forPrint?f[n]:h[n],e.todayRange,m),o=this.renderFgSegs(n,function(e,t){if(!e.length)return[];let n=function(e){let t={};for(let n of e)for(let e of n)t[e.seg.eventRange.instance.instanceId]=e.absoluteTop;return t}(t);return e.map(e=>({seg:e,isVisible:!0,isAbsolute:!0,absoluteTop:n[e.eventRange.instance.instanceId],marginTop:0}))}(d[n],h),e.todayRange,{},!!e.eventDrag,!!e.eventResize,!1);return(0,i.n)(v,{key:t.key,elRef:this.cellElRefs.createRef(t.key),innerElRef:this.frameElRefs.createRef(t.key),dateProfile:e.dateProfile,date:t.date,showDayNumber:e.showDayNumbers,showWeekNumber:e.showWeekNumbers&&0===n,forceDayTop:e.showWeekNumbers,todayRange:e.todayRange,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,extraRenderProps:t.extraRenderProps,extraDataAttrs:t.extraDataAttrs,extraClassNames:t.extraClassNames,extraDateSpan:t.extraDateSpan,moreCnt:p[n],moreMarginTop:g[n],singlePlacements:f[n],fgContentElRef:this.fgElRefs.createRef(t.key),fgContent:(0,i.n)(i.FK,null,(0,i.n)(i.FK,null,r),(0,i.n)(i.FK,null,o)),bgContent:(0,i.n)(i.FK,null,this.renderFillSegs(u[n],"highlight"),this.renderFillSegs(l[n],"non-business"),this.renderFillSegs(c[n],"bg-event")),minHeight:e.cellMinHeight})}))}componentDidMount(){this.updateSizing(!0),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(e,t){let n=this.props;this.updateSizing(!(0,r.E)(e,n))}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}getHighlightSegs(){let{props:e}=this;return e.eventDrag&&e.eventDrag.segs.length?e.eventDrag.segs:e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:e.dateSelectionSegs}getMirrorSegs(){let{props:e}=this;return e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:[]}renderFgSegs(e,t,n,o,a,s,l){let{context:c}=this,{eventSelection:h}=this.props,{framePositions:p}=this.state,g=1===this.props.cells.length,m=a||s||l,v=[];if(p)for(let e of t){let{seg:t}=e,{instanceId:y}=t.eventRange.instance,E=e.isVisible&&!o[y],S=e.isAbsolute,_="",x="";S&&(c.isRtl?(x=0,_=p.lefts[t.lastCol]-p.lefts[t.firstCol]):(_=0,x=p.rights[t.firstCol]-p.rights[t.lastCol])),v.push((0,i.n)("div",{className:"fc-daygri
1d-event-harness"+(S?" fc-daygrid-event-harness-abs":""),key:b(t),ref:m?null:this.segHarnessRefs.createRef(w(t)),style:{visibility:E?"":"hidden",marginTop:S?"":e.marginTop,top:S?e.absoluteTop:"",left:_,right:x}},u(t)?(0,i.n)(f,Object.assign({seg:t,isDragging:a,isSelected:y===h,defaultDisplayEventEnd:g},(0,r.bQ)(t,n))):(0,i.n)(d,Object.assign({seg:t,isDragging:a,isResizing:s,isDateSelecting:l,isSelected:y===h,defaultDisplayEventEnd:g},(0,r.bQ)(t,n)))))}return v}renderFillSegs(e,t){let{isRtl:n}=this.context,{todayRange:o}=this.props,{framePositions:a}=this.state,s=[];if(a)for(let l of e){let e=n?{right:0,left:a.lefts[l.lastCol]-a.lefts[l.firstCol]}:{left:0,right:a.rights[l.firstCol]-a.rights[l.lastCol]};s.push((0,i.n)("div",{key:(0,r.bR)(l.eventRange),className:"fc-daygrid-bg-harness",style:e},"bg-event"===t?(0,i.n)(r.cm,Object.assign({seg:l},(0,r.bQ)(l,o))):(0,r.cl)(t)))}return(0,i.n)(i.FK,{},...s)}updateSizing(e){let{props:t,state:n,frameElRefs:i}=this;if(!t.forPrint&&null!==t.clientWidth){if(e){let e=t.cells.map(e=>i.currentMap[e.key]);if(e.length){let t=this.rootElRef.current,i=new r.b8(t,e,!0,!1);n.framePositions&&n.framePositions.similarTo(i)||this.setState({framePositions:new r.b8(t,e,!0,!1)})}}let o=this.state.segHeights,a=this.querySegHeights(),s=!0===t.dayMaxEvents||!0===t.dayMaxEventRows;this.safeSetState({segHeights:Object.assign(Object.assign({},o),a),maxContentHeight:s?this.computeMaxContentHeight():null})}}querySegHeights(){let e=this.segHarnessRefs.currentMap,t={};for(let n in e){let r=Math.round(e[n].getBoundingClientRect().height);t[n]=Math.max(t[n]||0,r)}return t}computeMaxContentHeight(){let e=this.props.cells[0].key,t=this.cellElRefs.currentMap[e],n=this.fgElRefs.currentMap[e];return t.getBoundingClientRect().bottom-n.getBoundingClientRect().top}getCellEls(){let e=this.cellElRefs.currentMap;return this.props.cells.map(t=>e[t.key])}}_.addStateEquality({segHeights:r.E});class x extends r.bc{constructor(){super(...arguments),this.splitBusinessHourSegs=(0,r.z)(a),this.splitBgEventSegs=(0,r.z)(R),this.splitFgEventSegs=(0,r.z)(a),this.splitDateSelectionSegs=(0,r.z)(a),this.splitEventDrag=(0,r.z)(l),this.splitEventResize=(0,r.z)(l),this.rowRefs=new r.cd}render(){let{props:e,context:t}=this,n=e.cells.length,o=this.splitBusinessHourSegs(e.businessHourSegs,n),a=this.splitBgEventSegs(e.bgEventSegs,n),s=this.splitFgEventSegs(e.fgEventSegs,n),l=this.splitDateSelectionSegs(e.dateSelectionSegs,n),c=this.splitEventDrag(e.eventDrag,n),u=this.splitEventResize(e.eventResize,n),d=n>=7&&e.clientWidth?e.clientWidth/t.options.aspectRatio/6:null;return(0,i.n)(r.a6,{unit:"day"},(t,r)=>(0,i.n)(i.FK,null,e.cells.map((t,f)=>(0,i.n)(_,{ref:this.rowRefs.createRef(f),key:t.length?t[0].date.toISOString():f,showDayNumbers:n>1,showWeekNumbers:e.showWeekNumbers,todayRange:r,dateProfile:e.dateProfile,cells:t,renderIntro:e.renderRowIntro,businessHourSegs:o[f],eventSelection:e.eventSelection,bgEventSegs:a[f],fgEventSegs:s[f],dateSelectionSegs:l[f],eventDrag:c[f],eventResize:u[f],dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,clientWidth:e.clientWidth,clientHeight:e.clientHeight,cellMinHeight:d,forPrint:e.forPrint}))))}componentDidMount(){this.registerInteractiveComponent()}componentDidUpdate(){this.registerInteractiveComponent()}registerInteractiveComponent(){if(!this.rootEl){let e=this.rowRefs.currentMap[0].getCellEls()[0],t=e?e.closest(".fc-daygrid-body"):null;t&&(this.rootEl=t,this.context.registerInteractiveComponent(this,{el:t,isHitComboAllowed:this.props.isHitComboAllowed}))}}componentWillUnmount(){this.rootEl&&(this.context.unregisterInteractiveComponent(this),this.rootEl=null)}prepareHits(){this.rowPositions=new r.b8(this.rootEl,this.rowRefs.collect().map(e=>e.getCellEls()[0]),!1,!0),this.colPositions=new r.b8(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)}queryHit(e,t){let{colPositions:n,rowPositions:r}=this,i=n.leftToIndex(e),o=r.topToIndex(t);if(null!=o&&null!=i){let e=this.props.cells[o][i];return{dateProfile:this.props.dateProfile,dateSpan:Object.assign({range:this.getCellRange(o,i),allDay:!0},e.extraDateSpan),dayEl:this.getCellEl(o,i),rect:{left:n.lefts[i],right:n.rights[i],top:r.tops[o],bottom:r.bottoms[o]},layer:0}}return null}getCellEl(e,t){return this.rowRefs.currentMap[e].getCellEls()[t]}getCellRange(e,t){let n=this.props.cells[e][t].date,i=(0,r.t)(n,1);return{start:n,end:i}}}function R(e,t){return a(e.filter(C),t)}function C(e){return e.eventRange.def.allDay}class D extends r.bc{constructor(){super(...arguments),this.elRef=(0,i._3)(),this.needsScrollReset=!1}render(){let{props:e}=this,{dayMaxEventRows:t,dayMaxEvents:n,expandRows:r}=e,o=!0===n||!0===t;o&&!r&&(o=!1,t=null,n=null);
1let a=["fc-daygrid-body",o?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",r?"":"fc-daygrid-body-natural"];return(0,i.n)("div",{ref:this.elRef,className:a.join(" "),style:{width:e.clientWidth,minWidth:e.tableMinWidth}},(0,i.n)("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:e.clientWidth,minWidth:e.tableMinWidth,height:r?e.clientHeight:""}},e.colGroupNode,(0,i.n)("tbody",{role:"presentation"},(0,i.n)(x,{dateProfile:e.dateProfile,cells:e.cells,renderRowIntro:e.renderRowIntro,showWeekNumbers:e.showWeekNumbers,clientWidth:e.clientWidth,clientHeight:e.clientHeight,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,dayMaxEvents:n,dayMaxEventRows:t,forPrint:e.forPrint,isHitComboAllowed:e.isHitComboAllowed}))))}componentDidMount(){this.requestScrollReset()}componentDidUpdate(e){e.dateProfile!==this.props.dateProfile?this.requestScrollReset():this.flushScrollReset()}requestScrollReset(){this.needsScrollReset=!0,this.flushScrollReset()}flushScrollReset(){if(this.needsScrollReset&&this.props.clientWidth){var e,t;let n;let i=(e=this.elRef.current,(t=this.props.dateProfile).currentRangeUnit.match(/year|month/)&&(n=e.querySelector(`[data-date="${(0,r.bv)(t.currentDate)}-01"]`)),n||(n=e.querySelector(`[data-date="${(0,r.bt)(t.currentDate)}"]`)),n);if(i){let e=i.closest(".fc-daygrid-body"),t=e.closest(".fc-scroller"),n=i.getBoundingClientRect().top-e.getBoundingClientRect().top;t.scrollTop=n?n+1:0}this.needsScrollReset=!1}}}class O extends r.bU{constructor(){super(...arguments),this.forceDayIfListItem=!0}sliceRange(e,t){return t.sliceRange(e)}}class k extends r.bc{constructor(){super(...arguments),this.slicer=new O,this.tableRef=(0,i._3)()}render(){let{props:e,context:t}=this;return(0,i.n)(D,Object.assign({ref:this.tableRef},this.slicer.sliceProps(e,e.dateProfile,e.nextDayThreshold,t,e.dayTableModel),{dateProfile:e.dateProfile,cells:e.dayTableModel.cells,colGroupNode:e.colGroupNode,tableMinWidth:e.tableMinWidth,renderRowIntro:e.renderRowIntro,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.showWeekNumbers,expandRows:e.expandRows,headerAlignElRef:e.headerAlignElRef,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:e.forPrint}))}}class T extends o{constructor(){super(...arguments),this.buildDayTableModel=(0,r.z)(M),this.headerRef=(0,i._3)(),this.tableRef=(0,i._3)()}render(){let{options:e,dateProfileGenerator:t}=this.context,{props:n}=this,o=this.buildDayTableModel(n.dateProfile,t),a=e.dayHeaders&&(0,i.n)(r.bI,{ref:this.headerRef,dateProfile:n.dateProfile,dates:o.headerDates,datesRepDistinctDays:1===o.rowCnt}),s=t=>(0,i.n)(k,{ref:this.tableRef,dateProfile:n.dateProfile,dayTableModel:o,businessHours:n.businessHours,dateSelection:n.dateSelection,eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,nextDayThreshold:e.nextDayThreshold,colGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.weekNumbers,expandRows:!n.isHeightAuto,headerAlignElRef:this.headerElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:n.forPrint});return e.dayMinWidth?this.renderHScrollLayout(a,s,o.colCnt,e.dayMinWidth):this.renderSimpleLayout(a,s)}}function M(e,t){let n=new r.bM(e.renderRange,t);return new r.bT(n,/year|month|week/.test(e.currentRangeUnit))}class I extends r.R{buildRenderRange(e,t,n){let i=super.buildRenderRange(e,t,n),{props:o}=this;return function(e){let t,{dateEnv:n,currentRange:i}=e,{start:o,end:a}=i;if(e.snapToWeek&&(o=n.startOfWeek(o),(t=n.startOfWeek(a)).valueOf()!==a.valueOf()&&(a=(0,r.bf)(t,1))),e.fixedWeekCount){let e=n.startOfWeek(n.startOfMonth((0,r.t)(i.end,-1))),t=Math.ceil((0,r.bg)(e,a));a=(0,r.bf)(a,6-t)}return{start:o,end:a}}({currentRange:i,snapToWeek:/^(year|month)$/.test(t),fixedWeekCount:o.fixedWeekCount,dateEnv:o.dateEnv})}}
1(0,r.ct)(':root{--fc-daygrid-event-dot-width:8px}.fc-daygrid-day-events:after,.fc-daygrid-day-events:before,.fc-daygrid-day-frame:after,.fc-daygrid-day-frame:before,.fc-daygrid-event-harness:after,.fc-daygrid-event-harness:before{clear:both;content:"";display:table}.fc .fc-daygrid-body{position:relative;z-index:1}.fc .fc-daygrid-day.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-daygrid-day-frame{min-height:100%;position:relative}.fc .fc-daygrid-day-top{display:flex;flex-direction:row-reverse}.fc .fc-day-other .fc-daygrid-day-top{opacity:.3}.fc .fc-daygrid-day-number{padding:4px;position:relative;z-index:4}.fc .fc-daygrid-month-start{font-size:1.1em;font-weight:700}.fc .fc-daygrid-day-events{margin-top:1px}.fc .fc-daygrid-body-balanced .fc-daygrid-day-events{left:0;position:absolute;right:0}.fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events{min-height:2em;position:relative}.fc .fc-daygrid-body-natural .fc-daygrid-day-events{margin-bottom:1em}.fc .fc-daygrid-event-harness{position:relative}.fc .fc-daygrid-event-harness-abs{left:0;position:absolute;right:0;top:0}.fc .fc-daygrid-bg-harness{bottom:0;position:absolute;top:0}.fc .fc-daygrid-day-bg .fc-non-business{z-index:1}.fc .fc-daygrid-day-bg .fc-bg-event{z-index:2}.fc .fc-daygrid-day-bg .fc-highlight{z-index:3}.fc .fc-daygrid-event{margin-top:1px;z-index:6}.fc .fc-daygrid-event.fc-event-mirror{z-index:7}.fc .fc-daygrid-day-bottom{font-size:.85em;margin:0 2px}.fc .fc-daygrid-day-bottom:after,.fc .fc-daygrid-day-bottom:before{clear:both;content:"";display:table}.fc .fc-daygrid-more-link{border-radius:3px;cursor:pointer;line-height:1;margin-top:1px;max-width:100%;overflow:hidden;padding:2px;position:relative;white-space:nowrap;z-index:4}.fc .fc-daygrid-more-link:hover{background-color:rgba(0,0,0,.1)}.fc .fc-daygrid-week-number{background-color:var(--fc-neutral-bg-color);color:var(--fc-neutral-text-color);min-width:1.5em;padding:2px;position:absolute;text-align:center;top:0;z-index:5}.fc .fc-more-popover .fc-popover-body{min-width:220px;padding:10px}.fc-direction-ltr .fc-daygrid-event.fc-event-start,.fc-direction-rtl .fc-daygrid-event.fc-event-end{margin-left:2px}.fc-direction-ltr .fc-daygrid-event.fc-event-end,.fc-direction-rtl .fc-daygrid-event.fc-event-start{margin-right:2px}.fc-direction-ltr .fc-daygrid-more-link{float:left}.fc-direction-ltr .fc-daygrid-week-number{border-radius:0 0 3px 0;left:0}.fc-direction-rtl .fc-daygrid-more-link{float:right}.fc-direction-rtl .fc-daygrid-week-number{border-radius:0 0 0 3px;right:0}
1.fc-liquid-hack .fc-daygrid-day-frame{position:static}.fc-daygrid-event{border-radius:3px;font-size:var(--fc-small-font-size);position:relative;white-space:nowrap}.fc-daygrid-block-event .fc-event-time{font-weight:700}.fc-daygrid-block-event .fc-event-time,.fc-daygrid-block-event .fc-event-title{padding:1px}.fc-daygrid-dot-event{align-items:center;display:flex;padding:2px 0}.fc-daygrid-dot-event .fc-event-title{flex-grow:1;flex-shrink:1;font-weight:700;min-width:0;overflow:hidden}.fc-daygrid-dot-event.fc-event-mirror,.fc-daygrid-dot-event:hover{background:rgba(0,0,0,.1)}.fc-daygrid-dot-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-daygrid-event-dot{border:calc(var(--fc-daygrid-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-daygrid-event-dot-width)/2);box-sizing:content-box;height:0;margin:0 4px;width:0}.fc-direction-ltr .fc-daygrid-event .fc-event-time{margin-right:3px}.fc-direction-rtl .fc-daygrid-event .fc-event-time{margin-left:3px}')},1453:(e,t,n)=>{n.d(t,{Ay:()=>O});var r=n(7932),i=n(533);i.bG.touchMouseIgnoreWait=500;let o=0,a=0,s=!1;class l{constructor(e){this.subjectEl=null,this.selector="",this.handleSelector="",this.shouldIgnoreMove=!1,this.shouldWatchScroll=!0,this.isDragging=!1,this.isTouchDragging=!1,this.wasTouchScroll=!1,this.handleMouseDown=e=>{if(!this.shouldIgnoreMouse()&&function(e){return 0===e.button&&!e.ctrlKey}(e)&&this.tryStart(e)){let t=this.createEventFromMouse(e,!0);this.emitter.trigger("pointerdown",t),this.initScrollWatch(t),this.shouldIgnoreMove||document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp)}},this.handleMouseMove=e=>{let t=this.createEventFromMouse(e);this.recordCoords(t),this.emitter.trigger("pointermove",t)},this.handleMouseUp=e=>{document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),this.emitter.trigger("pointerup",this.createEventFromMouse(e)),this.cleanup()},this.handleTouchStart=e=>{if(this.tryStart(e)){this.isTouchDragging=!0;let t=this.createEventFromTouch(e,!0);this.emitter.trigger("pointerdown",t),this.initScrollWatch(t);let n=e.target;this.shouldIgnoreMove||n.addEventListener("touchmove",this.handleTouchMove),n.addEventListener("touchend",this.handleTouchEnd),n.addEventListener("touchcancel",this.handleTouchEnd),window.addEventListener("scroll",this.handleTouchScroll,!0)}},this.handleTouchMove=e=>{let t=this.createEventFromTouch(e);this.recordCoords(t),this.emitter.trigger("pointermove",t)},this.handleTouchEnd=e=>{if(this.isDragging){let t=e.target;t.removeEventListener("touchmove",this.handleTouchMove),t.removeEventListener("touchend",this.handleTouchEnd),t.removeEventListener("touchcancel",this.handleTouchEnd),window.removeEventListener("scroll",this.handleTouchScroll,!0),this.emitter.trigger("pointerup",this.createEventFromTouch(e)),this.cleanup(),this.isTouchDragging=!1,o+=1,setTimeout(()=>{o-=1},i.bG.touchMouseIgnoreWait)}},this.handleTouchScroll=()=>{this.wasTouchScroll=!0},this.handleScroll=e=>{if(!this.shouldIgnoreMove){let t=window.scrollX-this.prevScrollX+this.prevPageX,n=window.scrollY-this.prevScrollY+this.prevPageY;this.emitter.trigger("pointermove",{origEvent:e,isTouch:this.isTouchDragging,subjectEl:this.subjectEl,pageX:t,pageY:n,deltaX:t-this.origPageX,deltaY:n-this.origPageY})}},this.containerEl=e,this.emitter=new i.F,e.addEventListener("mousedown",this.handleMouseDown),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),1===(a+=1)&&window.addEventListener("touchmove",c,{passive:!1})}destroy(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),(a-=1)||window.removeEventListener("touchmove",c,{passive:!1})}tryStart(e){let t=this.querySubjectEl(e),n=e.target;return!!(t&&(!this.handleSelector||(0,i.Z)(n,this.handleSelector)))&&(this.subjectEl=t,this.isDragging=!0,this.wasTouchScroll=!1,!0)}cleanup(){s=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()}querySubjectEl(e){return this.selector?(0,i.Z)(e.target,this.selector):this.containerEl}shouldIgnoreMouse(){return o||this.isTouchDragging}cancelTouchScroll(){this.isDragging&&(s=!0)}initScrollWatch(e){this.shouldWatchScroll&&(this.recordCoords(e),window.addEventListener("scroll",this.handleScroll,!0))}recordCoords(e){this.shouldWatchScroll&&(this.prevPageX=e.pageX,this.prevPageY=e.pageY,this.prevScrollX=window.scrollX,this.prevScrollY=window.scrollY)}destroyScrollWatch(){this.shouldWatchScroll&&window.removeEventListener("scroll",this.handleScroll,!0)}createEventFromMouse(e,t){let n=0,r=0;return t?(this.origPageX=e.pageX,this.origPageY=e.pageY):(n=e.pageX-this.origPageX,r=e.pageY-this.origPageY),{origEvent:e,isTouch:!1,subjectEl:this.subjectEl,pageX:e.pageX,pageY:e.pageY,deltaX:n,deltaY:r}}createEventFromTouch(e,t){let n,r,i=e.touches,o=0,a=0;return i&&i.length?(n=i[0].pageX,r=i[0].pageY):(n=e.pageX,r=e.pageY),t?(this.origPageX=n,this.origPageY=r):(o=n-this.origPageX,a=r-this.origPageY),{origEvent:e,isTouch:!0,subjectEl:this.subjectEl,pageX:n,pageY:r,deltaX:o,deltaY:a}}}function c(e){s&&e.preventDefault()}class u{constructor(){this.isVisible=!1,this.sourceEl=null,this.mirrorEl=null,this.sourceElRect=null,this.parentNode=document.body,this.zIndex=9999,this.revertDuration=0}start(e,t,n){this.sourceEl=e,this.sourceElRect=this.sourceEl.getBoundingClientRect(),this.origScreenX=t-window.scrollX,this.origScreenY=n-window.scrollY,this.deltaX=0,this.deltaY=0,this.updateElPosition()}handleMove(e,t){this.deltaX=e-window.scrollX-this.origScreenX,this.deltaY=t-window.scrollY-this.origScreenY,this.updateElPosition()}setIsVisible(e){e?this.isVisible||(this.mirrorEl&&(this.mirrorEl.style.display=""),this.isVisible=e,this.updateElPosition()):this.isVisible&&(this.mirrorEl&&(this.mirrorEl.style.display="none"),this.isVisible=e)}stop(e,t){let n=()=>{this.cleanup(),t()};e&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(this.deltaX||this.deltaY)?this.doRevertAnimation(n,this.revertDuration):setTimeout(n,0)}doRevertAnimation(e,t){let n=this.mirrorEl,r=this.sourceEl.getBoundingClientRect();n.style.transition="top "+t+"ms,left "+t+"ms",(0,i.aN)(n,{left:r.left,top:r.top}),(0,i.b0)(n,()=>{n.style.transition="",e()})}cleanup(){this.mirrorEl&&((0,i.aM)(this.mirrorEl),this.mirrorEl=null),this.sourceEl=null}updateElPosition(){this.sourceEl&&this.isVisible&&(0,i.aN)(this.getMirrorEl(),{left:this.sourceElRect.left+this.deltaX,top:this.sourceElRect.top+this.deltaY})}getMirrorEl(){let e=this.sourceElRect,t=this.mirrorEl;return t||((t=this.mirrorEl=this.sourceEl.cloneNode(!0)).style.userSelect="none",t.style.webkitUserSelect="none",t.style.pointerEvents="none",t.classList.add("fc-event-dragging"),(0,i.aN)(t,{position:"fixed",zIndex:this.zIndex,visibility:"",boxSizing:"border-box",width:e.right-e.left,height:e.bottom-e.top,right:"auto",bottom:"auto",margin:0}),this.parentNode.appendChild(t)),t}}class d extends i.b9{constructor(e,t){super(),this.handleScroll=()=>{this.scrollTop=this.scrollController.getScrollTop(),this.scrollLeft=this.scrollController.getScrollLeft(),this.handleScrollChange()},this.scrollController=e,this.doesListening=t,this.scrollTop=this.origScrollTop=e.getScrollTop(),this.scrollLeft=this.origScrollLeft=e.getScrollLeft(),this.scrollWidth=e.getScrollWidth(),this.scrollHeight=e.getScrollHeight(),this.clientWidth=e.getClientWidth(),this.clientHeight=e.getClientHeight(),this.clientRect=this.computeClientRect(),this.doesListening&&this.getEventTarget().addEventListener("scroll",this.handleScroll)}destroy(){this.doesListening&&this.getEventTarget().removeEventListener("scroll",this.handleScroll)}getScrollTop(){return this.scrollTop}getScrollLeft(){return this.scrollLeft}setScrollTop(e){this.scrollController.setScrollTop(e),this.doesListening||(this.scrollTop=Math.max(Math.min(e,this.getMaxScrollTop()),0),this.handleScrollChange())}setScrollLeft(e){this.scrollController.setScrollLeft(e),this.doesListening||(this.scrollLeft=Math.max(Math.min(e,this.getMaxScrollLeft()),0),this.handleScrollChange())}getClientWidth(){return this.clientWidth}getClientHeight(){return this.clientHeight}getScrollWidth(){return this.scrollWidth}getScrollHeight(){return this.scrollHeight}handleScrollChange(){}}class f extends d{constructor(e,t){super(new i.ba(e),t)}getEventTarget(){return this.scrollController.el}computeClientRect(){return(0,i.b1)(this.scrollController.el)}}class h extends d{constructor(e){super(new i.bb,e)}getEventTarget(){return window}
1computeClientRect(){return{left:this.scrollLeft,right:this.scrollLeft+this.clientWidth,top:this.scrollTop,bottom:this.scrollTop+this.clientHeight}}handleScrollChange(){this.clientRect=this.computeClientRect()}}let p="function"==typeof performance?performance.now:Date.now;class g{constructor(){this.isEnabled=!0,this.scrollQuery=[window,".fc-scroller"],this.edgeThreshold=50,this.maxVelocity=300,this.pointerScreenX=null,this.pointerScreenY=null,this.isAnimating=!1,this.scrollCaches=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.animate=()=>{if(this.isAnimating){let e=this.computeBestEdge(this.pointerScreenX+window.scrollX,this.pointerScreenY+window.scrollY);if(e){let t=p();this.handleSide(e,(t-this.msSinceRequest)/1e3),this.requestAnimation(t)}else this.isAnimating=!1}}}start(e,t,n){this.isEnabled&&(this.scrollCaches=this.buildCaches(n),this.pointerScreenX=null,this.pointerScreenY=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.handleMove(e,t))}handleMove(e,t){if(this.isEnabled){let n=e-window.scrollX,r=t-window.scrollY,i=null===this.pointerScreenY?0:r-this.pointerScreenY,o=null===this.pointerScreenX?0:n-this.pointerScreenX;i<0?this.everMovedUp=!0:i>0&&(this.everMovedDown=!0),o<0?this.everMovedLeft=!0:o>0&&(this.everMovedRight=!0),this.pointerScreenX=n,this.pointerScreenY=r,this.isAnimating||(this.isAnimating=!0,this.requestAnimation(p()))}}stop(){if(this.isEnabled){for(let e of(this.isAnimating=!1,this.scrollCaches))e.destroy();this.scrollCaches=null}}requestAnimation(e){this.msSinceRequest=e,requestAnimationFrame(this.animate)}handleSide(e,t){let{scrollCache:n}=e,{edgeThreshold:r}=this,i=r-e.distance,o=i*i/(r*r)*this.maxVelocity*t,a=1;switch(e.name){case"left":a=-1;case"right":n.setScrollLeft(n.getScrollLeft()+o*a);break;case"top":a=-1;case"bottom":n.setScrollTop(n.getScrollTop()+o*a)}}computeBestEdge(e,t){let{edgeThreshold:n}=this,r=null;for(let i of this.scrollCaches||[]){let o=i.clientRect,a=e-o.left,s=o.right-e,l=t-o.top,c=o.bottom-t;a>=0&&s>=0&&l>=0&&c>=0&&(l<=n&&this.everMovedUp&&i.canScrollUp()&&(!r||r.distance>l)&&(r={scrollCache:i,name:"top",distance:l}),c<=n&&this.everMovedDown&&i.canScrollDown()&&(!r||r.distance>c)&&(r={scrollCache:i,name:"bottom",distance:c}),a<=n&&this.everMovedLeft&&i.canScrollLeft()&&(!r||r.distance>a)&&(r={scrollCache:i,name:"left",distance:a}),s<=n&&this.everMovedRight&&i.canScrollRight()&&(!r||r.distance>s)&&(r={scrollCache:i,name:"right",distance:s}))}return r}buildCaches(e){return this.queryScrollEls(e).map(e=>e===window?new h(!1):new f(e,!1))}queryScrollEls(e){let t=[];for(let n of this.scrollQuery)"object"==typeof n?t.push(n):t.push(...Array.prototype.slice.call(e.getRootNode().querySelectorAll(n)));return t}}class m extends i.bF{constructor(e,t){super(e),this.containerEl=e,this.delay=null,this.minDistance=0,this.touchScrollAllowed=!0,this.mirrorNeedsRevert=!1,this.isInteracting=!1,this.isDragging=!1,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,this.delayTimeoutId=null,this.onPointerDown=e=>{this.isDragging||(this.isInteracting=!0,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,(0,i.ap)(document.body),(0,i.ar)(document.body),e.isTouch||e.origEvent.preventDefault(),this.emitter.trigger("pointerdown",e),!this.isInteracting||this.pointer.shouldIgnoreMove||(this.mirror.setIsVisible(!1),this.mirror.start(e.subjectEl,e.pageX,e.pageY),this.startDelay(e),this.minDistance||this.handleDistanceSurpassed(e)))},this.onPointerMove=e=>{if(this.isInteracting){if(this.emitter.trigger("pointermove",e),!this.isDistanceSurpassed){let t=this.minDistance,{deltaX:n,deltaY:r}=e;n*n+r*r>=t*t&&this.handleDistanceSurpassed(e)}this.isDragging&&("scroll"!==e.origEvent.type&&(this.mirror.handleMove(e.pageX,e.pageY),this.autoScroller.handleMove(e.pageX,e.pageY)),this.emitter.trigger("dragmove",e))}},this.onPointerUp=e=>{this.isInteracting&&(this.isInteracting=!1,(0,i.aq)(document.body),(0,i.as)(document.body),this.emitter.trigger("pointerup",e),this.isDragging&&(this.autoScroller.stop(),this.tryStopDrag(e)),this.delayTimeoutId&&(clearTimeout(this.delayTimeoutId),this.delayTimeoutId=null))};let n=this.pointer=new l(e);n.emitter.on("pointerdown",this.onPointerDown),n.emitter.on("pointermove",this.onPointerMove),n.emitter.on("pointerup",this.onPointerUp),t&&(n.selector=t),this.mirror=new u,this.autoScroller=new g}destroy(){this.pointer.destroy(),this.onPointerUp({})}startDelay(e){"number"==typeof this.delay?this.delayTimeoutId=setTimeout(()=>{this.delayTimeoutId=null,this.handleDelayEnd(e)},this.delay):this.handleDelayEnd(e)}handleDelayEnd(e){this.isDelayEnded=!0,this.tryStartDrag(e)}handleDistanceSurpassed(e){this.isDistanceSurpassed=!0,this.tryStartDrag(e)}tryStartDrag(e){this.isDelayEnded&&this.isDistanceSurpassed&&(!this.pointer.wasTouchScroll||this.touchScrollAllowed)&&(this.isDragging=!0,this.mirrorNeedsRevert=!1,this.autoScroller.start(e.pageX,e.pageY,this.containerEl),this.emitter.trigger("dragstart",e),!1===this.touchScrollAllowed&&this.pointer.cancelTouchScroll())}tryStopDrag(e){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,e))}stopDrag(e){this.isDragging=!1,this.emitter.trigger("dragend",e)}setIgnoreMove(e){this.pointer.shouldIgnoreMove=e}setMirrorIsVisible(e){this.mirror.setIsVisible(e)}setMirrorNeedsRevert(e){this.mirrorNeedsRevert=e}setAutoScrollEnabled(e){this.autoScroller.isEnabled=e}}class v{constructor(e){this.el=e,this.origRect=(0,i.b4)(e),this.scrollCaches=(0,i.b3)(e).map(e=>new f(e,!0))}destroy(){for(let e of this.scrollCaches)e.destroy()}computeLeft(){let e=this.origRect.left;for(let t of this.scrollCaches)e+=t.origScrollLeft-t.getScrollLeft();return e}computeTop(){let e=this.origRect.top;for(let t of this.scrollCaches)e+=t.origScrollTop-t.getScrollTop();return e}isWithinClipping(e,t){let n={left:e,top:t};for(let e of this.scrollCaches)if(!function(e){let t=e.tagName;return"HTML"===t||"BODY"===t}(e.getEventTarget())&&!(0,i.aD)(n,e.clientRect))return!1;return!0}}class y{constructor(e,t){this.useSubjectCenter=!1,this.requireInitial=!0,this.disablePointCheck=!1,this.initialHit=null,this.movingHit=null,this.finalHit=null,this.handlePointerDown=e=>{let{dragging:t}=this;this.initialHit=null,this.movingHit=null,this.finalHit=null,this.prepareHits(),this.processFirstCoord(e),this.initialHit||!this.requireInitial?(t.setIgnoreMove(!1),this.emitter.trigger("pointerdown",e)):t.setIgnoreMove(!0)},this.handleDragStart=e=>{this.emitter.trigger("dragstart",e),this.handleMove(e,!0)},this.handleDragMove=e=>{this.emitter.trigger("dragmove",e),this.handleMove(e)},this.handlePointerUp=e=>{this.releaseHits(),this.emitter.trigger("pointerup",e)},this.handleDragEnd=e=>{this.movingHit&&this.emitter.trigger("hitupdate",null,!0,e),this.finalHit=this.movingHit,this.movingHit=null,this.emitter.trigger("dragend",e)},this.droppableStore=t,e.emitter.on("pointerdown",this.handlePointerDown),e.emitter.on("dragstart",this.handleDragStart),e.emitter.on("dragmove",this.handleDragMove),e.emitter.on("pointerup",this.handlePointerUp),e.emitter.on("dragend",this.handleDragEnd),this.dragging=e,this.emitter=new i.F}processFirstCoord(e){let t,n={left:e.pageX,top:e.pageY},r=n,o=e.subjectEl;o instanceof HTMLElement&&(t=(0,i.b4)(o),r=(0,i.aE)(r,t));let a=this.initialHit=this.queryHitForOffset(r.left,r.top);if(a){if(this.useSubjectCenter&&t){let e=(0,i.aC)(t,a.rect);e&&(r=(0,i.aF)(e))}this.coordAdjust=(0,i.aG)(r,n)}else this.coordAdjust={left:0,top:0}}handleMove(e,t){let n=this.queryHitForOffset(e.pageX+this.coordAdjust.left,e.pageY+this.coordAdjust.top);(t||!b(this.movingHit,n))&&(this.movingHit=n,this.emitter.trigger("hitupdate",n,!1,e))}prepareHits(){this.offsetTrackers=(0,i.a)(this.droppableStore,e=>(e.component.prepareHits(),new v(e.el)))}releaseHits(){let{offsetTrackers:e}=this;for(let t in e)e[t].destroy();this.offsetTrackers={}}queryHitForOffset(e,t){let{droppableStore:n,offsetTrackers:r}=this,o=null;for(let a in n){let s=n[a].component,l=r[a];if(l&&l.isWithinClipping(e,t)){let n=l.computeLeft(),r=l.computeTop(),c=e-n,u=t-r,{origRect:d}=l,f=d.right-d.left,h=d.bottom-d.top;if(c>=0&&c<f&&u>=0&&u<h){let e=s.queryHit(c,u,f,h);e&&(0,i.b7)(e.dateProfile.activeRange,e.dateSpan.range)&&(this.disablePointCheck||l.el.contains(l.el.getRootNode().elementFromPoint(c+n-window.scrollX,u+r-window.scrollY)))&&(!o||e.layer>o.layer)&&(e.componentId=a,e.context=s.context,e.rect.left+=n,e.rect.right+=n,e.rect.top+=r,e.rect.bottom+=r,o=e)}}}return o}}function b(e,t){return!e&&!t||!!e==!!t&&(0,i.bd)(e.dateSpan,t.dateSpan)}function w(e,t){var n;let r={};for(let n of t.pluginHooks.datePointTransforms)Object.assign(r,n(e,t));return Object.assign(r,{date:(n=t.dateEnv).toDate(e.range.start),dateStr:n.formatIso(e.range.start,{omitTime:e.allDay}),allDay:e.allDay}),r}class E extends i.X{constructor(e){super(e),this.handlePointerDown=e=>{let{dragging:t}=this,n=e.origEvent.target;t.setIgnoreMove(!this.component.isValidDateDownEl(n))},this.handleDragEnd=e=>{let{component:t}=this,{pointer:n}=this.dragging;if(!n.wasTouchScroll){let{initialHit:n,finalHit:r}=this.hitDragging;if(n&&r&&b(n,r)){let{context:r}=t,i=Object.assign(Object.assign({},w(n.dateSpan,r)),{dayEl:n.dayEl,jsEvent:e.origEvent,view:r.viewApi||r.calendarApi.view});r.emitter.trigger("dateClick",i)}}},this.dragging=new m(e.el),this.dragging.autoScroller.isEnabled=!1;let t=this.hitDragging=new y(this.dragging,(0,i.bE)(e));t.emitter.on("pointerdown",this.handlePointerDown),t.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}}class S extends i.X{constructor(e){super(e),this.dragSelection=null,this.handlePointerDown=e=>{let{component:t,dragging:n}=this,{options:r}=t.context,i=r.selectable&&t.isValidDateDownEl(e.origEvent.target);n.setIgnoreMove(!i),n.delay=e.isTouch?function(e){let{options:t}=e.context,n=t.selectLongPressDelay;return null==n&&(n=t.longPressDelay),n}(t):null},this.handleDragStart=e=>{this.component.context.calendarApi.unselect(e)},this.handleHitUpdate=(e,t)=>
1{let{context:n}=this.component,r=null,o=!1;if(e){let t=this.hitDragging.initialHit;e.componentId===t.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(t,e)||(r=function(e,t,n){let r=e.dateSpan,o=t.dateSpan,a=[r.range.start,r.range.end,o.range.start,o.range.end];a.sort(i.at);let s={};for(let r of n){let n=r(e,t);if(!1===n)return null;n&&Object.assign(s,n)}return s.range={start:a[0],end:a[3]},s.allDay=r.allDay,s}(t,e,n.pluginHooks.dateSelectionTransformers)),r&&(0,i.bY)(r,e.dateProfile,n)||(o=!0,r=null)}r?n.dispatch({type:"SELECT_DATES",selection:r}):t||n.dispatch({type:"UNSELECT_DATES"}),o?(0,i.av)():(0,i.au)(),t||(this.dragSelection=r)},this.handlePointerUp=e=>{this.dragSelection&&((0,i.cr)(this.dragSelection,e,this.component.context),this.dragSelection=null)};let{component:t}=e,{options:n}=t.context,r=this.dragging=new m(e.el);r.touchScrollAllowed=!1,r.minDistance=n.selectMinDistance||0,r.autoScroller.isEnabled=n.dragScroll;let o=this.hitDragging=new y(this.dragging,(0,i.bE)(e));o.emitter.on("pointerdown",this.handlePointerDown),o.emitter.on("dragstart",this.handleDragStart),o.emitter.on("hitupdate",this.handleHitUpdate),o.emitter.on("pointerup",this.handlePointerUp)}destroy(){this.dragging.destroy()}}class _ extends i.X{constructor(e){super(e),this.subjectEl=null,this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=e=>{let t=e.origEvent.target,{component:n,dragging:r}=this,{mirror:o}=r,{options:a}=n.context,s=n.context;this.subjectEl=e.subjectEl;let l=this.subjectSeg=(0,i.Y)(e.subjectEl),c=(this.eventRange=l.eventRange).instance.instanceId;this.relevantEvents=(0,i.aT)(s.getCurrentData().eventStore,c),r.minDistance=e.isTouch?0:a.eventDragMinDistance,r.delay=e.isTouch&&c!==n.props.eventSelection?function(e){let{options:t}=e.context,n=t.eventLongPressDelay;return null==n&&(n=t.longPressDelay),n}(n):null,a.fixedMirrorParent?o.parentNode=a.fixedMirrorParent:o.parentNode=(0,i.Z)(t,".fc"),o.revertDuration=a.dragRevertDuration;let u=n.isValidSegDownEl(t)&&!(0,i.Z)(t,".fc-event-resizer");r.setIgnoreMove(!u),this.isDragging=u&&e.subjectEl.classList.contains("fc-event-draggable")},this.handleDragStart=e=>{let t=this.component.context,n=this.eventRange,r=n.instance.instanceId;e.isTouch?r!==this.component.props.eventSelection&&t.dispatch({type:"SELECT_EVENT",eventInstanceId:r}):t.dispatch({type:"UNSELECT_EVENT"}),this.isDragging&&(t.calendarApi.unselect(e),t.emitter.trigger("eventDragStart",{el:this.subjectEl,event:new i._(t,n.def,n.instance),jsEvent:e.origEvent,view:t.viewApi}))},this.handleHitUpdate=(e,t)=>{if(!this.isDragging)return;let n=this.relevantEvents,r=this.hitDragging.initialHit,o=this.component.context,a=null,s=null,l=null,c=!1,u={affectedEvents:n,mutatedEvents:(0,i.H)(),isEvent:!0};if(e){let t=(a=e.context).options;o===a||t.editable&&t.droppable?(s=function(e,t,n,r){let o=e.dateSpan,a=t.dateSpan,s=o.range.start,l=a.range.start,c={};o.allDay!==a.allDay&&(c.allDay=a.allDay,c.hasEnd=t.context.options.allDayMaintainDuration,s=a.allDay?(0,i.q)(n):n);let u=(0,i.ay)(s,l,e.context.dateEnv,e.componentId===t.componentId?e.largeUnit:null);u.milliseconds&&(c.allDay=!1);let d={datesDelta:u,standardProps:c};for(let n of r)n(d,e,t);return d}(r,e,this.eventRange.instance.range.start,a.getCurrentData().pluginHooks.eventDragMutationMassagers))&&(l=(0,i.bV)(n,a.getCurrentData().eventUiBases,s,a),u.mutatedEvents=l,(0,i.bX)(u,e.dateProfile,a)||(c=!0,s=null,l=null,u.mutatedEvents=(0,i.H)())):a=null}this.displayDrag(a,u),c?(0,i.av)():(0,i.au)(),t||(o===a&&b(r,e)&&(s=null),this.dragging.setMirrorNeedsRevert(!s),this.dragging.setMirrorIsVisible(!e||!this.subjectEl.getRootNode().querySelector(".fc-event-mirror")),this.receivingContext=a,this.validMutation=s,this.mutatedRelevantEvents=l)},this.handlePointerUp=()=>{this.isDragging||this.cleanup()},this.handleDragEnd=e=>{if(this.isDragging){let t=this.component.context,n=t.viewApi,{receivingContext:r,validMutation:o}=this,a=this.eventRange.def,s=this.eventRange.instance,l=new i._(t,a,s),c=this.relevantEvents,u=this.mutatedRelevantEvents,{finalHit:d}=this.hitDragging;if(this.clearDrag(),t.emitter.trigger("eventDragStop",{el:this.subjectEl,event:l,jsEvent:e.origEvent,view:n}),o){if(r===t){let r=new i._(t,u.defs[a.defId],s?u.instances[s.instanceId]:null);t.dispatch({type:"MERGE_EVENTS",eventStore:u});let d={oldEvent:l,event:r,relatedEvents:(0,i.w)(u,t,s),revert(){t.dispatch({type:"MERGE_EVENTS",eventStore:c})}},f={};for(let e of t.getCurrentData().pluginHooks.eventDropTransformers)Object.assign(f,e(o,t));t.emitter.trigger("eventDrop",Object.assign(Object.assign(Object.assign({},d),f),{el:e.subjectEl,delta:o.datesDelta,jsEvent:e.origEvent,view:n})),t.emitter.trigger("eventChange",d)}else if(r){let o={event:l,relatedEvents:(0,i.w)(c,t,s),revert(){t.dispatch({type:"MERGE_EVENTS",eventStore:c})}};t.emitter.trigger("eventLeave",Object.assign(Object.assign({},o),{draggedEl:e.subjectEl,view:n}
1)),t.dispatch({type:"REMOVE_EVENTS",eventStore:c}),t.emitter.trigger("eventRemove",o);let f=u.defs[a.defId],h=u.instances[s.instanceId],p=new i._(r,f,h);r.dispatch({type:"MERGE_EVENTS",eventStore:u});let g={event:p,relatedEvents:(0,i.w)(u,r,h),revert(){r.dispatch({type:"REMOVE_EVENTS",eventStore:u})}};r.emitter.trigger("eventAdd",g),e.isTouch&&r.dispatch({type:"SELECT_EVENT",eventInstanceId:s.instanceId}),r.emitter.trigger("drop",Object.assign(Object.assign({},w(d.dateSpan,r)),{draggedEl:e.subjectEl,jsEvent:e.origEvent,view:d.context.viewApi})),r.emitter.trigger("eventReceive",Object.assign(Object.assign({},g),{draggedEl:e.subjectEl,view:d.context.viewApi}))}}else t.emitter.trigger("_noEventDrop")}this.cleanup()};let{component:t}=this,{options:n}=t.context,r=this.dragging=new m(e.el);r.pointer.selector=_.SELECTOR,r.touchScrollAllowed=!1,r.autoScroller.isEnabled=n.dragScroll;let o=this.hitDragging=new y(this.dragging,i.a5);o.useSubjectCenter=e.useEventCenter,o.emitter.on("pointerdown",this.handlePointerDown),o.emitter.on("dragstart",this.handleDragStart),o.emitter.on("hitupdate",this.handleHitUpdate),o.emitter.on("pointerup",this.handlePointerUp),o.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}displayDrag(e,t){let n=this.component.context,r=this.receivingContext;r&&r!==e&&(r===n?r.dispatch({type:"SET_EVENT_DRAG",state:{affectedEvents:t.affectedEvents,mutatedEvents:(0,i.H)(),isEvent:!0}}):r.dispatch({type:"UNSET_EVENT_DRAG"})),e&&e.dispatch({type:"SET_EVENT_DRAG",state:t})}clearDrag(){let e=this.component.context,{receivingContext:t}=this;t&&t.dispatch({type:"UNSET_EVENT_DRAG"}),e!==t&&e.dispatch({type:"UNSET_EVENT_DRAG"})}cleanup(){this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null}}_.SELECTOR=".fc-event-draggable, .fc-event-resizable";class x extends i.X{constructor(e){super(e),this.draggingSegEl=null,this.draggingSeg=null,this.eventRange=null,this.relevantEvents=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=e=>{let{component:t}=this,n=this.querySegEl(e),r=(0,i.Y)(n),o=this.eventRange=r.eventRange;this.dragging.minDistance=t.context.options.eventDragMinDistance,this.dragging.setIgnoreMove(!this.component.isValidSegDownEl(e.origEvent.target)||e.isTouch&&this.component.props.eventSelection!==o.instance.instanceId)},this.handleDragStart=e=>{let{context:t}=this.component,n=this.eventRange;this.relevantEvents=(0,i.aT)(t.getCurrentData().eventStore,this.eventRange.instance.instanceId);let r=this.querySegEl(e);this.draggingSegEl=r,this.draggingSeg=(0,i.Y)(r),t.calendarApi.unselect(),t.emitter.trigger("eventResizeStart",{el:r,event:new i._(t,n.def,n.instance),jsEvent:e.origEvent,view:t.viewApi})},this.handleHitUpdate=(e,t,n)=>{let{context:r}=this.component,o=this.relevantEvents,a=this.hitDragging.initialHit,s=this.eventRange.instance,l=null,c=null,u=!1,d={affectedEvents:o,mutatedEvents:(0,i.H)(),isEvent:!0};e&&!(e.componentId===a.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(a,e))&&(l=function(e,t,n,r){let o=e.context.dateEnv,a=e.dateSpan.range.start,s=t.dateSpan.range.start,l=(0,i.ay)(a,s,o,e.largeUnit);if(n){if(o.add(r.start,l)<r.end)return{startDelta:l}}else if(o.add(r.end,l)>r.start)return{endDelta:l};return null}(a,e,n.subjectEl.classList.contains("fc-event-resizer-start"),s.range)),l&&(c=(0,i.bV)(o,r.getCurrentData().eventUiBases,l,r),d.mutatedEvents=c,(0,i.bX)(d,e.dateProfile,r)||(u=!0,l=null,c=null,d.mutatedEvents=null)),c?r.dispatch({type:"SET_EVENT_RESIZE",state:d}):r.dispatch({type:"UNSET_EVENT_RESIZE"}),u?(0,i.av)():(0,i.au)(),t||(l&&b(a,e)&&(l=null),this.validMutation=l,this.mutatedRelevantEvents=c)},this.handleDragEnd=e=>{let{context:t}=this.component,n=this.eventRange.def,r=this.eventRange.instance,o=new i._(t,n,r),a=this.relevantEvents,s=this.mutatedRelevantEvents;if(t.emitter.trigger("eventResizeStop",{el:this.draggingSegEl,event:o,jsEvent:e.origEvent,view:t.viewApi}),this.validMutation){let l=new i._(t,s.defs[n.defId],r?s.instances[r.instanceId]:null);t.dispatch({type:"MERGE_EVENTS",eventStore:s});let c={oldEvent:o,event:l,relatedEvents:(0,i.w)(s,t,r),revert(){t.dispatch({type:"MERGE_EVENTS",eventStore:a})}};t.emitter.trigger("eventResize",Object.assign(Object.assign({},c),{el:this.draggingSegEl,startDelta:this.validMutation.startDelta||(0,i.d)(0),endDelta:this.validMutation.endDelta||(0,i.d)(0),jsEvent:e.origEvent,view:t.viewApi})),t.emitter.trigger("eventChange",c)}else t.emitter.trigger("_noEventResize");this.draggingSeg=null,this.relevantEvents=null,this.validMutation=null};let{component:t}=e,n=this.dragging=new m(e.el);n.pointer.selector=".fc-event-resizer",n.touchScrollAllowed=!1,n.autoScroller.isEnabled=t.context.options.dragScroll;let r=this.hitDragging=new y(this.dragging,(0,i.bE)(e));r.emitter.on("pointerdown",this.handlePointerDown),r.emitter.on("dragstart",this.handleDragStart),r.emitter.on("hitupdate",this.handleHitUpdate),r.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}querySegEl(e){return(0,i.Z)(e.subjectEl,".fc-event")}}class R{constructor(e){this.context=e,this.isRecentPointerDateSelect=!1,this.matchesCancel=!1,this.matchesEvent=!1,this.onSelect=e=>{e.jsEvent&&(this.isRecentPointerDateSelect=!0)},this.onDocumentPointerDown=e=>{let t=this.context.options.unselectCancel,n=(0,i.aP)(e.origEvent);this.matchesCancel=!!(0,i.Z)(n,t),this.matchesEvent=!!(0,i.Z)(n,_.SELECTOR)},this.onDocumentPointerUp=e=>{let{context:t}=this,{documentPointer:n}=this,r=t.getCurrentData();if(!n.wasTouchScroll){if(r.dateSelection&&!this.isRecentPointerDateSelect){let n=t.options.unselectAuto;!n||n&&this.matchesCancel||t.calendarApi.unselect(e)}
1r.eventSelection&&!this.matchesEvent&&t.dispatch({type:"UNSELECT_EVENT"})}this.isRecentPointerDateSelect=!1};let t=this.documentPointer=new l(document);t.shouldIgnoreMove=!0,t.shouldWatchScroll=!1,t.emitter.on("pointerdown",this.onDocumentPointerDown),t.emitter.on("pointerup",this.onDocumentPointerUp),e.emitter.on("select",this.onSelect)}destroy(){this.context.emitter.off("select",this.onSelect),this.documentPointer.destroy()}}let C={fixedMirrorParent:i.n},D={dateClick:i.n,eventDragStart:i.n,eventDragStop:i.n,eventDrop:i.n,eventResizeStart:i.n,eventResizeStop:i.n,eventResize:i.n,drop:i.n,eventReceive:i.n,eventLeave:i.n};i.bG.dataAttrPrefix="";var O=(0,r.i1)({name:"@fullcalendar/interaction",componentInteractions:[E,S,_,x],calendarInteractions:[R],elementDraggingImpl:m,optionRefiners:C,listenerRefiners:D})},7894:(e,t,n)=>{n.d(t,{A:()=>m});var r=n(7932),i=n(533),o=n(5181);class a extends i.B{constructor(){super(...arguments),this.state={textId:(0,i.a3)()}}render(){let{theme:e,dateEnv:t,options:n,viewApi:r}=this.context,{cellId:a,dayDate:l,todayRange:c}=this.props,{textId:u}=this.state,d=(0,i.aY)(l,c),f=n.listDayFormat?t.format(l,n.listDayFormat):"",h=n.listDaySideFormat?t.format(l,n.listDaySideFormat):"",p=Object.assign({date:t.toDate(l),view:r,textId:u,text:f,sideText:h,navLinkAttrs:(0,i.a_)(this.context,l),sideNavLinkAttrs:(0,i.a_)(this.context,l,"day",!1)},d);return(0,o.n)(i.C,{elTag:"tr",elClasses:["fc-list-day",...(0,i.aX)(d,e)],elAttrs:{"data-date":(0,i.bt)(l)},renderProps:p,generatorName:"dayHeaderContent",customGenerator:n.dayHeaderContent,defaultGenerator:s,classNameGenerator:n.dayHeaderClassNames,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount},t=>(0,o.n)("th",{scope:"colgroup",colSpan:3,id:a,"aria-labelledby":u},(0,o.n)(t,{elTag:"div",elClasses:["fc-list-day-cushion",e.getClass("tableCellShaded")]})))}}function s(e){return(0,o.n)(o.FK,null,e.text&&(0,o.n)("a",Object.assign({id:e.textId,className:"fc-list-day-text"},e.navLinkAttrs),e.text),e.sideText&&(0,o.n)("a",Object.assign({"aria-hidden":!0,className:"fc-list-day-side-text"},e.sideNavLinkAttrs),e.sideText))}let l=(0,i.x)({hour:"numeric",minute:"2-digit",meridiem:"short"});class c extends i.B{render(){let{props:e,context:t}=this,{options:n}=t,{seg:r,timeHeaderId:a,eventHeaderId:s,dateHeaderId:c}=e,d=n.eventTimeFormat||l;return(0,o.n)(i.ck,Object.assign({},e,{elTag:"tr",elClasses:["fc-list-event",r.eventRange.def.url&&"fc-event-forced-url"],defaultGenerator:()=>{let e;return e=(0,i.bS)(r,t),(0,o.n)("a",Object.assign({},e),r.eventRange.def.title)},seg:r,timeText:"",disableDragging:!0,disableResizing:!0}),(e,n)=>(0,o.n)(o.FK,null,function(e,t,n,r,a){let{options:s}=n;if(!1!==s.displayEventTime){let l,c=e.eventRange.def,d=e.eventRange.instance,f=!1;if(c.allDay?f=!0:(0,i.ax)(e.eventRange.range)?e.isStart?l=(0,i.bO)(e,t,n,null,null,d.range.start,e.end):e.isEnd?l=(0,i.bO)(e,t,n,null,null,e.start,d.range.end):f=!0:l=(0,i.bO)(e,t,n),f){let e={text:n.options.allDayText,view:n.viewApi};return(0,o.n)(i.C,{elTag:"td",elClasses:["fc-list-event-time"],elAttrs:{headers:`${r} ${a}`},renderProps:e,generatorName:"allDayContent",customGenerator:s.allDayContent,defaultGenerator:u,classNameGenerator:s.allDayClassNames,didMount:s.allDayDidMount,willUnmount:s.allDayWillUnmount})}return(0,o.n)("td",{className:"fc-list-event-time"},l)}return null}(r,d,t,a,c),(0,o.n)("td",{"aria-hidden":!0,className:"fc-list-event-graphic"},(0,o.n)("span",{className:"fc-list-event-dot",style:{borderColor:n.borderColor||n.backgroundColor}})),(0,o.n)(e,{elTag:"td",elClasses:["fc-list-event-title"],elAttrs:{headers:`${s} ${c}`}})))}}function u(e){return e.text}class d extends i.bc{constructor(){super(...arguments),this.computeDateVars=(0,i.z)(h),this.eventStoreToSegs=(0,i.z)(this._eventStoreToSegs),this.state={timeHeaderId:(0,i.a3)(),eventHeaderId:(0,i.a3)(),dateHeaderIdRoot:(0,i.a3)()},this.setRootEl=e=>{e?this.context.registerInteractiveComponent(this,{el:e}):this.context.unregisterInteractiveComponent(this)}}render(){let{props:e,context:t}=this,{dayDates:n,dayRanges:r}=this.computeDateVars(e.dateProfile),a=this.eventStoreToSegs(e.eventStore,e.eventUiBases,r);return(0,o.n)(i.cq,{elRef:this.setRootEl,elClasses:["fc-list",t.theme.getClass("table"),!1!==t.options.stickyHeaderDates?"fc-list-sticky":""],viewSpec:t.viewSpec},(0,o.n)(i.cb,{liquid:!e.isHeightAuto,overflowX:e.isHeightAuto?"visible":"hidden",overflowY:e.isHeightAuto?"visible":"auto"},a.length>0?this.renderSegList(a,n):this.renderEmptyMessage()))}renderEmptyMessage(){let{options:e,viewApi:t}=this.context,n={text:e.noEventsText,view:t};return(0,o.n)(i.C,{elTag:"div",elClasses:["fc-list-empty"],renderProps:n,generatorName:"noEventsContent",customGenerator:e.noEventsContent,defaultGenerator:f,classNameGenerator:e.noEventsClassNames,didMount:e.noEventsDidMount,willUnmount:e.noEventsWillUnmount},e=>(0,o.n)(e,{elTag:"div",elClasses:["fc-list-empty-cushion"]}))}renderSegList(e,t){let{theme:n,options:r}=this.context,{timeHeaderId:s,eventHeaderId:l,dateHeaderIdRoot:u}=this.state,d=function(e){let t,n,r=[];for(t=0;t<e.length;t+=1)(r[(n=e[t]).dayIndex]||(r[n.dayIndex]=[])).push(n);return r}(e);return(0,o.n)(i.a6,{unit:"day"},(e,f)=>{let h=[];for(let n=0;n<d.length;n+=1){let p=d[n];if(p){let d=(0,i.bt)(t[n]),g=u+"-"+d;for(let u of(h.push((0,o.n)(a,{key:d,cellId:g,dayDate:t[n],todayRange:f})),p=(0,i.bP)(p,r.eventOrder)))h.push((0,o.n)(c,Object.assign({key:d+":"+u.eventRange.instance.instanceId,seg:u,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,timeHeaderId:s,eventHeaderId:l,dateHeaderId:g},(0,i.bQ)(u,f,e))))}}return(0,o.n)("table",{className:"fc-list-table "+n.getClass("table")},(0,o.n)("thead",null,(0,o.n)("tr",null,(0,o.n)("th",{scope:"col",id:s},r.timeHint),(0,o.n)("th",{scope:"col","aria-hidden":!0}),(0,o.n)("th",{scope:"col",id:l},r.eventHint))),(0,o.n)("tbody",null,h))})}_eventStoreToSegs(e,t,n){return this.eventRangesToSegs((0,i.ad)(e,t,this.props.dateProfile.activeRange,this.context.options.nextDayThreshold).fg,n)}eventRangesToSegs(e,t){let n=[];for(let r of e)n.push(...this.eventRangeToSegs(r,t));return n}eventRangeToSegs(e,t){let n,r,o,{dateEnv:a}=this.context,{nextDayThreshold:s}=this.context.options,l=e.range,c=e.def.allDay,u=[];for(n=0;n<t.length;n+=1)if((r=(0,i.o)(l,t[n]))&&(u.push(o={component:this,eventRange:e,start:r.start,end:r.end,isStart:e.isStart&&r.start.valueOf()===l.start.valueOf(),isEnd:e.isEnd&&r.end.valueOf()===l.end.valueOf(),dayIndex:n}),!o.isEnd&&!c&&n+1<t.length&&l.end<a.add(t[n+1].start,s))){o.end=l.end,o.isEnd=!0;break}return u}}function f(e){return e.text}function h(e){let t=(0,i.q)(e.renderRange.start),n=e.renderRange.end,r=[],o=[];for(;t<n;)r.push(t),o.push({start:t,end:(0,i.t)(t,1)}),t=(0,i.t)(t,1);return{dayDates:r,dayRanges:o}}(0,i.ct)(':root{--fc-list-event-dot-width:10px;--fc-list-event-hover-bg-color:#f5f5f5}.fc-theme-standard .fc-list{border:1px solid var(--fc-border-color)}.fc .fc-list-empty{align-items:center;background-color:var(--fc-neutral-bg-color);display:flex;height:100%;justify-content:center}.fc .fc-list-empty-cushion{margin:5em 0}.fc .fc-list-table{border-style:hidden;width:100%}.fc .fc-list-table tr>*{border-left:0;border-right:0}.fc .fc-list-sticky .fc-list-day>*{background:var(--fc-page-bg-color);position:sticky;top:0}.fc .fc-list-table thead{left:-10000px;position:absolute}.fc .fc-list-table tbody>tr:first-child th{border-top:0}.fc .fc-list-table th{padding:0}.fc .fc-list-day-cushion,.fc .fc-list-table td{padding:8px 14px}.fc .fc-list-day-cushion:after{clear:both;content:"";display:table}.fc-theme-standard .fc-list-day-cushion{background-color:var(--fc-neutral-bg-color)}.fc-direction-ltr .fc-list-day-text,.fc-direction-rtl .fc-list-day-side-text{float:left}.fc-direction-ltr .fc-list-day-side-text,.fc-direction-rtl .fc-list-day-text{float:right}.fc-direction-ltr .fc-list-table .fc-list-event-graphic{padding-right:0}.fc-direction-rtl .fc-list-table .fc-list-event-graphic{padding-left:0}.fc .fc-list-event.fc-event-forced-url{cursor:pointer}.fc .fc-list-event:hover td{background-color:var(--fc-list-event-hover-bg-color)}.fc .fc-list-event-graphic,.fc .fc-list-event-time{white-space:nowrap;width:1px}.fc .fc-list-event-dot{border:calc(var(--fc-list-event-dot-width)/2) solid var(--fc-event-border-color);border-radius:calc(var(--fc-list-event-dot-width)/2);box-sizing:content-box;display:inline-block;height:0;width:0}.fc .fc-list-event-title a{color:inherit;text-decoration:none}.fc .fc-list-event.fc-event-forced-url:hover a{text-decoration:underline}');let p={listDayFormat:g,listDaySideFormat:g,noEventsClassNames:i.n,noEventsContent:i.n,noEventsDidMount:i.n,noEventsWillUnmount:i.n};function g(e){return!1===e?null:(0,i.x)(e)}var m=(0,r.i1)({name:"@fullcalendar/list",optionRefiners:p,views:{list:{component:d,buttonTextKey:"list",listDayFormat:{month:"long",day:"numeric",year:"numeric"}},listDay:{type:"list",duration:{days:1},listDayFormat:{weekday:"long"}},listWeek:{type:"list",duration:{weeks:1},listDayFormat:{weekday:"long"},listDaySideFormat:{month:"long",day:"numeric",year:"numeric"}},listMonth:{type:"list",duration:{month:1},listDaySideFormat:{weekday:"long"}},listYear:{type:"list",duration:{year:1},listDaySideFormat:{weekday:"long"}}}})}
1,7499:(e,t,n)=>{n.d(t,{A:()=>l});var r=n(4041),i=n(3144),o=n(7932),a=n(533);let s=18>parseInt(String(r.version).split(".")[0]);class l extends r.Component{constructor(){super(...arguments),this.elRef=(0,r.createRef)(),this.isUpdating=!1,this.isUnmounting=!1,this.state={customRenderingMap:new Map},this.requestResize=()=>{this.isUnmounting||(this.cancelResize(),this.resizeId=requestAnimationFrame(()=>{this.doResize()}))}}render(){let e=[];for(let t of this.state.customRenderingMap.values())e.push(r.createElement(c,{key:t.id,customRendering:t}));return r.createElement("div",{ref:this.elRef},e)}componentDidMount(){let e;this.isUnmounting=!1;let t=new a.cv;this.handleCustomRendering=t.handle.bind(t),this.calendar=new o.Vv(this.elRef.current,Object.assign(Object.assign({},this.props),{handleCustomRendering:this.handleCustomRendering})),this.calendar.render(),this.calendar.on("_beforeprint",()=>{(0,i.flushSync)(()=>{})}),t.subscribe(t=>{let n=Date.now(),r=!e;(s||r||this.isUpdating||this.isUnmounting||n-e<100?u:i.flushSync)(()=>{this.setState({customRenderingMap:t},()=>{e=n,r?this.doResize():this.requestResize()})})})}componentDidUpdate(){this.isUpdating=!0,this.calendar.resetOptions(Object.assign(Object.assign({},this.props),{handleCustomRendering:this.handleCustomRendering})),this.isUpdating=!1}componentWillUnmount(){this.isUnmounting=!0,this.cancelResize(),this.calendar.destroy()}doResize(){this.calendar.updateSize()}cancelResize(){void 0!==this.resizeId&&(cancelAnimationFrame(this.resizeId),this.resizeId=void 0)}getApi(){return this.calendar}}l.act=u;class c extends r.PureComponent{render(){let{customRendering:e}=this.props,{generatorMeta:t}=e,n="function"==typeof t?t(e.renderProps):t;return(0,i.createPortal)(n,e.containerEl)}}function u(e){e()}},2761:(e,t,n)=>{n.d(t,{A:()=>z});var r=n(7932),i=n(533),o=n(5181),a=n(1626);class s extends i.aW{getKeyInfo(){return{allDay:{},timed:{}}}getKeysForDateSpan(e){return e.allDay?["allDay"]:["timed"]}getKeysForEventDef(e){return e.allDay?(0,i.bN)(e)?["timed","allDay"]:["allDay"]:["timed"]}}let l=(0,i.x)({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});function c(e){let t=["fc-timegrid-slot","fc-timegrid-slot-label",e.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return(0,o.n)(i.V.Consumer,null,n=>{if(!e.isLabeled)return(0,o.n)("td",{className:t.join(" "),"data-time":e.isoTimeStr});let{dateEnv:r,options:a,viewApi:s}=n,c=null==a.slotLabelFormat?l:Array.isArray(a.slotLabelFormat)?(0,i.x)(a.slotLabelFormat[0]):(0,i.x)(a.slotLabelFormat),d={level:0,time:e.time,date:r.toDate(e.date),view:s,text:r.format(e.date,c)};return(0,o.n)(i.C,{elTag:"td",elClasses:t,elAttrs:{"data-time":e.isoTimeStr},renderProps:d,generatorName:"slotLabelContent",customGenerator:a.slotLabelContent,defaultGenerator:u,classNameGenerator:a.slotLabelClassNames,didMount:a.slotLabelDidMount,willUnmount:a.slotLabelWillUnmount},e=>(0,o.n)("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},(0,o.n)(e,{elTag:"div",elClasses:["fc-timegrid-slot-label-cushion","fc-scrollgrid-shrink-cushion"]})))})}function u(e){return e.text}class d extends i.B{render(){return this.props.slatMetas.map(e=>(0,o.n)("tr",{key:e.key},(0,o.n)(c,Object.assign({},e))))}}let f=(0,i.x)({week:"short"});class h extends i.bc{constructor(){super(...arguments),this.allDaySplitter=new s,this.headerElRef=(0,o._3)(),this.rootElRef=(0,o._3)(),this.scrollerElRef=(0,o._3)(),this.state={slatCoords:null},this.handleScrollTopRequest=e=>{let t=this.scrollerElRef.current;t&&(t.scrollTop=e)},this.renderHeadAxis=(e,t="")=>{let{options:n}=this.context,{dateProfile:r}=this.props,a=r.renderRange,s=1===(0,i.bj)(a.start,a.end)?(0,i.a_)(this.context,a.start,"week"):{};return n.weekNumbers&&"day"===e?(0,o.n)(i.cn,{elTag:"th",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},date:a.start,defaultFormat:f},e=>(0,o.n)("div",{className:"fc-timegrid-axis-frame fc-scrollgrid-shrink-frame fc-timegrid-axis-frame-liquid",style:{height:t}},(0,o.n)(e,{elTag:"a",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"],elAttrs:s}
1))):(0,o.n)("th",{"aria-hidden":!0,className:"fc-timegrid-axis"},(0,o.n)("div",{className:"fc-timegrid-axis-frame",style:{height:t}}))},this.renderTableRowAxis=e=>{let{options:t,viewApi:n}=this.context,r={text:t.allDayText,view:n};return(0,o.n)(i.C,{elTag:"td",elClasses:["fc-timegrid-axis","fc-scrollgrid-shrink"],elAttrs:{"aria-hidden":!0},renderProps:r,generatorName:"allDayContent",customGenerator:t.allDayContent,defaultGenerator:p,classNameGenerator:t.allDayClassNames,didMount:t.allDayDidMount,willUnmount:t.allDayWillUnmount},t=>(0,o.n)("div",{className:["fc-timegrid-axis-frame","fc-scrollgrid-shrink-frame",null==e?" fc-timegrid-axis-frame-liquid":""].join(" "),style:{height:e}},(0,o.n)(t,{elTag:"span",elClasses:["fc-timegrid-axis-cushion","fc-scrollgrid-shrink-cushion","fc-scrollgrid-sync-inner"]})))},this.handleSlatCoords=e=>{this.setState({slatCoords:e})}}renderSimpleLayout(e,t,n){let{context:r,props:a}=this,s=[],l=(0,i.ca)(r.options);return e&&s.push({type:"header",key:"header",isSticky:l,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),t&&(s.push({type:"body",key:"all-day",chunk:{content:t}}),s.push({type:"body",key:"all-day-divider",outerContent:(0,o.n)("tr",{role:"presentation",className:"fc-scrollgrid-section"},(0,o.n)("td",{className:"fc-timegrid-divider "+r.theme.getClass("tableCellShaded")}))})),s.push({type:"body",key:"body",liquid:!0,expandRows:!!r.options.expandRows,chunk:{scrollerElRef:this.scrollerElRef,content:n}}),(0,o.n)(i.cq,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:r.viewSpec},(0,o.n)(i.bZ,{liquid:!a.isHeightAuto&&!a.forPrint,collapsibleWidth:a.forPrint,cols:[{width:"shrink"}],sections:s}))}renderHScrollLayout(e,t,n,r,a,s,l){let c=this.context.pluginHooks.scrollGridImpl;if(!c)throw Error("No ScrollGrid implementation");let{context:u,props:f}=this,h=!f.forPrint&&(0,i.ca)(u.options),p=!f.forPrint&&(0,i.c9)(u.options),g=[];e&&g.push({type:"header",key:"header",isSticky:h,syncRowHeights:!0,chunks:[{key:"axis",rowContent:e=>(0,o.n)("tr",{role:"presentation"},this.renderHeadAxis("day",e.rowSyncHeights[0]))},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),t&&(g.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:e=>(0,o.n)("tr",{role:"presentation"},this.renderTableRowAxis(e.rowSyncHeights[0]))},{key:"cols",content:t}]}),g.push({key:"all-day-divider",type:"body",outerContent:(0,o.n)("tr",{role:"presentation",className:"fc-scrollgrid-section"},(0,o.n)("td",{colSpan:2,className:"fc-timegrid-divider "+u.theme.getClass("tableCellShaded")}))}));let m=u.options.nowIndicator;return g.push({type:"body",key:"body",liquid:!0,expandRows:!!u.options.expandRows,chunks:[{key:"axis",content:e=>(0,o.n)("div",{className:"fc-timegrid-axis-chunk"},(0,o.n)("table",{"aria-hidden":!0,style:{height:e.expandRows?e.clientHeight:""}},e.tableColGroupNode,(0,o.n)("tbody",null,(0,o.n)(d,{slatMetas:s}))),(0,o.n)("div",{className:"fc-timegrid-now-indicator-container"},(0,o.n)(i.a6,{unit:m?"minute":"day"},e=>{let t=m&&l&&l.safeComputeTop(e);return"number"==typeof t?(0,o.n)(i.ch,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{top:t},isAxis:!0,date:e}):null})))},{key:"cols",scrollerElRef:this.scrollerElRef,content:n}]}),p&&g.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:i.c8},{key:"cols",content:i.c8}]}),(0,o.n)(i.cq,{elRef:this.rootElRef,elClasses:["fc-timegrid"],viewSpec:u.viewSpec},(0,o.n)(c,{liquid:!f.isHeightAuto&&!f.forPrint,forPrint:f.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:r,minWidth:a}]}],sections:g}))}getAllDayMaxEventProps(){let{dayMaxEvents:e,dayMaxEventRows:t}=this.context.options;return(!0===e||!0===t)&&(e=void 0,t=5),{dayMaxEvents:e,dayMaxEventRows:t}}}function p(e){return e.text}class g{constructor(e,t,n){this.positions=e,this.dateProfile=t,this.slotDuration=n}safeComputeTop(e){let{dateProfile:t}=this;if((0,i.G)(t.currentRange,e)){let n=(0,i.q)(e),r=e.valueOf()-n.valueOf();if(r>=(0,i.bq)(t.slotMinTime)&&r<(0,i.bq)(t.slotMaxTime))return this.computeTimeTop((0,i.d)(r))}return null}computeDateTop(e,t){return t||(t=(0,i.q)(e)),this.computeTimeTop((0,i.d)(e.valueOf()-t.valueOf()))}computeTimeTop(e){let t,n,{positions:r,dateProfile:o}=this,a=r.els.length,s=(e.milliseconds-(0,i.bq)(o.slotMinTime))/(0,i.bq)(this.slotDuration);return t=Math.min(t=Math.floor(s=Math.min(a,s=Math.max(0,s))),a-1),n=s-t,r.tops[t]+r.getHeight(t)*n}}class m extends i.B{render(){let{props:e,context:t}=this,{options:n}=t,{slatElRefs:r}=e;return(0,o.n)("tbody",null,e.slatMetas.map((a,s)=>{let l={time:a.time,date:t.dateEnv.toDate(a.date),view:t.viewApi};return(0,o.n)("tr",{key:a.key,ref:r.createRef(a.key)},e.axis&&(0,o.n)(c,Object.assign({},a)),(0,o.n)(i.C,{elTag:"td",elClasses:["fc-timegrid-slot","fc-timegrid-slot-lane",!a.isLabeled&&"fc-timegrid-slot-minor"],elAttrs:{"data-time":
1a.isoTimeStr},renderProps:l,generatorName:"slotLaneContent",customGenerator:n.slotLaneContent,classNameGenerator:n.slotLaneClassNames,didMount:n.slotLaneDidMount,willUnmount:n.slotLaneWillUnmount}))}))}}class v extends i.B{constructor(){super(...arguments),this.rootElRef=(0,o._3)(),this.slatElRefs=new i.cd}render(){let{props:e,context:t}=this;return(0,o.n)("div",{ref:this.rootElRef,className:"fc-timegrid-slots"},(0,o.n)("table",{"aria-hidden":!0,className:t.theme.getClass("table"),style:{minWidth:e.tableMinWidth,width:e.clientWidth,height:e.minHeight}},e.tableColGroupNode,(0,o.n)(m,{slatElRefs:this.slatElRefs,axis:e.axis,slatMetas:e.slatMetas})))}componentDidMount(){this.updateSizing()}componentDidUpdate(){this.updateSizing()}componentWillUnmount(){this.props.onCoords&&this.props.onCoords(null)}updateSizing(){var e;let{context:t,props:n}=this;n.onCoords&&null!==n.clientWidth&&this.rootElRef.current.offsetHeight&&n.onCoords(new g(new i.b8(this.rootElRef.current,(e=this.slatElRefs.currentMap,n.slatMetas.map(t=>e[t.key])),!1,!0),this.props.dateProfile,t.options.slotDuration))}}function y(e,t){let n,r=[];for(n=0;n<t;n+=1)r.push([]);if(e)for(n=0;n<e.length;n+=1)r[e[n].col].push(e[n]);return r}function b(e,t){let n=[];if(e){for(let r=0;r<t;r+=1)n[r]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};for(let t of e.segs)n[t.col].segs.push(t)}else for(let e=0;e<t;e+=1)n[e]=null;return n}class w extends i.B{render(){let{props:e}=this;return(0,o.n)(i.co,{elClasses:["fc-timegrid-more-link"],elStyle:{top:e.top,bottom:e.bottom},allDayDate:null,moreCnt:e.hiddenSegs.length,allSegs:e.hiddenSegs,hiddenSegs:e.hiddenSegs,extraDateSpan:e.extraDateSpan,dateProfile:e.dateProfile,todayRange:e.todayRange,popoverContent:()=>T(e.hiddenSegs,e),defaultGenerator:E,forceTimed:!0},e=>(0,o.n)(e,{elTag:"div",elClasses:["fc-timegrid-more-link-inner","fc-sticky"]}))}}function E(e){return e.shortText}function S(e,t){if(!e)return[[],0];let{level:n,lateralStart:r,lateralEnd:i}=e,o=r,a=[];for(;o<i;)a.push(t(n,o)),o+=1;return a.sort(_),[a.map(x),a[0][1]]}function _(e,t){return t[1]-e[1]}function x(e){return e[0]}function R(e,t){let n={};return(...r)=>{let i=e(...r);return i in n?n[i]:n[i]=t(...r)}}function C(e,t,n=null,r=0){let i=[];if(n)for(let o=0;o<e.length;o+=1){let a=e[o],s=n.computeDateTop(a.start,t),l=Math.max(s+(r||0),n.computeDateTop(a.end,t));i.push({start:Math.round(s),end:Math.round(l)})}return i}let D=(0,i.x)({hour:"numeric",minute:"2-digit",meridiem:!1});class O extends i.B{render(){return(0,o.n)(i.cg,Object.assign({},this.props,{elClasses:["fc-timegrid-event","fc-v-event",this.props.isShort&&"fc-timegrid-event-short"],defaultTimeFormat:D}))}}class k extends i.B{constructor(){super(...arguments),this.sortEventSegs=(0,i.z)(i.bP)}render(){let{props:e,context:t}=this,{options:n}=t,r=n.selectMirror,a=e.eventDrag&&e.eventDrag.segs||e.eventResize&&e.eventResize.segs||r&&e.dateSelectionSegs||[],s=e.eventDrag&&e.eventDrag.affectedInstances||e.eventResize&&e.eventResize.affectedInstances||{},l=this.sortEventSegs(e.fgEventSegs,n.eventOrder);return(0,o.n)(i.ci,{elTag:"td",elRef:e.elRef,elClasses:["fc-timegrid-col",...e.extraClassNames||[]],elAttrs:Object.assign({role:"gridcell"},e.extraDataAttrs),date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,extraRenderProps:e.extraRenderProps},t=>(0,o.n)("div",{className:"fc-timegrid-col-frame"},(0,o.n)("div",{className:"fc-timegrid-col-bg"},this.renderFillSegs(e.businessHourSegs,"non-business"),this.renderFillSegs(e.bgEventSegs,"bg-event"),this.renderFillSegs(e.dateSelectionSegs,"highlight")),(0,o.n)("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(l,s,!1,!1,!1)),(0,o.n)("div",{className:"fc-timegrid-col-events"},this.renderFgSegs(a,{},!!e.eventDrag,!!e.eventResize,!!r,"mirror")),(0,o.n)("div",{className:"fc-timegrid-now-indicator-container"},this.renderNowIndicator(e.nowIndicatorSegs)),(0,i.cj)(n)&&(0,o.n)(t,{elTag:"div",elClasses:["fc-timegrid-col-misc"]})))}renderFgSegs(e,t,n,r,i,o){let{props:a}=this;return a.forPrint?T(e,a):this.renderPositionedFgSegs(e,t,n,r,i,o)}renderPositionedFgSegs(e,t,n,r,a,s){let{eventMaxStack:l,eventShortHeight:c,eventOrderStrict:u,eventMinHeight:d}=this.context.options,{date:f,slatCoords:h,eventSelection:p,todayRange:g,nowDate:m}=this.props,v=n||r||a,y=C(e,f,h,d),{segPlacements:b,hiddenGroups:w}=function(e,t,n,r){let o,a,s,l=[],c=[];for(let n=0;n<e.length;n+=1){let r=t[n];r?l.push({index:n,thickness:1,span:r}):c.push(e[n])}let{segRects:u,hiddenGroups:d}=(o=new i.by,null!=n&&(o.strictOrder=n),null!=r&&(o.maxStackCnt=r),a=o.addSegs(l),s=(0,i.bC)(a),{segRects:function(e){let t=[],n=R((e,t,n)=>(0,i.bz)(e),(e,n,i)=>{let o=Object.assign(Object.assign({},e),{levelCoord:n,stackDepth:i,stackForward:0});return t.push(o),o.stackForward=r(e.nextLevelNodes,n+e.thickness,i+1)+1});function r(e,t,r){let i=0;for(let o of e)i=Math.max(n(o,t,r),i);return i}return r(e,0,0),t}(function(e,t){let n=R((e,t,n)=>(0,i.bz)(e),(e,t,r)=>{let i,{nextLevelNodes:o,thickness:a}=e,s=a+r,l=a/s,c=[];if(o.length)for(let e of o)if(void 0===i){let r=n(e,t,s);i=r[0],c.push(r[1])}else{let t=n(e,i,0);c.push(t[1])}else i=1;let u=(i-t)*l;return[i-u,Object.assign(Object.assign({},e),{thickness:u,nextLevelNodes:c})]});return e.map(e=>n(e,0,0)[1])}(function(e){let{entriesByLevel:t}=e,n=R((e,t)=>e+":"+t,(r,o)=>{let a=S(function(e,t,n){let{levelCoords:r,entriesByLevel:o}=e,a=o[t][n],s=r[t]+a.thickness,l=r.length,c=t;
1for(;c<l&&r[c]<s;c+=1);for(;c<l;c+=1){let e,t=o[c],n=(0,i.bB)(t,a.span.start,i.bA),r=n[0]+n[1],s=r;for(;(e=t[s])&&e.span.start<a.span.end;)s+=1;if(r<s)return{level:c,lateralStart:r,lateralEnd:s}}return null}(e,r,o),n),s=t[r][o];return[Object.assign(Object.assign({},s),{nextLevelNodes:a[0]}),s.thickness+a[1]]});return S(t.length?{level:0,lateralStart:0,lateralEnd:t[0].length}:null,n)[0]}(o),0)),hiddenGroups:s}),f=[];for(let t of u)f.push({seg:e[t.index],rect:t});for(let e of c)f.push({seg:e,rect:null});return{segPlacements:f,hiddenGroups:d}}(e,y,u,l);return(0,o.n)(o.FK,null,this.renderHiddenGroups(w,e),b.map(e=>{let{seg:l,rect:u}=e,d=l.eventRange.instance.instanceId,f=v||!!(!t[d]&&u),h=M(u&&u.span),y=!v&&u?this.computeSegHStyle(u):{left:0,right:0},b=!!u&&u.stackForward>0,w=!!u&&u.span.end-u.span.start<c;return(0,o.n)("div",{className:"fc-timegrid-event-harness"+(b?" fc-timegrid-event-harness-inset":""),key:s||d,style:Object.assign(Object.assign({visibility:f?"":"hidden"},h),y)},(0,o.n)(O,Object.assign({seg:l,isDragging:n,isResizing:r,isDateSelecting:a,isSelected:d===p,isShort:w},(0,i.bQ)(l,g,m))))}))}renderHiddenGroups(e,t){let{extraDateSpan:n,dateProfile:r,todayRange:a,nowDate:s,eventSelection:l,eventDrag:c,eventResize:u}=this.props;return(0,o.n)(o.FK,null,e.map(e=>{let d=M(e.span),f=e.entries.map(e=>t[e.index]);return(0,o.n)(w,{key:(0,i.bu)((0,i.cp)(f)),hiddenSegs:f,top:d.top,bottom:d.bottom,extraDateSpan:n,dateProfile:r,todayRange:a,nowDate:s,eventSelection:l,eventDrag:c,eventResize:u})}))}renderFillSegs(e,t){let{props:n,context:r}=this,a=C(e,n.date,n.slatCoords,r.options.eventMinHeight).map((r,a)=>{let s=e[a];return(0,o.n)("div",{key:(0,i.bR)(s.eventRange),className:"fc-timegrid-bg-harness",style:M(r)},"bg-event"===t?(0,o.n)(i.cm,Object.assign({seg:s},(0,i.bQ)(s,n.todayRange,n.nowDate))):(0,i.cl)(t))});return(0,o.n)(o.FK,null,a)}renderNowIndicator(e){let{slatCoords:t,date:n}=this.props;return t?e.map((e,r)=>(0,o.n)(i.ch,{key:r,elClasses:["fc-timegrid-now-indicator-line"],elStyle:{top:t.computeDateTop(e.start,n)},isAxis:!1,date:n})):null}computeSegHStyle(e){let t,n,{isRtl:r,options:i}=this.context,o=i.slotEventOverlap,a=e.levelCoord,s=e.levelCoord+e.thickness;o&&(s=Math.min(1,a+(s-a)*2)),r?(t=1-s,n=a):(t=a,n=1-s);let l={zIndex:e.stackDepth+1,left:100*t+"%",right:100*n+"%"};return o&&!e.stackForward&&(l[r?"marginLeft":"marginRight"]=20),l}}function T(e,{todayRange:t,nowDate:n,eventSelection:r,eventDrag:a,eventResize:s}){let l=(a?a.affectedInstances:null)||(s?s.affectedInstances:null)||{};return(0,o.n)(o.FK,null,e.map(e=>{let a=e.eventRange.instance.instanceId;return(0,o.n)("div",{key:a,style:{visibility:l[a]?"hidden":""}},(0,o.n)(O,Object.assign({seg:e,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:a===r,isShort:!1},(0,i.bQ)(e,t,n))))}))}function M(e){return e?{top:e.start,bottom:-e.end}:{top:"",bottom:""}}class I extends i.B{constructor(){super(...arguments),this.splitFgEventSegs=(0,i.z)(y),this.splitBgEventSegs=(0,i.z)(y),this.splitBusinessHourSegs=(0,i.z)(y),this.splitNowIndicatorSegs=(0,i.z)(y),this.splitDateSelectionSegs=(0,i.z)(y),this.splitEventDrag=(0,i.z)(b),this.splitEventResize=(0,i.z)(b),this.rootElRef=(0,o._3)(),this.cellElRefs=new i.cd}render(){let{props:e,context:t}=this,n=t.options.nowIndicator&&e.slatCoords&&e.slatCoords.safeComputeTop(e.nowDate),r=e.cells.length,a=this.splitFgEventSegs(e.fgEventSegs,r),s=this.splitBgEventSegs(e.bgEventSegs,r),l=this.splitBusinessHourSegs(e.businessHourSegs,r),c=this.splitNowIndicatorSegs(e.nowIndicatorSegs,r),u=this.splitDateSelectionSegs(e.dateSelectionSegs,r),d=this.splitEventDrag(e.eventDrag,r),f=this.splitEventResize(e.eventResize,r);return(0,o.n)("div",{className:"fc-timegrid-cols",ref:this.rootElRef},(0,o.n)("table",{role:"presentation",style:{minWidth:e.tableMinWidth,width:e.clientWidth}},e.tableColGroupNode,(0,o.n)("tbody",{role:"presentation"},(0,o.n)("tr",{role:"row"},e.axis&&(0,o.n)("td",{"aria-hidden":!0,className:"fc-timegrid-col fc-timegrid-axis"},(0,o.n)("div",{className:"fc-timegrid-col-frame"},(0,o.n)("div",{className:"fc-timegrid-now-indicator-container"},"number"==typeof n&&(0,o.n)(i.ch,{elClasses:["fc-timegrid-now-indicator-arrow"],elStyle:{to
1p:n},isAxis:!0,date:e.nowDate})))),e.cells.map((t,n)=>(0,o.n)(k,{key:t.key,elRef:this.cellElRefs.createRef(t.key),dateProfile:e.dateProfile,date:t.date,nowDate:e.nowDate,todayRange:e.todayRange,extraRenderProps:t.extraRenderProps,extraDataAttrs:t.extraDataAttrs,extraClassNames:t.extraClassNames,extraDateSpan:t.extraDateSpan,fgEventSegs:a[n],bgEventSegs:s[n],businessHourSegs:l[n],nowIndicatorSegs:c[n],dateSelectionSegs:u[n],eventDrag:d[n],eventResize:f[n],slatCoords:e.slatCoords,eventSelection:e.eventSelection,forPrint:e.forPrint}))))))}componentDidMount(){this.updateCoords()}componentDidUpdate(){this.updateCoords()}updateCoords(){var e;let{props:t}=this;t.onColCoords&&null!==t.clientWidth&&t.onColCoords(new i.b8(this.rootElRef.current,(e=this.cellElRefs.currentMap,t.cells.map(t=>e[t.key])),!0,!1))}}class A extends i.bc{constructor(){super(...arguments),this.processSlotOptions=(0,i.z)(P),this.state={slatCoords:null},this.handleRootEl=e=>{e?this.context.registerInteractiveComponent(this,{el:e,isHitComboAllowed:this.props.isHitComboAllowed}):this.context.unregisterInteractiveComponent(this)},this.handleScrollRequest=e=>{let{onScrollTopRequest:t}=this.props,{slatCoords:n}=this.state;if(t&&n){if(e.time){let r=n.computeTimeTop(e.time);(r=Math.ceil(r))&&(r+=1),t(r)}return!0}return!1},this.handleColCoords=e=>{this.colCoords=e},this.handleSlatCoords=e=>{this.setState({slatCoords:e}),this.props.onSlatCoords&&this.props.onSlatCoords(e)}}render(){let{props:e,state:t}=this;return(0,o.n)("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:e.clientWidth,minWidth:e.tableMinWidth}},(0,o.n)(v,{axis:e.axis,dateProfile:e.dateProfile,slatMetas:e.slatMetas,clientWidth:e.clientWidth,minHeight:e.expandRows?e.clientHeight:"",tableMinWidth:e.tableMinWidth,tableColGroupNode:e.axis?e.tableColGroupNode:null,onCoords:this.handleSlatCoords}),(0,o.n)(I,{cells:e.cells,axis:e.axis,dateProfile:e.dateProfile,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,todayRange:e.todayRange,nowDate:e.nowDate,nowIndicatorSegs:e.nowIndicatorSegs,clientWidth:e.clientWidth,tableMinWidth:e.tableMinWidth,tableColGroupNode:e.tableColGroupNode,slatCoords:t.slatCoords,onColCoords:this.handleColCoords,forPrint:e.forPrint}))}componentDidMount(){this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)}componentDidUpdate(e){this.scrollResponder.update(e.dateProfile!==this.props.dateProfile)}componentWillUnmount(){this.scrollResponder.detach()}queryHit(e,t){let{dateEnv:n,options:r}=this.context,{colCoords:o}=this,{dateProfile:a}=this.props,{slatCoords:s}=this.state,{snapDuration:l,snapsPerSlot:c}=this.processSlotOptions(this.props.slotDuration,r.snapDuration),u=o.leftToIndex(e),d=s.positions.topToIndex(t);if(null!=u&&null!=d){let e=this.props.cells[u],r=s.positions.tops[d],f=s.positions.getHeight(d),h=Math.floor((t-r)/f*c),p=this.props.cells[u].date,g=(0,i.bn)(a.slotMinTime,(0,i.bm)(l,d*c+h)),m=n.add(p,g),v=n.add(m,l);return{dateProfile:a,dateSpan:Object.assign({range:{start:m,end:v},allDay:!1},e.extraDateSpan),dayEl:o.els[u],rect:{left:o.lefts[u],right:o.rights[u],top:r,bottom:r+f},layer:0}}return null}}function P(e,t){let n=t||e,r=(0,i.br)(e,n);return null===r&&(n=e,r=1),{snapDuration:n,snapsPerSlot:r}}class N extends i.bU{sliceRange(e,t){let n=[];for(let r=0;r<t.length;r+=1){let o=(0,i.o)(e,t[r]);o&&n.push({start:o.start,end:o.end,isStart:o.start.valueOf()===e.start.valueOf(),isEnd:o.end.valueOf()===e.end.valueOf(),col:r})}return n}}class j extends i.bc{constructor(){super(...arguments),this.buildDayRanges=(0,i.z)(L),this.slicer=new N,this.timeColsRef=(0,o._3)()}render(){let{props:e,context:t}=this,{dateProfile:n,dayTableModel:r}=e,{nowIndicator:a,nextDayThreshold:s}=t.options,l=this.buildDayRanges(r,n,t.dateEnv);return(0,o.n)(i.a6,{unit:a?"minute":"day"},(i,c)=>(0,o.n)(A,Object.assign({ref:this.timeColsRef},this.slicer.sliceProps(e,n,null,t,l),{forPrint:e.forPrint,axis:e.axis,dateProfile:n,slatMetas:e.slatMetas,slotDuration:e.slotDuration,cells:r.cells[0],tableColGroupNode:e.tableColGroupNode,tableMinWidth:e.tableMinWidth,clientWidth:e.clientWidth,clientHeight:e.clientHeight,expandRows:e.expandRows,nowDate:i,nowIndicatorSegs:a&&this.slicer.sliceNowDate(i,n,s,t,l),todayRange:c,onScrollTopRequest:e.onScrollTopRequest,onSlatCoords:e.onSlatCoords})))}}function L(e,t,n){let r=[];for(let i of e.headerDates)r.push({start:n.add(i,t.slotMinTime),end:n.add(i,t.slotMaxTime)});return r}let F=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function H(e,t,n,r,o){let a=new Date(0),s=e,l=(0,i.d)(0),c=n||function(e){let t,n,r;for(t=F.length-1;t>=0;t-=1)if(n=(0,i.d)(F[t]),null!==(r=(0,i.br)(n,e))&&r>1)return n;return e}(r),u=[];for(;(0,i.bq)(s)<(0,i.bq)(t);){let e=o.add(a,s),t=null!==(0,i.br)(l,c);u.push({date:e,time:s,key:e.toISOString(),isoTimeStr:(0,i.bs)(e),isLabeled:t}),s=(0,i.bn)(s,r),l=(0,i.bn)(l,r)}return u}class U extends h{constructor(){super(...arguments),this.buildTimeColsModel=(0,i.z)(V),this.buildSlatMetas=(0,i.z)(H)}render(){let{options:e,dateEnv:t,dateProfileGenerator:n}=this.context,{props:r}=this,{dateProfile:s}=r,l=this.buildTimeColsModel(s,n),c=this.allDaySplitter.splitProps(r),u=this.buildSlatMetas(s.slotMinTime,s.slotMaxTime,e.slotLabelInterval,e.slotDuration,t),{dayMinWidth:d}=e,f=!d,h=e.dayHeaders&&(0,o.n)(i.bI,{dates:l.headerDates,dateProfile:s,datesRepDistinctDays:!0,renderIntro:f?this.renderHeadAxis:null}),p=!1!==e.allDaySlot&&(t=>(0,o.n)(a.t7,Object.assign({},c.allDay,{dateProfile:s,dayTableModel:l,nextDayThreshold:e.nextDayThreshold,tableMinWidth:t.tableMinWidth,colGroupNode:t.tableColGroupNode,renderRowIntro:f?this.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:this.headerElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:r.forPrint},this.getAllDayMaxEventProps()))),g=t=>(0,o.n)(j,Object.assign({},c.timed,{dayTableModel:l,dateProfile:s,axis:f,slotDuration:e.slotDuration,slatMetas:u,forPrint:r.forPrint,tableColGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,clientWidth:t.clientWidth,clientHeight:t.clientHeight,onSlatCoords:this.handleSlatCoords,expandRows:t.expandRows,onScrollTopRequest:this.handleScrollTopRequest}));return d?this.renderHScrollLayout(h,p,g,l.colCnt,d,u,this.state.slatCoords):this.renderSimpleLayout(h,p,g)}}function V(e,t){let n=new i.bM(e.renderRange,t);return new i.bT(n,!1)}(0,i.ct)('.fc-v-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-v-event .fc-event-main{color:var(--fc-event-text-color);height:100%}.fc-v-event .fc-event-main-frame{display:flex;flex-direction:column;height:100%}.fc-v-event .fc-event-time{flex-grow:0;flex-shrink:0;max-height:100%;overflow:hidden}.fc-v-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-height:0}.fc-v-event .fc-event-title{bottom:0;max-height:100%;overflow:hidden;top:0}.fc-v-event:not(.fc-event-start){border-top-left-radius:0;border-top-right-radius:0;border-top-width:0}.fc-v-event:not(.fc-event-end){border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-width:0}.fc-v-event.fc-event-selected:before{left:-10px;right:-10px}.fc-v-event .fc-event-resizer-start{cursor:n-resize}.fc-v-event .fc-event-resizer-end{cursor:s-resize}.fc-v-event:not(.fc-event-selected) .fc-event-resizer{height:var(--fc-event-resizer-thickness);left:0;right:0}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-start{top:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event:not(.fc-event-selected) .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-thickness)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer{left:50%;margin-left:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-start{top:calc(var(--fc-event-resizer-dot-total-width)/-2)}.fc-v-event.fc-event-selected .fc-event-resizer-end{bottom:calc(var(--fc-event-resizer-dot-total-width)/-2)}
1.fc .fc-timegrid .fc-daygrid-body{z-index:2}.fc .fc-timegrid-divider{padding:0 0 2px}.fc .fc-timegrid-body{min-height:100%;position:relative;z-index:1}.fc .fc-timegrid-axis-chunk{position:relative}.fc .fc-timegrid-axis-chunk>table,.fc .fc-timegrid-slots{position:relative;z-index:1}.fc .fc-timegrid-slot{border-bottom:0;height:1.5em}.fc .fc-timegrid-slot:empty:before{content:"\\00a0"}.fc .fc-timegrid-slot-minor{border-top-style:dotted}.fc .fc-timegrid-slot-label-cushion{display:inline-block;white-space:nowrap}.fc .fc-timegrid-slot-label{vertical-align:middle}.fc .fc-timegrid-axis-cushion,.fc .fc-timegrid-slot-label-cushion{padding:0 4px}.fc .fc-timegrid-axis-frame-liquid{height:100%}.fc .fc-timegrid-axis-frame{align-items:center;display:flex;justify-content:flex-end;overflow:hidden}.fc .fc-timegrid-axis-cushion{flex-shrink:0;max-width:60px}.fc-direction-ltr .fc-timegrid-slot-label-frame{text-align:right}.fc-direction-rtl .fc-timegrid-slot-label-frame{text-align:left}.fc-liquid-hack .fc-timegrid-axis-frame-liquid{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col.fc-day-today{background-color:var(--fc-today-bg-color)}.fc .fc-timegrid-col-frame{min-height:100%;position:relative}.fc-media-screen.fc-liquid-hack .fc-timegrid-col-frame{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols{bottom:0;left:0;position:absolute;right:0;top:0}.fc-media-screen .fc-timegrid-cols>table{height:100%}.fc-media-screen .fc-timegrid-col-bg,.fc-media-screen .fc-timegrid-col-events,.fc-media-screen .fc-timegrid-now-indicator-container{left:0;position:absolute;right:0;top:0}.fc .fc-timegrid-col-bg{z-index:2}.fc .fc-timegrid-col-bg .fc-non-business{z-index:1}.fc .fc-timegrid-col-bg .fc-bg-event{z-index:2}.fc .fc-timegrid-col-bg .fc-highlight{z-index:3}.fc .fc-timegrid-bg-harness{left:0;position:absolute;right:0}.fc .fc-timegrid-col-events{z-index:3}.fc .fc-timegrid-now-indicator-container{bottom:0;overflow:hidden}.fc-direction-ltr .fc-timegrid-col-events{margin:0 2.5% 0 2px}.fc-direction-rtl .fc-timegrid-col-events{margin:0 2px 0 2.5%}.fc-timegrid-event-harness{position:absolute}.fc-timegrid-event-harness>.fc-timegrid-event{bottom:0;left:0;position:absolute;right:0;top:0}.fc-timegrid-event-harness-inset .fc-timegrid-event,.fc-timegrid-event.fc-event-mirror,.fc-timegrid-more-link{box-shadow:0 0 0 1px var(--fc-page-bg-color)}.fc-timegrid-event,.fc-timegrid-more-link{border-radius:3px;font-size:var(--fc-small-font-size)}.fc-timegrid-event{margin-bottom:1px}.fc-timegrid-event .fc-event-main{padding:1px 1px 0}.fc-timegrid-event .fc-event-time{font-size:var(--fc-small-font-size);margin-bottom:1px;white-space:nowrap}.fc-timegrid-event-short .fc-event-main-frame{flex-direction:row;overflow:hidden}.fc-timegrid-event-short .fc-event-time:after{content:"\\00a0-\\00a0"}.fc-timegrid-event-short .fc-event-title{font-size:var(--fc-small-font-size)}.fc-timegrid-more-link{background:var(--fc-more-link-bg-color);color:var(--fc-more-link-text-color);cursor:pointer;margin-bottom:1px;position:absolute;z-index:9999}.fc-timegrid-more-link-inner{padding:3px 2px;top:0}.fc-direction-ltr .fc-timegrid-more-link{right:0}.fc-direction-rtl .fc-timegrid-more-link{left:0}.fc .fc-timegrid-now-indicator-arrow,.fc .fc-timegrid-now-indicator-line{pointer-events:none}.fc .fc-timegrid-now-indicator-line{border-color:var(--fc-now-indicator-color);border-style:solid;border-width:1px 0 0;left:0;position:absolute;right:0;z-index:4}.fc .fc-timegrid-now-indicator-arrow{border-color:var(--fc-now-indicator-color);border-style:solid;margin-top:-5px;position:absolute;z-index:4}.fc-direction-ltr .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 0 5px 6px;left:0}.fc-direction-rtl .fc-timegrid-now-indicator-arrow{border-bottom-color:transparent;border-top-color:transparent;border-width:5px 6px 5px 0;right:0}');var z=(0,r.i1)({name:"@fullcalendar/timegrid",initialView:"timeGridWeek",optionRefiners:{allDaySlot:Boolean},views:{timeGrid:{component:U,usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}})},4744:(e,t,n)=>{function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}n.d(t,{mK:()=>r}),"undefined"!=typeof window&&window.document&&window.document.createElement}
1,1764:(e,t,n)=>{n.d(t,{s:()=>a,t:()=>o});var r=n(4041);function i(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function o(...e){return t=>{let n=!1,r=e.map(e=>{let r=i(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():i(e[t],null)}}}}function a(...e){return r.useCallback(o(...e),e)}},1883:(e,t,n)=>{n.d(t,{A:()=>a,q:()=>o});var r=n(4041),i=n(1085);function o(e,t){let n=r.createContext(t),o=e=>{let{children:t,...o}=e,a=r.useMemo(()=>o,Object.values(o));return(0,i.jsx)(n.Provider,{value:a,children:t})};return o.displayName=e+"Provider",[o,function(i){let o=r.useContext(n);if(o)return o;if(void 0!==t)return t;throw Error(`\`${i}\` must be used within \`${e}\``)}]}function a(e,t=[]){let n=[],o=()=>{let t=n.map(e=>r.createContext(e));return function(n){let i=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])}};return o.scopeName=e,[function(t,o){let a=r.createContext(o),s=n.length;n=[...n,o];let l=t=>{let{scope:n,children:o,...l}=t,c=n?.[e]?.[s]||a,u=r.useMemo(()=>l,Object.values(l));return(0,i.jsx)(c.Provider,{value:u,children:o})};return l.displayName=t+"Provider",[l,function(n,i){let l=i?.[e]?.[s]||a,c=r.useContext(l);if(c)return c;if(void 0!==o)return o;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}(o,...t)]}},4809:(e,t,n)=>{n.d(t,{UC:()=>e7,hJ:()=>e8,ZL:()=>e9,bL:()=>e5,hE:()=>te,l9:()=>e6});var r,i,o,a=n(4041),s=n(4744),l=n(1764),c=n(1883),u=n(8148),d=n(820),f=n(8342),h=n(4691),p=n(1085),g="dismissableLayer.update",m=a.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),v=a.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:c,onInteractOutside:u,onDismiss:d,...v}=e,w=a.useContext(m),[E,S]=a.useState(null),_=E?.ownerDocument??globalThis?.document,[,x]=a.useState({}),R=(0,l.s)(t,e=>S(e)),C=Array.from(w.layers),[D]=[...w.layersWithOutsidePointerEventsDisabled].slice(-1),O=C.indexOf(D),k=E?C.indexOf(E):-1,T=w.layersWithOutsidePointerEventsDisabled.size>0,M=k>=O,I=function(e,t=globalThis?.document){let n=(0,h.c)(e),r=a.useRef(!1),i=a.useRef(()=>{});return a.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){b("dismissableLayer.pointerDownOutside",n,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=r,t.addEventListener("click",i.current,{once:!0})):r()}else t.removeEventListener("click",i.current);r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,n=[...w.branches].some(e=>e.contains(t));!M||n||(o?.(e),u?.(e),e.defaultPrevented||d?.())},_),A=function(e,t=globalThis?.document){let n=(0,h.c)(e),r=a.useRef(!1);return a.useEffect(()=>{let e=e=>{e.target&&!r.current&&b("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{let t=e.target;[...w.branches].some(e=>e.contains(t))||(c?.(e),u?.(e),e.defaultPrevented||d?.())},_);return!function(e,t=globalThis?.document){let n=(0,h.c)(e);a.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{k!==w.layers.size-1||(r?.(e),!e.defaultPrevented&&d&&(e.preventDefault(),d()))},_),a.useEffect(()=>{if(E)return n&&(0===w.layersWithOutsidePointerEventsDisabled.size&&(i=_.body.style.pointerEvents,_.body.style.pointerEvents="none"),w.layersWithOutsidePointerEventsDisabled.add(E)),w.layers.add(E),y(),()=>{n&&1===w.layersWithOutsidePointerEventsDisabled.size&&(_.body.style.pointerEvents=i)}},[E,_,n,w]),a.useEffect(()=>()=>{E&&(w.layers.delete(E),w.layersWithOutsidePointerEventsDisabled.delete(E),y())},[E,w]),a.useEffect(()=>{let e=()=>x({});return document.addEventListener(g,e),()=>document.removeEventListener(g,e)},[]),(0,p.jsx)(f.sG.div,{...v,ref:R,style:{pointerEvents:T?M?"auto":"none":void 0,...e.style},onFocusCapture:(0,s.mK)(e.onFocusCapture,A.onFocusCapture),onBlurCapture:(0,s.mK)(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:(0,s.mK)(e.onPointerDownCapture,I.onPointerDownCapture)})});function y(){let e=new CustomEvent(g);document.dispatchEvent(e)}function b(e,t,n,{discrete:r}){let i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?(0,f.hO)(i,o):i.dispatchEvent(o)}v.displayName="DismissableLayer",a.forwardRef((e,t)=>
1{let n=a.useContext(m),r=a.useRef(null),i=(0,l.s)(t,r);return a.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,p.jsx)(f.sG.div,{...e,ref:i})}).displayName="DismissableLayerBranch";var w="focusScope.autoFocusOnMount",E="focusScope.autoFocusOnUnmount",S={bubbles:!1,cancelable:!0},_=a.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...s}=e,[c,u]=a.useState(null),d=(0,h.c)(i),g=(0,h.c)(o),m=a.useRef(null),v=(0,l.s)(t,e=>u(e)),y=a.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;a.useEffect(()=>{if(r){let e=function(e){if(y.paused||!c)return;let t=e.target;c.contains(t)?m.current=t:C(m.current,{select:!0})},t=function(e){if(y.paused||!c)return;let t=e.relatedTarget;null===t||c.contains(t)||C(m.current,{select:!0})};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&C(c)});return c&&n.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,c,y.paused]),a.useEffect(()=>{if(c){D.add(y);let e=document.activeElement;if(!c.contains(e)){let t=new CustomEvent(w,S);c.addEventListener(w,d),c.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(C(r,{select:t}),document.activeElement!==n)return}(x(c).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&C(c))}return()=>{c.removeEventListener(w,d),setTimeout(()=>{let t=new CustomEvent(E,S);c.addEventListener(E,g),c.dispatchEvent(t),t.defaultPrevented||C(e??document.body,{select:!0}),c.removeEventListener(E,g),D.remove(y)},0)}}},[c,d,g,y]);let b=a.useCallback(e=>{if(!n&&!r||y.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,o]=function(e){let t=x(e);return[R(t,e),R(t.reverse(),e)]}(t);r&&o?e.shiftKey||i!==o?e.shiftKey&&i===r&&(e.preventDefault(),n&&C(o,{select:!0})):(e.preventDefault(),n&&C(r,{select:!0})):i===t&&e.preventDefault()}},[n,r,y.paused]);return(0,p.jsx)(f.sG.div,{tabIndex:-1,...s,ref:v,onKeyDown:b})});function x(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function R(e,t){for(let n of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function C(e,{select:t=!1}={}){if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}_.displayName="FocusScope";var D=function(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),(e=O(e,t)).unshift(t)},remove(t){e=O(e,t),e[0]?.resume()}}}();function O(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var k=n(3144),T=n(9633),M=a.forwardRef((e,t)=>{let{container:n,...r}=e,[i,o]=a.useState(!1);(0,T.N)(()=>o(!0),[]);let s=n||i&&globalThis?.document?.body;return s?k.createPortal((0,p.jsx)(f.sG.div,{...r,ref:t}),s):null});M.displayName="Portal";var I=n(9680),A=0;function P(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var N=n(5608),j="right-scroll-bar-position",L="width-before-scroll-bar";function F(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var H="undefined"!=typeof window?a.useLayoutEffect:a.useEffect,U=new WeakMap;function V(e){return e}var z=function(e){void 0===e&&(e={});var t,n,r,i=(void 0===t&&(t=V),n=[],r=!1,{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:null},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;
1n=[],i.forEach(e),t=n}var o=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(o)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}});return i.options=(0,N.Cl)({async:!0,ssr:!1},e),i}(),W=function(){},Y=a.forwardRef(function(e,t){var n,r,i,o,s=a.useRef(null),l=a.useState({onScrollCapture:W,onWheelCapture:W,onTouchMoveCapture:W}),c=l[0],u=l[1],d=e.forwardProps,f=e.children,h=e.className,p=e.removeScrollBar,g=e.enabled,m=e.shards,v=e.sideCar,y=e.noRelative,b=e.noIsolation,w=e.inert,E=e.allowPinchZoom,S=e.as,_=e.gapMode,x=(0,N.Tt)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=(n=[s,t],r=function(e){return n.forEach(function(t){return F(t,e)})},(i=(0,a.useState)(function(){return{value:null,callback:r,facade:{get current(){return i.value},set current(value){var e=i.value;e!==value&&(i.value=value,i.callback(value,e))}}}})[0]).callback=r,o=i.facade,H(function(){var e=U.get(o);if(e){var t=new Set(e),r=new Set(n),i=o.current;t.forEach(function(e){r.has(e)||F(e,null)}),r.forEach(function(e){t.has(e)||F(e,i)})}U.set(o,n)},[n]),o),C=(0,N.Cl)((0,N.Cl)({},x),c);return a.createElement(a.Fragment,null,g&&a.createElement(v,{sideCar:z,removeScrollBar:p,shards:m,noRelative:y,noIsolation:b,inert:w,setCallbacks:u,allowPinchZoom:!!E,lockRef:s,gapMode:_}),d?a.cloneElement(a.Children.only(f),(0,N.Cl)((0,N.Cl)({},C),{ref:R})):a.createElement(void 0===S?"div":S,(0,N.Cl)({},C,{className:h,ref:R}),f))});Y.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Y.classNames={fullWidth:L,zeroRight:j};
1var B=function(e){var t=e.sideCar,n=(0,N.Tt)(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return a.createElement(r,(0,N.Cl)({},n))};B.isSideCarExport=!0;var G=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=o||n.nc;return t&&e.setAttribute("nonce",t),e}())){var i,a;(i=t).styleSheet?i.styleSheet.cssText=r:i.appendChild(document.createTextNode(r)),a=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(a)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},X=function(){var e=G();return function(t,n){a.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},$=function(){var e=X();return function(t){return e(t.styles,t.dynamic),null}},q={left:0,top:0,right:0,gap:0},K=function(e){return parseInt(e||"",10)||0},Z=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[K(n),K(r),K(i)]},Q=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return q;var t=Z(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},J=$(),ee="data-scroll-locked",et=function(e,t,n,r){var i=e.left,o=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body[").concat(ee,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(i,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(j," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(L," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(j," .").concat(j," {\n right: 0 ").concat(r,";\n }\n \n .").concat(L," .").concat(L," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(ee,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},en=function(){var e=parseInt(document.body.getAttribute(ee)||"0",10);return isFinite(e)?e:0},er=function(){a.useEffect(function(){return document.body.setAttribute(ee,(en()+1).toString()),function(){var e=en()-1;e<=0?document.body.removeAttribute(ee):document.body.setAttribute(ee,e.toString())}},[])},ei=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r;er();var o=a.useMemo(function(){return Q(i)},[i]);return a.createElement(J,{styles:et(o,!t,i,n?"":"!important")})},eo=!1;if("undefined"!=typeof window)try{var ea=Object.defineProperty({},"passive",{get:function(){return eo=!0,!0}});window.addEventListener("test",ea,ea),window.removeEventListener("test",ea,ea)}catch(e){eo=!1}var es=!!eo&&{passive:!1},el=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},ec=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),eu(e,r)){var i=ed(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},eu=function(e,t){return"v"===e?el(t,"overflowY"):el(t,"overflowX")},ed=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},ef=function(e,t,n,r,i){var o,a=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),s=a*r,l=n.target,c=t.contains(l),u=!1,d=s>0,f=0,h=0;do{if(!l)break;var p=ed(e,l),g=p[0],m=p[1]-p[2]-a*g;(g||m)&&eu(e,l)&&(f+=m,h+=g);var v=l.parentNode;l=v&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE?v.host:v}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return d&&(i&&1>Math.abs(f)||!i&&s>f)?u=!0:!d&&(i&&1>Math.abs(h)||!i&&-s>h)&&(u=!0),u},eh=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ep=function(e){return[e.deltaX,e.deltaY]},eg=function(e){return e&&"current"in e?e.current:e},em=0,ev=[];let ey=(r=function(e){var t=a.useRef([]),n=a.useRef([0,0]),r=a.useRef(),i=a.useState(em++)[0],o=a.useState($)[0],s=a.useRef(e);a.useEffect(function(){s.current=e},[e]),a.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(0,N.fX)([e.lockRef.current],(e.shards||[]).map(eg),!0).filter(
1Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var l=a.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var i,o=eh(e),a=n.current,l="deltaX"in e?e.deltaX:a[0]-o[0],c="deltaY"in e?e.deltaY:a[1]-o[1],u=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var f=window.getSelection(),h=f&&f.anchorNode;if(h&&(h===u||h.contains(u)))return!1;var p=ec(d,u);if(!p)return!0;if(p?i=d:(i="v"===d?"h":"v",p=ec(d,u)),!p)return!1;if(!r.current&&"changedTouches"in e&&(l||c)&&(r.current=i),!i)return!0;var g=r.current||i;return ef(g,t,e,"h"===g?l:c,!0)},[]),c=a.useCallback(function(e){if(ev.length&&ev[ev.length-1]===o){var n="deltaY"in e?ep(e):eh(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var i=(s.current.shards||[]).map(eg).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?l(e,i[0]):!s.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),u=a.useCallback(function(e,n,r,i){var o={name:e,delta:n,target:r,should:i,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),d=a.useCallback(function(e){n.current=eh(e),r.current=void 0},[]),f=a.useCallback(function(t){u(t.type,ep(t),t.target,l(t,e.lockRef.current))},[]),h=a.useCallback(function(t){u(t.type,eh(t),t.target,l(t,e.lockRef.current))},[]);a.useEffect(function(){return ev.push(o),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",c,es),document.addEventListener("touchmove",c,es),document.addEventListener("touchstart",d,es),function(){ev=ev.filter(function(e){return e!==o}),document.removeEventListener("wheel",c,es),document.removeEventListener("touchmove",c,es),document.removeEventListener("touchstart",d,es)}},[]);var p=e.removeScrollBar,g=e.inert;return a.createElement(a.Fragment,null,g?a.createElement(o,{styles:"\n .block-interactivity-".concat(i," {pointer-events: none;}\n .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,p?a.createElement(ei,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},z.useMedium(r),B);var eb=a.forwardRef(function(e,t){return a.createElement(Y,(0,N.Cl)({},e,{ref:t,sideCar:ey}))});eb.classNames=Y.classNames;var ew=new WeakMap,eE=new WeakMap,eS={},e_=0,ex=function(e){return e&&(e.host||ex(e.parentNode))},eR=function(e,t,n,r){var i=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=ex(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});eS[n]||(eS[n]=new WeakMap);var o=eS[n],a=[],s=new Set,l=new Set(i),c=function(e){!e||s.has(e)||(s.add(e),c(e.parentNode))};i.forEach(c);var u=function(e){!e||l.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=null!==t&&"false"!==t,l=(ew.get(e)||0)+1,c=(o.get(e)||0)+1;ew.set(e,l),o.set(e,c),a.push(e),1===l&&i&&eE.set(e,!0),1===c&&e.setAttribute(n,"true"),i||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return u(t),s.clear(),e_++,function(){a.forEach(function(e){var t=ew.get(e)-1,i=o.get(e)-1;ew.set(e,t),o.set(e,i),t||(eE.has(e)||e.removeAttribute(r),eE.delete(e)),i||e.removeAttribute(n)}),--e_||(ew=new WeakMap,ew=new WeakMap,eE=new WeakMap,eS={})}},eC=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r,i=Array.from(Array.isArray(e)?e:[e]),o=t||(r=e,"undefined"==typeof document?null:(Array.isArray(r)?r[0]:r).ownerDocument.body);return o?(i.push.apply(i,Array.from(o.querySelectorAll("[aria-live], script"))),eR(i,o,n,"aria-hidden")):function(){return null}},eD=n(45),eO="Dialog",[ek,eT]=(0,c.A)(eO),[eM,eI]=ek(eO),eA=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:s=!0}=e,l=a.useRef(null),c=a.useRef(null),[f,h]=(0,d.i)({prop:r,defaultProp:i??!1,onChange:o,caller:eO});return(0,p.jsx)(eM,{scope:t,triggerRef:l,contentRef:c,contentId:(0,u.B)(),titleId:(0,u.B)(),descriptionId:(0,u.B)(),open:f,onOpenChange:h,onOpenToggle:a.useCallback(()=>h(e=>!e),[h]),modal:s,children:n})};eA.displayName=eO;var eP="DialogTrigger",eN=a.forwardRef((e,t)=>
1{let{__scopeDialog:n,...r}=e,i=eI(eP,n),o=(0,l.s)(t,i.triggerRef);return(0,p.jsx)(f.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":eJ(i.open),...r,ref:o,onClick:(0,s.mK)(e.onClick,i.onOpenToggle)})});eN.displayName=eP;var ej="DialogPortal",[eL,eF]=ek(ej,{forceMount:void 0}),eH=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,o=eI(ej,t);return(0,p.jsx)(eL,{scope:t,forceMount:n,children:a.Children.map(r,e=>(0,p.jsx)(I.C,{present:n||o.open,children:(0,p.jsx)(M,{asChild:!0,container:i,children:e})}))})};eH.displayName=ej;var eU="DialogOverlay",eV=a.forwardRef((e,t)=>{let n=eF(eU,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=eI(eU,e.__scopeDialog);return o.modal?(0,p.jsx)(I.C,{present:r||o.open,children:(0,p.jsx)(eW,{...i,ref:t})}):null});eV.displayName=eU;var ez=(0,eD.TL)("DialogOverlay.RemoveScroll"),eW=a.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=eI(eU,n);return(0,p.jsx)(eb,{as:ez,allowPinchZoom:!0,shards:[i.contentRef],children:(0,p.jsx)(f.sG.div,{"data-state":eJ(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),eY="DialogContent",eB=a.forwardRef((e,t)=>{let n=eF(eY,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=eI(eY,e.__scopeDialog);return(0,p.jsx)(I.C,{present:r||o.open,children:o.modal?(0,p.jsx)(eG,{...i,ref:t}):(0,p.jsx)(eX,{...i,ref:t})})});eB.displayName=eY;var eG=a.forwardRef((e,t)=>{let n=eI(eY,e.__scopeDialog),r=a.useRef(null),i=(0,l.s)(t,n.contentRef,r);return a.useEffect(()=>{let e=r.current;if(e)return eC(e)},[]),(0,p.jsx)(e$,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,s.mK)(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:(0,s.mK)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:(0,s.mK)(e.onFocusOutside,e=>e.preventDefault())})}),eX=a.forwardRef((e,t)=>{let n=eI(eY,e.__scopeDialog),r=a.useRef(!1),i=a.useRef(!1);return(0,p.jsx)(e$,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,"pointerdown"!==t.detail.originalEvent.type||(i.current=!0));let o=t.target;n.triggerRef.current?.contains(o)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})}),e$=a.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,...s}=e,c=eI(eY,n),u=a.useRef(null),d=(0,l.s)(t,u);return a.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??P()),document.body.insertAdjacentElement("beforeend",e[1]??P()),A++,()=>{1===A&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),A--}},[]),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(_,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o,children:(0,p.jsx)(v,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":eJ(c.open),...s,ref:d,onDismiss:()=>c.onOpenChange(!1)})}),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(e3,{titleId:c.titleId}),(0,p.jsx)(e4,{contentRef:u,descriptionId:c.descriptionId})]})]})}),eq="DialogTitle",eK=a.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=eI(eq,n);return(0,p.jsx)(f.sG.h2,{id:i.titleId,...r,ref:t})});eK.displayName=eq;var eZ="DialogDescription";a.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=eI(eZ,n);return(0,p.jsx)(f.sG.p,{id:i.descriptionId,...r,ref:t})}).displayName=eZ;var eQ="DialogClose";function eJ(e){return e?"open":"closed"}a.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=eI(eQ,n);return(0,p.jsx)(f.sG.button,{type:"button",...r,ref:t,onClick:(0,s.mK)(e.onClick,()=>i.onOpenChange(!1))})}).displayName=eQ;var e0="DialogTitleWarning",[e1,e2]=(0,c.q)(e0,{contentName:eY,titleName:eq,docsSlug:"dialog"}),e3=({titleId:e})=>{let t=e2(e0),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 2 3If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 4 5For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return a.useEffect(()=>{e&&!document.getElementById(e)&&console.error(n)},[n,e]),null},e4=({contentRef:e,descriptionId:t})=>{let n=e2("DialogDescriptionWarning"),r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${n.contentName}}.`;return a.useEffect(()=>{let n=e.current?.getAttribute("aria-describedby");t&&n&&!document.getElementById(t)&&console.warn(r)},[r,e,t]),null},e5=eA,e6=eN,e9=eH,e8=eV,e7=eB,te=eK}
5,8148:(e,t,n)=>{n.d(t,{B:()=>l});var r,i=n(4041),o=n(9633),a=(r||(r=n.t(i,2)))[" useId ".trim().toString()]||(()=>void 0),s=0;function l(e){let[t,n]=i.useState(a());return(0,o.N)(()=>{e||n(e=>e??String(s++))},[e]),e||(t?`radix-${t}`:"")}},9680:(e,t,n)=>{n.d(t,{C:()=>a});var r=n(4041),i=n(1764),o=n(9633),a=e=>{let{present:t,children:n}=e,a=function(e){var t,n;let[i,a]=r.useState(),l=r.useRef(null),c=r.useRef(e),u=r.useRef("none"),[d,f]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>n[e][t]??e,t));return r.useEffect(()=>{let e=s(l.current);u.current="mounted"===d?e:"none"},[d]),(0,o.N)(()=>{let t=l.current,n=c.current;if(n!==e){let r=u.current,i=s(t);e?f("MOUNT"):"none"===i||t?.display==="none"?f("UNMOUNT"):n&&r!==i?f("ANIMATION_OUT"):f("UNMOUNT"),c.current=e}},[e,f]),(0,o.N)(()=>{if(i){let e;let t=i.ownerDocument.defaultView??window,n=n=>{let r=s(l.current).includes(CSS.escape(n.animationName));if(n.target===i&&r&&(f("ANIMATION_END"),!c.current)){let n=i.style.animationFillMode;i.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===i.style.animationFillMode&&(i.style.animationFillMode=n)})}},r=e=>{e.target===i&&(u.current=s(l.current))};return i.addEventListener("animationstart",r),i.addEventListener("animationcancel",n),i.addEventListener("animationend",n),()=>{t.clearTimeout(e),i.removeEventListener("animationstart",r),i.removeEventListener("animationcancel",n),i.removeEventListener("animationend",n)}}f("ANIMATION_END")},[i,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:r.useCallback(e=>{l.current=e?getComputedStyle(e):null,a(e)},[])}}(t),l="function"==typeof n?n({present:a.isPresent}):r.Children.only(n),c=(0,i.s)(a.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(n=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}(l));return"function"==typeof n||a.isPresent?r.cloneElement(l,{ref:c}):null};function s(e){return e?.animationName||"none"}a.displayName="Presence"},8342:(e,t,n)=>{n.d(t,{hO:()=>l,sG:()=>s});var r=n(4041),i=n(3144),o=n(45),a=n(1085),s=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=(0,o.TL)(`Primitive.${t}`),i=r.forwardRef((e,r)=>{let{asChild:i,...o}=e,s=i?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(s,{...o,ref:r})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function l(e,t){e&&i.flushSync(()=>e.dispatchEvent(t))}},2388:(e,t,n)=>{n.d(t,{q7:()=>et,bL:()=>ee});var r=n(4041),i=n(4744),o=n(1764),a=n(1883),s=n(8342),l=n(45),c=n(1085),u=n(8148),d=n(4691),f=n(820),h=r.createContext(void 0);function p(e){let t=r.useContext(h);return e||t||"ltr"}var g="rovingFocusGroup.onEntryFocus",m={bubbles:!1,cancelable:!0},v="RovingFocusGroup",[y,b,w]=function(e){let t=e+"CollectionProvider",[n,i]=(0,a.A)(t),[s,u]=n(t,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:t,children:n}=e,i=r.useRef(null),o=r.useRef(new Map).current;return(0,c.jsx)(s,{scope:t,itemMap:o,collectionRef:i,children:n})};d.displayName=t;let f=e+"CollectionSlot",h=(0,l.TL)(f),p=r.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=u(f,n),a=(0,o.s)(t,i.collectionRef);return(0,c.jsx)(h,{ref:a,children:r})});p.displayName=f;let g=e+"CollectionItemSlot",m="data-radix-collection-item",v=(0,l.TL)(g),y=r.forwardRef((e,t)=>{let{scope:n,children:i,...a}=e,s=r.useRef(null),l=(0,o.s)(t,s),d=u(g,n);return r.useEffect(()=>(d.itemMap.set(s,{ref:s,...a}),()=>void d.itemMap.delete(s))),(0,c.jsx)(v,{[m]:"",ref:l,children:i})});return y.displayName=g,[{Provider:d,Slot:p,ItemSlot:y},function(t){let n=u(e+"CollectionConsumer",t);return r.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${m}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},i]}(v),[E,S]=(0,a.A)(v,[w]),[_,x]=E(v),R=r.forwardRef((e,t)=>
5(0,c.jsx)(y.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,c.jsx)(y.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,c.jsx)(C,{...e,ref:t})})}));R.displayName=v;var C=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:a,loop:l=!1,dir:u,currentTabStopId:h,defaultCurrentTabStopId:y,onCurrentTabStopIdChange:w,onEntryFocus:E,preventScrollOnEntryFocus:S=!1,...x}=e,R=r.useRef(null),C=(0,o.s)(t,R),D=p(u),[O,k]=(0,f.i)({prop:h,defaultProp:y??null,onChange:w,caller:v}),[M,I]=r.useState(!1),A=(0,d.c)(E),P=b(n),N=r.useRef(!1),[j,L]=r.useState(0);return r.useEffect(()=>{let e=R.current;if(e)return e.addEventListener(g,A),()=>e.removeEventListener(g,A)},[A]),(0,c.jsx)(_,{scope:n,orientation:a,dir:D,loop:l,currentTabStopId:O,onItemFocus:r.useCallback(e=>k(e),[k]),onItemShiftTab:r.useCallback(()=>I(!0),[]),onFocusableItemAdd:r.useCallback(()=>L(e=>e+1),[]),onFocusableItemRemove:r.useCallback(()=>L(e=>e-1),[]),children:(0,c.jsx)(s.sG.div,{tabIndex:M||0===j?-1:0,"data-orientation":a,...x,ref:C,style:{outline:"none",...e.style},onMouseDown:(0,i.mK)(e.onMouseDown,()=>{N.current=!0}),onFocus:(0,i.mK)(e.onFocus,e=>{let t=!N.current;if(e.target===e.currentTarget&&t&&!M){let t=new CustomEvent(g,m);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=P().filter(e=>e.focusable);T([e.find(e=>e.active),e.find(e=>e.id===O),...e].filter(Boolean).map(e=>e.ref.current),S)}}N.current=!1}),onBlur:(0,i.mK)(e.onBlur,()=>I(!1))})})}),D="RovingFocusGroupItem",O=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:o=!0,active:a=!1,tabStopId:l,children:d,...f}=e,h=(0,u.B)(),p=l||h,g=x(D,n),m=g.currentTabStopId===p,v=b(n),{onFocusableItemAdd:w,onFocusableItemRemove:E,currentTabStopId:S}=g;return r.useEffect(()=>{if(o)return w(),()=>E()},[o,w,E]),(0,c.jsx)(y.ItemSlot,{scope:n,id:p,focusable:o,active:a,children:(0,c.jsx)(s.sG.span,{tabIndex:m?0:-1,"data-orientation":g.orientation,...f,ref:t,onMouseDown:(0,i.mK)(e.onMouseDown,e=>{o?g.onItemFocus(p):e.preventDefault()}),onFocus:(0,i.mK)(e.onFocus,()=>g.onItemFocus(p)),onKeyDown:(0,i.mK)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){g.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let i=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(i))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(i)))return k[i]}(e,g.orientation,g.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=v().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)n.reverse();else if("prev"===t||"next"===t){"prev"===t&&n.reverse();let r=n.indexOf(e.currentTarget);n=g.loop?function(e,t){return e.map((n,r)=>e[(t+r)%e.length])}(n,r+1):n.slice(r+1)}setTimeout(()=>T(n))}}),children:"function"==typeof d?d({isCurrentTabStop:m,hasTabStop:null!=S}):d})})});O.displayName=D;var k={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function T(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}var M=n(9633),I=n(9680),A="Radio",[P,N]=(0,a.A)(A),[j,L]=P(A),F=r.forwardRef((e,t)=>{let{__scopeRadio:n,name:a,checked:l=!1,required:u,disabled:d,value:f="on",onCheck:h,form:p,...g}=e,[m,v]=r.useState(null),y=(0,o.s)(t,e=>v(e)),b=r.useRef(!1),w=!m||p||!!m.closest("form");return(0,c.jsxs)(j,{scope:n,checked:l,disabled:d,children:[(0,c.jsx)(s.sG.button,{type:"button",role:"radio","aria-checked":l,"data-state":z(l),"data-disabled":d?"":void 0,disabled:d,value:f,...g,ref:y,onClick:(0,i.mK)(e.onClick,e=>{l||h?.(),w&&(b.current=e.isPropagationStopped(),b.current||e.stopPropagation())})}),w&&(0,c.jsx)(V,{control:m,bubbles:!b.current,name:a,value:f,checked:l,required:u,disabled:d,form:p,style:{transform:"translateX(-100%)"}})]})});F.displayName=A;var H="RadioIndicator",U=r.forwardRef((e,t)=>{let{__scopeRadio:n,forceMount:r,...i}=e,o=L(H,n);return(0,c.jsx)(I.C,{present:r||o.checked,children:(0,c.jsx)(s.sG.span,{"data-state":z(o.checked),"data-disabled":o.disabled?"":void 0,...i,ref:t})})});U.displayName=H;var V=r.forwardRef(({__scopeRadio:e,control:t,checked:n,bubbles:i=!0,...a},l)=>{let u=r.useRef(null),d=(0,o.s)(u,l),f=function(e){let t=r.useRef({value:e,previous:e});return r.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}(n),h=function(e){let[t,n]=r.useState(void 0);return(0,M.N)(()=>
5{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,i;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,i=t.blockSize}else r=e.offsetWidth,i=e.offsetHeight;n({width:r,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(t);return r.useEffect(()=>{let e=u.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(f!==n&&t){let r=new Event("click",{bubbles:i});t.call(e,n),e.dispatchEvent(r)}},[f,n,i]),(0,c.jsx)(s.sG.input,{type:"radio","aria-hidden":!0,defaultChecked:n,...a,tabIndex:-1,ref:d,style:{...a.style,...h,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});function z(e){return e?"checked":"unchecked"}V.displayName="RadioBubbleInput";var W=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Y="RadioGroup",[B,G]=(0,a.A)(Y,[S,N]),X=S(),$=N(),[q,K]=B(Y),Z=r.forwardRef((e,t)=>{let{__scopeRadioGroup:n,name:r,defaultValue:i,value:o,required:a=!1,disabled:l=!1,orientation:u,dir:d,loop:h=!0,onValueChange:g,...m}=e,v=X(n),y=p(d),[b,w]=(0,f.i)({prop:o,defaultProp:i??null,onChange:g,caller:Y});return(0,c.jsx)(q,{scope:n,name:r,required:a,disabled:l,value:b,onValueChange:w,children:(0,c.jsx)(R,{asChild:!0,...v,orientation:u,dir:y,loop:h,children:(0,c.jsx)(s.sG.div,{role:"radiogroup","aria-required":a,"aria-orientation":u,"data-disabled":l?"":void 0,dir:y,...m,ref:t})})})});Z.displayName=Y;var Q="RadioGroupItem",J=r.forwardRef((e,t)=>{let{__scopeRadioGroup:n,disabled:a,...s}=e,l=K(Q,n),u=l.disabled||a,d=X(n),f=$(n),h=r.useRef(null),p=(0,o.s)(t,h),g=l.value===s.value,m=r.useRef(!1);return r.useEffect(()=>{let e=e=>{W.includes(e.key)&&(m.current=!0)},t=()=>m.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}},[]),(0,c.jsx)(O,{asChild:!0,...d,focusable:!u,active:g,children:(0,c.jsx)(F,{disabled:u,required:l.required,checked:g,...f,...s,name:l.name,ref:p,onCheck:()=>l.onValueChange(s.value),onKeyDown:(0,i.mK)(e=>{"Enter"===e.key&&e.preventDefault()}),onFocus:(0,i.mK)(s.onFocus,()=>{m.current&&h.current?.click()})})})});J.displayName=Q,r.forwardRef((e,t)=>{let{__scopeRadioGroup:n,...r}=e,i=$(n);return(0,c.jsx)(U,{...i,...r,ref:t})}).displayName="RadioGroupIndicator";var ee=Z,et=J},45:(e,t,n)=>{n.d(t,{TL:()=>a});var r=n(4041),i=n(1764),o=n(1085);function a(e){let t=function(e){let t=r.forwardRef((e,t)=>{let{children:n,...o}=e;if(r.isValidElement(n)){let e,a;let s=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref,l=function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(o,n.props);return n.type!==r.Fragment&&(l.ref=t?(0,i.t)(t,s):s),r.cloneElement(n,l)}return r.Children.count(n)>1?r.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=r.forwardRef((e,n)=>{let{children:i,...a}=e,s=r.Children.toArray(i),c=s.find(l);if(c){let e=c.props.children,i=s.map(t=>t!==c?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,o.jsx)(t,{...a,ref:n,children:r.isValidElement(e)?r.cloneElement(e,void 0,i):null})}return(0,o.jsx)(t,{...a,ref:n,children:i})});return n.displayName=`${e}.Slot`,n}var s=Symbol("radix.slottable");function l(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===s}},4691:(e,t,n)=>{n.d(t,{c:()=>i});var r=n(4041);function i(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}},820:(e,t,n)=>{n.d(t,{i:()=>s});var r,i=n(4041),o=n(9633),a=(r||(r=n.t(i,2)))[" useInsertionEffect ".trim().toString()]||o.N;function s({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[o,s,l]=function({defaultProp:e,onChange:t}){let[n,r]=i.useState(e),o=i.useRef(n),s=i.useRef(t);return a(()=>{s.current=t},[t]),i.useEffect(()=>{o.current!==n&&(s.current?.(n),o.current=n)},[n,o]),[n,r,s]}({defaultProp:t,onChange:n}),c=void 0!==e,u=c?e:o;{let t=i.useRef(void 0!==e);i.useEffect(()=>{let e=t.current;if(e!==c){let t=c?"controlled":"uncontrolled";console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=c},[c,r])}return[u,i.useCallback(t=>{if(c){let n="function"==typeof t?t(e):t;n!==e&&l.current?.(n)}else s(t)},[c,e,s,l])]}Symbol("RADIX:SYNC_STATE")}
vendor: 4,630 bytes, line 5
5,9633:(e,t,n)=>{n.d(t,{N:()=>i});var r=n(4041),i=globalThis?.document?r.useLayoutEffect:()=>{}},8975:(e,t,n)=>{n.d(t,{l$:()=>eu,Ay:()=>ed,oR:()=>F});var r,i=n(4041);let o={data:""},a=e=>{if("object"==typeof window){let t=(e?e.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||o},s=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,l=/\/\*[^]*?\*\/| +/g,c=/\n+/g,u=(e,t)=>{let n="",r="",i="";for(let o in e){let a=e[o];"@"==o[0]?"i"==o[1]?n=o+" "+a+";":r+="f"==o[1]?u(a,o):o+"{"+u(a,"k"==o[1]?"":t)+"}":"object"==typeof a?r+=u(a,t?t.replace(/([^,])+/g,e=>o.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):o):null!=a&&(o=/^--/.test(o)?o:o.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=u.p?u.p(o,a):o+":"+a+";")}return n+(t&&i?t+"{"+i+"}":i)+r},d={},f=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+f(e[n]);return t}return e},h=(e,t,n,r,i)=>{let o=f(e),a=d[o]||(d[o]=(e=>{let t=0,n=11;for(;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return"go"+n})(o));if(!d[a]){let t=o!==e?e:(e=>{let t,n,r=[{}];for(;t=s.exec(e.replace(l,""));)t[4]?r.shift():t[3]?(n=t[3].replace(c," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(c," ").trim();return r[0]})(e);d[a]=u(i?{["@keyframes "+a]:t}:t,n?"":"."+a)}let h=n&&d.g?d.g:null;return n&&(d.g=d[a]),((e,t,n,r)=>{r?t.data=t.data.replace(r,e):-1===t.data.indexOf(e)&&(t.data=n?e+t.data:t.data+e)})(d[a],t,r,h),a},p=(e,t,n)=>e.reduce((e,r,i)=>{let o=t[i];if(o&&o.call){let e=o(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;o=t?"."+t:e&&"object"==typeof e?e.props?"":u(e,""):!1===e?"":e}return e+r+(null==o?"":o)},"");function g(e){let t=this||{},n=e.call?e(t.p):e;return h(n.unshift?n.raw?p(n,[].slice.call(arguments,1),t.p):n.reduce((e,n)=>Object.assign(e,n&&n.call?n(t.p):n),{}):n,a(t.target),t.g,t.o,t.k)}g.bind({g:1});let m,v,y,b=g.bind({k:1});function w(e,t){let n=this||{};return function(){let r=arguments;function i(o,a){let s=Object.assign({},o),l=s.className||i.className;n.p=Object.assign({theme:v&&v()},s),n.o=/ *go\d+/.test(l),s.className=g.apply(n,r)+(l?" "+l:""),t&&(s.ref=a);let c=e;return e[0]&&(c=s.as||e,delete s.as),y&&c[0]&&y(s),m(c,s)}return t?t(i):i}}var E=e=>"function"==typeof e,S=(e,t)=>E(e)?e(t):e,_=(()=>{let e=0;return()=>(++e).toString()})(),x=(()=>{let e;return()=>{if(void 0===e&&"u">typeof window){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),R="default",C=(e,t)=>{let{toastLimit:n}=e.settings;switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,n)};case 1:return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case 2:let{toast:r}=t;return C(e,{type:e.toasts.find(e=>e.id===r.id)?1:0,toast:r});case 3:let{toastId:i}=t;return{...e,toasts:e.toasts.map(e=>e.id===i||void 0===i?{...e,dismissed:!0,visible:!1}:e)};case 4:return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let o=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(e=>({...e,pauseDuration:e.pauseDuration+o}))}}},D=[],O={toasts:[],pausedAt:void 0,settings:{toastLimit:20}},k={},T=(e,t=R)=>{k[t]=C(k[t]||O,e),D.forEach(([e,n])=>{e===t&&n(k[t])})},M=e=>Object.keys(k).forEach(t=>T(e,t)),I=e=>Object.keys(k).find(t=>k[t].toasts.some(t=>t.id===e)),A=(e=R)=>t=>{T(t,e)},P={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},N=(e={},t=R)=>{let[n,r]=(0,i.useState)(k[t]||O),o=(0,i.useRef)(k[t]);(0,i.useEffect)(()=>(o.current!==k[t]&&r(k[t]),D.push([t,r]),()=>{let e=D.findIndex(([e])=>e===t);e>-1&&D.splice(e,1)}),[t]);let a=n.toasts.map(t=>{var n,r,i;return{...e,...e[t.type],...t,removeDelay:t.removeDelay||(null==(n=e[t.type])?void 0:n.removeDelay)||(null==e?void 0:e.removeDelay),duration:t.duration||(null==(r=e[t.type])?void 0:r.duration)||(null==e?void 0:e.duration)||P[t.type],style:{...e.style,...null==(i=e[t.type])?void 0:i.style,...t.style}}});return{...n,toasts:a}},j=(e,t="blank",n)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(null==n?void 0:n.id)||_()}),L=e=>(t,n)=>{let r=j(t,e,n);return A(r.toasterId||I(r.id))({type:2,toast:r}),r.id},F=(e,t)=>L("blank")(e,t);F.error=L("error"),F.success=L("success"),F.loading=L("loading"),F.custom=L("custom"),F.dismiss=(e,t)=>{let n={type:3,toastId:e};t?A(t)(n):M(n)},F.dismissAll=e=>F.dismiss(void 0,e),F.remove=(e,t)=>
5{let n={type:4,toastId:e};t?A(t)(n):M(n)},F.removeAll=e=>F.remove(void 0,e),F.promise=(e,t,n)=>{let r=F.loading(t.loading,{...n,...null==n?void 0:n.loading});return"function"==typeof e&&(e=e()),e.then(e=>{let i=t.success?S(t.success,e):void 0;return i?F.success(i,{id:r,...n,...null==n?void 0:n.success}):F.dismiss(r),e}).catch(e=>{let i=t.error?S(t.error,e):void 0;i?F.error(i,{id:r,...n,...null==n?void 0:n.error}):F.dismiss(r)}),e};var H=1e3,U=(e,t="default")=>{let{toasts:n,pausedAt:r}=N(e,t),o=(0,i.useRef)(new Map).current,a=(0,i.useCallback)((e,t=H)=>{if(o.has(e))return;let n=setTimeout(()=>{o.delete(e),s({type:4,toastId:e})},t);o.set(e,n)},[]);(0,i.useEffect)(()=>{if(r)return;let e=Date.now(),i=n.map(n=>{if(n.duration===1/0)return;let r=(n.duration||0)+n.pauseDuration-(e-n.createdAt);if(r<0){n.visible&&F.dismiss(n.id);return}return setTimeout(()=>F.dismiss(n.id,t),r)});return()=>{i.forEach(e=>e&&clearTimeout(e))}},[n,r,t]);let s=(0,i.useCallback)(A(t),[t]),l=(0,i.useCallback)(()=>{s({type:5,time:Date.now()})},[s]),c=(0,i.useCallback)((e,t)=>{s({type:1,toast:{id:e,height:t}})},[s]),u=(0,i.useCallback)(()=>{r&&s({type:6,time:Date.now()})},[r,s]),d=(0,i.useCallback)((e,t)=>{let{reverseOrder:r=!1,gutter:i=8,defaultPosition:o}=t||{},a=n.filter(t=>(t.position||o)===(e.position||o)&&t.height),s=a.findIndex(t=>t.id===e.id),l=a.filter((e,t)=>t<s&&e.visible).length;return a.filter(e=>e.visible).slice(...r?[l+1]:[0,l]).reduce((e,t)=>e+(t.height||0)+i,0)},[n]);return(0,i.useEffect)(()=>{n.forEach(e=>{if(e.dismissed)a(e.id,e.removeDelay);else{let t=o.get(e.id);t&&(clearTimeout(t),o.delete(e.id))}})},[n,a]),{toasts:n,handlers:{updateHeight:c,startPause:l,endPause:u,calculateOffset:d}}},V=b` 6from { 7 transform: scale(0) rotate(45deg); 8 opacity: 0; 9} 10to { 11 transform: scale(1) rotate(45deg); 12 opacity: 1; 13}`,z=b` 14from { 15 transform: scale(0); 16 opacity: 0; 17} 18to { 19 transform: scale(1); 20 opacity: 1; 21}`,W=b` 22from { 23 transform: scale(0) rotate(90deg); 24 opacity: 0; 25} 26to { 27 transform: scale(1) rotate(90deg); 28 opacity: 1; 29}`,Y=w("div")` 30 width: 20px; 31 opacity: 0; 32 height: 20px; 33 border-radius: 10px; 34 background: ${e=>e.primary||"#ff4b4b"}; 35 position: relative; 36 transform: rotate(45deg); 37 38 animation: ${V} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) 39 forwards; 40 animation-delay: 100ms; 41 42 &:after, 43 &:before { 44 content: ''; 45 animation: ${z} 0.15s ease-out forwards; 46 animation-delay: 150ms; 47 position: absolute; 48 border-radius: 3px; 49 opacity: 0; 50 background: ${e=>e.secondary||"#fff"}; 51 bottom: 9px; 52 left: 4px; 53 height: 2px; 54 width: 12px; 55 } 56 57 &:before { 58 animation: ${W} 0.15s ease-out forwards; 59 animation-delay: 180ms; 60 transform: rotate(90deg); 61 } 62`,B=b` 63 from { 64 transform: rotate(0deg); 65 } 66 to { 67 transform: rotate(360deg); 68 } 69`,G=w("div")` 70 width: 12px; 71 height: 12px; 72 box-sizing: border-box; 73 border: 2px solid; 74 border-radius: 100%; 75 border-color: ${e=>e.secondary||"#e0e0e0"}; 76 border-right-color: ${e=>e.primary||"#616161"}; 77 animation: ${B} 1s linear infinite; 78`,X=b` 79from { 80 transform: scale(0) rotate(45deg); 81 opacity: 0; 82} 83to { 84 transform: scale(1) rotate(45deg); 85 opacity: 1; 86}`,$=b` 870% { 88 height: 0; 89 width: 0; 90 opacity: 0; 91} 9240% { 93 height: 0; 94 width: 6px; 95 opacity: 1; 96} 97100% { 98 opacity: 1; 99 height: 10px; 100}`,q=w("div")` 101 width: 20px; 102 opacity: 0; 103 height: 20px; 104 border-radius: 10px; 105 background: ${e=>e.primary||"#61d345"}; 106 position: relative; 107 transform: rotate(45deg); 108 109 animation: ${X} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) 110 forwards; 111 animation-delay: 100ms; 112 &:after { 113 content: ''; 114 box-sizing: border-box; 115 animation: ${$} 0.2s ease-out forwards; 116 opacity: 0; 117 animation-delay: 200ms; 118 position: absolute; 119 border-right: 2px solid; 120 border-bottom: 2px solid; 121 border-color: ${e=>e.secondary||"#fff"}; 122 bottom: 6px; 123 left: 6px; 124 height: 10px; 125 width: 6px; 126 } 127`,K=w("div")` 128 position: absolute; 129`,Z=w("div")` 130 position: relative; 131 display: flex; 132 justify-content: center; 133 align-items: center;
134 min-width: 20px; 135 min-height: 20px; 136`,Q=b` 137from { 138 transform: scale(0.6); 139 opacity: 0.4; 140} 141to { 142 transform: scale(1); 143 opacity: 1; 144}`,J=w("div")` 145 position: relative; 146 transform: scale(0.6); 147 opacity: 0.4; 148 min-width: 20px; 149 animation: ${Q} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275) 150 forwards; 151`,ee=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return void 0!==t?"string"==typeof t?i.createElement(J,null,t):t:"blank"===n?null:i.createElement(Z,null,i.createElement(G,{...r}),"loading"!==n&&i.createElement(K,null,"error"===n?i.createElement(Y,{...r}):i.createElement(q,{...r})))},et=e=>` 1520% {transform: translate3d(0,${-200*e}%,0) scale(.6); opacity:.5;} 153100% {transform: translate3d(0,0,0) scale(1); opacity:1;} 154`,en=e=>` 1550% {transform: translate3d(0,0,-1px) scale(1); opacity:1;} 156100% {transform: translate3d(0,${-150*e}%,-1px) scale(.6); opacity:0;} 157`,er=w("div")` 158 display: flex; 159 align-items: center; 160 background: #fff; 161 color: #363636; 162 line-height: 1.3; 163 will-change: transform; 164 box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05); 165 max-width: 350px; 166 pointer-events: auto; 167 padding: 8px 10px; 168 border-radius: 8px; 169`,ei=w("div")` 170 display: flex; 171 justify-content: center; 172 margin: 4px 10px; 173 color: inherit; 174 flex: 1 1 auto; 175 white-space: pre-line; 176`,eo=(e,t)=>{let n=e.includes("top")?1:-1,[r,i]=x()?["0%{opacity:0;} 100%{opacity:1;}","0%{opacity:1;} 100%{opacity:0;}"]:[et(n),en(n)];return{animation:t?`${b(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${b(i)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},ea=i.memo(({toast:e,position:t,style:n,children:r})=>{let o=e.height?eo(e.position||t||"top-center",e.visible):{opacity:0},a=i.createElement(ee,{toast:e}),s=i.createElement(ei,{...e.ariaProps},S(e.message,e));return i.createElement(er,{className:e.className,style:{...o,...n,...e.style}},"function"==typeof r?r({icon:a,message:s}):i.createElement(i.Fragment,null,a,s))});r=i.createElement,u.p=void 0,m=r,v=void 0,y=void 0;var es=({id:e,className:t,style:n,onHeightUpdate:r,children:o})=>{let a=i.useCallback(t=>{if(t){let n=()=>{r(e,t.getBoundingClientRect().height)};n(),new MutationObserver(n).observe(t,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return i.createElement("div",{ref:a,className:t,style:n},o)},el=(e,t)=>{let n=e.includes("top"),r=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:x()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...n?{top:0}:{bottom:0},...r}},ec=g` 177 z-index: 9999; 178 > * { 179 pointer-events: auto; 180 } 181`,eu=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:o,toasterId:a,containerStyle:s,containerClassName:l})=>{let{toasts:c,handlers:u}=U(n,a);return i.createElement("div",{"data-rht-toaster":a||"",style:{position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none",...s},className:l,onMouseEnter:u.startPause,onMouseLeave:u.endPause},c.map(n=>{let a=n.position||t,s=el(a,u.calculateOffset(n,{reverseOrder:e,gutter:r,defaultPosition:t}));return i.createElement(es,{id:n.id,key:n.id,onHeightUpdate:u.updateHeight,className:n.visible?ec:"",style:s},"custom"===n.type?S(n.message,n):o?o(n):i.createElement(ea,{toast:n,position:a}))}))},ed=F}}]);
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.