@code-rhapsodie/react-scheduler 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,o)=>(o=n==null?{}:e(i(n)),s(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n));let l=require("react");l=c(l);let u=require("react/jsx-runtime");function d(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var f=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,p=d(function(e){return f.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),m=`-ms-`,h=`-moz-`,g=`-webkit-`,_=`comm`,v=`rule`,y=`decl`,b=`@import`,x=`@namespace`,S=`@keyframes`,C=`@layer`,w=Math.abs,T=String.fromCharCode,E=Object.assign;function ee(e,t){return A(e,0)^45?(((t<<2^A(e,0))<<2^A(e,1))<<2^A(e,2))<<2^A(e,3):0}function te(e){return e.trim()}function D(e,t){return(e=t.exec(e))?e[0]:e}function O(e,t,n){return e.replace(t,n)}function k(e,t,n){return e.indexOf(t,n)}function A(e,t){return e.charCodeAt(t)|0}function j(e,t,n){return e.slice(t,n)}function M(e){return e.length}function ne(e){return e.length}function re(e,t){return t.push(e),e}function ie(e,t){return e.map(t).join(``)}function ae(e,t){return e.filter(function(e){return!D(e,t)})}var oe=1,N=1,se=0,P=0,F=0,ce=``;function le(e,t,n,r,i,a,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:oe,column:N,length:o,return:``,siblings:s}}function I(e,t){return E(le(``,null,null,``,null,null,0,e.siblings),e,{length:-e.length},t)}function ue(e){for(;e.root;)e=I(e.root,{children:[e]});re(e,e.siblings)}function de(){return F}function fe(){return F=P>0?A(ce,--P):0,N--,F===10&&(N=1,oe--),F}function L(){return F=P<se?A(ce,P++):0,N++,F===10&&(N=1,oe++),F}function R(){return A(ce,P)}function pe(){return P}function me(e,t){return j(ce,e,t)}function he(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ge(e){return oe=N=1,se=M(ce=e),P=0,[]}function _e(e){return ce=``,e}function ve(e){return te(me(P-1,xe(e===91?e+2:e===40?e+1:e)))}function ye(e){for(;(F=R())&&F<33;)L();return he(e)>2||he(F)>3?``:` `}function be(e,t){for(;--t&&L()&&!(F<48||F>102||F>57&&F<65||F>70&&F<97););return me(e,pe()+(t<6&&R()==32&&L()==32))}function xe(e){for(;L();)switch(F){case e:return P;case 34:case 39:e!==34&&e!==39&&xe(F);break;case 40:e===41&&xe(e);break;case 92:L();break}return P}function Se(e,t){for(;L()&&e+F!==57&&(e+F!==84||R()!==47););return`/*`+me(t,P-1)+`*`+T(e===47?e:L())}function Ce(e){for(;!he(R());)L();return me(e,P)}function we(e){return _e(Te(``,null,null,null,[``],e=ge(e),0,[0],e))}function Te(e,t,n,r,i,a,o,s,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,_=1,v=0,y=``,b=i,x=a,S=r,C=y;g;)switch(m=v,v=L()){case 40:if(m!=108&&A(C,d-1)==58){k(C+=O(ve(v),`&`,`&\f`),`&\f`,w(l?s[l-1]:0))!=-1&&(_=-1);break}case 34:case 39:case 91:C+=ve(v);break;case 9:case 10:case 13:case 32:C+=ye(m);break;case 92:C+=be(pe()-1,7);continue;case 47:switch(R()){case 42:case 47:re(De(Se(L(),pe()),t,n,c),c),(he(m||1)==5||he(R()||1)==5)&&M(C)&&j(C,-1,void 0)!==` `&&(C+=` `);break;default:C+=`/`}break;case 123*h:s[l++]=M(C)*_;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:_==-1&&(C=O(C,/\f/g,``)),p>0&&(M(C)-d||h===0&&m===47)&&re(p>32?Oe(C+`;`,r,n,d-1,c):Oe(O(C,` `,``)+`;`,r,n,d-2,c),c);break;case 59:C+=`;`;default:if(re(S=Ee(C,t,n,l,u,i,s,y,b=[],x=[],d,a),a),v===123){if(u===0)Te(C,t,S,S,b,a,d,s,x);else{switch(f){case 99:if(A(C,3)===110)break;case 108:if(A(C,2)===97)break;default:u=0;case 100:case 109:case 115:}u?Te(e,S,S,r&&re(Ee(e,S,S,0,0,i,s,y,i,b=[],d,x),x),i,x,d,s,r?b:x):Te(C,S,S,S,[``],x,0,s,x)}}}l=u=p=0,h=_=1,y=C=``,d=o;break;case 58:d=1+M(C),p=m;default:if(h<1){if(v==123)--h;else if(v==125&&h++==0&&fe()==125)continue}switch(C+=T(v),v*h){case 38:_=u>0?1:(C+=`\f`,-1);break;case 44:s[l++]=(M(C)-1)*_,_=1;break;case 64:R()===45&&(C+=ve(L())),f=R(),u=d=M(y=C+=Ce(pe())),v++;break;case 45:m===45&&M(C)==2&&(h=0)}}return a}function Ee(e,t,n,r,i,a,o,s,c,l,u,d){for(var f=i-1,p=i===0?a:[``],m=ne(p),h=0,g=0,_=0;h<r;++h)for(var y=0,b=j(e,f+1,f=w(g=o[h])),x=e;y<m;++y)(x=te(g>0?p[y]+` `+b:O(b,/&\f/g,p[y])))&&(c[_++]=x);return le(e,t,n,i===0?v:s,c,l,u,d)}function De(e,t,n,r){return le(e,t,n,_,T(de()),j(e,2,-2),0,r)}function Oe(e,t,n,r,i){return le(e,t,n,y,j(e,0,r),j(e,r+1,-1),r,i)}function ke(e,t,n){switch(ee(e,t)){case 5103:return g+`print-`+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return g+e+e;case 4855:return g+e.replace(`add`,`source-over`).replace(`substract`,`source-out`).replace(`intersect`,`source-in`).replace(`exclude`,`xor`)+e;case 4789:return h+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return g+e+h+e+m+e+e;case 5936:switch(A(e,t+11)){case 114:return g+e+m+O(e,/[svh]\w+-[tblr]{2}/,`tb`)+e;case 108:return g+e+m+O(e,/[svh]\w+-[tblr]{2}/,`tb-rl`)+e;case 45:return g+e+m+O(e,/[svh]\w+-[tblr]{2}/,`lr`)+e}case 6828:case 4268:case 2903:return g+e+m+e+e;case 6165:return g+e+m+`flex-`+e+e;case 5187:return g+e+O(e,/(\w+).+(:[^]+)/,g+`box-$1$2`+m+`flex-$1$2`)+e;case 5443:return g+e+m+`flex-item-`+O(e,/flex-|-self/g,``)+(D(e,/flex-|baseline/)?``:m+`grid-row-`+O(e,/flex-|-self/g,``))+e;case 4675:return g+e+m+`flex-line-pack`+O(e,/align-content|flex-|-self/g,``)+e;case 5548:return g+e+m+O(e,`shrink`,`negative`)+e;case 5292:return g+e+m+O(e,`basis`,`preferred-size`)+e;case 6060:return g+`box-`+O(e,`-grow`,``)+g+e+m+O(e,`grow`,`positive`)+e;case 4554:return g+O(e,/([^-])(transform)/g,`$1`+g+`$2`)+e;case 6187:return O(O(O(e,/(zoom-|grab)/,g+`$1`),/(image-set)/,g+`$1`),e,``)+e;case 5495:case 3959:return O(e,/(image-set\([^]*)/,g+"$1$`$1");case 4968:return O(O(e,/(.+:)(flex-)?(.*)/,g+`box-pack:$3`+m+`flex-pack:$3`),/space-between/,`justify`)+g+e+e;case 4200:if(!D(e,/flex-|baseline/))return m+`grid-column-align`+j(e,t)+e;break;case 2592:case 3360:return m+O(e,`template-`,``)+e;case 4384:case 3616:return n&&n.some(function(e,n){return t=n,D(e.props,/grid-\w+-end/)})?~k(e+(n=n[t].value),`span`,0)?e:m+O(e,`-start`,``)+e+m+`grid-row-span:`+(~k(n,`span`,0)?D(n,/\d+/):D(n,/\d+/)-+D(e,/\d+/))+`;`:m+O(e,`-start`,``)+e;case 4896:case 4128:return n&&n.some(function(e){return D(e.props,/grid-\w+-start/)})?e:m+O(O(e,`-end`,`-span`),`span `,``)+e;case 4095:case 3583:case 4068:case 2532:return O(e,/(.+)-inline(.+)/,g+`$1$2`)+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(M(e)-1-t>6)switch(A(e,t+1)){case 109:if(A(e,t+4)!==45)break;case 102:return O(e,/(.+:)(.+)-([^]+)/,`$1`+g+`$2-$3$1`+h+(A(e,t+3)==108?`$3`:`$2-$3`))+e;case 115:return~k(e,`stretch`,0)?ke(O(e,`stretch`,`fill-available`),t,n)+e:e}break;case 5152:case 5920:return O(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,n,r,i,a,o,s){return m+n+`:`+r+s+(i?m+n+`-span:`+(a?o:o-+r)+s:``)+e});case 4949:if(A(e,t+6)===121)return O(e,`:`,`:`+g)+e;break;case 6444:switch(A(e,A(e,14)===45?18:11)){case 120:return O(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,`$1`+g+(A(e,14)===45?`inline-`:``)+`box$3$1`+g+`$2$3$1`+m+`$2box$3`)+e;case 100:return O(e,`:`,`:`+m)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return O(e,`scroll-`,`scroll-snap-`)+e}return e}function Ae(e,t){for(var n=``,r=0;r<e.length;r++)n+=t(e[r],r,e,t)||``;return n}function je(e,t,n,r){switch(e.type){case C:if(e.children.length)break;case b:case x:case y:return e.return=e.return||e.value;case _:return``;case S:return e.return=e.value+`{`+Ae(e.children,r)+`}`;case v:if(!M(e.value=e.props.join(`,`)))return``}return M(n=Ae(e.children,r))?e.return=e.value+`{`+n+`}`:``}function Me(e){var t=ne(e);return function(n,r,i,a){for(var o=``,s=0;s<t;s++)o+=e[s](n,r,i,a)||``;return o}}function Ne(e){return function(t){t.root||(t=t.return)&&e(t)}}function Pe(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case y:e.return=ke(e.value,e.length,n);return;case S:return Ae([I(e,{value:O(e.value,`@`,`@`+g)})],r);case v:if(e.length)return ie(n=e.props,function(t){switch(D(t,r=/(::plac\w+|:read-\w+)/)){case`:read-only`:case`:read-write`:ue(I(e,{props:[O(t,/:(read-\w+)/,`:`+h+`$1`)]})),ue(I(e,{props:[t]})),E(e,{props:ae(n,r)});break;case`::placeholder`:ue(I(e,{props:[O(t,/:(plac\w+)/,`:`+g+`input-$1`)]})),ue(I(e,{props:[O(t,/:(plac\w+)/,`:`+h+`$1`)]})),ue(I(e,{props:[O(t,/:(plac\w+)/,m+`input-$1`)]})),ue(I(e,{props:[t]})),E(e,{props:ae(n,r)})}return``})}}var z=typeof process<`u`&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||`data-styled`,Fe=`active`,Ie=`data-styled-version`,Le=`6.5.1`,Re=`/*!sc*/
2
- `,ze=typeof window<`u`&&typeof document<`u`;function Be(e){if(typeof process<`u`&&process.env!==void 0){let t=process.env[e];if(t!==void 0&&t!==``)return t!==`false`}}var Ve=!!(typeof SC_DISABLE_SPEEDY==`boolean`?SC_DISABLE_SPEEDY:Be(`REACT_APP_SC_DISABLE_SPEEDY`)??Be(`SC_DISABLE_SPEEDY`)??(typeof process<`u`&&process.env!==void 0&&process.env.NODE_ENV!==`production`)),He=`sc-keyframes-`,Ue={},We=process.env.NODE_ENV===`production`?{}:{1:`Cannot create styled-component for component: %s.
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,o)=>(o=n==null?{}:e(i(n)),s(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n));let l=require("react");l=c(l);let u=require("react/jsx-runtime");var d=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){"use strict";var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,S=function(e){return e instanceof E||!(!e||!e[x])},C=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new E(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return T},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<w(e)},_.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!T.u(t)||t,u=T.p(e),p=function(e,t){var i=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return T.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=T.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[T.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=T.p(u),h=function(e){var t=w(p);return T.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return T.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=T.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return T.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return T.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return T.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return T.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return T.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return T.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return T.s(t.$s,2,`0`);case`SSS`:return T.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=T.p(f),_=w(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return T.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:T.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return T.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),D=E.prototype;return w.prototype=D,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){D[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||=(e(t,E,w),!0),w},w.locale=C,w.isDayjs=S,w.unix=function(e){return w(1e3*e)},w.en=b[y],w.Ls=b,w.p={},w}))})),f=c(d(),1);function p(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var m=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,h=p(function(e){return m.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),g=`-ms-`,_=`-moz-`,v=`-webkit-`,y=`comm`,b=`rule`,x=`decl`,S=`@import`,C=`@namespace`,w=`@keyframes`,T=`@layer`,E=Math.abs,D=String.fromCharCode,O=Object.assign;function ee(e,t){return M(e,0)^45?(((t<<2^M(e,0))<<2^M(e,1))<<2^M(e,2))<<2^M(e,3):0}function k(e){return e.trim()}function A(e,t){return(e=t.exec(e))?e[0]:e}function j(e,t,n){return e.replace(t,n)}function te(e,t,n){return e.indexOf(t,n)}function M(e,t){return e.charCodeAt(t)|0}function N(e,t,n){return e.slice(t,n)}function P(e){return e.length}function F(e){return e.length}function ne(e,t){return t.push(e),e}function re(e,t){return e.map(t).join(``)}function I(e,t){return e.filter(function(e){return!A(e,t)})}var ie=1,L=1,ae=0,R=0,z=0,oe=``;function se(e,t,n,r,i,a,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:ie,column:L,length:o,return:``,siblings:s}}function B(e,t){return O(se(``,null,null,``,null,null,0,e.siblings),e,{length:-e.length},t)}function ce(e){for(;e.root;)e=B(e.root,{children:[e]});ne(e,e.siblings)}function le(){return z}function ue(){return z=R>0?M(oe,--R):0,L--,z===10&&(L=1,ie--),z}function V(){return z=R<ae?M(oe,R++):0,L++,z===10&&(L=1,ie++),z}function H(){return M(oe,R)}function de(){return R}function fe(e,t){return N(oe,e,t)}function pe(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function me(e){return ie=L=1,ae=P(oe=e),R=0,[]}function he(e){return oe=``,e}function ge(e){return k(fe(R-1,ye(e===91?e+2:e===40?e+1:e)))}function _e(e){for(;(z=H())&&z<33;)V();return pe(e)>2||pe(z)>3?``:` `}function ve(e,t){for(;--t&&V()&&!(z<48||z>102||z>57&&z<65||z>70&&z<97););return fe(e,de()+(t<6&&H()==32&&V()==32))}function ye(e){for(;V();)switch(z){case e:return R;case 34:case 39:e!==34&&e!==39&&ye(z);break;case 40:e===41&&ye(e);break;case 92:V()}return R}function be(e,t){for(;V()&&e+z!==57&&(e+z!==84||H()!==47););return`/*`+fe(t,R-1)+`*`+D(e===47?e:V())}function xe(e){for(;!pe(H());)V();return fe(e,R)}function Se(e){return he(Ce(``,null,null,null,[``],e=me(e),0,[0],e))}function Ce(e,t,n,r,i,a,o,s,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,_=1,v=0,y=``,b=i,x=a,S=r,C=y;g;)switch(m=v,v=V()){case 40:if(m!=108&&M(C,d-1)==58){te(C+=j(ge(v),`&`,`&\f`),`&\f`,E(l?s[l-1]:0))!=-1&&(_=-1);break}case 34:case 39:case 91:C+=ge(v);break;case 9:case 10:case 13:case 32:C+=_e(m);break;case 92:C+=ve(de()-1,7);continue;case 47:switch(H()){case 42:case 47:ne(Te(be(V(),de()),t,n,c),c),(pe(m||1)==5||pe(H()||1)==5)&&P(C)&&N(C,-1,void 0)!==` `&&(C+=` `);break;default:C+=`/`}break;case 123*h:s[l++]=P(C)*_;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:_==-1&&(C=j(C,/\f/g,``)),p>0&&(P(C)-d||h===0&&m===47)&&ne(p>32?Ee(C+`;`,r,n,d-1,c):Ee(j(C,` `,``)+`;`,r,n,d-2,c),c);break;case 59:C+=`;`;default:if(ne(S=we(C,t,n,l,u,i,s,y,b=[],x=[],d,a),a),v===123){if(u===0)Ce(C,t,S,S,b,a,d,s,x);else{switch(f){case 99:if(M(C,3)===110)break;case 108:if(M(C,2)===97)break;default:u=0;case 100:case 109:case 115:}u?Ce(e,S,S,r&&ne(we(e,S,S,0,0,i,s,y,i,b=[],d,x),x),i,x,d,s,r?b:x):Ce(C,S,S,S,[``],x,0,s,x)}}}l=u=p=0,h=_=1,y=C=``,d=o;break;case 58:d=1+P(C),p=m;default:if(h<1){if(v==123)--h;else if(v==125&&h++==0&&ue()==125)continue}switch(C+=D(v),v*h){case 38:_=u>0?1:(C+=`\f`,-1);break;case 44:s[l++]=(P(C)-1)*_,_=1;break;case 64:H()===45&&(C+=ge(V())),f=H(),u=d=P(y=C+=xe(de())),v++;break;case 45:m===45&&P(C)==2&&(h=0)}}return a}function we(e,t,n,r,i,a,o,s,c,l,u,d){for(var f=i-1,p=i===0?a:[``],m=F(p),h=0,g=0,_=0;h<r;++h)for(var v=0,y=N(e,f+1,f=E(g=o[h])),x=e;v<m;++v)(x=k(g>0?p[v]+` `+y:j(y,/&\f/g,p[v])))&&(c[_++]=x);return se(e,t,n,i===0?b:s,c,l,u,d)}function Te(e,t,n,r){return se(e,t,n,y,D(le()),N(e,2,-2),0,r)}function Ee(e,t,n,r,i){return se(e,t,n,x,N(e,0,r),N(e,r+1,-1),r,i)}function De(e,t,n){switch(ee(e,t)){case 5103:return v+`print-`+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return v+e+e;case 4855:return v+e.replace(`add`,`source-over`).replace(`substract`,`source-out`).replace(`intersect`,`source-in`).replace(`exclude`,`xor`)+e;case 4789:return _+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return v+e+_+e+g+e+e;case 5936:switch(M(e,t+11)){case 114:return v+e+g+j(e,/[svh]\w+-[tblr]{2}/,`tb`)+e;case 108:return v+e+g+j(e,/[svh]\w+-[tblr]{2}/,`tb-rl`)+e;case 45:return v+e+g+j(e,/[svh]\w+-[tblr]{2}/,`lr`)+e}case 6828:case 4268:case 2903:return v+e+g+e+e;case 6165:return v+e+g+`flex-`+e+e;case 5187:return v+e+j(e,/(\w+).+(:[^]+)/,v+`box-$1$2`+g+`flex-$1$2`)+e;case 5443:return v+e+g+`flex-item-`+j(e,/flex-|-self/g,``)+(A(e,/flex-|baseline/)?``:g+`grid-row-`+j(e,/flex-|-self/g,``))+e;case 4675:return v+e+g+`flex-line-pack`+j(e,/align-content|flex-|-self/g,``)+e;case 5548:return v+e+g+j(e,`shrink`,`negative`)+e;case 5292:return v+e+g+j(e,`basis`,`preferred-size`)+e;case 6060:return v+`box-`+j(e,`-grow`,``)+v+e+g+j(e,`grow`,`positive`)+e;case 4554:return v+j(e,/([^-])(transform)/g,`$1`+v+`$2`)+e;case 6187:return j(j(j(e,/(zoom-|grab)/,v+`$1`),/(image-set)/,v+`$1`),e,``)+e;case 5495:case 3959:return j(e,/(image-set\([^]*)/,v+"$1$`$1");case 4968:return j(j(e,/(.+:)(flex-)?(.*)/,v+`box-pack:$3`+g+`flex-pack:$3`),/space-between/,`justify`)+v+e+e;case 4200:if(!A(e,/flex-|baseline/))return g+`grid-column-align`+N(e,t)+e;break;case 2592:case 3360:return g+j(e,`template-`,``)+e;case 4384:case 3616:return n&&n.some(function(e,n){return t=n,A(e.props,/grid-\w+-end/)})?~te(e+(n=n[t].value),`span`,0)?e:g+j(e,`-start`,``)+e+g+`grid-row-span:`+(~te(n,`span`,0)?A(n,/\d+/):+A(n,/\d+/)-A(e,/\d+/))+`;`:g+j(e,`-start`,``)+e;case 4896:case 4128:return n&&n.some(function(e){return A(e.props,/grid-\w+-start/)})?e:g+j(j(e,`-end`,`-span`),`span `,``)+e;case 4095:case 3583:case 4068:case 2532:return j(e,/(.+)-inline(.+)/,v+`$1$2`)+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(P(e)-1-t>6)switch(M(e,t+1)){case 109:if(M(e,t+4)!==45)break;case 102:return j(e,/(.+:)(.+)-([^]+)/,`$1`+v+`$2-$3$1`+_+(M(e,t+3)==108?`$3`:`$2-$3`))+e;case 115:return~te(e,`stretch`,0)?De(j(e,`stretch`,`fill-available`),t,n)+e:e}break;case 5152:case 5920:return j(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,n,r,i,a,o,s){return g+n+`:`+r+s+(i?g+n+`-span:`+(a?o:+o-r)+s:``)+e});case 4949:if(M(e,t+6)===121)return j(e,`:`,`:`+v)+e;break;case 6444:switch(M(e,M(e,14)===45?18:11)){case 120:return j(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,`$1`+v+(M(e,14)===45?`inline-`:``)+`box$3$1`+v+`$2$3$1`+g+`$2box$3`)+e;case 100:return j(e,`:`,`:`+g)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return j(e,`scroll-`,`scroll-snap-`)+e}return e}function Oe(e,t){for(var n=``,r=0;r<e.length;r++)n+=t(e[r],r,e,t)||``;return n}function ke(e,t,n,r){switch(e.type){case T:if(e.children.length)break;case S:case C:case x:return e.return=e.return||e.value;case y:return``;case w:return e.return=e.value+`{`+Oe(e.children,r)+`}`;case b:if(!P(e.value=e.props.join(`,`)))return``}return P(n=Oe(e.children,r))?e.return=e.value+`{`+n+`}`:``}function Ae(e){var t=F(e);return function(n,r,i,a){for(var o=``,s=0;s<t;s++)o+=e[s](n,r,i,a)||``;return o}}function je(e){return function(t){t.root||(t=t.return)&&e(t)}}function Me(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case x:e.return=De(e.value,e.length,n);return;case w:return Oe([B(e,{value:j(e.value,`@`,`@`+v)})],r);case b:if(e.length)return re(n=e.props,function(t){switch(A(t,r=/(::plac\w+|:read-\w+)/)){case`:read-only`:case`:read-write`:ce(B(e,{props:[j(t,/:(read-\w+)/,`:`+_+`$1`)]})),ce(B(e,{props:[t]})),O(e,{props:I(n,r)});break;case`::placeholder`:ce(B(e,{props:[j(t,/:(plac\w+)/,`:`+v+`input-$1`)]})),ce(B(e,{props:[j(t,/:(plac\w+)/,`:`+_+`$1`)]})),ce(B(e,{props:[j(t,/:(plac\w+)/,g+`input-$1`)]})),ce(B(e,{props:[t]})),O(e,{props:I(n,r)})}return``})}}var U=typeof process<`u`&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||`data-styled`,Ne=`active`,Pe=`data-styled-version`,Fe=`6.5.1`,Ie=`/*!sc*/
2
+ `,Le=typeof window<`u`&&typeof document<`u`;function Re(e){if(typeof process<`u`&&process.env!==void 0){let t=process.env[e];if(t!==void 0&&t!==``)return t!==`false`}}var ze=!!(typeof SC_DISABLE_SPEEDY==`boolean`?SC_DISABLE_SPEEDY:Re(`REACT_APP_SC_DISABLE_SPEEDY`)??Re(`SC_DISABLE_SPEEDY`)??(typeof process<`u`&&process.env!==void 0&&process.env.NODE_ENV!==`production`)),Be=`sc-keyframes-`,Ve={},He=process.env.NODE_ENV===`production`?{}:{1:`Cannot create styled-component for component: %s.
3
3
 
4
4
  `,2:`Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
5
5
 
@@ -72,14 +72,14 @@ export function App() {
72
72
  \`\`\`
73
73
 
74
74
  If you need access to the theme in an uncertain composition scenario, \`React.useContext(ThemeContext)\` will not emit an error if there is no \`ThemeProvider\` ancestor.
75
- `};function B(e,...t){return process.env.NODE_ENV===`production`?Error(`An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#${e} for more information.${t.length>0?` Args: ${t.join(`, `)}`:``}`):Error(function(...e){let t=e[0],n=[];for(let t=1,r=e.length;t<r;t+=1)n.push(e[t]);return n.forEach(e=>{t=t.replace(/%[a-z]/,e)}),t}(We[e],...t).trim())}var Ge=1<<30,Ke=new Map,qe=new Map,Je=1,Ye=e=>{if(Ke.has(e))return Ke.get(e);for(;qe.has(Je);)Je++;let t=Je++;if(process.env.NODE_ENV!==`production`&&((0|t)<0||t>Ge))throw B(16,`${t}`);return Ke.set(e,t),qe.set(t,e),t},Xe=e=>qe.get(e),Ze=(e,t)=>{Je=t+1,Ke.set(e,t),qe.set(t,e)},Qe=/invalid hook call/i,$e=new Set,et=(e,t)=>{if(process.env.NODE_ENV!==`production`){let n=`The component ${e}${t?` with the id of "${t}"`:``} has been created dynamically.\nYou may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.\nSee https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.\n`,r=console.error;try{let e=!0;console.error=(t,...i)=>{Qe.test(t)?(e=!1,$e.delete(n)):r(t,...i)},typeof l.default.useState==`function`&&l.default.useState(null),e&&!$e.has(n)&&(console.warn(n),$e.add(n))}catch(e){Qe.test(e.message)&&$e.delete(n)}finally{console.error=r}}},tt=Object.freeze([]),V=Object.freeze({});function nt(e,t,n=V){return e.theme!==n.theme&&e.theme||t||n.theme}var rt=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,it=/(^-|-$)/g;function at(e){return e.replace(rt,`-`).replace(it,``)}var ot=/(a)(d)/gi,st=e=>String.fromCharCode(e+(e>25?39:97));function ct(e){let t,n=``;for(t=Math.abs(e);t>52;t=t/52|0)n=st(t%52)+n;return(st(t%52)+n).replace(ot,`$1-$2`)}var lt=5381,H=(e,t)=>{let n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e},ut=e=>H(lt,e);function dt(e){return ct(ut(e)>>>0)}function ft(e){return process.env.NODE_ENV!==`production`&&typeof e==`string`&&e||e.displayName||e.name||`Component`}function pt(e){return typeof e==`string`&&(process.env.NODE_ENV===`production`||e.charAt(0)===e.charAt(0).toLowerCase())}function mt(e){return pt(e)?`styled.${e}`:`Styled(${ft(e)})`}var ht=Symbol.for(`react.memo`),gt=Symbol.for(`react.forward_ref`),_t={contextType:!0,defaultProps:!0,displayName:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},vt={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},yt={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},bt={[gt]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[ht]:yt};function xt(e){return(`type`in(t=e)&&t.type.$$typeof)===ht?yt:`$$typeof`in e?bt[e.$$typeof]:_t;var t}var St=Object.defineProperty,Ct=Object.getOwnPropertyNames,wt=Object.getOwnPropertySymbols,Tt=Object.getOwnPropertyDescriptor,Et=Object.getPrototypeOf,Dt=Object.prototype;function Ot(e,t,n){if(typeof t!=`string`){let r=Et(t);r&&r!==Dt&&Ot(e,r,n);let i=Ct(t).concat(wt(t)),a=xt(e),o=xt(t);for(let r=0;r<i.length;++r){let s=i[r];if(!(s in vt||n&&n[s]||o&&s in o||a&&s in a)){let n=Tt(t,s);try{St(e,s,n)}catch{}}}}return e}function kt(e){return typeof e==`function`}var At=Symbol.for(`react.forward_ref`);function jt(e){return e!=null&&(typeof e==`object`||typeof e==`function`)&&e.$$typeof===At&&`styledComponentId`in e}function Mt(e,t){return e&&t?e+` `+t:e||t||``}function Nt(e,t){return e.join(t||``)}function U(e){return typeof e==`object`&&!!e&&e.constructor.name===Object.name&&!(`props`in e&&e.$$typeof)}function Pt(e,t,n=!1){if(!n&&!U(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(let n=0;n<t.length;n++)e[n]=Pt(e[n],t[n]);else if(U(t))for(let n in t)e[n]=Pt(e[n],t[n]);return e}function Ft(e,t){Object.defineProperty(e,"toString",{value:t})}var It=class{constructor(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e,this._cGroup=0,this._cIndex=0}indexOfGroup(e){if(e===this._cGroup)return this._cIndex;let t=this._cIndex;if(e>this._cGroup)for(let n=this._cGroup;n<e;n++)t+=this.groupSizes[n];else for(let n=this._cGroup-1;n>=e;n--)t-=this.groupSizes[n];return this._cGroup=e,this._cIndex=t,t}insertRules(e,t){if(e>=this.groupSizes.length){let t=this.groupSizes,n=t.length,r=n;for(;e>=r;)if(r<<=1,r<0)throw B(16,`${e}`);this.groupSizes=new Uint32Array(r),this.groupSizes.set(t),this.length=r;for(let e=n;e<r;e++)this.groupSizes[e]=0}let n=this.indexOfGroup(e+1),r=0;for(let i=0,a=t.length;i<a;i++)this.tag.insertRule(n,t[i])&&(this.groupSizes[e]++,n++,r++);r>0&&this._cGroup>e&&(this._cIndex+=r)}clearGroup(e){if(e<this.length){let t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(let e=n;e<r;e++)this.tag.deleteRule(n);t>0&&this._cGroup>e&&(this._cIndex-=t)}}getGroup(e){let t=``;if(e>=this.length||this.groupSizes[e]===0)return t;let n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n;for(let e=r;e<i;e++)t+=this.tag.getRule(e)+Re;return t}},Lt=`style[${z}][${Ie}="${Le}"]`,Rt=RegExp(`^${z}\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)`),zt=e=>typeof ShadowRoot<`u`&&e instanceof ShadowRoot||`host`in e&&e.nodeType===11,Bt=e=>{if(!e)return document;if(zt(e))return e;if(`getRootNode`in e){let t=e.getRootNode();if(zt(t))return t}return document},Vt=(e,t,n)=>{let r=n.split(`,`),i;for(let n=0,a=r.length;n<a;n++)(i=r[n])&&e.registerName(t,i)},Ht=(e,t)=>{let n=(t.textContent??``).split(Re),r=[];for(let t=0,i=n.length;t<i;t++){let i=n[t].trim();if(!i)continue;let a=i.match(Rt);if(a){let t=0|parseInt(a[1],10),n=a[2];t!==0&&(Ze(n,t),Vt(e,n,a[3]),e.getTag().insertRules(t,r)),r.length=0}else r.push(i)}},Ut=e=>{let t=Bt(e.options.target).querySelectorAll(Lt);for(let n=0,r=t.length;n<r;n++){let r=t[n];r&&r.getAttribute(z)!==Fe&&(Ht(e,r),r.parentNode&&r.parentNode.removeChild(r))}},Wt=!1;function Gt(){if(!1!==Wt)return Wt;if(typeof document<`u`){let e=document.head.querySelector(`meta[property="csp-nonce"]`);if(e)return Wt=e.nonce||e.getAttribute(`content`)||void 0;let t=document.head.querySelector(`meta[name="sc-nonce"]`);if(t)return Wt=t.getAttribute(`content`)||void 0}return Wt=typeof __webpack_nonce__<`u`?__webpack_nonce__:void 0}var Kt=(e,t)=>{let n=document.head,r=e||n,i=document.createElement(`style`),a=(e=>{let t=Array.from(e.querySelectorAll(`style[${z}]`));return t[t.length-1]})(r),o=a===void 0?null:a.nextSibling;i.setAttribute(z,Fe),i.setAttribute(Ie,Le);let s=t||Gt();return s&&i.setAttribute(`nonce`,s),r.insertBefore(i,o),i},qt=class{constructor(e,t){this.element=Kt(e,t),this.element.appendChild(document.createTextNode(``)),this.sheet=(e=>{if(e.sheet)return e.sheet;let t=e.getRootNode().styleSheets??document.styleSheets;for(let n=0,r=t.length;n<r;n++){let r=t[n];if(r.ownerNode===e)return r}throw B(17)})(this.element),this.length=0}insertRule(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch{return!1}}deleteRule(e){this.sheet.deleteRule(e),this.length--}getRule(e){let t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:``}},Jt=class{constructor(e,t){this.element=Kt(e,t),this.nodes=this.element.childNodes,this.length=0}insertRule(e,t){if(e<=this.length&&e>=0){let n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1}deleteRule(e){this.element.removeChild(this.nodes[e]),this.length--}getRule(e){return e<this.length?this.nodes[e].textContent:``}},Yt=ze,Xt={isServer:!ze,useCSSOMInjection:!Ve},Zt=class e{static registerId(e){return Ye(e)}constructor(e=V,t={},n){this.options=Object.assign(Object.assign({},Xt),e),this.gs=t,this.keyframeIds=new Set,this.names=new Map(n),this.server=!!e.isServer,!this.server&&ze&&Yt&&(Yt=!1,Ut(this)),Ft(this,()=>(e=>{let t=e.getTag(),{length:n}=t,r=``;for(let i=0;i<n;i++){let n=Xe(i);if(n===void 0)continue;let a=e.names.get(n);if(a===void 0||!a.size)continue;let o=t.getGroup(i);if(o.length===0)continue;let s=z+`.g`+i+`[id="`+n+`"]`,c=``;for(let e of a)e.length>0&&(c+=e+`,`);r+=o+s+`{content:"`+c+`"}/*!sc*/
76
- `}return r})(this))}rehydrate(){!this.server&&ze&&Ut(this)}reconstructWithOptions(t,n=!0){let r=new e(Object.assign(Object.assign({},this.options),t),this.gs,n&&this.names||void 0);return r.keyframeIds=new Set(this.keyframeIds),!this.server&&ze&&t.target!==this.options.target&&Bt(this.options.target)!==Bt(t.target)&&Ut(r),r}allocateGSInstance(e){return this.gs[e]=(this.gs[e]||0)+1}getTag(){return this.tag||=(e=(({useCSSOMInjection:e,target:t,nonce:n})=>e?new qt(t,n):new Jt(t,n))(this.options),new It(e));var e}hasNameForId(e,t){var n;return(n=this.names.get(e)?.has(t))!=null&&n}registerName(e,t){Ye(e),e.startsWith(He)&&this.keyframeIds.add(e);let n=this.names.get(e);n?n.add(t):this.names.set(e,new Set([t]))}insertRules(e,t,n){this.registerName(e,t),this.getTag().insertRules(Ye(e),n)}clearNames(e){this.names.has(e)&&this.names.get(e).clear()}clearRules(e){this.getTag().clearGroup(Ye(e)),this.clearNames(e)}clearTag(){this.tag=void 0}},Qt=new WeakSet,$t={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexShrink:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function en(e,t){return t==null||typeof t==`boolean`||t===``?``:typeof t!=`number`||t===0||e in $t||e.startsWith(`--`)?String(t).trim():t+`px`}var W=47;function tn(e){if(e.charCodeAt(0)===45&&e.charCodeAt(1)===45)return e;let t=``;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);t+=r>=65&&r<=90?`-`+String.fromCharCode(r+32):e[n]}return t.startsWith(`ms-`)?`-`+t:t}var nn=Symbol.for(`sc-keyframes`);function rn(e){return typeof e==`object`&&!!e&&nn in e}function an(e){return kt(e)&&!(e.prototype&&e.prototype.isReactComponent)}var on=e=>e==null||!1===e||e===``,sn=Symbol.for(`react.client.reference`);function cn(e){return e.$$typeof===sn}function ln(e){let t=e.$$id,n=(t&&t.includes(`#`)?t.split(`#`).pop():t)||e.name||`unknown`;console.warn(`Interpolating a client component (${n}) as a selector is not supported in server components. The component selector pattern requires access to the component's internal class name, which is not available across the server/client boundary. Use a plain CSS class selector instead.`)}function un(e,t){for(let n in e){let r=e[n];e.hasOwnProperty(n)&&!on(r)&&(Array.isArray(r)&&Qt.has(r)||kt(r)?t.push(tn(n)+`:`,r,`;`):U(r)?(t.push(n+` {`),un(r,t),t.push(`}`)):t.push(tn(n)+`: `+en(n,r)+`;`))}}function G(e,t,n,r,i=[]){if(on(e))return i;let a=typeof e;if(a===`string`)return i.push(e),i;if(a===`function`){if(cn(e))return process.env.NODE_ENV!==`production`&&ln(e),i;if(an(e)&&t){let a=e(t);return process.env.NODE_ENV===`production`||typeof a!=`object`||Array.isArray(a)||rn(a)||U(a)||a===null||console.error(`${ft(e)} is not a styled component and cannot be referred to via component selector. See https://styled-components.com/docs/advanced#referring-to-other-components for more details.`),G(a,t,n,r,i)}return i.push(e),i}if(Array.isArray(e)){for(let a=0;a<e.length;a++)G(e[a],t,n,r,i);return i}return jt(e)?(i.push(`.${e.styledComponentId}`),i):rn(e)?(n?(e.inject(n,r),i.push(e.getName(r))):i.push(e),i):cn(e)?(process.env.NODE_ENV!==`production`&&ln(e),i):U(e)&&e.toString===Object.prototype.toString?(un(e,i),i):(i.push(e.toString()),i)}var dn=ut(Le),fn=class{constructor(e,t,n){this.rules=e,this.componentId=t,this.baseHash=H(dn,t),this.baseStyle=n,Zt.registerId(t)}generateAndInjectStyles(e,t,n){let r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):``;{let i=``;for(let r=0;r<this.rules.length;r++){let a=this.rules[r];if(typeof a==`string`)i+=a;else if(a){if(an(a)){let r=a(e);typeof r==`string`?i+=r:r!=null&&!1!==r&&(process.env.NODE_ENV===`production`||typeof r!=`object`||Array.isArray(r)||rn(r)||U(r)||console.error(`${ft(a)} is not a styled component and cannot be referred to via component selector. See https://styled-components.com/docs/advanced#referring-to-other-components for more details.`),i+=Nt(G(r,e,t,n)))}else i+=Nt(G(a,e,t,n))}}if(i){this.dynamicNameCache||=new Map;let e=n.hash?n.hash+i:i,a=this.dynamicNameCache.get(e);if(!a){if(a=ct(H(H(this.baseHash,n.hash),i)>>>0),this.dynamicNameCache.size>=200){let e=this.dynamicNameCache.keys().next().value;e!==void 0&&this.dynamicNameCache.delete(e)}this.dynamicNameCache.set(e,a)}if(!t.hasNameForId(this.componentId,a)){let e=n(i,`.`+a,void 0,this.componentId);t.insertRules(this.componentId,a,e)}r=Mt(r,a)}}return r}},pn=/&/g;function mn(e,t){let n=0;for(;--t>=0&&e.charCodeAt(t)===92;)n++;return!(1&~n)}function hn(e){let t=e.length,n=``,r=0,i=0,a=0,o=!1,s=!1;for(let c=0;c<t;c++){let l=e.charCodeAt(c);if(a!==0||o||l!==W||e.charCodeAt(c+1)!==42){if(o)l===42&&e.charCodeAt(c+1)===W&&(o=!1,c++);else if(l!==34&&l!==39||mn(e,c)){if(a===0){if(l===123)i++;else if(l===125){if(i--,i<0){s=!0;let n=c+1;for(;n<t;){let t=e.charCodeAt(n);if(t===59||t===10)break;n++}n<t&&e.charCodeAt(n)===59&&n++,i=0,c=n-1,r=n;continue}i===0&&(n+=e.substring(r,c+1),r=c+1)}else l===59&&i===0&&(n+=e.substring(r,c+1),r=c+1)}}else a===0?a=l:a===l&&(a=0)}else o=!0,c++}return s||i!==0||a!==0?(r<t&&i===0&&a===0&&(n+=e.substring(r)),n):e}function gn(e,t){let n=t+` `,r=`,`+n;for(let i=0;i<e.length;i++){let a=e[i];if(a.type===`rule`){a.value=(n+a.value).replaceAll(`,`,r);let e=a.props,t=[];for(let r=0;r<e.length;r++)t[r]=n+e[r];a.props=t}Array.isArray(a.children)&&a.type!==`@keyframes`&&gn(a.children,t)}return e}function _n({options:e=V,plugins:t=tt}=V){let n,r,i,a=(e,t,i)=>i.startsWith(r)&&i.endsWith(r)&&i.replaceAll(r,``).length>0?`.${n}`:e,o=t.slice();o.push(e=>{e.type===`rule`&&e.value.includes(`&`)&&(i||=RegExp(`\\${r}\\b`,`g`),e.props[0]=e.props[0].replace(pn,r).replace(i,a))}),e.prefix&&o.push(Pe),o.push(je);let s=[],c=Me(o.concat(Ne(e=>s.push(e)))),l=(t,a=``,o=``,l=`&`)=>{n=l,r=a,i=void 0;let u=function(e){let t=e.indexOf(`//`)!==-1,n=e.indexOf(`}`)!==-1;if(!t&&!n)return e;if(!t)return hn(e);let r=e.length,i=``,a=0,o=0,s=0,c=0,l=0,u=!1;for(;o<r;){let t=e.charCodeAt(o);if(t!==34&&t!==39||mn(e,o)){if(s===0){if(t===W&&o+1<r&&e.charCodeAt(o+1)===42){for(o+=2;o+1<r&&(e.charCodeAt(o)!==42||e.charCodeAt(o+1)!==W);)o++;o+=2}else if(t!==40){if(t!==41){if(c>0)o++;else if(t===42&&o+1<r&&e.charCodeAt(o+1)===W)i+=e.substring(a,o),o+=2,a=o,u=!0;else if(t===W&&o+1<r&&e.charCodeAt(o+1)===W){for(i+=e.substring(a,o);o<r&&e.charCodeAt(o)!==10;)o++;a=o,u=!0}else t===123?l++:t===125&&l--,o++}else c>0&&c--,o++}else c++,o++}else o++}else s===0?s=t:s===t&&(s=0),o++}return u?(a<r&&(i+=e.substring(a)),l===0?i:hn(i)):l===0?e:hn(e)}(t),d=we(o||a?o+` `+a+` { `+u+` }`:u);return e.namespace&&(d=gn(d,e.namespace)),s=[],Ae(d,c),s},u=e,d=lt;for(let e=0;e<t.length;e++)t[e].name||B(15),d=H(d,t[e].name);return u!=null&&u.namespace&&(d=H(d,u.namespace)),u!=null&&u.prefix&&(d=H(d,`p`)),l.hash=d===lt?``:d.toString(),l}var vn=new Zt,yn=_n(),bn=l.default.createContext({shouldForwardProp:void 0,styleSheet:vn,stylis:yn,stylisPlugins:void 0});bn.Consumer;function xn(){return l.default.useContext(bn)}var Sn=l.default.createContext(void 0);Sn.Consumer;function K(){let e=l.default.useContext(Sn);if(!e)throw B(18);return e}function Cn(e){let t=l.default.useContext(Sn),n=l.default.useMemo(()=>function(e,t){if(!e)throw B(14);if(kt(e)){let n=e(t);if(process.env.NODE_ENV!==`production`&&(n===null||Array.isArray(n)||typeof n!=`object`))throw B(7);return n}if(Array.isArray(e)||typeof e!=`object`)throw B(8);return t?Object.assign(Object.assign({},t),e):e}(e.theme,t),[e.theme,t]);return e.children?l.default.createElement(Sn.Provider,{value:n},e.children):null}var wn=Object.prototype.hasOwnProperty,Tn={};function En(e,t){let n=typeof e==`string`?at(e):`sc`;Tn[n]=(Tn[n]||0)+1;let r=n+`-`+dt(Le+n+Tn[n]);return t?t+`-`+r:r}var Dn;function On(e,t,n){let r=jt(e),i=e,a=!pt(e),{attrs:o=tt,componentId:s=En(t.displayName,t.parentComponentId),displayName:c=mt(e)}=t,u=t.displayName&&t.componentId?at(t.displayName)+`-`+t.componentId:t.componentId||s,d=r&&i.attrs?i.attrs.concat(o).filter(Boolean):o,{shouldForwardProp:f}=t;if(r&&i.shouldForwardProp){let e=i.shouldForwardProp;if(t.shouldForwardProp){let n=t.shouldForwardProp;f=(t,r)=>e(t,r)&&n(t,r)}else f=e}let m=new fn(n,u,r?i.componentStyle:void 0);function h(e,t){return function(e,t,n){let{attrs:r,componentStyle:i,defaultProps:a,foldedComponentIds:o,styledComponentId:s,target:c}=e,u=l.default.useContext(Sn),d=xn(),f=e.shouldForwardProp||d.shouldForwardProp;process.env.NODE_ENV!==`production`&&l.default.useDebugValue&&l.default.useDebugValue(s);let m=nt(t,u,a)||V,h,g;{let e=l.default.useRef(null),n=e.current;if(n!==null&&n[1]===m&&n[2]===d.styleSheet&&n[3]===d.stylis&&n[7]===i&&function(e,t,n){let r=e,i=t,a=0;for(let e in i)if(wn.call(i,e)&&(a++,r[e]!==i[e]))return!1;return a===n}(n[0],t,n[4]))h=n[5],g=n[6];else{h=function(e,t,n){let r=Object.assign(Object.assign({},t),{className:void 0,theme:n}),i=e.length>1;for(let n=0;n<e.length;n++){let a=e[n],o=kt(a)?a(i?Object.assign({},r):r):a;for(let e in o)e===`className`?r.className=Mt(r.className,o[e]):e===`style`?r.style=Object.assign(Object.assign({},r.style),o[e]):e in t&&t[e]===void 0||(r[e]=o[e])}return`className`in t&&typeof t.className==`string`&&(r.className=Mt(r.className,t.className)),r}(r,t,m),g=i.generateAndInjectStyles(h,d.styleSheet,d.stylis);let n=0;for(let e in t)wn.call(t,e)&&n++;e.current=[t,m,d.styleSheet,d.stylis,n,h,g,i]}}process.env.NODE_ENV!==`production`&&l.default.useDebugValue&&l.default.useDebugValue(g),process.env.NODE_ENV!==`production`&&e.warnTooManyClasses&&e.warnTooManyClasses(g);let _=h.as||c,v=function(e,t,n,r){let i={};for(let a in e)e[a]===void 0||a[0]===`$`||a===`as`||a===`theme`&&e.theme===n||(a===`forwardedAs`?i.as=e.forwardedAs:r&&!r(a,t)||(i[a]=e[a],r||process.env.NODE_ENV!==`development`||p(a)||(Dn||=new Set).has(a)||!pt(t)||t.includes(`-`)||(Dn.add(a),console.warn(`styled-components: it looks like an unknown prop "${a}" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via \`<StyleSheetManager shouldForwardProp={...}>\` (connect an API like \`@emotion/is-prop-valid\`) or consider using transient props (\`$\` prefix for automatic filtering.)`))));return i}(h,_,m,f),y=Mt(o,s);return g&&(y+=` `+g),h.className&&(y+=` `+h.className),v[pt(_)&&_.includes(`-`)?`class`:`className`]=y,n&&(v.ref=n),(0,l.createElement)(_,v)}(g,e,t)}h.displayName=c;let g=l.default.forwardRef(h);return g.attrs=d,g.componentStyle=m,g.displayName=c,g.shouldForwardProp=f,g.foldedComponentIds=r?Mt(i.foldedComponentIds,i.styledComponentId):``,g.styledComponentId=u,g.target=r?i.target:e,Object.defineProperty(g,"defaultProps",{get(){return this._foldedDefaultProps},set(e){this._foldedDefaultProps=r?function(e,...t){for(let n of t)Pt(e,n,!0);return e}({},i.defaultProps,e):e}}),process.env.NODE_ENV!==`production`&&(et(c,u),g.warnTooManyClasses=((e,t)=>{let n={},r=!1;return i=>{!r&&(n[i]=!0,Object.keys(n).length>=200)&&(console.warn(`Over 200 classes were generated for component ${e}${t?` with the id of "${t}"`:``}.\nConsider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))\`width: 100%;\`\n\n <Component />`),r=!0,n={})}})(c,u)),Ft(g,()=>`.${g.styledComponentId}`),a&&Ot(g,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),g}var kn=new Set(`a.abbr.address.area.article.aside.audio.b.bdi.bdo.blockquote.body.button.br.canvas.caption.cite.code.col.colgroup.data.datalist.dd.del.details.dfn.dialog.div.dl.dt.em.embed.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.header.hgroup.hr.html.i.iframe.img.input.ins.kbd.label.legend.li.main.map.mark.menu.meter.nav.object.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.slot.small.span.strong.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.u.ul.var.video.wbr.circle.clipPath.defs.ellipse.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDistantLight.feDropShadow.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.filter.foreignObject.g.image.line.linearGradient.marker.mask.path.pattern.polygon.polyline.radialGradient.rect.stop.svg.switch.symbol.text.textPath.tspan.use`.split(`.`));function An(e,t){let n=[e[0]];for(let r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n}var jn=e=>(Qt.add(e),e);function Mn(e,...t){if(kt(e)||U(e))return jn(G(An(tt,[e,...t])));let n=e;return t.length===0&&n.length===1&&typeof n[0]==`string`?G(n):jn(G(An(n,t)))}function Nn(e,t,n=V){if(!t)throw B(1,t);let r=(r,...i)=>e(t,n,Mn(r,...i));return r.attrs=r=>Nn(e,t,Object.assign(Object.assign({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)})),r.withConfig=r=>Nn(e,t,Object.assign(Object.assign({},n),r)),r}var Pn=e=>Nn(On,e),q=Pn;kn.forEach(e=>{q[e]=Pn(e)});var Fn=class{constructor(e,t){this.instanceRules=new Map,this.rules=e,this.componentId=t,this.isStatic=function(e){for(let t=0;t<e.length;t+=1){let n=e[t];if(kt(n)&&!jt(n))return!1}return!0}(e),Zt.registerId(this.componentId)}removeStyles(e,t){this.instanceRules.delete(e),this.rebuildGroup(t)}renderStyles(e,t,n,r){let i=this.componentId;if(this.isStatic){if(n.hasNameForId(i,i+e))this.instanceRules.has(e)||this.computeRules(e,t,n,r);else{let a=this.computeRules(e,t,n,r);n.insertRules(i,a.name,a.rules)}return}let a=this.instanceRules.get(e);if(this.computeRules(e,t,n,r),!n.server&&a){let t=a.rules,n=this.instanceRules.get(e).rules;if(t.length===n.length){let e=!0;for(let r=0;r<t.length;r++)if(t[r]!==n[r]){e=!1;break}if(e)return}}this.rebuildGroup(n)}computeRules(e,t,n,r){let i=Nt(G(this.rules,t,n,r)),a={name:this.componentId+e,rules:r(i,``)};return this.instanceRules.set(e,a),a}rebuildGroup(e){let t=this.componentId;e.clearRules(t);for(let n of this.instanceRules.values())e.insertRules(t,n.name,n.rules)}};function In(e,...t){let n=Mn(e,...t),r=`sc-global-${dt(JSON.stringify(n))}`,i=new Fn(n,r);process.env.NODE_ENV!==`production`&&et(r);let a=e=>{let t=xn(),a=l.default.useContext(Sn),s;{let e=l.default.useRef(null);e.current===null&&(e.current=t.styleSheet.allocateGSInstance(r)),s=e.current}process.env.NODE_ENV!==`production`&&l.default.Children.count(e.children)&&console.warn(`The global style component ${r} was given child JSX. createGlobalStyle does not render children.`),process.env.NODE_ENV!==`production`&&n.some(e=>typeof e==`string`&&e.indexOf(`@import`)!==-1)&&console.warn(`Please do not use @import CSS syntax in createGlobalStyle at this time, as the CSSOM APIs we use in production do not handle it well. Instead, we recommend using a library such as react-helmet to inject a typical <link> meta tag to the stylesheet, or simply embedding it manually in your index.html <head> section for a simpler app.`),t.styleSheet.server&&o(s,e,t.styleSheet,a,t.stylis);{let n=i.isStatic?[s,t.styleSheet,i]:[s,e,t.styleSheet,a,t.stylis,i],c=l.default.useRef(i);l.default.useLayoutEffect(()=>{t.styleSheet.server||(c.current!==i&&(t.styleSheet.clearRules(r),c.current=i),o(s,e,t.styleSheet,a,t.stylis))},n),l.default.useLayoutEffect(()=>()=>{t.styleSheet.server||i.removeStyles(s,t.styleSheet)},[s,t.styleSheet,i])}return t.styleSheet.server&&i.instanceRules.delete(s),null};function o(e,t,n,r,o){if(i.isStatic)i.renderStyles(e,Ue,n,o);else{let s=Object.assign(Object.assign({},t),{theme:nt(t,r,a.defaultProps)});i.renderStyles(e,s,n,o)}}return l.default.memo(a)}var Ln,Rn=class{constructor(e,t){this[Ln]=!0,this.inject=(e,t=yn)=>{let n=this.getName(t);if(!e.hasNameForId(this.id,n)){let r=t(this.rules,n,`@keyframes`);e.insertRules(this.id,n,r)}},this.name=e,this.id=He+e,this.rules=t,Ye(this.id),Ft(this,()=>{throw B(12,String(this.name))})}getName(e=yn){return e.hash?this.name+ct(e.hash>>>0):this.name}};function zn(e,...t){process.env.NODE_ENV!==`production`&&typeof navigator<`u`&&navigator.product===`ReactNative`&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");let n=Nt(Mn(e,...t));return new Rn(dt(n),n)}Ln=nn,process.env.NODE_ENV!==`production`&&typeof navigator<`u`&&navigator.product===`ReactNative`&&console.warn(`It looks like you've imported 'styled-components' on React Native.
75
+ `};function W(e,...t){return process.env.NODE_ENV===`production`?Error(`An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#${e} for more information.${t.length>0?` Args: ${t.join(`, `)}`:``}`):Error(function(...e){let t=e[0],n=[];for(let t=1,r=e.length;t<r;t+=1)n.push(e[t]);return n.forEach(e=>{t=t.replace(/%[a-z]/,e)}),t}(He[e],...t).trim())}var Ue=1<<30,We=new Map,Ge=new Map,Ke=1,qe=e=>{if(We.has(e))return We.get(e);for(;Ge.has(Ke);)Ke++;let t=Ke++;if(process.env.NODE_ENV!==`production`&&((0|t)<0||t>Ue))throw W(16,`${t}`);return We.set(e,t),Ge.set(t,e),t},Je=e=>Ge.get(e),Ye=(e,t)=>{Ke=t+1,We.set(e,t),Ge.set(t,e)},Xe=/invalid hook call/i,Ze=new Set,Qe=(e,t)=>{if(process.env.NODE_ENV!==`production`){let n=`The component ${e}${t?` with the id of "${t}"`:``} has been created dynamically.\nYou may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.\nSee https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.\n`,r=console.error;try{let e=!0;console.error=(t,...i)=>{Xe.test(t)?(e=!1,Ze.delete(n)):r(t,...i)},typeof l.default.useState==`function`&&l.default.useState(null),e&&!Ze.has(n)&&(console.warn(n),Ze.add(n))}catch(e){Xe.test(e.message)&&Ze.delete(n)}finally{console.error=r}}},$e=Object.freeze([]),et=Object.freeze({});function tt(e,t,n=et){return e.theme!==n.theme&&e.theme||t||n.theme}var nt=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,rt=/(^-|-$)/g;function it(e){return e.replace(nt,`-`).replace(rt,``)}var at=/(a)(d)/gi,ot=e=>String.fromCharCode(e+(e>25?39:97));function st(e){let t,n=``;for(t=Math.abs(e);t>52;t=t/52|0)n=ot(t%52)+n;return(ot(t%52)+n).replace(at,`$1-$2`)}var ct=5381,G=(e,t)=>{let n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e},lt=e=>G(ct,e);function ut(e){return st(lt(e)>>>0)}function dt(e){return process.env.NODE_ENV!==`production`&&typeof e==`string`&&e||e.displayName||e.name||`Component`}function ft(e){return typeof e==`string`&&(process.env.NODE_ENV===`production`||e.charAt(0)===e.charAt(0).toLowerCase())}function pt(e){return ft(e)?`styled.${e}`:`Styled(${dt(e)})`}var mt=Symbol.for(`react.memo`),ht=Symbol.for(`react.forward_ref`),gt={contextType:!0,defaultProps:!0,displayName:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},_t={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},vt={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},yt={[ht]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[mt]:vt};function bt(e){return(`type`in(t=e)&&t.type.$$typeof)===mt?vt:`$$typeof`in e?yt[e.$$typeof]:gt;var t}var xt=Object.defineProperty,St=Object.getOwnPropertyNames,Ct=Object.getOwnPropertySymbols,wt=Object.getOwnPropertyDescriptor,Tt=Object.getPrototypeOf,Et=Object.prototype;function Dt(e,t,n){if(typeof t!=`string`){let r=Tt(t);r&&r!==Et&&Dt(e,r,n);let i=St(t).concat(Ct(t)),a=bt(e),o=bt(t);for(let r=0;r<i.length;++r){let s=i[r];if(!(s in _t||n&&n[s]||o&&s in o||a&&s in a)){let n=wt(t,s);try{xt(e,s,n)}catch{}}}}return e}function Ot(e){return typeof e==`function`}var kt=Symbol.for(`react.forward_ref`);function At(e){return e!=null&&(typeof e==`object`||typeof e==`function`)&&e.$$typeof===kt&&`styledComponentId`in e}function jt(e,t){return e&&t?e+` `+t:e||t||``}function Mt(e,t){return e.join(t||``)}function K(e){return typeof e==`object`&&!!e&&e.constructor.name===Object.name&&!(`props`in e&&e.$$typeof)}function Nt(e,t,n=!1){if(!n&&!K(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(let n=0;n<t.length;n++)e[n]=Nt(e[n],t[n]);else if(K(t))for(let n in t)e[n]=Nt(e[n],t[n]);return e}function Pt(e,t){Object.defineProperty(e,"toString",{value:t})}var Ft=class{constructor(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e,this._cGroup=0,this._cIndex=0}indexOfGroup(e){if(e===this._cGroup)return this._cIndex;let t=this._cIndex;if(e>this._cGroup)for(let n=this._cGroup;n<e;n++)t+=this.groupSizes[n];else for(let n=this._cGroup-1;n>=e;n--)t-=this.groupSizes[n];return this._cGroup=e,this._cIndex=t,t}insertRules(e,t){if(e>=this.groupSizes.length){let t=this.groupSizes,n=t.length,r=n;for(;e>=r;)if(r<<=1,r<0)throw W(16,`${e}`);this.groupSizes=new Uint32Array(r),this.groupSizes.set(t),this.length=r;for(let e=n;e<r;e++)this.groupSizes[e]=0}let n=this.indexOfGroup(e+1),r=0;for(let i=0,a=t.length;i<a;i++)this.tag.insertRule(n,t[i])&&(this.groupSizes[e]++,n++,r++);r>0&&this._cGroup>e&&(this._cIndex+=r)}clearGroup(e){if(e<this.length){let t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(let e=n;e<r;e++)this.tag.deleteRule(n);t>0&&this._cGroup>e&&(this._cIndex-=t)}}getGroup(e){let t=``;if(e>=this.length||this.groupSizes[e]===0)return t;let n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n;for(let e=r;e<i;e++)t+=this.tag.getRule(e)+Ie;return t}},It=`style[${U}][${Pe}="${Fe}"]`,Lt=RegExp(`^${U}\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)`),Rt=e=>typeof ShadowRoot<`u`&&e instanceof ShadowRoot||`host`in e&&e.nodeType===11,zt=e=>{if(!e)return document;if(Rt(e))return e;if(`getRootNode`in e){let t=e.getRootNode();if(Rt(t))return t}return document},Bt=(e,t,n)=>{let r=n.split(`,`),i;for(let n=0,a=r.length;n<a;n++)(i=r[n])&&e.registerName(t,i)},Vt=(e,t)=>{let n=(t.textContent??``).split(Ie),r=[];for(let t=0,i=n.length;t<i;t++){let i=n[t].trim();if(!i)continue;let a=i.match(Lt);if(a){let t=0|parseInt(a[1],10),n=a[2];t!==0&&(Ye(n,t),Bt(e,n,a[3]),e.getTag().insertRules(t,r)),r.length=0}else r.push(i)}},Ht=e=>{let t=zt(e.options.target).querySelectorAll(It);for(let n=0,r=t.length;n<r;n++){let r=t[n];r&&r.getAttribute(U)!==Ne&&(Vt(e,r),r.parentNode&&r.parentNode.removeChild(r))}},Ut=!1;function Wt(){if(!1!==Ut)return Ut;if(typeof document<`u`){let e=document.head.querySelector(`meta[property="csp-nonce"]`);if(e)return Ut=e.nonce||e.getAttribute(`content`)||void 0;let t=document.head.querySelector(`meta[name="sc-nonce"]`);if(t)return Ut=t.getAttribute(`content`)||void 0}return Ut=typeof __webpack_nonce__<`u`?__webpack_nonce__:void 0}var Gt=(e,t)=>{let n=document.head,r=e||n,i=document.createElement(`style`),a=(e=>{let t=Array.from(e.querySelectorAll(`style[${U}]`));return t[t.length-1]})(r),o=a===void 0?null:a.nextSibling;i.setAttribute(U,Ne),i.setAttribute(Pe,Fe);let s=t||Wt();return s&&i.setAttribute(`nonce`,s),r.insertBefore(i,o),i},Kt=class{constructor(e,t){this.element=Gt(e,t),this.element.appendChild(document.createTextNode(``)),this.sheet=(e=>{if(e.sheet)return e.sheet;let t=e.getRootNode().styleSheets??document.styleSheets;for(let n=0,r=t.length;n<r;n++){let r=t[n];if(r.ownerNode===e)return r}throw W(17)})(this.element),this.length=0}insertRule(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch{return!1}}deleteRule(e){this.sheet.deleteRule(e),this.length--}getRule(e){let t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:``}},qt=class{constructor(e,t){this.element=Gt(e,t),this.nodes=this.element.childNodes,this.length=0}insertRule(e,t){if(e<=this.length&&e>=0){let n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1}deleteRule(e){this.element.removeChild(this.nodes[e]),this.length--}getRule(e){return e<this.length?this.nodes[e].textContent:``}},Jt=Le,Yt={isServer:!Le,useCSSOMInjection:!ze},Xt=class e{static registerId(e){return qe(e)}constructor(e=et,t={},n){this.options=Object.assign(Object.assign({},Yt),e),this.gs=t,this.keyframeIds=new Set,this.names=new Map(n),this.server=!!e.isServer,!this.server&&Le&&Jt&&(Jt=!1,Ht(this)),Pt(this,()=>(e=>{let t=e.getTag(),{length:n}=t,r=``;for(let i=0;i<n;i++){let n=Je(i);if(n===void 0)continue;let a=e.names.get(n);if(a===void 0||!a.size)continue;let o=t.getGroup(i);if(o.length===0)continue;let s=U+`.g`+i+`[id="`+n+`"]`,c=``;for(let e of a)e.length>0&&(c+=e+`,`);r+=o+s+`{content:"`+c+`"}/*!sc*/
76
+ `}return r})(this))}rehydrate(){!this.server&&Le&&Ht(this)}reconstructWithOptions(t,n=!0){let r=new e(Object.assign(Object.assign({},this.options),t),this.gs,n&&this.names||void 0);return r.keyframeIds=new Set(this.keyframeIds),!this.server&&Le&&t.target!==this.options.target&&zt(this.options.target)!==zt(t.target)&&Ht(r),r}allocateGSInstance(e){return this.gs[e]=(this.gs[e]||0)+1}getTag(){return this.tag||=(e=(({useCSSOMInjection:e,target:t,nonce:n})=>e?new Kt(t,n):new qt(t,n))(this.options),new Ft(e));var e}hasNameForId(e,t){var n;return(n=this.names.get(e)?.has(t))!=null&&n}registerName(e,t){qe(e),e.startsWith(Be)&&this.keyframeIds.add(e);let n=this.names.get(e);n?n.add(t):this.names.set(e,new Set([t]))}insertRules(e,t,n){this.registerName(e,t),this.getTag().insertRules(qe(e),n)}clearNames(e){this.names.has(e)&&this.names.get(e).clear()}clearRules(e){this.getTag().clearGroup(qe(e)),this.clearNames(e)}clearTag(){this.tag=void 0}},Zt=new WeakSet,Qt={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexShrink:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function $t(e,t){return t==null||typeof t==`boolean`||t===``?``:typeof t!=`number`||t===0||e in Qt||e.startsWith(`--`)?String(t).trim():t+`px`}var q=47;function en(e){if(e.charCodeAt(0)===45&&e.charCodeAt(1)===45)return e;let t=``;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);t+=r>=65&&r<=90?`-`+String.fromCharCode(r+32):e[n]}return t.startsWith(`ms-`)?`-`+t:t}var tn=Symbol.for(`sc-keyframes`);function nn(e){return typeof e==`object`&&!!e&&tn in e}function rn(e){return Ot(e)&&!(e.prototype&&e.prototype.isReactComponent)}var an=e=>e==null||!1===e||e===``,on=Symbol.for(`react.client.reference`);function sn(e){return e.$$typeof===on}function cn(e){let t=e.$$id,n=(t&&t.includes(`#`)?t.split(`#`).pop():t)||e.name||`unknown`;console.warn(`Interpolating a client component (${n}) as a selector is not supported in server components. The component selector pattern requires access to the component's internal class name, which is not available across the server/client boundary. Use a plain CSS class selector instead.`)}function ln(e,t){for(let n in e){let r=e[n];e.hasOwnProperty(n)&&!an(r)&&(Array.isArray(r)&&Zt.has(r)||Ot(r)?t.push(en(n)+`:`,r,`;`):K(r)?(t.push(n+` {`),ln(r,t),t.push(`}`)):t.push(en(n)+`: `+$t(n,r)+`;`))}}function J(e,t,n,r,i=[]){if(an(e))return i;let a=typeof e;if(a===`string`)return i.push(e),i;if(a===`function`){if(sn(e))return process.env.NODE_ENV!==`production`&&cn(e),i;if(rn(e)&&t){let a=e(t);return process.env.NODE_ENV===`production`||typeof a!=`object`||Array.isArray(a)||nn(a)||K(a)||a===null||console.error(`${dt(e)} is not a styled component and cannot be referred to via component selector. See https://styled-components.com/docs/advanced#referring-to-other-components for more details.`),J(a,t,n,r,i)}return i.push(e),i}if(Array.isArray(e)){for(let a=0;a<e.length;a++)J(e[a],t,n,r,i);return i}return At(e)?(i.push(`.${e.styledComponentId}`),i):nn(e)?(n?(e.inject(n,r),i.push(e.getName(r))):i.push(e),i):sn(e)?(process.env.NODE_ENV!==`production`&&cn(e),i):K(e)&&e.toString===Object.prototype.toString?(ln(e,i),i):(i.push(e.toString()),i)}var un=lt(Fe),dn=class{constructor(e,t,n){this.rules=e,this.componentId=t,this.baseHash=G(un,t),this.baseStyle=n,Xt.registerId(t)}generateAndInjectStyles(e,t,n){let r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):``;{let i=``;for(let r=0;r<this.rules.length;r++){let a=this.rules[r];if(typeof a==`string`)i+=a;else if(a){if(rn(a)){let r=a(e);typeof r==`string`?i+=r:r!=null&&!1!==r&&(process.env.NODE_ENV===`production`||typeof r!=`object`||Array.isArray(r)||nn(r)||K(r)||console.error(`${dt(a)} is not a styled component and cannot be referred to via component selector. See https://styled-components.com/docs/advanced#referring-to-other-components for more details.`),i+=Mt(J(r,e,t,n)))}else i+=Mt(J(a,e,t,n))}}if(i){this.dynamicNameCache||=new Map;let e=n.hash?n.hash+i:i,a=this.dynamicNameCache.get(e);if(!a){if(a=st(G(G(this.baseHash,n.hash),i)>>>0),this.dynamicNameCache.size>=200){let e=this.dynamicNameCache.keys().next().value;e!==void 0&&this.dynamicNameCache.delete(e)}this.dynamicNameCache.set(e,a)}if(!t.hasNameForId(this.componentId,a)){let e=n(i,`.`+a,void 0,this.componentId);t.insertRules(this.componentId,a,e)}r=jt(r,a)}}return r}},fn=/&/g;function pn(e,t){let n=0;for(;--t>=0&&e.charCodeAt(t)===92;)n++;return!(1&~n)}function mn(e){let t=e.length,n=``,r=0,i=0,a=0,o=!1,s=!1;for(let c=0;c<t;c++){let l=e.charCodeAt(c);if(a!==0||o||l!==q||e.charCodeAt(c+1)!==42){if(o)l===42&&e.charCodeAt(c+1)===q&&(o=!1,c++);else if(l!==34&&l!==39||pn(e,c)){if(a===0){if(l===123)i++;else if(l===125){if(i--,i<0){s=!0;let n=c+1;for(;n<t;){let t=e.charCodeAt(n);if(t===59||t===10)break;n++}n<t&&e.charCodeAt(n)===59&&n++,i=0,c=n-1,r=n;continue}i===0&&(n+=e.substring(r,c+1),r=c+1)}else l===59&&i===0&&(n+=e.substring(r,c+1),r=c+1)}}else a===0?a=l:a===l&&(a=0)}else o=!0,c++}return s||i!==0||a!==0?(r<t&&i===0&&a===0&&(n+=e.substring(r)),n):e}function hn(e,t){let n=t+` `,r=`,`+n;for(let i=0;i<e.length;i++){let a=e[i];if(a.type===`rule`){a.value=(n+a.value).replaceAll(`,`,r);let e=a.props,t=[];for(let r=0;r<e.length;r++)t[r]=n+e[r];a.props=t}Array.isArray(a.children)&&a.type!==`@keyframes`&&hn(a.children,t)}return e}function gn({options:e=et,plugins:t=$e}=et){let n,r,i,a=(e,t,i)=>i.startsWith(r)&&i.endsWith(r)&&i.replaceAll(r,``).length>0?`.${n}`:e,o=t.slice();o.push(e=>{e.type===`rule`&&e.value.includes(`&`)&&(i||=RegExp(`\\${r}\\b`,`g`),e.props[0]=e.props[0].replace(fn,r).replace(i,a))}),e.prefix&&o.push(Me),o.push(ke);let s=[],c=Ae(o.concat(je(e=>s.push(e)))),l=(t,a=``,o=``,l=`&`)=>{n=l,r=a,i=void 0;let u=function(e){let t=e.indexOf(`//`)!==-1,n=e.indexOf(`}`)!==-1;if(!t&&!n)return e;if(!t)return mn(e);let r=e.length,i=``,a=0,o=0,s=0,c=0,l=0,u=!1;for(;o<r;){let t=e.charCodeAt(o);if(t!==34&&t!==39||pn(e,o)){if(s===0){if(t===q&&o+1<r&&e.charCodeAt(o+1)===42){for(o+=2;o+1<r&&(e.charCodeAt(o)!==42||e.charCodeAt(o+1)!==q);)o++;o+=2}else if(t!==40){if(t!==41){if(c>0)o++;else if(t===42&&o+1<r&&e.charCodeAt(o+1)===q)i+=e.substring(a,o),o+=2,a=o,u=!0;else if(t===q&&o+1<r&&e.charCodeAt(o+1)===q){for(i+=e.substring(a,o);o<r&&e.charCodeAt(o)!==10;)o++;a=o,u=!0}else t===123?l++:t===125&&l--,o++}else c>0&&c--,o++}else c++,o++}else o++}else s===0?s=t:s===t&&(s=0),o++}return u?(a<r&&(i+=e.substring(a)),l===0?i:mn(i)):l===0?e:mn(e)}(t),d=Se(o||a?o+` `+a+` { `+u+` }`:u);return e.namespace&&(d=hn(d,e.namespace)),s=[],Oe(d,c),s},u=e,d=ct;for(let e=0;e<t.length;e++)t[e].name||W(15),d=G(d,t[e].name);return u!=null&&u.namespace&&(d=G(d,u.namespace)),u!=null&&u.prefix&&(d=G(d,`p`)),l.hash=d===ct?``:d.toString(),l}var _n=new Xt,vn=gn(),yn=l.default.createContext({shouldForwardProp:void 0,styleSheet:_n,stylis:vn,stylisPlugins:void 0});yn.Consumer;function bn(){return l.default.useContext(yn)}var xn=l.default.createContext(void 0);xn.Consumer;function Y(){let e=l.default.useContext(xn);if(!e)throw W(18);return e}function Sn(e){let t=l.default.useContext(xn),n=l.default.useMemo(()=>function(e,t){if(!e)throw W(14);if(Ot(e)){let n=e(t);if(process.env.NODE_ENV!==`production`&&(n===null||Array.isArray(n)||typeof n!=`object`))throw W(7);return n}if(Array.isArray(e)||typeof e!=`object`)throw W(8);return t?Object.assign(Object.assign({},t),e):e}(e.theme,t),[e.theme,t]);return e.children?l.default.createElement(xn.Provider,{value:n},e.children):null}var Cn=Object.prototype.hasOwnProperty,wn={};function Tn(e,t){let n=typeof e==`string`?it(e):`sc`;wn[n]=(wn[n]||0)+1;let r=n+`-`+ut(Fe+n+wn[n]);return t?t+`-`+r:r}var En;function Dn(e,t,n){let r=At(e),i=e,a=!ft(e),{attrs:o=$e,componentId:s=Tn(t.displayName,t.parentComponentId),displayName:c=pt(e)}=t,u=t.displayName&&t.componentId?it(t.displayName)+`-`+t.componentId:t.componentId||s,d=r&&i.attrs?i.attrs.concat(o).filter(Boolean):o,{shouldForwardProp:f}=t;if(r&&i.shouldForwardProp){let e=i.shouldForwardProp;if(t.shouldForwardProp){let n=t.shouldForwardProp;f=(t,r)=>e(t,r)&&n(t,r)}else f=e}let p=new dn(n,u,r?i.componentStyle:void 0);function m(e,t){return function(e,t,n){let{attrs:r,componentStyle:i,defaultProps:a,foldedComponentIds:o,styledComponentId:s,target:c}=e,u=l.default.useContext(xn),d=bn(),f=e.shouldForwardProp||d.shouldForwardProp;process.env.NODE_ENV!==`production`&&l.default.useDebugValue&&l.default.useDebugValue(s);let p=tt(t,u,a)||et,m,g;{let e=l.default.useRef(null),n=e.current;if(n!==null&&n[1]===p&&n[2]===d.styleSheet&&n[3]===d.stylis&&n[7]===i&&function(e,t,n){let r=e,i=t,a=0;for(let e in i)if(Cn.call(i,e)&&(a++,r[e]!==i[e]))return!1;return a===n}(n[0],t,n[4]))m=n[5],g=n[6];else{m=function(e,t,n){let r=Object.assign(Object.assign({},t),{className:void 0,theme:n}),i=e.length>1;for(let n=0;n<e.length;n++){let a=e[n],o=Ot(a)?a(i?Object.assign({},r):r):a;for(let e in o)e===`className`?r.className=jt(r.className,o[e]):e===`style`?r.style=Object.assign(Object.assign({},r.style),o[e]):e in t&&t[e]===void 0||(r[e]=o[e])}return`className`in t&&typeof t.className==`string`&&(r.className=jt(r.className,t.className)),r}(r,t,p),g=i.generateAndInjectStyles(m,d.styleSheet,d.stylis);let n=0;for(let e in t)Cn.call(t,e)&&n++;e.current=[t,p,d.styleSheet,d.stylis,n,m,g,i]}}process.env.NODE_ENV!==`production`&&l.default.useDebugValue&&l.default.useDebugValue(g),process.env.NODE_ENV!==`production`&&e.warnTooManyClasses&&e.warnTooManyClasses(g);let _=m.as||c,v=function(e,t,n,r){let i={};for(let a in e)e[a]===void 0||a[0]===`$`||a===`as`||a===`theme`&&e.theme===n||(a===`forwardedAs`?i.as=e.forwardedAs:r&&!r(a,t)||(i[a]=e[a],r||process.env.NODE_ENV!==`development`||h(a)||(En||=new Set).has(a)||!ft(t)||t.includes(`-`)||(En.add(a),console.warn(`styled-components: it looks like an unknown prop "${a}" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via \`<StyleSheetManager shouldForwardProp={...}>\` (connect an API like \`@emotion/is-prop-valid\`) or consider using transient props (\`$\` prefix for automatic filtering.)`))));return i}(m,_,p,f),y=jt(o,s);return g&&(y+=` `+g),m.className&&(y+=` `+m.className),v[ft(_)&&_.includes(`-`)?`class`:`className`]=y,n&&(v.ref=n),(0,l.createElement)(_,v)}(g,e,t)}m.displayName=c;let g=l.default.forwardRef(m);return g.attrs=d,g.componentStyle=p,g.displayName=c,g.shouldForwardProp=f,g.foldedComponentIds=r?jt(i.foldedComponentIds,i.styledComponentId):``,g.styledComponentId=u,g.target=r?i.target:e,Object.defineProperty(g,"defaultProps",{get(){return this._foldedDefaultProps},set(e){this._foldedDefaultProps=r?function(e,...t){for(let n of t)Nt(e,n,!0);return e}({},i.defaultProps,e):e}}),process.env.NODE_ENV!==`production`&&(Qe(c,u),g.warnTooManyClasses=((e,t)=>{let n={},r=!1;return i=>{!r&&(n[i]=!0,Object.keys(n).length>=200)&&(console.warn(`Over 200 classes were generated for component ${e}${t?` with the id of "${t}"`:``}.\nConsider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))\`width: 100%;\`\n\n <Component />`),r=!0,n={})}})(c,u)),Pt(g,()=>`.${g.styledComponentId}`),a&&Dt(g,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),g}var On=new Set(`a.abbr.address.area.article.aside.audio.b.bdi.bdo.blockquote.body.button.br.canvas.caption.cite.code.col.colgroup.data.datalist.dd.del.details.dfn.dialog.div.dl.dt.em.embed.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.header.hgroup.hr.html.i.iframe.img.input.ins.kbd.label.legend.li.main.map.mark.menu.meter.nav.object.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.slot.small.span.strong.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.u.ul.var.video.wbr.circle.clipPath.defs.ellipse.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDistantLight.feDropShadow.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.filter.foreignObject.g.image.line.linearGradient.marker.mask.path.pattern.polygon.polyline.radialGradient.rect.stop.svg.switch.symbol.text.textPath.tspan.use`.split(`.`));function kn(e,t){let n=[e[0]];for(let r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n}var An=e=>(Zt.add(e),e);function jn(e,...t){if(Ot(e)||K(e))return An(J(kn($e,[e,...t])));let n=e;return t.length===0&&n.length===1&&typeof n[0]==`string`?J(n):An(J(kn(n,t)))}function Mn(e,t,n=et){if(!t)throw W(1,t);let r=(r,...i)=>e(t,n,jn(r,...i));return r.attrs=r=>Mn(e,t,Object.assign(Object.assign({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)})),r.withConfig=r=>Mn(e,t,Object.assign(Object.assign({},n),r)),r}var Nn=e=>Mn(Dn,e),X=Nn;On.forEach(e=>{X[e]=Nn(e)});var Pn=class{constructor(e,t){this.instanceRules=new Map,this.rules=e,this.componentId=t,this.isStatic=function(e){for(let t=0;t<e.length;t+=1){let n=e[t];if(Ot(n)&&!At(n))return!1}return!0}(e),Xt.registerId(this.componentId)}removeStyles(e,t){this.instanceRules.delete(e),this.rebuildGroup(t)}renderStyles(e,t,n,r){let i=this.componentId;if(this.isStatic){if(n.hasNameForId(i,i+e))this.instanceRules.has(e)||this.computeRules(e,t,n,r);else{let a=this.computeRules(e,t,n,r);n.insertRules(i,a.name,a.rules)}return}let a=this.instanceRules.get(e);if(this.computeRules(e,t,n,r),!n.server&&a){let t=a.rules,n=this.instanceRules.get(e).rules;if(t.length===n.length){let e=!0;for(let r=0;r<t.length;r++)if(t[r]!==n[r]){e=!1;break}if(e)return}}this.rebuildGroup(n)}computeRules(e,t,n,r){let i=Mt(J(this.rules,t,n,r)),a={name:this.componentId+e,rules:r(i,``)};return this.instanceRules.set(e,a),a}rebuildGroup(e){let t=this.componentId;e.clearRules(t);for(let n of this.instanceRules.values())e.insertRules(t,n.name,n.rules)}};function Fn(e,...t){let n=jn(e,...t),r=`sc-global-${ut(JSON.stringify(n))}`,i=new Pn(n,r);process.env.NODE_ENV!==`production`&&Qe(r);let a=e=>{let t=bn(),a=l.default.useContext(xn),s;{let e=l.default.useRef(null);e.current===null&&(e.current=t.styleSheet.allocateGSInstance(r)),s=e.current}process.env.NODE_ENV!==`production`&&l.default.Children.count(e.children)&&console.warn(`The global style component ${r} was given child JSX. createGlobalStyle does not render children.`),process.env.NODE_ENV!==`production`&&n.some(e=>typeof e==`string`&&e.indexOf(`@import`)!==-1)&&console.warn(`Please do not use @import CSS syntax in createGlobalStyle at this time, as the CSSOM APIs we use in production do not handle it well. Instead, we recommend using a library such as react-helmet to inject a typical <link> meta tag to the stylesheet, or simply embedding it manually in your index.html <head> section for a simpler app.`),t.styleSheet.server&&o(s,e,t.styleSheet,a,t.stylis);{let n=i.isStatic?[s,t.styleSheet,i]:[s,e,t.styleSheet,a,t.stylis,i],c=l.default.useRef(i);l.default.useLayoutEffect(()=>{t.styleSheet.server||(c.current!==i&&(t.styleSheet.clearRules(r),c.current=i),o(s,e,t.styleSheet,a,t.stylis))},n),l.default.useLayoutEffect(()=>()=>{t.styleSheet.server||i.removeStyles(s,t.styleSheet)},[s,t.styleSheet,i])}return t.styleSheet.server&&i.instanceRules.delete(s),null};function o(e,t,n,r,o){if(i.isStatic)i.renderStyles(e,Ve,n,o);else{let s=Object.assign(Object.assign({},t),{theme:tt(t,r,a.defaultProps)});i.renderStyles(e,s,n,o)}}return l.default.memo(a)}var In,Ln=class{constructor(e,t){this[In]=!0,this.inject=(e,t=vn)=>{let n=this.getName(t);if(!e.hasNameForId(this.id,n)){let r=t(this.rules,n,`@keyframes`);e.insertRules(this.id,n,r)}},this.name=e,this.id=Be+e,this.rules=t,qe(this.id),Pt(this,()=>{throw W(12,String(this.name))})}getName(e=vn){return e.hash?this.name+st(e.hash>>>0):this.name}};function Rn(e,...t){process.env.NODE_ENV!==`production`&&typeof navigator<`u`&&navigator.product===`ReactNative`&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");let n=Mt(jn(e,...t));return new Ln(ut(n),n)}In=tn,process.env.NODE_ENV!==`production`&&typeof navigator<`u`&&navigator.product===`ReactNative`&&console.warn(`It looks like you've imported 'styled-components' on React Native.
77
77
  Perhaps you're looking to import 'styled-components/native'?
78
- Read more about this at https://styled-components.com/docs/basics#react-native`);var Bn=`__sc-${z}__`;process.env.NODE_ENV!==`production`&&process.env.NODE_ENV!==`test`&&typeof window<`u`&&(window[Bn]||(window[Bn]=0),window[Bn]===1&&console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
78
+ Read more about this at https://styled-components.com/docs/basics#react-native`);var zn=`__sc-${U}__`;process.env.NODE_ENV!==`production`&&process.env.NODE_ENV!==`test`&&typeof window<`u`&&(window[zn]||(window[zn]=0),window[zn]===1&&console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
79
79
 
80
- See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-several-instances-of-module-on-the-page for more info.`),window[Bn]+=1),`${z}`,`${z}`;var Vn=`reactSchedulerOutsideWrapper`,Hn=In`
80
+ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-several-instances-of-module-on-the-page for more info.`),window[zn]+=1),`${U}`,`${U}`;var Bn=`reactSchedulerOutsideWrapper`,Vn=Fn`
81
81
 
82
- #${Vn} {
82
+ #${Bn} {
83
83
  font-family: 'Inter', sans-serif;
84
84
  box-sizing: border-box;
85
85
  line-height: 1.15;
@@ -87,41 +87,75 @@ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-sev
87
87
  margin: 0;
88
88
  }
89
89
 
90
- #${Vn} *,
91
- #${Vn} *:before,
92
- #${Vn} *:after {
90
+ #${Bn} *,
91
+ #${Bn} *:before,
92
+ #${Bn} *:after {
93
93
  box-sizing: inherit;
94
94
  font-family: inherit;
95
95
  line-height: inherit;
96
96
  }
97
- `,Un={mode:`light`,navHeight:`44px`,colors:{background:`#FFFFFF`,gridBackground:`#FFFFFF`,primary:`#F8F8FD`,secondary:`#E6F3FF`,tertiary:`#C9E5FF`,textPrimary:`#1C222F`,textSecondary:`#FFFFFF`,placeholder:`#777777`,button:`#FFFFFF`,border:`#D2D2D2`,tooltip:`#3B3C5F`,hover:`#E6F3FF`,disabled:`#777777`,warning:`#EF4444`,defaultTile:`#728DE2`,accent:`#0A11EB`}},Wn={mode:`dark`,navHeight:`44px`,colors:{background:`#161B22`,gridBackground:`#1E252E`,primary:`#303b49`,secondary:`#444e5b`,tertiary:`#6E757F`,textPrimary:`#DADCE0`,textSecondary:`#EAEBED`,placeholder:`#bbbbbb`,button:`#60676f`,border:`#2C333A`,hover:`#303439`,tooltip:`#3B3C5F`,disabled:`#38414a`,warning:`#FF4C4C`,defaultTile:`#728DE2`,accent:`#1798c2`}},Gn=`
97
+ `,Hn={mode:`light`,navHeight:`44px`,colors:{background:`#FFFFFF`,gridBackground:`#FFFFFF`,primary:`#F8F8FD`,secondary:`#E6F3FF`,tertiary:`#C9E5FF`,textPrimary:`#1C222F`,textSecondary:`#FFFFFF`,placeholder:`#777777`,button:`#FFFFFF`,border:`#D2D2D2`,tooltip:`#3B3C5F`,hover:`#E6F3FF`,disabled:`#777777`,warning:`#EF4444`,defaultTile:`#728DE2`,accent:`#0A11EB`}},Un={mode:`dark`,navHeight:`44px`,colors:{background:`#161B22`,gridBackground:`#1E252E`,primary:`#303b49`,secondary:`#444e5b`,tertiary:`#6E757F`,textPrimary:`#DADCE0`,textSecondary:`#EAEBED`,placeholder:`#bbbbbb`,button:`#60676f`,border:`#2C333A`,hover:`#303439`,tooltip:`#3B3C5F`,disabled:`#38414a`,warning:`#FF4C4C`,defaultTile:`#728DE2`,accent:`#1798c2`}},Wn=`
98
98
  margin: 0;
99
99
  padding: 0;
100
- `,Kn=`
100
+ `,Gn=`
101
101
  overflow: hidden;
102
102
  text-overflow: ellipsis;
103
103
  white-space: nowrap;
104
- `;q.div`
104
+ `;X.div`
105
105
  margin: 10rem 10rem;
106
106
  position: relative;
107
107
  width: 40vw;
108
108
  height: 40vh;
109
- `;var J={topRow:`600 14px Inter`,middleRow:`400 10px Inter`,bottomRow:{name:`600 14px Inter`,number:`600 10px Inter`}},qn=1.6,Jn=4.5,Yn=`reactSchedulerCanvasHeaderWrapper`,Xn=`reactSchedulerCanvasWrapper`,Y=Vn,X=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){"use strict";var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,S=function(e){return e instanceof E||!(!e||!e[x])},C=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new E(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return T},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<w(e)},_.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!T.u(t)||t,u=T.p(e),p=function(e,t){var i=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return T.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=T.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[T.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=T.p(u),h=function(e){var t=w(p);return T.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return T.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=T.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].slice(0,a)},f=function(e){return T.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return T.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return T.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return T.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return T.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return T.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return T.s(t.$s,2,`0`);case`SSS`:return T.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=T.p(f),_=w(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return T.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:T.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return T.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),ee=E.prototype;return w.prototype=ee,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){ee[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||=(e(t,E,w),!0),w},w.locale=C,w.isDayjs=S,w.unix=function(e){return w(1e3*e)},w.en=b[y],w.Ls=b,w.p={},w}))})),Z=c(X(),1),Zn=e=>e%4==0&&e%100>0||e%400==0?366:365,Qn=e=>{let t=e.day();return t!==0&&t!==6},$n=(e,t)=>(0,Z.default)(`${e.year}-${e.month+1}-${e.dayOfMonth}`).add(t,`months`).daysInMonth(),er=e=>({hour:e.hour(),dayName:e.format(`ddd`),dayOfMonth:e.date(),weekOfYear:e.week(),month:e.month(),monthName:e.format(`MMMM`),isBusinessDay:Qn(e),isCurrentDay:e.isSame((0,Z.default)(),`day`),year:parseInt(e.format(`YYYY`))}),tr=(e,t,n,r,i,a,o)=>{e.strokeStyle=o.colors.border,e.fillStyle=a?o.colors.secondary:i?`transparent`:o.colors.primary,e.beginPath(),e.setLineDash([]),e.fillRect(t,n,r,56),e.strokeRect(t+.5,n+.5,r,56)},nr=(e,t,n,r,i)=>{for(let a=0;a<t;a++)for(let t=0;t<=n;t++){let n=(0,Z.default)(`${r.year}-${r.month+1}-${r.dayOfMonth}`).add(t,`days`),o=n.isSame((0,Z.default)(),`day`);tr(e,t*50,a*56,50,Qn(n),o,i)}},rr=(e,t,n,r)=>{e.setLineDash([5,5]),e.strokeStyle=r.colors.border,e.moveTo(t+.5,.5),e.lineTo(t+.5,n+.5),e.stroke()},ir=(e,t,n,r,i)=>{let a=0,o=-(r.dayOfMonth-1)*12;for(let o=0;o<=n;o++){let n=(0,Z.default)(`${r.year}-${r.month+1}-${r.dayOfMonth}`).add(o,`weeks`).isSame((0,Z.default)(),`week`);for(let r=0;r<t;r++)tr(e,a,r*56,84,!0,n,i);a+=84}for(let a=0;a<n;a++){let n=$n(r,a)*12;rr(e,o,t*56,i),o+=n}},ar=(e,t,n,r,i)=>{let a=(0,Z.default)(`${r.year}-${r.month+1}-${r.dayOfMonth+1}`);for(let r=0;r<t;r++)for(let t=0;t<=n;t++){let o;o=t===Math.floor(n/2)?(0,Z.default)():t>Math.floor(n/2)?(0,Z.default)().add(t-Math.floor(n/2),`hours`):(0,Z.default)().subtract(Math.floor(n/2)-r,`hours`);let s=a.isSame((0,Z.default)(),`day`)&&o.isSame((0,Z.default)(),`hour`);tr(e,t*50+25-.5,r*56,50,Qn(o),s,i)}},or=(e,t,n,r,i,a)=>{if(e.clearRect(0,0,e.canvas.width,e.canvas.height),document.getElementById(`reactSchedulerCanvasWrapper`))switch(t){case 0:ir(e,n,r,i,a);break;case 1:nr(e,n,r,i,a);break;case 2:ar(e,n,r,i,a)}},sr=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_weekOfYear=r()})(e,(function(){"use strict";var e=`week`,t=`year`;return function(n,r,i){var a=r.prototype;a.week=function(n){if(n===void 0&&(n=null),n!==null)return this.add(7*(n-this.week()),`day`);var r=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var a=i(this).startOf(t).add(1,t).date(r),o=i(this).endOf(e);if(a.isBefore(o))return 1}var s=i(this).startOf(t).date(r).startOf(e).subtract(1,`millisecond`),c=this.diff(s,e,!0);return c<0?i(this).startOf(`week`).week():Math.ceil(c)},a.weeks=function(e){return e===void 0&&(e=null),this.week(e)}}}))})),cr=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_dayOfYear=r()})(e,(function(){"use strict";return function(e,t,n){t.prototype.dayOfYear=function(e){var t=Math.round((n(this).startOf(`day`)-n(this).startOf(`year`))/864e5)+1;return e==null?t:this.add(e-t,`day`)}}}))})),lr=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_isoWeek=r()})(e,(function(){"use strict";return function(e,t,n){var r=function(e){return e.add(4-e.isoWeekday(),`day`)},i=t.prototype;i.isoWeekYear=function(){return r(this).year()},i.isoWeek=function(e){if(!this.$utils().u(e))return this.add(7*(e-this.isoWeek()),`day`);var t,i,a,o,s=r(this),c=(t=this.isoWeekYear(),i=this.$u,a=(i?n.utc:n)().year(t).startOf(`year`),o=4-a.isoWeekday(),a.isoWeekday()>4&&(o+=7),a.add(o,`day`));return s.diff(c,`week`)+1},i.isoWeekday=function(e){return this.$utils().u(e)?this.day()||7:this.day(this.day()%7?e:e-7)};var a=i.startOf;i.startOf=function(e,t){var n=this.$utils(),r=!!n.u(t)||t;return n.p(e)===`isoweek`?r?this.date(this.date()-(this.isoWeekday()-1)).startOf(`day`):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf(`day`):a.bind(this)(e,t)}}}))})),ur=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_isBetween=r()})(e,(function(){"use strict";return function(e,t,n){t.prototype.isBetween=function(e,t,r,i){var a=n(e),o=n(t),s=(i||=`()`)[0]===`(`,c=i[1]===`)`;return(s?this.isAfter(a,r):!this.isBefore(a,r))&&(c?this.isBefore(o,r):!this.isAfter(o,r))||(s?this.isBefore(a,r):!this.isAfter(a,r))&&(c?this.isAfter(o,r):!this.isBefore(o,r))}}}))})),dr=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_duration=r()})(e,(function(){"use strict";var e,t,n=1e3,r=6e4,i=36e5,a=864e5,o=31536e6,s=2628e6,c=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,l=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,u={years:o,months:s,days:a,hours:i,minutes:r,seconds:n,milliseconds:1,weeks:6048e5},d=function(e){return e instanceof v},f=function(e,t,n){return new v(e,n,t.$l)},p=function(e){return t.p(e)+`s`},m=function(e){return e<0},h=function(e){return m(e)?Math.ceil(e):Math.floor(e)},g=function(e){return Math.abs(e)},_=function(e,t){return e?m(e)?{negative:!0,format:``+g(e)+t}:{negative:!1,format:``+e+t}:{negative:!1,format:``}},v=function(){function m(e,t,n){var r=this;if(this.$d={},this.$l=n,e===void 0&&(this.$ms=0,this.parseFromMilliseconds()),t)return f(e*u[p(t)],this);if(typeof e==`number`)return this.$ms=e,this.parseFromMilliseconds(),this;if(typeof e==`object`)return Object.keys(e).forEach((function(t){r.$d[p(t)]=e[t]})),this.calMilliseconds(),this;if(typeof e==`string`){var i=e.match(c);if(i){var a=i.slice(2).map((function(e){return e==null?0:Number(e)}));return this.$d.years=a[0],this.$d.months=a[1],this.$d.weeks=a[2],this.$d.days=a[3],this.$d.hours=a[4],this.$d.minutes=a[5],this.$d.seconds=a[6],this.calMilliseconds(),this}}return this}var g=m.prototype;return g.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce((function(t,n){return t+(e.$d[n]||0)*u[n]}),0)},g.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=h(e/o),e%=o,this.$d.months=h(e/s),e%=s,this.$d.days=h(e/a),e%=a,this.$d.hours=h(e/i),e%=i,this.$d.minutes=h(e/r),e%=r,this.$d.seconds=h(e/n),e%=n,this.$d.milliseconds=e},g.toISOString=function(){var e=_(this.$d.years,`Y`),t=_(this.$d.months,`M`),n=+this.$d.days||0;this.$d.weeks&&(n+=7*this.$d.weeks);var r=_(n,`D`),i=_(this.$d.hours,`H`),a=_(this.$d.minutes,`M`),o=this.$d.seconds||0;this.$d.milliseconds&&(o+=this.$d.milliseconds/1e3,o=Math.round(1e3*o)/1e3);var s=_(o,`S`),c=e.negative||t.negative||r.negative||i.negative||a.negative||s.negative,l=i.format||a.format||s.format?`T`:``,u=(c?`-`:``)+`P`+e.format+t.format+r.format+l+i.format+a.format+s.format;return u===`P`||u===`-P`?`P0D`:u},g.toJSON=function(){return this.toISOString()},g.format=function(e){var n=e||`YYYY-MM-DDTHH:mm:ss`,r={Y:this.$d.years,YY:t.s(this.$d.years,2,`0`),YYYY:t.s(this.$d.years,4,`0`),M:this.$d.months,MM:t.s(this.$d.months,2,`0`),D:this.$d.days,DD:t.s(this.$d.days,2,`0`),H:this.$d.hours,HH:t.s(this.$d.hours,2,`0`),m:this.$d.minutes,mm:t.s(this.$d.minutes,2,`0`),s:this.$d.seconds,ss:t.s(this.$d.seconds,2,`0`),SSS:t.s(this.$d.milliseconds,3,`0`)};return n.replace(l,(function(e,t){return t||String(r[e])}))},g.as=function(e){return this.$ms/u[p(e)]},g.get=function(e){var t=this.$ms,n=p(e);return n===`milliseconds`?t%=1e3:t=n===`weeks`?h(t/u[n]):this.$d[n],t||0},g.add=function(e,t,n){var r;return r=t?e*u[p(t)]:d(e)?e.$ms:f(e,this).$ms,f(this.$ms+r*(n?-1:1),this)},g.subtract=function(e,t){return this.add(e,t,!0)},g.locale=function(e){var t=this.clone();return t.$l=e,t},g.clone=function(){return f(this.$ms,this)},g.humanize=function(t){return e().add(this.$ms,`ms`).locale(this.$l).fromNow(!t)},g.valueOf=function(){return this.asMilliseconds()},g.milliseconds=function(){return this.get(`milliseconds`)},g.asMilliseconds=function(){return this.as(`milliseconds`)},g.seconds=function(){return this.get(`seconds`)},g.asSeconds=function(){return this.as(`seconds`)},g.minutes=function(){return this.get(`minutes`)},g.asMinutes=function(){return this.as(`minutes`)},g.hours=function(){return this.get(`hours`)},g.asHours=function(){return this.as(`hours`)},g.days=function(){return this.get(`days`)},g.asDays=function(){return this.as(`days`)},g.weeks=function(){return this.get(`weeks`)},g.asWeeks=function(){return this.as(`weeks`)},g.months=function(){return this.get(`months`)},g.asMonths=function(){return this.as(`months`)},g.years=function(){return this.get(`years`)},g.asYears=function(){return this.as(`years`)},m}(),y=function(e,t,n){return e.add(t.years()*n,`y`).add(t.months()*n,`M`).add(t.days()*n,`d`).add(t.hours()*n,`h`).add(t.minutes()*n,`m`).add(t.seconds()*n,`s`).add(t.milliseconds()*n,`ms`)};return function(n,r,i){e=i,t=i().$utils(),i.duration=function(e,t){return f(e,{$l:i.locale()},t)},i.isDuration=d;var a=r.prototype.add,o=r.prototype.subtract;r.prototype.add=function(e,t){return d(e)?y(this,e,1):a.bind(this)(e,t)},r.prototype.subtract=function(e,t){return d(e)?y(this,e,-1):o.bind(this)(e,t)}}}))})),fr=o(((e,t)=>{var n=NaN,r=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt,c=typeof global==`object`&&global&&global.Object===Object&&global,l=typeof self==`object`&&self&&self.Object===Object&&self,u=c||l||Function(`return this`)(),d=Object.prototype.toString,f=Math.max,p=Math.min,m=function(){return u.Date.now()};function h(e,t,n){var r,i,a,o,s,c,l=0,u=!1,d=!1,h=!0;if(typeof e!=`function`)throw TypeError(`Expected a function`);t=y(t)||0,g(n)&&(u=!!n.leading,d=`maxWait`in n,a=d?f(y(n.maxWait)||0,t):a,h=`trailing`in n?!!n.trailing:h);function _(t){var n=r,a=i;return r=i=void 0,l=t,o=e.apply(a,n),o}function v(e){return l=e,s=setTimeout(S,t),u?_(e):o}function b(e){var n=e-c,r=e-l,i=t-n;return d?p(i,a-r):i}function x(e){var n=e-c,r=e-l;return c===void 0||n>=t||n<0||d&&r>=a}function S(){var e=m();if(x(e))return C(e);s=setTimeout(S,b(e))}function C(e){return s=void 0,h&&r?_(e):(r=i=void 0,o)}function w(){s!==void 0&&clearTimeout(s),l=0,r=c=i=s=void 0}function T(){return s===void 0?o:C(m())}function E(){var e=m(),n=x(e);if(r=arguments,i=this,c=e,n){if(s===void 0)return v(c);if(d)return s=setTimeout(S,t),_(c)}return s===void 0&&(s=setTimeout(S,t)),o}return E.cancel=w,E.flush=T,E}function g(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function _(e){return!!e&&typeof e==`object`}function v(e){return typeof e==`symbol`||_(e)&&d.call(e)==`[object Symbol]`}function y(e){if(typeof e==`number`)return e;if(v(e))return n;if(g(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=g(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=e.replace(r,``);var c=a.test(e);return c||o.test(e)?s(e.slice(2),c?2:8):i.test(e)?n:+e}t.exports=h})),pr=c(sr(),1),mr=c(cr(),1),hr=c(lr(),1),gr=c(ur(),1),_r=c(dr(),1),vr=c(fr(),1),yr=[0,1,2],br=e=>yr.includes(e),xr=e=>{let t=(document.getElementById(Y)?.clientWidth||0)-196,n=0;switch(e){case 1:return Math.ceil(t/50)*3;case 2:return Math.ceil(t/50)*3;default:return n=Math.ceil(t/84*3),n%2==0?n:n+1}},Sr=e=>xr(e)/3,Cr=(e,t)=>{let n=xr(t)/2,r,i;switch(t){case 1:r=e.subtract(n,`days`);break;case 2:r=e.subtract(n,`hours`);break;default:i=(e.day()+6)%7,r=e.subtract(n,`weeks`).subtract(i,`days`)}let a;switch(t){case 1:a=e.add(n,`days`);break;case 2:a=e.add(n,`hours`);break;default:a=e.add(n,`weeks`)}return{startDate:r,endDate:a}},wr=(e,t)=>{let n=Cr(e,t);return{startDate:n.startDate.toDate(),endDate:n.endDate.toDate()}},Tr=()=>((document.getElementById(Y)?.clientWidth||0)-196)*3,Er=(0,l.createContext)({handleGoNext:()=>{},handleScrollNext:()=>{},handleGoPrev:()=>{},handleScrollPrev:()=>{},handleGoToday:()=>{},zoomIn:()=>{},zoomOut:()=>{},handleFilterData:()=>{},updateTilesCoords:()=>{},tilesCoords:[],zoom:0,isNextZoom:!1,isPrevZoom:!1,date:(0,Z.default)(),isLoading:!1,cols:0,startDate:{hour:0,dayName:``,dayOfMonth:0,weekOfYear:0,month:0,monthName:``,isCurrentDay:!1,isBusinessDay:!1,year:0},dayOfYear:0,recordsThreshold:0,config:{zoom:0}}),Dr=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_isSameOrBefore=r()})(e,(function(){"use strict";return function(e,t){t.prototype.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)}}}))})),Or=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_isSameOrAfter=r()})(e,(function(){"use strict";return function(e,t){t.prototype.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)}}}))})),kr=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_isoWeeksInYear=r()})(e,(function(){"use strict";return function(e,t){t.prototype.isoWeeksInYear=function(){var e=this.isLeapYear(),t=this.endOf(`y`).day();return t===4||e&&t===5?53:52}}}))})),Ar=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_isLeapYear=r()})(e,(function(){"use strict";return function(e,t){t.prototype.isLeapYear=function(){return this.$y%4==0&&this.$y%100!=0||this.$y%400==0}}}))})),jr=c(Dr(),1),Mr=c(Or(),1),Nr=c(kr(),1),Pr=c(Ar(),1);Z.default.extend(pr.default),Z.default.extend(mr.default),Z.default.extend(hr.default),Z.default.extend(gr.default),Z.default.extend(_r.default),Z.default.extend(jr.default),Z.default.extend(Mr.default),Z.default.extend(Nr.default),Z.default.extend(Pr.default);var Fr=({data:e,children:t,isLoading:n,config:r,defaultStartDate:i=(0,Z.default)(),onRangeChange:a,onFilterData:o,onClearFilterData:s})=>{let{zoom:c,maxRecordsPerPage:d=50}=r,[f,p]=(0,l.useState)(c),[m,h]=(0,l.useState)((0,Z.default)()),[g,_]=(0,l.useState)(!1),[v,y]=(0,l.useState)(xr(f)),b=yr[f]!==yr[yr.length-1],x=f!==0,S=(0,l.useMemo)(()=>wr(m,f),[m,f]),C=Cr(m,f).startDate,w=(0,Z.default)(C).dayOfYear(),T=er(C),E=(0,l.useRef)(null),[ee,te]=(0,l.useState)([{x:0,y:0}]),D=(0,l.useCallback)((e,t=`auto`)=>{let n=Tr();switch(e){case`back`:return E.current?.scrollTo({behavior:t,left:n/3});case`forward`:return E.current?.scrollTo({behavior:t,left:n/3});case`middle`:{let e=n/3/4;return E.current?.scrollTo({behavior:t,left:n/2-e})}default:return E.current?.scrollTo({behavior:t,left:n/2})}},[]),O=e=>{te(e)},k=(0,l.useCallback)(e=>{let t=Sr(f),n,r;switch(f){case 0:n=t*7,r=Math.round(n),r%2!=0&&(r+=r>n?2:5);break;case 1:r=t;break;case 2:r=Math.ceil(t/24)}(0,vr.default)(()=>{switch(e){case`back`:h(e=>e.subtract(r,`days`));break;case`forward`:h(e=>e.add(r,`days`));break;case`middle`:h((0,Z.default)())}a?.(S)},300)()},[a,S,f]);(0,l.useEffect)(()=>{E.current=document.getElementById(Y),y(xr(f))},[f]),(0,l.useEffect)(()=>{let e=()=>y(xr(f));return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[f]),(0,l.useEffect)(()=>{a?.(S)},[a,S]),(0,l.useEffect)(()=>{_(!1)},[i]),(0,l.useEffect)(()=>{g||(D(`middle`),_(!0),h(i))},[i,g,D]);let A=()=>{n||(h(e=>f===2?e.add(1,`hours`):e.add(2,`weeks`)),a?.(S))},j=(0,l.useCallback)(()=>{n||(k(`forward`),(0,vr.default)(()=>{D(`forward`)},300)())},[n,k,D]),M=()=>{n||(h(e=>f===2?e.subtract(1,`hours`):e.subtract(2,`weeks`)),a?.(S))},ne=(0,l.useCallback)(()=>{!g||n||(k(`back`),(0,vr.default)(()=>{D(`back`)},300)())},[g,n,k,D]),re=(0,l.useCallback)(()=>{n||(k(`middle`),(0,vr.default)(()=>{D(`middle`,`smooth`)},300)())},[n,k,D]),ie=()=>oe(f+1),ae=()=>oe(f-1),oe=e=>{br(e)&&(p(e),y(xr(e)),a?.(S))},N=()=>o?.(),{Provider:se}=Er;return(0,u.jsx)(se,{value:{data:e,config:r,handleGoNext:A,handleScrollNext:j,handleGoPrev:M,handleScrollPrev:ne,handleGoToday:re,zoomIn:ie,zoomOut:ae,zoom:f,isNextZoom:b,isPrevZoom:x,date:m,isLoading:n,cols:v,startDate:T,dayOfYear:w,handleFilterData:N,tilesCoords:ee,updateTilesCoords:O,recordsThreshold:d,onClearFilterData:s},children:t})},Ir=()=>(0,l.useContext)(Er),Lr=(e,t,n)=>{e.canvas.width=t*window.devicePixelRatio,e.canvas.height=n*window.devicePixelRatio,e.canvas.style.width=t+`px`,e.canvas.style.height=n+`px`,e.scale(window.devicePixelRatio,window.devicePixelRatio)},Rr=q.div`
109
+ `;var Z={topRow:`600 14px Inter`,middleRow:`400 10px Inter`,bottomRow:{name:`600 14px Inter`,number:`600 10px Inter`}},Kn=1.6,qn=4.5,Jn=`reactSchedulerCanvasHeaderWrapper`,Yn=`reactSchedulerCanvasWrapper`,Xn=Bn,Zn=e=>e%4==0&&e%100>0||e%400==0?366:365,Qn=e=>{let t=e.day();return t!==0&&t!==6},$n=(e,t)=>(0,f.default)(`${e.year}-${e.month+1}-${e.dayOfMonth}`).add(t,`months`).daysInMonth(),er=e=>({hour:e.hour(),dayName:e.format(`ddd`),dayOfMonth:e.date(),weekOfYear:e.week(),month:e.month(),monthName:e.format(`MMMM`),isBusinessDay:Qn(e),isCurrentDay:e.isSame((0,f.default)(),`day`),year:parseInt(e.format(`YYYY`))}),tr=(e,t,n,r,i,a,o)=>{e.strokeStyle=o.colors.border,e.fillStyle=a?o.colors.secondary:i?`transparent`:o.colors.primary,e.beginPath(),e.setLineDash([]),e.fillRect(t,n,r,56),e.strokeRect(t+.5,n+.5,r,56)},nr=(e,t,n,r,i)=>{for(let a=0;a<t;a++)for(let t=0;t<=n;t++){let n=(0,f.default)(`${r.year}-${r.month+1}-${r.dayOfMonth}`).add(t,`days`),o=n.isSame((0,f.default)(),`day`);tr(e,t*50,a*56,50,Qn(n),o,i)}},rr=(e,t,n,r)=>{e.setLineDash([5,5]),e.strokeStyle=r.colors.border,e.moveTo(t+.5,.5),e.lineTo(t+.5,n+.5),e.stroke()},ir=(e,t,n,r,i)=>{let a=0,o=-(r.dayOfMonth-1)*12;for(let o=0;o<=n;o++){let n=(0,f.default)(`${r.year}-${r.month+1}-${r.dayOfMonth}`).add(o,`weeks`).isSame((0,f.default)(),`week`);for(let r=0;r<t;r++)tr(e,a,r*56,84,!0,n,i);a+=84}for(let a=0;a<n;a++){let n=$n(r,a)*12;rr(e,o,t*56,i),o+=n}},ar=(e,t,n,r,i)=>{let a=(0,f.default)(`${r.year}-${r.month+1}-${r.dayOfMonth+1}`);for(let r=0;r<t;r++)for(let t=0;t<=n;t++){let o;o=t===Math.floor(n/2)?(0,f.default)():t>Math.floor(n/2)?(0,f.default)().add(t-Math.floor(n/2),`hours`):(0,f.default)().subtract(Math.floor(n/2)-r,`hours`);let s=a.isSame((0,f.default)(),`day`)&&o.isSame((0,f.default)(),`hour`);tr(e,t*50+25-.5,r*56,50,Qn(o),s,i)}},or=(e,t,n,r,i,a)=>{if(e.clearRect(0,0,e.canvas.width,e.canvas.height),document.getElementById(`reactSchedulerCanvasWrapper`))switch(t){case 0:ir(e,n,r,i,a);break;case 1:nr(e,n,r,i,a);break;case 2:ar(e,n,r,i,a)}},sr=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_weekOfYear=r()})(e,(function(){"use strict";var e=`week`,t=`year`;return function(n,r,i){var a=r.prototype;a.week=function(n){if(n===void 0&&(n=null),n!==null)return this.add(7*(n-this.week()),`day`);var r=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var a=i(this).startOf(t).add(1,t).date(r),o=i(this).endOf(e);if(a.isBefore(o))return 1}var s=i(this).startOf(t).date(r).startOf(e).subtract(1,`millisecond`),c=this.diff(s,e,!0);return c<0?i(this).startOf(`week`).week():Math.ceil(c)},a.weeks=function(e){return e===void 0&&(e=null),this.week(e)}}}))})),cr=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_dayOfYear=r()})(e,(function(){"use strict";return function(e,t,n){t.prototype.dayOfYear=function(e){var t=Math.round((n(this).startOf(`day`)-n(this).startOf(`year`))/864e5)+1;return e==null?t:this.add(e-t,`day`)}}}))})),lr=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_isoWeek=r()})(e,(function(){"use strict";return function(e,t,n){var r=function(e){return e.add(4-e.isoWeekday(),`day`)},i=t.prototype;i.isoWeekYear=function(){return r(this).year()},i.isoWeek=function(e){if(!this.$utils().u(e))return this.add(7*(e-this.isoWeek()),`day`);var t,i,a,o,s=r(this),c=(t=this.isoWeekYear(),i=this.$u,a=(i?n.utc:n)().year(t).startOf(`year`),o=4-a.isoWeekday(),a.isoWeekday()>4&&(o+=7),a.add(o,`day`));return s.diff(c,`week`)+1},i.isoWeekday=function(e){return this.$utils().u(e)?this.day()||7:this.day(this.day()%7?e:e-7)};var a=i.startOf;i.startOf=function(e,t){var n=this.$utils(),r=!!n.u(t)||t;return n.p(e)===`isoweek`?r?this.date(this.date()-(this.isoWeekday()-1)).startOf(`day`):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf(`day`):a.bind(this)(e,t)}}}))})),ur=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_isBetween=r()})(e,(function(){"use strict";return function(e,t,n){t.prototype.isBetween=function(e,t,r,i){var a=n(e),o=n(t),s=(i||=`()`)[0]===`(`,c=i[1]===`)`;return(s?this.isAfter(a,r):!this.isBefore(a,r))&&(c?this.isBefore(o,r):!this.isAfter(o,r))||(s?this.isBefore(a,r):!this.isAfter(a,r))&&(c?this.isAfter(o,r):!this.isBefore(o,r))}}}))})),dr=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_duration=r()})(e,(function(){"use strict";var e,t,n=1e3,r=6e4,i=36e5,a=864e5,o=31536e6,s=2628e6,c=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,l=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,u={years:o,months:s,days:a,hours:i,minutes:r,seconds:n,milliseconds:1,weeks:6048e5},d=function(e){return e instanceof v},f=function(e,t,n){return new v(e,n,t.$l)},p=function(e){return t.p(e)+`s`},m=function(e){return e<0},h=function(e){return m(e)?Math.ceil(e):Math.floor(e)},g=function(e){return Math.abs(e)},_=function(e,t){return e?m(e)?{negative:!0,format:``+g(e)+t}:{negative:!1,format:``+e+t}:{negative:!1,format:``}},v=function(){function m(e,t,n){var r=this;if(this.$d={},this.$l=n,e===void 0&&(this.$ms=0,this.parseFromMilliseconds()),t)return f(e*u[p(t)],this);if(typeof e==`number`)return this.$ms=e,this.parseFromMilliseconds(),this;if(typeof e==`object`)return Object.keys(e).forEach((function(t){r.$d[p(t)]=e[t]})),this.calMilliseconds(),this;if(typeof e==`string`){var i=e.match(c);if(i){var a=i.slice(2).map((function(e){return e==null?0:Number(e)}));return this.$d.years=a[0],this.$d.months=a[1],this.$d.weeks=a[2],this.$d.days=a[3],this.$d.hours=a[4],this.$d.minutes=a[5],this.$d.seconds=a[6],this.calMilliseconds(),this}}return this}var g=m.prototype;return g.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce((function(t,n){return t+(e.$d[n]||0)*u[n]}),0)},g.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=h(e/o),e%=o,this.$d.months=h(e/s),e%=s,this.$d.days=h(e/a),e%=a,this.$d.hours=h(e/i),e%=i,this.$d.minutes=h(e/r),e%=r,this.$d.seconds=h(e/n),e%=n,this.$d.milliseconds=e},g.toISOString=function(){var e=_(this.$d.years,`Y`),t=_(this.$d.months,`M`),n=+this.$d.days||0;this.$d.weeks&&(n+=7*this.$d.weeks);var r=_(n,`D`),i=_(this.$d.hours,`H`),a=_(this.$d.minutes,`M`),o=this.$d.seconds||0;this.$d.milliseconds&&(o+=this.$d.milliseconds/1e3,o=Math.round(1e3*o)/1e3);var s=_(o,`S`),c=e.negative||t.negative||r.negative||i.negative||a.negative||s.negative,l=i.format||a.format||s.format?`T`:``,u=(c?`-`:``)+`P`+e.format+t.format+r.format+l+i.format+a.format+s.format;return u===`P`||u===`-P`?`P0D`:u},g.toJSON=function(){return this.toISOString()},g.format=function(e){var n=e||`YYYY-MM-DDTHH:mm:ss`,r={Y:this.$d.years,YY:t.s(this.$d.years,2,`0`),YYYY:t.s(this.$d.years,4,`0`),M:this.$d.months,MM:t.s(this.$d.months,2,`0`),D:this.$d.days,DD:t.s(this.$d.days,2,`0`),H:this.$d.hours,HH:t.s(this.$d.hours,2,`0`),m:this.$d.minutes,mm:t.s(this.$d.minutes,2,`0`),s:this.$d.seconds,ss:t.s(this.$d.seconds,2,`0`),SSS:t.s(this.$d.milliseconds,3,`0`)};return n.replace(l,(function(e,t){return t||String(r[e])}))},g.as=function(e){return this.$ms/u[p(e)]},g.get=function(e){var t=this.$ms,n=p(e);return n===`milliseconds`?t%=1e3:t=n===`weeks`?h(t/u[n]):this.$d[n],t||0},g.add=function(e,t,n){var r=t?e*u[p(t)]:d(e)?e.$ms:f(e,this).$ms;return f(this.$ms+r*(n?-1:1),this)},g.subtract=function(e,t){return this.add(e,t,!0)},g.locale=function(e){var t=this.clone();return t.$l=e,t},g.clone=function(){return f(this.$ms,this)},g.humanize=function(t){return e().add(this.$ms,`ms`).locale(this.$l).fromNow(!t)},g.valueOf=function(){return this.asMilliseconds()},g.milliseconds=function(){return this.get(`milliseconds`)},g.asMilliseconds=function(){return this.as(`milliseconds`)},g.seconds=function(){return this.get(`seconds`)},g.asSeconds=function(){return this.as(`seconds`)},g.minutes=function(){return this.get(`minutes`)},g.asMinutes=function(){return this.as(`minutes`)},g.hours=function(){return this.get(`hours`)},g.asHours=function(){return this.as(`hours`)},g.days=function(){return this.get(`days`)},g.asDays=function(){return this.as(`days`)},g.weeks=function(){return this.get(`weeks`)},g.asWeeks=function(){return this.as(`weeks`)},g.months=function(){return this.get(`months`)},g.asMonths=function(){return this.as(`months`)},g.years=function(){return this.get(`years`)},g.asYears=function(){return this.as(`years`)},m}(),y=function(e,t,n){return e.add(t.years()*n,`y`).add(t.months()*n,`M`).add(t.days()*n,`d`).add(t.hours()*n,`h`).add(t.minutes()*n,`m`).add(t.seconds()*n,`s`).add(t.milliseconds()*n,`ms`)};return function(n,r,i){e=i,t=i().$utils(),i.duration=function(e,t){return f(e,{$l:i.locale()},t)},i.isDuration=d;var a=r.prototype.add,o=r.prototype.subtract;r.prototype.add=function(e,t){return d(e)?y(this,e,1):a.bind(this)(e,t)},r.prototype.subtract=function(e,t){return d(e)?y(this,e,-1):o.bind(this)(e,t)}}}))})),fr=o(((e,t)=>{var n=NaN,r=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt,c=typeof global==`object`&&global&&global.Object===Object&&global,l=typeof self==`object`&&self&&self.Object===Object&&self,u=c||l||Function(`return this`)(),d=Object.prototype.toString,f=Math.max,p=Math.min,m=function(){return u.Date.now()};function h(e,t,n){var r,i,a,o,s,c,l=0,u=!1,d=!1,h=!0;if(typeof e!=`function`)throw TypeError(`Expected a function`);t=y(t)||0,g(n)&&(u=!!n.leading,d=`maxWait`in n,a=d?f(y(n.maxWait)||0,t):a,h=`trailing`in n?!!n.trailing:h);function _(t){var n=r,a=i;return r=i=void 0,l=t,o=e.apply(a,n),o}function v(e){return l=e,s=setTimeout(S,t),u?_(e):o}function b(e){var n=e-c,r=e-l,i=t-n;return d?p(i,a-r):i}function x(e){var n=e-c,r=e-l;return c===void 0||n>=t||n<0||d&&r>=a}function S(){var e=m();if(x(e))return C(e);s=setTimeout(S,b(e))}function C(e){return s=void 0,h&&r?_(e):(r=i=void 0,o)}function w(){s!==void 0&&clearTimeout(s),l=0,r=c=i=s=void 0}function T(){return s===void 0?o:C(m())}function E(){var e=m(),n=x(e);if(r=arguments,i=this,c=e,n){if(s===void 0)return v(c);if(d)return s=setTimeout(S,t),_(c)}return s===void 0&&(s=setTimeout(S,t)),o}return E.cancel=w,E.flush=T,E}function g(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function _(e){return!!e&&typeof e==`object`}function v(e){return typeof e==`symbol`||_(e)&&d.call(e)==`[object Symbol]`}function y(e){if(typeof e==`number`)return e;if(v(e))return n;if(g(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=g(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=e.replace(r,``);var c=a.test(e);return c||o.test(e)?s(e.slice(2),c?2:8):i.test(e)?n:+e}t.exports=h})),pr=c(sr(),1),mr=c(cr(),1),hr=c(lr(),1),gr=c(ur(),1),_r=c(dr(),1),vr=c(fr(),1),yr=[0,1,2],br=e=>yr.includes(e),xr=e=>{let t=(document.getElementById(Xn)?.clientWidth||0)-196,n=0;switch(e){case 1:return Math.ceil(t/50)*3;case 2:return Math.ceil(t/50)*3;default:return n=Math.ceil(t/84*3),n%2==0?n:n+1}},Sr=e=>xr(e)/3,Cr=(e,t)=>{let n=xr(t)/2,r,i;switch(t){case 1:r=e.subtract(n,`days`);break;case 2:r=e.subtract(n,`hours`);break;default:i=(e.day()+6)%7,r=e.subtract(n,`weeks`).subtract(i,`days`)}let a;switch(t){case 1:a=e.add(n,`days`);break;case 2:a=e.add(n,`hours`);break;default:a=e.add(n,`weeks`)}return{startDate:r,endDate:a}},wr=(e,t)=>{let n=Cr(e,t);return{startDate:n.startDate.toDate(),endDate:n.endDate.toDate()}},Tr=()=>((document.getElementById(Xn)?.clientWidth||0)-196)*3,Er=(0,l.createContext)({handleGoNext:()=>{},handleScrollNext:()=>{},handleGoPrev:()=>{},handleScrollPrev:()=>{},handleGoToday:()=>{},zoomIn:()=>{},zoomOut:()=>{},handleFilterData:()=>{},updateTilesCoords:()=>{},tilesCoords:[],zoom:0,isNextZoom:!1,isPrevZoom:!1,date:(0,f.default)(),isLoading:!1,cols:0,startDate:{hour:0,dayName:``,dayOfMonth:0,weekOfYear:0,month:0,monthName:``,isCurrentDay:!1,isBusinessDay:!1,year:0},dayOfYear:0,recordsThreshold:0,navigation:null,config:{zoom:0}}),Dr=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_isSameOrBefore=r()})(e,(function(){"use strict";return function(e,t){t.prototype.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)}}}))})),Or=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_isSameOrAfter=r()})(e,(function(){"use strict";return function(e,t){t.prototype.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)}}}))})),kr=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_isoWeeksInYear=r()})(e,(function(){"use strict";return function(e,t){t.prototype.isoWeeksInYear=function(){var e=this.isLeapYear(),t=this.endOf(`y`).day();return t===4||e&&t===5?53:52}}}))})),Ar=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_isLeapYear=r()})(e,(function(){"use strict";return function(e,t){t.prototype.isLeapYear=function(){return this.$y%4==0&&this.$y%100!=0||this.$y%400==0}}}))})),jr=c(Dr(),1),Mr=c(Or(),1),Nr=c(kr(),1),Pr=c(Ar(),1);f.default.extend(pr.default),f.default.extend(mr.default),f.default.extend(hr.default),f.default.extend(gr.default),f.default.extend(_r.default),f.default.extend(jr.default),f.default.extend(Mr.default),f.default.extend(Nr.default),f.default.extend(Pr.default);var Fr=({data:e,children:t,isLoading:n,config:r,defaultStartDate:i=(0,f.default)(),onRangeChange:a,onFilterData:o,onClearFilterData:s})=>{let{zoom:c,maxRecordsPerPage:d=50}=r,[p,m]=(0,l.useState)(c),[h,g]=(0,l.useState)((0,f.default)()),[_,v]=(0,l.useState)(!1),[y,b]=(0,l.useState)(xr(p)),x=yr[p]!==yr[yr.length-1],S=p!==0,C=(0,l.useMemo)(()=>wr(h,p),[h,p]),w=Cr(h,p).startDate,T=(0,f.default)(w).dayOfYear(),E=er(w),D=(0,l.useRef)(null),[O,ee]=(0,l.useState)([{x:0,y:0}]),[k,A]=(0,l.useState)(null),j=(0,l.useCallback)((e,t=`auto`)=>{let n=Tr();switch(e){case`back`:return D.current?.scrollTo({behavior:t,left:n/3});case`forward`:return D.current?.scrollTo({behavior:t,left:n/3});case`middle`:{let e=n/3/4;return D.current?.scrollTo({behavior:t,left:n/2-e})}default:return D.current?.scrollTo({behavior:t,left:n/2})}},[]),te=e=>{ee(e)},M=(0,l.useCallback)(e=>{let t=Sr(p),n,r;switch(p){case 0:n=t*7,r=Math.round(n),r%2!=0&&(r+=r>n?2:5);break;case 1:r=t;break;case 2:r=Math.ceil(t/24)}(0,vr.default)(()=>{switch(e){case`back`:g(e=>e.subtract(r,`days`));break;case`forward`:g(e=>e.add(r,`days`));break;case`middle`:g((0,f.default)())}a?.(C)},300)()},[a,C,p]);(0,l.useEffect)(()=>{let e=document.getElementById(Xn);if(D.current=e,b(xr(p)),!e)return;let t=new ResizeObserver(()=>{let e=xr(p);b(t=>t===e?t:e)});return t.observe(e),()=>t.disconnect()},[p]),(0,l.useEffect)(()=>{a?.(C)},[a,C]),(0,l.useEffect)(()=>{v(!1)},[i]),(0,l.useEffect)(()=>{_||(j(`middle`),v(!0),g(i))},[i,_,j]);let N=()=>{n||(g(e=>p===2?e.add(1,`hours`):e.add(2,`weeks`)),A(e=>({direction:`next`,tick:(e?.tick??0)+1})),a?.(C))},P=(0,l.useCallback)(()=>{n||(M(`forward`),(0,vr.default)(()=>{j(`forward`)},300)())},[n,M,j]),F=()=>{n||(g(e=>p===2?e.subtract(1,`hours`):e.subtract(2,`weeks`)),A(e=>({direction:`prev`,tick:(e?.tick??0)+1})),a?.(C))},ne=(0,l.useCallback)(()=>{_&&!n&&(M(`back`),(0,vr.default)(()=>{j(`back`)},300)())},[_,n,M,j]),re=(0,l.useCallback)(()=>{n||(M(`middle`),(0,vr.default)(()=>{j(`middle`,`smooth`)},300)())},[n,M,j]),I=()=>L(p+1),ie=()=>L(p-1),L=e=>{br(e)&&(m(e),b(xr(e)),a?.(C))},ae=()=>o?.(),{Provider:R}=Er;return(0,u.jsx)(R,{value:{data:e,config:r,handleGoNext:N,handleScrollNext:P,handleGoPrev:F,handleScrollPrev:ne,handleGoToday:re,zoomIn:I,zoomOut:ie,zoom:p,isNextZoom:x,isPrevZoom:S,date:h,isLoading:n,cols:y,startDate:E,dayOfYear:T,handleFilterData:ae,tilesCoords:O,updateTilesCoords:te,navigation:k,recordsThreshold:d,onClearFilterData:s},children:t})},Ir=()=>(0,l.useContext)(Er),Lr=(e,t,n)=>{e.canvas.width=t*window.devicePixelRatio,e.canvas.height=n*window.devicePixelRatio,e.canvas.style.width=t+`px`,e.canvas.style.height=n+`px`,e.scale(window.devicePixelRatio,window.devicePixelRatio)},Rr=e=>{switch(e){case 0:return 84;case 2:return 50;default:return 50}},zr=e=>{switch(e){case 0:return`weeks`;case 2:return`hours`;default:return`days`}},Br=(e,t,n,r)=>{let i=Rr(r),a=Math.ceil(r===2?(t.x-.5*i)/i:t.x/i),o=(0,f.default)(`${e.year}-${e.month+1}-${e.dayOfMonth}T${e.hour}:00:00`).add(a-1,zr(r)).toDate(),s=Math.ceil(t.y/56);return{date:o,resourceIndex:n.findIndex((e,t,n)=>n.slice(0,t+1).reduce((e,t)=>e+t,0)>=s)}},Vr=(e,t,n,r,i)=>{if(n<0||n>=t.length)return null;let a=Rr(i),o=(0,f.default)(`${e.year}-${e.month+1}-${e.dayOfMonth}T${e.hour}:00:00`),s=(0,f.default)(r).diff(o,zr(i));return{x:i===2?(s+.5)*a:s*a,y:t.slice(0,n).reduce((e,t)=>e+t,0)*56,width:a,height:56}},Hr=(e,t,n,r,i,a)=>{let[o,s]=r.getTime()<=i.getTime()?[r,i]:[i,r],c=Vr(e,t,n,o,a),l=Vr(e,t,n,s,a);return!c||!l?null:{x:c.x,y:c.y,width:l.x+l.width-c.x,height:c.height}},Ur=X.div`
110
110
  height: calc(100vh - headerHeight);
111
- `,zr=q.div`
111
+ `,Wr=Rn`
112
+ from {
113
+ transform: translateX(16px);
114
+ opacity: 0.4;
115
+ }
116
+ to {
117
+ transform: translateX(0);
118
+ opacity: 1;
119
+ }
120
+ `,Gr=Rn`
121
+ from {
122
+ transform: translateX(-16px);
123
+ opacity: 0.4;
124
+ }
125
+ to {
126
+ transform: translateX(0);
127
+ opacity: 1;
128
+ }
129
+ `,Kr=X.div`
112
130
  position: relative;
113
- `,Br=q.canvas``;q.canvas``;var Vr=q.span`
131
+
132
+ &.slide-next {
133
+ animation: ${Wr} 220ms ease-out;
134
+ }
135
+
136
+ &.slide-prev {
137
+ animation: ${Gr} 220ms ease-out;
138
+ }
139
+ `,qr=X.canvas``;X.canvas``;var Jr=X.span`
114
140
  width: 1px;
115
141
  height: 100%;
116
142
  position: absolute;
117
143
  top: 0;
118
- left: ${({position:e})=>e===`left`?0:`auto`};
119
- right: ${({position:e})=>e===`right`?0:`auto`};
120
- `;function Hr({zoom:e,rows:t,data:n,onTileClick:r,ref:i}){let{handleScrollNext:a,handleScrollPrev:o,date:s,isLoading:c,cols:d,startDate:f}=Ir(),p=(0,l.useRef)(null),m=(0,l.useRef)(null),h=(0,l.useRef)(null),g=K(),_=(0,l.useCallback)(n=>{Lr(n,Tr(),t*56+1),or(n,e,t,d,f,g)},[d,f,t,e,g]);return(0,l.useEffect)(()=>{if(!p.current)return;let e=p.current.getContext(`2d`);if(!e)return;let t=()=>_(e);return window.addEventListener(`resize`,t),()=>window.removeEventListener(`resize`,t)},[_]),(0,l.useEffect)(()=>{let e=p.current;if(!e)return;e.style.letterSpacing=`1px`;let t=e.getContext(`2d`);t&&_(t)},[s,t,e,_]),(0,l.useEffect)(()=>{if(!m.current)return;let e=new IntersectionObserver(e=>e[0].isIntersecting?a():null,{root:document.getElementById(Y)});return e.observe(m.current),()=>e.disconnect()},[a]),(0,l.useEffect)(()=>{if(!h.current)return;let e=new IntersectionObserver(e=>e[0].isIntersecting?o():null,{root:document.getElementById(Y),rootMargin:`0px 0px 0px -196px`});return e.observe(h.current),()=>e.disconnect()},[o]),(0,u.jsx)(Rr,{id:Xn,children:(0,u.jsxs)(zr,{ref:i,children:[(0,u.jsx)(Vr,{position:`left`,ref:h}),(0,u.jsx)(ka,{isLoading:c,position:`left`}),(0,u.jsx)(Br,{ref:p}),(0,u.jsx)(to,{data:n,zoom:e,onTileClick:r}),(0,u.jsx)(Vr,{ref:m,position:`right`}),(0,u.jsx)(ka,{isLoading:c,position:`right`})]})})}var Ur=e=>{let t=Z.default.duration(e,`seconds`);return{hours:t.hours(),minutes:t.minutes()}},Wr=e=>{let t=0,n=0,r=0;return e.forEach(e=>{t+=e.minutes;let i=Math.floor(t/60);n+=e.hours+i,r+=t%60,r>=60&&(n++,r-=60)}),{hours:n,minutes:r}},Gr=(e,t)=>{let n=8;switch(t){case 0:n=40;break;case 1:n=8;break;case 2:n=1}return{free:(()=>{let t=n-e.hours-1,r=60-e.minutes;return r===60&&(t++,r=0),{hours:Math.max(0,t),minutes:t<0?0:r}})(),overtime:(()=>{let t=e.hours-n,r=e.minutes;return{hours:Math.max(0,t),minutes:t<0?0:r}})()}},Kr=(e,t,n)=>{let r=t.isoWeek(),{hours:i,minutes:a}=Wr(e.map(e=>{let n=(0,Z.default)(e.startDate).isoWeek(),i=(0,Z.default)(e.startDate).isoWeekday(),a=(0,Z.default)(e.endDate).isoWeek(),o=(0,Z.default)(e.endDate).isoWeekday(),{hours:s,minutes:c}=Ur(e.occupancy);if(r===n){let e=(6-i)*s,t=(6-i)*c;return{hours:Math.max(0,e),minutes:t}}return r===a?{hours:o>5?5*s:o*s,minutes:o>5?5*c:o*c}:(0,Z.default)(t).isBetween(e.startDate,e.endDate)?{hours:5*s,minutes:5*c}:{hours:0,minutes:0}})),{free:o,overtime:s}=Gr({hours:i,minutes:a},n);return{taken:{hours:Math.max(0,i),minutes:Math.max(0,a)},free:o,overtime:s}},qr=(e,t,n,r)=>{let i=t.isoWeekday(),{hours:a,minutes:o}=Wr(e.map(e=>{let{hours:t,minutes:n}=Ur(e.occupancy);return i<=(r?7:5)?{hours:t,minutes:n}:{hours:0,minutes:0}})),{free:s,overtime:c}=Gr({hours:a,minutes:o},n);return{taken:{hours:Math.max(0,a),minutes:Math.max(0,o)},free:s,overtime:c}},Jr=(e,t)=>{let n=0;e.forEach(e=>{let r=(0,Z.default)(e.startDate).hour(),i=(0,Z.default)(e.endDate).hour(),a=t.hour(),o=(0,Z.default)(e.endDate).minute(),s=(0,Z.default)(e.startDate).minute();r<a&&i>a?n+=60:r===a&&i===a&&s&&o?n+=o?o-s:60-s:r===a&&i>=a?n+=s?60-s:60:i===a&&o&&(n+=o)});let r=Math.floor(n/60),i=n%60,a=r||i?0:1,o=r?0:i?60-i:0;return{taken:{hours:r,minutes:i},free:{hours:a,minutes:o},overtime:{hours:0,minutes:0}}},Yr=(e,t,n,r,i=!1)=>{if(t<0)return{taken:{hours:0,minutes:0},free:{hours:0,minutes:0},overtime:{hours:0,minutes:0}};let a=e.flat(2).filter(e=>r===1?(0,Z.default)(n).isBetween(e.startDate,e.endDate,`day`,`[]`):r===2?(0,Z.default)(n).isBetween(e.startDate,e.endDate,`hour`,`[]`):(0,Z.default)(e.startDate).isBetween((0,Z.default)(n),(0,Z.default)(n).add(6,`days`),`day`,`[]`)||(0,Z.default)(n).isBetween((0,Z.default)(e.startDate),(0,Z.default)(e.endDate),`day`,`[]`));switch(r){case 1:return qr(a,n,r,i);case 2:return Jr(a,n);default:return Kr(a,n,r)}},Xr=(e,t,n,r,i,a=!1)=>{let o=`weeks`,s;switch(i){case 0:o=`weeks`,s=84;break;case 1:o=`days`,s=50;break;case 2:o=`hours`,s=50}let c=Math.ceil(i===2?(t.x-.5*s)/s:t.x/s),l=(0,Z.default)(`${e.year}-${e.month+1}-${e.dayOfMonth}T${e.hour}:00:00`).add(c-1,o),u=Math.ceil(t.y/56),d=n.findIndex((e,t,n)=>n.slice(0,t+1).reduce((e,t)=>e+t,0)>=u),f=i===2?(c+1)*s:c*s,p=(u-1)*56+56,m=Yr(r[d],d,l,i,a);return{coords:{x:f,y:p},resourceIndex:d,disposition:m}},Zr=(e,t,n,r)=>{let i=[],a=0,o=[],s=0;return t.length>r?(t.forEach((t,n)=>{let c={id:e[n].id,label:e[n].label,data:t};s>=r&&(i.push(o),a+=o.length,o=[],s=0),s++,o.push(c)}),n.slice(a).length<=r&&(o=[],t.slice(a).forEach((n,r)=>{let s={id:e[r+a].id,label:e[r+a].label,data:n};o.push(s),r===t.length-a-1&&i.push(o)})),i):(t.forEach((t,n)=>{let r={id:e[n].id,label:e[n].label,data:t};o.push(r)}),i.push(o),i)},Qr={0:`day`,1:`day`,2:void 0},$r=(e,t)=>{let n=[];for(let r of e){let e=!1;if(n.length)for(let i of n){let n=!1;for(let e=0;e<i.length;e++)if((0,Z.default)(r.startDate).isSameOrBefore((0,Z.default)(i[e].endDate),Qr[t||0])&&(0,Z.default)(r.endDate).isSameOrAfter((0,Z.default)(i[e].startDate),Qr[t||0])){n=!0;break}if(!n){i.push(r),e=!0;break}}e||n.push([r])}return n},ei=(e,t)=>{let[n,r]=e.reduce((e,n)=>{let r=$r(n.data,t);return e[0].push(r),e[1].push(Math.max(r.length,1)),e},[[],[]]);return{projectsPerPerson:n,rowsPerPerson:r}},ti=e=>e?e.map(e=>e.data.length).reduce((e,t)=>e+Math.max(t,1),0):0,ni=e=>{let{recordsThreshold:t,zoom:n}=Ir(),[r,i]=(0,l.useState)(0),[a,o]=(0,l.useState)(0),s=(0,l.useRef)(null);(0,l.useEffect)(()=>{s.current=document.getElementById(Y)},[]);let{projectsPerPerson:c,rowsPerPerson:u}=(0,l.useMemo)(()=>ei(e,n),[e,n]),d=(0,l.useMemo)(()=>Zr(e,c,u,t),[e,c,t,u]),f=(0,l.useCallback)(()=>{d[a].length&&s.current&&(s.current.scroll({top:0}),i(e=>e+d[Math.max(a,0)].length),o(e=>Math.min(e+1,d.length-1)),window.scroll({top:0}))},[a,d]),p=(0,l.useCallback)(()=>{d[a].length&&(i(e=>Math.max(e-d[a-1].length,0)),o(e=>Math.max(e-1,0)))},[a,d]),m=(0,l.useCallback)(()=>{i(0),o(0)},[]),h=r+d[a].length,g=(0,l.useMemo)(()=>u.slice(r,h),[h,u,r]),_=(0,l.useMemo)(()=>c.slice(r,h),[h,c,r]);return{page:d[a],currentPageNum:a,pagesAmount:d.length,projectsPerPerson:_,rowsPerItem:g,totalRowsPerPage:ti(d[a]),next:f,previous:p,reset:m}},ri=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_en=r()})(e,(function(){"use strict";return{name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}}}))})),ii=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(X()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_pl=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e);function r(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function i(e,t,n){var i=e+` `;switch(n){case`m`:return t?`minuta`:`minutę`;case`mm`:return i+(r(e)?`minuty`:`minut`);case`h`:return t?`godzina`:`godzinę`;case`hh`:return i+(r(e)?`godziny`:`godzin`);case`MM`:return i+(r(e)?`miesiące`:`miesięcy`);case`yy`:return i+(r(e)?`lata`:`lat`)}}var a=`stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia`.split(`_`),o=`styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień`.split(`_`),s=/D MMMM/,c=function(e,t){return s.test(t)?a[e.month()]:o[e.month()]};c.s=o,c.f=a;var l={name:`pl`,weekdays:`niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota`.split(`_`),weekdaysShort:`ndz_pon_wt_śr_czw_pt_sob`.split(`_`),weekdaysMin:`Nd_Pn_Wt_Śr_Cz_Pt_So`.split(`_`),months:c,monthsShort:`sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru`.split(`_`),ordinal:function(e){return e+`.`},weekStart:1,yearStart:4,relativeTime:{future:`za %s`,past:`%s temu`,s:`kilka sekund`,m:i,mm:i,h:i,hh:i,d:`1 dzień`,dd:`%d dni`,M:`miesiąc`,MM:i,y:`rok`,yy:i},formats:{LT:`HH:mm`,LTS:`HH:mm:ss`,L:`DD.MM.YYYY`,LL:`D MMMM YYYY`,LLL:`D MMMM YYYY HH:mm`,LLLL:`dddd, D MMMM YYYY HH:mm`}};return n.default.locale(l,null,!0),l}))})),ai=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(X()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_de=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={s:`ein paar Sekunden`,m:[`eine Minute`,`einer Minute`],mm:`%d Minuten`,h:[`eine Stunde`,`einer Stunde`],hh:`%d Stunden`,d:[`ein Tag`,`einem Tag`],dd:[`%d Tage`,`%d Tagen`],M:[`ein Monat`,`einem Monat`],MM:[`%d Monate`,`%d Monaten`],y:[`ein Jahr`,`einem Jahr`],yy:[`%d Jahre`,`%d Jahren`]};function i(e,t,n){var i=r[n];return Array.isArray(i)&&(i=i[+!t]),i.replace(`%d`,e)}var a={name:`de`,weekdays:`Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag`.split(`_`),weekdaysShort:`So._Mo._Di._Mi._Do._Fr._Sa.`.split(`_`),weekdaysMin:`So_Mo_Di_Mi_Do_Fr_Sa`.split(`_`),months:`Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember`.split(`_`),monthsShort:`Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.`.split(`_`),ordinal:function(e){return e+`.`},weekStart:1,yearStart:4,formats:{LTS:`HH:mm:ss`,LT:`HH:mm`,L:`DD.MM.YYYY`,LL:`D. MMMM YYYY`,LLL:`D. MMMM YYYY HH:mm`,LLLL:`dddd, D. MMMM YYYY HH:mm`},relativeTime:{future:`in %s`,past:`vor %s`,s:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i}};return n.default.locale(a,null,!0),a}))})),oi=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(X()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_lt=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r=`sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio`.split(`_`),i=`sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis`.split(`_`),a=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/,o=function(e,t){return a.test(t)?r[e.month()]:i[e.month()]};o.s=i,o.f=r;var s={name:`lt`,weekdays:`sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis`.split(`_`),weekdaysShort:`sek_pir_ant_tre_ket_pen_šeš`.split(`_`),weekdaysMin:`s_p_a_t_k_pn_š`.split(`_`),months:o,monthsShort:`sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd`.split(`_`),ordinal:function(e){return e+`.`},weekStart:1,relativeTime:{future:`už %s`,past:`prieš %s`,s:`kelias sekundes`,m:`minutę`,mm:`%d minutes`,h:`valandą`,hh:`%d valandas`,d:`dieną`,dd:`%d dienas`,M:`mėnesį`,MM:`%d mėnesius`,y:`metus`,yy:`%d metus`},format:{LT:`HH:mm`,LTS:`HH:mm:ss`,L:`YYYY-MM-DD`,LL:`YYYY [m.] MMMM D [d.]`,LLL:`YYYY [m.] MMMM D [d.], HH:mm [val.]`,LLLL:`YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]`,l:`YYYY-MM-DD`,ll:`YYYY [m.] MMMM D [d.]`,lll:`YYYY [m.] MMMM D [d.], HH:mm [val.]`,llll:`YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]`},formats:{LT:`HH:mm`,LTS:`HH:mm:ss`,L:`YYYY-MM-DD`,LL:`YYYY [m.] MMMM D [d.]`,LLL:`YYYY [m.] MMMM D [d.], HH:mm [val.]`,LLLL:`YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]`,l:`YYYY-MM-DD`,ll:`YYYY [m.] MMMM D [d.]`,lll:`YYYY [m.] MMMM D [d.], HH:mm [val.]`,llll:`YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]`}};return n.default.locale(s,null,!0),s}))})),si=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(X()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_fr=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={name:`fr`,weekdays:`dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi`.split(`_`),weekdaysShort:`dim._lun._mar._mer._jeu._ven._sam.`.split(`_`),weekdaysMin:`di_lu_ma_me_je_ve_sa`.split(`_`),months:`janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre`.split(`_`),monthsShort:`janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.`.split(`_`),weekStart:1,yearStart:4,formats:{LT:`HH:mm`,LTS:`HH:mm:ss`,L:`DD/MM/YYYY`,LL:`D MMMM YYYY`,LLL:`D MMMM YYYY HH:mm`,LLLL:`dddd D MMMM YYYY HH:mm`},relativeTime:{future:`dans %s`,past:`il y a %s`,s:`quelques secondes`,m:`une minute`,mm:`%d minutes`,h:`une heure`,hh:`%d heures`,d:`un jour`,dd:`%d jours`,M:`un mois`,MM:`%d mois`,y:`un an`,yy:`%d ans`},ordinal:function(e){return``+e+(e===1?`er`:``)}};return n.default.locale(r,null,!0),r}))})),ci=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(X()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_it=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={name:`it`,weekdays:`domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato`.split(`_`),weekdaysShort:`dom_lun_mar_mer_gio_ven_sab`.split(`_`),weekdaysMin:`do_lu_ma_me_gi_ve_sa`.split(`_`),months:`gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre`.split(`_`),weekStart:1,monthsShort:`gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic`.split(`_`),formats:{LT:`HH:mm`,LTS:`HH:mm:ss`,L:`DD/MM/YYYY`,LL:`D MMMM YYYY`,LLL:`D MMMM YYYY HH:mm`,LLLL:`dddd D MMMM YYYY HH:mm`},relativeTime:{future:`tra %s`,past:`%s fa`,s:`qualche secondo`,m:`un minuto`,mm:`%d minuti`,h:`un'ora`,hh:`%d ore`,d:`un giorno`,dd:`%d giorni`,M:`un mese`,MM:`%d mesi`,y:`un anno`,yy:`%d anni`},ordinal:function(e){return e+`º`}};return n.default.locale(r,null,!0),r}))})),li=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(X()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_pt_br=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={name:`pt-br`,weekdays:`domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado`.split(`_`),weekdaysShort:`dom_seg_ter_qua_qui_sex_sáb`.split(`_`),weekdaysMin:`Do_2ª_3ª_4ª_5ª_6ª_Sá`.split(`_`),months:`janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro`.split(`_`),monthsShort:`jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez`.split(`_`),ordinal:function(e){return e+`º`},formats:{LT:`HH:mm`,LTS:`HH:mm:ss`,L:`DD/MM/YYYY`,LL:`D [de] MMMM [de] YYYY`,LLL:`D [de] MMMM [de] YYYY [às] HH:mm`,LLLL:`dddd, D [de] MMMM [de] YYYY [às] HH:mm`},relativeTime:{future:`em %s`,past:`há %s`,s:`poucos segundos`,m:`um minuto`,mm:`%d minutos`,h:`uma hora`,hh:`%d horas`,d:`um dia`,dd:`%d dias`,M:`um mês`,MM:`%d meses`,y:`um ano`,yy:`%d anos`}};return n.default.locale(r,null,!0),r}))})),ui=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(X()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_es=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={name:`es`,monthsShort:`ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic`.split(`_`),weekdays:`domingo_lunes_martes_miércoles_jueves_viernes_sábado`.split(`_`),weekdaysShort:`dom._lun._mar._mié._jue._vie._sáb.`.split(`_`),weekdaysMin:`do_lu_ma_mi_ju_vi_sá`.split(`_`),months:`enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre`.split(`_`),weekStart:1,formats:{LT:`H:mm`,LTS:`H:mm:ss`,L:`DD/MM/YYYY`,LL:`D [de] MMMM [de] YYYY`,LLL:`D [de] MMMM [de] YYYY H:mm`,LLLL:`dddd, D [de] MMMM [de] YYYY H:mm`},relativeTime:{future:`en %s`,past:`hace %s`,s:`unos segundos`,m:`un minuto`,mm:`%d minutos`,h:`una hora`,hh:`%d horas`,d:`un día`,dd:`%d días`,M:`un mes`,MM:`%d meses`,y:`un año`,yy:`%d años`},ordinal:function(e){return e+`º`}};return n.default.locale(r,null,!0),r}))})),di=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(X()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_ro=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={name:`ro`,weekdays:`Duminică_Luni_Marți_Miercuri_Joi_Vineri_Sâmbătă`.split(`_`),weekdaysShort:`Dum_Lun_Mar_Mie_Joi_Vin_Sâm`.split(`_`),weekdaysMin:`Du_Lu_Ma_Mi_Jo_Vi_Sâ`.split(`_`),months:`Ianuarie_Februarie_Martie_Aprilie_Mai_Iunie_Iulie_August_Septembrie_Octombrie_Noiembrie_Decembrie`.split(`_`),monthsShort:`Ian._Febr._Mart._Apr._Mai_Iun._Iul._Aug._Sept._Oct._Nov._Dec.`.split(`_`),weekStart:1,formats:{LT:`H:mm`,LTS:`H:mm:ss`,L:`DD.MM.YYYY`,LL:`D MMMM YYYY`,LLL:`D MMMM YYYY H:mm`,LLLL:`dddd, D MMMM YYYY H:mm`},relativeTime:{future:`peste %s`,past:`acum %s`,s:`câteva secunde`,m:`un minut`,mm:`%d minute`,h:`o oră`,hh:`%d ore`,d:`o zi`,dd:`%d zile`,M:`o lună`,MM:`%d luni`,y:`un an`,yy:`%d ani`},ordinal:function(e){return e}};return n.default.locale(r,null,!0),r}))})),fi=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(X()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_he=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={s:`מספר שניות`,ss:`%d שניות`,m:`דקה`,mm:`%d דקות`,h:`שעה`,hh:`%d שעות`,hh2:`שעתיים`,d:`יום`,dd:`%d ימים`,dd2:`יומיים`,M:`חודש`,MM:`%d חודשים`,MM2:`חודשיים`,y:`שנה`,yy:`%d שנים`,yy2:`שנתיים`};function i(e,t,n){return(r[n+(e===2?`2`:``)]||r[n]).replace(`%d`,e)}var a={name:`he`,weekdays:`ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת`.split(`_`),weekdaysShort:`א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳`.split(`_`),weekdaysMin:`א׳_ב׳_ג׳_ד׳_ה׳_ו_ש׳`.split(`_`),months:`ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר`.split(`_`),monthsShort:`ינו_פבר_מרץ_אפר_מאי_יונ_יול_אוג_ספט_אוק_נוב_דצמ`.split(`_`),relativeTime:{future:`בעוד %s`,past:`לפני %s`,s:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},ordinal:function(e){return e},format:{LT:`HH:mm`,LTS:`HH:mm:ss`,L:`DD/MM/YYYY`,LL:`D [ב]MMMM YYYY`,LLL:`D [ב]MMMM YYYY HH:mm`,LLLL:`dddd, D [ב]MMMM YYYY HH:mm`,l:`D/M/YYYY`,ll:`D MMM YYYY`,lll:`D MMM YYYY HH:mm`,llll:`ddd, D MMM YYYY HH:mm`},formats:{LT:`HH:mm`,LTS:`HH:mm:ss`,L:`DD/MM/YYYY`,LL:`D [ב]MMMM YYYY`,LLL:`D [ב]MMMM YYYY HH:mm`,LLLL:`dddd, D [ב]MMMM YYYY HH:mm`,l:`D/M/YYYY`,ll:`D MMM YYYY`,lll:`D MMM YYYY HH:mm`,llll:`ddd, D MMM YYYY HH:mm`}};return n.default.locale(a,null,!0),a}))})),pi={feelingEmpty:`Czuję się taki pusty...`,free:`Wolne`,loadNext:`Następne`,loadPrevious:`Poprzednie`,over:`ponad`,taken:`Zajęte`,topbar:{filters:`Filtry`,next:`następny`,prev:`poprzedni`,today:`Dziś`,view:`Widok`},search:`szukaj`,week:`tydzień`},mi={feelingEmpty:`I feel so empty...`,free:`Free`,loadNext:`Next`,loadPrevious:`Previous`,over:`over`,taken:`Taken`,topbar:{filters:`Filters`,next:`next`,prev:`prev`,today:`Today`,view:`View`},search:`search`,week:`week`},hi={feelingEmpty:`Keine Ergebnisse...`,free:`Frei`,loadNext:`Weiter`,loadPrevious:`Zurück`,over:`über`,taken:`Gebucht`,topbar:{filters:`Filter`,next:`vor`,prev:`zurück`,today:`Heute`,view:`Ansicht`},search:`Suche`,week:`Woche`},gi={feelingEmpty:`Jaučiuosi toks tuščias...`,free:`Laisva`,loadNext:`Kitas`,loadPrevious:`Ankstesnis`,over:`virš`,taken:`Užimta`,topbar:{filters:`Filtras`,next:`kitas`,prev:`ankstesnis`,today:`Šiandien`,view:`Rodinys`},search:`ieškoti`,week:`savaitė`},_i={feelingEmpty:`Le planning est vide...`,free:`Libre`,loadNext:`Suivant`,loadPrevious:`Précédent`,over:`over`,taken:`Pris`,topbar:{filters:`Filtres`,next:`suiv.`,prev:`préc.`,today:`Aujourd'hui`,view:`Voir`},search:`rechercher`,week:`semaine`},vi={feelingEmpty:`Mi sento così vuoto...`,free:`Libero`,loadNext:`Prossimo`,loadPrevious:`Precedente`,over:`sopra`,taken:`Occupato`,topbar:{filters:`Filtri`,next:`prossimo`,prev:`precedente`,today:`Oggi`,view:`Vista`},search:`cerca`,week:`settimana`},yi={feelingEmpty:`Sem dados...`,free:`livre`,loadNext:`Próximo`,loadPrevious:`Anterior`,over:`finalizado`,taken:`ocupado`,topbar:{filters:`filtros`,next:`próximo`,prev:`anterior`,today:`hoje`,view:`visualização`},search:`Procurar`,week:`Semana`},bi={feelingEmpty:`Me siento vacío...`,free:`Libre`,loadNext:`Siguiente`,loadPrevious:`Anterior`,over:`en`,taken:`Tomado`,topbar:{filters:`Filtros`,next:`siguiente`,prev:`anterior`,today:`Hoy`,view:`Vista`},search:`Buscar`,week:`semana`},xi={feelingEmpty:`אני מרגיש ריק...`,free:`חופשי`,loadNext:`הבא`,loadPrevious:`הקודם`,over:`מסתיים`,taken:`תפוס`,topbar:{filters:`מסננים`,next:`הבא`,prev:`הקודם`,today:`היום`,view:`תצוגה`},search:`חיפוש`,week:`שבוע`},Si={feelingEmpty:`Mă simt gol...`,free:`Liber`,loadNext:`Următorul`,loadPrevious:`Anterior`,over:`Finalizat`,taken:`Ocupat`,topbar:{filters:`Filtre`,next:`Următorul`,prev:`Anterior`,today:`Astăzi`,view:`Vizualizare`},search:`Căutare`,week:`Săptămână`},Ci=c(ri(),1),wi=c(ii(),1),Ti=c(ai(),1),Ei=c(oi(),1),Di=c(si(),1),Oi=c(ci(),1),ki=c(li(),1),Ai=c(ui(),1),ji=c(di(),1),Mi=c(fi(),1),Ni=[{id:`de`,lang:hi,translateCode:`de-DE`,dayjsTranslations:Ti.default},{id:`en`,lang:mi,translateCode:`en-GB`,dayjsTranslations:Ci.default},{id:`es`,lang:bi,translateCode:`es-ES`,dayjsTranslations:Ai.default},{id:`he`,lang:xi,translateCode:`he_IL`,dayjsTranslations:Mi.default},{id:`ro`,lang:Si,translateCode:`ro_RO`,dayjsTranslations:ji.default},{id:`fr`,lang:_i,translateCode:`fr-FR`,dayjsTranslations:Di.default},{id:`it`,lang:vi,translateCode:`it-IT`,dayjsTranslations:Oi.default},{id:`pl`,lang:pi,translateCode:`pl-PL`,dayjsTranslations:wi.default},{id:`pt-BR`,lang:yi,translateCode:`pt-BR`,dayjsTranslations:ki.default},{id:`lt`,lang:gi,translateCode:`lt-LT`,dayjsTranslations:Ei.default},{id:`de`,lang:hi,translateCode:`de-DE`,dayjsTranslations:Ti.default}],Pi=new class{locales=Ni;getLocales(){return this.locales}addLocales(e){this.locales.push(e)}},Fi=(0,l.createContext)({currentLocale:Pi.getLocales().filter(e=>e.id===`en`)[0]}),Ii=({children:e,lang:t,translations:n})=>{let[r,i]=(0,l.useState)(Pi.getLocales().filter(e=>e.id===`en`)[0]);return(0,l.useEffect)(()=>{let e=Pi.locales.map(e=>{let t=e;return n?.forEach(n=>{e.id===n.id&&(t=n)}),t})?.find(e=>e.id===t);e&&(i(e),Z.default.locale(e.dayjsTranslations))},[n,t]),(0,u.jsx)(Fi.Provider,{value:{currentLocale:r},children:e})},Li=()=>(0,l.useContext)(Fi).currentLocale.lang,Ri=e=>(0,u.jsxs)(`svg`,{id:`Layer_1`,xmlns:`http://www.w3.org/2000/svg`,xmlnsXlink:`http://www.w3.org/1999/xlink`,viewBox:`0 0 514 440`,...e,children:[(0,u.jsxs)(`defs`,{children:[(0,u.jsx)(`style`,{children:`.cls-1{fill:#fff;}.cls-2{fill:#dbf0fd;}.cls-3{fill:#1c222f;}.cls-4{fill:url(#radial-gradient);}`}),(0,u.jsxs)(`radialGradient`,{id:`radial-gradient`,cx:256.33,cy:218.64,fx:256.33,fy:218.64,r:206.09,gradientUnits:`userSpaceOnUse`,children:[(0,u.jsx)(`stop`,{offset:.47,stopColor:`#ccc`}),(0,u.jsx)(`stop`,{offset:.49,stopColor:`#ccc`,stopOpacity:.95}),(0,u.jsx)(`stop`,{offset:.59,stopColor:`#ccc`,stopOpacity:.67}),(0,u.jsx)(`stop`,{offset:.69,stopColor:`#ccc`,stopOpacity:.43}),(0,u.jsx)(`stop`,{offset:.78,stopColor:`#ccc`,stopOpacity:.24}),(0,u.jsx)(`stop`,{offset:.87,stopColor:`#ccc`,stopOpacity:.11}),(0,u.jsx)(`stop`,{offset:.94,stopColor:`#ccc`,stopOpacity:.03}),(0,u.jsx)(`stop`,{offset:1,stopColor:`#ccc`,stopOpacity:0})]})]}),(0,u.jsx)(`path`,{className:`cls-4`,d:`m462.42,66.49v-1h-2.13V12.55h-1v52.94h-49.92V12.55h-1v52.94h-49.81V12.55h-1v52.94h-49.92V12.55h-1v52.94h-49.81V12.55h-1v52.94h-49.92V12.55h-1v52.94h-49.81V12.55h-1v52.94h-49.92V12.55h-1v52.94h-49.81V12.55h-1v52.94h-2.13v1h2.13v49.92h-2.13v1h2.13v49.81h-2.13v1h2.13v49.92h-2.13v1h2.13v49.81h-2.13v1h2.13v49.92h-2.13v1h2.13v49.81h-2.13v1h2.13v53.06h1v-53.06h49.81v53.06h1v-53.06h49.92v53.06h1v-53.06h49.81v53.06h1v-53.06h49.92v53.06h1v-53.06h49.81v53.06h1v-53.06h49.92v53.06h1v-53.06h49.81v53.06h1v-53.06h49.92v53.06h1v-53.06h2.13v-1h-2.13v-49.81h2.13v-1h-2.13v-49.92h2.13v-1h-2.13v-49.81h2.13v-1h-2.13v-49.92h2.13v-1h-2.13v-49.81h2.13v-1h-2.13v-49.92h2.13Zm-54.06,0v49.92h-49.81v-49.92h49.81Zm-152.54,151.65h-49.92v-49.92h49.92v49.92Zm1-49.92h49.81v49.92h-49.81v-49.92Zm-51.92,49.92h-49.81v-49.92h49.81v49.92Zm0,1v49.81h-49.81v-49.81h49.81Zm1,0h49.92v49.81h-49.92v-49.81Zm50.92,0h49.81v49.81h-49.81v-49.81Zm50.81,0h49.92v49.81h-49.92v-49.81Zm0-1v-49.92h49.92v49.92h-49.92Zm0-50.92v-49.81h49.92v49.81h-49.92Zm-1,0h-49.81v-49.81h49.81v49.81Zm-50.81,0h-49.92v-49.81h49.92v49.81Zm-50.92,0h-49.81v-49.81h49.81v49.81Zm-50.81,0h-49.92v-49.81h49.92v49.81Zm0,1v49.92h-49.92v-49.92h49.92Zm0,50.92v49.81h-49.92v-49.81h49.92Zm0,50.81v49.92h-49.92v-49.92h49.92Zm1,0h49.81v49.92h-49.81v-49.92Zm50.81,0h49.92v49.92h-49.92v-49.92Zm50.92,0h49.81v49.92h-49.81v-49.92Zm50.81,0h49.92v49.92h-49.92v-49.92Zm50.92,0h49.81v49.92h-49.81v-49.92Zm0-1v-49.81h49.81v49.81h-49.81Zm0-50.81v-49.92h49.81v49.92h-49.81Zm0-50.92v-49.81h49.81v49.81h-49.81Zm-1-100.73v49.92h-49.92v-49.92h49.92Zm-50.92,0v49.92h-49.81v-49.92h49.81Zm-50.81,0v49.92h-49.92v-49.92h49.92Zm-50.92,0v49.92h-49.81v-49.92h49.81Zm-50.81,0v49.92h-49.92v-49.92h49.92Zm-100.73,0h49.81v49.92h-49.81v-49.92Zm0,50.92h49.81v49.81h-49.81v-49.81Zm0,50.81h49.81v49.92h-49.81v-49.92Zm0,50.92h49.81v49.81h-49.81v-49.81Zm0,50.81h49.81v49.92h-49.81v-49.92Zm0,100.73v-49.81h49.81v49.81h-49.81Zm50.81,0v-49.81h49.92v49.81h-49.92Zm50.92,0v-49.81h49.81v49.81h-49.81Zm50.81,0v-49.81h49.92v49.81h-49.92Zm50.92,0v-49.81h49.81v49.81h-49.81Zm50.81,0v-49.81h49.92v49.81h-49.92Zm50.92,0v-49.81h49.81v49.81h-49.81Zm100.73,0h-49.92v-49.81h49.92v49.81Zm0-50.81h-49.92v-49.92h49.92v49.92Zm0-50.92h-49.92v-49.81h49.92v49.81Zm0-50.81h-49.92v-49.92h49.92v49.92Zm0-50.92h-49.92v-49.81h49.92v49.81Zm0-50.81h-49.92v-49.92h49.92v49.92Z`}),(0,u.jsx)(`path`,{className:`cls-1`,d:`m418.99,155.87l-48.04,18.79v108.18h-227.53v-108.18l-48.04-18.79,38.34-27.86,42.94,13.48h161.03l42.94-13.48,38.34,27.86Zm-229.89-87.54c2.6-2.6,4.23-5.54,4.56-7.85,2.63,1.44,5.25,1.63,6.66.22,1.41-1.42,1.22-4.04-.23-6.66,2.31-.34,5.25-1.97,7.84-4.58,4.09-4.1,5.79-9.04,3.8-11.04-2-2-6.94-.29-11.03,3.81-2.42,2.42-3.99,5.13-4.47,7.35-3.13-2.38-6.62-3.01-8.33-1.29s-1.08,5.21,1.31,8.33c-2.23.48-4.93,2.06-7.35,4.48-4.09,4.1-5.79,9.04-3.8,11.04,2,2,6.94.29,11.03-3.81Zm10.82-2.58c1.28,1.28,3.55,1.1,5.06-.41,1.51-1.51,1.69-3.77.41-5.06-1.28-1.28-3.55-1.1-5.06.41-1.51,1.51-1.69,3.77-.41,5.06Z`}),(0,u.jsx)(`path`,{className:`cls-2`,d:`m251.22,145.7c-.21-.72.21-1.48.93-1.68.72-.21,1.48.21,1.68.93.75,2.63,1.57,5.34,2.43,8.06.23.72-.17,1.48-.89,1.71-.14.04-.28.06-.41.06-.58,0-1.11-.37-1.3-.95-.87-2.74-1.69-5.48-2.46-8.13Zm-3.07-25.31c-.48-2.83-.87-5.63-1.17-8.3-.08-.75-.76-1.29-1.5-1.2-.75.08-1.28.76-1.2,1.5.31,2.72.71,5.56,1.19,8.45.11.66.69,1.13,1.34,1.13.07,0,.15,0,.23-.02.74-.12,1.24-.83,1.12-1.57Zm-3.2-15.22s.04,0,.06,0c.75-.03,1.33-.67,1.3-1.42-.07-1.55-.1-3.07-.1-4.53,0-1.31.03-2.58.08-3.81.03-.75-.55-1.39-1.3-1.42-.72-.02-1.39.55-1.42,1.3-.06,1.27-.08,2.57-.08,3.92,0,1.5.04,3.07.11,4.65.03.73.63,1.3,1.36,1.3Zm.6-16.88c.08.01.15.02.22.02.65,0,1.23-.47,1.34-1.14.47-2.88,1.14-5.56,1.98-7.97.25-.71-.13-1.49-.84-1.73-.71-.25-1.49.13-1.73.84-.89,2.56-1.6,5.39-2.1,8.42-.12.74.38,1.44,1.12,1.56Zm3.46,49.2c.16.62.71,1.03,1.32,1.03.11,0,.22-.01.33-.04.73-.18,1.17-.92.99-1.65-.7-2.78-1.35-5.53-1.91-8.19-.16-.74-.88-1.2-1.61-1.05-.73.16-1.2.88-1.05,1.61.57,2.69,1.23,5.48,1.94,8.28Zm16.4-73.89c.64-.08,1.28-.09,1.95-.12,1.95,0,3.88.34,5.75,1.02.15.06.31.08.46.08.56,0,1.08-.34,1.28-.9.26-.71-.11-1.49-.82-1.74-2.16-.78-4.41-1.18-6.67-1.18h0c-.76,0-1.52.05-2.27.14-.75.09-1.28.77-1.19,1.51.09.75.77,1.28,1.51,1.19Zm-16.95,29.4c-.25.71.12,1.49.83,1.74,2.87,1.01,5.66,1.82,8.28,2.4.1.02.2.03.3.03.62,0,1.19-.43,1.33-1.07.16-.73-.3-1.46-1.03-1.62-2.51-.56-5.19-1.34-7.96-2.31-.71-.25-1.49.12-1.74.83Zm35-17.62c.16.61.71,1.01,1.31,1.01.12,0,.24-.02.36-.05.73-.2,1.15-.94.96-1.67-.78-2.9-2.34-5.61-4.5-7.85-.52-.54-1.39-.56-1.92-.03-.54.52-.56,1.38-.03,1.92,1.84,1.9,3.16,4.21,3.83,6.67Zm-9.33,19.12c-2.25.77-4.91,1.12-7.86,1.05-.75-.03-1.38.57-1.4,1.32-.02.75.57,1.38,1.32,1.4.29,0,.57.01.86.01,2.95,0,5.63-.41,7.95-1.2.71-.24,1.09-1.02.84-1.73-.24-.71-1.02-1.09-1.73-.84Zm11-12.44c-.73-.16-1.46.31-1.62,1.04-.62,2.84-1.68,5.23-3.16,7.09-.47.59-.37,1.44.22,1.91.25.2.55.29.84.29.4,0,.8-.18,1.07-.51,1.74-2.19,2.98-4.95,3.68-8.2.16-.73-.31-1.46-1.04-1.62Zm-33.61-9.51c.44,0,.86-.21,1.13-.6,1.58-2.34,3.44-4.23,5.51-5.63.62-.42.79-1.27.37-1.89-.42-.62-1.27-.79-1.89-.37-2.37,1.6-4.47,3.74-6.25,6.36-.42.62-.26,1.47.36,1.89.23.16.5.23.76.23Zm-17.85,15.17c2.56,1.38,5.14,2.66,7.67,3.8.18.08.37.12.56.12.52,0,1.01-.3,1.24-.8.31-.68,0-1.49-.68-1.8-2.47-1.11-4.99-2.36-7.5-3.72-.66-.36-1.49-.11-1.84.55-.36.66-.11,1.49.55,1.84Zm-25.71-38.23c4.09-4.1-4.68,1.35-6.68-.64-2-2,3.54-10.69-.56-6.58-4.09,4.1-4.86,7.57-2.87,9.56,2,2,6.01,1.77,10.1-2.34Zm121.24,179.57c0,6.06-4.91,10.97-10.97,10.97s-10.97-4.91-10.97-10.97,4.91-10.97,10.97-10.97,10.97,4.91,10.97,10.97Zm-5.51-.85c0-3.53-2.86-6.38-6.38-6.38s-6.38,2.86-6.38,6.38,2.86,6.38,6.38,6.38,6.38-2.86,6.38-6.38Zm-84.1,31.49c-1.86,1.86-1.86,4.87,0,6.73.93.93,2.15,1.4,3.37,1.4s2.44-.47,3.37-1.39c6.97-6.97,18.31-6.97,25.28,0,1.86,1.86,4.87,1.86,6.73,0,1.86-1.86,1.86-4.87,0-6.73-10.68-10.68-28.06-10.68-38.75,0Zm-47.36-41.78c2.19-1.14,4.69-1.36,7.05-.62,1.43.45,2.96-.35,3.41-1.78.45-1.43-.35-2.96-1.78-3.41-3.74-1.18-7.72-.83-11.2.99-3.48,1.81-6.04,4.87-7.22,8.62-.45,1.43.35,2.96,1.78,3.41.27.09.55.13.82.13,1.16,0,2.23-.74,2.59-1.91.74-2.36,2.35-4.28,4.54-5.42Zm139.73,7.33c.27,0,.55-.04.82-.13,1.43-.45,2.23-1.98,1.78-3.41-2.43-7.72-10.69-12.04-18.41-9.6-1.43.45-2.23,1.98-1.78,3.41.45,1.43,1.98,2.23,3.41,1.78,4.87-1.53,10.06,1.18,11.59,6.05.37,1.16,1.44,1.91,2.59,1.91Zm-144.88,3.81c0-6.06,4.91-10.97,10.97-10.97s10.97,4.91,10.97,10.97-4.91,10.97-10.97,10.97-10.97-4.91-10.97-10.97Zm3.65-.85c0,3.53,2.86,6.38,6.38,6.38s6.38-2.86,6.38-6.38-2.86-6.38-6.38-6.38-6.38,2.86-6.38,6.38Zm18.69-157.72c.91.91,1.93,1.87,3.05,2.85.26.23.58.34.9.34.38,0,.76-.16,1.02-.46.49-.57.44-1.43-.13-1.92-1.07-.94-2.05-1.85-2.91-2.72-.53-.53-1.39-.54-1.92,0-.53.53-.54,1.39,0,1.92Zm16.89,12.95c.22.14.47.21.72.21.45,0,.9-.23,1.16-.64.4-.64.2-1.48-.43-1.87-2.41-1.51-4.75-3.08-6.95-4.67-.61-.44-1.46-.3-1.9.3-.44.61-.3,1.46.3,1.9,2.25,1.62,4.63,3.23,7.1,4.77Zm-25.94-22.7c2-2-4-2-7.43-5.42-3.43-3.43-3-8.98-4.99-6.98-1.99,2-.83,6.39,2.6,9.82,3.43,3.43,7.83,4.58,9.82,2.58Zm137.37,101.16h-78.49c-.09-.25-.18-.52-.27-.77-.24-.71-1.02-1.09-1.73-.84-.67.23-1.03.94-.86,1.61h-79.68l-10.81,12.8h185.72l-13.89-12.8Zm-148.6-93.53c4.09-4.1-4.71,1.02-6.7-.98s3.56-10.35-.53-6.25c-4.09,4.1-5.79,9.04-3.8,11.04,2,2,6.94.29,11.03-3.81Zm211.17,194.3h-29.32v14.55s-209.51.67-218.27-4.49c-7.39-4.36-5.84-98.04-5.84-98.04h-3.42v87.98h-30.68c-10.34,0-18.72,8.38-18.72,18.72h0c0,10.34,8.38,18.72,18.72,18.72h287.53c10.34,0,18.72-8.38,18.72-18.72h0c0-10.34-8.38-18.72-18.72-18.72Z`}),(0,u.jsx)(`path`,{className:`cls-3`,d:`m274.16,260.36c.53.53.53,1.39,0,1.92-.27.27-.61.4-.96.4s-.7-.13-.96-.4c-8.3-8.3-21.8-8.3-30.09,0-.53.53-1.39.53-1.92,0-.53-.53-.53-1.39,0-1.92,9.36-9.36,24.58-9.36,33.94,0Zm-97.05-187.21c-1.35-1.35-1.61-3.53-.71-6.13.78-2.28,2.38-4.7,4.51-6.83,1.93-1.94,4.11-3.42,6.18-4.27-.55-.94-.97-1.91-1.23-2.86-.09-.35-.15-.68-.2-1.01l-5.62-1.9c-.71-.24-1.09-1.01-.85-1.72.24-.71,1.01-1.1,1.72-.85l4.93,1.66c.23-.71.6-1.34,1.11-1.86.52-.52,1.14-.89,1.85-1.12l-1.67-4.92c-.24-.71.14-1.48.85-1.73.71-.24,1.48.14,1.73.85l1.91,5.62c.33.05.67.11,1.02.2.95.25,1.92.68,2.87,1.22.84-2.08,2.33-4.27,4.26-6.19,4.77-4.78,10.34-6.42,12.96-3.82,1.35,1.35,1.61,3.53.71,6.13-.78,2.28-2.38,4.7-4.51,6.83-2.14,2.14-4.61,3.74-6.87,4.52.42,1.1.62,2.18.61,3.18.06,0,.12-.03.18-.03,1.36-.11,2.61.33,3.52,1.23.91.91,1.35,2.16,1.24,3.51-.1,1.28-.69,2.51-1.64,3.47-.96.96-2.19,1.54-3.46,1.65-.14.01-.28.02-.41.02-1.2,0-2.29-.44-3.1-1.25-.91-.91-1.35-2.15-1.24-3.51,0-.06.02-.11.03-.17-.02,0-.05,0-.07,0-.65,0-1.35-.09-2.07-.28-.34-.09-.69-.23-1.03-.36-.77,2.27-2.36,4.74-4.52,6.9-3.25,3.25-6.86,5.05-9.66,5.05-1.32,0-2.46-.4-3.3-1.23Zm24.19-11.45c-.5.5-.81,1.13-.86,1.76-.04.55.11,1.04.45,1.37.33.33.82.5,1.37.45.63-.05,1.26-.36,1.76-.86.5-.5.81-1.13.86-1.76.04-.55-.11-1.04-.45-1.37h0c-.3-.3-.71-.46-1.19-.46-.06,0-.12,0-.18,0-.63.05-1.26.36-1.76.86Zm-3.51-12.55c.31.26.62.52.91.81.82.82,1.52,1.69,2.1,2.58,1.95-.56,4.2-2.01,6.2-4,1.81-1.81,3.22-3.92,3.86-5.79.52-1.52.5-2.76-.06-3.32-1.11-1.11-5.11-.19-9.11,3.81-1.88,1.88-3.27,4.01-3.89,5.91Zm-9.29,3.22c.42,1.6,1.51,3.36,2.98,4.83,1.47,1.47,3.23,2.55,4.83,2.97,1.35.36,2.47.21,3.07-.39,1.25-1.26.5-4.81-2.6-7.9-1.47-1.47-3.23-2.55-4.83-2.97-.49-.13-.95-.19-1.36-.19-.73,0-1.32.2-1.7.58-.6.6-.74,1.72-.38,3.07Zm-9.46,18.86c1.11,1.1,5.11.19,9.11-3.81,1.98-1.98,3.44-4.28,3.99-6.22-.9-.58-1.78-1.27-2.58-2.07-.29-.29-.55-.61-.81-.91-1.88.62-4.04,2.04-5.9,3.9-1.81,1.81-3.22,3.92-3.86,5.79-.52,1.52-.5,2.76.06,3.32Zm136.18,140.83c-.72.23-1.12.99-.89,1.71.23.72.99,1.12,1.71.89,5.58-1.76,11.54,1.36,13.3,6.93.18.58.72.95,1.3.95.14,0,.27-.02.41-.06.72-.23,1.12-.99.89-1.71-2.2-7.01-9.7-10.92-16.71-8.71Zm-110.38,16.16c0,4.27-3.47,7.74-7.74,7.74s-7.74-3.47-7.74-7.74,3.47-7.74,7.74-7.74,7.74,3.47,7.74,7.74Zm-2.72,0c0-2.77-2.25-5.02-5.02-5.02s-5.02,2.25-5.02,5.02,2.25,5.02,5.02,5.02,5.02-2.25,5.02-5.02Zm-3.76-13.57c.71.23,1.48-.17,1.71-.89.23-.72-.17-1.48-.89-1.71-7.01-2.21-14.5,1.71-16.71,8.71-.23.72.17,1.48.89,1.71.14.04.27.06.41.06.58,0,1.11-.37,1.3-.95,1.75-5.58,7.72-8.69,13.3-6.93Zm221.99-58.56c-.06.49-.39.91-.85,1.09l-47.17,18.45v107.25c0,.75-.61,1.36-1.36,1.36h-227.53c-.75,0-1.36-.61-1.36-1.36v-107.25l-47.17-18.45c-.46-.18-.79-.6-.85-1.09-.06-.49.15-.98.55-1.27l38.34-27.86c.35-.25.8-.33,1.21-.2l42.74,13.42h160.61l42.74-13.42c.41-.13.86-.06,1.21.2l38.34,27.86c.4.29.61.78.55,1.27Zm-81.28,17.26h28.6l-28.6-28.53v28.53Zm-161.03,0h158.31v-30.45h-158.31v30.45Zm-23.23-11.91l19.32-19.27-40.15-12.6-35.78,25.99,44.89,17.56,11.71-11.68Zm-8.09,11.91h28.6v-28.53l-28.6,28.53Zm222.88,2.72h-224.81v105.46h224.81v-105.46Zm46.59-20.51l-35.78-25.99-40.14,12.6,31.03,30.95,44.89-17.56Zm-91.14,72.66c0,4.27-3.47,7.74-7.74,7.74s-7.74-3.47-7.74-7.74,3.47-7.74,7.74-7.74,7.74,3.47,7.74,7.74Zm-2.72,0c0-2.77-2.25-5.02-5.02-5.02s-5.02,2.25-5.02,5.02,2.25,5.02,5.02,5.02,5.02-2.25,5.02-5.02Z`})]}),zi=q.div`
144
+ left: ${({$position:e})=>e===`left`?0:`auto`};
145
+ right: ${({$position:e})=>e===`right`?0:`auto`};
146
+ `,Yr=X.div`
147
+ position: absolute;
148
+ pointer-events: none;
149
+ box-sizing: border-box;
150
+ border: 2px solid ${({theme:e})=>e.colors.accent};
151
+ background-color: ${({theme:e})=>e.colors.tertiary};
152
+ opacity: 0.5;
153
+ border-radius: 4px;
154
+ `;function Xr({zoom:e,rows:t,data:n,onTileClick:r,onCellClick:i,onCellRangeSelect:a,onTileMove:o,selectedCell:s,ref:c}){let{handleScrollNext:d,handleScrollPrev:p,date:m,isLoading:h,cols:g,startDate:_,navigation:v}=Ir(),y=(0,l.useRef)(null),b=(0,l.useRef)(null),x=(0,l.useRef)(null),S=(0,l.useRef)(null),C=(0,l.useRef)(null),[w,T]=(0,l.useState)(null),E=(0,l.useRef)(null),D=(0,l.useCallback)(e=>{E.current=e,T(e)},[]),O=(0,l.useCallback)(e=>{x.current=e,typeof c==`function`?c(e):c&&(c.current=e)},[c]),ee=Y(),k=n.map(e=>Math.max(e.data.length,1)),A=w?Hr(_,k,w.resourceIndex,w.anchorDate,w.currentDate,e):s?Hr(_,k,n.findIndex(e=>e.id===s.resourceId),s.startDate,s.endDate,e):null,j=(0,l.useCallback)((t,n)=>{let r=y.current;if(!r)return null;let{left:i,top:a}=r.getBoundingClientRect();return Br(_,{x:t-i,y:n-a},k,e)},[k,_,e]),te=(0,l.useCallback)(e=>{if(!i&&!a)return;let t=j(e.clientX,e.clientY);t&&n[t.resourceIndex]&&D({resourceIndex:t.resourceIndex,anchorDate:t.date,currentDate:t.date})},[n,i,a,j,D]),M=w!==null;(0,l.useEffect)(()=>{if(!M)return;let e=e=>{let t=E.current,n=j(e.clientX,e.clientY);n&&t&&D({...t,currentDate:n.date})},t=()=>{let e=E.current;if(D(null),!e)return;let t=n[e.resourceIndex];if(!t)return;let[r,o]=e.anchorDate.getTime()<=e.currentDate.getTime()?[e.anchorDate,e.currentDate]:[e.currentDate,e.anchorDate];r.getTime()===o.getTime()?i?.({resourceId:t.id,date:r}):a?.({resourceId:t.id,startDate:r,endDate:o})};return window.addEventListener(`mousemove`,e),window.addEventListener(`mouseup`,t),()=>{window.removeEventListener(`mousemove`,e),window.removeEventListener(`mouseup`,t)}},[M,n,i,a,j,D]);let N=(0,l.useRef)(null),[P,F]=(0,l.useState)(null),ne=(0,l.useCallback)(e=>{N.current=e},[]),re=(0,l.useCallback)(()=>{N.current=null,F(null)},[]),I=(0,l.useCallback)((t,r)=>{let i=N.current;if(!i)return null;let a=j(t,r);if(!a||!n[a.resourceIndex])return null;let{project:o,grabOffset:s}=i,c=(0,f.default)(a.date).subtract(s,zr(e)).toDate(),l=o.endDate.getTime()-o.startDate.getTime();return{project:o,resourceIndex:a.resourceIndex,startDate:c,endDate:new Date(c.getTime()+l)}},[n,j,e]),ie=(0,l.useCallback)(e=>{if(!N.current)return;e.preventDefault(),e.dataTransfer.dropEffect=`move`;let t=I(e.clientX,e.clientY);F(e=>e&&t&&e.resourceIndex===t.resourceIndex&&e.startDate.getTime()===t.startDate.getTime()?e:t)},[I]),L=(0,l.useCallback)(e=>{e.currentTarget.contains(e.relatedTarget)||F(null)},[]),ae=(0,l.useCallback)(e=>{let t=N.current;if(!o||!t)return;e.preventDefault();let r=I(e.clientX,e.clientY);N.current=null,F(null),r&&o({id:t.project.id,previousResourceId:t.resourceId,resourceId:n[r.resourceIndex].id,startDate:r.startDate,endDate:r.endDate})},[n,o,I]),R=(0,l.useCallback)(n=>{Lr(n,Tr(),t*56+1),or(n,e,t,g,_,ee)},[g,_,t,e,ee]);return(0,l.useEffect)(()=>{let e=b.current,t=y.current;if(!e||!t)return;t.style.letterSpacing=`1px`;let n=t.getContext(`2d`);if(!n)return;let r=new ResizeObserver(()=>{R(n)});return r.observe(e),R(n),()=>r.disconnect()},[R,m,t,e]),(0,l.useEffect)(()=>{let e=x.current;e&&v&&(e.classList.remove(`slide-next`,`slide-prev`),e.offsetWidth,e.classList.add(v.direction===`next`?`slide-next`:`slide-prev`))},[v]),(0,l.useEffect)(()=>{if(!S.current)return;let e=new IntersectionObserver(e=>e[0].isIntersecting?d():null,{root:document.getElementById(Xn)});return e.observe(S.current),()=>e.disconnect()},[d]),(0,l.useEffect)(()=>{if(!C.current)return;let e=new IntersectionObserver(e=>e[0].isIntersecting?p():null,{root:document.getElementById(Xn),rootMargin:`0px 0px 0px -196px`});return e.observe(C.current),()=>e.disconnect()},[p]),(0,u.jsx)(Ur,{id:Yn,ref:b,children:(0,u.jsxs)(Kr,{ref:O,onDragOver:o?ie:void 0,onDragLeave:o?L:void 0,onDrop:o?ae:void 0,children:[(0,u.jsx)(Jr,{$position:`left`,ref:C}),(0,u.jsx)(La,{isLoading:h,position:`left`}),(0,u.jsx)(qr,{ref:y,onMouseDown:te}),(0,u.jsx)(lo,{data:n,zoom:e,onTileClick:r,onTileMove:o,onTileDragStart:ne,onTileDragEnd:re}),P&&(0,u.jsx)(co,{row:k.slice(0,P.resourceIndex).reduce((e,t)=>e+t,0),data:{...P.project,startDate:P.startDate,endDate:P.endDate},zoom:e,preview:!0}),A&&(0,u.jsx)(Yr,{style:{left:`${A.x}px`,top:`${A.y}px`,width:`${A.width}px`,height:`${A.height}px`}}),(0,u.jsx)(Jr,{ref:S,$position:`right`}),(0,u.jsx)(La,{isLoading:h,position:`right`})]})})}var Zr=e=>{let t=f.default.duration(e,`seconds`);return{hours:t.hours(),minutes:t.minutes()}},Qr=e=>{let t=0,n=0,r=0;return e.forEach(e=>{t+=e.minutes;let i=Math.floor(t/60);n+=e.hours+i,r+=t%60,r>=60&&(n++,r-=60)}),{hours:n,minutes:r}},$r=(e,t)=>{let n=8;switch(t){case 0:n=40;break;case 1:n=8;break;case 2:n=1}return{free:(()=>{let t=n-e.hours-1,r=60-e.minutes;return r===60&&(t++,r=0),{hours:Math.max(0,t),minutes:t<0?0:r}})(),overtime:(()=>{let t=e.hours-n,r=e.minutes;return{hours:Math.max(0,t),minutes:t<0?0:r}})()}},ei=(e,t,n)=>{let r=t.isoWeek(),{hours:i,minutes:a}=Qr(e.map(e=>{let n=(0,f.default)(e.startDate).isoWeek(),i=(0,f.default)(e.startDate).isoWeekday(),a=(0,f.default)(e.endDate).isoWeek(),o=(0,f.default)(e.endDate).isoWeekday(),{hours:s,minutes:c}=Zr(e.occupancy);if(r===n){let e=(6-i)*s,t=(6-i)*c;return{hours:Math.max(0,e),minutes:t}}return r===a?{hours:o>5?5*s:o*s,minutes:o>5?5*c:o*c}:(0,f.default)(t).isBetween(e.startDate,e.endDate)?{hours:5*s,minutes:5*c}:{hours:0,minutes:0}})),{free:o,overtime:s}=$r({hours:i,minutes:a},n);return{taken:{hours:Math.max(0,i),minutes:Math.max(0,a)},free:o,overtime:s}},ti=(e,t,n,r)=>{let i=t.isoWeekday(),{hours:a,minutes:o}=Qr(e.map(e=>{let{hours:t,minutes:n}=Zr(e.occupancy);return i<=(r?7:5)?{hours:t,minutes:n}:{hours:0,minutes:0}})),{free:s,overtime:c}=$r({hours:a,minutes:o},n);return{taken:{hours:Math.max(0,a),minutes:Math.max(0,o)},free:s,overtime:c}},ni=(e,t)=>{let n=0;e.forEach(e=>{let r=(0,f.default)(e.startDate).hour(),i=(0,f.default)(e.endDate).hour(),a=t.hour(),o=(0,f.default)(e.endDate).minute(),s=(0,f.default)(e.startDate).minute();r<a&&i>a?n+=60:r===a&&i===a&&s&&o?n+=o?o-s:60-s:r===a&&i>=a?n+=s?60-s:60:i===a&&o&&(n+=o)});let r=Math.floor(n/60),i=n%60,a=r||i?0:1,o=r?0:i?60-i:0;return{taken:{hours:r,minutes:i},free:{hours:a,minutes:o},overtime:{hours:0,minutes:0}}},ri=(e,t,n,r,i=!1)=>{if(t<0)return{taken:{hours:0,minutes:0},free:{hours:0,minutes:0},overtime:{hours:0,minutes:0}};let a=e.flat(2).filter(e=>r===1?(0,f.default)(n).isBetween(e.startDate,e.endDate,`day`,`[]`):r===2?(0,f.default)(n).isBetween(e.startDate,e.endDate,`hour`,`[]`):(0,f.default)(e.startDate).isBetween((0,f.default)(n),(0,f.default)(n).add(6,`days`),`day`,`[]`)||(0,f.default)(n).isBetween((0,f.default)(e.startDate),(0,f.default)(e.endDate),`day`,`[]`));switch(r){case 1:return ti(a,n,r,i);case 2:return ni(a,n);default:return ei(a,n,r)}},ii=(e,t,n,r,i,a=!1)=>{let o=`weeks`,s;switch(i){case 0:o=`weeks`,s=84;break;case 1:o=`days`,s=50;break;case 2:o=`hours`,s=50}let c=Math.ceil(i===2?(t.x-.5*s)/s:t.x/s),l=(0,f.default)(`${e.year}-${e.month+1}-${e.dayOfMonth}T${e.hour}:00:00`).add(c-1,o),u=Math.ceil(t.y/56),d=n.findIndex((e,t,n)=>n.slice(0,t+1).reduce((e,t)=>e+t,0)>=u),p=i===2?(c+1)*s:c*s,m=(u-1)*56+56,h=ri(r[d],d,l,i,a);return{coords:{x:p,y:m},resourceIndex:d,disposition:h}},ai=(e,t,n,r)=>{let i=[],a=0,o=[],s=0;return t.length>r?(t.forEach((t,n)=>{let c={id:e[n].id,label:e[n].label,data:t};s>=r&&(i.push(o),a+=o.length,o=[],s=0),s++,o.push(c)}),n.slice(a).length<=r&&(o=[],t.slice(a).forEach((n,r)=>{let s={id:e[r+a].id,label:e[r+a].label,data:n};o.push(s),r===t.length-a-1&&i.push(o)})),i):(t.forEach((t,n)=>{let r={id:e[n].id,label:e[n].label,data:t};o.push(r)}),i.push(o),i)},oi={0:`day`,1:`day`,2:void 0},si=(e,t)=>{let n=[];for(let r of e){let e=!1;if(n.length)for(let i of n){let n=!1;for(let e=0;e<i.length;e++)if((0,f.default)(r.startDate).isSameOrBefore((0,f.default)(i[e].endDate),oi[t||0])&&(0,f.default)(r.endDate).isSameOrAfter((0,f.default)(i[e].startDate),oi[t||0])){n=!0;break}if(!n){i.push(r),e=!0;break}}e||n.push([r])}return n},ci=(e,t)=>{let[n,r]=e.reduce((e,n)=>{let r=si(n.data,t);return e[0].push(r),e[1].push(Math.max(r.length,1)),e},[[],[]]);return{projectsPerPerson:n,rowsPerPerson:r}},li=e=>e?e.map(e=>e.data.length).reduce((e,t)=>e+Math.max(t,1),0):0,ui=e=>{let{recordsThreshold:t,zoom:n}=Ir(),[r,i]=(0,l.useState)(0),[a,o]=(0,l.useState)(0),s=(0,l.useRef)(null);(0,l.useEffect)(()=>{s.current=document.getElementById(Xn)},[]);let{projectsPerPerson:c,rowsPerPerson:u}=(0,l.useMemo)(()=>ci(e,n),[e,n]),d=(0,l.useMemo)(()=>ai(e,c,u,t),[e,c,t,u]),f=(0,l.useCallback)(()=>{d[a].length&&s.current&&(s.current.scroll({top:0}),i(e=>e+d[Math.max(a,0)].length),o(e=>Math.min(e+1,d.length-1)),window.scroll({top:0}))},[a,d]),p=(0,l.useCallback)(()=>{d[a].length&&(i(e=>Math.max(e-d[a-1].length,0)),o(e=>Math.max(e-1,0)))},[a,d]),m=(0,l.useCallback)(()=>{i(0),o(0)},[]),h=r+d[a].length,g=(0,l.useMemo)(()=>u.slice(r,h),[h,u,r]),_=(0,l.useMemo)(()=>c.slice(r,h),[h,c,r]);return{page:d[a],currentPageNum:a,pagesAmount:d.length,projectsPerPerson:_,rowsPerItem:g,totalRowsPerPage:li(d[a]),next:f,previous:p,reset:m}},di=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_en=r()})(e,(function(){"use strict";return{name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}}}))})),fi=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(d()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_pl=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e);function r(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function i(e,t,n){var i=e+` `;switch(n){case`m`:return t?`minuta`:`minutę`;case`mm`:return i+(r(e)?`minuty`:`minut`);case`h`:return t?`godzina`:`godzinę`;case`hh`:return i+(r(e)?`godziny`:`godzin`);case`MM`:return i+(r(e)?`miesiące`:`miesięcy`);case`yy`:return i+(r(e)?`lata`:`lat`)}}var a=`stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia`.split(`_`),o=`styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień`.split(`_`),s=/D MMMM/,c=function(e,t){return s.test(t)?a[e.month()]:o[e.month()]};c.s=o,c.f=a;var l={name:`pl`,weekdays:`niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota`.split(`_`),weekdaysShort:`ndz_pon_wt_śr_czw_pt_sob`.split(`_`),weekdaysMin:`Nd_Pn_Wt_Śr_Cz_Pt_So`.split(`_`),months:c,monthsShort:`sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru`.split(`_`),ordinal:function(e){return e+`.`},weekStart:1,yearStart:4,relativeTime:{future:`za %s`,past:`%s temu`,s:`kilka sekund`,m:i,mm:i,h:i,hh:i,d:`1 dzień`,dd:`%d dni`,M:`miesiąc`,MM:i,y:`rok`,yy:i},formats:{LT:`HH:mm`,LTS:`HH:mm:ss`,L:`DD.MM.YYYY`,LL:`D MMMM YYYY`,LLL:`D MMMM YYYY HH:mm`,LLLL:`dddd, D MMMM YYYY HH:mm`}};return n.default.locale(l,null,!0),l}))})),pi=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(d()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_de=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={s:`ein paar Sekunden`,m:[`eine Minute`,`einer Minute`],mm:`%d Minuten`,h:[`eine Stunde`,`einer Stunde`],hh:`%d Stunden`,d:[`ein Tag`,`einem Tag`],dd:[`%d Tage`,`%d Tagen`],M:[`ein Monat`,`einem Monat`],MM:[`%d Monate`,`%d Monaten`],y:[`ein Jahr`,`einem Jahr`],yy:[`%d Jahre`,`%d Jahren`]};function i(e,t,n){var i=r[n];return Array.isArray(i)&&(i=i[+!t]),i.replace(`%d`,e)}var a={name:`de`,weekdays:`Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag`.split(`_`),weekdaysShort:`So._Mo._Di._Mi._Do._Fr._Sa.`.split(`_`),weekdaysMin:`So_Mo_Di_Mi_Do_Fr_Sa`.split(`_`),months:`Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember`.split(`_`),monthsShort:`Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.`.split(`_`),ordinal:function(e){return e+`.`},weekStart:1,yearStart:4,formats:{LTS:`HH:mm:ss`,LT:`HH:mm`,L:`DD.MM.YYYY`,LL:`D. MMMM YYYY`,LLL:`D. MMMM YYYY HH:mm`,LLLL:`dddd, D. MMMM YYYY HH:mm`},relativeTime:{future:`in %s`,past:`vor %s`,s:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i}};return n.default.locale(a,null,!0),a}))})),mi=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(d()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_lt=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r=`sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio`.split(`_`),i=`sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis`.split(`_`),a=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/,o=function(e,t){return a.test(t)?r[e.month()]:i[e.month()]};o.s=i,o.f=r;var s={name:`lt`,weekdays:`sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis`.split(`_`),weekdaysShort:`sek_pir_ant_tre_ket_pen_šeš`.split(`_`),weekdaysMin:`s_p_a_t_k_pn_š`.split(`_`),months:o,monthsShort:`sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd`.split(`_`),ordinal:function(e){return e+`.`},weekStart:1,relativeTime:{future:`už %s`,past:`prieš %s`,s:`kelias sekundes`,m:`minutę`,mm:`%d minutes`,h:`valandą`,hh:`%d valandas`,d:`dieną`,dd:`%d dienas`,M:`mėnesį`,MM:`%d mėnesius`,y:`metus`,yy:`%d metus`},format:{LT:`HH:mm`,LTS:`HH:mm:ss`,L:`YYYY-MM-DD`,LL:`YYYY [m.] MMMM D [d.]`,LLL:`YYYY [m.] MMMM D [d.], HH:mm [val.]`,LLLL:`YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]`,l:`YYYY-MM-DD`,ll:`YYYY [m.] MMMM D [d.]`,lll:`YYYY [m.] MMMM D [d.], HH:mm [val.]`,llll:`YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]`},formats:{LT:`HH:mm`,LTS:`HH:mm:ss`,L:`YYYY-MM-DD`,LL:`YYYY [m.] MMMM D [d.]`,LLL:`YYYY [m.] MMMM D [d.], HH:mm [val.]`,LLLL:`YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]`,l:`YYYY-MM-DD`,ll:`YYYY [m.] MMMM D [d.]`,lll:`YYYY [m.] MMMM D [d.], HH:mm [val.]`,llll:`YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]`}};return n.default.locale(s,null,!0),s}))})),hi=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(d()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_fr=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={name:`fr`,weekdays:`dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi`.split(`_`),weekdaysShort:`dim._lun._mar._mer._jeu._ven._sam.`.split(`_`),weekdaysMin:`di_lu_ma_me_je_ve_sa`.split(`_`),months:`janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre`.split(`_`),monthsShort:`janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.`.split(`_`),weekStart:1,yearStart:4,formats:{LT:`HH:mm`,LTS:`HH:mm:ss`,L:`DD/MM/YYYY`,LL:`D MMMM YYYY`,LLL:`D MMMM YYYY HH:mm`,LLLL:`dddd D MMMM YYYY HH:mm`},relativeTime:{future:`dans %s`,past:`il y a %s`,s:`quelques secondes`,m:`une minute`,mm:`%d minutes`,h:`une heure`,hh:`%d heures`,d:`un jour`,dd:`%d jours`,M:`un mois`,MM:`%d mois`,y:`un an`,yy:`%d ans`},ordinal:function(e){return``+e+(e===1?`er`:``)}};return n.default.locale(r,null,!0),r}))})),gi=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(d()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_it=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={name:`it`,weekdays:`domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato`.split(`_`),weekdaysShort:`dom_lun_mar_mer_gio_ven_sab`.split(`_`),weekdaysMin:`do_lu_ma_me_gi_ve_sa`.split(`_`),months:`gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre`.split(`_`),weekStart:1,monthsShort:`gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic`.split(`_`),formats:{LT:`HH:mm`,LTS:`HH:mm:ss`,L:`DD/MM/YYYY`,LL:`D MMMM YYYY`,LLL:`D MMMM YYYY HH:mm`,LLLL:`dddd D MMMM YYYY HH:mm`},relativeTime:{future:`tra %s`,past:`%s fa`,s:`qualche secondo`,m:`un minuto`,mm:`%d minuti`,h:`un'ora`,hh:`%d ore`,d:`un giorno`,dd:`%d giorni`,M:`un mese`,MM:`%d mesi`,y:`un anno`,yy:`%d anni`},ordinal:function(e){return e+`º`}};return n.default.locale(r,null,!0),r}))})),_i=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(d()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_pt_br=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={name:`pt-br`,weekdays:`domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado`.split(`_`),weekdaysShort:`dom_seg_ter_qua_qui_sex_sáb`.split(`_`),weekdaysMin:`Do_2ª_3ª_4ª_5ª_6ª_Sá`.split(`_`),months:`janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro`.split(`_`),monthsShort:`jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez`.split(`_`),ordinal:function(e){return e+`º`},formats:{LT:`HH:mm`,LTS:`HH:mm:ss`,L:`DD/MM/YYYY`,LL:`D [de] MMMM [de] YYYY`,LLL:`D [de] MMMM [de] YYYY [às] HH:mm`,LLLL:`dddd, D [de] MMMM [de] YYYY [às] HH:mm`},relativeTime:{future:`em %s`,past:`há %s`,s:`poucos segundos`,m:`um minuto`,mm:`%d minutos`,h:`uma hora`,hh:`%d horas`,d:`um dia`,dd:`%d dias`,M:`um mês`,MM:`%d meses`,y:`um ano`,yy:`%d anos`}};return n.default.locale(r,null,!0),r}))})),vi=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(d()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_es=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={name:`es`,monthsShort:`ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic`.split(`_`),weekdays:`domingo_lunes_martes_miércoles_jueves_viernes_sábado`.split(`_`),weekdaysShort:`dom._lun._mar._mié._jue._vie._sáb.`.split(`_`),weekdaysMin:`do_lu_ma_mi_ju_vi_sá`.split(`_`),months:`enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre`.split(`_`),weekStart:1,formats:{LT:`H:mm`,LTS:`H:mm:ss`,L:`DD/MM/YYYY`,LL:`D [de] MMMM [de] YYYY`,LLL:`D [de] MMMM [de] YYYY H:mm`,LLLL:`dddd, D [de] MMMM [de] YYYY H:mm`},relativeTime:{future:`en %s`,past:`hace %s`,s:`unos segundos`,m:`un minuto`,mm:`%d minutos`,h:`una hora`,hh:`%d horas`,d:`un día`,dd:`%d días`,M:`un mes`,MM:`%d meses`,y:`un año`,yy:`%d años`},ordinal:function(e){return e+`º`}};return n.default.locale(r,null,!0),r}))})),yi=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(d()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_ro=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={name:`ro`,weekdays:`Duminică_Luni_Marți_Miercuri_Joi_Vineri_Sâmbătă`.split(`_`),weekdaysShort:`Dum_Lun_Mar_Mie_Joi_Vin_Sâm`.split(`_`),weekdaysMin:`Du_Lu_Ma_Mi_Jo_Vi_Sâ`.split(`_`),months:`Ianuarie_Februarie_Martie_Aprilie_Mai_Iunie_Iulie_August_Septembrie_Octombrie_Noiembrie_Decembrie`.split(`_`),monthsShort:`Ian._Febr._Mart._Apr._Mai_Iun._Iul._Aug._Sept._Oct._Nov._Dec.`.split(`_`),weekStart:1,formats:{LT:`H:mm`,LTS:`H:mm:ss`,L:`DD.MM.YYYY`,LL:`D MMMM YYYY`,LLL:`D MMMM YYYY H:mm`,LLLL:`dddd, D MMMM YYYY H:mm`},relativeTime:{future:`peste %s`,past:`acum %s`,s:`câteva secunde`,m:`un minut`,mm:`%d minute`,h:`o oră`,hh:`%d ore`,d:`o zi`,dd:`%d zile`,M:`o lună`,MM:`%d luni`,y:`un an`,yy:`%d ani`},ordinal:function(e){return e}};return n.default.locale(r,null,!0),r}))})),bi=o(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(d()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_he=r(n.dayjs)})(e,(function(e){"use strict";function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={s:`מספר שניות`,ss:`%d שניות`,m:`דקה`,mm:`%d דקות`,h:`שעה`,hh:`%d שעות`,hh2:`שעתיים`,d:`יום`,dd:`%d ימים`,dd2:`יומיים`,M:`חודש`,MM:`%d חודשים`,MM2:`חודשיים`,y:`שנה`,yy:`%d שנים`,yy2:`שנתיים`};function i(e,t,n){return(r[n+(e===2?`2`:``)]||r[n]).replace(`%d`,e)}var a={name:`he`,weekdays:`ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת`.split(`_`),weekdaysShort:`א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳`.split(`_`),weekdaysMin:`א׳_ב׳_ג׳_ד׳_ה׳_ו_ש׳`.split(`_`),months:`ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר`.split(`_`),monthsShort:`ינו_פבר_מרץ_אפר_מאי_יונ_יול_אוג_ספט_אוק_נוב_דצמ`.split(`_`),relativeTime:{future:`בעוד %s`,past:`לפני %s`,s:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},ordinal:function(e){return e},format:{LT:`HH:mm`,LTS:`HH:mm:ss`,L:`DD/MM/YYYY`,LL:`D [ב]MMMM YYYY`,LLL:`D [ב]MMMM YYYY HH:mm`,LLLL:`dddd, D [ב]MMMM YYYY HH:mm`,l:`D/M/YYYY`,ll:`D MMM YYYY`,lll:`D MMM YYYY HH:mm`,llll:`ddd, D MMM YYYY HH:mm`},formats:{LT:`HH:mm`,LTS:`HH:mm:ss`,L:`DD/MM/YYYY`,LL:`D [ב]MMMM YYYY`,LLL:`D [ב]MMMM YYYY HH:mm`,LLLL:`dddd, D [ב]MMMM YYYY HH:mm`,l:`D/M/YYYY`,ll:`D MMM YYYY`,lll:`D MMM YYYY HH:mm`,llll:`ddd, D MMM YYYY HH:mm`}};return n.default.locale(a,null,!0),a}))})),xi={feelingEmpty:`Czuję się taki pusty...`,free:`Wolne`,loadNext:`Następne`,loadPrevious:`Poprzednie`,over:`ponad`,taken:`Zajęte`,topbar:{filters:`Filtry`,next:`następny`,prev:`poprzedni`,today:`Dziś`,view:`Widok`},search:`szukaj`,week:`tydzień`},Si={feelingEmpty:`I feel so empty...`,free:`Free`,loadNext:`Next`,loadPrevious:`Previous`,over:`over`,taken:`Taken`,topbar:{filters:`Filters`,next:`next`,prev:`prev`,today:`Today`,view:`View`},search:`search`,week:`week`},Ci={feelingEmpty:`Keine Ergebnisse...`,free:`Frei`,loadNext:`Weiter`,loadPrevious:`Zurück`,over:`über`,taken:`Gebucht`,topbar:{filters:`Filter`,next:`vor`,prev:`zurück`,today:`Heute`,view:`Ansicht`},search:`Suche`,week:`Woche`},wi={feelingEmpty:`Jaučiuosi toks tuščias...`,free:`Laisva`,loadNext:`Kitas`,loadPrevious:`Ankstesnis`,over:`virš`,taken:`Užimta`,topbar:{filters:`Filtras`,next:`kitas`,prev:`ankstesnis`,today:`Šiandien`,view:`Rodinys`},search:`ieškoti`,week:`savaitė`},Ti={feelingEmpty:`Le planning est vide...`,free:`Libre`,loadNext:`Suivant`,loadPrevious:`Précédent`,over:`over`,taken:`Pris`,topbar:{filters:`Filtres`,next:`suiv.`,prev:`préc.`,today:`Aujourd'hui`,view:`Voir`},search:`rechercher`,week:`semaine`},Ei={feelingEmpty:`Mi sento così vuoto...`,free:`Libero`,loadNext:`Prossimo`,loadPrevious:`Precedente`,over:`sopra`,taken:`Occupato`,topbar:{filters:`Filtri`,next:`prossimo`,prev:`precedente`,today:`Oggi`,view:`Vista`},search:`cerca`,week:`settimana`},Di={feelingEmpty:`Sem dados...`,free:`livre`,loadNext:`Próximo`,loadPrevious:`Anterior`,over:`finalizado`,taken:`ocupado`,topbar:{filters:`filtros`,next:`próximo`,prev:`anterior`,today:`hoje`,view:`visualização`},search:`Procurar`,week:`Semana`},Oi={feelingEmpty:`Me siento vacío...`,free:`Libre`,loadNext:`Siguiente`,loadPrevious:`Anterior`,over:`en`,taken:`Tomado`,topbar:{filters:`Filtros`,next:`siguiente`,prev:`anterior`,today:`Hoy`,view:`Vista`},search:`Buscar`,week:`semana`},ki={feelingEmpty:`אני מרגיש ריק...`,free:`חופשי`,loadNext:`הבא`,loadPrevious:`הקודם`,over:`מסתיים`,taken:`תפוס`,topbar:{filters:`מסננים`,next:`הבא`,prev:`הקודם`,today:`היום`,view:`תצוגה`},search:`חיפוש`,week:`שבוע`},Ai={feelingEmpty:`Mă simt gol...`,free:`Liber`,loadNext:`Următorul`,loadPrevious:`Anterior`,over:`Finalizat`,taken:`Ocupat`,topbar:{filters:`Filtre`,next:`Următorul`,prev:`Anterior`,today:`Astăzi`,view:`Vizualizare`},search:`Căutare`,week:`Săptămână`},ji=c(di(),1),Mi=c(fi(),1),Ni=c(pi(),1),Pi=c(mi(),1),Fi=c(hi(),1),Ii=c(gi(),1),Li=c(_i(),1),Ri=c(vi(),1),zi=c(yi(),1),Bi=c(bi(),1),Vi=[{id:`de`,lang:Ci,translateCode:`de-DE`,dayjsTranslations:Ni.default},{id:`en`,lang:Si,translateCode:`en-GB`,dayjsTranslations:ji.default},{id:`es`,lang:Oi,translateCode:`es-ES`,dayjsTranslations:Ri.default},{id:`he`,lang:ki,translateCode:`he_IL`,dayjsTranslations:Bi.default},{id:`ro`,lang:Ai,translateCode:`ro_RO`,dayjsTranslations:zi.default},{id:`fr`,lang:Ti,translateCode:`fr-FR`,dayjsTranslations:Fi.default},{id:`it`,lang:Ei,translateCode:`it-IT`,dayjsTranslations:Ii.default},{id:`pl`,lang:xi,translateCode:`pl-PL`,dayjsTranslations:Mi.default},{id:`pt-BR`,lang:Di,translateCode:`pt-BR`,dayjsTranslations:Li.default},{id:`lt`,lang:wi,translateCode:`lt-LT`,dayjsTranslations:Pi.default},{id:`de`,lang:Ci,translateCode:`de-DE`,dayjsTranslations:Ni.default}],Hi=new class{locales=Vi;getLocales(){return this.locales}addLocales(e){this.locales.push(e)}},Ui=(0,l.createContext)({currentLocale:Hi.getLocales().filter(e=>e.id===`en`)[0]}),Wi=({children:e,lang:t,translations:n})=>{let[r,i]=(0,l.useState)(Hi.getLocales().filter(e=>e.id===`en`)[0]);return(0,l.useEffect)(()=>{let e=Hi.locales.map(e=>{let t=e;return n?.forEach(n=>{e.id===n.id&&(t=n)}),t})?.find(e=>e.id===t);e&&(i(e),f.default.locale(e.dayjsTranslations))},[n,t]),(0,u.jsx)(Ui.Provider,{value:{currentLocale:r},children:e})},Gi=()=>(0,l.useContext)(Ui).currentLocale.lang,Ki=e=>(0,u.jsxs)(`svg`,{id:`Layer_1`,xmlns:`http://www.w3.org/2000/svg`,xmlnsXlink:`http://www.w3.org/1999/xlink`,viewBox:`0 0 514 440`,...e,children:[(0,u.jsxs)(`defs`,{children:[(0,u.jsx)(`style`,{children:`.cls-1{fill:#fff;}.cls-2{fill:#dbf0fd;}.cls-3{fill:#1c222f;}.cls-4{fill:url(#radial-gradient);}`}),(0,u.jsxs)(`radialGradient`,{id:`radial-gradient`,cx:256.33,cy:218.64,fx:256.33,fy:218.64,r:206.09,gradientUnits:`userSpaceOnUse`,children:[(0,u.jsx)(`stop`,{offset:.47,stopColor:`#ccc`}),(0,u.jsx)(`stop`,{offset:.49,stopColor:`#ccc`,stopOpacity:.95}),(0,u.jsx)(`stop`,{offset:.59,stopColor:`#ccc`,stopOpacity:.67}),(0,u.jsx)(`stop`,{offset:.69,stopColor:`#ccc`,stopOpacity:.43}),(0,u.jsx)(`stop`,{offset:.78,stopColor:`#ccc`,stopOpacity:.24}),(0,u.jsx)(`stop`,{offset:.87,stopColor:`#ccc`,stopOpacity:.11}),(0,u.jsx)(`stop`,{offset:.94,stopColor:`#ccc`,stopOpacity:.03}),(0,u.jsx)(`stop`,{offset:1,stopColor:`#ccc`,stopOpacity:0})]})]}),(0,u.jsx)(`path`,{className:`cls-4`,d:`m462.42,66.49v-1h-2.13V12.55h-1v52.94h-49.92V12.55h-1v52.94h-49.81V12.55h-1v52.94h-49.92V12.55h-1v52.94h-49.81V12.55h-1v52.94h-49.92V12.55h-1v52.94h-49.81V12.55h-1v52.94h-49.92V12.55h-1v52.94h-49.81V12.55h-1v52.94h-2.13v1h2.13v49.92h-2.13v1h2.13v49.81h-2.13v1h2.13v49.92h-2.13v1h2.13v49.81h-2.13v1h2.13v49.92h-2.13v1h2.13v49.81h-2.13v1h2.13v53.06h1v-53.06h49.81v53.06h1v-53.06h49.92v53.06h1v-53.06h49.81v53.06h1v-53.06h49.92v53.06h1v-53.06h49.81v53.06h1v-53.06h49.92v53.06h1v-53.06h49.81v53.06h1v-53.06h49.92v53.06h1v-53.06h2.13v-1h-2.13v-49.81h2.13v-1h-2.13v-49.92h2.13v-1h-2.13v-49.81h2.13v-1h-2.13v-49.92h2.13v-1h-2.13v-49.81h2.13v-1h-2.13v-49.92h2.13Zm-54.06,0v49.92h-49.81v-49.92h49.81Zm-152.54,151.65h-49.92v-49.92h49.92v49.92Zm1-49.92h49.81v49.92h-49.81v-49.92Zm-51.92,49.92h-49.81v-49.92h49.81v49.92Zm0,1v49.81h-49.81v-49.81h49.81Zm1,0h49.92v49.81h-49.92v-49.81Zm50.92,0h49.81v49.81h-49.81v-49.81Zm50.81,0h49.92v49.81h-49.92v-49.81Zm0-1v-49.92h49.92v49.92h-49.92Zm0-50.92v-49.81h49.92v49.81h-49.92Zm-1,0h-49.81v-49.81h49.81v49.81Zm-50.81,0h-49.92v-49.81h49.92v49.81Zm-50.92,0h-49.81v-49.81h49.81v49.81Zm-50.81,0h-49.92v-49.81h49.92v49.81Zm0,1v49.92h-49.92v-49.92h49.92Zm0,50.92v49.81h-49.92v-49.81h49.92Zm0,50.81v49.92h-49.92v-49.92h49.92Zm1,0h49.81v49.92h-49.81v-49.92Zm50.81,0h49.92v49.92h-49.92v-49.92Zm50.92,0h49.81v49.92h-49.81v-49.92Zm50.81,0h49.92v49.92h-49.92v-49.92Zm50.92,0h49.81v49.92h-49.81v-49.92Zm0-1v-49.81h49.81v49.81h-49.81Zm0-50.81v-49.92h49.81v49.92h-49.81Zm0-50.92v-49.81h49.81v49.81h-49.81Zm-1-100.73v49.92h-49.92v-49.92h49.92Zm-50.92,0v49.92h-49.81v-49.92h49.81Zm-50.81,0v49.92h-49.92v-49.92h49.92Zm-50.92,0v49.92h-49.81v-49.92h49.81Zm-50.81,0v49.92h-49.92v-49.92h49.92Zm-100.73,0h49.81v49.92h-49.81v-49.92Zm0,50.92h49.81v49.81h-49.81v-49.81Zm0,50.81h49.81v49.92h-49.81v-49.92Zm0,50.92h49.81v49.81h-49.81v-49.81Zm0,50.81h49.81v49.92h-49.81v-49.92Zm0,100.73v-49.81h49.81v49.81h-49.81Zm50.81,0v-49.81h49.92v49.81h-49.92Zm50.92,0v-49.81h49.81v49.81h-49.81Zm50.81,0v-49.81h49.92v49.81h-49.92Zm50.92,0v-49.81h49.81v49.81h-49.81Zm50.81,0v-49.81h49.92v49.81h-49.92Zm50.92,0v-49.81h49.81v49.81h-49.81Zm100.73,0h-49.92v-49.81h49.92v49.81Zm0-50.81h-49.92v-49.92h49.92v49.92Zm0-50.92h-49.92v-49.81h49.92v49.81Zm0-50.81h-49.92v-49.92h49.92v49.92Zm0-50.92h-49.92v-49.81h49.92v49.81Zm0-50.81h-49.92v-49.92h49.92v49.92Z`}),(0,u.jsx)(`path`,{className:`cls-1`,d:`m418.99,155.87l-48.04,18.79v108.18h-227.53v-108.18l-48.04-18.79,38.34-27.86,42.94,13.48h161.03l42.94-13.48,38.34,27.86Zm-229.89-87.54c2.6-2.6,4.23-5.54,4.56-7.85,2.63,1.44,5.25,1.63,6.66.22,1.41-1.42,1.22-4.04-.23-6.66,2.31-.34,5.25-1.97,7.84-4.58,4.09-4.1,5.79-9.04,3.8-11.04-2-2-6.94-.29-11.03,3.81-2.42,2.42-3.99,5.13-4.47,7.35-3.13-2.38-6.62-3.01-8.33-1.29s-1.08,5.21,1.31,8.33c-2.23.48-4.93,2.06-7.35,4.48-4.09,4.1-5.79,9.04-3.8,11.04,2,2,6.94.29,11.03-3.81Zm10.82-2.58c1.28,1.28,3.55,1.1,5.06-.41,1.51-1.51,1.69-3.77.41-5.06-1.28-1.28-3.55-1.1-5.06.41-1.51,1.51-1.69,3.77-.41,5.06Z`}),(0,u.jsx)(`path`,{className:`cls-2`,d:`m251.22,145.7c-.21-.72.21-1.48.93-1.68.72-.21,1.48.21,1.68.93.75,2.63,1.57,5.34,2.43,8.06.23.72-.17,1.48-.89,1.71-.14.04-.28.06-.41.06-.58,0-1.11-.37-1.3-.95-.87-2.74-1.69-5.48-2.46-8.13Zm-3.07-25.31c-.48-2.83-.87-5.63-1.17-8.3-.08-.75-.76-1.29-1.5-1.2-.75.08-1.28.76-1.2,1.5.31,2.72.71,5.56,1.19,8.45.11.66.69,1.13,1.34,1.13.07,0,.15,0,.23-.02.74-.12,1.24-.83,1.12-1.57Zm-3.2-15.22s.04,0,.06,0c.75-.03,1.33-.67,1.3-1.42-.07-1.55-.1-3.07-.1-4.53,0-1.31.03-2.58.08-3.81.03-.75-.55-1.39-1.3-1.42-.72-.02-1.39.55-1.42,1.3-.06,1.27-.08,2.57-.08,3.92,0,1.5.04,3.07.11,4.65.03.73.63,1.3,1.36,1.3Zm.6-16.88c.08.01.15.02.22.02.65,0,1.23-.47,1.34-1.14.47-2.88,1.14-5.56,1.98-7.97.25-.71-.13-1.49-.84-1.73-.71-.25-1.49.13-1.73.84-.89,2.56-1.6,5.39-2.1,8.42-.12.74.38,1.44,1.12,1.56Zm3.46,49.2c.16.62.71,1.03,1.32,1.03.11,0,.22-.01.33-.04.73-.18,1.17-.92.99-1.65-.7-2.78-1.35-5.53-1.91-8.19-.16-.74-.88-1.2-1.61-1.05-.73.16-1.2.88-1.05,1.61.57,2.69,1.23,5.48,1.94,8.28Zm16.4-73.89c.64-.08,1.28-.09,1.95-.12,1.95,0,3.88.34,5.75,1.02.15.06.31.08.46.08.56,0,1.08-.34,1.28-.9.26-.71-.11-1.49-.82-1.74-2.16-.78-4.41-1.18-6.67-1.18h0c-.76,0-1.52.05-2.27.14-.75.09-1.28.77-1.19,1.51.09.75.77,1.28,1.51,1.19Zm-16.95,29.4c-.25.71.12,1.49.83,1.74,2.87,1.01,5.66,1.82,8.28,2.4.1.02.2.03.3.03.62,0,1.19-.43,1.33-1.07.16-.73-.3-1.46-1.03-1.62-2.51-.56-5.19-1.34-7.96-2.31-.71-.25-1.49.12-1.74.83Zm35-17.62c.16.61.71,1.01,1.31,1.01.12,0,.24-.02.36-.05.73-.2,1.15-.94.96-1.67-.78-2.9-2.34-5.61-4.5-7.85-.52-.54-1.39-.56-1.92-.03-.54.52-.56,1.38-.03,1.92,1.84,1.9,3.16,4.21,3.83,6.67Zm-9.33,19.12c-2.25.77-4.91,1.12-7.86,1.05-.75-.03-1.38.57-1.4,1.32-.02.75.57,1.38,1.32,1.4.29,0,.57.01.86.01,2.95,0,5.63-.41,7.95-1.2.71-.24,1.09-1.02.84-1.73-.24-.71-1.02-1.09-1.73-.84Zm11-12.44c-.73-.16-1.46.31-1.62,1.04-.62,2.84-1.68,5.23-3.16,7.09-.47.59-.37,1.44.22,1.91.25.2.55.29.84.29.4,0,.8-.18,1.07-.51,1.74-2.19,2.98-4.95,3.68-8.2.16-.73-.31-1.46-1.04-1.62Zm-33.61-9.51c.44,0,.86-.21,1.13-.6,1.58-2.34,3.44-4.23,5.51-5.63.62-.42.79-1.27.37-1.89-.42-.62-1.27-.79-1.89-.37-2.37,1.6-4.47,3.74-6.25,6.36-.42.62-.26,1.47.36,1.89.23.16.5.23.76.23Zm-17.85,15.17c2.56,1.38,5.14,2.66,7.67,3.8.18.08.37.12.56.12.52,0,1.01-.3,1.24-.8.31-.68,0-1.49-.68-1.8-2.47-1.11-4.99-2.36-7.5-3.72-.66-.36-1.49-.11-1.84.55-.36.66-.11,1.49.55,1.84Zm-25.71-38.23c4.09-4.1-4.68,1.35-6.68-.64-2-2,3.54-10.69-.56-6.58-4.09,4.1-4.86,7.57-2.87,9.56,2,2,6.01,1.77,10.1-2.34Zm121.24,179.57c0,6.06-4.91,10.97-10.97,10.97s-10.97-4.91-10.97-10.97,4.91-10.97,10.97-10.97,10.97,4.91,10.97,10.97Zm-5.51-.85c0-3.53-2.86-6.38-6.38-6.38s-6.38,2.86-6.38,6.38,2.86,6.38,6.38,6.38,6.38-2.86,6.38-6.38Zm-84.1,31.49c-1.86,1.86-1.86,4.87,0,6.73.93.93,2.15,1.4,3.37,1.4s2.44-.47,3.37-1.39c6.97-6.97,18.31-6.97,25.28,0,1.86,1.86,4.87,1.86,6.73,0,1.86-1.86,1.86-4.87,0-6.73-10.68-10.68-28.06-10.68-38.75,0Zm-47.36-41.78c2.19-1.14,4.69-1.36,7.05-.62,1.43.45,2.96-.35,3.41-1.78.45-1.43-.35-2.96-1.78-3.41-3.74-1.18-7.72-.83-11.2.99-3.48,1.81-6.04,4.87-7.22,8.62-.45,1.43.35,2.96,1.78,3.41.27.09.55.13.82.13,1.16,0,2.23-.74,2.59-1.91.74-2.36,2.35-4.28,4.54-5.42Zm139.73,7.33c.27,0,.55-.04.82-.13,1.43-.45,2.23-1.98,1.78-3.41-2.43-7.72-10.69-12.04-18.41-9.6-1.43.45-2.23,1.98-1.78,3.41.45,1.43,1.98,2.23,3.41,1.78,4.87-1.53,10.06,1.18,11.59,6.05.37,1.16,1.44,1.91,2.59,1.91Zm-144.88,3.81c0-6.06,4.91-10.97,10.97-10.97s10.97,4.91,10.97,10.97-4.91,10.97-10.97,10.97-10.97-4.91-10.97-10.97Zm3.65-.85c0,3.53,2.86,6.38,6.38,6.38s6.38-2.86,6.38-6.38-2.86-6.38-6.38-6.38-6.38,2.86-6.38,6.38Zm18.69-157.72c.91.91,1.93,1.87,3.05,2.85.26.23.58.34.9.34.38,0,.76-.16,1.02-.46.49-.57.44-1.43-.13-1.92-1.07-.94-2.05-1.85-2.91-2.72-.53-.53-1.39-.54-1.92,0-.53.53-.54,1.39,0,1.92Zm16.89,12.95c.22.14.47.21.72.21.45,0,.9-.23,1.16-.64.4-.64.2-1.48-.43-1.87-2.41-1.51-4.75-3.08-6.95-4.67-.61-.44-1.46-.3-1.9.3-.44.61-.3,1.46.3,1.9,2.25,1.62,4.63,3.23,7.1,4.77Zm-25.94-22.7c2-2-4-2-7.43-5.42-3.43-3.43-3-8.98-4.99-6.98-1.99,2-.83,6.39,2.6,9.82,3.43,3.43,7.83,4.58,9.82,2.58Zm137.37,101.16h-78.49c-.09-.25-.18-.52-.27-.77-.24-.71-1.02-1.09-1.73-.84-.67.23-1.03.94-.86,1.61h-79.68l-10.81,12.8h185.72l-13.89-12.8Zm-148.6-93.53c4.09-4.1-4.71,1.02-6.7-.98s3.56-10.35-.53-6.25c-4.09,4.1-5.79,9.04-3.8,11.04,2,2,6.94.29,11.03-3.81Zm211.17,194.3h-29.32v14.55s-209.51.67-218.27-4.49c-7.39-4.36-5.84-98.04-5.84-98.04h-3.42v87.98h-30.68c-10.34,0-18.72,8.38-18.72,18.72h0c0,10.34,8.38,18.72,18.72,18.72h287.53c10.34,0,18.72-8.38,18.72-18.72h0c0-10.34-8.38-18.72-18.72-18.72Z`}),(0,u.jsx)(`path`,{className:`cls-3`,d:`m274.16,260.36c.53.53.53,1.39,0,1.92-.27.27-.61.4-.96.4s-.7-.13-.96-.4c-8.3-8.3-21.8-8.3-30.09,0-.53.53-1.39.53-1.92,0-.53-.53-.53-1.39,0-1.92,9.36-9.36,24.58-9.36,33.94,0Zm-97.05-187.21c-1.35-1.35-1.61-3.53-.71-6.13.78-2.28,2.38-4.7,4.51-6.83,1.93-1.94,4.11-3.42,6.18-4.27-.55-.94-.97-1.91-1.23-2.86-.09-.35-.15-.68-.2-1.01l-5.62-1.9c-.71-.24-1.09-1.01-.85-1.72.24-.71,1.01-1.1,1.72-.85l4.93,1.66c.23-.71.6-1.34,1.11-1.86.52-.52,1.14-.89,1.85-1.12l-1.67-4.92c-.24-.71.14-1.48.85-1.73.71-.24,1.48.14,1.73.85l1.91,5.62c.33.05.67.11,1.02.2.95.25,1.92.68,2.87,1.22.84-2.08,2.33-4.27,4.26-6.19,4.77-4.78,10.34-6.42,12.96-3.82,1.35,1.35,1.61,3.53.71,6.13-.78,2.28-2.38,4.7-4.51,6.83-2.14,2.14-4.61,3.74-6.87,4.52.42,1.1.62,2.18.61,3.18.06,0,.12-.03.18-.03,1.36-.11,2.61.33,3.52,1.23.91.91,1.35,2.16,1.24,3.51-.1,1.28-.69,2.51-1.64,3.47-.96.96-2.19,1.54-3.46,1.65-.14.01-.28.02-.41.02-1.2,0-2.29-.44-3.1-1.25-.91-.91-1.35-2.15-1.24-3.51,0-.06.02-.11.03-.17-.02,0-.05,0-.07,0-.65,0-1.35-.09-2.07-.28-.34-.09-.69-.23-1.03-.36-.77,2.27-2.36,4.74-4.52,6.9-3.25,3.25-6.86,5.05-9.66,5.05-1.32,0-2.46-.4-3.3-1.23Zm24.19-11.45c-.5.5-.81,1.13-.86,1.76-.04.55.11,1.04.45,1.37.33.33.82.5,1.37.45.63-.05,1.26-.36,1.76-.86.5-.5.81-1.13.86-1.76.04-.55-.11-1.04-.45-1.37h0c-.3-.3-.71-.46-1.19-.46-.06,0-.12,0-.18,0-.63.05-1.26.36-1.76.86Zm-3.51-12.55c.31.26.62.52.91.81.82.82,1.52,1.69,2.1,2.58,1.95-.56,4.2-2.01,6.2-4,1.81-1.81,3.22-3.92,3.86-5.79.52-1.52.5-2.76-.06-3.32-1.11-1.11-5.11-.19-9.11,3.81-1.88,1.88-3.27,4.01-3.89,5.91Zm-9.29,3.22c.42,1.6,1.51,3.36,2.98,4.83,1.47,1.47,3.23,2.55,4.83,2.97,1.35.36,2.47.21,3.07-.39,1.25-1.26.5-4.81-2.6-7.9-1.47-1.47-3.23-2.55-4.83-2.97-.49-.13-.95-.19-1.36-.19-.73,0-1.32.2-1.7.58-.6.6-.74,1.72-.38,3.07Zm-9.46,18.86c1.11,1.1,5.11.19,9.11-3.81,1.98-1.98,3.44-4.28,3.99-6.22-.9-.58-1.78-1.27-2.58-2.07-.29-.29-.55-.61-.81-.91-1.88.62-4.04,2.04-5.9,3.9-1.81,1.81-3.22,3.92-3.86,5.79-.52,1.52-.5,2.76.06,3.32Zm136.18,140.83c-.72.23-1.12.99-.89,1.71.23.72.99,1.12,1.71.89,5.58-1.76,11.54,1.36,13.3,6.93.18.58.72.95,1.3.95.14,0,.27-.02.41-.06.72-.23,1.12-.99.89-1.71-2.2-7.01-9.7-10.92-16.71-8.71Zm-110.38,16.16c0,4.27-3.47,7.74-7.74,7.74s-7.74-3.47-7.74-7.74,3.47-7.74,7.74-7.74,7.74,3.47,7.74,7.74Zm-2.72,0c0-2.77-2.25-5.02-5.02-5.02s-5.02,2.25-5.02,5.02,2.25,5.02,5.02,5.02,5.02-2.25,5.02-5.02Zm-3.76-13.57c.71.23,1.48-.17,1.71-.89.23-.72-.17-1.48-.89-1.71-7.01-2.21-14.5,1.71-16.71,8.71-.23.72.17,1.48.89,1.71.14.04.27.06.41.06.58,0,1.11-.37,1.3-.95,1.75-5.58,7.72-8.69,13.3-6.93Zm221.99-58.56c-.06.49-.39.91-.85,1.09l-47.17,18.45v107.25c0,.75-.61,1.36-1.36,1.36h-227.53c-.75,0-1.36-.61-1.36-1.36v-107.25l-47.17-18.45c-.46-.18-.79-.6-.85-1.09-.06-.49.15-.98.55-1.27l38.34-27.86c.35-.25.8-.33,1.21-.2l42.74,13.42h160.61l42.74-13.42c.41-.13.86-.06,1.21.2l38.34,27.86c.4.29.61.78.55,1.27Zm-81.28,17.26h28.6l-28.6-28.53v28.53Zm-161.03,0h158.31v-30.45h-158.31v30.45Zm-23.23-11.91l19.32-19.27-40.15-12.6-35.78,25.99,44.89,17.56,11.71-11.68Zm-8.09,11.91h28.6v-28.53l-28.6,28.53Zm222.88,2.72h-224.81v105.46h224.81v-105.46Zm46.59-20.51l-35.78-25.99-40.14,12.6,31.03,30.95,44.89-17.56Zm-91.14,72.66c0,4.27-3.47,7.74-7.74,7.74s-7.74-3.47-7.74-7.74,3.47-7.74,7.74-7.74,7.74,3.47,7.74,7.74Zm-2.72,0c0-2.77-2.25-5.02-5.02-5.02s-5.02,2.25-5.02,5.02,2.25,5.02,5.02,5.02,5.02-2.25,5.02-5.02Z`})]}),qi=X.div`
121
155
  height: 440px;
122
156
  width: 514px;
123
157
  position: relative;
124
- `,Bi=q.p`
158
+ `,Ji=X.p`
125
159
  position: absolute;
126
160
  top: 75%;
127
161
  left: 50%;
@@ -130,16 +164,16 @@ white-space: nowrap;
130
164
  letter-spacing: 1px;
131
165
  line-height: 1px;
132
166
  color: ${({theme:e})=>e.colors.textPrimary};
133
- `,Vi=()=>{let{feelingEmpty:e}=Li();return(0,u.jsxs)(zi,{children:[(0,u.jsx)(Ri,{}),(0,u.jsx)(Bi,{children:e})]})},Hi=q.div`
167
+ `,Yi=()=>{let{feelingEmpty:e}=Gi();return(0,u.jsxs)(qi,{children:[(0,u.jsx)(Ki,{}),(0,u.jsx)(Ji,{children:e})]})},Xi=X.div`
134
168
  position: relative;
135
169
  display: flex;
136
- `,Ui=q.div`
170
+ `,Zi=X.div`
137
171
  position: relative;
138
172
  margin-left: ${196};
139
173
  display: flex;
140
174
  flex-direction: column;
141
175
  contain: paint;
142
- `,Wi=q.div`
176
+ `,Qi=X.div`
143
177
  width: calc(${({width:e})=>e}px - ${196}px);
144
178
  position: sticky;
145
179
  top: 0;
@@ -148,14 +182,14 @@ white-space: nowrap;
148
182
  display: flex;
149
183
  justify-content: center;
150
184
  align-items: center;
151
- `,Gi={coords:{x:0,y:0},resourceIndex:0,disposition:{taken:{hours:0,minutes:0},free:{hours:0,minutes:0},overtime:{hours:0,minutes:0}}},Ki=({data:e,onTileClick:t,onItemClick:n,toggleTheme:r,topBarWidth:i})=>{let[a,o]=(0,l.useState)(Gi),[s,c]=(0,l.useState)(e),[d,f]=(0,l.useState)(!1),[p,m]=(0,l.useState)(``),{zoom:h,startDate:g,config:{includeTakenHoursOnWeekendsInDayView:_,showTooltip:v,showThemeToggle:y}}=Ir(),b=(0,l.useRef)(null),{page:x,projectsPerPerson:S,totalRowsPerPage:C,rowsPerItem:w,currentPageNum:T,pagesAmount:E,next:ee,previous:te,reset:D}=ni(s),O=(0,l.useRef)((0,vr.default)((e,t,n,r,i)=>{if(!b.current)return;let{left:a,top:s}=b.current.getBoundingClientRect(),{coords:{x:c,y:l},resourceIndex:u,disposition:d}=Xr(t,{x:e.clientX-a,y:e.clientY-s},n,r,i,_);o({coords:{x:c,y:l},resourceIndex:u,disposition:d}),f(!0)},300)),k=(0,l.useRef)((0,vr.default)((e,t)=>{D(),c(e.filter(e=>e.label.title.toLowerCase().includes(t.toLowerCase())))},500)),A=t=>{let n=t.target.value;m(n),k.current.cancel(),k.current(e,n)},j=(0,l.useCallback)(()=>{O.current.cancel(),f(!1),o(Gi)},[]);return(0,l.useEffect)(()=>{let e=e=>O.current(e,g,w,S,h),t=b.current;if(t)return t.addEventListener(`mousemove`,e),t.addEventListener(`mouseleave`,j),()=>{t.removeEventListener(`mousemove`,e),t.removeEventListener(`mouseleave`,j)}},[O,j,S,w,g,h]),(0,l.useEffect)(()=>{p||c(e)},[e,p]),(0,u.jsxs)(Hi,{children:[(0,u.jsx)(Ta,{data:x,pageNum:T,pagesAmount:E,rows:w,onLoadNext:ee,onLoadPrevious:te,searchInputValue:p,onSearchInputChange:A,onItemClick:n}),(0,u.jsxs)(Ui,{children:[(0,u.jsx)(Ga,{zoom:h,topBarWidth:i,showThemeToggle:y,toggleTheme:r}),e.length?(0,u.jsx)(Hr,{data:x,zoom:h,rows:C,ref:b,onTileClick:t}):(0,u.jsx)(Wi,{width:i,children:(0,u.jsx)(Vi,{})}),v&&d&&a?.resourceIndex>-1&&(0,u.jsx)(uo,{tooltipData:a,zoom:h})]})]})},qi=`
185
+ `,$i={coords:{x:0,y:0},resourceIndex:0,disposition:{taken:{hours:0,minutes:0},free:{hours:0,minutes:0},overtime:{hours:0,minutes:0}}},ea=({data:e,onTileClick:t,onItemClick:n,onCellClick:r,onCellRangeSelect:i,onTileMove:a,selectedCell:o,toggleTheme:s,topBarWidth:c})=>{let[d,f]=(0,l.useState)($i),[p,m]=(0,l.useState)(e),[h,g]=(0,l.useState)(!1),[_,v]=(0,l.useState)(``),{zoom:y,startDate:b,config:{includeTakenHoursOnWeekendsInDayView:x,showTooltip:S,showThemeToggle:C}}=Ir(),w=(0,l.useRef)(null),{page:T,projectsPerPerson:E,totalRowsPerPage:D,rowsPerItem:O,currentPageNum:ee,pagesAmount:k,next:A,previous:j,reset:te}=ui(p),M=(0,l.useRef)((0,vr.default)((e,t,n,r,i)=>{if(!w.current)return;let{left:a,top:o}=w.current.getBoundingClientRect(),{coords:{x:s,y:c},resourceIndex:l,disposition:u}=ii(t,{x:e.clientX-a,y:e.clientY-o},n,r,i,x);f({coords:{x:s,y:c},resourceIndex:l,disposition:u}),g(!0)},300)),N=(0,l.useRef)((0,vr.default)((e,t)=>{te(),m(e.filter(e=>e.label.title.toLowerCase().includes(t.toLowerCase())))},500)),P=t=>{let n=t.target.value;v(n),N.current.cancel(),N.current(e,n)},F=(0,l.useCallback)(()=>{M.current.cancel(),g(!1),f($i)},[]);return(0,l.useEffect)(()=>{let e=e=>M.current(e,b,O,E,y),t=w.current;if(t)return t.addEventListener(`mousemove`,e),t.addEventListener(`mouseleave`,F),()=>{t.removeEventListener(`mousemove`,e),t.removeEventListener(`mouseleave`,F)}},[M,F,E,O,b,y]),(0,l.useEffect)(()=>{_||m(e)},[e,_]),(0,u.jsxs)(Xi,{children:[(0,u.jsx)(Na,{data:T,pageNum:ee,pagesAmount:k,rows:O,onLoadNext:A,onLoadPrevious:j,searchInputValue:_,onSearchInputChange:P,onItemClick:n}),(0,u.jsxs)(Zi,{children:[(0,u.jsx)($a,{zoom:y,topBarWidth:c,showThemeToggle:C,toggleTheme:s}),e.length?(0,u.jsx)(Xr,{data:T,zoom:y,rows:D,ref:w,onTileClick:t,onCellClick:r,onCellRangeSelect:i,onTileMove:a,selectedCell:o}):(0,u.jsx)(Qi,{width:c,children:(0,u.jsx)(Yi,{})}),S&&h&&d?.resourceIndex>-1&&(0,u.jsx)(yo,{tooltipData:d,zoom:y})]})]})},ta=`
152
186
  background: none;
153
187
  outline: none;
154
188
  border: none;
155
189
  font-size: 100%;
156
190
  line-height: 1.15
157
191
  margin: 0
158
- `,Ji=q.div`
192
+ `,na=X.div`
159
193
  width: calc(${({width:e})=>e}px - ${196}px);
160
194
  position: sticky;
161
195
  top: 0;
@@ -167,11 +201,11 @@ white-space: nowrap;
167
201
  padding: 0.625rem 1rem;
168
202
  background-color: ${({theme:e})=>e.colors.background};
169
203
  z-index: 3;
170
- `,Yi=q.div`
204
+ `,ra=X.div`
171
205
  display: flex;
172
206
  gap: 1.875rem;
173
- `,Xi=q.button`
174
- ${qi};
207
+ `,ia=X.button`
208
+ ${ta};
175
209
  display: flex;
176
210
  align-items: center;
177
211
  gap: 0.25rem;
@@ -181,8 +215,8 @@ white-space: nowrap;
181
215
  :not(:disabled) {
182
216
  cursor: pointer;
183
217
  }
184
- `,Zi=q.button`
185
- ${qi};
218
+ `,aa=X.button`
219
+ ${ta};
186
220
  position: relative;
187
221
  font-weight: 600;
188
222
  cursor: pointer;
@@ -203,49 +237,49 @@ white-space: nowrap;
203
237
  &::after {
204
238
  right: -1.125rem;
205
239
  }
206
- `,Qi=q.div`
240
+ `,oa=X.div`
207
241
  display: flex;
208
242
  align-items: center;
209
243
  gap: 0.5rem;
210
244
  font-weight: 600;
211
245
  font-size: 0.875rem;
212
246
  color: ${({theme:e})=>e.colors.textPrimary};
213
- `,$i=q.div`
247
+ `,sa=X.div`
214
248
  display: flex;
215
- `,ea=q.div`
249
+ `,ca=X.div`
216
250
  display: flex;
217
251
  align-items: "center";
218
252
  gap: 1.25rem;
219
- `,ta=({width:e,showThemeToggle:t,toggleTheme:n})=>{let{topbar:r}=Li(),{data:i,config:a,handleGoNext:o,handleGoPrev:s,handleGoToday:c,zoomIn:l,zoomOut:d,isNextZoom:f,isPrevZoom:p,handleFilterData:m,onClearFilterData:h}=Ir(),{colors:g}=K(),{filterButtonState:_=-1}=a;return(0,u.jsxs)(Ji,{width:e,children:[(0,u.jsx)($i,{children:_>=0&&(0,u.jsxs)(aa,{variant:_?`filled`:`outlined`,iconName:`filter`,width:`16`,height:`16`,onClick:m,children:[r.filters,!!_&&(0,u.jsx)(`span`,{onClick:e=>{e.stopPropagation(),h?.()},children:(0,u.jsx)(Q,{iconName:`close`,height:`16`,width:`16`,fill:g.textSecondary})})]})}),(0,u.jsxs)(Yi,{children:[(0,u.jsxs)(Xi,{disabled:!i?.length,onClick:s,children:[(0,u.jsx)(Q,{iconName:`arrowLeft`,height:`15`,fill:g.textPrimary}),r.prev]}),(0,u.jsx)(Zi,{onClick:c,children:r.today}),(0,u.jsxs)(Xi,{disabled:!i?.length,onClick:o,children:[r.next,(0,u.jsx)(Q,{iconName:`arrowRight`,height:`15`,fill:g.textPrimary})]})]}),(0,u.jsxs)(ea,{children:[t&&(0,u.jsx)(ho,{toggleTheme:n}),(0,u.jsxs)(Qi,{children:[r.view,(0,u.jsx)(aa,{isDisabled:!p,onClick:d,isFullRounded:!0,iconName:`subtract`,width:`14`}),(0,u.jsx)(aa,{isDisabled:!f,onClick:l,isFullRounded:!0,iconName:`add`,width:`14`})]})]})]})},na={add:e=>(0,u.jsx)(`svg`,{width:24,height:24,viewBox:`0 0 24 24`,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,u.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M12 5.25C12.4142 5.25 12.75 5.58579 12.75 6V11.25H18C18.4142 11.25 18.75 11.5858 18.75 12C18.75 12.4142 18.4142 12.75 18 12.75H12.75V18C12.75 18.4142 12.4142 18.75 12 18.75C11.5858 18.75 11.25 18.4142 11.25 18V12.75H6C5.58579 12.75 5.25 12.4142 5.25 12C5.25 11.5858 5.58579 11.25 6 11.25H11.25V6C11.25 5.58579 11.5858 5.25 12 5.25Z`})}),subtract:e=>(0,u.jsx)(`svg`,{width:24,height:24,viewBox:`0 0 24 24`,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,u.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M5.25 12C5.25 11.5858 5.58579 11.25 6 11.25H18C18.4142 11.25 18.75 11.5858 18.75 12C18.75 12.4142 18.4142 12.75 18 12.75H6C5.58579 12.75 5.25 12.4142 5.25 12Z`})}),filter:e=>(0,u.jsxs)(`svg`,{width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...e,children:[(0,u.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M5.33008 2.76001C4.65781 2.76001 4.06006 3.31031 4.06006 4.13V6.45001C4.06006 6.6129 4.11982 6.88231 4.25809 7.19052C4.39356 7.49249 4.5738 7.76311 4.75036 7.93967L4.76365 7.9533L8.60367 11.9933C8.61628 12.0066 8.6284 12.0203 8.64001 12.0345C8.90276 12.3549 9.14136 12.7775 9.31532 13.2131C9.48804 13.6456 9.62006 14.1484 9.62006 14.63V19.98C9.62006 20.9693 10.7551 21.5824 11.6002 21.0655L13.0033 20.1599L13.0205 20.1491C13.1208 20.0882 13.2665 19.9358 13.3909 19.6966C13.5132 19.4611 13.5701 19.2272 13.5701 19.07C13.5701 18.6558 13.9059 18.32 14.3201 18.32C14.7343 18.32 15.0701 18.6558 15.0701 19.07C15.0701 19.5228 14.9269 19.9939 14.7218 20.3885C14.5202 20.7761 14.2142 21.1755 13.8093 21.425L12.4068 22.3302L12.3945 22.3379C10.6202 23.435 8.12006 22.2286 8.12006 19.98V14.63C8.12006 14.4016 8.05207 14.0944 7.92229 13.7694C7.79829 13.4589 7.63905 13.1851 7.49575 13.0049L3.68249 8.9931C3.3523 8.66063 3.08013 8.22943 2.8895 7.80449C2.70028 7.38271 2.56006 6.89712 2.56006 6.45001V4.13C2.56006 2.5297 3.78235 1.26001 5.33008 1.26001H18.67C20.1942 1.26001 21.4401 2.50577 21.4401 4.03V6.25C21.4401 6.79751 21.2722 7.36158 21.0548 7.83769C20.8366 8.31586 20.5373 8.77344 20.2104 9.10034C19.9175 9.39323 19.4426 9.39323 19.1497 9.10034C18.8568 8.80744 18.8568 8.33257 19.1497 8.03968C19.3228 7.86657 19.5285 7.56915 19.6903 7.21482C19.853 6.85843 19.9401 6.51249 19.9401 6.25V4.03C19.9401 3.33423 19.3658 2.76001 18.67 2.76001H5.33008Z`,fill:`currentColor`}),(0,u.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M16.0701 10.87C14.717 10.87 13.6201 11.9669 13.6201 13.32C13.6201 14.6731 14.717 15.77 16.0701 15.77C17.4232 15.77 18.5201 14.6731 18.5201 13.32C18.5201 11.9669 17.4232 10.87 16.0701 10.87ZM12.1201 13.32C12.1201 11.1385 13.8885 9.37 16.0701 9.37C18.2516 9.37 20.0201 11.1385 20.0201 13.32C20.0201 15.5015 18.2516 17.27 16.0701 17.27C13.8886 17.27 12.1201 15.5015 12.1201 13.32Z`,fill:`currentColor`}),(0,u.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M18.3397 15.5897C18.6326 15.2968 19.1075 15.2968 19.4004 15.5897L20.4004 16.5897C20.6933 16.8826 20.6933 17.3574 20.4004 17.6503C20.1075 17.9432 19.6326 17.9432 19.3397 17.6503L18.3397 16.6503C18.0468 16.3574 18.0468 15.8826 18.3397 15.5897Z`,fill:`currentColor`})]}),arrowLeft:e=>(0,u.jsx)(`svg`,{width:24,height:24,viewBox:`0 0 24 24`,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,u.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M10.1003 5.39966C10.3932 5.69256 10.3932 6.16743 10.1003 6.46032L5.31065 11.25H20.5C20.9142 11.25 21.25 11.5858 21.25 12C21.25 12.4142 20.9142 12.75 20.5 12.75H5.31067L10.1003 17.5397C10.3932 17.8326 10.3932 18.3074 10.1003 18.6003C9.80744 18.8932 9.33256 18.8932 9.03967 18.6003L2.96967 12.5303C2.82902 12.3897 2.75 12.1989 2.75 12C2.75 11.8011 2.82902 11.6103 2.96967 11.4697L9.03967 5.39966C9.33256 5.10677 9.80744 5.10677 10.1003 5.39966Z`})}),arrowRight:e=>(0,u.jsx)(`svg`,{width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,u.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M13.8997 5.39966C14.1926 5.10677 14.6674 5.10677 14.9603 5.39966L21.0303 11.4697C21.171 11.6103 21.25 11.8011 21.25 12C21.25 12.1989 21.171 12.3897 21.0303 12.5303L14.9603 18.6003C14.6674 18.8932 14.1926 18.8932 13.8997 18.6003C13.6068 18.3074 13.6068 17.8326 13.8997 17.5397L18.6893 12.75H3.5C3.08579 12.75 2.75 12.4142 2.75 12C2.75 11.5858 3.08579 11.25 3.5 11.25H18.6893L13.8997 6.46032C13.6068 6.16743 13.6068 5.69256 13.8997 5.39966Z`})}),defaultAvatar:e=>(0,u.jsx)(`svg`,{width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,u.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M12 2.75C6.89137 2.75 2.75 6.89137 2.75 12C2.75 14.2736 3.57027 16.3556 4.93102 17.9662C5.29334 17.2869 5.86897 16.6773 6.61129 16.1778L6.61502 16.1753L6.61503 16.1753C8.13359 15.1666 10.0914 14.685 12.0075 14.685C13.9234 14.685 15.8774 15.1665 17.3871 16.1767L17.3887 16.1778C18.131 16.6773 18.7067 17.2869 19.069 17.9662C20.4297 16.3556 21.25 14.2736 21.25 12C21.25 6.89137 17.1086 2.75 12 2.75ZM13.6371 22.6261C18.7972 21.8377 22.75 17.3805 22.75 12C22.75 6.06294 17.9371 1.25 12 1.25C6.06294 1.25 1.25 6.06294 1.25 12C1.25 17.9371 6.06294 22.75 12 22.75C12.1855 22.75 12.37 22.7453 12.5532 22.736C12.8268 22.7221 13.0977 22.698 13.3655 22.6641C13.4564 22.6526 13.5469 22.6399 13.6371 22.6261ZM17.9216 19.1C17.7538 18.5356 17.323 17.9417 16.5521 17.4228C15.3419 16.6133 13.6963 16.185 12.0075 16.185C10.3195 16.185 8.66811 16.613 7.44686 17.4235C6.67666 17.9422 6.24614 18.5359 6.07838 19.1C7.06079 19.9227 8.21266 20.5433 9.47543 20.9013C10.2779 21.1284 11.1248 21.25 12 21.25C12.8752 21.25 13.7221 21.1284 14.5246 20.9013C15.7873 20.5433 16.9392 19.9227 17.9216 19.1ZM12 6.98C10.5957 6.98 9.47 8.11272 9.47 9.51C9.47 10.8588 10.5236 11.9585 11.8587 12.0284C11.9506 12.0209 12.0487 12.0202 12.1439 12.0283C13.4732 11.9572 14.5212 10.8618 14.53 9.50795C14.5289 8.1131 13.3951 6.98 12 6.98ZM7.97 9.51C7.97 7.28728 9.7643 5.48 12 5.48C14.2242 5.48 16.03 7.28579 16.03 9.51V9.51424H16.03C16.0177 11.6826 14.3122 13.4557 12.1456 13.5296C12.1016 13.5311 12.0575 13.5287 12.0139 13.5225C12.0182 13.5231 12.0191 13.523 12.0163 13.5228C12.0137 13.5227 12.0094 13.5225 12.0037 13.5225C11.9915 13.5225 11.9801 13.5233 11.973 13.5242C11.9337 13.5291 11.8941 13.5309 11.8544 13.5296C9.69161 13.4558 7.97 11.6855 7.97 9.51Z`,fill:`#777`})}),calendarWarning:e=>(0,u.jsxs)(`svg`,{width:14,height:14,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...e,children:[(0,u.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M1.3125 2.91536C1.3125 2.02941 2.03071 1.3112 2.91667 1.3112H11.0833C11.9693 1.3112 12.6875 2.02941 12.6875 2.91536V11.082C12.6875 11.968 11.9693 12.6862 11.0833 12.6862H2.91667C2.03071 12.6862 1.3125 11.968 1.3125 11.082V2.91536ZM2.91667 2.1862C2.51396 2.1862 2.1875 2.51266 2.1875 2.91536V11.082C2.1875 11.4847 2.51396 11.8112 2.91667 11.8112H11.0833C11.486 11.8112 11.8125 11.4847 11.8125 11.082V2.91536C11.8125 2.51266 11.486 2.1862 11.0833 2.1862H2.91667Z`,fill:`#EF4444`}),(0,u.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M4.375 0.144531C4.61662 0.144531 4.8125 0.340407 4.8125 0.582031V3.20703C4.8125 3.44866 4.61662 3.64453 4.375 3.64453C4.13338 3.64453 3.9375 3.44866 3.9375 3.20703V0.582031C3.9375 0.340407 4.13338 0.144531 4.375 0.144531Z`,fill:`#EF4444`}),(0,u.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M9.625 0.144531C9.86662 0.144531 10.0625 0.340407 10.0625 0.582031V3.20703C10.0625 3.44866 9.86662 3.64453 9.625 3.64453C9.38338 3.64453 9.1875 3.44866 9.1875 3.20703V0.582031C9.1875 0.340407 9.38338 0.144531 9.625 0.144531Z`,fill:`#EF4444`}),(0,u.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M9.05936 6.01326C9.23021 6.18411 9.23021 6.46112 9.05936 6.63198L5.55936 10.132C5.3885 10.3028 5.11149 10.3028 4.94064 10.132C4.76979 9.96112 4.76979 9.68411 4.94064 9.51326L8.44064 6.01326C8.6115 5.8424 8.8885 5.8424 9.05936 6.01326Z`,fill:`#EF4444`}),(0,u.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M9.05936 10.132C8.8885 10.3028 8.61149 10.3028 8.44064 10.132L4.94064 6.63198C4.76979 6.46112 4.76979 6.18411 4.94064 6.01326C5.11149 5.8424 5.3885 5.8424 5.55936 6.01326L9.05936 9.51326C9.23021 9.68411 9.23021 9.96112 9.05936 10.132Z`,fill:`#EF4444`}),(0,u.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M12.6875 4.66536C12.6875 4.90699 12.4916 5.10286 12.25 5.10286H1.75C1.50838 5.10286 1.3125 4.90699 1.3125 4.66536C1.3125 4.42374 1.50838 4.22786 1.75 4.22786H12.25C12.4916 4.22786 12.6875 4.42374 12.6875 4.66536Z`,fill:`#EF4444`})]}),calendarFree:e=>(0,u.jsxs)(`svg`,{width:14,height:14,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...e,children:[(0,u.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M1.3125 2.91536C1.3125 2.02941 2.03071 1.3112 2.91667 1.3112H11.0833C11.9693 1.3112 12.6875 2.02941 12.6875 2.91536V11.082C12.6875 11.968 11.9693 12.6862 11.0833 12.6862H2.91667C2.03071 12.6862 1.3125 11.968 1.3125 11.082V2.91536ZM2.91667 2.1862C2.51396 2.1862 2.1875 2.51266 2.1875 2.91536V11.082C2.1875 11.4847 2.51396 11.8112 2.91667 11.8112H11.0833C11.486 11.8112 11.8125 11.4847 11.8125 11.082V2.91536C11.8125 2.51266 11.486 2.1862 11.0833 2.1862H2.91667Z`,fill:`#278904`}),(0,u.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M4.375 0.144531C4.61662 0.144531 4.8125 0.340407 4.8125 0.582031V3.20703C4.8125 3.44866 4.61662 3.64453 4.375 3.64453C4.13338 3.64453 3.9375 3.44866 3.9375 3.20703V0.582031C3.9375 0.340407 4.13338 0.144531 4.375 0.144531Z`,fill:`#278904`}),(0,u.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M9.625 0.144531C9.86662 0.144531 10.0625 0.340407 10.0625 0.582031V3.20703C10.0625 3.44866 9.86662 3.64453 9.625 3.64453C9.38338 3.64453 9.1875 3.44866 9.1875 3.20703V0.582031C9.1875 0.340407 9.38338 0.144531 9.625 0.144531Z`,fill:`#278904`}),(0,u.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M12.6875 4.66536C12.6875 4.90699 12.4916 5.10286 12.25 5.10286H1.75C1.50838 5.10286 1.3125 4.90699 1.3125 4.66536C1.3125 4.42374 1.50838 4.22786 1.75 4.22786H12.25C12.4916 4.22786 12.6875 4.42374 12.6875 4.66536Z`,fill:`#278904`})]}),arrowDown:e=>(0,u.jsx)(`svg`,{width:17,height:16,viewBox:`0 0 17 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,u.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M4.09957 9.26775C4.29483 9.07249 4.61142 9.07249 4.80668 9.26775L7.9998 12.4609L7.9998 2.33463C7.9998 2.05848 8.22365 1.83463 8.4998 1.83463C8.77594 1.83463 8.9998 2.05848 8.9998 2.33463L8.9998 12.4609L12.1929 9.26775C12.3882 9.07249 12.7047 9.07249 12.9 9.26775C13.0953 9.46301 13.0953 9.77959 12.9 9.97486L8.85334 14.0215C8.75958 14.1153 8.6324 14.168 8.49979 14.168C8.36718 14.168 8.24001 14.1153 8.14624 14.0215L4.09957 9.97486C3.90431 9.77959 3.90431 9.46301 4.09957 9.26775Z`})}),arrowUp:e=>(0,u.jsx)(`svg`,{width:16,height:16,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,u.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M3.59957 6.73486C3.40431 6.5396 3.40431 6.22301 3.59957 6.02775L7.64624 1.98108C7.74001 1.88732 7.86718 1.83464 7.99979 1.83464C8.1324 1.83464 8.25958 1.88732 8.35334 1.98108L12.4 6.02775C12.5953 6.22301 12.5953 6.5396 12.4 6.73486C12.2047 6.93012 11.8882 6.93012 11.6929 6.73486L8.4998 3.54175L8.4998 13.668C8.4998 13.9441 8.27594 14.168 7.9998 14.168C7.72365 14.168 7.4998 13.9441 7.4998 13.668L7.4998 3.54174L4.30668 6.73486C4.11142 6.93012 3.79483 6.93012 3.59957 6.73486Z`})}),search:e=>(0,u.jsx)(`svg`,{width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,u.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M11 4.75C7.54822 4.75 4.75 7.54822 4.75 11C4.75 14.4518 7.54822 17.25 11 17.25C14.4518 17.25 17.25 14.4518 17.25 11C17.25 7.54822 14.4518 4.75 11 4.75ZM3.25 11C3.25 6.71979 6.71979 3.25 11 3.25C15.2802 3.25 18.75 6.71979 18.75 11C18.75 12.87 18.0877 14.5853 16.9848 15.9242L21.5303 20.4697C21.8232 20.7626 21.8232 21.2374 21.5303 21.5303C21.2374 21.8232 20.7626 21.8232 20.4697 21.5303L15.9242 16.9848C14.5853 18.0877 12.87 18.75 11 18.75C6.71979 18.75 3.25 15.2802 3.25 11Z`,fill:`#777777`})}),close:e=>(0,u.jsx)(`svg`,{width:16,height:16,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,u.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M3.64645 3.64645C3.84171 3.45118 4.15829 3.45118 4.35355 3.64645L8 7.29289L11.6464 3.64645C11.8417 3.45118 12.1583 3.45118 12.3536 3.64645C12.5488 3.84171 12.5488 4.15829 12.3536 4.35355L8.70711 8L12.3536 11.6464C12.5488 11.8417 12.5488 12.1583 12.3536 12.3536C12.1583 12.5488 11.8417 12.5488 11.6464 12.3536L8 8.70711L4.35355 12.3536C4.15829 12.5488 3.84171 12.5488 3.64645 12.3536C3.45118 12.1583 3.45118 11.8417 3.64645 11.6464L7.29289 8L3.64645 4.35355C3.45118 4.15829 3.45118 3.84171 3.64645 3.64645Z`})}),moon:e=>(0,u.jsx)(`svg`,{width:`800px`,height:`800px`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,u.jsx)(`path`,{d:`M12 22C17.5228 22 22 17.5228 22 12C22 11.5373 21.3065 11.4608 21.0672 11.8568C19.9289 13.7406 17.8615 15 15.5 15C11.9101 15 9 12.0899 9 8.5C9 6.13845 10.2594 4.07105 12.1432 2.93276C12.5392 2.69347 12.4627 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z`,fill:`#1C274C`})}),sun:e=>(0,u.jsxs)(`svg`,{width:`800px`,height:`800px`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...e,children:[(0,u.jsx)(`circle`,{cx:12,cy:12,r:5,stroke:`#1C274C`,strokeWidth:1.5}),(0,u.jsx)(`path`,{d:`M12 2V4`,stroke:`#1C274C`,strokeWidth:1.5,strokeLinecap:`round`}),(0,u.jsx)(`path`,{d:`M12 20V22`,stroke:`#1C274C`,strokeWidth:1.5,strokeLinecap:`round`}),(0,u.jsx)(`path`,{d:`M4 12L2 12`,stroke:`#1C274C`,strokeWidth:1.5,strokeLinecap:`round`}),(0,u.jsx)(`path`,{d:`M22 12L20 12`,stroke:`#1C274C`,strokeWidth:1.5,strokeLinecap:`round`}),(0,u.jsx)(`path`,{d:`M19.7778 4.22266L17.5558 6.25424`,stroke:`#1C274C`,strokeWidth:1.5,strokeLinecap:`round`}),(0,u.jsx)(`path`,{d:`M4.22217 4.22266L6.44418 6.25424`,stroke:`#1C274C`,strokeWidth:1.5,strokeLinecap:`round`}),(0,u.jsx)(`path`,{d:`M6.44434 17.5557L4.22211 19.7779`,stroke:`#1C274C`,strokeWidth:1.5,strokeLinecap:`round`}),(0,u.jsx)(`path`,{d:`M19.7778 19.7773L17.5558 17.5551`,stroke:`#1C274C`,strokeWidth:1.5,strokeLinecap:`round`})]})},Q=({iconName:e,width:t,height:n,fill:r,className:i})=>{let{colors:a}=K(),o=na[e];return o?(0,u.jsx)(o,{style:{transition:`.5s ease`},fill:r??a.accent,width:t,height:n,className:i}):null},ra=(e,t,n)=>({outlined:{color:n?e.colors.disabled:e.colors.accent,border:`1px solid ${n?e.colors.disabled:e.colors.accent}`,background:`transparent`},filled:{color:n?e.colors.primary:e.colors.textSecondary,background:n?e.colors.disabled:e.colors.accent,border:`1px solid transparent`}})[t],ia=q.button`
253
+ `,la=({width:e,showThemeToggle:t,toggleTheme:n})=>{let{topbar:r}=Gi(),{data:i,config:a,handleGoNext:o,handleGoPrev:s,handleGoToday:c,zoomIn:l,zoomOut:d,isNextZoom:f,isPrevZoom:p,handleFilterData:m,onClearFilterData:h}=Ir(),{colors:g}=Y(),{filterButtonState:_=-1}=a;return(0,u.jsxs)(na,{width:e,children:[(0,u.jsx)(sa,{children:_>=0&&(0,u.jsxs)(pa,{variant:_?`filled`:`outlined`,iconName:`filter`,width:`16`,height:`16`,onClick:m,children:[r.filters,!!_&&(0,u.jsx)(`span`,{onClick:e=>{e.stopPropagation(),h?.()},children:(0,u.jsx)(Q,{iconName:`close`,height:`16`,width:`16`,fill:g.textSecondary})})]})}),(0,u.jsxs)(ra,{children:[(0,u.jsxs)(ia,{disabled:!i?.length,onClick:s,children:[(0,u.jsx)(Q,{iconName:`arrowLeft`,height:`15`,fill:g.textPrimary}),r.prev]}),(0,u.jsx)(aa,{onClick:c,children:r.today}),(0,u.jsxs)(ia,{disabled:!i?.length,onClick:o,children:[r.next,(0,u.jsx)(Q,{iconName:`arrowRight`,height:`15`,fill:g.textPrimary})]})]}),(0,u.jsxs)(ca,{children:[t&&(0,u.jsx)(Co,{toggleTheme:n}),(0,u.jsxs)(oa,{children:[r.view,(0,u.jsx)(pa,{isDisabled:!p,onClick:d,isFullRounded:!0,iconName:`subtract`,width:`14`}),(0,u.jsx)(pa,{isDisabled:!f,onClick:l,isFullRounded:!0,iconName:`add`,width:`14`})]})]})]})},ua={add:e=>(0,u.jsx)(`svg`,{width:24,height:24,viewBox:`0 0 24 24`,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,u.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M12 5.25C12.4142 5.25 12.75 5.58579 12.75 6V11.25H18C18.4142 11.25 18.75 11.5858 18.75 12C18.75 12.4142 18.4142 12.75 18 12.75H12.75V18C12.75 18.4142 12.4142 18.75 12 18.75C11.5858 18.75 11.25 18.4142 11.25 18V12.75H6C5.58579 12.75 5.25 12.4142 5.25 12C5.25 11.5858 5.58579 11.25 6 11.25H11.25V6C11.25 5.58579 11.5858 5.25 12 5.25Z`})}),subtract:e=>(0,u.jsx)(`svg`,{width:24,height:24,viewBox:`0 0 24 24`,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,u.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M5.25 12C5.25 11.5858 5.58579 11.25 6 11.25H18C18.4142 11.25 18.75 11.5858 18.75 12C18.75 12.4142 18.4142 12.75 18 12.75H6C5.58579 12.75 5.25 12.4142 5.25 12Z`})}),filter:e=>(0,u.jsxs)(`svg`,{width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...e,children:[(0,u.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M5.33008 2.76001C4.65781 2.76001 4.06006 3.31031 4.06006 4.13V6.45001C4.06006 6.6129 4.11982 6.88231 4.25809 7.19052C4.39356 7.49249 4.5738 7.76311 4.75036 7.93967L4.76365 7.9533L8.60367 11.9933C8.61628 12.0066 8.6284 12.0203 8.64001 12.0345C8.90276 12.3549 9.14136 12.7775 9.31532 13.2131C9.48804 13.6456 9.62006 14.1484 9.62006 14.63V19.98C9.62006 20.9693 10.7551 21.5824 11.6002 21.0655L13.0033 20.1599L13.0205 20.1491C13.1208 20.0882 13.2665 19.9358 13.3909 19.6966C13.5132 19.4611 13.5701 19.2272 13.5701 19.07C13.5701 18.6558 13.9059 18.32 14.3201 18.32C14.7343 18.32 15.0701 18.6558 15.0701 19.07C15.0701 19.5228 14.9269 19.9939 14.7218 20.3885C14.5202 20.7761 14.2142 21.1755 13.8093 21.425L12.4068 22.3302L12.3945 22.3379C10.6202 23.435 8.12006 22.2286 8.12006 19.98V14.63C8.12006 14.4016 8.05207 14.0944 7.92229 13.7694C7.79829 13.4589 7.63905 13.1851 7.49575 13.0049L3.68249 8.9931C3.3523 8.66063 3.08013 8.22943 2.8895 7.80449C2.70028 7.38271 2.56006 6.89712 2.56006 6.45001V4.13C2.56006 2.5297 3.78235 1.26001 5.33008 1.26001H18.67C20.1942 1.26001 21.4401 2.50577 21.4401 4.03V6.25C21.4401 6.79751 21.2722 7.36158 21.0548 7.83769C20.8366 8.31586 20.5373 8.77344 20.2104 9.10034C19.9175 9.39323 19.4426 9.39323 19.1497 9.10034C18.8568 8.80744 18.8568 8.33257 19.1497 8.03968C19.3228 7.86657 19.5285 7.56915 19.6903 7.21482C19.853 6.85843 19.9401 6.51249 19.9401 6.25V4.03C19.9401 3.33423 19.3658 2.76001 18.67 2.76001H5.33008Z`,fill:`currentColor`}),(0,u.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M16.0701 10.87C14.717 10.87 13.6201 11.9669 13.6201 13.32C13.6201 14.6731 14.717 15.77 16.0701 15.77C17.4232 15.77 18.5201 14.6731 18.5201 13.32C18.5201 11.9669 17.4232 10.87 16.0701 10.87ZM12.1201 13.32C12.1201 11.1385 13.8885 9.37 16.0701 9.37C18.2516 9.37 20.0201 11.1385 20.0201 13.32C20.0201 15.5015 18.2516 17.27 16.0701 17.27C13.8886 17.27 12.1201 15.5015 12.1201 13.32Z`,fill:`currentColor`}),(0,u.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M18.3397 15.5897C18.6326 15.2968 19.1075 15.2968 19.4004 15.5897L20.4004 16.5897C20.6933 16.8826 20.6933 17.3574 20.4004 17.6503C20.1075 17.9432 19.6326 17.9432 19.3397 17.6503L18.3397 16.6503C18.0468 16.3574 18.0468 15.8826 18.3397 15.5897Z`,fill:`currentColor`})]}),arrowLeft:e=>(0,u.jsx)(`svg`,{width:24,height:24,viewBox:`0 0 24 24`,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,u.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M10.1003 5.39966C10.3932 5.69256 10.3932 6.16743 10.1003 6.46032L5.31065 11.25H20.5C20.9142 11.25 21.25 11.5858 21.25 12C21.25 12.4142 20.9142 12.75 20.5 12.75H5.31067L10.1003 17.5397C10.3932 17.8326 10.3932 18.3074 10.1003 18.6003C9.80744 18.8932 9.33256 18.8932 9.03967 18.6003L2.96967 12.5303C2.82902 12.3897 2.75 12.1989 2.75 12C2.75 11.8011 2.82902 11.6103 2.96967 11.4697L9.03967 5.39966C9.33256 5.10677 9.80744 5.10677 10.1003 5.39966Z`})}),arrowRight:e=>(0,u.jsx)(`svg`,{width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,u.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M13.8997 5.39966C14.1926 5.10677 14.6674 5.10677 14.9603 5.39966L21.0303 11.4697C21.171 11.6103 21.25 11.8011 21.25 12C21.25 12.1989 21.171 12.3897 21.0303 12.5303L14.9603 18.6003C14.6674 18.8932 14.1926 18.8932 13.8997 18.6003C13.6068 18.3074 13.6068 17.8326 13.8997 17.5397L18.6893 12.75H3.5C3.08579 12.75 2.75 12.4142 2.75 12C2.75 11.5858 3.08579 11.25 3.5 11.25H18.6893L13.8997 6.46032C13.6068 6.16743 13.6068 5.69256 13.8997 5.39966Z`})}),defaultAvatar:e=>(0,u.jsx)(`svg`,{width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,u.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M12 2.75C6.89137 2.75 2.75 6.89137 2.75 12C2.75 14.2736 3.57027 16.3556 4.93102 17.9662C5.29334 17.2869 5.86897 16.6773 6.61129 16.1778L6.61502 16.1753L6.61503 16.1753C8.13359 15.1666 10.0914 14.685 12.0075 14.685C13.9234 14.685 15.8774 15.1665 17.3871 16.1767L17.3887 16.1778C18.131 16.6773 18.7067 17.2869 19.069 17.9662C20.4297 16.3556 21.25 14.2736 21.25 12C21.25 6.89137 17.1086 2.75 12 2.75ZM13.6371 22.6261C18.7972 21.8377 22.75 17.3805 22.75 12C22.75 6.06294 17.9371 1.25 12 1.25C6.06294 1.25 1.25 6.06294 1.25 12C1.25 17.9371 6.06294 22.75 12 22.75C12.1855 22.75 12.37 22.7453 12.5532 22.736C12.8268 22.7221 13.0977 22.698 13.3655 22.6641C13.4564 22.6526 13.5469 22.6399 13.6371 22.6261ZM17.9216 19.1C17.7538 18.5356 17.323 17.9417 16.5521 17.4228C15.3419 16.6133 13.6963 16.185 12.0075 16.185C10.3195 16.185 8.66811 16.613 7.44686 17.4235C6.67666 17.9422 6.24614 18.5359 6.07838 19.1C7.06079 19.9227 8.21266 20.5433 9.47543 20.9013C10.2779 21.1284 11.1248 21.25 12 21.25C12.8752 21.25 13.7221 21.1284 14.5246 20.9013C15.7873 20.5433 16.9392 19.9227 17.9216 19.1ZM12 6.98C10.5957 6.98 9.47 8.11272 9.47 9.51C9.47 10.8588 10.5236 11.9585 11.8587 12.0284C11.9506 12.0209 12.0487 12.0202 12.1439 12.0283C13.4732 11.9572 14.5212 10.8618 14.53 9.50795C14.5289 8.1131 13.3951 6.98 12 6.98ZM7.97 9.51C7.97 7.28728 9.7643 5.48 12 5.48C14.2242 5.48 16.03 7.28579 16.03 9.51V9.51424H16.03C16.0177 11.6826 14.3122 13.4557 12.1456 13.5296C12.1016 13.5311 12.0575 13.5287 12.0139 13.5225C12.0182 13.5231 12.0191 13.523 12.0163 13.5228C12.0137 13.5227 12.0094 13.5225 12.0037 13.5225C11.9915 13.5225 11.9801 13.5233 11.973 13.5242C11.9337 13.5291 11.8941 13.5309 11.8544 13.5296C9.69161 13.4558 7.97 11.6855 7.97 9.51Z`,fill:`#777`})}),calendarWarning:e=>(0,u.jsxs)(`svg`,{width:14,height:14,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...e,children:[(0,u.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M1.3125 2.91536C1.3125 2.02941 2.03071 1.3112 2.91667 1.3112H11.0833C11.9693 1.3112 12.6875 2.02941 12.6875 2.91536V11.082C12.6875 11.968 11.9693 12.6862 11.0833 12.6862H2.91667C2.03071 12.6862 1.3125 11.968 1.3125 11.082V2.91536ZM2.91667 2.1862C2.51396 2.1862 2.1875 2.51266 2.1875 2.91536V11.082C2.1875 11.4847 2.51396 11.8112 2.91667 11.8112H11.0833C11.486 11.8112 11.8125 11.4847 11.8125 11.082V2.91536C11.8125 2.51266 11.486 2.1862 11.0833 2.1862H2.91667Z`,fill:`#EF4444`}),(0,u.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M4.375 0.144531C4.61662 0.144531 4.8125 0.340407 4.8125 0.582031V3.20703C4.8125 3.44866 4.61662 3.64453 4.375 3.64453C4.13338 3.64453 3.9375 3.44866 3.9375 3.20703V0.582031C3.9375 0.340407 4.13338 0.144531 4.375 0.144531Z`,fill:`#EF4444`}),(0,u.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M9.625 0.144531C9.86662 0.144531 10.0625 0.340407 10.0625 0.582031V3.20703C10.0625 3.44866 9.86662 3.64453 9.625 3.64453C9.38338 3.64453 9.1875 3.44866 9.1875 3.20703V0.582031C9.1875 0.340407 9.38338 0.144531 9.625 0.144531Z`,fill:`#EF4444`}),(0,u.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M9.05936 6.01326C9.23021 6.18411 9.23021 6.46112 9.05936 6.63198L5.55936 10.132C5.3885 10.3028 5.11149 10.3028 4.94064 10.132C4.76979 9.96112 4.76979 9.68411 4.94064 9.51326L8.44064 6.01326C8.6115 5.8424 8.8885 5.8424 9.05936 6.01326Z`,fill:`#EF4444`}),(0,u.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M9.05936 10.132C8.8885 10.3028 8.61149 10.3028 8.44064 10.132L4.94064 6.63198C4.76979 6.46112 4.76979 6.18411 4.94064 6.01326C5.11149 5.8424 5.3885 5.8424 5.55936 6.01326L9.05936 9.51326C9.23021 9.68411 9.23021 9.96112 9.05936 10.132Z`,fill:`#EF4444`}),(0,u.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M12.6875 4.66536C12.6875 4.90699 12.4916 5.10286 12.25 5.10286H1.75C1.50838 5.10286 1.3125 4.90699 1.3125 4.66536C1.3125 4.42374 1.50838 4.22786 1.75 4.22786H12.25C12.4916 4.22786 12.6875 4.42374 12.6875 4.66536Z`,fill:`#EF4444`})]}),calendarFree:e=>(0,u.jsxs)(`svg`,{width:14,height:14,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...e,children:[(0,u.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M1.3125 2.91536C1.3125 2.02941 2.03071 1.3112 2.91667 1.3112H11.0833C11.9693 1.3112 12.6875 2.02941 12.6875 2.91536V11.082C12.6875 11.968 11.9693 12.6862 11.0833 12.6862H2.91667C2.03071 12.6862 1.3125 11.968 1.3125 11.082V2.91536ZM2.91667 2.1862C2.51396 2.1862 2.1875 2.51266 2.1875 2.91536V11.082C2.1875 11.4847 2.51396 11.8112 2.91667 11.8112H11.0833C11.486 11.8112 11.8125 11.4847 11.8125 11.082V2.91536C11.8125 2.51266 11.486 2.1862 11.0833 2.1862H2.91667Z`,fill:`#278904`}),(0,u.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M4.375 0.144531C4.61662 0.144531 4.8125 0.340407 4.8125 0.582031V3.20703C4.8125 3.44866 4.61662 3.64453 4.375 3.64453C4.13338 3.64453 3.9375 3.44866 3.9375 3.20703V0.582031C3.9375 0.340407 4.13338 0.144531 4.375 0.144531Z`,fill:`#278904`}),(0,u.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M9.625 0.144531C9.86662 0.144531 10.0625 0.340407 10.0625 0.582031V3.20703C10.0625 3.44866 9.86662 3.64453 9.625 3.64453C9.38338 3.64453 9.1875 3.44866 9.1875 3.20703V0.582031C9.1875 0.340407 9.38338 0.144531 9.625 0.144531Z`,fill:`#278904`}),(0,u.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M12.6875 4.66536C12.6875 4.90699 12.4916 5.10286 12.25 5.10286H1.75C1.50838 5.10286 1.3125 4.90699 1.3125 4.66536C1.3125 4.42374 1.50838 4.22786 1.75 4.22786H12.25C12.4916 4.22786 12.6875 4.42374 12.6875 4.66536Z`,fill:`#278904`})]}),arrowDown:e=>(0,u.jsx)(`svg`,{width:17,height:16,viewBox:`0 0 17 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,u.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M4.09957 9.26775C4.29483 9.07249 4.61142 9.07249 4.80668 9.26775L7.9998 12.4609L7.9998 2.33463C7.9998 2.05848 8.22365 1.83463 8.4998 1.83463C8.77594 1.83463 8.9998 2.05848 8.9998 2.33463L8.9998 12.4609L12.1929 9.26775C12.3882 9.07249 12.7047 9.07249 12.9 9.26775C13.0953 9.46301 13.0953 9.77959 12.9 9.97486L8.85334 14.0215C8.75958 14.1153 8.6324 14.168 8.49979 14.168C8.36718 14.168 8.24001 14.1153 8.14624 14.0215L4.09957 9.97486C3.90431 9.77959 3.90431 9.46301 4.09957 9.26775Z`})}),arrowUp:e=>(0,u.jsx)(`svg`,{width:16,height:16,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,u.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M3.59957 6.73486C3.40431 6.5396 3.40431 6.22301 3.59957 6.02775L7.64624 1.98108C7.74001 1.88732 7.86718 1.83464 7.99979 1.83464C8.1324 1.83464 8.25958 1.88732 8.35334 1.98108L12.4 6.02775C12.5953 6.22301 12.5953 6.5396 12.4 6.73486C12.2047 6.93012 11.8882 6.93012 11.6929 6.73486L8.4998 3.54175L8.4998 13.668C8.4998 13.9441 8.27594 14.168 7.9998 14.168C7.72365 14.168 7.4998 13.9441 7.4998 13.668L7.4998 3.54174L4.30668 6.73486C4.11142 6.93012 3.79483 6.93012 3.59957 6.73486Z`})}),search:e=>(0,u.jsx)(`svg`,{width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,u.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M11 4.75C7.54822 4.75 4.75 7.54822 4.75 11C4.75 14.4518 7.54822 17.25 11 17.25C14.4518 17.25 17.25 14.4518 17.25 11C17.25 7.54822 14.4518 4.75 11 4.75ZM3.25 11C3.25 6.71979 6.71979 3.25 11 3.25C15.2802 3.25 18.75 6.71979 18.75 11C18.75 12.87 18.0877 14.5853 16.9848 15.9242L21.5303 20.4697C21.8232 20.7626 21.8232 21.2374 21.5303 21.5303C21.2374 21.8232 20.7626 21.8232 20.4697 21.5303L15.9242 16.9848C14.5853 18.0877 12.87 18.75 11 18.75C6.71979 18.75 3.25 15.2802 3.25 11Z`,fill:`#777777`})}),close:e=>(0,u.jsx)(`svg`,{width:16,height:16,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,u.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M3.64645 3.64645C3.84171 3.45118 4.15829 3.45118 4.35355 3.64645L8 7.29289L11.6464 3.64645C11.8417 3.45118 12.1583 3.45118 12.3536 3.64645C12.5488 3.84171 12.5488 4.15829 12.3536 4.35355L8.70711 8L12.3536 11.6464C12.5488 11.8417 12.5488 12.1583 12.3536 12.3536C12.1583 12.5488 11.8417 12.5488 11.6464 12.3536L8 8.70711L4.35355 12.3536C4.15829 12.5488 3.84171 12.5488 3.64645 12.3536C3.45118 12.1583 3.45118 11.8417 3.64645 11.6464L7.29289 8L3.64645 4.35355C3.45118 4.15829 3.45118 3.84171 3.64645 3.64645Z`})}),moon:e=>(0,u.jsx)(`svg`,{width:`800px`,height:`800px`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,u.jsx)(`path`,{d:`M12 22C17.5228 22 22 17.5228 22 12C22 11.5373 21.3065 11.4608 21.0672 11.8568C19.9289 13.7406 17.8615 15 15.5 15C11.9101 15 9 12.0899 9 8.5C9 6.13845 10.2594 4.07105 12.1432 2.93276C12.5392 2.69347 12.4627 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z`,fill:`#1C274C`})}),sun:e=>(0,u.jsxs)(`svg`,{width:`800px`,height:`800px`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...e,children:[(0,u.jsx)(`circle`,{cx:12,cy:12,r:5,stroke:`#1C274C`,strokeWidth:1.5}),(0,u.jsx)(`path`,{d:`M12 2V4`,stroke:`#1C274C`,strokeWidth:1.5,strokeLinecap:`round`}),(0,u.jsx)(`path`,{d:`M12 20V22`,stroke:`#1C274C`,strokeWidth:1.5,strokeLinecap:`round`}),(0,u.jsx)(`path`,{d:`M4 12L2 12`,stroke:`#1C274C`,strokeWidth:1.5,strokeLinecap:`round`}),(0,u.jsx)(`path`,{d:`M22 12L20 12`,stroke:`#1C274C`,strokeWidth:1.5,strokeLinecap:`round`}),(0,u.jsx)(`path`,{d:`M19.7778 4.22266L17.5558 6.25424`,stroke:`#1C274C`,strokeWidth:1.5,strokeLinecap:`round`}),(0,u.jsx)(`path`,{d:`M4.22217 4.22266L6.44418 6.25424`,stroke:`#1C274C`,strokeWidth:1.5,strokeLinecap:`round`}),(0,u.jsx)(`path`,{d:`M6.44434 17.5557L4.22211 19.7779`,stroke:`#1C274C`,strokeWidth:1.5,strokeLinecap:`round`}),(0,u.jsx)(`path`,{d:`M19.7778 19.7773L17.5558 17.5551`,stroke:`#1C274C`,strokeWidth:1.5,strokeLinecap:`round`})]})},Q=({iconName:e,width:t,height:n,fill:r,className:i})=>{let{colors:a}=Y(),o=ua[e];return o?(0,u.jsx)(o,{style:{transition:`.5s ease`},fill:r??a.accent,width:t,height:n,className:i}):null},da=(e,t,n)=>({outlined:{color:n?e.colors.disabled:e.colors.accent,border:`1px solid ${n?e.colors.disabled:e.colors.accent}`,background:`transparent`},filled:{color:n?e.colors.primary:e.colors.textSecondary,background:n?e.colors.disabled:e.colors.accent,border:`1px solid transparent`}})[t],fa=X.button`
220
254
  outline: none;
221
255
  display: flex;
222
256
  align-items: center;
223
257
  justify-content: center;
224
258
  min-width: 24px;
225
259
  min-height: 24px;
226
- border-radius: ${({isFullRounded:e})=>e?`50%`:`4px`};
260
+ border-radius: ${({$isFullRounded:e})=>e?`50%`:`4px`};
227
261
  cursor: ${({disabled:e})=>e?`auto`:`pointer`};
228
262
  font-size: 14px;
229
263
  gap: 4px;
230
- padding: ${({hasChildren:e})=>e?`0 10px`:`0`};
264
+ padding: ${({$hasChildren:e})=>e?`0 10px`:`0`};
231
265
  transition: 0.5s ease;
232
- ${({theme:e,variant:t,disabled:n})=>ra(e,t,n)}
233
- `,aa=({iconName:e,width:t,height:n,fill:r,className:i,onClick:a,children:o,isFullRounded:s,isDisabled:c,variant:l=`outlined`})=>{let{colors:d}=K();return(0,u.jsxs)(ia,{onClick:a,isFullRounded:s,hasChildren:!!o,disabled:c,variant:l,children:[(0,u.jsx)(Q,{iconName:e,width:t,height:n,fill:c?d.disabled:r,className:i}),o]})},oa=q.div`
266
+ ${({theme:e,$variant:t,disabled:n})=>da(e,t,n)}
267
+ `,pa=({iconName:e,width:t,height:n,fill:r,className:i,onClick:a,children:o,isFullRounded:s,isDisabled:c,variant:l=`outlined`})=>{let{colors:d}=Y();return(0,u.jsxs)(fa,{onClick:a,$isFullRounded:s,$hasChildren:!!o,disabled:c,$variant:l,children:[(0,u.jsx)(Q,{iconName:e,width:t,height:n,fill:c?d.disabled:r,className:i}),o]})},ma=X.div`
234
268
  position: absolute;
235
269
  top: 0;
236
270
  bottom: 0;
237
271
  left: 0;
238
272
  right: 0;
239
273
  display: flex;
240
- overflow-x: ${({showScroll:e})=>e?`scroll`:`hidden`};
274
+ overflow-x: ${({$showScroll:e})=>e?`scroll`:`hidden`};
241
275
  background-color: ${({theme:e})=>e.colors.gridBackground};
242
- `,sa=q.div`
276
+ `,ha=X.div`
243
277
  position: relative;
244
- `,ca=({data:e,config:t,startDate:n,onRangeChange:r,onTileClick:i,onFilterData:a,onClearFilterData:o,onItemClick:s,isLoading:c})=>{let d=(0,l.useMemo)(()=>({zoom:0,filterButtonState:1,includeTakenHoursOnWeekendsInDayView:!1,showTooltip:!0,translations:void 0,...t}),[t]),f=(0,l.useRef)(null),[p,m]=(0,l.useState)(f.current?.clientWidth),h=(0,l.useMemo)(()=>(0,Z.default)(n),[n]),[g,_]=(0,l.useState)(d.defaultTheme??`light`),v=()=>{_(g===`light`?`dark`:`light`)},y=g===`light`?Un:Wn,b=d.theme?d.theme[y.mode]:{},x={...y,colors:{...y.colors,...b}};return(0,l.useEffect)(()=>{let e=()=>{f.current&&m(f.current.clientWidth)};return e(),window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]),f.current,(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Hn,{}),(0,u.jsx)(Cn,{theme:x,children:(0,u.jsx)(Ii,{lang:d.lang,translations:d.translations,children:(0,u.jsx)(Fr,{data:e,isLoading:!!c,config:d,onRangeChange:r,defaultStartDate:h,onFilterData:a,onClearFilterData:o,children:(0,u.jsx)(oa,{showScroll:!!e.length,id:Y,ref:f,children:(0,u.jsx)(sa,{children:(0,u.jsx)(Ki,{data:e,onTileClick:i,topBarWidth:p??0,onItemClick:s,toggleTheme:v})})})})})})]})},la=q.div`
278
+ `,ga=({data:e,config:t,startDate:n,onRangeChange:r,onTileClick:i,onFilterData:a,onClearFilterData:o,onItemClick:s,onCellClick:c,onCellRangeSelect:d,onTileMove:p,selectedCell:m,isLoading:h})=>{let g=(0,l.useMemo)(()=>({zoom:0,filterButtonState:1,includeTakenHoursOnWeekendsInDayView:!1,showTooltip:!0,translations:void 0,...t}),[t]),_=(0,l.useRef)(null),[v,y]=(0,l.useState)(_.current?.clientWidth),b=(0,l.useMemo)(()=>(0,f.default)(n),[n]),[x,S]=(0,l.useState)(g.defaultTheme??`light`),C=()=>{S(x===`light`?`dark`:`light`)},w=x===`light`?Hn:Un,T=g.theme?g.theme[w.mode]:{},E={...w,colors:{...w.colors,...T}};return(0,l.useEffect)(()=>{let e=()=>{_.current&&y(_.current.clientWidth)};return e(),window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]),_.current,(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Vn,{}),(0,u.jsx)(Sn,{theme:E,children:(0,u.jsx)(Wi,{lang:g.lang,translations:g.translations,children:(0,u.jsx)(Fr,{data:e,isLoading:!!h,config:g,onRangeChange:r,defaultStartDate:b,onFilterData:a,onClearFilterData:o,children:(0,u.jsx)(ma,{$showScroll:!!e.length,id:Xn,ref:_,children:(0,u.jsx)(ha,{children:(0,u.jsx)(ea,{data:e,onTileClick:i,topBarWidth:v??0,onItemClick:s,onCellClick:c,onCellRangeSelect:d,onTileMove:p,selectedCell:m,toggleTheme:C})})})})})})]})},_a=X.div`
245
279
  padding: 4px 11px 0;
246
280
  width: 100%;
247
- border-top: ${({intent:e,theme:t})=>e===`next`?`1px solid ${t.colors.border}`:`none`};
248
- `,ua=q.button`
281
+ border-top: ${({$intent:e,theme:t})=>e===`next`?`1px solid ${t.colors.border}`:`none`};
282
+ `,va=X.button`
249
283
  margin-top: 0px;
250
284
  padding: 0;
251
285
  width: 100%;
@@ -259,25 +293,25 @@ white-space: nowrap;
259
293
  line-height: 150%;
260
294
  letter-spacing: 1px;
261
295
  cursor: pointer;
262
- opacity: ${({isVisible:e})=>e?`1`:`0`};
263
- pointer-events: ${({isVisible:e})=>e?`auto`:`none`};
296
+ opacity: ${({$isVisible:e})=>e?`1`:`0`};
297
+ pointer-events: ${({$isVisible:e})=>e?`auto`:`none`};
264
298
  &:hover {
265
299
  transition: 0.5s ease;
266
300
  background-color: ${({theme:e})=>e.colors.hover};
267
301
  }
268
- `,da=q.div`
302
+ `,ya=X.div`
269
303
  position: absolute;
270
304
  max-height: 16px;
271
305
  margin: 0 4px 0 10px;
272
306
  display: flex;
273
307
  align-items: center;
274
308
  justify-content: center;
275
- `,fa=q.p`
276
- ${Gn}
309
+ `,ba=X.p`
310
+ ${Wn}
277
311
  margin-left: 14px;
278
312
  width: 100%;
279
313
  text-align: center;
280
- `,pa=({intent:e,onClick:t,icon:n,isVisible:r,pageNum:i,pagesAmount:a})=>{let{loadNext:o,loadPrevious:s}=Li(),c=e===`next`?`${o} ${i+2}/${a}`:`${s} ${i}/${a}`;return(0,u.jsx)(la,{intent:e,children:(0,u.jsxs)(ua,{onClick:t,isVisible:r,children:[n&&(0,u.jsx)(da,{children:n}),(0,u.jsx)(fa,{children:c})]})})},ma=q.div`
314
+ `,xa=({intent:e,onClick:t,icon:n,isVisible:r,pageNum:i,pagesAmount:a})=>{let{loadNext:o,loadPrevious:s}=Gi(),c=e===`next`?`${o} ${i+2}/${a}`:`${s} ${i}/${a}`;return(0,u.jsx)(_a,{$intent:e,children:(0,u.jsxs)(va,{onClick:t,$isVisible:r,children:[n&&(0,u.jsx)(ya,{children:n}),(0,u.jsx)(ba,{children:c})]})})},Sa=X.div`
281
315
  min-width: ${`196px`};
282
316
  max-width: ${`196px`};
283
317
  min-height: 100vh;
@@ -286,7 +320,7 @@ white-space: nowrap;
286
320
  background-color: ${({theme:e})=>e.colors.background};
287
321
  box-shadow: 0px 4px 15px rgba(39, 55, 75, 0.16);
288
322
  z-index: 2;
289
- `,ha=q.div`
323
+ `,Ca=X.div`
290
324
  padding-bottom: 4px;
291
325
  position: sticky;
292
326
  top: 0;
@@ -297,7 +331,7 @@ white-space: nowrap;
297
331
  width: ${196}px;
298
332
  background-color: ${({theme:e})=>e.colors.background};
299
333
  z-index: 3;
300
- `,ga=q.input`
334
+ `,wa=X.input`
301
335
  height: 100%;
302
336
  width: calc(100% - 44px);
303
337
  background-color: transparent;
@@ -308,13 +342,13 @@ white-space: nowrap;
308
342
  &::placeholder {
309
343
  color: ${({theme:e})=>e.colors.placeholder};
310
344
  }
311
- `,_a=q.div`
345
+ `,Ta=X.div`
312
346
  margin-left: 10px;
313
347
  height: 36px;
314
348
  width: calc(100% - 20px); //20px = 10px margin each side
315
349
  background-color: ${({theme:e})=>e.colors.primary};
316
350
  border: 1px solid
317
- ${({theme:e,isFocused:t})=>t?e.colors.accent:e.colors.border};
351
+ ${({theme:e,$isFocused:t})=>t?e.colors.accent:e.colors.border};
318
352
  border-radius: 4px;
319
353
  display: flex;
320
354
  justify-content: space-between;
@@ -326,44 +360,44 @@ white-space: nowrap;
326
360
  height: 24px;
327
361
  width: 24px;
328
362
  }
329
- `,va=q.div`
363
+ `,Ea=X.div`
330
364
  display: flex;
331
- align-items: ${({rows:e})=>e>1?`start`:`center`};
365
+ align-items: ${({$rows:e})=>e>1?`start`:`center`};
332
366
  padding: 0.813rem 0 0.813rem 1rem;
333
367
  width: 100%;
334
368
  min-height: ${56}px;
335
- height: calc(${56}px * ${({rows:e})=>e});
369
+ height: calc(${56}px * ${({$rows:e})=>e});
336
370
  border-top: 1px solid ${({theme:e})=>e.colors.border};
337
371
  transition: 0.5s ease;
338
- cursor: ${({clickable:e})=>e?`pointer`:`auto`};
372
+ cursor: ${({$clickable:e})=>e?`pointer`:`auto`};
339
373
  &:hover {
340
374
  background-color: ${({theme:e})=>e.colors.hover};
341
375
  }
342
- `,ya=q.div`
376
+ `,Da=X.div`
343
377
  display: flex;
344
378
  align-items: center;
345
- `,ba=q.div`
379
+ `,Oa=X.div`
346
380
  margin-right: 0.5rem;
347
381
  width: 1.5rem;
348
382
  height: 1.5rem;
349
383
  border-radius: 50%;
350
384
  overflow: hidden;
351
385
  flex-shrink: 0;
352
- `,xa=q.img`
386
+ `,ka=X.img`
353
387
  object-fit: cover;
354
388
  height: 100%;
355
389
  width: 100%;
356
- `,Sa=q.div`
390
+ `,Aa=X.div`
357
391
  display: flex;
358
392
  flex-direction: column;
359
393
  flex: 1 0 0;
360
- `,Ca=q.p`
394
+ `,ja=X.p`
361
395
  margin: 0;
362
396
  padding: 0;
363
- font-size: ${({isMain:e})=>e?`0.75rem`:`0.625rem`};
364
- letter-spacing: ${({isMain:e})=>e?`1px`:`0.5px`};
365
- line-height: ${({isMain:e})=>e?`1.125rem`:`0.75rem`};
366
- color: ${({isMain:e,theme:t})=>e?t.colors.textPrimary:t.colors.placeholder};
397
+ font-size: ${({$isMain:e})=>e?`0.75rem`:`0.625rem`};
398
+ letter-spacing: ${({$isMain:e})=>e?`1px`:`0.5px`};
399
+ line-height: ${({$isMain:e})=>e?`1.125rem`:`0.75rem`};
400
+ color: ${({$isMain:e,theme:t})=>e?t.colors.textPrimary:t.colors.placeholder};
367
401
  text-overflow: ellipsis;
368
402
  display: inline-block;
369
403
  max-width: 144px;
@@ -371,38 +405,38 @@ white-space: nowrap;
371
405
  white-space: nowrap;
372
406
  overflow: hidden;
373
407
  text-align: left;
374
- `,wa=({id:e,item:t,rows:n,onItemClick:r})=>(0,u.jsx)(va,{title:t.title+` | `+t.subtitle,clickable:typeof r==`function`,rows:n,onClick:()=>r?.({id:e,label:t}),children:(0,u.jsxs)(ya,{children:[(0,u.jsx)(ba,{children:t.icon?(0,u.jsx)(xa,{src:t.icon,alt:`Icon`}):(0,u.jsx)(Q,{iconName:`defaultAvatar`})}),(0,u.jsxs)(Sa,{children:[(0,u.jsx)(Ca,{isMain:!0,children:t.title}),(0,u.jsx)(Ca,{children:t.subtitle})]})]})}),Ta=({data:e,rows:t,onLoadNext:n,onLoadPrevious:r,pageNum:i,pagesAmount:a,searchInputValue:o,onSearchInputChange:s,onItemClick:c})=>{let[d,f]=(0,l.useState)(!1),{search:p}=Li(),m=()=>f(e=>!e);return(0,u.jsxs)(ma,{children:[(0,u.jsxs)(ha,{children:[(0,u.jsxs)(_a,{isFocused:d,children:[(0,u.jsx)(ga,{placeholder:p,value:o,onChange:s,onFocus:m,onBlur:m}),(0,u.jsx)(Q,{iconName:`search`})]}),(0,u.jsx)(pa,{intent:`previous`,isVisible:i!==0,onClick:r,icon:(0,u.jsx)(Q,{iconName:`arrowUp`,width:`16`,height:`16`}),pageNum:i,pagesAmount:a})]}),e.map((e,n)=>(0,u.jsx)(wa,{id:e.id,item:e.label,rows:t[n],onItemClick:c},e.id)),(0,u.jsx)(pa,{intent:`next`,isVisible:i!==a-1,onClick:n,icon:(0,u.jsx)(Q,{iconName:`arrowDown`,width:`16`,height:`16`}),pageNum:i,pagesAmount:a})]})},Ea=q.div`
408
+ `,Ma=({id:e,item:t,rows:n,onItemClick:r})=>(0,u.jsx)(Ea,{title:t.title+` | `+t.subtitle,$clickable:typeof r==`function`,$rows:n,onClick:()=>r?.({id:e,label:t}),children:(0,u.jsxs)(Da,{children:[(0,u.jsx)(Oa,{children:t.icon?(0,u.jsx)(ka,{src:t.icon,alt:`Icon`}):(0,u.jsx)(Q,{iconName:`defaultAvatar`})}),(0,u.jsxs)(Aa,{children:[(0,u.jsx)(ja,{$isMain:!0,children:t.title}),(0,u.jsx)(ja,{children:t.subtitle})]})]})}),Na=({data:e,rows:t,onLoadNext:n,onLoadPrevious:r,pageNum:i,pagesAmount:a,searchInputValue:o,onSearchInputChange:s,onItemClick:c})=>{let[d,f]=(0,l.useState)(!1),{search:p}=Gi(),m=()=>f(e=>!e);return(0,u.jsxs)(Sa,{children:[(0,u.jsxs)(Ca,{children:[(0,u.jsxs)(Ta,{$isFocused:d,children:[(0,u.jsx)(wa,{placeholder:p,value:o,onChange:s,onFocus:m,onBlur:m}),(0,u.jsx)(Q,{iconName:`search`})]}),(0,u.jsx)(xa,{intent:`previous`,isVisible:i!==0,onClick:r,icon:(0,u.jsx)(Q,{iconName:`arrowUp`,width:`16`,height:`16`}),pageNum:i,pagesAmount:a})]}),e.map((e,n)=>(0,u.jsx)(Ma,{id:e.id,item:e.label,rows:t[n],onItemClick:c},e.id)),(0,u.jsx)(xa,{intent:`next`,isVisible:i!==a-1,onClick:n,icon:(0,u.jsx)(Q,{iconName:`arrowDown`,width:`16`,height:`16`}),pageNum:i,pagesAmount:a})]})},Pa=X.div`
375
409
  width: 388px;
376
410
  height: 100%;
377
411
  position: absolute;
378
412
  top: 0;
379
- left: ${({position:e})=>e===`left`?0:`auto`};
380
- right: ${({position:e})=>e===`right`?0:`auto`};
413
+ left: ${({$position:e})=>e===`left`?0:`auto`};
414
+ right: ${({$position:e})=>e===`right`?0:`auto`};
381
415
  background-color: ${({theme:e})=>e.colors.secondary};
382
416
  opacity: 0.7;
383
417
  overflow: hidden;
384
418
  z-index: 1;
385
- `,Da=zn`
419
+ `,Fa=Rn`
386
420
  from{
387
421
  left: -100%;
388
422
  }
389
423
  to{
390
424
  left: 100%;
391
- }`,Oa=q.div`
425
+ }`,Ia=X.div`
392
426
  width: inherit;
393
427
  height: 100%;
394
428
  position: absolute;
395
429
  background: linear-gradient(90deg, #e6f3ff 1%, #9ec4e7 50%, #e6f3ff 100%);
396
- animation: ${Da} 1s infinite;
397
- `,ka=({isLoading:e,position:t})=>e?(0,u.jsx)(Ea,{position:t,children:(0,u.jsx)(Oa,{})}):null,$=(e,t)=>{let{ctx:n,x:r,y:i,width:a,height:o,textYPos:s,label:c,font:l,isBottomRow:u,fillStyle:d,topText:f,bottomText:p,labelBetweenCells:m}=e;if(n.beginPath(),n.strokeStyle=t.colors.border,n.setLineDash([]),c&&l&&s){n.fillStyle=t.colors.gridBackground,n.fillRect(r,i,a,o),m?(n.moveTo(r,i),n.lineTo(r+a,i),n.stroke(),n.moveTo(r,i+o),n.lineTo(r+a,i+o),n.stroke(),n.moveTo(r+a/2,i+o),n.lineTo(r+a/2,i+o-5),n.stroke()):n.strokeRect(r+.5,i+.5,a,o),n.font=l;let e=r+a/2-n.measureText(c).width/2;n.textBaseline=`middle`,n.fillStyle=t.colors.placeholder,n.fillText(c,e,s)}if(u&&d&&f&&p){n.fillStyle=d,n.fillRect(r,i,a,o),n.strokeRect(r+.5,i+.5,a,o),n.font=f.font;let e=r+a/2-n.measureText(f.label).width/2;n.fillStyle=f.color,n.fillText(f.label,e,f.y),n.font=p.font;let t=r+a/2-n.measureText(p.label).width/2;n.fillStyle=p.color,n.fillText(p.label,t,p.y)}},Aa=(e,t)=>{let{isCurrent:n,isBusinessDay:r,variant:i}=e;return i===`yearView`?n?t.colors.tertiary:t.colors.gridBackground:n||!r?t.colors.secondary:t.colors.primary},ja=(e,t)=>{let{isCurrent:n,isBusinessDay:r,variant:i}=e;return n?i===`bottomRow`?t.colors.placeholder:t.colors.accent:r?i===`bottomRow`?t.colors.placeholder:t.colors.textPrimary:t.colors.placeholder},Ma=(e,t,n,r)=>{let i=80-40/qn,a=80-40/Jn,o=0;for(let s=0;s<t;s++){let t=er((0,Z.default)(`${n.year}-${n.month+1}-${n.dayOfMonth}`).add(s,`days`));$({ctx:e,x:o,y:40,width:50,height:40,isBottomRow:!0,fillStyle:Aa({isCurrent:t.isCurrentDay,isBusinessDay:t.isBusinessDay},r),topText:{y:i,label:t.dayName.toUpperCase(),font:J.bottomRow.name,color:ja({isCurrent:t.isCurrentDay,isBusinessDay:t.isBusinessDay},r)},bottomText:{y:a,label:`${t.dayOfMonth}`,font:J.bottomRow.number,color:ja({isCurrent:t.isCurrentDay,isBusinessDay:t.isBusinessDay,variant:`bottomRow`},r)}},r),o+=50}},Na=(e,t,n,r)=>{let i=-(n.dayOfMonth-1)*12,a=n.month;for(let o=0;o<t;o++){a>=12&&(a=0);let t=$n(n,o)*12;$({ctx:e,x:i,y:24,width:t,height:16,textYPos:33,label:(0,Z.default)().month(a).format(`MMMM`).toUpperCase(),font:J.bottomRow.number},r),i+=t,a++}},Pa=(e,t,n)=>{let r=0,i=0,a=0,o=(0,Z.default)(`${t.year}-${t.month+1}-${t.dayOfMonth}`).month();r=-t.dayOfMonth*50+50;for(let s=0;s<12;s++)o>11&&(o=0,a++),i=(0,Z.default)(`${t.year}-${t.month+1}-${t.dayOfMonth}`).add(s,`months`).daysInMonth()*50,$({ctx:e,x:r,y:0,width:i,height:24,textYPos:14,label:(0,Z.default)(`${t.year}-${t.month+1}-${t.dayOfMonth}`).month(o).format(`MMMM`).toUpperCase()+` ${(0,Z.default)(`${t.year+a}-${t.month+1}-${t.dayOfMonth}`).month(o).format(`YYYY`)}`,font:J.topRow},n),r+=i,o++},Fa=(e,t,n,r)=>{let i=e.canvas.width/350+350,a=t.weekOfYear,o=0;for(let s=0;s<i;s++){let i=`${t.year}-${t.month+1}-${t.dayOfMonth}`,c=(0,Z.default)(i).day(),l=(0,Z.default)(i).isoWeeksInYear(),u=(a+s)%l;u<=0&&(u+=l),c!==1&&s===0&&(o=-c*50+50),$({ctx:e,x:o,y:24,width:350,height:16,textYPos:33,label:`${n.toUpperCase()} ${u}`,font:J.middleRow},r),o+=350}},Ia=(e,t,n,r,i)=>{let a=0;for(let o=0;o<t;o++){let t=(0,Z.default)(`${n.year}-${n.month+1}-${n.dayOfMonth}`).add(o,`weeks`),s=t.isSame((0,Z.default)(),`week`);$({ctx:e,x:a,y:40,width:84,height:40,isBottomRow:!0,fillStyle:Aa({isCurrent:s,variant:`yearView`},i),topText:{y:55,label:t.isoWeek().toString(),font:J.bottomRow.name,color:ja({isCurrent:s},i)},bottomText:{y:71.11111111111111,label:r.toUpperCase(),font:J.middleRow,color:i.colors.placeholder}},i),a+=84}},La=(e,t,n,r)=>{let i=t.year,a=e.canvas.width*2,o=0,s=0,c=(Zn(i)-n+1)*12,l=0;for(;o+l<=a;)s>0&&(c=Zn(i+s)*12),l+c>a&&s>0&&(c=Math.ceil((a-l)/12)*12),$({ctx:e,x:o,y:0,width:c,height:24,textYPos:14,label:(i+s).toString(),font:J.topRow},r),o+=c,l+=c,s++},Ra=(e,t,n,r)=>{let i=Math.floor(t/24)+2,a=1200,o=-(0,Z.default)(`${n.year}-${n.month+1}-${n.dayOfMonth}T${n.hour}:00:00`).hour()*50+25;for(let t=0;t<i;t++){let i=(0,Z.default)(`${n.year}-${n.month+1}-${n.dayOfMonth}`).add(t,`day`).format(`dddd DD.MM.YYYY`).toUpperCase();$({ctx:e,x:o,y:24,width:a,height:16,textYPos:34,label:i,font:J.bottomRow.number},r),o+=a}},za=(e,t,n,r)=>{let i=Math.ceil(t/24),a=(0,Z.default)(`${n.year}-${n.month+1}-${n.dayOfMonth}`),o=a.add(i-1,`days`),s=a.month()===o.add(1,`day`).month()?1:2,c=25;for(let i=0;i<s;i++){let a=(0,Z.default)(`${n.year}-${n.month+1}-${n.dayOfMonth}T${n.hour}:00:00`),o=(0,Z.default)(`${n.year}-${n.month+i+1}-01T:23:59:59`).endOf(`month`),s=o.format(`MMMM`).toUpperCase(),l=o.diff(a,`hour`)+1,u=i===0?l*50:t*50;$({ctx:e,x:c,y:0,width:u,height:24,textYPos:14,label:s,font:J.topRow},r),c+=u}},Ba=(e,t,n,r)=>{let i=0,a=(0,Z.default)(`${n.year}-${n.month+1}-${n.dayOfMonth}T${n.hour}:00:00`);for(let n=0;n<t;n++){let t=a.add(n,`hours`).format(`HH:00`).toUpperCase();$({ctx:e,x:i,y:40,width:50,height:40,label:t,font:J.bottomRow.number,textYPos:62,labelBetweenCells:!0},r),i+=50}},Va=(e,t,n,r,i,a,o)=>{switch(t){case 0:La(e,r,a,o),Na(e,n,r,o),Ia(e,n,r,i,o);break;case 1:Pa(e,r,o),Fa(e,r,i,o),Ma(e,n,r,o);break;case 2:za(e,n,r,o),Ra(e,n,r,o),Ba(e,n,r,o)}},Ha=q.div`
430
+ animation: ${Fa} 1s infinite;
431
+ `,La=({isLoading:e,position:t})=>e?(0,u.jsx)(Pa,{$position:t,children:(0,u.jsx)(Ia,{})}):null,$=(e,t)=>{let{ctx:n,x:r,y:i,width:a,height:o,textYPos:s,label:c,font:l,isBottomRow:u,fillStyle:d,topText:f,bottomText:p,labelBetweenCells:m}=e;if(n.beginPath(),n.strokeStyle=t.colors.border,n.setLineDash([]),c&&l&&s){n.fillStyle=t.colors.gridBackground,n.fillRect(r,i,a,o),m?(n.moveTo(r,i),n.lineTo(r+a,i),n.stroke(),n.moveTo(r,i+o),n.lineTo(r+a,i+o),n.stroke(),n.moveTo(r+a/2,i+o),n.lineTo(r+a/2,i+o-5),n.stroke()):n.strokeRect(r+.5,i+.5,a,o),n.font=l;let e=r+a/2-n.measureText(c).width/2;n.textBaseline=`middle`,n.fillStyle=t.colors.placeholder,n.fillText(c,e,s)}if(u&&d&&f&&p){n.fillStyle=d,n.fillRect(r,i,a,o),n.strokeRect(r+.5,i+.5,a,o),n.font=f.font;let e=r+a/2-n.measureText(f.label).width/2;n.fillStyle=f.color,n.fillText(f.label,e,f.y),n.font=p.font;let t=r+a/2-n.measureText(p.label).width/2;n.fillStyle=p.color,n.fillText(p.label,t,p.y)}},Ra=(e,t)=>{let{isCurrent:n,isBusinessDay:r,variant:i}=e;return i===`yearView`?n?t.colors.tertiary:t.colors.gridBackground:n||!r?t.colors.secondary:t.colors.primary},za=(e,t)=>{let{isCurrent:n,isBusinessDay:r,variant:i}=e;return n?i===`bottomRow`?t.colors.placeholder:t.colors.accent:r?i===`bottomRow`?t.colors.placeholder:t.colors.textPrimary:t.colors.placeholder},Ba=(e,t,n,r)=>{let i=80-40/Kn,a=80-40/qn,o=0;for(let s=0;s<t;s++){let t=er((0,f.default)(`${n.year}-${n.month+1}-${n.dayOfMonth}`).add(s,`days`));$({ctx:e,x:o,y:40,width:50,height:40,isBottomRow:!0,fillStyle:Ra({isCurrent:t.isCurrentDay,isBusinessDay:t.isBusinessDay},r),topText:{y:i,label:t.dayName.toUpperCase(),font:Z.bottomRow.name,color:za({isCurrent:t.isCurrentDay,isBusinessDay:t.isBusinessDay},r)},bottomText:{y:a,label:`${t.dayOfMonth}`,font:Z.bottomRow.number,color:za({isCurrent:t.isCurrentDay,isBusinessDay:t.isBusinessDay,variant:`bottomRow`},r)}},r),o+=50}},Va=(e,t,n,r)=>{let i=-(n.dayOfMonth-1)*12,a=n.month;for(let o=0;o<t;o++){a>=12&&(a=0);let t=$n(n,o)*12;$({ctx:e,x:i,y:24,width:t,height:16,textYPos:33,label:(0,f.default)().month(a).format(`MMMM`).toUpperCase(),font:Z.bottomRow.number},r),i+=t,a++}},Ha=(e,t,n)=>{let r=0,i=0,a=0,o=(0,f.default)(`${t.year}-${t.month+1}-${t.dayOfMonth}`).month();r=-t.dayOfMonth*50+50;for(let s=0;s<12;s++)o>11&&(o=0,a++),i=(0,f.default)(`${t.year}-${t.month+1}-${t.dayOfMonth}`).add(s,`months`).daysInMonth()*50,$({ctx:e,x:r,y:0,width:i,height:24,textYPos:14,label:(0,f.default)(`${t.year}-${t.month+1}-${t.dayOfMonth}`).month(o).format(`MMMM`).toUpperCase()+` ${(0,f.default)(`${t.year+a}-${t.month+1}-${t.dayOfMonth}`).month(o).format(`YYYY`)}`,font:Z.topRow},n),r+=i,o++},Ua=(e,t,n,r)=>{let i=e.canvas.width/350+350,a=t.weekOfYear,o=0;for(let s=0;s<i;s++){let i=`${t.year}-${t.month+1}-${t.dayOfMonth}`,c=(0,f.default)(i).day(),l=(0,f.default)(i).isoWeeksInYear(),u=(a+s)%l;u<=0&&(u+=l),c!==1&&s===0&&(o=-c*50+50),$({ctx:e,x:o,y:24,width:350,height:16,textYPos:33,label:`${n.toUpperCase()} ${u}`,font:Z.middleRow},r),o+=350}},Wa=(e,t,n,r,i)=>{let a=0;for(let o=0;o<t;o++){let t=(0,f.default)(`${n.year}-${n.month+1}-${n.dayOfMonth}`).add(o,`weeks`),s=t.isSame((0,f.default)(),`week`);$({ctx:e,x:a,y:40,width:84,height:40,isBottomRow:!0,fillStyle:Ra({isCurrent:s,variant:`yearView`},i),topText:{y:55,label:t.isoWeek().toString(),font:Z.bottomRow.name,color:za({isCurrent:s},i)},bottomText:{y:71.11111111111111,label:r.toUpperCase(),font:Z.middleRow,color:i.colors.placeholder}},i),a+=84}},Ga=(e,t,n,r)=>{let i=t.year,a=e.canvas.width*2,o=0,s=0,c=(Zn(i)-n+1)*12,l=0;for(;o+l<=a;)s>0&&(c=Zn(i+s)*12),l+c>a&&s>0&&(c=Math.ceil((a-l)/12)*12),$({ctx:e,x:o,y:0,width:c,height:24,textYPos:14,label:(i+s).toString(),font:Z.topRow},r),o+=c,l+=c,s++},Ka=(e,t,n,r)=>{let i=Math.floor(t/24)+2,a=1200,o=-(0,f.default)(`${n.year}-${n.month+1}-${n.dayOfMonth}T${n.hour}:00:00`).hour()*50+25;for(let t=0;t<i;t++){let i=(0,f.default)(`${n.year}-${n.month+1}-${n.dayOfMonth}`).add(t,`day`).format(`dddd DD.MM.YYYY`).toUpperCase();$({ctx:e,x:o,y:24,width:a,height:16,textYPos:34,label:i,font:Z.bottomRow.number},r),o+=a}},qa=(e,t,n,r)=>{let i=Math.ceil(t/24),a=(0,f.default)(`${n.year}-${n.month+1}-${n.dayOfMonth}`),o=a.add(i-1,`days`),s=a.month()===o.add(1,`day`).month()?1:2,c=25;for(let i=0;i<s;i++){let a=(0,f.default)(`${n.year}-${n.month+1}-${n.dayOfMonth}T${n.hour}:00:00`),o=(0,f.default)(`${n.year}-${n.month+i+1}-01T:23:59:59`).endOf(`month`),s=o.format(`MMMM`).toUpperCase(),l=o.diff(a,`hour`)+1,u=i===0?l*50:t*50;$({ctx:e,x:c,y:0,width:u,height:24,textYPos:14,label:s,font:Z.topRow},r),c+=u}},Ja=(e,t,n,r)=>{let i=0,a=(0,f.default)(`${n.year}-${n.month+1}-${n.dayOfMonth}T${n.hour}:00:00`);for(let n=0;n<t;n++){let t=a.add(n,`hours`).format(`HH:00`).toUpperCase();$({ctx:e,x:i,y:40,width:50,height:40,label:t,font:Z.bottomRow.number,textYPos:62,labelBetweenCells:!0},r),i+=50}},Ya=(e,t,n,r,i,a,o)=>{switch(t){case 0:Ga(e,r,a,o),Va(e,n,r,o),Wa(e,n,r,i,o);break;case 1:Ha(e,r,o),Ua(e,r,i,o),Ba(e,n,r,o);break;case 2:qa(e,n,r,o),Ka(e,n,r,o),Ja(e,n,r,o)}},Xa=X.div`
398
432
  position: sticky;
399
433
  top: 0;
400
434
  z-index: 1;
401
- `,Ua=q.div`
435
+ `,Za=X.div`
402
436
  height: ${80}px;
403
437
  display: block;
404
- `,Wa=q.canvas``,Ga=({zoom:e,topBarWidth:t,showThemeToggle:n,toggleTheme:r})=>{let{week:i}=Li(),{date:a,cols:o,dayOfYear:s,startDate:c}=Ir(),d=(0,l.useRef)(null),f=K(),p=(0,l.useCallback)(t=>{Lr(t,Tr(),81),Va(t,e,o,c,i,s,f)},[o,s,c,i,e,f]);return(0,l.useEffect)(()=>{if(!d.current)return;let e=d.current.getContext(`2d`);if(!e)return;let t=()=>p(e);return window.addEventListener(`resize`,t),()=>window.removeEventListener(`resize`,t)},[p]),(0,l.useEffect)(()=>{let e=d.current;if(!e)return;e.style.letterSpacing=`1px`;let t=e.getContext(`2d`);t&&p(t)},[a,e,p]),(0,u.jsxs)(Ha,{children:[(0,u.jsx)(ta,{width:t,showThemeToggle:n,toggleTheme:r}),(0,u.jsx)(Ua,{id:Yn,children:(0,u.jsx)(Wa,{ref:d})})]})},Ka=(e,t,n)=>{let r;switch(n){case 0:r=12;break;case 2:r=50;break;default:r=50}let i=()=>{let i;switch(n){case 2:i=(e.startDate.diff(t.startDate,`minute`)/60+1)*r-r/2;break;default:i=(e.startDate.diff(t.startDate,`day`)+1)*r}return Math.max(0,i)};if(e.startDate.isAfter(t.startDate)&&e.endDate.isBefore(t.endDate)){let t;switch(n){case 2:t=e.endDate.diff(e.startDate,`minute`)/60*r;break;default:t=e.endDate.diff(e.startDate,`day`)*r+r}return{x:i(),width:t}}if(e.startDate.isBefore(t.startDate)&&e.endDate.isBefore(t.endDate)){let a;switch(n){case 2:a=e.endDate.diff(t.startDate,`minute`)/60*r+.5*r;break;default:a=e.endDate.diff(t.startDate,`day`)*r+r}return{x:i(),width:a}}if(e.startDate.isAfter(t.startDate)&&e.endDate.isAfter(t.endDate)){let a;switch(n){case 2:a=t.endDate.diff(e.startDate,`minute`)/60*r;break;default:a=t.endDate.diff(e.startDate,`day`)*r+r}return{x:i(),width:a}}if(e.startDate.isBefore(t.startDate)&&e.endDate.isAfter(t.endDate)){let e;switch(n){case 2:e=t.endDate.diff(t.startDate,`minute`)/60*r;break;default:e=t.endDate.diff(t.startDate,`day`)*r+r}return{x:i(),width:e}}return{x:i(),width:0}},qa=(e,t,n,r,i,a)=>{let o=e*56+4,s=t.hour(),c=n.hour(),l,u,d,f;switch(a){case 2:l=(0,Z.default)(r),u=(0,Z.default)(i),d=(0,Z.default)(t).hour(s).minute(0),f=(0,Z.default)(n).hour(c).minute(0);break;default:l=(0,Z.default)(r).hour(0).minute(0),u=(0,Z.default)(i).hour(23).minute(59),d=t,f=n}return{...Ka({startDate:l,endDate:u},{startDate:d,endDate:f},a),y:o}},Ja=e=>{if(!e)return`white`;let t=[];for(let n=1;n<6;n+=2)t.push(parseInt(e.slice(n,n+2),16)/255);let n=t.map(e=>e<=.03928?e/12.92:((e+.055)/1.055)**2.4);return .2126*n[0]+.7152*n[1]+.0722*n[2]>.5?`black`:`white`},Ya=q.button`
405
- ${Gn}
438
+ `,Qa=X.canvas``,$a=({zoom:e,topBarWidth:t,showThemeToggle:n,toggleTheme:r})=>{let{week:i}=Gi(),{date:a,cols:o,dayOfYear:s,startDate:c}=Ir(),d=(0,l.useRef)(null),f=Y(),p=(0,l.useCallback)(t=>{Lr(t,Tr(),81),Ya(t,e,o,c,i,s,f)},[o,s,c,i,e,f]);return(0,l.useEffect)(()=>{if(!d.current)return;let e=d.current.getContext(`2d`);if(!e)return;let t=()=>p(e);return window.addEventListener(`resize`,t),()=>window.removeEventListener(`resize`,t)},[p]),(0,l.useEffect)(()=>{let e=d.current;if(!e)return;e.style.letterSpacing=`1px`;let t=e.getContext(`2d`);t&&p(t)},[a,e,p]),(0,u.jsxs)(Xa,{children:[(0,u.jsx)(la,{width:t,showThemeToggle:n,toggleTheme:r}),(0,u.jsx)(Za,{id:Jn,children:(0,u.jsx)(Qa,{ref:d})})]})},eo=(e,t,n)=>{let r;switch(n){case 0:r=12;break;case 2:r=50;break;default:r=50}let i=()=>{let i;switch(n){case 2:i=(e.startDate.diff(t.startDate,`minute`)/60+1)*r-r/2;break;default:i=(e.startDate.diff(t.startDate,`day`)+1)*r}return Math.max(0,i)};if(e.startDate.isAfter(t.startDate)&&e.endDate.isBefore(t.endDate)){let t;switch(n){case 2:t=e.endDate.diff(e.startDate,`minute`)/60*r;break;default:t=e.endDate.diff(e.startDate,`day`)*r+r}return{x:i(),width:t}}if(e.startDate.isBefore(t.startDate)&&e.endDate.isBefore(t.endDate)){let a;switch(n){case 2:a=e.endDate.diff(t.startDate,`minute`)/60*r+.5*r;break;default:a=e.endDate.diff(t.startDate,`day`)*r+r}return{x:i(),width:a}}if(e.startDate.isAfter(t.startDate)&&e.endDate.isAfter(t.endDate)){let a;switch(n){case 2:a=t.endDate.diff(e.startDate,`minute`)/60*r;break;default:a=t.endDate.diff(e.startDate,`day`)*r+r}return{x:i(),width:a}}if(e.startDate.isBefore(t.startDate)&&e.endDate.isAfter(t.endDate)){let e;switch(n){case 2:e=t.endDate.diff(t.startDate,`minute`)/60*r;break;default:e=t.endDate.diff(t.startDate,`day`)*r+r}return{x:i(),width:e}}return{x:i(),width:0}},to=(e,t,n,r,i,a)=>{let o=e*56+4,s=t.hour(),c=n.hour(),l,u,d,p;switch(a){case 2:l=(0,f.default)(r),u=(0,f.default)(i),d=t.hour(s).minute(0),p=n.hour(c).minute(0);break;default:l=(0,f.default)(r).hour(0).minute(0),u=(0,f.default)(i).hour(23).minute(59),d=t,p=n}return{...eo({startDate:l,endDate:u},{startDate:d,endDate:p},a),y:o}},no=e=>{if(!e)return`white`;let t=[];for(let n=1;n<6;n+=2)t.push(parseInt(e.slice(n,n+2),16)/255);let n=t.map(e=>e<=.03928?e/12.92:((e+.055)/1.055)**2.4);return .2126*n[0]+.7152*n[1]+.0722*n[2]>.5?`black`:`white`},ro=X.button`
439
+ ${Wn}
406
440
  height: ${48}px;
407
441
  position: absolute;
408
442
  outline: none;
@@ -412,32 +446,38 @@ to{
412
446
  color: ${({theme:e})=>e.colors.textPrimary};
413
447
  width: 100%;
414
448
  cursor: pointer;
415
- `,Xa=q.div`
449
+ ${({$preview:e,theme:t})=>e&&`
450
+ opacity: 0.6;
451
+ pointer-events: none;
452
+ outline: 2px dashed ${t.colors.accent};
453
+ outline-offset: 1px;
454
+ `}
455
+ `,io=X.div`
416
456
  margin: 10px 16px;
417
457
  position: relative;
418
458
  display: flex;
419
459
  font-size: 10px;
420
460
  letter-spacing: 0.5px;
421
461
  line-height: 12px;
422
- `,Za=q.p`
462
+ `,ao=X.p`
463
+ ${Wn}
423
464
  ${Gn}
424
- ${Kn}
425
465
  display: inline;
426
- font-weight: ${({bold:e})=>e?`600`:`400`};
466
+ font-weight: ${({$bold:e})=>e?`600`:`400`};
427
467
  &:first-child {
428
468
  &::after {
429
469
  content: "|";
430
470
  margin: 0 3px;
431
471
  }
432
472
  }
433
- `,Qa=q.p`
473
+ `,oo=X.p`
474
+ ${Wn}
434
475
  ${Gn}
435
- ${Kn}
436
- `,$a=q.div`
476
+ `,so=X.div`
437
477
  position: sticky;
438
478
  left: ${212}px;
439
479
  overflow: hidden;
440
- `,eo=({row:e,data:t,zoom:n,onTileClick:r})=>{let{date:i}=Ir(),a=Cr(i,n),{y:o,x:s,width:c}=qa(e,a.startDate,a.endDate,t.startDate,t.endDate,n),{colors:l}=K();return(0,u.jsx)(Ya,{style:{left:`${s}px`,top:`${o}px`,backgroundColor:`${t.bgColor??l.defaultTile}`,width:`${c}px`,color:Ja(t.bgColor??``)},onClick:()=>r?.(t),children:(0,u.jsx)(Xa,{children:(0,u.jsxs)($a,{children:[(0,u.jsx)(Za,{bold:!0,children:t.title}),(0,u.jsx)(Za,{children:t.subtitle}),(0,u.jsx)(Qa,{children:t.description})]})})})},to=({data:e,zoom:t,onTileClick:n})=>{let r=(0,l.useCallback)(()=>{let r=0;return e.map((i,a)=>(a>0&&(r+=Math.max(e[a-1].data.length,1)),i.data.map((e,i)=>e.map(e=>(0,u.jsx)(eo,{row:i+r,data:e,zoom:t,onTileClick:n},e.id))))).flat(2)},[e,n,t]);return(0,u.jsx)(u.Fragment,{children:r()})};q.div`
480
+ `,co=({row:e,data:t,zoom:n,onTileClick:r,draggable:i,onDragStart:a,onDragEnd:o,preview:s})=>{let{date:c}=Ir(),l=Cr(c,n),{y:d,x:f,width:p}=to(e,l.startDate,l.endDate,t.startDate,t.endDate,n),{colors:m}=Y(),h=e=>{let{left:r}=e.currentTarget.getBoundingClientRect(),i=Math.floor((e.clientX-r)/Rr(n));e.dataTransfer.setData(`application/json`,JSON.stringify({id:t.id,grabOffset:i})),e.dataTransfer.effectAllowed=`move`,a?.(i)};return(0,u.jsx)(ro,{style:{left:`${f}px`,top:`${d}px`,backgroundColor:`${t.bgColor??m.defaultTile}`,width:`${p}px`,color:no(t.bgColor??``),...t.style},onClick:s?void 0:()=>r?.(t),draggable:i&&!s,onDragStart:i&&!s?h:void 0,onDragEnd:i&&!s?o:void 0,$preview:s,"aria-hidden":s||void 0,tabIndex:s?-1:void 0,children:(0,u.jsx)(io,{children:(0,u.jsxs)(so,{children:[(0,u.jsx)(ao,{$bold:!0,children:t.title}),(0,u.jsx)(ao,{children:t.subtitle}),(0,u.jsx)(oo,{children:t.description})]})})})},lo=({data:e,zoom:t,onTileClick:n,onTileMove:r,onTileDragStart:i,onTileDragEnd:a})=>{let o=(0,l.useCallback)(()=>{let o=0;return e.map((s,c)=>(c>0&&(o+=Math.max(e[c-1].data.length,1)),s.data.map((e,c)=>e.map(e=>(0,u.jsx)(co,{row:c+o,data:e,zoom:t,onTileClick:n,draggable:!!r&&e.draggable!==!1,onDragStart:t=>i?.({project:e,resourceId:s.id,grabOffset:t}),onDragEnd:a},e.id))))).flat(2)},[e,n,a,i,r,t]);return(0,u.jsx)(u.Fragment,{children:o()})};X.div`
441
481
  box-sizing: border-box;
442
482
  font-family: Inter;
443
483
  padding: 0 0.5rem;
@@ -448,7 +488,7 @@ to{
448
488
  flex-direction: column;
449
489
  background-color: white;
450
490
  z-index: 999;
451
- `,q.div`
491
+ `,X.div`
452
492
  width: 100%;
453
493
  margin-top: 2px;
454
494
  height: 1.5rem;
@@ -457,9 +497,9 @@ to{
457
497
  justify-content: space-between;
458
498
  letter-spacing: 0.5px;
459
499
  background-color: white;
460
- `,q.label`
500
+ `,X.label`
461
501
  font-size: 14px;
462
- `,q.input`
502
+ `,X.input`
463
503
  width: 45px;
464
504
  height: 18px;
465
505
  font-size: 14px;
@@ -467,10 +507,10 @@ to{
467
507
  border-radius: 4px;
468
508
  background-color: white;
469
509
  outline: none;
470
- `,q.input`
510
+ `,X.input`
471
511
  height: 18px;
472
512
  width: 18px;
473
- `,q.button`
513
+ `,X.button`
474
514
  width: 100%;
475
515
  font-size: 14px;
476
516
  outline: none;
@@ -482,9 +522,9 @@ to{
482
522
  &:hover {
483
523
  background-color: #c9e5ff;
484
524
  }
485
- `,q.form`
525
+ `,X.form`
486
526
  background-color: rgba(255, 255, 255, 0.75);
487
- `;var no=q.div`
527
+ `;var uo=X.div`
488
528
  padding: 8px 16px;
489
529
  position: absolute;
490
530
  background-color: ${({theme:e})=>e.colors.tooltip};
@@ -493,9 +533,9 @@ to{
493
533
  transition: all 0.25s;
494
534
  transition-timing-function: ease-out;
495
535
  pointer-events: none;
496
- `,ro=q.div`
536
+ `,fo=X.div`
497
537
  width: 100%;
498
- `,io=q.div`
538
+ `,po=X.div`
499
539
  position: absolute;
500
540
  width: 0;
501
541
  height: 0;
@@ -505,29 +545,29 @@ to{
505
545
  border-left: 14px solid transparent;
506
546
  border-right: 14px solid transparent;
507
547
  border-top: 14px solid ${({theme:e})=>e.colors.tooltip};
508
- `,ao=q.div``,oo=q.div`
548
+ `,mo=X.div``,ho=X.div`
509
549
  display: flex;
510
550
  align-items: center;
511
551
  &:first-child {
512
552
  margin-bottom: 8px;
513
553
  }
514
- `,so=q.div`
515
- ${Gn}
554
+ `,go=X.div`
555
+ ${Wn}
516
556
  display: flex;
517
557
  align-items: center;
518
558
  font-size: 10px;
519
559
  color: ${({theme:e})=>e.colors.textSecondary};
520
560
  line-height: 12px;
521
561
  letter-spacing: 0.5px;
522
- `,co=q.p`
523
- ${Gn}
562
+ `,_o=X.p`
563
+ ${Wn}
524
564
  margin-left: 4px;
525
565
  color: ${({theme:e})=>e.colors.textSecondary};
526
- `,lo=q.span`
566
+ `,vo=X.span`
527
567
  font-size: 10px;
528
568
  font-weight: 600;
529
569
  color: ${({theme:e})=>e.colors.warning};
530
- `,uo=({tooltipData:e,zoom:t})=>{let{taken:n,free:r,over:i}=Li(),{coords:a,disposition:o}=e,s=(0,l.useRef)(null),c=84;switch(t){case 0:c=84;break;case 1:c=50;break;case 2:c=50}return(0,l.useLayoutEffect)(()=>{if(!s.current)return;let{width:e}=s.current.getBoundingClientRect(),n;switch(t){case 2:n=e/2+c;break;default:n=e/2+c/2}s.current.style.left=`${a.x-n}px`,s.current.style.top=`${a.y+8}px`},[a.x,c,o.overtime,a.y,t]),(0,u.jsxs)(no,{ref:s,children:[(0,u.jsx)(ro,{children:(0,u.jsxs)(ao,{children:[(0,u.jsxs)(oo,{children:[(0,u.jsx)(Q,{iconName:`calendarWarning`,height:`14`}),(0,u.jsxs)(so,{children:[(0,u.jsx)(co,{children:`${n}: ${o.taken.hours}h ${o.taken.minutes}m`}),(o.overtime.hours>0||o.overtime.minutes>0)&&(0,u.jsxs)(u.Fragment,{children:[`\xA0`,`-`,`\xA0`,(0,u.jsx)(lo,{children:`${o.overtime.hours}h ${o.overtime.minutes}m ${i}`})]})]})]}),(0,u.jsxs)(oo,{children:[(0,u.jsx)(Q,{iconName:`calendarFree`,height:`14`}),(0,u.jsx)(so,{children:(0,u.jsx)(co,{children:`${r}: ${o.free.hours}h ${o.free.minutes}m`})})]})]})}),(0,u.jsx)(io,{})]})},fo=q.div`
570
+ `,yo=({tooltipData:e,zoom:t})=>{let{taken:n,free:r,over:i}=Gi(),{coords:a,disposition:o}=e,s=(0,l.useRef)(null),c=84;switch(t){case 0:c=84;break;case 1:c=50;break;case 2:c=50}return(0,l.useLayoutEffect)(()=>{if(!s.current)return;let{width:e}=s.current.getBoundingClientRect(),n;switch(t){case 2:n=e/2+c;break;default:n=e/2+c/2}s.current.style.left=`${a.x-n}px`,s.current.style.top=`${a.y+8}px`},[a.x,c,o.overtime,a.y,t]),(0,u.jsxs)(uo,{ref:s,children:[(0,u.jsx)(fo,{children:(0,u.jsxs)(mo,{children:[(0,u.jsxs)(ho,{children:[(0,u.jsx)(Q,{iconName:`calendarWarning`,height:`14`}),(0,u.jsxs)(go,{children:[(0,u.jsx)(_o,{children:`${n}: ${o.taken.hours}h ${o.taken.minutes}m`}),(o.overtime.hours>0||o.overtime.minutes>0)&&(0,u.jsxs)(u.Fragment,{children:[`\xA0`,`-`,`\xA0`,(0,u.jsx)(vo,{children:`${o.overtime.hours}h ${o.overtime.minutes}m ${i}`})]})]})]}),(0,u.jsxs)(ho,{children:[(0,u.jsx)(Q,{iconName:`calendarFree`,height:`14`}),(0,u.jsx)(go,{children:(0,u.jsx)(_o,{children:`${r}: ${o.free.hours}h ${o.free.minutes}m`})})]})]})}),(0,u.jsx)(po,{})]})},bo=X.div`
531
571
  display: flex;
532
572
  align-items: center;
533
573
  cursor: pointer;
@@ -537,7 +577,7 @@ to{
537
577
  border-radius: 30px;
538
578
  position: relative;
539
579
  transition: background-color 0.3s ease;
540
- `,po=q.div`
580
+ `,xo=X.div`
541
581
  width: 20px;
542
582
  height: 20px;
543
583
  background-color: ${({theme:e})=>e.colors.button};
@@ -546,9 +586,9 @@ to{
546
586
  top: 3px;
547
587
  left: ${({theme:e})=>e.mode===`light`?`4px`:`34px`};
548
588
  transition: left 0.3s ease;
549
- `,mo=q.div`
589
+ `,So=X.div`
550
590
  position: absolute;
551
591
  top: 5px;
552
592
  left: ${({theme:e})=>e.mode===`light`?`38px`:`4px`};
553
593
  transition: left 0.3s ease;
554
- `,ho=({toggleTheme:e})=>{let t=K();return(0,u.jsxs)(fo,{onClick:e,children:[(0,u.jsx)(po,{}),(0,u.jsx)(mo,{children:t.mode===`light`?(0,u.jsx)(Q,{iconName:`sun`,height:`16`,width:`16`}):(0,u.jsx)(Q,{iconName:`moon`,height:`16`,width:`16`})})]})};exports.Scheduler=ca;
594
+ `,Co=({toggleTheme:e})=>{let t=Y();return(0,u.jsxs)(bo,{onClick:e,children:[(0,u.jsx)(xo,{}),(0,u.jsx)(So,{children:t.mode===`light`?(0,u.jsx)(Q,{iconName:`sun`,height:`16`,width:`16`}):(0,u.jsx)(Q,{iconName:`moon`,height:`16`,width:`16`})})]})};exports.Scheduler=ga;