UNPKG

react-simple-clock

Version:
48 lines (44 loc) 32.5 kB
(function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode(".rac-clock-body{display:block;position:relative;border:1px solid;border-radius:50%}.rac-mid-point{border-radius:50%}.rac-hour-body{position:absolute;inset:5px;text-align:center}.rac-hand-wrapper{display:flex;align-items:flex-end;justify-content:center}.rac-clock-hand{transform-origin:bottom;position:absolute}.bg-light{background-color:#121214}.bg-dark{background-color:#dcddde}.col-light{color:#121214}.col-dark{color:#dcddde}")),document.head.appendChild(o)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})(); (function(K,ye){typeof exports=="object"&&typeof module<"u"?module.exports=ye(require("react")):typeof define=="function"&&define.amd?define(["react"],ye):(K=typeof globalThis<"u"?globalThis:K||self,K["react-simple-clock"]=ye(K.React))})(this,function(K){"use strict";function ye(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var Pe={exports:{}},he={};/** * @license React * react-jsx-runtime.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Le;function pr(){if(Le)return he;Le=1;var o=K,k=Symbol.for("react.element"),R=Symbol.for("react.fragment"),u=Object.prototype.hasOwnProperty,p=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function w(f,y,O){var l,m={},D=null,$=null;O!==void 0&&(D=""+O),y.key!==void 0&&(D=""+y.key),y.ref!==void 0&&($=y.ref);for(l in y)u.call(y,l)&&!c.hasOwnProperty(l)&&(m[l]=y[l]);if(f&&f.defaultProps)for(l in y=f.defaultProps,y)m[l]===void 0&&(m[l]=y[l]);return{$$typeof:k,type:f,key:D,ref:$,props:m,_owner:p.current}}return he.Fragment=R,he.jsx=w,he.jsxs=w,he}var me={};/** * @license React * react-jsx-runtime.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Ve;function yr(){return Ve||(Ve=1,process.env.NODE_ENV!=="production"&&function(){var o=K,k=Symbol.for("react.element"),R=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),p=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),w=Symbol.for("react.provider"),f=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),$=Symbol.for("react.offscreen"),z=Symbol.iterator,F="@@iterator";function W(e){if(e===null||typeof e!="object")return null;var r=z&&e[z]||e[F];return typeof r=="function"?r:null}var Y=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function L(e){{for(var r=arguments.length,n=new Array(r>1?r-1:0),d=1;d<r;d++)n[d-1]=arguments[d];N("error",e,n)}}function N(e,r,n){{var d=Y.ReactDebugCurrentFrame,j=d.getStackAddendum();j!==""&&(r+="%s",n=n.concat([j]));var M=n.map(function(C){return String(C)});M.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,M)}}var V=!1,i=!1,ne=!1,be=!1,ge=!1,ue;ue=Symbol.for("react.module.reference");function Ee(e){return!!(typeof e=="string"||typeof e=="function"||e===u||e===c||ge||e===p||e===O||e===l||be||e===$||V||i||ne||typeof e=="object"&&e!==null&&(e.$$typeof===D||e.$$typeof===m||e.$$typeof===w||e.$$typeof===f||e.$$typeof===y||e.$$typeof===ue||e.getModuleId!==void 0))}function ce(e,r,n){var d=e.displayName;if(d)return d;var j=r.displayName||r.name||"";return j!==""?n+"("+j+")":n}function fe(e){return e.displayName||"Context"}function Z(e){if(e==null)return null;if(typeof e.tag=="number"&&L("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case u:return"Fragment";case R:return"Portal";case c:return"Profiler";case p:return"StrictMode";case O:return"Suspense";case l:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case f:var r=e;return fe(r)+".Consumer";case w:var n=e;return fe(n._context)+".Provider";case y:return ce(e,e.render,"ForwardRef");case m:var d=e.displayName||null;return d!==null?d:Z(e.type)||"Memo";case D:{var j=e,M=j._payload,C=j._init;try{return Z(C(M))}catch{return null}}}return null}var G=Object.assign,ae=0,Q,te,ie,le,t,s,E;function g(){}g.__reactDisabledLog=!0;function v(){{if(ae===0){Q=console.log,te=console.info,ie=console.warn,le=console.error,t=console.group,s=console.groupCollapsed,E=console.groupEnd;var e={configurable:!0,enumerable:!0,value:g,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}ae++}}function P(){{if(ae--,ae===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:G({},e,{value:Q}),info:G({},e,{value:te}),warn:G({},e,{value:ie}),error:G({},e,{value:le}),group:G({},e,{value:t}),groupCollapsed:G({},e,{value:s}),groupEnd:G({},e,{value:E})})}ae<0&&L("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var h=Y.ReactCurrentDispatcher,b;function T(e,r,n){{if(b===void 0)try{throw Error()}catch(j){var d=j.stack.trim().match(/\n( *(at )?)/);b=d&&d[1]||""}return` `+b+e}}var x=!1,_;{var H=typeof WeakMap=="function"?WeakMap:Map;_=new H}function a(e,r){if(!e||x)return"";{var n=_.get(e);if(n!==void 0)return n}var d;x=!0;var j=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var M;M=h.current,h.current=null,v();try{if(r){var C=function(){throw Error()};if(Object.defineProperty(C.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(C,[])}catch(oe){d=oe}Reflect.construct(e,[],C)}else{try{C.call()}catch(oe){d=oe}e.call(C.prototype)}}else{try{throw Error()}catch(oe){d=oe}e()}}catch(oe){if(oe&&d&&typeof oe.stack=="string"){for(var S=oe.stack.split(` `),J=d.stack.split(` `),U=S.length-1,q=J.length-1;U>=1&&q>=0&&S[U]!==J[q];)q--;for(;U>=1&&q>=0;U--,q--)if(S[U]!==J[q]){if(U!==1||q!==1)do if(U--,q--,q<0||S[U]!==J[q]){var re=` `+S[U].replace(" at new "," at ");return e.displayName&&re.includes("<anonymous>")&&(re=re.replace("<anonymous>",e.displayName)),typeof e=="function"&&_.set(e,re),re}while(U>=1&&q>=0);break}}}finally{x=!1,h.current=M,P(),Error.prepareStackTrace=j}var pe=e?e.displayName||e.name:"",vr=pe?T(pe):"";return typeof e=="function"&&_.set(e,vr),vr}function ee(e,r,n){return a(e,!1)}function de(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function se(e,r,n){if(e==null)return"";if(typeof e=="function")return a(e,de(e));if(typeof e=="string")return T(e);switch(e){case O:return T("Suspense");case l:return T("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case y:return ee(e.render);case m:return se(e.type,r,n);case D:{var d=e,j=d._payload,M=d._init;try{return se(M(j),r,n)}catch{}}}return""}var Se=Object.prototype.hasOwnProperty,rr={},tr=Y.ReactDebugCurrentFrame;function Oe(e){if(e){var r=e._owner,n=se(e.type,e._source,r?r.type:null);tr.setExtraStackFrame(n)}else tr.setExtraStackFrame(null)}function Or(e,r,n,d,j){{var M=Function.call.bind(Se);for(var C in e)if(M(e,C)){var S=void 0;try{if(typeof e[C]!="function"){var J=Error((d||"React class")+": "+n+" type `"+C+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[C]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw J.name="Invariant Violation",J}S=e[C](r,C,d,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(U){S=U}S&&!(S instanceof Error)&&(Oe(j),L("%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).",d||"React class",n,C,typeof S),Oe(null)),S instanceof Error&&!(S.message in rr)&&(rr[S.message]=!0,Oe(j),L("Failed %s type: %s",n,S.message),Oe(null))}}}var Pr=Array.isArray;function Me(e){return Pr(e)}function Cr(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,n=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function wr(e){try{return nr(e),!1}catch{return!0}}function nr(e){return""+e}function ar(e){if(wr(e))return L("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Cr(e)),nr(e)}var Te=Y.ReactCurrentOwner,xr={key:!0,ref:!0,__self:!0,__source:!0},or,ir,$e;$e={};function jr(e){if(Se.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Ir(e){if(Se.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function Ar(e,r){if(typeof e.ref=="string"&&Te.current&&r&&Te.current.stateNode!==r){var n=Z(Te.current.type);$e[n]||(L('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',Z(Te.current.type),e.ref),$e[n]=!0)}}function kr(e,r){{var n=function(){or||(or=!0,L("%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)",r))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}}function Dr(e,r){{var n=function(){ir||(ir=!0,L("%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)",r))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}}var Mr=function(e,r,n,d,j,M,C){var S={$$typeof:k,type:e,key:r,ref:n,props:C,_owner:M};return S._store={},Object.defineProperty(S._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(S,"_self",{configurable:!1,enumerable:!1,writable:!1,value:d}),Object.defineProperty(S,"_source",{configurable:!1,enumerable:!1,writable:!1,value:j}),Object.freeze&&(Object.freeze(S.props),Object.freeze(S)),S};function $r(e,r,n,d,j){{var M,C={},S=null,J=null;n!==void 0&&(ar(n),S=""+n),Ir(r)&&(ar(r.key),S=""+r.key),jr(r)&&(J=r.ref,Ar(r,j));for(M in r)Se.call(r,M)&&!xr.hasOwnProperty(M)&&(C[M]=r[M]);if(e&&e.defaultProps){var U=e.defaultProps;for(M in U)C[M]===void 0&&(C[M]=U[M])}if(S||J){var q=typeof e=="function"?e.displayName||e.name||"Unknown":e;S&&kr(C,q),J&&Dr(C,q)}return Mr(e,S,J,j,d,Te.current,C)}}var Fe=Y.ReactCurrentOwner,sr=Y.ReactDebugCurrentFrame;function ve(e){if(e){var r=e._owner,n=se(e.type,e._source,r?r.type:null);sr.setExtraStackFrame(n)}else sr.setExtraStackFrame(null)}var Ye;Ye=!1;function We(e){return typeof e=="object"&&e!==null&&e.$$typeof===k}function ur(){{if(Fe.current){var e=Z(Fe.current.type);if(e)return` Check the render method of \``+e+"`."}return""}}function Fr(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),n=e.lineNumber;return` Check your code at `+r+":"+n+"."}return""}}var cr={};function Yr(e){{var r=ur();if(!r){var n=typeof e=="string"?e:e.displayName||e.name;n&&(r=` Check the top-level render call using <`+n+">.")}return r}}function fr(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var n=Yr(r);if(cr[n])return;cr[n]=!0;var d="";e&&e._owner&&e._owner!==Fe.current&&(d=" It was passed a child from "+Z(e._owner.type)+"."),ve(e),L('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,d),ve(null)}}function lr(e,r){{if(typeof e!="object")return;if(Me(e))for(var n=0;n<e.length;n++){var d=e[n];We(d)&&fr(d,r)}else if(We(e))e._store&&(e._store.validated=!0);else if(e){var j=W(e);if(typeof j=="function"&&j!==e.entries)for(var M=j.call(e),C;!(C=M.next()).done;)We(C.value)&&fr(C.value,r)}}}function Wr(e){{var r=e.type;if(r==null||typeof r=="string")return;var n;if(typeof r=="function")n=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===y||r.$$typeof===m))n=r.propTypes;else return;if(n){var d=Z(r);Or(n,e.props,"prop",d,e)}else if(r.PropTypes!==void 0&&!Ye){Ye=!0;var j=Z(r);L("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",j||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&L("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Lr(e){{for(var r=Object.keys(e.props),n=0;n<r.length;n++){var d=r[n];if(d!=="children"&&d!=="key"){ve(e),L("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",d),ve(null);break}}e.ref!==null&&(ve(e),L("Invalid attribute `ref` supplied to `React.Fragment`."),ve(null))}}function dr(e,r,n,d,j,M){{var C=Ee(e);if(!C){var S="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(S+=" 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 J=Fr(j);J?S+=J:S+=ur();var U;e===null?U="null":Me(e)?U="array":e!==void 0&&e.$$typeof===k?(U="<"+(Z(e.type)||"Unknown")+" />",S=" Did you accidentally export a JSX literal instead of a component?"):U=typeof e,L("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",U,S)}var q=$r(e,r,n,j,M);if(q==null)return q;if(C){var re=r.children;if(re!==void 0)if(d)if(Me(re)){for(var pe=0;pe<re.length;pe++)lr(re[pe],e);Object.freeze&&Object.freeze(re)}else L("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 lr(re,e)}return e===u?Lr(q):Wr(q),q}}function Vr(e,r,n){return dr(e,r,n,!0)}function Nr(e,r,n){return dr(e,r,n,!1)}var Ur=Nr,qr=Vr;me.Fragment=u,me.jsx=Ur,me.jsxs=qr}()),me}process.env.NODE_ENV==="production"?Pe.exports=pr():Pe.exports=yr();var X=Pe.exports,Ce={exports:{}},_e={exports:{}},I={};/** @license React v16.13.1 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Ne;function hr(){if(Ne)return I;Ne=1;var o=typeof Symbol=="function"&&Symbol.for,k=o?Symbol.for("react.element"):60103,R=o?Symbol.for("react.portal"):60106,u=o?Symbol.for("react.fragment"):60107,p=o?Symbol.for("react.strict_mode"):60108,c=o?Symbol.for("react.profiler"):60114,w=o?Symbol.for("react.provider"):60109,f=o?Symbol.for("react.context"):60110,y=o?Symbol.for("react.async_mode"):60111,O=o?Symbol.for("react.concurrent_mode"):60111,l=o?Symbol.for("react.forward_ref"):60112,m=o?Symbol.for("react.suspense"):60113,D=o?Symbol.for("react.suspense_list"):60120,$=o?Symbol.for("react.memo"):60115,z=o?Symbol.for("react.lazy"):60116,F=o?Symbol.for("react.block"):60121,W=o?Symbol.for("react.fundamental"):60117,Y=o?Symbol.for("react.responder"):60118,L=o?Symbol.for("react.scope"):60119;function N(i){if(typeof i=="object"&&i!==null){var ne=i.$$typeof;switch(ne){case k:switch(i=i.type,i){case y:case O:case u:case c:case p:case m:return i;default:switch(i=i&&i.$$typeof,i){case f:case l:case z:case $:case w:return i;default:return ne}}case R:return ne}}}function V(i){return N(i)===O}return I.AsyncMode=y,I.ConcurrentMode=O,I.ContextConsumer=f,I.ContextProvider=w,I.Element=k,I.ForwardRef=l,I.Fragment=u,I.Lazy=z,I.Memo=$,I.Portal=R,I.Profiler=c,I.StrictMode=p,I.Suspense=m,I.isAsyncMode=function(i){return V(i)||N(i)===y},I.isConcurrentMode=V,I.isContextConsumer=function(i){return N(i)===f},I.isContextProvider=function(i){return N(i)===w},I.isElement=function(i){return typeof i=="object"&&i!==null&&i.$$typeof===k},I.isForwardRef=function(i){return N(i)===l},I.isFragment=function(i){return N(i)===u},I.isLazy=function(i){return N(i)===z},I.isMemo=function(i){return N(i)===$},I.isPortal=function(i){return N(i)===R},I.isProfiler=function(i){return N(i)===c},I.isStrictMode=function(i){return N(i)===p},I.isSuspense=function(i){return N(i)===m},I.isValidElementType=function(i){return typeof i=="string"||typeof i=="function"||i===u||i===O||i===c||i===p||i===m||i===D||typeof i=="object"&&i!==null&&(i.$$typeof===z||i.$$typeof===$||i.$$typeof===w||i.$$typeof===f||i.$$typeof===l||i.$$typeof===W||i.$$typeof===Y||i.$$typeof===L||i.$$typeof===F)},I.typeOf=N,I}var A={};/** @license React v16.13.1 * react-is.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Ue;function mr(){return Ue||(Ue=1,process.env.NODE_ENV!=="production"&&function(){var o=typeof Symbol=="function"&&Symbol.for,k=o?Symbol.for("react.element"):60103,R=o?Symbol.for("react.portal"):60106,u=o?Symbol.for("react.fragment"):60107,p=o?Symbol.for("react.strict_mode"):60108,c=o?Symbol.for("react.profiler"):60114,w=o?Symbol.for("react.provider"):60109,f=o?Symbol.for("react.context"):60110,y=o?Symbol.for("react.async_mode"):60111,O=o?Symbol.for("react.concurrent_mode"):60111,l=o?Symbol.for("react.forward_ref"):60112,m=o?Symbol.for("react.suspense"):60113,D=o?Symbol.for("react.suspense_list"):60120,$=o?Symbol.for("react.memo"):60115,z=o?Symbol.for("react.lazy"):60116,F=o?Symbol.for("react.block"):60121,W=o?Symbol.for("react.fundamental"):60117,Y=o?Symbol.for("react.responder"):60118,L=o?Symbol.for("react.scope"):60119;function N(a){return typeof a=="string"||typeof a=="function"||a===u||a===O||a===c||a===p||a===m||a===D||typeof a=="object"&&a!==null&&(a.$$typeof===z||a.$$typeof===$||a.$$typeof===w||a.$$typeof===f||a.$$typeof===l||a.$$typeof===W||a.$$typeof===Y||a.$$typeof===L||a.$$typeof===F)}function V(a){if(typeof a=="object"&&a!==null){var ee=a.$$typeof;switch(ee){case k:var de=a.type;switch(de){case y:case O:case u:case c:case p:case m:return de;default:var se=de&&de.$$typeof;switch(se){case f:case l:case z:case $:case w:return se;default:return ee}}case R:return ee}}}var i=y,ne=O,be=f,ge=w,ue=k,Ee=l,ce=u,fe=z,Z=$,G=R,ae=c,Q=p,te=m,ie=!1;function le(a){return ie||(ie=!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.")),t(a)||V(a)===y}function t(a){return V(a)===O}function s(a){return V(a)===f}function E(a){return V(a)===w}function g(a){return typeof a=="object"&&a!==null&&a.$$typeof===k}function v(a){return V(a)===l}function P(a){return V(a)===u}function h(a){return V(a)===z}function b(a){return V(a)===$}function T(a){return V(a)===R}function x(a){return V(a)===c}function _(a){return V(a)===p}function H(a){return V(a)===m}A.AsyncMode=i,A.ConcurrentMode=ne,A.ContextConsumer=be,A.ContextProvider=ge,A.Element=ue,A.ForwardRef=Ee,A.Fragment=ce,A.Lazy=fe,A.Memo=Z,A.Portal=G,A.Profiler=ae,A.StrictMode=Q,A.Suspense=te,A.isAsyncMode=le,A.isConcurrentMode=t,A.isContextConsumer=s,A.isContextProvider=E,A.isElement=g,A.isForwardRef=v,A.isFragment=P,A.isLazy=h,A.isMemo=b,A.isPortal=T,A.isProfiler=x,A.isStrictMode=_,A.isSuspense=H,A.isValidElementType=N,A.typeOf=V}()),A}var qe;function ze(){return qe||(qe=1,process.env.NODE_ENV==="production"?_e.exports=hr():_e.exports=mr()),_e.exports}/* object-assign (c) Sindre Sorhus @license MIT */var we,Be;function br(){if(Be)return we;Be=1;var o=Object.getOwnPropertySymbols,k=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable;function u(c){if(c==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(c)}function p(){try{if(!Object.assign)return!1;var c=new String("abc");if(c[5]="de",Object.getOwnPropertyNames(c)[0]==="5")return!1;for(var w={},f=0;f<10;f++)w["_"+String.fromCharCode(f)]=f;var y=Object.getOwnPropertyNames(w).map(function(l){return w[l]});if(y.join("")!=="0123456789")return!1;var O={};return"abcdefghijklmnopqrst".split("").forEach(function(l){O[l]=l}),Object.keys(Object.assign({},O)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return we=p()?Object.assign:function(c,w){for(var f,y=u(c),O,l=1;l<arguments.length;l++){f=Object(arguments[l]);for(var m in f)k.call(f,m)&&(y[m]=f[m]);if(o){O=o(f);for(var D=0;D<O.length;D++)R.call(f,O[D])&&(y[O[D]]=f[O[D]])}}return y},we}var xe,He;function je(){if(He)return xe;He=1;var o="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return xe=o,xe}var Ie,Je;function Xe(){return Je||(Je=1,Ie=Function.call.bind(Object.prototype.hasOwnProperty)),Ie}var Ae,Ge;function gr(){if(Ge)return Ae;Ge=1;var o=function(){};if(process.env.NODE_ENV!=="production"){var k=je(),R={},u=Xe();o=function(c){var w="Warning: "+c;typeof console<"u"&&console.error(w);try{throw new Error(w)}catch{}}}function p(c,w,f,y,O){if(process.env.NODE_ENV!=="production"){for(var l in c)if(u(c,l)){var m;try{if(typeof c[l]!="function"){var D=Error((y||"React class")+": "+f+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof c[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw D.name="Invariant Violation",D}m=c[l](w,l,y,f,null,k)}catch(z){m=z}if(m&&!(m instanceof Error)&&o((y||"React class")+": type specification of "+f+" `"+l+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof m+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),m instanceof Error&&!(m.message in R)){R[m.message]=!0;var $=O?O():"";o("Failed "+f+" type: "+m.message+($??""))}}}}return p.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(R={})},Ae=p,Ae}var ke,Ke;function Er(){if(Ke)return ke;Ke=1;var o=ze(),k=br(),R=je(),u=Xe(),p=gr(),c=function(){};process.env.NODE_ENV!=="production"&&(c=function(f){var y="Warning: "+f;typeof console<"u"&&console.error(y);try{throw new Error(y)}catch{}});function w(){return null}return ke=function(f,y){var O=typeof Symbol=="function"&&Symbol.iterator,l="@@iterator";function m(t){var s=t&&(O&&t[O]||t[l]);if(typeof s=="function")return s}var D="<<anonymous>>",$={array:Y("array"),bigint:Y("bigint"),bool:Y("boolean"),func:Y("function"),number:Y("number"),object:Y("object"),string:Y("string"),symbol:Y("symbol"),any:L(),arrayOf:N,element:V(),elementType:i(),instanceOf:ne,node:Ee(),objectOf:ge,oneOf:be,oneOfType:ue,shape:fe,exact:Z};function z(t,s){return t===s?t!==0||1/t===1/s:t!==t&&s!==s}function F(t,s){this.message=t,this.data=s&&typeof s=="object"?s:{},this.stack=""}F.prototype=Error.prototype;function W(t){if(process.env.NODE_ENV!=="production")var s={},E=0;function g(P,h,b,T,x,_,H){if(T=T||D,_=_||b,H!==R){if(y){var a=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 a.name="Invariant Violation",a}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ee=T+":"+b;!s[ee]&&E<3&&(c("You are manually calling a React.PropTypes validation function for the `"+_+"` prop on `"+T+"`. 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."),s[ee]=!0,E++)}}return h[b]==null?P?h[b]===null?new F("The "+x+" `"+_+"` is marked as required "+("in `"+T+"`, but its value is `null`.")):new F("The "+x+" `"+_+"` is marked as required in "+("`"+T+"`, but its value is `undefined`.")):null:t(h,b,T,x,_)}var v=g.bind(null,!1);return v.isRequired=g.bind(null,!0),v}function Y(t){function s(E,g,v,P,h,b){var T=E[g],x=Q(T);if(x!==t){var _=te(T);return new F("Invalid "+P+" `"+h+"` of type "+("`"+_+"` supplied to `"+v+"`, expected ")+("`"+t+"`."),{expectedType:t})}return null}return W(s)}function L(){return W(w)}function N(t){function s(E,g,v,P,h){if(typeof t!="function")return new F("Property `"+h+"` of component `"+v+"` has invalid PropType notation inside arrayOf.");var b=E[g];if(!Array.isArray(b)){var T=Q(b);return new F("Invalid "+P+" `"+h+"` of type "+("`"+T+"` supplied to `"+v+"`, expected an array."))}for(var x=0;x<b.length;x++){var _=t(b,x,v,P,h+"["+x+"]",R);if(_ instanceof Error)return _}return null}return W(s)}function V(){function t(s,E,g,v,P){var h=s[E];if(!f(h)){var b=Q(h);return new F("Invalid "+v+" `"+P+"` of type "+("`"+b+"` supplied to `"+g+"`, expected a single ReactElement."))}return null}return W(t)}function i(){function t(s,E,g,v,P){var h=s[E];if(!o.isValidElementType(h)){var b=Q(h);return new F("Invalid "+v+" `"+P+"` of type "+("`"+b+"` supplied to `"+g+"`, expected a single ReactElement type."))}return null}return W(t)}function ne(t){function s(E,g,v,P,h){if(!(E[g]instanceof t)){var b=t.name||D,T=le(E[g]);return new F("Invalid "+P+" `"+h+"` of type "+("`"+T+"` supplied to `"+v+"`, expected ")+("instance of `"+b+"`."))}return null}return W(s)}function be(t){if(!Array.isArray(t))return process.env.NODE_ENV!=="production"&&(arguments.length>1?c("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])."):c("Invalid argument supplied to oneOf, expected an array.")),w;function s(E,g,v,P,h){for(var b=E[g],T=0;T<t.length;T++)if(z(b,t[T]))return null;var x=JSON.stringify(t,function(H,a){var ee=te(a);return ee==="symbol"?String(a):a});return new F("Invalid "+P+" `"+h+"` of value `"+String(b)+"` "+("supplied to `"+v+"`, expected one of "+x+"."))}return W(s)}function ge(t){function s(E,g,v,P,h){if(typeof t!="function")return new F("Property `"+h+"` of component `"+v+"` has invalid PropType notation inside objectOf.");var b=E[g],T=Q(b);if(T!=="object")return new F("Invalid "+P+" `"+h+"` of type "+("`"+T+"` supplied to `"+v+"`, expected an object."));for(var x in b)if(u(b,x)){var _=t(b,x,v,P,h+"."+x,R);if(_ instanceof Error)return _}return null}return W(s)}function ue(t){if(!Array.isArray(t))return process.env.NODE_ENV!=="production"&&c("Invalid argument supplied to oneOfType, expected an instance of array."),w;for(var s=0;s<t.length;s++){var E=t[s];if(typeof E!="function")return c("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ie(E)+" at index "+s+"."),w}function g(v,P,h,b,T){for(var x=[],_=0;_<t.length;_++){var H=t[_],a=H(v,P,h,b,T,R);if(a==null)return null;a.data&&u(a.data,"expectedType")&&x.push(a.data.expectedType)}var ee=x.length>0?", expected one of type ["+x.join(", ")+"]":"";return new F("Invalid "+b+" `"+T+"` supplied to "+("`"+h+"`"+ee+"."))}return W(g)}function Ee(){function t(s,E,g,v,P){return G(s[E])?null:new F("Invalid "+v+" `"+P+"` supplied to "+("`"+g+"`, expected a ReactNode."))}return W(t)}function ce(t,s,E,g,v){return new F((t||"React class")+": "+s+" type `"+E+"."+g+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+v+"`.")}function fe(t){function s(E,g,v,P,h){var b=E[g],T=Q(b);if(T!=="object")return new F("Invalid "+P+" `"+h+"` of type `"+T+"` "+("supplied to `"+v+"`, expected `object`."));for(var x in t){var _=t[x];if(typeof _!="function")return ce(v,P,h,x,te(_));var H=_(b,x,v,P,h+"."+x,R);if(H)return H}return null}return W(s)}function Z(t){function s(E,g,v,P,h){var b=E[g],T=Q(b);if(T!=="object")return new F("Invalid "+P+" `"+h+"` of type `"+T+"` "+("supplied to `"+v+"`, expected `object`."));var x=k({},E[g],t);for(var _ in x){var H=t[_];if(u(t,_)&&typeof H!="function")return ce(v,P,h,_,te(H));if(!H)return new F("Invalid "+P+" `"+h+"` key `"+_+"` supplied to `"+v+"`.\nBad object: "+JSON.stringify(E[g],null," ")+` Valid keys: `+JSON.stringify(Object.keys(t),null," "));var a=H(b,_,v,P,h+"."+_,R);if(a)return a}return null}return W(s)}function G(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(G);if(t===null||f(t))return!0;var s=m(t);if(s){var E=s.call(t),g;if(s!==t.entries){for(;!(g=E.next()).done;)if(!G(g.value))return!1}else for(;!(g=E.next()).done;){var v=g.value;if(v&&!G(v[1]))return!1}}else return!1;return!0;default:return!1}}function ae(t,s){return t==="symbol"?!0:s?s["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&s instanceof Symbol:!1}function Q(t){var s=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":ae(s,t)?"symbol":s}function te(t){if(typeof t>"u"||t===null)return""+t;var s=Q(t);if(s==="object"){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return s}function ie(t){var s=te(t);switch(s){case"array":case"object":return"an "+s;case"boolean":case"date":case"regexp":return"a "+s;default:return s}}function le(t){return!t.constructor||!t.constructor.name?D:t.constructor.name}return $.checkPropTypes=p,$.resetWarningCache=p.resetWarningCache,$.PropTypes=$,$},ke}var De,Ze;function Tr(){if(Ze)return De;Ze=1;var o=je();function k(){}function R(){}return R.resetWarningCache=k,De=function(){function u(w,f,y,O,l,m){if(m!==o){var D=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 D.name="Invariant Violation",D}}u.isRequired=u;function p(){return u}var c={array:u,bigint:u,bool:u,func:u,number:u,object:u,string:u,symbol:u,any:u,arrayOf:p,element:u,elementType:u,instanceOf:p,node:u,objectOf:p,oneOf:p,oneOfType:p,shape:p,exact:p,checkPropTypes:R,resetWarningCache:k};return c.PropTypes=c,c},De}if(process.env.NODE_ENV!=="production"){var _r=ze(),Rr=!0;Ce.exports=Er()(_r.isElement,Rr)}else Ce.exports=Tr()();var Sr=Ce.exports;const B=ye(Sr),zr="",Qe=({angle:o,value:k,format:R,_mode:u})=>{let p;return R==="number"?p=X.jsx("div",{style:{transform:`rotate(${-o}deg)`},children:X.jsx("b",{children:k})}):R==="roman"?p=X.jsx("div",{children:X.jsx("b",{children:k})}):p=X.jsx("div",{style:{width:5,height:20,backgroundColor:u==="light"?"#121214":"#DCDDDE",display:"inline-block"}}),X.jsx("div",{style:{transform:`rotate(${o}deg)`},className:`rac-hour-body col-${u}`,children:p})};Qe.propTypes={angle:B.number,value:B.oneOfType([B.number,B.string]),format:B.string,_mode:B.string};const Re=({height:o,width:k=5,angle:R,_mode:u})=>{const p=K.useRef();return K.useEffect(()=>{try{p.current.style.transform=`rotate(${R}deg)`}catch(c){console.error(c)}},[R]),X.jsx("div",{ref:p,style:{height:o,width:k},className:`rac-clock-hand bg-${u}`})};Re.propTypes={height:B.number,width:B.number,angle:B.number,_mode:B.string};const er=o=>{const{hourValue:k,minuteValue:R,size:u=200,hourMarkFormat:p,live:c,className:w,mode:f="light"}=o,y=[1,2,3,4,5,6,7,8,9,10,11,12],O=["","I","II","III","IV","V","VI","VII","VIII","IX","X","XI","XII"],[l,m]=K.useState(0),[D,$]=K.useState(0),[z,F]=K.useState(0);return K.useEffect(()=>{if(c){const W=setInterval(()=>{const Y=new Date,L=Y.getHours(),N=Y.getMinutes(),V=Y.getSeconds();m(L),$(N),F(V)},1e3);return()=>clearInterval(W)}else $(R),m(k)},[c,R,k]),X.jsxs("div",{style:{width:u,height:u},className:`rac-clock-body ${w}`,children:[y.map((W,Y)=>X.jsx(Qe,{value:p==="number"?W:O[W],angle:W*30,format:p,_mode:f},Y)),X.jsxs("div",{className:"rac-hand-wrapper",style:{width:u,height:u/2},children:[X.jsx("div",{className:`rac-mid-point bg-${f}`,style:{height:u/20,width:u/20,transform:`translateY(${u/40}px)`}}),c&&X.jsx(Re,{height:3.5*u/10,width:2,angle:z*6,_mode:f}),X.jsx(Re,{height:3*u/10,width:4,angle:D*6+z/10,_mode:f}),X.jsx(Re,{height:u/5,angle:l*30+D/2,_mode:f})]})]})};return er.propTypes={hourValue:B.number,minuteValue:B.number,size:B.number,hourMarkFormat:B.string,className:B.string,live:B.bool,mode:B.string},er});