vendor: 4,135 bytes, lines 1-9
1import{r as _d,g as ye,b as w,c as nr,a as F}from"./vendor-query-vPUuyXgA.js";import{P as q}from"./vendor-stripe-CRFGIoF7.js";var Vr={exports:{}},ae={};/** 2 * @license React 3 * react-dom.production.js 4 * 5 * Copyright (c) Meta Platforms, Inc. and affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var qs;function Sd(){if(qs)return ae;qs=1;var e=_d();function t(u){var c="https://react.dev/errors/"+u;if(1<arguments.length){c+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)c+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+u+"; visit "+c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var n={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for("react.portal");function i(u,c,l){var f=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:f==null?null:""+f,children:u,containerInfo:c,implementation:l}}var o=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function s(u,c){if(u==="font")return"";if(typeof c=="string")return c==="use-credentials"?c:""}return ae.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=n,ae.createPortal=function(u,c){var l=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!c||c.nodeType!==1&&c.nodeType!==9&&c.nodeType!==11)throw Error(t(299));return i(u,c,null,l)},ae.flushSync=function(u){var c=o.T,l=n.p;try{if(o.T=null,n.p=2,u)return u()}finally{o.T=c,n.p=l,n.d.f()}},ae.preconnect=function(u,c){typeof u=="string"&&(c?(c=c.crossOrigin,c=typeof c=="string"?c==="use-credentials"?c:"":void 0):c=null,n.d.C(u,c))},ae.prefetchDNS=function(u){typeof u=="string"&&n.d.D(u)},ae.preinit=function(u,c){if(typeof u=="string"&&c&&typeof c.as=="string"){var l=c.as,f=s(l,c.crossOrigin),v=typeof c.integrity=="string"?c.integrity:void 0,d=typeof c.fetchPriority=="string"?c.fetchPriority:void 0;l==="style"?n.d.S(u,typeof c.precedence=="string"?c.precedence:void 0,{crossOrigin:f,integrity:v,fetchPriority:d}):l==="script"&&n.d.X(u,{crossOrigin:f,integrity:v,fetchPriority:d,nonce:typeof c.nonce=="string"?c.nonce:void 0})}},ae.preinitModule=function(u,c){if(typeof u=="string")if(typeof c=="object"&&c!==null){if(c.as==null||c.as==="script"){var l=s(c.as,c.crossOrigin);n.d.M(u,{crossOrigin:l,integrity:typeof c.integrity=="string"?c.integrity:void 0,nonce:typeof c.nonce=="string"?c.nonce:void 0})}}else c==null&&n.d.M(u)},ae.preload=function(u,c){if(typeof u=="string"&&typeof c=="object"&&c!==null&&typeof c.as=="string"){var l=c.as,f=s(l,c.crossOrigin);n.d.L(u,l,{crossOrigin:f,integrity:typeof c.integrity=="string"?c.integrity:void 0,nonce:typeof c.nonce=="string"?c.nonce:void 0,type:typeof c.type=="string"?c.type:void 0,fetchPriority:typeof c.fetchPriority=="string"?c.fetchPriority:void 0,referrerPolicy:typeof c.referrerPolicy=="string"?c.referrerPolicy:void 0,imageSrcSet:typeof c.imageSrcSet=="string"?c.imageSrcSet:void 0,imageSizes:typeof c.imageSizes=="string"?c.imageSizes:void 0,media:typeof c.media=="string"?c.media:void 0})}},ae.preloadModule=function(u,c){if(typeof u=="string")if(c){var l=s(c.as,c.crossOrigin);n.d.m(u,{as:typeof c.as=="string"&&c.as!=="script"?c.as:void 0,crossOrigin:l,integrity:typeof c.integrity=="string"?c.integrity:void 0})}else n.d.m(u)},ae.requestFormReset=function(u){n.d.r(u)},ae.unstable_batchedUpdates=function(u,c){return u(c)},ae.useFormState=function(u,c,l){return o.H.useFormState(u,c,l)},ae.useFormStatus=function(){return o.H.useHostTransitionStatus()},ae.version="19.2.0",ae}var xs;function Ed(){if(xs)return Vr.exports;xs=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Vr.exports=Sd(),Vr.exports}function Z(){return Z=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}
9).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Z.apply(null,arguments)}function Tr(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Oe(e,t){if(e==null)return{};var r,n,a=Tr(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function qe(e){"@babel/helpers - typeof";return qe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qe(e)}function Dd(e,t){if(qe(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(qe(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Jf(e){var t=Dd(e,"string");return qe(t)=="symbol"?t:t+""}function Is(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Jf(n.key),n)}}function Q(e,t,r){return t&&Is(e.prototype,t),r&&Is(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function ee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wr(e,t){return wr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},wr(e,t)}function oe(e,t){if(typeof t!="function"&&t!==null)throw new 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&&wr(e,t)}function _r(e){return _r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_r(e)}function Qf(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Qf=function(){return!!e})()}function Od(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rd(e,t){if(t&&(qe(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Od(e)}var Td=Ed();const ev=ye(Td);function Xe(e,t,r){return(t=Jf(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ks(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function G(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ks(Object(r),!0).forEach(function(n){Xe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ks(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function se(e,t,r){return t=_r(t),Rd(e,Qf()?Reflect.construct(t,r||[],_r(e).constructor):t.apply(e,r))}function tv(e){if(Array.isArray(e))return e}function Ad(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,s=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(l){c=!0,a=l}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}function qo(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function zo(e,t){if(e){if(typeof e=="string")return qo(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?qo(e,t):void 0}}function rv(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 10In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function he(e,t){return tv(e)||Ad(e,t)||zo(e,t)||rv()}function nv(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=nv(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function J(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=nv(e))&&(n&&(n+=" "),n+=t);return n}var Xr,Ns;function Cd(){if(Ns)return Xr;Ns=1;var e=function(t,r,n,a,i,o,s,u){if(!t){var c;if(r===void 0)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,a,i,o,s,u],f=0;c=new Error(r.replace(/%s/g,function(){return l[f++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}};return Xr=e,Xr}var Md=Cd();const Mt=ye(Md);var Pd=function(){};function qd(e,t){var r={};return Object.keys(e).forEach(function(n){r[ur(n)]=Pd}),r}function Ls(e,t){return e[t]!==void 0}function ur(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function xd(e){return!!e&&(typeof e!="function"||e.prototype&&e.prototype.isReactComponent)}function Id(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,wr(e,t)}function av(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);e!=null&&this.setState(e)}function iv(e){function t(r){var n=this.constructor.getDerivedStateFromProps(e,r);return n??null}this.setState(t.bind(this))}function ov(e,t){try{var r=this.props,n=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(r,n)}finally{this.props=r,this.state=n}}av.__suppressDeprecationWarning=!0;iv.__suppressDeprecationWarning=!0;ov.__suppressDeprecationWarning=!0;function kd(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if(typeof e.getDerivedStateFromProps!="function"&&typeof t.getSnapshotBeforeUpdate!="function")return e;var r=null,n=null,a=null;if(typeof t.componentWillMount=="function"?r="componentWillMount":typeof t.UNSAFE_componentWillMount=="function"&&(r="UNSAFE_componentWillMount"),typeof t.componentWillReceiveProps=="function"?n="componentWillReceiveProps":typeof t.UNSAFE_componentWillReceiveProps=="function"&&(n="UNSAFE_componentWillReceiveProps"),typeof t.componentWillUpdate=="function"?a="componentWillUpdate":typeof t.UNSAFE_componentWillUpdate=="function"&&(a="UNSAFE_componentWillUpdate"),r!==null||n!==null||a!==null){var i=e.displayName||e.name,o=typeof e.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs. 11 12`+i+" uses "+o+" but also contains the following legacy lifecycles:"+(r!==null?` 13 `+r:"")+(n!==null?` 14 `+n:"")+(a!==null?` 15 `+a:"")+` 16 17The above lifecycles should be removed. Learn more about this warning here: 18https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps=="function"&&(t.componentWillMount=av,t.componentWillReceiveProps=iv),typeof t.getSnapshotBeforeUpdate=="function"){if(typeof t.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=ov;var s=t.componentDidUpdate;t.componentDidUpdate=function(c,l,f){var v=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:f;s.call(this,c,l,v)}}return e}var Nd="/Users/jquense/src/uncontrollable/src/uncontrollable.js";function sv(e,t,r){r===void 0&&(r=[]);var n=e.displayName||e.name||"Component",a=xd(e),i=Object.keys(t),o=i.map(ur);a||!r.length||Mt(!1);var s=(function(c){Id(l,c);function l(){for(var v,d=arguments.length,h=new Array(d),p=0;p<d;p++)h[p]=arguments[p];v=c.call.apply(c,[this].concat(h))||this,v.handlers=Object.create(null),i.forEac
18h(function(y){var m=t[y],_=function(E){if(v.props[m]){var S;v._notifying=!0;for(var D=arguments.length,T=new Array(D>1?D-1:0),O=1;O<D;O++)T[O-1]=arguments[O];(S=v.props)[m].apply(S,[E].concat(T)),v._notifying=!1}v.unmounted||v.setState(function(C){var R,I=C.values;return{values:Z(Object.create(null),I,(R={},R[y]=E,R))}})};v.handlers[m]=_}),r.length&&(v.attachRef=function(y){v.inner=y});var g=Object.create(null);return i.forEach(function(y){g[y]=v.props[ur(y)]}),v.state={values:g,prevProps:{}},v}var f=l.prototype;return f.shouldComponentUpdate=function(){return!this._notifying},l.getDerivedStateFromProps=function(d,h){var p=h.values,g=h.prevProps,y={values:Z(Object.create(null),p),prevProps:{}};return i.forEach(function(m){y.prevProps[m]=d[m],!Ls(d,m)&&Ls(g,m)&&(y.values[m]=d[ur(m)])}),y},f.componentWillUnmount=function(){this.unmounted=!0},f.render=function(){var d=this,h=this.props,p=h.innerRef,g=Tr(h,["innerRef"]);o.forEach(function(m){delete g[m]});var y={};return i.forEach(function(m){var _=d.props[m];y[m]=_!==void 0?_:d.state.values[m]}),w.createElement(e,Z({},g,y,this.handlers,{ref:p||this.attachRef}))},l})(w.Component);kd(s),s.displayName="Uncontrolled("+n+")",s.propTypes=Z({innerRef:function(){}},qd(t)),r.forEach(function(c){s.prototype[c]=function(){var f;return(f=this.inner)[c].apply(f,arguments)}});var u=s;return w.forwardRef&&(u=w.forwardRef(function(c,l){return w.createElement(s,Z({},c,{innerRef:l,__source:{fileName:Nd,lineNumber:128},__self:this}))}),u.propTypes=s.propTypes),u.ControlledComponent=e,u.deferControlTo=function(c,l,f){return l===void 0&&(l={}),sv(c,Z({},t,l),f)},u}var Sr="milliseconds",Pt="seconds",qt="minutes",xt="hours",Qe="day",ct="week",It="month",et="year",tt="decade",rt="century",uv={milliseconds:1,seconds:1e3,minutes:60*1e3,hours:3600*1e3,day:1440*60*1e3,week:10080*60*1e3},Ld={month:1,year:12,decade:120,century:1200};function $d(e){return[31,Fd(e),31,30,31,30,31,31,30,31,30,31]}function Fd(e){return e%4===0&&e%100!==0||e%400===0?29:28}function _e(e,t,r){switch(e=new Date(e),r){case Sr:case Pt:case qt:case xt:case Qe:case ct:return jd(e,t*uv[r]);case It:case et:case tt:case rt:return Hd(e,t*Ld[r])}throw new TypeError('Invalid units: "'+r+'"')}function jd(e,t){var r=new Date(+e+t);return Bd(e,r)}function Hd(e,t){var r=e.getFullYear(),n=e.getMonth(),a=e.getDate(),i=r*12+n+t,o=Math.trunc(i/12),s=i%12,u=Math.min(a,$d(o)[s]),c=new Date(e);return c.setFullYear(o),c.setDate(1),c.setMonth(s),c.setDate(u),c}function Bd(e,t){var r=e.getTimezoneOffset(),n=t.getTimezoneOffset(),a=n-r;return new Date(+t+a*uv.minutes)}function kt(e,t,r){return _e(e,-t,r)}function ne(e,t,r){switch(e=new Date(e),t){case rt:case tt:case et:e=Dr(e,0);case It:e=dv(e,1);case ct:case Qe:e=$t(e,0);case xt:e=lt(e,0);case qt:e=Lt(e,0);case Pt:e=Nt(e,0)}return t===tt&&(e=kt(e,nt(e)%10,"year")),t===rt&&(e=kt(e,nt(e)%100,"year")),t===ct&&(e=pv(e,0,r)),e}function Er(e,t,r){switch(e=new Date(e),e=ne(e,t,r),t){case rt:case tt:case et:case It:case ct:e=_e(e,1,t),e=kt(e,1,Qe),e.setHours(23,59,59,999);break;case Qe:e.setHours(23,59,59,999);break;case xt:case qt:case Pt:e=_e(e,1,t),e=kt(e,1,Sr)}return e}var zt=gt(function(e,t){return e===t}),Uo=gt(function(e,t){return e!==t}),Ar=gt(function(e,t){return e>t}),Ut=gt(function(e,t){return e>=t}),Ko=gt(function(e,t){return e<t}),ht=gt(function(e,t){return e<=t});function cv(){return new Date(Math.min.apply(Math,arguments))}function lv(){return new Date(Math.max.apply(Math,arguments))}function fv(e,t,r,n){return n=n||"day",(!t||Ut(e,t,n))&&(!r||ht(e,r,n))}var Nt=We("Milliseconds"),Lt=We("Seconds"),lt=We("Minutes"),$t=We("Hours"),vv=We("Day"),dv=We("Date"),Dr=We("Month"),nt=We("FullYear");function Wd(e,t){return t===void 0?nt(ne(e,tt)):_e(e,t+10,et)}function zd(e,t){return t===void 0?nt(ne(e,rt)):_e(e,t+100,et)}function pv(e,t,r){var n=(vv(e)+7-(r||0))%7;return t===void 0?n:_e(e,t-n,Qe)}function Ud(e,t,r,n){var a,i,o;switch(r){case Sr:case Pt:case qt:case xt:case Qe:case ct:a=t.getTime()-e.getTime();break;case It:case et:case tt:case rt:a=(nt(t)-nt(e))*12+Dr(t)-Dr(e);break;default:throw new TypeError('Invalid units: "'+r+'"')}switch(r){case Sr:i=1;break;case Pt:i=1e3;break;case qt:i=1e3*60;break;case xt:i=1e3*60*60;break;case Qe:i=1e3*60*60*24;break;case ct:i=1e3*60*60*24*7;break;case It:i=1;break;case et:i=12;break;case tt:i=120;break;case rt:i=1200;break;default:throw new TypeError('Invalid units: "'+r+'"')}return o=a/i,n?o:Math.round(o)}function We(e){var t=(function(r){switch(r){case"Milliseconds":return 36e5;case"Seconds":return 3600;case"Minutes":return 60;case"Hours":return 1;default:return null}})(e);return function(r,n){if(n===void 0)return r["get"+e]();var a=new Date(r);return a["set"+e](n),t&&a["get"+e]()!=n&&(e==="Hours"||n>=t&&a.getHours()-r.getHours()<Math.floor(n/t))&&a["set"+e](n+t),a}}function gt(e){return function(t,r,n){return e(+ne(t,n),+ne(r,n))}}const $s=Object.freeze(Object.defineProperty({__proto__:null,add:_e,century:zd,date:dv,day:vv,decade:Wd,diff:Ud,endOf:Er,eq:zt,gt:Ar,gte:Ut,hours:$t,inRange:fv,lt:Ko,lte:ht,max:lv,milliseconds:Nt,min:cv,minutes:lt,month:Dr,neq:Uo,seconds:Lt,startOf:ne,subtract:kt,weekday:pv,year:nt},Symbol.toStringTag,{value:"Module"}));function Kd(e){if(Array.isArray(e))return qo(e)}function hv(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Gd(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 19In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cr(e){return Kd(e)||hv(e)||zo(e)||Gd()}var Zr,Fs;
vendor: 4,533 bytes, line 19
19function gv(){if(Fs)return Zr;Fs=1;function e(t,r,n){var a=-1,i=t.length;r<0&&(r=-r>i?0:i+r),n=n>i?i:n,n<0&&(n+=i),i=r>n?0:n-r>>>0,r>>>=0;for(var o=Array(i);++a<i;)o[a]=t[a+r];return o}return Zr=e,Zr}var Jr,js;function Kt(){if(js)return Jr;js=1;function e(t,r){return t===r||t!==t&&r!==r}return Jr=e,Jr}var Qr,Hs;function mv(){if(Hs)return Qr;Hs=1;var e=typeof nr=="object"&&nr&&nr.Object===Object&&nr;return Qr=e,Qr}var en,Bs;function Re(){if(Bs)return en;Bs=1;var e=mv(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return en=r,en}var tn,Ws;function mt(){if(Ws)return tn;Ws=1;var e=Re(),t=e.Symbol;return tn=t,tn}var rn,zs;function Yd(){if(zs)return rn;zs=1;var e=mt(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,a=e?e.toStringTag:void 0;function i(o){var s=r.call(o,a),u=o[a];try{o[a]=void 0;var c=!0}catch{}var l=n.call(o);return c&&(s?o[a]=u:delete o[a]),l}return rn=i,rn}var nn,Us;function Vd(){if(Us)return nn;Us=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return nn=r,nn}var an,Ks;function yt(){if(Ks)return an;Ks=1;var e=mt(),t=Yd(),r=Vd(),n="[object Null]",a="[object Undefined]",i=e?e.toStringTag:void 0;function o(s){return s==null?s===void 0?a:n:i&&i in Object(s)?t(s):r(s)}return an=o,an}var on,Gs;function Ie(){if(Gs)return on;Gs=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return on=e,on}var sn,Ys;function Go(){if(Ys)return sn;Ys=1;var e=yt(),t=Ie(),r="[object AsyncFunction]",n="[object Function]",a="[object GeneratorFunction]",i="[object Proxy]";function o(s){if(!t(s))return!1;var u=e(s);return u==n||u==a||u==r||u==i}return sn=o,sn}var un,Vs;function Yo(){if(Vs)return un;Vs=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return un=t,un}var cn,Xs;function Gt(){if(Xs)return cn;Xs=1;var e=Go(),t=Yo();function r(n){return n!=null&&t(n.length)&&!e(n)}return cn=r,cn}var ln,Zs;function Vo(){if(Zs)return ln;Zs=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,a){var i=typeof n;return a=a??e,!!a&&(i=="number"||i!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<a}return ln=r,ln}var fn,Js;function Cr(){if(Js)return fn;Js=1;var e=Kt(),t=Gt(),r=Vo(),n=Ie();function a(i,o,s){if(!n(s))return!1;var u=typeof o;return(u=="number"?t(s)&&r(o,s.length):u=="string"&&o in s)?e(s[o],i):!1}return fn=a,fn}var vn,Qs;function Xd(){if(Qs)return vn;Qs=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return vn=t,vn}var dn,eu;function Zd(){if(eu)return dn;eu=1;var e=Xd(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return dn=r,dn}var pn,tu;function ze(){if(tu)return pn;tu=1;function e(t){return t!=null&&typeof t=="object"}return pn=e,pn}var hn,ru;function Yt(){if(ru)return hn;ru=1;var e=yt(),t=ze(),r="[object Symbol]";function n(a){return typeof a=="symbol"||t(a)&&e(a)==r}return hn=n,hn}var gn,nu;function Jd(){if(nu)return gn;nu=1;var e=Zd(),t=Ie(),r=Yt(),n=NaN,a=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt;function u(c){if(typeof c=="number")return c;if(r(c))return n;if(t(c)){var l=typeof c.valueOf=="function"?c.valueOf():c;c=t(l)?l+"":l}if(typeof c!="string")return c===0?c:+c;c=e(c);var f=i.test(c);return f||o.test(c)?s(c.slice(2),f?2:8):a.test(c)?n:+c}return gn=u,gn}var mn,au;function yv(){if(au)return mn;au=1;var e=Jd(),t=1/0,r=17976931348623157e292;function n(a){if(!a)return a===0?a:0;if(a=e(a),a===t||a===-t){var i=a<0?-1:1;return i*r}return a===a?a:0}return mn=n,mn}var yn,iu;function bv(){if(iu)return yn;iu=1;var e=yv();function t(r){var n=e(r),a=n%1;return n===n?a?n-a:n:0}return yn=t,yn}var bn,ou;function Qd(){if(ou)return bn;ou=1;var e=gv(),t=Cr(),r=bv(),n=Math.ceil,a=Math.max;function i(o,s,u){(u?t(o,s,u):s===void 0)?s=1:s=a(r(s),0);var c=o==null?0:o.length;if(!c||s<1)return[];for(var l=0,f=0,v=Array(n(c/s));l<c;)v[f++]=e(o,l,l+=s);return v}return bn=i,bn}var ep=Qd();const tp=ye(ep);function Vt(e){return e&&e.ownerDocument||document}function rp(e){var t=Vt(e);return t&&t.defaultView||window}function np(e,t){return rp(e).getComputedStyle(e,t)}var ap=/([A-Z])/g;function ip(e){return e.replace(ap,"-$1").toLowerCase()}var op=/^ms-/;function ar(e){return ip(e).replace(op,"-ms-")}var sp=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function up(e){return!!(e&&sp.test(e))}function ut(e,t){var r="",n="";if(typeof t=="string")return e.style.getPropertyValue(ar(t))||np(e).getPropertyValue(ar(t));Object.keys(t).forEach(function(a){var i=t[a];
19!i&&i!==0?e.style.removeProperty(ar(a)):up(a)?n+=a+"("+i+") ":r+=ar(a)+": "+i+";"}),n&&(r+="transform: "+n+";"),e.style.cssText+=";"+r}function Ft(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}function cp(e){return"nodeType"in e&&e.nodeType===document.DOCUMENT_NODE}function Xo(e){return"window"in e&&e.window===e?e:cp(e)&&e.defaultView||!1}function wv(e){var t=e==="pageXOffset"?"scrollLeft":"scrollTop";function r(n,a){var i=Xo(n);if(a===void 0)return i?i[e]:n[t];i?i.scrollTo(i[e],a):n[t]=a}return r}const _v=wv("pageXOffset"),Sv=wv("pageYOffset");function Ze(e){var t=Vt(e),r={top:0,left:0,height:0,width:0},n=t&&t.documentElement;return!n||!Ft(n,e)||(e.getBoundingClientRect!==void 0&&(r=e.getBoundingClientRect()),r={top:r.top+Sv(n)-(n.clientTop||0),left:r.left+_v(n)-(n.clientLeft||0),width:r.width,height:r.height}),r}var lp=function(t){return!!t&&"offsetParent"in t};function fp(e){for(var t=Vt(e),r=e&&e.offsetParent;lp(r)&&r.nodeName!=="HTML"&&ut(r,"position")==="static";)r=r.offsetParent;return r||t.documentElement}var vp=function(t){return t.nodeName&&t.nodeName.toLowerCase()};function Ev(e,t){var r={top:0,left:0},n;if(ut(e,"position")==="fixed")n=e.getBoundingClientRect();else{var a=t||fp(e);n=Ze(e),vp(a)!=="html"&&(r=Ze(a));var i=String(ut(a,"borderTopWidth")||0);r.top+=parseInt(i,10)-Sv(a)||0;var o=String(ut(a,"borderLeftWidth")||0);r.left+=parseInt(o,10)-_v(a)||0}var s=String(ut(e,"marginTop")||0),u=String(ut(e,"marginLeft")||0);return Z({},n,{top:n.top-r.top-(parseInt(s,10)||0),left:n.left-r.left-(parseInt(u,10)||0)})}const Zo=!!(typeof window<"u"&&window.document&&window.document.createElement);var su=new Date().getTime();function dp(e){var t=new Date().getTime(),r=Math.max(0,16-(t-su)),n=setTimeout(e,r);return su=t,n}var pp=["","webkit","moz","o","ms"],xo="clearTimeout",Io=dp,uu=function(t,r){return t+(t?r[0].toUpperCase()+r.substr(1):r)+"AnimationFrame"};Zo&&pp.some(function(e){var t=uu(e,"request");return t in window&&(xo=uu(e,"cancel"),Io=function(n){return window[t](n)}),!!Io});var cu=function(t){typeof window[xo]=="function"&&window[xo](t)},Dv=Io,wn;function hp(e,t){if(!wn){var r=document.body,n=r.matches||r.matchesSelector||r.webkitMatchesSelector||r.mozMatchesSelector||r.msMatchesSelector;wn=function(i,o){return n.call(i,o)}}return wn(e,t)}var gp=Function.prototype.bind.call(Function.prototype.call,[].slice);function mp(e,t){return gp(e.querySelectorAll(t))}var ko=!1,No=!1;try{var _n={get passive(){return ko=!0},get once(){return No=ko=!0}};Zo&&(window.addEventListener("test",_n,_n),window.removeEventListener("test",_n,!0))}catch{}function yp(e,t,r,n){if(n&&typeof n!="boolean"&&!No){var a=n.once,i=n.capture,o=r;!No&&a&&(o=r.__once||function s(u){this.removeEventListener(t,s,i),r.call(this,u)},r.__once=o),e.addEventListener(t,o,ko?n:i)}e.addEventListener(t,r,n)}function bp(e){const t=F.useRef(e);return F.useEffect(()=>{t.current=e},[e]),t}function lu(e){const t=bp(e);return F.useCallback(function(...r){return t.current&&t.current(...r)},[t])}function fu(){return F.useState(null)}function wp(){const e=F.useRef(!0),t=F.useRef(()=>e.current);return F.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function _p(e){const t=wp();return[e[0],F.useCallback(r=>{if(t())return e[1](r)},[t,e[1]])]}var ce="top",ge="bottom",me="right",le="left",Jo="auto",Xt=[ce,ge,me,le],ft="start",jt="end",Sp="clippingParents",Ov="viewport",St="popper",Ep="reference",vu=Xt.reduce(function(e,t){return e.concat([t+"-"+ft,t+"-"+jt])},[]),Qo=[].concat(Xt,[Jo]).reduce(function(e,t){return e.concat([t,t+"-"+ft,t+"-"+jt])},[]),Dp="beforeRead",Op="read",Rp="afterRead",Tp="beforeMain",Ap="main",Cp="afterMain",Mp="beforeWrite",Pp="write",qp="afterWrite",xp=[Dp,Op,Rp,Tp,Ap,Cp,Mp,Pp,qp];function Ee(e){return e.split("-")[0]}function de(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function at(e){var t=de(e).Element;return e instanceof t||e instanceof Element}function De(e){var t=de(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function es(e){if(typeof ShadowRoot>"u")return!1;var t=de(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var Je=Math.max,Or=Math.min,vt=Math.round;function Lo(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Rv(){return!/^((?!chrome|android).)*safari/i.test(Lo())}function dt(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),a=1,i=1;t&&De(e)&&(a=e.offsetWidth>0&&vt(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&vt(n.height)/e.offsetHeight||1);
vendor: 15,564 bytes, line 19
19var o=at(e)?de(e):window,s=o.visualViewport,u=!Rv()&&r,c=(n.left+(u&&s?s.offsetLeft:0))/a,l=(n.top+(u&&s?s.offsetTop:0))/i,f=n.width/a,v=n.height/i;return{width:f,height:v,top:l,right:c+f,bottom:l+v,left:c,x:c,y:l}}function ts(e){var t=dt(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function Tv(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&es(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function He(e){return e?(e.nodeName||"").toLowerCase():null}function xe(e){return de(e).getComputedStyle(e)}function Ip(e){return["table","td","th"].indexOf(He(e))>=0}function Ue(e){return((at(e)?e.ownerDocument:e.document)||window.document).documentElement}function Mr(e){return He(e)==="html"?e:e.assignedSlot||e.parentNode||(es(e)?e.host:null)||Ue(e)}function du(e){return!De(e)||xe(e).position==="fixed"?null:e.offsetParent}function kp(e){var t=/firefox/i.test(Lo()),r=/Trident/i.test(Lo());if(r&&De(e)){var n=xe(e);if(n.position==="fixed")return null}var a=Mr(e);for(es(a)&&(a=a.host);De(a)&&["html","body"].indexOf(He(a))<0;){var i=xe(a);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return a;a=a.parentNode}return null}function Zt(e){for(var t=de(e),r=du(e);r&&Ip(r)&&xe(r).position==="static";)r=du(r);return r&&(He(r)==="html"||He(r)==="body"&&xe(r).position==="static")?t:r||kp(e)||t}function rs(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function At(e,t,r){return Je(e,Or(t,r))}function Np(e,t,r){var n=At(e,t,r);return n>r?r:n}function Av(){return{top:0,right:0,bottom:0,left:0}}function Cv(e){return Object.assign({},Av(),e)}function Mv(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var Lp=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Cv(typeof t!="number"?t:Mv(t,Xt))};function $p(e){var t,r=e.state,n=e.name,a=e.options,i=r.elements.arrow,o=r.modifiersData.popperOffsets,s=Ee(r.placement),u=rs(s),c=[le,me].indexOf(s)>=0,l=c?"height":"width";if(!(!i||!o)){var f=Lp(a.padding,r),v=ts(i),d=u==="y"?ce:le,h=u==="y"?ge:me,p=r.rects.reference[l]+r.rects.reference[u]-o[u]-r.rects.popper[l],g=o[u]-r.rects.reference[u],y=Zt(i),m=y?u==="y"?y.clientHeight||0:y.clientWidth||0:0,_=p/2-g/2,b=f[d],E=m-v[l]-f[h],S=m/2-v[l]/2+_,D=At(b,S,E),T=u;r.modifiersData[n]=(t={},t[T]=D,t.centerOffset=D-S,t)}}function Fp(e){var t=e.state,r=e.options,n=r.element,a=n===void 0?"[data-popper-arrow]":n;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||Tv(t.elements.popper,a)&&(t.elements.arrow=a))}const jp={name:"arrow",enabled:!0,phase:"main",fn:$p,effect:Fp,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function pt(e){return e.split("-")[1]}var Hp={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Bp(e,t){var r=e.x,n=e.y,a=t.devicePixelRatio||1;return{x:vt(r*a)/a||0,y:vt(n*a)/a||0}}function pu(e){var t,r=e.popper,n=e.popperRect,a=e.placement,i=e.variation,o=e.offsets,s=e.position,u=e.gpuAcceleration,c=e.adaptive,l=e.roundOffsets,f=e.isFixed,v=o.x,d=v===void 0?0:v,h=o.y,p=h===void 0?0:h,g=typeof l=="function"?l({x:d,y:p}):{x:d,y:p};d=g.x,p=g.y;var y=o.hasOwnProperty("x"),m=o.hasOwnProperty("y"),_=le,b=ce,E=window;if(c){var S=Zt(r),D="clientHeight",T="clientWidth";if(S===de(r)&&(S=Ue(r),xe(S).position!=="static"&&s==="absolute"&&(D="scrollHeight",T="scrollWidth")),S=S,a===ce||(a===le||a===me)&&i===jt){b=ge;var O=f&&S===E&&E.visualViewport?E.visualViewport.height:S[D];p-=O-n.height,p*=u?1:-1}if(a===le||(a===ce||a===ge)&&i===jt){_=me;var C=f&&S===E&&E.visualViewport?E.visualViewport.width:S[T];d-=C-n.width,d*=u?1:-1}}var R=Object.assign({position:s},c&&Hp),I=l===!0?Bp({x:d,y:p},de(r)):{x:d,y:p};if(d=I.x,p=I.y,u){var P;return Object.assign({},R,(P={},P[b]=m?"0":"",P[_]=y?"0":"",P.transform=(E.devicePixelRatio||1)<=1?"translate("+d+"px, "+p+"px)":"translate3d("+d+"px, "+p+"px, 0)",P))}return Object.assign({},R,(t={},t[b]=m?p+"px":"",t[_]=y?d+"px":"",t.transform="",t))}function Wp(e){var t=e.state,r=e.options,n=r.gpuAcceleration,a=n===void 0?!0:n,i=r.adaptive,o=i===void 0?!0:i,s=r.roundOffsets,u=s===void 0?!0:s,c={placement:Ee(t.placement),variation:pt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,pu(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,pu(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const zp={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Wp,data:{}};var ir={passive:!0};function Up(e){var t=e.state,r=e.instance,n=e.options,a=n.scroll,i=a===void 0?!0:a,o=n.resize,s=o===void 0?!0:o,u=de(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(l){l.addEventListener("scroll",r.update,ir)}),s&&u.addEventListener("resize",r.update,ir),function(){i&&c.forEach(function(l){l.removeEventListener("scroll",r.update,ir)}),s&&u.removeEventListener("resize",r.update,ir)}}const Kp={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Up,data:{}};var Gp={left:"right",right:"left",bottom:"top",top:"bottom"};function lr(e){return e.replace(/left|right|bottom|top/g,function(t){return Gp[t]})}var Yp={start:"end",end:"start"};function hu(e){return e.replace(/start|end/g,function(t){return Yp[t]})}function ns(e){var t=de(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function as(e){return dt(Ue(e)).left+ns(e).scrollLeft}function Vp(e,t){var r=de(e),n=Ue(e),a=r.visualViewport,i=n.clientWidth,o=n.clientHeight,s=0,u=0;if(a){i=a.width,o=a.height;var c=Rv();(c||!c&&t==="fixed")&&(s=a.offsetLeft,u=a.offsetTop)}return{width:i,height:o,x:s+as(e),y:u}}function Xp(e){var t,r=Ue(e),n=ns(e),a=(t=e.ownerDocument)==null?void 0:t.body,i=Je(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),o=Je(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),s=-n.scrollLeft+as(e),u=-n.scrollTop;return xe(a||r).direction==="rtl"&&(s+=Je(r.clientWidth,a?a.clientWidth:0)-i),{width:i,height:o,x:s,y:u}}function is(e){var t=xe(e),r=t.overflow,n=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+n)}function Pv(e){return["html","body","#document"].indexOf(He(e))>=0?e.ownerDocument.body:De(e)&&is(e)?e:Pv(Mr(e))}function Ct(e,t){var r;t===void 0&&(t=[]);var n=Pv(e),a=n===((r=e.ownerDocument)==null?void 0:r.body),i=de(n),o=a?[i].concat(i.visualViewport||[],is(n)?n:[]):n,s=t.concat(o);return a?s:s.concat(Ct(Mr(o)))}function $o(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Zp(e,t){var r=dt(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function gu(e,t,r){return t===Ov?$o(Vp(e,r)):at(t)?Zp(t,r):$o(Xp(Ue(e)))}function Jp(e){var t=Ct(Mr(e)),r=["absolute","fixed"].indexOf(xe(e).position)>=0,n=r&&De(e)?Zt(e):e;return at(n)?t.filter(function(a){return at(a)&&Tv(a,n)&&He(a)!=="body"}):[]}function Qp(e,t,r,n){var a=t==="clippingParents"?Jp(e):[].concat(t),i=[].concat(a,[r]),o=i[0],s=i.reduce(function(u,c){var l=gu(e,c,n);return u.top=Je(l.top,u.top),u.right=Or(l.right,u.right),u.bottom=Or(l.bottom,u.bottom),u.left=Je(l.left,u.left),u},gu(e,o,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function qv(e){var t=e.reference,r=e.element,n=e.placement,a=n?Ee(n):null,i=n?pt(n):null,o=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,u;switch(a){case ce:u={x:o,y:t.y-r.height};break;case ge:u={x:o,y:t.y+t.height};break;case me:u={x:t.x+t.width,y:s};break;case le:u={x:t.x-r.width,y:s};break;default:u={x:t.x,y:t.y}}var c=a?rs(a):null;if(c!=null){var l=c==="y"?"height":"width";switch(i){case ft:u[c]=u[c]-(t[l]/2-r[l]/2);break;case jt:u[c]=u[c]+(t[l]/2-r[l]/2);break}}return u}function Ht(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=n===void 0?e.placement:n,i=r.strategy,o=i===void 0?e.strategy:i,s=r.boundary,u=s===void 0?Sp:s,c=r.rootBoundary,l=c===void 0?Ov:c,f=r.elementContext,v=f===void 0?St:f,d=r.altBoundary,h=d===void 0?!1:d,p=r.padding,g=p===void 0?0:p,y=Cv(typeof g!="number"?g:Mv(g,Xt)),m=v===St?Ep:St,_=e.rects.popper,b=e.elements[h?m:v],E=Qp(at(b)?b:b.contextElement||Ue(e.elements.popper),u,l,o),S=dt(e.elements.reference),D=qv({reference:S,element:_,placement:a}),T=$o(Object.assign({},_,D)),O=v===St?T:S,C={top:E.top-O.top+y.top,bottom:O.bottom-E.bottom+y.bottom,left:E.left-O.left+y.left,right:O.right-E.right+y.right},R=e.modifiersData.offset;if(v===St&&R){var I=R[a];Object.keys(C).forEach(function(P){var L=[me,ge].indexOf(P)>=0?1:-1,j=[ce,ge].indexOf(P)>=0?"y":"x";C[P]+=I[j]*L})}return C}function eh(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=r.boundary,i=r.rootBoundary,o=r.padding,s=r.flipVariations,u=r.allowedAutoPlacements,c=u===void 0?Qo:u,l=pt(n),f=l?s?vu:vu.filter(function(h){return pt(h)===l}):Xt,v=f.filter(function(h){return c.indexOf(h)>=0});v.length===0&&(v=f);var d=v.reduce(function(h,p){return h[p]=Ht(e,{placement:p,boundary:a,rootBoundary:i,padding:o})[Ee(p)],h},{});return Object.keys(d).sort(function(h,p){return d[h]-d[p]})}function th(e){if(Ee(e)===Jo)return[];var t=lr(e);return[hu(e),t,hu(t)]}function rh(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var a=r.mainAxis,i=a===void 0?!0:a,o=r.altAxis,s=o===void 0?!0:o,u=r.fallbackPlacements,c=r.padding,l=r.boundary,f=r.rootBoundary,v=r.altBoundary,d=r.flipVariations,h=d===void 0?!0:d,p=r.allowedAutoPlacements,g=t.options.placement,y=Ee(g),m=y===g,_=u||(m||!h?[lr(g)]:th(g)),b=[g].concat(_).reduce(function(k,N){return k.concat(Ee(N)===Jo?eh(t,{placement:N,boundary:l,rootBoundary:f,padding:c,flipVariations:h,allowedAutoPlacements:p}):N)},[]),E=t.rects.reference,S=t.rects.popper,D=new Map,T=!0,O=b[0],C=0;C<b.length;C++){var R=b[C],I=Ee(R),P=pt(R)===ft,L=[ce,ge].indexOf(I)>=0,j=L?"width":"height",$=Ht(t,{placement:R,boundary:l,rootBoundary:f,altBoundary:v,padding:c}),H=L?P?me:le:P?ge:ce;E[j]>S[j]&&(H=lr(H));var Y=lr(H),X=[];if(i&&X.push($[I]<=0),s&&X.push($[H]<=0,$[Y]<=0),X.every(function(k){return k})){O=R,T=!1;break}D.set(R,X)}if(T)for(var te=h?3:1,A=function(N){var B=b.find(function(K){var z=D.get(K);if(z)return z.slice(0,N).every(function(ve){return ve})});if(B)return O=B,"break"},M=te;M>0;M--){var x=A(M);if(x==="break")break}t.placement!==O&&(t.modifiersData[n]._skip=!0,t.placement=O,t.reset=!0)}}const nh={name:"flip",enabled:!0,phase:"main",fn:rh,requiresIfExists:["offset"],data:{_skip:!1}};function mu(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function yu(e){return[ce,me,ge,le].some(function(t){return e[t]>=0})}function ah(e){var t=e.state,r=e.name,n=t.rects.reference,a=t.rects.popper,i=t.modifiersData.preventOverflow,o=Ht(t,{elementContext:"reference"}),s=Ht(t,{altBoundary:!0}),u=mu(o,n),c=mu(s,a,i),l=yu(u),f=yu(c);t.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:l,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":f})}const ih={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ah};function oh(e,t,r){var n=Ee(e),a=[le,ce].indexOf(n)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,o=i[0],s=i[1];return o=o||0,s=(s||0)*a,[le,me].indexOf(n)>=0?{x:s,y:o}:{x:o,y:s}}function sh(e){var t=e.state,r=e.options,n=e.name,a=r.offset,i=a===void 0?[0,0]:a,o=Qo.reduce(function(l,f){return l[f]=oh(f,t.rects,i),l},{}),s=o[t.placement],u=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=o}const uh={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:sh};function ch(e){var t=e.state,r=e.name;t.modifiersData[r]=qv({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const lh={name:"popperOffsets",enabled:!0,phase:"read",fn:ch,data:{}};function fh(e){return e==="x"?"y":"x"}function vh(e){var t=e.state,r=e.options,n=e.name,a=r.mainAxis,i=a===void 0?!0:a,o=r.altAxis,s=o===void 0?!1:o,u=r.boundary,c=r.rootBoundary,l=r.altBoundary,f=r.padding,v=r.tether,d=v===void 0?!0:v,h=r.tetherOffset,p=h===void 0?0:h,g=Ht(t,{boundary:u,rootBoundary:c,padding:f,altBoundary:l}),y=Ee(t.placement),m=pt(t.placement),_=!m,b=rs(y),E=fh(b),S=t.modifiersData.popperOffsets,D=t.rects.reference,T=t.rects.popper,O=typeof p=="function"?p(Object.assign({},t.rects,{placement:t.placement})):p,C=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,I={x:0,y:0};if(S){if(i){var P,L=b==="y"?ce:le,j=b==="y"?ge:me,$=b==="y"?"height":"width",H=S[b],Y=H+g[L],X=H-g[j],te=d?-T[$]/2:0,A=m===ft?D[$]:T[$],M=m===ft?-T[$]:-D[$],x=t.elements.arrow,k=d&&x?ts(x):{width:0,height:0},N=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Av(),B=N[L],K=N[j],z=At(0,D[$],k[$]),ve=_?D[$]/2-te-z-B-C.mainAxis:A-z-B-C.mainAxis,ke=_?-D[$]/2+te+z+K+C.mainAxis:M+z+K+C.mainAxis,Te=t.elements.arrow&&Zt(t.elements.arrow),Ke=Te?b==="y"?Te.clientTop||0:Te.clientLeft||0:0,st=(P=R==null?void 0:R[b])!=null?P:0,wt=H+ve-st-Ke,U=H+ke-st,Ge=At(d?Or(Y,wt):Y,H,d?Je(X,U):X);S[b]=Ge,I[b]=Ge-H}if(s){var W,Ne=b==="x"?ce:le,Le=b==="x"?ge:me,Ae=S[E],Ce=E==="y"?"height":"width",we=Ae+g[Ne],re=Ae-g[Le],$e=[ce,le].indexOf(y)!==-1,Ye=(W=R==null?void 0:R[E])!=null?W:0,rr=$e?we:Ae-D[Ce]-T[Ce]-Ye+C.altAxis,_t=$e?Ae+D[Ce]+T[Ce]-Ye-C.altAxis:re,Me=d&&$e?Np(rr,Ae,_t):At(d?rr:we,Ae,d?_t:re);S[E]=Me,I[E]=Me-Ae}t.modifiersData[n]=I}}const dh={name:"preventOverflow",enabled:!0,phase:"main",fn:vh,requiresIfExists:["offset"]};function ph(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function hh(e){return e===de(e)||!De(e)?ns(e):ph(e)}function gh(e){var t=e.getBoundingClientRect(),r=vt(t.width)/e.offsetWidth||1,n=vt(t.height)/e.offsetHeight||1;return r!==1||n!==1}function mh(e,t,r){r===void 0&&(r=!1);var n=De(t),a=De(t)&&gh(t),i=Ue(t),o=dt(e,a,r),s={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!r)&&((He(t)!=="body"||is(i))&&(s=hh(t)),De(t)?(u=dt(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):i&&(u.x=as(i))),{x:o.left+s.scrollLeft-u.x,y:o.top+s.scrollTop-u.y,width:o.width,height:o.height}}function yh(e){var t=new Map,r=new Set,n=[];e.forEach(function(i){t.set(i.name,i)});function a(i){r.add(i.name);var o=[].concat(i.requires||[],i.requiresIfExists||[]);o.forEach(function(s){if(!r.has(s)){var u=t.get(s);u&&a(u)}}),n.push(i)}return e.forEach(function(i){r.has(i.name)||a(i)}),n}function bh(e){var t=yh(e);return xp.reduce(function(r,n){return r.concat(t.filter(function(a){return a.phase===n}))},[])}function wh(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}
19function _h(e){var t=e.reduce(function(r,n){var a=r[n.name];return r[n.name]=a?Object.assign({},a,n,{options:Object.assign({},a.options,n.options),data:Object.assign({},a.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var bu={placement:"bottom",modifiers:[],strategy:"absolute"};function wu(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function Sh(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,a=t.defaultOptions,i=a===void 0?bu:a;return function(s,u,c){c===void 0&&(c=i);var l={placement:"bottom",orderedModifiers:[],options:Object.assign({},bu,i),modifiersData:{},elements:{reference:s,popper:u},attributes:{},styles:{}},f=[],v=!1,d={state:l,setOptions:function(y){var m=typeof y=="function"?y(l.options):y;p(),l.options=Object.assign({},i,l.options,m),l.scrollParents={reference:at(s)?Ct(s):s.contextElement?Ct(s.contextElement):[],popper:Ct(u)};var _=bh(_h([].concat(n,l.options.modifiers)));return l.orderedModifiers=_.filter(function(b){return b.enabled}),h(),d.update()},forceUpdate:function(){if(!v){var y=l.elements,m=y.reference,_=y.popper;if(wu(m,_)){l.rects={reference:mh(m,Zt(_),l.options.strategy==="fixed"),popper:ts(_)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach(function(C){return l.modifiersData[C.name]=Object.assign({},C.data)});for(var b=0;b<l.orderedModifiers.length;b++){if(l.reset===!0){l.reset=!1,b=-1;continue}var E=l.orderedModifiers[b],S=E.fn,D=E.options,T=D===void 0?{}:D,O=E.name;typeof S=="function"&&(l=S({state:l,options:T,name:O,instance:d})||l)}}}},update:wh(function(){return new Promise(function(g){d.forceUpdate(),g(l)})}),destroy:function(){p(),v=!0}};if(!wu(s,u))return d;d.setOptions(c).then(function(g){!v&&c.onFirstUpdate&&c.onFirstUpdate(g)});function h(){l.orderedModifiers.forEach(function(g){var y=g.name,m=g.options,_=m===void 0?{}:m,b=g.effect;if(typeof b=="function"){var E=b({state:l,name:y,instance:d,options:_}),S=function(){};f.push(E||S)}})}function p(){f.forEach(function(g){return g()}),f=[]}return d}}var Eh=Sh({defaultModifiers:[ih,lh,zp,Kp,uh,nh,dh,jp]}),_u=function(t){return{position:t,top:"0",left:"0",opacity:"0",pointerEvents:"none"}},Dh={name:"applyStyles",enabled:!1},Oh={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:function(t){var r=t.state;return function(){var n=r.elements,a=n.reference,i=n.popper;if("removeAttribute"in a){var o=(a.getAttribute("aria-describedby")||"").split(",").filter(function(s){return s.trim()!==i.id});o.length?a.setAttribute("aria-describedby",o.join(",")):a.removeAttribute("aria-describedby")}}},fn:function(t){var r,n=t.state,a=n.elements,i=a.popper,o=a.reference,s=(r=i.getAttribute("role"))==null?void 0:r.toLowerCase();if(i.id&&s==="tooltip"&&"setAttribute"in o){var u=o.getAttribute("aria-describedby");if(u&&u.split(",").indexOf(i.id)!==-1)return;o.setAttribute("aria-describedby",u?u+","+i.id:i.id)}}},Rh=[];function Th(e,t,r){var n=r===void 0?{}:r,a=n.enabled,i=a===void 0?!0:a,o=n.placement,s=o===void 0?"bottom":o,u=n.strategy,c=u===void 0?"absolute":u,l=n.modifiers,f=l===void 0?Rh:l,v=Tr(n,["enabled","placement","strategy","modifiers"]),d=F.useRef(),h=F.useCallback(function(){var b;(b=d.current)==null||b.update()},[]),p=F.useCallback(function(){var b;(b=d.current)==null||b.forceUpdate()},[]),g=_p(F.useState({placement:s,update:h,forceUpdate:p,attributes:{},styles:{popper:_u(c),arrow:{}}})),y=g[0],m=g[1],_=F.useMemo(function(){return{name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:function(E){var S=E.state,D={},T={};Object.keys(S.elements).forEach(function(O){D[O]=S.styles[O],T[O]=S.attributes[O]}),m({state:S,styles:D,attributes:T,update:h,forceUpdate:p,placement:S.placement})}}},[h,p,m]);return F.useEffect(function(){!d.current||!i||d.current.setOptions({placement:s,strategy:c,modifiers:[].concat(f,[_,Dh])})},[c,s,_,i]),F.useEffect(function(){if(!(!i||e==null||t==null))return d.current=Eh(e,t,Z({},v,{placement:s,strategy:c,modifiers:[].concat(f,[Oh,_])})),function(){d.current!=null&&(d.current.destroy(),d.current=void 0,m(function(b){return Z({},b,{attributes:{},styles:{popper:_u(c)}})}))}},[i,e,t]),y}function Ah(e,t,r,n){var a=n&&typeof n!="boolean"?n.capture:n;e.removeEventListener(t,r,a),r.__once&&e.removeEventListener(t,r.__once,a)}function Dt(e,t,r,n){return yp(e,t,r,n),function(){Ah(e,t,r,n)}}var Sn,Su;function Ch(){if(Su)return Sn;Su=1;var e=function(){};return Sn=e,Sn}var Mh=Ch();const Ph=ye(Mh);function qh(e){return e&&"setState"in e?ev.findDOMNode(e):e??null}const xh=(function(e){return Vt(qh(e))});var Ih=27,Eu=function(){};function kh(e){return e.button===0}function Nh(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var Du=function(t){return t&&("current"in t?t.current:t)};function Lh(e,t,r){var n=r===void 0?{}:r,a=n.disabled,i=n.clickTrigger,o=i===void 0?"click":i,s=F.useRef(!1),u=t||Eu,c=F.useCallback(function(v){var d,h=Du(e);Ph(!!h,"RootClose captured a close event but does not have a ref to compare it to. useRootClose(), should be passed a ref that resolves to a DOM node"),s.current=!h||Nh(v)||!kh(v)||!!Ft(h,(d=v.composedPath==null?void 0:v.composedPath()[0])!=null?d:v.target)},[e]),l=lu(function(v){s.current||u(v)}),f=lu(function(v){v.keyCode===Ih&&u(v)});F.useEffect(function(){if(!(a||e==null)){var v=window.event,d=xh(Du(e)),h=Dt(d,o,c,!0),p=Dt(d,o,function(m){if(m===v){v=void 0;return}l(m)}),g=Dt(d,"keyup",function(m){if(m===v){v=void 0;return}f(m)}),y=[];return"ontouchstart"in d.documentElement&&(y=[].slice.call(d.body.children).map(function(m){return Dt(m,"mousemove",Eu)}
19)),function(){h(),p(),g(),y.forEach(function(m){return m()})}}},[e,a,o,c,l,f])}function $h(e){var t={};return Array.isArray(e)?(e==null||e.forEach(function(r){t[r.name]=r}),t):e||t}function Fh(e){return e===void 0&&(e={}),Array.isArray(e)?e:Object.keys(e).map(function(t){return e[t].name=t,e[t]})}function jh(e){var t,r,n,a,i=e.enabled,o=e.enableEvents,s=e.placement,u=e.flip,c=e.offset,l=e.fixed,f=e.containerPadding,v=e.arrowElement,d=e.popperConfig,h=d===void 0?{}:d,p=$h(h.modifiers);return Z({},h,{placement:s,enabled:i,strategy:l?"fixed":h.strategy,modifiers:Fh(Z({},p,{eventListeners:{enabled:o},preventOverflow:Z({},p.preventOverflow,{options:f?Z({padding:f},(t=p.preventOverflow)==null?void 0:t.options):(r=p.preventOverflow)==null?void 0:r.options}),offset:{options:Z({offset:c},(n=p.offset)==null?void 0:n.options)},arrow:Z({},p.arrow,{enabled:!!v,options:Z({},(a=p.arrow)==null?void 0:a.options,{element:v})}),flip:Z({enabled:!!u},p.flip)}))})}function Hh(e,t){return e.classList?e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Bh(e,t){e.classList?e.classList.add(t):Hh(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}
19function Ou(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Wh(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Ou(e.className,t):e.setAttribute("class",Ou(e.className&&e.className.baseVal||"",t))}var or;function os(e){if((!or&&or!==0||e)&&Zo){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),or=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return or}var En=function(t){var r;return typeof document>"u"?null:t==null?Vt().body:(typeof t=="function"&&(t=t()),t&&"current"in t&&(t=t.current),(r=t)!=null&&r.nodeType&&t||null)};function Ru(e,t){var r=F.useState(function(){return En(e)}),n=r[0],a=r[1];if(!n){var i=En(e);i&&a(i)}return F.useEffect(function(){},[t,n]),F.useEffect(function(){var o=En(e);o!==n&&a(o)},[e,n]),n}const Tu=e=>!e||typeof e=="function"?e:t=>{e.current=t};function zh(e,t){const r=Tu(e),n=Tu(t);return a=>{r&&r(a),n&&n(a)}}function Uh(e,t){return F.useMemo(()=>zh(e,t),[e,t])}var ss=w.forwardRef(function(e,t){var r=e.flip,n=e.offset,a=e.placement,i=e.containerPadding,o=i===void 0?5:i,s=e.popperConfig,u=s===void 0?{}:s,c=e.transition,l=fu(),f=l[0],v=l[1],d=fu(),h=d[0],p=d[1],g=Uh(v,t),y=Ru(e.container),m=Ru(e.target),_=F.useState(!e.show),b=_[0],E=_[1],S=Th(m,f,jh({placement:a,enableEvents:!!e.show,containerPadding:o||5,flip:r,offset:n,arrowElement:h,popperConfig:u})),D=S.styles,T=S.attributes,O=Tr(S,["styles","attributes"]);e.show?b&&E(!1):!e.transition&&!b&&E(!0);var C=function(){E(!0),e.onExited&&e.onExited.apply(e,arguments)},R=e.show||c&&!b;if(Lh(f,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!R)return null;var I=e.children(Z({},O,{show:!!e.show,props:Z({},T.popper,{style:D.popper,ref:g}),arrowProps:Z({},T.arrow,{style:D.arrow,ref:p})}));if(c){var P=e.onExit,L=e.onExiting,j=e.onEnter,$=e.onEntering,H=e.onEntered;I=w.createElement(c,{in:e.show,appear:!0,onExit:P,onExiting:L,onExited:C,onEnter:j,onEntering:$,onEntered:H},I)}return y?ev.createPortal(I,y):null});ss.displayName="Overlay";ss.propTypes={show:q.bool,placement:q.oneOf(Qo),target:q.any,container:q.any,flip:q.bool,children:q.func.isRequired,containerPadding:q.number,popperConfig:q.object,rootClose:q.bool,rootCloseEvent:q.oneOf(["click","mousedown"]),rootCloseDisabled:q.bool,onHide:function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];if(t.rootClose){var i;return(i=q.func).isRequired.apply(i,[t].concat(n))}return q.func.apply(q,[t].concat(n))},transition:q.elementType,onEnter:q.func,onEntering:q.func,onEntered:q.func,onExit:q.func,onExiting:q.func,onExited:q.func};var Dn,Au;function Kh(){if(Au)return Dn;Au=1;function e(){this.__data__=[],this.size=0}return Dn=e,Dn}var On,Cu;function Pr(){if(Cu)return On;Cu=1;var e=Kt();function t(r,n){for(var a=r.length;a--;)if(e(r[a][0],n))return a;return-1}return On=t,On}var Rn,Mu;function Gh(){if(Mu)return Rn;Mu=1;var e=Pr(),t=Array.prototype,r=t.splice;function n(a){var i=this.__data__,o=e(i,a);if(o<0)return!1;var s=i.length-1;return o==s?i.pop():r.call(i,o,1),--this.size,!0}return Rn=n,Rn}var Tn,Pu;function Yh(){if(Pu)return Tn;Pu=1;var e=Pr();function t(r){var n=this.__data__,a=e(n,r);return a<0?void 0:n[a][1]}return Tn=t,Tn}var An,qu;function Vh(){if(qu)return An;qu=1;var e=Pr();function t(r){return e(this.__data__,r)>-1}return An=t,An}var Cn,xu;function Xh(){if(xu)return Cn;xu=1;var e=Pr();function t(r,n){var a=this.__data__,i=e(a,r);return i<0?(++this.size,a.push([r,n])):a[i][1]=n,this}return Cn=t,Cn}var Mn,Iu;function qr(){if(Iu)return Mn;Iu=1;var e=Kh(),t=Gh(),r=Yh(),n=Vh(),a=Xh();function i(o){var s=-1,u=o==null?0:o.length;for(this.clear();++s<u;){var c=o[s];this.set(c[0],c[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=n,i.prototype.set=a,Mn=i,Mn}var Pn,ku;function Zh(){if(ku)return Pn;ku=1;var e=qr();function t(){this.__data__=new e,this.size=0}return Pn=t,Pn}var qn,Nu;function Jh(){if(Nu)return qn;Nu=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return qn=e,qn}var xn,Lu;function Qh(){if(Lu)return xn;Lu=1;function e(t){return this.__data__.get(t)}return xn=e,xn}var In,$u;function eg(){if($u)return In;$u=1;function e(t){return this.__data__.has(t)}return In=e,In}var kn,Fu;function tg(){if(Fu)return kn;
vendor: 5,608 bytes, line 19
19Fu=1;var e=Re(),t=e["__core-js_shared__"];return kn=t,kn}var Nn,ju;function rg(){if(ju)return Nn;ju=1;var e=tg(),t=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!t&&t in n}return Nn=r,Nn}var Ln,Hu;function xv(){if(Hu)return Ln;Hu=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return Ln=r,Ln}var $n,Bu;function ng(){if(Bu)return $n;Bu=1;var e=Go(),t=rg(),r=Ie(),n=xv(),a=/[\\^$.*+?()[\]{}|]/g,i=/^\[object .+?Constructor\]$/,o=Function.prototype,s=Object.prototype,u=o.toString,c=s.hasOwnProperty,l=RegExp("^"+u.call(c).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function f(v){if(!r(v)||t(v))return!1;var d=e(v)?l:i;return d.test(n(v))}return $n=f,$n}var Fn,Wu;function ag(){if(Wu)return Fn;Wu=1;function e(t,r){return t==null?void 0:t[r]}return Fn=e,Fn}var jn,zu;function ot(){if(zu)return jn;zu=1;var e=ng(),t=ag();function r(n,a){var i=t(n,a);return e(i)?i:void 0}return jn=r,jn}var Hn,Uu;function us(){if(Uu)return Hn;Uu=1;var e=ot(),t=Re(),r=e(t,"Map");return Hn=r,Hn}var Bn,Ku;function xr(){if(Ku)return Bn;Ku=1;var e=ot(),t=e(Object,"create");return Bn=t,Bn}var Wn,Gu;function ig(){if(Gu)return Wn;Gu=1;var e=xr();function t(){this.__data__=e?e(null):{},this.size=0}return Wn=t,Wn}var zn,Yu;function og(){if(Yu)return zn;Yu=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return zn=e,zn}var Un,Vu;function sg(){if(Vu)return Un;Vu=1;var e=xr(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function a(i){var o=this.__data__;if(e){var s=o[i];return s===t?void 0:s}return n.call(o,i)?o[i]:void 0}return Un=a,Un}var Kn,Xu;function ug(){if(Xu)return Kn;Xu=1;var e=xr(),t=Object.prototype,r=t.hasOwnProperty;function n(a){var i=this.__data__;return e?i[a]!==void 0:r.call(i,a)}return Kn=n,Kn}var Gn,Zu;function cg(){if(Zu)return Gn;Zu=1;var e=xr(),t="__lodash_hash_undefined__";function r(n,a){var i=this.__data__;return this.size+=this.has(n)?0:1,i[n]=e&&a===void 0?t:a,this}return Gn=r,Gn}var Yn,Ju;function lg(){if(Ju)return Yn;Ju=1;var e=ig(),t=og(),r=sg(),n=ug(),a=cg();function i(o){var s=-1,u=o==null?0:o.length;for(this.clear();++s<u;){var c=o[s];this.set(c[0],c[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=n,i.prototype.set=a,Yn=i,Yn}var Vn,Qu;function fg(){if(Qu)return Vn;Qu=1;var e=lg(),t=qr(),r=us();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return Vn=n,Vn}var Xn,ec;function vg(){if(ec)return Xn;ec=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return Xn=e,Xn}var Zn,tc;function Ir(){if(tc)return Zn;tc=1;var e=vg();function t(r,n){var a=r.__data__;return e(n)?a[typeof n=="string"?"string":"hash"]:a.map}return Zn=t,Zn}var Jn,rc;function dg(){if(rc)return Jn;rc=1;var e=Ir();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return Jn=t,Jn}var Qn,nc;function pg(){if(nc)return Qn;nc=1;var e=Ir();function t(r){return e(this,r).get(r)}return Qn=t,Qn}var ea,ac;function hg(){if(ac)return ea;ac=1;var e=Ir();function t(r){return e(this,r).has(r)}return ea=t,ea}var ta,ic;function gg(){if(ic)return ta;ic=1;var e=Ir();function t(r,n){var a=e(this,r),i=a.size;return a.set(r,n),this.size+=a.size==i?0:1,this}return ta=t,ta}var ra,oc;function cs(){if(oc)return ra;oc=1;var e=fg(),t=dg(),r=pg(),n=hg(),a=gg();function i(o){var s=-1,u=o==null?0:o.length;for(this.clear();++s<u;){var c=o[s];this.set(c[0],c[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=n,i.prototype.set=a,ra=i,ra}var na,sc;function mg(){if(sc)return na;sc=1;var e=qr(),t=us(),r=cs(),n=200;function a(i,o){var s=this.__data__;if(s instanceof e){var u=s.__data__;if(!t||u.length<n-1)return u.push([i,o]),this.size=++s.size,this;s=this.__data__=new r(u)}return s.set(i,o),this.size=s.size,this}return na=a,na}var aa,uc;function ls(){if(uc)return aa;uc=1;var e=qr(),t=Zh(),r=Jh(),n=Qh(),a=eg(),i=mg();function o(s){var u=this.__data__=new e(s);this.size=u.size}return o.prototype.clear=t,o.prototype.delete=r,o.prototype.get=n,o.prototype.has=a,o.prototype.set=i,aa=o,aa}var ia,cc;function yg(){if(cc)return ia;cc=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return ia=t,ia}var oa,lc;function bg(){if(lc)return oa;lc=1;function e(t){return this.__data__.has(t)}return oa=e,oa}var sa,fc;function wg(){if(fc)return sa;fc=1;var e=cs(),t=yg(),r=bg();function n(a){var i=-1,o=a==null?0:a.length;for(this.__data__=new e;++i<o;)this.add(a[i])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,sa=n,sa}var ua,vc;function _g(){if(vc)return ua;vc=1;function e(t,r){for(var n=-1,a=t==null?0:t.length;++n<a;)if(r(t[n],n,t))return!0;return!1}return ua=e,ua}var ca,dc;function Sg(){if(dc)return ca;dc=1;function e(t,r){return t.has(r)}return ca=e,ca}var la,pc;function Iv(){if(pc)return la;pc=1;var e=wg(),t=_g(),r=Sg(),n=1,a=2;function i(o,s,u,c,l,f){var v=u&n,d=o.length,h=s.length;if(d!=h&&!(v&&h>d))return!1;var p=f.get(o),g=f.get(s);if(p&&g)return p==s&&g==o;var y=-1,m=!0,_=u&a?new e:void 0;for(f.set(o,s),f.set(s,o);++y<d;){var b=o[y],E=s[y];if(c)var S=v?c(E,b,y,s,o,f):c(b,E,y,o,s,f);if(S!==void 0){if(S)continue;m=!1;break}if(_){if(!t(s,function(D,T){if(!r(_,T)&&(b===D||l(b,D,u,c,f)))return _.push(T)})){m=!1;break}}else if(!(b===E||l(b,E,u,c,f))){m=!1;break}}return f.delete(o),f.delete(s),m}return la=i,la}var fa,hc;
vendor: 4,099 bytes, line 19
19function kv(){if(hc)return fa;hc=1;var e=Re(),t=e.Uint8Array;return fa=t,fa}var va,gc;function Eg(){if(gc)return va;gc=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(a,i){n[++r]=[i,a]}),n}return va=e,va}var da,mc;function Dg(){if(mc)return da;mc=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(a){n[++r]=a}),n}return da=e,da}var pa,yc;function Og(){if(yc)return pa;yc=1;var e=mt(),t=kv(),r=Kt(),n=Iv(),a=Eg(),i=Dg(),o=1,s=2,u="[object Boolean]",c="[object Date]",l="[object Error]",f="[object Map]",v="[object Number]",d="[object RegExp]",h="[object Set]",p="[object String]",g="[object Symbol]",y="[object ArrayBuffer]",m="[object DataView]",_=e?e.prototype:void 0,b=_?_.valueOf:void 0;function E(S,D,T,O,C,R,I){switch(T){case m:if(S.byteLength!=D.byteLength||S.byteOffset!=D.byteOffset)return!1;S=S.buffer,D=D.buffer;case y:return!(S.byteLength!=D.byteLength||!R(new t(S),new t(D)));case u:case c:case v:return r(+S,+D);case l:return S.name==D.name&&S.message==D.message;case d:case p:return S==D+"";case f:var P=a;case h:var L=O&o;if(P||(P=i),S.size!=D.size&&!L)return!1;var j=I.get(S);if(j)return j==D;O|=s,I.set(S,D);var $=n(P(S),P(D),O,C,R,I);return I.delete(S),$;case g:if(b)return b.call(S)==b.call(D)}return!1}return pa=E,pa}var ha,bc;function fs(){if(bc)return ha;bc=1;function e(t,r){for(var n=-1,a=r.length,i=t.length;++n<a;)t[i+n]=r[n];return t}return ha=e,ha}var ga,wc;function be(){if(wc)return ga;wc=1;var e=Array.isArray;return ga=e,ga}var ma,_c;function Nv(){if(_c)return ma;_c=1;var e=fs(),t=be();function r(n,a,i){var o=a(n);return t(n)?o:e(o,i(n))}return ma=r,ma}var ya,Sc;function Rg(){if(Sc)return ya;Sc=1;function e(t,r){for(var n=-1,a=t==null?0:t.length,i=0,o=[];++n<a;){var s=t[n];r(s,n,t)&&(o[i++]=s)}return o}return ya=e,ya}var ba,Ec;function Lv(){if(Ec)return ba;Ec=1;function e(){return[]}return ba=e,ba}var wa,Dc;function vs(){if(Dc)return wa;Dc=1;var e=Rg(),t=Lv(),r=Object.prototype,n=r.propertyIsEnumerable,a=Object.getOwnPropertySymbols,i=a?function(o){return o==null?[]:(o=Object(o),e(a(o),function(s){return n.call(o,s)}))}:t;return wa=i,wa}var _a,Oc;function Tg(){if(Oc)return _a;Oc=1;function e(t,r){for(var n=-1,a=Array(t);++n<t;)a[n]=r(n);return a}return _a=e,_a}var Sa,Rc;function Ag(){if(Rc)return Sa;Rc=1;var e=yt(),t=ze(),r="[object Arguments]";function n(a){return t(a)&&e(a)==r}return Sa=n,Sa}var Ea,Tc;function ds(){if(Tc)return Ea;Tc=1;var e=Ag(),t=ze(),r=Object.prototype,n=r.hasOwnProperty,a=r.propertyIsEnumerable,i=e((function(){return arguments})())?e:function(o){return t(o)&&n.call(o,"callee")&&!a.call(o,"callee")};return Ea=i,Ea}var Ot={exports:{}},Da,Ac;function Cg(){if(Ac)return Da;Ac=1;function e(){return!1}return Da=e,Da}Ot.exports;var Cc;function kr(){return Cc||(Cc=1,(function(e,t){var r=Re(),n=Cg(),a=t&&!t.nodeType&&t,i=a&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===a,s=o?r.Buffer:void 0,u=s?s.isBuffer:void 0,c=u||n;e.exports=c})(Ot,Ot.exports)),Ot.exports}var Oa,Mc;function Mg(){if(Mc)return Oa;Mc=1;var e=yt(),t=Yo(),r=ze(),n="[object Arguments]",a="[object Array]",i="[object Boolean]",o="[object Date]",s="[object Error]",u="[object Function]",c="[object Map]",l="[object Number]",f="[object Object]",v="[object RegExp]",d="[object Set]",h="[object String]",p="[object WeakMap]",g="[object ArrayBuffer]",y="[object DataView]",m="[object Float32Array]",_="[object Float64Array]",b="[object Int8Array]",E="[object Int16Array]",S="[object Int32Array]",D="[object Uint8Array]",T="[object Uint8ClampedArray]",O="[object Uint16Array]",C="[object Uint32Array]",R={};R[m]=R[_]=R[b]=R[E]=R[S]=R[D]=R[T]=R[O]=R[C]=!0,R[n]=R[a]=R[g]=R[i]=R[y]=R[o]=R[s]=R[u]=R[c]=R[l]=R[f]=R[v]=R[d]=R[h]=R[p]=!1;function I(P){return r(P)&&t(P.length)&&!!R[e(P)]}return Oa=I,Oa}var Ra,Pc;function Nr(){if(Pc)return Ra;Pc=1;function e(t){return function(r){return t(r)}}return Ra=e,Ra}var Rt={exports:{}};Rt.exports;var qc;function ps(){return qc||(qc=1,(function(e,t){var r=mv(),n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===n,o=i&&r.process,s=(function(){try{var u=a&&a.require&&a.require("util").t
vendor: 3,645 bytes, line 19
19ypes;return u||o&&o.binding&&o.binding("util")}catch{}})();e.exports=s})(Rt,Rt.exports)),Rt.exports}var Ta,xc;function hs(){if(xc)return Ta;xc=1;var e=Mg(),t=Nr(),r=ps(),n=r&&r.isTypedArray,a=n?t(n):e;return Ta=a,Ta}var Aa,Ic;function $v(){if(Ic)return Aa;Ic=1;var e=Tg(),t=ds(),r=be(),n=kr(),a=Vo(),i=hs(),o=Object.prototype,s=o.hasOwnProperty;function u(c,l){var f=r(c),v=!f&&t(c),d=!f&&!v&&n(c),h=!f&&!v&&!d&&i(c),p=f||v||d||h,g=p?e(c.length,String):[],y=g.length;for(var m in c)(l||s.call(c,m))&&!(p&&(m=="length"||d&&(m=="offset"||m=="parent")||h&&(m=="buffer"||m=="byteLength"||m=="byteOffset")||a(m,y)))&&g.push(m);return g}return Aa=u,Aa}var Ca,kc;function gs(){if(kc)return Ca;kc=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,a=typeof n=="function"&&n.prototype||e;return r===a}return Ca=t,Ca}var Ma,Nc;function Fv(){if(Nc)return Ma;Nc=1;function e(t,r){return function(n){return t(r(n))}}return Ma=e,Ma}var Pa,Lc;function Pg(){if(Lc)return Pa;Lc=1;var e=Fv(),t=e(Object.keys,Object);return Pa=t,Pa}var qa,$c;function qg(){if($c)return qa;$c=1;var e=gs(),t=Pg(),r=Object.prototype,n=r.hasOwnProperty;function a(i){if(!e(i))return t(i);var o=[];for(var s in Object(i))n.call(i,s)&&s!="constructor"&&o.push(s);return o}return qa=a,qa}var xa,Fc;function Jt(){if(Fc)return xa;Fc=1;var e=$v(),t=qg(),r=Gt();function n(a){return r(a)?e(a):t(a)}return xa=n,xa}var Ia,jc;function jv(){if(jc)return Ia;jc=1;var e=Nv(),t=vs(),r=Jt();function n(a){return e(a,r,t)}return Ia=n,Ia}var ka,Hc;function xg(){if(Hc)return ka;Hc=1;var e=jv(),t=1,r=Object.prototype,n=r.hasOwnProperty;function a(i,o,s,u,c,l){var f=s&t,v=e(i),d=v.length,h=e(o),p=h.length;if(d!=p&&!f)return!1;for(var g=d;g--;){var y=v[g];if(!(f?y in o:n.call(o,y)))return!1}var m=l.get(i),_=l.get(o);if(m&&_)return m==o&&_==i;var b=!0;l.set(i,o),l.set(o,i);for(var E=f;++g<d;){y=v[g];var S=i[y],D=o[y];if(u)var T=f?u(D,S,y,o,i,l):u(S,D,y,i,o,l);if(!(T===void 0?S===D||c(S,D,s,u,l):T)){b=!1;break}E||(E=y=="constructor")}if(b&&!E){var O=i.constructor,C=o.constructor;O!=C&&"constructor"in i&&"constructor"in o&&!(typeof O=="function"&&O instanceof O&&typeof C=="function"&&C instanceof C)&&(b=!1)}return l.delete(i),l.delete(o),b}return ka=a,ka}var Na,Bc;function Ig(){if(Bc)return Na;Bc=1;var e=ot(),t=Re(),r=e(t,"DataView");return Na=r,Na}var La,Wc;function kg(){if(Wc)return La;Wc=1;var e=ot(),t=Re(),r=e(t,"Promise");return La=r,La}var $a,zc;function Ng(){if(zc)return $a;zc=1;var e=ot(),t=Re(),r=e(t,"Set");return $a=r,$a}var Fa,Uc;function Lg(){if(Uc)return Fa;Uc=1;var e=ot(),t=Re(),r=e(t,"WeakMap");return Fa=r,Fa}var ja,Kc;function Lr(){if(Kc)return ja;Kc=1;var e=Ig(),t=us(),r=kg(),n=Ng(),a=Lg(),i=yt(),o=xv(),s="[object Map]",u="[object Object]",c="[object Promise]",l="[object Set]",f="[object WeakMap]",v="[object DataView]",d=o(e),h=o(t),p=o(r),g=o(n),y=o(a),m=i;return(e&&m(new e(new ArrayBuffer(1)))!=v||t&&m(new t)!=s||r&&m(r.resolve())!=c||n&&m(new n)!=l||a&&m(new a)!=f)&&(m=function(_){var b=i(_),E=b==u?_.constructor:void 0,S=E?o(E):"";if(S)switch(S){case d:return v;case h:return s;case p:return c;case g:return l;case y:return f}return b}),ja=m,ja}var Ha,Gc;function $g(){if(Gc)return Ha;Gc=1;var e=ls(),t=Iv(),r=Og(),n=xg(),a=Lr(),i=be(),o=kr(),s=hs(),u=1,c="[object Arguments]",l="[object Array]",f="[object Object]",v=Object.prototype,d=v.hasOwnProperty;function h(p,g,y,m,_,b){var E=i(p),S=i(g),D=E?l:a(p),T=S?l:a(g);D=D==c?f:D,T=T==c?f:T;var O=D==f,C=T==f,R=D==T;if(R&&o(p)){if(!o(g))return!1;E=!0,O=!1}if(R&&!O)return b||(b=new e),E||s(p)?t(p,g,y,m,_,b):r(p,g,D,y,m,_,b);if(!(y&u)){var I=O&&d.call(p,"__wrapped__"),P=C&&d.call(g,"__wrapped__");
vendor: 11,374 bytes, line 19
19if(I||P){var L=I?p.value():p,j=P?g.value():g;return b||(b=new e),_(L,j,y,m,b)}}return R?(b||(b=new e),n(p,g,y,m,_,b)):!1}return Ha=h,Ha}var Ba,Yc;function ms(){if(Yc)return Ba;Yc=1;var e=$g(),t=ze();function r(n,a,i,o,s){return n===a?!0:n==null||a==null||!t(n)&&!t(a)?n!==n&&a!==a:e(n,a,i,o,r,s)}return Ba=r,Ba}var Wa,Vc;function Fg(){if(Vc)return Wa;Vc=1;var e=ms();function t(r,n){return e(r,n)}return Wa=t,Wa}var jg=Fg();const Hg=ye(jg);function za(e,t){var r=Xo(e);return r?r.innerHeight:Ze(e).height}function Hv(e,t,r){e.closest&&!r&&e.closest(t);var n=e;do{if(hp(n,t))return n;n=n.parentElement}while(n&&n!==r&&n.nodeType===document.ELEMENT_NODE);return null}var Ua,Xc;function Bg(){if(Xc)return Ua;Xc=1;function e(t,r,n,a){for(var i=t.length,o=n+(a?1:-1);a?o--:++o<i;)if(r(t[o],o,t))return o;return-1}return Ua=e,Ua}var Ka,Zc;function Wg(){if(Zc)return Ka;Zc=1;var e=ls(),t=ms(),r=1,n=2;function a(i,o,s,u){var c=s.length,l=c,f=!u;if(i==null)return!l;for(i=Object(i);c--;){var v=s[c];if(f&&v[2]?v[1]!==i[v[0]]:!(v[0]in i))return!1}for(;++c<l;){v=s[c];var d=v[0],h=i[d],p=v[1];if(f&&v[2]){if(h===void 0&&!(d in i))return!1}else{var g=new e;if(u)var y=u(h,p,d,i,o,g);if(!(y===void 0?t(p,h,r|n,u,g):y))return!1}}return!0}return Ka=a,Ka}var Ga,Jc;function Bv(){if(Jc)return Ga;Jc=1;var e=Ie();function t(r){return r===r&&!e(r)}return Ga=t,Ga}var Ya,Qc;function zg(){if(Qc)return Ya;Qc=1;var e=Bv(),t=Jt();function r(n){for(var a=t(n),i=a.length;i--;){var o=a[i],s=n[o];a[i]=[o,s,e(s)]}return a}return Ya=r,Ya}var Va,el;function Wv(){if(el)return Va;el=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return Va=e,Va}var Xa,tl;function Ug(){if(tl)return Xa;tl=1;var e=Wg(),t=zg(),r=Wv();function n(a){var i=t(a);return i.length==1&&i[0][2]?r(i[0][0],i[0][1]):function(o){return o===a||e(o,a,i)}}return Xa=n,Xa}var Za,rl;function ys(){if(rl)return Za;rl=1;var e=be(),t=Yt(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function a(i,o){if(e(i))return!1;var s=typeof i;return s=="number"||s=="symbol"||s=="boolean"||i==null||t(i)?!0:n.test(i)||!r.test(i)||o!=null&&i in Object(o)}return Za=a,Za}var Ja,nl;function Kg(){if(nl)return Ja;nl=1;var e=cs(),t="Expected a function";function r(n,a){if(typeof n!="function"||a!=null&&typeof a!="function")throw new TypeError(t);var i=function(){var o=arguments,s=a?a.apply(this,o):o[0],u=i.cache;if(u.has(s))return u.get(s);var c=n.apply(this,o);return i.cache=u.set(s,c)||u,c};return i.cache=new(r.Cache||e),i}return r.Cache=e,Ja=r,Ja}var Qa,al;function Gg(){if(al)return Qa;al=1;var e=Kg(),t=500;function r(n){var a=e(n,function(o){return i.size===t&&i.clear(),o}),i=a.cache;return a}return Qa=r,Qa}var ei,il;function Yg(){if(il)return ei;il=1;var e=Gg(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(a){var i=[];return a.charCodeAt(0)===46&&i.push(""),a.replace(t,function(o,s,u,c){i.push(u?c.replace(r,"$1"):s||o)}),i});return ei=n,ei}var ti,ol;function bs(){if(ol)return ti;ol=1;function e(t,r){for(var n=-1,a=t==null?0:t.length,i=Array(a);++n<a;)i[n]=r(t[n],n,t);return i}return ti=e,ti}var ri,sl;function Vg(){if(sl)return ri;sl=1;var e=mt(),t=bs(),r=be(),n=Yt(),a=e?e.prototype:void 0,i=a?a.toString:void 0;function o(s){if(typeof s=="string")return s;if(r(s))return t(s,o)+"";if(n(s))return i?i.call(s):"";var u=s+"";return u=="0"&&1/s==-1/0?"-0":u}return ri=o,ri}var ni,ul;function Xg(){if(ul)return ni;ul=1;var e=Vg();function t(r){return r==null?"":e(r)}return ni=t,ni}var ai,cl;function $r(){if(cl)return ai;cl=1;var e=be(),t=ys(),r=Yg(),n=Xg();function a(i,o){return e(i)?i:t(i,o)?[i]:r(n(i))}return ai=a,ai}var ii,ll;function Qt(){if(ll)return ii;ll=1;var e=Yt();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return ii=t,ii}var oi,fl;function Fr(){if(fl)return oi;fl=1;var e=$r(),t=Qt();function r(n,a){a=e(a,n);for(var i=0,o=a.length;n!=null&&i<o;)n=n[t(a[i++])];return i&&i==o?n:void 0}return oi=r,oi}var si,vl;function Zg(){if(vl)return si;vl=1;var e=Fr();function t(r,n,a){var i=r==null?void 0:e(r,n);return i===void 0?a:i}return si=t,si}var ui,dl;function Jg(){if(dl)return ui;dl=1;function e(t,r){return t!=null&&r in Object(t)}return ui=e,ui}var ci,pl;function Qg(){if(pl)return ci;pl=1;var e=$r(),t=ds(),r=be(),n=Vo(),a=Yo(),i=Qt();function o(s,u,c){u=e(u,s);for(var l=-1,f=u.length,v=!1;++l<f;){var d=i(u[l]);if(!(v=s!=null&&c(s,d)))break;s=s[d]}return v||++l!=f?v:(f=s==null?0:s.length,!!f&&a(f)&&n(d,f)&&(r(s)||t(s)))}return ci=o,ci}var li,hl;function em(){if(hl)return li;hl=1;var e=Jg(),t=Qg();function r(n,a){return n!=null&&t(n,a,e)}return li=r,li}var fi,gl;function tm(){if(gl)return fi;gl=1;var e=ms(),t=Zg(),r=em(),n=ys(),a=Bv(),i=Wv(),o=Qt(),s=1,u=2;function c(l,f){return n(l)&&a(f)?i(o(l),f):function(v){var d=t(v,l);return d===void 0&&d===f?r(v,l):e(f,d,s|u)}}return fi=c,fi}var vi,ml;function jr(){if(ml)return vi;ml=1;function e(t){return t}return vi=e,vi}var di,yl;function rm(){if(yl)return di;yl=1;function e(t){return function(r){return r==null?void 0:r[t]}}return di=e,di}var pi,bl;function nm(){if(bl)return pi;bl=1;var e=Fr();function t(r){return function(n){return e(n,r)}}return pi=t,pi}var hi,wl;function am(){if(wl)return hi;wl=1;var e=rm(),t=nm(),r=ys(),n=Qt();function a(i){return r(i)?e(n(i)):t(i)}return hi=a,hi}var gi,_l;function Hr(){if(_l)return gi;_l=1;var e=Ug(),t=tm(),r=jr(),n=be(),a=am();function i(o){return typeof o=="function"?o:o==null?r:typeof o=="object"?n(o)?t(o[0],o[1]):e(o):a(o)}return gi=i,gi}var mi,Sl;function im(){if(Sl)return mi;Sl=1;var e=Bg(),t=Hr(),r=bv(),n=Math.max;function a(i,o,s){var u=i==null?0:i.length;if(!u)return-1;var c=s==null?0:r(s);return c<0&&(c=n(u+c,0)),e(i,t(o,3),c)}return mi=a,mi}var om=im();const sm=ye(om);var yi,El;function um(){if(El)return yi;El=1;var e=Math.ceil,t=Math.max;function r(n,a,i,o){for(var s=-1,u=t(e((a-n)/(i||1)),0),c=Array(u);u--;)c[o?u:++s]=n,n+=i;return c}return yi=r,yi}var bi,Dl;function cm(){if(Dl)return bi;Dl=1;var e=um(),t=Cr(),r=yv();function n(a){return function(i,o,s){return s&&typeof s!="number"&&t(i,o,s)&&(o=s=void 0),i=r(i),o===void 0?(o=i,i=0):o=r(o),s=s===void 0?i<o?1:-1:r(s),e(i,o,s,a)}}return bi=n,bi}var wi,Ol;function lm(){if(Ol)return wi;Ol=1;var e=cm(),t=e();return wi=t,wi}var fm=lm();const vm=ye(fm);var Rl=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function dm(e,t){return!!(e===t||Rl(e)&&Rl(t))}function pm(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!dm(e[r],t[r]))return!1;return!0}function zv(e,t){t===void 0&&(t=pm);var r=null;function n(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];if(r&&r.lastThis===this&&t(a,r.lastArgs))return r.lastResult;var o=e.apply(this,a);return r={lastResult:o,lastArgs:a,lastThis:this},o}return n.clear=function(){r=null},n}function Fo(e,t){var r=Xo(e);return r?r.innerWidth:Ze(e).width}var _i,Tl;function hm(){if(Tl)return _i;Tl=1;var e=mt(),t=ds(),r=be(),n=e?e.isConcatSpreadable:void 0;function a(i){return r(i)||t(i)||!!(n&&i&&i[n])}return _i=a,_i}var Si,Al;function Uv(){if(Al)return Si;Al=1;var e=fs(),t=hm();function r(n,a,i,o,s){var u=-1,c=n.length;for(i||(i=t),s||(s=[]);++u<c;){var l=n[u];a>0&&i(l)?a>1?r(l,a-1,i,o,s):e(s,l):o||(s[s.length]=l)}return s}return Si=r,Si}var Ei,Cl;function gm(){if(Cl)return Ei;Cl=1;function e(t){return function(r,n,a){for(var i=-1,o=Object(r),s=a(r),u=s.length;u--;){var c=s[t?u:++i];if(n(o[c],c,o)===!1)break}return r}}return Ei=e,Ei}var Di,Ml;function mm(){if(Ml)return Di;Ml=1;var e=gm(),t=e();return Di=t,Di}var Oi,Pl;function ws(){if(Pl)return Oi;Pl=1;var e=mm(),t=Jt();function r(n,a){return n&&e(n,a,t)}return Oi=r,Oi}var Ri,ql;function ym(){if(ql)return Ri;ql=1;var e=Gt();function t(r,n){return function(a,i){if(a==null)return a;if(!e(a))return r(a,i);for(var o=a.length,s=n?o:-1,u=Object(a);(n?s--:++s<o)&&i(u[s],s,u)!==!1;);return a}}return Ri=t,Ri}var Ti,xl;function bm(){if(xl)return Ti;xl=1;var e=ws(),t=ym(),r=t(e);return Ti=r,Ti}var Ai,Il;function wm(){if(Il)return Ai;Il=1;var e=bm(),t=Gt();function r(n,a){var i=-1,o=t(n)?Array(n.length):[];return e(n,function(s,u,c){o[++i]=a(s,u,c)}),o}return Ai=r,Ai}var Ci,kl;function _m(){if(kl)return Ci;kl=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return Ci=e,Ci}var Mi,Nl;function Sm(){if(Nl)return Mi;Nl=1;var e=Yt();function t(r,n){if(r!==n){var a=r!==void 0,i=r===null,o=r===r,s=e(r),u=n!==void 0,c=n===null,l=n===n,f=e(n);if(!c&&!f&&!s&&r>n||s&&u&&l&&!c&&!f||i&&u&&l||!a&&l||!o)return 1;if(!i&&!s&&!f&&r<n||f&&a&&o&&!i&&!s||c&&a&&o||!u&&o||!l)return-1}return 0}return Mi=t,Mi}var Pi,Ll;function Em(){if(Ll)return Pi;Ll=1;var e=Sm();function t(r,n,a){for(var i=-1,o=r.criteria,s=n.criteria,u=o.length,c=a.length;++i<u;){var l=e(o[i],s[i]);if(l){if(i>=c)return l;var f=a[i];return l*(f=="desc"?-1:1)}}return r.index-n.index}return Pi=t,Pi}var qi,$l;function Dm(){if($l)return qi;$l=1;var e=bs(),t=Fr(),r=Hr(),n=wm(),a=_m(),i=Nr(),o=Em(),s=jr(),u=be();function c(l,f,v){f.length?f=e(f,function(p){return u(p)?function(g){return t(g,p.length===1?p[0]:p)}:p}):f=[s];var d=-1;f=e(f,i(r));var h=n(l,function(p,g,y){var m=e(f,function(_){return _(p)});return{criteria:m,index:++d,value:p}});return a(h,function(p,g){return o(p,g,v)})}return qi=c,qi}var xi,Fl;function Om(){if(Fl)return xi;Fl=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return xi=e,xi}var Ii,jl;function Kv(){if(jl)return Ii;jl=1;var e=Om(),t=Math.max;function r(n,a,i){return a=t(a===void 0?n.length-1:a,0),function(){for(var o=arguments,s=-1,u=t(o.length-a,0),c=Array(u);++s<u;)c[s]=o[a+s];s=-1;for(var l=Array(a+1);++s<a;)l[s]=o[s];return l[a]=i(c),e(n,this,l)}}return Ii=r,Ii}var ki,Hl;function Rm(){if(Hl)return ki;Hl=1;function e(t){return function(){return t}}return ki=e,ki}var Ni,Bl;function Gv(){if(Bl)return Ni;Bl=1;var e=ot(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return Ni=t,Ni}var Li,Wl;function Tm(){if(Wl)return Li;Wl=1;var e=Rm(),t=Gv(),r=jr(),n=t?function(a,i){return t(a,"toString",{configurable:!0,enumerable:!1,value:e(i),writable:!0})}:r;return Li=n,Li}var $i,zl;function Am(){if(zl)return $i;zl=1;var e=800,t=16,r=Date.now;function n(a){var i=0,o=0;return function(){var s=r(),u=t-(s-o);if(o=s,u>0){if(++i>=e)return arguments[0]}else i=0;return a.apply(void 0,arguments)}}return $i=n,$i}var Fi,Ul;function Yv(){if(Ul)return Fi;Ul=1;var e=Tm(),t=Am(),r=t(e);return Fi=r,Fi}var ji,Kl;function Vv(){if(Kl)return ji;Kl=1;var e=jr(),t=Kv(),r=Yv();function n(a,i){return r(t(a,i,e),a+"")}return ji=n,ji}var Hi,Gl;function Cm(){if(Gl)return Hi;Gl=1;var e=Uv(),t=Dm(),r=Vv(),n=Cr(),a=r(function(i,o){if(i==null)return[];var s=o.length;return s>1&&n(i,o[0],o[1])?o=[]:s>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),t(i,e(o,1),[])});return Hi=a,Hi}var Mm=Cm();const Pm=ye(Mm);function Xv(e){return tv(e)||hv(e)||zo(e)||rv()}var Bi,Yl;function qm(){if(Yl)return Bi;Yl=1;function e(t){var r=[];if(t!=null)for(var n in Object(t))r.push(n);return r}return Bi=e,Bi}var Wi,Vl;function xm(){if(Vl)return Wi;Vl=1;var e=Ie(),t=gs(),r=qm(),n=Object.prototype,a=n.hasOwnProperty;function i(o){if(!e(o))return r(o);var s=t(o),u=[];
19for(var c in o)c=="constructor"&&(s||!a.call(o,c))||u.push(c);return u}return Wi=i,Wi}var zi,Xl;function Br(){if(Xl)return zi;Xl=1;var e=$v(),t=xm(),r=Gt();function n(a){return r(a)?e(a,!0):t(a)}return zi=n,zi}var Ui,Zl;function Im(){if(Zl)return Ui;Zl=1;var e=Vv(),t=Kt(),r=Cr(),n=Br(),a=Object.prototype,i=a.hasOwnProperty,o=e(function(s,u){s=Object(s);var c=-1,l=u.length,f=l>2?u[2]:void 0;for(f&&r(u[0],u[1],f)&&(l=1);++c<l;)for(var v=u[c],d=n(v),h=-1,p=d.length;++h<p;){var g=d[h],y=s[g];(y===void 0||t(y,a[g])&&!i.call(s,g))&&(s[g]=v[g])}return s});return Ui=o,Ui}var km=Im();const Nm=ye(km);var Ki,Jl;function _s(){if(Jl)return Ki;Jl=1;var e=Gv();function t(r,n,a){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:a,writable:!0}):r[n]=a}return Ki=t,Ki}var Gi,Ql;function Lm(){if(Ql)return Gi;Ql=1;var e=_s(),t=ws(),r=Hr();function n(a,i){var o={};return i=r(i,3),t(a,function(s,u,c){e(o,u,i(s,u,c))}),o}return Gi=n,Gi}var $m=Lm();const Fm=ye($m);var Yi,ef;function Zv(){if(ef)return Yi;ef=1;function e(t,r){for(var n=-1,a=t==null?0:t.length;++n<a&&r(t[n],n,t)!==!1;);return t}return Yi=e,Yi}var Vi,tf;function Jv(){if(tf)return Vi;tf=1;var e=_s(),t=Kt(),r=Object.prototype,n=r.hasOwnProperty;function a(i,o,s){var u=i[o];(!(n.call(i,o)&&t(u,s))||s===void 0&&!(o in i))&&e(i,o,s)}return Vi=a,Vi}var Xi,rf;function er(){if(rf)return Xi;rf=1;var e=Jv(),t=_s();function r(n,a,i,o){var s=!i;i||(i={});for(var u=-1,c=a.length;++u<c;){var l=a[u],f=o?o(i[l],n[l],l,i,n):void 0;f===void 0&&(f=n[l]),s?t(i,l,f):e(i,l,f)}return i}return Xi=r,Xi}var Zi,nf;function jm(){if(nf)return Zi;nf=1;var e=er(),t=Jt();function r(n,a){return n&&e(a,t(a),n)}return Zi=r,Zi}var Ji,af;function Hm(){if(af)return Ji;af=1;var e=er(),t=Br();function r(n,a){return n&&e(a,t(a),n)}return Ji=r,Ji}var Tt={exports:{}};Tt.exports;var of;function Bm(){return of||(of=1,(function(e,t){var r=Re(),n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===n,o=i?r.Buffer:void 0,s=o?o.allocUnsafe:void 0;function u(c,l){if(l)return c.slice();var f=c.length,v=s?s(f):new c.constructor(f);return c.copy(v),v}e.exports=u})(Tt,Tt.exports)),Tt.exports}var Qi,sf;function Wm(){if(sf)return Qi;sf=1;function e(t,r){var n=-1,a=t.length;for(r||(r=Array(a));++n<a;)r[n]=t[n];return r}return Qi=e,Qi}var eo,uf;function zm(){if(uf)return eo;uf=1;var e=er(),t=vs();function r(n,a){return e(n,t(n),a)}return eo=r,eo}var to,cf;function Wr(){if(cf)return to;cf=1;var e=Fv(),t=e(Object.getPrototypeOf,Object);return to=t,to}var ro,lf;function Qv(){if(lf)return ro;lf=1;var e=fs(),t=Wr(),r=vs(),n=Lv(),a=Object.getOwnPropertySymbols,i=a?function(o){for(var s=[];o;)e(s,r(o)),o=t(o);return s}:n;return ro=i,ro}var no,ff;function Um(){if(ff)return no;ff=1;var e=er(),t=Qv();function r(n,a){return e(n,t(n),a)}return no=r,no}var ao,vf;function ed(){if(vf)return ao;vf=1;var e=Nv(),t=Qv(),r=Br();function n(a){return e(a,r,t)}return ao=n,ao}var io,df;function Km(){if(df)return io;df=1;var e=Object.prototype,t=e.hasOwnProperty;function r(n){var a=n.length,i=new n.constructor(a);return a&&typeof n[0]=="string"&&t.call(n,"index")&&(i.index=n.index,i.input=n.input),i}return io=r,io}var oo,pf;function Ss(){if(pf)return oo;pf=1;var e=kv();function t(r){var n=new r.constructor(r.byteLength);return new e(n).set(new e(r)),n}return oo=t,oo}var so,hf;function Gm(){if(hf)return so;hf=1;var e=Ss();function t(r,n){var a=n?e(r.buffer):r.buffer;return new r.constructor(a,r.byteOffset,r.byteLength)}return so=t,so}var uo,gf;function Ym(){if(gf)return uo;gf=1;var e=/\w*$/;function t(r){var n=new r.constructor(r.source,e.exec(r));return n.lastIndex=r.lastIndex,n}return uo=t,uo}var co,mf;function Vm(){if(mf)return co;mf=1;var e=mt(),t=e?e.prototype:void 0,r=t?t.valueOf:void 0;function n(a){return r?Object(r.call(a)):{}}return co=n,co}var lo,yf;function Xm(){if(yf)return lo;yf=1;var e=Ss();function t(r,n){var a=n?e(r.buffer):r.buffer;return new r.constructor(a,r.byteOffset,r.length)}return lo=t,lo}var fo,bf;function Zm(){if(bf)return fo;bf=1;var e=Ss(),t=Gm(),r=Ym(),n=Vm(),a=Xm(),i="[object Boolean]",o="[object Date]",s="[object Map]",u="[object Number]",c="[object RegExp]",l="[object Set]",f="[object String]",v="[object Symbol]",d="[object ArrayBuffer]",h="[object DataView]",p="[object Float32Array]",g="[object Float64Array
19]",y="[object Int8Array]",m="[object Int16Array]",_="[object Int32Array]",b="[object Uint8Array]",E="[object Uint8ClampedArray]",S="[object Uint16Array]",D="[object Uint32Array]";function T(O,C,R){var I=O.constructor;switch(C){case d:return e(O);case i:case o:return new I(+O);case h:return t(O,R);case p:case g:case y:case m:case _:case b:case E:case S:case D:return a(O,R);case s:return new I;case u:case f:return new I(O);case c:return r(O);case l:return new I;case v:return n(O)}}return fo=T,fo}var vo,wf;function td(){if(wf)return vo;wf=1;var e=Ie(),t=Object.create,r=(function(){function n(){}return function(a){if(!e(a))return{};if(t)return t(a);n.prototype=a;var i=new n;return n.prototype=void 0,i}})();return vo=r,vo}var po,_f;function Jm(){if(_f)return po;_f=1;var e=td(),t=Wr(),r=gs();function n(a){return typeof a.constructor=="function"&&!r(a)?e(t(a)):{}}return po=n,po}var ho,Sf;function Qm(){if(Sf)return ho;Sf=1;var e=Lr(),t=ze(),r="[object Map]";function n(a){return t(a)&&e(a)==r}return ho=n,ho}var go,Ef;function ey(){if(Ef)return go;Ef=1;var e=Qm(),t=Nr(),r=ps(),n=r&&r.isMap,a=n?t(n):e;return go=a,go}var mo,Df;function ty(){if(Df)return mo;Df=1;var e=Lr(),t=ze(),r="[object Set]";function n(a){return t(a)&&e(a)==r}return mo=n,mo}var yo,Of;function ry(){if(Of)return yo;Of=1;var e=ty(),t=Nr(),r=ps(),n=r&&r.isSet,a=n?t(n):e;return yo=a,yo}var bo,Rf;function ny(){if(Rf)return bo;Rf=1;var e=ls(),t=Zv(),r=Jv(),n=jm(),a=Hm(),i=Bm(),o=Wm(),s=zm(),u=Um(),c=jv(),l=ed(),f=Lr(),v=Km(),d=Zm(),h=Jm(),p=be(),g=kr(),y=ey(),m=Ie(),_=ry(),b=Jt(),E=Br(),S=1,D=2,T=4,O="[object Arguments]",C="[object Array]",R="[object Boolean]",I="[object Date]",P="[object Error]",L="[object Function]",j="[object GeneratorFunction]",$="[object Map]",H="[object Number]",Y="[object Object]",X="[object RegExp]",te="[object Set]",A="[object String]",M="[object Symbol]",x="[object WeakMap]",k="[object ArrayBuffer]",N="[object DataView]",B="[object Float32Array]",K="[object Float64Array]",z="[object Int8Array]",ve="[object Int16Array]",ke="[object Int32Array]",Te="[object Uint8Array]",Ke="[object Uint8ClampedArray]",st="[object Uint16Array]",wt="[object Uint32Array]",U={};U[O]=U[C]=U[k]=U[N]=U[R]=U[I]=U[B]=U[K]=U[z]=U[ve]=U[ke]=U[$]=U[H]=U[Y]=U[X]=U[te]=U[A]=U[M]=U[Te]=U[Ke]=U[st]=U[wt]=!0,U[P]=U[L]=U[x]=!1;function Ge(W,Ne,Le,Ae,Ce,we){var re,$e=Ne&S,Ye=Ne&D,rr=Ne&T;if(Le&&(re=Ce?Le(W,Ae,Ce,we):Le(W)),re!==void 0)return re;if(!m(W))return W;var _t=p(W);if(_t){if(re=v(W),!$e)return o(W,re)}else{var Me=f(W),Cs=Me==L||Me==j;if(g(W))return i(W,$e);if(Me==Y||Me==O||Cs&&!Ce){if(re=Ye||Cs?{}:h(W),!$e)return Ye?u(W,a(re,W)):s(W,n(re,W))}else{if(!U[Me])return Ce?W:{};re=d(W,Me,$e)}}we||(we=new e);var Ms=we.get(W);if(Ms)return Ms;we.set(W,re),_(W)?W.forEach(function(Fe){re.add(Ge(Fe,Ne,Le,Fe,W,we))}):y(W)&&W.forEach(function(Fe,Ve){re.set(Ve,Ge(Fe,Ne,Le,Ve,W,we))});var wd=rr?Ye?l:c:Ye?E:b,Ps=_t?void 0:wd(W);return t(Ps||W,function(Fe,Ve){Ps&&(Ve=Fe,Fe=W[Ve]),r(re,Ve,Ge(Fe,Ne,Le,Ve,W,we))}),re}return bo=Ge,bo}var wo,Tf;function ay(){if(Tf)return wo;Tf=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return wo=e,wo}var _o,Af;function iy(){if(Af)return _o;Af=1;var e=Fr(),t=gv();function r(n,a){return a.length<2?n:e(n,t(a,0,-1))}return _o=r,_o}var So,Cf;function oy(){if(Cf)return So;Cf=1;var e=$r(),t=ay(),r=iy(),n=Qt(),a=Object.prototype,i=a.hasOwnProperty;function o(s,u){u=e(u,s);var c=-1,l=u.length;if(!l)return!0;for(var f=s==null||typeof s!="object"&&typeof s!="function";++c<l;){var v=u[c];if(typeof v=="string"){if(v==="__proto__"&&!i.call(s,"__proto__"))return!1;if(v==="constructor"&&c+1<l&&typeof u[c+1]=="string"&&u[c+1]==="prototype"){if(f&&c===0)continue;return!1}}}var d=r(s,u);return d==null||delete d[n(t(u))]}return So=o,So}var Eo,Mf;function sy(){if(Mf)return Eo;Mf=1;var e=yt(),t=Wr(),r=ze(),n="[object Object]",a=Function.prototype,i=Object.prototype,o=a.toString,s=i.hasOwnProperty,u=o.call(Object);function c(l){if(!r(l)||e(l)!=n)return!1;var f=t(l);if(f===null)return!0;var v=s.call(f,"constructor")&&f.constructor;return typeof v=="function"&&v instanceof v&&o.call(v)==u}return Eo=c,Eo}var Do,Pf;function uy(){if(Pf)return Do;
19Pf=1;var e=sy();function t(r){return e(r)?void 0:r}return Do=t,Do}var Oo,qf;function cy(){if(qf)return Oo;qf=1;var e=Uv();function t(r){var n=r==null?0:r.length;return n?e(r,1):[]}return Oo=t,Oo}var Ro,xf;function ly(){if(xf)return Ro;xf=1;var e=cy(),t=Kv(),r=Yv();function n(a){return r(t(a,void 0,e),a+"")}return Ro=n,Ro}var To,If;function fy(){if(If)return To;If=1;var e=bs(),t=ny(),r=oy(),n=$r(),a=er(),i=uy(),o=ly(),s=ed(),u=1,c=2,l=4,f=o(function(v,d){var h={};if(v==null)return h;var p=!1;d=e(d,function(y){return y=n(y,v),p||(p=y.length>1),y}),a(v,s(v),h),p&&(h=t(h,u|c|l,i));for(var g=d.length;g--;)r(h,d[g]);return h});return To=f,To}var vy=fy();const dy=ye(vy);var Ao,kf;function py(){if(kf)return Ao;kf=1;var e=Zv(),t=td(),r=ws(),n=Hr(),a=Wr(),i=be(),o=kr(),s=Go(),u=Ie(),c=hs();function l(f,v,d){var h=i(f),p=h||o(f)||c(f);if(v=n(v,4),d==null){var g=f&&f.constructor;p?d=h?new g:[]:u(f)?d=s(g)?t(a(f)):{}:d={}}return(p?e:r)(f,function(y,m,_){return v(d,y,m,_)}),d}return Ao=l,Ao}var hy=py();const gy=ye(hy);var fr={exports:{}},my=fr.exports,Nf;function yy(){return Nf||(Nf=1,(function(e,t){(function(r,n){e.exports=n()})(my,(function(){return function(r,n,a){n.prototype.isBetween=function(i,o,s,u){var c=a(i),l=a(o),f=(u=u||"()")[0]==="(",v=u[1]===")";return(f?this.isAfter(c,s):!this.isBefore(c,s))&&(v?this.isBefore(l,s):!this.isAfter(l,s))||(f?this.isBefore(c,s):!this.isAfter(c,s))&&(v?this.isAfter(l,s):!this.isBefore(l,s))}}}))})(fr)),fr.exports}yy();var vr={exports:{}},by=vr.exports,Lf;function wy(){return Lf||(Lf=1,(function(e,t){(function(r,n){e.exports=n()})(by,(function(){return function(r,n){n.prototype.isSameOrAfter=function(a,i){return this.isSame(a,i)||this.isAfter(a,i)}}}))})(vr)),vr.exports}wy();var dr={exports:{}},_y=dr.exports,$f;function Sy(){return $f||($f=1,(function(e,t){(function(r,n){e.exports=n()})(_y,(function(){return function(r,n){n.prototype.isSameOrBefore=function(a,i){return this.isSame(a,i)||this.isBefore(a,i)}}}))})(dr)),dr.exports}Sy();var pr={exports:{}},Ey=pr.exports,Ff;function Dy(){return Ff||(Ff=1,(function(e,t){(function(r,n){e.exports=n()})(Ey,(function(){return function(r,n,a){var i=n.prototype,o=function(f){return f&&(f.indexOf?f:f.s)},s=function(f,v,d,h,p){var g=f.name?f:f.$locale(),y=o(g[v]),m=o(g[d]),_=y||m.map((function(E){return E.slice(0,h)}));if(!p)return _;var b=g.weekStart;return _.map((function(E,S){return _[(S+(b||0))%7]}))},u=function(){return a.Ls[a.locale()]},c=function(f,v){return f.formats[v]||(function(d){return d.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(h,p,g){return p||g.slice(1)}))})(f.formats[v.toUpperCase()])},l=function(){var f=this;return{months:function(v){return v?v.format("MMMM"):s(f,"months")},monthsShort:function(v){return v?v.format("MMM"):s(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(v){return v?v.format("dddd"):s(f,"weekdays")},weekdaysMin:function(v){return v?v.format("dd"):s(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(v){return v?v.format("ddd"):s(f,"weekdaysShort","weekdays",3)},longDateFormat:function(v){return c(f.$locale(),v)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};i.localeData=function(){return l.bind(this)()},a.localeData=function(){var f=u();return{firstDayOfWeek:function(){return f.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(v){return c(f,v)},meridiem:f.meridiem,ordinal:f.ordinal}},a.months=function(){return s(u(),"months")},a.monthsShort=function(){return s(u(),"monthsShort","months",3)},a.weekdays=function(f){return s(u(),"weekdays",null,null,f)},a.weekdaysShort=function(f){return s(u(),"weekdaysShort","weekdays",3,f)},a.weekdaysMin=function(f){return s(u(),"weekdaysMin","weekdays",2,f)}}}))})(pr)),pr.exports}Dy();var hr={exports:{}},Oy=hr.exports,jf;function Ry(){return jf||(jf=1,(function(e,t){(function(r,n){e.exports=n()})(Oy,(function(){var r={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(n,a,i){var o=a.prototype,s=o.format;i.en.formats=r,o.format=function(u){u===void 0&&(u="YYYY-MM-DDTHH:mm:ssZ");var c=this.$locale().formats,l=(function(f,v){return f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(d,h,p){var g=p&&p.toUpperCase();return h||v[p]||r[p]||v[g].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(y,m,_){return m||_.slice(1)}))}))})(u,c===void 0?{}:c);return s.call(this,l)}}}))})(hr)),hr.exports}Ry();var gr={exports:{}},Ty=gr.exports,Hf;function Ay(){return Hf||(Hf=1,(function(e,t){(function(r,n){e.exports=n()})(Ty,(function(){return function(r,n,a){var i=function(o,s){if(!s||!s.length||s.length===1&&!s[0]||s.length===1&&Array.isArray(s[0])&&!s[0].length)return null;var u;s.length===1&&s[0].length>0&&(s=s[0]),u=(s=s.filter((function(l){return l})))[0];for(var c=1;c<s.length;c+=1)s[c].isValid()&&!s[c][o](u)||(u=s[c]);return u};a.max=function(){var o=[].slice.call(arguments,0);return i("isAfter",o)},a.min=function(){var o=[].slice.call(arguments,0);return i("isBefore",o)}}}))})(gr)),gr.exports}Ay();var mr={exports:{}},Cy=mr.exports,Bf;function My(){return Bf||(Bf=1,(function(e,t){(function(r,n){e.exports=n()})(Cy,(function(){var r="minute",n=/[+-]\d\d(?::?\d\d)?/g,a=/([+-]|\d\d)/g;return function(i,o,s){var u=o.prototype;s.utc=function(p){var g={date:p,utc:!0,args:arguments};return new o(g)},u.utc=function(p){var g=s(this.toDate(),{locale:this.$L,utc:!0});return p?g.add(this.utcOffset(),r):g},u.local=function(){return s(this.toDate(),{locale:this.$L,utc:!1})};var c=u.parse;u.parse=function(p){p.utc&&(this.$u=!0),this.$utils().u(p.$offset)||(this.$offset=p.$offset),c.call(this,p)};var l=u.init;u.init=function(){if(this.$u){var p=this.$d;
19this.$y=p.getUTCFullYear(),this.$M=p.getUTCMonth(),this.$D=p.getUTCDate(),this.$W=p.getUTCDay(),this.$H=p.getUTCHours(),this.$m=p.getUTCMinutes(),this.$s=p.getUTCSeconds(),this.$ms=p.getUTCMilliseconds()}else l.call(this)};var f=u.utcOffset;u.utcOffset=function(p,g){var y=this.$utils().u;if(y(p))return this.$u?0:y(this.$offset)?f.call(this):this.$offset;if(typeof p=="string"&&(p=(function(E){E===void 0&&(E="");var S=E.match(n);if(!S)return null;var D=(""+S[0]).match(a)||["-",0,0],T=D[0],O=60*+D[1]+ +D[2];return O===0?0:T==="+"?O:-O})(p),p===null))return this;var m=Math.abs(p)<=16?60*p:p;if(m===0)return this.utc(g);var _=this.clone();if(g)return _.$offset=m,_.$u=!1,_;var b=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(_=this.local().add(m+b,r)).$offset=m,_.$x.$localOffset=b,_};var v=u.format;u.format=function(p){var g=p||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return v.call(this,g)},u.valueOf=function(){var p=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*p},u.isUTC=function(){return!!this.$u},u.toISOString=function(){return this.toDate().toISOString()},u.toString=function(){return this.toDate().toUTCString()};var d=u.toDate;u.toDate=function(p){return p==="s"&&this.$offset?s(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var h=u.diff;u.diff=function(p,g,y){if(p&&this.$u===p.$u)return h.call(this,p,g,y);var m=this.local(),_=s(p).local();return h.call(m,_,g,y)}}}))})(mr)),mr.exports}My();var yr={exports:{}},Py=yr.exports,Wf;function qy(){return Wf||(Wf=1,(function(e,t){(function(r,n){e.exports=n()})(Py,(function(){return function(r,n){n.prototype.isLeapYear=function(){return this.$y%4==0&&this.$y%100!=0||this.$y%400==0}}}))})(yr)),yr.exports}qy();function Se(e){return e.children}var fe={PREVIOUS:"PREV",NEXT:"NEXT",TODAY:"TODAY",DATE:"DATE"},ue={MONTH:"month",WEEK:"week",WORK_WEEK:"work_week",DAY:"day",AGENDA:"agenda"},zf=Object.keys(ue).map(function(e){return ue[e]});q.oneOfType([q.string,q.func]);q.any;q.func;q.oneOfType([q.arrayOf(q.oneOf(zf)),q.objectOf(function(e,t){var r=zf.indexOf(t)!==-1&&typeof e[t]=="boolean";if(r)return null;for(var n=arguments.length,a=new Array(n>2?n-2:0),i=2;i<n;i++)a[i-2]=arguments[i];return q.elementType.apply(q,[e,t].concat(a))})]);q.oneOfType([q.oneOf(["overlap","no-overlap"]),q.func]);var Uf={seconds:1e3,minutes:1e3*60,hours:1e3*60*60,day:1e3*60*60*24};function rd(e,t){var r=ne(e,"month");return ne(r,"week",t.startOfWeek())}function nd(e,t){var r=Er(e,"month");return Er(r,"week",t.startOfWeek())}function xy(e,t){for(var r=rd(e,t),n=nd(e,t),a=[];ht(r,n,"day");)a.push(r),r=_e(r,1,"day");return a}function Iy(e,t){var r=ne(e,t);return zt(r,e)?r:_e(r,1,t)}function ky(e,t){for(var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"day",n=e,a=[];ht(n,t,r);)a.push(n),n=_e(n,1,r);return a}function Ny(e,t){return t==null&&e==null?null:(t==null&&(t=new Date),e==null&&(e=new Date),e=ne(e,"day"),e=$t(e,$t(t)),e=lt(e,lt(t)),e=Lt(e,Lt(t)),Nt(e,Nt(t)))}function Kf(e){return $t(e)===0&<(e)===0&&Lt(e)===0&&Nt(e)===0}function Ly(e,t,r,n){return r==="day"&&(r="date"),Math.abs($s[r](e,void 0,n)-$s[r](t,void 0,n))}function Es(e,t,r){return!r||r==="milliseconds"?Math.abs(+e-+t):Math.round(Math.abs(+ne(e,r)/Uf[r]-+ne(t,r)/Uf[r]))}var $y=q.oneOfType([q.string,q.func]);function Fy(e,t,r,n,a){var i=typeof n=="function"?n(r,a,e):t.call(e,r,n,a);return Mt(i==null||typeof i=="string","`localizer format(..)` must return a string, null, or undefined"),i}function jy(e,t,r){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),0,t+r,0,0)}function Ds(e,t){return e.getTimezoneOffset()-t.getTimezoneOffset()}function Hy(e,t){return Es(e,t,"minutes")+Ds(e,t)}function By(e){var t=ne(e,"day");return Es(t,e,"minutes")+Ds(t,e)}function Wy(e,t){return Ko(e,t,"day")}function zy(e,t,r){var n=zt(e,t,"minutes");return n?Ut(t,r,"minutes"):Ar(t,r,"minutes")}function jo(e,t){return Ly(e,t,"day")}function Uy(e){var t=e.evtA,r=t.start,n=t.end,a=t.allDay,i=e.evtB,o=i.start,s=i.end,u=i.allDay,c=+ne(r,"day")-+ne(o,"day"),l=jo(r,n),f=jo(o,s);return c||f-l||!!u-!!a||+r-+o||+n-+s}function Ky(e){var t=e.event,r=t.start,n=t.end,a=e.range,i=a.start,o=a.end,s=ne(r,"day"),u=ht(s,o,"day"),c=Uo(s,n,"minutes"),l=c?Ar(n,i,"minutes"):Ut(n,i,"minutes");return u&&l}function Gy(e,t){return zt(e,t,"day")}function Yy(e,t){return Kf(e)&&Kf(t)}var Vy=Q(function e(t){var r=this;ee(this,e),Mt(typeof t.format=="function","date localizer `format(..)` must be a function"),Mt(typeof t.firstOfWeek=="function","date localizer `firstOfWeek(..)` must be a function"),this.propType=t.propType||$y,this.formats=t.formats,this.format=function(){for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return Fy.apply(void 0,[r,t.format].concat(a))},this.startOfWeek=t.firstOfWeek,this.merge=t.merge||Ny,this.inRange=t.inRange||fv,this.lt=t.lt||Ko,this.lte=t.lte||ht,this.gt=t.gt||Ar,this.gte=t.gte||Ut,this.eq=t.eq||zt,this.neq=t.neq||Uo,this.startOf=t.startOf||ne,this.endOf=t.endOf||Er,this.add=t.add||_e,this.range=t.range||ky,this.diff=t.diff||Es,this.ceil=t.ceil||Iy,this.min=t.min||cv,this.max=t.max||lv,this.minutes=t.minutes||lt,this.daySpan=t.daySpan||jo,this.first
vendor: 8,007 bytes, line 19
19VisibleDay=t.firstVisibleDay||rd,this.lastVisibleDay=t.lastVisibleDay||nd,this.visibleDays=t.visibleDays||xy,this.getSlotDate=t.getSlotDate||jy,this.getTimezoneOffset=t.getTimezoneOffset||function(n){return n.getTimezoneOffset()},this.getDstOffset=t.getDstOffset||Ds,this.getTotalMin=t.getTotalMin||Hy,this.getMinutesFromMidnight=t.getMinutesFromMidnight||By,this.continuesPrior=t.continuesPrior||Wy,this.continuesAfter=t.continuesAfter||zy,this.sortEvents=t.sortEvents||Uy,this.inEventRange=t.inEventRange||Ky,this.isSameDate=t.isSameDate||Gy,this.startAndEndAreDateOnly=t.startAndEndAreDateOnly||Yy,this.segmentOffset=t.browserTZOffset?t.browserTZOffset():0});function Xy(e,t,r,n){var a=G(G({},e.formats),r);return G(G({},e),{},{messages:n,startOfWeek:function(){return e.startOfWeek(t)},format:function(o,s){return e.format(o,a[s]||s,t)}})}var Zy=(function(e){function t(){var r;ee(this,t);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return r=se(this,t,[].concat(a)),r.navigate=function(o){r.props.onNavigate(o)},r.view=function(o){r.props.onView(o)},r}return oe(t,e),Q(t,[{key:"render",value:function(){var n=this.props,a=n.localizer.messages,i=n.label;return w.createElement("div",{className:"rbc-toolbar"},w.createElement("span",{className:"rbc-btn-group"},w.createElement("button",{type:"button",onClick:this.navigate.bind(null,fe.TODAY)},a.today),w.createElement("button",{type:"button",onClick:this.navigate.bind(null,fe.PREVIOUS)},a.previous),w.createElement("button",{type:"button",onClick:this.navigate.bind(null,fe.NEXT)},a.next)),w.createElement("span",{className:"rbc-toolbar-label"},i),w.createElement("span",{className:"rbc-btn-group"},this.viewNamesGroup(a)))}},{key:"viewNamesGroup",value:function(n){var a=this,i=this.props.views,o=this.props.view;if(i.length>1)return i.map(function(s){return w.createElement("button",{type:"button",key:s,className:J({"rbc-active":o===s}),onClick:a.view.bind(null,s)},n[s])})}}])})(w.Component);function V(e,t){e&&e.apply(null,[].concat(t))}var Jy={date:"Date",time:"Time",event:"Event",allDay:"All Day",week:"Week",work_week:"Work Week",day:"Day",month:"Month",previous:"Back",next:"Next",yesterday:"Yesterday",tomorrow:"Tomorrow",today:"Today",agenda:"Agenda",noEventsInRange:"There are no events in this range.",showMore:function(t){return"+".concat(t," more")}};function Qy(e){return G(G({},Jy),e)}function eb(e){var t=e.ref,r=e.callback;F.useEffect(function(){var n=function(i){t.current&&!t.current.contains(i.target)&&r()};return document.addEventListener("mousedown",n),function(){document.removeEventListener("mousedown",n)}},[t,r])}var tb=["style","className","event","selected","isAllDay","onSelect","onDoubleClick","onKeyPress","localizer","continuesPrior","continuesAfter","accessors","getters","children","components","slotStart","slotEnd"],ad=(function(e){function t(){return ee(this,t),se(this,t,arguments)}return oe(t,e),Q(t,[{key:"render",value:function(){var n=this.props,a=n.style,i=n.className,o=n.event,s=n.selected,u=n.isAllDay,c=n.onSelect,l=n.onDoubleClick,f=n.onKeyPress,v=n.localizer,d=n.continuesPrior,h=n.continuesAfter,p=n.accessors,g=n.getters,y=n.children,m=n.components,_=m.event,b=m.eventWrapper,E=n.slotStart,S=n.slotEnd,D=Oe(n,tb);delete D.resizable;var T=p.title(o),O=p.tooltip(o),C=p.end(o),R=p.start(o),I=p.allDay(o),P=u||I||v.diff(R,v.ceil(C,"day"),"day")>1,L=g.eventProp(o,R,C,s),j=w.createElement("div",{className:"rbc-event-content",title:O||void 0},_?w.createElement(_,{event:o,continuesPrior:d,continuesAfter:h,title:T,isAllDay:I,localizer:v,slotStart:E,slotEnd:S}):T);return w.createElement(b,Object.assign({},this.props,{type:"date"}),w.createElement("div",Object.assign({},D,{style:G(G({},L.style),a),className:J("rbc-event",i,L.className,{"rbc-selected":s,"rbc-event-allday":P,"rbc-event-continues-prior":d,"rbc-event-continues-after":h}),onClick:function(H){return c&&c(o,H)},onDoubleClick:function(H){return l&&l(o,H)},onKeyDown:function(H){return f&&f(o,H)}}),typeof y=="function"?y(j):j))}}])})(w.Component);function zr(e,t){return!e||t==null?!1:Hg(e,t)}function id(e,t){var r=e.right-e.left,n=r/t;return n}function od(e,t,r,n){var a=id(e,n);return r?n-1-Math.floor((t-e.left)/a):Math.floor((t-e.left)/a)}function rb(e,t){var r=t.x,n=t.y;return n>=e.top&&n<=e.bottom&&r>=e.left&&r<=e.right}function nb(e,t,r,n,a){var i=-1,o=-1,s=n-1,u=id(t,n),c=od(t,r.x,a,n),l=t.top<r.y&&t.bottom>r.y,f=t.top<e.y&&t.bottom>e.y,v=e.y>t.bottom,d=t.top>e.y,h=r.top<t.top&&r.bottom>t.bottom;return h&&(i=0,o=s),l&&(d?(i=0,o=c):v&&(i=c,o=s)),f&&(i=o=a?s-Math.floor((e.x-t.left)/u):Math.floor((e.x-t.left)/u),l?c<i?i=c:o=c:e.y<r.y?o=s:i=0),{startIdx:i,endIdx:o}}function ab(e){var t=e.target,r=e.offset,n=e.container,a=e.box,i=Ze(t),o=i.top,s=i.left,u=i.width,c=i.height,l=Ze(n),f=l.top,v=l.left,d=l.width,h=l.height,p=Ze(a),g=p.width,y=p.height,m=f+h,_=v+d,b=o+y,E=s+g,S=r.x,D=r.y,T=b>m?o-y-D:o+D+c,O=E>_?s+S-g+u:s+S;return{topOffset:T,leftOffset:O}}function ib(e){var t=e.containerRef,r=e.accessors,n=e.getters,a=e.selected,i=e.components,o=e.localizer,s=e.position,u=e.show,c=e.events,l=e.slotStart,f=e.slotEnd,v=e.onSelect,d=e.onDoubleClick,h=e.onKeyPress,p=e.handleDragStart,g=e.popperRef,y=e.target,m=e.offset;eb({ref:g,callback:u}),F.useLayoutEffect(function(){var E=ab({target:y,offset:m,container:t.current,box:g.current}),S=E.topOffset,D=E.leftOffset;g.current.style.top="".concat(S,"px"),g.current.style.left="".concat(D,"px")},[m.x,m.y,y]);var _=s.width,b={minWidth:_+_/2};return w.createElement("div",{style:b,className:"rbc-overlay",ref:g},w.createElement("div",{className:"rbc-overlay-header"},o.format(l,"dayHeaderFormat")),c.map(function(E,S){return w.createElement(ad,{key:S,type:"popup",localizer:o,event:E,getters:n,onSelect:v,accessors:r,components:i,onDoubleClick:d,onKeyPress:h,continuesPrior:o.lt(r.end(E),l,"day"),continuesAfter:o.gte(r.start(E),f,"day"),slotStart:l,slotEnd:f,selected:zr(E,a),draggable:!0,onDragStart:function(){return p(E)},onDragEnd:function(){return u()}})}))}var sd=w.forwardRef(function(e,t){return w.createElement(ib,Object.assign({},e,{popperRef:t}))});sd.propTypes={accessors:q.object.isRequired,getters:q.object.isRequired,selected:q.object,components:q.object.isRequired,localizer:q.object.isRequired,position:q.object.isRequired,show:q.func.isRequired,events:q.array.isRequired,slotStart:q.instanceOf(Date).isRequired,slotEnd:q.instanceOf(Date),onSelect:q.func,onDoubleClick:q.func,onKeyPress:q.func,handleDragStart:q.func,style:q.object,offset:q.shape({x:q.number,y:q.number})};function ob(e){var t=e.containerRef,r=e.popupOffset,n=r===void 0?5:r,a=e.overlay,i=e.accessors,o=e.localizer,s=e.components,u=e.getters,c=e.selected,l=e.handleSelectEvent,f=e.handleDoubleClickEvent,v=e.handleKeyPressEvent,d=e.handleDragStart,h=e.onHide,p=e.overlayDisplay,g=F.useRef(null);if(!a.position)return null;var y=n;isNaN(n)||(y={x:n,y:n});var m=a.position,_=a.events,b=a.date,E=a.end;return w.createElement(ss,{rootClose:!0,flip:!0,show:!0,placement:"bottom",onHide:h,target:a.target},function(S){var D=S.props;return w.createElement(sd,Object.assign({},D,{containerRef:t,ref:g,target:a.target,offset:y,accessors:i,getters:u,selected:c,components:s,localizer:o,position:m,show:p,events:_,slotStart:b,slotEnd:E,onSelect:l,onDoubleClick:f,onKeyPress:v,handleDragStart:d}))})}var Os=w.forwardRef(function(e,t){return w.createElement(ob,Object.assign({},e,{containerRef:t}))});Os.propTypes={popupOffset:q.oneOfType([q.number,q.shape({x:q.number,y:q.number})]),overlay:q.shape({position:q.object,events:q.array,date:q.instanceOf(Date),end:q.instanceOf(Date)}),accessors:q.object.isRequired,localizer:q.object.isRequired,components:q.object.isRequired,getters:q.object.isRequired,selected:q.object,handleSelectEvent:q.func,handleDoubleClickEvent:q.func,handleKeyPressEvent:q.func,handleDragStart:q.func,onHide:q.func,overlayDisplay:q.func};function ie(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:document;return Dt(r,e,t,{passive:!1})}
19function sb(e,t,r){return!e||Ft(e,document.elementFromPoint(t,r))}function ub(e,t){var r=t.clientX,n=t.clientY,a=document.elementFromPoint(r,n);return Hv(a,".rbc-event",e)}function cb(e,t){var r=t.clientX,n=t.clientY,a=document.elementFromPoint(r,n);return Hv(a,".rbc-show-more",e)}function Rr(e,t){return!!ub(e,t)}function lb(e,t){return!!cb(e,t)}function Et(e){var t=e;return e.touches&&e.touches.length&&(t=e.touches[0]),{clientX:t.clientX,clientY:t.clientY,pageX:t.pageX,pageY:t.pageY}}var Gf=5,fb=250,ud=(function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.global,a=n===void 0?!1:n,i=r.longPressThreshold,o=i===void 0?250:i,s=r.validContainers,u=s===void 0?[]:s;ee(this,e),this._initialEvent=null,this.selecting=!1,this.isDetached=!1,this.container=t,this.globalMouse=!t||a,this.longPressThreshold=o,this.validContainers=u,this._listeners=Object.create(null),this._handleInitialEvent=this._handleInitialEvent.bind(this),this._handleMoveEvent=this._handleMoveEvent.bind(this),this._handleTerminatingEvent=this._handleTerminatingEvent.bind(this),this._keyListener=this._keyListener.bind(this),this._dropFromOutsideListener=this._dropFromOutsideListener.bind(this),this._dragOverFromOutsideListener=this._dragOverFromOutsideListener.bind(this),this._removeTouchMoveWindowListener=ie("touchmove",function(){},window),this._removeKeyDownListener=ie("keydown",this._keyListener),this._removeKeyUpListener=ie("keyup",this._keyListener),this._removeDropFromOutsideListener=ie("drop",this._dropFromOutsideListener),this._removeDragOverFromOutsideListener=ie("dragover",this._dragOverFromOutsideListener),this._addInitialEventListener()}return Q(e,[{key:"on",value:function(r,n){var a=this._listeners[r]||(this._listeners[r]=[]);return a.push(n),{remove:function(){var o=a.indexOf(n);o!==-1&&a.splice(o,1)}}}},{key:"emit",value:function(r){for(var n=arguments.length,a=new Array(n>1?n-1:0),i=1;i<n;i++)a[i-1]=arguments[i];var o,s=this._listeners[r]||[];return s.forEach(function(u){o===void 0&&(o=u.apply(void 0,a))}),o}},{key:"teardown",value:function(){this._initialEvent=null,this._initialEventData=null,this._selectRect=null,this.selecting=!1,this._lastClickData=null,this.isDetached=!0,this._listeners=Object.create(null),this._removeTouchMoveWindowListener&&this._removeTouchMoveWindowListener(),this._removeInitialEventListener&&this._removeInitialEventListener(),this._removeEndListener&&this._removeEndListener(),this._onEscListener&&this._onEscListener(),this._removeMoveListener&&this._removeMoveListener(),this._removeKeyUpListener&&this._removeKeyUpListener(),this._removeKeyDownListener&&this._removeKeyDownListener(),this._removeDropFromOutsideListener&&this._removeDropFromOutsideListener(),this._removeDragOverFromOutsideListener&&this._removeDragOverFromOutsideListener()}},{key:"isSelected",value:function(r){var n=this._selectRect;return!n||!this.selecting?!1:Yf(n,it(r))}},{key:"filter",value:function(r){var n=this._selectRect;return!n||!this.selecting?[]:r.filter(this.isSelected,this)}},{key:"_addLongPressListener",value:function(r,n){var a=this,i=null,o=null,s=null,u=function(v){i=setTimeout(function(){l(),r(v)},a.longPressThreshold),o=ie("touchmove",function(){return l()}),s=ie("touchend",function(){return l()})},c=ie("touchstart",u),l=function(){i&&clearTimeout(i),o&&o(),s&&s(),i=null,o=null,s=null};return n&&u(n),function(){l(),c()}}},{key:"_addInitialEventListener",value:function(){var r=this,n=ie("mousedown",function(i){r._removeInitialEventListener(),r._handleInitialEvent(i),r._removeInitialEventListener=ie("mousedown",r._handleInitialEvent)}),a=ie("touchstart",function(i){r._removeInitialEventListener(),r._removeInitialEventListener=r._addLongPressListener(r._handleInitialEvent,i)});this._removeInitialEventListener=function(){n(),a()}}},{key:"_dropFromOutsideListener",value:function(r){var n=Et(r),a=n.pageX,i=n.pageY,o=n.clientX,s=n.clientY;this.emit("dropFromOutside",{x:a,y:i,clientX:o,clientY:s}),r.preventDefault()}},{key:"_dragOverFromOutsideListener",value:function(r){var n=Et(r),a=n.pageX,i=n.pageY,o=n.clientX,s=n.clientY;
19this.emit("dragOverFromOutside",{x:a,y:i,clientX:o,clientY:s}),r.preventDefault()}},{key:"_handleInitialEvent",value:function(r){if(this._initialEvent=r,!this.isDetached){var n=Et(r),a=n.clientX,i=n.clientY,o=n.pageX,s=n.pageY,u=this.container(),c,l;if(!(r.which===3||r.button===2||!sb(u,a,i))){if(!this.globalMouse&&u&&!Ft(u,r.target)){var f=vb(0),v=f.top,d=f.left,h=f.bottom,p=f.right;if(l=it(u),c=Yf({top:l.top-v,left:l.left-d,bottom:l.bottom+h,right:l.right+p},{top:s,left:o}),!c)return}var g=this.emit("beforeSelect",this._initialEventData={isTouch:/^touch/.test(r.type),x:o,y:s,clientX:a,clientY:i});if(g!==!1)switch(r.type){case"mousedown":this._removeEndListener=ie("mouseup",this._handleTerminatingEvent),this._onEscListener=ie("keydown",this._handleTerminatingEvent),this._removeMoveListener=ie("mousemove",this._handleMoveEvent);break;case"touchstart":this._handleMoveEvent(r),this._removeEndListener=ie("touchend",this._handleTerminatingEvent),this._removeMoveListener=ie("touchmove",this._handleMoveEvent);break}}}}},{key:"_isWithinValidContainer",value:function(r){var n=r.target,a=this.validContainers;return!a||!a.length||!n?!0:a.some(function(i){return!!n.closest(i)})}},{key:"_handleTerminatingEvent",value:function(r){var n=this.selecting,a=this._selectRect;if(!n&&r.type.includes("key")&&(r=this._initialEvent),this.selecting=!1,this._removeEndListener&&this._removeEndListener(),this._removeMoveListener&&this._removeMoveListener(),this._selectRect=null,this._initialEvent=null,this._initialEventData=null,!!r){var i=!this.container||Ft(this.container(),r.target),o=this._isWithinValidContainer(r);return r.key==="Escape"||!o?this.emit("reset"):!n&&i?this._handleClickEvent(r):n?this.emit("select",a):this.emit("reset")}}},{key:"_handleClickEvent",value:function(r){var n=Et(r),a=n.pageX,i=n.pageY,o=n.clientX,s=n.clientY,u=new Date().getTime();return this._lastClickData&&u-this._lastClickData.timestamp<fb?(this._lastClickData=null,this.emit("doubleClick",{x:a,y:i,clientX:o,clientY:s})):(this._lastClickData={timestamp:u},this.emit("click",{x:a,y:i,clientX:o,clientY:s}))}},{key:"_handleMoveEvent",value:function(r){if(!(this._initialEventData===null||this.isDetached)){var n=this._initialEventData,a=n.x,i=n.y,o=Et(r),s=o.pageX,u=o.pageY,c=Math.abs(a-s),l=Math.abs(i-u),f=Math.min(s,a),v=Math.min(u,i),d=this.selecting,h=this.isClick(s,u);h&&!d&&!(c||l)||(!d&&!h&&this.emit("selectStart",this._initialEventData),h||(this.selecting=!0,this._selectRect={top:v,left:f,x:s,y:u,right:f+c,bottom:v+l},this.emit("selecting",this._selectRect)),r.preventDefault())}}},{key:"_keyListener",value:function(r){this.ctrl=r.metaKey||r.ctrlKey}},{key:"isClick",value:function(r,n){var a=this._initialEventData,i=a.x,o=a.y,s=a.isTouch;return!s&&Math.abs(r-i)<=Gf&&Math.abs(n-o)<=Gf}}])})();function vb(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return qe(e)!=="object"&&(e={top:e,left:e,right:e,bottom:e}),e}function Yf(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,n=it(e),a=n.top,i=n.left,o=n.right,s=o===void 0?i:o,u=n.bottom,c=u===void 0?a:u,l=it(t),f=l.top,v=l.left,d=l.right,h=d===void 0?v:d,p=l.bottom,g=p===void 0?f:p;return!(c-r<f||a+r>g||s-r<v||i+r>h)}function it(e){if(!e.getBoundingClientRect)return e;var t=e.getBoundingClientRect(),r=t.left+Vf("left"),n=t.top+Vf("top");return{top:n,left:r,right:(e.offsetWidth||0)+r,bottom:(e.offsetHeight||0)+n}}function Vf(e){if(e==="left")return window.pageXOffset||document.body.scrollLeft||0;if(e==="top")return window.pageYOffset||document.body.scrollTop||0}var db=(function(e){function t(r,n){var a;return ee(this,t),a=se(this,t,[r,n]),a.state={selecting:!1},a.containerRef=F.createRef(),a}
vendor: 4,188 bytes, line 19
19return oe(t,e),Q(t,[{key:"componentDidMount",value:function(){this.props.selectable&&this._selectable()}},{key:"componentWillUnmount",value:function(){this._teardownSelectable()}},{key:"componentDidUpdate",value:function(n){!n.selectable&&this.props.selectable&&this._selectable(),n.selectable&&!this.props.selectable&&this._teardownSelectable()}},{key:"render",value:function(){var n=this.props,a=n.range,i=n.getNow,o=n.getters,s=n.date,u=n.components.dateCellWrapper,c=n.localizer,l=this.state,f=l.selecting,v=l.startIdx,d=l.endIdx,h=i();return w.createElement("div",{className:"rbc-row-bg",ref:this.containerRef},a.map(function(p,g){var y=f&&g>=v&&g<=d,m=o.dayProp(p),_=m.className,b=m.style;return w.createElement(u,{key:g,value:p,range:a},w.createElement("div",{style:b,className:J("rbc-day-bg",_,y&&"rbc-selected-cell",c.isSameDate(p,h)&&"rbc-today",s&&c.neq(s,p,"month")&&"rbc-off-range-bg")}))}))}},{key:"_selectable",value:function(){var n=this,a=this.containerRef.current,i=this._selector=new ud(this.props.container,{longPressThreshold:this.props.longPressThreshold}),o=function(u,c){if(!Rr(a,u)&&!lb(a,u)){var l=it(a),f=n.props,v=f.range,d=f.rtl;if(rb(l,u)){var h=od(l,u.x,d,v.length);n._selectSlot({startIdx:h,endIdx:h,action:c,box:u})}}n._initial={},n.setState({selecting:!1})};i.on("selecting",function(s){var u=n.props,c=u.range,l=u.rtl,f=-1,v=-1;if(n.state.selecting||(V(n.props.onSelectStart,[s]),n._initial={x:s.x,y:s.y}),i.isSelected(a)){var d=it(a),h=nb(n._initial,d,s,c.length,l);f=h.startIdx,v=h.endIdx}n.setState({selecting:!0,startIdx:f,endIdx:v})}),i.on("beforeSelect",function(s){if(n.props.selectable==="ignoreEvents")return!Rr(n.containerRef.current,s)}),i.on("click",function(s){return o(s,"click")}),i.on("doubleClick",function(s){return o(s,"doubleClick")}),i.on("select",function(s){n._selectSlot(G(G({},n.state),{},{action:"select",bounds:s})),n._initial={},n.setState({selecting:!1}),V(n.props.onSelectEnd,[n.state])})}},{key:"_teardownSelectable",value:function(){this._selector&&(this._selector.teardown(),this._selector=null)}},{key:"_selectSlot",value:function(n){var a=n.endIdx,i=n.startIdx,o=n.action,s=n.bounds,u=n.box;a!==-1&&i!==-1&&this.props.onSelectSlot&&this.props.onSelectSlot({start:i,end:a,action:o,bounds:s,box:u,resourceId:this.props.resourceId})}}])})(w.Component),pe={propTypes:{slotMetrics:q.object.isRequired,selected:q.object,isAllDay:q.bool,accessors:q.object.isRequired,localizer:q.object.isRequired,components:q.object.isRequired,getters:q.object.isRequired,onSelect:q.func,onDoubleClick:q.func,onKeyPress:q.func},defaultProps:{segments:[],selected:{}},renderEvent:function(t,r){var n=t.selected;t.isAllDay;var a=t.accessors,i=t.getters,o=t.onSelect,s=t.onDoubleClick,u=t.onKeyPress,c=t.localizer,l=t.slotMetrics,f=t.components,v=t.resizable,d=l.continuesPrior(r),h=l.continuesAfter(r);return w.createElement(ad,{event:r,getters:i,localizer:c,accessors:a,components:f,onSelect:o,onDoubleClick:s,onKeyPress:u,continuesPrior:d,continuesAfter:h,slotStart:l.first,slotEnd:l.last,selected:zr(r,n),resizable:v})},renderSpan:function(t,r,n){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:" ",i=Math.abs(r)/t*100+"%";return w.createElement("div",{key:n,className:"rbc-row-segment",style:{WebkitFlexBasis:i,flexBasis:i,maxWidth:i}},a)}},cd=(function(e){function t(){return ee(this,t),se(this,t,arguments)}return oe(t,e),Q(t,[{key:"render",value:function(){var n=this,a=this.props,i=a.segments,o=a.slotMetrics.slots,s=a.className,u=1;return w.createElement("div",{className:J(s,"rbc-row")},i.reduce(function(c,l,f){var v=l.event,d=l.left,h=l.right,p=l.span,g="_lvl_"+f,y=d-u,m=pe.renderEvent(n.props,v);return y&&c.push(pe.renderSpan(o,y,"".concat(g,"_gap"))),c.push(pe.renderSpan(o,p,g,m)),u=h+1,c},[]))}}])})(w.Component);cd.defaultProps=G({},pe.defaultProps);function ld(e){var t=e.dateRange,r=e.unit,n=r===void 0?"day":r,a=e.localizer;return{first:t[0],last:a.add(t[t.length-1],1,n)}}function pb(e,t,r,n){var a=ld({dateRange:t,localizer:n}),i=a.first,o=a.last,s=n.diff(i,o,"day"),u=n.max(n.startOf(r.start(e),"day"),i),c=n.min(n.ceil(r.end(e),"day"),o),l=sm(t,function(v){return n.isSameDate(v,u)}),f=n.diff(u,c,"day");
19return f=Math.min(f,s),f=Math.max(f-n.segmentOffset,1),{event:e,span:f,left:l+1,right:Math.max(l+f,1)}}function Ho(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1/0,r,n,a,i=[],o=[];for(r=0;r<e.length;r++){for(a=e[r],n=0;n<i.length&&hb(a,i[n]);n++);n>=t?o.push(a):(i[n]||(i[n]=[])).push(a)}for(r=0;r<i.length;r++)i[r].sort(function(s,u){return s.left-u.left});return{levels:i,extra:o}}function Bt(e,t,r,n,a){var i={start:n.start(e),end:n.end(e)},o={start:t,end:r};return a.inEventRange({event:i,range:o})}function hb(e,t){return t.some(function(r){return r.left<=e.right&&r.right>=e.left})}function gb(e,t,r){var n=cr(e),a=[],i=[];n.forEach(function(u){var c=t.start(u),l=t.end(u);r.daySpan(c,l)>1?a.push(u):i.push(u)});var o=a.sort(function(u,c){return Bo(u,c,t,r)}),s=i.sort(function(u,c){return Bo(u,c,t,r)});return[].concat(cr(o),cr(s))}function Bo(e,t,r,n){var a={start:r.start(e),end:r.end(e),allDay:r.allDay(e)},i={start:r.start(t),end:r.end(t),allDay:r.allDay(t)};return n.sortEvents({evtA:a,evtB:i})}var Wo=function(t,r){return t.left<=r&&t.right>=r},Co=function(t,r){return t.filter(function(n){return Wo(n,r)}).map(function(n){return n.event})},fd=(function(e){function t(){return ee(this,t),se(this,t,arguments)}return oe(t,e),Q(t,[{key:"render",value:function(){for(var n=this.props,a=n.segments,i=n.slotMetrics.slots,o=Ho(a).levels[0],s=1,u=1,c=[];s<=i;){var l="_lvl_"+s,f=o.filter(function(b){return Wo(b,s)})[0]||{},v=f.event,d=f.left,h=f.right,p=f.span;if(!v){var g=this.getHiddenEventsForSlot(a,s);if(g.length>0){var y=s-u;y&&c.push(pe.renderSpan(i,y,l+"_gap")),c.push(pe.renderSpan(i,1,l,this.renderShowMore(a,s))),u=s=s+1;continue}s++;continue}var m=Math.max(0,d-u);if(this.canRenderSlotEvent(d,p)){var _=pe.renderEvent(this.props,v);m&&c.push(pe.renderSpan(i,m,l+"_gap")),c.push(pe.renderSpan(i,p,l,_)),u=s=h+1}else m&&c.push(pe.renderSpan(i,m,l+"_gap")),c.push(pe.renderSpan(i,1,l,this.renderShowMore(a,s))),u=s=s+1}return w.createElement("div",{className:"rbc-row"},c)}},{key:"getHiddenEventsForSlot",value:function(n,a){var i=Co(n,a),o=Ho(n).levels[0],s=o.filter(function(u){return Wo(u,a)}).map(function(u){return u.event});return i.filter(function(u){return!s.some(function(c){return c===u})})}},{key:"canRenderSlotEvent",value:function(n,a){var i=this.props.segments;return vm(n,n+a).every(function(o){var s=Co(i,o).length;return s===1})}},{key:"renderShowMore",value:function(n,a){var i=this,o=this.props,s=o.localizer,u=o.slotMetrics,c=o.components,l=u.getEventsForSlot(a),f=Co(n,a),v=f.length;if(c!=null&&c.showMore){var d=c.showMore,h=u.getDateForSlot(a-1);return v?w.createElement(d,{localizer:s,slotDate:h,slot:a,count:v,events:l,remainingEvents:f}):!1}return v?w.createElement("button",{type:"button",key:"sm_"+a,className:J("rbc-button-link","rbc-show-more"),onClick:function(g){return i.showMore(a,g)}},s.messages.showMore(v,f,l)):!1}},{key:"showMore",value:function(n,a){a.preventDefault(),a.stopPropagation(),this.props.onShowMore(n,a.target)}}])})(w.Component);fd.defaultProps=G({},pe.defaultProps);var mb=function(t){var r=t.children;return w.createElement("div",{className:"rbc-row-content-scroll-container"},r)},yb=function(t,r){return t.left<=r&&t.right>=r},bb=function(t,r){return t[0].range===r[0].range&&t[0].events===r[0].events};function vd(){return zv(function(e){for(var t=e.range,r=e.events,n=e.maxRows,a=e.minRows,i=e.accessors,o=e.localizer,s=ld({dateRange:t,localizer:o}),u=s.first,c=s.last,l=r.map(function(p){return pb(p,t,i,o)}),f=Ho(l,Math.max(n-1,1)),v=f.levels,d=f.extra,h=d.length>0?a-1:a;v.length<h;)v.push([]);return{first:u,last:c,levels:v,extra:d,range:t,slots:t.length,clone:function(g){var y=vd();return y(G(G({},e),g))},getDateForSlot:function(g){return t[g]},getSlotForDate:function(g){return t.find(function(y){return o.isSameDate(y,g)})},getEventsForSlot:function(g){return l.filter(function(y){return yb(y,g)}).map(function(y){return y.event})},continuesPrior:function(g){return o.continuesPrior(i.start(g),u)},continuesAfter:function(g){var y=i.start(g),m=i.end(g);return o.continuesAfter(y,m,c)}}},bb)}var Wt=(function(e){function t(){var r;ee(this,t);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return r=se(this,t,[].concat(a)),r.handleSelectSlot=function(o){var s=r.props,u=s.range,c=s.onSelectSlot;c(u.slice(o.start,o.end+1),o)},r.handleShowMore=function(o,s){var u=r.props,c=u.range,l=u.onShowMore,f
vendor: 13,875 bytes, line 19
19=r.slotMetrics(r.props),v=mp(r.containerRef.current,".rbc-row-bg")[0],d;v&&(d=v.children[o-1]);var h=f.getEventsForSlot(o);l(h,c[o-1],d,o,s)},r.getContainer=function(){var o=r.props.container;return o?o():r.containerRef.current},r.renderHeadingCell=function(o,s){var u=r.props,c=u.renderHeader,l=u.getNow,f=u.localizer;return c({date:o,key:"header_".concat(s),className:J("rbc-date-cell",f.isSameDate(o,l())&&"rbc-now")})},r.renderDummy=function(){var o=r.props,s=o.className,u=o.range,c=o.renderHeader,l=o.showAllEvents;return w.createElement("div",{className:s,ref:r.containerRef},w.createElement("div",{className:J("rbc-row-content",l&&"rbc-row-content-scrollable")},c&&w.createElement("div",{className:"rbc-row",ref:r.headingRowRef},u.map(r.renderHeadingCell)),w.createElement("div",{className:"rbc-row",ref:r.eventRowRef},w.createElement("div",{className:"rbc-row-segment"},w.createElement("div",{className:"rbc-event"},w.createElement("div",{className:"rbc-event-content"},"Â "))))))},r.containerRef=F.createRef(),r.headingRowRef=F.createRef(),r.eventRowRef=F.createRef(),r.slotMetrics=vd(),r}return oe(t,e),Q(t,[{key:"getRowLimit",value:function(){var n,a=za(this.eventRowRef.current),i=(n=this.headingRowRef)!==null&&n!==void 0&&n.current?za(this.headingRowRef.current):0,o=za(this.containerRef.current)-i;return Math.max(Math.floor(o/a),1)}},{key:"render",value:function(){var n=this.props,a=n.date,i=n.rtl,o=n.range,s=n.className,u=n.selected,c=n.selectable,l=n.renderForMeasure,f=n.accessors,v=n.getters,d=n.components,h=n.getNow,p=n.renderHeader,g=n.onSelect,y=n.localizer,m=n.onSelectStart,_=n.onSelectEnd,b=n.onDoubleClick,E=n.onKeyPress,S=n.resourceId,D=n.longPressThreshold,T=n.isAllDay,O=n.resizable,C=n.showAllEvents;if(l)return this.renderDummy();var R=this.slotMetrics(this.props),I=R.levels,P=R.extra,L=C?mb:Se,j=d.weekWrapper,$={selected:u,accessors:f,getters:v,localizer:y,components:d,onSelect:g,onDoubleClick:b,onKeyPress:E,resourceId:S,slotMetrics:R,resizable:O};return w.createElement("div",{className:s,role:"rowgroup",ref:this.containerRef},w.createElement(db,{localizer:y,date:a,getNow:h,rtl:i,range:o,selectable:c,container:this.getContainer,getters:v,onSelectStart:m,onSelectEnd:_,onSelectSlot:this.handleSelectSlot,components:d,longPressThreshold:D,resourceId:S}),w.createElement("div",{className:J("rbc-row-content",C&&"rbc-row-content-scrollable"),role:"row"},p&&w.createElement("div",{className:"rbc-row ",ref:this.headingRowRef},o.map(this.renderHeadingCell)),w.createElement(L,null,w.createElement(j,Object.assign({isAllDay:T},$,{rtl:this.props.rtl}),I.map(function(H,Y){return w.createElement(cd,Object.assign({key:Y,segments:H},$))}),!!P.length&&w.createElement(fd,Object.assign({segments:P,onShowMore:this.handleShowMore},$))))))}}])})(w.Component);Wt.defaultProps={minRows:0,maxRows:1/0};var Rs=function(t){var r=t.label;return w.createElement("span",{role:"columnheader","aria-sort":"none"},r)},wb=function(t){var r=t.label,n=t.drilldownView,a=t.onDrillDown;return n?w.createElement("button",{type:"button",className:"rbc-button-link",onClick:a},r):w.createElement("span",null,r)},_b=["date","className"],Sb=function(t,r,n,a,i){return t.filter(function(o){return Bt(o,r,n,a,i)})},Ur=(function(e){function t(){var r;ee(this,t);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return r=se(this,t,[].concat(a)),r.getContainer=function(){return r.containerRef.current},r.renderWeek=function(o,s){var u=r.props,c=u.events,l=u.components,f=u.selectable,v=u.getNow,d=u.selected,h=u.date,p=u.localizer,g=u.longPressThreshold,y=u.accessors,m=u.getters,_=u.showAllEvents,b=r.state,E=b.needLimitMeasure,S=b.rowLimit,D=Sb(cr(c),o[0],o[o.length-1],y,p),T=gb(D,y,p);return w.createElement(Wt,{key:s,ref:s===0?r.slotRowRef:void 0,container:r.getContainer,className:"rbc-month-row",getNow:v,date:h,range:o,events:T,maxRows:_?1/0:S,selected:d,selectable:f,components:l,accessors:y,getters:m,localizer:p,renderHeader:r.readerDateHeading,renderForMeasure:E,onShowMore:r.handleShowMore,onSelect:r.handleSelectEvent,onDoubleClick:r.handleDoubleClickEvent,onKeyPress:r.handleKeyPressEvent,onSelectSlot:r.handleSelectSlot,longPressThreshold:g,rtl:r.props.rtl,resizable:r.props.resizable,showAllEvents:_})},r.readerDateHeading=function(o){var s=o.date,u=o.className,c=Oe(o,_b),l=r.props,f=l.date,v=l.getDrilldownView,d=l.localizer,h=d.neq(f,s,"month"),p=d.isSameDate(s,f),g=v(s),y=d.format(s,"dateFormat"),m=r.props.components.dateHeader||wb;return w.createElement("div",Object.assign({},c,{className:J(u,h&&"rbc-off-range",p&&"rbc-current"),role:"cell"}),w.createElement(m,{label:y,date:s,drilldownView:g,isOffRange:h,onDrillDown:function(b){return r.handleHeadingClick(s,g,b)}}))},r.handleSelectSlot=function(o,s){r._pendingSelection=r._pendingSelection.concat(o),clearTimeout(r._selectTimer),r._selectTimer=setTimeout(function(){return r.selectDates(s)})},r.handleHeadingClick=function(o,s,u){u.preventDefault(),r.clearSelection(),V(r.props.onDrillDown,[o,s])},r.handleSelectEvent=function(){r.clearSelection();for(var o=arguments.length,s=new Array(o),u=0;u<o;u++)s[u]=arguments[u];V(r.props.onSelectEvent,s)},r.handleDoubleClickEvent=function(){r.clearSelection();for(var o=arguments.length,s=new Array(o),u=0;u<o;u++)s[u]=arguments[u];V(r.props.onDoubleClickEvent,s)},r.handleKeyPressEvent=function(){r.clearSelection();for(var o=arguments.length,s=new Array(o),u=0;u<o;u++)s[u]=arguments[u];V(r.props.onKeyPressEvent,s)},r.handleShowMore=function(o,s,u,c,l){var f=r.props,v=f.popup,d=f.onDrillDown,h=f.onShowMore,p=f.getDrilldownView,g=f.doShowMoreDrillDown;if(r.clearSelection(),v){var y=Ev(u,r.containerRef.current);r.setState({overlay:{date:s,events:o,position:y,target:l}})}else g&&V(d,[s,p(s)||ue.DAY]);V(h,[o,s,c])},r.overlayDisplay=function(){r.setState({overlay:null})},r.state={rowLimit:5,needLimitMeasure:!0,date:null},r.containerRef=F.createRef(),r.slotRowRef=F.createRef(),r._bgRows=[],r._pendingSelection=[],r}return oe(t,e),Q(t,[{key:"componentDidMount",value:function(){var n=this,a;this.state.needLimitMeasure&&this.measureRowLimit(this.props),window.addEventListener("resize",this._resizeListener=function(){a||Dv(function(){a=!1,n.setState({needLimitMeasure:!0})})},!1)}},{key:"componentDidUpdate",value:function(){this.state.needLimitMeasure&&this.measureRowLimit(this.props)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this._resizeListener,!1)}},{key:"render",value:function(){var n=this.props,a=n.date,i=n.localizer,o=n.className,s=i.visibleDays(a,i),u=tp(s,7);return this._weekCount=u.length,w.createElement("div",{className:J("rbc-month-view",o),role:"table","aria-label":"Month View",ref:this.containerRef},w.createElement("div",{className:"rbc-row rbc-month-header",role:"row"},this.renderHeaders(u[0])),u.map(this.renderWeek),this.props.popup&&this.renderOverlay())}},{key:"renderHeaders",value:function(n){var a=this.props,i=a.localizer,o=a.components,s=n[0],u=n[n.length-1],c=o.header||Rs;return i.range(s,u,"day").map(function(l,f){return w.createElement("div",{key:"header_"+f,className:"rbc-header"},w.createElement(c,{date:l,localizer:i,label:i.format(l,"weekdayFormat")}))})}},{key:"renderOverlay",value:function(){var n,a,i=this,o=(n=(a=this.state)===null||a===void 0?void 0:a.overlay)!==null&&n!==void 0?n:{},s=this.props,u=s.accessors,c=s.localizer,l=s.components,f=s.getters,v=s.selected,d=s.popupOffset,h=s.handleDragStart,p=function(){return i.setState({overlay:null})};return w.createElement(Os,{overlay:o,accessors:u,localizer:c,components:l,getters:f,selected:v,popupOffset:d,ref:this.containerRef,handleKeyPressEvent:this.handleKeyPressEvent,handleSelectEvent:this.handleSelectEvent,handleDoubleClickEvent:this.handleDoubleClickEvent,handleDragStart:h,show:!!o.position,overlayDisplay:this.overlayDisplay,onHide:p})}},{key:"measureRowLimit",value:function(){this.setState({needLimitMeasure:!1,rowLimit:this.slotRowRef.current.getRowLimit()})}},{key:"selectDates",value:function(n){var a=this._pendingSelection.slice();this._pendingSelection=[],a.sort(function(s,u){return+s-+u});var i=new Date(a[0]),o=new Date(a[a.length-1]);o.setDate(a[a.length-1].getDate()+1),V(this.props.onSelectSlot,{slots:a,start:i,end:o,action:n.action,bounds:n.bounds,box:n.box})}},{key:"clearSelection",value:function(){clearTimeout(this._selectTimer),this._pendingSelection=[]}}],[{key:"getDerivedStateFromProps",value:function(n,a){var i=n.date,o=n.localizer;return{date:i,needLimitMeasure:o.neq(i,a.date,"month")}}}])})(w.Component);Ur.range=function(e,t){var r=t.localizer,n=r.firstVisibleDay(e,r),a=r.lastVisibleDay(e,r);return{start:n,end:a}};Ur.navigate=function(e,t,r){var n=r.localizer;switch(t){case fe.PREVIOUS:return n.add(e,-1,"month");case fe.NEXT:return n.add(e,1,"month");default:return e}};Ur.title=function(e,t){var r=t.localizer;return r.format(e,"monthHeaderFormat")};var Xf=function(t){var r=t.min,n=t.max,a=t.step,i=t.slots,o=t.localizer;return"".concat(+o.startOf(r,"minutes"))+"".concat(+o.startOf(n,"minutes"))+"".concat(a,"-").concat(i)};function Ts(e){for(var t=e.min,r=e.max,n=e.step,a=e.timeslots,i=e.localizer,o=Xf({step:n,localizer:i}),s=1+i.getTotalMin(t,r),u=i.getMinutesFromMidnight(t),c=Math.ceil((s-1)/(n*a)),l=c*a,f=new Array(c),v=new Array(l),d=0;d<c;d++){f[d]=new Array(a);for(var h=0;h<a;h++){var p=d*a+h,g=p*n;v[p]=f[d][h]=i.getSlotDate(t,u,g)}}var y=v.length*n;v.push(i.getSlotDate(t,u,y));function m(_){var b=i.diff(t,_,"minutes")+i.getDstOffset(t,_);return Math.min(b,s)}return{groups:f,update:function(b){return Xf(b)!==o?Ts(b):this},dateIsInGroup:function(b,E){var S=f[E+1];return i.inRange(b,f[E][0],S?S[0]:r,"minutes")},nextSlot:function(b){var E=v[Math.min(v.findIndex(function(S){return S===b||i.eq(S,b)})+1,v.length-1)];return i.eq(E,b)&&(E=i.add(b,n,"minutes")),E},closestSlotToPosition:function(b){var E=Math.min(v.length-1,Math.max(0,Math.floor(b*l)));return v[E]},closestSlotFromPoint:function(b,E){var S=Math.abs(E.top-E.bottom);return this.closestSlotToPosition((b.y-E.top)/S)},closestSlotFromDate:function(b){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(i.lt(b,t,"minutes"))return v[0];if(i.gt(b,r,"minutes"))return v[v.length-1];var S=i.diff(t,b,"minutes");return v[(S-S%n)/n+E]},startsBeforeDay:function(b){return i.lt(b,t,"day")},startsAfterDay:function(b){return i.gt(b,r,"day")},startsBefore:function(b){return i.lt(i.merge(t,b),t,"minutes")},startsAfter:function(b){return i.gt(i.merge(r,b),r,"minutes")},getRange:function(b,E,S,D){S||(b=i.min(r,i.max(t,b))),D||(E=i.min(r,i.max(t,E)));var T=m(b),O=m(E),C=O>n*l&&!i.eq(r,E)?(T-n)/(n*l)*100:T/(n*l)*100;return{top:C,height:O/(n*l)*100-C,start:m(b),startDate:b,end:m(E),endDate:E}},getCurrentTimePosition:function(b){var E=m(b),S=E/(n*l)*100;return S}}}var Eb=(function(){function e(t,r){var n=r.accessors,a=r.slotMetrics;ee(this,e);var i=a.getRange(n.start(t),n.end(t)),o=i.start,s=i.startDate,u=i.end,c=i.endDate,l=i.top,f=i.height;this.start=o,this.end=u,this.startMs=+s,this.endMs=+c,this.top=l,this.height=f,this.data=t}return Q(e,[{key:"_width",get:function(){if(this.rows){var r=this.rows.reduce(function(a,i){return Math.max(a,i.leaves.length+1)},0)+1;return 100/r}if(this.leaves){var n=100-this.container._width;return n/(this.leaves.length+1)}return this.row._width}},{key:"width",get:function(){var r=this._width,n=Math.min(100,this._width*1.7);if(this.rows)return n;if(this.leaves)return this.leaves.length>0?n:r;var a=this.row.leaves,i=a.indexOf(this);return i===a.length-1?r:n}},{key:"xOffset",get:function(){if(this.rows)return 0;if(this.leaves)return this.container._width;var r=this.row,n=r.leaves,a=r.xOffset,i=r._width,o=n.indexOf(this)+1;return a+o*i}}])})();function Db(e,t,r){return Math.abs(t.start-e.start)<r||t.start>e.start&&t.start<e.end}function Ob(e){for(var t=Pm(e,["startMs",function(s){return-s.endMs}]),r=[];t.length>0;){var n=t.shift();r.push(n);for(var a=0;a<t.length;a++){var i=t[a];if(!(n.endMs>i.startMs)){if(a>0){var o=t.splice(a,1)[0];r.push(o)}break}}}return r}function dd(e){for(var t=e.events,r=e.minimumStartDifference,n=e.slotMetrics,a=e.accessors,i=t.map(function(l){return new Eb(l,{slotMetrics:n,accessors:a})}),o=Ob(i),s=[],u=function(){var f=o[c],v=s.find(function(p){return p.end>f.start||Math.abs(f.start-p.start)<r});if(!v)return f.rows=[],s.push(f),1;f.container=v;for(var d=null,h=v.rows.length-1;!d&&h>=0;h--)Db(v.rows[h],f,r)&&(d=v.rows[h]);d?(d.leaves.push(f),f.row=d):(f.leaves=[],v.rows.push(f))},c=0;c<o.length;c++)u();return o.map(function(l){return{event:l.data,style:{top:l.top,height:l.height,width:l.width,xOffset:Math.max(0,l.xOffset)}}})}function pd(e,t,r){for(var n=0;n<e.friends.length;++n)if(!(r.indexOf(e.friends[n])>-1)){t=t>e.friends[n].idx?t:e.friends[n].idx,r.push(e.friends[n]);var a=pd(e.friends[n],t,r);t=t>a?t:a}return t}function Rb(e){var t=e.events,r=e.minimumStartDifference,n=e.slotMetrics,a=e.accessors,i=dd({events:t,minimumStartDifference:r,slotMetrics:n,accessors:a});i.sort(function(j,$){return j=j.style,$=$.style,j.top!==$.top?j.top>$.top?1:-1:j.height!==$.height?j.top+j.height<$.top+$.height?1:-1:0});for(var o=0;o<i.length;++o)i[o].friends=[],delete i[o].style.left,delete i[o].style.left,delete i[o].idx,delete i[o].size;for(var s=0;s<i.length-1;++s)for(var u=i[s],c=u.style.top,l=u.style.top+u.style.height,f=s+1;f<i.length;++f){var v=i[f],d=v.style.top,h=v.style.top+v.style.height;(d>=c&&h<=l||h>c&&h<=l||d>=c&&d<l)&&(u.friends.push(v),v.friends.push(u))}for(var p=0;p<i.length;++p){for(var g=i[p],y=[],m=0;m<100;++m)y.push(1);for(var _=0;_<g.friends.length;++_)g.friends[_].idx!==void 0&&(y[g.friends[_].idx]=0);g.idx=y.indexOf(1)}for(var b=0;b<i.length;++b){var E=0;if(!i[b].size){var S=[],D=pd(i[b],0,S);E=100/(D+1),i[b].size=E;for(var T=0;T<S.length;++T)S[T].size=E}}for(var O=0;O<i.length;++O){var C=i[O];C.style.left=C.idx*C.size;
19for(var R=0,I=0;I<C.friends.length;++I){var P=C.friends[I].idx;R=R>P?R:P}R<=C.idx&&(C.size=100-C.idx*C.size);var L=C.idx===0?0:3;C.style.width="calc(".concat(C.size,"% - ").concat(L,"px)"),C.style.height="calc(".concat(C.style.height,"% - 2px)"),C.style.xOffset="calc(".concat(C.style.left,"% + ").concat(L,"px)")}return i}var Zf={overlap:dd,"no-overlap":Rb};function Tb(e){return!!(e&&e.constructor&&e.call&&e.apply)}function Ab(e){e.events,e.minimumStartDifference,e.slotMetrics,e.accessors;var t=e.dayLayoutAlgorithm,r=t;return t in Zf&&(r=Zf[t]),Tb(r)?r.apply(this,arguments):[]}var hd=(function(e){function t(){return ee(this,t),se(this,t,arguments)}return oe(t,e),Q(t,[{key:"render",value:function(){var n=this.props,a=n.renderSlot,i=n.resource,o=n.group,s=n.getters,u=n.components,c=u===void 0?{}:u,l=c.timeSlotWrapper,f=l===void 0?Se:l,v=s?s.slotGroupProp(o):{};return w.createElement("div",Object.assign({className:"rbc-timeslot-group"},v),o.map(function(d,h){var p=s?s.slotProp(d,i):{};return w.createElement(f,{key:h,value:d,resource:i},w.createElement("div",Object.assign({},p,{className:J("rbc-time-slot",p.className)}),a&&a(d,h)))}))}}])})(F.Component);function sr(e){return typeof e=="string"?e:e+"%"}function Cb(e){var t=e.style,r=e.className,n=e.event,a=e.accessors,i=e.rtl,o=e.selected,s=e.label,u=e.continuesPrior,c=e.continuesAfter,l=e.getters,f=e.onClick,v=e.onDoubleClick,d=e.isBackgroundEvent,h=e.onKeyPress,p=e.components,g=p.event,y=p.eventWrapper,m=a.title(n),_=a.tooltip(n),b=a.end(n),E=a.start(n),S=l.eventProp(n,E,b,o),D=[w.createElement("div",{key:"1",className:"rbc-event-label"},s),w.createElement("div",{key:"2",className:"rbc-event-content"},g?w.createElement(g,{event:n,title:m}):m)],T=t.height,O=t.top,C=t.width,R=t.xOffset,I=G(G({},S.style),{},Xe({top:sr(O),height:sr(T),width:sr(C)},i?"right":"left",sr(R)));return w.createElement(y,Object.assign({type:"time"},e),w.createElement("div",{role:"button",tabIndex:0,onClick:f,onDoubleClick:v,style:I,onKeyDown:h,title:_?(typeof s=="string"?s+": ":"")+_:void 0,className:J(d?"rbc-background-event":"rbc-event",r,S.className,{"rbc-selected":o,"rbc-event-continues-earlier":u,"rbc-event-continues-later":c})},D))}var Mb=function(t){var r=t.children,n=t.className,a=t.style,i=t.
vendor: 18,636 bytes, line 19
19innerRef;return w.createElement("div",{className:n,style:a,ref:i},r)},Pb=w.forwardRef(function(e,t){return w.createElement(Mb,Object.assign({},e,{innerRef:t}))}),qb=["dayProp"],xb=["eventContainerWrapper","timeIndicatorWrapper"],gd=(function(e){function t(){var r;ee(this,t);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return r=se(this,t,[].concat(a)),r.state={selecting:!1,timeIndicatorPosition:null},r.intervalTriggered=!1,r.renderEvents=function(o){var s=o.events,u=o.isBackgroundEvent,c=r.props,l=c.rtl,f=c.selected,v=c.accessors,d=c.localizer,h=c.getters,p=c.components,g=c.step,y=c.timeslots,m=c.dayLayoutAlgorithm,_=c.resizable,b=r,E=b.slotMetrics,S=d.messages,D=Ab({events:s,accessors:v,slotMetrics:E,minimumStartDifference:Math.ceil(g*y/2),dayLayoutAlgorithm:m});return D.map(function(T,O){var C,R=T.event,I=T.style,P=v.end(R),L=v.start(R),j=(C=v.eventId(R))!==null&&C!==void 0?C:"evt_"+O,$="eventTimeRangeFormat",H,Y=E.startsBeforeDay(L),X=E.startsAfterDay(P);Y?$="eventTimeRangeEndFormat":X&&($="eventTimeRangeStartFormat"),Y&&X?H=S.allDay:H=d.format({start:L,end:P},$);var te=Y||E.startsBefore(L),A=X||E.startsAfter(P);return w.createElement(Cb,{style:I,event:R,label:H,key:j,getters:h,rtl:l,components:p,continuesPrior:te,continuesAfter:A,accessors:v,resource:r.props.resource,selected:zr(R,f),onClick:function(x){return r._select(G(G(G({},R),r.props.resource&&{sourceResource:r.props.resource}),u&&{isBackgroundEvent:!0}),x)},onDoubleClick:function(x){return r._doubleClick(R,x)},isBackgroundEvent:u,onKeyPress:function(x){return r._keyPress(R,x)},resizable:_})})},r._selectable=function(){var o=r.containerRef.current,s=r.props,u=s.longPressThreshold,c=s.localizer,l=r._selector=new ud(function(){return o},{longPressThreshold:u}),f=function(p){var g=r.props.onSelecting,y=r.state||{},m=v(p),_=m.startDate,b=m.endDate;g&&(c.eq(y.startDate,_,"minutes")&&c.eq(y.endDate,b,"minutes")||g({start:_,end:b,resourceId:r.props.resource})===!1)||(r.state.start!==m.start||r.state.end!==m.end||r.state.selecting!==m.selecting)&&r.setState(m)},v=function(p){var g=r.slotMetrics.closestSlotFromPoint(p,it(o));r.state.selecting||(r._initialSlot=g);var y=r._initialSlot;c.lte(y,g)?g=r.slotMetrics.nextSlot(g):c.gt(y,g)&&(y=r.slotMetrics.nextSlot(y));var m=r.slotMetrics.getRange(c.min(y,g),c.max(y,g));return G(G({},m),{},{selecting:!0,top:"".concat(m.top,"%"),height:"".concat(m.height,"%")})},d=function(p,g){if(!Rr(r.containerRef.current,p)){var y=v(p),m=y.startDate,_=y.endDate;r._selectSlot({startDate:m,endDate:_,action:g,box:p})}r.setState({selecting:!1})};l.on("selecting",f),l.on("selectStart",f),l.on("beforeSelect",function(h){if(r.props.selectable==="ignoreEvents")return!Rr(r.containerRef.current,h)}),l.on("click",function(h){return d(h,"click")}),l.on("doubleClick",function(h){return d(h,"doubleClick")}),l.on("select",function(h){r.state.selecting&&(r._selectSlot(G(G({},r.state),{},{action:"select",bounds:h})),r.setState({selecting:!1}))}),l.on("reset",function(){r.state.selecting&&r.setState({selecting:!1})})},r._teardownSelectable=function(){r._selector&&(r._selector.teardown(),r._selector=null)},r._selectSlot=function(o){for(var s=o.startDate,u=o.endDate,c=o.action,l=o.bounds,f=o.box,v=s,d=[];r.props.localizer.lte(v,u);)d.push(v),v=new Date(+v+r.props.step*60*1e3);V(r.props.onSelectSlot,{slots:d,start:s,end:u,resourceId:r.props.resource,action:c,bounds:l,box:f})},r._select=function(){for(var o=arguments.length,s=new Array(o),u=0;u<o;u++)s[u]=arguments[u];V(r.props.onSelectEvent,s)},r._doubleClick=function(){for(var o=arguments.length,s=new Array(o),u=0;u<o;u++)s[u]=arguments[u];V(r.props.onDoubleClickEvent,s)},r._keyPress=function(){for(var o=arguments.length,s=new Array(o),u=0;u<o;u++)s[u]=arguments[u];V(r.props.onKeyPressEvent,s)},r.slotMetrics=Ts(r.props),r.containerRef=F.createRef(),r}return oe(t,e),Q(t,[{key:"componentDidMount",value:function(){this.props.selectable&&this._selectable(),this.props.isNow&&this.setTimeIndicatorPositionUpdateInterval()}},{key:"componentWillUnmount",value:function(){this._teardownSelectable(),this.clearTimeIndicatorInterval()}},{key:"componentDidUpdate",value:function(n,a){this.props.selectable&&!n.selectable&&this._selectable(),!this.props.selectable&&n.selectable&&this._teardownSelectable();var i=this.props,o=i.getNow,s=i.isNow,u=i.localizer,c=i.date,l=i.min,f=i.max,v=u.neq(n.getNow(),o(),"minutes");if(n.isNow!==s||v){if(this.clearTimeIndicatorInterval(),s){var d=!v&&u.eq(n.date,c,"minutes")&&a.timeIndicatorPosition===this.state.timeIndicatorPosition;this.setTimeIndicatorPositionUpdateInterval(d)}}else s&&(u.neq(n.min,l,"minutes")||u.neq(n.max,f,"minutes"))&&this.positionTimeIndicator()}},{key:"setTimeIndicatorPositionUpdateInterval",value:function(){var n=this,a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;!this.intervalTriggered&&!a&&this.positionTimeIndicator(),this._timeIndicatorTimeout=window.setTimeout(function(){n.intervalTriggered=!0,n.positionTimeIndicator(),n.setTimeIndicatorPositionUpdateInterval()},6e4)}},{key:"clearTimeIndicatorInterval",value:function(){this.intervalTriggered=!1,window.clearTimeout(this._timeIndicatorTimeout)}},{key:"positionTimeIndicator",value:function(){var n=this.props,a=n.min,i=n.max,o=n.getNow,s=o();if(s>=a&&s<=i){var u=this.slotMetrics.getCurrentTimePosition(s);this.intervalTriggered=!0,this.setState({timeIndicatorPosition:u})}else this.clearTimeIndicatorInterval()}},{key:"render",value:function(){var n=this.props,a=n.date,i=n.max,o=n.rtl,s=n.isNow,u=n.resource,c=n.accessors,l=n.localizer,f=n.getters,v=f.dayProp,d=Oe(f,qb),h=n.components,p=h.eventContainerWrapper,g=h.timeIndicatorWrapper,y=Oe(h,xb);this.slotMetrics=this.slotMetrics.update(this.props);var m=this.slotMetrics,_=this.state,b=_.selecting,E=_.top,S=_.height,D=_.startDate,T=_.endDate,O={start:D,end:T},C=v(i,u),R=C.className,I=C.style,P={className:"rbc-current-time-indicator",style:{top:"".concat(this.state.timeIndicatorPosition,"%")}},L=y.dayColumnWrapper||Pb;return w.createElement(L,{ref:this.containerRef,date:a,style:I,className:J(R,"rbc-day-slot","rbc-time-column",s&&"rbc-now",s&&"rbc-today",b&&"rbc-slot-selecting"),slotMetrics:m,resource:u},m.groups.map(function(j,$){return w.createElement(hd,{key:$,group:j,resource:u,getters:d,components:y})}),w.createElement(p,{localizer:l,resource:u,accessors:c,getters:d,components:y,slotMetrics:m},w.createElement("div",{className:J("rbc-events-container",o&&"rtl")},this.renderEvents({events:this.props.backgroundEvents,isBackgroundEvent:!0}),this.renderEvents({events:this.props.events}))),b&&w.createElement("div",{className:"rbc-slot-selection",style:{top:E,height:S}},w.createElement("span",null,l.format(O,"selectRangeFormat"))),s&&this.intervalTriggered&&w.createElement(g,P,w.createElement("div",P)))}}])})(w.Component);gd.defaultProps={dragThroughEvents:!0,timeslots:2};var md=function(t){var r=t.label;return w.createElement(w.Fragment,null,r)},Ib=(function(e){function t(){var r;ee(this,t);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return r=se(this,t,[].concat(a)),r.handleHeaderClick=function(o,s,u){u.preventDefault(),V(r.props.onDrillDown,[o,s])},r.renderRow=function(o){var s=r.props,u=s.events,c=s.rtl,l=s.selectable,f=s.getNow,v=s.range,d=s.getters,h=s.localizer,p=s.accessors,g=s.components,y=s.resizable,m=p.resourceId(o),_=o?u.filter(function(b){return p.resource(b)===m}):u;return w.createElement(Wt,{isAllDay:!0,rtl:c,getNow:f,minRows:2,maxRows:r.props.allDayMaxRows+1,range:v,events:_,resourceId:m,className:"rbc-allday-cell",selectable:l,selected:r.props.selected,components:g,accessors:p,getters:d,localizer:h,onSelect:r.props.onSelectEvent,onShowMore:r.props.onShowMore,onDoubleClick:r.props.onDoubleClickEvent,onKeyPress:r.props.onKeyPressEvent,onSelectSlot:r.props.onSelectSlot,longPressThreshold:r.props.longPressThreshold,resizable:y})},r}return oe(t,e),Q(t,[{key:"renderHeaderCells",value:function(n){var a=this,i=this.props,o=i.localizer,s=i.getDrilldownView,u=i.getNow,c=i.getters.dayProp,l=i.components.header,f=l===void 0?Rs:l,v=u();return n.map(function(d,h){var p=s(d),g=o.format(d,"dayFormat"),y=c(d),m=y.className,_=y.style,b=w.createElement(f,{date:d,label:g,localizer:o});return w.createElement("div",{key:h,style:_,className:J("rbc-header",m,o.isSameDate(d,v)&&"rbc-today")},p?w.createElement("button",{type:"button",className:"rbc-button-link",onClick:function(S){return a.handleHeaderClick(d,p,S)}},b):w.createElement("span",null,b))})}},{key:"render",value:function(){var n=this,a=this.props,i=a.width,o=a.rtl,s=a.resources,u=a.range,c=a.events,l=a.getNow,f=a.accessors,v=a.selectable,d=a.components,h=a.getters,p=a.scrollRef,g=a.localizer,y=a.isOverflowing,m=a.components,_=m.timeGutterHeader,b=m.resourceHeader,E=b===void 0?md:b,S=a.resizable,D={};y&&(D[o?"marginLeft":"marginRight"]="".concat(os()-1,"px"));var T=s.groupEvents(c);return w.createElement("div",{style:D,ref:p,className:J("rbc-time-header",y&&"rbc-overflowing")},w.createElement("div",{className:"rbc-label rbc-time-header-gutter",style:{width:i,minWidth:i,maxWidth:i}},_&&w.createElement(_,null)),s.map(function(O,C){var R=he(O,2),I=R[0],P=R[1];return w.createElement("div",{className:"rbc-time-header-content",key:I||C},P&&w.createElement("div",{className:"rbc-row rbc-row-resource",key:"resource_".concat(C)},w.createElement("div",{className:"rbc-header"},w.createElement(E,{index:C,label:f.resourceTitle(P),resource:P}))),w.createElement("div",{className:"rbc-row rbc-time-header-cell".concat(u.length<=1?" rbc-time-header-cell-single-day":"")},n.renderHeaderCells(u)),w.createElement(Wt,{isAllDay:!0,rtl:o,getNow:l,minRows:2,maxRows:n.props.allDayMaxRows+1,range:u,events:T.get(I)||[],resourceId:P&&I,className:"rbc-allday-cell",selectable:v,selected:n.props.selected,components:d,accessors:f,getters:h,localizer:g,onSelect:n.props.onSelectEvent,onShowMore:n.props.onShowMore,onDoubleClick:n.props.onDoubleClickEvent,onKeyDown:n.props.onKeyPressEvent,onSelectSlot:n.props.onSelectSlot,longPressThreshold:n.props.longPressThreshold,resizable:S}))}))}}])})(w.Component),kb=(function(e){function t(){var r;ee(this,t);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return r=se(this,t,[].concat(a)),r.handleHeaderClick=function(o,s,u){u.preventDefault(),V(r.props.onDrillDown,[o,s])},r}return oe(t,e),Q(t,[{key:"renderHeaderCells",value:function(n){var a=this,i=this.props,o=i.localizer,s=i.getDrilldownView,u=i.getNow,c=i.getters.dayProp,l=i.components,f=l.header,v=f===void 0?Rs:f,d=l.resourceHeader,h=d===void 0?md:d,p=i.resources,g=i.accessors,y=i.events,m=i.rtl,_=i.selectable,b=i.components,E=i.getters,S=i.resizable,D=u(),T=p.groupEvents(y);return n.map(function(O,C){var R=s(O),I=o.format(O,"dayFormat"),P=c(O),L=P.className,j=P.style,$=w.createElement(v,{date:O,label:I,localizer:o});return w.createElement("div",{key:C,className:"rbc-time-header-content rbc-resource-grouping"},w.createElement("div",{className:"rbc-row rbc-time-header-cell".concat(n.length<=1?" rbc-time-header-cell-single-day":"")},w.createElement("div",{style:j,className:J("rbc-header",L,o.isSameDate(O,D)&&"rbc-today")},R?w.createElement("button",{type:"button",className:"rbc-button-link",onClick:function(Y){return a.handleHeaderClick(O,R,Y)}},$):w.createElement("span",null,$))),w.createElement("div",{className:"rbc-row"},p.map(function(H,Y){var X=he(H,2),te=X[0],A=X[1];return w.createElement("div",{key:"resource_".concat(te,"_").concat(Y),className:J("rbc-header",L,o.isSameDate(O,D)&&"rbc-today")},w.createElement(h,{index:Y,label:g.resourceTitle(A),resource:A}))})),w.createElement("div",{className:"rbc-row rbc-m-b-negative-3 rbc-h-full"},p.map(function(H,Y){var X=he(H,2),te=X[0],A=X[1],M=(T.get(te)||[]).filter(function(x){return o.isSameDate(x.start,O)||o.isSameDate(x.end,O)});return w.createElement(Wt,{key:"resource_".concat(te,"_").concat(Y),isAllDay:!0,rtl:m,getNow:u,minRows:2,maxRows:a.props.allDayMaxRows+1,range:[O],events:M,resourceId:A&&te,className:"rbc-allday-cell",selectable:_,selected:a.props.selected,components:b,accessors:g,getters:E,localizer:o,onSelect:a.props.onSelectEvent,onShowMore:a.props.onShowMore,onDoubleClick:a.props.onDoubleClickEvent,onKeyDown:a.props.onKeyPressEvent,onSelectSlot:a.props.onSelectSlot,longPressThreshold:a.props.longPressThreshold,resizable:S})})))})}},{key:"render",value:function(){var n=this.props,a=n.width,i=n.rtl,o=n.range,s=n.scrollRef,u=n.isOverflowing,c=n.components.timeGutterHeader,l={};return u&&(l[i?"marginLeft":"marginRight"]="".concat(os()-1,"px")),w.createElement("div",{style:l,ref:s,className:J("rbc-time-header",u&&"rbc-overflowing")},w.createElement("div",{className:"rbc-label rbc-time-header-gutter",style:{width:a,minWidth:a,maxWidth:a}},c&&w.createElement(c,null)),this.renderHeaderCells(o))}}])})(w.Component);function Nb(e){var t=e.min,r=e.max,n=e.localizer;return n.getTimezoneOffset(t)!==n.getTimezoneOffset(r)?{start:n.add(t,-1,"day"),end:n.add(r,-1,"day")}:{start:t,end:r}}var Lb=function(t){var r=t.min,n=t.max,a=t.timeslots,i=t.step,o=t.localizer,s=t.getNow,u=t.resource,c=t.components,l=t.getters,f=t.gutterRef,v=c.timeGutterWrapper,d=F.useMemo(function(){return Nb({min:r,max:n,localizer:o})},[r==null?void 0:r.toISOString(),n==null?void 0:n.toISOString(),o]),h=d.start,p=d.end,g=F.useState(Ts({min:h,max:p,timeslots:a,step:i,localizer:o})),y=he(g,2),m=y[0],_=y[1];F.useEffect(function(){m&&_(m.update({min:h,max:p,timeslots:a,step:i,localizer:o}))},[h==null?void 0:h.toISOString(),p==null?void 0:p.toISOString(),a,i]);var b=F.useCallback(function(E,S){if(S)return null;var D=m.dateIsInGroup(s(),S);return w.createElement("span",{className:J("rbc-label",D&&"rbc-now")},o.format(E,"timeGutterFormat"))},[m,o,s]);return w.createElement(v,{slotMetrics:m},w.createElement("div",{className:"rbc-time-gutter rbc-time-column",ref:f},m.groups.map(function(E,S){return w.createElement(hd,{key:S,group:E,resource:u,components:c,renderSlot:b,getters:l})})))},$b=w.forwardRef(function(e,t){return w.createElement(Lb,Object.assign({gutterRef:t},e))}),Mo={};function Fb(e,t){return{map:function(n){return e?e.map(function(a,i){return n([t.resourceId(a),a],i)}):[n([Mo,null],0)]},groupEvents:function(n){var a=new Map;return e?(n.forEach(function(i){var o=t.resource(i)||Mo;if(Array.isArray(o))o.forEach(function(u){var c=a.get(u)||[];c.push(i),a.set(u,c)});else{var s=a.get(o)||[];s.push(i),a.set(o,s)}}),a):(a.set(Mo,n),a)}}}var bt=(function(e){function t(r){var n;return ee(this,t),n=se(this,t,[r]),n.handleScroll=function(a){n.scrollRef.current&&(n.scrollRef.current.scrollLeft=a.target.scrollLeft)},n.handleResize=function(){cu(n.rafHandle),n.rafHandle=Dv(n.checkOverflow)},n.handleKeyPressEvent=function(){n.clearSelection();for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];V(n.props.onKeyPressEvent,i)},n.handleSelectEvent=function(){n.clearSelection();for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];V(n.props.onSelectEvent,i)},n.handleDoubleClickEvent=function(){n.clearSelection();for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];V(n.props.onDoubleClickEvent,i)},n.handleShowMore=function(a,i,o,s,u){var c=n.props,l=c.popup,f=c.onDrillDown,v=c.onShowMore,d=c.getDrilldownView,h=c.doShowMoreDrillDown;if(n.clearSelection(),l){var p=Ev(o,n.containerRef.current);n.setState({overlay:{date:i,events:a,position:G(G({},p),{},{width:"200px"}),target:u}})}else h&&V(f,[i,d(i)||ue.DAY]);V(v,[a,i,s])},n.handleSelectAllDaySlot=function(a,i){var o=n.props.onSelectSlot,s=new Date(a[0]),u=new Date(a[a.length-1]);u.setDate(a[a.length-1].getDate()+1),V(o,{slots:a,start:s,end:u,action:i.action,resourceId:i.resourceId})},n.overlayDisplay=function(){n.setState({overlay:null})},n.checkOverflow=function(){if(!n._updatingOverflow){var a=n.contentRef.current;if(a!=null&&a.scrollHeight){var i=a.scrollHeight>a.clientHeight;n.state.isOverflowing!==i&&(n._updatingOverflow=!0,n.setState({isOverflowing:i},function(){n._updatingOverflow=!1}))}}},n.memoizedResources=zv(function(a,i){return Fb(a,i)}),n.state={gutterWidth:void 0,isOverflowing:null},n.scrollRef=w.createRef(),n.contentRef=w.createRef(),n.containerRef=w.createRef(),n._scrollRatio=null,n.gutterRef=F.createRef(),n}return oe(t,e),Q(t,[{key:"getSnapshotBeforeUpdate",value:function(){return this.checkOverflow(),null}},{key:"componentDidMount",value:function(){this.props.width==null&&this.measureGutter(),this.calculateScroll(),this.applyScroll(),window.addEventListener("resize",this.handleResize)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.handleResize),cu(this.rafHandle),this.measureGutterAnimationFrameRequest&&window.cancelAnimationFrame(this.measureGutterAnimationFrameRequest)}},{key:"componentDidUpdate",value:function(){this.applyScroll()}},{key:"renderDayColumn",value:function(n,a,i,o,s,u,c,l,f,v){var d=this.props,h=d.min,p=d.max,g=(o.get(a)||[]).filter(function(m){return u.inRange(n,c.start(m),c.end(m),"day")}),y=(s.get(a)||[]).filter(function(m){return u.inRange(n,c.start(m),c.end(m),"day")});return w.createElement(gd,Object.assign({},this.props,{localizer:u,min:u.merge(n,h),max:u.merge(n,p),resource:i&&a,components:l,isNow:u.isSameDate(n,v),key:"".concat(a,"-").concat(n),date:n,events:g,backgroundEvents:y,dayLayoutAlgorithm:f}))}},{key:"renderResourcesFirst",value:function(n,a,i,o,s,u,c,l,f){var v=this;return a.map(function(d){var h=he(d,2),p=h[0],g=h[1];return n.map(function(y){return v.renderDayColumn(y,p,g,i,o,s,u,l,f,c)})})}},{key:"renderRangeFirst",value:function(n,a,i,o,s,u,c,l,f){var v=this;return n.map(function(d){return w.createElement("div",{style:{display:"flex",minHeight:"100%",flex:1},key:d},a.map(function(h){var p=he(h,2),g=p[0],y=p[1];return w.createElement("div",{style:{flex:1},key:u.resourceId(y)},v.renderDayColumn(d,g,y,i,o,s,u,l,f,c))}))})}},{key:"renderEvents",value:function(n,a,i,o){var s=this.props,u=s.accessors,c=s.localizer,l=s.resourceGroupingLayout,f=s.components,v=s.dayLayoutAlgorithm,d=this.memoizedResources(this.props.resources,u),h=d.groupEvents(a),p=d.groupEvents(i);return l?this.renderRangeFirst(n,d,h,p,c,u,o,f,v):this.renderResourcesFirst(n,d,h,p,c,u,o,f,v)}},{key:"render",value:function(){var n,a=this.props,i=a.events,o=a.backgroundEvents,s=a.range,u=a.width,c=a.rtl,l=a.selected,f=a.getNow,v=a.resources,d=a.components,h=a.accessors,p=a.getters,g=a.localizer,y=a.min,m=a.max,_=a.showMultiDayTimes,b=a.longPressThreshold,E=a.resizable,S=a.resourceGroupingLayout;u=u||this.state.gutterWidth;var D=s[0],T=s[s.length-1];this.slots=s.length;var O=[],C=[],R=[];
19i.forEach(function(P){if(Bt(P,D,T,h,g)){var L=h.start(P),j=h.end(P);h.allDay(P)||g.startAndEndAreDateOnly(L,j)||!_&&!g.isSameDate(L,j)?O.push(P):C.push(P)}}),o.forEach(function(P){Bt(P,D,T,h,g)&&R.push(P)}),O.sort(function(P,L){return Bo(P,L,h,g)});var I={range:s,events:O,width:u,rtl:c,getNow:f,localizer:g,selected:l,allDayMaxRows:this.props.showAllEvents?1/0:(n=this.props.allDayMaxRows)!==null&&n!==void 0?n:1/0,resources:this.memoizedResources(v,h),selectable:this.props.selectable,accessors:h,getters:p,components:d,scrollRef:this.scrollRef,isOverflowing:this.state.isOverflowing,longPressThreshold:b,onSelectSlot:this.handleSelectAllDaySlot,onSelectEvent:this.handleSelectEvent,onShowMore:this.handleShowMore,onDoubleClickEvent:this.props.onDoubleClickEvent,onKeyPressEvent:this.props.onKeyPressEvent,onDrillDown:this.props.onDrillDown,getDrilldownView:this.props.getDrilldownView,resizable:E};return w.createElement("div",{className:J("rbc-time-view",v&&"rbc-time-view-resources"),ref:this.containerRef},v&&v.length>1&&S?w.createElement(kb,I):w.createElement(Ib,I),this.props.popup&&this.renderOverlay(),w.createElement("div",{ref:this.contentRef,className:"rbc-time-content",onScroll:this.handleScroll},w.createElement($b,{date:D,ref:this.gutterRef,localizer:g,min:g.merge(D,y),max:g.merge(D,m),step:this.props.step,getNow:this.props.getNow,timeslots:this.props.timeslots,components:d,className:"rbc-time-gutter",getters:p}),this.renderEvents(s,C,R,f())))}},{key:"renderOverlay",value:function(){var n,a,i=this,o=(n=(a=this.state)===null||a===void 0?void 0:a.overlay)!==null&&n!==void 0?n:{},s=this.props,u=s.accessors,c=s.localizer,l=s.components,f=s.getters,v=s.selected,d=s.popupOffset,h=s.handleDragStart,p=function(){return i.setState({overlay:null})};return w.createElement(Os,{overlay:o,accessors:u,localizer:c,components:l,getters:f,selected:v,popupOffset:d,ref:this.containerRef,handleKeyPressEvent:this.handleKeyPressEvent,handleSelectEvent:this.handleSelectEvent,handleDoubleClickEvent:this.handleDoubleClickEvent,handleDragStart:h,show:!!o.position,overlayDisplay:this.overlayDisplay,onHide:p})}},{key:"clearSelection",value:function(){clearTimeout(this._selectTimer),this._pendingSelection=[]}},{key:"measureGutter",value:function(){var n=this;this.measureGutterAnimationFrameRequest&&window.cancelAnimationFrame(this.measureGutterAnimationFrameRequest),this.measureGutterAnimationFrameRequest=window.requestAnimationFrame(function(){var a,i=(a=n.gutterRef)!==null&&a!==void 0&&a.current?Fo(n.gutterRef.current):void 0;i&&n.state.gutterWidth!==i&&n.setState({gutterWidth:i})})}},{key:"applyScroll",value:function(){if(this._scrollRatio!=null&&this.props.enableAutoScroll===!0){var n=this.contentRef.current;n.scrollTop=n.scrollHeight*this._scrollRatio,this._scrollRatio=null}}},{key:"calculateScroll",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,a=n.min,i=n.max,o=n.scrollToTime,s=n.localizer,u=s.diff(s.merge(o,a),o,"milliseconds"),c=s.diff(a,i,"milliseconds");this._scrollRatio=u/c}}])})(F.Component);bt.defaultProps={step:30,timeslots:2,resourceGroupingLayout:!1};var jb=["date","localizer","min","max","scrollToTime","enableAutoScroll"],Kr=(function(e){function t(){return ee(this,t),se(this,t,arguments)}return oe(t,e),Q(t,[{key:"render",value:function(){var n=this.props,a=n.date,i=n.localizer,o=n.min,s=o===void 0?i.startOf(new Date,"day"):o,u=n.max,c=u===void 0?i.endOf(new Date,"day"):u,l=n.scrollToTime,f=l===void 0?i.startOf(new Date,"day"):l,v=n.enableAutoScroll,d=v===void 0?!0:v,h=Oe(n,jb),p=t.range(a,{localizer:i});return w.createElement(bt,Object.assign({},h,{range:p,eventOffset:10,localizer:i,min:s,max:c,scrollToTime:f,enableAutoScroll:d}))}}])})(w.Component);Kr.range=function(e,t){var r=t.localizer;return[r.startOf(e,"day")]};Kr.navigate=function(e,t,r){var n=r.localizer;switch(t){case fe.PREVIOUS:return n.add(e,-1,"day");case fe.NEXT:return n.add(e,1,"day");default:return e}};Kr.title=function(e,t){var r=t.localizer;return r.format(e,"dayHeaderFormat")};var Hb=["date","localizer","min","max","scrollToTime","enableAutoScroll"],Be=(function(e){function t(){return ee(this,t),se(this,t,arguments)}return oe(t,e),Q(t,[{key:"render",value:function(){var n=this.props,a=n.date,i=n.localizer,o=n.min,s=o===void 0?i.startOf(new Date,"day"):o,u=n.max,c=u===void 0?i.endOf(new Date,"day"):u,l=n.scrollToTime,f=l===void 0?i.startOf(new Date,"day"):l,v=n.enableAutoScroll,d=v===void 0?!0:v,h=Oe(n,Hb),p=t.range(a,this.props);return w.createElement(bt,Object.assign({},h,{range:p,eventOffset:15,localizer:i,min:s,max:c,scrollToTime:f,enableAutoScroll:d}))}}])})(w.Component);Be.defaultProps=bt.defaultProps;Be.navigate=function(e,t,r){var n=r.localizer;switch(t){case fe.PREVIOUS:return n.add(e,-1,"week");case fe.NEXT:return n.add(e,1,"week");default:return e}};Be.range=function(e,t){var r=t.localizer,n=r.startOfWeek(),a=r.startOf(e,"week",n),i=r.endOf(e,"week",n);return r.range(a,i)};Be.title=function(e,t){var r=t.localizer,n=Be.range(e,{localizer:r}),a=Xv(n),i=a[0],o=a.slice(1);return r.format({start:i,end:o.pop()},"dayRangeHeaderFormat")};var Bb=["date","localizer","min","max","scrollToTime","enableAutoScroll"];function As(e,t){return Be.range(e,t).filter(function(r){return[6,0].indexOf(r.getDay())===-1})}var tr=(function(e){function t(){return ee(this,t),se(this,t,arguments)}return oe(t,e),Q(t,[{key:"render",value:function(){var n=this.props,a=n.date,i=n.localizer,o=n.min,s=o===void 0?i.startOf(new Date,"day"):o,u=n.max,c=u===void 0?i.endOf(new Date,"day"):u,l=n.scrollToTime,f=l===void 0?i.startOf(new Date,"day"):l,v=n.enableAutoScroll,d=v===void 0?!0:v,h=Oe(n,Bb),p=As(a,this.props);return w.createElement(bt,Object.assign({},h,{range:p,eventOffset:15,localizer:i,min:s,max:c,scrollToTime:f,enableAutoScroll:d}))}}])})(w.Component);tr.defaultProps=bt.defaultProps;tr.range=As;tr.navigate=Be.navigate;tr.title=function(e,t){var r=t.localizer,n=As(e,{localizer:r}),a=Xv(n),i=a[0],o=a.slice(1);return r.format({start:i,end:o.pop()},"dayRangeHeaderFormat")};var Gr=30;function Yr(e){var t=e.accessors,r=e.components,n=e.date,a=e.events,i=e.getters,o=e.length,s=o===void 0?Gr:o,u=e.localizer,c=e.onDoubleClickEvent,l=e.onSelectEvent,f=e.selected,v=F.useRef(null),d=F.useRef(null),h=F.useRef(null),p=F.useRef(null),g=F.useRef(null);F.useEffect(function(){_()});var y=function(T,O,C){var R=r.event,I=r.date;return O=O.filter(function(P){return Bt(P,u.startOf(T,"day"),u.endOf(T,"day"),t,u)}),O.map(function(P,L){var j=t.title(P),$=t.end(P),H=t.start(P),Y=i.eventProp(P,H,$,zr(P,f)),X=L===0&&u.format(T,"agendaDateFormat"),te=L===0?w.createElement("td",{rowSpan:O.length,className:"rbc-agenda-date-cell"},I?w.createElement(I,{day:T,label:X}):X):!1;return w.createElement("tr",{key:C+"_"+L,className:Y.className,style:Y.style},te,w.createElement("td",{className:"rbc-agenda-time-cell"},m(T,P)),w.createElement("td",{className:"rbc-agenda-event-cell",onClick:function(M){return l&&l(P,M)},onDoubleClick:function(M){return c&&c(P,M)}},R?w.createElement(R,{event:P,title:j}):j))},[])},m=function(T,O){var C="",R=r.time,I=u.messages.allDay,P=t.end(O),L=t.start(O);return t.allDay(O)||(u.eq(L,P)?I=u.format(L,"agendaTimeFormat"):u.isSameDate(L,P)?I=u.format({start:L,end:P},"agendaTimeRangeFormat"):u.isSameDate(T,L)?I=u.format(L,"agendaTimeFormat"):u.isSameDate(T,P)&&(I=u.format(P,"agendaTimeFormat"))),u.gt(T,L,"day")&&(C="rbc-continues-prior"),u.lt(T,P,"day")&&(C+=" rbc-continues-after"),w.createElement("span",{className:C.trim()},R?w.createElement(R,{event:O,day:T,label:I}):I)},_=function(){if(g.current){var T=v.current,O=g.current.firstChild;if(O){var C=p.current.scrollHeight>p.current.clientHeight,R=[],I=R;R=[Fo(O.children[0]),Fo(O.children[1])],(I[0]!==R[0]||I[1]!==R[1])&&(d.current.style.width=R[0]+"px",h.current.style.width=R[1]+"px"),C?(Bh(T,"rbc-header-overflowing"),T.style.marginRight=os()+"px"):Wh(T,"rbc-header-overflowing")}}},b=u.messages,E=u.add(n,s,"day"),S=u.range(n,E,"day");return a=a.filter(function(D){return Bt(D,u.startOf(n,"day"),u.endOf(E,"day"),t,u)}),a.sort(function(D,T){return+t.start(D)-+t.start(T)}),w.createElement("div",{className:"rbc-agenda-view"}
19,a.length!==0?w.createElement(w.Fragment,null,w.createElement("table",{ref:v,className:"rbc-agenda-table"},w.createElement("thead",null,w.createElement("tr",null,w.createElement("th",{className:"rbc-header",ref:d},b.date),w.createElement("th",{className:"rbc-header",ref:h},b.time),w.createElement("th",{className:"rbc-header"},b.event)))),w.createElement("div",{className:"rbc-agenda-content",ref:p},w.createElement("table",{className:"rbc-agenda-table"},w.createElement("tbody",{ref:g},S.map(function(D,T){return y(D,a,T)}))))):w.createElement("span",{className:"rbc-agenda-empty"},b.noEventsInRange))}Yr.range=function(e,t){var r=t.length,n=r===void 0?Gr:r,a=t.localizer,i=a.add(e,n,"day");return{start:e,end:i}};Yr.navigate=function(e,t,r){var n=r.length,a=n===void 0?Gr:n,i=r.localizer;switch(t){case fe.PREVIOUS:return i.add(e,-a,"day");case fe.NEXT:return i.add(e,a,"day");default:return e}};Yr.title=function(e,t){var r=t.length,n=r===void 0?Gr:r,a=t.localizer,i=a.add(e,n,"day");return a.format({start:e,end:i},"agendaHeaderFormat")};var br=Xe(Xe(Xe(Xe(Xe({},ue.MONTH,Ur),ue.WEEK,Be),ue.WORK_WEEK,tr),ue.DAY,Kr),ue.AGENDA,Yr),Wb=["action","date","today"];function zb(e,t){var r=t.action,n=t.date,a=t.today,i=Oe(t,Wb);switch(e=typeof e=="string"?br[e]:e,r){case fe.TODAY:n=a||new Date;break;case fe.DATE:break;default:Mt(e&&typeof e.navigate=="function","Calendar View components must implement a static `.navigate(date, action)` method.s"),n=e.navigate(n,r,i)}return n}function Ub(e,t){var r=null;return typeof t=="function"?r=t(e):typeof t=="string"&&qe(e)==="object"&&e!=null&&t in e&&(r=e[t]),r}var Pe=function(t){return function(r){return Ub(r,t)}},Kb=["view","date","getNow","onNavigate"],Gb=["view","toolbar","events","backgroundEvents","resourceGroupingLayout","style","className","elementProps","date","getNow","length","showMultiDayTimes","onShowMore","doShowMoreDrillDown","components","formats","messages","culture"];function yd(e){if(Array.isArray(e))return e;for(var t=[],r=0,n=Object.entries(e);r<n.length;r++){var a=he(n[r],2),i=a[0],o=a[1];o&&t.push(i)}return t}function Yb(e,t){var r=t.views,n=yd(r);return n.indexOf(e)!==-1}var bd=(function(e){function t(){var r;ee(this,t);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return r=se(this,t,[].concat(a)),r.getViews=function(){var o=r.props.views;return Array.isArray(o)?gy(o,function(s,u){return s[u]=br[u]},{}):qe(o)==="object"?Fm(o,function(s,u){return s===!0?br[u]:s}):br},r.getView=function(){var o=r.getViews();return o[r.props.view]},r.getDrilldownView=function(o){var s=r.props,u=s.view,c=s.drilldownView,l=s.getDrilldownView;return l?l(o,u,Object.keys(r.getViews())):c},r.handleRangeChange=function(o,s,u){var c=r.props,l=c.onRangeChange,f=c.localizer;l&&s.range&&l(s.range(o,{localizer:f}),u)},r.handleNavigate=function(o,s){var u=r.props,c=u.view,l=u.date,f=u.getNow,v=u.onNavigate,d=Oe(u,Kb),h=r.getView(),p=f();l=zb(h,G(G({},d),{},{action:o,date:s||l||p,today:p})),v(l,c,o),r.handleRangeChange(l,h)},r.handleViewChange=function(o){o!==r.props.view&&Yb(o,r.props)&&r.props.onView(o);var s=r.getViews();r.handleRangeChange(r.props.date||r.props.getNow(),s[o],o)},r.handleSelectEvent=function(){for(var o=arguments.length,s=new Array(o),u=0;u<o;u++)s[u]=arguments[u];V(r.props.onSelectEvent,s)},r.handleDoubleClickEvent=function(){for(var o=arguments.length,s=new Array(o),u=0;u<o;u++)s[u]=arguments[u];V(r.props.onDoubleClickEvent,s)},r.handleKeyPressEvent=function(){for(var o=arguments.length,s=new Array(o),u=0;u<o;u++)s[u]=arguments[u];V(r.props.onKeyPressEvent,s)},r.handleSelectSlot=function(o){V(r.props.onSelectSlot,o)},r.handleDrillDown=function(o,s){var u=r.props.onDrillDown;if(u){u(o,s,r.drilldownView);return}s&&r.handleViewChange(s),r.handleNavigate(fe.DATE,o)},r.state={context:t.getContext(r.props)},r}return oe(t,e),Q(t,[{key:"render",value:function(){var n=this.props,a=n.view,i=n.toolbar,o=n.events,s=n.backgroundEvents,u=n.resourceGroupingLayout,c=n.style,l=n.className,f=n.elementProps,v=n.date,d=n.getNow,h=n.length,p=n.showMultiDayTimes,g=n.onShowMore,y=n.doShowMoreDrillDown;n.components,n.formats,n.messages,n.culture;var m=Oe(n,Gb);v=v||d();var _=this.getView(),b=this.state.context,E=b.accessors,S=b.components,D=b.getters,T=b.localizer,O=b.viewNames,C=S.toolbar||Zy,R=_.title(v,{localizer:T,length:h});return w.createElement("div",Object.assign({},f,{className:J(l,"rbc-calendar",m.rtl&&"rbc-rtl"),style:c}
19),i&&w.createElement(C,{date:v,view:a,views:O,label:R,onView:this.handleViewChange,onNavigate:this.handleNavigate,localizer:T}),w.createElement(_,Object.assign({},m,{events:o,backgroundEvents:s,date:v,getNow:d,length:h,localizer:T,getters:D,components:S,accessors:E,showMultiDayTimes:p,getDrilldownView:this.getDrilldownView,onNavigate:this.handleNavigate,onDrillDown:this.handleDrillDown,onSelectEvent:this.handleSelectEvent,onDoubleClickEvent:this.handleDoubleClickEvent,onKeyPressEvent:this.handleKeyPressEvent,onSelectSlot:this.handleSelectSlot,onShowMore:g,doShowMoreDrillDown:y,resourceGroupingLayout:u})))}}],[{key:"getDerivedStateFromProps",value:function(n){return{context:t.getContext(n)}}},{key:"getContext",value:function(n){var a=n.startAccessor,i=n.endAccessor,o=n.allDayAccessor,s=n.tooltipAccessor,u=n.titleAccessor,c=n.resourceAccessor,l=n.resourceIdAccessor,f=n.resourceTitleAccessor,v=n.eventIdAccessor,d=n.eventPropGetter,h=n.backgroundEventPropGetter,p=n.slotPropGetter,g=n.slotGroupPropGetter,y=n.dayPropGetter,m=n.view,_=n.views,b=n.localizer,E=n.culture,S=n.messages,D=S===void 0?{}:S,T=n.components,O=T===void 0?{}:T,C=n.formats,R=C===void 0?{}:C,I=yd(_),P=Qy(D);return{viewNames:I,localizer:Xy(b,E,R,P),getters:{eventProp:function(){return d&&d.apply(void 0,arguments)||{}},backgroundEventProp:function(){return h&&h.apply(void 0,arguments)||{}},slotProp:function(){return p&&p.apply(void 0,arguments)||{}},slotGroupProp:function(){return g&&g.apply(void 0,arguments)||{}},dayProp:function(){return y&&y.apply(void 0,arguments)||{}}},components:Nm(O[m]||{},dy(O,I),{eventWrapper:Se,backgroundEventWrapper:Se,eventContainerWrapper:Se,dateCellWrapper:Se,weekWrapper:Se,timeSlotWrapper:Se,timeGutterWrapper:Se,timeIndicatorWrapper:Se}),accessors:{start:Pe(a),end:Pe(i),allDay:Pe(o),tooltip:Pe(s),title:Pe(u),resource:Pe(c),resourceId:Pe(l),resourceTitle:Pe(f),eventId:Pe(v)}}}}])})(w.Component);bd.defaultProps={events:[],backgroundEvents:[],elementProps:{},popup:!1,toolbar:!0,view:ue.MONTH,views:[ue.MONTH,ue.WEEK,ue.DAY,ue.AGENDA],step:30,length:30,allDayMaxRows:1/0,doShowMoreDrillDown:!0,drilldownView:ue.DAY,titleAccessor:"title",tooltipAccessor:"title",allDayAccessor:"allDay",startAccessor:"start",endAccessor:"end",resourceAccessor:"resourceId",resourceIdAccessor:"id",resourceTitleAccessor:"title",eventIdAccessor:"id",longPressThreshold:250,getNow:function(){return new Date},dayLayoutAlgorithm:"overlap"};var rw=sv(bd,{view:"onView",date:"onNavigate",selected:"onSelectEvent"}),Vb=function(t,r,n){var a=t.start,i=t.end;return n.format(a,"MMMM DD",r)+" â "+n.format(i,n.eq(a,i,"month")?"DD":"MMMM DD",r)},Xb=function(t,r,n){var a=t.start,i=t.end;return n.format(a,"L",r)+" â "+n.format(i,"L",r)},Po=function(t,r,n){var a=t.start,i=t.end;return n.format(a,"LT",r)+" â "+n.format(i,"LT",r)},Zb=function(t,r,n){var a=t.start;return n.format(a,"LT",r)+" â "},Jb=function(t,r,n){var a=t.end;return" â "+n.format(a,"LT",r)},Qb={dateFormat:"DD",dayFormat:"DD ddd",weekdayFormat:"ddd",selectRangeFormat:Po,eventTimeRangeFormat:Po,eventTimeRangeStartFormat:Zb,eventTimeRangeEndFormat:Jb,timeGutterFormat:"LT",monthHeaderFormat:"MMMM YYYY",dayHeaderFormat:"dddd MMM DD",dayRangeHeaderFormat:Vb,agendaHeaderFormat:Xb,agendaDateFormat:"ddd MMM DD",agendaTimeFormat:"LT",agendaTimeRangeFormat:Po};function je(e){var t=e&&e.toLowerCase();return t==="FullYear"?t="year":t||(t=void 0),t}function nw(e){var t=function(M,x){return x?M.locale(x):M};function r(A){return e(A).toDate().getTimezoneOffset()}function n(A,M){var x,k,N=e(A).local(),B=e(M).local();if(!e.tz)return N.toDate().getTimezoneOffset()-B.toDate().getTimezoneOffset();var K=(x=N==null||(k=N._z)===null||k===void 0?void 0:k.name)!==null&&x!==void 0?x:e.tz.guess(),z=e.tz.zone(K).utcOffset(+N),ve=e.tz.zone(K).utcOffset(+B);return z-ve}function a(A){var M=e(A).startOf("day");return n(M,A)}function i(A,M,x){var k=je(x),N=k?e(A).startOf(k):e(A),B=k?e(M).startOf(k):e(M);return[N,B,k]}function o(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,M=arguments.length>1?arguments[1]:void 0,x=je(M);return x?e(A).startOf(x).toDate():e(A).toDate()}function s(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,M=arguments.length>1?arguments[1]:void 0,x=je(M);return x?e(A).endOf(x).toDate():e(A).toDate()}function u(A,M,x){var k=i(A,M,x),N=he(k,3),B=N[0],K=N[1],z=N[2];return B.isSame(K,z)}function c(A,M,x){return!u(A,M,x)}function l(A,M,x){var k=i(A,M,x),N=he(k,3),B=N[0],K=N[1],z=N[2];return B.isAfter(K,z)}function f(A,M,x){var k=i(A,M,x),N=he(k,3),B=N[0],K=N[1],z=N[2];return B.isBefore(K,z)}function v(A,M,x){var k=i(A,M,x),N=he(k,3),B=N[0],K=N[1],z=N[2];return B.isSameOrBefore(K,z)}function d(A,M,x){var k=i(A,M,x),N=he(k,3),B=N[0],K=N[1],z=N[2];return B.isSameOrBefore(K,z)}function h(A,M,x){var k=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"day",N=je(k),B=e(A),K=e(M),z=e(x);return B.isBetween(K,z,N,"[]")}
19function p(A,M){var x=e(A),k=e(M),N=e.min(x,k);return N.toDate()}function g(A,M){var x=e(A),k=e(M),N=e.max(x,k);return N.toDate()}function y(A,M){if(!A&&!M)return null;var x=e(M).format("HH:mm:ss"),k=e(A).startOf("day").format("MM/DD/YYYY");return e("".concat(k," ").concat(x),"MM/DD/YYYY HH:mm:ss").toDate()}function m(A,M,x){var k=je(x);return e(A).add(M,k).toDate()}function _(A,M){for(var x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"day",k=je(x),N=e(A).toDate(),B=[];d(N,M);)B.push(N),N=m(N,1,k);return B}function b(A,M){var x=je(M),k=o(A,x);return u(k,A)?k:m(k,1,x)}function E(A,M){var x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"day",k=je(x),N=e(A),B=e(M);return B.diff(N,k)}function S(A){var M=e(A);return M.minutes()}function D(A){var M=A?e.localeData(A):e.localeData();return M?M.firstDayOfWeek():0}function T(A){return e(A).startOf("month").startOf("week").toDate()}function O(A){return e(A).endOf("month").endOf("week").toDate()}function C(A){for(var M=T(A),x=O(A),k=[];d(M,x);)k.push(M),M=m(M,1,"d");return k}function R(A,M,x){return e(A).startOf("day").minute(M+x).toDate()}function I(A,M){return E(A,M,"minutes")}function P(A){var M=e(A).startOf("day"),x=e(A);return x.diff(M,"minutes")+a(A)}function L(A,M){var x=e(A),k=e(M);return x.isBefore(k,"day")}function j(A,M,x){var k=e(M),N=e(x);return k.isSameOrAfter(N,"minutes")}function $(A,M){var x=e(A),k=e(M),N=e.duration(k.diff(x));return N.days()}function H(A){var M=A.evtA,x=M.start,k=M.end,N=M.allDay,B=A.evtB,K=B.start,z=B.end,ve=B.allDay,ke=+o(x,"day")-+o(K,"day"),Te=$(x,k),Ke=$(K,z);return ke||Ke-Te||!!ve-!!N||+x-+K||+k-+z}function Y(A){var M=A.event,x=M.start,k=M.end,N=A.range,B=N.start,K=N.end,z=e(x).startOf("day"),ve=e(k),ke=e(B),Te=e(K),Ke=z.isSameOrBefore(Te,"day"),st=!z.isSame(ve,"minutes"),wt=st?ve.isAfter(ke,"minutes"):ve.isSameOrAfter(ke,"minutes");return Ke&&wt}function X(A,M){var x=e(A),k=e(M);return x.isSame(k,"day")}function te(){var A=new Date,M=/-/.test(A.toString())?"-":"",x=A.getTimezoneOffset(),k=Number("".concat(M).concat(Math.abs(x))),N=e().utcOffset();return N>k?1:0}return new Vy({formats:Qb,firstOfWeek:D,firstVisibleDay:T,lastVisibleDay:O,visibleDays:C,format:function(M,x,k){return t(e(M),k).format(x)},lt:f,lte:d,gt:l,gte:v,eq:u,neq:c,merge:y,inRange:h,startOf:o,endOf:s,range:_,add:m,diff:E,ceil:b,min:p,max:g,minutes:S,getSlotDate:R,getTimezoneOffset:r,getDstOffset:n,getTotalMin:I,getMinutesFromMidnight:P,continuesPrior:L,continuesAfter:j,sortEvents:H,inEventRange:Y,isSameDate:X,daySpan:$,browserTZOffset:te})}export{rw as C,Qf as _,Ed as a,_r as b,Rd as c,oe as d,Q as e,ee as f,Oe as g,Z as h,qe as i,he as j,Xe as k,nw as m,Td as r}; 20//# sourceMappingURL=vendor-calendar-CPw2sWKN.js.map
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.