my-awesome-react-digital-clock
Version:
A digital clock for React apps
51 lines (48 loc) • 30.6 kB
JavaScript
(function(oe,Q){typeof exports=="object"&&typeof module<"u"?Q(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],Q):(oe=typeof globalThis<"u"?globalThis:oe||self,Q(oe.MyAwesomeReactDigitalClock={},oe.require$$0))})(this,function(oe,Q){"use strict";function ar(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Se={exports:{}},ge={};/**
* @license React
* react-jsx-runtime.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var $e;function ir(){if($e)return ge;$e=1;var r=Symbol.for("react.transitional.element"),y=Symbol.for("react.fragment");function v(c,l,u){var p=null;if(u!==void 0&&(p=""+u),l.key!==void 0&&(p=""+l.key),"key"in l){u={};for(var d in l)d!=="key"&&(u[d]=l[d])}else u=l;return l=u.ref,{$$typeof:r,type:c,key:p,ref:l!==void 0?l:null,props:u}}return ge.Fragment=y,ge.jsx=v,ge.jsxs=v,ge}var he={};/**
* @license React
* react-jsx-runtime.development.js
*
* Copyright (c) Meta Platforms, Inc. and 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 sr(){return Ne||(Ne=1,process.env.NODE_ENV!=="production"&&function(){function r(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===me?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case J:return"Fragment";case a:return"Portal";case ve:return"Profiler";case de:return"StrictMode";case ue:return"Suspense";case ce:return"SuspenseList"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case ye:return(e.displayName||"Context")+".Provider";case pe:return(e._context.displayName||"Context")+".Consumer";case re:var i=e.render;return e=e.displayName,e||(e=i.displayName||i.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case X:return i=e.displayName||null,i!==null?i:r(e.type)||"Memo";case fe:i=e._payload,e=e._init;try{return r(e(i))}catch{}}return null}function y(e){return""+e}function v(e){try{y(e);var i=!1}catch{i=!0}if(i){i=console;var s=i.error,C=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return s.call(i,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",C),y(e)}}function c(){}function l(){if(f===0){T=console.log,b=console.info,g=console.warn,x=console.error,O=console.group,S=console.groupCollapsed,D=console.groupEnd;var e={configurable:!0,enumerable:!0,value:c,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}f++}function u(){if(f--,f===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:o({},e,{value:T}),info:o({},e,{value:b}),warn:o({},e,{value:g}),error:o({},e,{value:x}),group:o({},e,{value:O}),groupCollapsed:o({},e,{value:S}),groupEnd:o({},e,{value:D})})}0>f&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function p(e){if(n===void 0)try{throw Error()}catch(s){var i=s.stack.trim().match(/\n( *(at )?)/);n=i&&i[1]||"",B=-1<s.stack.indexOf(`
at`)?" (<anonymous>)":-1<s.stack.indexOf("@")?"@unknown:0:0":""}return`
`+n+e+B}function d(e,i){if(!e||te)return"";var s=be.get(e);if(s!==void 0)return s;te=!0,s=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var C=null;C=G.H,G.H=null,l();try{var z={DetermineComponentFrameRoot:function(){try{if(i){var ne=function(){throw Error()};if(Object.defineProperty(ne.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ne,[])}catch(ee){var Oe=ee}Reflect.construct(e,[],ne)}else{try{ne.call()}catch(ee){Oe=ee}e.call(ne.prototype)}}else{try{throw Error()}catch(ee){Oe=ee}(ne=e())&&typeof ne.catch=="function"&&ne.catch(function(){})}}catch(ee){if(ee&&Oe&&typeof ee.stack=="string")return[ee.stack,Oe.stack]}return[null,null]}};z.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var N=Object.getOwnPropertyDescriptor(z.DetermineComponentFrameRoot,"name");N&&N.configurable&&Object.defineProperty(z.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var E=z.DetermineComponentFrameRoot(),Z=E[0],Ee=E[1];if(Z&&Ee){var L=Z.split(`
`),le=Ee.split(`
`);for(E=N=0;N<L.length&&!L[N].includes("DetermineComponentFrameRoot");)N++;for(;E<le.length&&!le[E].includes("DetermineComponentFrameRoot");)E++;if(N===L.length||E===le.length)for(N=L.length-1,E=le.length-1;1<=N&&0<=E&&L[N]!==le[E];)E--;for(;1<=N&&0<=E;N--,E--)if(L[N]!==le[E]){if(N!==1||E!==1)do if(N--,E--,0>E||L[N]!==le[E]){var xe=`
`+L[N].replace(" at new "," at ");return e.displayName&&xe.includes("<anonymous>")&&(xe=xe.replace("<anonymous>",e.displayName)),typeof e=="function"&&be.set(e,xe),xe}while(1<=N&&0<=E);break}}}finally{te=!1,G.H=C,u(),Error.prepareStackTrace=s}return L=(L=e?e.displayName||e.name:"")?p(L):"",typeof e=="function"&&be.set(e,L),L}function k(e){if(e==null)return"";if(typeof e=="function"){var i=e.prototype;return d(e,!(!i||!i.isReactComponent))}if(typeof e=="string")return p(e);switch(e){case ue:return p("Suspense");case ce:return p("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case re:return e=d(e.render,!1),e;case X:return k(e.type);case fe:i=e._payload,e=e._init;try{return k(e(i))}catch{}}return""}function R(){var e=G.A;return e===null?null:e.getOwner()}function _(e){if(t.call(e,"key")){var i=Object.getOwnPropertyDescriptor(e,"key").get;if(i&&i.isReactWarning)return!1}return e.key!==void 0}function P(e,i){function s(){rr||(rr=!0,console.error("%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://react.dev/link/special-props)",i))}s.isReactWarning=!0,Object.defineProperty(e,"key",{get:s,configurable:!0})}function $(){var e=r(this.type);return tr[e]||(tr[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function Y(e,i,s,C,z,N){return s=N.ref,e={$$typeof:I,type:e,key:i,props:N,_owner:z},(s!==void 0?s:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:$}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function U(e,i,s,C,z,N){if(typeof e=="string"||typeof e=="function"||e===J||e===ve||e===de||e===ue||e===ce||e===H||typeof e=="object"&&e!==null&&(e.$$typeof===fe||e.$$typeof===X||e.$$typeof===ye||e.$$typeof===pe||e.$$typeof===re||e.$$typeof===h||e.getModuleId!==void 0)){var E=i.children;if(E!==void 0)if(C)if(m(E)){for(C=0;C<E.length;C++)M(E[C],e);Object.freeze&&Object.freeze(E)}else console.error("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 M(E,e)}else E="",(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(E+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),e===null?C="null":m(e)?C="array":e!==void 0&&e.$$typeof===I?(C="<"+(r(e.type)||"Unknown")+" />",E=" Did you accidentally export a JSX literal instead of a component?"):C=typeof e,console.error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",C,E);if(t.call(i,"key")){E=r(e);var Z=Object.keys(i).filter(function(L){return L!=="key"});C=0<Z.length?"{key: someKey, "+Z.join(": ..., ")+": ...}":"{key: someKey}",nr[E+C]||(Z=0<Z.length?"{"+Z.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
let props = %s;
<%s {...props} />
React keys must be passed directly to JSX without using spread:
let props = %s;
<%s key={someKey} {...props} />`,C,E,Z,E),nr[E+C]=!0)}if(E=null,s!==void 0&&(v(s),E=""+s),_(i)&&(v(i.key),E=""+i.key),"key"in i){s={};for(var Ee in i)Ee!=="key"&&(s[Ee]=i[Ee])}else s=i;return E&&P(s,typeof e=="function"?e.displayName||e.name||"Unknown":e),Y(e,E,N,z,R(),s)}function M(e,i){if(typeof e=="object"&&e&&e.$$typeof!==gr){if(m(e))for(var s=0;s<e.length;s++){var C=e[s];W(C)&&F(C,i)}else if(W(e))e._store&&(e._store.validated=1);else if(e===null||typeof e!="object"?s=null:(s=K&&e[K]||e["@@iterator"],s=typeof s=="function"?s:null),typeof s=="function"&&s!==e.entries&&(s=s.call(e),s!==e))for(;!(e=s.next()).done;)W(e.value)&&F(e.value,i)}}function W(e){return typeof e=="object"&&e!==null&&e.$$typeof===I}function F(e,i){if(e._store&&!e._store.validated&&e.key==null&&(e._store.validated=1,i=se(i),!or[i])){or[i]=!0;var s="";e&&e._owner!=null&&e._owner!==R()&&(s=null,typeof e._owner.tag=="number"?s=r(e._owner.type):typeof e._owner.name=="string"&&(s=e._owner.name),s=" It was passed a child from "+s+".");var C=G.getCurrentStack;G.getCurrentStack=function(){var z=k(e.type);return C&&(z+=C()||""),z},console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',i,s),G.getCurrentStack=C}}function se(e){var i="",s=R();return s&&(s=r(s.type))&&(i=`
Check the render method of \``+s+"`."),i||(e=r(e))&&(i=`
Check the top-level render call using <`+e+">."),i}var q=Q,I=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),J=Symbol.for("react.fragment"),de=Symbol.for("react.strict_mode"),ve=Symbol.for("react.profiler"),pe=Symbol.for("react.consumer"),ye=Symbol.for("react.context"),re=Symbol.for("react.forward_ref"),ue=Symbol.for("react.suspense"),ce=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),fe=Symbol.for("react.lazy"),H=Symbol.for("react.offscreen"),K=Symbol.iterator,me=Symbol.for("react.client.reference"),G=q.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,t=Object.prototype.hasOwnProperty,o=Object.assign,h=Symbol.for("react.client.reference"),m=Array.isArray,f=0,T,b,g,x,O,S,D;c.__reactDisabledLog=!0;var n,B,te=!1,be=new(typeof WeakMap=="function"?WeakMap:Map),gr=Symbol.for("react.client.reference"),rr,tr={},nr={},or={};he.Fragment=J,he.jsx=function(e,i,s,C,z){return U(e,i,s,!1,C,z)},he.jsxs=function(e,i,s,C,z){return U(e,i,s,!0,C,z)}}()),he}var Ie;function ur(){return Ie||(Ie=1,process.env.NODE_ENV==="production"?Se.exports=ir():Se.exports=sr()),Se.exports}var w=ur(),_e={exports:{}},Re={exports:{}},j={};/** @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 Ye;function cr(){if(Ye)return j;Ye=1;var r=typeof Symbol=="function"&&Symbol.for,y=r?Symbol.for("react.element"):60103,v=r?Symbol.for("react.portal"):60106,c=r?Symbol.for("react.fragment"):60107,l=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,p=r?Symbol.for("react.provider"):60109,d=r?Symbol.for("react.context"):60110,k=r?Symbol.for("react.async_mode"):60111,R=r?Symbol.for("react.concurrent_mode"):60111,_=r?Symbol.for("react.forward_ref"):60112,P=r?Symbol.for("react.suspense"):60113,$=r?Symbol.for("react.suspense_list"):60120,Y=r?Symbol.for("react.memo"):60115,U=r?Symbol.for("react.lazy"):60116,M=r?Symbol.for("react.block"):60121,W=r?Symbol.for("react.fundamental"):60117,F=r?Symbol.for("react.responder"):60118,se=r?Symbol.for("react.scope"):60119;function q(a){if(typeof a=="object"&&a!==null){var J=a.$$typeof;switch(J){case y:switch(a=a.type,a){case k:case R:case c:case u:case l:case P:return a;default:switch(a=a&&a.$$typeof,a){case d:case _:case U:case Y:case p:return a;default:return J}}case v:return J}}}function I(a){return q(a)===R}return j.AsyncMode=k,j.ConcurrentMode=R,j.ContextConsumer=d,j.ContextProvider=p,j.Element=y,j.ForwardRef=_,j.Fragment=c,j.Lazy=U,j.Memo=Y,j.Portal=v,j.Profiler=u,j.StrictMode=l,j.Suspense=P,j.isAsyncMode=function(a){return I(a)||q(a)===k},j.isConcurrentMode=I,j.isContextConsumer=function(a){return q(a)===d},j.isContextProvider=function(a){return q(a)===p},j.isElement=function(a){return typeof a=="object"&&a!==null&&a.$$typeof===y},j.isForwardRef=function(a){return q(a)===_},j.isFragment=function(a){return q(a)===c},j.isLazy=function(a){return q(a)===U},j.isMemo=function(a){return q(a)===Y},j.isPortal=function(a){return q(a)===v},j.isProfiler=function(a){return q(a)===u},j.isStrictMode=function(a){return q(a)===l},j.isSuspense=function(a){return q(a)===P},j.isValidElementType=function(a){return typeof a=="string"||typeof a=="function"||a===c||a===R||a===u||a===l||a===P||a===$||typeof a=="object"&&a!==null&&(a.$$typeof===U||a.$$typeof===Y||a.$$typeof===p||a.$$typeof===d||a.$$typeof===_||a.$$typeof===W||a.$$typeof===F||a.$$typeof===se||a.$$typeof===M)},j.typeOf=q,j}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 We;function fr(){return We||(We=1,process.env.NODE_ENV!=="production"&&function(){var r=typeof Symbol=="function"&&Symbol.for,y=r?Symbol.for("react.element"):60103,v=r?Symbol.for("react.portal"):60106,c=r?Symbol.for("react.fragment"):60107,l=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,p=r?Symbol.for("react.provider"):60109,d=r?Symbol.for("react.context"):60110,k=r?Symbol.for("react.async_mode"):60111,R=r?Symbol.for("react.concurrent_mode"):60111,_=r?Symbol.for("react.forward_ref"):60112,P=r?Symbol.for("react.suspense"):60113,$=r?Symbol.for("react.suspense_list"):60120,Y=r?Symbol.for("react.memo"):60115,U=r?Symbol.for("react.lazy"):60116,M=r?Symbol.for("react.block"):60121,W=r?Symbol.for("react.fundamental"):60117,F=r?Symbol.for("react.responder"):60118,se=r?Symbol.for("react.scope"):60119;function q(n){return typeof n=="string"||typeof n=="function"||n===c||n===R||n===u||n===l||n===P||n===$||typeof n=="object"&&n!==null&&(n.$$typeof===U||n.$$typeof===Y||n.$$typeof===p||n.$$typeof===d||n.$$typeof===_||n.$$typeof===W||n.$$typeof===F||n.$$typeof===se||n.$$typeof===M)}function I(n){if(typeof n=="object"&&n!==null){var B=n.$$typeof;switch(B){case y:var te=n.type;switch(te){case k:case R:case c:case u:case l:case P:return te;default:var be=te&&te.$$typeof;switch(be){case d:case _:case U:case Y:case p:return be;default:return B}}case v:return B}}}var a=k,J=R,de=d,ve=p,pe=y,ye=_,re=c,ue=U,ce=Y,X=v,fe=u,H=l,K=P,me=!1;function G(n){return me||(me=!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(n)||I(n)===k}function t(n){return I(n)===R}function o(n){return I(n)===d}function h(n){return I(n)===p}function m(n){return typeof n=="object"&&n!==null&&n.$$typeof===y}function f(n){return I(n)===_}function T(n){return I(n)===c}function b(n){return I(n)===U}function g(n){return I(n)===Y}function x(n){return I(n)===v}function O(n){return I(n)===u}function S(n){return I(n)===l}function D(n){return I(n)===P}A.AsyncMode=a,A.ConcurrentMode=J,A.ContextConsumer=de,A.ContextProvider=ve,A.Element=pe,A.ForwardRef=ye,A.Fragment=re,A.Lazy=ue,A.Memo=ce,A.Portal=X,A.Profiler=fe,A.StrictMode=H,A.Suspense=K,A.isAsyncMode=G,A.isConcurrentMode=t,A.isContextConsumer=o,A.isContextProvider=h,A.isElement=m,A.isForwardRef=f,A.isFragment=T,A.isLazy=b,A.isMemo=g,A.isPortal=x,A.isProfiler=O,A.isStrictMode=S,A.isSuspense=D,A.isValidElementType=q,A.typeOf=I}()),A}var qe;function De(){return qe||(qe=1,process.env.NODE_ENV==="production"?Re.exports=cr():Re.exports=fr()),Re.exports}/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var Pe,Ue;function lr(){if(Ue)return Pe;Ue=1;var r=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable;function c(u){if(u==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(u)}function l(){try{if(!Object.assign)return!1;var u=new String("abc");if(u[5]="de",Object.getOwnPropertyNames(u)[0]==="5")return!1;for(var p={},d=0;d<10;d++)p["_"+String.fromCharCode(d)]=d;var k=Object.getOwnPropertyNames(p).map(function(_){return p[_]});if(k.join("")!=="0123456789")return!1;var R={};return"abcdefghijklmnopqrst".split("").forEach(function(_){R[_]=_}),Object.keys(Object.assign({},R)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Pe=l()?Object.assign:function(u,p){for(var d,k=c(u),R,_=1;_<arguments.length;_++){d=Object(arguments[_]);for(var P in d)y.call(d,P)&&(k[P]=d[P]);if(r){R=r(d);for(var $=0;$<R.length;$++)v.call(d,R[$])&&(k[R[$]]=d[R[$]])}}return k},Pe}var Ce,ze;function we(){if(ze)return Ce;ze=1;var r="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ce=r,Ce}var je,Fe;function Le(){return Fe||(Fe=1,je=Function.call.bind(Object.prototype.hasOwnProperty)),je}var Ae,Ve;function dr(){if(Ve)return Ae;Ve=1;var r=function(){};if(process.env.NODE_ENV!=="production"){var y=we(),v={},c=Le();r=function(u){var p="Warning: "+u;typeof console<"u"&&console.error(p);try{throw new Error(p)}catch{}}}function l(u,p,d,k,R){if(process.env.NODE_ENV!=="production"){for(var _ in u)if(c(u,_)){var P;try{if(typeof u[_]!="function"){var $=Error((k||"React class")+": "+d+" type `"+_+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof u[_]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw $.name="Invariant Violation",$}P=u[_](p,_,k,d,null,y)}catch(U){P=U}if(P&&!(P instanceof Error)&&r((k||"React class")+": type specification of "+d+" `"+_+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof P+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),P instanceof Error&&!(P.message in v)){v[P.message]=!0;var Y=R?R():"";r("Failed "+d+" type: "+P.message+(Y??""))}}}}return l.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(v={})},Ae=l,Ae}var ke,Be;function vr(){if(Be)return ke;Be=1;var r=De(),y=lr(),v=we(),c=Le(),l=dr(),u=function(){};process.env.NODE_ENV!=="production"&&(u=function(d){var k="Warning: "+d;typeof console<"u"&&console.error(k);try{throw new Error(k)}catch{}});function p(){return null}return ke=function(d,k){var R=typeof Symbol=="function"&&Symbol.iterator,_="@@iterator";function P(t){var o=t&&(R&&t[R]||t[_]);if(typeof o=="function")return o}var $="<<anonymous>>",Y={array:F("array"),bigint:F("bigint"),bool:F("boolean"),func:F("function"),number:F("number"),object:F("object"),string:F("string"),symbol:F("symbol"),any:se(),arrayOf:q,element:I(),elementType:a(),instanceOf:J,node:ye(),objectOf:ve,oneOf:de,oneOfType:pe,shape:ue,exact:ce};function U(t,o){return t===o?t!==0||1/t===1/o:t!==t&&o!==o}function M(t,o){this.message=t,this.data=o&&typeof o=="object"?o:{},this.stack=""}M.prototype=Error.prototype;function W(t){if(process.env.NODE_ENV!=="production")var o={},h=0;function m(T,b,g,x,O,S,D){if(x=x||$,S=S||g,D!==v){if(k){var n=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 n.name="Invariant Violation",n}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var B=x+":"+g;!o[B]&&h<3&&(u("You are manually calling a React.PropTypes validation function for the `"+S+"` prop on `"+x+"`. 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."),o[B]=!0,h++)}}return b[g]==null?T?b[g]===null?new M("The "+O+" `"+S+"` is marked as required "+("in `"+x+"`, but its value is `null`.")):new M("The "+O+" `"+S+"` is marked as required in "+("`"+x+"`, but its value is `undefined`.")):null:t(b,g,x,O,S)}var f=m.bind(null,!1);return f.isRequired=m.bind(null,!0),f}function F(t){function o(h,m,f,T,b,g){var x=h[m],O=H(x);if(O!==t){var S=K(x);return new M("Invalid "+T+" `"+b+"` of type "+("`"+S+"` supplied to `"+f+"`, expected ")+("`"+t+"`."),{expectedType:t})}return null}return W(o)}function se(){return W(p)}function q(t){function o(h,m,f,T,b){if(typeof t!="function")return new M("Property `"+b+"` of component `"+f+"` has invalid PropType notation inside arrayOf.");var g=h[m];if(!Array.isArray(g)){var x=H(g);return new M("Invalid "+T+" `"+b+"` of type "+("`"+x+"` supplied to `"+f+"`, expected an array."))}for(var O=0;O<g.length;O++){var S=t(g,O,f,T,b+"["+O+"]",v);if(S instanceof Error)return S}return null}return W(o)}function I(){function t(o,h,m,f,T){var b=o[h];if(!d(b)){var g=H(b);return new M("Invalid "+f+" `"+T+"` of type "+("`"+g+"` supplied to `"+m+"`, expected a single ReactElement."))}return null}return W(t)}function a(){function t(o,h,m,f,T){var b=o[h];if(!r.isValidElementType(b)){var g=H(b);return new M("Invalid "+f+" `"+T+"` of type "+("`"+g+"` supplied to `"+m+"`, expected a single ReactElement type."))}return null}return W(t)}function J(t){function o(h,m,f,T,b){if(!(h[m]instanceof t)){var g=t.name||$,x=G(h[m]);return new M("Invalid "+T+" `"+b+"` of type "+("`"+x+"` supplied to `"+f+"`, expected ")+("instance of `"+g+"`."))}return null}return W(o)}function de(t){if(!Array.isArray(t))return process.env.NODE_ENV!=="production"&&(arguments.length>1?u("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])."):u("Invalid argument supplied to oneOf, expected an array.")),p;function o(h,m,f,T,b){for(var g=h[m],x=0;x<t.length;x++)if(U(g,t[x]))return null;var O=JSON.stringify(t,function(D,n){var B=K(n);return B==="symbol"?String(n):n});return new M("Invalid "+T+" `"+b+"` of value `"+String(g)+"` "+("supplied to `"+f+"`, expected one of "+O+"."))}return W(o)}function ve(t){function o(h,m,f,T,b){if(typeof t!="function")return new M("Property `"+b+"` of component `"+f+"` has invalid PropType notation inside objectOf.");var g=h[m],x=H(g);if(x!=="object")return new M("Invalid "+T+" `"+b+"` of type "+("`"+x+"` supplied to `"+f+"`, expected an object."));for(var O in g)if(c(g,O)){var S=t(g,O,f,T,b+"."+O,v);if(S instanceof Error)return S}return null}return W(o)}function pe(t){if(!Array.isArray(t))return process.env.NODE_ENV!=="production"&&u("Invalid argument supplied to oneOfType, expected an instance of array."),p;for(var o=0;o<t.length;o++){var h=t[o];if(typeof h!="function")return u("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+me(h)+" at index "+o+"."),p}function m(f,T,b,g,x){for(var O=[],S=0;S<t.length;S++){var D=t[S],n=D(f,T,b,g,x,v);if(n==null)return null;n.data&&c(n.data,"expectedType")&&O.push(n.data.expectedType)}var B=O.length>0?", expected one of type ["+O.join(", ")+"]":"";return new M("Invalid "+g+" `"+x+"` supplied to "+("`"+b+"`"+B+"."))}return W(m)}function ye(){function t(o,h,m,f,T){return X(o[h])?null:new M("Invalid "+f+" `"+T+"` supplied to "+("`"+m+"`, expected a ReactNode."))}return W(t)}function re(t,o,h,m,f){return new M((t||"React class")+": "+o+" type `"+h+"."+m+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+f+"`.")}function ue(t){function o(h,m,f,T,b){var g=h[m],x=H(g);if(x!=="object")return new M("Invalid "+T+" `"+b+"` of type `"+x+"` "+("supplied to `"+f+"`, expected `object`."));for(var O in t){var S=t[O];if(typeof S!="function")return re(f,T,b,O,K(S));var D=S(g,O,f,T,b+"."+O,v);if(D)return D}return null}return W(o)}function ce(t){function o(h,m,f,T,b){var g=h[m],x=H(g);if(x!=="object")return new M("Invalid "+T+" `"+b+"` of type `"+x+"` "+("supplied to `"+f+"`, expected `object`."));var O=y({},h[m],t);for(var S in O){var D=t[S];if(c(t,S)&&typeof D!="function")return re(f,T,b,S,K(D));if(!D)return new M("Invalid "+T+" `"+b+"` key `"+S+"` supplied to `"+f+"`.\nBad object: "+JSON.stringify(h[m],null," ")+`
Valid keys: `+JSON.stringify(Object.keys(t),null," "));var n=D(g,S,f,T,b+"."+S,v);if(n)return n}return null}return W(o)}function X(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(X);if(t===null||d(t))return!0;var o=P(t);if(o){var h=o.call(t),m;if(o!==t.entries){for(;!(m=h.next()).done;)if(!X(m.value))return!1}else for(;!(m=h.next()).done;){var f=m.value;if(f&&!X(f[1]))return!1}}else return!1;return!0;default:return!1}}function fe(t,o){return t==="symbol"?!0:o?o["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&o instanceof Symbol:!1}function H(t){var o=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":fe(o,t)?"symbol":o}function K(t){if(typeof t>"u"||t===null)return""+t;var o=H(t);if(o==="object"){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return o}function me(t){var o=K(t);switch(o){case"array":case"object":return"an "+o;case"boolean":case"date":case"regexp":return"a "+o;default:return o}}function G(t){return!t.constructor||!t.constructor.name?$:t.constructor.name}return Y.checkPropTypes=l,Y.resetWarningCache=l.resetWarningCache,Y.PropTypes=Y,Y},ke}var Me,He;function pr(){if(He)return Me;He=1;var r=we();function y(){}function v(){}return v.resetWarningCache=y,Me=function(){function c(p,d,k,R,_,P){if(P!==r){var $=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 $.name="Invariant Violation",$}}c.isRequired=c;function l(){return c}var u={array:c,bigint:c,bool:c,func:c,number:c,object:c,string:c,symbol:c,any:c,arrayOf:l,element:c,elementType:c,instanceOf:l,node:c,objectOf:l,oneOf:l,oneOfType:l,shape:l,exact:l,checkPropTypes:v,resetWarningCache:y};return u.PropTypes=u,u},Me}var Je;function yr(){if(Je)return _e.exports;if(Je=1,process.env.NODE_ENV!=="production"){var r=De(),y=!0;_e.exports=vr()(r.isElement,y)}else _e.exports=pr()();return _e.exports}var mr=yr();const V=ar(mr),ae={0:[!0,!0,!0,!0,!0,!0,!1],1:[!1,!1,!0,!0,!1,!1,!1],2:[!0,!1,!0,!1,!0,!0,!0],3:[!0,!1,!0,!0,!1,!0,!0],4:[!1,!0,!0,!0,!1,!1,!0],5:[!0,!0,!1,!0,!1,!0,!0],6:[!0,!0,!1,!0,!0,!0,!0],7:[!0,!1,!0,!0,!1,!1,!1],8:[!0,!0,!0,!0,!0,!0,!0],9:[!0,!0,!0,!0,!1,!0,!0]},ie=({number:r=0})=>w.jsxs("div",{className:"digital-number",children:[w.jsx("span",{className:`top horizontal ${ae[r][0]?"on":"off"}`}),w.jsx("span",{className:`top left vertical ${ae[r][1]?"on":"off"}`}),w.jsx("span",{className:`top right vertical ${ae[r][2]?"on":"off"}`}),w.jsx("span",{className:`bottom right vertical ${ae[r][3]?"on":"off"}`}),w.jsx("span",{className:`bottom left vertical ${ae[r][4]?"on":"off"}`}),w.jsx("span",{className:`bottom horizontal ${ae[r][5]?"on":"off"}`}),w.jsx("span",{className:`mid horizontal ${ae[r][6]?"on":"off"}`})]});ie.propTypes={number:V.number};const br={visible:"1.0",hidden:"0",partially:"0.2"};function Te({text:r="",visibility:y="visible"}){return w.jsx("span",{style:{opacity:br[y]},children:r})}Te.PropTypes={text:V.string,visibility:V.oneOf(["hidden","partially","visible"])};const Ge=({hours:r,minutes:y,seconds:v})=>w.jsxs("div",{className:"digital-time",children:[w.jsx(ie,{number:+r[0]}),w.jsx(ie,{number:+r[1]}),w.jsx("span",{className:"colon",children:":"}),w.jsx(ie,{number:+y[0]}),w.jsx(ie,{number:+y[1]}),w.jsx("span",{className:"colon",children:":"}),w.jsx(ie,{number:+v[0]}),w.jsx(ie,{number:+v[1]})]});Ge.propTypes={hours:V.string,minutes:V.string,seconds:V.string};const Er=["SUN","MON","TUE","WED","THU","FRI","SAT"],Xe=({today:r})=>w.jsx("div",{className:"weekdays",children:Er.map((y,v)=>w.jsx(Te,{text:y,visibility:v===r?"visible":"partially"},y))});Xe.propTypes={day:V.number};const Ke=({amPm:r})=>{const y=r==="AM";return w.jsxs("div",{className:"ampm",children:[w.jsx(Te,{text:"AM",visibility:y?"visible":"hidden"}),w.jsx(Te,{text:"PM",visibility:y?"hidden":"visible"})]})};Ke.propTypes={amPm:V.string};function Qe(r=Intl.DateTimeFormat().resolvedOptions().timeZone){const[y,v]=Q.useState(()=>Ze(new Date,r)),c=Q.useRef(null),l=Q.useMemo(()=>{try{return Intl.DateTimeFormat(void 0,{timeZone:r}).format(),r.replace("/"," - ").replace("_"," ")}catch{return}},[r]);return Q.useEffect(()=>(c.current=setInterval(()=>{v(Ze(new Date,r))},1e3),()=>clearInterval(c.current)),[r]),{time:y,title:l}}function Ze(r,y){try{const v=new Intl.DateTimeFormat("en-GB",{timeZone:y,hour12:!1,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).formatToParts(r),c={};for(const{type:l,value:u}of v)l!=="literal"&&(c[l]=u);return new Date(`${c.year}-${c.month}-${c.day}T${c.hour}:${c.minute}:${c.second}`)}catch{return new Date}}const er=({size:r=250,bgColor:y="#d3d3d3",fgColor:v="#232323",hoverColor:c="rgba(197,197,197,0.44)",format:l="24h",timezone:u})=>{const{time:p,title:d}=u?Qe(u):Qe(),k=l==="24h"?p.getHours().toString().padStart(2,"0"):(p.getHours()%12).toString().padStart(2,"0"),R=p.getMinutes().toString().padStart(2,"0"),_=p.getSeconds().toString().padStart(2,"0"),P=p.getDay(),$=p.getHours()>=12?"PM":"AM";return w.jsxs("div",{className:"digital-clock",style:{"--clock-size":`${r}px`,"--clock-bg":y,"--clock-fg":v,"--clock-hover":c,...u&&d?{height:"calc(var(--clock-size) * 0.4)"}:{}},children:[w.jsxs("div",{className:"top",children:[u&&d?w.jsx(Te,{text:d,visibility:"visible"}):"",w.jsx(Xe,{today:P})]}),w.jsxs("div",{className:"bottom",children:[w.jsx(Ge,{hours:k,minutes:R,seconds:_}),l==="12h"?w.jsx(Ke,{amPm:$}):""]})]})};er.propTypes={size:V.number,bgColor:V.string,fgColor:V.string,hoverColor:V.string,format:V.oneOf(["24h","12h"]),timezone:V.string},oe.DigitalClock=er,Object.defineProperty(oe,Symbol.toStringTag,{value:"Module"})});