beesoft-components 0.2.26-4 → 0.2.26-5

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.
@@ -31030,7 +31030,7 @@ var InputRuleProcessor = (function () {
31030
31030
  this.formatNavigator.moveCursorRight();
31031
31031
  }
31032
31032
  }
31033
- else {
31033
+ else if (currentValue.length + 1 < characterCount) {
31034
31034
  this.addToInputSlot(key);
31035
31035
  this.formatRenderer.render();
31036
31036
  this.formatNavigator.moveCursorRight();
@@ -31159,6 +31159,7 @@ var FormatParser = (function () {
31159
31159
  function FormatParser(format, inputValue) {
31160
31160
  if (inputValue === void 0) { inputValue = ''; }
31161
31161
  this.inputValue = inputValue;
31162
+ this.previousOutputValue = '';
31162
31163
  this.inputElementSet = false;
31163
31164
  this.isInputFocused = false;
31164
31165
  this.instanceId = v4();
@@ -31212,10 +31213,12 @@ var FormatParser = (function () {
31212
31213
  event.stopPropagation();
31213
31214
  if (this.keyProcessor.processKeyPress(event)) {
31214
31215
  if (this.inputElement && this.onFormatChange) {
31215
- if (this.inputSlotCollection.allSlotsCompleted()) {
31216
+ if (this.inputSlotCollection.allSlotsCompleted() && this.previousOutputValue !== this.inputElement.innerHTML) {
31217
+ this.previousOutputValue = this.inputElement.innerHTML;
31216
31218
  this.onFormatChange(this.inputElement.innerHTML);
31217
31219
  }
31218
- else if (this.inputSlotCollection.allSlotsEmpty()) {
31220
+ else if (this.inputSlotCollection.allSlotsEmpty() && this.previousOutputValue !== undefined) {
31221
+ this.previousOutputValue = undefined;
31219
31222
  this.onFormatChange();
31220
31223
  }
31221
31224
  }
@@ -31766,14 +31769,13 @@ var FormattedInput = function (props, ref) {
31766
31769
  }, []);
31767
31770
  React.useEffect(function () {
31768
31771
  if (formatParser.current) {
31772
+ console.log('value', value);
31769
31773
  formatParser.current.inputValuePassed(value);
31770
31774
  }
31771
31775
  }, [value]);
31772
31776
  React.useEffect(function () {
31773
- var _a, _b;
31774
- if (formatParser.current) {
31775
- formatParser.current.dispose();
31776
- }
31777
+ var _a, _b, _c;
31778
+ (_a = formatParser.current) === null || _a === void 0 ? void 0 : _a.dispose();
31777
31779
  if (defaultFormat !== FormattedInputDefaultFormats.Custom) {
31778
31780
  var formatSetting = getPreDefinedFormat(defaultFormat);
31779
31781
  if (!formatSetting) {
@@ -31788,9 +31790,9 @@ var FormattedInput = function (props, ref) {
31788
31790
  formatParser.current = new FormatParser(format$8, value);
31789
31791
  }
31790
31792
  if (inputElementRef.current) {
31791
- (_a = formatParser.current) === null || _a === void 0 ? void 0 : _a.inputElementCreated(inputElementRef.current);
31793
+ (_b = formatParser.current) === null || _b === void 0 ? void 0 : _b.inputElementCreated(inputElementRef.current);
31792
31794
  }
31793
- (_b = formatParser.current) === null || _b === void 0 ? void 0 : _b.registerFormatChangeEvent(onFormatChange);
31795
+ (_c = formatParser.current) === null || _c === void 0 ? void 0 : _c.registerFormatChangeEvent(onFormatChange);
31794
31796
  }, [defaultFormat, format$8]);
31795
31797
  var onFormatChange = React.useCallback(function (value) {
31796
31798
  onChange === null || onChange === void 0 ? void 0 : onChange(value);
@@ -32171,6 +32173,7 @@ var reducer = function (state, action) {
32171
32173
  currentSelector: state.currentSelector,
32172
32174
  currentViewDate: state.currentViewDate,
32173
32175
  timeFormat: state.timeFormat,
32176
+ inputFormat: state.inputFormat,
32174
32177
  dateInitialized: true,
32175
32178
  };
32176
32179
  case DateTimeActionType.InitializeDates:
@@ -32784,14 +32787,14 @@ function DateTime(_a) {
32784
32787
  onDateStringChange(dateString);
32785
32788
  };
32786
32789
  var onFormatStringChange = function (formattedText) {
32787
- if (formattedText) {
32788
- onDateStringChange(formattedText);
32789
- }
32790
+ onDateStringChange(formattedText || '');
32790
32791
  };
32791
32792
  var onDateStringChange = function (dateString) {
32793
+ console.log("dateString '".concat(dateString, "'"));
32792
32794
  var inputDate = dateSelection !== DateSelectionType.DateRange
32793
32795
  ? parseDate(dateString, loadedLocale.current)
32794
32796
  : parseDateRange(dateString, loadedLocale.current);
32797
+ console.log('inputDate', inputDate);
32795
32798
  if (inputDate) {
32796
32799
  if (!Array.isArray(inputDate)) {
32797
32800
  dispatcher({
@@ -32813,6 +32816,7 @@ function DateTime(_a) {
32813
32816
  selectedEndDate: inputDate[1],
32814
32817
  });
32815
32818
  }
32819
+ onChange === null || onChange === void 0 ? void 0 : onChange(inputDate);
32816
32820
  }
32817
32821
  else if (dateString === '') {
32818
32822
  dispatcher({
package/build/index.js CHANGED
@@ -31028,7 +31028,7 @@ var InputRuleProcessor = (function () {
31028
31028
  this.formatNavigator.moveCursorRight();
31029
31029
  }
31030
31030
  }
31031
- else {
31031
+ else if (currentValue.length + 1 < characterCount) {
31032
31032
  this.addToInputSlot(key);
31033
31033
  this.formatRenderer.render();
31034
31034
  this.formatNavigator.moveCursorRight();
@@ -31157,6 +31157,7 @@ var FormatParser = (function () {
31157
31157
  function FormatParser(format, inputValue) {
31158
31158
  if (inputValue === void 0) { inputValue = ''; }
31159
31159
  this.inputValue = inputValue;
31160
+ this.previousOutputValue = '';
31160
31161
  this.inputElementSet = false;
31161
31162
  this.isInputFocused = false;
31162
31163
  this.instanceId = v4();
@@ -31210,10 +31211,12 @@ var FormatParser = (function () {
31210
31211
  event.stopPropagation();
31211
31212
  if (this.keyProcessor.processKeyPress(event)) {
31212
31213
  if (this.inputElement && this.onFormatChange) {
31213
- if (this.inputSlotCollection.allSlotsCompleted()) {
31214
+ if (this.inputSlotCollection.allSlotsCompleted() && this.previousOutputValue !== this.inputElement.innerHTML) {
31215
+ this.previousOutputValue = this.inputElement.innerHTML;
31214
31216
  this.onFormatChange(this.inputElement.innerHTML);
31215
31217
  }
31216
- else if (this.inputSlotCollection.allSlotsEmpty()) {
31218
+ else if (this.inputSlotCollection.allSlotsEmpty() && this.previousOutputValue !== undefined) {
31219
+ this.previousOutputValue = undefined;
31217
31220
  this.onFormatChange();
31218
31221
  }
31219
31222
  }
@@ -31764,14 +31767,13 @@ var FormattedInput = function (props, ref) {
31764
31767
  }, []);
31765
31768
  useEffect(function () {
31766
31769
  if (formatParser.current) {
31770
+ console.log('value', value);
31767
31771
  formatParser.current.inputValuePassed(value);
31768
31772
  }
31769
31773
  }, [value]);
31770
31774
  useEffect(function () {
31771
- var _a, _b;
31772
- if (formatParser.current) {
31773
- formatParser.current.dispose();
31774
- }
31775
+ var _a, _b, _c;
31776
+ (_a = formatParser.current) === null || _a === void 0 ? void 0 : _a.dispose();
31775
31777
  if (defaultFormat !== FormattedInputDefaultFormats.Custom) {
31776
31778
  var formatSetting = getPreDefinedFormat(defaultFormat);
31777
31779
  if (!formatSetting) {
@@ -31786,9 +31788,9 @@ var FormattedInput = function (props, ref) {
31786
31788
  formatParser.current = new FormatParser(format$8, value);
31787
31789
  }
31788
31790
  if (inputElementRef.current) {
31789
- (_a = formatParser.current) === null || _a === void 0 ? void 0 : _a.inputElementCreated(inputElementRef.current);
31791
+ (_b = formatParser.current) === null || _b === void 0 ? void 0 : _b.inputElementCreated(inputElementRef.current);
31790
31792
  }
31791
- (_b = formatParser.current) === null || _b === void 0 ? void 0 : _b.registerFormatChangeEvent(onFormatChange);
31793
+ (_c = formatParser.current) === null || _c === void 0 ? void 0 : _c.registerFormatChangeEvent(onFormatChange);
31792
31794
  }, [defaultFormat, format$8]);
31793
31795
  var onFormatChange = useCallback(function (value) {
31794
31796
  onChange === null || onChange === void 0 ? void 0 : onChange(value);
@@ -32169,6 +32171,7 @@ var reducer = function (state, action) {
32169
32171
  currentSelector: state.currentSelector,
32170
32172
  currentViewDate: state.currentViewDate,
32171
32173
  timeFormat: state.timeFormat,
32174
+ inputFormat: state.inputFormat,
32172
32175
  dateInitialized: true,
32173
32176
  };
32174
32177
  case DateTimeActionType.InitializeDates:
@@ -32782,14 +32785,14 @@ function DateTime(_a) {
32782
32785
  onDateStringChange(dateString);
32783
32786
  };
32784
32787
  var onFormatStringChange = function (formattedText) {
32785
- if (formattedText) {
32786
- onDateStringChange(formattedText);
32787
- }
32788
+ onDateStringChange(formattedText || '');
32788
32789
  };
32789
32790
  var onDateStringChange = function (dateString) {
32791
+ console.log("dateString '".concat(dateString, "'"));
32790
32792
  var inputDate = dateSelection !== DateSelectionType.DateRange
32791
32793
  ? parseDate(dateString, loadedLocale.current)
32792
32794
  : parseDateRange(dateString, loadedLocale.current);
32795
+ console.log('inputDate', inputDate);
32793
32796
  if (inputDate) {
32794
32797
  if (!Array.isArray(inputDate)) {
32795
32798
  dispatcher({
@@ -32811,6 +32814,7 @@ function DateTime(_a) {
32811
32814
  selectedEndDate: inputDate[1],
32812
32815
  });
32813
32816
  }
32817
+ onChange === null || onChange === void 0 ? void 0 : onChange(inputDate);
32814
32818
  }
32815
32819
  else if (dateString === '') {
32816
32820
  dispatcher({
@@ -34,4 +34,4 @@ object-assign
34
34
  *
35
35
  * This source code is licensed under the MIT license found in the
36
36
  * LICENSE file in the root directory of this source tree.
37
- */function ef(){return Ws||(Ws=1,function(t){"production"===process.env.NODE_ENV?t.exports=function(){if(Vs)return Hs;Vs=1;var t="function"==typeof Symbol&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,u=t?Symbol.for("react.context"):60110,c=t?Symbol.for("react.async_mode"):60111,l=t?Symbol.for("react.concurrent_mode"):60111,s=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,p=t?Symbol.for("react.suspense_list"):60120,d=t?Symbol.for("react.memo"):60115,h=t?Symbol.for("react.lazy"):60116,m=t?Symbol.for("react.block"):60121,y=t?Symbol.for("react.fundamental"):60117,v=t?Symbol.for("react.responder"):60118,b=t?Symbol.for("react.scope"):60119;function g(t){if("object"==typeof t&&null!==t){var p=t.$$typeof;switch(p){case e:switch(t=t.type){case c:case l:case r:case i:case o:case f:return t;default:switch(t=t&&t.$$typeof){case u:case s:case h:case d:case a:return t;default:return p}}case n:return p}}}function w(t){return g(t)===l}return Hs.AsyncMode=c,Hs.ConcurrentMode=l,Hs.ContextConsumer=u,Hs.ContextProvider=a,Hs.Element=e,Hs.ForwardRef=s,Hs.Fragment=r,Hs.Lazy=h,Hs.Memo=d,Hs.Portal=n,Hs.Profiler=i,Hs.StrictMode=o,Hs.Suspense=f,Hs.isAsyncMode=function(t){return w(t)||g(t)===c},Hs.isConcurrentMode=w,Hs.isContextConsumer=function(t){return g(t)===u},Hs.isContextProvider=function(t){return g(t)===a},Hs.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Hs.isForwardRef=function(t){return g(t)===s},Hs.isFragment=function(t){return g(t)===r},Hs.isLazy=function(t){return g(t)===h},Hs.isMemo=function(t){return g(t)===d},Hs.isPortal=function(t){return g(t)===n},Hs.isProfiler=function(t){return g(t)===i},Hs.isStrictMode=function(t){return g(t)===o},Hs.isSuspense=function(t){return g(t)===f},Hs.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===l||t===i||t===o||t===f||t===p||"object"==typeof t&&null!==t&&(t.$$typeof===h||t.$$typeof===d||t.$$typeof===a||t.$$typeof===u||t.$$typeof===s||t.$$typeof===y||t.$$typeof===v||t.$$typeof===b||t.$$typeof===m)},Hs.typeOf=g,Hs}():t.exports=(Bs||(Bs=1,"production"!==process.env.NODE_ENV&&function(){var t="function"==typeof Symbol&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,u=t?Symbol.for("react.context"):60110,c=t?Symbol.for("react.async_mode"):60111,l=t?Symbol.for("react.concurrent_mode"):60111,s=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,p=t?Symbol.for("react.suspense_list"):60120,d=t?Symbol.for("react.memo"):60115,h=t?Symbol.for("react.lazy"):60116,m=t?Symbol.for("react.block"):60121,y=t?Symbol.for("react.fundamental"):60117,v=t?Symbol.for("react.responder"):60118,b=t?Symbol.for("react.scope"):60119;function g(t){if("object"==typeof t&&null!==t){var p=t.$$typeof;switch(p){case e:var m=t.type;switch(m){case c:case l:case r:case i:case o:case f:return m;default:var y=m&&m.$$typeof;switch(y){case u:case s:case h:case d:case a:return y;default:return p}}case n:return p}}}var w=c,x=l,S=u,_=a,k=e,O=s,T=r,C=h,P=d,D=n,E=i,j=o,R=f,N=!1;function M(t){return g(t)===l}tf.AsyncMode=w,tf.ConcurrentMode=x,tf.ContextConsumer=S,tf.ContextProvider=_,tf.Element=k,tf.ForwardRef=O,tf.Fragment=T,tf.Lazy=C,tf.Memo=P,tf.Portal=D,tf.Profiler=E,tf.StrictMode=j,tf.Suspense=R,tf.isAsyncMode=function(t){return N||(N=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),M(t)||g(t)===c},tf.isConcurrentMode=M,tf.isContextConsumer=function(t){return g(t)===u},tf.isContextProvider=function(t){return g(t)===a},tf.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},tf.isForwardRef=function(t){return g(t)===s},tf.isFragment=function(t){return g(t)===r},tf.isLazy=function(t){return g(t)===h},tf.isMemo=function(t){return g(t)===d},tf.isPortal=function(t){return g(t)===n},tf.isProfiler=function(t){return g(t)===i},tf.isStrictMode=function(t){return g(t)===o},tf.isSuspense=function(t){return g(t)===f},tf.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===l||t===i||t===o||t===f||t===p||"object"==typeof t&&null!==t&&(t.$$typeof===h||t.$$typeof===d||t.$$typeof===a||t.$$typeof===u||t.$$typeof===s||t.$$typeof===y||t.$$typeof===v||t.$$typeof===b||t.$$typeof===m)},tf.typeOf=g}()),tf)}(Us)),Fs}function nf(){if(qs)return $s;qs=1;return $s="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}if("production"!==process.env.NODE_ENV){var rf=ef();Ys.exports=function(){if(Qs)return Xs;Qs=1;var t=ef(),e=lr(),n=nf(),r=function(){if(Ks)return Zs;Ks=1;var t=function(){};if("production"!==process.env.NODE_ENV){var e=nf(),n={},r=Function.call.bind(Object.prototype.hasOwnProperty);t=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}}function o(o,i,a,u,c){if("production"!==process.env.NODE_ENV)for(var l in o)if(r(o,l)){var s;try{if("function"!=typeof o[l]){var f=Error((u||"React class")+": "+a+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[l]+"`.");throw f.name="Invariant Violation",f}s=o[l](i,l,u,a,null,e)}catch(t){s=t}if(!s||s instanceof Error||t((u||"React class")+": type specification of "+a+" `"+l+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof s+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),s instanceof Error&&!(s.message in n)){n[s.message]=!0;var p=c?c():"";t("Failed "+a+" type: "+s.message+(null!=p?p:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},Zs=o}(),o=Function.call.bind(Object.prototype.hasOwnProperty),i=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(i=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}),Xs=function(u,c){var l="function"==typeof Symbol&&Symbol.iterator,s="@@iterator",f="<<anonymous>>",p={array:y("array"),bool:y("boolean"),func:y("function"),number:y("number"),object:y("object"),string:y("string"),symbol:y("symbol"),any:m(a),arrayOf:function(t){return m((function(e,r,o,i,a){if("function"!=typeof t)return new h("Property `"+a+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var u=e[r];if(!Array.isArray(u))return new h("Invalid "+i+" `"+a+"` of type `"+b(u)+"` supplied to `"+o+"`, expected an array.");for(var c=0;c<u.length;c++){var l=t(u,c,o,i,a+"["+c+"]",n);if(l instanceof Error)return l}return null}))},element:m((function(t,e,n,r,o){var i=t[e];return u(i)?null:new h("Invalid "+r+" `"+o+"` of type `"+b(i)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:m((function(e,n,r,o,i){var a=e[n];return t.isValidElementType(a)?null:new h("Invalid "+o+" `"+i+"` of type `"+b(a)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(t){return m((function(e,n,r,o,i){if(!(e[n]instanceof t)){var a=t.name||f;return new h("Invalid "+o+" `"+i+"` of type `"+((u=e[n]).constructor&&u.constructor.name?u.constructor.name:f)+"` supplied to `"+r+"`, expected instance of `"+a+"`.")}var u;return null}))},node:m((function(t,e,n,r,o){return v(t[e])?null:new h("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(t){return m((function(e,r,i,a,u){if("function"!=typeof t)return new h("Property `"+u+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var c=e[r],l=b(c);if("object"!==l)return new h("Invalid "+a+" `"+u+"` of type `"+l+"` supplied to `"+i+"`, expected an object.");for(var s in c)if(o(c,s)){var f=t(c,s,i,a,u+"."+s,n);if(f instanceof Error)return f}return null}))},oneOf:function(t){return Array.isArray(t)?m((function(e,n,r,o,i){for(var a=e[n],u=0;u<t.length;u++)if(d(a,t[u]))return null;var c=JSON.stringify(t,(function(t,e){return"symbol"===g(e)?String(e):e}));return new h("Invalid "+o+" `"+i+"` of value `"+String(a)+"` supplied to `"+r+"`, expected one of "+c+".")})):("production"!==process.env.NODE_ENV&&i(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a)},oneOfType:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var e=0;e<t.length;e++){var r=t[e];if("function"!=typeof r)return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+w(r)+" at index "+e+"."),a}return m((function(e,r,o,i,a){for(var u=0;u<t.length;u++)if(null==(0,t[u])(e,r,o,i,a,n))return null;return new h("Invalid "+i+" `"+a+"` supplied to `"+o+"`.")}))},shape:function(t){return m((function(e,r,o,i,a){var u=e[r],c=b(u);if("object"!==c)return new h("Invalid "+i+" `"+a+"` of type `"+c+"` supplied to `"+o+"`, expected `object`.");for(var l in t){var s=t[l];if(s){var f=s(u,l,o,i,a+"."+l,n);if(f)return f}}return null}))},exact:function(t){return m((function(r,o,i,a,u){var c=r[o],l=b(c);if("object"!==l)return new h("Invalid "+a+" `"+u+"` of type `"+l+"` supplied to `"+i+"`, expected `object`.");var s=e({},r[o],t);for(var f in s){var p=t[f];if(!p)return new h("Invalid "+a+" `"+u+"` key `"+f+"` supplied to `"+i+"`.\nBad object: "+JSON.stringify(r[o],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(t),null," "));var d=p(c,f,i,a,u+"."+f,n);if(d)return d}return null}))}};function d(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function h(t){this.message=t,this.stack=""}function m(t){if("production"!==process.env.NODE_ENV)var e={},r=0;function o(o,a,u,l,s,p,d){if(l=l||f,p=p||u,d!==n){if(c){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var y=l+":"+u;!e[y]&&r<3&&(i("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+l+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),e[y]=!0,r++)}}return null==a[u]?o?null===a[u]?new h("The "+s+" `"+p+"` is marked as required in `"+l+"`, but its value is `null`."):new h("The "+s+" `"+p+"` is marked as required in `"+l+"`, but its value is `undefined`."):null:t(a,u,l,s,p)}var a=o.bind(null,!1);return a.isRequired=o.bind(null,!0),a}function y(t){return m((function(e,n,r,o,i,a){var u=e[n];return b(u)!==t?new h("Invalid "+o+" `"+i+"` of type `"+g(u)+"` supplied to `"+r+"`, expected `"+t+"`."):null}))}function v(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(v);if(null===t||u(t))return!0;var e=function(t){var e=t&&(l&&t[l]||t[s]);if("function"==typeof e)return e}(t);if(!e)return!1;var n,r=e.call(t);if(e!==t.entries){for(;!(n=r.next()).done;)if(!v(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!v(o[1]))return!1}return!0;default:return!1}}function b(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":function(t,e){return"symbol"===t||!!e&&("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)}(e,t)?"symbol":e}function g(t){if(null==t)return""+t;var e=b(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function w(t){var e=g(t);switch(e){case"array":case"object":return"an "+e;case"boolean":case"date":case"regexp":return"a "+e;default:return e}}return h.prototype=Error.prototype,p.checkPropTypes=r,p.resetWarningCache=r.resetWarningCache,p.PropTypes=p,p},Xs}()(rf.isElement,!0)}else Ys.exports=function(){if(Js)return Gs;Js=1;var t=nf();function e(){}function n(){}return n.resetWarningCache=e,Gs=function(){function r(e,n,r,o,i,a){if(a!==t){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function o(){return r}r.isRequired=r;var i={array:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:e};return i.PropTypes=i,i}}()();var of=!1,af="production"!==process.env.NODE_ENV?zs.oneOfType([zs.number,zs.shape({enter:zs.number,exit:zs.number,appear:zs.number}).isRequired]):null;"production"!==process.env.NODE_ENV&&zs.oneOfType([zs.string,zs.shape({enter:zs.string,exit:zs.string,active:zs.string}),zs.shape({enter:zs.string,enterDone:zs.string,enterActive:zs.string,exit:zs.string,exitDone:zs.string,exitActive:zs.string})]);var uf=r.createContext(null),cf="unmounted",lf="exited",sf="entering",ff="entered",pf="exiting",df=function(t){var e,n;function o(e,n){var r;r=t.call(this,e,n)||this;var o,i=n&&!n.isMounting?e.enter:e.appear;return r.appearStatus=null,e.in?i?(o=lf,r.appearStatus=sf):o=ff:o=e.unmountOnExit||e.mountOnEnter?cf:lf,r.state={status:o},r.nextCallback=null,r}n=t,(e=o).prototype=Object.create(n.prototype),e.prototype.constructor=e,Ls(e,n),o.getDerivedStateFromProps=function(t,e){return t.in&&e.status===cf?{status:lf}:null};var i=o.prototype;return i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(t){var e=null;if(t!==this.props){var n=this.state.status;this.props.in?n!==sf&&n!==ff&&(e=sf):n!==sf&&n!==ff||(e=pf)}this.updateStatus(!1,e)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var t,e,n,r=this.props.timeout;return t=e=n=r,null!=r&&"number"!=typeof r&&(t=r.exit,e=r.enter,n=void 0!==r.appear?r.appear:e),{exit:t,enter:e,appear:n}},i.updateStatus=function(t,e){if(void 0===t&&(t=!1),null!==e)if(this.cancelNextCallback(),e===sf){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:m.findDOMNode(this);n&&function(t){t.scrollTop}(n)}this.performEnter(t)}else this.performExit();else this.props.unmountOnExit&&this.state.status===lf&&this.setState({status:cf})},i.performEnter=function(t){var e=this,n=this.props.enter,r=this.context?this.context.isMounting:t,o=this.props.nodeRef?[r]:[m.findDOMNode(this),r],i=o[0],a=o[1],u=this.getTimeouts(),c=r?u.appear:u.enter;!t&&!n||of?this.safeSetState({status:ff},(function(){e.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:sf},(function(){e.props.onEntering(i,a),e.onTransitionEnd(c,(function(){e.safeSetState({status:ff},(function(){e.props.onEntered(i,a)}))}))})))},i.performExit=function(){var t=this,e=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:m.findDOMNode(this);e&&!of?(this.props.onExit(r),this.safeSetState({status:pf},(function(){t.props.onExiting(r),t.onTransitionEnd(n.exit,(function(){t.safeSetState({status:lf},(function(){t.props.onExited(r)}))}))}))):this.safeSetState({status:lf},(function(){t.props.onExited(r)}))},i.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(t,e){e=this.setNextCallback(e),this.setState(t,e)},i.setNextCallback=function(t){var e=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,e.nextCallback=null,t(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},i.onTransitionEnd=function(t,e){this.setNextCallback(e);var n=this.props.nodeRef?this.props.nodeRef.current:m.findDOMNode(this),r=null==t&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=t&&setTimeout(this.nextCallback,t)}else setTimeout(this.nextCallback,0)},i.render=function(){var t=this.state.status;if(t===cf)return null;var e=this.props,n=e.children;e.in,e.mountOnEnter,e.unmountOnExit,e.appear,e.enter,e.exit,e.timeout,e.addEndListener,e.onEnter,e.onEntering,e.onEntered,e.onExit,e.onExiting,e.onExited,e.nodeRef;var o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(e,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return r.createElement(uf.Provider,{value:null},"function"==typeof n?n(t,o):r.cloneElement(r.Children.only(n),o))},o}(r.Component);function hf(){}df.contextType=uf,df.propTypes="production"!==process.env.NODE_ENV?{nodeRef:zs.shape({current:"undefined"==typeof Element?zs.any:function(t,e,n,r,o,i){var a=t[e];return zs.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(t,e,n,r,o,i)}}),children:zs.oneOfType([zs.func.isRequired,zs.element.isRequired]).isRequired,in:zs.bool,mountOnEnter:zs.bool,unmountOnExit:zs.bool,appear:zs.bool,enter:zs.bool,exit:zs.bool,timeout:function(t){var e=af;t.addEndListener||(e=e.isRequired);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return e.apply(void 0,[t].concat(r))},addEndListener:zs.func,onEnter:zs.func,onEntering:zs.func,onEntered:zs.func,onExit:zs.func,onExiting:zs.func,onExited:zs.func}:{},df.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:hf,onEntering:hf,onEntered:hf,onExit:hf,onExiting:hf,onExited:hf},df.UNMOUNTED=cf,df.EXITED=lf,df.ENTERING=sf,df.ENTERED=ff,df.EXITING=pf;var mf,yf,vf=df;function bf(t){var n=t.start,r=t.timeout,o=void 0===r?400:r,i=t.defaultStyle,a=t.transitionStyles,u=t.showTransitionOptions,c=void 0===u?"cubic-bezier(0, 0, 0.2, 1)":u,l=t.hideTransitionOptions,s=void 0===l?"linear":l,f=t.unmountOnExit,p=void 0!==f&&f,d=t.onEntering,h=t.onEntered,m=t.onExit,v=t.onExited,b=t.children,g=i||{transition:"opacity ".concat(o,"ms ").concat(c),opacity:0},w=a||{entering:{opacity:1},entered:{opacity:1},exiting:{transition:"opacity ".concat(o,"ms ").concat(s),opacity:0},exited:{transition:"opacity ".concat(o,"ms ").concat(s),opacity:0},unmounted:{}};return e(vf,y({in:n,timeout:o,onEntering:d,onEntered:h,onExit:m,onExited:v,unmountOnExit:p},{children:function(t){return b({state:t,defaultStyle:g,transitionStyles:w})}}))}!function(t){t[t.TopLeft=0]="TopLeft",t[t.TopRight=1]="TopRight",t[t.BottomLeft=2]="BottomLeft",t[t.BottomRight=3]="BottomRight"}(mf||(mf={})),function(t){t[t.TopLeft=0]="TopLeft",t[t.TopRight=1]="TopRight",t[t.BottomLeft=2]="BottomLeft",t[t.BottomRight=3]="BottomRight"}(yf||(yf={}));var gf,wf=function(){function t(){}return t.positionToTarget=function(t,e){void 0===e&&(e=mf.BottomLeft);var n=t.getBoundingClientRect(),r=0,o=0,i=window.scrollY;switch(e){case mf.BottomLeft:r=n.top+n.height+i,o=n.left;break;case mf.TopLeft:r=n.top+i,o=n.left;break;case mf.BottomRight:r=n.top+n.height+i,o=n.left+n.width;break;case mf.TopRight:r=n.top+i,o=n.left+n.width}return{top:r,left:o}},t.positionElementToTarget=function(e,n,r,o){void 0===r&&(r=yf.TopLeft),void 0===o&&(o=mf.BottomLeft);var i=t.positionToTarget(n,o),a=i.left,u=i.top,c=e.getBoundingClientRect();switch(r){case yf.TopLeft:break;case yf.TopRight:a-=c.width;break;case yf.BottomLeft:u-=c.height;break;case yf.BottomRight:u-=c.height,a-=c.width}return{top:u,left:a}},t.positionElementToTargetOnScreen=function(e,n,r,o){void 0===r&&(r=yf.TopLeft),void 0===o&&(o=mf.BottomLeft);var i=t.positionElementToTarget(e,n,r,o),a=i.left,u=i.top,c=e.getBoundingClientRect(),l=t.determineOffScreenLocation(c);if(l)if(r===yf.TopLeft&&o===mf.BottomLeft){if(l.right&&!l.bottom)return t.positionElementToTarget(e,n,yf.TopRight,mf.BottomRight);if(l.bottom&&!l.right)return t.positionElementToTarget(e,n,yf.BottomLeft,mf.TopLeft);if(l.right&&l.bottom)return t.positionElementToTarget(e,n,yf.BottomRight,mf.TopRight)}else if(r===yf.TopRight&&o===mf.BottomRight){if(l.left&&!l.bottom)return t.positionElementToTarget(e,n,yf.TopLeft,mf.BottomLeft);if(l.bottom&&!l.left)return t.positionElementToTarget(e,n,yf.BottomRight,mf.TopRight);if(l.left&&l.bottom)return t.positionElementToTarget(e,n,yf.BottomLeft,mf.TopLeft)}return{top:u,left:a}},t.determineOffScreenLocation=function(e){var n=t.getScreenDimensions(),r={left:e.left<0,top:e.top<0,right:e.left+e.width>n.width,bottom:e.top+e.height>n.height};return r.left||r.top||r.right||r.bottom?r:void 0},t.getScreenDimensions=function(){return{width:window.innerWidth,height:Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)}},t}();function xf(t){var n=t.visible,r=t.target,o=t.targetPosition,i=void 0===o?mf.BottomLeft:o,u=t.elementAlignment,c=void 0===u?yf.TopLeft:u,p=t.shouldTargetCloseOverlay,d=void 0===p||p,h=t.shouldMatchTargetWidth,m=void 0!==h&&h,v=t.shouldScrollCloseOverlay,b=void 0!==v&&v,g=t.shouldCheckZIndex,w=void 0!==g&&g,x=t.shouldRemainOnScreen,S=void 0!==x&&x,k=t.unmountWhenHidden,O=void 0!==k&&k,T=t.transitionDuration,C=void 0===T?400:T,P=t.showTransitionOptions,D=void 0===P?"cubic-bezier(0, 0, 0.2, 1)":P,E=t.hideTransitionOptions,j=void 0===E?"linear":E,R=t.shown,N=t.hidden,M=t.markupCreated,I=t.children,A=l(-1),L=A[0],V=A[1],z=l(n),Y=z[0],F=z[1],U=l(!1),H=U[0],B=U[1],W=a(!1),$=a(100),q=a({left:0,top:0,width:0}),Z=a(),K=a(),X=a(),Q=a(),G=a(),J=a();s((function(){return!0===S&&(J.current=new ResizeObserver(et)),function(){var t,e;!0===S&&(K.current&&(null===(t=J.current)||void 0===t||t.unobserve(K.current)),null===(e=J.current)||void 0===e||e.disconnect())}}),[]),s((function(){if(r&&b&&(Z.current=tt(r),X.current=Jl(Z.current,{overflow:"scroll, auto",overflowX:"scroll, auto",overflowY:"scroll, auto"}),"html"===X.current.tagName.toLowerCase()&&(X.current=document)),w){var t=function(t,e){for(var n=Array.from(document.querySelectorAll("body *")),r=[],o=0,i=n.length;o<i;o++){var a=getComputedStyle(n[o]);a[t]&&e(a[t])&&r.push(a[t])}return r}("zIndex",(function(t){return parseInt(t)>=100})).map((function(t){return parseInt(t)}));t.length>0&&($.current=Math.max.apply(Math,t)+1)}void 0!==n&&F(n)}),[r,n,b,w]);var tt=function(t){return t.target?t.target:t},et=function(t){if(K.current){var e=wf.getScreenDimensions(),n=t[t.length-1].target.getBoundingClientRect(),r=wf.determineOffScreenLocation(n);if(r){if(Z.current){var o=wf.positionElementToTargetOnScreen(K.current,Z.current,c,i);q.current=y(y({},q.current),o)}else r.right?q.current.left=e.width-n.width:r.left&&(q.current.left=0),r.bottom?q.current.top=e.height-n.height:r.top&&(q.current.top=0);nt()}}},nt=As((function(){W.current=!W.current,B(W.current)}),20),rt=f((function(){var t={top:"".concat(q.current.top,"px"),left:"".concat(q.current.left,"px"),zIndex:L};return m&&(t.width="".concat(q.current.width,"px")),t}),[H,L,m]);return e(bf,y({start:Y,timeout:C,showTransitionOptions:D,hideTransitionOptions:j,onEntering:function(){V($.current)},onEntered:function(){if(K.current){R&&R();var t=void 0;!d&&Z.current&&(t=[Z.current]);Q.current=function(t,e,n){var r=function(r){var i=r.target,a="hidden"!==t.style.display;t&&a&&!function(t,e){return t.isSameNode(e)||t.contains(e)}(t,i)&&!o(n,i)&&e(!1),e(!0)},o=function(t,e){if(!t)return!1;for(var n=0,r=t.length;n<r;n++)if(t[n].isSameNode(e)||t[n].contains(e))return!0;return!1};return document.addEventListener("mousedown",r),r}(K.current,(function(t){return!t&&F(!1)}),t),b&&(G.current=_.throttle((function(t){return K.current&&function(t,e){var n=t.target;return!!n&&!e.isSameNode(n)&&!e.contains(n)}(t,K.current)&&F(!1)}),100,{leading:!0}),X.current&&X.current.addEventListener("scroll",G.current))}},onExit:function(){var t;X.current&&G.current&&(X.current.removeEventListener("scroll",G.current),G.current=void 0),Q.current&&(t=Q.current,document.removeEventListener("mousedown",t))},onExited:function(){V(-1),N&&N()},unmountOnExit:O},{children:function(t){var n=t.state,r=t.defaultStyle,o=t.transitionStyles;return e("div",y({className:"bsc-fixed bsc-bg-white dark:bsc-bg-gray-900 bsc-border bsc-border-solid dark:bsc-text-white dark:bsc-border-white bsc-shadow",style:y(y(y({},rt),r),o[n]),ref:function(t){return t&&function(t){var e,n;if(K.current=t,M&&M(t),Z.current){var r=wf.positionElementToTarget(K.current,Z.current,c,i);q.current=y(y({},r),{width:Z.current.offsetWidth})}!0===S&&(null===(e=J.current)||void 0===e||e.unobserve(K.current),null===(n=J.current)||void 0===n||n.observe(K.current))}(t)}},{children:I}))}}))}let Sf;!function(t){t[t.DateDayMonthYear=0]="DateDayMonthYear",t[t.DateMonthDayYear=1]="DateMonthDayYear",t[t.DateYearMonthDay=2]="DateYearMonthDay",t[t.DateRangeDayMonthYear=3]="DateRangeDayMonthYear",t[t.DateRangeMonthDayYear=4]="DateRangeMonthDayYear",t[t.DateRangeYearMonthDay=5]="DateRangeYearMonthDay",t[t.Time12Hour=6]="Time12Hour",t[t.Time24Hour=7]="Time24Hour",t[t.Custom=8]="Custom"}(gf||(gf={}));const _f=new Uint8Array(16);function kf(){if(!Sf&&(Sf="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Sf))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Sf(_f)}const Of=[];for(let t=0;t<256;++t)Of.push((t+256).toString(16).slice(1));var Tf={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Cf(t,e,n){if(Tf.randomUUID&&!e&&!t)return Tf.randomUUID();const r=(t=t||{}).random||(t.rng||kf)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e){n=n||0;for(let t=0;t<16;++t)e[n+t]=r[t];return e}return function(t,e=0){return(Of[t[e+0]]+Of[t[e+1]]+Of[t[e+2]]+Of[t[e+3]]+"-"+Of[t[e+4]]+Of[t[e+5]]+"-"+Of[t[e+6]]+Of[t[e+7]]+"-"+Of[t[e+8]]+Of[t[e+9]]+"-"+Of[t[e+10]]+Of[t[e+11]]+Of[t[e+12]]+Of[t[e+13]]+Of[t[e+14]]+Of[t[e+15]]).toLowerCase()}(r)}var Pf,Df=function(){function t(){}return t.create=function(t){for(var e=[],n=0,r=0,o=t.formatParts.length;r<o;r++){var i=t.formatParts[r],a=n,u=a+i.characterCount;e.push(y({startPosition:a,endPosition:u},i)),n=u}return e},t}(),Ef=function(){function t(t,e){this.currentPartIndex=0,this.currentCursorPosition=0,this.inputSelection=null,this.instanceCollection=Nf.getInstance(),this.formatPartList=Df.create(t),this.inputSlotCollection=this.instanceCollection.getInputSlotInstance(e,t)}return t.prototype.getCursorPosition=function(){return this.currentCursorPosition},t.prototype.getCurrentPartIndex=function(){return this.currentPartIndex},t.prototype.setInputElement=function(t){this.inputElement=t},t.prototype.setCursorToCurrentPosition=function(){this.setCursorSelection(this.currentCursorPosition)},t.prototype.setCursorPosition=function(t){this.setCursorSelection(t)},t.prototype.setCursorSelection=function(t,e){this.createInputRangeSelection(),this.inputRange&&this.textNode&&(this.inputRange.setStart(this.textNode,t),this.inputRange.setEnd(this.textNode,e||t),this.currentCursorPosition=e||t,this.setPartIndexByCursorPosition())},t.prototype.isAtLastPart=function(){return this.currentPartIndex===this.formatPartList.length-1},t.prototype.moveHome=function(){var t=this.inputSlotCollection.getFirstSlot();this.setCursorSelection(t.startPosition)},t.prototype.moveEnd=function(){var t=this.inputSlotCollection.getLastSlotWithData(),e=t.startPosition+t.partText.length;this.setCursorSelection(e)},t.prototype.moveCursorLeft=function(){if(this.currentCursorPosition>0){var t=this.currentCursorPosition-1,e=this.formatPartList[this.currentPartIndex];if(t>=e.startPosition&&t<=e.endPosition)this.setCursorSelection(t);else for(var n=this.currentPartIndex-1;n>=0;n--)t>=(e=this.formatPartList[n]).startPosition&&t<=e.endPosition&&(e.isSeparator?this.setCursorSelection(this.formatPartList[n-1].endPosition):this.setCursorSelection(t))}},t.prototype.moveCursorRight=function(){var t=this.inputSlotCollection.getLastSlotWithData(),e=t.startPosition+t.partText.length;if(this.currentCursorPosition<e){var n=this.currentCursorPosition+1,r=this.formatPartList[this.currentPartIndex];if(n>=r.startPosition&&n<=r.endPosition)this.setCursorSelection(n);else for(var o=this.currentPartIndex+1,i=this.formatPartList.length;o<i;o++)n>=(r=this.formatPartList[o]).startPosition&&n<=r.endPosition&&(r.isSeparator?this.setCursorSelection(this.formatPartList[o+1].startPosition):this.setCursorSelection(n))}},t.prototype.moveToNextInputPart=function(){if(this.currentPartIndex<this.formatPartList.length-1){var t=this.findNextEditablePart();t&&(this.currentPartIndex=t.partIndex,this.setCursorSelection(t.startPosition))}},t.prototype.moveToPreviousInputPart=function(){if(this.currentPartIndex>0){var t=this.findPreviousEditablePart();t&&(this.currentPartIndex=t.partIndex,this.setCursorSelection(t.endPosition))}},t.prototype.findNextEditablePart=function(){return this.inputSlotCollection.getNextSlot(this.currentPartIndex)},t.prototype.findPreviousEditablePart=function(){return this.inputSlotCollection.getPreviousSlot(this.currentPartIndex)},t.prototype.setPartIndexByCursorPosition=function(){for(var t=0;t<this.formatPartList.length;t++){var e=this.formatPartList[t];if(this.currentCursorPosition>=e.startPosition&&this.currentCursorPosition<=e.endPosition){if(e.isSeparator){this.currentCursorPosition=this.formatPartList[t+1].startPosition,this.currentPartIndex=t+1;break}this.currentPartIndex=t;break}}},t.prototype.createInputRangeSelection=function(){var t,e;this.inputElement&&(this.inputSelection=window.getSelection(),this.inputRange=document.createRange(),null===(t=this.inputSelection)||void 0===t||t.removeAllRanges(),this.inputRange.selectNodeContents(this.inputElement),this.inputRange.collapse(!0),null===(e=this.inputSelection)||void 0===e||e.addRange(this.inputRange),this.inputElement.firstChild&&(this.textNode=this.inputElement.firstChild))},t}(),jf=function(){function t(){}return t.create=function(t){for(var e=[],n=0,r=t.length;n<r;n++){var o=t[n];o.isSeparator||e.push(y({partIndex:n,partText:"",isComplete:!1},o))}return e},t}(),Rf=function(){function t(t){this.inputSlots=jf.create(Df.create(t))}return t.prototype.clearAllSlots=function(){for(var t=0,e=this.inputSlots.length;t<e;t++)this.inputSlots[t].partText=""},t.prototype.getSlot=function(t){return this.inputSlots.find((function(e){return e.partIndex===t}))},t.prototype.getFirstSlot=function(){return this.inputSlots[0]},t.prototype.getNextSlot=function(t){var e=this.inputSlots.findIndex((function(e){return e.partIndex===t}));if(e>-1&&e+1<this.inputSlots.length)return this.inputSlots[e+1]},t.prototype.getPreviousSlot=function(t){var e=this.inputSlots.findIndex((function(e){return e.partIndex===t}));if(e>-1&&e-1>=0)return this.inputSlots[e-1]},t.prototype.getLastSlotWithData=function(){for(var t=this.inputSlots.findIndex((function(t){return!t.isComplete})),e=t,n=t+1,r=this.inputSlots.length;n<r;n++){this.inputSlots[n].partText.length>0&&(e=n)}return this.inputSlots[e]},t.prototype.allSlotsCompleted=function(){return this.inputSlots.every((function(t){return t.isComplete}))},t.prototype.allSlotsEmpty=function(){return this.inputSlots.every((function(t){return 0===t.partText.length}))},t}(),Nf=function(){function t(){this.navigatorInstances={},this.inputSlotInstances={}}return t.getInstance=function(){return this.instance||(this.instance=new t),this.instance},t.prototype.getNavigatorInstance=function(t,e){return this.navigatorInstances[t]||(this.navigatorInstances[t]=new Ef(e,t)),this.navigatorInstances[t]},t.prototype.getInputSlotInstance=function(t,e){return this.inputSlotInstances[t]||(this.inputSlotInstances[t]=new Rf(e)),this.inputSlotInstances[t]},t.prototype.removeInstances=function(t){this.navigatorInstances[t]&&delete this.navigatorInstances[t],this.inputSlotInstances[t]&&delete this.inputSlotInstances[t]},t}(),Mf=function(){function t(t,e){this.instanceCollection=Nf.getInstance(),this.formatPartList=Df.create(t),this.inputSlotCollection=this.instanceCollection.getInputSlotInstance(e,t)}return t.prototype.setInputElement=function(t){this.inputElement=t},t.prototype.render=function(){for(var t,e="",n=0,r=this.formatPartList.length;n<r;n++){var o=this.formatPartList[n];if(o.isSeparator)e+=o.inputText;else{var i=this.inputSlotCollection.getSlot(n);i&&(e+=i.partText+(null===(t=i.inputText)||void 0===t?void 0:t.repeat(i.characterCount-i.partText.length)))}}this.inputElement&&(this.inputElement.innerHTML=e)},t}();!function(t){t[t.Text=0]="Text",t[t.Numeric=1]="Numeric"}(Pf||(Pf={}));var If,Af,Lf,Vf,zf,Yf,Ff,Uf=function(){function t(){this.numberKeys=["0","1","2","3","4","5","6","7","8","9"],this.movementKeys=["ArrowLeft","ArrowRight","Home","End"],this.editingKeys=["Backspace","Delete"],this.ignoreKeys=["Shift","Alt","Control","Fn","Meta"]}return t.prototype.isNumberKey=function(t){return this.numberKeys.includes(t)},t.prototype.isMovementKey=function(t){return this.movementKeys.includes(t.key)},t.prototype.isEditingKey=function(t){return this.editingKeys.includes(t.key)},t.prototype.isIgnoreKey=function(t){return this.ignoreKeys.includes(t.key)},t}(),Hf=function(){function t(t){this._currentIndex=0,this.index=0,this.formatParts=Df.create(t)}return Object.defineProperty(t.prototype,"currentIndex",{get:function(){return this._currentIndex},enumerable:!1,configurable:!0}),t.prototype.hasNext=function(){return this.index<this.formatParts.length},t.prototype.next=function(){if(this.index<this.formatParts.length)return this._currentIndex=this.index++,this.formatParts[this._currentIndex]},t.prototype.peek=function(){if(this.index<this.formatParts.length)return this.formatParts[this.index]},t.prototype.reset=function(){this.index=0},t}(),Bf=function(){function t(t,e){this.format=t,this.instanceCollection=Nf.getInstance(),this.inputSlotCollection=this.instanceCollection.getInputSlotInstance(e,t),this.formatNavigator=this.instanceCollection.getNavigatorInstance(e,t),this.keyTypeChecker=new Uf,this.formatRenderer=new Mf(t,e),this.formatPartList=new Hf(t)}return t.prototype.setInputElement=function(t){this.formatRenderer.setInputElement(t)},t.prototype.processKeyPress=function(t){this.keyTypeChecker.isEditingKey(t)?this.processEditRules(t):this.processInputRules(t)},t.prototype.processInputValue=function(t){var e;this.inputSlotCollection.clearAllSlots(),this.formatPartList.reset();for(var n=0;this.formatPartList.hasNext();){var r=this.formatPartList.next();if(r&&!r.isSeparator)if(!0===(null===(e=this.formatPartList.peek())||void 0===e?void 0:e.isSeparator)){var o=this.formatPartList.currentIndex,i=this.formatPartList.next();if(i&&i.inputText){var a=t.indexOf(i.inputText,n);if((c=this.inputSlotCollection.getSlot(o))&&a>-1){var u=a-n>c.characterCount?n+c.characterCount:a;c.partText=t.substring(n,u),this.processSlotRules(c),n=a+i.characterCount}}}else{var c;(c=this.inputSlotCollection.getSlot(this.formatPartList.currentIndex))&&(c.partText=t.substring(n,n+c.characterCount),this.processSlotRules(c))}}},t.prototype.processEditRules=function(t){var e=this.inputSlotCollection.getSlot(this.formatNavigator.getCurrentPartIndex());if(e){var n=this.formatNavigator.getCursorPosition(),r=n-e.startPosition,o=this.format.deleteShiftsFormatPart||!1;switch(t.key){case"Backspace":if(e.startPosition===n){this.processSlotRules(e,!0);var i=this.inputSlotCollection.getPreviousSlot(e.partIndex);i&&(i.partText=i.partText.substring(0,i.partText.length-1),o&&this.shiftFormatParts(i),this.formatRenderer.render(),this.formatNavigator.setCursorPosition(i.startPosition+i.partText.length),this.processSlotRules(i,!0))}else e.partText=e.partText.substring(0,r-1)+e.partText.substring(r),o&&this.shiftFormatParts(e),this.formatRenderer.render(),this.formatNavigator.moveCursorLeft(),this.processSlotRules(e,!0);break;case"Delete":e.partText=e.partText.substring(0,r)+e.partText.substring(r+1),o&&this.shiftFormatParts(e),this.formatRenderer.render(),this.formatNavigator.setCursorToCurrentPosition(),this.processSlotRules(e,!0)}}},t.prototype.shiftFormatParts=function(t){for(var e,n=t;void 0!==(e=this.inputSlotCollection.getNextSlot(n.partIndex));){var r=e.partText.substring(0,1);e.partText=e.partText.substring(1),n.partText=n.partText+r,n=e}},t.prototype.processInputRules=function(t){var e=this.inputSlotCollection.getSlot(this.formatNavigator.getCurrentPartIndex());if(e){var n=t.key,r=e.characterCount,o=e.partText;if(e.valueType===Pf.Numeric){if(!this.keyTypeChecker.isNumberKey(n))return;var i=e.maximumValue,a=e.exceedingMaximumValueCausesTab||!1,u=e.padWithZeros||!1,c=parseInt(this.createNewValue(e,n));if(i&&c>i){if(!a)return;u&&(e.partText=e.partText.padStart(r,"0")),e.isComplete=!0;var l=this.inputSlotCollection.getNextSlot(e.partIndex);l&&!l.isComplete&&(l.partText=n),this.formatRenderer.render(),l&&this.formatNavigator.setCursorPosition(l.isComplete?l.startPosition:l.startPosition+1)}else o.length+1===r?(this.addToInputSlot(n),e.isComplete=!0,this.formatRenderer.render(),this.formatNavigator.isAtLastPart()?this.formatNavigator.moveCursorRight():this.formatNavigator.moveToNextInputPart()):(this.addToInputSlot(n),this.formatRenderer.render(),this.formatNavigator.moveCursorRight())}else o.length+1===r?(this.addToInputSlot(n),e.isComplete=!0,this.formatRenderer.render(),this.formatNavigator.moveToNextInputPart()):(this.addToInputSlot(n),this.formatRenderer.render(),this.formatNavigator.moveCursorRight())}},t.prototype.addToInputSlot=function(t){var e=this.inputSlotCollection.getSlot(this.formatNavigator.getCurrentPartIndex());e&&(e.partText=this.createNewValue(e,t))},t.prototype.createNewValue=function(t,e){var n=t.partText,r=this.formatNavigator.getCursorPosition();if(r>=t.startPosition+t.partText.length)return n+e;var o=r-t.startPosition;return n.substring(0,o)+e+n.substring(o)},t.prototype.processSlotRules=function(t,e){void 0===e&&(e=!1);var n=t.characterCount,r=t.allCharactersRequired||!1;if(t.valueType===Pf.Numeric){var o=t.minimumValue,i=t.maximumValue;if(r)t.isComplete=t.partText.length===n;else if(void 0!==o&&void 0!==i){var a=t.padWithZeros||!1,u=parseInt(t.partText);t.isComplete=u>=o&&u<=i,t.isComplete&&a&&!e&&(t.partText=t.partText.padStart(n,"0"))}else t.isComplete=t.partText.length>0}else t.isComplete=r?t.partText.length===n:t.partText.length>0},t}(),Wf=function(){function t(t,e){this.format=t,this.instanceCollection=Nf.getInstance(),this.formatNavigator=this.instanceCollection.getNavigatorInstance(e,t),this.ruleProcessor=new Bf(t,e),this.keyTypeChecker=new Uf,this.formatRenderer=new Mf(t,e)}return t.prototype.setInputElement=function(t){this.ruleProcessor.setInputElement(t),this.formatRenderer.setInputElement(t)},t.prototype.processMovementKey=function(t){var e=t.key,n=t.metaKey;switch(e){case"ArrowLeft":n?this.formatNavigator.moveHome():this.formatNavigator.moveCursorLeft();break;case"ArrowRight":n?this.formatNavigator.moveEnd():this.formatNavigator.moveCursorRight();break;case"Home":this.formatNavigator.moveHome();break;case"End":this.formatNavigator.moveEnd()}},t.prototype.processKeyPress=function(t){return!this.keyTypeChecker.isIgnoreKey(t)&&(this.keyTypeChecker.isMovementKey(t)?(this.processMovementKey(t),!1):(this.ruleProcessor.processKeyPress(t),!0))},t}(),$f=function(){function t(t,e){void 0===e&&(e=""),this.inputValue=e,this.inputElementSet=!1,this.isInputFocused=!1,this.instanceId=Cf(),this.instanceCollection=Nf.getInstance(),this.keyProcessor=new Wf(t,this.instanceId),this.formatNavigator=this.instanceCollection.getNavigatorInstance(this.instanceId,t),this.formatRenderer=new Mf(t,this.instanceId),this.inputSlotCollection=this.instanceCollection.getInputSlotInstance(this.instanceId,t),this.inputRuleProcessor=new Bf(t,this.instanceId)}return t.prototype.inputElementCreated=function(t){this.keyProcessor.setInputElement(t),this.formatNavigator.setInputElement(t),this.formatRenderer.setInputElement(t),this.inputElement=t,this.inputElementSet=!0,this.inputElementSet&&this.inputValue.length>0&&this.inputValuePassed(this.inputValue)},t.prototype.inputFocused=function(){var t=this;this.isInputFocused=!0,this.formatRenderer.render(),setTimeout((function(){return t.formatNavigator.setCursorToCurrentPosition()}))},t.prototype.inputBlurred=function(){this.isInputFocused=!1},t.prototype.inputValuePassed=function(t){var e=this;this.inputValue=t,this.inputElementSet&&this.inputValue.length>0&&(this.inputRuleProcessor.processInputValue(t),setTimeout((function(){e.formatRenderer.render(),e.isInputFocused&&e.formatNavigator.setCursorToCurrentPosition()})))},t.prototype.registerFormatChangeEvent=function(t){this.onFormatChange=t},t.prototype.keyDownHandler=function(t){"Tab"!==t.key&&(t.preventDefault(),t.stopPropagation(),this.keyProcessor.processKeyPress(t)&&this.inputElement&&this.onFormatChange&&(this.inputSlotCollection.allSlotsCompleted()?this.onFormatChange(this.inputElement.innerHTML):this.inputSlotCollection.allSlotsEmpty()&&this.onFormatChange()))},t.prototype.dispose=function(){this.instanceCollection.removeInstances(this.instanceId)},t}(),qf={formatParts:[{characterCount:2,placeholder:"D",inputText:"_",isSeparator:!1,allCharactersRequired:!1,valueType:Pf.Numeric,minimumValue:1,maximumValue:31,exceedingMaximumValueCausesTab:!0,padWithZeros:!0},{characterCount:1,placeholder:"/",inputText:"/",isSeparator:!0},{characterCount:2,placeholder:"M",inputText:"_",isSeparator:!1,allCharactersRequired:!1,valueType:Pf.Numeric,minimumValue:1,maximumValue:12,exceedingMaximumValueCausesTab:!0,padWithZeros:!0},{characterCount:1,placeholder:"/",inputText:"/",isSeparator:!0},{characterCount:4,placeholder:"Y",inputText:"_",isSeparator:!1,allCharactersRequired:!0,valueType:Pf.Numeric}]},Zf={formatParts:[{characterCount:2,placeholder:"M",inputText:"_",isSeparator:!1,allCharactersRequired:!1,valueType:Pf.Numeric,minimumValue:1,maximumValue:12,exceedingMaximumValueCausesTab:!0,padWithZeros:!0},{characterCount:1,placeholder:"/",inputText:"/",isSeparator:!0},{characterCount:2,placeholder:"D",inputText:"_",isSeparator:!1,allCharactersRequired:!1,valueType:Pf.Numeric,minimumValue:1,maximumValue:31,exceedingMaximumValueCausesTab:!0,padWithZeros:!0},{characterCount:1,placeholder:"/",inputText:"/",isSeparator:!0},{characterCount:4,placeholder:"Y",inputText:"_",isSeparator:!1,allCharactersRequired:!0,valueType:Pf.Numeric}]},Kf={formatParts:[{characterCount:4,placeholder:"Y",inputText:"_",isSeparator:!1,allCharactersRequired:!0,valueType:Pf.Numeric},{characterCount:1,placeholder:"-",inputText:"-",isSeparator:!0},{characterCount:2,placeholder:"M",inputText:"_",isSeparator:!1,allCharactersRequired:!1,valueType:Pf.Numeric,minimumValue:1,maximumValue:12,exceedingMaximumValueCausesTab:!0,padWithZeros:!0},{characterCount:1,placeholder:"-",inputText:"-",isSeparator:!0},{characterCount:2,placeholder:"D",inputText:"_",isSeparator:!1,allCharactersRequired:!1,valueType:Pf.Numeric,minimumValue:1,maximumValue:31,exceedingMaximumValueCausesError:!0,padWithZeros:!0}]},Xf={formatParts:[{characterCount:2,placeholder:"D",inputText:"_",isSeparator:!1,allCharactersRequired:!1,valueType:Pf.Numeric,minimumValue:1,maximumValue:31,exceedingMaximumValueCausesTab:!0,padWithZeros:!0},{characterCount:1,placeholder:"/",inputText:"/",isSeparator:!0},{characterCount:2,placeholder:"M",inputText:"_",isSeparator:!1,allCharactersRequired:!1,valueType:Pf.Numeric,minimumValue:1,maximumValue:12,exceedingMaximumValueCausesTab:!0,padWithZeros:!0},{characterCount:1,placeholder:"/",inputText:"/",isSeparator:!0},{characterCount:4,placeholder:"Y",inputText:"_",isSeparator:!1,allCharactersRequired:!0,valueType:Pf.Numeric},{characterCount:3,placeholder:" - ",inputText:" - ",isSeparator:!0},{characterCount:2,placeholder:"D",inputText:"_",isSeparator:!1,allCharactersRequired:!1,valueType:Pf.Numeric,minimumValue:1,maximumValue:31,exceedingMaximumValueCausesTab:!0,padWithZeros:!0},{characterCount:1,placeholder:"/",inputText:"/",isSeparator:!0},{characterCount:2,placeholder:"M",inputText:"_",isSeparator:!1,allCharactersRequired:!1,valueType:Pf.Numeric,minimumValue:1,maximumValue:12,exceedingMaximumValueCausesTab:!0,padWithZeros:!0},{characterCount:1,placeholder:"/",inputText:"/",isSeparator:!0},{characterCount:4,placeholder:"Y",inputText:"_",isSeparator:!1,allCharactersRequired:!0,valueType:Pf.Numeric}]},Qf={formatParts:[{characterCount:2,placeholder:"M",inputText:"_",isSeparator:!1,allCharactersRequired:!1,valueType:Pf.Numeric,minimumValue:1,maximumValue:12,exceedingMaximumValueCausesTab:!0,padWithZeros:!0},{characterCount:1,placeholder:"/",inputText:"/",isSeparator:!0},{characterCount:2,placeholder:"D",inputText:"_",isSeparator:!1,allCharactersRequired:!1,valueType:Pf.Numeric,minimumValue:1,maximumValue:31,exceedingMaximumValueCausesTab:!0,padWithZeros:!0},{characterCount:1,placeholder:"/",inputText:"/",isSeparator:!0},{characterCount:4,placeholder:"Y",inputText:"_",isSeparator:!1,allCharactersRequired:!0,valueType:Pf.Numeric},{characterCount:3,placeholder:" - ",inputText:" - ",isSeparator:!0},{characterCount:2,placeholder:"M",inputText:"_",isSeparator:!1,allCharactersRequired:!1,valueType:Pf.Numeric,minimumValue:1,maximumValue:12,exceedingMaximumValueCausesTab:!0,padWithZeros:!0},{characterCount:1,placeholder:"/",inputText:"/",isSeparator:!0},{characterCount:2,placeholder:"D",inputText:"_",isSeparator:!1,allCharactersRequired:!1,valueType:Pf.Numeric,minimumValue:1,maximumValue:31,exceedingMaximumValueCausesTab:!0,padWithZeros:!0},{characterCount:1,placeholder:"/",inputText:"/",isSeparator:!0},{characterCount:4,placeholder:"Y",inputText:"_",isSeparator:!1,allCharactersRequired:!0,valueType:Pf.Numeric}]},Gf={formatParts:[{characterCount:4,placeholder:"Y",inputText:"_",isSeparator:!1,allCharactersRequired:!0,valueType:Pf.Numeric},{characterCount:1,placeholder:"-",inputText:"-",isSeparator:!0},{characterCount:2,placeholder:"M",inputText:"_",isSeparator:!1,allCharactersRequired:!1,valueType:Pf.Numeric,minimumValue:1,maximumValue:12,exceedingMaximumValueCausesTab:!0,padWithZeros:!0},{characterCount:1,placeholder:"-",inputText:"-",isSeparator:!0},{characterCount:2,placeholder:"D",inputText:"_",isSeparator:!1,allCharactersRequired:!1,valueType:Pf.Numeric,minimumValue:1,maximumValue:31,exceedingMaximumValueCausesTab:!0,padWithZeros:!0},{characterCount:3,placeholder:" - ",inputText:" - ",isSeparator:!0},{characterCount:4,placeholder:"Y",inputText:"_",isSeparator:!1,allCharactersRequired:!0,valueType:Pf.Numeric},{characterCount:1,placeholder:"-",inputText:"-",isSeparator:!0},{characterCount:2,placeholder:"M",inputText:"_",isSeparator:!1,allCharactersRequired:!1,valueType:Pf.Numeric,minimumValue:1,maximumValue:12,exceedingMaximumValueCausesTab:!0,padWithZeros:!0},{characterCount:1,placeholder:"/",inputText:"/",isSeparator:!0},{characterCount:2,placeholder:"D",inputText:"_",isSeparator:!1,allCharactersRequired:!1,valueType:Pf.Numeric,minimumValue:1,maximumValue:31,exceedingMaximumValueCausesError:!0,padWithZeros:!0}]},Jf={formatParts:[{characterCount:2,placeholder:"H",inputText:"_",isSeparator:!1,allCharactersRequired:!1,valueType:Pf.Numeric,minimumValue:1,maximumValue:12,exceedingMaximumValueCausesTab:!0,padWithZeros:!0},{characterCount:1,placeholder:":",inputText:":",isSeparator:!0},{characterCount:2,placeholder:"M",inputText:"_",isSeparator:!1,allCharactersRequired:!1,valueType:Pf.Numeric,minimumValue:0,maximumValue:59,exceedingMaximumValueCausesError:!0,padWithZeros:!0},{characterCount:1,placeholder:" ",inputText:" ",isSeparator:!0},{characterCount:2,inputText:"_",isSeparator:!1,possibleValues:["AM","PM"]}]},tp={formatParts:[{characterCount:2,placeholder:"H",inputText:"_",isSeparator:!1,allCharactersRequired:!1,valueType:Pf.Numeric,minimumValue:0,maximumValue:23,exceedingMaximumValueCausesTab:!0,padWithZeros:!0},{characterCount:1,placeholder:":",inputText:":",isSeparator:!0},{characterCount:2,placeholder:"M",inputText:"_",isSeparator:!1,allCharactersRequired:!1,valueType:Pf.Numeric,minimumValue:1,maximumValue:59,exceedingMaximumValueCausesError:!0,padWithZeros:!0}]},ep=o(i((function(t,n){var r=t.value,o=void 0===r?"":r,i=t.format,l=t.defaultFormat,f=void 0===l?gf.Custom:l,p=t.readOnly,d=void 0!==p&&p,h=t.debounceTime,m=void 0===h?800:h,y=t.fillContainer,v=void 0===y||y,b=t.leftElement,g=t.rightElement,w=t.className,x=t.leftElementClassName,S=t.rightElementClassName,_=t.isSingleLine,O=void 0!==_&&_,T=t.allowSingleLineScroll,C=void 0!==T&&T,P=t.onChange,D=t.onFocus,E=t.onBlur,j=t.onElementCreate,R=t.onLeftElementClick,N=t.onRightElementClick,M=a(),I=a(),A=a();s((function(){return function(){var t;null===(t=A.current)||void 0===t||t.dispose()}}),[]),s((function(){A.current&&A.current.inputValuePassed(o)}),[o]),s((function(){var t,e;if(A.current&&A.current.dispose(),f!==gf.Custom){var n=V(f);if(!n)throw new Error("The selected format does not exist");A.current=new $f(n,o)}else{if(!i)throw new Error("The format property is required when the default format is custom");A.current=new $f(i,o)}I.current&&(null===(t=A.current)||void 0===t||t.inputElementCreated(I.current)),null===(e=A.current)||void 0===e||e.registerFormatChangeEvent(L)}),[f,i]);var L=u((function(t){null==P||P(t)}),[P]),V=u((function(t){switch(t){case gf.DateDayMonthYear:return qf;case gf.DateMonthDayYear:return Zf;case gf.DateYearMonthDay:return Kf;case gf.DateRangeDayMonthYear:return Xf;case gf.DateRangeMonthDayYear:return Qf;case gf.DateRangeYearMonthDay:return Gf;case gf.Time12Hour:return Jf;case gf.Time24Hour:return tp}}),[]),z=u((function(t){var e;null===(e=A.current)||void 0===e||e.inputFocused(),null==D||D(t)}),[D]),Y=u((function(t){var e;null===(e=A.current)||void 0===e||e.inputBlurred(),null==E||E(t)}),[E]),F=u((function(t){var e;null===(e=A.current)||void 0===e||e.keyDownHandler(t)}),[]),U=u((function(t){var e,n,r,o,i;null===(n=null===(e=M.current)||void 0===e?void 0:e.inputElement)||void 0===n||n.removeEventListener("keydown",F),M.current=t,null===(o=null===(r=M.current)||void 0===r?void 0:r.inputElement)||void 0===o||o.addEventListener("keydown",F),I.current=null===(i=M.current)||void 0===i?void 0:i.inputElement}),[]),H=u((function(){var t;null===(t=M.current)||void 0===t||t.focus()}),[]);return c(n,(function(){return{focus:H}})),e(k,{ref:function(t){return t&&U(t)},readOnly:d,debounceTime:m,fillContainer:v,leftElement:b,rightElement:g,className:w,leftElementClassName:x,rightElementClassName:S,isSingleLine:O,allowSingleLineScroll:C,onFocus:z,onBlur:Y,onElementCreate:j,onLeftElementClick:R,onRightElementClick:N})}))),np=p(void 0);function rp(t,e,n){var r,o;void 0===n&&(n=!0);var i=ho(t),a=Yr(t),u=function(t){Pr(1,arguments);var e=Er(t),n=e.getMonth();return e.setFullYear(e.getFullYear(),n+1,0),e.setHours(0,0,0,0),e}(t),c=po(a)-((null===(r=e.options)||void 0===r?void 0:r.weekStartsOn)||0);c=-1===c?6:c;for(var l=po(u)-((null===(o=e.options)||void 0===o?void 0:o.weekStartsOn)||0),s=function(t,e){var n;Pr(1,arguments);var r=t||{},o=Er(r.start),i=Er(r.end).getTime();if(!(o.getTime()<=i))throw new RangeError("Invalid interval");var a=[],u=o;u.setHours(0,0,0,0);var c=Number(null!==(n=null==e?void 0:e.step)&&void 0!==n?n:1);if(c<1||isNaN(c))throw new RangeError("`options.step` must be a number greater than 1");for(;u.getTime()<=i;)a.push(Er(u)),u.setDate(u.getDate()+c),u.setHours(0,0,0,0);return a}({start:a,end:u}),f=i+c>35?6:5,p=op(f,7,{dayValue:null,isCurrent:!0}),d=1,h=0,m=f;h<m;h++){for(var y=h>0?0:c;y<7;y++){var v=s[d-1];if(v.setHours(t.getHours(),t.getMinutes(),t.getSeconds()),p[h][y].dayValue=v,++d>i)break}if(d>i)break}if(c>0&&n)for(var b=0;b<c;b++)p[0][b].dayValue=Vl(a,c-b),p[0][b].isCurrent=!1;if(l>-1&&n)for(var g=6;g>l;g--)p[f-1][g].dayValue=jr(u,g-l),p[f-1][g].isCurrent=!1;return p}function op(t,e,n){for(var r,o,i=[],a=0,u=t;a<u;a++){for(var c=[],l=0,s=e;l<s;l++){var f=(o=void 0,"string"===(o=typeof(r=n))||"number"===o||"boolean"===o||r instanceof Date?n:y({},n));c.push(f)}i.push(c)}return i}function ip(t){for(var e,n=function(t,e){Pr(2,arguments);var n=e-po(t);return n<=0&&(n+=7),jr(t,n)}(new Date,(null===(e=t.options)||void 0===e?void 0:e.weekStartsOn)||0),r=[],o=0;o<7;o++)r.push(jr(n,o).toLocaleDateString(t.code,{weekday:"short"}));return r}function ap(t,e){var n=new Date(t.getTime()),r=10*Math.floor(n.getFullYear()/10);n.setFullYear(r);for(var o=function(t){Pr(1,arguments);var e=t||{},n=Er(e.start),r=Er(e.end).getTime();if(!(n.getTime()<=r))throw new RangeError("Invalid interval");var o=[],i=n;for(i.setHours(0,0,0,0),i.setMonth(0,1);i.getTime()<=r;)o.push(Er(i)),i.setFullYear(i.getFullYear()+1);return o}({start:n,end:Ar(n,9)}),i=op(3,4,""),a=0,u=0;u<3;u++)for(var c=0;c<4&&(i[u][c]=o[a++].toLocaleDateString(e.code,{year:"numeric"}),a!==o.length);c++);return i}function up(t){var e=new Date;return e.setHours(0,0,0,0),e.toLocaleTimeString(t.code)}function cp(t){return new Promise((function(e,n){import("date-fns/locale/".concat(t)).then((function(t){t&&t.default&&e(t.default),n("Locale did not load correctly")})).catch((function(r){var o=t.split("-");if(2===o.length){var i=o[0];import("date-fns/locale/".concat(i)).then((function(t){t&&t.default&&e(t.default),n("Locale did not load correctly")})).catch((function(t){return n(t)}))}else n(r)}))}))}function lp(t,e){var n=zl(t);if(isNaN(n.valueOf())){var r=Ll(t,"P pp",new Date,{locale:e});return isNaN(r.valueOf())?(r=Ll(t,"Pp",new Date,{locale:e}),isNaN(r.valueOf())?(r=Ll(t,"P HH:mm",new Date,{locale:e}),isNaN(r.valueOf())?(r=Ll(t,"P HH:mm aaa",new Date,{locale:e}),isNaN(r.valueOf())?(r=Ll(t,"P HH:mm:ss",new Date,{locale:e}),isNaN(r.valueOf())?(r=Ll(t,"P HH:mm:ss aaa",new Date,{locale:e}),isNaN(r.valueOf())?(r=Ll(t,"P",new Date,{locale:e}),isNaN(r.valueOf())?(r=Ll(t,"pp",new Date,{locale:e}),isNaN(r.valueOf())?(r=Ll(t,"p",new Date,{locale:e}),isNaN(r.valueOf())?void 0:r):r):r):r):r):r):r):r):r}return n}function sp(t,e){var n=t.split("-");if(2===n.length){var r=lp(n[0].trim(),e);if(r){var o=lp(n[1].trim(),e);if(o)return[r,o]}}}!function(t){t[t.DateTime=0]="DateTime",t[t.DateOnly=1]="DateOnly",t[t.TimeOnly=2]="TimeOnly",t[t.DateRange=3]="DateRange"}(If||(If={})),function(t){t[t.Day=0]="Day",t[t.Month=1]="Month",t[t.Year=2]="Year",t[t.Range=3]="Range"}(Af||(Af={})),function(t){t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long"}(Lf||(Lf={})),function(t){t[t.TwelveHour=0]="TwelveHour",t[t.TwentyFourHour=1]="TwentyFourHour"}(Vf||(Vf={})),function(t){t[t.Normal=0]="Normal",t[t.Range=1]="Range"}(zf||(zf={})),function(t){t[t.Right=0]="Right",t[t.Left=1]="Left",t[t.None=2]="None"}(Yf||(Yf={})),function(t){t[t.DaySelector=0]="DaySelector",t[t.MonthSelector=1]="MonthSelector",t[t.YearSelector=2]="YearSelector",t[t.TimeSelector=3]="TimeSelector",t[t.DateRangeSelector=4]="DateRangeSelector",t[t.SetViewDate=5]="SetViewDate",t[t.SetSelectedDate=6]="SetSelectedDate",t[t.SetSelectedDateRange=7]="SetSelectedDateRange",t[t.SetSelectedStartDate=8]="SetSelectedStartDate",t[t.SetSelectedEndDate=9]="SetSelectedEndDate",t[t.SetInputFormat=10]="SetInputFormat",t[t.ClearDates=11]="ClearDates",t[t.InitializeDates=12]="InitializeDates"}(Ff||(Ff={}));var fp=function(t,e){switch(e.type){case Ff.DaySelector:return y(y({},t),{currentSelector:Ff.DaySelector,currentViewDate:e.viewDate||t.currentViewDate});case Ff.MonthSelector:return y(y({},t),{currentSelector:Ff.MonthSelector,currentViewDate:e.viewDate||t.currentViewDate});case Ff.YearSelector:return y(y({},t),{currentSelector:Ff.YearSelector});case Ff.TimeSelector:return y(y({},t),{currentSelector:Ff.TimeSelector});case Ff.DateRangeSelector:return y(y({},t),{currentSelector:Ff.DateRangeSelector,currentViewDate:e.viewDate||t.currentViewDate});case Ff.SetViewDate:return y(y({},t),{currentViewDate:e.viewDate||new Date,dateInitialized:!0});case Ff.SetSelectedDate:return y(y({},t),{selectedDate:e.selectedDate||t.selectedDate,currentViewDate:e.viewDate||t.currentViewDate});case Ff.SetSelectedDateRange:return y(y({},t),{selectedStartDate:e.selectedStartDate||t.selectedStartDate,selectedEndDate:e.selectedEndDate||t.selectedEndDate});case Ff.SetSelectedStartDate:return y(y({},t),{selectedStartDate:e.selectedStartDate,selectedEndDate:void 0});case Ff.SetSelectedEndDate:return y(y({},t),{selectedEndDate:e.selectedEndDate});case Ff.SetInputFormat:return y(y({},t),{timeFormat:e.inputFormat===gf.Time24Hour?Vf.TwentyFourHour:e.timeFormat||Vf.TwelveHour,inputFormat:e.inputFormat});case Ff.ClearDates:return{currentSelector:t.currentSelector,currentViewDate:t.currentViewDate,timeFormat:t.timeFormat,dateInitialized:!0};case Ff.InitializeDates:var n=y(y({},t),{currentViewDate:(r=e.initialDate,r?Array.isArray(r)?r[0]:r:new Date),dateInitialized:!0});return Array.isArray(e.initialDate)?y(y({},n),{selectedStartDate:e.initialDate[0],selectedEndDate:e.initialDate[1]}):y(y({},n),{selectedDate:e.initialDate});default:return y(y({},t),{currentSelector:Ff.DaySelector})}var r};function pp(n){var r,o=this,i=n.viewDate,u=n.selectedDate,c=n.selectedStartDate,f=n.selectedEndDate,p=n.selectionMode,h=void 0===p?zf.Normal:p,m=n.locale,g=n.onDateSelected,w=n.selectableDate,x=n.isValidDate,_=n.dispatcher,k=l(),O=k[0],T=k[1],C=l(!1),P=C[0],D=C[1],E=a(),j=a(),R=l(),N=R[0],M=R[1],I=l(),A=I[0],L=I[1],V=l(),z=V[0],Y=V[1],F=d(np),U=F.calendarTemplate;s((function(){v(o,void 0,void 0,(function(){var t;return b(this,(function(e){switch(e.label){case 0:return(t=m)?[3,2]:[4,cp(Gl())];case 1:t=e.sent(),e.label=2;case 2:return[2,t]}}))})).then((function(t){E.current=t,j.current=ip(E.current),D(!0)})).catch((function(t){return console.error(t)}))}),[]),s((function(){i&&E.current&&T(rp(i,E.current,h===zf.Normal))}),[i,P]),s((function(){M(u?new Date(u.getFullYear(),u.getMonth(),u.getDate()):void 0)}),[u]),s((function(){L(c?new Date(c.getFullYear(),c.getMonth(),c.getDate(),0,0,0).getTime():void 0),Y(f?new Date(f.getFullYear(),f.getMonth(),f.getDate(),23,59,59).getTime():void 0)}),[c,f]),s((function(){E.current&&m&&(E.current=m,T(rp(i,E.current,h===zf.Normal)))}),[m]);var H=function(t){if(h===zf.Normal)null==_||_({type:Ff.SetSelectedDate,selectedDate:t,viewDate:t}),null==g||g(t);else{if(!g)throw new Error("Range selection mode requires onDateSelected to be set");!c||function(t,e){Pr(2,arguments);var n=Er(t),r=Er(e);return n.getTime()<r.getTime()}(t,c)?g(t):c&&!f?g(t,{setEndDate:!0}):c&&f&&g(t)}},B=function(t){return(null==N?void 0:N.toLocaleDateString())===t.toLocaleDateString()},W=function(t){if(A&&z){var e=t.getTime();return e>=A&&e<=z}return!1},$={viewDate:i,selectedDate:u,selectedStartDate:c,selectedEndDate:f,selectionMode:h,locale:m,weekDays:j.current,monthMatrix:O,selectableDate:w,isValidDate:x,onDateClicked:H,isSelectedDate:B,isInSelectedDateRange:W},q=U||function(t,n){return e("div",y({className:"bsc-w-full bc-dt-calendar"},{children:n}))};return e(ts,y({props:$,template:q},{children:t("div",y({className:"bsc-grid bsc-grid-cols-7 bsc-gap-3 bc-dt-day-row bsc-min-w-[329px]"},{children:[null===(r=j.current)||void 0===r?void 0:r.map((function(t,n){return e("div",y({className:"bsc-text-center bsc-font-bold bc-dt-day-cell"},{children:t}),n)})),null==O?void 0:O.map((function(t,n){return t.map((function(t,r){var o,i,a,u=null!==t.dayValue&&(void 0===w||w(t.dayValue)),c=S("bsc-text-center bsc-py-1",((o={"bsc-text-gray-400":!t.isCurrent})["".concat(F.colors.selectedDateColor||"bsc-bg-blue-100"," dark:bsc-bg-white dark:bsc-text-black bsc-rounded-full")]=t&&t.dayValue&&(N&&B(t.dayValue)||A&&!z&&zr(A,t.dayValue)||A&&z&&W(t.dayValue)),o["bsc-cursor-pointer"]=u,o["bsc-text-red-300 bsc-cursor-not-allowed"]=!u,o["".concat(F.colors.todayDateColor||"bsc-bg-green-100"," dark:bsc-text-black bsc-rounded-full")]=t.dayValue&&function(t){return Pr(1,arguments),zr(t,Date.now())}(t.dayValue)&&!B(t.dayValue),o),"bc-dt-date-cell");return e("div",y({className:c,onClick:function(){return t&&t.dayValue&&u&&(void 0===x||x(t.dayValue))&&H(t.dayValue)}},{children:null===(i=t.dayValue)||void 0===i?void 0:i.getDate().toLocaleString(null===(a=E.current)||void 0===a?void 0:a.code)}),n.toString()+r.toString())}))}))]}))}))}function dp(n){var r=n.title,o=n.scrollerType,i=n.onTitleClicked,a=n.onMovePrevious,u=n.onMoveNext,c=d(np).dateScrollerTemplate||function(t,n){return e("div",y({className:"bsc-w-full bsc-flex bsc-flex-row bsc-py-1 bsc-px-2 bc-dt-scroller"},{children:n}))};return t(ts,y({props:{title:r,scrollerType:o,onTitleClicked:i,onMovePrevious:a,onMoveNext:u},template:c},{children:[e("div",y({className:"bsc-flex-shrink bsc-cursor-pointer bc-dt-scroller-left"},{children:e("button",y({className:"focus:bsc-outline-none",onClick:a},{children:e(Or,{icon:["fas","angle-left"]})}))})),e("div",y({className:"bsc-flex-grow bsc-text-center bsc-cursor-pointer bc-dt-scroller-title",onClick:i},{children:r})),e("div",y({className:"bsc-flex-shrink bsc-cursor-pointer bc-dt-scroller-right"},{children:e("button",y({className:"focus:bsc-outline-none",onClick:u},{children:e(Or,{icon:["fas","angle-right"]})}))}))]}))}function hp(n){var r=n.selectedDate,o=n.viewDate,i=n.locale,a=n.showTimeSelector,u=n.selectableDate,c=n.isValidDate,l=n.onChange,s=n.dispatcher;return t("div",y({className:"bsc-p-2 bc-dt-day-selector"},{children:[e(dp,{title:o?o.toLocaleDateString(i.code,{month:"long",year:"numeric"}):"",scrollerType:Af.Day,onTitleClicked:function(){s({type:Ff.MonthSelector})},onMovePrevious:function(){o&&s({type:Ff.SetViewDate,viewDate:Xl(o,1)})},onMoveNext:function(){o&&s({type:Ff.SetViewDate,viewDate:Rr(o,1)})}}),e(pp,{viewDate:o,selectedDate:r,locale:i,selectableDate:u,isValidDate:c,onDateSelected:l,dispatcher:s}),a&&e("div",y({className:"bsc-w-full bsc-flex bsc-flex-row bsc-p-2 bsc-justify-center bc-dt-time-value-wrapper"},{children:e("div",y({className:"bsc-p-2 bsc-cursor-pointer hover:bsc-bg-gray-300 dark:hover:bsc-bg-white dark:hover:bsc-text-black dark:bsc-text-white bc-dt-time-value",onClick:function(){s({type:Ff.TimeSelector})}},{children:(null==r?void 0:r.toLocaleTimeString(i.code))||up(i)}))}))]}))}function mp(n){var r=n.viewDate,o=n.locale,i=n.dateSelection,u=void 0===i?If.DateTime:i,c=n.dispatcher,l=a(function(t){for(var e=new Date(Date.UTC(2020,0,1)),n=[[{monthNumber:0,monthName:""},{monthNumber:0,monthName:""},{monthNumber:0,monthName:""},{monthNumber:0,monthName:""}],[{monthNumber:0,monthName:""},{monthNumber:0,monthName:""},{monthNumber:0,monthName:""},{monthNumber:0,monthName:""}],[{monthNumber:0,monthName:""},{monthNumber:0,monthName:""},{monthNumber:0,monthName:""},{monthNumber:0,monthName:""}]],r=0,o=0;o<3;o++)for(var i=0;i<4;i++)n[o][i]={monthNumber:r,monthName:Rr(e,r++).toLocaleDateString(t.code,{month:"short"})};return n}(o));return t("div",y({className:"bsc-p-2 bc-dt-month-selector",style:{minWidth:"20rem"}},{children:[e(dp,{title:r.toLocaleDateString(o.code,{year:"numeric"}),scrollerType:Af.Month,onTitleClicked:function(){c({type:Ff.YearSelector})},onMovePrevious:function(){var t=Ql(r,1);c({type:Ff.SetViewDate,viewDate:t})},onMoveNext:function(){var t=Ar(r,1);c({type:Ff.SetViewDate,viewDate:t})}}),e("div",y({className:"bsc-w-full bsc-grid bsc-grid-cols-4 bsc-gap-4 bc-dt-month-grid"},{children:l.current.map((function(t,n){return t.map((function(t,o){return e("div",y({className:"bsc-text-center bsc-cursor-pointer bc-dt-month-cell",onClick:function(){return e=t.monthNumber,void c({type:u!==If.DateRange?Ff.DaySelector:Ff.DateRangeSelector,viewDate:Zl(r,e)});var e}},{children:t.monthName}),n.toString()+o.toString())}))}))}))]}))}function yp(n){var r=n.viewDate,o=n.selectedStartDate,i=n.selectedEndDate,a=n.locale,u=n.onChange,c=n.dispatcher,l=Rr(r,1),s=function(t,e){e&&e.setEndDate?(c({type:Ff.SetSelectedEndDate,selectedEndDate:t}),o&&(null==u||u([o,t]))):c({type:Ff.SetSelectedStartDate,selectedStartDate:t})};return t("div",y({className:"bsc-flex bsc-flex-col bc-dt-range-selector"},{children:[e("div",y({className:"bsc-flex-shrink bc-dt-range-scroller-wrapper"},{children:e(dp,{title:"".concat(r.toLocaleDateString(a.code,{month:"long"})," ").concat(r.toLocaleDateString(a.code,{year:"numeric"})," - ").concat(l.toLocaleDateString(a.code,{month:"long"})," ").concat(l.toLocaleDateString(a.code,{year:"numeric"})),scrollerType:Af.Range,onTitleClicked:function(){c({type:Ff.MonthSelector})},onMovePrevious:function(){r&&c({type:Ff.SetViewDate,viewDate:Xl(r,1)})},onMoveNext:function(){r&&c({type:Ff.SetViewDate,viewDate:Rr(r,1)})}})})),e("div",y({className:"bsc-flex-grow"},{children:t("div",y({className:"bsc-flex bsc-flex-row bsc-py-1 bsc-px-2 bc-dt-range-wrapper"},{children:[e("div",y({className:"bsc-border-r bsc-border-solid bsc-border-gray-400 bsc-pr-4 bc-dt-range-calendar-1"},{children:e(pp,{viewDate:r,selectedStartDate:o,selectedEndDate:i,selectionMode:zf.Range,onDateSelected:s,locale:a,dispatcher:c})})),e("div",y({className:"bsc-pl-4 bc-dt-range-calendar-2"},{children:e(pp,{viewDate:l,selectedStartDate:o,selectedEndDate:i,selectionMode:zf.Range,onDateSelected:s,locale:a,dispatcher:c})}))]}))}))]}))}function vp(n){var r=n.viewDate,o=n.showDateSelector,i=n.locale,u=n.timeFormat,c=void 0===u?Vf.TwelveHour:u,f=n.timeConstraints,p=n.onChange,d=n.dispatcher,h=a(c===Vf.TwelveHour?11:23),m=a(c===Vf.TwelveHour?["12","01","02","03","04","05","06","07","08","09","10","11"]:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23"]),v=a(function(t,e,n){for(var r=[],o=t;o<=e;o++)r.push(n?n(o):o);return r}(0,59,(function(t){return t.toString().padStart(2,"0")}))),b=a(["AM","PM"]),g=a(_.cloneDeep(r)),w=function(t){return t>11?t-12:t},x=l(w(r.getHours())),k=x[0],O=x[1],T=l(r.getMinutes()),C=T[0],P=T[1],D=l(r.getHours()<=12?0:1),E=D[0],j=D[1],R=a(r.toLocaleDateString(i.code));s((function(){var t=r.getHours(),e=r.getMinutes();if(t!==k&&O(c===Vf.TwelveHour?w(t):t),e!==C&&P(e),c===Vf.TwelveHour){var n=t<=11?0:1;n!==E&&j(n)}}),[r]);var N=function(){var t=0===E?1:0;j(t),M(k,C,t)},M=function(t,e,n){var r=c===Vf.TwelveHour&&1===n?t+12:t;g.current.setHours(r,e),d({type:Ff.SetSelectedDate,selectedDate:g.current,viewDate:g.current}),null==p||p(g.current)},I=S("bsc-w-full bsc-grid bsc-grid-rows-3 bsc-gap-4 bc-dt-time-grid",{"bsc-grid-cols-4":c===Vf.TwelveHour,"bsc-grid-cols-3":c===Vf.TwentyFourHour}),A=S("bsc-text-center bsc-cursor-pointer hover:bsc-bg-gray-300 dark:bsc-text-white dark:hover:bsc-bg-white dark:hover:bsc-text-black bc-dt-time-date-value",{"bsc-col-span-4":c===Vf.TwelveHour,"bsc-col-span-3":c===Vf.TwentyFourHour});return e("div",y({className:"bsc-flex bsc-flex-row bsc-justify-center bsc-p-2 bc-dt-time-selector",style:{minWidth:c===Vf.TwelveHour?"15rem":"11rem"}},{children:t("div",y({className:I},{children:[o&&e("div",y({className:A,onClick:function(){d({type:Ff.DaySelector})}},{children:R.current})),e("div",y({className:"bsc-text-center bsc-cursor-pointer bc-dt-time-hour-increase"},{children:e("button",y({className:"focus:bsc-outline-none",onClick:function(){var t,e=(null===(t=null==f?void 0:f.hours)||void 0===t?void 0:t.step)||1,n=k<h.current?k+e:0;O(n),M(n,C,E)}},{children:e(Or,{icon:["fas","chevron-up"]})}))})),e("div",{children:" "}),e("div",y({className:"bsc-text-center bsc-cursor-pointer bc-dt-time-minute-increase"},{children:e("button",y({className:"focus:bsc-outline-none",onClick:function(){var t,e,n,r=(null===(t=null==f?void 0:f.minutes)||void 0===t?void 0:t.step)||1,o=C+r<((null===(e=null==f?void 0:f.minutes)||void 0===e?void 0:e.max)||59)?C+r:(null===(n=null==f?void 0:f.minutes)||void 0===n?void 0:n.min)||0;P(o),M(k,o,E)}},{children:e(Or,{icon:["fas","chevron-up"]})}))})),c===Vf.TwelveHour&&e("div",y({className:"bsc-text-center bsc-cursor-pointer bc-dt-time-meridian-increase"},{children:e("button",y({className:"focus:bsc-outline-none",onClick:N},{children:e(Or,{icon:["fas","chevron-up"]})}))})),e("div",y({className:"bsc-text-center bc-dt-time-hour-value"},{children:m.current[k]})),e("div",y({className:"bsc-text-center bc-dt-time-separator"},{children:":"})),e("div",y({className:"bsc-text-center bc-dt-time-minute-value"},{children:v.current[C]})),c===Vf.TwelveHour&&e("div",y({className:"bsc-text-center bc-dt-time-meridian-value"},{children:b.current[E]})),e("div",y({className:"bsc-text-center bsc-cursor-pointer bc-dt-time-hour-decrease"},{children:e("button",y({className:"focus:bsc-outline-none",onClick:function(){var t,e=(null===(t=null==f?void 0:f.hours)||void 0===t?void 0:t.step)||1,n=k>0?k-e:h.current;O(n),M(n,C,E)}},{children:e(Or,{icon:["fas","chevron-down"]})}))})),e("div",{children:" "}),e("div",y({className:"bsc-text-center bsc-cursor-pointer bc-dt-time-minute-decrease"},{children:e("button",y({className:"focus:bsc-outline-none",onClick:function(){var t,e,n,r=(null===(t=null==f?void 0:f.minutes)||void 0===t?void 0:t.step)||1,o=C-r>=((null===(e=null==f?void 0:f.minutes)||void 0===e?void 0:e.min)||0)?C-r:((null===(n=null==f?void 0:f.minutes)||void 0===n?void 0:n.max)||60)-r;P(o),M(k,o,E)}},{children:e(Or,{icon:["fas","chevron-down"]})}))})),c===Vf.TwelveHour&&e("div",y({className:"bsc-text-center bsc-cursor-pointer bc-dt-time-meridian-decrease"},{children:e("button",y({className:"focus:bsc-outline-none",onClick:N},{children:e(Or,{icon:["fas","chevron-down"]})}))}))]}))}))}function bp(n){var r=n.viewDate,o=n.locale,i=n.dispatcher,a=ap(r,o);return t("div",y({className:"bc-dt-year-selector",style:{minWidth:"20rem"}},{children:[e(dp,{title:"".concat(a[0][0].toString()," - ").concat(a[2][1].toString()),scrollerType:Af.Year,onMovePrevious:function(){var t=Ql(r,10);i({type:Ff.SetViewDate,viewDate:t})},onMoveNext:function(){var t=Ar(r,10);i({type:Ff.SetViewDate,viewDate:t})}}),e("div",y({className:"bsc-w-full bc-dt-year-wrapper"},{children:e("div",y({className:"bsc-grid bsc-grid-cols-4 bsc-gap-4 bc-dt-year-grid"},{children:a.map((function(t,n){return t.map((function(t,o){return t.length>0?e("div",y({className:"bsc-text-center bsc-cursor-pointer bc-dt-year-cell",onClick:function(){return e=parseInt(t),void i({type:Ff.MonthSelector,viewDate:Kl(r,e)});var e}},{children:t}),n.toString()+o.toString()):e("div",{},n.toString()+o.toString())}))}))}))}))]}))}function gp(r){var o,i=r.value,u=r.readOnly,c=void 0!==u&&u,f=r.label,p=r.useDefaultDateValue,d=void 0!==p&&p,m=r.useFormattedInput,v=void 0!==m&&m,b=r.allowClear,g=void 0!==b&&b,w=r.locale,x=r.className,_=r.dateSelection,O=void 0===_?If.DateTime:_,T=r.dateFormat,C=r.timeConstraints,P=r.icon,D=r.iconPosition,E=void 0===D?Yf.Right:D,j=r.inputElement,R=r.colors,N=void 0===R?{inputBgColor:"bsc-bg-white",readOnlyInputBgColor:"bsc-bg-gray-200",selectedDateColor:"bsc-bg-blue-100",todayDateColor:"bsc-bg-green-100"}:R,M=r.selectableDate,I=r.isValidDate,A=r.onChange,L=r.calendarTemplate,V=r.dateScrollerTemplate,z=r.inputTemplate,Y=l(!1),F=Y[0],U=Y[1],H=l(),B=H[0],W=H[1],$=a(),q=a(!1),Z=a(w||Gl()),K=a(),X=a(),Q=a(),G=a({calendarTemplate:L,dateScrollerTemplate:V,colors:N});s((function(){Z.current&&J(Z.current)}),[Z]),s((function(){w&&J(w)}),[w]),s((function(){if(i){var t=tt();ot({type:Ff.InitializeDates,initialDate:t})}}),[i,K.current]),s((function(){if(O&&K.current&&K.current.code){var t=function(t){return new Date(2023,11,20).toLocaleDateString(t,{year:"numeric",month:"numeric",day:"numeric"}).replace("".concat(2023),"YYYY").replace("".concat(12),"MM").replace("".concat(20),"DD")}(K.current.code);O===If.DateOnly?"DD/MM/YYYY"===t?ot({type:Ff.SetInputFormat,inputFormat:gf.DateDayMonthYear}):"MM/DD/YYYY"===t?ot({type:Ff.SetInputFormat,inputFormat:gf.DateMonthDayYear}):"YYYY/MM/DD"===t&&ot({type:Ff.SetInputFormat,inputFormat:gf.DateYearMonthDay}):O===If.TimeOnly?!function(t){var e=new Date;return e.setHours(18),"18"===e.toLocaleTimeString(t).split(":")[0]}(K.current.code)?ot({type:Ff.SetInputFormat,inputFormat:gf.Time12Hour}):ot({type:Ff.SetInputFormat,inputFormat:gf.Time24Hour}):O===If.DateRange&&("DD/MM/YYYY"===t?ot({type:Ff.SetInputFormat,inputFormat:gf.DateRangeDayMonthYear}):"MM/DD/YYYY"===t?ot({type:Ff.SetInputFormat,inputFormat:gf.DateRangeMonthDayYear}):"YYYY/MM/DD"===t&&ot({type:Ff.SetInputFormat,inputFormat:gf.DateRangeYearMonthDay}))}}),[O,K.current]),s((function(){j&&(X.current=j)}),[j]);var J=function(t){cp(t).then((function(t){K.current=t;var e=tt();ot(i||d?{type:Ff.InitializeDates,initialDate:Array.isArray(e)?e[0]:e}:{type:Ff.SetViewDate,viewDate:Array.isArray(e)?e[0]:e})})).catch((function(t){return console.error(t)}))},tt=function(){var t=new Date;return t.setHours(0,0,0,0),i?"string"==typeof i?O!==If.DateRange?lp(i,K.current):sp(i,K.current):i:t},et={currentSelector:O===If.TimeOnly?Ff.TimeSelector:O===If.DateTime||O===If.DateOnly?Ff.DaySelector:Ff.DateRangeSelector,currentViewDate:new Date,timeFormat:Vf.TwelveHour,dateInitialized:!1},nt=h(fp,et),rt=nt[0],ot=nt[1],it=function(){ft(),U(!0)},at=function(t){var e=t.target.innerText;ut(e)},ut=function(t){var e,n,r,o=O!==If.DateRange?lp(t,K.current):sp(t,K.current);o?Array.isArray(o)?(e=o[0],n=Yr(rt.currentViewDate),r=function(t){Pr(1,arguments);var e=Er(t),n=e.getMonth();return e.setFullYear(e.getFullYear(),n+1,0),e.setHours(23,59,59,999),e}(Rr(rt.currentViewDate,1)),e.getTime()>=n.getTime()&&e.getTime()<=r.getTime()||ot({type:Ff.SetViewDate,viewDate:o[0]}),ot({type:Ff.SetSelectedDateRange,selectedStartDate:o[0],selectedEndDate:o[1]})):ot({type:Ff.SetSelectedDate,selectedDate:o,viewDate:o}):""===t&&(ot({type:Ff.ClearDates}),null==A||A())},ct=function(){ft(),U(!F)},lt=function(){ot({type:Ff.ClearDates}),U(!1),null==A||A()},st=function(t,e){X.current&&$.current===e||(X.current=t,$.current=e,q.current=!0)},ft=function(){Q.current&&!q.current||!X.current||(Q.current=X.current,W(X.current),q.current=!1)},pt=function(){var t,e,n,r,o,i,a,u,c,l,s,f,p=function(){switch(T){case Lf.Short:return"short";case Lf.Medium:return"medium";case Lf.Long:return"long";default:return}}();switch(O){case If.DateTime:return rt.selectedDate?p?rt.selectedDate.toLocaleString(null===(t=K.current)||void 0===t?void 0:t.code,{dateStyle:p,timeStyle:p}):rt.selectedDate.toLocaleString(null===(e=K.current)||void 0===e?void 0:e.code):"";case If.DateOnly:return rt.selectedDate?p?rt.selectedDate.toLocaleDateString(null===(n=K.current)||void 0===n?void 0:n.code,{dateStyle:p}):rt.selectedDate.toLocaleDateString(null===(r=K.current)||void 0===r?void 0:r.code):"";case If.TimeOnly:return rt.selectedDate?p?rt.selectedDate.toLocaleTimeString(null===(o=K.current)||void 0===o?void 0:o.code,{timeStyle:p,hour12:rt.timeFormat===Vf.TwelveHour,hourCycle:rt.timeFormat===Vf.TwentyFourHour?"h23":void 0}):rt.selectedDate.toLocaleTimeString(null===(i=K.current)||void 0===i?void 0:i.code,{hour12:rt.timeFormat===Vf.TwelveHour,hourCycle:rt.timeFormat===Vf.TwentyFourHour?"h23":void 0}):"";case If.DateRange:return rt.selectedStartDate&&rt.selectedEndDate?p?"".concat(rt.selectedStartDate.toLocaleDateString(null===(a=K.current)||void 0===a?void 0:a.code,{dateStyle:p})," - ").concat(rt.selectedEndDate.toLocaleDateString(null===(u=K.current)||void 0===u?void 0:u.code,{dateStyle:p})):"".concat(rt.selectedStartDate.toLocaleDateString(null===(c=K.current)||void 0===c?void 0:c.code)," - ").concat(rt.selectedEndDate.toLocaleDateString(null===(l=K.current)||void 0===l?void 0:l.code)):"";default:return rt.selectedDate?p?rt.selectedDate.toLocaleString(null===(s=K.current)||void 0===s?void 0:s.code,{dateStyle:p,timeStyle:p}):rt.selectedDate.toLocaleString(null===(f=K.current)||void 0===f?void 0:f.code):""}},dt=O===If.DateTime||O===If.DateOnly||O===If.DateRange,ht=O===If.DateTime||O===If.TimeOnly,mt=E===Yf.None?{}:E===Yf.Right?{rightElement:t("div",y({className:"bsc-flex"},{children:[g&&!c&&e("div",{children:e(Or,{className:"bsc-cursor-pointer bsc-text-sm",icon:["fas","times"],size:"sm",onClick:lt})}),e("div",y({className:"bsc-ml-2"},{children:P||e(Or,{className:c?void 0:"bsc-cursor-pointer",icon:["far","calendar-alt"],onClick:c?void 0:ct})}))]}))}:{leftElement:t("div",y({className:"bsc-flex"},{children:[e("div",y({className:"bsc-mr-2"},{children:P||e(Or,{className:c?void 0:"bsc-cursor-pointer",icon:["far","calendar-alt"],onClick:c?void 0:ct})})),g&&!c&&e("div",{children:e(Or,{className:"bsc-cursor-pointer bsc-text-sm",icon:["fas","times"],size:"sm",onClick:lt})})]}))},yt={label:f,readOnly:c,allowClear:g,getValue:pt,onFocus:it,onInput:at,iconPosition:E,iconElement:mt.rightElement||mt.leftElement},vt=z||function(t,r){return e(n,{children:r})},bt=S("bsc-text-left",((o={})["".concat((null==N?void 0:N.readOnlyInputBgColor)||"bsc-bg-gray-200")]=c,o["".concat((null==N?void 0:N.inputBgColor)||"bsc-bg-white")]=!c,o),"dark:bsc-bg-black ".concat(null==N?void 0:N.inputBorderColor," bc-dt-input"),x);return e(np.Provider,y({value:G.current},{children:t("div",y({className:"bc-date-time"},{children:[f&&e("label",y({className:"dark:bsc-text-white bc-dt-label"},{children:f})),e(ts,y({props:yt,template:vt},{children:!1===v||void 0===rt.inputFormat?e(k,y({value:pt(),readOnly:c,className:bt,onFocus:it,onInput:at,onElementCreate:function(t){return st(t,!1)}},mt)):e(ep,y({value:pt(),readOnly:c,className:bt,onFocus:it,onChange:function(t){t&&ut(t)},onElementCreate:function(t){return st(t,!0)},defaultFormat:rt.inputFormat},mt))})),e(xf,y({visible:F,target:B,shouldTargetCloseOverlay:!1,shouldScrollCloseOverlay:!0,shouldCheckZIndex:!0,shouldRemainOnScreen:!0,hidden:function(){U(!1),ot({type:O===If.TimeOnly?Ff.TimeSelector:O===If.DateTime||O===If.DateOnly?Ff.DaySelector:Ff.DateRangeSelector})},unmountWhenHidden:!0},{children:t(n,{children:[rt.currentSelector===Ff.DaySelector&&dt&&rt.dateInitialized&&K.current&&e(hp,{selectedDate:rt.selectedDate,viewDate:rt.currentViewDate,locale:K.current,showTimeSelector:O===If.DateTime,selectableDate:M,isValidDate:I,dispatcher:ot,onChange:A}),rt.currentSelector===Ff.MonthSelector&&dt&&rt.dateInitialized&&K.current&&e(mp,{viewDate:rt.currentViewDate,locale:K.current,dateSelection:O,dispatcher:ot}),rt.currentSelector===Ff.YearSelector&&dt&&rt.dateInitialized&&K.current&&e(bp,{viewDate:rt.currentViewDate,locale:K.current,dispatcher:ot}),rt.currentSelector===Ff.TimeSelector&&ht&&rt.dateInitialized&&K.current&&e(vp,{viewDate:rt.currentViewDate,showDateSelector:O===If.DateTime,locale:K.current,timeFormat:rt.timeFormat,timeConstraints:C,onChange:A,dispatcher:ot}),rt.currentSelector===Ff.DateRangeSelector&&dt&&rt.dateInitialized&&K.current&&e(yp,{viewDate:rt.currentViewDate,selectedStartDate:rt.selectedStartDate,selectedEndDate:rt.selectedEndDate,locale:K.current,onChange:A,dispatcher:ot})]})}))]}))}))}!function(t,e){void 0===e&&(e={});var n=e.insertAt;if(t&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t))}}("/*\n! tailwindcss v3.3.1 | MIT License | https://tailwindcss.com\n*//*\n1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)\n2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)\n*/\n\n*,\n::before,\n::after {\n box-sizing: border-box; /* 1 */\n border-width: 0; /* 2 */\n border-style: solid; /* 2 */\n border-color: #e5e7eb; /* 2 */\n}\n\n::before,\n::after {\n --tw-content: '';\n}\n\n/*\n1. Use a consistent sensible line-height in all browsers.\n2. Prevent adjustments of font size after orientation changes in iOS.\n3. Use a more readable tab size.\n4. Use the user's configured `sans` font-family by default.\n5. Use the user's configured `sans` font-feature-settings by default.\n6. Use the user's configured `sans` font-variation-settings by default.\n*/\n\nhtml {\n line-height: 1.5; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */ /* 3 */\n tab-size: 4; /* 3 */\n font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\"; /* 4 */\n -webkit-font-feature-settings: normal;\n font-feature-settings: normal; /* 5 */\n font-variation-settings: normal; /* 6 */\n}\n\n/*\n1. Remove the margin in all browsers.\n2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.\n*/\n\nbody {\n margin: 0; /* 1 */\n line-height: inherit; /* 2 */\n}\n\n/*\n1. Add the correct height in Firefox.\n2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)\n3. Ensure horizontal rules are visible by default.\n*/\n\nhr {\n height: 0; /* 1 */\n color: inherit; /* 2 */\n border-top-width: 1px; /* 3 */\n}\n\n/*\nAdd the correct text decoration in Chrome, Edge, and Safari.\n*/\n\nabbr:where([title]) {\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n}\n\n/*\nRemove the default font size and weight for headings.\n*/\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n font-size: inherit;\n font-weight: inherit;\n}\n\n/*\nReset links to optimize for opt-in styling instead of opt-out.\n*/\n\na {\n color: inherit;\n text-decoration: inherit;\n}\n\n/*\nAdd the correct font weight in Edge and Safari.\n*/\n\nb,\nstrong {\n font-weight: bolder;\n}\n\n/*\n1. Use the user's configured `mono` font family by default.\n2. Correct the odd `em` font sizing in all browsers.\n*/\n\ncode,\nkbd,\nsamp,\npre {\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/*\nAdd the correct font size in all browsers.\n*/\n\nsmall {\n font-size: 80%;\n}\n\n/*\nPrevent `sub` and `sup` elements from affecting the line height in all browsers.\n*/\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/*\n1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)\n2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)\n3. Remove gaps between table borders by default.\n*/\n\ntable {\n text-indent: 0; /* 1 */\n border-color: inherit; /* 2 */\n border-collapse: collapse; /* 3 */\n}\n\n/*\n1. Change the font styles in all browsers.\n2. Remove the margin in Firefox and Safari.\n3. Remove default padding in all browsers.\n*/\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit; /* 1 */\n font-size: 100%; /* 1 */\n font-weight: inherit; /* 1 */\n line-height: inherit; /* 1 */\n color: inherit; /* 1 */\n margin: 0; /* 2 */\n padding: 0; /* 3 */\n}\n\n/*\nRemove the inheritance of text transform in Edge and Firefox.\n*/\n\nbutton,\nselect {\n text-transform: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Remove default button styles.\n*/\n\nbutton,\n[type='button'],\n[type='reset'],\n[type='submit'] {\n -webkit-appearance: button; /* 1 */\n background-color: transparent; /* 2 */\n background-image: none; /* 2 */\n}\n\n/*\nUse the modern Firefox focus style for all focusable elements.\n*/\n\n:-moz-focusring {\n outline: auto;\n}\n\n/*\nRemove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)\n*/\n\n:-moz-ui-invalid {\n box-shadow: none;\n}\n\n/*\nAdd the correct vertical alignment in Chrome and Firefox.\n*/\n\nprogress {\n vertical-align: baseline;\n}\n\n/*\nCorrect the cursor style of increment and decrement buttons in Safari.\n*/\n\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n\n/*\n1. Correct the odd appearance in Chrome and Safari.\n2. Correct the outline style in Safari.\n*/\n\n[type='search'] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/*\nRemove the inner padding in Chrome and Safari on macOS.\n*/\n\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Change font properties to `inherit` in Safari.\n*/\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/*\nAdd the correct display in Chrome and Safari.\n*/\n\nsummary {\n display: list-item;\n}\n\n/*\nRemoves the default spacing and border for appropriate elements.\n*/\n\nblockquote,\ndl,\ndd,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\nhr,\nfigure,\np,\npre {\n margin: 0;\n}\n\nfieldset {\n margin: 0;\n padding: 0;\n}\n\nlegend {\n padding: 0;\n}\n\nol,\nul,\nmenu {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n/*\nPrevent resizing textareas horizontally by default.\n*/\n\ntextarea {\n resize: vertical;\n}\n\n/*\n1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)\n2. Set the default placeholder color to the user's configured gray 400 color.\n*/\n\ninput::-webkit-input-placeholder, textarea::-webkit-input-placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}\n\ninput::placeholder,\ntextarea::placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}\n\n/*\nSet the default cursor for buttons.\n*/\n\nbutton,\n[role=\"button\"] {\n cursor: pointer;\n}\n\n/*\nMake sure disabled buttons don't get the pointer cursor.\n*/\n:disabled {\n cursor: default;\n}\n\n/*\n1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)\n2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)\n This can trigger a poorly considered lint error in some tools but is included by design.\n*/\n\nimg,\nsvg,\nvideo,\ncanvas,\naudio,\niframe,\nembed,\nobject {\n display: block; /* 1 */\n vertical-align: middle; /* 2 */\n}\n\n/*\nConstrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)\n*/\n\nimg,\nvideo {\n max-width: 100%;\n height: auto;\n}\n\n/* Make elements with the HTML hidden attribute stay hidden by default */\n[hidden] {\n display: none;\n}\n\n*, ::before, ::after {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n}\n\n::-webkit-backdrop {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n}\n\n::backdrop {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n}\n.bsc-fixed {\n position: fixed;\n}\n.bsc-col-span-3 {\n grid-column: span 3 / span 3;\n}\n.bsc-col-span-4 {\n grid-column: span 4 / span 4;\n}\n.bsc-ml-2 {\n margin-left: 0.5rem;\n}\n.bsc-mr-2 {\n margin-right: 0.5rem;\n}\n.bsc-flex {\n display: flex;\n}\n.bsc-grid {\n display: grid;\n}\n.bsc-h-3\\/4 {\n height: 75%;\n}\n.bsc-h-full {\n height: 100%;\n}\n.bsc-h-screen {\n height: 100vh;\n}\n.bsc-w-24 {\n width: 6rem;\n}\n.bsc-w-full {\n width: 100%;\n}\n.bsc-min-w-\\[329px\\] {\n min-width: 329px;\n}\n.bsc-flex-shrink {\n flex-shrink: 1;\n}\n.bsc-flex-grow {\n flex-grow: 1;\n}\n.bsc-cursor-not-allowed {\n cursor: not-allowed;\n}\n.bsc-cursor-pointer {\n cursor: pointer;\n}\n.bsc-grid-cols-3 {\n grid-template-columns: repeat(3, minmax(0, 1fr));\n}\n.bsc-grid-cols-4 {\n grid-template-columns: repeat(4, minmax(0, 1fr));\n}\n.bsc-grid-cols-7 {\n grid-template-columns: repeat(7, minmax(0, 1fr));\n}\n.bsc-grid-rows-3 {\n grid-template-rows: repeat(3, minmax(0, 1fr));\n}\n.bsc-flex-row {\n flex-direction: row;\n}\n.bsc-flex-col {\n flex-direction: column;\n}\n.bsc-justify-center {\n justify-content: center;\n}\n.bsc-gap-3 {\n gap: 0.75rem;\n}\n.bsc-gap-4 {\n gap: 1rem;\n}\n.bsc-overflow-hidden {\n overflow: hidden;\n}\n.bsc-overflow-scroll {\n overflow: scroll;\n}\n.bsc-overflow-x-auto {\n overflow-x: auto;\n}\n.bsc-overflow-y-hidden {\n overflow-y: hidden;\n}\n.bsc-whitespace-pre {\n white-space: pre;\n}\n.bsc-rounded-full {\n border-radius: 9999px;\n}\n.bsc-rounded-md {\n border-radius: 0.375rem;\n}\n.bsc-border {\n border-width: 1px;\n}\n.bsc-border-r {\n border-right-width: 1px;\n}\n.bsc-border-solid {\n border-style: solid;\n}\n.bsc-border-none {\n border-style: none;\n}\n.bsc-border-black {\n --tw-border-opacity: 1;\n border-color: rgb(0 0 0 / var(--tw-border-opacity));\n}\n.bsc-border-gray-300 {\n --tw-border-opacity: 1;\n border-color: rgb(209 213 219 / var(--tw-border-opacity));\n}\n.bsc-border-gray-400 {\n --tw-border-opacity: 1;\n border-color: rgb(156 163 175 / var(--tw-border-opacity));\n}\n.bsc-border-gray-500 {\n --tw-border-opacity: 1;\n border-color: rgb(107 114 128 / var(--tw-border-opacity));\n}\n.bsc-border-transparent {\n border-color: transparent;\n}\n.bsc-bg-blue-100 {\n --tw-bg-opacity: 1;\n background-color: rgb(219 234 254 / var(--tw-bg-opacity));\n}\n.bsc-bg-blue-200 {\n --tw-bg-opacity: 1;\n background-color: rgb(191 219 254 / var(--tw-bg-opacity));\n}\n.bsc-bg-gray-200 {\n --tw-bg-opacity: 1;\n background-color: rgb(229 231 235 / var(--tw-bg-opacity));\n}\n.bsc-bg-gray-900 {\n --tw-bg-opacity: 1;\n background-color: rgb(17 24 39 / var(--tw-bg-opacity));\n}\n.bsc-bg-green-100 {\n --tw-bg-opacity: 1;\n background-color: rgb(220 252 231 / var(--tw-bg-opacity));\n}\n.bsc-bg-red-500 {\n --tw-bg-opacity: 1;\n background-color: rgb(239 68 68 / var(--tw-bg-opacity));\n}\n.bsc-bg-white {\n --tw-bg-opacity: 1;\n background-color: rgb(255 255 255 / var(--tw-bg-opacity));\n}\n.bsc-p-2 {\n padding: 0.5rem;\n}\n.bsc-p-4 {\n padding: 1rem;\n}\n.bsc-px-2 {\n padding-left: 0.5rem;\n padding-right: 0.5rem;\n}\n.bsc-py-1 {\n padding-top: 0.25rem;\n padding-bottom: 0.25rem;\n}\n.bsc-pb-2 {\n padding-bottom: 0.5rem;\n}\n.bsc-pb-8 {\n padding-bottom: 2rem;\n}\n.bsc-pl-4 {\n padding-left: 1rem;\n}\n.bsc-pr-2 {\n padding-right: 0.5rem;\n}\n.bsc-pr-4 {\n padding-right: 1rem;\n}\n.bsc-text-left {\n text-align: left;\n}\n.bsc-text-center {\n text-align: center;\n}\n.bsc-text-sm {\n font-size: 0.875rem;\n line-height: 1.25rem;\n}\n.bsc-font-bold {\n font-weight: 700;\n}\n.bsc-text-gray-400 {\n --tw-text-opacity: 1;\n color: rgb(156 163 175 / var(--tw-text-opacity));\n}\n.bsc-text-red-300 {\n --tw-text-opacity: 1;\n color: rgb(252 165 165 / var(--tw-text-opacity));\n}\n.bsc-shadow {\n --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n.bsc-shadow-sm {\n --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);\n --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n\nbody {\n margin: 0;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',\n 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',\n sans-serif;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\ncode {\n font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',\n monospace;\n}\n\n.hover\\:bsc-bg-gray-300:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(209 213 219 / var(--tw-bg-opacity));\n}\n\n.focus\\:bsc-outline-none:focus {\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n\n:is(.bsc-dark .dark\\:bsc-border-white) {\n --tw-border-opacity: 1;\n border-color: rgb(255 255 255 / var(--tw-border-opacity));\n}\n\n:is(.bsc-dark .dark\\:bsc-bg-black) {\n --tw-bg-opacity: 1;\n background-color: rgb(0 0 0 / var(--tw-bg-opacity));\n}\n\n:is(.bsc-dark .dark\\:bsc-bg-gray-900) {\n --tw-bg-opacity: 1;\n background-color: rgb(17 24 39 / var(--tw-bg-opacity));\n}\n\n:is(.bsc-dark .dark\\:bsc-bg-white) {\n --tw-bg-opacity: 1;\n background-color: rgb(255 255 255 / var(--tw-bg-opacity));\n}\n\n:is(.bsc-dark .dark\\:bsc-text-black) {\n --tw-text-opacity: 1;\n color: rgb(0 0 0 / var(--tw-text-opacity));\n}\n\n:is(.bsc-dark .dark\\:bsc-text-white) {\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity));\n}\n\n:is(.bsc-dark .dark\\:hover\\:bsc-bg-white:hover) {\n --tw-bg-opacity: 1;\n background-color: rgb(255 255 255 / var(--tw-bg-opacity));\n}\n\n:is(.bsc-dark .dark\\:hover\\:bsc-text-black:hover) {\n --tw-text-opacity: 1;\n color: rgb(0 0 0 / var(--tw-text-opacity));\n}\n");var wp={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},xp={prefix:"far",iconName:"calendar-days",icon:[448,512,["calendar-alt"],"f073","M152 24c0-13.3-10.7-24-24-24s-24 10.7-24 24V64H64C28.7 64 0 92.7 0 128v16 48V448c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V192 144 128c0-35.3-28.7-64-64-64H344V24c0-13.3-10.7-24-24-24s-24 10.7-24 24V64H152V24zM48 192h80v56H48V192zm0 104h80v64H48V296zm128 0h96v64H176V296zm144 0h80v64H320V296zm80-48H320V192h80v56zm0 160v40c0 8.8-7.2 16-16 16H320V408h80zm-128 0v56H176V408h96zm-144 0v56H64c-8.8 0-16-7.2-16-16V408h80zM272 248H176V192h96v56z"]},Sp={prefix:"far",iconName:"calendar-xmark",icon:[512,512,["calendar-times"],"f273","M160 0c13.3 0 24 10.7 24 24V64H328V24c0-13.3 10.7-24 24-24s24 10.7 24 24V64h40c35.3 0 64 28.7 64 64v16 48V448c0 35.3-28.7 64-64 64H96c-35.3 0-64-28.7-64-64V192 144 128c0-35.3 28.7-64 64-64h40V24c0-13.3 10.7-24 24-24zM432 192H80V448c0 8.8 7.2 16 16 16H416c8.8 0 16-7.2 16-16V192zm-95 89l-47 47 47 47c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-47-47-47 47c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l47-47-47-47c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47 47-47c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"]};zn.add({prefix:"fas",iconName:"angle-right",icon:[320,512,[8250],"f105","M278.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-160 160c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L210.7 256 73.4 118.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l160 160z"]},{prefix:"fas",iconName:"angle-left",icon:[320,512,[8249],"f104","M41.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 256 246.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z"]},{prefix:"fas",iconName:"chevron-up",icon:[512,512,[],"f077","M233.4 105.4c12.5-12.5 32.8-12.5 45.3 0l192 192c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L256 173.3 86.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l192-192z"]},{prefix:"fas",iconName:"chevron-down",icon:[512,512,[],"f078","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},xp,Sp,wp);export{k as ContentEditableInput,gp as DateTime,ep as FormattedInput,xf as OverlayPanel};
37
+ */function ef(){return Ws||(Ws=1,function(t){"production"===process.env.NODE_ENV?t.exports=function(){if(Vs)return Hs;Vs=1;var t="function"==typeof Symbol&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,u=t?Symbol.for("react.context"):60110,c=t?Symbol.for("react.async_mode"):60111,l=t?Symbol.for("react.concurrent_mode"):60111,s=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,p=t?Symbol.for("react.suspense_list"):60120,d=t?Symbol.for("react.memo"):60115,h=t?Symbol.for("react.lazy"):60116,m=t?Symbol.for("react.block"):60121,y=t?Symbol.for("react.fundamental"):60117,v=t?Symbol.for("react.responder"):60118,b=t?Symbol.for("react.scope"):60119;function g(t){if("object"==typeof t&&null!==t){var p=t.$$typeof;switch(p){case e:switch(t=t.type){case c:case l:case r:case i:case o:case f:return t;default:switch(t=t&&t.$$typeof){case u:case s:case h:case d:case a:return t;default:return p}}case n:return p}}}function w(t){return g(t)===l}return Hs.AsyncMode=c,Hs.ConcurrentMode=l,Hs.ContextConsumer=u,Hs.ContextProvider=a,Hs.Element=e,Hs.ForwardRef=s,Hs.Fragment=r,Hs.Lazy=h,Hs.Memo=d,Hs.Portal=n,Hs.Profiler=i,Hs.StrictMode=o,Hs.Suspense=f,Hs.isAsyncMode=function(t){return w(t)||g(t)===c},Hs.isConcurrentMode=w,Hs.isContextConsumer=function(t){return g(t)===u},Hs.isContextProvider=function(t){return g(t)===a},Hs.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Hs.isForwardRef=function(t){return g(t)===s},Hs.isFragment=function(t){return g(t)===r},Hs.isLazy=function(t){return g(t)===h},Hs.isMemo=function(t){return g(t)===d},Hs.isPortal=function(t){return g(t)===n},Hs.isProfiler=function(t){return g(t)===i},Hs.isStrictMode=function(t){return g(t)===o},Hs.isSuspense=function(t){return g(t)===f},Hs.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===l||t===i||t===o||t===f||t===p||"object"==typeof t&&null!==t&&(t.$$typeof===h||t.$$typeof===d||t.$$typeof===a||t.$$typeof===u||t.$$typeof===s||t.$$typeof===y||t.$$typeof===v||t.$$typeof===b||t.$$typeof===m)},Hs.typeOf=g,Hs}():t.exports=(Bs||(Bs=1,"production"!==process.env.NODE_ENV&&function(){var t="function"==typeof Symbol&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,u=t?Symbol.for("react.context"):60110,c=t?Symbol.for("react.async_mode"):60111,l=t?Symbol.for("react.concurrent_mode"):60111,s=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,p=t?Symbol.for("react.suspense_list"):60120,d=t?Symbol.for("react.memo"):60115,h=t?Symbol.for("react.lazy"):60116,m=t?Symbol.for("react.block"):60121,y=t?Symbol.for("react.fundamental"):60117,v=t?Symbol.for("react.responder"):60118,b=t?Symbol.for("react.scope"):60119;function g(t){if("object"==typeof t&&null!==t){var p=t.$$typeof;switch(p){case e:var m=t.type;switch(m){case c:case l:case r:case i:case o:case f:return m;default:var y=m&&m.$$typeof;switch(y){case u:case s:case h:case d:case a:return y;default:return p}}case n:return p}}}var w=c,x=l,S=u,_=a,k=e,O=s,T=r,C=h,P=d,D=n,E=i,j=o,R=f,N=!1;function M(t){return g(t)===l}tf.AsyncMode=w,tf.ConcurrentMode=x,tf.ContextConsumer=S,tf.ContextProvider=_,tf.Element=k,tf.ForwardRef=O,tf.Fragment=T,tf.Lazy=C,tf.Memo=P,tf.Portal=D,tf.Profiler=E,tf.StrictMode=j,tf.Suspense=R,tf.isAsyncMode=function(t){return N||(N=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),M(t)||g(t)===c},tf.isConcurrentMode=M,tf.isContextConsumer=function(t){return g(t)===u},tf.isContextProvider=function(t){return g(t)===a},tf.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},tf.isForwardRef=function(t){return g(t)===s},tf.isFragment=function(t){return g(t)===r},tf.isLazy=function(t){return g(t)===h},tf.isMemo=function(t){return g(t)===d},tf.isPortal=function(t){return g(t)===n},tf.isProfiler=function(t){return g(t)===i},tf.isStrictMode=function(t){return g(t)===o},tf.isSuspense=function(t){return g(t)===f},tf.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===l||t===i||t===o||t===f||t===p||"object"==typeof t&&null!==t&&(t.$$typeof===h||t.$$typeof===d||t.$$typeof===a||t.$$typeof===u||t.$$typeof===s||t.$$typeof===y||t.$$typeof===v||t.$$typeof===b||t.$$typeof===m)},tf.typeOf=g}()),tf)}(Us)),Fs}function nf(){if(qs)return $s;qs=1;return $s="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}if("production"!==process.env.NODE_ENV){var rf=ef();Ys.exports=function(){if(Qs)return Xs;Qs=1;var t=ef(),e=lr(),n=nf(),r=function(){if(Ks)return Zs;Ks=1;var t=function(){};if("production"!==process.env.NODE_ENV){var e=nf(),n={},r=Function.call.bind(Object.prototype.hasOwnProperty);t=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}}function o(o,i,a,u,c){if("production"!==process.env.NODE_ENV)for(var l in o)if(r(o,l)){var s;try{if("function"!=typeof o[l]){var f=Error((u||"React class")+": "+a+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[l]+"`.");throw f.name="Invariant Violation",f}s=o[l](i,l,u,a,null,e)}catch(t){s=t}if(!s||s instanceof Error||t((u||"React class")+": type specification of "+a+" `"+l+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof s+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),s instanceof Error&&!(s.message in n)){n[s.message]=!0;var p=c?c():"";t("Failed "+a+" type: "+s.message+(null!=p?p:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},Zs=o}(),o=Function.call.bind(Object.prototype.hasOwnProperty),i=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(i=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}),Xs=function(u,c){var l="function"==typeof Symbol&&Symbol.iterator,s="@@iterator",f="<<anonymous>>",p={array:y("array"),bool:y("boolean"),func:y("function"),number:y("number"),object:y("object"),string:y("string"),symbol:y("symbol"),any:m(a),arrayOf:function(t){return m((function(e,r,o,i,a){if("function"!=typeof t)return new h("Property `"+a+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var u=e[r];if(!Array.isArray(u))return new h("Invalid "+i+" `"+a+"` of type `"+b(u)+"` supplied to `"+o+"`, expected an array.");for(var c=0;c<u.length;c++){var l=t(u,c,o,i,a+"["+c+"]",n);if(l instanceof Error)return l}return null}))},element:m((function(t,e,n,r,o){var i=t[e];return u(i)?null:new h("Invalid "+r+" `"+o+"` of type `"+b(i)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:m((function(e,n,r,o,i){var a=e[n];return t.isValidElementType(a)?null:new h("Invalid "+o+" `"+i+"` of type `"+b(a)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(t){return m((function(e,n,r,o,i){if(!(e[n]instanceof t)){var a=t.name||f;return new h("Invalid "+o+" `"+i+"` of type `"+((u=e[n]).constructor&&u.constructor.name?u.constructor.name:f)+"` supplied to `"+r+"`, expected instance of `"+a+"`.")}var u;return null}))},node:m((function(t,e,n,r,o){return v(t[e])?null:new h("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(t){return m((function(e,r,i,a,u){if("function"!=typeof t)return new h("Property `"+u+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var c=e[r],l=b(c);if("object"!==l)return new h("Invalid "+a+" `"+u+"` of type `"+l+"` supplied to `"+i+"`, expected an object.");for(var s in c)if(o(c,s)){var f=t(c,s,i,a,u+"."+s,n);if(f instanceof Error)return f}return null}))},oneOf:function(t){return Array.isArray(t)?m((function(e,n,r,o,i){for(var a=e[n],u=0;u<t.length;u++)if(d(a,t[u]))return null;var c=JSON.stringify(t,(function(t,e){return"symbol"===g(e)?String(e):e}));return new h("Invalid "+o+" `"+i+"` of value `"+String(a)+"` supplied to `"+r+"`, expected one of "+c+".")})):("production"!==process.env.NODE_ENV&&i(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a)},oneOfType:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var e=0;e<t.length;e++){var r=t[e];if("function"!=typeof r)return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+w(r)+" at index "+e+"."),a}return m((function(e,r,o,i,a){for(var u=0;u<t.length;u++)if(null==(0,t[u])(e,r,o,i,a,n))return null;return new h("Invalid "+i+" `"+a+"` supplied to `"+o+"`.")}))},shape:function(t){return m((function(e,r,o,i,a){var u=e[r],c=b(u);if("object"!==c)return new h("Invalid "+i+" `"+a+"` of type `"+c+"` supplied to `"+o+"`, expected `object`.");for(var l in t){var s=t[l];if(s){var f=s(u,l,o,i,a+"."+l,n);if(f)return f}}return null}))},exact:function(t){return m((function(r,o,i,a,u){var c=r[o],l=b(c);if("object"!==l)return new h("Invalid "+a+" `"+u+"` of type `"+l+"` supplied to `"+i+"`, expected `object`.");var s=e({},r[o],t);for(var f in s){var p=t[f];if(!p)return new h("Invalid "+a+" `"+u+"` key `"+f+"` supplied to `"+i+"`.\nBad object: "+JSON.stringify(r[o],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(t),null," "));var d=p(c,f,i,a,u+"."+f,n);if(d)return d}return null}))}};function d(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function h(t){this.message=t,this.stack=""}function m(t){if("production"!==process.env.NODE_ENV)var e={},r=0;function o(o,a,u,l,s,p,d){if(l=l||f,p=p||u,d!==n){if(c){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var y=l+":"+u;!e[y]&&r<3&&(i("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+l+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),e[y]=!0,r++)}}return null==a[u]?o?null===a[u]?new h("The "+s+" `"+p+"` is marked as required in `"+l+"`, but its value is `null`."):new h("The "+s+" `"+p+"` is marked as required in `"+l+"`, but its value is `undefined`."):null:t(a,u,l,s,p)}var a=o.bind(null,!1);return a.isRequired=o.bind(null,!0),a}function y(t){return m((function(e,n,r,o,i,a){var u=e[n];return b(u)!==t?new h("Invalid "+o+" `"+i+"` of type `"+g(u)+"` supplied to `"+r+"`, expected `"+t+"`."):null}))}function v(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(v);if(null===t||u(t))return!0;var e=function(t){var e=t&&(l&&t[l]||t[s]);if("function"==typeof e)return e}(t);if(!e)return!1;var n,r=e.call(t);if(e!==t.entries){for(;!(n=r.next()).done;)if(!v(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!v(o[1]))return!1}return!0;default:return!1}}function b(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":function(t,e){return"symbol"===t||!!e&&("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)}(e,t)?"symbol":e}function g(t){if(null==t)return""+t;var e=b(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function w(t){var e=g(t);switch(e){case"array":case"object":return"an "+e;case"boolean":case"date":case"regexp":return"a "+e;default:return e}}return h.prototype=Error.prototype,p.checkPropTypes=r,p.resetWarningCache=r.resetWarningCache,p.PropTypes=p,p},Xs}()(rf.isElement,!0)}else Ys.exports=function(){if(Js)return Gs;Js=1;var t=nf();function e(){}function n(){}return n.resetWarningCache=e,Gs=function(){function r(e,n,r,o,i,a){if(a!==t){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function o(){return r}r.isRequired=r;var i={array:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:e};return i.PropTypes=i,i}}()();var of=!1,af="production"!==process.env.NODE_ENV?zs.oneOfType([zs.number,zs.shape({enter:zs.number,exit:zs.number,appear:zs.number}).isRequired]):null;"production"!==process.env.NODE_ENV&&zs.oneOfType([zs.string,zs.shape({enter:zs.string,exit:zs.string,active:zs.string}),zs.shape({enter:zs.string,enterDone:zs.string,enterActive:zs.string,exit:zs.string,exitDone:zs.string,exitActive:zs.string})]);var uf=r.createContext(null),cf="unmounted",lf="exited",sf="entering",ff="entered",pf="exiting",df=function(t){var e,n;function o(e,n){var r;r=t.call(this,e,n)||this;var o,i=n&&!n.isMounting?e.enter:e.appear;return r.appearStatus=null,e.in?i?(o=lf,r.appearStatus=sf):o=ff:o=e.unmountOnExit||e.mountOnEnter?cf:lf,r.state={status:o},r.nextCallback=null,r}n=t,(e=o).prototype=Object.create(n.prototype),e.prototype.constructor=e,Ls(e,n),o.getDerivedStateFromProps=function(t,e){return t.in&&e.status===cf?{status:lf}:null};var i=o.prototype;return i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(t){var e=null;if(t!==this.props){var n=this.state.status;this.props.in?n!==sf&&n!==ff&&(e=sf):n!==sf&&n!==ff||(e=pf)}this.updateStatus(!1,e)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var t,e,n,r=this.props.timeout;return t=e=n=r,null!=r&&"number"!=typeof r&&(t=r.exit,e=r.enter,n=void 0!==r.appear?r.appear:e),{exit:t,enter:e,appear:n}},i.updateStatus=function(t,e){if(void 0===t&&(t=!1),null!==e)if(this.cancelNextCallback(),e===sf){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:m.findDOMNode(this);n&&function(t){t.scrollTop}(n)}this.performEnter(t)}else this.performExit();else this.props.unmountOnExit&&this.state.status===lf&&this.setState({status:cf})},i.performEnter=function(t){var e=this,n=this.props.enter,r=this.context?this.context.isMounting:t,o=this.props.nodeRef?[r]:[m.findDOMNode(this),r],i=o[0],a=o[1],u=this.getTimeouts(),c=r?u.appear:u.enter;!t&&!n||of?this.safeSetState({status:ff},(function(){e.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:sf},(function(){e.props.onEntering(i,a),e.onTransitionEnd(c,(function(){e.safeSetState({status:ff},(function(){e.props.onEntered(i,a)}))}))})))},i.performExit=function(){var t=this,e=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:m.findDOMNode(this);e&&!of?(this.props.onExit(r),this.safeSetState({status:pf},(function(){t.props.onExiting(r),t.onTransitionEnd(n.exit,(function(){t.safeSetState({status:lf},(function(){t.props.onExited(r)}))}))}))):this.safeSetState({status:lf},(function(){t.props.onExited(r)}))},i.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(t,e){e=this.setNextCallback(e),this.setState(t,e)},i.setNextCallback=function(t){var e=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,e.nextCallback=null,t(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},i.onTransitionEnd=function(t,e){this.setNextCallback(e);var n=this.props.nodeRef?this.props.nodeRef.current:m.findDOMNode(this),r=null==t&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=t&&setTimeout(this.nextCallback,t)}else setTimeout(this.nextCallback,0)},i.render=function(){var t=this.state.status;if(t===cf)return null;var e=this.props,n=e.children;e.in,e.mountOnEnter,e.unmountOnExit,e.appear,e.enter,e.exit,e.timeout,e.addEndListener,e.onEnter,e.onEntering,e.onEntered,e.onExit,e.onExiting,e.onExited,e.nodeRef;var o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(e,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return r.createElement(uf.Provider,{value:null},"function"==typeof n?n(t,o):r.cloneElement(r.Children.only(n),o))},o}(r.Component);function hf(){}df.contextType=uf,df.propTypes="production"!==process.env.NODE_ENV?{nodeRef:zs.shape({current:"undefined"==typeof Element?zs.any:function(t,e,n,r,o,i){var a=t[e];return zs.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(t,e,n,r,o,i)}}),children:zs.oneOfType([zs.func.isRequired,zs.element.isRequired]).isRequired,in:zs.bool,mountOnEnter:zs.bool,unmountOnExit:zs.bool,appear:zs.bool,enter:zs.bool,exit:zs.bool,timeout:function(t){var e=af;t.addEndListener||(e=e.isRequired);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return e.apply(void 0,[t].concat(r))},addEndListener:zs.func,onEnter:zs.func,onEntering:zs.func,onEntered:zs.func,onExit:zs.func,onExiting:zs.func,onExited:zs.func}:{},df.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:hf,onEntering:hf,onEntered:hf,onExit:hf,onExiting:hf,onExited:hf},df.UNMOUNTED=cf,df.EXITED=lf,df.ENTERING=sf,df.ENTERED=ff,df.EXITING=pf;var mf,yf,vf=df;function bf(t){var n=t.start,r=t.timeout,o=void 0===r?400:r,i=t.defaultStyle,a=t.transitionStyles,u=t.showTransitionOptions,c=void 0===u?"cubic-bezier(0, 0, 0.2, 1)":u,l=t.hideTransitionOptions,s=void 0===l?"linear":l,f=t.unmountOnExit,p=void 0!==f&&f,d=t.onEntering,h=t.onEntered,m=t.onExit,v=t.onExited,b=t.children,g=i||{transition:"opacity ".concat(o,"ms ").concat(c),opacity:0},w=a||{entering:{opacity:1},entered:{opacity:1},exiting:{transition:"opacity ".concat(o,"ms ").concat(s),opacity:0},exited:{transition:"opacity ".concat(o,"ms ").concat(s),opacity:0},unmounted:{}};return e(vf,y({in:n,timeout:o,onEntering:d,onEntered:h,onExit:m,onExited:v,unmountOnExit:p},{children:function(t){return b({state:t,defaultStyle:g,transitionStyles:w})}}))}!function(t){t[t.TopLeft=0]="TopLeft",t[t.TopRight=1]="TopRight",t[t.BottomLeft=2]="BottomLeft",t[t.BottomRight=3]="BottomRight"}(mf||(mf={})),function(t){t[t.TopLeft=0]="TopLeft",t[t.TopRight=1]="TopRight",t[t.BottomLeft=2]="BottomLeft",t[t.BottomRight=3]="BottomRight"}(yf||(yf={}));var gf,wf=function(){function t(){}return t.positionToTarget=function(t,e){void 0===e&&(e=mf.BottomLeft);var n=t.getBoundingClientRect(),r=0,o=0,i=window.scrollY;switch(e){case mf.BottomLeft:r=n.top+n.height+i,o=n.left;break;case mf.TopLeft:r=n.top+i,o=n.left;break;case mf.BottomRight:r=n.top+n.height+i,o=n.left+n.width;break;case mf.TopRight:r=n.top+i,o=n.left+n.width}return{top:r,left:o}},t.positionElementToTarget=function(e,n,r,o){void 0===r&&(r=yf.TopLeft),void 0===o&&(o=mf.BottomLeft);var i=t.positionToTarget(n,o),a=i.left,u=i.top,c=e.getBoundingClientRect();switch(r){case yf.TopLeft:break;case yf.TopRight:a-=c.width;break;case yf.BottomLeft:u-=c.height;break;case yf.BottomRight:u-=c.height,a-=c.width}return{top:u,left:a}},t.positionElementToTargetOnScreen=function(e,n,r,o){void 0===r&&(r=yf.TopLeft),void 0===o&&(o=mf.BottomLeft);var i=t.positionElementToTarget(e,n,r,o),a=i.left,u=i.top,c=e.getBoundingClientRect(),l=t.determineOffScreenLocation(c);if(l)if(r===yf.TopLeft&&o===mf.BottomLeft){if(l.right&&!l.bottom)return t.positionElementToTarget(e,n,yf.TopRight,mf.BottomRight);if(l.bottom&&!l.right)return t.positionElementToTarget(e,n,yf.BottomLeft,mf.TopLeft);if(l.right&&l.bottom)return t.positionElementToTarget(e,n,yf.BottomRight,mf.TopRight)}else if(r===yf.TopRight&&o===mf.BottomRight){if(l.left&&!l.bottom)return t.positionElementToTarget(e,n,yf.TopLeft,mf.BottomLeft);if(l.bottom&&!l.left)return t.positionElementToTarget(e,n,yf.BottomRight,mf.TopRight);if(l.left&&l.bottom)return t.positionElementToTarget(e,n,yf.BottomLeft,mf.TopLeft)}return{top:u,left:a}},t.determineOffScreenLocation=function(e){var n=t.getScreenDimensions(),r={left:e.left<0,top:e.top<0,right:e.left+e.width>n.width,bottom:e.top+e.height>n.height};return r.left||r.top||r.right||r.bottom?r:void 0},t.getScreenDimensions=function(){return{width:window.innerWidth,height:Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)}},t}();function xf(t){var n=t.visible,r=t.target,o=t.targetPosition,i=void 0===o?mf.BottomLeft:o,u=t.elementAlignment,c=void 0===u?yf.TopLeft:u,p=t.shouldTargetCloseOverlay,d=void 0===p||p,h=t.shouldMatchTargetWidth,m=void 0!==h&&h,v=t.shouldScrollCloseOverlay,b=void 0!==v&&v,g=t.shouldCheckZIndex,w=void 0!==g&&g,x=t.shouldRemainOnScreen,S=void 0!==x&&x,k=t.unmountWhenHidden,O=void 0!==k&&k,T=t.transitionDuration,C=void 0===T?400:T,P=t.showTransitionOptions,D=void 0===P?"cubic-bezier(0, 0, 0.2, 1)":P,E=t.hideTransitionOptions,j=void 0===E?"linear":E,R=t.shown,N=t.hidden,M=t.markupCreated,I=t.children,A=l(-1),L=A[0],V=A[1],z=l(n),Y=z[0],F=z[1],U=l(!1),H=U[0],B=U[1],W=a(!1),$=a(100),q=a({left:0,top:0,width:0}),Z=a(),K=a(),X=a(),Q=a(),G=a(),J=a();s((function(){return!0===S&&(J.current=new ResizeObserver(et)),function(){var t,e;!0===S&&(K.current&&(null===(t=J.current)||void 0===t||t.unobserve(K.current)),null===(e=J.current)||void 0===e||e.disconnect())}}),[]),s((function(){if(r&&b&&(Z.current=tt(r),X.current=Jl(Z.current,{overflow:"scroll, auto",overflowX:"scroll, auto",overflowY:"scroll, auto"}),"html"===X.current.tagName.toLowerCase()&&(X.current=document)),w){var t=function(t,e){for(var n=Array.from(document.querySelectorAll("body *")),r=[],o=0,i=n.length;o<i;o++){var a=getComputedStyle(n[o]);a[t]&&e(a[t])&&r.push(a[t])}return r}("zIndex",(function(t){return parseInt(t)>=100})).map((function(t){return parseInt(t)}));t.length>0&&($.current=Math.max.apply(Math,t)+1)}void 0!==n&&F(n)}),[r,n,b,w]);var tt=function(t){return t.target?t.target:t},et=function(t){if(K.current){var e=wf.getScreenDimensions(),n=t[t.length-1].target.getBoundingClientRect(),r=wf.determineOffScreenLocation(n);if(r){if(Z.current){var o=wf.positionElementToTargetOnScreen(K.current,Z.current,c,i);q.current=y(y({},q.current),o)}else r.right?q.current.left=e.width-n.width:r.left&&(q.current.left=0),r.bottom?q.current.top=e.height-n.height:r.top&&(q.current.top=0);nt()}}},nt=As((function(){W.current=!W.current,B(W.current)}),20),rt=f((function(){var t={top:"".concat(q.current.top,"px"),left:"".concat(q.current.left,"px"),zIndex:L};return m&&(t.width="".concat(q.current.width,"px")),t}),[H,L,m]);return e(bf,y({start:Y,timeout:C,showTransitionOptions:D,hideTransitionOptions:j,onEntering:function(){V($.current)},onEntered:function(){if(K.current){R&&R();var t=void 0;!d&&Z.current&&(t=[Z.current]);Q.current=function(t,e,n){var r=function(r){var i=r.target,a="hidden"!==t.style.display;t&&a&&!function(t,e){return t.isSameNode(e)||t.contains(e)}(t,i)&&!o(n,i)&&e(!1),e(!0)},o=function(t,e){if(!t)return!1;for(var n=0,r=t.length;n<r;n++)if(t[n].isSameNode(e)||t[n].contains(e))return!0;return!1};return document.addEventListener("mousedown",r),r}(K.current,(function(t){return!t&&F(!1)}),t),b&&(G.current=_.throttle((function(t){return K.current&&function(t,e){var n=t.target;return!!n&&!e.isSameNode(n)&&!e.contains(n)}(t,K.current)&&F(!1)}),100,{leading:!0}),X.current&&X.current.addEventListener("scroll",G.current))}},onExit:function(){var t;X.current&&G.current&&(X.current.removeEventListener("scroll",G.current),G.current=void 0),Q.current&&(t=Q.current,document.removeEventListener("mousedown",t))},onExited:function(){V(-1),N&&N()},unmountOnExit:O},{children:function(t){var n=t.state,r=t.defaultStyle,o=t.transitionStyles;return e("div",y({className:"bsc-fixed bsc-bg-white dark:bsc-bg-gray-900 bsc-border bsc-border-solid dark:bsc-text-white dark:bsc-border-white bsc-shadow",style:y(y(y({},rt),r),o[n]),ref:function(t){return t&&function(t){var e,n;if(K.current=t,M&&M(t),Z.current){var r=wf.positionElementToTarget(K.current,Z.current,c,i);q.current=y(y({},r),{width:Z.current.offsetWidth})}!0===S&&(null===(e=J.current)||void 0===e||e.unobserve(K.current),null===(n=J.current)||void 0===n||n.observe(K.current))}(t)}},{children:I}))}}))}let Sf;!function(t){t[t.DateDayMonthYear=0]="DateDayMonthYear",t[t.DateMonthDayYear=1]="DateMonthDayYear",t[t.DateYearMonthDay=2]="DateYearMonthDay",t[t.DateRangeDayMonthYear=3]="DateRangeDayMonthYear",t[t.DateRangeMonthDayYear=4]="DateRangeMonthDayYear",t[t.DateRangeYearMonthDay=5]="DateRangeYearMonthDay",t[t.Time12Hour=6]="Time12Hour",t[t.Time24Hour=7]="Time24Hour",t[t.Custom=8]="Custom"}(gf||(gf={}));const _f=new Uint8Array(16);function kf(){if(!Sf&&(Sf="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Sf))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Sf(_f)}const Of=[];for(let t=0;t<256;++t)Of.push((t+256).toString(16).slice(1));var Tf={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Cf(t,e,n){if(Tf.randomUUID&&!e&&!t)return Tf.randomUUID();const r=(t=t||{}).random||(t.rng||kf)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e){n=n||0;for(let t=0;t<16;++t)e[n+t]=r[t];return e}return function(t,e=0){return(Of[t[e+0]]+Of[t[e+1]]+Of[t[e+2]]+Of[t[e+3]]+"-"+Of[t[e+4]]+Of[t[e+5]]+"-"+Of[t[e+6]]+Of[t[e+7]]+"-"+Of[t[e+8]]+Of[t[e+9]]+"-"+Of[t[e+10]]+Of[t[e+11]]+Of[t[e+12]]+Of[t[e+13]]+Of[t[e+14]]+Of[t[e+15]]).toLowerCase()}(r)}var Pf,Df=function(){function t(){}return t.create=function(t){for(var e=[],n=0,r=0,o=t.formatParts.length;r<o;r++){var i=t.formatParts[r],a=n,u=a+i.characterCount;e.push(y({startPosition:a,endPosition:u},i)),n=u}return e},t}(),Ef=function(){function t(t,e){this.currentPartIndex=0,this.currentCursorPosition=0,this.inputSelection=null,this.instanceCollection=Nf.getInstance(),this.formatPartList=Df.create(t),this.inputSlotCollection=this.instanceCollection.getInputSlotInstance(e,t)}return t.prototype.getCursorPosition=function(){return this.currentCursorPosition},t.prototype.getCurrentPartIndex=function(){return this.currentPartIndex},t.prototype.setInputElement=function(t){this.inputElement=t},t.prototype.setCursorToCurrentPosition=function(){this.setCursorSelection(this.currentCursorPosition)},t.prototype.setCursorPosition=function(t){this.setCursorSelection(t)},t.prototype.setCursorSelection=function(t,e){this.createInputRangeSelection(),this.inputRange&&this.textNode&&(this.inputRange.setStart(this.textNode,t),this.inputRange.setEnd(this.textNode,e||t),this.currentCursorPosition=e||t,this.setPartIndexByCursorPosition())},t.prototype.isAtLastPart=function(){return this.currentPartIndex===this.formatPartList.length-1},t.prototype.moveHome=function(){var t=this.inputSlotCollection.getFirstSlot();this.setCursorSelection(t.startPosition)},t.prototype.moveEnd=function(){var t=this.inputSlotCollection.getLastSlotWithData(),e=t.startPosition+t.partText.length;this.setCursorSelection(e)},t.prototype.moveCursorLeft=function(){if(this.currentCursorPosition>0){var t=this.currentCursorPosition-1,e=this.formatPartList[this.currentPartIndex];if(t>=e.startPosition&&t<=e.endPosition)this.setCursorSelection(t);else for(var n=this.currentPartIndex-1;n>=0;n--)t>=(e=this.formatPartList[n]).startPosition&&t<=e.endPosition&&(e.isSeparator?this.setCursorSelection(this.formatPartList[n-1].endPosition):this.setCursorSelection(t))}},t.prototype.moveCursorRight=function(){var t=this.inputSlotCollection.getLastSlotWithData(),e=t.startPosition+t.partText.length;if(this.currentCursorPosition<e){var n=this.currentCursorPosition+1,r=this.formatPartList[this.currentPartIndex];if(n>=r.startPosition&&n<=r.endPosition)this.setCursorSelection(n);else for(var o=this.currentPartIndex+1,i=this.formatPartList.length;o<i;o++)n>=(r=this.formatPartList[o]).startPosition&&n<=r.endPosition&&(r.isSeparator?this.setCursorSelection(this.formatPartList[o+1].startPosition):this.setCursorSelection(n))}},t.prototype.moveToNextInputPart=function(){if(this.currentPartIndex<this.formatPartList.length-1){var t=this.findNextEditablePart();t&&(this.currentPartIndex=t.partIndex,this.setCursorSelection(t.startPosition))}},t.prototype.moveToPreviousInputPart=function(){if(this.currentPartIndex>0){var t=this.findPreviousEditablePart();t&&(this.currentPartIndex=t.partIndex,this.setCursorSelection(t.endPosition))}},t.prototype.findNextEditablePart=function(){return this.inputSlotCollection.getNextSlot(this.currentPartIndex)},t.prototype.findPreviousEditablePart=function(){return this.inputSlotCollection.getPreviousSlot(this.currentPartIndex)},t.prototype.setPartIndexByCursorPosition=function(){for(var t=0;t<this.formatPartList.length;t++){var e=this.formatPartList[t];if(this.currentCursorPosition>=e.startPosition&&this.currentCursorPosition<=e.endPosition){if(e.isSeparator){this.currentCursorPosition=this.formatPartList[t+1].startPosition,this.currentPartIndex=t+1;break}this.currentPartIndex=t;break}}},t.prototype.createInputRangeSelection=function(){var t,e;this.inputElement&&(this.inputSelection=window.getSelection(),this.inputRange=document.createRange(),null===(t=this.inputSelection)||void 0===t||t.removeAllRanges(),this.inputRange.selectNodeContents(this.inputElement),this.inputRange.collapse(!0),null===(e=this.inputSelection)||void 0===e||e.addRange(this.inputRange),this.inputElement.firstChild&&(this.textNode=this.inputElement.firstChild))},t}(),jf=function(){function t(){}return t.create=function(t){for(var e=[],n=0,r=t.length;n<r;n++){var o=t[n];o.isSeparator||e.push(y({partIndex:n,partText:"",isComplete:!1},o))}return e},t}(),Rf=function(){function t(t){this.inputSlots=jf.create(Df.create(t))}return t.prototype.clearAllSlots=function(){for(var t=0,e=this.inputSlots.length;t<e;t++)this.inputSlots[t].partText=""},t.prototype.getSlot=function(t){return this.inputSlots.find((function(e){return e.partIndex===t}))},t.prototype.getFirstSlot=function(){return this.inputSlots[0]},t.prototype.getNextSlot=function(t){var e=this.inputSlots.findIndex((function(e){return e.partIndex===t}));if(e>-1&&e+1<this.inputSlots.length)return this.inputSlots[e+1]},t.prototype.getPreviousSlot=function(t){var e=this.inputSlots.findIndex((function(e){return e.partIndex===t}));if(e>-1&&e-1>=0)return this.inputSlots[e-1]},t.prototype.getLastSlotWithData=function(){for(var t=this.inputSlots.findIndex((function(t){return!t.isComplete})),e=t,n=t+1,r=this.inputSlots.length;n<r;n++){this.inputSlots[n].partText.length>0&&(e=n)}return this.inputSlots[e]},t.prototype.allSlotsCompleted=function(){return this.inputSlots.every((function(t){return t.isComplete}))},t.prototype.allSlotsEmpty=function(){return this.inputSlots.every((function(t){return 0===t.partText.length}))},t}(),Nf=function(){function t(){this.navigatorInstances={},this.inputSlotInstances={}}return t.getInstance=function(){return this.instance||(this.instance=new t),this.instance},t.prototype.getNavigatorInstance=function(t,e){return this.navigatorInstances[t]||(this.navigatorInstances[t]=new Ef(e,t)),this.navigatorInstances[t]},t.prototype.getInputSlotInstance=function(t,e){return this.inputSlotInstances[t]||(this.inputSlotInstances[t]=new Rf(e)),this.inputSlotInstances[t]},t.prototype.removeInstances=function(t){this.navigatorInstances[t]&&delete this.navigatorInstances[t],this.inputSlotInstances[t]&&delete this.inputSlotInstances[t]},t}(),Mf=function(){function t(t,e){this.instanceCollection=Nf.getInstance(),this.formatPartList=Df.create(t),this.inputSlotCollection=this.instanceCollection.getInputSlotInstance(e,t)}return t.prototype.setInputElement=function(t){this.inputElement=t},t.prototype.render=function(){for(var t,e="",n=0,r=this.formatPartList.length;n<r;n++){var o=this.formatPartList[n];if(o.isSeparator)e+=o.inputText;else{var i=this.inputSlotCollection.getSlot(n);i&&(e+=i.partText+(null===(t=i.inputText)||void 0===t?void 0:t.repeat(i.characterCount-i.partText.length)))}}this.inputElement&&(this.inputElement.innerHTML=e)},t}();!function(t){t[t.Text=0]="Text",t[t.Numeric=1]="Numeric"}(Pf||(Pf={}));var If,Af,Lf,Vf,zf,Yf,Ff,Uf=function(){function t(){this.numberKeys=["0","1","2","3","4","5","6","7","8","9"],this.movementKeys=["ArrowLeft","ArrowRight","Home","End"],this.editingKeys=["Backspace","Delete"],this.ignoreKeys=["Shift","Alt","Control","Fn","Meta"]}return t.prototype.isNumberKey=function(t){return this.numberKeys.includes(t)},t.prototype.isMovementKey=function(t){return this.movementKeys.includes(t.key)},t.prototype.isEditingKey=function(t){return this.editingKeys.includes(t.key)},t.prototype.isIgnoreKey=function(t){return this.ignoreKeys.includes(t.key)},t}(),Hf=function(){function t(t){this._currentIndex=0,this.index=0,this.formatParts=Df.create(t)}return Object.defineProperty(t.prototype,"currentIndex",{get:function(){return this._currentIndex},enumerable:!1,configurable:!0}),t.prototype.hasNext=function(){return this.index<this.formatParts.length},t.prototype.next=function(){if(this.index<this.formatParts.length)return this._currentIndex=this.index++,this.formatParts[this._currentIndex]},t.prototype.peek=function(){if(this.index<this.formatParts.length)return this.formatParts[this.index]},t.prototype.reset=function(){this.index=0},t}(),Bf=function(){function t(t,e){this.format=t,this.instanceCollection=Nf.getInstance(),this.inputSlotCollection=this.instanceCollection.getInputSlotInstance(e,t),this.formatNavigator=this.instanceCollection.getNavigatorInstance(e,t),this.keyTypeChecker=new Uf,this.formatRenderer=new Mf(t,e),this.formatPartList=new Hf(t)}return t.prototype.setInputElement=function(t){this.formatRenderer.setInputElement(t)},t.prototype.processKeyPress=function(t){this.keyTypeChecker.isEditingKey(t)?this.processEditRules(t):this.processInputRules(t)},t.prototype.processInputValue=function(t){var e;this.inputSlotCollection.clearAllSlots(),this.formatPartList.reset();for(var n=0;this.formatPartList.hasNext();){var r=this.formatPartList.next();if(r&&!r.isSeparator)if(!0===(null===(e=this.formatPartList.peek())||void 0===e?void 0:e.isSeparator)){var o=this.formatPartList.currentIndex,i=this.formatPartList.next();if(i&&i.inputText){var a=t.indexOf(i.inputText,n);if((c=this.inputSlotCollection.getSlot(o))&&a>-1){var u=a-n>c.characterCount?n+c.characterCount:a;c.partText=t.substring(n,u),this.processSlotRules(c),n=a+i.characterCount}}}else{var c;(c=this.inputSlotCollection.getSlot(this.formatPartList.currentIndex))&&(c.partText=t.substring(n,n+c.characterCount),this.processSlotRules(c))}}},t.prototype.processEditRules=function(t){var e=this.inputSlotCollection.getSlot(this.formatNavigator.getCurrentPartIndex());if(e){var n=this.formatNavigator.getCursorPosition(),r=n-e.startPosition,o=this.format.deleteShiftsFormatPart||!1;switch(t.key){case"Backspace":if(e.startPosition===n){this.processSlotRules(e,!0);var i=this.inputSlotCollection.getPreviousSlot(e.partIndex);i&&(i.partText=i.partText.substring(0,i.partText.length-1),o&&this.shiftFormatParts(i),this.formatRenderer.render(),this.formatNavigator.setCursorPosition(i.startPosition+i.partText.length),this.processSlotRules(i,!0))}else e.partText=e.partText.substring(0,r-1)+e.partText.substring(r),o&&this.shiftFormatParts(e),this.formatRenderer.render(),this.formatNavigator.moveCursorLeft(),this.processSlotRules(e,!0);break;case"Delete":e.partText=e.partText.substring(0,r)+e.partText.substring(r+1),o&&this.shiftFormatParts(e),this.formatRenderer.render(),this.formatNavigator.setCursorToCurrentPosition(),this.processSlotRules(e,!0)}}},t.prototype.shiftFormatParts=function(t){for(var e,n=t;void 0!==(e=this.inputSlotCollection.getNextSlot(n.partIndex));){var r=e.partText.substring(0,1);e.partText=e.partText.substring(1),n.partText=n.partText+r,n=e}},t.prototype.processInputRules=function(t){var e=this.inputSlotCollection.getSlot(this.formatNavigator.getCurrentPartIndex());if(e){var n=t.key,r=e.characterCount,o=e.partText;if(e.valueType===Pf.Numeric){if(!this.keyTypeChecker.isNumberKey(n))return;var i=e.maximumValue,a=e.exceedingMaximumValueCausesTab||!1,u=e.padWithZeros||!1,c=parseInt(this.createNewValue(e,n));if(i&&c>i){if(!a)return;u&&(e.partText=e.partText.padStart(r,"0")),e.isComplete=!0;var l=this.inputSlotCollection.getNextSlot(e.partIndex);l&&!l.isComplete&&(l.partText=n),this.formatRenderer.render(),l&&this.formatNavigator.setCursorPosition(l.isComplete?l.startPosition:l.startPosition+1)}else o.length+1===r?(this.addToInputSlot(n),e.isComplete=!0,this.formatRenderer.render(),this.formatNavigator.isAtLastPart()?this.formatNavigator.moveCursorRight():this.formatNavigator.moveToNextInputPart()):o.length+1<r&&(this.addToInputSlot(n),this.formatRenderer.render(),this.formatNavigator.moveCursorRight())}else o.length+1===r?(this.addToInputSlot(n),e.isComplete=!0,this.formatRenderer.render(),this.formatNavigator.moveToNextInputPart()):(this.addToInputSlot(n),this.formatRenderer.render(),this.formatNavigator.moveCursorRight())}},t.prototype.addToInputSlot=function(t){var e=this.inputSlotCollection.getSlot(this.formatNavigator.getCurrentPartIndex());e&&(e.partText=this.createNewValue(e,t))},t.prototype.createNewValue=function(t,e){var n=t.partText,r=this.formatNavigator.getCursorPosition();if(r>=t.startPosition+t.partText.length)return n+e;var o=r-t.startPosition;return n.substring(0,o)+e+n.substring(o)},t.prototype.processSlotRules=function(t,e){void 0===e&&(e=!1);var n=t.characterCount,r=t.allCharactersRequired||!1;if(t.valueType===Pf.Numeric){var o=t.minimumValue,i=t.maximumValue;if(r)t.isComplete=t.partText.length===n;else if(void 0!==o&&void 0!==i){var a=t.padWithZeros||!1,u=parseInt(t.partText);t.isComplete=u>=o&&u<=i,t.isComplete&&a&&!e&&(t.partText=t.partText.padStart(n,"0"))}else t.isComplete=t.partText.length>0}else t.isComplete=r?t.partText.length===n:t.partText.length>0},t}(),Wf=function(){function t(t,e){this.format=t,this.instanceCollection=Nf.getInstance(),this.formatNavigator=this.instanceCollection.getNavigatorInstance(e,t),this.ruleProcessor=new Bf(t,e),this.keyTypeChecker=new Uf,this.formatRenderer=new Mf(t,e)}return t.prototype.setInputElement=function(t){this.ruleProcessor.setInputElement(t),this.formatRenderer.setInputElement(t)},t.prototype.processMovementKey=function(t){var e=t.key,n=t.metaKey;switch(e){case"ArrowLeft":n?this.formatNavigator.moveHome():this.formatNavigator.moveCursorLeft();break;case"ArrowRight":n?this.formatNavigator.moveEnd():this.formatNavigator.moveCursorRight();break;case"Home":this.formatNavigator.moveHome();break;case"End":this.formatNavigator.moveEnd()}},t.prototype.processKeyPress=function(t){return!this.keyTypeChecker.isIgnoreKey(t)&&(this.keyTypeChecker.isMovementKey(t)?(this.processMovementKey(t),!1):(this.ruleProcessor.processKeyPress(t),!0))},t}(),$f=function(){function t(t,e){void 0===e&&(e=""),this.inputValue=e,this.previousOutputValue="",this.inputElementSet=!1,this.isInputFocused=!1,this.instanceId=Cf(),this.instanceCollection=Nf.getInstance(),this.keyProcessor=new Wf(t,this.instanceId),this.formatNavigator=this.instanceCollection.getNavigatorInstance(this.instanceId,t),this.formatRenderer=new Mf(t,this.instanceId),this.inputSlotCollection=this.instanceCollection.getInputSlotInstance(this.instanceId,t),this.inputRuleProcessor=new Bf(t,this.instanceId)}return t.prototype.inputElementCreated=function(t){this.keyProcessor.setInputElement(t),this.formatNavigator.setInputElement(t),this.formatRenderer.setInputElement(t),this.inputElement=t,this.inputElementSet=!0,this.inputElementSet&&this.inputValue.length>0&&this.inputValuePassed(this.inputValue)},t.prototype.inputFocused=function(){var t=this;this.isInputFocused=!0,this.formatRenderer.render(),setTimeout((function(){return t.formatNavigator.setCursorToCurrentPosition()}))},t.prototype.inputBlurred=function(){this.isInputFocused=!1},t.prototype.inputValuePassed=function(t){var e=this;this.inputValue=t,this.inputElementSet&&this.inputValue.length>0&&(this.inputRuleProcessor.processInputValue(t),setTimeout((function(){e.formatRenderer.render(),e.isInputFocused&&e.formatNavigator.setCursorToCurrentPosition()})))},t.prototype.registerFormatChangeEvent=function(t){this.onFormatChange=t},t.prototype.keyDownHandler=function(t){"Tab"!==t.key&&(t.preventDefault(),t.stopPropagation(),this.keyProcessor.processKeyPress(t)&&this.inputElement&&this.onFormatChange&&(this.inputSlotCollection.allSlotsCompleted()&&this.previousOutputValue!==this.inputElement.innerHTML?(this.previousOutputValue=this.inputElement.innerHTML,this.onFormatChange(this.inputElement.innerHTML)):this.inputSlotCollection.allSlotsEmpty()&&void 0!==this.previousOutputValue&&(this.previousOutputValue=void 0,this.onFormatChange())))},t.prototype.dispose=function(){this.instanceCollection.removeInstances(this.instanceId)},t}(),qf={formatParts:[{characterCount:2,placeholder:"D",inputText:"_",isSeparator:!1,allCharactersRequired:!1,valueType:Pf.Numeric,minimumValue:1,maximumValue:31,exceedingMaximumValueCausesTab:!0,padWithZeros:!0},{characterCount:1,placeholder:"/",inputText:"/",isSeparator:!0},{characterCount:2,placeholder:"M",inputText:"_",isSeparator:!1,allCharactersRequired:!1,valueType:Pf.Numeric,minimumValue:1,maximumValue:12,exceedingMaximumValueCausesTab:!0,padWithZeros:!0},{characterCount:1,placeholder:"/",inputText:"/",isSeparator:!0},{characterCount:4,placeholder:"Y",inputText:"_",isSeparator:!1,allCharactersRequired:!0,valueType:Pf.Numeric}]},Zf={formatParts:[{characterCount:2,placeholder:"M",inputText:"_",isSeparator:!1,allCharactersRequired:!1,valueType:Pf.Numeric,minimumValue:1,maximumValue:12,exceedingMaximumValueCausesTab:!0,padWithZeros:!0},{characterCount:1,placeholder:"/",inputText:"/",isSeparator:!0},{characterCount:2,placeholder:"D",inputText:"_",isSeparator:!1,allCharactersRequired:!1,valueType:Pf.Numeric,minimumValue:1,maximumValue:31,exceedingMaximumValueCausesTab:!0,padWithZeros:!0},{characterCount:1,placeholder:"/",inputText:"/",isSeparator:!0},{characterCount:4,placeholder:"Y",inputText:"_",isSeparator:!1,allCharactersRequired:!0,valueType:Pf.Numeric}]},Kf={formatParts:[{characterCount:4,placeholder:"Y",inputText:"_",isSeparator:!1,allCharactersRequired:!0,valueType:Pf.Numeric},{characterCount:1,placeholder:"-",inputText:"-",isSeparator:!0},{characterCount:2,placeholder:"M",inputText:"_",isSeparator:!1,allCharactersRequired:!1,valueType:Pf.Numeric,minimumValue:1,maximumValue:12,exceedingMaximumValueCausesTab:!0,padWithZeros:!0},{characterCount:1,placeholder:"-",inputText:"-",isSeparator:!0},{characterCount:2,placeholder:"D",inputText:"_",isSeparator:!1,allCharactersRequired:!1,valueType:Pf.Numeric,minimumValue:1,maximumValue:31,exceedingMaximumValueCausesError:!0,padWithZeros:!0}]},Xf={formatParts:[{characterCount:2,placeholder:"D",inputText:"_",isSeparator:!1,allCharactersRequired:!1,valueType:Pf.Numeric,minimumValue:1,maximumValue:31,exceedingMaximumValueCausesTab:!0,padWithZeros:!0},{characterCount:1,placeholder:"/",inputText:"/",isSeparator:!0},{characterCount:2,placeholder:"M",inputText:"_",isSeparator:!1,allCharactersRequired:!1,valueType:Pf.Numeric,minimumValue:1,maximumValue:12,exceedingMaximumValueCausesTab:!0,padWithZeros:!0},{characterCount:1,placeholder:"/",inputText:"/",isSeparator:!0},{characterCount:4,placeholder:"Y",inputText:"_",isSeparator:!1,allCharactersRequired:!0,valueType:Pf.Numeric},{characterCount:3,placeholder:" - ",inputText:" - ",isSeparator:!0},{characterCount:2,placeholder:"D",inputText:"_",isSeparator:!1,allCharactersRequired:!1,valueType:Pf.Numeric,minimumValue:1,maximumValue:31,exceedingMaximumValueCausesTab:!0,padWithZeros:!0},{characterCount:1,placeholder:"/",inputText:"/",isSeparator:!0},{characterCount:2,placeholder:"M",inputText:"_",isSeparator:!1,allCharactersRequired:!1,valueType:Pf.Numeric,minimumValue:1,maximumValue:12,exceedingMaximumValueCausesTab:!0,padWithZeros:!0},{characterCount:1,placeholder:"/",inputText:"/",isSeparator:!0},{characterCount:4,placeholder:"Y",inputText:"_",isSeparator:!1,allCharactersRequired:!0,valueType:Pf.Numeric}]},Qf={formatParts:[{characterCount:2,placeholder:"M",inputText:"_",isSeparator:!1,allCharactersRequired:!1,valueType:Pf.Numeric,minimumValue:1,maximumValue:12,exceedingMaximumValueCausesTab:!0,padWithZeros:!0},{characterCount:1,placeholder:"/",inputText:"/",isSeparator:!0},{characterCount:2,placeholder:"D",inputText:"_",isSeparator:!1,allCharactersRequired:!1,valueType:Pf.Numeric,minimumValue:1,maximumValue:31,exceedingMaximumValueCausesTab:!0,padWithZeros:!0},{characterCount:1,placeholder:"/",inputText:"/",isSeparator:!0},{characterCount:4,placeholder:"Y",inputText:"_",isSeparator:!1,allCharactersRequired:!0,valueType:Pf.Numeric},{characterCount:3,placeholder:" - ",inputText:" - ",isSeparator:!0},{characterCount:2,placeholder:"M",inputText:"_",isSeparator:!1,allCharactersRequired:!1,valueType:Pf.Numeric,minimumValue:1,maximumValue:12,exceedingMaximumValueCausesTab:!0,padWithZeros:!0},{characterCount:1,placeholder:"/",inputText:"/",isSeparator:!0},{characterCount:2,placeholder:"D",inputText:"_",isSeparator:!1,allCharactersRequired:!1,valueType:Pf.Numeric,minimumValue:1,maximumValue:31,exceedingMaximumValueCausesTab:!0,padWithZeros:!0},{characterCount:1,placeholder:"/",inputText:"/",isSeparator:!0},{characterCount:4,placeholder:"Y",inputText:"_",isSeparator:!1,allCharactersRequired:!0,valueType:Pf.Numeric}]},Gf={formatParts:[{characterCount:4,placeholder:"Y",inputText:"_",isSeparator:!1,allCharactersRequired:!0,valueType:Pf.Numeric},{characterCount:1,placeholder:"-",inputText:"-",isSeparator:!0},{characterCount:2,placeholder:"M",inputText:"_",isSeparator:!1,allCharactersRequired:!1,valueType:Pf.Numeric,minimumValue:1,maximumValue:12,exceedingMaximumValueCausesTab:!0,padWithZeros:!0},{characterCount:1,placeholder:"-",inputText:"-",isSeparator:!0},{characterCount:2,placeholder:"D",inputText:"_",isSeparator:!1,allCharactersRequired:!1,valueType:Pf.Numeric,minimumValue:1,maximumValue:31,exceedingMaximumValueCausesTab:!0,padWithZeros:!0},{characterCount:3,placeholder:" - ",inputText:" - ",isSeparator:!0},{characterCount:4,placeholder:"Y",inputText:"_",isSeparator:!1,allCharactersRequired:!0,valueType:Pf.Numeric},{characterCount:1,placeholder:"-",inputText:"-",isSeparator:!0},{characterCount:2,placeholder:"M",inputText:"_",isSeparator:!1,allCharactersRequired:!1,valueType:Pf.Numeric,minimumValue:1,maximumValue:12,exceedingMaximumValueCausesTab:!0,padWithZeros:!0},{characterCount:1,placeholder:"/",inputText:"/",isSeparator:!0},{characterCount:2,placeholder:"D",inputText:"_",isSeparator:!1,allCharactersRequired:!1,valueType:Pf.Numeric,minimumValue:1,maximumValue:31,exceedingMaximumValueCausesError:!0,padWithZeros:!0}]},Jf={formatParts:[{characterCount:2,placeholder:"H",inputText:"_",isSeparator:!1,allCharactersRequired:!1,valueType:Pf.Numeric,minimumValue:1,maximumValue:12,exceedingMaximumValueCausesTab:!0,padWithZeros:!0},{characterCount:1,placeholder:":",inputText:":",isSeparator:!0},{characterCount:2,placeholder:"M",inputText:"_",isSeparator:!1,allCharactersRequired:!1,valueType:Pf.Numeric,minimumValue:0,maximumValue:59,exceedingMaximumValueCausesError:!0,padWithZeros:!0},{characterCount:1,placeholder:" ",inputText:" ",isSeparator:!0},{characterCount:2,inputText:"_",isSeparator:!1,possibleValues:["AM","PM"]}]},tp={formatParts:[{characterCount:2,placeholder:"H",inputText:"_",isSeparator:!1,allCharactersRequired:!1,valueType:Pf.Numeric,minimumValue:0,maximumValue:23,exceedingMaximumValueCausesTab:!0,padWithZeros:!0},{characterCount:1,placeholder:":",inputText:":",isSeparator:!0},{characterCount:2,placeholder:"M",inputText:"_",isSeparator:!1,allCharactersRequired:!1,valueType:Pf.Numeric,minimumValue:1,maximumValue:59,exceedingMaximumValueCausesError:!0,padWithZeros:!0}]},ep=o(i((function(t,n){var r=t.value,o=void 0===r?"":r,i=t.format,l=t.defaultFormat,f=void 0===l?gf.Custom:l,p=t.readOnly,d=void 0!==p&&p,h=t.debounceTime,m=void 0===h?800:h,y=t.fillContainer,v=void 0===y||y,b=t.leftElement,g=t.rightElement,w=t.className,x=t.leftElementClassName,S=t.rightElementClassName,_=t.isSingleLine,O=void 0!==_&&_,T=t.allowSingleLineScroll,C=void 0!==T&&T,P=t.onChange,D=t.onFocus,E=t.onBlur,j=t.onElementCreate,R=t.onLeftElementClick,N=t.onRightElementClick,M=a(),I=a(),A=a();s((function(){return function(){var t;null===(t=A.current)||void 0===t||t.dispose()}}),[]),s((function(){A.current&&(console.log("value",o),A.current.inputValuePassed(o))}),[o]),s((function(){var t,e,n;if(null===(t=A.current)||void 0===t||t.dispose(),f!==gf.Custom){var r=V(f);if(!r)throw new Error("The selected format does not exist");A.current=new $f(r,o)}else{if(!i)throw new Error("The format property is required when the default format is custom");A.current=new $f(i,o)}I.current&&(null===(e=A.current)||void 0===e||e.inputElementCreated(I.current)),null===(n=A.current)||void 0===n||n.registerFormatChangeEvent(L)}),[f,i]);var L=u((function(t){null==P||P(t)}),[P]),V=u((function(t){switch(t){case gf.DateDayMonthYear:return qf;case gf.DateMonthDayYear:return Zf;case gf.DateYearMonthDay:return Kf;case gf.DateRangeDayMonthYear:return Xf;case gf.DateRangeMonthDayYear:return Qf;case gf.DateRangeYearMonthDay:return Gf;case gf.Time12Hour:return Jf;case gf.Time24Hour:return tp}}),[]),z=u((function(t){var e;null===(e=A.current)||void 0===e||e.inputFocused(),null==D||D(t)}),[D]),Y=u((function(t){var e;null===(e=A.current)||void 0===e||e.inputBlurred(),null==E||E(t)}),[E]),F=u((function(t){var e;null===(e=A.current)||void 0===e||e.keyDownHandler(t)}),[]),U=u((function(t){var e,n,r,o,i;null===(n=null===(e=M.current)||void 0===e?void 0:e.inputElement)||void 0===n||n.removeEventListener("keydown",F),M.current=t,null===(o=null===(r=M.current)||void 0===r?void 0:r.inputElement)||void 0===o||o.addEventListener("keydown",F),I.current=null===(i=M.current)||void 0===i?void 0:i.inputElement}),[]),H=u((function(){var t;null===(t=M.current)||void 0===t||t.focus()}),[]);return c(n,(function(){return{focus:H}})),e(k,{ref:function(t){return t&&U(t)},readOnly:d,debounceTime:m,fillContainer:v,leftElement:b,rightElement:g,className:w,leftElementClassName:x,rightElementClassName:S,isSingleLine:O,allowSingleLineScroll:C,onFocus:z,onBlur:Y,onElementCreate:j,onLeftElementClick:R,onRightElementClick:N})}))),np=p(void 0);function rp(t,e,n){var r,o;void 0===n&&(n=!0);var i=ho(t),a=Yr(t),u=function(t){Pr(1,arguments);var e=Er(t),n=e.getMonth();return e.setFullYear(e.getFullYear(),n+1,0),e.setHours(0,0,0,0),e}(t),c=po(a)-((null===(r=e.options)||void 0===r?void 0:r.weekStartsOn)||0);c=-1===c?6:c;for(var l=po(u)-((null===(o=e.options)||void 0===o?void 0:o.weekStartsOn)||0),s=function(t,e){var n;Pr(1,arguments);var r=t||{},o=Er(r.start),i=Er(r.end).getTime();if(!(o.getTime()<=i))throw new RangeError("Invalid interval");var a=[],u=o;u.setHours(0,0,0,0);var c=Number(null!==(n=null==e?void 0:e.step)&&void 0!==n?n:1);if(c<1||isNaN(c))throw new RangeError("`options.step` must be a number greater than 1");for(;u.getTime()<=i;)a.push(Er(u)),u.setDate(u.getDate()+c),u.setHours(0,0,0,0);return a}({start:a,end:u}),f=i+c>35?6:5,p=op(f,7,{dayValue:null,isCurrent:!0}),d=1,h=0,m=f;h<m;h++){for(var y=h>0?0:c;y<7;y++){var v=s[d-1];if(v.setHours(t.getHours(),t.getMinutes(),t.getSeconds()),p[h][y].dayValue=v,++d>i)break}if(d>i)break}if(c>0&&n)for(var b=0;b<c;b++)p[0][b].dayValue=Vl(a,c-b),p[0][b].isCurrent=!1;if(l>-1&&n)for(var g=6;g>l;g--)p[f-1][g].dayValue=jr(u,g-l),p[f-1][g].isCurrent=!1;return p}function op(t,e,n){for(var r,o,i=[],a=0,u=t;a<u;a++){for(var c=[],l=0,s=e;l<s;l++){var f=(o=void 0,"string"===(o=typeof(r=n))||"number"===o||"boolean"===o||r instanceof Date?n:y({},n));c.push(f)}i.push(c)}return i}function ip(t){for(var e,n=function(t,e){Pr(2,arguments);var n=e-po(t);return n<=0&&(n+=7),jr(t,n)}(new Date,(null===(e=t.options)||void 0===e?void 0:e.weekStartsOn)||0),r=[],o=0;o<7;o++)r.push(jr(n,o).toLocaleDateString(t.code,{weekday:"short"}));return r}function ap(t,e){var n=new Date(t.getTime()),r=10*Math.floor(n.getFullYear()/10);n.setFullYear(r);for(var o=function(t){Pr(1,arguments);var e=t||{},n=Er(e.start),r=Er(e.end).getTime();if(!(n.getTime()<=r))throw new RangeError("Invalid interval");var o=[],i=n;for(i.setHours(0,0,0,0),i.setMonth(0,1);i.getTime()<=r;)o.push(Er(i)),i.setFullYear(i.getFullYear()+1);return o}({start:n,end:Ar(n,9)}),i=op(3,4,""),a=0,u=0;u<3;u++)for(var c=0;c<4&&(i[u][c]=o[a++].toLocaleDateString(e.code,{year:"numeric"}),a!==o.length);c++);return i}function up(t){var e=new Date;return e.setHours(0,0,0,0),e.toLocaleTimeString(t.code)}function cp(t){return new Promise((function(e,n){import("date-fns/locale/".concat(t)).then((function(t){t&&t.default&&e(t.default),n("Locale did not load correctly")})).catch((function(r){var o=t.split("-");if(2===o.length){var i=o[0];import("date-fns/locale/".concat(i)).then((function(t){t&&t.default&&e(t.default),n("Locale did not load correctly")})).catch((function(t){return n(t)}))}else n(r)}))}))}function lp(t,e){var n=zl(t);if(isNaN(n.valueOf())){var r=Ll(t,"P pp",new Date,{locale:e});return isNaN(r.valueOf())?(r=Ll(t,"Pp",new Date,{locale:e}),isNaN(r.valueOf())?(r=Ll(t,"P HH:mm",new Date,{locale:e}),isNaN(r.valueOf())?(r=Ll(t,"P HH:mm aaa",new Date,{locale:e}),isNaN(r.valueOf())?(r=Ll(t,"P HH:mm:ss",new Date,{locale:e}),isNaN(r.valueOf())?(r=Ll(t,"P HH:mm:ss aaa",new Date,{locale:e}),isNaN(r.valueOf())?(r=Ll(t,"P",new Date,{locale:e}),isNaN(r.valueOf())?(r=Ll(t,"pp",new Date,{locale:e}),isNaN(r.valueOf())?(r=Ll(t,"p",new Date,{locale:e}),isNaN(r.valueOf())?void 0:r):r):r):r):r):r):r):r):r}return n}function sp(t,e){var n=t.split("-");if(2===n.length){var r=lp(n[0].trim(),e);if(r){var o=lp(n[1].trim(),e);if(o)return[r,o]}}}!function(t){t[t.DateTime=0]="DateTime",t[t.DateOnly=1]="DateOnly",t[t.TimeOnly=2]="TimeOnly",t[t.DateRange=3]="DateRange"}(If||(If={})),function(t){t[t.Day=0]="Day",t[t.Month=1]="Month",t[t.Year=2]="Year",t[t.Range=3]="Range"}(Af||(Af={})),function(t){t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long"}(Lf||(Lf={})),function(t){t[t.TwelveHour=0]="TwelveHour",t[t.TwentyFourHour=1]="TwentyFourHour"}(Vf||(Vf={})),function(t){t[t.Normal=0]="Normal",t[t.Range=1]="Range"}(zf||(zf={})),function(t){t[t.Right=0]="Right",t[t.Left=1]="Left",t[t.None=2]="None"}(Yf||(Yf={})),function(t){t[t.DaySelector=0]="DaySelector",t[t.MonthSelector=1]="MonthSelector",t[t.YearSelector=2]="YearSelector",t[t.TimeSelector=3]="TimeSelector",t[t.DateRangeSelector=4]="DateRangeSelector",t[t.SetViewDate=5]="SetViewDate",t[t.SetSelectedDate=6]="SetSelectedDate",t[t.SetSelectedDateRange=7]="SetSelectedDateRange",t[t.SetSelectedStartDate=8]="SetSelectedStartDate",t[t.SetSelectedEndDate=9]="SetSelectedEndDate",t[t.SetInputFormat=10]="SetInputFormat",t[t.ClearDates=11]="ClearDates",t[t.InitializeDates=12]="InitializeDates"}(Ff||(Ff={}));var fp=function(t,e){switch(e.type){case Ff.DaySelector:return y(y({},t),{currentSelector:Ff.DaySelector,currentViewDate:e.viewDate||t.currentViewDate});case Ff.MonthSelector:return y(y({},t),{currentSelector:Ff.MonthSelector,currentViewDate:e.viewDate||t.currentViewDate});case Ff.YearSelector:return y(y({},t),{currentSelector:Ff.YearSelector});case Ff.TimeSelector:return y(y({},t),{currentSelector:Ff.TimeSelector});case Ff.DateRangeSelector:return y(y({},t),{currentSelector:Ff.DateRangeSelector,currentViewDate:e.viewDate||t.currentViewDate});case Ff.SetViewDate:return y(y({},t),{currentViewDate:e.viewDate||new Date,dateInitialized:!0});case Ff.SetSelectedDate:return y(y({},t),{selectedDate:e.selectedDate||t.selectedDate,currentViewDate:e.viewDate||t.currentViewDate});case Ff.SetSelectedDateRange:return y(y({},t),{selectedStartDate:e.selectedStartDate||t.selectedStartDate,selectedEndDate:e.selectedEndDate||t.selectedEndDate});case Ff.SetSelectedStartDate:return y(y({},t),{selectedStartDate:e.selectedStartDate,selectedEndDate:void 0});case Ff.SetSelectedEndDate:return y(y({},t),{selectedEndDate:e.selectedEndDate});case Ff.SetInputFormat:return y(y({},t),{timeFormat:e.inputFormat===gf.Time24Hour?Vf.TwentyFourHour:e.timeFormat||Vf.TwelveHour,inputFormat:e.inputFormat});case Ff.ClearDates:return{currentSelector:t.currentSelector,currentViewDate:t.currentViewDate,timeFormat:t.timeFormat,inputFormat:t.inputFormat,dateInitialized:!0};case Ff.InitializeDates:var n=y(y({},t),{currentViewDate:(r=e.initialDate,r?Array.isArray(r)?r[0]:r:new Date),dateInitialized:!0});return Array.isArray(e.initialDate)?y(y({},n),{selectedStartDate:e.initialDate[0],selectedEndDate:e.initialDate[1]}):y(y({},n),{selectedDate:e.initialDate});default:return y(y({},t),{currentSelector:Ff.DaySelector})}var r};function pp(n){var r,o=this,i=n.viewDate,u=n.selectedDate,c=n.selectedStartDate,f=n.selectedEndDate,p=n.selectionMode,h=void 0===p?zf.Normal:p,m=n.locale,g=n.onDateSelected,w=n.selectableDate,x=n.isValidDate,_=n.dispatcher,k=l(),O=k[0],T=k[1],C=l(!1),P=C[0],D=C[1],E=a(),j=a(),R=l(),N=R[0],M=R[1],I=l(),A=I[0],L=I[1],V=l(),z=V[0],Y=V[1],F=d(np),U=F.calendarTemplate;s((function(){v(o,void 0,void 0,(function(){var t;return b(this,(function(e){switch(e.label){case 0:return(t=m)?[3,2]:[4,cp(Gl())];case 1:t=e.sent(),e.label=2;case 2:return[2,t]}}))})).then((function(t){E.current=t,j.current=ip(E.current),D(!0)})).catch((function(t){return console.error(t)}))}),[]),s((function(){i&&E.current&&T(rp(i,E.current,h===zf.Normal))}),[i,P]),s((function(){M(u?new Date(u.getFullYear(),u.getMonth(),u.getDate()):void 0)}),[u]),s((function(){L(c?new Date(c.getFullYear(),c.getMonth(),c.getDate(),0,0,0).getTime():void 0),Y(f?new Date(f.getFullYear(),f.getMonth(),f.getDate(),23,59,59).getTime():void 0)}),[c,f]),s((function(){E.current&&m&&(E.current=m,T(rp(i,E.current,h===zf.Normal)))}),[m]);var H=function(t){if(h===zf.Normal)null==_||_({type:Ff.SetSelectedDate,selectedDate:t,viewDate:t}),null==g||g(t);else{if(!g)throw new Error("Range selection mode requires onDateSelected to be set");!c||function(t,e){Pr(2,arguments);var n=Er(t),r=Er(e);return n.getTime()<r.getTime()}(t,c)?g(t):c&&!f?g(t,{setEndDate:!0}):c&&f&&g(t)}},B=function(t){return(null==N?void 0:N.toLocaleDateString())===t.toLocaleDateString()},W=function(t){if(A&&z){var e=t.getTime();return e>=A&&e<=z}return!1},$={viewDate:i,selectedDate:u,selectedStartDate:c,selectedEndDate:f,selectionMode:h,locale:m,weekDays:j.current,monthMatrix:O,selectableDate:w,isValidDate:x,onDateClicked:H,isSelectedDate:B,isInSelectedDateRange:W},q=U||function(t,n){return e("div",y({className:"bsc-w-full bc-dt-calendar"},{children:n}))};return e(ts,y({props:$,template:q},{children:t("div",y({className:"bsc-grid bsc-grid-cols-7 bsc-gap-3 bc-dt-day-row bsc-min-w-[329px]"},{children:[null===(r=j.current)||void 0===r?void 0:r.map((function(t,n){return e("div",y({className:"bsc-text-center bsc-font-bold bc-dt-day-cell"},{children:t}),n)})),null==O?void 0:O.map((function(t,n){return t.map((function(t,r){var o,i,a,u=null!==t.dayValue&&(void 0===w||w(t.dayValue)),c=S("bsc-text-center bsc-py-1",((o={"bsc-text-gray-400":!t.isCurrent})["".concat(F.colors.selectedDateColor||"bsc-bg-blue-100"," dark:bsc-bg-white dark:bsc-text-black bsc-rounded-full")]=t&&t.dayValue&&(N&&B(t.dayValue)||A&&!z&&zr(A,t.dayValue)||A&&z&&W(t.dayValue)),o["bsc-cursor-pointer"]=u,o["bsc-text-red-300 bsc-cursor-not-allowed"]=!u,o["".concat(F.colors.todayDateColor||"bsc-bg-green-100"," dark:bsc-text-black bsc-rounded-full")]=t.dayValue&&function(t){return Pr(1,arguments),zr(t,Date.now())}(t.dayValue)&&!B(t.dayValue),o),"bc-dt-date-cell");return e("div",y({className:c,onClick:function(){return t&&t.dayValue&&u&&(void 0===x||x(t.dayValue))&&H(t.dayValue)}},{children:null===(i=t.dayValue)||void 0===i?void 0:i.getDate().toLocaleString(null===(a=E.current)||void 0===a?void 0:a.code)}),n.toString()+r.toString())}))}))]}))}))}function dp(n){var r=n.title,o=n.scrollerType,i=n.onTitleClicked,a=n.onMovePrevious,u=n.onMoveNext,c=d(np).dateScrollerTemplate||function(t,n){return e("div",y({className:"bsc-w-full bsc-flex bsc-flex-row bsc-py-1 bsc-px-2 bc-dt-scroller"},{children:n}))};return t(ts,y({props:{title:r,scrollerType:o,onTitleClicked:i,onMovePrevious:a,onMoveNext:u},template:c},{children:[e("div",y({className:"bsc-flex-shrink bsc-cursor-pointer bc-dt-scroller-left"},{children:e("button",y({className:"focus:bsc-outline-none",onClick:a},{children:e(Or,{icon:["fas","angle-left"]})}))})),e("div",y({className:"bsc-flex-grow bsc-text-center bsc-cursor-pointer bc-dt-scroller-title",onClick:i},{children:r})),e("div",y({className:"bsc-flex-shrink bsc-cursor-pointer bc-dt-scroller-right"},{children:e("button",y({className:"focus:bsc-outline-none",onClick:u},{children:e(Or,{icon:["fas","angle-right"]})}))}))]}))}function hp(n){var r=n.selectedDate,o=n.viewDate,i=n.locale,a=n.showTimeSelector,u=n.selectableDate,c=n.isValidDate,l=n.onChange,s=n.dispatcher;return t("div",y({className:"bsc-p-2 bc-dt-day-selector"},{children:[e(dp,{title:o?o.toLocaleDateString(i.code,{month:"long",year:"numeric"}):"",scrollerType:Af.Day,onTitleClicked:function(){s({type:Ff.MonthSelector})},onMovePrevious:function(){o&&s({type:Ff.SetViewDate,viewDate:Xl(o,1)})},onMoveNext:function(){o&&s({type:Ff.SetViewDate,viewDate:Rr(o,1)})}}),e(pp,{viewDate:o,selectedDate:r,locale:i,selectableDate:u,isValidDate:c,onDateSelected:l,dispatcher:s}),a&&e("div",y({className:"bsc-w-full bsc-flex bsc-flex-row bsc-p-2 bsc-justify-center bc-dt-time-value-wrapper"},{children:e("div",y({className:"bsc-p-2 bsc-cursor-pointer hover:bsc-bg-gray-300 dark:hover:bsc-bg-white dark:hover:bsc-text-black dark:bsc-text-white bc-dt-time-value",onClick:function(){s({type:Ff.TimeSelector})}},{children:(null==r?void 0:r.toLocaleTimeString(i.code))||up(i)}))}))]}))}function mp(n){var r=n.viewDate,o=n.locale,i=n.dateSelection,u=void 0===i?If.DateTime:i,c=n.dispatcher,l=a(function(t){for(var e=new Date(Date.UTC(2020,0,1)),n=[[{monthNumber:0,monthName:""},{monthNumber:0,monthName:""},{monthNumber:0,monthName:""},{monthNumber:0,monthName:""}],[{monthNumber:0,monthName:""},{monthNumber:0,monthName:""},{monthNumber:0,monthName:""},{monthNumber:0,monthName:""}],[{monthNumber:0,monthName:""},{monthNumber:0,monthName:""},{monthNumber:0,monthName:""},{monthNumber:0,monthName:""}]],r=0,o=0;o<3;o++)for(var i=0;i<4;i++)n[o][i]={monthNumber:r,monthName:Rr(e,r++).toLocaleDateString(t.code,{month:"short"})};return n}(o));return t("div",y({className:"bsc-p-2 bc-dt-month-selector",style:{minWidth:"20rem"}},{children:[e(dp,{title:r.toLocaleDateString(o.code,{year:"numeric"}),scrollerType:Af.Month,onTitleClicked:function(){c({type:Ff.YearSelector})},onMovePrevious:function(){var t=Ql(r,1);c({type:Ff.SetViewDate,viewDate:t})},onMoveNext:function(){var t=Ar(r,1);c({type:Ff.SetViewDate,viewDate:t})}}),e("div",y({className:"bsc-w-full bsc-grid bsc-grid-cols-4 bsc-gap-4 bc-dt-month-grid"},{children:l.current.map((function(t,n){return t.map((function(t,o){return e("div",y({className:"bsc-text-center bsc-cursor-pointer bc-dt-month-cell",onClick:function(){return e=t.monthNumber,void c({type:u!==If.DateRange?Ff.DaySelector:Ff.DateRangeSelector,viewDate:Zl(r,e)});var e}},{children:t.monthName}),n.toString()+o.toString())}))}))}))]}))}function yp(n){var r=n.viewDate,o=n.selectedStartDate,i=n.selectedEndDate,a=n.locale,u=n.onChange,c=n.dispatcher,l=Rr(r,1),s=function(t,e){e&&e.setEndDate?(c({type:Ff.SetSelectedEndDate,selectedEndDate:t}),o&&(null==u||u([o,t]))):c({type:Ff.SetSelectedStartDate,selectedStartDate:t})};return t("div",y({className:"bsc-flex bsc-flex-col bc-dt-range-selector"},{children:[e("div",y({className:"bsc-flex-shrink bc-dt-range-scroller-wrapper"},{children:e(dp,{title:"".concat(r.toLocaleDateString(a.code,{month:"long"})," ").concat(r.toLocaleDateString(a.code,{year:"numeric"})," - ").concat(l.toLocaleDateString(a.code,{month:"long"})," ").concat(l.toLocaleDateString(a.code,{year:"numeric"})),scrollerType:Af.Range,onTitleClicked:function(){c({type:Ff.MonthSelector})},onMovePrevious:function(){r&&c({type:Ff.SetViewDate,viewDate:Xl(r,1)})},onMoveNext:function(){r&&c({type:Ff.SetViewDate,viewDate:Rr(r,1)})}})})),e("div",y({className:"bsc-flex-grow"},{children:t("div",y({className:"bsc-flex bsc-flex-row bsc-py-1 bsc-px-2 bc-dt-range-wrapper"},{children:[e("div",y({className:"bsc-border-r bsc-border-solid bsc-border-gray-400 bsc-pr-4 bc-dt-range-calendar-1"},{children:e(pp,{viewDate:r,selectedStartDate:o,selectedEndDate:i,selectionMode:zf.Range,onDateSelected:s,locale:a,dispatcher:c})})),e("div",y({className:"bsc-pl-4 bc-dt-range-calendar-2"},{children:e(pp,{viewDate:l,selectedStartDate:o,selectedEndDate:i,selectionMode:zf.Range,onDateSelected:s,locale:a,dispatcher:c})}))]}))}))]}))}function vp(n){var r=n.viewDate,o=n.showDateSelector,i=n.locale,u=n.timeFormat,c=void 0===u?Vf.TwelveHour:u,f=n.timeConstraints,p=n.onChange,d=n.dispatcher,h=a(c===Vf.TwelveHour?11:23),m=a(c===Vf.TwelveHour?["12","01","02","03","04","05","06","07","08","09","10","11"]:["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23"]),v=a(function(t,e,n){for(var r=[],o=t;o<=e;o++)r.push(n?n(o):o);return r}(0,59,(function(t){return t.toString().padStart(2,"0")}))),b=a(["AM","PM"]),g=a(_.cloneDeep(r)),w=function(t){return t>11?t-12:t},x=l(w(r.getHours())),k=x[0],O=x[1],T=l(r.getMinutes()),C=T[0],P=T[1],D=l(r.getHours()<=12?0:1),E=D[0],j=D[1],R=a(r.toLocaleDateString(i.code));s((function(){var t=r.getHours(),e=r.getMinutes();if(t!==k&&O(c===Vf.TwelveHour?w(t):t),e!==C&&P(e),c===Vf.TwelveHour){var n=t<=11?0:1;n!==E&&j(n)}}),[r]);var N=function(){var t=0===E?1:0;j(t),M(k,C,t)},M=function(t,e,n){var r=c===Vf.TwelveHour&&1===n?t+12:t;g.current.setHours(r,e),d({type:Ff.SetSelectedDate,selectedDate:g.current,viewDate:g.current}),null==p||p(g.current)},I=S("bsc-w-full bsc-grid bsc-grid-rows-3 bsc-gap-4 bc-dt-time-grid",{"bsc-grid-cols-4":c===Vf.TwelveHour,"bsc-grid-cols-3":c===Vf.TwentyFourHour}),A=S("bsc-text-center bsc-cursor-pointer hover:bsc-bg-gray-300 dark:bsc-text-white dark:hover:bsc-bg-white dark:hover:bsc-text-black bc-dt-time-date-value",{"bsc-col-span-4":c===Vf.TwelveHour,"bsc-col-span-3":c===Vf.TwentyFourHour});return e("div",y({className:"bsc-flex bsc-flex-row bsc-justify-center bsc-p-2 bc-dt-time-selector",style:{minWidth:c===Vf.TwelveHour?"15rem":"11rem"}},{children:t("div",y({className:I},{children:[o&&e("div",y({className:A,onClick:function(){d({type:Ff.DaySelector})}},{children:R.current})),e("div",y({className:"bsc-text-center bsc-cursor-pointer bc-dt-time-hour-increase"},{children:e("button",y({className:"focus:bsc-outline-none",onClick:function(){var t,e=(null===(t=null==f?void 0:f.hours)||void 0===t?void 0:t.step)||1,n=k<h.current?k+e:0;O(n),M(n,C,E)}},{children:e(Or,{icon:["fas","chevron-up"]})}))})),e("div",{children:" "}),e("div",y({className:"bsc-text-center bsc-cursor-pointer bc-dt-time-minute-increase"},{children:e("button",y({className:"focus:bsc-outline-none",onClick:function(){var t,e,n,r=(null===(t=null==f?void 0:f.minutes)||void 0===t?void 0:t.step)||1,o=C+r<((null===(e=null==f?void 0:f.minutes)||void 0===e?void 0:e.max)||59)?C+r:(null===(n=null==f?void 0:f.minutes)||void 0===n?void 0:n.min)||0;P(o),M(k,o,E)}},{children:e(Or,{icon:["fas","chevron-up"]})}))})),c===Vf.TwelveHour&&e("div",y({className:"bsc-text-center bsc-cursor-pointer bc-dt-time-meridian-increase"},{children:e("button",y({className:"focus:bsc-outline-none",onClick:N},{children:e(Or,{icon:["fas","chevron-up"]})}))})),e("div",y({className:"bsc-text-center bc-dt-time-hour-value"},{children:m.current[k]})),e("div",y({className:"bsc-text-center bc-dt-time-separator"},{children:":"})),e("div",y({className:"bsc-text-center bc-dt-time-minute-value"},{children:v.current[C]})),c===Vf.TwelveHour&&e("div",y({className:"bsc-text-center bc-dt-time-meridian-value"},{children:b.current[E]})),e("div",y({className:"bsc-text-center bsc-cursor-pointer bc-dt-time-hour-decrease"},{children:e("button",y({className:"focus:bsc-outline-none",onClick:function(){var t,e=(null===(t=null==f?void 0:f.hours)||void 0===t?void 0:t.step)||1,n=k>0?k-e:h.current;O(n),M(n,C,E)}},{children:e(Or,{icon:["fas","chevron-down"]})}))})),e("div",{children:" "}),e("div",y({className:"bsc-text-center bsc-cursor-pointer bc-dt-time-minute-decrease"},{children:e("button",y({className:"focus:bsc-outline-none",onClick:function(){var t,e,n,r=(null===(t=null==f?void 0:f.minutes)||void 0===t?void 0:t.step)||1,o=C-r>=((null===(e=null==f?void 0:f.minutes)||void 0===e?void 0:e.min)||0)?C-r:((null===(n=null==f?void 0:f.minutes)||void 0===n?void 0:n.max)||60)-r;P(o),M(k,o,E)}},{children:e(Or,{icon:["fas","chevron-down"]})}))})),c===Vf.TwelveHour&&e("div",y({className:"bsc-text-center bsc-cursor-pointer bc-dt-time-meridian-decrease"},{children:e("button",y({className:"focus:bsc-outline-none",onClick:N},{children:e(Or,{icon:["fas","chevron-down"]})}))}))]}))}))}function bp(n){var r=n.viewDate,o=n.locale,i=n.dispatcher,a=ap(r,o);return t("div",y({className:"bc-dt-year-selector",style:{minWidth:"20rem"}},{children:[e(dp,{title:"".concat(a[0][0].toString()," - ").concat(a[2][1].toString()),scrollerType:Af.Year,onMovePrevious:function(){var t=Ql(r,10);i({type:Ff.SetViewDate,viewDate:t})},onMoveNext:function(){var t=Ar(r,10);i({type:Ff.SetViewDate,viewDate:t})}}),e("div",y({className:"bsc-w-full bc-dt-year-wrapper"},{children:e("div",y({className:"bsc-grid bsc-grid-cols-4 bsc-gap-4 bc-dt-year-grid"},{children:a.map((function(t,n){return t.map((function(t,o){return t.length>0?e("div",y({className:"bsc-text-center bsc-cursor-pointer bc-dt-year-cell",onClick:function(){return e=parseInt(t),void i({type:Ff.MonthSelector,viewDate:Kl(r,e)});var e}},{children:t}),n.toString()+o.toString()):e("div",{},n.toString()+o.toString())}))}))}))}))]}))}function gp(r){var o,i=r.value,u=r.readOnly,c=void 0!==u&&u,f=r.label,p=r.useDefaultDateValue,d=void 0!==p&&p,m=r.useFormattedInput,v=void 0!==m&&m,b=r.allowClear,g=void 0!==b&&b,w=r.locale,x=r.className,_=r.dateSelection,O=void 0===_?If.DateTime:_,T=r.dateFormat,C=r.timeConstraints,P=r.icon,D=r.iconPosition,E=void 0===D?Yf.Right:D,j=r.inputElement,R=r.colors,N=void 0===R?{inputBgColor:"bsc-bg-white",readOnlyInputBgColor:"bsc-bg-gray-200",selectedDateColor:"bsc-bg-blue-100",todayDateColor:"bsc-bg-green-100"}:R,M=r.selectableDate,I=r.isValidDate,A=r.onChange,L=r.calendarTemplate,V=r.dateScrollerTemplate,z=r.inputTemplate,Y=l(!1),F=Y[0],U=Y[1],H=l(),B=H[0],W=H[1],$=a(),q=a(!1),Z=a(w||Gl()),K=a(),X=a(),Q=a(),G=a({calendarTemplate:L,dateScrollerTemplate:V,colors:N});s((function(){Z.current&&J(Z.current)}),[Z]),s((function(){w&&J(w)}),[w]),s((function(){if(i){var t=tt();ot({type:Ff.InitializeDates,initialDate:t})}}),[i,K.current]),s((function(){if(O&&K.current&&K.current.code){var t=function(t){return new Date(2023,11,20).toLocaleDateString(t,{year:"numeric",month:"numeric",day:"numeric"}).replace("".concat(2023),"YYYY").replace("".concat(12),"MM").replace("".concat(20),"DD")}(K.current.code);O===If.DateOnly?"DD/MM/YYYY"===t?ot({type:Ff.SetInputFormat,inputFormat:gf.DateDayMonthYear}):"MM/DD/YYYY"===t?ot({type:Ff.SetInputFormat,inputFormat:gf.DateMonthDayYear}):"YYYY/MM/DD"===t&&ot({type:Ff.SetInputFormat,inputFormat:gf.DateYearMonthDay}):O===If.TimeOnly?!function(t){var e=new Date;return e.setHours(18),"18"===e.toLocaleTimeString(t).split(":")[0]}(K.current.code)?ot({type:Ff.SetInputFormat,inputFormat:gf.Time12Hour}):ot({type:Ff.SetInputFormat,inputFormat:gf.Time24Hour}):O===If.DateRange&&("DD/MM/YYYY"===t?ot({type:Ff.SetInputFormat,inputFormat:gf.DateRangeDayMonthYear}):"MM/DD/YYYY"===t?ot({type:Ff.SetInputFormat,inputFormat:gf.DateRangeMonthDayYear}):"YYYY/MM/DD"===t&&ot({type:Ff.SetInputFormat,inputFormat:gf.DateRangeYearMonthDay}))}}),[O,K.current]),s((function(){j&&(X.current=j)}),[j]);var J=function(t){cp(t).then((function(t){K.current=t;var e=tt();ot(i||d?{type:Ff.InitializeDates,initialDate:Array.isArray(e)?e[0]:e}:{type:Ff.SetViewDate,viewDate:Array.isArray(e)?e[0]:e})})).catch((function(t){return console.error(t)}))},tt=function(){var t=new Date;return t.setHours(0,0,0,0),i?"string"==typeof i?O!==If.DateRange?lp(i,K.current):sp(i,K.current):i:t},et={currentSelector:O===If.TimeOnly?Ff.TimeSelector:O===If.DateTime||O===If.DateOnly?Ff.DaySelector:Ff.DateRangeSelector,currentViewDate:new Date,timeFormat:Vf.TwelveHour,dateInitialized:!1},nt=h(fp,et),rt=nt[0],ot=nt[1],it=function(){ft(),U(!0)},at=function(t){var e=t.target.innerText;ut(e)},ut=function(t){console.log("dateString '".concat(t,"'"));var e,n,r,o=O!==If.DateRange?lp(t,K.current):sp(t,K.current);console.log("inputDate",o),o?(Array.isArray(o)?(e=o[0],n=Yr(rt.currentViewDate),r=function(t){Pr(1,arguments);var e=Er(t),n=e.getMonth();return e.setFullYear(e.getFullYear(),n+1,0),e.setHours(23,59,59,999),e}(Rr(rt.currentViewDate,1)),e.getTime()>=n.getTime()&&e.getTime()<=r.getTime()||ot({type:Ff.SetViewDate,viewDate:o[0]}),ot({type:Ff.SetSelectedDateRange,selectedStartDate:o[0],selectedEndDate:o[1]})):ot({type:Ff.SetSelectedDate,selectedDate:o,viewDate:o}),null==A||A(o)):""===t&&(ot({type:Ff.ClearDates}),null==A||A())},ct=function(){ft(),U(!F)},lt=function(){ot({type:Ff.ClearDates}),U(!1),null==A||A()},st=function(t,e){X.current&&$.current===e||(X.current=t,$.current=e,q.current=!0)},ft=function(){Q.current&&!q.current||!X.current||(Q.current=X.current,W(X.current),q.current=!1)},pt=function(){var t,e,n,r,o,i,a,u,c,l,s,f,p=function(){switch(T){case Lf.Short:return"short";case Lf.Medium:return"medium";case Lf.Long:return"long";default:return}}();switch(O){case If.DateTime:return rt.selectedDate?p?rt.selectedDate.toLocaleString(null===(t=K.current)||void 0===t?void 0:t.code,{dateStyle:p,timeStyle:p}):rt.selectedDate.toLocaleString(null===(e=K.current)||void 0===e?void 0:e.code):"";case If.DateOnly:return rt.selectedDate?p?rt.selectedDate.toLocaleDateString(null===(n=K.current)||void 0===n?void 0:n.code,{dateStyle:p}):rt.selectedDate.toLocaleDateString(null===(r=K.current)||void 0===r?void 0:r.code):"";case If.TimeOnly:return rt.selectedDate?p?rt.selectedDate.toLocaleTimeString(null===(o=K.current)||void 0===o?void 0:o.code,{timeStyle:p,hour12:rt.timeFormat===Vf.TwelveHour,hourCycle:rt.timeFormat===Vf.TwentyFourHour?"h23":void 0}):rt.selectedDate.toLocaleTimeString(null===(i=K.current)||void 0===i?void 0:i.code,{hour12:rt.timeFormat===Vf.TwelveHour,hourCycle:rt.timeFormat===Vf.TwentyFourHour?"h23":void 0}):"";case If.DateRange:return rt.selectedStartDate&&rt.selectedEndDate?p?"".concat(rt.selectedStartDate.toLocaleDateString(null===(a=K.current)||void 0===a?void 0:a.code,{dateStyle:p})," - ").concat(rt.selectedEndDate.toLocaleDateString(null===(u=K.current)||void 0===u?void 0:u.code,{dateStyle:p})):"".concat(rt.selectedStartDate.toLocaleDateString(null===(c=K.current)||void 0===c?void 0:c.code)," - ").concat(rt.selectedEndDate.toLocaleDateString(null===(l=K.current)||void 0===l?void 0:l.code)):"";default:return rt.selectedDate?p?rt.selectedDate.toLocaleString(null===(s=K.current)||void 0===s?void 0:s.code,{dateStyle:p,timeStyle:p}):rt.selectedDate.toLocaleString(null===(f=K.current)||void 0===f?void 0:f.code):""}},dt=O===If.DateTime||O===If.DateOnly||O===If.DateRange,ht=O===If.DateTime||O===If.TimeOnly,mt=E===Yf.None?{}:E===Yf.Right?{rightElement:t("div",y({className:"bsc-flex"},{children:[g&&!c&&e("div",{children:e(Or,{className:"bsc-cursor-pointer bsc-text-sm",icon:["fas","times"],size:"sm",onClick:lt})}),e("div",y({className:"bsc-ml-2"},{children:P||e(Or,{className:c?void 0:"bsc-cursor-pointer",icon:["far","calendar-alt"],onClick:c?void 0:ct})}))]}))}:{leftElement:t("div",y({className:"bsc-flex"},{children:[e("div",y({className:"bsc-mr-2"},{children:P||e(Or,{className:c?void 0:"bsc-cursor-pointer",icon:["far","calendar-alt"],onClick:c?void 0:ct})})),g&&!c&&e("div",{children:e(Or,{className:"bsc-cursor-pointer bsc-text-sm",icon:["fas","times"],size:"sm",onClick:lt})})]}))},yt={label:f,readOnly:c,allowClear:g,getValue:pt,onFocus:it,onInput:at,iconPosition:E,iconElement:mt.rightElement||mt.leftElement},vt=z||function(t,r){return e(n,{children:r})},bt=S("bsc-text-left",((o={})["".concat((null==N?void 0:N.readOnlyInputBgColor)||"bsc-bg-gray-200")]=c,o["".concat((null==N?void 0:N.inputBgColor)||"bsc-bg-white")]=!c,o),"dark:bsc-bg-black ".concat(null==N?void 0:N.inputBorderColor," bc-dt-input"),x);return e(np.Provider,y({value:G.current},{children:t("div",y({className:"bc-date-time"},{children:[f&&e("label",y({className:"dark:bsc-text-white bc-dt-label"},{children:f})),e(ts,y({props:yt,template:vt},{children:!1===v||void 0===rt.inputFormat?e(k,y({value:pt(),readOnly:c,className:bt,onFocus:it,onInput:at,onElementCreate:function(t){return st(t,!1)}},mt)):e(ep,y({value:pt(),readOnly:c,className:bt,onFocus:it,onChange:function(t){ut(t||"")},onElementCreate:function(t){return st(t,!0)},defaultFormat:rt.inputFormat},mt))})),e(xf,y({visible:F,target:B,shouldTargetCloseOverlay:!1,shouldScrollCloseOverlay:!0,shouldCheckZIndex:!0,shouldRemainOnScreen:!0,hidden:function(){U(!1),ot({type:O===If.TimeOnly?Ff.TimeSelector:O===If.DateTime||O===If.DateOnly?Ff.DaySelector:Ff.DateRangeSelector})},unmountWhenHidden:!0},{children:t(n,{children:[rt.currentSelector===Ff.DaySelector&&dt&&rt.dateInitialized&&K.current&&e(hp,{selectedDate:rt.selectedDate,viewDate:rt.currentViewDate,locale:K.current,showTimeSelector:O===If.DateTime,selectableDate:M,isValidDate:I,dispatcher:ot,onChange:A}),rt.currentSelector===Ff.MonthSelector&&dt&&rt.dateInitialized&&K.current&&e(mp,{viewDate:rt.currentViewDate,locale:K.current,dateSelection:O,dispatcher:ot}),rt.currentSelector===Ff.YearSelector&&dt&&rt.dateInitialized&&K.current&&e(bp,{viewDate:rt.currentViewDate,locale:K.current,dispatcher:ot}),rt.currentSelector===Ff.TimeSelector&&ht&&rt.dateInitialized&&K.current&&e(vp,{viewDate:rt.currentViewDate,showDateSelector:O===If.DateTime,locale:K.current,timeFormat:rt.timeFormat,timeConstraints:C,onChange:A,dispatcher:ot}),rt.currentSelector===Ff.DateRangeSelector&&dt&&rt.dateInitialized&&K.current&&e(yp,{viewDate:rt.currentViewDate,selectedStartDate:rt.selectedStartDate,selectedEndDate:rt.selectedEndDate,locale:K.current,onChange:A,dispatcher:ot})]})}))]}))}))}!function(t,e){void 0===e&&(e={});var n=e.insertAt;if(t&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=t:o.appendChild(document.createTextNode(t))}}("/*\n! tailwindcss v3.3.1 | MIT License | https://tailwindcss.com\n*//*\n1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)\n2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)\n*/\n\n*,\n::before,\n::after {\n box-sizing: border-box; /* 1 */\n border-width: 0; /* 2 */\n border-style: solid; /* 2 */\n border-color: #e5e7eb; /* 2 */\n}\n\n::before,\n::after {\n --tw-content: '';\n}\n\n/*\n1. Use a consistent sensible line-height in all browsers.\n2. Prevent adjustments of font size after orientation changes in iOS.\n3. Use a more readable tab size.\n4. Use the user's configured `sans` font-family by default.\n5. Use the user's configured `sans` font-feature-settings by default.\n6. Use the user's configured `sans` font-variation-settings by default.\n*/\n\nhtml {\n line-height: 1.5; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */ /* 3 */\n tab-size: 4; /* 3 */\n font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\"; /* 4 */\n -webkit-font-feature-settings: normal;\n font-feature-settings: normal; /* 5 */\n font-variation-settings: normal; /* 6 */\n}\n\n/*\n1. Remove the margin in all browsers.\n2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.\n*/\n\nbody {\n margin: 0; /* 1 */\n line-height: inherit; /* 2 */\n}\n\n/*\n1. Add the correct height in Firefox.\n2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)\n3. Ensure horizontal rules are visible by default.\n*/\n\nhr {\n height: 0; /* 1 */\n color: inherit; /* 2 */\n border-top-width: 1px; /* 3 */\n}\n\n/*\nAdd the correct text decoration in Chrome, Edge, and Safari.\n*/\n\nabbr:where([title]) {\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n}\n\n/*\nRemove the default font size and weight for headings.\n*/\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n font-size: inherit;\n font-weight: inherit;\n}\n\n/*\nReset links to optimize for opt-in styling instead of opt-out.\n*/\n\na {\n color: inherit;\n text-decoration: inherit;\n}\n\n/*\nAdd the correct font weight in Edge and Safari.\n*/\n\nb,\nstrong {\n font-weight: bolder;\n}\n\n/*\n1. Use the user's configured `mono` font family by default.\n2. Correct the odd `em` font sizing in all browsers.\n*/\n\ncode,\nkbd,\nsamp,\npre {\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/*\nAdd the correct font size in all browsers.\n*/\n\nsmall {\n font-size: 80%;\n}\n\n/*\nPrevent `sub` and `sup` elements from affecting the line height in all browsers.\n*/\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/*\n1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)\n2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)\n3. Remove gaps between table borders by default.\n*/\n\ntable {\n text-indent: 0; /* 1 */\n border-color: inherit; /* 2 */\n border-collapse: collapse; /* 3 */\n}\n\n/*\n1. Change the font styles in all browsers.\n2. Remove the margin in Firefox and Safari.\n3. Remove default padding in all browsers.\n*/\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit; /* 1 */\n font-size: 100%; /* 1 */\n font-weight: inherit; /* 1 */\n line-height: inherit; /* 1 */\n color: inherit; /* 1 */\n margin: 0; /* 2 */\n padding: 0; /* 3 */\n}\n\n/*\nRemove the inheritance of text transform in Edge and Firefox.\n*/\n\nbutton,\nselect {\n text-transform: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Remove default button styles.\n*/\n\nbutton,\n[type='button'],\n[type='reset'],\n[type='submit'] {\n -webkit-appearance: button; /* 1 */\n background-color: transparent; /* 2 */\n background-image: none; /* 2 */\n}\n\n/*\nUse the modern Firefox focus style for all focusable elements.\n*/\n\n:-moz-focusring {\n outline: auto;\n}\n\n/*\nRemove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)\n*/\n\n:-moz-ui-invalid {\n box-shadow: none;\n}\n\n/*\nAdd the correct vertical alignment in Chrome and Firefox.\n*/\n\nprogress {\n vertical-align: baseline;\n}\n\n/*\nCorrect the cursor style of increment and decrement buttons in Safari.\n*/\n\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n\n/*\n1. Correct the odd appearance in Chrome and Safari.\n2. Correct the outline style in Safari.\n*/\n\n[type='search'] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/*\nRemove the inner padding in Chrome and Safari on macOS.\n*/\n\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Change font properties to `inherit` in Safari.\n*/\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/*\nAdd the correct display in Chrome and Safari.\n*/\n\nsummary {\n display: list-item;\n}\n\n/*\nRemoves the default spacing and border for appropriate elements.\n*/\n\nblockquote,\ndl,\ndd,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\nhr,\nfigure,\np,\npre {\n margin: 0;\n}\n\nfieldset {\n margin: 0;\n padding: 0;\n}\n\nlegend {\n padding: 0;\n}\n\nol,\nul,\nmenu {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n/*\nPrevent resizing textareas horizontally by default.\n*/\n\ntextarea {\n resize: vertical;\n}\n\n/*\n1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)\n2. Set the default placeholder color to the user's configured gray 400 color.\n*/\n\ninput::-webkit-input-placeholder, textarea::-webkit-input-placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}\n\ninput::placeholder,\ntextarea::placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}\n\n/*\nSet the default cursor for buttons.\n*/\n\nbutton,\n[role=\"button\"] {\n cursor: pointer;\n}\n\n/*\nMake sure disabled buttons don't get the pointer cursor.\n*/\n:disabled {\n cursor: default;\n}\n\n/*\n1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)\n2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)\n This can trigger a poorly considered lint error in some tools but is included by design.\n*/\n\nimg,\nsvg,\nvideo,\ncanvas,\naudio,\niframe,\nembed,\nobject {\n display: block; /* 1 */\n vertical-align: middle; /* 2 */\n}\n\n/*\nConstrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)\n*/\n\nimg,\nvideo {\n max-width: 100%;\n height: auto;\n}\n\n/* Make elements with the HTML hidden attribute stay hidden by default */\n[hidden] {\n display: none;\n}\n\n*, ::before, ::after {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n}\n\n::-webkit-backdrop {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n}\n\n::backdrop {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n}\n.bsc-fixed {\n position: fixed;\n}\n.bsc-col-span-3 {\n grid-column: span 3 / span 3;\n}\n.bsc-col-span-4 {\n grid-column: span 4 / span 4;\n}\n.bsc-ml-2 {\n margin-left: 0.5rem;\n}\n.bsc-mr-2 {\n margin-right: 0.5rem;\n}\n.bsc-flex {\n display: flex;\n}\n.bsc-grid {\n display: grid;\n}\n.bsc-h-3\\/4 {\n height: 75%;\n}\n.bsc-h-full {\n height: 100%;\n}\n.bsc-h-screen {\n height: 100vh;\n}\n.bsc-w-24 {\n width: 6rem;\n}\n.bsc-w-full {\n width: 100%;\n}\n.bsc-min-w-\\[329px\\] {\n min-width: 329px;\n}\n.bsc-flex-shrink {\n flex-shrink: 1;\n}\n.bsc-flex-grow {\n flex-grow: 1;\n}\n.bsc-cursor-not-allowed {\n cursor: not-allowed;\n}\n.bsc-cursor-pointer {\n cursor: pointer;\n}\n.bsc-grid-cols-3 {\n grid-template-columns: repeat(3, minmax(0, 1fr));\n}\n.bsc-grid-cols-4 {\n grid-template-columns: repeat(4, minmax(0, 1fr));\n}\n.bsc-grid-cols-7 {\n grid-template-columns: repeat(7, minmax(0, 1fr));\n}\n.bsc-grid-rows-3 {\n grid-template-rows: repeat(3, minmax(0, 1fr));\n}\n.bsc-flex-row {\n flex-direction: row;\n}\n.bsc-flex-col {\n flex-direction: column;\n}\n.bsc-justify-center {\n justify-content: center;\n}\n.bsc-gap-3 {\n gap: 0.75rem;\n}\n.bsc-gap-4 {\n gap: 1rem;\n}\n.bsc-overflow-hidden {\n overflow: hidden;\n}\n.bsc-overflow-scroll {\n overflow: scroll;\n}\n.bsc-overflow-x-auto {\n overflow-x: auto;\n}\n.bsc-overflow-y-hidden {\n overflow-y: hidden;\n}\n.bsc-whitespace-pre {\n white-space: pre;\n}\n.bsc-rounded-full {\n border-radius: 9999px;\n}\n.bsc-rounded-md {\n border-radius: 0.375rem;\n}\n.bsc-border {\n border-width: 1px;\n}\n.bsc-border-r {\n border-right-width: 1px;\n}\n.bsc-border-solid {\n border-style: solid;\n}\n.bsc-border-none {\n border-style: none;\n}\n.bsc-border-black {\n --tw-border-opacity: 1;\n border-color: rgb(0 0 0 / var(--tw-border-opacity));\n}\n.bsc-border-gray-300 {\n --tw-border-opacity: 1;\n border-color: rgb(209 213 219 / var(--tw-border-opacity));\n}\n.bsc-border-gray-400 {\n --tw-border-opacity: 1;\n border-color: rgb(156 163 175 / var(--tw-border-opacity));\n}\n.bsc-border-gray-500 {\n --tw-border-opacity: 1;\n border-color: rgb(107 114 128 / var(--tw-border-opacity));\n}\n.bsc-border-transparent {\n border-color: transparent;\n}\n.bsc-bg-blue-100 {\n --tw-bg-opacity: 1;\n background-color: rgb(219 234 254 / var(--tw-bg-opacity));\n}\n.bsc-bg-blue-200 {\n --tw-bg-opacity: 1;\n background-color: rgb(191 219 254 / var(--tw-bg-opacity));\n}\n.bsc-bg-gray-200 {\n --tw-bg-opacity: 1;\n background-color: rgb(229 231 235 / var(--tw-bg-opacity));\n}\n.bsc-bg-gray-900 {\n --tw-bg-opacity: 1;\n background-color: rgb(17 24 39 / var(--tw-bg-opacity));\n}\n.bsc-bg-green-100 {\n --tw-bg-opacity: 1;\n background-color: rgb(220 252 231 / var(--tw-bg-opacity));\n}\n.bsc-bg-red-500 {\n --tw-bg-opacity: 1;\n background-color: rgb(239 68 68 / var(--tw-bg-opacity));\n}\n.bsc-bg-white {\n --tw-bg-opacity: 1;\n background-color: rgb(255 255 255 / var(--tw-bg-opacity));\n}\n.bsc-p-2 {\n padding: 0.5rem;\n}\n.bsc-p-4 {\n padding: 1rem;\n}\n.bsc-px-2 {\n padding-left: 0.5rem;\n padding-right: 0.5rem;\n}\n.bsc-py-1 {\n padding-top: 0.25rem;\n padding-bottom: 0.25rem;\n}\n.bsc-pb-2 {\n padding-bottom: 0.5rem;\n}\n.bsc-pb-8 {\n padding-bottom: 2rem;\n}\n.bsc-pl-4 {\n padding-left: 1rem;\n}\n.bsc-pr-2 {\n padding-right: 0.5rem;\n}\n.bsc-pr-4 {\n padding-right: 1rem;\n}\n.bsc-text-left {\n text-align: left;\n}\n.bsc-text-center {\n text-align: center;\n}\n.bsc-text-sm {\n font-size: 0.875rem;\n line-height: 1.25rem;\n}\n.bsc-font-bold {\n font-weight: 700;\n}\n.bsc-text-gray-400 {\n --tw-text-opacity: 1;\n color: rgb(156 163 175 / var(--tw-text-opacity));\n}\n.bsc-text-red-300 {\n --tw-text-opacity: 1;\n color: rgb(252 165 165 / var(--tw-text-opacity));\n}\n.bsc-shadow {\n --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n.bsc-shadow-sm {\n --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);\n --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n\nbody {\n margin: 0;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',\n 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',\n sans-serif;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\ncode {\n font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',\n monospace;\n}\n\n.hover\\:bsc-bg-gray-300:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(209 213 219 / var(--tw-bg-opacity));\n}\n\n.focus\\:bsc-outline-none:focus {\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n\n:is(.bsc-dark .dark\\:bsc-border-white) {\n --tw-border-opacity: 1;\n border-color: rgb(255 255 255 / var(--tw-border-opacity));\n}\n\n:is(.bsc-dark .dark\\:bsc-bg-black) {\n --tw-bg-opacity: 1;\n background-color: rgb(0 0 0 / var(--tw-bg-opacity));\n}\n\n:is(.bsc-dark .dark\\:bsc-bg-gray-900) {\n --tw-bg-opacity: 1;\n background-color: rgb(17 24 39 / var(--tw-bg-opacity));\n}\n\n:is(.bsc-dark .dark\\:bsc-bg-white) {\n --tw-bg-opacity: 1;\n background-color: rgb(255 255 255 / var(--tw-bg-opacity));\n}\n\n:is(.bsc-dark .dark\\:bsc-text-black) {\n --tw-text-opacity: 1;\n color: rgb(0 0 0 / var(--tw-text-opacity));\n}\n\n:is(.bsc-dark .dark\\:bsc-text-white) {\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity));\n}\n\n:is(.bsc-dark .dark\\:hover\\:bsc-bg-white:hover) {\n --tw-bg-opacity: 1;\n background-color: rgb(255 255 255 / var(--tw-bg-opacity));\n}\n\n:is(.bsc-dark .dark\\:hover\\:bsc-text-black:hover) {\n --tw-text-opacity: 1;\n color: rgb(0 0 0 / var(--tw-text-opacity));\n}\n");var wp={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},xp={prefix:"far",iconName:"calendar-days",icon:[448,512,["calendar-alt"],"f073","M152 24c0-13.3-10.7-24-24-24s-24 10.7-24 24V64H64C28.7 64 0 92.7 0 128v16 48V448c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V192 144 128c0-35.3-28.7-64-64-64H344V24c0-13.3-10.7-24-24-24s-24 10.7-24 24V64H152V24zM48 192h80v56H48V192zm0 104h80v64H48V296zm128 0h96v64H176V296zm144 0h80v64H320V296zm80-48H320V192h80v56zm0 160v40c0 8.8-7.2 16-16 16H320V408h80zm-128 0v56H176V408h96zm-144 0v56H64c-8.8 0-16-7.2-16-16V408h80zM272 248H176V192h96v56z"]},Sp={prefix:"far",iconName:"calendar-xmark",icon:[512,512,["calendar-times"],"f273","M160 0c13.3 0 24 10.7 24 24V64H328V24c0-13.3 10.7-24 24-24s24 10.7 24 24V64h40c35.3 0 64 28.7 64 64v16 48V448c0 35.3-28.7 64-64 64H96c-35.3 0-64-28.7-64-64V192 144 128c0-35.3 28.7-64 64-64h40V24c0-13.3 10.7-24 24-24zM432 192H80V448c0 8.8 7.2 16 16 16H416c8.8 0 16-7.2 16-16V192zm-95 89l-47 47 47 47c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-47-47-47 47c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l47-47-47-47c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47 47-47c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"]};zn.add({prefix:"fas",iconName:"angle-right",icon:[320,512,[8250],"f105","M278.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-160 160c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L210.7 256 73.4 118.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l160 160z"]},{prefix:"fas",iconName:"angle-left",icon:[320,512,[8249],"f104","M41.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 256 246.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z"]},{prefix:"fas",iconName:"chevron-up",icon:[512,512,[],"f077","M233.4 105.4c12.5-12.5 32.8-12.5 45.3 0l192 192c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L256 173.3 86.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l192-192z"]},{prefix:"fas",iconName:"chevron-down",icon:[512,512,[],"f078","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},xp,Sp,wp);export{k as ContentEditableInput,gp as DateTime,ep as FormattedInput,xf as OverlayPanel};
Binary file
@@ -10,6 +10,7 @@ export declare class FormatParser implements IDisposable {
10
10
  private readonly formatRenderer;
11
11
  private readonly inputSlotCollection;
12
12
  private readonly inputRuleProcessor;
13
+ private previousOutputValue?;
13
14
  private inputElementSet;
14
15
  private isInputFocused;
15
16
  private inputElement?;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "beesoft-components",
3
- "version": "0.2.26-4",
3
+ "version": "0.2.26-5",
4
4
  "private": false,
5
5
  "author": "Brandon Trabon",
6
6
  "keywords": [