Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@netless/app-countdown

Package Overview
Dependencies
Maintainers
12
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@netless/app-countdown - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

6

dist/main.iife.js

@@ -1,7 +0,7 @@

const NetlessAppCountdown=function(K){"use strict";var A,a,oe,D,ne,re,U={},_e=[],ze=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function C(e,t){for(var o in t)e[o]=t[o];return e}function ie(e){var t=e.parentNode;t&&t.removeChild(e)}function v(e,t,o){var n,i,r,l={};for(r in t)r=="key"?n=t[r]:r=="ref"?i=t[r]:l[r]=t[r];if(arguments.length>2&&(l.children=arguments.length>3?A.call(arguments,2):o),typeof e=="function"&&e.defaultProps!=null)for(r in e.defaultProps)l[r]===void 0&&(l[r]=e.defaultProps[r]);return W(e,l,n,i,null)}function W(e,t,o,n,i){var r={type:e,props:t,key:o,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i==null?++oe:i};return i==null&&a.vnode!=null&&a.vnode(r),r}function O(e){return e.children}function M(e,t){this.props=e,this.context=t}function N(e,t){if(t==null)return e.__?N(e.__,e.__.__k.indexOf(e)+1):null;for(var o;t<e.__k.length;t++)if((o=e.__k[t])!=null&&o.__e!=null)return o.__e;return typeof e.type=="function"?N(e):null}function le(e){var t,o;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((o=e.__k[t])!=null&&o.__e!=null){e.__e=e.__c.base=o.__e;break}return le(e)}}function ce(e){(!e.__d&&(e.__d=!0)&&D.push(e)&&!T.__r++||re!==a.debounceRendering)&&((re=a.debounceRendering)||ne)(T)}function T(){for(var e;T.__r=D.length;)e=D.sort(function(t,o){return t.__v.__b-o.__v.__b}),D=[],e.some(function(t){var o,n,i,r,l,u;t.__d&&(l=(r=(o=t).__v).__e,(u=o.__P)&&(n=[],(i=C({},r)).__v=r.__v+1,Q(u,r,i,o.__n,u.ownerSVGElement!==void 0,r.__h!=null?[l]:null,n,l==null?N(r):l,r.__h),he(n,r),r.__e!=l&&le(r)))})}function se(e,t,o,n,i,r,l,u,f,d){var _,h,s,c,p,k,b,m=n&&n.__k||_e,y=m.length;for(o.__k=[],_=0;_<t.length;_++)if((c=o.__k[_]=(c=t[_])==null||typeof c=="boolean"?null:typeof c=="string"||typeof c=="number"||typeof c=="bigint"?W(null,c,null,null,c):Array.isArray(c)?W(O,{children:c},null,null,null):c.__b>0?W(c.type,c.props,c.key,null,c.__v):c)!=null){if(c.__=o,c.__b=o.__b+1,(s=m[_])===null||s&&c.key==s.key&&c.type===s.type)m[_]=void 0;else for(h=0;h<y;h++){if((s=m[h])&&c.key==s.key&&c.type===s.type){m[h]=void 0;break}s=null}Q(e,c,s=s||U,i,r,l,u,f,d),p=c.__e,(h=c.ref)&&s.ref!=h&&(b||(b=[]),s.ref&&b.push(s.ref,null,c),b.push(h,c.__c||p,c)),p!=null?(k==null&&(k=p),typeof c.type=="function"&&c.__k===s.__k?c.__d=f=ae(c,f,e):f=ue(e,c,s,m,p,f),typeof o.type=="function"&&(o.__d=f)):f&&s.__e==f&&f.parentNode!=e&&(f=N(s))}for(o.__e=k,_=y;_--;)m[_]!=null&&(typeof o.type=="function"&&m[_].__e!=null&&m[_].__e==o.__d&&(o.__d=N(n,_+1)),be(m[_],m[_]));if(b)for(_=0;_<b.length;_++)ve(b[_],b[++_],b[++_])}function ae(e,t,o){for(var n,i=e.__k,r=0;i&&r<i.length;r++)(n=i[r])&&(n.__=e,t=typeof n.type=="function"?ae(n,t,o):ue(o,n,n,i,n.__e,t));return t}function F(e,t){return t=t||[],e==null||typeof e=="boolean"||(Array.isArray(e)?e.some(function(o){F(o,t)}):t.push(e)),t}function ue(e,t,o,n,i,r){var l,u,f;if(t.__d!==void 0)l=t.__d,t.__d=void 0;else if(o==null||i!=r||i.parentNode==null)e:if(r==null||r.parentNode!==e)e.appendChild(i),l=null;else{for(u=r,f=0;(u=u.nextSibling)&&f<n.length;f+=2)if(u==i)break e;e.insertBefore(i,r),l=r}return l!==void 0?l:i.nextSibling}function Ve(e,t,o,n,i){var r;for(r in o)r==="children"||r==="key"||r in t||L(e,r,null,o[r],n);for(r in t)i&&typeof t[r]!="function"||r==="children"||r==="key"||r==="value"||r==="checked"||o[r]===t[r]||L(e,r,t[r],o[r],n)}function fe(e,t,o){t[0]==="-"?e.setProperty(t,o):e[t]=o==null?"":typeof o!="number"||ze.test(t)?o:o+"px"}function L(e,t,o,n,i){var r;e:if(t==="style")if(typeof o=="string")e.style.cssText=o;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)o&&t in o||fe(e.style,t,"");if(o)for(t in o)n&&o[t]===n[t]||fe(e.style,t,o[t])}else if(t[0]==="o"&&t[1]==="n")r=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+r]=o,o?n||e.addEventListener(t,r?pe:de,r):e.removeEventListener(t,r?pe:de,r);else if(t!=="dangerouslySetInnerHTML"){if(i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t in e)try{e[t]=o==null?"":o;break e}catch{}typeof o=="function"||(o!=null&&(o!==!1||t[0]==="a"&&t[1]==="r")?e.setAttribute(t,o):e.removeAttribute(t))}}function de(e){this.l[e.type+!1](a.event?a.event(e):e)}function pe(e){this.l[e.type+!0](a.event?a.event(e):e)}function Q(e,t,o,n,i,r,l,u,f){var d,_,h,s,c,p,k,b,m,y,w,g=t.type;if(t.constructor!==void 0)return null;o.__h!=null&&(f=o.__h,u=t.__e=o.__e,t.__h=null,r=[u]),(d=a.__b)&&d(t);try{e:if(typeof g=="function"){if(b=t.props,m=(d=g.contextType)&&n[d.__c],y=d?m?m.props.value:d.__:n,o.__c?k=(_=t.__c=o.__c).__=_.__E:("prototype"in g&&g.prototype.render?t.__c=_=new g(b,y):(t.__c=_=new M(b,y),_.constructor=g,_.render=Be),m&&m.sub(_),_.props=b,_.state||(_.state={}),_.context=y,_.__n=n,h=_.__d=!0,_.__h=[]),_.__s==null&&(_.__s=_.state),g.getDerivedStateFromProps!=null&&(_.__s==_.state&&(_.__s=C({},_.__s)),C(_.__s,g.getDerivedStateFromProps(b,_.__s))),s=_.props,c=_.state,h)g.getDerivedStateFromProps==null&&_.componentWillMount!=null&&_.componentWillMount(),_.componentDidMount!=null&&_.__h.push(_.componentDidMount);else{if(g.getDerivedStateFromProps==null&&b!==s&&_.componentWillReceiveProps!=null&&_.componentWillReceiveProps(b,y),!_.__e&&_.shouldComponentUpdate!=null&&_.shouldComponentUpdate(b,_.__s,y)===!1||t.__v===o.__v){_.props=b,_.state=_.__s,t.__v!==o.__v&&(_.__d=!1),_.__v=t,t.__e=o.__e,t.__k=o.__k,t.__k.forEach(function(S){S&&(S.__=t)}),_.__h.length&&l.push(_);break e}_.componentWillUpdate!=null&&_.componentWillUpdate(b,_.__s,y),_.componentDidUpdate!=null&&_.__h.push(function(){_.componentDidUpdate(s,c,p)})}_.context=y,_.props=b,_.state=_.__s,(d=a.__r)&&d(t),_.__d=!1,_.__v=t,_.__P=e,d=_.render(_.props,_.state,_.context),_.state=_.__s,_.getChildContext!=null&&(n=C(C({},n),_.getChildContext())),h||_.getSnapshotBeforeUpdate==null||(p=_.getSnapshotBeforeUpdate(s,c)),w=d!=null&&d.type===O&&d.key==null?d.props.children:d,se(e,Array.isArray(w)?w:[w],t,o,n,i,r,l,u,f),_.base=t.__e,t.__h=null,_.__h.length&&l.push(_),k&&(_.__E=_.__=null),_.__e=!1}else r==null&&t.__v===o.__v?(t.__k=o.__k,t.__e=o.__e):t.__e=qe(o.__e,t,o,n,i,r,l,f);(d=a.diffed)&&d(t)}catch(S){t.__v=null,(f||r!=null)&&(t.__e=u,t.__h=!!f,r[r.indexOf(u)]=null),a.__e(S,t,o)}}function he(e,t){a.__c&&a.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(n){n.call(o)})}catch(n){a.__e(n,o.__v)}})}function qe(e,t,o,n,i,r,l,u){var f,d,_,h=o.props,s=t.props,c=t.type,p=0;if(c==="svg"&&(i=!0),r!=null){for(;p<r.length;p++)if((f=r[p])&&"setAttribute"in f==!!c&&(c?f.localName===c:f.nodeType===3)){e=f,r[p]=null;break}}if(e==null){if(c===null)return document.createTextNode(s);e=i?document.createElementNS("http://www.w3.org/2000/svg",c):document.createElement(c,s.is&&s),r=null,u=!1}if(c===null)h===s||u&&e.data===s||(e.data=s);else{if(r=r&&A.call(e.childNodes),d=(h=o.props||U).dangerouslySetInnerHTML,_=s.dangerouslySetInnerHTML,!u){if(r!=null)for(h={},p=0;p<e.attributes.length;p++)h[e.attributes[p].name]=e.attributes[p].value;(_||d)&&(_&&(d&&_.__html==d.__html||_.__html===e.innerHTML)||(e.innerHTML=_&&_.__html||""))}if(Ve(e,s,h,i,u),_)t.__k=[];else if(p=t.props.children,se(e,Array.isArray(p)?p:[p],t,o,n,i&&c!=="foreignObject",r,l,r?r[0]:o.__k&&N(o,0),u),r!=null)for(p=r.length;p--;)r[p]!=null&&ie(r[p]);u||("value"in s&&(p=s.value)!==void 0&&(p!==e.value||c==="progress"&&!p||c==="option"&&p!==h.value)&&L(e,"value",p,h.value,!1),"checked"in s&&(p=s.checked)!==void 0&&p!==e.checked&&L(e,"checked",p,h.checked,!1))}return e}function ve(e,t,o){try{typeof e=="function"?e(t):e.current=t}catch(n){a.__e(n,o)}}function be(e,t,o){var n,i;if(a.unmount&&a.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||ve(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(r){a.__e(r,t)}n.base=n.__P=null}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&be(n[i],t,typeof e.type!="function");o||e.__e==null||ie(e.__e),e.__e=e.__d=void 0}function Be(e,t,o){return this.constructor(e,o)}function me(e,t,o){var n,i,r;a.__&&a.__(e,t),i=(n=typeof o=="function")?null:o&&o.__k||t.__k,r=[],Q(t,e=(!n&&o||t).__k=v(O,null,[e]),i||U,U,t.ownerSVGElement!==void 0,!n&&o?[o]:i?null:t.firstChild?A.call(t.childNodes):null,r,!n&&o?o:i?i.__e:t.firstChild,n),he(r,e)}A=_e.slice,a={__e:function(e,t,o,n){for(var i,r,l;t=t.__;)if((i=t.__c)&&!i.__)try{if((r=i.constructor)&&r.getDerivedStateFromError!=null&&(i.setState(r.getDerivedStateFromError(e)),l=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,n||{}),l=i.__d),l)return i.__E=i}catch(u){e=u}throw e}},oe=0,M.prototype.setState=function(e,t){var o;o=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=C({},this.state),typeof e=="function"&&(e=e(C({},o),this.props)),e&&C(o,e),e!=null&&this.__v&&(t&&this.__h.push(t),ce(this))},M.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),ce(this))},M.prototype.render=O,D=[],ne=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,T.__r=0;const Ge=`.time-cell{display:flex;flex-flow:column nowrap;align-items:center;font-family:sans-serif;font-weight:700}.time-cell.disabled .time-cell-up:before,.time-cell.disabled .time-cell-down:after{border-top-color:#0000000d;border-bottom-color:#0000000d}.time-cell-up:before,.time-cell-down:after{content:"";display:block;width:0;height:0;margin:0 0 4px;border-top:0;border-left:12px solid transparent;border-right:12px solid transparent;border-bottom:12px solid #151515;transition:border-color .4s;cursor:pointer}.time-cell-down:after{margin:4px 0 0;border-top:12px solid #151515;border-bottom:0}.rotor{position:relative;width:36px;height:64px;border-radius:4px;font-size:48px;text-align:center;perspective:200px}.rotor-top,.rotor-bottom{overflow:hidden;position:absolute;width:36px;height:32px}.rotor-leaf{z-index:1;position:absolute;width:36px;height:64px;transform-style:preserve-3d;transition:transform 0s}.rotor-leaf.flipped{transform:rotateX(-180deg);transition:all .5s ease-in-out}.rotor-leaf-front,.rotor-leaf-rear{overflow:hidden;position:absolute;width:36px;height:32px;margin:0;transform:rotateX(0);backface-visibility:hidden;-webkit-backface-visibility:hidden}.rotor-leaf-front{line-height:64px;border-radius:4px 4px 0 0}.rotor-leaf-rear{line-height:0px;border-radius:0 0 4px 4px;transform:rotateX(-180deg)}.rotor-top{line-height:64px;border-radius:4px 4px 0 0}.rotor-bottom{bottom:0;line-height:0px;border-radius:0 0 4px 4px}.rotor:after{content:"";z-index:2;position:absolute;bottom:0px;left:0px;width:36px;height:32px;border-radius:0 0 4px 4px}.rotor,.rotor-top,.rotor-leaf-front{color:#fff;background-color:#151515}.rotor-bottom,.rotor-leaf-rear{color:#efefef;background-color:#202020}.rotor:after{border-top:solid 1px #151515}.telebox-color-scheme-dark .time-cell.disabled .time-cell-up:before,.telebox-color-scheme-dark .time-cell.disabled .time-cell-down:after{border-top-color:#ffffff14;border-bottom-color:#ffffff14}.telebox-color-scheme-dark .time-cell-up:before,.telebox-color-scheme-dark .time-cell-down:after{border-top-color:#d9d9df;border-bottom-color:#d9d9df}.telebox-color-scheme-dark .rotor,.telebox-color-scheme-dark .rotor-top,.telebox-color-scheme-dark .rotor-leaf-front{color:#383838;background-color:#efeff5}.telebox-color-scheme-dark .rotor-bottom,.telebox-color-scheme-dark .rotor-leaf-rear{color:#333;background-color:#eeecec}.telebox-color-scheme-dark .rotor:after{border-top:solid 1px #efeff5}.countdown-clock{display:flex;padding:5px}.countdown-clock>*{padding:0 5px}.countdown-clock-divider{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:0 1px}.countdown-clock-divider:before,.countdown-clock-divider:after{content:"";display:block;width:8px;height:8px;margin:6px 0;background-color:#000;border-radius:50%}.netless-app-countdown{width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;transition:background-color .4s}.netless-app-countdown-shrink{display:inline-block;transition:background-color .4s}.netless-app-countdown-btns{width:100%;margin-top:10px;display:flex;flex-wrap:nowrap}.netless-app-countdown-btns>button{flex:1;display:block;margin:0 10px 0 0;padding:5px 10px;text-align:center;border:0;border-radius:4px;color:#fff;background-color:#3380ff;transition:background-color .4s,color .4s;cursor:pointer}.netless-app-countdown-btns>button:last-of-type{margin:0}.netless-app-countdown-btns>button:disabled{color:#00000040;background:#f5f5f5;cursor:not-allowed}.telebox-color-scheme-dark .netless-app-countdown-btns>button:disabled{color:#ffffff4d;background:rgba(255,255,255,.08)}
`;var I,x,ye,z=0,ge=[],ke=a.__b,we=a.__r,xe=a.diffed,Se=a.__c,Me=a.unmount;function Y(e,t){a.__h&&a.__h(x,e,z||t),z=0;var o=x.__H||(x.__H={__:[],__h:[]});return e>=o.__.length&&o.__.push({}),o.__[e]}function H(e){return z=1,Xe(Oe,e)}function Xe(e,t,o){var n=Y(I++,2);return n.t=e,n.__c||(n.__=[o?o(t):Oe(void 0,t),function(i){var r=n.t(n.__[0],i);n.__[0]!==r&&(n.__=[r,n.__[1]],n.__c.setState({}))}],n.__c=x),n.__}function E(e,t){var o=Y(I++,3);!a.__s&&Pe(o.__H,t)&&(o.__=e,o.__H=t,x.__H.__h.push(o))}function $e(e,t){var o=Y(I++,7);return Pe(o.__H,t)&&(o.__=e(),o.__H=t,o.__h=e),o.__}function R(e,t){return z=8,$e(function(){return e},t)}function Ze(){for(var e;e=ge.shift();)if(e.__P)try{e.__H.__h.forEach(V),e.__H.__h.forEach(j),e.__H.__h=[]}catch(t){e.__H.__h=[],a.__e(t,e.__v)}}a.__b=function(e){x=null,ke&&ke(e)},a.__r=function(e){we&&we(e),I=0;var t=(x=e.__c).__H;t&&(t.__h.forEach(V),t.__h.forEach(j),t.__h=[])},a.diffed=function(e){xe&&xe(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(ge.push(t)!==1&&ye===a.requestAnimationFrame||((ye=a.requestAnimationFrame)||function(o){var n,i=function(){clearTimeout(r),Ce&&cancelAnimationFrame(n),setTimeout(o)},r=setTimeout(i,100);Ce&&(n=requestAnimationFrame(i))})(Ze)),x=null},a.__c=function(e,t){t.some(function(o){try{o.__h.forEach(V),o.__h=o.__h.filter(function(n){return!n.__||j(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],a.__e(n,o.__v)}}),Se&&Se(e,t)},a.unmount=function(e){Me&&Me(e);var t,o=e.__c;o&&o.__H&&(o.__H.__.forEach(function(n){try{V(n)}catch(i){t=i}}),t&&a.__e(t,o.__v))};var Ce=typeof requestAnimationFrame=="function";function V(e){var t=x,o=e.__c;typeof o=="function"&&(e.__c=void 0,o()),x=t}function j(e){var t=x;e.__c=e.__(),x=t}function Pe(e,t){return!e||e.length!==t.length||t.some(function(o,n){return o!==e[n]})}function Oe(e,t){return typeof t=="function"?t(e):t}function Je(e,t){for(var o in t)e[o]=t[o];return e}function ee(e,t){for(var o in e)if(o!=="__source"&&!(o in t))return!0;for(var n in t)if(n!=="__source"&&e[n]!==t[n])return!0;return!1}function He(e){this.props=e}function q(e,t){function o(i){var r=this.props.ref,l=r==i.ref;return!l&&r&&(r.call?r(null):r.current=null),t?!t(this.props,i)||!l:ee(this.props,i)}function n(i){return this.shouldComponentUpdate=o,v(e,i)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}(He.prototype=new M).isPureReactComponent=!0,He.prototype.shouldComponentUpdate=function(e,t){return ee(this.props,e)||ee(this.state,t)};var Ne=a.__b;a.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Ne&&Ne(e)};var Ke=a.__e;a.__e=function(e,t,o,n){if(e.then){for(var i,r=t;r=r.__;)if((i=r.__c)&&i.__c)return t.__e==null&&(t.__e=o.__e,t.__k=o.__k),i.__c(e,t)}Ke(e,t,o,n)};var Ee=a.unmount;function te(){this.__u=0,this.t=null,this.__b=null}function Re(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function B(){this.u=null,this.o=null}a.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),Ee&&Ee(e)},(te.prototype=new M).__c=function(e,t){var o=t.__c,n=this;n.t==null&&(n.t=[]),n.t.push(o);var i=Re(n.__v),r=!1,l=function(){r||(r=!0,o.__R=null,i?i(u):u())};o.__R=l;var u=function(){if(!--n.__u){if(n.state.__e){var d=n.state.__e;n.__v.__k[0]=function h(s,c,p){return s&&(s.__v=null,s.__k=s.__k&&s.__k.map(function(k){return h(k,c,p)}),s.__c&&s.__c.__P===c&&(s.__e&&p.insertBefore(s.__e,s.__d),s.__c.__e=!0,s.__c.__P=p)),s}(d,d.__c.__P,d.__c.__O)}var _;for(n.setState({__e:n.__b=null});_=n.t.pop();)_.forceUpdate()}},f=t.__h===!0;n.__u++||f||n.setState({__e:n.__b=n.__v.__k[0]}),e.then(l,l)},te.prototype.componentWillUnmount=function(){this.t=[]},te.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var o=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=function r(l,u,f){return l&&(l.__c&&l.__c.__H&&(l.__c.__H.__.forEach(function(d){typeof d.__c=="function"&&d.__c()}),l.__c.__H=null),(l=Je({},l)).__c!=null&&(l.__c.__P===f&&(l.__c.__P=u),l.__c=null),l.__k=l.__k&&l.__k.map(function(d){return r(d,u,f)})),l}(this.__b,o,n.__O=n.__P)}this.__b=null}var i=t.__e&&v(O,null,e.fallback);return i&&(i.__h=null),[v(O,null,t.__e?null:e.children),i]};var De=function(e,t,o){if(++o[1]===o[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(o=e.u;o;){for(;o.length>3;)o.pop()();if(o[1]<o[0])break;e.u=o=o[2]}};(B.prototype=new M).__e=function(e){var t=this,o=Re(t.__v),n=t.o.get(e);return n[0]++,function(i){var r=function(){t.props.revealOrder?(n.push(i),De(t,e,n)):i()};o?o(r):r()}},B.prototype.render=function(e){this.u=null,this.o=new Map;var t=F(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var o=t.length;o--;)this.o.set(t[o],this.u=[1,0,this.u]);return e.children},B.prototype.componentDidUpdate=B.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,o){De(e,o,t)})};var Qe=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Ye=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,je=typeof document<"u",et=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(e)};M.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(M.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Ae=a.event;function tt(){}function ot(){return this.cancelBubble}function nt(){return this.defaultPrevented}a.event=function(e){return Ae&&(e=Ae(e)),e.persist=tt,e.isPropagationStopped=ot,e.isDefaultPrevented=nt,e.nativeEvent=e};var Ue={configurable:!0,get:function(){return this.class}},We=a.vnode;a.vnode=function(e){var t=e.type,o=e.props,n=o;if(typeof t=="string"){var i=t.indexOf("-")===-1;for(var r in n={},o){var l=o[r];je&&r==="children"&&t==="noscript"||r==="value"&&"defaultValue"in o&&l==null||(r==="defaultValue"&&"value"in o&&o.value==null?r="value":r==="download"&&l===!0?l="":/ondoubleclick/i.test(r)?r="ondblclick":/^onchange(textarea|input)/i.test(r+t)&&!et(o.type)?r="oninput":/^onfocus$/i.test(r)?r="onfocusin":/^onblur$/i.test(r)?r="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(r)?r=r.toLowerCase():i&&Ye.test(r)?r=r.replace(/[A-Z0-9]/,"-$&").toLowerCase():l===null&&(l=void 0),n[r]=l)}t=="select"&&n.multiple&&Array.isArray(n.value)&&(n.value=F(o.children).forEach(function(u){u.props.selected=n.value.indexOf(u.props.value)!=-1})),t=="select"&&n.defaultValue!=null&&(n.value=F(o.children).forEach(function(u){u.props.selected=n.multiple?n.defaultValue.indexOf(u.props.value)!=-1:n.defaultValue==u.props.value})),e.props=n,o.class!=o.className&&(Ue.enumerable="className"in o,o.className!=null&&(n.class=o.className),Object.defineProperty(n,"className",Ue))}e.$$typeof=Qe,We&&We(e)};var Te=a.__r;a.__r=function(e){Te&&Te(e),e.__c};const ct="";var Fe={exports:{}};/*!
var NetlessAppCountdown=function(K){"use strict";var A,a,oe,D,ne,re,U={},_e=[],ze=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function C(e,t){for(var o in t)e[o]=t[o];return e}function ie(e){var t=e.parentNode;t&&t.removeChild(e)}function v(e,t,o){var n,i,r,l={};for(r in t)r=="key"?n=t[r]:r=="ref"?i=t[r]:l[r]=t[r];if(arguments.length>2&&(l.children=arguments.length>3?A.call(arguments,2):o),typeof e=="function"&&e.defaultProps!=null)for(r in e.defaultProps)l[r]===void 0&&(l[r]=e.defaultProps[r]);return W(e,l,n,i,null)}function W(e,t,o,n,i){var r={type:e,props:t,key:o,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i==null?++oe:i};return i==null&&a.vnode!=null&&a.vnode(r),r}function O(e){return e.children}function M(e,t){this.props=e,this.context=t}function N(e,t){if(t==null)return e.__?N(e.__,e.__.__k.indexOf(e)+1):null;for(var o;t<e.__k.length;t++)if((o=e.__k[t])!=null&&o.__e!=null)return o.__e;return typeof e.type=="function"?N(e):null}function le(e){var t,o;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((o=e.__k[t])!=null&&o.__e!=null){e.__e=e.__c.base=o.__e;break}return le(e)}}function ce(e){(!e.__d&&(e.__d=!0)&&D.push(e)&&!T.__r++||re!==a.debounceRendering)&&((re=a.debounceRendering)||ne)(T)}function T(){for(var e;T.__r=D.length;)e=D.sort(function(t,o){return t.__v.__b-o.__v.__b}),D=[],e.some(function(t){var o,n,i,r,l,u;t.__d&&(l=(r=(o=t).__v).__e,(u=o.__P)&&(n=[],(i=C({},r)).__v=r.__v+1,Q(u,r,i,o.__n,u.ownerSVGElement!==void 0,r.__h!=null?[l]:null,n,l==null?N(r):l,r.__h),he(n,r),r.__e!=l&&le(r)))})}function se(e,t,o,n,i,r,l,u,f,d){var _,h,s,c,p,k,b,m=n&&n.__k||_e,y=m.length;for(o.__k=[],_=0;_<t.length;_++)if((c=o.__k[_]=(c=t[_])==null||typeof c=="boolean"?null:typeof c=="string"||typeof c=="number"||typeof c=="bigint"?W(null,c,null,null,c):Array.isArray(c)?W(O,{children:c},null,null,null):c.__b>0?W(c.type,c.props,c.key,null,c.__v):c)!=null){if(c.__=o,c.__b=o.__b+1,(s=m[_])===null||s&&c.key==s.key&&c.type===s.type)m[_]=void 0;else for(h=0;h<y;h++){if((s=m[h])&&c.key==s.key&&c.type===s.type){m[h]=void 0;break}s=null}Q(e,c,s=s||U,i,r,l,u,f,d),p=c.__e,(h=c.ref)&&s.ref!=h&&(b||(b=[]),s.ref&&b.push(s.ref,null,c),b.push(h,c.__c||p,c)),p!=null?(k==null&&(k=p),typeof c.type=="function"&&c.__k===s.__k?c.__d=f=ae(c,f,e):f=ue(e,c,s,m,p,f),typeof o.type=="function"&&(o.__d=f)):f&&s.__e==f&&f.parentNode!=e&&(f=N(s))}for(o.__e=k,_=y;_--;)m[_]!=null&&(typeof o.type=="function"&&m[_].__e!=null&&m[_].__e==o.__d&&(o.__d=N(n,_+1)),be(m[_],m[_]));if(b)for(_=0;_<b.length;_++)ve(b[_],b[++_],b[++_])}function ae(e,t,o){for(var n,i=e.__k,r=0;i&&r<i.length;r++)(n=i[r])&&(n.__=e,t=typeof n.type=="function"?ae(n,t,o):ue(o,n,n,i,n.__e,t));return t}function F(e,t){return t=t||[],e==null||typeof e=="boolean"||(Array.isArray(e)?e.some(function(o){F(o,t)}):t.push(e)),t}function ue(e,t,o,n,i,r){var l,u,f;if(t.__d!==void 0)l=t.__d,t.__d=void 0;else if(o==null||i!=r||i.parentNode==null)e:if(r==null||r.parentNode!==e)e.appendChild(i),l=null;else{for(u=r,f=0;(u=u.nextSibling)&&f<n.length;f+=2)if(u==i)break e;e.insertBefore(i,r),l=r}return l!==void 0?l:i.nextSibling}function Ve(e,t,o,n,i){var r;for(r in o)r==="children"||r==="key"||r in t||I(e,r,null,o[r],n);for(r in t)i&&typeof t[r]!="function"||r==="children"||r==="key"||r==="value"||r==="checked"||o[r]===t[r]||I(e,r,t[r],o[r],n)}function fe(e,t,o){t[0]==="-"?e.setProperty(t,o):e[t]=o==null?"":typeof o!="number"||ze.test(t)?o:o+"px"}function I(e,t,o,n,i){var r;e:if(t==="style")if(typeof o=="string")e.style.cssText=o;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)o&&t in o||fe(e.style,t,"");if(o)for(t in o)n&&o[t]===n[t]||fe(e.style,t,o[t])}else if(t[0]==="o"&&t[1]==="n")r=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+r]=o,o?n||e.addEventListener(t,r?pe:de,r):e.removeEventListener(t,r?pe:de,r);else if(t!=="dangerouslySetInnerHTML"){if(i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t in e)try{e[t]=o==null?"":o;break e}catch{}typeof o=="function"||(o!=null&&(o!==!1||t[0]==="a"&&t[1]==="r")?e.setAttribute(t,o):e.removeAttribute(t))}}function de(e){this.l[e.type+!1](a.event?a.event(e):e)}function pe(e){this.l[e.type+!0](a.event?a.event(e):e)}function Q(e,t,o,n,i,r,l,u,f){var d,_,h,s,c,p,k,b,m,y,w,g=t.type;if(t.constructor!==void 0)return null;o.__h!=null&&(f=o.__h,u=t.__e=o.__e,t.__h=null,r=[u]),(d=a.__b)&&d(t);try{e:if(typeof g=="function"){if(b=t.props,m=(d=g.contextType)&&n[d.__c],y=d?m?m.props.value:d.__:n,o.__c?k=(_=t.__c=o.__c).__=_.__E:("prototype"in g&&g.prototype.render?t.__c=_=new g(b,y):(t.__c=_=new M(b,y),_.constructor=g,_.render=Be),m&&m.sub(_),_.props=b,_.state||(_.state={}),_.context=y,_.__n=n,h=_.__d=!0,_.__h=[]),_.__s==null&&(_.__s=_.state),g.getDerivedStateFromProps!=null&&(_.__s==_.state&&(_.__s=C({},_.__s)),C(_.__s,g.getDerivedStateFromProps(b,_.__s))),s=_.props,c=_.state,h)g.getDerivedStateFromProps==null&&_.componentWillMount!=null&&_.componentWillMount(),_.componentDidMount!=null&&_.__h.push(_.componentDidMount);else{if(g.getDerivedStateFromProps==null&&b!==s&&_.componentWillReceiveProps!=null&&_.componentWillReceiveProps(b,y),!_.__e&&_.shouldComponentUpdate!=null&&_.shouldComponentUpdate(b,_.__s,y)===!1||t.__v===o.__v){_.props=b,_.state=_.__s,t.__v!==o.__v&&(_.__d=!1),_.__v=t,t.__e=o.__e,t.__k=o.__k,t.__k.forEach(function(S){S&&(S.__=t)}),_.__h.length&&l.push(_);break e}_.componentWillUpdate!=null&&_.componentWillUpdate(b,_.__s,y),_.componentDidUpdate!=null&&_.__h.push(function(){_.componentDidUpdate(s,c,p)})}_.context=y,_.props=b,_.state=_.__s,(d=a.__r)&&d(t),_.__d=!1,_.__v=t,_.__P=e,d=_.render(_.props,_.state,_.context),_.state=_.__s,_.getChildContext!=null&&(n=C(C({},n),_.getChildContext())),h||_.getSnapshotBeforeUpdate==null||(p=_.getSnapshotBeforeUpdate(s,c)),w=d!=null&&d.type===O&&d.key==null?d.props.children:d,se(e,Array.isArray(w)?w:[w],t,o,n,i,r,l,u,f),_.base=t.__e,t.__h=null,_.__h.length&&l.push(_),k&&(_.__E=_.__=null),_.__e=!1}else r==null&&t.__v===o.__v?(t.__k=o.__k,t.__e=o.__e):t.__e=qe(o.__e,t,o,n,i,r,l,f);(d=a.diffed)&&d(t)}catch(S){t.__v=null,(f||r!=null)&&(t.__e=u,t.__h=!!f,r[r.indexOf(u)]=null),a.__e(S,t,o)}}function he(e,t){a.__c&&a.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(n){n.call(o)})}catch(n){a.__e(n,o.__v)}})}function qe(e,t,o,n,i,r,l,u){var f,d,_,h=o.props,s=t.props,c=t.type,p=0;if(c==="svg"&&(i=!0),r!=null){for(;p<r.length;p++)if((f=r[p])&&"setAttribute"in f==!!c&&(c?f.localName===c:f.nodeType===3)){e=f,r[p]=null;break}}if(e==null){if(c===null)return document.createTextNode(s);e=i?document.createElementNS("http://www.w3.org/2000/svg",c):document.createElement(c,s.is&&s),r=null,u=!1}if(c===null)h===s||u&&e.data===s||(e.data=s);else{if(r=r&&A.call(e.childNodes),d=(h=o.props||U).dangerouslySetInnerHTML,_=s.dangerouslySetInnerHTML,!u){if(r!=null)for(h={},p=0;p<e.attributes.length;p++)h[e.attributes[p].name]=e.attributes[p].value;(_||d)&&(_&&(d&&_.__html==d.__html||_.__html===e.innerHTML)||(e.innerHTML=_&&_.__html||""))}if(Ve(e,s,h,i,u),_)t.__k=[];else if(p=t.props.children,se(e,Array.isArray(p)?p:[p],t,o,n,i&&c!=="foreignObject",r,l,r?r[0]:o.__k&&N(o,0),u),r!=null)for(p=r.length;p--;)r[p]!=null&&ie(r[p]);u||("value"in s&&(p=s.value)!==void 0&&(p!==e.value||c==="progress"&&!p||c==="option"&&p!==h.value)&&I(e,"value",p,h.value,!1),"checked"in s&&(p=s.checked)!==void 0&&p!==e.checked&&I(e,"checked",p,h.checked,!1))}return e}function ve(e,t,o){try{typeof e=="function"?e(t):e.current=t}catch(n){a.__e(n,o)}}function be(e,t,o){var n,i;if(a.unmount&&a.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||ve(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(r){a.__e(r,t)}n.base=n.__P=null}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&be(n[i],t,typeof e.type!="function");o||e.__e==null||ie(e.__e),e.__e=e.__d=void 0}function Be(e,t,o){return this.constructor(e,o)}function me(e,t,o){var n,i,r;a.__&&a.__(e,t),i=(n=typeof o=="function")?null:o&&o.__k||t.__k,r=[],Q(t,e=(!n&&o||t).__k=v(O,null,[e]),i||U,U,t.ownerSVGElement!==void 0,!n&&o?[o]:i?null:t.firstChild?A.call(t.childNodes):null,r,!n&&o?o:i?i.__e:t.firstChild,n),he(r,e)}A=_e.slice,a={__e:function(e,t,o,n){for(var i,r,l;t=t.__;)if((i=t.__c)&&!i.__)try{if((r=i.constructor)&&r.getDerivedStateFromError!=null&&(i.setState(r.getDerivedStateFromError(e)),l=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,n||{}),l=i.__d),l)return i.__E=i}catch(u){e=u}throw e}},oe=0,M.prototype.setState=function(e,t){var o;o=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=C({},this.state),typeof e=="function"&&(e=e(C({},o),this.props)),e&&C(o,e),e!=null&&this.__v&&(t&&this.__h.push(t),ce(this))},M.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),ce(this))},M.prototype.render=O,D=[],ne=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,T.__r=0;const Ge=`.time-cell{display:flex;flex-flow:column nowrap;align-items:center;font-family:sans-serif;font-weight:700}.time-cell.disabled .time-cell-up:before,.time-cell.disabled .time-cell-down:after{border-top-color:#0000000d;border-bottom-color:#0000000d}.time-cell-up:before,.time-cell-down:after{content:"";display:block;width:0;height:0;margin:0 0 4px;border-top:0;border-left:12px solid transparent;border-right:12px solid transparent;border-bottom:12px solid #151515;transition:border-color .4s;cursor:pointer}.time-cell-down:after{margin:4px 0 0;border-top:12px solid #151515;border-bottom:0}.rotor{position:relative;width:36px;height:64px;border-radius:4px;font-size:48px;text-align:center;perspective:200px}.rotor-top,.rotor-bottom{overflow:hidden;position:absolute;width:36px;height:32px}.rotor-leaf{z-index:1;position:absolute;width:36px;height:64px;transform-style:preserve-3d;transition:transform 0s}.rotor-leaf.flipped{transform:rotateX(-180deg);transition:all .5s ease-in-out}.rotor-leaf-front,.rotor-leaf-rear{overflow:hidden;position:absolute;width:36px;height:32px;margin:0;transform:rotateX(0);backface-visibility:hidden;-webkit-backface-visibility:hidden}.rotor-leaf-front{line-height:64px;border-radius:4px 4px 0 0}.rotor-leaf-rear{line-height:0px;border-radius:0 0 4px 4px;transform:rotateX(-180deg)}.rotor-top{line-height:64px;border-radius:4px 4px 0 0}.rotor-bottom{bottom:0;line-height:0px;border-radius:0 0 4px 4px}.rotor:after{content:"";z-index:2;position:absolute;bottom:0px;left:0px;width:36px;height:32px;border-radius:0 0 4px 4px}.rotor,.rotor-top,.rotor-leaf-front{color:#fff;background-color:#151515}.rotor-bottom,.rotor-leaf-rear{color:#efefef;background-color:#202020}.rotor:after{border-top:solid 1px #151515}.telebox-color-scheme-dark .time-cell.disabled .time-cell-up:before,.telebox-color-scheme-dark .time-cell.disabled .time-cell-down:after{border-top-color:#ffffff14;border-bottom-color:#ffffff14}.telebox-color-scheme-dark .time-cell-up:before,.telebox-color-scheme-dark .time-cell-down:after{border-top-color:#d9d9df;border-bottom-color:#d9d9df}.telebox-color-scheme-dark .rotor,.telebox-color-scheme-dark .rotor-top,.telebox-color-scheme-dark .rotor-leaf-front{color:#383838;background-color:#efeff5}.telebox-color-scheme-dark .rotor-bottom,.telebox-color-scheme-dark .rotor-leaf-rear{color:#333;background-color:#eeecec}.telebox-color-scheme-dark .rotor:after{border-top:solid 1px #efeff5}.countdown-clock{display:flex;padding:5px}.countdown-clock>*{padding:0 5px}.countdown-clock-divider{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:0 1px}.countdown-clock-divider:before,.countdown-clock-divider:after{content:"";display:block;width:8px;height:8px;margin:6px 0;background-color:#000;border-radius:50%}.netless-app-countdown{width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;transition:background-color .4s}.netless-app-countdown-shrink{display:inline-block;transition:background-color .4s}.netless-app-countdown-btns{width:100%;margin-top:10px;display:flex;flex-wrap:nowrap}.netless-app-countdown-btns>button{flex:1;display:block;margin:0 10px 0 0;padding:5px 10px;text-align:center;border:0;border-radius:4px;color:#fff;background-color:#3380ff;transition:background-color .4s,color .4s;cursor:pointer}.netless-app-countdown-btns>button:last-of-type{margin:0}.netless-app-countdown-btns>button:disabled{color:#00000040;background:#f5f5f5;cursor:not-allowed}.telebox-color-scheme-dark .netless-app-countdown-btns>button:disabled{color:#ffffff4d;background:rgba(255,255,255,.08)}
`;var L,x,ye,z=0,ge=[],ke=a.__b,we=a.__r,xe=a.diffed,Se=a.__c,Me=a.unmount;function Y(e,t){a.__h&&a.__h(x,e,z||t),z=0;var o=x.__H||(x.__H={__:[],__h:[]});return e>=o.__.length&&o.__.push({}),o.__[e]}function H(e){return z=1,Xe(Oe,e)}function Xe(e,t,o){var n=Y(L++,2);return n.t=e,n.__c||(n.__=[o?o(t):Oe(void 0,t),function(i){var r=n.t(n.__[0],i);n.__[0]!==r&&(n.__=[r,n.__[1]],n.__c.setState({}))}],n.__c=x),n.__}function E(e,t){var o=Y(L++,3);!a.__s&&Pe(o.__H,t)&&(o.__=e,o.__H=t,x.__H.__h.push(o))}function $e(e,t){var o=Y(L++,7);return Pe(o.__H,t)&&(o.__=e(),o.__H=t,o.__h=e),o.__}function R(e,t){return z=8,$e(function(){return e},t)}function Ze(){for(var e;e=ge.shift();)if(e.__P)try{e.__H.__h.forEach(V),e.__H.__h.forEach(j),e.__H.__h=[]}catch(t){e.__H.__h=[],a.__e(t,e.__v)}}a.__b=function(e){x=null,ke&&ke(e)},a.__r=function(e){we&&we(e),L=0;var t=(x=e.__c).__H;t&&(t.__h.forEach(V),t.__h.forEach(j),t.__h=[])},a.diffed=function(e){xe&&xe(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(ge.push(t)!==1&&ye===a.requestAnimationFrame||((ye=a.requestAnimationFrame)||function(o){var n,i=function(){clearTimeout(r),Ce&&cancelAnimationFrame(n),setTimeout(o)},r=setTimeout(i,100);Ce&&(n=requestAnimationFrame(i))})(Ze)),x=null},a.__c=function(e,t){t.some(function(o){try{o.__h.forEach(V),o.__h=o.__h.filter(function(n){return!n.__||j(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],a.__e(n,o.__v)}}),Se&&Se(e,t)},a.unmount=function(e){Me&&Me(e);var t,o=e.__c;o&&o.__H&&(o.__H.__.forEach(function(n){try{V(n)}catch(i){t=i}}),t&&a.__e(t,o.__v))};var Ce=typeof requestAnimationFrame=="function";function V(e){var t=x,o=e.__c;typeof o=="function"&&(e.__c=void 0,o()),x=t}function j(e){var t=x;e.__c=e.__(),x=t}function Pe(e,t){return!e||e.length!==t.length||t.some(function(o,n){return o!==e[n]})}function Oe(e,t){return typeof t=="function"?t(e):t}function Je(e,t){for(var o in t)e[o]=t[o];return e}function ee(e,t){for(var o in e)if(o!=="__source"&&!(o in t))return!0;for(var n in t)if(n!=="__source"&&e[n]!==t[n])return!0;return!1}function He(e){this.props=e}function q(e,t){function o(i){var r=this.props.ref,l=r==i.ref;return!l&&r&&(r.call?r(null):r.current=null),t?!t(this.props,i)||!l:ee(this.props,i)}function n(i){return this.shouldComponentUpdate=o,v(e,i)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}(He.prototype=new M).isPureReactComponent=!0,He.prototype.shouldComponentUpdate=function(e,t){return ee(this.props,e)||ee(this.state,t)};var Ne=a.__b;a.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Ne&&Ne(e)};var Ke=a.__e;a.__e=function(e,t,o,n){if(e.then){for(var i,r=t;r=r.__;)if((i=r.__c)&&i.__c)return t.__e==null&&(t.__e=o.__e,t.__k=o.__k),i.__c(e,t)}Ke(e,t,o,n)};var Ee=a.unmount;function te(){this.__u=0,this.t=null,this.__b=null}function Re(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function B(){this.u=null,this.o=null}a.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),Ee&&Ee(e)},(te.prototype=new M).__c=function(e,t){var o=t.__c,n=this;n.t==null&&(n.t=[]),n.t.push(o);var i=Re(n.__v),r=!1,l=function(){r||(r=!0,o.__R=null,i?i(u):u())};o.__R=l;var u=function(){if(!--n.__u){if(n.state.__e){var d=n.state.__e;n.__v.__k[0]=function h(s,c,p){return s&&(s.__v=null,s.__k=s.__k&&s.__k.map(function(k){return h(k,c,p)}),s.__c&&s.__c.__P===c&&(s.__e&&p.insertBefore(s.__e,s.__d),s.__c.__e=!0,s.__c.__P=p)),s}(d,d.__c.__P,d.__c.__O)}var _;for(n.setState({__e:n.__b=null});_=n.t.pop();)_.forceUpdate()}},f=t.__h===!0;n.__u++||f||n.setState({__e:n.__b=n.__v.__k[0]}),e.then(l,l)},te.prototype.componentWillUnmount=function(){this.t=[]},te.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var o=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=function r(l,u,f){return l&&(l.__c&&l.__c.__H&&(l.__c.__H.__.forEach(function(d){typeof d.__c=="function"&&d.__c()}),l.__c.__H=null),(l=Je({},l)).__c!=null&&(l.__c.__P===f&&(l.__c.__P=u),l.__c=null),l.__k=l.__k&&l.__k.map(function(d){return r(d,u,f)})),l}(this.__b,o,n.__O=n.__P)}this.__b=null}var i=t.__e&&v(O,null,e.fallback);return i&&(i.__h=null),[v(O,null,t.__e?null:e.children),i]};var De=function(e,t,o){if(++o[1]===o[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(o=e.u;o;){for(;o.length>3;)o.pop()();if(o[1]<o[0])break;e.u=o=o[2]}};(B.prototype=new M).__e=function(e){var t=this,o=Re(t.__v),n=t.o.get(e);return n[0]++,function(i){var r=function(){t.props.revealOrder?(n.push(i),De(t,e,n)):i()};o?o(r):r()}},B.prototype.render=function(e){this.u=null,this.o=new Map;var t=F(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var o=t.length;o--;)this.o.set(t[o],this.u=[1,0,this.u]);return e.children},B.prototype.componentDidUpdate=B.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,o){De(e,o,t)})};var Qe=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Ye=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,je=typeof document<"u",et=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(e)};M.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(M.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Ae=a.event;function tt(){}function ot(){return this.cancelBubble}function nt(){return this.defaultPrevented}a.event=function(e){return Ae&&(e=Ae(e)),e.persist=tt,e.isPropagationStopped=ot,e.isDefaultPrevented=nt,e.nativeEvent=e};var Ue={configurable:!0,get:function(){return this.class}},We=a.vnode;a.vnode=function(e){var t=e.type,o=e.props,n=o;if(typeof t=="string"){var i=t.indexOf("-")===-1;for(var r in n={},o){var l=o[r];je&&r==="children"&&t==="noscript"||r==="value"&&"defaultValue"in o&&l==null||(r==="defaultValue"&&"value"in o&&o.value==null?r="value":r==="download"&&l===!0?l="":/ondoubleclick/i.test(r)?r="ondblclick":/^onchange(textarea|input)/i.test(r+t)&&!et(o.type)?r="oninput":/^onfocus$/i.test(r)?r="onfocusin":/^onblur$/i.test(r)?r="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(r)?r=r.toLowerCase():i&&Ye.test(r)?r=r.replace(/[A-Z0-9]/,"-$&").toLowerCase():l===null&&(l=void 0),n[r]=l)}t=="select"&&n.multiple&&Array.isArray(n.value)&&(n.value=F(o.children).forEach(function(u){u.props.selected=n.value.indexOf(u.props.value)!=-1})),t=="select"&&n.defaultValue!=null&&(n.value=F(o.children).forEach(function(u){u.props.selected=n.multiple?n.defaultValue.indexOf(u.props.value)!=-1:n.defaultValue==u.props.value})),e.props=n,o.class!=o.className&&(Ue.enumerable="className"in o,o.className!=null&&(n.class=o.className),Object.defineProperty(n,"className",Ue))}e.$$typeof=Qe,We&&We(e)};var Te=a.__r;a.__r=function(e){Te&&Te(e),e.__c};const ct="";var Fe={exports:{}};/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/(function(e){(function(){var t={}.hasOwnProperty;function o(){for(var n=[],i=0;i<arguments.length;i++){var r=arguments[i];if(!!r){var l=typeof r;if(l==="string"||l==="number")n.push(r);else if(Array.isArray(r)){if(r.length){var u=o.apply(null,r);u&&n.push(u)}}else if(l==="object")if(r.toString===Object.prototype.toString)for(var f in r)t.call(r,f)&&r[f]&&n.push(f);else n.push(r.toString())}}return n.join(" ")}e.exports?(o.default=o,e.exports=o):window.classNames=o})()})(Fe);const Le=Fe.exports,G=q(({digit:e,disabled:t,onUp:o,onDown:n})=>{const[i,r]=H(0),[l,u]=H(!1);return E(()=>{if(t){u(!0);const f=window.setTimeout(()=>{u(!1),r(e)},500);return()=>window.clearTimeout(f)}else r(e)},[e]),v("div",{class:Le("time-cell",{disabled:t})},v("div",{class:"time-cell-up",onClick:t?void 0:o}),v("div",{class:"rotor"},v("div",{class:Le("rotor-leaf",{flipped:l})},v("figure",{class:"rotor-leaf-rear"},e),v("figure",{class:"rotor-leaf-front"},i)),v("div",{class:"rotor-top"},e),v("div",{class:"rotor-bottom"},i)),v("div",{class:"time-cell-down",onClick:t?void 0:n}))});var $=(e=>(e[e.AddTenMinutes=0]="AddTenMinutes",e[e.ReduceTenMinutes=1]="ReduceTenMinutes",e[e.AddOneMinute=2]="AddOneMinute",e[e.ReduceOneMinute=3]="ReduceOneMinute",e[e.AddTenSeconds=4]="AddTenSeconds",e[e.ReduceTenSeconds=5]="ReduceTenSeconds",e[e.AddOneSecond=6]="AddOneSecond",e[e.ReduceOneSecond=7]="ReduceOneSecond",e))($||{});function Ie(e){return $e(()=>(e=e%61,[Math.floor(e/10),e%10]),[e])}function P(e,t){return R(()=>e(t),[e])}const rt=q(({minutes:e,seconds:t,disabled:o,onAdjustTime:n})=>{const i=Ie(e),r=Ie(t),l=P(n,0),u=P(n,1),f=P(n,2),d=P(n,3),_=P(n,4),h=P(n,5),s=P(n,6),c=P(n,7);return v("div",{className:"countdown-clock"},v(G,{disabled:o,digit:i[0],onUp:l,onDown:u}),v(G,{digit:i[1],disabled:o,onUp:f,onDown:d}),v("div",{class:"countdown-clock-divider"}),v(G,{disabled:o,digit:r[0],onUp:_,onDown:h}),v(G,{digit:r[1],disabled:o,onUp:s,onDown:c}))}),_t=q(({readonly:e,countdownSecs:t,startTime:o,paused:n,onAdjustTime:i,onStart:r,onPause:l,onResume:u,onReset:f})=>{const[d,_]=H(0),h=o>0&&d>=o,s=t-(h?d-o:0),c=Math.floor(s/60),p=s-c*60;return E(()=>{let k=NaN;if(t>0&&o>0&&!n){const b=()=>{_(Math.floor(Date.now()/1e3)),k=window.requestAnimationFrame(b)};return b(),()=>window.cancelAnimationFrame(k)}else window.cancelAnimationFrame(k)},[o,n,t]),E(()=>{o>0&&d-o>=t&&f()},[d,o,t,f]),v("div",{class:"netless-app-countdown"},v("div",{class:"netless-app-countdown-shrink"},v(rt,{minutes:c,seconds:p,disabled:e||h,onAdjustTime:i}),v("div",{class:"netless-app-countdown-btns"},n?v(O,null,v("button",{onClick:f,disabled:e},"Reset"),v("button",{onClick:u,disabled:e},"Resume")):h?v("button",{onClick:l,disabled:e},"Pause"):v("button",{onClick:r,disabled:e||s<=0},"Start"))))}),it=q(({context:e,storage:t})=>{const[o,n]=H(()=>e.isWritable),[i,r]=H(0),[l,u]=H(0),[f,d]=H(!1),_=l>0,h=R(()=>{e.isWritable&&(d(!1),u(Math.floor(Date.now()/1e3)))},[e]),s=R(()=>{e.isWritable&&d(!0)},[e]),c=R(()=>{e.isWritable&&d(!1)},[e]),p=R(()=>{e.isWritable&&(d(!1),r(0),u(0))},[e]),k=R(b=>{_||r(m=>{if(!e.isWritable)return m;const y=Math.floor(m/60),w=m-y*60,g=Math.floor(y/10),S=y%10,X=Math.floor(w/10),Z=w%10;switch(b){case $.AddTenMinutes:{const J=S+w===0?7:6;return((g+1)%J*10+S)*60+w}case $.ReduceTenMinutes:{const J=S+w===0?7:6;return((g+J-1)%J*10+S)*60+w}case $.AddOneMinute:return(Math.min(5,g)*10+(S+1)%10)*60+w;case $.ReduceOneMinute:return(Math.min(5,g)*10+(S+10-1)%10)*60+w;case $.AddTenSeconds:return y*60+((X+1)%6*10+Z);case $.ReduceTenSeconds:return y*60+((X+6-1)%6*10+Z);case $.AddOneSecond:return y*60+(Math.min(5,X)*10+(Z+1)%10);case $.ReduceOneSecond:return y*60+(Math.min(5,X)*10+(Z+10-1)%10);default:return m}})},[_,e]);return E(()=>(n(e.isWritable),e.emitter.on("writableChange",n),()=>e.emitter.off("writableChange",n)),[e]),E(()=>{const b=m=>{m.countdownSecs&&r(t.state.countdownSecs),m.paused&&d(t.state.paused),m.startTime&&u(t.state.startTime)};return t.onStateChanged.addListener(b),()=>t.onStateChanged.removeListener(b)},[t]),E(()=>{e.isWritable&&t.setState({countdownSecs:i,paused:f,startTime:l})},[i,f,l,e]),v(_t,{readonly:!o,countdownSecs:i,startTime:l,paused:f,onAdjustTime:k,onStart:h,onPause:s,onResume:c,onReset:p})}),lt={kind:"Countdown",config:{minwidth:208,minheight:216},setup(e){const t=e.box;t.mountStyles(Ge);const o=e.createStorage("state",{countdownSecs:0,startTime:0,paused:!1});me(v(it,{context:e,storage:o}),t.$content),e.emitter.on("destroy",()=>{me(null,t.$content)})}};return K.default=lt,Object.defineProperties(K,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),K}({});
*/(function(e){(function(){var t={}.hasOwnProperty;function o(){for(var n=[],i=0;i<arguments.length;i++){var r=arguments[i];if(!!r){var l=typeof r;if(l==="string"||l==="number")n.push(r);else if(Array.isArray(r)){if(r.length){var u=o.apply(null,r);u&&n.push(u)}}else if(l==="object")if(r.toString===Object.prototype.toString)for(var f in r)t.call(r,f)&&r[f]&&n.push(f);else n.push(r.toString())}}return n.join(" ")}e.exports?(o.default=o,e.exports=o):window.classNames=o})()})(Fe);const Ie=Fe.exports,G=q(({digit:e,disabled:t,onUp:o,onDown:n})=>{const[i,r]=H(0),[l,u]=H(!1);return E(()=>{if(t){u(!0);const f=window.setTimeout(()=>{u(!1),r(e)},500);return()=>window.clearTimeout(f)}else r(e)},[e]),v("div",{class:Ie("time-cell",{disabled:t})},v("div",{class:"time-cell-up",onClick:t?void 0:o}),v("div",{class:"rotor"},v("div",{class:Ie("rotor-leaf",{flipped:l})},v("figure",{class:"rotor-leaf-rear"},e),v("figure",{class:"rotor-leaf-front"},i)),v("div",{class:"rotor-top"},e),v("div",{class:"rotor-bottom"},i)),v("div",{class:"time-cell-down",onClick:t?void 0:n}))});var $=(e=>(e[e.AddTenMinutes=0]="AddTenMinutes",e[e.ReduceTenMinutes=1]="ReduceTenMinutes",e[e.AddOneMinute=2]="AddOneMinute",e[e.ReduceOneMinute=3]="ReduceOneMinute",e[e.AddTenSeconds=4]="AddTenSeconds",e[e.ReduceTenSeconds=5]="ReduceTenSeconds",e[e.AddOneSecond=6]="AddOneSecond",e[e.ReduceOneSecond=7]="ReduceOneSecond",e))($||{});function Le(e){return $e(()=>(e=e%61,[Math.floor(e/10),e%10]),[e])}function P(e,t){return R(()=>e(t),[e])}const rt=q(({minutes:e,seconds:t,disabled:o,onAdjustTime:n})=>{const i=Le(e),r=Le(t),l=P(n,0),u=P(n,1),f=P(n,2),d=P(n,3),_=P(n,4),h=P(n,5),s=P(n,6),c=P(n,7);return v("div",{className:"countdown-clock"},v(G,{disabled:o,digit:i[0],onUp:l,onDown:u}),v(G,{digit:i[1],disabled:o,onUp:f,onDown:d}),v("div",{class:"countdown-clock-divider"}),v(G,{disabled:o,digit:r[0],onUp:_,onDown:h}),v(G,{digit:r[1],disabled:o,onUp:s,onDown:c}))}),_t=q(({readonly:e,countdownSecs:t,startTime:o,paused:n,onAdjustTime:i,onStart:r,onPause:l,onResume:u,onReset:f})=>{const[d,_]=H(0),h=o>0&&d>=o,s=t-(h?d-o:0),c=Math.floor(s/60),p=s-c*60;return E(()=>{let k=NaN;if(t>0&&o>0&&!n){const b=()=>{_(Math.floor(Date.now()/1e3)),k=window.requestAnimationFrame(b)};return b(),()=>window.cancelAnimationFrame(k)}else window.cancelAnimationFrame(k)},[o,n,t]),E(()=>{o>0&&d-o>=t&&f()},[d,o,t,f]),v("div",{class:"netless-app-countdown"},v("div",{class:"netless-app-countdown-shrink"},v(rt,{minutes:c,seconds:p,disabled:e||h,onAdjustTime:i}),v("div",{class:"netless-app-countdown-btns"},n?v(O,null,v("button",{onClick:f,disabled:e},"Reset"),v("button",{onClick:u,disabled:e},"Resume")):h?v("button",{onClick:l,disabled:e},"Pause"):v("button",{onClick:r,disabled:e||s<=0},"Start"))))}),it=q(({context:e,storage:t})=>{const[o,n]=H(()=>e.isWritable),[i,r]=H(t.state.countdownSecs),[l,u]=H(t.state.startTime),[f,d]=H(t.state.paused),_=l>0,h=R(()=>{e.isWritable&&(d(!1),u(Math.floor(Date.now()/1e3)))},[e]),s=R(()=>{e.isWritable&&d(!0)},[e]),c=R(()=>{e.isWritable&&d(!1)},[e]),p=R(()=>{e.isWritable&&(d(!1),r(0),u(0))},[e]),k=R(b=>{_||r(m=>{if(!e.isWritable)return m;const y=Math.floor(m/60),w=m-y*60,g=Math.floor(y/10),S=y%10,X=Math.floor(w/10),Z=w%10;switch(b){case $.AddTenMinutes:{const J=S+w===0?7:6;return((g+1)%J*10+S)*60+w}case $.ReduceTenMinutes:{const J=S+w===0?7:6;return((g+J-1)%J*10+S)*60+w}case $.AddOneMinute:return(Math.min(5,g)*10+(S+1)%10)*60+w;case $.ReduceOneMinute:return(Math.min(5,g)*10+(S+10-1)%10)*60+w;case $.AddTenSeconds:return y*60+((X+1)%6*10+Z);case $.ReduceTenSeconds:return y*60+((X+6-1)%6*10+Z);case $.AddOneSecond:return y*60+(Math.min(5,X)*10+(Z+1)%10);case $.ReduceOneSecond:return y*60+(Math.min(5,X)*10+(Z+10-1)%10);default:return m}})},[_,e]);return E(()=>(n(e.isWritable),e.emitter.on("writableChange",n),()=>e.emitter.off("writableChange",n)),[e]),E(()=>{const b=m=>{m.countdownSecs&&r(t.state.countdownSecs),m.paused&&d(t.state.paused),m.startTime&&u(t.state.startTime)};return t.on("stateChanged",b)},[t]),E(()=>{e.isWritable&&t.setState({countdownSecs:i,paused:f,startTime:l})},[i,f,l,e]),v(_t,{readonly:!o,countdownSecs:i,startTime:l,paused:f,onAdjustTime:k,onStart:h,onPause:s,onResume:c,onReset:p})}),lt={kind:"Countdown",config:{minwidth:208,minheight:216},setup(e){const t=e.box;t.mountStyles(Ge);const o=e.createStorage("state",{countdownSecs:0,startTime:0,paused:!1});me(v(it,{context:e,storage:o}),t.$content),e.emitter.on("destroy",()=>{me(null,t.$content)})}};return K.default=lt,Object.defineProperties(K,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),K}({});
//# sourceMappingURL=main.iife.js.map

@@ -1,7 +0,7 @@

"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var X,u,Se,D,Me,te,z={},$e=[],Ie=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function P(e,t){for(var o in t)e[o]=t[o];return e}function Ce(e){var t=e.parentNode;t&&t.removeChild(e)}function v(e,t,o){var n,i,r,l={};for(r in t)r=="key"?n=t[r]:r=="ref"?i=t[r]:l[r]=t[r];if(arguments.length>2&&(l.children=arguments.length>3?X.call(arguments,2):o),typeof e=="function"&&e.defaultProps!=null)for(r in e.defaultProps)l[r]===void 0&&(l[r]=e.defaultProps[r]);return T(e,l,n,i,null)}function T(e,t,o,n,i){var r={type:e,props:t,key:o,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i==null?++Se:i};return i==null&&u.vnode!=null&&u.vnode(r),r}function H(e){return e.children}function $(e,t){this.props=e,this.context=t}function R(e,t){if(t==null)return e.__?R(e.__,e.__.__k.indexOf(e)+1):null;for(var o;t<e.__k.length;t++)if((o=e.__k[t])!=null&&o.__e!=null)return o.__e;return typeof e.type=="function"?R(e):null}function Pe(e){var t,o;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((o=e.__k[t])!=null&&o.__e!=null){e.__e=e.__c.base=o.__e;break}return Pe(e)}}function oe(e){(!e.__d&&(e.__d=!0)&&D.push(e)&&!V.__r++||te!==u.debounceRendering)&&((te=u.debounceRendering)||Me)(V)}function V(){for(var e;V.__r=D.length;)e=D.sort(function(t,o){return t.__v.__b-o.__v.__b}),D=[],e.some(function(t){var o,n,i,r,l,a;t.__d&&(l=(r=(o=t).__v).__e,(a=o.__P)&&(n=[],(i=P({},r)).__v=r.__v+1,j(a,r,i,o.__n,a.ownerSVGElement!==void 0,r.__h!=null?[l]:null,n,l==null?R(r):l,r.__h),Ee(n,r),r.__e!=l&&Pe(r)))})}function Oe(e,t,o,n,i,r,l,a,f,d){var _,h,s,c,p,k,b,m=n&&n.__k||$e,y=m.length;for(o.__k=[],_=0;_<t.length;_++)if((c=o.__k[_]=(c=t[_])==null||typeof c=="boolean"?null:typeof c=="string"||typeof c=="number"||typeof c=="bigint"?T(null,c,null,null,c):Array.isArray(c)?T(H,{children:c},null,null,null):c.__b>0?T(c.type,c.props,c.key,null,c.__v):c)!=null){if(c.__=o,c.__b=o.__b+1,(s=m[_])===null||s&&c.key==s.key&&c.type===s.type)m[_]=void 0;else for(h=0;h<y;h++){if((s=m[h])&&c.key==s.key&&c.type===s.type){m[h]=void 0;break}s=null}j(e,c,s=s||z,i,r,l,a,f,d),p=c.__e,(h=c.ref)&&s.ref!=h&&(b||(b=[]),s.ref&&b.push(s.ref,null,c),b.push(h,c.__c||p,c)),p!=null?(k==null&&(k=p),typeof c.type=="function"&&c.__k===s.__k?c.__d=f=He(c,f,e):f=Ne(e,c,s,m,p,f),typeof o.type=="function"&&(o.__d=f)):f&&s.__e==f&&f.parentNode!=e&&(f=R(s))}for(o.__e=k,_=y;_--;)m[_]!=null&&(typeof o.type=="function"&&m[_].__e!=null&&m[_].__e==o.__d&&(o.__d=R(n,_+1)),De(m[_],m[_]));if(b)for(_=0;_<b.length;_++)Re(b[_],b[++_],b[++_])}function He(e,t,o){for(var n,i=e.__k,r=0;i&&r<i.length;r++)(n=i[r])&&(n.__=e,t=typeof n.type=="function"?He(n,t,o):Ne(o,n,n,i,n.__e,t));return t}function q(e,t){return t=t||[],e==null||typeof e=="boolean"||(Array.isArray(e)?e.some(function(o){q(o,t)}):t.push(e)),t}function Ne(e,t,o,n,i,r){var l,a,f;if(t.__d!==void 0)l=t.__d,t.__d=void 0;else if(o==null||i!=r||i.parentNode==null)e:if(r==null||r.parentNode!==e)e.appendChild(i),l=null;else{for(a=r,f=0;(a=a.nextSibling)&&f<n.length;f+=2)if(a==i)break e;e.insertBefore(i,r),l=r}return l!==void 0?l:i.nextSibling}function ze(e,t,o,n,i){var r;for(r in o)r==="children"||r==="key"||r in t||B(e,r,null,o[r],n);for(r in t)i&&typeof t[r]!="function"||r==="children"||r==="key"||r==="value"||r==="checked"||o[r]===t[r]||B(e,r,t[r],o[r],n)}function ne(e,t,o){t[0]==="-"?e.setProperty(t,o):e[t]=o==null?"":typeof o!="number"||Ie.test(t)?o:o+"px"}function B(e,t,o,n,i){var r;e:if(t==="style")if(typeof o=="string")e.style.cssText=o;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)o&&t in o||ne(e.style,t,"");if(o)for(t in o)n&&o[t]===n[t]||ne(e.style,t,o[t])}else if(t[0]==="o"&&t[1]==="n")r=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+r]=o,o?n||e.addEventListener(t,r?_e:re,r):e.removeEventListener(t,r?_e:re,r);else if(t!=="dangerouslySetInnerHTML"){if(i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t in e)try{e[t]=o==null?"":o;break e}catch{}typeof o=="function"||(o!=null&&(o!==!1||t[0]==="a"&&t[1]==="r")?e.setAttribute(t,o):e.removeAttribute(t))}}function re(e){this.l[e.type+!1](u.event?u.event(e):e)}function _e(e){this.l[e.type+!0](u.event?u.event(e):e)}function j(e,t,o,n,i,r,l,a,f){var d,_,h,s,c,p,k,b,m,y,w,g=t.type;if(t.constructor!==void 0)return null;o.__h!=null&&(f=o.__h,a=t.__e=o.__e,t.__h=null,r=[a]),(d=u.__b)&&d(t);try{e:if(typeof g=="function"){if(b=t.props,m=(d=g.contextType)&&n[d.__c],y=d?m?m.props.value:d.__:n,o.__c?k=(_=t.__c=o.__c).__=_.__E:("prototype"in g&&g.prototype.render?t.__c=_=new g(b,y):(t.__c=_=new $(b,y),_.constructor=g,_.render=qe),m&&m.sub(_),_.props=b,_.state||(_.state={}),_.context=y,_.__n=n,h=_.__d=!0,_.__h=[]),_.__s==null&&(_.__s=_.state),g.getDerivedStateFromProps!=null&&(_.__s==_.state&&(_.__s=P({},_.__s)),P(_.__s,g.getDerivedStateFromProps(b,_.__s))),s=_.props,c=_.state,h)g.getDerivedStateFromProps==null&&_.componentWillMount!=null&&_.componentWillMount(),_.componentDidMount!=null&&_.__h.push(_.componentDidMount);else{if(g.getDerivedStateFromProps==null&&b!==s&&_.componentWillReceiveProps!=null&&_.componentWillReceiveProps(b,y),!_.__e&&_.shouldComponentUpdate!=null&&_.shouldComponentUpdate(b,_.__s,y)===!1||t.__v===o.__v){_.props=b,_.state=_.__s,t.__v!==o.__v&&(_.__d=!1),_.__v=t,t.__e=o.__e,t.__k=o.__k,t.__k.forEach(function(S){S&&(S.__=t)}),_.__h.length&&l.push(_);break e}_.componentWillUpdate!=null&&_.componentWillUpdate(b,_.__s,y),_.componentDidUpdate!=null&&_.__h.push(function(){_.componentDidUpdate(s,c,p)})}_.context=y,_.props=b,_.state=_.__s,(d=u.__r)&&d(t),_.__d=!1,_.__v=t,_.__P=e,d=_.render(_.props,_.state,_.context),_.state=_.__s,_.getChildContext!=null&&(n=P(P({},n),_.getChildContext())),h||_.getSnapshotBeforeUpdate==null||(p=_.getSnapshotBeforeUpdate(s,c)),w=d!=null&&d.type===H&&d.key==null?d.props.children:d,Oe(e,Array.isArray(w)?w:[w],t,o,n,i,r,l,a,f),_.base=t.__e,t.__h=null,_.__h.length&&l.push(_),k&&(_.__E=_.__=null),_.__e=!1}else r==null&&t.__v===o.__v?(t.__k=o.__k,t.__e=o.__e):t.__e=Ve(o.__e,t,o,n,i,r,l,f);(d=u.diffed)&&d(t)}catch(S){t.__v=null,(f||r!=null)&&(t.__e=a,t.__h=!!f,r[r.indexOf(a)]=null),u.__e(S,t,o)}}function Ee(e,t){u.__c&&u.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(n){n.call(o)})}catch(n){u.__e(n,o.__v)}})}function Ve(e,t,o,n,i,r,l,a){var f,d,_,h=o.props,s=t.props,c=t.type,p=0;if(c==="svg"&&(i=!0),r!=null){for(;p<r.length;p++)if((f=r[p])&&"setAttribute"in f==!!c&&(c?f.localName===c:f.nodeType===3)){e=f,r[p]=null;break}}if(e==null){if(c===null)return document.createTextNode(s);e=i?document.createElementNS("http://www.w3.org/2000/svg",c):document.createElement(c,s.is&&s),r=null,a=!1}if(c===null)h===s||a&&e.data===s||(e.data=s);else{if(r=r&&X.call(e.childNodes),d=(h=o.props||z).dangerouslySetInnerHTML,_=s.dangerouslySetInnerHTML,!a){if(r!=null)for(h={},p=0;p<e.attributes.length;p++)h[e.attributes[p].name]=e.attributes[p].value;(_||d)&&(_&&(d&&_.__html==d.__html||_.__html===e.innerHTML)||(e.innerHTML=_&&_.__html||""))}if(ze(e,s,h,i,a),_)t.__k=[];else if(p=t.props.children,Oe(e,Array.isArray(p)?p:[p],t,o,n,i&&c!=="foreignObject",r,l,r?r[0]:o.__k&&R(o,0),a),r!=null)for(p=r.length;p--;)r[p]!=null&&Ce(r[p]);a||("value"in s&&(p=s.value)!==void 0&&(p!==e.value||c==="progress"&&!p||c==="option"&&p!==h.value)&&B(e,"value",p,h.value,!1),"checked"in s&&(p=s.checked)!==void 0&&p!==e.checked&&B(e,"checked",p,h.checked,!1))}return e}function Re(e,t,o){try{typeof e=="function"?e(t):e.current=t}catch(n){u.__e(n,o)}}function De(e,t,o){var n,i;if(u.unmount&&u.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||Re(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(r){u.__e(r,t)}n.base=n.__P=null}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&De(n[i],t,typeof e.type!="function");o||e.__e==null||Ce(e.__e),e.__e=e.__d=void 0}function qe(e,t,o){return this.constructor(e,o)}function ie(e,t,o){var n,i,r;u.__&&u.__(e,t),i=(n=typeof o=="function")?null:o&&o.__k||t.__k,r=[],j(t,e=(!n&&o||t).__k=v(H,null,[e]),i||z,z,t.ownerSVGElement!==void 0,!n&&o?[o]:i?null:t.firstChild?X.call(t.childNodes):null,r,!n&&o?o:i?i.__e:t.firstChild,n),Ee(r,e)}X=$e.slice,u={__e:function(e,t,o,n){for(var i,r,l;t=t.__;)if((i=t.__c)&&!i.__)try{if((r=i.constructor)&&r.getDerivedStateFromError!=null&&(i.setState(r.getDerivedStateFromError(e)),l=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,n||{}),l=i.__d),l)return i.__E=i}catch(a){e=a}throw e}},Se=0,$.prototype.setState=function(e,t){var o;o=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=P({},this.state),typeof e=="function"&&(e=e(P({},o),this.props)),e&&P(o,e),e!=null&&this.__v&&(t&&this.__h.push(t),oe(this))},$.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),oe(this))},$.prototype.render=H,D=[],Me=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,V.__r=0;const Be=`.time-cell{display:flex;flex-flow:column nowrap;align-items:center;font-family:sans-serif;font-weight:700}.time-cell.disabled .time-cell-up:before,.time-cell.disabled .time-cell-down:after{border-top-color:#0000000d;border-bottom-color:#0000000d}.time-cell-up:before,.time-cell-down:after{content:"";display:block;width:0;height:0;margin:0 0 4px;border-top:0;border-left:12px solid transparent;border-right:12px solid transparent;border-bottom:12px solid #151515;transition:border-color .4s;cursor:pointer}.time-cell-down:after{margin:4px 0 0;border-top:12px solid #151515;border-bottom:0}.rotor{position:relative;width:36px;height:64px;border-radius:4px;font-size:48px;text-align:center;perspective:200px}.rotor-top,.rotor-bottom{overflow:hidden;position:absolute;width:36px;height:32px}.rotor-leaf{z-index:1;position:absolute;width:36px;height:64px;transform-style:preserve-3d;transition:transform 0s}.rotor-leaf.flipped{transform:rotateX(-180deg);transition:all .5s ease-in-out}.rotor-leaf-front,.rotor-leaf-rear{overflow:hidden;position:absolute;width:36px;height:32px;margin:0;transform:rotateX(0);backface-visibility:hidden;-webkit-backface-visibility:hidden}.rotor-leaf-front{line-height:64px;border-radius:4px 4px 0 0}.rotor-leaf-rear{line-height:0px;border-radius:0 0 4px 4px;transform:rotateX(-180deg)}.rotor-top{line-height:64px;border-radius:4px 4px 0 0}.rotor-bottom{bottom:0;line-height:0px;border-radius:0 0 4px 4px}.rotor:after{content:"";z-index:2;position:absolute;bottom:0px;left:0px;width:36px;height:32px;border-radius:0 0 4px 4px}.rotor,.rotor-top,.rotor-leaf-front{color:#fff;background-color:#151515}.rotor-bottom,.rotor-leaf-rear{color:#efefef;background-color:#202020}.rotor:after{border-top:solid 1px #151515}.telebox-color-scheme-dark .time-cell.disabled .time-cell-up:before,.telebox-color-scheme-dark .time-cell.disabled .time-cell-down:after{border-top-color:#ffffff14;border-bottom-color:#ffffff14}.telebox-color-scheme-dark .time-cell-up:before,.telebox-color-scheme-dark .time-cell-down:after{border-top-color:#d9d9df;border-bottom-color:#d9d9df}.telebox-color-scheme-dark .rotor,.telebox-color-scheme-dark .rotor-top,.telebox-color-scheme-dark .rotor-leaf-front{color:#383838;background-color:#efeff5}.telebox-color-scheme-dark .rotor-bottom,.telebox-color-scheme-dark .rotor-leaf-rear{color:#333;background-color:#eeecec}.telebox-color-scheme-dark .rotor:after{border-top:solid 1px #efeff5}.countdown-clock{display:flex;padding:5px}.countdown-clock>*{padding:0 5px}.countdown-clock-divider{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:0 1px}.countdown-clock-divider:before,.countdown-clock-divider:after{content:"";display:block;width:8px;height:8px;margin:6px 0;background-color:#000;border-radius:50%}.netless-app-countdown{width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;transition:background-color .4s}.netless-app-countdown-shrink{display:inline-block;transition:background-color .4s}.netless-app-countdown-btns{width:100%;margin-top:10px;display:flex;flex-wrap:nowrap}.netless-app-countdown-btns>button{flex:1;display:block;margin:0 10px 0 0;padding:5px 10px;text-align:center;border:0;border-radius:4px;color:#fff;background-color:#3380ff;transition:background-color .4s,color .4s;cursor:pointer}.netless-app-countdown-btns>button:last-of-type{margin:0}.netless-app-countdown-btns>button:disabled{color:#00000040;background:#f5f5f5;cursor:not-allowed}.telebox-color-scheme-dark .netless-app-countdown-btns>button:disabled{color:#ffffff4d;background:rgba(255,255,255,.08)}
`;var Z,x,le,G=0,Ue=[],ce=u.__b,se=u.__r,ae=u.diffed,ue=u.__c,fe=u.unmount;function ee(e,t){u.__h&&u.__h(x,e,G||t),G=0;var o=x.__H||(x.__H={__:[],__h:[]});return e>=o.__.length&&o.__.push({}),o.__[e]}function O(e){return G=1,Ge(Fe,e)}function Ge(e,t,o){var n=ee(Z++,2);return n.t=e,n.__c||(n.__=[o?o(t):Fe(void 0,t),function(i){var r=n.t(n.__[0],i);n.__[0]!==r&&(n.__=[r,n.__[1]],n.__c.setState({}))}],n.__c=x),n.__}function E(e,t){var o=ee(Z++,3);!u.__s&&We(o.__H,t)&&(o.__=e,o.__H=t,x.__H.__h.push(o))}function Ae(e,t){var o=ee(Z++,7);return We(o.__H,t)&&(o.__=e(),o.__H=t,o.__h=e),o.__}function N(e,t){return G=8,Ae(function(){return e},t)}function Xe(){for(var e;e=Ue.shift();)if(e.__P)try{e.__H.__h.forEach(I),e.__H.__h.forEach(Q),e.__H.__h=[]}catch(t){e.__H.__h=[],u.__e(t,e.__v)}}u.__b=function(e){x=null,ce&&ce(e)},u.__r=function(e){se&&se(e),Z=0;var t=(x=e.__c).__H;t&&(t.__h.forEach(I),t.__h.forEach(Q),t.__h=[])},u.diffed=function(e){ae&&ae(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(Ue.push(t)!==1&&le===u.requestAnimationFrame||((le=u.requestAnimationFrame)||function(o){var n,i=function(){clearTimeout(r),de&&cancelAnimationFrame(n),setTimeout(o)},r=setTimeout(i,100);de&&(n=requestAnimationFrame(i))})(Xe)),x=null},u.__c=function(e,t){t.some(function(o){try{o.__h.forEach(I),o.__h=o.__h.filter(function(n){return!n.__||Q(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],u.__e(n,o.__v)}}),ue&&ue(e,t)},u.unmount=function(e){fe&&fe(e);var t,o=e.__c;o&&o.__H&&(o.__H.__.forEach(function(n){try{I(n)}catch(i){t=i}}),t&&u.__e(t,o.__v))};var de=typeof requestAnimationFrame=="function";function I(e){var t=x,o=e.__c;typeof o=="function"&&(e.__c=void 0,o()),x=t}function Q(e){var t=x;e.__c=e.__(),x=t}function We(e,t){return!e||e.length!==t.length||t.some(function(o,n){return o!==e[n]})}function Fe(e,t){return typeof t=="function"?t(e):t}function Ze(e,t){for(var o in t)e[o]=t[o];return e}function Y(e,t){for(var o in e)if(o!=="__source"&&!(o in t))return!0;for(var n in t)if(n!=="__source"&&e[n]!==t[n])return!0;return!1}function pe(e){this.props=e}function J(e,t){function o(i){var r=this.props.ref,l=r==i.ref;return!l&&r&&(r.call?r(null):r.current=null),t?!t(this.props,i)||!l:Y(this.props,i)}function n(i){return this.shouldComponentUpdate=o,v(e,i)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}(pe.prototype=new $).isPureReactComponent=!0,pe.prototype.shouldComponentUpdate=function(e,t){return Y(this.props,e)||Y(this.state,t)};var he=u.__b;u.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),he&&he(e)};var Je=u.__e;u.__e=function(e,t,o,n){if(e.then){for(var i,r=t;r=r.__;)if((i=r.__c)&&i.__c)return t.__e==null&&(t.__e=o.__e,t.__k=o.__k),i.__c(e,t)}Je(e,t,o,n)};var ve=u.unmount;function K(){this.__u=0,this.t=null,this.__b=null}function Le(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function F(){this.u=null,this.o=null}u.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),ve&&ve(e)},(K.prototype=new $).__c=function(e,t){var o=t.__c,n=this;n.t==null&&(n.t=[]),n.t.push(o);var i=Le(n.__v),r=!1,l=function(){r||(r=!0,o.__R=null,i?i(a):a())};o.__R=l;var a=function(){if(!--n.__u){if(n.state.__e){var d=n.state.__e;n.__v.__k[0]=function h(s,c,p){return s&&(s.__v=null,s.__k=s.__k&&s.__k.map(function(k){return h(k,c,p)}),s.__c&&s.__c.__P===c&&(s.__e&&p.insertBefore(s.__e,s.__d),s.__c.__e=!0,s.__c.__P=p)),s}(d,d.__c.__P,d.__c.__O)}var _;for(n.setState({__e:n.__b=null});_=n.t.pop();)_.forceUpdate()}},f=t.__h===!0;n.__u++||f||n.setState({__e:n.__b=n.__v.__k[0]}),e.then(l,l)},K.prototype.componentWillUnmount=function(){this.t=[]},K.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var o=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=function r(l,a,f){return l&&(l.__c&&l.__c.__H&&(l.__c.__H.__.forEach(function(d){typeof d.__c=="function"&&d.__c()}),l.__c.__H=null),(l=Ze({},l)).__c!=null&&(l.__c.__P===f&&(l.__c.__P=a),l.__c=null),l.__k=l.__k&&l.__k.map(function(d){return r(d,a,f)})),l}(this.__b,o,n.__O=n.__P)}this.__b=null}var i=t.__e&&v(H,null,e.fallback);return i&&(i.__h=null),[v(H,null,t.__e?null:e.children),i]};var be=function(e,t,o){if(++o[1]===o[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(o=e.u;o;){for(;o.length>3;)o.pop()();if(o[1]<o[0])break;e.u=o=o[2]}};(F.prototype=new $).__e=function(e){var t=this,o=Le(t.__v),n=t.o.get(e);return n[0]++,function(i){var r=function(){t.props.revealOrder?(n.push(i),be(t,e,n)):i()};o?o(r):r()}},F.prototype.render=function(e){this.u=null,this.o=new Map;var t=q(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var o=t.length;o--;)this.o.set(t[o],this.u=[1,0,this.u]);return e.children},F.prototype.componentDidUpdate=F.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,o){be(e,o,t)})};var Ke=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Qe=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Ye=typeof document<"u",je=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(e)};$.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty($.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var me=u.event;function et(){}function tt(){return this.cancelBubble}function ot(){return this.defaultPrevented}u.event=function(e){return me&&(e=me(e)),e.persist=et,e.isPropagationStopped=tt,e.isDefaultPrevented=ot,e.nativeEvent=e};var ye={configurable:!0,get:function(){return this.class}},ge=u.vnode;u.vnode=function(e){var t=e.type,o=e.props,n=o;if(typeof t=="string"){var i=t.indexOf("-")===-1;for(var r in n={},o){var l=o[r];Ye&&r==="children"&&t==="noscript"||r==="value"&&"defaultValue"in o&&l==null||(r==="defaultValue"&&"value"in o&&o.value==null?r="value":r==="download"&&l===!0?l="":/ondoubleclick/i.test(r)?r="ondblclick":/^onchange(textarea|input)/i.test(r+t)&&!je(o.type)?r="oninput":/^onfocus$/i.test(r)?r="onfocusin":/^onblur$/i.test(r)?r="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(r)?r=r.toLowerCase():i&&Qe.test(r)?r=r.replace(/[A-Z0-9]/,"-$&").toLowerCase():l===null&&(l=void 0),n[r]=l)}t=="select"&&n.multiple&&Array.isArray(n.value)&&(n.value=q(o.children).forEach(function(a){a.props.selected=n.value.indexOf(a.props.value)!=-1})),t=="select"&&n.defaultValue!=null&&(n.value=q(o.children).forEach(function(a){a.props.selected=n.multiple?n.defaultValue.indexOf(a.props.value)!=-1:n.defaultValue==a.props.value})),e.props=n,o.class!=o.className&&(ye.enumerable="className"in o,o.className!=null&&(n.class=o.className),Object.defineProperty(n,"className",ye))}e.$$typeof=Ke,ge&&ge(e)};var ke=u.__r;u.__r=function(e){ke&&ke(e),e.__c};var Te={exports:{}};/*!
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var X,u,Se,D,Me,te,z={},$e=[],Ie=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function P(e,t){for(var o in t)e[o]=t[o];return e}function Ce(e){var t=e.parentNode;t&&t.removeChild(e)}function v(e,t,o){var n,i,r,l={};for(r in t)r=="key"?n=t[r]:r=="ref"?i=t[r]:l[r]=t[r];if(arguments.length>2&&(l.children=arguments.length>3?X.call(arguments,2):o),typeof e=="function"&&e.defaultProps!=null)for(r in e.defaultProps)l[r]===void 0&&(l[r]=e.defaultProps[r]);return L(e,l,n,i,null)}function L(e,t,o,n,i){var r={type:e,props:t,key:o,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i==null?++Se:i};return i==null&&u.vnode!=null&&u.vnode(r),r}function H(e){return e.children}function $(e,t){this.props=e,this.context=t}function R(e,t){if(t==null)return e.__?R(e.__,e.__.__k.indexOf(e)+1):null;for(var o;t<e.__k.length;t++)if((o=e.__k[t])!=null&&o.__e!=null)return o.__e;return typeof e.type=="function"?R(e):null}function Pe(e){var t,o;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((o=e.__k[t])!=null&&o.__e!=null){e.__e=e.__c.base=o.__e;break}return Pe(e)}}function oe(e){(!e.__d&&(e.__d=!0)&&D.push(e)&&!V.__r++||te!==u.debounceRendering)&&((te=u.debounceRendering)||Me)(V)}function V(){for(var e;V.__r=D.length;)e=D.sort(function(t,o){return t.__v.__b-o.__v.__b}),D=[],e.some(function(t){var o,n,i,r,l,a;t.__d&&(l=(r=(o=t).__v).__e,(a=o.__P)&&(n=[],(i=P({},r)).__v=r.__v+1,j(a,r,i,o.__n,a.ownerSVGElement!==void 0,r.__h!=null?[l]:null,n,l==null?R(r):l,r.__h),Ee(n,r),r.__e!=l&&Pe(r)))})}function Oe(e,t,o,n,i,r,l,a,f,d){var _,h,s,c,p,k,b,m=n&&n.__k||$e,y=m.length;for(o.__k=[],_=0;_<t.length;_++)if((c=o.__k[_]=(c=t[_])==null||typeof c=="boolean"?null:typeof c=="string"||typeof c=="number"||typeof c=="bigint"?L(null,c,null,null,c):Array.isArray(c)?L(H,{children:c},null,null,null):c.__b>0?L(c.type,c.props,c.key,null,c.__v):c)!=null){if(c.__=o,c.__b=o.__b+1,(s=m[_])===null||s&&c.key==s.key&&c.type===s.type)m[_]=void 0;else for(h=0;h<y;h++){if((s=m[h])&&c.key==s.key&&c.type===s.type){m[h]=void 0;break}s=null}j(e,c,s=s||z,i,r,l,a,f,d),p=c.__e,(h=c.ref)&&s.ref!=h&&(b||(b=[]),s.ref&&b.push(s.ref,null,c),b.push(h,c.__c||p,c)),p!=null?(k==null&&(k=p),typeof c.type=="function"&&c.__k===s.__k?c.__d=f=He(c,f,e):f=Ne(e,c,s,m,p,f),typeof o.type=="function"&&(o.__d=f)):f&&s.__e==f&&f.parentNode!=e&&(f=R(s))}for(o.__e=k,_=y;_--;)m[_]!=null&&(typeof o.type=="function"&&m[_].__e!=null&&m[_].__e==o.__d&&(o.__d=R(n,_+1)),De(m[_],m[_]));if(b)for(_=0;_<b.length;_++)Re(b[_],b[++_],b[++_])}function He(e,t,o){for(var n,i=e.__k,r=0;i&&r<i.length;r++)(n=i[r])&&(n.__=e,t=typeof n.type=="function"?He(n,t,o):Ne(o,n,n,i,n.__e,t));return t}function q(e,t){return t=t||[],e==null||typeof e=="boolean"||(Array.isArray(e)?e.some(function(o){q(o,t)}):t.push(e)),t}function Ne(e,t,o,n,i,r){var l,a,f;if(t.__d!==void 0)l=t.__d,t.__d=void 0;else if(o==null||i!=r||i.parentNode==null)e:if(r==null||r.parentNode!==e)e.appendChild(i),l=null;else{for(a=r,f=0;(a=a.nextSibling)&&f<n.length;f+=2)if(a==i)break e;e.insertBefore(i,r),l=r}return l!==void 0?l:i.nextSibling}function ze(e,t,o,n,i){var r;for(r in o)r==="children"||r==="key"||r in t||B(e,r,null,o[r],n);for(r in t)i&&typeof t[r]!="function"||r==="children"||r==="key"||r==="value"||r==="checked"||o[r]===t[r]||B(e,r,t[r],o[r],n)}function ne(e,t,o){t[0]==="-"?e.setProperty(t,o):e[t]=o==null?"":typeof o!="number"||Ie.test(t)?o:o+"px"}function B(e,t,o,n,i){var r;e:if(t==="style")if(typeof o=="string")e.style.cssText=o;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)o&&t in o||ne(e.style,t,"");if(o)for(t in o)n&&o[t]===n[t]||ne(e.style,t,o[t])}else if(t[0]==="o"&&t[1]==="n")r=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+r]=o,o?n||e.addEventListener(t,r?_e:re,r):e.removeEventListener(t,r?_e:re,r);else if(t!=="dangerouslySetInnerHTML"){if(i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t in e)try{e[t]=o==null?"":o;break e}catch{}typeof o=="function"||(o!=null&&(o!==!1||t[0]==="a"&&t[1]==="r")?e.setAttribute(t,o):e.removeAttribute(t))}}function re(e){this.l[e.type+!1](u.event?u.event(e):e)}function _e(e){this.l[e.type+!0](u.event?u.event(e):e)}function j(e,t,o,n,i,r,l,a,f){var d,_,h,s,c,p,k,b,m,y,w,g=t.type;if(t.constructor!==void 0)return null;o.__h!=null&&(f=o.__h,a=t.__e=o.__e,t.__h=null,r=[a]),(d=u.__b)&&d(t);try{e:if(typeof g=="function"){if(b=t.props,m=(d=g.contextType)&&n[d.__c],y=d?m?m.props.value:d.__:n,o.__c?k=(_=t.__c=o.__c).__=_.__E:("prototype"in g&&g.prototype.render?t.__c=_=new g(b,y):(t.__c=_=new $(b,y),_.constructor=g,_.render=qe),m&&m.sub(_),_.props=b,_.state||(_.state={}),_.context=y,_.__n=n,h=_.__d=!0,_.__h=[]),_.__s==null&&(_.__s=_.state),g.getDerivedStateFromProps!=null&&(_.__s==_.state&&(_.__s=P({},_.__s)),P(_.__s,g.getDerivedStateFromProps(b,_.__s))),s=_.props,c=_.state,h)g.getDerivedStateFromProps==null&&_.componentWillMount!=null&&_.componentWillMount(),_.componentDidMount!=null&&_.__h.push(_.componentDidMount);else{if(g.getDerivedStateFromProps==null&&b!==s&&_.componentWillReceiveProps!=null&&_.componentWillReceiveProps(b,y),!_.__e&&_.shouldComponentUpdate!=null&&_.shouldComponentUpdate(b,_.__s,y)===!1||t.__v===o.__v){_.props=b,_.state=_.__s,t.__v!==o.__v&&(_.__d=!1),_.__v=t,t.__e=o.__e,t.__k=o.__k,t.__k.forEach(function(S){S&&(S.__=t)}),_.__h.length&&l.push(_);break e}_.componentWillUpdate!=null&&_.componentWillUpdate(b,_.__s,y),_.componentDidUpdate!=null&&_.__h.push(function(){_.componentDidUpdate(s,c,p)})}_.context=y,_.props=b,_.state=_.__s,(d=u.__r)&&d(t),_.__d=!1,_.__v=t,_.__P=e,d=_.render(_.props,_.state,_.context),_.state=_.__s,_.getChildContext!=null&&(n=P(P({},n),_.getChildContext())),h||_.getSnapshotBeforeUpdate==null||(p=_.getSnapshotBeforeUpdate(s,c)),w=d!=null&&d.type===H&&d.key==null?d.props.children:d,Oe(e,Array.isArray(w)?w:[w],t,o,n,i,r,l,a,f),_.base=t.__e,t.__h=null,_.__h.length&&l.push(_),k&&(_.__E=_.__=null),_.__e=!1}else r==null&&t.__v===o.__v?(t.__k=o.__k,t.__e=o.__e):t.__e=Ve(o.__e,t,o,n,i,r,l,f);(d=u.diffed)&&d(t)}catch(S){t.__v=null,(f||r!=null)&&(t.__e=a,t.__h=!!f,r[r.indexOf(a)]=null),u.__e(S,t,o)}}function Ee(e,t){u.__c&&u.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(n){n.call(o)})}catch(n){u.__e(n,o.__v)}})}function Ve(e,t,o,n,i,r,l,a){var f,d,_,h=o.props,s=t.props,c=t.type,p=0;if(c==="svg"&&(i=!0),r!=null){for(;p<r.length;p++)if((f=r[p])&&"setAttribute"in f==!!c&&(c?f.localName===c:f.nodeType===3)){e=f,r[p]=null;break}}if(e==null){if(c===null)return document.createTextNode(s);e=i?document.createElementNS("http://www.w3.org/2000/svg",c):document.createElement(c,s.is&&s),r=null,a=!1}if(c===null)h===s||a&&e.data===s||(e.data=s);else{if(r=r&&X.call(e.childNodes),d=(h=o.props||z).dangerouslySetInnerHTML,_=s.dangerouslySetInnerHTML,!a){if(r!=null)for(h={},p=0;p<e.attributes.length;p++)h[e.attributes[p].name]=e.attributes[p].value;(_||d)&&(_&&(d&&_.__html==d.__html||_.__html===e.innerHTML)||(e.innerHTML=_&&_.__html||""))}if(ze(e,s,h,i,a),_)t.__k=[];else if(p=t.props.children,Oe(e,Array.isArray(p)?p:[p],t,o,n,i&&c!=="foreignObject",r,l,r?r[0]:o.__k&&R(o,0),a),r!=null)for(p=r.length;p--;)r[p]!=null&&Ce(r[p]);a||("value"in s&&(p=s.value)!==void 0&&(p!==e.value||c==="progress"&&!p||c==="option"&&p!==h.value)&&B(e,"value",p,h.value,!1),"checked"in s&&(p=s.checked)!==void 0&&p!==e.checked&&B(e,"checked",p,h.checked,!1))}return e}function Re(e,t,o){try{typeof e=="function"?e(t):e.current=t}catch(n){u.__e(n,o)}}function De(e,t,o){var n,i;if(u.unmount&&u.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||Re(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(r){u.__e(r,t)}n.base=n.__P=null}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&De(n[i],t,typeof e.type!="function");o||e.__e==null||Ce(e.__e),e.__e=e.__d=void 0}function qe(e,t,o){return this.constructor(e,o)}function ie(e,t,o){var n,i,r;u.__&&u.__(e,t),i=(n=typeof o=="function")?null:o&&o.__k||t.__k,r=[],j(t,e=(!n&&o||t).__k=v(H,null,[e]),i||z,z,t.ownerSVGElement!==void 0,!n&&o?[o]:i?null:t.firstChild?X.call(t.childNodes):null,r,!n&&o?o:i?i.__e:t.firstChild,n),Ee(r,e)}X=$e.slice,u={__e:function(e,t,o,n){for(var i,r,l;t=t.__;)if((i=t.__c)&&!i.__)try{if((r=i.constructor)&&r.getDerivedStateFromError!=null&&(i.setState(r.getDerivedStateFromError(e)),l=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,n||{}),l=i.__d),l)return i.__E=i}catch(a){e=a}throw e}},Se=0,$.prototype.setState=function(e,t){var o;o=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=P({},this.state),typeof e=="function"&&(e=e(P({},o),this.props)),e&&P(o,e),e!=null&&this.__v&&(t&&this.__h.push(t),oe(this))},$.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),oe(this))},$.prototype.render=H,D=[],Me=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,V.__r=0;const Be=`.time-cell{display:flex;flex-flow:column nowrap;align-items:center;font-family:sans-serif;font-weight:700}.time-cell.disabled .time-cell-up:before,.time-cell.disabled .time-cell-down:after{border-top-color:#0000000d;border-bottom-color:#0000000d}.time-cell-up:before,.time-cell-down:after{content:"";display:block;width:0;height:0;margin:0 0 4px;border-top:0;border-left:12px solid transparent;border-right:12px solid transparent;border-bottom:12px solid #151515;transition:border-color .4s;cursor:pointer}.time-cell-down:after{margin:4px 0 0;border-top:12px solid #151515;border-bottom:0}.rotor{position:relative;width:36px;height:64px;border-radius:4px;font-size:48px;text-align:center;perspective:200px}.rotor-top,.rotor-bottom{overflow:hidden;position:absolute;width:36px;height:32px}.rotor-leaf{z-index:1;position:absolute;width:36px;height:64px;transform-style:preserve-3d;transition:transform 0s}.rotor-leaf.flipped{transform:rotateX(-180deg);transition:all .5s ease-in-out}.rotor-leaf-front,.rotor-leaf-rear{overflow:hidden;position:absolute;width:36px;height:32px;margin:0;transform:rotateX(0);backface-visibility:hidden;-webkit-backface-visibility:hidden}.rotor-leaf-front{line-height:64px;border-radius:4px 4px 0 0}.rotor-leaf-rear{line-height:0px;border-radius:0 0 4px 4px;transform:rotateX(-180deg)}.rotor-top{line-height:64px;border-radius:4px 4px 0 0}.rotor-bottom{bottom:0;line-height:0px;border-radius:0 0 4px 4px}.rotor:after{content:"";z-index:2;position:absolute;bottom:0px;left:0px;width:36px;height:32px;border-radius:0 0 4px 4px}.rotor,.rotor-top,.rotor-leaf-front{color:#fff;background-color:#151515}.rotor-bottom,.rotor-leaf-rear{color:#efefef;background-color:#202020}.rotor:after{border-top:solid 1px #151515}.telebox-color-scheme-dark .time-cell.disabled .time-cell-up:before,.telebox-color-scheme-dark .time-cell.disabled .time-cell-down:after{border-top-color:#ffffff14;border-bottom-color:#ffffff14}.telebox-color-scheme-dark .time-cell-up:before,.telebox-color-scheme-dark .time-cell-down:after{border-top-color:#d9d9df;border-bottom-color:#d9d9df}.telebox-color-scheme-dark .rotor,.telebox-color-scheme-dark .rotor-top,.telebox-color-scheme-dark .rotor-leaf-front{color:#383838;background-color:#efeff5}.telebox-color-scheme-dark .rotor-bottom,.telebox-color-scheme-dark .rotor-leaf-rear{color:#333;background-color:#eeecec}.telebox-color-scheme-dark .rotor:after{border-top:solid 1px #efeff5}.countdown-clock{display:flex;padding:5px}.countdown-clock>*{padding:0 5px}.countdown-clock-divider{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:0 1px}.countdown-clock-divider:before,.countdown-clock-divider:after{content:"";display:block;width:8px;height:8px;margin:6px 0;background-color:#000;border-radius:50%}.netless-app-countdown{width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;transition:background-color .4s}.netless-app-countdown-shrink{display:inline-block;transition:background-color .4s}.netless-app-countdown-btns{width:100%;margin-top:10px;display:flex;flex-wrap:nowrap}.netless-app-countdown-btns>button{flex:1;display:block;margin:0 10px 0 0;padding:5px 10px;text-align:center;border:0;border-radius:4px;color:#fff;background-color:#3380ff;transition:background-color .4s,color .4s;cursor:pointer}.netless-app-countdown-btns>button:last-of-type{margin:0}.netless-app-countdown-btns>button:disabled{color:#00000040;background:#f5f5f5;cursor:not-allowed}.telebox-color-scheme-dark .netless-app-countdown-btns>button:disabled{color:#ffffff4d;background:rgba(255,255,255,.08)}
`;var Z,x,le,G=0,Ue=[],ce=u.__b,se=u.__r,ae=u.diffed,ue=u.__c,fe=u.unmount;function ee(e,t){u.__h&&u.__h(x,e,G||t),G=0;var o=x.__H||(x.__H={__:[],__h:[]});return e>=o.__.length&&o.__.push({}),o.__[e]}function O(e){return G=1,Ge(Fe,e)}function Ge(e,t,o){var n=ee(Z++,2);return n.t=e,n.__c||(n.__=[o?o(t):Fe(void 0,t),function(i){var r=n.t(n.__[0],i);n.__[0]!==r&&(n.__=[r,n.__[1]],n.__c.setState({}))}],n.__c=x),n.__}function E(e,t){var o=ee(Z++,3);!u.__s&&We(o.__H,t)&&(o.__=e,o.__H=t,x.__H.__h.push(o))}function Ae(e,t){var o=ee(Z++,7);return We(o.__H,t)&&(o.__=e(),o.__H=t,o.__h=e),o.__}function N(e,t){return G=8,Ae(function(){return e},t)}function Xe(){for(var e;e=Ue.shift();)if(e.__P)try{e.__H.__h.forEach(I),e.__H.__h.forEach(Q),e.__H.__h=[]}catch(t){e.__H.__h=[],u.__e(t,e.__v)}}u.__b=function(e){x=null,ce&&ce(e)},u.__r=function(e){se&&se(e),Z=0;var t=(x=e.__c).__H;t&&(t.__h.forEach(I),t.__h.forEach(Q),t.__h=[])},u.diffed=function(e){ae&&ae(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(Ue.push(t)!==1&&le===u.requestAnimationFrame||((le=u.requestAnimationFrame)||function(o){var n,i=function(){clearTimeout(r),de&&cancelAnimationFrame(n),setTimeout(o)},r=setTimeout(i,100);de&&(n=requestAnimationFrame(i))})(Xe)),x=null},u.__c=function(e,t){t.some(function(o){try{o.__h.forEach(I),o.__h=o.__h.filter(function(n){return!n.__||Q(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],u.__e(n,o.__v)}}),ue&&ue(e,t)},u.unmount=function(e){fe&&fe(e);var t,o=e.__c;o&&o.__H&&(o.__H.__.forEach(function(n){try{I(n)}catch(i){t=i}}),t&&u.__e(t,o.__v))};var de=typeof requestAnimationFrame=="function";function I(e){var t=x,o=e.__c;typeof o=="function"&&(e.__c=void 0,o()),x=t}function Q(e){var t=x;e.__c=e.__(),x=t}function We(e,t){return!e||e.length!==t.length||t.some(function(o,n){return o!==e[n]})}function Fe(e,t){return typeof t=="function"?t(e):t}function Ze(e,t){for(var o in t)e[o]=t[o];return e}function Y(e,t){for(var o in e)if(o!=="__source"&&!(o in t))return!0;for(var n in t)if(n!=="__source"&&e[n]!==t[n])return!0;return!1}function pe(e){this.props=e}function J(e,t){function o(i){var r=this.props.ref,l=r==i.ref;return!l&&r&&(r.call?r(null):r.current=null),t?!t(this.props,i)||!l:Y(this.props,i)}function n(i){return this.shouldComponentUpdate=o,v(e,i)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}(pe.prototype=new $).isPureReactComponent=!0,pe.prototype.shouldComponentUpdate=function(e,t){return Y(this.props,e)||Y(this.state,t)};var he=u.__b;u.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),he&&he(e)};var Je=u.__e;u.__e=function(e,t,o,n){if(e.then){for(var i,r=t;r=r.__;)if((i=r.__c)&&i.__c)return t.__e==null&&(t.__e=o.__e,t.__k=o.__k),i.__c(e,t)}Je(e,t,o,n)};var ve=u.unmount;function K(){this.__u=0,this.t=null,this.__b=null}function Te(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function F(){this.u=null,this.o=null}u.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),ve&&ve(e)},(K.prototype=new $).__c=function(e,t){var o=t.__c,n=this;n.t==null&&(n.t=[]),n.t.push(o);var i=Te(n.__v),r=!1,l=function(){r||(r=!0,o.__R=null,i?i(a):a())};o.__R=l;var a=function(){if(!--n.__u){if(n.state.__e){var d=n.state.__e;n.__v.__k[0]=function h(s,c,p){return s&&(s.__v=null,s.__k=s.__k&&s.__k.map(function(k){return h(k,c,p)}),s.__c&&s.__c.__P===c&&(s.__e&&p.insertBefore(s.__e,s.__d),s.__c.__e=!0,s.__c.__P=p)),s}(d,d.__c.__P,d.__c.__O)}var _;for(n.setState({__e:n.__b=null});_=n.t.pop();)_.forceUpdate()}},f=t.__h===!0;n.__u++||f||n.setState({__e:n.__b=n.__v.__k[0]}),e.then(l,l)},K.prototype.componentWillUnmount=function(){this.t=[]},K.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var o=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=function r(l,a,f){return l&&(l.__c&&l.__c.__H&&(l.__c.__H.__.forEach(function(d){typeof d.__c=="function"&&d.__c()}),l.__c.__H=null),(l=Ze({},l)).__c!=null&&(l.__c.__P===f&&(l.__c.__P=a),l.__c=null),l.__k=l.__k&&l.__k.map(function(d){return r(d,a,f)})),l}(this.__b,o,n.__O=n.__P)}this.__b=null}var i=t.__e&&v(H,null,e.fallback);return i&&(i.__h=null),[v(H,null,t.__e?null:e.children),i]};var be=function(e,t,o){if(++o[1]===o[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(o=e.u;o;){for(;o.length>3;)o.pop()();if(o[1]<o[0])break;e.u=o=o[2]}};(F.prototype=new $).__e=function(e){var t=this,o=Te(t.__v),n=t.o.get(e);return n[0]++,function(i){var r=function(){t.props.revealOrder?(n.push(i),be(t,e,n)):i()};o?o(r):r()}},F.prototype.render=function(e){this.u=null,this.o=new Map;var t=q(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var o=t.length;o--;)this.o.set(t[o],this.u=[1,0,this.u]);return e.children},F.prototype.componentDidUpdate=F.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,o){be(e,o,t)})};var Ke=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Qe=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Ye=typeof document<"u",je=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(e)};$.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty($.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var me=u.event;function et(){}function tt(){return this.cancelBubble}function ot(){return this.defaultPrevented}u.event=function(e){return me&&(e=me(e)),e.persist=et,e.isPropagationStopped=tt,e.isDefaultPrevented=ot,e.nativeEvent=e};var ye={configurable:!0,get:function(){return this.class}},ge=u.vnode;u.vnode=function(e){var t=e.type,o=e.props,n=o;if(typeof t=="string"){var i=t.indexOf("-")===-1;for(var r in n={},o){var l=o[r];Ye&&r==="children"&&t==="noscript"||r==="value"&&"defaultValue"in o&&l==null||(r==="defaultValue"&&"value"in o&&o.value==null?r="value":r==="download"&&l===!0?l="":/ondoubleclick/i.test(r)?r="ondblclick":/^onchange(textarea|input)/i.test(r+t)&&!je(o.type)?r="oninput":/^onfocus$/i.test(r)?r="onfocusin":/^onblur$/i.test(r)?r="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(r)?r=r.toLowerCase():i&&Qe.test(r)?r=r.replace(/[A-Z0-9]/,"-$&").toLowerCase():l===null&&(l=void 0),n[r]=l)}t=="select"&&n.multiple&&Array.isArray(n.value)&&(n.value=q(o.children).forEach(function(a){a.props.selected=n.value.indexOf(a.props.value)!=-1})),t=="select"&&n.defaultValue!=null&&(n.value=q(o.children).forEach(function(a){a.props.selected=n.multiple?n.defaultValue.indexOf(a.props.value)!=-1:n.defaultValue==a.props.value})),e.props=n,o.class!=o.className&&(ye.enumerable="className"in o,o.className!=null&&(n.class=o.className),Object.defineProperty(n,"className",ye))}e.$$typeof=Ke,ge&&ge(e)};var ke=u.__r;u.__r=function(e){ke&&ke(e),e.__c};var Le={exports:{}};/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/(function(e){(function(){var t={}.hasOwnProperty;function o(){for(var n=[],i=0;i<arguments.length;i++){var r=arguments[i];if(!!r){var l=typeof r;if(l==="string"||l==="number")n.push(r);else if(Array.isArray(r)){if(r.length){var a=o.apply(null,r);a&&n.push(a)}}else if(l==="object")if(r.toString===Object.prototype.toString)for(var f in r)t.call(r,f)&&r[f]&&n.push(f);else n.push(r.toString())}}return n.join(" ")}e.exports?(o.default=o,e.exports=o):window.classNames=o})()})(Te);const we=Te.exports,L=J(({digit:e,disabled:t,onUp:o,onDown:n})=>{const[i,r]=O(0),[l,a]=O(!1);return E(()=>{if(t){a(!0);const f=window.setTimeout(()=>{a(!1),r(e)},500);return()=>window.clearTimeout(f)}else r(e)},[e]),v("div",{class:we("time-cell",{disabled:t})},v("div",{class:"time-cell-up",onClick:t?void 0:o}),v("div",{class:"rotor"},v("div",{class:we("rotor-leaf",{flipped:l})},v("figure",{class:"rotor-leaf-rear"},e),v("figure",{class:"rotor-leaf-front"},i)),v("div",{class:"rotor-top"},e),v("div",{class:"rotor-bottom"},i)),v("div",{class:"time-cell-down",onClick:t?void 0:n}))});var M=(e=>(e[e.AddTenMinutes=0]="AddTenMinutes",e[e.ReduceTenMinutes=1]="ReduceTenMinutes",e[e.AddOneMinute=2]="AddOneMinute",e[e.ReduceOneMinute=3]="ReduceOneMinute",e[e.AddTenSeconds=4]="AddTenSeconds",e[e.ReduceTenSeconds=5]="ReduceTenSeconds",e[e.AddOneSecond=6]="AddOneSecond",e[e.ReduceOneSecond=7]="ReduceOneSecond",e))(M||{});function xe(e){return Ae(()=>(e=e%61,[Math.floor(e/10),e%10]),[e])}function C(e,t){return N(()=>e(t),[e])}const nt=J(({minutes:e,seconds:t,disabled:o,onAdjustTime:n})=>{const i=xe(e),r=xe(t),l=C(n,0),a=C(n,1),f=C(n,2),d=C(n,3),_=C(n,4),h=C(n,5),s=C(n,6),c=C(n,7);return v("div",{className:"countdown-clock"},v(L,{disabled:o,digit:i[0],onUp:l,onDown:a}),v(L,{digit:i[1],disabled:o,onUp:f,onDown:d}),v("div",{class:"countdown-clock-divider"}),v(L,{disabled:o,digit:r[0],onUp:_,onDown:h}),v(L,{digit:r[1],disabled:o,onUp:s,onDown:c}))}),rt=J(({readonly:e,countdownSecs:t,startTime:o,paused:n,onAdjustTime:i,onStart:r,onPause:l,onResume:a,onReset:f})=>{const[d,_]=O(0),h=o>0&&d>=o,s=t-(h?d-o:0),c=Math.floor(s/60),p=s-c*60;return E(()=>{let k=NaN;if(t>0&&o>0&&!n){const b=()=>{_(Math.floor(Date.now()/1e3)),k=window.requestAnimationFrame(b)};return b(),()=>window.cancelAnimationFrame(k)}else window.cancelAnimationFrame(k)},[o,n,t]),E(()=>{o>0&&d-o>=t&&f()},[d,o,t,f]),v("div",{class:"netless-app-countdown"},v("div",{class:"netless-app-countdown-shrink"},v(nt,{minutes:c,seconds:p,disabled:e||h,onAdjustTime:i}),v("div",{class:"netless-app-countdown-btns"},n?v(H,null,v("button",{onClick:f,disabled:e},"Reset"),v("button",{onClick:a,disabled:e},"Resume")):h?v("button",{onClick:l,disabled:e},"Pause"):v("button",{onClick:r,disabled:e||s<=0},"Start"))))}),_t=J(({context:e,storage:t})=>{const[o,n]=O(()=>e.isWritable),[i,r]=O(0),[l,a]=O(0),[f,d]=O(!1),_=l>0,h=N(()=>{e.isWritable&&(d(!1),a(Math.floor(Date.now()/1e3)))},[e]),s=N(()=>{e.isWritable&&d(!0)},[e]),c=N(()=>{e.isWritable&&d(!1)},[e]),p=N(()=>{e.isWritable&&(d(!1),r(0),a(0))},[e]),k=N(b=>{_||r(m=>{if(!e.isWritable)return m;const y=Math.floor(m/60),w=m-y*60,g=Math.floor(y/10),S=y%10,U=Math.floor(w/10),A=w%10;switch(b){case M.AddTenMinutes:{const W=S+w===0?7:6;return((g+1)%W*10+S)*60+w}case M.ReduceTenMinutes:{const W=S+w===0?7:6;return((g+W-1)%W*10+S)*60+w}case M.AddOneMinute:return(Math.min(5,g)*10+(S+1)%10)*60+w;case M.ReduceOneMinute:return(Math.min(5,g)*10+(S+10-1)%10)*60+w;case M.AddTenSeconds:return y*60+((U+1)%6*10+A);case M.ReduceTenSeconds:return y*60+((U+6-1)%6*10+A);case M.AddOneSecond:return y*60+(Math.min(5,U)*10+(A+1)%10);case M.ReduceOneSecond:return y*60+(Math.min(5,U)*10+(A+10-1)%10);default:return m}})},[_,e]);return E(()=>(n(e.isWritable),e.emitter.on("writableChange",n),()=>e.emitter.off("writableChange",n)),[e]),E(()=>{const b=m=>{m.countdownSecs&&r(t.state.countdownSecs),m.paused&&d(t.state.paused),m.startTime&&a(t.state.startTime)};return t.onStateChanged.addListener(b),()=>t.onStateChanged.removeListener(b)},[t]),E(()=>{e.isWritable&&t.setState({countdownSecs:i,paused:f,startTime:l})},[i,f,l,e]),v(rt,{readonly:!o,countdownSecs:i,startTime:l,paused:f,onAdjustTime:k,onStart:h,onPause:s,onResume:c,onReset:p})}),it=208,lt=216,ct={kind:"Countdown",config:{minwidth:it,minheight:lt},setup(e){const t=e.box;t.mountStyles(Be);const o=e.createStorage("state",{countdownSecs:0,startTime:0,paused:!1});ie(v(_t,{context:e,storage:o}),t.$content),e.emitter.on("destroy",()=>{ie(null,t.$content)})}};exports.default=ct;
*/(function(e){(function(){var t={}.hasOwnProperty;function o(){for(var n=[],i=0;i<arguments.length;i++){var r=arguments[i];if(!!r){var l=typeof r;if(l==="string"||l==="number")n.push(r);else if(Array.isArray(r)){if(r.length){var a=o.apply(null,r);a&&n.push(a)}}else if(l==="object")if(r.toString===Object.prototype.toString)for(var f in r)t.call(r,f)&&r[f]&&n.push(f);else n.push(r.toString())}}return n.join(" ")}e.exports?(o.default=o,e.exports=o):window.classNames=o})()})(Le);const we=Le.exports,T=J(({digit:e,disabled:t,onUp:o,onDown:n})=>{const[i,r]=O(0),[l,a]=O(!1);return E(()=>{if(t){a(!0);const f=window.setTimeout(()=>{a(!1),r(e)},500);return()=>window.clearTimeout(f)}else r(e)},[e]),v("div",{class:we("time-cell",{disabled:t})},v("div",{class:"time-cell-up",onClick:t?void 0:o}),v("div",{class:"rotor"},v("div",{class:we("rotor-leaf",{flipped:l})},v("figure",{class:"rotor-leaf-rear"},e),v("figure",{class:"rotor-leaf-front"},i)),v("div",{class:"rotor-top"},e),v("div",{class:"rotor-bottom"},i)),v("div",{class:"time-cell-down",onClick:t?void 0:n}))});var M=(e=>(e[e.AddTenMinutes=0]="AddTenMinutes",e[e.ReduceTenMinutes=1]="ReduceTenMinutes",e[e.AddOneMinute=2]="AddOneMinute",e[e.ReduceOneMinute=3]="ReduceOneMinute",e[e.AddTenSeconds=4]="AddTenSeconds",e[e.ReduceTenSeconds=5]="ReduceTenSeconds",e[e.AddOneSecond=6]="AddOneSecond",e[e.ReduceOneSecond=7]="ReduceOneSecond",e))(M||{});function xe(e){return Ae(()=>(e=e%61,[Math.floor(e/10),e%10]),[e])}function C(e,t){return N(()=>e(t),[e])}const nt=J(({minutes:e,seconds:t,disabled:o,onAdjustTime:n})=>{const i=xe(e),r=xe(t),l=C(n,0),a=C(n,1),f=C(n,2),d=C(n,3),_=C(n,4),h=C(n,5),s=C(n,6),c=C(n,7);return v("div",{className:"countdown-clock"},v(T,{disabled:o,digit:i[0],onUp:l,onDown:a}),v(T,{digit:i[1],disabled:o,onUp:f,onDown:d}),v("div",{class:"countdown-clock-divider"}),v(T,{disabled:o,digit:r[0],onUp:_,onDown:h}),v(T,{digit:r[1],disabled:o,onUp:s,onDown:c}))}),rt=J(({readonly:e,countdownSecs:t,startTime:o,paused:n,onAdjustTime:i,onStart:r,onPause:l,onResume:a,onReset:f})=>{const[d,_]=O(0),h=o>0&&d>=o,s=t-(h?d-o:0),c=Math.floor(s/60),p=s-c*60;return E(()=>{let k=NaN;if(t>0&&o>0&&!n){const b=()=>{_(Math.floor(Date.now()/1e3)),k=window.requestAnimationFrame(b)};return b(),()=>window.cancelAnimationFrame(k)}else window.cancelAnimationFrame(k)},[o,n,t]),E(()=>{o>0&&d-o>=t&&f()},[d,o,t,f]),v("div",{class:"netless-app-countdown"},v("div",{class:"netless-app-countdown-shrink"},v(nt,{minutes:c,seconds:p,disabled:e||h,onAdjustTime:i}),v("div",{class:"netless-app-countdown-btns"},n?v(H,null,v("button",{onClick:f,disabled:e},"Reset"),v("button",{onClick:a,disabled:e},"Resume")):h?v("button",{onClick:l,disabled:e},"Pause"):v("button",{onClick:r,disabled:e||s<=0},"Start"))))}),_t=J(({context:e,storage:t})=>{const[o,n]=O(()=>e.isWritable),[i,r]=O(t.state.countdownSecs),[l,a]=O(t.state.startTime),[f,d]=O(t.state.paused),_=l>0,h=N(()=>{e.isWritable&&(d(!1),a(Math.floor(Date.now()/1e3)))},[e]),s=N(()=>{e.isWritable&&d(!0)},[e]),c=N(()=>{e.isWritable&&d(!1)},[e]),p=N(()=>{e.isWritable&&(d(!1),r(0),a(0))},[e]),k=N(b=>{_||r(m=>{if(!e.isWritable)return m;const y=Math.floor(m/60),w=m-y*60,g=Math.floor(y/10),S=y%10,U=Math.floor(w/10),A=w%10;switch(b){case M.AddTenMinutes:{const W=S+w===0?7:6;return((g+1)%W*10+S)*60+w}case M.ReduceTenMinutes:{const W=S+w===0?7:6;return((g+W-1)%W*10+S)*60+w}case M.AddOneMinute:return(Math.min(5,g)*10+(S+1)%10)*60+w;case M.ReduceOneMinute:return(Math.min(5,g)*10+(S+10-1)%10)*60+w;case M.AddTenSeconds:return y*60+((U+1)%6*10+A);case M.ReduceTenSeconds:return y*60+((U+6-1)%6*10+A);case M.AddOneSecond:return y*60+(Math.min(5,U)*10+(A+1)%10);case M.ReduceOneSecond:return y*60+(Math.min(5,U)*10+(A+10-1)%10);default:return m}})},[_,e]);return E(()=>(n(e.isWritable),e.emitter.on("writableChange",n),()=>e.emitter.off("writableChange",n)),[e]),E(()=>{const b=m=>{m.countdownSecs&&r(t.state.countdownSecs),m.paused&&d(t.state.paused),m.startTime&&a(t.state.startTime)};return t.on("stateChanged",b)},[t]),E(()=>{e.isWritable&&t.setState({countdownSecs:i,paused:f,startTime:l})},[i,f,l,e]),v(rt,{readonly:!o,countdownSecs:i,startTime:l,paused:f,onAdjustTime:k,onStart:h,onPause:s,onResume:c,onReset:p})}),it=208,lt=216,ct={kind:"Countdown",config:{minwidth:it,minheight:lt},setup(e){const t=e.box;t.mountStyles(Be);const o=e.createStorage("state",{countdownSecs:0,startTime:0,paused:!1});ie(v(_t,{context:e,storage:o}),t.$content),e.emitter.on("destroy",()=>{ie(null,t.$content)})}};exports.default=ct;
//# sourceMappingURL=main.js.map
{
"name": "@netless/app-countdown",
"version": "0.0.3",
"version": "0.0.4",
"main": "dist/main.js",

@@ -5,0 +5,0 @@ "module": "dist/main.mjs",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc