twenty-client 0.5.4 → 0.5.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/build/js/main.js +2 -2
  3. metadata +1 -1
data/build/js/main.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! For license information please see main.tsx20240426-76196-qfwakb.js.LICENSE.txt */
1
+ /*! For license information please see main.tsx20240427-62986-sfjq47.js.LICENSE.txt */
2
2
  (()=>{var e,t,r={551:(e,t,r)=>{"use strict";var n=r(540),i=r(982);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var o=new Set,s={};function l(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(s[e]=t,e=0;e<t.length;e++)o.add(t[e])}var c=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),f=Object.prototype.hasOwnProperty,d=/^[: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]*$/,h={},p={};function m(e,t,r,n,i,a,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var y={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){y[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];y[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){y[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){y[e]=new m(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){y[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){y[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){y[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){y[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){y[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function g(e){return e[1].toUpperCase()}function b(e,t,r,n){var i=y.hasOwnProperty(t)?y[t]:null;(null!==i?0!==i.type:n||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,r,n){if(null==t||function(e,t,r,n){if(null!==r&&0===r.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!n&&(null!==r?!r.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,r,n))return!0;if(n)return!1;if(null!==r)switch(r.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,r,i,n)&&(r=null),n||null===i?function(e){return!!f.call(p,e)||!f.call(h,e)&&(d.test(e)?p[e]=!0:(h[e]=!0,!1))}(t)&&(null===r?e.removeAttribute(t):e.setAttribute(t,""+r)):i.mustUseProperty?e[i.propertyName]=null===r?3!==i.type&&"":r:(t=i.attributeName,n=i.attributeNamespace,null===r?e.removeAttribute(t):(r=3===(i=i.type)||4===i&&!0===r?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}"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(v,g);y[t]=new m(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(v,g);y[t]=new m(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(v,g);y[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){y[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),y.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){y[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_=Symbol.for("react.element"),k=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),T=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),P=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var M=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var A=Symbol.iterator;function F(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=A&&e[A]||e["@@iterator"])?e:null}var j,L=Object.assign;function R(e){if(void 0===j)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);j=t&&t[1]||""}return"\n"+j+e}var z=!1;function V(e,t){if(!e||z)return"";z=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var n=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){n=e}e.call(t.prototype)}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var i=t.stack.split("\n"),a=n.stack.split("\n"),o=i.length-1,s=a.length-1;1<=o&&0<=s&&i[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==a[s]){if(1!==o||1!==s)do{if(o--,0>--s||i[o]!==a[s]){var l="\n"+i[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=o&&0<=s);break}}}finally{z=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?R(e):""}function q(e){switch(e.tag){case 5:return R(e.type);case 16:return R("Lazy");case 13:return R("Suspense");case 19:return R("SuspenseList");case 0:case 2:case 15:return V(e.type,!1);case 11:return V(e.type.render,!1);case 1:return V(e.type,!0);default:return""}}function U(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case S:return"Fragment";case k:return"Portal";case x:return"Profiler";case E:return"StrictMode";case C:return"Suspense";case D:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case T:return(e.displayName||"Context")+".Consumer";case O:return(e._context.displayName||"Context")+".Provider";case N:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case I:return null!==(t=e.displayName||null)?t:U(e.type)||"Memo";case P:t=e._payload,e=e._init;try{return U(e(t))}catch(e){}}return null}function Q(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=(e=t.render).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 U(t);case 8:return t===E?"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("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function B(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function $(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function W(e){e._valueTracker||(e._valueTracker=function(e){var t=$(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function H(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=$(e)?e.checked?"true":"false":e.value),(e=n)!==r&&(t.setValue(e),!0)}function G(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Z(e,t){var r=t.checked;return L({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=r?r:e._wrapperState.initialChecked})}function Y(e,t){var r=null==t.defaultValue?"":t.defaultValue,n=null!=t.checked?t.checked:t.defaultChecked;r=B(null!=t.value?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function K(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function J(e,t){K(e,t);var r=B(t.value),n=t.type;if(null!=r)"number"===n?(0===r&&""===e.value||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if("submit"===n||"reset"===n)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,r):t.hasOwnProperty("defaultValue")&&ee(e,t.type,B(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function X(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!("submit"!==n&&"reset"!==n||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}""!==(r=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==r&&(e.name=r)}function ee(e,t,r){"number"===t&&G(e.ownerDocument)===e||(null==r?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var te=Array.isArray;function re(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i<r.length;i++)t["$"+r[i]]=!0;for(r=0;r<e.length;r++)i=t.hasOwnProperty("$"+e[r].value),e[r].selected!==i&&(e[r].selected=i),i&&n&&(e[r].defaultSelected=!0)}else{for(r=""+B(r),t=null,i=0;i<e.length;i++){if(e[i].value===r)return e[i].selected=!0,void(n&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function ne(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return L({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(a(92));if(te(r)){if(1<r.length)throw Error(a(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:B(r)}}function ae(e,t){var r=B(t.value),n=B(t.defaultValue);null!=r&&((r=""+r)!==e.value&&(e.value=r),null==t.defaultValue&&e.defaultValue!==r&&(e.defaultValue=r)),null!=n&&(e.defaultValue=""+n)}function oe(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ue,ce,fe=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ue=ue||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,r,n){MSApp.execUnsafeLocalFunction((function(){return ce(e,t)}))}:ce);function de(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&3===r.nodeType)return void(r.nodeValue=t)}e.textContent=t}var he={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},pe=["Webkit","ms","Moz","O"];function me(e,t,r){return null==t||"boolean"==typeof t||""===t?"":r||"number"!=typeof t||0===t||he.hasOwnProperty(e)&&he[e]?(""+t).trim():t+"px"}function ye(e,t){for(var r in e=e.style,t)if(t.hasOwnProperty(r)){var n=0===r.indexOf("--"),i=me(r,t[r],n);"float"===r&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}Object.keys(he).forEach((function(e){pe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),he[t]=he[e]}))}));var ve=L({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 ge(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;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 we=null;function _e(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ke=null,Se=null,Ee=null;function xe(e){if(e=bi(e)){if("function"!=typeof ke)throw Error(a(280));var t=e.stateNode;t&&(t=_i(t),ke(e.stateNode,e.type,t))}}function Oe(e){Se?Ee?Ee.push(e):Ee=[e]:Se=e}function Te(){if(Se){var e=Se,t=Ee;if(Ee=Se=null,xe(e),t)for(e=0;e<t.length;e++)xe(t[e])}}function Ne(e,t){return e(t)}function Ce(){}var De=!1;function Ie(e,t,r){if(De)return e(t,r);De=!0;try{return Ne(e,t,r)}finally{De=!1,(null!==Se||null!==Ee)&&(Ce(),Te())}}function Pe(e,t){var r=e.stateNode;if(null===r)return null;var n=_i(r);if(null===n)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(n=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!n;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(a(231,t,typeof r));return r}var Me=!1;if(c)try{var Ae={};Object.defineProperty(Ae,"passive",{get:function(){Me=!0}}),window.addEventListener("test",Ae,Ae),window.removeEventListener("test",Ae,Ae)}catch(ce){Me=!1}function Fe(e,t,r,n,i,a,o,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(r,u)}catch(e){this.onError(e)}}var je=!1,Le=null,Re=!1,ze=null,Ve={onError:function(e){je=!0,Le=e}};function qe(e,t,r,n,i,a,o,s,l){je=!1,Le=null,Fe.apply(Ve,arguments)}function Ue(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(r=t.return),e=t.return}while(e)}return 3===t.tag?r:null}function Qe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function Be(e){if(Ue(e)!==e)throw Error(a(188))}function $e(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ue(e)))throw Error(a(188));return t!==e?null:e}for(var r=e,n=t;;){var i=r.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(n=i.return)){r=n;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===r)return Be(i),e;if(o===n)return Be(i),t;o=o.sibling}throw Error(a(188))}if(r.return!==n.return)r=i,n=o;else{for(var s=!1,l=i.child;l;){if(l===r){s=!0,r=i,n=o;break}if(l===n){s=!0,n=i,r=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===r){s=!0,r=o,n=i;break}if(l===n){s=!0,n=o,r=i;break}l=l.sibling}if(!s)throw Error(a(189))}}if(r.alternate!==n)throw Error(a(190))}if(3!==r.tag)throw Error(a(188));return r.stateNode.current===r?e:t}(e))?We(e):null}function We(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=We(e);if(null!==t)return t;e=e.sibling}return null}var He=i.unstable_scheduleCallback,Ge=i.unstable_cancelCallback,Ze=i.unstable_shouldYield,Ye=i.unstable_requestPaint,Ke=i.unstable_now,Je=i.unstable_getCurrentPriorityLevel,Xe=i.unstable_ImmediatePriority,et=i.unstable_UserBlockingPriority,tt=i.unstable_NormalPriority,rt=i.unstable_LowPriority,nt=i.unstable_IdlePriority,it=null,at=null,ot=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2,ut=64,ct=4194304;function ft(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 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function dt(e,t){var r=e.pendingLanes;if(0===r)return 0;var n=0,i=e.suspendedLanes,a=e.pingedLanes,o=268435455&r;if(0!==o){var s=o&~i;0!==s?n=ft(s):0!=(a&=o)&&(n=ft(a))}else 0!=(o=r&~i)?n=ft(o):0!==a&&(n=ft(a));if(0===n)return 0;if(0!==t&&t!==n&&!(t&i)&&((i=n&-n)>=(a=t&-t)||16===i&&4194240&a))return t;if(4&n&&(n|=16&r),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=n;0<t;)i=1<<(r=31-ot(t)),n|=e[r],t&=~i;return n}function ht(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 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 t+5e3;default:return-1}}function pt(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ut;return!(4194240&(ut<<=1))&&(ut=64),e}function yt(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function vt(e,t,r){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-ot(t)]=r}function gt(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-ot(r),i=1<<n;i&t|e[n]&t&&(e[n]|=t),r&=~i}}var bt=0;function wt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var _t,kt,St,Et,xt,Ot=!1,Tt=[],Nt=null,Ct=null,Dt=null,It=new Map,Pt=new Map,Mt=[],At="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Ft(e,t){switch(e){case"focusin":case"focusout":Nt=null;break;case"dragenter":case"dragleave":Ct=null;break;case"mouseover":case"mouseout":Dt=null;break;case"pointerover":case"pointerout":It.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pt.delete(t.pointerId)}}function jt(e,t,r,n,i,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:a,targetContainers:[i]},null!==t&&null!==(t=bi(t))&&kt(t),e):(e.eventSystemFlags|=n,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function Lt(e){var t=gi(e.target);if(null!==t){var r=Ue(t);if(null!==r)if(13===(t=r.tag)){if(null!==(t=Qe(r)))return e.blockedOn=t,void xt(e.priority,(function(){St(r)}))}else if(3===t&&r.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===r.tag?r.stateNode.containerInfo:null)}e.blockedOn=null}function Rt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var r=Zt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==r)return null!==(t=bi(r))&&kt(t),e.blockedOn=r,!1;var n=new(r=e.nativeEvent).constructor(r.type,r);we=n,r.target.dispatchEvent(n),we=null,t.shift()}return!0}function zt(e,t,r){Rt(e)&&r.delete(t)}function Vt(){Ot=!1,null!==Nt&&Rt(Nt)&&(Nt=null),null!==Ct&&Rt(Ct)&&(Ct=null),null!==Dt&&Rt(Dt)&&(Dt=null),It.forEach(zt),Pt.forEach(zt)}function qt(e,t){e.blockedOn===t&&(e.blockedOn=null,Ot||(Ot=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Vt)))}function Ut(e){function t(t){return qt(t,e)}if(0<Tt.length){qt(Tt[0],e);for(var r=1;r<Tt.length;r++){var n=Tt[r];n.blockedOn===e&&(n.blockedOn=null)}}for(null!==Nt&&qt(Nt,e),null!==Ct&&qt(Ct,e),null!==Dt&&qt(Dt,e),It.forEach(t),Pt.forEach(t),r=0;r<Mt.length;r++)(n=Mt[r]).blockedOn===e&&(n.blockedOn=null);for(;0<Mt.length&&null===(r=Mt[0]).blockedOn;)Lt(r),null===r.blockedOn&&Mt.shift()}var Qt=w.ReactCurrentBatchConfig,Bt=!0;function $t(e,t,r,n){var i=bt,a=Qt.transition;Qt.transition=null;try{bt=1,Ht(e,t,r,n)}finally{bt=i,Qt.transition=a}}function Wt(e,t,r,n){var i=bt,a=Qt.transition;Qt.transition=null;try{bt=4,Ht(e,t,r,n)}finally{bt=i,Qt.transition=a}}function Ht(e,t,r,n){if(Bt){var i=Zt(e,t,r,n);if(null===i)Bn(e,t,n,Gt,r),Ft(e,n);else if(function(e,t,r,n,i){switch(t){case"focusin":return Nt=jt(Nt,e,t,r,n,i),!0;case"dragenter":return Ct=jt(Ct,e,t,r,n,i),!0;case"mouseover":return Dt=jt(Dt,e,t,r,n,i),!0;case"pointerover":var a=i.pointerId;return It.set(a,jt(It.get(a)||null,e,t,r,n,i)),!0;case"gotpointercapture":return a=i.pointerId,Pt.set(a,jt(Pt.get(a)||null,e,t,r,n,i)),!0}return!1}(i,e,t,r,n))n.stopPropagation();else if(Ft(e,n),4&t&&-1<At.indexOf(e)){for(;null!==i;){var a=bi(i);if(null!==a&&_t(a),null===(a=Zt(e,t,r,n))&&Bn(e,t,n,Gt,r),a===i)break;i=a}null!==i&&n.stopPropagation()}else Bn(e,t,n,null,r)}}var Gt=null;function Zt(e,t,r,n){if(Gt=null,null!==(e=gi(e=_e(n))))if(null===(t=Ue(e)))e=null;else if(13===(r=t.tag)){if(null!==(e=Qe(t)))return e;e=null}else if(3===r){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Gt=e,null}function Yt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Je()){case Xe:return 1;case et:return 4;case tt:case rt:return 16;case nt:return 536870912;default:return 16}default:return 16}}var Kt=null,Jt=null,Xt=null;function er(){if(Xt)return Xt;var e,t,r=Jt,n=r.length,i="value"in Kt?Kt.value:Kt.textContent,a=i.length;for(e=0;e<n&&r[e]===i[e];e++);var o=n-e;for(t=1;t<=o&&r[n-t]===i[a-t];t++);return Xt=i.slice(e,1<t?1-t:void 0)}function tr(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function rr(){return!0}function nr(){return!1}function ir(e){function t(t,r,n,i,a){for(var o in this._reactName=t,this._targetInst=n,this.type=r,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?rr:nr,this.isPropagationStopped=nr,this}return L(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=rr)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=rr)},persist:function(){},isPersistent:rr}),t}var ar,or,sr,lr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ur=ir(lr),cr=L({},lr,{view:0,detail:0}),fr=ir(cr),dr=L({},cr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Er,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==sr&&(sr&&"mousemove"===e.type?(ar=e.screenX-sr.screenX,or=e.screenY-sr.screenY):or=ar=0,sr=e),ar)},movementY:function(e){return"movementY"in e?e.movementY:or}}),hr=ir(dr),pr=ir(L({},dr,{dataTransfer:0})),mr=ir(L({},cr,{relatedTarget:0})),yr=ir(L({},lr,{animationName:0,elapsedTime:0,pseudoElement:0})),vr=L({},lr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),gr=ir(vr),br=ir(L({},lr,{data:0})),wr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_r={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},kr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=kr[e])&&!!t[e]}function Er(){return Sr}var xr=L({},cr,{key:function(e){if(e.key){var t=wr[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?_r[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Er,charCode:function(e){return"keypress"===e.type?tr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Or=ir(xr),Tr=ir(L({},dr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Nr=ir(L({},cr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Er})),Cr=ir(L({},lr,{propertyName:0,elapsedTime:0,pseudoElement:0})),Dr=L({},dr,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Ir=ir(Dr),Pr=[9,13,27,32],Mr=c&&"CompositionEvent"in window,Ar=null;c&&"documentMode"in document&&(Ar=document.documentMode);var Fr=c&&"TextEvent"in window&&!Ar,jr=c&&(!Mr||Ar&&8<Ar&&11>=Ar),Lr=String.fromCharCode(32),Rr=!1;function zr(e,t){switch(e){case"keyup":return-1!==Pr.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vr(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var qr=!1,Ur={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Qr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Ur[e.type]:"textarea"===t}function Br(e,t,r,n){Oe(n),0<(t=Wn(t,"onChange")).length&&(r=new ur("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var $r=null,Wr=null;function Hr(e){Rn(e,0)}function Gr(e){if(H(wi(e)))return e}function Zr(e,t){if("change"===e)return t}var Yr=!1;if(c){var Kr;if(c){var Jr="oninput"in document;if(!Jr){var Xr=document.createElement("div");Xr.setAttribute("oninput","return;"),Jr="function"==typeof Xr.oninput}Kr=Jr}else Kr=!1;Yr=Kr&&(!document.documentMode||9<document.documentMode)}function en(){$r&&($r.detachEvent("onpropertychange",tn),Wr=$r=null)}function tn(e){if("value"===e.propertyName&&Gr(Wr)){var t=[];Br(t,Wr,e,_e(e)),Ie(Hr,t)}}function rn(e,t,r){"focusin"===e?(en(),Wr=r,($r=t).attachEvent("onpropertychange",tn)):"focusout"===e&&en()}function nn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Gr(Wr)}function an(e,t){if("click"===e)return Gr(t)}function on(e,t){if("input"===e||"change"===e)return Gr(t)}var sn="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function ln(e,t){if(sn(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var i=r[n];if(!f.call(t,i)||!sn(e[i],t[i]))return!1}return!0}function un(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cn(e,t){var r,n=un(e);for(e=0;n;){if(3===n.nodeType){if(r=e+n.textContent.length,e<=t&&r>=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=un(n)}}function fn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?fn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function dn(){for(var e=window,t=G();t instanceof e.HTMLIFrameElement;){try{var r="string"==typeof t.contentWindow.location.href}catch(e){r=!1}if(!r)break;t=G((e=t.contentWindow).document)}return t}function hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function pn(e){var t=dn(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&fn(r.ownerDocument.documentElement,r)){if(null!==n&&hn(r))if(t=n.start,void 0===(e=n.end)&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if((e=(t=r.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=r.textContent.length,a=Math.min(n.start,i);n=void 0===n.end?a:Math.min(n.end,i),!e.extend&&a>n&&(i=n,n=a,a=i),i=cn(r,a);var o=cn(r,n);i&&o&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),a>n?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}for(t=[],e=r;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof r.focus&&r.focus(),r=0;r<t.length;r++)(e=t[r]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mn=c&&"documentMode"in document&&11>=document.documentMode,yn=null,vn=null,gn=null,bn=!1;function wn(e,t,r){var n=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;bn||null==yn||yn!==G(n)||(n="selectionStart"in(n=yn)&&hn(n)?{start:n.selectionStart,end:n.selectionEnd}:{anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},gn&&ln(gn,n)||(gn=n,0<(n=Wn(vn,"onSelect")).length&&(t=new ur("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=yn)))}function _n(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var kn={animationend:_n("Animation","AnimationEnd"),animationiteration:_n("Animation","AnimationIteration"),animationstart:_n("Animation","AnimationStart"),transitionend:_n("Transition","TransitionEnd")},Sn={},En={};function xn(e){if(Sn[e])return Sn[e];if(!kn[e])return e;var t,r=kn[e];for(t in r)if(r.hasOwnProperty(t)&&t in En)return Sn[e]=r[t];return e}c&&(En=document.createElement("div").style,"AnimationEvent"in window||(delete kn.animationend.animation,delete kn.animationiteration.animation,delete kn.animationstart.animation),"TransitionEvent"in window||delete kn.transitionend.transition);var On=xn("animationend"),Tn=xn("animationiteration"),Nn=xn("animationstart"),Cn=xn("transitionend"),Dn=new Map,In="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Pn(e,t){Dn.set(e,t),l(t,[e])}for(var Mn=0;Mn<In.length;Mn++){var An=In[Mn];Pn(An.toLowerCase(),"on"+(An[0].toUpperCase()+An.slice(1)))}Pn(On,"onAnimationEnd"),Pn(Tn,"onAnimationIteration"),Pn(Nn,"onAnimationStart"),Pn("dblclick","onDoubleClick"),Pn("focusin","onFocus"),Pn("focusout","onBlur"),Pn(Cn,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Fn="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),jn=new Set("cancel close invalid load scroll toggle".split(" ").concat(Fn));function Ln(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,n,i,o,s,l,u){if(qe.apply(this,arguments),je){if(!je)throw Error(a(198));var c=Le;je=!1,Le=null,Re||(Re=!0,ze=c)}}(n,t,void 0,e),e.currentTarget=null}function Rn(e,t){t=!!(4&t);for(var r=0;r<e.length;r++){var n=e[r],i=n.event;n=n.listeners;e:{var a=void 0;if(t)for(var o=n.length-1;0<=o;o--){var s=n[o],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==a&&i.isPropagationStopped())break e;Ln(i,s,u),a=l}else for(o=0;o<n.length;o++){if(l=(s=n[o]).instance,u=s.currentTarget,s=s.listener,l!==a&&i.isPropagationStopped())break e;Ln(i,s,u),a=l}}}if(Re)throw e=ze,Re=!1,ze=null,e}function zn(e,t){var r=t[mi];void 0===r&&(r=t[mi]=new Set);var n=e+"__bubble";r.has(n)||(Qn(t,e,2,!1),r.add(n))}function Vn(e,t,r){var n=0;t&&(n|=4),Qn(r,e,n,t)}var qn="_reactListening"+Math.random().toString(36).slice(2);function Un(e){if(!e[qn]){e[qn]=!0,o.forEach((function(t){"selectionchange"!==t&&(jn.has(t)||Vn(t,!1,e),Vn(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[qn]||(t[qn]=!0,Vn("selectionchange",!1,t))}}function Qn(e,t,r,n){switch(Yt(t)){case 1:var i=$t;break;case 4:i=Wt;break;default:i=Ht}r=i.bind(null,t,r,e),i=void 0,!Me||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),n?void 0!==i?e.addEventListener(t,r,{capture:!0,passive:i}):e.addEventListener(t,r,!0):void 0!==i?e.addEventListener(t,r,{passive:i}):e.addEventListener(t,r,!1)}function Bn(e,t,r,n,i){var a=n;if(!(1&t||2&t||null===n))e:for(;;){if(null===n)return;var o=n.tag;if(3===o||4===o){var s=n.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===o)for(o=n.return;null!==o;){var l=o.tag;if((3===l||4===l)&&((l=o.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;o=o.return}for(;null!==s;){if(null===(o=gi(s)))return;if(5===(l=o.tag)||6===l){n=a=o;continue e}s=s.parentNode}}n=n.return}Ie((function(){var n=a,i=_e(r),o=[];e:{var s=Dn.get(e);if(void 0!==s){var l=ur,u=e;switch(e){case"keypress":if(0===tr(r))break e;case"keydown":case"keyup":l=Or;break;case"focusin":u="focus",l=mr;break;case"focusout":u="blur",l=mr;break;case"beforeblur":case"afterblur":l=mr;break;case"click":if(2===r.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=hr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=pr;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Nr;break;case On:case Tn:case Nn:l=yr;break;case Cn:l=Cr;break;case"scroll":l=fr;break;case"wheel":l=Ir;break;case"copy":case"cut":case"paste":l=gr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Tr}var c=!!(4&t),f=!c&&"scroll"===e,d=c?null!==s?s+"Capture":null:s;c=[];for(var h,p=n;null!==p;){var m=(h=p).stateNode;if(5===h.tag&&null!==m&&(h=m,null!==d&&null!=(m=Pe(p,d))&&c.push($n(p,m,h))),f)break;p=p.return}0<c.length&&(s=new l(s,u,null,r,i),o.push({event:s,listeners:c}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||r===we||!(u=r.relatedTarget||r.fromElement)||!gi(u)&&!u[pi])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=n,null!==(u=(u=r.relatedTarget||r.toElement)?gi(u):null)&&(u!==(f=Ue(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=n),l!==u)){if(c=hr,m="onMouseLeave",d="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(c=Tr,m="onPointerLeave",d="onPointerEnter",p="pointer"),f=null==l?s:wi(l),h=null==u?s:wi(u),(s=new c(m,p+"leave",l,r,i)).target=f,s.relatedTarget=h,m=null,gi(i)===n&&((c=new c(d,p+"enter",u,r,i)).target=h,c.relatedTarget=f,m=c),f=m,l&&u)e:{for(d=u,p=0,h=c=l;h;h=Hn(h))p++;for(h=0,m=d;m;m=Hn(m))h++;for(;0<p-h;)c=Hn(c),p--;for(;0<h-p;)d=Hn(d),h--;for(;p--;){if(c===d||null!==d&&c===d.alternate)break e;c=Hn(c),d=Hn(d)}c=null}else c=null;null!==l&&Gn(o,s,l,c,!1),null!==u&&null!==f&&Gn(o,f,u,c,!0)}if("select"===(l=(s=n?wi(n):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var y=Zr;else if(Qr(s))if(Yr)y=on;else{y=nn;var v=rn}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(y=an);switch(y&&(y=y(e,n))?Br(o,y,r,i):(v&&v(e,s,n),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&ee(s,"number",s.value)),v=n?wi(n):window,e){case"focusin":(Qr(v)||"true"===v.contentEditable)&&(yn=v,vn=n,gn=null);break;case"focusout":gn=vn=yn=null;break;case"mousedown":bn=!0;break;case"contextmenu":case"mouseup":case"dragend":bn=!1,wn(o,r,i);break;case"selectionchange":if(mn)break;case"keydown":case"keyup":wn(o,r,i)}var g;if(Mr)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else qr?zr(e,r)&&(b="onCompositionEnd"):"keydown"===e&&229===r.keyCode&&(b="onCompositionStart");b&&(jr&&"ko"!==r.locale&&(qr||"onCompositionStart"!==b?"onCompositionEnd"===b&&qr&&(g=er()):(Jt="value"in(Kt=i)?Kt.value:Kt.textContent,qr=!0)),0<(v=Wn(n,b)).length&&(b=new br(b,e,null,r,i),o.push({event:b,listeners:v}),(g||null!==(g=Vr(r)))&&(b.data=g))),(g=Fr?function(e,t){switch(e){case"compositionend":return Vr(t);case"keypress":return 32!==t.which?null:(Rr=!0,Lr);case"textInput":return(e=t.data)===Lr&&Rr?null:e;default:return null}}(e,r):function(e,t){if(qr)return"compositionend"===e||!Mr&&zr(e,t)?(e=er(),Xt=Jt=Kt=null,qr=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return jr&&"ko"!==t.locale?null:t.data}}(e,r))&&0<(n=Wn(n,"onBeforeInput")).length&&(i=new br("onBeforeInput","beforeinput",null,r,i),o.push({event:i,listeners:n}),i.data=g)}Rn(o,t)}))}function $n(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Wn(e,t){for(var r=t+"Capture",n=[];null!==e;){var i=e,a=i.stateNode;5===i.tag&&null!==a&&(i=a,null!=(a=Pe(e,r))&&n.unshift($n(e,a,i)),null!=(a=Pe(e,t))&&n.push($n(e,a,i))),e=e.return}return n}function Hn(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Gn(e,t,r,n,i){for(var a=t._reactName,o=[];null!==r&&r!==n;){var s=r,l=s.alternate,u=s.stateNode;if(null!==l&&l===n)break;5===s.tag&&null!==u&&(s=u,i?null!=(l=Pe(r,a))&&o.unshift($n(r,l,s)):i||null!=(l=Pe(r,a))&&o.push($n(r,l,s))),r=r.return}0!==o.length&&e.push({event:t,listeners:o})}var Zn=/\r\n?/g,Yn=/\u0000|\uFFFD/g;function Kn(e){return("string"==typeof e?e:""+e).replace(Zn,"\n").replace(Yn,"")}function Jn(e,t,r){if(t=Kn(t),Kn(e)!==t&&r)throw Error(a(425))}function Xn(){}var ei=null,ti=null;function ri(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ni="function"==typeof setTimeout?setTimeout:void 0,ii="function"==typeof clearTimeout?clearTimeout:void 0,ai="function"==typeof Promise?Promise:void 0,oi="function"==typeof queueMicrotask?queueMicrotask:void 0!==ai?function(e){return ai.resolve(null).then(e).catch(si)}:ni;function si(e){setTimeout((function(){throw e}))}function li(e,t){var r=t,n=0;do{var i=r.nextSibling;if(e.removeChild(r),i&&8===i.nodeType)if("/$"===(r=i.data)){if(0===n)return e.removeChild(i),void Ut(t);n--}else"$"!==r&&"$?"!==r&&"$!"!==r||n++;r=i}while(r);Ut(t)}function ui(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ci(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var r=e.data;if("$"===r||"$!"===r||"$?"===r){if(0===t)return e;t--}else"/$"===r&&t++}e=e.previousSibling}return null}var fi=Math.random().toString(36).slice(2),di="__reactFiber$"+fi,hi="__reactProps$"+fi,pi="__reactContainer$"+fi,mi="__reactEvents$"+fi,yi="__reactListeners$"+fi,vi="__reactHandles$"+fi;function gi(e){var t=e[di];if(t)return t;for(var r=e.parentNode;r;){if(t=r[pi]||r[di]){if(r=t.alternate,null!==t.child||null!==r&&null!==r.child)for(e=ci(e);null!==e;){if(r=e[di])return r;e=ci(e)}return t}r=(e=r).parentNode}return null}function bi(e){return!(e=e[di]||e[pi])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function wi(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function _i(e){return e[hi]||null}var ki=[],Si=-1;function Ei(e){return{current:e}}function xi(e){0>Si||(e.current=ki[Si],ki[Si]=null,Si--)}function Oi(e,t){Si++,ki[Si]=e.current,e.current=t}var Ti={},Ni=Ei(Ti),Ci=Ei(!1),Di=Ti;function Ii(e,t){var r=e.type.contextTypes;if(!r)return Ti;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i,a={};for(i in r)a[i]=t[i];return n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Pi(e){return null!=e.childContextTypes}function Mi(){xi(Ci),xi(Ni)}function Ai(e,t,r){if(Ni.current!==Ti)throw Error(a(168));Oi(Ni,t),Oi(Ci,r)}function Fi(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,"function"!=typeof n.getChildContext)return r;for(var i in n=n.getChildContext())if(!(i in t))throw Error(a(108,Q(e)||"Unknown",i));return L({},r,n)}function ji(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ti,Di=Ni.current,Oi(Ni,e),Oi(Ci,Ci.current),!0}function Li(e,t,r){var n=e.stateNode;if(!n)throw Error(a(169));r?(e=Fi(e,t,Di),n.__reactInternalMemoizedMergedChildContext=e,xi(Ci),xi(Ni),Oi(Ni,e)):xi(Ci),Oi(Ci,r)}var Ri=null,zi=!1,Vi=!1;function qi(e){null===Ri?Ri=[e]:Ri.push(e)}function Ui(){if(!Vi&&null!==Ri){Vi=!0;var e=0,t=bt;try{var r=Ri;for(bt=1;e<r.length;e++){var n=r[e];do{n=n(!0)}while(null!==n)}Ri=null,zi=!1}catch(t){throw null!==Ri&&(Ri=Ri.slice(e+1)),He(Xe,Ui),t}finally{bt=t,Vi=!1}}return null}var Qi=[],Bi=0,$i=null,Wi=0,Hi=[],Gi=0,Zi=null,Yi=1,Ki="";function Ji(e,t){Qi[Bi++]=Wi,Qi[Bi++]=$i,$i=e,Wi=t}function Xi(e,t,r){Hi[Gi++]=Yi,Hi[Gi++]=Ki,Hi[Gi++]=Zi,Zi=e;var n=Yi;e=Ki;var i=32-ot(n)-1;n&=~(1<<i),r+=1;var a=32-ot(t)+i;if(30<a){var o=i-i%5;a=(n&(1<<o)-1).toString(32),n>>=o,i-=o,Yi=1<<32-ot(t)+i|r<<i|n,Ki=a+e}else Yi=1<<a|r<<i|n,Ki=e}function ea(e){null!==e.return&&(Ji(e,1),Xi(e,1,0))}function ta(e){for(;e===$i;)$i=Qi[--Bi],Qi[Bi]=null,Wi=Qi[--Bi],Qi[Bi]=null;for(;e===Zi;)Zi=Hi[--Gi],Hi[Gi]=null,Ki=Hi[--Gi],Hi[Gi]=null,Yi=Hi[--Gi],Hi[Gi]=null}var ra=null,na=null,ia=!1,aa=null;function oa(e,t){var r=Pu(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,null===(t=e.deletions)?(e.deletions=[r],e.flags|=16):t.push(r)}function sa(e,t){switch(e.tag){case 5:var r=e.type;return null!==(t=1!==t.nodeType||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ra=e,na=ui(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ra=e,na=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(r=null!==Zi?{id:Yi,overflow:Ki}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},(r=Pu(18,null,null,0)).stateNode=t,r.return=e,e.child=r,ra=e,na=null,!0);default:return!1}}function la(e){return!(!(1&e.mode)||128&e.flags)}function ua(e){if(ia){var t=na;if(t){var r=t;if(!sa(e,t)){if(la(e))throw Error(a(418));t=ui(r.nextSibling);var n=ra;t&&sa(e,t)?oa(n,r):(e.flags=-4097&e.flags|2,ia=!1,ra=e)}}else{if(la(e))throw Error(a(418));e.flags=-4097&e.flags|2,ia=!1,ra=e}}}function ca(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ra=e}function fa(e){if(e!==ra)return!1;if(!ia)return ca(e),ia=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ri(e.type,e.memoizedProps)),t&&(t=na)){if(la(e))throw da(),Error(a(418));for(;t;)oa(e,t),t=ui(t.nextSibling)}if(ca(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){na=ui(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}na=null}}else na=ra?ui(e.stateNode.nextSibling):null;return!0}function da(){for(var e=na;e;)e=ui(e.nextSibling)}function ha(){na=ra=null,ia=!1}function pa(e){null===aa?aa=[e]:aa.push(e)}var ma=w.ReactCurrentBatchConfig;function ya(e,t){if(e&&e.defaultProps){for(var r in t=L({},t),e=e.defaultProps)void 0===t[r]&&(t[r]=e[r]);return t}return t}var va=Ei(null),ga=null,ba=null,wa=null;function _a(){wa=ba=ga=null}function ka(e){var t=va.current;xi(va),e._currentValue=t}function Sa(e,t,r){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==n&&(n.childLanes|=t)):null!==n&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Ea(e,t){ga=e,wa=ba=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(ws=!0),e.firstContext=null)}function xa(e){var t=e._currentValue;if(wa!==e)if(e={context:e,memoizedValue:t,next:null},null===ba){if(null===ga)throw Error(a(308));ba=e,ga.dependencies={lanes:0,firstContext:e}}else ba=ba.next=e;return t}var Oa=null;function Ta(e){null===Oa?Oa=[e]:Oa.push(e)}function Na(e,t,r,n){var i=t.interleaved;return null===i?(r.next=r,Ta(t)):(r.next=i.next,i.next=r),t.interleaved=r,Ca(e,n)}function Ca(e,t){e.lanes|=t;var r=e.alternate;for(null!==r&&(r.lanes|=t),r=e,e=e.return;null!==e;)e.childLanes|=t,null!==(r=e.alternate)&&(r.childLanes|=t),r=e,e=e.return;return 3===r.tag?r.stateNode:null}var Da=!1;function Ia(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Pa(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ma(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Aa(e,t,r){var n=e.updateQueue;if(null===n)return null;if(n=n.shared,2&Cl){var i=n.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),n.pending=t,Ca(e,r)}return null===(i=n.interleaved)?(t.next=t,Ta(n)):(t.next=i.next,i.next=t),n.interleaved=t,Ca(e,r)}function Fa(e,t,r){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&r)){var n=t.lanes;r|=n&=e.pendingLanes,t.lanes=r,gt(e,r)}}function ja(e,t){var r=e.updateQueue,n=e.alternate;if(null!==n&&r===(n=n.updateQueue)){var i=null,a=null;if(null!==(r=r.firstBaseUpdate)){do{var o={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};null===a?i=a=o:a=a.next=o,r=r.next}while(null!==r);null===a?i=a=t:a=a.next=t}else i=a=t;return r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:n.shared,effects:n.effects},void(e.updateQueue=r)}null===(e=r.lastBaseUpdate)?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function La(e,t,r,n){var i=e.updateQueue;Da=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,u=l.next;l.next=null,null===o?a=u:o.next=u,o=l;var c=e.alternate;null!==c&&(s=(c=c.updateQueue).lastBaseUpdate)!==o&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l)}if(null!==a){var f=i.baseState;for(o=0,c=u=l=null,s=a;;){var d=s.lane,h=s.eventTime;if((n&d)===d){null!==c&&(c=c.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,m=s;switch(d=t,h=r,m.tag){case 1:if("function"==typeof(p=m.payload)){f=p.call(h,f,d);break e}f=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null==(d="function"==typeof(p=m.payload)?p.call(h,f,d):p))break e;f=L({},f,d);break e;case 2:Da=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(d=i.effects)?i.effects=[s]:d.push(s))}else h={eventTime:h,lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=h,l=f):c=c.next=h,o|=d;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(d=s).next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}if(null===c&&(l=f),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,null!==(t=i.shared.interleaved)){i=t;do{o|=i.lane,i=i.next}while(i!==t)}else null===a&&(i.shared.lanes=0);Ll|=o,e.lanes=o,e.memoizedState=f}}function Ra(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var n=e[t],i=n.callback;if(null!==i){if(n.callback=null,n=r,"function"!=typeof i)throw Error(a(191,i));i.call(n)}}}var za=(new n.Component).refs;function Va(e,t,r,n){r=null==(r=r(n,t=e.memoizedState))?t:L({},t,r),e.memoizedState=r,0===e.lanes&&(e.updateQueue.baseState=r)}var qa={isMounted:function(e){return!!(e=e._reactInternals)&&Ue(e)===e},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=tu(),i=ru(e),a=Ma(n,i);a.payload=t,null!=r&&(a.callback=r),null!==(t=Aa(e,a,i))&&(nu(t,e,i,n),Fa(t,e,i))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=tu(),i=ru(e),a=Ma(n,i);a.tag=1,a.payload=t,null!=r&&(a.callback=r),null!==(t=Aa(e,a,i))&&(nu(t,e,i,n),Fa(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=tu(),n=ru(e),i=Ma(r,n);i.tag=2,null!=t&&(i.callback=t),null!==(t=Aa(e,i,n))&&(nu(t,e,n,r),Fa(t,e,n))}};function Ua(e,t,r,n,i,a,o){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(n,a,o):!(t.prototype&&t.prototype.isPureReactComponent&&ln(r,n)&&ln(i,a))}function Qa(e,t,r){var n=!1,i=Ti,a=t.contextType;return"object"==typeof a&&null!==a?a=xa(a):(i=Pi(t)?Di:Ni.current,a=(n=null!=(n=t.contextTypes))?Ii(e,i):Ti),t=new t(r,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=qa,e.stateNode=t,t._reactInternals=e,n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function Ba(e,t,r,n){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(r,n),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&qa.enqueueReplaceState(t,t.state,null)}function $a(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs=za,Ia(e);var a=t.contextType;"object"==typeof a&&null!==a?i.context=xa(a):(a=Pi(t)?Di:Ni.current,i.context=Ii(e,a)),i.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(Va(e,t,a,r),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&qa.enqueueReplaceState(i,i.state,null),La(e,r,i,n),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4194308)}function Wa(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(a(309));var n=r.stateNode}if(!n)throw Error(a(147,e));var i=n,o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=i.refs;t===za&&(t=i.refs={}),null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!=typeof e)throw Error(a(284));if(!r._owner)throw Error(a(290,e))}return e}function Ha(e,t){throw e=Object.prototype.toString.call(t),Error(a(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ga(e){return(0,e._init)(e._payload)}function Za(e){function t(t,r){if(e){var n=t.deletions;null===n?(t.deletions=[r],t.flags|=16):n.push(r)}}function r(r,n){if(!e)return null;for(;null!==n;)t(r,n),n=n.sibling;return null}function n(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Au(e,t)).index=0,e.sibling=null,e}function o(t,r,n){return t.index=n,e?null!==(n=t.alternate)?(n=n.index)<r?(t.flags|=2,r):n:(t.flags|=2,r):(t.flags|=1048576,r)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,r,n){return null===t||6!==t.tag?((t=Ru(r,e.mode,n)).return=e,t):((t=i(t,r)).return=e,t)}function u(e,t,r,n){var a=r.type;return a===S?f(e,t,r.props.children,n,r.key):null!==t&&(t.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===P&&Ga(a)===t.type)?((n=i(t,r.props)).ref=Wa(e,t,r),n.return=e,n):((n=Fu(r.type,r.key,r.props,null,e.mode,n)).ref=Wa(e,t,r),n.return=e,n)}function c(e,t,r,n){return null===t||4!==t.tag||t.stateNode.containerInfo!==r.containerInfo||t.stateNode.implementation!==r.implementation?((t=zu(r,e.mode,n)).return=e,t):((t=i(t,r.children||[])).return=e,t)}function f(e,t,r,n,a){return null===t||7!==t.tag?((t=ju(r,e.mode,n,a)).return=e,t):((t=i(t,r)).return=e,t)}function d(e,t,r){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Ru(""+t,e.mode,r)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case _:return(r=Fu(t.type,t.key,t.props,null,e.mode,r)).ref=Wa(e,null,t),r.return=e,r;case k:return(t=zu(t,e.mode,r)).return=e,t;case P:return d(e,(0,t._init)(t._payload),r)}if(te(t)||F(t))return(t=ju(t,e.mode,r,null)).return=e,t;Ha(e,t)}return null}function h(e,t,r,n){var i=null!==t?t.key:null;if("string"==typeof r&&""!==r||"number"==typeof r)return null!==i?null:l(e,t,""+r,n);if("object"==typeof r&&null!==r){switch(r.$$typeof){case _:return r.key===i?u(e,t,r,n):null;case k:return r.key===i?c(e,t,r,n):null;case P:return h(e,t,(i=r._init)(r._payload),n)}if(te(r)||F(r))return null!==i?null:f(e,t,r,n,null);Ha(e,r)}return null}function p(e,t,r,n,i){if("string"==typeof n&&""!==n||"number"==typeof n)return l(t,e=e.get(r)||null,""+n,i);if("object"==typeof n&&null!==n){switch(n.$$typeof){case _:return u(t,e=e.get(null===n.key?r:n.key)||null,n,i);case k:return c(t,e=e.get(null===n.key?r:n.key)||null,n,i);case P:return p(e,t,r,(0,n._init)(n._payload),i)}if(te(n)||F(n))return f(t,e=e.get(r)||null,n,i,null);Ha(t,n)}return null}function m(i,a,s,l){for(var u=null,c=null,f=a,m=a=0,y=null;null!==f&&m<s.length;m++){f.index>m?(y=f,f=null):y=f.sibling;var v=h(i,f,s[m],l);if(null===v){null===f&&(f=y);break}e&&f&&null===v.alternate&&t(i,f),a=o(v,a,m),null===c?u=v:c.sibling=v,c=v,f=y}if(m===s.length)return r(i,f),ia&&Ji(i,m),u;if(null===f){for(;m<s.length;m++)null!==(f=d(i,s[m],l))&&(a=o(f,a,m),null===c?u=f:c.sibling=f,c=f);return ia&&Ji(i,m),u}for(f=n(i,f);m<s.length;m++)null!==(y=p(f,i,m,s[m],l))&&(e&&null!==y.alternate&&f.delete(null===y.key?m:y.key),a=o(y,a,m),null===c?u=y:c.sibling=y,c=y);return e&&f.forEach((function(e){return t(i,e)})),ia&&Ji(i,m),u}function y(i,s,l,u){var c=F(l);if("function"!=typeof c)throw Error(a(150));if(null==(l=c.call(l)))throw Error(a(151));for(var f=c=null,m=s,y=s=0,v=null,g=l.next();null!==m&&!g.done;y++,g=l.next()){m.index>y?(v=m,m=null):v=m.sibling;var b=h(i,m,g.value,u);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(i,m),s=o(b,s,y),null===f?c=b:f.sibling=b,f=b,m=v}if(g.done)return r(i,m),ia&&Ji(i,y),c;if(null===m){for(;!g.done;y++,g=l.next())null!==(g=d(i,g.value,u))&&(s=o(g,s,y),null===f?c=g:f.sibling=g,f=g);return ia&&Ji(i,y),c}for(m=n(i,m);!g.done;y++,g=l.next())null!==(g=p(m,i,y,g.value,u))&&(e&&null!==g.alternate&&m.delete(null===g.key?y:g.key),s=o(g,s,y),null===f?c=g:f.sibling=g,f=g);return e&&m.forEach((function(e){return t(i,e)})),ia&&Ji(i,y),c}return function e(n,a,o,l){if("object"==typeof o&&null!==o&&o.type===S&&null===o.key&&(o=o.props.children),"object"==typeof o&&null!==o){switch(o.$$typeof){case _:e:{for(var u=o.key,c=a;null!==c;){if(c.key===u){if((u=o.type)===S){if(7===c.tag){r(n,c.sibling),(a=i(c,o.props.children)).return=n,n=a;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===P&&Ga(u)===c.type){r(n,c.sibling),(a=i(c,o.props)).ref=Wa(n,c,o),a.return=n,n=a;break e}r(n,c);break}t(n,c),c=c.sibling}o.type===S?((a=ju(o.props.children,n.mode,l,o.key)).return=n,n=a):((l=Fu(o.type,o.key,o.props,null,n.mode,l)).ref=Wa(n,a,o),l.return=n,n=l)}return s(n);case k:e:{for(c=o.key;null!==a;){if(a.key===c){if(4===a.tag&&a.stateNode.containerInfo===o.containerInfo&&a.stateNode.implementation===o.implementation){r(n,a.sibling),(a=i(a,o.children||[])).return=n,n=a;break e}r(n,a);break}t(n,a),a=a.sibling}(a=zu(o,n.mode,l)).return=n,n=a}return s(n);case P:return e(n,a,(c=o._init)(o._payload),l)}if(te(o))return m(n,a,o,l);if(F(o))return y(n,a,o,l);Ha(n,o)}return"string"==typeof o&&""!==o||"number"==typeof o?(o=""+o,null!==a&&6===a.tag?(r(n,a.sibling),(a=i(a,o)).return=n,n=a):(r(n,a),(a=Ru(o,n.mode,l)).return=n,n=a),s(n)):r(n,a)}}var Ya=Za(!0),Ka=Za(!1),Ja={},Xa=Ei(Ja),eo=Ei(Ja),to=Ei(Ja);function ro(e){if(e===Ja)throw Error(a(174));return e}function no(e,t){switch(Oi(to,t),Oi(eo,e),Oi(Xa,Ja),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}xi(Xa),Oi(Xa,t)}function io(){xi(Xa),xi(eo),xi(to)}function ao(e){ro(to.current);var t=ro(Xa.current),r=le(t,e.type);t!==r&&(Oi(eo,e),Oi(Xa,r))}function oo(e){eo.current===e&&(xi(Xa),xi(eo))}var so=Ei(0);function lo(e){for(var t=e;null!==t;){if(13===t.tag){var r=t.memoizedState;if(null!==r&&(null===(r=r.dehydrated)||"$?"===r.data||"$!"===r.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var uo=[];function co(){for(var e=0;e<uo.length;e++)uo[e]._workInProgressVersionPrimary=null;uo.length=0}var fo=w.ReactCurrentDispatcher,ho=w.ReactCurrentBatchConfig,po=0,mo=null,yo=null,vo=null,go=!1,bo=!1,wo=0,_o=0;function ko(){throw Error(a(321))}function So(e,t){if(null===t)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!sn(e[r],t[r]))return!1;return!0}function Eo(e,t,r,n,i,o){if(po=o,mo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,fo.current=null===e||null===e.memoizedState?ss:ls,e=r(n,i),bo){o=0;do{if(bo=!1,wo=0,25<=o)throw Error(a(301));o+=1,vo=yo=null,t.updateQueue=null,fo.current=us,e=r(n,i)}while(bo)}if(fo.current=os,t=null!==yo&&null!==yo.next,po=0,vo=yo=mo=null,go=!1,t)throw Error(a(300));return e}function xo(){var e=0!==wo;return wo=0,e}function Oo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===vo?mo.memoizedState=vo=e:vo=vo.next=e,vo}function To(){if(null===yo){var e=mo.alternate;e=null!==e?e.memoizedState:null}else e=yo.next;var t=null===vo?mo.memoizedState:vo.next;if(null!==t)vo=t,yo=e;else{if(null===e)throw Error(a(310));e={memoizedState:(yo=e).memoizedState,baseState:yo.baseState,baseQueue:yo.baseQueue,queue:yo.queue,next:null},null===vo?mo.memoizedState=vo=e:vo=vo.next=e}return vo}function No(e,t){return"function"==typeof t?t(e):t}function Co(e){var t=To(),r=t.queue;if(null===r)throw Error(a(311));r.lastRenderedReducer=e;var n=yo,i=n.baseQueue,o=r.pending;if(null!==o){if(null!==i){var s=i.next;i.next=o.next,o.next=s}n.baseQueue=i=o,r.pending=null}if(null!==i){o=i.next,n=n.baseState;var l=s=null,u=null,c=o;do{var f=c.lane;if((po&f)===f)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),n=c.hasEagerState?c.eagerState:e(n,c.action);else{var d={lane:f,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=d,s=n):u=u.next=d,mo.lanes|=f,Ll|=f}c=c.next}while(null!==c&&c!==o);null===u?s=n:u.next=l,sn(n,t.memoizedState)||(ws=!0),t.memoizedState=n,t.baseState=s,t.baseQueue=u,r.lastRenderedState=n}if(null!==(e=r.interleaved)){i=e;do{o=i.lane,mo.lanes|=o,Ll|=o,i=i.next}while(i!==e)}else null===i&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Do(e){var t=To(),r=t.queue;if(null===r)throw Error(a(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,o=t.memoizedState;if(null!==i){r.pending=null;var s=i=i.next;do{o=e(o,s.action),s=s.next}while(s!==i);sn(o,t.memoizedState)||(ws=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),r.lastRenderedState=o}return[o,n]}function Io(){}function Po(e,t){var r=mo,n=To(),i=t(),o=!sn(n.memoizedState,i);if(o&&(n.memoizedState=i,ws=!0),n=n.queue,Bo(Fo.bind(null,r,n,e),[e]),n.getSnapshot!==t||o||null!==vo&&1&vo.memoizedState.tag){if(r.flags|=2048,zo(9,Ao.bind(null,r,n,i,t),void 0,null),null===Dl)throw Error(a(349));30&po||Mo(r,t,i)}return i}function Mo(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},null===(t=mo.updateQueue)?(t={lastEffect:null,stores:null},mo.updateQueue=t,t.stores=[e]):null===(r=t.stores)?t.stores=[e]:r.push(e)}function Ao(e,t,r,n){t.value=r,t.getSnapshot=n,jo(t)&&Lo(e)}function Fo(e,t,r){return r((function(){jo(t)&&Lo(e)}))}function jo(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!sn(e,r)}catch(e){return!0}}function Lo(e){var t=Ca(e,1);null!==t&&nu(t,e,1,-1)}function Ro(e){var t=Oo();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:No,lastRenderedState:e},t.queue=e,e=e.dispatch=rs.bind(null,mo,e),[t.memoizedState,e]}function zo(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},null===(t=mo.updateQueue)?(t={lastEffect:null,stores:null},mo.updateQueue=t,t.lastEffect=e.next=e):null===(r=t.lastEffect)?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e),e}function Vo(){return To().memoizedState}function qo(e,t,r,n){var i=Oo();mo.flags|=e,i.memoizedState=zo(1|t,r,void 0,void 0===n?null:n)}function Uo(e,t,r,n){var i=To();n=void 0===n?null:n;var a=void 0;if(null!==yo){var o=yo.memoizedState;if(a=o.destroy,null!==n&&So(n,o.deps))return void(i.memoizedState=zo(t,r,a,n))}mo.flags|=e,i.memoizedState=zo(1|t,r,a,n)}function Qo(e,t){return qo(8390656,8,e,t)}function Bo(e,t){return Uo(2048,8,e,t)}function $o(e,t){return Uo(4,2,e,t)}function Wo(e,t){return Uo(4,4,e,t)}function Ho(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Go(e,t,r){return r=null!=r?r.concat([e]):null,Uo(4,4,Ho.bind(null,t,e),r)}function Zo(){}function Yo(e,t){var r=To();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&So(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function Ko(e,t){var r=To();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&So(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function Jo(e,t,r){return 21&po?(sn(r,t)||(r=mt(),mo.lanes|=r,Ll|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ws=!0),e.memoizedState=r)}function Xo(e,t){var r=bt;bt=0!==r&&4>r?r:4,e(!0);var n=ho.transition;ho.transition={};try{e(!1),t()}finally{bt=r,ho.transition=n}}function es(){return To().memoizedState}function ts(e,t,r){var n=ru(e);r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},ns(e)?is(t,r):null!==(r=Na(e,t,r,n))&&(nu(r,e,n,tu()),as(r,t,n))}function rs(e,t,r){var n=ru(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(ns(e))is(t,i);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var o=t.lastRenderedState,s=a(o,r);if(i.hasEagerState=!0,i.eagerState=s,sn(s,o)){var l=t.interleaved;return null===l?(i.next=i,Ta(t)):(i.next=l.next,l.next=i),void(t.interleaved=i)}}catch(e){}null!==(r=Na(e,t,i,n))&&(nu(r,e,n,i=tu()),as(r,t,n))}}function ns(e){var t=e.alternate;return e===mo||null!==t&&t===mo}function is(e,t){bo=go=!0;var r=e.pending;null===r?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function as(e,t,r){if(4194240&r){var n=t.lanes;r|=n&=e.pendingLanes,t.lanes=r,gt(e,r)}}var os={readContext:xa,useCallback:ko,useContext:ko,useEffect:ko,useImperativeHandle:ko,useInsertionEffect:ko,useLayoutEffect:ko,useMemo:ko,useReducer:ko,useRef:ko,useState:ko,useDebugValue:ko,useDeferredValue:ko,useTransition:ko,useMutableSource:ko,useSyncExternalStore:ko,useId:ko,unstable_isNewReconciler:!1},ss={readContext:xa,useCallback:function(e,t){return Oo().memoizedState=[e,void 0===t?null:t],e},useContext:xa,useEffect:Qo,useImperativeHandle:function(e,t,r){return r=null!=r?r.concat([e]):null,qo(4194308,4,Ho.bind(null,t,e),r)},useLayoutEffect:function(e,t){return qo(4194308,4,e,t)},useInsertionEffect:function(e,t){return qo(4,2,e,t)},useMemo:function(e,t){var r=Oo();return t=void 0===t?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Oo();return t=void 0!==r?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=ts.bind(null,mo,e),[n.memoizedState,e]},useRef:function(e){return e={current:e},Oo().memoizedState=e},useState:Ro,useDebugValue:Zo,useDeferredValue:function(e){return Oo().memoizedState=e},useTransition:function(){var e=Ro(!1),t=e[0];return e=Xo.bind(null,e[1]),Oo().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=mo,i=Oo();if(ia){if(void 0===r)throw Error(a(407));r=r()}else{if(r=t(),null===Dl)throw Error(a(349));30&po||Mo(n,t,r)}i.memoizedState=r;var o={value:r,getSnapshot:t};return i.queue=o,Qo(Fo.bind(null,n,o,e),[e]),n.flags|=2048,zo(9,Ao.bind(null,n,o,r,t),void 0,null),r},useId:function(){var e=Oo(),t=Dl.identifierPrefix;if(ia){var r=Ki;t=":"+t+"R"+(r=(Yi&~(1<<32-ot(Yi)-1)).toString(32)+r),0<(r=wo++)&&(t+="H"+r.toString(32)),t+=":"}else t=":"+t+"r"+(r=_o++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ls={readContext:xa,useCallback:Yo,useContext:xa,useEffect:Bo,useImperativeHandle:Go,useInsertionEffect:$o,useLayoutEffect:Wo,useMemo:Ko,useReducer:Co,useRef:Vo,useState:function(){return Co(No)},useDebugValue:Zo,useDeferredValue:function(e){return Jo(To(),yo.memoizedState,e)},useTransition:function(){return[Co(No)[0],To().memoizedState]},useMutableSource:Io,useSyncExternalStore:Po,useId:es,unstable_isNewReconciler:!1},us={readContext:xa,useCallback:Yo,useContext:xa,useEffect:Bo,useImperativeHandle:Go,useInsertionEffect:$o,useLayoutEffect:Wo,useMemo:Ko,useReducer:Do,useRef:Vo,useState:function(){return Do(No)},useDebugValue:Zo,useDeferredValue:function(e){var t=To();return null===yo?t.memoizedState=e:Jo(t,yo.memoizedState,e)},useTransition:function(){return[Do(No)[0],To().memoizedState]},useMutableSource:Io,useSyncExternalStore:Po,useId:es,unstable_isNewReconciler:!1};function cs(e,t){try{var r="",n=t;do{r+=q(n),n=n.return}while(n);var i=r}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i,digest:null}}function fs(e,t,r){return{value:e,source:null,stack:null!=r?r:null,digest:null!=t?t:null}}function ds(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var hs="function"==typeof WeakMap?WeakMap:Map;function ps(e,t,r){(r=Ma(-1,r)).tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){$l||($l=!0,Wl=n),ds(0,t)},r}function ms(e,t,r){(r=Ma(-1,r)).tag=3;var n=e.type.getDerivedStateFromError;if("function"==typeof n){var i=t.value;r.payload=function(){return n(i)},r.callback=function(){ds(0,t)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(r.callback=function(){ds(0,t),"function"!=typeof n&&(null===Hl?Hl=new Set([this]):Hl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),r}function ys(e,t,r){var n=e.pingCache;if(null===n){n=e.pingCache=new hs;var i=new Set;n.set(t,i)}else void 0===(i=n.get(t))&&(i=new Set,n.set(t,i));i.has(r)||(i.add(r),e=Ou.bind(null,e,t,r),t.then(e,e))}function vs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function gs(e,t,r,n,i){return 1&e.mode?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,1===r.tag&&(null===r.alternate?r.tag=17:((t=Ma(-1,1)).tag=2,Aa(r,t,1))),r.lanes|=1),e)}var bs=w.ReactCurrentOwner,ws=!1;function _s(e,t,r,n){t.child=null===e?Ka(t,null,r,n):Ya(t,e.child,r,n)}function ks(e,t,r,n,i){r=r.render;var a=t.ref;return Ea(t,i),n=Eo(e,t,r,n,a,i),r=xo(),null===e||ws?(ia&&r&&ea(t),t.flags|=1,_s(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,$s(e,t,i))}function Ss(e,t,r,n,i){if(null===e){var a=r.type;return"function"!=typeof a||Mu(a)||void 0!==a.defaultProps||null!==r.compare||void 0!==r.defaultProps?((e=Fu(r.type,null,n,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Es(e,t,a,n,i))}if(a=e.child,!(e.lanes&i)){var o=a.memoizedProps;if((r=null!==(r=r.compare)?r:ln)(o,n)&&e.ref===t.ref)return $s(e,t,i)}return t.flags|=1,(e=Au(a,n)).ref=t.ref,e.return=t,t.child=e}function Es(e,t,r,n,i){if(null!==e){var a=e.memoizedProps;if(ln(a,n)&&e.ref===t.ref){if(ws=!1,t.pendingProps=n=a,!(e.lanes&i))return t.lanes=e.lanes,$s(e,t,i);131072&e.flags&&(ws=!0)}}return Ts(e,t,r,n,i)}function xs(e,t,r){var n=t.pendingProps,i=n.children,a=null!==e?e.memoizedState:null;if("hidden"===n.mode)if(1&t.mode){if(!(1073741824&r))return e=null!==a?a.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Oi(Al,Ml),Ml|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=null!==a?a.baseLanes:r,Oi(Al,Ml),Ml|=n}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Oi(Al,Ml),Ml|=r;else null!==a?(n=a.baseLanes|r,t.memoizedState=null):n=r,Oi(Al,Ml),Ml|=n;return _s(e,t,i,r),t.child}function Os(e,t){var r=t.ref;(null===e&&null!==r||null!==e&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function Ts(e,t,r,n,i){var a=Pi(r)?Di:Ni.current;return a=Ii(t,a),Ea(t,i),r=Eo(e,t,r,n,a,i),n=xo(),null===e||ws?(ia&&n&&ea(t),t.flags|=1,_s(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,$s(e,t,i))}function Ns(e,t,r,n,i){if(Pi(r)){var a=!0;ji(t)}else a=!1;if(Ea(t,i),null===t.stateNode)Bs(e,t),Qa(t,r,n),$a(t,r,n,i),n=!0;else if(null===e){var o=t.stateNode,s=t.memoizedProps;o.props=s;var l=o.context,u=r.contextType;u="object"==typeof u&&null!==u?xa(u):Ii(t,u=Pi(r)?Di:Ni.current);var c=r.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof o.getSnapshotBeforeUpdate;f||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(s!==n||l!==u)&&Ba(t,o,n,u),Da=!1;var d=t.memoizedState;o.state=d,La(t,n,o,i),l=t.memoizedState,s!==n||d!==l||Ci.current||Da?("function"==typeof c&&(Va(t,r,c,n),l=t.memoizedState),(s=Da||Ua(t,r,s,n,d,l,u))?(f||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(t.flags|=4194308)):("function"==typeof o.componentDidMount&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=l),o.props=n,o.state=l,o.context=u,n=s):("function"==typeof o.componentDidMount&&(t.flags|=4194308),n=!1)}else{o=t.stateNode,Pa(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:ya(t.type,s),o.props=u,f=t.pendingProps,d=o.context,l="object"==typeof(l=r.contextType)&&null!==l?xa(l):Ii(t,l=Pi(r)?Di:Ni.current);var h=r.getDerivedStateFromProps;(c="function"==typeof h||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(s!==f||d!==l)&&Ba(t,o,n,l),Da=!1,d=t.memoizedState,o.state=d,La(t,n,o,i);var p=t.memoizedState;s!==f||d!==p||Ci.current||Da?("function"==typeof h&&(Va(t,r,h,n),p=t.memoizedState),(u=Da||Ua(t,r,u,n,d,p,l)||!1)?(c||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(n,p,l),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(n,p,l)),"function"==typeof o.componentDidUpdate&&(t.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof o.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=p),o.props=n,o.state=p,o.context=l,n=u):("function"!=typeof o.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),n=!1)}return Cs(e,t,r,n,a,i)}function Cs(e,t,r,n,i,a){Os(e,t);var o=!!(128&t.flags);if(!n&&!o)return i&&Li(t,r,!1),$s(e,t,a);n=t.stateNode,bs.current=t;var s=o&&"function"!=typeof r.getDerivedStateFromError?null:n.render();return t.flags|=1,null!==e&&o?(t.child=Ya(t,e.child,null,a),t.child=Ya(t,null,s,a)):_s(e,t,s,a),t.memoizedState=n.state,i&&Li(t,r,!0),t.child}function Ds(e){var t=e.stateNode;t.pendingContext?Ai(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ai(0,t.context,!1),no(e,t.containerInfo)}function Is(e,t,r,n,i){return ha(),pa(i),t.flags|=256,_s(e,t,r,n),t.child}var Ps,Ms,As,Fs,js={dehydrated:null,treeContext:null,retryLane:0};function Ls(e){return{baseLanes:e,cachePool:null,transitions:null}}function Rs(e,t,r){var n,i=t.pendingProps,o=so.current,s=!1,l=!!(128&t.flags);if((n=l)||(n=(null===e||null!==e.memoizedState)&&!!(2&o)),n?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(o|=1),Oi(so,1&o),null===e)return ua(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=i.children,e=i.fallback,s?(i=t.mode,s=t.child,l={mode:"hidden",children:l},1&i||null===s?s=Lu(l,i,0,null):(s.childLanes=0,s.pendingProps=l),e=ju(e,i,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ls(r),t.memoizedState=js,e):zs(t,l));if(null!==(o=e.memoizedState)&&null!==(n=o.dehydrated))return function(e,t,r,n,i,o,s){if(r)return 256&t.flags?(t.flags&=-257,Vs(e,t,s,n=fs(Error(a(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(o=n.fallback,i=t.mode,n=Lu({mode:"visible",children:n.children},i,0,null),(o=ju(o,i,s,null)).flags|=2,n.return=t,o.return=t,n.sibling=o,t.child=n,1&t.mode&&Ya(t,e.child,null,s),t.child.memoizedState=Ls(s),t.memoizedState=js,o);if(!(1&t.mode))return Vs(e,t,s,null);if("$!"===i.data){if(n=i.nextSibling&&i.nextSibling.dataset)var l=n.dgst;return n=l,Vs(e,t,s,n=fs(o=Error(a(419)),n,void 0))}if(l=!!(s&e.childLanes),ws||l){if(null!==(n=Dl)){switch(s&-s){case 4:i=2;break;case 16:i=8;break;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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=i&(n.suspendedLanes|s)?0:i)&&i!==o.retryLane&&(o.retryLane=i,Ca(e,i),nu(n,e,i,-1))}return yu(),Vs(e,t,s,n=fs(Error(a(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=Nu.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,na=ui(i.nextSibling),ra=t,ia=!0,aa=null,null!==e&&(Hi[Gi++]=Yi,Hi[Gi++]=Ki,Hi[Gi++]=Zi,Yi=e.id,Ki=e.overflow,Zi=t),(t=zs(t,n.children)).flags|=4096,t)}(e,t,l,i,n,o,r);if(s){s=i.fallback,l=t.mode,n=(o=e.child).sibling;var u={mode:"hidden",children:i.children};return 1&l||t.child===o?(i=Au(o,u)).subtreeFlags=14680064&o.subtreeFlags:((i=t.child).childLanes=0,i.pendingProps=u,t.deletions=null),null!==n?s=Au(n,s):(s=ju(s,l,r,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,l=null===(l=e.child.memoizedState)?Ls(r):{baseLanes:l.baseLanes|r,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~r,t.memoizedState=js,i}return e=(s=e.child).sibling,i=Au(s,{mode:"visible",children:i.children}),!(1&t.mode)&&(i.lanes=r),i.return=t,i.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=i,t.memoizedState=null,i}function zs(e,t){return(t=Lu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Vs(e,t,r,n){return null!==n&&pa(n),Ya(t,e.child,null,r),(e=zs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function qs(e,t,r){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),Sa(e.return,t,r)}function Us(e,t,r,n,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=n,a.tail=r,a.tailMode=i)}function Qs(e,t,r){var n=t.pendingProps,i=n.revealOrder,a=n.tail;if(_s(e,t,n.children,r),2&(n=so.current))n=1&n|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&qs(e,r,t);else if(19===e.tag)qs(e,r,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(Oi(so,n),1&t.mode)switch(i){case"forwards":for(r=t.child,i=null;null!==r;)null!==(e=r.alternate)&&null===lo(e)&&(i=r),r=r.sibling;null===(r=i)?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),Us(t,!1,i,r,a);break;case"backwards":for(r=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===lo(e)){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}Us(t,!0,r,null,a);break;case"together":Us(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Bs(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function $s(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),Ll|=t.lanes,!(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(r=Au(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Au(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function Ws(e,t){if(!ia)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;null!==r;)null!==r.alternate&&(n=r),r=r.sibling;null===n?t||null===e.tail?e.tail=null:e.tail.sibling=null:n.sibling=null}}function Hs(e){var t=null!==e.alternate&&e.alternate.child===e.child,r=0,n=0;if(t)for(var i=e.child;null!==i;)r|=i.lanes|i.childLanes,n|=14680064&i.subtreeFlags,n|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function Gs(e,t,r){var n=t.pendingProps;switch(ta(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Hs(t),null;case 1:case 17:return Pi(t.type)&&Mi(),Hs(t),null;case 3:return n=t.stateNode,io(),xi(Ci),xi(Ni),co(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(fa(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==aa&&(su(aa),aa=null))),Ms(e,t),Hs(t),null;case 5:oo(t);var i=ro(to.current);if(r=t.type,null!==e&&null!=t.stateNode)As(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(null===t.stateNode)throw Error(a(166));return Hs(t),null}if(e=ro(Xa.current),fa(t)){n=t.stateNode,r=t.type;var o=t.memoizedProps;switch(n[di]=t,n[hi]=o,e=!!(1&t.mode),r){case"dialog":zn("cancel",n),zn("close",n);break;case"iframe":case"object":case"embed":zn("load",n);break;case"video":case"audio":for(i=0;i<Fn.length;i++)zn(Fn[i],n);break;case"source":zn("error",n);break;case"img":case"image":case"link":zn("error",n),zn("load",n);break;case"details":zn("toggle",n);break;case"input":Y(n,o),zn("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!o.multiple},zn("invalid",n);break;case"textarea":ie(n,o),zn("invalid",n)}for(var l in ge(r,o),i=null,o)if(o.hasOwnProperty(l)){var u=o[l];"children"===l?"string"==typeof u?n.textContent!==u&&(!0!==o.suppressHydrationWarning&&Jn(n.textContent,u,e),i=["children",u]):"number"==typeof u&&n.textContent!==""+u&&(!0!==o.suppressHydrationWarning&&Jn(n.textContent,u,e),i=["children",""+u]):s.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&zn("scroll",n)}switch(r){case"input":W(n),X(n,o,!0);break;case"textarea":W(n),oe(n);break;case"select":case"option":break;default:"function"==typeof o.onClick&&(n.onclick=Xn)}n=i,t.updateQueue=n,null!==n&&(t.flags|=4)}else{l=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof n.is?e=l.createElement(r,{is:n.is}):(e=l.createElement(r),"select"===r&&(l=e,n.multiple?l.multiple=!0:n.size&&(l.size=n.size))):e=l.createElementNS(e,r),e[di]=t,e[hi]=n,Ps(e,t,!1,!1),t.stateNode=e;e:{switch(l=be(r,n),r){case"dialog":zn("cancel",e),zn("close",e),i=n;break;case"iframe":case"object":case"embed":zn("load",e),i=n;break;case"video":case"audio":for(i=0;i<Fn.length;i++)zn(Fn[i],e);i=n;break;case"source":zn("error",e),i=n;break;case"img":case"image":case"link":zn("error",e),zn("load",e),i=n;break;case"details":zn("toggle",e),i=n;break;case"input":Y(e,n),i=Z(e,n),zn("invalid",e);break;case"option":default:i=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=L({},n,{value:void 0}),zn("invalid",e);break;case"textarea":ie(e,n),i=ne(e,n),zn("invalid",e)}for(o in ge(r,i),u=i)if(u.hasOwnProperty(o)){var c=u[o];"style"===o?ye(e,c):"dangerouslySetInnerHTML"===o?null!=(c=c?c.__html:void 0)&&fe(e,c):"children"===o?"string"==typeof c?("textarea"!==r||""!==c)&&de(e,c):"number"==typeof c&&de(e,""+c):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(s.hasOwnProperty(o)?null!=c&&"onScroll"===o&&zn("scroll",e):null!=c&&b(e,o,c,l))}switch(r){case"input":W(e),X(e,n,!1);break;case"textarea":W(e),oe(e);break;case"option":null!=n.value&&e.setAttribute("value",""+B(n.value));break;case"select":e.multiple=!!n.multiple,null!=(o=n.value)?re(e,!!n.multiple,o,!1):null!=n.defaultValue&&re(e,!!n.multiple,n.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Xn)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Hs(t),null;case 6:if(e&&null!=t.stateNode)Fs(e,t,e.memoizedProps,n);else{if("string"!=typeof n&&null===t.stateNode)throw Error(a(166));if(r=ro(to.current),ro(Xa.current),fa(t)){if(n=t.stateNode,r=t.memoizedProps,n[di]=t,(o=n.nodeValue!==r)&&null!==(e=ra))switch(e.tag){case 3:Jn(n.nodeValue,r,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Jn(n.nodeValue,r,!!(1&e.mode))}o&&(t.flags|=4)}else(n=(9===r.nodeType?r:r.ownerDocument).createTextNode(n))[di]=t,t.stateNode=n}return Hs(t),null;case 13:if(xi(so),n=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ia&&null!==na&&1&t.mode&&!(128&t.flags))da(),ha(),t.flags|=98560,o=!1;else if(o=fa(t),null!==n&&null!==n.dehydrated){if(null===e){if(!o)throw Error(a(318));if(!(o=null!==(o=t.memoizedState)?o.dehydrated:null))throw Error(a(317));o[di]=t}else ha(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Hs(t),o=!1}else null!==aa&&(su(aa),aa=null),o=!0;if(!o)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=r,t):((n=null!==n)!=(null!==e&&null!==e.memoizedState)&&n&&(t.child.flags|=8192,1&t.mode&&(null===e||1&so.current?0===Fl&&(Fl=3):yu())),null!==t.updateQueue&&(t.flags|=4),Hs(t),null);case 4:return io(),Ms(e,t),null===e&&Un(t.stateNode.containerInfo),Hs(t),null;case 10:return ka(t.type._context),Hs(t),null;case 19:if(xi(so),null===(o=t.memoizedState))return Hs(t),null;if(n=!!(128&t.flags),null===(l=o.rendering))if(n)Ws(o,!1);else{if(0!==Fl||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(l=lo(e))){for(t.flags|=128,Ws(o,!1),null!==(n=l.updateQueue)&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;null!==r;)e=n,(o=r).flags&=14680066,null===(l=o.alternate)?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=l.childLanes,o.lanes=l.lanes,o.child=l.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=l.memoizedProps,o.memoizedState=l.memoizedState,o.updateQueue=l.updateQueue,o.type=l.type,e=l.dependencies,o.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Oi(so,1&so.current|2),t.child}e=e.sibling}null!==o.tail&&Ke()>Ql&&(t.flags|=128,n=!0,Ws(o,!1),t.lanes=4194304)}else{if(!n)if(null!==(e=lo(l))){if(t.flags|=128,n=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),Ws(o,!0),null===o.tail&&"hidden"===o.tailMode&&!l.alternate&&!ia)return Hs(t),null}else 2*Ke()-o.renderingStartTime>Ql&&1073741824!==r&&(t.flags|=128,n=!0,Ws(o,!1),t.lanes=4194304);o.isBackwards?(l.sibling=t.child,t.child=l):(null!==(r=o.last)?r.sibling=l:t.child=l,o.last=l)}return null!==o.tail?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Ke(),t.sibling=null,r=so.current,Oi(so,n?1&r|2:1&r),t):(Hs(t),null);case 22:case 23:return du(),n=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==n&&(t.flags|=8192),n&&1&t.mode?!!(1073741824&Ml)&&(Hs(t),6&t.subtreeFlags&&(t.flags|=8192)):Hs(t),null;case 24:case 25:return null}throw Error(a(156,t.tag))}function Zs(e,t){switch(ta(t),t.tag){case 1:return Pi(t.type)&&Mi(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return io(),xi(Ci),xi(Ni),co(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return oo(t),null;case 13:if(xi(so),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(a(340));ha()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return xi(so),null;case 4:return io(),null;case 10:return ka(t.type._context),null;case 22:case 23:return du(),null;default:return null}}Ps=function(e,t){for(var r=t.child;null!==r;){if(5===r.tag||6===r.tag)e.appendChild(r.stateNode);else if(4!==r.tag&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===t)break;for(;null===r.sibling;){if(null===r.return||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},Ms=function(){},As=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,ro(Xa.current);var a,o=null;switch(r){case"input":i=Z(e,i),n=Z(e,n),o=[];break;case"select":i=L({},i,{value:void 0}),n=L({},n,{value:void 0}),o=[];break;case"textarea":i=ne(e,i),n=ne(e,n),o=[];break;default:"function"!=typeof i.onClick&&"function"==typeof n.onClick&&(e.onclick=Xn)}for(c in ge(r,n),r=null,i)if(!n.hasOwnProperty(c)&&i.hasOwnProperty(c)&&null!=i[c])if("style"===c){var l=i[c];for(a in l)l.hasOwnProperty(a)&&(r||(r={}),r[a]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(s.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in n){var u=n[c];if(l=null!=i?i[c]:void 0,n.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(a in l)!l.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(r||(r={}),r[a]="");for(a in u)u.hasOwnProperty(a)&&l[a]!==u[a]&&(r||(r={}),r[a]=u[a])}else r||(o||(o=[]),o.push(c,r)),r=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(o=o||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(o=o||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(s.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&zn("scroll",e),o||l===u||(o=[])):(o=o||[]).push(c,u))}r&&(o=o||[]).push("style",r);var c=o;(t.updateQueue=c)&&(t.flags|=4)}},Fs=function(e,t,r,n){r!==n&&(t.flags|=4)};var Ys=!1,Ks=!1,Js="function"==typeof WeakSet?WeakSet:Set,Xs=null;function el(e,t){var r=e.ref;if(null!==r)if("function"==typeof r)try{r(null)}catch(r){xu(e,t,r)}else r.current=null}function tl(e,t,r){try{r()}catch(r){xu(e,t,r)}}var rl=!1;function nl(e,t,r){var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var i=n=n.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,void 0!==a&&tl(t,r,a)}i=i.next}while(i!==n)}}function il(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function al(e){var t=e.ref;if(null!==t){var r=e.stateNode;e.tag,e=r,"function"==typeof t?t(e):t.current=e}}function ol(e){var t=e.alternate;null!==t&&(e.alternate=null,ol(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[di],delete t[hi],delete t[mi],delete t[yi],delete t[vi]),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 sl(e){return 5===e.tag||3===e.tag||4===e.tag}function ll(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||sl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ul(e,t,r){var n=e.tag;if(5===n||6===n)e=e.stateNode,t?8===r.nodeType?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(8===r.nodeType?(t=r.parentNode).insertBefore(e,r):(t=r).appendChild(e),null!=(r=r._reactRootContainer)||null!==t.onclick||(t.onclick=Xn));else if(4!==n&&null!==(e=e.child))for(ul(e,t,r),e=e.sibling;null!==e;)ul(e,t,r),e=e.sibling}function cl(e,t,r){var n=e.tag;if(5===n||6===n)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(4!==n&&null!==(e=e.child))for(cl(e,t,r),e=e.sibling;null!==e;)cl(e,t,r),e=e.sibling}var fl=null,dl=!1;function hl(e,t,r){for(r=r.child;null!==r;)pl(e,t,r),r=r.sibling}function pl(e,t,r){if(at&&"function"==typeof at.onCommitFiberUnmount)try{at.onCommitFiberUnmount(it,r)}catch(e){}switch(r.tag){case 5:Ks||el(r,t);case 6:var n=fl,i=dl;fl=null,hl(e,t,r),dl=i,null!==(fl=n)&&(dl?(e=fl,r=r.stateNode,8===e.nodeType?e.parentNode.removeChild(r):e.removeChild(r)):fl.removeChild(r.stateNode));break;case 18:null!==fl&&(dl?(e=fl,r=r.stateNode,8===e.nodeType?li(e.parentNode,r):1===e.nodeType&&li(e,r),Ut(e)):li(fl,r.stateNode));break;case 4:n=fl,i=dl,fl=r.stateNode.containerInfo,dl=!0,hl(e,t,r),fl=n,dl=i;break;case 0:case 11:case 14:case 15:if(!Ks&&null!==(n=r.updateQueue)&&null!==(n=n.lastEffect)){i=n=n.next;do{var a=i,o=a.destroy;a=a.tag,void 0!==o&&(2&a||4&a)&&tl(r,t,o),i=i.next}while(i!==n)}hl(e,t,r);break;case 1:if(!Ks&&(el(r,t),"function"==typeof(n=r.stateNode).componentWillUnmount))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(e){xu(r,t,e)}hl(e,t,r);break;case 21:hl(e,t,r);break;case 22:1&r.mode?(Ks=(n=Ks)||null!==r.memoizedState,hl(e,t,r),Ks=n):hl(e,t,r);break;default:hl(e,t,r)}}function ml(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var r=e.stateNode;null===r&&(r=e.stateNode=new Js),t.forEach((function(t){var n=Cu.bind(null,e,t);r.has(t)||(r.add(t),t.then(n,n))}))}}function yl(e,t){var r=t.deletions;if(null!==r)for(var n=0;n<r.length;n++){var i=r[n];try{var o=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:fl=l.stateNode,dl=!1;break e;case 3:case 4:fl=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===fl)throw Error(a(160));pl(o,s,i),fl=null,dl=!1;var u=i.alternate;null!==u&&(u.return=null),i.return=null}catch(e){xu(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)vl(t,e),t=t.sibling}function vl(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(yl(t,e),gl(e),4&n){try{nl(3,e,e.return),il(3,e)}catch(t){xu(e,e.return,t)}try{nl(5,e,e.return)}catch(t){xu(e,e.return,t)}}break;case 1:yl(t,e),gl(e),512&n&&null!==r&&el(r,r.return);break;case 5:if(yl(t,e),gl(e),512&n&&null!==r&&el(r,r.return),32&e.flags){var i=e.stateNode;try{de(i,"")}catch(t){xu(e,e.return,t)}}if(4&n&&null!=(i=e.stateNode)){var o=e.memoizedProps,s=null!==r?r.memoizedProps:o,l=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===l&&"radio"===o.type&&null!=o.name&&K(i,o),be(l,s);var c=be(l,o);for(s=0;s<u.length;s+=2){var f=u[s],d=u[s+1];"style"===f?ye(i,d):"dangerouslySetInnerHTML"===f?fe(i,d):"children"===f?de(i,d):b(i,f,d,c)}switch(l){case"input":J(i,o);break;case"textarea":ae(i,o);break;case"select":var h=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var p=o.value;null!=p?re(i,!!o.multiple,p,!1):h!==!!o.multiple&&(null!=o.defaultValue?re(i,!!o.multiple,o.defaultValue,!0):re(i,!!o.multiple,o.multiple?[]:"",!1))}i[hi]=o}catch(t){xu(e,e.return,t)}}break;case 6:if(yl(t,e),gl(e),4&n){if(null===e.stateNode)throw Error(a(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(t){xu(e,e.return,t)}}break;case 3:if(yl(t,e),gl(e),4&n&&null!==r&&r.memoizedState.isDehydrated)try{Ut(t.containerInfo)}catch(t){xu(e,e.return,t)}break;case 4:default:yl(t,e),gl(e);break;case 13:yl(t,e),gl(e),8192&(i=e.child).flags&&(o=null!==i.memoizedState,i.stateNode.isHidden=o,!o||null!==i.alternate&&null!==i.alternate.memoizedState||(Ul=Ke())),4&n&&ml(e);break;case 22:if(f=null!==r&&null!==r.memoizedState,1&e.mode?(Ks=(c=Ks)||f,yl(t,e),Ks=c):yl(t,e),gl(e),8192&n){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!f&&1&e.mode)for(Xs=e,f=e.child;null!==f;){for(d=Xs=f;null!==Xs;){switch(p=(h=Xs).child,h.tag){case 0:case 11:case 14:case 15:nl(4,h,h.return);break;case 1:el(h,h.return);var m=h.stateNode;if("function"==typeof m.componentWillUnmount){n=h,r=h.return;try{t=n,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){xu(n,r,e)}}break;case 5:el(h,h.return);break;case 22:if(null!==h.memoizedState){kl(d);continue}}null!==p?(p.return=h,Xs=p):kl(d)}f=f.sibling}e:for(f=null,d=e;;){if(5===d.tag){if(null===f){f=d;try{i=d.stateNode,c?"function"==typeof(o=i.style).setProperty?o.setProperty("display","none","important"):o.display="none":(l=d.stateNode,s=null!=(u=d.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,l.style.display=me("display",s))}catch(t){xu(e,e.return,t)}}}else if(6===d.tag){if(null===f)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(t){xu(e,e.return,t)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;f===d&&(f=null),d=d.return}f===d&&(f=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:yl(t,e),gl(e),4&n&&ml(e);case 21:}}function gl(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(sl(r)){var n=r;break e}r=r.return}throw Error(a(160))}switch(n.tag){case 5:var i=n.stateNode;32&n.flags&&(de(i,""),n.flags&=-33),cl(e,ll(e),i);break;case 3:case 4:var o=n.stateNode.containerInfo;ul(e,ll(e),o);break;default:throw Error(a(161))}}catch(t){xu(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bl(e,t,r){Xs=e,wl(e,t,r)}function wl(e,t,r){for(var n=!!(1&e.mode);null!==Xs;){var i=Xs,a=i.child;if(22===i.tag&&n){var o=null!==i.memoizedState||Ys;if(!o){var s=i.alternate,l=null!==s&&null!==s.memoizedState||Ks;s=Ys;var u=Ks;if(Ys=o,(Ks=l)&&!u)for(Xs=i;null!==Xs;)l=(o=Xs).child,22===o.tag&&null!==o.memoizedState?Sl(i):null!==l?(l.return=o,Xs=l):Sl(i);for(;null!==a;)Xs=a,wl(a,t,r),a=a.sibling;Xs=i,Ys=s,Ks=u}_l(e)}else 8772&i.subtreeFlags&&null!==a?(a.return=i,Xs=a):_l(e)}}function _l(e){for(;null!==Xs;){var t=Xs;if(8772&t.flags){var r=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Ks||il(5,t);break;case 1:var n=t.stateNode;if(4&t.flags&&!Ks)if(null===r)n.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:ya(t.type,r.memoizedProps);n.componentDidUpdate(i,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;null!==o&&Ra(t,o,n);break;case 3:var s=t.updateQueue;if(null!==s){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}Ra(t,s,r)}break;case 5:var l=t.stateNode;if(null===r&&4&t.flags){r=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&r.focus();break;case"img":u.src&&(r.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var f=c.memoizedState;if(null!==f){var d=f.dehydrated;null!==d&&Ut(d)}}}break;default:throw Error(a(163))}Ks||512&t.flags&&al(t)}catch(e){xu(t,t.return,e)}}if(t===e){Xs=null;break}if(null!==(r=t.sibling)){r.return=t.return,Xs=r;break}Xs=t.return}}function kl(e){for(;null!==Xs;){var t=Xs;if(t===e){Xs=null;break}var r=t.sibling;if(null!==r){r.return=t.return,Xs=r;break}Xs=t.return}}function Sl(e){for(;null!==Xs;){var t=Xs;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{il(4,t)}catch(e){xu(t,r,e)}break;case 1:var n=t.stateNode;if("function"==typeof n.componentDidMount){var i=t.return;try{n.componentDidMount()}catch(e){xu(t,i,e)}}var a=t.return;try{al(t)}catch(e){xu(t,a,e)}break;case 5:var o=t.return;try{al(t)}catch(e){xu(t,o,e)}}}catch(e){xu(t,t.return,e)}if(t===e){Xs=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Xs=s;break}Xs=t.return}}var El,xl=Math.ceil,Ol=w.ReactCurrentDispatcher,Tl=w.ReactCurrentOwner,Nl=w.ReactCurrentBatchConfig,Cl=0,Dl=null,Il=null,Pl=0,Ml=0,Al=Ei(0),Fl=0,jl=null,Ll=0,Rl=0,zl=0,Vl=null,ql=null,Ul=0,Ql=1/0,Bl=null,$l=!1,Wl=null,Hl=null,Gl=!1,Zl=null,Yl=0,Kl=0,Jl=null,Xl=-1,eu=0;function tu(){return 6&Cl?Ke():-1!==Xl?Xl:Xl=Ke()}function ru(e){return 1&e.mode?2&Cl&&0!==Pl?Pl&-Pl:null!==ma.transition?(0===eu&&(eu=mt()),eu):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Yt(e.type):1}function nu(e,t,r,n){if(50<Kl)throw Kl=0,Jl=null,Error(a(185));vt(e,r,n),2&Cl&&e===Dl||(e===Dl&&(!(2&Cl)&&(Rl|=r),4===Fl&&lu(e,Pl)),iu(e,n),1===r&&0===Cl&&!(1&t.mode)&&(Ql=Ke()+500,zi&&Ui()))}function iu(e,t){var r=e.callbackNode;!function(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-ot(a),s=1<<o,l=i[o];-1===l?s&r&&!(s&n)||(i[o]=ht(s,t)):l<=t&&(e.expiredLanes|=s),a&=~s}}(e,t);var n=dt(e,e===Dl?Pl:0);if(0===n)null!==r&&Ge(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(null!=r&&Ge(r),1===t)0===e.tag?function(e){zi=!0,qi(e)}(uu.bind(null,e)):qi(uu.bind(null,e)),oi((function(){!(6&Cl)&&Ui()})),r=null;else{switch(wt(n)){case 1:r=Xe;break;case 4:r=et;break;case 16:default:r=tt;break;case 536870912:r=nt}r=Du(r,au.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function au(e,t){if(Xl=-1,eu=0,6&Cl)throw Error(a(327));var r=e.callbackNode;if(Su()&&e.callbackNode!==r)return null;var n=dt(e,e===Dl?Pl:0);if(0===n)return null;if(30&n||n&e.expiredLanes||t)t=vu(e,n);else{t=n;var i=Cl;Cl|=2;var o=mu();for(Dl===e&&Pl===t||(Bl=null,Ql=Ke()+500,hu(e,t));;)try{bu();break}catch(t){pu(e,t)}_a(),Ol.current=o,Cl=i,null!==Il?t=0:(Dl=null,Pl=0,t=Fl)}if(0!==t){if(2===t&&0!==(i=pt(e))&&(n=i,t=ou(e,i)),1===t)throw r=jl,hu(e,0),lu(e,n),iu(e,Ke()),r;if(6===t)lu(e,n);else{if(i=e.current.alternate,!(30&n||function(e){for(var t=e;;){if(16384&t.flags){var r=t.updateQueue;if(null!==r&&null!==(r=r.stores))for(var n=0;n<r.length;n++){var i=r[n],a=i.getSnapshot;i=i.value;try{if(!sn(a(),i))return!1}catch(e){return!1}}}if(r=t.child,16384&t.subtreeFlags&&null!==r)r.return=t,t=r;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)||(t=vu(e,n),2===t&&(o=pt(e),0!==o&&(n=o,t=ou(e,o))),1!==t)))throw r=jl,hu(e,0),lu(e,n),iu(e,Ke()),r;switch(e.finishedWork=i,e.finishedLanes=n,t){case 0:case 1:throw Error(a(345));case 2:case 5:ku(e,ql,Bl);break;case 3:if(lu(e,n),(130023424&n)===n&&10<(t=Ul+500-Ke())){if(0!==dt(e,0))break;if(((i=e.suspendedLanes)&n)!==n){tu(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ni(ku.bind(null,e,ql,Bl),t);break}ku(e,ql,Bl);break;case 4:if(lu(e,n),(4194240&n)===n)break;for(t=e.eventTimes,i=-1;0<n;){var s=31-ot(n);o=1<<s,(s=t[s])>i&&(i=s),n&=~o}if(n=i,10<(n=(120>(n=Ke()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*xl(n/1960))-n)){e.timeoutHandle=ni(ku.bind(null,e,ql,Bl),n);break}ku(e,ql,Bl);break;default:throw Error(a(329))}}}return iu(e,Ke()),e.callbackNode===r?au.bind(null,e):null}function ou(e,t){var r=Vl;return e.current.memoizedState.isDehydrated&&(hu(e,t).flags|=256),2!==(e=vu(e,t))&&(t=ql,ql=r,null!==t&&su(t)),e}function su(e){null===ql?ql=e:ql.push.apply(ql,e)}function lu(e,t){for(t&=~zl,t&=~Rl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-ot(t),n=1<<r;e[r]=-1,t&=~n}}function uu(e){if(6&Cl)throw Error(a(327));Su();var t=dt(e,0);if(!(1&t))return iu(e,Ke()),null;var r=vu(e,t);if(0!==e.tag&&2===r){var n=pt(e);0!==n&&(t=n,r=ou(e,n))}if(1===r)throw r=jl,hu(e,0),lu(e,t),iu(e,Ke()),r;if(6===r)throw Error(a(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ku(e,ql,Bl),iu(e,Ke()),null}function cu(e,t){var r=Cl;Cl|=1;try{return e(t)}finally{0===(Cl=r)&&(Ql=Ke()+500,zi&&Ui())}}function fu(e){null!==Zl&&0===Zl.tag&&!(6&Cl)&&Su();var t=Cl;Cl|=1;var r=Nl.transition,n=bt;try{if(Nl.transition=null,bt=1,e)return e()}finally{bt=n,Nl.transition=r,!(6&(Cl=t))&&Ui()}}function du(){Ml=Al.current,xi(Al)}function hu(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(-1!==r&&(e.timeoutHandle=-1,ii(r)),null!==Il)for(r=Il.return;null!==r;){var n=r;switch(ta(n),n.tag){case 1:null!=(n=n.type.childContextTypes)&&Mi();break;case 3:io(),xi(Ci),xi(Ni),co();break;case 5:oo(n);break;case 4:io();break;case 13:case 19:xi(so);break;case 10:ka(n.type._context);break;case 22:case 23:du()}r=r.return}if(Dl=e,Il=e=Au(e.current,null),Pl=Ml=t,Fl=0,jl=null,zl=Rl=Ll=0,ql=Vl=null,null!==Oa){for(t=0;t<Oa.length;t++)if(null!==(n=(r=Oa[t]).interleaved)){r.interleaved=null;var i=n.next,a=r.pending;if(null!==a){var o=a.next;a.next=i,n.next=o}r.pending=n}Oa=null}return e}function pu(e,t){for(;;){var r=Il;try{if(_a(),fo.current=os,go){for(var n=mo.memoizedState;null!==n;){var i=n.queue;null!==i&&(i.pending=null),n=n.next}go=!1}if(po=0,vo=yo=mo=null,bo=!1,wo=0,Tl.current=null,null===r||null===r.return){Fl=1,jl=t,Il=null;break}e:{var o=e,s=r.return,l=r,u=t;if(t=Pl,l.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,f=l,d=f.tag;if(!(1&f.mode||0!==d&&11!==d&&15!==d)){var h=f.alternate;h?(f.updateQueue=h.updateQueue,f.memoizedState=h.memoizedState,f.lanes=h.lanes):(f.updateQueue=null,f.memoizedState=null)}var p=vs(s);if(null!==p){p.flags&=-257,gs(p,s,l,0,t),1&p.mode&&ys(o,c,t),u=c;var m=(t=p).updateQueue;if(null===m){var y=new Set;y.add(u),t.updateQueue=y}else m.add(u);break e}if(!(1&t)){ys(o,c,t),yu();break e}u=Error(a(426))}else if(ia&&1&l.mode){var v=vs(s);if(null!==v){!(65536&v.flags)&&(v.flags|=256),gs(v,s,l,0,t),pa(cs(u,l));break e}}o=u=cs(u,l),4!==Fl&&(Fl=2),null===Vl?Vl=[o]:Vl.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t,ja(o,ps(0,u,t));break e;case 1:l=u;var g=o.type,b=o.stateNode;if(!(128&o.flags||"function"!=typeof g.getDerivedStateFromError&&(null===b||"function"!=typeof b.componentDidCatch||null!==Hl&&Hl.has(b)))){o.flags|=65536,t&=-t,o.lanes|=t,ja(o,ms(o,l,t));break e}}o=o.return}while(null!==o)}_u(r)}catch(e){t=e,Il===r&&null!==r&&(Il=r=r.return);continue}break}}function mu(){var e=Ol.current;return Ol.current=os,null===e?os:e}function yu(){0!==Fl&&3!==Fl&&2!==Fl||(Fl=4),null===Dl||!(268435455&Ll)&&!(268435455&Rl)||lu(Dl,Pl)}function vu(e,t){var r=Cl;Cl|=2;var n=mu();for(Dl===e&&Pl===t||(Bl=null,hu(e,t));;)try{gu();break}catch(t){pu(e,t)}if(_a(),Cl=r,Ol.current=n,null!==Il)throw Error(a(261));return Dl=null,Pl=0,Fl}function gu(){for(;null!==Il;)wu(Il)}function bu(){for(;null!==Il&&!Ze();)wu(Il)}function wu(e){var t=El(e.alternate,e,Ml);e.memoizedProps=e.pendingProps,null===t?_u(e):Il=t,Tl.current=null}function _u(e){var t=e;do{var r=t.alternate;if(e=t.return,32768&t.flags){if(null!==(r=Zs(r,t)))return r.flags&=32767,void(Il=r);if(null===e)return Fl=6,void(Il=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(r=Gs(r,t,Ml)))return void(Il=r);if(null!==(t=t.sibling))return void(Il=t);Il=t=e}while(null!==t);0===Fl&&(Fl=5)}function ku(e,t,r){var n=bt,i=Nl.transition;try{Nl.transition=null,bt=1,function(e,t,r,n){do{Su()}while(null!==Zl);if(6&Cl)throw Error(a(327));r=e.finishedWork;var i=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(a(177));e.callbackNode=null,e.callbackPriority=0;var o=r.lanes|r.childLanes;if(function(e,t){var r=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 n=e.eventTimes;for(e=e.expirationTimes;0<r;){var i=31-ot(r),a=1<<i;t[i]=0,n[i]=-1,e[i]=-1,r&=~a}}(e,o),e===Dl&&(Il=Dl=null,Pl=0),!(2064&r.subtreeFlags)&&!(2064&r.flags)||Gl||(Gl=!0,Du(tt,(function(){return Su(),null}))),o=!!(15990&r.flags),15990&r.subtreeFlags||o){o=Nl.transition,Nl.transition=null;var s=bt;bt=1;var l=Cl;Cl|=4,Tl.current=null,function(e,t){if(ei=Bt,hn(e=dn())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var n=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(n&&0!==n.rangeCount){r=n.anchorNode;var i=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{r.nodeType,o.nodeType}catch(e){r=null;break e}var s=0,l=-1,u=-1,c=0,f=0,d=e,h=null;t:for(;;){for(var p;d!==r||0!==i&&3!==d.nodeType||(l=s+i),d!==o||0!==n&&3!==d.nodeType||(u=s+n),3===d.nodeType&&(s+=d.nodeValue.length),null!==(p=d.firstChild);)h=d,d=p;for(;;){if(d===e)break t;if(h===r&&++c===i&&(l=s),h===o&&++f===n&&(u=s),null!==(p=d.nextSibling))break;h=(d=h).parentNode}d=p}r=-1===l||-1===u?null:{start:l,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(ti={focusedElem:e,selectionRange:r},Bt=!1,Xs=t;null!==Xs;)if(e=(t=Xs).child,1028&t.subtreeFlags&&null!==e)e.return=t,Xs=e;else for(;null!==Xs;){t=Xs;try{var m=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var y=m.memoizedProps,v=m.memoizedState,g=t.stateNode,b=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:ya(t.type,y),v);g.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(a(163))}}catch(e){xu(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Xs=e;break}Xs=t.return}m=rl,rl=!1}(e,r),vl(r,e),pn(ti),Bt=!!ei,ti=ei=null,e.current=r,bl(r,e,i),Ye(),Cl=l,bt=s,Nl.transition=o}else e.current=r;if(Gl&&(Gl=!1,Zl=e,Yl=i),0===(o=e.pendingLanes)&&(Hl=null),function(e){if(at&&"function"==typeof at.onCommitFiberRoot)try{at.onCommitFiberRoot(it,e,void 0,!(128&~e.current.flags))}catch(e){}}(r.stateNode),iu(e,Ke()),null!==t)for(n=e.onRecoverableError,r=0;r<t.length;r++)n((i=t[r]).value,{componentStack:i.stack,digest:i.digest});if($l)throw $l=!1,e=Wl,Wl=null,e;!!(1&Yl)&&0!==e.tag&&Su(),1&(o=e.pendingLanes)?e===Jl?Kl++:(Kl=0,Jl=e):Kl=0,Ui()}(e,t,r,n)}finally{Nl.transition=i,bt=n}return null}function Su(){if(null!==Zl){var e=wt(Yl),t=Nl.transition,r=bt;try{if(Nl.transition=null,bt=16>e?16:e,null===Zl)var n=!1;else{if(e=Zl,Zl=null,Yl=0,6&Cl)throw Error(a(331));var i=Cl;for(Cl|=4,Xs=e.current;null!==Xs;){var o=Xs,s=o.child;if(16&Xs.flags){var l=o.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for(Xs=c;null!==Xs;){var f=Xs;switch(f.tag){case 0:case 11:case 15:nl(8,f,o)}var d=f.child;if(null!==d)d.return=f,Xs=d;else for(;null!==Xs;){var h=(f=Xs).sibling,p=f.return;if(ol(f),f===c){Xs=null;break}if(null!==h){h.return=p,Xs=h;break}Xs=p}}}var m=o.alternate;if(null!==m){var y=m.child;if(null!==y){m.child=null;do{var v=y.sibling;y.sibling=null,y=v}while(null!==y)}}Xs=o}}if(2064&o.subtreeFlags&&null!==s)s.return=o,Xs=s;else e:for(;null!==Xs;){if(2048&(o=Xs).flags)switch(o.tag){case 0:case 11:case 15:nl(9,o,o.return)}var g=o.sibling;if(null!==g){g.return=o.return,Xs=g;break e}Xs=o.return}}var b=e.current;for(Xs=b;null!==Xs;){var w=(s=Xs).child;if(2064&s.subtreeFlags&&null!==w)w.return=s,Xs=w;else e:for(s=b;null!==Xs;){if(2048&(l=Xs).flags)try{switch(l.tag){case 0:case 11:case 15:il(9,l)}}catch(e){xu(l,l.return,e)}if(l===s){Xs=null;break e}var _=l.sibling;if(null!==_){_.return=l.return,Xs=_;break e}Xs=l.return}}if(Cl=i,Ui(),at&&"function"==typeof at.onPostCommitFiberRoot)try{at.onPostCommitFiberRoot(it,e)}catch(e){}n=!0}return n}finally{bt=r,Nl.transition=t}}return!1}function Eu(e,t,r){e=Aa(e,t=ps(0,t=cs(r,t),1),1),t=tu(),null!==e&&(vt(e,1,t),iu(e,t))}function xu(e,t,r){if(3===e.tag)Eu(e,e,r);else for(;null!==t;){if(3===t.tag){Eu(t,e,r);break}if(1===t.tag){var n=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof n.componentDidCatch&&(null===Hl||!Hl.has(n))){t=Aa(t,e=ms(t,e=cs(r,e),1),1),e=tu(),null!==t&&(vt(t,1,e),iu(t,e));break}}t=t.return}}function Ou(e,t,r){var n=e.pingCache;null!==n&&n.delete(t),t=tu(),e.pingedLanes|=e.suspendedLanes&r,Dl===e&&(Pl&r)===r&&(4===Fl||3===Fl&&(130023424&Pl)===Pl&&500>Ke()-Ul?hu(e,0):zl|=r),iu(e,t)}function Tu(e,t){0===t&&(1&e.mode?(t=ct,!(130023424&(ct<<=1))&&(ct=4194304)):t=1);var r=tu();null!==(e=Ca(e,t))&&(vt(e,t,r),iu(e,r))}function Nu(e){var t=e.memoizedState,r=0;null!==t&&(r=t.retryLane),Tu(e,r)}function Cu(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;null!==i&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(a(314))}null!==n&&n.delete(t),Tu(e,r)}function Du(e,t){return He(e,t)}function Iu(e,t,r,n){this.tag=e,this.key=r,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=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Pu(e,t,r,n){return new Iu(e,t,r,n)}function Mu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Au(e,t){var r=e.alternate;return null===r?((r=Pu(e.tag,t,e.key,e.mode)).elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=14680064&e.flags,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Fu(e,t,r,n,i,o){var s=2;if(n=e,"function"==typeof e)Mu(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case S:return ju(r.children,i,o,t);case E:s=8,i|=8;break;case x:return(e=Pu(12,r,t,2|i)).elementType=x,e.lanes=o,e;case C:return(e=Pu(13,r,t,i)).elementType=C,e.lanes=o,e;case D:return(e=Pu(19,r,t,i)).elementType=D,e.lanes=o,e;case M:return Lu(r,i,o,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case O:s=10;break e;case T:s=9;break e;case N:s=11;break e;case I:s=14;break e;case P:s=16,n=null;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Pu(s,r,t,i)).elementType=e,t.type=n,t.lanes=o,t}function ju(e,t,r,n){return(e=Pu(7,e,n,t)).lanes=r,e}function Lu(e,t,r,n){return(e=Pu(22,e,n,t)).elementType=M,e.lanes=r,e.stateNode={isHidden:!1},e}function Ru(e,t,r){return(e=Pu(6,e,null,t)).lanes=r,e}function zu(e,t,r){return(t=Pu(4,null!==e.children?e.children:[],e.key,t)).lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Vu(e,t,r,n,i){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=yt(0),this.expirationTimes=yt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yt(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function qu(e,t,r,n,i,a,o,s,l){return e=new Vu(e,t,r,s,l),1===t?(t=1,!0===a&&(t|=8)):t=0,a=Pu(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ia(a),e}function Uu(e){if(!e)return Ti;e:{if(Ue(e=e._reactInternals)!==e||1!==e.tag)throw Error(a(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Pi(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(a(171))}if(1===e.tag){var r=e.type;if(Pi(r))return Fi(e,r,t)}return t}function Qu(e,t,r,n,i,a,o,s,l){return(e=qu(r,n,!0,e,0,a,0,s,l)).context=Uu(null),r=e.current,(a=Ma(n=tu(),i=ru(r))).callback=null!=t?t:null,Aa(r,a,i),e.current.lanes=i,vt(e,i,n),iu(e,n),e}function Bu(e,t,r,n){var i=t.current,a=tu(),o=ru(i);return r=Uu(r),null===t.context?t.context=r:t.pendingContext=r,(t=Ma(a,o)).payload={element:e},null!==(n=void 0===n?null:n)&&(t.callback=n),null!==(e=Aa(i,t,o))&&(nu(e,i,o,a),Fa(e,i,o)),o}function $u(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Wu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var r=e.retryLane;e.retryLane=0!==r&&r<t?r:t}}function Hu(e,t){Wu(e,t),(e=e.alternate)&&Wu(e,t)}El=function(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ci.current)ws=!0;else{if(!(e.lanes&r||128&t.flags))return ws=!1,function(e,t,r){switch(t.tag){case 3:Ds(t),ha();break;case 5:ao(t);break;case 1:Pi(t.type)&&ji(t);break;case 4:no(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,i=t.memoizedProps.value;Oi(va,n._currentValue),n._currentValue=i;break;case 13:if(null!==(n=t.memoizedState))return null!==n.dehydrated?(Oi(so,1&so.current),t.flags|=128,null):r&t.child.childLanes?Rs(e,t,r):(Oi(so,1&so.current),null!==(e=$s(e,t,r))?e.sibling:null);Oi(so,1&so.current);break;case 19:if(n=!!(r&t.childLanes),128&e.flags){if(n)return Qs(e,t,r);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),Oi(so,so.current),n)break;return null;case 22:case 23:return t.lanes=0,xs(e,t,r)}return $s(e,t,r)}(e,t,r);ws=!!(131072&e.flags)}else ws=!1,ia&&1048576&t.flags&&Xi(t,Wi,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Bs(e,t),e=t.pendingProps;var i=Ii(t,Ni.current);Ea(t,r),i=Eo(null,t,n,e,i,r);var o=xo();return t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Pi(n)?(o=!0,ji(t)):o=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Ia(t),i.updater=qa,t.stateNode=i,i._reactInternals=t,$a(t,n,e,r),t=Cs(null,t,n,!0,o,r)):(t.tag=0,ia&&o&&ea(t),_s(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Bs(e,t),e=t.pendingProps,n=(i=n._init)(n._payload),t.type=n,i=t.tag=function(e){if("function"==typeof e)return Mu(e)?1:0;if(null!=e){if((e=e.$$typeof)===N)return 11;if(e===I)return 14}return 2}(n),e=ya(n,e),i){case 0:t=Ts(null,t,n,e,r);break e;case 1:t=Ns(null,t,n,e,r);break e;case 11:t=ks(null,t,n,e,r);break e;case 14:t=Ss(null,t,n,ya(n.type,e),r);break e}throw Error(a(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,Ts(e,t,n,i=t.elementType===n?i:ya(n,i),r);case 1:return n=t.type,i=t.pendingProps,Ns(e,t,n,i=t.elementType===n?i:ya(n,i),r);case 3:e:{if(Ds(t),null===e)throw Error(a(387));n=t.pendingProps,i=(o=t.memoizedState).element,Pa(e,t),La(t,n,null,r);var s=t.memoizedState;if(n=s.element,o.isDehydrated){if(o={element:n,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,256&t.flags){t=Is(e,t,n,r,i=cs(Error(a(423)),t));break e}if(n!==i){t=Is(e,t,n,r,i=cs(Error(a(424)),t));break e}for(na=ui(t.stateNode.containerInfo.firstChild),ra=t,ia=!0,aa=null,r=Ka(t,null,n,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(ha(),n===i){t=$s(e,t,r);break e}_s(e,t,n,r)}t=t.child}return t;case 5:return ao(t),null===e&&ua(t),n=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,s=i.children,ri(n,i)?s=null:null!==o&&ri(n,o)&&(t.flags|=32),Os(e,t),_s(e,t,s,r),t.child;case 6:return null===e&&ua(t),null;case 13:return Rs(e,t,r);case 4:return no(t,t.stateNode.containerInfo),n=t.pendingProps,null===e?t.child=Ya(t,null,n,r):_s(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,ks(e,t,n,i=t.elementType===n?i:ya(n,i),r);case 7:return _s(e,t,t.pendingProps,r),t.child;case 8:case 12:return _s(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,Oi(va,n._currentValue),n._currentValue=s,null!==o)if(sn(o.value,s)){if(o.children===i.children&&!Ci.current){t=$s(e,t,r);break e}}else for(null!==(o=t.child)&&(o.return=t);null!==o;){var l=o.dependencies;if(null!==l){s=o.child;for(var u=l.firstContext;null!==u;){if(u.context===n){if(1===o.tag){(u=Ma(-1,r&-r)).tag=2;var c=o.updateQueue;if(null!==c){var f=(c=c.shared).pending;null===f?u.next=u:(u.next=f.next,f.next=u),c.pending=u}}o.lanes|=r,null!==(u=o.alternate)&&(u.lanes|=r),Sa(o.return,r,t),l.lanes|=r;break}u=u.next}}else if(10===o.tag)s=o.type===t.type?null:o.child;else if(18===o.tag){if(null===(s=o.return))throw Error(a(341));s.lanes|=r,null!==(l=s.alternate)&&(l.lanes|=r),Sa(s,r,t),s=o.sibling}else s=o.child;if(null!==s)s.return=o;else for(s=o;null!==s;){if(s===t){s=null;break}if(null!==(o=s.sibling)){o.return=s.return,s=o;break}s=s.return}o=s}_s(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,Ea(t,r),n=n(i=xa(i)),t.flags|=1,_s(e,t,n,r),t.child;case 14:return i=ya(n=t.type,t.pendingProps),Ss(e,t,n,i=ya(n.type,i),r);case 15:return Es(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:ya(n,i),Bs(e,t),t.tag=1,Pi(n)?(e=!0,ji(t)):e=!1,Ea(t,r),Qa(t,n,i),$a(t,n,i,r),Cs(null,t,n,!0,e,r);case 19:return Qs(e,t,r);case 22:return xs(e,t,r)}throw Error(a(156,t.tag))};var Gu="function"==typeof reportError?reportError:function(e){console.error(e)};function Zu(e){this._internalRoot=e}function Yu(e){this._internalRoot=e}function Ku(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Ju(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Xu(){}function ec(e,t,r,n,i){var a=r._reactRootContainer;if(a){var o=a;if("function"==typeof i){var s=i;i=function(){var e=$u(o);s.call(e)}}Bu(t,o,e,i)}else o=function(e,t,r,n,i){if(i){if("function"==typeof n){var a=n;n=function(){var e=$u(o);a.call(e)}}var o=Qu(t,n,e,0,null,!1,0,"",Xu);return e._reactRootContainer=o,e[pi]=o.current,Un(8===e.nodeType?e.parentNode:e),fu(),o}for(;i=e.lastChild;)e.removeChild(i);if("function"==typeof n){var s=n;n=function(){var e=$u(l);s.call(e)}}var l=qu(e,0,!1,null,0,!1,0,"",Xu);return e._reactRootContainer=l,e[pi]=l.current,Un(8===e.nodeType?e.parentNode:e),fu((function(){Bu(t,l,r,n)})),l}(r,t,e,i,n);return $u(o)}Yu.prototype.render=Zu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(a(409));Bu(e,t,null,null)},Yu.prototype.unmount=Zu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;fu((function(){Bu(null,e,null,null)})),t[pi]=null}},Yu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Et();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Mt.length&&0!==t&&t<Mt[r].priority;r++);Mt.splice(r,0,e),0===r&&Lt(e)}},_t=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=ft(t.pendingLanes);0!==r&&(gt(t,1|r),iu(t,Ke()),!(6&Cl)&&(Ql=Ke()+500,Ui()))}break;case 13:fu((function(){var t=Ca(e,1);if(null!==t){var r=tu();nu(t,e,1,r)}})),Hu(e,1)}},kt=function(e){if(13===e.tag){var t=Ca(e,134217728);null!==t&&nu(t,e,134217728,tu()),Hu(e,134217728)}},St=function(e){if(13===e.tag){var t=ru(e),r=Ca(e,t);null!==r&&nu(r,e,t,tu()),Hu(e,t)}},Et=function(){return bt},xt=function(e,t){var r=bt;try{return bt=e,t()}finally{bt=r}},ke=function(e,t,r){switch(t){case"input":if(J(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var i=_i(n);if(!i)throw Error(a(90));H(n),J(n,i)}}}break;case"textarea":ae(e,r);break;case"select":null!=(t=r.value)&&re(e,!!r.multiple,t,!1)}},Ne=cu,Ce=fu;var tc={usingClientEntryPoint:!1,Events:[bi,wi,_i,Oe,Te,cu]},rc={findFiberByHostInstance:gi,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},nc={bundleType:rc.bundleType,version:rc.version,rendererPackageName:rc.rendererPackageName,rendererConfig:rc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=$e(e))?null:e.stateNode},findFiberByHostInstance:rc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ic=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ic.isDisabled&&ic.supportsFiber)try{it=ic.inject(nc),at=ic}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tc,t.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Ku(t))throw Error(a(200));return function(e,t,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:k,key:null==n?null:""+n,children:e,containerInfo:t,implementation:r}}(e,t,null,r)},t.createRoot=function(e,t){if(!Ku(e))throw Error(a(299));var r=!1,n="",i=Gu;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(n=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=qu(e,1,!1,null,0,r,0,n,i),e[pi]=t.current,Un(8===e.nodeType?e.parentNode:e),new Zu(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw e=Object.keys(e).join(","),Error(a(268,e))}return null===(e=$e(t))?null:e.stateNode},t.flushSync=function(e){return fu(e)},t.hydrate=function(e,t,r){if(!Ju(t))throw Error(a(200));return ec(null,e,t,!0,r)},t.hydrateRoot=function(e,t,r){if(!Ku(e))throw Error(a(405));var n=null!=r&&r.hydratedSources||null,i=!1,o="",s=Gu;if(null!=r&&(!0===r.unstable_strictMode&&(i=!0),void 0!==r.identifierPrefix&&(o=r.identifierPrefix),void 0!==r.onRecoverableError&&(s=r.onRecoverableError)),t=Qu(t,null,e,1,null!=r?r:null,i,0,o,s),e[pi]=t.current,Un(e),n)for(e=0;e<n.length;e++)i=(i=(r=n[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,i]:t.mutableSourceEagerHydrationData.push(r,i);return new Yu(t)},t.render=function(e,t,r){if(!Ju(t))throw Error(a(200));return ec(null,e,t,!1,r)},t.unmountComponentAtNode=function(e){if(!Ju(e))throw Error(a(40));return!!e._reactRootContainer&&(fu((function(){ec(null,null,e,!1,(function(){e._reactRootContainer=null,e[pi]=null}))})),!0)},t.unstable_batchedUpdates=cu,t.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Ju(r))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return ec(e,t,r,!1,n)},t.version="18.2.0-next-9e3b772b8-20220608"},338:(e,t,r)=>{"use strict";var n=r(961);t.createRoot=n.createRoot,t.hydrateRoot=n.hydrateRoot},961:(e,t,r)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=r(551)},287:(e,t)=>{"use strict";var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.iterator,p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,y={};function v(e,t,r){this.props=e,this.context=t,this.refs=y,this.updater=r||p}function g(){}function b(e,t,r){this.props=e,this.context=t,this.refs=y,this.updater=r||p}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)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")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=v.prototype;var w=b.prototype=new g;w.constructor=b,m(w,v.prototype),w.isPureReactComponent=!0;var _=Array.isArray,k=Object.prototype.hasOwnProperty,S={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function x(e,t,n){var i,a={},o=null,s=null;if(null!=t)for(i in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(o=""+t.key),t)k.call(t,i)&&!E.hasOwnProperty(i)&&(a[i]=t[i]);var l=arguments.length-2;if(1===l)a.children=n;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];a.children=u}if(e&&e.defaultProps)for(i in l=e.defaultProps)void 0===a[i]&&(a[i]=l[i]);return{$$typeof:r,type:e,key:o,ref:s,props:a,_owner:S.current}}function O(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}var T=/\/+/g;function N(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function C(e,t,i,a,o){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case r:case n:l=!0}}if(l)return o=o(l=e),e=""===a?"."+N(l,0):a,_(o)?(i="",null!=e&&(i=e.replace(T,"$&/")+"/"),C(o,t,i,"",(function(e){return e}))):null!=o&&(O(o)&&(o=function(e,t){return{$$typeof:r,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,i+(!o.key||l&&l.key===o.key?"":(""+o.key).replace(T,"$&/")+"/")+e)),t.push(o)),1;if(l=0,a=""===a?".":a+":",_(e))for(var u=0;u<e.length;u++){var c=a+N(s=e[u],u);l+=C(s,t,i,c,o)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),u=0;!(s=e.next()).done;)l+=C(s=s.value,t,i,c=a+N(s,u++),o);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function D(e,t,r){if(null==e)return e;var n=[],i=0;return C(e,n,"","",(function(e){return t.call(r,e,i++)})),n}function I(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var P={current:null},M={transition:null},A={ReactCurrentDispatcher:P,ReactCurrentBatchConfig:M,ReactCurrentOwner:S};t.Children={map:D,forEach:function(e,t,r){D(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return D(e,(function(){t++})),t},toArray:function(e){return D(e,(function(e){return e}))||[]},only:function(e){if(!O(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=i,t.Profiler=o,t.PureComponent=b,t.StrictMode=a,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=A,t.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=m({},e.props),a=e.key,o=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(o=t.ref,s=S.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)k.call(t,u)&&!E.hasOwnProperty(u)&&(i[u]=void 0===t[u]&&void 0!==l?l[u]:t[u])}var u=arguments.length-2;if(1===u)i.children=n;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];i.children=l}return{$$typeof:r,type:e.type,key:a,ref:o,props:i,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=x,t.createFactory=function(e){var t=x.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=O,t.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:I}},t.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=M.transition;M.transition={};try{e()}finally{M.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return P.current.useCallback(e,t)},t.useContext=function(e){return P.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return P.current.useDeferredValue(e)},t.useEffect=function(e,t){return P.current.useEffect(e,t)},t.useId=function(){return P.current.useId()},t.useImperativeHandle=function(e,t,r){return P.current.useImperativeHandle(e,t,r)},t.useInsertionEffect=function(e,t){return P.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return P.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return P.current.useMemo(e,t)},t.useReducer=function(e,t,r){return P.current.useReducer(e,t,r)},t.useRef=function(e){return P.current.useRef(e)},t.useState=function(e){return P.current.useState(e)},t.useSyncExternalStore=function(e,t,r){return P.current.useSyncExternalStore(e,t,r)},t.useTransition=function(){return P.current.useTransition()},t.version="18.2.0"},540:(e,t,r)=>{"use strict";e.exports=r(287)},243:(e,t,r)=>{"use strict";e.exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=void 0,e.exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,e.exports.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=void 0,Object.assign(e.exports,r(540))},463:(e,t)=>{"use strict";function r(e,t){var r=e.length;e.push(t);e:for(;0<r;){var n=r-1>>>1,i=e[n];if(!(0<a(i,t)))break e;e[n]=t,e[r]=i,r=n}}function n(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,i=e.length,o=i>>>1;n<o;){var s=2*(n+1)-1,l=e[s],u=s+1,c=e[u];if(0>a(l,r))u<i&&0>a(c,l)?(e[n]=c,e[u]=r,n=u):(e[n]=l,e[s]=r,n=s);else{if(!(u<i&&0>a(c,r)))break e;e[n]=c,e[u]=r,n=u}}}return t}function a(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var o=performance;t.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var u=[],c=[],f=1,d=null,h=3,p=!1,m=!1,y=!1,v="function"==typeof setTimeout?setTimeout:null,g="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=n(c);null!==t;){if(null===t.callback)i(c);else{if(!(t.startTime<=e))break;i(c),t.sortIndex=t.expirationTime,r(u,t)}t=n(c)}}function _(e){if(y=!1,w(e),!m)if(null!==n(u))m=!0,M(k);else{var t=n(c);null!==t&&A(_,t.startTime-e)}}function k(e,r){m=!1,y&&(y=!1,g(O),O=-1),p=!0;var a=h;try{for(w(r),d=n(u);null!==d&&(!(d.expirationTime>r)||e&&!C());){var o=d.callback;if("function"==typeof o){d.callback=null,h=d.priorityLevel;var s=o(d.expirationTime<=r);r=t.unstable_now(),"function"==typeof s?d.callback=s:d===n(u)&&i(u),w(r)}else i(u);d=n(u)}if(null!==d)var l=!0;else{var f=n(c);null!==f&&A(_,f.startTime-r),l=!1}return l}finally{d=null,h=a,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,E=!1,x=null,O=-1,T=5,N=-1;function C(){return!(t.unstable_now()-N<T)}function D(){if(null!==x){var e=t.unstable_now();N=e;var r=!0;try{r=x(!0,e)}finally{r?S():(E=!1,x=null)}}else E=!1}if("function"==typeof b)S=function(){b(D)};else if("undefined"!=typeof MessageChannel){var I=new MessageChannel,P=I.port2;I.port1.onmessage=D,S=function(){P.postMessage(null)}}else S=function(){v(D,0)};function M(e){x=e,E||(E=!0,S())}function A(e,r){O=v((function(){e(t.unstable_now())}),r)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||p||(m=!0,M(k))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return n(u)},t.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var r=h;h=t;try{return e()}finally{h=r}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=h;h=e;try{return t()}finally{h=r}},t.unstable_scheduleCallback=function(e,i,a){var o=t.unstable_now();switch(a="object"==typeof a&&null!==a&&"number"==typeof(a=a.delay)&&0<a?o+a:o,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:f++,callback:i,priorityLevel:e,startTime:a,expirationTime:s=a+s,sortIndex:-1},a>o?(e.sortIndex=a,r(c,e),null===n(u)&&e===n(c)&&(y?(g(O),O=-1):y=!0,A(_,a-o))):(e.sortIndex=s,r(u,e),m||p||(m=!0,M(k))),e},t.unstable_shouldYield=C,t.unstable_wrapCallback=function(e){var t=h;return function(){var r=h;h=t;try{return e.apply(this,arguments)}finally{h=r}}}},982:(e,t,r)=>{"use strict";e.exports=r(463)},552:function(e,t,r){var n;(function(){function i(e){"use strict";var t={omitExtraWLInCodeBlocks:{defaultValue:!1,describe:"Omit the default extra whiteline added to code blocks",type:"boolean"},noHeaderId:{defaultValue:!1,describe:"Turn on/off generated header id",type:"boolean"},prefixHeaderId:{defaultValue:!1,describe:"Add a prefix to the generated header ids. Passing a string will prefix that string to the header id. Setting to true will add a generic 'section-' prefix",type:"string"},rawPrefixHeaderId:{defaultValue:!1,describe:'Setting this option to true will prevent showdown from modifying the prefix. This might result in malformed IDs (if, for instance, the " char is used in the prefix)',type:"boolean"},ghCompatibleHeaderId:{defaultValue:!1,describe:"Generate header ids compatible with github style (spaces are replaced with dashes, a bunch of non alphanumeric chars are removed)",type:"boolean"},rawHeaderId:{defaultValue:!1,describe:"Remove only spaces, ' and \" from generated header ids (including prefixes), replacing them with dashes (-). WARNING: This might result in malformed ids",type:"boolean"},headerLevelStart:{defaultValue:!1,describe:"The header blocks level start",type:"integer"},parseImgDimensions:{defaultValue:!1,describe:"Turn on/off image dimension parsing",type:"boolean"},simplifiedAutoLink:{defaultValue:!1,describe:"Turn on/off GFM autolink style",type:"boolean"},excludeTrailingPunctuationFromURLs:{defaultValue:!1,describe:"Excludes trailing punctuation from links generated with autoLinking",type:"boolean"},literalMidWordUnderscores:{defaultValue:!1,describe:"Parse midword underscores as literal underscores",type:"boolean"},literalMidWordAsterisks:{defaultValue:!1,describe:"Parse midword asterisks as literal asterisks",type:"boolean"},strikethrough:{defaultValue:!1,describe:"Turn on/off strikethrough support",type:"boolean"},tables:{defaultValue:!1,describe:"Turn on/off tables support",type:"boolean"},tablesHeaderId:{defaultValue:!1,describe:"Add an id to table headers",type:"boolean"},ghCodeBlocks:{defaultValue:!0,describe:"Turn on/off GFM fenced code blocks support",type:"boolean"},tasklists:{defaultValue:!1,describe:"Turn on/off GFM tasklist support",type:"boolean"},smoothLivePreview:{defaultValue:!1,describe:"Prevents weird effects in live previews due to incomplete input",type:"boolean"},smartIndentationFix:{defaultValue:!1,describe:"Tries to smartly fix indentation in es6 strings",type:"boolean"},disableForced4SpacesIndentedSublists:{defaultValue:!1,describe:"Disables the requirement of indenting nested sublists by 4 spaces",type:"boolean"},simpleLineBreaks:{defaultValue:!1,describe:"Parses simple line breaks as <br> (GFM Style)",type:"boolean"},requireSpaceBeforeHeadingText:{defaultValue:!1,describe:"Makes adding a space between `#` and the header text mandatory (GFM Style)",type:"boolean"},ghMentions:{defaultValue:!1,describe:"Enables github @mentions",type:"boolean"},ghMentionsLink:{defaultValue:"https://github.com/{u}",describe:"Changes the link generated by @mentions. Only applies if ghMentions option is enabled.",type:"string"},encodeEmails:{defaultValue:!0,describe:"Encode e-mail addresses through the use of Character Entities, transforming ASCII e-mail addresses into its equivalent decimal entities",type:"boolean"},openLinksInNewWindow:{defaultValue:!1,describe:"Open all links in new windows",type:"boolean"},backslashEscapesHTMLTags:{defaultValue:!1,describe:"Support for HTML Tag escaping. ex: <div>foo</div>",type:"boolean"},emoji:{defaultValue:!1,describe:"Enable emoji support. Ex: `this is a :smile: emoji`",type:"boolean"},underline:{defaultValue:!1,describe:"Enable support for underline. Syntax is double or triple underscores: `__underline word__`. With this option enabled, underscores no longer parses into `<em>` and `<strong>`",type:"boolean"},ellipsis:{defaultValue:!0,describe:"Replaces three dots with the ellipsis unicode character",type:"boolean"},completeHTMLDocument:{defaultValue:!1,describe:"Outputs a complete html document, including `<html>`, `<head>` and `<body>` tags",type:"boolean"},metadata:{defaultValue:!1,describe:"Enable support for document metadata (defined at the top of the document between `«««` and `»»»` or between `---` and `---`).",type:"boolean"},splitAdjacentBlockquotes:{defaultValue:!1,describe:"Split adjacent blockquote blocks",type:"boolean"}};if(!1===e)return JSON.parse(JSON.stringify(t));var r={};for(var n in t)t.hasOwnProperty(n)&&(r[n]=t[n].defaultValue);return r}var a={},o={},s={},l=i(!0),u="vanilla",c={github:{omitExtraWLInCodeBlocks:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,disableForced4SpacesIndentedSublists:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghCompatibleHeaderId:!0,ghMentions:!0,backslashEscapesHTMLTags:!0,emoji:!0,splitAdjacentBlockquotes:!0},original:{noHeaderId:!0,ghCodeBlocks:!1},ghost:{omitExtraWLInCodeBlocks:!0,parseImgDimensions:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,smoothLivePreview:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghMentions:!1,encodeEmails:!0},vanilla:i(!0),allOn:function(){"use strict";var e=i(!0),t={};for(var r in e)e.hasOwnProperty(r)&&(t[r]=!0);return t}()};function f(e,t){"use strict";var r=t?"Error in "+t+" extension->":"Error in unnamed extension",n={valid:!0,error:""};a.helper.isArray(e)||(e=[e]);for(var i=0;i<e.length;++i){var o=r+" sub-extension "+i+": ",s=e[i];if("object"!=typeof s)return n.valid=!1,n.error=o+"must be an object, but "+typeof s+" given",n;if(!a.helper.isString(s.type))return n.valid=!1,n.error=o+'property "type" must be a string, but '+typeof s.type+" given",n;var l=s.type=s.type.toLowerCase();if("language"===l&&(l=s.type="lang"),"html"===l&&(l=s.type="output"),"lang"!==l&&"output"!==l&&"listener"!==l)return n.valid=!1,n.error=o+"type "+l+' is not recognized. Valid values: "lang/language", "output/html" or "listener"',n;if("listener"===l){if(a.helper.isUndefined(s.listeners))return n.valid=!1,n.error=o+'. Extensions of type "listener" must have a property called "listeners"',n}else if(a.helper.isUndefined(s.filter)&&a.helper.isUndefined(s.regex))return n.valid=!1,n.error=o+l+' extensions must define either a "regex" property or a "filter" method',n;if(s.listeners){if("object"!=typeof s.listeners)return n.valid=!1,n.error=o+'"listeners" property must be an object but '+typeof s.listeners+" given",n;for(var u in s.listeners)if(s.listeners.hasOwnProperty(u)&&"function"!=typeof s.listeners[u])return n.valid=!1,n.error=o+'"listeners" property must be an hash of [event name]: [callback]. listeners.'+u+" must be a function but "+typeof s.listeners[u]+" given",n}if(s.filter){if("function"!=typeof s.filter)return n.valid=!1,n.error=o+'"filter" must be a function, but '+typeof s.filter+" given",n}else if(s.regex){if(a.helper.isString(s.regex)&&(s.regex=new RegExp(s.regex,"g")),!(s.regex instanceof RegExp))return n.valid=!1,n.error=o+'"regex" property must either be a string or a RegExp object, but '+typeof s.regex+" given",n;if(a.helper.isUndefined(s.replace))return n.valid=!1,n.error=o+'"regex" extensions must implement a replace string or function',n}}return n}function d(e,t){"use strict";return"¨E"+t.charCodeAt(0)+"E"}a.helper={},a.extensions={},a.setOption=function(e,t){"use strict";return l[e]=t,this},a.getOption=function(e){"use strict";return l[e]},a.getOptions=function(){"use strict";return l},a.resetOptions=function(){"use strict";l=i(!0)},a.setFlavor=function(e){"use strict";if(!c.hasOwnProperty(e))throw Error(e+" flavor was not found");a.resetOptions();var t=c[e];for(var r in u=e,t)t.hasOwnProperty(r)&&(l[r]=t[r])},a.getFlavor=function(){"use strict";return u},a.getFlavorOptions=function(e){"use strict";if(c.hasOwnProperty(e))return c[e]},a.getDefaultOptions=function(e){"use strict";return i(e)},a.subParser=function(e,t){"use strict";if(a.helper.isString(e)){if(void 0===t){if(o.hasOwnProperty(e))return o[e];throw Error("SubParser named "+e+" not registered!")}o[e]=t}},a.extension=function(e,t){"use strict";if(!a.helper.isString(e))throw Error("Extension 'name' must be a string");if(e=a.helper.stdExtName(e),a.helper.isUndefined(t)){if(!s.hasOwnProperty(e))throw Error("Extension named "+e+" is not registered!");return s[e]}"function"==typeof t&&(t=t()),a.helper.isArray(t)||(t=[t]);var r=f(t,e);if(!r.valid)throw Error(r.error);s[e]=t},a.getAllExtensions=function(){"use strict";return s},a.removeExtension=function(e){"use strict";delete s[e]},a.resetExtensions=function(){"use strict";s={}},a.validateExtension=function(e){"use strict";var t=f(e,null);return!!t.valid||(console.warn(t.error),!1)},a.hasOwnProperty("helper")||(a.helper={}),a.helper.isString=function(e){"use strict";return"string"==typeof e||e instanceof String},a.helper.isFunction=function(e){"use strict";return e&&"[object Function]"==={}.toString.call(e)},a.helper.isArray=function(e){"use strict";return Array.isArray(e)},a.helper.isUndefined=function(e){"use strict";return void 0===e},a.helper.forEach=function(e,t){"use strict";if(a.helper.isUndefined(e))throw new Error("obj param is required");if(a.helper.isUndefined(t))throw new Error("callback param is required");if(!a.helper.isFunction(t))throw new Error("callback param must be a function/closure");if("function"==typeof e.forEach)e.forEach(t);else if(a.helper.isArray(e))for(var r=0;r<e.length;r++)t(e[r],r,e);else{if("object"!=typeof e)throw new Error("obj does not seem to be an array or an iterable object");for(var n in e)e.hasOwnProperty(n)&&t(e[n],n,e)}},a.helper.stdExtName=function(e){"use strict";return e.replace(/[_?*+\/\\.^-]/g,"").replace(/\s/g,"").toLowerCase()},a.helper.escapeCharactersCallback=d,a.helper.escapeCharacters=function(e,t,r){"use strict";var n="(["+t.replace(/([\[\]\\])/g,"\\$1")+"])";r&&(n="\\\\"+n);var i=new RegExp(n,"g");return e.replace(i,d)},a.helper.unescapeHTMLEntities=function(e){"use strict";return e.replace(/&quot;/g,'"').replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&")};var h=function(e,t,r,n){"use strict";var i,a,o,s,l,u=n||"",c=u.indexOf("g")>-1,f=new RegExp(t+"|"+r,"g"+u.replace(/g/g,"")),d=new RegExp(t,u.replace(/g/g,"")),h=[];do{for(i=0;o=f.exec(e);)if(d.test(o[0]))i++||(s=(a=f.lastIndex)-o[0].length);else if(i&&! --i){l=o.index+o[0].length;var p={left:{start:s,end:a},match:{start:a,end:o.index},right:{start:o.index,end:l},wholeMatch:{start:s,end:l}};if(h.push(p),!c)return h}}while(i&&(f.lastIndex=a));return h};a.helper.matchRecursiveRegExp=function(e,t,r,n){"use strict";for(var i=h(e,t,r,n),a=[],o=0;o<i.length;++o)a.push([e.slice(i[o].wholeMatch.start,i[o].wholeMatch.end),e.slice(i[o].match.start,i[o].match.end),e.slice(i[o].left.start,i[o].left.end),e.slice(i[o].right.start,i[o].right.end)]);return a},a.helper.replaceRecursiveRegExp=function(e,t,r,n,i){"use strict";if(!a.helper.isFunction(t)){var o=t;t=function(){return o}}var s=h(e,r,n,i),l=e,u=s.length;if(u>0){var c=[];0!==s[0].wholeMatch.start&&c.push(e.slice(0,s[0].wholeMatch.start));for(var f=0;f<u;++f)c.push(t(e.slice(s[f].wholeMatch.start,s[f].wholeMatch.end),e.slice(s[f].match.start,s[f].match.end),e.slice(s[f].left.start,s[f].left.end),e.slice(s[f].right.start,s[f].right.end))),f<u-1&&c.push(e.slice(s[f].wholeMatch.end,s[f+1].wholeMatch.start));s[u-1].wholeMatch.end<e.length&&c.push(e.slice(s[u-1].wholeMatch.end)),l=c.join("")}return l},a.helper.regexIndexOf=function(e,t,r){"use strict";if(!a.helper.isString(e))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";if(t instanceof RegExp==0)throw"InvalidArgumentError: second parameter of showdown.helper.regexIndexOf function must be an instance of RegExp";var n=e.substring(r||0).search(t);return n>=0?n+(r||0):n},a.helper.splitAtIndex=function(e,t){"use strict";if(!a.helper.isString(e))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";return[e.substring(0,t),e.substring(t)]},a.helper.encodeEmailAddress=function(e){"use strict";var t=[function(e){return"&#"+e.charCodeAt(0)+";"},function(e){return"&#x"+e.charCodeAt(0).toString(16)+";"},function(e){return e}];return e.replace(/./g,(function(e){if("@"===e)e=t[Math.floor(2*Math.random())](e);else{var r=Math.random();e=r>.9?t[2](e):r>.45?t[1](e):t[0](e)}return e}))},a.helper.padEnd=function(e,t,r){"use strict";return t|=0,r=String(r||" "),e.length>t?String(e):((t-=e.length)>r.length&&(r+=r.repeat(t/r.length)),String(e)+r.slice(0,t))},"undefined"==typeof console&&(console={warn:function(e){"use strict";alert(e)},log:function(e){"use strict";alert(e)},error:function(e){"use strict";throw e}}),a.helper.regexes={asteriskDashAndColon:/([*_:~])/g},a.helper.emojis={"+1":"👍","-1":"👎",100:"💯",1234:"🔢","1st_place_medal":"🥇","2nd_place_medal":"🥈","3rd_place_medal":"🥉","8ball":"🎱",a:"🅰️",ab:"🆎",abc:"🔤",abcd:"🔡",accept:"🉑",aerial_tramway:"🚡",airplane:"✈️",alarm_clock:"⏰",alembic:"⚗️",alien:"👽",ambulance:"🚑",amphora:"🏺",anchor:"⚓️",angel:"👼",anger:"💢",angry:"😠",anguished:"😧",ant:"🐜",apple:"🍎",aquarius:"♒️",aries:"♈️",arrow_backward:"◀️",arrow_double_down:"⏬",arrow_double_up:"⏫",arrow_down:"⬇️",arrow_down_small:"🔽",arrow_forward:"▶️",arrow_heading_down:"⤵️",arrow_heading_up:"⤴️",arrow_left:"⬅️",arrow_lower_left:"↙️",arrow_lower_right:"↘️",arrow_right:"➡️",arrow_right_hook:"↪️",arrow_up:"⬆️",arrow_up_down:"↕️",arrow_up_small:"🔼",arrow_upper_left:"↖️",arrow_upper_right:"↗️",arrows_clockwise:"🔃",arrows_counterclockwise:"🔄",art:"🎨",articulated_lorry:"🚛",artificial_satellite:"🛰",astonished:"😲",athletic_shoe:"👟",atm:"🏧",atom_symbol:"⚛️",avocado:"🥑",b:"🅱️",baby:"👶",baby_bottle:"🍼",baby_chick:"🐤",baby_symbol:"🚼",back:"🔙",bacon:"🥓",badminton:"🏸",baggage_claim:"🛄",baguette_bread:"🥖",balance_scale:"⚖️",balloon:"🎈",ballot_box:"🗳",ballot_box_with_check:"☑️",bamboo:"🎍",banana:"🍌",bangbang:"‼️",bank:"🏦",bar_chart:"📊",barber:"💈",baseball:"⚾️",basketball:"🏀",basketball_man:"⛹️",basketball_woman:"⛹️&zwj;♀️",bat:"🦇",bath:"🛀",bathtub:"🛁",battery:"🔋",beach_umbrella:"🏖",bear:"🐻",bed:"🛏",bee:"🐝",beer:"🍺",beers:"🍻",beetle:"🐞",beginner:"🔰",bell:"🔔",bellhop_bell:"🛎",bento:"🍱",biking_man:"🚴",bike:"🚲",biking_woman:"🚴&zwj;♀️",bikini:"👙",biohazard:"☣️",bird:"🐦",birthday:"🎂",black_circle:"⚫️",black_flag:"🏴",black_heart:"🖤",black_joker:"🃏",black_large_square:"⬛️",black_medium_small_square:"◾️",black_medium_square:"◼️",black_nib:"✒️",black_small_square:"▪️",black_square_button:"🔲",blonde_man:"👱",blonde_woman:"👱&zwj;♀️",blossom:"🌼",blowfish:"🐡",blue_book:"📘",blue_car:"🚙",blue_heart:"💙",blush:"😊",boar:"🐗",boat:"⛵️",bomb:"💣",book:"📖",bookmark:"🔖",bookmark_tabs:"📑",books:"📚",boom:"💥",boot:"👢",bouquet:"💐",bowing_man:"🙇",bow_and_arrow:"🏹",bowing_woman:"🙇&zwj;♀️",bowling:"🎳",boxing_glove:"🥊",boy:"👦",bread:"🍞",bride_with_veil:"👰",bridge_at_night:"🌉",briefcase:"💼",broken_heart:"💔",bug:"🐛",building_construction:"🏗",bulb:"💡",bullettrain_front:"🚅",bullettrain_side:"🚄",burrito:"🌯",bus:"🚌",business_suit_levitating:"🕴",busstop:"🚏",bust_in_silhouette:"👤",busts_in_silhouette:"👥",butterfly:"🦋",cactus:"🌵",cake:"🍰",calendar:"📆",call_me_hand:"🤙",calling:"📲",camel:"🐫",camera:"📷",camera_flash:"📸",camping:"🏕",cancer:"♋️",candle:"🕯",candy:"🍬",canoe:"🛶",capital_abcd:"🔠",capricorn:"♑️",car:"🚗",card_file_box:"🗃",card_index:"📇",card_index_dividers:"🗂",carousel_horse:"🎠",carrot:"🥕",cat:"🐱",cat2:"🐈",cd:"💿",chains:"⛓",champagne:"🍾",chart:"💹",chart_with_downwards_trend:"📉",chart_with_upwards_trend:"📈",checkered_flag:"🏁",cheese:"🧀",cherries:"🍒",cherry_blossom:"🌸",chestnut:"🌰",chicken:"🐔",children_crossing:"🚸",chipmunk:"🐿",chocolate_bar:"🍫",christmas_tree:"🎄",church:"⛪️",cinema:"🎦",circus_tent:"🎪",city_sunrise:"🌇",city_sunset:"🌆",cityscape:"🏙",cl:"🆑",clamp:"🗜",clap:"👏",clapper:"🎬",classical_building:"🏛",clinking_glasses:"🥂",clipboard:"📋",clock1:"🕐",clock10:"🕙",clock1030:"🕥",clock11:"🕚",clock1130:"🕦",clock12:"🕛",clock1230:"🕧",clock130:"🕜",clock2:"🕑",clock230:"🕝",clock3:"🕒",clock330:"🕞",clock4:"🕓",clock430:"🕟",clock5:"🕔",clock530:"🕠",clock6:"🕕",clock630:"🕡",clock7:"🕖",clock730:"🕢",clock8:"🕗",clock830:"🕣",clock9:"🕘",clock930:"🕤",closed_book:"📕",closed_lock_with_key:"🔐",closed_umbrella:"🌂",cloud:"☁️",cloud_with_lightning:"🌩",cloud_with_lightning_and_rain:"⛈",cloud_with_rain:"🌧",cloud_with_snow:"🌨",clown_face:"🤡",clubs:"♣️",cocktail:"🍸",coffee:"☕️",coffin:"⚰️",cold_sweat:"😰",comet:"☄️",computer:"💻",computer_mouse:"🖱",confetti_ball:"🎊",confounded:"😖",confused:"😕",congratulations:"㊗️",construction:"🚧",construction_worker_man:"👷",construction_worker_woman:"👷&zwj;♀️",control_knobs:"🎛",convenience_store:"🏪",cookie:"🍪",cool:"🆒",policeman:"👮",copyright:"©️",corn:"🌽",couch_and_lamp:"🛋",couple:"👫",couple_with_heart_woman_man:"💑",couple_with_heart_man_man:"👨&zwj;❤️&zwj;👨",couple_with_heart_woman_woman:"👩&zwj;❤️&zwj;👩",couplekiss_man_man:"👨&zwj;❤️&zwj;💋&zwj;👨",couplekiss_man_woman:"💏",couplekiss_woman_woman:"👩&zwj;❤️&zwj;💋&zwj;👩",cow:"🐮",cow2:"🐄",cowboy_hat_face:"🤠",crab:"🦀",crayon:"🖍",credit_card:"💳",crescent_moon:"🌙",cricket:"🏏",crocodile:"🐊",croissant:"🥐",crossed_fingers:"🤞",crossed_flags:"🎌",crossed_swords:"⚔️",crown:"👑",cry:"😢",crying_cat_face:"😿",crystal_ball:"🔮",cucumber:"🥒",cupid:"💘",curly_loop:"➰",currency_exchange:"💱",curry:"🍛",custard:"🍮",customs:"🛃",cyclone:"🌀",dagger:"🗡",dancer:"💃",dancing_women:"👯",dancing_men:"👯&zwj;♂️",dango:"🍡",dark_sunglasses:"🕶",dart:"🎯",dash:"💨",date:"📅",deciduous_tree:"🌳",deer:"🦌",department_store:"🏬",derelict_house:"🏚",desert:"🏜",desert_island:"🏝",desktop_computer:"🖥",male_detective:"🕵️",diamond_shape_with_a_dot_inside:"💠",diamonds:"♦️",disappointed:"😞",disappointed_relieved:"😥",dizzy:"💫",dizzy_face:"😵",do_not_litter:"🚯",dog:"🐶",dog2:"🐕",dollar:"💵",dolls:"🎎",dolphin:"🐬",door:"🚪",doughnut:"🍩",dove:"🕊",dragon:"🐉",dragon_face:"🐲",dress:"👗",dromedary_camel:"🐪",drooling_face:"🤤",droplet:"💧",drum:"🥁",duck:"🦆",dvd:"📀","e-mail":"📧",eagle:"🦅",ear:"👂",ear_of_rice:"🌾",earth_africa:"🌍",earth_americas:"🌎",earth_asia:"🌏",egg:"🥚",eggplant:"🍆",eight_pointed_black_star:"✴️",eight_spoked_asterisk:"✳️",electric_plug:"🔌",elephant:"🐘",email:"✉️",end:"🔚",envelope_with_arrow:"📩",euro:"💶",european_castle:"🏰",european_post_office:"🏤",evergreen_tree:"🌲",exclamation:"❗️",expressionless:"😑",eye:"👁",eye_speech_bubble:"👁&zwj;🗨",eyeglasses:"👓",eyes:"👀",face_with_head_bandage:"🤕",face_with_thermometer:"🤒",fist_oncoming:"👊",factory:"🏭",fallen_leaf:"🍂",family_man_woman_boy:"👪",family_man_boy:"👨&zwj;👦",family_man_boy_boy:"👨&zwj;👦&zwj;👦",family_man_girl:"👨&zwj;👧",family_man_girl_boy:"👨&zwj;👧&zwj;👦",family_man_girl_girl:"👨&zwj;👧&zwj;👧",family_man_man_boy:"👨&zwj;👨&zwj;👦",family_man_man_boy_boy:"👨&zwj;👨&zwj;👦&zwj;👦",family_man_man_girl:"👨&zwj;👨&zwj;👧",family_man_man_girl_boy:"👨&zwj;👨&zwj;👧&zwj;👦",family_man_man_girl_girl:"👨&zwj;👨&zwj;👧&zwj;👧",family_man_woman_boy_boy:"👨&zwj;👩&zwj;👦&zwj;👦",family_man_woman_girl:"👨&zwj;👩&zwj;👧",family_man_woman_girl_boy:"👨&zwj;👩&zwj;👧&zwj;👦",family_man_woman_girl_girl:"👨&zwj;👩&zwj;👧&zwj;👧",family_woman_boy:"👩&zwj;👦",family_woman_boy_boy:"👩&zwj;👦&zwj;👦",family_woman_girl:"👩&zwj;👧",family_woman_girl_boy:"👩&zwj;👧&zwj;👦",family_woman_girl_girl:"👩&zwj;👧&zwj;👧",family_woman_woman_boy:"👩&zwj;👩&zwj;👦",family_woman_woman_boy_boy:"👩&zwj;👩&zwj;👦&zwj;👦",family_woman_woman_girl:"👩&zwj;👩&zwj;👧",family_woman_woman_girl_boy:"👩&zwj;👩&zwj;👧&zwj;👦",family_woman_woman_girl_girl:"👩&zwj;👩&zwj;👧&zwj;👧",fast_forward:"⏩",fax:"📠",fearful:"😨",feet:"🐾",female_detective:"🕵️&zwj;♀️",ferris_wheel:"🎡",ferry:"⛴",field_hockey:"🏑",file_cabinet:"🗄",file_folder:"📁",film_projector:"📽",film_strip:"🎞",fire:"🔥",fire_engine:"🚒",fireworks:"🎆",first_quarter_moon:"🌓",first_quarter_moon_with_face:"🌛",fish:"🐟",fish_cake:"🍥",fishing_pole_and_fish:"🎣",fist_raised:"✊",fist_left:"🤛",fist_right:"🤜",flags:"🎏",flashlight:"🔦",fleur_de_lis:"⚜️",flight_arrival:"🛬",flight_departure:"🛫",floppy_disk:"💾",flower_playing_cards:"🎴",flushed:"😳",fog:"🌫",foggy:"🌁",football:"🏈",footprints:"👣",fork_and_knife:"🍴",fountain:"⛲️",fountain_pen:"🖋",four_leaf_clover:"🍀",fox_face:"🦊",framed_picture:"🖼",free:"🆓",fried_egg:"🍳",fried_shrimp:"🍤",fries:"🍟",frog:"🐸",frowning:"😦",frowning_face:"☹️",frowning_man:"🙍&zwj;♂️",frowning_woman:"🙍",middle_finger:"🖕",fuelpump:"⛽️",full_moon:"🌕",full_moon_with_face:"🌝",funeral_urn:"⚱️",game_die:"🎲",gear:"⚙️",gem:"💎",gemini:"♊️",ghost:"👻",gift:"🎁",gift_heart:"💝",girl:"👧",globe_with_meridians:"🌐",goal_net:"🥅",goat:"🐐",golf:"⛳️",golfing_man:"🏌️",golfing_woman:"🏌️&zwj;♀️",gorilla:"🦍",grapes:"🍇",green_apple:"🍏",green_book:"📗",green_heart:"💚",green_salad:"🥗",grey_exclamation:"❕",grey_question:"❔",grimacing:"😬",grin:"😁",grinning:"😀",guardsman:"💂",guardswoman:"💂&zwj;♀️",guitar:"🎸",gun:"🔫",haircut_woman:"💇",haircut_man:"💇&zwj;♂️",hamburger:"🍔",hammer:"🔨",hammer_and_pick:"⚒",hammer_and_wrench:"🛠",hamster:"🐹",hand:"✋",handbag:"👜",handshake:"🤝",hankey:"💩",hatched_chick:"🐥",hatching_chick:"🐣",headphones:"🎧",hear_no_evil:"🙉",heart:"❤️",heart_decoration:"💟",heart_eyes:"😍",heart_eyes_cat:"😻",heartbeat:"💓",heartpulse:"💗",hearts:"♥️",heavy_check_mark:"✔️",heavy_division_sign:"➗",heavy_dollar_sign:"💲",heavy_heart_exclamation:"❣️",heavy_minus_sign:"➖",heavy_multiplication_x:"✖️",heavy_plus_sign:"➕",helicopter:"🚁",herb:"🌿",hibiscus:"🌺",high_brightness:"🔆",high_heel:"👠",hocho:"🔪",hole:"🕳",honey_pot:"🍯",horse:"🐴",horse_racing:"🏇",hospital:"🏥",hot_pepper:"🌶",hotdog:"🌭",hotel:"🏨",hotsprings:"♨️",hourglass:"⌛️",hourglass_flowing_sand:"⏳",house:"🏠",house_with_garden:"🏡",houses:"🏘",hugs:"🤗",hushed:"😯",ice_cream:"🍨",ice_hockey:"🏒",ice_skate:"⛸",icecream:"🍦",id:"🆔",ideograph_advantage:"🉐",imp:"👿",inbox_tray:"📥",incoming_envelope:"📨",tipping_hand_woman:"💁",information_source:"ℹ️",innocent:"😇",interrobang:"⁉️",iphone:"📱",izakaya_lantern:"🏮",jack_o_lantern:"🎃",japan:"🗾",japanese_castle:"🏯",japanese_goblin:"👺",japanese_ogre:"👹",jeans:"👖",joy:"😂",joy_cat:"😹",joystick:"🕹",kaaba:"🕋",key:"🔑",keyboard:"⌨️",keycap_ten:"🔟",kick_scooter:"🛴",kimono:"👘",kiss:"💋",kissing:"😗",kissing_cat:"😽",kissing_closed_eyes:"😚",kissing_heart:"😘",kissing_smiling_eyes:"😙",kiwi_fruit:"🥝",koala:"🐨",koko:"🈁",label:"🏷",large_blue_circle:"🔵",large_blue_diamond:"🔷",large_orange_diamond:"🔶",last_quarter_moon:"🌗",last_quarter_moon_with_face:"🌜",latin_cross:"✝️",laughing:"😆",leaves:"🍃",ledger:"📒",left_luggage:"🛅",left_right_arrow:"↔️",leftwards_arrow_with_hook:"↩️",lemon:"🍋",leo:"♌️",leopard:"🐆",level_slider:"🎚",libra:"♎️",light_rail:"🚈",link:"🔗",lion:"🦁",lips:"👄",lipstick:"💄",lizard:"🦎",lock:"🔒",lock_with_ink_pen:"🔏",lollipop:"🍭",loop:"➿",loud_sound:"🔊",loudspeaker:"📢",love_hotel:"🏩",love_letter:"💌",low_brightness:"🔅",lying_face:"🤥",m:"Ⓜ️",mag:"🔍",mag_right:"🔎",mahjong:"🀄️",mailbox:"📫",mailbox_closed:"📪",mailbox_with_mail:"📬",mailbox_with_no_mail:"📭",man:"👨",man_artist:"👨&zwj;🎨",man_astronaut:"👨&zwj;🚀",man_cartwheeling:"🤸&zwj;♂️",man_cook:"👨&zwj;🍳",man_dancing:"🕺",man_facepalming:"🤦&zwj;♂️",man_factory_worker:"👨&zwj;🏭",man_farmer:"👨&zwj;🌾",man_firefighter:"👨&zwj;🚒",man_health_worker:"👨&zwj;⚕️",man_in_tuxedo:"🤵",man_judge:"👨&zwj;⚖️",man_juggling:"🤹&zwj;♂️",man_mechanic:"👨&zwj;🔧",man_office_worker:"👨&zwj;💼",man_pilot:"👨&zwj;✈️",man_playing_handball:"🤾&zwj;♂️",man_playing_water_polo:"🤽&zwj;♂️",man_scientist:"👨&zwj;🔬",man_shrugging:"🤷&zwj;♂️",man_singer:"👨&zwj;🎤",man_student:"👨&zwj;🎓",man_teacher:"👨&zwj;🏫",man_technologist:"👨&zwj;💻",man_with_gua_pi_mao:"👲",man_with_turban:"👳",tangerine:"🍊",mans_shoe:"👞",mantelpiece_clock:"🕰",maple_leaf:"🍁",martial_arts_uniform:"🥋",mask:"😷",massage_woman:"💆",massage_man:"💆&zwj;♂️",meat_on_bone:"🍖",medal_military:"🎖",medal_sports:"🏅",mega:"📣",melon:"🍈",memo:"📝",men_wrestling:"🤼&zwj;♂️",menorah:"🕎",mens:"🚹",metal:"🤘",metro:"🚇",microphone:"🎤",microscope:"🔬",milk_glass:"🥛",milky_way:"🌌",minibus:"🚐",minidisc:"💽",mobile_phone_off:"📴",money_mouth_face:"🤑",money_with_wings:"💸",moneybag:"💰",monkey:"🐒",monkey_face:"🐵",monorail:"🚝",moon:"🌔",mortar_board:"🎓",mosque:"🕌",motor_boat:"🛥",motor_scooter:"🛵",motorcycle:"🏍",motorway:"🛣",mount_fuji:"🗻",mountain:"⛰",mountain_biking_man:"🚵",mountain_biking_woman:"🚵&zwj;♀️",mountain_cableway:"🚠",mountain_railway:"🚞",mountain_snow:"🏔",mouse:"🐭",mouse2:"🐁",movie_camera:"🎥",moyai:"🗿",mrs_claus:"🤶",muscle:"💪",mushroom:"🍄",musical_keyboard:"🎹",musical_note:"🎵",musical_score:"🎼",mute:"🔇",nail_care:"💅",name_badge:"📛",national_park:"🏞",nauseated_face:"🤢",necktie:"👔",negative_squared_cross_mark:"❎",nerd_face:"🤓",neutral_face:"😐",new:"🆕",new_moon:"🌑",new_moon_with_face:"🌚",newspaper:"📰",newspaper_roll:"🗞",next_track_button:"⏭",ng:"🆖",no_good_man:"🙅&zwj;♂️",no_good_woman:"🙅",night_with_stars:"🌃",no_bell:"🔕",no_bicycles:"🚳",no_entry:"⛔️",no_entry_sign:"🚫",no_mobile_phones:"📵",no_mouth:"😶",no_pedestrians:"🚷",no_smoking:"🚭","non-potable_water":"🚱",nose:"👃",notebook:"📓",notebook_with_decorative_cover:"📔",notes:"🎶",nut_and_bolt:"🔩",o:"⭕️",o2:"🅾️",ocean:"🌊",octopus:"🐙",oden:"🍢",office:"🏢",oil_drum:"🛢",ok:"🆗",ok_hand:"👌",ok_man:"🙆&zwj;♂️",ok_woman:"🙆",old_key:"🗝",older_man:"👴",older_woman:"👵",om:"🕉",on:"🔛",oncoming_automobile:"🚘",oncoming_bus:"🚍",oncoming_police_car:"🚔",oncoming_taxi:"🚖",open_file_folder:"📂",open_hands:"👐",open_mouth:"😮",open_umbrella:"☂️",ophiuchus:"⛎",orange_book:"📙",orthodox_cross:"☦️",outbox_tray:"📤",owl:"🦉",ox:"🐂",package:"📦",page_facing_up:"📄",page_with_curl:"📃",pager:"📟",paintbrush:"🖌",palm_tree:"🌴",pancakes:"🥞",panda_face:"🐼",paperclip:"📎",paperclips:"🖇",parasol_on_ground:"⛱",parking:"🅿️",part_alternation_mark:"〽️",partly_sunny:"⛅️",passenger_ship:"🛳",passport_control:"🛂",pause_button:"⏸",peace_symbol:"☮️",peach:"🍑",peanuts:"🥜",pear:"🍐",pen:"🖊",pencil2:"✏️",penguin:"🐧",pensive:"😔",performing_arts:"🎭",persevere:"😣",person_fencing:"🤺",pouting_woman:"🙎",phone:"☎️",pick:"⛏",pig:"🐷",pig2:"🐖",pig_nose:"🐽",pill:"💊",pineapple:"🍍",ping_pong:"🏓",pisces:"♓️",pizza:"🍕",place_of_worship:"🛐",plate_with_cutlery:"🍽",play_or_pause_button:"⏯",point_down:"👇",point_left:"👈",point_right:"👉",point_up:"☝️",point_up_2:"👆",police_car:"🚓",policewoman:"👮&zwj;♀️",poodle:"🐩",popcorn:"🍿",post_office:"🏣",postal_horn:"📯",postbox:"📮",potable_water:"🚰",potato:"🥔",pouch:"👝",poultry_leg:"🍗",pound:"💷",rage:"😡",pouting_cat:"😾",pouting_man:"🙎&zwj;♂️",pray:"🙏",prayer_beads:"📿",pregnant_woman:"🤰",previous_track_button:"⏮",prince:"🤴",princess:"👸",printer:"🖨",purple_heart:"💜",purse:"👛",pushpin:"📌",put_litter_in_its_place:"🚮",question:"❓",rabbit:"🐰",rabbit2:"🐇",racehorse:"🐎",racing_car:"🏎",radio:"📻",radio_button:"🔘",radioactive:"☢️",railway_car:"🚃",railway_track:"🛤",rainbow:"🌈",rainbow_flag:"🏳️&zwj;🌈",raised_back_of_hand:"🤚",raised_hand_with_fingers_splayed:"🖐",raised_hands:"🙌",raising_hand_woman:"🙋",raising_hand_man:"🙋&zwj;♂️",ram:"🐏",ramen:"🍜",rat:"🐀",record_button:"⏺",recycle:"♻️",red_circle:"🔴",registered:"®️",relaxed:"☺️",relieved:"😌",reminder_ribbon:"🎗",repeat:"🔁",repeat_one:"🔂",rescue_worker_helmet:"⛑",restroom:"🚻",revolving_hearts:"💞",rewind:"⏪",rhinoceros:"🦏",ribbon:"🎀",rice:"🍚",rice_ball:"🍙",rice_cracker:"🍘",rice_scene:"🎑",right_anger_bubble:"🗯",ring:"💍",robot:"🤖",rocket:"🚀",rofl:"🤣",roll_eyes:"🙄",roller_coaster:"🎢",rooster:"🐓",rose:"🌹",rosette:"🏵",rotating_light:"🚨",round_pushpin:"📍",rowing_man:"🚣",rowing_woman:"🚣&zwj;♀️",rugby_football:"🏉",running_man:"🏃",running_shirt_with_sash:"🎽",running_woman:"🏃&zwj;♀️",sa:"🈂️",sagittarius:"♐️",sake:"🍶",sandal:"👡",santa:"🎅",satellite:"📡",saxophone:"🎷",school:"🏫",school_satchel:"🎒",scissors:"✂️",scorpion:"🦂",scorpius:"♏️",scream:"😱",scream_cat:"🙀",scroll:"📜",seat:"💺",secret:"㊙️",see_no_evil:"🙈",seedling:"🌱",selfie:"🤳",shallow_pan_of_food:"🥘",shamrock:"☘️",shark:"🦈",shaved_ice:"🍧",sheep:"🐑",shell:"🐚",shield:"🛡",shinto_shrine:"⛩",ship:"🚢",shirt:"👕",shopping:"🛍",shopping_cart:"🛒",shower:"🚿",shrimp:"🦐",signal_strength:"📶",six_pointed_star:"🔯",ski:"🎿",skier:"⛷",skull:"💀",skull_and_crossbones:"☠️",sleeping:"😴",sleeping_bed:"🛌",sleepy:"😪",slightly_frowning_face:"🙁",slightly_smiling_face:"🙂",slot_machine:"🎰",small_airplane:"🛩",small_blue_diamond:"🔹",small_orange_diamond:"🔸",small_red_triangle:"🔺",small_red_triangle_down:"🔻",smile:"😄",smile_cat:"😸",smiley:"😃",smiley_cat:"😺",smiling_imp:"😈",smirk:"😏",smirk_cat:"😼",smoking:"🚬",snail:"🐌",snake:"🐍",sneezing_face:"🤧",snowboarder:"🏂",snowflake:"❄️",snowman:"⛄️",snowman_with_snow:"☃️",sob:"😭",soccer:"⚽️",soon:"🔜",sos:"🆘",sound:"🔉",space_invader:"👾",spades:"♠️",spaghetti:"🍝",sparkle:"❇️",sparkler:"🎇",sparkles:"✨",sparkling_heart:"💖",speak_no_evil:"🙊",speaker:"🔈",speaking_head:"🗣",speech_balloon:"💬",speedboat:"🚤",spider:"🕷",spider_web:"🕸",spiral_calendar:"🗓",spiral_notepad:"🗒",spoon:"🥄",squid:"🦑",stadium:"🏟",star:"⭐️",star2:"🌟",star_and_crescent:"☪️",star_of_david:"✡️",stars:"🌠",station:"🚉",statue_of_liberty:"🗽",steam_locomotive:"🚂",stew:"🍲",stop_button:"⏹",stop_sign:"🛑",stopwatch:"⏱",straight_ruler:"📏",strawberry:"🍓",stuck_out_tongue:"😛",stuck_out_tongue_closed_eyes:"😝",stuck_out_tongue_winking_eye:"😜",studio_microphone:"🎙",stuffed_flatbread:"🥙",sun_behind_large_cloud:"🌥",sun_behind_rain_cloud:"🌦",sun_behind_small_cloud:"🌤",sun_with_face:"🌞",sunflower:"🌻",sunglasses:"😎",sunny:"☀️",sunrise:"🌅",sunrise_over_mountains:"🌄",surfing_man:"🏄",surfing_woman:"🏄&zwj;♀️",sushi:"🍣",suspension_railway:"🚟",sweat:"😓",sweat_drops:"💦",sweat_smile:"😅",sweet_potato:"🍠",swimming_man:"🏊",swimming_woman:"🏊&zwj;♀️",symbols:"🔣",synagogue:"🕍",syringe:"💉",taco:"🌮",tada:"🎉",tanabata_tree:"🎋",taurus:"♉️",taxi:"🚕",tea:"🍵",telephone_receiver:"📞",telescope:"🔭",tennis:"🎾",tent:"⛺️",thermometer:"🌡",thinking:"🤔",thought_balloon:"💭",ticket:"🎫",tickets:"🎟",tiger:"🐯",tiger2:"🐅",timer_clock:"⏲",tipping_hand_man:"💁&zwj;♂️",tired_face:"😫",tm:"™️",toilet:"🚽",tokyo_tower:"🗼",tomato:"🍅",tongue:"👅",top:"🔝",tophat:"🎩",tornado:"🌪",trackball:"🖲",tractor:"🚜",traffic_light:"🚥",train:"🚋",train2:"🚆",tram:"🚊",triangular_flag_on_post:"🚩",triangular_ruler:"📐",trident:"🔱",triumph:"😤",trolleybus:"🚎",trophy:"🏆",tropical_drink:"🍹",tropical_fish:"🐠",truck:"🚚",trumpet:"🎺",tulip:"🌷",tumbler_glass:"🥃",turkey:"🦃",turtle:"🐢",tv:"📺",twisted_rightwards_arrows:"🔀",two_hearts:"💕",two_men_holding_hands:"👬",two_women_holding_hands:"👭",u5272:"🈹",u5408:"🈴",u55b6:"🈺",u6307:"🈯️",u6708:"🈷️",u6709:"🈶",u6e80:"🈵",u7121:"🈚️",u7533:"🈸",u7981:"🈲",u7a7a:"🈳",umbrella:"☔️",unamused:"😒",underage:"🔞",unicorn:"🦄",unlock:"🔓",up:"🆙",upside_down_face:"🙃",v:"✌️",vertical_traffic_light:"🚦",vhs:"📼",vibration_mode:"📳",video_camera:"📹",video_game:"🎮",violin:"🎻",virgo:"♍️",volcano:"🌋",volleyball:"🏐",vs:"🆚",vulcan_salute:"🖖",walking_man:"🚶",walking_woman:"🚶&zwj;♀️",waning_crescent_moon:"🌘",waning_gibbous_moon:"🌖",warning:"⚠️",wastebasket:"🗑",watch:"⌚️",water_buffalo:"🐃",watermelon:"🍉",wave:"👋",wavy_dash:"〰️",waxing_crescent_moon:"🌒",wc:"🚾",weary:"😩",wedding:"💒",weight_lifting_man:"🏋️",weight_lifting_woman:"🏋️&zwj;♀️",whale:"🐳",whale2:"🐋",wheel_of_dharma:"☸️",wheelchair:"♿️",white_check_mark:"✅",white_circle:"⚪️",white_flag:"🏳️",white_flower:"💮",white_large_square:"⬜️",white_medium_small_square:"◽️",white_medium_square:"◻️",white_small_square:"▫️",white_square_button:"🔳",wilted_flower:"🥀",wind_chime:"🎐",wind_face:"🌬",wine_glass:"🍷",wink:"😉",wolf:"🐺",woman:"👩",woman_artist:"👩&zwj;🎨",woman_astronaut:"👩&zwj;🚀",woman_cartwheeling:"🤸&zwj;♀️",woman_cook:"👩&zwj;🍳",woman_facepalming:"🤦&zwj;♀️",woman_factory_worker:"👩&zwj;🏭",woman_farmer:"👩&zwj;🌾",woman_firefighter:"👩&zwj;🚒",woman_health_worker:"👩&zwj;⚕️",woman_judge:"👩&zwj;⚖️",woman_juggling:"🤹&zwj;♀️",woman_mechanic:"👩&zwj;🔧",woman_office_worker:"👩&zwj;💼",woman_pilot:"👩&zwj;✈️",woman_playing_handball:"🤾&zwj;♀️",woman_playing_water_polo:"🤽&zwj;♀️",woman_scientist:"👩&zwj;🔬",woman_shrugging:"🤷&zwj;♀️",woman_singer:"👩&zwj;🎤",woman_student:"👩&zwj;🎓",woman_teacher:"👩&zwj;🏫",woman_technologist:"👩&zwj;💻",woman_with_turban:"👳&zwj;♀️",womans_clothes:"👚",womans_hat:"👒",women_wrestling:"🤼&zwj;♀️",womens:"🚺",world_map:"🗺",worried:"😟",wrench:"🔧",writing_hand:"✍️",x:"❌",yellow_heart:"💛",yen:"💴",yin_yang:"☯️",yum:"😋",zap:"⚡️",zipper_mouth_face:"🤐",zzz:"💤",octocat:'<img alt=":octocat:" height="20" width="20" align="absmiddle" src="https://assets-cdn.github.com/images/icons/emoji/octocat.png">',showdown:"<span style=\"font-family: 'Anonymous Pro', monospace; text-decoration: underline; text-decoration-style: dashed; text-decoration-color: #3e8b8a;text-underline-position: under;\">S</span>"},a.Converter=function(e){"use strict";var t={},r=[],n=[],i={},o=u,d={parsed:{},raw:"",format:""};function h(e,t){if(t=t||null,a.helper.isString(e)){if(t=e=a.helper.stdExtName(e),a.extensions[e])return console.warn("DEPRECATION WARNING: "+e+" is an old extension that uses a deprecated loading method.Please inform the developer that the extension should be updated!"),void function(e,t){"function"==typeof e&&(e=e(new a.Converter)),a.helper.isArray(e)||(e=[e]);var i=f(e,t);if(!i.valid)throw Error(i.error);for(var o=0;o<e.length;++o)switch(e[o].type){case"lang":r.push(e[o]);break;case"output":n.push(e[o]);break;default:throw Error("Extension loader error: Type unrecognized!!!")}}(a.extensions[e],e);if(a.helper.isUndefined(s[e]))throw Error('Extension "'+e+'" could not be loaded. It was either not found or is not a valid extension.');e=s[e]}"function"==typeof e&&(e=e()),a.helper.isArray(e)||(e=[e]);var i=f(e,t);if(!i.valid)throw Error(i.error);for(var o=0;o<e.length;++o){switch(e[o].type){case"lang":r.push(e[o]);break;case"output":n.push(e[o])}if(e[o].hasOwnProperty("listeners"))for(var l in e[o].listeners)e[o].listeners.hasOwnProperty(l)&&p(l,e[o].listeners[l])}}function p(e,t){if(!a.helper.isString(e))throw Error("Invalid argument in converter.listen() method: name must be a string, but "+typeof e+" given");if("function"!=typeof t)throw Error("Invalid argument in converter.listen() method: callback must be a function, but "+typeof t+" given");i.hasOwnProperty(e)||(i[e]=[]),i[e].push(t)}!function(){for(var r in e=e||{},l)l.hasOwnProperty(r)&&(t[r]=l[r]);if("object"!=typeof e)throw Error("Converter expects the passed parameter to be an object, but "+typeof e+" was passed instead.");for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.extensions&&a.helper.forEach(t.extensions,h)}(),this._dispatch=function(e,t,r,n){if(i.hasOwnProperty(e))for(var a=0;a<i[e].length;++a){var o=i[e][a](e,t,this,r,n);o&&void 0!==o&&(t=o)}return t},this.listen=function(e,t){return p(e,t),this},this.makeHtml=function(e){if(!e)return e;var i={gHtmlBlocks:[],gHtmlMdBlocks:[],gHtmlSpans:[],gUrls:{},gTitles:{},gDimensions:{},gListLevel:0,hashLinkCounts:{},langExtensions:r,outputModifiers:n,converter:this,ghCodeBlocks:[],metadata:{parsed:{},raw:"",format:""}};return e=(e=(e=(e=(e=e.replace(/¨/g,"¨T")).replace(/\$/g,"¨D")).replace(/\r\n/g,"\n")).replace(/\r/g,"\n")).replace(/\u00A0/g,"&nbsp;"),t.smartIndentationFix&&(e=function(e){var t=e.match(/^\s*/)[0].length,r=new RegExp("^\\s{0,"+t+"}","gm");return e.replace(r,"")}(e)),e="\n\n"+e+"\n\n",e=(e=a.subParser("detab")(e,t,i)).replace(/^[ \t]+$/gm,""),a.helper.forEach(r,(function(r){e=a.subParser("runExtension")(r,e,t,i)})),e=a.subParser("metadata")(e,t,i),e=a.subParser("hashPreCodeTags")(e,t,i),e=a.subParser("githubCodeBlocks")(e,t,i),e=a.subParser("hashHTMLBlocks")(e,t,i),e=a.subParser("hashCodeTags")(e,t,i),e=a.subParser("stripLinkDefinitions")(e,t,i),e=a.subParser("blockGamut")(e,t,i),e=a.subParser("unhashHTMLSpans")(e,t,i),e=(e=(e=a.subParser("unescapeSpecialChars")(e,t,i)).replace(/¨D/g,"$$")).replace(/¨T/g,"¨"),e=a.subParser("completeHTMLDocument")(e,t,i),a.helper.forEach(n,(function(r){e=a.subParser("runExtension")(r,e,t,i)})),d=i.metadata,e},this.makeMarkdown=this.makeMd=function(e,t){if(e=(e=(e=e.replace(/\r\n/g,"\n")).replace(/\r/g,"\n")).replace(/>[ \t]+</,">¨NBSP;<"),!t){if(!window||!window.document)throw new Error("HTMLParser is undefined. If in a webworker or nodejs environment, you need to provide a WHATWG DOM and HTML such as JSDOM");t=window.document}var r=t.createElement("div");r.innerHTML=e;var n={preList:function(e){for(var t=e.querySelectorAll("pre"),r=[],n=0;n<t.length;++n)if(1===t[n].childElementCount&&"code"===t[n].firstChild.tagName.toLowerCase()){var i=t[n].firstChild.innerHTML.trim(),o=t[n].firstChild.getAttribute("data-language")||"";if(""===o)for(var s=t[n].firstChild.className.split(" "),l=0;l<s.length;++l){var u=s[l].match(/^language-(.+)$/);if(null!==u){o=u[1];break}}i=a.helper.unescapeHTMLEntities(i),r.push(i),t[n].outerHTML='<precode language="'+o+'" precodenum="'+n.toString()+'"></precode>'}else r.push(t[n].innerHTML),t[n].innerHTML="",t[n].setAttribute("prenum",n.toString());return r}(r)};!function e(t){for(var r=0;r<t.childNodes.length;++r){var n=t.childNodes[r];3===n.nodeType?/\S/.test(n.nodeValue)||/^[ ]+$/.test(n.nodeValue)?(n.nodeValue=n.nodeValue.split("\n").join(" "),n.nodeValue=n.nodeValue.replace(/(\s)+/g,"$1")):(t.removeChild(n),--r):1===n.nodeType&&e(n)}}(r);for(var i=r.childNodes,o="",s=0;s<i.length;s++)o+=a.subParser("makeMarkdown.node")(i[s],n);return o},this.setOption=function(e,r){t[e]=r},this.getOption=function(e){return t[e]},this.getOptions=function(){return t},this.addExtension=function(e,t){h(e,t=t||null)},this.useExtension=function(e){h(e)},this.setFlavor=function(e){if(!c.hasOwnProperty(e))throw Error(e+" flavor was not found");var r=c[e];for(var n in o=e,r)r.hasOwnProperty(n)&&(t[n]=r[n])},this.getFlavor=function(){return o},this.removeExtension=function(e){a.helper.isArray(e)||(e=[e]);for(var t=0;t<e.length;++t){for(var i=e[t],o=0;o<r.length;++o)r[o]===i&&r.splice(o,1);for(var s=0;s<n.length;++s)n[s]===i&&n.splice(s,1)}},this.getAllExtensions=function(){return{language:r,output:n}},this.getMetadata=function(e){return e?d.raw:d.parsed},this.getMetadataFormat=function(){return d.format},this._setMetadataPair=function(e,t){d.parsed[e]=t},this._setMetadataFormat=function(e){d.format=e},this._setMetadataRaw=function(e){d.raw=e}},a.subParser("anchors",(function(e,t,r){"use strict";var n=function(e,n,i,o,s,l,u){if(a.helper.isUndefined(u)&&(u=""),i=i.toLowerCase(),e.search(/\(<?\s*>? ?(['"].*['"])?\)$/m)>-1)o="";else if(!o){if(i||(i=n.toLowerCase().replace(/ ?\n/g," ")),o="#"+i,a.helper.isUndefined(r.gUrls[i]))return e;o=r.gUrls[i],a.helper.isUndefined(r.gTitles[i])||(u=r.gTitles[i])}var c='<a href="'+(o=o.replace(a.helper.regexes.asteriskDashAndColon,a.helper.escapeCharactersCallback))+'"';return""!==u&&null!==u&&(c+=' title="'+(u=(u=u.replace(/"/g,"&quot;")).replace(a.helper.regexes.asteriskDashAndColon,a.helper.escapeCharactersCallback))+'"'),t.openLinksInNewWindow&&!/^#/.test(o)&&(c+=' rel="noopener noreferrer" target="¨E95Eblank"'),c+">"+n+"</a>"};return e=(e=(e=(e=(e=r.converter._dispatch("anchors.before",e,t,r)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)] ?(?:\n *)?\[(.*?)]()()()()/g,n)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<([^>]*)>(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,n)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<?([\S]+?(?:\([\S]*?\)[\S]*?)?)>?(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,n)).replace(/\[([^\[\]]+)]()()()()()/g,n),t.ghMentions&&(e=e.replace(/(^|\s)(\\)?(@([a-z\d]+(?:[a-z\d.-]+?[a-z\d]+)*))/gim,(function(e,r,n,i,o){if("\\"===n)return r+i;if(!a.helper.isString(t.ghMentionsLink))throw new Error("ghMentionsLink option must be a string");var s=t.ghMentionsLink.replace(/\{u}/g,o),l="";return t.openLinksInNewWindow&&(l=' rel="noopener noreferrer" target="¨E95Eblank"'),r+'<a href="'+s+'"'+l+">"+i+"</a>"}))),r.converter._dispatch("anchors.after",e,t,r)}));var p=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+?\.[^'">\s]+?)()(\1)?(?=\s|$)(?!["<>])/gi,m=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+?)([.!?,()\[\]])?(\1)?(?=\s|$)(?!["<>])/gi,y=/()<(((https?|ftp|dict):\/\/|www\.)[^'">\s]+)()>()/gi,v=/(^|\s)(?:mailto:)?([A-Za-z0-9!#$%&'*+-/=?^_`{|}~.]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)(?=$|\s)/gim,g=/<()(?:mailto:)?([-.\w]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi,b=function(e){"use strict";return function(t,r,n,i,o,s,l){var u=n=n.replace(a.helper.regexes.asteriskDashAndColon,a.helper.escapeCharactersCallback),c="",f="",d=r||"",h=l||"";return/^www\./i.test(n)&&(n=n.replace(/^www\./i,"http://www.")),e.excludeTrailingPunctuationFromURLs&&s&&(c=s),e.openLinksInNewWindow&&(f=' rel="noopener noreferrer" target="¨E95Eblank"'),d+'<a href="'+n+'"'+f+">"+u+"</a>"+c+h}},w=function(e,t){"use strict";return function(r,n,i){var o="mailto:";return n=n||"",i=a.subParser("unescapeSpecialChars")(i,e,t),e.encodeEmails?(o=a.helper.encodeEmailAddress(o+i),i=a.helper.encodeEmailAddress(i)):o+=i,n+'<a href="'+o+'">'+i+"</a>"}};a.subParser("autoLinks",(function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("autoLinks.before",e,t,r)).replace(y,b(t))).replace(g,w(t,r)),r.converter._dispatch("autoLinks.after",e,t,r)})),a.subParser("simplifiedAutoLinks",(function(e,t,r){"use strict";return t.simplifiedAutoLink?(e=r.converter._dispatch("simplifiedAutoLinks.before",e,t,r),e=(e=t.excludeTrailingPunctuationFromURLs?e.replace(m,b(t)):e.replace(p,b(t))).replace(v,w(t,r)),e=r.converter._dispatch("simplifiedAutoLinks.after",e,t,r)):e})),a.subParser("blockGamut",(function(e,t,r){"use strict";return e=r.converter._dispatch("blockGamut.before",e,t,r),e=a.subParser("blockQuotes")(e,t,r),e=a.subParser("headers")(e,t,r),e=a.subParser("horizontalRule")(e,t,r),e=a.subParser("lists")(e,t,r),e=a.subParser("codeBlocks")(e,t,r),e=a.subParser("tables")(e,t,r),e=a.subParser("hashHTMLBlocks")(e,t,r),e=a.subParser("paragraphs")(e,t,r),r.converter._dispatch("blockGamut.after",e,t,r)})),a.subParser("blockQuotes",(function(e,t,r){"use strict";e=r.converter._dispatch("blockQuotes.before",e,t,r),e+="\n\n";var n=/(^ {0,3}>[ \t]?.+\n(.+\n)*\n*)+/gm;return t.splitAdjacentBlockquotes&&(n=/^ {0,3}>[\s\S]*?(?:\n\n)/gm),e=e.replace(n,(function(e){return e=(e=(e=e.replace(/^[ \t]*>[ \t]?/gm,"")).replace(/¨0/g,"")).replace(/^[ \t]+$/gm,""),e=a.subParser("githubCodeBlocks")(e,t,r),e=(e=(e=a.subParser("blockGamut")(e,t,r)).replace(/(^|\n)/g,"$1 ")).replace(/(\s*<pre>[^\r]+?<\/pre>)/gm,(function(e,t){var r=t;return(r=r.replace(/^ /gm,"¨0")).replace(/¨0/g,"")})),a.subParser("hashBlock")("<blockquote>\n"+e+"\n</blockquote>",t,r)})),r.converter._dispatch("blockQuotes.after",e,t,r)})),a.subParser("codeBlocks",(function(e,t,r){"use strict";return e=r.converter._dispatch("codeBlocks.before",e,t,r),e=(e=(e+="¨0").replace(/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=¨0))/g,(function(e,n,i){var o=n,s=i,l="\n";return o=a.subParser("outdent")(o,t,r),o=a.subParser("encodeCode")(o,t,r),o=(o=(o=a.subParser("detab")(o,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,""),t.omitExtraWLInCodeBlocks&&(l=""),o="<pre><code>"+o+l+"</code></pre>",a.subParser("hashBlock")(o,t,r)+s}))).replace(/¨0/,""),r.converter._dispatch("codeBlocks.after",e,t,r)})),a.subParser("codeSpans",(function(e,t,r){"use strict";return void 0===(e=r.converter._dispatch("codeSpans.before",e,t,r))&&(e=""),e=e.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,(function(e,n,i,o){var s=o;return s=(s=s.replace(/^([ \t]*)/g,"")).replace(/[ \t]*$/g,""),s=n+"<code>"+(s=a.subParser("encodeCode")(s,t,r))+"</code>",a.subParser("hashHTMLSpans")(s,t,r)})),r.converter._dispatch("codeSpans.after",e,t,r)})),a.subParser("completeHTMLDocument",(function(e,t,r){"use strict";if(!t.completeHTMLDocument)return e;e=r.converter._dispatch("completeHTMLDocument.before",e,t,r);var n="html",i="<!DOCTYPE HTML>\n",a="",o='<meta charset="utf-8">\n',s="",l="";for(var u in void 0!==r.metadata.parsed.doctype&&(i="<!DOCTYPE "+r.metadata.parsed.doctype+">\n","html"!==(n=r.metadata.parsed.doctype.toString().toLowerCase())&&"html5"!==n||(o='<meta charset="utf-8">')),r.metadata.parsed)if(r.metadata.parsed.hasOwnProperty(u))switch(u.toLowerCase()){case"doctype":break;case"title":a="<title>"+r.metadata.parsed.title+"</title>\n";break;case"charset":o="html"===n||"html5"===n?'<meta charset="'+r.metadata.parsed.charset+'">\n':'<meta name="charset" content="'+r.metadata.parsed.charset+'">\n';break;case"language":case"lang":s=' lang="'+r.metadata.parsed[u]+'"',l+='<meta name="'+u+'" content="'+r.metadata.parsed[u]+'">\n';break;default:l+='<meta name="'+u+'" content="'+r.metadata.parsed[u]+'">\n'}return e=i+"<html"+s+">\n<head>\n"+a+o+l+"</head>\n<body>\n"+e.trim()+"\n</body>\n</html>",r.converter._dispatch("completeHTMLDocument.after",e,t,r)})),a.subParser("detab",(function(e,t,r){"use strict";return e=(e=(e=(e=(e=(e=r.converter._dispatch("detab.before",e,t,r)).replace(/\t(?=\t)/g," ")).replace(/\t/g,"¨A¨B")).replace(/¨B(.+?)¨A/g,(function(e,t){for(var r=t,n=4-r.length%4,i=0;i<n;i++)r+=" ";return r}))).replace(/¨A/g," ")).replace(/¨B/g,""),r.converter._dispatch("detab.after",e,t,r)})),a.subParser("ellipsis",(function(e,t,r){"use strict";return t.ellipsis?(e=(e=r.converter._dispatch("ellipsis.before",e,t,r)).replace(/\.\.\./g,"…"),e=r.converter._dispatch("ellipsis.after",e,t,r)):e})),a.subParser("emoji",(function(e,t,r){"use strict";return t.emoji?(e=(e=r.converter._dispatch("emoji.before",e,t,r)).replace(/:([\S]+?):/g,(function(e,t){return a.helper.emojis.hasOwnProperty(t)?a.helper.emojis[t]:e})),r.converter._dispatch("emoji.after",e,t,r)):e})),a.subParser("encodeAmpsAndAngles",(function(e,t,r){"use strict";return e=(e=(e=(e=(e=r.converter._dispatch("encodeAmpsAndAngles.before",e,t,r)).replace(/&(?!#?[xX]?(?:[0-9a-fA-F]+|\w+);)/g,"&amp;")).replace(/<(?![a-z\/?$!])/gi,"&lt;")).replace(/</g,"&lt;")).replace(/>/g,"&gt;"),r.converter._dispatch("encodeAmpsAndAngles.after",e,t,r)})),a.subParser("encodeBackslashEscapes",(function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("encodeBackslashEscapes.before",e,t,r)).replace(/\\(\\)/g,a.helper.escapeCharactersCallback)).replace(/\\([`*_{}\[\]()>#+.!~=|:-])/g,a.helper.escapeCharactersCallback),r.converter._dispatch("encodeBackslashEscapes.after",e,t,r)})),a.subParser("encodeCode",(function(e,t,r){"use strict";return e=(e=r.converter._dispatch("encodeCode.before",e,t,r)).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/([*_{}\[\]\\=~-])/g,a.helper.escapeCharactersCallback),r.converter._dispatch("encodeCode.after",e,t,r)})),a.subParser("escapeSpecialCharsWithinTagAttributes",(function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("escapeSpecialCharsWithinTagAttributes.before",e,t,r)).replace(/<\/?[a-z\d_:-]+(?:[\s]+[\s\S]+?)?>/gi,(function(e){return e.replace(/(.)<\/?code>(?=.)/g,"$1`").replace(/([\\`*_~=|])/g,a.helper.escapeCharactersCallback)}))).replace(/<!(--(?:(?:[^>-]|-[^>])(?:[^-]|-[^-])*)--)>/gi,(function(e){return e.replace(/([\\`*_~=|])/g,a.helper.escapeCharactersCallback)})),r.converter._dispatch("escapeSpecialCharsWithinTagAttributes.after",e,t,r)})),a.subParser("githubCodeBlocks",(function(e,t,r){"use strict";return t.ghCodeBlocks?(e=r.converter._dispatch("githubCodeBlocks.before",e,t,r),e=(e=(e+="¨0").replace(/(?:^|\n)(?: {0,3})(```+|~~~+)(?: *)([^\s`~]*)\n([\s\S]*?)\n(?: {0,3})\1/g,(function(e,n,i,o){var s=t.omitExtraWLInCodeBlocks?"":"\n";return o=a.subParser("encodeCode")(o,t,r),o="<pre><code"+(i?' class="'+i+" language-"+i+'"':"")+">"+(o=(o=(o=a.subParser("detab")(o,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,""))+s+"</code></pre>",o=a.subParser("hashBlock")(o,t,r),"\n\n¨G"+(r.ghCodeBlocks.push({text:e,codeblock:o})-1)+"G\n\n"}))).replace(/¨0/,""),r.converter._dispatch("githubCodeBlocks.after",e,t,r)):e})),a.subParser("hashBlock",(function(e,t,r){"use strict";return e=(e=r.converter._dispatch("hashBlock.before",e,t,r)).replace(/(^\n+|\n+$)/g,""),e="\n\n¨K"+(r.gHtmlBlocks.push(e)-1)+"K\n\n",r.converter._dispatch("hashBlock.after",e,t,r)})),a.subParser("hashCodeTags",(function(e,t,r){"use strict";return e=r.converter._dispatch("hashCodeTags.before",e,t,r),e=a.helper.replaceRecursiveRegExp(e,(function(e,n,i,o){var s=i+a.subParser("encodeCode")(n,t,r)+o;return"¨C"+(r.gHtmlSpans.push(s)-1)+"C"}),"<code\\b[^>]*>","</code>","gim"),r.converter._dispatch("hashCodeTags.after",e,t,r)})),a.subParser("hashElement",(function(e,t,r){"use strict";return function(e,t){var n=t;return n=(n=(n=n.replace(/\n\n/g,"\n")).replace(/^\n/,"")).replace(/\n+$/g,""),"\n\n¨K"+(r.gHtmlBlocks.push(n)-1)+"K\n\n"}})),a.subParser("hashHTMLBlocks",(function(e,t,r){"use strict";e=r.converter._dispatch("hashHTMLBlocks.before",e,t,r);var n=["pre","div","h1","h2","h3","h4","h5","h6","blockquote","table","dl","ol","ul","script","noscript","form","fieldset","iframe","math","style","section","header","footer","nav","article","aside","address","audio","canvas","figure","hgroup","output","video","p"],i=function(e,t,n,i){var a=e;return-1!==n.search(/\bmarkdown\b/)&&(a=n+r.converter.makeHtml(t)+i),"\n\n¨K"+(r.gHtmlBlocks.push(a)-1)+"K\n\n"};t.backslashEscapesHTMLTags&&(e=e.replace(/\\<(\/?[^>]+?)>/g,(function(e,t){return"&lt;"+t+"&gt;"})));for(var o=0;o<n.length;++o)for(var s,l=new RegExp("^ {0,3}(<"+n[o]+"\\b[^>]*>)","im"),u="<"+n[o]+"\\b[^>]*>",c="</"+n[o]+">";-1!==(s=a.helper.regexIndexOf(e,l));){var f=a.helper.splitAtIndex(e,s),d=a.helper.replaceRecursiveRegExp(f[1],i,u,c,"im");if(d===f[1])break;e=f[0].concat(d)}return e=e.replace(/(\n {0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,a.subParser("hashElement")(e,t,r)),e=(e=a.helper.replaceRecursiveRegExp(e,(function(e){return"\n\n¨K"+(r.gHtmlBlocks.push(e)-1)+"K\n\n"}),"^ {0,3}\x3c!--","--\x3e","gm")).replace(/(?:\n\n)( {0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g,a.subParser("hashElement")(e,t,r)),r.converter._dispatch("hashHTMLBlocks.after",e,t,r)})),a.subParser("hashHTMLSpans",(function(e,t,r){"use strict";function n(e){return"¨C"+(r.gHtmlSpans.push(e)-1)+"C"}return e=(e=(e=(e=(e=r.converter._dispatch("hashHTMLSpans.before",e,t,r)).replace(/<[^>]+?\/>/gi,(function(e){return n(e)}))).replace(/<([^>]+?)>[\s\S]*?<\/\1>/g,(function(e){return n(e)}))).replace(/<([^>]+?)\s[^>]+?>[\s\S]*?<\/\1>/g,(function(e){return n(e)}))).replace(/<[^>]+?>/gi,(function(e){return n(e)})),r.converter._dispatch("hashHTMLSpans.after",e,t,r)})),a.subParser("unhashHTMLSpans",(function(e,t,r){"use strict";e=r.converter._dispatch("unhashHTMLSpans.before",e,t,r);for(var n=0;n<r.gHtmlSpans.length;++n){for(var i=r.gHtmlSpans[n],a=0;/¨C(\d+)C/.test(i);){var o=RegExp.$1;if(i=i.replace("¨C"+o+"C",r.gHtmlSpans[o]),10===a){console.error("maximum nesting of 10 spans reached!!!");break}++a}e=e.replace("¨C"+n+"C",i)}return r.converter._dispatch("unhashHTMLSpans.after",e,t,r)})),a.subParser("hashPreCodeTags",(function(e,t,r){"use strict";return e=r.converter._dispatch("hashPreCodeTags.before",e,t,r),e=a.helper.replaceRecursiveRegExp(e,(function(e,n,i,o){var s=i+a.subParser("encodeCode")(n,t,r)+o;return"\n\n¨G"+(r.ghCodeBlocks.push({text:e,codeblock:s})-1)+"G\n\n"}),"^ {0,3}<pre\\b[^>]*>\\s*<code\\b[^>]*>","^ {0,3}</code>\\s*</pre>","gim"),r.converter._dispatch("hashPreCodeTags.after",e,t,r)})),a.subParser("headers",(function(e,t,r){"use strict";e=r.converter._dispatch("headers.before",e,t,r);var n=isNaN(parseInt(t.headerLevelStart))?1:parseInt(t.headerLevelStart),i=t.smoothLivePreview?/^(.+)[ \t]*\n={2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n=+[ \t]*\n+/gm,o=t.smoothLivePreview?/^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n-+[ \t]*\n+/gm;e=(e=e.replace(i,(function(e,i){var o=a.subParser("spanGamut")(i,t,r),s=t.noHeaderId?"":' id="'+l(i)+'"',u="<h"+n+s+">"+o+"</h"+n+">";return a.subParser("hashBlock")(u,t,r)}))).replace(o,(function(e,i){var o=a.subParser("spanGamut")(i,t,r),s=t.noHeaderId?"":' id="'+l(i)+'"',u=n+1,c="<h"+u+s+">"+o+"</h"+u+">";return a.subParser("hashBlock")(c,t,r)}));var s=t.requireSpaceBeforeHeadingText?/^(#{1,6})[ \t]+(.+?)[ \t]*#*\n+/gm:/^(#{1,6})[ \t]*(.+?)[ \t]*#*\n+/gm;function l(e){var n,i;if(t.customizedHeaderId){var o=e.match(/\{([^{]+?)}\s*$/);o&&o[1]&&(e=o[1])}return n=e,i=a.helper.isString(t.prefixHeaderId)?t.prefixHeaderId:!0===t.prefixHeaderId?"section-":"",t.rawPrefixHeaderId||(n=i+n),n=t.ghCompatibleHeaderId?n.replace(/ /g,"-").replace(/&amp;/g,"").replace(/¨T/g,"").replace(/¨D/g,"").replace(/[&+$,\/:;=?@"#{}|^¨~\[\]`\\*)(%.!'<>]/g,"").toLowerCase():t.rawHeaderId?n.replace(/ /g,"-").replace(/&amp;/g,"&").replace(/¨T/g,"¨").replace(/¨D/g,"$").replace(/["']/g,"-").toLowerCase():n.replace(/[^\w]/g,"").toLowerCase(),t.rawPrefixHeaderId&&(n=i+n),r.hashLinkCounts[n]?n=n+"-"+r.hashLinkCounts[n]++:r.hashLinkCounts[n]=1,n}return e=e.replace(s,(function(e,i,o){var s=o;t.customizedHeaderId&&(s=o.replace(/\s?\{([^{]+?)}\s*$/,""));var u=a.subParser("spanGamut")(s,t,r),c=t.noHeaderId?"":' id="'+l(o)+'"',f=n-1+i.length,d="<h"+f+c+">"+u+"</h"+f+">";return a.subParser("hashBlock")(d,t,r)})),r.converter._dispatch("headers.after",e,t,r)})),a.subParser("horizontalRule",(function(e,t,r){"use strict";e=r.converter._dispatch("horizontalRule.before",e,t,r);var n=a.subParser("hashBlock")("<hr />",t,r);return e=(e=(e=e.replace(/^ {0,2}( ?-){3,}[ \t]*$/gm,n)).replace(/^ {0,2}( ?\*){3,}[ \t]*$/gm,n)).replace(/^ {0,2}( ?_){3,}[ \t]*$/gm,n),r.converter._dispatch("horizontalRule.after",e,t,r)})),a.subParser("images",(function(e,t,r){"use strict";function n(e,t,n,i,o,s,l,u){var c=r.gUrls,f=r.gTitles,d=r.gDimensions;if(n=n.toLowerCase(),u||(u=""),e.search(/\(<?\s*>? ?(['"].*['"])?\)$/m)>-1)i="";else if(""===i||null===i){if(""!==n&&null!==n||(n=t.toLowerCase().replace(/ ?\n/g," ")),i="#"+n,a.helper.isUndefined(c[n]))return e;i=c[n],a.helper.isUndefined(f[n])||(u=f[n]),a.helper.isUndefined(d[n])||(o=d[n].width,s=d[n].height)}t=t.replace(/"/g,"&quot;").replace(a.helper.regexes.asteriskDashAndColon,a.helper.escapeCharactersCallback);var h='<img src="'+(i=i.replace(a.helper.regexes.asteriskDashAndColon,a.helper.escapeCharactersCallback))+'" alt="'+t+'"';return u&&a.helper.isString(u)&&(h+=' title="'+(u=u.replace(/"/g,"&quot;").replace(a.helper.regexes.asteriskDashAndColon,a.helper.escapeCharactersCallback))+'"'),o&&s&&(h+=' width="'+(o="*"===o?"auto":o)+'"',h+=' height="'+(s="*"===s?"auto":s)+'"'),h+" />"}return e=(e=(e=(e=(e=(e=r.converter._dispatch("images.before",e,t,r)).replace(/!\[([^\]]*?)] ?(?:\n *)?\[([\s\S]*?)]()()()()()/g,n)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]?<?(data:.+?\/.+?;base64,[A-Za-z0-9+/=\n]+?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,(function(e,t,r,i,a,o,s,l){return n(e,t,r,i=i.replace(/\s/g,""),a,o,0,l)}))).replace(/!\[([^\]]*?)][ \t]*()\([ \t]?<([^>]*)>(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(?:(["'])([^"]*?)\6))?[ \t]?\)/g,n)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]?<?([\S]+?(?:\([\S]*?\)[\S]*?)?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,n)).replace(/!\[([^\[\]]+)]()()()()()/g,n),r.converter._dispatch("images.after",e,t,r)})),a.subParser("italicsAndBold",(function(e,t,r){"use strict";function n(e,t,r){return t+e+r}return e=r.converter._dispatch("italicsAndBold.before",e,t,r),e=t.literalMidWordUnderscores?(e=(e=e.replace(/\b___(\S[\s\S]*?)___\b/g,(function(e,t){return n(t,"<strong><em>","</em></strong>")}))).replace(/\b__(\S[\s\S]*?)__\b/g,(function(e,t){return n(t,"<strong>","</strong>")}))).replace(/\b_(\S[\s\S]*?)_\b/g,(function(e,t){return n(t,"<em>","</em>")})):(e=(e=e.replace(/___(\S[\s\S]*?)___/g,(function(e,t){return/\S$/.test(t)?n(t,"<strong><em>","</em></strong>"):e}))).replace(/__(\S[\s\S]*?)__/g,(function(e,t){return/\S$/.test(t)?n(t,"<strong>","</strong>"):e}))).replace(/_([^\s_][\s\S]*?)_/g,(function(e,t){return/\S$/.test(t)?n(t,"<em>","</em>"):e})),e=t.literalMidWordAsterisks?(e=(e=e.replace(/([^*]|^)\B\*\*\*(\S[\s\S]*?)\*\*\*\B(?!\*)/g,(function(e,t,r){return n(r,t+"<strong><em>","</em></strong>")}))).replace(/([^*]|^)\B\*\*(\S[\s\S]*?)\*\*\B(?!\*)/g,(function(e,t,r){return n(r,t+"<strong>","</strong>")}))).replace(/([^*]|^)\B\*(\S[\s\S]*?)\*\B(?!\*)/g,(function(e,t,r){return n(r,t+"<em>","</em>")})):(e=(e=e.replace(/\*\*\*(\S[\s\S]*?)\*\*\*/g,(function(e,t){return/\S$/.test(t)?n(t,"<strong><em>","</em></strong>"):e}))).replace(/\*\*(\S[\s\S]*?)\*\*/g,(function(e,t){return/\S$/.test(t)?n(t,"<strong>","</strong>"):e}))).replace(/\*([^\s*][\s\S]*?)\*/g,(function(e,t){return/\S$/.test(t)?n(t,"<em>","</em>"):e})),r.converter._dispatch("italicsAndBold.after",e,t,r)})),a.subParser("lists",(function(e,t,r){"use strict";function n(e,n){r.gListLevel++,e=e.replace(/\n{2,}$/,"\n");var i=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0| {0,3}([*+-]|\d+[.])[ \t]+))/gm,o=/\n[ \t]*\n(?!¨0)/.test(e+="¨0");return t.disableForced4SpacesIndentedSublists&&(i=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0|\2([*+-]|\d+[.])[ \t]+))/gm),e=(e=e.replace(i,(function(e,n,i,s,l,u,c){c=c&&""!==c.trim();var f=a.subParser("outdent")(l,t,r),d="";return u&&t.tasklists&&(d=' class="task-list-item" style="list-style-type: none;"',f=f.replace(/^[ \t]*\[(x|X| )?]/m,(function(){var e='<input type="checkbox" disabled style="margin: 0px 0.35em 0.25em -1.6em; vertical-align: middle;"';return c&&(e+=" checked"),e+">"}))),f=f.replace(/^([-*+]|\d\.)[ \t]+[\S\n ]*/g,(function(e){return"¨A"+e})),n||f.search(/\n{2,}/)>-1?(f=a.subParser("githubCodeBlocks")(f,t,r),f=a.subParser("blockGamut")(f,t,r)):(f=(f=a.subParser("lists")(f,t,r)).replace(/\n$/,""),f=(f=a.subParser("hashHTMLBlocks")(f,t,r)).replace(/\n\n+/g,"\n\n"),f=o?a.subParser("paragraphs")(f,t,r):a.subParser("spanGamut")(f,t,r)),"<li"+d+">"+(f=f.replace("¨A",""))+"</li>\n"}))).replace(/¨0/g,""),r.gListLevel--,n&&(e=e.replace(/\s+$/,"")),e}function i(e,t){if("ol"===t){var r=e.match(/^ *(\d+)\./);if(r&&"1"!==r[1])return' start="'+r[1]+'"'}return""}function o(e,r,a){var o=t.disableForced4SpacesIndentedSublists?/^ ?\d+\.[ \t]/gm:/^ {0,3}\d+\.[ \t]/gm,s=t.disableForced4SpacesIndentedSublists?/^ ?[*+-][ \t]/gm:/^ {0,3}[*+-][ \t]/gm,l="ul"===r?o:s,u="";if(-1!==e.search(l))!function t(c){var f=c.search(l),d=i(e,r);-1!==f?(u+="\n\n<"+r+d+">\n"+n(c.slice(0,f),!!a)+"</"+r+">\n",l="ul"==(r="ul"===r?"ol":"ul")?o:s,t(c.slice(f))):u+="\n\n<"+r+d+">\n"+n(c,!!a)+"</"+r+">\n"}(e);else{var c=i(e,r);u="\n\n<"+r+c+">\n"+n(e,!!a)+"</"+r+">\n"}return u}return e=r.converter._dispatch("lists.before",e,t,r),e+="¨0",e=(e=r.gListLevel?e.replace(/^(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,(function(e,t,r){return o(t,r.search(/[*+-]/g)>-1?"ul":"ol",!0)})):e.replace(/(\n\n|^\n?)(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,(function(e,t,r,n){return o(r,n.search(/[*+-]/g)>-1?"ul":"ol",!1)}))).replace(/¨0/,""),r.converter._dispatch("lists.after",e,t,r)})),a.subParser("metadata",(function(e,t,r){"use strict";if(!t.metadata)return e;function n(e){r.metadata.raw=e,(e=(e=e.replace(/&/g,"&amp;").replace(/"/g,"&quot;")).replace(/\n {4}/g," ")).replace(/^([\S ]+): +([\s\S]+?)$/gm,(function(e,t,n){return r.metadata.parsed[t]=n,""}))}return e=(e=(e=(e=r.converter._dispatch("metadata.before",e,t,r)).replace(/^\s*«««+(\S*?)\n([\s\S]+?)\n»»»+\n/,(function(e,t,r){return n(r),"¨M"}))).replace(/^\s*---+(\S*?)\n([\s\S]+?)\n---+\n/,(function(e,t,i){return t&&(r.metadata.format=t),n(i),"¨M"}))).replace(/¨M/g,""),r.converter._dispatch("metadata.after",e,t,r)})),a.subParser("outdent",(function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("outdent.before",e,t,r)).replace(/^(\t|[ ]{1,4})/gm,"¨0")).replace(/¨0/g,""),r.converter._dispatch("outdent.after",e,t,r)})),a.subParser("paragraphs",(function(e,t,r){"use strict";for(var n=(e=(e=(e=r.converter._dispatch("paragraphs.before",e,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,"")).split(/\n{2,}/g),i=[],o=n.length,s=0;s<o;s++){var l=n[s];l.search(/¨(K|G)(\d+)\1/g)>=0?i.push(l):l.search(/\S/)>=0&&(l=(l=a.subParser("spanGamut")(l,t,r)).replace(/^([ \t]*)/g,"<p>"),l+="</p>",i.push(l))}for(o=i.length,s=0;s<o;s++){for(var u="",c=i[s],f=!1;/¨(K|G)(\d+)\1/.test(c);){var d=RegExp.$1,h=RegExp.$2;u=(u="K"===d?r.gHtmlBlocks[h]:f?a.subParser("encodeCode")(r.ghCodeBlocks[h].text,t,r):r.ghCodeBlocks[h].codeblock).replace(/\$/g,"$$$$"),c=c.replace(/(\n\n)?¨(K|G)\d+\2(\n\n)?/,u),/^<pre\b[^>]*>\s*<code\b[^>]*>/.test(c)&&(f=!0)}i[s]=c}return e=(e=(e=i.join("\n")).replace(/^\n+/g,"")).replace(/\n+$/g,""),r.converter._dispatch("paragraphs.after",e,t,r)})),a.subParser("runExtension",(function(e,t,r,n){"use strict";if(e.filter)t=e.filter(t,n.converter,r);else if(e.regex){var i=e.regex;i instanceof RegExp||(i=new RegExp(i,"g")),t=t.replace(i,e.replace)}return t})),a.subParser("spanGamut",(function(e,t,r){"use strict";return e=r.converter._dispatch("spanGamut.before",e,t,r),e=a.subParser("codeSpans")(e,t,r),e=a.subParser("escapeSpecialCharsWithinTagAttributes")(e,t,r),e=a.subParser("encodeBackslashEscapes")(e,t,r),e=a.subParser("images")(e,t,r),e=a.subParser("anchors")(e,t,r),e=a.subParser("autoLinks")(e,t,r),e=a.subParser("simplifiedAutoLinks")(e,t,r),e=a.subParser("emoji")(e,t,r),e=a.subParser("underline")(e,t,r),e=a.subParser("italicsAndBold")(e,t,r),e=a.subParser("strikethrough")(e,t,r),e=a.subParser("ellipsis")(e,t,r),e=a.subParser("hashHTMLSpans")(e,t,r),e=a.subParser("encodeAmpsAndAngles")(e,t,r),t.simpleLineBreaks?/\n\n¨K/.test(e)||(e=e.replace(/\n+/g,"<br />\n")):e=e.replace(/ +\n/g,"<br />\n"),r.converter._dispatch("spanGamut.after",e,t,r)})),a.subParser("strikethrough",(function(e,t,r){"use strict";return t.strikethrough&&(e=(e=r.converter._dispatch("strikethrough.before",e,t,r)).replace(/(?:~){2}([\s\S]+?)(?:~){2}/g,(function(e,n){return function(e){return t.simplifiedAutoLink&&(e=a.subParser("simplifiedAutoLinks")(e,t,r)),"<del>"+e+"</del>"}(n)})),e=r.converter._dispatch("strikethrough.after",e,t,r)),e})),a.subParser("stripLinkDefinitions",(function(e,t,r){"use strict";var n=function(n,i,o,s,l,u,c){return i=i.toLowerCase(),e.toLowerCase().split(i).length-1<2?n:(o.match(/^data:.+?\/.+?;base64,/)?r.gUrls[i]=o.replace(/\s/g,""):r.gUrls[i]=a.subParser("encodeAmpsAndAngles")(o,t,r),u?u+c:(c&&(r.gTitles[i]=c.replace(/"|'/g,"&quot;")),t.parseImgDimensions&&s&&l&&(r.gDimensions[i]={width:s,height:l}),""))};return e=(e=(e=(e+="¨0").replace(/^ {0,3}\[([^\]]+)]:[ \t]*\n?[ \t]*<?(data:.+?\/.+?;base64,[A-Za-z0-9+/=\n]+?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n\n|(?=¨0)|(?=\n\[))/gm,n)).replace(/^ {0,3}\[([^\]]+)]:[ \t]*\n?[ \t]*<?([^>\s]+)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n+|(?=¨0))/gm,n)).replace(/¨0/,"")})),a.subParser("tables",(function(e,t,r){"use strict";if(!t.tables)return e;function n(e,n){return"<td"+n+">"+a.subParser("spanGamut")(e,t,r)+"</td>\n"}function i(e){var i,o=e.split("\n");for(i=0;i<o.length;++i)/^ {0,3}\|/.test(o[i])&&(o[i]=o[i].replace(/^ {0,3}\|/,"")),/\|[ \t]*$/.test(o[i])&&(o[i]=o[i].replace(/\|[ \t]*$/,"")),o[i]=a.subParser("codeSpans")(o[i],t,r);var s,l,u,c,f=o[0].split("|").map((function(e){return e.trim()})),d=o[1].split("|").map((function(e){return e.trim()})),h=[],p=[],m=[],y=[];for(o.shift(),o.shift(),i=0;i<o.length;++i)""!==o[i].trim()&&h.push(o[i].split("|").map((function(e){return e.trim()})));if(f.length<d.length)return e;for(i=0;i<d.length;++i)m.push((s=d[i],/^:[ \t]*--*$/.test(s)?' style="text-align:left;"':/^--*[ \t]*:[ \t]*$/.test(s)?' style="text-align:right;"':/^:[ \t]*--*[ \t]*:$/.test(s)?' style="text-align:center;"':""));for(i=0;i<f.length;++i)a.helper.isUndefined(m[i])&&(m[i]=""),p.push((l=f[i],u=m[i],c=void 0,c="",l=l.trim(),(t.tablesHeaderId||t.tableHeaderId)&&(c=' id="'+l.replace(/ /g,"_").toLowerCase()+'"'),"<th"+c+u+">"+(l=a.subParser("spanGamut")(l,t,r))+"</th>\n"));for(i=0;i<h.length;++i){for(var v=[],g=0;g<p.length;++g)a.helper.isUndefined(h[i][g]),v.push(n(h[i][g],m[g]));y.push(v)}return function(e,t){for(var r="<table>\n<thead>\n<tr>\n",n=e.length,i=0;i<n;++i)r+=e[i];for(r+="</tr>\n</thead>\n<tbody>\n",i=0;i<t.length;++i){r+="<tr>\n";for(var a=0;a<n;++a)r+=t[i][a];r+="</tr>\n"}return r+"</tbody>\n</table>\n"}(p,y)}return e=(e=(e=(e=r.converter._dispatch("tables.before",e,t,r)).replace(/\\(\|)/g,a.helper.escapeCharactersCallback)).replace(/^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,i)).replace(/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm,i),r.converter._dispatch("tables.after",e,t,r)})),a.subParser("underline",(function(e,t,r){"use strict";return t.underline?(e=r.converter._dispatch("underline.before",e,t,r),e=(e=t.literalMidWordUnderscores?(e=e.replace(/\b___(\S[\s\S]*?)___\b/g,(function(e,t){return"<u>"+t+"</u>"}))).replace(/\b__(\S[\s\S]*?)__\b/g,(function(e,t){return"<u>"+t+"</u>"})):(e=e.replace(/___(\S[\s\S]*?)___/g,(function(e,t){return/\S$/.test(t)?"<u>"+t+"</u>":e}))).replace(/__(\S[\s\S]*?)__/g,(function(e,t){return/\S$/.test(t)?"<u>"+t+"</u>":e}))).replace(/(_)/g,a.helper.escapeCharactersCallback),e=r.converter._dispatch("underline.after",e,t,r)):e})),a.subParser("unescapeSpecialChars",(function(e,t,r){"use strict";return e=(e=r.converter._dispatch("unescapeSpecialChars.before",e,t,r)).replace(/¨E(\d+)E/g,(function(e,t){var r=parseInt(t);return String.fromCharCode(r)})),r.converter._dispatch("unescapeSpecialChars.after",e,t,r)})),a.subParser("makeMarkdown.blockquote",(function(e,t){"use strict";var r="";if(e.hasChildNodes())for(var n=e.childNodes,i=n.length,o=0;o<i;++o){var s=a.subParser("makeMarkdown.node")(n[o],t);""!==s&&(r+=s)}return"> "+(r=r.trim()).split("\n").join("\n> ")})),a.subParser("makeMarkdown.codeBlock",(function(e,t){"use strict";var r=e.getAttribute("language"),n=e.getAttribute("precodenum");return"```"+r+"\n"+t.preList[n]+"\n```"})),a.subParser("makeMarkdown.codeSpan",(function(e){"use strict";return"`"+e.innerHTML+"`"})),a.subParser("makeMarkdown.emphasis",(function(e,t){"use strict";var r="";if(e.hasChildNodes()){r+="*";for(var n=e.childNodes,i=n.length,o=0;o<i;++o)r+=a.subParser("makeMarkdown.node")(n[o],t);r+="*"}return r})),a.subParser("makeMarkdown.header",(function(e,t,r){"use strict";var n=new Array(r+1).join("#"),i="";if(e.hasChildNodes()){i=n+" ";for(var o=e.childNodes,s=o.length,l=0;l<s;++l)i+=a.subParser("makeMarkdown.node")(o[l],t)}return i})),a.subParser("makeMarkdown.hr",(function(){"use strict";return"---"})),a.subParser("makeMarkdown.image",(function(e){"use strict";var t="";return e.hasAttribute("src")&&(t+="!["+e.getAttribute("alt")+"](",t+="<"+e.getAttribute("src")+">",e.hasAttribute("width")&&e.hasAttribute("height")&&(t+=" ="+e.getAttribute("width")+"x"+e.getAttribute("height")),e.hasAttribute("title")&&(t+=' "'+e.getAttribute("title")+'"'),t+=")"),t})),a.subParser("makeMarkdown.links",(function(e,t){"use strict";var r="";if(e.hasChildNodes()&&e.hasAttribute("href")){var n=e.childNodes,i=n.length;r="[";for(var o=0;o<i;++o)r+=a.subParser("makeMarkdown.node")(n[o],t);r+="](",r+="<"+e.getAttribute("href")+">",e.hasAttribute("title")&&(r+=' "'+e.getAttribute("title")+'"'),r+=")"}return r})),a.subParser("makeMarkdown.list",(function(e,t,r){"use strict";var n="";if(!e.hasChildNodes())return"";for(var i=e.childNodes,o=i.length,s=e.getAttribute("start")||1,l=0;l<o;++l)void 0!==i[l].tagName&&"li"===i[l].tagName.toLowerCase()&&(n+=("ol"===r?s.toString()+". ":"- ")+a.subParser("makeMarkdown.listItem")(i[l],t),++s);return(n+="\n\x3c!-- --\x3e\n").trim()})),a.subParser("makeMarkdown.listItem",(function(e,t){"use strict";for(var r="",n=e.childNodes,i=n.length,o=0;o<i;++o)r+=a.subParser("makeMarkdown.node")(n[o],t);return/\n$/.test(r)?r=r.split("\n").join("\n ").replace(/^ {4}$/gm,"").replace(/\n\n+/g,"\n\n"):r+="\n",r})),a.subParser("makeMarkdown.node",(function(e,t,r){"use strict";r=r||!1;var n="";if(3===e.nodeType)return a.subParser("makeMarkdown.txt")(e,t);if(8===e.nodeType)return"\x3c!--"+e.data+"--\x3e\n\n";if(1!==e.nodeType)return"";switch(e.tagName.toLowerCase()){case"h1":r||(n=a.subParser("makeMarkdown.header")(e,t,1)+"\n\n");break;case"h2":r||(n=a.subParser("makeMarkdown.header")(e,t,2)+"\n\n");break;case"h3":r||(n=a.subParser("makeMarkdown.header")(e,t,3)+"\n\n");break;case"h4":r||(n=a.subParser("makeMarkdown.header")(e,t,4)+"\n\n");break;case"h5":r||(n=a.subParser("makeMarkdown.header")(e,t,5)+"\n\n");break;case"h6":r||(n=a.subParser("makeMarkdown.header")(e,t,6)+"\n\n");break;case"p":r||(n=a.subParser("makeMarkdown.paragraph")(e,t)+"\n\n");break;case"blockquote":r||(n=a.subParser("makeMarkdown.blockquote")(e,t)+"\n\n");break;case"hr":r||(n=a.subParser("makeMarkdown.hr")(e,t)+"\n\n");break;case"ol":r||(n=a.subParser("makeMarkdown.list")(e,t,"ol")+"\n\n");break;case"ul":r||(n=a.subParser("makeMarkdown.list")(e,t,"ul")+"\n\n");break;case"precode":r||(n=a.subParser("makeMarkdown.codeBlock")(e,t)+"\n\n");break;case"pre":r||(n=a.subParser("makeMarkdown.pre")(e,t)+"\n\n");break;case"table":r||(n=a.subParser("makeMarkdown.table")(e,t)+"\n\n");break;case"code":n=a.subParser("makeMarkdown.codeSpan")(e,t);break;case"em":case"i":n=a.subParser("makeMarkdown.emphasis")(e,t);break;case"strong":case"b":n=a.subParser("makeMarkdown.strong")(e,t);break;case"del":n=a.subParser("makeMarkdown.strikethrough")(e,t);break;case"a":n=a.subParser("makeMarkdown.links")(e,t);break;case"img":n=a.subParser("makeMarkdown.image")(e,t);break;default:n=e.outerHTML+"\n\n"}return n})),a.subParser("makeMarkdown.paragraph",(function(e,t){"use strict";var r="";if(e.hasChildNodes())for(var n=e.childNodes,i=n.length,o=0;o<i;++o)r+=a.subParser("makeMarkdown.node")(n[o],t);return r.trim()})),a.subParser("makeMarkdown.pre",(function(e,t){"use strict";var r=e.getAttribute("prenum");return"<pre>"+t.preList[r]+"</pre>"})),a.subParser("makeMarkdown.strikethrough",(function(e,t){"use strict";var r="";if(e.hasChildNodes()){r+="~~";for(var n=e.childNodes,i=n.length,o=0;o<i;++o)r+=a.subParser("makeMarkdown.node")(n[o],t);r+="~~"}return r})),a.subParser("makeMarkdown.strong",(function(e,t){"use strict";var r="";if(e.hasChildNodes()){r+="**";for(var n=e.childNodes,i=n.length,o=0;o<i;++o)r+=a.subParser("makeMarkdown.node")(n[o],t);r+="**"}return r})),a.subParser("makeMarkdown.table",(function(e,t){"use strict";var r,n,i="",o=[[],[]],s=e.querySelectorAll("thead>tr>th"),l=e.querySelectorAll("tbody>tr");for(r=0;r<s.length;++r){var u=a.subParser("makeMarkdown.tableCell")(s[r],t),c="---";if(s[r].hasAttribute("style"))switch(s[r].getAttribute("style").toLowerCase().replace(/\s/g,"")){case"text-align:left;":c=":---";break;case"text-align:right;":c="---:";break;case"text-align:center;":c=":---:"}o[0][r]=u.trim(),o[1][r]=c}for(r=0;r<l.length;++r){var f=o.push([])-1,d=l[r].getElementsByTagName("td");for(n=0;n<s.length;++n){var h=" ";void 0!==d[n]&&(h=a.subParser("makeMarkdown.tableCell")(d[n],t)),o[f].push(h)}}var p=3;for(r=0;r<o.length;++r)for(n=0;n<o[r].length;++n){var m=o[r][n].length;m>p&&(p=m)}for(r=0;r<o.length;++r){for(n=0;n<o[r].length;++n)1===r?":"===o[r][n].slice(-1)?o[r][n]=a.helper.padEnd(o[r][n].slice(-1),p-1,"-")+":":o[r][n]=a.helper.padEnd(o[r][n],p,"-"):o[r][n]=a.helper.padEnd(o[r][n],p);i+="| "+o[r].join(" | ")+" |\n"}return i.trim()})),a.subParser("makeMarkdown.tableCell",(function(e,t){"use strict";var r="";if(!e.hasChildNodes())return"";for(var n=e.childNodes,i=n.length,o=0;o<i;++o)r+=a.subParser("makeMarkdown.node")(n[o],t,!0);return r.trim()})),a.subParser("makeMarkdown.txt",(function(e){"use strict";var t=e.nodeValue;return t=(t=t.replace(/ +/g," ")).replace(/¨NBSP;/g," "),(t=(t=(t=(t=(t=(t=(t=(t=a.helper.unescapeHTMLEntities(t)).replace(/([*_~|`])/g,"\\$1")).replace(/^(\s*)>/g,"\\$1>")).replace(/^#/gm,"\\#")).replace(/^(\s*)([-=]{3,})(\s*)$/,"$1\\$2$3")).replace(/^( {0,3}\d+)\./gm,"$1\\.")).replace(/^( {0,3})([+-])/gm,"$1\\$2")).replace(/]([\s]*)\(/g,"\\]$1\\(")).replace(/^ {0,3}\[([\S \t]*?)]:/gm,"\\[$1]:")})),void 0===(n=function(){"use strict";return a}.call(t,r,t,e))||(e.exports=n)}).call(this)},942:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=o(e,a(r)))}return e}function a(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)n.call(e,r)&&e[r]&&(t=o(t,r));return t}function o(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)}()}},n={};function i(e){var t=n[e];if(void 0!==t)return t.exports;var a=n[e]={exports:{}};return r[e].call(a.exports,a,a.exports,i),a.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,i.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if("object"==typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&"function"==typeof r.then)return r}var a=Object.create(null);i.r(a);var o={};e=e||[null,t({}),t([]),t(t)];for(var s=2&n&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>o[e]=()=>r[e]));return o.default=()=>r,i.d(a,o),a},i.d=(e,t)=>{for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e=i(540),t=i(338),r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},r(e,t)};function n(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var a=function(){return a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},a.apply(this,arguments)};function o(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}function s(e,t,r,n){return new(r||(r=Promise))((function(i,a){function o(e){try{l(n.next(e))}catch(e){a(e)}}function s(e){try{l(n.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,s)}l((n=n.apply(e,t||[])).next())}))}function l(e,t){var r,n,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}function u(e,t,r){if(r||2===arguments.length)for(var n,i=0,a=t.length;i<a;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var c="Invariant Violation",f=Object.setPrototypeOf,d=void 0===f?function(e,t){return e.__proto__=t,e}:f,h=function(e){function t(r){void 0===r&&(r=c);var n=e.call(this,"number"==typeof r?c+": "+r+" (see https://github.com/apollographql/invariant-packages)":r)||this;return n.framesToPop=1,n.name=c,d(n,t.prototype),n}return n(t,e),t}(Error);function p(e,t){if(!e)throw new h(t)}var m,y=["debug","log","warn","error","silent"],v=y.indexOf("log");function g(e){return function(){if(y.indexOf(e)>=v)return(console[e]||console.log).apply(console,arguments)}}(m=p||(p={})).debug=g("debug"),m.log=g("log"),m.warn=g("warn"),m.error=g("error");var b="3.10.1";function w(e){try{return e()}catch(e){}}const _=w((function(){return globalThis}))||w((function(){return window}))||w((function(){return self}))||w((function(){return global}))||w((function(){return w.constructor("return this")()}));var k=new Map;function S(e){var t=k.get(e)||1;return k.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}function E(e,t){void 0===t&&(t=0);var r=S("stringifyForDisplay");return JSON.stringify(e,(function(e,t){return void 0===t?r:t}),t).split(JSON.stringify(r)).join("<undefined>")}function x(e){return function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if("number"==typeof t){var i=t;(t=D(i))||(t=I(i,r),r=[])}e.apply(void 0,[t].concat(r))}}var O=Object.assign((function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];e||p(e,D(t,r)||I(t,r))}),{debug:x(p.debug),log:x(p.log),warn:x(p.warn),error:x(p.error)});function T(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new h(D(e,t)||I(e,t))}var N=Symbol.for("ApolloErrorMessageHandler_"+b);function C(e){return"string"==typeof e?e:E(e,2).slice(0,1e3)}function D(e,t){if(void 0===t&&(t=[]),e)return _[N]&&_[N](e,t.map(C))}function I(e,t){if(void 0===t&&(t=[]),e)return"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:b,message:e,args:t.map(C)})))}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function M(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function A(e,t,r){return t&&M(e.prototype,t),r&&M(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}globalThis.__DEV__;var F=function(){return"function"==typeof Symbol},j=function(e){return F()&&Boolean(Symbol[e])},L=function(e){return j(e)?Symbol[e]:"@@"+e};F()&&!j("observable")&&(Symbol.observable=Symbol("observable"));var R=L("iterator"),z=L("observable"),V=L("species");function q(e,t){var r=e[t];if(null!=r){if("function"!=typeof r)throw new TypeError(r+" is not a function");return r}}function U(e){var t=e.constructor;return void 0!==t&&null===(t=t[V])&&(t=void 0),void 0!==t?t:J}function Q(e){return e instanceof J}function B(e){B.log?B.log(e):setTimeout((function(){throw e}))}function $(e){Promise.resolve().then((function(){try{e()}catch(e){B(e)}}))}function W(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"==typeof t)t();else{var r=q(t,"unsubscribe");r&&r.call(t)}}catch(e){B(e)}}function H(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function G(e,t,r){e._state="running";var n=e._observer;try{var i=q(n,t);switch(t){case"next":i&&i.call(n,r);break;case"error":if(H(e),!i)throw r;i.call(n,r);break;case"complete":H(e),i&&i.call(n)}}catch(e){B(e)}"closed"===e._state?W(e):"running"===e._state&&(e._state="ready")}function Z(e,t,r){if("closed"!==e._state){if("buffering"!==e._state)return"ready"!==e._state?(e._state="buffering",e._queue=[{type:t,value:r}],void $((function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var r=0;r<t.length&&(G(e,t[r].type,t[r].value),"closed"!==e._state);++r);}}(e)}))):void G(e,t,r);e._queue.push({type:t,value:r})}}var Y=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var r=new K(this);try{this._cleanup=t.call(void 0,r)}catch(e){r.error(e)}"initializing"===this._state&&(this._state="ready")}return e.prototype.unsubscribe=function(){"closed"!==this._state&&(H(this),W(this))},A(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),K=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){Z(this._subscription,"next",e)},t.error=function(e){Z(this._subscription,"error",e)},t.complete=function(){Z(this._subscription,"complete")},A(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),J=function(){function e(t){if(!(this instanceof e))throw new TypeError("Observable cannot be called as a function");if("function"!=typeof t)throw new TypeError("Observable initializer must be a function");this._subscriber=t}var t=e.prototype;return t.subscribe=function(e){return"object"==typeof e&&null!==e||(e={next:e,error:arguments[1],complete:arguments[2]}),new Y(e,this._subscriber)},t.forEach=function(e){var t=this;return new Promise((function(r,n){if("function"==typeof e)var i=t.subscribe({next:function(t){try{e(t,a)}catch(e){n(e),i.unsubscribe()}},error:n,complete:r});else n(new TypeError(e+" is not a function"));function a(){i.unsubscribe(),r()}}))},t.map=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(U(this))((function(r){return t.subscribe({next:function(t){try{t=e(t)}catch(e){return r.error(e)}r.next(t)},error:function(e){r.error(e)},complete:function(){r.complete()}})}))},t.filter=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");return new(U(this))((function(r){return t.subscribe({next:function(t){try{if(!e(t))return}catch(e){return r.error(e)}r.next(t)},error:function(e){r.error(e)},complete:function(){r.complete()}})}))},t.reduce=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var r=U(this),n=arguments.length>1,i=!1,a=arguments[1];return new r((function(r){return t.subscribe({next:function(t){var o=!i;if(i=!0,!o||n)try{a=e(a,t)}catch(e){return r.error(e)}else a=t},error:function(e){r.error(e)},complete:function(){if(!i&&!n)return r.error(new TypeError("Cannot reduce an empty sequence"));r.next(a),r.complete()}})}))},t.concat=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=U(this);return new i((function(t){var n,a=0;return function e(o){n=o.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){a===r.length?(n=void 0,t.complete()):e(i.from(r[a++]))}})}(e),function(){n&&(n.unsubscribe(),n=void 0)}}))},t.flatMap=function(e){var t=this;if("function"!=typeof e)throw new TypeError(e+" is not a function");var r=U(this);return new r((function(n){var i=[],a=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(e){return n.error(e)}var a=r.from(t).subscribe({next:function(e){n.next(e)},error:function(e){n.error(e)},complete:function(){var e=i.indexOf(a);e>=0&&i.splice(e,1),o()}});i.push(a)},error:function(e){n.error(e)},complete:function(){o()}});function o(){a.closed&&0===i.length&&n.complete()}return function(){i.forEach((function(e){return e.unsubscribe()})),a.unsubscribe()}}))},t[z]=function(){return this},e.from=function(t){var r="function"==typeof this?this:e;if(null==t)throw new TypeError(t+" is not an object");var n=q(t,z);if(n){var i=n.call(t);if(Object(i)!==i)throw new TypeError(i+" is not an object");return Q(i)&&i.constructor===r?i:new r((function(e){return i.subscribe(e)}))}if(j("iterator")&&(n=q(t,R)))return new r((function(e){$((function(){if(!e.closed){for(var r,i=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return P(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?P(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(n.call(t));!(r=i()).done;){var a=r.value;if(e.next(a),e.closed)return}e.complete()}}))}));if(Array.isArray(t))return new r((function(e){$((function(){if(!e.closed){for(var r=0;r<t.length;++r)if(e.next(t[r]),e.closed)return;e.complete()}}))}));throw new TypeError(t+" is not observable")},e.of=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return new("function"==typeof this?this:e)((function(e){$((function(){if(!e.closed){for(var t=0;t<r.length;++t)if(e.next(r[t]),e.closed)return;e.complete()}}))}))},A(e,null,[{key:V,get:function(){return this}}]),e}();function X(e){return null!==e&&"object"==typeof e}function ee(e,t){var r=t,n=[];return e.definitions.forEach((function(e){if("OperationDefinition"===e.kind)throw T(71,e.operation,e.name?" named '".concat(e.name.value,"'"):"");"FragmentDefinition"===e.kind&&n.push(e)})),void 0===r&&(O(1===n.length,72,n.length),r=n[0].name.value),a(a({},e),{definitions:u([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],e.definitions,!0)})}function te(e){void 0===e&&(e=[]);var t={};return e.forEach((function(e){t[e.name.value]=e})),t}function re(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var r=e.name.value;if("function"==typeof t)return t(r);var n=t&&t[r];return O(n,73,r),n||null;default:return null}}function ne(){}F()&&Object.defineProperty(J,Symbol("extensions"),{value:{symbol:z,hostReportError:B},configurable:!0});const ie=ne,ae="undefined"!=typeof WeakRef?WeakRef:function(e){return{deref:()=>e}},oe="undefined"!=typeof WeakMap?WeakMap:Map,se="undefined"!=typeof FinalizationRegistry?FinalizationRegistry:function(){return{register:ne,unregister:ne}};class le{constructor(e=1/0,t=ie){this.max=e,this.dispose=t,this.map=new oe,this.newest=null,this.oldest=null,this.unfinalizedNodes=new Set,this.finalizationScheduled=!1,this.size=0,this.finalize=()=>{const e=this.unfinalizedNodes.values();for(let t=0;t<10024;t++){const t=e.next().value;if(!t)break;this.unfinalizedNodes.delete(t);const r=t.key;delete t.key,t.keyRef=new ae(r),this.registry.register(r,t,t)}this.unfinalizedNodes.size>0?queueMicrotask(this.finalize):this.finalizationScheduled=!1},this.registry=new se(this.deleteNode.bind(this))}has(e){return this.map.has(e)}get(e){const t=this.getNode(e);return t&&t.value}getNode(e){const t=this.map.get(e);if(t&&t!==this.newest){const{older:e,newer:r}=t;r&&(r.older=e),e&&(e.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t}set(e,t){let r=this.getNode(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.scheduleFinalization(r),this.map.set(e,r),this.size++,r.value)}clean(){for(;this.oldest&&this.size>this.max;)this.deleteNode(this.oldest)}deleteNode(e){e===this.newest&&(this.newest=e.older),e===this.oldest&&(this.oldest=e.newer),e.newer&&(e.newer.older=e.older),e.older&&(e.older.newer=e.newer),this.size--;const t=e.key||e.keyRef&&e.keyRef.deref();this.dispose(e.value,t),e.keyRef?this.registry.unregister(e):this.unfinalizedNodes.delete(e),t&&this.map.delete(t)}delete(e){const t=this.map.get(e);return!!t&&(this.deleteNode(t),!0)}scheduleFinalization(e){this.unfinalizedNodes.add(e),this.finalizationScheduled||(this.finalizationScheduled=!0,queueMicrotask(this.finalize))}}function ue(){}class ce{constructor(e=1/0,t=ue){this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){const t=this.getNode(e);return t&&t.value}get size(){return this.map.size}getNode(e){const t=this.map.get(e);if(t&&t!==this.newest){const{older:e,newer:r}=t;r&&(r.older=e),e&&(e.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t}set(e,t){let r=this.getNode(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(e,r),r.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){const t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)}}var fe=new WeakSet;function de(e){e.size<=(e.max||-1)||fe.has(e)||(fe.add(e),setTimeout((function(){e.clean(),fe.delete(e)}),100))}var he=function(e,t){var r=new le(e,t);return r.set=function(e,t){var r=le.prototype.set.call(this,e,t);return de(this),r},r},pe=function(e,t){var r=new ce(e,t);return r.set=function(e,t){var r=ce.prototype.set.call(this,e,t);return de(this),r},r},me=Symbol.for("apollo.cacheSize"),ye=a({},_[me]),ve={};function ge(e,t){ve[e]=t}var be=!1!==globalThis.__DEV__?function(){var e,t,r,n,i;if(!1===globalThis.__DEV__)throw new Error("only supported in development mode");return{limits:Object.fromEntries(Object.entries({parser:1e3,canonicalStringify:1e3,print:2e3,"documentTransform.cache":2e3,"queryManager.getDocumentInfo":2e3,"PersistedQueryLink.persistedQueryHashes":2e3,"fragmentRegistry.transform":2e3,"fragmentRegistry.lookup":1e3,"fragmentRegistry.findFragmentSpreads":4e3,"cache.fragmentQueryDocuments":1e3,"removeTypenameFromVariables.getVariableDefinitions":2e3,"inMemoryCache.maybeBroadcastWatch":5e3,"inMemoryCache.executeSelectionSet":5e4,"inMemoryCache.executeSubSelectedArray":1e4}).map((function(e){var t=e[0],r=e[1];return[t,ye[t]||r]}))),sizes:a({print:null===(e=ve.print)||void 0===e?void 0:e.call(ve),parser:null===(t=ve.parser)||void 0===t?void 0:t.call(ve),canonicalStringify:null===(r=ve.canonicalStringify)||void 0===r?void 0:r.call(ve),links:Te(this.link),queryManager:{getDocumentInfo:this.queryManager.transformCache.size,documentTransforms:xe(this.queryManager.documentTransform)}},null===(i=(n=this.cache).getMemoryInternals)||void 0===i?void 0:i.call(n))}}:void 0,we=!1!==globalThis.__DEV__?function(){var e=this.config.fragments;return a(a({},ke.apply(this)),{addTypenameDocumentTransform:xe(this.addTypenameTransform),inMemoryCache:{executeSelectionSet:Se(this.storeReader.executeSelectionSet),executeSubSelectedArray:Se(this.storeReader.executeSubSelectedArray),maybeBroadcastWatch:Se(this.maybeBroadcastWatch)},fragmentRegistry:{findFragmentSpreads:Se(null==e?void 0:e.findFragmentSpreads),lookup:Se(null==e?void 0:e.lookup),transform:Se(null==e?void 0:e.transform)}})}:void 0,_e=!1!==globalThis.__DEV__?ke:void 0;function ke(){return{cache:{fragmentQueryDocuments:Se(this.getFragmentDoc)}}}function Se(e){return function(e){return!!e&&"dirtyKey"in e}(e)?e.size:void 0}function Ee(e){return null!=e}function xe(e){return Oe(e).map((function(e){return{cache:e}}))}function Oe(e){return e?u(u([Se(null==e?void 0:e.performWork)],Oe(null==e?void 0:e.left),!0),Oe(null==e?void 0:e.right),!0).filter(Ee):[]}function Te(e){var t;return e?u(u([null===(t=null==e?void 0:e.getMemoryInternals)||void 0===t?void 0:t.call(e)],Te(null==e?void 0:e.left),!0),Te(null==e?void 0:e.right),!0).filter(Ee):[]}var Ne,Ce=Object.assign((function(e){return JSON.stringify(e,De)}),{reset:function(){Ne=new pe(ye.canonicalStringify||1e3)}});function De(e,t){if(t&&"object"==typeof t){var r=Object.getPrototypeOf(t);if(r===Object.prototype||null===r){var n=Object.keys(t);if(n.every(Ie))return t;var i=JSON.stringify(n),a=Ne.get(i);if(!a){n.sort();var o=JSON.stringify(n);a=Ne.get(o)||n,Ne.set(i,a),Ne.set(o,a)}var s=Object.create(r);return a.forEach((function(e){s[e]=t[e]})),s}}return t}function Ie(e,t,r){return 0===t||r[t-1]<=e}function Pe(e){return{__ref:String(e)}}function Me(e){return Boolean(e&&"object"==typeof e&&"string"==typeof e.__ref)}function Ae(e,t,r,n){if(function(e){return"IntValue"===e.kind}(r)||function(e){return"FloatValue"===e.kind}(r))e[t.value]=Number(r.value);else if(function(e){return"BooleanValue"===e.kind}(r)||function(e){return"StringValue"===e.kind}(r))e[t.value]=r.value;else if(function(e){return"ObjectValue"===e.kind}(r)){var i={};r.fields.map((function(e){return Ae(i,e.name,e.value,n)})),e[t.value]=i}else if(function(e){return"Variable"===e.kind}(r)){var a=(n||{})[r.name.value];e[t.value]=a}else if(function(e){return"ListValue"===e.kind}(r))e[t.value]=r.values.map((function(e){var r={};return Ae(r,t,e,n),r[t.value]}));else if(function(e){return"EnumValue"===e.kind}(r))e[t.value]=r.value;else{if(!function(e){return"NullValue"===e.kind}(r))throw T(82,t.value,r.kind);e[t.value]=null}}!1!==globalThis.__DEV__&&ge("canonicalStringify",(function(){return Ne.size})),Ce.reset();var Fe=["connection","include","skip","client","rest","export","nonreactive"],je=Ce,Le=Object.assign((function(e,t,r){if(t&&r&&r.connection&&r.connection.key){if(r.connection.filter&&r.connection.filter.length>0){var n=r.connection.filter?r.connection.filter:[];n.sort();var i={};return n.forEach((function(e){i[e]=t[e]})),"".concat(r.connection.key,"(").concat(je(i),")")}return r.connection.key}var a=e;if(t){var o=je(t);a+="(".concat(o,")")}return r&&Object.keys(r).forEach((function(e){-1===Fe.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?a+="@".concat(e,"(").concat(je(r[e]),")"):a+="@".concat(e))})),a}),{setStringify:function(e){var t=je;return je=e,t}});function Re(e,t){if(e.arguments&&e.arguments.length){var r={};return e.arguments.forEach((function(e){var n=e.name,i=e.value;return Ae(r,n,i,t)})),r}return null}function ze(e){return e.alias?e.alias.value:e.name.value}function Ve(e,t,r){for(var n,i=0,a=t.selections;i<a.length;i++)if(qe(l=a[i])){if("__typename"===l.name.value)return e[ze(l)]}else n?n.push(l):n=[l];if("string"==typeof e.__typename)return e.__typename;if(n)for(var o=0,s=n;o<s.length;o++){var l,u=Ve(e,re(l=s[o],r).selectionSet,r);if("string"==typeof u)return u}}function qe(e){return"Field"===e.kind}function Ue(e){O(e&&"Document"===e.kind,74);var t=e.definitions.filter((function(e){return"FragmentDefinition"!==e.kind})).map((function(e){if("OperationDefinition"!==e.kind)throw T(75,e.kind);return e}));return O(t.length<=1,76,t.length),e}function Qe(e){return Ue(e),e.definitions.filter((function(e){return"OperationDefinition"===e.kind}))[0]}function Be(e){return e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&!!e.name})).map((function(e){return e.name.value}))[0]||null}function $e(e){return e.definitions.filter((function(e){return"FragmentDefinition"===e.kind}))}function We(e){var t=Qe(e);return O(t&&"query"===t.operation,77),t}function He(e){var t;Ue(e);for(var r=0,n=e.definitions;r<n.length;r++){var i=n[r];if("OperationDefinition"===i.kind){var a=i.operation;if("query"===a||"mutation"===a||"subscription"===a)return i}"FragmentDefinition"!==i.kind||t||(t=i)}if(t)return t;throw T(81)}function Ge(e){var t=Object.create(null),r=e&&e.variableDefinitions;return r&&r.length&&r.forEach((function(e){e.defaultValue&&Ae(t,e.variable.name,e.defaultValue)})),t}function Ze(e,t){return t?t(e):J.of()}function Ye(e){return"function"==typeof e?new Je(e):e}function Ke(e){return e.request.length<=1}var Je=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e((function(){return J.of()}))},e.from=function(t){return 0===t.length?e.empty():t.map(Ye).reduce((function(e,t){return e.concat(t)}))},e.split=function(t,r,n){var i,a=Ye(r),o=Ye(n||new e(Ze));return i=Ke(a)&&Ke(o)?new e((function(e){return t(e)?a.request(e)||J.of():o.request(e)||J.of()})):new e((function(e,r){return t(e)?a.request(e,r)||J.of():o.request(e,r)||J.of()})),Object.assign(i,{left:a,right:o})},e.execute=function(e,t){return e.request(function(e,t){var r=a({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){r=a(a({},r),"function"==typeof e?e(r):e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return a({},r)}}),t}(t.context,function(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName="string"!=typeof t.query?Be(t.query)||void 0:""),t}(function(e){for(var t=["query","operationName","variables","extensions","context"],r=0,n=Object.keys(e);r<n.length;r++){var i=n[r];if(t.indexOf(i)<0)throw T(43,i)}return e}(t))))||J.of()},e.concat=function(t,r){var n=Ye(t);if(Ke(n))return!1!==globalThis.__DEV__&&O.warn(35,n),n;var i,a=Ye(r);return i=Ke(a)?new e((function(e){return n.request(e,(function(e){return a.request(e)||J.of()}))||J.of()})):new e((function(e,t){return n.request(e,(function(e){return a.request(e,t)||J.of()}))||J.of()})),Object.assign(i,{left:n,right:a})},e.prototype.split=function(t,r,n){return this.concat(e.split(t,r,n||new e(Ze)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw T(36)},e.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return this.onError=e,this},e}(),Xe=Je.execute;function et(e,t){if(!Boolean(e))throw new Error(t)}const tt=10,rt=2;function nt(e){return it(e,[])}function it(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const r=[...t,e];if(function(e){return"function"==typeof e.toJSON}(e)){const t=e.toJSON();if(t!==e)return"string"==typeof t?t:it(t,r)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>rt)return"[Array]";const r=Math.min(tt,e.length),n=e.length-r,i=[];for(let n=0;n<r;++n)i.push(it(e[n],t));return 1===n?i.push("... 1 more item"):n>1&&i.push(`... ${n} more items`),"["+i.join(", ")+"]"}(e,r);return function(e,t){const r=Object.entries(e);if(0===r.length)return"{}";if(t.length>rt)return"["+function(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(e)+"]";const n=r.map((([e,r])=>e+": "+it(r,t)));return"{ "+n.join(", ")+" }"}(e,r)}(e,t);default:return String(e)}}class at{constructor(e,t,r){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class ot{constructor(e,t,r,n,i,a){this.kind=e,this.start=t,this.end=r,this.line=n,this.column=i,this.value=a,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const st={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},lt=new Set(Object.keys(st));function ut(e){const t=null==e?void 0:e.kind;return"string"==typeof t&&lt.has(t)}var ct,ft,dt;!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(ct||(ct={})),(dt=ft||(ft={})).NAME="Name",dt.DOCUMENT="Document",dt.OPERATION_DEFINITION="OperationDefinition",dt.VARIABLE_DEFINITION="VariableDefinition",dt.SELECTION_SET="SelectionSet",dt.FIELD="Field",dt.ARGUMENT="Argument",dt.FRAGMENT_SPREAD="FragmentSpread",dt.INLINE_FRAGMENT="InlineFragment",dt.FRAGMENT_DEFINITION="FragmentDefinition",dt.VARIABLE="Variable",dt.INT="IntValue",dt.FLOAT="FloatValue",dt.STRING="StringValue",dt.BOOLEAN="BooleanValue",dt.NULL="NullValue",dt.ENUM="EnumValue",dt.LIST="ListValue",dt.OBJECT="ObjectValue",dt.OBJECT_FIELD="ObjectField",dt.DIRECTIVE="Directive",dt.NAMED_TYPE="NamedType",dt.LIST_TYPE="ListType",dt.NON_NULL_TYPE="NonNullType",dt.SCHEMA_DEFINITION="SchemaDefinition",dt.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",dt.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",dt.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",dt.FIELD_DEFINITION="FieldDefinition",dt.INPUT_VALUE_DEFINITION="InputValueDefinition",dt.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",dt.UNION_TYPE_DEFINITION="UnionTypeDefinition",dt.ENUM_TYPE_DEFINITION="EnumTypeDefinition",dt.ENUM_VALUE_DEFINITION="EnumValueDefinition",dt.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",dt.DIRECTIVE_DEFINITION="DirectiveDefinition",dt.SCHEMA_EXTENSION="SchemaExtension",dt.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",dt.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",dt.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",dt.UNION_TYPE_EXTENSION="UnionTypeExtension",dt.ENUM_TYPE_EXTENSION="EnumTypeExtension",dt.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension";const ht=Object.freeze({});function pt(e,t,r=st){const n=new Map;for(const e of Object.values(ft))n.set(e,mt(t,e));let i,a,o,s=Array.isArray(e),l=[e],u=-1,c=[],f=e;const d=[],h=[];do{u++;const e=u===l.length,v=e&&0!==c.length;if(e){if(a=0===h.length?void 0:d[d.length-1],f=o,o=h.pop(),v)if(s){f=f.slice();let e=0;for(const[t,r]of c){const n=t-e;null===r?(f.splice(n,1),e++):f[n]=r}}else{f=Object.defineProperties({},Object.getOwnPropertyDescriptors(f));for(const[e,t]of c)f[e]=t}u=i.index,l=i.keys,c=i.edits,s=i.inArray,i=i.prev}else if(o){if(a=s?u:l[u],f=o[a],null==f)continue;d.push(a)}let g;if(!Array.isArray(f)){var p,m;ut(f)||et(!1,`Invalid AST Node: ${nt(f)}.`);const r=e?null===(p=n.get(f.kind))||void 0===p?void 0:p.leave:null===(m=n.get(f.kind))||void 0===m?void 0:m.enter;if(g=null==r?void 0:r.call(t,f,a,o,d,h),g===ht)break;if(!1===g){if(!e){d.pop();continue}}else if(void 0!==g&&(c.push([a,g]),!e)){if(!ut(g)){d.pop();continue}f=g}}var y;void 0===g&&v&&c.push([a,f]),e?d.pop():(i={inArray:s,index:u,keys:l,edits:c,prev:i},s=Array.isArray(f),l=s?f:null!==(y=r[f.kind])&&void 0!==y?y:[],u=-1,c=[],o&&h.push(o),o=f)}while(void 0!==i);return 0!==c.length?c[c.length-1][1]:e}function mt(e,t){const r=e[t];return"object"==typeof r?r:"function"==typeof r?{enter:r,leave:void 0}:{enter:e.enter,leave:e.leave}}function yt(e,t){var r=e.directives;return!r||!r.length||function(e){var t=[];return e&&e.length&&e.forEach((function(e){if(function(e){var t=e.name.value;return"skip"===t||"include"===t}(e)){var r=e.arguments,n=e.name.value;O(r&&1===r.length,68,n);var i=r[0];O(i.name&&"if"===i.name.value,69,n);var a=i.value;O(a&&("Variable"===a.kind||"BooleanValue"===a.kind),70,n),t.push({directive:e,ifArgument:i})}})),t}(r).every((function(e){var r=e.directive,n=e.ifArgument,i=!1;return"Variable"===n.value.kind?(i=t&&t[n.value.name.value],O(void 0!==i,67,r.name.value)):i=n.value.value,"skip"===r.name.value?!i:i}))}function vt(e,t,r){var n=new Set(e),i=n.size;return pt(t,{Directive:function(e){if(n.delete(e.name.value)&&(!r||!n.size))return ht}}),r?!n.size:n.size<i}function gt(e){return e&&vt(["client","export"],e,!0)}var bt=function(e,t){var r;try{r=JSON.stringify(e)}catch(e){var n=T(39,t,e.message);throw n.parseError=e,n}return r},wt="function"==typeof WeakMap&&!w((function(){return"ReactNative"==navigator.product&&!global.HermesInternal})),_t="function"==typeof WeakSet,kt="function"==typeof Symbol&&"function"==typeof Symbol.for,St=kt&&Symbol.asyncIterator,Et="function"==typeof w((function(){return window.document.createElement})),xt=w((function(){return navigator.userAgent.indexOf("jsdom")>=0}))||!1,Ot=Et&&!xt;function Tt(e){var t={next:function(){return e.read()}};return St&&(t[Symbol.asyncIterator]=function(){return this}),t}function Nt(e){var t,r,n,i,a=e;if(e.body&&(a=e.body),i=a,St&&i[Symbol.asyncIterator])return function(e){var t,r=e[Symbol.asyncIterator]();return(t={next:function(){return r.next()}})[Symbol.asyncIterator]=function(){return this},t}(a);if(function(e){return!!e.getReader}(a))return Tt(a.getReader());if(function(e){return!!e.stream}(a))return Tt(a.stream().getReader());if(function(e){return!!e.arrayBuffer}(a))return t=a.arrayBuffer(),r=!1,n={next:function(){return r?Promise.resolve({value:void 0,done:!0}):(r=!0,new Promise((function(e,r){t.then((function(t){e({value:t,done:!1})})).catch(r)})))}},St&&(n[Symbol.asyncIterator]=function(){return this}),n;if(function(e){return!!e.pipe}(a))return function(e){var t=null,r=null,n=!1,i=[],a=[];function o(e){if(!r){if(a.length){var t=a.shift();if(Array.isArray(t)&&t[0])return t[0]({value:e,done:!1})}i.push(e)}}function s(e){r=e,a.slice().forEach((function(t){t[1](e)})),!t||t()}function l(){n=!0,a.slice().forEach((function(e){e[0]({value:void 0,done:!0})})),!t||t()}t=function(){t=null,e.removeListener("data",o),e.removeListener("error",s),e.removeListener("end",l),e.removeListener("finish",l),e.removeListener("close",l)},e.on("data",o),e.on("error",s),e.on("end",l),e.on("finish",l),e.on("close",l);var u={next:function(){return new Promise((function(e,t){return r?t(r):i.length?e({value:i.shift(),done:!1}):n?e({value:void 0,done:!0}):void a.push([e,t])}))}};return St&&(u[Symbol.asyncIterator]=function(){return this}),u}(a);throw new Error("Unknown body type for responseIterator. Please pass a streamable response.")}var Ct=function(e,t,r){var n=new Error(r);throw n.name="ServerError",n.response=e,n.statusCode=e.status,n.result=t,n},Dt=Symbol(),It=function(e){function t(r){var n,i,a=r.graphQLErrors,o=r.protocolErrors,s=r.clientErrors,l=r.networkError,c=r.errorMessage,f=r.extraInfo,d=e.call(this,c)||this;return d.name="ApolloError",d.graphQLErrors=a||[],d.protocolErrors=o||[],d.clientErrors=s||[],d.networkError=l||null,d.message=c||(i=u(u(u([],(n=d).graphQLErrors,!0),n.clientErrors,!0),n.protocolErrors,!0),n.networkError&&i.push(n.networkError),i.map((function(e){return X(e)&&e.message||"Error message not found."})).join("\n")),d.extraInfo=f,d.__proto__=t.prototype,d}return n(t,e),t}(Error),Pt=Array.isArray;function Mt(e){return Array.isArray(e)&&e.length>0}var At=Object.prototype.hasOwnProperty;function Ft(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return jt(e)}function jt(e){var t=e[0]||{},r=e.length;if(r>1)for(var n=new Rt,i=1;i<r;++i)t=n.merge(t,e[i]);return t}var Lt=function(e,t,r){return this.merge(e[r],t[r])},Rt=function(){function e(e){void 0===e&&(e=Lt),this.reconciler=e,this.isObject=X,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var r=this,n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return X(t)&&X(e)?(Object.keys(t).forEach((function(i){if(At.call(e,i)){var a=e[i];if(t[i]!==a){var o=r.reconciler.apply(r,u([e,t,i],n,!1));o!==a&&((e=r.shallowCopyForMerge(e))[i]=o)}}else(e=r.shallowCopyForMerge(e))[i]=t[i]})),e):t},e.prototype.shallowCopyForMerge=function(e){return X(e)&&(this.pastCopies.has(e)||(e=Array.isArray(e)?e.slice(0):a({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e))),e},e}();function zt(e){return"incremental"in e}function Vt(e){return X(e)&&"payload"in e}function qt(e,t){var r=e,n=new Rt;return zt(t)&&Mt(t.incremental)&&t.incremental.forEach((function(e){for(var t=e.data,i=e.path,a=i.length-1;a>=0;--a){var o=i[a],s=isNaN(+o)?{}:[];s[o]=t,t=s}r=n.merge(r,t)})),r}var Ut=Object.prototype.hasOwnProperty;function Qt(e){var t={};return e.split("\n").forEach((function(e){var r=e.indexOf(":");if(r>-1){var n=e.slice(0,r).trim().toLowerCase(),i=e.slice(r+1).trim();t[n]=i}})),t}function Bt(e,t){e.status>=300&&Ct(e,function(){try{return JSON.parse(t)}catch(e){return t}}(),"Response not successful: Received status code ".concat(e.status));try{return JSON.parse(t)}catch(n){var r=n;throw r.name="ServerParseError",r.response=e,r.statusCode=e.status,r.bodyText=t,r}}function $t(e){return 9===e||32===e}function Wt(e){return e>=48&&e<=57}function Ht(e){return e>=97&&e<=122||e>=65&&e<=90}function Gt(e){return Ht(e)||95===e}function Zt(e){var t;let r=Number.MAX_SAFE_INTEGER,n=null,i=-1;for(let t=0;t<e.length;++t){var a;const o=e[t],s=Yt(o);s!==o.length&&(n=null!==(a=n)&&void 0!==a?a:t,i=t,0!==t&&s<r&&(r=s))}return e.map(((e,t)=>0===t?e:e.slice(r))).slice(null!==(t=n)&&void 0!==t?t:0,i+1)}function Yt(e){let t=0;for(;t<e.length&&$t(e.charCodeAt(t));)++t;return t}const Kt=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function Jt(e){return Xt[e.charCodeAt(0)]}const Xt=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],er={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>tr(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=nr("(",tr(e.variableDefinitions,", "),")"),r=tr([e.operation,tr([e.name,t]),tr(e.directives," ")]," ");return("query"===r?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n})=>e+": "+t+nr(" = ",r)+nr(" ",tr(n," "))},SelectionSet:{leave:({selections:e})=>rr(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:i}){const a=nr("",e,": ")+t;let o=a+nr("(",tr(r,", "),")");return o.length>80&&(o=a+nr("(\n",ir(tr(r,"\n")),"\n)")),tr([o,tr(n," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+nr(" ",tr(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>tr(["...",nr("on ",e),tr(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:i})=>`fragment ${e}${nr("(",tr(r,", "),")")} on ${t} ${nr("",tr(n," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?function(e,t){const r=e.replace(/"""/g,'\\"""'),n=r.split(/\r\n|[\n\r]/g),i=1===n.length,a=n.length>1&&n.slice(1).every((e=>0===e.length||$t(e.charCodeAt(0)))),o=r.endsWith('\\"""'),s=e.endsWith('"')&&!o,l=e.endsWith("\\"),u=s||l,c=!i||e.length>70||u||a||o;let f="";const d=i&&$t(e.charCodeAt(0));return(c&&!d||a)&&(f+="\n"),f+=r,(c||u)&&(f+="\n"),'"""'+f+'"""'}(e):`"${e.replace(Kt,Jt)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+tr(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+tr(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+nr("(",tr(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>nr("",e,"\n")+tr(["schema",tr(t," "),rr(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>nr("",e,"\n")+tr(["scalar",t,tr(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>nr("",e,"\n")+tr(["type",t,nr("implements ",tr(r," & ")),tr(n," "),rr(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:n,directives:i})=>nr("",e,"\n")+t+(ar(r)?nr("(\n",ir(tr(r,"\n")),"\n)"):nr("(",tr(r,", "),")"))+": "+n+nr(" ",tr(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:n,directives:i})=>nr("",e,"\n")+tr([t+": "+r,nr("= ",n),tr(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>nr("",e,"\n")+tr(["interface",t,nr("implements ",tr(r," & ")),tr(n," "),rr(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:n})=>nr("",e,"\n")+tr(["union",t,tr(r," "),nr("= ",tr(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:n})=>nr("",e,"\n")+tr(["enum",t,tr(r," "),rr(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>nr("",e,"\n")+tr([t,tr(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:n})=>nr("",e,"\n")+tr(["input",t,tr(r," "),rr(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,repeatable:n,locations:i})=>nr("",e,"\n")+"directive @"+t+(ar(r)?nr("(\n",ir(tr(r,"\n")),"\n)"):nr("(",tr(r,", "),")"))+(n?" repeatable":"")+" on "+tr(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>tr(["extend schema",tr(e," "),rr(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>tr(["extend scalar",e,tr(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>tr(["extend type",e,nr("implements ",tr(t," & ")),tr(r," "),rr(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>tr(["extend interface",e,nr("implements ",tr(t," & ")),tr(r," "),rr(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>tr(["extend union",e,tr(t," "),nr("= ",tr(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>tr(["extend enum",e,tr(t," "),rr(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>tr(["extend input",e,tr(t," "),rr(r)]," ")}};function tr(e,t=""){var r;return null!==(r=null==e?void 0:e.filter((e=>e)).join(t))&&void 0!==r?r:""}function rr(e){return nr("{\n",ir(tr(e,"\n")),"\n}")}function nr(e,t,r=""){return null!=t&&""!==t?e+t+r:""}function ir(e){return nr(" ",e.replace(/\n/g,"\n "))}function ar(e){var t;return null!==(t=null==e?void 0:e.some((e=>e.includes("\n"))))&&void 0!==t&&t}var or,sr=Object.assign((function(e){var t=or.get(e);return t||(t=function(e){return pt(e,er)}(e),or.set(e,t)),t}),{reset:function(){or=new he(ye.print||2e3)}});sr.reset(),!1!==globalThis.__DEV__&&ge("print",(function(){return or?or.size:0}));var lr={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},ur=function(e,t){return t(e)};function cr(e){return new J((function(t){t.error(e)}))}var fr={kind:ft.FIELD,name:{kind:ft.NAME,value:"__typename"}};function dr(e,t){return!e||e.selectionSet.selections.every((function(e){return e.kind===ft.FRAGMENT_SPREAD&&dr(t[e.name.value],t)}))}function hr(e){return dr(Qe(e)||function(e){O("Document"===e.kind,78),O(e.definitions.length<=1,79);var t=e.definitions[0];return O("FragmentDefinition"===t.kind,80),t}(e),te($e(e)))?null:e}function pr(e){var t=new Map;return function(r){void 0===r&&(r=e);var n=t.get(r);return n||t.set(r,n={variables:new Set,fragmentSpreads:new Set}),n}}function mr(e,t){Ue(t);for(var r=pr(""),n=pr(""),i=function(e){for(var t=0,i=void 0;t<e.length&&(i=e[t]);++t)if(!Pt(i)){if(i.kind===ft.OPERATION_DEFINITION)return r(i.name&&i.name.value);if(i.kind===ft.FRAGMENT_DEFINITION)return n(i.name.value)}return!1!==globalThis.__DEV__&&O.error(83),null},o=0,s=t.definitions.length-1;s>=0;--s)t.definitions[s].kind===ft.OPERATION_DEFINITION&&++o;var l,u,c,f=(l=e,u=new Map,c=new Map,l.forEach((function(e){e&&(e.name?u.set(e.name,e):e.test&&c.set(e.test,e))})),function(e){var t=u.get(e.name.value);return!t&&c.size&&c.forEach((function(r,n){n(e)&&(t=r)})),t}),d=function(e){return Mt(e)&&e.map(f).some((function(e){return e&&e.remove}))},h=new Map,p=!1,m={enter:function(e){if(d(e.directives))return p=!0,null}},y=pt(t,{Field:m,InlineFragment:m,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,r,n,a){var o=i(a);o&&o.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,r,n,a){if(d(e.directives))return p=!0,null;var o=i(a);o&&o.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,r,n){h.set(JSON.stringify(n),e)},leave:function(e,t,r,i){return e===h.get(JSON.stringify(i))?e:o>0&&e.selectionSet.selections.every((function(e){return e.kind===ft.FIELD&&"__typename"===e.name.value}))?(n(e.name.value).removed=!0,p=!0,null):void 0}},Directive:{leave:function(e){if(f(e))return p=!0,null}}});if(!p)return t;var v=function(e){return e.transitiveVars||(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach((function(t){v(n(t)).transitiveVars.forEach((function(t){e.transitiveVars.add(t)}))}))),e},g=new Set;y.definitions.forEach((function(e){e.kind===ft.OPERATION_DEFINITION?v(r(e.name&&e.name.value)).fragmentSpreads.forEach((function(e){g.add(e)})):e.kind!==ft.FRAGMENT_DEFINITION||0!==o||n(e.name.value).removed||g.add(e.name.value)})),g.forEach((function(e){v(n(e)).fragmentSpreads.forEach((function(e){g.add(e)}))}));var b={enter:function(e){if(t=e.name.value,!g.has(t)||n(t).removed)return null;var t}};return hr(pt(y,{FragmentSpread:b,FragmentDefinition:b,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=v(r(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return a(a({},e),{variableDefinitions:e.variableDefinitions.filter((function(e){return t.has(e.variable.name.value)}))})}}}}))}var yr=Object.assign((function(e){return pt(e,{SelectionSet:{enter:function(e,t,r){if(!r||r.kind!==ft.OPERATION_DEFINITION){var n=e.selections;if(n&&!n.some((function(e){return qe(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))){var i=r;if(!(qe(i)&&i.directives&&i.directives.some((function(e){return"export"===e.name.value}))))return a(a({},e),{selections:u(u([],n,!0),[fr],!1)})}}}}})}),{added:function(e){return e===fr}});function vr(e){return"query"===He(e).operation?e:pt(e,{OperationDefinition:{enter:function(e){return a(a({},e),{operation:"query"})}}})}function gr(e){return Ue(e),mr([{test:function(e){return"client"===e.name.value},remove:!0}],e)}var br=w((function(){return fetch})),wr=function(e){void 0===e&&(e={});var t=e.uri,r=void 0===t?"/graphql":t,n=e.fetch,i=e.print,u=void 0===i?ur:i,c=e.includeExtensions,f=e.preserveHeaderCase,d=e.useGETForQueries,h=e.includeUnusedVariables,p=void 0!==h&&h,m=o(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);!1!==globalThis.__DEV__&&function(e){if(!e&&"undefined"==typeof fetch)throw T(37)}(n||br);var y={http:{includeExtensions:c,preserveHeaderCase:f},options:m.fetchOptions,credentials:m.credentials,headers:m.headers};return new Je((function(e){var t=function(e,t){return e.getContext().uri||("function"==typeof t?t(e):t||"/graphql")}(e,r),i=e.getContext(),o={};if(i.clientAwareness){var c=i.clientAwareness,f=c.name,h=c.version;f&&(o["apollographql-client-name"]=f),h&&(o["apollographql-client-version"]=h)}var m=a(a({},o),i.headers),v={http:i.http,options:i.fetchOptions,credentials:i.credentials,headers:m};if(vt(["client"],e.query)){var g=gr(e.query);if(!g)return cr(new Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));e.query=g}var b,_,k,S,E,x=function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i={},o={};r.forEach((function(e){i=a(a(a({},i),e.options),{headers:a(a({},i.headers),e.headers)}),e.credentials&&(i.credentials=e.credentials),o=a(a({},o),e.http)})),i.headers&&(i.headers=function(e,t){if(!t){var r=Object.create(null);return Object.keys(Object(e)).forEach((function(t){r[t.toLowerCase()]=e[t]})),r}var n=Object.create(null);Object.keys(Object(e)).forEach((function(t){n[t.toLowerCase()]={originalName:t,value:e[t]}}));var i=Object.create(null);return Object.keys(n).forEach((function(e){i[n[e].originalName]=n[e].value})),i}(i.headers,o.preserveHeaderCase));var s=e.operationName,l=e.extensions,u=e.variables,c=e.query,f={operationName:s,variables:u};return o.includeExtensions&&(f.extensions=l),o.includeQuery&&(f.query=t(c,sr)),{options:i,body:f}}(e,u,lr,y,v),T=x.options,N=x.body;N.variables&&!p&&(N.variables=(b=N.variables,_=e.query,k=a({},b),S=new Set(Object.keys(b)),pt(_,{Variable:function(e,t,r){r&&"VariableDefinition"!==r.kind&&S.delete(e.name.value)}}),S.forEach((function(e){delete k[e]})),k)),T.signal||"undefined"==typeof AbortController||(E=new AbortController,T.signal=E.signal);var C,D="OperationDefinition"===(C=He(e.query)).kind&&"subscription"===C.operation,I=vt(["defer"],e.query);if(d&&!e.query.definitions.some((function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation}))&&(T.method="GET"),I||D){T.headers=T.headers||{};var P="multipart/mixed;";D&&I&&!1!==globalThis.__DEV__&&O.warn(38),D?P+="boundary=graphql;subscriptionSpec=1.0,application/json":I&&(P+="deferSpec=20220824,application/json"),T.headers.accept=P}if("GET"===T.method){var M=function(e,t){var r=[],n=function(e,t){r.push("".concat(e,"=").concat(encodeURIComponent(t)))};if("query"in t&&n("query",t.query),t.operationName&&n("operationName",t.operationName),t.variables){var i=void 0;try{i=bt(t.variables,"Variables map")}catch(e){return{parseError:e}}n("variables",i)}if(t.extensions){var a=void 0;try{a=bt(t.extensions,"Extensions map")}catch(e){return{parseError:e}}n("extensions",a)}var o="",s=e,l=e.indexOf("#");-1!==l&&(o=e.substr(l),s=e.substr(0,l));var u=-1===s.indexOf("?")?"?":"&";return{newURI:s+u+r.join("&")+o}}(t,N),A=M.newURI,F=M.parseError;if(F)return cr(F);t=A}else try{T.body=bt(N,"Payload")}catch(F){return cr(F)}return new J((function(r){var i=n||w((function(){return fetch}))||br,o=r.next.bind(r);return i(t,T).then((function(t){var r;e.setContext({response:t});var n,i=null===(r=t.headers)||void 0===r?void 0:r.get("content-type");return null!==i&&/^multipart\/mixed/i.test(i)?function(e,t){return s(this,void 0,void 0,(function(){var r,n,i,o,s,u,c,f,d,h,p,m,y,v,g,b,w,_,k,S,E,x,O,T;return l(this,(function(l){switch(l.label){case 0:if(void 0===TextDecoder)throw new Error("TextDecoder must be defined in the environment: please import a polyfill.");r=new TextDecoder("utf-8"),n=null===(T=e.headers)||void 0===T?void 0:T.get("content-type"),i="boundary=",o=(null==n?void 0:n.includes(i))?null==n?void 0:n.substring((null==n?void 0:n.indexOf(i))+9).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",s="\r\n--".concat(o),u="",c=Nt(e),f=!0,l.label=1;case 1:return f?[4,c.next()]:[3,3];case 2:for(d=l.sent(),h=d.value,p=d.done,m="string"==typeof h?h:r.decode(h),y=u.length-s.length+1,f=!p,v=(u+=m).indexOf(s,y);v>-1;){if(g=void 0,x=[u.slice(0,v),u.slice(v+s.length)],u=x[1],b=(g=x[0]).indexOf("\r\n\r\n"),w=Qt(g.slice(0,b)),(_=w["content-type"])&&-1===_.toLowerCase().indexOf("application/json"))throw new Error("Unsupported patch content type: application/json is required.");if(k=g.slice(b))if(S=Bt(e,k),Object.keys(S).length>1||"data"in S||"incremental"in S||"errors"in S||"payload"in S)if(Vt(S)){if(E={},"payload"in S){if(1===Object.keys(S).length&&null===S.payload)return[2];E=a({},S.payload)}"errors"in S&&(E=a(a({},E),{extensions:a(a({},"extensions"in E?E.extensions:null),(O={},O[Dt]=S.errors,O))})),t(E)}else t(S);else if(1===Object.keys(S).length&&"hasNext"in S&&!S.hasNext)return[2];v=u.indexOf(s)}return[3,1];case 3:return[2]}}))}))}(t,o):(n=e,function(e){return e.text().then((function(t){return Bt(e,t)})).then((function(t){return Array.isArray(t)||Ut.call(t,"data")||Ut.call(t,"errors")||Ct(e,t,"Server response was missing for query '".concat(Array.isArray(n)?n.map((function(e){return e.operationName})):n.operationName,"'.")),t}))})(t).then(o)})).then((function(){E=void 0,r.complete()})).catch((function(e){E=void 0,function(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}(e,r)})),function(){E&&E.abort()}}))}))},_r=function(e){function t(t){void 0===t&&(t={});var r=e.call(this,wr(t).request)||this;return r.options=t,r}return n(t,e),t}(Je);const{toString:kr,hasOwnProperty:Sr}=Object.prototype,Er=Function.prototype.toString,xr=new Map;function Or(e,t){try{return Nr(e,t)}finally{xr.clear()}}const Tr=Or;function Nr(e,t){if(e===t)return!0;const r=kr.call(e);if(r!==kr.call(t))return!1;switch(r){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":{if(Pr(e,t))return!0;const r=Cr(e),n=Cr(t),i=r.length;if(i!==n.length)return!1;for(let e=0;e<i;++e)if(!Sr.call(t,r[e]))return!1;for(let n=0;n<i;++n){const i=r[n];if(!Nr(e[i],t[i]))return!1}return!0}case"[object Error]":return e.name===t.name&&e.message===t.message;case"[object Number]":if(e!=e)return t!=t;case"[object Boolean]":case"[object Date]":return+e==+t;case"[object RegExp]":case"[object String]":return e==`${t}`;case"[object Map]":case"[object Set]":{if(e.size!==t.size)return!1;if(Pr(e,t))return!0;const n=e.entries(),i="[object Map]"===r;for(;;){const e=n.next();if(e.done)break;const[r,a]=e.value;if(!t.has(r))return!1;if(i&&!Nr(a,t.get(r)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":e=new Uint8Array(e),t=new Uint8Array(t);case"[object DataView]":{let r=e.byteLength;if(r===t.byteLength)for(;r--&&e[r]===t[r];);return-1===r}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const r=Er.call(e);return r===Er.call(t)&&!function(e,t){const r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}(r,Ir)}}return!1}function Cr(e){return Object.keys(e).filter(Dr,e)}function Dr(e){return void 0!==this[e]}const Ir="{ [native code] }";function Pr(e,t){let r=xr.get(e);if(r){if(r.has(t))return!0}else xr.set(e,r=new Set);return r.add(t),!1}const Mr=()=>Object.create(null),{forEach:Ar,slice:Fr}=Array.prototype,{hasOwnProperty:jr}=Object.prototype;class Lr{constructor(e=!0,t=Mr){this.weakness=e,this.makeData=t}lookup(){return this.lookupArray(arguments)}lookupArray(e){let t=this;return Ar.call(e,(e=>t=t.getChildTrie(e))),jr.call(t,"data")?t.data:t.data=this.makeData(Fr.call(e))}peek(){return this.peekArray(arguments)}peekArray(e){let t=this;for(let r=0,n=e.length;t&&r<n;++r){const n=t.mapFor(e[r],!1);t=n&&n.get(e[r])}return t&&t.data}remove(){return this.removeArray(arguments)}removeArray(e){let t;if(e.length){const r=e[0],n=this.mapFor(r,!1),i=n&&n.get(r);i&&(t=i.removeArray(Fr.call(e,1)),i.data||i.weak||i.strong&&i.strong.size||n.delete(r))}else t=this.data,delete this.data;return t}getChildTrie(e){const t=this.mapFor(e,!0);let r=t.get(e);return r||t.set(e,r=new Lr(this.weakness,this.makeData)),r}mapFor(e,t){return this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(e)?this.weak||(t?this.weak=new WeakMap:void 0):this.strong||(t?this.strong=new Map:void 0)}}const Rr=()=>Object.create(null),{forEach:zr,slice:Vr}=Array.prototype,{hasOwnProperty:qr}=Object.prototype;class Ur{constructor(e=!0,t=Rr){this.weakness=e,this.makeData=t}lookup(...e){return this.lookupArray(e)}lookupArray(e){let t=this;return zr.call(e,(e=>t=t.getChildTrie(e))),qr.call(t,"data")?t.data:t.data=this.makeData(Vr.call(e))}peek(...e){return this.peekArray(e)}peekArray(e){let t=this;for(let r=0,n=e.length;t&&r<n;++r){const n=this.weakness&&Qr(e[r])?t.weak:t.strong;t=n&&n.get(e[r])}return t&&t.data}getChildTrie(e){const t=this.weakness&&Qr(e)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map);let r=t.get(e);return r||t.set(e,r=new Ur(this.weakness,this.makeData)),r}}function Qr(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}let Br=null;const $r={};let Wr=1;function Hr(e){try{return e()}catch(e){}}const Gr="@wry/context:Slot",Zr=Hr((()=>globalThis))||Hr((()=>global))||Object.create(null),Yr=Zr[Gr]||Array[Gr]||function(e){try{Object.defineProperty(Zr,Gr,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",Wr++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=Br;e;e=e.parent)if(this.id in e.slots){const t=e.slots[this.id];if(t===$r)break;return e!==Br&&(Br.slots[this.id]=t),!0}return Br&&(Br.slots[this.id]=$r),!1}getValue(){if(this.hasValue())return Br.slots[this.id]}withValue(e,t,r,n){const i={__proto__:null,[this.id]:e},a=Br;Br={parent:a,slots:i};try{return t.apply(n,r)}finally{Br=a}}static bind(e){const t=Br;return function(){const r=Br;try{return Br=t,e.apply(this,arguments)}finally{Br=r}}}static noContext(e,t,r){if(!Br)return e.apply(r,t);{const n=Br;try{return Br=null,e.apply(r,t)}finally{Br=n}}}}),{bind:Kr,noContext:Jr}=Yr,Xr=new Yr,{hasOwnProperty:en}=Object.prototype,tn=Array.from||function(e){const t=[];return e.forEach((e=>t.push(e))),t};function rn(e){const{unsubscribe:t}=e;"function"==typeof t&&(e.unsubscribe=void 0,t())}const nn=[],an=100;function on(e,t){if(!e)throw new Error(t||"assertion failure")}function sn(e,t){const r=e.length;return r>0&&r===t.length&&e[r-1]===t[r-1]}function ln(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}function un(e){return e.slice(0)}class cn{constructor(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++cn.count}peek(){if(1===this.value.length&&!hn(this))return fn(this),this.value[0]}recompute(e){return on(!this.recomputing,"already recomputing"),fn(this),hn(this)?function(e,t){return wn(e),Xr.withValue(e,dn,[e,t]),function(e,t){if("function"==typeof e.subscribe)try{rn(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(e,t)&&function(e){e.dirty=!1,hn(e)||mn(e)}(e),ln(e.value)}(this,e):ln(this.value)}setDirty(){this.dirty||(this.dirty=!0,pn(this),rn(this))}dispose(){this.setDirty(),wn(this),yn(this,((e,t)=>{e.setDirty(),_n(e,this)}))}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=nn.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(tn(this.deps).forEach((e=>e.delete(this))),this.deps.clear(),nn.push(this.deps),this.deps=null)}}function fn(e){const t=Xr.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),hn(e)?vn(t,e):gn(t,e),t}function dn(e,t){e.recomputing=!0;const{normalizeResult:r}=e;let n;r&&1===e.value.length&&(n=un(e.value)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),r&&n&&!sn(n,e.value))try{e.value[0]=r(e.value[0],n[0])}catch(e){}}catch(t){e.value[1]=t}e.recomputing=!1}function hn(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function pn(e){yn(e,vn)}function mn(e){yn(e,gn)}function yn(e,t){const r=e.parents.size;if(r){const n=tn(e.parents);for(let i=0;i<r;++i)t(n[i],e)}}function vn(e,t){on(e.childValues.has(t)),on(hn(t));const r=!hn(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=nn.pop()||new Set;e.dirtyChildren.add(t),r&&pn(e)}function gn(e,t){on(e.childValues.has(t)),on(!hn(t));const r=e.childValues.get(t);0===r.length?e.childValues.set(t,un(t.value)):sn(r,t.value)||e.setDirty(),bn(e,t),hn(e)||mn(e)}function bn(e,t){const r=e.dirtyChildren;r&&(r.delete(t),0===r.size&&(nn.length<an&&nn.push(r),e.dirtyChildren=null))}function wn(e){e.childValues.size>0&&e.childValues.forEach(((t,r)=>{_n(e,r)})),e.forgetDeps(),on(null===e.dirtyChildren)}function _n(e,t){t.parents.delete(e),e.childValues.delete(t),bn(e,t)}cn.count=0;const kn={setDirty:!0,dispose:!0,forget:!0};function Sn(e){const t=new Map,r=e&&e.subscribe;function n(e){const n=Xr.getValue();if(n){let i=t.get(e);i||t.set(e,i=new Set),n.dependOn(i),"function"==typeof r&&(rn(i),i.unsubscribe=r(e))}}return n.dirty=function(e,r){const n=t.get(e);if(n){const i=r&&en.call(kn,r)?r:"setDirty";tn(n).forEach((e=>e[i]())),t.delete(e),rn(n)}},n}let En;function xn(...e){return(En||(En=new Ur("function"==typeof WeakMap))).lookupArray(e)}const On=new Set;function Tn(e,{max:t=Math.pow(2,16),keyArgs:r,makeCacheKey:n=xn,normalizeResult:i,subscribe:a,cache:o=ce}=Object.create(null)){const s="function"==typeof o?new o(t,(e=>e.dispose())):o,l=function(){const t=n.apply(null,r?r.apply(null,arguments):arguments);if(void 0===t)return e.apply(null,arguments);let o=s.get(t);o||(s.set(t,o=new cn(e)),o.normalizeResult=i,o.subscribe=a,o.forget=()=>s.delete(t));const l=o.recompute(Array.prototype.slice.call(arguments));return s.set(t,o),On.add(s),Xr.hasValue()||(On.forEach((e=>e.clean())),On.clear()),l};function u(e){const t=e&&s.get(e);t&&t.setDirty()}function c(e){const t=e&&s.get(e);if(t)return t.peek()}function f(e){return!!e&&s.delete(e)}return Object.defineProperty(l,"size",{get:()=>s.size,configurable:!1,enumerable:!1}),Object.freeze(l.options={max:t,keyArgs:r,makeCacheKey:n,normalizeResult:i,subscribe:a,cache:s}),l.dirtyKey=u,l.dirty=function(){u(n.apply(null,arguments))},l.peekKey=c,l.peek=function(){return c(n.apply(null,arguments))},l.forgetKey=f,l.forget=function(){return f(n.apply(null,arguments))},l.makeCacheKey=n,l.getKey=r?function(){return n.apply(null,r.apply(null,arguments))}:n,Object.freeze(l)}function Nn(e){return e}var Cn=function(){function e(e,t){void 0===t&&(t=Object.create(null)),this.resultCache=_t?new WeakSet:new Set,this.transform=e,t.getCacheKey&&(this.getCacheKey=t.getCacheKey),this.cached=!1!==t.cache,this.resetCache()}return e.prototype.getCacheKey=function(e){return[e]},e.identity=function(){return new e(Nn,{cache:!1})},e.split=function(t,r,n){return void 0===n&&(n=e.identity()),Object.assign(new e((function(e){return(t(e)?r:n).transformDocument(e)}),{cache:!1}),{left:r,right:n})},e.prototype.resetCache=function(){var t=this;if(this.cached){var r=new Lr(wt);this.performWork=Tn(e.prototype.performWork.bind(this),{makeCacheKey:function(e){var n=t.getCacheKey(e);if(n)return O(Array.isArray(n),66),r.lookupArray(n)},max:ye["documentTransform.cache"],cache:le})}},e.prototype.performWork=function(e){return Ue(e),this.transform(e)},e.prototype.transformDocument=function(e){if(this.resultCache.has(e))return e;var t=this.performWork(e);return this.resultCache.add(t),t},e.prototype.concat=function(t){var r=this;return Object.assign(new e((function(e){return t.transformDocument(r.transformDocument(e))}),{cache:!1}),{left:this,right:t})},e}();function Dn(e,t,r){return new J((function(n){var i={then:function(e){return new Promise((function(t){return t(e())}))}};function a(e,t){return function(r){if(e){var a=function(){return n.closed?0:e(r)};i=i.then(a,a).then((function(e){return n.next(e)}),(function(e){return n.error(e)}))}else n[t](r)}}var o={next:a(t,"next"),error:a(r,"error"),complete:function(){i.then((function(){return n.complete()}))}},s=e.subscribe(o);return function(){return s.unsubscribe()}}))}function In(e){return Mt(Pn(e))}function Pn(e){var t=Mt(e.errors)?e.errors.slice(0):[];return zt(e)&&Mt(e.incremental)&&e.incremental.forEach((function(e){e.errors&&t.push.apply(t,e.errors)})),t}function Mn(e,t,r){var n=[];e.forEach((function(e){return e[t]&&n.push(e)})),n.forEach((function(e){return e[t](r)}))}function An(e){function t(t){Object.defineProperty(e,t,{value:J})}return kt&&Symbol.species&&t(Symbol.species),t("@@species"),e}function Fn(e){return e&&"function"==typeof e.then}var jn,Ln=function(e){function t(t){var r=e.call(this,(function(e){return r.addObserver(e),function(){return r.removeObserver(e)}}))||this;return r.observers=new Set,r.promise=new Promise((function(e,t){r.resolve=e,r.reject=t})),r.handlers={next:function(e){null!==r.sub&&(r.latest=["next",e],r.notify("next",e),Mn(r.observers,"next",e))},error:function(e){var t=r.sub;null!==t&&(t&&setTimeout((function(){return t.unsubscribe()})),r.sub=null,r.latest=["error",e],r.reject(e),r.notify("error",e),Mn(r.observers,"error",e))},complete:function(){var e=r,t=e.sub,n=e.sources;if(null!==t){var i=(void 0===n?[]:n).shift();i?Fn(i)?i.then((function(e){return r.sub=e.subscribe(r.handlers)}),r.handlers.error):r.sub=i.subscribe(r.handlers):(t&&setTimeout((function(){return t.unsubscribe()})),r.sub=null,r.latest&&"next"===r.latest[0]?r.resolve(r.latest[1]):r.resolve(),r.notify("complete"),Mn(r.observers,"complete"))}}},r.nextResultListeners=new Set,r.cancel=function(e){r.reject(e),r.sources=[],r.handlers.complete()},r.promise.catch((function(e){})),"function"==typeof t&&(t=[new J(t)]),Fn(t)?t.then((function(e){return r.start(e)}),r.handlers.error):r.start(t),r}return n(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],r=e[t];r&&r.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e))},t.prototype.removeObserver=function(e){this.observers.delete(e)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(e,t){var r=this.nextResultListeners;r.size&&(this.nextResultListeners=new Set,r.forEach((function(r){return r(e,t)})))},t.prototype.beforeNext=function(e){var t=!1;this.nextResultListeners.add((function(r,n){t||(t=!0,e(r,n))}))},t}(J);function Rn(e){return!!e&&e<7}function zn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Object.create(null);return e.forEach((function(e){e&&Object.keys(e).forEach((function(t){var n=e[t];void 0!==n&&(r[t]=n)}))})),r}An(Ln),function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"}(jn||(jn={}));var Vn=Object.prototype.toString;function qn(e){return Un(e)}function Un(e,t){switch(Vn.call(e)){case"[object Array]":if((t=t||new Map).has(e))return t.get(e);var r=e.slice(0);return t.set(e,r),r.forEach((function(e,n){r[n]=Un(e,t)})),r;case"[object Object]":if((t=t||new Map).has(e))return t.get(e);var n=Object.create(Object.getPrototypeOf(e));return t.set(e,n),Object.keys(e).forEach((function(r){n[r]=Un(e[r],t)})),n;default:return e}}function Qn(e,t,r,n){var i=t.data,a=o(t,["data"]),s=r.data,l=o(r,["data"]);return Tr(a,l)&&Bn(He(e).selectionSet,i,s,{fragmentMap:te($e(e)),variables:n})}function Bn(e,t,r,n){if(t===r)return!0;var i=new Set;return e.selections.every((function(e){if(i.has(e))return!0;if(i.add(e),!yt(e,n.variables))return!0;if($n(e))return!0;if(qe(e)){var a=ze(e),o=t&&t[a],s=r&&r[a],l=e.selectionSet;if(!l)return Tr(o,s);var u=Array.isArray(o),c=Array.isArray(s);if(u!==c)return!1;if(u&&c){var f=o.length;if(s.length!==f)return!1;for(var d=0;d<f;++d)if(!Bn(l,o[d],s[d],n))return!1;return!0}return Bn(l,o,s,n)}var h=re(e,n.fragmentMap);return h?!!$n(h)||Bn(h.selectionSet,t,r,n):void 0}))}function $n(e){return!!e.directives&&e.directives.some(Wn)}function Wn(e){return"nonreactive"===e.name.value}var Hn=Object.assign,Gn=Object.hasOwnProperty,Zn=function(e){function t(t){var r=t.queryManager,n=t.queryInfo,i=t.options,o=e.call(this,(function(e){try{var t=e._subscription._observer;t&&!t.error&&(t.error=Kn)}catch(e){}var r=!o.observers.size;o.observers.add(e);var n=o.last;return n&&n.error?e.error&&e.error(n.error):n&&n.result&&e.next&&e.next(n.result),r&&o.reobserve().catch((function(){})),function(){o.observers.delete(e)&&!o.observers.size&&o.tearDownQuery()}}))||this;o.observers=new Set,o.subscriptions=new Set,o.queryInfo=n,o.queryManager=r,o.waitForOwnResult=Xn(i.fetchPolicy),o.isTornDown=!1;var s=r.defaultOptions.watchQuery,l=(void 0===s?{}:s).fetchPolicy,u=void 0===l?"cache-first":l,c=i.fetchPolicy,f=void 0===c?u:c,d=i.initialFetchPolicy,h=void 0===d?"standby"===f?u:f:d;o.options=a(a({},i),{initialFetchPolicy:h,fetchPolicy:f}),o.queryId=n.queryId||r.generateQueryId();var p=Qe(o.query);return o.queryName=p&&p.name&&p.name.value,o}return n(t,e),Object.defineProperty(t.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return new Promise((function(t,r){var n={next:function(r){t(r),e.observers.delete(n),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout((function(){i.unsubscribe()}),0)},error:r},i=e.subscribe(n)}))},t.prototype.resetDiff=function(){this.queryInfo.resetDiff()},t.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.getLastResult(!0),r=this.queryInfo.networkStatus||t&&t.networkStatus||jn.ready,n=a(a({},t),{loading:Rn(r),networkStatus:r}),i=this.options.fetchPolicy,o=void 0===i?"cache-first":i;if(Xn(o)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers);else if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var s=this.queryInfo.getDiff();(s.complete||this.options.returnPartialData)&&(n.data=s.result),Or(n.data,{})&&(n.data=void 0),s.complete?(delete n.partial,!s.complete||n.networkStatus!==jn.loading||"cache-first"!==o&&"cache-only"!==o||(n.networkStatus=jn.ready,n.loading=!1)):n.partial=!0,!1===globalThis.__DEV__||s.complete||this.options.partialRefetch||n.loading||n.data||n.error||Jn(s.missing)}return e&&this.updateLastResult(n),n},t.prototype.isDifferentFromLastResult=function(e,t){return!this.last||(this.queryManager.getDocumentInfo(this.query).hasNonreactiveDirective?!Qn(this.query,this.last.result,e,this.variables):!Or(this.last.result,e))||t&&!Or(this.last.variables,t)},t.prototype.getLast=function(e,t){var r=this.last;if(r&&r[e]&&(!t||Or(r.variables,this.variables)))return r[e]},t.prototype.getLastResult=function(e){return this.getLast("result",e)},t.prototype.getLastError=function(e){return this.getLast("error",e)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t,r={pollInterval:0},n=this.options.fetchPolicy;if(r.fetchPolicy="cache-and-network"===n?n:"no-cache"===n?"no-cache":"network-only",!1!==globalThis.__DEV__&&e&&Gn.call(e,"variables")){var i=We(this.query),o=i.variableDefinitions;o&&o.some((function(e){return"variables"===e.variable.name.value}))||!1!==globalThis.__DEV__&&O.warn(20,e,(null===(t=i.name)||void 0===t?void 0:t.value)||i)}return e&&!Or(this.options.variables,e)&&(r.variables=this.options.variables=a(a({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(r,jn.refetch)},t.prototype.fetchMore=function(e){var t=this,r=a(a({},e.query?e:a(a(a(a({},this.options),{query:this.options.query}),e),{variables:a(a({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"});r.query=this.transformDocument(r.query);var n=this.queryManager.generateQueryId();this.lastQuery=e.query?this.transformDocument(this.options.query):r.query;var i=this.queryInfo,o=i.networkStatus;i.networkStatus=jn.fetchMore,r.notifyOnNetworkStatusChange&&this.observe();var s=new Set;return this.queryManager.fetchQuery(n,r,jn.fetchMore).then((function(a){return t.queryManager.removeQuery(n),i.networkStatus===jn.fetchMore&&(i.networkStatus=o),t.queryManager.cache.batch({update:function(n){var i=e.updateQuery;i?n.updateQuery({query:t.query,variables:t.variables,returnPartialData:!0,optimistic:!1},(function(e){return i(e,{fetchMoreResult:a.data,variables:r.variables})})):n.writeQuery({query:r.query,variables:r.variables,data:a.data})},onWatchUpdated:function(e){s.add(e.query)}}),a})).finally((function(){s.has(t.query)||Yn(t)}))},t.prototype.subscribeToMore=function(e){var t=this,r=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(r){var n=e.updateQuery;n&&t.updateQuery((function(e,t){var i=t.variables;return n(e,{subscriptionData:r,variables:i})}))},error:function(t){e.onError?e.onError(t):!1!==globalThis.__DEV__&&O.error(21,t)}});return this.subscriptions.add(r),function(){t.subscriptions.delete(r)&&r.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.silentSetOptions=function(e){var t=zn(this.options,e||{});Hn(this.options,t)},t.prototype.setVariables=function(e){return Or(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},jn.setVariables):Promise.resolve())},t.prototype.updateQuery=function(e){var t=this.queryManager,r=e(t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});r&&(t.cache.writeQuery({query:this.options.query,data:r,variables:this.variables}),t.broadcastQueries())},t.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(e,t){if(t.nextFetchPolicy){var r=t.fetchPolicy,n=void 0===r?"cache-first":r,i=t.initialFetchPolicy,a=void 0===i?n:i;"standby"===n||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy(n,{reason:e,options:t,observable:this,initialFetchPolicy:a}):t.fetchPolicy="variables-changed"===e?a:t.nextFetchPolicy)}return t.fetchPolicy},t.prototype.fetch=function(e,t,r){return this.queryManager.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(this.queryId,e,t,r)},t.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,r=this.options.pollInterval;if(r){if(!t||t.interval!==r){O(r,22),(t||(this.pollingInfo={})).interval=r;var n=function(){var t,r;e.pollingInfo&&(Rn(e.queryInfo.networkStatus)||(null===(r=(t=e.options).skipPollAttempt)||void 0===r?void 0:r.call(t))?i():e.reobserve({fetchPolicy:"no-cache"===e.options.initialFetchPolicy?"no-cache":"network-only"},jn.poll).then(i,i))},i=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(n,t.interval))};i()}}else t&&(clearTimeout(t.timeout),delete this.pollingInfo)}},t.prototype.updateLastResult=function(e,t){void 0===t&&(t=this.variables);var r=this.getLastError();return r&&this.last&&!Or(t,this.last.variables)&&(r=void 0),this.last=a({result:this.queryManager.assumeImmutableResults?e:qn(e),variables:t},r?{error:r}:null)},t.prototype.reobserveAsConcast=function(e,t){var r=this;this.isTornDown=!1;var n=t===jn.refetch||t===jn.fetchMore||t===jn.poll,i=this.options.variables,o=this.options.fetchPolicy,s=zn(this.options,e||{}),l=n?s:Hn(this.options,s),u=this.transformDocument(l.query);this.lastQuery=u,n||(this.updatePolling(),e&&e.variables&&!Or(e.variables,i)&&"standby"!==l.fetchPolicy&&l.fetchPolicy===o&&(this.applyNextFetchPolicy("variables-changed",l),void 0===t&&(t=jn.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=Xn(l.fetchPolicy));var c=function(){r.concast===h&&(r.waitForOwnResult=!1)},f=l.variables&&a({},l.variables),d=this.fetch(l,t,u),h=d.concast,p=d.fromLink,m={next:function(e){Or(r.variables,f)&&(c(),r.reportResult(e,f))},error:function(e){Or(r.variables,f)&&(c(),r.reportError(e,f))}};return n||!p&&this.concast||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=h,this.observer=m),h.addObserver(m),h},t.prototype.reobserve=function(e,t){return this.reobserveAsConcast(e,t).promise},t.prototype.resubscribeAfterError=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=this.last;this.resetLastResults();var n=this.subscribe.apply(this,e);return this.last=r,n},t.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},t.prototype.reportResult=function(e,t){var r=this.getLastError(),n=this.isDifferentFromLastResult(e,t);(r||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,t),(r||n)&&Mn(this.observers,"next",e)},t.prototype.reportError=function(e,t){var r=a(a({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:jn.error,loading:!1});this.updateLastResult(r,t),Mn(this.observers,"error",this.last.error=e)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t.prototype.transformDocument=function(e){return this.queryManager.transform(e)},t}(J);function Yn(e){var t=e.options,r=t.fetchPolicy,n=t.nextFetchPolicy;return"cache-and-network"===r||"network-only"===r?e.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(e,t){return this.nextFetchPolicy=n,"function"==typeof this.nextFetchPolicy?this.nextFetchPolicy(e,t):r}}):e.reobserve()}function Kn(e){!1!==globalThis.__DEV__&&O.error(23,e.message,e.stack)}function Jn(e){!1!==globalThis.__DEV__&&e&&!1!==globalThis.__DEV__&&O.debug(24,e)}function Xn(e){return"network-only"===e||"no-cache"===e||"standby"===e}function ei(e){return e.kind===ft.FIELD||e.kind===ft.FRAGMENT_SPREAD||e.kind===ft.INLINE_FRAGMENT}An(Zn);var ti=new Yr,ri=new WeakMap;function ni(e){var t=ri.get(e);return t||ri.set(e,t={vars:new Set,dep:Sn()}),t}function ii(e){ni(e).vars.forEach((function(t){return t.forgetCache(e)}))}function ai(e){var t=new Set,r=new Set,n=function(a){if(arguments.length>0){if(e!==a){e=a,t.forEach((function(e){ni(e).dep.dirty(n),function(e){e.broadcastWatches&&e.broadcastWatches()}(e)}));var o=Array.from(r);r.clear(),o.forEach((function(t){return t(e)}))}}else{var s=ti.getValue();s&&(i(s),ni(s).dep(n))}return e};n.onNextChange=function(e){return r.add(e),function(){r.delete(e)}};var i=n.attachCache=function(e){return t.add(e),ni(e).vars.add(n),n};return n.forgetCache=function(e){return t.delete(e)},n}var oi=function(){function e(e){var t=e.cache,r=e.client,n=e.resolvers,i=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,r&&(this.client=r),n&&this.addResolvers(n),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach((function(e){t.resolvers=Ft(t.resolvers,e)})):this.resolvers=Ft(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){return s(this,arguments,void 0,(function(e){var t=e.document,r=e.remoteResult,n=e.context,i=e.variables,o=e.onlyRunForcedResolvers,s=void 0!==o&&o;return l(this,(function(e){return t?[2,this.resolveDocument(t,r.data,n,i,this.fragmentMatcher,s).then((function(e){return a(a({},r),{data:e.result})}))]:[2,r]}))}))},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return vt(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return gr(e)},e.prototype.prepareContext=function(e){var t=this.cache;return a(a({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e){return s(this,arguments,void 0,(function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),l(this,(function(n){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(r),t).then((function(e){return a(a({},t),e.exportedVariables)}))]:[2,a({},t)]}))}))},e.prototype.shouldForceResolvers=function(e){var t=!1;return pt(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some((function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value}))))return ht}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:vr(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t){return s(this,arguments,void 0,(function(e,t,r,n,i,o){var s,u,c,f,d,h,p,m,y,v;return void 0===r&&(r={}),void 0===n&&(n={}),void 0===i&&(i=function(){return!0}),void 0===o&&(o=!1),l(this,(function(l){return s=He(e),u=$e(e),c=te(u),f=this.collectSelectionsToResolve(s,c),d=s.operation,h=d?d.charAt(0).toUpperCase()+d.slice(1):"Query",m=(p=this).cache,y=p.client,v={fragmentMap:c,context:a(a({},r),{cache:m,client:y}),variables:n,fragmentMatcher:i,defaultOperationType:h,exportedVariables:{},selectionsToResolve:f,onlyRunForcedResolvers:o},[2,this.resolveSelectionSet(s.selectionSet,!1,t,v).then((function(e){return{result:e,exportedVariables:v.exportedVariables}}))]}))}))},e.prototype.resolveSelectionSet=function(e,t,r,n){return s(this,void 0,void 0,(function(){var i,a,o,u,c,f=this;return l(this,(function(d){return i=n.fragmentMap,a=n.context,o=n.variables,u=[r],c=function(e){return s(f,void 0,void 0,(function(){var s,c;return l(this,(function(l){return(t||n.selectionsToResolve.has(e))&&yt(e,o)?qe(e)?[2,this.resolveField(e,t,r,n).then((function(t){var r;void 0!==t&&u.push(((r={})[ze(e)]=t,r))}))]:(function(e){return"InlineFragment"===e.kind}(e)?s=e:(s=i[e.name.value],O(s,18,e.name.value)),s&&s.typeCondition&&(c=s.typeCondition.name.value,n.fragmentMatcher(r,c,a))?[2,this.resolveSelectionSet(s.selectionSet,t,r,n).then((function(e){u.push(e)}))]:[2]):[2]}))}))},[2,Promise.all(e.selections.map(c)).then((function(){return jt(u)}))]}))}))},e.prototype.resolveField=function(e,t,r,n){return s(this,void 0,void 0,(function(){var i,a,o,s,u,c,f,d,h,p=this;return l(this,(function(l){return r?(i=n.variables,a=e.name.value,o=ze(e),s=a!==o,u=r[o]||r[a],c=Promise.resolve(u),n.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(f=r.__typename||n.defaultOperationType,(d=this.resolvers&&this.resolvers[f])&&(h=d[s?a:o])&&(c=Promise.resolve(ti.withValue(this.cache,h,[r,Re(e,i),n.context,{field:e,fragmentMap:n.fragmentMap}])))),[2,c.then((function(r){var i,a;if(void 0===r&&(r=u),e.directives&&e.directives.forEach((function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach((function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(n.exportedVariables[e.value.value]=r)}))})),!e.selectionSet)return r;if(null==r)return r;var o=null!==(a=null===(i=e.directives)||void 0===i?void 0:i.some((function(e){return"client"===e.name.value})))&&void 0!==a&&a;return Array.isArray(r)?p.resolveSubSelectedArray(e,t||o,r,n):e.selectionSet?p.resolveSelectionSet(e.selectionSet,t||o,r,n):void 0}))]):[2,null]}))}))},e.prototype.resolveSubSelectedArray=function(e,t,r,n){var i=this;return Promise.all(r.map((function(r){return null===r?null:Array.isArray(r)?i.resolveSubSelectedArray(e,t,r,n):e.selectionSet?i.resolveSelectionSet(e.selectionSet,t,r,n):void 0})))},e.prototype.collectSelectionsToResolve=function(e,t){var r=function(e){return!Array.isArray(e)},n=this.selectionsToResolveCache;return function e(i){if(!n.has(i)){var a=new Set;n.set(i,a),pt(i,{Directive:function(e,t,n,i,o){"client"===e.name.value&&o.forEach((function(e){r(e)&&ei(e)&&a.add(e)}))},FragmentSpread:function(n,i,o,s,l){var u=t[n.name.value];O(u,19,n.name.value);var c=e(u);c.size>0&&(l.forEach((function(e){r(e)&&ei(e)&&a.add(e)})),a.add(n),c.forEach((function(e){a.add(e)})))}})}return n.get(i)}(e)},e}(),si=new(wt?WeakMap:Map);function li(e,t){var r=e[t];"function"==typeof r&&(e[t]=function(){return si.set(e,(si.get(e)+1)%1e15),r.apply(this,arguments)})}function ui(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var ci=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var r=this.cache=e.cache;si.has(r)||(si.set(r,0),li(r,"evict"),li(r,"modify"),li(r,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||jn.loading;return this.variables&&this.networkStatus!==jn.loading&&!Or(this.variables,e.variables)&&(t=jn.setVariables),Or(e.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.reset=function(){ui(this),this.dirty=!1},e.prototype.resetDiff=function(){this.lastDiff=void 0},e.prototype.getDiff=function(){var e=this.getDiffOptions();if(this.lastDiff&&Or(e,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var t=this.observableQuery;if(t&&"no-cache"===t.options.fetchPolicy)return{complete:!1};var r=this.cache.diff(e);return this.updateLastDiff(r,e),r},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null===(t=this.observableQuery)||void 0===t?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t,r=this,n=this.lastDiff&&this.lastDiff.diff;(!e||e.complete||(null===(t=this.observableQuery)||void 0===t?void 0:t.options.returnPartialData)||n&&n.complete)&&(this.updateLastDiff(e),this.dirty||Or(n&&n.result,e&&e.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout((function(){return r.notify()}),0))))},e.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():Yn(e)})):delete this.oqListener)},e.prototype.notify=function(){var e=this;ui(this),this.shouldNotify()&&this.listeners.forEach((function(t){return t(e)})),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(Rn(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel;var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var r=this.observableQuery;if(!r||"no-cache"!==r.options.fetchPolicy){var n=a(a({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&Or(n,this.lastWatch)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=n))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var r=this.lastWrite;return!(r&&r.dmCount===si.get(this.cache)&&Or(t,r.variables)&&Or(e.data,r.result.data))},e.prototype.markResult=function(e,t,r,n){var i=this,a=new Rt,o=Mt(e.errors)?e.errors.slice(0):[];if(this.reset(),"incremental"in e&&Mt(e.incremental)){var s=qt(this.getDiff().result,e);e.data=s}else if("hasNext"in e&&e.hasNext){var l=this.getDiff();e.data=a.merge(l.result,e.data)}this.graphQLErrors=o,"no-cache"===r.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(r.variables)):0!==n&&(fi(e,r.errorPolicy)?this.cache.performTransaction((function(a){if(i.shouldWrite(e,r.variables))a.writeQuery({query:t,data:e.data,variables:r.variables,overwrite:1===n}),i.lastWrite={result:e,variables:r.variables,dmCount:si.get(i.cache)};else if(i.lastDiff&&i.lastDiff.diff.complete)return void(e.data=i.lastDiff.diff.result);var o=i.getDiffOptions(r.variables),s=a.diff(o);!i.stopped&&Or(i.variables,r.variables)&&i.updateWatch(r.variables),i.updateLastDiff(s,o),s.complete&&(e.data=s.result)})):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=jn.ready},e.prototype.markError=function(e){return this.networkStatus=jn.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function fi(e,t){void 0===t&&(t="none");var r="ignore"===t||"all"===t,n=!In(e);return!n&&r&&e.data&&(n=!0),n}var di=Object.prototype.hasOwnProperty,hi=Object.create(null),pi=function(){function e(e){var t=e.cache,r=e.link,n=e.defaultOptions,i=e.documentTransform,a=e.queryDeduplication,o=void 0!==a&&a,s=e.onBroadcast,l=e.ssrMode,u=void 0!==l&&l,c=e.clientAwareness,f=void 0===c?{}:c,d=e.localState,h=e.assumeImmutableResults,p=void 0===h?!!t.assumeImmutableResults:h,m=e.defaultContext,y=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new he(ye["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Lr(!1);var v=new Cn((function(e){return y.cache.transformDocument(e)}),{cache:!1});this.cache=t,this.link=r,this.defaultOptions=n||Object.create(null),this.queryDeduplication=o,this.clientAwareness=f,this.localState=d||new oi({cache:t}),this.ssrMode=u,this.assumeImmutableResults=p,this.documentTransform=i?v.concat(i).concat(v):v,this.defaultContext=m||Object.create(null),(this.onBroadcast=s)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach((function(t,r){e.stopQueryNoBroadcast(r)})),this.cancelPendingFetches(T(25))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach((function(t){return t(e)})),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){return s(this,arguments,void 0,(function(e){var t,r,n,i,o,s,u,c=e.mutation,f=e.variables,d=e.optimisticResponse,h=e.updateQueries,p=e.refetchQueries,m=void 0===p?[]:p,y=e.awaitRefetchQueries,v=void 0!==y&&y,g=e.update,b=e.onQueryUpdated,w=e.fetchPolicy,_=void 0===w?(null===(s=this.defaultOptions.mutate)||void 0===s?void 0:s.fetchPolicy)||"network-only":w,k=e.errorPolicy,S=void 0===k?(null===(u=this.defaultOptions.mutate)||void 0===u?void 0:u.errorPolicy)||"none":k,E=e.keepRootFields,x=e.context;return l(this,(function(e){switch(e.label){case 0:return O(c,26),O("network-only"===_||"no-cache"===_,27),t=this.generateMutationId(),c=this.cache.transformForLink(this.transform(c)),r=this.getDocumentInfo(c).hasClientExports,f=this.getVariables(c,f),r?[4,this.localState.addExportedVariables(c,f,x)]:[3,2];case 1:f=e.sent(),e.label=2;case 2:return n=this.mutationStore&&(this.mutationStore[t]={mutation:c,variables:f,loading:!0,error:null}),i=d&&this.markMutationOptimistic(d,{mutationId:t,document:c,variables:f,fetchPolicy:_,errorPolicy:S,context:x,updateQueries:h,update:g,keepRootFields:E}),this.broadcastQueries(),o=this,[2,new Promise((function(e,r){return Dn(o.getObservableFromLink(c,a(a({},x),{optimisticResponse:i?d:void 0}),f,!1),(function(e){if(In(e)&&"none"===S)throw new It({graphQLErrors:Pn(e)});n&&(n.loading=!1,n.error=null);var r=a({},e);return"function"==typeof m&&(m=m(r)),"ignore"===S&&In(r)&&delete r.errors,o.markMutationResult({mutationId:t,result:r,document:c,variables:f,fetchPolicy:_,errorPolicy:S,context:x,update:g,updateQueries:h,awaitRefetchQueries:v,refetchQueries:m,removeOptimistic:i?t:void 0,onQueryUpdated:b,keepRootFields:E})})).subscribe({next:function(t){o.broadcastQueries(),"hasNext"in t&&!1!==t.hasNext||e(t)},error:function(e){n&&(n.loading=!1,n.error=e),i&&o.cache.removeOptimistic(t),o.broadcastQueries(),r(e instanceof It?e:new It({networkError:e}))}})}))]}}))}))},e.prototype.markMutationResult=function(e,t){var r=this;void 0===t&&(t=this.cache);var n=e.result,i=[],o="no-cache"===e.fetchPolicy;if(!o&&fi(n,e.errorPolicy)){if(zt(n)||i.push({result:n.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),zt(n)&&Mt(n.incremental)){var s=t.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}),l=void 0;s.result&&(l=qt(s.result,n)),void 0!==l&&(n.data=l,i.push({result:l,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var u=e.updateQueries;u&&this.queries.forEach((function(e,a){var o=e.observableQuery,s=o&&o.queryName;if(s&&di.call(u,s)){var l=u[s],c=r.queries.get(a),f=c.document,d=c.variables,h=t.diff({query:f,variables:d,returnPartialData:!0,optimistic:!1}),p=h.result;if(h.complete&&p){var m=l(p,{mutationResult:n,queryName:f&&Be(f)||void 0,queryVariables:d});m&&i.push({result:m,dataId:"ROOT_QUERY",query:f,variables:d})}}}))}if(i.length>0||(e.refetchQueries||"").length>0||e.update||e.onQueryUpdated||e.removeOptimistic){var c=[];if(this.refetchQueries({updateCache:function(t){o||i.forEach((function(e){return t.write(e)}));var s,l=e.update,u=!(zt(s=n)||function(e){return"hasNext"in e&&"data"in e}(s))||zt(n)&&!n.hasNext;if(l){if(!o){var c=t.diff({id:"ROOT_MUTATION",query:r.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});c.complete&&("incremental"in(n=a(a({},n),{data:c.result}))&&delete n.incremental,"hasNext"in n&&delete n.hasNext)}u&&l(t,n,{context:e.context,variables:e.variables})}o||e.keepRootFields||!u||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var r=t.fieldName,n=t.DELETE;return"__typename"===r?e:n}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach((function(e){return c.push(e)})),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(c).then((function(){return n}))}return Promise.resolve(n)},e.prototype.markMutationOptimistic=function(e,t){var r=this,n="function"==typeof e?e(t.variables,{IGNORE:hi}):e;return n!==hi&&(this.cache.recordOptimisticTransaction((function(e){try{r.markMutationResult(a(a({},t),{result:{data:n}}),e)}catch(e){!1!==globalThis.__DEV__&&O.error(e)}}),t.mutationId),!0)},e.prototype.fetchQuery=function(e,t,r){return this.fetchConcastWithInfo(e,t,r).concast.promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach((function(t,r){e[r]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}})),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){return this.documentTransform.transformDocument(e)},e.prototype.getDocumentInfo=function(e){var t=this.transformCache;if(!t.has(e)){var r={hasClientExports:gt(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:vt(["nonreactive"],e),clientQuery:this.localState.clientQuery(e),serverQuery:mr([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"}],e),defaultVars:Ge(Qe(e)),asQuery:a(a({},e),{definitions:e.definitions.map((function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?a(a({},e),{operation:"query"}):e}))})};t.set(e,r)}return t.get(e)},e.prototype.getVariables=function(e,t){return a(a({},this.getDocumentInfo(e).defaultVars),t)},e.prototype.watchQuery=function(e){var t=this.transform(e.query);void 0===(e=a(a({},e),{variables:this.getVariables(t,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var r=new ci(this),n=new Zn({queryManager:this,queryInfo:r,options:e});return n.lastQuery=t,this.queries.set(n.queryId,r),r.init({document:t,observableQuery:n,variables:n.variables}),n},e.prototype.query=function(e,t){var r=this;return void 0===t&&(t=this.generateQueryId()),O(e.query,28),O("Document"===e.query.kind,29),O(!e.returnPartialData,30),O(!e.pollInterval,31),this.fetchQuery(t,a(a({},e),{query:this.transform(e.query)})).finally((function(){return r.stopQuery(t)}))},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches(T(32)),this.queries.forEach((function(e){e.observableQuery?e.networkStatus=jn.loading:e.stop()})),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var r=new Map,n=new Map,i=new Set;return Array.isArray(e)&&e.forEach((function(e){var r;"string"==typeof e?n.set(e,!1):X(r=e)&&"Document"===r.kind&&Array.isArray(r.definitions)?n.set(t.transform(e),!1):X(e)&&e.query&&i.add(e)})),this.queries.forEach((function(t,i){var a=t.observableQuery,o=t.document;if(a){if("all"===e)return void r.set(i,a);var s=a.queryName;if("standby"===a.options.fetchPolicy||"active"===e&&!a.hasObservers())return;("active"===e||s&&n.has(s)||o&&n.has(o))&&(r.set(i,a),s&&n.set(s,!0),o&&n.set(o,!0))}})),i.size&&i.forEach((function(e){var n=S("legacyOneTimeQuery"),i=t.getQuery(n).init({document:e.query,variables:e.variables}),o=new Zn({queryManager:t,queryInfo:i,options:a(a({},e),{fetchPolicy:"network-only"})});O(o.queryId===n),i.setObservableQuery(o),r.set(n,o)})),!1!==globalThis.__DEV__&&n.size&&n.forEach((function(e,t){e||!1!==globalThis.__DEV__&&O.warn("string"==typeof t?33:34,t)})),r},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var r=[];return this.getObservableQueries(e?"all":"active").forEach((function(n,i){var a=n.options.fetchPolicy;n.resetLastResults(),(e||"standby"!==a&&"cache-only"!==a)&&r.push(n.refetch()),t.getQuery(i).setDiff(null)})),this.broadcastQueries(),Promise.all(r)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){var t=this,r=e.query,n=e.fetchPolicy,i=e.errorPolicy,a=void 0===i?"none":i,o=e.variables,s=e.context,l=void 0===s?{}:s;r=this.transform(r),o=this.getVariables(r,o);var u=function(e){return t.getObservableFromLink(r,l,e).map((function(i){"no-cache"!==n&&(fi(i,a)&&t.cache.write({query:r,result:i.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var o=In(i),s=function(e){return!!e.extensions&&Array.isArray(e.extensions[Dt])}(i);if(o||s){var l={};if(o&&(l.graphQLErrors=i.errors),s&&(l.protocolErrors=i.extensions[Dt]),"none"===a||s)throw new It(l)}return"ignore"===a&&delete i.errors,i}))};if(this.getDocumentInfo(r).hasClientExports){var c=this.localState.addExportedVariables(r,o,l).then(u);return new J((function(e){var t=null;return c.then((function(r){return t=r.subscribe(e)}),e.error),function(){return t&&t.unsubscribe()}}))}return u(o)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.queries.has(e)&&(this.getQuery(e).stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach((function(e){return e.notify()}))},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,r,n){var i,o,s=this;void 0===n&&(n=null!==(i=null==t?void 0:t.queryDeduplication)&&void 0!==i?i:this.queryDeduplication);var l=this.getDocumentInfo(e),u=l.serverQuery,c=l.clientQuery;if(u){var f=this.inFlightLinkObservables,d=this.link,h={query:u,variables:r,operationName:Be(u)||void 0,context:this.prepareContext(a(a({},t),{forceFetch:!n}))};if(t=h.context,n){var p=sr(u),m=Ce(r),y=f.lookup(p,m);if(!(o=y.observable)){var v=new Ln([Xe(d,h)]);o=y.observable=v,v.beforeNext((function(){f.remove(p,m)}))}}else o=new Ln([Xe(d,h)])}else o=new Ln([J.of({data:{}})]),t=this.prepareContext(t);return c&&(o=Dn(o,(function(e){return s.localState.runResolvers({document:c,remoteResult:e,context:t,variables:r})}))),o},e.prototype.getResultsFromLink=function(e,t,r){var n=e.lastRequestId=this.generateRequestId(),i=this.cache.transformForLink(r.query);return Dn(this.getObservableFromLink(i,r.context,r.variables),(function(a){var o=Pn(a),s=o.length>0;if(n>=e.lastRequestId){if(s&&"none"===r.errorPolicy)throw e.markError(new It({graphQLErrors:o}));e.markResult(a,i,r,t),e.markReady()}var l={data:a.data,loading:!1,networkStatus:jn.ready};return s&&"ignore"!==r.errorPolicy&&(l.errors=o,l.networkStatus=jn.error),l}),(function(t){var r=t.hasOwnProperty("graphQLErrors")?t:new It({networkError:t});throw n>=e.lastRequestId&&e.markError(r),r}))},e.prototype.fetchConcastWithInfo=function(e,t,r,n){var i=this;void 0===r&&(r=jn.loading),void 0===n&&(n=t.query);var a,o,s=this.getVariables(n,t.variables),l=this.getQuery(e),u=this.defaultOptions.watchQuery,c=t.fetchPolicy,f=void 0===c?u&&u.fetchPolicy||"cache-first":c,d=t.errorPolicy,h=void 0===d?u&&u.errorPolicy||"none":d,p=t.returnPartialData,m=void 0!==p&&p,y=t.notifyOnNetworkStatusChange,v=void 0!==y&&y,g=t.context,b=void 0===g?{}:g,w=Object.assign({},t,{query:n,variables:s,fetchPolicy:f,errorPolicy:h,returnPartialData:m,notifyOnNetworkStatusChange:v,context:b}),_=function(e){w.variables=e;var n=i.fetchQueryByPolicy(l,w,r);return"standby"!==w.fetchPolicy&&n.sources.length>0&&l.observableQuery&&l.observableQuery.applyNextFetchPolicy("after-fetch",t),n},k=function(){return i.fetchCancelFns.delete(e)};if(this.fetchCancelFns.set(e,(function(e){k(),setTimeout((function(){return a.cancel(e)}))})),this.getDocumentInfo(w.query).hasClientExports)a=new Ln(this.localState.addExportedVariables(w.query,w.variables,w.context).then(_).then((function(e){return e.sources}))),o=!0;else{var S=_(w.variables);o=S.fromLink,a=new Ln(S.sources)}return a.promise.then(k,k),{concast:a,fromLink:o}},e.prototype.refetchQueries=function(e){var t=this,r=e.updateCache,n=e.include,i=e.optimistic,a=void 0!==i&&i,o=e.removeOptimistic,s=void 0===o?a?S("refetchQueries"):void 0:o,l=e.onQueryUpdated,u=new Map;n&&this.getObservableQueries(n).forEach((function(e,r){u.set(r,{oq:e,lastDiff:t.getQuery(r).getDiff()})}));var c=new Map;return r&&this.cache.batch({update:r,optimistic:a&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,r){var n=e.watcher instanceof ci&&e.watcher.observableQuery;if(n){if(l){u.delete(n.queryId);var i=l(n,t,r);return!0===i&&(i=n.refetch()),!1!==i&&c.set(n,i),i}null!==l&&u.set(n.queryId,{oq:n,lastDiff:r,diff:t})}}}),u.size&&u.forEach((function(e,r){var n,i=e.oq,a=e.lastDiff,o=e.diff;if(l){if(!o){var s=i.queryInfo;s.reset(),o=s.getDiff()}n=l(i,o,a)}l&&!0!==n||(n=i.refetch()),!1!==n&&c.set(i,n),r.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(r)})),s&&this.cache.removeOptimistic(s),c},e.prototype.fetchQueryByPolicy=function(e,t,r){var n=this,i=t.query,o=t.variables,s=t.fetchPolicy,l=t.refetchWritePolicy,u=t.errorPolicy,c=t.returnPartialData,f=t.context,d=t.notifyOnNetworkStatusChange,h=e.networkStatus;e.init({document:i,variables:o,networkStatus:r});var p=function(){return e.getDiff()},m=function(t,r){void 0===r&&(r=e.networkStatus||jn.loading);var s=t.result;!1===globalThis.__DEV__||c||Or(s,{})||Jn(t.missing);var l=function(e){return J.of(a({data:e,loading:Rn(r),networkStatus:r},t.complete?null:{partial:!0}))};return s&&n.getDocumentInfo(i).hasForcedResolvers?n.localState.runResolvers({document:i,remoteResult:{data:s},context:f,variables:o,onlyRunForcedResolvers:!0}).then((function(e){return l(e.data||void 0)})):"none"===u&&r===jn.refetch&&Array.isArray(t.missing)?l(void 0):l(s)},y="no-cache"===s?0:r===jn.refetch&&"merge"!==l?1:2,v=function(){return n.getResultsFromLink(e,y,{query:i,variables:o,context:f,fetchPolicy:s,errorPolicy:u})},g=d&&"number"==typeof h&&h!==r&&Rn(r);switch(s){default:case"cache-first":return(b=p()).complete?{fromLink:!1,sources:[m(b,e.markReady())]}:c||g?{fromLink:!0,sources:[m(b),v()]}:{fromLink:!0,sources:[v()]};case"cache-and-network":var b;return(b=p()).complete||c||g?{fromLink:!0,sources:[m(b),v()]}:{fromLink:!0,sources:[v()]};case"cache-only":return{fromLink:!1,sources:[m(p(),e.markReady())]};case"network-only":return g?{fromLink:!0,sources:[m(p()),v()]}:{fromLink:!0,sources:[v()]};case"no-cache":return g?{fromLink:!0,sources:[m(e.getDiff()),v()]}:{fromLink:!0,sources:[v()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new ci(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return a(a(a({},this.defaultContext),t),{clientAwareness:this.clientAwareness})},e}();function mi(e,t){return zn(e,t,t.variables&&{variables:zn(a(a({},e&&e.variables),t.variables))})}var yi=!1,vi=function(){function e(e){var t=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw T(15);var r=e.uri,n=e.credentials,i=e.headers,a=e.cache,o=e.documentTransform,s=e.ssrMode,l=void 0!==s&&s,u=e.ssrForceFetchDelay,c=void 0===u?0:u,f=e.connectToDevTools,d=void 0===f?"object"==typeof window&&!window.__APOLLO_CLIENT__&&!1!==globalThis.__DEV__:f,h=e.queryDeduplication,p=void 0===h||h,m=e.defaultOptions,y=e.defaultContext,v=e.assumeImmutableResults,g=void 0===v?a.assumeImmutableResults:v,w=e.resolvers,_=e.typeDefs,k=e.fragmentMatcher,S=e.name,E=e.version,x=e.link;x||(x=r?new _r({uri:r,credentials:n,headers:i}):Je.empty()),this.link=x,this.cache=a,this.disableNetworkFetches=l||c>0,this.queryDeduplication=p,this.defaultOptions=m||Object.create(null),this.typeDefs=_,c&&setTimeout((function(){return t.disableNetworkFetches=!1}),c),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=b,this.localState=new oi({cache:a,client:this,resolvers:w,fragmentMatcher:k}),this.queryManager=new pi({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:y,documentTransform:o,queryDeduplication:p,ssrMode:l,clientAwareness:{name:S,version:E},localState:this.localState,assumeImmutableResults:g,onBroadcast:d?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0}),d&&this.connectToDevTools()}return e.prototype.connectToDevTools=function(){if("object"==typeof window){var e=window,t=Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this}yi||!1===globalThis.__DEV__||(yi=!0,setTimeout((function(){if("undefined"!=typeof window&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var e=window.navigator,t=e&&e.userAgent,r=void 0;"string"==typeof t&&(t.indexOf("Chrome/")>-1?r="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":t.indexOf("Firefox/")>-1&&(r="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),r&&!1!==globalThis.__DEV__&&O.log("Download the Apollo DevTools for a better development experience: %s",r)}}),1e4))},Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=mi(this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=a(a({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=mi(this.defaultOptions.query,e)),O("cache-and-network"!==e.fetchPolicy,16),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=a(a({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=mi(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.watchFragment=function(e){return this.cache.watchFragment(e)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return Xe(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore({discardWatches:!1})})).then((function(){return Promise.all(e.resetStoreCallbacks.map((function(e){return e()})))})).then((function(){return e.reFetchObservableQueries()}))},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore({discardWatches:!0})})).then((function(){return Promise.all(e.clearStoreCallbacks.map((function(e){return e()})))}))},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),r=[],n=[];t.forEach((function(e,t){r.push(t),n.push(e)}));var i=Promise.all(n);return i.queries=r,i.results=n,i.catch((function(e){!1!==globalThis.__DEV__&&O.debug(17,e)})),i},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},Object.defineProperty(e.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext},enumerable:!1,configurable:!0}),e}();!1!==globalThis.__DEV__&&(vi.prototype.getMemoryInternals=be);var gi=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=Tn(ee,{max:ye["cache.fragmentQueryDocuments"]||1e3,cache:le})}return e.prototype.batch=function(e){var t,r=this,n="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction((function(){return t=e.update(r)}),n),t},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read(a(a({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.watchFragment=function(e){var t,r=this,n=e.fragment,i=e.fragmentName,o=e.from,s=e.optimistic,l=void 0===s||s,u={returnPartialData:!0,id:"string"==typeof o?o:this.identify(o),query:this.getFragmentDoc(n,i),optimistic:l};return new J((function(e){return r.watch(a(a({},u),{immediate:!0,query:r.getFragmentDoc(n,i),callback:function(r){if(!Or(r,t)){var n={data:r.result,complete:!!r.complete};r.missing&&(n.missing=jt(r.missing.map((function(e){return e.missing})))),t=r,e.next(n)}}}))}))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read(a(a({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},e.prototype.writeQuery=function(e){var t=e.id,r=e.data,n=o(e,["id","data"]);return this.write(Object.assign(n,{dataId:t||"ROOT_QUERY",result:r}))},e.prototype.writeFragment=function(e){var t=e.id,r=e.data,n=e.fragment,i=e.fragmentName,a=o(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(a,{query:this.getFragmentDoc(n,i),dataId:t,result:r}))},e.prototype.updateQuery=function(e,t){return this.batch({update:function(r){var n=r.readQuery(e),i=t(n);return null==i?n:(r.writeQuery(a(a({},e),{data:i})),i)}})},e.prototype.updateFragment=function(e,t){return this.batch({update:function(r){var n=r.readFragment(e),i=t(n);return null==i?n:(r.writeFragment(a(a({},e),{data:i})),i)}})},e}();!1!==globalThis.__DEV__&&(gi.prototype.getMemoryInternals=_e);var bi=function(e){function t(r,n,i,a){var o,s=e.call(this,r)||this;if(s.message=r,s.path=n,s.query=i,s.variables=a,Array.isArray(s.path)){s.missing=s.message;for(var l=s.path.length-1;l>=0;--l)s.missing=((o={})[s.path[l]]=s.missing,o)}else s.missing=s.path;return s.__proto__=t.prototype,s}return n(t,e),t}(Error);function wi(e){return!1!==globalThis.__DEV__&&(t=e,(r=new Set([t])).forEach((function(e){X(e)&&function(e){if(!1!==globalThis.__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(e){if(e instanceof TypeError)return null;throw e}return e}(e)===e&&Object.getOwnPropertyNames(e).forEach((function(t){X(e[t])&&r.add(e[t])}))}))),e;var t,r}var _i=Object.prototype.hasOwnProperty;function ki(e){return null==e}function Si(e,t){var r=e.__typename,n=e.id,i=e._id;if("string"==typeof r&&(t&&(t.keyObject=ki(n)?ki(i)?void 0:{_id:i}:{id:n}),ki(n)&&!ki(i)&&(n=i),!ki(n)))return"".concat(r,":").concat("number"==typeof n||"string"==typeof n?n:JSON.stringify(n))}var Ei={dataIdFromObject:Si,addTypename:!0,resultCaching:!0,canonizeResults:!1};function xi(e){var t=e.canonizeResults;return void 0===t?Ei.canonizeResults:t}var Oi=/^[_a-z][_0-9a-z]*/i;function Ti(e){var t=e.match(Oi);return t?t[0]:e}function Ni(e,t,r){return!!X(t)&&(Pt(t)?t.every((function(t){return Ni(e,t,r)})):e.selections.every((function(e){if(qe(e)&&yt(e,r)){var n=ze(e);return _i.call(t,n)&&(!e.selectionSet||Ni(e.selectionSet,t[n],r))}return!0})))}function Ci(e){return X(e)&&!Me(e)&&!Pt(e)}function Di(e,t){var r=te($e(e));return{fragmentMap:r,lookupFragment:function(e){var n=r[e];return!n&&t&&(n=t.lookup(e)),n||null}}}var Ii=Object.create(null),Pi=function(){return Ii},Mi=Object.create(null),Ai=function(){function e(e,t){var r=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return wi(Me(e)?r.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return Me(e)?r.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return Pe(e);if(Me(e))return e;var n=r.policies.identify(e)[0];if(n){var i=Pe(n);return t&&r.merge(n,e),i}}}return e.prototype.toObject=function(){return a({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),_i.call(this.data,e)){var r=this.data[e];if(r&&_i.call(r,t))return r[t]}return"__typename"===t&&_i.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof Ri?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return t&&this.group.depend(e,"__exists"),_i.call(this.data,e)?this.data[e]:this instanceof Ri?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var r,n=this;Me(e)&&(e=e.__ref),Me(t)&&(t=t.__ref);var i="string"==typeof e?this.lookup(r=e):e,a="string"==typeof t?this.lookup(r=t):t;if(a){O("string"==typeof r,1);var o=new Rt(Vi).merge(i,a);if(this.data[r]=o,o!==i&&(delete this.refs[r],this.group.caching)){var s=Object.create(null);i||(s.__exists=1),Object.keys(a).forEach((function(e){if(!i||i[e]!==o[e]){s[e]=1;var t=Ti(e);t===e||n.policies.hasKeyArgs(o.__typename,t)||(s[t]=1),void 0!==o[e]||n instanceof Ri||delete o[e]}})),!s.__typename||i&&i.__typename||this.policies.rootTypenamesById[r]!==o.__typename||delete s.__typename,Object.keys(s).forEach((function(e){return n.group.dirty(r,e)}))}}},e.prototype.modify=function(e,t){var r=this,n=this.lookup(e);if(n){var i=Object.create(null),o=!1,s=!0,l={DELETE:Ii,INVALIDATE:Mi,isReference:Me,toReference:this.toReference,canRead:this.canRead,readField:function(t,n){return r.policies.readField("string"==typeof t?{fieldName:t,from:n||Pe(e)}:t,{store:r})}};if(Object.keys(n).forEach((function(u){var c=Ti(u),f=n[u];if(void 0!==f){var d="function"==typeof t?t:t[u]||t[c];if(d){var h=d===Pi?Ii:d(wi(f),a(a({},l),{fieldName:c,storeFieldName:u,storage:r.getStorage(e,u)}));if(h===Mi)r.group.dirty(e,u);else if(h===Ii&&(h=void 0),h!==f&&(i[u]=h,o=!0,f=h,!1!==globalThis.__DEV__)){var p=function(e){if(void 0===r.lookup(e.__ref))return!1!==globalThis.__DEV__&&O.warn(2,e),!0};if(Me(h))p(h);else if(Array.isArray(h))for(var m=!1,y=void 0,v=0,g=h;v<g.length;v++){var b=g[v];if(Me(b)){if(m=!0,p(b))break}else"object"==typeof b&&b&&r.policies.identify(b)[0]&&(y=b);if(m&&void 0!==y){!1!==globalThis.__DEV__&&O.warn(3,y);break}}}}void 0!==f&&(s=!1)}})),o)return this.merge(e,i),s&&(this instanceof Ri?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,r){var n,i=this.lookup(e);if(i){var a=this.getFieldValue(i,"__typename"),o=t&&r?this.policies.getStoreFieldName({typename:a,fieldName:t,args:r}):t;return this.modify(e,o?((n={})[o]=Pi,n):Pi)}return!1},e.prototype.evict=function(e,t){var r=!1;return e.id&&(_i.call(this.data,e.id)&&(r=this.delete(e.id,e.fieldName,e.args)),this instanceof Ri&&this!==t&&(r=this.parent.evict(e,t)||r),(e.fieldName||r)&&this.group.dirty(e.id,e.fieldName||"__exists")),r},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),r=[];return this.getRootIdSet().forEach((function(t){_i.call(e.policies.rootTypenamesById,t)||r.push(t)})),r.length&&(t.__META={extraRootIds:r.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach((function(r){e&&_i.call(e,r)||t.delete(r)})),e){var r=e.__META,n=o(e,["__META"]);Object.keys(n).forEach((function(e){t.merge(e,n[e])})),r&&r.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof Ri?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),r=this.toObject();t.forEach((function(n){_i.call(r,n)&&(Object.keys(e.findChildRefIds(n)).forEach(t.add,t),delete r[n])}));var n=Object.keys(r);if(n.length){for(var i=this;i instanceof Ri;)i=i.parent;n.forEach((function(e){return i.delete(e)}))}return n},e.prototype.findChildRefIds=function(e){if(!_i.call(this.refs,e)){var t=this.refs[e]=Object.create(null),r=this.data[e];if(!r)return t;var n=new Set([r]);n.forEach((function(e){Me(e)&&(t[e.__ref]=!0),X(e)&&Object.keys(e).forEach((function(t){var r=e[t];X(r)&&n.add(r)}))}))}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),Fi=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?Sn():null,this.keyMaker=new Lr(wt)},e.prototype.depend=function(e,t){if(this.d){this.d(ji(e,t));var r=Ti(t);r!==t&&this.d(ji(e,r)),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(ji(e,t),"__exists"===t?"forget":"setDirty")},e}();function ji(e,t){return t+"#"+e}function Li(e,t){qi(e)&&e.group.depend(t,"__exists")}!function(e){var t=function(e){function t(t){var r=t.policies,n=t.resultCaching,i=void 0===n||n,a=t.seed,o=e.call(this,r,new Fi(i))||this;return o.stump=new zi(o),o.storageTrie=new Lr(wt),a&&o.replace(a),o}return n(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(e);e.Root=t}(Ai||(Ai={}));var Ri=function(e){function t(t,r,n,i){var a=e.call(this,r.policies,i)||this;return a.id=t,a.parent=r,a.replay=n,a.group=i,n(a),a}return n(t,e),t.prototype.addLayer=function(e,r){return new t(e,this,r,this.group)},t.prototype.removeLayer=function(e){var t=this,r=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach((function(e){var n=t.data[e],i=r.lookup(e);i?n?n!==i&&Object.keys(n).forEach((function(r){Or(n[r],i[r])||t.group.dirty(e,r)})):(t.group.dirty(e,"__exists"),Object.keys(i).forEach((function(r){t.group.dirty(e,r)}))):t.delete(e)})),r):r===this.parent?this:r.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return a(a({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var r=this.parent.findChildRefIds(t);return _i.call(this.data,t)?a(a({},r),e.prototype.findChildRefIds.call(this,t)):r},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(Ai),zi=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,(function(){}),new Fi(t.group.caching,t.group))||this}return n(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(e,t){return this.parent.merge(e,t)},t}(Ri);function Vi(e,t,r){var n=e[r],i=t[r];return Or(n,i)?n:i}function qi(e){return!!(e instanceof Ai&&e.group.caching)}var Ui=function(){function e(){this.known=new(_t?WeakSet:Set),this.pool=new Lr(wt),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return X(e)&&this.known.has(e)},e.prototype.pass=function(e){if(X(e)){var t=function(e){return X(e)?Pt(e)?e.slice(0):a({__proto__:Object.getPrototypeOf(e)},e):e}(e);return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if(X(e)){var r=this.passes.get(e);if(r)return r;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))return e;var n=e.map(this.admit,this);return(s=this.pool.lookupArray(n)).array||(this.known.add(s.array=n),!1!==globalThis.__DEV__&&Object.freeze(n)),s.array;case null:case Object.prototype:if(this.known.has(e))return e;var i=Object.getPrototypeOf(e),a=[i],o=this.sortedKeys(e);a.push(o.json);var s,l=a.length;if(o.sorted.forEach((function(r){a.push(t.admit(e[r]))})),!(s=this.pool.lookupArray(a)).object){var u=s.object=Object.create(i);this.known.add(u),o.sorted.forEach((function(e,t){u[e]=a[l+t]})),!1!==globalThis.__DEV__&&Object.freeze(u)}return s.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),r=this.pool.lookupArray(t);if(!r.keys){t.sort();var n=JSON.stringify(t);(r.keys=this.keysByJSON.get(n))||this.keysByJSON.set(n,r.keys={sorted:t,json:n})}return r.keys},e}();function Qi(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var Bi=function(){function e(e){var t=this;this.knownResults=new(wt?WeakMap:Map),this.config=zn(e,{addTypename:!1!==e.addTypename,canonizeResults:xi(e)}),this.canon=e.canon||new Ui,this.executeSelectionSet=Tn((function(e){var r,n=e.context.canonizeResults,i=Qi(e);i[3]=!n;var o=(r=t.executeSelectionSet).peek.apply(r,i);return o?n?a(a({},o),{result:t.canon.admit(o.result)}):o:(Li(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))}),{max:this.config.resultCacheMaxSize||ye["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:Qi,makeCacheKey:function(e,t,r,n){if(qi(r.store))return r.store.makeCacheKey(e,Me(t)?t.__ref:t,r.varString,n)}}),this.executeSubSelectedArray=Tn((function(e){return Li(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)}),{max:this.config.resultCacheMaxSize||ye["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(e){var t=e.field,r=e.array,n=e.context;if(qi(n.store))return n.store.makeCacheKey(t,r,n.varString)}})}return e.prototype.resetCanon=function(){this.canon=new Ui},e.prototype.diffQueryAgainstStore=function(e){var t=e.store,r=e.query,n=e.rootId,i=void 0===n?"ROOT_QUERY":n,o=e.variables,s=e.returnPartialData,l=void 0===s||s,u=e.canonizeResults,c=void 0===u?this.config.canonizeResults:u,f=this.config.cache.policies;o=a(a({},Ge(We(r))),o);var d,h=Pe(i),p=this.executeSelectionSet({selectionSet:He(r).selectionSet,objectOrReference:h,enclosingRef:h,context:a({store:t,query:r,policies:f,variables:o,varString:Ce(o),canonizeResults:c},Di(r,this.config.fragments))});if(p.missing&&(d=[new bi($i(p.missing),p.missing,r,o)],!l))throw d[0];return{result:p.result,complete:!d,missing:d}},e.prototype.isFresh=function(e,t,r,n){if(qi(n.store)&&this.knownResults.get(e)===r){var i=this.executeSelectionSet.peek(r,t,n,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t=this,r=e.selectionSet,n=e.objectOrReference,i=e.enclosingRef,a=e.context;if(Me(n)&&!a.policies.rootTypenamesById[n.__ref]&&!a.store.has(n.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(n.__ref," object")};var o,s=a.variables,l=a.policies,u=a.store.getFieldValue(n,"__typename"),c=[],f=new Rt;function d(e,t){var r;return e.missing&&(o=f.merge(o,((r={})[t]=e.missing,r))),e.result}this.config.addTypename&&"string"==typeof u&&!l.rootIdsByTypename[u]&&c.push({__typename:u});var h=new Set(r.selections);h.forEach((function(e){var r,p;if(yt(e,s))if(qe(e)){var m=l.readField({fieldName:e.name.value,field:e,variables:a.variables,from:n},a),y=ze(e);void 0===m?yr.added(e)||(o=f.merge(o,((r={})[y]="Can't find field '".concat(e.name.value,"' on ").concat(Me(n)?n.__ref+" object":"object "+JSON.stringify(n,null,2)),r))):Pt(m)?m.length>0&&(m=d(t.executeSubSelectedArray({field:e,array:m,enclosingRef:i,context:a}),y)):e.selectionSet?null!=m&&(m=d(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:m,enclosingRef:Me(m)?m:i,context:a}),y)):a.canonizeResults&&(m=t.canon.pass(m)),void 0!==m&&c.push(((p={})[y]=m,p))}else{var v=re(e,a.lookupFragment);if(!v&&e.kind===ft.FRAGMENT_SPREAD)throw T(9,e.name.value);v&&l.fragmentMatches(v,u)&&v.selectionSet.selections.forEach(h.add,h)}}));var p={result:jt(c),missing:o},m=a.canonizeResults?this.canon.admit(p):wi(p);return m.result&&this.knownResults.set(m.result,r),m},e.prototype.execSubSelectedArrayImpl=function(e){var t,r=this,n=e.field,i=e.array,a=e.enclosingRef,o=e.context,s=new Rt;function l(e,r){var n;return e.missing&&(t=s.merge(t,((n={})[r]=e.missing,n))),e.result}return n.selectionSet&&(i=i.filter(o.store.canRead)),i=i.map((function(e,t){return null===e?null:Pt(e)?l(r.executeSubSelectedArray({field:n,array:e,enclosingRef:a,context:o}),t):n.selectionSet?l(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:e,enclosingRef:Me(e)?e:a,context:o}),t):(!1!==globalThis.__DEV__&&function(e,t,r){if(!t.selectionSet){var n=new Set([r]);n.forEach((function(r){X(r)&&(O(!Me(r),10,function(e,t){return Me(t)?e.get(t.__ref,"__typename"):t&&t.__typename}(e,r),t.name.value),Object.values(r).forEach(n.add,n))}))}}(o.store,n,e),e)})),{result:o.canonizeResults?this.canon.admit(i):i,missing:t}},e}();function $i(e){try{JSON.stringify(e,(function(e,t){if("string"==typeof t)throw t;return t}))}catch(e){return e}}var Wi=Object.create(null);function Hi(e){var t=JSON.stringify(e);return Wi[t]||(Wi[t]=Object.create(null))}function Gi(e){var t=Hi(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,r){var n=function(e,t){return r.readField(t,e)},i=r.keyObject=Yi(e,(function(e){var i=Xi(r.storeObject,e,n);return void 0===i&&t!==r.storeObject&&_i.call(t,e[0])&&(i=Xi(t,e,Ji)),O(void 0!==i,4,e.join("."),t),i}));return"".concat(r.typename,":").concat(JSON.stringify(i))})}function Zi(e){var t=Hi(e);return t.keyArgsFn||(t.keyArgsFn=function(t,r){var n=r.field,i=r.variables,a=r.fieldName,o=Yi(e,(function(e){var r=e[0],a=r.charAt(0);if("@"!==a)if("$"!==a){if(t)return Xi(t,e)}else{var o=r.slice(1);if(i&&_i.call(i,o)){var s=e.slice(0);return s[0]=o,Xi(i,s)}}else if(n&&Mt(n.directives)){var l=r.slice(1),u=n.directives.find((function(e){return e.name.value===l})),c=u&&Re(u,i);return c&&Xi(c,e.slice(1))}})),s=JSON.stringify(o);return(t||"{}"!==s)&&(a+=":"+s),a})}function Yi(e,t){var r=new Rt;return Ki(e).reduce((function(e,n){var i,a=t(n);if(void 0!==a){for(var o=n.length-1;o>=0;--o)(i={})[n[o]]=a,a=i;e=r.merge(e,a)}return e}),Object.create(null))}function Ki(e){var t=Hi(e);if(!t.paths){var r=t.paths=[],n=[];e.forEach((function(t,i){Pt(t)?(Ki(t).forEach((function(e){return r.push(n.concat(e))})),n.length=0):(n.push(t),Pt(e[i+1])||(r.push(n.slice(0)),n.length=0))}))}return t.paths}function Ji(e,t){return e[t]}function Xi(e,t,r){return r=r||Ji,ea(t.reduce((function e(t,n){return Pt(t)?t.map((function(t){return e(t,n)})):t&&r(t,n)}),e))}function ea(e){return X(e)?Pt(e)?e.map(ea):Yi(Object.keys(e).sort(),(function(t){return Xi(e,t)})):e}function ta(e){return void 0!==e.args?e.args:e.field?Re(e.field,e.variables):null}var ra=function(){},na=function(e,t){return t.fieldName},ia=function(e,t,r){return(0,r.mergeObjects)(e,t)},aa=function(e,t){return t},oa=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=a({dataIdFromObject:Si},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t){var r,n=this,i=t&&(t.typename||(null===(r=t.storeObject)||void 0===r?void 0:r.__typename))||e.__typename;if(i===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var o,s=t&&t.storeObject||e,l=a(a({},t),{typename:i,storeObject:s,readField:t&&t.readField||function(){var e=la(arguments,s);return n.readField(e,{store:n.cache.data,variables:e.variables})}}),u=i&&this.getTypePolicy(i),c=u&&u.keyFn||this.config.dataIdFromObject;c;){var f=c(a(a({},e),s),l);if(!Pt(f)){o=f;break}c=Gi(f)}return o=o?String(o):void 0,l.keyObject?[o,l.keyObject]:[o]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach((function(r){var n=e[r],i=n.queryType,a=n.mutationType,s=n.subscriptionType,l=o(n,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",r),a&&t.setRootTypename("Mutation",r),s&&t.setRootTypename("Subscription",r),_i.call(t.toBeAdded,r)?t.toBeAdded[r].push(l):t.toBeAdded[r]=[l]}))},e.prototype.updateTypePolicy=function(e,t){var r=this,n=this.getTypePolicy(e),i=t.keyFields,a=t.fields;function o(e,t){e.merge="function"==typeof t?t:!0===t?ia:!1===t?aa:e.merge}o(n,t.merge),n.keyFn=!1===i?ra:Pt(i)?Gi(i):"function"==typeof i?i:n.keyFn,a&&Object.keys(a).forEach((function(t){var n=r.getFieldPolicy(e,t,!0),i=a[t];if("function"==typeof i)n.read=i;else{var s=i.keyArgs,l=i.read,u=i.merge;n.keyFn=!1===s?na:Pt(s)?Zi(s):"function"==typeof s?s:n.keyFn,"function"==typeof l&&(n.read=l),o(n,u)}n.read&&n.merge&&(n.keyFn=n.keyFn||na)}))},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var r="ROOT_"+e.toUpperCase(),n=this.rootTypenamesById[r];t!==n&&(O(!n||n===e,5,e),n&&delete this.rootIdsByTypename[n],this.rootIdsByTypename[t]=r,this.rootTypenamesById[r]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach((function(r){t.getSupertypeSet(r,!0),e[r].forEach((function(e){t.getSupertypeSet(e,!0).add(r);var n=e.match(Oi);n&&n[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))}))}))},e.prototype.getTypePolicy=function(e){var t=this;if(!_i.call(this.typePolicies,e)){var r=this.typePolicies[e]=Object.create(null);r.fields=Object.create(null);var n=this.supertypeMap.get(e);!n&&this.fuzzySubtypes.size&&(n=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach((function(r,i){if(r.test(e)){var a=t.supertypeMap.get(i);a&&a.forEach((function(e){return n.add(e)}))}}))),n&&n.size&&n.forEach((function(e){var n=t.getTypePolicy(e),i=n.fields,a=o(n,["fields"]);Object.assign(r,a),Object.assign(r.fields,i)}))}var i=this.toBeAdded[e];return i&&i.length&&i.splice(0).forEach((function(r){t.updateTypePolicy(e,r)})),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,r){if(e){var n=this.getTypePolicy(e).fields;return n[t]||r&&(n[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var r=this.supertypeMap.get(e);return!r&&t&&this.supertypeMap.set(e,r=new Set),r},e.prototype.fragmentMatches=function(e,t,r,n){var i=this;if(!e.typeCondition)return!0;if(!t)return!1;var a=e.typeCondition.name.value;if(t===a)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(a))for(var o=this.getSupertypeSet(t,!0),s=[o],l=function(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&s.indexOf(t)<0&&s.push(t)},u=!(!r||!this.fuzzySubtypes.size),c=!1,f=0;f<s.length;++f){var d=s[f];if(d.has(a))return o.has(a)||(c&&!1!==globalThis.__DEV__&&O.warn(6,t,a),o.add(a)),!0;d.forEach(l),u&&f===s.length-1&&Ni(e.selectionSet,r,n)&&(u=!1,c=!0,this.fuzzySubtypes.forEach((function(e,r){var n=t.match(e);n&&n[0]===t&&l(r)})))}return!1},e.prototype.hasKeyArgs=function(e,t){var r=this.getFieldPolicy(e,t,!1);return!(!r||!r.keyFn)},e.prototype.getStoreFieldName=function(e){var t,r=e.typename,n=e.fieldName,i=this.getFieldPolicy(r,n,!1),a=i&&i.keyFn;if(a&&r)for(var o={typename:r,fieldName:n,field:e.field||null,variables:e.variables},s=ta(e);a;){var l=a(s,o);if(!Pt(l)){t=l||n;break}a=Zi(l)}return void 0===t&&(t=e.field?function(e,t){var r=null;e.directives&&(r={},e.directives.forEach((function(e){r[e.name.value]={},e.arguments&&e.arguments.forEach((function(n){var i=n.name,a=n.value;return Ae(r[e.name.value],i,a,t)}))})));var n=null;return e.arguments&&e.arguments.length&&(n={},e.arguments.forEach((function(e){var r=e.name,i=e.value;return Ae(n,r,i,t)}))),Le(e.name.value,n,r)}(e.field,e.variables):Le(n,ta(e))),!1===t?n:n===Ti(t)?t:n+":"+t},e.prototype.readField=function(e,t){var r=e.from;if(r&&(e.field||e.fieldName)){if(void 0===e.typename){var n=t.store.getFieldValue(r,"__typename");n&&(e.typename=n)}var i=this.getStoreFieldName(e),a=Ti(i),o=t.store.getFieldValue(r,i),s=this.getFieldPolicy(e.typename,a,!1),l=s&&s.read;if(l){var u=sa(this,r,e,t,t.store.getStorage(Me(r)?r.__ref:r,i));return ti.withValue(this.cache,l,[o,u])}return o}},e.prototype.getReadFunction=function(e,t){var r=this.getFieldPolicy(e,t,!1);return r&&r.read},e.prototype.getMergeFunction=function(e,t,r){var n=this.getFieldPolicy(e,t,!1),i=n&&n.merge;return!i&&r&&(i=(n=this.getTypePolicy(r))&&n.merge),i},e.prototype.runMergeFunction=function(e,t,r,n,i){var a=r.field,o=r.typename,s=r.merge;return s===ia?ua(n.store)(e,t):s===aa?t:(n.overwrite&&(e=void 0),s(e,t,sa(this,void 0,{typename:o,fieldName:a.name.value,field:a,variables:n.variables},n,i||Object.create(null))))},e}();function sa(e,t,r,n,i){var a=e.getStoreFieldName(r),o=Ti(a),s=r.variables||n.variables,l=n.store,u=l.toReference,c=l.canRead;return{args:ta(r),field:r.field||null,fieldName:o,storeFieldName:a,variables:s,isReference:Me,toReference:u,storage:i,cache:e.cache,canRead:c,readField:function(){return e.readField(la(arguments,t,s),n)},mergeObjects:ua(n.store)}}function la(e,t,r){var n,i=e[0],o=e[1],s=e.length;return"string"==typeof i?n={fieldName:i,from:s>1?o:t}:(n=a({},i),_i.call(n,"from")||(n.from=t)),!1!==globalThis.__DEV__&&void 0===n.from&&!1!==globalThis.__DEV__&&O.warn(7,E(Array.from(e))),void 0===n.variables&&(n.variables=r),n}function ua(e){return function(t,r){if(Pt(t)||Pt(r))throw T(8);if(X(t)&&X(r)){var n=e.getFieldValue(t,"__typename"),i=e.getFieldValue(r,"__typename");if(n&&i&&n!==i)return r;if(Me(t)&&Ci(r))return e.merge(t.__ref,r),t;if(Ci(t)&&Me(r))return e.merge(t,r.__ref),r;if(Ci(t)&&Ci(r))return a(a({},t),r)}return r}}function ca(e,t,r){var n="".concat(t).concat(r),i=e.flavors.get(n);return i||e.flavors.set(n,i=e.clientOnly===t&&e.deferred===r?e:a(a({},e),{clientOnly:t,deferred:r})),i}var fa=function(){function e(e,t,r){this.cache=e,this.reader=t,this.fragments=r}return e.prototype.writeToStore=function(e,t){var r=this,n=t.query,i=t.result,o=t.dataId,s=t.variables,l=t.overwrite,u=Qe(n),c=new Rt;s=a(a({},Ge(u)),s);var f=a(a({store:e,written:Object.create(null),merge:function(e,t){return c.merge(e,t)},variables:s,varString:Ce(s)},Di(n,this.fragments)),{overwrite:!!l,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),d=this.processSelectionSet({result:i||Object.create(null),dataId:o,selectionSet:u.selectionSet,mergeTree:{map:new Map},context:f});if(!Me(d))throw T(11,i);return f.incomingById.forEach((function(t,n){var i=t.storeObject,a=t.mergeTree,o=t.fieldNodeSet,s=Pe(n);if(a&&a.map.size){var l=r.applyMerges(a,s,i,f);if(Me(l))return;i=l}if(!1!==globalThis.__DEV__&&!f.overwrite){var u=Object.create(null);o.forEach((function(e){e.selectionSet&&(u[e.name.value]=!0)})),Object.keys(i).forEach((function(e){(function(e){return!0===u[Ti(e)]})(e)&&!function(e){var t=a&&a.map.get(e);return Boolean(t&&t.info&&t.info.merge)}(e)&&function(e,t,r,n){var i=function(e){var t=n.getFieldValue(e,r);return"object"==typeof t&&t},a=i(e);if(a){var o=i(t);if(o&&!Me(a)&&!Or(a,o)&&!Object.keys(a).every((function(e){return void 0!==n.getFieldValue(o,e)}))){var s=n.getFieldValue(e,"__typename")||n.getFieldValue(t,"__typename"),l=Ti(r),u="".concat(s,".").concat(l);if(!va.has(u)){va.add(u);var c=[];Pt(a)||Pt(o)||[a,o].forEach((function(e){var t=n.getFieldValue(e,"__typename");"string"!=typeof t||c.includes(t)||c.push(t)})),!1!==globalThis.__DEV__&&O.warn(14,l,s,c.length?"either ensure all objects of type "+c.join(" and ")+" have an ID or a custom merge function, or ":"",u,a,o)}}}}(s,i,e,f.store)}))}e.merge(n,i)})),e.retain(d.__ref),d},e.prototype.processSelectionSet=function(e){var t=this,r=e.dataId,n=e.result,i=e.selectionSet,o=e.context,s=e.mergeTree,l=this.cache.policies,u=Object.create(null),c=r&&l.rootTypenamesById[r]||Ve(n,i,o.fragmentMap)||r&&o.store.get(r,"__typename");"string"==typeof c&&(u.__typename=c);var f=function(){var e=la(arguments,u,o.variables);if(Me(e.from)){var t=o.incomingById.get(e.from.__ref);if(t){var r=l.readField(a(a({},e),{from:t.storeObject}),o);if(void 0!==r)return r}}return l.readField(e,o)},d=new Set;this.flattenFields(i,n,o,c).forEach((function(e,r){var i,a=ze(r),o=n[a];if(d.add(r),void 0!==o){var h=l.getStoreFieldName({typename:c,fieldName:r.name.value,field:r,variables:e.variables}),p=ha(s,h),m=t.processFieldValue(o,r,r.selectionSet?ca(e,!1,!1):e,p),y=void 0;r.selectionSet&&(Me(m)||Ci(m))&&(y=f("__typename",m));var v=l.getMergeFunction(c,r.name.value,y);v?p.info={field:r,typename:c,merge:v}:ya(s,h),u=e.merge(u,((i={})[h]=m,i))}else!1===globalThis.__DEV__||e.clientOnly||e.deferred||yr.added(r)||l.getReadFunction(c,r.name.value)||!1!==globalThis.__DEV__&&O.error(12,ze(r),n)}));try{var h=l.identify(n,{typename:c,selectionSet:i,fragmentMap:o.fragmentMap,storeObject:u,readField:f}),p=h[0],m=h[1];r=r||p,m&&(u=o.merge(u,m))}catch(e){if(!r)throw e}if("string"==typeof r){var y=Pe(r),v=o.written[r]||(o.written[r]=[]);if(v.indexOf(i)>=0)return y;if(v.push(i),this.reader&&this.reader.isFresh(n,y,i,o))return y;var g=o.incomingById.get(r);return g?(g.storeObject=o.merge(g.storeObject,u),g.mergeTree=pa(g.mergeTree,s),d.forEach((function(e){return g.fieldNodeSet.add(e)}))):o.incomingById.set(r,{storeObject:u,mergeTree:ma(s)?void 0:s,fieldNodeSet:d}),y}return u},e.prototype.processFieldValue=function(e,t,r,n){var i=this;return t.selectionSet&&null!==e?Pt(e)?e.map((function(e,a){var o=i.processFieldValue(e,t,r,ha(n,a));return ya(n,a),o})):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,mergeTree:n}):!1!==globalThis.__DEV__?qn(e):e},e.prototype.flattenFields=function(e,t,r,n){void 0===n&&(n=Ve(t,e,r.fragmentMap));var i=new Map,a=this.cache.policies,o=new Lr(!1);return function e(s,l){var u=o.lookup(s,l.clientOnly,l.deferred);u.visited||(u.visited=!0,s.selections.forEach((function(o){if(yt(o,r.variables)){var s=l.clientOnly,u=l.deferred;if(s&&u||!Mt(o.directives)||o.directives.forEach((function(e){var t=e.name.value;if("client"===t&&(s=!0),"defer"===t){var n=Re(e,r.variables);n&&!1===n.if||(u=!0)}})),qe(o)){var c=i.get(o);c&&(s=s&&c.clientOnly,u=u&&c.deferred),i.set(o,ca(r,s,u))}else{var f=re(o,r.lookupFragment);if(!f&&o.kind===ft.FRAGMENT_SPREAD)throw T(13,o.name.value);f&&a.fragmentMatches(f,n,t,r.variables)&&e(f.selectionSet,ca(r,s,u))}}})))}(e,r),i},e.prototype.applyMerges=function(e,t,r,n,i){var o,s=this;if(e.map.size&&!Me(r)){var l,u=Pt(r)||!Me(t)&&!Ci(t)?void 0:t,c=r;u&&!i&&(i=[Me(u)?u.__ref:u]);var f=function(e,t){return Pt(e)?"number"==typeof t?e[t]:void 0:n.store.getFieldValue(e,String(t))};e.map.forEach((function(e,t){var r=f(u,t),a=f(c,t);if(void 0!==a){i&&i.push(t);var o=s.applyMerges(e,r,a,n,i);o!==a&&(l=l||new Map).set(t,o),i&&O(i.pop()===t)}})),l&&(r=Pt(c)?c.slice(0):a({},c),l.forEach((function(e,t){r[t]=e})))}return e.info?this.cache.policies.runMergeFunction(t,r,e.info,n,i&&(o=n.store).getStorage.apply(o,i)):r},e}(),da=[];function ha(e,t){var r=e.map;return r.has(t)||r.set(t,da.pop()||{map:new Map}),r.get(t)}function pa(e,t){if(e===t||!t||ma(t))return e;if(!e||ma(e))return t;var r=e.info&&t.info?a(a({},e.info),t.info):e.info||t.info,n=e.map.size&&t.map.size,i={info:r,map:n?new Map:e.map.size?e.map:t.map};if(n){var o=new Set(t.map.keys());e.map.forEach((function(e,r){i.map.set(r,pa(e,t.map.get(r))),o.delete(r)})),o.forEach((function(r){i.map.set(r,pa(t.map.get(r),e.map.get(r)))}))}return i}function ma(e){return!e||!(e.info||e.map.size)}function ya(e,t){var r=e.map,n=r.get(t);n&&ma(n)&&(da.push(n),r.delete(t))}var va=new Set,ga=function(e){function t(t){void 0===t&&(t={});var r=e.call(this)||this;return r.watches=new Set,r.addTypenameTransform=new Cn(yr),r.assumeImmutableResults=!0,r.makeVar=ai,r.txCount=0,r.config=function(e){return zn(Ei,e)}(t),r.addTypename=!!r.config.addTypename,r.policies=new oa({cache:r,dataIdFromObject:r.config.dataIdFromObject,possibleTypes:r.config.possibleTypes,typePolicies:r.config.typePolicies}),r.init(),r}return n(t,e),t.prototype.init=function(){var e=this.data=new Ai.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,r=this.storeReader,n=this.config.fragments;this.storeWriter=new fa(this,this.storeReader=new Bi({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:xi(this.config),canon:e?void 0:r&&r.canon,fragments:n}),n),this.maybeBroadcastWatch=Tn((function(e,r){return t.broadcastWatch(e,r)}),{max:this.config.resultCacheMaxSize||ye["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(e){var r=e.optimistic?t.optimisticData:t.data;if(qi(r)){var n=e.optimistic,i=e.id,a=e.variables;return r.makeCacheKey(e.query,e.callback,Ce({optimistic:n,id:i,variables:a}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach((function(e){return e.resetCaching()}))},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData,r=void 0!==t&&t;try{return this.storeReader.diffQueryAgainstStore(a(a({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:r})).result||null}catch(e){if(e instanceof bi)return null;throw e}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(_i.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore(a(a({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t=this;return this.watches.size||function(e){ni(e).vars.forEach((function(t){return t.attachCache(e)}))}(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&ii(t),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){var t;Ce.reset(),sr.reset(),this.addTypenameTransform.resetCache(),null===(t=this.config.fragments)||void 0===t||t.resetCaches();var r=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),r},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if(Me(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){!1!==globalThis.__DEV__&&O.warn(e)}},t.prototype.evict=function(e){if(!e.id){if(_i.call(e,"id"))return!1;e=a(a({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),Ce.reset(),e&&e.discardWatches?(this.watches.forEach((function(e){return t.maybeBroadcastWatch.forget(e)})),this.watches.clear(),ii(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t,r=this,n=e.update,i=e.optimistic,o=void 0===i||i,s=e.removeOptimistic,l=e.onWatchUpdated,u=function(e){var i=r,a=i.data,o=i.optimisticData;++r.txCount,e&&(r.data=r.optimisticData=e);try{return t=n(r)}finally{--r.txCount,r.data=a,r.optimisticData=o}},c=new Set;return l&&!this.txCount&&this.broadcastWatches(a(a({},e),{onWatchUpdated:function(e){return c.add(e),!1}})),"string"==typeof o?this.optimisticData=this.optimisticData.addLayer(o,u):!1===o?u(this.data):u(),"string"==typeof s&&(this.optimisticData=this.optimisticData.removeLayer(s)),l&&c.size?(this.broadcastWatches(a(a({},e),{onWatchUpdated:function(e,t){var r=l.call(this,e,t);return!1!==r&&c.delete(e),r}})),c.size&&c.forEach((function(e){return r.maybeBroadcastWatch.dirty(e)}))):this.broadcastWatches(e),t},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){return this.addTypenameToDocument(this.addFragmentsToDocument(e))},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach((function(r){return t.maybeBroadcastWatch(r,e)}))},t.prototype.addFragmentsToDocument=function(e){var t=this.config.fragments;return t?t.transform(e):e},t.prototype.addTypenameToDocument=function(e){return this.addTypename?this.addTypenameTransform.transformDocument(e):e},t.prototype.broadcastWatch=function(e,t){var r=e.lastDiff,n=this.diff(e);t&&(e.optimistic&&"string"==typeof t.optimistic&&(n.fromOptimisticTransaction=!0),t.onWatchUpdated&&!1===t.onWatchUpdated.call(this,e,n,r))||r&&Or(r.result,n.result)||e.callback(e.lastDiff=n,r)},t}(gi);!1!==globalThis.__DEV__&&(ga.prototype.getMemoryInternals=we);var ba=i(243),wa=i.t(ba,2),_a=kt?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__";function ka(){O("createContext"in wa,45);var e=ba.createContext[_a];return e||(Object.defineProperty(ba.createContext,_a,{value:e=ba.createContext({}),enumerable:!1,writable:!1,configurable:!0}),e.displayName="ApolloContext"),e}var Sa=function(e){var t=e.client,r=e.children,n=ka(),i=ba.useContext(n),o=ba.useMemo((function(){return a(a({},i),{client:t||i.client})}),[i,t]);return O(o.client,46),ba.createElement(n.Provider,{value:o},r)};const Ea=(0,e.createContext)({params:{},cookies:{}});var xa=i(540);function Oa({children:e}){const t=new vi({uri:"/graphql",cache:new ga}),r=Object.fromEntries(location.hash.substring(1,location.hash.length).split(",").map((e=>e.split("=")))),n=Object.fromEntries(document.cookie.split(";").map((e=>e.split("=")))),i=["projectId"];return Object.entries(r).forEach((([e,t])=>{i.includes(e)&&n[e]!==t&&/^[0-9A-Za-z]+$/.test(String(t))&&(document.cookie=`${e}=${t}; path=/`)})),xa.createElement(Ea.Provider,{value:{params:r,cookies:n}},xa.createElement(Sa,{client:t},e))}function Ta(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}const Na=/\r\n|[\n\r]/g;function Ca(e,t){let r=0,n=1;for(const i of e.body.matchAll(Na)){if("number"==typeof i.index||Ta(!1),i.index>=t)break;r=i.index+i[0].length,n+=1}return{line:n,column:t+1-r}}function Da(e){return Ia(e.source,Ca(e.source,e.start))}function Ia(e,t){const r=e.locationOffset.column-1,n="".padStart(r)+e.body,i=t.line-1,a=e.locationOffset.line-1,o=t.line+a,s=1===t.line?r:0,l=t.column+s,u=`${e.name}:${o}:${l}\n`,c=n.split(/\r\n|[\n\r]/g),f=c[i];if(f.length>120){const e=Math.floor(l/80),t=l%80,r=[];for(let e=0;e<f.length;e+=80)r.push(f.slice(e,e+80));return u+Pa([[`${o} |`,r[0]],...r.slice(1,e+1).map((e=>["|",e])),["|","^".padStart(t)],["|",r[e+1]]])}return u+Pa([[o-1+" |",c[i-1]],[`${o} |`,f],["|","^".padStart(l)],[`${o+1} |`,c[i+1]]])}function Pa(e){const t=e.filter((([e,t])=>void 0!==t)),r=Math.max(...t.map((([e])=>e.length)));return t.map((([e,t])=>e.padStart(r)+(t?" "+t:""))).join("\n")}class Ma extends Error{constructor(e,...t){var r,n,i;const{nodes:a,source:o,positions:s,path:l,originalError:u,extensions:c}=function(e){const t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=l?l:void 0,this.originalError=null!=u?u:void 0,this.nodes=Aa(Array.isArray(a)?a:a?[a]:void 0);const f=Aa(null===(r=this.nodes)||void 0===r?void 0:r.map((e=>e.loc)).filter((e=>null!=e)));this.source=null!=o?o:null==f||null===(n=f[0])||void 0===n?void 0:n.source,this.positions=null!=s?s:null==f?void 0:f.map((e=>e.start)),this.locations=s&&o?s.map((e=>Ca(o,e))):null==f?void 0:f.map((e=>Ca(e.source,e.start)));const d="object"==typeof(h=null==u?void 0:u.extensions)&&null!==h?null==u?void 0:u.extensions:void 0;var h;this.extensions=null!==(i=null!=c?c:d)&&void 0!==i?i:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=u&&u.stack?Object.defineProperty(this,"stack",{value:u.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,Ma):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const t of this.nodes)t.loc&&(e+="\n\n"+Da(t.loc));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+Ia(this.source,t);return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function Aa(e){return void 0===e||0===e.length?void 0:e}function Fa(e,t,r){return new Ma(`Syntax Error: ${r}`,{source:e,positions:[t]})}var ja,La,Ra;!function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(ja||(ja={})),(Ra=La||(La={})).SOF="<SOF>",Ra.EOF="<EOF>",Ra.BANG="!",Ra.DOLLAR="$",Ra.AMP="&",Ra.PAREN_L="(",Ra.PAREN_R=")",Ra.SPREAD="...",Ra.COLON=":",Ra.EQUALS="=",Ra.AT="@",Ra.BRACKET_L="[",Ra.BRACKET_R="]",Ra.BRACE_L="{",Ra.PIPE="|",Ra.BRACE_R="}",Ra.NAME="Name",Ra.INT="Int",Ra.FLOAT="Float",Ra.STRING="String",Ra.BLOCK_STRING="BlockString",Ra.COMMENT="Comment";class za{constructor(e){const t=new ot(La.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==La.EOF)do{if(e.next)e=e.next;else{const t=Wa(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===La.COMMENT);return e}}function Va(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function qa(e,t){return Ua(e.charCodeAt(t))&&Qa(e.charCodeAt(t+1))}function Ua(e){return e>=55296&&e<=56319}function Qa(e){return e>=56320&&e<=57343}function Ba(e,t){const r=e.source.body.codePointAt(t);if(void 0===r)return La.EOF;if(r>=32&&r<=126){const e=String.fromCodePoint(r);return'"'===e?"'\"'":`"${e}"`}return"U+"+r.toString(16).toUpperCase().padStart(4,"0")}function $a(e,t,r,n,i){const a=e.line,o=1+r-e.lineStart;return new ot(t,r,n,a,o,i)}function Wa(e,t){const r=e.source.body,n=r.length;let i=t;for(;i<n;){const t=r.charCodeAt(i);switch(t){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:10===r.charCodeAt(i+1)?i+=2:++i,++e.line,e.lineStart=i;continue;case 35:return Ha(e,i);case 33:return $a(e,La.BANG,i,i+1);case 36:return $a(e,La.DOLLAR,i,i+1);case 38:return $a(e,La.AMP,i,i+1);case 40:return $a(e,La.PAREN_L,i,i+1);case 41:return $a(e,La.PAREN_R,i,i+1);case 46:if(46===r.charCodeAt(i+1)&&46===r.charCodeAt(i+2))return $a(e,La.SPREAD,i,i+3);break;case 58:return $a(e,La.COLON,i,i+1);case 61:return $a(e,La.EQUALS,i,i+1);case 64:return $a(e,La.AT,i,i+1);case 91:return $a(e,La.BRACKET_L,i,i+1);case 93:return $a(e,La.BRACKET_R,i,i+1);case 123:return $a(e,La.BRACE_L,i,i+1);case 124:return $a(e,La.PIPE,i,i+1);case 125:return $a(e,La.BRACE_R,i,i+1);case 34:return 34===r.charCodeAt(i+1)&&34===r.charCodeAt(i+2)?ro(e,i):Ya(e,i)}if(Wt(t)||45===t)return Ga(e,i,t);if(Gt(t))return no(e,i);throw Fa(e.source,i,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":Va(t)||qa(r,i)?`Unexpected character: ${Ba(e,i)}.`:`Invalid character: ${Ba(e,i)}.`)}return $a(e,La.EOF,n,n)}function Ha(e,t){const r=e.source.body,n=r.length;let i=t+1;for(;i<n;){const e=r.charCodeAt(i);if(10===e||13===e)break;if(Va(e))++i;else{if(!qa(r,i))break;i+=2}}return $a(e,La.COMMENT,t,i,r.slice(t+1,i))}function Ga(e,t,r){const n=e.source.body;let i=t,a=r,o=!1;if(45===a&&(a=n.charCodeAt(++i)),48===a){if(a=n.charCodeAt(++i),Wt(a))throw Fa(e.source,i,`Invalid number, unexpected digit after 0: ${Ba(e,i)}.`)}else i=Za(e,i,a),a=n.charCodeAt(i);if(46===a&&(o=!0,a=n.charCodeAt(++i),i=Za(e,i,a),a=n.charCodeAt(i)),69!==a&&101!==a||(o=!0,a=n.charCodeAt(++i),43!==a&&45!==a||(a=n.charCodeAt(++i)),i=Za(e,i,a),a=n.charCodeAt(i)),46===a||Gt(a))throw Fa(e.source,i,`Invalid number, expected digit but got: ${Ba(e,i)}.`);return $a(e,o?La.FLOAT:La.INT,t,i,n.slice(t,i))}function Za(e,t,r){if(!Wt(r))throw Fa(e.source,t,`Invalid number, expected digit but got: ${Ba(e,t)}.`);const n=e.source.body;let i=t+1;for(;Wt(n.charCodeAt(i));)++i;return i}function Ya(e,t){const r=e.source.body,n=r.length;let i=t+1,a=i,o="";for(;i<n;){const n=r.charCodeAt(i);if(34===n)return o+=r.slice(a,i),$a(e,La.STRING,t,i+1,o);if(92!==n){if(10===n||13===n)break;if(Va(n))++i;else{if(!qa(r,i))throw Fa(e.source,i,`Invalid character within String: ${Ba(e,i)}.`);i+=2}}else{o+=r.slice(a,i);const t=117===r.charCodeAt(i+1)?123===r.charCodeAt(i+2)?Ka(e,i):Ja(e,i):to(e,i);o+=t.value,i+=t.size,a=i}}throw Fa(e.source,i,"Unterminated string.")}function Ka(e,t){const r=e.source.body;let n=0,i=3;for(;i<12;){const e=r.charCodeAt(t+i++);if(125===e){if(i<5||!Va(n))break;return{value:String.fromCodePoint(n),size:i}}if(n=n<<4|eo(e),n<0)break}throw Fa(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+i)}".`)}function Ja(e,t){const r=e.source.body,n=Xa(r,t+2);if(Va(n))return{value:String.fromCodePoint(n),size:6};if(Ua(n)&&92===r.charCodeAt(t+6)&&117===r.charCodeAt(t+7)){const e=Xa(r,t+8);if(Qa(e))return{value:String.fromCodePoint(n,e),size:12}}throw Fa(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+6)}".`)}function Xa(e,t){return eo(e.charCodeAt(t))<<12|eo(e.charCodeAt(t+1))<<8|eo(e.charCodeAt(t+2))<<4|eo(e.charCodeAt(t+3))}function eo(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function to(e,t){const r=e.source.body;switch(r.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw Fa(e.source,t,`Invalid character escape sequence: "${r.slice(t,t+2)}".`)}function ro(e,t){const r=e.source.body,n=r.length;let i=e.lineStart,a=t+3,o=a,s="";const l=[];for(;a<n;){const n=r.charCodeAt(a);if(34===n&&34===r.charCodeAt(a+1)&&34===r.charCodeAt(a+2)){s+=r.slice(o,a),l.push(s);const n=$a(e,La.BLOCK_STRING,t,a+3,Zt(l).join("\n"));return e.line+=l.length-1,e.lineStart=i,n}if(92!==n||34!==r.charCodeAt(a+1)||34!==r.charCodeAt(a+2)||34!==r.charCodeAt(a+3))if(10!==n&&13!==n)if(Va(n))++a;else{if(!qa(r,a))throw Fa(e.source,a,`Invalid character within String: ${Ba(e,a)}.`);a+=2}else s+=r.slice(o,a),l.push(s),13===n&&10===r.charCodeAt(a+1)?a+=2:++a,s="",o=a,i=a;else s+=r.slice(o,a),o=a+1,a+=4}throw Fa(e.source,a,"Unterminated string.")}function no(e,t){const r=e.source.body,n=r.length;let i=t+1;for(;i<n&&(Ht(a=r.charCodeAt(i))||Wt(a)||95===a);)++i;var a;return $a(e,La.NAME,t,i,r.slice(t,i))}const io=globalThis.process&&"production"===globalThis.process.env.NODE_ENV?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"==typeof e&&null!==e){var r;const n=t.prototype[Symbol.toStringTag];if(n===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null===(r=e.constructor)||void 0===r?void 0:r.name)){const t=nt(e);throw new Error(`Cannot use ${n} "${t}" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.`)}}return!1};class ao{constructor(e,t="GraphQL request",r={line:1,column:1}){"string"==typeof e||et(!1,`Body must be a string. Received: ${nt(e)}.`),this.body=e,this.name=t,this.locationOffset=r,this.locationOffset.line>0||et(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||et(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}class oo{constructor(e,t={}){const r=function(e){return io(e,ao)}(e)?e:new ao(e);this._lexer=new za(r),this._options=t,this._tokenCounter=0}parseName(){const e=this.expectToken(La.NAME);return this.node(e,{kind:ft.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:ft.DOCUMENT,definitions:this.many(La.SOF,this.parseDefinition,La.EOF)})}parseDefinition(){if(this.peek(La.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===La.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw Fa(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(La.BRACE_L))return this.node(e,{kind:ft.OPERATION_DEFINITION,operation:ct.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseOperationType();let r;return this.peek(La.NAME)&&(r=this.parseName()),this.node(e,{kind:ft.OPERATION_DEFINITION,operation:t,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(La.NAME);switch(e.value){case"query":return ct.QUERY;case"mutation":return ct.MUTATION;case"subscription":return ct.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(La.PAREN_L,this.parseVariableDefinition,La.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:ft.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(La.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(La.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(La.DOLLAR),this.node(e,{kind:ft.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:ft.SELECTION_SET,selections:this.many(La.BRACE_L,this.parseSelection,La.BRACE_R)})}parseSelection(){return this.peek(La.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let r,n;return this.expectOptionalToken(La.COLON)?(r=t,n=this.parseName()):n=t,this.node(e,{kind:ft.FIELD,alias:r,name:n,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(La.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(La.PAREN_L,t,La.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,r=this.parseName();return this.expectToken(La.COLON),this.node(t,{kind:ft.ARGUMENT,name:r,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(La.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(La.NAME)?this.node(e,{kind:ft.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:ft.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token;return this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables?this.node(e,{kind:ft.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:ft.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case La.BRACKET_L:return this.parseList(e);case La.BRACE_L:return this.parseObject(e);case La.INT:return this.advanceLexer(),this.node(t,{kind:ft.INT,value:t.value});case La.FLOAT:return this.advanceLexer(),this.node(t,{kind:ft.FLOAT,value:t.value});case La.STRING:case La.BLOCK_STRING:return this.parseStringLiteral();case La.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:ft.BOOLEAN,value:!0});case"false":return this.node(t,{kind:ft.BOOLEAN,value:!1});case"null":return this.node(t,{kind:ft.NULL});default:return this.node(t,{kind:ft.ENUM,value:t.value})}case La.DOLLAR:if(e){if(this.expectToken(La.DOLLAR),this._lexer.token.kind===La.NAME){const e=this._lexer.token.value;throw Fa(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:ft.STRING,value:e.value,block:e.kind===La.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:ft.LIST,values:this.any(La.BRACKET_L,(()=>this.parseValueLiteral(e)),La.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:ft.OBJECT,fields:this.any(La.BRACE_L,(()=>this.parseObjectField(e)),La.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,r=this.parseName();return this.expectToken(La.COLON),this.node(t,{kind:ft.OBJECT_FIELD,name:r,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(La.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(La.AT),this.node(t,{kind:ft.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(La.BRACKET_L)){const r=this.parseTypeReference();this.expectToken(La.BRACKET_R),t=this.node(e,{kind:ft.LIST_TYPE,type:r})}else t=this.parseNamedType();return this.expectOptionalToken(La.BANG)?this.node(e,{kind:ft.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:ft.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(La.STRING)||this.peek(La.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const r=this.parseConstDirectives(),n=this.many(La.BRACE_L,this.parseOperationTypeDefinition,La.BRACE_R);return this.node(e,{kind:ft.SCHEMA_DEFINITION,description:t,directives:r,operationTypes:n})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(La.COLON);const r=this.parseNamedType();return this.node(e,{kind:ft.OPERATION_TYPE_DEFINITION,operation:t,type:r})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const r=this.parseName(),n=this.parseConstDirectives();return this.node(e,{kind:ft.SCALAR_TYPE_DEFINITION,description:t,name:r,directives:n})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:ft.OBJECT_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:a})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(La.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(La.BRACE_L,this.parseFieldDefinition,La.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),r=this.parseName(),n=this.parseArgumentDefs();this.expectToken(La.COLON);const i=this.parseTypeReference(),a=this.parseConstDirectives();return this.node(e,{kind:ft.FIELD_DEFINITION,description:t,name:r,arguments:n,type:i,directives:a})}parseArgumentDefs(){return this.optionalMany(La.PAREN_L,this.parseInputValueDef,La.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),r=this.parseName();this.expectToken(La.COLON);const n=this.parseTypeReference();let i;this.expectOptionalToken(La.EQUALS)&&(i=this.parseConstValueLiteral());const a=this.parseConstDirectives();return this.node(e,{kind:ft.INPUT_VALUE_DEFINITION,description:t,name:r,type:n,defaultValue:i,directives:a})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:ft.INTERFACE_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:a})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const r=this.parseName(),n=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:ft.UNION_TYPE_DEFINITION,description:t,name:r,directives:n,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(La.EQUALS)?this.delimitedMany(La.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const r=this.parseName(),n=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:ft.ENUM_TYPE_DEFINITION,description:t,name:r,directives:n,values:i})}parseEnumValuesDefinition(){return this.optionalMany(La.BRACE_L,this.parseEnumValueDefinition,La.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),r=this.parseEnumValueName(),n=this.parseConstDirectives();return this.node(e,{kind:ft.ENUM_VALUE_DEFINITION,description:t,name:r,directives:n})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw Fa(this._lexer.source,this._lexer.token.start,`${so(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");const r=this.parseName(),n=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:ft.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:r,directives:n,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(La.BRACE_L,this.parseInputValueDef,La.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===La.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),r=this.optionalMany(La.BRACE_L,this.parseOperationTypeDefinition,La.BRACE_R);if(0===t.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:ft.SCHEMA_EXTENSION,directives:t,operationTypes:r})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),r=this.parseConstDirectives();if(0===r.length)throw this.unexpected();return this.node(e,{kind:ft.SCALAR_TYPE_EXTENSION,name:t,directives:r})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:ft.OBJECT_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:ft.INTERFACE_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),r=this.parseConstDirectives(),n=this.parseUnionMemberTypes();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:ft.UNION_TYPE_EXTENSION,name:t,directives:r,types:n})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),r=this.parseConstDirectives(),n=this.parseEnumValuesDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:ft.ENUM_TYPE_EXTENSION,name:t,directives:r,values:n})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),r=this.parseConstDirectives(),n=this.parseInputFieldsDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:ft.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:r,fields:n})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(La.AT);const r=this.parseName(),n=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const a=this.parseDirectiveLocations();return this.node(e,{kind:ft.DIRECTIVE_DEFINITION,description:t,name:r,arguments:n,repeatable:i,locations:a})}parseDirectiveLocations(){return this.delimitedMany(La.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(ja,t.value))return t;throw this.unexpected(e)}node(e,t){return!0!==this._options.noLocation&&(t.loc=new at(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw Fa(this._lexer.source,t.start,`Expected ${lo(e)}, found ${so(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==La.NAME||t.value!==e)throw Fa(this._lexer.source,t.start,`Expected "${e}", found ${so(t)}.`);this.advanceLexer()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===La.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){const t=null!=e?e:this._lexer.token;return Fa(this._lexer.source,t.start,`Unexpected ${so(t)}.`)}any(e,t,r){this.expectToken(e);const n=[];for(;!this.expectOptionalToken(r);)n.push(t.call(this));return n}optionalMany(e,t,r){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(r));return e}return[]}many(e,t,r){this.expectToken(e);const n=[];do{n.push(t.call(this))}while(!this.expectOptionalToken(r));return n}delimitedMany(e,t){this.expectOptionalToken(e);const r=[];do{r.push(t.call(this))}while(this.expectOptionalToken(e));return r}advanceLexer(){const{maxTokens:e}=this._options,t=this._lexer.advance();if(void 0!==e&&t.kind!==La.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw Fa(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function so(e){const t=e.value;return lo(e.kind)+(null!=t?` "${t}"`:"")}function lo(e){return function(e){return e===La.BANG||e===La.DOLLAR||e===La.AMP||e===La.PAREN_L||e===La.PAREN_R||e===La.SPREAD||e===La.COLON||e===La.EQUALS||e===La.AT||e===La.BRACKET_L||e===La.BRACKET_R||e===La.BRACE_L||e===La.PIPE||e===La.BRACE_R}(e)?`"${e}"`:e}var uo=new Map,co=new Map,fo=!0,ho=!1;function po(e){return e.replace(/[\s,]+/g," ").trim()}function mo(e){var t,r,n,i=po(e);if(!uo.has(i)){var o=function(e,t){return new oo(e,t).parseDocument()}(e,{experimentalFragmentVariables:ho,allowLegacyFragmentVariables:ho});if(!o||"Document"!==o.kind)throw new Error("Not a valid GraphQL document.");uo.set(i,function(e){var t=new Set(e.definitions);t.forEach((function(e){e.loc&&delete e.loc,Object.keys(e).forEach((function(r){var n=e[r];n&&"object"==typeof n&&t.add(n)}))}));var r=e.loc;return r&&(delete r.startToken,delete r.endToken),e}((t=o,r=new Set,n=[],t.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var t=e.name.value,i=po((o=e.loc).source.body.substring(o.start,o.end)),a=co.get(t);a&&!a.has(i)?fo&&console.warn("Warning: fragment with name "+t+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):a||co.set(t,a=new Set),a.add(i),r.has(i)||(r.add(i),n.push(e))}else n.push(e);var o})),a(a({},t),{definitions:n}))))}return uo.get(i)}function yo(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];"string"==typeof e&&(e=[e]);var n=e[0];return t.forEach((function(t,r){t&&"Document"===t.kind?n+=t.loc.source.body:n+=t,n+=e[r+1]})),mo(n)}var vo,go=yo;(vo=yo||(yo={})).gql=go,vo.resetCaches=function(){uo.clear(),co.clear()},vo.disableFragmentWarnings=function(){fo=!1},vo.enableExperimentalFragmentVariables=function(){ho=!0},vo.disableExperimentalFragmentVariables=function(){ho=!1},yo.default=yo;var bo,wo,_o=!1,ko=wa.useSyncExternalStore||function(e,t,r){var n=t();!1===globalThis.__DEV__||_o||n===t()||(_o=!0,!1!==globalThis.__DEV__&&O.error(58));var i=ba.useState({inst:{value:n,getSnapshot:t}}),a=i[0].inst,o=i[1];return Ot?ba.useLayoutEffect((function(){Object.assign(a,{value:n,getSnapshot:t}),So(a)&&o({inst:a})}),[e,n,t]):Object.assign(a,{value:n,getSnapshot:t}),ba.useEffect((function(){return So(a)&&o({inst:a}),e((function(){So(a)&&o({inst:a})}))}),[e]),n};function So(e){var t=e.value,r=e.getSnapshot;try{return t!==r()}catch(e){return!0}}function Eo(e){var t;switch(e){case bo.Query:t="Query";break;case bo.Mutation:t="Mutation";break;case bo.Subscription:t="Subscription"}return t}function xo(e){wo||(wo=new he(ye.parser||1e3));var t,r,n=wo.get(e);if(n)return n;O(!!e&&!!e.kind,59,e);for(var i=[],a=[],o=[],s=[],l=0,u=e.definitions;l<u.length;l++){var c=u[l];if("FragmentDefinition"!==c.kind){if("OperationDefinition"===c.kind)switch(c.operation){case"query":a.push(c);break;case"mutation":o.push(c);break;case"subscription":s.push(c)}}else i.push(c)}O(!i.length||a.length||o.length||s.length,60),O(a.length+o.length+s.length<=1,61,e,a.length,s.length,o.length),r=a.length?bo.Query:bo.Mutation,a.length||o.length||(r=bo.Subscription);var f=a.length?a:o.length?o:s;O(1===f.length,62,e,f.length);var d=f[0];t=d.variableDefinitions||[];var h={name:d.name&&"Name"===d.name.kind?d.name.value:"data",type:r,variables:t};return wo.set(e,h),h}function Oo(e,t){var r=xo(e),n=Eo(t),i=Eo(r.type);O(r.type===t,63,n,n,i)}function To(e){var t=ba.useContext(ka()),r=e||t.client;return O(!!r,49),r}!function(e){e[e.Query=0]="Query",e[e.Mutation=1]="Mutation",e[e.Subscription=2]="Subscription"}(bo||(bo={})),xo.resetCache=function(){wo=void 0},!1!==globalThis.__DEV__&&ge("parser",(function(){return wo?wo.size:0}));var No=Symbol.for("apollo.hook.wrappers"),Co=Object.prototype.hasOwnProperty;function Do(e,t){return void 0===t&&(t=Object.create(null)),("useQuery",r=Io,(a=(i=(n=To(t&&t.client).queryManager)&&n[No])&&i.useQuery)?a(r):r)(e,t);var r,n,i,a}function Io(e,t){return function(e,t){var r=ba.useRef();r.current&&e===r.current.client&&t===r.current.query||(r.current=new Po(e,t,r.current));var n=r.current;return n.forceUpdateState=ba.useReducer((function(e){return e+1}),0)[1],n}(To(t.client),e).useQuery(t)}var Po=function(){function e(e,t,r){var n=this;this.client=e,this.query=t,this.forceUpdate=function(){return n.forceUpdateState()},this.ssrDisabledResult=wi({loading:!0,data:void 0,error:void 0,networkStatus:jn.loading}),this.skipStandbyResult=wi({loading:!1,data:void 0,error:void 0,networkStatus:jn.ready}),this.toQueryResultCache=new(wt?WeakMap:Map),Oo(t,bo.Query);var i=r&&r.result,a=i&&i.data;a&&(this.previousData=a)}return e.prototype.forceUpdateState=function(){!1!==globalThis.__DEV__&&O.warn(51)},e.prototype.executeQuery=function(e){var t,r=this;e.query&&Object.assign(this,{query:e.query}),this.watchQueryOptions=this.createWatchQueryOptions(this.queryHookOptions=e);var n=this.observable.reobserveAsConcast(this.getObsQueryOptions());return this.previousData=(null===(t=this.result)||void 0===t?void 0:t.data)||this.previousData,this.result=void 0,this.forceUpdate(),new Promise((function(e){var t;n.subscribe({next:function(e){t=e},error:function(){e(r.toQueryResult(r.observable.getCurrentResult()))},complete:function(){e(r.toQueryResult(t))}})}))},e.prototype.useQuery=function(e){var t=this;this.renderPromises=ba.useContext(ka()).renderPromises,this.useOptions(e);var r=this.useObservableQuery(),n=ko(ba.useCallback((function(e){if(t.renderPromises)return function(){};t.forceUpdate=e;var n=function(){var e=t.result,n=r.getCurrentResult();e&&e.loading===n.loading&&e.networkStatus===n.networkStatus&&Or(e.data,n.data)||t.setResult(n)},i=function(e){if(a.unsubscribe(),a=r.resubscribeAfterError(n,i),!Co.call(e,"graphQLErrors"))throw e;var o=t.result;(!o||o&&o.loading||!Or(e,o.error))&&t.setResult({data:o&&o.data,error:e,loading:!1,networkStatus:jn.error})},a=r.subscribe(n,i);return function(){setTimeout((function(){return a.unsubscribe()})),t.forceUpdate=function(){return t.forceUpdateState()}}}),[r,this.renderPromises,this.client.disableNetworkFetches]),(function(){return t.getCurrentResult()}),(function(){return t.getCurrentResult()}));return this.unsafeHandlePartialRefetch(n),this.toQueryResult(n)},e.prototype.useOptions=function(t){var r,n=this.createWatchQueryOptions(this.queryHookOptions=t),i=this.watchQueryOptions;Or(n,i)||(this.watchQueryOptions=n,i&&this.observable&&(this.observable.reobserve(this.getObsQueryOptions()),this.previousData=(null===(r=this.result)||void 0===r?void 0:r.data)||this.previousData,this.result=void 0)),this.onCompleted=t.onCompleted||e.prototype.onCompleted,this.onError=t.onError||e.prototype.onError,!this.renderPromises&&!this.client.disableNetworkFetches||!1!==this.queryHookOptions.ssr||this.queryHookOptions.skip?this.queryHookOptions.skip||"standby"===this.watchQueryOptions.fetchPolicy?this.result=this.skipStandbyResult:this.result!==this.ssrDisabledResult&&this.result!==this.skipStandbyResult||(this.result=void 0):this.result=this.ssrDisabledResult},e.prototype.getObsQueryOptions=function(){var e=[],t=this.client.defaultOptions.watchQuery;return t&&e.push(t),this.queryHookOptions.defaultOptions&&e.push(this.queryHookOptions.defaultOptions),e.push(zn(this.observable&&this.observable.options,this.watchQueryOptions)),e.reduce(mi)},e.prototype.createWatchQueryOptions=function(e){var t;void 0===e&&(e={});var r=e.skip,n=(e.ssr,e.onCompleted,e.onError,e.defaultOptions,o(e,["skip","ssr","onCompleted","onError","defaultOptions"])),i=Object.assign(n,{query:this.query});if(!this.renderPromises||"network-only"!==i.fetchPolicy&&"cache-and-network"!==i.fetchPolicy||(i.fetchPolicy="cache-first"),i.variables||(i.variables={}),r){var a=i.fetchPolicy,s=void 0===a?this.getDefaultFetchPolicy():a,l=i.initialFetchPolicy,u=void 0===l?s:l;Object.assign(i,{initialFetchPolicy:u,fetchPolicy:"standby"})}else i.fetchPolicy||(i.fetchPolicy=(null===(t=this.observable)||void 0===t?void 0:t.options.initialFetchPolicy)||this.getDefaultFetchPolicy());return i},e.prototype.getDefaultFetchPolicy=function(){var e,t;return(null===(e=this.queryHookOptions.defaultOptions)||void 0===e?void 0:e.fetchPolicy)||(null===(t=this.client.defaultOptions.watchQuery)||void 0===t?void 0:t.fetchPolicy)||"cache-first"},e.prototype.onCompleted=function(e){},e.prototype.onError=function(e){},e.prototype.useObservableQuery=function(){var e=this.observable=this.renderPromises&&this.renderPromises.getSSRObservable(this.watchQueryOptions)||this.observable||this.client.watchQuery(this.getObsQueryOptions());this.obsQueryFields=ba.useMemo((function(){return{refetch:e.refetch.bind(e),reobserve:e.reobserve.bind(e),fetchMore:e.fetchMore.bind(e),updateQuery:e.updateQuery.bind(e),startPolling:e.startPolling.bind(e),stopPolling:e.stopPolling.bind(e),subscribeToMore:e.subscribeToMore.bind(e)}}),[e]);var t=!(!1===this.queryHookOptions.ssr||this.queryHookOptions.skip);return this.renderPromises&&t&&(this.renderPromises.registerSSRObservable(e),e.getCurrentResult().loading&&this.renderPromises.addObservableQueryPromise(e)),e},e.prototype.setResult=function(e){var t=this.result;t&&t.data&&(this.previousData=t.data),this.result=e,this.forceUpdate(),this.handleErrorOrCompleted(e,t)},e.prototype.handleErrorOrCompleted=function(e,t){var r=this;if(!e.loading){var n=this.toApolloError(e);Promise.resolve().then((function(){n?r.onError(n):e.data&&(null==t?void 0:t.networkStatus)!==e.networkStatus&&e.networkStatus===jn.ready&&r.onCompleted(e.data)})).catch((function(e){!1!==globalThis.__DEV__&&O.warn(e)}))}},e.prototype.toApolloError=function(e){return Mt(e.errors)?new It({graphQLErrors:e.errors}):e.error},e.prototype.getCurrentResult=function(){return this.result||this.handleErrorOrCompleted(this.result=this.observable.getCurrentResult()),this.result},e.prototype.toQueryResult=function(e){var t=this.toQueryResultCache.get(e);if(t)return t;var r=e.data,n=(e.partial,o(e,["data","partial"]));return this.toQueryResultCache.set(e,t=a(a(a({data:r},n),this.obsQueryFields),{client:this.client,observable:this.observable,variables:this.observable.variables,called:!this.queryHookOptions.skip,previousData:this.previousData})),!t.error&&Mt(e.errors)&&(t.error=new It({graphQLErrors:e.errors})),t},e.prototype.unsafeHandlePartialRefetch=function(e){!e.partial||!this.queryHookOptions.partialRefetch||e.loading||e.data&&0!==Object.keys(e.data).length||"cache-only"===this.observable.options.fetchPolicy||(Object.assign(e,{loading:!0,networkStatus:jn.refetch}),this.observable.refetch())},e}();const Mo=yo`
3
3
  query Query {
4
4
  projects {
@@ -9,7 +9,7 @@
9
9
  openTaskCount
10
10
  }
11
11
  }
12
- `;function Ao(){return Do(Mo)}var Fo=i(540);const jo=["flex","align-items-center","hover-bg-secondary","p-3","mt-2","cursor-pointer"].join(" "),Lo=[jo,"rounded","border","border-solid","border-secondary","text-primary","bg-secondary"].join(" "),Ro=({onChange:t,options:r,selected:n,placeholder:i,className:a,filterPlaceholder:o="Filter by text",isFilterable:s=!0})=>{const l=[{id:null,label:i,value:""},...r],[u,c]=(0,e.useState)(!1),[f,d]=(0,e.useState)(null),[h,p]=(0,e.useState)(r.find((e=>String(e.id)===n))||l[0]);return(0,e.useEffect)((()=>{const e=()=>{u&&c(!1)};return document.body.addEventListener("click",e),()=>document.body.removeEventListener("click",e)}),[u]),Fo.createElement("ul",{className:a},s&&u&&Fo.createElement("li",{className:"flex"},Fo.createElement(zo,{placeholder:o,onTextChange:e=>d(e)})),l.filter((e=>null===f||new RegExp(f).test(e.value))).map(((e,r)=>{return Fo.createElement("li",{key:r,"data-value":e.value,onClick:r=>{return[r.stopPropagation(),(n=e,void(u?(p(n),c(!1),t(n)):c(!0)))];var n},className:(n=e,i=h,n.value===i.value?Lo:u||n.value===i.value?jo:"hidden")},e.label);var n,i})))};function zo({onTextChange:e,placeholder:t}){return Fo.createElement("input",{type:"text",className:"p-3 rounded border-secondary border-solid outline-none",autoFocus:!0,placeholder:t,onClick:e=>e.stopPropagation(),onChange:t=>{const{target:{value:r}}=t;e(r)}})}var Vo=i(540);function qo({onChange:e,selected:t}){const{data:r,loading:n}=Ao(),i=(null==r?void 0:r.projects)||[],a=i.map((e=>({id:e.id,label:Vo.createElement("div",{className:"flex items-center"},Vo.createElement("span",{style:{backgroundColor:e.color},className:"flex w-2/8 rounded w-8 h-8 mr-3 cursor-pointer"}),Vo.createElement("span",{className:"flex"},e.name)),value:e.name})));return n?null:Vo.createElement(Ro,{options:a,selected:String(t),className:"max-h-96 overflow-y-scroll overflow-x-none w-3/4",placeholder:"Any project",filterPlaceholder:"Filter by project",onChange:t=>{const r=i.find((e=>e.id==t.id));e(r)}})}var Uo=i(540);const Qo=["block","no-underline","p-3","mt-2"],Bo=[...Qo,"rounded","bg-secondary","text-primary"].join(" "),$o=[...Qo,"text-accent","hover-bg-secondary"].join(" "),Wo=(e,t)=>{let r=null;return Object.values(t).flat().forEach((t=>{t.href===e&&(r=t)})),r};function Ho(){const{params:t,cookies:r}=(0,e.useContext)(Ea),n={Tasks:[{text:"All tasks",href:"/tasks/"},{text:"New task",href:"/tasks/new/"}],Projects:[{text:"All projects",href:"/projects"}]},i=Wo(location.pathname,n);return Uo.createElement(Uo.Fragment,null,...Object.keys(n).map((e=>{const t=n[e];return Uo.createElement(Uo.Fragment,null,Uo.createElement("h3",null,e),Uo.createElement("ul",{className:"w-3/4"},...t.flatMap((e=>Uo.createElement("li",null,Uo.createElement("a",{className:i==e?Bo:$o,href:e.href},e.text))))))})),Uo.createElement("h3",null,"Settings"),Uo.createElement(qo,{selected:t.projectId||r.projectId,onChange:e=>{e?(document.cookie=`projectId=${e.id}; path=/`,location.hash=`projectId=${e.id}`):(document.cookie="projectId=; path=/; max-age=0",location.hash=""),location.reload()}}))}var Go=i(942),Zo=i.n(Go);class Yo extends Error{}class Ko extends Yo{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class Jo extends Yo{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class Xo extends Yo{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class es extends Yo{}class ts extends Yo{constructor(e){super(`Invalid unit ${e}`)}}class rs extends Yo{}class ns extends Yo{constructor(){super("Zone is an abstract class")}}const is="numeric",as="short",os="long",ss={year:is,month:is,day:is},ls={year:is,month:as,day:is},us={year:is,month:as,day:is,weekday:as},cs={year:is,month:os,day:is},fs={year:is,month:os,day:is,weekday:os},ds={hour:is,minute:is},hs={hour:is,minute:is,second:is},ps={hour:is,minute:is,second:is,timeZoneName:as},ms={hour:is,minute:is,second:is,timeZoneName:os},ys={hour:is,minute:is,hourCycle:"h23"},vs={hour:is,minute:is,second:is,hourCycle:"h23"},gs={hour:is,minute:is,second:is,hourCycle:"h23",timeZoneName:as},bs={hour:is,minute:is,second:is,hourCycle:"h23",timeZoneName:os},ws={year:is,month:is,day:is,hour:is,minute:is},_s={year:is,month:is,day:is,hour:is,minute:is,second:is},ks={year:is,month:as,day:is,hour:is,minute:is},Ss={year:is,month:as,day:is,hour:is,minute:is,second:is},Es={year:is,month:as,day:is,weekday:as,hour:is,minute:is},xs={year:is,month:os,day:is,hour:is,minute:is,timeZoneName:as},Os={year:is,month:os,day:is,hour:is,minute:is,second:is,timeZoneName:as},Ts={year:is,month:os,day:is,weekday:os,hour:is,minute:is,timeZoneName:os},Ns={year:is,month:os,day:is,weekday:os,hour:is,minute:is,second:is,timeZoneName:os};class Cs{get type(){throw new ns}get name(){throw new ns}get ianaName(){return this.name}get isUniversal(){throw new ns}offsetName(e,t){throw new ns}formatOffset(e,t){throw new ns}offset(e){throw new ns}equals(e){throw new ns}get isValid(){throw new ns}}let Ds=null;class Is extends Cs{static get instance(){return null===Ds&&(Ds=new Is),Ds}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:r}){return Bl(e,t,r)}formatOffset(e,t){return Gl(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return"system"===e.type}get isValid(){return!0}}let Ps={};const Ms={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};let As={};class Fs extends Cs{static create(e){return As[e]||(As[e]=new Fs(e)),As[e]}static resetCache(){As={},Ps={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(e){return!1}}constructor(e){super(),this.zoneName=e,this.valid=Fs.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:r}){return Bl(e,t,r,this.name)}formatOffset(e,t){return Gl(this.offset(e),t)}offset(e){const t=new Date(e);if(isNaN(t))return NaN;const r=(n=this.name,Ps[n]||(Ps[n]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:n,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),Ps[n]);var n;let[i,a,o,s,l,u,c]=r.formatToParts?function(e,t){const r=e.formatToParts(t),n=[];for(let e=0;e<r.length;e++){const{type:t,value:i}=r[e],a=Ms[t];"era"===t?n[a]=i:Sl(a)||(n[a]=parseInt(i,10))}return n}(r,t):function(e,t){const r=e.format(t).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,i,a,o,s,l,u,c]=n;return[o,i,a,s,l,u,c]}(r,t);"BC"===s&&(i=1-Math.abs(i));let f=+t;const d=f%1e3;return f-=d>=0?d:1e3+d,(Vl({year:i,month:a,day:o,hour:24===l?0:l,minute:u,second:c,millisecond:0})-f)/6e4}equals(e){return"iana"===e.type&&e.name===this.name}get isValid(){return this.valid}}let js={},Ls={};function Rs(e,t={}){const r=JSON.stringify([e,t]);let n=Ls[r];return n||(n=new Intl.DateTimeFormat(e,t),Ls[r]=n),n}let zs={},Vs={},qs=null,Us={};function Qs(e,t,r,n){const i=e.listingMode();return"error"===i?null:"en"===i?r(t):n(t)}class Bs{constructor(e,t,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;const{padTo:n,floor:i,...a}=r;if(!t||Object.keys(a).length>0){const t={useGrouping:!1,...r};r.padTo>0&&(t.minimumIntegerDigits=r.padTo),this.inf=function(e,t={}){const r=JSON.stringify([e,t]);let n=zs[r];return n||(n=new Intl.NumberFormat(e,t),zs[r]=n),n}(e,t)}}format(e){if(this.inf){const t=this.floor?Math.floor(e):e;return this.inf.format(t)}return Pl(this.floor?Math.floor(e):jl(e,3),this.padTo)}}class $s{constructor(e,t,r){let n;if(this.opts=r,this.originalZone=void 0,this.opts.timeZone)this.dt=e;else if("fixed"===e.zone.type){const t=e.offset/60*-1,r=t>=0?`Etc/GMT+${t}`:`Etc/GMT${t}`;0!==e.offset&&Fs.create(r).valid?(n=r,this.dt=e):(n="UTC",this.dt=0===e.offset?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else"system"===e.zone.type?this.dt=e:"iana"===e.zone.type?(this.dt=e,n=e.zone.name):(n="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const i={...this.opts};i.timeZone=i.timeZone||n,this.dtf=Rs(t,i)}format(){return this.originalZone?this.formatToParts().map((({value:e})=>e)).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map((e=>{if("timeZoneName"===e.type){const t=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...e,value:t}}return e})):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class Ws{constructor(e,t,r){this.opts={style:"long",...r},!t&&Ol()&&(this.rtf=function(e,t={}){const{base:r,...n}=t,i=JSON.stringify([e,n]);let a=Vs[i];return a||(a=new Intl.RelativeTimeFormat(e,t),Vs[i]=a),a}(e,r))}format(e,t){return this.rtf?this.rtf.format(e,t):function(e,t,r="always",n=!1){const i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},a=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===r&&a){const r="days"===e;switch(t){case 1:return r?"tomorrow":`next ${i[e][0]}`;case-1:return r?"yesterday":`last ${i[e][0]}`;case 0:return r?"today":`this ${i[e][0]}`}}const o=Object.is(t,-0)||t<0,s=Math.abs(t),l=1===s,u=i[e],c=n?l?u[1]:u[2]||u[1]:l?i[e][0]:e;return o?`${s} ${c} ago`:`in ${s} ${c}`}(t,e,this.opts.numeric,"long"!==this.opts.style)}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}}const Hs={firstDay:1,minimalDays:4,weekend:[6,7]};class Gs{static fromOpts(e){return Gs.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,t,r,n,i=!1){const a=e||sl.defaultLocale,o=a||(i?"en-US":qs||(qs=(new Intl.DateTimeFormat).resolvedOptions().locale,qs)),s=t||sl.defaultNumberingSystem,l=r||sl.defaultOutputCalendar,u=Dl(n)||sl.defaultWeekSettings;return new Gs(o,s,l,u,a)}static resetCache(){qs=null,Ls={},zs={},Vs={}}static fromObject({locale:e,numberingSystem:t,outputCalendar:r,weekSettings:n}={}){return Gs.create(e,t,r,n)}constructor(e,t,r,n,i){const[a,o,s]=function(e){const t=e.indexOf("-x-");-1!==t&&(e=e.substring(0,t));const r=e.indexOf("-u-");if(-1===r)return[e];{let t,n;try{t=Rs(e).resolvedOptions(),n=e}catch(i){const a=e.substring(0,r);t=Rs(a).resolvedOptions(),n=a}const{numberingSystem:i,calendar:a}=t;return[n,i,a]}}(e);this.locale=a,this.numberingSystem=t||o||null,this.outputCalendar=r||s||null,this.weekSettings=n,this.intl=function(e,t,r){return r||t?(e.includes("-u-")||(e+="-u"),r&&(e+=`-ca-${r}`),t&&(e+=`-nu-${t}`),e):e}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}get fastNumbers(){var e;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(e=this).numberingSystem||"latn"===e.numberingSystem)&&("latn"===e.numberingSystem||!e.locale||e.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),t=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return e&&t?"en":"intl"}clone(e){return e&&0!==Object.getOwnPropertyNames(e).length?Gs.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,Dl(e.weekSettings)||this.weekSettings,e.defaultToEN||!1):this}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,t=!1){return Qs(this,e,Xl,(()=>{const r=t?{month:e,day:"numeric"}:{month:e},n=t?"format":"standalone";return this.monthsCache[n][e]||(this.monthsCache[n][e]=function(e){const t=[];for(let r=1;r<=12;r++){const n=ef.utc(2009,r,1);t.push(e(n))}return t}((e=>this.extract(e,r,"month")))),this.monthsCache[n][e]}))}weekdays(e,t=!1){return Qs(this,e,nu,(()=>{const r=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},n=t?"format":"standalone";return this.weekdaysCache[n][e]||(this.weekdaysCache[n][e]=function(e){const t=[];for(let r=1;r<=7;r++){const n=ef.utc(2016,11,13+r);t.push(e(n))}return t}((e=>this.extract(e,r,"weekday")))),this.weekdaysCache[n][e]}))}meridiems(){return Qs(this,void 0,(()=>iu),(()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[ef.utc(2016,11,13,9),ef.utc(2016,11,13,19)].map((t=>this.extract(t,e,"dayperiod")))}return this.meridiemCache}))}eras(e){return Qs(this,e,lu,(()=>{const t={era:e};return this.eraCache[e]||(this.eraCache[e]=[ef.utc(-40,1,1),ef.utc(2017,1,1)].map((e=>this.extract(e,t,"era")))),this.eraCache[e]}))}extract(e,t,r){const n=this.dtFormatter(e,t).formatToParts().find((e=>e.type.toLowerCase()===r));return n?n.value:null}numberFormatter(e={}){return new Bs(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new $s(e,this.intl,t)}relFormatter(e={}){return new Ws(this.intl,this.isEnglish(),e)}listFormatter(e={}){return function(e,t={}){const r=JSON.stringify([e,t]);let n=js[r];return n||(n=new Intl.ListFormat(e,t),js[r]=n),n}(this.intl,e)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:Tl()?function(e){let t=Us[e];if(!t){const r=new Intl.Locale(e);t="getWeekInfo"in r?r.getWeekInfo():r.weekInfo,Us[e]=t}return t}(this.locale):Hs}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let Zs=null;class Ys extends Cs{static get utcInstance(){return null===Zs&&(Zs=new Ys(0)),Zs}static instance(e){return 0===e?Ys.utcInstance:new Ys(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new Ys($l(t[1],t[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${Gl(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${Gl(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,t){return Gl(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return"fixed"===e.type&&e.fixed===this.fixed}get isValid(){return!0}}class Ks extends Cs{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function Js(e,t){if(Sl(e)||null===e)return t;if(e instanceof Cs)return e;if("string"==typeof e){const r=e.toLowerCase();return"default"===r?t:"local"===r||"system"===r?Is.instance:"utc"===r||"gmt"===r?Ys.utcInstance:Ys.parseSpecifier(r)||Fs.create(e)}return El(e)?Ys.instance(e):"object"==typeof e&&"offset"in e&&"function"==typeof e.offset?e:new Ks(e)}let Xs,el=()=>Date.now(),tl="system",rl=null,nl=null,il=null,al=60,ol=null;class sl{static get now(){return el}static set now(e){el=e}static set defaultZone(e){tl=e}static get defaultZone(){return Js(tl,Is.instance)}static get defaultLocale(){return rl}static set defaultLocale(e){rl=e}static get defaultNumberingSystem(){return nl}static set defaultNumberingSystem(e){nl=e}static get defaultOutputCalendar(){return il}static set defaultOutputCalendar(e){il=e}static get defaultWeekSettings(){return ol}static set defaultWeekSettings(e){ol=Dl(e)}static get twoDigitCutoffYear(){return al}static set twoDigitCutoffYear(e){al=e%100}static get throwOnInvalid(){return Xs}static set throwOnInvalid(e){Xs=e}static resetCaches(){Gs.resetCache(),Fs.resetCache()}}class ll{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const ul=[0,31,59,90,120,151,181,212,243,273,304,334],cl=[0,31,60,91,121,152,182,213,244,274,305,335];function fl(e,t){return new ll("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function dl(e,t,r){const n=new Date(Date.UTC(e,t-1,r));e<100&&e>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);const i=n.getUTCDay();return 0===i?7:i}function hl(e,t,r){return r+(Ll(e)?cl:ul)[t-1]}function pl(e,t){const r=Ll(e)?cl:ul,n=r.findIndex((e=>e<t));return{month:n+1,day:t-r[n]}}function ml(e,t){return(e-t+7)%7+1}function yl(e,t=4,r=1){const{year:n,month:i,day:a}=e,o=hl(n,i,a),s=ml(dl(n,i,a),r);let l,u=Math.floor((o-s+14-t)/7);return u<1?(l=n-1,u=Ul(l,t,r)):u>Ul(n,t,r)?(l=n+1,u=1):l=n,{weekYear:l,weekNumber:u,weekday:s,...Zl(e)}}function vl(e,t=4,r=1){const{weekYear:n,weekNumber:i,weekday:a}=e,o=ml(dl(n,1,t),r),s=Rl(n);let l,u=7*i+a-o-7+t;u<1?(l=n-1,u+=Rl(l)):u>s?(l=n+1,u-=Rl(n)):l=n;const{month:c,day:f}=pl(l,u);return{year:l,month:c,day:f,...Zl(e)}}function gl(e){const{year:t,month:r,day:n}=e;return{year:t,ordinal:hl(t,r,n),...Zl(e)}}function bl(e){const{year:t,ordinal:r}=e,{month:n,day:i}=pl(t,r);return{year:t,month:n,day:i,...Zl(e)}}function wl(e,t){if(!Sl(e.localWeekday)||!Sl(e.localWeekNumber)||!Sl(e.localWeekYear)){if(!Sl(e.weekday)||!Sl(e.weekNumber)||!Sl(e.weekYear))throw new es("Cannot mix locale-based week fields with ISO-based week fields");return Sl(e.localWeekday)||(e.weekday=e.localWeekday),Sl(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),Sl(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}return{minDaysInFirstWeek:4,startOfWeek:1}}function _l(e){const t=xl(e.year),r=Il(e.month,1,12),n=Il(e.day,1,zl(e.year,e.month));return t?r?!n&&fl("day",e.day):fl("month",e.month):fl("year",e.year)}function kl(e){const{hour:t,minute:r,second:n,millisecond:i}=e,a=Il(t,0,23)||24===t&&0===r&&0===n&&0===i,o=Il(r,0,59),s=Il(n,0,59),l=Il(i,0,999);return a?o?s?!l&&fl("millisecond",i):fl("second",n):fl("minute",r):fl("hour",t)}function Sl(e){return void 0===e}function El(e){return"number"==typeof e}function xl(e){return"number"==typeof e&&e%1==0}function Ol(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function Tl(){try{return"undefined"!=typeof Intl&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(e){return!1}}function Nl(e,t,r){if(0!==e.length)return e.reduce(((e,n)=>{const i=[t(n),n];return e&&r(e[0],i[0])===e[0]?e:i}),null)[1]}function Cl(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Dl(e){if(null==e)return null;if("object"!=typeof e)throw new rs("Week settings must be an object");if(!Il(e.firstDay,1,7)||!Il(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some((e=>!Il(e,1,7))))throw new rs("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function Il(e,t,r){return xl(e)&&e>=t&&e<=r}function Pl(e,t=2){let r;return r=e<0?"-"+(""+-e).padStart(t,"0"):(""+e).padStart(t,"0"),r}function Ml(e){return Sl(e)||null===e||""===e?void 0:parseInt(e,10)}function Al(e){return Sl(e)||null===e||""===e?void 0:parseFloat(e)}function Fl(e){if(!Sl(e)&&null!==e&&""!==e){const t=1e3*parseFloat("0."+e);return Math.floor(t)}}function jl(e,t,r=!1){const n=10**t;return(r?Math.trunc:Math.round)(e*n)/n}function Ll(e){return e%4==0&&(e%100!=0||e%400==0)}function Rl(e){return Ll(e)?366:365}function zl(e,t){const r=(n=t-1)-12*Math.floor(n/12)+1;var n;return 2===r?Ll(e+(t-r)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function Vl(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function ql(e,t,r){return-ml(dl(e,1,t),r)+t-1}function Ul(e,t=4,r=1){const n=ql(e,t,r),i=ql(e+1,t,r);return(Rl(e)-n+i)/7}function Ql(e){return e>99?e:e>sl.twoDigitCutoffYear?1900+e:2e3+e}function Bl(e,t,r,n=null){const i=new Date(e),a={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(a.timeZone=n);const o={timeZoneName:t,...a},s=new Intl.DateTimeFormat(r,o).formatToParts(i).find((e=>"timezonename"===e.type.toLowerCase()));return s?s.value:null}function $l(e,t){let r=parseInt(e,10);Number.isNaN(r)&&(r=0);const n=parseInt(t,10)||0;return 60*r+(r<0||Object.is(r,-0)?-n:n)}function Wl(e){const t=Number(e);if("boolean"==typeof e||""===e||Number.isNaN(t))throw new rs(`Invalid unit value ${e}`);return t}function Hl(e,t){const r={};for(const n in e)if(Cl(e,n)){const i=e[n];if(null==i)continue;r[t(n)]=Wl(i)}return r}function Gl(e,t){const r=Math.trunc(Math.abs(e/60)),n=Math.trunc(Math.abs(e%60)),i=e>=0?"+":"-";switch(t){case"short":return`${i}${Pl(r,2)}:${Pl(n,2)}`;case"narrow":return`${i}${r}${n>0?`:${n}`:""}`;case"techie":return`${i}${Pl(r,2)}${Pl(n,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function Zl(e){return function(e,t){return["hour","minute","second","millisecond"].reduce(((t,r)=>(t[r]=e[r],t)),{})}(e)}const Yl=["January","February","March","April","May","June","July","August","September","October","November","December"],Kl=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Jl=["J","F","M","A","M","J","J","A","S","O","N","D"];function Xl(e){switch(e){case"narrow":return[...Jl];case"short":return[...Kl];case"long":return[...Yl];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const eu=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],tu=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],ru=["M","T","W","T","F","S","S"];function nu(e){switch(e){case"narrow":return[...ru];case"short":return[...tu];case"long":return[...eu];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const iu=["AM","PM"],au=["Before Christ","Anno Domini"],ou=["BC","AD"],su=["B","A"];function lu(e){switch(e){case"narrow":return[...su];case"short":return[...ou];case"long":return[...au];default:return null}}function uu(e,t){let r="";for(const n of e)n.literal?r+=n.val:r+=t(n.val);return r}const cu={D:ss,DD:ls,DDD:cs,DDDD:fs,t:ds,tt:hs,ttt:ps,tttt:ms,T:ys,TT:vs,TTT:gs,TTTT:bs,f:ws,ff:ks,fff:xs,ffff:Ts,F:_s,FF:Ss,FFF:Os,FFFF:Ns};class fu{static create(e,t={}){return new fu(e,t)}static parseFormat(e){let t=null,r="",n=!1;const i=[];for(let a=0;a<e.length;a++){const o=e.charAt(a);"'"===o?(r.length>0&&i.push({literal:n||/^\s+$/.test(r),val:r}),t=null,r="",n=!n):n||o===t?r+=o:(r.length>0&&i.push({literal:/^\s+$/.test(r),val:r}),r=o,t=o)}return r.length>0&&i.push({literal:n||/^\s+$/.test(r),val:r}),i}static macroTokenToFormatOpts(e){return cu[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...t}).format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t})}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){return this.dtFormatter(e.start,t).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0){if(this.opts.forceSimple)return Pl(e,t);const r={...this.opts};return t>0&&(r.padTo=t),this.loc.numberFormatter(r).format(e)}formatDateTimeFromString(e,t){const r="en"===this.loc.listingMode(),n=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,i=(t,r)=>this.loc.extract(e,t,r),a=t=>e.isOffsetFixed&&0===e.offset&&t.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,t.format):"",o=(t,n)=>r?function(e,t){return Xl(t)[e.month-1]}(e,t):i(n?{month:t}:{month:t,day:"numeric"},"month"),s=(t,n)=>r?function(e,t){return nu(t)[e.weekday-1]}(e,t):i(n?{weekday:t}:{weekday:t,month:"long",day:"numeric"},"weekday"),l=t=>{const r=fu.macroTokenToFormatOpts(t);return r?this.formatWithSystemDefault(e,r):t},u=t=>r?function(e,t){return lu(t)[e.year<0?0:1]}(e,t):i({era:t},"era");return uu(fu.parseFormat(t),(t=>{switch(t){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12==0?12:e.hour%12);case"hh":return this.num(e.hour%12==0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return a({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return a({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return a({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return r?function(e){return iu[e.hour<12?0:1]}(e):i({hour:"numeric",hourCycle:"h12"},"dayperiod");case"d":return n?i({day:"numeric"},"day"):this.num(e.day);case"dd":return n?i({day:"2-digit"},"day"):this.num(e.day,2);case"c":case"E":return this.num(e.weekday);case"ccc":return s("short",!0);case"cccc":return s("long",!0);case"ccccc":return s("narrow",!0);case"EEE":return s("short",!1);case"EEEE":return s("long",!1);case"EEEEE":return s("narrow",!1);case"L":return n?i({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return n?i({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return o("short",!0);case"LLLL":return o("long",!0);case"LLLLL":return o("narrow",!0);case"M":return n?i({month:"numeric"},"month"):this.num(e.month);case"MM":return n?i({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return o("short",!1);case"MMMM":return o("long",!1);case"MMMMM":return o("narrow",!1);case"y":return n?i({year:"numeric"},"year"):this.num(e.year);case"yy":return n?i({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return n?i({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return n?i({year:"numeric"},"year"):this.num(e.year,6);case"G":return u("short");case"GG":return u("long");case"GGGGG":return u("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return l(t)}}))}formatDurationFromString(e,t){const r=e=>{switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},n=fu.parseFormat(t),i=n.reduce(((e,{literal:t,val:r})=>t?e:e.concat(r)),[]);return uu(n,(e=>t=>{const n=r(t);return n?this.num(e.get(n),t.length):t})(e.shiftTo(...i.map(r).filter((e=>e)))))}}const du=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function hu(...e){const t=e.reduce(((e,t)=>e+t.source),"");return RegExp(`^${t}$`)}function pu(...e){return t=>e.reduce((([e,r,n],i)=>{const[a,o,s]=i(t,n);return[{...e,...a},o||r,s]}),[{},null,1]).slice(0,2)}function mu(e,...t){if(null==e)return[null,null];for(const[r,n]of t){const t=r.exec(e);if(t)return n(t)}return[null,null]}function yu(...e){return(t,r)=>{const n={};let i;for(i=0;i<e.length;i++)n[e[i]]=Ml(t[r+i]);return[n,null,r+i]}}const vu=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,gu=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,bu=RegExp(`${gu.source}(?:${vu.source}?(?:\\[(${du.source})\\])?)?`),wu=RegExp(`(?:T${bu.source})?`),_u=yu("weekYear","weekNumber","weekDay"),ku=yu("year","ordinal"),Su=RegExp(`${gu.source} ?(?:${vu.source}|(${du.source}))?`),Eu=RegExp(`(?: ${Su.source})?`);function xu(e,t,r){const n=e[t];return Sl(n)?r:Ml(n)}function Ou(e,t){return[{hours:xu(e,t,0),minutes:xu(e,t+1,0),seconds:xu(e,t+2,0),milliseconds:Fl(e[t+3])},null,t+4]}function Tu(e,t){const r=!e[t]&&!e[t+1],n=$l(e[t+1],e[t+2]);return[{},r?null:Ys.instance(n),t+3]}function Nu(e,t){return[{},e[t]?Fs.create(e[t]):null,t+1]}const Cu=RegExp(`^T?${gu.source}$`),Du=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function Iu(e){const[t,r,n,i,a,o,s,l,u]=e,c="-"===t[0],f=l&&"-"===l[0],d=(e,t=!1)=>void 0!==e&&(t||e&&c)?-e:e;return[{years:d(Al(r)),months:d(Al(n)),weeks:d(Al(i)),days:d(Al(a)),hours:d(Al(o)),minutes:d(Al(s)),seconds:d(Al(l),"-0"===l),milliseconds:d(Fl(u),f)}]}const Pu={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Mu(e,t,r,n,i,a,o){const s={year:2===t.length?Ql(Ml(t)):Ml(t),month:Kl.indexOf(r)+1,day:Ml(n),hour:Ml(i),minute:Ml(a)};return o&&(s.second=Ml(o)),e&&(s.weekday=e.length>3?eu.indexOf(e)+1:tu.indexOf(e)+1),s}const Au=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Fu(e){const[,t,r,n,i,a,o,s,l,u,c,f]=e,d=Mu(t,i,n,r,a,o,s);let h;return h=l?Pu[l]:u?0:$l(c,f),[d,new Ys(h)]}const ju=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Lu=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Ru=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function zu(e){const[,t,r,n,i,a,o,s]=e;return[Mu(t,i,n,r,a,o,s),Ys.utcInstance]}function Vu(e){const[,t,r,n,i,a,o,s]=e;return[Mu(t,s,r,n,i,a,o),Ys.utcInstance]}const qu=hu(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,wu),Uu=hu(/(\d{4})-?W(\d\d)(?:-?(\d))?/,wu),Qu=hu(/(\d{4})-?(\d{3})/,wu),Bu=hu(bu),$u=pu((function(e,t){return[{year:xu(e,t),month:xu(e,t+1,1),day:xu(e,t+2,1)},null,t+3]}),Ou,Tu,Nu),Wu=pu(_u,Ou,Tu,Nu),Hu=pu(ku,Ou,Tu,Nu),Gu=pu(Ou,Tu,Nu),Zu=pu(Ou),Yu=hu(/(\d{4})-(\d\d)-(\d\d)/,Eu),Ku=hu(Su),Ju=pu(Ou,Tu,Nu),Xu="Invalid Duration",ec={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},tc={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...ec},rc={years:{quarters:4,months:12,weeks:52.1775,days:365.2425,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...ec},nc=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],ic=nc.slice(0).reverse();function ac(e,t,r=!1){const n={values:r?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new lc(n)}function oc(e,t){let r=t.milliseconds??0;for(const n of ic.slice(1))t[n]&&(r+=t[n]*e[n].milliseconds);return r}function sc(e,t){const r=oc(e,t)<0?-1:1;nc.reduceRight(((n,i)=>{if(Sl(t[i]))return n;if(n){const a=t[n]*r,o=e[i][n],s=Math.floor(a/o);t[i]+=s*r,t[n]-=s*o*r}return i}),null),nc.reduce(((r,n)=>{if(Sl(t[n]))return r;if(r){const i=t[r]%1;t[r]-=i,t[n]+=i*e[r][n]}return n}),null)}class lc{constructor(e){const t="longterm"===e.conversionAccuracy||!1;let r=t?rc:tc;e.matrix&&(r=e.matrix),this.values=e.values,this.loc=e.loc||Gs.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=r,this.isLuxonDuration=!0}static fromMillis(e,t){return lc.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(null==e||"object"!=typeof e)throw new rs("Duration.fromObject: argument expected to be an object, got "+(null===e?"null":typeof e));return new lc({values:Hl(e,lc.normalizeUnit),loc:Gs.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(El(e))return lc.fromMillis(e);if(lc.isDuration(e))return e;if("object"==typeof e)return lc.fromObject(e);throw new rs(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,t){const[r]=function(e){return mu(e,[Du,Iu])}(e);return r?lc.fromObject(r,t):lc.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,t){const[r]=function(e){return mu(e,[Cu,Zu])}(e);return r?lc.fromObject(r,t):lc.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,t=null){if(!e)throw new rs("need to specify a reason the Duration is invalid");const r=e instanceof ll?e:new ll(e,t);if(sl.throwOnInvalid)throw new Xo(r);return new lc({invalid:r})}static normalizeUnit(e){const t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new ts(e);return t}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){const r={...t,floor:!1!==t.round&&!1!==t.floor};return this.isValid?fu.create(this.loc,r).formatDurationFromString(this,e):Xu}toHuman(e={}){if(!this.isValid)return Xu;const t=nc.map((t=>{const r=this.values[t];return Sl(r)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:t.slice(0,-1)}).format(r)})).filter((e=>e));return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(t)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return 0!==this.years&&(e+=this.years+"Y"),0===this.months&&0===this.quarters||(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(e+=jl(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const t=this.toMillis();return t<0||t>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},ef.fromMillis(t,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?oc(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const t=lc.fromDurationLike(e),r={};for(const e of nc)(Cl(t.values,e)||Cl(this.values,e))&&(r[e]=t.get(e)+this.get(e));return ac(this,{values:r},!0)}minus(e){if(!this.isValid)return this;const t=lc.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;const t={};for(const r of Object.keys(this.values))t[r]=Wl(e(this.values[r],r));return ac(this,{values:t},!0)}get(e){return this[lc.normalizeUnit(e)]}set(e){return this.isValid?ac(this,{values:{...this.values,...Hl(e,lc.normalizeUnit)}}):this}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:r,matrix:n}={}){return ac(this,{loc:this.loc.clone({locale:e,numberingSystem:t}),matrix:n,conversionAccuracy:r})}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return sc(this.matrix,e),ac(this,{values:e},!0)}rescale(){return this.isValid?ac(this,{values:function(e){const t={};for(const[r,n]of Object.entries(e))0!==n&&(t[r]=n);return t}(this.normalize().shiftToAll().toObject())},!0):this}shiftTo(...e){if(!this.isValid)return this;if(0===e.length)return this;e=e.map((e=>lc.normalizeUnit(e)));const t={},r={},n=this.toObject();let i;for(const a of nc)if(e.indexOf(a)>=0){i=a;let e=0;for(const t in r)e+=this.matrix[t][a]*r[t],r[t]=0;El(n[a])&&(e+=n[a]);const o=Math.trunc(e);t[a]=o,r[a]=(1e3*e-1e3*o)/1e3}else El(n[a])&&(r[a]=n[a]);for(const e in r)0!==r[e]&&(t[i]+=e===i?r[e]:r[e]/this.matrix[i][e]);return sc(this.matrix,t),ac(this,{values:t},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const t of Object.keys(this.values))e[t]=0===this.values[t]?0:-this.values[t];return ac(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid)return!1;if(!this.loc.equals(e.loc))return!1;for(const n of nc)if(t=this.values[n],r=e.values[n],!(void 0===t||0===t?void 0===r||0===r:t===r))return!1;var t,r;return!0}}const uc="Invalid Interval";class cc{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,t=null){if(!e)throw new rs("need to specify a reason the Interval is invalid");const r=e instanceof ll?e:new ll(e,t);if(sl.throwOnInvalid)throw new Jo(r);return new cc({invalid:r})}static fromDateTimes(e,t){const r=tf(e),n=tf(t),i=function(e,t){return e&&e.isValid?t&&t.isValid?t<e?cc.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null:cc.invalid("missing or invalid end"):cc.invalid("missing or invalid start")}(r,n);return null==i?new cc({start:r,end:n}):i}static after(e,t){const r=lc.fromDurationLike(t),n=tf(e);return cc.fromDateTimes(n,n.plus(r))}static before(e,t){const r=lc.fromDurationLike(t),n=tf(e);return cc.fromDateTimes(n.minus(r),n)}static fromISO(e,t){const[r,n]=(e||"").split("/",2);if(r&&n){let e,i,a,o;try{e=ef.fromISO(r,t),i=e.isValid}catch(n){i=!1}try{a=ef.fromISO(n,t),o=a.isValid}catch(n){o=!1}if(i&&o)return cc.fromDateTimes(e,a);if(i){const r=lc.fromISO(n,t);if(r.isValid)return cc.after(e,r)}else if(o){const e=lc.fromISO(r,t);if(e.isValid)return cc.before(a,e)}}return cc.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return null===this.invalidReason}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",t){if(!this.isValid)return NaN;const r=this.start.startOf(e,t);let n;return n=t?.useLocaleWeeks?this.end.reconfigure({locale:r.locale}):this.end,n=n.startOf(e,t),Math.floor(n.diff(r,e).get(e))+(n.valueOf()!==this.end.valueOf())}hasSame(e){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,e))}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return!!this.isValid&&this.s>e}isBefore(e){return!!this.isValid&&this.e<=e}contains(e){return!!this.isValid&&this.s<=e&&this.e>e}set({start:e,end:t}={}){return this.isValid?cc.fromDateTimes(e||this.s,t||this.e):this}splitAt(...e){if(!this.isValid)return[];const t=e.map(tf).filter((e=>this.contains(e))).sort(((e,t)=>e.toMillis()-t.toMillis())),r=[];let{s:n}=this,i=0;for(;n<this.e;){const e=t[i]||this.e,a=+e>+this.e?this.e:e;r.push(cc.fromDateTimes(n,a)),n=a,i+=1}return r}splitBy(e){const t=lc.fromDurationLike(e);if(!this.isValid||!t.isValid||0===t.as("milliseconds"))return[];let r,{s:n}=this,i=1;const a=[];for(;n<this.e;){const e=this.start.plus(t.mapUnits((e=>e*i)));r=+e>+this.e?this.e:e,a.push(cc.fromDateTimes(n,r)),n=r,i+=1}return a}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return!!this.isValid&&+this.e==+e.s}abutsEnd(e){return!!this.isValid&&+e.e==+this.s}engulfs(e){return!!this.isValid&&this.s<=e.s&&this.e>=e.e}equals(e){return!(!this.isValid||!e.isValid)&&this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const t=this.s>e.s?this.s:e.s,r=this.e<e.e?this.e:e.e;return t>=r?null:cc.fromDateTimes(t,r)}union(e){if(!this.isValid)return this;const t=this.s<e.s?this.s:e.s,r=this.e>e.e?this.e:e.e;return cc.fromDateTimes(t,r)}static merge(e){const[t,r]=e.sort(((e,t)=>e.s-t.s)).reduce((([e,t],r)=>t?t.overlaps(r)||t.abutsStart(r)?[e,t.union(r)]:[e.concat([t]),r]:[e,r]),[[],null]);return r&&t.push(r),t}static xor(e){let t=null,r=0;const n=[],i=e.map((e=>[{time:e.s,type:"s"},{time:e.e,type:"e"}])),a=Array.prototype.concat(...i).sort(((e,t)=>e.time-t.time));for(const e of a)r+="s"===e.type?1:-1,1===r?t=e.time:(t&&+t!=+e.time&&n.push(cc.fromDateTimes(t,e.time)),t=null);return cc.merge(n)}difference(...e){return cc.xor([this].concat(e)).map((e=>this.intersection(e))).filter((e=>e&&!e.isEmpty()))}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:uc}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=ss,t={}){return this.isValid?fu.create(this.s.loc.clone(t),e).formatInterval(this):uc}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:uc}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:uc}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:uc}toFormat(e,{separator:t=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:uc}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):lc.invalid(this.invalidReason)}mapEndpoints(e){return cc.fromDateTimes(e(this.s),e(this.e))}}class fc{static hasDST(e=sl.defaultZone){const t=ef.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return Fs.isValidZone(e)}static normalizeZone(e){return Js(e,sl.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||Gs.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||Gs.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||Gs.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null,outputCalendar:i="gregory"}={}){return(n||Gs.create(t,r,i)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null,outputCalendar:i="gregory"}={}){return(n||Gs.create(t,r,i)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null}={}){return(n||Gs.create(t,r,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null}={}){return(n||Gs.create(t,r,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return Gs.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return Gs.create(t,null,"gregory").eras(e)}static features(){return{relative:Ol(),localeWeek:Tl()}}}function dc(e,t){const r=e=>e.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=r(t)-r(e);return Math.floor(lc.fromMillis(n).as("days"))}const hc={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},pc={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},mc=hc.hanidec.replace(/[\[|\]]/g,"").split("");function yc({numberingSystem:e},t=""){return new RegExp(`${hc[e||"latn"]}${t}`)}function vc(e,t=(e=>e)){return{regex:e,deser:([e])=>t(function(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let r=0;r<e.length;r++){const n=e.charCodeAt(r);if(-1!==e[r].search(hc.hanidec))t+=mc.indexOf(e[r]);else for(const e in pc){const[r,i]=pc[e];n>=r&&n<=i&&(t+=n-r)}}return parseInt(t,10)}return t}(e))}}const gc=`[ ${String.fromCharCode(160)}]`,bc=new RegExp(gc,"g");function wc(e){return e.replace(/\./g,"\\.?").replace(bc,gc)}function _c(e){return e.replace(/\./g,"").replace(bc," ").toLowerCase()}function kc(e,t){return null===e?null:{regex:RegExp(e.map(wc).join("|")),deser:([r])=>e.findIndex((e=>_c(r)===_c(e)))+t}}function Sc(e,t){return{regex:e,deser:([,e,t])=>$l(e,t),groups:t}}function Ec(e){return{regex:e,deser:([e])=>e}}const xc={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};let Oc=null;function Tc(e,t){return Array.prototype.concat(...e.map((e=>function(e,t){if(e.literal)return e;const r=Cc(fu.macroTokenToFormatOpts(e.val),t);return null==r||r.includes(void 0)?e:r}(e,t))))}function Nc(e,t,r){const n=Tc(fu.parseFormat(r),e),i=n.map((t=>function(e,t){const r=yc(t),n=yc(t,"{2}"),i=yc(t,"{3}"),a=yc(t,"{4}"),o=yc(t,"{6}"),s=yc(t,"{1,2}"),l=yc(t,"{1,3}"),u=yc(t,"{1,6}"),c=yc(t,"{1,9}"),f=yc(t,"{2,4}"),d=yc(t,"{4,6}"),h=e=>{return{regex:RegExp((t=e.val,t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:([e])=>e,literal:!0};var t},p=(p=>{if(e.literal)return h(p);switch(p.val){case"G":return kc(t.eras("short"),0);case"GG":return kc(t.eras("long"),0);case"y":return vc(u);case"yy":case"kk":return vc(f,Ql);case"yyyy":case"kkkk":return vc(a);case"yyyyy":return vc(d);case"yyyyyy":return vc(o);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return vc(s);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return vc(n);case"MMM":return kc(t.months("short",!0),1);case"MMMM":return kc(t.months("long",!0),1);case"LLL":return kc(t.months("short",!1),1);case"LLLL":return kc(t.months("long",!1),1);case"o":case"S":return vc(l);case"ooo":case"SSS":return vc(i);case"u":return Ec(c);case"uu":return Ec(s);case"uuu":case"E":case"c":return vc(r);case"a":return kc(t.meridiems(),0);case"EEE":return kc(t.weekdays("short",!1),1);case"EEEE":return kc(t.weekdays("long",!1),1);case"ccc":return kc(t.weekdays("short",!0),1);case"cccc":return kc(t.weekdays("long",!0),1);case"Z":case"ZZ":return Sc(new RegExp(`([+-]${s.source})(?::(${n.source}))?`),2);case"ZZZ":return Sc(new RegExp(`([+-]${s.source})(${n.source})?`),2);case"z":return Ec(/[a-z_+-/]{1,256}?/i);case" ":return Ec(/[^\S\n\r]/);default:return h(p)}})(e)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return p.token=e,p}(t,e))),a=i.find((e=>e.invalidReason));if(a)return{input:t,tokens:n,invalidReason:a.invalidReason};{const[e,r]=function(e){return[`^${e.map((e=>e.regex)).reduce(((e,t)=>`${e}(${t.source})`),"")}$`,e]}(i),a=RegExp(e,"i"),[o,s]=function(e,t,r){const n=e.match(t);if(n){const e={};let t=1;for(const i in r)if(Cl(r,i)){const a=r[i],o=a.groups?a.groups+1:1;!a.literal&&a.token&&(e[a.token.val[0]]=a.deser(n.slice(t,t+o))),t+=o}return[n,e]}return[n,{}]}(t,a,r),[l,u,c]=s?function(e){let t,r=null;return Sl(e.z)||(r=Fs.create(e.z)),Sl(e.Z)||(r||(r=new Ys(e.Z)),t=e.Z),Sl(e.q)||(e.M=3*(e.q-1)+1),Sl(e.h)||(e.h<12&&1===e.a?e.h+=12:12===e.h&&0===e.a&&(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),Sl(e.u)||(e.S=Fl(e.u)),[Object.keys(e).reduce(((t,r)=>{const n=(e=>{switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}})(r);return n&&(t[n]=e[r]),t}),{}),r,t]}(s):[null,null,void 0];if(Cl(s,"a")&&Cl(s,"H"))throw new es("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:n,regex:a,rawMatches:o,matches:s,result:l,zone:u,specificOffset:c}}}function Cc(e,t){if(!e)return null;const r=fu.create(t,e).dtFormatter((Oc||(Oc=ef.fromMillis(1555555555555)),Oc)),n=r.formatToParts(),i=r.resolvedOptions();return n.map((t=>function(e,t,r){const{type:n,value:i}=e;if("literal"===n){const e=/^\s+$/.test(i);return{literal:!e,val:e?" ":i}}const a=t[n];let o=n;"hour"===n&&(o=null!=t.hour12?t.hour12?"hour12":"hour24":null!=t.hourCycle?"h11"===t.hourCycle||"h12"===t.hourCycle?"hour12":"hour24":r.hour12?"hour12":"hour24");let s=xc[o];if("object"==typeof s&&(s=s[a]),s)return{literal:!1,val:s}}(t,e,i)))}const Dc="Invalid DateTime",Ic=864e13;function Pc(e){return new ll("unsupported zone",`the zone "${e.name}" is not supported`)}function Mc(e){return null===e.weekData&&(e.weekData=yl(e.c)),e.weekData}function Ac(e){return null===e.localWeekData&&(e.localWeekData=yl(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function Fc(e,t){const r={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new ef({...r,...t,old:r})}function jc(e,t,r){let n=e-60*t*1e3;const i=r.offset(n);if(t===i)return[n,t];n-=60*(i-t)*1e3;const a=r.offset(n);return i===a?[n,i]:[e-60*Math.min(i,a)*1e3,Math.max(i,a)]}function Lc(e,t){const r=new Date(e+=60*t*1e3);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function Rc(e,t,r){return jc(Vl(e),t,r)}function zc(e,t){const r=e.o,n=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),a={...e.c,year:n,month:i,day:Math.min(e.c.day,zl(n,i))+Math.trunc(t.days)+7*Math.trunc(t.weeks)},o=lc.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),s=Vl(a);let[l,u]=jc(s,r,e.zone);return 0!==o&&(l+=o,u=e.zone.offset(l)),{ts:l,o:u}}function Vc(e,t,r,n,i,a){const{setZone:o,zone:s}=r;if(e&&0!==Object.keys(e).length||t){const n=t||s,i=ef.fromObject(e,{...r,zone:n,specificOffset:a});return o?i:i.setZone(s)}return ef.invalid(new ll("unparsable",`the input "${i}" can't be parsed as ${n}`))}function qc(e,t,r=!0){return e.isValid?fu.create(Gs.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(e,t):null}function Uc(e,t){const r=e.c.year>9999||e.c.year<0;let n="";return r&&e.c.year>=0&&(n+="+"),n+=Pl(e.c.year,r?6:4),t?(n+="-",n+=Pl(e.c.month),n+="-",n+=Pl(e.c.day)):(n+=Pl(e.c.month),n+=Pl(e.c.day)),n}function Qc(e,t,r,n,i,a){let o=Pl(e.c.hour);return t?(o+=":",o+=Pl(e.c.minute),0===e.c.millisecond&&0===e.c.second&&r||(o+=":")):o+=Pl(e.c.minute),0===e.c.millisecond&&0===e.c.second&&r||(o+=Pl(e.c.second),0===e.c.millisecond&&n||(o+=".",o+=Pl(e.c.millisecond,3))),i&&(e.isOffsetFixed&&0===e.offset&&!a?o+="Z":e.o<0?(o+="-",o+=Pl(Math.trunc(-e.o/60)),o+=":",o+=Pl(Math.trunc(-e.o%60))):(o+="+",o+=Pl(Math.trunc(e.o/60)),o+=":",o+=Pl(Math.trunc(e.o%60)))),a&&(o+="["+e.zone.ianaName+"]"),o}const Bc={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},$c={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Wc={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Hc=["year","month","day","hour","minute","second","millisecond"],Gc=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Zc=["year","ordinal","hour","minute","second","millisecond"];function Yc(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return function(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new ts(e);return t}(e)}}function Kc(e,t){const r=Js(t.zone,sl.defaultZone),n=Gs.fromObject(t),i=sl.now();let a,o;if(Sl(e.year))a=i;else{for(const t of Hc)Sl(e[t])&&(e[t]=Bc[t]);const t=_l(e)||kl(e);if(t)return ef.invalid(t);const n=r.offset(i);[a,o]=Rc(e,n,r)}return new ef({ts:a,zone:r,loc:n,o})}function Jc(e,t,r){const n=!!Sl(r.round)||r.round,i=(e,i)=>(e=jl(e,n||r.calendary?0:2,!0),t.loc.clone(r).relFormatter(r).format(e,i)),a=n=>r.calendary?t.hasSame(e,n)?0:t.startOf(n).diff(e.startOf(n),n).get(n):t.diff(e,n).get(n);if(r.unit)return i(a(r.unit),r.unit);for(const e of r.units){const t=a(e);if(Math.abs(t)>=1)return i(t,e)}return i(e>t?-0:0,r.units[r.units.length-1])}function Xc(e){let t,r={};return e.length>0&&"object"==typeof e[e.length-1]?(r=e[e.length-1],t=Array.from(e).slice(0,e.length-1)):t=Array.from(e),[r,t]}class ef{constructor(e){const t=e.zone||sl.defaultZone;let r=e.invalid||(Number.isNaN(e.ts)?new ll("invalid input"):null)||(t.isValid?null:Pc(t));this.ts=Sl(e.ts)?sl.now():e.ts;let n=null,i=null;if(!r)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t))[n,i]=[e.old.c,e.old.o];else{const e=t.offset(this.ts);n=Lc(this.ts,e),r=Number.isNaN(n.year)?new ll("invalid input"):null,n=r?null:n,i=r?null:e}this._zone=t,this.loc=e.loc||Gs.create(),this.invalid=r,this.weekData=null,this.localWeekData=null,this.c=n,this.o=i,this.isLuxonDateTime=!0}static now(){return new ef({})}static local(){const[e,t]=Xc(arguments),[r,n,i,a,o,s,l]=t;return Kc({year:r,month:n,day:i,hour:a,minute:o,second:s,millisecond:l},e)}static utc(){const[e,t]=Xc(arguments),[r,n,i,a,o,s,l]=t;return e.zone=Ys.utcInstance,Kc({year:r,month:n,day:i,hour:a,minute:o,second:s,millisecond:l},e)}static fromJSDate(e,t={}){const r=(n=e,"[object Date]"===Object.prototype.toString.call(n)?e.valueOf():NaN);var n;if(Number.isNaN(r))return ef.invalid("invalid input");const i=Js(t.zone,sl.defaultZone);return i.isValid?new ef({ts:r,zone:i,loc:Gs.fromObject(t)}):ef.invalid(Pc(i))}static fromMillis(e,t={}){if(El(e))return e<-Ic||e>Ic?ef.invalid("Timestamp out of range"):new ef({ts:e,zone:Js(t.zone,sl.defaultZone),loc:Gs.fromObject(t)});throw new rs(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,t={}){if(El(e))return new ef({ts:1e3*e,zone:Js(t.zone,sl.defaultZone),loc:Gs.fromObject(t)});throw new rs("fromSeconds requires a numerical input")}static fromObject(e,t={}){e=e||{};const r=Js(t.zone,sl.defaultZone);if(!r.isValid)return ef.invalid(Pc(r));const n=Gs.fromObject(t),i=Hl(e,Yc),{minDaysInFirstWeek:a,startOfWeek:o}=wl(i,n),s=sl.now(),l=Sl(t.specificOffset)?r.offset(s):t.specificOffset,u=!Sl(i.ordinal),c=!Sl(i.year),f=!Sl(i.month)||!Sl(i.day),d=c||f,h=i.weekYear||i.weekNumber;if((d||u)&&h)throw new es("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(f&&u)throw new es("Can't mix ordinal dates with month/day");const p=h||i.weekday&&!d;let m,y,v=Lc(s,l);p?(m=Gc,y=$c,v=yl(v,a,o)):u?(m=Zc,y=Wc,v=gl(v)):(m=Hc,y=Bc);let g=!1;for(const e of m)Sl(i[e])?i[e]=g?y[e]:v[e]:g=!0;const b=p?function(e,t=4,r=1){const n=xl(e.weekYear),i=Il(e.weekNumber,1,Ul(e.weekYear,t,r)),a=Il(e.weekday,1,7);return n?i?!a&&fl("weekday",e.weekday):fl("week",e.weekNumber):fl("weekYear",e.weekYear)}(i,a,o):u?function(e){const t=xl(e.year),r=Il(e.ordinal,1,Rl(e.year));return t?!r&&fl("ordinal",e.ordinal):fl("year",e.year)}(i):_l(i),w=b||kl(i);if(w)return ef.invalid(w);const _=p?vl(i,a,o):u?bl(i):i,[k,S]=Rc(_,l,r),E=new ef({ts:k,zone:r,o:S,loc:n});return i.weekday&&d&&e.weekday!==E.weekday?ef.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${E.toISO()}`):E}static fromISO(e,t={}){const[r,n]=function(e){return mu(e,[qu,$u],[Uu,Wu],[Qu,Hu],[Bu,Gu])}(e);return Vc(r,n,t,"ISO 8601",e)}static fromRFC2822(e,t={}){const[r,n]=function(e){return mu(function(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(e),[Au,Fu])}(e);return Vc(r,n,t,"RFC 2822",e)}static fromHTTP(e,t={}){const[r,n]=function(e){return mu(e,[ju,zu],[Lu,zu],[Ru,Vu])}(e);return Vc(r,n,t,"HTTP",t)}static fromFormat(e,t,r={}){if(Sl(e)||Sl(t))throw new rs("fromFormat requires an input string and a format");const{locale:n=null,numberingSystem:i=null}=r,a=Gs.fromOpts({locale:n,numberingSystem:i,defaultToEN:!0}),[o,s,l,u]=function(e,t,r){const{result:n,zone:i,specificOffset:a,invalidReason:o}=Nc(e,t,r);return[n,i,a,o]}(a,e,t);return u?ef.invalid(u):Vc(o,s,r,`format ${t}`,e,l)}static fromString(e,t,r={}){return ef.fromFormat(e,t,r)}static fromSQL(e,t={}){const[r,n]=function(e){return mu(e,[Yu,$u],[Ku,Ju])}(e);return Vc(r,n,t,"SQL",e)}static invalid(e,t=null){if(!e)throw new rs("need to specify a reason the DateTime is invalid");const r=e instanceof ll?e:new ll(e,t);if(sl.throwOnInvalid)throw new Ko(r);return new ef({invalid:r})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){const r=Cc(e,Gs.fromObject(t));return r?r.map((e=>e?e.val:null)).join(""):null}static expandFormat(e,t={}){return Tc(fu.parseFormat(e),Gs.fromObject(t)).map((e=>e.val)).join("")}get(e){return this[e]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Mc(this).weekYear:NaN}get weekNumber(){return this.isValid?Mc(this).weekNumber:NaN}get weekday(){return this.isValid?Mc(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Ac(this).weekday:NaN}get localWeekNumber(){return this.isValid?Ac(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Ac(this).weekYear:NaN}get ordinal(){return this.isValid?gl(this.c).ordinal:NaN}get monthShort(){return this.isValid?fc.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?fc.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?fc.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?fc.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,t=6e4,r=Vl(this.c),n=this.zone.offset(r-e),i=this.zone.offset(r+e),a=this.zone.offset(r-n*t),o=this.zone.offset(r-i*t);if(a===o)return[this];const s=r-a*t,l=r-o*t,u=Lc(s,a),c=Lc(l,o);return u.hour===c.hour&&u.minute===c.minute&&u.second===c.second&&u.millisecond===c.millisecond?[Fc(this,{ts:s}),Fc(this,{ts:l})]:[this]}get isInLeapYear(){return Ll(this.year)}get daysInMonth(){return zl(this.year,this.month)}get daysInYear(){return this.isValid?Rl(this.year):NaN}get weeksInWeekYear(){return this.isValid?Ul(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Ul(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:t,numberingSystem:r,calendar:n}=fu.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:r,outputCalendar:n}}toUTC(e=0,t={}){return this.setZone(Ys.instance(e),t)}toLocal(){return this.setZone(sl.defaultZone)}setZone(e,{keepLocalTime:t=!1,keepCalendarTime:r=!1}={}){if((e=Js(e,sl.defaultZone)).equals(this.zone))return this;if(e.isValid){let n=this.ts;if(t||r){const t=e.offset(this.ts),r=this.toObject();[n]=Rc(r,t,e)}return Fc(this,{ts:n,zone:e})}return ef.invalid(Pc(e))}reconfigure({locale:e,numberingSystem:t,outputCalendar:r}={}){return Fc(this,{loc:this.loc.clone({locale:e,numberingSystem:t,outputCalendar:r})})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const t=Hl(e,Yc),{minDaysInFirstWeek:r,startOfWeek:n}=wl(t,this.loc),i=!Sl(t.weekYear)||!Sl(t.weekNumber)||!Sl(t.weekday),a=!Sl(t.ordinal),o=!Sl(t.year),s=!Sl(t.month)||!Sl(t.day),l=o||s,u=t.weekYear||t.weekNumber;if((l||a)&&u)throw new es("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(s&&a)throw new es("Can't mix ordinal dates with month/day");let c;i?c=vl({...yl(this.c,r,n),...t},r,n):Sl(t.ordinal)?(c={...this.toObject(),...t},Sl(t.day)&&(c.day=Math.min(zl(c.year,c.month),c.day))):c=bl({...gl(this.c),...t});const[f,d]=Rc(c,this.o,this.zone);return Fc(this,{ts:f,o:d})}plus(e){return this.isValid?Fc(this,zc(this,lc.fromDurationLike(e))):this}minus(e){return this.isValid?Fc(this,zc(this,lc.fromDurationLike(e).negate())):this}startOf(e,{useLocaleWeeks:t=!1}={}){if(!this.isValid)return this;const r={},n=lc.normalizeUnit(e);switch(n){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0}if("weeks"===n)if(t){const e=this.loc.getStartOfWeek(),{weekday:t}=this;t<e&&(r.weekNumber=this.weekNumber-1),r.weekday=e}else r.weekday=1;if("quarters"===n){const e=Math.ceil(this.month/3);r.month=3*(e-1)+1}return this.set(r)}endOf(e,t){return this.isValid?this.plus({[e]:1}).startOf(e,t).minus(1):this}toFormat(e,t={}){return this.isValid?fu.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):Dc}toLocaleString(e=ss,t={}){return this.isValid?fu.create(this.loc.clone(t),e).formatDateTime(this):Dc}toLocaleParts(e={}){return this.isValid?fu.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:t=!1,suppressMilliseconds:r=!1,includeOffset:n=!0,extendedZone:i=!1}={}){if(!this.isValid)return null;const a="extended"===e;let o=Uc(this,a);return o+="T",o+=Qc(this,a,t,r,n,i),o}toISODate({format:e="extended"}={}){return this.isValid?Uc(this,"extended"===e):null}toISOWeekDate(){return qc(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:t=!1,includeOffset:r=!0,includePrefix:n=!1,extendedZone:i=!1,format:a="extended"}={}){return this.isValid?(n?"T":"")+Qc(this,"extended"===a,t,e,r,i):null}toRFC2822(){return qc(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return qc(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Uc(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:t=!1,includeOffsetSpace:r=!0}={}){let n="HH:mm:ss.SSS";return(t||e)&&(r&&(n+=" "),t?n+="z":e&&(n+="ZZ")),qc(this,n,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():Dc}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const t={...this.c};return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,t="milliseconds",r={}){if(!this.isValid||!e.isValid)return lc.invalid("created by diffing an invalid DateTime");const n={locale:this.locale,numberingSystem:this.numberingSystem,...r},i=(s=t,Array.isArray(s)?s:[s]).map(lc.normalizeUnit),a=e.valueOf()>this.valueOf(),o=function(e,t,r,n){let[i,a,o,s]=function(e,t,r){const n=[["years",(e,t)=>t.year-e.year],["quarters",(e,t)=>t.quarter-e.quarter+4*(t.year-e.year)],["months",(e,t)=>t.month-e.month+12*(t.year-e.year)],["weeks",(e,t)=>{const r=dc(e,t);return(r-r%7)/7}],["days",dc]],i={},a=e;let o,s;for(const[l,u]of n)r.indexOf(l)>=0&&(o=l,i[l]=u(e,t),s=a.plus(i),s>t?(i[l]--,(e=a.plus(i))>t&&(s=e,i[l]--,e=a.plus(i))):e=s);return[e,i,s,o]}(e,t,r);const l=t-i,u=r.filter((e=>["hours","minutes","seconds","milliseconds"].indexOf(e)>=0));0===u.length&&(o<t&&(o=i.plus({[s]:1})),o!==i&&(a[s]=(a[s]||0)+l/(o-i)));const c=lc.fromObject(a,n);return u.length>0?lc.fromMillis(l,n).shiftTo(...u).plus(c):c}(a?this:e,a?e:this,i,n);var s;return a?o.negate():o}diffNow(e="milliseconds",t={}){return this.diff(ef.now(),e,t)}until(e){return this.isValid?cc.fromDateTimes(this,e):this}hasSame(e,t,r){if(!this.isValid)return!1;const n=e.valueOf(),i=this.setZone(e.zone,{keepLocalTime:!0});return i.startOf(t,r)<=n&&n<=i.endOf(t,r)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const t=e.base||ef.fromObject({},{zone:this.zone}),r=e.padding?this<t?-e.padding:e.padding:0;let n=["years","months","days","hours","minutes","seconds"],i=e.unit;return Array.isArray(e.unit)&&(n=e.unit,i=void 0),Jc(t,this.plus(r),{...e,numeric:"always",units:n,unit:i})}toRelativeCalendar(e={}){return this.isValid?Jc(e.base||ef.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(ef.isDateTime))throw new rs("min requires all arguments be DateTimes");return Nl(e,(e=>e.valueOf()),Math.min)}static max(...e){if(!e.every(ef.isDateTime))throw new rs("max requires all arguments be DateTimes");return Nl(e,(e=>e.valueOf()),Math.max)}static fromFormatExplain(e,t,r={}){const{locale:n=null,numberingSystem:i=null}=r;return Nc(Gs.fromOpts({locale:n,numberingSystem:i,defaultToEN:!0}),e,t)}static fromStringExplain(e,t,r={}){return ef.fromFormatExplain(e,t,r)}static get DATE_SHORT(){return ss}static get DATE_MED(){return ls}static get DATE_MED_WITH_WEEKDAY(){return us}static get DATE_FULL(){return cs}static get DATE_HUGE(){return fs}static get TIME_SIMPLE(){return ds}static get TIME_WITH_SECONDS(){return hs}static get TIME_WITH_SHORT_OFFSET(){return ps}static get TIME_WITH_LONG_OFFSET(){return ms}static get TIME_24_SIMPLE(){return ys}static get TIME_24_WITH_SECONDS(){return vs}static get TIME_24_WITH_SHORT_OFFSET(){return gs}static get TIME_24_WITH_LONG_OFFSET(){return bs}static get DATETIME_SHORT(){return ws}static get DATETIME_SHORT_WITH_SECONDS(){return _s}static get DATETIME_MED(){return ks}static get DATETIME_MED_WITH_SECONDS(){return Ss}static get DATETIME_MED_WITH_WEEKDAY(){return Es}static get DATETIME_FULL(){return xs}static get DATETIME_FULL_WITH_SECONDS(){return Os}static get DATETIME_HUGE(){return Ts}static get DATETIME_HUGE_WITH_SECONDS(){return Ns}}function tf(e){if(ef.isDateTime(e))return e;if(e&&e.valueOf&&El(e.valueOf()))return ef.fromJSDate(e);if(e&&"object"==typeof e)return ef.fromObject(e);throw new rs(`Unknown datetime argument: ${e}, of type ${typeof e}`)}var rf=(e=>(e.Backlog="backlog",e.Complete="complete",e.InProgress="in_progress",e.Ready="ready",e))(rf||{});function nf(e,t){var r=To(null==t?void 0:t.client);Oo(e,bo.Mutation);var n=ba.useState({called:!1,loading:!1,client:r}),i=n[0],o=n[1],s=ba.useRef({result:i,mutationId:0,isMounted:!0,client:r,mutation:e,options:t});Object.assign(s.current,{client:r,options:t,mutation:e});var l=ba.useCallback((function(e){void 0===e&&(e={});var t=s.current,r=t.options,n=t.mutation,i=a(a({},r),{mutation:n}),l=e.client||s.current.client;s.current.result.loading||i.ignoreResults||!s.current.isMounted||o(s.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:l});var u=++s.current.mutationId,c=mi(i,e);return l.mutate(c).then((function(t){var r,n,i=t.data,a=t.errors,f=a&&a.length>0?new It({graphQLErrors:a}):void 0,d=e.onError||(null===(r=s.current.options)||void 0===r?void 0:r.onError);if(f&&d&&d(f,c),u===s.current.mutationId&&!c.ignoreResults){var h={called:!0,loading:!1,data:i,error:f,client:l};s.current.isMounted&&!Or(s.current.result,h)&&o(s.current.result=h)}var p=e.onCompleted||(null===(n=s.current.options)||void 0===n?void 0:n.onCompleted);return f||null==p||p(t.data,c),t})).catch((function(t){var r;if(u===s.current.mutationId&&s.current.isMounted){var n={loading:!1,error:t,data:void 0,called:!0,client:l};Or(s.current.result,n)||o(s.current.result=n)}var i=e.onError||(null===(r=s.current.options)||void 0===r?void 0:r.onError);if(i)return i(t,c),{data:void 0,errors:t};throw t}))}),[]),u=ba.useCallback((function(){if(s.current.isMounted){var e={called:!1,loading:!1,client:r};Object.assign(s.current,{mutationId:0,result:e}),o(e)}}),[]);return ba.useEffect((function(){return s.current.isMounted=!0,function(){s.current.isMounted=!1}}),[]),[l,a({reset:u},i)]}var af=Object.defineProperty,of=Object.defineProperties,sf=Object.getOwnPropertyDescriptors,lf=Object.getOwnPropertySymbols,uf=Object.prototype.hasOwnProperty,cf=Object.prototype.propertyIsEnumerable,ff=(e,t,r)=>t in e?af(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,df=(e,t)=>{for(var r in t||(t={}))uf.call(t,r)&&ff(e,r,t[r]);if(lf)for(var r of lf(t))cf.call(t,r)&&ff(e,r,t[r]);return e},hf=(e,t)=>of(e,sf(t)),pf=(e,t)=>{var r={};for(var n in e)uf.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&lf)for(var n of lf(e))t.indexOf(n)<0&&cf.call(e,n)&&(r[n]=e[n]);return r};const mf=yo`
12
+ `;function Ao(){return Do(Mo)}function Fo({onTextChange:t,placeholder:r}){return e.createElement("input",{type:"text",className:"p-3 rounded border-secondary border-solid outline-none",autoFocus:!0,placeholder:r,onClick:e=>e.stopPropagation(),onChange:e=>{const{target:{value:r}}=e;t(r)}})}var jo=i(540);const Lo=["flex","align-items-center","hover-bg-secondary","p-3","mt-2","cursor-pointer"].join(" "),Ro=[Lo,"rounded","border","border-solid","border-secondary","text-primary","bg-secondary"].join(" "),zo=({onChange:t,options:r,selected:n,placeholder:i,className:a,filterPlaceholder:o="Filter by text",isFilterable:s=!0})=>{const l=[{id:null,label:i,value:""},...r],[u,c]=(0,e.useState)(!1),[f,d]=(0,e.useState)(null),[h,p]=(0,e.useState)(r.find((e=>String(e.id)===n))||l[0]);return(0,e.useEffect)((()=>{const e=()=>{u&&c(!1)};return document.body.addEventListener("click",e),()=>document.body.removeEventListener("click",e)}),[u]),jo.createElement("ul",{className:a},s&&u&&jo.createElement("li",{className:"flex"},jo.createElement(Fo,{placeholder:o,onTextChange:e=>d(e)})),l.filter((e=>null===f||new RegExp(f).test(e.value))).map(((e,r)=>{return jo.createElement("li",{key:r,"data-value":e.value,onClick:r=>{return[r.stopPropagation(),(n=e,void(u?(p(n),c(!1),t(n)):c(!0)))];var n},className:(n=e,i=h,n.value===i.value?Ro:u||n.value===i.value?Lo:"hidden")},e.label);var n,i})))};var Vo=i(540);function qo({onChange:e,selected:t}){const{data:r,loading:n}=Ao(),i=(null==r?void 0:r.projects)||[],a=i.map((e=>({id:e.id,label:Vo.createElement("div",{className:"flex items-center"},Vo.createElement("span",{style:{backgroundColor:e.color},className:"flex w-2/8 rounded w-8 h-8 mr-3 cursor-pointer"}),Vo.createElement("span",{className:"flex"},e.name)),value:e.name})));return n?null:Vo.createElement(zo,{options:a,selected:String(t),className:"max-h-96 overflow-y-scroll overflow-x-none w-3/4",placeholder:"Any project",filterPlaceholder:"Filter by project",onChange:t=>{const r=i.find((e=>e.id==t.id));e(r)}})}var Uo=i(540);const Qo=["block","no-underline","p-3","mt-2"],Bo=[...Qo,"rounded","bg-secondary","text-primary"].join(" "),$o=[...Qo,"text-accent","hover-bg-secondary"].join(" "),Wo=(e,t)=>{let r=null;return Object.values(t).flat().forEach((t=>{t.href===e&&(r=t)})),r};function Ho(){const{params:t,cookies:r}=(0,e.useContext)(Ea),n={Tasks:[{text:"All tasks",href:"/tasks/"},{text:"New task",href:"/tasks/new/"}],Projects:[{text:"All projects",href:"/projects"}]},i=Wo(location.pathname,n);return Uo.createElement(Uo.Fragment,null,...Object.keys(n).map((e=>{const t=n[e];return Uo.createElement(Uo.Fragment,null,Uo.createElement("h3",null,e),Uo.createElement("ul",{className:"w-3/4"},...t.flatMap((e=>Uo.createElement("li",null,Uo.createElement("a",{className:i==e?Bo:$o,href:e.href},e.text))))))})),Uo.createElement("h3",null,"Settings"),Uo.createElement(qo,{selected:t.projectId||r.projectId,onChange:e=>{e?(document.cookie=`projectId=${e.id}; path=/`,location.hash=`projectId=${e.id}`):(document.cookie="projectId=; path=/; max-age=0",location.hash=""),location.reload()}}))}var Go=i(942),Zo=i.n(Go);class Yo extends Error{}class Ko extends Yo{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class Jo extends Yo{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class Xo extends Yo{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class es extends Yo{}class ts extends Yo{constructor(e){super(`Invalid unit ${e}`)}}class rs extends Yo{}class ns extends Yo{constructor(){super("Zone is an abstract class")}}const is="numeric",as="short",os="long",ss={year:is,month:is,day:is},ls={year:is,month:as,day:is},us={year:is,month:as,day:is,weekday:as},cs={year:is,month:os,day:is},fs={year:is,month:os,day:is,weekday:os},ds={hour:is,minute:is},hs={hour:is,minute:is,second:is},ps={hour:is,minute:is,second:is,timeZoneName:as},ms={hour:is,minute:is,second:is,timeZoneName:os},ys={hour:is,minute:is,hourCycle:"h23"},vs={hour:is,minute:is,second:is,hourCycle:"h23"},gs={hour:is,minute:is,second:is,hourCycle:"h23",timeZoneName:as},bs={hour:is,minute:is,second:is,hourCycle:"h23",timeZoneName:os},ws={year:is,month:is,day:is,hour:is,minute:is},_s={year:is,month:is,day:is,hour:is,minute:is,second:is},ks={year:is,month:as,day:is,hour:is,minute:is},Ss={year:is,month:as,day:is,hour:is,minute:is,second:is},Es={year:is,month:as,day:is,weekday:as,hour:is,minute:is},xs={year:is,month:os,day:is,hour:is,minute:is,timeZoneName:as},Os={year:is,month:os,day:is,hour:is,minute:is,second:is,timeZoneName:as},Ts={year:is,month:os,day:is,weekday:os,hour:is,minute:is,timeZoneName:os},Ns={year:is,month:os,day:is,weekday:os,hour:is,minute:is,second:is,timeZoneName:os};class Cs{get type(){throw new ns}get name(){throw new ns}get ianaName(){return this.name}get isUniversal(){throw new ns}offsetName(e,t){throw new ns}formatOffset(e,t){throw new ns}offset(e){throw new ns}equals(e){throw new ns}get isValid(){throw new ns}}let Ds=null;class Is extends Cs{static get instance(){return null===Ds&&(Ds=new Is),Ds}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:r}){return Bl(e,t,r)}formatOffset(e,t){return Gl(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return"system"===e.type}get isValid(){return!0}}let Ps={};const Ms={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};let As={};class Fs extends Cs{static create(e){return As[e]||(As[e]=new Fs(e)),As[e]}static resetCache(){As={},Ps={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(e){return!1}}constructor(e){super(),this.zoneName=e,this.valid=Fs.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:r}){return Bl(e,t,r,this.name)}formatOffset(e,t){return Gl(this.offset(e),t)}offset(e){const t=new Date(e);if(isNaN(t))return NaN;const r=(n=this.name,Ps[n]||(Ps[n]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:n,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),Ps[n]);var n;let[i,a,o,s,l,u,c]=r.formatToParts?function(e,t){const r=e.formatToParts(t),n=[];for(let e=0;e<r.length;e++){const{type:t,value:i}=r[e],a=Ms[t];"era"===t?n[a]=i:Sl(a)||(n[a]=parseInt(i,10))}return n}(r,t):function(e,t){const r=e.format(t).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,i,a,o,s,l,u,c]=n;return[o,i,a,s,l,u,c]}(r,t);"BC"===s&&(i=1-Math.abs(i));let f=+t;const d=f%1e3;return f-=d>=0?d:1e3+d,(Vl({year:i,month:a,day:o,hour:24===l?0:l,minute:u,second:c,millisecond:0})-f)/6e4}equals(e){return"iana"===e.type&&e.name===this.name}get isValid(){return this.valid}}let js={},Ls={};function Rs(e,t={}){const r=JSON.stringify([e,t]);let n=Ls[r];return n||(n=new Intl.DateTimeFormat(e,t),Ls[r]=n),n}let zs={},Vs={},qs=null,Us={};function Qs(e,t,r,n){const i=e.listingMode();return"error"===i?null:"en"===i?r(t):n(t)}class Bs{constructor(e,t,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;const{padTo:n,floor:i,...a}=r;if(!t||Object.keys(a).length>0){const t={useGrouping:!1,...r};r.padTo>0&&(t.minimumIntegerDigits=r.padTo),this.inf=function(e,t={}){const r=JSON.stringify([e,t]);let n=zs[r];return n||(n=new Intl.NumberFormat(e,t),zs[r]=n),n}(e,t)}}format(e){if(this.inf){const t=this.floor?Math.floor(e):e;return this.inf.format(t)}return Pl(this.floor?Math.floor(e):jl(e,3),this.padTo)}}class $s{constructor(e,t,r){let n;if(this.opts=r,this.originalZone=void 0,this.opts.timeZone)this.dt=e;else if("fixed"===e.zone.type){const t=e.offset/60*-1,r=t>=0?`Etc/GMT+${t}`:`Etc/GMT${t}`;0!==e.offset&&Fs.create(r).valid?(n=r,this.dt=e):(n="UTC",this.dt=0===e.offset?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else"system"===e.zone.type?this.dt=e:"iana"===e.zone.type?(this.dt=e,n=e.zone.name):(n="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const i={...this.opts};i.timeZone=i.timeZone||n,this.dtf=Rs(t,i)}format(){return this.originalZone?this.formatToParts().map((({value:e})=>e)).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map((e=>{if("timeZoneName"===e.type){const t=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...e,value:t}}return e})):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class Ws{constructor(e,t,r){this.opts={style:"long",...r},!t&&Ol()&&(this.rtf=function(e,t={}){const{base:r,...n}=t,i=JSON.stringify([e,n]);let a=Vs[i];return a||(a=new Intl.RelativeTimeFormat(e,t),Vs[i]=a),a}(e,r))}format(e,t){return this.rtf?this.rtf.format(e,t):function(e,t,r="always",n=!1){const i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},a=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===r&&a){const r="days"===e;switch(t){case 1:return r?"tomorrow":`next ${i[e][0]}`;case-1:return r?"yesterday":`last ${i[e][0]}`;case 0:return r?"today":`this ${i[e][0]}`}}const o=Object.is(t,-0)||t<0,s=Math.abs(t),l=1===s,u=i[e],c=n?l?u[1]:u[2]||u[1]:l?i[e][0]:e;return o?`${s} ${c} ago`:`in ${s} ${c}`}(t,e,this.opts.numeric,"long"!==this.opts.style)}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}}const Hs={firstDay:1,minimalDays:4,weekend:[6,7]};class Gs{static fromOpts(e){return Gs.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,t,r,n,i=!1){const a=e||sl.defaultLocale,o=a||(i?"en-US":qs||(qs=(new Intl.DateTimeFormat).resolvedOptions().locale,qs)),s=t||sl.defaultNumberingSystem,l=r||sl.defaultOutputCalendar,u=Dl(n)||sl.defaultWeekSettings;return new Gs(o,s,l,u,a)}static resetCache(){qs=null,Ls={},zs={},Vs={}}static fromObject({locale:e,numberingSystem:t,outputCalendar:r,weekSettings:n}={}){return Gs.create(e,t,r,n)}constructor(e,t,r,n,i){const[a,o,s]=function(e){const t=e.indexOf("-x-");-1!==t&&(e=e.substring(0,t));const r=e.indexOf("-u-");if(-1===r)return[e];{let t,n;try{t=Rs(e).resolvedOptions(),n=e}catch(i){const a=e.substring(0,r);t=Rs(a).resolvedOptions(),n=a}const{numberingSystem:i,calendar:a}=t;return[n,i,a]}}(e);this.locale=a,this.numberingSystem=t||o||null,this.outputCalendar=r||s||null,this.weekSettings=n,this.intl=function(e,t,r){return r||t?(e.includes("-u-")||(e+="-u"),r&&(e+=`-ca-${r}`),t&&(e+=`-nu-${t}`),e):e}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}get fastNumbers(){var e;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(e=this).numberingSystem||"latn"===e.numberingSystem)&&("latn"===e.numberingSystem||!e.locale||e.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),t=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return e&&t?"en":"intl"}clone(e){return e&&0!==Object.getOwnPropertyNames(e).length?Gs.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,Dl(e.weekSettings)||this.weekSettings,e.defaultToEN||!1):this}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,t=!1){return Qs(this,e,Xl,(()=>{const r=t?{month:e,day:"numeric"}:{month:e},n=t?"format":"standalone";return this.monthsCache[n][e]||(this.monthsCache[n][e]=function(e){const t=[];for(let r=1;r<=12;r++){const n=ef.utc(2009,r,1);t.push(e(n))}return t}((e=>this.extract(e,r,"month")))),this.monthsCache[n][e]}))}weekdays(e,t=!1){return Qs(this,e,nu,(()=>{const r=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},n=t?"format":"standalone";return this.weekdaysCache[n][e]||(this.weekdaysCache[n][e]=function(e){const t=[];for(let r=1;r<=7;r++){const n=ef.utc(2016,11,13+r);t.push(e(n))}return t}((e=>this.extract(e,r,"weekday")))),this.weekdaysCache[n][e]}))}meridiems(){return Qs(this,void 0,(()=>iu),(()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[ef.utc(2016,11,13,9),ef.utc(2016,11,13,19)].map((t=>this.extract(t,e,"dayperiod")))}return this.meridiemCache}))}eras(e){return Qs(this,e,lu,(()=>{const t={era:e};return this.eraCache[e]||(this.eraCache[e]=[ef.utc(-40,1,1),ef.utc(2017,1,1)].map((e=>this.extract(e,t,"era")))),this.eraCache[e]}))}extract(e,t,r){const n=this.dtFormatter(e,t).formatToParts().find((e=>e.type.toLowerCase()===r));return n?n.value:null}numberFormatter(e={}){return new Bs(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new $s(e,this.intl,t)}relFormatter(e={}){return new Ws(this.intl,this.isEnglish(),e)}listFormatter(e={}){return function(e,t={}){const r=JSON.stringify([e,t]);let n=js[r];return n||(n=new Intl.ListFormat(e,t),js[r]=n),n}(this.intl,e)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:Tl()?function(e){let t=Us[e];if(!t){const r=new Intl.Locale(e);t="getWeekInfo"in r?r.getWeekInfo():r.weekInfo,Us[e]=t}return t}(this.locale):Hs}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let Zs=null;class Ys extends Cs{static get utcInstance(){return null===Zs&&(Zs=new Ys(0)),Zs}static instance(e){return 0===e?Ys.utcInstance:new Ys(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new Ys($l(t[1],t[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${Gl(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${Gl(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,t){return Gl(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return"fixed"===e.type&&e.fixed===this.fixed}get isValid(){return!0}}class Ks extends Cs{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function Js(e,t){if(Sl(e)||null===e)return t;if(e instanceof Cs)return e;if("string"==typeof e){const r=e.toLowerCase();return"default"===r?t:"local"===r||"system"===r?Is.instance:"utc"===r||"gmt"===r?Ys.utcInstance:Ys.parseSpecifier(r)||Fs.create(e)}return El(e)?Ys.instance(e):"object"==typeof e&&"offset"in e&&"function"==typeof e.offset?e:new Ks(e)}let Xs,el=()=>Date.now(),tl="system",rl=null,nl=null,il=null,al=60,ol=null;class sl{static get now(){return el}static set now(e){el=e}static set defaultZone(e){tl=e}static get defaultZone(){return Js(tl,Is.instance)}static get defaultLocale(){return rl}static set defaultLocale(e){rl=e}static get defaultNumberingSystem(){return nl}static set defaultNumberingSystem(e){nl=e}static get defaultOutputCalendar(){return il}static set defaultOutputCalendar(e){il=e}static get defaultWeekSettings(){return ol}static set defaultWeekSettings(e){ol=Dl(e)}static get twoDigitCutoffYear(){return al}static set twoDigitCutoffYear(e){al=e%100}static get throwOnInvalid(){return Xs}static set throwOnInvalid(e){Xs=e}static resetCaches(){Gs.resetCache(),Fs.resetCache()}}class ll{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const ul=[0,31,59,90,120,151,181,212,243,273,304,334],cl=[0,31,60,91,121,152,182,213,244,274,305,335];function fl(e,t){return new ll("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function dl(e,t,r){const n=new Date(Date.UTC(e,t-1,r));e<100&&e>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);const i=n.getUTCDay();return 0===i?7:i}function hl(e,t,r){return r+(Ll(e)?cl:ul)[t-1]}function pl(e,t){const r=Ll(e)?cl:ul,n=r.findIndex((e=>e<t));return{month:n+1,day:t-r[n]}}function ml(e,t){return(e-t+7)%7+1}function yl(e,t=4,r=1){const{year:n,month:i,day:a}=e,o=hl(n,i,a),s=ml(dl(n,i,a),r);let l,u=Math.floor((o-s+14-t)/7);return u<1?(l=n-1,u=Ul(l,t,r)):u>Ul(n,t,r)?(l=n+1,u=1):l=n,{weekYear:l,weekNumber:u,weekday:s,...Zl(e)}}function vl(e,t=4,r=1){const{weekYear:n,weekNumber:i,weekday:a}=e,o=ml(dl(n,1,t),r),s=Rl(n);let l,u=7*i+a-o-7+t;u<1?(l=n-1,u+=Rl(l)):u>s?(l=n+1,u-=Rl(n)):l=n;const{month:c,day:f}=pl(l,u);return{year:l,month:c,day:f,...Zl(e)}}function gl(e){const{year:t,month:r,day:n}=e;return{year:t,ordinal:hl(t,r,n),...Zl(e)}}function bl(e){const{year:t,ordinal:r}=e,{month:n,day:i}=pl(t,r);return{year:t,month:n,day:i,...Zl(e)}}function wl(e,t){if(!Sl(e.localWeekday)||!Sl(e.localWeekNumber)||!Sl(e.localWeekYear)){if(!Sl(e.weekday)||!Sl(e.weekNumber)||!Sl(e.weekYear))throw new es("Cannot mix locale-based week fields with ISO-based week fields");return Sl(e.localWeekday)||(e.weekday=e.localWeekday),Sl(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),Sl(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}return{minDaysInFirstWeek:4,startOfWeek:1}}function _l(e){const t=xl(e.year),r=Il(e.month,1,12),n=Il(e.day,1,zl(e.year,e.month));return t?r?!n&&fl("day",e.day):fl("month",e.month):fl("year",e.year)}function kl(e){const{hour:t,minute:r,second:n,millisecond:i}=e,a=Il(t,0,23)||24===t&&0===r&&0===n&&0===i,o=Il(r,0,59),s=Il(n,0,59),l=Il(i,0,999);return a?o?s?!l&&fl("millisecond",i):fl("second",n):fl("minute",r):fl("hour",t)}function Sl(e){return void 0===e}function El(e){return"number"==typeof e}function xl(e){return"number"==typeof e&&e%1==0}function Ol(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function Tl(){try{return"undefined"!=typeof Intl&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(e){return!1}}function Nl(e,t,r){if(0!==e.length)return e.reduce(((e,n)=>{const i=[t(n),n];return e&&r(e[0],i[0])===e[0]?e:i}),null)[1]}function Cl(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Dl(e){if(null==e)return null;if("object"!=typeof e)throw new rs("Week settings must be an object");if(!Il(e.firstDay,1,7)||!Il(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some((e=>!Il(e,1,7))))throw new rs("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function Il(e,t,r){return xl(e)&&e>=t&&e<=r}function Pl(e,t=2){let r;return r=e<0?"-"+(""+-e).padStart(t,"0"):(""+e).padStart(t,"0"),r}function Ml(e){return Sl(e)||null===e||""===e?void 0:parseInt(e,10)}function Al(e){return Sl(e)||null===e||""===e?void 0:parseFloat(e)}function Fl(e){if(!Sl(e)&&null!==e&&""!==e){const t=1e3*parseFloat("0."+e);return Math.floor(t)}}function jl(e,t,r=!1){const n=10**t;return(r?Math.trunc:Math.round)(e*n)/n}function Ll(e){return e%4==0&&(e%100!=0||e%400==0)}function Rl(e){return Ll(e)?366:365}function zl(e,t){const r=(n=t-1)-12*Math.floor(n/12)+1;var n;return 2===r?Ll(e+(t-r)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function Vl(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function ql(e,t,r){return-ml(dl(e,1,t),r)+t-1}function Ul(e,t=4,r=1){const n=ql(e,t,r),i=ql(e+1,t,r);return(Rl(e)-n+i)/7}function Ql(e){return e>99?e:e>sl.twoDigitCutoffYear?1900+e:2e3+e}function Bl(e,t,r,n=null){const i=new Date(e),a={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(a.timeZone=n);const o={timeZoneName:t,...a},s=new Intl.DateTimeFormat(r,o).formatToParts(i).find((e=>"timezonename"===e.type.toLowerCase()));return s?s.value:null}function $l(e,t){let r=parseInt(e,10);Number.isNaN(r)&&(r=0);const n=parseInt(t,10)||0;return 60*r+(r<0||Object.is(r,-0)?-n:n)}function Wl(e){const t=Number(e);if("boolean"==typeof e||""===e||Number.isNaN(t))throw new rs(`Invalid unit value ${e}`);return t}function Hl(e,t){const r={};for(const n in e)if(Cl(e,n)){const i=e[n];if(null==i)continue;r[t(n)]=Wl(i)}return r}function Gl(e,t){const r=Math.trunc(Math.abs(e/60)),n=Math.trunc(Math.abs(e%60)),i=e>=0?"+":"-";switch(t){case"short":return`${i}${Pl(r,2)}:${Pl(n,2)}`;case"narrow":return`${i}${r}${n>0?`:${n}`:""}`;case"techie":return`${i}${Pl(r,2)}${Pl(n,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function Zl(e){return function(e,t){return["hour","minute","second","millisecond"].reduce(((t,r)=>(t[r]=e[r],t)),{})}(e)}const Yl=["January","February","March","April","May","June","July","August","September","October","November","December"],Kl=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Jl=["J","F","M","A","M","J","J","A","S","O","N","D"];function Xl(e){switch(e){case"narrow":return[...Jl];case"short":return[...Kl];case"long":return[...Yl];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const eu=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],tu=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],ru=["M","T","W","T","F","S","S"];function nu(e){switch(e){case"narrow":return[...ru];case"short":return[...tu];case"long":return[...eu];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const iu=["AM","PM"],au=["Before Christ","Anno Domini"],ou=["BC","AD"],su=["B","A"];function lu(e){switch(e){case"narrow":return[...su];case"short":return[...ou];case"long":return[...au];default:return null}}function uu(e,t){let r="";for(const n of e)n.literal?r+=n.val:r+=t(n.val);return r}const cu={D:ss,DD:ls,DDD:cs,DDDD:fs,t:ds,tt:hs,ttt:ps,tttt:ms,T:ys,TT:vs,TTT:gs,TTTT:bs,f:ws,ff:ks,fff:xs,ffff:Ts,F:_s,FF:Ss,FFF:Os,FFFF:Ns};class fu{static create(e,t={}){return new fu(e,t)}static parseFormat(e){let t=null,r="",n=!1;const i=[];for(let a=0;a<e.length;a++){const o=e.charAt(a);"'"===o?(r.length>0&&i.push({literal:n||/^\s+$/.test(r),val:r}),t=null,r="",n=!n):n||o===t?r+=o:(r.length>0&&i.push({literal:/^\s+$/.test(r),val:r}),r=o,t=o)}return r.length>0&&i.push({literal:n||/^\s+$/.test(r),val:r}),i}static macroTokenToFormatOpts(e){return cu[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...t}).format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t})}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){return this.dtFormatter(e.start,t).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0){if(this.opts.forceSimple)return Pl(e,t);const r={...this.opts};return t>0&&(r.padTo=t),this.loc.numberFormatter(r).format(e)}formatDateTimeFromString(e,t){const r="en"===this.loc.listingMode(),n=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,i=(t,r)=>this.loc.extract(e,t,r),a=t=>e.isOffsetFixed&&0===e.offset&&t.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,t.format):"",o=(t,n)=>r?function(e,t){return Xl(t)[e.month-1]}(e,t):i(n?{month:t}:{month:t,day:"numeric"},"month"),s=(t,n)=>r?function(e,t){return nu(t)[e.weekday-1]}(e,t):i(n?{weekday:t}:{weekday:t,month:"long",day:"numeric"},"weekday"),l=t=>{const r=fu.macroTokenToFormatOpts(t);return r?this.formatWithSystemDefault(e,r):t},u=t=>r?function(e,t){return lu(t)[e.year<0?0:1]}(e,t):i({era:t},"era");return uu(fu.parseFormat(t),(t=>{switch(t){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12==0?12:e.hour%12);case"hh":return this.num(e.hour%12==0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return a({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return a({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return a({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return r?function(e){return iu[e.hour<12?0:1]}(e):i({hour:"numeric",hourCycle:"h12"},"dayperiod");case"d":return n?i({day:"numeric"},"day"):this.num(e.day);case"dd":return n?i({day:"2-digit"},"day"):this.num(e.day,2);case"c":case"E":return this.num(e.weekday);case"ccc":return s("short",!0);case"cccc":return s("long",!0);case"ccccc":return s("narrow",!0);case"EEE":return s("short",!1);case"EEEE":return s("long",!1);case"EEEEE":return s("narrow",!1);case"L":return n?i({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return n?i({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return o("short",!0);case"LLLL":return o("long",!0);case"LLLLL":return o("narrow",!0);case"M":return n?i({month:"numeric"},"month"):this.num(e.month);case"MM":return n?i({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return o("short",!1);case"MMMM":return o("long",!1);case"MMMMM":return o("narrow",!1);case"y":return n?i({year:"numeric"},"year"):this.num(e.year);case"yy":return n?i({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return n?i({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return n?i({year:"numeric"},"year"):this.num(e.year,6);case"G":return u("short");case"GG":return u("long");case"GGGGG":return u("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return l(t)}}))}formatDurationFromString(e,t){const r=e=>{switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},n=fu.parseFormat(t),i=n.reduce(((e,{literal:t,val:r})=>t?e:e.concat(r)),[]);return uu(n,(e=>t=>{const n=r(t);return n?this.num(e.get(n),t.length):t})(e.shiftTo(...i.map(r).filter((e=>e)))))}}const du=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function hu(...e){const t=e.reduce(((e,t)=>e+t.source),"");return RegExp(`^${t}$`)}function pu(...e){return t=>e.reduce((([e,r,n],i)=>{const[a,o,s]=i(t,n);return[{...e,...a},o||r,s]}),[{},null,1]).slice(0,2)}function mu(e,...t){if(null==e)return[null,null];for(const[r,n]of t){const t=r.exec(e);if(t)return n(t)}return[null,null]}function yu(...e){return(t,r)=>{const n={};let i;for(i=0;i<e.length;i++)n[e[i]]=Ml(t[r+i]);return[n,null,r+i]}}const vu=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,gu=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,bu=RegExp(`${gu.source}(?:${vu.source}?(?:\\[(${du.source})\\])?)?`),wu=RegExp(`(?:T${bu.source})?`),_u=yu("weekYear","weekNumber","weekDay"),ku=yu("year","ordinal"),Su=RegExp(`${gu.source} ?(?:${vu.source}|(${du.source}))?`),Eu=RegExp(`(?: ${Su.source})?`);function xu(e,t,r){const n=e[t];return Sl(n)?r:Ml(n)}function Ou(e,t){return[{hours:xu(e,t,0),minutes:xu(e,t+1,0),seconds:xu(e,t+2,0),milliseconds:Fl(e[t+3])},null,t+4]}function Tu(e,t){const r=!e[t]&&!e[t+1],n=$l(e[t+1],e[t+2]);return[{},r?null:Ys.instance(n),t+3]}function Nu(e,t){return[{},e[t]?Fs.create(e[t]):null,t+1]}const Cu=RegExp(`^T?${gu.source}$`),Du=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function Iu(e){const[t,r,n,i,a,o,s,l,u]=e,c="-"===t[0],f=l&&"-"===l[0],d=(e,t=!1)=>void 0!==e&&(t||e&&c)?-e:e;return[{years:d(Al(r)),months:d(Al(n)),weeks:d(Al(i)),days:d(Al(a)),hours:d(Al(o)),minutes:d(Al(s)),seconds:d(Al(l),"-0"===l),milliseconds:d(Fl(u),f)}]}const Pu={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Mu(e,t,r,n,i,a,o){const s={year:2===t.length?Ql(Ml(t)):Ml(t),month:Kl.indexOf(r)+1,day:Ml(n),hour:Ml(i),minute:Ml(a)};return o&&(s.second=Ml(o)),e&&(s.weekday=e.length>3?eu.indexOf(e)+1:tu.indexOf(e)+1),s}const Au=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Fu(e){const[,t,r,n,i,a,o,s,l,u,c,f]=e,d=Mu(t,i,n,r,a,o,s);let h;return h=l?Pu[l]:u?0:$l(c,f),[d,new Ys(h)]}const ju=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Lu=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Ru=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function zu(e){const[,t,r,n,i,a,o,s]=e;return[Mu(t,i,n,r,a,o,s),Ys.utcInstance]}function Vu(e){const[,t,r,n,i,a,o,s]=e;return[Mu(t,s,r,n,i,a,o),Ys.utcInstance]}const qu=hu(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,wu),Uu=hu(/(\d{4})-?W(\d\d)(?:-?(\d))?/,wu),Qu=hu(/(\d{4})-?(\d{3})/,wu),Bu=hu(bu),$u=pu((function(e,t){return[{year:xu(e,t),month:xu(e,t+1,1),day:xu(e,t+2,1)},null,t+3]}),Ou,Tu,Nu),Wu=pu(_u,Ou,Tu,Nu),Hu=pu(ku,Ou,Tu,Nu),Gu=pu(Ou,Tu,Nu),Zu=pu(Ou),Yu=hu(/(\d{4})-(\d\d)-(\d\d)/,Eu),Ku=hu(Su),Ju=pu(Ou,Tu,Nu),Xu="Invalid Duration",ec={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},tc={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...ec},rc={years:{quarters:4,months:12,weeks:52.1775,days:365.2425,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...ec},nc=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],ic=nc.slice(0).reverse();function ac(e,t,r=!1){const n={values:r?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new lc(n)}function oc(e,t){let r=t.milliseconds??0;for(const n of ic.slice(1))t[n]&&(r+=t[n]*e[n].milliseconds);return r}function sc(e,t){const r=oc(e,t)<0?-1:1;nc.reduceRight(((n,i)=>{if(Sl(t[i]))return n;if(n){const a=t[n]*r,o=e[i][n],s=Math.floor(a/o);t[i]+=s*r,t[n]-=s*o*r}return i}),null),nc.reduce(((r,n)=>{if(Sl(t[n]))return r;if(r){const i=t[r]%1;t[r]-=i,t[n]+=i*e[r][n]}return n}),null)}class lc{constructor(e){const t="longterm"===e.conversionAccuracy||!1;let r=t?rc:tc;e.matrix&&(r=e.matrix),this.values=e.values,this.loc=e.loc||Gs.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=r,this.isLuxonDuration=!0}static fromMillis(e,t){return lc.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(null==e||"object"!=typeof e)throw new rs("Duration.fromObject: argument expected to be an object, got "+(null===e?"null":typeof e));return new lc({values:Hl(e,lc.normalizeUnit),loc:Gs.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(El(e))return lc.fromMillis(e);if(lc.isDuration(e))return e;if("object"==typeof e)return lc.fromObject(e);throw new rs(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,t){const[r]=function(e){return mu(e,[Du,Iu])}(e);return r?lc.fromObject(r,t):lc.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,t){const[r]=function(e){return mu(e,[Cu,Zu])}(e);return r?lc.fromObject(r,t):lc.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,t=null){if(!e)throw new rs("need to specify a reason the Duration is invalid");const r=e instanceof ll?e:new ll(e,t);if(sl.throwOnInvalid)throw new Xo(r);return new lc({invalid:r})}static normalizeUnit(e){const t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new ts(e);return t}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){const r={...t,floor:!1!==t.round&&!1!==t.floor};return this.isValid?fu.create(this.loc,r).formatDurationFromString(this,e):Xu}toHuman(e={}){if(!this.isValid)return Xu;const t=nc.map((t=>{const r=this.values[t];return Sl(r)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:t.slice(0,-1)}).format(r)})).filter((e=>e));return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(t)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return 0!==this.years&&(e+=this.years+"Y"),0===this.months&&0===this.quarters||(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(e+=jl(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const t=this.toMillis();return t<0||t>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},ef.fromMillis(t,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?oc(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const t=lc.fromDurationLike(e),r={};for(const e of nc)(Cl(t.values,e)||Cl(this.values,e))&&(r[e]=t.get(e)+this.get(e));return ac(this,{values:r},!0)}minus(e){if(!this.isValid)return this;const t=lc.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;const t={};for(const r of Object.keys(this.values))t[r]=Wl(e(this.values[r],r));return ac(this,{values:t},!0)}get(e){return this[lc.normalizeUnit(e)]}set(e){return this.isValid?ac(this,{values:{...this.values,...Hl(e,lc.normalizeUnit)}}):this}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:r,matrix:n}={}){return ac(this,{loc:this.loc.clone({locale:e,numberingSystem:t}),matrix:n,conversionAccuracy:r})}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return sc(this.matrix,e),ac(this,{values:e},!0)}rescale(){return this.isValid?ac(this,{values:function(e){const t={};for(const[r,n]of Object.entries(e))0!==n&&(t[r]=n);return t}(this.normalize().shiftToAll().toObject())},!0):this}shiftTo(...e){if(!this.isValid)return this;if(0===e.length)return this;e=e.map((e=>lc.normalizeUnit(e)));const t={},r={},n=this.toObject();let i;for(const a of nc)if(e.indexOf(a)>=0){i=a;let e=0;for(const t in r)e+=this.matrix[t][a]*r[t],r[t]=0;El(n[a])&&(e+=n[a]);const o=Math.trunc(e);t[a]=o,r[a]=(1e3*e-1e3*o)/1e3}else El(n[a])&&(r[a]=n[a]);for(const e in r)0!==r[e]&&(t[i]+=e===i?r[e]:r[e]/this.matrix[i][e]);return sc(this.matrix,t),ac(this,{values:t},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const t of Object.keys(this.values))e[t]=0===this.values[t]?0:-this.values[t];return ac(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid)return!1;if(!this.loc.equals(e.loc))return!1;for(const n of nc)if(t=this.values[n],r=e.values[n],!(void 0===t||0===t?void 0===r||0===r:t===r))return!1;var t,r;return!0}}const uc="Invalid Interval";class cc{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,t=null){if(!e)throw new rs("need to specify a reason the Interval is invalid");const r=e instanceof ll?e:new ll(e,t);if(sl.throwOnInvalid)throw new Jo(r);return new cc({invalid:r})}static fromDateTimes(e,t){const r=tf(e),n=tf(t),i=function(e,t){return e&&e.isValid?t&&t.isValid?t<e?cc.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null:cc.invalid("missing or invalid end"):cc.invalid("missing or invalid start")}(r,n);return null==i?new cc({start:r,end:n}):i}static after(e,t){const r=lc.fromDurationLike(t),n=tf(e);return cc.fromDateTimes(n,n.plus(r))}static before(e,t){const r=lc.fromDurationLike(t),n=tf(e);return cc.fromDateTimes(n.minus(r),n)}static fromISO(e,t){const[r,n]=(e||"").split("/",2);if(r&&n){let e,i,a,o;try{e=ef.fromISO(r,t),i=e.isValid}catch(n){i=!1}try{a=ef.fromISO(n,t),o=a.isValid}catch(n){o=!1}if(i&&o)return cc.fromDateTimes(e,a);if(i){const r=lc.fromISO(n,t);if(r.isValid)return cc.after(e,r)}else if(o){const e=lc.fromISO(r,t);if(e.isValid)return cc.before(a,e)}}return cc.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return null===this.invalidReason}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",t){if(!this.isValid)return NaN;const r=this.start.startOf(e,t);let n;return n=t?.useLocaleWeeks?this.end.reconfigure({locale:r.locale}):this.end,n=n.startOf(e,t),Math.floor(n.diff(r,e).get(e))+(n.valueOf()!==this.end.valueOf())}hasSame(e){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,e))}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return!!this.isValid&&this.s>e}isBefore(e){return!!this.isValid&&this.e<=e}contains(e){return!!this.isValid&&this.s<=e&&this.e>e}set({start:e,end:t}={}){return this.isValid?cc.fromDateTimes(e||this.s,t||this.e):this}splitAt(...e){if(!this.isValid)return[];const t=e.map(tf).filter((e=>this.contains(e))).sort(((e,t)=>e.toMillis()-t.toMillis())),r=[];let{s:n}=this,i=0;for(;n<this.e;){const e=t[i]||this.e,a=+e>+this.e?this.e:e;r.push(cc.fromDateTimes(n,a)),n=a,i+=1}return r}splitBy(e){const t=lc.fromDurationLike(e);if(!this.isValid||!t.isValid||0===t.as("milliseconds"))return[];let r,{s:n}=this,i=1;const a=[];for(;n<this.e;){const e=this.start.plus(t.mapUnits((e=>e*i)));r=+e>+this.e?this.e:e,a.push(cc.fromDateTimes(n,r)),n=r,i+=1}return a}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return!!this.isValid&&+this.e==+e.s}abutsEnd(e){return!!this.isValid&&+e.e==+this.s}engulfs(e){return!!this.isValid&&this.s<=e.s&&this.e>=e.e}equals(e){return!(!this.isValid||!e.isValid)&&this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;const t=this.s>e.s?this.s:e.s,r=this.e<e.e?this.e:e.e;return t>=r?null:cc.fromDateTimes(t,r)}union(e){if(!this.isValid)return this;const t=this.s<e.s?this.s:e.s,r=this.e>e.e?this.e:e.e;return cc.fromDateTimes(t,r)}static merge(e){const[t,r]=e.sort(((e,t)=>e.s-t.s)).reduce((([e,t],r)=>t?t.overlaps(r)||t.abutsStart(r)?[e,t.union(r)]:[e.concat([t]),r]:[e,r]),[[],null]);return r&&t.push(r),t}static xor(e){let t=null,r=0;const n=[],i=e.map((e=>[{time:e.s,type:"s"},{time:e.e,type:"e"}])),a=Array.prototype.concat(...i).sort(((e,t)=>e.time-t.time));for(const e of a)r+="s"===e.type?1:-1,1===r?t=e.time:(t&&+t!=+e.time&&n.push(cc.fromDateTimes(t,e.time)),t=null);return cc.merge(n)}difference(...e){return cc.xor([this].concat(e)).map((e=>this.intersection(e))).filter((e=>e&&!e.isEmpty()))}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:uc}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=ss,t={}){return this.isValid?fu.create(this.s.loc.clone(t),e).formatInterval(this):uc}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:uc}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:uc}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:uc}toFormat(e,{separator:t=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:uc}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):lc.invalid(this.invalidReason)}mapEndpoints(e){return cc.fromDateTimes(e(this.s),e(this.e))}}class fc{static hasDST(e=sl.defaultZone){const t=ef.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return Fs.isValidZone(e)}static normalizeZone(e){return Js(e,sl.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||Gs.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||Gs.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||Gs.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null,outputCalendar:i="gregory"}={}){return(n||Gs.create(t,r,i)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null,outputCalendar:i="gregory"}={}){return(n||Gs.create(t,r,i)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null}={}){return(n||Gs.create(t,r,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:r=null,locObj:n=null}={}){return(n||Gs.create(t,r,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return Gs.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return Gs.create(t,null,"gregory").eras(e)}static features(){return{relative:Ol(),localeWeek:Tl()}}}function dc(e,t){const r=e=>e.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=r(t)-r(e);return Math.floor(lc.fromMillis(n).as("days"))}const hc={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},pc={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},mc=hc.hanidec.replace(/[\[|\]]/g,"").split("");function yc({numberingSystem:e},t=""){return new RegExp(`${hc[e||"latn"]}${t}`)}function vc(e,t=(e=>e)){return{regex:e,deser:([e])=>t(function(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let r=0;r<e.length;r++){const n=e.charCodeAt(r);if(-1!==e[r].search(hc.hanidec))t+=mc.indexOf(e[r]);else for(const e in pc){const[r,i]=pc[e];n>=r&&n<=i&&(t+=n-r)}}return parseInt(t,10)}return t}(e))}}const gc=`[ ${String.fromCharCode(160)}]`,bc=new RegExp(gc,"g");function wc(e){return e.replace(/\./g,"\\.?").replace(bc,gc)}function _c(e){return e.replace(/\./g,"").replace(bc," ").toLowerCase()}function kc(e,t){return null===e?null:{regex:RegExp(e.map(wc).join("|")),deser:([r])=>e.findIndex((e=>_c(r)===_c(e)))+t}}function Sc(e,t){return{regex:e,deser:([,e,t])=>$l(e,t),groups:t}}function Ec(e){return{regex:e,deser:([e])=>e}}const xc={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};let Oc=null;function Tc(e,t){return Array.prototype.concat(...e.map((e=>function(e,t){if(e.literal)return e;const r=Cc(fu.macroTokenToFormatOpts(e.val),t);return null==r||r.includes(void 0)?e:r}(e,t))))}function Nc(e,t,r){const n=Tc(fu.parseFormat(r),e),i=n.map((t=>function(e,t){const r=yc(t),n=yc(t,"{2}"),i=yc(t,"{3}"),a=yc(t,"{4}"),o=yc(t,"{6}"),s=yc(t,"{1,2}"),l=yc(t,"{1,3}"),u=yc(t,"{1,6}"),c=yc(t,"{1,9}"),f=yc(t,"{2,4}"),d=yc(t,"{4,6}"),h=e=>{return{regex:RegExp((t=e.val,t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:([e])=>e,literal:!0};var t},p=(p=>{if(e.literal)return h(p);switch(p.val){case"G":return kc(t.eras("short"),0);case"GG":return kc(t.eras("long"),0);case"y":return vc(u);case"yy":case"kk":return vc(f,Ql);case"yyyy":case"kkkk":return vc(a);case"yyyyy":return vc(d);case"yyyyyy":return vc(o);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return vc(s);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return vc(n);case"MMM":return kc(t.months("short",!0),1);case"MMMM":return kc(t.months("long",!0),1);case"LLL":return kc(t.months("short",!1),1);case"LLLL":return kc(t.months("long",!1),1);case"o":case"S":return vc(l);case"ooo":case"SSS":return vc(i);case"u":return Ec(c);case"uu":return Ec(s);case"uuu":case"E":case"c":return vc(r);case"a":return kc(t.meridiems(),0);case"EEE":return kc(t.weekdays("short",!1),1);case"EEEE":return kc(t.weekdays("long",!1),1);case"ccc":return kc(t.weekdays("short",!0),1);case"cccc":return kc(t.weekdays("long",!0),1);case"Z":case"ZZ":return Sc(new RegExp(`([+-]${s.source})(?::(${n.source}))?`),2);case"ZZZ":return Sc(new RegExp(`([+-]${s.source})(${n.source})?`),2);case"z":return Ec(/[a-z_+-/]{1,256}?/i);case" ":return Ec(/[^\S\n\r]/);default:return h(p)}})(e)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return p.token=e,p}(t,e))),a=i.find((e=>e.invalidReason));if(a)return{input:t,tokens:n,invalidReason:a.invalidReason};{const[e,r]=function(e){return[`^${e.map((e=>e.regex)).reduce(((e,t)=>`${e}(${t.source})`),"")}$`,e]}(i),a=RegExp(e,"i"),[o,s]=function(e,t,r){const n=e.match(t);if(n){const e={};let t=1;for(const i in r)if(Cl(r,i)){const a=r[i],o=a.groups?a.groups+1:1;!a.literal&&a.token&&(e[a.token.val[0]]=a.deser(n.slice(t,t+o))),t+=o}return[n,e]}return[n,{}]}(t,a,r),[l,u,c]=s?function(e){let t,r=null;return Sl(e.z)||(r=Fs.create(e.z)),Sl(e.Z)||(r||(r=new Ys(e.Z)),t=e.Z),Sl(e.q)||(e.M=3*(e.q-1)+1),Sl(e.h)||(e.h<12&&1===e.a?e.h+=12:12===e.h&&0===e.a&&(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),Sl(e.u)||(e.S=Fl(e.u)),[Object.keys(e).reduce(((t,r)=>{const n=(e=>{switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}})(r);return n&&(t[n]=e[r]),t}),{}),r,t]}(s):[null,null,void 0];if(Cl(s,"a")&&Cl(s,"H"))throw new es("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:n,regex:a,rawMatches:o,matches:s,result:l,zone:u,specificOffset:c}}}function Cc(e,t){if(!e)return null;const r=fu.create(t,e).dtFormatter((Oc||(Oc=ef.fromMillis(1555555555555)),Oc)),n=r.formatToParts(),i=r.resolvedOptions();return n.map((t=>function(e,t,r){const{type:n,value:i}=e;if("literal"===n){const e=/^\s+$/.test(i);return{literal:!e,val:e?" ":i}}const a=t[n];let o=n;"hour"===n&&(o=null!=t.hour12?t.hour12?"hour12":"hour24":null!=t.hourCycle?"h11"===t.hourCycle||"h12"===t.hourCycle?"hour12":"hour24":r.hour12?"hour12":"hour24");let s=xc[o];if("object"==typeof s&&(s=s[a]),s)return{literal:!1,val:s}}(t,e,i)))}const Dc="Invalid DateTime",Ic=864e13;function Pc(e){return new ll("unsupported zone",`the zone "${e.name}" is not supported`)}function Mc(e){return null===e.weekData&&(e.weekData=yl(e.c)),e.weekData}function Ac(e){return null===e.localWeekData&&(e.localWeekData=yl(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function Fc(e,t){const r={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new ef({...r,...t,old:r})}function jc(e,t,r){let n=e-60*t*1e3;const i=r.offset(n);if(t===i)return[n,t];n-=60*(i-t)*1e3;const a=r.offset(n);return i===a?[n,i]:[e-60*Math.min(i,a)*1e3,Math.max(i,a)]}function Lc(e,t){const r=new Date(e+=60*t*1e3);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function Rc(e,t,r){return jc(Vl(e),t,r)}function zc(e,t){const r=e.o,n=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),a={...e.c,year:n,month:i,day:Math.min(e.c.day,zl(n,i))+Math.trunc(t.days)+7*Math.trunc(t.weeks)},o=lc.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),s=Vl(a);let[l,u]=jc(s,r,e.zone);return 0!==o&&(l+=o,u=e.zone.offset(l)),{ts:l,o:u}}function Vc(e,t,r,n,i,a){const{setZone:o,zone:s}=r;if(e&&0!==Object.keys(e).length||t){const n=t||s,i=ef.fromObject(e,{...r,zone:n,specificOffset:a});return o?i:i.setZone(s)}return ef.invalid(new ll("unparsable",`the input "${i}" can't be parsed as ${n}`))}function qc(e,t,r=!0){return e.isValid?fu.create(Gs.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(e,t):null}function Uc(e,t){const r=e.c.year>9999||e.c.year<0;let n="";return r&&e.c.year>=0&&(n+="+"),n+=Pl(e.c.year,r?6:4),t?(n+="-",n+=Pl(e.c.month),n+="-",n+=Pl(e.c.day)):(n+=Pl(e.c.month),n+=Pl(e.c.day)),n}function Qc(e,t,r,n,i,a){let o=Pl(e.c.hour);return t?(o+=":",o+=Pl(e.c.minute),0===e.c.millisecond&&0===e.c.second&&r||(o+=":")):o+=Pl(e.c.minute),0===e.c.millisecond&&0===e.c.second&&r||(o+=Pl(e.c.second),0===e.c.millisecond&&n||(o+=".",o+=Pl(e.c.millisecond,3))),i&&(e.isOffsetFixed&&0===e.offset&&!a?o+="Z":e.o<0?(o+="-",o+=Pl(Math.trunc(-e.o/60)),o+=":",o+=Pl(Math.trunc(-e.o%60))):(o+="+",o+=Pl(Math.trunc(e.o/60)),o+=":",o+=Pl(Math.trunc(e.o%60)))),a&&(o+="["+e.zone.ianaName+"]"),o}const Bc={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},$c={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Wc={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Hc=["year","month","day","hour","minute","second","millisecond"],Gc=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Zc=["year","ordinal","hour","minute","second","millisecond"];function Yc(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return function(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new ts(e);return t}(e)}}function Kc(e,t){const r=Js(t.zone,sl.defaultZone),n=Gs.fromObject(t),i=sl.now();let a,o;if(Sl(e.year))a=i;else{for(const t of Hc)Sl(e[t])&&(e[t]=Bc[t]);const t=_l(e)||kl(e);if(t)return ef.invalid(t);const n=r.offset(i);[a,o]=Rc(e,n,r)}return new ef({ts:a,zone:r,loc:n,o})}function Jc(e,t,r){const n=!!Sl(r.round)||r.round,i=(e,i)=>(e=jl(e,n||r.calendary?0:2,!0),t.loc.clone(r).relFormatter(r).format(e,i)),a=n=>r.calendary?t.hasSame(e,n)?0:t.startOf(n).diff(e.startOf(n),n).get(n):t.diff(e,n).get(n);if(r.unit)return i(a(r.unit),r.unit);for(const e of r.units){const t=a(e);if(Math.abs(t)>=1)return i(t,e)}return i(e>t?-0:0,r.units[r.units.length-1])}function Xc(e){let t,r={};return e.length>0&&"object"==typeof e[e.length-1]?(r=e[e.length-1],t=Array.from(e).slice(0,e.length-1)):t=Array.from(e),[r,t]}class ef{constructor(e){const t=e.zone||sl.defaultZone;let r=e.invalid||(Number.isNaN(e.ts)?new ll("invalid input"):null)||(t.isValid?null:Pc(t));this.ts=Sl(e.ts)?sl.now():e.ts;let n=null,i=null;if(!r)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t))[n,i]=[e.old.c,e.old.o];else{const e=t.offset(this.ts);n=Lc(this.ts,e),r=Number.isNaN(n.year)?new ll("invalid input"):null,n=r?null:n,i=r?null:e}this._zone=t,this.loc=e.loc||Gs.create(),this.invalid=r,this.weekData=null,this.localWeekData=null,this.c=n,this.o=i,this.isLuxonDateTime=!0}static now(){return new ef({})}static local(){const[e,t]=Xc(arguments),[r,n,i,a,o,s,l]=t;return Kc({year:r,month:n,day:i,hour:a,minute:o,second:s,millisecond:l},e)}static utc(){const[e,t]=Xc(arguments),[r,n,i,a,o,s,l]=t;return e.zone=Ys.utcInstance,Kc({year:r,month:n,day:i,hour:a,minute:o,second:s,millisecond:l},e)}static fromJSDate(e,t={}){const r=(n=e,"[object Date]"===Object.prototype.toString.call(n)?e.valueOf():NaN);var n;if(Number.isNaN(r))return ef.invalid("invalid input");const i=Js(t.zone,sl.defaultZone);return i.isValid?new ef({ts:r,zone:i,loc:Gs.fromObject(t)}):ef.invalid(Pc(i))}static fromMillis(e,t={}){if(El(e))return e<-Ic||e>Ic?ef.invalid("Timestamp out of range"):new ef({ts:e,zone:Js(t.zone,sl.defaultZone),loc:Gs.fromObject(t)});throw new rs(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,t={}){if(El(e))return new ef({ts:1e3*e,zone:Js(t.zone,sl.defaultZone),loc:Gs.fromObject(t)});throw new rs("fromSeconds requires a numerical input")}static fromObject(e,t={}){e=e||{};const r=Js(t.zone,sl.defaultZone);if(!r.isValid)return ef.invalid(Pc(r));const n=Gs.fromObject(t),i=Hl(e,Yc),{minDaysInFirstWeek:a,startOfWeek:o}=wl(i,n),s=sl.now(),l=Sl(t.specificOffset)?r.offset(s):t.specificOffset,u=!Sl(i.ordinal),c=!Sl(i.year),f=!Sl(i.month)||!Sl(i.day),d=c||f,h=i.weekYear||i.weekNumber;if((d||u)&&h)throw new es("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(f&&u)throw new es("Can't mix ordinal dates with month/day");const p=h||i.weekday&&!d;let m,y,v=Lc(s,l);p?(m=Gc,y=$c,v=yl(v,a,o)):u?(m=Zc,y=Wc,v=gl(v)):(m=Hc,y=Bc);let g=!1;for(const e of m)Sl(i[e])?i[e]=g?y[e]:v[e]:g=!0;const b=p?function(e,t=4,r=1){const n=xl(e.weekYear),i=Il(e.weekNumber,1,Ul(e.weekYear,t,r)),a=Il(e.weekday,1,7);return n?i?!a&&fl("weekday",e.weekday):fl("week",e.weekNumber):fl("weekYear",e.weekYear)}(i,a,o):u?function(e){const t=xl(e.year),r=Il(e.ordinal,1,Rl(e.year));return t?!r&&fl("ordinal",e.ordinal):fl("year",e.year)}(i):_l(i),w=b||kl(i);if(w)return ef.invalid(w);const _=p?vl(i,a,o):u?bl(i):i,[k,S]=Rc(_,l,r),E=new ef({ts:k,zone:r,o:S,loc:n});return i.weekday&&d&&e.weekday!==E.weekday?ef.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${E.toISO()}`):E}static fromISO(e,t={}){const[r,n]=function(e){return mu(e,[qu,$u],[Uu,Wu],[Qu,Hu],[Bu,Gu])}(e);return Vc(r,n,t,"ISO 8601",e)}static fromRFC2822(e,t={}){const[r,n]=function(e){return mu(function(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(e),[Au,Fu])}(e);return Vc(r,n,t,"RFC 2822",e)}static fromHTTP(e,t={}){const[r,n]=function(e){return mu(e,[ju,zu],[Lu,zu],[Ru,Vu])}(e);return Vc(r,n,t,"HTTP",t)}static fromFormat(e,t,r={}){if(Sl(e)||Sl(t))throw new rs("fromFormat requires an input string and a format");const{locale:n=null,numberingSystem:i=null}=r,a=Gs.fromOpts({locale:n,numberingSystem:i,defaultToEN:!0}),[o,s,l,u]=function(e,t,r){const{result:n,zone:i,specificOffset:a,invalidReason:o}=Nc(e,t,r);return[n,i,a,o]}(a,e,t);return u?ef.invalid(u):Vc(o,s,r,`format ${t}`,e,l)}static fromString(e,t,r={}){return ef.fromFormat(e,t,r)}static fromSQL(e,t={}){const[r,n]=function(e){return mu(e,[Yu,$u],[Ku,Ju])}(e);return Vc(r,n,t,"SQL",e)}static invalid(e,t=null){if(!e)throw new rs("need to specify a reason the DateTime is invalid");const r=e instanceof ll?e:new ll(e,t);if(sl.throwOnInvalid)throw new Ko(r);return new ef({invalid:r})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){const r=Cc(e,Gs.fromObject(t));return r?r.map((e=>e?e.val:null)).join(""):null}static expandFormat(e,t={}){return Tc(fu.parseFormat(e),Gs.fromObject(t)).map((e=>e.val)).join("")}get(e){return this[e]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Mc(this).weekYear:NaN}get weekNumber(){return this.isValid?Mc(this).weekNumber:NaN}get weekday(){return this.isValid?Mc(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Ac(this).weekday:NaN}get localWeekNumber(){return this.isValid?Ac(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Ac(this).weekYear:NaN}get ordinal(){return this.isValid?gl(this.c).ordinal:NaN}get monthShort(){return this.isValid?fc.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?fc.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?fc.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?fc.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,t=6e4,r=Vl(this.c),n=this.zone.offset(r-e),i=this.zone.offset(r+e),a=this.zone.offset(r-n*t),o=this.zone.offset(r-i*t);if(a===o)return[this];const s=r-a*t,l=r-o*t,u=Lc(s,a),c=Lc(l,o);return u.hour===c.hour&&u.minute===c.minute&&u.second===c.second&&u.millisecond===c.millisecond?[Fc(this,{ts:s}),Fc(this,{ts:l})]:[this]}get isInLeapYear(){return Ll(this.year)}get daysInMonth(){return zl(this.year,this.month)}get daysInYear(){return this.isValid?Rl(this.year):NaN}get weeksInWeekYear(){return this.isValid?Ul(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Ul(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:t,numberingSystem:r,calendar:n}=fu.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:r,outputCalendar:n}}toUTC(e=0,t={}){return this.setZone(Ys.instance(e),t)}toLocal(){return this.setZone(sl.defaultZone)}setZone(e,{keepLocalTime:t=!1,keepCalendarTime:r=!1}={}){if((e=Js(e,sl.defaultZone)).equals(this.zone))return this;if(e.isValid){let n=this.ts;if(t||r){const t=e.offset(this.ts),r=this.toObject();[n]=Rc(r,t,e)}return Fc(this,{ts:n,zone:e})}return ef.invalid(Pc(e))}reconfigure({locale:e,numberingSystem:t,outputCalendar:r}={}){return Fc(this,{loc:this.loc.clone({locale:e,numberingSystem:t,outputCalendar:r})})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const t=Hl(e,Yc),{minDaysInFirstWeek:r,startOfWeek:n}=wl(t,this.loc),i=!Sl(t.weekYear)||!Sl(t.weekNumber)||!Sl(t.weekday),a=!Sl(t.ordinal),o=!Sl(t.year),s=!Sl(t.month)||!Sl(t.day),l=o||s,u=t.weekYear||t.weekNumber;if((l||a)&&u)throw new es("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(s&&a)throw new es("Can't mix ordinal dates with month/day");let c;i?c=vl({...yl(this.c,r,n),...t},r,n):Sl(t.ordinal)?(c={...this.toObject(),...t},Sl(t.day)&&(c.day=Math.min(zl(c.year,c.month),c.day))):c=bl({...gl(this.c),...t});const[f,d]=Rc(c,this.o,this.zone);return Fc(this,{ts:f,o:d})}plus(e){return this.isValid?Fc(this,zc(this,lc.fromDurationLike(e))):this}minus(e){return this.isValid?Fc(this,zc(this,lc.fromDurationLike(e).negate())):this}startOf(e,{useLocaleWeeks:t=!1}={}){if(!this.isValid)return this;const r={},n=lc.normalizeUnit(e);switch(n){case"years":r.month=1;case"quarters":case"months":r.day=1;case"weeks":case"days":r.hour=0;case"hours":r.minute=0;case"minutes":r.second=0;case"seconds":r.millisecond=0}if("weeks"===n)if(t){const e=this.loc.getStartOfWeek(),{weekday:t}=this;t<e&&(r.weekNumber=this.weekNumber-1),r.weekday=e}else r.weekday=1;if("quarters"===n){const e=Math.ceil(this.month/3);r.month=3*(e-1)+1}return this.set(r)}endOf(e,t){return this.isValid?this.plus({[e]:1}).startOf(e,t).minus(1):this}toFormat(e,t={}){return this.isValid?fu.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):Dc}toLocaleString(e=ss,t={}){return this.isValid?fu.create(this.loc.clone(t),e).formatDateTime(this):Dc}toLocaleParts(e={}){return this.isValid?fu.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:t=!1,suppressMilliseconds:r=!1,includeOffset:n=!0,extendedZone:i=!1}={}){if(!this.isValid)return null;const a="extended"===e;let o=Uc(this,a);return o+="T",o+=Qc(this,a,t,r,n,i),o}toISODate({format:e="extended"}={}){return this.isValid?Uc(this,"extended"===e):null}toISOWeekDate(){return qc(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:t=!1,includeOffset:r=!0,includePrefix:n=!1,extendedZone:i=!1,format:a="extended"}={}){return this.isValid?(n?"T":"")+Qc(this,"extended"===a,t,e,r,i):null}toRFC2822(){return qc(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return qc(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Uc(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:t=!1,includeOffsetSpace:r=!0}={}){let n="HH:mm:ss.SSS";return(t||e)&&(r&&(n+=" "),t?n+="z":e&&(n+="ZZ")),qc(this,n,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():Dc}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const t={...this.c};return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,t="milliseconds",r={}){if(!this.isValid||!e.isValid)return lc.invalid("created by diffing an invalid DateTime");const n={locale:this.locale,numberingSystem:this.numberingSystem,...r},i=(s=t,Array.isArray(s)?s:[s]).map(lc.normalizeUnit),a=e.valueOf()>this.valueOf(),o=function(e,t,r,n){let[i,a,o,s]=function(e,t,r){const n=[["years",(e,t)=>t.year-e.year],["quarters",(e,t)=>t.quarter-e.quarter+4*(t.year-e.year)],["months",(e,t)=>t.month-e.month+12*(t.year-e.year)],["weeks",(e,t)=>{const r=dc(e,t);return(r-r%7)/7}],["days",dc]],i={},a=e;let o,s;for(const[l,u]of n)r.indexOf(l)>=0&&(o=l,i[l]=u(e,t),s=a.plus(i),s>t?(i[l]--,(e=a.plus(i))>t&&(s=e,i[l]--,e=a.plus(i))):e=s);return[e,i,s,o]}(e,t,r);const l=t-i,u=r.filter((e=>["hours","minutes","seconds","milliseconds"].indexOf(e)>=0));0===u.length&&(o<t&&(o=i.plus({[s]:1})),o!==i&&(a[s]=(a[s]||0)+l/(o-i)));const c=lc.fromObject(a,n);return u.length>0?lc.fromMillis(l,n).shiftTo(...u).plus(c):c}(a?this:e,a?e:this,i,n);var s;return a?o.negate():o}diffNow(e="milliseconds",t={}){return this.diff(ef.now(),e,t)}until(e){return this.isValid?cc.fromDateTimes(this,e):this}hasSame(e,t,r){if(!this.isValid)return!1;const n=e.valueOf(),i=this.setZone(e.zone,{keepLocalTime:!0});return i.startOf(t,r)<=n&&n<=i.endOf(t,r)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const t=e.base||ef.fromObject({},{zone:this.zone}),r=e.padding?this<t?-e.padding:e.padding:0;let n=["years","months","days","hours","minutes","seconds"],i=e.unit;return Array.isArray(e.unit)&&(n=e.unit,i=void 0),Jc(t,this.plus(r),{...e,numeric:"always",units:n,unit:i})}toRelativeCalendar(e={}){return this.isValid?Jc(e.base||ef.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(ef.isDateTime))throw new rs("min requires all arguments be DateTimes");return Nl(e,(e=>e.valueOf()),Math.min)}static max(...e){if(!e.every(ef.isDateTime))throw new rs("max requires all arguments be DateTimes");return Nl(e,(e=>e.valueOf()),Math.max)}static fromFormatExplain(e,t,r={}){const{locale:n=null,numberingSystem:i=null}=r;return Nc(Gs.fromOpts({locale:n,numberingSystem:i,defaultToEN:!0}),e,t)}static fromStringExplain(e,t,r={}){return ef.fromFormatExplain(e,t,r)}static get DATE_SHORT(){return ss}static get DATE_MED(){return ls}static get DATE_MED_WITH_WEEKDAY(){return us}static get DATE_FULL(){return cs}static get DATE_HUGE(){return fs}static get TIME_SIMPLE(){return ds}static get TIME_WITH_SECONDS(){return hs}static get TIME_WITH_SHORT_OFFSET(){return ps}static get TIME_WITH_LONG_OFFSET(){return ms}static get TIME_24_SIMPLE(){return ys}static get TIME_24_WITH_SECONDS(){return vs}static get TIME_24_WITH_SHORT_OFFSET(){return gs}static get TIME_24_WITH_LONG_OFFSET(){return bs}static get DATETIME_SHORT(){return ws}static get DATETIME_SHORT_WITH_SECONDS(){return _s}static get DATETIME_MED(){return ks}static get DATETIME_MED_WITH_SECONDS(){return Ss}static get DATETIME_MED_WITH_WEEKDAY(){return Es}static get DATETIME_FULL(){return xs}static get DATETIME_FULL_WITH_SECONDS(){return Os}static get DATETIME_HUGE(){return Ts}static get DATETIME_HUGE_WITH_SECONDS(){return Ns}}function tf(e){if(ef.isDateTime(e))return e;if(e&&e.valueOf&&El(e.valueOf()))return ef.fromJSDate(e);if(e&&"object"==typeof e)return ef.fromObject(e);throw new rs(`Unknown datetime argument: ${e}, of type ${typeof e}`)}var rf=(e=>(e.Backlog="backlog",e.Complete="complete",e.InProgress="in_progress",e.Ready="ready",e))(rf||{});function nf(e,t){var r=To(null==t?void 0:t.client);Oo(e,bo.Mutation);var n=ba.useState({called:!1,loading:!1,client:r}),i=n[0],o=n[1],s=ba.useRef({result:i,mutationId:0,isMounted:!0,client:r,mutation:e,options:t});Object.assign(s.current,{client:r,options:t,mutation:e});var l=ba.useCallback((function(e){void 0===e&&(e={});var t=s.current,r=t.options,n=t.mutation,i=a(a({},r),{mutation:n}),l=e.client||s.current.client;s.current.result.loading||i.ignoreResults||!s.current.isMounted||o(s.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:l});var u=++s.current.mutationId,c=mi(i,e);return l.mutate(c).then((function(t){var r,n,i=t.data,a=t.errors,f=a&&a.length>0?new It({graphQLErrors:a}):void 0,d=e.onError||(null===(r=s.current.options)||void 0===r?void 0:r.onError);if(f&&d&&d(f,c),u===s.current.mutationId&&!c.ignoreResults){var h={called:!0,loading:!1,data:i,error:f,client:l};s.current.isMounted&&!Or(s.current.result,h)&&o(s.current.result=h)}var p=e.onCompleted||(null===(n=s.current.options)||void 0===n?void 0:n.onCompleted);return f||null==p||p(t.data,c),t})).catch((function(t){var r;if(u===s.current.mutationId&&s.current.isMounted){var n={loading:!1,error:t,data:void 0,called:!0,client:l};Or(s.current.result,n)||o(s.current.result=n)}var i=e.onError||(null===(r=s.current.options)||void 0===r?void 0:r.onError);if(i)return i(t,c),{data:void 0,errors:t};throw t}))}),[]),u=ba.useCallback((function(){if(s.current.isMounted){var e={called:!1,loading:!1,client:r};Object.assign(s.current,{mutationId:0,result:e}),o(e)}}),[]);return ba.useEffect((function(){return s.current.isMounted=!0,function(){s.current.isMounted=!1}}),[]),[l,a({reset:u},i)]}var af=Object.defineProperty,of=Object.defineProperties,sf=Object.getOwnPropertyDescriptors,lf=Object.getOwnPropertySymbols,uf=Object.prototype.hasOwnProperty,cf=Object.prototype.propertyIsEnumerable,ff=(e,t,r)=>t in e?af(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,df=(e,t)=>{for(var r in t||(t={}))uf.call(t,r)&&ff(e,r,t[r]);if(lf)for(var r of lf(t))cf.call(t,r)&&ff(e,r,t[r]);return e},hf=(e,t)=>of(e,sf(t)),pf=(e,t)=>{var r={};for(var n in e)uf.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&lf)for(var n of lf(e))t.indexOf(n)<0&&cf.call(e,n)&&(r[n]=e[n]);return r};const mf=yo`
13
13
  mutation UpdateTask($taskId: Int!, $input: TaskInput!) {
14
14
  updateTask(taskId: $taskId, input: $input) {
15
15
  errors