beesoft-components 0.3.6 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(he,p){typeof exports=="object"&&typeof module<"u"?p(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],p):(he=typeof globalThis<"u"?globalThis:he||self,p(he.BeeSoftComponents={},he.React,he.ReactDOM))})(this,function(he,p,He){"use strict";var tp=Object.defineProperty;var rp=(he,p,He)=>p in he?tp(he,p,{enumerable:!0,configurable:!0,writable:!0,value:He}):he[p]=He;var Y=(he,p,He)=>(rp(he,typeof p!="symbol"?p+"":p,He),He);function Xe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Tr={exports:{}},Dt={};/**
1
+ (function(de,p){typeof exports=="object"&&typeof module<"u"?p(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],p):(de=typeof globalThis<"u"?globalThis:de||self,p(de.BeeSoftComponents={},de.React,de.ReactDOM))})(this,function(de,p,He){"use strict";var mp=Object.defineProperty;var vp=(de,p,He)=>p in de?mp(de,p,{enumerable:!0,configurable:!0,writable:!0,value:He}):de[p]=He;var Y=(de,p,He)=>(vp(de,typeof p!="symbol"?p+"":p,He),He);function Co(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const It=Co(p);function Je(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Er={exports:{}},Nt={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var dn;function mo(){if(dn)return Dt;dn=1;var e=p,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function o(s,u,l){var f,h={},w=null,g=null;l!==void 0&&(w=""+l),u.key!==void 0&&(w=""+u.key),u.ref!==void 0&&(g=u.ref);for(f in u)n.call(u,f)&&!i.hasOwnProperty(f)&&(h[f]=u[f]);if(s&&s.defaultProps)for(f in u=s.defaultProps,u)h[f]===void 0&&(h[f]=u[f]);return{$$typeof:t,type:s,key:w,ref:g,props:h,_owner:a.current}}return Dt.Fragment=r,Dt.jsx=o,Dt.jsxs=o,Dt}var Ot={};/**
9
+ */var hn;function Do(){if(hn)return Nt;hn=1;var e=p,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function o(s,u,l){var f,h={},b=null,T=null;l!==void 0&&(b=""+l),u.key!==void 0&&(b=""+u.key),u.ref!==void 0&&(T=u.ref);for(f in u)n.call(u,f)&&!i.hasOwnProperty(f)&&(h[f]=u[f]);if(s&&s.defaultProps)for(f in u=s.defaultProps,u)h[f]===void 0&&(h[f]=u[f]);return{$$typeof:t,type:s,key:b,ref:T,props:h,_owner:a.current}}return Nt.Fragment=r,Nt.jsx=o,Nt.jsxs=o,Nt}var _t={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,38 +14,38 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var hn;function go(){return hn||(hn=1,process.env.NODE_ENV!=="production"&&function(){var e=p,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),E=Symbol.iterator,D="@@iterator";function x(c){if(c===null||typeof c!="object")return null;var b=E&&c[E]||c[D];return typeof b=="function"?b:null}var R=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function H(c){{for(var b=arguments.length,N=new Array(b>1?b-1:0),B=1;B<b;B++)N[B-1]=arguments[B];G("error",c,N)}}function G(c,b,N){{var B=R.ReactDebugCurrentFrame,me=B.getStackAddendum();me!==""&&(b+="%s",N=N.concat([me]));var Te=N.map(function(ce){return String(ce)});Te.unshift("Warning: "+b),Function.prototype.apply.call(console[c],console,Te)}}var V=!1,y=!1,U=!1,ee=!1,Q=!1,X;X=Symbol.for("react.module.reference");function ue(c){return!!(typeof c=="string"||typeof c=="function"||c===n||c===i||Q||c===a||c===l||c===f||ee||c===g||V||y||U||typeof c=="object"&&c!==null&&(c.$$typeof===w||c.$$typeof===h||c.$$typeof===o||c.$$typeof===s||c.$$typeof===u||c.$$typeof===X||c.getModuleId!==void 0))}function ie(c,b,N){var B=c.displayName;if(B)return B;var me=b.displayName||b.name||"";return me!==""?N+"("+me+")":N}function se(c){return c.displayName||"Context"}function T(c){if(c==null)return null;if(typeof c.tag=="number"&&H("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c;switch(c){case n:return"Fragment";case r:return"Portal";case i:return"Profiler";case a:return"StrictMode";case l:return"Suspense";case f:return"SuspenseList"}if(typeof c=="object")switch(c.$$typeof){case s:var b=c;return se(b)+".Consumer";case o:var N=c;return se(N._context)+".Provider";case u:return ie(c,c.render,"ForwardRef");case h:var B=c.displayName||null;return B!==null?B:T(c.type)||"Memo";case w:{var me=c,Te=me._payload,ce=me._init;try{return T(ce(Te))}catch{return null}}}return null}var W=Object.assign,q=0,F,te,A,de,v,P,d;function C(){}C.__reactDisabledLog=!0;function L(){{if(q===0){F=console.log,te=console.info,A=console.warn,de=console.error,v=console.group,P=console.groupCollapsed,d=console.groupEnd;var c={configurable:!0,enumerable:!0,value:C,writable:!0};Object.defineProperties(console,{info:c,log:c,warn:c,error:c,group:c,groupCollapsed:c,groupEnd:c})}q++}}function z(){{if(q--,q===0){var c={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:W({},c,{value:F}),info:W({},c,{value:te}),warn:W({},c,{value:A}),error:W({},c,{value:de}),group:W({},c,{value:v}),groupCollapsed:W({},c,{value:P}),groupEnd:W({},c,{value:d})})}q<0&&H("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var O=R.ReactCurrentDispatcher,k;function _(c,b,N){{if(k===void 0)try{throw Error()}catch(me){var B=me.stack.trim().match(/\n( *(at )?)/);k=B&&B[1]||""}return`
18
- `+k+c}}var M=!1,$;{var Pe=typeof WeakMap=="function"?WeakMap:Map;$=new Pe}function S(c,b){if(!c||M)return"";{var N=$.get(c);if(N!==void 0)return N}var B;M=!0;var me=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Te;Te=O.current,O.current=null,L();try{if(b){var ce=function(){throw Error()};if(Object.defineProperty(ce.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ce,[])}catch(Qe){B=Qe}Reflect.construct(c,[],ce)}else{try{ce.call()}catch(Qe){B=Qe}c.call(ce.prototype)}}else{try{throw Error()}catch(Qe){B=Qe}c()}}catch(Qe){if(Qe&&B&&typeof Qe.stack=="string"){for(var ne=Qe.stack.split(`
19
- `),Ae=B.stack.split(`
20
- `),Me=ne.length-1,Re=Ae.length-1;Me>=1&&Re>=0&&ne[Me]!==Ae[Re];)Re--;for(;Me>=1&&Re>=0;Me--,Re--)if(ne[Me]!==Ae[Re]){if(Me!==1||Re!==1)do if(Me--,Re--,Re<0||ne[Me]!==Ae[Re]){var Ye=`
21
- `+ne[Me].replace(" at new "," at ");return c.displayName&&Ye.includes("<anonymous>")&&(Ye=Ye.replace("<anonymous>",c.displayName)),typeof c=="function"&&$.set(c,Ye),Ye}while(Me>=1&&Re>=0);break}}}finally{M=!1,O.current=Te,z(),Error.prepareStackTrace=me}var Ct=c?c.displayName||c.name:"",vo=Ct?_(Ct):"";return typeof c=="function"&&$.set(c,vo),vo}function ke(c,b,N){return S(c,!1)}function Fe(c){var b=c.prototype;return!!(b&&b.isReactComponent)}function $e(c,b,N){if(c==null)return"";if(typeof c=="function")return S(c,Fe(c));if(typeof c=="string")return _(c);switch(c){case l:return _("Suspense");case f:return _("SuspenseList")}if(typeof c=="object")switch(c.$$typeof){case u:return ke(c.render);case h:return $e(c.type,b,N);case w:{var B=c,me=B._payload,Te=B._init;try{return $e(Te(me),b,N)}catch{}}}return""}var wt=Object.prototype.hasOwnProperty,Tt={},lt=R.ReactDebugCurrentFrame;function xt(c){if(c){var b=c._owner,N=$e(c.type,c._source,b?b.type:null);lt.setExtraStackFrame(N)}else lt.setExtraStackFrame(null)}function Pt(c,b,N,B,me){{var Te=Function.call.bind(wt);for(var ce in c)if(Te(c,ce)){var ne=void 0;try{if(typeof c[ce]!="function"){var Ae=Error((B||"React class")+": "+N+" type `"+ce+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof c[ce]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Ae.name="Invariant Violation",Ae}ne=c[ce](b,ce,B,N,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Me){ne=Me}ne&&!(ne instanceof Error)&&(xt(me),H("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %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).",B||"React class",N,ce,typeof ne),xt(null)),ne instanceof Error&&!(ne.message in Tt)&&(Tt[ne.message]=!0,xt(me),H("Failed %s type: %s",N,ne.message),xt(null))}}}var sn=Array.isArray;function dr(c){return sn(c)}function un(c){{var b=typeof Symbol=="function"&&Symbol.toStringTag,N=b&&c[Symbol.toStringTag]||c.constructor.name||"Object";return N}}function hr(c){try{return Z(c),!1}catch{return!0}}function Z(c){return""+c}function be(c){if(hr(c))return H("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",un(c)),Z(c)}var Le=R.ReactCurrentOwner,pr={key:!0,ref:!0,__self:!0,__source:!0},Ut,Ht,Et;Et={};function vr(c){if(wt.call(c,"ref")){var b=Object.getOwnPropertyDescriptor(c,"ref").get;if(b&&b.isReactWarning)return!1}return c.ref!==void 0}function mr(c){if(wt.call(c,"key")){var b=Object.getOwnPropertyDescriptor(c,"key").get;if(b&&b.isReactWarning)return!1}return c.key!==void 0}function gr(c,b){if(typeof c.ref=="string"&&Le.current&&b&&Le.current.stateNode!==b){var N=T(Le.current.type);Et[N]||(H('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',T(Le.current.type),c.ref),Et[N]=!0)}}function yr(c,b){{var N=function(){Ut||(Ut=!0,H("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",b))};N.isReactWarning=!0,Object.defineProperty(c,"key",{get:N,configurable:!0})}}function br(c,b){{var N=function(){Ht||(Ht=!0,H("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",b))};N.isReactWarning=!0,Object.defineProperty(c,"ref",{get:N,configurable:!0})}}var wr=function(c,b,N,B,me,Te,ce){var ne={$$typeof:t,type:c,key:b,ref:N,props:ce,_owner:Te};return ne._store={},Object.defineProperty(ne._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(ne,"_self",{configurable:!1,enumerable:!1,writable:!1,value:B}),Object.defineProperty(ne,"_source",{configurable:!1,enumerable:!1,writable:!1,value:me}),Object.freeze&&(Object.freeze(ne.props),Object.freeze(ne)),ne};function qh(c,b,N,B,me){{var Te,ce={},ne=null,Ae=null;N!==void 0&&(be(N),ne=""+N),mr(b)&&(be(b.key),ne=""+b.key),vr(b)&&(Ae=b.ref,gr(b,me));for(Te in b)wt.call(b,Te)&&!pr.hasOwnProperty(Te)&&(ce[Te]=b[Te]);if(c&&c.defaultProps){var Me=c.defaultProps;for(Te in Me)ce[Te]===void 0&&(ce[Te]=Me[Te])}if(ne||Ae){var Re=typeof c=="function"?c.displayName||c.name||"Unknown":c;ne&&yr(ce,Re),Ae&&br(ce,Re)}return wr(c,ne,Ae,me,B,Le.current,ce)}}var cn=R.ReactCurrentOwner,uo=R.ReactDebugCurrentFrame;function St(c){if(c){var b=c._owner,N=$e(c.type,c._source,b?b.type:null);uo.setExtraStackFrame(N)}else uo.setExtraStackFrame(null)}var ln;ln=!1;function fn(c){return typeof c=="object"&&c!==null&&c.$$typeof===t}function co(){{if(cn.current){var c=T(cn.current.type);if(c)return`
17
+ */var pn;function Oo(){return pn||(pn=1,process.env.NODE_ENV!=="production"&&function(){var e=p,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),T=Symbol.for("react.offscreen"),x=Symbol.iterator,D="@@iterator";function P(c){if(c===null||typeof c!="object")return null;var w=x&&c[x]||c[D];return typeof w=="function"?w:null}var _=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function z(c){{for(var w=arguments.length,I=new Array(w>1?w-1:0),K=1;K<w;K++)I[K-1]=arguments[K];Z("error",c,I)}}function Z(c,w,I){{var K=_.ReactDebugCurrentFrame,ve=K.getStackAddendum();ve!==""&&(w+="%s",I=I.concat([ve]));var Te=I.map(function(ce){return String(ce)});Te.unshift("Warning: "+w),Function.prototype.apply.call(console[c],console,Te)}}var W=!1,g=!1,$=!1,J=!1,te=!1,B;B=Symbol.for("react.module.reference");function oe(c){return!!(typeof c=="string"||typeof c=="function"||c===n||c===i||te||c===a||c===l||c===f||J||c===T||W||g||$||typeof c=="object"&&c!==null&&(c.$$typeof===b||c.$$typeof===h||c.$$typeof===o||c.$$typeof===s||c.$$typeof===u||c.$$typeof===B||c.getModuleId!==void 0))}function re(c,w,I){var K=c.displayName;if(K)return K;var ve=w.displayName||w.name||"";return ve!==""?I+"("+ve+")":I}function G(c){return c.displayName||"Context"}function y(c){if(c==null)return null;if(typeof c.tag=="number"&&z("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c;switch(c){case n:return"Fragment";case r:return"Portal";case i:return"Profiler";case a:return"StrictMode";case l:return"Suspense";case f:return"SuspenseList"}if(typeof c=="object")switch(c.$$typeof){case s:var w=c;return G(w)+".Consumer";case o:var I=c;return G(I._context)+".Provider";case u:return re(c,c.render,"ForwardRef");case h:var K=c.displayName||null;return K!==null?K:y(c.type)||"Memo";case b:{var ve=c,Te=ve._payload,ce=ve._init;try{return y(ce(Te))}catch{return null}}}return null}var U=Object.assign,q=0,F,ne,L,he,v,E,H;function d(){}d.__reactDisabledLog=!0;function S(){{if(q===0){F=console.log,ne=console.info,L=console.warn,he=console.error,v=console.group,E=console.groupCollapsed,H=console.groupEnd;var c={configurable:!0,enumerable:!0,value:d,writable:!0};Object.defineProperties(console,{info:c,log:c,warn:c,error:c,group:c,groupCollapsed:c,groupEnd:c})}q++}}function O(){{if(q--,q===0){var c={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:U({},c,{value:F}),info:U({},c,{value:ne}),warn:U({},c,{value:L}),error:U({},c,{value:he}),group:U({},c,{value:v}),groupCollapsed:U({},c,{value:E}),groupEnd:U({},c,{value:H})})}q<0&&z("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var M=_.ReactCurrentDispatcher,A;function j(c,w,I){{if(A===void 0)try{throw Error()}catch(ve){var K=ve.stack.trim().match(/\n( *(at )?)/);A=K&&K[1]||""}return`
18
+ `+A+c}}var k=!1,V;{var Ee=typeof WeakMap=="function"?WeakMap:Map;V=new Ee}function C(c,w){if(!c||k)return"";{var I=V.get(c);if(I!==void 0)return I}var K;k=!0;var ve=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Te;Te=M.current,M.current=null,S();try{if(w){var ce=function(){throw Error()};if(Object.defineProperty(ce.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ce,[])}catch(Xe){K=Xe}Reflect.construct(c,[],ce)}else{try{ce.call()}catch(Xe){K=Xe}c.call(ce.prototype)}}else{try{throw Error()}catch(Xe){K=Xe}c()}}catch(Xe){if(Xe&&K&&typeof Xe.stack=="string"){for(var ie=Xe.stack.split(`
19
+ `),Le=K.stack.split(`
20
+ `),Me=ie.length-1,je=Le.length-1;Me>=1&&je>=0&&ie[Me]!==Le[je];)je--;for(;Me>=1&&je>=0;Me--,je--)if(ie[Me]!==Le[je]){if(Me!==1||je!==1)do if(Me--,je--,je<0||ie[Me]!==Le[je]){var $e=`
21
+ `+ie[Me].replace(" at new "," at ");return c.displayName&&$e.includes("<anonymous>")&&($e=$e.replace("<anonymous>",c.displayName)),typeof c=="function"&&V.set(c,$e),$e}while(Me>=1&&je>=0);break}}}finally{k=!1,M.current=Te,O(),Error.prepareStackTrace=ve}var Ot=c?c.displayName||c.name:"",So=Ot?j(Ot):"";return typeof c=="function"&&V.set(c,So),So}function ke(c,w,I){return C(c,!1)}function Ae(c){var w=c.prototype;return!!(w&&w.isReactComponent)}function Fe(c,w,I){if(c==null)return"";if(typeof c=="function")return C(c,Ae(c));if(typeof c=="string")return j(c);switch(c){case l:return j("Suspense");case f:return j("SuspenseList")}if(typeof c=="object")switch(c.$$typeof){case u:return ke(c.render);case h:return Fe(c.type,w,I);case b:{var K=c,ve=K._payload,Te=K._init;try{return Fe(Te(ve),w,I)}catch{}}}return""}var lt=Object.prototype.hasOwnProperty,mr={},ft=_.ReactDebugCurrentFrame;function Ze(c){if(c){var w=c._owner,I=Fe(c.type,c._source,w?w.type:null);ft.setExtraStackFrame(I)}else ft.setExtraStackFrame(null)}function cn(c,w,I,K,ve){{var Te=Function.call.bind(lt);for(var ce in c)if(Te(c,ce)){var ie=void 0;try{if(typeof c[ce]!="function"){var Le=Error((K||"React class")+": "+I+" type `"+ce+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof c[ce]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Le.name="Invariant Violation",Le}ie=c[ce](w,ce,K,I,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Me){ie=Me}ie&&!(ie instanceof Error)&&(Ze(ve),z("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %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).",K||"React class",I,ce,typeof ie),Ze(null)),ie instanceof Error&&!(ie.message in mr)&&(mr[ie.message]=!0,Ze(ve),z("Failed %s type: %s",I,ie.message),Ze(null))}}}var dt=Array.isArray;function Pt(c){return dt(c)}function ln(c){{var w=typeof Symbol=="function"&&Symbol.toStringTag,I=w&&c[Symbol.toStringTag]||c.constructor.name||"Object";return I}}function yo(c){try{return vr(c),!1}catch{return!0}}function vr(c){return""+c}function Et(c){if(yo(c))return z("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ln(c)),vr(c)}var Q=_.ReactCurrentOwner,be={key:!0,ref:!0,__self:!0,__source:!0},Ye,Vt,St;St={};function gr(c){if(lt.call(c,"ref")){var w=Object.getOwnPropertyDescriptor(c,"ref").get;if(w&&w.isReactWarning)return!1}return c.ref!==void 0}function yr(c){if(lt.call(c,"key")){var w=Object.getOwnPropertyDescriptor(c,"key").get;if(w&&w.isReactWarning)return!1}return c.key!==void 0}function br(c,w){if(typeof c.ref=="string"&&Q.current&&w&&Q.current.stateNode!==w){var I=y(Q.current.type);St[I]||(z('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',y(Q.current.type),c.ref),St[I]=!0)}}function wr(c,w){{var I=function(){Ye||(Ye=!0,z("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",w))};I.isReactWarning=!0,Object.defineProperty(c,"key",{get:I,configurable:!0})}}function Tr(c,w){{var I=function(){Vt||(Vt=!0,z("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",w))};I.isReactWarning=!0,Object.defineProperty(c,"ref",{get:I,configurable:!0})}}var xr=function(c,w,I,K,ve,Te,ce){var ie={$$typeof:t,type:c,key:w,ref:I,props:ce,_owner:Te};return ie._store={},Object.defineProperty(ie._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(ie,"_self",{configurable:!1,enumerable:!1,writable:!1,value:K}),Object.defineProperty(ie,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ve}),Object.freeze&&(Object.freeze(ie.props),Object.freeze(ie)),ie};function Pr(c,w,I,K,ve){{var Te,ce={},ie=null,Le=null;I!==void 0&&(Et(I),ie=""+I),yr(w)&&(Et(w.key),ie=""+w.key),gr(w)&&(Le=w.ref,br(w,ve));for(Te in w)lt.call(w,Te)&&!be.hasOwnProperty(Te)&&(ce[Te]=w[Te]);if(c&&c.defaultProps){var Me=c.defaultProps;for(Te in Me)ce[Te]===void 0&&(ce[Te]=Me[Te])}if(ie||Le){var je=typeof c=="function"?c.displayName||c.name||"Unknown":c;ie&&wr(ce,je),Le&&Tr(ce,je)}return xr(c,ie,Le,ve,K,Q.current,ce)}}var Ct=_.ReactCurrentOwner,bo=_.ReactDebugCurrentFrame;function Dt(c){if(c){var w=c._owner,I=Fe(c.type,c._source,w?w.type:null);bo.setExtraStackFrame(I)}else bo.setExtraStackFrame(null)}var fn;fn=!1;function dn(c){return typeof c=="object"&&c!==null&&c.$$typeof===t}function wo(){{if(Ct.current){var c=y(Ct.current.type);if(c)return`
22
22
 
23
- Check the render method of \``+c+"`."}return""}}function Bh(c){{if(c!==void 0){var b=c.fileName.replace(/^.*[\\\/]/,""),N=c.lineNumber;return`
23
+ Check the render method of \``+c+"`."}return""}}function sp(c){{if(c!==void 0){var w=c.fileName.replace(/^.*[\\\/]/,""),I=c.lineNumber;return`
24
24
 
25
- Check your code at `+b+":"+N+"."}return""}}var lo={};function Gh(c){{var b=co();if(!b){var N=typeof c=="string"?c:c.displayName||c.name;N&&(b=`
25
+ Check your code at `+w+":"+I+"."}return""}}var To={};function up(c){{var w=wo();if(!w){var I=typeof c=="string"?c:c.displayName||c.name;I&&(w=`
26
26
 
27
- Check the top-level render call using <`+N+">.")}return b}}function fo(c,b){{if(!c._store||c._store.validated||c.key!=null)return;c._store.validated=!0;var N=Gh(b);if(lo[N])return;lo[N]=!0;var B="";c&&c._owner&&c._owner!==cn.current&&(B=" It was passed a child from "+T(c._owner.type)+"."),St(c),H('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',N,B),St(null)}}function ho(c,b){{if(typeof c!="object")return;if(dr(c))for(var N=0;N<c.length;N++){var B=c[N];fn(B)&&fo(B,b)}else if(fn(c))c._store&&(c._store.validated=!0);else if(c){var me=x(c);if(typeof me=="function"&&me!==c.entries)for(var Te=me.call(c),ce;!(ce=Te.next()).done;)fn(ce.value)&&fo(ce.value,b)}}}function Kh(c){{var b=c.type;if(b==null||typeof b=="string")return;var N;if(typeof b=="function")N=b.propTypes;else if(typeof b=="object"&&(b.$$typeof===u||b.$$typeof===h))N=b.propTypes;else return;if(N){var B=T(b);Pt(N,c.props,"prop",B,c)}else if(b.PropTypes!==void 0&&!ln){ln=!0;var me=T(b);H("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",me||"Unknown")}typeof b.getDefaultProps=="function"&&!b.getDefaultProps.isReactClassApproved&&H("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Qh(c){{for(var b=Object.keys(c.props),N=0;N<b.length;N++){var B=b[N];if(B!=="children"&&B!=="key"){St(c),H("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",B),St(null);break}}c.ref!==null&&(St(c),H("Invalid attribute `ref` supplied to `React.Fragment`."),St(null))}}function po(c,b,N,B,me,Te){{var ce=ue(c);if(!ce){var ne="";(c===void 0||typeof c=="object"&&c!==null&&Object.keys(c).length===0)&&(ne+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Ae=Bh(me);Ae?ne+=Ae:ne+=co();var Me;c===null?Me="null":dr(c)?Me="array":c!==void 0&&c.$$typeof===t?(Me="<"+(T(c.type)||"Unknown")+" />",ne=" Did you accidentally export a JSX literal instead of a component?"):Me=typeof c,H("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Me,ne)}var Re=qh(c,b,N,me,Te);if(Re==null)return Re;if(ce){var Ye=b.children;if(Ye!==void 0)if(B)if(dr(Ye)){for(var Ct=0;Ct<Ye.length;Ct++)ho(Ye[Ct],c);Object.freeze&&Object.freeze(Ye)}else H("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ho(Ye,c)}return c===n?Qh(Re):Kh(Re),Re}}function Xh(c,b,N){return po(c,b,N,!0)}function Zh(c,b,N){return po(c,b,N,!1)}var Jh=Zh,ep=Xh;Ot.Fragment=n,Ot.jsx=Jh,Ot.jsxs=ep}()),Ot}process.env.NODE_ENV==="production"?Tr.exports=mo():Tr.exports=go();var m=Tr.exports,pn={exports:{}};/*!
27
+ Check the top-level render call using <`+I+">.")}return w}}function xo(c,w){{if(!c._store||c._store.validated||c.key!=null)return;c._store.validated=!0;var I=up(w);if(To[I])return;To[I]=!0;var K="";c&&c._owner&&c._owner!==Ct.current&&(K=" It was passed a child from "+y(c._owner.type)+"."),Dt(c),z('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',I,K),Dt(null)}}function Po(c,w){{if(typeof c!="object")return;if(Pt(c))for(var I=0;I<c.length;I++){var K=c[I];dn(K)&&xo(K,w)}else if(dn(c))c._store&&(c._store.validated=!0);else if(c){var ve=P(c);if(typeof ve=="function"&&ve!==c.entries)for(var Te=ve.call(c),ce;!(ce=Te.next()).done;)dn(ce.value)&&xo(ce.value,w)}}}function cp(c){{var w=c.type;if(w==null||typeof w=="string")return;var I;if(typeof w=="function")I=w.propTypes;else if(typeof w=="object"&&(w.$$typeof===u||w.$$typeof===h))I=w.propTypes;else return;if(I){var K=y(w);cn(I,c.props,"prop",K,c)}else if(w.PropTypes!==void 0&&!fn){fn=!0;var ve=y(w);z("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ve||"Unknown")}typeof w.getDefaultProps=="function"&&!w.getDefaultProps.isReactClassApproved&&z("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function lp(c){{for(var w=Object.keys(c.props),I=0;I<w.length;I++){var K=w[I];if(K!=="children"&&K!=="key"){Dt(c),z("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",K),Dt(null);break}}c.ref!==null&&(Dt(c),z("Invalid attribute `ref` supplied to `React.Fragment`."),Dt(null))}}function Eo(c,w,I,K,ve,Te){{var ce=oe(c);if(!ce){var ie="";(c===void 0||typeof c=="object"&&c!==null&&Object.keys(c).length===0)&&(ie+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Le=sp(ve);Le?ie+=Le:ie+=wo();var Me;c===null?Me="null":Pt(c)?Me="array":c!==void 0&&c.$$typeof===t?(Me="<"+(y(c.type)||"Unknown")+" />",ie=" Did you accidentally export a JSX literal instead of a component?"):Me=typeof c,z("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Me,ie)}var je=Pr(c,w,I,ve,Te);if(je==null)return je;if(ce){var $e=w.children;if($e!==void 0)if(K)if(Pt($e)){for(var Ot=0;Ot<$e.length;Ot++)Po($e[Ot],c);Object.freeze&&Object.freeze($e)}else z("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Po($e,c)}return c===n?lp(je):cp(je),je}}function fp(c,w,I){return Eo(c,w,I,!0)}function dp(c,w,I){return Eo(c,w,I,!1)}var hp=dp,pp=fp;_t.Fragment=n,_t.jsx=hp,_t.jsxs=pp}()),_t}process.env.NODE_ENV==="production"?Er.exports=Do():Er.exports=Oo();var m=Er.exports,mn={exports:{}};/*!
28
28
  Copyright (c) 2018 Jed Watson.
29
29
  Licensed under the MIT License (MIT), see
30
30
  http://jedwatson.github.io/classnames
31
- */(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var n=[],a=0;a<arguments.length;a++){var i=arguments[a];if(i){var o=typeof i;if(o==="string"||o==="number")n.push(i);else if(Array.isArray(i)){if(i.length){var s=r.apply(null,i);s&&n.push(s)}}else if(o==="object"){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){n.push(i.toString());continue}for(var u in i)t.call(i,u)&&i[u]&&n.push(u)}}}return n.join(" ")}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(pn);var yo=pn.exports;const Ze=Xe(yo);var bo=typeof global=="object"&&global&&global.Object===Object&&global;const vn=bo;var wo=typeof self=="object"&&self&&self.Object===Object&&self,To=vn||wo||Function("return this")();const Ue=To;var xo=Ue.Symbol;const ft=xo;var mn=Object.prototype,Po=mn.hasOwnProperty,Eo=mn.toString,Nt=ft?ft.toStringTag:void 0;function So(e){var t=Po.call(e,Nt),r=e[Nt];try{e[Nt]=void 0;var n=!0}catch{}var a=Eo.call(e);return n&&(t?e[Nt]=r:delete e[Nt]),a}var Co=Object.prototype,Do=Co.toString;function Oo(e){return Do.call(e)}var No="[object Null]",Io="[object Undefined]",gn=ft?ft.toStringTag:void 0;function dt(e){return e==null?e===void 0?Io:No:gn&&gn in Object(e)?So(e):Oo(e)}function ht(e){return e!=null&&typeof e=="object"}var _o="[object Symbol]";function Mo(e){return typeof e=="symbol"||ht(e)&&dt(e)==_o}var Ro=Array.isArray;const xr=Ro;var ko=/\s/;function jo(e){for(var t=e.length;t--&&ko.test(e.charAt(t)););return t}var Lo=/^\s+/;function Ao(e){return e&&e.slice(0,jo(e)+1).replace(Lo,"")}function Be(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var yn=0/0,Fo=/^[-+]0x[0-9a-f]+$/i,$o=/^0b[01]+$/i,Yo=/^0o[0-7]+$/i,Uo=parseInt;function bn(e){if(typeof e=="number")return e;if(Mo(e))return yn;if(Be(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Be(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Ao(e);var r=$o.test(e);return r||Yo.test(e)?Uo(e.slice(2),r?2:8):Fo.test(e)?yn:+e}var Ho="[object AsyncFunction]",Wo="[object Function]",Vo="[object GeneratorFunction]",zo="[object Proxy]";function wn(e){if(!Be(e))return!1;var t=dt(e);return t==Wo||t==Vo||t==Ho||t==zo}var qo=Ue["__core-js_shared__"];const Pr=qo;var Tn=function(){var e=/[^.]+$/.exec(Pr&&Pr.keys&&Pr.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Bo(e){return!!Tn&&Tn in e}var Go=Function.prototype,Ko=Go.toString;function et(e){if(e!=null){try{return Ko.call(e)}catch{}try{return e+""}catch{}}return""}var Qo=/[\\^$.*+?()[\]{}|]/g,Xo=/^\[object .+?Constructor\]$/,Zo=Function.prototype,Jo=Object.prototype,ei=Zo.toString,ti=Jo.hasOwnProperty,ri=RegExp("^"+ei.call(ti).replace(Qo,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ni(e){if(!Be(e)||Bo(e))return!1;var t=wn(e)?ri:Xo;return t.test(et(e))}function ai(e,t){return e==null?void 0:e[t]}function tt(e,t){var r=ai(e,t);return ni(r)?r:void 0}var oi=tt(Ue,"WeakMap");const Er=oi;var xn=Object.create,ii=function(){function e(){}return function(t){if(!Be(t))return{};if(xn)return xn(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();const si=ii;function ui(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var ci=function(){try{var e=tt(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Pn=ci;function li(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var fi=9007199254740991,di=/^(?:0|[1-9]\d*)$/;function hi(e,t){var r=typeof e;return t=t??fi,!!t&&(r=="number"||r!="symbol"&&di.test(e))&&e>-1&&e%1==0&&e<t}function En(e,t,r){t=="__proto__"&&Pn?Pn(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Sn(e,t){return e===t||e!==e&&t!==t}var pi=Object.prototype,vi=pi.hasOwnProperty;function Cn(e,t,r){var n=e[t];(!(vi.call(e,t)&&Sn(n,r))||r===void 0&&!(t in e))&&En(e,t,r)}function Wt(e,t,r,n){var a=!r;r||(r={});for(var i=-1,o=t.length;++i<o;){var s=t[i],u=n?n(r[s],e[s],s,r,e):void 0;u===void 0&&(u=e[s]),a?En(r,s,u):Cn(r,s,u)}return r}var mi=9007199254740991;function Dn(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=mi}function On(e){return e!=null&&Dn(e.length)&&!wn(e)}var gi=Object.prototype;function Sr(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||gi;return e===r}function yi(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var bi="[object Arguments]";function Nn(e){return ht(e)&&dt(e)==bi}var In=Object.prototype,wi=In.hasOwnProperty,Ti=In.propertyIsEnumerable,xi=Nn(function(){return arguments}())?Nn:function(e){return ht(e)&&wi.call(e,"callee")&&!Ti.call(e,"callee")};const Pi=xi;function Ei(){return!1}var _n=typeof he=="object"&&he&&!he.nodeType&&he,Mn=_n&&typeof module=="object"&&module&&!module.nodeType&&module,Si=Mn&&Mn.exports===_n,Rn=Si?Ue.Buffer:void 0,Ci=Rn?Rn.isBuffer:void 0,Di=Ci||Ei;const kn=Di;var Oi="[object Arguments]",Ni="[object Array]",Ii="[object Boolean]",_i="[object Date]",Mi="[object Error]",Ri="[object Function]",ki="[object Map]",ji="[object Number]",Li="[object Object]",Ai="[object RegExp]",Fi="[object Set]",$i="[object String]",Yi="[object WeakMap]",Ui="[object ArrayBuffer]",Hi="[object DataView]",Wi="[object Float32Array]",Vi="[object Float64Array]",zi="[object Int8Array]",qi="[object Int16Array]",Bi="[object Int32Array]",Gi="[object Uint8Array]",Ki="[object Uint8ClampedArray]",Qi="[object Uint16Array]",Xi="[object Uint32Array]",Ee={};Ee[Wi]=Ee[Vi]=Ee[zi]=Ee[qi]=Ee[Bi]=Ee[Gi]=Ee[Ki]=Ee[Qi]=Ee[Xi]=!0,Ee[Oi]=Ee[Ni]=Ee[Ui]=Ee[Ii]=Ee[Hi]=Ee[_i]=Ee[Mi]=Ee[Ri]=Ee[ki]=Ee[ji]=Ee[Li]=Ee[Ai]=Ee[Fi]=Ee[$i]=Ee[Yi]=!1;function Zi(e){return ht(e)&&Dn(e.length)&&!!Ee[dt(e)]}function Cr(e){return function(t){return e(t)}}var jn=typeof he=="object"&&he&&!he.nodeType&&he,It=jn&&typeof module=="object"&&module&&!module.nodeType&&module,Ji=It&&It.exports===jn,Dr=Ji&&vn.process,es=function(){try{var e=It&&It.require&&It.require("util").types;return e||Dr&&Dr.binding&&Dr.binding("util")}catch{}}();const pt=es;var Ln=pt&&pt.isTypedArray,ts=Ln?Cr(Ln):Zi;const rs=ts;var ns=Object.prototype,as=ns.hasOwnProperty;function An(e,t){var r=xr(e),n=!r&&Pi(e),a=!r&&!n&&kn(e),i=!r&&!n&&!a&&rs(e),o=r||n||a||i,s=o?yi(e.length,String):[],u=s.length;for(var l in e)(t||as.call(e,l))&&!(o&&(l=="length"||a&&(l=="offset"||l=="parent")||i&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||hi(l,u)))&&s.push(l);return s}function Fn(e,t){return function(r){return e(t(r))}}var os=Fn(Object.keys,Object);const is=os;var ss=Object.prototype,us=ss.hasOwnProperty;function cs(e){if(!Sr(e))return is(e);var t=[];for(var r in Object(e))us.call(e,r)&&r!="constructor"&&t.push(r);return t}function Or(e){return On(e)?An(e):cs(e)}function ls(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var fs=Object.prototype,ds=fs.hasOwnProperty;function hs(e){if(!Be(e))return ls(e);var t=Sr(e),r=[];for(var n in e)n=="constructor"&&(t||!ds.call(e,n))||r.push(n);return r}function Nr(e){return On(e)?An(e,!0):hs(e)}var ps=tt(Object,"create");const _t=ps;function vs(){this.__data__=_t?_t(null):{},this.size=0}function ms(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var gs="__lodash_hash_undefined__",ys=Object.prototype,bs=ys.hasOwnProperty;function ws(e){var t=this.__data__;if(_t){var r=t[e];return r===gs?void 0:r}return bs.call(t,e)?t[e]:void 0}var Ts=Object.prototype,xs=Ts.hasOwnProperty;function Ps(e){var t=this.__data__;return _t?t[e]!==void 0:xs.call(t,e)}var Es="__lodash_hash_undefined__";function Ss(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=_t&&t===void 0?Es:t,this}function rt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}rt.prototype.clear=vs,rt.prototype.delete=ms,rt.prototype.get=ws,rt.prototype.has=Ps,rt.prototype.set=Ss;function Cs(){this.__data__=[],this.size=0}function Vt(e,t){for(var r=e.length;r--;)if(Sn(e[r][0],t))return r;return-1}var Ds=Array.prototype,Os=Ds.splice;function Ns(e){var t=this.__data__,r=Vt(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Os.call(t,r,1),--this.size,!0}function Is(e){var t=this.__data__,r=Vt(t,e);return r<0?void 0:t[r][1]}function _s(e){return Vt(this.__data__,e)>-1}function Ms(e,t){var r=this.__data__,n=Vt(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function Ge(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ge.prototype.clear=Cs,Ge.prototype.delete=Ns,Ge.prototype.get=Is,Ge.prototype.has=_s,Ge.prototype.set=Ms;var Rs=tt(Ue,"Map");const Mt=Rs;function ks(){this.size=0,this.__data__={hash:new rt,map:new(Mt||Ge),string:new rt}}function js(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function zt(e,t){var r=e.__data__;return js(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Ls(e){var t=zt(this,e).delete(e);return this.size-=t?1:0,t}function As(e){return zt(this,e).get(e)}function Fs(e){return zt(this,e).has(e)}function $s(e,t){var r=zt(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function vt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}vt.prototype.clear=ks,vt.prototype.delete=Ls,vt.prototype.get=As,vt.prototype.has=Fs,vt.prototype.set=$s;function $n(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}var Ys=Fn(Object.getPrototypeOf,Object);const Yn=Ys;function Us(){this.__data__=new Ge,this.size=0}function Hs(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Ws(e){return this.__data__.get(e)}function Vs(e){return this.__data__.has(e)}var zs=200;function qs(e,t){var r=this.__data__;if(r instanceof Ge){var n=r.__data__;if(!Mt||n.length<zs-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new vt(n)}return r.set(e,t),this.size=r.size,this}function mt(e){var t=this.__data__=new Ge(e);this.size=t.size}mt.prototype.clear=Us,mt.prototype.delete=Hs,mt.prototype.get=Ws,mt.prototype.has=Vs,mt.prototype.set=qs;function Bs(e,t){return e&&Wt(t,Or(t),e)}function Gs(e,t){return e&&Wt(t,Nr(t),e)}var Un=typeof he=="object"&&he&&!he.nodeType&&he,Hn=Un&&typeof module=="object"&&module&&!module.nodeType&&module,Ks=Hn&&Hn.exports===Un,Wn=Ks?Ue.Buffer:void 0,Vn=Wn?Wn.allocUnsafe:void 0;function Qs(e,t){if(t)return e.slice();var r=e.length,n=Vn?Vn(r):new e.constructor(r);return e.copy(n),n}function Xs(e,t){for(var r=-1,n=e==null?0:e.length,a=0,i=[];++r<n;){var o=e[r];t(o,r,e)&&(i[a++]=o)}return i}function zn(){return[]}var Zs=Object.prototype,Js=Zs.propertyIsEnumerable,qn=Object.getOwnPropertySymbols,eu=qn?function(e){return e==null?[]:(e=Object(e),Xs(qn(e),function(t){return Js.call(e,t)}))}:zn;const Ir=eu;function tu(e,t){return Wt(e,Ir(e),t)}var ru=Object.getOwnPropertySymbols,nu=ru?function(e){for(var t=[];e;)$n(t,Ir(e)),e=Yn(e);return t}:zn;const Bn=nu;function au(e,t){return Wt(e,Bn(e),t)}function Gn(e,t,r){var n=t(e);return xr(e)?n:$n(n,r(e))}function ou(e){return Gn(e,Or,Ir)}function iu(e){return Gn(e,Nr,Bn)}var su=tt(Ue,"DataView");const _r=su;var uu=tt(Ue,"Promise");const Mr=uu;var cu=tt(Ue,"Set");const Rr=cu;var Kn="[object Map]",lu="[object Object]",Qn="[object Promise]",Xn="[object Set]",Zn="[object WeakMap]",Jn="[object DataView]",fu=et(_r),du=et(Mt),hu=et(Mr),pu=et(Rr),vu=et(Er),nt=dt;(_r&&nt(new _r(new ArrayBuffer(1)))!=Jn||Mt&&nt(new Mt)!=Kn||Mr&&nt(Mr.resolve())!=Qn||Rr&&nt(new Rr)!=Xn||Er&&nt(new Er)!=Zn)&&(nt=function(e){var t=dt(e),r=t==lu?e.constructor:void 0,n=r?et(r):"";if(n)switch(n){case fu:return Jn;case du:return Kn;case hu:return Qn;case pu:return Xn;case vu:return Zn}return t});const kr=nt;var mu=Object.prototype,gu=mu.hasOwnProperty;function yu(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&gu.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var bu=Ue.Uint8Array;const ea=bu;function jr(e){var t=new e.constructor(e.byteLength);return new ea(t).set(new ea(e)),t}function wu(e,t){var r=t?jr(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var Tu=/\w*$/;function xu(e){var t=new e.constructor(e.source,Tu.exec(e));return t.lastIndex=e.lastIndex,t}var ta=ft?ft.prototype:void 0,ra=ta?ta.valueOf:void 0;function Pu(e){return ra?Object(ra.call(e)):{}}function Eu(e,t){var r=t?jr(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var Su="[object Boolean]",Cu="[object Date]",Du="[object Map]",Ou="[object Number]",Nu="[object RegExp]",Iu="[object Set]",_u="[object String]",Mu="[object Symbol]",Ru="[object ArrayBuffer]",ku="[object DataView]",ju="[object Float32Array]",Lu="[object Float64Array]",Au="[object Int8Array]",Fu="[object Int16Array]",$u="[object Int32Array]",Yu="[object Uint8Array]",Uu="[object Uint8ClampedArray]",Hu="[object Uint16Array]",Wu="[object Uint32Array]";function Vu(e,t,r){var n=e.constructor;switch(t){case Ru:return jr(e);case Su:case Cu:return new n(+e);case ku:return wu(e,r);case ju:case Lu:case Au:case Fu:case $u:case Yu:case Uu:case Hu:case Wu:return Eu(e,r);case Du:return new n;case Ou:case _u:return new n(e);case Nu:return xu(e);case Iu:return new n;case Mu:return Pu(e)}}function zu(e){return typeof e.constructor=="function"&&!Sr(e)?si(Yn(e)):{}}var qu="[object Map]";function Bu(e){return ht(e)&&kr(e)==qu}var na=pt&&pt.isMap,Gu=na?Cr(na):Bu;const Ku=Gu;var Qu="[object Set]";function Xu(e){return ht(e)&&kr(e)==Qu}var aa=pt&&pt.isSet,Zu=aa?Cr(aa):Xu;const Ju=Zu;var ec=1,tc=2,rc=4,oa="[object Arguments]",nc="[object Array]",ac="[object Boolean]",oc="[object Date]",ic="[object Error]",ia="[object Function]",sc="[object GeneratorFunction]",uc="[object Map]",cc="[object Number]",sa="[object Object]",lc="[object RegExp]",fc="[object Set]",dc="[object String]",hc="[object Symbol]",pc="[object WeakMap]",vc="[object ArrayBuffer]",mc="[object DataView]",gc="[object Float32Array]",yc="[object Float64Array]",bc="[object Int8Array]",wc="[object Int16Array]",Tc="[object Int32Array]",xc="[object Uint8Array]",Pc="[object Uint8ClampedArray]",Ec="[object Uint16Array]",Sc="[object Uint32Array]",xe={};xe[oa]=xe[nc]=xe[vc]=xe[mc]=xe[ac]=xe[oc]=xe[gc]=xe[yc]=xe[bc]=xe[wc]=xe[Tc]=xe[uc]=xe[cc]=xe[sa]=xe[lc]=xe[fc]=xe[dc]=xe[hc]=xe[xc]=xe[Pc]=xe[Ec]=xe[Sc]=!0,xe[ic]=xe[ia]=xe[pc]=!1;function qt(e,t,r,n,a,i){var o,s=t&ec,u=t&tc,l=t&rc;if(r&&(o=a?r(e,n,a,i):r(e)),o!==void 0)return o;if(!Be(e))return e;var f=xr(e);if(f){if(o=yu(e),!s)return ui(e,o)}else{var h=kr(e),w=h==ia||h==sc;if(kn(e))return Qs(e,s);if(h==sa||h==oa||w&&!a){if(o=u||w?{}:zu(e),!s)return u?au(e,Gs(o,e)):tu(e,Bs(o,e))}else{if(!xe[h])return a?e:{};o=Vu(e,h,s)}}i||(i=new mt);var g=i.get(e);if(g)return g;i.set(e,o),Ju(e)?e.forEach(function(x){o.add(qt(x,t,r,x,e,i))}):Ku(e)&&e.forEach(function(x,R){o.set(R,qt(x,t,r,R,e,i))});var E=l?u?iu:ou:u?Nr:Or,D=f?void 0:E(e);return li(D||e,function(x,R){D&&(R=x,x=e[R]),Cn(o,R,qt(x,t,r,R,e,i))}),o}var Cc=1,Dc=4;function Oc(e){return qt(e,Cc|Dc)}var Nc=function(){return Ue.Date.now()};const Lr=Nc;var Ic="Expected a function",_c=Math.max,Mc=Math.min;function Rt(e,t,r){var n,a,i,o,s,u,l=0,f=!1,h=!1,w=!0;if(typeof e!="function")throw new TypeError(Ic);t=bn(t)||0,Be(r)&&(f=!!r.leading,h="maxWait"in r,i=h?_c(bn(r.maxWait)||0,t):i,w="trailing"in r?!!r.trailing:w);function g(U){var ee=n,Q=a;return n=a=void 0,l=U,o=e.apply(Q,ee),o}function E(U){return l=U,s=setTimeout(R,t),f?g(U):o}function D(U){var ee=U-u,Q=U-l,X=t-ee;return h?Mc(X,i-Q):X}function x(U){var ee=U-u,Q=U-l;return u===void 0||ee>=t||ee<0||h&&Q>=i}function R(){var U=Lr();if(x(U))return H(U);s=setTimeout(R,D(U))}function H(U){return s=void 0,w&&n?g(U):(n=a=void 0,o)}function G(){s!==void 0&&clearTimeout(s),l=0,n=u=a=s=void 0}function V(){return s===void 0?o:H(Lr())}function y(){var U=Lr(),ee=x(U);if(n=arguments,a=this,u=U,ee){if(s===void 0)return E(u);if(h)return clearTimeout(s),s=setTimeout(R,t),g(u)}return s===void 0&&(s=setTimeout(R,t)),o}return y.cancel=G,y.flush=V,y}var Rc="Expected a function";function kc(e,t,r){var n=!0,a=!0;if(typeof e!="function")throw new TypeError(Rc);return Be(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),Rt(e,t,{leading:n,maxWait:t,trailing:a})}const jc=(e,t)=>{const{value:r,readOnly:n=!1,debounceTime:a=800,fillContainer:i=!0,leftElement:o,rightElement:s,className:u,leftElementClassName:l,rightElementClassName:f,isSingleLine:h=!0,allowSingleLineScroll:w=!1,placeholder:g,onFocus:E,onBlur:D,onInput:x,onInnerTextChange:R,onInnerHTMLChange:H,onElementCreate:G,onLeftElementClick:V,onRightElementClick:y}=e,U=p.useRef("bsc-flex-grow focus:bsc-outline-none"),ee=p.useRef("bsc-text-gray-4"),Q=p.useRef(),X=p.useCallback(d=>{const C=d.target,L=C.innerHTML;C.className=`${U.current}`,g&&L===g&&(C.innerHTML=""),E==null||E(d)},[g,E]),ue=p.useCallback(d=>{const C=d.target.innerHTML;if(g&&C===""){const L=d.target;L.innerHTML=g,L.className=`${U.current} ${ee.current}`}D==null||D(d)},[g,D]),ie=p.useCallback(d=>{var C,L;(C=Q.current)==null||C.removeEventListener("focus",X),(L=Q.current)==null||L.removeEventListener("blur",ue),g&&d&&d!==document.activeElement&&d.innerHTML===""&&(d.innerHTML=g,d.className=`${U.current} ${ee.current}`),d.addEventListener("focus",X),d.addEventListener("blur",ue),Q.current=d},[g]),se=p.useCallback(d=>{G==null||G(d)},[G]),T=d=>{V==null||V(d)},W=d=>{y==null||y(d)},q=Rt(d=>{x==null||x(d),R==null||R(d.target.innerText),H==null||H(d.target.innerHTML)},a),F=p.useCallback(d=>{Q.current&&(Q.current.innerText=d)},[]),te=p.useCallback(d=>{Q.current&&(Q.current.innerHTML=d)},[]),A=p.useCallback(()=>{var d;(d=Q.current)==null||d.focus()},[]);p.useImperativeHandle(t,()=>({inputElement:Q.current,setInnerText:F,setInnerHTML:te,focus:A}));const de=Ze({"bsc-w-full ":i},"bsc-flex bsc-flex-row bsc-shadow-sm bsc-border bsc-border-solid bsc-border-gray-3 dark:bsc-border-white dark:bsc-bg-mono-dark-1 dark:bsc-text-mono-light-1 bsc-rounded-md bsc-p-2",{"bsc-overflow-x-auto bsc-overflow-y-hidden bsc-whitespace-pre":h&&w,"bsc-overflow-hidden bsc-whitespace-pre":h&&!w},u),v=Ze("bsc-flex-shrink",{"bsc-mr-2":o},l),P=Ze("bsc-flex-shrink",{"bsc-ml-2":s},f);return m.jsxs("div",{className:de,ref:d=>d&&se(d),children:[o&&m.jsx("div",{className:v,onClick:T,children:o}),m.jsx("div",{ref:d=>d&&ie(d),className:U.current,contentEditable:!n,suppressContentEditableWarning:!0,onInput:q,children:r}),s&&m.jsx("div",{className:P,onClick:W,children:s})]})},Ar=p.forwardRef(jc);function Je(e){"@babel/helpers - typeof";return Je=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Je(e)}function Oe(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function re(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function pe(e){re(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Je(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Bt(e,t){re(2,arguments);var r=pe(e),n=Oe(t);return isNaN(n)?new Date(NaN):(n&&r.setDate(r.getDate()+n),r)}function at(e,t){re(2,arguments);var r=pe(e),n=Oe(t);if(isNaN(n))return new Date(NaN);if(!n)return r;var a=r.getDate(),i=new Date(r.getTime());i.setMonth(r.getMonth()+n+1,0);var o=i.getDate();return a>=o?i:(r.setFullYear(i.getFullYear(),i.getMonth(),a),r)}function Lc(e,t){re(2,arguments);var r=pe(e).getTime(),n=Oe(t);return new Date(r+n)}var Ac={};function kt(){return Ac}function Fc(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function ua(e){re(1,arguments);var t=pe(e);return t.setHours(0,0,0,0),t}function Gt(e,t){re(2,arguments);var r=Oe(t);return at(e,r*12)}var Fr=6e4,$r=36e5,$c=1e3;function ca(e,t){re(2,arguments);var r=ua(e),n=ua(t);return r.getTime()===n.getTime()}function Yc(e){re(1,arguments);var t=pe(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}function Uc(e,t){var r;re(1,arguments);var n=e||{},a=pe(n.start),i=pe(n.end),o=i.getTime();if(!(a.getTime()<=o))throw new RangeError("Invalid interval");var s=[],u=a;u.setHours(0,0,0,0);var l=Number((r=t==null?void 0:t.step)!==null&&r!==void 0?r:1);if(l<1||isNaN(l))throw new RangeError("`options.step` must be a number greater than 1");for(;u.getTime()<=o;)s.push(pe(u)),u.setDate(u.getDate()+l),u.setHours(0,0,0,0);return s}function la(e){re(1,arguments);var t=pe(e);return t.setDate(1),t.setHours(0,0,0,0),t}function Hc(e){re(1,arguments);var t=e||{},r=pe(t.start),n=pe(t.end),a=n.getTime();if(!(r.getTime()<=a))throw new RangeError("Invalid interval");var i=[],o=r;for(o.setHours(0,0,0,0),o.setMonth(0,1);o.getTime()<=a;)i.push(pe(o)),o.setFullYear(o.getFullYear()+1);return i}function Wc(e,t){re(2,arguments);var r=Oe(t);return Lc(e,-r)}function gt(e){re(1,arguments);var t=1,r=pe(e),n=r.getUTCDay(),a=(n<t?7:0)+n-t;return r.setUTCDate(r.getUTCDate()-a),r.setUTCHours(0,0,0,0),r}function Vc(e){re(1,arguments);var t=pe(e),r=t.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(r+1,0,4),n.setUTCHours(0,0,0,0);var a=gt(n),i=new Date(0);i.setUTCFullYear(r,0,4),i.setUTCHours(0,0,0,0);var o=gt(i);return t.getTime()>=a.getTime()?r+1:t.getTime()>=o.getTime()?r:r-1}function zc(e){re(1,arguments);var t=Vc(e),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var n=gt(r);return n}var qc=6048e5;function Bc(e){re(1,arguments);var t=pe(e),r=gt(t).getTime()-zc(t).getTime();return Math.round(r/qc)+1}function ot(e,t){var r,n,a,i,o,s,u,l;re(1,arguments);var f=kt(),h=Oe((r=(n=(a=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&a!==void 0?a:f.weekStartsOn)!==null&&n!==void 0?n:(u=f.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&r!==void 0?r:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var w=pe(e),g=w.getUTCDay(),E=(g<h?7:0)+g-h;return w.setUTCDate(w.getUTCDate()-E),w.setUTCHours(0,0,0,0),w}function fa(e,t){var r,n,a,i,o,s,u,l;re(1,arguments);var f=pe(e),h=f.getUTCFullYear(),w=kt(),g=Oe((r=(n=(a=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:w.firstWeekContainsDate)!==null&&n!==void 0?n:(u=w.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:1);if(!(g>=1&&g<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var E=new Date(0);E.setUTCFullYear(h+1,0,g),E.setUTCHours(0,0,0,0);var D=ot(E,t),x=new Date(0);x.setUTCFullYear(h,0,g),x.setUTCHours(0,0,0,0);var R=ot(x,t);return f.getTime()>=D.getTime()?h+1:f.getTime()>=R.getTime()?h:h-1}function Gc(e,t){var r,n,a,i,o,s,u,l;re(1,arguments);var f=kt(),h=Oe((r=(n=(a=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:f.firstWeekContainsDate)!==null&&n!==void 0?n:(u=f.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:1),w=fa(e,t),g=new Date(0);g.setUTCFullYear(w,0,h),g.setUTCHours(0,0,0,0);var E=ot(g,t);return E}var Kc=6048e5;function Qc(e,t){re(1,arguments);var r=pe(e),n=ot(r,t).getTime()-Gc(r,t).getTime();return Math.round(n/Kc)+1}var da=function(t,r){switch(t){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},ha=function(t,r){switch(t){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},Xc=function(t,r){var n=t.match(/(P+)(p+)?/)||[],a=n[1],i=n[2];if(!i)return da(t,r);var o;switch(a){case"P":o=r.dateTime({width:"short"});break;case"PP":o=r.dateTime({width:"medium"});break;case"PPP":o=r.dateTime({width:"long"});break;case"PPPP":default:o=r.dateTime({width:"full"});break}return o.replace("{{date}}",da(a,r)).replace("{{time}}",ha(i,r))},Zc={p:ha,P:Xc};const pa=Zc;var Jc=["D","DD"],el=["YY","YYYY"];function tl(e){return Jc.indexOf(e)!==-1}function rl(e){return el.indexOf(e)!==-1}function va(e,t,r){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var nl={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},al=function(t,r,n){var a,i=nl[t];return typeof i=="string"?a=i:r===1?a=i.one:a=i.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+a:a+" ago":a};const ol=al;function Yr(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,n=e.formats[r]||e.formats[e.defaultWidth];return n}}var il={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},sl={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},ul={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},cl={date:Yr({formats:il,defaultWidth:"full"}),time:Yr({formats:sl,defaultWidth:"full"}),dateTime:Yr({formats:ul,defaultWidth:"full"})};const ll=cl;var fl={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},dl=function(t,r,n,a){return fl[t]};const hl=dl;function jt(e){return function(t,r){var n=r!=null&&r.context?String(r.context):"standalone",a;if(n==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,o=r!=null&&r.width?String(r.width):i;a=e.formattingValues[o]||e.formattingValues[i]}else{var s=e.defaultWidth,u=r!=null&&r.width?String(r.width):e.defaultWidth;a=e.values[u]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return a[l]}}var pl={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},vl={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},ml={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},gl={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},yl={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},bl={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},wl=function(t,r){var n=Number(t),a=n%100;if(a>20||a<10)switch(a%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},Tl={ordinalNumber:wl,era:jt({values:pl,defaultWidth:"wide"}),quarter:jt({values:vl,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:jt({values:ml,defaultWidth:"wide"}),day:jt({values:gl,defaultWidth:"wide"}),dayPeriod:jt({values:yl,defaultWidth:"wide",formattingValues:bl,defaultFormattingWidth:"wide"})};const xl=Tl;function Lt(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.width,a=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],i=t.match(a);if(!i)return null;var o=i[0],s=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(s)?El(s,function(h){return h.test(o)}):Pl(s,function(h){return h.test(o)}),l;l=e.valueCallback?e.valueCallback(u):u,l=r.valueCallback?r.valueCallback(l):l;var f=t.slice(o.length);return{value:l,rest:f}}}function Pl(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function El(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r}function Sl(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var a=n[0],i=t.match(e.parsePattern);if(!i)return null;var o=e.valueCallback?e.valueCallback(i[0]):i[0];o=r.valueCallback?r.valueCallback(o):o;var s=t.slice(a.length);return{value:o,rest:s}}}var Cl=/^(\d+)(th|st|nd|rd)?/i,Dl=/\d+/i,Ol={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Nl={any:[/^b/i,/^(a|c)/i]},Il={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},_l={any:[/1/i,/2/i,/3/i,/4/i]},Ml={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Rl={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},kl={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},jl={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Ll={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Al={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Fl={ordinalNumber:Sl({matchPattern:Cl,parsePattern:Dl,valueCallback:function(t){return parseInt(t,10)}}),era:Lt({matchPatterns:Ol,defaultMatchWidth:"wide",parsePatterns:Nl,defaultParseWidth:"any"}),quarter:Lt({matchPatterns:Il,defaultMatchWidth:"wide",parsePatterns:_l,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Lt({matchPatterns:Ml,defaultMatchWidth:"wide",parsePatterns:Rl,defaultParseWidth:"any"}),day:Lt({matchPatterns:kl,defaultMatchWidth:"wide",parsePatterns:jl,defaultParseWidth:"any"}),dayPeriod:Lt({matchPatterns:Ll,defaultMatchWidth:"any",parsePatterns:Al,defaultParseWidth:"any"})},$l={code:"en-US",formatDistance:ol,formatLong:ll,formatRelative:hl,localize:xl,match:Fl,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Yl=$l;function Ul(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function Ur(e){re(1,arguments);var t=pe(e),r=t.getDay();return r}function ma(e){re(1,arguments);var t=pe(e),r=t.getFullYear(),n=t.getMonth(),a=new Date(0);return a.setFullYear(r,n+1,0),a.setHours(0,0,0,0),a.getDate()}function Hl(e){re(1,arguments);var t=pe(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(0,0,0,0),t}function Wl(e,t){re(2,arguments);var r=pe(e),n=pe(t);return r.getTime()<n.getTime()}function ga(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Vl(e,t){if(e){if(typeof e=="string")return ga(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ga(e,t)}}function ya(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Vl(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(l){throw l},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
32
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,o=!1,s;return{s:function(){r=r.call(e)},n:function(){var l=r.next();return i=l.done,l},e:function(l){o=!0,s=l},f:function(){try{!i&&r.return!=null&&r.return()}finally{if(o)throw s}}}}function j(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Kt(e,t){return Kt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Kt(e,t)}function le(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Kt(e,t)}function Qt(e){return Qt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Qt(e)}function zl(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ql(e,t){if(t&&(Je(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return j(e)}function fe(e){var t=zl();return function(){var n=Qt(e),a;if(t){var i=Qt(this).constructor;a=Reflect.construct(n,arguments,i)}else a=n.apply(this,arguments);return ql(this,a)}}function ae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Bl(e,t){if(Je(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Je(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ba(e){var t=Bl(e,"string");return Je(t)==="symbol"?t:String(t)}function wa(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ba(n.key),n)}}function oe(e,t,r){return t&&wa(e.prototype,t),r&&wa(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function I(e,t,r){return t=ba(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Gl=10,Ta=function(){function e(){ae(this,e),I(this,"priority",void 0),I(this,"subPriority",0)}return oe(e,[{key:"validate",value:function(r,n){return!0}}]),e}(),Kl=function(e){le(r,e);var t=fe(r);function r(n,a,i,o,s){var u;return ae(this,r),u=t.call(this),u.value=n,u.validateValue=a,u.setValue=i,u.priority=o,s&&(u.subPriority=s),u}return oe(r,[{key:"validate",value:function(a,i){return this.validateValue(a,this.value,i)}},{key:"set",value:function(a,i,o){return this.setValue(a,i,this.value,o)}}]),r}(Ta),Ql=function(e){le(r,e);var t=fe(r);function r(){var n;ae(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),I(j(n),"priority",Gl),I(j(n),"subPriority",-1),n}return oe(r,[{key:"set",value:function(a,i){if(i.timestampIsSet)return a;var o=new Date(0);return o.setFullYear(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()),o.setHours(a.getUTCHours(),a.getUTCMinutes(),a.getUTCSeconds(),a.getUTCMilliseconds()),o}}]),r}(Ta),ve=function(){function e(){ae(this,e),I(this,"incompatibleTokens",void 0),I(this,"priority",void 0),I(this,"subPriority",void 0)}return oe(e,[{key:"run",value:function(r,n,a,i){var o=this.parse(r,n,a,i);return o?{setter:new Kl(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}},{key:"validate",value:function(r,n,a){return!0}}]),e}(),Xl=function(e){le(r,e);var t=fe(r);function r(){var n;ae(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),I(j(n),"priority",140),I(j(n),"incompatibleTokens",["R","u","t","T"]),n}return oe(r,[{key:"parse",value:function(a,i,o){switch(i){case"G":case"GG":case"GGG":return o.era(a,{width:"abbreviated"})||o.era(a,{width:"narrow"});case"GGGGG":return o.era(a,{width:"narrow"});case"GGGG":default:return o.era(a,{width:"wide"})||o.era(a,{width:"abbreviated"})||o.era(a,{width:"narrow"})}}},{key:"set",value:function(a,i,o){return i.era=o,a.setUTCFullYear(o,0,1),a.setUTCHours(0,0,0,0),a}}]),r}(ve),Ne={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},We={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Ie(e,t){return e&&{value:t(e.value),rest:e.rest}}function Se(e,t){var r=t.match(e);return r?{value:parseInt(r[0],10),rest:t.slice(r[0].length)}:null}function Ve(e,t){var r=t.match(e);if(!r)return null;if(r[0]==="Z")return{value:0,rest:t.slice(1)};var n=r[1]==="+"?1:-1,a=r[2]?parseInt(r[2],10):0,i=r[3]?parseInt(r[3],10):0,o=r[5]?parseInt(r[5],10):0;return{value:n*(a*$r+i*Fr+o*$c),rest:t.slice(r[0].length)}}function xa(e){return Se(Ne.anyDigitsSigned,e)}function Ce(e,t){switch(e){case 1:return Se(Ne.singleDigit,t);case 2:return Se(Ne.twoDigits,t);case 3:return Se(Ne.threeDigits,t);case 4:return Se(Ne.fourDigits,t);default:return Se(new RegExp("^\\d{1,"+e+"}"),t)}}function Xt(e,t){switch(e){case 1:return Se(Ne.singleDigitSigned,t);case 2:return Se(Ne.twoDigitsSigned,t);case 3:return Se(Ne.threeDigitsSigned,t);case 4:return Se(Ne.fourDigitsSigned,t);default:return Se(new RegExp("^-?\\d{1,"+e+"}"),t)}}function Hr(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Pa(e,t){var r=t>0,n=r?t:1-t,a;if(n<=50)a=e||100;else{var i=n+50,o=Math.floor(i/100)*100,s=e>=i%100;a=e+o-(s?100:0)}return r?a:1-a}function Ea(e){return e%400===0||e%4===0&&e%100!==0}var Zl=function(e){le(r,e);var t=fe(r);function r(){var n;ae(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),I(j(n),"priority",130),I(j(n),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),n}return oe(r,[{key:"parse",value:function(a,i,o){var s=function(l){return{year:l,isTwoDigitYear:i==="yy"}};switch(i){case"y":return Ie(Ce(4,a),s);case"yo":return Ie(o.ordinalNumber(a,{unit:"year"}),s);default:return Ie(Ce(i.length,a),s)}}},{key:"validate",value:function(a,i){return i.isTwoDigitYear||i.year>0}},{key:"set",value:function(a,i,o){var s=a.getUTCFullYear();if(o.isTwoDigitYear){var u=Pa(o.year,s);return a.setUTCFullYear(u,0,1),a.setUTCHours(0,0,0,0),a}var l=!("era"in i)||i.era===1?o.year:1-o.year;return a.setUTCFullYear(l,0,1),a.setUTCHours(0,0,0,0),a}}]),r}(ve),Jl=function(e){le(r,e);var t=fe(r);function r(){var n;ae(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),I(j(n),"priority",130),I(j(n),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),n}return oe(r,[{key:"parse",value:function(a,i,o){var s=function(l){return{year:l,isTwoDigitYear:i==="YY"}};switch(i){case"Y":return Ie(Ce(4,a),s);case"Yo":return Ie(o.ordinalNumber(a,{unit:"year"}),s);default:return Ie(Ce(i.length,a),s)}}},{key:"validate",value:function(a,i){return i.isTwoDigitYear||i.year>0}},{key:"set",value:function(a,i,o,s){var u=fa(a,s);if(o.isTwoDigitYear){var l=Pa(o.year,u);return a.setUTCFullYear(l,0,s.firstWeekContainsDate),a.setUTCHours(0,0,0,0),ot(a,s)}var f=!("era"in i)||i.era===1?o.year:1-o.year;return a.setUTCFullYear(f,0,s.firstWeekContainsDate),a.setUTCHours(0,0,0,0),ot(a,s)}}]),r}(ve),ef=function(e){le(r,e);var t=fe(r);function r(){var n;ae(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),I(j(n),"priority",130),I(j(n),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),n}return oe(r,[{key:"parse",value:function(a,i){return Xt(i==="R"?4:i.length,a)}},{key:"set",value:function(a,i,o){var s=new Date(0);return s.setUTCFullYear(o,0,4),s.setUTCHours(0,0,0,0),gt(s)}}]),r}(ve),tf=function(e){le(r,e);var t=fe(r);function r(){var n;ae(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),I(j(n),"priority",130),I(j(n),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),n}return oe(r,[{key:"parse",value:function(a,i){return Xt(i==="u"?4:i.length,a)}},{key:"set",value:function(a,i,o){return a.setUTCFullYear(o,0,1),a.setUTCHours(0,0,0,0),a}}]),r}(ve),rf=function(e){le(r,e);var t=fe(r);function r(){var n;ae(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),I(j(n),"priority",120),I(j(n),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),n}return oe(r,[{key:"parse",value:function(a,i,o){switch(i){case"Q":case"QQ":return Ce(i.length,a);case"Qo":return o.ordinalNumber(a,{unit:"quarter"});case"QQQ":return o.quarter(a,{width:"abbreviated",context:"formatting"})||o.quarter(a,{width:"narrow",context:"formatting"});case"QQQQQ":return o.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return o.quarter(a,{width:"wide",context:"formatting"})||o.quarter(a,{width:"abbreviated",context:"formatting"})||o.quarter(a,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(a,i){return i>=1&&i<=4}},{key:"set",value:function(a,i,o){return a.setUTCMonth((o-1)*3,1),a.setUTCHours(0,0,0,0),a}}]),r}(ve),nf=function(e){le(r,e);var t=fe(r);function r(){var n;ae(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),I(j(n),"priority",120),I(j(n),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),n}return oe(r,[{key:"parse",value:function(a,i,o){switch(i){case"q":case"qq":return Ce(i.length,a);case"qo":return o.ordinalNumber(a,{unit:"quarter"});case"qqq":return o.quarter(a,{width:"abbreviated",context:"standalone"})||o.quarter(a,{width:"narrow",context:"standalone"});case"qqqqq":return o.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return o.quarter(a,{width:"wide",context:"standalone"})||o.quarter(a,{width:"abbreviated",context:"standalone"})||o.quarter(a,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(a,i){return i>=1&&i<=4}},{key:"set",value:function(a,i,o){return a.setUTCMonth((o-1)*3,1),a.setUTCHours(0,0,0,0),a}}]),r}(ve),af=function(e){le(r,e);var t=fe(r);function r(){var n;ae(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),I(j(n),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),I(j(n),"priority",110),n}return oe(r,[{key:"parse",value:function(a,i,o){var s=function(l){return l-1};switch(i){case"M":return Ie(Se(Ne.month,a),s);case"MM":return Ie(Ce(2,a),s);case"Mo":return Ie(o.ordinalNumber(a,{unit:"month"}),s);case"MMM":return o.month(a,{width:"abbreviated",context:"formatting"})||o.month(a,{width:"narrow",context:"formatting"});case"MMMMM":return o.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return o.month(a,{width:"wide",context:"formatting"})||o.month(a,{width:"abbreviated",context:"formatting"})||o.month(a,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(a,i){return i>=0&&i<=11}},{key:"set",value:function(a,i,o){return a.setUTCMonth(o,1),a.setUTCHours(0,0,0,0),a}}]),r}(ve),of=function(e){le(r,e);var t=fe(r);function r(){var n;ae(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),I(j(n),"priority",110),I(j(n),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),n}return oe(r,[{key:"parse",value:function(a,i,o){var s=function(l){return l-1};switch(i){case"L":return Ie(Se(Ne.month,a),s);case"LL":return Ie(Ce(2,a),s);case"Lo":return Ie(o.ordinalNumber(a,{unit:"month"}),s);case"LLL":return o.month(a,{width:"abbreviated",context:"standalone"})||o.month(a,{width:"narrow",context:"standalone"});case"LLLLL":return o.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return o.month(a,{width:"wide",context:"standalone"})||o.month(a,{width:"abbreviated",context:"standalone"})||o.month(a,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(a,i){return i>=0&&i<=11}},{key:"set",value:function(a,i,o){return a.setUTCMonth(o,1),a.setUTCHours(0,0,0,0),a}}]),r}(ve);function sf(e,t,r){re(2,arguments);var n=pe(e),a=Oe(t),i=Qc(n,r)-a;return n.setUTCDate(n.getUTCDate()-i*7),n}var uf=function(e){le(r,e);var t=fe(r);function r(){var n;ae(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),I(j(n),"priority",100),I(j(n),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),n}return oe(r,[{key:"parse",value:function(a,i,o){switch(i){case"w":return Se(Ne.week,a);case"wo":return o.ordinalNumber(a,{unit:"week"});default:return Ce(i.length,a)}}},{key:"validate",value:function(a,i){return i>=1&&i<=53}},{key:"set",value:function(a,i,o,s){return ot(sf(a,o,s),s)}}]),r}(ve);function cf(e,t){re(2,arguments);var r=pe(e),n=Oe(t),a=Bc(r)-n;return r.setUTCDate(r.getUTCDate()-a*7),r}var lf=function(e){le(r,e);var t=fe(r);function r(){var n;ae(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),I(j(n),"priority",100),I(j(n),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),n}return oe(r,[{key:"parse",value:function(a,i,o){switch(i){case"I":return Se(Ne.week,a);case"Io":return o.ordinalNumber(a,{unit:"week"});default:return Ce(i.length,a)}}},{key:"validate",value:function(a,i){return i>=1&&i<=53}},{key:"set",value:function(a,i,o){return gt(cf(a,o))}}]),r}(ve),ff=[31,28,31,30,31,30,31,31,30,31,30,31],df=[31,29,31,30,31,30,31,31,30,31,30,31],hf=function(e){le(r,e);var t=fe(r);function r(){var n;ae(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),I(j(n),"priority",90),I(j(n),"subPriority",1),I(j(n),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),n}return oe(r,[{key:"parse",value:function(a,i,o){switch(i){case"d":return Se(Ne.date,a);case"do":return o.ordinalNumber(a,{unit:"date"});default:return Ce(i.length,a)}}},{key:"validate",value:function(a,i){var o=a.getUTCFullYear(),s=Ea(o),u=a.getUTCMonth();return s?i>=1&&i<=df[u]:i>=1&&i<=ff[u]}},{key:"set",value:function(a,i,o){return a.setUTCDate(o),a.setUTCHours(0,0,0,0),a}}]),r}(ve),pf=function(e){le(r,e);var t=fe(r);function r(){var n;ae(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),I(j(n),"priority",90),I(j(n),"subpriority",1),I(j(n),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),n}return oe(r,[{key:"parse",value:function(a,i,o){switch(i){case"D":case"DD":return Se(Ne.dayOfYear,a);case"Do":return o.ordinalNumber(a,{unit:"date"});default:return Ce(i.length,a)}}},{key:"validate",value:function(a,i){var o=a.getUTCFullYear(),s=Ea(o);return s?i>=1&&i<=366:i>=1&&i<=365}},{key:"set",value:function(a,i,o){return a.setUTCMonth(0,o),a.setUTCHours(0,0,0,0),a}}]),r}(ve);function Wr(e,t,r){var n,a,i,o,s,u,l,f;re(2,arguments);var h=kt(),w=Oe((n=(a=(i=(o=r==null?void 0:r.weekStartsOn)!==null&&o!==void 0?o:r==null||(s=r.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&i!==void 0?i:h.weekStartsOn)!==null&&a!==void 0?a:(l=h.locale)===null||l===void 0||(f=l.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&n!==void 0?n:0);if(!(w>=0&&w<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=pe(e),E=Oe(t),D=g.getUTCDay(),x=E%7,R=(x+7)%7,H=(R<w?7:0)+E-D;return g.setUTCDate(g.getUTCDate()+H),g}var vf=function(e){le(r,e);var t=fe(r);function r(){var n;ae(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),I(j(n),"priority",90),I(j(n),"incompatibleTokens",["D","i","e","c","t","T"]),n}return oe(r,[{key:"parse",value:function(a,i,o){switch(i){case"E":case"EE":case"EEE":return o.day(a,{width:"abbreviated",context:"formatting"})||o.day(a,{width:"short",context:"formatting"})||o.day(a,{width:"narrow",context:"formatting"});case"EEEEE":return o.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(a,{width:"short",context:"formatting"})||o.day(a,{width:"narrow",context:"formatting"});case"EEEE":default:return o.day(a,{width:"wide",context:"formatting"})||o.day(a,{width:"abbreviated",context:"formatting"})||o.day(a,{width:"short",context:"formatting"})||o.day(a,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(a,i){return i>=0&&i<=6}},{key:"set",value:function(a,i,o,s){return a=Wr(a,o,s),a.setUTCHours(0,0,0,0),a}}]),r}(ve),mf=function(e){le(r,e);var t=fe(r);function r(){var n;ae(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),I(j(n),"priority",90),I(j(n),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),n}return oe(r,[{key:"parse",value:function(a,i,o,s){var u=function(f){var h=Math.floor((f-1)/7)*7;return(f+s.weekStartsOn+6)%7+h};switch(i){case"e":case"ee":return Ie(Ce(i.length,a),u);case"eo":return Ie(o.ordinalNumber(a,{unit:"day"}),u);case"eee":return o.day(a,{width:"abbreviated",context:"formatting"})||o.day(a,{width:"short",context:"formatting"})||o.day(a,{width:"narrow",context:"formatting"});case"eeeee":return o.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return o.day(a,{width:"short",context:"formatting"})||o.day(a,{width:"narrow",context:"formatting"});case"eeee":default:return o.day(a,{width:"wide",context:"formatting"})||o.day(a,{width:"abbreviated",context:"formatting"})||o.day(a,{width:"short",context:"formatting"})||o.day(a,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(a,i){return i>=0&&i<=6}},{key:"set",value:function(a,i,o,s){return a=Wr(a,o,s),a.setUTCHours(0,0,0,0),a}}]),r}(ve),gf=function(e){le(r,e);var t=fe(r);function r(){var n;ae(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),I(j(n),"priority",90),I(j(n),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),n}return oe(r,[{key:"parse",value:function(a,i,o,s){var u=function(f){var h=Math.floor((f-1)/7)*7;return(f+s.weekStartsOn+6)%7+h};switch(i){case"c":case"cc":return Ie(Ce(i.length,a),u);case"co":return Ie(o.ordinalNumber(a,{unit:"day"}),u);case"ccc":return o.day(a,{width:"abbreviated",context:"standalone"})||o.day(a,{width:"short",context:"standalone"})||o.day(a,{width:"narrow",context:"standalone"});case"ccccc":return o.day(a,{width:"narrow",context:"standalone"});case"cccccc":return o.day(a,{width:"short",context:"standalone"})||o.day(a,{width:"narrow",context:"standalone"});case"cccc":default:return o.day(a,{width:"wide",context:"standalone"})||o.day(a,{width:"abbreviated",context:"standalone"})||o.day(a,{width:"short",context:"standalone"})||o.day(a,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(a,i){return i>=0&&i<=6}},{key:"set",value:function(a,i,o,s){return a=Wr(a,o,s),a.setUTCHours(0,0,0,0),a}}]),r}(ve);function yf(e,t){re(2,arguments);var r=Oe(t);r%7===0&&(r=r-7);var n=1,a=pe(e),i=a.getUTCDay(),o=r%7,s=(o+7)%7,u=(s<n?7:0)+r-i;return a.setUTCDate(a.getUTCDate()+u),a}var bf=function(e){le(r,e);var t=fe(r);function r(){var n;ae(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),I(j(n),"priority",90),I(j(n),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),n}return oe(r,[{key:"parse",value:function(a,i,o){var s=function(l){return l===0?7:l};switch(i){case"i":case"ii":return Ce(i.length,a);case"io":return o.ordinalNumber(a,{unit:"day"});case"iii":return Ie(o.day(a,{width:"abbreviated",context:"formatting"})||o.day(a,{width:"short",context:"formatting"})||o.day(a,{width:"narrow",context:"formatting"}),s);case"iiiii":return Ie(o.day(a,{width:"narrow",context:"formatting"}),s);case"iiiiii":return Ie(o.day(a,{width:"short",context:"formatting"})||o.day(a,{width:"narrow",context:"formatting"}),s);case"iiii":default:return Ie(o.day(a,{width:"wide",context:"formatting"})||o.day(a,{width:"abbreviated",context:"formatting"})||o.day(a,{width:"short",context:"formatting"})||o.day(a,{width:"narrow",context:"formatting"}),s)}}},{key:"validate",value:function(a,i){return i>=1&&i<=7}},{key:"set",value:function(a,i,o){return a=yf(a,o),a.setUTCHours(0,0,0,0),a}}]),r}(ve),wf=function(e){le(r,e);var t=fe(r);function r(){var n;ae(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),I(j(n),"priority",80),I(j(n),"incompatibleTokens",["b","B","H","k","t","T"]),n}return oe(r,[{key:"parse",value:function(a,i,o){switch(i){case"a":case"aa":case"aaa":return o.dayPeriod(a,{width:"abbreviated",context:"formatting"})||o.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaaa":return o.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return o.dayPeriod(a,{width:"wide",context:"formatting"})||o.dayPeriod(a,{width:"abbreviated",context:"formatting"})||o.dayPeriod(a,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(a,i,o){return a.setUTCHours(Hr(o),0,0,0),a}}]),r}(ve),Tf=function(e){le(r,e);var t=fe(r);function r(){var n;ae(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),I(j(n),"priority",80),I(j(n),"incompatibleTokens",["a","B","H","k","t","T"]),n}return oe(r,[{key:"parse",value:function(a,i,o){switch(i){case"b":case"bb":case"bbb":return o.dayPeriod(a,{width:"abbreviated",context:"formatting"})||o.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbbb":return o.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return o.dayPeriod(a,{width:"wide",context:"formatting"})||o.dayPeriod(a,{width:"abbreviated",context:"formatting"})||o.dayPeriod(a,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(a,i,o){return a.setUTCHours(Hr(o),0,0,0),a}}]),r}(ve),xf=function(e){le(r,e);var t=fe(r);function r(){var n;ae(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),I(j(n),"priority",80),I(j(n),"incompatibleTokens",["a","b","t","T"]),n}return oe(r,[{key:"parse",value:function(a,i,o){switch(i){case"B":case"BB":case"BBB":return o.dayPeriod(a,{width:"abbreviated",context:"formatting"})||o.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBBB":return o.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return o.dayPeriod(a,{width:"wide",context:"formatting"})||o.dayPeriod(a,{width:"abbreviated",context:"formatting"})||o.dayPeriod(a,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(a,i,o){return a.setUTCHours(Hr(o),0,0,0),a}}]),r}(ve),Pf=function(e){le(r,e);var t=fe(r);function r(){var n;ae(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),I(j(n),"priority",70),I(j(n),"incompatibleTokens",["H","K","k","t","T"]),n}return oe(r,[{key:"parse",value:function(a,i,o){switch(i){case"h":return Se(Ne.hour12h,a);case"ho":return o.ordinalNumber(a,{unit:"hour"});default:return Ce(i.length,a)}}},{key:"validate",value:function(a,i){return i>=1&&i<=12}},{key:"set",value:function(a,i,o){var s=a.getUTCHours()>=12;return s&&o<12?a.setUTCHours(o+12,0,0,0):!s&&o===12?a.setUTCHours(0,0,0,0):a.setUTCHours(o,0,0,0),a}}]),r}(ve),Ef=function(e){le(r,e);var t=fe(r);function r(){var n;ae(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),I(j(n),"priority",70),I(j(n),"incompatibleTokens",["a","b","h","K","k","t","T"]),n}return oe(r,[{key:"parse",value:function(a,i,o){switch(i){case"H":return Se(Ne.hour23h,a);case"Ho":return o.ordinalNumber(a,{unit:"hour"});default:return Ce(i.length,a)}}},{key:"validate",value:function(a,i){return i>=0&&i<=23}},{key:"set",value:function(a,i,o){return a.setUTCHours(o,0,0,0),a}}]),r}(ve),Sf=function(e){le(r,e);var t=fe(r);function r(){var n;ae(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),I(j(n),"priority",70),I(j(n),"incompatibleTokens",["h","H","k","t","T"]),n}return oe(r,[{key:"parse",value:function(a,i,o){switch(i){case"K":return Se(Ne.hour11h,a);case"Ko":return o.ordinalNumber(a,{unit:"hour"});default:return Ce(i.length,a)}}},{key:"validate",value:function(a,i){return i>=0&&i<=11}},{key:"set",value:function(a,i,o){var s=a.getUTCHours()>=12;return s&&o<12?a.setUTCHours(o+12,0,0,0):a.setUTCHours(o,0,0,0),a}}]),r}(ve),Cf=function(e){le(r,e);var t=fe(r);function r(){var n;ae(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),I(j(n),"priority",70),I(j(n),"incompatibleTokens",["a","b","h","H","K","t","T"]),n}return oe(r,[{key:"parse",value:function(a,i,o){switch(i){case"k":return Se(Ne.hour24h,a);case"ko":return o.ordinalNumber(a,{unit:"hour"});default:return Ce(i.length,a)}}},{key:"validate",value:function(a,i){return i>=1&&i<=24}},{key:"set",value:function(a,i,o){var s=o<=24?o%24:o;return a.setUTCHours(s,0,0,0),a}}]),r}(ve),Df=function(e){le(r,e);var t=fe(r);function r(){var n;ae(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),I(j(n),"priority",60),I(j(n),"incompatibleTokens",["t","T"]),n}return oe(r,[{key:"parse",value:function(a,i,o){switch(i){case"m":return Se(Ne.minute,a);case"mo":return o.ordinalNumber(a,{unit:"minute"});default:return Ce(i.length,a)}}},{key:"validate",value:function(a,i){return i>=0&&i<=59}},{key:"set",value:function(a,i,o){return a.setUTCMinutes(o,0,0),a}}]),r}(ve),Of=function(e){le(r,e);var t=fe(r);function r(){var n;ae(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),I(j(n),"priority",50),I(j(n),"incompatibleTokens",["t","T"]),n}return oe(r,[{key:"parse",value:function(a,i,o){switch(i){case"s":return Se(Ne.second,a);case"so":return o.ordinalNumber(a,{unit:"second"});default:return Ce(i.length,a)}}},{key:"validate",value:function(a,i){return i>=0&&i<=59}},{key:"set",value:function(a,i,o){return a.setUTCSeconds(o,0),a}}]),r}(ve),Nf=function(e){le(r,e);var t=fe(r);function r(){var n;ae(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),I(j(n),"priority",30),I(j(n),"incompatibleTokens",["t","T"]),n}return oe(r,[{key:"parse",value:function(a,i){var o=function(u){return Math.floor(u*Math.pow(10,-i.length+3))};return Ie(Ce(i.length,a),o)}},{key:"set",value:function(a,i,o){return a.setUTCMilliseconds(o),a}}]),r}(ve),If=function(e){le(r,e);var t=fe(r);function r(){var n;ae(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),I(j(n),"priority",10),I(j(n),"incompatibleTokens",["t","T","x"]),n}return oe(r,[{key:"parse",value:function(a,i){switch(i){case"X":return Ve(We.basicOptionalMinutes,a);case"XX":return Ve(We.basic,a);case"XXXX":return Ve(We.basicOptionalSeconds,a);case"XXXXX":return Ve(We.extendedOptionalSeconds,a);case"XXX":default:return Ve(We.extended,a)}}},{key:"set",value:function(a,i,o){return i.timestampIsSet?a:new Date(a.getTime()-o)}}]),r}(ve),_f=function(e){le(r,e);var t=fe(r);function r(){var n;ae(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),I(j(n),"priority",10),I(j(n),"incompatibleTokens",["t","T","X"]),n}return oe(r,[{key:"parse",value:function(a,i){switch(i){case"x":return Ve(We.basicOptionalMinutes,a);case"xx":return Ve(We.basic,a);case"xxxx":return Ve(We.basicOptionalSeconds,a);case"xxxxx":return Ve(We.extendedOptionalSeconds,a);case"xxx":default:return Ve(We.extended,a)}}},{key:"set",value:function(a,i,o){return i.timestampIsSet?a:new Date(a.getTime()-o)}}]),r}(ve),Mf=function(e){le(r,e);var t=fe(r);function r(){var n;ae(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),I(j(n),"priority",40),I(j(n),"incompatibleTokens","*"),n}return oe(r,[{key:"parse",value:function(a){return xa(a)}},{key:"set",value:function(a,i,o){return[new Date(o*1e3),{timestampIsSet:!0}]}}]),r}(ve),Rf=function(e){le(r,e);var t=fe(r);function r(){var n;ae(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),I(j(n),"priority",20),I(j(n),"incompatibleTokens","*"),n}return oe(r,[{key:"parse",value:function(a){return xa(a)}},{key:"set",value:function(a,i,o){return[new Date(o),{timestampIsSet:!0}]}}]),r}(ve),kf={G:new Xl,y:new Zl,Y:new Jl,R:new ef,u:new tf,Q:new rf,q:new nf,M:new af,L:new of,w:new uf,I:new lf,d:new hf,D:new pf,E:new vf,e:new mf,c:new gf,i:new bf,a:new wf,b:new Tf,B:new xf,h:new Pf,H:new Ef,K:new Sf,k:new Cf,m:new Df,s:new Of,S:new Nf,X:new If,x:new _f,t:new Mf,T:new Rf},jf=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Lf=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Af=/^'([^]*?)'?$/,Ff=/''/g,$f=/\S/,Yf=/[a-zA-Z]/;function ze(e,t,r,n){var a,i,o,s,u,l,f,h,w,g,E,D,x,R,H,G,V,y;re(3,arguments);var U=String(e),ee=String(t),Q=kt(),X=(a=(i=n==null?void 0:n.locale)!==null&&i!==void 0?i:Q.locale)!==null&&a!==void 0?a:Yl;if(!X.match)throw new RangeError("locale must contain match property");var ue=Oe((o=(s=(u=(l=n==null?void 0:n.firstWeekContainsDate)!==null&&l!==void 0?l:n==null||(f=n.locale)===null||f===void 0||(h=f.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&u!==void 0?u:Q.firstWeekContainsDate)!==null&&s!==void 0?s:(w=Q.locale)===null||w===void 0||(g=w.options)===null||g===void 0?void 0:g.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(ue>=1&&ue<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var ie=Oe((E=(D=(x=(R=n==null?void 0:n.weekStartsOn)!==null&&R!==void 0?R:n==null||(H=n.locale)===null||H===void 0||(G=H.options)===null||G===void 0?void 0:G.weekStartsOn)!==null&&x!==void 0?x:Q.weekStartsOn)!==null&&D!==void 0?D:(V=Q.locale)===null||V===void 0||(y=V.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&E!==void 0?E:0);if(!(ie>=0&&ie<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(ee==="")return U===""?pe(r):new Date(NaN);var se={firstWeekContainsDate:ue,weekStartsOn:ie,locale:X},T=[new Ql],W=ee.match(Lf).map(function(_){var M=_[0];if(M in pa){var $=pa[M];return $(_,X.formatLong)}return _}).join("").match(jf),q=[],F=ya(W),te;try{var A=function(){var M=te.value;!(n!=null&&n.useAdditionalWeekYearTokens)&&rl(M)&&va(M,ee,e),!(n!=null&&n.useAdditionalDayOfYearTokens)&&tl(M)&&va(M,ee,e);var $=M[0],Pe=kf[$];if(Pe){var S=Pe.incompatibleTokens;if(Array.isArray(S)){var ke=q.find(function($e){return S.includes($e.token)||$e.token===$});if(ke)throw new RangeError("The format string mustn't contain `".concat(ke.fullToken,"` and `").concat(M,"` at the same time"))}else if(Pe.incompatibleTokens==="*"&&q.length>0)throw new RangeError("The format string mustn't contain `".concat(M,"` and any other token at the same time"));q.push({token:$,fullToken:M});var Fe=Pe.run(U,M,X.match,se);if(!Fe)return{v:new Date(NaN)};T.push(Fe.setter),U=Fe.rest}else{if($.match(Yf))throw new RangeError("Format string contains an unescaped latin alphabet character `"+$+"`");if(M==="''"?M="'":$==="'"&&(M=Uf(M)),U.indexOf(M)===0)U=U.slice(M.length);else return{v:new Date(NaN)}}};for(F.s();!(te=F.n()).done;){var de=A();if(Je(de)==="object")return de.v}}catch(_){F.e(_)}finally{F.f()}if(U.length>0&&$f.test(U))return new Date(NaN);var v=T.map(function(_){return _.priority}).sort(function(_,M){return M-_}).filter(function(_,M,$){return $.indexOf(_)===M}).map(function(_){return T.filter(function(M){return M.priority===_}).sort(function(M,$){return $.subPriority-M.subPriority})}).map(function(_){return _[0]}),P=pe(r);if(isNaN(P.getTime()))return new Date(NaN);var d=Wc(P,Fc(P)),C={},L=ya(v),z;try{for(L.s();!(z=L.n()).done;){var O=z.value;if(!O.validate(d,se))return new Date(NaN);var k=O.set(d,C,se);Array.isArray(k)?(d=k[0],Ul(C,k[1])):d=k}}catch(_){L.e(_)}finally{L.f()}return d}function Uf(e){return e.match(Af)[1].replace(Ff,"'")}function Hf(e){return re(1,arguments),ca(e,Date.now())}function Wf(e,t){re(2,arguments);var r=Oe(t);return Bt(e,-r)}function Vf(e,t){re(2,arguments);var r=t-Ur(e);return r<=0&&(r+=7),Bt(e,r)}function zf(e,t){var r;re(1,arguments);var n=Oe((r=t==null?void 0:t.additionalDigits)!==null&&r!==void 0?r:2);if(n!==2&&n!==1&&n!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var a=Kf(e),i;if(a.date){var o=Qf(a.date,n);i=Xf(o.restDateString,o.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);var s=i.getTime(),u=0,l;if(a.time&&(u=Zf(a.time),isNaN(u)))return new Date(NaN);if(a.timezone){if(l=Jf(a.timezone),isNaN(l))return new Date(NaN)}else{var f=new Date(s+u),h=new Date(0);return h.setFullYear(f.getUTCFullYear(),f.getUTCMonth(),f.getUTCDate()),h.setHours(f.getUTCHours(),f.getUTCMinutes(),f.getUTCSeconds(),f.getUTCMilliseconds()),h}return new Date(s+u+l)}var Zt={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},qf=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Bf=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Gf=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Kf(e){var t={},r=e.split(Zt.dateTimeDelimiter),n;if(r.length>2)return t;if(/:/.test(r[0])?n=r[0]:(t.date=r[0],n=r[1],Zt.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Zt.timeZoneDelimiter)[0],n=e.substr(t.date.length,e.length))),n){var a=Zt.timezone.exec(n);a?(t.time=n.replace(a[1],""),t.timezone=a[1]):t.time=n}return t}function Qf(e,t){var r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),n=e.match(r);if(!n)return{year:NaN,restDateString:""};var a=n[1]?parseInt(n[1]):null,i=n[2]?parseInt(n[2]):null;return{year:i===null?a:i*100,restDateString:e.slice((n[1]||n[2]).length)}}function Xf(e,t){if(t===null)return new Date(NaN);var r=e.match(qf);if(!r)return new Date(NaN);var n=!!r[4],a=At(r[1]),i=At(r[2])-1,o=At(r[3]),s=At(r[4]),u=At(r[5])-1;if(n)return ad(t,s,u)?ed(t,s,u):new Date(NaN);var l=new Date(0);return!rd(t,i,o)||!nd(t,a)?new Date(NaN):(l.setUTCFullYear(t,i,Math.max(a,o)),l)}function At(e){return e?parseInt(e):1}function Zf(e){var t=e.match(Bf);if(!t)return NaN;var r=Vr(t[1]),n=Vr(t[2]),a=Vr(t[3]);return od(r,n,a)?r*$r+n*Fr+a*1e3:NaN}function Vr(e){return e&&parseFloat(e.replace(",","."))||0}function Jf(e){if(e==="Z")return 0;var t=e.match(Gf);if(!t)return 0;var r=t[1]==="+"?-1:1,n=parseInt(t[2]),a=t[3]&&parseInt(t[3])||0;return id(n,a)?r*(n*$r+a*Fr):NaN}function ed(e,t,r){var n=new Date(0);n.setUTCFullYear(e,0,4);var a=n.getUTCDay()||7,i=(t-1)*7+r+1-a;return n.setUTCDate(n.getUTCDate()+i),n}var td=[31,null,31,30,31,30,31,31,30,31,30,31];function Sa(e){return e%400===0||e%4===0&&e%100!==0}function rd(e,t,r){return t>=0&&t<=11&&r>=1&&r<=(td[t]||(Sa(e)?29:28))}function nd(e,t){return t>=1&&t<=(Sa(e)?366:365)}function ad(e,t,r){return t>=1&&t<=53&&r>=0&&r<=6}function od(e,t,r){return e===24?t===0&&r===0:r>=0&&r<60&&t>=0&&t<60&&e>=0&&e<25}function id(e,t){return t>=0&&t<=59}function sd(e,t){re(2,arguments);var r=pe(e),n=Oe(t),a=r.getFullYear(),i=r.getDate(),o=new Date(0);o.setFullYear(a,n,15),o.setHours(0,0,0,0);var s=ma(o);return r.setMonth(n,Math.min(i,s)),r}function ud(e,t){re(2,arguments);var r=pe(e),n=Oe(t);return isNaN(r.getTime())?new Date(NaN):(r.setFullYear(n),r)}function Ca(e,t){re(2,arguments);var r=Oe(t);return at(e,-r)}function Da(e,t){re(2,arguments);var r=Oe(t);return Gt(e,-r)}function Oa(){return window.navigator.languages?window.navigator.languages[0]:window.navigator.language}function cd(e,t,r){const n=[];for(let a=e;a<=t;a++)n.push(r?r(a):a);return n}function ld(e,t){const r=e.target;return r?!t.isSameNode(r)&&!t.contains(r):!1}function fd(e,t){return e.isSameNode(t)||e.contains(t)}function dd(e,t){const r=Object.entries(t),n=getComputedStyle(e);for(let a=0,i=r.length;a<i;a++){const[o,s]=r[a];if(typeof s=="string"&&s.indexOf(",")>-1){if(!s.split(",").map(l=>l.trim()).includes(n[o]))return!1}else if(n[o]!==s)return!1}return!0}function hd(e,t){const r=Object.entries(t),n=getComputedStyle(e);for(let a=0,i=r.length;a<i;a++){const[o,s]=r[a];if(typeof s=="string"&&s.indexOf(",")>-1){if(s.split(",").map(l=>l.trim()).includes(n[o]))return!0}else if(n[o]===s)return!0}return!1}function Na(e,t,r=!1){return r&&dd(e,t)||!r&&hd(e,t)?e:e.parentElement?Na(e.parentElement,t):e}function pd(e,t){const r=Array.from(document.querySelectorAll("body *")),n=[];for(let a=0,i=r.length;a<i;a++){const o=getComputedStyle(r[a]);o[e]&&t(o[e])&&n.push(o[e])}return n}function ap(e){return e}function vd(e){const t=document.documentElement;Object.keys(e).forEach(r=>{t.style.setProperty(r,e[r])})}function md(e,t,r,n,a,i,o,s,u,l,f,h,w,g,E,D,x,R,H,G){return{"--theme-bsc-primary-1":e,"--theme-bsc-primary-2":t,"--theme-bsc-primary-3":r,"--theme-bsc-primary-4":n,"--theme-bsc-primary-5":a,"--theme-bsc-gray-1":i,"--theme-bsc-gray-2":o,"--theme-bsc-gray-3":s,"--theme-bsc-gray-4":u,"--theme-bsc-gray-5":l,"--theme-bsc-mono-dark-1":f,"--theme-bsc-mono-dark-2":h,"--theme-bsc-mono-dark-3":w,"--theme-bsc-mono-light-1":g,"--theme-bsc-mono-light-2":E,"--theme-bsc-mono-light-3":D,"--theme-bsc-info":x,"--theme-bsc-success":R,"--theme-bsc-warning":H,"--theme-bsc-error":G}}const zr=({template:e,props:t,children:r})=>e(t,r);var gd=p;function yd(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var Jt=yd(gd),bd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wd=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},Ia=function(t){var r=t.color,n=r===void 0?"currentColor":r,a=t.size,i=a===void 0?24:a;t.children;var o=wd(t,["color","size","children"]),s="remixicon-icon "+(o.className||"");return Jt.default.createElement("svg",bd({},o,{className:s,width:i,height:i,fill:n,viewBox:"0 0 24 24"}),Jt.default.createElement("path",{d:"M10.828 12l4.95 4.95-1.414 1.414L8 12l6.364-6.364 1.414 1.414z"}))},Td=Jt.default.memo?Jt.default.memo(Ia):Ia,xd=Td;const Pd=Xe(xd);var Ed=p;function Sd(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var er=Sd(Ed),Cd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Dd=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},_a=function(t){var r=t.color,n=r===void 0?"currentColor":r,a=t.size,i=a===void 0?24:a;t.children;var o=Dd(t,["color","size","children"]),s="remixicon-icon "+(o.className||"");return er.default.createElement("svg",Cd({},o,{className:s,width:i,height:i,fill:n,viewBox:"0 0 24 24"}),er.default.createElement("path",{d:"M13.172 12l-4.95-4.95 1.414-1.414L16 12l-6.364 6.364-1.414-1.414z"}))},Od=er.default.memo?er.default.memo(_a):_a,Nd=Od;const Id=Xe(Nd);var _d=p;function Md(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var tr=Md(_d),Rd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},kd=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},Ma=function(t){var r=t.color,n=r===void 0?"currentColor":r,a=t.size,i=a===void 0?24:a;t.children;var o=kd(t,["color","size","children"]),s="remixicon-icon "+(o.className||"");return tr.default.createElement("svg",Rd({},o,{className:s,width:i,height:i,fill:n,viewBox:"0 0 24 24"}),tr.default.createElement("path",{d:"M12 10.586l4.95-4.95 1.414 1.414-4.95 4.95 4.95 4.95-1.414 1.414-4.95-4.95-4.95 4.95-1.414-1.414 4.95-4.95-4.95-4.95L7.05 5.636z"}))},jd=tr.default.memo?tr.default.memo(Ma):Ma,Ld=jd;const Ra=Xe(Ld);var Ad=p;function Fd(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var rr=Fd(Ad),$d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Yd=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},ka=function(t){var r=t.color,n=r===void 0?"currentColor":r,a=t.size,i=a===void 0?24:a;t.children;var o=Yd(t,["color","size","children"]),s="remixicon-icon "+(o.className||"");return rr.default.createElement("svg",$d({},o,{className:s,width:i,height:i,fill:n,viewBox:"0 0 24 24"}),rr.default.createElement("path",{d:"M17 3h4a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h4V1h2v2h6V1h2v2zm3 8H4v8h16v-8zm-5-6H9v2H7V5H4v4h16V5h-3v2h-2V5zm-9 8h2v2H6v-2zm5 0h2v2h-2v-2zm5 0h2v2h-2v-2z"}))},Ud=rr.default.memo?rr.default.memo(ka):ka,Hd=Ud;const ja=Xe(Hd);var Wd=p;function Vd(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var nr=Vd(Wd),zd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qd=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},La=function(t){var r=t.color,n=r===void 0?"currentColor":r,a=t.size,i=a===void 0?24:a;t.children;var o=qd(t,["color","size","children"]),s="remixicon-icon "+(o.className||"");return nr.default.createElement("svg",zd({},o,{className:s,width:i,height:i,fill:n,viewBox:"0 0 24 24"}),nr.default.createElement("path",{d:"M12 10.828l-4.95 4.95-1.414-1.414L12 8l6.364 6.364-1.414 1.414z"}))},Bd=nr.default.memo?nr.default.memo(La):La,Gd=Bd;const qr=Xe(Gd);var Kd=p;function Qd(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var ar=Qd(Kd),Xd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zd=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},Aa=function(t){var r=t.color,n=r===void 0?"currentColor":r,a=t.size,i=a===void 0?24:a;t.children;var o=Zd(t,["color","size","children"]),s="remixicon-icon "+(o.className||"");return ar.default.createElement("svg",Xd({},o,{className:s,width:i,height:i,fill:n,viewBox:"0 0 24 24"}),ar.default.createElement("path",{d:"M12 13.172l4.95-4.95 1.414 1.414L12 16 5.636 9.636 7.05 8.222z"}))},Jd=ar.default.memo?ar.default.memo(Aa):Aa,eh=Jd;const Br=Xe(eh);function th(e,t,r){const n=i=>{const o=i.target,s=e.style.display!=="hidden";e&&s&&!fd(e,o)&&!a(r,o)&&t(!1),t(!0)},a=(i,o)=>{if(!i)return!1;for(let s=0,u=i.length;s<u;s++)if(i[s].isSameNode(o)||i[s].contains(o))return!0;return!1};return document.addEventListener("mousedown",n),n}function rh(e){document.removeEventListener("mousedown",e)}function nh(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i<n.length;i++)a=n[i],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function ah(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Kt(e,t)}var Gr={exports:{}},or={exports:{}},ge={};/** @license React v16.13.1
31
+ */(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var n=[],a=0;a<arguments.length;a++){var i=arguments[a];if(i){var o=typeof i;if(o==="string"||o==="number")n.push(i);else if(Array.isArray(i)){if(i.length){var s=r.apply(null,i);s&&n.push(s)}}else if(o==="object"){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){n.push(i.toString());continue}for(var u in i)t.call(i,u)&&i[u]&&n.push(u)}}}return n.join(" ")}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(mn);var Io=mn.exports;const qe=Je(Io);var No=typeof global=="object"&&global&&global.Object===Object&&global;const vn=No;var _o=typeof self=="object"&&self&&self.Object===Object&&self,Mo=vn||_o||Function("return this")();const Ue=Mo;var jo=Ue.Symbol;const ht=jo;var gn=Object.prototype,ko=gn.hasOwnProperty,Ro=gn.toString,Mt=ht?ht.toStringTag:void 0;function Lo(e){var t=ko.call(e,Mt),r=e[Mt];try{e[Mt]=void 0;var n=!0}catch{}var a=Ro.call(e);return n&&(t?e[Mt]=r:delete e[Mt]),a}var Ao=Object.prototype,Fo=Ao.toString;function Yo(e){return Fo.call(e)}var $o="[object Null]",Uo="[object Undefined]",yn=ht?ht.toStringTag:void 0;function pt(e){return e==null?e===void 0?Uo:$o:yn&&yn in Object(e)?Lo(e):Yo(e)}function mt(e){return e!=null&&typeof e=="object"}var Ho="[object Symbol]";function Wo(e){return typeof e=="symbol"||mt(e)&&pt(e)==Ho}var Vo=Array.isArray;const Sr=Vo;var zo=/\s/;function Bo(e){for(var t=e.length;t--&&zo.test(e.charAt(t)););return t}var qo=/^\s+/;function Go(e){return e&&e.slice(0,Bo(e)+1).replace(qo,"")}function Ge(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var bn=0/0,Qo=/^[-+]0x[0-9a-f]+$/i,Ko=/^0b[01]+$/i,Zo=/^0o[0-7]+$/i,Xo=parseInt;function wn(e){if(typeof e=="number")return e;if(Wo(e))return bn;if(Ge(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ge(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Go(e);var r=Ko.test(e);return r||Zo.test(e)?Xo(e.slice(2),r?2:8):Qo.test(e)?bn:+e}var Jo="[object AsyncFunction]",ei="[object Function]",ti="[object GeneratorFunction]",ri="[object Proxy]";function Tn(e){if(!Ge(e))return!1;var t=pt(e);return t==ei||t==ti||t==Jo||t==ri}var ni=Ue["__core-js_shared__"];const Cr=ni;var xn=function(){var e=/[^.]+$/.exec(Cr&&Cr.keys&&Cr.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function ai(e){return!!xn&&xn in e}var oi=Function.prototype,ii=oi.toString;function rt(e){if(e!=null){try{return ii.call(e)}catch{}try{return e+""}catch{}}return""}var si=/[\\^$.*+?()[\]{}|]/g,ui=/^\[object .+?Constructor\]$/,ci=Function.prototype,li=Object.prototype,fi=ci.toString,di=li.hasOwnProperty,hi=RegExp("^"+fi.call(di).replace(si,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function pi(e){if(!Ge(e)||ai(e))return!1;var t=Tn(e)?hi:ui;return t.test(rt(e))}function mi(e,t){return e==null?void 0:e[t]}function nt(e,t){var r=mi(e,t);return pi(r)?r:void 0}var vi=nt(Ue,"WeakMap");const Dr=vi;var Pn=Object.create,gi=function(){function e(){}return function(t){if(!Ge(t))return{};if(Pn)return Pn(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();const yi=gi;function bi(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var wi=function(){try{var e=nt(Object,"defineProperty");return e({},"",{}),e}catch{}}();const En=wi;function Ti(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var xi=9007199254740991,Pi=/^(?:0|[1-9]\d*)$/;function Ei(e,t){var r=typeof e;return t=t??xi,!!t&&(r=="number"||r!="symbol"&&Pi.test(e))&&e>-1&&e%1==0&&e<t}function Sn(e,t,r){t=="__proto__"&&En?En(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Cn(e,t){return e===t||e!==e&&t!==t}var Si=Object.prototype,Ci=Si.hasOwnProperty;function Dn(e,t,r){var n=e[t];(!(Ci.call(e,t)&&Cn(n,r))||r===void 0&&!(t in e))&&Sn(e,t,r)}function zt(e,t,r,n){var a=!r;r||(r={});for(var i=-1,o=t.length;++i<o;){var s=t[i],u=n?n(r[s],e[s],s,r,e):void 0;u===void 0&&(u=e[s]),a?Sn(r,s,u):Dn(r,s,u)}return r}var Di=9007199254740991;function On(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Di}function In(e){return e!=null&&On(e.length)&&!Tn(e)}var Oi=Object.prototype;function Or(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Oi;return e===r}function Ii(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var Ni="[object Arguments]";function Nn(e){return mt(e)&&pt(e)==Ni}var _n=Object.prototype,_i=_n.hasOwnProperty,Mi=_n.propertyIsEnumerable,ji=Nn(function(){return arguments}())?Nn:function(e){return mt(e)&&_i.call(e,"callee")&&!Mi.call(e,"callee")};const ki=ji;function Ri(){return!1}var Mn=typeof de=="object"&&de&&!de.nodeType&&de,jn=Mn&&typeof module=="object"&&module&&!module.nodeType&&module,Li=jn&&jn.exports===Mn,kn=Li?Ue.Buffer:void 0,Ai=kn?kn.isBuffer:void 0,Fi=Ai||Ri;const Rn=Fi;var Yi="[object Arguments]",$i="[object Array]",Ui="[object Boolean]",Hi="[object Date]",Wi="[object Error]",Vi="[object Function]",zi="[object Map]",Bi="[object Number]",qi="[object Object]",Gi="[object RegExp]",Qi="[object Set]",Ki="[object String]",Zi="[object WeakMap]",Xi="[object ArrayBuffer]",Ji="[object DataView]",es="[object Float32Array]",ts="[object Float64Array]",rs="[object Int8Array]",ns="[object Int16Array]",as="[object Int32Array]",os="[object Uint8Array]",is="[object Uint8ClampedArray]",ss="[object Uint16Array]",us="[object Uint32Array]",Pe={};Pe[es]=Pe[ts]=Pe[rs]=Pe[ns]=Pe[as]=Pe[os]=Pe[is]=Pe[ss]=Pe[us]=!0,Pe[Yi]=Pe[$i]=Pe[Xi]=Pe[Ui]=Pe[Ji]=Pe[Hi]=Pe[Wi]=Pe[Vi]=Pe[zi]=Pe[Bi]=Pe[qi]=Pe[Gi]=Pe[Qi]=Pe[Ki]=Pe[Zi]=!1;function cs(e){return mt(e)&&On(e.length)&&!!Pe[pt(e)]}function Ir(e){return function(t){return e(t)}}var Ln=typeof de=="object"&&de&&!de.nodeType&&de,jt=Ln&&typeof module=="object"&&module&&!module.nodeType&&module,ls=jt&&jt.exports===Ln,Nr=ls&&vn.process,fs=function(){try{var e=jt&&jt.require&&jt.require("util").types;return e||Nr&&Nr.binding&&Nr.binding("util")}catch{}}();const vt=fs;var An=vt&&vt.isTypedArray,ds=An?Ir(An):cs;const hs=ds;var ps=Object.prototype,ms=ps.hasOwnProperty;function Fn(e,t){var r=Sr(e),n=!r&&ki(e),a=!r&&!n&&Rn(e),i=!r&&!n&&!a&&hs(e),o=r||n||a||i,s=o?Ii(e.length,String):[],u=s.length;for(var l in e)(t||ms.call(e,l))&&!(o&&(l=="length"||a&&(l=="offset"||l=="parent")||i&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||Ei(l,u)))&&s.push(l);return s}function Yn(e,t){return function(r){return e(t(r))}}var vs=Yn(Object.keys,Object);const gs=vs;var ys=Object.prototype,bs=ys.hasOwnProperty;function ws(e){if(!Or(e))return gs(e);var t=[];for(var r in Object(e))bs.call(e,r)&&r!="constructor"&&t.push(r);return t}function _r(e){return In(e)?Fn(e):ws(e)}function Ts(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var xs=Object.prototype,Ps=xs.hasOwnProperty;function Es(e){if(!Ge(e))return Ts(e);var t=Or(e),r=[];for(var n in e)n=="constructor"&&(t||!Ps.call(e,n))||r.push(n);return r}function Mr(e){return In(e)?Fn(e,!0):Es(e)}var Ss=nt(Object,"create");const kt=Ss;function Cs(){this.__data__=kt?kt(null):{},this.size=0}function Ds(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Os="__lodash_hash_undefined__",Is=Object.prototype,Ns=Is.hasOwnProperty;function _s(e){var t=this.__data__;if(kt){var r=t[e];return r===Os?void 0:r}return Ns.call(t,e)?t[e]:void 0}var Ms=Object.prototype,js=Ms.hasOwnProperty;function ks(e){var t=this.__data__;return kt?t[e]!==void 0:js.call(t,e)}var Rs="__lodash_hash_undefined__";function Ls(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=kt&&t===void 0?Rs:t,this}function at(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}at.prototype.clear=Cs,at.prototype.delete=Ds,at.prototype.get=_s,at.prototype.has=ks,at.prototype.set=Ls;function As(){this.__data__=[],this.size=0}function Bt(e,t){for(var r=e.length;r--;)if(Cn(e[r][0],t))return r;return-1}var Fs=Array.prototype,Ys=Fs.splice;function $s(e){var t=this.__data__,r=Bt(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Ys.call(t,r,1),--this.size,!0}function Us(e){var t=this.__data__,r=Bt(t,e);return r<0?void 0:t[r][1]}function Hs(e){return Bt(this.__data__,e)>-1}function Ws(e,t){var r=this.__data__,n=Bt(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function Qe(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Qe.prototype.clear=As,Qe.prototype.delete=$s,Qe.prototype.get=Us,Qe.prototype.has=Hs,Qe.prototype.set=Ws;var Vs=nt(Ue,"Map");const Rt=Vs;function zs(){this.size=0,this.__data__={hash:new at,map:new(Rt||Qe),string:new at}}function Bs(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function qt(e,t){var r=e.__data__;return Bs(t)?r[typeof t=="string"?"string":"hash"]:r.map}function qs(e){var t=qt(this,e).delete(e);return this.size-=t?1:0,t}function Gs(e){return qt(this,e).get(e)}function Qs(e){return qt(this,e).has(e)}function Ks(e,t){var r=qt(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function gt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}gt.prototype.clear=zs,gt.prototype.delete=qs,gt.prototype.get=Gs,gt.prototype.has=Qs,gt.prototype.set=Ks;function $n(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}var Zs=Yn(Object.getPrototypeOf,Object);const Un=Zs;function Xs(){this.__data__=new Qe,this.size=0}function Js(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function eu(e){return this.__data__.get(e)}function tu(e){return this.__data__.has(e)}var ru=200;function nu(e,t){var r=this.__data__;if(r instanceof Qe){var n=r.__data__;if(!Rt||n.length<ru-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new gt(n)}return r.set(e,t),this.size=r.size,this}function yt(e){var t=this.__data__=new Qe(e);this.size=t.size}yt.prototype.clear=Xs,yt.prototype.delete=Js,yt.prototype.get=eu,yt.prototype.has=tu,yt.prototype.set=nu;function au(e,t){return e&&zt(t,_r(t),e)}function ou(e,t){return e&&zt(t,Mr(t),e)}var Hn=typeof de=="object"&&de&&!de.nodeType&&de,Wn=Hn&&typeof module=="object"&&module&&!module.nodeType&&module,iu=Wn&&Wn.exports===Hn,Vn=iu?Ue.Buffer:void 0,zn=Vn?Vn.allocUnsafe:void 0;function su(e,t){if(t)return e.slice();var r=e.length,n=zn?zn(r):new e.constructor(r);return e.copy(n),n}function uu(e,t){for(var r=-1,n=e==null?0:e.length,a=0,i=[];++r<n;){var o=e[r];t(o,r,e)&&(i[a++]=o)}return i}function Bn(){return[]}var cu=Object.prototype,lu=cu.propertyIsEnumerable,qn=Object.getOwnPropertySymbols,fu=qn?function(e){return e==null?[]:(e=Object(e),uu(qn(e),function(t){return lu.call(e,t)}))}:Bn;const jr=fu;function du(e,t){return zt(e,jr(e),t)}var hu=Object.getOwnPropertySymbols,pu=hu?function(e){for(var t=[];e;)$n(t,jr(e)),e=Un(e);return t}:Bn;const Gn=pu;function mu(e,t){return zt(e,Gn(e),t)}function Qn(e,t,r){var n=t(e);return Sr(e)?n:$n(n,r(e))}function vu(e){return Qn(e,_r,jr)}function gu(e){return Qn(e,Mr,Gn)}var yu=nt(Ue,"DataView");const kr=yu;var bu=nt(Ue,"Promise");const Rr=bu;var wu=nt(Ue,"Set");const Lr=wu;var Kn="[object Map]",Tu="[object Object]",Zn="[object Promise]",Xn="[object Set]",Jn="[object WeakMap]",ea="[object DataView]",xu=rt(kr),Pu=rt(Rt),Eu=rt(Rr),Su=rt(Lr),Cu=rt(Dr),ot=pt;(kr&&ot(new kr(new ArrayBuffer(1)))!=ea||Rt&&ot(new Rt)!=Kn||Rr&&ot(Rr.resolve())!=Zn||Lr&&ot(new Lr)!=Xn||Dr&&ot(new Dr)!=Jn)&&(ot=function(e){var t=pt(e),r=t==Tu?e.constructor:void 0,n=r?rt(r):"";if(n)switch(n){case xu:return ea;case Pu:return Kn;case Eu:return Zn;case Su:return Xn;case Cu:return Jn}return t});const Ar=ot;var Du=Object.prototype,Ou=Du.hasOwnProperty;function Iu(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&Ou.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var Nu=Ue.Uint8Array;const ta=Nu;function Fr(e){var t=new e.constructor(e.byteLength);return new ta(t).set(new ta(e)),t}function _u(e,t){var r=t?Fr(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var Mu=/\w*$/;function ju(e){var t=new e.constructor(e.source,Mu.exec(e));return t.lastIndex=e.lastIndex,t}var ra=ht?ht.prototype:void 0,na=ra?ra.valueOf:void 0;function ku(e){return na?Object(na.call(e)):{}}function Ru(e,t){var r=t?Fr(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var Lu="[object Boolean]",Au="[object Date]",Fu="[object Map]",Yu="[object Number]",$u="[object RegExp]",Uu="[object Set]",Hu="[object String]",Wu="[object Symbol]",Vu="[object ArrayBuffer]",zu="[object DataView]",Bu="[object Float32Array]",qu="[object Float64Array]",Gu="[object Int8Array]",Qu="[object Int16Array]",Ku="[object Int32Array]",Zu="[object Uint8Array]",Xu="[object Uint8ClampedArray]",Ju="[object Uint16Array]",ec="[object Uint32Array]";function tc(e,t,r){var n=e.constructor;switch(t){case Vu:return Fr(e);case Lu:case Au:return new n(+e);case zu:return _u(e,r);case Bu:case qu:case Gu:case Qu:case Ku:case Zu:case Xu:case Ju:case ec:return Ru(e,r);case Fu:return new n;case Yu:case Hu:return new n(e);case $u:return ju(e);case Uu:return new n;case Wu:return ku(e)}}function rc(e){return typeof e.constructor=="function"&&!Or(e)?yi(Un(e)):{}}var nc="[object Map]";function ac(e){return mt(e)&&Ar(e)==nc}var aa=vt&&vt.isMap,oc=aa?Ir(aa):ac;const ic=oc;var sc="[object Set]";function uc(e){return mt(e)&&Ar(e)==sc}var oa=vt&&vt.isSet,cc=oa?Ir(oa):uc;const lc=cc;var fc=1,dc=2,hc=4,ia="[object Arguments]",pc="[object Array]",mc="[object Boolean]",vc="[object Date]",gc="[object Error]",sa="[object Function]",yc="[object GeneratorFunction]",bc="[object Map]",wc="[object Number]",ua="[object Object]",Tc="[object RegExp]",xc="[object Set]",Pc="[object String]",Ec="[object Symbol]",Sc="[object WeakMap]",Cc="[object ArrayBuffer]",Dc="[object DataView]",Oc="[object Float32Array]",Ic="[object Float64Array]",Nc="[object Int8Array]",_c="[object Int16Array]",Mc="[object Int32Array]",jc="[object Uint8Array]",kc="[object Uint8ClampedArray]",Rc="[object Uint16Array]",Lc="[object Uint32Array]",xe={};xe[ia]=xe[pc]=xe[Cc]=xe[Dc]=xe[mc]=xe[vc]=xe[Oc]=xe[Ic]=xe[Nc]=xe[_c]=xe[Mc]=xe[bc]=xe[wc]=xe[ua]=xe[Tc]=xe[xc]=xe[Pc]=xe[Ec]=xe[jc]=xe[kc]=xe[Rc]=xe[Lc]=!0,xe[gc]=xe[sa]=xe[Sc]=!1;function Gt(e,t,r,n,a,i){var o,s=t&fc,u=t&dc,l=t&hc;if(r&&(o=a?r(e,n,a,i):r(e)),o!==void 0)return o;if(!Ge(e))return e;var f=Sr(e);if(f){if(o=Iu(e),!s)return bi(e,o)}else{var h=Ar(e),b=h==sa||h==yc;if(Rn(e))return su(e,s);if(h==ua||h==ia||b&&!a){if(o=u||b?{}:rc(e),!s)return u?mu(e,ou(o,e)):du(e,au(o,e))}else{if(!xe[h])return a?e:{};o=tc(e,h,s)}}i||(i=new yt);var T=i.get(e);if(T)return T;i.set(e,o),lc(e)?e.forEach(function(P){o.add(Gt(P,t,r,P,e,i))}):ic(e)&&e.forEach(function(P,_){o.set(_,Gt(P,t,r,_,e,i))});var x=l?u?gu:vu:u?Mr:_r,D=f?void 0:x(e);return Ti(D||e,function(P,_){D&&(_=P,P=e[_]),Dn(o,_,Gt(P,t,r,_,e,i))}),o}var Ac=1,Fc=4;function Yc(e){return Gt(e,Ac|Fc)}var $c=function(){return Ue.Date.now()};const Yr=$c;var Uc="Expected a function",Hc=Math.max,Wc=Math.min;function Lt(e,t,r){var n,a,i,o,s,u,l=0,f=!1,h=!1,b=!0;if(typeof e!="function")throw new TypeError(Uc);t=wn(t)||0,Ge(r)&&(f=!!r.leading,h="maxWait"in r,i=h?Hc(wn(r.maxWait)||0,t):i,b="trailing"in r?!!r.trailing:b);function T($){var J=n,te=a;return n=a=void 0,l=$,o=e.apply(te,J),o}function x($){return l=$,s=setTimeout(_,t),f?T($):o}function D($){var J=$-u,te=$-l,B=t-J;return h?Wc(B,i-te):B}function P($){var J=$-u,te=$-l;return u===void 0||J>=t||J<0||h&&te>=i}function _(){var $=Yr();if(P($))return z($);s=setTimeout(_,D($))}function z($){return s=void 0,b&&n?T($):(n=a=void 0,o)}function Z(){s!==void 0&&clearTimeout(s),l=0,n=u=a=s=void 0}function W(){return s===void 0?o:z(Yr())}function g(){var $=Yr(),J=P($);if(n=arguments,a=this,u=$,J){if(s===void 0)return x(u);if(h)return clearTimeout(s),s=setTimeout(_,t),T(u)}return s===void 0&&(s=setTimeout(_,t)),o}return g.cancel=Z,g.flush=W,g}var Vc="Expected a function";function zc(e,t,r){var n=!0,a=!0;if(typeof e!="function")throw new TypeError(Vc);return Ge(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),Lt(e,t,{leading:n,maxWait:t,trailing:a})}const Bc=(e,t)=>{const{value:r,readOnly:n=!1,debounceTime:a=800,fillContainer:i=!0,leftElement:o,rightElement:s,className:u,leftElementClassName:l,rightElementClassName:f,isSingleLine:h=!0,allowSingleLineScroll:b=!1,inputMode:T,placeholder:x,onFocus:D,onBlur:P,onInput:_,onInnerTextChange:z,onInnerHTMLChange:Z,onElementCreate:W,onLeftElementClick:g,onRightElementClick:$}=e,J=p.useRef("bsc-flex-grow focus:bsc-outline-none"),te=p.useRef("bsc-text-gray-4"),B=p.useRef(),oe=p.useCallback(d=>{const S=d.target,O=S.innerHTML;S.className=`${J.current}`,x&&O===x&&(S.innerHTML=""),D==null||D(d)},[x,D]),re=p.useCallback(d=>{const S=d.target.innerHTML;if(x&&S===""){const O=d.target;O.innerHTML=x,O.className=`${J.current} ${te.current}`}P==null||P(d)},[x,P]),G=p.useCallback(d=>{var S,O;(S=B.current)==null||S.removeEventListener("focus",oe),(O=B.current)==null||O.removeEventListener("blur",re),x&&d&&d!==document.activeElement&&d.innerHTML===""&&(d.innerHTML=x,d.className=`${J.current} ${te.current}`),d.addEventListener("focus",oe),d.addEventListener("blur",re),B.current=d},[x]),y=p.useCallback(d=>{W==null||W(d)},[W]),U=d=>{g==null||g(d)},q=d=>{$==null||$(d)},F=Lt(d=>{_==null||_(d),z==null||z(d.target.innerText),Z==null||Z(d.target.innerHTML)},a),ne=p.useCallback(d=>{B.current&&(B.current.innerText=d)},[]),L=p.useCallback(d=>{B.current&&(B.current.innerHTML=d)},[]),he=p.useCallback(()=>{var d;(d=B.current)==null||d.focus()},[]);p.useImperativeHandle(t,()=>({inputElement:B.current,setInnerText:ne,setInnerHTML:L,focus:he}));const v=qe({"bsc-w-full ":i},"bsc-flex bsc-flex-row bsc-items-center bsc-shadow-sm bsc-border bsc-border-solid bsc-border-gray-3 dark:bsc-border-white dark:bsc-bg-mono-dark-1 dark:bsc-text-mono-light-1 bsc-rounded-md bsc-p-2",{"bsc-overflow-x-auto bsc-overflow-y-hidden bsc-whitespace-pre":h&&b,"bsc-overflow-hidden bsc-whitespace-pre":h&&!b},u),E=qe("bsc-flex-shrink",{"bsc-mr-2":o},l),H=qe("bsc-flex-shrink",{"bsc-ml-2":s},f);return m.jsxs("div",{className:v,ref:d=>d&&y(d),children:[o&&m.jsx("div",{className:E,onClick:U,children:o}),m.jsx("div",{ref:d=>d&&G(d),className:J.current,contentEditable:!n,suppressContentEditableWarning:!0,inputMode:T,onInput:F,children:r}),s&&m.jsx("div",{className:H,onClick:q,children:s})]})},Qt=p.forwardRef(Bc);function et(e){"@babel/helpers - typeof";return et=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},et(e)}function Oe(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function ae(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function pe(e){ae(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||et(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Kt(e,t){ae(2,arguments);var r=pe(e),n=Oe(t);return isNaN(n)?new Date(NaN):(n&&r.setDate(r.getDate()+n),r)}function it(e,t){ae(2,arguments);var r=pe(e),n=Oe(t);if(isNaN(n))return new Date(NaN);if(!n)return r;var a=r.getDate(),i=new Date(r.getTime());i.setMonth(r.getMonth()+n+1,0);var o=i.getDate();return a>=o?i:(r.setFullYear(i.getFullYear(),i.getMonth(),a),r)}function qc(e,t){ae(2,arguments);var r=pe(e).getTime(),n=Oe(t);return new Date(r+n)}var Gc={};function At(){return Gc}function Qc(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function ca(e){ae(1,arguments);var t=pe(e);return t.setHours(0,0,0,0),t}function Zt(e,t){ae(2,arguments);var r=Oe(t);return it(e,r*12)}var $r=6e4,Ur=36e5,Kc=1e3;function la(e,t){ae(2,arguments);var r=ca(e),n=ca(t);return r.getTime()===n.getTime()}function Zc(e){ae(1,arguments);var t=pe(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}function Xc(e,t){var r;ae(1,arguments);var n=e||{},a=pe(n.start),i=pe(n.end),o=i.getTime();if(!(a.getTime()<=o))throw new RangeError("Invalid interval");var s=[],u=a;u.setHours(0,0,0,0);var l=Number((r=t==null?void 0:t.step)!==null&&r!==void 0?r:1);if(l<1||isNaN(l))throw new RangeError("`options.step` must be a number greater than 1");for(;u.getTime()<=o;)s.push(pe(u)),u.setDate(u.getDate()+l),u.setHours(0,0,0,0);return s}function fa(e){ae(1,arguments);var t=pe(e);return t.setDate(1),t.setHours(0,0,0,0),t}function Jc(e){ae(1,arguments);var t=e||{},r=pe(t.start),n=pe(t.end),a=n.getTime();if(!(r.getTime()<=a))throw new RangeError("Invalid interval");var i=[],o=r;for(o.setHours(0,0,0,0),o.setMonth(0,1);o.getTime()<=a;)i.push(pe(o)),o.setFullYear(o.getFullYear()+1);return i}function el(e,t){ae(2,arguments);var r=Oe(t);return qc(e,-r)}function bt(e){ae(1,arguments);var t=1,r=pe(e),n=r.getUTCDay(),a=(n<t?7:0)+n-t;return r.setUTCDate(r.getUTCDate()-a),r.setUTCHours(0,0,0,0),r}function tl(e){ae(1,arguments);var t=pe(e),r=t.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(r+1,0,4),n.setUTCHours(0,0,0,0);var a=bt(n),i=new Date(0);i.setUTCFullYear(r,0,4),i.setUTCHours(0,0,0,0);var o=bt(i);return t.getTime()>=a.getTime()?r+1:t.getTime()>=o.getTime()?r:r-1}function rl(e){ae(1,arguments);var t=tl(e),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var n=bt(r);return n}var nl=6048e5;function al(e){ae(1,arguments);var t=pe(e),r=bt(t).getTime()-rl(t).getTime();return Math.round(r/nl)+1}function st(e,t){var r,n,a,i,o,s,u,l;ae(1,arguments);var f=At(),h=Oe((r=(n=(a=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&a!==void 0?a:f.weekStartsOn)!==null&&n!==void 0?n:(u=f.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&r!==void 0?r:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var b=pe(e),T=b.getUTCDay(),x=(T<h?7:0)+T-h;return b.setUTCDate(b.getUTCDate()-x),b.setUTCHours(0,0,0,0),b}function da(e,t){var r,n,a,i,o,s,u,l;ae(1,arguments);var f=pe(e),h=f.getUTCFullYear(),b=At(),T=Oe((r=(n=(a=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:b.firstWeekContainsDate)!==null&&n!==void 0?n:(u=b.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:1);if(!(T>=1&&T<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var x=new Date(0);x.setUTCFullYear(h+1,0,T),x.setUTCHours(0,0,0,0);var D=st(x,t),P=new Date(0);P.setUTCFullYear(h,0,T),P.setUTCHours(0,0,0,0);var _=st(P,t);return f.getTime()>=D.getTime()?h+1:f.getTime()>=_.getTime()?h:h-1}function ol(e,t){var r,n,a,i,o,s,u,l;ae(1,arguments);var f=At(),h=Oe((r=(n=(a=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(o=t.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:f.firstWeekContainsDate)!==null&&n!==void 0?n:(u=f.locale)===null||u===void 0||(l=u.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:1),b=da(e,t),T=new Date(0);T.setUTCFullYear(b,0,h),T.setUTCHours(0,0,0,0);var x=st(T,t);return x}var il=6048e5;function sl(e,t){ae(1,arguments);var r=pe(e),n=st(r,t).getTime()-ol(r,t).getTime();return Math.round(n/il)+1}var ha=function(t,r){switch(t){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},pa=function(t,r){switch(t){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},ul=function(t,r){var n=t.match(/(P+)(p+)?/)||[],a=n[1],i=n[2];if(!i)return ha(t,r);var o;switch(a){case"P":o=r.dateTime({width:"short"});break;case"PP":o=r.dateTime({width:"medium"});break;case"PPP":o=r.dateTime({width:"long"});break;case"PPPP":default:o=r.dateTime({width:"full"});break}return o.replace("{{date}}",ha(a,r)).replace("{{time}}",pa(i,r))},cl={p:pa,P:ul};const ma=cl;var ll=["D","DD"],fl=["YY","YYYY"];function dl(e){return ll.indexOf(e)!==-1}function hl(e){return fl.indexOf(e)!==-1}function va(e,t,r){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var pl={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},ml=function(t,r,n){var a,i=pl[t];return typeof i=="string"?a=i:r===1?a=i.one:a=i.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+a:a+" ago":a};const vl=ml;function Hr(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,n=e.formats[r]||e.formats[e.defaultWidth];return n}}var gl={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},yl={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},bl={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},wl={date:Hr({formats:gl,defaultWidth:"full"}),time:Hr({formats:yl,defaultWidth:"full"}),dateTime:Hr({formats:bl,defaultWidth:"full"})};const Tl=wl;var xl={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Pl=function(t,r,n,a){return xl[t]};const El=Pl;function Ft(e){return function(t,r){var n=r!=null&&r.context?String(r.context):"standalone",a;if(n==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,o=r!=null&&r.width?String(r.width):i;a=e.formattingValues[o]||e.formattingValues[i]}else{var s=e.defaultWidth,u=r!=null&&r.width?String(r.width):e.defaultWidth;a=e.values[u]||e.values[s]}var l=e.argumentCallback?e.argumentCallback(t):t;return a[l]}}var Sl={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Cl={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Dl={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Ol={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Il={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Nl={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},_l=function(t,r){var n=Number(t),a=n%100;if(a>20||a<10)switch(a%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},Ml={ordinalNumber:_l,era:Ft({values:Sl,defaultWidth:"wide"}),quarter:Ft({values:Cl,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Ft({values:Dl,defaultWidth:"wide"}),day:Ft({values:Ol,defaultWidth:"wide"}),dayPeriod:Ft({values:Il,defaultWidth:"wide",formattingValues:Nl,defaultFormattingWidth:"wide"})};const jl=Ml;function Yt(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.width,a=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],i=t.match(a);if(!i)return null;var o=i[0],s=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(s)?Rl(s,function(h){return h.test(o)}):kl(s,function(h){return h.test(o)}),l;l=e.valueCallback?e.valueCallback(u):u,l=r.valueCallback?r.valueCallback(l):l;var f=t.slice(o.length);return{value:l,rest:f}}}function kl(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function Rl(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r}function Ll(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var a=n[0],i=t.match(e.parsePattern);if(!i)return null;var o=e.valueCallback?e.valueCallback(i[0]):i[0];o=r.valueCallback?r.valueCallback(o):o;var s=t.slice(a.length);return{value:o,rest:s}}}var Al=/^(\d+)(th|st|nd|rd)?/i,Fl=/\d+/i,Yl={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},$l={any:[/^b/i,/^(a|c)/i]},Ul={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Hl={any:[/1/i,/2/i,/3/i,/4/i]},Wl={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Vl={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},zl={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Bl={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},ql={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Gl={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Ql={ordinalNumber:Ll({matchPattern:Al,parsePattern:Fl,valueCallback:function(t){return parseInt(t,10)}}),era:Yt({matchPatterns:Yl,defaultMatchWidth:"wide",parsePatterns:$l,defaultParseWidth:"any"}),quarter:Yt({matchPatterns:Ul,defaultMatchWidth:"wide",parsePatterns:Hl,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Yt({matchPatterns:Wl,defaultMatchWidth:"wide",parsePatterns:Vl,defaultParseWidth:"any"}),day:Yt({matchPatterns:zl,defaultMatchWidth:"wide",parsePatterns:Bl,defaultParseWidth:"any"}),dayPeriod:Yt({matchPatterns:ql,defaultMatchWidth:"any",parsePatterns:Gl,defaultParseWidth:"any"})},Kl={code:"en-US",formatDistance:vl,formatLong:Tl,formatRelative:El,localize:jl,match:Ql,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Zl=Kl;function Xl(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function Wr(e){ae(1,arguments);var t=pe(e),r=t.getDay();return r}function ga(e){ae(1,arguments);var t=pe(e),r=t.getFullYear(),n=t.getMonth(),a=new Date(0);return a.setFullYear(r,n+1,0),a.setHours(0,0,0,0),a.getDate()}function Jl(e){ae(1,arguments);var t=pe(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(0,0,0,0),t}function ef(e,t){ae(2,arguments);var r=pe(e),n=pe(t);return r.getTime()<n.getTime()}function ya(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function tf(e,t){if(e){if(typeof e=="string")return ya(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ya(e,t)}}function ba(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=tf(e))||t&&e&&typeof e.length=="number"){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(l){throw l},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
32
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,o=!1,s;return{s:function(){r=r.call(e)},n:function(){var l=r.next();return i=l.done,l},e:function(l){o=!0,s=l},f:function(){try{!i&&r.return!=null&&r.return()}finally{if(o)throw s}}}}function R(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xt(e,t){return Xt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Xt(e,t)}function le(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Xt(e,t)}function Jt(e){return Jt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Jt(e)}function rf(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function nf(e,t){if(t&&(et(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return R(e)}function fe(e){var t=rf();return function(){var n=Jt(e),a;if(t){var i=Jt(this).constructor;a=Reflect.construct(n,arguments,i)}else a=n.apply(this,arguments);return nf(this,a)}}function se(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function af(e,t){if(et(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(et(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wa(e){var t=af(e,"string");return et(t)==="symbol"?t:String(t)}function Ta(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,wa(n.key),n)}}function ue(e,t,r){return t&&Ta(e.prototype,t),r&&Ta(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function N(e,t,r){return t=wa(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var of=10,xa=function(){function e(){se(this,e),N(this,"priority",void 0),N(this,"subPriority",0)}return ue(e,[{key:"validate",value:function(r,n){return!0}}]),e}(),sf=function(e){le(r,e);var t=fe(r);function r(n,a,i,o,s){var u;return se(this,r),u=t.call(this),u.value=n,u.validateValue=a,u.setValue=i,u.priority=o,s&&(u.subPriority=s),u}return ue(r,[{key:"validate",value:function(a,i){return this.validateValue(a,this.value,i)}},{key:"set",value:function(a,i,o){return this.setValue(a,i,this.value,o)}}]),r}(xa),uf=function(e){le(r,e);var t=fe(r);function r(){var n;se(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),N(R(n),"priority",of),N(R(n),"subPriority",-1),n}return ue(r,[{key:"set",value:function(a,i){if(i.timestampIsSet)return a;var o=new Date(0);return o.setFullYear(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()),o.setHours(a.getUTCHours(),a.getUTCMinutes(),a.getUTCSeconds(),a.getUTCMilliseconds()),o}}]),r}(xa),me=function(){function e(){se(this,e),N(this,"incompatibleTokens",void 0),N(this,"priority",void 0),N(this,"subPriority",void 0)}return ue(e,[{key:"run",value:function(r,n,a,i){var o=this.parse(r,n,a,i);return o?{setter:new sf(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}},{key:"validate",value:function(r,n,a){return!0}}]),e}(),cf=function(e){le(r,e);var t=fe(r);function r(){var n;se(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),N(R(n),"priority",140),N(R(n),"incompatibleTokens",["R","u","t","T"]),n}return ue(r,[{key:"parse",value:function(a,i,o){switch(i){case"G":case"GG":case"GGG":return o.era(a,{width:"abbreviated"})||o.era(a,{width:"narrow"});case"GGGGG":return o.era(a,{width:"narrow"});case"GGGG":default:return o.era(a,{width:"wide"})||o.era(a,{width:"abbreviated"})||o.era(a,{width:"narrow"})}}},{key:"set",value:function(a,i,o){return i.era=o,a.setUTCFullYear(o,0,1),a.setUTCHours(0,0,0,0),a}}]),r}(me),Ie={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},We={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Ne(e,t){return e&&{value:t(e.value),rest:e.rest}}function Se(e,t){var r=t.match(e);return r?{value:parseInt(r[0],10),rest:t.slice(r[0].length)}:null}function Ve(e,t){var r=t.match(e);if(!r)return null;if(r[0]==="Z")return{value:0,rest:t.slice(1)};var n=r[1]==="+"?1:-1,a=r[2]?parseInt(r[2],10):0,i=r[3]?parseInt(r[3],10):0,o=r[5]?parseInt(r[5],10):0;return{value:n*(a*Ur+i*$r+o*Kc),rest:t.slice(r[0].length)}}function Pa(e){return Se(Ie.anyDigitsSigned,e)}function Ce(e,t){switch(e){case 1:return Se(Ie.singleDigit,t);case 2:return Se(Ie.twoDigits,t);case 3:return Se(Ie.threeDigits,t);case 4:return Se(Ie.fourDigits,t);default:return Se(new RegExp("^\\d{1,"+e+"}"),t)}}function er(e,t){switch(e){case 1:return Se(Ie.singleDigitSigned,t);case 2:return Se(Ie.twoDigitsSigned,t);case 3:return Se(Ie.threeDigitsSigned,t);case 4:return Se(Ie.fourDigitsSigned,t);default:return Se(new RegExp("^-?\\d{1,"+e+"}"),t)}}function Vr(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Ea(e,t){var r=t>0,n=r?t:1-t,a;if(n<=50)a=e||100;else{var i=n+50,o=Math.floor(i/100)*100,s=e>=i%100;a=e+o-(s?100:0)}return r?a:1-a}function Sa(e){return e%400===0||e%4===0&&e%100!==0}var lf=function(e){le(r,e);var t=fe(r);function r(){var n;se(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),N(R(n),"priority",130),N(R(n),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),n}return ue(r,[{key:"parse",value:function(a,i,o){var s=function(l){return{year:l,isTwoDigitYear:i==="yy"}};switch(i){case"y":return Ne(Ce(4,a),s);case"yo":return Ne(o.ordinalNumber(a,{unit:"year"}),s);default:return Ne(Ce(i.length,a),s)}}},{key:"validate",value:function(a,i){return i.isTwoDigitYear||i.year>0}},{key:"set",value:function(a,i,o){var s=a.getUTCFullYear();if(o.isTwoDigitYear){var u=Ea(o.year,s);return a.setUTCFullYear(u,0,1),a.setUTCHours(0,0,0,0),a}var l=!("era"in i)||i.era===1?o.year:1-o.year;return a.setUTCFullYear(l,0,1),a.setUTCHours(0,0,0,0),a}}]),r}(me),ff=function(e){le(r,e);var t=fe(r);function r(){var n;se(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),N(R(n),"priority",130),N(R(n),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),n}return ue(r,[{key:"parse",value:function(a,i,o){var s=function(l){return{year:l,isTwoDigitYear:i==="YY"}};switch(i){case"Y":return Ne(Ce(4,a),s);case"Yo":return Ne(o.ordinalNumber(a,{unit:"year"}),s);default:return Ne(Ce(i.length,a),s)}}},{key:"validate",value:function(a,i){return i.isTwoDigitYear||i.year>0}},{key:"set",value:function(a,i,o,s){var u=da(a,s);if(o.isTwoDigitYear){var l=Ea(o.year,u);return a.setUTCFullYear(l,0,s.firstWeekContainsDate),a.setUTCHours(0,0,0,0),st(a,s)}var f=!("era"in i)||i.era===1?o.year:1-o.year;return a.setUTCFullYear(f,0,s.firstWeekContainsDate),a.setUTCHours(0,0,0,0),st(a,s)}}]),r}(me),df=function(e){le(r,e);var t=fe(r);function r(){var n;se(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),N(R(n),"priority",130),N(R(n),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),n}return ue(r,[{key:"parse",value:function(a,i){return er(i==="R"?4:i.length,a)}},{key:"set",value:function(a,i,o){var s=new Date(0);return s.setUTCFullYear(o,0,4),s.setUTCHours(0,0,0,0),bt(s)}}]),r}(me),hf=function(e){le(r,e);var t=fe(r);function r(){var n;se(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),N(R(n),"priority",130),N(R(n),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),n}return ue(r,[{key:"parse",value:function(a,i){return er(i==="u"?4:i.length,a)}},{key:"set",value:function(a,i,o){return a.setUTCFullYear(o,0,1),a.setUTCHours(0,0,0,0),a}}]),r}(me),pf=function(e){le(r,e);var t=fe(r);function r(){var n;se(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),N(R(n),"priority",120),N(R(n),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),n}return ue(r,[{key:"parse",value:function(a,i,o){switch(i){case"Q":case"QQ":return Ce(i.length,a);case"Qo":return o.ordinalNumber(a,{unit:"quarter"});case"QQQ":return o.quarter(a,{width:"abbreviated",context:"formatting"})||o.quarter(a,{width:"narrow",context:"formatting"});case"QQQQQ":return o.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return o.quarter(a,{width:"wide",context:"formatting"})||o.quarter(a,{width:"abbreviated",context:"formatting"})||o.quarter(a,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(a,i){return i>=1&&i<=4}},{key:"set",value:function(a,i,o){return a.setUTCMonth((o-1)*3,1),a.setUTCHours(0,0,0,0),a}}]),r}(me),mf=function(e){le(r,e);var t=fe(r);function r(){var n;se(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),N(R(n),"priority",120),N(R(n),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),n}return ue(r,[{key:"parse",value:function(a,i,o){switch(i){case"q":case"qq":return Ce(i.length,a);case"qo":return o.ordinalNumber(a,{unit:"quarter"});case"qqq":return o.quarter(a,{width:"abbreviated",context:"standalone"})||o.quarter(a,{width:"narrow",context:"standalone"});case"qqqqq":return o.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return o.quarter(a,{width:"wide",context:"standalone"})||o.quarter(a,{width:"abbreviated",context:"standalone"})||o.quarter(a,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(a,i){return i>=1&&i<=4}},{key:"set",value:function(a,i,o){return a.setUTCMonth((o-1)*3,1),a.setUTCHours(0,0,0,0),a}}]),r}(me),vf=function(e){le(r,e);var t=fe(r);function r(){var n;se(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),N(R(n),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),N(R(n),"priority",110),n}return ue(r,[{key:"parse",value:function(a,i,o){var s=function(l){return l-1};switch(i){case"M":return Ne(Se(Ie.month,a),s);case"MM":return Ne(Ce(2,a),s);case"Mo":return Ne(o.ordinalNumber(a,{unit:"month"}),s);case"MMM":return o.month(a,{width:"abbreviated",context:"formatting"})||o.month(a,{width:"narrow",context:"formatting"});case"MMMMM":return o.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return o.month(a,{width:"wide",context:"formatting"})||o.month(a,{width:"abbreviated",context:"formatting"})||o.month(a,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(a,i){return i>=0&&i<=11}},{key:"set",value:function(a,i,o){return a.setUTCMonth(o,1),a.setUTCHours(0,0,0,0),a}}]),r}(me),gf=function(e){le(r,e);var t=fe(r);function r(){var n;se(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),N(R(n),"priority",110),N(R(n),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),n}return ue(r,[{key:"parse",value:function(a,i,o){var s=function(l){return l-1};switch(i){case"L":return Ne(Se(Ie.month,a),s);case"LL":return Ne(Ce(2,a),s);case"Lo":return Ne(o.ordinalNumber(a,{unit:"month"}),s);case"LLL":return o.month(a,{width:"abbreviated",context:"standalone"})||o.month(a,{width:"narrow",context:"standalone"});case"LLLLL":return o.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return o.month(a,{width:"wide",context:"standalone"})||o.month(a,{width:"abbreviated",context:"standalone"})||o.month(a,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(a,i){return i>=0&&i<=11}},{key:"set",value:function(a,i,o){return a.setUTCMonth(o,1),a.setUTCHours(0,0,0,0),a}}]),r}(me);function yf(e,t,r){ae(2,arguments);var n=pe(e),a=Oe(t),i=sl(n,r)-a;return n.setUTCDate(n.getUTCDate()-i*7),n}var bf=function(e){le(r,e);var t=fe(r);function r(){var n;se(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),N(R(n),"priority",100),N(R(n),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),n}return ue(r,[{key:"parse",value:function(a,i,o){switch(i){case"w":return Se(Ie.week,a);case"wo":return o.ordinalNumber(a,{unit:"week"});default:return Ce(i.length,a)}}},{key:"validate",value:function(a,i){return i>=1&&i<=53}},{key:"set",value:function(a,i,o,s){return st(yf(a,o,s),s)}}]),r}(me);function wf(e,t){ae(2,arguments);var r=pe(e),n=Oe(t),a=al(r)-n;return r.setUTCDate(r.getUTCDate()-a*7),r}var Tf=function(e){le(r,e);var t=fe(r);function r(){var n;se(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),N(R(n),"priority",100),N(R(n),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),n}return ue(r,[{key:"parse",value:function(a,i,o){switch(i){case"I":return Se(Ie.week,a);case"Io":return o.ordinalNumber(a,{unit:"week"});default:return Ce(i.length,a)}}},{key:"validate",value:function(a,i){return i>=1&&i<=53}},{key:"set",value:function(a,i,o){return bt(wf(a,o))}}]),r}(me),xf=[31,28,31,30,31,30,31,31,30,31,30,31],Pf=[31,29,31,30,31,30,31,31,30,31,30,31],Ef=function(e){le(r,e);var t=fe(r);function r(){var n;se(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),N(R(n),"priority",90),N(R(n),"subPriority",1),N(R(n),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),n}return ue(r,[{key:"parse",value:function(a,i,o){switch(i){case"d":return Se(Ie.date,a);case"do":return o.ordinalNumber(a,{unit:"date"});default:return Ce(i.length,a)}}},{key:"validate",value:function(a,i){var o=a.getUTCFullYear(),s=Sa(o),u=a.getUTCMonth();return s?i>=1&&i<=Pf[u]:i>=1&&i<=xf[u]}},{key:"set",value:function(a,i,o){return a.setUTCDate(o),a.setUTCHours(0,0,0,0),a}}]),r}(me),Sf=function(e){le(r,e);var t=fe(r);function r(){var n;se(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),N(R(n),"priority",90),N(R(n),"subpriority",1),N(R(n),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),n}return ue(r,[{key:"parse",value:function(a,i,o){switch(i){case"D":case"DD":return Se(Ie.dayOfYear,a);case"Do":return o.ordinalNumber(a,{unit:"date"});default:return Ce(i.length,a)}}},{key:"validate",value:function(a,i){var o=a.getUTCFullYear(),s=Sa(o);return s?i>=1&&i<=366:i>=1&&i<=365}},{key:"set",value:function(a,i,o){return a.setUTCMonth(0,o),a.setUTCHours(0,0,0,0),a}}]),r}(me);function zr(e,t,r){var n,a,i,o,s,u,l,f;ae(2,arguments);var h=At(),b=Oe((n=(a=(i=(o=r==null?void 0:r.weekStartsOn)!==null&&o!==void 0?o:r==null||(s=r.locale)===null||s===void 0||(u=s.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&i!==void 0?i:h.weekStartsOn)!==null&&a!==void 0?a:(l=h.locale)===null||l===void 0||(f=l.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&n!==void 0?n:0);if(!(b>=0&&b<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var T=pe(e),x=Oe(t),D=T.getUTCDay(),P=x%7,_=(P+7)%7,z=(_<b?7:0)+x-D;return T.setUTCDate(T.getUTCDate()+z),T}var Cf=function(e){le(r,e);var t=fe(r);function r(){var n;se(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),N(R(n),"priority",90),N(R(n),"incompatibleTokens",["D","i","e","c","t","T"]),n}return ue(r,[{key:"parse",value:function(a,i,o){switch(i){case"E":case"EE":case"EEE":return o.day(a,{width:"abbreviated",context:"formatting"})||o.day(a,{width:"short",context:"formatting"})||o.day(a,{width:"narrow",context:"formatting"});case"EEEEE":return o.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(a,{width:"short",context:"formatting"})||o.day(a,{width:"narrow",context:"formatting"});case"EEEE":default:return o.day(a,{width:"wide",context:"formatting"})||o.day(a,{width:"abbreviated",context:"formatting"})||o.day(a,{width:"short",context:"formatting"})||o.day(a,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(a,i){return i>=0&&i<=6}},{key:"set",value:function(a,i,o,s){return a=zr(a,o,s),a.setUTCHours(0,0,0,0),a}}]),r}(me),Df=function(e){le(r,e);var t=fe(r);function r(){var n;se(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),N(R(n),"priority",90),N(R(n),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),n}return ue(r,[{key:"parse",value:function(a,i,o,s){var u=function(f){var h=Math.floor((f-1)/7)*7;return(f+s.weekStartsOn+6)%7+h};switch(i){case"e":case"ee":return Ne(Ce(i.length,a),u);case"eo":return Ne(o.ordinalNumber(a,{unit:"day"}),u);case"eee":return o.day(a,{width:"abbreviated",context:"formatting"})||o.day(a,{width:"short",context:"formatting"})||o.day(a,{width:"narrow",context:"formatting"});case"eeeee":return o.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return o.day(a,{width:"short",context:"formatting"})||o.day(a,{width:"narrow",context:"formatting"});case"eeee":default:return o.day(a,{width:"wide",context:"formatting"})||o.day(a,{width:"abbreviated",context:"formatting"})||o.day(a,{width:"short",context:"formatting"})||o.day(a,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(a,i){return i>=0&&i<=6}},{key:"set",value:function(a,i,o,s){return a=zr(a,o,s),a.setUTCHours(0,0,0,0),a}}]),r}(me),Of=function(e){le(r,e);var t=fe(r);function r(){var n;se(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),N(R(n),"priority",90),N(R(n),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),n}return ue(r,[{key:"parse",value:function(a,i,o,s){var u=function(f){var h=Math.floor((f-1)/7)*7;return(f+s.weekStartsOn+6)%7+h};switch(i){case"c":case"cc":return Ne(Ce(i.length,a),u);case"co":return Ne(o.ordinalNumber(a,{unit:"day"}),u);case"ccc":return o.day(a,{width:"abbreviated",context:"standalone"})||o.day(a,{width:"short",context:"standalone"})||o.day(a,{width:"narrow",context:"standalone"});case"ccccc":return o.day(a,{width:"narrow",context:"standalone"});case"cccccc":return o.day(a,{width:"short",context:"standalone"})||o.day(a,{width:"narrow",context:"standalone"});case"cccc":default:return o.day(a,{width:"wide",context:"standalone"})||o.day(a,{width:"abbreviated",context:"standalone"})||o.day(a,{width:"short",context:"standalone"})||o.day(a,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(a,i){return i>=0&&i<=6}},{key:"set",value:function(a,i,o,s){return a=zr(a,o,s),a.setUTCHours(0,0,0,0),a}}]),r}(me);function If(e,t){ae(2,arguments);var r=Oe(t);r%7===0&&(r=r-7);var n=1,a=pe(e),i=a.getUTCDay(),o=r%7,s=(o+7)%7,u=(s<n?7:0)+r-i;return a.setUTCDate(a.getUTCDate()+u),a}var Nf=function(e){le(r,e);var t=fe(r);function r(){var n;se(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),N(R(n),"priority",90),N(R(n),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),n}return ue(r,[{key:"parse",value:function(a,i,o){var s=function(l){return l===0?7:l};switch(i){case"i":case"ii":return Ce(i.length,a);case"io":return o.ordinalNumber(a,{unit:"day"});case"iii":return Ne(o.day(a,{width:"abbreviated",context:"formatting"})||o.day(a,{width:"short",context:"formatting"})||o.day(a,{width:"narrow",context:"formatting"}),s);case"iiiii":return Ne(o.day(a,{width:"narrow",context:"formatting"}),s);case"iiiiii":return Ne(o.day(a,{width:"short",context:"formatting"})||o.day(a,{width:"narrow",context:"formatting"}),s);case"iiii":default:return Ne(o.day(a,{width:"wide",context:"formatting"})||o.day(a,{width:"abbreviated",context:"formatting"})||o.day(a,{width:"short",context:"formatting"})||o.day(a,{width:"narrow",context:"formatting"}),s)}}},{key:"validate",value:function(a,i){return i>=1&&i<=7}},{key:"set",value:function(a,i,o){return a=If(a,o),a.setUTCHours(0,0,0,0),a}}]),r}(me),_f=function(e){le(r,e);var t=fe(r);function r(){var n;se(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),N(R(n),"priority",80),N(R(n),"incompatibleTokens",["b","B","H","k","t","T"]),n}return ue(r,[{key:"parse",value:function(a,i,o){switch(i){case"a":case"aa":case"aaa":return o.dayPeriod(a,{width:"abbreviated",context:"formatting"})||o.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaaa":return o.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return o.dayPeriod(a,{width:"wide",context:"formatting"})||o.dayPeriod(a,{width:"abbreviated",context:"formatting"})||o.dayPeriod(a,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(a,i,o){return a.setUTCHours(Vr(o),0,0,0),a}}]),r}(me),Mf=function(e){le(r,e);var t=fe(r);function r(){var n;se(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),N(R(n),"priority",80),N(R(n),"incompatibleTokens",["a","B","H","k","t","T"]),n}return ue(r,[{key:"parse",value:function(a,i,o){switch(i){case"b":case"bb":case"bbb":return o.dayPeriod(a,{width:"abbreviated",context:"formatting"})||o.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbbb":return o.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return o.dayPeriod(a,{width:"wide",context:"formatting"})||o.dayPeriod(a,{width:"abbreviated",context:"formatting"})||o.dayPeriod(a,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(a,i,o){return a.setUTCHours(Vr(o),0,0,0),a}}]),r}(me),jf=function(e){le(r,e);var t=fe(r);function r(){var n;se(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),N(R(n),"priority",80),N(R(n),"incompatibleTokens",["a","b","t","T"]),n}return ue(r,[{key:"parse",value:function(a,i,o){switch(i){case"B":case"BB":case"BBB":return o.dayPeriod(a,{width:"abbreviated",context:"formatting"})||o.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBBB":return o.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return o.dayPeriod(a,{width:"wide",context:"formatting"})||o.dayPeriod(a,{width:"abbreviated",context:"formatting"})||o.dayPeriod(a,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(a,i,o){return a.setUTCHours(Vr(o),0,0,0),a}}]),r}(me),kf=function(e){le(r,e);var t=fe(r);function r(){var n;se(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),N(R(n),"priority",70),N(R(n),"incompatibleTokens",["H","K","k","t","T"]),n}return ue(r,[{key:"parse",value:function(a,i,o){switch(i){case"h":return Se(Ie.hour12h,a);case"ho":return o.ordinalNumber(a,{unit:"hour"});default:return Ce(i.length,a)}}},{key:"validate",value:function(a,i){return i>=1&&i<=12}},{key:"set",value:function(a,i,o){var s=a.getUTCHours()>=12;return s&&o<12?a.setUTCHours(o+12,0,0,0):!s&&o===12?a.setUTCHours(0,0,0,0):a.setUTCHours(o,0,0,0),a}}]),r}(me),Rf=function(e){le(r,e);var t=fe(r);function r(){var n;se(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),N(R(n),"priority",70),N(R(n),"incompatibleTokens",["a","b","h","K","k","t","T"]),n}return ue(r,[{key:"parse",value:function(a,i,o){switch(i){case"H":return Se(Ie.hour23h,a);case"Ho":return o.ordinalNumber(a,{unit:"hour"});default:return Ce(i.length,a)}}},{key:"validate",value:function(a,i){return i>=0&&i<=23}},{key:"set",value:function(a,i,o){return a.setUTCHours(o,0,0,0),a}}]),r}(me),Lf=function(e){le(r,e);var t=fe(r);function r(){var n;se(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),N(R(n),"priority",70),N(R(n),"incompatibleTokens",["h","H","k","t","T"]),n}return ue(r,[{key:"parse",value:function(a,i,o){switch(i){case"K":return Se(Ie.hour11h,a);case"Ko":return o.ordinalNumber(a,{unit:"hour"});default:return Ce(i.length,a)}}},{key:"validate",value:function(a,i){return i>=0&&i<=11}},{key:"set",value:function(a,i,o){var s=a.getUTCHours()>=12;return s&&o<12?a.setUTCHours(o+12,0,0,0):a.setUTCHours(o,0,0,0),a}}]),r}(me),Af=function(e){le(r,e);var t=fe(r);function r(){var n;se(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),N(R(n),"priority",70),N(R(n),"incompatibleTokens",["a","b","h","H","K","t","T"]),n}return ue(r,[{key:"parse",value:function(a,i,o){switch(i){case"k":return Se(Ie.hour24h,a);case"ko":return o.ordinalNumber(a,{unit:"hour"});default:return Ce(i.length,a)}}},{key:"validate",value:function(a,i){return i>=1&&i<=24}},{key:"set",value:function(a,i,o){var s=o<=24?o%24:o;return a.setUTCHours(s,0,0,0),a}}]),r}(me),Ff=function(e){le(r,e);var t=fe(r);function r(){var n;se(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),N(R(n),"priority",60),N(R(n),"incompatibleTokens",["t","T"]),n}return ue(r,[{key:"parse",value:function(a,i,o){switch(i){case"m":return Se(Ie.minute,a);case"mo":return o.ordinalNumber(a,{unit:"minute"});default:return Ce(i.length,a)}}},{key:"validate",value:function(a,i){return i>=0&&i<=59}},{key:"set",value:function(a,i,o){return a.setUTCMinutes(o,0,0),a}}]),r}(me),Yf=function(e){le(r,e);var t=fe(r);function r(){var n;se(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),N(R(n),"priority",50),N(R(n),"incompatibleTokens",["t","T"]),n}return ue(r,[{key:"parse",value:function(a,i,o){switch(i){case"s":return Se(Ie.second,a);case"so":return o.ordinalNumber(a,{unit:"second"});default:return Ce(i.length,a)}}},{key:"validate",value:function(a,i){return i>=0&&i<=59}},{key:"set",value:function(a,i,o){return a.setUTCSeconds(o,0),a}}]),r}(me),$f=function(e){le(r,e);var t=fe(r);function r(){var n;se(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),N(R(n),"priority",30),N(R(n),"incompatibleTokens",["t","T"]),n}return ue(r,[{key:"parse",value:function(a,i){var o=function(u){return Math.floor(u*Math.pow(10,-i.length+3))};return Ne(Ce(i.length,a),o)}},{key:"set",value:function(a,i,o){return a.setUTCMilliseconds(o),a}}]),r}(me),Uf=function(e){le(r,e);var t=fe(r);function r(){var n;se(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),N(R(n),"priority",10),N(R(n),"incompatibleTokens",["t","T","x"]),n}return ue(r,[{key:"parse",value:function(a,i){switch(i){case"X":return Ve(We.basicOptionalMinutes,a);case"XX":return Ve(We.basic,a);case"XXXX":return Ve(We.basicOptionalSeconds,a);case"XXXXX":return Ve(We.extendedOptionalSeconds,a);case"XXX":default:return Ve(We.extended,a)}}},{key:"set",value:function(a,i,o){return i.timestampIsSet?a:new Date(a.getTime()-o)}}]),r}(me),Hf=function(e){le(r,e);var t=fe(r);function r(){var n;se(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),N(R(n),"priority",10),N(R(n),"incompatibleTokens",["t","T","X"]),n}return ue(r,[{key:"parse",value:function(a,i){switch(i){case"x":return Ve(We.basicOptionalMinutes,a);case"xx":return Ve(We.basic,a);case"xxxx":return Ve(We.basicOptionalSeconds,a);case"xxxxx":return Ve(We.extendedOptionalSeconds,a);case"xxx":default:return Ve(We.extended,a)}}},{key:"set",value:function(a,i,o){return i.timestampIsSet?a:new Date(a.getTime()-o)}}]),r}(me),Wf=function(e){le(r,e);var t=fe(r);function r(){var n;se(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),N(R(n),"priority",40),N(R(n),"incompatibleTokens","*"),n}return ue(r,[{key:"parse",value:function(a){return Pa(a)}},{key:"set",value:function(a,i,o){return[new Date(o*1e3),{timestampIsSet:!0}]}}]),r}(me),Vf=function(e){le(r,e);var t=fe(r);function r(){var n;se(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),N(R(n),"priority",20),N(R(n),"incompatibleTokens","*"),n}return ue(r,[{key:"parse",value:function(a){return Pa(a)}},{key:"set",value:function(a,i,o){return[new Date(o),{timestampIsSet:!0}]}}]),r}(me),zf={G:new cf,y:new lf,Y:new ff,R:new df,u:new hf,Q:new pf,q:new mf,M:new vf,L:new gf,w:new bf,I:new Tf,d:new Ef,D:new Sf,E:new Cf,e:new Df,c:new Of,i:new Nf,a:new _f,b:new Mf,B:new jf,h:new kf,H:new Rf,K:new Lf,k:new Af,m:new Ff,s:new Yf,S:new $f,X:new Uf,x:new Hf,t:new Wf,T:new Vf},Bf=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,qf=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Gf=/^'([^]*?)'?$/,Qf=/''/g,Kf=/\S/,Zf=/[a-zA-Z]/;function ze(e,t,r,n){var a,i,o,s,u,l,f,h,b,T,x,D,P,_,z,Z,W,g;ae(3,arguments);var $=String(e),J=String(t),te=At(),B=(a=(i=n==null?void 0:n.locale)!==null&&i!==void 0?i:te.locale)!==null&&a!==void 0?a:Zl;if(!B.match)throw new RangeError("locale must contain match property");var oe=Oe((o=(s=(u=(l=n==null?void 0:n.firstWeekContainsDate)!==null&&l!==void 0?l:n==null||(f=n.locale)===null||f===void 0||(h=f.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&u!==void 0?u:te.firstWeekContainsDate)!==null&&s!==void 0?s:(b=te.locale)===null||b===void 0||(T=b.options)===null||T===void 0?void 0:T.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(oe>=1&&oe<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var re=Oe((x=(D=(P=(_=n==null?void 0:n.weekStartsOn)!==null&&_!==void 0?_:n==null||(z=n.locale)===null||z===void 0||(Z=z.options)===null||Z===void 0?void 0:Z.weekStartsOn)!==null&&P!==void 0?P:te.weekStartsOn)!==null&&D!==void 0?D:(W=te.locale)===null||W===void 0||(g=W.options)===null||g===void 0?void 0:g.weekStartsOn)!==null&&x!==void 0?x:0);if(!(re>=0&&re<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(J==="")return $===""?pe(r):new Date(NaN);var G={firstWeekContainsDate:oe,weekStartsOn:re,locale:B},y=[new uf],U=J.match(qf).map(function(j){var k=j[0];if(k in ma){var V=ma[k];return V(j,B.formatLong)}return j}).join("").match(Bf),q=[],F=ba(U),ne;try{var L=function(){var k=ne.value;!(n!=null&&n.useAdditionalWeekYearTokens)&&hl(k)&&va(k,J,e),!(n!=null&&n.useAdditionalDayOfYearTokens)&&dl(k)&&va(k,J,e);var V=k[0],Ee=zf[V];if(Ee){var C=Ee.incompatibleTokens;if(Array.isArray(C)){var ke=q.find(function(Fe){return C.includes(Fe.token)||Fe.token===V});if(ke)throw new RangeError("The format string mustn't contain `".concat(ke.fullToken,"` and `").concat(k,"` at the same time"))}else if(Ee.incompatibleTokens==="*"&&q.length>0)throw new RangeError("The format string mustn't contain `".concat(k,"` and any other token at the same time"));q.push({token:V,fullToken:k});var Ae=Ee.run($,k,B.match,G);if(!Ae)return{v:new Date(NaN)};y.push(Ae.setter),$=Ae.rest}else{if(V.match(Zf))throw new RangeError("Format string contains an unescaped latin alphabet character `"+V+"`");if(k==="''"?k="'":V==="'"&&(k=Xf(k)),$.indexOf(k)===0)$=$.slice(k.length);else return{v:new Date(NaN)}}};for(F.s();!(ne=F.n()).done;){var he=L();if(et(he)==="object")return he.v}}catch(j){F.e(j)}finally{F.f()}if($.length>0&&Kf.test($))return new Date(NaN);var v=y.map(function(j){return j.priority}).sort(function(j,k){return k-j}).filter(function(j,k,V){return V.indexOf(j)===k}).map(function(j){return y.filter(function(k){return k.priority===j}).sort(function(k,V){return V.subPriority-k.subPriority})}).map(function(j){return j[0]}),E=pe(r);if(isNaN(E.getTime()))return new Date(NaN);var H=el(E,Qc(E)),d={},S=ba(v),O;try{for(S.s();!(O=S.n()).done;){var M=O.value;if(!M.validate(H,G))return new Date(NaN);var A=M.set(H,d,G);Array.isArray(A)?(H=A[0],Xl(d,A[1])):H=A}}catch(j){S.e(j)}finally{S.f()}return H}function Xf(e){return e.match(Gf)[1].replace(Qf,"'")}function Jf(e){return ae(1,arguments),la(e,Date.now())}function ed(e,t){ae(2,arguments);var r=Oe(t);return Kt(e,-r)}function td(e,t){ae(2,arguments);var r=t-Wr(e);return r<=0&&(r+=7),Kt(e,r)}function rd(e,t){var r;ae(1,arguments);var n=Oe((r=t==null?void 0:t.additionalDigits)!==null&&r!==void 0?r:2);if(n!==2&&n!==1&&n!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var a=id(e),i;if(a.date){var o=sd(a.date,n);i=ud(o.restDateString,o.year)}if(!i||isNaN(i.getTime()))return new Date(NaN);var s=i.getTime(),u=0,l;if(a.time&&(u=cd(a.time),isNaN(u)))return new Date(NaN);if(a.timezone){if(l=ld(a.timezone),isNaN(l))return new Date(NaN)}else{var f=new Date(s+u),h=new Date(0);return h.setFullYear(f.getUTCFullYear(),f.getUTCMonth(),f.getUTCDate()),h.setHours(f.getUTCHours(),f.getUTCMinutes(),f.getUTCSeconds(),f.getUTCMilliseconds()),h}return new Date(s+u+l)}var tr={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},nd=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,ad=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,od=/^([+-])(\d{2})(?::?(\d{2}))?$/;function id(e){var t={},r=e.split(tr.dateTimeDelimiter),n;if(r.length>2)return t;if(/:/.test(r[0])?n=r[0]:(t.date=r[0],n=r[1],tr.timeZoneDelimiter.test(t.date)&&(t.date=e.split(tr.timeZoneDelimiter)[0],n=e.substr(t.date.length,e.length))),n){var a=tr.timezone.exec(n);a?(t.time=n.replace(a[1],""),t.timezone=a[1]):t.time=n}return t}function sd(e,t){var r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),n=e.match(r);if(!n)return{year:NaN,restDateString:""};var a=n[1]?parseInt(n[1]):null,i=n[2]?parseInt(n[2]):null;return{year:i===null?a:i*100,restDateString:e.slice((n[1]||n[2]).length)}}function ud(e,t){if(t===null)return new Date(NaN);var r=e.match(nd);if(!r)return new Date(NaN);var n=!!r[4],a=$t(r[1]),i=$t(r[2])-1,o=$t(r[3]),s=$t(r[4]),u=$t(r[5])-1;if(n)return md(t,s,u)?fd(t,s,u):new Date(NaN);var l=new Date(0);return!hd(t,i,o)||!pd(t,a)?new Date(NaN):(l.setUTCFullYear(t,i,Math.max(a,o)),l)}function $t(e){return e?parseInt(e):1}function cd(e){var t=e.match(ad);if(!t)return NaN;var r=Br(t[1]),n=Br(t[2]),a=Br(t[3]);return vd(r,n,a)?r*Ur+n*$r+a*1e3:NaN}function Br(e){return e&&parseFloat(e.replace(",","."))||0}function ld(e){if(e==="Z")return 0;var t=e.match(od);if(!t)return 0;var r=t[1]==="+"?-1:1,n=parseInt(t[2]),a=t[3]&&parseInt(t[3])||0;return gd(n,a)?r*(n*Ur+a*$r):NaN}function fd(e,t,r){var n=new Date(0);n.setUTCFullYear(e,0,4);var a=n.getUTCDay()||7,i=(t-1)*7+r+1-a;return n.setUTCDate(n.getUTCDate()+i),n}var dd=[31,null,31,30,31,30,31,31,30,31,30,31];function Ca(e){return e%400===0||e%4===0&&e%100!==0}function hd(e,t,r){return t>=0&&t<=11&&r>=1&&r<=(dd[t]||(Ca(e)?29:28))}function pd(e,t){return t>=1&&t<=(Ca(e)?366:365)}function md(e,t,r){return t>=1&&t<=53&&r>=0&&r<=6}function vd(e,t,r){return e===24?t===0&&r===0:r>=0&&r<60&&t>=0&&t<60&&e>=0&&e<25}function gd(e,t){return t>=0&&t<=59}function yd(e,t){ae(2,arguments);var r=pe(e),n=Oe(t),a=r.getFullYear(),i=r.getDate(),o=new Date(0);o.setFullYear(a,n,15),o.setHours(0,0,0,0);var s=ga(o);return r.setMonth(n,Math.min(i,s)),r}function bd(e,t){ae(2,arguments);var r=pe(e),n=Oe(t);return isNaN(r.getTime())?new Date(NaN):(r.setFullYear(n),r)}function Da(e,t){ae(2,arguments);var r=Oe(t);return it(e,-r)}function Oa(e,t){ae(2,arguments);var r=Oe(t);return Zt(e,-r)}function Ia(){return window.navigator.languages?window.navigator.languages[0]:window.navigator.language}function wd(e,t,r){const n=[];for(let a=e;a<=t;a++)n.push(r?r(a):a);return n}function Td(e,t){const r=e.target;return r?!t.isSameNode(r)&&!t.contains(r):!1}function xd(e,t){return e.isSameNode(t)||e.contains(t)}function Pd(e,t){const r=Object.entries(t),n=getComputedStyle(e);for(let a=0,i=r.length;a<i;a++){const[o,s]=r[a];if(typeof s=="string"&&s.indexOf(",")>-1){if(!s.split(",").map(l=>l.trim()).includes(n[o]))return!1}else if(n[o]!==s)return!1}return!0}function Ed(e,t){const r=Object.entries(t),n=getComputedStyle(e);for(let a=0,i=r.length;a<i;a++){const[o,s]=r[a];if(typeof s=="string"&&s.indexOf(",")>-1){if(s.split(",").map(l=>l.trim()).includes(n[o]))return!0}else if(n[o]===s)return!0}return!1}function Na(e,t,r=!1){return r&&Pd(e,t)||!r&&Ed(e,t)?e:e.parentElement?Na(e.parentElement,t):e}function _a(e,t){const r=Array.from(document.querySelectorAll("body *")),n=[];for(let a=0,i=r.length;a<i;a++){const o=getComputedStyle(r[a]);o[e]&&t(o[e])&&n.push(o[e])}return n}function yp(e){return e}function Sd(e){const t=document.documentElement;Object.keys(e).forEach(r=>{t.style.setProperty(r,e[r])})}function Cd(e){return{"--theme-bsc-primary-1":e.primary1,"--theme-bsc-primary-2":e.primary2,"--theme-bsc-primary-3":e.primary3,"--theme-bsc-primary-4":e.primary4,"--theme-bsc-primary-5":e.primary5,"--theme-bsc-gray-1":e.gray1||"#303030","--theme-bsc-gray-2":e.gray2||"#5f5f5f","--theme-bsc-gray-3":e.gray3||"#8f8f8f","--theme-bsc-gray-4":e.gray4||"#bebebe","--theme-bsc-gray-5":e.gray5||"#eeeeee","--theme-bsc-mono-dark-1":e.monoDark1||"#222222","--theme-bsc-mono-dark-2":e.monoDark2||"#3c3c3c","--theme-bsc-mono-dark-3":e.monoDark3||"#4e4e4e","--theme-bsc-mono-light-1":e.monoLight1||"#fefefe","--theme-bsc-mono-light-2":e.monoLight2||"#eeeeee","--theme-bsc-mono-light-3":e.monoLight3||"#cccccc","--theme-bsc-info":e.info||"#2e7ff8","--theme-bsc-success":e.success||"#53ae0c","--theme-bsc-warning":e.warning||"#ff6914","--theme-bsc-error":e.error||"#f01616"}}const qr=({template:e,props:t,children:r})=>e(t,r);var Dd=p;function Od(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var rr=Od(Dd),Id=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Nd=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},Ma=function(t){var r=t.color,n=r===void 0?"currentColor":r,a=t.size,i=a===void 0?24:a;t.children;var o=Nd(t,["color","size","children"]),s="remixicon-icon "+(o.className||"");return rr.default.createElement("svg",Id({},o,{className:s,width:i,height:i,fill:n,viewBox:"0 0 24 24"}),rr.default.createElement("path",{d:"M10.828 12l4.95 4.95-1.414 1.414L8 12l6.364-6.364 1.414 1.414z"}))},_d=rr.default.memo?rr.default.memo(Ma):Ma,Md=_d;const jd=Je(Md);var kd=p;function Rd(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var nr=Rd(kd),Ld=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ad=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},ja=function(t){var r=t.color,n=r===void 0?"currentColor":r,a=t.size,i=a===void 0?24:a;t.children;var o=Ad(t,["color","size","children"]),s="remixicon-icon "+(o.className||"");return nr.default.createElement("svg",Ld({},o,{className:s,width:i,height:i,fill:n,viewBox:"0 0 24 24"}),nr.default.createElement("path",{d:"M13.172 12l-4.95-4.95 1.414-1.414L16 12l-6.364 6.364-1.414-1.414z"}))},Fd=nr.default.memo?nr.default.memo(ja):ja,Yd=Fd;const $d=Je(Yd);var Ud=p;function Hd(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var ar=Hd(Ud),Wd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Vd=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},ka=function(t){var r=t.color,n=r===void 0?"currentColor":r,a=t.size,i=a===void 0?24:a;t.children;var o=Vd(t,["color","size","children"]),s="remixicon-icon "+(o.className||"");return ar.default.createElement("svg",Wd({},o,{className:s,width:i,height:i,fill:n,viewBox:"0 0 24 24"}),ar.default.createElement("path",{d:"M12 10.586l4.95-4.95 1.414 1.414-4.95 4.95 4.95 4.95-1.414 1.414-4.95-4.95-4.95 4.95-1.414-1.414 4.95-4.95-4.95-4.95L7.05 5.636z"}))},zd=ar.default.memo?ar.default.memo(ka):ka,Bd=zd;const Ra=Je(Bd);var qd=p;function Gd(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var or=Gd(qd),Qd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Kd=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},La=function(t){var r=t.color,n=r===void 0?"currentColor":r,a=t.size,i=a===void 0?24:a;t.children;var o=Kd(t,["color","size","children"]),s="remixicon-icon "+(o.className||"");return or.default.createElement("svg",Qd({},o,{className:s,width:i,height:i,fill:n,viewBox:"0 0 24 24"}),or.default.createElement("path",{d:"M17 3h4a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h4V1h2v2h6V1h2v2zm3 8H4v8h16v-8zm-5-6H9v2H7V5H4v4h16V5h-3v2h-2V5zm-9 8h2v2H6v-2zm5 0h2v2h-2v-2zm5 0h2v2h-2v-2z"}))},Zd=or.default.memo?or.default.memo(La):La,Xd=Zd;const Aa=Je(Xd);var Jd=p;function eh(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var ir=eh(Jd),th=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},rh=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},Fa=function(t){var r=t.color,n=r===void 0?"currentColor":r,a=t.size,i=a===void 0?24:a;t.children;var o=rh(t,["color","size","children"]),s="remixicon-icon "+(o.className||"");return ir.default.createElement("svg",th({},o,{className:s,width:i,height:i,fill:n,viewBox:"0 0 24 24"}),ir.default.createElement("path",{d:"M12 10.828l-4.95 4.95-1.414-1.414L12 8l6.364 6.364-1.414 1.414z"}))},nh=ir.default.memo?ir.default.memo(Fa):Fa,ah=nh;const Gr=Je(ah);var oh=p;function ih(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var sr=ih(oh),sh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},uh=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},Ya=function(t){var r=t.color,n=r===void 0?"currentColor":r,a=t.size,i=a===void 0?24:a;t.children;var o=uh(t,["color","size","children"]),s="remixicon-icon "+(o.className||"");return sr.default.createElement("svg",sh({},o,{className:s,width:i,height:i,fill:n,viewBox:"0 0 24 24"}),sr.default.createElement("path",{d:"M12 13.172l4.95-4.95 1.414 1.414L12 16 5.636 9.636 7.05 8.222z"}))},ch=sr.default.memo?sr.default.memo(Ya):Ya,lh=ch;const Qr=Je(lh);function $a(e,t,r){const n=i=>{const o=i.target,s=e.style.display!=="hidden";e&&s&&!xd(e,o)&&!a(r,o)&&t(!1),t(!0)},a=(i,o)=>{if(!i)return!1;for(let s=0,u=i.length;s<u;s++)if(i[s].isSameNode(o)||i[s].contains(o))return!0;return!1};return document.addEventListener("mousedown",n),n}function Ua(e){document.removeEventListener("mousedown",e)}function fh(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i<n.length;i++)a=n[i],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}function dh(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Xt(e,t)}var Kr={exports:{}},ur={exports:{}},ge={};/** @license React v16.13.1
33
33
  * react-is.production.min.js
34
34
  *
35
35
  * Copyright (c) Facebook, Inc. and its affiliates.
36
36
  *
37
37
  * This source code is licensed under the MIT license found in the
38
38
  * LICENSE file in the root directory of this source tree.
39
- */var Fa;function oh(){if(Fa)return ge;Fa=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,w=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,E=e?Symbol.for("react.lazy"):60116,D=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,R=e?Symbol.for("react.responder"):60118,H=e?Symbol.for("react.scope"):60119;function G(y){if(typeof y=="object"&&y!==null){var U=y.$$typeof;switch(U){case t:switch(y=y.type,y){case u:case l:case n:case i:case a:case h:return y;default:switch(y=y&&y.$$typeof,y){case s:case f:case E:case g:case o:return y;default:return U}}case r:return U}}}function V(y){return G(y)===l}return ge.AsyncMode=u,ge.ConcurrentMode=l,ge.ContextConsumer=s,ge.ContextProvider=o,ge.Element=t,ge.ForwardRef=f,ge.Fragment=n,ge.Lazy=E,ge.Memo=g,ge.Portal=r,ge.Profiler=i,ge.StrictMode=a,ge.Suspense=h,ge.isAsyncMode=function(y){return V(y)||G(y)===u},ge.isConcurrentMode=V,ge.isContextConsumer=function(y){return G(y)===s},ge.isContextProvider=function(y){return G(y)===o},ge.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===t},ge.isForwardRef=function(y){return G(y)===f},ge.isFragment=function(y){return G(y)===n},ge.isLazy=function(y){return G(y)===E},ge.isMemo=function(y){return G(y)===g},ge.isPortal=function(y){return G(y)===r},ge.isProfiler=function(y){return G(y)===i},ge.isStrictMode=function(y){return G(y)===a},ge.isSuspense=function(y){return G(y)===h},ge.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===n||y===l||y===i||y===a||y===h||y===w||typeof y=="object"&&y!==null&&(y.$$typeof===E||y.$$typeof===g||y.$$typeof===o||y.$$typeof===s||y.$$typeof===f||y.$$typeof===x||y.$$typeof===R||y.$$typeof===H||y.$$typeof===D)},ge.typeOf=G,ge}var ye={};/** @license React v16.13.1
39
+ */var Ha;function hh(){if(Ha)return ge;Ha=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,b=e?Symbol.for("react.suspense_list"):60120,T=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,D=e?Symbol.for("react.block"):60121,P=e?Symbol.for("react.fundamental"):60117,_=e?Symbol.for("react.responder"):60118,z=e?Symbol.for("react.scope"):60119;function Z(g){if(typeof g=="object"&&g!==null){var $=g.$$typeof;switch($){case t:switch(g=g.type,g){case u:case l:case n:case i:case a:case h:return g;default:switch(g=g&&g.$$typeof,g){case s:case f:case x:case T:case o:return g;default:return $}}case r:return $}}}function W(g){return Z(g)===l}return ge.AsyncMode=u,ge.ConcurrentMode=l,ge.ContextConsumer=s,ge.ContextProvider=o,ge.Element=t,ge.ForwardRef=f,ge.Fragment=n,ge.Lazy=x,ge.Memo=T,ge.Portal=r,ge.Profiler=i,ge.StrictMode=a,ge.Suspense=h,ge.isAsyncMode=function(g){return W(g)||Z(g)===u},ge.isConcurrentMode=W,ge.isContextConsumer=function(g){return Z(g)===s},ge.isContextProvider=function(g){return Z(g)===o},ge.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===t},ge.isForwardRef=function(g){return Z(g)===f},ge.isFragment=function(g){return Z(g)===n},ge.isLazy=function(g){return Z(g)===x},ge.isMemo=function(g){return Z(g)===T},ge.isPortal=function(g){return Z(g)===r},ge.isProfiler=function(g){return Z(g)===i},ge.isStrictMode=function(g){return Z(g)===a},ge.isSuspense=function(g){return Z(g)===h},ge.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===n||g===l||g===i||g===a||g===h||g===b||typeof g=="object"&&g!==null&&(g.$$typeof===x||g.$$typeof===T||g.$$typeof===o||g.$$typeof===s||g.$$typeof===f||g.$$typeof===P||g.$$typeof===_||g.$$typeof===z||g.$$typeof===D)},ge.typeOf=Z,ge}var ye={};/** @license React v16.13.1
40
40
  * react-is.development.js
41
41
  *
42
42
  * Copyright (c) Facebook, Inc. and its affiliates.
43
43
  *
44
44
  * This source code is licensed under the MIT license found in the
45
45
  * LICENSE file in the root directory of this source tree.
46
- */var $a;function ih(){return $a||($a=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,w=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,E=e?Symbol.for("react.lazy"):60116,D=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,R=e?Symbol.for("react.responder"):60118,H=e?Symbol.for("react.scope"):60119;function G(S){return typeof S=="string"||typeof S=="function"||S===n||S===l||S===i||S===a||S===h||S===w||typeof S=="object"&&S!==null&&(S.$$typeof===E||S.$$typeof===g||S.$$typeof===o||S.$$typeof===s||S.$$typeof===f||S.$$typeof===x||S.$$typeof===R||S.$$typeof===H||S.$$typeof===D)}function V(S){if(typeof S=="object"&&S!==null){var ke=S.$$typeof;switch(ke){case t:var Fe=S.type;switch(Fe){case u:case l:case n:case i:case a:case h:return Fe;default:var $e=Fe&&Fe.$$typeof;switch($e){case s:case f:case E:case g:case o:return $e;default:return ke}}case r:return ke}}}var y=u,U=l,ee=s,Q=o,X=t,ue=f,ie=n,se=E,T=g,W=r,q=i,F=a,te=h,A=!1;function de(S){return A||(A=!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.")),v(S)||V(S)===u}function v(S){return V(S)===l}function P(S){return V(S)===s}function d(S){return V(S)===o}function C(S){return typeof S=="object"&&S!==null&&S.$$typeof===t}function L(S){return V(S)===f}function z(S){return V(S)===n}function O(S){return V(S)===E}function k(S){return V(S)===g}function _(S){return V(S)===r}function M(S){return V(S)===i}function $(S){return V(S)===a}function Pe(S){return V(S)===h}ye.AsyncMode=y,ye.ConcurrentMode=U,ye.ContextConsumer=ee,ye.ContextProvider=Q,ye.Element=X,ye.ForwardRef=ue,ye.Fragment=ie,ye.Lazy=se,ye.Memo=T,ye.Portal=W,ye.Profiler=q,ye.StrictMode=F,ye.Suspense=te,ye.isAsyncMode=de,ye.isConcurrentMode=v,ye.isContextConsumer=P,ye.isContextProvider=d,ye.isElement=C,ye.isForwardRef=L,ye.isFragment=z,ye.isLazy=O,ye.isMemo=k,ye.isPortal=_,ye.isProfiler=M,ye.isStrictMode=$,ye.isSuspense=Pe,ye.isValidElementType=G,ye.typeOf=V}()),ye}var Ya;function Ua(){return Ya||(Ya=1,process.env.NODE_ENV==="production"?or.exports=oh():or.exports=ih()),or.exports}/*
46
+ */var Wa;function ph(){return Wa||(Wa=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,b=e?Symbol.for("react.suspense_list"):60120,T=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,D=e?Symbol.for("react.block"):60121,P=e?Symbol.for("react.fundamental"):60117,_=e?Symbol.for("react.responder"):60118,z=e?Symbol.for("react.scope"):60119;function Z(C){return typeof C=="string"||typeof C=="function"||C===n||C===l||C===i||C===a||C===h||C===b||typeof C=="object"&&C!==null&&(C.$$typeof===x||C.$$typeof===T||C.$$typeof===o||C.$$typeof===s||C.$$typeof===f||C.$$typeof===P||C.$$typeof===_||C.$$typeof===z||C.$$typeof===D)}function W(C){if(typeof C=="object"&&C!==null){var ke=C.$$typeof;switch(ke){case t:var Ae=C.type;switch(Ae){case u:case l:case n:case i:case a:case h:return Ae;default:var Fe=Ae&&Ae.$$typeof;switch(Fe){case s:case f:case x:case T:case o:return Fe;default:return ke}}case r:return ke}}}var g=u,$=l,J=s,te=o,B=t,oe=f,re=n,G=x,y=T,U=r,q=i,F=a,ne=h,L=!1;function he(C){return L||(L=!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.")),v(C)||W(C)===u}function v(C){return W(C)===l}function E(C){return W(C)===s}function H(C){return W(C)===o}function d(C){return typeof C=="object"&&C!==null&&C.$$typeof===t}function S(C){return W(C)===f}function O(C){return W(C)===n}function M(C){return W(C)===x}function A(C){return W(C)===T}function j(C){return W(C)===r}function k(C){return W(C)===i}function V(C){return W(C)===a}function Ee(C){return W(C)===h}ye.AsyncMode=g,ye.ConcurrentMode=$,ye.ContextConsumer=J,ye.ContextProvider=te,ye.Element=B,ye.ForwardRef=oe,ye.Fragment=re,ye.Lazy=G,ye.Memo=y,ye.Portal=U,ye.Profiler=q,ye.StrictMode=F,ye.Suspense=ne,ye.isAsyncMode=he,ye.isConcurrentMode=v,ye.isContextConsumer=E,ye.isContextProvider=H,ye.isElement=d,ye.isForwardRef=S,ye.isFragment=O,ye.isLazy=M,ye.isMemo=A,ye.isPortal=j,ye.isProfiler=k,ye.isStrictMode=V,ye.isSuspense=Ee,ye.isValidElementType=Z,ye.typeOf=W}()),ye}var Va;function za(){return Va||(Va=1,process.env.NODE_ENV==="production"?ur.exports=hh():ur.exports=ph()),ur.exports}/*
47
47
  object-assign
48
48
  (c) Sindre Sorhus
49
49
  @license MIT
50
- */var Kr,Ha;function sh(){if(Ha)return Kr;Ha=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function a(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var o={},s=0;s<10;s++)o["_"+String.fromCharCode(s)]=s;var u=Object.getOwnPropertyNames(o).map(function(f){return o[f]});if(u.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(f){l[f]=f}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Kr=a()?Object.assign:function(i,o){for(var s,u=n(i),l,f=1;f<arguments.length;f++){s=Object(arguments[f]);for(var h in s)t.call(s,h)&&(u[h]=s[h]);if(e){l=e(s);for(var w=0;w<l.length;w++)r.call(s,l[w])&&(u[l[w]]=s[l[w]])}}return u},Kr}var Qr,Wa;function Xr(){if(Wa)return Qr;Wa=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Qr=e,Qr}var Zr,Va;function za(){return Va||(Va=1,Zr=Function.call.bind(Object.prototype.hasOwnProperty)),Zr}var Jr,qa;function uh(){if(qa)return Jr;qa=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Xr(),r={},n=za();e=function(i){var o="Warning: "+i;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function a(i,o,s,u,l){if(process.env.NODE_ENV!=="production"){for(var f in i)if(n(i,f)){var h;try{if(typeof i[f]!="function"){var w=Error((u||"React class")+": "+s+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw w.name="Invariant Violation",w}h=i[f](o,f,u,s,null,t)}catch(E){h=E}if(h&&!(h instanceof Error)&&e((u||"React class")+": type specification of "+s+" `"+f+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof h+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),h instanceof Error&&!(h.message in r)){r[h.message]=!0;var g=l?l():"";e("Failed "+s+" type: "+h.message+(g??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Jr=a,Jr}var en,Ba;function ch(){if(Ba)return en;Ba=1;var e=Ua(),t=sh(),r=Xr(),n=za(),a=uh(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(s){var u="Warning: "+s;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function o(){return null}return en=function(s,u){var l=typeof Symbol=="function"&&Symbol.iterator,f="@@iterator";function h(v){var P=v&&(l&&v[l]||v[f]);if(typeof P=="function")return P}var w="<<anonymous>>",g={array:R("array"),bigint:R("bigint"),bool:R("boolean"),func:R("function"),number:R("number"),object:R("object"),string:R("string"),symbol:R("symbol"),any:H(),arrayOf:G,element:V(),elementType:y(),instanceOf:U,node:ue(),objectOf:Q,oneOf:ee,oneOfType:X,shape:se,exact:T};function E(v,P){return v===P?v!==0||1/v===1/P:v!==v&&P!==P}function D(v,P){this.message=v,this.data=P&&typeof P=="object"?P:{},this.stack=""}D.prototype=Error.prototype;function x(v){if(process.env.NODE_ENV!=="production")var P={},d=0;function C(z,O,k,_,M,$,Pe){if(_=_||w,$=$||k,Pe!==r){if(u){var S=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 S.name="Invariant Violation",S}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ke=_+":"+k;!P[ke]&&d<3&&(i("You are manually calling a React.PropTypes validation function for the `"+$+"` prop on `"+_+"`. 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."),P[ke]=!0,d++)}}return O[k]==null?z?O[k]===null?new D("The "+M+" `"+$+"` is marked as required "+("in `"+_+"`, but its value is `null`.")):new D("The "+M+" `"+$+"` is marked as required in "+("`"+_+"`, but its value is `undefined`.")):null:v(O,k,_,M,$)}var L=C.bind(null,!1);return L.isRequired=C.bind(null,!0),L}function R(v){function P(d,C,L,z,O,k){var _=d[C],M=F(_);if(M!==v){var $=te(_);return new D("Invalid "+z+" `"+O+"` of type "+("`"+$+"` supplied to `"+L+"`, expected ")+("`"+v+"`."),{expectedType:v})}return null}return x(P)}function H(){return x(o)}function G(v){function P(d,C,L,z,O){if(typeof v!="function")return new D("Property `"+O+"` of component `"+L+"` has invalid PropType notation inside arrayOf.");var k=d[C];if(!Array.isArray(k)){var _=F(k);return new D("Invalid "+z+" `"+O+"` of type "+("`"+_+"` supplied to `"+L+"`, expected an array."))}for(var M=0;M<k.length;M++){var $=v(k,M,L,z,O+"["+M+"]",r);if($ instanceof Error)return $}return null}return x(P)}function V(){function v(P,d,C,L,z){var O=P[d];if(!s(O)){var k=F(O);return new D("Invalid "+L+" `"+z+"` of type "+("`"+k+"` supplied to `"+C+"`, expected a single ReactElement."))}return null}return x(v)}function y(){function v(P,d,C,L,z){var O=P[d];if(!e.isValidElementType(O)){var k=F(O);return new D("Invalid "+L+" `"+z+"` of type "+("`"+k+"` supplied to `"+C+"`, expected a single ReactElement type."))}return null}return x(v)}function U(v){function P(d,C,L,z,O){if(!(d[C]instanceof v)){var k=v.name||w,_=de(d[C]);return new D("Invalid "+z+" `"+O+"` of type "+("`"+_+"` supplied to `"+L+"`, expected ")+("instance of `"+k+"`."))}return null}return x(P)}function ee(v){if(!Array.isArray(v))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("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])."):i("Invalid argument supplied to oneOf, expected an array.")),o;function P(d,C,L,z,O){for(var k=d[C],_=0;_<v.length;_++)if(E(k,v[_]))return null;var M=JSON.stringify(v,function(Pe,S){var ke=te(S);return ke==="symbol"?String(S):S});return new D("Invalid "+z+" `"+O+"` of value `"+String(k)+"` "+("supplied to `"+L+"`, expected one of "+M+"."))}return x(P)}function Q(v){function P(d,C,L,z,O){if(typeof v!="function")return new D("Property `"+O+"` of component `"+L+"` has invalid PropType notation inside objectOf.");var k=d[C],_=F(k);if(_!=="object")return new D("Invalid "+z+" `"+O+"` of type "+("`"+_+"` supplied to `"+L+"`, expected an object."));for(var M in k)if(n(k,M)){var $=v(k,M,L,z,O+"."+M,r);if($ instanceof Error)return $}return null}return x(P)}function X(v){if(!Array.isArray(v))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var P=0;P<v.length;P++){var d=v[P];if(typeof d!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+A(d)+" at index "+P+"."),o}function C(L,z,O,k,_){for(var M=[],$=0;$<v.length;$++){var Pe=v[$],S=Pe(L,z,O,k,_,r);if(S==null)return null;S.data&&n(S.data,"expectedType")&&M.push(S.data.expectedType)}var ke=M.length>0?", expected one of type ["+M.join(", ")+"]":"";return new D("Invalid "+k+" `"+_+"` supplied to "+("`"+O+"`"+ke+"."))}return x(C)}function ue(){function v(P,d,C,L,z){return W(P[d])?null:new D("Invalid "+L+" `"+z+"` supplied to "+("`"+C+"`, expected a ReactNode."))}return x(v)}function ie(v,P,d,C,L){return new D((v||"React class")+": "+P+" type `"+d+"."+C+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+L+"`.")}function se(v){function P(d,C,L,z,O){var k=d[C],_=F(k);if(_!=="object")return new D("Invalid "+z+" `"+O+"` of type `"+_+"` "+("supplied to `"+L+"`, expected `object`."));for(var M in v){var $=v[M];if(typeof $!="function")return ie(L,z,O,M,te($));var Pe=$(k,M,L,z,O+"."+M,r);if(Pe)return Pe}return null}return x(P)}function T(v){function P(d,C,L,z,O){var k=d[C],_=F(k);if(_!=="object")return new D("Invalid "+z+" `"+O+"` of type `"+_+"` "+("supplied to `"+L+"`, expected `object`."));var M=t({},d[C],v);for(var $ in M){var Pe=v[$];if(n(v,$)&&typeof Pe!="function")return ie(L,z,O,$,te(Pe));if(!Pe)return new D("Invalid "+z+" `"+O+"` key `"+$+"` supplied to `"+L+"`.\nBad object: "+JSON.stringify(d[C],null," ")+`
51
- Valid keys: `+JSON.stringify(Object.keys(v),null," "));var S=Pe(k,$,L,z,O+"."+$,r);if(S)return S}return null}return x(P)}function W(v){switch(typeof v){case"number":case"string":case"undefined":return!0;case"boolean":return!v;case"object":if(Array.isArray(v))return v.every(W);if(v===null||s(v))return!0;var P=h(v);if(P){var d=P.call(v),C;if(P!==v.entries){for(;!(C=d.next()).done;)if(!W(C.value))return!1}else for(;!(C=d.next()).done;){var L=C.value;if(L&&!W(L[1]))return!1}}else return!1;return!0;default:return!1}}function q(v,P){return v==="symbol"?!0:P?P["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&P instanceof Symbol:!1}function F(v){var P=typeof v;return Array.isArray(v)?"array":v instanceof RegExp?"object":q(P,v)?"symbol":P}function te(v){if(typeof v>"u"||v===null)return""+v;var P=F(v);if(P==="object"){if(v instanceof Date)return"date";if(v instanceof RegExp)return"regexp"}return P}function A(v){var P=te(v);switch(P){case"array":case"object":return"an "+P;case"boolean":case"date":case"regexp":return"a "+P;default:return P}}function de(v){return!v.constructor||!v.constructor.name?w:v.constructor.name}return g.checkPropTypes=a,g.resetWarningCache=a.resetWarningCache,g.PropTypes=g,g},en}var tn,Ga;function lh(){if(Ga)return tn;Ga=1;var e=Xr();function t(){}function r(){}return r.resetWarningCache=t,tn=function(){function n(o,s,u,l,f,h){if(h!==e){var w=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 w.name="Invariant Violation",w}}n.isRequired=n;function a(){return n}var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:a,element:n,elementType:n,instanceOf:a,node:n,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:r,resetWarningCache:t};return i.PropTypes=i,i},tn}if(process.env.NODE_ENV!=="production"){var fh=Ua(),dh=!0;Gr.exports=ch()(fh.isElement,dh)}else Gr.exports=lh()();var hh=Gr.exports;const J=Xe(hh),Ka={disabled:!1};var ph=process.env.NODE_ENV!=="production"?J.oneOfType([J.number,J.shape({enter:J.number,exit:J.number,appear:J.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&J.oneOfType([J.string,J.shape({enter:J.string,exit:J.string,active:J.string}),J.shape({enter:J.string,enterDone:J.string,enterActive:J.string,exit:J.string,exitDone:J.string,exitActive:J.string})]);const Qa=p.createContext(null);var vh=function(t){return t.scrollTop},Ft="unmounted",it="exited",st="entering",yt="entered",rn="exiting",Ke=function(e){ah(t,e);function t(n,a){var i;i=e.call(this,n,a)||this;var o=a,s=o&&!o.isMounting?n.enter:n.appear,u;return i.appearStatus=null,n.in?s?(u=it,i.appearStatus=st):u=yt:n.unmountOnExit||n.mountOnEnter?u=Ft:u=it,i.state={status:u},i.nextCallback=null,i}t.getDerivedStateFromProps=function(a,i){var o=a.in;return o&&i.status===Ft?{status:it}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(a){var i=null;if(a!==this.props){var o=this.state.status;this.props.in?o!==st&&o!==yt&&(i=st):(o===st||o===yt)&&(i=rn)}this.updateStatus(!1,i)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var a=this.props.timeout,i,o,s;return i=o=s=a,a!=null&&typeof a!="number"&&(i=a.exit,o=a.enter,s=a.appear!==void 0?a.appear:o),{exit:i,enter:o,appear:s}},r.updateStatus=function(a,i){if(a===void 0&&(a=!1),i!==null)if(this.cancelNextCallback(),i===st){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:He.findDOMNode(this);o&&vh(o)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===it&&this.setState({status:Ft})},r.performEnter=function(a){var i=this,o=this.props.enter,s=this.context?this.context.isMounting:a,u=this.props.nodeRef?[s]:[He.findDOMNode(this),s],l=u[0],f=u[1],h=this.getTimeouts(),w=s?h.appear:h.enter;if(!a&&!o||Ka.disabled){this.safeSetState({status:yt},function(){i.props.onEntered(l)});return}this.props.onEnter(l,f),this.safeSetState({status:st},function(){i.props.onEntering(l,f),i.onTransitionEnd(w,function(){i.safeSetState({status:yt},function(){i.props.onEntered(l,f)})})})},r.performExit=function(){var a=this,i=this.props.exit,o=this.getTimeouts(),s=this.props.nodeRef?void 0:He.findDOMNode(this);if(!i||Ka.disabled){this.safeSetState({status:it},function(){a.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:rn},function(){a.props.onExiting(s),a.onTransitionEnd(o.exit,function(){a.safeSetState({status:it},function(){a.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(a,i){i=this.setNextCallback(i),this.setState(a,i)},r.setNextCallback=function(a){var i=this,o=!0;return this.nextCallback=function(s){o&&(o=!1,i.nextCallback=null,a(s))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},r.onTransitionEnd=function(a,i){this.setNextCallback(i);var o=this.props.nodeRef?this.props.nodeRef.current:He.findDOMNode(this),s=a==null&&!this.props.addEndListener;if(!o||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],l=u[0],f=u[1];this.props.addEndListener(l,f)}a!=null&&setTimeout(this.nextCallback,a)},r.render=function(){var a=this.state.status;if(a===Ft)return null;var i=this.props,o=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var s=nh(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return p.createElement(Qa.Provider,{value:null},typeof o=="function"?o(a,s):p.cloneElement(p.Children.only(o),s))},t}(p.Component);Ke.contextType=Qa,Ke.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:J.shape({current:typeof Element>"u"?J.any:function(e,t,r,n,a,i){var o=e[t];return J.instanceOf(o&&"ownerDocument"in o?o.ownerDocument.defaultView.Element:Element)(e,t,r,n,a,i)}}),children:J.oneOfType([J.func.isRequired,J.element.isRequired]).isRequired,in:J.bool,mountOnEnter:J.bool,unmountOnExit:J.bool,appear:J.bool,enter:J.bool,exit:J.bool,timeout:function(t){var r=ph;t.addEndListener||(r=r.isRequired);for(var n=arguments.length,a=new Array(n>1?n-1:0),i=1;i<n;i++)a[i-1]=arguments[i];return r.apply(void 0,[t].concat(a))},addEndListener:J.func,onEnter:J.func,onEntering:J.func,onEntered:J.func,onExit:J.func,onExiting:J.func,onExited:J.func}:{};function bt(){}Ke.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:bt,onEntering:bt,onEntered:bt,onExit:bt,onExiting:bt,onExited:bt},Ke.UNMOUNTED=Ft,Ke.EXITED=it,Ke.ENTERING=st,Ke.ENTERED=yt,Ke.EXITING=rn;const mh=Ke,gh=({start:e,timeout:t=400,defaultStyle:r,transitionStyles:n,showTransitionOptions:a="cubic-bezier(0, 0, 0.2, 1)",hideTransitionOptions:i="linear",unmountOnExit:o=!1,onEntering:s,onEntered:u,onExit:l,onExited:f,children:h})=>{const w=r||{transition:`opacity ${t}ms ${a}`,opacity:0},g=n||{entering:{opacity:1},entered:{opacity:1},exiting:{transition:`opacity ${t}ms ${i}`,opacity:0},exited:{transition:`opacity ${t}ms ${i}`,opacity:0},unmounted:{}};return m.jsx(mh,{in:e,timeout:t,onEntering:s,onEntered:u,onExit:l,onExited:f,unmountOnExit:o,children:E=>h({state:E,defaultStyle:w,transitionStyles:g})})};var Xa=(e=>(e[e.TopLeft=0]="TopLeft",e[e.TopRight=1]="TopRight",e[e.BottomLeft=2]="BottomLeft",e[e.BottomRight=3]="BottomRight",e))(Xa||{}),Za=(e=>(e[e.TopLeft=0]="TopLeft",e[e.TopRight=1]="TopRight",e[e.BottomLeft=2]="BottomLeft",e[e.BottomRight=3]="BottomRight",e))(Za||{});class _e{static positionToTarget(t,r=2){const n=t.getBoundingClientRect();let a=0,i=0;const o=window.scrollY;switch(r){case 2:a=n.top+n.height+o,i=n.left;break;case 0:a=n.top+o,i=n.left;break;case 3:a=n.top+n.height+o,i=n.left+n.width;break;case 1:a=n.top+o,i=n.left+n.width}return{top:a,left:i}}static positionElementToTarget(t,r,n=0,a=2){let{left:i,top:o}=_e.positionToTarget(r,a);const s=t.getBoundingClientRect();switch(n){case 0:break;case 1:i=i-s.width;break;case 2:o=o-s.height;break;case 3:o=o-s.height,i=i-s.width;break}return{top:o,left:i}}static canPositionElementOnScreen(t,r){const n=_e.getScreenDimensions(),a=t.getBoundingClientRect(),i=_e.positionElementToTarget(t,r,0,2);if(i.left+a.width<n.width&&i.top+a.height<n.height||_e.positionElementToTarget(t,r,1,3).left>=0&&i.top+a.height<n.height)return!0;const s=_e.positionElementToTarget(t,r,2,0);if(s.left+a.width<n.width&&s.top>=0)return!0;const u=_e.positionElementToTarget(t,r,3,1);return u.left>=0&&u.top>=0}static positionElementToTargetOnScreen(t,r,n=0,a=2){const{left:i,top:o}=_e.positionElementToTarget(t,r,n,a),s=t.getBoundingClientRect(),u=_e.determineOffScreenLocation(s);if(u){if(n===0&&a===2){if(u.right&&!u.bottom)return _e.positionElementToTarget(t,r,1,3);if(u.bottom&&!u.right)return _e.positionElementToTarget(t,r,2,0);if(u.right&&u.bottom)return _e.positionElementToTarget(t,r,3,1)}else if(n===1&&a===3){if(u.left&&!u.bottom)return _e.positionElementToTarget(t,r,0,2);if(u.bottom&&!u.left)return _e.positionElementToTarget(t,r,3,1);if(u.left&&u.bottom)return _e.positionElementToTarget(t,r,2,0)}}return{top:o,left:i}}static determineOffScreenLocation(t){const r=_e.getScreenDimensions(),n={left:t.left<0,top:t.top<0,right:t.left+t.width>r.width,bottom:t.top+t.height>r.height};return n.left||n.top||n.right||n.bottom?n:void 0}static getScreenDimensions(){return{width:window.innerWidth,height:Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)}}}const Ja=({visible:e,target:t,targetPosition:r=Xa.BottomLeft,elementAlignment:n=Za.TopLeft,shouldTargetCloseOverlay:a=!0,shouldMatchTargetWidth:i=!1,shouldScrollCloseOverlay:o=!1,shouldCheckZIndex:s=!1,shouldRemainOnScreen:u=!1,unmountWhenHidden:l=!1,transitionDuration:f=400,showTransitionOptions:h="cubic-bezier(0, 0, 0.2, 1)",hideTransitionOptions:w="linear",shown:g,hidden:E,isClickedWithin:D,markupCreated:x,children:R})=>{const[H,G]=p.useState(-1),[V,y]=p.useState(e),[U,ee]=p.useState(!1),Q=p.useRef(!1),X=p.useRef(100),ue=p.useRef({left:0,top:0,width:0}),ie=p.useRef(),se=p.useRef(),T=p.useRef(),W=p.useRef(),q=p.useRef(),F=p.useRef();p.useEffect(()=>(u===!0&&(F.current=new ResizeObserver(A)),()=>{var O,k;u===!0&&(se.current&&((O=F.current)==null||O.unobserve(se.current)),(k=F.current)==null||k.disconnect())}),[u]),p.useEffect(()=>{if(t&&(ie.current=te(t),o&&(T.current=Na(ie.current,{overflow:"scroll, auto",overflowX:"scroll, auto",overflowY:"scroll, auto"}),T.current.tagName.toLowerCase()==="html"&&(T.current=document))),s){const O=pd("zIndex",k=>parseInt(k)>=100).map(k=>parseInt(k));O.length>0&&(X.current=Math.max(...O)+1)}e!==void 0&&y(e)},[t,e,o,s]);const te=O=>O.target?O.target:O,A=O=>{if(se.current){const k=_e.getScreenDimensions(),_=O[O.length-1].target,M=_.getBoundingClientRect(),$=_e.determineOffScreenLocation(M);if($){if(ie.current&&_e.canPositionElementOnScreen(_,ie.current)){const Pe=_e.positionElementToTargetOnScreen(se.current,ie.current,n,r);ue.current={...ue.current,...Pe}}else $.right?ue.current.left=k.width-M.width:$.left&&(ue.current.left=0),$.bottom?ue.current.top=k.height-M.height:$.top&&(ue.current.top=0);de()}}},de=Rt(()=>{Q.current=!Q.current,ee(Q.current)},20),v=()=>{G(X.current)},P=()=>{if(!se.current)return;g==null||g();let O;!a&&ie.current&&(O=[ie.current]);const k=_=>{_?D==null||D():y(!1)};W.current=th(se.current,k,O),o&&(q.current=kc(_=>se.current&&ld(_,se.current)&&y(!1),100,{leading:!0}),T.current&&T.current.addEventListener("scroll",q.current))},d=()=>{T.current&&q.current&&(T.current.removeEventListener("scroll",q.current),q.current=void 0),W.current&&rh(W.current)},C=()=>{G(-1),E==null||E()},L=O=>{var k,_;if(se.current=O,x==null||x(O),ie.current){const M=_e.positionElementToTarget(se.current,ie.current,n,r);ue.current={...M,width:ie.current.offsetWidth}}u===!0&&((k=F.current)==null||k.unobserve(se.current),(_=F.current)==null||_.observe(se.current))},z=p.useMemo(()=>{const O={top:`${ue.current.top}px`,left:`${ue.current.left}px`,zIndex:H};return i&&(O.width=`${ue.current.width}px`),O},[U,H,i]);return m.jsx(gh,{start:V,timeout:f,showTransitionOptions:h,hideTransitionOptions:w,onEntering:v,onEntered:P,onExit:d,onExited:C,unmountOnExit:l,children:({state:O,defaultStyle:k,transitionStyles:_})=>m.jsx("div",{className:"bsc-fixed bsc-bg-white dark:bsc-bg-mono-dark-1 bsc-border bsc-border-solid dark:bsc-text-mono-light-1 dark:bsc-border-mono-light-1 bsc-shadow",style:{...z,...k,..._[O]},ref:M=>M&&L(M),children:R})})};let ir;const yh=new Uint8Array(16);function bh(){if(!ir&&(ir=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!ir))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ir(yh)}const je=[];for(let e=0;e<256;++e)je.push((e+256).toString(16).slice(1));function wh(e,t=0){return je[e[t+0]]+je[e[t+1]]+je[e[t+2]]+je[e[t+3]]+"-"+je[e[t+4]]+je[e[t+5]]+"-"+je[e[t+6]]+je[e[t+7]]+"-"+je[e[t+8]]+je[e[t+9]]+"-"+je[e[t+10]]+je[e[t+11]]+je[e[t+12]]+je[e[t+13]]+je[e[t+14]]+je[e[t+15]]}const eo={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Th(e,t,r){if(eo.randomUUID&&!t&&!e)return eo.randomUUID();e=e||{};const n=e.random||(e.rng||bh)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,t){r=r||0;for(let a=0;a<16;++a)t[r+a]=n[a];return t}return wh(n)}class sr{static create(t){const r=[];let n=0;for(let a=0,i=t.formatParts.length;a<i;a++){const o=t.formatParts[a],s=n,u=s+o.characterCount;r.push({startPosition:s,endPosition:u,...o}),n=u}return r}}class xh{constructor(t,r){Y(this,"instanceCollection");Y(this,"formatPartList");Y(this,"inputSlotCollection");Y(this,"currentPartIndex",0);Y(this,"currentCursorPosition",0);Y(this,"inputElement");Y(this,"inputSelection",null);Y(this,"inputRange");Y(this,"textNode");this.instanceCollection=ut.getInstance(),this.formatPartList=sr.create(t),this.inputSlotCollection=this.instanceCollection.getInputSlotInstance(r,t)}getCursorPosition(){return this.currentCursorPosition}getCurrentPartIndex(){return this.currentPartIndex}setInputElement(t){this.inputElement=t}setCursorToCurrentPosition(){this.setCursorSelection(this.currentCursorPosition)}setCursorPosition(t){this.setCursorSelection(t)}setCursorSelection(t,r){this.createInputRangeSelection(),this.inputRange&&this.textNode&&(this.inputRange.setStart(this.textNode,t),this.inputRange.setEnd(this.textNode,r||t),this.currentCursorPosition=r||t,this.setPartIndexByCursorPosition())}findCursorPosition(){var r,n;const t=(r=window.getSelection())==null?void 0:r.getRangeAt(0);if(this.inputElement&&t){const a=document.createTreeWalker(this.inputElement,NodeFilter.SHOW_TEXT,u=>{const l=document.createRange();return l.selectNodeContents(u),l.compareBoundaryPoints(Range.END_TO_END,t)<1?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT});let i=0;for(;a.nextNode();)i+=((n=a.currentNode.textContent)==null?void 0:n.length)||0;t.startContainer.nodeType===Node.TEXT_NODE&&(i+=t.startOffset);const o=this.inputSlotCollection.getLastSlotWithData(),s=o.startPosition+o.partText.length;this.setCursorSelection(i>s?s:i)}}isAtLastPart(){return this.currentPartIndex===this.formatPartList.length-1}moveHome(){const t=this.inputSlotCollection.getFirstSlot();this.setCursorSelection(t.startPosition)}moveEnd(){const t=this.inputSlotCollection.getLastSlotWithData(),r=t.startPosition+t.partText.length;this.setCursorSelection(r)}moveCursorLeft(){if(this.currentCursorPosition>0){const t=this.currentCursorPosition-1;let r=this.formatPartList[this.currentPartIndex];if(t>=r.startPosition&&t<=r.endPosition)this.setCursorSelection(t);else for(let n=this.currentPartIndex-1;n>=0;n--)r=this.formatPartList[n],t>=r.startPosition&&t<=r.endPosition&&(r.isSeparator?this.setCursorSelection(this.formatPartList[n-1].endPosition):this.setCursorSelection(t))}}moveCursorRight(){const t=this.inputSlotCollection.getLastSlotWithData(),r=t.startPosition+t.partText.length;if(this.currentCursorPosition<r){const n=this.currentCursorPosition+1;let a=this.formatPartList[this.currentPartIndex];if(n>=a.startPosition&&n<=a.endPosition)this.setCursorSelection(n);else for(let i=this.currentPartIndex+1,o=this.formatPartList.length;i<o;i++)a=this.formatPartList[i],n>=a.startPosition&&n<=a.endPosition&&(a.isSeparator?this.setCursorSelection(this.formatPartList[i+1].startPosition):this.setCursorSelection(n))}}moveToNextInputPart(){if(this.currentPartIndex<this.formatPartList.length-1){const t=this.findNextEditablePart();t&&(this.currentPartIndex=t.partIndex,this.setCursorSelection(t.startPosition))}}moveToPreviousInputPart(){if(this.currentPartIndex>0){const t=this.findPreviousEditablePart();t&&(this.currentPartIndex=t.partIndex,this.setCursorSelection(t.endPosition))}}findNextEditablePart(){return this.inputSlotCollection.getNextSlot(this.currentPartIndex)}findPreviousEditablePart(){return this.inputSlotCollection.getPreviousSlot(this.currentPartIndex)}setPartIndexByCursorPosition(){for(let t=0;t<this.formatPartList.length;t++){const r=this.formatPartList[t];if(this.currentCursorPosition>=r.startPosition&&this.currentCursorPosition<=r.endPosition){if(r.isSeparator){this.currentCursorPosition=this.formatPartList[t+1].startPosition,this.currentPartIndex=t+1;break}this.currentPartIndex=t;break}}}createInputRangeSelection(){var t,r;this.inputElement&&(this.inputSelection=window.getSelection(),this.inputRange=document.createRange(),(t=this.inputSelection)==null||t.removeAllRanges(),this.inputRange.selectNodeContents(this.inputElement),this.inputRange.collapse(!0),(r=this.inputSelection)==null||r.addRange(this.inputRange),this.inputElement.firstChild&&(this.textNode=this.inputElement.firstChild))}}class Ph{static create(t){const r=[];for(let n=0,a=t.length;n<a;n++){const i=t[n];i.isSeparator||r.push({partIndex:n,partText:"",isComplete:!1,...i})}return r}}class Eh{constructor(t){Y(this,"inputSlots");this.inputSlots=Ph.create(sr.create(t))}clearAllSlots(){for(let t=0,r=this.inputSlots.length;t<r;t++)this.inputSlots[t].partText=""}getSlot(t){return this.inputSlots.find(r=>r.partIndex===t)}getFirstSlot(){return this.inputSlots[0]}getNextSlot(t){const r=this.inputSlots.findIndex(n=>n.partIndex===t);if(r>-1&&r+1<this.inputSlots.length)return this.inputSlots[r+1]}getPreviousSlot(t){const r=this.inputSlots.findIndex(n=>n.partIndex===t);if(r>-1&&r-1>=0)return this.inputSlots[r-1]}getLastSlotWithData(){const t=this.inputSlots.findIndex(n=>!n.isComplete);let r=t;for(let n=t+1,a=this.inputSlots.length;n<a;n++)this.inputSlots[n].partText.length>0&&(r=n);return this.inputSlots[r>-1?r:0]}allSlotsCompleted(){return this.inputSlots.every(t=>t.isComplete)}allSlotsEmpty(){return this.inputSlots.every(t=>t.partText.length===0)}}const fr=class fr{constructor(){Y(this,"navigatorInstances");Y(this,"inputSlotInstances");this.navigatorInstances={},this.inputSlotInstances={}}static getInstance(){return this.instance||(this.instance=new fr),this.instance}getNavigatorInstance(t,r){return this.navigatorInstances[t]||(this.navigatorInstances[t]=new xh(r,t)),this.navigatorInstances[t]}getInputSlotInstance(t,r){return this.inputSlotInstances[t]||(this.inputSlotInstances[t]=new Eh(r)),this.inputSlotInstances[t]}removeInstances(t){this.navigatorInstances[t]&&delete this.navigatorInstances[t],this.inputSlotInstances[t]&&delete this.inputSlotInstances[t]}};Y(fr,"instance");let ut=fr;class nn{constructor(t,r){Y(this,"instanceCollection");Y(this,"formatPartList");Y(this,"inputSlotCollection");Y(this,"inputElement");this.instanceCollection=ut.getInstance(),this.formatPartList=sr.create(t),this.inputSlotCollection=this.instanceCollection.getInputSlotInstance(r,t)}setInputElement(t){this.inputElement=t}render(){var r;let t="";for(let n=0,a=this.formatPartList.length;n<a;n++){const i=this.formatPartList[n];if(i.isSeparator)t+=i.inputText;else{const o=this.inputSlotCollection.getSlot(n);o&&(t+=o.partText+((r=o.inputText)==null?void 0:r.repeat(o.characterCount-o.partText.length)))}}this.inputElement&&(this.inputElement.innerHTML=t)}}var qe=(e=>(e[e.Text=0]="Text",e[e.Numeric=1]="Numeric",e))(qe||{});class to{constructor(){Y(this,"numberKeys",["0","1","2","3","4","5","6","7","8","9"]);Y(this,"movementKeys",["ArrowLeft","ArrowRight","Home","End"]);Y(this,"editingKeys",["Backspace","Delete"]);Y(this,"ignoreKeys",["Shift","Alt","Control","Fn","Meta"])}isNumberKey(t){return this.numberKeys.includes(t)}isMovementKey(t){return this.movementKeys.includes(t.key)}isEditingKey(t){return this.editingKeys.includes(t.key)}isIgnoreKey(t){return this.ignoreKeys.includes(t.key)}}class Sh{constructor(t){Y(this,"_currentIndex",0);Y(this,"index",0);Y(this,"formatParts");this.formatParts=sr.create(t)}get currentIndex(){return this._currentIndex}hasNext(){return this.index<this.formatParts.length}next(){if(this.index<this.formatParts.length)return this._currentIndex=this.index++,this.formatParts[this._currentIndex]}peek(){if(this.index<this.formatParts.length)return this.formatParts[this.index]}reset(){this.index=0}}class ro{constructor(t,r){Y(this,"instanceCollection");Y(this,"inputSlotCollection");Y(this,"formatNavigator");Y(this,"keyTypeChecker");Y(this,"formatRenderer");Y(this,"formatPartList");this.format=t,this.instanceCollection=ut.getInstance(),this.inputSlotCollection=this.instanceCollection.getInputSlotInstance(r,t),this.formatNavigator=this.instanceCollection.getNavigatorInstance(r,t),this.keyTypeChecker=new to,this.formatRenderer=new nn(t,r),this.formatPartList=new Sh(t)}setInputElement(t){this.formatRenderer.setInputElement(t)}processKeyPress(t){if(this.keyTypeChecker.isEditingKey(t)){this.processEditRules(t);return}this.processInputRules(t)}processInputValue(t){var n;this.inputSlotCollection.clearAllSlots(),this.formatPartList.reset();let r=0;for(;this.formatPartList.hasNext();){const a=this.formatPartList.next();if(a&&!a.isSeparator)if(((n=this.formatPartList.peek())==null?void 0:n.isSeparator)===!0){const i=this.formatPartList.currentIndex,o=this.formatPartList.next();if(o&&o.inputText){const s=t.indexOf(o.inputText,r),u=this.inputSlotCollection.getSlot(i);if(u&&s>-1){const l=s-r>u.characterCount?r+u.characterCount:s;u.partText=t.substring(r,l),this.processSlotRules(u),r=s+o.characterCount}}}else{const i=this.inputSlotCollection.getSlot(this.formatPartList.currentIndex);i&&(i.partText=t.substring(r,r+i.characterCount),this.processSlotRules(i))}}}processEditRules(t){const r=this.inputSlotCollection.getSlot(this.formatNavigator.getCurrentPartIndex());if(!r)return;const n=this.formatNavigator.getCursorPosition(),a=n-r.startPosition,i=this.format.deleteShiftsFormatPart||!1;switch(t.key){case"Backspace":{if(!(r.startPosition===n))r.partText=r.partText.substring(0,a-1)+r.partText.substring(a),i&&this.shiftFormatParts(r),this.formatRenderer.render(),this.formatNavigator.moveCursorLeft(),this.processSlotRules(r,!0);else{this.processSlotRules(r,!0);const s=this.inputSlotCollection.getPreviousSlot(r.partIndex);s&&(s.partText=s.partText.substring(0,s.partText.length-1),i&&this.shiftFormatParts(s),this.formatRenderer.render(),this.formatNavigator.setCursorPosition(s.startPosition+s.partText.length),this.processSlotRules(s,!0))}break}case"Delete":r.partText=r.partText.substring(0,a)+r.partText.substring(a+1),i&&this.shiftFormatParts(r),this.formatRenderer.render(),this.formatNavigator.setCursorToCurrentPosition(),this.processSlotRules(r,!0);break}}shiftFormatParts(t){let r=t,n;for(;(n=this.inputSlotCollection.getNextSlot(r.partIndex))!==void 0;){const a=n.partText.substring(0,1);n.partText=n.partText.substring(1),r.partText=r.partText+a,r=n}}processInputRules(t){const r=this.inputSlotCollection.getSlot(this.formatNavigator.getCurrentPartIndex());if(!r)return;const{key:n}=t,a=r.characterCount,i=r.partText;if(r.valueType===qe.Numeric){if(!this.keyTypeChecker.isNumberKey(n))return;const o=r.maximumValue,s=r.exceedingMaximumValueCausesTab||!1,u=r.padWithZeros||!1,l=parseInt(this.createNewValue(r,n));if(o&&l>o)if(s){u&&(r.partText=r.partText.padStart(a,"0")),r.isComplete=!0;const f=this.inputSlotCollection.getNextSlot(r.partIndex);f&&!f.isComplete&&(f.partText=n),this.formatRenderer.render(),f&&this.formatNavigator.setCursorPosition(f.isComplete?f.startPosition:f.startPosition+1)}else return;else i.length+1===a?(this.addToInputSlot(n),r.isComplete=!0,this.formatRenderer.render(),this.formatNavigator.isAtLastPart()?this.formatNavigator.moveCursorRight():this.formatNavigator.moveToNextInputPart()):i.length+1<a&&(this.addToInputSlot(n),this.formatRenderer.render(),this.formatNavigator.moveCursorRight())}else i.length+1===a?(this.addToInputSlot(n),r.isComplete=!0,this.formatRenderer.render(),this.formatNavigator.isAtLastPart()?this.formatNavigator.moveCursorRight():this.formatNavigator.moveToNextInputPart()):(this.addToInputSlot(n),this.formatRenderer.render(),this.formatNavigator.moveCursorRight())}addToInputSlot(t){const r=this.inputSlotCollection.getSlot(this.formatNavigator.getCurrentPartIndex());r&&(r.partText=this.createNewValue(r,t))}createNewValue(t,r){const n=t.partText,a=this.formatNavigator.getCursorPosition();if(a>=t.startPosition+t.partText.length)return n+r;{const i=a-t.startPosition;return n.substring(0,i)+r+n.substring(i)}}processSlotRules(t,r=!1){const n=t.characterCount,a=t.allCharactersRequired||!1;if(t.valueType===qe.Numeric){const i=t.minimumValue,o=t.maximumValue;if(a)t.isComplete=t.partText.length===n;else if(i!==void 0&&o!==void 0){const s=t.padWithZeros||!1,u=parseInt(t.partText);t.isComplete=u>=i&&u<=o,t.isComplete&&s&&!r&&(t.partText=t.partText.padStart(n,"0"))}else t.isComplete=t.partText.length>0}else a?t.isComplete=t.partText.length===n:t.isComplete=t.partText.length>0}}class Ch{constructor(t,r){Y(this,"instanceCollection");Y(this,"formatNavigator");Y(this,"ruleProcessor");Y(this,"keyTypeChecker");Y(this,"formatRenderer");this.format=t,this.instanceCollection=ut.getInstance(),this.formatNavigator=this.instanceCollection.getNavigatorInstance(r,t),this.ruleProcessor=new ro(t,r),this.keyTypeChecker=new to,this.formatRenderer=new nn(t,r)}setInputElement(t){this.ruleProcessor.setInputElement(t),this.formatRenderer.setInputElement(t)}processMovementKey(t){const{key:r,metaKey:n}=t;switch(r){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();break}}processKeyPress(t){return this.keyTypeChecker.isIgnoreKey(t)?!1:this.keyTypeChecker.isMovementKey(t)?(this.processMovementKey(t),!1):(this.ruleProcessor.processKeyPress(t),!0)}}class Dh{constructor(t,r=""){Y(this,"instanceId");Y(this,"instanceCollection");Y(this,"keyProcessor");Y(this,"formatNavigator");Y(this,"formatRenderer");Y(this,"inputSlotCollection");Y(this,"inputRuleProcessor");Y(this,"previousOutputValue","");Y(this,"inputElementSet",!1);Y(this,"isInputFocused",!1);Y(this,"inputElement");Y(this,"onFormatChange");this.inputValue=r,this.instanceId=Th(),this.instanceCollection=ut.getInstance(),this.keyProcessor=new Ch(t,this.instanceId),this.formatNavigator=this.instanceCollection.getNavigatorInstance(this.instanceId,t),this.formatRenderer=new nn(t,this.instanceId),this.inputSlotCollection=this.instanceCollection.getInputSlotInstance(this.instanceId,t),this.inputRuleProcessor=new ro(t,this.instanceId)}inputElementCreated(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)}inputFocused(){this.isInputFocused=!0,this.formatRenderer.render(),setTimeout(()=>this.formatNavigator.findCursorPosition())}inputBlurred(){this.isInputFocused=!1}inputValuePassed(t){this.inputValue=t,this.inputElementSet&&(this.inputValue.length>0?this.inputRuleProcessor.processInputValue(t):(this.inputSlotCollection.clearAllSlots(),this.previousOutputValue=void 0),setTimeout(()=>{var r;this.formatRenderer.render(),this.isInputFocused&&this.formatNavigator.setCursorToCurrentPosition(),this.inputValue.length>0&&(this.previousOutputValue=(r=this.inputElement)==null?void 0:r.innerHTML)}))}registerFormatChangeEvent(t){this.onFormatChange=t}mouseUpHandler(){this.formatNavigator.findCursorPosition()}keyDownHandler(t){t.key!=="Tab"&&(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()&&this.previousOutputValue!==void 0&&(this.previousOutputValue=void 0,this.onFormatChange())))}dispose(){this.instanceCollection.removeInstances(this.instanceId)}}const Oh=(e,t)=>{const{value:r="",format:n,readOnly:a=!1,debounceTime:i=800,fillContainer:o=!0,leftElement:s,rightElement:u,className:l,leftElementClassName:f,rightElementClassName:h,isSingleLine:w=!1,allowSingleLineScroll:g=!1,isInputValid:E,onChange:D,onFocus:x,onBlur:R,onElementCreate:H,onLeftElementClick:G,onRightElementClick:V}=e,[y,U]=p.useState(!0),ee=p.useRef(),Q=p.useRef(),X=p.useRef();p.useEffect(()=>()=>{var A;(A=X.current)==null||A.dispose()},[]),p.useEffect(()=>{var A;(A=X.current)==null||A.inputValuePassed(r)},[r]),p.useEffect(()=>{var A,de,v;(A=X.current)==null||A.dispose(),n&&(X.current=new Dh(n,r),Q.current&&((de=X.current)==null||de.inputElementCreated(Q.current)),(v=X.current)==null||v.registerFormatChangeEvent(ue))},[n]);const ue=p.useCallback(A=>{E?E(A)?(U(!0),D==null||D(A)):U(!1):D==null||D(A)},[D]),ie=p.useCallback(A=>{var de;(de=X.current)==null||de.inputFocused(),x==null||x(A)},[x]),se=p.useCallback(A=>{var de;(de=X.current)==null||de.inputBlurred(),R==null||R(A)},[R]),T=p.useCallback(()=>{var A;(A=X.current)==null||A.mouseUpHandler()},[]),W=p.useCallback(A=>{var de;(de=X.current)==null||de.keyDownHandler(A)},[]),q=p.useCallback(A=>{var de,v,P,d,C,L,z,O,k;(v=(de=ee.current)==null?void 0:de.inputElement)==null||v.removeEventListener("keydown",W),(d=(P=ee.current)==null?void 0:P.inputElement)==null||d.removeEventListener("mouseup",T),ee.current=A,(L=(C=ee.current)==null?void 0:C.inputElement)==null||L.addEventListener("keydown",W),(O=(z=ee.current)==null?void 0:z.inputElement)==null||O.addEventListener("mouseup",T),Q.current=(k=ee.current)==null?void 0:k.inputElement},[]),F=p.useCallback(()=>{var A;(A=ee.current)==null||A.focus()},[]);p.useImperativeHandle(t,()=>({focus:F}));const te=Ze(l,{"!bsc-border-error":!y});return m.jsx(Ar,{ref:A=>A&&q(A),readOnly:a,debounceTime:i,fillContainer:o,leftElement:s,rightElement:u,className:te,leftElementClassName:f,rightElementClassName:h,isSingleLine:w,allowSingleLineScroll:g,onFocus:ie,onBlur:se,onElementCreate:H,onLeftElementClick:G,onRightElementClick:V})},no=p.forwardRef(Oh),an=p.createContext(void 0);function ao(e,t,r=!0){var w,g;const n=ma(e),a=la(e),i=Hl(e);let o=Ur(a)-(((w=t.options)==null?void 0:w.weekStartsOn)||0);o=o===-1?6:o;const s=Ur(i)-(((g=t.options)==null?void 0:g.weekStartsOn)||0),u=Uc({start:a,end:i}),l=n+o>35?6:5,f=oo(l,7,{dayValue:null,isCurrent:!0});let h=1;for(let E=0,D=l;E<D;E++){for(let x=E>0?0:o;x<7;x++){const R=u[h-1];if(R.setHours(e.getHours(),e.getMinutes(),e.getSeconds()),f[E][x].dayValue=R,++h>n)break}if(h>n)break}if(o>0&&r)for(let E=0;E<o;E++)f[0][E].dayValue=Wf(a,o-E),f[0][E].isCurrent=!1;if(s>-1&&r)for(let E=6;E>s;E--)f[l-1][E].dayValue=Bt(i,E-s),f[l-1][E].isCurrent=!1;return f}function oo(e,t,r){const n=[];for(let a=0,i=e;a<i;a++){const o=[];for(let s=0,u=t;s<u;s++){const l=Nh(r)?r:{...r};o.push(l)}n.push(o)}return n}function Nh(e){const t=typeof e;return t==="string"||t==="number"||t==="boolean"||e instanceof Date}function Ih(e){var n;const t=Vf(new Date,((n=e.options)==null?void 0:n.weekStartsOn)||0),r=[];for(let a=0;a<7;a++)r.push(Bt(t,a).toLocaleDateString(e.code,{weekday:"short"}));return r}function _h(e){const t=new Date(Date.UTC(2020,0,1)),r=[[{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:""}]];let n=0;for(let a=0;a<3;a++)for(let i=0;i<4;i++)r[a][i]={monthNumber:n,monthName:at(t,n++).toLocaleDateString(e.code,{month:"short"})};return r}function Mh(e,t){const r=new Date(e.getTime()),n=Math.floor(r.getFullYear()/10)*10;r.setFullYear(n);const a=Hc({start:r,end:Gt(r,9)}),i=oo(3,4,"");let o=0;for(let s=0;s<3;s++)for(let u=0;u<4&&(i[s][u]=a[o++].toLocaleDateString(t.code,{year:"numeric"}),o!==a.length);u++);return i}function Rh(e){const t=new Date;return t.setHours(0,0,0,0),t.toLocaleTimeString(e.code)}function kh(e,t,r){return e.getTime()>=t.getTime()&&e.getTime()<=r.getTime()}async function io(e){return(await import(`/node_modules/date-fns/locale/${jh(e)}`)).default}function jh(e){const[t,r]=e.split("-");switch(t){case"af":return"af";case"ar":switch(r){case"DZ":return"ar-DZ";case"EG":return"ar-EG";case"MA":return"ar-MA";case"SA":return"ar-SA";case"TN":return"ar-TN";default:return"ar"}case"az":return"az";case"be":switch(r){case"tarask":return"be-tarask";default:return"be"}case"bg":return"bg";case"bn":return"bn";case"bs":return"bs";case"ca":return"ca";case"cs":return"cs";case"cy":return"cy";case"da":return"da";case"de":switch(r){case"AT":return"de-AT";default:return"de"}case"el":return"el";case"en":switch(r){case"AU":return"en-AU";case"CA":return"en-CA";case"GB":return"en-GB";case"IE":return"en-IE";case"IN":return"en-IN";case"NZ":return"en-NZ";case"US":return"en-US";default:return"en-ZA"}case"eo":return"eo";case"es":return"es";case"et":return"et";case"eu":return"eu";case"fa":return"fa-IR";case"fi":return"fi";case"fr":switch(r){case"CA":return"fr-CA";case"CH":return"fr-CH";default:return"fr"}case"fy":return"fy";case"gd":return"gd";case"gl":return"gl";case"gu":return"gu";case"he":return"he";case"hi":return"hi";case"hr":return"hr";case"ht":return"ht";case"hu":return"hu";case"hy":return"hy";case"id":return"id";case"is":return"is";case"it":switch(r){case"CH":return"it-CH";default:return"it"}case"ja":switch(r){case"Hira":return"ja-Hira";default:return"ja"}case"ka":return"ka";case"kk":return"kk";case"km":return"km";case"kn":return"kn";case"ko":return"ko";case"lb":return"lb";case"lt":return"lt";case"lv":return"lv";case"mk":return"mk";case"mn":return"mn";case"ms":return"ms";case"mt":return"mt";case"nb":return"nb";case"nl":switch(r){case"BE":return"nl-BE";default:return"nl"}case"nn":return"nn";case"oc":return"oc";case"pl":return"pl";case"pt":switch(r){case"BR":return"pt-BR";default:return"pt"}case"ro":return"ro";case"ru":return"ru";case"sk":return"sk";case"sl":return"sl";case"sq":return"sq";case"sr":switch(r){case"Latn":return"sr-Latn";default:return"sr"}case"sv":return"sv";case"ta":return"ta";case"te":return"te";case"th":return"th";case"tr":return"tr";case"ug":return"ug";case"uk":return"uk";case"uz":switch(r){case"Cyrl":return"uz-Cyrl";default:return"uz"}case"vi":return"vi";case"zh":switch(r){case"CN":return"zh-CN";case"HK":return"zh-HK";default:return"zh-TW"}default:return"en-AU"}}function $t(e,t){const r=zf(e);if(isNaN(r.valueOf())){let n=ze(e,"P pp",new Date,{locale:t});return!isNaN(n.valueOf())||(n=ze(e,"Pp",new Date,{locale:t}),!isNaN(n.valueOf()))||(n=ze(e,"P HH:mm",new Date,{locale:t}),!isNaN(n.valueOf()))||(n=ze(e,"P hh:mm a..aaa",new Date,{locale:t}),!isNaN(n.valueOf()))||(n=ze(e,"P HH:mm:ss",new Date,{locale:t}),!isNaN(n.valueOf()))||(n=ze(e,"P hh:mm:ss a..aaa",new Date,{locale:t}),!isNaN(n.valueOf()))||(n=ze(e,"P",new Date,{locale:t}),!isNaN(n.valueOf()))||(n=ze(e,"P p",new Date,{locale:t}),!isNaN(n.valueOf()))||(n=ze(e,"pp",new Date,{locale:t}),!isNaN(n.valueOf()))||(n=ze(e,"p",new Date,{locale:t}),!isNaN(n.valueOf()))?n:void 0}return r}function so(e,t){const r=e.split("-");if(r.length!==2)return;const n=$t(r[0].trim(),t);if(!n)return;const a=$t(r[1].trim(),t);if(a)return[n,a]}var we=(e=>(e[e.DateTime=0]="DateTime",e[e.DateOnly=1]="DateOnly",e[e.TimeOnly=2]="TimeOnly",e[e.DateRange=3]="DateRange",e))(we||{}),Yt=(e=>(e[e.Day=0]="Day",e[e.Month=1]="Month",e[e.Year=2]="Year",e[e.Range=3]="Range",e))(Yt||{}),ur=(e=>(e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e))(ur||{}),De=(e=>(e[e.TwelveHour=0]="TwelveHour",e[e.TwentyFourHour=1]="TwentyFourHour",e))(De||{}),ct=(e=>(e[e.Normal=0]="Normal",e[e.Range=1]="Range",e))(ct||{}),cr=(e=>(e[e.Right=0]="Right",e[e.Left=1]="Left",e[e.None=2]="None",e))(cr||{}),K=(e=>(e[e.DaySelector=0]="DaySelector",e[e.MonthSelector=1]="MonthSelector",e[e.YearSelector=2]="YearSelector",e[e.TimeSelector=3]="TimeSelector",e[e.DateRangeSelector=4]="DateRangeSelector",e[e.SetViewDate=5]="SetViewDate",e[e.SetSelectedDate=6]="SetSelectedDate",e[e.SetSelectedDateRange=7]="SetSelectedDateRange",e[e.SetSelectedStartDate=8]="SetSelectedStartDate",e[e.SetSelectedEndDate=9]="SetSelectedEndDate",e[e.SetTimeFormat=10]="SetTimeFormat",e[e.ClearDates=11]="ClearDates",e[e.InitializeDates=12]="InitializeDates",e))(K||{});const Lh=(e,t)=>{switch(t.type){case 0:return{...e,currentSelector:0,currentViewDate:t.viewDate||e.currentViewDate};case 1:return{...e,currentSelector:1,currentViewDate:t.viewDate||e.currentViewDate};case 2:return{...e,currentSelector:2};case 3:return{...e,currentSelector:3};case 4:return{...e,currentSelector:4,currentViewDate:t.viewDate||e.currentViewDate};case 5:return{...e,currentViewDate:t.viewDate||new Date,dateInitialized:!0};case 6:return{...e,selectedDate:t.selectedDate||e.selectedDate,currentViewDate:t.viewDate||e.currentViewDate};case 7:return{...e,selectedStartDate:t.selectedStartDate||e.selectedStartDate,selectedEndDate:t.selectedEndDate||e.selectedEndDate};case 8:return{...e,selectedStartDate:t.selectedStartDate,selectedEndDate:void 0};case 9:return{...e,selectedEndDate:t.selectedEndDate};case 10:return{...e,timeFormat:t.timeFormat||e.timeFormat};case 11:return{currentSelector:e.currentSelector,currentViewDate:e.currentViewDate,timeFormat:e.timeFormat,dateInitialized:!0};case 12:const r={...e,currentViewDate:Ah(t.initialDate),dateInitialized:!0};return Array.isArray(t.initialDate)?{...r,selectedStartDate:t.initialDate[0],selectedEndDate:t.initialDate[1]}:{...r,selectedDate:t.initialDate};default:return{...e,currentSelector:0}}};function Ah(e){return e?Array.isArray(e)?e[0]:e:new Date}const on=({viewDate:e,selectedDate:t,selectedStartDate:r,selectedEndDate:n,selectionMode:a=ct.Normal,locale:i,onDateSelected:o,selectableDate:s,isValidDate:u,dispatcher:l})=>{var q;const[f,h]=p.useState(!1),[w,g]=p.useState(),[E,D]=p.useState(),[x,R]=p.useState(),[H,G]=p.useState(),V=p.useRef(),y=p.useRef(),U=p.useContext(an),ee=p.useMemo(()=>U.calendarTemplate,[U.calendarTemplate]),Q=async()=>i||await io(Oa());p.useEffect(()=>{Q().then(F=>{V.current=F,y.current=Ih(V.current),h(!0)}).catch(F=>console.error(F))},[]),p.useEffect(()=>{e&&V.current&&R(ao(e,V.current,a===ct.Normal))},[e,f]),p.useEffect(()=>{G(t?new Date(t.getFullYear(),t.getMonth(),t.getDate()):void 0)},[t]),p.useEffect(()=>{g(r?new Date(r.getFullYear(),r.getMonth(),r.getDate(),0,0,0).getTime():void 0),D(n?new Date(n.getFullYear(),n.getMonth(),n.getDate(),23,59,59).getTime():void 0)},[r,n]),p.useEffect(()=>{V.current&&i&&(V.current=i,R(ao(e,V.current,a===ct.Normal)))},[i]);const X=F=>{if(a===ct.Normal)l==null||l({type:K.SetSelectedDate,selectedDate:F,viewDate:F}),o==null||o(F);else{if(!o)throw new Error("Range selection mode requires onDateSelected to be set");!r||Wl(F,r)?o(F):r&&!n?o(F,{setEndDate:!0}):r&&n&&o(F)}},ue=F=>(H==null?void 0:H.toLocaleDateString())===F.toLocaleDateString(),ie=F=>{if(w&&E){const te=F.getTime();return te>=w&&te<=E}return!1},se={viewDate:e,selectedDate:t,selectedStartDate:r,selectedEndDate:n,selectionMode:a,locale:i,weekDays:y.current,monthMatrix:x,selectableDate:s,isValidDate:u,onDateClicked:X,isSelectedDate:ue,isInSelectedDateRange:ie},W=ee||((F,te)=>m.jsx("div",{className:"bsc-w-full bc-dt-calendar",children:te}));return m.jsx(zr,{props:se,template:W,children:m.jsxs("div",{className:"bsc-grid bsc-grid-cols-7 bsc-gap-3 bc-dt-day-row bsc-min-w-[329px]",children:[(q=y.current)==null?void 0:q.map((F,te)=>m.jsx("div",{className:"bsc-text-center bsc-font-bold bc-dt-day-cell",children:F},te)),x==null?void 0:x.map((F,te)=>F.map((A,de)=>{var d,C;const v=A.dayValue!==null&&(s===void 0||s(A.dayValue)),P=Ze("bsc-text-center bsc-py-1",{"bsc-text-gray-3":!A.isCurrent,"bsc-bg-primary-3 dark:bsc-bg-mono-light-1 dark:bsc-text-mono-dark-1":A&&A.dayValue&&(H&&ue(A.dayValue)||w&&!E&&ca(w,A.dayValue)||w&&E&&ie(A.dayValue)),"bsc-cursor-pointer":v,"bsc-text-error bsc-cursor-not-allowed":!v,"bsc-bg-primary-5 dark:bsc-bg-mono-light-3 dark:bsc-text-mono-dark-1":A.dayValue&&Hf(A.dayValue)&&!(ue(A.dayValue)||ie(A.dayValue))},"bc-dt-date-cell");return m.jsx("div",{className:P,onClick:()=>A&&A.dayValue&&v&&(u===void 0||u(A.dayValue))&&X(A.dayValue),children:(C=A.dayValue)==null?void 0:C.getDate().toLocaleString((d=V.current)==null?void 0:d.code)},te.toString()+de.toString())}))]})})},lr=({title:e,scrollerType:t,onTitleClicked:r,onMovePrevious:n,onMoveNext:a})=>{const o=p.useContext(an).dateScrollerTemplate,s={title:e,scrollerType:t,onTitleClicked:r,onMovePrevious:n,onMoveNext:a},l=o||((f,h)=>m.jsx("div",{className:"bsc-w-full bsc-flex bsc-flex-row bsc-py-1 bsc-px-2 bc-dt-scroller",children:h}));return m.jsxs(zr,{props:s,template:l,children:[m.jsx("div",{className:"bsc-flex-shrink bsc-cursor-pointer bc-dt-scroller-left",children:m.jsx("button",{className:"focus:bsc-outline-none",onClick:n,children:m.jsx(Pd,{size:24})})}),m.jsx("div",{className:"bsc-flex-grow bsc-text-center bsc-cursor-pointer bc-dt-scroller-title",onClick:r,children:e}),m.jsx("div",{className:"bsc-flex-shrink bsc-cursor-pointer bc-dt-scroller-right",children:m.jsx("button",{className:"focus:bsc-outline-none",onClick:a,children:m.jsx(Id,{size:24})})})]})},Fh=({selectedDate:e,viewDate:t,locale:r,showTimeSelector:n,selectableDate:a,isValidDate:i,onChange:o,dispatcher:s})=>{const u=()=>{t&&s({type:K.SetViewDate,viewDate:Ca(t,1)})},l=()=>{t&&s({type:K.SetViewDate,viewDate:at(t,1)})},f=()=>{s({type:K.MonthSelector})},h=()=>{s({type:K.TimeSelector})},w=()=>t?t.toLocaleDateString(r.code,{month:"long",year:"numeric"}):"";return m.jsxs("div",{className:"bsc-p-2 bc-dt-day-selector",children:[m.jsx(lr,{title:w(),scrollerType:Yt.Day,onTitleClicked:f,onMovePrevious:u,onMoveNext:l}),m.jsx(on,{viewDate:t,selectedDate:e,locale:r,selectableDate:a,isValidDate:i,onDateSelected:o,dispatcher:s}),n&&m.jsx("div",{className:"bsc-w-full bsc-flex bsc-flex-row bsc-p-2 bsc-justify-center bc-dt-time-value-wrapper",children:m.jsx("div",{className:"bsc-p-2 bsc-cursor-pointer hover:bsc-bg-gray-4 dark:hover:bsc-bg-mono-light-2 dark:hover:bsc-text-mono-dark-2 dark:bsc-bg-mono-dark-1 dark:bsc-text-mono-light-1 bc-dt-time-value",onClick:h,children:(e==null?void 0:e.toLocaleTimeString(r.code))||Rh(r)})})]})},$h=({viewDate:e,locale:t,dateSelection:r=we.DateTime,dispatcher:n})=>{const a=p.useRef(_h(t)),i=()=>{const f=Da(e,1);n({type:K.SetViewDate,viewDate:f})},o=()=>{const f=Gt(e,1);n({type:K.SetViewDate,viewDate:f})},s=f=>{n({type:r!==we.DateRange?K.DaySelector:K.DateRangeSelector,viewDate:sd(e,f)})},u=()=>e.toLocaleDateString(t.code,{year:"numeric"}),l=()=>{n({type:K.YearSelector})};return m.jsxs("div",{className:"bsc-p-2 bc-dt-month-selector",style:{minWidth:"20rem"},children:[m.jsx(lr,{title:u(),scrollerType:Yt.Month,onTitleClicked:l,onMovePrevious:i,onMoveNext:o}),m.jsx("div",{className:"bsc-w-full bsc-grid bsc-grid-cols-4 bsc-gap-4 bc-dt-month-grid",children:a.current.map((f,h)=>f.map((w,g)=>m.jsx("div",{className:"bsc-text-center bsc-cursor-pointer bc-dt-month-cell",onClick:()=>s(w.monthNumber),children:w.monthName},h.toString()+g.toString())))})]})},Yh=({viewDate:e,selectedStartDate:t,selectedEndDate:r,locale:n,onChange:a,dispatcher:i})=>{const o=at(e,1),s=(w,g)=>{!g||!g.setEndDate?i({type:K.SetSelectedStartDate,selectedStartDate:w}):(i({type:K.SetSelectedEndDate,selectedEndDate:w}),t&&(a==null||a([t,w])))},u=()=>{i({type:K.MonthSelector})},l=()=>`${e.toLocaleDateString(n.code,{month:"long"})} ${e.toLocaleDateString(n.code,{year:"numeric"})} - ${o.toLocaleDateString(n.code,{month:"long"})} ${o.toLocaleDateString(n.code,{year:"numeric"})}`,f=()=>{e&&i({type:K.SetViewDate,viewDate:Ca(e,1)})},h=()=>{e&&i({type:K.SetViewDate,viewDate:at(e,1)})};return m.jsxs("div",{className:"bsc-flex bsc-flex-col bc-dt-range-selector",children:[m.jsx("div",{className:"bsc-flex-shrink bc-dt-range-scroller-wrapper",children:m.jsx(lr,{title:l(),scrollerType:Yt.Range,onTitleClicked:u,onMovePrevious:f,onMoveNext:h})}),m.jsx("div",{className:"bsc-flex-grow",children:m.jsxs("div",{className:"bsc-flex bsc-flex-row bsc-py-1 bsc-px-2 bc-dt-range-wrapper",children:[m.jsx("div",{className:"bsc-border-r bsc-border-solid bsc-border-gray-3 bsc-pr-4 bc-dt-range-calendar-1",children:m.jsx(on,{viewDate:e,selectedStartDate:t,selectedEndDate:r,selectionMode:ct.Range,onDateSelected:s,locale:n,dispatcher:i})}),m.jsx("div",{className:"bsc-pl-4 bc-dt-range-calendar-2",children:m.jsx(on,{viewDate:o,selectedStartDate:t,selectedEndDate:r,selectionMode:ct.Range,onDateSelected:s,locale:n,dispatcher:i})})]})})]})},Uh=({viewDate:e,showDateSelector:t,locale:r,timeFormat:n=De.TwelveHour,timeConstraints:a,onChange:i,dispatcher:o})=>{const s=p.useRef(n===De.TwelveHour?11:23),u=p.useRef(n===De.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"]),l=p.useRef(cd(0,59,T=>T.toString().padStart(2,"0"))),f=p.useRef(["AM","PM"]),h=p.useRef(Oc(e)),w=T=>T>11?T-12:T,[g,E]=p.useState(w(e.getHours())),[D,x]=p.useState(e.getMinutes()),[R,H]=p.useState(e.getHours()<=12?0:1),G=p.useRef(e.toLocaleDateString(r.code));p.useEffect(()=>{const T=e.getHours(),W=e.getMinutes();if(T!==g&&E(n===De.TwelveHour?w(T):T),W!==D&&x(W),n===De.TwelveHour){const q=T<=11?0:1;q!==R&&H(q)}},[e]);const V=()=>{var q;const T=((q=a==null?void 0:a.hours)==null?void 0:q.step)||1,W=g<s.current?g+T:0;E(W),X(W,D,R)},y=()=>{var q;const T=((q=a==null?void 0:a.hours)==null?void 0:q.step)||1,W=g>0?g-T:s.current;E(W),X(W,D,R)},U=()=>{var q,F,te;const T=((q=a==null?void 0:a.minutes)==null?void 0:q.step)||1,W=D+T<(((F=a==null?void 0:a.minutes)==null?void 0:F.max)||59)?D+T:((te=a==null?void 0:a.minutes)==null?void 0:te.min)||0;x(W),X(g,W,R)},ee=()=>{var q,F,te;const T=((q=a==null?void 0:a.minutes)==null?void 0:q.step)||1,W=D-T>=(((F=a==null?void 0:a.minutes)==null?void 0:F.min)||0)?D-T:(((te=a==null?void 0:a.minutes)==null?void 0:te.max)||60)-T;x(W),X(g,W,R)},Q=()=>{const T=R===0?1:0;H(T),X(g,D,T)},X=(T,W,q)=>{const F=n===De.TwelveHour&&q===1?T+12:T;h.current.setHours(F,W),o({type:K.SetSelectedDate,selectedDate:h.current,viewDate:h.current}),i==null||i(h.current)},ue=()=>{o({type:K.DaySelector})},ie=Ze("bsc-w-full bsc-grid bsc-grid-rows-3 bsc-gap-4 bc-dt-time-grid",{"bsc-grid-cols-4":n===De.TwelveHour,"bsc-grid-cols-3":n===De.TwentyFourHour}),se=Ze("bsc-text-center bsc-cursor-pointer hover:bsc-bg-gray-4 dark:bsc-text-mono-light-1 dark:hover:bsc-bg-mono-light-1 dark:hover:bsc-text-mono-dark-1 bc-dt-time-date-value",{"bsc-col-span-4":n===De.TwelveHour,"bsc-col-span-3":n===De.TwentyFourHour});return m.jsx("div",{className:"bsc-flex bsc-flex-row bsc-justify-center bsc-p-2 bc-dt-time-selector",style:{minWidth:n===De.TwelveHour?"15rem":"11rem"},children:m.jsxs("div",{className:ie,children:[t&&m.jsx("div",{className:se,onClick:ue,children:G.current}),m.jsx("div",{className:"bsc-text-center bsc-cursor-pointer bc-dt-time-hour-increase",children:m.jsx("button",{className:"focus:bsc-outline-none",onClick:V,children:m.jsx(qr,{})})}),m.jsx("div",{children:" "}),m.jsx("div",{className:"bsc-text-center bsc-cursor-pointer bc-dt-time-minute-increase",children:m.jsx("button",{className:"focus:bsc-outline-none",onClick:U,children:m.jsx(qr,{})})}),n===De.TwelveHour&&m.jsx("div",{className:"bsc-text-center bsc-cursor-pointer bc-dt-time-meridian-increase",children:m.jsx("button",{className:"focus:bsc-outline-none",onClick:Q,children:m.jsx(qr,{})})}),m.jsx("div",{className:"bsc-text-center bc-dt-time-hour-value",children:u.current[g]}),m.jsx("div",{className:"bsc-text-center bc-dt-time-separator",children:":"}),m.jsx("div",{className:"bsc-text-center bc-dt-time-minute-value",children:l.current[D]}),n===De.TwelveHour&&m.jsx("div",{className:"bsc-text-center bc-dt-time-meridian-value",children:f.current[R]}),m.jsx("div",{className:"bsc-text-center bsc-cursor-pointer bc-dt-time-hour-decrease",children:m.jsx("button",{className:"focus:bsc-outline-none",onClick:y,children:m.jsx(Br,{})})}),m.jsx("div",{children:" "}),m.jsx("div",{className:"bsc-text-center bsc-cursor-pointer bc-dt-time-minute-decrease",children:m.jsx("button",{className:"focus:bsc-outline-none",onClick:ee,children:m.jsx(Br,{})})}),n===De.TwelveHour&&m.jsx("div",{className:"bsc-text-center bsc-cursor-pointer bc-dt-time-meridian-decrease",children:m.jsx("button",{className:"focus:bsc-outline-none",onClick:Q,children:m.jsx(Br,{})})})]})})},Hh=({viewDate:e,locale:t,dispatcher:r})=>{const n=Mh(e,t),a=()=>{const u=Da(e,10);r({type:K.SetViewDate,viewDate:u})},i=()=>{const u=Gt(e,10);r({type:K.SetViewDate,viewDate:u})},o=u=>{const l=parseInt(u);r({type:K.MonthSelector,viewDate:ud(e,l)})},s=()=>`${n[0][0].toString()} - ${n[2][1].toString()}`;return m.jsxs("div",{className:"bc-dt-year-selector",style:{minWidth:"20rem"},children:[m.jsx(lr,{title:s(),scrollerType:Yt.Year,onMovePrevious:a,onMoveNext:i}),m.jsx("div",{className:"bsc-w-full bc-dt-year-wrapper",children:m.jsx("div",{className:"bsc-grid bsc-grid-cols-4 bsc-gap-4 bc-dt-year-grid",children:n.map((u,l)=>u.map((f,h)=>f.length>0?m.jsx("div",{className:"bsc-text-center bsc-cursor-pointer bc-dt-year-cell",onClick:()=>o(f),children:f},l.toString()+h.toString()):m.jsx("div",{},l.toString()+h.toString())))})})]})};class Wh{constructor(t,r){Y(this,"dateFormat");Y(this,"timeFormat");Y(this,"use24HourTime");Y(this,"monthPart");Y(this,"dayPart");Y(this,"yearPart");Y(this,"twelveHourPart");Y(this,"twentyFourHourPart");Y(this,"minutePart");Y(this,"meridianPart");this.dateSelection=t;const n=2023,a=12,i=20,s=new Date(n,a-1,i).toLocaleDateString(r,{year:"numeric",month:"numeric",day:"numeric"});this.dateFormat=s.replace(`${n}`,"YYYY").replace(`${a}`,"MM").replace(`${i}`,"DD");const u=new Date,l=18,f=24,h=37,w=317;u.setHours(l,f,h,w);const g=u.toLocaleTimeString(r);this.use24HourTime=g.startsWith("18"),this.timeFormat=g.replace(`${this.use24HourTime?l:"6"}`,"HH").replace(`${f}`,"MM").replace(`${h}`,"SS").replace(`${w}`,"LLL"),this.createDateParts()}get is24HourTime(){return this.use24HourTime}createInputFormat(){const t={deleteShiftsFormatPart:!1,formatParts:[]};switch(this.dateSelection){case we.DateOnly:return this.createDateFormat(t);case we.TimeOnly:return this.createTimeFormat(t);case we.DateRange:return this.createDateRangeFormat(t);case we.DateTime:return this.createDateTimeFormat(t)}}createDateFormat(t){return this.dateFormat.startsWith("MM")?t.formatParts.push(...this.createMonthDayYearFormatParts()):this.dateFormat.startsWith("DD")?t.formatParts.push(...this.createDayMonthYearFormatParts()):t.formatParts.push(...this.createYearMonthDayFormatParts()),t}createTimeFormat(t){return this.use24HourTime?t.formatParts.push(...this.createTwentyFourHourFormatParts()):t.formatParts.push(...this.createTwelveHourFormatParts()),t}createDateRangeFormat(t){const r=[];this.dateFormat.startsWith("MM")?r.push(...this.createMonthDayYearFormatParts()):this.dateFormat.startsWith("DD")?r.push(...this.createDayMonthYearFormatParts()):r.push(...this.createYearMonthDayFormatParts());const n={characterCount:3,placeholder:" - ",inputText:" - ",isSeparator:!0};return t.formatParts.push(...r,n,...r),t}createDateTimeFormat(t){this.dateFormat.startsWith("MM")?t.formatParts.push(...this.createMonthDayYearFormatParts()):this.dateFormat.startsWith("DD")?t.formatParts.push(...this.createDayMonthYearFormatParts()):t.formatParts.push(...this.createYearMonthDayFormatParts());const r={characterCount:1,placeholder:" ",inputText:" ",isSeparator:!0};return t.formatParts.push(r),this.use24HourTime?t.formatParts.push(...this.createTwentyFourHourFormatParts()):t.formatParts.push(...this.createTwelveHourFormatParts()),t}createMonthDayYearFormatParts(){if(this.monthPart&&this.dayPart&&this.yearPart){let t=this.dateFormat.replace("MM",""),r=t.indexOf("DD"),n=t.substring(0,r);t=t.replace(n,"").replace("DD","");const a={characterCount:n.length,placeholder:n,inputText:n,isSeparator:!0};r=t.indexOf("YYYY"),n=t.substring(0,r);const i={characterCount:n.length,placeholder:n,inputText:n,isSeparator:!0};return[this.monthPart,a,this.dayPart,i,this.yearPart]}return[]}createDayMonthYearFormatParts(){if(this.monthPart&&this.dayPart&&this.yearPart){let t=this.dateFormat.replace("DD",""),r=t.indexOf("MM"),n=t.substring(0,r);t=t.replace(n,"").replace("MM","");const a={characterCount:n.length,placeholder:n,inputText:n,isSeparator:!0};r=t.indexOf("YYYY"),n=t.substring(0,r);const i={characterCount:n.length,placeholder:n,inputText:n,isSeparator:!0};return[this.dayPart,a,this.monthPart,i,this.yearPart]}return[]}createYearMonthDayFormatParts(){if(this.monthPart&&this.dayPart&&this.yearPart){let t=this.dateFormat.replace("YYYY",""),r=t.indexOf("MM"),n=t.substring(0,r);t=t.replace(n,"").replace("MM","");const a={characterCount:n.length,placeholder:n,inputText:n,isSeparator:!0};r=t.indexOf("DD"),n=t.substring(0,r);const i={characterCount:n.length,placeholder:n,inputText:n,isSeparator:!0};return[this.yearPart,a,this.monthPart,i,this.dayPart]}return[]}createTwelveHourFormatParts(){if(this.twelveHourPart&&this.minutePart&&this.meridianPart){const t=this.timeFormat.replace("HH",""),r=t.indexOf("MM"),n=t.substring(0,r),a={characterCount:n.length,placeholder:n,inputText:n,isSeparator:!0},i={characterCount:1,placeholder:" ",inputText:" ",isSeparator:!0};return[this.twelveHourPart,a,this.minutePart,i,this.meridianPart]}return[]}createTwentyFourHourFormatParts(){if(this.twentyFourHourPart&&this.minutePart){const t=this.timeFormat.replace("HH",""),r=t.indexOf("MM"),n=t.substring(0,r),a={characterCount:n.length,placeholder:n,inputText:n,isSeparator:!0};return[this.twentyFourHourPart,a,this.minutePart]}return[]}createDateParts(){this.monthPart={characterCount:2,placeholder:"M",inputText:"_",isSeparator:!1,allCharactersRequired:!1,valueType:qe.Numeric,minimumValue:1,maximumValue:12,exceedingMaximumValueCausesTab:!0,padWithZeros:!0},this.dayPart={characterCount:2,placeholder:"D",inputText:"_",isSeparator:!1,allCharactersRequired:!1,valueType:qe.Numeric,minimumValue:1,maximumValue:31,exceedingMaximumValueCausesTab:!0,padWithZeros:!0},this.yearPart={characterCount:4,placeholder:"Y",inputText:"_",isSeparator:!1,allCharactersRequired:!0,valueType:qe.Numeric},this.twelveHourPart={characterCount:2,placeholder:"H",inputText:"_",isSeparator:!1,allCharactersRequired:!1,valueType:qe.Numeric,minimumValue:1,maximumValue:12,exceedingMaximumValueCausesTab:!0,padWithZeros:!0},this.twentyFourHourPart={characterCount:2,placeholder:"H",inputText:"_",isSeparator:!1,allCharactersRequired:!1,valueType:qe.Numeric,minimumValue:0,maximumValue:23,exceedingMaximumValueCausesTab:!0,padWithZeros:!0},this.minutePart={characterCount:2,placeholder:"M",inputText:"_",isSeparator:!1,allCharactersRequired:!1,valueType:qe.Numeric,minimumValue:0,maximumValue:59,exceedingMaximumValueCausesError:!0,padWithZeros:!0},this.meridianPart={characterCount:2,inputText:"_",isSeparator:!1,valueType:qe.Text,possibleValues:["AM","PM"]}}}const Vh=(e,t)=>{var i;const[r,n]=p.useState(),a=p.useRef();return p.useEffect(()=>{t&&!r&&(a.current=new Wh(e,t),n(a.current.createInputFormat()))},[t]),[r,(i=a.current)==null?void 0:i.is24HourTime]},zh=({value:e,readOnly:t=!1,label:r,useDefaultDateValue:n=!1,useFormattedInput:a=!1,allowClear:i=!1,locale:o,className:s,dateSelection:u=we.DateTime,dateFormat:l,timeConstraints:f,icon:h,iconPosition:w=cr.Right,inputElement:g,selectableDate:E,isValidDate:D,onChange:x,calendarTemplate:R,dateScrollerTemplate:H,inputTemplate:G})=>{const[V,y]=p.useState(!1),[U,ee]=p.useState(),[Q,X]=p.useState(),ue=p.useRef(),ie=p.useRef(!1),se=p.useRef(o||Oa()),T=p.useRef(),W=p.useRef(),q=p.useRef(),[F,te]=Vh(u,U),A=p.useRef({calendarTemplate:R,dateScrollerTemplate:H});p.useEffect(()=>{se.current&&de(se.current)},[se]),p.useEffect(()=>{o&&de(o)},[o]),p.useEffect(()=>{if(e){const Z=v();C({type:K.InitializeDates,initialDate:Z})}else C({type:K.ClearDates})},[e,T.current]),p.useEffect(()=>{te&&C({type:K.SetTimeFormat,timeFormat:te?De.TwentyFourHour:De.TwelveHour})},[te]),p.useEffect(()=>{g&&(W.current=g)},[g]);const de=Z=>{io(Z).then(be=>{ee(be.code),T.current=be;const Le=v();C(e||n?{type:K.InitializeDates,initialDate:Array.isArray(Le)?Le[0]:Le}:{type:K.SetViewDate,viewDate:Array.isArray(Le)?Le[0]:Le})}).catch(be=>console.error(be))},v=()=>{const Z=new Date;return Z.setHours(0,0,0,0),e?typeof e=="string"?u!==we.DateRange?$t(e,T.current):so(e,T.current):e:Z},P={currentSelector:u===we.TimeOnly?K.TimeSelector:u===we.DateTime||u===we.DateOnly?K.DaySelector:K.DateRangeSelector,currentViewDate:new Date,timeFormat:De.TwelveHour,dateInitialized:!1},[d,C]=p.useReducer(Lh,P),L=()=>{Fe(),y(!0)},z=p.useMemo(()=>Rt(()=>{y(!1)},250),[]),O=p.useMemo(()=>Rt(()=>{z.cancel()},5),[z]),k=Z=>{const be=Z.target.innerText;$(be)},_=Z=>{if(Z){const be=$t(Z,T.current);return be?D?D(be):!0:!1}else return!0},M=Z=>{$(Z||"")},$=Z=>{const be=u!==we.DateRange?$t(Z,T.current):so(Z,T.current);be?(Array.isArray(be)?(kh(be[0],la(d.currentViewDate),Yc(at(d.currentViewDate,1)))||C({type:K.SetViewDate,viewDate:be[0]}),C({type:K.SetSelectedDateRange,selectedStartDate:be[0],selectedEndDate:be[1]})):C({type:K.SetSelectedDate,selectedDate:be,viewDate:be}),x==null||x(be)):Z===""&&(C({type:K.ClearDates}),x==null||x())},Pe=()=>{Fe(),y(!V)},S=()=>{C({type:K.ClearDates}),y(!1),x==null||x()},ke=(Z,be)=>{(!W.current||ue.current!==be)&&(W.current=Z,ue.current=be,ie.current=!0)},Fe=()=>{(!q.current||ie.current)&&W.current&&(q.current=W.current,X(W.current),ie.current=!1)},$e=()=>{y(!1),C({type:u===we.TimeOnly?K.TimeSelector:u===we.DateTime||u===we.DateOnly?K.DaySelector:K.DateRangeSelector})},wt=()=>{switch(l){case ur.Short:return"short";case ur.Medium:return"medium";case ur.Long:return"long";default:return}},Tt=()=>{var be,Le,pr,Ut,Ht,Et,vr,mr,gr,yr,br,wr;const Z=wt();switch(u){case we.DateTime:return d.selectedDate?Z?d.selectedDate.toLocaleString((be=T.current)==null?void 0:be.code,{dateStyle:Z,timeStyle:Z}):d.selectedDate.toLocaleString((Le=T.current)==null?void 0:Le.code):"";case we.DateOnly:return d.selectedDate?Z?d.selectedDate.toLocaleDateString((pr=T.current)==null?void 0:pr.code,{dateStyle:Z}):d.selectedDate.toLocaleDateString((Ut=T.current)==null?void 0:Ut.code):"";case we.TimeOnly:return d.selectedDate?Z?d.selectedDate.toLocaleTimeString((Ht=T.current)==null?void 0:Ht.code,{timeStyle:Z,hour12:d.timeFormat===De.TwelveHour,hourCycle:d.timeFormat===De.TwentyFourHour?"h23":void 0}):d.selectedDate.toLocaleTimeString((Et=T.current)==null?void 0:Et.code,{hour12:d.timeFormat===De.TwelveHour,hourCycle:d.timeFormat===De.TwentyFourHour?"h23":void 0}):"";case we.DateRange:return d.selectedStartDate&&d.selectedEndDate?Z?`${d.selectedStartDate.toLocaleDateString((vr=T.current)==null?void 0:vr.code,{dateStyle:Z})} - ${d.selectedEndDate.toLocaleDateString((mr=T.current)==null?void 0:mr.code,{dateStyle:Z})}`:`${d.selectedStartDate.toLocaleDateString((gr=T.current)==null?void 0:gr.code)} - ${d.selectedEndDate.toLocaleDateString((yr=T.current)==null?void 0:yr.code)}`:"";default:return d.selectedDate?Z?d.selectedDate.toLocaleString((br=T.current)==null?void 0:br.code,{dateStyle:Z,timeStyle:Z}):d.selectedDate.toLocaleString((wr=T.current)==null?void 0:wr.code):""}},lt=u===we.DateTime||u===we.DateOnly||u===we.DateRange,xt=u===we.DateTime||u===we.TimeOnly,Pt=w===cr.None?{}:w===cr.Right?{rightElement:m.jsxs("div",{className:"bsc-flex bsc-text-black dark:bsc-text-mono-light-1",children:[i&&!t&&m.jsx("div",{children:m.jsx(Ra,{size:16,className:"bsc-cursor-pointer bsc-text-sm",onClick:S})}),m.jsx("div",{className:"bsc-ml-2",children:h||m.jsx(ja,{size:16,className:t?void 0:"bsc-cursor-pointer",onClick:t?void 0:Pe})})]}),rightElementClassName:"bsc-justify-center"}:{leftElement:m.jsxs("div",{className:"bsc-flex bsc-text-black dark:bsc-text-mono-light-1",children:[m.jsx("div",{className:"bsc-mr-2",children:h||m.jsx(ja,{size:16,className:t?void 0:"bsc-cursor-pointer",onClick:t?void 0:Pe})}),i&&!t&&m.jsx("div",{children:m.jsx(Ra,{size:16,className:"bsc-cursor-pointer bsc-text-sm",onClick:S})})]}),leftElementClassName:"bsc-justify-center"},sn={label:r,readOnly:t,allowClear:i,getValue:Tt,onFocus:L,onInput:k,iconPosition:w,iconElement:Pt.rightElement||Pt.leftElement},un=G||((Z,be)=>m.jsx(m.Fragment,{children:be})),hr=Ze("bsc-text-left",{"bsc-bg-gray-2":t,"bsc-bg-white":!t},"dark:bsc-bg-mono-dark-1 bc-dt-input",s);return m.jsx(an.Provider,{value:A.current,children:m.jsxs("div",{className:"bc-date-time",children:[r&&m.jsx("label",{className:"dark:bsc-text-mono-light-1 bc-dt-label",children:r}),m.jsx(zr,{props:sn,template:un,children:a===!1?m.jsx(Ar,{value:Tt(),readOnly:t,className:hr,onFocus:L,onBlur:z,onInput:k,onElementCreate:Z=>ke(Z,!1),...Pt}):m.jsx(no,{value:Tt(),readOnly:t,className:hr,format:F,isInputValid:_,onFocus:L,onBlur:z,onChange:M,onElementCreate:Z=>ke(Z,!0),...Pt})}),m.jsx(Ja,{visible:V,target:Q,shouldTargetCloseOverlay:!1,shouldScrollCloseOverlay:!0,shouldCheckZIndex:!0,shouldRemainOnScreen:!0,hidden:$e,isClickedWithin:O,unmountWhenHidden:!0,children:m.jsxs(m.Fragment,{children:[d.currentSelector===K.DaySelector&&lt&&d.dateInitialized&&T.current&&m.jsx(Fh,{selectedDate:d.selectedDate,viewDate:d.currentViewDate,locale:T.current,showTimeSelector:u===we.DateTime,selectableDate:E,isValidDate:D,dispatcher:C,onChange:x}),d.currentSelector===K.MonthSelector&&lt&&d.dateInitialized&&T.current&&m.jsx($h,{viewDate:d.currentViewDate,locale:T.current,dateSelection:u,dispatcher:C}),d.currentSelector===K.YearSelector&&lt&&d.dateInitialized&&T.current&&m.jsx(Hh,{viewDate:d.currentViewDate,locale:T.current,dispatcher:C}),d.currentSelector===K.TimeSelector&&xt&&d.dateInitialized&&T.current&&m.jsx(Uh,{viewDate:d.currentViewDate,showDateSelector:u===we.DateTime,locale:T.current,timeFormat:d.timeFormat,timeConstraints:f,onChange:x,dispatcher:C}),d.currentSelector===K.DateRangeSelector&&lt&&d.dateInitialized&&T.current&&m.jsx(Yh,{viewDate:d.currentViewDate,selectedStartDate:d.selectedStartDate,selectedEndDate:d.selectedEndDate,locale:T.current,onChange:x,dispatcher:C})]})})]})})},ip="";he.ContentEditableInput=Ar,he.DateTime=zh,he.FormattedInput=no,he.OverlayPanel=Ja,he.applyBeeSoftTheme=vd,he.createBeeSoftTheme=md,Object.defineProperty(he,Symbol.toStringTag,{value:"Module"})});
50
+ */var Zr,Ba;function mh(){if(Ba)return Zr;Ba=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function a(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var o={},s=0;s<10;s++)o["_"+String.fromCharCode(s)]=s;var u=Object.getOwnPropertyNames(o).map(function(f){return o[f]});if(u.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(f){l[f]=f}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Zr=a()?Object.assign:function(i,o){for(var s,u=n(i),l,f=1;f<arguments.length;f++){s=Object(arguments[f]);for(var h in s)t.call(s,h)&&(u[h]=s[h]);if(e){l=e(s);for(var b=0;b<l.length;b++)r.call(s,l[b])&&(u[l[b]]=s[l[b]])}}return u},Zr}var Xr,qa;function Jr(){if(qa)return Xr;qa=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Xr=e,Xr}var en,Ga;function Qa(){return Ga||(Ga=1,en=Function.call.bind(Object.prototype.hasOwnProperty)),en}var tn,Ka;function vh(){if(Ka)return tn;Ka=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Jr(),r={},n=Qa();e=function(i){var o="Warning: "+i;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function a(i,o,s,u,l){if(process.env.NODE_ENV!=="production"){for(var f in i)if(n(i,f)){var h;try{if(typeof i[f]!="function"){var b=Error((u||"React class")+": "+s+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw b.name="Invariant Violation",b}h=i[f](o,f,u,s,null,t)}catch(x){h=x}if(h&&!(h instanceof Error)&&e((u||"React class")+": type specification of "+s+" `"+f+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof h+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),h instanceof Error&&!(h.message in r)){r[h.message]=!0;var T=l?l():"";e("Failed "+s+" type: "+h.message+(T??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},tn=a,tn}var rn,Za;function gh(){if(Za)return rn;Za=1;var e=za(),t=mh(),r=Jr(),n=Qa(),a=vh(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(s){var u="Warning: "+s;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function o(){return null}return rn=function(s,u){var l=typeof Symbol=="function"&&Symbol.iterator,f="@@iterator";function h(v){var E=v&&(l&&v[l]||v[f]);if(typeof E=="function")return E}var b="<<anonymous>>",T={array:_("array"),bigint:_("bigint"),bool:_("boolean"),func:_("function"),number:_("number"),object:_("object"),string:_("string"),symbol:_("symbol"),any:z(),arrayOf:Z,element:W(),elementType:g(),instanceOf:$,node:oe(),objectOf:te,oneOf:J,oneOfType:B,shape:G,exact:y};function x(v,E){return v===E?v!==0||1/v===1/E:v!==v&&E!==E}function D(v,E){this.message=v,this.data=E&&typeof E=="object"?E:{},this.stack=""}D.prototype=Error.prototype;function P(v){if(process.env.NODE_ENV!=="production")var E={},H=0;function d(O,M,A,j,k,V,Ee){if(j=j||b,V=V||A,Ee!==r){if(u){var C=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 C.name="Invariant Violation",C}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ke=j+":"+A;!E[ke]&&H<3&&(i("You are manually calling a React.PropTypes validation function for the `"+V+"` prop on `"+j+"`. 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[ke]=!0,H++)}}return M[A]==null?O?M[A]===null?new D("The "+k+" `"+V+"` is marked as required "+("in `"+j+"`, but its value is `null`.")):new D("The "+k+" `"+V+"` is marked as required in "+("`"+j+"`, but its value is `undefined`.")):null:v(M,A,j,k,V)}var S=d.bind(null,!1);return S.isRequired=d.bind(null,!0),S}function _(v){function E(H,d,S,O,M,A){var j=H[d],k=F(j);if(k!==v){var V=ne(j);return new D("Invalid "+O+" `"+M+"` of type "+("`"+V+"` supplied to `"+S+"`, expected ")+("`"+v+"`."),{expectedType:v})}return null}return P(E)}function z(){return P(o)}function Z(v){function E(H,d,S,O,M){if(typeof v!="function")return new D("Property `"+M+"` of component `"+S+"` has invalid PropType notation inside arrayOf.");var A=H[d];if(!Array.isArray(A)){var j=F(A);return new D("Invalid "+O+" `"+M+"` of type "+("`"+j+"` supplied to `"+S+"`, expected an array."))}for(var k=0;k<A.length;k++){var V=v(A,k,S,O,M+"["+k+"]",r);if(V instanceof Error)return V}return null}return P(E)}function W(){function v(E,H,d,S,O){var M=E[H];if(!s(M)){var A=F(M);return new D("Invalid "+S+" `"+O+"` of type "+("`"+A+"` supplied to `"+d+"`, expected a single ReactElement."))}return null}return P(v)}function g(){function v(E,H,d,S,O){var M=E[H];if(!e.isValidElementType(M)){var A=F(M);return new D("Invalid "+S+" `"+O+"` of type "+("`"+A+"` supplied to `"+d+"`, expected a single ReactElement type."))}return null}return P(v)}function $(v){function E(H,d,S,O,M){if(!(H[d]instanceof v)){var A=v.name||b,j=he(H[d]);return new D("Invalid "+O+" `"+M+"` of type "+("`"+j+"` supplied to `"+S+"`, expected ")+("instance of `"+A+"`."))}return null}return P(E)}function J(v){if(!Array.isArray(v))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("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])."):i("Invalid argument supplied to oneOf, expected an array.")),o;function E(H,d,S,O,M){for(var A=H[d],j=0;j<v.length;j++)if(x(A,v[j]))return null;var k=JSON.stringify(v,function(Ee,C){var ke=ne(C);return ke==="symbol"?String(C):C});return new D("Invalid "+O+" `"+M+"` of value `"+String(A)+"` "+("supplied to `"+S+"`, expected one of "+k+"."))}return P(E)}function te(v){function E(H,d,S,O,M){if(typeof v!="function")return new D("Property `"+M+"` of component `"+S+"` has invalid PropType notation inside objectOf.");var A=H[d],j=F(A);if(j!=="object")return new D("Invalid "+O+" `"+M+"` of type "+("`"+j+"` supplied to `"+S+"`, expected an object."));for(var k in A)if(n(A,k)){var V=v(A,k,S,O,M+"."+k,r);if(V instanceof Error)return V}return null}return P(E)}function B(v){if(!Array.isArray(v))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var E=0;E<v.length;E++){var H=v[E];if(typeof H!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+L(H)+" at index "+E+"."),o}function d(S,O,M,A,j){for(var k=[],V=0;V<v.length;V++){var Ee=v[V],C=Ee(S,O,M,A,j,r);if(C==null)return null;C.data&&n(C.data,"expectedType")&&k.push(C.data.expectedType)}var ke=k.length>0?", expected one of type ["+k.join(", ")+"]":"";return new D("Invalid "+A+" `"+j+"` supplied to "+("`"+M+"`"+ke+"."))}return P(d)}function oe(){function v(E,H,d,S,O){return U(E[H])?null:new D("Invalid "+S+" `"+O+"` supplied to "+("`"+d+"`, expected a ReactNode."))}return P(v)}function re(v,E,H,d,S){return new D((v||"React class")+": "+E+" type `"+H+"."+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+S+"`.")}function G(v){function E(H,d,S,O,M){var A=H[d],j=F(A);if(j!=="object")return new D("Invalid "+O+" `"+M+"` of type `"+j+"` "+("supplied to `"+S+"`, expected `object`."));for(var k in v){var V=v[k];if(typeof V!="function")return re(S,O,M,k,ne(V));var Ee=V(A,k,S,O,M+"."+k,r);if(Ee)return Ee}return null}return P(E)}function y(v){function E(H,d,S,O,M){var A=H[d],j=F(A);if(j!=="object")return new D("Invalid "+O+" `"+M+"` of type `"+j+"` "+("supplied to `"+S+"`, expected `object`."));var k=t({},H[d],v);for(var V in k){var Ee=v[V];if(n(v,V)&&typeof Ee!="function")return re(S,O,M,V,ne(Ee));if(!Ee)return new D("Invalid "+O+" `"+M+"` key `"+V+"` supplied to `"+S+"`.\nBad object: "+JSON.stringify(H[d],null," ")+`
51
+ Valid keys: `+JSON.stringify(Object.keys(v),null," "));var C=Ee(A,V,S,O,M+"."+V,r);if(C)return C}return null}return P(E)}function U(v){switch(typeof v){case"number":case"string":case"undefined":return!0;case"boolean":return!v;case"object":if(Array.isArray(v))return v.every(U);if(v===null||s(v))return!0;var E=h(v);if(E){var H=E.call(v),d;if(E!==v.entries){for(;!(d=H.next()).done;)if(!U(d.value))return!1}else for(;!(d=H.next()).done;){var S=d.value;if(S&&!U(S[1]))return!1}}else return!1;return!0;default:return!1}}function q(v,E){return v==="symbol"?!0:E?E["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&E instanceof Symbol:!1}function F(v){var E=typeof v;return Array.isArray(v)?"array":v instanceof RegExp?"object":q(E,v)?"symbol":E}function ne(v){if(typeof v>"u"||v===null)return""+v;var E=F(v);if(E==="object"){if(v instanceof Date)return"date";if(v instanceof RegExp)return"regexp"}return E}function L(v){var E=ne(v);switch(E){case"array":case"object":return"an "+E;case"boolean":case"date":case"regexp":return"a "+E;default:return E}}function he(v){return!v.constructor||!v.constructor.name?b:v.constructor.name}return T.checkPropTypes=a,T.resetWarningCache=a.resetWarningCache,T.PropTypes=T,T},rn}var nn,Xa;function yh(){if(Xa)return nn;Xa=1;var e=Jr();function t(){}function r(){}return r.resetWarningCache=t,nn=function(){function n(o,s,u,l,f,h){if(h!==e){var b=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 b.name="Invariant Violation",b}}n.isRequired=n;function a(){return n}var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:a,element:n,elementType:n,instanceOf:a,node:n,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:r,resetWarningCache:t};return i.PropTypes=i,i},nn}if(process.env.NODE_ENV!=="production"){var bh=za(),wh=!0;Kr.exports=gh()(bh.isElement,wh)}else Kr.exports=yh()();var Th=Kr.exports;const ee=Je(Th),Ja={disabled:!1};var xh=process.env.NODE_ENV!=="production"?ee.oneOfType([ee.number,ee.shape({enter:ee.number,exit:ee.number,appear:ee.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&ee.oneOfType([ee.string,ee.shape({enter:ee.string,exit:ee.string,active:ee.string}),ee.shape({enter:ee.string,enterDone:ee.string,enterActive:ee.string,exit:ee.string,exitDone:ee.string,exitActive:ee.string})]);const eo=p.createContext(null);var Ph=function(t){return t.scrollTop},Ut="unmounted",ut="exited",ct="entering",wt="entered",an="exiting",Ke=function(e){dh(t,e);function t(n,a){var i;i=e.call(this,n,a)||this;var o=a,s=o&&!o.isMounting?n.enter:n.appear,u;return i.appearStatus=null,n.in?s?(u=ut,i.appearStatus=ct):u=wt:n.unmountOnExit||n.mountOnEnter?u=Ut:u=ut,i.state={status:u},i.nextCallback=null,i}t.getDerivedStateFromProps=function(a,i){var o=a.in;return o&&i.status===Ut?{status:ut}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(a){var i=null;if(a!==this.props){var o=this.state.status;this.props.in?o!==ct&&o!==wt&&(i=ct):(o===ct||o===wt)&&(i=an)}this.updateStatus(!1,i)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var a=this.props.timeout,i,o,s;return i=o=s=a,a!=null&&typeof a!="number"&&(i=a.exit,o=a.enter,s=a.appear!==void 0?a.appear:o),{exit:i,enter:o,appear:s}},r.updateStatus=function(a,i){if(a===void 0&&(a=!1),i!==null)if(this.cancelNextCallback(),i===ct){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:He.findDOMNode(this);o&&Ph(o)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ut&&this.setState({status:Ut})},r.performEnter=function(a){var i=this,o=this.props.enter,s=this.context?this.context.isMounting:a,u=this.props.nodeRef?[s]:[He.findDOMNode(this),s],l=u[0],f=u[1],h=this.getTimeouts(),b=s?h.appear:h.enter;if(!a&&!o||Ja.disabled){this.safeSetState({status:wt},function(){i.props.onEntered(l)});return}this.props.onEnter(l,f),this.safeSetState({status:ct},function(){i.props.onEntering(l,f),i.onTransitionEnd(b,function(){i.safeSetState({status:wt},function(){i.props.onEntered(l,f)})})})},r.performExit=function(){var a=this,i=this.props.exit,o=this.getTimeouts(),s=this.props.nodeRef?void 0:He.findDOMNode(this);if(!i||Ja.disabled){this.safeSetState({status:ut},function(){a.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:an},function(){a.props.onExiting(s),a.onTransitionEnd(o.exit,function(){a.safeSetState({status:ut},function(){a.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(a,i){i=this.setNextCallback(i),this.setState(a,i)},r.setNextCallback=function(a){var i=this,o=!0;return this.nextCallback=function(s){o&&(o=!1,i.nextCallback=null,a(s))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},r.onTransitionEnd=function(a,i){this.setNextCallback(i);var o=this.props.nodeRef?this.props.nodeRef.current:He.findDOMNode(this),s=a==null&&!this.props.addEndListener;if(!o||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],l=u[0],f=u[1];this.props.addEndListener(l,f)}a!=null&&setTimeout(this.nextCallback,a)},r.render=function(){var a=this.state.status;if(a===Ut)return null;var i=this.props,o=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var s=fh(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return p.createElement(eo.Provider,{value:null},typeof o=="function"?o(a,s):p.cloneElement(p.Children.only(o),s))},t}(p.Component);Ke.contextType=eo,Ke.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:ee.shape({current:typeof Element>"u"?ee.any:function(e,t,r,n,a,i){var o=e[t];return ee.instanceOf(o&&"ownerDocument"in o?o.ownerDocument.defaultView.Element:Element)(e,t,r,n,a,i)}}),children:ee.oneOfType([ee.func.isRequired,ee.element.isRequired]).isRequired,in:ee.bool,mountOnEnter:ee.bool,unmountOnExit:ee.bool,appear:ee.bool,enter:ee.bool,exit:ee.bool,timeout:function(t){var r=xh;t.addEndListener||(r=r.isRequired);for(var n=arguments.length,a=new Array(n>1?n-1:0),i=1;i<n;i++)a[i-1]=arguments[i];return r.apply(void 0,[t].concat(a))},addEndListener:ee.func,onEnter:ee.func,onEntering:ee.func,onEntered:ee.func,onExit:ee.func,onExiting:ee.func,onExited:ee.func}:{};function Tt(){}Ke.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Tt,onEntering:Tt,onEntered:Tt,onExit:Tt,onExiting:Tt,onExited:Tt},Ke.UNMOUNTED=Ut,Ke.EXITED=ut,Ke.ENTERING=ct,Ke.ENTERED=wt,Ke.EXITING=an;const Eh=Ke,to=({start:e,timeout:t=400,defaultStyle:r,transitionStyles:n,showTransitionOptions:a="cubic-bezier(0, 0, 0.2, 1)",hideTransitionOptions:i="linear",unmountOnExit:o=!1,onEntering:s,onEntered:u,onExit:l,onExited:f,children:h})=>{const b=r||{transition:`opacity ${t}ms ${a}`,opacity:0},T=n||{entering:{opacity:1},entered:{opacity:1},exiting:{transition:`opacity ${t}ms ${i}`,opacity:0},exited:{transition:`opacity ${t}ms ${i}`,opacity:0},unmounted:{}};return m.jsx(Eh,{in:e,timeout:t,onEntering:s,onEntered:u,onExit:l,onExited:f,unmountOnExit:o,children:x=>h({state:x,defaultStyle:b,transitionStyles:T})})},Sh=(e,t)=>{const r=p.useRef(null),{buttonType:n,type:a="button",disabled:i=!1,form:o,fullWidth:s=!1,onClick:u,className:l,children:f}=e,h=()=>{u==null||u()},b=()=>{var x;(x=r.current)==null||x.click()};p.useImperativeHandle(t,()=>({click:b}));const T=qe("bsc-p-4 dark:bsc-bg-mono-light-1 dark:hover:bsc-bg-mono-light-2 dark:bsc-text-mono-dark-1",{"bsc-w-full":s,"bsc-bg-gray-3 bsc-text-gray-2":i,"bsc-bg-primary-1 bsc-text-white hover:bsc-bg-primary-2":n==="primary","bsc-bg-info bsc-text-white":n==="info","bsc-bg-success bsc-text-white":n==="success","bsc-bg-warning bsc-text-white":n==="warning","bsc-bg-error bsc-text-white":n==="error"},l);return m.jsx("button",{ref:r,type:a,onClick:h,disabled:i,form:o,className:T,children:f})},Ch=p.forwardRef(Sh);function ro(e){return e.target?e.target:e}const no=({visible:e,target:t,unmountWhenHidden:r=!1,transitionDuration:n=400,showTransitionOptions:a="cubic-bezier(0, 0, 0.2, 1)",hideTransitionOptions:i="linear",approveText:o="DONE",shown:s,hidden:u,isClickedWithin:l,children:f})=>{const[h,b]=p.useState(-1),[T,x]=p.useState(-1),[D,P]=p.useState(e),_=p.useRef(100),z=p.useRef(101),Z=p.useRef(),W=p.useRef(),g=p.useRef();p.useEffect(()=>{t&&(Z.current=ro(t));const G=_a("zIndex",y=>y==="auto"||y==="-1"?!1:parseInt(y)>100).map(y=>parseInt(y,10));G.length>0&&(_.current=Math.max(...G)+1,z.current=Math.max(...G)+2),P(e)},[e,t]);const $=G=>{W.current=G},J=()=>{x(_.current),b(z.current)},te=()=>{if(!W.current)return;s==null||s();let G;Z.current&&(G=[Z.current]);const y=U=>{U?l==null||l():P(!1)};g.current=$a(W.current,y,G)},B=()=>{g.current&&Ua(g.current)},oe=()=>{x(-1),b(-1),u==null||u()},re={entering:{opacity:.5},entered:{opacity:.5}};return m.jsx(to,{start:D,timeout:n,showTransitionOptions:a,hideTransitionOptions:i,onEntering:J,onEntered:te,onExit:B,onExited:oe,unmountOnExit:r,children:({state:G,defaultStyle:y,transitionStyles:U})=>m.jsxs("div",{ref:q=>q&&$(q),children:[m.jsx("div",{className:"bsc-fixed bsc-left-0 bsc-top-0 bsc-h-full bsc-w-full bsc-bg-mono-dark-1",style:{zIndex:T,...U[G],...re[G]}}),m.jsxs("div",{className:"dark:bsck-border-mono-light-1 bsc-fixed bsc-bottom-0 bsc-left-0 bsc-w-full bsc-bg-white dark:bsc-border-t dark:bsc-border-solid dark:bsc-bg-mono-dark-1 dark:bsc-text-mono-light-1",style:{zIndex:h,...y,...U[G]},children:[m.jsx("div",{className:"bsc-w-full",children:f}),m.jsx(m.Fragment,{children:m.jsx(Ch,{buttonType:"primary",fullWidth:!0,onClick:()=>P(!1),className:"bsc-text-xs bsc-font-bold",children:o})})]})]})})};var ao=(e=>(e[e.TopLeft=0]="TopLeft",e[e.TopRight=1]="TopRight",e[e.BottomLeft=2]="BottomLeft",e[e.BottomRight=3]="BottomRight",e))(ao||{}),oo=(e=>(e[e.TopLeft=0]="TopLeft",e[e.TopRight=1]="TopRight",e[e.BottomLeft=2]="BottomLeft",e[e.BottomRight=3]="BottomRight",e))(oo||{});class _e{static positionToTarget(t,r=2){const n=t.getBoundingClientRect();let a=0,i=0;const o=window.scrollY;switch(r){case 2:a=n.top+n.height+o,i=n.left;break;case 0:a=n.top+o,i=n.left;break;case 3:a=n.top+n.height+o,i=n.left+n.width;break;case 1:a=n.top+o,i=n.left+n.width}return{top:a,left:i}}static positionElementToTarget(t,r,n=0,a=2){let{left:i,top:o}=_e.positionToTarget(r,a);const s=t.getBoundingClientRect();switch(n){case 0:break;case 1:i=i-s.width;break;case 2:o=o-s.height;break;case 3:o=o-s.height,i=i-s.width;break}return{top:o,left:i}}static canPositionElementOnScreen(t,r){const n=_e.getScreenDimensions(),a=t.getBoundingClientRect(),i=_e.positionElementToTarget(t,r,0,2);if(i.left+a.width<n.width&&i.top+a.height<n.height||_e.positionElementToTarget(t,r,1,3).left>=0&&i.top+a.height<n.height)return!0;const s=_e.positionElementToTarget(t,r,2,0);if(s.left+a.width<n.width&&s.top>=0)return!0;const u=_e.positionElementToTarget(t,r,3,1);return u.left>=0&&u.top>=0}static positionElementToTargetOnScreen(t,r,n=0,a=2){const{left:i,top:o}=_e.positionElementToTarget(t,r,n,a),s=t.getBoundingClientRect(),u=_e.determineOffScreenLocation(s);if(u){if(n===0&&a===2){if(u.right&&!u.bottom)return _e.positionElementToTarget(t,r,1,3);if(u.bottom&&!u.right)return _e.positionElementToTarget(t,r,2,0);if(u.right&&u.bottom)return _e.positionElementToTarget(t,r,3,1)}else if(n===1&&a===3){if(u.left&&!u.bottom)return _e.positionElementToTarget(t,r,0,2);if(u.bottom&&!u.left)return _e.positionElementToTarget(t,r,3,1);if(u.left&&u.bottom)return _e.positionElementToTarget(t,r,2,0)}}return{top:o,left:i}}static determineOffScreenLocation(t){const r=_e.getScreenDimensions(),n={left:t.left<0,top:t.top<0,right:t.left+t.width>r.width,bottom:t.top+t.height>r.height};return n.left||n.top||n.right||n.bottom?n:void 0}static getScreenDimensions(){return{width:window.innerWidth,height:Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)}}}const io=({visible:e,target:t,targetPosition:r=ao.BottomLeft,elementAlignment:n=oo.TopLeft,shouldTargetCloseOverlay:a=!0,shouldMatchTargetWidth:i=!1,shouldScrollCloseOverlay:o=!1,shouldCheckZIndex:s=!1,shouldRemainOnScreen:u=!1,unmountWhenHidden:l=!1,transitionDuration:f=400,showTransitionOptions:h="cubic-bezier(0, 0, 0.2, 1)",hideTransitionOptions:b="linear",shown:T,hidden:x,isClickedWithin:D,markupCreated:P,children:_})=>{const[z,Z]=p.useState(-1),[W,g]=p.useState(e),[$,J]=p.useState(!1),te=p.useRef(!1),B=p.useRef(100),oe=p.useRef({left:0,top:0,width:0}),re=p.useRef(),G=p.useRef(),y=p.useRef(),U=p.useRef(),q=p.useRef(),F=p.useRef();p.useEffect(()=>(u===!0&&(F.current=new ResizeObserver(ne)),()=>{var O,M;u===!0&&(G.current&&((O=F.current)==null||O.unobserve(G.current)),(M=F.current)==null||M.disconnect())}),[u]),p.useEffect(()=>{if(t&&(re.current=ro(t),o&&(y.current=Na(re.current,{overflow:"scroll, auto",overflowX:"scroll, auto",overflowY:"scroll, auto"}),y.current.tagName.toLowerCase()==="html"&&(y.current=document))),s){const O=_a("zIndex",M=>parseInt(M)>=100).map(M=>parseInt(M));O.length>0&&(B.current=Math.max(...O)+1)}e!==void 0&&g(e)},[t,e,o,s]);const ne=O=>{if(G.current){const M=_e.getScreenDimensions(),A=O[O.length-1].target,j=A.getBoundingClientRect(),k=_e.determineOffScreenLocation(j);if(k){if(re.current&&_e.canPositionElementOnScreen(A,re.current)){const V=_e.positionElementToTargetOnScreen(G.current,re.current,n,r);oe.current={...oe.current,...V}}else k.right?oe.current.left=M.width-j.width:k.left&&(oe.current.left=0),k.bottom?oe.current.top=M.height-j.height:k.top&&(oe.current.top=0);L()}}},L=Lt(()=>{te.current=!te.current,J(te.current)},20),he=()=>{Z(B.current)},v=()=>{if(!G.current)return;T==null||T();let O;!a&&re.current&&(O=[re.current]);const M=A=>{A?D==null||D():g(!1)};U.current=$a(G.current,M,O),o&&(q.current=zc(A=>G.current&&Td(A,G.current)&&g(!1),100,{leading:!0}),y.current&&y.current.addEventListener("scroll",q.current))},E=()=>{y.current&&q.current&&(y.current.removeEventListener("scroll",q.current),q.current=void 0),U.current&&Ua(U.current)},H=()=>{Z(-1),x==null||x()},d=O=>{var M,A;if(G.current=O,P==null||P(O),re.current){const j=_e.positionElementToTarget(G.current,re.current,n,r);oe.current={...j,width:re.current.offsetWidth}}u===!0&&((M=F.current)==null||M.unobserve(G.current),(A=F.current)==null||A.observe(G.current))},S=p.useMemo(()=>{const O={top:`${oe.current.top}px`,left:`${oe.current.left}px`,zIndex:z};return i&&(O.width=`${oe.current.width}px`),O},[$,z,i]);return m.jsx(to,{start:W,timeout:f,showTransitionOptions:h,hideTransitionOptions:b,onEntering:he,onEntered:v,onExit:E,onExited:H,unmountOnExit:l,children:({state:O,defaultStyle:M,transitionStyles:A})=>m.jsx("div",{className:"bsc-fixed bsc-bg-white dark:bsc-bg-mono-dark-1 bsc-border bsc-border-solid dark:bsc-text-mono-light-1 dark:bsc-border-mono-light-1 bsc-shadow",style:{...S,...M,...A[O]},ref:j=>j&&d(j),children:_})})};let cr;const Dh=new Uint8Array(16);function Oh(){if(!cr&&(cr=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!cr))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return cr(Dh)}const Re=[];for(let e=0;e<256;++e)Re.push((e+256).toString(16).slice(1));function Ih(e,t=0){return Re[e[t+0]]+Re[e[t+1]]+Re[e[t+2]]+Re[e[t+3]]+"-"+Re[e[t+4]]+Re[e[t+5]]+"-"+Re[e[t+6]]+Re[e[t+7]]+"-"+Re[e[t+8]]+Re[e[t+9]]+"-"+Re[e[t+10]]+Re[e[t+11]]+Re[e[t+12]]+Re[e[t+13]]+Re[e[t+14]]+Re[e[t+15]]}const so={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Nh(e,t,r){if(so.randomUUID&&!t&&!e)return so.randomUUID();e=e||{};const n=e.random||(e.rng||Oh)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,t){r=r||0;for(let a=0;a<16;++a)t[r+a]=n[a];return t}return Ih(n)}class lr{static create(t){const r=[];let n=0;for(let a=0,i=t.formatParts.length;a<i;a++){const o=t.formatParts[a],s=n,u=s+o.characterCount;r.push({startPosition:s,endPosition:u,...o}),n=u}return r}}class _h{constructor(t,r){Y(this,"instanceCollection");Y(this,"formatPartList");Y(this,"inputSlotCollection");Y(this,"currentPartIndex",0);Y(this,"currentCursorPosition",0);Y(this,"inputElement");Y(this,"inputSelection",null);Y(this,"inputRange");Y(this,"textNode");this.instanceCollection=xt.getInstance(),this.formatPartList=lr.create(t),this.inputSlotCollection=this.instanceCollection.getInputSlotInstance(r,t)}getCursorPosition(){return this.currentCursorPosition}getCurrentPartIndex(){return this.currentPartIndex}setInputElement(t){this.inputElement=t}setCursorToCurrentPosition(){this.setCursorSelection(this.currentCursorPosition)}setCursorPosition(t){this.setCursorSelection(t)}setCursorSelection(t,r){this.createInputRangeSelection(),this.inputRange&&this.textNode&&(this.inputRange.setStart(this.textNode,t),this.inputRange.setEnd(this.textNode,r||t),this.currentCursorPosition=r||t,this.setPartIndexByCursorPosition())}findCursorPosition(){var r,n;const t=(r=window.getSelection())==null?void 0:r.getRangeAt(0);if(this.inputElement&&t){const a=document.createTreeWalker(this.inputElement,NodeFilter.SHOW_TEXT,u=>{const l=document.createRange();return l.selectNodeContents(u),l.compareBoundaryPoints(Range.END_TO_END,t)<1?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT});let i=0;for(;a.nextNode();)i+=((n=a.currentNode.textContent)==null?void 0:n.length)||0;t.startContainer.nodeType===Node.TEXT_NODE&&(i+=t.startOffset);const o=this.inputSlotCollection.getLastSlotWithData(),s=o.startPosition+o.partText.length;this.setCursorSelection(i>s?s:i)}}isAtLastPart(){return this.currentPartIndex===this.formatPartList.length-1}moveHome(){const t=this.inputSlotCollection.getFirstSlot();this.setCursorSelection(t.startPosition)}moveEnd(){const t=this.inputSlotCollection.getLastSlotWithData(),r=t.startPosition+t.partText.length;this.setCursorSelection(r)}moveCursorLeft(){if(this.currentCursorPosition>0){const t=this.currentCursorPosition-1;let r=this.formatPartList[this.currentPartIndex];if(t>=r.startPosition&&t<=r.endPosition)this.setCursorSelection(t);else for(let n=this.currentPartIndex-1;n>=0;n--)r=this.formatPartList[n],t>=r.startPosition&&t<=r.endPosition&&(r.isSeparator?this.setCursorSelection(this.formatPartList[n-1].endPosition):this.setCursorSelection(t))}}moveCursorRight(){const t=this.inputSlotCollection.getLastSlotWithData(),r=t.startPosition+t.partText.length;if(this.currentCursorPosition<r){const n=this.currentCursorPosition+1;let a=this.formatPartList[this.currentPartIndex];if(n>=a.startPosition&&n<=a.endPosition)this.setCursorSelection(n);else for(let i=this.currentPartIndex+1,o=this.formatPartList.length;i<o;i++)a=this.formatPartList[i],n>=a.startPosition&&n<=a.endPosition&&(a.isSeparator?this.setCursorSelection(this.formatPartList[i+1].startPosition):this.setCursorSelection(n))}}moveToNextInputPart(){if(this.currentPartIndex<this.formatPartList.length-1){const t=this.findNextEditablePart();t&&(this.currentPartIndex=t.partIndex,this.setCursorSelection(t.startPosition))}}moveToPreviousInputPart(){if(this.currentPartIndex>0){const t=this.findPreviousEditablePart();t&&(this.currentPartIndex=t.partIndex,this.setCursorSelection(t.endPosition))}}findNextEditablePart(){return this.inputSlotCollection.getNextSlot(this.currentPartIndex)}findPreviousEditablePart(){return this.inputSlotCollection.getPreviousSlot(this.currentPartIndex)}setPartIndexByCursorPosition(){for(let t=0;t<this.formatPartList.length;t++){const r=this.formatPartList[t];if(this.currentCursorPosition>=r.startPosition&&this.currentCursorPosition<=r.endPosition){if(r.isSeparator){this.currentCursorPosition=this.formatPartList[t+1].startPosition,this.currentPartIndex=t+1;break}this.currentPartIndex=t;break}}}createInputRangeSelection(){var t,r;this.inputElement&&(this.inputSelection=window.getSelection(),this.inputRange=document.createRange(),(t=this.inputSelection)==null||t.removeAllRanges(),this.inputRange.selectNodeContents(this.inputElement),this.inputRange.collapse(!0),(r=this.inputSelection)==null||r.addRange(this.inputRange),this.inputElement.firstChild&&(this.textNode=this.inputElement.firstChild))}}class Mh{static create(t){const r=[];for(let n=0,a=t.length;n<a;n++){const i=t[n];i.isSeparator||r.push({partIndex:n,partText:"",isComplete:!1,...i})}return r}}class jh{constructor(t){Y(this,"inputSlots");this.inputSlots=Mh.create(lr.create(t))}clearAllSlots(){for(let t=0,r=this.inputSlots.length;t<r;t++)this.inputSlots[t].partText=""}getSlot(t){return this.inputSlots.find(r=>r.partIndex===t)}getFirstSlot(){return this.inputSlots[0]}getNextSlot(t){const r=this.inputSlots.findIndex(n=>n.partIndex===t);if(r>-1&&r+1<this.inputSlots.length)return this.inputSlots[r+1]}getPreviousSlot(t){const r=this.inputSlots.findIndex(n=>n.partIndex===t);if(r>-1&&r-1>=0)return this.inputSlots[r-1]}getLastSlotWithData(){const t=this.inputSlots.findIndex(n=>!n.isComplete);let r=t;for(let n=t+1,a=this.inputSlots.length;n<a;n++)this.inputSlots[n].partText.length>0&&(r=n);return this.inputSlots[r>-1?r:0]}allSlotsCompleted(){return this.inputSlots.every(t=>t.isComplete)}allSlotsEmpty(){return this.inputSlots.every(t=>t.partText.length===0)}}class xt{static getInstance(){return this.instance||(this.instance=new kh),this.instance}}Y(xt,"instance");class kh{constructor(){Y(this,"navigatorInstances");Y(this,"inputSlotInstances");this.navigatorInstances={},this.inputSlotInstances={}}getNavigatorInstance(t,r){return this.navigatorInstances[t]||(this.navigatorInstances[t]=new _h(r,t)),this.navigatorInstances[t]}getInputSlotInstance(t,r){return this.inputSlotInstances[t]||(this.inputSlotInstances[t]=new jh(r)),this.inputSlotInstances[t]}removeInstances(t){this.navigatorInstances[t]&&delete this.navigatorInstances[t],this.inputSlotInstances[t]&&delete this.inputSlotInstances[t]}}class on{constructor(t,r){Y(this,"instanceCollection");Y(this,"formatPartList");Y(this,"inputSlotCollection");Y(this,"inputElement");this.instanceCollection=xt.getInstance(),this.formatPartList=lr.create(t),this.inputSlotCollection=this.instanceCollection.getInputSlotInstance(r,t)}setInputElement(t){this.inputElement=t}render(){var r;let t="";for(let n=0,a=this.formatPartList.length;n<a;n++){const i=this.formatPartList[n];if(i.isSeparator)t+=i.inputText;else{const o=this.inputSlotCollection.getSlot(n);o&&(t+=o.partText+((r=o.inputText)==null?void 0:r.repeat(o.characterCount-o.partText.length)))}}this.inputElement&&(this.inputElement.innerHTML=t)}}var Be=(e=>(e[e.Text=0]="Text",e[e.Numeric=1]="Numeric",e))(Be||{});class uo{constructor(){Y(this,"numberKeys",["0","1","2","3","4","5","6","7","8","9"]);Y(this,"movementKeys",["ArrowLeft","ArrowRight","Home","End"]);Y(this,"editingKeys",["Backspace","Delete"]);Y(this,"ignoreKeys",["Shift","Alt","Control","Fn","Meta"])}isNumberKey(t){return this.numberKeys.includes(t)}isMovementKey(t){return this.movementKeys.includes(t.key)}isEditingKey(t){return this.editingKeys.includes(t.key)}isIgnoreKey(t){return this.ignoreKeys.includes(t.key)}}class Rh{constructor(t){Y(this,"_currentIndex",0);Y(this,"index",0);Y(this,"formatParts");this.formatParts=lr.create(t)}get currentIndex(){return this._currentIndex}hasNext(){return this.index<this.formatParts.length}next(){if(this.index<this.formatParts.length)return this._currentIndex=this.index++,this.formatParts[this._currentIndex]}peek(){if(this.index<this.formatParts.length)return this.formatParts[this.index]}reset(){this.index=0}}class co{constructor(t,r){Y(this,"instanceCollection");Y(this,"inputSlotCollection");Y(this,"formatNavigator");Y(this,"keyTypeChecker");Y(this,"formatRenderer");Y(this,"formatPartList");this.format=t,this.instanceCollection=xt.getInstance(),this.inputSlotCollection=this.instanceCollection.getInputSlotInstance(r,t),this.formatNavigator=this.instanceCollection.getNavigatorInstance(r,t),this.keyTypeChecker=new uo,this.formatRenderer=new on(t,r),this.formatPartList=new Rh(t)}setInputElement(t){this.formatRenderer.setInputElement(t)}processKeyPress(t){if(this.keyTypeChecker.isEditingKey(t)){this.processEditRules(t);return}this.processInputRules(t)}processInputValue(t){var n;this.inputSlotCollection.clearAllSlots(),this.formatPartList.reset();let r=0;for(;this.formatPartList.hasNext();){const a=this.formatPartList.next();if(a&&!a.isSeparator)if(((n=this.formatPartList.peek())==null?void 0:n.isSeparator)===!0){const i=this.formatPartList.currentIndex,o=this.formatPartList.next();if(o&&o.inputText){const s=t.indexOf(o.inputText,r),u=this.inputSlotCollection.getSlot(i);if(u&&s>-1){const l=s-r>u.characterCount?r+u.characterCount:s;u.partText=t.substring(r,l),this.processSlotRules(u),r=s+o.characterCount}}}else{const i=this.inputSlotCollection.getSlot(this.formatPartList.currentIndex);i&&(i.partText=t.substring(r,r+i.characterCount),this.processSlotRules(i))}}}processEditRules(t){const r=this.inputSlotCollection.getSlot(this.formatNavigator.getCurrentPartIndex());if(!r)return;const n=this.formatNavigator.getCursorPosition(),a=n-r.startPosition,i=this.format.deleteShiftsFormatPart||!1;switch(t.key){case"Backspace":{if(!(r.startPosition===n))r.partText=r.partText.substring(0,a-1)+r.partText.substring(a),i&&this.shiftFormatParts(r),this.formatRenderer.render(),this.formatNavigator.moveCursorLeft(),this.processSlotRules(r,!0);else{this.processSlotRules(r,!0);const s=this.inputSlotCollection.getPreviousSlot(r.partIndex);s&&(s.partText=s.partText.substring(0,s.partText.length-1),i&&this.shiftFormatParts(s),this.formatRenderer.render(),this.formatNavigator.setCursorPosition(s.startPosition+s.partText.length),this.processSlotRules(s,!0))}break}case"Delete":r.partText=r.partText.substring(0,a)+r.partText.substring(a+1),i&&this.shiftFormatParts(r),this.formatRenderer.render(),this.formatNavigator.setCursorToCurrentPosition(),this.processSlotRules(r,!0);break}}shiftFormatParts(t){let r=t,n;for(;(n=this.inputSlotCollection.getNextSlot(r.partIndex))!==void 0;){const a=n.partText.substring(0,1);n.partText=n.partText.substring(1),r.partText=r.partText+a,r=n}}processInputRules(t){const r=this.inputSlotCollection.getSlot(this.formatNavigator.getCurrentPartIndex());if(!r)return;const{key:n}=t,a=r.characterCount,i=r.partText;if(r.valueType===Be.Numeric){if(!this.keyTypeChecker.isNumberKey(n))return;const o=r.maximumValue,s=r.exceedingMaximumValueCausesTab||!1,u=r.padWithZeros||!1,l=parseInt(this.createNewValue(r,n));if(o&&l>o)if(s){u&&(r.partText=r.partText.padStart(a,"0")),r.isComplete=!0;const f=this.inputSlotCollection.getNextSlot(r.partIndex);f&&!f.isComplete&&(f.partText=n),this.formatRenderer.render(),f&&this.formatNavigator.setCursorPosition(f.isComplete?f.startPosition:f.startPosition+1)}else return;else i.length+1===a?(this.addToInputSlot(n),r.isComplete=!0,this.formatRenderer.render(),this.formatNavigator.isAtLastPart()?this.formatNavigator.moveCursorRight():this.formatNavigator.moveToNextInputPart()):i.length+1<a&&(this.addToInputSlot(n),this.formatRenderer.render(),this.formatNavigator.moveCursorRight())}else i.length+1===a?(this.addToInputSlot(n),r.isComplete=!0,this.formatRenderer.render(),this.formatNavigator.isAtLastPart()?this.formatNavigator.moveCursorRight():this.formatNavigator.moveToNextInputPart()):(this.addToInputSlot(n),this.formatRenderer.render(),this.formatNavigator.moveCursorRight())}addToInputSlot(t){const r=this.inputSlotCollection.getSlot(this.formatNavigator.getCurrentPartIndex());r&&(r.partText=this.createNewValue(r,t))}createNewValue(t,r){const n=t.partText,a=this.formatNavigator.getCursorPosition();if(a>=t.startPosition+t.partText.length)return n+r;{const i=a-t.startPosition;return n.substring(0,i)+r+n.substring(i)}}processSlotRules(t,r=!1){const n=t.characterCount,a=t.allCharactersRequired||!1;if(t.valueType===Be.Numeric){const i=t.minimumValue,o=t.maximumValue;if(a)t.isComplete=t.partText.length===n;else if(i!==void 0&&o!==void 0){const s=t.padWithZeros||!1,u=parseInt(t.partText);t.isComplete=u>=i&&u<=o,t.isComplete&&s&&!r&&(t.partText=t.partText.padStart(n,"0"))}else t.isComplete=t.partText.length>0}else a?t.isComplete=t.partText.length===n:t.isComplete=t.partText.length>0}}class Lh{constructor(t,r){Y(this,"instanceCollection");Y(this,"formatNavigator");Y(this,"ruleProcessor");Y(this,"keyTypeChecker");Y(this,"formatRenderer");this.format=t,this.instanceCollection=xt.getInstance(),this.formatNavigator=this.instanceCollection.getNavigatorInstance(r,t),this.ruleProcessor=new co(t,r),this.keyTypeChecker=new uo,this.formatRenderer=new on(t,r)}setInputElement(t){this.ruleProcessor.setInputElement(t),this.formatRenderer.setInputElement(t)}processMovementKey(t){const{key:r,metaKey:n}=t;switch(r){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();break}}processKeyPress(t){return this.keyTypeChecker.isIgnoreKey(t)?!1:this.keyTypeChecker.isMovementKey(t)?(this.processMovementKey(t),!1):(this.ruleProcessor.processKeyPress(t),!0)}}class Ah{constructor(t,r=""){Y(this,"instanceId");Y(this,"instanceCollection");Y(this,"keyProcessor");Y(this,"formatNavigator");Y(this,"formatRenderer");Y(this,"inputSlotCollection");Y(this,"inputRuleProcessor");Y(this,"previousOutputValue","");Y(this,"inputElementSet",!1);Y(this,"isInputFocused",!1);Y(this,"inputElement");Y(this,"onFormatChange");this.inputValue=r,this.instanceId=Nh(),this.instanceCollection=xt.getInstance(),this.keyProcessor=new Lh(t,this.instanceId),this.formatNavigator=this.instanceCollection.getNavigatorInstance(this.instanceId,t),this.formatRenderer=new on(t,this.instanceId),this.inputSlotCollection=this.instanceCollection.getInputSlotInstance(this.instanceId,t),this.inputRuleProcessor=new co(t,this.instanceId)}inputElementCreated(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)}inputFocused(){this.isInputFocused=!0,this.formatRenderer.render(),setTimeout(()=>this.formatNavigator.findCursorPosition())}inputBlurred(){this.isInputFocused=!1}inputValuePassed(t){this.inputValue=t,this.inputElementSet&&(this.inputValue.length>0?this.inputRuleProcessor.processInputValue(t):(this.inputSlotCollection.clearAllSlots(),this.previousOutputValue=void 0),setTimeout(()=>{var r;this.formatRenderer.render(),this.isInputFocused&&this.formatNavigator.setCursorToCurrentPosition(),this.inputValue.length>0&&(this.previousOutputValue=(r=this.inputElement)==null?void 0:r.innerHTML)}))}registerFormatChangeEvent(t){this.onFormatChange=t}mouseUpHandler(){this.formatNavigator.findCursorPosition()}keyDownHandler(t){t.key!=="Tab"&&(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()&&this.previousOutputValue!==void 0&&(this.previousOutputValue=void 0,this.onFormatChange())))}dispose(){this.instanceCollection.removeInstances(this.instanceId)}}const Fh=(e,t)=>{const{value:r="",format:n,readOnly:a=!1,debounceTime:i=800,fillContainer:o=!0,leftElement:s,rightElement:u,className:l,leftElementClassName:f,rightElementClassName:h,isSingleLine:b=!1,allowSingleLineScroll:T=!1,isInputValid:x,onChange:D,onFocus:P,onBlur:_,onElementCreate:z,onLeftElementClick:Z,onRightElementClick:W}=e,[g,$]=p.useState(!0),J=p.useRef(),te=p.useRef(),B=p.useRef();p.useEffect(()=>()=>{var L;(L=B.current)==null||L.dispose()},[]),p.useEffect(()=>{var L;(L=B.current)==null||L.inputValuePassed(r)},[r]),p.useEffect(()=>{var L,he,v;(L=B.current)==null||L.dispose(),n&&(B.current=new Ah(n,r),te.current&&((he=B.current)==null||he.inputElementCreated(te.current)),(v=B.current)==null||v.registerFormatChangeEvent(oe))},[n]);const oe=p.useCallback(L=>{x?x(L)?($(!0),D==null||D(L)):$(!1):D==null||D(L)},[D]),re=p.useCallback(L=>{var he;(he=B.current)==null||he.inputFocused(),P==null||P(L)},[P]),G=p.useCallback(L=>{var he;(he=B.current)==null||he.inputBlurred(),_==null||_(L)},[_]),y=p.useCallback(()=>{var L;(L=B.current)==null||L.mouseUpHandler()},[]),U=p.useCallback(L=>{var he;(he=B.current)==null||he.keyDownHandler(L)},[]),q=p.useCallback(L=>{var he,v,E,H,d,S,O,M,A;(v=(he=J.current)==null?void 0:he.inputElement)==null||v.removeEventListener("keydown",U),(H=(E=J.current)==null?void 0:E.inputElement)==null||H.removeEventListener("mouseup",y),J.current=L,(S=(d=J.current)==null?void 0:d.inputElement)==null||S.addEventListener("keydown",U),(M=(O=J.current)==null?void 0:O.inputElement)==null||M.addEventListener("mouseup",y),te.current=(A=J.current)==null?void 0:A.inputElement},[]),F=p.useCallback(()=>{var L;(L=J.current)==null||L.focus()},[]);p.useImperativeHandle(t,()=>({focus:F}));const ne=qe(l,{"!bsc-border-error":!g});return m.jsx(Qt,{ref:L=>L&&q(L),readOnly:a,debounceTime:i,fillContainer:o,leftElement:s,rightElement:u,className:ne,leftElementClassName:f,rightElementClassName:h,isSingleLine:b,allowSingleLineScroll:T,onFocus:re,onBlur:G,onElementCreate:z,onLeftElementClick:Z,onRightElementClick:W})},lo=p.forwardRef(Fh),sn=p.createContext(void 0);function fo(e,t,r=!0){var b,T;const n=ga(e),a=fa(e),i=Jl(e);let o=Wr(a)-(((b=t.options)==null?void 0:b.weekStartsOn)||0);o=o===-1?6:o;const s=Wr(i)-(((T=t.options)==null?void 0:T.weekStartsOn)||0),u=Xc({start:a,end:i}),l=n+o>35?6:5,f=ho(l,7,{dayValue:null,isCurrent:!0});let h=1;for(let x=0,D=l;x<D;x++){for(let P=x>0?0:o;P<7;P++){const _=u[h-1];if(_.setHours(e.getHours(),e.getMinutes(),e.getSeconds()),f[x][P].dayValue=_,++h>n)break}if(h>n)break}if(o>0&&r)for(let x=0;x<o;x++)f[0][x].dayValue=ed(a,o-x),f[0][x].isCurrent=!1;if(s>-1&&r)for(let x=6;x>s;x--)f[l-1][x].dayValue=Kt(i,x-s),f[l-1][x].isCurrent=!1;return f}function ho(e,t,r){const n=[];for(let a=0,i=e;a<i;a++){const o=[];for(let s=0,u=t;s<u;s++){const l=Yh(r)?r:{...r};o.push(l)}n.push(o)}return n}function Yh(e){const t=typeof e;return t==="string"||t==="number"||t==="boolean"||e instanceof Date}function $h(e){var n;const t=td(new Date,((n=e.options)==null?void 0:n.weekStartsOn)||0),r=[];for(let a=0;a<7;a++)r.push(Kt(t,a).toLocaleDateString(e.code,{weekday:"short"}));return r}function Uh(e){const t=new Date(Date.UTC(2020,0,1)),r=[[{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:""}]];let n=0;for(let a=0;a<3;a++)for(let i=0;i<4;i++)r[a][i]={monthNumber:n,monthName:it(t,n++).toLocaleDateString(e.code,{month:"short"})};return r}function Hh(e,t){const r=new Date(e.getTime()),n=Math.floor(r.getFullYear()/10)*10;r.setFullYear(n);const a=Jc({start:r,end:Zt(r,9)}),i=ho(3,4,"");let o=0;for(let s=0;s<3;s++)for(let u=0;u<4&&(i[s][u]=a[o++].toLocaleDateString(t.code,{year:"numeric"}),o!==a.length);u++);return i}function Wh(e){const t=new Date;return t.setHours(0,0,0,0),t.toLocaleTimeString(e.code)}function Vh(e,t,r){return e.getTime()>=t.getTime()&&e.getTime()<=r.getTime()}async function po(e){return(await import(`/node_modules/date-fns/locale/${zh(e)}`)).default}function zh(e){const[t,r]=e.split("-");switch(t){case"af":return"af";case"ar":switch(r){case"DZ":return"ar-DZ";case"EG":return"ar-EG";case"MA":return"ar-MA";case"SA":return"ar-SA";case"TN":return"ar-TN";default:return"ar"}case"az":return"az";case"be":switch(r){case"tarask":return"be-tarask";default:return"be"}case"bg":return"bg";case"bn":return"bn";case"bs":return"bs";case"ca":return"ca";case"cs":return"cs";case"cy":return"cy";case"da":return"da";case"de":switch(r){case"AT":return"de-AT";default:return"de"}case"el":return"el";case"en":switch(r){case"AU":return"en-AU";case"CA":return"en-CA";case"GB":return"en-GB";case"IE":return"en-IE";case"IN":return"en-IN";case"NZ":return"en-NZ";case"US":return"en-US";default:return"en-ZA"}case"eo":return"eo";case"es":return"es";case"et":return"et";case"eu":return"eu";case"fa":return"fa-IR";case"fi":return"fi";case"fr":switch(r){case"CA":return"fr-CA";case"CH":return"fr-CH";default:return"fr"}case"fy":return"fy";case"gd":return"gd";case"gl":return"gl";case"gu":return"gu";case"he":return"he";case"hi":return"hi";case"hr":return"hr";case"ht":return"ht";case"hu":return"hu";case"hy":return"hy";case"id":return"id";case"is":return"is";case"it":switch(r){case"CH":return"it-CH";default:return"it"}case"ja":switch(r){case"Hira":return"ja-Hira";default:return"ja"}case"ka":return"ka";case"kk":return"kk";case"km":return"km";case"kn":return"kn";case"ko":return"ko";case"lb":return"lb";case"lt":return"lt";case"lv":return"lv";case"mk":return"mk";case"mn":return"mn";case"ms":return"ms";case"mt":return"mt";case"nb":return"nb";case"nl":switch(r){case"BE":return"nl-BE";default:return"nl"}case"nn":return"nn";case"oc":return"oc";case"pl":return"pl";case"pt":switch(r){case"BR":return"pt-BR";default:return"pt"}case"ro":return"ro";case"ru":return"ru";case"sk":return"sk";case"sl":return"sl";case"sq":return"sq";case"sr":switch(r){case"Latn":return"sr-Latn";default:return"sr"}case"sv":return"sv";case"ta":return"ta";case"te":return"te";case"th":return"th";case"tr":return"tr";case"ug":return"ug";case"uk":return"uk";case"uz":switch(r){case"Cyrl":return"uz-Cyrl";default:return"uz"}case"vi":return"vi";case"zh":switch(r){case"CN":return"zh-CN";case"HK":return"zh-HK";default:return"zh-TW"}default:return"en-AU"}}function Ht(e,t){const r=rd(e);if(isNaN(r.valueOf())){let n=ze(e,"P pp",new Date,{locale:t});return!isNaN(n.valueOf())||(n=ze(e,"Pp",new Date,{locale:t}),!isNaN(n.valueOf()))||(n=ze(e,"P HH:mm",new Date,{locale:t}),!isNaN(n.valueOf()))||(n=ze(e,"P hh:mm a..aaa",new Date,{locale:t}),!isNaN(n.valueOf()))||(n=ze(e,"P HH:mm:ss",new Date,{locale:t}),!isNaN(n.valueOf()))||(n=ze(e,"P hh:mm:ss a..aaa",new Date,{locale:t}),!isNaN(n.valueOf()))||(n=ze(e,"P",new Date,{locale:t}),!isNaN(n.valueOf()))||(n=ze(e,"P p",new Date,{locale:t}),!isNaN(n.valueOf()))||(n=ze(e,"pp",new Date,{locale:t}),!isNaN(n.valueOf()))||(n=ze(e,"p",new Date,{locale:t}),!isNaN(n.valueOf()))?n:void 0}return r}function mo(e,t){const r=e.split("-");if(r.length!==2)return;const n=Ht(r[0].trim(),t);if(!n)return;const a=Ht(r[1].trim(),t);if(a)return[n,a]}var we=(e=>(e[e.DateTime=0]="DateTime",e[e.DateOnly=1]="DateOnly",e[e.TimeOnly=2]="TimeOnly",e[e.DateRange=3]="DateRange",e))(we||{}),Wt=(e=>(e[e.Day=0]="Day",e[e.Month=1]="Month",e[e.Year=2]="Year",e[e.Range=3]="Range",e))(Wt||{}),fr=(e=>(e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e))(fr||{}),De=(e=>(e[e.TwelveHour=0]="TwelveHour",e[e.TwentyFourHour=1]="TwentyFourHour",e))(De||{}),tt=(e=>(e[e.Normal=0]="Normal",e[e.Range=1]="Range",e))(tt||{}),dr=(e=>(e[e.Right=0]="Right",e[e.Left=1]="Left",e[e.None=2]="None",e))(dr||{}),X=(e=>(e[e.DaySelector=0]="DaySelector",e[e.MonthSelector=1]="MonthSelector",e[e.YearSelector=2]="YearSelector",e[e.TimeSelector=3]="TimeSelector",e[e.DateRangeSelector=4]="DateRangeSelector",e[e.SetViewDate=5]="SetViewDate",e[e.SetSelectedDate=6]="SetSelectedDate",e[e.SetSelectedDateRange=7]="SetSelectedDateRange",e[e.SetSelectedStartDate=8]="SetSelectedStartDate",e[e.SetSelectedEndDate=9]="SetSelectedEndDate",e[e.SetTimeFormat=10]="SetTimeFormat",e[e.ClearDates=11]="ClearDates",e[e.InitializeDates=12]="InitializeDates",e))(X||{});const Bh=(e,t)=>{switch(t.type){case 0:return{...e,currentSelector:0,currentViewDate:t.viewDate||e.currentViewDate};case 1:return{...e,currentSelector:1,currentViewDate:t.viewDate||e.currentViewDate};case 2:return{...e,currentSelector:2};case 3:return{...e,currentSelector:3};case 4:return{...e,currentSelector:4,currentViewDate:t.viewDate||e.currentViewDate};case 5:return{...e,currentViewDate:t.viewDate||new Date,dateInitialized:!0};case 6:return{...e,selectedDate:t.selectedDate||e.selectedDate,currentViewDate:t.viewDate||e.currentViewDate};case 7:return{...e,selectedStartDate:t.selectedStartDate||e.selectedStartDate,selectedEndDate:t.selectedEndDate||e.selectedEndDate};case 8:return{...e,selectedStartDate:t.selectedStartDate,selectedEndDate:void 0};case 9:return{...e,selectedEndDate:t.selectedEndDate};case 10:return{...e,timeFormat:t.timeFormat||e.timeFormat};case 11:return{currentSelector:e.currentSelector,currentViewDate:e.currentViewDate,timeFormat:e.timeFormat,dateInitialized:!0};case 12:const r={...e,currentViewDate:qh(t.initialDate),dateInitialized:!0};return Array.isArray(t.initialDate)?{...r,selectedStartDate:t.initialDate[0],selectedEndDate:t.initialDate[1]}:{...r,selectedDate:t.initialDate};default:return{...e,currentSelector:0}}};function qh(e){return e?Array.isArray(e)?e[0]:e:new Date}const hr=({viewDate:e,selectedDate:t,selectedStartDate:r,selectedEndDate:n,selectionMode:a=tt.Normal,locale:i,onDateSelected:o,selectableDate:s,isValidDate:u,dispatcher:l})=>{var q;const[f,h]=p.useState(!1),[b,T]=p.useState(),[x,D]=p.useState(),[P,_]=p.useState(),[z,Z]=p.useState(),W=p.useRef(),g=p.useRef(),$=p.useContext(sn),J=p.useMemo(()=>$.calendarTemplate,[$.calendarTemplate]),te=async()=>i||await po(Ia());p.useEffect(()=>{te().then(F=>{W.current=F,g.current=$h(W.current),h(!0)}).catch(F=>console.error(F))},[]),p.useEffect(()=>{e&&W.current&&_(fo(e,W.current,a===tt.Normal))},[e,f]),p.useEffect(()=>{Z(t?new Date(t.getFullYear(),t.getMonth(),t.getDate()):void 0)},[t]),p.useEffect(()=>{T(r?new Date(r.getFullYear(),r.getMonth(),r.getDate(),0,0,0).getTime():void 0),D(n?new Date(n.getFullYear(),n.getMonth(),n.getDate(),23,59,59).getTime():void 0)},[r,n]),p.useEffect(()=>{W.current&&i&&(W.current=i,_(fo(e,W.current,a===tt.Normal)))},[i]);const B=F=>{if(a===tt.Normal)l==null||l({type:X.SetSelectedDate,selectedDate:F,viewDate:F}),o==null||o(F);else{if(!o)throw new Error("Range selection mode requires onDateSelected to be set");!r||ef(F,r)?o(F):r&&!n?o(F,{setEndDate:!0}):r&&n&&o(F)}},oe=F=>(z==null?void 0:z.toLocaleDateString())===F.toLocaleDateString(),re=F=>{if(b&&x){const ne=F.getTime();return ne>=b&&ne<=x}return!1},G={viewDate:e,selectedDate:t,selectedStartDate:r,selectedEndDate:n,selectionMode:a,locale:i,weekDays:g.current,monthMatrix:P,selectableDate:s,isValidDate:u,onDateClicked:B,isSelectedDate:oe,isInSelectedDateRange:re},U=J||((F,ne)=>m.jsx("div",{className:"bsc-w-full bc-dt-calendar",children:ne}));return m.jsx(qr,{props:G,template:U,children:m.jsxs("div",{className:"bsc-grid bsc-grid-cols-7 bsc-gap-3 bc-dt-day-row bsc-min-w-[329px]",children:[(q=g.current)==null?void 0:q.map((F,ne)=>m.jsx("div",{className:"bsc-text-center bsc-font-bold bc-dt-day-cell",children:F},ne)),P==null?void 0:P.map((F,ne)=>F.map((L,he)=>{var H,d;const v=L.dayValue!==null&&(s===void 0||s(L.dayValue)),E=qe("bsc-text-center bsc-py-1",{"bsc-text-gray-3":!L.isCurrent,"bsc-bg-primary-3 dark:bsc-bg-mono-light-1 dark:bsc-text-mono-dark-1":L&&L.dayValue&&(z&&oe(L.dayValue)||b&&!x&&la(b,L.dayValue)||b&&x&&re(L.dayValue)),"bsc-cursor-pointer":v,"bsc-text-error bsc-cursor-not-allowed":!v,"bsc-bg-primary-5 dark:bsc-bg-mono-light-3 dark:bsc-text-mono-dark-1":L.dayValue&&Jf(L.dayValue)&&!(oe(L.dayValue)||re(L.dayValue))},"bc-dt-date-cell");return m.jsx("div",{className:E,onClick:()=>L&&L.dayValue&&v&&(u===void 0||u(L.dayValue))&&B(L.dayValue),children:(d=L.dayValue)==null?void 0:d.getDate().toLocaleString((H=W.current)==null?void 0:H.code)},ne.toString()+he.toString())}))]})})},pr=({title:e,scrollerType:t,onTitleClicked:r,onMovePrevious:n,onMoveNext:a})=>{const o=p.useContext(sn).dateScrollerTemplate,s={title:e,scrollerType:t,onTitleClicked:r,onMovePrevious:n,onMoveNext:a},l=o||((f,h)=>m.jsx("div",{className:"bsc-w-full bsc-flex bsc-flex-row bsc-items-center bsc-py-1 bsc-px-2 bc-dt-scroller",children:h}));return m.jsxs(qr,{props:s,template:l,children:[m.jsx("div",{className:"bsc-flex-shrink bsc-cursor-pointer bc-dt-scroller-left",children:m.jsx("button",{className:"bsc-p-2 focus:bsc-outline-none",onClick:n,children:m.jsx(jd,{size:24})})}),m.jsx("div",{className:"bsc-flex-grow bsc-text-center bsc-cursor-pointer bc-dt-scroller-title",onClick:r,children:e}),m.jsx("div",{className:"bsc-flex-shrink bsc-cursor-pointer bc-dt-scroller-right",children:m.jsx("button",{className:"bsc-p-2 focus:bsc-outline-none",onClick:a,children:m.jsx($d,{size:24})})})]})},Gh=({selectedDate:e,viewDate:t,locale:r,showTimeSelector:n,selectableDate:a,isValidDate:i,onChange:o,dispatcher:s})=>{const u=()=>{t&&s({type:X.SetViewDate,viewDate:Da(t,1)})},l=()=>{t&&s({type:X.SetViewDate,viewDate:it(t,1)})},f=()=>{s({type:X.MonthSelector})},h=()=>{s({type:X.TimeSelector})},b=()=>t?t.toLocaleDateString(r.code,{month:"long",year:"numeric"}):"";return m.jsxs("div",{className:"bsc-p-2 bc-dt-day-selector",children:[m.jsx(pr,{title:b(),scrollerType:Wt.Day,onTitleClicked:f,onMovePrevious:u,onMoveNext:l}),m.jsx(hr,{viewDate:t,selectedDate:e,locale:r,selectableDate:a,isValidDate:i,onDateSelected:o,dispatcher:s}),n&&m.jsx("div",{className:"bsc-w-full bsc-flex bsc-flex-row bsc-p-2 bsc-justify-center bc-dt-time-value-wrapper",children:m.jsx("div",{className:"bsc-p-2 bsc-cursor-pointer hover:bsc-bg-gray-4 dark:hover:bsc-bg-mono-light-2 dark:hover:bsc-text-mono-dark-2 dark:bsc-bg-mono-dark-1 dark:bsc-text-mono-light-1 bc-dt-time-value",onClick:h,children:(e==null?void 0:e.toLocaleTimeString(r.code))||Wh(r)})})]})},Qh=({viewDate:e,locale:t,dateSelection:r=we.DateTime,dispatcher:n})=>{const a=p.useRef(Uh(t)),i=()=>{const f=Oa(e,1);n({type:X.SetViewDate,viewDate:f})},o=()=>{const f=Zt(e,1);n({type:X.SetViewDate,viewDate:f})},s=f=>{n({type:r!==we.DateRange?X.DaySelector:X.DateRangeSelector,viewDate:yd(e,f)})},u=()=>e.toLocaleDateString(t.code,{year:"numeric"}),l=()=>{n({type:X.YearSelector})};return m.jsxs("div",{className:"bsc-p-2 bc-dt-month-selector",style:{minWidth:"20rem"},children:[m.jsx(pr,{title:u(),scrollerType:Wt.Month,onTitleClicked:l,onMovePrevious:i,onMoveNext:o}),m.jsx("div",{className:"bsc-w-full bsc-grid bsc-grid-cols-4 bsc-gap-4 bc-dt-month-grid",children:a.current.map((f,h)=>f.map((b,T)=>m.jsx("div",{className:"bsc-text-center bsc-cursor-pointer bc-dt-month-cell",onClick:()=>s(b.monthNumber),children:b.monthName},h.toString()+T.toString())))})]})};function Kh(e,t){if(t===e)return!1;const r=Object.values(t),n=Object.values(e);if(r.length!==n.length||r.some((i,o)=>i!==n[o]))return!0;const a=Object.keys(e);return Object.keys(t).some((i,o)=>i!==a[o])}function Zh(e,t){return e.matches[t]=!1,e.mediaQueries[t]={},e}function vo(e){const t=Object.keys(e);return typeof window>"u"?t.reduce(Zh,{mediaQueries:{},matches:{}}):t.reduce((r,n)=>{const a=window.matchMedia(e[n]);return r.mediaQueries[n]=a,r.matches[n]=a.matches,r},{mediaQueries:{},matches:{}})}function Xh(e,t){function r(n,a){return n[a]=e.mediaQueries[a].matches,n}switch(t.type){case"updateMatches":return{matches:Object.keys(e.mediaQueries).reduce(r,{}),mediaQueries:e.mediaQueries};case"setQueries":return vo(t.queries)}}function Jh(e){const t=It.useRef(e),[r,n]=It.useReducer(Xh,e,vo);It.useEffect(()=>{Kh(e,t.current)&&(n({type:"setQueries",queries:e}),t.current=e)},[e]);function a(){return n({type:"updateMatches"})}function i(u){const l=a;return typeof u.addListener<"u"?u.addListener(l):u.addEventListener("change",l),l}It.useEffect(()=>{const u=Object.values(r.mediaQueries),l=u.map(i);function f(h,b){typeof h.addListener<"u"?h.removeListener(l[b]):h.removeEventListener("change",l[b])}return()=>{u.forEach(f)}},[r.mediaQueries]);const{matches:o}=r,s=It.useMemo(()=>Object.values(o),[o]);return{matches:o,matchesAny:s.some(Boolean),matchesAll:s.length>0&&s.every(Boolean)}}function go(e){return Jh(ep(e)).matchesAll}const un={};function ep(e){return un[e]===void 0&&(un[e]={default:e}),un[e]}const tp=({viewDate:e,selectedStartDate:t,selectedEndDate:r,locale:n,onChange:a,dispatcher:i})=>{const o=go("not all and (min-width: 640px)"),s=it(e,1),u=(T,x)=>{!x||!x.setEndDate?i({type:X.SetSelectedStartDate,selectedStartDate:T}):(i({type:X.SetSelectedEndDate,selectedEndDate:T}),t&&(a==null||a([t,T])))},l=()=>{i({type:X.MonthSelector})},f=()=>o?`${e.toLocaleDateString(n.code,{month:"long"})} ${e.toLocaleDateString(n.code,{year:"numeric"})}`:`${e.toLocaleDateString(n.code,{month:"long"})} ${e.toLocaleDateString(n.code,{year:"numeric"})} - ${s.toLocaleDateString(n.code,{month:"long"})} ${s.toLocaleDateString(n.code,{year:"numeric"})}`,h=()=>{e&&i({type:X.SetViewDate,viewDate:Da(e,1)})},b=()=>{e&&i({type:X.SetViewDate,viewDate:it(e,1)})};return m.jsxs("div",{className:"bsc-flex bsc-flex-col bc-dt-range-selector",children:[m.jsx("div",{className:"bsc-flex-shrink bc-dt-range-scroller-wrapper",children:m.jsx(pr,{title:f(),scrollerType:Wt.Range,onTitleClicked:l,onMovePrevious:h,onMoveNext:b})}),m.jsx("div",{className:"bsc-flex-grow",children:o?m.jsx("div",{className:"bsc-py-1 bsc-px-2 bc-dt-range-calendar",children:m.jsx(hr,{viewDate:e,selectedStartDate:t,selectedEndDate:r,selectionMode:tt.Range,onDateSelected:u,locale:n,dispatcher:i})}):m.jsxs("div",{className:"bsc-flex bsc-flex-row bsc-py-1 bsc-px-2 bc-dt-range-wrapper",children:[m.jsx("div",{className:"bsc-border-r bsc-border-solid bsc-border-gray-3 bsc-pr-4 bc-dt-range-calendar-1",children:m.jsx(hr,{viewDate:e,selectedStartDate:t,selectedEndDate:r,selectionMode:tt.Range,onDateSelected:u,locale:n,dispatcher:i})}),m.jsx("div",{className:"bsc-pl-4 bc-dt-range-calendar-2",children:m.jsx(hr,{viewDate:s,selectedStartDate:t,selectedEndDate:r,selectionMode:tt.Range,onDateSelected:u,locale:n,dispatcher:i})})]})})]})},rp=({viewDate:e,showDateSelector:t,locale:r,timeFormat:n=De.TwelveHour,timeConstraints:a,onChange:i,dispatcher:o})=>{const s=p.useRef(n===De.TwelveHour?11:23),u=p.useRef(n===De.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"]),l=p.useRef(wd(0,59,y=>y.toString().padStart(2,"0"))),f=p.useRef(["AM","PM"]),h=p.useRef(Yc(e)),b=y=>y>11?y-12:y,[T,x]=p.useState(b(e.getHours())),[D,P]=p.useState(e.getMinutes()),[_,z]=p.useState(e.getHours()<=12?0:1),Z=p.useRef(e.toLocaleDateString(r.code));p.useEffect(()=>{const y=e.getHours(),U=e.getMinutes();if(y!==T&&x(n===De.TwelveHour?b(y):y),U!==D&&P(U),n===De.TwelveHour){const q=y<=11?0:1;q!==_&&z(q)}},[e]);const W=()=>{var q;const y=((q=a==null?void 0:a.hours)==null?void 0:q.step)||1,U=T<s.current?T+y:0;x(U),B(U,D,_)},g=()=>{var q;const y=((q=a==null?void 0:a.hours)==null?void 0:q.step)||1,U=T>0?T-y:s.current;x(U),B(U,D,_)},$=()=>{var q,F,ne;const y=((q=a==null?void 0:a.minutes)==null?void 0:q.step)||1,U=D+y<(((F=a==null?void 0:a.minutes)==null?void 0:F.max)||59)?D+y:((ne=a==null?void 0:a.minutes)==null?void 0:ne.min)||0;P(U),B(T,U,_)},J=()=>{var q,F,ne;const y=((q=a==null?void 0:a.minutes)==null?void 0:q.step)||1,U=D-y>=(((F=a==null?void 0:a.minutes)==null?void 0:F.min)||0)?D-y:(((ne=a==null?void 0:a.minutes)==null?void 0:ne.max)||60)-y;P(U),B(T,U,_)},te=()=>{const y=_===0?1:0;z(y),B(T,D,y)},B=(y,U,q)=>{const F=n===De.TwelveHour&&q===1?y+12:y;h.current.setHours(F,U),o({type:X.SetSelectedDate,selectedDate:h.current,viewDate:h.current}),i==null||i(h.current)},oe=()=>{o({type:X.DaySelector})},re=qe("bsc-w-full bsc-grid bsc-grid-rows-3 bsc-gap-4 bc-dt-time-grid",{"bsc-grid-cols-4":n===De.TwelveHour,"bsc-grid-cols-3":n===De.TwentyFourHour}),G=qe("bsc-text-center bsc-cursor-pointer hover:bsc-bg-gray-4 dark:bsc-text-mono-light-1 dark:hover:bsc-bg-mono-light-1 dark:hover:bsc-text-mono-dark-1 bc-dt-time-date-value",{"bsc-col-span-4":n===De.TwelveHour,"bsc-col-span-3":n===De.TwentyFourHour});return m.jsx("div",{className:"bsc-flex bsc-flex-row bsc-justify-center bsc-p-2 bc-dt-time-selector",style:{minWidth:n===De.TwelveHour?"15rem":"11rem"},children:m.jsxs("div",{className:re,children:[t&&m.jsx("div",{className:G,onClick:oe,children:Z.current}),m.jsx("div",{className:"bsc-text-center bsc-cursor-pointer bc-dt-time-hour-increase",children:m.jsx("button",{className:"focus:bsc-outline-none",onClick:W,children:m.jsx(Gr,{})})}),m.jsx("div",{children:" "}),m.jsx("div",{className:"bsc-text-center bsc-cursor-pointer bc-dt-time-minute-increase",children:m.jsx("button",{className:"focus:bsc-outline-none",onClick:$,children:m.jsx(Gr,{})})}),n===De.TwelveHour&&m.jsx("div",{className:"bsc-text-center bsc-cursor-pointer bc-dt-time-meridian-increase",children:m.jsx("button",{className:"focus:bsc-outline-none",onClick:te,children:m.jsx(Gr,{})})}),m.jsx("div",{className:"bsc-text-center bc-dt-time-hour-value",children:u.current[T]}),m.jsx("div",{className:"bsc-text-center bc-dt-time-separator",children:":"}),m.jsx("div",{className:"bsc-text-center bc-dt-time-minute-value",children:l.current[D]}),n===De.TwelveHour&&m.jsx("div",{className:"bsc-text-center bc-dt-time-meridian-value",children:f.current[_]}),m.jsx("div",{className:"bsc-text-center bsc-cursor-pointer bc-dt-time-hour-decrease",children:m.jsx("button",{className:"focus:bsc-outline-none",onClick:g,children:m.jsx(Qr,{})})}),m.jsx("div",{children:" "}),m.jsx("div",{className:"bsc-text-center bsc-cursor-pointer bc-dt-time-minute-decrease",children:m.jsx("button",{className:"focus:bsc-outline-none",onClick:J,children:m.jsx(Qr,{})})}),n===De.TwelveHour&&m.jsx("div",{className:"bsc-text-center bsc-cursor-pointer bc-dt-time-meridian-decrease",children:m.jsx("button",{className:"focus:bsc-outline-none",onClick:te,children:m.jsx(Qr,{})})})]})})},np=({viewDate:e,locale:t,dispatcher:r})=>{const n=Hh(e,t),a=()=>{const u=Oa(e,10);r({type:X.SetViewDate,viewDate:u})},i=()=>{const u=Zt(e,10);r({type:X.SetViewDate,viewDate:u})},o=u=>{const l=parseInt(u);r({type:X.MonthSelector,viewDate:bd(e,l)})},s=()=>`${n[0][0].toString()} - ${n[2][1].toString()}`;return m.jsxs("div",{className:"bc-dt-year-selector",style:{minWidth:"20rem"},children:[m.jsx(pr,{title:s(),scrollerType:Wt.Year,onMovePrevious:a,onMoveNext:i}),m.jsx("div",{className:"bsc-w-full bc-dt-year-wrapper",children:m.jsx("div",{className:"bsc-grid bsc-grid-cols-4 bsc-gap-4 bc-dt-year-grid",children:n.map((u,l)=>u.map((f,h)=>f.length>0?m.jsx("div",{className:"bsc-text-center bsc-cursor-pointer bc-dt-year-cell",onClick:()=>o(f),children:f},l.toString()+h.toString()):m.jsx("div",{},l.toString()+h.toString())))})})]})};class ap{constructor(t,r){Y(this,"dateFormat");Y(this,"timeFormat");Y(this,"use24HourTime");Y(this,"monthPart");Y(this,"dayPart");Y(this,"yearPart");Y(this,"twelveHourPart");Y(this,"twentyFourHourPart");Y(this,"minutePart");Y(this,"meridianPart");this.dateSelection=t;const n=2023,a=12,i=20,s=new Date(n,a-1,i).toLocaleDateString(r,{year:"numeric",month:"numeric",day:"numeric"});this.dateFormat=s.replace(`${n}`,"YYYY").replace(`${a}`,"MM").replace(`${i}`,"DD");const u=new Date,l=18,f=24,h=37,b=317;u.setHours(l,f,h,b);const T=u.toLocaleTimeString(r);this.use24HourTime=T.startsWith("18"),this.timeFormat=T.replace(`${this.use24HourTime?l:"6"}`,"HH").replace(`${f}`,"MM").replace(`${h}`,"SS").replace(`${b}`,"LLL"),this.createDateParts()}get is24HourTime(){return this.use24HourTime}createInputFormat(){const t={deleteShiftsFormatPart:!1,formatParts:[]};switch(this.dateSelection){case we.DateOnly:return this.createDateFormat(t);case we.TimeOnly:return this.createTimeFormat(t);case we.DateRange:return this.createDateRangeFormat(t);case we.DateTime:return this.createDateTimeFormat(t)}}createDateFormat(t){return this.dateFormat.startsWith("MM")?t.formatParts.push(...this.createMonthDayYearFormatParts()):this.dateFormat.startsWith("DD")?t.formatParts.push(...this.createDayMonthYearFormatParts()):t.formatParts.push(...this.createYearMonthDayFormatParts()),t}createTimeFormat(t){return this.use24HourTime?t.formatParts.push(...this.createTwentyFourHourFormatParts()):t.formatParts.push(...this.createTwelveHourFormatParts()),t}createDateRangeFormat(t){const r=[];this.dateFormat.startsWith("MM")?r.push(...this.createMonthDayYearFormatParts()):this.dateFormat.startsWith("DD")?r.push(...this.createDayMonthYearFormatParts()):r.push(...this.createYearMonthDayFormatParts());const n={characterCount:3,placeholder:" - ",inputText:" - ",isSeparator:!0};return t.formatParts.push(...r,n,...r),t}createDateTimeFormat(t){this.dateFormat.startsWith("MM")?t.formatParts.push(...this.createMonthDayYearFormatParts()):this.dateFormat.startsWith("DD")?t.formatParts.push(...this.createDayMonthYearFormatParts()):t.formatParts.push(...this.createYearMonthDayFormatParts());const r={characterCount:1,placeholder:" ",inputText:" ",isSeparator:!0};return t.formatParts.push(r),this.use24HourTime?t.formatParts.push(...this.createTwentyFourHourFormatParts()):t.formatParts.push(...this.createTwelveHourFormatParts()),t}createMonthDayYearFormatParts(){if(this.monthPart&&this.dayPart&&this.yearPart){let t=this.dateFormat.replace("MM",""),r=t.indexOf("DD"),n=t.substring(0,r);t=t.replace(n,"").replace("DD","");const a={characterCount:n.length,placeholder:n,inputText:n,isSeparator:!0};r=t.indexOf("YYYY"),n=t.substring(0,r);const i={characterCount:n.length,placeholder:n,inputText:n,isSeparator:!0};return[this.monthPart,a,this.dayPart,i,this.yearPart]}return[]}createDayMonthYearFormatParts(){if(this.monthPart&&this.dayPart&&this.yearPart){let t=this.dateFormat.replace("DD",""),r=t.indexOf("MM"),n=t.substring(0,r);t=t.replace(n,"").replace("MM","");const a={characterCount:n.length,placeholder:n,inputText:n,isSeparator:!0};r=t.indexOf("YYYY"),n=t.substring(0,r);const i={characterCount:n.length,placeholder:n,inputText:n,isSeparator:!0};return[this.dayPart,a,this.monthPart,i,this.yearPart]}return[]}createYearMonthDayFormatParts(){if(this.monthPart&&this.dayPart&&this.yearPart){let t=this.dateFormat.replace("YYYY",""),r=t.indexOf("MM"),n=t.substring(0,r);t=t.replace(n,"").replace("MM","");const a={characterCount:n.length,placeholder:n,inputText:n,isSeparator:!0};r=t.indexOf("DD"),n=t.substring(0,r);const i={characterCount:n.length,placeholder:n,inputText:n,isSeparator:!0};return[this.yearPart,a,this.monthPart,i,this.dayPart]}return[]}createTwelveHourFormatParts(){if(this.twelveHourPart&&this.minutePart&&this.meridianPart){const t=this.timeFormat.replace("HH",""),r=t.indexOf("MM"),n=t.substring(0,r),a={characterCount:n.length,placeholder:n,inputText:n,isSeparator:!0},i={characterCount:1,placeholder:" ",inputText:" ",isSeparator:!0};return[this.twelveHourPart,a,this.minutePart,i,this.meridianPart]}return[]}createTwentyFourHourFormatParts(){if(this.twentyFourHourPart&&this.minutePart){const t=this.timeFormat.replace("HH",""),r=t.indexOf("MM"),n=t.substring(0,r),a={characterCount:n.length,placeholder:n,inputText:n,isSeparator:!0};return[this.twentyFourHourPart,a,this.minutePart]}return[]}createDateParts(){this.monthPart={characterCount:2,placeholder:"M",inputText:"_",isSeparator:!1,allCharactersRequired:!1,valueType:Be.Numeric,minimumValue:1,maximumValue:12,exceedingMaximumValueCausesTab:!0,padWithZeros:!0},this.dayPart={characterCount:2,placeholder:"D",inputText:"_",isSeparator:!1,allCharactersRequired:!1,valueType:Be.Numeric,minimumValue:1,maximumValue:31,exceedingMaximumValueCausesTab:!0,padWithZeros:!0},this.yearPart={characterCount:4,placeholder:"Y",inputText:"_",isSeparator:!1,allCharactersRequired:!0,valueType:Be.Numeric},this.twelveHourPart={characterCount:2,placeholder:"H",inputText:"_",isSeparator:!1,allCharactersRequired:!1,valueType:Be.Numeric,minimumValue:1,maximumValue:12,exceedingMaximumValueCausesTab:!0,padWithZeros:!0},this.twentyFourHourPart={characterCount:2,placeholder:"H",inputText:"_",isSeparator:!1,allCharactersRequired:!1,valueType:Be.Numeric,minimumValue:0,maximumValue:23,exceedingMaximumValueCausesTab:!0,padWithZeros:!0},this.minutePart={characterCount:2,placeholder:"M",inputText:"_",isSeparator:!1,allCharactersRequired:!1,valueType:Be.Numeric,minimumValue:0,maximumValue:59,exceedingMaximumValueCausesError:!0,padWithZeros:!0},this.meridianPart={characterCount:2,inputText:"_",isSeparator:!1,valueType:Be.Text,possibleValues:["AM","PM"]}}}const op=(e,t)=>{var i;const[r,n]=p.useState(),a=p.useRef();return p.useEffect(()=>{t&&!r&&(a.current=new ap(e,t),n(a.current.createInputFormat()))},[t]),[r,(i=a.current)==null?void 0:i.is24HourTime]},ip=({value:e,readOnly:t=!1,label:r,useDefaultDateValue:n=!1,useFormattedInput:a=!1,allowClear:i=!1,locale:o,className:s,dateSelection:u=we.DateTime,dateFormat:l,timeConstraints:f,icon:h,iconPosition:b=dr.Right,inputElement:T,selectableDate:x,isValidDate:D,onChange:P,calendarTemplate:_,dateScrollerTemplate:z,inputTemplate:Z})=>{const[W,g]=p.useState(!1),[$,J]=p.useState(),[te,B]=p.useState(),oe=p.useRef(),re=p.useRef(!1),G=p.useRef(o||Ia()),y=p.useRef(),U=p.useRef(),q=p.useRef(),[F,ne]=op(u,$),L=go("not all and (min-width: 640px)"),he=p.useRef({calendarTemplate:_,dateScrollerTemplate:z});p.useEffect(()=>{G.current&&v(G.current)},[G]),p.useEffect(()=>{o&&v(o)},[o]),p.useEffect(()=>{if(e){const Q=E();S({type:X.InitializeDates,initialDate:Q})}else S({type:X.ClearDates})},[e,y.current]),p.useEffect(()=>{ne&&S({type:X.SetTimeFormat,timeFormat:ne?De.TwentyFourHour:De.TwelveHour})},[ne]),p.useEffect(()=>{T&&(U.current=T)},[T]);const v=Q=>{po(Q).then(be=>{J(be.code),y.current=be;const Ye=E();S(e||n?{type:X.InitializeDates,initialDate:Array.isArray(Ye)?Ye[0]:Ye}:{type:X.SetViewDate,viewDate:Array.isArray(Ye)?Ye[0]:Ye})}).catch(be=>console.error(be))},E=()=>{const Q=new Date;return Q.setHours(0,0,0,0),e?typeof e=="string"?u!==we.DateRange?Ht(e,y.current):mo(e,y.current):e:Q},H={currentSelector:u===we.TimeOnly?X.TimeSelector:u===we.DateTime||u===we.DateOnly?X.DaySelector:X.DateRangeSelector,currentViewDate:new Date,timeFormat:De.TwelveHour,dateInitialized:!1},[d,S]=p.useReducer(Bh,H),O=()=>{Fe(),g(!0)},M=p.useMemo(()=>Lt(()=>{g(!1)},250),[]),A=p.useMemo(()=>Lt(()=>{M.cancel()},5),[M]),j=Q=>{const be=Q.target.innerText;Ee(be)},k=Q=>{if(Q){const be=Ht(Q,y.current);return be?D?D(be):!0:!1}else return!0},V=Q=>{Ee(Q||"")},Ee=Q=>{const be=u!==we.DateRange?Ht(Q,y.current):mo(Q,y.current);be?(Array.isArray(be)?(Vh(be[0],fa(d.currentViewDate),Zc(it(d.currentViewDate,1)))||S({type:X.SetViewDate,viewDate:be[0]}),S({type:X.SetSelectedDateRange,selectedStartDate:be[0],selectedEndDate:be[1]})):S({type:X.SetSelectedDate,selectedDate:be,viewDate:be}),P==null||P(be)):Q===""&&(S({type:X.ClearDates}),P==null||P())},C=()=>{Fe(),g(!W)},ke=()=>{S({type:X.ClearDates}),g(!1),P==null||P()},Ae=(Q,be)=>{(!U.current||oe.current!==be)&&(U.current=Q,oe.current=be,re.current=!0)},Fe=()=>{(!q.current||re.current)&&U.current&&(q.current=U.current,B(U.current),re.current=!1)},lt=()=>{g(!1),S({type:u===we.TimeOnly?X.TimeSelector:u===we.DateTime||u===we.DateOnly?X.DaySelector:X.DateRangeSelector})},mr=()=>{switch(l){case fr.Short:return"short";case fr.Medium:return"medium";case fr.Long:return"long";default:return}},ft=()=>{var be,Ye,Vt,St,gr,yr,br,wr,Tr,xr,Pr,Ct;const Q=mr();switch(u){case we.DateTime:return d.selectedDate?Q?d.selectedDate.toLocaleString((be=y.current)==null?void 0:be.code,{dateStyle:Q,timeStyle:Q}):d.selectedDate.toLocaleString((Ye=y.current)==null?void 0:Ye.code):"";case we.DateOnly:return d.selectedDate?Q?d.selectedDate.toLocaleDateString((Vt=y.current)==null?void 0:Vt.code,{dateStyle:Q}):d.selectedDate.toLocaleDateString((St=y.current)==null?void 0:St.code):"";case we.TimeOnly:return d.selectedDate?Q?d.selectedDate.toLocaleTimeString((gr=y.current)==null?void 0:gr.code,{timeStyle:Q,hour12:d.timeFormat===De.TwelveHour,hourCycle:d.timeFormat===De.TwentyFourHour?"h23":void 0}):d.selectedDate.toLocaleTimeString((yr=y.current)==null?void 0:yr.code,{hour12:d.timeFormat===De.TwelveHour,hourCycle:d.timeFormat===De.TwentyFourHour?"h23":void 0}):"";case we.DateRange:return d.selectedStartDate&&d.selectedEndDate?Q?`${d.selectedStartDate.toLocaleDateString((br=y.current)==null?void 0:br.code,{dateStyle:Q})} - ${d.selectedEndDate.toLocaleDateString((wr=y.current)==null?void 0:wr.code,{dateStyle:Q})}`:`${d.selectedStartDate.toLocaleDateString((Tr=y.current)==null?void 0:Tr.code)} - ${d.selectedEndDate.toLocaleDateString((xr=y.current)==null?void 0:xr.code)}`:"";default:return d.selectedDate?Q?d.selectedDate.toLocaleString((Pr=y.current)==null?void 0:Pr.code,{dateStyle:Q,timeStyle:Q}):d.selectedDate.toLocaleString((Ct=y.current)==null?void 0:Ct.code):""}},Ze=u===we.DateTime||u===we.DateOnly||u===we.DateRange,cn=u===we.DateTime||u===we.TimeOnly,dt=b===dr.None?{}:b===dr.Right?{rightElement:m.jsxs("div",{className:"bsc-flex bsc-text-black dark:bsc-text-mono-light-1",children:[i&&!t&&m.jsx("div",{children:m.jsx(Ra,{size:16,className:"bsc-cursor-pointer bsc-text-sm",onClick:ke})}),m.jsx("div",{className:"bsc-ml-2",children:h||m.jsx(Aa,{size:16,className:t?void 0:"bsc-cursor-pointer",onClick:t?void 0:C})})]}),rightElementClassName:"bsc-justify-center"}:{leftElement:m.jsxs("div",{className:"bsc-flex bsc-text-black dark:bsc-text-mono-light-1",children:[m.jsx("div",{className:"bsc-mr-2",children:h||m.jsx(Aa,{size:16,className:t?void 0:"bsc-cursor-pointer",onClick:t?void 0:C})}),i&&!t&&m.jsx("div",{children:m.jsx(Ra,{size:16,className:"bsc-cursor-pointer bsc-text-sm",onClick:ke})})]}),leftElementClassName:"bsc-justify-center"},Pt=()=>m.jsxs(m.Fragment,{children:[d.currentSelector===X.DaySelector&&Ze&&d.dateInitialized&&y.current&&m.jsx(Gh,{selectedDate:d.selectedDate,viewDate:d.currentViewDate,locale:y.current,showTimeSelector:u===we.DateTime,selectableDate:x,isValidDate:D,dispatcher:S,onChange:P}),d.currentSelector===X.MonthSelector&&Ze&&d.dateInitialized&&y.current&&m.jsx(Qh,{viewDate:d.currentViewDate,locale:y.current,dateSelection:u,dispatcher:S}),d.currentSelector===X.YearSelector&&Ze&&d.dateInitialized&&y.current&&m.jsx(np,{viewDate:d.currentViewDate,locale:y.current,dispatcher:S}),d.currentSelector===X.TimeSelector&&cn&&d.dateInitialized&&y.current&&m.jsx(rp,{viewDate:d.currentViewDate,showDateSelector:u===we.DateTime,locale:y.current,timeFormat:d.timeFormat,timeConstraints:f,onChange:P,dispatcher:S}),d.currentSelector===X.DateRangeSelector&&Ze&&d.dateInitialized&&y.current&&m.jsx(tp,{viewDate:d.currentViewDate,selectedStartDate:d.selectedStartDate,selectedEndDate:d.selectedEndDate,locale:y.current,onChange:P,dispatcher:S})]}),ln={label:r,readOnly:t,allowClear:i,getValue:ft,onFocus:O,onInput:j,iconPosition:b,iconElement:dt.rightElement||dt.leftElement},vr=Z||((Q,be)=>m.jsx(m.Fragment,{children:be})),Et=qe("bsc-text-left",{"bsc-bg-gray-2":t,"bsc-bg-white":!t},"dark:bsc-bg-mono-dark-1 bc-dt-input",s);return m.jsx(sn.Provider,{value:he.current,children:m.jsxs("div",{className:"bc-date-time",children:[r&&m.jsx("label",{className:"dark:bsc-text-mono-light-1 bc-dt-label",children:r}),L?m.jsxs(m.Fragment,{children:[m.jsx(Qt,{value:ft(),readOnly:!1,inputMode:"none",className:Et,onFocus:O,onElementCreate:Q=>Ae(Q,!1),...dt}),m.jsx(no,{visible:W,target:te,hidden:lt,unmountWhenHidden:!0,children:Pt()})]}):m.jsxs(m.Fragment,{children:[m.jsx(qr,{props:ln,template:vr,children:a===!1?m.jsx(Qt,{value:ft(),readOnly:t,className:Et,onFocus:O,onBlur:M,onInput:j,onElementCreate:Q=>Ae(Q,!1),...dt}):m.jsx(lo,{value:ft(),readOnly:t,className:Et,format:F,isInputValid:k,onFocus:O,onBlur:M,onChange:V,onElementCreate:Q=>Ae(Q,!0),...dt})}),m.jsx(io,{visible:W,target:te,shouldTargetCloseOverlay:!1,shouldScrollCloseOverlay:!0,shouldCheckZIndex:!0,shouldRemainOnScreen:!0,hidden:lt,isClickedWithin:A,unmountWhenHidden:!0,children:Pt()})]})]})})},wp="";de.ContentEditableInput=Qt,de.DateTime=ip,de.FormattedInput=lo,de.MobileOverlayPanel=no,de.OverlayPanel=io,de.applyBeeSoftTheme=Sd,de.createBeeSoftTheme=Cd,Object.defineProperty(de,Symbol.toStringTag,{value:"Module"})});