From 641be8bafdd7240394ed475917217e90efd45099 Mon Sep 17 00:00:00 2001 From: Iain MacDonald Date: Tue, 5 Sep 2023 12:26:13 +0800 Subject: [PATCH] Updates --- assets/index-c4cc8b07.js | 68 ++++++++++++++++++++++++++++++++++++++++ assets/index-ec5731a3.js | 68 ---------------------------------------- index.html | 2 +- 3 files changed, 69 insertions(+), 69 deletions(-) create mode 100644 assets/index-c4cc8b07.js delete mode 100644 assets/index-ec5731a3.js diff --git a/assets/index-c4cc8b07.js b/assets/index-c4cc8b07.js new file mode 100644 index 0000000..960192b --- /dev/null +++ b/assets/index-c4cc8b07.js @@ -0,0 +1,68 @@ +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const i of l)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(l){const i={};return l.integrity&&(i.integrity=l.integrity),l.referrerPolicy&&(i.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?i.credentials="include":l.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(l){if(l.ep)return;l.ep=!0;const i=n(l);fetch(l.href,i)}})();var ps=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Jc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ya={exports:{}},vl={},La={exports:{}},z={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var lr=Symbol.for("react.element"),qc=Symbol.for("react.portal"),bc=Symbol.for("react.fragment"),ed=Symbol.for("react.strict_mode"),td=Symbol.for("react.profiler"),nd=Symbol.for("react.provider"),rd=Symbol.for("react.context"),ld=Symbol.for("react.forward_ref"),id=Symbol.for("react.suspense"),od=Symbol.for("react.memo"),sd=Symbol.for("react.lazy"),hs=Symbol.iterator;function ad(e){return e===null||typeof e!="object"?null:(e=hs&&e[hs]||e["@@iterator"],typeof e=="function"?e:null)}var Oa={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ra=Object.assign,Fa={};function fn(e,t,n){this.props=e,this.context=t,this.refs=Fa,this.updater=n||Oa}fn.prototype.isReactComponent={};fn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};fn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Ia(){}Ia.prototype=fn.prototype;function vo(e,t,n){this.props=e,this.context=t,this.refs=Fa,this.updater=n||Oa}var xo=vo.prototype=new Ia;xo.constructor=vo;Ra(xo,fn.prototype);xo.isPureReactComponent=!0;var ys=Array.isArray,Ua=Object.prototype.hasOwnProperty,ko={current:null},$a={key:!0,ref:!0,__self:!0,__source:!0};function Wa(e,t,n){var r,l={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)Ua.call(t,r)&&!$a.hasOwnProperty(r)&&(l[r]=t[r]);var u=arguments.length-2;if(u===1)l.children=n;else if(1>>1,q=E[Q];if(0>>1;Ql(Rl,_))Ttl(dr,Rl)?(E[Q]=dr,E[Tt]=_,Q=Tt):(E[Q]=Rl,E[jt]=_,Q=jt);else if(Ttl(dr,_))E[Q]=dr,E[Tt]=_,Q=Tt;else break e}}return P}function l(E,P){var _=E.sortIndex-P.sortIndex;return _!==0?_:E.id-P.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,u=o.now();e.unstable_now=function(){return o.now()-u}}var a=[],f=[],g=1,v=null,y=3,j=!1,k=!1,T=!1,A=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(E){for(var P=n(f);P!==null;){if(P.callback===null)r(f);else if(P.startTime<=E)r(f),P.sortIndex=P.expirationTime,t(a,P);else break;P=n(f)}}function x(E){if(T=!1,m(E),!k)if(n(a)!==null)k=!0,Ll(d);else{var P=n(f);P!==null&&Ol(x,P.startTime-E)}}function d(E,P){k=!1,T&&(T=!1,p(C),C=-1),j=!0;var _=y;try{for(m(P),v=n(a);v!==null&&(!(v.expirationTime>P)||E&&!Ae());){var Q=v.callback;if(typeof Q=="function"){v.callback=null,y=v.priorityLevel;var q=Q(v.expirationTime<=P);P=e.unstable_now(),typeof q=="function"?v.callback=q:v===n(a)&&r(a),m(P)}else r(a);v=n(a)}if(v!==null)var cr=!0;else{var jt=n(f);jt!==null&&Ol(x,jt.startTime-P),cr=!1}return cr}finally{v=null,y=_,j=!1}}var N=!1,w=null,C=-1,W=5,Y=-1;function Ae(){return!(e.unstable_now()-YE||125Q?(E.sortIndex=_,t(f,E),n(a)===null&&E===n(f)&&(T?(p(C),C=-1):T=!0,Ol(x,_-Q))):(E.sortIndex=q,t(a,E),k||j||(k=!0,Ll(d))),E},e.unstable_shouldYield=Ae,e.unstable_wrapCallback=function(E){var P=y;return function(){var _=y;y=P;try{return E.apply(this,arguments)}finally{y=_}}}})(Ha);Va.exports=Ha;var xd=Va.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Qa=R,we=xd;function S(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),fi=Object.prototype.hasOwnProperty,kd=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,vs={},xs={};function Sd(e){return fi.call(xs,e)?!0:fi.call(vs,e)?!1:kd.test(e)?xs[e]=!0:(vs[e]=!0,!1)}function wd(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function jd(e,t,n,r){if(t===null||typeof t>"u"||wd(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function de(e,t,n,r,l,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var re={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){re[e]=new de(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];re[t]=new de(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){re[e]=new de(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){re[e]=new de(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){re[e]=new de(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){re[e]=new de(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){re[e]=new de(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){re[e]=new de(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){re[e]=new de(e,5,!1,e.toLowerCase(),null,!1,!1)});var wo=/[\-:]([a-z])/g;function jo(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(wo,jo);re[t]=new de(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(wo,jo);re[t]=new de(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(wo,jo);re[t]=new de(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){re[e]=new de(e,1,!1,e.toLowerCase(),null,!1,!1)});re.xlinkHref=new de("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){re[e]=new de(e,1,!1,e.toLowerCase(),null,!0,!0)});function To(e,t,n,r){var l=re.hasOwnProperty(t)?re[t]:null;(l!==null?l.type!==0:r||!(2u||l[o]!==i[u]){var a=` +`+l[o].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=o&&0<=u);break}}}finally{Ul=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Mn(e):""}function Td(e){switch(e.tag){case 5:return Mn(e.type);case 16:return Mn("Lazy");case 13:return Mn("Suspense");case 19:return Mn("SuspenseList");case 0:case 2:case 15:return e=$l(e.type,!1),e;case 11:return e=$l(e.type.render,!1),e;case 1:return e=$l(e.type,!0),e;default:return""}}function yi(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case $t:return"Fragment";case Ut:return"Portal";case mi:return"Profiler";case No:return"StrictMode";case pi:return"Suspense";case hi:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Xa:return(e.displayName||"Context")+".Consumer";case Ga:return(e._context.displayName||"Context")+".Provider";case Co:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Mo:return t=e.displayName||null,t!==null?t:yi(e.type)||"Memo";case lt:t=e._payload,e=e._init;try{return yi(e(t))}catch{}}return null}function Nd(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return yi(t);case 8:return t===No?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function vt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function qa(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Cd(e){var t=qa(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function pr(e){e._valueTracker||(e._valueTracker=Cd(e))}function ba(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=qa(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Qr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function gi(e,t){var n=t.checked;return V({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ss(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=vt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function eu(e,t){t=t.checked,t!=null&&To(e,"checked",t,!1)}function vi(e,t){eu(e,t);var n=vt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?xi(e,t.type,n):t.hasOwnProperty("defaultValue")&&xi(e,t.type,vt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ws(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function xi(e,t,n){(t!=="number"||Qr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var En=Array.isArray;function qt(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=hr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Wn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var _n={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Md=["Webkit","ms","Moz","O"];Object.keys(_n).forEach(function(e){Md.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),_n[t]=_n[e]})});function lu(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||_n.hasOwnProperty(e)&&_n[e]?(""+t).trim():t+"px"}function iu(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=lu(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Ed=V({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function wi(e,t){if(t){if(Ed[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(S(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(S(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(S(61))}if(t.style!=null&&typeof t.style!="object")throw Error(S(62))}}function ji(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ti=null;function Eo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ni=null,bt=null,en=null;function Ns(e){if(e=sr(e)){if(typeof Ni!="function")throw Error(S(280));var t=e.stateNode;t&&(t=jl(t),Ni(e.stateNode,e.type,t))}}function ou(e){bt?en?en.push(e):en=[e]:bt=e}function su(){if(bt){var e=bt,t=en;if(en=bt=null,Ns(e),t)for(e=0;e>>=0,e===0?32:31-(Id(e)/Ud|0)|0}var yr=64,gr=4194304;function Dn(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Jr(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var u=o&~l;u!==0?r=Dn(u):(i&=o,i!==0&&(r=Dn(i)))}else o=n&~l,o!==0?r=Dn(o):i!==0&&(r=Dn(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,i=t&-t,l>=i||l===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function ir(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Re(t),e[t]=n}function Bd(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=zn),Ys=String.fromCharCode(32),Ls=!1;function Mu(e,t){switch(e){case"keyup":return xf.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Eu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Wt=!1;function Sf(e,t){switch(e){case"compositionend":return Eu(t);case"keypress":return t.which!==32?null:(Ls=!0,Ys);case"textInput":return e=t.data,e===Ys&&Ls?null:e;default:return null}}function wf(e,t){if(Wt)return e==="compositionend"||!Oo&&Mu(e,t)?(e=Nu(),Yr=zo=at=null,Wt=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Is(n)}}function Au(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Au(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function zu(){for(var e=window,t=Qr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Qr(e.document)}return t}function Ro(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function _f(e){var t=zu(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Au(n.ownerDocument.documentElement,n)){if(r!==null&&Ro(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=Us(n,i);var o=Us(n,r);l&&o&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Zt=null,_i=null,Ln=null,Ai=!1;function $s(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ai||Zt==null||Zt!==Qr(r)||(r=Zt,"selectionStart"in r&&Ro(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ln&&Kn(Ln,r)||(Ln=r,r=el(_i,"onSelect"),0Ht||(e.current=Fi[Ht],Fi[Ht]=null,Ht--)}function F(e,t){Ht++,Fi[Ht]=e.current,e.current=t}var xt={},se=St(xt),pe=St(!1),At=xt;function on(e,t){var n=e.type.contextTypes;if(!n)return xt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in n)l[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function he(e){return e=e.childContextTypes,e!=null}function nl(){U(pe),U(se)}function Ks(e,t,n){if(se.current!==xt)throw Error(S(168));F(se,t),F(pe,n)}function Wu(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(S(108,Nd(e)||"Unknown",l));return V({},n,r)}function rl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||xt,At=se.current,F(se,e),F(pe,pe.current),!0}function Gs(e,t,n){var r=e.stateNode;if(!r)throw Error(S(169));n?(e=Wu(e,t,At),r.__reactInternalMemoizedMergedChildContext=e,U(pe),U(se),F(se,e)):U(pe),F(pe,n)}var Ke=null,Tl=!1,ti=!1;function Zu(e){Ke===null?Ke=[e]:Ke.push(e)}function Zf(e){Tl=!0,Zu(e)}function wt(){if(!ti&&Ke!==null){ti=!0;var e=0,t=O;try{var n=Ke;for(O=1;e>=o,l-=o,Ge=1<<32-Re(t)+l|n<C?(W=w,w=null):W=w.sibling;var Y=y(p,w,m[C],x);if(Y===null){w===null&&(w=W);break}e&&w&&Y.alternate===null&&t(p,w),c=i(Y,c,C),N===null?d=Y:N.sibling=Y,N=Y,w=W}if(C===m.length)return n(p,w),$&&Nt(p,C),d;if(w===null){for(;CC?(W=w,w=null):W=w.sibling;var Ae=y(p,w,Y.value,x);if(Ae===null){w===null&&(w=W);break}e&&w&&Ae.alternate===null&&t(p,w),c=i(Ae,c,C),N===null?d=Ae:N.sibling=Ae,N=Ae,w=W}if(Y.done)return n(p,w),$&&Nt(p,C),d;if(w===null){for(;!Y.done;C++,Y=m.next())Y=v(p,Y.value,x),Y!==null&&(c=i(Y,c,C),N===null?d=Y:N.sibling=Y,N=Y);return $&&Nt(p,C),d}for(w=r(p,w);!Y.done;C++,Y=m.next())Y=j(w,p,C,Y.value,x),Y!==null&&(e&&Y.alternate!==null&&w.delete(Y.key===null?C:Y.key),c=i(Y,c,C),N===null?d=Y:N.sibling=Y,N=Y);return e&&w.forEach(function(hn){return t(p,hn)}),$&&Nt(p,C),d}function A(p,c,m,x){if(typeof m=="object"&&m!==null&&m.type===$t&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case mr:e:{for(var d=m.key,N=c;N!==null;){if(N.key===d){if(d=m.type,d===$t){if(N.tag===7){n(p,N.sibling),c=l(N,m.props.children),c.return=p,p=c;break e}}else if(N.elementType===d||typeof d=="object"&&d!==null&&d.$$typeof===lt&&na(d)===N.type){n(p,N.sibling),c=l(N,m.props),c.ref=wn(p,N,m),c.return=p,p=c;break e}n(p,N);break}else t(p,N);N=N.sibling}m.type===$t?(c=_t(m.props.children,p.mode,x,m.key),c.return=p,p=c):(x=Wr(m.type,m.key,m.props,null,p.mode,x),x.ref=wn(p,c,m),x.return=p,p=x)}return o(p);case Ut:e:{for(N=m.key;c!==null;){if(c.key===N)if(c.tag===4&&c.stateNode.containerInfo===m.containerInfo&&c.stateNode.implementation===m.implementation){n(p,c.sibling),c=l(c,m.children||[]),c.return=p,p=c;break e}else{n(p,c);break}else t(p,c);c=c.sibling}c=ui(m,p.mode,x),c.return=p,p=c}return o(p);case lt:return N=m._init,A(p,c,N(m._payload),x)}if(En(m))return k(p,c,m,x);if(gn(m))return T(p,c,m,x);Tr(p,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,c!==null&&c.tag===6?(n(p,c.sibling),c=l(c,m),c.return=p,p=c):(n(p,c),c=ai(m,p.mode,x),c.return=p,p=c),o(p)):n(p,c)}return A}var an=Ju(!0),qu=Ju(!1),ar={},Be=St(ar),qn=St(ar),bn=St(ar);function Dt(e){if(e===ar)throw Error(S(174));return e}function Ho(e,t){switch(F(bn,t),F(qn,e),F(Be,ar),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Si(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Si(t,e)}U(Be),F(Be,t)}function un(){U(Be),U(qn),U(bn)}function bu(e){Dt(bn.current);var t=Dt(Be.current),n=Si(t,e.type);t!==n&&(F(qn,e),F(Be,n))}function Qo(e){qn.current===e&&(U(Be),U(qn))}var Z=St(0);function ul(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ni=[];function Ko(){for(var e=0;en?n:4,e(!0);var r=ri.transition;ri.transition={};try{e(!1),t()}finally{O=n,ri.transition=r}}function hc(){return _e().memoizedState}function Qf(e,t,n){var r=yt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},yc(e))gc(t,n);else if(n=Qu(e,t,n,r),n!==null){var l=ue();Fe(n,e,r,l),vc(n,t,r)}}function Kf(e,t,n){var r=yt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(yc(e))gc(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,u=i(o,n);if(l.hasEagerState=!0,l.eagerState=u,Ie(u,o)){var a=t.interleaved;a===null?(l.next=l,Bo(t)):(l.next=a.next,a.next=l),t.interleaved=l;return}}catch{}finally{}n=Qu(e,t,l,r),n!==null&&(l=ue(),Fe(n,e,r,l),vc(n,t,r))}}function yc(e){var t=e.alternate;return e===B||t!==null&&t===B}function gc(e,t){On=cl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function vc(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Po(e,n)}}var dl={readContext:Pe,useCallback:le,useContext:le,useEffect:le,useImperativeHandle:le,useInsertionEffect:le,useLayoutEffect:le,useMemo:le,useReducer:le,useRef:le,useState:le,useDebugValue:le,useDeferredValue:le,useTransition:le,useMutableSource:le,useSyncExternalStore:le,useId:le,unstable_isNewReconciler:!1},Gf={readContext:Pe,useCallback:function(e,t){return $e().memoizedState=[e,t===void 0?null:t],e},useContext:Pe,useEffect:la,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Fr(4194308,4,cc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Fr(4194308,4,e,t)},useInsertionEffect:function(e,t){return Fr(4,2,e,t)},useMemo:function(e,t){var n=$e();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=$e();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Qf.bind(null,B,e),[r.memoizedState,e]},useRef:function(e){var t=$e();return e={current:e},t.memoizedState=e},useState:ra,useDebugValue:bo,useDeferredValue:function(e){return $e().memoizedState=e},useTransition:function(){var e=ra(!1),t=e[0];return e=Hf.bind(null,e[1]),$e().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=B,l=$e();if($){if(n===void 0)throw Error(S(407));n=n()}else{if(n=t(),ee===null)throw Error(S(349));Yt&30||nc(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,la(lc.bind(null,r,i,e),[e]),r.flags|=2048,nr(9,rc.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=$e(),t=ee.identifierPrefix;if($){var n=Xe,r=Ge;n=(r&~(1<<32-Re(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=er++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[We]=t,e[Jn]=r,Mc(e,t,!1,!1),t.stateNode=e;e:{switch(o=ji(n,r),n){case"dialog":I("cancel",e),I("close",e),l=r;break;case"iframe":case"object":case"embed":I("load",e),l=r;break;case"video":case"audio":for(l=0;ldn&&(t.flags|=128,r=!0,jn(i,!1),t.lanes=4194304)}else{if(!r)if(e=ul(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),jn(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!$)return ie(t),null}else 2*K()-i.renderingStartTime>dn&&n!==1073741824&&(t.flags|=128,r=!0,jn(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=K(),t.sibling=null,n=Z.current,F(Z,r?n&1|2:n&1),t):(ie(t),null);case 22:case 23:return is(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?xe&1073741824&&(ie(t),t.subtreeFlags&6&&(t.flags|=8192)):ie(t),null;case 24:return null;case 25:return null}throw Error(S(156,t.tag))}function rm(e,t){switch(Io(t),t.tag){case 1:return he(t.type)&&nl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return un(),U(pe),U(se),Ko(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Qo(t),null;case 13:if(U(Z),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(S(340));sn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return U(Z),null;case 4:return un(),null;case 10:return Zo(t.type._context),null;case 22:case 23:return is(),null;case 24:return null;default:return null}}var Cr=!1,oe=!1,lm=typeof WeakSet=="function"?WeakSet:Set,M=null;function Xt(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){H(e,t,r)}else n.current=null}function Xi(e,t,n){try{n()}catch(r){H(e,t,r)}}var ma=!1;function im(e,t){if(zi=qr,e=zu(),Ro(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,u=-1,a=-1,f=0,g=0,v=e,y=null;t:for(;;){for(var j;v!==n||l!==0&&v.nodeType!==3||(u=o+l),v!==i||r!==0&&v.nodeType!==3||(a=o+r),v.nodeType===3&&(o+=v.nodeValue.length),(j=v.firstChild)!==null;)y=v,v=j;for(;;){if(v===e)break t;if(y===n&&++f===l&&(u=o),y===i&&++g===r&&(a=o),(j=v.nextSibling)!==null)break;v=y,y=v.parentNode}v=j}n=u===-1||a===-1?null:{start:u,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Yi={focusedElem:e,selectionRange:n},qr=!1,M=t;M!==null;)if(t=M,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,M=e;else for(;M!==null;){t=M;try{var k=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(k!==null){var T=k.memoizedProps,A=k.memoizedState,p=t.stateNode,c=p.getSnapshotBeforeUpdate(t.elementType===t.type?T:Ye(t.type,T),A);p.__reactInternalSnapshotBeforeUpdate=c}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(S(163))}}catch(x){H(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,M=e;break}M=t.return}return k=ma,ma=!1,k}function Rn(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&Xi(t,n,i)}l=l.next}while(l!==r)}}function Ml(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ji(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Pc(e){var t=e.alternate;t!==null&&(e.alternate=null,Pc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[We],delete t[Jn],delete t[Ri],delete t[$f],delete t[Wf])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function _c(e){return e.tag===5||e.tag===3||e.tag===4}function pa(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||_c(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function qi(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=tl));else if(r!==4&&(e=e.child,e!==null))for(qi(e,t,n),e=e.sibling;e!==null;)qi(e,t,n),e=e.sibling}function bi(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(bi(e,t,n),e=e.sibling;e!==null;)bi(e,t,n),e=e.sibling}var te=null,Le=!1;function rt(e,t,n){for(n=n.child;n!==null;)Ac(e,t,n),n=n.sibling}function Ac(e,t,n){if(Ze&&typeof Ze.onCommitFiberUnmount=="function")try{Ze.onCommitFiberUnmount(xl,n)}catch{}switch(n.tag){case 5:oe||Xt(n,t);case 6:var r=te,l=Le;te=null,rt(e,t,n),te=r,Le=l,te!==null&&(Le?(e=te,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):te.removeChild(n.stateNode));break;case 18:te!==null&&(Le?(e=te,n=n.stateNode,e.nodeType===8?ei(e.parentNode,n):e.nodeType===1&&ei(e,n),Hn(e)):ei(te,n.stateNode));break;case 4:r=te,l=Le,te=n.stateNode.containerInfo,Le=!0,rt(e,t,n),te=r,Le=l;break;case 0:case 11:case 14:case 15:if(!oe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Xi(n,t,o),l=l.next}while(l!==r)}rt(e,t,n);break;case 1:if(!oe&&(Xt(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(u){H(n,t,u)}rt(e,t,n);break;case 21:rt(e,t,n);break;case 22:n.mode&1?(oe=(r=oe)||n.memoizedState!==null,rt(e,t,n),oe=r):rt(e,t,n);break;default:rt(e,t,n)}}function ha(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new lm),t.forEach(function(r){var l=pm.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function ze(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=o),r&=~i}if(r=l,r=K()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*sm(r/1960))-r,10e?16:e,ut===null)var r=!1;else{if(e=ut,ut=null,pl=0,L&6)throw Error(S(331));var l=L;for(L|=4,M=e.current;M!==null;){var i=M,o=i.child;if(M.flags&16){var u=i.deletions;if(u!==null){for(var a=0;aK()-rs?Pt(e,0):ns|=n),ye(e,t)}function Uc(e,t){t===0&&(e.mode&1?(t=gr,gr<<=1,!(gr&130023424)&&(gr=4194304)):t=1);var n=ue();e=et(e,t),e!==null&&(ir(e,t,n),ye(e,n))}function mm(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Uc(e,n)}function pm(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(S(314))}r!==null&&r.delete(t),Uc(e,n)}var $c;$c=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||pe.current)me=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return me=!1,tm(e,t,n);me=!!(e.flags&131072)}else me=!1,$&&t.flags&1048576&&Bu(t,il,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ir(e,t),e=t.pendingProps;var l=on(t,se.current);nn(t,n),l=Xo(null,t,r,e,l,n);var i=Jo();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,he(r)?(i=!0,rl(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Vo(t),l.updater=Nl,t.stateNode=l,l._reactInternals=t,Zi(t,r,e,n),t=Hi(null,t,r,!0,i,n)):(t.tag=0,$&&i&&Fo(t),ae(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ir(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=ym(r),e=Ye(r,e),l){case 0:t=Vi(null,t,r,e,n);break e;case 1:t=ca(null,t,r,e,n);break e;case 11:t=aa(null,t,r,e,n);break e;case 14:t=ua(null,t,r,Ye(r.type,e),n);break e}throw Error(S(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ye(r,l),Vi(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ye(r,l),ca(e,t,r,l,n);case 3:e:{if(Tc(t),e===null)throw Error(S(387));r=t.pendingProps,i=t.memoizedState,l=i.element,Ku(e,t),al(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){l=cn(Error(S(423)),t),t=da(e,t,r,n,l);break e}else if(r!==l){l=cn(Error(S(424)),t),t=da(e,t,r,n,l);break e}else for(ke=mt(t.stateNode.containerInfo.firstChild),Se=t,$=!0,Oe=null,n=qu(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(sn(),r===l){t=tt(e,t,n);break e}ae(e,t,r,n)}t=t.child}return t;case 5:return bu(t),e===null&&Ui(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,o=l.children,Li(r,l)?o=null:i!==null&&Li(r,i)&&(t.flags|=32),jc(e,t),ae(e,t,o,n),t.child;case 6:return e===null&&Ui(t),null;case 13:return Nc(e,t,n);case 4:return Ho(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=an(t,null,r,n):ae(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ye(r,l),aa(e,t,r,l,n);case 7:return ae(e,t,t.pendingProps,n),t.child;case 8:return ae(e,t,t.pendingProps.children,n),t.child;case 12:return ae(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,i=t.memoizedProps,o=l.value,F(ol,r._currentValue),r._currentValue=o,i!==null)if(Ie(i.value,o)){if(i.children===l.children&&!pe.current){t=tt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var u=i.dependencies;if(u!==null){o=i.child;for(var a=u.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=Je(-1,n&-n),a.tag=2;var f=i.updateQueue;if(f!==null){f=f.shared;var g=f.pending;g===null?a.next=a:(a.next=g.next,g.next=a),f.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),$i(i.return,n,t),u.lanes|=n;break}a=a.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(S(341));o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),$i(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}ae(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,nn(t,n),l=Pe(l),r=r(l),t.flags|=1,ae(e,t,r,n),t.child;case 14:return r=t.type,l=Ye(r,t.pendingProps),l=Ye(r.type,l),ua(e,t,r,l,n);case 15:return Sc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ye(r,l),Ir(e,t),t.tag=1,he(r)?(e=!0,rl(t)):e=!1,nn(t,n),Xu(t,r,l),Zi(t,r,l,n),Hi(null,t,r,!0,e,n);case 19:return Cc(e,t,n);case 22:return wc(e,t,n)}throw Error(S(156,t.tag))};function Wc(e,t){return pu(e,t)}function hm(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ee(e,t,n,r){return new hm(e,t,n,r)}function ss(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ym(e){if(typeof e=="function")return ss(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Co)return 11;if(e===Mo)return 14}return 2}function gt(e,t){var n=e.alternate;return n===null?(n=Ee(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Wr(e,t,n,r,l,i){var o=2;if(r=e,typeof e=="function")ss(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case $t:return _t(n.children,l,i,t);case No:o=8,l|=8;break;case mi:return e=Ee(12,n,t,l|2),e.elementType=mi,e.lanes=i,e;case pi:return e=Ee(13,n,t,l),e.elementType=pi,e.lanes=i,e;case hi:return e=Ee(19,n,t,l),e.elementType=hi,e.lanes=i,e;case Ja:return Dl(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ga:o=10;break e;case Xa:o=9;break e;case Co:o=11;break e;case Mo:o=14;break e;case lt:o=16,r=null;break e}throw Error(S(130,e==null?e:typeof e,""))}return t=Ee(o,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function _t(e,t,n,r){return e=Ee(7,e,r,t),e.lanes=n,e}function Dl(e,t,n,r){return e=Ee(22,e,r,t),e.elementType=Ja,e.lanes=n,e.stateNode={isHidden:!1},e}function ai(e,t,n){return e=Ee(6,e,null,t),e.lanes=n,e}function ui(e,t,n){return t=Ee(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function gm(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Zl(0),this.expirationTimes=Zl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Zl(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function as(e,t,n,r,l,i,o,u,a){return e=new gm(e,t,n,u,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ee(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Vo(i),e}function vm(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Hc)}catch(e){console.error(e)}}Hc(),Ba.exports=je;var jm=Ba.exports,Qc,ja=jm;Qc=ja.createRoot,ja.hydrateRoot;const ur=R.createContext(""),Tm=[0,31,59,90,120,151,181,212,243,273,304,334];function fs(e){return e%4===0&&(e%400===0||e%100!==0)}function Ta(e){const t=e.getUTCMonth()>1&&fs(e.getUTCFullYear())?1:0;return Tm[e.getUTCMonth()]+e.getUTCDate()+t}function Nm(e){const t=e.getUTCMonth();return t===1?fs(e.getUTCFullYear())?29:28:[31,0,31,30,31,30,31,31,30,31,30,31][t]}function Cm(e){const t=new Date(e);return t.setUTCMonth(11),t.setUTCDate(31),lo(t)}function lo(e){let t,n,r;if(e.getUTCMonth()<2){const l=e.getUTCFullYear()-1,i=D(l/4)-D(l/100)+D(l/400),o=D((l-1)/4)-D((l-1)/100)+D((l-1)/400);r=i-o;const u=0,a=e.getUTCDate()-1+D(31*e.getUTCMonth());n=(l+i)%7;const f=(a+n-u)%7;t=a+3-f}else{const l=e.getUTCFullYear(),i=D(l/4)-D(l/100)+D(l/400),o=D((l-1)/4)-D((l-1)/100)+D((l-1)/400);r=i-o;const u=r+1,a=e.getUTCDate()+D((153*D(e.getUTCMonth()-2)+2)/5)+58+r;n=(l+i)%7;const f=(a+n-u)%7;t=a+3-f}return t<0?53-D((n-r)/5):t>364+r?1:D(t/7)+1}function Mm(e){let t,n,r;if(e.getUTCMonth()<2){const l=e.getUTCFullYear()-1,i=D(l/4)-D(l/100)+D(l/400),o=D((l-1)/4)-D((l-1)/100)+D((l-1)/400);r=i-o;const u=0,a=e.getUTCDate()-1+D(31*e.getUTCMonth());n=(l+i)%7;const f=(a+n-u)%7;t=a+3-f}else{const l=e.getUTCFullYear(),i=D(l/4)-D(l/100)+D(l/400),o=D((l-1)/4)-D((l-1)/100)+D((l-1)/400);r=i-o;const u=r+1,a=e.getUTCDate()+D((153*D(e.getUTCMonth()-2)+2)/5)+58+r;n=(l+i)%7;const f=(a+n-u)%7;t=a+3-f}return t<0?e.getUTCFullYear()-1:t>364+r?e.getUTCFullYear()+1:e.getUTCFullYear()}function ci(e){let t;if(e.getUTCMonth()<2){const n=e.getUTCFullYear()-1,r=D(n/4)-D(n/100)+D(n/400),l=0,i=e.getUTCDate()-1+D(31*e.getUTCMonth()),o=(n+r)%7;t=(i+o-l)%7}else{const n=e.getUTCFullYear(),r=D(n/4)-D(n/100)+D(n/400),l=D((n-1)/4)-D((n-1)/100)+D((n-1)/400),i=r-l,o=i+1,u=e.getUTCDate()+D((153*D(e.getUTCMonth()-2)+2)/5)+58+i,a=(n+r)%7;t=(u+a-o)%7}return t+1}function D(e){return e|0}let di=Math.random();function Un(e,t=new Date,n=-t.getTimezoneOffset()){const r=e.replace(/%(−?)(.\d+)?([a-z])/ig,"");if(r.match(/Z$/i))n=0;else{const l=/([-+−])(\d{2}):?(\d{2})?$/.exec(r);if(l){const i=l[1]==="+",o=+l[2],u=l[3]?+l[3]:0;n=(i?1:-1)*(o*60+u)}}return h(e,t,n)}function h(e,t=new Date,n=0){isNaN(n)&&(n=-t.getTimezoneOffset());const r=n!==0?new Date(+t+n*60*1e3):t;return e.replace(/%(−?)(.\d+)?([a-z])/ig,(l,i,o,u)=>{let a="";if(o){const f=o[0],g=+o.substring(1),v=+r%864e5,y=v/864e5;switch(u){case"L":a=ge(r.getUTCFullYear()%1e3/1e3,g);break;case"C":a=ge(r.getUTCFullYear()%100/100,g);break;case"X":a=ge(r.getUTCFullYear()%10/10,g);break;case"Y":const j=Ta(r)-1,k=fs(r.getUTCFullYear())?366:365;a=ge((j+y)/k,g);break;case"M":const T=r.getUTCDate()-1,A=Nm(r);a=ge((T+y)/A,g);break;case"D":a=ge(y,g);break;case"V":const p=lo(r)-1,c=Cm(r),m=ci(r)+y;a=ge((p+m/7)/c,g);break;case"W":a=ge((ci(r)-1+y)/7,g);break;case"w":a=ge(y,g);break;case"O":a=ge(y,g);break;case"h":a=ge(v%36e5/36e5,g);break;case"m":a=ge(v%6e4/6e4,g);break;case"s":a=ge(di,g);break;case"u":a=(di*1e6%1).toFixed(g);break}a=a.substring(1).replace(".",f)}switch(u){case"L":return(r.getUTCFullYear()/1e3|0).toString()+a;case"C":return Ve(r.getUTCFullYear()/100|0)+a;case"X":return Na(r.getUTCFullYear()/10|0)+a;case"Y":return Ca(r.getUTCFullYear())+a;case"M":return Ve(r.getUTCMonth()+1)+a;case"D":return Ve(r.getUTCDate())+a;case"V":return Ca(Mm(r))+a;case"W":return Ve(lo(r))+a;case"w":return ci(r).toString()+a;case"O":return Na(Ta(r))+a;case"h":return Ve(r.getUTCHours())+a;case"m":return Ve(r.getUTCMinutes())+a;case"s":return Ve(r.getUTCSeconds())+a;case"u":return Math.round(di*1e6).toString().padStart(6,"0")+a;case"Z":{const f=-(n/60)|0;return`${f<=0?"+":i||"-"}${Ve(Math.abs(f))}`}case"z":{const f=n%60;return Ve(Math.abs(f))}default:return l}})}function Ve(e){return e.toString().padStart(2,"0")}function Na(e){return e.toString().padStart(3,"0")}function Ca(e){return e.toString().padStart(4,"0")}function ge(e,t){const n=10**t;return(Math.floor(e*n)/n).toFixed(t)}function Yl(e){if(e.length!==0)try{const t=Intl.DateTimeFormat([],{timeZone:e,timeZoneName:"longOffset"}).format(new Date),r=t.substring(t.length-6).split(":").map(i=>+i),l=Math.sign(r[0])||1;return r[0]*60+l*r[1]}catch{return}}function Em(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return}}const Ma=["mutual-five","mutual-six","mutual-seven"];function Dm(e){const{date:t,rfc:n=!0,iso:r=!0,html:l=!1,showKey:i=!1,initialMutual:o="mutual-six",...u}=e,[a,f]=Qe.useState(!0),[g,v]=Qe.useState(!0),[y,j]=Qe.useState(!0),[k,T]=Qe.useState(!0),[A,p]=Qe.useState(!0),[c,m]=R.useState(o),x=Qe.useContext(ur),d=typeof x=="string"?Yl(x):void 0,N=`diagram ${i?"diagram--key":""} ${a?"":"diagram--hide-date"} ${g?"":"diagram--hide-time"} ${y?"":"diagram--hide-datetime"} ${k?"":"diagram--hide-period"} ${A?"":"diagram--hide-range"}`;return s.jsxs("svg",{viewBox:"10 50 270 190",xmlns:"http://www.w3.org/2000/svg",className:N,...u,children:[s.jsx("style",{children:"text{font-family:sans-serif;font-size:2.653px;}text.key-label{font-size:10.503px;}"}),i&&s.jsxs("g",{className:"key",children:[s.jsxs("g",{onClick:()=>f(w=>!w),children:[s.jsx("rect",{x:220,y:60,width:3,height:3,className:a?"key-date":"key-off"}),s.jsx("text",{x:225,y:62,children:"Date"})]}),s.jsxs("g",{onClick:()=>v(w=>!w),children:[s.jsx("rect",{x:220,y:65,width:3,height:3,className:g?"key-time":"key-off"}),s.jsx("text",{x:225,y:67,children:"Time"})]}),s.jsxs("g",{onClick:()=>j(w=>!w),children:[s.jsx("rect",{x:220,y:70,width:3,height:3,className:y?"key-datetime":"key-off"}),s.jsx("text",{x:225,y:72,children:"DateTime"})]}),s.jsxs("g",{onClick:()=>T(w=>!w),children:[s.jsx("rect",{x:220,y:75,width:3,height:3,className:k?"key-period":"key-off"}),s.jsx("text",{x:225,y:77,children:"Period"})]}),s.jsxs("g",{onClick:()=>p(w=>!w),children:[s.jsx("rect",{x:220,y:80,width:3,height:3,className:A?"key-range":"key-off"}),s.jsx("text",{x:225,y:82,children:"Range"})]})]}),n&&s.jsxs("g",{id:"rfc",children:[s.jsx("circle",{cx:75,cy:125,r:50,fill:"none",stroke:"#f0f",strokeWidth:.372}),s.jsx("text",{x:23.692,y:73.5,fill:"#f0f",className:"key-label",children:"RFC 3339"}),s.jsx("text",{x:58,y:82,className:"datetime",children:h("%Y-%M-%D_%h:%m:%sZ",t)}),s.jsx("text",{x:50,y:88,className:"datetime",children:h("%Y-%M-%D_%h:%m:%.3sZ",t)}),s.jsx("text",{x:46,y:94,className:"datetime",children:h("%Y-%M-%DT%h:%m:%s-00:00",t)}),s.jsx("text",{x:42,y:100,className:"datetime",children:h("%Y-%M-%Dt%h:%m:%sz",t)}),s.jsx("text",{x:32,y:106,className:"datetime",children:h("%Y-%M-%Dt%h:%m:%s%Z:%z",t,d)})]}),(n||l)&&s.jsxs("g",{id:"rfc-html",children:[s.jsx("text",{x:37,y:128,className:"datetime",children:h("%Y-%M-%D %h:%m:%sZ",t)}),s.jsx("text",{x:32,y:134,className:"datetime",children:h("%Y-%M-%D %h:%m:%.3sZ",t)}),s.jsx("text",{x:29,y:140,className:"datetime",children:h("%Y-%M-%D %h:%m:%s%Z:%z",t,d)})]}),(r||n||l)&&s.jsxs("g",{id:"all",children:[s.jsx("text",{x:76,y:110,className:"date",children:h("%Y-%M-%D",t,d)}),s.jsx("text",{x:72,y:116,className:"datetime",children:h("%Y-%M-%DT%h:%m:%sZ",t)}),s.jsx("text",{x:84,y:122,className:"datetime",children:h("%Y-%M-%DT%h:%m:%.1sZ",t)}),s.jsx("text",{x:70,y:128,className:"datetime",children:h("%Y-%M-%DT%h:%m:%.2sZ",t)}),s.jsx("text",{x:86,y:135,className:"datetime",children:h("%Y-%M-%DT%h:%m:%.3sZ",t)}),s.jsx("text",{x:68,y:140,className:"datetime",children:h("%Y-%M-%DT%h:%m:%s+00:00",t)}),s.jsx("text",{x:84,y:145,className:"datetime",children:h("%Y-%M-%DT%h:%m:%.1s+00:00",t)}),s.jsx("text",{x:64,y:150,className:"datetime",children:h("%Y-%M-%DT%h:%m:%s%Z:%z",t,d)}),s.jsx("text",{x:74,y:155,className:"datetime",children:h("%Y-%M-%DT%h:%m:%.1s%Z:%z",t,d)}),s.jsx("text",{x:70,y:160,className:"datetime",children:h("%Y-%M-%DT%h:%m:%.2s%Z:%z",t,d)}),s.jsx("text",{x:65,y:165,className:"datetime",children:h("%Y-%M-%DT%h:%m:%.3s%Z:%z",t,d)})]}),(r||n)&&s.jsxs("g",{id:"rfc-iso",children:[s.jsx("text",{x:96,y:91,className:"time",children:h("%h:%m:%sZ",t)}),s.jsx("text",{x:92,y:94,className:"time",children:h("%h:%m:%.1sZ",t)}),s.jsx("text",{x:98,y:97,className:"time",children:h("%h:%m:%.2sZ",t)}),s.jsx("text",{x:90,y:100,className:"time",children:h("%h:%m:%.3sZ",t)}),s.jsx("text",{x:96,y:108,className:"time",children:h("%h:%m:%.3s%Z:%z",t,d)}),s.jsx("text",{x:104,y:112,className:"time",children:h("%h:%m:%s%Z:%z",t,d)}),s.jsx("text",{x:80,y:104,className:"datetime",children:h("%Y-%M-%DT%h:%m:%s.%uZ",t)})]}),r&&s.jsxs("g",{id:"iso",children:[s.jsx("circle",{cx:134.327,cy:148.288,r:72.135,fill:"none",stroke:"#00f",strokeWidth:.265}),s.jsxs("text",{x:170,y:78.692,fill:"#00f",className:"key-label",children:["ISO 8601",s.jsx("tspan",{x:170.8,dy:6,style:{fontSize:"0.4em"},children:"ISO 8601-1:2019"})]}),s.jsx("text",{x:110,y:84,className:"datetime",children:h("%Y-%M-%DT%,1h",t,d)}),s.jsx("text",{x:136,y:84,className:"datetime",children:h("%Y-%M-%DT%.1h",t,d)}),s.jsx("text",{x:126,y:88,className:"datetime",children:h("%Y-%M-%DT%h:%m:%s−01:00",t,-60)}),s.jsx("text",{x:116,y:92,className:"datetime",children:h("%Y-%M-%DT%h:%,1m",t,d)}),s.jsx("text",{x:148,y:92,className:"datetime",children:h("%Y-%M-%DT%h:%.1m",t,d)}),s.jsx("text",{x:120,y:96,className:"time",children:h("T%h:%m:%s",t,d)}),s.jsx("text",{x:140,y:96,className:"time",children:h("T%h:%m:%sZ",t)}),s.jsx("text",{x:160,y:96,className:"time",children:h("T%h:%m:%s%Z:%z",t,d)}),s.jsx("text",{x:164,y:100,className:"time",children:h("T%h:%m:%s%Z",t,d)}),s.jsx("text",{x:120,y:100,className:"date",children:h("%Y",t,d)}),s.jsx("text",{x:132,y:100,className:"date",children:h("%X",t,d)}),s.jsx("text",{x:142,y:100,className:"date",children:h("%C",t,d)}),s.jsx("text",{x:148,y:100,className:"time",children:h("%h:%m:%s%Z",t,d)}),s.jsx("text",{x:124,y:104,className:"date",children:h("%Y-%O",t,d)}),s.jsx("text",{x:140,y:104,className:"datetime",children:h("%Y-%OT%h:%m",t,d)}),s.jsx("text",{x:166,y:104,className:"datetime",children:h("%Y-%OT%.1h",t,d)}),s.jsx("text",{x:126,y:108,className:"datetime",children:h("%Y-%OT%h:%m:%s",t,d)}),s.jsx("text",{x:164,y:108,className:"range",children:h("%Y-%O/P2M",t,d)}),s.jsx("text",{x:128,y:112,className:"range",children:h("%Y-W%W/P2M",t,d)}),s.jsx("text",{x:166,y:116,className:"range",children:h("%Y-%OT%h/PT2M",t,d)}),s.jsx("text",{x:160,y:112,className:"range",children:h("%Y-W%W-%wT%h:%m/PT2M",t,d)}),s.jsx("text",{x:133.259,y:120,className:"date",children:h("%V-W%W-%w",t,d)}),s.jsx("text",{x:160.336,y:120,className:"datetime",children:h("%V-W%W-%wT%h:%m",t,d)}),s.jsx("text",{x:169.336,y:124,className:"datetime",children:h("%V-W%W-%wT%h:%m:%s",t,d)}),s.jsx("text",{x:129.087,y:124,className:"datetime",children:h("%Y-%M-%DT%h:%m:%s.%u",t,d)}),s.jsx("text",{x:128,y:128,className:"range",children:h("%Y/P2M",t,d)}),s.jsx("text",{x:144.336,y:128,className:"range",children:h("%Y-%M/P2M",t,d)}),s.jsx("text",{x:164.336,y:128,className:"range",children:h("%Y-%M-%D/P2M",t,d)}),s.jsx("text",{x:129.336,y:132,className:"range",children:h("%Y-%M-%DT%h/PT2M",t,d)}),s.jsx("text",{x:166,y:132,className:"range",children:h("%Y-%M-%DT%h:%m/PT2M",t,d)}),s.jsx("text",{x:128,y:136,className:"range",children:h("%Y-%M-%DT%h:%m:%s/P3D",t,d)}),s.jsx("text",{x:170,y:136,className:"range",children:h("%Y-%M-%DT%h:%m:%s/PT2M",t,d)}),s.jsx("text",{x:134,y:140,className:"range",children:h("%Y-%M-%D/28",t,d)}),s.jsx("text",{x:184,y:140,className:"range",children:h("%Y-W%W-%w/P2M",t,d)}),s.jsx("text",{x:192,y:144,className:"range",children:h("%Y-%M/12",t,d)}),s.jsx("text",{x:116,y:206,className:"range",children:h("%Y-%OT%h:%m:%s/PT3H",t,d)}),s.jsx("text",{x:130,y:116,className:"range",children:h("%Y-W%W-%wT%h:%m:%s/PT2M",t,d)}),s.jsx("text",{x:132,y:144,className:"period",children:"P1Y"}),s.jsx("text",{x:140,y:144,className:"period",children:"P1.5W"}),s.jsx("text",{x:134,y:150,className:"period",children:"P1,5Y"}),s.jsx("text",{x:134,y:156,className:"period",children:"P1.5Y"}),s.jsx("text",{x:134,y:162,className:"period",children:"P2M"}),s.jsx("text",{x:133.5,y:170,className:"period",children:"P1W"}),s.jsx("text",{x:132,y:176,className:"period",children:"P2.5M"}),s.jsx("text",{x:131,y:181,className:"period",children:"P2,5M"}),s.jsx("text",{x:132,y:186,className:"period",children:"P1Y2.5M"}),s.jsx("text",{x:138,y:191,className:"period",children:"P1Y2M"}),s.jsx("text",{x:126,y:191,className:"period",children:"P1Y2,5M"}),s.jsx("text",{x:126,y:196,className:"range",children:h("%Y-%M-%D/%Y-12-31",t,d)}),s.jsx("text",{x:120,y:201,className:"range",children:h("%Y-%M-%DT%h/23",t,d)}),s.jsx("text",{x:148,y:201,className:"period",children:"P1Y2.5MT4H"}),s.jsx("text",{x:150,y:206,className:"range",children:h("%Y-%M-%DT%h:%m/59",t,d)}),s.jsx("text",{x:104,y:212,className:"range",children:h("%Y-%M-%DT%h:%m:%s/59",t,d)}),s.jsx("text",{x:135,y:212,className:"range",children:h("R2/%Y-%O/P1Y2.5MT4H",t,d)}),s.jsx("text",{x:120,y:218,className:"range",children:h("R/%Y-W%W-%wT%h/PT45M",t,d)}),c==="mutual-five"&&s.jsxs("g",{id:"iso-mutual",transform:"translate(20 -18)",children:[s.jsx("circle",{cx:150.327,cy:186.288,r:30.135,fill:"none",stroke:"#666",strokeWidth:.372,strokeDasharray:"4 4"}),s.jsxs("text",{x:180,y:210,fill:"#666",className:"key-label",style:{fontSize:8},onClick:()=>m("mutual-six"),children:["By Mutual Agreement",s.jsx("tspan",{x:180,dy:8,style:{fontSize:5},children:"(e.g. agreement on five-digit years)"})]}),s.jsx("text",{x:136,y:164,className:"date",children:h("+0%C",t,d)}),s.jsx("text",{x:144,y:160,className:"date",children:h("+0%X",t,d)}),s.jsx("text",{x:148,y:164,className:"date",children:h("+0%Y",t,d)}),s.jsx("text",{x:154,y:168,className:"date",children:h("+0%Y-%M",t,d)}),s.jsx("text",{x:128,y:168,className:"date",children:h("+0%Y-%M-%D",t,d)}),s.jsx("text",{x:130,y:172,className:"date",children:h("+0%Y%M%D",t,d)}),s.jsx("text",{x:148,y:172,className:"datetime",children:h("+0%Y-%M-%DT%h",t,d)}),s.jsx("text",{x:156,y:176,className:"date",children:h("+0%Y%M",t,d)}),s.jsx("text",{x:124,y:176,className:"datetime",children:h("+0%Y-%M-%DT%h:%m",t,d)}),s.jsx("text",{x:148,y:180,className:"datetime",children:h("+0%Y-%M-%DT%h:%m:%s",t,d)}),s.jsx("text",{x:124,y:184,className:"datetime",children:h("+0%V-W%W-%wT%h",t,d)}),s.jsx("text",{x:154,y:184,className:"datetime",children:h("+0%Y-%OT%h:%m",t,d)}),s.jsx("text",{x:138,y:188,className:"datetime",children:h("+0%V-W%W-%wT%h:%m",t,d)}),s.jsx("text",{x:124,y:192,className:"datetime",children:h("+0%Y-%OT%h",t,d)}),s.jsx("text",{x:148,y:192,className:"datetime",children:h("+0%Y%OT%.3h",t,d)}),s.jsx("text",{x:130,y:197,className:"datetime",children:h("+0%Y-%OT%h:%m%Z:%z",t,d)}),s.jsx("text",{x:128,y:202,className:"datetime",children:h("+0%Y-%OT%h:%m:%s",t,d)}),s.jsx("text",{x:144,y:207,className:"datetime",children:h("+0%Y%OT%h%m%s",t,d)}),s.jsx("text",{x:136,y:212,className:"datetime",children:h("+0%Y%M%DT%h%m%sZ",t)})]}),c==="mutual-six"&&s.jsxs("g",{id:"iso-mutual",transform:"translate(20 -18)",children:[s.jsx("circle",{cx:150.327,cy:186.288,r:30.135,fill:"none",stroke:"#666",strokeWidth:.372,strokeDasharray:"4 4"}),s.jsxs("text",{x:180,y:210,fill:"#666",className:"key-label",style:{fontSize:8},onClick:()=>m("mutual-seven"),children:["By Mutual Agreement",s.jsx("tspan",{x:180,dy:8,style:{fontSize:5},children:"(e.g. agreement on six-digit years)"})]}),s.jsx("text",{x:136,y:164,className:"date",children:h("+00%C",t,d)}),s.jsx("text",{x:144,y:160,className:"date",children:h("+00%X",t,d)}),s.jsx("text",{x:148,y:164,className:"date",children:h("+00%Y",t,d)}),s.jsx("text",{x:154,y:168,className:"date",children:h("+00%Y-%M",t,d)}),s.jsx("text",{x:128,y:168,className:"date",children:h("+00%Y-%M-%D",t,d)}),s.jsx("text",{x:130,y:172,className:"date",children:h("+00%Y%M%D",t,d)}),s.jsx("text",{x:148,y:172,className:"datetime",children:h("+00%Y-%M-%DT%h",t,d)}),s.jsx("text",{x:156,y:176,className:"date",children:h("+00%Y%M",t,d)}),s.jsx("text",{x:124,y:176,className:"datetime",children:h("+00%Y-%M-%DT%h:%m",t,d)}),s.jsx("text",{x:148,y:180,className:"datetime",children:h("+00%Y-%M-%DT%h:%m:%s",t,d)}),s.jsx("text",{x:124,y:184,className:"datetime",children:h("+00%V-W%W-%wT%h",t,d)}),s.jsx("text",{x:154,y:184,className:"datetime",children:h("+00%Y-%OT%h:%m",t,d)}),s.jsx("text",{x:138,y:188,className:"datetime",children:h("+00%V-W%W-%wT%h:%m",t,d)}),s.jsx("text",{x:124,y:192,className:"datetime",children:h("+00%Y-%OT%h",t,d)}),s.jsx("text",{x:148,y:192,className:"datetime",children:h("+00%Y%OT%.3h",t,d)}),s.jsx("text",{x:130,y:197,className:"datetime",children:h("+00%Y-%OT%h:%m%Z:%z",t,d)}),s.jsx("text",{x:128,y:202,className:"datetime",children:h("+00%Y-%OT%h:%m:%s",t,d)}),s.jsx("text",{x:144,y:207,className:"datetime",children:h("+00%Y%OT%h%m%s",t,d)}),s.jsx("text",{x:136,y:212,className:"datetime",children:h("+00%Y%M%DT%h%m%sZ",t)})]}),c==="mutual-seven"&&s.jsxs("g",{id:"iso-mutual",transform:"translate(20 -18)",children:[s.jsx("circle",{cx:150.327,cy:186.288,r:30.135,fill:"none",stroke:"#666",strokeWidth:.372,strokeDasharray:"4 4"}),s.jsxs("text",{x:180,y:210,fill:"#666",className:"key-label",style:{fontSize:8},onClick:()=>m("mutual-five"),children:["By Mutual Agreement",s.jsx("tspan",{x:180,dy:8,style:{fontSize:5},children:"(e.g. agreement on seven-digit years)"})]}),s.jsx("text",{x:136,y:164,className:"date",children:h("+000%C",t,d)}),s.jsx("text",{x:144,y:160,className:"date",children:h("+000%X",t,d)}),s.jsx("text",{x:148,y:164,className:"date",children:h("+000%Y",t,d)}),s.jsx("text",{x:154,y:168,className:"date",children:h("+000%Y-%M",t,d)}),s.jsx("text",{x:128,y:168,className:"date",children:h("+000%Y-%M-%D",t,d)}),s.jsx("text",{x:130,y:172,className:"date",children:h("+000%Y%M%D",t,d)}),s.jsx("text",{x:148,y:172,className:"datetime",children:h("+000%Y-%M-%DT%h",t,d)}),s.jsx("text",{x:156,y:176,className:"date",children:h("+000%Y%M",t,d)}),s.jsx("text",{x:124,y:176,className:"datetime",children:h("+000%Y-%M-%DT%h:%m",t,d)}),s.jsx("text",{x:148,y:180,className:"datetime",children:h("+000%Y-%M-%DT%h:%m:%s",t,d)}),s.jsx("text",{x:124,y:184,className:"datetime",children:h("+000%V-W%W-%wT%h",t,d)}),s.jsx("text",{x:154,y:184,className:"datetime",children:h("+000%Y-%OT%h:%m",t,d)}),s.jsx("text",{x:138,y:188,className:"datetime",children:h("+000%V-W%W-%wT%h:%m",t,d)}),s.jsx("text",{x:124,y:192,className:"datetime",children:h("+000%Y-%OT%h",t,d)}),s.jsx("text",{x:148,y:192,className:"datetime",children:h("+000%Y%OT%.3h",t,d)}),s.jsx("text",{x:130,y:197,className:"datetime",children:h("+000%Y-%OT%h:%m%Z:%z",t,d)}),s.jsx("text",{x:128,y:202,className:"datetime",children:h("+000%Y-%OT%h:%m:%s",t,d)}),s.jsx("text",{x:144,y:207,className:"datetime",children:h("+000%Y%OT%h%m%s",t,d)}),s.jsx("text",{x:136,y:212,className:"datetime",children:h("+000%Y%M%DT%h%m%sZ",t)})]})]}),l&&s.jsxs("g",{id:"html",transform:"translate(-12 6)",children:[s.jsx("circle",{cx:90,cy:155,r:55,fill:"none",stroke:"#3c790a",strokeWidth:.265}),s.jsxs("text",{x:45,y:216,fill:"#3c790a",className:"key-label",children:["HTML",s.jsx("tspan",{dx:-28,dy:6,style:{fontSize:"0.4em"},children:"Living Standard"})]}),s.jsx("text",{x:42,y:172,className:"datetime",children:h("%Y-%M-%D %h:%m",t,d)}),s.jsx("text",{x:50,y:178,className:"datetime",children:h("%Y-%M-%D %h:%m:%s",t,d)}),s.jsx("text",{x:54,y:184,className:"datetime",children:h("%Y-%M-%D %h:%m:%.3s",t,d)}),s.jsx("text",{x:68,y:190,className:"date",children:h("--%M-%D",t)}),s.jsx("text",{x:74,y:196,className:"date",children:h("%M-%D",t)}),s.jsx("text",{x:88,y:196,className:"period",children:h("1 D",t,d)}),s.jsx("text",{x:82,y:202,className:"period",children:h("5 M 4 W",t,d)})]}),(r||l)&&s.jsxs("g",{id:"iso-html",children:[s.jsx("text",{x:123,y:144,className:"period",children:h("P1D",t,d)}),s.jsx("text",{x:124,y:150,className:"period",children:h("PT1H",t,d)}),s.jsx("text",{x:124,y:156,className:"period",children:h("PT1M",t,d)}),s.jsx("text",{x:116,y:162,className:"period",children:h("P1DT1H1M",t,d)}),s.jsx("text",{x:106,y:168,className:"period",children:h("P1DT1.1S",t,d)}),s.jsx("text",{x:124,y:168,className:"period",children:h("PT1S",t,d)}),s.jsx("text",{x:116,y:174,className:"period",children:h("P1TD1.12S",t,d)}),s.jsx("text",{x:100,y:174,className:"time",children:h("%h:%m:%s",t,d)}),s.jsx("text",{x:70,y:180,className:"time",children:h("%h:%m",t,d)}),s.jsx("text",{x:80,y:180,className:"time",children:h("%h:%m:%.1s",t,d)}),s.jsx("text",{x:94,y:180,className:"time",children:h("%h:%m:%.3s",t,d)}),s.jsx("text",{x:112,y:180,className:"period",children:h("P1DT1.123S",t,d)}),s.jsx("text",{x:80,y:186,className:"datetime",children:h("%Y-%M-%DT%h:%m:%s",t,d)}),s.jsx("text",{x:114,y:186,className:"date",children:h("%Y-%M",t,d)}),s.jsx("text",{x:100,y:192,className:"datetime",children:h("%Y-%M-%DT%h:%m",t,d)}),s.jsx("text",{x:85,y:198,className:"datetime",children:h("%Y-%M-%DT%h:%m:%.3s",t,d)}),s.jsx("text",{x:94,y:204,className:"date",children:h("%V-W%W",t,d)})]})]})}const Ea=typeof localStorage<"u"?localStorage:{getItem:()=>null,setItem:()=>{}};function Nn(e,t){const[n,r]=R.useState(()=>{const i=Ea.getItem(e);if(i===null)return t;try{return JSON.parse(i)}catch{return t}}),l=R.useCallback(i=>{r(i),Ea.setItem(e,JSON.stringify(i))},[e,r]);return[n,l]}function Pm(e,t){const n=new Blob([e]),r=URL.createObjectURL(n),l=document.createElement("a");l.download=t,l.href=r,document.body.append(l),l.click(),document.body.removeChild(l),setTimeout(()=>URL.revokeObjectURL(r),0)}function Ne(e,t){return e.map(n=>t.map(r=>[n,r])).flat()}const io=["%Y-%M-%D","%C","%X","%Y","%Y-%M","%Y-%O","%V-W%W","%V-W%W-%w","%Y%M%D","%Y%O","%VW%W","%VW%W%w"],Dr=["%h","%,1h","%.1h","%h:%m","%h:%,1m","%h:%.1m","%h:%m:%s","%h:%m:%.1s","%h:%m:%.2s","%h:%m:%,3s","%h:%m:%.3s","%h:%m:%s,%u","%h:%m:%s.%u"],gl=[...Dr,...Dr.map(e=>`${e}Z`),...Dr.map(e=>`${e}%Z`),...Dr.map(e=>`${e}%Z:%z`)],Da=[...gl,...gl.map(e=>`T${e}`)],_m=[...Da,...Da.map(e=>e.replace(/:/g,"")),"%h:%m:%s+00:00","%h:%m:%.1s+00:00","%h:%m:%.3s+00:00","%h:%m:%s.%u+00:00"],oo=[...new Set(_m)],ve=["%Y-%M-%D","%V-W%W-%w","%Y-%O"],so=[...Ne(ve,gl).map(([e,t])=>`${e}T${t}`),...Ne(ve,gl).map(([e,t])=>`${e}T${t}`.replace(/[-:]/g,"")),"%Y-%M-%DT%h:%m:%s+08","%Y-%M-%DT%h:%m:%s+08:45","%Y-%M-%DT%h-12","%Y-%M-%DT%h-12:00","%Y-%M-%DT%h:%m-12","%Y-%M-%DT%h:%m-12:00","%Y-%M-%DT%h:%m:%s+00:00","%Y-%M-%DT%h:%m:%.3s+00:00"],ao=["P1Y","P1,5Y","P1.5Y","P1M","P1W","P1D","PT1H","P1H","PT1M","PT1S","P1S","PT1,5S","PT1.5S","P1Y1M","P1Y1D","P1Y1M1D","P1Y1M1DT1H1M1S","P1DT1H","P1MT1M","P1DT1M","P1.5W","P1,5W","P1DT1.000S","P1DT1.00000S","P1DT1H1M1.1S","P1H1M1.1S"],Pa=["P1Y","P1M","P1D"],_a=Ne(ve,["%h","%h:%m","%h:%m:%s","%h:%m:%.3s","%h:%mZ"]).map(([e,t])=>`${e}T${t}`),uo=[...Ne(ve,Pa).map(([e,t])=>`${e}/${t}`),...Ne(ve,ve).map(([e,t])=>`${e}/${t}`),...Ne(Pa,ve).map(([e,t])=>`${e}/${t}`),...Ne(_a,["P1DT1H"]).map(([e,t])=>`${e}/${t}`),...Ne(_a,["P1DT1H"]).map(([e,t])=>`${t}/${e}`),...Ne(ve,["P1Y"]).map(([e,t])=>`R/${e}/${t}`),...Ne(ve,ve).map(([e,t])=>`R/${e}/${t}`),...Ne(ve,["P1Y"]).map(([e,t])=>`R10/${e}/${t}`),...Ne(ve,ve).map(([e,t])=>`R10/${e}/${t}`)],co=["%Y-%M-%D"],fo=["%h:%m:%s%Z:%z","%h:%m:%.1s%Z:%z","%h:%m:%.2s%Z:%z","%h:%m:%.3s%Z:%z","%h:%m:%s.%u%Z:%z","%h:%m:%sZ","%h:%m:%.1sZ","%h:%m:%.2sZ","%h:%m:%.3sZ","%h:%m:%s.%uZ","%h:%m:%s+00:00","%h:%m:%.1s+00:00","%h:%m:%.3s+00:00","%h:%m:%s.%u+00:00","%h:%m:%s-00:00","%h:%m:%.1s-00:00","%h:%m:%.3s-00:00","%h:%m:%s.%u-00:00"],mo=["%Y-%M-%DT%h:%m:%sZ","%Y-%M-%DT%h:%m:%.1sZ","%Y-%M-%DT%h:%m:%.2sZ","%Y-%M-%DT%h:%m:%.3sZ","%Y-%M-%DT%h:%m:%s.%uZ","%Y-%M-%Dt%h:%m:%sz","%Y-%M-%Dt%h:%m:%.3sz","%Y-%M-%DT%h:%m:%s%Z:%z","%Y-%M-%DT%h:%m:%.3s%Z:%z","%Y-%M-%DT%h:%m:%s.%u%Z:%z","%Y-%M-%D %h:%m:%s%Z:%z","%Y-%M-%D %h:%m:%.1s%Z:%z","%Y-%M-%D %h:%m:%.2s%Z:%z","%Y-%M-%D %h:%m:%.3s%Z:%z","%Y-%M-%D %h:%m:%s.%u%Z:%z","%Y-%M-%D %h:%m:%sZ","%Y-%M-%D_%h:%m:%sZ","%Y-%M-%D %h:%m:%sz","%Y-%M-%D_%h:%m:%sz","%Y-%M-%D %h:%m:%.1sZ","%Y-%M-%D %h:%m:%.2sZ","%Y-%M-%D %h:%m:%.3sZ","%Y-%M-%D_%h:%m:%.3sZ","%Y-%M-%D %h:%m:%s.%uZ","%Y-%M-%D_%h:%m:%s.%uZ","%Y-%M-%D %h:%m:%.3sz","%Y-%M-%D_%h:%m:%.3sz","%Y-%M-%D %h:%m:%s.%uz","%Y-%M-%D_%h:%m:%s.%uz","%Y-%M-%D %h:%m:%s-00:00","%Y-%M-%D %h:%m:%.3s-00:00","%Y-%M-%DT%h:%m:%s-00:00","%Y-%M-%DT%h:%m:%.3s-00:00","%Y-%M-%DT%h:%m:%s+08:45","%Y-%M-%DT%h:%m:%s+00:00","%Y-%M-%DT%h:%m:%.3s+00:00"],po=["%Y-%M-%D","%Y-%M","%V-W%W","--%M-%D","%M-%D"],ho=["%h:%m","%h:%m:%s","%h:%m:%.1s","%h:%m:%.2s","%h:%m:%.3s"],yo=["%Y-%M-%DT%h:%m","%Y-%M-%DT%h:%m:%s","%Y-%M-%DT%h:%m:%.1s","%Y-%M-%DT%h:%m:%.2s","%Y-%M-%DT%h:%m:%.3s","%Y-%M-%D %h:%m","%Y-%M-%D %h:%m:%s","%Y-%M-%D %h:%m:%.1s","%Y-%M-%D %h:%m:%.2s","%Y-%M-%D %h:%m:%.3s","%Y-%M-%DT%h:%mZ","%Y-%M-%DT%h:%m:%sZ","%Y-%M-%DT%h:%m:%.1sZ","%Y-%M-%DT%h:%m:%.2sZ","%Y-%M-%DT%h:%m:%.3sZ","%Y-%M-%D %h:%mZ","%Y-%M-%D %h:%m:%sZ","%Y-%M-%D %h:%m:%.1sZ","%Y-%M-%D %h:%m:%.2sZ","%Y-%M-%D %h:%m:%.3sZ","%Y-%M-%DT%h:%m%Z:%z","%Y-%M-%DT%h:%m:%s%Z:%z","%Y-%M-%DT%h:%m:%.1s%Z:%z","%Y-%M-%DT%h:%m:%.2s%Z:%z","%Y-%M-%DT%h:%m:%.3s%Z:%z","%Y-%M-%D %h:%m%Z:%z","%Y-%M-%D %h:%m:%s%Z:%z","%Y-%M-%D %h:%m:%.1s%Z:%z","%Y-%M-%D %h:%m:%.2s%Z:%z","%Y-%M-%D %h:%m:%.3s%Z:%z","%Y-%M-%DT%h:%m:%s+08:45","%Y-%M-%DT%h:%m:%s+00:00","%Y-%M-%DT%h:%m:%.3s+00:00","%Y-%M-%DT%h:%m%Z%z","%Y-%M-%DT%h:%m:%s%Z%z","%Y-%M-%DT%h:%m:%.1s%Z%z","%Y-%M-%DT%h:%m:%.2s%Z%z","%Y-%M-%DT%h:%m:%.3s%Z%z","%Y-%M-%D %h:%m%Z%z","%Y-%M-%D %h:%m:%s%Z%z","%Y-%M-%D %h:%m:%.1s%Z%z","%Y-%M-%D %h:%m:%.2s%Z%z","%Y-%M-%D %h:%m:%.3s%Z%z","%Y-%M-%DT%h:%m:%s+0845","%Y-%M-%DT%h:%m:%s+0000","%Y-%M-%DT%h:%m:%.3s+0000"],go=["PT1H","PT1M","PT1S","PT1.5S","P1DT1H","P1DT1M","P1DT1.000S","P1DT1H1M1.1S","1W1M1S","1S1M1H1W","1 W","1.5W","1 D 1 W","1.5 S 1.5 M","1H 15 M"],Zr=[...new Set([...co,...io,...po])].map(e=>({format:e,rfc:co.includes(e),iso:io.includes(e),html:po.includes(e)})),Br=[...new Set([...fo,...oo,...ho])].map(e=>({format:e,rfc:fo.includes(e),iso:oo.includes(e),html:ho.includes(e)})),Vr=[...new Set([...mo,...so,...yo])].map(e=>({format:e,rfc:mo.includes(e),iso:so.includes(e),html:yo.includes(e)})),Am=[...new Set([...ao,...go])].map(e=>({format:e,rfc:!1,iso:ao.includes(e),html:go.includes(e)})),zm=uo.map(e=>({format:e,rfc:!1,iso:uo.includes(e),html:!1}));function Ym({now:e,showHTML:t}){const[n,r]=R.useState("union"),[l,i]=R.useState(!0),[o,u]=R.useState(!0),[a,f]=R.useState(t),g=R.useContext(ur),v=typeof g=="string"?Yl(g):void 0,y=(o?1:0)+(l?1:0)+(a&&t?1:0);function j(){if(y===0)return;let k,T,A,p="date-test-values";if(y===1){let m;o?(m=x=>x.rfc,p+="-rfc"):l?(m=x=>x.iso,p+="-iso"):a&&(m=x=>x.html,p+="-html"),k=Zr.filter(m),T=Br.filter(m),A=Vr.filter(m)}else if(n==="intersection"){let m=!0,x=!0,d=!0,N=[];o&&(N.push("rfc"),m=!1),l&&(N.push("iso"),x=!1),a&&(N.push("html"),d=!1),p+="-"+N.join("_∩_");const w=C=>(C.rfc||m)&&(C.iso||x)&&(C.html||d);k=Zr.filter(w),T=Br.filter(w),A=Vr.filter(w)}else{let m=!1,x=!1,d=!1,N=[];o&&(N.push("rfc"),m=!0),l&&(N.push("iso"),x=!0),a&&(N.push("html"),d=!0),p+="-"+N.join("_∪_");const w=C=>C.rfc&&m||C.iso&&x||C.html&&d;k=Zr.filter(w),T=Br.filter(w),A=Vr.filter(w)}const c=[];c.push("# Dates"),c.push(...k.map(m=>Un(m.format,e,v))),c.push("# Times"),c.push(...T.map(m=>Un(m.format,e,v))),c.push("# Date-Times"),c.push(...A.map(m=>Un(m.format,e,v))),p+=".txt",Pm(c.join(` +`),p)}return s.jsxs("div",{className:"ToolBox-Card",children:[s.jsx("h2",{children:"Test File Generator"}),s.jsxs("div",{children:[s.jsxs("div",{children:[s.jsxs("label",{children:[s.jsx("input",{type:"checkbox",name:"test-file-includes",value:"rfc3339",checked:o,onChange:k=>u(k.target.checked)}),"RFC 3339"]}),s.jsxs("label",{children:[s.jsx("input",{type:"checkbox",name:"test-file-includes",value:"iso8601",checked:l,onChange:k=>i(k.target.checked)}),"ISO 8601"]}),t&&s.jsxs("label",{children:[s.jsx("input",{type:"checkbox",name:"test-file-includes",value:"html",checked:a,onChange:k=>f(k.target.checked)}),"HTML"]})]}),y>1&&s.jsxs("div",{children:[s.jsxs("label",{children:[s.jsx("input",{type:"radio",name:"test-file-includes",value:"union",checked:n==="union",onChange:k=>r(k.target.value)}),"Union"]}),s.jsxs("label",{children:[s.jsx("input",{type:"radio",name:"test-file-includes",value:"intersection",checked:n==="intersection",onChange:k=>r(k.target.value)}),"Intersection"]})]}),s.jsx("button",{onClick:()=>j(),disabled:y===0,children:"Download test file"})]})]})}function Lm({now:e,showHTML:t}){const[n,r]=R.useState("%Y-%M-%D"),l=R.useContext(ur),i=typeof l=="string"?Yl(l):void 0,o=n.length>0&&(co.includes(n)?"✔️ Date":fo.includes(n)?"✔️ Time":mo.includes(n)?"✔️ Date":"Invalid"),u=n.length>0&&(io.includes(n)?"✔️ Date":oo.includes(n)?"✔️ Time":so.includes(n)?"✔️ Date":ao.includes(n)?"✔️ Period":uo.includes(n)?"✔️ Range":"Invalid"),a=n.length>0&&(po.includes(n)?"✔️ Date":ho.includes(n)?"✔️ Time":yo.includes(n)?"✔️ Date":go.includes(n)?"✔️ Period":"Invalid");return s.jsxs("div",{className:"ToolBox-Card",children:[s.jsx("h2",{children:"Format Checker"}),s.jsxs("p",{children:["Type a format using the format key above to check a format's validity.",s.jsx("br",{}),s.jsxs("span",{className:"hint",children:[s.jsx("strong",{children:"Note"}),": doesn't check all possible formats, only checks formats in the table."]})]}),s.jsxs("label",{children:[s.jsx("span",{style:{display:"block",fontSize:"0.8em",fontWeight:"bold"},children:"Format"}),s.jsx("input",{placeholder:"%Y-%M-%D",value:n,onChange:f=>r(f.target.value)})]}),s.jsx("span",{style:{padding:"0.5em"},children:Un(n,e,i)}),s.jsxs("ul",{children:[s.jsxs("li",{children:["RFC 3339: ",o]}),s.jsxs("li",{children:["ISO 8601: ",u]}),t&&s.jsxs("li",{children:["HTML: ",a]})]})]})}const Om=Qe.memo(Rm);function Rm({date:e,showHTML:t,isPaused:n}){const r=Qe.useContext(ur),l=typeof r=="string"?Yl(r):void 0;return s.jsxs("table",{className:"App-FormatTable",children:[s.jsx("thead",{children:s.jsxs("tr",{children:[s.jsx("th",{children:"Format"}),s.jsx("th",{children:n?"Example":"Now"}),s.jsx("th",{children:"RFC 3339"}),s.jsx("th",{children:"ISO 8601"}),t&&s.jsx("th",{children:"HTML"})]})}),s.jsxs("tbody",{children:[s.jsx("tr",{children:s.jsx("th",{colSpan:100,children:"Dates"})}),Zr.map(i=>s.jsx(Cn,{format:i.format,date:e,timeZoneOffset:l,rfc:i.rfc,iso:i.iso,html:i.html,showHTML:t},i.format))]}),s.jsxs("tbody",{children:[s.jsx("tr",{children:s.jsx("th",{colSpan:100,children:"Times"})}),Br.map(i=>s.jsx(Cn,{format:i.format,date:e,timeZoneOffset:l,rfc:i.rfc,iso:i.iso,html:i.html,showHTML:t},i.format))]}),s.jsxs("tbody",{children:[s.jsx("tr",{children:s.jsx("th",{colSpan:100,children:"Date-Times"})}),Vr.map(i=>s.jsx(Cn,{format:i.format,date:e,timeZoneOffset:l,rfc:i.rfc,iso:i.iso,html:i.html,showHTML:t},i.format))]}),s.jsxs("tbody",{children:[s.jsx("tr",{children:s.jsx("th",{colSpan:100,children:"Periods"})}),Am.map(i=>s.jsx(Cn,{format:i.format,date:e,timeZoneOffset:l,iso:i.iso,html:i.html,showHTML:t},i.format))]}),s.jsxs("tbody",{children:[s.jsx("tr",{children:s.jsx("th",{colSpan:100,children:"Ranges"})}),zm.map(i=>s.jsx(Cn,{format:i.format,date:e,timeZoneOffset:l,iso:!0,showHTML:t},i.format))]})]})}function Cn({format:e,date:t,timeZoneOffset:n,rfc:r=!1,iso:l=!1,html:i=!1,showHTML:o=!1}){return!o&&!r&&!l?null:s.jsxs("tr",{children:[s.jsx("td",{children:s.jsx("code",{children:e})}),s.jsx("td",{children:Un(e,t,n)}),s.jsx("td",{children:r&&"✔️"}),s.jsx("td",{children:l&&"✔️"}),o&&s.jsx("td",{children:i&&"✔️"})]})}function Fm(e,t){const[n,r]=R.useState(e);return R.useEffect(()=>{const l=setTimeout(()=>{r(e)},t);return()=>{clearTimeout(l)}},[e,t]),n}const Pr=" ";function Im({data:e}){return s.jsx("div",{className:"hl",children:s.jsx(Hr,{value:e})})}function Hr({value:e,depth:t=0}){if(e===null)return s.jsx("span",{className:"hl-null",children:"null"});if(Array.isArray(e))return s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"hl-punctuation",children:"["}),e.map((n,r,l)=>s.jsxs(R.Fragment,{children:[typeof n=="object"?` +`+Pr.repeat(t+1):null,s.jsx(Hr,{value:n,depth:t+(typeof n=="object"?1:0)}),rs.jsxs(R.Fragment,{children:[n,Pr,s.jsx("span",{className:"hl-punctuation",children:'"'}),s.jsx("span",{className:"hl-property",children:r}),s.jsx("span",{className:"hl-punctuation",children:'"'}),s.jsx("span",{className:"hl-punctuation",children:":"})," ",s.jsx(Hr,{value:l,depth:t+1}),i{let i=!0;return l&&fetch(`${Aa}/${l}`).then(o=>{if(o.ok)return o.json()}).then(o=>{i&&r(o)}).catch(()=>r(null)),()=>{i=!1}},[l,r]),s.jsxs("div",{className:"ToolBox-Card",children:[s.jsx("h2",{children:"ISO 8601 as a Service"}),s.jsxs("p",{children:[s.jsx("strong",{children:"Beta test"})," a ",s.jsx("a",{href:Aa,children:"service"})," to try parsing some ISO 8601 formats. ",s.jsx("br",{}),s.jsxs("span",{className:"hint",children:["Only ",s.jsx("b",{children:"Date"}),", ",s.jsx("b",{children:"Time"}),", and ",s.jsx("b",{children:"DateTime"})," are supported at the moment. There is no support for ",s.jsx("b",{children:"Period"})," or ",s.jsx("b",{children:"Range"}),"."]})]}),s.jsxs("label",{children:[s.jsx("span",{style:{display:"block",fontSize:"0.8em",fontWeight:"bold"},children:"Input String"}),s.jsx("input",{placeholder:"Input string",value:e,onChange:i=>t(i.target.value)})]}),n&&s.jsxs(s.Fragment,{children:[s.jsx("span",{style:{display:"block",fontSize:"0.8em",fontWeight:"bold"},children:"Result"}),s.jsx(Im,{data:n})]})]})}const $m=["Africa/Abidjan","Africa/Algiers","Africa/Bissau","Africa/Cairo","Africa/Casablanca","Africa/Ceuta","Africa/El_Aaiun","Africa/Johannesburg","Africa/Juba","Africa/Khartoum","Africa/Lagos","Africa/Maputo","Africa/Monrovia","Africa/Nairobi","Africa/Ndjamena","Africa/Sao_Tome","Africa/Tripoli","Africa/Tunis","Africa/Windhoek","America/Adak","America/Anchorage","America/Araguaina","America/Argentina/Buenos_Aires","America/Argentina/Catamarca","America/Argentina/Cordoba","America/Argentina/Jujuy","America/Argentina/La_Rioja","America/Argentina/Mendoza","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Asuncion","America/Bahia","America/Bahia_Banderas","America/Barbados","America/Belem","America/Belize","America/Boa_Vista","America/Bogota","America/Boise","America/Cambridge_Bay","America/Campo_Grande","America/Cancun","America/Caracas","America/Cayenne","America/Chicago","America/Chihuahua","America/Costa_Rica","America/Cuiaba","America/Danmarkshavn","America/Dawson","America/Dawson_Creek","America/Denver","America/Detroit","America/Edmonton","America/Eirunepe","America/El_Salvador","America/Fort_Nelson","America/Fortaleza","America/Glace_Bay","America/Goose_Bay","America/Grand_Turk","America/Guatemala","America/Guayaquil","America/Guyana","America/Halifax","America/Havana","America/Hermosillo","America/Indiana/Indianapolis","America/Indiana/Knox","America/Indiana/Marengo","America/Indiana/Petersburg","America/Indiana/Tell_City","America/Indiana/Vevay","America/Indiana/Vincennes","America/Indiana/Winamac","America/Inuvik","America/Iqaluit","America/Jamaica","America/Juneau","America/Kentucky/Louisville","America/Kentucky/Monticello","America/La_Paz","America/Lima","America/Los_Angeles","America/Maceio","America/Managua","America/Manaus","America/Martinique","America/Matamoros","America/Mazatlan","America/Menominee","America/Merida","America/Metlakatla","America/Mexico_City","America/Miquelon","America/Moncton","America/Monterrey","America/Montevideo","America/New_York","America/Nipigon","America/Nome","America/Noronha","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem","America/Nuuk","America/Ojinaga","America/Panama","America/Pangnirtung","America/Paramaribo","America/Phoenix","America/Port-au-Prince","America/Porto_Velho","America/Puerto_Rico","America/Punta_Arenas","America/Rainy_River","America/Rankin_Inlet","America/Recife","America/Regina","America/Resolute","America/Rio_Branco","America/Santarem","America/Santiago","America/Santo_Domingo","America/Sao_Paulo","America/Scoresbysund","America/Sitka","America/St_Johns","America/Swift_Current","America/Tegucigalpa","America/Thule","America/Thunder_Bay","America/Tijuana","America/Toronto","America/Vancouver","America/Whitehorse","America/Winnipeg","America/Yakutat","America/Yellowknife","Antarctica/Casey","Antarctica/Davis","Antarctica/Macquarie","Antarctica/Mawson","Antarctica/Palmer","Antarctica/Rothera","Antarctica/Troll","Asia/Almaty","Asia/Amman","Asia/Anadyr","Asia/Aqtau","Asia/Aqtobe","Asia/Ashgabat","Asia/Atyrau","Asia/Baghdad","Asia/Baku","Asia/Bangkok","Asia/Barnaul","Asia/Beirut","Asia/Bishkek","Asia/Chita","Asia/Choibalsan","Asia/Colombo","Asia/Damascus","Asia/Dhaka","Asia/Dili","Asia/Dubai","Asia/Dushanbe","Asia/Famagusta","Asia/Gaza","Asia/Hebron","Asia/Ho_Chi_Minh","Asia/Hong_Kong","Asia/Hovd","Asia/Irkutsk","Asia/Jakarta","Asia/Jayapura","Asia/Jerusalem","Asia/Kabul","Asia/Kamchatka","Asia/Karachi","Asia/Kathmandu","Asia/Khandyga","Asia/Kolkata","Asia/Krasnoyarsk","Asia/Kuching","Asia/Macau","Asia/Magadan","Asia/Makassar","Asia/Manila","Asia/Nicosia","Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Omsk","Asia/Oral","Asia/Pontianak","Asia/Pyongyang","Asia/Qatar","Asia/Qostanay","Asia/Qyzylorda","Asia/Riyadh","Asia/Sakhalin","Asia/Samarkand","Asia/Seoul","Asia/Shanghai","Asia/Singapore","Asia/Srednekolymsk","Asia/Taipei","Asia/Tashkent","Asia/Tbilisi","Asia/Tehran","Asia/Thimphu","Asia/Tokyo","Asia/Tomsk","Asia/Ulaanbaatar","Asia/Urumqi","Asia/Ust-Nera","Asia/Vladivostok","Asia/Yakutsk","Asia/Yangon","Asia/Yekaterinburg","Asia/Yerevan","Atlantic/Azores","Atlantic/Bermuda","Atlantic/Canary","Atlantic/Cape_Verde","Atlantic/Faroe","Atlantic/Madeira","Atlantic/South_Georgia","Atlantic/Stanley","Australia/Adelaide","Australia/Brisbane","Australia/Broken_Hill","Australia/Darwin","Australia/Eucla","Australia/Hobart","Australia/Lindeman","Australia/Lord_Howe","Australia/Melbourne","Australia/Perth","Australia/Sydney","Europe/Andorra","Europe/Astrakhan","Europe/Athens","Europe/Belgrade","Europe/Berlin","Europe/Brussels","Europe/Bucharest","Europe/Budapest","Europe/Chisinau","Europe/Dublin","Europe/Gibraltar","Europe/Helsinki","Europe/Istanbul","Europe/Kaliningrad","Europe/Kirov","Europe/Kyiv","Europe/Lisbon","Europe/London","Europe/Madrid","Europe/Malta","Europe/Minsk","Europe/Moscow","Europe/Paris","Europe/Prague","Europe/Riga","Europe/Rome","Europe/Samara","Europe/Saratov","Europe/Simferopol","Europe/Sofia","Europe/Tallinn","Europe/Tirane","Europe/Ulyanovsk","Europe/Vienna","Europe/Vilnius","Europe/Volgograd","Europe/Warsaw","Europe/Zurich","Indian/Chagos","Indian/Maldives","Indian/Mauritius","Pacific/Apia","Pacific/Auckland","Pacific/Bougainville","Pacific/Chatham","Pacific/Easter","Pacific/Efate","Pacific/Fakaofo","Pacific/Fiji","Pacific/Galapagos","Pacific/Gambier","Pacific/Guadalcanal","Pacific/Guam","Pacific/Honolulu","Pacific/Kanton","Pacific/Kiritimati","Pacific/Kosrae","Pacific/Kwajalein","Pacific/Marquesas","Pacific/Nauru","Pacific/Niue","Pacific/Norfolk","Pacific/Noumea","Pacific/Pago_Pago","Pacific/Palau","Pacific/Pitcairn","Pacific/Port_Moresby","Pacific/Rarotonga","Pacific/Tahiti","Pacific/Tarawa","Pacific/Tongatapu"];var Wm=ps&&ps.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Gc=void 0;var Kc=Wm($m);Kc.default;function Zm(){return typeof Intl.supportedValuesOf=="function"?Intl.supportedValuesOf("timeZone"):Kc.default}var Gc=Zm;function Bm({value:e,onChange:t}){return s.jsxs("div",{className:"ToolBox-Card",children:[s.jsx("h2",{children:"Time Zone Switcher"}),s.jsx("p",{children:"Select a timezone to adjust zone for local dates and times."}),s.jsx("p",{children:s.jsxs("select",{value:e,onChange:n=>t(n.target.value),children:[s.jsx("option",{value:"",children:"- Browser Default -"}),Gc().map(n=>s.jsx("option",{children:n},n))]})})]})}function Vm({initialDate:e=null,initialShowISO:t=!0,initialShowRFC:n=!0,initialShowHTML:r=!1,initialShowColours:l=!1,readOnlyMode:i=!1,showDiagram:o=!0,initialTimeZone:u=null}){const[a,f]=R.useState(()=>e||new Date),[g,v]=Nn("rfciso.showISO",t),[y,j]=Nn("rfciso.showRFC",n),[k,T]=Nn("rfciso.showHTML",r),[A,p]=Nn("rfciso.showColours",l),[c,m]=R.useState(e!==null),[x,d]=Nn("rfciso.selectedTimeZone",u||Em()||""),N=R.useRef(Ma[Math.floor(Math.random()*Ma.length)]);return R.useEffect(()=>{if(!c){const w=()=>f(new Date);w();const C=setInterval(w,1e3);return()=>clearInterval(C)}},[c]),R.useEffect(()=>{document.title=za(y,g,k)},[g,y,k]),R.useEffect(()=>{const w=C=>{C.ctrlKey&&C.key==="m"&&m(W=>!W)};return document.addEventListener("keyup",w),()=>document.removeEventListener("keyup",w)},[m]),s.jsx(ur.Provider,{value:x,children:s.jsxs("div",{className:"App",children:[!i&&s.jsx("h1",{children:za(y,g,k)}),o&&s.jsxs(s.Fragment,{children:[s.jsx(Dm,{date:a,iso:g,rfc:y,html:k,showKey:A,initialMutual:N.current}),!i&&s.jsxs("p",{className:"App-DiagramControls",children:[s.jsxs("label",{children:[s.jsx("input",{type:"checkbox",checked:g,onChange:w=>v(w.target.checked)}),"Show ISO 8601"]}),s.jsxs("label",{children:[s.jsx("input",{type:"checkbox",checked:y,onChange:w=>j(w.target.checked)}),"Show RFC 3339"]}),s.jsxs("label",{children:[s.jsx("input",{type:"checkbox",checked:k,onChange:w=>T(w.target.checked)}),"Show HTML"]}),s.jsxs("label",{children:[s.jsx("input",{type:"checkbox",checked:A,onChange:w=>p(w.target.checked)}),"Show Colours"]})]})]}),s.jsx("h2",{style:{marginBottom:0},children:"Format Listing"}),s.jsx("p",{style:{marginBottom:0},children:"Notes:"}),s.jsxs("ul",{children:[s.jsx("li",{children:"This table is not exhaustive."}),s.jsxs("li",{children:["This page targets ",s.jsx("a",{href:"https://www.iso.org/obp/ui#iso:std:iso:8601:-1:ed-1:v1:en",children:"ISO 8601-1:2019"}),". Previous editions and drafts contain key differences."]}),s.jsxs("li",{children:[s.jsx("a",{href:"https://www.iso.org/obp/ui#iso:std:iso:8601:-2:ed-1:v1:en",children:"ISO 8601-2:2019"})," contains additional representations including sub-year groupings (e.g. for seasons); grouped units; sets; uncertainty qualifications; and date arithmetic. These are not yet represented on this page."]}),s.jsxs("li",{children:[s.jsx("a",{href:"https://datatracker.ietf.org/doc/html/rfc3339",children:"RFC 3339"})," suggests other characters could be specified to replace the ",s.jsx("code",{children:"T"})," in downstream standards but only gives a space character as an example."]}),s.jsxs("li",{children:["RFC 3339 is case-insensitive so every ",s.jsx("code",{children:"T"})," or ",s.jsx("code",{children:"Z"})," could also be ",s.jsx("code",{children:"t"})," or ",s.jsx("code",{children:"z"})," respectively. Previous editions of ISO 8601 were also case-insensitive."]}),s.jsx("li",{title:"ISO 8601-1:2019 § 5.3.1.4",children:"ISO 8601 allows decimal fractions of the smallest time value. These are mostly represented here by a single fractional digit but the standard allows arbitrary precision."}),s.jsx("li",{title:"ISO 8601-1:2019 § 3.2.6",children:"ISO 8601 allows commas and dots for decimal separation but they are interchangeable in all formats."}),s.jsxs("li",{title:"ISO 8601-1:2019 § 5.3.5",children:["ISO 8601-1:2019 permits omitting the ",s.jsx("code",{children:"T"})," in the ",s.jsx("em",{children:"time of day"})," representations (",s.jsx("b",{children:"Times"}),") when unambiguous.",s.jsx("br",{}),"However, a ",s.jsx("code",{children:"T"})," is always required in ",s.jsx("em",{children:"date and time of day"})," representations (",s.jsx("b",{children:"Date-Times"}),").",s.jsx("br",{}),"Previous editions also allowed omitting the ",s.jsx("code",{children:"T"})," in Date-Times but it was never permitted to ",s.jsx("em",{children:"insert"})," alternative characters (e.g. space or underscore)."]}),k&&s.jsxs("li",{children:["The HTML living standard defines a microsyntax for ",s.jsx("a",{href:"https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#dates-and-times",children:"Dates and times"})," based on ISO 8601 and RFC 3339. It has far fewer ambiguities than either standard and gives explicit parsing rules."]}),!i&&s.jsxs("li",{children:["Each ",s.jsx("span",{onClick:()=>window.open("https://xkcd.com/927/"),children:"standard"})," defines multiple formats for different purposes. ",s.jsx("span",{onClick:()=>window.open("https://xkcd.com/1179/"),children:"Other formats are therefore discouraged."})]}),s.jsx("li",{children:"The format key is given below the table."})]}),s.jsx(Om,{date:a,showHTML:k,isPaused:c}),s.jsx("h3",{children:"Format Key"}),s.jsx("pre",{className:"App-FormatKey",children:s.jsx("code",{children:` +%L - Millennium +%C - Century +%X - Decade +%Y - Year +%M - Month +%D - Day +%V - Week Year +%W - Week +%w - Week Day +%O - Ordinal Day + +%h - Hour +%m - Minute +%s - Second +%u - Microsecond + +%Z - Zone Hour including +/- +%z - Zone Minute + +%[,.]3x - Value including fraction with given precision, using either comma or dot. +%−Z - Use U+2212 for negative timezone hours +`})}),!i&&s.jsxs(s.Fragment,{children:[s.jsx(Ym,{now:a,showHTML:k}),s.jsx(Lm,{now:a,showHTML:k}),s.jsx(Um,{}),s.jsx(Bm,{value:x,onChange:d}),s.jsx("p",{children:s.jsx("a",{href:"https://github.com/IJMacD/rfc3339-iso8601",children:"Source on GitHub"})})]})]})})}function za(e,t,n){const r=[];return e&&r.push("RFC 3339"),t&&r.push("ISO 8601"),n&&r.push("HTML"),r.join(" vs ")}const Hm=Qc(document.getElementById("root"));Hm.render(s.jsx(Qe.StrictMode,{children:s.jsx(Vm,{})})); diff --git a/assets/index-ec5731a3.js b/assets/index-ec5731a3.js deleted file mode 100644 index c025b1e..0000000 --- a/assets/index-ec5731a3.js +++ /dev/null @@ -1,68 +0,0 @@ -(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const i of l)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(l){const i={};return l.integrity&&(i.integrity=l.integrity),l.referrerPolicy&&(i.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?i.credentials="include":l.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(l){if(l.ep)return;l.ep=!0;const i=n(l);fetch(l.href,i)}})();var ms=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var zu={exports:{}},vl={},Yu={exports:{}},z={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var lr=Symbol.for("react.element"),Jc=Symbol.for("react.portal"),qc=Symbol.for("react.fragment"),bc=Symbol.for("react.strict_mode"),ed=Symbol.for("react.profiler"),td=Symbol.for("react.provider"),nd=Symbol.for("react.context"),rd=Symbol.for("react.forward_ref"),ld=Symbol.for("react.suspense"),id=Symbol.for("react.memo"),od=Symbol.for("react.lazy"),hs=Symbol.iterator;function sd(e){return e===null||typeof e!="object"?null:(e=hs&&e[hs]||e["@@iterator"],typeof e=="function"?e:null)}var Lu={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ru=Object.assign,Ou={};function fn(e,t,n){this.props=e,this.context=t,this.refs=Ou,this.updater=n||Lu}fn.prototype.isReactComponent={};fn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};fn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Fu(){}Fu.prototype=fn.prototype;function vo(e,t,n){this.props=e,this.context=t,this.refs=Ou,this.updater=n||Lu}var xo=vo.prototype=new Fu;xo.constructor=vo;Ru(xo,fn.prototype);xo.isPureReactComponent=!0;var ys=Array.isArray,Iu=Object.prototype.hasOwnProperty,So={current:null},Uu={key:!0,ref:!0,__self:!0,__source:!0};function $u(e,t,n){var r,l={},i=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)Iu.call(t,r)&&!Uu.hasOwnProperty(r)&&(l[r]=t[r]);var c=arguments.length-2;if(c===1)l.children=n;else if(1>>1,q=M[Q];if(0>>1;Ql(Ol,_))jtl(dr,Ol)?(M[Q]=dr,M[jt]=_,Q=jt):(M[Q]=Ol,M[Tt]=_,Q=Tt);else if(jtl(dr,_))M[Q]=dr,M[jt]=_,Q=jt;else break e}}return P}function l(M,P){var _=M.sortIndex-P.sortIndex;return _!==0?_:M.id-P.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,c=o.now();e.unstable_now=function(){return o.now()-c}}var u=[],d=[],h=1,y=null,m=3,k=!1,x=!1,T=!1,A=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,a=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function f(M){for(var P=n(d);P!==null;){if(P.callback===null)r(d);else if(P.startTime<=M)r(d),P.sortIndex=P.expirationTime,t(u,P);else break;P=n(d)}}function g(M){if(T=!1,f(M),!x)if(n(u)!==null)x=!0,Ll(j);else{var P=n(d);P!==null&&Rl(g,P.startTime-M)}}function j(M,P){x=!1,T&&(T=!1,p(E),E=-1),k=!0;var _=m;try{for(f(P),y=n(u);y!==null&&(!(y.expirationTime>P)||M&&!Ae());){var Q=y.callback;if(typeof Q=="function"){y.callback=null,m=y.priorityLevel;var q=Q(y.expirationTime<=P);P=e.unstable_now(),typeof q=="function"?y.callback=q:y===n(u)&&r(u),f(P)}else r(u);y=n(u)}if(y!==null)var cr=!0;else{var Tt=n(d);Tt!==null&&Rl(g,Tt.startTime-P),cr=!1}return cr}finally{y=null,m=_,k=!1}}var w=!1,C=null,E=-1,H=5,Y=-1;function Ae(){return!(e.unstable_now()-YM||125Q?(M.sortIndex=_,t(d,M),n(u)===null&&M===n(d)&&(T?(p(E),E=-1):T=!0,Rl(g,_-Q))):(M.sortIndex=q,t(u,M),x||k||(x=!0,Ll(j))),M},e.unstable_shouldYield=Ae,e.unstable_wrapCallback=function(M){var P=m;return function(){var _=m;m=P;try{return M.apply(this,arguments)}finally{m=_}}}})(Vu);Bu.exports=Vu;var vd=Bu.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Hu=I,we=vd;function S(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),fi=Object.prototype.hasOwnProperty,xd=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,vs={},xs={};function Sd(e){return fi.call(xs,e)?!0:fi.call(vs,e)?!1:xd.test(e)?xs[e]=!0:(vs[e]=!0,!1)}function kd(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function wd(e,t,n,r){if(t===null||typeof t>"u"||kd(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function de(e,t,n,r,l,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var re={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){re[e]=new de(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];re[t]=new de(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){re[e]=new de(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){re[e]=new de(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){re[e]=new de(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){re[e]=new de(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){re[e]=new de(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){re[e]=new de(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){re[e]=new de(e,5,!1,e.toLowerCase(),null,!1,!1)});var wo=/[\-:]([a-z])/g;function To(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(wo,To);re[t]=new de(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(wo,To);re[t]=new de(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(wo,To);re[t]=new de(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){re[e]=new de(e,1,!1,e.toLowerCase(),null,!1,!1)});re.xlinkHref=new de("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){re[e]=new de(e,1,!1,e.toLowerCase(),null,!0,!0)});function jo(e,t,n,r){var l=re.hasOwnProperty(t)?re[t]:null;(l!==null?l.type!==0:r||!(2c||l[o]!==i[c]){var u=` -`+l[o].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=o&&0<=c);break}}}finally{Ul=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Mn(e):""}function Td(e){switch(e.tag){case 5:return Mn(e.type);case 16:return Mn("Lazy");case 13:return Mn("Suspense");case 19:return Mn("SuspenseList");case 0:case 2:case 15:return e=$l(e.type,!1),e;case 11:return e=$l(e.type.render,!1),e;case 1:return e=$l(e.type,!0),e;default:return""}}function yi(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case $t:return"Fragment";case Ut:return"Portal";case pi:return"Profiler";case Co:return"StrictMode";case mi:return"Suspense";case hi:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Gu:return(e.displayName||"Context")+".Consumer";case Ku:return(e._context.displayName||"Context")+".Provider";case No:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Mo:return t=e.displayName||null,t!==null?t:yi(e.type)||"Memo";case lt:t=e._payload,e=e._init;try{return yi(e(t))}catch{}}return null}function jd(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return yi(t);case 8:return t===Co?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function vt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ju(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Cd(e){var t=Ju(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){r=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function mr(e){e._valueTracker||(e._valueTracker=Cd(e))}function qu(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ju(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Qr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function gi(e,t){var n=t.checked;return B({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ks(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=vt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function bu(e,t){t=t.checked,t!=null&&jo(e,"checked",t,!1)}function vi(e,t){bu(e,t);var n=vt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?xi(e,t.type,n):t.hasOwnProperty("defaultValue")&&xi(e,t.type,vt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ws(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function xi(e,t,n){(t!=="number"||Qr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var En=Array.isArray;function qt(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=hr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Wn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var _n={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Nd=["Webkit","ms","Moz","O"];Object.keys(_n).forEach(function(e){Nd.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),_n[t]=_n[e]})});function ra(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||_n.hasOwnProperty(e)&&_n[e]?(""+t).trim():t+"px"}function la(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=ra(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var Md=B({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function wi(e,t){if(t){if(Md[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(S(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(S(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(S(61))}if(t.style!=null&&typeof t.style!="object")throw Error(S(62))}}function Ti(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ji=null;function Eo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ci=null,bt=null,en=null;function Cs(e){if(e=sr(e)){if(typeof Ci!="function")throw Error(S(280));var t=e.stateNode;t&&(t=Tl(t),Ci(e.stateNode,e.type,t))}}function ia(e){bt?en?en.push(e):en=[e]:bt=e}function oa(){if(bt){var e=bt,t=en;if(en=bt=null,Cs(e),t)for(e=0;e>>=0,e===0?32:31-(Fd(e)/Id|0)|0}var yr=64,gr=4194304;function Dn(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Jr(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes,o=n&268435455;if(o!==0){var c=o&~l;c!==0?r=Dn(c):(i&=o,i!==0&&(r=Dn(i)))}else o=n&~l,o!==0?r=Dn(o):i!==0&&(r=Dn(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,i=t&-t,l>=i||l===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function ir(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Oe(t),e[t]=n}function Zd(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=zn),Ys=String.fromCharCode(32),Ls=!1;function Na(e,t){switch(e){case"keyup":return vf.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ma(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Wt=!1;function Sf(e,t){switch(e){case"compositionend":return Ma(t);case"keypress":return t.which!==32?null:(Ls=!0,Ys);case"textInput":return e=t.data,e===Ys&&Ls?null:e;default:return null}}function kf(e,t){if(Wt)return e==="compositionend"||!Ro&&Na(e,t)?(e=ja(),Yr=zo=ut=null,Wt=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Is(n)}}function _a(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?_a(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Aa(){for(var e=window,t=Qr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Qr(e.document)}return t}function Oo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Pf(e){var t=Aa(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&_a(n.ownerDocument.documentElement,n)){if(r!==null&&Oo(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,i=Math.min(r.start,l);r=r.end===void 0?i:Math.min(r.end,l),!e.extend&&i>r&&(l=r,r=i,i=l),l=Us(n,i);var o=Us(n,r);l&&o&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Zt=null,_i=null,Ln=null,Ai=!1;function $s(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ai||Zt==null||Zt!==Qr(r)||(r=Zt,"selectionStart"in r&&Oo(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ln&&Kn(Ln,r)||(Ln=r,r=el(_i,"onSelect"),0Ht||(e.current=Fi[Ht],Fi[Ht]=null,Ht--)}function O(e,t){Ht++,Fi[Ht]=e.current,e.current=t}var xt={},se=kt(xt),me=kt(!1),At=xt;function on(e,t){var n=e.type.contextTypes;if(!n)return xt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},i;for(i in n)l[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function he(e){return e=e.childContextTypes,e!=null}function nl(){U(me),U(se)}function Ks(e,t,n){if(se.current!==xt)throw Error(S(168));O(se,t),O(me,n)}function $a(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(S(108,jd(e)||"Unknown",l));return B({},n,r)}function rl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||xt,At=se.current,O(se,e),O(me,me.current),!0}function Gs(e,t,n){var r=e.stateNode;if(!r)throw Error(S(169));n?(e=$a(e,t,At),r.__reactInternalMemoizedMergedChildContext=e,U(me),U(se),O(se,e)):U(me),O(me,n)}var Ke=null,jl=!1,ti=!1;function Wa(e){Ke===null?Ke=[e]:Ke.push(e)}function Wf(e){jl=!0,Wa(e)}function wt(){if(!ti&&Ke!==null){ti=!0;var e=0,t=R;try{var n=Ke;for(R=1;e>=o,l-=o,Ge=1<<32-Oe(t)+l|n<E?(H=C,C=null):H=C.sibling;var Y=m(p,C,f[E],g);if(Y===null){C===null&&(C=H);break}e&&C&&Y.alternate===null&&t(p,C),a=i(Y,a,E),w===null?j=Y:w.sibling=Y,w=Y,C=H}if(E===f.length)return n(p,C),$&&Ct(p,E),j;if(C===null){for(;EE?(H=C,C=null):H=C.sibling;var Ae=m(p,C,Y.value,g);if(Ae===null){C===null&&(C=H);break}e&&C&&Ae.alternate===null&&t(p,C),a=i(Ae,a,E),w===null?j=Ae:w.sibling=Ae,w=Ae,C=H}if(Y.done)return n(p,C),$&&Ct(p,E),j;if(C===null){for(;!Y.done;E++,Y=f.next())Y=y(p,Y.value,g),Y!==null&&(a=i(Y,a,E),w===null?j=Y:w.sibling=Y,w=Y);return $&&Ct(p,E),j}for(C=r(p,C);!Y.done;E++,Y=f.next())Y=k(C,p,E,Y.value,g),Y!==null&&(e&&Y.alternate!==null&&C.delete(Y.key===null?E:Y.key),a=i(Y,a,E),w===null?j=Y:w.sibling=Y,w=Y);return e&&C.forEach(function(hn){return t(p,hn)}),$&&Ct(p,E),j}function A(p,a,f,g){if(typeof f=="object"&&f!==null&&f.type===$t&&f.key===null&&(f=f.props.children),typeof f=="object"&&f!==null){switch(f.$$typeof){case pr:e:{for(var j=f.key,w=a;w!==null;){if(w.key===j){if(j=f.type,j===$t){if(w.tag===7){n(p,w.sibling),a=l(w,f.props.children),a.return=p,p=a;break e}}else if(w.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===lt&&nu(j)===w.type){n(p,w.sibling),a=l(w,f.props),a.ref=wn(p,w,f),a.return=p,p=a;break e}n(p,w);break}else t(p,w);w=w.sibling}f.type===$t?(a=_t(f.props.children,p.mode,g,f.key),a.return=p,p=a):(g=Wr(f.type,f.key,f.props,null,p.mode,g),g.ref=wn(p,a,f),g.return=p,p=g)}return o(p);case Ut:e:{for(w=f.key;a!==null;){if(a.key===w)if(a.tag===4&&a.stateNode.containerInfo===f.containerInfo&&a.stateNode.implementation===f.implementation){n(p,a.sibling),a=l(a,f.children||[]),a.return=p,p=a;break e}else{n(p,a);break}else t(p,a);a=a.sibling}a=ai(f,p.mode,g),a.return=p,p=a}return o(p);case lt:return w=f._init,A(p,a,w(f._payload),g)}if(En(f))return x(p,a,f,g);if(gn(f))return T(p,a,f,g);jr(p,f)}return typeof f=="string"&&f!==""||typeof f=="number"?(f=""+f,a!==null&&a.tag===6?(n(p,a.sibling),a=l(a,f),a.return=p,p=a):(n(p,a),a=ui(f,p.mode,g),a.return=p,p=a),o(p)):n(p,a)}return A}var un=Xa(!0),Ja=Xa(!1),ur={},Be=kt(ur),qn=kt(ur),bn=kt(ur);function Dt(e){if(e===ur)throw Error(S(174));return e}function Ho(e,t){switch(O(bn,t),O(qn,e),O(Be,ur),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ki(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ki(t,e)}U(Be),O(Be,t)}function an(){U(Be),U(qn),U(bn)}function qa(e){Dt(bn.current);var t=Dt(Be.current),n=ki(t,e.type);t!==n&&(O(qn,e),O(Be,n))}function Qo(e){qn.current===e&&(U(Be),U(qn))}var W=kt(0);function al(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ni=[];function Ko(){for(var e=0;en?n:4,e(!0);var r=ri.transition;ri.transition={};try{e(!1),t()}finally{R=n,ri.transition=r}}function mc(){return _e().memoizedState}function Hf(e,t,n){var r=yt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},hc(e))yc(t,n);else if(n=Ha(e,t,n,r),n!==null){var l=ae();Fe(n,e,r,l),gc(n,t,r)}}function Qf(e,t,n){var r=yt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(hc(e))yc(t,l);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,c=i(o,n);if(l.hasEagerState=!0,l.eagerState=c,Ie(c,o)){var u=t.interleaved;u===null?(l.next=l,Bo(t)):(l.next=u.next,u.next=l),t.interleaved=l;return}}catch{}finally{}n=Ha(e,t,l,r),n!==null&&(l=ae(),Fe(n,e,r,l),gc(n,t,r))}}function hc(e){var t=e.alternate;return e===Z||t!==null&&t===Z}function yc(e,t){Rn=cl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function gc(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Po(e,n)}}var dl={readContext:Pe,useCallback:le,useContext:le,useEffect:le,useImperativeHandle:le,useInsertionEffect:le,useLayoutEffect:le,useMemo:le,useReducer:le,useRef:le,useState:le,useDebugValue:le,useDeferredValue:le,useTransition:le,useMutableSource:le,useSyncExternalStore:le,useId:le,unstable_isNewReconciler:!1},Kf={readContext:Pe,useCallback:function(e,t){return $e().memoizedState=[e,t===void 0?null:t],e},useContext:Pe,useEffect:lu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Fr(4194308,4,ac.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Fr(4194308,4,e,t)},useInsertionEffect:function(e,t){return Fr(4,2,e,t)},useMemo:function(e,t){var n=$e();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=$e();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Hf.bind(null,Z,e),[r.memoizedState,e]},useRef:function(e){var t=$e();return e={current:e},t.memoizedState=e},useState:ru,useDebugValue:bo,useDeferredValue:function(e){return $e().memoizedState=e},useTransition:function(){var e=ru(!1),t=e[0];return e=Vf.bind(null,e[1]),$e().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Z,l=$e();if($){if(n===void 0)throw Error(S(407));n=n()}else{if(n=t(),ee===null)throw Error(S(349));Yt&30||tc(r,t,n)}l.memoizedState=n;var i={value:n,getSnapshot:t};return l.queue=i,lu(rc.bind(null,r,i,e),[e]),r.flags|=2048,nr(9,nc.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=$e(),t=ee.identifierPrefix;if($){var n=Xe,r=Ge;n=(r&~(1<<32-Oe(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=er++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[We]=t,e[Jn]=r,Nc(e,t,!1,!1),t.stateNode=e;e:{switch(o=Ti(n,r),n){case"dialog":F("cancel",e),F("close",e),l=r;break;case"iframe":case"object":case"embed":F("load",e),l=r;break;case"video":case"audio":for(l=0;ldn&&(t.flags|=128,r=!0,Tn(i,!1),t.lanes=4194304)}else{if(!r)if(e=al(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Tn(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!$)return ie(t),null}else 2*K()-i.renderingStartTime>dn&&n!==1073741824&&(t.flags|=128,r=!0,Tn(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(n=i.last,n!==null?n.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=K(),t.sibling=null,n=W.current,O(W,r?n&1|2:n&1),t):(ie(t),null);case 22:case 23:return is(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?xe&1073741824&&(ie(t),t.subtreeFlags&6&&(t.flags|=8192)):ie(t),null;case 24:return null;case 25:return null}throw Error(S(156,t.tag))}function np(e,t){switch(Io(t),t.tag){case 1:return he(t.type)&&nl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return an(),U(me),U(se),Ko(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Qo(t),null;case 13:if(U(W),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(S(340));sn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return U(W),null;case 4:return an(),null;case 10:return Zo(t.type._context),null;case 22:case 23:return is(),null;case 24:return null;default:return null}}var Nr=!1,oe=!1,rp=typeof WeakSet=="function"?WeakSet:Set,N=null;function Xt(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){V(e,t,r)}else n.current=null}function Xi(e,t,n){try{n()}catch(r){V(e,t,r)}}var pu=!1;function lp(e,t){if(zi=qr,e=Aa(),Oo(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,c=-1,u=-1,d=0,h=0,y=e,m=null;t:for(;;){for(var k;y!==n||l!==0&&y.nodeType!==3||(c=o+l),y!==i||r!==0&&y.nodeType!==3||(u=o+r),y.nodeType===3&&(o+=y.nodeValue.length),(k=y.firstChild)!==null;)m=y,y=k;for(;;){if(y===e)break t;if(m===n&&++d===l&&(c=o),m===i&&++h===r&&(u=o),(k=y.nextSibling)!==null)break;y=m,m=y.parentNode}y=k}n=c===-1||u===-1?null:{start:c,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Yi={focusedElem:e,selectionRange:n},qr=!1,N=t;N!==null;)if(t=N,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,N=e;else for(;N!==null;){t=N;try{var x=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var T=x.memoizedProps,A=x.memoizedState,p=t.stateNode,a=p.getSnapshotBeforeUpdate(t.elementType===t.type?T:Ye(t.type,T),A);p.__reactInternalSnapshotBeforeUpdate=a}break;case 3:var f=t.stateNode.containerInfo;f.nodeType===1?f.textContent="":f.nodeType===9&&f.documentElement&&f.removeChild(f.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(S(163))}}catch(g){V(t,t.return,g)}if(e=t.sibling,e!==null){e.return=t.return,N=e;break}N=t.return}return x=pu,pu=!1,x}function On(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var i=l.destroy;l.destroy=void 0,i!==void 0&&Xi(t,n,i)}l=l.next}while(l!==r)}}function Ml(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ji(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Dc(e){var t=e.alternate;t!==null&&(e.alternate=null,Dc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[We],delete t[Jn],delete t[Oi],delete t[Uf],delete t[$f])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Pc(e){return e.tag===5||e.tag===3||e.tag===4}function mu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Pc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function qi(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=tl));else if(r!==4&&(e=e.child,e!==null))for(qi(e,t,n),e=e.sibling;e!==null;)qi(e,t,n),e=e.sibling}function bi(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(bi(e,t,n),e=e.sibling;e!==null;)bi(e,t,n),e=e.sibling}var te=null,Le=!1;function rt(e,t,n){for(n=n.child;n!==null;)_c(e,t,n),n=n.sibling}function _c(e,t,n){if(Ze&&typeof Ze.onCommitFiberUnmount=="function")try{Ze.onCommitFiberUnmount(xl,n)}catch{}switch(n.tag){case 5:oe||Xt(n,t);case 6:var r=te,l=Le;te=null,rt(e,t,n),te=r,Le=l,te!==null&&(Le?(e=te,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):te.removeChild(n.stateNode));break;case 18:te!==null&&(Le?(e=te,n=n.stateNode,e.nodeType===8?ei(e.parentNode,n):e.nodeType===1&&ei(e,n),Hn(e)):ei(te,n.stateNode));break;case 4:r=te,l=Le,te=n.stateNode.containerInfo,Le=!0,rt(e,t,n),te=r,Le=l;break;case 0:case 11:case 14:case 15:if(!oe&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var i=l,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Xi(n,t,o),l=l.next}while(l!==r)}rt(e,t,n);break;case 1:if(!oe&&(Xt(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(c){V(n,t,c)}rt(e,t,n);break;case 21:rt(e,t,n);break;case 22:n.mode&1?(oe=(r=oe)||n.memoizedState!==null,rt(e,t,n),oe=r):rt(e,t,n);break;default:rt(e,t,n)}}function hu(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new rp),t.forEach(function(r){var l=pp.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function ze(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=o),r&=~i}if(r=l,r=K()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*op(r/1960))-r,10e?16:e,at===null)var r=!1;else{if(e=at,at=null,ml=0,L&6)throw Error(S(331));var l=L;for(L|=4,N=e.current;N!==null;){var i=N,o=i.child;if(N.flags&16){var c=i.deletions;if(c!==null){for(var u=0;uK()-rs?Pt(e,0):ns|=n),ye(e,t)}function Ic(e,t){t===0&&(e.mode&1?(t=gr,gr<<=1,!(gr&130023424)&&(gr=4194304)):t=1);var n=ae();e=et(e,t),e!==null&&(ir(e,t,n),ye(e,n))}function fp(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ic(e,n)}function pp(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(S(314))}r!==null&&r.delete(t),Ic(e,n)}var Uc;Uc=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||me.current)pe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return pe=!1,ep(e,t,n);pe=!!(e.flags&131072)}else pe=!1,$&&t.flags&1048576&&Za(t,il,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ir(e,t),e=t.pendingProps;var l=on(t,se.current);nn(t,n),l=Xo(null,t,r,e,l,n);var i=Jo();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,he(r)?(i=!0,rl(t)):i=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Vo(t),l.updater=Cl,t.stateNode=l,l._reactInternals=t,Zi(t,r,e,n),t=Hi(null,t,r,!0,i,n)):(t.tag=0,$&&i&&Fo(t),ue(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ir(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=hp(r),e=Ye(r,e),l){case 0:t=Vi(null,t,r,e,n);break e;case 1:t=cu(null,t,r,e,n);break e;case 11:t=uu(null,t,r,e,n);break e;case 14:t=au(null,t,r,Ye(r.type,e),n);break e}throw Error(S(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ye(r,l),Vi(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ye(r,l),cu(e,t,r,l,n);case 3:e:{if(Tc(t),e===null)throw Error(S(387));r=t.pendingProps,i=t.memoizedState,l=i.element,Qa(e,t),ul(t,r,null,n);var o=t.memoizedState;if(r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){l=cn(Error(S(423)),t),t=du(e,t,r,n,l);break e}else if(r!==l){l=cn(Error(S(424)),t),t=du(e,t,r,n,l);break e}else for(Se=pt(t.stateNode.containerInfo.firstChild),ke=t,$=!0,Re=null,n=Ja(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(sn(),r===l){t=tt(e,t,n);break e}ue(e,t,r,n)}t=t.child}return t;case 5:return qa(t),e===null&&Ui(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,o=l.children,Li(r,l)?o=null:i!==null&&Li(r,i)&&(t.flags|=32),wc(e,t),ue(e,t,o,n),t.child;case 6:return e===null&&Ui(t),null;case 13:return jc(e,t,n);case 4:return Ho(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=un(t,null,r,n):ue(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ye(r,l),uu(e,t,r,l,n);case 7:return ue(e,t,t.pendingProps,n),t.child;case 8:return ue(e,t,t.pendingProps.children,n),t.child;case 12:return ue(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,i=t.memoizedProps,o=l.value,O(ol,r._currentValue),r._currentValue=o,i!==null)if(Ie(i.value,o)){if(i.children===l.children&&!me.current){t=tt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var c=i.dependencies;if(c!==null){o=i.child;for(var u=c.firstContext;u!==null;){if(u.context===r){if(i.tag===1){u=Je(-1,n&-n),u.tag=2;var d=i.updateQueue;if(d!==null){d=d.shared;var h=d.pending;h===null?u.next=u:(u.next=h.next,h.next=u),d.pending=u}}i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),$i(i.return,n,t),c.lanes|=n;break}u=u.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(S(341));o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),$i(o,n,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}ue(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,nn(t,n),l=Pe(l),r=r(l),t.flags|=1,ue(e,t,r,n),t.child;case 14:return r=t.type,l=Ye(r,t.pendingProps),l=Ye(r.type,l),au(e,t,r,l,n);case 15:return Sc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ye(r,l),Ir(e,t),t.tag=1,he(r)?(e=!0,rl(t)):e=!1,nn(t,n),Ga(t,r,l),Zi(t,r,l,n),Hi(null,t,r,!0,e,n);case 19:return Cc(e,t,n);case 22:return kc(e,t,n)}throw Error(S(156,t.tag))};function $c(e,t){return pa(e,t)}function mp(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ee(e,t,n,r){return new mp(e,t,n,r)}function ss(e){return e=e.prototype,!(!e||!e.isReactComponent)}function hp(e){if(typeof e=="function")return ss(e)?1:0;if(e!=null){if(e=e.$$typeof,e===No)return 11;if(e===Mo)return 14}return 2}function gt(e,t){var n=e.alternate;return n===null?(n=Ee(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Wr(e,t,n,r,l,i){var o=2;if(r=e,typeof e=="function")ss(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case $t:return _t(n.children,l,i,t);case Co:o=8,l|=8;break;case pi:return e=Ee(12,n,t,l|2),e.elementType=pi,e.lanes=i,e;case mi:return e=Ee(13,n,t,l),e.elementType=mi,e.lanes=i,e;case hi:return e=Ee(19,n,t,l),e.elementType=hi,e.lanes=i,e;case Xu:return Dl(n,l,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ku:o=10;break e;case Gu:o=9;break e;case No:o=11;break e;case Mo:o=14;break e;case lt:o=16,r=null;break e}throw Error(S(130,e==null?e:typeof e,""))}return t=Ee(o,n,t,l),t.elementType=e,t.type=r,t.lanes=i,t}function _t(e,t,n,r){return e=Ee(7,e,r,t),e.lanes=n,e}function Dl(e,t,n,r){return e=Ee(22,e,r,t),e.elementType=Xu,e.lanes=n,e.stateNode={isHidden:!1},e}function ui(e,t,n){return e=Ee(6,e,null,t),e.lanes=n,e}function ai(e,t,n){return t=Ee(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function yp(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Zl(0),this.expirationTimes=Zl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Zl(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function us(e,t,n,r,l,i,o,c,u){return e=new yp(e,t,n,c,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ee(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Vo(i),e}function gp(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Vc)}catch(e){console.error(e)}}Vc(),Zu.exports=Te;var wp=Zu.exports,Hc,Tu=wp;Hc=Tu.createRoot,Tu.hydrateRoot;const ar=I.createContext(""),Tp=[0,31,59,90,120,151,181,212,243,273,304,334];function fs(e){return e%4===0&&(e%400===0||e%100!==0)}function ju(e){const t=e.getUTCMonth()>1&&fs(e.getUTCFullYear())?1:0;return Tp[e.getUTCMonth()]+e.getUTCDate()+t}function jp(e){const t=e.getUTCMonth();return t===1?fs(e.getUTCFullYear())?29:28:[31,0,31,30,31,30,31,31,30,31,30,31][t]}function Cp(e){const t=new Date(e);return t.setUTCMonth(11),t.setUTCDate(31),lo(t)}function lo(e){let t,n,r;if(e.getUTCMonth()<2){const l=e.getUTCFullYear()-1,i=D(l/4)-D(l/100)+D(l/400),o=D((l-1)/4)-D((l-1)/100)+D((l-1)/400);r=i-o;const c=0,u=e.getUTCDate()-1+D(31*e.getUTCMonth());n=(l+i)%7;const d=(u+n-c)%7;t=u+3-d}else{const l=e.getUTCFullYear(),i=D(l/4)-D(l/100)+D(l/400),o=D((l-1)/4)-D((l-1)/100)+D((l-1)/400);r=i-o;const c=r+1,u=e.getUTCDate()+D((153*D(e.getUTCMonth()-2)+2)/5)+58+r;n=(l+i)%7;const d=(u+n-c)%7;t=u+3-d}return t<0?53-D((n-r)/5):t>364+r?1:D(t/7)+1}function Np(e){let t,n,r;if(e.getUTCMonth()<2){const l=e.getUTCFullYear()-1,i=D(l/4)-D(l/100)+D(l/400),o=D((l-1)/4)-D((l-1)/100)+D((l-1)/400);r=i-o;const c=0,u=e.getUTCDate()-1+D(31*e.getUTCMonth());n=(l+i)%7;const d=(u+n-c)%7;t=u+3-d}else{const l=e.getUTCFullYear(),i=D(l/4)-D(l/100)+D(l/400),o=D((l-1)/4)-D((l-1)/100)+D((l-1)/400);r=i-o;const c=r+1,u=e.getUTCDate()+D((153*D(e.getUTCMonth()-2)+2)/5)+58+r;n=(l+i)%7;const d=(u+n-c)%7;t=u+3-d}return t<0?e.getUTCFullYear()-1:t>364+r?e.getUTCFullYear()+1:e.getUTCFullYear()}function ci(e){let t;if(e.getUTCMonth()<2){const n=e.getUTCFullYear()-1,r=D(n/4)-D(n/100)+D(n/400),l=0,i=e.getUTCDate()-1+D(31*e.getUTCMonth()),o=(n+r)%7;t=(i+o-l)%7}else{const n=e.getUTCFullYear(),r=D(n/4)-D(n/100)+D(n/400),l=D((n-1)/4)-D((n-1)/100)+D((n-1)/400),i=r-l,o=i+1,c=e.getUTCDate()+D((153*D(e.getUTCMonth()-2)+2)/5)+58+i,u=(n+r)%7;t=(c+u-o)%7}return t+1}function D(e){return e|0}let di=Math.random();function Un(e,t=new Date,n=-t.getTimezoneOffset()){const r=e.replace(/%(−?)(.\d+)?([a-z])/ig,"");if(r.match(/Z$/i))n=0;else{const l=/([-+−])(\d{2}):?(\d{2})?$/.exec(r);if(l){const i=l[1]==="+",o=+l[2],c=l[3]?+l[3]:0;n=(i?1:-1)*(o*60+c)}}return v(e,t,n)}function v(e,t=new Date,n=0){isNaN(n)&&(n=-t.getTimezoneOffset());const r=n!==0?new Date(+t+n*60*1e3):t;return e.replace(/%(−?)(.\d+)?([a-z])/ig,(l,i,o,c)=>{let u="";if(o){const d=o[0],h=+o.substring(1),y=+r%864e5,m=y/864e5;switch(c){case"L":u=ge(r.getUTCFullYear()%1e3/1e3,h);break;case"C":u=ge(r.getUTCFullYear()%100/100,h);break;case"X":u=ge(r.getUTCFullYear()%10/10,h);break;case"Y":const k=ju(r)-1,x=fs(r.getUTCFullYear())?366:365;u=ge((k+m)/x,h);break;case"M":const T=r.getUTCDate()-1,A=jp(r);u=ge((T+m)/A,h);break;case"D":u=ge(m,h);break;case"V":const p=lo(r)-1,a=Cp(r),f=ci(r)+m;u=ge((p+f/7)/a,h);break;case"W":u=ge((ci(r)-1+m)/7,h);break;case"w":u=ge(m,h);break;case"O":u=ge(m,h);break;case"h":u=ge(y%36e5/36e5,h);break;case"m":u=ge(y%6e4/6e4,h);break;case"s":u=ge(di,h);break;case"u":u=(di*1e6%1).toFixed(h);break}u=u.substring(1).replace(".",d)}switch(c){case"L":return(r.getUTCFullYear()/1e3|0).toString()+u;case"C":return Ve(r.getUTCFullYear()/100|0)+u;case"X":return Cu(r.getUTCFullYear()/10|0)+u;case"Y":return Nu(r.getUTCFullYear())+u;case"M":return Ve(r.getUTCMonth()+1)+u;case"D":return Ve(r.getUTCDate())+u;case"V":return Nu(Np(r))+u;case"W":return Ve(lo(r))+u;case"w":return ci(r).toString()+u;case"O":return Cu(ju(r))+u;case"h":return Ve(r.getUTCHours())+u;case"m":return Ve(r.getUTCMinutes())+u;case"s":return Ve(r.getUTCSeconds())+u;case"u":return Math.round(di*1e6).toString().padStart(6,"0")+u;case"Z":{const d=-(n/60)|0;return`${d<=0?"+":i||"-"}${Ve(Math.abs(d))}`}case"z":{const d=n%60;return Ve(Math.abs(d))}default:return l}})}function Ve(e){return e.toString().padStart(2,"0")}function Cu(e){return e.toString().padStart(3,"0")}function Nu(e){return e.toString().padStart(4,"0")}function ge(e,t){const n=10**t;return(Math.floor(e*n)/n).toFixed(t)}function Yl(e){if(e.length!==0)try{const t=Intl.DateTimeFormat([],{timeZone:e,timeZoneName:"longOffset"}).format(new Date),r=t.substring(t.length-6).split(":").map(i=>+i),l=Math.sign(r[0])||1;return r[0]*60+l*r[1]}catch{return}}function Mp(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return}}function Ep(e){const{date:t,rfc:n=!0,iso:r=!0,html:l=!1,showKey:i=!1,...o}=e,[c,u]=Qe.useState(!0),[d,h]=Qe.useState(!0),[y,m]=Qe.useState(!0),[k,x]=Qe.useState(!0),[T,A]=Qe.useState(!0),p=Qe.useContext(ar),a=typeof p=="string"?Yl(p):void 0,f=`diagram ${i?"diagram--key":""} ${c?"":"diagram--hide-date"} ${d?"":"diagram--hide-time"} ${y?"":"diagram--hide-datetime"} ${k?"":"diagram--hide-period"} ${T?"":"diagram--hide-range"}`;return s.jsxs("svg",{viewBox:"10 50 270 190",xmlns:"http://www.w3.org/2000/svg",className:f,...o,children:[s.jsx("style",{children:"text{font-family:sans-serif;font-size:2.653px;}text.key-label{font-size:10.503px;}"}),i&&s.jsxs("g",{className:"key",children:[s.jsxs("g",{onClick:()=>u(g=>!g),children:[s.jsx("rect",{x:220,y:60,width:3,height:3,className:c?"key-date":"key-off"}),s.jsx("text",{x:225,y:62,children:"Date"})]}),s.jsxs("g",{onClick:()=>h(g=>!g),children:[s.jsx("rect",{x:220,y:65,width:3,height:3,className:d?"key-time":"key-off"}),s.jsx("text",{x:225,y:67,children:"Time"})]}),s.jsxs("g",{onClick:()=>m(g=>!g),children:[s.jsx("rect",{x:220,y:70,width:3,height:3,className:y?"key-datetime":"key-off"}),s.jsx("text",{x:225,y:72,children:"DateTime"})]}),s.jsxs("g",{onClick:()=>x(g=>!g),children:[s.jsx("rect",{x:220,y:75,width:3,height:3,className:k?"key-period":"key-off"}),s.jsx("text",{x:225,y:77,children:"Period"})]}),s.jsxs("g",{onClick:()=>A(g=>!g),children:[s.jsx("rect",{x:220,y:80,width:3,height:3,className:T?"key-range":"key-off"}),s.jsx("text",{x:225,y:82,children:"Range"})]})]}),n&&s.jsxs("g",{id:"rfc",children:[s.jsx("circle",{cx:75,cy:125,r:50,fill:"none",stroke:"#f0f",strokeWidth:.372}),s.jsx("text",{x:23.692,y:73.5,fill:"#f0f",className:"key-label",children:"RFC 3339"}),s.jsx("text",{x:58,y:82,className:"datetime",children:v("%Y-%M-%D_%h:%m:%sZ",t)}),s.jsx("text",{x:50,y:88,className:"datetime",children:v("%Y-%M-%D_%h:%m:%.3sZ",t)}),s.jsx("text",{x:46,y:94,className:"datetime",children:v("%Y-%M-%DT%h:%m:%s-00:00",t)}),s.jsx("text",{x:42,y:100,className:"datetime",children:v("%Y-%M-%Dt%h:%m:%sz",t)}),s.jsx("text",{x:32,y:106,className:"datetime",children:v("%Y-%M-%Dt%h:%m:%s%Z:%z",t,a)})]}),(n||l)&&s.jsxs("g",{id:"rfc-html",children:[s.jsx("text",{x:37,y:128,className:"datetime",children:v("%Y-%M-%D %h:%m:%sZ",t)}),s.jsx("text",{x:32,y:134,className:"datetime",children:v("%Y-%M-%D %h:%m:%.3sZ",t)}),s.jsx("text",{x:29,y:140,className:"datetime",children:v("%Y-%M-%D %h:%m:%s%Z:%z",t,a)})]}),(r||n||l)&&s.jsxs("g",{id:"all",children:[s.jsx("text",{x:76,y:110,className:"date",children:v("%Y-%M-%D",t,a)}),s.jsx("text",{x:72,y:116,className:"datetime",children:v("%Y-%M-%DT%h:%m:%sZ",t)}),s.jsx("text",{x:84,y:122,className:"datetime",children:v("%Y-%M-%DT%h:%m:%.1sZ",t)}),s.jsx("text",{x:70,y:128,className:"datetime",children:v("%Y-%M-%DT%h:%m:%.2sZ",t)}),s.jsx("text",{x:86,y:135,className:"datetime",children:v("%Y-%M-%DT%h:%m:%.3sZ",t)}),s.jsx("text",{x:68,y:140,className:"datetime",children:v("%Y-%M-%DT%h:%m:%s+00:00",t)}),s.jsx("text",{x:84,y:145,className:"datetime",children:v("%Y-%M-%DT%h:%m:%.1s+00:00",t)}),s.jsx("text",{x:64,y:150,className:"datetime",children:v("%Y-%M-%DT%h:%m:%s%Z:%z",t,a)}),s.jsx("text",{x:74,y:155,className:"datetime",children:v("%Y-%M-%DT%h:%m:%.1s%Z:%z",t,a)}),s.jsx("text",{x:70,y:160,className:"datetime",children:v("%Y-%M-%DT%h:%m:%.2s%Z:%z",t,a)}),s.jsx("text",{x:65,y:165,className:"datetime",children:v("%Y-%M-%DT%h:%m:%.3s%Z:%z",t,a)})]}),(r||n)&&s.jsxs("g",{id:"rfc-iso",children:[s.jsx("text",{x:96,y:91,className:"time",children:v("%h:%m:%sZ",t)}),s.jsx("text",{x:92,y:94,className:"time",children:v("%h:%m:%.1sZ",t)}),s.jsx("text",{x:98,y:97,className:"time",children:v("%h:%m:%.2sZ",t)}),s.jsx("text",{x:90,y:100,className:"time",children:v("%h:%m:%.3sZ",t)}),s.jsx("text",{x:96,y:108,className:"time",children:v("%h:%m:%.3s%Z:%z",t,a)}),s.jsx("text",{x:104,y:112,className:"time",children:v("%h:%m:%s%Z:%z",t,a)}),s.jsx("text",{x:80,y:104,className:"datetime",children:v("%Y-%M-%DT%h:%m:%s.%uZ",t)})]}),r&&s.jsxs("g",{id:"iso",children:[s.jsx("circle",{cx:134.327,cy:148.288,r:72.135,fill:"none",stroke:"#00f",strokeWidth:.265}),s.jsxs("text",{x:170,y:78.692,fill:"#00f",className:"key-label",children:["ISO 8601",s.jsx("tspan",{x:170.8,dy:6,style:{fontSize:"0.4em"},children:"ISO 8601-1:2019"})]}),s.jsx("text",{x:110,y:84,className:"datetime",children:v("%Y-%M-%DT%,1h",t,a)}),s.jsx("text",{x:136,y:84,className:"datetime",children:v("%Y-%M-%DT%.1h",t,a)}),s.jsx("text",{x:126,y:88,className:"datetime",children:v("%Y-%M-%DT%h:%m:%s−01:00",t,-60)}),s.jsx("text",{x:116,y:92,className:"datetime",children:v("%Y-%M-%DT%h:%,1m",t,a)}),s.jsx("text",{x:148,y:92,className:"datetime",children:v("%Y-%M-%DT%h:%.1m",t,a)}),s.jsx("text",{x:120,y:96,className:"time",children:v("T%h:%m:%s",t,a)}),s.jsx("text",{x:140,y:96,className:"time",children:v("T%h:%m:%sZ",t)}),s.jsx("text",{x:160,y:96,className:"time",children:v("T%h:%m:%s%Z:%z",t,a)}),s.jsx("text",{x:164,y:100,className:"time",children:v("T%h:%m:%s%Z",t,a)}),s.jsx("text",{x:120,y:100,className:"date",children:v("%Y",t,a)}),s.jsx("text",{x:132,y:100,className:"date",children:v("%X",t,a)}),s.jsx("text",{x:142,y:100,className:"date",children:v("%C",t,a)}),s.jsx("text",{x:148,y:100,className:"time",children:v("%h:%m:%s%Z",t,a)}),s.jsx("text",{x:124,y:104,className:"date",children:v("%Y-%O",t,a)}),s.jsx("text",{x:140,y:104,className:"datetime",children:v("%Y-%OT%h:%m",t,a)}),s.jsx("text",{x:166,y:104,className:"datetime",children:v("%Y-%OT%.1h",t,a)}),s.jsx("text",{x:126,y:108,className:"datetime",children:v("%Y-%OT%h:%m:%s",t,a)}),s.jsx("text",{x:164,y:108,className:"range",children:v("%Y-%O/P2M",t,a)}),s.jsx("text",{x:128,y:112,className:"range",children:v("%Y-W%W/P2M",t,a)}),s.jsx("text",{x:166,y:116,className:"range",children:v("%Y-%OT%h/PT2M",t,a)}),s.jsx("text",{x:160,y:112,className:"range",children:v("%Y-W%W-%wT%h:%m/PT2M",t,a)}),s.jsx("text",{x:133.259,y:120,className:"date",children:v("%V-W%W-%w",t,a)}),s.jsx("text",{x:160.336,y:120,className:"datetime",children:v("%V-W%W-%wT%h:%m",t,a)}),s.jsx("text",{x:169.336,y:124,className:"datetime",children:v("%V-W%W-%wT%h:%m:%s",t,a)}),s.jsx("text",{x:129.087,y:124,className:"datetime",children:v("%Y-%M-%DT%h:%m:%s.%u",t,a)}),s.jsx("text",{x:128,y:128,className:"range",children:v("%Y/P2M",t,a)}),s.jsx("text",{x:144.336,y:128,className:"range",children:v("%Y-%M/P2M",t,a)}),s.jsx("text",{x:164.336,y:128,className:"range",children:v("%Y-%M-%D/P2M",t,a)}),s.jsx("text",{x:129.336,y:132,className:"range",children:v("%Y-%M-%DT%h/PT2M",t,a)}),s.jsx("text",{x:166,y:132,className:"range",children:v("%Y-%M-%DT%h:%m/PT2M",t,a)}),s.jsx("text",{x:128,y:136,className:"range",children:v("%Y-%M-%DT%h:%m:%s/P3D",t,a)}),s.jsx("text",{x:170,y:136,className:"range",children:v("%Y-%M-%DT%h:%m:%s/PT2M",t,a)}),s.jsx("text",{x:134,y:140,className:"range",children:v("%Y-%M-%D/28",t,a)}),s.jsx("text",{x:184,y:140,className:"range",children:v("%Y-W%W-%w/P2M",t,a)}),s.jsx("text",{x:192,y:144,className:"range",children:v("%Y-%M/12",t,a)}),s.jsx("text",{x:116,y:206,className:"range",children:v("%Y-%OT%h:%m:%s/PT3H",t,a)}),s.jsx("text",{x:130,y:116,className:"range",children:v("%Y-W%W-%wT%h:%m:%s/PT2M",t,a)}),s.jsx("text",{x:132,y:144,className:"period",children:"P1Y"}),s.jsx("text",{x:140,y:144,className:"period",children:"P1.5W"}),s.jsx("text",{x:134,y:150,className:"period",children:"P1,5Y"}),s.jsx("text",{x:134,y:156,className:"period",children:"P1.5Y"}),s.jsx("text",{x:134,y:162,className:"period",children:"P2M"}),s.jsx("text",{x:133.5,y:170,className:"period",children:"P1W"}),s.jsx("text",{x:132,y:176,className:"period",children:"P2.5M"}),s.jsx("text",{x:131,y:181,className:"period",children:"P2,5M"}),s.jsx("text",{x:132,y:186,className:"period",children:"P1Y2.5M"}),s.jsx("text",{x:138,y:191,className:"period",children:"P1Y2M"}),s.jsx("text",{x:126,y:191,className:"period",children:"P1Y2,5M"}),s.jsx("text",{x:126,y:196,className:"range",children:v("%Y-%M-%D/%Y-12-31",t,a)}),s.jsx("text",{x:120,y:201,className:"range",children:v("%Y-%M-%DT%h/23",t,a)}),s.jsx("text",{x:148,y:201,className:"period",children:"P1Y2.5MT4H"}),s.jsx("text",{x:150,y:206,className:"range",children:v("%Y-%M-%DT%h:%m/59",t,a)}),s.jsx("text",{x:104,y:212,className:"range",children:v("%Y-%M-%DT%h:%m:%s/59",t,a)}),s.jsx("text",{x:135,y:212,className:"range",children:v("R2/%Y-%O/P1Y2.5MT4H",t,a)}),s.jsx("text",{x:120,y:218,className:"range",children:v("R/%Y-W%W-%wT%h/PT45M",t,a)}),s.jsxs("g",{id:"iso-mutual",transform:"translate(20 -18)",children:[s.jsx("circle",{cx:150.327,cy:186.288,r:30.135,fill:"none",stroke:"#666",strokeWidth:.372,strokeDasharray:"4 4"}),s.jsxs("text",{x:180,y:210,fill:"#666",className:"key-label",style:{fontSize:8},children:["By Mutual Agreement",s.jsx("tspan",{x:180,dy:8,style:{fontSize:5},children:"(e.g. agreement on six-digit years)"})]}),s.jsx("text",{x:136,y:164,className:"date",children:v("+00%C",t,a)}),s.jsx("text",{x:144,y:160,className:"date",children:v("+00%X",t,a)}),s.jsx("text",{x:148,y:164,className:"date",children:v("+00%Y",t,a)}),s.jsx("text",{x:154,y:168,className:"date",children:v("+00%Y-%M",t,a)}),s.jsx("text",{x:128,y:168,className:"date",children:v("+00%Y-%M-%D",t,a)}),s.jsx("text",{x:130,y:172,className:"date",children:v("+00%Y%M%D",t,a)}),s.jsx("text",{x:148,y:172,className:"datetime",children:v("+00%Y-%M-%DT%h",t,a)}),s.jsx("text",{x:156,y:176,className:"date",children:v("+00%Y%M",t,a)}),s.jsx("text",{x:124,y:176,className:"datetime",children:v("+00%Y-%M-%DT%h:%m",t,a)}),s.jsx("text",{x:148,y:180,className:"datetime",children:v("+00%Y-%M-%DT%h:%m:%s",t,a)}),s.jsx("text",{x:124,y:184,className:"datetime",children:v("+00%V-W%W-%wT%h",t,a)}),s.jsx("text",{x:154,y:184,className:"datetime",children:v("+00%Y-%OT%h:%m",t,a)}),s.jsx("text",{x:138,y:188,className:"datetime",children:v("+00%V-W%W-%wT%h:%m",t,a)}),s.jsx("text",{x:124,y:192,className:"datetime",children:v("+00%Y-%OT%h",t,a)}),s.jsx("text",{x:148,y:192,className:"datetime",children:v("+00%Y%OT%.3h",t,a)}),s.jsx("text",{x:130,y:197,className:"datetime",children:v("+00%Y-%OT%h:%m%Z:%z",t,a)}),s.jsx("text",{x:128,y:202,className:"datetime",children:v("+00%Y-%OT%h:%m:%s",t,a)}),s.jsx("text",{x:144,y:207,className:"datetime",children:v("+00%Y%OT%h%m%s",t,a)}),s.jsx("text",{x:136,y:212,className:"datetime",children:v("+00%Y%M%DT%h%m%sZ",t)})]})]}),l&&s.jsxs("g",{id:"html",transform:"translate(-12 6)",children:[s.jsx("circle",{cx:90,cy:155,r:55,fill:"none",stroke:"#3c790a",strokeWidth:.265}),s.jsxs("text",{x:45,y:216,fill:"#3c790a",className:"key-label",children:["HTML",s.jsx("tspan",{dx:-28,dy:6,style:{fontSize:"0.4em"},children:"Living Standard"})]}),s.jsx("text",{x:42,y:172,className:"datetime",children:v("%Y-%M-%D %h:%m",t,a)}),s.jsx("text",{x:50,y:178,className:"datetime",children:v("%Y-%M-%D %h:%m:%s",t,a)}),s.jsx("text",{x:54,y:184,className:"datetime",children:v("%Y-%M-%D %h:%m:%.3s",t,a)}),s.jsx("text",{x:68,y:190,className:"date",children:v("--%M-%D",t)}),s.jsx("text",{x:74,y:196,className:"date",children:v("%M-%D",t)}),s.jsx("text",{x:88,y:196,className:"period",children:v("1 D",t,a)}),s.jsx("text",{x:82,y:202,className:"period",children:v("5 M 4 W",t,a)})]}),(r||l)&&s.jsxs("g",{id:"iso-html",children:[s.jsx("text",{x:123,y:144,className:"period",children:v("P1D",t,a)}),s.jsx("text",{x:124,y:150,className:"period",children:v("PT1H",t,a)}),s.jsx("text",{x:124,y:156,className:"period",children:v("PT1M",t,a)}),s.jsx("text",{x:116,y:162,className:"period",children:v("P1DT1H1M",t,a)}),s.jsx("text",{x:106,y:168,className:"period",children:v("P1DT1.1S",t,a)}),s.jsx("text",{x:124,y:168,className:"period",children:v("PT1S",t,a)}),s.jsx("text",{x:116,y:174,className:"period",children:v("P1TD1.12S",t,a)}),s.jsx("text",{x:100,y:174,className:"time",children:v("%h:%m:%s",t,a)}),s.jsx("text",{x:70,y:180,className:"time",children:v("%h:%m",t,a)}),s.jsx("text",{x:80,y:180,className:"time",children:v("%h:%m:%.1s",t,a)}),s.jsx("text",{x:94,y:180,className:"time",children:v("%h:%m:%.3s",t,a)}),s.jsx("text",{x:112,y:180,className:"period",children:v("P1DT1.123S",t,a)}),s.jsx("text",{x:80,y:186,className:"datetime",children:v("%Y-%M-%DT%h:%m:%s",t,a)}),s.jsx("text",{x:114,y:186,className:"date",children:v("%Y-%M",t,a)}),s.jsx("text",{x:100,y:192,className:"datetime",children:v("%Y-%M-%DT%h:%m",t,a)}),s.jsx("text",{x:85,y:198,className:"datetime",children:v("%Y-%M-%DT%h:%m:%.3s",t,a)}),s.jsx("text",{x:94,y:204,className:"date",children:v("%V-W%W",t,a)})]})]})}const Mu=typeof localStorage<"u"?localStorage:{getItem:()=>null,setItem:()=>{}};function Cn(e,t){const[n,r]=I.useState(()=>{const i=Mu.getItem(e);if(i===null)return t;try{return JSON.parse(i)}catch{return t}}),l=I.useCallback(i=>{r(i),Mu.setItem(e,JSON.stringify(i))},[e,r]);return[n,l]}function Dp(e,t){const n=new Blob([e]),r=URL.createObjectURL(n),l=document.createElement("a");l.download=t,l.href=r,document.body.append(l),l.click(),document.body.removeChild(l),setTimeout(()=>URL.revokeObjectURL(r),0)}function Ce(e,t){return e.map(n=>t.map(r=>[n,r])).flat()}const io=["%Y-%M-%D","%C","%X","%Y","%Y-%M","%Y-%O","%V-W%W","%V-W%W-%w","%Y%M%D","%Y%O","%VW%W","%VW%W%w"],Dr=["%h","%,1h","%.1h","%h:%m","%h:%,1m","%h:%.1m","%h:%m:%s","%h:%m:%.1s","%h:%m:%.2s","%h:%m:%,3s","%h:%m:%.3s","%h:%m:%s,%u","%h:%m:%s.%u"],gl=[...Dr,...Dr.map(e=>`${e}Z`),...Dr.map(e=>`${e}%Z`),...Dr.map(e=>`${e}%Z:%z`)],Eu=[...gl,...gl.map(e=>`T${e}`)],Pp=[...Eu,...Eu.map(e=>e.replace(/:/g,"")),"%h:%m:%s+00:00","%h:%m:%.1s+00:00","%h:%m:%.3s+00:00","%h:%m:%s.%u+00:00"],oo=[...new Set(Pp)],ve=["%Y-%M-%D","%V-W%W-%w","%Y-%O"],so=[...Ce(ve,gl).map(([e,t])=>`${e}T${t}`),...Ce(ve,gl).map(([e,t])=>`${e}T${t}`.replace(/[-:]/g,"")),"%Y-%M-%DT%h:%m:%s+08","%Y-%M-%DT%h:%m:%s+08:45","%Y-%M-%DT%h-12","%Y-%M-%DT%h-12:00","%Y-%M-%DT%h:%m-12","%Y-%M-%DT%h:%m-12:00","%Y-%M-%DT%h:%m:%s+00:00","%Y-%M-%DT%h:%m:%.3s+00:00"],uo=["P1Y","P1,5Y","P1.5Y","P1M","P1W","P1D","PT1H","P1H","PT1M","PT1S","P1S","PT1,5S","PT1.5S","P1Y1M","P1Y1D","P1Y1M1D","P1Y1M1DT1H1M1S","P1DT1H","P1MT1M","P1DT1M","P1.5W","P1,5W","P1DT1.000S","P1DT1.00000S","P1DT1H1M1.1S","P1H1M1.1S"],Du=["P1Y","P1M","P1D"],Pu=Ce(ve,["%h","%h:%m","%h:%m:%s","%h:%m:%.3s","%h:%mZ"]).map(([e,t])=>`${e}T${t}`),ao=[...Ce(ve,Du).map(([e,t])=>`${e}/${t}`),...Ce(ve,ve).map(([e,t])=>`${e}/${t}`),...Ce(Du,ve).map(([e,t])=>`${e}/${t}`),...Ce(Pu,["P1DT1H"]).map(([e,t])=>`${e}/${t}`),...Ce(Pu,["P1DT1H"]).map(([e,t])=>`${t}/${e}`),...Ce(ve,["P1Y"]).map(([e,t])=>`R/${e}/${t}`),...Ce(ve,ve).map(([e,t])=>`R/${e}/${t}`),...Ce(ve,["P1Y"]).map(([e,t])=>`R10/${e}/${t}`),...Ce(ve,ve).map(([e,t])=>`R10/${e}/${t}`)],co=["%Y-%M-%D"],fo=["%h:%m:%s%Z:%z","%h:%m:%.1s%Z:%z","%h:%m:%.2s%Z:%z","%h:%m:%.3s%Z:%z","%h:%m:%s.%u%Z:%z","%h:%m:%sZ","%h:%m:%.1sZ","%h:%m:%.2sZ","%h:%m:%.3sZ","%h:%m:%s.%uZ","%h:%m:%s+00:00","%h:%m:%.1s+00:00","%h:%m:%.3s+00:00","%h:%m:%s.%u+00:00","%h:%m:%s-00:00","%h:%m:%.1s-00:00","%h:%m:%.3s-00:00","%h:%m:%s.%u-00:00"],po=["%Y-%M-%DT%h:%m:%sZ","%Y-%M-%DT%h:%m:%.1sZ","%Y-%M-%DT%h:%m:%.2sZ","%Y-%M-%DT%h:%m:%.3sZ","%Y-%M-%DT%h:%m:%s.%uZ","%Y-%M-%Dt%h:%m:%sz","%Y-%M-%Dt%h:%m:%.3sz","%Y-%M-%DT%h:%m:%s%Z:%z","%Y-%M-%DT%h:%m:%.3s%Z:%z","%Y-%M-%DT%h:%m:%s.%u%Z:%z","%Y-%M-%D %h:%m:%s%Z:%z","%Y-%M-%D %h:%m:%.1s%Z:%z","%Y-%M-%D %h:%m:%.2s%Z:%z","%Y-%M-%D %h:%m:%.3s%Z:%z","%Y-%M-%D %h:%m:%s.%u%Z:%z","%Y-%M-%D %h:%m:%sZ","%Y-%M-%D_%h:%m:%sZ","%Y-%M-%D %h:%m:%sz","%Y-%M-%D_%h:%m:%sz","%Y-%M-%D %h:%m:%.1sZ","%Y-%M-%D %h:%m:%.2sZ","%Y-%M-%D %h:%m:%.3sZ","%Y-%M-%D_%h:%m:%.3sZ","%Y-%M-%D %h:%m:%s.%uZ","%Y-%M-%D_%h:%m:%s.%uZ","%Y-%M-%D %h:%m:%.3sz","%Y-%M-%D_%h:%m:%.3sz","%Y-%M-%D %h:%m:%s.%uz","%Y-%M-%D_%h:%m:%s.%uz","%Y-%M-%D %h:%m:%s-00:00","%Y-%M-%D %h:%m:%.3s-00:00","%Y-%M-%DT%h:%m:%s-00:00","%Y-%M-%DT%h:%m:%.3s-00:00","%Y-%M-%DT%h:%m:%s+08:45","%Y-%M-%DT%h:%m:%s+00:00","%Y-%M-%DT%h:%m:%.3s+00:00"],mo=["%Y-%M-%D","%Y-%M","%V-W%W","--%M-%D","%M-%D"],ho=["%h:%m","%h:%m:%s","%h:%m:%.1s","%h:%m:%.2s","%h:%m:%.3s"],yo=["%Y-%M-%DT%h:%m","%Y-%M-%DT%h:%m:%s","%Y-%M-%DT%h:%m:%.1s","%Y-%M-%DT%h:%m:%.2s","%Y-%M-%DT%h:%m:%.3s","%Y-%M-%D %h:%m","%Y-%M-%D %h:%m:%s","%Y-%M-%D %h:%m:%.1s","%Y-%M-%D %h:%m:%.2s","%Y-%M-%D %h:%m:%.3s","%Y-%M-%DT%h:%mZ","%Y-%M-%DT%h:%m:%sZ","%Y-%M-%DT%h:%m:%.1sZ","%Y-%M-%DT%h:%m:%.2sZ","%Y-%M-%DT%h:%m:%.3sZ","%Y-%M-%D %h:%mZ","%Y-%M-%D %h:%m:%sZ","%Y-%M-%D %h:%m:%.1sZ","%Y-%M-%D %h:%m:%.2sZ","%Y-%M-%D %h:%m:%.3sZ","%Y-%M-%DT%h:%m%Z:%z","%Y-%M-%DT%h:%m:%s%Z:%z","%Y-%M-%DT%h:%m:%.1s%Z:%z","%Y-%M-%DT%h:%m:%.2s%Z:%z","%Y-%M-%DT%h:%m:%.3s%Z:%z","%Y-%M-%D %h:%m%Z:%z","%Y-%M-%D %h:%m:%s%Z:%z","%Y-%M-%D %h:%m:%.1s%Z:%z","%Y-%M-%D %h:%m:%.2s%Z:%z","%Y-%M-%D %h:%m:%.3s%Z:%z","%Y-%M-%DT%h:%m:%s+08:45","%Y-%M-%DT%h:%m:%s+00:00","%Y-%M-%DT%h:%m:%.3s+00:00","%Y-%M-%DT%h:%m%Z%z","%Y-%M-%DT%h:%m:%s%Z%z","%Y-%M-%DT%h:%m:%.1s%Z%z","%Y-%M-%DT%h:%m:%.2s%Z%z","%Y-%M-%DT%h:%m:%.3s%Z%z","%Y-%M-%D %h:%m%Z%z","%Y-%M-%D %h:%m:%s%Z%z","%Y-%M-%D %h:%m:%.1s%Z%z","%Y-%M-%D %h:%m:%.2s%Z%z","%Y-%M-%D %h:%m:%.3s%Z%z","%Y-%M-%DT%h:%m:%s+0845","%Y-%M-%DT%h:%m:%s+0000","%Y-%M-%DT%h:%m:%.3s+0000"],go=["PT1H","PT1M","PT1S","PT1.5S","P1DT1H","P1DT1M","P1DT1.000S","P1DT1H1M1.1S","1W1M1S","1S1M1H1W","1 W","1.5W","1 D 1 W","1.5 S 1.5 M","1H 15 M"],Zr=[...new Set([...co,...io,...mo])].map(e=>({format:e,rfc:co.includes(e),iso:io.includes(e),html:mo.includes(e)})),Br=[...new Set([...fo,...oo,...ho])].map(e=>({format:e,rfc:fo.includes(e),iso:oo.includes(e),html:ho.includes(e)})),Vr=[...new Set([...po,...so,...yo])].map(e=>({format:e,rfc:po.includes(e),iso:so.includes(e),html:yo.includes(e)})),_p=[...new Set([...uo,...go])].map(e=>({format:e,rfc:!1,iso:uo.includes(e),html:go.includes(e)})),Ap=ao.map(e=>({format:e,rfc:!1,iso:ao.includes(e),html:!1}));function zp({now:e,showHTML:t}){const[n,r]=I.useState("union"),[l,i]=I.useState(!0),[o,c]=I.useState(!0),[u,d]=I.useState(t),h=I.useContext(ar),y=typeof h=="string"?Yl(h):void 0,m=(o?1:0)+(l?1:0)+(u&&t?1:0);function k(){if(m===0)return;let x,T,A,p="date-test-values";if(m===1){let f;o?(f=g=>g.rfc,p+="-rfc"):l?(f=g=>g.iso,p+="-iso"):u&&(f=g=>g.html,p+="-html"),x=Zr.filter(f),T=Br.filter(f),A=Vr.filter(f)}else if(n==="intersection"){let f=!0,g=!0,j=!0,w=[];o&&(w.push("rfc"),f=!1),l&&(w.push("iso"),g=!1),u&&(w.push("html"),j=!1),p+="-"+w.join("_∩_");const C=E=>(E.rfc||f)&&(E.iso||g)&&(E.html||j);x=Zr.filter(C),T=Br.filter(C),A=Vr.filter(C)}else{let f=!1,g=!1,j=!1,w=[];o&&(w.push("rfc"),f=!0),l&&(w.push("iso"),g=!0),u&&(w.push("html"),j=!0),p+="-"+w.join("_∪_");const C=E=>E.rfc&&f||E.iso&&g||E.html&&j;x=Zr.filter(C),T=Br.filter(C),A=Vr.filter(C)}const a=[];a.push("# Dates"),a.push(...x.map(f=>Un(f.format,e,y))),a.push("# Times"),a.push(...T.map(f=>Un(f.format,e,y))),a.push("# Date-Times"),a.push(...A.map(f=>Un(f.format,e,y))),p+=".txt",Dp(a.join(` -`),p)}return s.jsxs("div",{className:"ToolBox-Card",children:[s.jsx("h2",{children:"Test File Generator"}),s.jsxs("div",{children:[s.jsxs("div",{children:[s.jsxs("label",{children:[s.jsx("input",{type:"checkbox",name:"test-file-includes",value:"rfc3339",checked:o,onChange:x=>c(x.target.checked)}),"RFC 3339"]}),s.jsxs("label",{children:[s.jsx("input",{type:"checkbox",name:"test-file-includes",value:"iso8601",checked:l,onChange:x=>i(x.target.checked)}),"ISO 8601"]}),t&&s.jsxs("label",{children:[s.jsx("input",{type:"checkbox",name:"test-file-includes",value:"html",checked:u,onChange:x=>d(x.target.checked)}),"HTML"]})]}),m>1&&s.jsxs("div",{children:[s.jsxs("label",{children:[s.jsx("input",{type:"radio",name:"test-file-includes",value:"union",checked:n==="union",onChange:x=>r(x.target.value)}),"Union"]}),s.jsxs("label",{children:[s.jsx("input",{type:"radio",name:"test-file-includes",value:"intersection",checked:n==="intersection",onChange:x=>r(x.target.value)}),"Intersection"]})]}),s.jsx("button",{onClick:()=>k(),disabled:m===0,children:"Download test file"})]})]})}function Yp({now:e,showHTML:t}){const[n,r]=I.useState("%Y-%M-%D"),l=I.useContext(ar),i=typeof l=="string"?Yl(l):void 0,o=n.length>0&&(co.includes(n)?"✔️ Date":fo.includes(n)?"✔️ Time":po.includes(n)?"✔️ Date":"Invalid"),c=n.length>0&&(io.includes(n)?"✔️ Date":oo.includes(n)?"✔️ Time":so.includes(n)?"✔️ Date":uo.includes(n)?"✔️ Period":ao.includes(n)?"✔️ Range":"Invalid"),u=n.length>0&&(mo.includes(n)?"✔️ Date":ho.includes(n)?"✔️ Time":yo.includes(n)?"✔️ Date":go.includes(n)?"✔️ Period":"Invalid");return s.jsxs("div",{className:"ToolBox-Card",children:[s.jsx("h2",{children:"Format Checker"}),s.jsxs("p",{children:["Type a format using the format key above to check a format's validity.",s.jsx("br",{}),s.jsxs("span",{className:"hint",children:[s.jsx("strong",{children:"Note"}),": doesn't check all possible formats, only checks formats in the table."]})]}),s.jsxs("label",{children:[s.jsx("span",{style:{display:"block",fontSize:"0.8em",fontWeight:"bold"},children:"Format"}),s.jsx("input",{placeholder:"%Y-%M-%D",value:n,onChange:d=>r(d.target.value)})]}),s.jsx("span",{style:{padding:"0.5em"},children:Un(n,e,i)}),s.jsxs("ul",{children:[s.jsxs("li",{children:["RFC 3339: ",o]}),s.jsxs("li",{children:["ISO 8601: ",c]}),t&&s.jsxs("li",{children:["HTML: ",u]})]})]})}const Lp=Qe.memo(Rp);function Rp({date:e,showHTML:t,isPaused:n}){const r=Qe.useContext(ar),l=typeof r=="string"?Yl(r):void 0;return s.jsxs("table",{className:"App-FormatTable",children:[s.jsx("thead",{children:s.jsxs("tr",{children:[s.jsx("th",{children:"Format"}),s.jsx("th",{children:n?"Example":"Now"}),s.jsx("th",{children:"RFC 3339"}),s.jsx("th",{children:"ISO 8601"}),t&&s.jsx("th",{children:"HTML"})]})}),s.jsxs("tbody",{children:[s.jsx("tr",{children:s.jsx("th",{colSpan:100,children:"Dates"})}),Zr.map(i=>s.jsx(Nn,{format:i.format,date:e,timeZoneOffset:l,rfc:i.rfc,iso:i.iso,html:i.html,showHTML:t},i.format))]}),s.jsxs("tbody",{children:[s.jsx("tr",{children:s.jsx("th",{colSpan:100,children:"Times"})}),Br.map(i=>s.jsx(Nn,{format:i.format,date:e,timeZoneOffset:l,rfc:i.rfc,iso:i.iso,html:i.html,showHTML:t},i.format))]}),s.jsxs("tbody",{children:[s.jsx("tr",{children:s.jsx("th",{colSpan:100,children:"Date-Times"})}),Vr.map(i=>s.jsx(Nn,{format:i.format,date:e,timeZoneOffset:l,rfc:i.rfc,iso:i.iso,html:i.html,showHTML:t},i.format))]}),s.jsxs("tbody",{children:[s.jsx("tr",{children:s.jsx("th",{colSpan:100,children:"Periods"})}),_p.map(i=>s.jsx(Nn,{format:i.format,date:e,timeZoneOffset:l,iso:i.iso,html:i.html,showHTML:t},i.format))]}),s.jsxs("tbody",{children:[s.jsx("tr",{children:s.jsx("th",{colSpan:100,children:"Ranges"})}),Ap.map(i=>s.jsx(Nn,{format:i.format,date:e,timeZoneOffset:l,iso:!0,showHTML:t},i.format))]})]})}function Nn({format:e,date:t,timeZoneOffset:n,rfc:r=!1,iso:l=!1,html:i=!1,showHTML:o=!1}){return!o&&!r&&!l?null:s.jsxs("tr",{children:[s.jsx("td",{children:s.jsx("code",{children:e})}),s.jsx("td",{children:Un(e,t,n)}),s.jsx("td",{children:r&&"✔️"}),s.jsx("td",{children:l&&"✔️"}),o&&s.jsx("td",{children:i&&"✔️"})]})}function Op(e,t){const[n,r]=I.useState(e);return I.useEffect(()=>{const l=setTimeout(()=>{r(e)},t);return()=>{clearTimeout(l)}},[e,t]),n}const Pr=" ";function Fp({data:e}){return s.jsx("div",{className:"hl",children:s.jsx(Hr,{value:e})})}function Hr({value:e,depth:t=0}){if(e===null)return s.jsx("span",{className:"hl-null",children:"null"});if(Array.isArray(e))return s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"hl-punctuation",children:"["}),e.map((n,r,l)=>s.jsxs(I.Fragment,{children:[typeof n=="object"?` -`+Pr.repeat(t+1):null,s.jsx(Hr,{value:n,depth:t+(typeof n=="object"?1:0)}),rs.jsxs(I.Fragment,{children:[n,Pr,s.jsx("span",{className:"hl-punctuation",children:'"'}),s.jsx("span",{className:"hl-property",children:r}),s.jsx("span",{className:"hl-punctuation",children:'"'}),s.jsx("span",{className:"hl-punctuation",children:":"})," ",s.jsx(Hr,{value:l,depth:t+1}),i{let i=!0;return l&&fetch(`${_u}/${l}`).then(o=>{if(o.ok)return o.json()}).then(o=>{i&&r(o)}).catch(()=>r(null)),()=>{i=!1}},[l,r]),s.jsxs("div",{className:"ToolBox-Card",children:[s.jsx("h2",{children:"ISO 8601 as a Service"}),s.jsxs("p",{children:[s.jsx("strong",{children:"Beta test"})," a ",s.jsx("a",{href:_u,children:"service"})," to try parsing some ISO 8601 formats. ",s.jsx("br",{}),s.jsxs("span",{className:"hint",children:["Only ",s.jsx("b",{children:"Date"}),", ",s.jsx("b",{children:"Time"}),", and ",s.jsx("b",{children:"DateTime"})," are supported at the moment. There is no support for ",s.jsx("b",{children:"Period"})," or ",s.jsx("b",{children:"Range"}),"."]})]}),s.jsxs("label",{children:[s.jsx("span",{style:{display:"block",fontSize:"0.8em",fontWeight:"bold"},children:"Input String"}),s.jsx("input",{placeholder:"Input string",value:e,onChange:i=>t(i.target.value)})]}),n&&s.jsxs(s.Fragment,{children:[s.jsx("span",{style:{display:"block",fontSize:"0.8em",fontWeight:"bold"},children:"Result"}),s.jsx(Fp,{data:n})]})]})}const Up=["Africa/Abidjan","Africa/Algiers","Africa/Bissau","Africa/Cairo","Africa/Casablanca","Africa/Ceuta","Africa/El_Aaiun","Africa/Johannesburg","Africa/Juba","Africa/Khartoum","Africa/Lagos","Africa/Maputo","Africa/Monrovia","Africa/Nairobi","Africa/Ndjamena","Africa/Sao_Tome","Africa/Tripoli","Africa/Tunis","Africa/Windhoek","America/Adak","America/Anchorage","America/Araguaina","America/Argentina/Buenos_Aires","America/Argentina/Catamarca","America/Argentina/Cordoba","America/Argentina/Jujuy","America/Argentina/La_Rioja","America/Argentina/Mendoza","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Asuncion","America/Bahia","America/Bahia_Banderas","America/Barbados","America/Belem","America/Belize","America/Boa_Vista","America/Bogota","America/Boise","America/Cambridge_Bay","America/Campo_Grande","America/Cancun","America/Caracas","America/Cayenne","America/Chicago","America/Chihuahua","America/Costa_Rica","America/Cuiaba","America/Danmarkshavn","America/Dawson","America/Dawson_Creek","America/Denver","America/Detroit","America/Edmonton","America/Eirunepe","America/El_Salvador","America/Fort_Nelson","America/Fortaleza","America/Glace_Bay","America/Goose_Bay","America/Grand_Turk","America/Guatemala","America/Guayaquil","America/Guyana","America/Halifax","America/Havana","America/Hermosillo","America/Indiana/Indianapolis","America/Indiana/Knox","America/Indiana/Marengo","America/Indiana/Petersburg","America/Indiana/Tell_City","America/Indiana/Vevay","America/Indiana/Vincennes","America/Indiana/Winamac","America/Inuvik","America/Iqaluit","America/Jamaica","America/Juneau","America/Kentucky/Louisville","America/Kentucky/Monticello","America/La_Paz","America/Lima","America/Los_Angeles","America/Maceio","America/Managua","America/Manaus","America/Martinique","America/Matamoros","America/Mazatlan","America/Menominee","America/Merida","America/Metlakatla","America/Mexico_City","America/Miquelon","America/Moncton","America/Monterrey","America/Montevideo","America/New_York","America/Nipigon","America/Nome","America/Noronha","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem","America/Nuuk","America/Ojinaga","America/Panama","America/Pangnirtung","America/Paramaribo","America/Phoenix","America/Port-au-Prince","America/Porto_Velho","America/Puerto_Rico","America/Punta_Arenas","America/Rainy_River","America/Rankin_Inlet","America/Recife","America/Regina","America/Resolute","America/Rio_Branco","America/Santarem","America/Santiago","America/Santo_Domingo","America/Sao_Paulo","America/Scoresbysund","America/Sitka","America/St_Johns","America/Swift_Current","America/Tegucigalpa","America/Thule","America/Thunder_Bay","America/Tijuana","America/Toronto","America/Vancouver","America/Whitehorse","America/Winnipeg","America/Yakutat","America/Yellowknife","Antarctica/Casey","Antarctica/Davis","Antarctica/Macquarie","Antarctica/Mawson","Antarctica/Palmer","Antarctica/Rothera","Antarctica/Troll","Asia/Almaty","Asia/Amman","Asia/Anadyr","Asia/Aqtau","Asia/Aqtobe","Asia/Ashgabat","Asia/Atyrau","Asia/Baghdad","Asia/Baku","Asia/Bangkok","Asia/Barnaul","Asia/Beirut","Asia/Bishkek","Asia/Chita","Asia/Choibalsan","Asia/Colombo","Asia/Damascus","Asia/Dhaka","Asia/Dili","Asia/Dubai","Asia/Dushanbe","Asia/Famagusta","Asia/Gaza","Asia/Hebron","Asia/Ho_Chi_Minh","Asia/Hong_Kong","Asia/Hovd","Asia/Irkutsk","Asia/Jakarta","Asia/Jayapura","Asia/Jerusalem","Asia/Kabul","Asia/Kamchatka","Asia/Karachi","Asia/Kathmandu","Asia/Khandyga","Asia/Kolkata","Asia/Krasnoyarsk","Asia/Kuching","Asia/Macau","Asia/Magadan","Asia/Makassar","Asia/Manila","Asia/Nicosia","Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Omsk","Asia/Oral","Asia/Pontianak","Asia/Pyongyang","Asia/Qatar","Asia/Qostanay","Asia/Qyzylorda","Asia/Riyadh","Asia/Sakhalin","Asia/Samarkand","Asia/Seoul","Asia/Shanghai","Asia/Singapore","Asia/Srednekolymsk","Asia/Taipei","Asia/Tashkent","Asia/Tbilisi","Asia/Tehran","Asia/Thimphu","Asia/Tokyo","Asia/Tomsk","Asia/Ulaanbaatar","Asia/Urumqi","Asia/Ust-Nera","Asia/Vladivostok","Asia/Yakutsk","Asia/Yangon","Asia/Yekaterinburg","Asia/Yerevan","Atlantic/Azores","Atlantic/Bermuda","Atlantic/Canary","Atlantic/Cape_Verde","Atlantic/Faroe","Atlantic/Madeira","Atlantic/South_Georgia","Atlantic/Stanley","Australia/Adelaide","Australia/Brisbane","Australia/Broken_Hill","Australia/Darwin","Australia/Eucla","Australia/Hobart","Australia/Lindeman","Australia/Lord_Howe","Australia/Melbourne","Australia/Perth","Australia/Sydney","Europe/Andorra","Europe/Astrakhan","Europe/Athens","Europe/Belgrade","Europe/Berlin","Europe/Brussels","Europe/Bucharest","Europe/Budapest","Europe/Chisinau","Europe/Dublin","Europe/Gibraltar","Europe/Helsinki","Europe/Istanbul","Europe/Kaliningrad","Europe/Kirov","Europe/Kyiv","Europe/Lisbon","Europe/London","Europe/Madrid","Europe/Malta","Europe/Minsk","Europe/Moscow","Europe/Paris","Europe/Prague","Europe/Riga","Europe/Rome","Europe/Samara","Europe/Saratov","Europe/Simferopol","Europe/Sofia","Europe/Tallinn","Europe/Tirane","Europe/Ulyanovsk","Europe/Vienna","Europe/Vilnius","Europe/Volgograd","Europe/Warsaw","Europe/Zurich","Indian/Chagos","Indian/Maldives","Indian/Mauritius","Pacific/Apia","Pacific/Auckland","Pacific/Bougainville","Pacific/Chatham","Pacific/Easter","Pacific/Efate","Pacific/Fakaofo","Pacific/Fiji","Pacific/Galapagos","Pacific/Gambier","Pacific/Guadalcanal","Pacific/Guam","Pacific/Honolulu","Pacific/Kanton","Pacific/Kiritimati","Pacific/Kosrae","Pacific/Kwajalein","Pacific/Marquesas","Pacific/Nauru","Pacific/Niue","Pacific/Norfolk","Pacific/Noumea","Pacific/Pago_Pago","Pacific/Palau","Pacific/Pitcairn","Pacific/Port_Moresby","Pacific/Rarotonga","Pacific/Tahiti","Pacific/Tarawa","Pacific/Tongatapu"];var $p=ms&&ms.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Kc=void 0;var Qc=$p(Up);Qc.default;function Wp(){return typeof Intl.supportedValuesOf=="function"?Intl.supportedValuesOf("timeZone"):Qc.default}var Kc=Wp;function Zp({value:e,onChange:t}){return s.jsxs("div",{className:"ToolBox-Card",children:[s.jsx("h2",{children:"Time Zone Switcher"}),s.jsx("p",{children:"Select a timezone to adjust zone for local dates and times."}),s.jsx("p",{children:s.jsxs("select",{value:e,onChange:n=>t(n.target.value),children:[s.jsx("option",{value:"",children:"- Browser Default -"}),Kc().map(n=>s.jsx("option",{children:n},n))]})})]})}function Bp({initialDate:e=null,initialShowISO:t=!0,initialShowRFC:n=!0,initialShowHTML:r=!1,initialShowColours:l=!1,readOnlyMode:i=!1,showDiagram:o=!0,initialTimeZone:c=null}){const[u,d]=I.useState(()=>e||new Date),[h,y]=Cn("rfciso.showISO",t),[m,k]=Cn("rfciso.showRFC",n),[x,T]=Cn("rfciso.showHTML",r),[A,p]=Cn("rfciso.showColours",l),[a,f]=I.useState(e!==null),[g,j]=Cn("rfciso.selectedTimeZone",c||Mp()||"");return I.useEffect(()=>{if(!a){const w=()=>d(new Date);w();const C=setInterval(w,1e3);return()=>clearInterval(C)}},[a]),I.useEffect(()=>{document.title=Au(m,h,x)},[h,m,x]),I.useEffect(()=>{const w=C=>{C.ctrlKey&&C.key==="m"&&f(E=>!E)};return document.addEventListener("keyup",w),()=>document.removeEventListener("keyup",w)},[f]),s.jsx(ar.Provider,{value:g,children:s.jsxs("div",{className:"App",children:[!i&&s.jsx("h1",{children:Au(m,h,x)}),o&&s.jsxs(s.Fragment,{children:[s.jsx(Ep,{date:u,iso:h,rfc:m,html:x,showKey:A}),!i&&s.jsxs("p",{className:"App-DiagramControls",children:[s.jsxs("label",{children:[s.jsx("input",{type:"checkbox",checked:h,onChange:w=>y(w.target.checked)}),"Show ISO 8601"]}),s.jsxs("label",{children:[s.jsx("input",{type:"checkbox",checked:m,onChange:w=>k(w.target.checked)}),"Show RFC 3339"]}),s.jsxs("label",{children:[s.jsx("input",{type:"checkbox",checked:x,onChange:w=>T(w.target.checked)}),"Show HTML"]}),s.jsxs("label",{children:[s.jsx("input",{type:"checkbox",checked:A,onChange:w=>p(w.target.checked)}),"Show Colours"]})]})]}),s.jsx("h2",{style:{marginBottom:0},children:"Format Listing"}),s.jsx("p",{style:{marginBottom:0},children:"Notes:"}),s.jsxs("ul",{children:[s.jsx("li",{children:"This table is not exhaustive."}),s.jsxs("li",{children:["This page targets ",s.jsx("a",{href:"https://www.iso.org/obp/ui#iso:std:iso:8601:-1:ed-1:v1:en",children:"ISO 8601-1:2019"}),". Previous editions and drafts contain key differences."]}),s.jsxs("li",{children:[s.jsx("a",{href:"https://www.iso.org/obp/ui#iso:std:iso:8601:-2:ed-1:v1:en",children:"ISO 8601-2:2019"})," contains additional representations including sub-year groupings (e.g. for seasons); grouped units; sets; uncertainty qualifications; and date arithmetic. These are not yet represented on this page."]}),s.jsxs("li",{children:[s.jsx("a",{href:"https://datatracker.ietf.org/doc/html/rfc3339",children:"RFC 3339"})," suggests other characters could be specified to replace the ",s.jsx("code",{children:"T"})," in downstream standards but only gives a space character as an example."]}),s.jsxs("li",{children:["RFC 3339 is case-insensitive so every ",s.jsx("code",{children:"T"})," or ",s.jsx("code",{children:"Z"})," could also be ",s.jsx("code",{children:"t"})," or ",s.jsx("code",{children:"z"})," respectively. Previous editions of ISO 8601 were also case-insensitive."]}),s.jsx("li",{title:"ISO 8601-1:2019 § 5.3.1.4",children:"ISO 8601 allows decimal fractions of the smallest time value. These are mostly represented here by a single fractional digit but the standard allows arbitrary precision."}),s.jsx("li",{title:"ISO 8601-1:2019 § 3.2.6",children:"ISO 8601 allows commas and dots for decimal separation but they are interchangeable in all formats."}),s.jsxs("li",{title:"ISO 8601-1:2019 § 5.3.5",children:["ISO 8601-1:2019 permits omitting the ",s.jsx("code",{children:"T"})," in the ",s.jsx("em",{children:"time of day"})," representations (",s.jsx("b",{children:"Times"}),") when unambiguous.",s.jsx("br",{}),"However, a ",s.jsx("code",{children:"T"})," is always required in ",s.jsx("em",{children:"date and time of day"})," representations (",s.jsx("b",{children:"Date-Times"}),").",s.jsx("br",{}),"Previous editions also allowed omitting the ",s.jsx("code",{children:"T"})," in Date-Times but it was never permitted to ",s.jsx("em",{children:"insert"})," alternative characters (e.g. space or underscore)."]}),x&&s.jsxs("li",{children:["The HTML living standard defines a microsyntax for ",s.jsx("a",{href:"https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#dates-and-times",children:"Dates and times"})," based on ISO 8601 and RFC 3339. It has far fewer ambiguities than either standard and gives explicit parsing rules."]}),!i&&s.jsxs("li",{children:["Each ",s.jsx("span",{onClick:()=>window.open("https://xkcd.com/927/"),children:"standard"})," defines multiple formats for different purposes. ",s.jsx("span",{onClick:()=>window.open("https://xkcd.com/1179/"),children:"Other formats are therefore discouraged."})]}),s.jsx("li",{children:"The format key is given below the table."})]}),s.jsx(Lp,{date:u,showHTML:x,isPaused:a}),s.jsx("h3",{children:"Format Key"}),s.jsx("pre",{className:"App-FormatKey",children:s.jsx("code",{children:` -%L - Millennium -%C - Century -%X - Decade -%Y - Year -%M - Month -%D - Day -%V - Week Year -%W - Week -%w - Week Day -%O - Ordinal Day - -%h - Hour -%m - Minute -%s - Second -%u - Microsecond - -%Z - Zone Hour including +/- -%z - Zone Minute - -%[,.]3x - Value including fraction with given precision, using either comma or dot. -%−Z - Use U+2212 for negative timezone hours -`})}),!i&&s.jsxs(s.Fragment,{children:[s.jsx(zp,{now:u,showHTML:x}),s.jsx(Yp,{now:u,showHTML:x}),s.jsx(Ip,{}),s.jsx(Zp,{value:g,onChange:j}),s.jsx("p",{children:s.jsx("a",{href:"https://github.com/IJMacD/rfc3339-iso8601",children:"Source on GitHub"})})]})]})})}function Au(e,t,n){const r=[];return e&&r.push("RFC 3339"),t&&r.push("ISO 8601"),n&&r.push("HTML"),r.join(" vs ")}const Vp=Hc(document.getElementById("root"));Vp.render(s.jsx(Qe.StrictMode,{children:s.jsx(Bp,{})})); diff --git a/index.html b/index.html index dfe8271..4d4a49c 100644 --- a/index.html +++ b/index.html @@ -19,7 +19,7 @@ - +