tia-gpc-widget 3.0.5 → 3.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- var TiaGPC=function(e){"use strict";function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var n,r,o={exports:{}},i={};function a(){if(n)return i;n=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=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"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,m={};function y(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}function v(){}function b(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}y.prototype.isReactComponent={},y.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")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=y.prototype;var k=b.prototype=new v;k.constructor=b,g(k,y.prototype),k.isPureReactComponent=!0;var x=Array.isArray,w=Object.prototype.hasOwnProperty,S={current:null},C={key:!0,ref:!0,__self:!0,__source:!0};function E(t,n,r){var o,i={},a=null,s=null;if(null!=n)for(o in void 0!==n.ref&&(s=n.ref),void 0!==n.key&&(a=""+n.key),n)w.call(n,o)&&!C.hasOwnProperty(o)&&(i[o]=n[o]);var l=arguments.length-2;if(1===l)i.children=r;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];i.children=u}if(t&&t.defaultProps)for(o in l=t.defaultProps)void 0===i[o]&&(i[o]=l[o]);return{$$typeof:e,type:t,key:a,ref:s,props:i,_owner:S.current}}function N(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var T=/\/+/g;function L(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 O(n,r,o,i,a){var s=typeof n;"undefined"!==s&&"boolean"!==s||(n=null);var l=!1;if(null===n)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(n.$$typeof){case e:case t:l=!0}}if(l)return a=a(l=n),n=""===i?"."+L(l,0):i,x(a)?(o="",null!=n&&(o=n.replace(T,"$&/")+"/"),O(a,r,o,"",function(e){return e})):null!=a&&(N(a)&&(a=function(t,n){return{$$typeof:e,type:t.type,key:n,ref:t.ref,props:t.props,_owner:t._owner}}(a,o+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(T,"$&/")+"/")+n)),r.push(a)),1;if(l=0,i=""===i?".":i+":",x(n))for(var u=0;u<n.length;u++){var c=i+L(s=n[u],u);l+=O(s,r,o,c,a)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(n),"function"==typeof c)for(n=c.call(n),u=0;!(s=n.next()).done;)l+=O(s=s.value,r,o,c=i+L(s,u++),a);else if("object"===s)throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return l}function P(e,t,n){if(null==e)return e;var r=[],o=0;return O(e,r,"","",function(e){return t.call(n,e,o++)}),r}function A(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 R={current:null},I={transition:null},j={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:I,ReactCurrentOwner:S};function D(){throw Error("act(...) is not supported in production builds of React.")}return i.Children={map:P,forEach:function(e,t,n){P(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return P(e,function(){t++}),t},toArray:function(e){return P(e,function(e){return e})||[]},only:function(e){if(!N(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},i.Component=y,i.Fragment=r,i.Profiler=a,i.PureComponent=b,i.StrictMode=o,i.Suspense=c,i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=j,i.act=D,i.cloneElement=function(t,n,r){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var o=g({},t.props),i=t.key,a=t.ref,s=t._owner;if(null!=n){if(void 0!==n.ref&&(a=n.ref,s=S.current),void 0!==n.key&&(i=""+n.key),t.type&&t.type.defaultProps)var l=t.type.defaultProps;for(u in n)w.call(n,u)&&!C.hasOwnProperty(u)&&(o[u]=void 0===n[u]&&void 0!==l?l[u]:n[u])}var u=arguments.length-2;if(1===u)o.children=r;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];o.children=l}return{$$typeof:e,type:t.type,key:i,ref:a,props:o,_owner:s}},i.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},i.createElement=E,i.createFactory=function(e){var t=E.bind(null,e);return t.type=e,t},i.createRef=function(){return{current:null}},i.forwardRef=function(e){return{$$typeof:u,render:e}},i.isValidElement=N,i.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:A}},i.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},i.startTransition=function(e){var t=I.transition;I.transition={};try{e()}finally{I.transition=t}},i.unstable_act=D,i.useCallback=function(e,t){return R.current.useCallback(e,t)},i.useContext=function(e){return R.current.useContext(e)},i.useDebugValue=function(){},i.useDeferredValue=function(e){return R.current.useDeferredValue(e)},i.useEffect=function(e,t){return R.current.useEffect(e,t)},i.useId=function(){return R.current.useId()},i.useImperativeHandle=function(e,t,n){return R.current.useImperativeHandle(e,t,n)},i.useInsertionEffect=function(e,t){return R.current.useInsertionEffect(e,t)},i.useLayoutEffect=function(e,t){return R.current.useLayoutEffect(e,t)},i.useMemo=function(e,t){return R.current.useMemo(e,t)},i.useReducer=function(e,t,n){return R.current.useReducer(e,t,n)},i.useRef=function(e){return R.current.useRef(e)},i.useState=function(e){return R.current.useState(e)},i.useSyncExternalStore=function(e,t,n){return R.current.useSyncExternalStore(e,t,n)},i.useTransition=function(){return R.current.useTransition()},i.version="18.3.1",i}function s(){return r||(r=1,o.exports=a()),o.exports}var l=s();const u=t(l);var c,d,f,p,h,g={},m={exports:{}},y={},v={exports:{}},b={};function k(){return d||(d=1,v.exports=(c||(c=1,function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,l=e[s],u=s+1,c=e[u];if(0>o(l,n))u<i&&0>o(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else{if(!(u<i&&0>o(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],c=1,d=null,f=3,p=!1,h=!1,g=!1,m="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function b(e){for(var o=n(u);null!==o;){if(null===o.callback)r(u);else{if(!(o.startTime<=e))break;r(u),o.sortIndex=o.expirationTime,t(l,o)}o=n(u)}}function k(e){if(g=!1,b(e),!h)if(null!==n(l))h=!0,R(x);else{var t=n(u);null!==t&&I(k,t.startTime-e)}}function x(t,o){h=!1,g&&(g=!1,y(E),E=-1),p=!0;var i=f;try{for(b(o),d=n(l);null!==d&&(!(d.expirationTime>o)||t&&!L());){var a=d.callback;if("function"==typeof a){d.callback=null,f=d.priorityLevel;var s=a(d.expirationTime<=o);o=e.unstable_now(),"function"==typeof s?d.callback=s:d===n(l)&&r(l),b(o)}else r(l);d=n(l)}if(null!==d)var c=!0;else{var m=n(u);null!==m&&I(k,m.startTime-o),c=!1}return c}finally{d=null,f=i,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var w,S=!1,C=null,E=-1,N=5,T=-1;function L(){return!(e.unstable_now()-T<N)}function O(){if(null!==C){var t=e.unstable_now();T=t;var n=!0;try{n=C(!0,t)}finally{n?w():(S=!1,C=null)}}else S=!1}if("function"==typeof v)w=function(){v(O)};else if("undefined"!=typeof MessageChannel){var P=new MessageChannel,A=P.port2;P.port1.onmessage=O,w=function(){A.postMessage(null)}}else w=function(){m(O,0)};function R(e){C=e,S||(S=!0,w())}function I(t,n){E=m(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){h||p||(h=!0,R(x))},e.unstable_forceFrameRate=function(e){0>e||125<e||(N=0<e?Math.floor(1e3/e):5)},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,o,i){var a=e.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?a+i:a,r){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 r={id:c++,callback:o,priorityLevel:r,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>a?(r.sortIndex=i,t(u,r),null===n(l)&&r===n(u)&&(g?(y(E),E=-1):g=!0,I(k,i-a))):(r.sortIndex=s,t(l,r),h||p||(h=!0,R(x))),r},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}}(b)),b)),v.exports}function x(){if(f)return y;f=1;var e=s(),t=k();function n(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);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 r=new Set,o={};function i(e,t){a(e,t),a(e+"Capture",t)}function a(e,t){for(o[e]=t,e=0;e<t.length;e++)r.add(t[e])}var l=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),u=Object.prototype.hasOwnProperty,c=/^[: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]*$/,d={},p={};function h(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){g[e]=new h(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];g[t]=new h(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){g[e]=new h(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){g[e]=new h(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){g[e]=new h(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){g[e]=new h(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){g[e]=new h(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){g[e]=new h(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){g[e]=new h(e,5,!1,e.toLowerCase(),null,!1,!1)});var m=/[\-:]([a-z])/g;function v(e){return e[1].toUpperCase()}function b(e,t,n,r){var o=g.hasOwnProperty(t)?g[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.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,n,o,r)&&(n=null),r||null===o?function(e){return!!u.call(p,e)||!u.call(d,e)&&(c.test(e)?p[e]=!0:(d[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"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(m,v);g[t]=new h(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(m,v);g[t]=new h(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(m,v);g[t]=new h(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){g[e]=new h(e,1,!1,e.toLowerCase(),null,!1,!1)}),g.xlinkHref=new h("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){g[e]=new h(e,1,!1,e.toLowerCase(),null,!0,!0)});var x=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),S=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),T=Symbol.for("react.provider"),L=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),j=Symbol.for("react.offscreen"),D=Symbol.iterator;function M(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=D&&e[D]||e["@@iterator"])?e:null}var z,_=Object.assign;function F(e){if(void 0===z)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);z=t&&t[1]||""}return"\n"+z+e}var U=!1;function B(e,t){if(!e||U)return"";U=!0;var n=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(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&"string"==typeof u.stack){for(var o=u.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(1!==a||1!==s)do{if(a--,0>--s||o[a]!==i[s]){var l="\n"+o[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{U=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?F(e):""}function H(e){switch(e.tag){case 5:return F(e.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return e=B(e.type,!1);case 11:return e=B(e.type.render,!1);case 1:return e=B(e.type,!0);default:return""}}function V(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 C:return"Fragment";case S:return"Portal";case N:return"Profiler";case E:return"StrictMode";case P:return"Suspense";case A:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case L:return(e.displayName||"Context")+".Consumer";case T:return(e._context.displayName||"Context")+".Provider";case O:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case R:return null!==(t=e.displayName||null)?t:V(e.type)||"Memo";case I:t=e._payload,e=e._init;try{return V(e(t))}catch(n){}}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 V(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 W(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function Y(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function K(e){e._valueTracker||(e._valueTracker=function(e){var t=Y(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function G(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Y(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Q(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 $(e,t){var n=t.checked;return _({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Z(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=W(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function J(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function X(e,t){J(e,t);var n=W(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?te(e,t.type,n):t.hasOwnProperty("defaultValue")&&te(e,t.type,W(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function ee(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function te(e,t,n){"number"===t&&Q(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ne=Array.isArray;function re(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+W(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function oe(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(n(91));return _({},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(n(92));if(ne(r)){if(1<r.length)throw Error(n(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:W(r)}}function ae(e,t){var n=W(t.value),r=W(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function se(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function le(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 ue(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?le(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,de,fe=(de=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return de(e,t)})}:de);function pe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.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},ge=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||he.hasOwnProperty(e)&&he[e]?(""+t).trim():t+"px"}function ye(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(he).forEach(function(e){ge.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),he[t]=he[e]})});var ve=_({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 be(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(n(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(n(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(n(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(n(62))}}function ke(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 xe=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Se=null,Ce=null,Ee=null;function Ne(e){if(e=xo(e)){if("function"!=typeof Se)throw Error(n(280));var t=e.stateNode;t&&(t=So(t),Se(e.stateNode,e.type,t))}}function Te(e){Ce?Ee?Ee.push(e):Ee=[e]:Ce=e}function Le(){if(Ce){var e=Ce,t=Ee;if(Ee=Ce=null,Ne(e),t)for(e=0;e<t.length;e++)Ne(t[e])}}function Oe(e,t){return e(t)}function Pe(){}var Ae=!1;function Re(e,t,n){if(Ae)return e(t,n);Ae=!0;try{return Oe(e,t,n)}finally{Ae=!1,(null!==Ce||null!==Ee)&&(Pe(),Le())}}function Ie(e,t){var r=e.stateNode;if(null===r)return null;var o=So(r);if(null===o)return null;r=o[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":(o=!o.disabled)||(o=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(n(231,t,typeof r));return r}var je=!1;if(l)try{var De={};Object.defineProperty(De,"passive",{get:function(){je=!0}}),window.addEventListener("test",De,De),window.removeEventListener("test",De,De)}catch(de){je=!1}function Me(e,t,n,r,o,i,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var ze=!1,_e=null,Fe=!1,Ue=null,Be={onError:function(e){ze=!0,_e=e}};function He(e,t,n,r,o,i,a,s,l){ze=!1,_e=null,Me.apply(Be,arguments)}function Ve(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n: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 We(e){if(Ve(e)!==e)throw Error(n(188))}function Ye(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ve(e)))throw Error(n(188));return t!==e?null:e}for(var r=e,o=t;;){var i=r.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(o=i.return)){r=o;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===r)return We(i),e;if(a===o)return We(i),t;a=a.sibling}throw Error(n(188))}if(r.return!==o.return)r=i,o=a;else{for(var s=!1,l=i.child;l;){if(l===r){s=!0,r=i,o=a;break}if(l===o){s=!0,o=i,r=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===r){s=!0,r=a,o=i;break}if(l===o){s=!0,o=a,r=i;break}l=l.sibling}if(!s)throw Error(n(189))}}if(r.alternate!==o)throw Error(n(190))}if(3!==r.tag)throw Error(n(188));return r.stateNode.current===r?e:t}(e))?Ke(e):null}function Ke(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ke(e);if(null!==t)return t;e=e.sibling}return null}var Ge=t.unstable_scheduleCallback,Qe=t.unstable_cancelCallback,$e=t.unstable_shouldYield,Ze=t.unstable_requestPaint,Je=t.unstable_now,Xe=t.unstable_getCurrentPriorityLevel,et=t.unstable_ImmediatePriority,tt=t.unstable_UserBlockingPriority,nt=t.unstable_NormalPriority,rt=t.unstable_LowPriority,ot=t.unstable_IdlePriority,it=null,at=null;var st=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(lt(e)/ut|0)|0},lt=Math.log,ut=Math.LN2;var ct=64,dt=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 pt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~o;0!==s?r=ft(s):0!==(i&=a)&&(r=ft(i))}else 0!==(a=n&~o)?r=ft(a):0!==i&&(r=ft(i));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&4194240&i))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-st(t)),r|=e[n],t&=~o;return r}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 gt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ct;return!(4194240&(ct<<=1))&&(ct=64),e}function yt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-st(t)]=n}function bt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-st(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var kt=0;function xt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var wt,St,Ct,Et,Nt,Tt=!1,Lt=[],Ot=null,Pt=null,At=null,Rt=new Map,It=new Map,jt=[],Dt="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 Mt(e,t){switch(e){case"focusin":case"focusout":Ot=null;break;case"dragenter":case"dragleave":Pt=null;break;case"mouseover":case"mouseout":At=null;break;case"pointerover":case"pointerout":Rt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":It.delete(t.pointerId)}}function zt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=xo(t))&&St(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function _t(e){var t=ko(e.target);if(null!==t){var n=Ve(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=qe(n)))return e.blockedOn=t,void Nt(e.priority,function(){Ct(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Ft(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=$t(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=xo(n))&&St(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);xe=r,n.target.dispatchEvent(r),xe=null,t.shift()}return!0}function Ut(e,t,n){Ft(e)&&n.delete(t)}function Bt(){Tt=!1,null!==Ot&&Ft(Ot)&&(Ot=null),null!==Pt&&Ft(Pt)&&(Pt=null),null!==At&&Ft(At)&&(At=null),Rt.forEach(Ut),It.forEach(Ut)}function Ht(e,n){e.blockedOn===n&&(e.blockedOn=null,Tt||(Tt=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Bt)))}function Vt(e){function t(t){return Ht(t,e)}if(0<Lt.length){Ht(Lt[0],e);for(var n=1;n<Lt.length;n++){var r=Lt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Ot&&Ht(Ot,e),null!==Pt&&Ht(Pt,e),null!==At&&Ht(At,e),Rt.forEach(t),It.forEach(t),n=0;n<jt.length;n++)(r=jt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<jt.length&&null===(n=jt[0]).blockedOn;)_t(n),null===n.blockedOn&&jt.shift()}var qt=x.ReactCurrentBatchConfig,Wt=!0;function Yt(e,t,n,r){var o=kt,i=qt.transition;qt.transition=null;try{kt=1,Gt(e,t,n,r)}finally{kt=o,qt.transition=i}}function Kt(e,t,n,r){var o=kt,i=qt.transition;qt.transition=null;try{kt=4,Gt(e,t,n,r)}finally{kt=o,qt.transition=i}}function Gt(e,t,n,r){if(Wt){var o=$t(e,t,n,r);if(null===o)Wr(e,t,r,Qt,n),Mt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Ot=zt(Ot,e,t,n,r,o),!0;case"dragenter":return Pt=zt(Pt,e,t,n,r,o),!0;case"mouseover":return At=zt(At,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Rt.set(i,zt(Rt.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,It.set(i,zt(It.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Mt(e,r),4&t&&-1<Dt.indexOf(e)){for(;null!==o;){var i=xo(o);if(null!==i&&wt(i),null===(i=$t(e,t,n,r))&&Wr(e,t,r,Qt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Wr(e,t,r,null,n)}}var Qt=null;function $t(e,t,n,r){if(Qt=null,null!==(e=ko(e=we(r))))if(null===(t=Ve(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=qe(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Qt=e,null}function Zt(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(Xe()){case et:return 1;case tt:return 4;case nt:case rt:return 16;case ot:return 536870912;default:return 16}default:return 16}}var Jt=null,Xt=null,en=null;function tn(){if(en)return en;var e,t,n=Xt,r=n.length,o="value"in Jt?Jt.value:Jt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return en=o.slice(e,1<t?1-t:void 0)}function nn(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 rn(){return!0}function on(){return!1}function an(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?rn:on,this.isPropagationStopped=on,this}return _(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=rn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=rn)},persist:function(){},isPersistent:rn}),t}var sn,ln,un,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},dn=an(cn),fn=_({},cn,{view:0,detail:0}),pn=an(fn),hn=_({},fn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Nn,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!==un&&(un&&"mousemove"===e.type?(sn=e.screenX-un.screenX,ln=e.screenY-un.screenY):ln=sn=0,un=e),sn)},movementY:function(e){return"movementY"in e?e.movementY:ln}}),gn=an(hn),mn=an(_({},hn,{dataTransfer:0})),yn=an(_({},fn,{relatedTarget:0})),vn=an(_({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),bn=_({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),kn=an(bn),xn=an(_({},cn,{data:0})),wn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sn={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"},Cn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function En(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Cn[e])&&!!t[e]}function Nn(){return En}var Tn=_({},fn,{key:function(e){if(e.key){var t=wn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=nn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Sn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Nn,charCode:function(e){return"keypress"===e.type?nn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?nn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Ln=an(Tn),On=an(_({},hn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Pn=an(_({},fn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Nn})),An=an(_({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Rn=_({},hn,{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}),In=an(Rn),jn=[9,13,27,32],Dn=l&&"CompositionEvent"in window,Mn=null;l&&"documentMode"in document&&(Mn=document.documentMode);var zn=l&&"TextEvent"in window&&!Mn,_n=l&&(!Dn||Mn&&8<Mn&&11>=Mn),Fn=String.fromCharCode(32),Un=!1;function Bn(e,t){switch(e){case"keyup":return-1!==jn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Vn=!1;var qn={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 Wn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!qn[e.type]:"textarea"===t}function Yn(e,t,n,r){Te(r),0<(t=Kr(t,"onChange")).length&&(n=new dn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Kn=null,Gn=null;function Qn(e){Fr(e,0)}function $n(e){if(G(wo(e)))return e}function Zn(e,t){if("change"===e)return t}var Jn=!1;if(l){var Xn;if(l){var er="oninput"in document;if(!er){var tr=document.createElement("div");tr.setAttribute("oninput","return;"),er="function"==typeof tr.oninput}Xn=er}else Xn=!1;Jn=Xn&&(!document.documentMode||9<document.documentMode)}function nr(){Kn&&(Kn.detachEvent("onpropertychange",rr),Gn=Kn=null)}function rr(e){if("value"===e.propertyName&&$n(Gn)){var t=[];Yn(t,Gn,e,we(e)),Re(Qn,t)}}function or(e,t,n){"focusin"===e?(nr(),Gn=n,(Kn=t).attachEvent("onpropertychange",rr)):"focusout"===e&&nr()}function ir(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return $n(Gn)}function ar(e,t){if("click"===e)return $n(t)}function sr(e,t){if("input"===e||"change"===e)return $n(t)}var lr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function ur(e,t){if(lr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!u.call(t,o)||!lr(e[o],t[o]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function dr(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function fr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?fr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pr(){for(var e=window,t=Q();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=Q((e=t.contentWindow).document)}return t}function hr(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 gr(e){var t=pr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&fr(n.ownerDocument.documentElement,n)){if(null!==r&&hr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=dr(n,i);var a=dr(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=l&&"documentMode"in document&&11>=document.documentMode,yr=null,vr=null,br=null,kr=!1;function xr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;kr||null==yr||yr!==Q(r)||("selectionStart"in(r=yr)&&hr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},br&&ur(br,r)||(br=r,0<(r=Kr(vr,"onSelect")).length&&(t=new dn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=yr)))}function wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Sr={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionend:wr("Transition","TransitionEnd")},Cr={},Er={};function Nr(e){if(Cr[e])return Cr[e];if(!Sr[e])return e;var t,n=Sr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Er)return Cr[e]=n[t];return e}l&&(Er=document.createElement("div").style,"AnimationEvent"in window||(delete Sr.animationend.animation,delete Sr.animationiteration.animation,delete Sr.animationstart.animation),"TransitionEvent"in window||delete Sr.transitionend.transition);var Tr=Nr("animationend"),Lr=Nr("animationiteration"),Or=Nr("animationstart"),Pr=Nr("transitionend"),Ar=new Map,Rr="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 Ir(e,t){Ar.set(e,t),i(t,[e])}for(var jr=0;jr<Rr.length;jr++){var Dr=Rr[jr];Ir(Dr.toLowerCase(),"on"+(Dr[0].toUpperCase()+Dr.slice(1)))}Ir(Tr,"onAnimationEnd"),Ir(Lr,"onAnimationIteration"),Ir(Or,"onAnimationStart"),Ir("dblclick","onDoubleClick"),Ir("focusin","onFocus"),Ir("focusout","onBlur"),Ir(Pr,"onTransitionEnd"),a("onMouseEnter",["mouseout","mouseover"]),a("onMouseLeave",["mouseout","mouseover"]),a("onPointerEnter",["pointerout","pointerover"]),a("onPointerLeave",["pointerout","pointerover"]),i("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),i("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),i("onBeforeInput",["compositionend","keypress","textInput","paste"]),i("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),i("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),i("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Mr="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(" "),zr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Mr));function _r(e,t,r){var o=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,o,i,a,s,l,u){if(He.apply(this,arguments),ze){if(!ze)throw Error(n(198));var c=_e;ze=!1,_e=null,Fe||(Fe=!0,Ue=c)}}(o,t,void 0,e),e.currentTarget=null}function Fr(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;_r(o,s,u),i=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,u=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;_r(o,s,u),i=l}}}if(Fe)throw e=Ue,Fe=!1,Ue=null,e}function Ur(e,t){var n=t[yo];void 0===n&&(n=t[yo]=new Set);var r=e+"__bubble";n.has(r)||(qr(t,e,2,!1),n.add(r))}function Br(e,t,n){var r=0;t&&(r|=4),qr(n,e,r,t)}var Hr="_reactListening"+Math.random().toString(36).slice(2);function Vr(e){if(!e[Hr]){e[Hr]=!0,r.forEach(function(t){"selectionchange"!==t&&(zr.has(t)||Br(t,!1,e),Br(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Hr]||(t[Hr]=!0,Br("selectionchange",!1,t))}}function qr(e,t,n,r){switch(Zt(t)){case 1:var o=Yt;break;case 4:o=Kt;break;default:o=Gt}n=o.bind(null,t,n,e),o=void 0,!je||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Wr(e,t,n,r,o){var i=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;a=a.return}for(;null!==s;){if(null===(a=ko(s)))return;if(5===(l=a.tag)||6===l){r=i=a;continue e}s=s.parentNode}}r=r.return}Re(function(){var r=i,o=we(n),a=[];e:{var s=Ar.get(e);if(void 0!==s){var l=dn,u=e;switch(e){case"keypress":if(0===nn(n))break e;case"keydown":case"keyup":l=Ln;break;case"focusin":u="focus",l=yn;break;case"focusout":u="blur",l=yn;break;case"beforeblur":case"afterblur":l=yn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=gn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Pn;break;case Tr:case Lr:case Or:l=vn;break;case Pr:l=An;break;case"scroll":l=pn;break;case"wheel":l=In;break;case"copy":case"cut":case"paste":l=kn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=On}var c=!!(4&t),d=!c&&"scroll"===e,f=c?null!==s?s+"Capture":null:s;c=[];for(var p,h=r;null!==h;){var g=(p=h).stateNode;if(5===p.tag&&null!==g&&(p=g,null!==f&&(null!=(g=Ie(h,f))&&c.push(Yr(h,g,p)))),d)break;h=h.return}0<c.length&&(s=new l(s,u,null,n,o),a.push({event:s,listeners:c}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===xe||!(u=n.relatedTarget||n.fromElement)||!ko(u)&&!u[mo])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?ko(u):null)&&(u!==(d=Ve(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=gn,g="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=On,g="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==l?s:wo(l),p=null==u?s:wo(u),(s=new c(g,h+"leave",l,n,o)).target=d,s.relatedTarget=p,g=null,ko(o)===r&&((c=new c(f,h+"enter",u,n,o)).target=p,c.relatedTarget=d,g=c),d=g,l&&u)e:{for(f=u,h=0,p=c=l;p;p=Gr(p))h++;for(p=0,g=f;g;g=Gr(g))p++;for(;0<h-p;)c=Gr(c),h--;for(;0<p-h;)f=Gr(f),p--;for(;h--;){if(c===f||null!==f&&c===f.alternate)break e;c=Gr(c),f=Gr(f)}c=null}else c=null;null!==l&&Qr(a,s,l,c,!1),null!==u&&null!==d&&Qr(a,d,u,c,!0)}if("select"===(l=(s=r?wo(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var m=Zn;else if(Wn(s))if(Jn)m=sr;else{m=ir;var y=or}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(m=ar);switch(m&&(m=m(e,r))?Yn(a,m,n,o):(y&&y(e,s,r),"focusout"===e&&(y=s._wrapperState)&&y.controlled&&"number"===s.type&&te(s,"number",s.value)),y=r?wo(r):window,e){case"focusin":(Wn(y)||"true"===y.contentEditable)&&(yr=y,vr=r,br=null);break;case"focusout":br=vr=yr=null;break;case"mousedown":kr=!0;break;case"contextmenu":case"mouseup":case"dragend":kr=!1,xr(a,n,o);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":xr(a,n,o)}var v;if(Dn)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 Vn?Bn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(_n&&"ko"!==n.locale&&(Vn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Vn&&(v=tn()):(Xt="value"in(Jt=o)?Jt.value:Jt.textContent,Vn=!0)),0<(y=Kr(r,b)).length&&(b=new xn(b,e,null,n,o),a.push({event:b,listeners:y}),v?b.data=v:null!==(v=Hn(n))&&(b.data=v))),(v=zn?function(e,t){switch(e){case"compositionend":return Hn(t);case"keypress":return 32!==t.which?null:(Un=!0,Fn);case"textInput":return(e=t.data)===Fn&&Un?null:e;default:return null}}(e,n):function(e,t){if(Vn)return"compositionend"===e||!Dn&&Bn(e,t)?(e=tn(),en=Xt=Jt=null,Vn=!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 _n&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Kr(r,"onBeforeInput")).length&&(o=new xn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=v))}Fr(a,t)})}function Yr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Kr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Ie(e,n))&&r.unshift(Yr(e,i,o)),null!=(i=Ie(e,t))&&r.push(Yr(e,i,o))),e=e.return}return r}function Gr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Qr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,o?null!=(l=Ie(n,i))&&a.unshift(Yr(n,l,s)):o||null!=(l=Ie(n,i))&&a.push(Yr(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var $r=/\r\n?/g,Zr=/\u0000|\uFFFD/g;function Jr(e){return("string"==typeof e?e:""+e).replace($r,"\n").replace(Zr,"")}function Xr(e,t,r){if(t=Jr(t),Jr(e)!==t&&r)throw Error(n(425))}function eo(){}var to=null,no=null;function ro(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 oo="function"==typeof setTimeout?setTimeout:void 0,io="function"==typeof clearTimeout?clearTimeout:void 0,ao="function"==typeof Promise?Promise:void 0,so="function"==typeof queueMicrotask?queueMicrotask:void 0!==ao?function(e){return ao.resolve(null).then(e).catch(lo)}:oo;function lo(e){setTimeout(function(){throw e})}function uo(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Vt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Vt(t)}function co(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 fo(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var po=Math.random().toString(36).slice(2),ho="__reactFiber$"+po,go="__reactProps$"+po,mo="__reactContainer$"+po,yo="__reactEvents$"+po,vo="__reactListeners$"+po,bo="__reactHandles$"+po;function ko(e){var t=e[ho];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mo]||n[ho]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=fo(e);null!==e;){if(n=e[ho])return n;e=fo(e)}return t}n=(e=n).parentNode}return null}function xo(e){return!(e=e[ho]||e[mo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function wo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(n(33))}function So(e){return e[go]||null}var Co=[],Eo=-1;function No(e){return{current:e}}function To(e){0>Eo||(e.current=Co[Eo],Co[Eo]=null,Eo--)}function Lo(e,t){Eo++,Co[Eo]=e.current,e.current=t}var Oo={},Po=No(Oo),Ao=No(!1),Ro=Oo;function Io(e,t){var n=e.type.contextTypes;if(!n)return Oo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function jo(e){return null!=(e=e.childContextTypes)}function Do(){To(Ao),To(Po)}function Mo(e,t,r){if(Po.current!==Oo)throw Error(n(168));Lo(Po,t),Lo(Ao,r)}function zo(e,t,r){var o=e.stateNode;if(t=t.childContextTypes,"function"!=typeof o.getChildContext)return r;for(var i in o=o.getChildContext())if(!(i in t))throw Error(n(108,q(e)||"Unknown",i));return _({},r,o)}function _o(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Oo,Ro=Po.current,Lo(Po,e),Lo(Ao,Ao.current),!0}function Fo(e,t,r){var o=e.stateNode;if(!o)throw Error(n(169));r?(e=zo(e,t,Ro),o.__reactInternalMemoizedMergedChildContext=e,To(Ao),To(Po),Lo(Po,e)):To(Ao),Lo(Ao,r)}var Uo=null,Bo=!1,Ho=!1;function Vo(e){null===Uo?Uo=[e]:Uo.push(e)}function qo(){if(!Ho&&null!==Uo){Ho=!0;var e=0,t=kt;try{var n=Uo;for(kt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Uo=null,Bo=!1}catch(o){throw null!==Uo&&(Uo=Uo.slice(e+1)),Ge(et,qo),o}finally{kt=t,Ho=!1}}return null}var Wo=[],Yo=0,Ko=null,Go=0,Qo=[],$o=0,Zo=null,Jo=1,Xo="";function ei(e,t){Wo[Yo++]=Go,Wo[Yo++]=Ko,Ko=e,Go=t}function ti(e,t,n){Qo[$o++]=Jo,Qo[$o++]=Xo,Qo[$o++]=Zo,Zo=e;var r=Jo;e=Xo;var o=32-st(r)-1;r&=~(1<<o),n+=1;var i=32-st(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Jo=1<<32-st(t)+o|n<<o|r,Xo=i+e}else Jo=1<<i|n<<o|r,Xo=e}function ni(e){null!==e.return&&(ei(e,1),ti(e,1,0))}function ri(e){for(;e===Ko;)Ko=Wo[--Yo],Wo[Yo]=null,Go=Wo[--Yo],Wo[Yo]=null;for(;e===Zo;)Zo=Qo[--$o],Qo[$o]=null,Xo=Qo[--$o],Qo[$o]=null,Jo=Qo[--$o],Qo[$o]=null}var oi=null,ii=null,ai=!1,si=null;function li(e,t){var n=Au(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function ui(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,oi=e,ii=co(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,oi=e,ii=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Zo?{id:Jo,overflow:Xo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Au(18,null,null,0)).stateNode=t,n.return=e,e.child=n,oi=e,ii=null,!0);default:return!1}}function ci(e){return!(!(1&e.mode)||128&e.flags)}function di(e){if(ai){var t=ii;if(t){var r=t;if(!ui(e,t)){if(ci(e))throw Error(n(418));t=co(r.nextSibling);var o=oi;t&&ui(e,t)?li(o,r):(e.flags=-4097&e.flags|2,ai=!1,oi=e)}}else{if(ci(e))throw Error(n(418));e.flags=-4097&e.flags|2,ai=!1,oi=e}}}function fi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;oi=e}function pi(e){if(e!==oi)return!1;if(!ai)return fi(e),ai=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ro(e.type,e.memoizedProps)),t&&(t=ii)){if(ci(e))throw hi(),Error(n(418));for(;t;)li(e,t),t=co(t.nextSibling)}if(fi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(n(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){ii=co(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}ii=null}}else ii=oi?co(e.stateNode.nextSibling):null;return!0}function hi(){for(var e=ii;e;)e=co(e.nextSibling)}function gi(){ii=oi=null,ai=!1}function mi(e){null===si?si=[e]:si.push(e)}var yi=x.ReactCurrentBatchConfig;function vi(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(n(309));var o=r.stateNode}if(!o)throw Error(n(147,e));var i=o,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:((t=function(e){var t=i.refs;null===e?delete t[a]:t[a]=e})._stringRef=a,t)}if("string"!=typeof e)throw Error(n(284));if(!r._owner)throw Error(n(290,e))}return e}function bi(e,t){throw e=Object.prototype.toString.call(t),Error(n(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ki(e){return(0,e._init)(e._payload)}function xi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function r(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function o(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=Iu(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=zu(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function u(e,t,n,r){var o=n.type;return o===C?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===I&&ki(o)===t.type)?((r=i(t,n.props)).ref=vi(e,t,n),r.return=e,r):((r=ju(n.type,n.key,n.props,null,e.mode,r)).ref=vi(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=_u(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Du(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=zu(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case w:return(n=ju(t.type,t.key,t.props,null,e.mode,n)).ref=vi(e,null,t),n.return=e,n;case S:return(t=_u(t,e.mode,n)).return=e,t;case I:return f(e,(0,t._init)(t._payload),n)}if(ne(t)||M(t))return(t=Du(t,e.mode,n,null)).return=e,t;bi(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case w:return n.key===o?u(e,t,n,r):null;case S:return n.key===o?c(e,t,n,r):null;case I:return p(e,t,(o=n._init)(n._payload),r)}if(ne(n)||M(n))return null!==o?null:d(e,t,n,r,null);bi(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case w:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case S:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case I:return h(e,t,n,(0,r._init)(r._payload),o)}if(ne(r)||M(r))return d(t,e=e.get(n)||null,r,o,null);bi(t,r)}return null}return function l(u,c,d,g){if("object"==typeof d&&null!==d&&d.type===C&&null===d.key&&(d=d.props.children),"object"==typeof d&&null!==d){switch(d.$$typeof){case w:e:{for(var m=d.key,y=c;null!==y;){if(y.key===m){if((m=d.type)===C){if(7===y.tag){r(u,y.sibling),(c=i(y,d.props.children)).return=u,u=c;break e}}else if(y.elementType===m||"object"==typeof m&&null!==m&&m.$$typeof===I&&ki(m)===y.type){r(u,y.sibling),(c=i(y,d.props)).ref=vi(u,y,d),c.return=u,u=c;break e}r(u,y);break}t(u,y),y=y.sibling}d.type===C?((c=Du(d.props.children,u.mode,g,d.key)).return=u,u=c):((g=ju(d.type,d.key,d.props,null,u.mode,g)).ref=vi(u,c,d),g.return=u,u=g)}return s(u);case S:e:{for(y=d.key;null!==c;){if(c.key===y){if(4===c.tag&&c.stateNode.containerInfo===d.containerInfo&&c.stateNode.implementation===d.implementation){r(u,c.sibling),(c=i(c,d.children||[])).return=u,u=c;break e}r(u,c);break}t(u,c),c=c.sibling}(c=_u(d,u.mode,g)).return=u,u=c}return s(u);case I:return l(u,c,(y=d._init)(d._payload),g)}if(ne(d))return function(n,i,s,l){for(var u=null,c=null,d=i,g=i=0,m=null;null!==d&&g<s.length;g++){d.index>g?(m=d,d=null):m=d.sibling;var y=p(n,d,s[g],l);if(null===y){null===d&&(d=m);break}e&&d&&null===y.alternate&&t(n,d),i=a(y,i,g),null===c?u=y:c.sibling=y,c=y,d=m}if(g===s.length)return r(n,d),ai&&ei(n,g),u;if(null===d){for(;g<s.length;g++)null!==(d=f(n,s[g],l))&&(i=a(d,i,g),null===c?u=d:c.sibling=d,c=d);return ai&&ei(n,g),u}for(d=o(n,d);g<s.length;g++)null!==(m=h(d,n,g,s[g],l))&&(e&&null!==m.alternate&&d.delete(null===m.key?g:m.key),i=a(m,i,g),null===c?u=m:c.sibling=m,c=m);return e&&d.forEach(function(e){return t(n,e)}),ai&&ei(n,g),u}(u,c,d,g);if(M(d))return function(i,s,l,u){var c=M(l);if("function"!=typeof c)throw Error(n(150));if(null==(l=c.call(l)))throw Error(n(151));for(var d=c=null,g=s,m=s=0,y=null,v=l.next();null!==g&&!v.done;m++,v=l.next()){g.index>m?(y=g,g=null):y=g.sibling;var b=p(i,g,v.value,u);if(null===b){null===g&&(g=y);break}e&&g&&null===b.alternate&&t(i,g),s=a(b,s,m),null===d?c=b:d.sibling=b,d=b,g=y}if(v.done)return r(i,g),ai&&ei(i,m),c;if(null===g){for(;!v.done;m++,v=l.next())null!==(v=f(i,v.value,u))&&(s=a(v,s,m),null===d?c=v:d.sibling=v,d=v);return ai&&ei(i,m),c}for(g=o(i,g);!v.done;m++,v=l.next())null!==(v=h(g,i,m,v.value,u))&&(e&&null!==v.alternate&&g.delete(null===v.key?m:v.key),s=a(v,s,m),null===d?c=v:d.sibling=v,d=v);return e&&g.forEach(function(e){return t(i,e)}),ai&&ei(i,m),c}(u,c,d,g);bi(u,d)}return"string"==typeof d&&""!==d||"number"==typeof d?(d=""+d,null!==c&&6===c.tag?(r(u,c.sibling),(c=i(c,d)).return=u,u=c):(r(u,c),(c=zu(d,u.mode,g)).return=u,u=c),s(u)):r(u,c)}}var wi=xi(!0),Si=xi(!1),Ci=No(null),Ei=null,Ni=null,Ti=null;function Li(){Ti=Ni=Ei=null}function Oi(e){var t=Ci.current;To(Ci),e._currentValue=t}function Pi(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ai(e,t){Ei=e,Ti=Ni=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(bs=!0),e.firstContext=null)}function Ri(e){var t=e._currentValue;if(Ti!==e)if(e={context:e,memoizedValue:t,next:null},null===Ni){if(null===Ei)throw Error(n(308));Ni=e,Ei.dependencies={lanes:0,firstContext:e}}else Ni=Ni.next=e;return t}var Ii=null;function ji(e){null===Ii?Ii=[e]:Ii.push(e)}function Di(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,ji(t)):(n.next=o.next,o.next=n),t.interleaved=n,Mi(e,r)}function Mi(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var zi=!1;function _i(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Fi(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 Ui(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Bi(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Ll){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Mi(e,n)}return null===(o=r.interleaved)?(t.next=t,ji(r)):(t.next=o.next,o.next=t),r.interleaved=t,Mi(e,n)}function Hi(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}function Vi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function qi(e,t,n,r){var o=e.updateQueue;zi=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,u=l.next;l.next=null,null===a?i=u:a.next=u,a=l;var c=e.alternate;null!==c&&((s=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(null!==i){var d=o.baseState;for(a=0,c=u=l=null,s=i;;){var f=s.lane,p=s.eventTime;if((r&f)===f){null!==c&&(c=c.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,g=s;switch(f=t,p=n,g.tag){case 1:if("function"==typeof(h=g.payload)){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(f="function"==typeof(h=g.payload)?h.call(p,d,f):h))break e;d=_({},d,f);break e;case 2:zi=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=p,l=d):c=c.next=p,a|=f;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(f=s).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}if(null===c&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Ml|=a,e.lanes=a,e.memoizedState=d}}function Wi(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var o=e[t],i=o.callback;if(null!==i){if(o.callback=null,o=r,"function"!=typeof i)throw Error(n(191,i));i.call(o)}}}var Yi={},Ki=No(Yi),Gi=No(Yi),Qi=No(Yi);function $i(e){if(e===Yi)throw Error(n(174));return e}function Zi(e,t){switch(Lo(Qi,t),Lo(Gi,e),Lo(Ki,Yi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ue(null,"");break;default:t=ue(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}To(Ki),Lo(Ki,t)}function Ji(){To(Ki),To(Gi),To(Qi)}function Xi(e){$i(Qi.current);var t=$i(Ki.current),n=ue(t,e.type);t!==n&&(Lo(Gi,e),Lo(Ki,n))}function ea(e){Gi.current===e&&(To(Ki),To(Gi))}var ta=No(0);function na(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.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 ra=[];function oa(){for(var e=0;e<ra.length;e++)ra[e]._workInProgressVersionPrimary=null;ra.length=0}var ia=x.ReactCurrentDispatcher,aa=x.ReactCurrentBatchConfig,sa=0,la=null,ua=null,ca=null,da=!1,fa=!1,pa=0,ha=0;function ga(){throw Error(n(321))}function ma(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!lr(e[n],t[n]))return!1;return!0}function ya(e,t,r,o,i,a){if(sa=a,la=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ia.current=null===e||null===e.memoizedState?es:ts,e=r(o,i),fa){a=0;do{if(fa=!1,pa=0,25<=a)throw Error(n(301));a+=1,ca=ua=null,t.updateQueue=null,ia.current=ns,e=r(o,i)}while(fa)}if(ia.current=Xa,t=null!==ua&&null!==ua.next,sa=0,ca=ua=la=null,da=!1,t)throw Error(n(300));return e}function va(){var e=0!==pa;return pa=0,e}function ba(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ca?la.memoizedState=ca=e:ca=ca.next=e,ca}function ka(){if(null===ua){var e=la.alternate;e=null!==e?e.memoizedState:null}else e=ua.next;var t=null===ca?la.memoizedState:ca.next;if(null!==t)ca=t,ua=e;else{if(null===e)throw Error(n(310));e={memoizedState:(ua=e).memoizedState,baseState:ua.baseState,baseQueue:ua.baseQueue,queue:ua.queue,next:null},null===ca?la.memoizedState=ca=e:ca=ca.next=e}return ca}function xa(e,t){return"function"==typeof t?t(e):t}function wa(e){var t=ka(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var o=ua,i=o.baseQueue,a=r.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}o.baseQueue=i=a,r.pending=null}if(null!==i){a=i.next,o=o.baseState;var l=s=null,u=null,c=a;do{var d=c.lane;if((sa&d)===d)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),o=c.hasEagerState?c.eagerState:e(o,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=f,s=o):u=u.next=f,la.lanes|=d,Ml|=d}c=c.next}while(null!==c&&c!==a);null===u?s=o:u.next=l,lr(o,t.memoizedState)||(bs=!0),t.memoizedState=o,t.baseState=s,t.baseQueue=u,r.lastRenderedState=o}if(null!==(e=r.interleaved)){i=e;do{a=i.lane,la.lanes|=a,Ml|=a,i=i.next}while(i!==e)}else null===i&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Sa(e){var t=ka(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var o=r.dispatch,i=r.pending,a=t.memoizedState;if(null!==i){r.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);lr(a,t.memoizedState)||(bs=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),r.lastRenderedState=a}return[a,o]}function Ca(){}function Ea(e,t){var r=la,o=ka(),i=t(),a=!lr(o.memoizedState,i);if(a&&(o.memoizedState=i,bs=!0),o=o.queue,za(La.bind(null,r,o,e),[e]),o.getSnapshot!==t||a||null!==ca&&1&ca.memoizedState.tag){if(r.flags|=2048,Ra(9,Ta.bind(null,r,o,i,t),void 0,null),null===Ol)throw Error(n(349));30&sa||Na(r,t,i)}return i}function Na(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=la.updateQueue)?(t={lastEffect:null,stores:null},la.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ta(e,t,n,r){t.value=n,t.getSnapshot=r,Oa(t)&&Pa(e)}function La(e,t,n){return n(function(){Oa(t)&&Pa(e)})}function Oa(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!lr(e,n)}catch(r){return!0}}function Pa(e){var t=Mi(e,1);null!==t&&nu(t,e,1,-1)}function Aa(e){var t=ba();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:xa,lastRenderedState:e},t.queue=e,e=e.dispatch=Qa.bind(null,la,e),[t.memoizedState,e]}function Ra(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=la.updateQueue)?(t={lastEffect:null,stores:null},la.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ia(){return ka().memoizedState}function ja(e,t,n,r){var o=ba();la.flags|=e,o.memoizedState=Ra(1|t,n,void 0,void 0===r?null:r)}function Da(e,t,n,r){var o=ka();r=void 0===r?null:r;var i=void 0;if(null!==ua){var a=ua.memoizedState;if(i=a.destroy,null!==r&&ma(r,a.deps))return void(o.memoizedState=Ra(t,n,i,r))}la.flags|=e,o.memoizedState=Ra(1|t,n,i,r)}function Ma(e,t){return ja(8390656,8,e,t)}function za(e,t){return Da(2048,8,e,t)}function _a(e,t){return Da(4,2,e,t)}function Fa(e,t){return Da(4,4,e,t)}function Ua(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 Ba(e,t,n){return n=null!=n?n.concat([e]):null,Da(4,4,Ua.bind(null,t,e),n)}function Ha(){}function Va(e,t){var n=ka();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function qa(e,t){var n=ka();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Wa(e,t,n){return 21&sa?(lr(n,t)||(n=mt(),la.lanes|=n,Ml|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,bs=!0),e.memoizedState=n)}function Ya(e,t){var n=kt;kt=0!==n&&4>n?n:4,e(!0);var r=aa.transition;aa.transition={};try{e(!1),t()}finally{kt=n,aa.transition=r}}function Ka(){return ka().memoizedState}function Ga(e,t,n){var r=tu(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},$a(e))Za(t,n);else if(null!==(n=Di(e,t,n,r))){nu(n,e,r,eu()),Ja(n,t,r)}}function Qa(e,t,n){var r=tu(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if($a(e))Za(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,lr(s,a)){var l=t.interleaved;return null===l?(o.next=o,ji(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(u){}null!==(n=Di(e,t,o,r))&&(nu(n,e,r,o=eu()),Ja(n,t,r))}}function $a(e){var t=e.alternate;return e===la||null!==t&&t===la}function Za(e,t){fa=da=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ja(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}var Xa={readContext:Ri,useCallback:ga,useContext:ga,useEffect:ga,useImperativeHandle:ga,useInsertionEffect:ga,useLayoutEffect:ga,useMemo:ga,useReducer:ga,useRef:ga,useState:ga,useDebugValue:ga,useDeferredValue:ga,useTransition:ga,useMutableSource:ga,useSyncExternalStore:ga,useId:ga,unstable_isNewReconciler:!1},es={readContext:Ri,useCallback:function(e,t){return ba().memoizedState=[e,void 0===t?null:t],e},useContext:Ri,useEffect:Ma,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ja(4194308,4,Ua.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ja(4194308,4,e,t)},useInsertionEffect:function(e,t){return ja(4,2,e,t)},useMemo:function(e,t){var n=ba();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ba();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ga.bind(null,la,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ba().memoizedState=e},useState:Aa,useDebugValue:Ha,useDeferredValue:function(e){return ba().memoizedState=e},useTransition:function(){var e=Aa(!1),t=e[0];return e=Ya.bind(null,e[1]),ba().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var o=la,i=ba();if(ai){if(void 0===r)throw Error(n(407));r=r()}else{if(r=t(),null===Ol)throw Error(n(349));30&sa||Na(o,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,Ma(La.bind(null,o,a,e),[e]),o.flags|=2048,Ra(9,Ta.bind(null,o,a,r,t),void 0,null),r},useId:function(){var e=ba(),t=Ol.identifierPrefix;if(ai){var n=Xo;t=":"+t+"R"+(n=(Jo&~(1<<32-st(Jo)-1)).toString(32)+n),0<(n=pa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ha++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ts={readContext:Ri,useCallback:Va,useContext:Ri,useEffect:za,useImperativeHandle:Ba,useInsertionEffect:_a,useLayoutEffect:Fa,useMemo:qa,useReducer:wa,useRef:Ia,useState:function(){return wa(xa)},useDebugValue:Ha,useDeferredValue:function(e){return Wa(ka(),ua.memoizedState,e)},useTransition:function(){return[wa(xa)[0],ka().memoizedState]},useMutableSource:Ca,useSyncExternalStore:Ea,useId:Ka,unstable_isNewReconciler:!1},ns={readContext:Ri,useCallback:Va,useContext:Ri,useEffect:za,useImperativeHandle:Ba,useInsertionEffect:_a,useLayoutEffect:Fa,useMemo:qa,useReducer:Sa,useRef:Ia,useState:function(){return Sa(xa)},useDebugValue:Ha,useDeferredValue:function(e){var t=ka();return null===ua?t.memoizedState=e:Wa(t,ua.memoizedState,e)},useTransition:function(){return[Sa(xa)[0],ka().memoizedState]},useMutableSource:Ca,useSyncExternalStore:Ea,useId:Ka,unstable_isNewReconciler:!1};function rs(e,t){if(e&&e.defaultProps){for(var n in t=_({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function os(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:_({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var is={isMounted:function(e){return!!(e=e._reactInternals)&&Ve(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=eu(),o=tu(e),i=Ui(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=Bi(e,i,o))&&(nu(t,e,o,r),Hi(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=eu(),o=tu(e),i=Ui(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Bi(e,i,o))&&(nu(t,e,o,r),Hi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=eu(),r=tu(e),o=Ui(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Bi(e,o,r))&&(nu(t,e,r,n),Hi(t,e,r))}};function as(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!ur(n,r)||!ur(o,i))}function ss(e,t,n){var r=!1,o=Oo,i=t.contextType;return"object"==typeof i&&null!==i?i=Ri(i):(o=jo(t)?Ro:Po.current,i=(r=null!=(r=t.contextTypes))?Io(e,o):Oo),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=is,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function ls(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&is.enqueueReplaceState(t,t.state,null)}function us(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},_i(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Ri(i):(i=jo(t)?Ro:Po.current,o.context=Io(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(os(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&is.enqueueReplaceState(o,o.state,null),qi(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function cs(e,t){try{var n="",r=t;do{n+=H(r),r=r.return}while(r);var o=n}catch(i){o="\nError generating stack: "+i.message+"\n"+i.stack}return{value:e,source:t,stack:o,digest:null}}function ds(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}var fs="function"==typeof WeakMap?WeakMap:Map;function ps(e,t,n){(n=Ui(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ql||(ql=!0,Wl=r)},n}function hs(e,t,n){(n=Ui(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Yl?Yl=new Set([this]):Yl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function gs(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fs;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Eu.bind(null,e,t,n),t.then(e,e))}function ms(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 ys(e,t,n,r,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Ui(-1,1)).tag=2,Bi(n,t,1))),n.lanes|=1),e)}var vs=x.ReactCurrentOwner,bs=!1;function ks(e,t,n,r){t.child=null===e?Si(t,null,n,r):wi(t,e.child,n,r)}function xs(e,t,n,r,o){n=n.render;var i=t.ref;return Ai(t,o),r=ya(e,t,n,r,i,o),n=va(),null===e||bs?(ai&&n&&ni(t),t.flags|=1,ks(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,qs(e,t,o))}function ws(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Ru(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=ju(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Ss(e,t,i,r,o))}if(i=e.child,0===(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:ur)(a,r)&&e.ref===t.ref)return qs(e,t,o)}return t.flags|=1,(e=Iu(i,r)).ref=t.ref,e.return=t,t.child=e}function Ss(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(ur(i,r)&&e.ref===t.ref){if(bs=!1,t.pendingProps=r=i,0===(e.lanes&o))return t.lanes=e.lanes,qs(e,t,o);131072&e.flags&&(bs=!0)}}return Ns(e,t,n,r,o)}function Cs(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Lo(Il,Rl),Rl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Lo(Il,Rl),Rl|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Lo(Il,Rl),Rl|=n;else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Lo(Il,Rl),Rl|=r;return ks(e,t,o,n),t.child}function Es(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ns(e,t,n,r,o){var i=jo(n)?Ro:Po.current;return i=Io(t,i),Ai(t,o),n=ya(e,t,n,r,i,o),r=va(),null===e||bs?(ai&&r&&ni(t),t.flags|=1,ks(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,qs(e,t,o))}function Ts(e,t,n,r,o){if(jo(n)){var i=!0;_o(t)}else i=!1;if(Ai(t,o),null===t.stateNode)Vs(e,t),ss(t,n,r),us(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;"object"==typeof u&&null!==u?u=Ri(u):u=Io(t,u=jo(n)?Ro:Po.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&ls(t,a,r,u),zi=!1;var f=t.memoizedState;a.state=f,qi(t,r,a,o),l=t.memoizedState,s!==r||f!==l||Ao.current||zi?("function"==typeof c&&(os(t,n,c,r),l=t.memoizedState),(s=zi||as(t,n,s,r,f,l,u))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Fi(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:rs(t.type,s),a.props=u,d=t.pendingProps,f=a.context,"object"==typeof(l=n.contextType)&&null!==l?l=Ri(l):l=Io(t,l=jo(n)?Ro:Po.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||f!==l)&&ls(t,a,r,l),zi=!1,f=t.memoizedState,a.state=f,qi(t,r,a,o);var h=t.memoizedState;s!==d||f!==h||Ao.current||zi?("function"==typeof p&&(os(t,n,p,r),h=t.memoizedState),(u=zi||as(t,n,u,r,f,h,l)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=l,r=u):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Ls(e,t,n,r,i,o)}function Ls(e,t,n,r,o,i){Es(e,t);var a=!!(128&t.flags);if(!r&&!a)return o&&Fo(t,n,!1),qs(e,t,i);r=t.stateNode,vs.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=wi(t,e.child,null,i),t.child=wi(t,null,s,i)):ks(e,t,s,i),t.memoizedState=r.state,o&&Fo(t,n,!0),t.child}function Os(e){var t=e.stateNode;t.pendingContext?Mo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Mo(0,t.context,!1),Zi(e,t.containerInfo)}function Ps(e,t,n,r,o){return gi(),mi(o),t.flags|=256,ks(e,t,n,r),t.child}var As,Rs,Is,js,Ds={dehydrated:null,treeContext:null,retryLane:0};function Ms(e){return{baseLanes:e,cachePool:null,transitions:null}}function zs(e,t,r){var o,i=t.pendingProps,a=ta.current,s=!1,l=!!(128&t.flags);if((o=l)||(o=(null===e||null!==e.memoizedState)&&!!(2&a)),o?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Lo(ta,1&a),null===e)return di(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=Mu(l,i,0,null):(s.childLanes=0,s.pendingProps=l),e=Du(e,i,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ms(r),t.memoizedState=Ds,e):_s(t,l));if(null!==(a=e.memoizedState)&&null!==(o=a.dehydrated))return function(e,t,r,o,i,a,s){if(r)return 256&t.flags?(t.flags&=-257,Fs(e,t,s,o=ds(Error(n(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=o.fallback,i=t.mode,o=Mu({mode:"visible",children:o.children},i,0,null),(a=Du(a,i,s,null)).flags|=2,o.return=t,a.return=t,o.sibling=a,t.child=o,1&t.mode&&wi(t,e.child,null,s),t.child.memoizedState=Ms(s),t.memoizedState=Ds,a);if(!(1&t.mode))return Fs(e,t,s,null);if("$!"===i.data){if(o=i.nextSibling&&i.nextSibling.dataset)var l=o.dgst;return o=l,Fs(e,t,s,o=ds(a=Error(n(419)),o,void 0))}if(l=0!==(s&e.childLanes),bs||l){if(null!==(o=Ol)){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=0!==(i&(o.suspendedLanes|s))?0:i)&&i!==a.retryLane&&(a.retryLane=i,Mi(e,i),nu(o,e,i,-1))}return gu(),Fs(e,t,s,o=ds(Error(n(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=Tu.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,ii=co(i.nextSibling),oi=t,ai=!0,si=null,null!==e&&(Qo[$o++]=Jo,Qo[$o++]=Xo,Qo[$o++]=Zo,Jo=e.id,Xo=e.overflow,Zo=t),t=_s(t,o.children),t.flags|=4096,t)}(e,t,l,i,o,a,r);if(s){s=i.fallback,l=t.mode,o=(a=e.child).sibling;var u={mode:"hidden",children:i.children};return 1&l||t.child===a?(i=Iu(a,u)).subtreeFlags=14680064&a.subtreeFlags:((i=t.child).childLanes=0,i.pendingProps=u,t.deletions=null),null!==o?s=Iu(o,s):(s=Du(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)?Ms(r):{baseLanes:l.baseLanes|r,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~r,t.memoizedState=Ds,i}return e=(s=e.child).sibling,i=Iu(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 _s(e,t){return(t=Mu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Fs(e,t,n,r){return null!==r&&mi(r),wi(t,e.child,null,n),(e=_s(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Us(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Pi(e.return,t,n)}function Bs(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Hs(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(ks(e,t,r.children,n),2&(r=ta.current))r=1&r|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&&Us(e,n,t);else if(19===e.tag)Us(e,n,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}r&=1}if(Lo(ta,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===na(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Bs(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===na(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Bs(t,!0,n,null,i);break;case"together":Bs(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Vs(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function qs(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),Ml|=t.lanes,0===(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(n(153));if(null!==t.child){for(r=Iu(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Iu(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function Ws(e,t){if(!ai)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ys(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ks(e,t,r){var i=t.pendingProps;switch(ri(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ys(t),null;case 1:case 17:return jo(t.type)&&Do(),Ys(t),null;case 3:return i=t.stateNode,Ji(),To(Ao),To(Po),oa(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),null!==e&&null!==e.child||(pi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==si&&(au(si),si=null))),Rs(e,t),Ys(t),null;case 5:ea(t);var a=$i(Qi.current);if(r=t.type,null!==e&&null!=t.stateNode)Is(e,t,r,i,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(null===t.stateNode)throw Error(n(166));return Ys(t),null}if(e=$i(Ki.current),pi(t)){i=t.stateNode,r=t.type;var s=t.memoizedProps;switch(i[ho]=t,i[go]=s,e=!!(1&t.mode),r){case"dialog":Ur("cancel",i),Ur("close",i);break;case"iframe":case"object":case"embed":Ur("load",i);break;case"video":case"audio":for(a=0;a<Mr.length;a++)Ur(Mr[a],i);break;case"source":Ur("error",i);break;case"img":case"image":case"link":Ur("error",i),Ur("load",i);break;case"details":Ur("toggle",i);break;case"input":Z(i,s),Ur("invalid",i);break;case"select":i._wrapperState={wasMultiple:!!s.multiple},Ur("invalid",i);break;case"textarea":ie(i,s),Ur("invalid",i)}for(var l in be(r,s),a=null,s)if(s.hasOwnProperty(l)){var u=s[l];"children"===l?"string"==typeof u?i.textContent!==u&&(!0!==s.suppressHydrationWarning&&Xr(i.textContent,u,e),a=["children",u]):"number"==typeof u&&i.textContent!==""+u&&(!0!==s.suppressHydrationWarning&&Xr(i.textContent,u,e),a=["children",""+u]):o.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&Ur("scroll",i)}switch(r){case"input":K(i),ee(i,s,!0);break;case"textarea":K(i),se(i);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(i.onclick=eo)}i=a,t.updateQueue=i,null!==i&&(t.flags|=4)}else{l=9===a.nodeType?a:a.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=le(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof i.is?e=l.createElement(r,{is:i.is}):(e=l.createElement(r),"select"===r&&(l=e,i.multiple?l.multiple=!0:i.size&&(l.size=i.size))):e=l.createElementNS(e,r),e[ho]=t,e[go]=i,As(e,t,!1,!1),t.stateNode=e;e:{switch(l=ke(r,i),r){case"dialog":Ur("cancel",e),Ur("close",e),a=i;break;case"iframe":case"object":case"embed":Ur("load",e),a=i;break;case"video":case"audio":for(a=0;a<Mr.length;a++)Ur(Mr[a],e);a=i;break;case"source":Ur("error",e),a=i;break;case"img":case"image":case"link":Ur("error",e),Ur("load",e),a=i;break;case"details":Ur("toggle",e),a=i;break;case"input":Z(e,i),a=$(e,i),Ur("invalid",e);break;case"option":default:a=i;break;case"select":e._wrapperState={wasMultiple:!!i.multiple},a=_({},i,{value:void 0}),Ur("invalid",e);break;case"textarea":ie(e,i),a=oe(e,i),Ur("invalid",e)}for(s in be(r,a),u=a)if(u.hasOwnProperty(s)){var c=u[s];"style"===s?ye(e,c):"dangerouslySetInnerHTML"===s?null!=(c=c?c.__html:void 0)&&fe(e,c):"children"===s?"string"==typeof c?("textarea"!==r||""!==c)&&pe(e,c):"number"==typeof c&&pe(e,""+c):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(o.hasOwnProperty(s)?null!=c&&"onScroll"===s&&Ur("scroll",e):null!=c&&b(e,s,c,l))}switch(r){case"input":K(e),ee(e,i,!1);break;case"textarea":K(e),se(e);break;case"option":null!=i.value&&e.setAttribute("value",""+W(i.value));break;case"select":e.multiple=!!i.multiple,null!=(s=i.value)?re(e,!!i.multiple,s,!1):null!=i.defaultValue&&re(e,!!i.multiple,i.defaultValue,!0);break;default:"function"==typeof a.onClick&&(e.onclick=eo)}switch(r){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}}i&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Ys(t),null;case 6:if(e&&null!=t.stateNode)js(e,t,e.memoizedProps,i);else{if("string"!=typeof i&&null===t.stateNode)throw Error(n(166));if(r=$i(Qi.current),$i(Ki.current),pi(t)){if(i=t.stateNode,r=t.memoizedProps,i[ho]=t,(s=i.nodeValue!==r)&&null!==(e=oi))switch(e.tag){case 3:Xr(i.nodeValue,r,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Xr(i.nodeValue,r,!!(1&e.mode))}s&&(t.flags|=4)}else(i=(9===r.nodeType?r:r.ownerDocument).createTextNode(i))[ho]=t,t.stateNode=i}return Ys(t),null;case 13:if(To(ta),i=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ai&&null!==ii&&1&t.mode&&!(128&t.flags))hi(),gi(),t.flags|=98560,s=!1;else if(s=pi(t),null!==i&&null!==i.dehydrated){if(null===e){if(!s)throw Error(n(318));if(!(s=null!==(s=t.memoizedState)?s.dehydrated:null))throw Error(n(317));s[ho]=t}else gi(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Ys(t),s=!1}else null!==si&&(au(si),si=null),s=!0;if(!s)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=r,t):((i=null!==i)!==(null!==e&&null!==e.memoizedState)&&i&&(t.child.flags|=8192,1&t.mode&&(null===e||1&ta.current?0===jl&&(jl=3):gu())),null!==t.updateQueue&&(t.flags|=4),Ys(t),null);case 4:return Ji(),Rs(e,t),null===e&&Vr(t.stateNode.containerInfo),Ys(t),null;case 10:return Oi(t.type._context),Ys(t),null;case 19:if(To(ta),null===(s=t.memoizedState))return Ys(t),null;if(i=!!(128&t.flags),null===(l=s.rendering))if(i)Ws(s,!1);else{if(0!==jl||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(l=na(e))){for(t.flags|=128,Ws(s,!1),null!==(i=l.updateQueue)&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=r,r=t.child;null!==r;)e=i,(s=r).flags&=14680066,null===(l=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,e=l.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Lo(ta,1&ta.current|2),t.child}e=e.sibling}null!==s.tail&&Je()>Hl&&(t.flags|=128,i=!0,Ws(s,!1),t.lanes=4194304)}else{if(!i)if(null!==(e=na(l))){if(t.flags|=128,i=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),Ws(s,!0),null===s.tail&&"hidden"===s.tailMode&&!l.alternate&&!ai)return Ys(t),null}else 2*Je()-s.renderingStartTime>Hl&&1073741824!==r&&(t.flags|=128,i=!0,Ws(s,!1),t.lanes=4194304);s.isBackwards?(l.sibling=t.child,t.child=l):(null!==(r=s.last)?r.sibling=l:t.child=l,s.last=l)}return null!==s.tail?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Je(),t.sibling=null,r=ta.current,Lo(ta,i?1&r|2:1&r),t):(Ys(t),null);case 22:case 23:return du(),i=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==i&&(t.flags|=8192),i&&1&t.mode?!!(1073741824&Rl)&&(Ys(t),6&t.subtreeFlags&&(t.flags|=8192)):Ys(t),null;case 24:case 25:return null}throw Error(n(156,t.tag))}function Gs(e,t){switch(ri(t),t.tag){case 1:return jo(t.type)&&Do(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Ji(),To(Ao),To(Po),oa(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return ea(t),null;case 13:if(To(ta),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(n(340));gi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return To(ta),null;case 4:return Ji(),null;case 10:return Oi(t.type._context),null;case 22:case 23:return du(),null;default:return null}}As=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Rs=function(){},Is=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,$i(Ki.current);var a,s=null;switch(n){case"input":i=$(e,i),r=$(e,r),s=[];break;case"select":i=_({},i,{value:void 0}),r=_({},r,{value:void 0}),s=[];break;case"textarea":i=oe(e,i),r=oe(e,r),s=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=eo)}for(c in be(n,r),n=null,i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&null!=i[c])if("style"===c){var l=i[c];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(o.hasOwnProperty(c)?s||(s=[]):(s=s||[]).push(c,null));for(c in r){var u=r[c];if(l=null!=i?i[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(a in l)!l.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in u)u.hasOwnProperty(a)&&l[a]!==u[a]&&(n||(n={}),n[a]=u[a])}else n||(s||(s=[]),s.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(s=s||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(s=s||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(o.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Ur("scroll",e),s||l===u||(s=[])):(s=s||[]).push(c,u))}n&&(s=s||[]).push("style",n);var c=s;(t.updateQueue=c)&&(t.flags|=4)}},js=function(e,t,n,r){n!==r&&(t.flags|=4)};var Qs=!1,$s=!1,Zs="function"==typeof WeakSet?WeakSet:Set,Js=null;function Xs(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(r){Cu(e,t,r)}else n.current=null}function el(e,t,n){try{n()}catch(r){Cu(e,t,r)}}var tl=!1;function nl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&el(t,n,i)}o=o.next}while(o!==r)}}function rl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ol(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function il(e){var t=e.alternate;null!==t&&(e.alternate=null,il(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[ho],delete t[go],delete t[yo],delete t[vo],delete t[bo])),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 al(e){return 5===e.tag||3===e.tag||4===e.tag}function sl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||al(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 ll(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=eo));else if(4!==r&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}function ul(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ul(e,t,n),e=e.sibling;null!==e;)ul(e,t,n),e=e.sibling}var cl=null,dl=!1;function fl(e,t,n){for(n=n.child;null!==n;)pl(e,t,n),n=n.sibling}function pl(e,t,n){if(at&&"function"==typeof at.onCommitFiberUnmount)try{at.onCommitFiberUnmount(it,n)}catch(s){}switch(n.tag){case 5:$s||Xs(n,t);case 6:var r=cl,o=dl;cl=null,fl(e,t,n),dl=o,null!==(cl=r)&&(dl?(e=cl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):cl.removeChild(n.stateNode));break;case 18:null!==cl&&(dl?(e=cl,n=n.stateNode,8===e.nodeType?uo(e.parentNode,n):1===e.nodeType&&uo(e,n),Vt(e)):uo(cl,n.stateNode));break;case 4:r=cl,o=dl,cl=n.stateNode.containerInfo,dl=!0,fl(e,t,n),cl=r,dl=o;break;case 0:case 11:case 14:case 15:if(!$s&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(2&i||4&i)&&el(n,t,a),o=o.next}while(o!==r)}fl(e,t,n);break;case 1:if(!$s&&(Xs(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Cu(n,t,s)}fl(e,t,n);break;case 21:fl(e,t,n);break;case 22:1&n.mode?($s=(r=$s)||null!==n.memoizedState,fl(e,t,n),$s=r):fl(e,t,n);break;default:fl(e,t,n)}}function hl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Zs),t.forEach(function(t){var r=Lu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function gl(e,t){var r=t.deletions;if(null!==r)for(var o=0;o<r.length;o++){var i=r[o];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:cl=l.stateNode,dl=!1;break e;case 3:case 4:cl=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===cl)throw Error(n(160));pl(a,s,i),cl=null,dl=!1;var u=i.alternate;null!==u&&(u.return=null),i.return=null}catch(c){Cu(i,t,c)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)ml(t,e),t=t.sibling}function ml(e,t){var r=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gl(t,e),yl(e),4&o){try{nl(3,e,e.return),rl(3,e)}catch(m){Cu(e,e.return,m)}try{nl(5,e,e.return)}catch(m){Cu(e,e.return,m)}}break;case 1:gl(t,e),yl(e),512&o&&null!==r&&Xs(r,r.return);break;case 5:if(gl(t,e),yl(e),512&o&&null!==r&&Xs(r,r.return),32&e.flags){var i=e.stateNode;try{pe(i,"")}catch(m){Cu(e,e.return,m)}}if(4&o&&null!=(i=e.stateNode)){var a=e.memoizedProps,s=null!==r?r.memoizedProps:a,l=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===l&&"radio"===a.type&&null!=a.name&&J(i,a),ke(l,s);var c=ke(l,a);for(s=0;s<u.length;s+=2){var d=u[s],f=u[s+1];"style"===d?ye(i,f):"dangerouslySetInnerHTML"===d?fe(i,f):"children"===d?pe(i,f):b(i,d,f,c)}switch(l){case"input":X(i,a);break;case"textarea":ae(i,a);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?re(i,!!a.multiple,h,!1):p!==!!a.multiple&&(null!=a.defaultValue?re(i,!!a.multiple,a.defaultValue,!0):re(i,!!a.multiple,a.multiple?[]:"",!1))}i[go]=a}catch(m){Cu(e,e.return,m)}}break;case 6:if(gl(t,e),yl(e),4&o){if(null===e.stateNode)throw Error(n(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(m){Cu(e,e.return,m)}}break;case 3:if(gl(t,e),yl(e),4&o&&null!==r&&r.memoizedState.isDehydrated)try{Vt(t.containerInfo)}catch(m){Cu(e,e.return,m)}break;case 4:default:gl(t,e),yl(e);break;case 13:gl(t,e),yl(e),8192&(i=e.child).flags&&(a=null!==i.memoizedState,i.stateNode.isHidden=a,!a||null!==i.alternate&&null!==i.alternate.memoizedState||(Bl=Je())),4&o&&hl(e);break;case 22:if(d=null!==r&&null!==r.memoizedState,1&e.mode?($s=(c=$s)||d,gl(t,e),$s=c):gl(t,e),yl(e),8192&o){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&1&e.mode)for(Js=e,d=e.child;null!==d;){for(f=Js=d;null!==Js;){switch(h=(p=Js).child,p.tag){case 0:case 11:case 14:case 15:nl(4,p,p.return);break;case 1:Xs(p,p.return);var g=p.stateNode;if("function"==typeof g.componentWillUnmount){o=p,r=p.return;try{t=o,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(m){Cu(o,r,m)}}break;case 5:Xs(p,p.return);break;case 22:if(null!==p.memoizedState){xl(f);continue}}null!==h?(h.return=p,Js=h):xl(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{i=f.stateNode,c?"function"==typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=f.stateNode,s=null!=(u=f.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,l.style.display=me("display",s))}catch(m){Cu(e,e.return,m)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(m){Cu(e,e.return,m)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:gl(t,e),yl(e),4&o&&hl(e);case 21:}}function yl(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(al(r)){var o=r;break e}r=r.return}throw Error(n(160))}switch(o.tag){case 5:var i=o.stateNode;32&o.flags&&(pe(i,""),o.flags&=-33),ul(e,sl(e),i);break;case 3:case 4:var a=o.stateNode.containerInfo;ll(e,sl(e),a);break;default:throw Error(n(161))}}catch(s){Cu(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function vl(e,t,n){Js=e,bl(e)}function bl(e,t,n){for(var r=!!(1&e.mode);null!==Js;){var o=Js,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||Qs;if(!a){var s=o.alternate,l=null!==s&&null!==s.memoizedState||$s;s=Qs;var u=$s;if(Qs=a,($s=l)&&!u)for(Js=o;null!==Js;)l=(a=Js).child,22===a.tag&&null!==a.memoizedState?wl(o):null!==l?(l.return=a,Js=l):wl(o);for(;null!==i;)Js=i,bl(i),i=i.sibling;Js=o,Qs=s,$s=u}kl(e)}else 8772&o.subtreeFlags&&null!==i?(i.return=o,Js=i):kl(e)}}function kl(e){for(;null!==Js;){var t=Js;if(8772&t.flags){var r=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:$s||rl(5,t);break;case 1:var o=t.stateNode;if(4&t.flags&&!$s)if(null===r)o.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:rs(t.type,r.memoizedProps);o.componentDidUpdate(i,r.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Wi(t,a,o);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}Wi(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 d=c.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&Vt(f)}}}break;default:throw Error(n(163))}$s||512&t.flags&&ol(t)}catch(p){Cu(t,t.return,p)}}if(t===e){Js=null;break}if(null!==(r=t.sibling)){r.return=t.return,Js=r;break}Js=t.return}}function xl(e){for(;null!==Js;){var t=Js;if(t===e){Js=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Js=n;break}Js=t.return}}function wl(e){for(;null!==Js;){var t=Js;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rl(4,t)}catch(l){Cu(t,n,l)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(l){Cu(t,o,l)}}var i=t.return;try{ol(t)}catch(l){Cu(t,i,l)}break;case 5:var a=t.return;try{ol(t)}catch(l){Cu(t,a,l)}}}catch(l){Cu(t,t.return,l)}if(t===e){Js=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Js=s;break}Js=t.return}}var Sl,Cl=Math.ceil,El=x.ReactCurrentDispatcher,Nl=x.ReactCurrentOwner,Tl=x.ReactCurrentBatchConfig,Ll=0,Ol=null,Pl=null,Al=0,Rl=0,Il=No(0),jl=0,Dl=null,Ml=0,zl=0,_l=0,Fl=null,Ul=null,Bl=0,Hl=1/0,Vl=null,ql=!1,Wl=null,Yl=null,Kl=!1,Gl=null,Ql=0,$l=0,Zl=null,Jl=-1,Xl=0;function eu(){return 6&Ll?Je():-1!==Jl?Jl:Jl=Je()}function tu(e){return 1&e.mode?2&Ll&&0!==Al?Al&-Al:null!==yi.transition?(0===Xl&&(Xl=mt()),Xl):0!==(e=kt)?e:e=void 0===(e=window.event)?16:Zt(e.type):1}function nu(e,t,r,o){if(50<$l)throw $l=0,Zl=null,Error(n(185));vt(e,r,o),2&Ll&&e===Ol||(e===Ol&&(!(2&Ll)&&(zl|=r),4===jl&&su(e,Al)),ru(e,o),1===r&&0===Ll&&!(1&t.mode)&&(Hl=Je()+500,Bo&&qo()))}function ru(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-st(i),s=1<<a,l=o[a];-1===l?0!==(s&n)&&0===(s&r)||(o[a]=ht(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}(e,t);var r=pt(e,e===Ol?Al:0);if(0===r)null!==n&&Qe(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Qe(n),1===t)0===e.tag?function(e){Bo=!0,Vo(e)}(lu.bind(null,e)):Vo(lu.bind(null,e)),so(function(){!(6&Ll)&&qo()}),n=null;else{switch(xt(r)){case 1:n=et;break;case 4:n=tt;break;case 16:default:n=nt;break;case 536870912:n=ot}n=Ou(n,ou.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ou(e,t){if(Jl=-1,Xl=0,6&Ll)throw Error(n(327));var r=e.callbackNode;if(wu()&&e.callbackNode!==r)return null;var o=pt(e,e===Ol?Al:0);if(0===o)return null;if(30&o||0!==(o&e.expiredLanes)||t)t=mu(e,o);else{t=o;var i=Ll;Ll|=2;var a=hu();for(Ol===e&&Al===t||(Vl=null,Hl=Je()+500,fu(e,t));;)try{vu();break}catch(l){pu(e,l)}Li(),El.current=a,Ll=i,null!==Pl?t=0:(Ol=null,Al=0,t=jl)}if(0!==t){if(2===t&&(0!==(i=gt(e))&&(o=i,t=iu(e,i))),1===t)throw r=Dl,fu(e,0),su(e,o),ru(e,Je()),r;if(6===t)su(e,o);else{if(i=e.current.alternate,!(30&o||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!lr(i(),o))return!1}catch(s){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;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=mu(e,o),2===t&&(a=gt(e),0!==a&&(o=a,t=iu(e,a))),1!==t)))throw r=Dl,fu(e,0),su(e,o),ru(e,Je()),r;switch(e.finishedWork=i,e.finishedLanes=o,t){case 0:case 1:throw Error(n(345));case 2:case 5:xu(e,Ul,Vl);break;case 3:if(su(e,o),(130023424&o)===o&&10<(t=Bl+500-Je())){if(0!==pt(e,0))break;if(((i=e.suspendedLanes)&o)!==o){eu(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=oo(xu.bind(null,e,Ul,Vl),t);break}xu(e,Ul,Vl);break;case 4:if(su(e,o),(4194240&o)===o)break;for(t=e.eventTimes,i=-1;0<o;){var s=31-st(o);a=1<<s,(s=t[s])>i&&(i=s),o&=~a}if(o=i,10<(o=(120>(o=Je()-o)?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*Cl(o/1960))-o)){e.timeoutHandle=oo(xu.bind(null,e,Ul,Vl),o);break}xu(e,Ul,Vl);break;default:throw Error(n(329))}}}return ru(e,Je()),e.callbackNode===r?ou.bind(null,e):null}function iu(e,t){var n=Fl;return e.current.memoizedState.isDehydrated&&(fu(e,t).flags|=256),2!==(e=mu(e,t))&&(t=Ul,Ul=n,null!==t&&au(t)),e}function au(e){null===Ul?Ul=e:Ul.push.apply(Ul,e)}function su(e,t){for(t&=~_l,t&=~zl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-st(t),r=1<<n;e[n]=-1,t&=~r}}function lu(e){if(6&Ll)throw Error(n(327));wu();var t=pt(e,0);if(!(1&t))return ru(e,Je()),null;var r=mu(e,t);if(0!==e.tag&&2===r){var o=gt(e);0!==o&&(t=o,r=iu(e,o))}if(1===r)throw r=Dl,fu(e,0),su(e,t),ru(e,Je()),r;if(6===r)throw Error(n(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,xu(e,Ul,Vl),ru(e,Je()),null}function uu(e,t){var n=Ll;Ll|=1;try{return e(t)}finally{0===(Ll=n)&&(Hl=Je()+500,Bo&&qo())}}function cu(e){null!==Gl&&0===Gl.tag&&!(6&Ll)&&wu();var t=Ll;Ll|=1;var n=Tl.transition,r=kt;try{if(Tl.transition=null,kt=1,e)return e()}finally{kt=r,Tl.transition=n,!(6&(Ll=t))&&qo()}}function du(){Rl=Il.current,To(Il)}function fu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,io(n)),null!==Pl)for(n=Pl.return;null!==n;){var r=n;switch(ri(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Do();break;case 3:Ji(),To(Ao),To(Po),oa();break;case 5:ea(r);break;case 4:Ji();break;case 13:case 19:To(ta);break;case 10:Oi(r.type._context);break;case 22:case 23:du()}n=n.return}if(Ol=e,Pl=e=Iu(e.current,null),Al=Rl=t,jl=0,Dl=null,_l=zl=Ml=0,Ul=Fl=null,null!==Ii){for(t=0;t<Ii.length;t++)if(null!==(r=(n=Ii[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Ii=null}return e}function pu(e,t){for(;;){var r=Pl;try{if(Li(),ia.current=Xa,da){for(var o=la.memoizedState;null!==o;){var i=o.queue;null!==i&&(i.pending=null),o=o.next}da=!1}if(sa=0,ca=ua=la=null,fa=!1,pa=0,Nl.current=null,null===r||null===r.return){jl=1,Dl=t,Pl=null;break}e:{var a=e,s=r.return,l=r,u=t;if(t=Al,l.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,d=l,f=d.tag;if(!(1&d.mode||0!==f&&11!==f&&15!==f)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=ms(s);if(null!==h){h.flags&=-257,ys(h,s,l,0,t),1&h.mode&&gs(a,c,t),u=c;var g=(t=h).updateQueue;if(null===g){var m=new Set;m.add(u),t.updateQueue=m}else g.add(u);break e}if(!(1&t)){gs(a,c,t),gu();break e}u=Error(n(426))}else if(ai&&1&l.mode){var y=ms(s);if(null!==y){!(65536&y.flags)&&(y.flags|=256),ys(y,s,l,0,t),mi(cs(u,l));break e}}a=u=cs(u,l),4!==jl&&(jl=2),null===Fl?Fl=[a]:Fl.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Vi(a,ps(0,u,t));break e;case 1:l=u;var v=a.type,b=a.stateNode;if(!(128&a.flags||"function"!=typeof v.getDerivedStateFromError&&(null===b||"function"!=typeof b.componentDidCatch||null!==Yl&&Yl.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,Vi(a,hs(a,l,t));break e}}a=a.return}while(null!==a)}ku(r)}catch(k){t=k,Pl===r&&null!==r&&(Pl=r=r.return);continue}break}}function hu(){var e=El.current;return El.current=Xa,null===e?Xa:e}function gu(){0!==jl&&3!==jl&&2!==jl||(jl=4),null===Ol||!(268435455&Ml)&&!(268435455&zl)||su(Ol,Al)}function mu(e,t){var r=Ll;Ll|=2;var o=hu();for(Ol===e&&Al===t||(Vl=null,fu(e,t));;)try{yu();break}catch(i){pu(e,i)}if(Li(),Ll=r,El.current=o,null!==Pl)throw Error(n(261));return Ol=null,Al=0,jl}function yu(){for(;null!==Pl;)bu(Pl)}function vu(){for(;null!==Pl&&!$e();)bu(Pl)}function bu(e){var t=Sl(e.alternate,e,Rl);e.memoizedProps=e.pendingProps,null===t?ku(e):Pl=t,Nl.current=null}function ku(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Gs(n,t)))return n.flags&=32767,void(Pl=n);if(null===e)return jl=6,void(Pl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Ks(n,t,Rl)))return void(Pl=n);if(null!==(t=t.sibling))return void(Pl=t);Pl=t=e}while(null!==t);0===jl&&(jl=5)}function xu(e,t,r){var o=kt,i=Tl.transition;try{Tl.transition=null,kt=1,function(e,t,r,o){do{wu()}while(null!==Gl);if(6&Ll)throw Error(n(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(n(177));e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-st(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,a),e===Ol&&(Pl=Ol=null,Al=0),!(2064&r.subtreeFlags)&&!(2064&r.flags)||Kl||(Kl=!0,Ou(nt,function(){return wu(),null})),a=!!(15990&r.flags),!!(15990&r.subtreeFlags)||a){a=Tl.transition,Tl.transition=null;var s=kt;kt=1;var l=Ll;Ll|=4,Nl.current=null,function(e,t){if(to=Wt,hr(e=pr())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var o=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(o&&0!==o.rangeCount){r=o.anchorNode;var i=o.anchorOffset,a=o.focusNode;o=o.focusOffset;try{r.nodeType,a.nodeType}catch(x){r=null;break e}var s=0,l=-1,u=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==r||0!==i&&3!==f.nodeType||(l=s+i),f!==a||0!==o&&3!==f.nodeType||(u=s+o),3===f.nodeType&&(s+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===r&&++c===i&&(l=s),p===a&&++d===o&&(u=s),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}r=-1===l||-1===u?null:{start:l,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(no={focusedElem:e,selectionRange:r},Wt=!1,Js=t;null!==Js;)if(e=(t=Js).child,1028&t.subtreeFlags&&null!==e)e.return=t,Js=e;else for(;null!==Js;){t=Js;try{var g=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!==g){var m=g.memoizedProps,y=g.memoizedState,v=t.stateNode,b=v.getSnapshotBeforeUpdate(t.elementType===t.type?m:rs(t.type,m),y);v.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var k=t.stateNode.containerInfo;1===k.nodeType?k.textContent="":9===k.nodeType&&k.documentElement&&k.removeChild(k.documentElement);break;default:throw Error(n(163))}}catch(x){Cu(t,t.return,x)}if(null!==(e=t.sibling)){e.return=t.return,Js=e;break}Js=t.return}g=tl,tl=!1}(e,r),ml(r,e),gr(no),Wt=!!to,no=to=null,e.current=r,vl(r),Ze(),Ll=l,kt=s,Tl.transition=a}else e.current=r;if(Kl&&(Kl=!1,Gl=e,Ql=i),a=e.pendingLanes,0===a&&(Yl=null),function(e){if(at&&"function"==typeof at.onCommitFiberRoot)try{at.onCommitFiberRoot(it,e,void 0,!(128&~e.current.flags))}catch(t){}}(r.stateNode),ru(e,Je()),null!==t)for(o=e.onRecoverableError,r=0;r<t.length;r++)i=t[r],o(i.value,{componentStack:i.stack,digest:i.digest});if(ql)throw ql=!1,e=Wl,Wl=null,e;!!(1&Ql)&&0!==e.tag&&wu(),a=e.pendingLanes,1&a?e===Zl?$l++:($l=0,Zl=e):$l=0,qo()}(e,t,r,o)}finally{Tl.transition=i,kt=o}return null}function wu(){if(null!==Gl){var e=xt(Ql),t=Tl.transition,r=kt;try{if(Tl.transition=null,kt=16>e?16:e,null===Gl)var o=!1;else{if(e=Gl,Gl=null,Ql=0,6&Ll)throw Error(n(331));var i=Ll;for(Ll|=4,Js=e.current;null!==Js;){var a=Js,s=a.child;if(16&Js.flags){var l=a.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for(Js=c;null!==Js;){var d=Js;switch(d.tag){case 0:case 11:case 15:nl(8,d,a)}var f=d.child;if(null!==f)f.return=d,Js=f;else for(;null!==Js;){var p=(d=Js).sibling,h=d.return;if(il(d),d===c){Js=null;break}if(null!==p){p.return=h,Js=p;break}Js=h}}}var g=a.alternate;if(null!==g){var m=g.child;if(null!==m){g.child=null;do{var y=m.sibling;m.sibling=null,m=y}while(null!==m)}}Js=a}}if(2064&a.subtreeFlags&&null!==s)s.return=a,Js=s;else e:for(;null!==Js;){if(2048&(a=Js).flags)switch(a.tag){case 0:case 11:case 15:nl(9,a,a.return)}var v=a.sibling;if(null!==v){v.return=a.return,Js=v;break e}Js=a.return}}var b=e.current;for(Js=b;null!==Js;){var k=(s=Js).child;if(2064&s.subtreeFlags&&null!==k)k.return=s,Js=k;else e:for(s=b;null!==Js;){if(2048&(l=Js).flags)try{switch(l.tag){case 0:case 11:case 15:rl(9,l)}}catch(w){Cu(l,l.return,w)}if(l===s){Js=null;break e}var x=l.sibling;if(null!==x){x.return=l.return,Js=x;break e}Js=l.return}}if(Ll=i,qo(),at&&"function"==typeof at.onPostCommitFiberRoot)try{at.onPostCommitFiberRoot(it,e)}catch(w){}o=!0}return o}finally{kt=r,Tl.transition=t}}return!1}function Su(e,t,n){e=Bi(e,t=ps(0,t=cs(n,t),1),1),t=eu(),null!==e&&(vt(e,1,t),ru(e,t))}function Cu(e,t,n){if(3===e.tag)Su(e,e,n);else for(;null!==t;){if(3===t.tag){Su(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Yl||!Yl.has(r))){t=Bi(t,e=hs(t,e=cs(n,e),1),1),e=eu(),null!==t&&(vt(t,1,e),ru(t,e));break}}t=t.return}}function Eu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=eu(),e.pingedLanes|=e.suspendedLanes&n,Ol===e&&(Al&n)===n&&(4===jl||3===jl&&(130023424&Al)===Al&&500>Je()-Bl?fu(e,0):_l|=n),ru(e,t)}function Nu(e,t){0===t&&(1&e.mode?(t=dt,!(130023424&(dt<<=1))&&(dt=4194304)):t=1);var n=eu();null!==(e=Mi(e,t))&&(vt(e,t,n),ru(e,n))}function Tu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Nu(e,n)}function Lu(e,t){var r=0;switch(e.tag){case 13:var o=e.stateNode,i=e.memoizedState;null!==i&&(r=i.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(n(314))}null!==o&&o.delete(t),Nu(e,r)}function Ou(e,t){return Ge(e,t)}function Pu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Au(e,t,n,r){return new Pu(e,t,n,r)}function Ru(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Iu(e,t){var n=e.alternate;return null===n?((n=Au(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ju(e,t,r,o,i,a){var s=2;if(o=e,"function"==typeof e)Ru(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case C:return Du(r.children,i,a,t);case E:s=8,i|=8;break;case N:return(e=Au(12,r,t,2|i)).elementType=N,e.lanes=a,e;case P:return(e=Au(13,r,t,i)).elementType=P,e.lanes=a,e;case A:return(e=Au(19,r,t,i)).elementType=A,e.lanes=a,e;case j:return Mu(r,i,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case T:s=10;break e;case L:s=9;break e;case O:s=11;break e;case R:s=14;break e;case I:s=16,o=null;break e}throw Error(n(130,null==e?e:typeof e,""))}return(t=Au(s,r,t,i)).elementType=e,t.type=o,t.lanes=a,t}function Du(e,t,n,r){return(e=Au(7,e,r,t)).lanes=n,e}function Mu(e,t,n,r){return(e=Au(22,e,r,t)).elementType=j,e.lanes=n,e.stateNode={isHidden:!1},e}function zu(e,t,n){return(e=Au(6,e,null,t)).lanes=n,e}function _u(e,t,n){return(t=Au(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Fu(e,t,n,r,o){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=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Uu(e,t,n,r,o,i,a,s,l){return e=new Fu(e,t,n,s,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Au(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},_i(i),e}function Bu(e){if(!e)return Oo;e:{if(Ve(e=e._reactInternals)!==e||1!==e.tag)throw Error(n(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(jo(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(n(171))}if(1===e.tag){var r=e.type;if(jo(r))return zo(e,r,t)}return t}function Hu(e,t,n,r,o,i,a,s,l){return(e=Uu(n,r,!0,e,0,i,0,s,l)).context=Bu(null),n=e.current,(i=Ui(r=eu(),o=tu(n))).callback=null!=t?t:null,Bi(n,i,o),e.current.lanes=o,vt(e,o,r),ru(e,r),e}function Vu(e,t,n,r){var o=t.current,i=eu(),a=tu(o);return n=Bu(n),null===t.context?t.context=n:t.pendingContext=n,(t=Ui(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Bi(o,t,a))&&(nu(e,o,a,i),Hi(e,o,a)),a}function qu(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 n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Yu(e,t){Wu(e,t),(e=e.alternate)&&Wu(e,t)}Sl=function(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ao.current)bs=!0;else{if(0===(e.lanes&r)&&!(128&t.flags))return bs=!1,function(e,t,n){switch(t.tag){case 3:Os(t),gi();break;case 5:Xi(t);break;case 1:jo(t.type)&&_o(t);break;case 4:Zi(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Lo(Ci,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Lo(ta,1&ta.current),t.flags|=128,null):0!==(n&t.child.childLanes)?zs(e,t,n):(Lo(ta,1&ta.current),null!==(e=qs(e,t,n))?e.sibling:null);Lo(ta,1&ta.current);break;case 19:if(r=0!==(n&t.childLanes),128&e.flags){if(r)return Hs(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Lo(ta,ta.current),r)break;return null;case 22:case 23:return t.lanes=0,Cs(e,t,n)}return qs(e,t,n)}(e,t,r);bs=!!(131072&e.flags)}else bs=!1,ai&&1048576&t.flags&&ti(t,Go,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;Vs(e,t),e=t.pendingProps;var i=Io(t,Po.current);Ai(t,r),i=ya(null,t,o,e,i,r);var a=va();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,jo(o)?(a=!0,_o(t)):a=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,_i(t),i.updater=is,t.stateNode=i,i._reactInternals=t,us(t,o,e,r),t=Ls(null,t,o,!0,a,r)):(t.tag=0,ai&&a&&ni(t),ks(null,t,i,r),t=t.child),t;case 16:o=t.elementType;e:{switch(Vs(e,t),e=t.pendingProps,o=(i=o._init)(o._payload),t.type=o,i=t.tag=function(e){if("function"==typeof e)return Ru(e)?1:0;if(null!=e){if((e=e.$$typeof)===O)return 11;if(e===R)return 14}return 2}(o),e=rs(o,e),i){case 0:t=Ns(null,t,o,e,r);break e;case 1:t=Ts(null,t,o,e,r);break e;case 11:t=xs(null,t,o,e,r);break e;case 14:t=ws(null,t,o,rs(o.type,e),r);break e}throw Error(n(306,o,""))}return t;case 0:return o=t.type,i=t.pendingProps,Ns(e,t,o,i=t.elementType===o?i:rs(o,i),r);case 1:return o=t.type,i=t.pendingProps,Ts(e,t,o,i=t.elementType===o?i:rs(o,i),r);case 3:e:{if(Os(t),null===e)throw Error(n(387));o=t.pendingProps,i=(a=t.memoizedState).element,Fi(e,t),qi(t,o,null,r);var s=t.memoizedState;if(o=s.element,a.isDehydrated){if(a={element:o,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Ps(e,t,o,r,i=cs(Error(n(423)),t));break e}if(o!==i){t=Ps(e,t,o,r,i=cs(Error(n(424)),t));break e}for(ii=co(t.stateNode.containerInfo.firstChild),oi=t,ai=!0,si=null,r=Si(t,null,o,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(gi(),o===i){t=qs(e,t,r);break e}ks(e,t,o,r)}t=t.child}return t;case 5:return Xi(t),null===e&&di(t),o=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,s=i.children,ro(o,i)?s=null:null!==a&&ro(o,a)&&(t.flags|=32),Es(e,t),ks(e,t,s,r),t.child;case 6:return null===e&&di(t),null;case 13:return zs(e,t,r);case 4:return Zi(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=wi(t,null,o,r):ks(e,t,o,r),t.child;case 11:return o=t.type,i=t.pendingProps,xs(e,t,o,i=t.elementType===o?i:rs(o,i),r);case 7:return ks(e,t,t.pendingProps,r),t.child;case 8:case 12:return ks(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(o=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,Lo(Ci,o._currentValue),o._currentValue=s,null!==a)if(lr(a.value,s)){if(a.children===i.children&&!Ao.current){t=qs(e,t,r);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var u=l.firstContext;null!==u;){if(u.context===o){if(1===a.tag){(u=Ui(-1,r&-r)).tag=2;var c=a.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}a.lanes|=r,null!==(u=a.alternate)&&(u.lanes|=r),Pi(a.return,r,t),l.lanes|=r;break}u=u.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(n(341));s.lanes|=r,null!==(l=s.alternate)&&(l.lanes|=r),Pi(s,r,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}ks(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,o=t.pendingProps.children,Ai(t,r),o=o(i=Ri(i)),t.flags|=1,ks(e,t,o,r),t.child;case 14:return i=rs(o=t.type,t.pendingProps),ws(e,t,o,i=rs(o.type,i),r);case 15:return Ss(e,t,t.type,t.pendingProps,r);case 17:return o=t.type,i=t.pendingProps,i=t.elementType===o?i:rs(o,i),Vs(e,t),t.tag=1,jo(o)?(e=!0,_o(t)):e=!1,Ai(t,r),ss(t,o,i),us(t,o,i,r),Ls(null,t,o,!0,e,r);case 19:return Hs(e,t,r);case 22:return Cs(e,t,r)}throw Error(n(156,t.tag))};var Ku="function"==typeof reportError?reportError:function(e){};function Gu(e){this._internalRoot=e}function Qu(e){this._internalRoot=e}function $u(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Zu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Ju(){}function Xu(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"==typeof o){var s=o;o=function(){var e=qu(a);s.call(e)}}Vu(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=qu(a);i.call(e)}}var a=Hu(t,r,e,0,null,!1,0,"",Ju);return e._reactRootContainer=a,e[mo]=a.current,Vr(8===e.nodeType?e.parentNode:e),cu(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var s=r;r=function(){var e=qu(l);s.call(e)}}var l=Uu(e,0,!1,null,0,!1,0,"",Ju);return e._reactRootContainer=l,e[mo]=l.current,Vr(8===e.nodeType?e.parentNode:e),cu(function(){Vu(t,l,n,r)}),l}(n,t,e,o,r);return qu(a)}Qu.prototype.render=Gu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(n(409));Vu(e,t,null,null)},Qu.prototype.unmount=Gu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;cu(function(){Vu(null,e,null,null)}),t[mo]=null}},Qu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Et();e={blockedOn:null,target:e,priority:t};for(var n=0;n<jt.length&&0!==t&&t<jt[n].priority;n++);jt.splice(n,0,e),0===n&&_t(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ft(t.pendingLanes);0!==n&&(bt(t,1|n),ru(t,Je()),!(6&Ll)&&(Hl=Je()+500,qo()))}break;case 13:cu(function(){var t=Mi(e,1);if(null!==t){var n=eu();nu(t,e,1,n)}}),Yu(e,1)}},St=function(e){if(13===e.tag){var t=Mi(e,134217728);if(null!==t)nu(t,e,134217728,eu());Yu(e,134217728)}},Ct=function(e){if(13===e.tag){var t=tu(e),n=Mi(e,t);if(null!==n)nu(n,e,t,eu());Yu(e,t)}},Et=function(){return kt},Nt=function(e,t){var n=kt;try{return kt=e,t()}finally{kt=n}},Se=function(e,t,r){switch(t){case"input":if(X(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 o=r[t];if(o!==e&&o.form===e.form){var i=So(o);if(!i)throw Error(n(90));G(o),X(o,i)}}}break;case"textarea":ae(e,r);break;case"select":null!=(t=r.value)&&re(e,!!r.multiple,t,!1)}},Oe=uu,Pe=cu;var ec={usingClientEntryPoint:!1,Events:[xo,wo,So,Te,Le,uu]},tc={findFiberByHostInstance:ko,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nc={bundleType:tc.bundleType,version:tc.version,rendererPackageName:tc.rendererPackageName,rendererConfig:tc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ye(e))?null:e.stateNode},findFiberByHostInstance:tc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var rc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rc.isDisabled&&rc.supportsFiber)try{it=rc.inject(nc),at=rc}catch(de){}}return y.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ec,y.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!$u(t))throw Error(n(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,r)},y.createRoot=function(e,t){if(!$u(e))throw Error(n(299));var r=!1,o="",i=Ku;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(o=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=Uu(e,1,!1,null,0,r,0,o,i),e[mo]=t.current,Vr(8===e.nodeType?e.parentNode:e),new Gu(t)},y.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(n(188));throw e=Object.keys(e).join(","),Error(n(268,e))}return e=null===(e=Ye(t))?null:e.stateNode},y.flushSync=function(e){return cu(e)},y.hydrate=function(e,t,r){if(!Zu(t))throw Error(n(200));return Xu(null,e,t,!0,r)},y.hydrateRoot=function(e,t,r){if(!$u(e))throw Error(n(405));var o=null!=r&&r.hydratedSources||null,i=!1,a="",s=Ku;if(null!=r&&(!0===r.unstable_strictMode&&(i=!0),void 0!==r.identifierPrefix&&(a=r.identifierPrefix),void 0!==r.onRecoverableError&&(s=r.onRecoverableError)),t=Hu(t,null,e,1,null!=r?r:null,i,0,a,s),e[mo]=t.current,Vr(e),o)for(e=0;e<o.length;e++)i=(i=(r=o[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,i]:t.mutableSourceEagerHydrationData.push(r,i);return new Qu(t)},y.render=function(e,t,r){if(!Zu(t))throw Error(n(200));return Xu(null,e,t,!1,r)},y.unmountComponentAtNode=function(e){if(!Zu(e))throw Error(n(40));return!!e._reactRootContainer&&(cu(function(){Xu(null,null,e,!1,function(){e._reactRootContainer=null,e[mo]=null})}),!0)},y.unstable_batchedUpdates=uu,y.unstable_renderSubtreeIntoContainer=function(e,t,r,o){if(!Zu(r))throw Error(n(200));if(null==e||void 0===e._reactInternals)throw Error(n(38));return Xu(e,t,r,!1,o)},y.version="18.3.1-next-f1338f8080-20240426",y}var w,S,C=function(){if(h)return g;h=1;var e=(p||(p=1,function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){}}(),m.exports=x()),m.exports);return g.createRoot=e.createRoot,g.hydrateRoot=e.hydrateRoot,g}(),E={exports:{}},N={};var T=(S||(S=1,E.exports=function(){if(w)return N;w=1;var e=s(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(e,n,a){var s,l={},u=null,c=null;for(s in void 0!==a&&(u=""+a),void 0!==n.key&&(u=""+n.key),void 0!==n.ref&&(c=n.ref),n)r.call(n,s)&&!i.hasOwnProperty(s)&&(l[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps)void 0===l[s]&&(l[s]=n[s]);return{$$typeof:t,type:e,key:u,ref:c,props:l,_owner:o.current}}return N.Fragment=n,N.jsx=a,N.jsxs=a,N}()),E.exports);const L={},O=(e,t,n,r)=>{I(n)&&L[n]||(I(n)&&(L[n]=new Date),((e,t,n,r)=>{const o=[n,{code:t,...r||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(o,"warn","react-i18next::",!0);I(o[0])&&(o[0]=`react-i18next:: ${o[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...o):console})(e,t,n,r))},P=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},A=(e,t,n)=>{e.loadNamespaces(t,P(e,n))},R=(e,t,n,r)=>{if(I(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return A(e,n,r);n.forEach(t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)}),e.loadLanguages(t,P(e,r))},I=e=>"string"==typeof e,j=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,D={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},M=e=>D[e];let z={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(j,M)};let _;const F={type:"3rdParty",init(e){((e={})=>{z={...z,...e}})(e.options.react),(e=>{_=e})(e)}},U=l.createContext();class B{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const H=(e,t,n,r)=>e.getFixedT(t,n,r),V=(e,t={})=>{const{i18n:n}=t,{i18n:r,defaultNS:o}=l.useContext(U)||{},i=n||r||_;if(i&&!i.reportNamespaces&&(i.reportNamespaces=new B),!i){O(i,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const e=(e,t)=>{return I(t)?t:"object"==typeof(n=t)&&null!==n&&I(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e;var n},t=[e,{},!1];return t.t=e,t.i18n={},t.ready=!1,t}i.options.react?.wait&&O(i,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const a={...z,...i.options.react,...t},{useSuspense:s,keyPrefix:u}=a;let c=o||i.options?.defaultNS;c=I(c)?[c]:c||["translation"],i.reportNamespaces.addUsedNamespaces?.(c);const d=(i.isInitialized||i.initializedStoreOnce)&&c.every(e=>((e,t,n={})=>t.languages&&t.languages.length?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(t,r)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}):(O(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0))(e,i,a)),f=((e,t,n,r)=>l.useCallback(H(e,t,n,r),[e,t,n,r]))(i,t.lng||null,"fallback"===a.nsMode?c:c[0],u),p=()=>f,h=()=>H(i,t.lng||null,"fallback"===a.nsMode?c:c[0],u),[g,m]=l.useState(p);let y=c.join();t.lng&&(y=`${t.lng}${y}`);const v=((e,t)=>{const n=l.useRef();return l.useEffect(()=>{n.current=e},[e,t]),n.current})(y),b=l.useRef(!0);l.useEffect(()=>{const{bindI18n:e,bindI18nStore:n}=a;b.current=!0,d||s||(t.lng?R(i,t.lng,c,()=>{b.current&&m(h)}):A(i,c,()=>{b.current&&m(h)})),d&&v&&v!==y&&b.current&&m(h);const r=()=>{b.current&&m(h)};return e&&i?.on(e,r),n&&i?.store.on(n,r),()=>{b.current=!1,i&&e&&e?.split(" ").forEach(e=>i.off(e,r)),n&&i&&n.split(" ").forEach(e=>i.store.off(e,r))}},[i,y]),l.useEffect(()=>{b.current&&d&&m(p)},[i,u,d]);const k=[g,i,d];if(k.t=g,k.i18n=i,k.ready=d,d)return k;if(!d&&!s)return k;throw new Promise(e=>{t.lng?R(i,t.lng,c,()=>e()):A(i,c,()=>e())})};function q({i18n:e,defaultNS:t,children:n}){const r=l.useMemo(()=>({i18n:e,defaultNS:t}),[e,t]);return l.createElement(U.Provider,{value:r},n)}const W=e=>{const t=(e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()))(e);return t.charAt(0).toUpperCase()+t.slice(1)},Y=(...e)=>e.filter((e,t,n)=>Boolean(e)&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim(),K=e=>{for(const t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0};var G={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Q=l.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:a,...s},u)=>l.createElement("svg",{ref:u,...G,width:t,height:t,stroke:e,strokeWidth:r?24*Number(n)/Number(t):n,className:Y("lucide",o),...!i&&!K(s)&&{"aria-hidden":"true"},...s},[...a.map(([e,t])=>l.createElement(e,t)),...Array.isArray(i)?i:[i]])),$=(e,t)=>{const n=l.forwardRef(({className:n,...r},o)=>{return l.createElement(Q,{ref:o,iconNode:t,className:Y(`lucide-${i=W(e),i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,n),...r});var i});return n.displayName=W(e),n},Z=$("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),J=$("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),X=$("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),ee=$("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),te=$("ellipsis-vertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]]),ne=$("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]),re=$("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]),oe=$("log-in",[["path",{d:"m10 17 5-5-5-5",key:"1bsop3"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}]]),ie=$("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]]),ae=$("message-circle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]),se=$("message-square",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]),le=$("mic-off",[["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}],["path",{d:"M18.89 13.23A7.12 7.12 0 0 0 19 12v-2",key:"80xlxr"}],["path",{d:"M5 10v2a7 7 0 0 0 12 5",key:"p2k8kg"}],["path",{d:"M15 9.34V5a3 3 0 0 0-5.68-1.33",key:"1gzdoj"}],["path",{d:"M9 9v3a3 3 0 0 0 5.12 2.12",key:"r2i35w"}],["line",{x1:"12",x2:"12",y1:"19",y2:"22",key:"x3vr5v"}]]),ue=$("mic",[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]]),ce=$("moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]),de=$("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]),fe=$("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]),pe=$("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]),he=$("trash-2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]),ge=$("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),me=({onClick:e,unreadCount:t=0,widgetConfig:n})=>{const{t:r}=V(),o=n?.widget_customization?.branding?.company_name||r("widget.title");return T.jsxs("button",{type:"button",onClick:t=>{t.preventDefault(),t.stopPropagation(),e()},className:"gpc-floating-button gpc-floating-button-with-text gpc-animate-fade-in","aria-label":r("chat.title"),title:r("chat.title"),children:[T.jsxs("div",{className:"gpc-floating-content",children:[T.jsx(ae,{className:"gpc-floating-icon"}),T.jsxs("span",{className:"gpc-floating-text",children:[r("widget.questionsTo")," ",o]})]}),t>0&&T.jsx("span",{className:"gpc-notification-badge",children:t>9?"9+":t})]})},ye=()=>{const{i18n:e,t:t}=V(),n=[{code:"en",label:t("languages.english"),flag:"🇬🇧"},{code:"es",label:t("languages.spanish"),flag:"🇪🇸"},{code:"fr",label:t("languages.french"),flag:"🇫🇷"}],[r,o]=l.useState(!1),i=l.useRef(null),a=n.find(t=>t.code===e.language)||n[0];return l.useEffect(()=>{const e=e=>{i.current&&!i.current.contains(e.target)&&o(!1)};return r&&document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[r]),T.jsxs("div",{className:"gpc-language-selector",ref:i,children:[T.jsx("button",{type:"button",onClick:e=>{e.preventDefault(),e.stopPropagation(),o(!r)},className:"gpc-header-button gpc-focus-visible gpc-transition","aria-label":t("ui.languageSelector.label"),title:t("ui.languageSelector.label"),children:T.jsx(ne,{className:"gpc-icon"})}),r&&T.jsx("div",{className:"gpc-language-dropdown",children:n.map(t=>T.jsxs("button",{type:"button",onClick:n=>((t,n)=>{t.preventDefault(),t.stopPropagation(),e.changeLanguage(n),o(!1)})(n,t.code),className:"gpc-language-option "+(t.code===a.code?"gpc-language-option-active":""),children:[T.jsx("span",{className:"gpc-language-flag",children:t.flag}),T.jsx("span",{className:"gpc-language-label",children:t.label})]},t.code))})]})},ve="3.0.5",be=2592e6,ke="gpc_captcha_verified",xe="gpc_captcha_timestamp",we=["honeypot_field_1","honeypot_field_2","hp_field"],Se=({onClose:e,theme:t,onToggleTheme:n,showBranding:r=!0,widgetConfig:o=null,onToggleConversations:i,showConversations:a=!1,conversationsCount:s=0,onToggleAbout:u,showAbout:c=!1,version:d=ve,onToggleMcpLogin:f,showMcpLogin:p=!1,mcpLoggedIn:h=!1})=>{const{t:g}=V(),[m,y]=l.useState(!1),v=l.useRef(null);l.useEffect(()=>{const e=e=>{v.current&&!v.current.contains(e.target)&&y(!1)};return m&&document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[m]);const b=o?.widget_customization?.branding?.company_name||g("widget.title"),k=o?.widget_customization?.branding?.custom_title,x=o?.widget_customization?.branding?.company_logo_base64,w=k||b,S=x?.startsWith("data:")?x:x?`data:image/png;base64,${x}`:null,C=o?.widget_customization?.colors?.header_background,E=o?.widget_customization?.colors?.header_text,N={};C&&(N.backgroundColor=C),E&&(N.color=E);const L=(e,t)=>{e.preventDefault(),e.stopPropagation(),y(!1),t()};return T.jsxs("div",{className:"gpc-chat-header",style:N,children:[T.jsxs("div",{className:"gpc-header-content",children:[S&&T.jsx("div",{className:"gpc-header-logo",children:T.jsx("img",{src:S,alt:b,className:"gpc-company-logo"})}),T.jsx("div",{className:"gpc-header-text",children:T.jsx("h2",{className:"gpc-header-title",style:E?{color:E}:{},children:w})})]}),T.jsxs("div",{className:"gpc-header-actions",children:[i&&T.jsxs("button",{type:"button",onClick:e=>{e.preventDefault(),e.stopPropagation(),i()},className:"gpc-header-button gpc-focus-visible gpc-transition relative "+(a?"bg-blue-500 text-white":""),"aria-label":g("conversations.toggle","Toggle conversations"),title:g("conversations.toggle","Toggle conversations"),children:[T.jsx(se,{className:"gpc-icon",size:20}),s>0&&T.jsx("span",{className:"absolute -top-1 -right-1 bg-red-500 text-white text-xs rounded-full w-4 h-4 flex items-center justify-center",children:s>9?"9+":s})]}),T.jsx(ye,{}),T.jsxs("div",{className:"gpc-header-menu",ref:v,children:[T.jsx("button",{type:"button",onClick:e=>{e.preventDefault(),e.stopPropagation(),y(e=>!e)},className:"gpc-header-button gpc-focus-visible gpc-transition "+(m?"bg-blue-500 text-white":""),"aria-label":g("ui.menu"),title:g("ui.menu"),children:T.jsx(te,{className:"gpc-icon",size:20})}),m&&T.jsxs("div",{className:"gpc-header-dropdown",children:[T.jsxs("button",{type:"button",className:"gpc-header-dropdown-item",onClick:e=>L(e,n),children:["light"===t?T.jsx(ce,{size:16,className:"gpc-header-dropdown-icon"}):T.jsx(pe,{size:16,className:"gpc-header-dropdown-icon"}),T.jsx("span",{children:g("theme.toggle")})]}),u&&T.jsxs(T.Fragment,{children:[T.jsx("div",{className:"gpc-header-dropdown-divider"}),T.jsxs("button",{type:"button",className:"gpc-header-dropdown-item "+(c?"gpc-header-dropdown-item-active":""),onClick:e=>L(e,u),children:[T.jsx(re,{size:16,className:"gpc-header-dropdown-icon"}),T.jsx("span",{children:g("about.title")})]})]}),f&&T.jsxs(T.Fragment,{children:[T.jsx("div",{className:"gpc-header-dropdown-divider"}),T.jsxs("button",{type:"button",className:"gpc-header-dropdown-item",onClick:e=>L(e,f),children:[h?T.jsx(ie,{size:16,className:"gpc-header-dropdown-icon"}):T.jsx(oe,{size:16,className:"gpc-header-dropdown-icon"}),T.jsx("span",{children:g(h?"moodle.logout":"moodle.login")})]})]})]})]}),T.jsx("button",{type:"button",onClick:t=>{t.preventDefault(),t.stopPropagation(),e()},className:"gpc-header-button gpc-focus-visible gpc-transition","aria-label":g("chat.close"),title:g("chat.close"),children:T.jsx(J,{className:"gpc-icon"})})]})]})};function Ce(){}function Ee(){}const Ne=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Te=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Le={};function Oe(e,t){return(Le.jsx?Te:Ne).test(e)}const Pe=/[ \t\n\f\r]/g;function Ae(e){return""===e.replace(Pe,"")}class Re{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function Ie(e,t){const n={},r={};for(const o of e)Object.assign(n,o.property),Object.assign(r,o.normal);return new Re(n,r,t)}function je(e){return e.toLowerCase()}Re.prototype.normal={},Re.prototype.property={},Re.prototype.space=void 0;class De{constructor(e,t){this.attribute=t,this.property=e}}De.prototype.attribute="",De.prototype.booleanish=!1,De.prototype.boolean=!1,De.prototype.commaOrSpaceSeparated=!1,De.prototype.commaSeparated=!1,De.prototype.defined=!1,De.prototype.mustUseProperty=!1,De.prototype.number=!1,De.prototype.overloadedBoolean=!1,De.prototype.property="",De.prototype.spaceSeparated=!1,De.prototype.space=void 0;let Me=0;const ze=qe(),_e=qe(),Fe=qe(),Ue=qe(),Be=qe(),He=qe(),Ve=qe();function qe(){return 2**++Me}const We=Object.freeze(Object.defineProperty({__proto__:null,boolean:ze,booleanish:_e,commaOrSpaceSeparated:Ve,commaSeparated:He,number:Ue,overloadedBoolean:Fe,spaceSeparated:Be},Symbol.toStringTag,{value:"Module"})),Ye=Object.keys(We);class Ke extends De{constructor(e,t,n,r){let o=-1;if(super(e,t),Ge(this,"space",r),"number"==typeof n)for(;++o<Ye.length;){const e=Ye[o];Ge(this,Ye[o],(n&We[e])===We[e])}}}function Ge(e,t,n){n&&(e[t]=n)}function Qe(e){const t={},n={};for(const[r,o]of Object.entries(e.properties)){const i=new Ke(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[je(r)]=r,n[je(i.attribute)]=r}return new Re(t,n,e.space)}Ke.prototype.defined=!0;const $e=Qe({properties:{ariaActiveDescendant:null,ariaAtomic:_e,ariaAutoComplete:null,ariaBusy:_e,ariaChecked:_e,ariaColCount:Ue,ariaColIndex:Ue,ariaColSpan:Ue,ariaControls:Be,ariaCurrent:null,ariaDescribedBy:Be,ariaDetails:null,ariaDisabled:_e,ariaDropEffect:Be,ariaErrorMessage:null,ariaExpanded:_e,ariaFlowTo:Be,ariaGrabbed:_e,ariaHasPopup:null,ariaHidden:_e,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Be,ariaLevel:Ue,ariaLive:null,ariaModal:_e,ariaMultiLine:_e,ariaMultiSelectable:_e,ariaOrientation:null,ariaOwns:Be,ariaPlaceholder:null,ariaPosInSet:Ue,ariaPressed:_e,ariaReadOnly:_e,ariaRelevant:null,ariaRequired:_e,ariaRoleDescription:Be,ariaRowCount:Ue,ariaRowIndex:Ue,ariaRowSpan:Ue,ariaSelected:_e,ariaSetSize:Ue,ariaSort:null,ariaValueMax:Ue,ariaValueMin:Ue,ariaValueNow:Ue,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function Ze(e,t){return t in e?e[t]:t}function Je(e,t){return Ze(e,t.toLowerCase())}const Xe=Qe({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:He,acceptCharset:Be,accessKey:Be,action:null,allow:null,allowFullScreen:ze,allowPaymentRequest:ze,allowUserMedia:ze,alt:null,as:null,async:ze,autoCapitalize:null,autoComplete:Be,autoFocus:ze,autoPlay:ze,blocking:Be,capture:null,charSet:null,checked:ze,cite:null,className:Be,cols:Ue,colSpan:null,content:null,contentEditable:_e,controls:ze,controlsList:Be,coords:Ue|He,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ze,defer:ze,dir:null,dirName:null,disabled:ze,download:Fe,draggable:_e,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ze,formTarget:null,headers:Be,height:Ue,hidden:Fe,high:Ue,href:null,hrefLang:null,htmlFor:Be,httpEquiv:Be,id:null,imageSizes:null,imageSrcSet:null,inert:ze,inputMode:null,integrity:null,is:null,isMap:ze,itemId:null,itemProp:Be,itemRef:Be,itemScope:ze,itemType:Be,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ze,low:Ue,manifest:null,max:null,maxLength:Ue,media:null,method:null,min:null,minLength:Ue,multiple:ze,muted:ze,name:null,nonce:null,noModule:ze,noValidate:ze,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ze,optimum:Ue,pattern:null,ping:Be,placeholder:null,playsInline:ze,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ze,referrerPolicy:null,rel:Be,required:ze,reversed:ze,rows:Ue,rowSpan:Ue,sandbox:Be,scope:null,scoped:ze,seamless:ze,selected:ze,shadowRootClonable:ze,shadowRootDelegatesFocus:ze,shadowRootMode:null,shape:null,size:Ue,sizes:null,slot:null,span:Ue,spellCheck:_e,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Ue,step:null,style:null,tabIndex:Ue,target:null,title:null,translate:null,type:null,typeMustMatch:ze,useMap:null,value:_e,width:Ue,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Be,axis:null,background:null,bgColor:null,border:Ue,borderColor:null,bottomMargin:Ue,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ze,declare:ze,event:null,face:null,frame:null,frameBorder:null,hSpace:Ue,leftMargin:Ue,link:null,longDesc:null,lowSrc:null,marginHeight:Ue,marginWidth:Ue,noResize:ze,noHref:ze,noShade:ze,noWrap:ze,object:null,profile:null,prompt:null,rev:null,rightMargin:Ue,rules:null,scheme:null,scrolling:_e,standby:null,summary:null,text:null,topMargin:Ue,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ue,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ze,disableRemotePlayback:ze,prefix:null,property:null,results:Ue,security:null,unselectable:null},space:"html",transform:Je}),et=Qe({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Ve,accentHeight:Ue,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Ue,amplitude:Ue,arabicForm:null,ascent:Ue,attributeName:null,attributeType:null,azimuth:Ue,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Ue,by:null,calcMode:null,capHeight:Ue,className:Be,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Ue,diffuseConstant:Ue,direction:null,display:null,dur:null,divisor:Ue,dominantBaseline:null,download:ze,dx:null,dy:null,edgeMode:null,editable:null,elevation:Ue,enableBackground:null,end:null,event:null,exponent:Ue,externalResourcesRequired:null,fill:null,fillOpacity:Ue,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:He,g2:He,glyphName:He,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Ue,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Ue,horizOriginX:Ue,horizOriginY:Ue,id:null,ideographic:Ue,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Ue,k:Ue,k1:Ue,k2:Ue,k3:Ue,k4:Ue,kernelMatrix:Ve,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Ue,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Ue,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Ue,overlineThickness:Ue,paintOrder:null,panose1:null,path:null,pathLength:Ue,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Be,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Ue,pointsAtY:Ue,pointsAtZ:Ue,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ve,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ve,rev:Ve,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ve,requiredFeatures:Ve,requiredFonts:Ve,requiredFormats:Ve,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Ue,specularExponent:Ue,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Ue,strikethroughThickness:Ue,string:null,stroke:null,strokeDashArray:Ve,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Ue,strokeOpacity:Ue,strokeWidth:null,style:null,surfaceScale:Ue,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ve,tabIndex:Ue,tableValues:null,target:null,targetX:Ue,targetY:Ue,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ve,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Ue,underlineThickness:Ue,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Ue,values:null,vAlphabetic:Ue,vMathematical:Ue,vectorEffect:null,vHanging:Ue,vIdeographic:Ue,version:null,vertAdvY:Ue,vertOriginX:Ue,vertOriginY:Ue,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Ue,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Ze}),tt=Qe({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),nt=Qe({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Je}),rt=Qe({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),ot={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},it=/[A-Z]/g,at=/-[a-z]/g,st=/^data[-\w.:]+$/i;function lt(e){return"-"+e.toLowerCase()}function ut(e){return e.charAt(1).toUpperCase()}const ct=Ie([$e,Xe,tt,nt,rt],"html"),dt=Ie([$e,et,tt,nt,rt],"svg");var ft,pt,ht,gt={};function mt(){if(ht)return gt;ht=1;var e=gt&&gt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(gt,"__esModule",{value:!0}),gt.default=function(e,n){let r=null;if(!e||"string"!=typeof e)return r;const o=(0,t.default)(e),i="function"==typeof n;return o.forEach(e=>{if("declaration"!==e.type)return;const{property:t,value:o}=e;i?n(t,o,e):o&&(r=r||{},r[t]=o)}),r};const t=e(function(){if(pt)return ft;pt=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,s=/^\s+|\s+$/g,l="";function u(e){return e?e.replace(s,l):l}return ft=function(s,c){if("string"!=typeof s)throw new TypeError("First argument must be a string");if(!s)return[];c=c||{};var d=1,f=1;function p(e){var n=e.match(t);n&&(d+=n.length);var r=e.lastIndexOf("\n");f=~r?e.length-r:f+e.length}function h(){var e={line:d,column:f};return function(t){return t.position=new g(e),v(),t}}function g(e){this.start=e,this.end={line:d,column:f},this.source=c.source}function m(e){var t=new Error(c.source+":"+d+":"+f+": "+e);if(t.reason=e,t.filename=c.source,t.line=d,t.column=f,t.source=s,!c.silent)throw t}function y(e){var t=e.exec(s);if(t){var n=t[0];return p(n),s=s.slice(n.length),t}}function v(){y(n)}function b(e){var t;for(e=e||[];t=k();)!1!==t&&e.push(t);return e}function k(){var e=h();if("/"==s.charAt(0)&&"*"==s.charAt(1)){for(var t=2;l!=s.charAt(t)&&("*"!=s.charAt(t)||"/"!=s.charAt(t+1));)++t;if(t+=2,l===s.charAt(t-1))return m("End of comment missing");var n=s.slice(2,t-2);return f+=2,p(n),s=s.slice(t),f+=2,e({type:"comment",comment:n})}}function x(){var t=h(),n=y(r);if(n){if(k(),!y(o))return m("property missing ':'");var s=y(i),c=t({type:"declaration",property:u(n[0].replace(e,l)),value:s?u(s[0].replace(e,l)):l});return y(a),c}}return g.prototype.content=s,v(),function(){var e,t=[];for(b(t);e=x();)!1!==e&&(t.push(e),b(t));return t}()}}());return gt}var yt,vt,bt,kt={};function xt(){if(yt)return kt;yt=1,Object.defineProperty(kt,"__esModule",{value:!0}),kt.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,i=function(e,t){return t.toUpperCase()},a=function(e,t){return"".concat(t,"-")};return kt.camelCase=function(s,l){return void 0===l&&(l={}),function(t){return!t||n.test(t)||e.test(t)}(s)?s:(s=s.toLowerCase(),(s=l.reactCompat?s.replace(o,a):s.replace(r,a)).replace(t,i))},kt}const wt=t(function(){if(bt)return vt;bt=1;var e=(vt&&vt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(mt()),t=xt();function n(n,r){var o={};return n&&"string"==typeof n?((0,e.default)(n,function(e,n){e&&n&&(o[(0,t.camelCase)(e,r)]=n)}),o):o}return n.default=n,vt=n}()),St=Et("end"),Ct=Et("start");function Et(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function Nt(e){return e&&"object"==typeof e?"position"in e||"type"in e?Lt(e.position):"start"in e||"end"in e?Lt(e):"line"in e||"column"in e?Tt(e):"":""}function Tt(e){return Ot(e&&e.line)+":"+Ot(e&&e.column)}function Lt(e){return Tt(e&&e.start)+"-"+Tt(e&&e.end)}function Ot(e){return e&&"number"==typeof e?e:1}class Pt extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",o={},i=!1;if(t&&(o="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!o.cause&&e&&(i=!0,r=e.message,o.cause=e),!o.ruleId&&!o.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?o.ruleId=n:(o.source=n.slice(0,e),o.ruleId=n.slice(e+1))}if(!o.place&&o.ancestors&&o.ancestors){const e=o.ancestors[o.ancestors.length-1];e&&(o.place=e.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=a?a.line:void 0,this.name=Nt(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=i&&o.cause&&"string"==typeof o.cause.stack?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Pt.prototype.file="",Pt.prototype.name="",Pt.prototype.reason="",Pt.prototype.message="",Pt.prototype.stack="",Pt.prototype.column=void 0,Pt.prototype.line=void 0,Pt.prototype.ancestors=void 0,Pt.prototype.cause=void 0,Pt.prototype.fatal=void 0,Pt.prototype.place=void 0,Pt.prototype.ruleId=void 0,Pt.prototype.source=void 0;const At={}.hasOwnProperty,Rt=new Map,It=/[A-Z]/g,jt=new Set(["table","tbody","thead","tfoot","tr"]),Dt=new Set(["td","th"]),Mt="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function zt(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if("function"!=typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=function(e,t){return n;function n(n,r,o,i){const a=Array.isArray(o.children),s=Ct(n);return t(r,o,i,a,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}(n,t.jsxDEV)}else{if("function"!=typeof t.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");r=function(e,t,n){return r;function r(e,r,o,i){const a=Array.isArray(o.children)?n:t;return i?a(r,o,i):a(r,o)}}(0,t.jsx,t.jsxs)}const o={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?dt:ct,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},i=_t(o,e,void 0);return i&&"string"!=typeof i?i:o.create(e,o.Fragment,{children:i||void 0},void 0)}function _t(e,t,n){return"element"===t.type?function(e,t,n){const r=e.schema;let o=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(o=dt,e.schema=o);e.ancestors.push(t);const i=Vt(e,t.tagName,!1),a=function(e,t){const n={};let r,o;for(o in t.properties)if("children"!==o&&At.call(t.properties,o)){const i=Ht(e,o,t.properties[o]);if(i){const[o,a]=i;e.tableCellAlignToStyle&&"align"===o&&"string"==typeof a&&Dt.has(t.tagName)?r=a:n[o]=a}}if(r){(n.style||(n.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=r}return n}(e,t);let s=Bt(e,t);jt.has(t.tagName)&&(s=s.filter(function(e){return"string"!=typeof e||!("object"==typeof(t=e)?"text"===t.type&&Ae(t.value):Ae(t));var t}));return Ft(e,a,i,t),Ut(a,s),e.ancestors.pop(),e.schema=r,e.create(t,i,a,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}qt(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){const r=e.schema;let o=r;"svg"===t.name&&"html"===r.space&&(o=dt,e.schema=o);e.ancestors.push(t);const i=null===t.name?e.Fragment:Vt(e,t.name,!0),a=function(e,t){const n={};for(const r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){const t=r.data.estree.body[0];Ce(t.type);const o=t.expression;Ce(o.type);const i=o.properties[0];Ce(i.type),Object.assign(n,e.evaluater.evaluateExpression(i.argument))}else qt(e,t.position);else{const o=r.name;let i;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){const t=r.value.data.estree.body[0];Ce(t.type),i=e.evaluater.evaluateExpression(t.expression)}else qt(e,t.position);else i=null===r.value||r.value;n[o]=i}return n}(e,t),s=Bt(e,t);return Ft(e,a,i,t),Ut(a,s),e.ancestors.pop(),e.schema=r,e.create(t,i,a,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);qt(e,t.position)}(e,t):"root"===t.type?function(e,t,n){const r={};return Ut(r,Bt(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function Ft(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Ut(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Bt(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:Rt;for(;++r<t.children.length;){const i=t.children[r];let a;if(e.passKeys){const e="element"===i.type?i.tagName:"mdxJsxFlowElement"===i.type||"mdxJsxTextElement"===i.type?i.name:void 0;if(e){const t=o.get(e)||0;a=e+"-"+t,o.set(e,t+1)}}const s=_t(e,i,a);void 0!==s&&n.push(s)}return n}function Ht(e,t,n){const r=function(e,t){const n=je(t);let r=t,o=De;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&st.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(at,ut);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!at.test(e)){let n=e.replace(it,lt);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}o=Ke}return new o(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?function(e){const t={};return(""===e[e.length-1]?[...e,""]:e).join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()}(n):n.join(" ").trim()),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return wt(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const t=n,r=new Pt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:t,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=Mt+"#cannot-parse-style-attribute",r}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){const t={};let n;for(n in e)At.call(e,n)&&(t[Wt(n)]=e[n]);return t}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?ot[r.property]||r.property:r.attribute,n]}}function Vt(e,t,n){let r;if(n)if(t.includes(".")){const e=t.split(".");let n,o=-1;for(;++o<e.length;){const t=Oe(e[o])?{type:"Identifier",name:e[o]}:{type:"Literal",value:e[o]};n=n?{type:"MemberExpression",object:n,property:t,computed:Boolean(o&&"Literal"===t.type),optional:!1}:t}r=n}else r=Oe(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){const t=r.value;return At.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);qt(e)}function qt(e,t){const n=new Pt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=Mt+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Wt(e){let t=e.replace(It,Yt);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function Yt(e){return"-"+e.toLowerCase()}const Kt={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Gt={};function Qt(e,t){return $t(e,"boolean"!=typeof Gt.includeImageAlt||Gt.includeImageAlt,"boolean"!=typeof Gt.includeHtml||Gt.includeHtml)}function $t(e,t,n){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Zt(e.children,t,n)}return Array.isArray(e)?Zt(e,t,n):""}function Zt(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=$t(e[o],t,n);return r.join("")}const Jt=document.createElement("i");function Xt(e){const t="&"+e+";";Jt.innerHTML=t;const n=Jt.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&(n!==t&&n)}function en(e,t,n,r){const o=e.length;let i,a=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)i=Array.from(r),i.unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);a<r.length;)i=r.slice(a,a+1e4),i.unshift(t,0),e.splice(...i),a+=1e4,t+=1e4}function tn(e,t){return e.length>0?(en(e,e.length,0,t),e):t}const nn={}.hasOwnProperty;function rn(e){const t={};let n=-1;for(;++n<e.length;)on(t,e[n]);return t}function on(e,t){let n;for(n in t){const r=(nn.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let i;if(o)for(i in o){nn.call(r,i)||(r[i]=[]);const e=o[i];an(r[i],Array.isArray(e)?e:e?[e]:[])}}}function an(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);en(e,0,0,r)}function sn(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||65534==(65535&n)||n>1114111?"�":String.fromCodePoint(n)}function ln(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const un=xn(/[A-Za-z]/),cn=xn(/[\dA-Za-z]/),dn=xn(/[#-'*+\--9=?A-Z^-~]/);function fn(e){return null!==e&&(e<32||127===e)}const pn=xn(/\d/),hn=xn(/[\dA-Fa-f]/),gn=xn(/[!-/:-@[-`{-~]/);function mn(e){return null!==e&&e<-2}function yn(e){return null!==e&&(e<0||32===e)}function vn(e){return-2===e||-1===e||32===e}const bn=xn(new RegExp("\\p{P}|\\p{S}","u")),kn=xn(/\s/);function xn(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function wn(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const i=e.charCodeAt(n);let a="";if(37===i&&cn(e.charCodeAt(n+1))&&cn(e.charCodeAt(n+2)))o=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(a=String.fromCharCode(i));else if(i>55295&&i<57344){const t=e.charCodeAt(n+1);i<56320&&t>56319&&t<57344?(a=String.fromCharCode(i,t),o=1):a="�"}else a=String.fromCharCode(i);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+o+1,a=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function Sn(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let i=0;return function(r){if(vn(r))return e.enter(n),a(r);return t(r)};function a(r){return vn(r)&&i++<o?(e.consume(r),a):(e.exit(n),t(r))}}const Cn={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,function(n){if(null===n)return void e.consume(n);return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Sn(e,t,"linePrefix")},function(t){return e.enter("paragraph"),r(t)});let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):mn(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),o)}}};const En={tokenize:function(e){const t=this,n=[];let r,o,i,a=0;return s;function s(r){if(a<n.length){const o=n[a];return t.containerState=o[1],e.attempt(o[0].continuation,l,u)(r)}return u(r)}function l(e){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&v();const n=t.events.length;let o,i=n;for(;i--;)if("exit"===t.events[i][0]&&"chunkFlow"===t.events[i][1].type){o=t.events[i][1].end;break}y(a);let s=n;for(;s<t.events.length;)t.events[s][1].end={...o},s++;return en(t.events,i+1,0,t.events.slice(n)),t.events.length=s,u(e)}return s(e)}function u(o){if(a===n.length){if(!r)return f(o);if(r.currentConstruct&&r.currentConstruct.concrete)return h(o);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Nn,c,d)(o)}function c(e){return r&&v(),y(a),f(e)}function d(e){return t.parser.lazy[t.now().line]=a!==n.length,i=t.now().offset,h(e)}function f(n){return t.containerState={},e.attempt(Nn,p,h)(n)}function p(e){return a++,n.push([t.currentConstruct,t.containerState]),f(e)}function h(n){return null===n?(r&&v(),y(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:o}),g(n))}function g(n){return null===n?(m(e.exit("chunkFlow"),!0),y(0),void e.consume(n)):mn(n)?(e.consume(n),m(e.exit("chunkFlow")),a=0,t.interrupt=void 0,s):(e.consume(n),g)}function m(e,n){const s=t.sliceStream(e);if(n&&s.push(null),e.previous=o,o&&(o.next=e),o=e,r.defineSkip(e.start),r.write(s),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<i&&(!r.events[e][1].end||r.events[e][1].end.offset>i))return;const n=t.events.length;let o,s,l=n;for(;l--;)if("exit"===t.events[l][0]&&"chunkFlow"===t.events[l][1].type){if(o){s=t.events[l][1].end;break}o=!0}for(y(a),e=n;e<t.events.length;)t.events[e][1].end={...s},e++;en(t.events,l+1,0,t.events.slice(n)),t.events.length=e}}function y(r){let o=n.length;for(;o-- >r;){const r=n[o];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}},Nn={tokenize:function(e,t,n){return Sn(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function Tn(e){return null===e||yn(e)||kn(e)?1:bn(e)?2:void 0}function Ln(e,t,n){const r=[];let o=-1;for(;++o<e.length;){const i=e[o].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const On={name:"attention",resolveAll:function(e,t){let n,r,o,i,a,s,l,u,c=-1;for(;++c<e.length;)if("enter"===e[c][0]&&"attentionSequence"===e[c][1].type&&e[c][1]._close)for(n=c;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[c][1]).charCodeAt(0)){if((e[n][1]._close||e[c][1]._open)&&(e[c][1].end.offset-e[c][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[c][1].end.offset-e[c][1].start.offset)%3))continue;s=e[n][1].end.offset-e[n][1].start.offset>1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;const d={...e[n][1].end},f={...e[c][1].start};Pn(d,-s),Pn(f,s),i={type:s>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},a={type:s>1?"strongSequence":"emphasisSequence",start:{...e[c][1].start},end:f},o={type:s>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[c][1].start}},r={type:s>1?"strong":"emphasis",start:{...i.start},end:{...a.end}},e[n][1].end={...i.start},e[c][1].start={...a.end},l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=tn(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=tn(l,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",o,t]]),l=tn(l,Ln(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),l=tn(l,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(u=2,l=tn(l,[["enter",e[c][1],t],["exit",e[c][1],t]])):u=0,en(e,n-1,c-n+3,l),c=n+l.length-u-2;break}c=-1;for(;++c<e.length;)"attentionSequence"===e[c][1].type&&(e[c][1].type="data");return e},tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=Tn(r);let i;return function(t){return i=t,e.enter("attentionSequence"),a(t)};function a(s){if(s===i)return e.consume(s),a;const l=e.exit("attentionSequence"),u=Tn(s),c=!u||2===u&&o||n.includes(s),d=!o||2===o&&u||n.includes(r);return l._open=Boolean(42===i?c:c&&(o||!d)),l._close=Boolean(42===i?d:d&&(u||!c)),t(s)}}};function Pn(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const An={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o};function o(t){return un(t)?(e.consume(t),i):64===t?n(t):l(t)}function i(e){return 43===e||45===e||46===e||cn(e)?(r=1,a(e)):l(e)}function a(t){return 58===t?(e.consume(t),r=0,s):(43===t||45===t||46===t||cn(t))&&r++<32?(e.consume(t),a):(r=0,l(t))}function s(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||fn(r)?n(r):(e.consume(r),s)}function l(t){return 64===t?(e.consume(t),u):dn(t)?(e.consume(t),l):n(t)}function u(e){return cn(e)?c(e):n(e)}function c(n){return 46===n?(e.consume(n),r=0,u):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):d(n)}function d(t){if((45===t||cn(t))&&r++<63){const n=45===t?d:c;return e.consume(t),n}return n(t)}}};const Rn={partial:!0,tokenize:function(e,t,n){return function(t){return vn(t)?Sn(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||mn(e)?t(e):n(e)}}};const In={continuation:{tokenize:function(e,t,n){const r=this;return function(t){if(vn(t))return Sn(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return o(t)};function o(r){return e.attempt(In,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),o}return n(t)};function o(n){return vn(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};const jn={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return gn(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}};const Dn={name:"characterReference",tokenize:function(e,t,n){const r=this;let o,i,a=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),o=31,i=cn,u(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,i=hn,u):(e.enter("characterReferenceValue"),o=7,i=pn,u(t))}function u(s){if(59===s&&a){const o=e.exit("characterReferenceValue");return i!==cn||Xt(r.sliceSerialize(o))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return i(s)&&a++<o?(e.consume(s),u):n(s)}}};const Mn={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(null===t)return n(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},zn={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){const r=this,o={partial:!0,tokenize:function(e,t,n){let o=0;return a;function a(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l}function l(t){return e.enter("codeFencedFence"),vn(t)?Sn(e,u,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):u(t)}function u(t){return t===i?(e.enter("codeFencedFenceSequence"),c(t)):n(t)}function c(t){return t===i?(o++,e.consume(t),c):o>=s?(e.exit("codeFencedFenceSequence"),vn(t)?Sn(e,d,"whitespace")(t):d(t)):n(t)}function d(r){return null===r||mn(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}};let i,a=0,s=0;return function(t){return function(t){const n=r.events[r.events.length-1];return a=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,i=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(t)}(t)};function l(t){return t===i?(s++,e.consume(t),l):s<3?n(t):(e.exit("codeFencedFenceSequence"),vn(t)?Sn(e,u,"whitespace")(t):u(t))}function u(n){return null===n||mn(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(Mn,p,v)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),c(n))}function c(t){return null===t||mn(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),u(t)):vn(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Sn(e,d,"whitespace")(t)):96===t&&t===i?n(t):(e.consume(t),c)}function d(t){return null===t||mn(t)?u(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),f(t))}function f(t){return null===t||mn(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),u(t)):96===t&&t===i?n(t):(e.consume(t),f)}function p(t){return e.attempt(o,v,h)(t)}function h(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),g}function g(t){return a>0&&vn(t)?Sn(e,m,"linePrefix",a+1)(t):m(t)}function m(t){return null===t||mn(t)?e.check(Mn,p,v)(t):(e.enter("codeFlowValue"),y(t))}function y(t){return null===t||mn(t)?(e.exit("codeFlowValue"),m(t)):(e.consume(t),y)}function v(n){return e.exit("codeFenced"),t(n)}}};const _n={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),Sn(e,o,"linePrefix",5)(t)};function o(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?i(e):n(e)}function i(t){return null===t?s(t):mn(t)?e.attempt(Fn,i,s)(t):(e.enter("codeFlowValue"),a(t))}function a(t){return null===t||mn(t)?(e.exit("codeFlowValue"),i(t)):(e.consume(t),a)}function s(n){return e.exit("codeIndented"),t(n)}}},Fn={partial:!0,tokenize:function(e,t,n){const r=this;return o;function o(t){return r.parser.lazy[r.now().line]?n(t):mn(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):Sn(e,i,"linePrefix",5)(t)}function i(e){const i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(e):mn(e)?o(e):n(e)}}};const Un={name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,o=3;if(!("lineEnding"!==e[o][1].type&&"space"!==e[o][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=o;++t<r;)if("codeTextData"===e[t][1].type){e[o][1].type="codeTextPadding",e[r][1].type="codeTextPadding",o+=2,r-=2;break}t=o-1,r++;for(;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,o,i=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),a(t)};function a(t){return 96===t?(e.consume(t),i++,a):(e.exit("codeTextSequence"),s(t))}function s(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),s):96===t?(o=e.enter("codeTextSequence"),r=0,u(t)):mn(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s):(e.enter("codeTextData"),l(t))}function l(t){return null===t||32===t||96===t||mn(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),l)}function u(n){return 96===n?(e.consume(n),r++,u):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(o.type="codeTextData",l(n))}}};class Bn{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){const n=null==t?Number.POSITIVE_INFINITY:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){const r=t||0;this.setCursor(Math.trunc(e));const o=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&Hn(this.left,n),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),Hn(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),Hn(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e<this.left.length){const t=this.left.splice(e,Number.POSITIVE_INFINITY);Hn(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);Hn(this.left,t.reverse())}}}function Hn(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Vn(e){const t={};let n,r,o,i,a,s,l,u=-1;const c=new Bn(e);for(;++u<c.length;){for(;u in t;)u=t[u];if(n=c.get(u),u&&"chunkFlow"===n[1].type&&"listItemPrefix"===c.get(u-1)[1].type&&(s=n[1]._tokenizer.events,o=0,o<s.length&&"lineEndingBlank"===s[o][1].type&&(o+=2),o<s.length&&"content"===s[o][1].type))for(;++o<s.length&&"content"!==s[o][1].type;)"chunkText"===s[o][1].type&&(s[o][1]._isInFirstContentOfListItem=!0,o++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,qn(c,u)),u=t[u],l=!0);else if(n[1]._container){for(o=u,r=void 0;o--;)if(i=c.get(o),"lineEnding"===i[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(r&&(c.get(r)[1].type="lineEndingBlank"),i[1].type="lineEnding",r=o);else if("linePrefix"!==i[1].type&&"listItemIndent"!==i[1].type)break;r&&(n[1].end={...c.get(r)[1].start},a=c.slice(r,u),a.unshift(n),c.splice(r,u-r+1,a))}}return en(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!l}function qn(e,t){const n=e.get(t)[1],r=e.get(t)[2];let o=t-1;const i=[];let a=n._tokenizer;a||(a=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));const s=a.events,l=[],u={};let c,d,f=-1,p=n,h=0,g=0;const m=[g];for(;p;){for(;e.get(++o)[1]!==p;);i.push(o),p._tokenizer||(c=r.sliceStream(p),p.next||c.push(null),d&&a.defineSkip(p.start),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(c),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<s.length;)"exit"===s[f][0]&&"enter"===s[f-1][0]&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(g=f+1,m.push(g),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(a.events=[],p?(p._tokenizer=void 0,p.previous=void 0):m.pop(),f=m.length;f--;){const t=s.slice(m[f],m[f+1]),n=i.pop();l.push([n,n+t.length-1]),e.splice(n,2,t)}for(l.reverse(),f=-1;++f<l.length;)u[h+l[f][0]]=h+l[f][1],h+=l[f][1]-l[f][0]-1;return u}const Wn={resolve:function(e){return Vn(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?o(t):mn(t)?e.check(Yn,i,o)(t):(e.consume(t),r)}function o(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function i(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},Yn={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Sn(e,o,"linePrefix")};function o(o){if(null===o||mn(o))return n(o);const i=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}};function Kn(e,t,n,r,o,i,a,s,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return function(t){if(60===t)return e.enter(r),e.enter(o),e.enter(i),e.consume(t),e.exit(i),d;if(null===t||32===t||41===t||fn(t))return n(t);return e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),h(t)};function d(n){return 62===n?(e.enter(i),e.consume(n),e.exit(i),e.exit(o),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),f(n))}function f(t){return 62===t?(e.exit("chunkString"),e.exit(s),d(t)):null===t||60===t||mn(t)?n(t):(e.consume(t),92===t?p:f)}function p(t){return 60===t||62===t||92===t?(e.consume(t),f):f(t)}function h(o){return c||null!==o&&41!==o&&!yn(o)?c<u&&40===o?(e.consume(o),c++,h):41===o?(e.consume(o),c--,h):null===o||32===o||40===o||fn(o)?n(o):(e.consume(o),92===o?g:h):(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(o))}function g(t){return 40===t||41===t||92===t?(e.consume(t),h):h(t)}}function Gn(e,t,n,r,o,i){const a=this;let s,l=0;return function(t){return e.enter(r),e.enter(o),e.consume(t),e.exit(o),e.enter(i),u};function u(d){return l>999||null===d||91===d||93===d&&!s||94===d&&!l&&"_hiddenFootnoteSupport"in a.parser.constructs?n(d):93===d?(e.exit(i),e.enter(o),e.consume(d),e.exit(o),e.exit(r),t):mn(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(t){return null===t||91===t||93===t||mn(t)||l++>999?(e.exit("chunkString"),u(t)):(e.consume(t),s||(s=!vn(t)),92===t?d:c)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,c):c(t)}}function Qn(e,t,n,r,o,i){let a;return function(t){if(34===t||39===t||40===t)return e.enter(r),e.enter(o),e.consume(t),e.exit(o),a=40===t?41:t,s;return n(t)};function s(n){return n===a?(e.enter(o),e.consume(n),e.exit(o),e.exit(r),t):(e.enter(i),l(n))}function l(t){return t===a?(e.exit(i),s(a)):null===t?n(t):mn(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),Sn(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===a||null===t||mn(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?c:u)}function c(t){return t===a||92===t?(e.consume(t),u):u(t)}}function $n(e,t){let n;return function r(o){if(mn(o))return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r;if(vn(o))return Sn(e,r,n?"linePrefix":"lineSuffix")(o);return t(o)}}const Zn={name:"definition",tokenize:function(e,t,n){const r=this;let o;return function(t){return e.enter("definition"),function(t){return Gn.call(r,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function i(t){return o=ln(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a):n(t)}function a(t){return yn(t)?$n(e,s)(t):s(t)}function s(t){return Kn(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(Jn,u,u)(t)}function u(t){return vn(t)?Sn(e,c,"whitespace")(t):c(t)}function c(i){return null===i||mn(i)?(e.exit("definition"),r.parser.defined.push(o),t(i)):n(i)}}},Jn={partial:!0,tokenize:function(e,t,n){return function(t){return yn(t)?$n(e,r)(t):n(t)};function r(t){return Qn(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function o(t){return vn(t)?Sn(e,i,"whitespace")(t):i(t)}function i(e){return null===e||mn(e)?t(e):n(e)}}};const Xn={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return mn(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}};const er={name:"headingAtx",resolve:function(e,t){let n,r,o=e.length-2,i=3;"whitespace"===e[i][1].type&&(i+=2);o-2>i&&"whitespace"===e[o][1].type&&(o-=2);"atxHeadingSequence"===e[o][1].type&&(i===o-1||o-4>i&&"whitespace"===e[o-2][1].type)&&(o-=i+1===o?2:4);o>i&&(n={type:"atxHeadingText",start:e[i][1].start,end:e[o][1].end},r={type:"chunkText",start:e[i][1].start,end:e[o][1].end,contentType:"text"},en(e,i,o-i+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]));return e},tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),o(t)}(t)};function o(t){return 35===t&&r++<6?(e.consume(t),o):null===t||yn(t)?(e.exit("atxHeadingSequence"),i(t)):n(t)}function i(n){return 35===n?(e.enter("atxHeadingSequence"),a(n)):null===n||mn(n)?(e.exit("atxHeading"),t(n)):vn(n)?Sn(e,i,"whitespace")(n):(e.enter("atxHeadingText"),s(n))}function a(t){return 35===t?(e.consume(t),a):(e.exit("atxHeadingSequence"),i(t))}function s(t){return null===t||35===t||yn(t)?(e.exit("atxHeadingText"),i(t)):(e.consume(t),s)}}};const tr=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],nr=["pre","script","style","textarea"],rr={concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},tokenize:function(e,t,n){const r=this;let o,i,a,s,l;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),u}(t)};function u(s){return 33===s?(e.consume(s),c):47===s?(e.consume(s),i=!0,p):63===s?(e.consume(s),o=3,r.interrupt?t:j):un(s)?(e.consume(s),a=String.fromCharCode(s),h):n(s)}function c(i){return 45===i?(e.consume(i),o=2,d):91===i?(e.consume(i),o=5,s=0,f):un(i)?(e.consume(i),o=4,r.interrupt?t:j):n(i)}function d(o){return 45===o?(e.consume(o),r.interrupt?t:j):n(o)}function f(o){const i="CDATA[";return o===i.charCodeAt(s++)?(e.consume(o),6===s?r.interrupt?t:N:f):n(o)}function p(t){return un(t)?(e.consume(t),a=String.fromCharCode(t),h):n(t)}function h(s){if(null===s||47===s||62===s||yn(s)){const l=47===s,u=a.toLowerCase();return l||i||!nr.includes(u)?tr.includes(a.toLowerCase())?(o=6,l?(e.consume(s),g):r.interrupt?t(s):N(s)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):i?m(s):y(s)):(o=1,r.interrupt?t(s):N(s))}return 45===s||cn(s)?(e.consume(s),a+=String.fromCharCode(s),h):n(s)}function g(o){return 62===o?(e.consume(o),r.interrupt?t:N):n(o)}function m(t){return vn(t)?(e.consume(t),m):C(t)}function y(t){return 47===t?(e.consume(t),C):58===t||95===t||un(t)?(e.consume(t),v):vn(t)?(e.consume(t),y):C(t)}function v(t){return 45===t||46===t||58===t||95===t||cn(t)?(e.consume(t),v):b(t)}function b(t){return 61===t?(e.consume(t),k):vn(t)?(e.consume(t),b):y(t)}function k(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,x):vn(t)?(e.consume(t),k):w(t)}function x(t){return t===l?(e.consume(t),l=null,S):null===t||mn(t)?n(t):(e.consume(t),x)}function w(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||yn(t)?b(t):(e.consume(t),w)}function S(e){return 47===e||62===e||vn(e)?y(e):n(e)}function C(t){return 62===t?(e.consume(t),E):n(t)}function E(t){return null===t||mn(t)?N(t):vn(t)?(e.consume(t),E):n(t)}function N(t){return 45===t&&2===o?(e.consume(t),P):60===t&&1===o?(e.consume(t),A):62===t&&4===o?(e.consume(t),D):63===t&&3===o?(e.consume(t),j):93===t&&5===o?(e.consume(t),I):!mn(t)||6!==o&&7!==o?null===t||mn(t)?(e.exit("htmlFlowData"),T(t)):(e.consume(t),N):(e.exit("htmlFlowData"),e.check(or,M,T)(t))}function T(t){return e.check(ir,L,M)(t)}function L(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),O}function O(t){return null===t||mn(t)?T(t):(e.enter("htmlFlowData"),N(t))}function P(t){return 45===t?(e.consume(t),j):N(t)}function A(t){return 47===t?(e.consume(t),a="",R):N(t)}function R(t){if(62===t){const n=a.toLowerCase();return nr.includes(n)?(e.consume(t),D):N(t)}return un(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),R):N(t)}function I(t){return 93===t?(e.consume(t),j):N(t)}function j(t){return 62===t?(e.consume(t),D):45===t&&2===o?(e.consume(t),j):N(t)}function D(t){return null===t||mn(t)?(e.exit("htmlFlowData"),M(t)):(e.consume(t),D)}function M(n){return e.exit("htmlFlow"),t(n)}}},or={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(Rn,t,n)}}},ir={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(mn(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o;return n(t)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}};const ar={name:"htmlText",tokenize:function(e,t,n){const r=this;let o,i,a;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),k):63===t?(e.consume(t),v):un(t)?(e.consume(t),S):n(t)}function l(t){return 45===t?(e.consume(t),u):91===t?(e.consume(t),i=0,p):un(t)?(e.consume(t),y):n(t)}function u(t){return 45===t?(e.consume(t),f):n(t)}function c(t){return null===t?n(t):45===t?(e.consume(t),d):mn(t)?(a=c,R(t)):(e.consume(t),c)}function d(t){return 45===t?(e.consume(t),f):c(t)}function f(e){return 62===e?A(e):45===e?d(e):c(e)}function p(t){const r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),6===i?h:p):n(t)}function h(t){return null===t?n(t):93===t?(e.consume(t),g):mn(t)?(a=h,R(t)):(e.consume(t),h)}function g(t){return 93===t?(e.consume(t),m):h(t)}function m(t){return 62===t?A(t):93===t?(e.consume(t),m):h(t)}function y(t){return null===t||62===t?A(t):mn(t)?(a=y,R(t)):(e.consume(t),y)}function v(t){return null===t?n(t):63===t?(e.consume(t),b):mn(t)?(a=v,R(t)):(e.consume(t),v)}function b(e){return 62===e?A(e):v(e)}function k(t){return un(t)?(e.consume(t),x):n(t)}function x(t){return 45===t||cn(t)?(e.consume(t),x):w(t)}function w(t){return mn(t)?(a=w,R(t)):vn(t)?(e.consume(t),w):A(t)}function S(t){return 45===t||cn(t)?(e.consume(t),S):47===t||62===t||yn(t)?C(t):n(t)}function C(t){return 47===t?(e.consume(t),A):58===t||95===t||un(t)?(e.consume(t),E):mn(t)?(a=C,R(t)):vn(t)?(e.consume(t),C):A(t)}function E(t){return 45===t||46===t||58===t||95===t||cn(t)?(e.consume(t),E):N(t)}function N(t){return 61===t?(e.consume(t),T):mn(t)?(a=N,R(t)):vn(t)?(e.consume(t),N):C(t)}function T(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),o=t,L):mn(t)?(a=T,R(t)):vn(t)?(e.consume(t),T):(e.consume(t),O)}function L(t){return t===o?(e.consume(t),o=void 0,P):null===t?n(t):mn(t)?(a=L,R(t)):(e.consume(t),L)}function O(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||yn(t)?C(t):(e.consume(t),O)}function P(e){return 47===e||62===e||yn(e)?C(e):n(e)}function A(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function R(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),I}function I(t){return vn(t)?Sn(e,j,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):j(t)}function j(t){return e.enter("htmlTextData"),a(t)}}};const sr={name:"labelEnd",resolveAll:function(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){const e="labelImage"===r.type?4:2;r.type="data",t+=e}}e.length!==n.length&&en(e,0,e.length,n);return e},resolveTo:function(e,t){let n,r,o,i,a=e.length,s=0;for(;a--;)if(n=e[a][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[a][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(o){if("enter"===e[a][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=a,"labelLink"!==n.type)){s=2;break}}else"labelEnd"===n.type&&(o=a);const l={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[r][1].start},end:{...e[o][1].end}},c={type:"labelText",start:{...e[r+s+2][1].end},end:{...e[o-2][1].start}};return i=[["enter",l,t],["enter",u,t]],i=tn(i,e.slice(r+1,r+s+3)),i=tn(i,[["enter",c,t]]),i=tn(i,Ln(t.parser.constructs.insideSpan.null,e.slice(r+s+4,o-3),t)),i=tn(i,[["exit",c,t],e[o-2],e[o-1],["exit",u,t]]),i=tn(i,e.slice(o+1)),i=tn(i,[["exit",l,t]]),en(e,r,e.length,i),e},tokenize:function(e,t,n){const r=this;let o,i,a=r.events.length;for(;a--;)if(("labelImage"===r.events[a][1].type||"labelLink"===r.events[a][1].type)&&!r.events[a][1]._balanced){o=r.events[a][1];break}return function(t){if(!o)return n(t);if(o._inactive)return c(t);return i=r.parser.defined.includes(ln(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s};function s(t){return 40===t?e.attempt(lr,u,i?u:c)(t):91===t?e.attempt(ur,u,i?l:c)(t):i?u(t):c(t)}function l(t){return e.attempt(cr,u,c)(t)}function u(e){return t(e)}function c(e){return o._balanced=!0,n(e)}}},lr={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return yn(t)?$n(e,o)(t):o(t)}function o(t){return 41===t?u(t):Kn(e,i,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function i(t){return yn(t)?$n(e,s)(t):u(t)}function a(e){return n(e)}function s(t){return 34===t||39===t||40===t?Qn(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):u(t)}function l(t){return yn(t)?$n(e,u)(t):u(t)}function u(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},ur={tokenize:function(e,t,n){const r=this;return function(t){return Gn.call(r,e,o,i,"reference","referenceMarker","referenceString")(t)};function o(e){return r.parser.defined.includes(ln(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function i(e){return n(e)}}},cr={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}};const dr={name:"labelStartImage",resolveAll:sr.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),o};function o(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),i):n(t)}function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};const fr={name:"labelStartLink",resolveAll:sr.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),o};function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};const pr={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Sn(e,t,"linePrefix")}}};const hr={name:"thematicBreak",tokenize:function(e,t,n){let r,o=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,i(e)}(t)};function i(i){return i===r?(e.enter("thematicBreakSequence"),a(i)):o>=3&&(null===i||mn(i))?(e.exit("thematicBreak"),t(i)):n(i)}function a(t){return t===r?(e.consume(t),o++,a):(e.exit("thematicBreakSequence"),vn(t)?Sn(e,i,"whitespace")(t):i(t))}}};const gr={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Rn,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Sn(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){if(r.containerState.furtherBlankLines||!vn(n))return r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n);return r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(yr,t,o)(n)});function o(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,Sn(e,e.attempt(gr,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){const r=this,o=r.events[r.events.length-1];let i=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,a=0;return function(t){const o=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===o?!r.containerState.marker||t===r.containerState.marker:pn(t)){if(r.containerState.type||(r.containerState.type=o,e.enter(o,{_container:!0})),"listUnordered"===o)return e.enter("listItemPrefix"),42===t||45===t?e.check(hr,n,l)(t):l(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(t)}return n(t)};function s(t){return pn(t)&&++a<10?(e.consume(t),s):(!r.interrupt||a<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),l(t)):n(t)}function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(Rn,r.interrupt?n:u,e.attempt(mr,d,c))}function u(e){return r.containerState.initialBlankLine=!0,i++,d(e)}function c(t){return vn(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):n(t)}function d(n){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},mr={partial:!0,tokenize:function(e,t,n){const r=this;return Sn(e,function(e){const o=r.events[r.events.length-1];return!vn(e)&&o&&"listItemPrefixWhitespace"===o[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},yr={partial:!0,tokenize:function(e,t,n){const r=this;return Sn(e,function(e){const o=r.events[r.events.length-1];return o&&"listItemIndent"===o[1].type&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}};const vr={name:"setextUnderline",resolveTo:function(e,t){let n,r,o,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){n=i;break}"paragraph"===e[i][1].type&&(r=i)}else"content"===e[i][1].type&&e.splice(i,1),o||"definition"!==e[i][1].type||(o=i);const a={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",a,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end={...e[o][1].end}):e[n][1]=a;return e.push(["exit",a,t]),e},tokenize:function(e,t,n){const r=this;let o;return function(t){let a,s=r.events.length;for(;s--;)if("lineEnding"!==r.events[s][1].type&&"linePrefix"!==r.events[s][1].type&&"content"!==r.events[s][1].type){a="paragraph"===r.events[s][1].type;break}if(!r.parser.lazy[r.now().line]&&(r.interrupt||a))return e.enter("setextHeadingLine"),o=t,function(t){return e.enter("setextHeadingLineSequence"),i(t)}(t);return n(t)};function i(t){return t===o?(e.consume(t),i):(e.exit("setextHeadingLineSequence"),vn(t)?Sn(e,a,"lineSuffix")(t):a(t))}function a(r){return null===r||mn(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}};const br={tokenize:function(e){const t=this,n=e.attempt(Rn,function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n},e.attempt(this.parser.constructs.flowInitial,r,Sn(e,e.attempt(this.parser.constructs.flow,r,e.attempt(Wn,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}};const kr={resolveAll:Cr()},xr=Sr("string"),wr=Sr("text");function Sr(e){return{resolveAll:Cr("text"===e?Er:void 0),tokenize:function(t){const n=this,r=this.parser.constructs[e],o=t.attempt(r,i,a);return i;function i(e){return l(e)?o(e):a(e)}function a(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return l(e)?(t.exit("data"),o(e)):(t.consume(e),s)}function l(e){if(null===e)return!0;const t=r[e];let o=-1;if(t)for(;++o<t.length;){const e=t[o];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function Cr(e){return function(t,n){let r,o=-1;for(;++o<=t.length;)void 0===r?t[o]&&"data"===t[o][1].type&&(r=o,o++):t[o]&&"data"===t[o][1].type||(o!==r+2&&(t[r][1].end=t[o-1][1].end,t.splice(r+2,o-r-2),o=r+2),r=void 0);return e?e(t,n):t}}function Er(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],o=t.sliceStream(r);let i,a=o.length,s=-1,l=0;for(;a--;){const e=o[a];if("string"==typeof e){for(s=e.length;32===e.charCodeAt(s-1);)l++,s--;if(s)break;s=-1}else if(-2===e)i=!0,l++;else if(-1!==e){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){const o={type:n===e.length||i||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?s:r.start._bufferIndex+s,_index:r.start._index+a,line:r.end.line,column:r.end.column-l,offset:r.end.offset-l},end:{...r.end}};r.end={...o.start},r.start.offset===r.end.offset?Object.assign(r,o):(e.splice(n,0,["enter",o,t],["exit",o,t]),n+=2)}n++}return e}const Nr={42:gr,43:gr,45:gr,48:gr,49:gr,50:gr,51:gr,52:gr,53:gr,54:gr,55:gr,56:gr,57:gr,62:In},Tr={91:Zn},Lr={[-2]:_n,[-1]:_n,32:_n},Or={35:er,42:hr,45:[vr,hr],60:rr,61:vr,95:hr,96:zn,126:zn},Pr={38:Dn,92:jn},Ar={[-5]:pr,[-4]:pr,[-3]:pr,33:dr,38:Dn,42:On,60:[An,ar],91:fr,92:[Xn,jn],93:sr,95:On,96:Un},Rr={null:[On,kr]},Ir=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:Tr,disable:{null:[]},document:Nr,flow:Or,flowInitial:Lr,insideSpan:Rr,string:Pr,text:Ar},Symbol.toStringTag,{value:"Module"}));function jr(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const o={},i=[];let a=[],s=[];const l={attempt:m(function(e,t){y(e,t.from)}),check:m(g),consume:function(e){mn(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,v()):-1!==e&&(r.column++,r.offset++);r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++));u.previous=e},enter:function(e,t){const n=t||{};return n.type=e,n.start=f(),u.events.push(["enter",n,u]),s.push(n),n},exit:function(e){const t=s.pop();return t.end=f(),u.events.push(["exit",t,u]),t},interrupt:m(g,{interrupt:!0})},u={code:null,containerState:{},defineSkip:function(e){o[e.line]=e.column,v()},events:[],now:f,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let o;for(;++n<e.length;){const i=e[n];let a;if("string"==typeof i)a=i;else switch(i){case-5:a="\r";break;case-4:a="\n";break;case-3:a="\r\n";break;case-2:a=t?" ":"\t";break;case-1:if(!t&&o)continue;a=" ";break;default:a=String.fromCharCode(i)}o=-2===i,r.push(a)}return r.join("")}(d(e),t)},sliceStream:d,write:function(e){if(a=tn(a,e),p(),null!==a[a.length-1])return[];return y(t,0),u.events=Ln(i,u.events,u),u.events}};let c=t.tokenize.call(u,l);return t.resolveAll&&i.push(t),u;function d(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,o=t.end._index,i=t.end._bufferIndex;let a;if(n===o)a=[e[n].slice(r,i)];else{if(a=e.slice(n,o),r>-1){const e=a[0];"string"==typeof e?a[0]=e.slice(r):a.shift()}i>0&&a.push(e[o].slice(0,i))}return a}(a,e)}function f(){const{_bufferIndex:e,_index:t,line:n,column:o,offset:i}=r;return{_bufferIndex:e,_index:t,line:n,column:o,offset:i}}function p(){let e;for(;r._index<a.length;){const t=a[r._index];if("string"==typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)h(t.charCodeAt(r._bufferIndex));else h(t)}}function h(e){c=c(e)}function g(e,t){t.restore()}function m(e,t){return function(n,o,i){let a,c,d,p;return Array.isArray(n)?h(n):"tokenize"in n?h([n]):function(e){return t;function t(t){const n=null!==t&&e[t],r=null!==t&&e.null;return h([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}(n);function h(e){return a=e,c=0,0===e.length?i:g(e[c])}function g(e){return function(n){p=function(){const e=f(),t=u.previous,n=u.currentConstruct,o=u.events.length,i=Array.from(s);return{from:o,restore:a};function a(){r=e,u.previous=t,u.currentConstruct=n,u.events.length=o,s=i,v()}}(),d=e,e.partial||(u.currentConstruct=e);if(e.name&&u.parser.constructs.disable.null.includes(e.name))return y();return e.tokenize.call(t?Object.assign(Object.create(u),t):u,l,m,y)(n)}}function m(t){return e(d,p),o}function y(e){return p.restore(),++c<a.length?g(a[c]):i}}}function y(e,t){e.resolveAll&&!i.includes(e)&&i.push(e),e.resolve&&en(u.events,t,u.events.length-t,e.resolve(u.events.slice(t),u)),e.resolveTo&&(u.events=e.resolveTo(u.events,u))}function v(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}const Dr=/[\0\t\n\r]/g;const Mr=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function zr(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return sn(n.slice(t?2:1),t?16:10)}return Xt(n)||e}const _r={}.hasOwnProperty;function Fr(e,t,n){return"string"!=typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(te),autolinkProtocol:E,autolinkEmail:E,atxHeading:i(Z),blockQuote:i(Y),characterEscape:E,characterReference:E,codeFenced:i(K),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:i(K,a),codeText:i(G,a),codeTextData:E,data:E,codeFlowValue:E,definition:i(Q),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:i($),hardBreakEscape:i(J),hardBreakTrailing:i(J),htmlFlow:i(X,a),htmlFlowData:E,htmlText:i(X,a),htmlTextData:E,image:i(ee),label:a,link:i(te),listItem:i(re),listItemValue:f,listOrdered:i(ne,d),listUnordered:i(ne),paragraph:i(oe),reference:F,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:i(Z),strong:i(ie),thematicBreak:i(se)},exit:{atxHeading:l(),atxHeadingSequence:x,autolink:l(),autolinkEmail:W,autolinkProtocol:q,blockQuote:l(),characterEscapeValue:N,characterReferenceMarkerHexadecimal:B,characterReferenceMarkerNumeric:B,characterReferenceValue:H,characterReference:V,codeFenced:l(m),codeFencedFence:g,codeFencedFenceInfo:p,codeFencedFenceMeta:h,codeFlowValue:N,codeIndented:l(y),codeText:l(A),codeTextData:N,data:N,definition:l(),definitionDestinationString:k,definitionLabelString:v,definitionTitleString:b,emphasis:l(),hardBreakEscape:l(L),hardBreakTrailing:l(L),htmlFlow:l(O),htmlFlowData:N,htmlText:l(P),htmlTextData:N,image:l(I),label:D,labelText:j,lineEnding:T,link:l(R),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:U,resourceDestinationString:M,resourceTitleString:z,resource:_,setextHeading:l(C),setextHeadingLineSequence:S,setextHeadingText:w,strong:l(),thematicBreak:l()}};Br(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(e){let r={type:"root",children:[]};const i={stack:[r],tokenStack:[],config:t,enter:s,exit:u,buffer:a,resume:c,data:n},l=[];let d=-1;for(;++d<e.length;)if("listOrdered"===e[d][1].type||"listUnordered"===e[d][1].type)if("enter"===e[d][0])l.push(d);else{d=o(e,l.pop(),d)}for(d=-1;++d<e.length;){const n=t[e[d][0]];_r.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},i),e[d][1])}if(i.tokenStack.length>0){const e=i.tokenStack[i.tokenStack.length-1];(e[1]||Vr).call(i,void 0,e[0])}for(r.position={start:Ur(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Ur(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function o(e,t,n){let r,o,i,a,s=t-1,l=-1,u=!1;for(;++s<=n;){const t=e[s];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,a=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||a||l||i||(i=s),a=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:a=void 0}if(!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let a=s;for(o=void 0;a--;){const t=e[a];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;o&&(e[o][1].type="lineEndingBlank",u=!0),t[1].type="lineEnding",o=a}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}i&&(!o||i<o)&&(r._spread=!0),r.end=Object.assign({},o?e[o][1].start:t[1].end),e.splice(o||s,0,["exit",r,t[2]]),s++,n++}if("listItemPrefix"===t[1].type){const o={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=o,e.splice(s,0,["enter",o,t[2]]),s++,n++,i=void 0,a=!0}}}return e[t][1]._spread=u,n}function i(e,t){return n;function n(n){s.call(this,e(n),n),t&&t.call(this,n)}}function a(){this.stack.push({type:"fragment",children:[]})}function s(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:Ur(t.start),end:void 0}}function l(e){return t;function t(t){e&&e.call(this,t),u.call(this,t)}}function u(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+Nt({start:e.start,end:e.end})+"): it’s not open");if(r[0].type!==e.type)if(t)t.call(this,e,r[0]);else{(r[1]||Vr).call(this,e,r[0])}n.position.end=Ur(e.end)}function c(){return Qt(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(e){if(this.data.expectingFirstListItemValue){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function p(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function h(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function g(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function m(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function v(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=ln(this.sliceSerialize(e)).toLowerCase()}function b(){const e=this.resume();this.stack[this.stack.length-1].title=e}function k(){const e=this.resume();this.stack[this.stack.length-1].url=e}function x(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}}function w(){this.data.setextHeadingSlurpLineEnding=!0}function S(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2}function C(){this.data.setextHeadingSlurpLineEnding=void 0}function E(e){const t=this.stack[this.stack.length-1].children;let n=t[t.length-1];n&&"text"===n.type||(n=ae(),n.position={start:Ur(e.start),end:void 0},t.push(n)),this.stack.push(n)}function N(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=Ur(e.end)}function T(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak){return n.children[n.children.length-1].position.end=Ur(e.end),void(this.data.atHardBreak=void 0)}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(E.call(this,e),N.call(this,e))}function L(){this.data.atHardBreak=!0}function O(){const e=this.resume();this.stack[this.stack.length-1].value=e}function P(){const e=this.resume();this.stack[this.stack.length-1].value=e}function A(){const e=this.resume();this.stack[this.stack.length-1].value=e}function R(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function I(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function j(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=function(e){return e.replace(Mr,zr)}(t),n.identifier=ln(t).toLowerCase()}function D(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){const t=e.children;n.children=t}else n.alt=t}function M(){const e=this.resume();this.stack[this.stack.length-1].url=e}function z(){const e=this.resume();this.stack[this.stack.length-1].title=e}function _(){this.data.inReference=void 0}function F(){this.data.referenceType="collapsed"}function U(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=ln(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"}function B(e){this.data.characterReferenceType=e.type}function H(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;if(n)r=sn(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0;else{r=Xt(t)}this.stack[this.stack.length-1].value+=r}function V(e){this.stack.pop().position.end=Ur(e.end)}function q(e){N.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function W(e){N.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function Y(){return{type:"blockquote",children:[]}}function K(){return{type:"code",lang:null,meta:null,value:""}}function G(){return{type:"inlineCode",value:""}}function Q(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function $(){return{type:"emphasis",children:[]}}function Z(){return{type:"heading",depth:0,children:[]}}function J(){return{type:"break"}}function X(){return{type:"html",value:""}}function ee(){return{type:"image",title:null,url:"",alt:null}}function te(){return{type:"link",title:null,url:"",children:[]}}function ne(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function re(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function oe(){return{type:"paragraph",children:[]}}function ie(){return{type:"strong",children:[]}}function ae(){return{type:"text",value:""}}function se(){return{type:"thematicBreak"}}}(n)(function(e){for(;!Vn(e););return e}(function(e){const t={constructs:rn([Ir,...(e||{}).extensions||[]]),content:n(Cn),defined:[],document:n(En),flow:n(br),lazy:{},string:n(xr),text:n(wr)};return t;function n(e){return function(n){return jr(t,e,n)}}}(n).document().write(function(){let e,t=1,n="",r=!0;return function(o,i,a){const s=[];let l,u,c,d,f;for(o=n+("string"==typeof o?o.toString():new TextDecoder(i||void 0).decode(o)),c=0,n="",r&&(65279===o.charCodeAt(0)&&c++,r=void 0);c<o.length;){if(Dr.lastIndex=c,l=Dr.exec(o),d=l&&void 0!==l.index?l.index:o.length,f=o.charCodeAt(d),!l){n=o.slice(c);break}if(10===f&&c===d&&e)s.push(-3),e=void 0;else switch(e&&(s.push(-5),e=void 0),c<d&&(s.push(o.slice(c,d)),t+=d-c),f){case 0:s.push(65533),t++;break;case 9:for(u=4*Math.ceil(t/4),s.push(-2);t++<u;)s.push(-1);break;case 10:s.push(-4),t=1;break;default:e=!0,t=1}c=d+1}return a&&(e&&s.push(-5),n&&s.push(n),s.push(null)),s}}()(e,t,!0))))}function Ur(e){return{line:e.line,column:e.column,offset:e.offset}}function Br(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Br(e,r):Hr(e,r)}}function Hr(e,t){let n;for(n in t)if(_r.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Vr(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Nt({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Nt({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Nt({start:t.start,end:t.end})+") is still open")}function qr(e){const t=this;t.parser=function(n){return Fr(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Wr(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];const o=e.all(t),i=o[0];i&&"text"===i.type?i.value="["+i.value:o.unshift({type:"text",value:"["});const a=o[o.length-1];return a&&"text"===a.type?a.value+=r:o.push({type:"text",value:r}),o}function Yr(e){const t=e.spread;return null==t?e.children.length>1:t}function Kr(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const i=[];for(;r;)i.push(Gr(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return i.push(Gr(t.slice(o),o>0,!1)),i.join("")}function Gr(e,t,n){let r=0,o=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(o-1);for(;9===t||32===t;)o--,t=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}const Qr={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r={},o=t.lang?t.lang.split(/\s+/):[];o.length>0&&(r.className=["language-"+o[0]]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),o=wn(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);let a,s=e.footnoteCounts.get(r);void 0===s?(s=0,e.footnoteOrder.push(r),a=e.footnoteOrder.length):a=i+1,s+=1,e.footnoteCounts.set(r,s);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+o,id:n+"fnref-"+o+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Wr(e,t);const o={src:wn(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(o.title=r.title);const i={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,i),e.applyData(t,i)},image:function(e,t){const n={src:wn(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Wr(e,t);const o={href:wn(r.url||"")};null!==r.title&&void 0!==r.title&&(o.title=r.title);const i={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},link:function(e,t){const n={href:wn(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),o=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Yr(n[r])}return t}(n):Yr(t),i={},a=[];if("boolean"==typeof t.checked){const e=r[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const e=r[s];(o||0!==s||"element"!==e.type||"p"!==e.tagName)&&a.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||o?a.push(e):a.push(...e.children)}const l=r[r.length-1];l&&(o||"element"!==l.type||"p"!==l.tagName)&&a.push({type:"text",value:"\n"});const u={type:"element",tagName:"li",properties:i,children:a};return e.patch(t,u),e.applyData(t,u)},list:function(e,t){const n={},r=e.all(t);let o=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++o<r.length;){const e=r[o];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)},paragraph:function(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const n=e.all(t),r=n.shift(),o=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),o.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},i=Ct(t.children[1]),a=St(t.children[t.children.length-1]);i&&a&&(r.position={start:i,end:a}),o.push(r)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,i),e.applyData(t,i)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,o=0===(r?r.indexOf(t):1)?"th":"td",i=n&&"table"===n.type?n.align:void 0,a=i?i.length:t.children.length;let s=-1;const l=[];for(;++s<a;){const n=t.children[s],r={},a=i?i[s]:void 0;a&&(r.align=a);let u={type:"element",tagName:o,properties:r,children:[]};n&&(u.children=e.all(n),e.patch(n,u),u=e.applyData(n,u)),l.push(u)}const u={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,u),e.applyData(t,u)},text:function(e,t){const n={type:"text",value:Kr(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:$r,yaml:$r,definition:$r,footnoteDefinition:$r};function $r(){}const Zr="object"==typeof self?self:globalThis,Jr=e=>((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=o=>{if(e.has(o))return e.get(o);const[i,a]=t[o];switch(i){case 0:case-1:return n(a,o);case 1:{const e=n([],o);for(const t of a)e.push(r(t));return e}case 2:{const e=n({},o);for(const[t,n]of a)e[r(t)]=r(n);return e}case 3:return n(new Date(a),o);case 4:{const{source:e,flags:t}=a;return n(new RegExp(e,t),o)}case 5:{const e=n(new Map,o);for(const[t,n]of a)e.set(r(t),r(n));return e}case 6:{const e=n(new Set,o);for(const t of a)e.add(r(t));return e}case 7:{const{name:e,message:t}=a;return n(new Zr[e](t),o)}case 8:return n(BigInt(a),o);case"BigInt":return n(Object(BigInt(a)),o);case"ArrayBuffer":return n(new Uint8Array(a).buffer,a);case"DataView":{const{buffer:e}=new Uint8Array(a);return n(new DataView(e),a)}}return n(new Zr[i](a),o)};return r})(new Map,e)(0),Xr="",{toString:eo}={},{keys:to}=Object,no=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=eo.call(e).slice(8,-1);switch(n){case"Array":return[1,Xr];case"Object":return[2,Xr];case"Date":return[3,Xr];case"RegExp":return[4,Xr];case"Map":return[5,Xr];case"Set":return[6,Xr];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},ro=([e,t])=>0===e&&("function"===t||"symbol"===t),oo=(e,{json:t,lossy:n}={})=>{const r=[];return((e,t,n,r)=>{const o=(e,t)=>{const o=r.push(e)-1;return n.set(t,o),o},i=r=>{if(n.has(r))return n.get(r);let[a,s]=no(r);switch(a){case 0:{let t=r;switch(s){case"bigint":a=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);t=null;break;case"undefined":return o([-1],r)}return o([a,t],r)}case 1:{if(s){let e=r;return"DataView"===s?e=new Uint8Array(r.buffer):"ArrayBuffer"===s&&(e=new Uint8Array(r)),o([s,[...e]],r)}const e=[],t=o([a,e],r);for(const n of r)e.push(i(n));return t}case 2:{if(s)switch(s){case"BigInt":return o([s,r.toString()],r);case"Boolean":case"Number":case"String":return o([s,r.valueOf()],r)}if(t&&"toJSON"in r)return i(r.toJSON());const n=[],l=o([a,n],r);for(const t of to(r))!e&&ro(no(r[t]))||n.push([i(t),i(r[t])]);return l}case 3:return o([a,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return o([a,{source:e,flags:t}],r)}case 5:{const t=[],n=o([a,t],r);for(const[o,a]of r)(e||!ro(no(o))&&!ro(no(a)))&&t.push([i(o),i(a)]);return n}case 6:{const t=[],n=o([a,t],r);for(const o of r)!e&&ro(no(o))||t.push(i(o));return n}}const{message:l}=r;return o([a,{name:s,message:l}],r)};return i})(!(t||n),!!t,new Map,r)(e),r},io="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?Jr(oo(e,t)):structuredClone(e):(e,t)=>Jr(oo(e,t));function ao(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function so(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const lo=function(e){if(null==e)return co;if("function"==typeof e)return uo(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=lo(e[n]);return uo(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}(e):function(e){const t=e;return uo(n);function n(n){const r=n;let o;for(o in e)if(r[o]!==t[o])return!1;return!0}}(e);if("string"==typeof e)return function(e){return uo(t);function t(t){return t&&t.type===e}}(e);throw new Error("Expected function, string, or object as test")};function uo(e){return function(t,n,r){return Boolean(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function co(){return!0}const fo=[],po=!0,ho=!1;function go(e,t,n,r){let o;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):o=t;const i=lo(o),a=r?-1:1;!function e(o,s,l){const u=o&&"object"==typeof o?o:{};if("string"==typeof u.type){const e="string"==typeof u.tagName?u.tagName:"string"==typeof u.name?u.name:void 0;Object.defineProperty(c,"name",{value:"node ("+o.type+(e?"<"+e+">":"")+")"})}return c;function c(){let u,c,d,f=fo;if((!t||i(o,s,l[l.length-1]||void 0))&&(f=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[po,e];return null==e?fo:[e]}(n(o,l)),f[0]===ho))return f;if("children"in o&&o.children){const t=o;if(t.children&&"skip"!==f[0])for(c=(r?t.children.length:-1)+a,d=l.concat(t);c>-1&&c<t.children.length;){const n=t.children[c];if(u=e(n,c,d)(),u[0]===ho)return u;c="number"==typeof u[1]?u[1]:c+a}}return f}}(e,void 0,[])()}function mo(e,t,n,r){let o,i,a;"function"==typeof t&&"function"!=typeof n?(i=void 0,a=t,o=n):(i=t,a=n,o=r),go(e,i,function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return a(e,r,n)},o)}const yo={}.hasOwnProperty,vo={};function bo(e,t){e.position&&(t.position=function(e){const t=Ct(e),n=St(e);if(t&&n)return{start:t,end:n}}(e))}function ko(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,o=e.data.hProperties;if("string"==typeof t)if("element"===n.type)n.tagName=t;else{n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}}"element"===n.type&&o&&Object.assign(n.properties,io(o)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function xo(e,t){const n=t.data||{},r=!("value"in t)||yo.call(n,"hProperties")||yo.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}function wo(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function So(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function Co(e,t){const n=function(e,t){const n=t||vo,r=new Map,o=new Map,i=new Map,a={...Qr,...n.handlers},s={all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1;for(;++r<n.length;){const o=s.one(n[r],e);if(o){if(r&&"break"===n[r-1].type&&(Array.isArray(o)||"text"!==o.type||(o.value=So(o.value)),!Array.isArray(o)&&"element"===o.type)){const e=o.children[0];e&&"text"===e.type&&(e.value=So(e.value))}Array.isArray(o)?t.push(...o):t.push(o)}}}return t},applyData:ko,definitionById:r,footnoteById:o,footnoteCounts:i,footnoteOrder:[],handlers:a,one:function(e,t){const n=e.type,r=s.handlers[n];if(yo.call(s.handlers,n)&&r)return r(s,e,t);if(s.options.passThrough&&s.options.passThrough.includes(n)){if("children"in e){const{children:t,...n}=e,r=io(n);return r.children=s.all(e),r}return io(e)}return(s.options.unknownHandler||xo)(s,e,t)},options:n,patch:bo,wrap:wo};return mo(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const t="definition"===e.type?r:o,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),s}(e,t),r=n.one(e,void 0),o=function(e){const t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||ao,r=e.options.footnoteBackLabel||so,o=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l<e.footnoteOrder.length;){const o=e.footnoteById.get(e.footnoteOrder[l]);if(!o)continue;const i=e.all(o),a=String(o.identifier).toUpperCase(),u=wn(a.toLowerCase());let c=0;const d=[],f=e.footnoteCounts.get(a);for(;void 0!==f&&++c<=f;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(l,c);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+u+(c>1?"-"+c:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(l,c),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const p=i[i.length-1];if(p&&"element"===p.type&&"p"===p.tagName){const e=p.children[p.children.length-1];e&&"text"===e.type?e.value+=" ":p.children.push({type:"text",value:" "}),p.children.push(...d)}else i.push(...d);const h={type:"element",tagName:"li",properties:{id:t+"fn-"+u},children:e.wrap(i,!0)};e.patch(o,h),s.push(h)}if(0!==s.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...io(a),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:"\n"}]}}(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return o&&i.children.push({type:"text",value:"\n"},o),i}function Eo(e,t){return e&&"run"in e?async function(n,r){const o=Co(n,{file:r,...t});await e.run(o,r)}:function(n,r){return Co(n,{file:r,...e||t})}}function No(e){if(e)throw e}var To,Lo;var Oo=function(){if(Lo)return To;Lo=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),i=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!i)return!1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return To=function e(){var t,n,r,l,u,c,d=arguments[0],f=1,p=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<p;++f)if(null!=(t=arguments[f]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(h&&l&&(i(l)||(u=o(l)))?(u?(u=!1,c=r&&o(r)?r:[]):c=r&&i(r)?r:{},a(d,{name:n,newValue:e(h,c,l)})):void 0!==l&&a(d,{name:n,newValue:l}));return d},To}();const Po=t(Oo);function Ao(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function Ro(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function o(i,...a){const s=e[++n];let l=-1;if(i)r(i);else{for(;++l<t.length;)null!==a[l]&&void 0!==a[l]||(a[l]=t[l]);t=a,s?function(e,t){let n;return r;function r(...t){const r=e.length>t.length;let s;r&&t.push(o);try{s=e.apply(this,t)}catch(i){if(r&&n)throw i;return o(i)}r||(s&&s.then&&"function"==typeof s.then?s.then(a,o):s instanceof Error?o(s):a(s))}function o(e,...r){n||(n=!0,t(e,...r))}function a(e){o(null,e)}}(s,o)(...a):r(null,...a)}}(null,...t)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}const Io={basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');jo(e);let n,r=0,o=-1,i=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let a=-1,s=t.length-1;for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else a<0&&(n=!0,a=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(o=i):(s=-1,o=a));r===o?o=a:o<0&&(o=e.length);return e.slice(r,o)},dirname:function(e){if(jo(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){jo(e);let t,n=e.length,r=-1,o=0,i=-1,a=0;for(;n--;){const s=e.codePointAt(n);if(47!==s)r<0&&(t=!0,r=n+1),46===s?i<0?i=n:1!==a&&(a=1):i>-1&&(a=-1);else if(t){o=n+1;break}}if(i<0||r<0||0===a||1===a&&i===r-1&&i===o+1)return"";return e.slice(i,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)jo(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){jo(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,o="",i=0,a=-1,s=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.codePointAt(l);else{if(47===n)break;n=47}if(47===n){if(a===l-1||1===s);else if(a!==l-1&&2===s){if(o.length<2||2!==i||46!==o.codePointAt(o.length-1)||46!==o.codePointAt(o.length-2))if(o.length>2){if(r=o.lastIndexOf("/"),r!==o.length-1){r<0?(o="",i=0):(o=o.slice(0,r),i=o.length-1-o.lastIndexOf("/")),a=l,s=0;continue}}else if(o.length>0){o="",i=0,a=l,s=0;continue}t&&(o=o.length>0?o+"/..":"..",i=2)}else o.length>0?o+="/"+e.slice(a+1,l):o=e.slice(a+1,l),i=l-a-1;a=l,s=0}else 46===n&&s>-1?s++:s=-1}return o}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/");return t?"/"+n:n}(t)},sep:"/"};function jo(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Do={cwd:function(){return"/"}};function Mo(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function zo(e){if("string"==typeof e)e=new URL(e);else if(!Mo(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}const _o=["history","path","basename","stem","extname","dirname"];class Fo{constructor(e){let t;t=e?Mo(e)?{path:e}:"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":Do.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<_o.length;){const e=_o[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)_o.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?Io.basename(this.path):void 0}set basename(e){Bo(e,"basename"),Uo(e,"basename"),this.path=Io.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?Io.dirname(this.path):void 0}set dirname(e){Ho(this.basename,"dirname"),this.path=Io.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?Io.extname(this.path):void 0}set extname(e){if(Uo(e,"extname"),Ho(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Io.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){Mo(e)&&(e=zo(e)),Bo(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?Io.basename(this.path,this.extname):void 0}set stem(e){Bo(e,"stem"),Uo(e,"stem"),this.path=Io.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new Pt(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){if(void 0===this.value)return"";if("string"==typeof this.value)return this.value;return new TextDecoder(e||void 0).decode(this.value)}}function Uo(e,t){if(e&&e.includes(Io.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Io.sep+"`")}function Bo(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Ho(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const Vo=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},qo={}.hasOwnProperty;class Wo extends Vo{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Ro()}copy(){const e=new Wo;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(Po(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(Qo("data",this.frozen),this.namespace[e]=t,this):qo.call(this.namespace,e)&&this.namespace[e]||void 0:e?(Qo("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=t.call(e,...n);"function"==typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=Jo(e),n=this.parser||this.Parser;return Ko("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),Ko("process",this.parser||this.Parser),Go("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,o){const i=Jo(e),a=n.parse(i);function s(e,n){e||!n?o(e):r?r(n):t(void 0,n)}n.run(a,i,function(e,t,r){if(e||!t||!r)return s(e);const o=t,i=n.stringify(o,r);var a;"string"==typeof(a=i)||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(a)?r.value=i:r.result=i,s(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),Ko("processSync",this.parser||this.Parser),Go("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,No(e),t=r}),Zo("processSync","process",n),t}run(e,t,n){$o(e),this.freeze();const r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?o(void 0,n):new Promise(o);function o(o,i){const a=Jo(t);r.run(e,a,function(t,r,a){const s=r||e;t?i(t):o?o(s):n(void 0,s,a)})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){No(e),n=t,r=!0}),Zo("runSync","run",r),n}stringify(e,t){this.freeze();const n=Jo(t),r=this.compiler||this.Compiler;return Go("stringify",r),$o(e),r(e,n)}use(e,...t){const n=this.attachers,r=this.namespace;if(Qo("use",this.frozen),null==e);else if("function"==typeof e)s(e,t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?a(e):i(e)}return this;function o(e){if("function"==typeof e)s(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;s(t,n)}else i(e)}}function i(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(e.plugins),e.settings&&(r.settings=Po(!0,r.settings,e.settings))}function a(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;){o(e[t])}}}function s(e,t){let r=-1,o=-1;for(;++r<n.length;)if(n[r][0]===e){o=r;break}if(-1===o)n.push([e,...t]);else if(t.length>0){let[r,...i]=t;const a=n[o][1];Ao(a)&&Ao(r)&&(r=Po(!0,a,r)),n[o]=[e,r,...i]}}}}const Yo=(new Wo).freeze();function Ko(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function Go(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function Qo(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function $o(e){if(!Ao(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function Zo(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Jo(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new Fo(e)}const Xo=[],ei={allowDangerousHtml:!0},ti=/^(https?|ircs?|mailto|xmpp)$/i,ni=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function ri(e){const t=function(e){const t=e.rehypePlugins||Xo,n=e.remarkPlugins||Xo,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...ei}:ei,o=Yo().use(qr).use(n).use(Eo,r).use(t);return o}(e),n=function(e){const t=e.children||"",n=new Fo;"string"==typeof t&&(n.value=t);return n}(e);return function(e,t){const n=t.allowedElements,r=t.allowElement,o=t.components,i=t.disallowedElements,a=t.skipHtml,s=t.unwrapDisallowed,l=t.urlTransform||oi;for(const c of ni)Object.hasOwn(t,c.from)&&Ee((c.from,c.to&&c.to,c.id));return mo(e,u),zt(e,{Fragment:T.Fragment,components:o,ignoreInvalidStyle:!0,jsx:T.jsx,jsxs:T.jsxs,passKeys:!0,passNode:!0});function u(e,t,o){if("raw"===e.type&&o&&"number"==typeof t)return a?o.children.splice(t,1):o.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in Kt)if(Object.hasOwn(Kt,t)&&Object.hasOwn(e.properties,t)){const n=e.properties[t],r=Kt[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=l(String(n||""),t,e))}}if("element"===e.type){let a=n?!n.includes(e.tagName):!!i&&i.includes(e.tagName);if(!a&&r&&"number"==typeof t&&(a=!r(e,t,o)),a&&o&&"number"==typeof t)return s&&e.children?o.children.splice(t,1,...e.children):o.children.splice(t,1),t}}}(t.runSync(t.parse(n),n),e)}function oi(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),o=e.indexOf("/");return-1===t||-1!==o&&t>o||-1!==n&&t>n||-1!==r&&t>r||ti.test(e.slice(0,t))?e:""}function ii(e,t){const n=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let r=0,o=n.indexOf(t);for(;-1!==o;)r++,o=n.indexOf(t,o+t.length);return r}function ai(e,t,n){const r=lo((n||{}).ignore||[]),o=function(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const e=n[r];t.push([si(e[0]),li(e[1])])}return t}(t);let i=-1;for(;++i<o.length;)go(e,"text",a);function a(e,t){let n,a=-1;for(;++a<t.length;){const e=t[a],o=n?n.children:void 0;if(r(e,o?o.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){const n=t[t.length-1],r=o[i][0],a=o[i][1];let s=0;const l=n.children.indexOf(e);let u=!1,c=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){const n=d.index,o={index:d.index,input:d.input,stack:[...t,e]};let i=a(...d,o);if("string"==typeof i&&(i=i.length>0?{type:"text",value:i}:void 0),!1===i?r.lastIndex=n+1:(s!==n&&c.push({type:"text",value:e.value.slice(s,n)}),Array.isArray(i)?c.push(...i):i&&c.push(i),s=n+d[0].length,u=!0),!r.global)break;d=r.exec(e.value)}u?(s<e.value.length&&c.push({type:"text",value:e.value.slice(s)}),n.children.splice(l,1,...c)):c=[e];return l+c.length}(e,t)}}function si(e){return"string"==typeof e?new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e),"g"):e}function li(e){return"function"==typeof e?e:function(){return e}}const ui="phrasing",ci=["autolink","link","image","label"];function di(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function fi(e){this.config.enter.autolinkProtocol.call(this,e)}function pi(e){this.config.exit.autolinkProtocol.call(this,e)}function hi(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function gi(e){this.config.exit.autolinkEmail.call(this,e)}function mi(e){this.exit(e)}function yi(e){ai(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,vi],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),bi]],{ignore:["link","linkReference"]})}function vi(e,t,n,r,o){let i="";if(!ki(o))return!1;if(/^w/i.test(t)&&(n=t+n,t="",i="http://"),!function(e){const t=e.split(".");if(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))return!1;return!0}(n))return!1;const a=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const o=ii(e,"(");let i=ii(e,")");for(;-1!==r&&o>i;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),i++;return[e,n]}(n+r);if(!a[0])return!1;const s={type:"link",title:null,url:i+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[s,{type:"text",value:a[1]}]:s}function bi(e,t,n,r){return!(!ki(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function ki(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||kn(n)||bn(n))&&(!t||47!==n)}function xi(){this.buffer()}function wi(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Si(){this.buffer()}function Ci(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Ei(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=ln(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Ni(e){this.exit(e)}function Ti(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=ln(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Li(e){this.exit(e)}function Oi(e,t,n,r){const o=n.createTracker(r);let i=o.move("[^");const a=n.enter("footnoteReference"),s=n.enter("reference");return i+=o.move(n.safe(n.associationId(e),{after:"]",before:i})),s(),a(),i+=o.move("]"),i}function Pi(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:function(e,n,r,o){const i=r.createTracker(o);let a=i.move("[^");const s=r.enter("footnoteDefinition"),l=r.enter("label");a+=i.move(r.safe(r.associationId(e),{before:a,after:"]"})),l(),a+=i.move("]:"),e.children&&e.children.length>0&&(i.shift(4),a+=i.move((t?"\n":" ")+r.indentLines(r.containerFlow(e,i.current()),t?Ri:Ai)));return s(),a},footnoteReference:Oi},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}}function Ai(e,t,n){return 0===t?e:Ri(e,t,n)}function Ri(e,t,n){return(n?"":" ")+e}Oi.peek=function(){return"["};const Ii=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function ji(e){this.enter({type:"delete",children:[]},e)}function Di(e){this.exit(e)}function Mi(e,t,n,r){const o=n.createTracker(r),i=n.enter("strikethrough");let a=o.move("~~");return a+=n.containerPhrasing(e,{...o.current(),before:a,after:"~"}),a+=o.move("~~"),i(),a}function zi(e){return e.length}function _i(e){return null==e?"":String(e)}function Fi(e){const t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}function Ui(e,t,n){return">"+(n?"":" ")+e}function Bi(e,t){return Hi(e,t.inConstruct,!0)&&!Hi(e,t.notInConstruct,!1)}function Hi(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function Vi(e,t,n,r){let o=-1;for(;++o<n.unsafe.length;)if("\n"===n.unsafe[o].character&&Bi(n.stack,n.unsafe[o]))return/[ \t]/.test(r.before)?"":" ";return"\\\n"}function qi(e,t,n){return(n?"":" ")+e}function Wi(e){const t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function Yi(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Ki(e,t,n){const r=Tn(e),o=Tn(t);return void 0===r?void 0===o?"_"===n?{inside:!0,outside:!0}:{inside:!1,outside:!1}:1===o?{inside:!0,outside:!0}:{inside:!1,outside:!0}:1===r?void 0===o?{inside:!1,outside:!1}:1===o?{inside:!0,outside:!0}:{inside:!1,outside:!1}:void 0===o?{inside:!1,outside:!1}:1===o?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function Gi(e,t,n,r){const o=function(e){const t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(n),i=n.enter("emphasis"),a=n.createTracker(r),s=a.move(o);let l=a.move(n.containerPhrasing(e,{after:o,before:s,...a.current()}));const u=l.charCodeAt(0),c=Ki(r.before.charCodeAt(r.before.length-1),u,o);c.inside&&(l=Yi(u)+l.slice(1));const d=l.charCodeAt(l.length-1),f=Ki(r.after.charCodeAt(0),d,o);f.inside&&(l=l.slice(0,-1)+Yi(d));const p=a.move(o);return i(),n.attentionEncodeSurroundingInfo={after:f.outside,before:c.outside},s+l+p}function Qi(e){return e.value||""}function $i(e,t,n,r){const o=Wi(n),i='"'===o?"Quote":"Apostrophe",a=n.enter("image");let s=n.enter("label");const l=n.createTracker(r);let u=l.move("![");return u+=l.move(n.safe(e.alt,{before:u,after:"]",...l.current()})),u+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(s=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${i}`),u+=l.move(" "+o),u+=l.move(n.safe(e.title,{before:u,after:o,...l.current()})),u+=l.move(o),s()),u+=l.move(")"),a(),u}function Zi(e,t,n,r){const o=e.referenceType,i=n.enter("imageReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("![");const u=n.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(u+"]["),a();const c=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=c,i(),"full"!==o&&u&&u===d?"shortcut"===o?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"),l}function Ji(e,t,n){let r=e.value||"",o="`",i=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(r);)o+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++i<n.unsafe.length;){const e=n.unsafe[i],t=n.compilePattern(e);let o;if(e.atBreak)for(;o=t.exec(r);){let e=o.index;10===r.charCodeAt(e)&&13===r.charCodeAt(e-1)&&e--,r=r.slice(0,e)+" "+r.slice(o.index+1)}}return o+r+o}function Xi(e,t){const n=Qt(e);return Boolean(!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function ea(e,t,n,r){const o=Wi(n),i='"'===o?"Quote":"Apostrophe",a=n.createTracker(r);let s,l;if(Xi(e,n)){const t=n.stack;n.stack=[],s=n.enter("autolink");let r=a.move("<");return r+=a.move(n.containerPhrasing(e,{before:r,after:">",...a.current()})),r+=a.move(">"),s(),n.stack=t,r}s=n.enter("link"),l=n.enter("label");let u=a.move("[");return u+=a.move(n.containerPhrasing(e,{before:u,after:"](",...a.current()})),u+=a.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=a.move("<"),u+=a.move(n.safe(e.url,{before:u,after:">",...a.current()})),u+=a.move(">")):(l=n.enter("destinationRaw"),u+=a.move(n.safe(e.url,{before:u,after:e.title?" ":")",...a.current()}))),l(),e.title&&(l=n.enter(`title${i}`),u+=a.move(" "+o),u+=a.move(n.safe(e.title,{before:u,after:o,...a.current()})),u+=a.move(o),l()),u+=a.move(")"),s(),u}function ta(e,t,n,r){const o=e.referenceType,i=n.enter("linkReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("[");const u=n.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(u+"]["),a();const c=n.stack;n.stack=[],a=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=c,i(),"full"!==o&&u&&u===d?"shortcut"===o?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"),l}function na(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function ra(e){const t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}Mi.peek=function(){return"~"},Gi.peek=function(e,t,n){return n.options.emphasis||"*"},Qi.peek=function(){return"<"},$i.peek=function(){return"!"},Zi.peek=function(){return"!"},Ji.peek=function(){return"`"},ea.peek=function(e,t,n){return Xi(e,n)?"<":"["},ta.peek=function(){return"["};const oa=lo(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function ia(e,t,n,r){const o=function(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(n),i=n.enter("strong"),a=n.createTracker(r),s=a.move(o+o);let l=a.move(n.containerPhrasing(e,{after:o,before:s,...a.current()}));const u=l.charCodeAt(0),c=Ki(r.before.charCodeAt(r.before.length-1),u,o);c.inside&&(l=Yi(u)+l.slice(1));const d=l.charCodeAt(l.length-1),f=Ki(r.after.charCodeAt(0),d,o);f.inside&&(l=l.slice(0,-1)+Yi(d));const p=a.move(o+o);return i(),n.attentionEncodeSurroundingInfo={after:f.outside,before:c.outside},s+l+p}ia.peek=function(e,t,n){return n.options.strong||"*"};const aa={blockquote:function(e,t,n,r){const o=n.enter("blockquote"),i=n.createTracker(r);i.move("> "),i.shift(2);const a=n.indentLines(n.containerFlow(e,i.current()),Ui);return o(),a},break:Vi,code:function(e,t,n,r){const o=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(n),i=e.value||"",a="`"===o?"GraveAccent":"Tilde";if(function(e,t){return Boolean(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}(e,n)){const e=n.enter("codeIndented"),t=n.indentLines(i,qi);return e(),t}const s=n.createTracker(r),l=o.repeat(Math.max(function(e,t){const n=String(e);let r=n.indexOf(t),o=r,i=0,a=0;if("string"!=typeof t)throw new TypeError("Expected substring");for(;-1!==r;)r===o?++i>a&&(a=i):i=1,o=r+t.length,r=n.indexOf(t,o);return a}(i,o)+1,3)),u=n.enter("codeFenced");let c=s.move(l);if(e.lang){const t=n.enter(`codeFencedLang${a}`);c+=s.move(n.safe(e.lang,{before:c,after:" ",encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){const t=n.enter(`codeFencedMeta${a}`);c+=s.move(" "),c+=s.move(n.safe(e.meta,{before:c,after:"\n",encode:["`"],...s.current()})),t()}return c+=s.move("\n"),i&&(c+=s.move(i+"\n")),c+=s.move(l),u(),c},definition:function(e,t,n,r){const o=Wi(n),i='"'===o?"Quote":"Apostrophe",a=n.enter("definition");let s=n.enter("label");const l=n.createTracker(r);let u=l.move("[");return u+=l.move(n.safe(n.associationId(e),{before:u,after:"]",...l.current()})),u+=l.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(s=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":"\n",...l.current()}))),s(),e.title&&(s=n.enter(`title${i}`),u+=l.move(" "+o),u+=l.move(n.safe(e.title,{before:u,after:o,...l.current()})),u+=l.move(o),s()),a(),u},emphasis:Gi,hardBreak:Vi,heading:function(e,t,n,r){const o=Math.max(Math.min(6,e.depth||1),1),i=n.createTracker(r);if(function(e,t){let n=!1;return mo(e,function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return n=!0,ho}),Boolean((!e.depth||e.depth<3)&&Qt(e)&&(t.options.setext||n))}(e,n)){const t=n.enter("headingSetext"),r=n.enter("phrasing"),a=n.containerPhrasing(e,{...i.current(),before:"\n",after:"\n"});return r(),t(),a+"\n"+(1===o?"=":"-").repeat(a.length-(Math.max(a.lastIndexOf("\r"),a.lastIndexOf("\n"))+1))}const a="#".repeat(o),s=n.enter("headingAtx"),l=n.enter("phrasing");i.move(a+" ");let u=n.containerPhrasing(e,{before:"# ",after:"\n",...i.current()});return/^[\t ]/.test(u)&&(u=Yi(u.charCodeAt(0))+u.slice(1)),u=u?a+" "+u:a,n.options.closeAtx&&(u+=" "+a),l(),s(),u},html:Qi,image:$i,imageReference:Zi,inlineCode:Ji,link:ea,linkReference:ta,list:function(e,t,n,r){const o=n.enter("list"),i=n.bulletCurrent;let a=e.ordered?function(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(n):na(n);const s=e.ordered?"."===a?")":".":function(e){const t=na(e),n=e.options.bulletOther;if(!n)return"*"===t?"-":"*";if("*"!==n&&"+"!==n&&"-"!==n)throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}(n);let l=!(!t||!n.bulletLastUsed)&&a===n.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==a&&"-"!==a||!t||t.children&&t.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(l=!0),ra(n)===a&&t){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if(n&&"listItem"===n.type&&n.children&&n.children[0]&&"thematicBreak"===n.children[0].type){l=!0;break}}}}l&&(a=s),n.bulletCurrent=a;const u=n.containerFlow(e,r);return n.bulletLastUsed=a,n.bulletCurrent=i,o(),u},listItem:function(e,t,n,r){const o=function(e){const t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n);let i=n.bulletCurrent||na(n);t&&"list"===t.type&&t.ordered&&(i=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+i);let a=i.length+1;("tab"===o||"mixed"===o&&(t&&"list"===t.type&&t.spread||e.spread))&&(a=4*Math.ceil(a/4));const s=n.createTracker(r);s.move(i+" ".repeat(a-i.length)),s.shift(a);const l=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,s.current()),function(e,t,n){if(t)return(n?"":" ".repeat(a))+e;return(n?i:i+" ".repeat(a-i.length))+e});return l(),u},paragraph:function(e,t,n,r){const o=n.enter("paragraph"),i=n.enter("phrasing"),a=n.containerPhrasing(e,r);return i(),o(),a},root:function(e,t,n,r){return(e.children.some(function(e){return oa(e)})?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:ia,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){const r=(ra(n)+(n.options.ruleSpaces?" ":"")).repeat(function(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(n));return n.options.ruleSpaces?r.slice(0,-1):r}};function sa(e){const t=e._align;this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function la(e){this.exit(e),this.data.inTable=void 0}function ua(e){this.enter({type:"tableRow",children:[]},e)}function ca(e){this.exit(e)}function da(e){this.enter({type:"tableCell",children:[]},e)}function fa(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,pa));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function pa(e,t){return"|"===t?t:e}function ha(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,o=t.stringLength,i=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=aa.inlineCode(e,t,n);n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&"));return r},table:function(e,t,n,r){return s(function(e,t,n){const r=e.children;let o=-1;const i=[],a=t.enter("table");for(;++o<r.length;)i[o]=l(r[o],t,n);return a(),i}(e,n,r),e.align)},tableCell:a,tableRow:function(e,t,n,r){const o=s([l(e,n,r)]);return o.slice(0,o.indexOf("\n"))}}};function a(e,t,n,r){const o=n.enter("tableCell"),a=n.enter("phrasing"),s=n.containerPhrasing(e,{...r,before:i,after:i});return a(),o(),s}function s(e,t){return function(e,t){const n=t||{},r=(n.align||[]).concat(),o=n.stringLength||zi,i=[],a=[],s=[],l=[];let u=0,c=-1;for(;++c<e.length;){const t=[],r=[];let i=-1;for(e[c].length>u&&(u=e[c].length);++i<e[c].length;){const a=_i(e[c][i]);if(!1!==n.alignDelimiters){const e=o(a);r[i]=e,(void 0===l[i]||e>l[i])&&(l[i]=e)}t.push(a)}a[c]=t,s[c]=r}let d=-1;if("object"==typeof r&&"length"in r)for(;++d<u;)i[d]=Fi(r[d]);else{const e=Fi(r);for(;++d<u;)i[d]=e}d=-1;const f=[],p=[];for(;++d<u;){const e=i[d];let t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let o=!1===n.alignDelimiters?1:Math.max(1,l[d]-t.length-r.length);const a=t+"-".repeat(o)+r;!1!==n.alignDelimiters&&(o=t.length+o+r.length,o>l[d]&&(l[d]=o),p[d]=o),f[d]=a}a.splice(1,0,f),s.splice(1,0,p),c=-1;const h=[];for(;++c<a.length;){const e=a[c],t=s[c];d=-1;const r=[];for(;++d<u;){const o=e[d]||"";let a="",s="";if(!1!==n.alignDelimiters){const e=l[d]-(t[d]||0),n=i[d];114===n?a=" ".repeat(e):99===n?e%2?(a=" ".repeat(e/2+.5),s=" ".repeat(e/2-.5)):(a=" ".repeat(e/2),s=a):s=" ".repeat(e)}!1===n.delimiterStart||d||r.push("|"),!1===n.padding||!1===n.alignDelimiters&&""===o||!1===n.delimiterStart&&!d||r.push(" "),!1!==n.alignDelimiters&&r.push(a),r.push(o),!1!==n.alignDelimiters&&r.push(s),!1!==n.padding&&r.push(" "),!1===n.delimiterEnd&&d===u-1||r.push("|")}h.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return h.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:o})}function l(e,t,n){const r=e.children;let o=-1;const i=[],s=t.enter("tableRow");for(;++o<r.length;)i[o]=a(r[o],0,t,n);return s(),i}}function ga(e){const t=this.stack[this.stack.length-2];t.type,t.checked="taskListCheckValueChecked"===e.type}function ma(e){const t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){const e=this.stack[this.stack.length-1];e.type;const n=e.children[0];if(n&&"text"===n.type){const r=t.children;let o,i=-1;for(;++i<r.length;){const e=r[i];if("paragraph"===e.type){o=e;break}}o===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function ya(e,t,n,r){const o=e.children[0],i="boolean"==typeof e.checked&&o&&"paragraph"===o.type,a="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);i&&s.move(a);let l=aa.listItem(e,t,n,{...r,...s.current()});return i&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+a})),l}const va={tokenize:function(e,t,n){let r=0;return function t(i){if((87===i||119===i)&&r<3)return r++,e.consume(i),t;if(46===i&&3===r)return e.consume(i),o;return n(i)};function o(e){return null===e?n(e):t(e)}},partial:!0},ba={tokenize:function(e,t,n){let r,o,i;return a;function a(t){return 46===t||95===t?e.check(xa,l,s)(t):null===t||yn(t)||kn(t)||45!==t&&bn(t)?l(t):(i=!0,e.consume(t),a)}function s(t){return 95===t?r=!0:(o=r,r=void 0),e.consume(t),a}function l(e){return o||r||!i?n(e):t(e)}},partial:!0},ka={tokenize:function(e,t){let n=0,r=0;return o;function o(a){return 40===a?(n++,e.consume(a),o):41===a&&r<n?i(a):33===a||34===a||38===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||60===a||63===a||93===a||95===a||126===a?e.check(xa,t,i)(a):null===a||yn(a)||kn(a)?t(a):(e.consume(a),o)}function i(t){return 41===t&&r++,e.consume(t),o}},partial:!0},xa={tokenize:function(e,t,n){return r;function r(a){return 33===a||34===a||39===a||41===a||42===a||44===a||46===a||58===a||59===a||63===a||95===a||126===a?(e.consume(a),r):38===a?(e.consume(a),i):93===a?(e.consume(a),o):60===a||null===a||yn(a)||kn(a)?t(a):n(a)}function o(e){return null===e||40===e||91===e||yn(e)||kn(e)?t(e):r(e)}function i(e){return un(e)?a(e):n(e)}function a(t){return 59===t?(e.consume(t),r):un(t)?(e.consume(t),a):n(t)}},partial:!0},wa={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return cn(e)?n(e):t(e)}},partial:!0},Sa={name:"wwwAutolink",tokenize:function(e,t,n){const r=this;return function(t){if(87!==t&&119!==t||!La.call(r,r.previous)||Ra(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(va,e.attempt(ba,e.attempt(ka,o),n),n)(t)};function o(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:La},Ca={name:"protocolAutolink",tokenize:function(e,t,n){const r=this;let o="",i=!1;return function(t){if((72===t||104===t)&&Oa.call(r,r.previous)&&!Ra(r.events))return e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(t),e.consume(t),a;return n(t)};function a(t){if(un(t)&&o.length<5)return o+=String.fromCodePoint(t),e.consume(t),a;if(58===t){const n=o.toLowerCase();if("http"===n||"https"===n)return e.consume(t),s}return n(t)}function s(t){return 47===t?(e.consume(t),i?l:(i=!0,s)):n(t)}function l(t){return null===t||fn(t)||yn(t)||kn(t)||bn(t)?n(t):e.attempt(ba,e.attempt(ka,u),n)(t)}function u(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:Oa},Ea={name:"emailAutolink",tokenize:function(e,t,n){const r=this;let o,i;return function(t){if(!Aa(t)||!Pa.call(r,r.previous)||Ra(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(t)};function a(t){return Aa(t)?(e.consume(t),a):64===t?(e.consume(t),s):n(t)}function s(t){return 46===t?e.check(wa,u,l)(t):45===t||95===t||cn(t)?(i=!0,e.consume(t),s):u(t)}function l(t){return e.consume(t),o=!0,s}function u(a){return i&&o&&un(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(a)):n(a)}},previous:Pa},Na={};let Ta=48;for(;Ta<123;)Na[Ta]=Ea,Ta++,58===Ta?Ta=65:91===Ta&&(Ta=97);function La(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||yn(e)}function Oa(e){return!un(e)}function Pa(e){return!(47===e||Aa(e))}function Aa(e){return 43===e||45===e||46===e||95===e||cn(e)}function Ra(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}Na[43]=Ea,Na[45]=Ea,Na[46]=Ea,Na[95]=Ea,Na[72]=[Ea,Ca],Na[104]=[Ea,Ca],Na[87]=[Ea,Sa],Na[119]=[Ea,Sa];const Ia={tokenize:function(e,t,n){const r=this;return Sn(e,function(e){const o=r.events[r.events.length-1];return o&&"gfmFootnoteDefinitionIndent"===o[1].type&&4===o[2].sliceSerialize(o[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function ja(e,t,n){const r=this;let o=r.events.length;const i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;o--;){const e=r.events[o][1];if("labelImage"===e.type){a=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(o){if(!a||!a._balanced)return n(o);const s=ln(r.sliceSerialize({start:a.end,end:r.now()}));if(94!==s.codePointAt(0)||!i.includes(s.slice(1)))return n(o);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),t(o)}}function Da(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",o,t],["exit",o,t],["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function Ma(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,a=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),s};function s(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(s){if(a>999||93===s&&!i||null===s||91===s||yn(s))return n(s);if(93===s){e.exit("chunkString");const i=e.exit("gfmFootnoteCallString");return o.includes(ln(r.sliceSerialize(i)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(s)}return yn(s)||(i=!0),a++,e.consume(s),92===s?u:l}function u(t){return 91===t||92===t||93===t?(e.consume(t),a++,l):l(t)}}function za(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,a,s=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):n(t)}function u(t){if(s>999||93===t&&!a||null===t||91===t||yn(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return i=ln(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return yn(t)||(a=!0),s++,e.consume(t),92===t?c:u}function c(t){return 91===t||92===t||93===t?(e.consume(t),s++,u):u(t)}function d(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o.includes(i)||o.push(i),Sn(e,f,"gfmFootnoteDefinitionWhitespace")):n(t)}function f(e){return t(e)}}function _a(e,t,n){return e.check(Rn,t,e.attempt(Ia,t,n))}function Fa(e){e.exit("gfmFootnoteDefinition")}function Ua(e){let t=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:function(e,n,r){const o=this.previous,i=this.events;let a=0;return function(t){if(126===o&&"characterEscape"!==i[i.length-1][1].type)return r(t);return e.enter("strikethroughSequenceTemporary"),s(t)};function s(i){const l=Tn(o);if(126===i)return a>1?r(i):(e.consume(i),a++,s);if(a<2&&!t)return r(i);const u=e.exit("strikethroughSequenceTemporary"),c=Tn(i);return u._open=!c||2===c&&Boolean(l),u._close=!l||2===l&&Boolean(c),n(i)}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";const o={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},i={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},a=[["enter",o,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",i,t]],s=t.parser.constructs.insideSpan.null;s&&en(a,a.length,0,Ln(s,e.slice(r+1,n),t)),en(a,a.length,0,[["exit",i,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",o,t]]),en(e,r-1,n-r+3,a),n=r+a.length-2;break}}n=-1;for(;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}class Ba{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let o=0;if(0===n&&0===r.length)return;for(;o<e.map.length;){if(e.map[o][0]===t)return e.map[o][1]+=n,void e.map[o][2].push(...r);o+=1}e.map.push([t,n,r])}(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length;const n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(const t of r)e.push(t);r=n.pop()}this.map.length=0}}function Ha(e,t){let n=!1;const r=[];for(;t<e.length;){const o=e[t];if(n){if("enter"===o[0])"tableContent"===o[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===o[1].type){if("tableDelimiterMarker"===e[t-1][1].type){const e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===o[1].type)break}else"enter"===o[0]&&"tableDelimiterRow"===o[1].type&&(n=!0);t+=1}return r}function Va(e,t,n){const r=this;let o,i=0,a=0;return function(e){let t=r.events.length-1;for(;t>-1;){const e=r.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const o=t>-1?r.events[t][1].type:null,i="tableHead"===o||"tableRow"===o?k:s;if(i===k&&r.parser.lazy[r.now().line])return n(e);return i(e)};function s(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){if(124===e)return l(e);return o=!0,a+=1,l(e)}(t)}function l(t){return null===t?n(t):mn(t)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):vn(t)?Sn(e,l,"whitespace")(t):(a+=1,o&&(o=!1,i+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),o=!0,l):(e.enter("data"),u(t)))}function u(t){return null===t||124===t||yn(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?c:u)}function c(t){return 92===t||124===t?(e.consume(t),u):u(t)}function d(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter("tableDelimiterRow"),o=!1,vn(t)?Sn(e,f,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):f(t))}function f(t){return 45===t||58===t?h(t):124===t?(o=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),p):b(t)}function p(t){return vn(t)?Sn(e,h,"whitespace")(t):h(t)}function h(t){return 58===t?(a+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),g):45===t?(a+=1,g(t)):null===t||mn(t)?v(t):b(t)}function g(t){return 45===t?(e.enter("tableDelimiterFiller"),m(t)):b(t)}function m(t){return 45===t?(e.consume(t),m):58===t?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),y):(e.exit("tableDelimiterFiller"),y(t))}function y(t){return vn(t)?Sn(e,v,"whitespace")(t):v(t)}function v(n){return 124===n?f(n):(null===n||mn(n))&&o&&i===a?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):b(n)}function b(e){return n(e)}function k(t){return e.enter("tableRow"),x(t)}function x(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),x):null===n||mn(n)?(e.exit("tableRow"),t(n)):vn(n)?Sn(e,x,"whitespace")(n):(e.enter("data"),w(n))}function w(t){return null===t||124===t||yn(t)?(e.exit("data"),x(t)):(e.consume(t),92===t?S:w)}function S(t){return 92===t||124===t?(e.consume(t),w):w(t)}}function qa(e,t){let n,r,o,i=-1,a=!0,s=0,l=[0,0,0,0],u=[0,0,0,0],c=!1,d=0;const f=new Ba;for(;++i<e.length;){const p=e[i],h=p[1];"enter"===p[0]?"tableHead"===h.type?(c=!1,0!==d&&(Ya(f,t,d,n,r),r=void 0,d=0),n={type:"table",start:Object.assign({},h.start),end:Object.assign({},h.end)},f.add(i,0,[["enter",n,t]])):"tableRow"===h.type||"tableDelimiterRow"===h.type?(a=!0,o=void 0,l=[0,0,0,0],u=[0,i+1,0,0],c&&(c=!1,r={type:"tableBody",start:Object.assign({},h.start),end:Object.assign({},h.end)},f.add(i,0,[["enter",r,t]])),s="tableDelimiterRow"===h.type?2:r?3:1):!s||"data"!==h.type&&"tableDelimiterMarker"!==h.type&&"tableDelimiterFiller"!==h.type?"tableCellDivider"===h.type&&(a?a=!1:(0!==l[1]&&(u[0]=u[1],o=Wa(f,t,l,s,void 0,o)),l=u,u=[l[1],i,0,0])):(a=!1,0===u[2]&&(0!==l[1]&&(u[0]=u[1],o=Wa(f,t,l,s,void 0,o),l=[0,0,0,0]),u[2]=i)):"tableHead"===h.type?(c=!0,d=i):"tableRow"===h.type||"tableDelimiterRow"===h.type?(d=i,0!==l[1]?(u[0]=u[1],o=Wa(f,t,l,s,i,o)):0!==u[1]&&(o=Wa(f,t,u,s,i,o)),s=0):!s||"data"!==h.type&&"tableDelimiterMarker"!==h.type&&"tableDelimiterFiller"!==h.type||(u[3]=i)}for(0!==d&&Ya(f,t,d,n,r),f.consume(t.events),i=-1;++i<t.events.length;){const e=t.events[i];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=Ha(t.events,i))}return e}function Wa(e,t,n,r,o,i){const a=1===r?"tableHeader":2===r?"tableDelimiter":"tableData";0!==n[0]&&(i.end=Object.assign({},Ka(t.events,n[0])),e.add(n[0],0,[["exit",i,t]]));const s=Ka(t.events,n[1]);if(i={type:a,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[["enter",i,t]]),0!==n[2]){const o=Ka(t.events,n[2]),i=Ka(t.events,n[3]),a={type:"tableContent",start:Object.assign({},o),end:Object.assign({},i)};if(e.add(n[2],0,[["enter",a,t]]),2!==r){const r=t.events[n[2]],o=t.events[n[3]];if(r[1].end=Object.assign({},o[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){const t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",a,t]])}return void 0!==o&&(i.end=Object.assign({},Ka(t.events,o)),e.add(o,0,[["exit",i,t]]),i=void 0),i}function Ya(e,t,n,r,o){const i=[],a=Ka(t.events,n);o&&(o.end=Object.assign({},a),i.push(["exit",o,t])),r.end=Object.assign({},a),i.push(["exit",r,t]),e.add(n+1,0,i)}function Ka(e,t){const n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}const Ga={name:"tasklistCheck",tokenize:function(e,t,n){const r=this;return function(t){if(null!==r.previous||!r._gfmTasklistFirstContentOfListItem)return n(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),o};function o(t){return yn(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),i):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),i):n(t)}function i(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(t)}function a(r){return mn(r)?t(r):vn(r)?e.check({tokenize:Qa},t,n)(r):n(r)}}};function Qa(e,t,n){return Sn(e,function(e){return null===e?n(e):t(e)},"whitespace")}const $a={};function Za(e){const t=e||$a,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),o=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),i=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(function(e){return rn([{text:Na},{document:{91:{name:"gfmFootnoteDefinition",tokenize:za,continuation:{tokenize:_a},exit:Fa}},text:{91:{name:"gfmFootnoteCall",tokenize:Ma},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:ja,resolveTo:Da}}},Ua(e),{flow:{null:{name:"table",tokenize:Va,resolveAll:qa}}},{text:{91:Ga}}])}(t)),o.push([{transforms:[yi],enter:{literalAutolink:di,literalAutolinkEmail:fi,literalAutolinkHttp:fi,literalAutolinkWww:fi},exit:{literalAutolink:mi,literalAutolinkEmail:gi,literalAutolinkHttp:pi,literalAutolinkWww:hi}},{enter:{gfmFootnoteCallString:xi,gfmFootnoteCall:wi,gfmFootnoteDefinitionLabelString:Si,gfmFootnoteDefinition:Ci},exit:{gfmFootnoteCallString:Ei,gfmFootnoteCall:Ni,gfmFootnoteDefinitionLabelString:Ti,gfmFootnoteDefinition:Li}},{canContainEols:["delete"],enter:{strikethrough:ji},exit:{strikethrough:Di}},{enter:{table:sa,tableData:da,tableHeader:da,tableRow:ua},exit:{codeText:fa,table:la,tableData:ca,tableHeader:ca,tableRow:ca}},{exit:{taskListCheckValueChecked:ga,taskListCheckValueUnchecked:ga,paragraph:ma}}]),i.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:ui,notInConstruct:ci},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:ui,notInConstruct:ci},{character:":",before:"[ps]",after:"\\/",inConstruct:ui,notInConstruct:ci}]},Pi(e),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Ii}],handlers:{delete:Mi}},ha(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:ya}}]}}(t))}const Ja="https://www.tiagpctest.softiabot.com",Xa={BOTTOM_RIGHT:"bottom-right",BOTTOM_LEFT:"bottom-left",TOP_RIGHT:"top-right",TOP_LEFT:"top-left"},es={LIGHT:"light",DARK:"dark",AUTO:"auto"},ts={SPANISH:"es",ENGLISH:"en",FRANCES:"fr"},ns=640,rs=es.AUTO,os=Xa.BOTTOM_RIGHT,is=ts.ENGLISH,as="400px",ss="600px",ls=!1,us=!0,cs=!0,ds=3e4,fs=2e3,ps=e=>{try{return new Date(e).toLocaleTimeString("es-ES",{hour:"2-digit",minute:"2-digit"})}catch{return""}},hs=()=>crypto.randomUUID(),gs=()=>{const{t:e}=V();return T.jsxs("div",{className:"gpc-typing-indicator",role:"status","aria-label":e("ui.typingIndicator.typing"),children:[T.jsx("span",{className:"gpc-typing-dot"}),T.jsx("span",{className:"gpc-typing-dot"}),T.jsx("span",{className:"gpc-typing-dot"})]})},ms=({message:e,showMetadata:t=!1,messageRef:n=null})=>{const{t:r}=V(),o="user"===e.role,i=!o&&e.isStreaming&&!e.content,[a,s]=l.useState(!1);return T.jsxs("div",{ref:n,className:"gpc-message "+(o?"gpc-message-user":"gpc-message-assistant"),role:"article","aria-label":r(o?"ui.message.userMessage":"ui.message.assistantMessage"),children:[T.jsx("div",{className:"gpc-message-content",children:i?T.jsx(gs,{}):o?e.content.trim():T.jsx(ri,{remarkPlugins:[[Za,{autoLinkLiterals:!0}]],components:{a:({node:e,...t})=>T.jsx("a",{target:"_blank",rel:"noopener noreferrer",...t}),table:({node:e,...t})=>T.jsx("div",{className:"gpc-table-wrapper",children:T.jsx("table",{className:"gpc-table",...t})}),thead:({node:e,...t})=>T.jsx("thead",{className:"gpc-table-head",...t}),tbody:({node:e,...t})=>T.jsx("tbody",{className:"gpc-table-body",...t}),tr:({node:e,...t})=>T.jsx("tr",{className:"gpc-table-row",...t}),th:({node:e,...t})=>T.jsx("th",{className:"gpc-table-header",...t}),td:({node:e,...t})=>T.jsx("td",{className:"gpc-table-cell",...t})},children:e.content})}),T.jsxs("div",{className:"gpc-message-timestamp "+(o?"gpc-message-timestamp-user":""),children:[!o&&e.metadata?.modelUsed&&T.jsx("span",{className:"gpc-model-badge",children:e.metadata.modelUsed}),T.jsxs("span",{className:"gpc-timestamp-right",children:[T.jsx("span",{children:ps(e.timestamp)}),!i&&e.content&&T.jsx("button",{type:"button",onClick:async t=>{t.preventDefault(),t.stopPropagation();try{await navigator.clipboard.writeText(e.content),s(!0),setTimeout(()=>s(!1),2e3)}catch(n){}},className:"gpc-copy-button","aria-label":a?"Copiado":"Copiar mensaje",children:a?T.jsx(Z,{size:14}):T.jsx(ee,{size:14})})]})]}),!o&&t&&e.metadata&&T.jsxs("div",{className:"gpc-message-metadata",children:[e.metadata.tokensUsed&&T.jsxs("div",{className:"gpc-metadata-item",children:[T.jsxs("strong",{children:[r("metadata.tokensUsed"),":"]})," ",e.metadata.tokensUsed]}),e.metadata.responseTimeMs&&T.jsxs("div",{className:"gpc-metadata-item",children:[T.jsxs("strong",{children:[r("metadata.responseTime"),":"]})," ",(u=e.metadata.responseTimeMs,u>=1e3?`${(u/1e3).toFixed(1)}s`:`${Math.round(u)}ms`)]}),e.metadata.modelUsed&&T.jsxs("div",{className:"gpc-metadata-item",children:[T.jsxs("strong",{children:[r("metadata.model"),":"]})," ",e.metadata.modelUsed]})]})]});var u},ys=({messages:e,isLoading:t,showMetadata:n=!1,widgetConfig:r=null,hasMoreMessages:o=!1,isLoadingMoreMessages:i=!1,onLoadMoreMessages:a=null})=>{const{t:s}=V(),u=l.useRef(null),c=l.useRef(null),d=l.useRef(0),f=l.useRef(!1),p=l.useRef(null),h=l.useRef(null),g=l.useRef(0);l.useLayoutEffect(()=>{e.length>0&&!f.current&&(u.current?.scrollIntoView({behavior:"instant"}),f.current=!0,d.current=e.length)},[e.length]),l.useEffect(()=>{if(!a)return;const e=new IntersectionObserver(e=>{e[0].isIntersecting&&o&&!i&&(p.current&&(g.current=p.current.scrollHeight),a())},{threshold:1});return h.current&&e.observe(h.current),()=>{h.current&&e.unobserve(h.current)}},[o,i,a]),l.useEffect(()=>{if(!1===i&&g.current>0&&p.current){const e=p.current.scrollHeight-g.current;p.current.scrollTop=e,g.current=0}},[i]),l.useEffect(()=>{const t=e.length,n=d.current,r=e[t-1],o=t>n+1;t>0&&f.current&&(o?setTimeout(()=>{u.current?.scrollIntoView({behavior:"instant"})},150):t>n&&r&&("user"===r.role?u.current?.scrollIntoView({behavior:"smooth"}):"assistant"===r.role&&r.isStreaming&&setTimeout(()=>{c.current?.scrollIntoView({behavior:"smooth",block:"start"})},100))),d.current=t},[e]);const m=r?.widget_customization?.branding?.company_name||"TIA GPC",y=r?.widget_customization?.branding?.company_logo_base64,v=r?.widget_customization?.welcome_message,b=y?.startsWith("data:")?y:y?`data:image/png;base64,${y}`:null,k=v||s("chat.welcome",{companyName:m});return 0!==e.length||t?T.jsxs("div",{ref:p,className:"gpc-messages-container gpc-scrollbar gpc-smooth-scroll",children:[o&&T.jsx("div",{style:{textAlign:"center",padding:"10px"},children:i?T.jsxs("div",{className:"gpc-loading-more-messages",children:[T.jsx("div",{className:"gpc-loading-spinner"}),T.jsx("span",{children:s("chat.loadingMore","Loading older messages...")})]}):T.jsx("div",{ref:h,style:{height:"1px"}})}),e.map((t,r)=>T.jsx(ms,{message:t,showMetadata:n,messageRef:r===e.length-1?c:null},t.id)),T.jsx("div",{ref:u})]}):T.jsx("div",{className:"gpc-messages-container",children:T.jsxs("div",{className:"gpc-empty-state",children:[b?T.jsx("div",{className:"gpc-welcome-logo",children:T.jsx("img",{src:b,alt:m,className:"gpc-welcome-company-logo"})}):T.jsx(se,{className:"gpc-empty-icon"}),T.jsx("h3",{className:"gpc-empty-title",children:k}),T.jsx("p",{className:"gpc-empty-text",children:s("chat.emptyState")})]})})},vs=({onTranscript:e,isLoading:t,disabled:n,onRecordingStateChange:r,onAnalyserChange:o})=>{const{t:i}=V(),[a,s]=l.useState(!1),[u,c]=l.useState(!1),d=l.useRef(null),f=l.useRef([]),p=l.useRef(null),h=l.useRef(null),g=l.useRef(null),m=l.useRef(null),y=l.useRef(null);l.useEffect(()=>()=>{"recording"===d.current?.state&&d.current.stop(),p.current&&"closed"!==p.current.state&&p.current.close(),y.current&&clearInterval(y.current)},[]),l.useEffect(()=>{r&&r(a||u)},[a,u,r]),l.useEffect(()=>{o&&o(h.current)},[h.current,o]);const v=async()=>{try{if(!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return void alert(i("voice.unsupported"));const t=await navigator.mediaDevices.getUserMedia({audio:{echoCancellation:!0,noiseSuppression:!0,autoGainControl:!0,sampleRate:48e3,channelCount:1}});p.current=new(window.AudioContext||window.webkitAudioContext),h.current=p.current.createAnalyser();p.current.createMediaStreamSource(t).connect(h.current),h.current.fftSize=1024,h.current.smoothingTimeConstant=.4,h.current.minDecibels=-85,h.current.maxDecibels=-15;const n=h.current.frequencyBinCount;g.current=new Uint8Array(n);const r=new MediaRecorder(t,{mimeType:"audio/webm;codecs=opus"});d.current=r,f.current=[],m.current=null,r.ondataavailable=e=>{e.data.size>0&&f.current.push(e.data)},r.onstop=async()=>{if(y.current&&(clearInterval(y.current),y.current=null),p.current&&"closed"!==p.current.state&&p.current.close(),m.current=null,0===f.current.length)return;const t=new Blob(f.current,{type:"audio/webm"});c(!0);try{await e(t)}catch(n){alert(i("voice.error"))}finally{c(!1),f.current=[]}},r.start(100),s(!0),y.current=setInterval(()=>{(()=>{if(!h.current||!g.current)return;h.current.getByteTimeDomainData(g.current);let e=0;for(let t=0;t<g.current.length;t++){const n=(g.current[t]-128)/128;e+=n*n}if(100*Math.sqrt(e/g.current.length)<1.2){if(m.current||(m.current=Date.now()),Date.now()-m.current>2e3)b()}else m.current=null})()},100)}catch(t){"NotAllowedError"===t.name||"PermissionDeniedError"===t.name?alert(i("voice.permissionDenied")):alert(i("voice.unsupported"))}},b=()=>{(a||"recording"===d.current?.state)&&(d.current&&"recording"===d.current.state&&d.current.stop(),y.current&&(clearInterval(y.current),y.current=null),m.current=null,s(!1),d.current&&d.current.stream&&d.current.stream.getTracks().forEach(e=>e.stop()))},k=n||t||u,x=i(u?"voice.processing":a?"voice.stop":"voice.record");return T.jsx("button",{type:"button",onClick:e=>{e.preventDefault(),e.stopPropagation(),a?b():v()},disabled:k,className:"gpc-voice-button "+(a?"gpc-voice-recording":""),"aria-label":x,title:x,children:u?T.jsx("span",{className:"gpc-spinner"}):a?T.jsx(le,{className:"gpc-icon gpc-voice-icon-active"}):T.jsx(ue,{className:"gpc-icon"})})},bs=({analyser:e,isRecording:t})=>{const n=l.useRef(null),r=l.useRef(null);return l.useEffect(()=>{if(!t||!e||!n.current)return;const o=n.current,i=o.getContext("2d"),a=e.frequencyBinCount,s=new Uint8Array(a),l=window.devicePixelRatio||1,u=o.getBoundingClientRect();o.width=u.width*l,o.height=u.height*l,i.scale(l,l);const c=u.width,d=u.height,f=()=>{if(!t)return;r.current=requestAnimationFrame(f),e.getByteFrequencyData(s),i.clearRect(0,0,c,d);const n=(c-200)/2;for(let e=0;e<40;e++){const t=Math.floor(e*a/40),r=s[t]/255,o=Math.max(2,r*d*.8),l=n+5*e,u=(d-o)/2,c=i.createLinearGradient(0,u,0,u+o);c.addColorStop(0,"rgba(59, 130, 246, 0.8)"),c.addColorStop(1,"rgba(96, 165, 250, 0.6)"),i.fillStyle=c,i.fillRect(l,u,3,o)}};return f(),()=>{r.current&&cancelAnimationFrame(r.current)}},[e,t]),t?T.jsx("div",{className:"gpc-audio-waveform-container",children:T.jsx("canvas",{ref:n,className:"gpc-audio-waveform-canvas","aria-label":"Audio waveform visualization"})}):null},ks=({onSendMessage:e,isLoading:t,disabled:n,gpcService:r,showBranding:o=!0})=>{const{t:i}=V(),[a,s]=l.useState(""),[u,c]=l.useState(!1),[d,f]=l.useState(null),p=l.useRef(null);l.useEffect(()=>{n||t||u||p.current?.focus()},[n,t,u]),l.useEffect(()=>{p.current&&(p.current.style.height="auto",p.current.style.height=`${Math.min(p.current.scrollHeight,120)}px`)},[a]);const h=async r=>{r.preventDefault();const o=(e=>e.trim().slice(0,2e3))(a);if(o&&!t&&!n&&!u)try{await e(o),s(""),p.current&&(p.current.style.height="auto")}catch(i){}},g=a.trim().length>0&&!t&&!n&&!u,m=t||n||u,y=n||a.trim().length>0;return T.jsxs("form",{onSubmit:h,className:"gpc-input-container",children:[T.jsxs("div",{className:"gpc-input-wrapper",children:[T.jsx("textarea",{ref:p,value:a,onChange:e=>s(e.target.value),onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||u||(e.preventDefault(),h(e))},placeholder:u?"":i("chat.placeholder"),disabled:m,maxLength:fs,className:"gpc-input gpc-textarea "+(u?"gpc-input-recording":""),"aria-label":i("chat.placeholder"),"aria-describedby":"chat-input-help",rows:1}),T.jsx(bs,{analyser:d,isRecording:u})]}),T.jsxs("div",{className:"gpc-input-actions-right",children:[T.jsx(vs,{onTranscript:async e=>{if(!r)throw new Error(i("toast.gpcServiceNotAvailable"));const t=await r.transcribeAudio(e);t.success&&t.text&&(s(t.text),p.current?.focus())},isLoading:t,disabled:y,onRecordingStateChange:e=>{c(e)},onAnalyserChange:e=>{f(e)}}),T.jsx("button",{type:"submit",disabled:!g,className:"gpc-send-button","aria-label":i("chat.send"),title:i("chat.send"),children:t?T.jsx("span",{className:"gpc-spinner"}):T.jsx(fe,{className:"gpc-icon"})})]}),T.jsxs("div",{className:"gpc-footer-container",children:[T.jsx("span",{className:"gpc-ai-disclaimer",children:i("chat.aiDisclaimer")}),o&&T.jsx("span",{className:"gpc-powered-by",children:i("widget.poweredBy")})]}),T.jsxs("span",{id:"chat-input-help",className:"gpc-sr-only",children:[i("chat.placeholder"),"."," ",i("input.maxCharacters",{count:fs})]})]})},xs=({isOpen:e,onClose:t,onConfirm:n,message:r,confirmText:o,cancelText:i,variant:a="danger"})=>{const{t:s}=V();if(!e)return null;return T.jsx("div",{className:"gpc-confirm-toast-container gpc-animate-slide-down",children:T.jsxs("div",{className:"gpc-confirm-toast "+("danger"===a?"gpc-confirm-toast-danger":""),children:[T.jsx("p",{className:"gpc-confirm-toast-message",children:r}),T.jsxs("div",{className:"gpc-confirm-toast-actions",children:[T.jsx("button",{type:"button",onClick:e=>{e.preventDefault(),e.stopPropagation(),t()},className:"gpc-confirm-toast-button gpc-confirm-toast-button-cancel gpc-focus-visible gpc-transition",children:i||s("conversations.cancel","Cancel")}),T.jsx("button",{type:"button",onClick:e=>{e.preventDefault(),e.stopPropagation(),n(),t()},className:"gpc-confirm-toast-button gpc-confirm-toast-button-confirm gpc-focus-visible gpc-transition",children:o||s("conversations.delete","Delete")})]})]})})},ws=({conversations:e,totalConversations:t,currentConversationId:n,onSelectConversation:r,onNewConversation:o,onRenameConversation:i,onDeleteConversation:a,isLoadingHistory:s,hasMoreConversations:u,isLoadingMoreConversations:c,onLoadMore:d})=>{const{t:f}=V(),p=l.useRef(null),[h,g]=l.useState(null),[m,y]=l.useState(""),[v,b]=l.useState({isOpen:!1,id:null,title:""});l.useEffect(()=>{const e=new IntersectionObserver(e=>{e[0].isIntersecting&&u&&!c&&!s&&d()},{threshold:1});return p.current&&e.observe(p.current),()=>{p.current&&e.unobserve(p.current)}},[u,c,s,d]);const k=e=>{const t=new Date(e),n=new Date-t,r=Math.floor(n/6e4),o=Math.floor(n/36e5),i=Math.floor(n/864e5);return r<1?f("time.justNow","Just now"):r<60?f("time.minutesAgo",`${r} min ago`,{count:r}):o<24?f("time.hoursAgo",`${o}h ago`,{count:o}):i<7?f("time.daysAgo",`${i}d ago`,{count:i}):t.toLocaleDateString()},x=()=>{g(null),y("")},w=e=>{m.trim()&&i&&(i(e,m.trim()),g(null),y(""))};return T.jsxs("div",{className:"gpc-conversations-container",children:[T.jsxs("div",{className:"gpc-conversations-header",children:[T.jsx("h3",{className:"gpc-conversations-title",children:f("conversations.title","Conversations")}),T.jsxs("button",{type:"button",onClick:e=>{e.preventDefault(),e.stopPropagation(),o()},className:"gpc-new-conversation-button gpc-focus-visible gpc-transition",disabled:s,"aria-label":f("conversations.new","New"),children:[T.jsx(se,{size:16}),T.jsx("span",{children:f("conversations.new","New")})]})]}),T.jsx("div",{className:"gpc-conversations-list",children:0===e.length?T.jsxs("div",{className:"gpc-conversations-empty",children:[T.jsx(se,{size:48,className:"gpc-conversations-empty-icon"}),T.jsx("p",{className:"gpc-conversations-empty-text",children:f("conversations.empty","No conversations yet")}),T.jsx("p",{className:"gpc-conversations-empty-hint",children:f("conversations.emptyHint","Start a conversation to see it here")})]}):T.jsxs("div",{className:"gpc-conversations-items",children:[e.map(e=>T.jsx("div",{className:`gpc-conversation-item gpc-animate-fade-in ${n===e.conversation_id?"gpc-conversation-item-active":""} ${s?"gpc-conversation-item-disabled":""}`,children:T.jsx("div",{className:"gpc-conversation-content gpc-transition",onClick:()=>h!==e.conversation_id&&!s&&r(e.conversation_id),children:h===e.conversation_id?T.jsxs("div",{className:"gpc-conversation-edit",children:[T.jsx("input",{type:"text",value:m,onChange:e=>y(e.target.value),onKeyDown:t=>{"Enter"===t.key&&w(e.conversation_id),"Escape"===t.key&&x()},className:"gpc-conversation-edit-input gpc-focus-visible",placeholder:f("conversations.untitled","Untitled conversation"),autoFocus:!0,maxLength:200}),T.jsxs("div",{className:"gpc-conversation-edit-actions",children:[T.jsx("button",{type:"button",onClick:t=>{t.preventDefault(),t.stopPropagation(),w(e.conversation_id)},className:"gpc-conversation-action-button gpc-conversation-action-save gpc-focus-visible gpc-transition",title:f("conversations.save","Save"),"aria-label":f("conversations.save","Save"),children:T.jsx(Z,{size:16})}),T.jsx("button",{type:"button",onClick:e=>{e.preventDefault(),e.stopPropagation(),x()},className:"gpc-conversation-action-button gpc-conversation-action-cancel gpc-focus-visible gpc-transition",title:f("conversations.cancel","Cancel"),"aria-label":f("conversations.cancel","Cancel"),children:T.jsx(ge,{size:16})})]})]}):T.jsxs(T.Fragment,{children:[T.jsxs("div",{className:"gpc-conversation-header",children:[T.jsx("h4",{className:"gpc-conversation-title",children:e.title||f("conversations.untitled","Untitled conversation")}),T.jsxs("div",{className:"gpc-conversation-actions",children:[T.jsx("button",{type:"button",onClick:t=>{t.preventDefault(),t.stopPropagation(),(e=>{g(e.conversation_id),y(e.title||"")})(e)},className:"gpc-conversation-action-button gpc-focus-visible gpc-transition",disabled:s,title:f("conversations.rename","Rename"),"aria-label":f("conversations.rename","Rename"),children:T.jsx(de,{size:16})}),T.jsx("button",{type:"button",onClick:t=>{var n,r;t.preventDefault(),t.stopPropagation(),n=e.conversation_id,r=e.title||f("conversations.untitled","Untitled conversation"),b({isOpen:!0,id:n,title:r||f("conversations.untitled","Untitled conversation")})},className:"gpc-conversation-action-button gpc-conversation-action-delete gpc-focus-visible gpc-transition",disabled:s,title:f("conversations.delete","Delete"),"aria-label":f("conversations.delete","Delete"),children:T.jsx(he,{size:16})})]})]}),T.jsxs("div",{className:"gpc-conversation-metadata",children:[T.jsxs("div",{className:"gpc-conversation-meta-item",children:[T.jsx(se,{size:12}),T.jsx("span",{children:e.total_messages})]}),T.jsxs("div",{className:"gpc-conversation-meta-item",children:[T.jsx(X,{size:12}),T.jsx("span",{children:k(e.last_modification_date)})]})]})]})})},e.conversation_id)),c&&T.jsxs("div",{className:"gpc-conversations-loading",children:[T.jsx("div",{className:"gpc-loading-spinner"}),T.jsx("span",{children:f("conversations.loadingMore","Loading more...")})]}),u&&!c&&T.jsx("div",{ref:p,style:{height:"1px"}})]})}),T.jsx(xs,{isOpen:v.isOpen,onClose:()=>{b({isOpen:!1,id:null,title:""})},onConfirm:()=>{v.id&&a&&a(v.id),b({isOpen:!1,id:null,title:""})},message:f("conversations.confirmDelete",{title:v.title,defaultValue:`Delete "${v.title}"?`}),confirmText:f("conversations.delete","Delete"),cancelText:f("conversations.cancel","Cancel"),variant:"danger"})]})},Ss=({version:e=ve})=>{const{t:t}=V();return T.jsxs("div",{className:"gpc-conversations-container",children:[T.jsx("div",{className:"gpc-conversations-header",children:T.jsx("h3",{className:"gpc-conversations-title",children:t("about.title")})}),T.jsxs("div",{className:"gpc-about-panel-content",children:[T.jsx("div",{className:"gpc-about-panel-logo",children:T.jsx("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOsAAADJCAYAAADCbsXoAAABN2lDQ1BBZG9iZSBSR0IgKDE5OTgpAAAokZWPv0rDUBSHvxtFxaFWCOLgcCdRUGzVwYxJW4ogWKtDkq1JQ5ViEm6uf/oQjm4dXNx9AidHwUHxCXwDxamDQ4QMBYvf9J3fORzOAaNi152GUYbzWKt205Gu58vZF2aYAoBOmKV2q3UAECdxxBjf7wiA10277jTG+38yH6ZKAyNguxtlIYgK0L/SqQYxBMygn2oQD4CpTto1EE9AqZf7G1AKcv8ASsr1fBBfgNlzPR+MOcAMcl8BTB1da4Bakg7UWe9Uy6plWdLuJkEkjweZjs4zuR+HiUoT1dFRF8jvA2AxH2w3HblWtay99X/+PRHX82Vun0cIQCw9F1lBeKEuf1UYO5PrYsdwGQ7vYXpUZLs3cLcBC7dFtlqF8hY8Dn8AwMZP/fNTP8gAAAAJcEhZcwAACxMAAAsTAQCanBgAAAa9aVRYdFhNTDpjb20uYWRvYmUueG1wAAAAAAA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA2LjAtYzAwNSA3OS4xNjQ1OTAsIDIwMjAvMTIvMDktMTE6NTc6NDQgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIiB4bWxuczpwaG90b3Nob3A9Imh0dHA6Ly9ucy5hZG9iZS5jb20vcGhvdG9zaG9wLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdEV2dD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlRXZlbnQjIiB4bXA6Q3JlYXRvclRvb2w9IkFkb2JlIFBob3Rvc2hvcCAyMi4xIChXaW5kb3dzKSIgeG1wOkNyZWF0ZURhdGU9IjIwMjUtMDctMDlUMTg6Mzc6MjAtMDU6MDAiIHhtcDpNb2RpZnlEYXRlPSIyMDI1LTA3LTEwVDE3OjA4OjU3LTA1OjAwIiB4bXA6TWV0YWRhdGFEYXRlPSIyMDI1LTA3LTEwVDE3OjA4OjU3LTA1OjAwIiBkYzpmb3JtYXQ9ImltYWdlL3BuZyIgcGhvdG9zaG9wOkNvbG9yTW9kZT0iMyIgcGhvdG9zaG9wOklDQ1Byb2ZpbGU9IkFkb2JlIFJHQiAoMTk5OCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6OGNiZjk1NDQtOTNkOC0xZTQzLWJkYTItYzFmNTc2NjA3NGNjIiB4bXBNTTpEb2N1bWVudElEPSJhZG9iZTpkb2NpZDpwaG90b3Nob3A6OTU2MTBmYjUtNTU3NS1mNTQ1LWFmOGEtZDM0YTlmMjI4NTUwIiB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6NGEzMmM4MDMtZDA2YS0yYjRiLWI1YzEtZDA1ZWQ3MzFhYTlkIj4gPHhtcE1NOkhpc3Rvcnk+IDxyZGY6U2VxPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0iY3JlYXRlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDo0YTMyYzgwMy1kMDZhLTJiNGItYjVjMS1kMDVlZDczMWFhOWQiIHN0RXZ0OndoZW49IjIwMjUtMDctMDlUMTg6Mzc6MjAtMDU6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCAyMi4xIChXaW5kb3dzKSIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6MjE0MzlhOTgtOWNkNS1lYzRjLWFhNjAtZjgxNGNmZWVlNmNkIiBzdEV2dDp3aGVuPSIyMDI1LTA3LTA5VDE4OjU0OjE4LTA1OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgMjIuMSAoV2luZG93cykiIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjhjYmY5NTQ0LTkzZDgtMWU0My1iZGEyLWMxZjU3NjYwNzRjYyIgc3RFdnQ6d2hlbj0iMjAyNS0wNy0xMFQxNzowODo1Ny0wNTowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIDIyLjEgKFdpbmRvd3MpIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDwvcmRmOlNlcT4gPC94bXBNTTpIaXN0b3J5PiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pl30aR8AACBpSURBVHic7Z15mBbFncc/PcAMYETkBtGAGiUGYhYliGFXJBoP1HCpicEQnNkY8TZq4nqFGI0RXaMoxuwMLEI8UMQo4hHvIISorBtYj6CAyn2M3McMTO8f9b5Md7/Vx/u+XX28b32e533e7urqX/3q+PZR3V1lmKaJRqNJPhVxO6DRaIKhxarRpISWYRozDjsvTHPlTgXQA+gF9M78OgEdM79OwMFAa6BNZp+DMvs1AVsyYbuA3cCXwEZgk+W3DFgOrABWZ/bThID5+czQbYYqVk1BGAghfhPoZ/nvDVQWaLMCIWQs/340IIS7GPhH5n8xQtC6YyMBaLFGTxtgAPCvwKDMr0OsHgkqgaMzv9GW8HpgQeb3V+AdxNlaEzFarNHQDzgdOAshzlbxupMXHYBhmR9AI0K4czO/xTH5VXYYYT660fes+2kJDEWcoc4AesbrjlJWAi8As4BXgb3xupMM9D1rsmkBDAHOBUYhOoDKgZ7Av2d+G4GngZnAG8C++NwqPbRYi+cw4CJgXGa5nOkE/DTz+wKYCtQBn8fpVKmgn7MWRgUwAnHPthy4FS1UJ4cCtyDKZy6ivHR7KwJdePnRFrgE+BhxuXcGugz9qECU09OIcrsEUY6aPNENLRgdgAnAZ8Bk4Mh43UktRyLK7zNEeSbhkVVq0GL15iDEJe4yxCVduXQaqaYTojyXAb9ClLPGBy1WOW2AX6Ibk2qsB8MbaH5tUiNBi9WOAfwQ+Aj4LfoyLSo6AHcgyv2HiHrQONBibeYEYD7wKLpnNy4OQ5T/fER9aCxosUJ74GF0A0kS2QPnHxH1o0GLdQTwf4iH+PrSK1kYiLei/g8YGbMviaBcxdoV8S7r04hvRjXJpQeirmYh6q1sKUexnon4XlMfrdPFSES9DfOLWKqUk1jbAA8Ac4AuMfuiKYwuwHOIeiy7xzzlItY+wLvApeh707RjIOrxXUS9lg3lINZRwN+BY+J2RBMqxyDqdVTcjkRFKYu1BXAn8CRwYMy+aNRwIKJ+70LUd0lTqmI9CPFZ1i/Ql72ljgFchxitoqRfCy1FsR4GzAO+F7cjmkg5FVHvJfv2WamJ9Tjgb0DfuB3RxEJfYCGiHZQcpSTW7wFvAt3jdkQTK90Q7aDkrqxKRazDEc/fDojZD00yOADRHobH7EeolIJYL0D0CBY6er2mNKlEtIsL4nYkLNI+umE14ouZaLrtu53BoNPGMeFcGHgUtGsdSaqRs2wtHHFiDezdGrcrxdISeATxtlNdzL4UTZrF+hPEJ1Tqrw46D+HpyeMZMVB5Song8G6wfGEtvQeWhGBbINrJPuC/43WlONIq1vOAWqIQ6qDHMJ8o+eftOfTqDCvfqaXngJIQbAWivewCnojZl4JJo1hPB6YTxaWvQ6gfroJj/v1TWHo/7FmjPPm4mP7oTMYMhkM6QudTa9nwQklMi9ICcUm8BXgxZl8KIm0dTAMQ3zWq70zqdoZNqKffDsd8ZwwsuaGkhQqwalPz8vqH4Wsjw5+3JSYqEe0nlTc0aRJrT8TH4pEMEP36tHH7l8++C156+Dxoaogi6dhZ57jq/efv4bgLSkawbYGnSOFkYWkRa/Zd32gKuOf5DPm6WPxwFcyZPCaSZJPC2i9zw969EwaNLRnB9kS0p1S9S5wGsbZAHAn7RZXgqcOav7o65mfryuaMmmXFBnn4/NvgtItLRrD9EO0qNb2HaRDrHcApUSZ43dmWlaUTo0w6EWzc5r7txRvh/KtmQkVJvINyCqJ9pYKki3UU4vOnSBlwhGVl99qok48d2WWwlcevgZ9cN6NUBHsdKfmAPcli/Tpifs/Iv0dtb33DuMwugQG27Wi0re9pzI0z9VIYf0tJCNYApiDaW6JJqljbIO4n9AgPcbDTPvfxouVgnPlpTrQHL4Jf3F4Sgm2HaG+JHoQtqWKdiB4zKT4a6m2r3Q8GltyAcdo/ME3Ttu3OH8GEu2dARVWEDirhGES7SyxJFOtZwPi4nShrTPt1b9fsA44Pf0PFKX/PEewto+HeB6aXgmDHI9pfIkmaWLsi3uHU4ybFyS77G1ptrFe5S++h4rtv5Aj2qrPgwYdTL1gD0f66xe2IjKSJdTJlPkVCImjcnhtmFeEnD1Ex5KWcjqfxp8G0adOhRaq7GroCD8bthIwkiXUkekqLZLBP8qDVcHQiLZ9C65Nm5Qj2xyfBU4/WQct26vxTTyLbYlLE2h6YFLcTmgx7JWdWQ3JnsvIJWp84ja277cGjBsHTj9WmXbCTSNh0k0kR6+/Qs7klB9mz5cr28rjrnueg7zycI9gRA+H5p2qhqlPo7kVED8Tg4YkhCWI9ATEPpyYpyD429+o42vAqB534ABs224PP7A+vzZ4MVanthqghQRNsxy3WCsTlhu79TRL79uSGtfQZOHLjW3Q5+V7W2B/RcnJfmP/8JKhK5QixBqJ9xq0TIH4nxgLHx+yDJod9uUEtArzcs2kBPYbcaft4HWDQUfDey/dB21QOln88op3GTpxibQv8Jsb0NW7slZxZgz4/3byIniffkfOZXf/esPiVu6Ftr6Ldi4HfENGgB17EKdYr0Z1KycQs8uOFze/T+6SbcwTbtyd89Ppd8JWvFWc/enog2musxCXWdsC1MaWtKYSqPI+r2z+m90k38rFjuKqju8PyN2+HdqmbjuhaYh5ZIi6xXg10iCltjS+mf5QgbF9Kn5OvZ9Fye3CvzrDyzVugff9w0omGDsBVcToQh1g7IMSqSSphfsO7cwXHnXEtC/5pDz6kI6x/65fQIVUDDcZ6kolDrFeRsoGqNECbIh697PycE4ddyRsf2oM7t4f1b/wcOg4qyrUIOYgYz67qxWr/MPkrwKUB4+aGuS0X6k+YH01XVDbbC2I3n/he5RLERjatPPLrfMHBNw3Zdqtve9Zw8jmX8/oSe5TO7eHLeVdD5++62/fzPd96lLUBtzRy83QZoh0XlnYRhC9Wa8OoqHReUo0DOuQUjLPhyvZ3FkpTQ24BByl45yWeX2P3smndZvUz65tsfy+fvfxx7pdNw/rvjJuN39TgfmnrcvDaIRnKRbqPjx2br41fMnTEeOYusm9ufwBsefti6Hxqrk1n2QY5KMmWnf545cfZ/uzrBwMX2cpWtp8CwhWrszFZwyoqK6iovMKWSWuBOBuUsxCcFSYrLGt6zkKWiSbovZnVRz+xOf122+aWT+e/TIjWf6sNN0G7+Wxd9zowArTtnruPmy0n1rDGrQw7fzyzFtijtGsNO98eCz3Pz61fZ/m51aszvXwOmrK8W/e32q6ovByo8DwgKEDdZXBu4Z0NHOm6PegZR5aO11kviI9eZ09nOn72/WwECfOL41d2QdJzK7NMWL3kwxtp2kHScdK4ldE/qmHGPHtwm0rY/eYo6Hmed3pByadN5Fc3RyLac2F+FUiUHUw/jTAtTZGsdgxHWhH2q4JNu7nwxzXUvWYPrmoFu18/B3rVhJte+ETenqMS62GI2d80KWHhx/b14d9WkEjTbmqqq5n8kj24qhU0vX4SHHG5gkRD43Tgq1EmGJVYL4owLU0I/Pdf7ev3/BiUfBxl7uHSn1Xzuz/bgw3DoOmVb8PR14efZjhUIDpMI00wijQuiiAdTYisfGeabb1XZ2h30nRl6f3y2vE8Pt8eZhgG5kvfhH53KEu3SC4iwrlyophMeQhwaATpaMJkwyssWj6W/r2bg7ZMg7GTZ/DI0++I4UqrukKLKiraisn9DusMrVrCIe3Fpezh3aCqBfToKDqPenUWR+4jukMrQ7zFVNXK3xXzucMwht8L7yfuxbdDEe371SgSM5xDShZlrJd0asQ/ABeHlkgEmCtm7F92yVN5cMTlmK8m53XAftfBkicTVx//haSzydqGwkL1ZXBLUjLpj0bCp5M46Za4nWhm8UQYeEH4IiiSEUCA64PiUS3WoUBqR8zSwFuPjKHF+fLJqeLgb3dAr7MSJdhOiHauHNX3rOcqtq+JgKaFY2h97FfpOeR27h8L3z1WhG/cDJt3iSkid+2BNVthx25YtxW27sj8b4d1W8Tri2s3w959+2DnGmjcAY2bYd8uaNgETXtgzzphuHGbWG/cDjSKkSvMBswVooPrxRuhz5wYCsKd0cBLvrGKRKVYDeBMhfY1UbLzM1bOHcPIuXE7Ij5gTxjnIPplmlQmovIyuC962BZNedAFGKA6EZViHabQtkaTNE71j1IcKsX6PYW2NZqkoby9qxJrG+A7imxrNElkIIqHK1Ul1gFANN8NaTTJoBLFA9arEqs+q2rKkcEqjWuxajThobTdq3g32AA2krRxgVu1gz7/wdXn9eSMY2HgUWIoEU36MU2T/1lhMHM+/O7xlfDRHdAomQlPPfWIN5pMFe8GqxBrb2BZaEaLxoB+d7N6Wle6J+vwoVHEmnroMXYdLL6W0AYsD87hwPK0vMj/TQU2C6OiNRPuno75nBZqOdG9A5jPdWXC3dOhIvLLp2+pMqxCrMcqsJk/RhW1tbXcMjpuRzRxcctoqK2tBSPgDHjh0E+V4ZDfDTYAs599+A+vyxDDEscIENeUrMvSMvi3C+uo9vgWYutu8SK6jMO7NS8vW+vhkiZS3OqlU3v3/ofqofDIhXW89Uj2O1hru3G2pyzO7X7bbGHKxKrgntX4EOjTHGoVlDVTTrG5CQ9HuCyuY1uP0Zjzh+ds2bAZuozbCUtugMZ6+z6WtLJfdzTnyeqHWx68fILgDUS27tdo/ML96gCXZb9yl+XFbT9nPDd/3crRdAwKcKF9c6sOcOztrK/9Cp3b5+5tnPgMrJ4ltZvrl1d5y7bbfP8IzK+n4J7VaAkc4QiTLDv/ncvZdUMSLotr3/bUPcNzQj9eA10G/xr+52Jo3JSzj3da1m1+/+5+eaflte4VP0i4Xx24LTsJUkdBytDLX7dy9Cnfxnp49xK6DP51zjSTgLRN2H0LEua23eb7ERkdhE7Y96yHEtFX864c3J9RjnmOTNOkz/enwvalmRA/YWlSy/al9DnrYZxXjKMGAQdHMsVkK8TQu6ETtlgPD9le3nQ6LndQrcumGrD+NUlsTUmyaZ6ocwedvx3ZgGtKdBC2WJUcUfLh2rNzwyZPeTZ6RzSxMrn2mZywn0c3FIKS0TzDvrbuGbK9vDlH9ir1ur9E7ocVa4eVKmr+AHV3ik6X2inTbT3hfa6Ej/98ocue7tz02+nc9sPm9UXL4biT87cTCxteBobbgs45Hn4ZTepKdBD2mbVjyPbypldn+/quBsRYP5r8aN3VJlSA/r2hzWD1B55QaNzG1t32oMO7RJa6kkECwxZrZ/8oamnj+DBv3ZZ4/Eg7R592tzR8UormVqjfZl8PMqB4SKRCrHrY0RLh0avk4dVDgR7DI/QklSjRQdj3rLFfBieRnAf4LrQZPJ2djmfpQfcNlSOvsE2bUfcatnvg6h+Pou7OZyJ3K0UoeRM97DOrfl2+BLip2j5QX80d79jWJ5wLtO4aoUepQ8lJK2yxHhCyPU3UODqWVm0CPrmfmx9rDjuko/s9bZJoFd8ko0pmlgs7O5F+3hCEGCssb1pGNnmgO33Ptovw1ifF/2+e2GALd7unTRKNSofc9qSdCqNhN+UDQ7anCYFWeQxdN228fb3uxYxI379GnGUz9O8NfOs/i/ZNJTEeqJW8zxp2dlJ0HtPk4OhYWrQceP+a/evj/mCPXntF7E/qkoqS20EtLs1+nB1LYyfbt//l+Wds69VDierl+LSRiq9uNGmldfecN5aWvHKvPWD1LOYusgedOjqyl+PTxF4VRsMWa3y39Jqi6Hv2Xbb1uteALxflxPvBffb1aZcArZM3rVvM7FBhNGyxbvOPokkizo6lmvs3SONtW3g9ayyDbHTvAAcOvEsat4xRMqRi2GLdA4Dh0v3oDM+uu4W74be9GIq17ZanMNLzKyejMr90s3EdHUtr6rF1LNn22b2Gm2fagx+/MliS+21Y/4PGz5dC9vPaJz+/lQxaHLZYm0//1sxll80G+7YsznC3eFlb1u1BG6hXQ7f6mrXtFc+Zttv+sjhePrn57dzfWQ5WW07/ndsltib8zN6x9L3fusTP2K57yv5G05n9gSOv8C8fpy8yf7zy7JUfv7J2EsQ/2XazIbfOc+Pv83cgf8IVq1FZLy1gawadRyhZuNe6dd+sbWs8uV/etp1x3HA7iGTDnBUpi+MlPr90nWkHadRWG7JtVR1zhmvd37Hkltanf8jpaLqpekBu/mUHrnzy4rThRNYO/JD5YbVlrUe3PLj534xzkK9QCPvMKncyyJEuX4KIK8y0ghy1VfkShl0XG9KOpc1LfM394jH7+m0/JPcxTqFXE874Qc+U+doNsq2wsq/3j5I/YT8P2hiyPY1inB1L1UOhenldQbb6nnI1S56qDsGr1KNEB2GfWeVdiJpk8rXLbR1LxfLyDeHZSjmpEKuSa3WNGib89Fuh2uveAQ78t8LOyiVGKsS6MmR7GlVIOpbC4N6x4dtMIUp0EPY96+ch29MowtmxtKYeehyX//1m39F1LJ7YvF49FGoO+T6s+nOxLqaZL1QYDfvMmqB5WTVeODuWxj1UmJ0lz99oe6MJ4JJx5xRmrHRQooOwxfoF0BiyTU3YSDqWXnqhwIHQd63lttn2oMnVQJtu0uhlQCOKrjDDFute4NOQbWpC5pLzv2Vbn7uIoi5bH3ri/ZywvsNuL9heyvmUlHx1A+D/RF0TH226iTOfBecLDnmzdJL4UN2C8zK7jFDW/lWIdbECm5qQcJ7x1tSL+85icX6o3r83cNx90rgljrL2r0Ks/6vApiYknGe822YDu4qf3l0m+NrxXynabgpJlVj/ocBmYPY4urc6tQMMPR8rIO1Ykt1vFsSutfz6KXuQGPblX8KxXwAdHMP3OduGIt5XZViFWFeg6EXmQIk73h2pagVUto/DlbxRfUhxdiwtWg4snRSa/Vsf356b5qWXhWY/L6oOzpn3yNk2FFCPaP9KUCFWE1jgulXlWc4weOE9SXi3s9SlmRT8ylXSseS8zyzIrnX7e1fmPHO9eQTxPMbpMSwnSNo2nOTbPu3x/4aiUSIg7DeYmh2fj2kOwzDANO0Zyq5b/3P3t8d3puEMs8S970W4yqHNq6uHcO+tM+Tpu6Xj5pNfPKtdt7iyfU2TrW9VYzhfrHcrO1m6mfWamhpqJPGN3tXy8vMKyycumbegZD561ZssH364iSqz/9XjTs7ZNPkVFzuyNL3yKfsXvJ1XHvIk/DOrcHReToYsjckR1/tolq3o7M9n24q/T80xcc8YE7qckptudtnqh9cBwy2eNY9ejdyZD9myzAe3xiQrD9m67N8tr05hOfeVxfMqF786c/NBFt+JW7l0PVXUuYOl86fmlkG2zpx1YRWhc5vsX/gzLycsRMIXq3D0HaBBmllrPFkhBE3DrZI3vs2sBc5gg49m/wAO+oa7YPwOGLJ0gwrPr0H65dGrgeRjzyvcL29u6XsdSPP1wcsfv/2yHPQNPpr9AwzHtlkLgI1vu6fnZjt4u2zAMN4NGrkQVI0bvAuYr8i2L6NvfD0n7OjusP71q6kYUKuHzixFWnenYkAt61+/mqMl1StrEyGzENipMgElI4dneAkYotC+Oyv+xPi6k3M6VDq3h31PANzG1t25M2PLWL6wVoGDmmKx1kuHA6Fda/e44+uAFX9S7dLLqhMwzBBvho3Da6yr/YjzmWuLA5g+9T7GDI7NA00CmDEPLhx3JexTMu62lRMQZ1cAzGXhH+RVTp+xBFgdqsV8Diz7dnDhuCuZ+FyoHmhSxMTnIhPqekQ/jVLCFau1Z9A0TUxzrq0n1fqz7uP8t9uR9656hWf/927n+mvG024sbNgcWi41CWfDZmg3Fq6/Zjzs3Z7blqzLsjaU3e61j51nMU3lU8eoObM2Z+ZJx7o9jkyocjvy/ZxhMjt797DtrWq6nHAtxoid3PwYfLgqr9xoUsCHq+Dmx8AYsZMuJ1zLtreqYe+e5giyE4QVmXi99rHHfyonTAHh3rP2zhkWpCWwBugUWiIRYFqG4pTkSRMTCa2XjUAPHIMumAUO5+qF6ikf9wKzFKeh0cTJbCIaHSWK+Vln+kfRaFLLE1ElFIVY30DRaG8aTcx8gWjfkRCFWJuAKRGko9FEzRRAyYxxMqIQK4hM6VnRNaVEE5D71YhCohLr58CLEaWl0UTBi8BnUSYYlVgB/hhhWhqNaiJvz1GK9TngkwjT02hU8QmiPUdKlGJtAu4HxGzSfjNVB4kj20e2HDZZ234+WuP5+VVoXmX7Of0qtCyC1kEYZe20oar+wvF1ErI+GJVtDlWfyMmcFjNIT8Vs+BXQwRbPOSW82/TzsunlreGyWardpqP32+aM4zUbttu09l5xZHn2ypuXTeu/zHe3+E5fnPtl48rqwJqel49u8fz89Ztx3C9uvrac/ri3wS+BKdIyUEy4YvU/y2wHHgRu9twv37OP21nG7azj7WP+24L45rUcdH+v7fnGK/Rsn8/+XvEKLc9C4hbSLtzL5AFEO5bnR+HZNcrL4Cy/B7bEkK5GUyxbEO03FuIQaz1wbwzpajTFci8xjokdh1gh5kxrNAVQT4xnVYhPrFuBu2NKW6MphLuJ+fYtLrEC3EfYw75oNGpYjWivsRKnWHcCN8WYvkYTlJtQPMxoEOIUK8A0QOnAyBpNkbyLaKexE7dYm4DLQd1kPhpNEZiI9pmIL8biFiuImbf+K24nNBoJtYj2mQiSIFaAX6A7mzTJYjVwfdxOWEmKWDcjLjc0mqRwOaJdJoakiBXg6cxPo4mbRLbFCMTq1nckDR8PrBPbvPqcnNus8Z3/hfiWb5wg+8j8yyePXnG80svHZhB/TJewfOsrH7zakMyffNO32VkH5qV5uRfYj+JQJFaZ824Ny7RuXwdmjVgxHNtM3O0alnXD8e/li9UftwZnkOu/zK7TH2d+nWGGw2+ZXdm6zFdZWTnjuYUF2W4tY1n61nC3OG5id/Pbul02R6qzXN3Kxm/ZWhemCdSAsdbdP1lazrJRQ8hi9TvCyCojZ/scYLJ/poNUQlDfgvgs22a16+WDl7CDVm7QfHnt6xbmt90rnbDK2RnuJXyv9P38cAszQbS7OfmXqVvdhEuS7lmtXAd8ELcTmrLiA0S7SyxJFesuYDQQYLpjjaZotiLa2664HfEiqWIF+BAYh+prCwmrNlnXZPdLmsgxqvYvbt0dqmUTuAjR3hJNksUKYlKriVEn+nfrGIxte0WdvEZGmx77F98Ld4zMiaRk8rSkixXgP4BXokxwypuWlaNviDJpjRtHXbF/8f4XQrP6CqJ9pYI0iHUf4n5icVQJznm+efKAxZPa2i7BNDFgVLH4gc77V5+Z81IYVhcj2lVkc9UUSxrECuIL/TOBlZGk9tmfmP+xWOzbE0ZeFv7EuJrgjLysjr49xfKCfwKfzSjW5EpEe0rVwH1pESuIAh5JJB8Bm3xnXPNtzKyfw/BLZ+gzbNQYVQy/dAazft4cdOJPZlFkn+NOxBk1mgN/iKRJrADvAKMAtUOfA6yeTdsxzauzr4MP5tVBv3ugdQ90L7EqDFG+/e7hg3l1zLY8+Ww7Blg9uxjjDYj2s7AoF2PCMM3wnowYvcb4RwqH84BHgRaqEzrkjBmsfEh1Kho/Dh0PK+cW1b72AT8iopnKzRVFX6rnkLYza5aZQA0RfMG/6oUxGCc8zpxFqlPSyJizCIwTHi9WqE2I9hKJUFWR1jNrlmrgYSI4w4IBPc/lrHPO4YrTYeBR0K61+lTLja27YeE/4f4XYc6zz8LKJynyHnUfcDEQaS+hijNr2sUKcAFiQCs1k2xp0sxeYCzililS9GWwnEeBc4mi00mTJhoQ7SJyoaqiFMQK8AxwNrAjZj80yWAHoj08E7MfoVIqYgV4GTgJWBO3I5pYWYtoBy/H7UjYlJJYAd4DTgCWxO2IJhaWAAMR7aDkiEasTT63k87t1vXsclOD/efO58BgghxZ3dLJdx+3dWu4cz8vO0HTl/kj2+6XN1l4kLy5pRUkHS9fC6mDpoa/0NQwGFH/wevGL06+bSSfusyT8HtQmxqgotK7sCoq7XGt2ysqc/d32swuV1Ta4zRvy75LfDti7Nfm141kvsl8DJoXN7+dPjq3Ofd188UvfaufbtutNvJtaMUI2asMZFjLxa0cc/NhImZ4uwHYtz+uV7l5tR9ZuQdpL0HLuAjCfXRz2Hmh2QqRUcBU4MC4HdGEzjbEAAWJ+x7V/Hxm6DZL7Z5Vxizg2+gxnUqNDxD1mjihqqIcxArwEXA88CAxDBOjCRUTUY/HI+q1bCgXsYIYDOsy4Cxgfcy+aApjPeL56WUkfHAzFZSTWLPMBb5JAqdH0HjyNKLeno/bkbgoR7ECrEN0PI1Ez16XdFYj6moUot7KlnIVa5bZwDeAP6LvZZOGiZi39xvoqyBAixXEtH4XAyeSoIlzy5y/IerjpyRs2sU40WJtJttALiD7Fowmaj5HlL8+cErQYrVjAo8BfRBvxNTH607ZUI8Yv7cPovz1LYkELVY5u4A7gcOBX5GyIStTxBZgAqKcf0sZPo7JBy1Wb6yN6dfAxnjdKRk2IspTHwzzQIs1GPXArcBXEbOzhzvbSvnwCaL8voooT32bkQdarPmxE3gIOBr4PuIFC+UjLKacJkQ5jUCU20NEMlB76aEHGSuMJuDZzO8wxJSB4zLLGsEXwJTMT/euh0A5fCIXFS2AIYhBukYBnWL1Jh42Il5gmAm8QYomfQobFZ/IabGqoSUwFDGnyhlAz3jdUcpK4AXEp2qvIob/LHtUiFVfBqthL2JYmezQMv2A0xFf/AwCWsXkVxg0AgsQ96FziXAqznJHizUaFmd+E4E2wADgXxHCHQR0iM81X+oR4lwA/BUxOZh+HhoDWqzRswt4K/MDMT5Ub8TnX/0s/70ByeBMymgAliMOKv+g+QCzDP1GUSLQYo0fEyGIZdgHpa4AegC9EMLtjei06pj5dQIOBqqAtpl9DkTU6V7E+EQgHpPsAb5EdABtsvyWIQS6AvEpmn4MlWBC7WDSaDTq0C9FaDQpQYtVo0kJ/w8Jp0VM/2YtjwAAAABJRU5ErkJggg==",alt:"TIA GPC Logo",className:"gpc-about-panel-icon",style:{width:"80px",height:"auto"}})}),T.jsxs("div",{className:"gpc-about-panel-items",children:[T.jsxs("div",{className:"gpc-about-panel-item",children:[T.jsxs("span",{className:"gpc-about-panel-label",children:[t("about.product"),":"]}),T.jsx("span",{className:"gpc-about-panel-value",children:"TIA GPC"}),T.jsx("a",{href:"https://www.softiabot.com",target:"_blank",rel:"noopener noreferrer",className:"gpc-about-panel-link",children:"www.softiabot.com"})]}),T.jsxs("div",{className:"gpc-about-panel-item",children:[T.jsxs("span",{className:"gpc-about-panel-label",children:[t("about.version"),":"]}),T.jsx("span",{className:"gpc-about-panel-value",children:e})]}),T.jsxs("div",{className:"gpc-about-panel-item",children:[T.jsxs("span",{className:"gpc-about-panel-label",children:[t("about.creator"),":"]}),T.jsx("span",{className:"gpc-about-panel-value",children:"SOFTIA Technologies Inc."}),T.jsx("a",{href:"https://www.softia.ca",target:"_blank",rel:"noopener noreferrer",className:"gpc-about-panel-link",children:"Softia.ca"})]}),T.jsx("div",{className:"gpc-about-panel-footer",children:T.jsx("p",{className:"gpc-about-panel-rights",children:t("about.rights")})})]})]})]})},Cs=({gpcService:e,licenseToken:t,widgetConfig:n,onClose:r,themeMode:o,onToggleTheme:i,showBranding:a=!0,showMetadata:s=!1,onError:u,version:c=ve,onRequestMcpLogin:d,mcpLoggedIn:f=!1})=>{const{t:p}=V(),[h,g]=l.useState(!1),[m,y]=l.useState(!1),v=n?.mcp?.enabled&&"credentials"===n?.mcp?.auth_mode,b=o,k=i,x=l.useCallback(()=>{},[]),{messages:w,isLoading:S,sendMessage:C,currentConversationId:E,conversations:N,totalConversations:L,isLoadingHistory:O,startNewConversation:P,switchConversation:A,renameConversation:R,deleteConversation:I,isRestoringConversation:j,hasMoreConversations:D,isLoadingMoreConversations:M,loadMoreConversations:z,hasMoreMessages:_,isLoadingMoreMessages:F,loadMoreMessages:U}=((e,t)=>{const{t:n}=V(),[r,o]=l.useState([]),[i,a]=l.useState(!1),[s,u]=l.useState(null),[c,d]=l.useState(null),[f,p]=l.useState([]),[h,g]=l.useState(0),[m,y]=l.useState(!1),[v,b]=l.useState(!0),[k,x]=l.useState(0),[w,S]=l.useState(!0),[C,E]=l.useState(!1),[N,T]=l.useState(0),[L,O]=l.useState(!1),[P,A]=l.useState(!1),R=l.useCallback(async r=>{if(!r.trim()||i)return;const s={id:hs(),role:"user",content:r.trim(),timestamp:(new Date).toISOString()};o(e=>[...e,s]),a(!0),u(null);const l=hs(),f={id:l,role:"assistant",content:"",timestamp:(new Date).toISOString(),isStreaming:!0};o(e=>[...e,f]);try{const t=await e.sendMessage(r,e=>{o(t=>t.map(t=>t.id===l?{...t,content:t.content+e}:t))},c);o(e=>e.map(e=>e.id===l?{id:t.data.message_id,role:"assistant",content:t.data.response,timestamp:t.data.created_at,isStreaming:!1,metadata:{responseTimeMs:t.data.response_time_ms,modelUsed:t.data.model_used}}:e)),t.data.conversation_id&&d(t.data.conversation_id),M()}catch(p){let e,r;o(e=>e.filter(e=>e.id!==l));try{e=JSON.parse(p.message)}catch{e={statusCode:500,message:p.message}}const i=e.statusCode||500,a=e.errorCode||"";switch(401===i&&"SESSION_EXPIRED"===a&&(r=n("toast.sessionExpired"),t&&t()),i){case 401:r||(r=n("errors.unauthorized"));break;case 402:r=n("errors.insufficientCredits");break;case 403:r=a.includes("DOMAIN")||a.includes("UNAUTHORIZED")?n("errors.domainUnauthorized"):n("errors.validation");break;case 422:r="LOW_RELEVANCE_SCORE"===a&&e.message?e.message:n("errors.noKnowledgeAvailable");break;case 429:r=n("errors.rateLimit");break;case 503:case 502:case 504:r=n("errors.aiServiceUnavailable");break;case 500:r=n("errors.serverError");break;default:r=n("errors.generic")}u(r);const s={id:hs(),role:"assistant",content:r,timestamp:(new Date).toISOString()};o(e=>[...e,s])}finally{a(!1)}},[e,i,n,t,c]),I=l.useCallback(()=>{o([]),u(null)},[]),j=l.useCallback(()=>{u(null)},[]),D=l.useCallback(async(t,r=!0)=>{if(e&&t){y(!0);try{const n=r?0:N,i=await e.getConversationHistory(t,50,n);if(i.success&&i.data.messages){const e=i.data.messages.flatMap(e=>[{id:`${e.message_id}-question`,role:"user",content:e.question,timestamp:e.creation_date},{id:e.message_id,role:"assistant",content:e.answer,timestamp:e.creation_date,metadata:{modelUsed:e.model}}]);r?(o(e),T(i.data.count)):(o(t=>[...e,...t]),T(e=>e+i.data.count)),O(i.data.has_more),d(t)}}catch(i){o(e=>[...e,{id:hs(),role:"assistant",content:n("toast.failedLoadHistory"),timestamp:(new Date).toISOString()}])}finally{y(!1)}}},[e,n,N]),M=l.useCallback(async(t=!0)=>{if(e)try{const n=t?0:k,r=await e.listConversations(20,n);r.success&&r.data.conversations&&(t?(p(r.data.conversations),x(r.data.count)):(p(e=>[...e,...r.data.conversations]),x(e=>e+r.data.count)),S(r.data.has_more),g(r.data.total||0))}catch(n){}},[e,k]),z=l.useCallback(async()=>{if(e&&!C&&w){E(!0);try{await M(!1)}finally{E(!1)}}},[e,C,w,M]),_=l.useCallback(async()=>{if(e&&c&&!P&&L){A(!0);try{await D(c,!1)}finally{A(!1)}}},[e,c,P,L,D]),F=l.useCallback(()=>{o([]),d(null),u(null),e&&e.clearLastConversation()},[n,e]),U=l.useCallback(async e=>{await D(e)},[D]),B=l.useCallback(async(t,r)=>{if(e)try{await e.updateConversationTitle(t,r),await M(!0)}catch(i){o(e=>[...e,{id:hs(),role:"assistant",content:n("toast.failedRenameConversation"),timestamp:(new Date).toISOString()}])}},[e,M,n]),H=l.useCallback(async t=>{if(e)try{await e.deleteConversation(t),t===c&&(o([]),d(null)),await M(!0)}catch(r){o(e=>[...e,{id:hs(),role:"assistant",content:n("toast.failedDeleteConversation"),timestamp:(new Date).toISOString()}])}},[e,c,M,n]);return l.useEffect(()=>{(async()=>{if(e)try{const t=e.getLastConversation();t&&(o(t.messages),d(t.conversationId))}catch(t){}finally{b(!1)}else b(!1)})()},[e]),l.useEffect(()=>{e&&!v&&M()},[e,M,v]),l.useEffect(()=>{e&&r.length>0&&!v&&e.saveLastConversation(c,r)},[e,r,c,v]),{messages:r,isLoading:i,error:s,sendMessage:R,clearMessages:I,clearError:j,currentConversationId:c,conversations:f,totalConversations:h,isLoadingHistory:m,loadConversationHistory:D,loadConversations:M,startNewConversation:F,switchConversation:U,renameConversation:B,deleteConversation:H,isRestoringConversation:v,hasMoreConversations:w,isLoadingMoreConversations:C,loadMoreConversations:z,hasMoreMessages:L,isLoadingMoreMessages:P,loadMoreMessages:_}})(e,x),B=l.useCallback(()=>{g(e=>!e),y(!1)},[]),H=l.useCallback(()=>{y(e=>!e),g(!1)},[]),q=l.useCallback(()=>{d?.(f?"logout":"login")},[f,d]),W=l.useCallback(e=>{A(e),g(!1)},[A]),Y=l.useCallback(()=>{P(),g(!1)},[P]);l.useEffect(()=>()=>{e&&e.releaseSession().catch(e=>{})},[e]);const K=T.jsx(Se,{onClose:r,theme:b,onToggleTheme:k,showBranding:a,widgetConfig:n,onToggleConversations:B,showConversations:h,conversationsCount:L,onToggleAbout:H,showAbout:m,version:c,onToggleMcpLogin:v?q:void 0,showMcpLogin:!1,mcpLoggedIn:f});return h||m?T.jsxs("div",{className:"gpc-chat-window gpc-animate-fade-in "+("dark"===b?"gpc-dark":""),children:[K,T.jsxs("div",{className:"gpc-conversations-overlay-body",children:[h&&T.jsx(ws,{conversations:N,totalConversations:L,currentConversationId:E,onSelectConversation:W,onNewConversation:Y,onRenameConversation:R,onDeleteConversation:I,isLoadingHistory:O,hasMoreConversations:D,isLoadingMoreConversations:M,onLoadMore:z}),m&&T.jsx(Ss,{version:c})]})]}):T.jsxs("div",{className:"gpc-chat-window gpc-animate-fade-in "+("dark"===b?"gpc-dark":""),children:[K,T.jsx(ys,{messages:w,isLoading:S||O||j,showMetadata:s,widgetConfig:n,hasMoreMessages:_,isLoadingMoreMessages:F,onLoadMoreMessages:U}),T.jsx(ks,{onSendMessage:C,isLoading:S||j,disabled:j,gpcService:e,showBranding:a})]})},Es=({gpcService:e,mcpConfig:t,onSuccess:n,onSkip:r,onError:o})=>{const{t:i}=V(),[a,s]=l.useState(null),[u,c]=l.useState(null),[d,f]=l.useState(""),[p,h]=l.useState(""),[g,m]=l.useState(!1),[y,v]=l.useState(!0),[b,k]=l.useState(null),[x,w]=l.useState("captcha"),[S,C]=l.useState({}),E=t?.enabled&&"credentials"===t?.auth_mode,N=t?.login_fields?.length?t.login_fields:[{key:"username",label:"Usuario",type:"text"},{key:"password",label:"Contraseña",type:"password"}];l.useEffect(()=>{const e=localStorage.getItem(ke),t=localStorage.getItem(xe),n="true"===e&&t&&Date.now()-parseInt(t,10)<be;E&&n?(w("mcp"),v(!1)):L()},[]);const L=async()=>{v(!0),h(""),f("");try{const t=await e.generateCaptchaChallenge();if(!t.success||!t.challenge_id)throw new Error("Failed to generate challenge");s(t.question),c(t.challenge_id)}catch(t){h(i("captcha.errorGenerating","Error generating challenge. Please try again.")),o&&o(t)}finally{v(!1)}},O=async t=>{t.preventDefault();if(N.every(e=>S[e.key]?.trim())){m(!0),h("");try{(await e.verifyMcpCredentials(S)).success?(sessionStorage.setItem("mcp_login_data",JSON.stringify(S)),n&&n()):h(i("moodle.invalidCredentials","Credenciales incorrectas. Intenta nuevamente."))}catch(r){let e={};try{e=JSON.parse(r.message)}catch(a){}"INVALID_CREDENTIALS"===e.errorCode?h(i("moodle.invalidCredentials","Credenciales incorrectas. Intenta nuevamente.")):"NETWORK_ERROR"===e.errorCode?h(i("moodle.networkError","Error de conexión. Verifica tu red e intenta nuevamente.")):h(i("moodle.verificationError","Error al verificar. Intenta nuevamente.")),o&&o(r)}finally{m(!1)}}else h(i("moodle.requiredFields"))};if("mcp"===x){const e=t?.display_name||i("moodle.title");return T.jsx("div",{className:"gpc-captcha-container",children:T.jsxs("div",{className:"gpc-captcha-content",children:[T.jsxs("div",{className:"gpc-captcha-header",children:[T.jsx("svg",{className:"gpc-captcha-icon",width:"48",height:"48",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",children:T.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"})}),T.jsx("h3",{className:"gpc-captcha-title",children:e}),T.jsx("p",{className:"gpc-captcha-subtitle",children:i("moodle.subtitle")})]}),T.jsxs("form",{onSubmit:O,className:"gpc-captcha-form",children:[T.jsx("div",{className:"gpc-captcha-fields-scroll",children:N.map((e,t)=>T.jsxs("div",{className:"gpc-captcha-question",children:[T.jsx("label",{className:"gpc-captcha-label",children:e.label}),T.jsx("input",{type:e.type||"text",value:S[e.key]||"",onChange:t=>{C(n=>({...n,[e.key]:t.target.value})),h("")},className:"gpc-captcha-text-input",autoFocus:0===t,autoComplete:"password"===e.type?"current-password":e.key})]},e.key))}),p&&T.jsxs("div",{className:"gpc-captcha-error",children:[T.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",children:[T.jsx("circle",{cx:"12",cy:"12",r:"10",strokeWidth:2}),T.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"12",strokeWidth:2,strokeLinecap:"round"}),T.jsx("line",{x1:"12",y1:"16",x2:"12.01",y2:"16",strokeWidth:2,strokeLinecap:"round"})]}),T.jsx("span",{children:p})]}),T.jsx("button",{type:"submit",className:"gpc-captcha-button",disabled:g||!N.every(e=>S[e.key]?.trim()),children:g?T.jsxs(T.Fragment,{children:[T.jsx("div",{className:"gpc-spinner gpc-button-spinner"}),i("captcha.verifying")]}):i("moodle.submit")})]}),r&&T.jsx("button",{type:"button",className:"gpc-captcha-skip",onClick:r,children:i("moodle.skip")})]})})}return y||!a?T.jsxs("div",{className:"gpc-captcha-loading",children:[T.jsx("div",{className:"gpc-spinner"}),T.jsx("p",{children:i("captcha.loading","Loading challenge...")})]}):T.jsx("div",{className:"gpc-captcha-container",children:T.jsxs("div",{className:"gpc-captcha-content",children:[T.jsxs("div",{className:"gpc-captcha-header",children:[T.jsx("svg",{className:"gpc-captcha-icon",width:"48",height:"48",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",children:T.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"})}),T.jsx("h3",{className:"gpc-captcha-title",children:i("captcha.title")}),T.jsx("p",{className:"gpc-captcha-subtitle",children:i("captcha.subtitle")})]}),T.jsxs("form",{onSubmit:async t=>{t.preventDefault(),h(""),m(!0);try{const t=parseInt(d,10);if(isNaN(t))return h(i("captcha.invalidNumber")),void m(!1);const r=await e.verifyCaptchaAnswer(u,t);if(r.success)localStorage.setItem(ke,"true"),localStorage.setItem(xe,Date.now().toString()),E?w("mcp"):n&&n();else{const e=r.attempts_remaining;k(e),h(void 0!==e&&e>0?i("captcha.incorrectAnswerWithAttempts",{attempts:e,defaultValue:"Incorrect answer. {{attempts}} attempts remaining"}):i("captcha.incorrectAnswer")),f(""),m(!1)}}catch(r){switch(r.error_code){case"CHALLENGE_NOT_FOUND":case"CHALLENGE_EXPIRED":h(i("captcha.challengeExpired","Challenge expired. Generating a new one...")),setTimeout(()=>L(),2e3);break;case"MAX_ATTEMPTS_EXCEEDED":h(i("captcha.maxAttemptsExceeded","Maximum attempts exceeded. Generating a new challenge...")),setTimeout(()=>L(),2e3);break;case"INVALID_SESSION":h(i("captcha.invalidSession","Invalid session. Please refresh the page."));break;default:h(i("captcha.error"))}m(!1),o&&o(r)}},className:"gpc-captcha-form",children:[T.jsxs("div",{className:"gpc-captcha-question",children:[T.jsx("label",{htmlFor:"captcha-answer",className:"gpc-captcha-label",children:i("captcha.question")}),T.jsxs("div",{className:"gpc-captcha-challenge",children:[T.jsx("span",{className:"gpc-captcha-math",children:a}),T.jsx("span",{className:"gpc-captcha-equals",children:"="}),T.jsx("input",{id:"captcha-answer",type:"text",inputMode:"numeric",pattern:"[0-9]*",value:d,onChange:e=>{const t=e.target.value;(""===t||/^\d+$/.test(t))&&(f(t),h(""))},placeholder:"?",className:"gpc-captcha-input "+(p?"gpc-captcha-input-error":""),disabled:g,autoFocus:!0,autoComplete:"off"})]})]}),p&&T.jsxs("div",{className:"gpc-captcha-error",children:[T.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",children:[T.jsx("circle",{cx:"12",cy:"12",r:"10",strokeWidth:2}),T.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"12",strokeWidth:2,strokeLinecap:"round"}),T.jsx("line",{x1:"12",y1:"16",x2:"12.01",y2:"16",strokeWidth:2,strokeLinecap:"round"})]}),T.jsx("span",{children:p})]}),null!==b&&b>0&&T.jsx("div",{className:"gpc-captcha-attempts",children:i("captcha.attemptsLeft",{count:b,defaultValue:"{{count}} attempts remaining"})}),T.jsx("button",{type:"submit",className:"gpc-captcha-button",disabled:g||!d,children:g?T.jsxs(T.Fragment,{children:[T.jsx("div",{className:"gpc-spinner gpc-button-spinner"}),i("captcha.verifying")]}):i("captcha.verify")})]}),T.jsx("p",{className:"gpc-captcha-info",children:i("captcha.info")})]})})};function Ns(e,t){return function(){return e.apply(t,arguments)}}const{toString:Ts}=Object.prototype,{getPrototypeOf:Ls}=Object,{iterator:Os,toStringTag:Ps}=Symbol,As=(e=>t=>{const n=Ts.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Rs=e=>(e=e.toLowerCase(),t=>As(t)===e),Is=e=>t=>typeof t===e,{isArray:js}=Array,Ds=Is("undefined");function Ms(e){return null!==e&&!Ds(e)&&null!==e.constructor&&!Ds(e.constructor)&&Fs(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const zs=Rs("ArrayBuffer");const _s=Is("string"),Fs=Is("function"),Us=Is("number"),Bs=e=>null!==e&&"object"==typeof e,Hs=e=>{if("object"!==As(e))return!1;const t=Ls(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Ps in e||Os in e)},Vs=Rs("Date"),qs=Rs("File"),Ws=Rs("Blob"),Ys=Rs("FileList");const Ks="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},Gs=void 0!==Ks.FormData?Ks.FormData:void 0,Qs=Rs("URLSearchParams"),[$s,Zs,Js,Xs]=["ReadableStream","Request","Response","Headers"].map(Rs);function el(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),js(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(Ms(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function tl(e,t){if(Ms(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const nl="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,rl=e=>!Ds(e)&&e!==nl;const ol=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&Ls(Uint8Array)),il=Rs("HTMLFormElement"),al=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),sl=Rs("RegExp"),ll=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};el(n,(n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)}),Object.defineProperties(e,r)};const ul=Rs("AsyncFunction"),cl=(dl="function"==typeof setImmediate,fl=Fs(nl.postMessage),dl?setImmediate:fl?(pl=`axios@${Math.random()}`,hl=[],nl.addEventListener("message",({source:e,data:t})=>{e===nl&&t===pl&&hl.length&&hl.shift()()},!1),e=>{hl.push(e),nl.postMessage(pl,"*")}):e=>setTimeout(e));var dl,fl,pl,hl;const gl="undefined"!=typeof queueMicrotask?queueMicrotask.bind(nl):"undefined"!=typeof process&&process.nextTick||cl,ml={isArray:js,isArrayBuffer:zs,isBuffer:Ms,isFormData:e=>{let t;return e&&(Gs&&e instanceof Gs||Fs(e.append)&&("formdata"===(t=As(e))||"object"===t&&Fs(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&zs(e.buffer),t},isString:_s,isNumber:Us,isBoolean:e=>!0===e||!1===e,isObject:Bs,isPlainObject:Hs,isEmptyObject:e=>{if(!Bs(e)||Ms(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(t){return!1}},isReadableStream:$s,isRequest:Zs,isResponse:Js,isHeaders:Xs,isUndefined:Ds,isDate:Vs,isFile:qs,isReactNativeBlob:e=>!(!e||void 0===e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:Ws,isRegExp:sl,isFunction:Fs,isStream:e=>Bs(e)&&Fs(e.pipe),isURLSearchParams:Qs,isTypedArray:ol,isFileList:Ys,forEach:el,merge:function e(){const{caseless:t,skipUndefined:n}=rl(this)&&this||{},r={},o=(o,i)=>{if("__proto__"===i||"constructor"===i||"prototype"===i)return;const a=t&&tl(r,i)||i;Hs(r[a])&&Hs(o)?r[a]=e(r[a],o):Hs(o)?r[a]=e({},o):js(o)?r[a]=o.slice():n&&Ds(o)||(r[a]=o)};for(let i=0,a=arguments.length;i<a;i++)arguments[i]&&el(arguments[i],o);return r},extend:(e,t,n,{allOwnKeys:r}={})=>(el(t,(t,r)=>{n&&Fs(t)?Object.defineProperty(e,r,{value:Ns(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&Ls(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:As,kindOfTest:Rs,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(js(e))return e;let t=e.length;if(!Us(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Os]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:il,hasOwnProperty:al,hasOwnProp:al,reduceDescriptors:ll,freezeMethods:e=>{ll(e,(t,n)=>{if(Fs(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];Fs(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return js(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:tl,global:nl,isContextDefined:rl,isSpecCompliantForm:function(e){return!!(e&&Fs(e.append)&&"FormData"===e[Ps]&&e[Os])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(Bs(e)){if(t.indexOf(e)>=0)return;if(Ms(e))return e;if(!("toJSON"in e)){t[r]=e;const o=js(e)?[]:{};return el(e,(e,t)=>{const i=n(e,r+1);!Ds(i)&&(o[t]=i)}),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:ul,isThenable:e=>e&&(Bs(e)||Fs(e))&&Fs(e.then)&&Fs(e.catch),setImmediate:cl,asap:gl,isIterable:e=>null!=e&&Fs(e[Os])};let yl=class e extends Error{static from(t,n,r,o,i,a){const s=new e(t.message,n||t.code,r,o,i);return s.cause=t,s.name=t.name,null!=t.status&&null==s.status&&(s.status=t.status),a&&Object.assign(s,a),s}constructor(e,t,n,r,o){super(e),Object.defineProperty(this,"message",{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ml.toJSONObject(this.config),code:this.code,status:this.status}}};yl.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",yl.ERR_BAD_OPTION="ERR_BAD_OPTION",yl.ECONNABORTED="ECONNABORTED",yl.ETIMEDOUT="ETIMEDOUT",yl.ERR_NETWORK="ERR_NETWORK",yl.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",yl.ERR_DEPRECATED="ERR_DEPRECATED",yl.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",yl.ERR_BAD_REQUEST="ERR_BAD_REQUEST",yl.ERR_CANCELED="ERR_CANCELED",yl.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",yl.ERR_INVALID_URL="ERR_INVALID_URL";function vl(e){return ml.isPlainObject(e)||ml.isArray(e)}function bl(e){return ml.endsWith(e,"[]")?e.slice(0,-2):e}function kl(e,t,n){return e?e.concat(t).map(function(e,t){return e=bl(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const xl=ml.toFlatObject(ml,{},null,function(e){return/^is[A-Z]/.test(e)});function wl(e,t,n){if(!ml.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=ml.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!ml.isUndefined(t[e])})).metaTokens,o=n.visitor||u,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&ml.isSpecCompliantForm(t);if(!ml.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(ml.isDate(e))return e.toISOString();if(ml.isBoolean(e))return e.toString();if(!s&&ml.isBlob(e))throw new yl("Blob is not supported. Use a Buffer instead.");return ml.isArrayBuffer(e)||ml.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,o){let s=e;if(ml.isReactNative(t)&&ml.isReactNativeBlob(e))return t.append(kl(o,n,i),l(e)),!1;if(e&&!o&&"object"==typeof e)if(ml.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(ml.isArray(e)&&function(e){return ml.isArray(e)&&!e.some(vl)}(e)||(ml.isFileList(e)||ml.endsWith(n,"[]"))&&(s=ml.toArray(e)))return n=bl(n),s.forEach(function(e,r){!ml.isUndefined(e)&&null!==e&&t.append(!0===a?kl([n],r,i):null===a?n:n+"[]",l(e))}),!1;return!!vl(e)||(t.append(kl(o,n,i),l(e)),!1)}const c=[],d=Object.assign(xl,{defaultVisitor:u,convertValue:l,isVisitable:vl});if(!ml.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!ml.isUndefined(n)){if(-1!==c.indexOf(n))throw Error("Circular reference detected in "+r.join("."));c.push(n),ml.forEach(n,function(n,i){!0===(!(ml.isUndefined(n)||null===n)&&o.call(t,n,ml.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])}),c.pop()}}(e),t}function Sl(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function Cl(e,t){this._pairs=[],e&&wl(e,this,t)}const El=Cl.prototype;function Nl(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Tl(e,t,n){if(!t)return e;const r=n&&n.encode||Nl,o=ml.isFunction(n)?{serialize:n}:n,i=o&&o.serialize;let a;if(a=i?i(t,o):ml.isURLSearchParams(t)?t.toString():new Cl(t,o).toString(r),a){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}El.append=function(e,t){this._pairs.push([e,t])},El.toString=function(e){const t=e?function(t){return e.call(this,t,Sl)}:Sl;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class Ll{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){ml.forEach(this.handlers,function(t){null!==t&&e(t)})}}const Ol={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Pl={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Cl,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Al="undefined"!=typeof window&&"undefined"!=typeof document,Rl="object"==typeof navigator&&navigator||void 0,Il=Al&&(!Rl||["ReactNative","NativeScript","NS"].indexOf(Rl.product)<0),jl="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Dl=Al&&window.location.href||"http://localhost",Ml={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Al,hasStandardBrowserEnv:Il,hasStandardBrowserWebWorkerEnv:jl,navigator:Rl,origin:Dl},Symbol.toStringTag,{value:"Module"})),...Pl};function zl(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;if(i=!i&&ml.isArray(r)?r.length:i,s)return ml.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&ml.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&ml.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a}if(ml.isFormData(e)&&ml.isFunction(e.entries)){const n={};return ml.forEachEntry(e,(e,r)=>{t(function(e){return ml.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null}const _l={transitional:Ol,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=ml.isObject(e);o&&ml.isHTMLForm(e)&&(e=new FormData(e));if(ml.isFormData(e))return r?JSON.stringify(zl(e)):e;if(ml.isArrayBuffer(e)||ml.isBuffer(e)||ml.isStream(e)||ml.isFile(e)||ml.isBlob(e)||ml.isReadableStream(e))return e;if(ml.isArrayBufferView(e))return e.buffer;if(ml.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return wl(e,new Ml.classes.URLSearchParams,{visitor:function(e,t,n,r){return Ml.isNode&&ml.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((i=ml.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return wl(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(ml.isString(e))try{return(t||JSON.parse)(e),ml.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||_l.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(ml.isResponse(e)||ml.isReadableStream(e))return e;if(e&&ml.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e,this.parseReviver)}catch(o){if(n){if("SyntaxError"===o.name)throw yl.from(o,yl.ERR_BAD_RESPONSE,this,null,this.response);throw o}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ml.classes.FormData,Blob:Ml.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ml.forEach(["delete","get","head","post","put","patch"],e=>{_l.headers[e]={}});const Fl=ml.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ul=Symbol("internals");function Bl(e){return e&&String(e).trim().toLowerCase()}function Hl(e){return!1===e||null==e?e:ml.isArray(e)?e.map(Hl):String(e)}function Vl(e,t,n,r,o){return ml.isFunction(r)?r.call(this,t,n):(o&&(t=n),ml.isString(t)?ml.isString(r)?-1!==t.indexOf(r):ml.isRegExp(r)?r.test(t):void 0:void 0)}let ql=class{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=Bl(t);if(!o)throw new Error("header name must be a non-empty string");const i=ml.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=Hl(e))}const i=(e,t)=>ml.forEach(e,(e,n)=>o(e,n,t));if(ml.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(ml.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&Fl[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t})(e),t);else if(ml.isObject(e)&&ml.isIterable(e)){let n,r,o={};for(const t of e){if(!ml.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[r=t[0]]=(n=o[r])?ml.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}i(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=Bl(e)){const n=ml.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(ml.isFunction(t))return t.call(this,e,n);if(ml.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Bl(e)){const n=ml.findKey(this,e);return!(!n||void 0===this[n]||t&&!Vl(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=Bl(e)){const o=ml.findKey(n,e);!o||t&&!Vl(0,n[o],o,t)||(delete n[o],r=!0)}}return ml.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!Vl(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return ml.forEach(this,(r,o)=>{const i=ml.findKey(n,o);if(i)return t[i]=Hl(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(o):String(o).trim();a!==o&&delete t[o],t[a]=Hl(r),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return ml.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&ml.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[Ul]=this[Ul]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Bl(e);t[r]||(!function(e,t){const n=ml.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})})}(n,e),t[r]=!0)}return ml.isArray(e)?e.forEach(r):r(e),this}};function Wl(e,t){const n=this||_l,r=t||n,o=ql.from(r.headers);let i=r.data;return ml.forEach(e,function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Yl(e){return!(!e||!e.__CANCEL__)}ql.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ml.reduceDescriptors(ql.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),ml.freezeMethods(ql);let Kl=class extends yl{constructor(e,t,n){super(null==e?"canceled":e,yl.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function Gl(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new yl("Request failed with status code "+n.status,[yl.ERR_BAD_REQUEST,yl.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const Ql=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),u=r[a];o||(o=l),n[i]=s,r[i]=l;let c=a,d=0;for(;c!==i;)d+=n[c++],c%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),l-o<t)return;const f=u&&l-u;return f?Math.round(1e3*d/f):void 0}}(50,250);return function(e,t){let n,r,o=0,i=1e3/t;const a=(t,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=i?a(e,t):(n=e,r||(r=setTimeout(()=>{r=null,a(n)},i-s)))},()=>n&&a(n)]}(n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=i-r,l=o(s);r=i;e({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&i<=a?(a-i)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})},n)},$l=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Zl=e=>(...t)=>ml.asap(()=>e(...t)),Jl=Ml.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Ml.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Ml.origin),Ml.navigator&&/(msie|trident)/i.test(Ml.navigator.userAgent)):()=>!0,Xl=Ml.hasStandardBrowserEnv?{write(e,t,n,r,o,i,a){if("undefined"==typeof document)return;const s=[`${e}=${encodeURIComponent(t)}`];ml.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),ml.isString(r)&&s.push(`path=${r}`),ml.isString(o)&&s.push(`domain=${o}`),!0===i&&s.push("secure"),ml.isString(a)&&s.push(`SameSite=${a}`),document.cookie=s.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function eu(e,t,n){let r=!("string"==typeof(o=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(o));var o;return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const tu=e=>e instanceof ql?{...e}:e;function nu(e,t){t=t||{};const n={};function r(e,t,n,r){return ml.isPlainObject(e)&&ml.isPlainObject(t)?ml.merge.call({caseless:r},e,t):ml.isPlainObject(t)?ml.merge({},t):ml.isArray(t)?t.slice():t}function o(e,t,n,o){return ml.isUndefined(t)?ml.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function i(e,t){if(!ml.isUndefined(t))return r(void 0,t)}function a(e,t){return ml.isUndefined(t)?ml.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t,n)=>o(tu(e),tu(t),0,!0)};return ml.forEach(Object.keys({...e,...t}),function(r){if("__proto__"===r||"constructor"===r||"prototype"===r)return;const i=ml.hasOwnProp(l,r)?l[r]:o,a=i(e[r],t[r],r);ml.isUndefined(a)&&i!==s||(n[r]=a)}),n}const ru=e=>{const t=nu({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:s}=t;if(t.headers=a=ql.from(a),t.url=Tl(eu(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),ml.isFormData(n))if(Ml.hasStandardBrowserEnv||Ml.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(ml.isFunction(n.getHeaders)){const e=n.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&a.set(e,n)})}if(Ml.hasStandardBrowserEnv&&(r&&ml.isFunction(r)&&(r=r(t)),r||!1!==r&&Jl(t.url))){const e=o&&i&&Xl.read(i);e&&a.set(o,e)}return t},ou="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=ru(e);let o=r.data;const i=ql.from(r.headers).normalize();let a,s,l,u,c,{responseType:d,onUploadProgress:f,onDownloadProgress:p}=r;function h(){u&&u(),c&&c(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let g=new XMLHttpRequest;function m(){if(!g)return;const r=ql.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());Gl(function(e){t(e),h()},function(e){n(e),h()},{data:d&&"text"!==d&&"json"!==d?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:r,config:e,request:g}),g=null}g.open(r.method.toUpperCase(),r.url,!0),g.timeout=r.timeout,"onloadend"in g?g.onloadend=m:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(m)},g.onabort=function(){g&&(n(new yl("Request aborted",yl.ECONNABORTED,e,g)),g=null)},g.onerror=function(t){const r=t&&t.message?t.message:"Network Error",o=new yl(r,yl.ERR_NETWORK,e,g);o.event=t||null,n(o),g=null},g.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||Ol;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new yl(t,o.clarifyTimeoutError?yl.ETIMEDOUT:yl.ECONNABORTED,e,g)),g=null},void 0===o&&i.setContentType(null),"setRequestHeader"in g&&ml.forEach(i.toJSON(),function(e,t){g.setRequestHeader(t,e)}),ml.isUndefined(r.withCredentials)||(g.withCredentials=!!r.withCredentials),d&&"json"!==d&&(g.responseType=r.responseType),p&&([l,c]=Ql(p,!0),g.addEventListener("progress",l)),f&&g.upload&&([s,u]=Ql(f),g.upload.addEventListener("progress",s),g.upload.addEventListener("loadend",u)),(r.cancelToken||r.signal)&&(a=t=>{g&&(n(!t||t.type?new Kl(null,e,g):t),g.abort(),g=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);y&&-1===Ml.protocols.indexOf(y)?n(new yl("Unsupported protocol "+y+":",yl.ERR_BAD_REQUEST,e)):g.send(o||null)})},iu=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof yl?t:new Kl(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,o(new yl(`timeout of ${t}ms exceeded`,yl.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:s}=r;return s.unsubscribe=()=>ml.asap(a),s}},au=function*(e,t){let n=e.byteLength;if(n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},su=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},lu=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of su(e))yield*au(n,t)}(e,t);let i,a=0,s=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return s(),void e.close();let i=r.byteLength;if(n){let e=a+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(t){throw s(t),t}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},{isFunction:uu}=ml,cu=(({Request:e,Response:t})=>({Request:e,Response:t}))(ml.global),{ReadableStream:du,TextEncoder:fu}=ml.global,pu=(e,...t)=>{try{return!!e(...t)}catch(n){return!1}},hu=e=>{e=ml.merge.call({skipUndefined:!0},cu,e);const{fetch:t,Request:n,Response:r}=e,o=t?uu(t):"function"==typeof fetch,i=uu(n),a=uu(r);if(!o)return!1;const s=o&&uu(du),l=o&&("function"==typeof fu?(e=>t=>e.encode(t))(new fu):async e=>new Uint8Array(await new n(e).arrayBuffer())),u=i&&s&&pu(()=>{let e=!1;const t=new n(Ml.origin,{body:new du,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),c=a&&s&&pu(()=>ml.isReadableStream(new r("").body)),d={stream:c&&(e=>e.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!d[e]&&(d[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new yl(`Response type '${e}' is not supported`,yl.ERR_NOT_SUPPORT,n)})});const f=async(e,t)=>{const r=ml.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(ml.isBlob(e))return e.size;if(ml.isSpecCompliantForm(e)){const t=new n(Ml.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return ml.isArrayBufferView(e)||ml.isArrayBuffer(e)?e.byteLength:(ml.isURLSearchParams(e)&&(e+=""),ml.isString(e)?(await l(e)).byteLength:void 0)})(t):r};return async e=>{let{url:o,method:a,data:s,signal:l,cancelToken:p,timeout:h,onDownloadProgress:g,onUploadProgress:m,responseType:y,headers:v,withCredentials:b="same-origin",fetchOptions:k}=ru(e),x=t||fetch;y=y?(y+"").toLowerCase():"text";let w=iu([l,p&&p.toAbortSignal()],h),S=null;const C=w&&w.unsubscribe&&(()=>{w.unsubscribe()});let E;try{if(m&&u&&"get"!==a&&"head"!==a&&0!==(E=await f(v,s))){let e,t=new n(o,{method:"POST",body:s,duplex:"half"});if(ml.isFormData(s)&&(e=t.headers.get("content-type"))&&v.setContentType(e),t.body){const[e,n]=$l(E,Ql(Zl(m)));s=lu(t.body,65536,e,n)}}ml.isString(b)||(b=b?"include":"omit");const t=i&&"credentials"in n.prototype,l={...k,signal:w,method:a.toUpperCase(),headers:v.normalize().toJSON(),body:s,duplex:"half",credentials:t?b:void 0};S=i&&new n(o,l);let p=await(i?x(S,k):x(o,l));const h=c&&("stream"===y||"response"===y);if(c&&(g||h&&C)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=p[t]});const t=ml.toFiniteNumber(p.headers.get("content-length")),[n,o]=g&&$l(t,Ql(Zl(g),!0))||[];p=new r(lu(p.body,65536,n,()=>{o&&o(),C&&C()}),e)}y=y||"text";let N=await d[ml.findKey(d,y)||"text"](p,e);return!h&&C&&C(),await new Promise((t,n)=>{Gl(t,n,{data:N,headers:ql.from(p.headers),status:p.status,statusText:p.statusText,config:e,request:S})})}catch(N){if(C&&C(),N&&"TypeError"===N.name&&/Load failed|fetch/i.test(N.message))throw Object.assign(new yl("Network Error",yl.ERR_NETWORK,e,S,N&&N.response),{cause:N.cause||N});throw yl.from(N,N&&N.code,e,S,N&&N.response)}}},gu=new Map,mu=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,i=[r,o,n];let a,s,l=i.length,u=gu;for(;l--;)a=i[l],s=u.get(a),void 0===s&&u.set(a,s=l?new Map:hu(t)),u=s;return s};mu();const yu={http:null,xhr:ou,fetch:{get:mu}};ml.forEach(yu,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}});const vu=e=>`- ${e}`,bu=e=>ml.isFunction(e)||null===e||!1===e;const ku={getAdapter:function(e,t){e=ml.isArray(e)?e:[e];const{length:n}=e;let r,o;const i={};for(let a=0;a<n;a++){let n;if(r=e[a],o=r,!bu(r)&&(o=yu[(n=String(r)).toLowerCase()],void 0===o))throw new yl(`Unknown adapter '${n}'`);if(o&&(ml.isFunction(o)||(o=o.get(t))))break;i[n||"#"+a]=o}if(!o){const e=Object.entries(i).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=n?e.length>1?"since :\n"+e.map(vu).join("\n"):" "+vu(e[0]):"as no adapter specified";throw new yl("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return o},adapters:yu};function xu(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Kl(null,e)}function wu(e){xu(e),e.headers=ql.from(e.headers),e.data=Wl.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return ku.getAdapter(e.adapter||_l.adapter,e)(e).then(function(t){return xu(e),t.data=Wl.call(e,e.transformResponse,t),t.headers=ql.from(t.headers),t},function(t){return Yl(t)||(xu(e),t&&t.response&&(t.response.data=Wl.call(e,e.transformResponse,t.response),t.response.headers=ql.from(t.response.headers))),Promise.reject(t)})}const Su="1.13.6",Cu={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Cu[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Eu={};Cu.transitional=function(e,t,n){return(r,o,i)=>{if(!1===e)throw new yl(function(e,t){return"[Axios v"+Su+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}(o," has been removed"+(t?" in "+t:"")),yl.ERR_DEPRECATED);return t&&!Eu[o]&&(Eu[o]=!0),!e||e(r,o,i)}},Cu.spelling=function(e){return(e,t)=>!0};const Nu={assertOptions:function(e,t,n){if("object"!=typeof e)throw new yl("options must be an object",yl.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new yl("option "+i+" must be "+n,yl.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new yl("Unknown option "+i,yl.ERR_BAD_OPTION)}},validators:Cu},Tu=Nu.validators;let Lu=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Ll,response:new Ll}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(r){}}throw n}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=nu(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&Nu.assertOptions(n,{silentJSONParsing:Tu.transitional(Tu.boolean),forcedJSONParsing:Tu.transitional(Tu.boolean),clarifyTimeoutError:Tu.transitional(Tu.boolean),legacyInterceptorReqResOrdering:Tu.transitional(Tu.boolean)},!1),null!=r&&(ml.isFunction(r)?t.paramsSerializer={serialize:r}:Nu.assertOptions(r,{encode:Tu.function,serialize:Tu.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Nu.assertOptions(t,{baseUrl:Tu.spelling("baseURL"),withXsrfToken:Tu.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&ml.merge(o.common,o[t.method]);o&&ml.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=ql.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;s=s&&e.synchronous;const n=t.transitional||Ol;n&&n.legacyInterceptorReqResOrdering?a.unshift(e.fulfilled,e.rejected):a.push(e.fulfilled,e.rejected)});const l=[];let u;this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let c,d=0;if(!s){const e=[wu.bind(this),void 0];for(e.unshift(...a),e.push(...l),c=e.length,u=Promise.resolve(t);d<c;)u=u.then(e[d++],e[d++]);return u}c=a.length;let f=t;for(;d<c;){const e=a[d++],t=a[d++];try{f=e(f)}catch(p){t.call(this,p);break}}try{u=wu.call(this,f)}catch(p){return Promise.reject(p)}for(d=0,c=l.length;d<c;)u=u.then(l[d++],l[d++]);return u}getUri(e){return Tl(eu((e=nu(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};ml.forEach(["delete","get","head","options"],function(e){Lu.prototype[e]=function(t,n){return this.request(nu(n||{},{method:e,url:t,data:(n||{}).data}))}}),ml.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,o){return this.request(nu(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Lu.prototype[e]=t(),Lu.prototype[e+"Form"]=t(!0)});const Ou={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Ou).forEach(([e,t])=>{Ou[t]=e});const Pu=function e(t){const n=new Lu(t),r=Ns(Lu.prototype.request,n);return ml.extend(r,Lu.prototype,n,{allOwnKeys:!0}),ml.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(nu(t,n))},r}(_l);Pu.Axios=Lu,Pu.CanceledError=Kl,Pu.CancelToken=class e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,o){n.reason||(n.reason=new Kl(e,r,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}},Pu.isCancel=Yl,Pu.VERSION=Su,Pu.toFormData=wl,Pu.AxiosError=yl,Pu.Cancel=Pu.CanceledError,Pu.all=function(e){return Promise.all(e)},Pu.spread=function(e){return function(t){return e.apply(null,t)}},Pu.isAxiosError=function(e){return ml.isObject(e)&&!0===e.isAxiosError},Pu.mergeConfig=nu,Pu.AxiosHeaders=ql,Pu.formToJSON=e=>zl(ml.isHTMLForm(e)?new FormData(e):e),Pu.getAdapter=ku.getAdapter,Pu.HttpStatusCode=Ou,Pu.default=Pu;const{Axios:Au,AxiosError:Ru,CanceledError:Iu,isCancel:ju,CancelToken:Du,VERSION:Mu,all:zu,Cancel:_u,isAxiosError:Fu,spread:Uu,toFormData:Bu,AxiosHeaders:Hu,HttpStatusCode:Vu,formToJSON:qu,getAdapter:Wu,mergeConfig:Yu}=Pu;class Ku{constructor(e,t){this.licenseToken=t,this.baseURL=e||Ja,this.client=Pu.create({baseURL:this.baseURL,timeout:ds,headers:{"Content-Type":"application/json"}}),this.client.interceptors.request.use(e=>(this.licenseToken&&(e.headers.Authorization=`Bearer ${this.licenseToken}`),e))}handleError(e){if(e.response){const t=e.response.data,n={statusCode:e.response.status,errorCode:t.error_code||"UNKNOWN_ERROR",message:t.message||"Request failed",retryAfter:t.retry_after_seconds||null};throw new Error(JSON.stringify(n))}throw e.request?new Error(JSON.stringify({statusCode:503,errorCode:"NETWORK_ERROR",message:"No response from server",retryAfter:null})):new Error(JSON.stringify({statusCode:500,errorCode:"INTERNAL_ERROR",message:e.message,retryAfter:null}))}async get(e,t={}){try{return(await this.client.get(e,t)).data}catch(n){this.handleError(n)}}async post(e,t,n={}){try{return(await this.client.post(e,t,n)).data}catch(r){this.handleError(r)}}async put(e,t,n={}){try{return(await this.client.put(e,t,n)).data}catch(r){this.handleError(r)}}async patch(e,t,n={}){try{return(await this.client.patch(e,t,n)).data}catch(r){this.handleError(r)}}async delete(e,t={}){try{return(await this.client.delete(e,t)).data}catch(n){this.handleError(n)}}getClient(){return this.client}}class Gu{constructor(e="tiagpc"){this.prefix=e}_getKey(e){return`${this.prefix}_${e}`}set(e,t){try{const n=this._getKey(e),r=JSON.stringify(t);return localStorage.setItem(n,r),!0}catch(n){return!1}}get(e){try{const t=this._getKey(e),n=localStorage.getItem(t);return null===n?null:JSON.parse(n)}catch(t){return this.remove(e),null}}remove(e){try{const t=this._getKey(e);return localStorage.removeItem(t),!0}catch(t){return!1}}has(e){const t=this._getKey(e);return null!==localStorage.getItem(t)}clear(){try{const e=Object.keys(localStorage);return e.filter(e=>e.startsWith(`${this.prefix}_`)).forEach(e=>{localStorage.removeItem(e)}),!0}catch(e){return!1}}setWithTimestamp(e,t){return this.set(e,{data:t,timestamp:Date.now()})}getWithExpiry(e,t){const n=this.get(e);if(!n||!n.timestamp)return null;return Date.now()-n.timestamp>t?(this.remove(e),null):n.data}}class Qu{constructor(e,t){this.licenseToken=e,this.httpClient=t,this.storage=new Gu("tiagpc"),this.sessionToken=this._getOrCreateSessionToken()}_generateSessionToken(){return"session_"+Array.from(crypto.getRandomValues(new Uint8Array(28))).map(e=>e.toString(16).padStart(2,"0")).join("")}_getSessionKey(){return`session_${this.licenseToken.substring(0,16)}`}_getOrCreateSessionToken(){const e=this._getSessionKey(),t=this.storage.get(e);if(t&&t.sessionToken)return t.sessionToken;const n=this._generateSessionToken();return this._saveSessionToken(n,!1),n}_saveSessionToken(e,t=!1){const n=this._getSessionKey();this.storage.set(n,{sessionToken:e,timestamp:Date.now(),validated:t})}hasValidCachedSession(){const e=this._getSessionKey(),t=this.storage.get(e);if(!t)return!1;const{validated:n,timestamp:r}=t,o=Date.now();return n&&o-r<864e5}async validateSession(){try{return await this.httpClient.post("/validate-session",{session_token:this.sessionToken})}catch(e){return this.clearSession(),{success:!1,valid:!1}}}validateSessionLocally(){this._saveSessionToken(this.sessionToken,!0)}resetValidation(){this._saveSessionToken(this.sessionToken,!1)}getSessionToken(){return this.sessionToken}renewSessionToken(){const e=this._generateSessionToken();return this.sessionToken=e,this._saveSessionToken(e,!1),e}clearSession(){const e=this._getSessionKey();this.storage.remove(e)}async releaseSession(){if(this.licenseToken)try{return await this.httpClient.post("/release-session",{session_token:this.sessionToken})}catch(e){}}}class $u{constructor(e,t,n){this.licenseToken=e,this.sessionToken=t,this.httpClient=n,this.storage=new Gu("tiagpc")}_getLastConversationKey(){return`last_conversation_${this.licenseToken.substring(0,16)}`}async listConversations(e=20,t=0){return await this.httpClient.get("/conversations",{params:{limit:e,offset:t},headers:{"X-Session-Token":this.sessionToken}})}async getConversationHistory(e,t=50,n=0){return await this.httpClient.get(`/conversation/${e}/history`,{params:{limit:t,offset:n}})}async getCurrentConversation(){return await this.httpClient.get("/conversation/current",{headers:{"X-Session-Token":this.sessionToken}})}saveLastConversation(e,t){const n=this._getLastConversationKey();return this.storage.setWithTimestamp(n,{conversationId:e,messages:t})}getLastConversation(e=864e5){const t=this._getLastConversationKey();return this.storage.getWithExpiry(t,e)}clearLastConversation(){const e=this._getLastConversationKey();return this.storage.remove(e)}hasLastConversation(){const e=this._getLastConversationKey();return this.storage.has(e)}async updateConversationTitle(e,t){return await this.httpClient.patch(`/conversation/${e}/title`,{new_title:t},{headers:{"X-Session-Token":this.sessionToken}})}async deleteConversation(e){return await this.httpClient.delete(`/conversation/${e}`,{headers:{"X-Session-Token":this.sessionToken}})}}class Zu{constructor(e,t,n){this.licenseToken=e,this.sessionToken=t,this.httpClient=n}async sendMessage(e,t,n=null){const r=`${this.httpClient.baseURL}/ask`,o=function(){const e={};return we.forEach(t=>{e[t]=""}),{...e,client_timestamp:Date.now()/1e3,screen_resolution:`${window.screen.width}x${window.screen.height}`,timezone:-(new Date).getTimezoneOffset()/60,platform:navigator.platform||"unknown",language:navigator.language||"unknown",color_depth:window.screen.colorDepth||"unknown"}}(),i={message:e,session_token:this.sessionToken,request_metadata:o};n&&(i.conversation_id=n);const a=sessionStorage.getItem("mcp_login_data");if(a)try{i.mcp_login_data=JSON.parse(a)}catch{sessionStorage.removeItem("mcp_login_data")}try{const e=await fetch(r,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.licenseToken}`},body:JSON.stringify(i)});if(!e.ok){const t=await e.json().catch(()=>({}));throw new Error(JSON.stringify({statusCode:e.status,errorCode:t.error_code||"UNKNOWN_ERROR",message:t.message||"Request failed",retryAfter:t.retry_after_seconds||null}))}return await this._processSSEResponse(e,t)}catch(s){if(s.message.startsWith("{"))throw s;throw new Error(JSON.stringify({statusCode:500,errorCode:"NETWORK_ERROR",message:s.message,retryAfter:null}))}}async _processSSEResponse(e,t){const n=e.body.getReader(),r=new TextDecoder;let o="",i="",a=null,s=null;for(;;){const{done:e,value:u}=await n.read();if(e)break;o+=r.decode(u,{stream:!0});const c=o.split("\n");o=c.pop();for(const n of c){if(!n.trim()||!n.startsWith("data: "))continue;const e=n.replace("data: ","").trim();if("[DONE]"!==e)try{const n=JSON.parse(e);if("content"===n.type)i+=n.text,t&&t(n.text);else if("metadata"===n.type)a=n;else if("summary"===n.type)s=n;else if("error"===n.type)throw new Error(JSON.stringify({statusCode:n.status_code||500,errorCode:n.error_code,message:n.message,retryAfter:null}))}catch(l){if(l.message&&l.message.startsWith("{"))throw l}}}if(!s)throw new Error("No summary received from server");return{success:!0,data:{message_id:s.message_id,conversation_id:s.conversation_id,response:i,response_time_ms:s.response_time_ms,model_used:s.model_used,created_at:s.created_at}}}async transcribeAudio(e){const t=new FormData;t.append("file",e,"audio.webm");const n=this.httpClient.getClient();return(await n.post("/transcribe",t,{headers:{"Content-Type":"multipart/form-data"}})).data}}class Ju{constructor(e,t){if(!t)throw new Error("License token is required");this.licenseToken=t,this.httpClient=new Ku(e,t),this.sessionService=new Qu(t,this.httpClient),this.conversationService=new $u(t,this.sessionService.getSessionToken(),this.httpClient),this.messageService=new Zu(t,this.sessionService.getSessionToken(),this.httpClient)}getSessionToken(){return this.sessionService.getSessionToken()}hasValidCachedSession(){return this.sessionService.hasValidCachedSession()}async validateSession(){return await this.sessionService.validateSession()}validateSessionLocally(){this.sessionService.validateSessionLocally()}renewSessionToken(){const e=this.sessionService.renewSessionToken();return this.conversationService.sessionToken=e,this.messageService.sessionToken=e,e}async releaseSession(){return await this.sessionService.releaseSession()}async listConversations(e=20){return await this.conversationService.listConversations(e)}async getConversationHistory(e,t=50){return await this.conversationService.getConversationHistory(e,t)}async getCurrentConversation(){return await this.conversationService.getCurrentConversation()}saveLastConversation(e,t){return this.conversationService.saveLastConversation(e,t)}getLastConversation(e=864e5){return this.conversationService.getLastConversation(e)}clearLastConversation(){return this.conversationService.clearLastConversation()}async updateConversationTitle(e,t){return await this.conversationService.updateConversationTitle(e,t)}async deleteConversation(e){return await this.conversationService.deleteConversation(e)}async sendMessage(e,t,n=null){if(!this.licenseToken)throw new Error("License token is required.");return await this.messageService.sendMessage(e,t,n)}async transcribeAudio(e){if(!this.licenseToken)throw new Error("License token is required.");return await this.messageService.transcribeAudio(e)}async getInitConfig(){if(!this.licenseToken)throw new Error("License token is required.");return await this.httpClient.get("/init")}async checkHealth(){try{return await this.httpClient.get("/health")}catch(e){return{status:"unhealthy",error:e.message}}}async generateCaptchaChallenge(){if(!this.licenseToken)throw new Error("License token is required.");return await this.httpClient.post("/captcha/challenge",{session_token:this.getSessionToken()})}async verifyCaptchaAnswer(e,t){if(!this.licenseToken)throw new Error("License token is required.");return await this.httpClient.post("/captcha/verify",{challenge_id:e,answer:parseInt(t,10),session_token:this.getSessionToken()})}async verifyMcpCredentials(e){if(!this.licenseToken)throw new Error("License token is required.");return await this.httpClient.post("/mcp/verify-credentials",{login_data:e,session_token:this.getSessionToken()})}}const Xu=(e="auto")=>{const[t,n]=l.useState(e),[r,o]=l.useState("light"),i=l.useRef(!1);l.useEffect(()=>{i.current||n(e)},[e]),l.useEffect(()=>{if(o("auto"===t?window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":t),"auto"===t){const e=window.matchMedia("(prefers-color-scheme: dark)"),t=e=>{o(e.matches?"dark":"light")};return e.addEventListener("change",t),()=>{e.removeEventListener("change",t)}}},[t]);return{theme:r,themeMode:t,setThemeMode:n,toggleTheme:()=>{i.current=!0,n(e=>"auto"===e?"light"===r?"dark":"light":"light"===e?"dark":"light")}}},ec=e=>"string"==typeof e,tc=()=>{let e,t;const n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},nc=e=>null==e?"":""+e,rc=/###/g,oc=e=>e&&e.indexOf("###")>-1?e.replace(rc,"."):e,ic=e=>!e||ec(e),ac=(e,t,n)=>{const r=ec(t)?t.split("."):t;let o=0;for(;o<r.length-1;){if(ic(e))return{};const t=oc(r[o]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++o}return ic(e)?{}:{obj:e,k:oc(r[o])}},sc=(e,t,n)=>{const{obj:r,k:o}=ac(e,t,Object);if(void 0!==r||1===t.length)return void(r[o]=n);let i=t[t.length-1],a=t.slice(0,t.length-1),s=ac(e,a,Object);for(;void 0===s.obj&&a.length;)i=`${a[a.length-1]}.${i}`,a=a.slice(0,a.length-1),s=ac(e,a,Object),s?.obj&&void 0!==s.obj[`${s.k}.${i}`]&&(s.obj=void 0);s.obj[`${s.k}.${i}`]=n},lc=(e,t)=>{const{obj:n,k:r}=ac(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},uc=(e,t,n)=>{for(const r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?ec(e[r])||e[r]instanceof String||ec(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):uc(e[r],t[r],n):e[r]=t[r]);return e},cc=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var dc={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const fc=e=>ec(e)?e.replace(/[&<>"'\/]/g,e=>dc[e]):e;const pc=[" ",",","?","!",";"],hc=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(void 0!==t)return t;const n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}(20),gc=(e,t,n=".")=>{if(!e)return;if(e[t]){if(!Object.prototype.hasOwnProperty.call(e,t))return;return e[t]}const r=t.split(n);let o=e;for(let i=0;i<r.length;){if(!o||"object"!=typeof o)return;let e,t="";for(let a=i;a<r.length;++a)if(a!==i&&(t+=n),t+=r[a],e=o[t],void 0!==e){if(["string","number","boolean"].indexOf(typeof e)>-1&&a<r.length-1)continue;i+=a-i+1;break}o=e}return o},mc=e=>e?.replace("_","-"),yc={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){}};class vc{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||yc,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,n,r){return r&&!this.debug?null:(ec(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new vc(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new vc(this.logger,e)}}var bc=new vc;class kc{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);const n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}emit(e,...t){if(this.observers[e]){Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let r=0;r<n;r++)e(...t)})}if(this.observers["*"]){Array.from(this.observers["*"].entries()).forEach(([n,r])=>{for(let o=0;o<r;o++)n.apply(n,[e,...t])})}}}class xc extends kc{constructor(e,t={ns:["translation"],defaultNS:"translation"}){super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n,r={}){const o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;e.indexOf(".")>-1?a=e.split("."):(a=[e,t],n&&(Array.isArray(n)?a.push(...n):ec(n)&&o?a.push(...n.split(o)):a.push(n)));const s=lc(this.data,a);return!s&&!t&&!n&&e.indexOf(".")>-1&&(e=a[0],t=a[1],n=a.slice(2).join(".")),!s&&i&&ec(n)?gc(this.data?.[e]?.[t],n,o):s}addResource(e,t,n,r,o={silent:!1}){const i=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator;let a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(a=e.split("."),r=t,t=a[1]),this.addNamespaces(t),sc(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}addResources(e,t,n,r={silent:!1}){for(const o in n)(ec(n[o])||Array.isArray(n[o]))&&this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,r,o,i={silent:!1,skipCopy:!1}){let a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),r=n,n=t,t=a[1]),this.addNamespaces(t);let s=lc(this.data,a)||{};i.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?uc(s,n,o):s={...s,...n},sc(this.data,a,s),i.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var wc={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach(e=>{t=this.processors[e]?.process(t,n,r,o)??t}),t}};const Sc=Symbol("i18next/PATH_KEY");function Cc(e,t){const{[Sc]:n}=e(function(){const e=[],t=Object.create(null);let n;return t.get=(r,o)=>(n?.revoke?.(),o===Sc?e:(e.push(o),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}());return n.join(t?.keySeparator??".")}const Ec={},Nc=e=>!ec(e)&&"boolean"!=typeof e&&"number"!=typeof e;class Tc extends kc{constructor(e,t={}){var n,r;super(),n=e,r=this,["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach(e=>{n[e]&&(r[e]=n[e])}),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=bc.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){const n={...t};if(null==e)return!1;const r=this.resolve(e,n);if(void 0===r?.res)return!1;const o=Nc(r.res);return!1!==n.returnObjects||!o}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");const r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let o=t.ns||this.options.defaultNS||[];const i=n&&e.indexOf(n)>-1,a=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||((e,t,n)=>{t=t||"",n=n||"";const r=pc.filter(e=>t.indexOf(e)<0&&n.indexOf(e)<0);if(0===r.length)return!0;const o=hc.getRegExp(`(${r.map(e=>"?"===e?"\\?":e).join("|")})`);let i=!o.test(e);if(!i){const t=e.indexOf(n);t>0&&!o.test(e.substring(0,t))&&(i=!0)}return i})(e,n,r));if(i&&!a){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:ec(o)?[o]:o};const i=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(i[0])>-1)&&(o=i.shift()),e=i.join(r)}return{key:e,namespaces:ec(o)?[o]:o}}translate(e,t,n){let r="object"==typeof t?{...t}:t;if("object"!=typeof r&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof r&&(r={...r}),r||(r={}),null==e)return"";"function"==typeof e&&(e=Cc(e,{...this.options,...r})),Array.isArray(e)||(e=[String(e)]);const o=void 0!==r.returnDetails?r.returnDetails:this.options.returnDetails,i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,{key:a,namespaces:s}=this.extractFromKey(e[e.length-1],r),l=s[s.length-1];let u=void 0!==r.nsSeparator?r.nsSeparator:this.options.nsSeparator;void 0===u&&(u=":");const c=r.lng||this.language,d=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if("cimode"===c?.toLowerCase())return d?o?{res:`${l}${u}${a}`,usedKey:a,exactUsedKey:a,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(r)}:`${l}${u}${a}`:o?{res:a,usedKey:a,exactUsedKey:a,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(r)}:a;const f=this.resolve(e,r);let p=f?.res;const h=f?.usedKey||a,g=f?.exactUsedKey||a,m=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,v=void 0!==r.count&&!ec(r.count),b=Tc.hasDefaultValue(r),k=v?this.pluralResolver.getSuffix(c,r.count,r):"",x=r.ordinal&&v?this.pluralResolver.getSuffix(c,r.count,{ordinal:!1}):"",w=v&&!r.ordinal&&0===r.count,S=w&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${k}`]||r[`defaultValue${x}`]||r.defaultValue;let C=p;y&&!p&&b&&(C=S);const E=Nc(C),N=Object.prototype.toString.apply(C);if(!(y&&C&&E&&["[object Number]","[object Function]","[object RegExp]"].indexOf(N)<0)||ec(m)&&Array.isArray(C))if(y&&ec(m)&&Array.isArray(p))p=p.join(m),p&&(p=this.extendTranslation(p,e,r,n));else{let t=!1,o=!1;!this.isValidLookup(p)&&b&&(t=!0,p=S),this.isValidLookup(p)||(o=!0,p=a);const s=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&o?void 0:p,d=b&&S!==p&&this.options.updateMissing;if(o||t||d){if(this.logger.log(d?"updateKey":"missingKey",c,l,a,d?S:p),i){const e=this.resolve(a,{...r,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if("fallback"===this.options.saveMissingTo&&t&&t[0])for(let r=0;r<t.length;r++)e.push(t[r]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(r.lng||this.language):e.push(r.lng||this.language);const n=(e,t,n)=>{const o=b&&n!==p?n:s;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,t,o,d,r):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,l,t,o,d,r),this.emit("missingKey",e,l,t,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&v?e.forEach(e=>{const t=this.pluralResolver.getSuffixes(e,r);w&&r[`defaultValue${this.options.pluralSeparator}zero`]&&t.indexOf(`${this.options.pluralSeparator}zero`)<0&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],a+t,r[`defaultValue${t}`]||S)})}):n(e,a,S))}p=this.extendTranslation(p,e,r,f,n),o&&p===a&&this.options.appendNamespaceToMissingKey&&(p=`${l}${u}${a}`),(o||t)&&this.options.parseMissingKeyHandler&&(p=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${u}${a}`:a,t?p:void 0,r))}else{if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,C,{...r,ns:s}):`key '${a} (${this.language})' returned an object instead of string.`;return o?(f.res=e,f.usedParams=this.getUsedParamsDetails(r),f):e}if(i){const e=Array.isArray(C),t=e?[]:{},n=e?g:h;for(const o in C)if(Object.prototype.hasOwnProperty.call(C,o)){const e=`${n}${i}${o}`;t[o]=b&&!p?this.translate(e,{...r,defaultValue:Nc(S)?S[o]:void 0,joinArrays:!1,ns:s}):this.translate(e,{...r,joinArrays:!1,ns:s}),t[o]===e&&(t[o]=C[o])}p=t}}return o?(f.res=p,f.usedParams=this.getUsedParamsDetails(r),f):p}extendTranslation(e,t,n,r,o){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const i=ec(e)&&(void 0!==n?.interpolation?.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let a;if(i){const t=e.match(this.interpolator.nestingRegexp);a=t&&t.length}let s=n.replace&&!ec(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language||r.usedLng,n),i){const t=e.match(this.interpolator.nestingRegexp);a<(t&&t.length)&&(n.nest=!1)}!n.lng&&r&&r.res&&(n.lng=this.language||r.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,(...e)=>o?.[0]!==e[0]||n.context?this.translate(...e,t):(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null),n)),n.interpolation&&this.interpolator.reset()}const i=n.postProcess||this.options.postProcess,a=ec(i)?[i]:i;return null!=e&&a?.length&&!1!==n.applyPostProcessor&&(e=wc.handle(a,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,r,o,i,a;return ec(e)&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(n))return;const s=this.extractFromKey(e,t),l=s.key;r=l;let u=s.namespaces;this.options.fallbackNS&&(u=u.concat(this.options.fallbackNS));const c=void 0!==t.count&&!ec(t.count),d=c&&!t.ordinal&&0===t.count,f=void 0!==t.context&&(ec(t.context)||"number"==typeof t.context)&&""!==t.context,p=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);u.forEach(e=>{this.isValidLookup(n)||(a=e,Ec[`${p[0]}-${e}`]||!this.utils?.hasLoadedNamespace||this.utils?.hasLoadedNamespace(a)||(Ec[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${p.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach(r=>{if(this.isValidLookup(n))return;i=r;const a=[l];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(a,l,r,e,t);else{let e;c&&(e=this.pluralResolver.getSuffix(r,t.count,t));const n=`${this.options.pluralSeparator}zero`,o=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(c&&(t.ordinal&&0===e.indexOf(o)&&a.push(l+e.replace(o,this.options.pluralSeparator)),a.push(l+e),d&&a.push(l+n)),f){const r=`${l}${this.options.contextSeparator||"_"}${t.context}`;a.push(r),c&&(t.ordinal&&0===e.indexOf(o)&&a.push(r+e.replace(o,this.options.pluralSeparator)),a.push(r+e),d&&a.push(r+n))}}let s;for(;s=a.pop();)this.isValidLookup(n)||(o=s,n=this.getResource(r,e,s,t))}))})}),{res:n,usedKey:r,exactUsedKey:o,usedLng:i,usedNS:a}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,n,r={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(e={}){const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&!ec(e.replace);let r=n?e.replace:e;if(n&&void 0!==e.count&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(const e of t)delete r[e]}return r}static hasDefaultValue(e){const t="defaultValue";for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,12)&&void 0!==e[n])return!0;return!1}}class Lc{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=bc.create("languageUtils")}getScriptPartFromCode(e){if(!(e=mc(e))||e.indexOf("-")<0)return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=mc(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(ec(e)&&e.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(e)[0]}catch(t){}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;const n=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(n)||(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;const n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;const r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>e===r?e:e.indexOf("-")<0&&r.indexOf("-")<0?void 0:e.indexOf("-")>0&&r.indexOf("-")<0&&e.substring(0,e.indexOf("-"))===r||0===e.indexOf(r)&&r.length>1?e:void 0)}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),ec(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){const n=this.getFallbackCodes((!1===t?[]:t)||this.options.fallbackLng||[],e),r=[],o=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return ec(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):ec(e)&&o(this.formatLanguageCode(e)),n.forEach(e=>{r.indexOf(e)<0&&o(this.formatLanguageCode(e))}),r}}const Oc={zero:0,one:1,two:2,few:3,many:4,other:5},Pc={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class Ac{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=bc.create("pluralResolver"),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){const n=mc("dev"===e?"en":e),r=t.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:n,type:r});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];let i;try{i=new Intl.PluralRules(n,{type:r})}catch(a){if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),Pc;if(!e.match(/-|_/))return Pc;const n=this.languageUtils.getLanguagePartFromCode(e);i=this.getRule(n,t)}return this.pluralRulesCache[o]=i,i}needsPlural(e,t={}){let n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),n?n.resolvedOptions().pluralCategories.sort((e,t)=>Oc[e]-Oc[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):[]}getSuffix(e,t,n={}){const r=this.getRule(e,n);return r?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,n))}}const Rc=(e,t,n,r=".",o=!0)=>{let i=((e,t,n)=>{const r=lc(e,n);return void 0!==r?r:lc(t,n)})(e,t,n);return!i&&o&&ec(n)&&(i=gc(e,n,r),void 0===i&&(i=gc(t,n,r))),i},Ic=e=>e.replace(/\$/g,"$$$$");class jc{constructor(e={}){this.logger=bc.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:o,prefixEscaped:i,suffix:a,suffixEscaped:s,formatSeparator:l,unescapeSuffix:u,unescapePrefix:c,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:h,nestingOptionsSeparator:g,maxReplaces:m,alwaysFormat:y}=e.interpolation;this.escape=void 0!==t?t:fc,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==r&&r,this.prefix=o?cc(o):i||"{{",this.suffix=a?cc(a):s||"}}",this.formatSeparator=l||",",this.unescapePrefix=u?"":c||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=d?cc(d):f||cc("$t("),this.nestingSuffix=p?cc(p):h||cc(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=m||1e3,this.alwaysFormat=void 0!==y&&y,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(e,t)=>e?.source===t?(e.lastIndex=0,e):new RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let o,i,a;const s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},l=e=>{if(e.indexOf(this.formatSeparator)<0){const o=Rc(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(o,void 0,n,{...r,...t,interpolationkey:e}):o}const o=e.split(this.formatSeparator),i=o.shift().trim(),a=o.join(this.formatSeparator).trim();return this.format(Rc(t,s,i,this.options.keySeparator,this.options.ignoreJSONStructure),a,n,{...r,...t,interpolationkey:i})};this.resetRegExp();const u=r?.missingInterpolationHandler||this.options.missingInterpolationHandler,c=void 0!==r?.interpolation?.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>Ic(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?Ic(this.escape(e)):Ic(e)}].forEach(t=>{for(a=0;o=t.regex.exec(e);){const n=o[1].trim();if(i=l(n),void 0===i)if("function"==typeof u){const t=u(e,o,r);i=ec(t)?t:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))i="";else{if(c){i=o[0];continue}this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),i=""}else ec(i)||this.useRawValueToEscape||(i=nc(i));const s=t.safeValue(i);if(e=e.replace(o[0],s),c?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),e}nest(e,t,n={}){let r,o,i;const a=(e,t)=>{const n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;const r=e.split(new RegExp(`${n}[ ]*{`));let o=`{${r[1]}`;e=r[0],o=this.interpolate(o,i);const a=o.match(/'/g),s=o.match(/"/g);((a?.length??0)%2==0&&!s||s.length%2!=0)&&(o=o.replace(/'/g,'"'));try{i=JSON.parse(o),t&&(i={...t,...i})}catch(l){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,l),`${e}${n}${o}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let s=[];i={...n},i=i.replace&&!ec(i.replace)?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;const l=/{.*}/.test(r[1])?r[1].lastIndexOf("}")+1:r[1].indexOf(this.formatSeparator);if(-1!==l&&(s=r[1].slice(l).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),r[1]=r[1].slice(0,l)),o=t(a.call(this,r[1].trim(),i),i),o&&r[0]===e&&!ec(o))return o;ec(o)||(o=nc(o)),o||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),o=""),s.length&&(o=s.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:r[1].trim()}),o.trim())),e=e.replace(r[0],o),this.regexp.lastIndex=0}return e}}const Dc=e=>{const t={};return(n,r,o)=>{let i=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(i={...i,[o.interpolationkey]:void 0});const a=r+JSON.stringify(i);let s=t[a];return s||(s=e(mc(r),o),t[a]=s),s(n)}},Mc=e=>(t,n,r)=>e(mc(n),r)(t);class zc{constructor(e={}){this.logger=bc.create("formatter"),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";const n=t.cacheInBuiltFormats?Dc:Mc;this.formats={number:n((e,t)=>{const n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{const n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)}),datetime:n((e,t)=>{const n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{const n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")}),list:n((e,t)=>{const n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=Dc(t)}format(e,t,n,r={}){const o=t.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find(e=>e.indexOf(")")>-1)){const e=o.findIndex(e=>e.indexOf(")")>-1);o[0]=[o[0],...o.splice(1,e)].join(this.formatSeparator)}return o.reduce((e,t)=>{const{formatName:o,formatOptions:i}=(e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const o=r[1].substring(0,r[1].length-1);"currency"===t&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):"relativetime"===t&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach(e=>{if(e){const[t,...r]=e.split(":"),o=r.join(":").trim().replace(/^'+|'+$/g,""),i=t.trim();n[i]||(n[i]=o),"false"===o&&(n[i]=!1),"true"===o&&(n[i]=!0),isNaN(o)||(n[i]=parseInt(o,10))}})}return{formatName:t,formatOptions:n}})(t);if(this.formats[o]){let t=e;try{const a=r?.formatParams?.[r.interpolationkey]||{},s=a.locale||a.lng||r.locale||r.lng||n;t=this.formats[o](e,s,{...i,...r,...a})}catch(a){this.logger.warn(a)}return t}return this.logger.warn(`there was no format function for ${o}`),e},e)}}class _c extends kc{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=bc.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,r.backend,r)}queueLoad(e,t,n,r){const o={},i={},a={},s={};return e.forEach(e=>{let r=!0;t.forEach(t=>{const a=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[a]=2:this.state[a]<0||(1===this.state[a]?void 0===i[a]&&(i[a]=!0):(this.state[a]=1,r=!1,void 0===i[a]&&(i[a]=!0),void 0===o[a]&&(o[a]=!0),void 0===s[t]&&(s[t]=!0)))}),r||(a[e]=!0)}),(Object.keys(o).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(o),pending:Object.keys(i),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){const r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),!t&&n&&this.store.addResourceBundle(o,i,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);const a={};this.queue.forEach(n=>{((e,t,n)=>{const{obj:r,k:o}=ac(e,t,Object);r[o]=r[o]||[],r[o].push(n)})(n.loaded,[o],i),((e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)})(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(e=>{a[e]||(a[e]={});const t=n.loaded[e];t.length&&t.forEach(t=>{void 0===a[e][t]&&(a[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,r=0,o=this.retryTimeout,i){if(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:o,callback:i});this.readingCalls++;const a=(a,s)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}a&&s&&r<this.maxRetries?setTimeout(()=>{this.read.call(this,e,t,n,r+1,2*o,i)},o):i(a,s)},s=this.backend[n].bind(this.backend);if(2!==s.length)return s(e,t,a);try{const n=s(e,t);n&&"function"==typeof n.then?n.then(e=>a(null,e)).catch(a):a(null,n)}catch(l){a(l)}}prepareLoading(e,t,n={},r){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();ec(e)&&(e=this.languageUtils.toResolveHierarchy(e)),ec(t)&&(t=[t]);const o=this.queueLoad(e,t,n,r);if(!o.toLoad.length)return o.pending.length||r(),null;o.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=""){const n=e.split("|"),r=n[0],o=n[1];this.read(r,o,"read",void 0,void 0,(n,i)=>{n&&this.logger.warn(`${t}loading namespace ${o} for language ${r} failed`,n),!n&&i&&this.logger.log(`${t}loaded namespace ${o} for language ${r}`,i),this.loaded(e,n,i)})}saveMissing(e,t,n,r,o,i={},a=()=>{}){if(!this.services?.utils?.hasLoadedNamespace||this.services?.utils?.hasLoadedNamespace(t)){if(null!=n&&""!==n){if(this.backend?.create){const l={...i,isUpdate:o},u=this.backend.create.bind(this.backend);if(u.length<6)try{let o;o=5===u.length?u(e,t,n,r,l):u(e,t,n,r),o&&"function"==typeof o.then?o.then(e=>a(null,e)).catch(a):a(null,o)}catch(s){a(s)}else u(e,t,n,r,a,l)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}else this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")}}const Fc=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),ec(e[1])&&(t.defaultValue=e[1]),ec(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Uc=e=>(ec(e.ns)&&(e.ns=[e.ns]),ec(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),ec(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),"boolean"==typeof e.initImmediate&&(e.initAsync=e.initImmediate),e),Bc=()=>{};class Hc extends kc{constructor(e={},t){var n;if(super(),this.options=Uc(e),this.services={},this.logger=bc,this.modules={external:[]},n=this,Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach(e=>{"function"==typeof n[e]&&(n[e]=n[e].bind(n))}),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,"function"==typeof e&&(t=e,e={}),null==e.defaultNS&&e.ns&&(ec(e.ns)?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const n=Fc();this.options={...n,...this.options,...Uc(e)},this.options.interpolation={...n.interpolation,...this.options.interpolation},void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator);const r=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let e;this.modules.logger?bc.init(r(this.modules.logger),this.options):bc.init(null,this.options),e=this.modules.formatter?this.modules.formatter:zc;const t=new Lc(this.options);this.store=new xc(this.options.resources,this.options);const o=this.services;o.logger=bc,o.resourceStore=this.store,o.languageUtils=t,o.pluralResolver=new Ac(t,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix});this.options.interpolation.format&&this.options.interpolation.format!==n.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),!e||this.options.interpolation.format&&this.options.interpolation.format!==n.interpolation.format||(o.formatter=r(e),o.formatter.init&&o.formatter.init(o,this.options),this.options.interpolation.format=o.formatter.format.bind(o.formatter)),o.interpolator=new jc(this.options),o.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},o.backendConnector=new _c(r(this.modules.backend),o.resourceStore,o,this.options),o.backendConnector.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(o.languageDetector=r(this.modules.languageDetector),o.languageDetector.init&&o.languageDetector.init(o,this.options.detection,this.options)),this.modules.i18nFormat&&(o.i18nFormat=r(this.modules.i18nFormat),o.i18nFormat.init&&o.i18nFormat.init(this)),this.translator=new Tc(this.services,this.options),this.translator.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||(t=Bc),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(e=>{this[e]=(...t)=>this.store[e](...t)});["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});const o=tc(),i=()=>{const e=(e,n)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),o.resolve(n),t(e,n)};if(this.languages&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?i():setTimeout(i,0),o}loadResources(e,t=Bc){let n=t;const r=ec(e)?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if("cimode"===r?.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return n();const e=[],t=t=>{if(!t)return;if("cimode"===t)return;this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&e.indexOf(t)<0&&e.push(t)})};if(r)t(r);else{this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e))}this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){const r=tc();return"function"==typeof e&&(n=e,e=void 0),"function"==typeof t&&(n=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),n||(n=Bc),this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&wc.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1)){for(let e=0;e<this.languages.length;e++){const t=this.languages[e];if(!(["cimode","dev"].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&this.languages.indexOf(e)<0&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;const n=tc();this.emit("languageChanging",e);const r=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},o=(o,i)=>{i?this.isLanguageChangingTo===e&&(r(i),this.translator.changeLanguage(i),this.isLanguageChangingTo=void 0,this.emit("languageChanged",i),this.logger.log("languageChanged",i)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(o,(...e)=>this.t(...e))},i=t=>{e||t||!this.services.languageDetector||(t=[]);const n=ec(t)?t:t&&t[0],i=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(ec(t)?[t]:t);i&&(this.language||r(i),this.translator.language||this.translator.changeLanguage(i),this.services.languageDetector?.cacheUserLanguage?.(i)),this.loadResources(i,e=>{o(e,i)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(i):this.services.languageDetector.detect(i):i(e):i(this.services.languageDetector.detect()),n}getFixedT(e,t,n){const r=(e,t,...o)=>{let i;i="object"!=typeof t?this.options.overloadTranslationOptionHandler([e,t].concat(o)):{...t},i.lng=i.lng||r.lng,i.lngs=i.lngs||r.lngs,i.ns=i.ns||r.ns,""!==i.keyPrefix&&(i.keyPrefix=i.keyPrefix||n||r.keyPrefix);const a=this.options.keySeparator||".";let s;return i.keyPrefix&&Array.isArray(e)?s=e.map(e=>("function"==typeof e&&(e=Cc(e,{...this.options,...t})),`${i.keyPrefix}${a}${e}`)):("function"==typeof e&&(e=Cc(e,{...this.options,...t})),s=i.keyPrefix?`${i.keyPrefix}${a}${e}`:e),this.t(s,i)};return ec(e)?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=n,r}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=t.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;const i=(e,t)=>{const n=this.services.backendConnector.state[`${e}|${t}`];return-1===n||0===n||2===n};if(t.precheck){const e=t.precheck(this,i);if(void 0!==e)return e}return!!this.hasResourceBundle(n,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!i(n,e)||r&&!i(o,e)))}loadNamespaces(e,t){const n=tc();return this.options.ns?(ec(e)&&(e=[e]),e.forEach(e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){const n=tc();ec(e)&&(e=[e]);const r=this.options.preload||[],o=e.filter(e=>r.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e));return o.length?(this.options.preload=r.concat(o),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"rtl";try{const t=new Intl.Locale(e);if(t&&t.getTextInfo){const e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch(n){}const t=this.services?.languageUtils||new Lc(Fc());return e.toLowerCase().indexOf("-latn")>1?"ltr":["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},t){return new Hc(e,t)}cloneInstance(e={},t=Bc){const n=e.forkResourceStore;n&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},o=new Hc(r);void 0===e.debug&&void 0===e.prefix||(o.logger=o.logger.clone(e));if(["store","services","language"].forEach(e=>{o[e]=this[e]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},n){const e=Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((n,r)=>(n[r]={...e[t][r]},n),e[t]),e),{});o.store=new xc(e,r),o.services.resourceStore=o.store}return o.translator=new Tc(o.services,r),o.translator.on("*",(e,...t)=>{o.emit(e,...t)}),o.init(r,t),o.translator.options=r,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Vc=Hc.createInstance();Vc.createInstance=Hc.createInstance,Vc.createInstance,Vc.dir,Vc.init,Vc.loadResources,Vc.reloadResources,Vc.use,Vc.changeLanguage,Vc.getFixedT,Vc.t,Vc.exists,Vc.setDefaultNamespace,Vc.hasLoadedNamespace,Vc.loadNamespaces,Vc.loadLanguages;const{slice:qc,forEach:Wc}=[];const Yc=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,Kc={create(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{path:"/",sameSite:"strict"};n&&(o.expires=new Date,o.expires.setTime(o.expires.getTime()+60*n*1e3)),r&&(o.domain=r),document.cookie=function(e,t){const n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{path:"/"};let r=`${e}=${encodeURIComponent(t)}`;if(n.maxAge>0){const e=n.maxAge-0;if(Number.isNaN(e))throw new Error("maxAge should be a Number");r+=`; Max-Age=${Math.floor(e)}`}if(n.domain){if(!Yc.test(n.domain))throw new TypeError("option domain is invalid");r+=`; Domain=${n.domain}`}if(n.path){if(!Yc.test(n.path))throw new TypeError("option path is invalid");r+=`; Path=${n.path}`}if(n.expires){if("function"!=typeof n.expires.toUTCString)throw new TypeError("option expires is invalid");r+=`; Expires=${n.expires.toUTCString()}`}if(n.httpOnly&&(r+="; HttpOnly"),n.secure&&(r+="; Secure"),n.sameSite)switch("string"==typeof n.sameSite?n.sameSite.toLowerCase():n.sameSite){case!0:r+="; SameSite=Strict";break;case"lax":r+="; SameSite=Lax";break;case"strict":r+="; SameSite=Strict";break;case"none":r+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return n.partitioned&&(r+="; Partitioned"),r}(e,t,o)},read(e){const t=`${e}=`,n=document.cookie.split(";");for(let r=0;r<n.length;r++){let e=n[r];for(;" "===e.charAt(0);)e=e.substring(1,e.length);if(0===e.indexOf(t))return e.substring(t.length,e.length)}return null},remove(e,t){this.create(e,"",-1,t)}};var Gc={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&"undefined"!=typeof document)return Kc.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:n,cookieMinutes:r,cookieDomain:o,cookieOptions:i}=t;n&&"undefined"!=typeof document&&Kc.create(n,e,r,o,i)}},Qc={name:"querystring",lookup(e){let t,{lookupQuerystring:n}=e;if("undefined"!=typeof window){let{search:e}=window.location;!window.location.search&&window.location.hash?.indexOf("?")>-1&&(e=window.location.hash.substring(window.location.hash.indexOf("?")));const r=e.substring(1).split("&");for(let o=0;o<r.length;o++){const e=r[o].indexOf("=");if(e>0){r[o].substring(0,e)===n&&(t=r[o].substring(e+1))}}}return t}},$c={name:"hash",lookup(e){let t,{lookupHash:n,lookupFromHashIndex:r}=e;if("undefined"!=typeof window){const{hash:e}=window.location;if(e&&e.length>2){const o=e.substring(1);if(n){const e=o.split("&");for(let r=0;r<e.length;r++){const o=e[r].indexOf("=");if(o>0){e[r].substring(0,o)===n&&(t=e[r].substring(o+1))}}}if(t)return t;if(!t&&r>-1){const t=e.match(/\/([a-zA-Z-]*)/g);if(!Array.isArray(t))return;const n="number"==typeof r?r:0;return t[n]?.replace("/","")}}}return t}};let Zc=null;const Jc=()=>{if(null!==Zc)return Zc;try{if(Zc="undefined"!=typeof window&&null!==window.localStorage,!Zc)return!1;const e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch(e){Zc=!1}return Zc};var Xc={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&Jc())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:n}=t;n&&Jc()&&window.localStorage.setItem(n,e)}};let ed=null;const td=()=>{if(null!==ed)return ed;try{if(ed="undefined"!=typeof window&&null!==window.sessionStorage,!ed)return!1;const e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch(e){ed=!1}return ed};var nd={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&td())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:n}=t;n&&td()&&window.sessionStorage.setItem(n,e)}},rd={name:"navigator",lookup(e){const t=[];if("undefined"!=typeof navigator){const{languages:e,userLanguage:n,language:r}=navigator;if(e)for(let o=0;o<e.length;o++)t.push(e[o]);n&&t.push(n),r&&t.push(r)}return t.length>0?t:void 0}},od={name:"htmlTag",lookup(e){let t,{htmlTag:n}=e;const r=n||("undefined"!=typeof document?document.documentElement:null);return r&&"function"==typeof r.getAttribute&&(t=r.getAttribute("lang")),t}},id={name:"path",lookup(e){let{lookupFromPathIndex:t}=e;if("undefined"==typeof window)return;const n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(!Array.isArray(n))return;const r="number"==typeof t?t:0;return n[r]?.replace("/","")}},ad={name:"subdomain",lookup(e){let{lookupFromSubdomainIndex:t}=e;const n="number"==typeof t?t+1:1,r="undefined"!=typeof window&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[n]}};let sd=!1;try{document.cookie,sd=!0}catch(md){}const ld=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];sd||ld.splice(1,1);class ud{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(e,t)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{languageUtils:{}},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e,this.options=function(e){return Wc.call(qc.call(arguments,1),t=>{if(t)for(const n in t)void 0===e[n]&&(e[n]=t[n])}),e}(t,this.options||{},{order:ld,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e}),"string"==typeof this.options.convertDetectedLanguage&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=e=>e.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(Gc),this.addDetector(Qc),this.addDetector(Xc),this.addDetector(nd),this.addDetector(rd),this.addDetector(od),this.addDetector(id),this.addDetector(ad),this.addDetector($c)}addDetector(e){return this.detectors[e.name]=e,this}detect(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.order,t=[];return e.forEach(e=>{if(this.detectors[e]){let n=this.detectors[e].lookup(this.options);n&&"string"==typeof n&&(n=[n]),n&&(t=t.concat(n))}}),t=t.filter(e=>{return null!=e&&!("string"==typeof(t=e)&&[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(e=>e.test(t)));var t}).map(e=>this.options.convertDetectedLanguage(e)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?t:t.length>0?t[0]:null}cacheUserLanguage(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.options.caches;t&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||t.forEach(t=>{this.detectors[t]&&this.detectors[t].cacheUserLanguage(e,this.options)}))}}ud.type="languageDetector";const cd={widget:{title:"TIA GPC",poweredBy:"Desarrollado por SOFTIA.ca",questionsTo:"Preguntas a",validatingSession:"Validando sesión..."},chat:{title:"Asistente",placeholder:"Escribe tu pregunta...",send:"Enviar",close:"Cerrar",aiDisclaimer:"La IA puede cometer errores. Considera verificar la información importante.",welcome:"¡Hola! Bienvenido a {{companyName}}. ¿En qué puedo ayudarte hoy?",emptyState:"Inicia una conversación escribiendo tu pregunta",validation:"Verificando seguridad...",retry:"Reintentar",loadingMore:"Cargando mensajes anteriores..."},voice:{record:"Grabar audio",recording:"Grabando...",stop:"Detener grabación",processing:"Transcribiendo audio...",error:"Error al transcribir audio",unsupported:"Tu navegador no soporta grabación de audio",permissionDenied:"Permiso de micrófono denegado"},theme:{light:"Claro",dark:"Oscuro",toggle:"Cambiar tema"},errors:{unauthorized:"Autenticación fallida. Por favor, verifica tu token de licencia e intenta nuevamente.",validation:"Verificación anti-bot fallida. Por favor, recarga la página e intenta nuevamente.",network:"No se pudo conectar al servidor. Verifica tu conexión a internet.",rateLimit:"Has realizado demasiadas consultas o se alcanzó el límite de usuarios concurrentes. Por favor, espera un momento antes de continuar.",session:"Tu sesión ha expirado por inactividad. Por favor, recarga la página para continuar.",insufficientCredits:"Créditos insuficientes. Por favor, recarga créditos desde tu panel de administración para continuar usando TIA GPC.",generic:"Ha ocurrido un error inesperado. Por favor, intenta nuevamente.",aiServiceUnavailable:"El asistente está temporalmente no disponible. Por favor, intenta de nuevo en unos momentos.",serverError:"El servidor encontró un problema. Por favor, intenta de nuevo más tarde.",domainUnauthorized:"Este dominio no está autorizado para usar este widget. Por favor, contacta a tu administrador.",noKnowledgeAvailable:"Lo siento, no tengo respuesta para tu consulta. ¿Podrías darme un poco más de detalle o decirlo de otra forma?"},metadata:{tokensUsed:"Tokens usados",responseTime:"Tiempo de respuesta",model:"Modelo"},conversations:{title:"Conversaciones",new:"Nueva",empty:"No hay conversaciones aún",emptyHint:"Inicia una conversación para verla aquí",untitled:"Conversación sin título",loadingMore:"Cargando más...",toggle:"Alternar conversaciones",rename:"Renombrar",delete:"Eliminar",save:"Guardar",cancel:"Cancelar",confirmDelete:'¿Eliminar "{{title}}"?'},time:{justNow:"Justo ahora",minutesAgo:"hace {{count}} min",minutesAgo_one:"hace 1 min",minutesAgo_other:"hace {{count}} min",hoursAgo:"hace {{count}}h",hoursAgo_one:"hace 1h",hoursAgo_other:"hace {{count}}h",daysAgo:"hace {{count}}d",daysAgo_one:"hace 1d",daysAgo_other:"hace {{count}}d"},ui:{languageSelector:{label:"Cambiar idioma"},menu:"Más opciones",spinner:{loading:"Cargando"},typingIndicator:{typing:"Escribiendo"},message:{userMessage:"Mensaje del usuario",assistantMessage:"Mensaje del asistente"}},languages:{english:"English",spanish:"Español",french:"Français"},input:{maxCharacters:"Máximo {{count}} caracteres"},captcha:{title:"Verificación de seguridad",subtitle:"Por favor, resuelve esta operación matemática para continuar",question:"¿Cuánto es?",verify:"Verificar",verifying:"Verificando...",loading:"Cargando desafío...",incorrectAnswer:"Respuesta incorrecta. Inténtalo de nuevo",incorrectAnswerWithAttempts:"Respuesta incorrecta. Te quedan {{attempts}} intentos",invalidNumber:"Por favor, ingresa un número válido",error:"Error al verificar. Por favor, intenta nuevamente",errorGenerating:"Error al generar el desafío. Por favor, intenta nuevamente",challengeExpired:"El desafío ha expirado. Generando uno nuevo...",maxAttemptsExceeded:"Se excedió el número máximo de intentos. Generando un nuevo desafío...",invalidSession:"Sesión inválida. Por favor, recarga la página",attemptsLeft:"Te quedan {{count}} intentos",info:"Esta verificación se realiza solo una vez para proteger el servicio"},toast:{antiBotValidationPending:"Validación anti-bot pendiente",newConversationStarted:"Nueva conversación iniciada",failedLoadHistory:"No se pudo cargar el historial de la conversación",sessionExpired:"Sesión expirada, por favor verifica nuevamente",gpcServiceNotAvailable:"Servicio GPC no disponible",conversationRenamed:"Conversación renombrada exitosamente",failedRenameConversation:"No se pudo renombrar la conversación",conversationDeleted:"Conversación eliminada exitosamente",failedDeleteConversation:"No se pudo eliminar la conversación"},moodle:{title:"Acceso a Moodle",subtitle:"Ingresa tus credenciales para acceder a tu contenido personalizado",username:"Usuario",password:"Contraseña",submit:"Ingresar",requiredFields:"Usuario y contraseña son requeridos",skip:"Continuar sin iniciar sesión",login:"Iniciar sesión en Moodle",logout:"Cerrar sesión de Moodle"},about:{title:"Acerca de",product:"Producto",version:"Versión",creator:"Creador",rights:"Todos los derechos reservados.",close:"Cerrar"}},dd={widget:{title:"TIA GPC",poweredBy:"Powered by SOFTIA.ca",questionsTo:"Questions to",validatingSession:"Validating session..."},chat:{title:"Assistant",placeholder:"Type your question...",send:"Send",close:"Close",aiDisclaimer:"AI can make mistakes. Consider verifying important information.",welcome:"Hello! Welcome to {{companyName}}. How can I help you today?",emptyState:"Start a conversation by typing your question",validation:"Verifying security...",retry:"Retry",loadingMore:"Loading older messages..."},voice:{record:"Record audio",recording:"Recording...",stop:"Stop recording",processing:"Transcribing audio...",error:"Error transcribing audio",unsupported:"Your browser does not support audio recording",permissionDenied:"Microphone permission denied"},theme:{light:"Light",dark:"Dark",toggle:"Toggle theme"},errors:{unauthorized:"Authentication failed. Please check your license token and try again.",validation:"Bot verification failed. Please reload the page and try again.",network:"Unable to connect to the server. Please check your internet connection.",rateLimit:"You've made too many requests or the concurrent user limit has been reached. Please wait a moment before continuing.",session:"Your session has expired due to inactivity. Please reload the page to continue.",insufficientCredits:"Insufficient credits. Please reload credits from your admin panel to continue using TIA GPC.",generic:"An unexpected error has occurred. Please try again.",aiServiceUnavailable:"The assistant is temporarily unavailable. Please try again in a few moments.",serverError:"The server encountered a problem. Please try again later.",domainUnauthorized:"This domain is not authorized to use this widget. Please contact your administrator.",noKnowledgeAvailable:"Sorry, I don't have an answer for your query. Could you provide a bit more detail or phrase it differently?"},metadata:{tokensUsed:"Tokens used",responseTime:"Response time",model:"Model"},conversations:{title:"Conversations",new:"New",empty:"No conversations yet",emptyHint:"Start a conversation to see it here",untitled:"Untitled conversation",loadingMore:"Loading more...",toggle:"Toggle conversations",rename:"Rename",delete:"Delete",save:"Save",cancel:"Cancel",confirmDelete:'Delete "{{title}}"?'},time:{justNow:"Just now",minutesAgo:"{{count}} min ago",minutesAgo_one:"1 min ago",minutesAgo_other:"{{count}} min ago",hoursAgo:"{{count}}h ago",hoursAgo_one:"1h ago",hoursAgo_other:"{{count}}h ago",daysAgo:"{{count}}d ago",daysAgo_one:"1d ago",daysAgo_other:"{{count}}d ago"},ui:{languageSelector:{label:"Change language"},menu:"More options",spinner:{loading:"Loading"},typingIndicator:{typing:"Typing"},message:{userMessage:"User message",assistantMessage:"Assistant message"}},languages:{english:"English",spanish:"Español",french:"Français"},input:{maxCharacters:"Maximum {{count}} characters"},captcha:{title:"Security verification",subtitle:"Please solve this math problem to continue",question:"What is?",verify:"Verify",verifying:"Verifying...",loading:"Loading challenge...",incorrectAnswer:"Incorrect answer. Please try again",incorrectAnswerWithAttempts:"Incorrect answer. {{attempts}} attempts remaining",invalidNumber:"Please enter a valid number",error:"Error verifying. Please try again",errorGenerating:"Error generating challenge. Please try again",challengeExpired:"Challenge expired. Generating a new one...",maxAttemptsExceeded:"Maximum attempts exceeded. Generating a new challenge...",invalidSession:"Invalid session. Please refresh the page",attemptsLeft:"{{count}} attempts remaining",info:"This verification is done only once to protect the service"},toast:{antiBotValidationPending:"Anti-bot validation pending",newConversationStarted:"New conversation started",failedLoadHistory:"Failed to load conversation history",sessionExpired:"Session expired, please verify again",gpcServiceNotAvailable:"GPC Service not available",conversationRenamed:"Conversation renamed successfully",failedRenameConversation:"Failed to rename conversation",conversationDeleted:"Conversation deleted successfully",failedDeleteConversation:"Failed to delete conversation"},moodle:{title:"Moodle Access",subtitle:"Enter your credentials to access your personalized content",username:"Username",password:"Password",submit:"Sign in",requiredFields:"Username and password are required",skip:"Continue without signing in",login:"Sign in to Moodle",logout:"Sign out of Moodle"},about:{title:"About",product:"Product",version:"Version",creator:"Creator",rights:"All rights reserved.",close:"Close"}},fd={widget:{title:"TIA GPC",poweredBy:"Propulsé par SOFTIA.ca",questionsTo:"Questions à",validatingSession:"Validation de la session..."},chat:{title:"Assistant",placeholder:"Tapez votre question...",send:"Envoyer",close:"Fermer",aiDisclaimer:"L'IA peut faire des erreurs. Pensez à vérifier les informations importantes.",welcome:"Bonjour ! Bienvenue à {{companyName}}. Comment puis-je vous aider aujourd'hui ?",emptyState:"Commencez une conversation en tapant votre question",validation:"Vérification de sécurité...",retry:"Réessayer",loadingMore:"Chargement des messages précédents..."},voice:{record:"Enregistrer audio",recording:"Enregistrement...",stop:"Arrêter l'enregistrement",processing:"Transcription audio...",error:"Erreur de transcription audio",unsupported:"Votre navigateur ne prend pas en charge l'enregistrement audio",permissionDenied:"Permission du microphone refusée"},theme:{light:"Clair",dark:"Sombre",toggle:"Changer de thème"},errors:{unauthorized:"Échec de l'authentification. Veuillez vérifier votre jeton de licence et réessayer.",validation:"La vérification anti-bot a échoué. Veuillez recharger la page et réessayer.",network:"Impossible de se connecter au serveur. Veuillez vérifier votre connexion internet.",rateLimit:"Vous avez fait trop de demandes ou la limite d'utilisateurs concurrents a été atteinte. Veuillez patienter un moment avant de continuer.",session:"Votre session a expiré en raison d'inactivité. Veuillez recharger la page pour continuer.",insufficientCredits:"Crédits insuffisants. Veuillez recharger des crédits depuis votre panneau d'administration pour continuer à utiliser TIA GPC.",generic:"Une erreur inattendue s'est produite. Veuillez réessayer.",aiServiceUnavailable:"L'assistant est temporairement indisponible. Veuillez réessayer dans quelques instants.",serverError:"Le serveur a rencontré un problème. Veuillez réessayer plus tard.",domainUnauthorized:"Ce domaine n'est pas autorisé à utiliser ce widget. Veuillez contacter votre administrateur.",noKnowledgeAvailable:"Désolé, je n'ai pas de réponse à votre requête. Pourriez-vous me donner un peu plus de détails ou le formuler autrement ?"},metadata:{tokensUsed:"Tokens utilisés",responseTime:"Temps de réponse",model:"Modèle"},conversations:{title:"Conversations",new:"Nouvelle",empty:"Aucune conversation pour le moment",emptyHint:"Démarrez une conversation pour la voir ici",untitled:"Conversation sans titre",loadingMore:"Chargement...",toggle:"Basculer les conversations",rename:"Renommer",delete:"Supprimer",save:"Enregistrer",cancel:"Annuler",confirmDelete:'Supprimer "{{title}}" ?'},time:{justNow:"À l'instant",minutesAgo:"il y a {{count}} min",minutesAgo_one:"il y a 1 min",minutesAgo_other:"il y a {{count}} min",hoursAgo:"il y a {{count}}h",hoursAgo_one:"il y a 1h",hoursAgo_other:"il y a {{count}}h",daysAgo:"il y a {{count}}j",daysAgo_one:"il y a 1j",daysAgo_other:"il y a {{count}}j"},ui:{languageSelector:{label:"Changer de langue"},menu:"Plus d'options",spinner:{loading:"Chargement"},typingIndicator:{typing:"Écriture en cours"},message:{userMessage:"Message de l'utilisateur",assistantMessage:"Message de l'assistant"}},languages:{english:"English",spanish:"Español",french:"Français"},input:{maxCharacters:"Maximum {{count}} caractères"},captcha:{title:"Vérification de sécurité",subtitle:"Veuillez résoudre ce problème mathématique pour continuer",question:"Combien fait?",verify:"Vérifier",verifying:"Vérification...",loading:"Chargement du défi...",incorrectAnswer:"Réponse incorrecte. Veuillez réessayer",incorrectAnswerWithAttempts:"Réponse incorrecte. {{attempts}} tentatives restantes",invalidNumber:"Veuillez entrer un nombre valide",error:"Erreur de vérification. Veuillez réessayer",errorGenerating:"Erreur lors de la génération du défi. Veuillez réessayer",challengeExpired:"Le défi a expiré. Génération d'un nouveau...",maxAttemptsExceeded:"Nombre maximum de tentatives dépassé. Génération d'un nouveau défi...",invalidSession:"Session invalide. Veuillez actualiser la page",attemptsLeft:"{{count}} tentatives restantes",info:"Cette vérification n'est effectuée qu'une seule fois pour protéger le service"},toast:{antiBotValidationPending:"Validation anti-bot en attente",newConversationStarted:"Nouvelle conversation démarrée",failedLoadHistory:"Échec du chargement de l'historique de la conversation",sessionExpired:"Session expirée, veuillez vérifier à nouveau",gpcServiceNotAvailable:"Service GPC non disponible",conversationRenamed:"Conversation renommée avec succès",failedRenameConversation:"Échec du renommage de la conversation",conversationDeleted:"Conversation supprimée avec succès",failedDeleteConversation:"Échec de la suppression de la conversation"},moodle:{title:"Accès Moodle",subtitle:"Entrez vos identifiants pour accéder à votre contenu personnalisé",username:"Nom d'utilisateur",password:"Mot de passe",submit:"Se connecter",requiredFields:"Le nom d'utilisateur et le mot de passe sont requis",skip:"Continuer sans se connecter",login:"Se connecter à Moodle",logout:"Se déconnecter de Moodle"},about:{title:"À propos",product:"Produit",version:"Version",creator:"Créateur",rights:"Tous droits réservés.",close:"Fermer"}};Vc.use(ud).use(F).init({resources:{en:{translation:dd},es:{translation:cd},fr:{translation:fd}},fallbackLng:"en",supportedLngs:["en","es","fr"],interpolation:{escapeValue:!1},detection:{order:["localStorage","navigator"],caches:["localStorage"]}});const pd=({token:e,theme:t=rs,position:n=os,language:r=is,primaryColor:o,width:i=as,height:a=ss,apiUrl:s=Ja,onReady:u,onError:c,onClose:d,autoOpen:f=ls,showBranding:p=us,mobileFullscreen:h=cs,...g})=>{const[m,y]=l.useState(!1),[v,b]=l.useState(null),[k,x]=l.useState(!0),[w,S]=l.useState(!1),[C,E]=l.useState(!1),[N,L]=l.useState(!!sessionStorage.getItem("mcp_login_data")),[O,P]=l.useState(!1),A=l.useMemo(()=>new Ju(s,e),[s,e]);if(l.useEffect(()=>{const e=()=>{y(window.innerWidth<ns)};e(),window.addEventListener("resize",e);const t=localStorage.getItem(ke),n=localStorage.getItem(xe);if("true"===t&&n){Date.now()-parseInt(n,10)<be?S(!0):(localStorage.removeItem(ke),localStorage.removeItem(xe))}return()=>window.removeEventListener("resize",e)},[]),l.useEffect(()=>{const e=v?.widget_customization?.language||r;e&&Vc.changeLanguage&&Vc.changeLanguage(e)},[r,v]),l.useEffect(()=>{(async()=>{if(e)try{const e=await A.getInitConfig();if(e.success){b(e.data);(e.data?.widget_customization?.behavior?.auto_open??f)&&P(!0),u&&u(e.data)}}catch(t){c&&c(t)}finally{x(!1)}else x(!1)})()},[e,A,u,c,f]),l.useEffect(()=>{const e=()=>{if(!A)return;const e=A.getSessionToken(),t=A.httpClient.baseURL,n=A.licenseToken;fetch(`${t}/release-session`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${n}`},body:JSON.stringify({session_token:e}),keepalive:!0}).catch(()=>{})};return window.addEventListener("beforeunload",e),()=>{window.removeEventListener("beforeunload",e)}},[A]),!e)return null;const R=()=>{const e=v?.mcp;return!e?.enabled||"credentials"!==e?.auth_mode||!!sessionStorage.getItem("mcp_login_data")},I=v?.widget_customization?.theme||t,{theme:j,toggleTheme:D}=Xu(I);return T.jsx(q,{i18n:Vc,children:T.jsxs("div",{className:`gpc-widget gpc-widget-container ${(()=>{const e=v?.widget_customization?.position||n;return m&&(v?.widget_customization?.behavior?.mobile_fullscreen??h)?"gpc-position-bottom-right":`gpc-position-${e}`})()} ${"dark"===j?"gpc-dark":""}`,style:(()=>{const e={},t=v?.widget_customization?.colors?.primary||o,n=v?.widget_customization?.colors?.header_background,r=v?.widget_customization?.colors?.header_text;t&&(e["--gpc-color-primary"]=t),n&&(e["--gpc-header-bg"]=n),r&&(e["--gpc-header-text"]=r);const s=v?.widget_customization?.dimensions?.width||i,l=v?.widget_customization?.dimensions?.height||a;return m&&(v?.widget_customization?.behavior?.mobile_fullscreen??h)||(s&&(e["--gpc-widget-width"]=s),l&&(e["--gpc-widget-height"]=l)),e})(),children:[!O&&!k&&v&&T.jsx(me,{onClick:()=>{w&&R()||E(!0),P(!0)},widgetConfig:v}),O&&!k&&T.jsx(T.Fragment,{children:!C||w&&R()?T.jsx(Cs,{gpcService:A,licenseToken:e,widgetConfig:v,onClose:()=>{P(!1),E(!1),d?.()},themeMode:j,onToggleTheme:D,showBranding:p,showMetadata:g.showMetadata||!1,onError:c,version:ve,onRequestMcpLogin:e=>{"logout"===e?(sessionStorage.removeItem("mcp_login_data"),L(!1)):E(!0)},mcpLoggedIn:N}):T.jsx("div",{className:"gpc-chat-window gpc-animate-fade-in",children:T.jsx(Es,{gpcService:A,mcpConfig:v?.mcp,onSuccess:()=>{S(!0),E(!1),L(!!sessionStorage.getItem("mcp_login_data"))},onSkip:()=>{E(!1)},onError:e=>{c&&c(e)}})})})]})})};class hd extends HTMLElement{constructor(){super(),this.root=null,this.mountPoint=null}static get observedAttributes(){return["token","theme","position","language","primary-color","width","height","api-url","auto-open","show-branding","mobile-fullscreen"]}connectedCallback(){this.mountPoint=document.createElement("div"),this.mountPoint.className="tia-gpc-mount",this.appendChild(this.mountPoint),this.root=C.createRoot(this.mountPoint),this.render()}disconnectedCallback(){this.root&&(this.root.unmount(),this.root=null)}attributeChangedCallback(e,t,n){t!==n&&this.root&&this.render()}getProps(){const e={},t=this.getAttribute("token");t&&(e.token=t);const n=this.getAttribute("theme");n&&(e.theme=n);const r=this.getAttribute("position");r&&(e.position=r);const o=this.getAttribute("language");o&&(e.language=o);const i=this.getAttribute("primary-color");i&&(e.primaryColor=i);const a=this.getAttribute("width");a&&(e.width=a);const s=this.getAttribute("height");s&&(e.height=s);const l=this.getAttribute("api-url");l&&(e.apiUrl=l);const u=this.getAttribute("auto-open");null!==u&&(e.autoOpen="false"!==u);const c=this.getAttribute("show-branding");null!==c&&(e.showBranding="false"!==c);const d=this.getAttribute("mobile-fullscreen");return null!==d&&(e.mobileFullscreen="false"!==d),e.onReady=()=>{this.dispatchEvent(new CustomEvent("ready",{bubbles:!0,composed:!0}))},e.onError=e=>{this.dispatchEvent(new CustomEvent("error",{bubbles:!0,composed:!0,detail:e}))},e.onClose=()=>{this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))},e}render(){if(!this.root)return;const e=this.getProps();this.root.render(u.createElement(pd,e))}open(){this.dispatchEvent(new CustomEvent("open-widget",{bubbles:!0,composed:!0}))}close(){this.dispatchEvent(new CustomEvent("close-widget",{bubbles:!0,composed:!0}))}}"undefined"==typeof window||customElements.get("tia-gpc-widget")||customElements.define("tia-gpc-widget",hd),window.TiaGPC={version:ve,POSITIONS:Xa,THEMES:es,LANGUAGES:ts,create(e){if(!e||!e.token)throw new Error('TiaGPC.create(): El parámetro "token" es requerido');const t=document.createElement("tia-gpc-widget");t.setAttribute("token",e.token),e.theme&&t.setAttribute("theme",e.theme),e.position&&t.setAttribute("position",e.position),e.language&&t.setAttribute("language",e.language),e.primaryColor&&t.setAttribute("primary-color",e.primaryColor),e.width&&t.setAttribute("width",e.width),e.height&&t.setAttribute("height",e.height),e.apiUrl&&t.setAttribute("api-url",e.apiUrl),void 0!==e.autoOpen&&t.setAttribute("auto-open",String(e.autoOpen)),void 0!==e.showBranding&&t.setAttribute("show-branding",String(e.showBranding)),void 0!==e.mobileFullscreen&&t.setAttribute("mobile-fullscreen",String(e.mobileFullscreen)),e.onReady&&t.addEventListener("ready",e.onReady),e.onError&&t.addEventListener("error",t=>e.onError(t.detail)),e.onClose&&t.addEventListener("close",e.onClose);return(e.container||document.body).appendChild(t),t},info(){return{version:this.version,positions:this.POSITIONS,themes:this.THEMES,languages:this.LANGUAGES}}};const gd=window.TiaGPC;return e.TiaGPCWebComponent=hd,e.default=gd,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),e}({});
1
+ var TiaGPC=function(e){"use strict";function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var n,r,a={exports:{}},i={};function o(){if(n)return i;n=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=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"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.iterator;var f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function E(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||f}function T(){}function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||f}E.prototype.isReactComponent={},E.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")},E.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},T.prototype=E.prototype;var b=y.prototype=new T;b.constructor=y,m(b,E.prototype),b.isPureReactComponent=!0;var v=Array.isArray,k=Object.prototype.hasOwnProperty,A={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function _(t,n,r){var a,i={},o=null,s=null;if(null!=n)for(a in void 0!==n.ref&&(s=n.ref),void 0!==n.key&&(o=""+n.key),n)k.call(n,a)&&!S.hasOwnProperty(a)&&(i[a]=n[a]);var l=arguments.length-2;if(1===l)i.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}if(t&&t.defaultProps)for(a in l=t.defaultProps)void 0===i[a]&&(i[a]=l[a]);return{$$typeof:e,type:t,key:o,ref:s,props:i,_owner:A.current}}function C(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var N=/\/+/g;function I(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 w(n,r,a,i,o){var s=typeof n;"undefined"!==s&&"boolean"!==s||(n=null);var l=!1;if(null===n)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(n.$$typeof){case e:case t:l=!0}}if(l)return o=o(l=n),n=""===i?"."+I(l,0):i,v(o)?(a="",null!=n&&(a=n.replace(N,"$&/")+"/"),w(o,r,a,"",function(e){return e})):null!=o&&(C(o)&&(o=function(t,n){return{$$typeof:e,type:t.type,key:n,ref:t.ref,props:t.props,_owner:t._owner}}(o,a+(!o.key||l&&l.key===o.key?"":(""+o.key).replace(N,"$&/")+"/")+n)),r.push(o)),1;if(l=0,i=""===i?".":i+":",v(n))for(var c=0;c<n.length;c++){var u=i+I(s=n[c],c);l+=w(s,r,a,u,o)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=h&&e[h]||e["@@iterator"])?e:null}(n),"function"==typeof u)for(n=u.call(n),c=0;!(s=n.next()).done;)l+=w(s=s.value,r,a,u=i+I(s,c++),o);else if("object"===s)throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return l}function x(e,t,n){if(null==e)return e;var r=[],a=0;return w(e,r,"","",function(e){return t.call(n,e,a++)}),r}function O(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 D={current:null},L={transition:null},R={ReactCurrentDispatcher:D,ReactCurrentBatchConfig:L,ReactCurrentOwner:A};function P(){throw Error("act(...) is not supported in production builds of React.")}return i.Children={map:x,forEach:function(e,t,n){x(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return x(e,function(){t++}),t},toArray:function(e){return x(e,function(e){return e})||[]},only:function(e){if(!C(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},i.Component=E,i.Fragment=r,i.Profiler=o,i.PureComponent=y,i.StrictMode=a,i.Suspense=u,i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=R,i.act=P,i.cloneElement=function(t,n,r){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var a=m({},t.props),i=t.key,o=t.ref,s=t._owner;if(null!=n){if(void 0!==n.ref&&(o=n.ref,s=A.current),void 0!==n.key&&(i=""+n.key),t.type&&t.type.defaultProps)var l=t.type.defaultProps;for(c in n)k.call(n,c)&&!S.hasOwnProperty(c)&&(a[c]=void 0===n[c]&&void 0!==l?l[c]:n[c])}var c=arguments.length-2;if(1===c)a.children=r;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];a.children=l}return{$$typeof:e,type:t.type,key:i,ref:o,props:a,_owner:s}},i.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},i.createElement=_,i.createFactory=function(e){var t=_.bind(null,e);return t.type=e,t},i.createRef=function(){return{current:null}},i.forwardRef=function(e){return{$$typeof:c,render:e}},i.isValidElement=C,i.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:O}},i.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},i.startTransition=function(e){var t=L.transition;L.transition={};try{e()}finally{L.transition=t}},i.unstable_act=P,i.useCallback=function(e,t){return D.current.useCallback(e,t)},i.useContext=function(e){return D.current.useContext(e)},i.useDebugValue=function(){},i.useDeferredValue=function(e){return D.current.useDeferredValue(e)},i.useEffect=function(e,t){return D.current.useEffect(e,t)},i.useId=function(){return D.current.useId()},i.useImperativeHandle=function(e,t,n){return D.current.useImperativeHandle(e,t,n)},i.useInsertionEffect=function(e,t){return D.current.useInsertionEffect(e,t)},i.useLayoutEffect=function(e,t){return D.current.useLayoutEffect(e,t)},i.useMemo=function(e,t){return D.current.useMemo(e,t)},i.useReducer=function(e,t,n){return D.current.useReducer(e,t,n)},i.useRef=function(e){return D.current.useRef(e)},i.useState=function(e){return D.current.useState(e)},i.useSyncExternalStore=function(e,t,n){return D.current.useSyncExternalStore(e,t,n)},i.useTransition=function(){return D.current.useTransition()},i.version="18.3.1",i}function s(){return r||(r=1,a.exports=o()),a.exports}var l=s();const c=t(l);var u,d,p,h,f,m={},g={exports:{}},E={},T={exports:{}},y={};function b(){return d||(d=1,T.exports=(u||(u=1,function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<a(i,t)))break e;e[r]=t,e[n]=i,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,o=i>>>1;r<o;){var s=2*(r+1)-1,l=e[s],c=s+1,u=e[c];if(0>a(l,n))c<i&&0>a(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(c<i&&0>a(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var l=[],c=[],u=1,d=null,p=3,h=!1,f=!1,m=!1,g="function"==typeof setTimeout?setTimeout:null,E="function"==typeof clearTimeout?clearTimeout:null,T="undefined"!=typeof setImmediate?setImmediate:null;function y(e){for(var a=n(c);null!==a;){if(null===a.callback)r(c);else{if(!(a.startTime<=e))break;r(c),a.sortIndex=a.expirationTime,t(l,a)}a=n(c)}}function b(e){if(m=!1,y(e),!f)if(null!==n(l))f=!0,D(v);else{var t=n(c);null!==t&&L(b,t.startTime-e)}}function v(t,a){f=!1,m&&(m=!1,E(_),_=-1),h=!0;var i=p;try{for(y(a),d=n(l);null!==d&&(!(d.expirationTime>a)||t&&!I());){var o=d.callback;if("function"==typeof o){d.callback=null,p=d.priorityLevel;var s=o(d.expirationTime<=a);a=e.unstable_now(),"function"==typeof s?d.callback=s:d===n(l)&&r(l),y(a)}else r(l);d=n(l)}if(null!==d)var u=!0;else{var g=n(c);null!==g&&L(b,g.startTime-a),u=!1}return u}finally{d=null,p=i,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var k,A=!1,S=null,_=-1,C=5,N=-1;function I(){return!(e.unstable_now()-N<C)}function w(){if(null!==S){var t=e.unstable_now();N=t;var n=!0;try{n=S(!0,t)}finally{n?k():(A=!1,S=null)}}else A=!1}if("function"==typeof T)k=function(){T(w)};else if("undefined"!=typeof MessageChannel){var x=new MessageChannel,O=x.port2;x.port1.onmessage=w,k=function(){O.postMessage(null)}}else k=function(){g(w,0)};function D(e){S=e,A||(A=!0,k())}function L(t,n){_=g(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){f||h||(f=!0,D(v))},e.unstable_forceFrameRate=function(e){0>e||125<e||(C=0<e?Math.floor(1e3/e):5)},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},e.unstable_scheduleCallback=function(r,a,i){var o=e.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?o+i:o,r){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 r={id:u++,callback:a,priorityLevel:r,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>o?(r.sortIndex=i,t(c,r),null===n(l)&&r===n(c)&&(m?(E(_),_=-1):m=!0,L(b,i-o))):(r.sortIndex=s,t(l,r),f||h||(f=!0,D(v))),r},e.unstable_shouldYield=I,e.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}}(y)),y)),T.exports}function v(){if(p)return E;p=1;var e=s(),t=b();function n(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);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 r=new Set,a={};function i(e,t){o(e,t),o(e+"Capture",t)}function o(e,t){for(a[e]=t,e=0;e<t.length;e++)r.add(t[e])}var l=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),c=Object.prototype.hasOwnProperty,u=/^[: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]*$/,d={},h={};function f(e,t,n,r,a,i,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var m={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){m[e]=new f(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];m[t]=new f(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){m[e]=new f(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){m[e]=new f(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){m[e]=new f(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){m[e]=new f(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){m[e]=new f(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){m[e]=new f(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){m[e]=new f(e,5,!1,e.toLowerCase(),null,!1,!1)});var g=/[\-:]([a-z])/g;function T(e){return e[1].toUpperCase()}function y(e,t,n,r){var a=m.hasOwnProperty(t)?m[t]:null;(null!==a?0!==a.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.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,n,a,r)&&(n=null),r||null===a?function(e){return!!c.call(h,e)||!c.call(d,e)&&(u.test(e)?h[e]=!0:(d[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=null===n?3!==a.type&&"":n:(t=a.attributeName,r=a.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(a=a.type)||4===a&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"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(g,T);m[t]=new f(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(g,T);m[t]=new f(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(g,T);m[t]=new f(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){m[e]=new f(e,1,!1,e.toLowerCase(),null,!1,!1)}),m.xlinkHref=new f("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){m[e]=new f(e,1,!1,e.toLowerCase(),null,!0,!0)});var v=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,k=Symbol.for("react.element"),A=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),N=Symbol.for("react.provider"),I=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),O=Symbol.for("react.suspense_list"),D=Symbol.for("react.memo"),L=Symbol.for("react.lazy"),R=Symbol.for("react.offscreen"),P=Symbol.iterator;function M(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=P&&e[P]||e["@@iterator"])?e:null}var F,B=Object.assign;function U(e){if(void 0===F)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);F=t&&t[1]||""}return"\n"+F+e}var H=!1;function j(e,t){if(!e||H)return"";H=!0;var n=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(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&"string"==typeof c.stack){for(var a=c.stack.split("\n"),i=r.stack.split("\n"),o=a.length-1,s=i.length-1;1<=o&&0<=s&&a[o]!==i[s];)s--;for(;1<=o&&0<=s;o--,s--)if(a[o]!==i[s]){if(1!==o||1!==s)do{if(o--,0>--s||a[o]!==i[s]){var l="\n"+a[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{H=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?U(e):""}function z(e){switch(e.tag){case 5:return U(e.type);case 16:return U("Lazy");case 13:return U("Suspense");case 19:return U("SuspenseList");case 0:case 2:case 15:return e=j(e.type,!1);case 11:return e=j(e.type.render,!1);case 1:return e=j(e.type,!0);default:return""}}function G(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 A:return"Portal";case C:return"Profiler";case _:return"StrictMode";case x:return"Suspense";case O:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case I:return(e.displayName||"Context")+".Consumer";case N:return(e._context.displayName||"Context")+".Provider";case w:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case D:return null!==(t=e.displayName||null)?t:G(e.type)||"Memo";case L:t=e._payload,e=e._init;try{return G(e(t))}catch(n){}}return null}function Y(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 G(t);case 8:return t===_?"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 V(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function q(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=q(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var a=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=q(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function K(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 X(e,t){var n=t.checked;return B({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function J(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=V(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Z(e,t){null!=(t=t.checked)&&y(e,"checked",t,!1)}function $(e,t){Z(e,t);var n=V(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?te(e,t.type,n):t.hasOwnProperty("defaultValue")&&te(e,t.type,V(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function ee(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function te(e,t,n){"number"===t&&K(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ne=Array.isArray;function re(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+V(n),t=null,a=0;a<e.length;a++){if(e[a].value===n)return e[a].selected=!0,void(r&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function ae(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(n(91));return B({},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(n(92));if(ne(r)){if(1<r.length)throw Error(n(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:V(r)}}function oe(e,t){var n=V(t.value),r=V(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function se(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function le(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 ce(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?le(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ue,de,pe=(de=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,n,r){MSApp.execUnsafeLocalFunction(function(){return de(e,t)})}:de);function he(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var fe={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},me=["Webkit","ms","Moz","O"];function ge(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||fe.hasOwnProperty(e)&&fe[e]?(""+t).trim():t+"px"}function Ee(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),a=ge(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}Object.keys(fe).forEach(function(e){me.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fe[t]=fe[e]})});var Te=B({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(Te[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(n(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(n(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(n(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(n(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 ve=null;function ke(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ae=null,Se=null,_e=null;function Ce(e){if(e=ba(e)){if("function"!=typeof Ae)throw Error(n(280));var t=e.stateNode;t&&(t=ka(t),Ae(e.stateNode,e.type,t))}}function Ne(e){Se?_e?_e.push(e):_e=[e]:Se=e}function Ie(){if(Se){var e=Se,t=_e;if(_e=Se=null,Ce(e),t)for(e=0;e<t.length;e++)Ce(t[e])}}function we(e,t){return e(t)}function xe(){}var Oe=!1;function De(e,t,n){if(Oe)return e(t,n);Oe=!0;try{return we(e,t,n)}finally{Oe=!1,(null!==Se||null!==_e)&&(xe(),Ie())}}function Le(e,t){var r=e.stateNode;if(null===r)return null;var a=ka(r);if(null===a)return null;r=a[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":(a=!a.disabled)||(a=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!a;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(n(231,t,typeof r));return r}var Re=!1;if(l)try{var Pe={};Object.defineProperty(Pe,"passive",{get:function(){Re=!0}}),window.addEventListener("test",Pe,Pe),window.removeEventListener("test",Pe,Pe)}catch(de){Re=!1}function Me(e,t,n,r,a,i,o,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var Fe=!1,Be=null,Ue=!1,He=null,je={onError:function(e){Fe=!0,Be=e}};function ze(e,t,n,r,a,i,o,s,l){Fe=!1,Be=null,Me.apply(je,arguments)}function Ge(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ye(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 Ve(e){if(Ge(e)!==e)throw Error(n(188))}function qe(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ge(e)))throw Error(n(188));return t!==e?null:e}for(var r=e,a=t;;){var i=r.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(a=i.return)){r=a;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===r)return Ve(i),e;if(o===a)return Ve(i),t;o=o.sibling}throw Error(n(188))}if(r.return!==a.return)r=i,a=o;else{for(var s=!1,l=i.child;l;){if(l===r){s=!0,r=i,a=o;break}if(l===a){s=!0,a=i,r=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===r){s=!0,r=o,a=i;break}if(l===a){s=!0,a=o,r=i;break}l=l.sibling}if(!s)throw Error(n(189))}}if(r.alternate!==a)throw Error(n(190))}if(3!==r.tag)throw Error(n(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 Qe=t.unstable_scheduleCallback,Ke=t.unstable_cancelCallback,Xe=t.unstable_shouldYield,Je=t.unstable_requestPaint,Ze=t.unstable_now,$e=t.unstable_getCurrentPriorityLevel,et=t.unstable_ImmediatePriority,tt=t.unstable_UserBlockingPriority,nt=t.unstable_NormalPriority,rt=t.unstable_LowPriority,at=t.unstable_IdlePriority,it=null,ot=null;var st=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(lt(e)/ct|0)|0},lt=Math.log,ct=Math.LN2;var ut=64,dt=4194304;function pt(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 ht(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,a=e.suspendedLanes,i=e.pingedLanes,o=268435455&n;if(0!==o){var s=o&~a;0!==s?r=pt(s):0!==(i&=o)&&(r=pt(i))}else 0!==(o=n&~a)?r=pt(o):0!==i&&(r=pt(i));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&a)&&((a=r&-r)>=(i=t&-t)||16===a&&4194240&i))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)a=1<<(n=31-st(t)),r|=e[n],t&=~a;return r}function ft(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 mt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function gt(){var e=ut;return!(4194240&(ut<<=1))&&(ut=64),e}function Et(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Tt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-st(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-st(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}var bt=0;function vt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var kt,At,St,_t,Ct,Nt=!1,It=[],wt=null,xt=null,Ot=null,Dt=new Map,Lt=new Map,Rt=[],Pt="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 Mt(e,t){switch(e){case"focusin":case"focusout":wt=null;break;case"dragenter":case"dragleave":xt=null;break;case"mouseover":case"mouseout":Ot=null;break;case"pointerover":case"pointerout":Dt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Lt.delete(t.pointerId)}}function Ft(e,t,n,r,a,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[a]},null!==t&&(null!==(t=ba(t))&&At(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==a&&-1===t.indexOf(a)&&t.push(a),e)}function Bt(e){var t=ya(e.target);if(null!==t){var n=Ge(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ye(n)))return e.blockedOn=t,void Ct(e.priority,function(){St(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Ut(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Xt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=ba(n))&&At(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);ve=r,n.target.dispatchEvent(r),ve=null,t.shift()}return!0}function Ht(e,t,n){Ut(e)&&n.delete(t)}function jt(){Nt=!1,null!==wt&&Ut(wt)&&(wt=null),null!==xt&&Ut(xt)&&(xt=null),null!==Ot&&Ut(Ot)&&(Ot=null),Dt.forEach(Ht),Lt.forEach(Ht)}function zt(e,n){e.blockedOn===n&&(e.blockedOn=null,Nt||(Nt=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,jt)))}function Gt(e){function t(t){return zt(t,e)}if(0<It.length){zt(It[0],e);for(var n=1;n<It.length;n++){var r=It[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==wt&&zt(wt,e),null!==xt&&zt(xt,e),null!==Ot&&zt(Ot,e),Dt.forEach(t),Lt.forEach(t),n=0;n<Rt.length;n++)(r=Rt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Rt.length&&null===(n=Rt[0]).blockedOn;)Bt(n),null===n.blockedOn&&Rt.shift()}var Yt=v.ReactCurrentBatchConfig,Vt=!0;function qt(e,t,n,r){var a=bt,i=Yt.transition;Yt.transition=null;try{bt=1,Qt(e,t,n,r)}finally{bt=a,Yt.transition=i}}function Wt(e,t,n,r){var a=bt,i=Yt.transition;Yt.transition=null;try{bt=4,Qt(e,t,n,r)}finally{bt=a,Yt.transition=i}}function Qt(e,t,n,r){if(Vt){var a=Xt(e,t,n,r);if(null===a)Vr(e,t,r,Kt,n),Mt(e,r);else if(function(e,t,n,r,a){switch(t){case"focusin":return wt=Ft(wt,e,t,n,r,a),!0;case"dragenter":return xt=Ft(xt,e,t,n,r,a),!0;case"mouseover":return Ot=Ft(Ot,e,t,n,r,a),!0;case"pointerover":var i=a.pointerId;return Dt.set(i,Ft(Dt.get(i)||null,e,t,n,r,a)),!0;case"gotpointercapture":return i=a.pointerId,Lt.set(i,Ft(Lt.get(i)||null,e,t,n,r,a)),!0}return!1}(a,e,t,n,r))r.stopPropagation();else if(Mt(e,r),4&t&&-1<Pt.indexOf(e)){for(;null!==a;){var i=ba(a);if(null!==i&&kt(i),null===(i=Xt(e,t,n,r))&&Vr(e,t,r,Kt,n),i===a)break;a=i}null!==a&&r.stopPropagation()}else Vr(e,t,r,null,n)}}var Kt=null;function Xt(e,t,n,r){if(Kt=null,null!==(e=ya(e=ke(r))))if(null===(t=Ge(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ye(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Kt=e,null}function Jt(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($e()){case et:return 1;case tt:return 4;case nt:case rt:return 16;case at:return 536870912;default:return 16}default:return 16}}var Zt=null,$t=null,en=null;function tn(){if(en)return en;var e,t,n=$t,r=n.length,a="value"in Zt?Zt.value:Zt.textContent,i=a.length;for(e=0;e<r&&n[e]===a[e];e++);var o=r-e;for(t=1;t<=o&&n[r-t]===a[i-t];t++);return en=a.slice(e,1<t?1-t:void 0)}function nn(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 rn(){return!0}function an(){return!1}function on(e){function t(t,n,r,a,i){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=a,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(a):a[o]);return this.isDefaultPrevented=(null!=a.defaultPrevented?a.defaultPrevented:!1===a.returnValue)?rn:an,this.isPropagationStopped=an,this}return B(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=rn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=rn)},persist:function(){},isPersistent:rn}),t}var sn,ln,cn,un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},dn=on(un),pn=B({},un,{view:0,detail:0}),hn=on(pn),fn=B({},pn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,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!==cn&&(cn&&"mousemove"===e.type?(sn=e.screenX-cn.screenX,ln=e.screenY-cn.screenY):ln=sn=0,cn=e),sn)},movementY:function(e){return"movementY"in e?e.movementY:ln}}),mn=on(fn),gn=on(B({},fn,{dataTransfer:0})),En=on(B({},pn,{relatedTarget:0})),Tn=on(B({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=B({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(yn),vn=on(B({},un,{data:0})),kn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},An={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"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _n(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function Cn(){return _n}var Nn=B({},pn,{key:function(e){if(e.key){var t=kn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=nn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?An[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?nn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?nn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),In=on(Nn),wn=on(B({},fn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),xn=on(B({},pn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),On=on(B({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),Dn=B({},fn,{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}),Ln=on(Dn),Rn=[9,13,27,32],Pn=l&&"CompositionEvent"in window,Mn=null;l&&"documentMode"in document&&(Mn=document.documentMode);var Fn=l&&"TextEvent"in window&&!Mn,Bn=l&&(!Pn||Mn&&8<Mn&&11>=Mn),Un=String.fromCharCode(32),Hn=!1;function jn(e,t){switch(e){case"keyup":return-1!==Rn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Gn=!1;var Yn={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 Vn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Yn[e.type]:"textarea"===t}function qn(e,t,n,r){Ne(r),0<(t=Wr(t,"onChange")).length&&(n=new dn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Wn=null,Qn=null;function Kn(e){Ur(e,0)}function Xn(e){if(Q(va(e)))return e}function Jn(e,t){if("change"===e)return t}var Zn=!1;if(l){var $n;if(l){var er="oninput"in document;if(!er){var tr=document.createElement("div");tr.setAttribute("oninput","return;"),er="function"==typeof tr.oninput}$n=er}else $n=!1;Zn=$n&&(!document.documentMode||9<document.documentMode)}function nr(){Wn&&(Wn.detachEvent("onpropertychange",rr),Qn=Wn=null)}function rr(e){if("value"===e.propertyName&&Xn(Qn)){var t=[];qn(t,Qn,e,ke(e)),De(Kn,t)}}function ar(e,t,n){"focusin"===e?(nr(),Qn=n,(Wn=t).attachEvent("onpropertychange",rr)):"focusout"===e&&nr()}function ir(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Xn(Qn)}function or(e,t){if("click"===e)return Xn(t)}function sr(e,t){if("input"===e||"change"===e)return Xn(t)}var lr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function cr(e,t){if(lr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var a=n[r];if(!c.call(t,a)||!lr(e[a],t[a]))return!1}return!0}function ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function dr(e,t){var n,r=ur(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ur(r)}}function pr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?pr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function hr(){for(var e=window,t=K();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=K((e=t.contentWindow).document)}return t}function fr(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 mr(e){var t=hr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&pr(n.ownerDocument.documentElement,n)){if(null!==r&&fr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var a=n.textContent.length,i=Math.min(r.start,a);r=void 0===r.end?i:Math.min(r.end,a),!e.extend&&i>r&&(a=r,r=i,i=a),a=dr(n,i);var o=dr(n,r);a&&o&&(1!==e.rangeCount||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&((t=t.createRange()).setStart(a.node,a.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var gr=l&&"documentMode"in document&&11>=document.documentMode,Er=null,Tr=null,yr=null,br=!1;function vr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==Er||Er!==K(r)||("selectionStart"in(r=Er)&&fr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&cr(yr,r)||(yr=r,0<(r=Wr(Tr,"onSelect")).length&&(t=new dn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Er)))}function kr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ar={animationend:kr("Animation","AnimationEnd"),animationiteration:kr("Animation","AnimationIteration"),animationstart:kr("Animation","AnimationStart"),transitionend:kr("Transition","TransitionEnd")},Sr={},_r={};function Cr(e){if(Sr[e])return Sr[e];if(!Ar[e])return e;var t,n=Ar[e];for(t in n)if(n.hasOwnProperty(t)&&t in _r)return Sr[e]=n[t];return e}l&&(_r=document.createElement("div").style,"AnimationEvent"in window||(delete Ar.animationend.animation,delete Ar.animationiteration.animation,delete Ar.animationstart.animation),"TransitionEvent"in window||delete Ar.transitionend.transition);var Nr=Cr("animationend"),Ir=Cr("animationiteration"),wr=Cr("animationstart"),xr=Cr("transitionend"),Or=new Map,Dr="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 Lr(e,t){Or.set(e,t),i(t,[e])}for(var Rr=0;Rr<Dr.length;Rr++){var Pr=Dr[Rr];Lr(Pr.toLowerCase(),"on"+(Pr[0].toUpperCase()+Pr.slice(1)))}Lr(Nr,"onAnimationEnd"),Lr(Ir,"onAnimationIteration"),Lr(wr,"onAnimationStart"),Lr("dblclick","onDoubleClick"),Lr("focusin","onFocus"),Lr("focusout","onBlur"),Lr(xr,"onTransitionEnd"),o("onMouseEnter",["mouseout","mouseover"]),o("onMouseLeave",["mouseout","mouseover"]),o("onPointerEnter",["pointerout","pointerover"]),o("onPointerLeave",["pointerout","pointerover"]),i("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),i("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),i("onBeforeInput",["compositionend","keypress","textInput","paste"]),i("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),i("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),i("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Mr="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(" "),Fr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Mr));function Br(e,t,r){var a=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,a,i,o,s,l,c){if(ze.apply(this,arguments),Fe){if(!Fe)throw Error(n(198));var u=Be;Fe=!1,Be=null,Ue||(Ue=!0,He=u)}}(a,t,void 0,e),e.currentTarget=null}function Ur(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==i&&a.isPropagationStopped())break e;Br(a,s,c),i=l}else for(o=0;o<r.length;o++){if(l=(s=r[o]).instance,c=s.currentTarget,s=s.listener,l!==i&&a.isPropagationStopped())break e;Br(a,s,c),i=l}}}if(Ue)throw e=He,Ue=!1,He=null,e}function Hr(e,t){var n=t[ga];void 0===n&&(n=t[ga]=new Set);var r=e+"__bubble";n.has(r)||(Yr(t,e,2,!1),n.add(r))}function jr(e,t,n){var r=0;t&&(r|=4),Yr(n,e,r,t)}var zr="_reactListening"+Math.random().toString(36).slice(2);function Gr(e){if(!e[zr]){e[zr]=!0,r.forEach(function(t){"selectionchange"!==t&&(Fr.has(t)||jr(t,!1,e),jr(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[zr]||(t[zr]=!0,jr("selectionchange",!1,t))}}function Yr(e,t,n,r){switch(Jt(t)){case 1:var a=qt;break;case 4:a=Wt;break;default:a=Qt}n=a.bind(null,t,n,e),a=void 0,!Re||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(a=!0),r?void 0!==a?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):void 0!==a?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function Vr(e,t,n,r,a){var i=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var o=r.tag;if(3===o||4===o){var s=r.stateNode.containerInfo;if(s===a||8===s.nodeType&&s.parentNode===a)break;if(4===o)for(o=r.return;null!==o;){var l=o.tag;if((3===l||4===l)&&((l=o.stateNode.containerInfo)===a||8===l.nodeType&&l.parentNode===a))return;o=o.return}for(;null!==s;){if(null===(o=ya(s)))return;if(5===(l=o.tag)||6===l){r=i=o;continue e}s=s.parentNode}}r=r.return}De(function(){var r=i,a=ke(n),o=[];e:{var s=Or.get(e);if(void 0!==s){var l=dn,c=e;switch(e){case"keypress":if(0===nn(n))break e;case"keydown":case"keyup":l=In;break;case"focusin":c="focus",l=En;break;case"focusout":c="blur",l=En;break;case"beforeblur":case"afterblur":l=En;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=mn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=xn;break;case Nr:case Ir:case wr:l=Tn;break;case xr:l=On;break;case"scroll":l=hn;break;case"wheel":l=Ln;break;case"copy":case"cut":case"paste":l=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=wn}var u=!!(4&t),d=!u&&"scroll"===e,p=u?null!==s?s+"Capture":null:s;u=[];for(var h,f=r;null!==f;){var m=(h=f).stateNode;if(5===h.tag&&null!==m&&(h=m,null!==p&&(null!=(m=Le(f,p))&&u.push(qr(f,m,h)))),d)break;f=f.return}0<u.length&&(s=new l(s,c,null,n,a),o.push({event:s,listeners:u}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===ve||!(c=n.relatedTarget||n.fromElement)||!ya(c)&&!c[ma])&&(l||s)&&(s=a.window===a?a:(s=a.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?ya(c):null)&&(c!==(d=Ge(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=mn,m="onMouseLeave",p="onMouseEnter",f="mouse","pointerout"!==e&&"pointerover"!==e||(u=wn,m="onPointerLeave",p="onPointerEnter",f="pointer"),d=null==l?s:va(l),h=null==c?s:va(c),(s=new u(m,f+"leave",l,n,a)).target=d,s.relatedTarget=h,m=null,ya(a)===r&&((u=new u(p,f+"enter",c,n,a)).target=h,u.relatedTarget=d,m=u),d=m,l&&c)e:{for(p=c,f=0,h=u=l;h;h=Qr(h))f++;for(h=0,m=p;m;m=Qr(m))h++;for(;0<f-h;)u=Qr(u),f--;for(;0<h-f;)p=Qr(p),h--;for(;f--;){if(u===p||null!==p&&u===p.alternate)break e;u=Qr(u),p=Qr(p)}u=null}else u=null;null!==l&&Kr(o,s,l,u,!1),null!==c&&null!==d&&Kr(o,d,c,u,!0)}if("select"===(l=(s=r?va(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Jn;else if(Vn(s))if(Zn)g=sr;else{g=ir;var E=ar}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=or);switch(g&&(g=g(e,r))?qn(o,g,n,a):(E&&E(e,s,r),"focusout"===e&&(E=s._wrapperState)&&E.controlled&&"number"===s.type&&te(s,"number",s.value)),E=r?va(r):window,e){case"focusin":(Vn(E)||"true"===E.contentEditable)&&(Er=E,Tr=r,yr=null);break;case"focusout":yr=Tr=Er=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,vr(o,n,a);break;case"selectionchange":if(gr)break;case"keydown":case"keyup":vr(o,n,a)}var T;if(Pn)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else Gn?jn(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(Bn&&"ko"!==n.locale&&(Gn||"onCompositionStart"!==y?"onCompositionEnd"===y&&Gn&&(T=tn()):($t="value"in(Zt=a)?Zt.value:Zt.textContent,Gn=!0)),0<(E=Wr(r,y)).length&&(y=new vn(y,e,null,n,a),o.push({event:y,listeners:E}),T?y.data=T:null!==(T=zn(n))&&(y.data=T))),(T=Fn?function(e,t){switch(e){case"compositionend":return zn(t);case"keypress":return 32!==t.which?null:(Hn=!0,Un);case"textInput":return(e=t.data)===Un&&Hn?null:e;default:return null}}(e,n):function(e,t){if(Gn)return"compositionend"===e||!Pn&&jn(e,t)?(e=tn(),en=$t=Zt=null,Gn=!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 Bn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Wr(r,"onBeforeInput")).length&&(a=new vn("onBeforeInput","beforeinput",null,n,a),o.push({event:a,listeners:r}),a.data=T))}Ur(o,t)})}function qr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Wr(e,t){for(var n=t+"Capture",r=[];null!==e;){var a=e,i=a.stateNode;5===a.tag&&null!==i&&(a=i,null!=(i=Le(e,n))&&r.unshift(qr(e,i,a)),null!=(i=Le(e,t))&&r.push(qr(e,i,a))),e=e.return}return r}function Qr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Kr(e,t,n,r,a){for(var i=t._reactName,o=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,a?null!=(l=Le(n,i))&&o.unshift(qr(n,l,s)):a||null!=(l=Le(n,i))&&o.push(qr(n,l,s))),n=n.return}0!==o.length&&e.push({event:t,listeners:o})}var Xr=/\r\n?/g,Jr=/\u0000|\uFFFD/g;function Zr(e){return("string"==typeof e?e:""+e).replace(Xr,"\n").replace(Jr,"")}function $r(e,t,r){if(t=Zr(t),Zr(e)!==t&&r)throw Error(n(425))}function ea(){}var ta=null,na=null;function ra(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 aa="function"==typeof setTimeout?setTimeout:void 0,ia="function"==typeof clearTimeout?clearTimeout:void 0,oa="function"==typeof Promise?Promise:void 0,sa="function"==typeof queueMicrotask?queueMicrotask:void 0!==oa?function(e){return oa.resolve(null).then(e).catch(la)}:aa;function la(e){setTimeout(function(){throw e})}function ca(e,t){var n=t,r=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&8===a.nodeType)if("/$"===(n=a.data)){if(0===r)return e.removeChild(a),void Gt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=a}while(n);Gt(t)}function ua(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 da(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var pa=Math.random().toString(36).slice(2),ha="__reactFiber$"+pa,fa="__reactProps$"+pa,ma="__reactContainer$"+pa,ga="__reactEvents$"+pa,Ea="__reactListeners$"+pa,Ta="__reactHandles$"+pa;function ya(e){var t=e[ha];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ma]||n[ha]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=da(e);null!==e;){if(n=e[ha])return n;e=da(e)}return t}n=(e=n).parentNode}return null}function ba(e){return!(e=e[ha]||e[ma])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function va(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(n(33))}function ka(e){return e[fa]||null}var Aa=[],Sa=-1;function _a(e){return{current:e}}function Ca(e){0>Sa||(e.current=Aa[Sa],Aa[Sa]=null,Sa--)}function Na(e,t){Sa++,Aa[Sa]=e.current,e.current=t}var Ia={},wa=_a(Ia),xa=_a(!1),Oa=Ia;function Da(e,t){var n=e.type.contextTypes;if(!n)return Ia;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a,i={};for(a in n)i[a]=t[a];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function La(e){return null!=(e=e.childContextTypes)}function Ra(){Ca(xa),Ca(wa)}function Pa(e,t,r){if(wa.current!==Ia)throw Error(n(168));Na(wa,t),Na(xa,r)}function Ma(e,t,r){var a=e.stateNode;if(t=t.childContextTypes,"function"!=typeof a.getChildContext)return r;for(var i in a=a.getChildContext())if(!(i in t))throw Error(n(108,Y(e)||"Unknown",i));return B({},r,a)}function Fa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ia,Oa=wa.current,Na(wa,e),Na(xa,xa.current),!0}function Ba(e,t,r){var a=e.stateNode;if(!a)throw Error(n(169));r?(e=Ma(e,t,Oa),a.__reactInternalMemoizedMergedChildContext=e,Ca(xa),Ca(wa),Na(wa,e)):Ca(xa),Na(xa,r)}var Ua=null,Ha=!1,ja=!1;function za(e){null===Ua?Ua=[e]:Ua.push(e)}function Ga(){if(!ja&&null!==Ua){ja=!0;var e=0,t=bt;try{var n=Ua;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Ua=null,Ha=!1}catch(a){throw null!==Ua&&(Ua=Ua.slice(e+1)),Qe(et,Ga),a}finally{bt=t,ja=!1}}return null}var Ya=[],Va=0,qa=null,Wa=0,Qa=[],Ka=0,Xa=null,Ja=1,Za="";function $a(e,t){Ya[Va++]=Wa,Ya[Va++]=qa,qa=e,Wa=t}function ei(e,t,n){Qa[Ka++]=Ja,Qa[Ka++]=Za,Qa[Ka++]=Xa,Xa=e;var r=Ja;e=Za;var a=32-st(r)-1;r&=~(1<<a),n+=1;var i=32-st(t)+a;if(30<i){var o=a-a%5;i=(r&(1<<o)-1).toString(32),r>>=o,a-=o,Ja=1<<32-st(t)+a|n<<a|r,Za=i+e}else Ja=1<<i|n<<a|r,Za=e}function ti(e){null!==e.return&&($a(e,1),ei(e,1,0))}function ni(e){for(;e===qa;)qa=Ya[--Va],Ya[Va]=null,Wa=Ya[--Va],Ya[Va]=null;for(;e===Xa;)Xa=Qa[--Ka],Qa[Ka]=null,Za=Qa[--Ka],Qa[Ka]=null,Ja=Qa[--Ka],Qa[Ka]=null}var ri=null,ai=null,ii=!1,oi=null;function si(e,t){var n=Oc(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function li(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ri=e,ai=ua(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ri=e,ai=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Xa?{id:Ja,overflow:Za}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Oc(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ri=e,ai=null,!0);default:return!1}}function ci(e){return!(!(1&e.mode)||128&e.flags)}function ui(e){if(ii){var t=ai;if(t){var r=t;if(!li(e,t)){if(ci(e))throw Error(n(418));t=ua(r.nextSibling);var a=ri;t&&li(e,t)?si(a,r):(e.flags=-4097&e.flags|2,ii=!1,ri=e)}}else{if(ci(e))throw Error(n(418));e.flags=-4097&e.flags|2,ii=!1,ri=e}}}function di(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ri=e}function pi(e){if(e!==ri)return!1;if(!ii)return di(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ra(e.type,e.memoizedProps)),t&&(t=ai)){if(ci(e))throw hi(),Error(n(418));for(;t;)si(e,t),t=ua(t.nextSibling)}if(di(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(n(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){ai=ua(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}ai=null}}else ai=ri?ua(e.stateNode.nextSibling):null;return!0}function hi(){for(var e=ai;e;)e=ua(e.nextSibling)}function fi(){ai=ri=null,ii=!1}function mi(e){null===oi?oi=[e]:oi.push(e)}var gi=v.ReactCurrentBatchConfig;function Ei(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(n(309));var a=r.stateNode}if(!a)throw Error(n(147,e));var i=a,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;null===e?delete t[o]:t[o]=e})._stringRef=o,t)}if("string"!=typeof e)throw Error(n(284));if(!r._owner)throw Error(n(290,e))}return e}function Ti(e,t){throw e=Object.prototype.toString.call(t),Error(n(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function yi(e){return(0,e._init)(e._payload)}function bi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function r(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function a(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=Lc(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Fc(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function c(e,t,n,r){var a=n.type;return a===S?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===L&&yi(a)===t.type)?((r=i(t,n.props)).ref=Ei(e,t,n),r.return=e,r):((r=Rc(n.type,n.key,n.props,null,e.mode,r)).ref=Ei(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Bc(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,a){return null===t||7!==t.tag?((t=Pc(n,e.mode,r,a)).return=e,t):((t=i(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Fc(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case k:return(n=Rc(t.type,t.key,t.props,null,e.mode,n)).ref=Ei(e,null,t),n.return=e,n;case A:return(t=Bc(t,e.mode,n)).return=e,t;case L:return p(e,(0,t._init)(t._payload),n)}if(ne(t)||M(t))return(t=Pc(t,e.mode,n,null)).return=e,t;Ti(e,t)}return null}function h(e,t,n,r){var a=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==a?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case k:return n.key===a?c(e,t,n,r):null;case A:return n.key===a?u(e,t,n,r):null;case L:return h(e,t,(a=n._init)(n._payload),r)}if(ne(n)||M(n))return null!==a?null:d(e,t,n,r,null);Ti(e,n)}return null}function f(e,t,n,r,a){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,a);if("object"==typeof r&&null!==r){switch(r.$$typeof){case k:return c(t,e=e.get(null===r.key?n:r.key)||null,r,a);case A:return u(t,e=e.get(null===r.key?n:r.key)||null,r,a);case L:return f(e,t,n,(0,r._init)(r._payload),a)}if(ne(r)||M(r))return d(t,e=e.get(n)||null,r,a,null);Ti(t,r)}return null}return function l(c,u,d,m){if("object"==typeof d&&null!==d&&d.type===S&&null===d.key&&(d=d.props.children),"object"==typeof d&&null!==d){switch(d.$$typeof){case k:e:{for(var g=d.key,E=u;null!==E;){if(E.key===g){if((g=d.type)===S){if(7===E.tag){r(c,E.sibling),(u=i(E,d.props.children)).return=c,c=u;break e}}else if(E.elementType===g||"object"==typeof g&&null!==g&&g.$$typeof===L&&yi(g)===E.type){r(c,E.sibling),(u=i(E,d.props)).ref=Ei(c,E,d),u.return=c,c=u;break e}r(c,E);break}t(c,E),E=E.sibling}d.type===S?((u=Pc(d.props.children,c.mode,m,d.key)).return=c,c=u):((m=Rc(d.type,d.key,d.props,null,c.mode,m)).ref=Ei(c,u,d),m.return=c,c=m)}return s(c);case A:e:{for(E=d.key;null!==u;){if(u.key===E){if(4===u.tag&&u.stateNode.containerInfo===d.containerInfo&&u.stateNode.implementation===d.implementation){r(c,u.sibling),(u=i(u,d.children||[])).return=c,c=u;break e}r(c,u);break}t(c,u),u=u.sibling}(u=Bc(d,c.mode,m)).return=c,c=u}return s(c);case L:return l(c,u,(E=d._init)(d._payload),m)}if(ne(d))return function(n,i,s,l){for(var c=null,u=null,d=i,m=i=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var E=h(n,d,s[m],l);if(null===E){null===d&&(d=g);break}e&&d&&null===E.alternate&&t(n,d),i=o(E,i,m),null===u?c=E:u.sibling=E,u=E,d=g}if(m===s.length)return r(n,d),ii&&$a(n,m),c;if(null===d){for(;m<s.length;m++)null!==(d=p(n,s[m],l))&&(i=o(d,i,m),null===u?c=d:u.sibling=d,u=d);return ii&&$a(n,m),c}for(d=a(n,d);m<s.length;m++)null!==(g=f(d,n,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),i=o(g,i,m),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(n,e)}),ii&&$a(n,m),c}(c,u,d,m);if(M(d))return function(i,s,l,c){var u=M(l);if("function"!=typeof u)throw Error(n(150));if(null==(l=u.call(l)))throw Error(n(151));for(var d=u=null,m=s,g=s=0,E=null,T=l.next();null!==m&&!T.done;g++,T=l.next()){m.index>g?(E=m,m=null):E=m.sibling;var y=h(i,m,T.value,c);if(null===y){null===m&&(m=E);break}e&&m&&null===y.alternate&&t(i,m),s=o(y,s,g),null===d?u=y:d.sibling=y,d=y,m=E}if(T.done)return r(i,m),ii&&$a(i,g),u;if(null===m){for(;!T.done;g++,T=l.next())null!==(T=p(i,T.value,c))&&(s=o(T,s,g),null===d?u=T:d.sibling=T,d=T);return ii&&$a(i,g),u}for(m=a(i,m);!T.done;g++,T=l.next())null!==(T=f(m,i,g,T.value,c))&&(e&&null!==T.alternate&&m.delete(null===T.key?g:T.key),s=o(T,s,g),null===d?u=T:d.sibling=T,d=T);return e&&m.forEach(function(e){return t(i,e)}),ii&&$a(i,g),u}(c,u,d,m);Ti(c,d)}return"string"==typeof d&&""!==d||"number"==typeof d?(d=""+d,null!==u&&6===u.tag?(r(c,u.sibling),(u=i(u,d)).return=c,c=u):(r(c,u),(u=Fc(d,c.mode,m)).return=c,c=u),s(c)):r(c,u)}}var vi=bi(!0),ki=bi(!1),Ai=_a(null),Si=null,_i=null,Ci=null;function Ni(){Ci=_i=Si=null}function Ii(e){var t=Ai.current;Ca(Ai),e._currentValue=t}function wi(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function xi(e,t){Si=e,Ci=_i=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(ys=!0),e.firstContext=null)}function Oi(e){var t=e._currentValue;if(Ci!==e)if(e={context:e,memoizedValue:t,next:null},null===_i){if(null===Si)throw Error(n(308));_i=e,Si.dependencies={lanes:0,firstContext:e}}else _i=_i.next=e;return t}var Di=null;function Li(e){null===Di?Di=[e]:Di.push(e)}function Ri(e,t,n,r){var a=t.interleaved;return null===a?(n.next=n,Li(t)):(n.next=a.next,a.next=n),t.interleaved=n,Pi(e,r)}function Pi(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Mi=!1;function Fi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Bi(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 Ui(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Hi(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Il){var a=r.pending;return null===a?t.next=t:(t.next=a.next,a.next=t),r.pending=t,Pi(e,n)}return null===(a=r.interleaved)?(t.next=t,Li(r)):(t.next=a.next,a.next=t),r.interleaved=t,Pi(e,n)}function ji(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}function zi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var a=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?a=i=o:i=i.next=o,n=n.next}while(null!==n);null===i?a=i=t:i=i.next=t}else a=i=t;return n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Gi(e,t,n,r){var a=e.updateQueue;Mi=!1;var i=a.firstBaseUpdate,o=a.lastBaseUpdate,s=a.shared.pending;if(null!==s){a.shared.pending=null;var l=s,c=l.next;l.next=null,null===o?i=c:o.next=c,o=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==o&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==i){var d=a.baseState;for(o=0,u=c=l=null,s=i;;){var p=s.lane,h=s.eventTime;if((r&p)===p){null!==u&&(u=u.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var f=e,m=s;switch(p=t,h=n,m.tag){case 1:if("function"==typeof(f=m.payload)){d=f.call(h,d,p);break e}d=f;break e;case 3:f.flags=-65537&f.flags|128;case 0:if(null==(p="function"==typeof(f=m.payload)?f.call(h,d,p):f))break e;d=B({},d,p);break e;case 2:Mi=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(p=a.effects)?a.effects=[s]:p.push(s))}else h={eventTime:h,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=h,l=d):u=u.next=h,o|=p;if(null===(s=s.next)){if(null===(s=a.shared.pending))break;s=(p=s).next,p.next=null,a.lastBaseUpdate=p,a.shared.pending=null}}if(null===u&&(l=d),a.baseState=l,a.firstBaseUpdate=c,a.lastBaseUpdate=u,null!==(t=a.shared.interleaved)){a=t;do{o|=a.lane,a=a.next}while(a!==t)}else null===i&&(a.shared.lanes=0);Ml|=o,e.lanes=o,e.memoizedState=d}}function Yi(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var a=e[t],i=a.callback;if(null!==i){if(a.callback=null,a=r,"function"!=typeof i)throw Error(n(191,i));i.call(a)}}}var Vi={},qi=_a(Vi),Wi=_a(Vi),Qi=_a(Vi);function Ki(e){if(e===Vi)throw Error(n(174));return e}function Xi(e,t){switch(Na(Qi,t),Na(Wi,e),Na(qi,Vi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ce(null,"");break;default:t=ce(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Ca(qi),Na(qi,t)}function Ji(){Ca(qi),Ca(Wi),Ca(Qi)}function Zi(e){Ki(Qi.current);var t=Ki(qi.current),n=ce(t,e.type);t!==n&&(Na(Wi,e),Na(qi,n))}function $i(e){Wi.current===e&&(Ca(qi),Ca(Wi))}var eo=_a(0);function to(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.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 no=[];function ro(){for(var e=0;e<no.length;e++)no[e]._workInProgressVersionPrimary=null;no.length=0}var ao=v.ReactCurrentDispatcher,io=v.ReactCurrentBatchConfig,oo=0,so=null,lo=null,co=null,uo=!1,po=!1,ho=0,fo=0;function mo(){throw Error(n(321))}function go(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!lr(e[n],t[n]))return!1;return!0}function Eo(e,t,r,a,i,o){if(oo=o,so=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ao.current=null===e||null===e.memoizedState?es:ts,e=r(a,i),po){o=0;do{if(po=!1,ho=0,25<=o)throw Error(n(301));o+=1,co=lo=null,t.updateQueue=null,ao.current=ns,e=r(a,i)}while(po)}if(ao.current=$o,t=null!==lo&&null!==lo.next,oo=0,co=lo=so=null,uo=!1,t)throw Error(n(300));return e}function To(){var e=0!==ho;return ho=0,e}function yo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===co?so.memoizedState=co=e:co=co.next=e,co}function bo(){if(null===lo){var e=so.alternate;e=null!==e?e.memoizedState:null}else e=lo.next;var t=null===co?so.memoizedState:co.next;if(null!==t)co=t,lo=e;else{if(null===e)throw Error(n(310));e={memoizedState:(lo=e).memoizedState,baseState:lo.baseState,baseQueue:lo.baseQueue,queue:lo.queue,next:null},null===co?so.memoizedState=co=e:co=co.next=e}return co}function vo(e,t){return"function"==typeof t?t(e):t}function ko(e){var t=bo(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var a=lo,i=a.baseQueue,o=r.pending;if(null!==o){if(null!==i){var s=i.next;i.next=o.next,o.next=s}a.baseQueue=i=o,r.pending=null}if(null!==i){o=i.next,a=a.baseState;var l=s=null,c=null,u=o;do{var d=u.lane;if((oo&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),a=u.hasEagerState?u.eagerState:e(a,u.action);else{var p={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=p,s=a):c=c.next=p,so.lanes|=d,Ml|=d}u=u.next}while(null!==u&&u!==o);null===c?s=a:c.next=l,lr(a,t.memoizedState)||(ys=!0),t.memoizedState=a,t.baseState=s,t.baseQueue=c,r.lastRenderedState=a}if(null!==(e=r.interleaved)){i=e;do{o=i.lane,so.lanes|=o,Ml|=o,i=i.next}while(i!==e)}else null===i&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Ao(e){var t=bo(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var a=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);lr(o,t.memoizedState)||(ys=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),r.lastRenderedState=o}return[o,a]}function So(){}function _o(e,t){var r=so,a=bo(),i=t(),o=!lr(a.memoizedState,i);if(o&&(a.memoizedState=i,ys=!0),a=a.queue,Fo(Io.bind(null,r,a,e),[e]),a.getSnapshot!==t||o||null!==co&&1&co.memoizedState.tag){if(r.flags|=2048,Do(9,No.bind(null,r,a,i,t),void 0,null),null===wl)throw Error(n(349));30&oo||Co(r,t,i)}return i}function Co(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=so.updateQueue)?(t={lastEffect:null,stores:null},so.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function No(e,t,n,r){t.value=n,t.getSnapshot=r,wo(t)&&xo(e)}function Io(e,t,n){return n(function(){wo(t)&&xo(e)})}function wo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!lr(e,n)}catch(r){return!0}}function xo(e){var t=Pi(e,1);null!==t&&nc(t,e,1,-1)}function Oo(e){var t=yo();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:vo,lastRenderedState:e},t.queue=e,e=e.dispatch=Ko.bind(null,so,e),[t.memoizedState,e]}function Do(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=so.updateQueue)?(t={lastEffect:null,stores:null},so.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Lo(){return bo().memoizedState}function Ro(e,t,n,r){var a=yo();so.flags|=e,a.memoizedState=Do(1|t,n,void 0,void 0===r?null:r)}function Po(e,t,n,r){var a=bo();r=void 0===r?null:r;var i=void 0;if(null!==lo){var o=lo.memoizedState;if(i=o.destroy,null!==r&&go(r,o.deps))return void(a.memoizedState=Do(t,n,i,r))}so.flags|=e,a.memoizedState=Do(1|t,n,i,r)}function Mo(e,t){return Ro(8390656,8,e,t)}function Fo(e,t){return Po(2048,8,e,t)}function Bo(e,t){return Po(4,2,e,t)}function Uo(e,t){return Po(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 jo(e,t,n){return n=null!=n?n.concat([e]):null,Po(4,4,Ho.bind(null,t,e),n)}function zo(){}function Go(e,t){var n=bo();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&go(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Yo(e,t){var n=bo();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&go(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Vo(e,t,n){return 21&oo?(lr(n,t)||(n=gt(),so.lanes|=n,Ml|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ys=!0),e.memoizedState=n)}function qo(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=io.transition;io.transition={};try{e(!1),t()}finally{bt=n,io.transition=r}}function Wo(){return bo().memoizedState}function Qo(e,t,n){var r=tc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Xo(e))Jo(t,n);else if(null!==(n=Ri(e,t,n,r))){nc(n,e,r,ec()),Zo(n,t,r)}}function Ko(e,t,n){var r=tc(e),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Xo(e))Jo(t,a);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var o=t.lastRenderedState,s=i(o,n);if(a.hasEagerState=!0,a.eagerState=s,lr(s,o)){var l=t.interleaved;return null===l?(a.next=a,Li(t)):(a.next=l.next,l.next=a),void(t.interleaved=a)}}catch(c){}null!==(n=Ri(e,t,a,r))&&(nc(n,e,r,a=ec()),Zo(n,t,r))}}function Xo(e){var t=e.alternate;return e===so||null!==t&&t===so}function Jo(e,t){po=uo=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Zo(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var $o={readContext:Oi,useCallback:mo,useContext:mo,useEffect:mo,useImperativeHandle:mo,useInsertionEffect:mo,useLayoutEffect:mo,useMemo:mo,useReducer:mo,useRef:mo,useState:mo,useDebugValue:mo,useDeferredValue:mo,useTransition:mo,useMutableSource:mo,useSyncExternalStore:mo,useId:mo,unstable_isNewReconciler:!1},es={readContext:Oi,useCallback:function(e,t){return yo().memoizedState=[e,void 0===t?null:t],e},useContext:Oi,useEffect:Mo,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ro(4194308,4,Ho.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ro(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ro(4,2,e,t)},useMemo:function(e,t){var n=yo();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=yo();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Qo.bind(null,so,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},yo().memoizedState=e},useState:Oo,useDebugValue:zo,useDeferredValue:function(e){return yo().memoizedState=e},useTransition:function(){var e=Oo(!1),t=e[0];return e=qo.bind(null,e[1]),yo().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var a=so,i=yo();if(ii){if(void 0===r)throw Error(n(407));r=r()}else{if(r=t(),null===wl)throw Error(n(349));30&oo||Co(a,t,r)}i.memoizedState=r;var o={value:r,getSnapshot:t};return i.queue=o,Mo(Io.bind(null,a,o,e),[e]),a.flags|=2048,Do(9,No.bind(null,a,o,r,t),void 0,null),r},useId:function(){var e=yo(),t=wl.identifierPrefix;if(ii){var n=Za;t=":"+t+"R"+(n=(Ja&~(1<<32-st(Ja)-1)).toString(32)+n),0<(n=ho++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=fo++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ts={readContext:Oi,useCallback:Go,useContext:Oi,useEffect:Fo,useImperativeHandle:jo,useInsertionEffect:Bo,useLayoutEffect:Uo,useMemo:Yo,useReducer:ko,useRef:Lo,useState:function(){return ko(vo)},useDebugValue:zo,useDeferredValue:function(e){return Vo(bo(),lo.memoizedState,e)},useTransition:function(){return[ko(vo)[0],bo().memoizedState]},useMutableSource:So,useSyncExternalStore:_o,useId:Wo,unstable_isNewReconciler:!1},ns={readContext:Oi,useCallback:Go,useContext:Oi,useEffect:Fo,useImperativeHandle:jo,useInsertionEffect:Bo,useLayoutEffect:Uo,useMemo:Yo,useReducer:Ao,useRef:Lo,useState:function(){return Ao(vo)},useDebugValue:zo,useDeferredValue:function(e){var t=bo();return null===lo?t.memoizedState=e:Vo(t,lo.memoizedState,e)},useTransition:function(){return[Ao(vo)[0],bo().memoizedState]},useMutableSource:So,useSyncExternalStore:_o,useId:Wo,unstable_isNewReconciler:!1};function rs(e,t){if(e&&e.defaultProps){for(var n in t=B({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function as(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:B({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var is={isMounted:function(e){return!!(e=e._reactInternals)&&Ge(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ec(),a=tc(e),i=Ui(r,a);i.payload=t,null!=n&&(i.callback=n),null!==(t=Hi(e,i,a))&&(nc(t,e,a,r),ji(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ec(),a=tc(e),i=Ui(r,a);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Hi(e,i,a))&&(nc(t,e,a,r),ji(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ec(),r=tc(e),a=Ui(n,r);a.tag=2,null!=t&&(a.callback=t),null!==(t=Hi(e,a,r))&&(nc(t,e,r,n),ji(t,e,r))}};function os(e,t,n,r,a,i,o){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,o):!t.prototype||!t.prototype.isPureReactComponent||(!cr(n,r)||!cr(a,i))}function ss(e,t,n){var r=!1,a=Ia,i=t.contextType;return"object"==typeof i&&null!==i?i=Oi(i):(a=La(t)?Oa:wa.current,i=(r=null!=(r=t.contextTypes))?Da(e,a):Ia),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=is,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=i),t}function ls(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&is.enqueueReplaceState(t,t.state,null)}function cs(e,t,n,r){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs={},Fi(e);var i=t.contextType;"object"==typeof i&&null!==i?a.context=Oi(i):(i=La(t)?Oa:wa.current,a.context=Da(e,i)),a.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(as(e,t,i,n),a.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(t=a.state,"function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),t!==a.state&&is.enqueueReplaceState(a,a.state,null),Gi(e,n,a,r),a.state=e.memoizedState),"function"==typeof a.componentDidMount&&(e.flags|=4194308)}function us(e,t){try{var n="",r=t;do{n+=z(r),r=r.return}while(r);var a=n}catch(i){a="\nError generating stack: "+i.message+"\n"+i.stack}return{value:e,source:t,stack:a,digest:null}}function ds(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}var ps="function"==typeof WeakMap?WeakMap:Map;function hs(e,t,n){(n=Ui(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Yl||(Yl=!0,Vl=r)},n}function fs(e,t,n){(n=Ui(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var a=t.value;n.payload=function(){return r(a)},n.callback=function(){}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===ql?ql=new Set([this]):ql.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ms(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new ps;var a=new Set;r.set(t,a)}else void 0===(a=r.get(t))&&(a=new Set,r.set(t,a));a.has(n)||(a.add(n),e=_c.bind(null,e,t,n),t.then(e,e))}function gs(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 Es(e,t,n,r,a){return 1&e.mode?(e.flags|=65536,e.lanes=a,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Ui(-1,1)).tag=2,Hi(n,t,1))),n.lanes|=1),e)}var Ts=v.ReactCurrentOwner,ys=!1;function bs(e,t,n,r){t.child=null===e?ki(t,null,n,r):vi(t,e.child,n,r)}function vs(e,t,n,r,a){n=n.render;var i=t.ref;return xi(t,a),r=Eo(e,t,n,r,i,a),n=To(),null===e||ys?(ii&&n&&ti(t),t.flags|=1,bs(e,t,r,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Ys(e,t,a))}function ks(e,t,n,r,a){if(null===e){var i=n.type;return"function"!=typeof i||Dc(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Rc(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,As(e,t,i,r,a))}if(i=e.child,0===(e.lanes&a)){var o=i.memoizedProps;if((n=null!==(n=n.compare)?n:cr)(o,r)&&e.ref===t.ref)return Ys(e,t,a)}return t.flags|=1,(e=Lc(i,r)).ref=t.ref,e.return=t,t.child=e}function As(e,t,n,r,a){if(null!==e){var i=e.memoizedProps;if(cr(i,r)&&e.ref===t.ref){if(ys=!1,t.pendingProps=r=i,0===(e.lanes&a))return t.lanes=e.lanes,Ys(e,t,a);131072&e.flags&&(ys=!0)}}return Cs(e,t,n,r,a)}function Ss(e,t,n){var r=t.pendingProps,a=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Na(Ll,Dl),Dl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Na(Ll,Dl),Dl|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Na(Ll,Dl),Dl|=n;else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Na(Ll,Dl),Dl|=r;return bs(e,t,a,n),t.child}function _s(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Cs(e,t,n,r,a){var i=La(n)?Oa:wa.current;return i=Da(t,i),xi(t,a),n=Eo(e,t,n,r,i,a),r=To(),null===e||ys?(ii&&r&&ti(t),t.flags|=1,bs(e,t,n,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Ys(e,t,a))}function Ns(e,t,n,r,a){if(La(n)){var i=!0;Fa(t)}else i=!1;if(xi(t,a),null===t.stateNode)Gs(e,t),ss(t,n,r),cs(t,n,r,a),r=!0;else if(null===e){var o=t.stateNode,s=t.memoizedProps;o.props=s;var l=o.context,c=n.contextType;"object"==typeof c&&null!==c?c=Oi(c):c=Da(t,c=La(n)?Oa:wa.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof o.getSnapshotBeforeUpdate;d||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(s!==r||l!==c)&&ls(t,o,r,c),Mi=!1;var p=t.memoizedState;o.state=p,Gi(t,r,o,a),l=t.memoizedState,s!==r||p!==l||xa.current||Mi?("function"==typeof u&&(as(t,n,u,r),l=t.memoizedState),(s=Mi||os(t,n,s,r,p,l,c))?(d||"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=r,t.memoizedState=l),o.props=r,o.state=l,o.context=c,r=s):("function"==typeof o.componentDidMount&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Bi(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:rs(t.type,s),o.props=c,d=t.pendingProps,p=o.context,"object"==typeof(l=n.contextType)&&null!==l?l=Oi(l):l=Da(t,l=La(n)?Oa:wa.current);var h=n.getDerivedStateFromProps;(u="function"==typeof h||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(s!==d||p!==l)&&ls(t,o,r,l),Mi=!1,p=t.memoizedState,o.state=p,Gi(t,r,o,a);var f=t.memoizedState;s!==d||p!==f||xa.current||Mi?("function"==typeof h&&(as(t,n,h,r),f=t.memoizedState),(c=Mi||os(t,n,c,r,p,f,l)||!1)?(u||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(r,f,l),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,f,l)),"function"==typeof o.componentDidUpdate&&(t.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof o.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=f),o.props=r,o.state=f,o.context=l,r=c):("function"!=typeof o.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Is(e,t,n,r,i,a)}function Is(e,t,n,r,a,i){_s(e,t);var o=!!(128&t.flags);if(!r&&!o)return a&&Ba(t,n,!1),Ys(e,t,i);r=t.stateNode,Ts.current=t;var s=o&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&o?(t.child=vi(t,e.child,null,i),t.child=vi(t,null,s,i)):bs(e,t,s,i),t.memoizedState=r.state,a&&Ba(t,n,!0),t.child}function ws(e){var t=e.stateNode;t.pendingContext?Pa(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Pa(0,t.context,!1),Xi(e,t.containerInfo)}function xs(e,t,n,r,a){return fi(),mi(a),t.flags|=256,bs(e,t,n,r),t.child}var Os,Ds,Ls,Rs,Ps={dehydrated:null,treeContext:null,retryLane:0};function Ms(e){return{baseLanes:e,cachePool:null,transitions:null}}function Fs(e,t,r){var a,i=t.pendingProps,o=eo.current,s=!1,l=!!(128&t.flags);if((a=l)||(a=(null===e||null!==e.memoizedState)&&!!(2&o)),a?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(o|=1),Na(eo,1&o),null===e)return ui(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=Mc(l,i,0,null):(s.childLanes=0,s.pendingProps=l),e=Pc(e,i,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ms(r),t.memoizedState=Ps,e):Bs(t,l));if(null!==(o=e.memoizedState)&&null!==(a=o.dehydrated))return function(e,t,r,a,i,o,s){if(r)return 256&t.flags?(t.flags&=-257,Us(e,t,s,a=ds(Error(n(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(o=a.fallback,i=t.mode,a=Mc({mode:"visible",children:a.children},i,0,null),(o=Pc(o,i,s,null)).flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,1&t.mode&&vi(t,e.child,null,s),t.child.memoizedState=Ms(s),t.memoizedState=Ps,o);if(!(1&t.mode))return Us(e,t,s,null);if("$!"===i.data){if(a=i.nextSibling&&i.nextSibling.dataset)var l=a.dgst;return a=l,Us(e,t,s,a=ds(o=Error(n(419)),a,void 0))}if(l=0!==(s&e.childLanes),ys||l){if(null!==(a=wl)){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=0!==(i&(a.suspendedLanes|s))?0:i)&&i!==o.retryLane&&(o.retryLane=i,Pi(e,i),nc(a,e,i,-1))}return mc(),Us(e,t,s,a=ds(Error(n(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=Nc.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,ai=ua(i.nextSibling),ri=t,ii=!0,oi=null,null!==e&&(Qa[Ka++]=Ja,Qa[Ka++]=Za,Qa[Ka++]=Xa,Ja=e.id,Za=e.overflow,Xa=t),t=Bs(t,a.children),t.flags|=4096,t)}(e,t,l,i,a,o,r);if(s){s=i.fallback,l=t.mode,a=(o=e.child).sibling;var c={mode:"hidden",children:i.children};return 1&l||t.child===o?(i=Lc(o,c)).subtreeFlags=14680064&o.subtreeFlags:((i=t.child).childLanes=0,i.pendingProps=c,t.deletions=null),null!==a?s=Lc(a,s):(s=Pc(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)?Ms(r):{baseLanes:l.baseLanes|r,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~r,t.memoizedState=Ps,i}return e=(s=e.child).sibling,i=Lc(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 Bs(e,t){return(t=Mc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Us(e,t,n,r){return null!==r&&mi(r),vi(t,e.child,null,n),(e=Bs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Hs(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),wi(e.return,t,n)}function js(e,t,n,r,a){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=a)}function zs(e,t,n){var r=t.pendingProps,a=r.revealOrder,i=r.tail;if(bs(e,t,r.children,n),2&(r=eo.current))r=1&r|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&&Hs(e,n,t);else if(19===e.tag)Hs(e,n,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}r&=1}if(Na(eo,r),1&t.mode)switch(a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===to(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),js(t,!1,a,n,i);break;case"backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===to(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}js(t,!0,n,null,i);break;case"together":js(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Gs(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ys(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),Ml|=t.lanes,0===(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(n(153));if(null!==t.child){for(r=Lc(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Lc(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function Vs(e,t){if(!ii)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function qs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=14680064&a.subtreeFlags,r|=14680064&a.flags,a.return=e,a=a.sibling;else for(a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ws(e,t,r){var i=t.pendingProps;switch(ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qs(t),null;case 1:case 17:return La(t.type)&&Ra(),qs(t),null;case 3:return i=t.stateNode,Ji(),Ca(xa),Ca(wa),ro(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),null!==e&&null!==e.child||(pi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==oi&&(oc(oi),oi=null))),Ds(e,t),qs(t),null;case 5:$i(t);var o=Ki(Qi.current);if(r=t.type,null!==e&&null!=t.stateNode)Ls(e,t,r,i,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(null===t.stateNode)throw Error(n(166));return qs(t),null}if(e=Ki(qi.current),pi(t)){i=t.stateNode,r=t.type;var s=t.memoizedProps;switch(i[ha]=t,i[fa]=s,e=!!(1&t.mode),r){case"dialog":Hr("cancel",i),Hr("close",i);break;case"iframe":case"object":case"embed":Hr("load",i);break;case"video":case"audio":for(o=0;o<Mr.length;o++)Hr(Mr[o],i);break;case"source":Hr("error",i);break;case"img":case"image":case"link":Hr("error",i),Hr("load",i);break;case"details":Hr("toggle",i);break;case"input":J(i,s),Hr("invalid",i);break;case"select":i._wrapperState={wasMultiple:!!s.multiple},Hr("invalid",i);break;case"textarea":ie(i,s),Hr("invalid",i)}for(var l in ye(r,s),o=null,s)if(s.hasOwnProperty(l)){var c=s[l];"children"===l?"string"==typeof c?i.textContent!==c&&(!0!==s.suppressHydrationWarning&&$r(i.textContent,c,e),o=["children",c]):"number"==typeof c&&i.textContent!==""+c&&(!0!==s.suppressHydrationWarning&&$r(i.textContent,c,e),o=["children",""+c]):a.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&Hr("scroll",i)}switch(r){case"input":W(i),ee(i,s,!0);break;case"textarea":W(i),se(i);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(i.onclick=ea)}i=o,t.updateQueue=i,null!==i&&(t.flags|=4)}else{l=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=le(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof i.is?e=l.createElement(r,{is:i.is}):(e=l.createElement(r),"select"===r&&(l=e,i.multiple?l.multiple=!0:i.size&&(l.size=i.size))):e=l.createElementNS(e,r),e[ha]=t,e[fa]=i,Os(e,t,!1,!1),t.stateNode=e;e:{switch(l=be(r,i),r){case"dialog":Hr("cancel",e),Hr("close",e),o=i;break;case"iframe":case"object":case"embed":Hr("load",e),o=i;break;case"video":case"audio":for(o=0;o<Mr.length;o++)Hr(Mr[o],e);o=i;break;case"source":Hr("error",e),o=i;break;case"img":case"image":case"link":Hr("error",e),Hr("load",e),o=i;break;case"details":Hr("toggle",e),o=i;break;case"input":J(e,i),o=X(e,i),Hr("invalid",e);break;case"option":default:o=i;break;case"select":e._wrapperState={wasMultiple:!!i.multiple},o=B({},i,{value:void 0}),Hr("invalid",e);break;case"textarea":ie(e,i),o=ae(e,i),Hr("invalid",e)}for(s in ye(r,o),c=o)if(c.hasOwnProperty(s)){var u=c[s];"style"===s?Ee(e,u):"dangerouslySetInnerHTML"===s?null!=(u=u?u.__html:void 0)&&pe(e,u):"children"===s?"string"==typeof u?("textarea"!==r||""!==u)&&he(e,u):"number"==typeof u&&he(e,""+u):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(a.hasOwnProperty(s)?null!=u&&"onScroll"===s&&Hr("scroll",e):null!=u&&y(e,s,u,l))}switch(r){case"input":W(e),ee(e,i,!1);break;case"textarea":W(e),se(e);break;case"option":null!=i.value&&e.setAttribute("value",""+V(i.value));break;case"select":e.multiple=!!i.multiple,null!=(s=i.value)?re(e,!!i.multiple,s,!1):null!=i.defaultValue&&re(e,!!i.multiple,i.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=ea)}switch(r){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}}i&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return qs(t),null;case 6:if(e&&null!=t.stateNode)Rs(e,t,e.memoizedProps,i);else{if("string"!=typeof i&&null===t.stateNode)throw Error(n(166));if(r=Ki(Qi.current),Ki(qi.current),pi(t)){if(i=t.stateNode,r=t.memoizedProps,i[ha]=t,(s=i.nodeValue!==r)&&null!==(e=ri))switch(e.tag){case 3:$r(i.nodeValue,r,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&$r(i.nodeValue,r,!!(1&e.mode))}s&&(t.flags|=4)}else(i=(9===r.nodeType?r:r.ownerDocument).createTextNode(i))[ha]=t,t.stateNode=i}return qs(t),null;case 13:if(Ca(eo),i=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==ai&&1&t.mode&&!(128&t.flags))hi(),fi(),t.flags|=98560,s=!1;else if(s=pi(t),null!==i&&null!==i.dehydrated){if(null===e){if(!s)throw Error(n(318));if(!(s=null!==(s=t.memoizedState)?s.dehydrated:null))throw Error(n(317));s[ha]=t}else fi(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;qs(t),s=!1}else null!==oi&&(oc(oi),oi=null),s=!0;if(!s)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=r,t):((i=null!==i)!==(null!==e&&null!==e.memoizedState)&&i&&(t.child.flags|=8192,1&t.mode&&(null===e||1&eo.current?0===Rl&&(Rl=3):mc())),null!==t.updateQueue&&(t.flags|=4),qs(t),null);case 4:return Ji(),Ds(e,t),null===e&&Gr(t.stateNode.containerInfo),qs(t),null;case 10:return Ii(t.type._context),qs(t),null;case 19:if(Ca(eo),null===(s=t.memoizedState))return qs(t),null;if(i=!!(128&t.flags),null===(l=s.rendering))if(i)Vs(s,!1);else{if(0!==Rl||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(l=to(e))){for(t.flags|=128,Vs(s,!1),null!==(i=l.updateQueue)&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=r,r=t.child;null!==r;)e=i,(s=r).flags&=14680066,null===(l=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,e=l.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Na(eo,1&eo.current|2),t.child}e=e.sibling}null!==s.tail&&Ze()>zl&&(t.flags|=128,i=!0,Vs(s,!1),t.lanes=4194304)}else{if(!i)if(null!==(e=to(l))){if(t.flags|=128,i=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),Vs(s,!0),null===s.tail&&"hidden"===s.tailMode&&!l.alternate&&!ii)return qs(t),null}else 2*Ze()-s.renderingStartTime>zl&&1073741824!==r&&(t.flags|=128,i=!0,Vs(s,!1),t.lanes=4194304);s.isBackwards?(l.sibling=t.child,t.child=l):(null!==(r=s.last)?r.sibling=l:t.child=l,s.last=l)}return null!==s.tail?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Ze(),t.sibling=null,r=eo.current,Na(eo,i?1&r|2:1&r),t):(qs(t),null);case 22:case 23:return dc(),i=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==i&&(t.flags|=8192),i&&1&t.mode?!!(1073741824&Dl)&&(qs(t),6&t.subtreeFlags&&(t.flags|=8192)):qs(t),null;case 24:case 25:return null}throw Error(n(156,t.tag))}function Qs(e,t){switch(ni(t),t.tag){case 1:return La(t.type)&&Ra(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Ji(),Ca(xa),Ca(wa),ro(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return $i(t),null;case 13:if(Ca(eo),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(n(340));fi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Ca(eo),null;case 4:return Ji(),null;case 10:return Ii(t.type._context),null;case 22:case 23:return dc(),null;default:return null}}Os=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ds=function(){},Ls=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Ki(qi.current);var o,s=null;switch(n){case"input":i=X(e,i),r=X(e,r),s=[];break;case"select":i=B({},i,{value:void 0}),r=B({},r,{value:void 0}),s=[];break;case"textarea":i=ae(e,i),r=ae(e,r),s=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=ea)}for(u in ye(n,r),n=null,i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&null!=i[u])if("style"===u){var l=i[u];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(a.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var c=r[u];if(l=null!=i?i[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(o in l)!l.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&l[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(s||(s=[]),s.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(s=s||[]).push(u,c)):"children"===u?"string"!=typeof c&&"number"!=typeof c||(s=s||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(a.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&Hr("scroll",e),s||l===c||(s=[])):(s=s||[]).push(u,c))}n&&(s=s||[]).push("style",n);var u=s;(t.updateQueue=u)&&(t.flags|=4)}},Rs=function(e,t,n,r){n!==r&&(t.flags|=4)};var Ks=!1,Xs=!1,Js="function"==typeof WeakSet?WeakSet:Set,Zs=null;function $s(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(r){Sc(e,t,r)}else n.current=null}function el(e,t,n){try{n()}catch(r){Sc(e,t,r)}}var tl=!1;function nl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var a=r=r.next;do{if((a.tag&e)===e){var i=a.destroy;a.destroy=void 0,void 0!==i&&el(t,n,i)}a=a.next}while(a!==r)}}function rl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function al(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function il(e){var t=e.alternate;null!==t&&(e.alternate=null,il(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[ha],delete t[fa],delete t[ga],delete t[Ea],delete t[Ta])),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 ol(e){return 5===e.tag||3===e.tag||4===e.tag}function sl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ol(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 ll(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=ea));else if(4!==r&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}function cl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}var ul=null,dl=!1;function pl(e,t,n){for(n=n.child;null!==n;)hl(e,t,n),n=n.sibling}function hl(e,t,n){if(ot&&"function"==typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(it,n)}catch(s){}switch(n.tag){case 5:Xs||$s(n,t);case 6:var r=ul,a=dl;ul=null,pl(e,t,n),dl=a,null!==(ul=r)&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ul.removeChild(n.stateNode));break;case 18:null!==ul&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?ca(e.parentNode,n):1===e.nodeType&&ca(e,n),Gt(e)):ca(ul,n.stateNode));break;case 4:r=ul,a=dl,ul=n.stateNode.containerInfo,dl=!0,pl(e,t,n),ul=r,dl=a;break;case 0:case 11:case 14:case 15:if(!Xs&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){a=r=r.next;do{var i=a,o=i.destroy;i=i.tag,void 0!==o&&(2&i||4&i)&&el(n,t,o),a=a.next}while(a!==r)}pl(e,t,n);break;case 1:if(!Xs&&($s(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Sc(n,t,s)}pl(e,t,n);break;case 21:pl(e,t,n);break;case 22:1&n.mode?(Xs=(r=Xs)||null!==n.memoizedState,pl(e,t,n),Xs=r):pl(e,t,n);break;default:pl(e,t,n)}}function fl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Js),t.forEach(function(t){var r=Ic.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function ml(e,t){var r=t.deletions;if(null!==r)for(var a=0;a<r.length;a++){var i=r[a];try{var o=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:ul=l.stateNode,dl=!1;break e;case 3:case 4:ul=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===ul)throw Error(n(160));hl(o,s,i),ul=null,dl=!1;var c=i.alternate;null!==c&&(c.return=null),i.return=null}catch(u){Sc(i,t,u)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)gl(t,e),t=t.sibling}function gl(e,t){var r=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ml(t,e),El(e),4&a){try{nl(3,e,e.return),rl(3,e)}catch(g){Sc(e,e.return,g)}try{nl(5,e,e.return)}catch(g){Sc(e,e.return,g)}}break;case 1:ml(t,e),El(e),512&a&&null!==r&&$s(r,r.return);break;case 5:if(ml(t,e),El(e),512&a&&null!==r&&$s(r,r.return),32&e.flags){var i=e.stateNode;try{he(i,"")}catch(g){Sc(e,e.return,g)}}if(4&a&&null!=(i=e.stateNode)){var o=e.memoizedProps,s=null!==r?r.memoizedProps:o,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===l&&"radio"===o.type&&null!=o.name&&Z(i,o),be(l,s);var u=be(l,o);for(s=0;s<c.length;s+=2){var d=c[s],p=c[s+1];"style"===d?Ee(i,p):"dangerouslySetInnerHTML"===d?pe(i,p):"children"===d?he(i,p):y(i,d,p,u)}switch(l){case"input":$(i,o);break;case"textarea":oe(i,o);break;case"select":var h=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var f=o.value;null!=f?re(i,!!o.multiple,f,!1):h!==!!o.multiple&&(null!=o.defaultValue?re(i,!!o.multiple,o.defaultValue,!0):re(i,!!o.multiple,o.multiple?[]:"",!1))}i[fa]=o}catch(g){Sc(e,e.return,g)}}break;case 6:if(ml(t,e),El(e),4&a){if(null===e.stateNode)throw Error(n(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(g){Sc(e,e.return,g)}}break;case 3:if(ml(t,e),El(e),4&a&&null!==r&&r.memoizedState.isDehydrated)try{Gt(t.containerInfo)}catch(g){Sc(e,e.return,g)}break;case 4:default:ml(t,e),El(e);break;case 13:ml(t,e),El(e),8192&(i=e.child).flags&&(o=null!==i.memoizedState,i.stateNode.isHidden=o,!o||null!==i.alternate&&null!==i.alternate.memoizedState||(jl=Ze())),4&a&&fl(e);break;case 22:if(d=null!==r&&null!==r.memoizedState,1&e.mode?(Xs=(u=Xs)||d,ml(t,e),Xs=u):ml(t,e),El(e),8192&a){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&1&e.mode)for(Zs=e,d=e.child;null!==d;){for(p=Zs=d;null!==Zs;){switch(f=(h=Zs).child,h.tag){case 0:case 11:case 14:case 15:nl(4,h,h.return);break;case 1:$s(h,h.return);var m=h.stateNode;if("function"==typeof m.componentWillUnmount){a=h,r=h.return;try{t=a,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(g){Sc(a,r,g)}}break;case 5:$s(h,h.return);break;case 22:if(null!==h.memoizedState){vl(p);continue}}null!==f?(f.return=h,Zs=f):vl(p)}d=d.sibling}e:for(d=null,p=e;;){if(5===p.tag){if(null===d){d=p;try{i=p.stateNode,u?"function"==typeof(o=i.style).setProperty?o.setProperty("display","none","important"):o.display="none":(l=p.stateNode,s=null!=(c=p.memoizedProps.style)&&c.hasOwnProperty("display")?c.display:null,l.style.display=ge("display",s))}catch(g){Sc(e,e.return,g)}}}else if(6===p.tag){if(null===d)try{p.stateNode.nodeValue=u?"":p.memoizedProps}catch(g){Sc(e,e.return,g)}}else if((22!==p.tag&&23!==p.tag||null===p.memoizedState||p===e)&&null!==p.child){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;null===p.sibling;){if(null===p.return||p.return===e)break e;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:ml(t,e),El(e),4&a&&fl(e);case 21:}}function El(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(ol(r)){var a=r;break e}r=r.return}throw Error(n(160))}switch(a.tag){case 5:var i=a.stateNode;32&a.flags&&(he(i,""),a.flags&=-33),cl(e,sl(e),i);break;case 3:case 4:var o=a.stateNode.containerInfo;ll(e,sl(e),o);break;default:throw Error(n(161))}}catch(s){Sc(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Tl(e,t,n){Zs=e,yl(e)}function yl(e,t,n){for(var r=!!(1&e.mode);null!==Zs;){var a=Zs,i=a.child;if(22===a.tag&&r){var o=null!==a.memoizedState||Ks;if(!o){var s=a.alternate,l=null!==s&&null!==s.memoizedState||Xs;s=Ks;var c=Xs;if(Ks=o,(Xs=l)&&!c)for(Zs=a;null!==Zs;)l=(o=Zs).child,22===o.tag&&null!==o.memoizedState?kl(a):null!==l?(l.return=o,Zs=l):kl(a);for(;null!==i;)Zs=i,yl(i),i=i.sibling;Zs=a,Ks=s,Xs=c}bl(e)}else 8772&a.subtreeFlags&&null!==i?(i.return=a,Zs=i):bl(e)}}function bl(e){for(;null!==Zs;){var t=Zs;if(8772&t.flags){var r=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Xs||rl(5,t);break;case 1:var a=t.stateNode;if(4&t.flags&&!Xs)if(null===r)a.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:rs(t.type,r.memoizedProps);a.componentDidUpdate(i,r.memoizedState,a.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;null!==o&&Yi(t,o,a);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}Yi(t,s,r)}break;case 5:var l=t.stateNode;if(null===r&&4&t.flags){r=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&r.focus();break;case"img":c.src&&(r.src=c.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 u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var p=d.dehydrated;null!==p&&Gt(p)}}}break;default:throw Error(n(163))}Xs||512&t.flags&&al(t)}catch(h){Sc(t,t.return,h)}}if(t===e){Zs=null;break}if(null!==(r=t.sibling)){r.return=t.return,Zs=r;break}Zs=t.return}}function vl(e){for(;null!==Zs;){var t=Zs;if(t===e){Zs=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Zs=n;break}Zs=t.return}}function kl(e){for(;null!==Zs;){var t=Zs;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rl(4,t)}catch(l){Sc(t,n,l)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var a=t.return;try{r.componentDidMount()}catch(l){Sc(t,a,l)}}var i=t.return;try{al(t)}catch(l){Sc(t,i,l)}break;case 5:var o=t.return;try{al(t)}catch(l){Sc(t,o,l)}}}catch(l){Sc(t,t.return,l)}if(t===e){Zs=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Zs=s;break}Zs=t.return}}var Al,Sl=Math.ceil,_l=v.ReactCurrentDispatcher,Cl=v.ReactCurrentOwner,Nl=v.ReactCurrentBatchConfig,Il=0,wl=null,xl=null,Ol=0,Dl=0,Ll=_a(0),Rl=0,Pl=null,Ml=0,Fl=0,Bl=0,Ul=null,Hl=null,jl=0,zl=1/0,Gl=null,Yl=!1,Vl=null,ql=null,Wl=!1,Ql=null,Kl=0,Xl=0,Jl=null,Zl=-1,$l=0;function ec(){return 6&Il?Ze():-1!==Zl?Zl:Zl=Ze()}function tc(e){return 1&e.mode?2&Il&&0!==Ol?Ol&-Ol:null!==gi.transition?(0===$l&&($l=gt()),$l):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Jt(e.type):1}function nc(e,t,r,a){if(50<Xl)throw Xl=0,Jl=null,Error(n(185));Tt(e,r,a),2&Il&&e===wl||(e===wl&&(!(2&Il)&&(Fl|=r),4===Rl&&sc(e,Ol)),rc(e,a),1===r&&0===Il&&!(1&t.mode)&&(zl=Ze()+500,Ha&&Ga()))}function rc(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-st(i),s=1<<o,l=a[o];-1===l?0!==(s&n)&&0===(s&r)||(a[o]=ft(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}(e,t);var r=ht(e,e===wl?Ol:0);if(0===r)null!==n&&Ke(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ke(n),1===t)0===e.tag?function(e){Ha=!0,za(e)}(lc.bind(null,e)):za(lc.bind(null,e)),sa(function(){!(6&Il)&&Ga()}),n=null;else{switch(vt(r)){case 1:n=et;break;case 4:n=tt;break;case 16:default:n=nt;break;case 536870912:n=at}n=wc(n,ac.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ac(e,t){if(Zl=-1,$l=0,6&Il)throw Error(n(327));var r=e.callbackNode;if(kc()&&e.callbackNode!==r)return null;var a=ht(e,e===wl?Ol:0);if(0===a)return null;if(30&a||0!==(a&e.expiredLanes)||t)t=gc(e,a);else{t=a;var i=Il;Il|=2;var o=fc();for(wl===e&&Ol===t||(Gl=null,zl=Ze()+500,pc(e,t));;)try{Tc();break}catch(l){hc(e,l)}Ni(),_l.current=o,Il=i,null!==xl?t=0:(wl=null,Ol=0,t=Rl)}if(0!==t){if(2===t&&(0!==(i=mt(e))&&(a=i,t=ic(e,i))),1===t)throw r=Pl,pc(e,0),sc(e,a),rc(e,Ze()),r;if(6===t)sc(e,a);else{if(i=e.current.alternate,!(30&a||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var a=n[r],i=a.getSnapshot;a=a.value;try{if(!lr(i(),a))return!1}catch(s){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;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=gc(e,a),2===t&&(o=mt(e),0!==o&&(a=o,t=ic(e,o))),1!==t)))throw r=Pl,pc(e,0),sc(e,a),rc(e,Ze()),r;switch(e.finishedWork=i,e.finishedLanes=a,t){case 0:case 1:throw Error(n(345));case 2:case 5:vc(e,Hl,Gl);break;case 3:if(sc(e,a),(130023424&a)===a&&10<(t=jl+500-Ze())){if(0!==ht(e,0))break;if(((i=e.suspendedLanes)&a)!==a){ec(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=aa(vc.bind(null,e,Hl,Gl),t);break}vc(e,Hl,Gl);break;case 4:if(sc(e,a),(4194240&a)===a)break;for(t=e.eventTimes,i=-1;0<a;){var s=31-st(a);o=1<<s,(s=t[s])>i&&(i=s),a&=~o}if(a=i,10<(a=(120>(a=Ze()-a)?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*Sl(a/1960))-a)){e.timeoutHandle=aa(vc.bind(null,e,Hl,Gl),a);break}vc(e,Hl,Gl);break;default:throw Error(n(329))}}}return rc(e,Ze()),e.callbackNode===r?ac.bind(null,e):null}function ic(e,t){var n=Ul;return e.current.memoizedState.isDehydrated&&(pc(e,t).flags|=256),2!==(e=gc(e,t))&&(t=Hl,Hl=n,null!==t&&oc(t)),e}function oc(e){null===Hl?Hl=e:Hl.push.apply(Hl,e)}function sc(e,t){for(t&=~Bl,t&=~Fl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-st(t),r=1<<n;e[n]=-1,t&=~r}}function lc(e){if(6&Il)throw Error(n(327));kc();var t=ht(e,0);if(!(1&t))return rc(e,Ze()),null;var r=gc(e,t);if(0!==e.tag&&2===r){var a=mt(e);0!==a&&(t=a,r=ic(e,a))}if(1===r)throw r=Pl,pc(e,0),sc(e,t),rc(e,Ze()),r;if(6===r)throw Error(n(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,vc(e,Hl,Gl),rc(e,Ze()),null}function cc(e,t){var n=Il;Il|=1;try{return e(t)}finally{0===(Il=n)&&(zl=Ze()+500,Ha&&Ga())}}function uc(e){null!==Ql&&0===Ql.tag&&!(6&Il)&&kc();var t=Il;Il|=1;var n=Nl.transition,r=bt;try{if(Nl.transition=null,bt=1,e)return e()}finally{bt=r,Nl.transition=n,!(6&(Il=t))&&Ga()}}function dc(){Dl=Ll.current,Ca(Ll)}function pc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ia(n)),null!==xl)for(n=xl.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Ra();break;case 3:Ji(),Ca(xa),Ca(wa),ro();break;case 5:$i(r);break;case 4:Ji();break;case 13:case 19:Ca(eo);break;case 10:Ii(r.type._context);break;case 22:case 23:dc()}n=n.return}if(wl=e,xl=e=Lc(e.current,null),Ol=Dl=t,Rl=0,Pl=null,Bl=Fl=Ml=0,Hl=Ul=null,null!==Di){for(t=0;t<Di.length;t++)if(null!==(r=(n=Di[t]).interleaved)){n.interleaved=null;var a=r.next,i=n.pending;if(null!==i){var o=i.next;i.next=a,r.next=o}n.pending=r}Di=null}return e}function hc(e,t){for(;;){var r=xl;try{if(Ni(),ao.current=$o,uo){for(var a=so.memoizedState;null!==a;){var i=a.queue;null!==i&&(i.pending=null),a=a.next}uo=!1}if(oo=0,co=lo=so=null,po=!1,ho=0,Cl.current=null,null===r||null===r.return){Rl=1,Pl=t,xl=null;break}e:{var o=e,s=r.return,l=r,c=t;if(t=Ol,l.flags|=32768,null!==c&&"object"==typeof c&&"function"==typeof c.then){var u=c,d=l,p=d.tag;if(!(1&d.mode||0!==p&&11!==p&&15!==p)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var f=gs(s);if(null!==f){f.flags&=-257,Es(f,s,l,0,t),1&f.mode&&ms(o,u,t),c=u;var m=(t=f).updateQueue;if(null===m){var g=new Set;g.add(c),t.updateQueue=g}else m.add(c);break e}if(!(1&t)){ms(o,u,t),mc();break e}c=Error(n(426))}else if(ii&&1&l.mode){var E=gs(s);if(null!==E){!(65536&E.flags)&&(E.flags|=256),Es(E,s,l,0,t),mi(us(c,l));break e}}o=c=us(c,l),4!==Rl&&(Rl=2),null===Ul?Ul=[o]:Ul.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t,zi(o,hs(0,c,t));break e;case 1:l=c;var T=o.type,y=o.stateNode;if(!(128&o.flags||"function"!=typeof T.getDerivedStateFromError&&(null===y||"function"!=typeof y.componentDidCatch||null!==ql&&ql.has(y)))){o.flags|=65536,t&=-t,o.lanes|=t,zi(o,fs(o,l,t));break e}}o=o.return}while(null!==o)}bc(r)}catch(b){t=b,xl===r&&null!==r&&(xl=r=r.return);continue}break}}function fc(){var e=_l.current;return _l.current=$o,null===e?$o:e}function mc(){0!==Rl&&3!==Rl&&2!==Rl||(Rl=4),null===wl||!(268435455&Ml)&&!(268435455&Fl)||sc(wl,Ol)}function gc(e,t){var r=Il;Il|=2;var a=fc();for(wl===e&&Ol===t||(Gl=null,pc(e,t));;)try{Ec();break}catch(i){hc(e,i)}if(Ni(),Il=r,_l.current=a,null!==xl)throw Error(n(261));return wl=null,Ol=0,Rl}function Ec(){for(;null!==xl;)yc(xl)}function Tc(){for(;null!==xl&&!Xe();)yc(xl)}function yc(e){var t=Al(e.alternate,e,Dl);e.memoizedProps=e.pendingProps,null===t?bc(e):xl=t,Cl.current=null}function bc(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Qs(n,t)))return n.flags&=32767,void(xl=n);if(null===e)return Rl=6,void(xl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Ws(n,t,Dl)))return void(xl=n);if(null!==(t=t.sibling))return void(xl=t);xl=t=e}while(null!==t);0===Rl&&(Rl=5)}function vc(e,t,r){var a=bt,i=Nl.transition;try{Nl.transition=null,bt=1,function(e,t,r,a){do{kc()}while(null!==Ql);if(6&Il)throw Error(n(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(n(177));e.callbackNode=null,e.callbackPriority=0;var o=r.lanes|r.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var a=31-st(n),i=1<<a;t[a]=0,r[a]=-1,e[a]=-1,n&=~i}}(e,o),e===wl&&(xl=wl=null,Ol=0),!(2064&r.subtreeFlags)&&!(2064&r.flags)||Wl||(Wl=!0,wc(nt,function(){return kc(),null})),o=!!(15990&r.flags),!!(15990&r.subtreeFlags)||o){o=Nl.transition,Nl.transition=null;var s=bt;bt=1;var l=Il;Il|=4,Cl.current=null,function(e,t){if(ta=Vt,fr(e=hr())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var a=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(a&&0!==a.rangeCount){r=a.anchorNode;var i=a.anchorOffset,o=a.focusNode;a=a.focusOffset;try{r.nodeType,o.nodeType}catch(v){r=null;break e}var s=0,l=-1,c=-1,u=0,d=0,p=e,h=null;t:for(;;){for(var f;p!==r||0!==i&&3!==p.nodeType||(l=s+i),p!==o||0!==a&&3!==p.nodeType||(c=s+a),3===p.nodeType&&(s+=p.nodeValue.length),null!==(f=p.firstChild);)h=p,p=f;for(;;){if(p===e)break t;if(h===r&&++u===i&&(l=s),h===o&&++d===a&&(c=s),null!==(f=p.nextSibling))break;h=(p=h).parentNode}p=f}r=-1===l||-1===c?null:{start:l,end:c}}else r=null}r=r||{start:0,end:0}}else r=null;for(na={focusedElem:e,selectionRange:r},Vt=!1,Zs=t;null!==Zs;)if(e=(t=Zs).child,1028&t.subtreeFlags&&null!==e)e.return=t,Zs=e;else for(;null!==Zs;){t=Zs;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 g=m.memoizedProps,E=m.memoizedState,T=t.stateNode,y=T.getSnapshotBeforeUpdate(t.elementType===t.type?g:rs(t.type,g),E);T.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var b=t.stateNode.containerInfo;1===b.nodeType?b.textContent="":9===b.nodeType&&b.documentElement&&b.removeChild(b.documentElement);break;default:throw Error(n(163))}}catch(v){Sc(t,t.return,v)}if(null!==(e=t.sibling)){e.return=t.return,Zs=e;break}Zs=t.return}m=tl,tl=!1}(e,r),gl(r,e),mr(na),Vt=!!ta,na=ta=null,e.current=r,Tl(r),Je(),Il=l,bt=s,Nl.transition=o}else e.current=r;if(Wl&&(Wl=!1,Ql=e,Kl=i),o=e.pendingLanes,0===o&&(ql=null),function(e){if(ot&&"function"==typeof ot.onCommitFiberRoot)try{ot.onCommitFiberRoot(it,e,void 0,!(128&~e.current.flags))}catch(t){}}(r.stateNode),rc(e,Ze()),null!==t)for(a=e.onRecoverableError,r=0;r<t.length;r++)i=t[r],a(i.value,{componentStack:i.stack,digest:i.digest});if(Yl)throw Yl=!1,e=Vl,Vl=null,e;!!(1&Kl)&&0!==e.tag&&kc(),o=e.pendingLanes,1&o?e===Jl?Xl++:(Xl=0,Jl=e):Xl=0,Ga()}(e,t,r,a)}finally{Nl.transition=i,bt=a}return null}function kc(){if(null!==Ql){var e=vt(Kl),t=Nl.transition,r=bt;try{if(Nl.transition=null,bt=16>e?16:e,null===Ql)var a=!1;else{if(e=Ql,Ql=null,Kl=0,6&Il)throw Error(n(331));var i=Il;for(Il|=4,Zs=e.current;null!==Zs;){var o=Zs,s=o.child;if(16&Zs.flags){var l=o.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for(Zs=u;null!==Zs;){var d=Zs;switch(d.tag){case 0:case 11:case 15:nl(8,d,o)}var p=d.child;if(null!==p)p.return=d,Zs=p;else for(;null!==Zs;){var h=(d=Zs).sibling,f=d.return;if(il(d),d===u){Zs=null;break}if(null!==h){h.return=f,Zs=h;break}Zs=f}}}var m=o.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var E=g.sibling;g.sibling=null,g=E}while(null!==g)}}Zs=o}}if(2064&o.subtreeFlags&&null!==s)s.return=o,Zs=s;else e:for(;null!==Zs;){if(2048&(o=Zs).flags)switch(o.tag){case 0:case 11:case 15:nl(9,o,o.return)}var T=o.sibling;if(null!==T){T.return=o.return,Zs=T;break e}Zs=o.return}}var y=e.current;for(Zs=y;null!==Zs;){var b=(s=Zs).child;if(2064&s.subtreeFlags&&null!==b)b.return=s,Zs=b;else e:for(s=y;null!==Zs;){if(2048&(l=Zs).flags)try{switch(l.tag){case 0:case 11:case 15:rl(9,l)}}catch(k){Sc(l,l.return,k)}if(l===s){Zs=null;break e}var v=l.sibling;if(null!==v){v.return=l.return,Zs=v;break e}Zs=l.return}}if(Il=i,Ga(),ot&&"function"==typeof ot.onPostCommitFiberRoot)try{ot.onPostCommitFiberRoot(it,e)}catch(k){}a=!0}return a}finally{bt=r,Nl.transition=t}}return!1}function Ac(e,t,n){e=Hi(e,t=hs(0,t=us(n,t),1),1),t=ec(),null!==e&&(Tt(e,1,t),rc(e,t))}function Sc(e,t,n){if(3===e.tag)Ac(e,e,n);else for(;null!==t;){if(3===t.tag){Ac(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===ql||!ql.has(r))){t=Hi(t,e=fs(t,e=us(n,e),1),1),e=ec(),null!==t&&(Tt(t,1,e),rc(t,e));break}}t=t.return}}function _c(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ec(),e.pingedLanes|=e.suspendedLanes&n,wl===e&&(Ol&n)===n&&(4===Rl||3===Rl&&(130023424&Ol)===Ol&&500>Ze()-jl?pc(e,0):Bl|=n),rc(e,t)}function Cc(e,t){0===t&&(1&e.mode?(t=dt,!(130023424&(dt<<=1))&&(dt=4194304)):t=1);var n=ec();null!==(e=Pi(e,t))&&(Tt(e,t,n),rc(e,n))}function Nc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Cc(e,n)}function Ic(e,t){var r=0;switch(e.tag){case 13:var a=e.stateNode,i=e.memoizedState;null!==i&&(r=i.retryLane);break;case 19:a=e.stateNode;break;default:throw Error(n(314))}null!==a&&a.delete(t),Cc(e,r)}function wc(e,t){return Qe(e,t)}function xc(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Oc(e,t,n,r){return new xc(e,t,n,r)}function Dc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Lc(e,t){var n=e.alternate;return null===n?((n=Oc(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Rc(e,t,r,a,i,o){var s=2;if(a=e,"function"==typeof e)Dc(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case S:return Pc(r.children,i,o,t);case _:s=8,i|=8;break;case C:return(e=Oc(12,r,t,2|i)).elementType=C,e.lanes=o,e;case x:return(e=Oc(13,r,t,i)).elementType=x,e.lanes=o,e;case O:return(e=Oc(19,r,t,i)).elementType=O,e.lanes=o,e;case R:return Mc(r,i,o,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case N:s=10;break e;case I:s=9;break e;case w:s=11;break e;case D:s=14;break e;case L:s=16,a=null;break e}throw Error(n(130,null==e?e:typeof e,""))}return(t=Oc(s,r,t,i)).elementType=e,t.type=a,t.lanes=o,t}function Pc(e,t,n,r){return(e=Oc(7,e,r,t)).lanes=n,e}function Mc(e,t,n,r){return(e=Oc(22,e,r,t)).elementType=R,e.lanes=n,e.stateNode={isHidden:!1},e}function Fc(e,t,n){return(e=Oc(6,e,null,t)).lanes=n,e}function Bc(e,t,n){return(t=Oc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Uc(e,t,n,r,a){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=Et(0),this.expirationTimes=Et(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Et(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function Hc(e,t,n,r,a,i,o,s,l){return e=new Uc(e,t,n,s,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Oc(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Fi(i),e}function jc(e){if(!e)return Ia;e:{if(Ge(e=e._reactInternals)!==e||1!==e.tag)throw Error(n(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(La(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(n(171))}if(1===e.tag){var r=e.type;if(La(r))return Ma(e,r,t)}return t}function zc(e,t,n,r,a,i,o,s,l){return(e=Hc(n,r,!0,e,0,i,0,s,l)).context=jc(null),n=e.current,(i=Ui(r=ec(),a=tc(n))).callback=null!=t?t:null,Hi(n,i,a),e.current.lanes=a,Tt(e,a,r),rc(e,r),e}function Gc(e,t,n,r){var a=t.current,i=ec(),o=tc(a);return n=jc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Ui(i,o)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Hi(a,t,o))&&(nc(e,a,o,i),ji(e,a,o)),o}function Yc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Vc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function qc(e,t){Vc(e,t),(e=e.alternate)&&Vc(e,t)}Al=function(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps||xa.current)ys=!0;else{if(0===(e.lanes&r)&&!(128&t.flags))return ys=!1,function(e,t,n){switch(t.tag){case 3:ws(t),fi();break;case 5:Zi(t);break;case 1:La(t.type)&&Fa(t);break;case 4:Xi(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,a=t.memoizedProps.value;Na(Ai,r._currentValue),r._currentValue=a;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Na(eo,1&eo.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Fs(e,t,n):(Na(eo,1&eo.current),null!==(e=Ys(e,t,n))?e.sibling:null);Na(eo,1&eo.current);break;case 19:if(r=0!==(n&t.childLanes),128&e.flags){if(r)return zs(e,t,n);t.flags|=128}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null,a.lastEffect=null),Na(eo,eo.current),r)break;return null;case 22:case 23:return t.lanes=0,Ss(e,t,n)}return Ys(e,t,n)}(e,t,r);ys=!!(131072&e.flags)}else ys=!1,ii&&1048576&t.flags&&ei(t,Wa,t.index);switch(t.lanes=0,t.tag){case 2:var a=t.type;Gs(e,t),e=t.pendingProps;var i=Da(t,wa.current);xi(t,r),i=Eo(null,t,a,e,i,r);var o=To();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,La(a)?(o=!0,Fa(t)):o=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Fi(t),i.updater=is,t.stateNode=i,i._reactInternals=t,cs(t,a,e,r),t=Is(null,t,a,!0,o,r)):(t.tag=0,ii&&o&&ti(t),bs(null,t,i,r),t=t.child),t;case 16:a=t.elementType;e:{switch(Gs(e,t),e=t.pendingProps,a=(i=a._init)(a._payload),t.type=a,i=t.tag=function(e){if("function"==typeof e)return Dc(e)?1:0;if(null!=e){if((e=e.$$typeof)===w)return 11;if(e===D)return 14}return 2}(a),e=rs(a,e),i){case 0:t=Cs(null,t,a,e,r);break e;case 1:t=Ns(null,t,a,e,r);break e;case 11:t=vs(null,t,a,e,r);break e;case 14:t=ks(null,t,a,rs(a.type,e),r);break e}throw Error(n(306,a,""))}return t;case 0:return a=t.type,i=t.pendingProps,Cs(e,t,a,i=t.elementType===a?i:rs(a,i),r);case 1:return a=t.type,i=t.pendingProps,Ns(e,t,a,i=t.elementType===a?i:rs(a,i),r);case 3:e:{if(ws(t),null===e)throw Error(n(387));a=t.pendingProps,i=(o=t.memoizedState).element,Bi(e,t),Gi(t,a,null,r);var s=t.memoizedState;if(a=s.element,o.isDehydrated){if(o={element:a,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,256&t.flags){t=xs(e,t,a,r,i=us(Error(n(423)),t));break e}if(a!==i){t=xs(e,t,a,r,i=us(Error(n(424)),t));break e}for(ai=ua(t.stateNode.containerInfo.firstChild),ri=t,ii=!0,oi=null,r=ki(t,null,a,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(fi(),a===i){t=Ys(e,t,r);break e}bs(e,t,a,r)}t=t.child}return t;case 5:return Zi(t),null===e&&ui(t),a=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,s=i.children,ra(a,i)?s=null:null!==o&&ra(a,o)&&(t.flags|=32),_s(e,t),bs(e,t,s,r),t.child;case 6:return null===e&&ui(t),null;case 13:return Fs(e,t,r);case 4:return Xi(t,t.stateNode.containerInfo),a=t.pendingProps,null===e?t.child=vi(t,null,a,r):bs(e,t,a,r),t.child;case 11:return a=t.type,i=t.pendingProps,vs(e,t,a,i=t.elementType===a?i:rs(a,i),r);case 7:return bs(e,t,t.pendingProps,r),t.child;case 8:case 12:return bs(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(a=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,Na(Ai,a._currentValue),a._currentValue=s,null!==o)if(lr(o.value,s)){if(o.children===i.children&&!xa.current){t=Ys(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 c=l.firstContext;null!==c;){if(c.context===a){if(1===o.tag){(c=Ui(-1,r&-r)).tag=2;var u=o.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}o.lanes|=r,null!==(c=o.alternate)&&(c.lanes|=r),wi(o.return,r,t),l.lanes|=r;break}c=c.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(n(341));s.lanes|=r,null!==(l=s.alternate)&&(l.lanes|=r),wi(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}bs(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,a=t.pendingProps.children,xi(t,r),a=a(i=Oi(i)),t.flags|=1,bs(e,t,a,r),t.child;case 14:return i=rs(a=t.type,t.pendingProps),ks(e,t,a,i=rs(a.type,i),r);case 15:return As(e,t,t.type,t.pendingProps,r);case 17:return a=t.type,i=t.pendingProps,i=t.elementType===a?i:rs(a,i),Gs(e,t),t.tag=1,La(a)?(e=!0,Fa(t)):e=!1,xi(t,r),ss(t,a,i),cs(t,a,i,r),Is(null,t,a,!0,e,r);case 19:return zs(e,t,r);case 22:return Ss(e,t,r)}throw Error(n(156,t.tag))};var Wc="function"==typeof reportError?reportError:function(e){};function Qc(e){this._internalRoot=e}function Kc(e){this._internalRoot=e}function Xc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Jc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zc(){}function $c(e,t,n,r,a){var i=n._reactRootContainer;if(i){var o=i;if("function"==typeof a){var s=a;a=function(){var e=Yc(o);s.call(e)}}Gc(t,o,e,a)}else o=function(e,t,n,r,a){if(a){if("function"==typeof r){var i=r;r=function(){var e=Yc(o);i.call(e)}}var o=zc(t,r,e,0,null,!1,0,"",Zc);return e._reactRootContainer=o,e[ma]=o.current,Gr(8===e.nodeType?e.parentNode:e),uc(),o}for(;a=e.lastChild;)e.removeChild(a);if("function"==typeof r){var s=r;r=function(){var e=Yc(l);s.call(e)}}var l=Hc(e,0,!1,null,0,!1,0,"",Zc);return e._reactRootContainer=l,e[ma]=l.current,Gr(8===e.nodeType?e.parentNode:e),uc(function(){Gc(t,l,n,r)}),l}(n,t,e,a,r);return Yc(o)}Kc.prototype.render=Qc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(n(409));Gc(e,t,null,null)},Kc.prototype.unmount=Qc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;uc(function(){Gc(null,e,null,null)}),t[ma]=null}},Kc.prototype.unstable_scheduleHydration=function(e){if(e){var t=_t();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Rt.length&&0!==t&&t<Rt[n].priority;n++);Rt.splice(n,0,e),0===n&&Bt(e)}},kt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=pt(t.pendingLanes);0!==n&&(yt(t,1|n),rc(t,Ze()),!(6&Il)&&(zl=Ze()+500,Ga()))}break;case 13:uc(function(){var t=Pi(e,1);if(null!==t){var n=ec();nc(t,e,1,n)}}),qc(e,1)}},At=function(e){if(13===e.tag){var t=Pi(e,134217728);if(null!==t)nc(t,e,134217728,ec());qc(e,134217728)}},St=function(e){if(13===e.tag){var t=tc(e),n=Pi(e,t);if(null!==n)nc(n,e,t,ec());qc(e,t)}},_t=function(){return bt},Ct=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},Ae=function(e,t,r){switch(t){case"input":if($(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 a=r[t];if(a!==e&&a.form===e.form){var i=ka(a);if(!i)throw Error(n(90));Q(a),$(a,i)}}}break;case"textarea":oe(e,r);break;case"select":null!=(t=r.value)&&re(e,!!r.multiple,t,!1)}},we=cc,xe=uc;var eu={usingClientEntryPoint:!1,Events:[ba,va,ka,Ne,Ie,cc]},tu={findFiberByHostInstance:ya,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nu={bundleType:tu.bundleType,version:tu.version,rendererPackageName:tu.rendererPackageName,rendererConfig:tu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:v.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=qe(e))?null:e.stateNode},findFiberByHostInstance:tu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ru=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ru.isDisabled&&ru.supportsFiber)try{it=ru.inject(nu),ot=ru}catch(de){}}return E.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=eu,E.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Xc(t))throw Error(n(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:A,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,r)},E.createRoot=function(e,t){if(!Xc(e))throw Error(n(299));var r=!1,a="",i=Wc;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(a=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=Hc(e,1,!1,null,0,r,0,a,i),e[ma]=t.current,Gr(8===e.nodeType?e.parentNode:e),new Qc(t)},E.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(n(188));throw e=Object.keys(e).join(","),Error(n(268,e))}return e=null===(e=qe(t))?null:e.stateNode},E.flushSync=function(e){return uc(e)},E.hydrate=function(e,t,r){if(!Jc(t))throw Error(n(200));return $c(null,e,t,!0,r)},E.hydrateRoot=function(e,t,r){if(!Xc(e))throw Error(n(405));var a=null!=r&&r.hydratedSources||null,i=!1,o="",s=Wc;if(null!=r&&(!0===r.unstable_strictMode&&(i=!0),void 0!==r.identifierPrefix&&(o=r.identifierPrefix),void 0!==r.onRecoverableError&&(s=r.onRecoverableError)),t=zc(t,null,e,1,null!=r?r:null,i,0,o,s),e[ma]=t.current,Gr(e),a)for(e=0;e<a.length;e++)i=(i=(r=a[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,i]:t.mutableSourceEagerHydrationData.push(r,i);return new Kc(t)},E.render=function(e,t,r){if(!Jc(t))throw Error(n(200));return $c(null,e,t,!1,r)},E.unmountComponentAtNode=function(e){if(!Jc(e))throw Error(n(40));return!!e._reactRootContainer&&(uc(function(){$c(null,null,e,!1,function(){e._reactRootContainer=null,e[ma]=null})}),!0)},E.unstable_batchedUpdates=cc,E.unstable_renderSubtreeIntoContainer=function(e,t,r,a){if(!Jc(r))throw Error(n(200));if(null==e||void 0===e._reactInternals)throw Error(n(38));return $c(e,t,r,!1,a)},E.version="18.3.1-next-f1338f8080-20240426",E}var k,A,S=function(){if(f)return m;f=1;var e=(h||(h=1,function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){}}(),g.exports=v()),g.exports);return m.createRoot=e.createRoot,m.hydrateRoot=e.hydrateRoot,m}(),_={exports:{}},C={};var N=(A||(A=1,_.exports=function(){if(k)return C;k=1;var e=s(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function o(e,n,o){var s,l={},c=null,u=null;for(s in void 0!==o&&(c=""+o),void 0!==n.key&&(c=""+n.key),void 0!==n.ref&&(u=n.ref),n)r.call(n,s)&&!i.hasOwnProperty(s)&&(l[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps)void 0===l[s]&&(l[s]=n[s]);return{$$typeof:t,type:e,key:c,ref:u,props:l,_owner:a.current}}return C.Fragment=n,C.jsx=o,C.jsxs=o,C}()),_.exports);const I={},w=(e,t,n,r)=>{L(n)&&I[n]||(L(n)&&(I[n]=new Date),((e,t,n,r)=>{const a=[n,{code:t,...r||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(a,"warn","react-i18next::",!0);L(a[0])&&(a[0]=`react-i18next:: ${a[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...a):console})(e,t,n,r))},x=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},O=(e,t,n)=>{e.loadNamespaces(t,x(e,n))},D=(e,t,n,r)=>{if(L(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return O(e,n,r);n.forEach(t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)}),e.loadLanguages(t,x(e,r))},L=e=>"string"==typeof e,R=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,P={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},M=e=>P[e];let F={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(R,M)};let B;const U={type:"3rdParty",init(e){((e={})=>{F={...F,...e}})(e.options.react),(e=>{B=e})(e)}},H=l.createContext();class j{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const z=(e,t,n,r)=>e.getFixedT(t,n,r),G=(e,t={})=>{const{i18n:n}=t,{i18n:r,defaultNS:a}=l.useContext(H)||{},i=n||r||B;if(i&&!i.reportNamespaces&&(i.reportNamespaces=new j),!i){w(i,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const e=(e,t)=>{return L(t)?t:"object"==typeof(n=t)&&null!==n&&L(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e;var n},t=[e,{},!1];return t.t=e,t.i18n={},t.ready=!1,t}i.options.react?.wait&&w(i,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const o={...F,...i.options.react,...t},{useSuspense:s,keyPrefix:c}=o;let u=a||i.options?.defaultNS;u=L(u)?[u]:u||["translation"],i.reportNamespaces.addUsedNamespaces?.(u);const d=(i.isInitialized||i.initializedStoreOnce)&&u.every(e=>((e,t,n={})=>t.languages&&t.languages.length?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(t,r)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}):(w(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0))(e,i,o)),p=((e,t,n,r)=>l.useCallback(z(e,t,n,r),[e,t,n,r]))(i,t.lng||null,"fallback"===o.nsMode?u:u[0],c),h=()=>p,f=()=>z(i,t.lng||null,"fallback"===o.nsMode?u:u[0],c),[m,g]=l.useState(h);let E=u.join();t.lng&&(E=`${t.lng}${E}`);const T=((e,t)=>{const n=l.useRef();return l.useEffect(()=>{n.current=e},[e,t]),n.current})(E),y=l.useRef(!0);l.useEffect(()=>{const{bindI18n:e,bindI18nStore:n}=o;y.current=!0,d||s||(t.lng?D(i,t.lng,u,()=>{y.current&&g(f)}):O(i,u,()=>{y.current&&g(f)})),d&&T&&T!==E&&y.current&&g(f);const r=()=>{y.current&&g(f)};return e&&i?.on(e,r),n&&i?.store.on(n,r),()=>{y.current=!1,i&&e&&e?.split(" ").forEach(e=>i.off(e,r)),n&&i&&n.split(" ").forEach(e=>i.store.off(e,r))}},[i,E]),l.useEffect(()=>{y.current&&d&&g(h)},[i,c,d]);const b=[m,i,d];if(b.t=m,b.i18n=i,b.ready=d,d)return b;if(!d&&!s)return b;throw new Promise(e=>{t.lng?D(i,t.lng,u,()=>e()):O(i,u,()=>e())})};function Y({i18n:e,defaultNS:t,children:n}){const r=l.useMemo(()=>({i18n:e,defaultNS:t}),[e,t]);return l.createElement(H.Provider,{value:r},n)}const V=e=>{const t=(e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()))(e);return t.charAt(0).toUpperCase()+t.slice(1)},q=(...e)=>e.filter((e,t,n)=>Boolean(e)&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim(),W=e=>{for(const t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0};var Q={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const K=l.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:i,iconNode:o,...s},c)=>l.createElement("svg",{ref:c,...Q,width:t,height:t,stroke:e,strokeWidth:r?24*Number(n)/Number(t):n,className:q("lucide",a),...!i&&!W(s)&&{"aria-hidden":"true"},...s},[...o.map(([e,t])=>l.createElement(e,t)),...Array.isArray(i)?i:[i]])),X=(e,t)=>{const n=l.forwardRef(({className:n,...r},a)=>{return l.createElement(K,{ref:a,iconNode:t,className:q(`lucide-${i=V(e),i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,n),...r});var i});return n.displayName=V(e),n},J=X("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),Z=X("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),$=X("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),ee=X("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),te=X("ellipsis-vertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]]),ne=X("file-text",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]),re=X("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]),ae=X("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]),ie=X("log-in",[["path",{d:"m10 17 5-5-5-5",key:"1bsop3"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}]]),oe=X("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]]),se=X("message-circle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]),le=X("message-square",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]),ce=X("mic-off",[["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}],["path",{d:"M18.89 13.23A7.12 7.12 0 0 0 19 12v-2",key:"80xlxr"}],["path",{d:"M5 10v2a7 7 0 0 0 12 5",key:"p2k8kg"}],["path",{d:"M15 9.34V5a3 3 0 0 0-5.68-1.33",key:"1gzdoj"}],["path",{d:"M9 9v3a3 3 0 0 0 5.12 2.12",key:"r2i35w"}],["line",{x1:"12",x2:"12",y1:"19",y2:"22",key:"x3vr5v"}]]),ue=X("mic",[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]]),de=X("moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]),pe=X("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]),he=X("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]),fe=X("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]),me=X("trash-2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]),ge=X("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Ee=({onClick:e,unreadCount:t=0,widgetConfig:n})=>{const{t:r}=G(),a=n?.widget_customization?.branding?.company_name||r("widget.title");return N.jsxs("button",{type:"button",onClick:t=>{t.preventDefault(),t.stopPropagation(),e()},className:"gpc-floating-button gpc-floating-button-with-text gpc-animate-fade-in","aria-label":r("chat.title"),title:r("chat.title"),children:[N.jsxs("div",{className:"gpc-floating-content",children:[N.jsx(se,{className:"gpc-floating-icon"}),N.jsxs("span",{className:"gpc-floating-text",children:[r("widget.questionsTo")," ",a]})]}),t>0&&N.jsx("span",{className:"gpc-notification-badge",children:t>9?"9+":t})]})},Te=()=>{const{i18n:e,t:t}=G(),n=[{code:"en",label:t("languages.english"),flag:"🇬🇧"},{code:"es",label:t("languages.spanish"),flag:"🇪🇸"},{code:"fr",label:t("languages.french"),flag:"🇫🇷"}],[r,a]=l.useState(!1),i=l.useRef(null),o=n.find(t=>t.code===e.language)||n[0];return l.useEffect(()=>{const e=e=>{i.current&&!i.current.contains(e.target)&&a(!1)};return r&&document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[r]),N.jsxs("div",{className:"gpc-language-selector",ref:i,children:[N.jsx("button",{type:"button",onClick:e=>{e.preventDefault(),e.stopPropagation(),a(!r)},className:"gpc-header-button gpc-focus-visible gpc-transition","aria-label":t("ui.languageSelector.label"),title:t("ui.languageSelector.label"),children:N.jsx(re,{className:"gpc-icon"})}),r&&N.jsx("div",{className:"gpc-language-dropdown",children:n.map(t=>N.jsxs("button",{type:"button",onClick:n=>((t,n)=>{t.preventDefault(),t.stopPropagation(),e.changeLanguage(n),a(!1)})(n,t.code),className:"gpc-language-option "+(t.code===o.code?"gpc-language-option-active":""),children:[N.jsx("span",{className:"gpc-language-flag",children:t.flag}),N.jsx("span",{className:"gpc-language-label",children:t.label})]},t.code))})]})},ye="3.1.1",be="gpc_captcha_verified",ve="gpc_captcha_timestamp",ke=["honeypot_field_1","honeypot_field_2","hp_field"],Ae=864e5,Se="mcp_login_data",_e="https://www.tiagpctest.softiabot.com",Ce={BOTTOM_RIGHT:"bottom-right",BOTTOM_LEFT:"bottom-left",TOP_RIGHT:"top-right",TOP_LEFT:"top-left"},Ne={LIGHT:"light",DARK:"dark",AUTO:"auto"},Ie={SPANISH:"es",ENGLISH:"en",FRANCES:"fr"},we=640,xe={SMALL:"small",MEDIUM:"medium",LARGE:"large"},Oe={[xe.SMALL]:{width:"320px",height:"500px"},[xe.MEDIUM]:{width:"400px",height:"600px"},[xe.LARGE]:{width:"480px",height:"720px"}},De=Ne.AUTO,Le=Ce.BOTTOM_RIGHT,Re=Ie.ENGLISH,Pe="400px",Me="600px",Fe=!1,Be=!0,Ue=!0,He=3e4,je=2e3,ze=e=>{try{return new Date(e).toLocaleTimeString("es-ES",{hour:"2-digit",minute:"2-digit"})}catch{return""}},Ge=()=>crypto.randomUUID(),Ye=()=>{const e=localStorage.getItem(be),t=localStorage.getItem(ve);return"true"===e&&!!t&&Date.now()-parseInt(t,10)<2592e6},Ve=e=>e?e.startsWith("data:")?e:`data:image/png;base64,${e}`:null,qe=e=>e.substring(0,16),We=({onClose:e,theme:t,onToggleTheme:n,showBranding:r=!0,widgetConfig:a=null,onToggleConversations:i,showConversations:o=!1,conversationsCount:s=0,onToggleAbout:c,showAbout:u=!1,version:d=ye,onToggleMcpLogin:p,showMcpLogin:h=!1,mcpLoggedIn:f=!1,onOpenTiaCore:m,tiaCoreLoading:g=!1,showTiaCoreButton:E=!1})=>{const{t:T}=G(),[y,b]=l.useState(!1),v=l.useRef(null);l.useEffect(()=>{const e=e=>{v.current&&!v.current.contains(e.target)&&b(!1)};return y&&document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[y]);const k=a?.widget_customization?.branding?.company_name||T("widget.title"),A=a?.widget_customization?.branding?.custom_title,S=a?.widget_customization?.branding?.company_logo_base64,_=A||k,C=Ve(S),I=a?.widget_customization?.colors?.header_background,w=a?.widget_customization?.colors?.header_text,x={};I&&(x.backgroundColor=I),w&&(x.color=w);const O=(e,t)=>{e.preventDefault(),e.stopPropagation(),b(!1),t()};return N.jsxs("div",{className:"gpc-chat-header",style:x,children:[N.jsxs("div",{className:"gpc-header-content",children:[C&&N.jsx("div",{className:"gpc-header-logo",children:N.jsx("img",{src:C,alt:k,className:"gpc-company-logo"})}),N.jsx("div",{className:"gpc-header-text",children:N.jsx("h2",{className:"gpc-header-title",style:w?{color:w}:{},children:_})})]}),N.jsxs("div",{className:"gpc-header-actions",children:[i&&N.jsxs("button",{type:"button",onClick:e=>{e.preventDefault(),e.stopPropagation(),i()},className:"gpc-header-button gpc-focus-visible gpc-transition relative "+(o?"bg-blue-500 text-white":""),"aria-label":T("conversations.toggle","Toggle conversations"),title:T("conversations.toggle","Toggle conversations"),children:[N.jsx(le,{className:"gpc-icon",size:20}),s>0&&N.jsx("span",{className:"absolute -top-1 -right-1 bg-red-500 text-white text-xs rounded-full w-4 h-4 flex items-center justify-center",children:s>9?"9+":s})]}),N.jsx(Te,{}),E&&f&&N.jsx("button",{type:"button",onClick:e=>{e.preventDefault(),e.stopPropagation(),m&&m()},className:"gpc-header-button gpc-focus-visible gpc-transition","aria-label":T("tiaCore.openPortal"),title:T("tiaCore.openPortal"),disabled:g,children:g?N.jsx("div",{className:"gpc-spinner gpc-button-spinner",style:{width:18,height:18}}):N.jsx(ne,{className:"gpc-icon",size:20})}),N.jsxs("div",{className:"gpc-header-menu",ref:v,children:[N.jsx("button",{type:"button",onClick:e=>{e.preventDefault(),e.stopPropagation(),b(e=>!e)},className:"gpc-header-button gpc-focus-visible gpc-transition "+(y?"bg-blue-500 text-white":""),"aria-label":T("ui.menu"),title:T("ui.menu"),children:N.jsx(te,{className:"gpc-icon",size:20})}),y&&N.jsxs("div",{className:"gpc-header-dropdown",children:[N.jsxs("button",{type:"button",className:"gpc-header-dropdown-item",onClick:e=>O(e,n),children:["light"===t?N.jsx(de,{size:16,className:"gpc-header-dropdown-icon"}):N.jsx(fe,{size:16,className:"gpc-header-dropdown-icon"}),N.jsx("span",{children:T("theme.toggle")})]}),c&&N.jsxs(N.Fragment,{children:[N.jsx("div",{className:"gpc-header-dropdown-divider"}),N.jsxs("button",{type:"button",className:"gpc-header-dropdown-item "+(u?"gpc-header-dropdown-item-active":""),onClick:e=>O(e,c),children:[N.jsx(ae,{size:16,className:"gpc-header-dropdown-icon"}),N.jsx("span",{children:T("about.title")})]})]}),p&&N.jsxs(N.Fragment,{children:[N.jsx("div",{className:"gpc-header-dropdown-divider"}),N.jsxs("button",{type:"button",className:"gpc-header-dropdown-item",onClick:e=>O(e,p),children:[f?N.jsx(oe,{size:16,className:"gpc-header-dropdown-icon"}):N.jsx(ie,{size:16,className:"gpc-header-dropdown-icon"}),N.jsx("span",{children:T(f?"moodle.logout":"moodle.login")})]})]})]})]}),N.jsx("button",{type:"button",onClick:t=>{t.preventDefault(),t.stopPropagation(),e()},className:"gpc-header-button gpc-focus-visible gpc-transition","aria-label":T("chat.close"),title:T("chat.close"),children:N.jsx(Z,{className:"gpc-icon"})})]})]})};function Qe(){}function Ke(){}function Xe(e){const t=[],n=String(e||"");let r=n.indexOf(","),a=0,i=!1;for(;!i;){-1===r&&(r=n.length,i=!0);const e=n.slice(a,r).trim();!e&&i||t.push(e),a=r+1,r=n.indexOf(",",a)}return t}function Je(e,t){const n={};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}const Ze=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,$e=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,et={};function tt(e,t){return(et.jsx?$e:Ze).test(e)}const nt=/[ \t\n\f\r]/g;function rt(e){return""===e.replace(nt,"")}class at{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function it(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new at(n,r,t)}function ot(e){return e.toLowerCase()}at.prototype.normal={},at.prototype.property={},at.prototype.space=void 0;class st{constructor(e,t){this.attribute=t,this.property=e}}st.prototype.attribute="",st.prototype.booleanish=!1,st.prototype.boolean=!1,st.prototype.commaOrSpaceSeparated=!1,st.prototype.commaSeparated=!1,st.prototype.defined=!1,st.prototype.mustUseProperty=!1,st.prototype.number=!1,st.prototype.overloadedBoolean=!1,st.prototype.property="",st.prototype.spaceSeparated=!1,st.prototype.space=void 0;let lt=0;const ct=gt(),ut=gt(),dt=gt(),pt=gt(),ht=gt(),ft=gt(),mt=gt();function gt(){return 2**++lt}const Et=Object.freeze(Object.defineProperty({__proto__:null,boolean:ct,booleanish:ut,commaOrSpaceSeparated:mt,commaSeparated:ft,number:pt,overloadedBoolean:dt,spaceSeparated:ht},Symbol.toStringTag,{value:"Module"})),Tt=Object.keys(Et);class yt extends st{constructor(e,t,n,r){let a=-1;if(super(e,t),bt(this,"space",r),"number"==typeof n)for(;++a<Tt.length;){const e=Tt[a];bt(this,Tt[a],(n&Et[e])===Et[e])}}}function bt(e,t,n){n&&(e[t]=n)}function vt(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const i=new yt(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[ot(r)]=r,n[ot(i.attribute)]=r}return new at(t,n,e.space)}yt.prototype.defined=!0;const kt=vt({properties:{ariaActiveDescendant:null,ariaAtomic:ut,ariaAutoComplete:null,ariaBusy:ut,ariaChecked:ut,ariaColCount:pt,ariaColIndex:pt,ariaColSpan:pt,ariaControls:ht,ariaCurrent:null,ariaDescribedBy:ht,ariaDetails:null,ariaDisabled:ut,ariaDropEffect:ht,ariaErrorMessage:null,ariaExpanded:ut,ariaFlowTo:ht,ariaGrabbed:ut,ariaHasPopup:null,ariaHidden:ut,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ht,ariaLevel:pt,ariaLive:null,ariaModal:ut,ariaMultiLine:ut,ariaMultiSelectable:ut,ariaOrientation:null,ariaOwns:ht,ariaPlaceholder:null,ariaPosInSet:pt,ariaPressed:ut,ariaReadOnly:ut,ariaRelevant:null,ariaRequired:ut,ariaRoleDescription:ht,ariaRowCount:pt,ariaRowIndex:pt,ariaRowSpan:pt,ariaSelected:ut,ariaSetSize:pt,ariaSort:null,ariaValueMax:pt,ariaValueMin:pt,ariaValueNow:pt,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function At(e,t){return t in e?e[t]:t}function St(e,t){return At(e,t.toLowerCase())}const _t=vt({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ft,acceptCharset:ht,accessKey:ht,action:null,allow:null,allowFullScreen:ct,allowPaymentRequest:ct,allowUserMedia:ct,alt:null,as:null,async:ct,autoCapitalize:null,autoComplete:ht,autoFocus:ct,autoPlay:ct,blocking:ht,capture:null,charSet:null,checked:ct,cite:null,className:ht,cols:pt,colSpan:null,content:null,contentEditable:ut,controls:ct,controlsList:ht,coords:pt|ft,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ct,defer:ct,dir:null,dirName:null,disabled:ct,download:dt,draggable:ut,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ct,formTarget:null,headers:ht,height:pt,hidden:dt,high:pt,href:null,hrefLang:null,htmlFor:ht,httpEquiv:ht,id:null,imageSizes:null,imageSrcSet:null,inert:ct,inputMode:null,integrity:null,is:null,isMap:ct,itemId:null,itemProp:ht,itemRef:ht,itemScope:ct,itemType:ht,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ct,low:pt,manifest:null,max:null,maxLength:pt,media:null,method:null,min:null,minLength:pt,multiple:ct,muted:ct,name:null,nonce:null,noModule:ct,noValidate:ct,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ct,optimum:pt,pattern:null,ping:ht,placeholder:null,playsInline:ct,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ct,referrerPolicy:null,rel:ht,required:ct,reversed:ct,rows:pt,rowSpan:pt,sandbox:ht,scope:null,scoped:ct,seamless:ct,selected:ct,shadowRootClonable:ct,shadowRootDelegatesFocus:ct,shadowRootMode:null,shape:null,size:pt,sizes:null,slot:null,span:pt,spellCheck:ut,src:null,srcDoc:null,srcLang:null,srcSet:null,start:pt,step:null,style:null,tabIndex:pt,target:null,title:null,translate:null,type:null,typeMustMatch:ct,useMap:null,value:ut,width:pt,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ht,axis:null,background:null,bgColor:null,border:pt,borderColor:null,bottomMargin:pt,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ct,declare:ct,event:null,face:null,frame:null,frameBorder:null,hSpace:pt,leftMargin:pt,link:null,longDesc:null,lowSrc:null,marginHeight:pt,marginWidth:pt,noResize:ct,noHref:ct,noShade:ct,noWrap:ct,object:null,profile:null,prompt:null,rev:null,rightMargin:pt,rules:null,scheme:null,scrolling:ut,standby:null,summary:null,text:null,topMargin:pt,valueType:null,version:null,vAlign:null,vLink:null,vSpace:pt,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ct,disableRemotePlayback:ct,prefix:null,property:null,results:pt,security:null,unselectable:null},space:"html",transform:St}),Ct=vt({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:mt,accentHeight:pt,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:pt,amplitude:pt,arabicForm:null,ascent:pt,attributeName:null,attributeType:null,azimuth:pt,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:pt,by:null,calcMode:null,capHeight:pt,className:ht,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:pt,diffuseConstant:pt,direction:null,display:null,dur:null,divisor:pt,dominantBaseline:null,download:ct,dx:null,dy:null,edgeMode:null,editable:null,elevation:pt,enableBackground:null,end:null,event:null,exponent:pt,externalResourcesRequired:null,fill:null,fillOpacity:pt,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:ft,g2:ft,glyphName:ft,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:pt,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:pt,horizOriginX:pt,horizOriginY:pt,id:null,ideographic:pt,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:pt,k:pt,k1:pt,k2:pt,k3:pt,k4:pt,kernelMatrix:mt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:pt,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:pt,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:pt,overlineThickness:pt,paintOrder:null,panose1:null,path:null,pathLength:pt,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ht,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:pt,pointsAtY:pt,pointsAtZ:pt,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:mt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:mt,rev:mt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:mt,requiredFeatures:mt,requiredFonts:mt,requiredFormats:mt,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:pt,specularExponent:pt,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:pt,strikethroughThickness:pt,string:null,stroke:null,strokeDashArray:mt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:pt,strokeOpacity:pt,strokeWidth:null,style:null,surfaceScale:pt,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:mt,tabIndex:pt,tableValues:null,target:null,targetX:pt,targetY:pt,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:mt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:pt,underlineThickness:pt,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:pt,values:null,vAlphabetic:pt,vMathematical:pt,vectorEffect:null,vHanging:pt,vIdeographic:pt,version:null,vertAdvY:pt,vertOriginX:pt,vertOriginY:pt,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:pt,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:At}),Nt=vt({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),It=vt({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:St}),wt=vt({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),xt={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Ot=/[A-Z]/g,Dt=/-[a-z]/g,Lt=/^data[-\w.:]+$/i;function Rt(e,t){const n=ot(t);let r=t,a=st;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&Lt.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(Dt,Mt);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!Dt.test(e)){let n=e.replace(Ot,Pt);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}a=yt}return new a(r,t)}function Pt(e){return"-"+e.toLowerCase()}function Mt(e){return e.charAt(1).toUpperCase()}const Ft=it([kt,_t,Nt,It,wt],"html"),Bt=it([kt,Ct,Nt,It,wt],"svg");function Ut(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Ht(e){return e.join(" ").trim()}var jt,zt,Gt,Yt={};function Vt(){if(Gt)return Yt;Gt=1;var e=Yt&&Yt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Yt,"__esModule",{value:!0}),Yt.default=function(e,n){let r=null;if(!e||"string"!=typeof e)return r;const a=(0,t.default)(e),i="function"==typeof n;return a.forEach(e=>{if("declaration"!==e.type)return;const{property:t,value:a}=e;i?n(t,a,e):a&&(r=r||{},r[t]=a)}),r};const t=e(function(){if(zt)return jt;zt=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,s=/^\s+|\s+$/g,l="";function c(e){return e?e.replace(s,l):l}return jt=function(s,u){if("string"!=typeof s)throw new TypeError("First argument must be a string");if(!s)return[];u=u||{};var d=1,p=1;function h(e){var n=e.match(t);n&&(d+=n.length);var r=e.lastIndexOf("\n");p=~r?e.length-r:p+e.length}function f(){var e={line:d,column:p};return function(t){return t.position=new m(e),T(),t}}function m(e){this.start=e,this.end={line:d,column:p},this.source=u.source}function g(e){var t=new Error(u.source+":"+d+":"+p+": "+e);if(t.reason=e,t.filename=u.source,t.line=d,t.column=p,t.source=s,!u.silent)throw t}function E(e){var t=e.exec(s);if(t){var n=t[0];return h(n),s=s.slice(n.length),t}}function T(){E(n)}function y(e){var t;for(e=e||[];t=b();)!1!==t&&e.push(t);return e}function b(){var e=f();if("/"==s.charAt(0)&&"*"==s.charAt(1)){for(var t=2;l!=s.charAt(t)&&("*"!=s.charAt(t)||"/"!=s.charAt(t+1));)++t;if(t+=2,l===s.charAt(t-1))return g("End of comment missing");var n=s.slice(2,t-2);return p+=2,h(n),s=s.slice(t),p+=2,e({type:"comment",comment:n})}}function v(){var t=f(),n=E(r);if(n){if(b(),!E(a))return g("property missing ':'");var s=E(i),u=t({type:"declaration",property:c(n[0].replace(e,l)),value:s?c(s[0].replace(e,l)):l});return E(o),u}}return m.prototype.content=s,T(),function(){var e,t=[];for(y(t);e=v();)!1!==e&&(t.push(e),y(t));return t}()}}());return Yt}var qt,Wt,Qt,Kt={};function Xt(){if(qt)return Kt;qt=1,Object.defineProperty(Kt,"__esModule",{value:!0}),Kt.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,i=function(e,t){return t.toUpperCase()},o=function(e,t){return"".concat(t,"-")};return Kt.camelCase=function(s,l){return void 0===l&&(l={}),function(t){return!t||n.test(t)||e.test(t)}(s)?s:(s=s.toLowerCase(),(s=l.reactCompat?s.replace(a,o):s.replace(r,o)).replace(t,i))},Kt}const Jt=t(function(){if(Qt)return Wt;Qt=1;var e=(Wt&&Wt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(Vt()),t=Xt();function n(n,r){var a={};return n&&"string"==typeof n?((0,e.default)(n,function(e,n){e&&n&&(a[(0,t.camelCase)(e,r)]=n)}),a):a}return n.default=n,Wt=n}()),Zt=en("end"),$t=en("start");function en(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function tn(e){const t=$t(e),n=Zt(e);if(t&&n)return{start:t,end:n}}function nn(e){return e&&"object"==typeof e?"position"in e||"type"in e?an(e.position):"start"in e||"end"in e?an(e):"line"in e||"column"in e?rn(e):"":""}function rn(e){return on(e&&e.line)+":"+on(e&&e.column)}function an(e){return rn(e&&e.start)+"-"+rn(e&&e.end)}function on(e){return e&&"number"==typeof e?e:1}class sn extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",a={},i=!1;if(t&&(a="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!a.cause&&e&&(i=!0,r=e.message,a.cause=e),!a.ruleId&&!a.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?a.ruleId=n:(a.source=n.slice(0,e),a.ruleId=n.slice(e+1))}if(!a.place&&a.ancestors&&a.ancestors){const e=a.ancestors[a.ancestors.length-1];e&&(a.place=e.position)}const o=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=o?o.line:void 0,this.name=nn(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=i&&a.cause&&"string"==typeof a.cause.stack?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}sn.prototype.file="",sn.prototype.name="",sn.prototype.reason="",sn.prototype.message="",sn.prototype.stack="",sn.prototype.column=void 0,sn.prototype.line=void 0,sn.prototype.ancestors=void 0,sn.prototype.cause=void 0,sn.prototype.fatal=void 0,sn.prototype.place=void 0,sn.prototype.ruleId=void 0,sn.prototype.source=void 0;const ln={}.hasOwnProperty,cn=new Map,un=/[A-Z]/g,dn=new Set(["table","tbody","thead","tfoot","tr"]),pn=new Set(["td","th"]),hn="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function fn(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if("function"!=typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=function(e,t){return n;function n(n,r,a,i){const o=Array.isArray(a.children),s=$t(n);return t(r,a,i,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}(n,t.jsxDEV)}else{if("function"!=typeof t.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");r=function(e,t,n){return r;function r(e,r,a,i){const o=Array.isArray(a.children)?n:t;return i?o(r,a,i):o(r,a)}}(0,t.jsx,t.jsxs)}const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?Bt:Ft,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},i=mn(a,e,void 0);return i&&"string"!=typeof i?i:a.create(e,a.Fragment,{children:i||void 0},void 0)}function mn(e,t,n){return"element"===t.type?function(e,t,n){const r=e.schema;let a=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(a=Bt,e.schema=a);e.ancestors.push(t);const i=bn(e,t.tagName,!1),o=function(e,t){const n={};let r,a;for(a in t.properties)if("children"!==a&&ln.call(t.properties,a)){const i=yn(e,a,t.properties[a]);if(i){const[a,o]=i;e.tableCellAlignToStyle&&"align"===a&&"string"==typeof o&&pn.has(t.tagName)?r=o:n[a]=o}}if(r){(n.style||(n.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=r}return n}(e,t);let s=Tn(e,t);dn.has(t.tagName)&&(s=s.filter(function(e){return"string"!=typeof e||!("object"==typeof(t=e)?"text"===t.type&&rt(t.value):rt(t));var t}));return gn(e,o,i,t),En(o,s),e.ancestors.pop(),e.schema=r,e.create(t,i,o,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}vn(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){const r=e.schema;let a=r;"svg"===t.name&&"html"===r.space&&(a=Bt,e.schema=a);e.ancestors.push(t);const i=null===t.name?e.Fragment:bn(e,t.name,!0),o=function(e,t){const n={};for(const r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){const t=r.data.estree.body[0];Qe(t.type);const a=t.expression;Qe(a.type);const i=a.properties[0];Qe(i.type),Object.assign(n,e.evaluater.evaluateExpression(i.argument))}else vn(e,t.position);else{const a=r.name;let i;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){const t=r.value.data.estree.body[0];Qe(t.type),i=e.evaluater.evaluateExpression(t.expression)}else vn(e,t.position);else i=null===r.value||r.value;n[a]=i}return n}(e,t),s=Tn(e,t);return gn(e,o,i,t),En(o,s),e.ancestors.pop(),e.schema=r,e.create(t,i,o,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);vn(e,t.position)}(e,t):"root"===t.type?function(e,t,n){const r={};return En(r,Tn(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function gn(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function En(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Tn(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:cn;for(;++r<t.children.length;){const i=t.children[r];let o;if(e.passKeys){const e="element"===i.type?i.tagName:"mdxJsxFlowElement"===i.type||"mdxJsxTextElement"===i.type?i.name:void 0;if(e){const t=a.get(e)||0;o=e+"-"+t,a.set(e,t+1)}}const s=mn(e,i,o);void 0!==s&&n.push(s)}return n}function yn(e,t,n){const r=Rt(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Je(n):Ht(n)),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return Jt(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const t=n,r=new sn("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:t,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=hn+"#cannot-parse-style-attribute",r}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){const t={};let n;for(n in e)ln.call(e,n)&&(t[kn(n)]=e[n]);return t}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?xt[r.property]||r.property:r.attribute,n]}}function bn(e,t,n){let r;if(n)if(t.includes(".")){const e=t.split(".");let n,a=-1;for(;++a<e.length;){const t=tt(e[a])?{type:"Identifier",name:e[a]}:{type:"Literal",value:e[a]};n=n?{type:"MemberExpression",object:n,property:t,computed:Boolean(a&&"Literal"===t.type),optional:!1}:t}r=n}else r=tt(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){const t=r.value;return ln.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);vn(e)}function vn(e,t){const n=new sn("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=hn+"#cannot-handle-mdx-estrees-without-createevaluater",n}function kn(e){let t=e.replace(un,An);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function An(e){return"-"+e.toLowerCase()}const Sn={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},_n={};function Cn(e,t){return Nn(e,"boolean"!=typeof _n.includeImageAlt||_n.includeImageAlt,"boolean"!=typeof _n.includeHtml||_n.includeHtml)}function Nn(e,t,n){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return In(e.children,t,n)}return Array.isArray(e)?In(e,t,n):""}function In(e,t,n){const r=[];let a=-1;for(;++a<e.length;)r[a]=Nn(e[a],t,n);return r.join("")}const wn=document.createElement("i");function xn(e){const t="&"+e+";";wn.innerHTML=t;const n=wn.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&(n!==t&&n)}function On(e,t,n,r){const a=e.length;let i,o=0;if(t=t<0?-t>a?0:a+t:t>a?a:t,n=n>0?n:0,r.length<1e4)i=Array.from(r),i.unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);o<r.length;)i=r.slice(o,o+1e4),i.unshift(t,0),e.splice(...i),o+=1e4,t+=1e4}function Dn(e,t){return e.length>0?(On(e,e.length,0,t),e):t}const Ln={}.hasOwnProperty;function Rn(e){const t={};let n=-1;for(;++n<e.length;)Pn(t,e[n]);return t}function Pn(e,t){let n;for(n in t){const r=(Ln.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let i;if(a)for(i in a){Ln.call(r,i)||(r[i]=[]);const e=a[i];Mn(r[i],Array.isArray(e)?e:e?[e]:[])}}}function Mn(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);On(e,0,0,r)}function Fn(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||65534==(65535&n)||n>1114111?"�":String.fromCodePoint(n)}function Bn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Un=Jn(/[A-Za-z]/),Hn=Jn(/[\dA-Za-z]/),jn=Jn(/[#-'*+\--9=?A-Z^-~]/);function zn(e){return null!==e&&(e<32||127===e)}const Gn=Jn(/\d/),Yn=Jn(/[\dA-Fa-f]/),Vn=Jn(/[!-/:-@[-`{-~]/);function qn(e){return null!==e&&e<-2}function Wn(e){return null!==e&&(e<0||32===e)}function Qn(e){return-2===e||-1===e||32===e}const Kn=Jn(new RegExp("\\p{P}|\\p{S}","u")),Xn=Jn(/\s/);function Jn(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function Zn(e){const t=[];let n=-1,r=0,a=0;for(;++n<e.length;){const i=e.charCodeAt(n);let o="";if(37===i&&Hn(e.charCodeAt(n+1))&&Hn(e.charCodeAt(n+2)))a=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(o=String.fromCharCode(i));else if(i>55295&&i<57344){const t=e.charCodeAt(n+1);i<56320&&t>56319&&t<57344?(o=String.fromCharCode(i,t),a=1):o="�"}else o=String.fromCharCode(i);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+a+1,o=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function $n(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let i=0;return function(r){if(Qn(r))return e.enter(n),o(r);return t(r)};function o(r){return Qn(r)&&i++<a?(e.consume(r),o):(e.exit(n),t(r))}}const er={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,function(n){if(null===n)return void e.consume(n);return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),$n(e,t,"linePrefix")},function(t){return e.enter("paragraph"),r(t)});let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,a(t)}function a(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):qn(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),a)}}};const tr={tokenize:function(e){const t=this,n=[];let r,a,i,o=0;return s;function s(r){if(o<n.length){const a=n[o];return t.containerState=a[1],e.attempt(a[0].continuation,l,c)(r)}return c(r)}function l(e){if(o++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&T();const n=t.events.length;let a,i=n;for(;i--;)if("exit"===t.events[i][0]&&"chunkFlow"===t.events[i][1].type){a=t.events[i][1].end;break}E(o);let s=n;for(;s<t.events.length;)t.events[s][1].end={...a},s++;return On(t.events,i+1,0,t.events.slice(n)),t.events.length=s,c(e)}return s(e)}function c(a){if(o===n.length){if(!r)return p(a);if(r.currentConstruct&&r.currentConstruct.concrete)return f(a);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(nr,u,d)(a)}function u(e){return r&&T(),E(o),p(e)}function d(e){return t.parser.lazy[t.now().line]=o!==n.length,i=t.now().offset,f(e)}function p(n){return t.containerState={},e.attempt(nr,h,f)(n)}function h(e){return o++,n.push([t.currentConstruct,t.containerState]),p(e)}function f(n){return null===n?(r&&T(),E(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:a}),m(n))}function m(n){return null===n?(g(e.exit("chunkFlow"),!0),E(0),void e.consume(n)):qn(n)?(e.consume(n),g(e.exit("chunkFlow")),o=0,t.interrupt=void 0,s):(e.consume(n),m)}function g(e,n){const s=t.sliceStream(e);if(n&&s.push(null),e.previous=a,a&&(a.next=e),a=e,r.defineSkip(e.start),r.write(s),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<i&&(!r.events[e][1].end||r.events[e][1].end.offset>i))return;const n=t.events.length;let a,s,l=n;for(;l--;)if("exit"===t.events[l][0]&&"chunkFlow"===t.events[l][1].type){if(a){s=t.events[l][1].end;break}a=!0}for(E(o),e=n;e<t.events.length;)t.events[e][1].end={...s},e++;On(t.events,l+1,0,t.events.slice(n)),t.events.length=e}}function E(r){let a=n.length;for(;a-- >r;){const r=n[a];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function T(){r.write([null]),a=void 0,r=void 0,t.containerState._closeFlow=void 0}}},nr={tokenize:function(e,t,n){return $n(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function rr(e){return null===e||Wn(e)||Xn(e)?1:Kn(e)?2:void 0}function ar(e,t,n){const r=[];let a=-1;for(;++a<e.length;){const i=e[a].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const ir={name:"attention",resolveAll:function(e,t){let n,r,a,i,o,s,l,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close)for(n=u;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;s=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const d={...e[n][1].end},p={...e[u][1].start};or(d,-s),or(p,s),i={type:s>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},o={type:s>1?"strongSequence":"emphasisSequence",start:{...e[u][1].start},end:p},a={type:s>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[u][1].start}},r={type:s>1?"strong":"emphasis",start:{...i.start},end:{...o.end}},e[n][1].end={...i.start},e[u][1].start={...o.end},l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=Dn(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=Dn(l,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",a,t]]),l=Dn(l,ar(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),l=Dn(l,[["exit",a,t],["enter",o,t],["exit",o,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,l=Dn(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,On(e,n-1,u-n+3,l),u=n+l.length-c-2;break}u=-1;for(;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e},tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,a=rr(r);let i;return function(t){return i=t,e.enter("attentionSequence"),o(t)};function o(s){if(s===i)return e.consume(s),o;const l=e.exit("attentionSequence"),c=rr(s),u=!c||2===c&&a||n.includes(s),d=!a||2===a&&c||n.includes(r);return l._open=Boolean(42===i?u:u&&(a||!d)),l._close=Boolean(42===i?d:d&&(c||!u)),t(s)}}};function or(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const sr={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a};function a(t){return Un(t)?(e.consume(t),i):64===t?n(t):l(t)}function i(e){return 43===e||45===e||46===e||Hn(e)?(r=1,o(e)):l(e)}function o(t){return 58===t?(e.consume(t),r=0,s):(43===t||45===t||46===t||Hn(t))&&r++<32?(e.consume(t),o):(r=0,l(t))}function s(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||zn(r)?n(r):(e.consume(r),s)}function l(t){return 64===t?(e.consume(t),c):jn(t)?(e.consume(t),l):n(t)}function c(e){return Hn(e)?u(e):n(e)}function u(n){return 46===n?(e.consume(n),r=0,c):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):d(n)}function d(t){if((45===t||Hn(t))&&r++<63){const n=45===t?d:u;return e.consume(t),n}return n(t)}}};const lr={partial:!0,tokenize:function(e,t,n){return function(t){return Qn(t)?$n(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||qn(e)?t(e):n(e)}}};const cr={continuation:{tokenize:function(e,t,n){const r=this;return function(t){if(Qn(t))return $n(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return a(t)};function a(r){return e.attempt(cr,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),a}return n(t)};function a(n){return Qn(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};const ur={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return Vn(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}};const dr={name:"characterReference",tokenize:function(e,t,n){const r=this;let a,i,o=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),a=31,i=Hn,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,i=Yn,c):(e.enter("characterReferenceValue"),a=7,i=Gn,c(t))}function c(s){if(59===s&&o){const a=e.exit("characterReferenceValue");return i!==Hn||xn(r.sliceSerialize(a))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return i(s)&&o++<a?(e.consume(s),c):n(s)}}};const pr={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(null===t)return n(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a};function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},hr={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){const r=this,a={partial:!0,tokenize:function(e,t,n){let a=0;return o;function o(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l}function l(t){return e.enter("codeFencedFence"),Qn(t)?$n(e,c,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):c(t)}function c(t){return t===i?(e.enter("codeFencedFenceSequence"),u(t)):n(t)}function u(t){return t===i?(a++,e.consume(t),u):a>=s?(e.exit("codeFencedFenceSequence"),Qn(t)?$n(e,d,"whitespace")(t):d(t)):n(t)}function d(r){return null===r||qn(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}};let i,o=0,s=0;return function(t){return function(t){const n=r.events[r.events.length-1];return o=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,i=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(t)}(t)};function l(t){return t===i?(s++,e.consume(t),l):s<3?n(t):(e.exit("codeFencedFenceSequence"),Qn(t)?$n(e,c,"whitespace")(t):c(t))}function c(n){return null===n||qn(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(pr,h,T)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||qn(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):Qn(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),$n(e,d,"whitespace")(t)):96===t&&t===i?n(t):(e.consume(t),u)}function d(t){return null===t||qn(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(t))}function p(t){return null===t||qn(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===i?n(t):(e.consume(t),p)}function h(t){return e.attempt(a,T,f)(t)}function f(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return o>0&&Qn(t)?$n(e,g,"linePrefix",o+1)(t):g(t)}function g(t){return null===t||qn(t)?e.check(pr,h,T)(t):(e.enter("codeFlowValue"),E(t))}function E(t){return null===t||qn(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),E)}function T(n){return e.exit("codeFenced"),t(n)}}};const fr={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),$n(e,a,"linePrefix",5)(t)};function a(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?i(e):n(e)}function i(t){return null===t?s(t):qn(t)?e.attempt(mr,i,s)(t):(e.enter("codeFlowValue"),o(t))}function o(t){return null===t||qn(t)?(e.exit("codeFlowValue"),i(t)):(e.consume(t),o)}function s(n){return e.exit("codeIndented"),t(n)}}},mr={partial:!0,tokenize:function(e,t,n){const r=this;return a;function a(t){return r.parser.lazy[r.now().line]?n(t):qn(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a):$n(e,i,"linePrefix",5)(t)}function i(e){const i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(e):qn(e)?a(e):n(e)}}};const gr={name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,a=3;if(!("lineEnding"!==e[a][1].type&&"space"!==e[a][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=a;++t<r;)if("codeTextData"===e[t][1].type){e[a][1].type="codeTextPadding",e[r][1].type="codeTextPadding",a+=2,r-=2;break}t=a-1,r++;for(;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,a,i=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),o(t)};function o(t){return 96===t?(e.consume(t),i++,o):(e.exit("codeTextSequence"),s(t))}function s(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),s):96===t?(a=e.enter("codeTextSequence"),r=0,c(t)):qn(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s):(e.enter("codeTextData"),l(t))}function l(t){return null===t||32===t||96===t||qn(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),l)}function c(n){return 96===n?(e.consume(n),r++,c):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(a.type="codeTextData",l(n))}}};class Er{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){const n=null==t?Number.POSITIVE_INFINITY:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){const r=t||0;this.setCursor(Math.trunc(e));const a=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&Tr(this.left,n),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),Tr(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),Tr(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e<this.left.length){const t=this.left.splice(e,Number.POSITIVE_INFINITY);Tr(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);Tr(this.left,t.reverse())}}}function Tr(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function yr(e){const t={};let n,r,a,i,o,s,l,c=-1;const u=new Er(e);for(;++c<u.length;){for(;c in t;)c=t[c];if(n=u.get(c),c&&"chunkFlow"===n[1].type&&"listItemPrefix"===u.get(c-1)[1].type&&(s=n[1]._tokenizer.events,a=0,a<s.length&&"lineEndingBlank"===s[a][1].type&&(a+=2),a<s.length&&"content"===s[a][1].type))for(;++a<s.length&&"content"!==s[a][1].type;)"chunkText"===s[a][1].type&&(s[a][1]._isInFirstContentOfListItem=!0,a++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,br(u,c)),c=t[c],l=!0);else if(n[1]._container){for(a=c,r=void 0;a--;)if(i=u.get(a),"lineEnding"===i[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(r&&(u.get(r)[1].type="lineEndingBlank"),i[1].type="lineEnding",r=a);else if("linePrefix"!==i[1].type&&"listItemIndent"!==i[1].type)break;r&&(n[1].end={...u.get(r)[1].start},o=u.slice(r,c),o.unshift(n),u.splice(r,c-r+1,o))}}return On(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!l}function br(e,t){const n=e.get(t)[1],r=e.get(t)[2];let a=t-1;const i=[];let o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const s=o.events,l=[],c={};let u,d,p=-1,h=n,f=0,m=0;const g=[m];for(;h;){for(;e.get(++a)[1]!==h;);i.push(a),h._tokenizer||(u=r.sliceStream(h),h.next||u.push(null),d&&o.defineSkip(h.start),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=h,h=h.next}for(h=n;++p<s.length;)"exit"===s[p][0]&&"enter"===s[p-1][0]&&s[p][1].type===s[p-1][1].type&&s[p][1].start.line!==s[p][1].end.line&&(m=p+1,g.push(m),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(o.events=[],h?(h._tokenizer=void 0,h.previous=void 0):g.pop(),p=g.length;p--;){const t=s.slice(g[p],g[p+1]),n=i.pop();l.push([n,n+t.length-1]),e.splice(n,2,t)}for(l.reverse(),p=-1;++p<l.length;)c[f+l[p][0]]=f+l[p][1],f+=l[p][1]-l[p][0]-1;return c}const vr={resolve:function(e){return yr(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?a(t):qn(t)?e.check(kr,i,a)(t):(e.consume(t),r)}function a(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function i(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},kr={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),$n(e,a,"linePrefix")};function a(a){if(null===a||qn(a))return n(a);const i=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(a):e.interrupt(r.parser.constructs.flow,n,t)(a)}}};function Ar(e,t,n,r,a,i,o,s,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return function(t){if(60===t)return e.enter(r),e.enter(a),e.enter(i),e.consume(t),e.exit(i),d;if(null===t||32===t||41===t||zn(t))return n(t);return e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),f(t)};function d(n){return 62===n?(e.enter(i),e.consume(n),e.exit(i),e.exit(a),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(s),d(t)):null===t||60===t||qn(t)?n(t):(e.consume(t),92===t?h:p)}function h(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function f(a){return u||null!==a&&41!==a&&!Wn(a)?u<c&&40===a?(e.consume(a),u++,f):41===a?(e.consume(a),u--,f):null===a||32===a||40===a||zn(a)?n(a):(e.consume(a),92===a?m:f):(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(a))}function m(t){return 40===t||41===t||92===t?(e.consume(t),f):f(t)}}function Sr(e,t,n,r,a,i){const o=this;let s,l=0;return function(t){return e.enter(r),e.enter(a),e.consume(t),e.exit(a),e.enter(i),c};function c(d){return l>999||null===d||91===d||93===d&&!s||94===d&&!l&&"_hiddenFootnoteSupport"in o.parser.constructs?n(d):93===d?(e.exit(i),e.enter(a),e.consume(d),e.exit(a),e.exit(r),t):qn(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(t){return null===t||91===t||93===t||qn(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),s||(s=!Qn(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function _r(e,t,n,r,a,i){let o;return function(t){if(34===t||39===t||40===t)return e.enter(r),e.enter(a),e.consume(t),e.exit(a),o=40===t?41:t,s;return n(t)};function s(n){return n===o?(e.enter(a),e.consume(n),e.exit(a),e.exit(r),t):(e.enter(i),l(n))}function l(t){return t===o?(e.exit(i),s(o)):null===t?n(t):qn(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),$n(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===o||null===t||qn(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return t===o||92===t?(e.consume(t),c):c(t)}}function Cr(e,t){let n;return function r(a){if(qn(a))return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r;if(Qn(a))return $n(e,r,n?"linePrefix":"lineSuffix")(a);return t(a)}}const Nr={name:"definition",tokenize:function(e,t,n){const r=this;let a;return function(t){return e.enter("definition"),function(t){return Sr.call(r,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function i(t){return a=Bn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o):n(t)}function o(t){return Wn(t)?Cr(e,s)(t):s(t)}function s(t){return Ar(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(Ir,c,c)(t)}function c(t){return Qn(t)?$n(e,u,"whitespace")(t):u(t)}function u(i){return null===i||qn(i)?(e.exit("definition"),r.parser.defined.push(a),t(i)):n(i)}}},Ir={partial:!0,tokenize:function(e,t,n){return function(t){return Wn(t)?Cr(e,r)(t):n(t)};function r(t){return _r(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function a(t){return Qn(t)?$n(e,i,"whitespace")(t):i(t)}function i(e){return null===e||qn(e)?t(e):n(e)}}};const wr={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return qn(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}};const xr={name:"headingAtx",resolve:function(e,t){let n,r,a=e.length-2,i=3;"whitespace"===e[i][1].type&&(i+=2);a-2>i&&"whitespace"===e[a][1].type&&(a-=2);"atxHeadingSequence"===e[a][1].type&&(i===a-1||a-4>i&&"whitespace"===e[a-2][1].type)&&(a-=i+1===a?2:4);a>i&&(n={type:"atxHeadingText",start:e[i][1].start,end:e[a][1].end},r={type:"chunkText",start:e[i][1].start,end:e[a][1].end,contentType:"text"},On(e,i,a-i+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]));return e},tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),a(t)}(t)};function a(t){return 35===t&&r++<6?(e.consume(t),a):null===t||Wn(t)?(e.exit("atxHeadingSequence"),i(t)):n(t)}function i(n){return 35===n?(e.enter("atxHeadingSequence"),o(n)):null===n||qn(n)?(e.exit("atxHeading"),t(n)):Qn(n)?$n(e,i,"whitespace")(n):(e.enter("atxHeadingText"),s(n))}function o(t){return 35===t?(e.consume(t),o):(e.exit("atxHeadingSequence"),i(t))}function s(t){return null===t||35===t||Wn(t)?(e.exit("atxHeadingText"),i(t)):(e.consume(t),s)}}};const Or=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Dr=["pre","script","style","textarea"],Lr={concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},tokenize:function(e,t,n){const r=this;let a,i,o,s,l;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(s){return 33===s?(e.consume(s),u):47===s?(e.consume(s),i=!0,h):63===s?(e.consume(s),a=3,r.interrupt?t:R):Un(s)?(e.consume(s),o=String.fromCharCode(s),f):n(s)}function u(i){return 45===i?(e.consume(i),a=2,d):91===i?(e.consume(i),a=5,s=0,p):Un(i)?(e.consume(i),a=4,r.interrupt?t:R):n(i)}function d(a){return 45===a?(e.consume(a),r.interrupt?t:R):n(a)}function p(a){const i="CDATA[";return a===i.charCodeAt(s++)?(e.consume(a),6===s?r.interrupt?t:C:p):n(a)}function h(t){return Un(t)?(e.consume(t),o=String.fromCharCode(t),f):n(t)}function f(s){if(null===s||47===s||62===s||Wn(s)){const l=47===s,c=o.toLowerCase();return l||i||!Dr.includes(c)?Or.includes(o.toLowerCase())?(a=6,l?(e.consume(s),m):r.interrupt?t(s):C(s)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):i?g(s):E(s)):(a=1,r.interrupt?t(s):C(s))}return 45===s||Hn(s)?(e.consume(s),o+=String.fromCharCode(s),f):n(s)}function m(a){return 62===a?(e.consume(a),r.interrupt?t:C):n(a)}function g(t){return Qn(t)?(e.consume(t),g):S(t)}function E(t){return 47===t?(e.consume(t),S):58===t||95===t||Un(t)?(e.consume(t),T):Qn(t)?(e.consume(t),E):S(t)}function T(t){return 45===t||46===t||58===t||95===t||Hn(t)?(e.consume(t),T):y(t)}function y(t){return 61===t?(e.consume(t),b):Qn(t)?(e.consume(t),y):E(t)}function b(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,v):Qn(t)?(e.consume(t),b):k(t)}function v(t){return t===l?(e.consume(t),l=null,A):null===t||qn(t)?n(t):(e.consume(t),v)}function k(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||Wn(t)?y(t):(e.consume(t),k)}function A(e){return 47===e||62===e||Qn(e)?E(e):n(e)}function S(t){return 62===t?(e.consume(t),_):n(t)}function _(t){return null===t||qn(t)?C(t):Qn(t)?(e.consume(t),_):n(t)}function C(t){return 45===t&&2===a?(e.consume(t),x):60===t&&1===a?(e.consume(t),O):62===t&&4===a?(e.consume(t),P):63===t&&3===a?(e.consume(t),R):93===t&&5===a?(e.consume(t),L):!qn(t)||6!==a&&7!==a?null===t||qn(t)?(e.exit("htmlFlowData"),N(t)):(e.consume(t),C):(e.exit("htmlFlowData"),e.check(Rr,M,N)(t))}function N(t){return e.check(Pr,I,M)(t)}function I(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),w}function w(t){return null===t||qn(t)?N(t):(e.enter("htmlFlowData"),C(t))}function x(t){return 45===t?(e.consume(t),R):C(t)}function O(t){return 47===t?(e.consume(t),o="",D):C(t)}function D(t){if(62===t){const n=o.toLowerCase();return Dr.includes(n)?(e.consume(t),P):C(t)}return Un(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),D):C(t)}function L(t){return 93===t?(e.consume(t),R):C(t)}function R(t){return 62===t?(e.consume(t),P):45===t&&2===a?(e.consume(t),R):C(t)}function P(t){return null===t||qn(t)?(e.exit("htmlFlowData"),M(t)):(e.consume(t),P)}function M(n){return e.exit("htmlFlow"),t(n)}}},Rr={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(lr,t,n)}}},Pr={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(qn(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a;return n(t)};function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}};const Mr={name:"htmlText",tokenize:function(e,t,n){const r=this;let a,i,o;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),b):63===t?(e.consume(t),T):Un(t)?(e.consume(t),A):n(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),i=0,h):Un(t)?(e.consume(t),E):n(t)}function c(t){return 45===t?(e.consume(t),p):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),d):qn(t)?(o=u,D(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),p):u(t)}function p(e){return 62===e?O(e):45===e?d(e):u(e)}function h(t){const r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),6===i?f:h):n(t)}function f(t){return null===t?n(t):93===t?(e.consume(t),m):qn(t)?(o=f,D(t)):(e.consume(t),f)}function m(t){return 93===t?(e.consume(t),g):f(t)}function g(t){return 62===t?O(t):93===t?(e.consume(t),g):f(t)}function E(t){return null===t||62===t?O(t):qn(t)?(o=E,D(t)):(e.consume(t),E)}function T(t){return null===t?n(t):63===t?(e.consume(t),y):qn(t)?(o=T,D(t)):(e.consume(t),T)}function y(e){return 62===e?O(e):T(e)}function b(t){return Un(t)?(e.consume(t),v):n(t)}function v(t){return 45===t||Hn(t)?(e.consume(t),v):k(t)}function k(t){return qn(t)?(o=k,D(t)):Qn(t)?(e.consume(t),k):O(t)}function A(t){return 45===t||Hn(t)?(e.consume(t),A):47===t||62===t||Wn(t)?S(t):n(t)}function S(t){return 47===t?(e.consume(t),O):58===t||95===t||Un(t)?(e.consume(t),_):qn(t)?(o=S,D(t)):Qn(t)?(e.consume(t),S):O(t)}function _(t){return 45===t||46===t||58===t||95===t||Hn(t)?(e.consume(t),_):C(t)}function C(t){return 61===t?(e.consume(t),N):qn(t)?(o=C,D(t)):Qn(t)?(e.consume(t),C):S(t)}function N(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),a=t,I):qn(t)?(o=N,D(t)):Qn(t)?(e.consume(t),N):(e.consume(t),w)}function I(t){return t===a?(e.consume(t),a=void 0,x):null===t?n(t):qn(t)?(o=I,D(t)):(e.consume(t),I)}function w(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||Wn(t)?S(t):(e.consume(t),w)}function x(e){return 47===e||62===e||Wn(e)?S(e):n(e)}function O(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function D(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),L}function L(t){return Qn(t)?$n(e,R,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):R(t)}function R(t){return e.enter("htmlTextData"),o(t)}}};const Fr={name:"labelEnd",resolveAll:function(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){const e="labelImage"===r.type?4:2;r.type="data",t+=e}}e.length!==n.length&&On(e,0,e.length,n);return e},resolveTo:function(e,t){let n,r,a,i,o=e.length,s=0;for(;o--;)if(n=e[o][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[o][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(a){if("enter"===e[o][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=o,"labelLink"!==n.type)){s=2;break}}else"labelEnd"===n.type&&(a=o);const l={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[r][1].start},end:{...e[a][1].end}},u={type:"labelText",start:{...e[r+s+2][1].end},end:{...e[a-2][1].start}};return i=[["enter",l,t],["enter",c,t]],i=Dn(i,e.slice(r+1,r+s+3)),i=Dn(i,[["enter",u,t]]),i=Dn(i,ar(t.parser.constructs.insideSpan.null,e.slice(r+s+4,a-3),t)),i=Dn(i,[["exit",u,t],e[a-2],e[a-1],["exit",c,t]]),i=Dn(i,e.slice(a+1)),i=Dn(i,[["exit",l,t]]),On(e,r,e.length,i),e},tokenize:function(e,t,n){const r=this;let a,i,o=r.events.length;for(;o--;)if(("labelImage"===r.events[o][1].type||"labelLink"===r.events[o][1].type)&&!r.events[o][1]._balanced){a=r.events[o][1];break}return function(t){if(!a)return n(t);if(a._inactive)return u(t);return i=r.parser.defined.includes(Bn(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s};function s(t){return 40===t?e.attempt(Br,c,i?c:u)(t):91===t?e.attempt(Ur,c,i?l:u)(t):i?c(t):u(t)}function l(t){return e.attempt(Hr,c,u)(t)}function c(e){return t(e)}function u(e){return a._balanced=!0,n(e)}}},Br={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return Wn(t)?Cr(e,a)(t):a(t)}function a(t){return 41===t?c(t):Ar(e,i,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function i(t){return Wn(t)?Cr(e,s)(t):c(t)}function o(e){return n(e)}function s(t){return 34===t||39===t||40===t?_r(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function l(t){return Wn(t)?Cr(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},Ur={tokenize:function(e,t,n){const r=this;return function(t){return Sr.call(r,e,a,i,"reference","referenceMarker","referenceString")(t)};function a(e){return r.parser.defined.includes(Bn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function i(e){return n(e)}}},Hr={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}};const jr={name:"labelStartImage",resolveAll:Fr.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),a};function a(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),i):n(t)}function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};const zr={name:"labelStartLink",resolveAll:Fr.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),a};function a(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};const Gr={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),$n(e,t,"linePrefix")}}};const Yr={name:"thematicBreak",tokenize:function(e,t,n){let r,a=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,i(e)}(t)};function i(i){return i===r?(e.enter("thematicBreakSequence"),o(i)):a>=3&&(null===i||qn(i))?(e.exit("thematicBreak"),t(i)):n(i)}function o(t){return t===r?(e.consume(t),a++,o):(e.exit("thematicBreakSequence"),Qn(t)?$n(e,i,"whitespace")(t):i(t))}}};const Vr={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(lr,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,$n(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){if(r.containerState.furtherBlankLines||!Qn(n))return r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(n);return r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Wr,t,a)(n)});function a(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,$n(e,e.attempt(Vr,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){const r=this,a=r.events[r.events.length-1];let i=a&&"linePrefix"===a[1].type?a[2].sliceSerialize(a[1],!0).length:0,o=0;return function(t){const a=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===a?!r.containerState.marker||t===r.containerState.marker:Gn(t)){if(r.containerState.type||(r.containerState.type=a,e.enter(a,{_container:!0})),"listUnordered"===a)return e.enter("listItemPrefix"),42===t||45===t?e.check(Yr,n,l)(t):l(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(t)}return n(t)};function s(t){return Gn(t)&&++o<10?(e.consume(t),s):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),l(t)):n(t)}function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(lr,r.interrupt?n:c,e.attempt(qr,d,u))}function c(e){return r.containerState.initialBlankLine=!0,i++,d(e)}function u(t){return Qn(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):n(t)}function d(n){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},qr={partial:!0,tokenize:function(e,t,n){const r=this;return $n(e,function(e){const a=r.events[r.events.length-1];return!Qn(e)&&a&&"listItemPrefixWhitespace"===a[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},Wr={partial:!0,tokenize:function(e,t,n){const r=this;return $n(e,function(e){const a=r.events[r.events.length-1];return a&&"listItemIndent"===a[1].type&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}};const Qr={name:"setextUnderline",resolveTo:function(e,t){let n,r,a,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){n=i;break}"paragraph"===e[i][1].type&&(r=i)}else"content"===e[i][1].type&&e.splice(i,1),a||"definition"!==e[i][1].type||(a=i);const o={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};e[r][1].type="setextHeadingText",a?(e.splice(r,0,["enter",o,t]),e.splice(a+1,0,["exit",e[n][1],t]),e[n][1].end={...e[a][1].end}):e[n][1]=o;return e.push(["exit",o,t]),e},tokenize:function(e,t,n){const r=this;let a;return function(t){let o,s=r.events.length;for(;s--;)if("lineEnding"!==r.events[s][1].type&&"linePrefix"!==r.events[s][1].type&&"content"!==r.events[s][1].type){o="paragraph"===r.events[s][1].type;break}if(!r.parser.lazy[r.now().line]&&(r.interrupt||o))return e.enter("setextHeadingLine"),a=t,function(t){return e.enter("setextHeadingLineSequence"),i(t)}(t);return n(t)};function i(t){return t===a?(e.consume(t),i):(e.exit("setextHeadingLineSequence"),Qn(t)?$n(e,o,"lineSuffix")(t):o(t))}function o(r){return null===r||qn(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}};const Kr={tokenize:function(e){const t=this,n=e.attempt(lr,function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n},e.attempt(this.parser.constructs.flowInitial,r,$n(e,e.attempt(this.parser.constructs.flow,r,e.attempt(vr,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}};const Xr={resolveAll:ea()},Jr=$r("string"),Zr=$r("text");function $r(e){return{resolveAll:ea("text"===e?ta:void 0),tokenize:function(t){const n=this,r=this.parser.constructs[e],a=t.attempt(r,i,o);return i;function i(e){return l(e)?a(e):o(e)}function o(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return l(e)?(t.exit("data"),a(e)):(t.consume(e),s)}function l(e){if(null===e)return!0;const t=r[e];let a=-1;if(t)for(;++a<t.length;){const e=t[a];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function ea(e){return function(t,n){let r,a=-1;for(;++a<=t.length;)void 0===r?t[a]&&"data"===t[a][1].type&&(r=a,a++):t[a]&&"data"===t[a][1].type||(a!==r+2&&(t[r][1].end=t[a-1][1].end,t.splice(r+2,a-r-2),a=r+2),r=void 0);return e?e(t,n):t}}function ta(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],a=t.sliceStream(r);let i,o=a.length,s=-1,l=0;for(;o--;){const e=a[o];if("string"==typeof e){for(s=e.length;32===e.charCodeAt(s-1);)l++,s--;if(s)break;s=-1}else if(-2===e)i=!0,l++;else if(-1!==e){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){const a={type:n===e.length||i||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?s:r.start._bufferIndex+s,_index:r.start._index+o,line:r.end.line,column:r.end.column-l,offset:r.end.offset-l},end:{...r.end}};r.end={...a.start},r.start.offset===r.end.offset?Object.assign(r,a):(e.splice(n,0,["enter",a,t],["exit",a,t]),n+=2)}n++}return e}const na={42:Vr,43:Vr,45:Vr,48:Vr,49:Vr,50:Vr,51:Vr,52:Vr,53:Vr,54:Vr,55:Vr,56:Vr,57:Vr,62:cr},ra={91:Nr},aa={[-2]:fr,[-1]:fr,32:fr},ia={35:xr,42:Yr,45:[Qr,Yr],60:Lr,61:Qr,95:Yr,96:hr,126:hr},oa={38:dr,92:ur},sa={[-5]:Gr,[-4]:Gr,[-3]:Gr,33:jr,38:dr,42:ir,60:[sr,Mr],91:zr,92:[wr,ur],93:Fr,95:ir,96:gr},la={null:[ir,Xr]},ca=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:ra,disable:{null:[]},document:na,flow:ia,flowInitial:aa,insideSpan:la,string:oa,text:sa},Symbol.toStringTag,{value:"Module"}));function ua(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const a={},i=[];let o=[],s=[];const l={attempt:g(function(e,t){E(e,t.from)}),check:g(m),consume:function(e){qn(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,T()):-1!==e&&(r.column++,r.offset++);r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++));c.previous=e},enter:function(e,t){const n=t||{};return n.type=e,n.start=p(),c.events.push(["enter",n,c]),s.push(n),n},exit:function(e){const t=s.pop();return t.end=p(),c.events.push(["exit",t,c]),t},interrupt:g(m,{interrupt:!0})},c={code:null,containerState:{},defineSkip:function(e){a[e.line]=e.column,T()},events:[],now:p,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let a;for(;++n<e.length;){const i=e[n];let o;if("string"==typeof i)o=i;else switch(i){case-5:o="\r";break;case-4:o="\n";break;case-3:o="\r\n";break;case-2:o=t?" ":"\t";break;case-1:if(!t&&a)continue;o=" ";break;default:o=String.fromCharCode(i)}a=-2===i,r.push(o)}return r.join("")}(d(e),t)},sliceStream:d,write:function(e){if(o=Dn(o,e),h(),null!==o[o.length-1])return[];return E(t,0),c.events=ar(i,c.events,c),c.events}};let u=t.tokenize.call(c,l);return t.resolveAll&&i.push(t),c;function d(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,a=t.end._index,i=t.end._bufferIndex;let o;if(n===a)o=[e[n].slice(r,i)];else{if(o=e.slice(n,a),r>-1){const e=o[0];"string"==typeof e?o[0]=e.slice(r):o.shift()}i>0&&o.push(e[a].slice(0,i))}return o}(o,e)}function p(){const{_bufferIndex:e,_index:t,line:n,column:a,offset:i}=r;return{_bufferIndex:e,_index:t,line:n,column:a,offset:i}}function h(){let e;for(;r._index<o.length;){const t=o[r._index];if("string"==typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)f(t.charCodeAt(r._bufferIndex));else f(t)}}function f(e){u=u(e)}function m(e,t){t.restore()}function g(e,t){return function(n,a,i){let o,u,d,h;return Array.isArray(n)?f(n):"tokenize"in n?f([n]):function(e){return t;function t(t){const n=null!==t&&e[t],r=null!==t&&e.null;return f([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}(n);function f(e){return o=e,u=0,0===e.length?i:m(e[u])}function m(e){return function(n){h=function(){const e=p(),t=c.previous,n=c.currentConstruct,a=c.events.length,i=Array.from(s);return{from:a,restore:o};function o(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=a,s=i,T()}}(),d=e,e.partial||(c.currentConstruct=e);if(e.name&&c.parser.constructs.disable.null.includes(e.name))return E();return e.tokenize.call(t?Object.assign(Object.create(c),t):c,l,g,E)(n)}}function g(t){return e(d,h),a}function E(e){return h.restore(),++u<o.length?m(o[u]):i}}}function E(e,t){e.resolveAll&&!i.includes(e)&&i.push(e),e.resolve&&On(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function T(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}const da=/[\0\t\n\r]/g;const pa=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ha(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return Fn(n.slice(t?2:1),t?16:10)}return xn(n)||e}const fa={}.hasOwnProperty;function ma(e,t,n){return"string"!=typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(te),autolinkProtocol:_,autolinkEmail:_,atxHeading:i(J),blockQuote:i(q),characterEscape:_,characterReference:_,codeFenced:i(W),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:i(W,o),codeText:i(Q,o),codeTextData:_,data:_,codeFlowValue:_,definition:i(K),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:i(X),hardBreakEscape:i(Z),hardBreakTrailing:i(Z),htmlFlow:i($,o),htmlFlowData:_,htmlText:i($,o),htmlTextData:_,image:i(ee),label:o,link:i(te),listItem:i(re),listItemValue:p,listOrdered:i(ne,d),listUnordered:i(ne),paragraph:i(ae),reference:U,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:i(J),strong:i(ie),thematicBreak:i(se)},exit:{atxHeading:l(),atxHeadingSequence:v,autolink:l(),autolinkEmail:V,autolinkProtocol:Y,blockQuote:l(),characterEscapeValue:C,characterReferenceMarkerHexadecimal:j,characterReferenceMarkerNumeric:j,characterReferenceValue:z,characterReference:G,codeFenced:l(g),codeFencedFence:m,codeFencedFenceInfo:h,codeFencedFenceMeta:f,codeFlowValue:C,codeIndented:l(E),codeText:l(O),codeTextData:C,data:C,definition:l(),definitionDestinationString:b,definitionLabelString:T,definitionTitleString:y,emphasis:l(),hardBreakEscape:l(I),hardBreakTrailing:l(I),htmlFlow:l(w),htmlFlowData:C,htmlText:l(x),htmlTextData:C,image:l(L),label:P,labelText:R,lineEnding:N,link:l(D),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:H,resourceDestinationString:M,resourceTitleString:F,resource:B,setextHeading:l(S),setextHeadingLineSequence:A,setextHeadingText:k,strong:l(),thematicBreak:l()}};Ea(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(e){let r={type:"root",children:[]};const i={stack:[r],tokenStack:[],config:t,enter:s,exit:c,buffer:o,resume:u,data:n},l=[];let d=-1;for(;++d<e.length;)if("listOrdered"===e[d][1].type||"listUnordered"===e[d][1].type)if("enter"===e[d][0])l.push(d);else{d=a(e,l.pop(),d)}for(d=-1;++d<e.length;){const n=t[e[d][0]];fa.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},i),e[d][1])}if(i.tokenStack.length>0){const e=i.tokenStack[i.tokenStack.length-1];(e[1]||ya).call(i,void 0,e[0])}for(r.position={start:ga(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:ga(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function a(e,t,n){let r,a,i,o,s=t-1,l=-1,c=!1;for(;++s<=n;){const t=e[s];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,o=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||o||l||i||(i=s),o=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:o=void 0}if(!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let o=s;for(a=void 0;o--;){const t=e[o];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;a&&(e[a][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",a=o}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}i&&(!a||i<a)&&(r._spread=!0),r.end=Object.assign({},a?e[a][1].start:t[1].end),e.splice(a||s,0,["exit",r,t[2]]),s++,n++}if("listItemPrefix"===t[1].type){const a={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=a,e.splice(s,0,["enter",a,t[2]]),s++,n++,i=void 0,o=!0}}}return e[t][1]._spread=c,n}function i(e,t){return n;function n(n){s.call(this,e(n),n),t&&t.call(this,n)}}function o(){this.stack.push({type:"fragment",children:[]})}function s(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:ga(t.start),end:void 0}}function l(e){return t;function t(t){e&&e.call(this,t),c.call(this,t)}}function c(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+nn({start:e.start,end:e.end})+"): it’s not open");if(r[0].type!==e.type)if(t)t.call(this,e,r[0]);else{(r[1]||ya).call(this,e,r[0])}n.position.end=ga(e.end)}function u(){return Cn(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function p(e){if(this.data.expectingFirstListItemValue){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function h(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function f(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function m(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function E(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function T(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Bn(this.sliceSerialize(e)).toLowerCase()}function y(){const e=this.resume();this.stack[this.stack.length-1].title=e}function b(){const e=this.resume();this.stack[this.stack.length-1].url=e}function v(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}}function k(){this.data.setextHeadingSlurpLineEnding=!0}function A(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2}function S(){this.data.setextHeadingSlurpLineEnding=void 0}function _(e){const t=this.stack[this.stack.length-1].children;let n=t[t.length-1];n&&"text"===n.type||(n=oe(),n.position={start:ga(e.start),end:void 0},t.push(n)),this.stack.push(n)}function C(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=ga(e.end)}function N(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak){return n.children[n.children.length-1].position.end=ga(e.end),void(this.data.atHardBreak=void 0)}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(_.call(this,e),C.call(this,e))}function I(){this.data.atHardBreak=!0}function w(){const e=this.resume();this.stack[this.stack.length-1].value=e}function x(){const e=this.resume();this.stack[this.stack.length-1].value=e}function O(){const e=this.resume();this.stack[this.stack.length-1].value=e}function D(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function L(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function R(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=function(e){return e.replace(pa,ha)}(t),n.identifier=Bn(t).toLowerCase()}function P(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){const t=e.children;n.children=t}else n.alt=t}function M(){const e=this.resume();this.stack[this.stack.length-1].url=e}function F(){const e=this.resume();this.stack[this.stack.length-1].title=e}function B(){this.data.inReference=void 0}function U(){this.data.referenceType="collapsed"}function H(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Bn(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"}function j(e){this.data.characterReferenceType=e.type}function z(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;if(n)r=Fn(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0;else{r=xn(t)}this.stack[this.stack.length-1].value+=r}function G(e){this.stack.pop().position.end=ga(e.end)}function Y(e){C.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function V(e){C.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function q(){return{type:"blockquote",children:[]}}function W(){return{type:"code",lang:null,meta:null,value:""}}function Q(){return{type:"inlineCode",value:""}}function K(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function X(){return{type:"emphasis",children:[]}}function J(){return{type:"heading",depth:0,children:[]}}function Z(){return{type:"break"}}function $(){return{type:"html",value:""}}function ee(){return{type:"image",title:null,url:"",alt:null}}function te(){return{type:"link",title:null,url:"",children:[]}}function ne(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function re(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function ae(){return{type:"paragraph",children:[]}}function ie(){return{type:"strong",children:[]}}function oe(){return{type:"text",value:""}}function se(){return{type:"thematicBreak"}}}(n)(function(e){for(;!yr(e););return e}(function(e){const t={constructs:Rn([ca,...(e||{}).extensions||[]]),content:n(er),defined:[],document:n(tr),flow:n(Kr),lazy:{},string:n(Jr),text:n(Zr)};return t;function n(e){return function(n){return ua(t,e,n)}}}(n).document().write(function(){let e,t=1,n="",r=!0;return function(a,i,o){const s=[];let l,c,u,d,p;for(a=n+("string"==typeof a?a.toString():new TextDecoder(i||void 0).decode(a)),u=0,n="",r&&(65279===a.charCodeAt(0)&&u++,r=void 0);u<a.length;){if(da.lastIndex=u,l=da.exec(a),d=l&&void 0!==l.index?l.index:a.length,p=a.charCodeAt(d),!l){n=a.slice(u);break}if(10===p&&u===d&&e)s.push(-3),e=void 0;else switch(e&&(s.push(-5),e=void 0),u<d&&(s.push(a.slice(u,d)),t+=d-u),p){case 0:s.push(65533),t++;break;case 9:for(c=4*Math.ceil(t/4),s.push(-2);t++<c;)s.push(-1);break;case 10:s.push(-4),t=1;break;default:e=!0,t=1}u=d+1}return o&&(e&&s.push(-5),n&&s.push(n),s.push(null)),s}}()(e,t,!0))))}function ga(e){return{line:e.line,column:e.column,offset:e.offset}}function Ea(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Ea(e,r):Ta(e,r)}}function Ta(e,t){let n;for(n in t)if(fa.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function ya(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+nn({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+nn({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+nn({start:t.start,end:t.end})+") is still open")}function ba(e){const t=this;t.parser=function(n){return ma(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function va(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];const a=e.all(t),i=a[0];i&&"text"===i.type?i.value="["+i.value:a.unshift({type:"text",value:"["});const o=a[a.length-1];return o&&"text"===o.type?o.value+=r:a.push({type:"text",value:r}),a}function ka(e){const t=e.spread;return null==t?e.children.length>1:t}function Aa(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),a=0;const i=[];for(;r;)i.push(Sa(t.slice(a,r.index),a>0,!0),r[0]),a=r.index+r[0].length,r=n.exec(t);return i.push(Sa(t.slice(a),a>0,!1)),i.join("")}function Sa(e,t,n){let r=0,a=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(a-1);for(;9===t||32===t;)a--,t=e.codePointAt(a-1)}return a>r?e.slice(r,a):""}const _a={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r={},a=t.lang?t.lang.split(/\s+/):[];a.length>0&&(r.className=["language-"+a[0]]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),a=Zn(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);let o,s=e.footnoteCounts.get(r);void 0===s?(s=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=i+1,s+=1,e.footnoteCounts.set(r,s);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+a,id:n+"fnref-"+a+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return va(e,t);const a={src:Zn(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(a.title=r.title);const i={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,i),e.applyData(t,i)},image:function(e,t){const n={src:Zn(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return va(e,t);const a={href:Zn(r.url||"")};null!==r.title&&void 0!==r.title&&(a.title=r.title);const i={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},link:function(e,t){const n={href:Zn(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),a=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=ka(n[r])}return t}(n):ka(t),i={},o=[];if("boolean"==typeof t.checked){const e=r[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const e=r[s];(a||0!==s||"element"!==e.type||"p"!==e.tagName)&&o.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||a?o.push(e):o.push(...e.children)}const l=r[r.length-1];l&&(a||"element"!==l.type||"p"!==l.tagName)&&o.push({type:"text",value:"\n"});const c={type:"element",tagName:"li",properties:i,children:o};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){const n={},r=e.all(t);let a=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++a<r.length;){const e=r[a];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)},paragraph:function(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const n=e.all(t),r=n.shift(),a=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),a.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},i=$t(t.children[1]),o=Zt(t.children[t.children.length-1]);i&&o&&(r.position={start:i,end:o}),a.push(r)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,i),e.applyData(t,i)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,a=0===(r?r.indexOf(t):1)?"th":"td",i=n&&"table"===n.type?n.align:void 0,o=i?i.length:t.children.length;let s=-1;const l=[];for(;++s<o;){const n=t.children[s],r={},o=i?i[s]:void 0;o&&(r.align=o);let c={type:"element",tagName:a,properties:r,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(n,c)),l.push(c)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){const n={type:"text",value:Aa(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:Ca,yaml:Ca,definition:Ca,footnoteDefinition:Ca};function Ca(){}const Na="object"==typeof self?self:globalThis,Ia=e=>((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=a=>{if(e.has(a))return e.get(a);const[i,o]=t[a];switch(i){case 0:case-1:return n(o,a);case 1:{const e=n([],a);for(const t of o)e.push(r(t));return e}case 2:{const e=n({},a);for(const[t,n]of o)e[r(t)]=r(n);return e}case 3:return n(new Date(o),a);case 4:{const{source:e,flags:t}=o;return n(new RegExp(e,t),a)}case 5:{const e=n(new Map,a);for(const[t,n]of o)e.set(r(t),r(n));return e}case 6:{const e=n(new Set,a);for(const t of o)e.add(r(t));return e}case 7:{const{name:e,message:t}=o;return n(new Na[e](t),a)}case 8:return n(BigInt(o),a);case"BigInt":return n(Object(BigInt(o)),a);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}return n(new Na[i](o),a)};return r})(new Map,e)(0),wa="",{toString:xa}={},{keys:Oa}=Object,Da=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=xa.call(e).slice(8,-1);switch(n){case"Array":return[1,wa];case"Object":return[2,wa];case"Date":return[3,wa];case"RegExp":return[4,wa];case"Map":return[5,wa];case"Set":return[6,wa];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},La=([e,t])=>0===e&&("function"===t||"symbol"===t),Ra=(e,{json:t,lossy:n}={})=>{const r=[];return((e,t,n,r)=>{const a=(e,t)=>{const a=r.push(e)-1;return n.set(t,a),a},i=r=>{if(n.has(r))return n.get(r);let[o,s]=Da(r);switch(o){case 0:{let t=r;switch(s){case"bigint":o=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);t=null;break;case"undefined":return a([-1],r)}return a([o,t],r)}case 1:{if(s){let e=r;return"DataView"===s?e=new Uint8Array(r.buffer):"ArrayBuffer"===s&&(e=new Uint8Array(r)),a([s,[...e]],r)}const e=[],t=a([o,e],r);for(const n of r)e.push(i(n));return t}case 2:{if(s)switch(s){case"BigInt":return a([s,r.toString()],r);case"Boolean":case"Number":case"String":return a([s,r.valueOf()],r)}if(t&&"toJSON"in r)return i(r.toJSON());const n=[],l=a([o,n],r);for(const t of Oa(r))!e&&La(Da(r[t]))||n.push([i(t),i(r[t])]);return l}case 3:return a([o,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return a([o,{source:e,flags:t}],r)}case 5:{const t=[],n=a([o,t],r);for(const[a,o]of r)(e||!La(Da(a))&&!La(Da(o)))&&t.push([i(a),i(o)]);return n}case 6:{const t=[],n=a([o,t],r);for(const a of r)!e&&La(Da(a))||t.push(i(a));return n}}const{message:l}=r;return a([o,{name:s,message:l}],r)};return i})(!(t||n),!!t,new Map,r)(e),r},Pa="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?Ia(Ra(e,t)):structuredClone(e):(e,t)=>Ia(Ra(e,t));function Ma(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Fa(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const Ba=function(e){if(null==e)return Ha;if("function"==typeof e)return Ua(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Ba(e[n]);return Ua(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}(e):function(e){const t=e;return Ua(n);function n(n){const r=n;let a;for(a in e)if(r[a]!==t[a])return!1;return!0}}(e);if("string"==typeof e)return function(e){return Ua(t);function t(t){return t&&t.type===e}}(e);throw new Error("Expected function, string, or object as test")};function Ua(e){return function(t,n,r){return Boolean(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function Ha(){return!0}const ja=[],za=!0,Ga=!1;function Ya(e,t,n,r){let a;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):a=t;const i=Ba(a),o=r?-1:1;!function e(a,s,l){const c=a&&"object"==typeof a?a:{};if("string"==typeof c.type){const e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+a.type+(e?"<"+e+">":"")+")"})}return u;function u(){let c,u,d,p=ja;if((!t||i(a,s,l[l.length-1]||void 0))&&(p=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[za,e];return null==e?ja:[e]}(n(a,l)),p[0]===Ga))return p;if("children"in a&&a.children){const t=a;if(t.children&&"skip"!==p[0])for(u=(r?t.children.length:-1)+o,d=l.concat(t);u>-1&&u<t.children.length;){const n=t.children[u];if(c=e(n,u,d)(),c[0]===Ga)return c;u="number"==typeof c[1]?c[1]:u+o}}return p}}(e,void 0,[])()}function Va(e,t,n,r){let a,i,o;"function"==typeof t&&"function"!=typeof n?(i=void 0,o=t,a=n):(i=t,o=n,a=r),Ya(e,i,function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return o(e,r,n)},a)}const qa={}.hasOwnProperty,Wa={};function Qa(e,t){e.position&&(t.position=tn(e))}function Ka(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,a=e.data.hProperties;if("string"==typeof t)if("element"===n.type)n.tagName=t;else{n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}}"element"===n.type&&a&&Object.assign(n.properties,Pa(a)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function Xa(e,t){const n=t.data||{},r=!("value"in t)||qa.call(n,"hProperties")||qa.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}function Ja(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function Za(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function $a(e,t){const n=function(e,t){const n=t||Wa,r=new Map,a=new Map,i=new Map,o={..._a,...n.handlers},s={all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1;for(;++r<n.length;){const a=s.one(n[r],e);if(a){if(r&&"break"===n[r-1].type&&(Array.isArray(a)||"text"!==a.type||(a.value=Za(a.value)),!Array.isArray(a)&&"element"===a.type)){const e=a.children[0];e&&"text"===e.type&&(e.value=Za(e.value))}Array.isArray(a)?t.push(...a):t.push(a)}}}return t},applyData:Ka,definitionById:r,footnoteById:a,footnoteCounts:i,footnoteOrder:[],handlers:o,one:function(e,t){const n=e.type,r=s.handlers[n];if(qa.call(s.handlers,n)&&r)return r(s,e,t);if(s.options.passThrough&&s.options.passThrough.includes(n)){if("children"in e){const{children:t,...n}=e,r=Pa(n);return r.children=s.all(e),r}return Pa(e)}return(s.options.unknownHandler||Xa)(s,e,t)},options:n,patch:Qa,wrap:Ja};return Va(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const t="definition"===e.type?r:a,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),s}(e,t),r=n.one(e,void 0),a=function(e){const t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Ma,r=e.options.footnoteBackLabel||Fa,a=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l<e.footnoteOrder.length;){const a=e.footnoteById.get(e.footnoteOrder[l]);if(!a)continue;const i=e.all(a),o=String(a.identifier).toUpperCase(),c=Zn(o.toLowerCase());let u=0;const d=[],p=e.footnoteCounts.get(o);for(;void 0!==p&&++u<=p;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(l,u);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(l,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const h=i[i.length-1];if(h&&"element"===h.type&&"p"===h.tagName){const e=h.children[h.children.length-1];e&&"text"===e.type?e.value+=" ":h.children.push({type:"text",value:" "}),h.children.push(...d)}else i.push(...d);const f={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(i,!0)};e.patch(a,f),s.push(f)}if(0!==s.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...Pa(o),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:"\n"}]}}(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return a&&i.children.push({type:"text",value:"\n"},a),i}function ei(e,t){return e&&"run"in e?async function(n,r){const a=$a(n,{file:r,...t});await e.run(a,r)}:function(n,r){return $a(n,{file:r,...e||t})}}function ti(e){if(e)throw e}var ni,ri;var ai=function(){if(ri)return ni;ri=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,a=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,a=e.call(n,"constructor"),i=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!a&&!i)return!1;for(r in n);return void 0===r||e.call(n,r)},o=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return ni=function e(){var t,n,r,l,c,u,d=arguments[0],p=1,h=arguments.length,f=!1;for("boolean"==typeof d&&(f=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<h;++p)if(null!=(t=arguments[p]))for(n in t)r=s(d,n),d!==(l=s(t,n))&&(f&&l&&(i(l)||(c=a(l)))?(c?(c=!1,u=r&&a(r)?r:[]):u=r&&i(r)?r:{},o(d,{name:n,newValue:e(f,u,l)})):void 0!==l&&o(d,{name:n,newValue:l}));return d},ni}();const ii=t(ai);function oi(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function si(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function a(i,...o){const s=e[++n];let l=-1;if(i)r(i);else{for(;++l<t.length;)null!==o[l]&&void 0!==o[l]||(o[l]=t[l]);t=o,s?function(e,t){let n;return r;function r(...t){const r=e.length>t.length;let s;r&&t.push(a);try{s=e.apply(this,t)}catch(i){if(r&&n)throw i;return a(i)}r||(s&&s.then&&"function"==typeof s.then?s.then(o,a):s instanceof Error?a(s):o(s))}function a(e,...r){n||(n=!0,t(e,...r))}function o(e){a(null,e)}}(s,a)(...o):r(null,...o)}}(null,...t)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}const li={basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');ci(e);let n,r=0,a=-1,i=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else a<0&&(n=!0,a=i+1);return a<0?"":e.slice(r,a)}if(t===e)return"";let o=-1,s=t.length-1;for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(a=i):(s=-1,a=o));r===a?a=o:a<0&&(a=e.length);return e.slice(r,a)},dirname:function(e){if(ci(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){ci(e);let t,n=e.length,r=-1,a=0,i=-1,o=0;for(;n--;){const s=e.codePointAt(n);if(47!==s)r<0&&(t=!0,r=n+1),46===s?i<0?i=n:1!==o&&(o=1):i>-1&&(o=-1);else if(t){a=n+1;break}}if(i<0||r<0||0===o||1===o&&i===r-1&&i===a+1)return"";return e.slice(i,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)ci(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){ci(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,a="",i=0,o=-1,s=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.codePointAt(l);else{if(47===n)break;n=47}if(47===n){if(o===l-1||1===s);else if(o!==l-1&&2===s){if(a.length<2||2!==i||46!==a.codePointAt(a.length-1)||46!==a.codePointAt(a.length-2))if(a.length>2){if(r=a.lastIndexOf("/"),r!==a.length-1){r<0?(a="",i=0):(a=a.slice(0,r),i=a.length-1-a.lastIndexOf("/")),o=l,s=0;continue}}else if(a.length>0){a="",i=0,o=l,s=0;continue}t&&(a=a.length>0?a+"/..":"..",i=2)}else a.length>0?a+="/"+e.slice(o+1,l):a=e.slice(o+1,l),i=l-o-1;o=l,s=0}else 46===n&&s>-1?s++:s=-1}return a}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/");return t?"/"+n:n}(t)},sep:"/"};function ci(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const ui={cwd:function(){return"/"}};function di(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function pi(e){if("string"==typeof e)e=new URL(e);else if(!di(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}const hi=["history","path","basename","stem","extname","dirname"];class fi{constructor(e){let t;t=e?di(e)?{path:e}:"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":ui.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<hi.length;){const e=hi[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)hi.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?li.basename(this.path):void 0}set basename(e){gi(e,"basename"),mi(e,"basename"),this.path=li.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?li.dirname(this.path):void 0}set dirname(e){Ei(this.basename,"dirname"),this.path=li.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?li.extname(this.path):void 0}set extname(e){if(mi(e,"extname"),Ei(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=li.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){di(e)&&(e=pi(e)),gi(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?li.basename(this.path,this.extname):void 0}set stem(e){gi(e,"stem"),mi(e,"stem"),this.path=li.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new sn(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){if(void 0===this.value)return"";if("string"==typeof this.value)return this.value;return new TextDecoder(e||void 0).decode(this.value)}}function mi(e,t){if(e&&e.includes(li.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+li.sep+"`")}function gi(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Ei(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const Ti=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},yi={}.hasOwnProperty;class bi extends Ti{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=si()}copy(){const e=new bi;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(ii(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(Si("data",this.frozen),this.namespace[e]=t,this):yi.call(this.namespace,e)&&this.namespace[e]||void 0:e?(Si("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=t.call(e,...n);"function"==typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=Ni(e),n=this.parser||this.Parser;return ki("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),ki("process",this.parser||this.Parser),Ai("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,a){const i=Ni(e),o=n.parse(i);function s(e,n){e||!n?a(e):r?r(n):t(void 0,n)}n.run(o,i,function(e,t,r){if(e||!t||!r)return s(e);const a=t,i=n.stringify(a,r);var o;"string"==typeof(o=i)||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(o)?r.value=i:r.result=i,s(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),ki("processSync",this.parser||this.Parser),Ai("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,ti(e),t=r}),Ci("processSync","process",n),t}run(e,t,n){_i(e),this.freeze();const r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?a(void 0,n):new Promise(a);function a(a,i){const o=Ni(t);r.run(e,o,function(t,r,o){const s=r||e;t?i(t):a?a(s):n(void 0,s,o)})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){ti(e),n=t,r=!0}),Ci("runSync","run",r),n}stringify(e,t){this.freeze();const n=Ni(t),r=this.compiler||this.Compiler;return Ai("stringify",r),_i(e),r(e,n)}use(e,...t){const n=this.attachers,r=this.namespace;if(Si("use",this.frozen),null==e);else if("function"==typeof e)s(e,t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?o(e):i(e)}return this;function a(e){if("function"==typeof e)s(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;s(t,n)}else i(e)}}function i(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(e.plugins),e.settings&&(r.settings=ii(!0,r.settings,e.settings))}function o(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;){a(e[t])}}}function s(e,t){let r=-1,a=-1;for(;++r<n.length;)if(n[r][0]===e){a=r;break}if(-1===a)n.push([e,...t]);else if(t.length>0){let[r,...i]=t;const o=n[a][1];oi(o)&&oi(r)&&(r=ii(!0,o,r)),n[a]=[e,r,...i]}}}}const vi=(new bi).freeze();function ki(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function Ai(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function Si(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function _i(e){if(!oi(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function Ci(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Ni(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new fi(e)}const Ii=[],wi={allowDangerousHtml:!0},xi=/^(https?|ircs?|mailto|xmpp)$/i,Oi=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Di(e){const t=function(e){const t=e.rehypePlugins||Ii,n=e.remarkPlugins||Ii,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...wi}:wi,a=vi().use(ba).use(n).use(ei,r).use(t);return a}(e),n=function(e){const t=e.children||"",n=new fi;"string"==typeof t&&(n.value=t);return n}(e);return function(e,t){const n=t.allowedElements,r=t.allowElement,a=t.components,i=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,l=t.urlTransform||Li;for(const u of Oi)Object.hasOwn(t,u.from)&&Ke((u.from,u.to&&u.to,u.id));return Va(e,c),fn(e,{Fragment:N.Fragment,components:a,ignoreInvalidStyle:!0,jsx:N.jsx,jsxs:N.jsxs,passKeys:!0,passNode:!0});function c(e,t,a){if("raw"===e.type&&a&&"number"==typeof t)return o?a.children.splice(t,1):a.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in Sn)if(Object.hasOwn(Sn,t)&&Object.hasOwn(e.properties,t)){const n=e.properties[t],r=Sn[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=l(String(n||""),t,e))}}if("element"===e.type){let o=n?!n.includes(e.tagName):!!i&&i.includes(e.tagName);if(!o&&r&&"number"==typeof t&&(o=!r(e,t,a)),o&&a&&"number"==typeof t)return s&&e.children?a.children.splice(t,1,...e.children):a.children.splice(t,1),t}}}(t.runSync(t.parse(n),n),e)}function Li(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),a=e.indexOf("/");return-1===t||-1!==a&&t>a||-1!==n&&t>n||-1!==r&&t>r||xi.test(e.slice(0,t))?e:""}function Ri(e,t){const n=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let r=0,a=n.indexOf(t);for(;-1!==a;)r++,a=n.indexOf(t,a+t.length);return r}function Pi(e,t,n){const r=Ba((n||{}).ignore||[]),a=function(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const e=n[r];t.push([Mi(e[0]),Fi(e[1])])}return t}(t);let i=-1;for(;++i<a.length;)Ya(e,"text",o);function o(e,t){let n,o=-1;for(;++o<t.length;){const e=t[o],a=n?n.children:void 0;if(r(e,a?a.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){const n=t[t.length-1],r=a[i][0],o=a[i][1];let s=0;const l=n.children.indexOf(e);let c=!1,u=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){const n=d.index,a={index:d.index,input:d.input,stack:[...t,e]};let i=o(...d,a);if("string"==typeof i&&(i=i.length>0?{type:"text",value:i}:void 0),!1===i?r.lastIndex=n+1:(s!==n&&u.push({type:"text",value:e.value.slice(s,n)}),Array.isArray(i)?u.push(...i):i&&u.push(i),s=n+d[0].length,c=!0),!r.global)break;d=r.exec(e.value)}c?(s<e.value.length&&u.push({type:"text",value:e.value.slice(s)}),n.children.splice(l,1,...u)):u=[e];return l+u.length}(e,t)}}function Mi(e){return"string"==typeof e?new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e),"g"):e}function Fi(e){return"function"==typeof e?e:function(){return e}}const Bi="phrasing",Ui=["autolink","link","image","label"];function Hi(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function ji(e){this.config.enter.autolinkProtocol.call(this,e)}function zi(e){this.config.exit.autolinkProtocol.call(this,e)}function Gi(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function Yi(e){this.config.exit.autolinkEmail.call(this,e)}function Vi(e){this.exit(e)}function qi(e){Pi(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Wi],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),Qi]],{ignore:["link","linkReference"]})}function Wi(e,t,n,r,a){let i="";if(!Ki(a))return!1;if(/^w/i.test(t)&&(n=t+n,t="",i="http://"),!function(e){const t=e.split(".");if(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))return!1;return!0}(n))return!1;const o=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const a=Ri(e,"(");let i=Ri(e,")");for(;-1!==r&&a>i;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),i++;return[e,n]}(n+r);if(!o[0])return!1;const s={type:"link",title:null,url:i+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[s,{type:"text",value:o[1]}]:s}function Qi(e,t,n,r){return!(!Ki(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Ki(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||Xn(n)||Kn(n))&&(!t||47!==n)}function Xi(){this.buffer()}function Ji(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Zi(){this.buffer()}function $i(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function eo(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Bn(this.sliceSerialize(e)).toLowerCase(),n.label=t}function to(e){this.exit(e)}function no(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Bn(this.sliceSerialize(e)).toLowerCase(),n.label=t}function ro(e){this.exit(e)}function ao(e,t,n,r){const a=n.createTracker(r);let i=a.move("[^");const o=n.enter("footnoteReference"),s=n.enter("reference");return i+=a.move(n.safe(n.associationId(e),{after:"]",before:i})),s(),o(),i+=a.move("]"),i}function io(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:function(e,n,r,a){const i=r.createTracker(a);let o=i.move("[^");const s=r.enter("footnoteDefinition"),l=r.enter("label");o+=i.move(r.safe(r.associationId(e),{before:o,after:"]"})),l(),o+=i.move("]:"),e.children&&e.children.length>0&&(i.shift(4),o+=i.move((t?"\n":" ")+r.indentLines(r.containerFlow(e,i.current()),t?so:oo)));return s(),o},footnoteReference:ao},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}}function oo(e,t,n){return 0===t?e:so(e,t,n)}function so(e,t,n){return(n?"":" ")+e}ao.peek=function(){return"["};const lo=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function co(e){this.enter({type:"delete",children:[]},e)}function uo(e){this.exit(e)}function po(e,t,n,r){const a=n.createTracker(r),i=n.enter("strikethrough");let o=a.move("~~");return o+=n.containerPhrasing(e,{...a.current(),before:o,after:"~"}),o+=a.move("~~"),i(),o}function ho(e){return e.length}function fo(e){return null==e?"":String(e)}function mo(e){const t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}po.peek=function(){return"~"};const go={}.hasOwnProperty;function Eo(e,t){const n=t||{};function r(t,...n){let a=r.invalid;const i=r.handlers;if(t&&go.call(t,e)){const n=String(t[e]);a=go.call(i,n)?i[n]:r.unknown}if(a)return a.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}function To(e,t,n){return">"+(n?"":" ")+e}function yo(e,t){return bo(e,t.inConstruct,!0)&&!bo(e,t.notInConstruct,!1)}function bo(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function vo(e,t,n,r){let a=-1;for(;++a<n.unsafe.length;)if("\n"===n.unsafe[a].character&&yo(n.stack,n.unsafe[a]))return/[ \t]/.test(r.before)?"":" ";return"\\\n"}function ko(e,t,n){return(n?"":" ")+e}function Ao(e){const t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function So(e){return"&#x"+e.toString(16).toUpperCase()+";"}function _o(e,t,n){const r=rr(e),a=rr(t);return void 0===r?void 0===a?"_"===n?{inside:!0,outside:!0}:{inside:!1,outside:!1}:1===a?{inside:!0,outside:!0}:{inside:!1,outside:!0}:1===r?void 0===a?{inside:!1,outside:!1}:1===a?{inside:!0,outside:!0}:{inside:!1,outside:!1}:void 0===a?{inside:!1,outside:!1}:1===a?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function Co(e,t,n,r){const a=function(e){const t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(n),i=n.enter("emphasis"),o=n.createTracker(r),s=o.move(a);let l=o.move(n.containerPhrasing(e,{after:a,before:s,...o.current()}));const c=l.charCodeAt(0),u=_o(r.before.charCodeAt(r.before.length-1),c,a);u.inside&&(l=So(c)+l.slice(1));const d=l.charCodeAt(l.length-1),p=_o(r.after.charCodeAt(0),d,a);p.inside&&(l=l.slice(0,-1)+So(d));const h=o.move(a);return i(),n.attentionEncodeSurroundingInfo={after:p.outside,before:u.outside},s+l+h}function No(e){return e.value||""}function Io(e,t,n,r){const a=Ao(n),i='"'===a?"Quote":"Apostrophe",o=n.enter("image");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("![");return c+=l.move(n.safe(e.alt,{before:c,after:"]",...l.current()})),c+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${i}`),c+=l.move(" "+a),c+=l.move(n.safe(e.title,{before:c,after:a,...l.current()})),c+=l.move(a),s()),c+=l.move(")"),o(),c}function wo(e,t,n,r){const a=e.referenceType,i=n.enter("imageReference");let o=n.enter("label");const s=n.createTracker(r);let l=s.move("![");const c=n.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),o();const u=n.stack;n.stack=[],o=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return o(),n.stack=u,i(),"full"!==a&&c&&c===d?"shortcut"===a?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"),l}function xo(e,t,n){let r=e.value||"",a="`",i=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(r);)a+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++i<n.unsafe.length;){const e=n.unsafe[i],t=n.compilePattern(e);let a;if(e.atBreak)for(;a=t.exec(r);){let e=a.index;10===r.charCodeAt(e)&&13===r.charCodeAt(e-1)&&e--,r=r.slice(0,e)+" "+r.slice(a.index+1)}}return a+r+a}function Oo(e,t){const n=Cn(e);return Boolean(!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function Do(e,t,n,r){const a=Ao(n),i='"'===a?"Quote":"Apostrophe",o=n.createTracker(r);let s,l;if(Oo(e,n)){const t=n.stack;n.stack=[],s=n.enter("autolink");let r=o.move("<");return r+=o.move(n.containerPhrasing(e,{before:r,after:">",...o.current()})),r+=o.move(">"),s(),n.stack=t,r}s=n.enter("link"),l=n.enter("label");let c=o.move("[");return c+=o.move(n.containerPhrasing(e,{before:c,after:"](",...o.current()})),c+=o.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=o.move("<"),c+=o.move(n.safe(e.url,{before:c,after:">",...o.current()})),c+=o.move(">")):(l=n.enter("destinationRaw"),c+=o.move(n.safe(e.url,{before:c,after:e.title?" ":")",...o.current()}))),l(),e.title&&(l=n.enter(`title${i}`),c+=o.move(" "+a),c+=o.move(n.safe(e.title,{before:c,after:a,...o.current()})),c+=o.move(a),l()),c+=o.move(")"),s(),c}function Lo(e,t,n,r){const a=e.referenceType,i=n.enter("linkReference");let o=n.enter("label");const s=n.createTracker(r);let l=s.move("[");const c=n.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),o();const u=n.stack;n.stack=[],o=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return o(),n.stack=u,i(),"full"!==a&&c&&c===d?"shortcut"===a?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"),l}function Ro(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function Po(e){const t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}Co.peek=function(e,t,n){return n.options.emphasis||"*"},No.peek=function(){return"<"},Io.peek=function(){return"!"},wo.peek=function(){return"!"},xo.peek=function(){return"`"},Do.peek=function(e,t,n){return Oo(e,n)?"<":"["},Lo.peek=function(){return"["};const Mo=Ba(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Fo(e,t,n,r){const a=function(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(n),i=n.enter("strong"),o=n.createTracker(r),s=o.move(a+a);let l=o.move(n.containerPhrasing(e,{after:a,before:s,...o.current()}));const c=l.charCodeAt(0),u=_o(r.before.charCodeAt(r.before.length-1),c,a);u.inside&&(l=So(c)+l.slice(1));const d=l.charCodeAt(l.length-1),p=_o(r.after.charCodeAt(0),d,a);p.inside&&(l=l.slice(0,-1)+So(d));const h=o.move(a+a);return i(),n.attentionEncodeSurroundingInfo={after:p.outside,before:u.outside},s+l+h}Fo.peek=function(e,t,n){return n.options.strong||"*"};const Bo={blockquote:function(e,t,n,r){const a=n.enter("blockquote"),i=n.createTracker(r);i.move("> "),i.shift(2);const o=n.indentLines(n.containerFlow(e,i.current()),To);return a(),o},break:vo,code:function(e,t,n,r){const a=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(n),i=e.value||"",o="`"===a?"GraveAccent":"Tilde";if(function(e,t){return Boolean(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}(e,n)){const e=n.enter("codeIndented"),t=n.indentLines(i,ko);return e(),t}const s=n.createTracker(r),l=a.repeat(Math.max(function(e,t){const n=String(e);let r=n.indexOf(t),a=r,i=0,o=0;if("string"!=typeof t)throw new TypeError("Expected substring");for(;-1!==r;)r===a?++i>o&&(o=i):i=1,a=r+t.length,r=n.indexOf(t,a);return o}(i,a)+1,3)),c=n.enter("codeFenced");let u=s.move(l);if(e.lang){const t=n.enter(`codeFencedLang${o}`);u+=s.move(n.safe(e.lang,{before:u,after:" ",encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){const t=n.enter(`codeFencedMeta${o}`);u+=s.move(" "),u+=s.move(n.safe(e.meta,{before:u,after:"\n",encode:["`"],...s.current()})),t()}return u+=s.move("\n"),i&&(u+=s.move(i+"\n")),u+=s.move(l),c(),u},definition:function(e,t,n,r){const a=Ao(n),i='"'===a?"Quote":"Apostrophe",o=n.enter("definition");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("[");return c+=l.move(n.safe(n.associationId(e),{before:c,after:"]",...l.current()})),c+=l.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":"\n",...l.current()}))),s(),e.title&&(s=n.enter(`title${i}`),c+=l.move(" "+a),c+=l.move(n.safe(e.title,{before:c,after:a,...l.current()})),c+=l.move(a),s()),o(),c},emphasis:Co,hardBreak:vo,heading:function(e,t,n,r){const a=Math.max(Math.min(6,e.depth||1),1),i=n.createTracker(r);if(function(e,t){let n=!1;return Va(e,function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return n=!0,Ga}),Boolean((!e.depth||e.depth<3)&&Cn(e)&&(t.options.setext||n))}(e,n)){const t=n.enter("headingSetext"),r=n.enter("phrasing"),o=n.containerPhrasing(e,{...i.current(),before:"\n",after:"\n"});return r(),t(),o+"\n"+(1===a?"=":"-").repeat(o.length-(Math.max(o.lastIndexOf("\r"),o.lastIndexOf("\n"))+1))}const o="#".repeat(a),s=n.enter("headingAtx"),l=n.enter("phrasing");i.move(o+" ");let c=n.containerPhrasing(e,{before:"# ",after:"\n",...i.current()});return/^[\t ]/.test(c)&&(c=So(c.charCodeAt(0))+c.slice(1)),c=c?o+" "+c:o,n.options.closeAtx&&(c+=" "+o),l(),s(),c},html:No,image:Io,imageReference:wo,inlineCode:xo,link:Do,linkReference:Lo,list:function(e,t,n,r){const a=n.enter("list"),i=n.bulletCurrent;let o=e.ordered?function(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(n):Ro(n);const s=e.ordered?"."===o?")":".":function(e){const t=Ro(e),n=e.options.bulletOther;if(!n)return"*"===t?"-":"*";if("*"!==n&&"+"!==n&&"-"!==n)throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}(n);let l=!(!t||!n.bulletLastUsed)&&o===n.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==o&&"-"!==o||!t||t.children&&t.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(l=!0),Po(n)===o&&t){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if(n&&"listItem"===n.type&&n.children&&n.children[0]&&"thematicBreak"===n.children[0].type){l=!0;break}}}}l&&(o=s),n.bulletCurrent=o;const c=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=i,a(),c},listItem:function(e,t,n,r){const a=function(e){const t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n);let i=n.bulletCurrent||Ro(n);t&&"list"===t.type&&t.ordered&&(i=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+i);let o=i.length+1;("tab"===a||"mixed"===a&&(t&&"list"===t.type&&t.spread||e.spread))&&(o=4*Math.ceil(o/4));const s=n.createTracker(r);s.move(i+" ".repeat(o-i.length)),s.shift(o);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),function(e,t,n){if(t)return(n?"":" ".repeat(o))+e;return(n?i:i+" ".repeat(o-i.length))+e});return l(),c},paragraph:function(e,t,n,r){const a=n.enter("paragraph"),i=n.enter("phrasing"),o=n.containerPhrasing(e,r);return i(),a(),o},root:function(e,t,n,r){return(e.children.some(function(e){return Mo(e)})?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:Fo,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){const r=(Po(n)+(n.options.ruleSpaces?" ":"")).repeat(function(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(n));return n.options.ruleSpaces?r.slice(0,-1):r}};function Uo(e){const t=e._align;this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function Ho(e){this.exit(e),this.data.inTable=void 0}function jo(e){this.enter({type:"tableRow",children:[]},e)}function zo(e){this.exit(e)}function Go(e){this.enter({type:"tableCell",children:[]},e)}function Yo(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Vo));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Vo(e,t){return"|"===t?t:e}function qo(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,a=t.stringLength,i=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=Bo.inlineCode(e,t,n);n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&"));return r},table:function(e,t,n,r){return s(function(e,t,n){const r=e.children;let a=-1;const i=[],o=t.enter("table");for(;++a<r.length;)i[a]=l(r[a],t,n);return o(),i}(e,n,r),e.align)},tableCell:o,tableRow:function(e,t,n,r){const a=s([l(e,n,r)]);return a.slice(0,a.indexOf("\n"))}}};function o(e,t,n,r){const a=n.enter("tableCell"),o=n.enter("phrasing"),s=n.containerPhrasing(e,{...r,before:i,after:i});return o(),a(),s}function s(e,t){return function(e,t){const n=t||{},r=(n.align||[]).concat(),a=n.stringLength||ho,i=[],o=[],s=[],l=[];let c=0,u=-1;for(;++u<e.length;){const t=[],r=[];let i=-1;for(e[u].length>c&&(c=e[u].length);++i<e[u].length;){const o=fo(e[u][i]);if(!1!==n.alignDelimiters){const e=a(o);r[i]=e,(void 0===l[i]||e>l[i])&&(l[i]=e)}t.push(o)}o[u]=t,s[u]=r}let d=-1;if("object"==typeof r&&"length"in r)for(;++d<c;)i[d]=mo(r[d]);else{const e=mo(r);for(;++d<c;)i[d]=e}d=-1;const p=[],h=[];for(;++d<c;){const e=i[d];let t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let a=!1===n.alignDelimiters?1:Math.max(1,l[d]-t.length-r.length);const o=t+"-".repeat(a)+r;!1!==n.alignDelimiters&&(a=t.length+a+r.length,a>l[d]&&(l[d]=a),h[d]=a),p[d]=o}o.splice(1,0,p),s.splice(1,0,h),u=-1;const f=[];for(;++u<o.length;){const e=o[u],t=s[u];d=-1;const r=[];for(;++d<c;){const a=e[d]||"";let o="",s="";if(!1!==n.alignDelimiters){const e=l[d]-(t[d]||0),n=i[d];114===n?o=" ".repeat(e):99===n?e%2?(o=" ".repeat(e/2+.5),s=" ".repeat(e/2-.5)):(o=" ".repeat(e/2),s=o):s=" ".repeat(e)}!1===n.delimiterStart||d||r.push("|"),!1===n.padding||!1===n.alignDelimiters&&""===a||!1===n.delimiterStart&&!d||r.push(" "),!1!==n.alignDelimiters&&r.push(o),r.push(a),!1!==n.alignDelimiters&&r.push(s),!1!==n.padding&&r.push(" "),!1===n.delimiterEnd&&d===c-1||r.push("|")}f.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return f.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:a})}function l(e,t,n){const r=e.children;let a=-1;const i=[],s=t.enter("tableRow");for(;++a<r.length;)i[a]=o(r[a],0,t,n);return s(),i}}function Wo(e){const t=this.stack[this.stack.length-2];t.type,t.checked="taskListCheckValueChecked"===e.type}function Qo(e){const t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){const e=this.stack[this.stack.length-1];e.type;const n=e.children[0];if(n&&"text"===n.type){const r=t.children;let a,i=-1;for(;++i<r.length;){const e=r[i];if("paragraph"===e.type){a=e;break}}a===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function Ko(e,t,n,r){const a=e.children[0],i="boolean"==typeof e.checked&&a&&"paragraph"===a.type,o="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);i&&s.move(o);let l=Bo.listItem(e,t,n,{...r,...s.current()});return i&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+o})),l}const Xo={tokenize:function(e,t,n){let r=0;return function t(i){if((87===i||119===i)&&r<3)return r++,e.consume(i),t;if(46===i&&3===r)return e.consume(i),a;return n(i)};function a(e){return null===e?n(e):t(e)}},partial:!0},Jo={tokenize:function(e,t,n){let r,a,i;return o;function o(t){return 46===t||95===t?e.check($o,l,s)(t):null===t||Wn(t)||Xn(t)||45!==t&&Kn(t)?l(t):(i=!0,e.consume(t),o)}function s(t){return 95===t?r=!0:(a=r,r=void 0),e.consume(t),o}function l(e){return a||r||!i?n(e):t(e)}},partial:!0},Zo={tokenize:function(e,t){let n=0,r=0;return a;function a(o){return 40===o?(n++,e.consume(o),a):41===o&&r<n?i(o):33===o||34===o||38===o||39===o||41===o||42===o||44===o||46===o||58===o||59===o||60===o||63===o||93===o||95===o||126===o?e.check($o,t,i)(o):null===o||Wn(o)||Xn(o)?t(o):(e.consume(o),a)}function i(t){return 41===t&&r++,e.consume(t),a}},partial:!0},$o={tokenize:function(e,t,n){return r;function r(o){return 33===o||34===o||39===o||41===o||42===o||44===o||46===o||58===o||59===o||63===o||95===o||126===o?(e.consume(o),r):38===o?(e.consume(o),i):93===o?(e.consume(o),a):60===o||null===o||Wn(o)||Xn(o)?t(o):n(o)}function a(e){return null===e||40===e||91===e||Wn(e)||Xn(e)?t(e):r(e)}function i(e){return Un(e)?o(e):n(e)}function o(t){return 59===t?(e.consume(t),r):Un(t)?(e.consume(t),o):n(t)}},partial:!0},es={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return Hn(e)?n(e):t(e)}},partial:!0},ts={name:"wwwAutolink",tokenize:function(e,t,n){const r=this;return function(t){if(87!==t&&119!==t||!os.call(r,r.previous)||us(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Xo,e.attempt(Jo,e.attempt(Zo,a),n),n)(t)};function a(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:os},ns={name:"protocolAutolink",tokenize:function(e,t,n){const r=this;let a="",i=!1;return function(t){if((72===t||104===t)&&ss.call(r,r.previous)&&!us(r.events))return e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(t),e.consume(t),o;return n(t)};function o(t){if(Un(t)&&a.length<5)return a+=String.fromCodePoint(t),e.consume(t),o;if(58===t){const n=a.toLowerCase();if("http"===n||"https"===n)return e.consume(t),s}return n(t)}function s(t){return 47===t?(e.consume(t),i?l:(i=!0,s)):n(t)}function l(t){return null===t||zn(t)||Wn(t)||Xn(t)||Kn(t)?n(t):e.attempt(Jo,e.attempt(Zo,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:ss},rs={name:"emailAutolink",tokenize:function(e,t,n){const r=this;let a,i;return function(t){if(!cs(t)||!ls.call(r,r.previous)||us(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),o(t)};function o(t){return cs(t)?(e.consume(t),o):64===t?(e.consume(t),s):n(t)}function s(t){return 46===t?e.check(es,c,l)(t):45===t||95===t||Hn(t)?(i=!0,e.consume(t),s):c(t)}function l(t){return e.consume(t),a=!0,s}function c(o){return i&&a&&Un(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(o)):n(o)}},previous:ls},as={};let is=48;for(;is<123;)as[is]=rs,is++,58===is?is=65:91===is&&(is=97);function os(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||Wn(e)}function ss(e){return!Un(e)}function ls(e){return!(47===e||cs(e))}function cs(e){return 43===e||45===e||46===e||95===e||Hn(e)}function us(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}as[43]=rs,as[45]=rs,as[46]=rs,as[95]=rs,as[72]=[rs,ns],as[104]=[rs,ns],as[87]=[rs,ts],as[119]=[rs,ts];const ds={tokenize:function(e,t,n){const r=this;return $n(e,function(e){const a=r.events[r.events.length-1];return a&&"gfmFootnoteDefinitionIndent"===a[1].type&&4===a[2].sliceSerialize(a[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function ps(e,t,n){const r=this;let a=r.events.length;const i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;a--;){const e=r.events[a][1];if("labelImage"===e.type){o=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(a){if(!o||!o._balanced)return n(a);const s=Bn(r.sliceSerialize({start:o.end,end:r.now()}));if(94!==s.codePointAt(0)||!i.includes(s.slice(1)))return n(a);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),t(a)}}function hs(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",a,t],["exit",a,t],["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function fs(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,o=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),s};function s(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(s){if(o>999||93===s&&!i||null===s||91===s||Wn(s))return n(s);if(93===s){e.exit("chunkString");const i=e.exit("gfmFootnoteCallString");return a.includes(Bn(r.sliceSerialize(i)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(s)}return Wn(s)||(i=!0),o++,e.consume(s),92===s?c:l}function c(t){return 91===t||92===t||93===t?(e.consume(t),o++,l):l(t)}}function ms(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,o,s=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(s>999||93===t&&!o||null===t||91===t||Wn(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return i=Bn(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return Wn(t)||(o=!0),s++,e.consume(t),92===t?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}function d(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a.includes(i)||a.push(i),$n(e,p,"gfmFootnoteDefinitionWhitespace")):n(t)}function p(e){return t(e)}}function gs(e,t,n){return e.check(lr,t,e.attempt(ds,t,n))}function Es(e){e.exit("gfmFootnoteDefinition")}function Ts(e){let t=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:function(e,n,r){const a=this.previous,i=this.events;let o=0;return function(t){if(126===a&&"characterEscape"!==i[i.length-1][1].type)return r(t);return e.enter("strikethroughSequenceTemporary"),s(t)};function s(i){const l=rr(a);if(126===i)return o>1?r(i):(e.consume(i),o++,s);if(o<2&&!t)return r(i);const c=e.exit("strikethroughSequenceTemporary"),u=rr(i);return c._open=!u||2===u&&Boolean(l),c._close=!l||2===l&&Boolean(u),n(i)}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";const a={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},i={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[["enter",a,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",i,t]],s=t.parser.constructs.insideSpan.null;s&&On(o,o.length,0,ar(s,e.slice(r+1,n),t)),On(o,o.length,0,[["exit",i,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",a,t]]),On(e,r-1,n-r+3,o),n=r+o.length-2;break}}n=-1;for(;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}class ys{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let a=0;if(0===n&&0===r.length)return;for(;a<e.map.length;){if(e.map[a][0]===t)return e.map[a][1]+=n,void e.map[a][2].push(...r);a+=1}e.map.push([t,n,r])}(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length;const n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(const t of r)e.push(t);r=n.pop()}this.map.length=0}}function bs(e,t){let n=!1;const r=[];for(;t<e.length;){const a=e[t];if(n){if("enter"===a[0])"tableContent"===a[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===a[1].type){if("tableDelimiterMarker"===e[t-1][1].type){const e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===a[1].type)break}else"enter"===a[0]&&"tableDelimiterRow"===a[1].type&&(n=!0);t+=1}return r}function vs(e,t,n){const r=this;let a,i=0,o=0;return function(e){let t=r.events.length-1;for(;t>-1;){const e=r.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const a=t>-1?r.events[t][1].type:null,i="tableHead"===a||"tableRow"===a?b:s;if(i===b&&r.parser.lazy[r.now().line])return n(e);return i(e)};function s(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){if(124===e)return l(e);return a=!0,o+=1,l(e)}(t)}function l(t){return null===t?n(t):qn(t)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):Qn(t)?$n(e,l,"whitespace")(t):(o+=1,a&&(a=!1,i+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),a=!0,l):(e.enter("data"),c(t)))}function c(t){return null===t||124===t||Wn(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return 92===t||124===t?(e.consume(t),c):c(t)}function d(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter("tableDelimiterRow"),a=!1,Qn(t)?$n(e,p,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):p(t))}function p(t){return 45===t||58===t?f(t):124===t?(a=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),h):y(t)}function h(t){return Qn(t)?$n(e,f,"whitespace")(t):f(t)}function f(t){return 58===t?(o+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(o+=1,m(t)):null===t||qn(t)?T(t):y(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),g(t)):y(t)}function g(t){return 45===t?(e.consume(t),g):58===t?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),E):(e.exit("tableDelimiterFiller"),E(t))}function E(t){return Qn(t)?$n(e,T,"whitespace")(t):T(t)}function T(n){return 124===n?p(n):(null===n||qn(n))&&a&&i===o?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):y(n)}function y(e){return n(e)}function b(t){return e.enter("tableRow"),v(t)}function v(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),v):null===n||qn(n)?(e.exit("tableRow"),t(n)):Qn(n)?$n(e,v,"whitespace")(n):(e.enter("data"),k(n))}function k(t){return null===t||124===t||Wn(t)?(e.exit("data"),v(t)):(e.consume(t),92===t?A:k)}function A(t){return 92===t||124===t?(e.consume(t),k):k(t)}}function ks(e,t){let n,r,a,i=-1,o=!0,s=0,l=[0,0,0,0],c=[0,0,0,0],u=!1,d=0;const p=new ys;for(;++i<e.length;){const h=e[i],f=h[1];"enter"===h[0]?"tableHead"===f.type?(u=!1,0!==d&&(Ss(p,t,d,n,r),r=void 0,d=0),n={type:"table",start:Object.assign({},f.start),end:Object.assign({},f.end)},p.add(i,0,[["enter",n,t]])):"tableRow"===f.type||"tableDelimiterRow"===f.type?(o=!0,a=void 0,l=[0,0,0,0],c=[0,i+1,0,0],u&&(u=!1,r={type:"tableBody",start:Object.assign({},f.start),end:Object.assign({},f.end)},p.add(i,0,[["enter",r,t]])),s="tableDelimiterRow"===f.type?2:r?3:1):!s||"data"!==f.type&&"tableDelimiterMarker"!==f.type&&"tableDelimiterFiller"!==f.type?"tableCellDivider"===f.type&&(o?o=!1:(0!==l[1]&&(c[0]=c[1],a=As(p,t,l,s,void 0,a)),l=c,c=[l[1],i,0,0])):(o=!1,0===c[2]&&(0!==l[1]&&(c[0]=c[1],a=As(p,t,l,s,void 0,a),l=[0,0,0,0]),c[2]=i)):"tableHead"===f.type?(u=!0,d=i):"tableRow"===f.type||"tableDelimiterRow"===f.type?(d=i,0!==l[1]?(c[0]=c[1],a=As(p,t,l,s,i,a)):0!==c[1]&&(a=As(p,t,c,s,i,a)),s=0):!s||"data"!==f.type&&"tableDelimiterMarker"!==f.type&&"tableDelimiterFiller"!==f.type||(c[3]=i)}for(0!==d&&Ss(p,t,d,n,r),p.consume(t.events),i=-1;++i<t.events.length;){const e=t.events[i];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=bs(t.events,i))}return e}function As(e,t,n,r,a,i){const o=1===r?"tableHeader":2===r?"tableDelimiter":"tableData";0!==n[0]&&(i.end=Object.assign({},_s(t.events,n[0])),e.add(n[0],0,[["exit",i,t]]));const s=_s(t.events,n[1]);if(i={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[["enter",i,t]]),0!==n[2]){const a=_s(t.events,n[2]),i=_s(t.events,n[3]),o={type:"tableContent",start:Object.assign({},a),end:Object.assign({},i)};if(e.add(n[2],0,[["enter",o,t]]),2!==r){const r=t.events[n[2]],a=t.events[n[3]];if(r[1].end=Object.assign({},a[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){const t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",o,t]])}return void 0!==a&&(i.end=Object.assign({},_s(t.events,a)),e.add(a,0,[["exit",i,t]]),i=void 0),i}function Ss(e,t,n,r,a){const i=[],o=_s(t.events,n);a&&(a.end=Object.assign({},o),i.push(["exit",a,t])),r.end=Object.assign({},o),i.push(["exit",r,t]),e.add(n+1,0,i)}function _s(e,t){const n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}const Cs={name:"tasklistCheck",tokenize:function(e,t,n){const r=this;return function(t){if(null!==r.previous||!r._gfmTasklistFirstContentOfListItem)return n(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),a};function a(t){return Wn(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),i):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),i):n(t)}function i(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(t)}function o(r){return qn(r)?t(r):Qn(r)?e.check({tokenize:Ns},t,n)(r):n(r)}}};function Ns(e,t,n){return $n(e,function(e){return null===e?n(e):t(e)},"whitespace")}const Is={};function ws(e){const t=e||Is,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),a=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),i=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(function(e){return Rn([{text:as},{document:{91:{name:"gfmFootnoteDefinition",tokenize:ms,continuation:{tokenize:gs},exit:Es}},text:{91:{name:"gfmFootnoteCall",tokenize:fs},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:ps,resolveTo:hs}}},Ts(e),{flow:{null:{name:"table",tokenize:vs,resolveAll:ks}}},{text:{91:Cs}}])}(t)),a.push([{transforms:[qi],enter:{literalAutolink:Hi,literalAutolinkEmail:ji,literalAutolinkHttp:ji,literalAutolinkWww:ji},exit:{literalAutolink:Vi,literalAutolinkEmail:Yi,literalAutolinkHttp:zi,literalAutolinkWww:Gi}},{enter:{gfmFootnoteCallString:Xi,gfmFootnoteCall:Ji,gfmFootnoteDefinitionLabelString:Zi,gfmFootnoteDefinition:$i},exit:{gfmFootnoteCallString:eo,gfmFootnoteCall:to,gfmFootnoteDefinitionLabelString:no,gfmFootnoteDefinition:ro}},{canContainEols:["delete"],enter:{strikethrough:co},exit:{strikethrough:uo}},{enter:{table:Uo,tableData:Go,tableHeader:Go,tableRow:jo},exit:{codeText:Yo,table:Ho,tableData:zo,tableHeader:zo,tableRow:zo}},{exit:{taskListCheckValueChecked:Wo,taskListCheckValueUnchecked:Wo,paragraph:Qo}}]),i.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Bi,notInConstruct:Ui},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Bi,notInConstruct:Ui},{character:":",before:"[ps]",after:"\\/",inConstruct:Bi,notInConstruct:Ui}]},io(e),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:lo}],handlers:{delete:po}},qo(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Ko}}]}}(t))}const xs=/[#.]/g;function Os(e,t,n){const r=n?function(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}(n):void 0;return function(n,a,...i){let o;if(null==n){o={type:"root",children:[]};const e=a;i.unshift(e)}else{o=function(e,t){const n=e||"",r={};let a,i,o=0;for(;o<n.length;){xs.lastIndex=o;const e=xs.exec(n),t=n.slice(o,e?e.index:n.length);t&&(a?"#"===a?r.id=t:Array.isArray(r.className)?r.className.push(t):r.className=[t]:i=t,o+=t.length),e&&(a=e[0],o++)}return{type:"element",tagName:i||t||"div",properties:r,children:[]}}(n,t);const s=o.tagName.toLowerCase(),l=r?r.get(s):void 0;if(o.tagName=l||s,function(e){if(null===e||"object"!=typeof e||Array.isArray(e))return!0;if("string"!=typeof e.type)return!1;const t=e,n=Object.keys(e);for(const r of n){const e=t[r];if(e&&"object"==typeof e){if(!Array.isArray(e))return!0;const t=e;for(const e of t)if("number"!=typeof e&&"string"!=typeof e)return!0}}if("children"in e&&Array.isArray(e.children))return!0;return!1}(a))i.unshift(a);else for(const[t,n]of Object.entries(a))Ds(e,o.properties,t,n)}for(const e of i)Ls(o.children,e);return"element"===o.type&&"template"===o.tagName&&(o.content={type:"root",children:o.children},o.children=[]),o}}function Ds(e,t,n,r){const a=Rt(e,n);let i;if(null!=r){if("number"==typeof r){if(Number.isNaN(r))return;i=r}else i="boolean"==typeof r?r:"string"==typeof r?a.spaceSeparated?Ut(r):a.commaSeparated?Xe(r):a.commaOrSpaceSeparated?Ut(Xe(r).join(" ")):Rs(a,a.property,r):Array.isArray(r)?[...r]:"style"===a.property?function(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}(r):String(r);if(Array.isArray(i)){const e=[];for(const t of i)e.push(Rs(a,a.property,t));i=e}"className"===a.property&&Array.isArray(t.className)&&(i=t.className.concat(i)),t[a.property]=i}}function Ls(e,t){if(null==t);else if("number"==typeof t||"string"==typeof t)e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)Ls(e,n);else{if("object"!=typeof t||!("type"in t))throw new Error("Expected node, nodes, or string, got `"+t+"`");"root"===t.type?Ls(e,t.children):e.push(t)}}function Rs(e,t,n){if("string"==typeof n){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(""===n||ot(n)===ot(t)))return!0}return n}const Ps=Os(Ft,"div"),Ms=Os(Bt,"g",["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"]);function Fs(e,t){const n=e.indexOf("\r",t),r=e.indexOf("\n",t);return-1===r?n:-1===n||n+1===r?r:n<r?n:r}const Bs={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Us={}.hasOwnProperty,Hs=Object.prototype;function js(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},Gs(e,r,n),n}case"#document":case"#document-fragment":{const r=t,a="mode"in r&&("quirks"===r.mode||"limited-quirks"===r.mode);if(n={type:"root",children:zs(e,t.childNodes),data:{quirksMode:a}},e.file&&e.location){const t=String(e.file),r=function(e){const t=String(e),n=[];return{toOffset:function(e){if(e&&"number"==typeof e.line&&"number"==typeof e.column&&!Number.isNaN(e.line)&&!Number.isNaN(e.column)){for(;n.length<e.line;){const e=n[n.length-1],r=Fs(t,e),a=-1===r?t.length+1:r+1;if(e===a)break;n.push(a)}const r=(e.line>1?n[e.line-2]:0)+e.column-1;if(r<n[e.line-1])return r}},toPoint:function(e){if("number"==typeof e&&e>-1&&e<=t.length){let r=0;for(;;){let a=n[r];if(void 0===a){const e=Fs(t,n[r-1]);a=-1===e?t.length+1:e+1,n[r]=a}if(a>e)return{line:r+1,column:e-(r>0?n[r-1]:0)+1,offset:e};r++}}}}}(t),a=r.toPoint(0),i=r.toPoint(t.length);n.position={start:a,end:i}}return n}case"#documentType":return n={type:"doctype"},Gs(e,t,n),n;case"#text":{const r=t;return n={type:"text",value:r.value},Gs(e,r,n),n}default:return n=function(e,t){const n=e.schema;e.schema=t.namespaceURI===Bs.svg?Bt:Ft;let r=-1;const a={};for(;++r<t.attrs.length;){const e=t.attrs[r],n=(e.prefix?e.prefix+":":"")+e.name;Us.call(Hs,n)||(a[n]=e.value)}const i="svg"===e.schema.space?Ms:Ps,o=i(t.tagName,a,zs(e,t.childNodes));if(Gs(e,t,o),"template"===o.tagName){const n=t,r=n.sourceCodeLocation,a=r&&r.startTag&&Ys(r.startTag),i=r&&r.endTag&&Ys(r.endTag),s=js(e,n.content);a&&i&&e.file&&(s.position={start:a.end,end:i.start}),o.content=s}return e.schema=n,o}(e,t),n}}function zs(e,t){let n=-1;const r=[];for(;++n<t.length;){const a=js(e,t[n]);r.push(a)}return r}function Gs(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=function(e,t,n){const r=Ys(n);if("element"===t.type){const a=t.children[t.children.length-1];if(r&&!n.endTag&&a&&a.position&&a.position.end&&(r.end=Object.assign({},a.position.end)),e.verbose){const r={};let a;if(n.attrs)for(a in n.attrs)Us.call(n.attrs,a)&&(r[Rt(e.schema,a).property]=Ys(n.attrs[a]));n.startTag;const i=Ys(n.startTag),o=n.endTag?Ys(n.endTag):void 0,s={opening:i};o&&(s.closing=o),s.properties=r,t.data={position:s}}}return r}(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function Ys(e){const t=Vs({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=Vs({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function Vs(e){return e.line&&e.column?e:void 0}const qs={},Ws={}.hasOwnProperty,Qs=Eo("type",{handlers:{root:function(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=Xs(e.children,n,t),Js(e,n),n},element:function(e,t){const n=t;let r=n;"element"===e.type&&"svg"===e.tagName.toLowerCase()&&"html"===n.space&&(r=Bt);const a=[];let i;if(e.properties)for(i in e.properties)if("children"!==i&&Ws.call(e.properties,i)){const t=Ks(r,i,e.properties[i]);t&&a.push(t)}const o=r.space,s={nodeName:e.tagName,tagName:e.tagName,attrs:a,namespaceURI:Bs[o],childNodes:[],parentNode:null};s.childNodes=Xs(e.children,s,r),Js(e,s),"template"===e.tagName&&e.content&&(s.content=function(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=Xs(e.children,n,t),Js(e,n),n}(e.content,r));return s},text:function(e){const t={nodeName:"#text",value:e.value,parentNode:null};return Js(e,t),t},comment:function(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return Js(e,t),t},doctype:function(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Js(e,t),t}}});function Ks(e,t,n){const r=Rt(e,t);if(!1===n||null==n||"number"==typeof n&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?Je(n):Ht(n));const a={name:r.attribute,value:!0===n?"":String(n)};if(r.space&&"html"!==r.space&&"svg"!==r.space){const e=a.name.indexOf(":");e<0?a.prefix="":(a.name=a.name.slice(e+1),a.prefix=r.attribute.slice(0,e)),a.namespace=Bs[r.space]}return a}function Xs(e,t,n){let r=-1;const a=[];if(e)for(;++r<e.length;){const i=Qs(e[r],n);i.parentNode=t,a.push(i)}return a}function Js(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const Zs=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],$s=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),el="�";var tl,nl;(nl=tl||(tl={}))[nl.EOF=-1]="EOF",nl[nl.NULL=0]="NULL",nl[nl.TABULATION=9]="TABULATION",nl[nl.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",nl[nl.LINE_FEED=10]="LINE_FEED",nl[nl.FORM_FEED=12]="FORM_FEED",nl[nl.SPACE=32]="SPACE",nl[nl.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",nl[nl.QUOTATION_MARK=34]="QUOTATION_MARK",nl[nl.AMPERSAND=38]="AMPERSAND",nl[nl.APOSTROPHE=39]="APOSTROPHE",nl[nl.HYPHEN_MINUS=45]="HYPHEN_MINUS",nl[nl.SOLIDUS=47]="SOLIDUS",nl[nl.DIGIT_0=48]="DIGIT_0",nl[nl.DIGIT_9=57]="DIGIT_9",nl[nl.SEMICOLON=59]="SEMICOLON",nl[nl.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",nl[nl.EQUALS_SIGN=61]="EQUALS_SIGN",nl[nl.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",nl[nl.QUESTION_MARK=63]="QUESTION_MARK",nl[nl.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",nl[nl.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",nl[nl.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",nl[nl.GRAVE_ACCENT=96]="GRAVE_ACCENT",nl[nl.LATIN_SMALL_A=97]="LATIN_SMALL_A",nl[nl.LATIN_SMALL_Z=122]="LATIN_SMALL_Z";const rl="--",al="[CDATA[",il="doctype",ol="script",sl="public",ll="system";function cl(e){return e>=55296&&e<=57343}function ul(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159}function dl(e){return e>=64976&&e<=65007||$s.has(e)}var pl,hl;(hl=pl||(pl={})).controlCharacterInInputStream="control-character-in-input-stream",hl.noncharacterInInputStream="noncharacter-in-input-stream",hl.surrogateInInputStream="surrogate-in-input-stream",hl.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",hl.endTagWithAttributes="end-tag-with-attributes",hl.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",hl.unexpectedSolidusInTag="unexpected-solidus-in-tag",hl.unexpectedNullCharacter="unexpected-null-character",hl.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",hl.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",hl.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",hl.missingEndTagName="missing-end-tag-name",hl.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",hl.unknownNamedCharacterReference="unknown-named-character-reference",hl.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",hl.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",hl.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",hl.eofBeforeTagName="eof-before-tag-name",hl.eofInTag="eof-in-tag",hl.missingAttributeValue="missing-attribute-value",hl.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",hl.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",hl.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",hl.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",hl.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",hl.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",hl.missingDoctypePublicIdentifier="missing-doctype-public-identifier",hl.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",hl.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",hl.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",hl.cdataInHtmlContent="cdata-in-html-content",hl.incorrectlyOpenedComment="incorrectly-opened-comment",hl.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",hl.eofInDoctype="eof-in-doctype",hl.nestedComment="nested-comment",hl.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",hl.eofInComment="eof-in-comment",hl.incorrectlyClosedComment="incorrectly-closed-comment",hl.eofInCdata="eof-in-cdata",hl.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",hl.nullCharacterReference="null-character-reference",hl.surrogateCharacterReference="surrogate-character-reference",hl.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",hl.controlCharacterReference="control-character-reference",hl.noncharacterCharacterReference="noncharacter-character-reference",hl.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",hl.missingDoctypeName="missing-doctype-name",hl.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",hl.duplicateAttribute="duplicate-attribute",hl.nonConformingDoctype="non-conforming-doctype",hl.missingDoctype="missing-doctype",hl.misplacedDoctype="misplaced-doctype",hl.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",hl.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",hl.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",hl.openElementsLeftAfterEof="open-elements-left-after-eof",hl.abandonedHeadElementChild="abandoned-head-element-child",hl.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",hl.nestedNoscriptInHead="nested-noscript-in-head",hl.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text";class fl{constructor(e){this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e,t){const{line:n,col:r,offset:a}=this,i=r+t,o=a+t;return{code:e,startLine:n,endLine:n,startCol:i,endCol:i,startOffset:o,endOffset:o}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){const t=this.html.charCodeAt(this.pos+1);if(function(e){return e>=56320&&e<=57343}(t))return this.pos++,this._addGap(),1024*(e-55296)+9216+t}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,tl.EOF;return this._err(pl.surrogateInInputStream),e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(e,t){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,t){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(t)return this.html.startsWith(e,this.pos);for(let n=0;n<e.length;n++){if((32|this.html.charCodeAt(this.pos+n))!==e.charCodeAt(n))return!1}return!0}peek(e){const t=this.pos+e;if(t>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,tl.EOF;const n=this.html.charCodeAt(t);return n===tl.CARRIAGE_RETURN?tl.LINE_FEED:n}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,tl.EOF;let e=this.html.charCodeAt(this.pos);if(e===tl.CARRIAGE_RETURN)return this.isEol=!0,this.skipNextNewLine=!0,tl.LINE_FEED;if(e===tl.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine))return this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance();this.skipNextNewLine=!1,cl(e)&&(e=this._processSurrogate(e));return null===this.handler.onParseError||e>31&&e<127||e===tl.LINE_FEED||e===tl.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e}_checkForProblematicCharacters(e){ul(e)?this._err(pl.controlCharacterInInputStream):dl(e)&&this._err(pl.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var ml,gl;function El(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}(gl=ml||(ml={}))[gl.CHARACTER=0]="CHARACTER",gl[gl.NULL_CHARACTER=1]="NULL_CHARACTER",gl[gl.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",gl[gl.START_TAG=3]="START_TAG",gl[gl.END_TAG=4]="END_TAG",gl[gl.COMMENT=5]="COMMENT",gl[gl.DOCTYPE=6]="DOCTYPE",gl[gl.EOF=7]="EOF",gl[gl.HIBERNATION=8]="HIBERNATION";const Tl=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),yl=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);var bl,vl;(vl=bl||(bl={}))[vl.NUM=35]="NUM",vl[vl.SEMI=59]="SEMI",vl[vl.EQUALS=61]="EQUALS",vl[vl.ZERO=48]="ZERO",vl[vl.NINE=57]="NINE",vl[vl.LOWER_A=97]="LOWER_A",vl[vl.LOWER_F=102]="LOWER_F",vl[vl.LOWER_X=120]="LOWER_X",vl[vl.LOWER_Z=122]="LOWER_Z",vl[vl.UPPER_A=65]="UPPER_A",vl[vl.UPPER_F=70]="UPPER_F",vl[vl.UPPER_Z=90]="UPPER_Z";var kl,Al,Sl,_l,Cl,Nl,Il,wl,xl,Ol,Dl,Ll,Rl,Pl,Ml,Fl;function Bl(e){return e>=bl.ZERO&&e<=bl.NINE}function Ul(e){return e>=bl.UPPER_A&&e<=bl.UPPER_F||e>=bl.LOWER_A&&e<=bl.LOWER_F}function Hl(e){return e===bl.EQUALS||function(e){return e>=bl.UPPER_A&&e<=bl.UPPER_Z||e>=bl.LOWER_A&&e<=bl.LOWER_Z||Bl(e)}(e)}(Al=kl||(kl={}))[Al.VALUE_LENGTH=49152]="VALUE_LENGTH",Al[Al.BRANCH_LENGTH=16256]="BRANCH_LENGTH",Al[Al.JUMP_TABLE=127]="JUMP_TABLE",(_l=Sl||(Sl={}))[_l.EntityStart=0]="EntityStart",_l[_l.NumericStart=1]="NumericStart",_l[_l.NumericDecimal=2]="NumericDecimal",_l[_l.NumericHex=3]="NumericHex",_l[_l.NamedEntity=4]="NamedEntity",(Nl=Cl||(Cl={}))[Nl.Legacy=0]="Legacy",Nl[Nl.Strict=1]="Strict",Nl[Nl.Attribute=2]="Attribute";class jl{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=Sl.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Cl.Strict}startEntity(e){this.decodeMode=e,this.state=Sl.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case Sl.EntityStart:return e.charCodeAt(t)===bl.NUM?(this.state=Sl.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=Sl.NamedEntity,this.stateNamedEntity(e,t));case Sl.NumericStart:return this.stateNumericStart(e,t);case Sl.NumericDecimal:return this.stateNumericDecimal(e,t);case Sl.NumericHex:return this.stateNumericHex(e,t);case Sl.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===bl.LOWER_X?(this.state=Sl.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=Sl.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){const a=n-t;this.result=this.result*Math.pow(r,a)+Number.parseInt(e.substr(t,a),r),this.consumed+=a}}stateNumericHex(e,t){const n=t;for(;t<e.length;){const r=e.charCodeAt(t);if(!Bl(r)&&!Ul(r))return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(r,3);t+=1}return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){const n=t;for(;t<e.length;){const r=e.charCodeAt(t);if(!Bl(r))return this.addToNumericResult(e,n,t,10),this.emitNumericEntity(r,2);t+=1}return this.addToNumericResult(e,n,t,10),-1}emitNumericEntity(e,t){var n;if(this.consumed<=t)return null===(n=this.errors)||void 0===n||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===bl.SEMI)this.consumed+=1;else if(this.decodeMode===Cl.Strict)return 0;return this.emitCodePoint(function(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=yl.get(e))&&void 0!==t?t:e}(this.result),this.consumed),this.errors&&(e!==bl.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){const{decodeTree:n}=this;let r=n[this.treeIndex],a=(r&kl.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){const i=e.charCodeAt(t);if(this.treeIndex=zl(n,r,this.treeIndex+Math.max(1,a),i),this.treeIndex<0)return 0===this.result||this.decodeMode===Cl.Attribute&&(0===a||Hl(i))?0:this.emitNotTerminatedNamedEntity();if(r=n[this.treeIndex],a=(r&kl.VALUE_LENGTH)>>14,0!==a){if(i===bl.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==Cl.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:t,decodeTree:n}=this,r=(n[t]&kl.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){const{decodeTree:r}=this;return this.emitCodePoint(1===t?r[e]&~kl.VALUE_LENGTH:r[e+1],n),3===t&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case Sl.NamedEntity:return 0===this.result||this.decodeMode===Cl.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case Sl.NumericDecimal:return this.emitNumericEntity(0,2);case Sl.NumericHex:return this.emitNumericEntity(0,3);case Sl.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Sl.EntityStart:return 0}}}function zl(e,t,n,r){const a=(t&kl.BRANCH_LENGTH)>>7,i=t&kl.JUMP_TABLE;if(0===a)return 0!==i&&r===i?n:-1;if(i){const t=r-i;return t<0||t>=a?-1:e[n+t]-1}let o=n,s=o+a-1;for(;o<=s;){const t=o+s>>>1,n=e[t];if(n<r)o=t+1;else{if(!(n>r))return e[t+a];s=t-1}}return-1}(wl=Il||(Il={})).HTML="http://www.w3.org/1999/xhtml",wl.MATHML="http://www.w3.org/1998/Math/MathML",wl.SVG="http://www.w3.org/2000/svg",wl.XLINK="http://www.w3.org/1999/xlink",wl.XML="http://www.w3.org/XML/1998/namespace",wl.XMLNS="http://www.w3.org/2000/xmlns/",(Ol=xl||(xl={})).TYPE="type",Ol.ACTION="action",Ol.ENCODING="encoding",Ol.PROMPT="prompt",Ol.NAME="name",Ol.COLOR="color",Ol.FACE="face",Ol.SIZE="size",(Ll=Dl||(Dl={})).NO_QUIRKS="no-quirks",Ll.QUIRKS="quirks",Ll.LIMITED_QUIRKS="limited-quirks",(Pl=Rl||(Rl={})).A="a",Pl.ADDRESS="address",Pl.ANNOTATION_XML="annotation-xml",Pl.APPLET="applet",Pl.AREA="area",Pl.ARTICLE="article",Pl.ASIDE="aside",Pl.B="b",Pl.BASE="base",Pl.BASEFONT="basefont",Pl.BGSOUND="bgsound",Pl.BIG="big",Pl.BLOCKQUOTE="blockquote",Pl.BODY="body",Pl.BR="br",Pl.BUTTON="button",Pl.CAPTION="caption",Pl.CENTER="center",Pl.CODE="code",Pl.COL="col",Pl.COLGROUP="colgroup",Pl.DD="dd",Pl.DESC="desc",Pl.DETAILS="details",Pl.DIALOG="dialog",Pl.DIR="dir",Pl.DIV="div",Pl.DL="dl",Pl.DT="dt",Pl.EM="em",Pl.EMBED="embed",Pl.FIELDSET="fieldset",Pl.FIGCAPTION="figcaption",Pl.FIGURE="figure",Pl.FONT="font",Pl.FOOTER="footer",Pl.FOREIGN_OBJECT="foreignObject",Pl.FORM="form",Pl.FRAME="frame",Pl.FRAMESET="frameset",Pl.H1="h1",Pl.H2="h2",Pl.H3="h3",Pl.H4="h4",Pl.H5="h5",Pl.H6="h6",Pl.HEAD="head",Pl.HEADER="header",Pl.HGROUP="hgroup",Pl.HR="hr",Pl.HTML="html",Pl.I="i",Pl.IMG="img",Pl.IMAGE="image",Pl.INPUT="input",Pl.IFRAME="iframe",Pl.KEYGEN="keygen",Pl.LABEL="label",Pl.LI="li",Pl.LINK="link",Pl.LISTING="listing",Pl.MAIN="main",Pl.MALIGNMARK="malignmark",Pl.MARQUEE="marquee",Pl.MATH="math",Pl.MENU="menu",Pl.META="meta",Pl.MGLYPH="mglyph",Pl.MI="mi",Pl.MO="mo",Pl.MN="mn",Pl.MS="ms",Pl.MTEXT="mtext",Pl.NAV="nav",Pl.NOBR="nobr",Pl.NOFRAMES="noframes",Pl.NOEMBED="noembed",Pl.NOSCRIPT="noscript",Pl.OBJECT="object",Pl.OL="ol",Pl.OPTGROUP="optgroup",Pl.OPTION="option",Pl.P="p",Pl.PARAM="param",Pl.PLAINTEXT="plaintext",Pl.PRE="pre",Pl.RB="rb",Pl.RP="rp",Pl.RT="rt",Pl.RTC="rtc",Pl.RUBY="ruby",Pl.S="s",Pl.SCRIPT="script",Pl.SEARCH="search",Pl.SECTION="section",Pl.SELECT="select",Pl.SOURCE="source",Pl.SMALL="small",Pl.SPAN="span",Pl.STRIKE="strike",Pl.STRONG="strong",Pl.STYLE="style",Pl.SUB="sub",Pl.SUMMARY="summary",Pl.SUP="sup",Pl.TABLE="table",Pl.TBODY="tbody",Pl.TEMPLATE="template",Pl.TEXTAREA="textarea",Pl.TFOOT="tfoot",Pl.TD="td",Pl.TH="th",Pl.THEAD="thead",Pl.TITLE="title",Pl.TR="tr",Pl.TRACK="track",Pl.TT="tt",Pl.U="u",Pl.UL="ul",Pl.SVG="svg",Pl.VAR="var",Pl.WBR="wbr",Pl.XMP="xmp",(Fl=Ml||(Ml={}))[Fl.UNKNOWN=0]="UNKNOWN",Fl[Fl.A=1]="A",Fl[Fl.ADDRESS=2]="ADDRESS",Fl[Fl.ANNOTATION_XML=3]="ANNOTATION_XML",Fl[Fl.APPLET=4]="APPLET",Fl[Fl.AREA=5]="AREA",Fl[Fl.ARTICLE=6]="ARTICLE",Fl[Fl.ASIDE=7]="ASIDE",Fl[Fl.B=8]="B",Fl[Fl.BASE=9]="BASE",Fl[Fl.BASEFONT=10]="BASEFONT",Fl[Fl.BGSOUND=11]="BGSOUND",Fl[Fl.BIG=12]="BIG",Fl[Fl.BLOCKQUOTE=13]="BLOCKQUOTE",Fl[Fl.BODY=14]="BODY",Fl[Fl.BR=15]="BR",Fl[Fl.BUTTON=16]="BUTTON",Fl[Fl.CAPTION=17]="CAPTION",Fl[Fl.CENTER=18]="CENTER",Fl[Fl.CODE=19]="CODE",Fl[Fl.COL=20]="COL",Fl[Fl.COLGROUP=21]="COLGROUP",Fl[Fl.DD=22]="DD",Fl[Fl.DESC=23]="DESC",Fl[Fl.DETAILS=24]="DETAILS",Fl[Fl.DIALOG=25]="DIALOG",Fl[Fl.DIR=26]="DIR",Fl[Fl.DIV=27]="DIV",Fl[Fl.DL=28]="DL",Fl[Fl.DT=29]="DT",Fl[Fl.EM=30]="EM",Fl[Fl.EMBED=31]="EMBED",Fl[Fl.FIELDSET=32]="FIELDSET",Fl[Fl.FIGCAPTION=33]="FIGCAPTION",Fl[Fl.FIGURE=34]="FIGURE",Fl[Fl.FONT=35]="FONT",Fl[Fl.FOOTER=36]="FOOTER",Fl[Fl.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",Fl[Fl.FORM=38]="FORM",Fl[Fl.FRAME=39]="FRAME",Fl[Fl.FRAMESET=40]="FRAMESET",Fl[Fl.H1=41]="H1",Fl[Fl.H2=42]="H2",Fl[Fl.H3=43]="H3",Fl[Fl.H4=44]="H4",Fl[Fl.H5=45]="H5",Fl[Fl.H6=46]="H6",Fl[Fl.HEAD=47]="HEAD",Fl[Fl.HEADER=48]="HEADER",Fl[Fl.HGROUP=49]="HGROUP",Fl[Fl.HR=50]="HR",Fl[Fl.HTML=51]="HTML",Fl[Fl.I=52]="I",Fl[Fl.IMG=53]="IMG",Fl[Fl.IMAGE=54]="IMAGE",Fl[Fl.INPUT=55]="INPUT",Fl[Fl.IFRAME=56]="IFRAME",Fl[Fl.KEYGEN=57]="KEYGEN",Fl[Fl.LABEL=58]="LABEL",Fl[Fl.LI=59]="LI",Fl[Fl.LINK=60]="LINK",Fl[Fl.LISTING=61]="LISTING",Fl[Fl.MAIN=62]="MAIN",Fl[Fl.MALIGNMARK=63]="MALIGNMARK",Fl[Fl.MARQUEE=64]="MARQUEE",Fl[Fl.MATH=65]="MATH",Fl[Fl.MENU=66]="MENU",Fl[Fl.META=67]="META",Fl[Fl.MGLYPH=68]="MGLYPH",Fl[Fl.MI=69]="MI",Fl[Fl.MO=70]="MO",Fl[Fl.MN=71]="MN",Fl[Fl.MS=72]="MS",Fl[Fl.MTEXT=73]="MTEXT",Fl[Fl.NAV=74]="NAV",Fl[Fl.NOBR=75]="NOBR",Fl[Fl.NOFRAMES=76]="NOFRAMES",Fl[Fl.NOEMBED=77]="NOEMBED",Fl[Fl.NOSCRIPT=78]="NOSCRIPT",Fl[Fl.OBJECT=79]="OBJECT",Fl[Fl.OL=80]="OL",Fl[Fl.OPTGROUP=81]="OPTGROUP",Fl[Fl.OPTION=82]="OPTION",Fl[Fl.P=83]="P",Fl[Fl.PARAM=84]="PARAM",Fl[Fl.PLAINTEXT=85]="PLAINTEXT",Fl[Fl.PRE=86]="PRE",Fl[Fl.RB=87]="RB",Fl[Fl.RP=88]="RP",Fl[Fl.RT=89]="RT",Fl[Fl.RTC=90]="RTC",Fl[Fl.RUBY=91]="RUBY",Fl[Fl.S=92]="S",Fl[Fl.SCRIPT=93]="SCRIPT",Fl[Fl.SEARCH=94]="SEARCH",Fl[Fl.SECTION=95]="SECTION",Fl[Fl.SELECT=96]="SELECT",Fl[Fl.SOURCE=97]="SOURCE",Fl[Fl.SMALL=98]="SMALL",Fl[Fl.SPAN=99]="SPAN",Fl[Fl.STRIKE=100]="STRIKE",Fl[Fl.STRONG=101]="STRONG",Fl[Fl.STYLE=102]="STYLE",Fl[Fl.SUB=103]="SUB",Fl[Fl.SUMMARY=104]="SUMMARY",Fl[Fl.SUP=105]="SUP",Fl[Fl.TABLE=106]="TABLE",Fl[Fl.TBODY=107]="TBODY",Fl[Fl.TEMPLATE=108]="TEMPLATE",Fl[Fl.TEXTAREA=109]="TEXTAREA",Fl[Fl.TFOOT=110]="TFOOT",Fl[Fl.TD=111]="TD",Fl[Fl.TH=112]="TH",Fl[Fl.THEAD=113]="THEAD",Fl[Fl.TITLE=114]="TITLE",Fl[Fl.TR=115]="TR",Fl[Fl.TRACK=116]="TRACK",Fl[Fl.TT=117]="TT",Fl[Fl.U=118]="U",Fl[Fl.UL=119]="UL",Fl[Fl.SVG=120]="SVG",Fl[Fl.VAR=121]="VAR",Fl[Fl.WBR=122]="WBR",Fl[Fl.XMP=123]="XMP";const Gl=new Map([[Rl.A,Ml.A],[Rl.ADDRESS,Ml.ADDRESS],[Rl.ANNOTATION_XML,Ml.ANNOTATION_XML],[Rl.APPLET,Ml.APPLET],[Rl.AREA,Ml.AREA],[Rl.ARTICLE,Ml.ARTICLE],[Rl.ASIDE,Ml.ASIDE],[Rl.B,Ml.B],[Rl.BASE,Ml.BASE],[Rl.BASEFONT,Ml.BASEFONT],[Rl.BGSOUND,Ml.BGSOUND],[Rl.BIG,Ml.BIG],[Rl.BLOCKQUOTE,Ml.BLOCKQUOTE],[Rl.BODY,Ml.BODY],[Rl.BR,Ml.BR],[Rl.BUTTON,Ml.BUTTON],[Rl.CAPTION,Ml.CAPTION],[Rl.CENTER,Ml.CENTER],[Rl.CODE,Ml.CODE],[Rl.COL,Ml.COL],[Rl.COLGROUP,Ml.COLGROUP],[Rl.DD,Ml.DD],[Rl.DESC,Ml.DESC],[Rl.DETAILS,Ml.DETAILS],[Rl.DIALOG,Ml.DIALOG],[Rl.DIR,Ml.DIR],[Rl.DIV,Ml.DIV],[Rl.DL,Ml.DL],[Rl.DT,Ml.DT],[Rl.EM,Ml.EM],[Rl.EMBED,Ml.EMBED],[Rl.FIELDSET,Ml.FIELDSET],[Rl.FIGCAPTION,Ml.FIGCAPTION],[Rl.FIGURE,Ml.FIGURE],[Rl.FONT,Ml.FONT],[Rl.FOOTER,Ml.FOOTER],[Rl.FOREIGN_OBJECT,Ml.FOREIGN_OBJECT],[Rl.FORM,Ml.FORM],[Rl.FRAME,Ml.FRAME],[Rl.FRAMESET,Ml.FRAMESET],[Rl.H1,Ml.H1],[Rl.H2,Ml.H2],[Rl.H3,Ml.H3],[Rl.H4,Ml.H4],[Rl.H5,Ml.H5],[Rl.H6,Ml.H6],[Rl.HEAD,Ml.HEAD],[Rl.HEADER,Ml.HEADER],[Rl.HGROUP,Ml.HGROUP],[Rl.HR,Ml.HR],[Rl.HTML,Ml.HTML],[Rl.I,Ml.I],[Rl.IMG,Ml.IMG],[Rl.IMAGE,Ml.IMAGE],[Rl.INPUT,Ml.INPUT],[Rl.IFRAME,Ml.IFRAME],[Rl.KEYGEN,Ml.KEYGEN],[Rl.LABEL,Ml.LABEL],[Rl.LI,Ml.LI],[Rl.LINK,Ml.LINK],[Rl.LISTING,Ml.LISTING],[Rl.MAIN,Ml.MAIN],[Rl.MALIGNMARK,Ml.MALIGNMARK],[Rl.MARQUEE,Ml.MARQUEE],[Rl.MATH,Ml.MATH],[Rl.MENU,Ml.MENU],[Rl.META,Ml.META],[Rl.MGLYPH,Ml.MGLYPH],[Rl.MI,Ml.MI],[Rl.MO,Ml.MO],[Rl.MN,Ml.MN],[Rl.MS,Ml.MS],[Rl.MTEXT,Ml.MTEXT],[Rl.NAV,Ml.NAV],[Rl.NOBR,Ml.NOBR],[Rl.NOFRAMES,Ml.NOFRAMES],[Rl.NOEMBED,Ml.NOEMBED],[Rl.NOSCRIPT,Ml.NOSCRIPT],[Rl.OBJECT,Ml.OBJECT],[Rl.OL,Ml.OL],[Rl.OPTGROUP,Ml.OPTGROUP],[Rl.OPTION,Ml.OPTION],[Rl.P,Ml.P],[Rl.PARAM,Ml.PARAM],[Rl.PLAINTEXT,Ml.PLAINTEXT],[Rl.PRE,Ml.PRE],[Rl.RB,Ml.RB],[Rl.RP,Ml.RP],[Rl.RT,Ml.RT],[Rl.RTC,Ml.RTC],[Rl.RUBY,Ml.RUBY],[Rl.S,Ml.S],[Rl.SCRIPT,Ml.SCRIPT],[Rl.SEARCH,Ml.SEARCH],[Rl.SECTION,Ml.SECTION],[Rl.SELECT,Ml.SELECT],[Rl.SOURCE,Ml.SOURCE],[Rl.SMALL,Ml.SMALL],[Rl.SPAN,Ml.SPAN],[Rl.STRIKE,Ml.STRIKE],[Rl.STRONG,Ml.STRONG],[Rl.STYLE,Ml.STYLE],[Rl.SUB,Ml.SUB],[Rl.SUMMARY,Ml.SUMMARY],[Rl.SUP,Ml.SUP],[Rl.TABLE,Ml.TABLE],[Rl.TBODY,Ml.TBODY],[Rl.TEMPLATE,Ml.TEMPLATE],[Rl.TEXTAREA,Ml.TEXTAREA],[Rl.TFOOT,Ml.TFOOT],[Rl.TD,Ml.TD],[Rl.TH,Ml.TH],[Rl.THEAD,Ml.THEAD],[Rl.TITLE,Ml.TITLE],[Rl.TR,Ml.TR],[Rl.TRACK,Ml.TRACK],[Rl.TT,Ml.TT],[Rl.U,Ml.U],[Rl.UL,Ml.UL],[Rl.SVG,Ml.SVG],[Rl.VAR,Ml.VAR],[Rl.WBR,Ml.WBR],[Rl.XMP,Ml.XMP]]);function Yl(e){var t;return null!==(t=Gl.get(e))&&void 0!==t?t:Ml.UNKNOWN}const Vl=Ml,ql={[Il.HTML]:new Set([Vl.ADDRESS,Vl.APPLET,Vl.AREA,Vl.ARTICLE,Vl.ASIDE,Vl.BASE,Vl.BASEFONT,Vl.BGSOUND,Vl.BLOCKQUOTE,Vl.BODY,Vl.BR,Vl.BUTTON,Vl.CAPTION,Vl.CENTER,Vl.COL,Vl.COLGROUP,Vl.DD,Vl.DETAILS,Vl.DIR,Vl.DIV,Vl.DL,Vl.DT,Vl.EMBED,Vl.FIELDSET,Vl.FIGCAPTION,Vl.FIGURE,Vl.FOOTER,Vl.FORM,Vl.FRAME,Vl.FRAMESET,Vl.H1,Vl.H2,Vl.H3,Vl.H4,Vl.H5,Vl.H6,Vl.HEAD,Vl.HEADER,Vl.HGROUP,Vl.HR,Vl.HTML,Vl.IFRAME,Vl.IMG,Vl.INPUT,Vl.LI,Vl.LINK,Vl.LISTING,Vl.MAIN,Vl.MARQUEE,Vl.MENU,Vl.META,Vl.NAV,Vl.NOEMBED,Vl.NOFRAMES,Vl.NOSCRIPT,Vl.OBJECT,Vl.OL,Vl.P,Vl.PARAM,Vl.PLAINTEXT,Vl.PRE,Vl.SCRIPT,Vl.SECTION,Vl.SELECT,Vl.SOURCE,Vl.STYLE,Vl.SUMMARY,Vl.TABLE,Vl.TBODY,Vl.TD,Vl.TEMPLATE,Vl.TEXTAREA,Vl.TFOOT,Vl.TH,Vl.THEAD,Vl.TITLE,Vl.TR,Vl.TRACK,Vl.UL,Vl.WBR,Vl.XMP]),[Il.MATHML]:new Set([Vl.MI,Vl.MO,Vl.MN,Vl.MS,Vl.MTEXT,Vl.ANNOTATION_XML]),[Il.SVG]:new Set([Vl.TITLE,Vl.FOREIGN_OBJECT,Vl.DESC]),[Il.XLINK]:new Set,[Il.XML]:new Set,[Il.XMLNS]:new Set},Wl=new Set([Vl.H1,Vl.H2,Vl.H3,Vl.H4,Vl.H5,Vl.H6]);var Ql,Kl;Rl.STYLE,Rl.SCRIPT,Rl.XMP,Rl.IFRAME,Rl.NOEMBED,Rl.NOFRAMES,Rl.PLAINTEXT,(Kl=Ql||(Ql={}))[Kl.DATA=0]="DATA",Kl[Kl.RCDATA=1]="RCDATA",Kl[Kl.RAWTEXT=2]="RAWTEXT",Kl[Kl.SCRIPT_DATA=3]="SCRIPT_DATA",Kl[Kl.PLAINTEXT=4]="PLAINTEXT",Kl[Kl.TAG_OPEN=5]="TAG_OPEN",Kl[Kl.END_TAG_OPEN=6]="END_TAG_OPEN",Kl[Kl.TAG_NAME=7]="TAG_NAME",Kl[Kl.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",Kl[Kl.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",Kl[Kl.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",Kl[Kl.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",Kl[Kl.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",Kl[Kl.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",Kl[Kl.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",Kl[Kl.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",Kl[Kl.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",Kl[Kl.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",Kl[Kl.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",Kl[Kl.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",Kl[Kl.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",Kl[Kl.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",Kl[Kl.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",Kl[Kl.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",Kl[Kl.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",Kl[Kl.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",Kl[Kl.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",Kl[Kl.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",Kl[Kl.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",Kl[Kl.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",Kl[Kl.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",Kl[Kl.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",Kl[Kl.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",Kl[Kl.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",Kl[Kl.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",Kl[Kl.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",Kl[Kl.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",Kl[Kl.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",Kl[Kl.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",Kl[Kl.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",Kl[Kl.BOGUS_COMMENT=40]="BOGUS_COMMENT",Kl[Kl.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",Kl[Kl.COMMENT_START=42]="COMMENT_START",Kl[Kl.COMMENT_START_DASH=43]="COMMENT_START_DASH",Kl[Kl.COMMENT=44]="COMMENT",Kl[Kl.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",Kl[Kl.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",Kl[Kl.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",Kl[Kl.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",Kl[Kl.COMMENT_END_DASH=49]="COMMENT_END_DASH",Kl[Kl.COMMENT_END=50]="COMMENT_END",Kl[Kl.COMMENT_END_BANG=51]="COMMENT_END_BANG",Kl[Kl.DOCTYPE=52]="DOCTYPE",Kl[Kl.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",Kl[Kl.DOCTYPE_NAME=54]="DOCTYPE_NAME",Kl[Kl.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",Kl[Kl.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",Kl[Kl.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",Kl[Kl.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",Kl[Kl.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",Kl[Kl.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",Kl[Kl.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",Kl[Kl.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",Kl[Kl.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",Kl[Kl.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",Kl[Kl.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",Kl[Kl.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",Kl[Kl.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",Kl[Kl.CDATA_SECTION=68]="CDATA_SECTION",Kl[Kl.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",Kl[Kl.CDATA_SECTION_END=70]="CDATA_SECTION_END",Kl[Kl.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",Kl[Kl.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND";const Xl={DATA:Ql.DATA,RCDATA:Ql.RCDATA,RAWTEXT:Ql.RAWTEXT,SCRIPT_DATA:Ql.SCRIPT_DATA,PLAINTEXT:Ql.PLAINTEXT,CDATA_SECTION:Ql.CDATA_SECTION};function Jl(e){return e>=tl.LATIN_CAPITAL_A&&e<=tl.LATIN_CAPITAL_Z}function Zl(e){return function(e){return e>=tl.LATIN_SMALL_A&&e<=tl.LATIN_SMALL_Z}(e)||Jl(e)}function $l(e){return Zl(e)||function(e){return e>=tl.DIGIT_0&&e<=tl.DIGIT_9}(e)}function ec(e){return e+32}function tc(e){return e===tl.SPACE||e===tl.LINE_FEED||e===tl.TABULATION||e===tl.FORM_FEED}function nc(e){return tc(e)||e===tl.SOLIDUS||e===tl.GREATER_THAN_SIGN}class rc{constructor(e,t){this.options=e,this.handler=t,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=Ql.DATA,this.returnState=Ql.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new fl(t),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new jl(Tl,(e,t)=>{this.preprocessor.pos=this.entityStartPos+t-1,this._flushCodePointConsumedAsCharacterReference(e)},t.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(pl.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:e=>{this._err(pl.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+e)},validateNumericCharacterReference:e=>{const t=function(e){return e===tl.NULL?pl.nullCharacterReference:e>1114111?pl.characterReferenceOutsideUnicodeRange:cl(e)?pl.surrogateCharacterReference:dl(e)?pl.noncharacterCharacterReference:ul(e)||e===tl.CARRIAGE_RETURN?pl.controlCharacterReference:null}(e);t&&this._err(t,1)}}:void 0)}_err(e,t=0){var n,r;null===(r=(n=this.handler).onParseError)||void 0===r||r.call(n,this.preprocessor.getError(e,t))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,this.inLoop||(this._runParsingLoop(),this.paused||null==e||e())}write(e,t,n){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),this.paused||null==n||n()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return!!this.preprocessor.endOfChunkHit&&(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0)}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t<e;t++)this.preprocessor.advance()}_consumeSequenceIfMatch(e,t){return!!this.preprocessor.startsWith(e,t)&&(this._advanceBy(e.length-1),!0)}_createStartTagToken(){this.currentToken={type:ml.START_TAG,tagName:"",tagID:Ml.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:ml.END_TAG,tagName:"",tagID:Ml.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(e){this.currentToken={type:ml.COMMENT,data:"",location:this.getCurrentLocation(e)}}_createDoctypeToken(e){this.currentToken={type:ml.DOCTYPE,name:e,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t,location:this.currentLocation}}_createAttr(e){this.currentAttr={name:e,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var e,t;const n=this.currentToken;if(null===El(n,this.currentAttr.name)){if(n.attrs.push(this.currentAttr),n.location&&this.currentLocation){(null!==(e=(t=n.location).attrs)&&void 0!==e?e:t.attrs=Object.create(null))[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(pl.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(e){this._emitCurrentCharacterToken(e.location),this.currentToken=null,e.location&&(e.location.endLine=this.preprocessor.line,e.location.endCol=this.preprocessor.col+1,e.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const e=this.currentToken;this.prepareToken(e),e.tagID=Yl(e.tagName),e.type===ml.START_TAG?(this.lastStartTagName=e.tagName,this.handler.onStartTag(e)):(e.attrs.length>0&&this._err(pl.endTagWithAttributes),e.selfClosing&&this._err(pl.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case ml.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case ml.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case ml.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken)}this.currentCharacterToken=null}}_emitEOFToken(){const e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:ml.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken){if(this.currentCharacterToken.type===e)return void(this.currentCharacterToken.chars+=t);this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk()}this._createCharacterToken(e,t)}_emitCodePoint(e){const t=tc(e)?ml.WHITESPACE_CHARACTER:e===tl.NULL?ml.NULL_CHARACTER:ml.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(ml.CHARACTER,e)}_startCharacterReference(){this.returnState=this.state,this.state=Ql.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Cl.Attribute:Cl.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===Ql.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===Ql.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===Ql.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case Ql.DATA:this._stateData(e);break;case Ql.RCDATA:this._stateRcdata(e);break;case Ql.RAWTEXT:this._stateRawtext(e);break;case Ql.SCRIPT_DATA:this._stateScriptData(e);break;case Ql.PLAINTEXT:this._statePlaintext(e);break;case Ql.TAG_OPEN:this._stateTagOpen(e);break;case Ql.END_TAG_OPEN:this._stateEndTagOpen(e);break;case Ql.TAG_NAME:this._stateTagName(e);break;case Ql.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case Ql.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case Ql.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case Ql.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case Ql.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case Ql.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case Ql.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case Ql.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case Ql.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case Ql.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case Ql.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case Ql.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case Ql.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case Ql.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case Ql.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case Ql.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case Ql.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case Ql.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(e);break;case Ql.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case Ql.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case Ql.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case Ql.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case Ql.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case Ql.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case Ql.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case Ql.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case Ql.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case Ql.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case Ql.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case Ql.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case Ql.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case Ql.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case Ql.BOGUS_COMMENT:this._stateBogusComment(e);break;case Ql.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case Ql.COMMENT_START:this._stateCommentStart(e);break;case Ql.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case Ql.COMMENT:this._stateComment(e);break;case Ql.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case Ql.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case Ql.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case Ql.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case Ql.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case Ql.COMMENT_END:this._stateCommentEnd(e);break;case Ql.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case Ql.DOCTYPE:this._stateDoctype(e);break;case Ql.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case Ql.DOCTYPE_NAME:this._stateDoctypeName(e);break;case Ql.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case Ql.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case Ql.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case Ql.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case Ql.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case Ql.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case Ql.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case Ql.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case Ql.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(e);break;case Ql.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case Ql.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case Ql.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case Ql.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case Ql.CDATA_SECTION:this._stateCdataSection(e);break;case Ql.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case Ql.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case Ql.CHARACTER_REFERENCE:this._stateCharacterReference();break;case Ql.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;default:throw new Error("Unknown state")}}_stateData(e){switch(e){case tl.LESS_THAN_SIGN:this.state=Ql.TAG_OPEN;break;case tl.AMPERSAND:this._startCharacterReference();break;case tl.NULL:this._err(pl.unexpectedNullCharacter),this._emitCodePoint(e);break;case tl.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case tl.AMPERSAND:this._startCharacterReference();break;case tl.LESS_THAN_SIGN:this.state=Ql.RCDATA_LESS_THAN_SIGN;break;case tl.NULL:this._err(pl.unexpectedNullCharacter),this._emitChars(el);break;case tl.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case tl.LESS_THAN_SIGN:this.state=Ql.RAWTEXT_LESS_THAN_SIGN;break;case tl.NULL:this._err(pl.unexpectedNullCharacter),this._emitChars(el);break;case tl.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case tl.LESS_THAN_SIGN:this.state=Ql.SCRIPT_DATA_LESS_THAN_SIGN;break;case tl.NULL:this._err(pl.unexpectedNullCharacter),this._emitChars(el);break;case tl.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case tl.NULL:this._err(pl.unexpectedNullCharacter),this._emitChars(el);break;case tl.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateTagOpen(e){if(Zl(e))this._createStartTagToken(),this.state=Ql.TAG_NAME,this._stateTagName(e);else switch(e){case tl.EXCLAMATION_MARK:this.state=Ql.MARKUP_DECLARATION_OPEN;break;case tl.SOLIDUS:this.state=Ql.END_TAG_OPEN;break;case tl.QUESTION_MARK:this._err(pl.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=Ql.BOGUS_COMMENT,this._stateBogusComment(e);break;case tl.EOF:this._err(pl.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break;default:this._err(pl.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=Ql.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(Zl(e))this._createEndTagToken(),this.state=Ql.TAG_NAME,this._stateTagName(e);else switch(e){case tl.GREATER_THAN_SIGN:this._err(pl.missingEndTagName),this.state=Ql.DATA;break;case tl.EOF:this._err(pl.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break;default:this._err(pl.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=Ql.BOGUS_COMMENT,this._stateBogusComment(e)}}_stateTagName(e){const t=this.currentToken;switch(e){case tl.SPACE:case tl.LINE_FEED:case tl.TABULATION:case tl.FORM_FEED:this.state=Ql.BEFORE_ATTRIBUTE_NAME;break;case tl.SOLIDUS:this.state=Ql.SELF_CLOSING_START_TAG;break;case tl.GREATER_THAN_SIGN:this.state=Ql.DATA,this.emitCurrentTagToken();break;case tl.NULL:this._err(pl.unexpectedNullCharacter),t.tagName+=el;break;case tl.EOF:this._err(pl.eofInTag),this._emitEOFToken();break;default:t.tagName+=String.fromCodePoint(Jl(e)?ec(e):e)}}_stateRcdataLessThanSign(e){e===tl.SOLIDUS?this.state=Ql.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=Ql.RCDATA,this._stateRcdata(e))}_stateRcdataEndTagOpen(e){Zl(e)?(this.state=Ql.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(e)):(this._emitChars("</"),this.state=Ql.RCDATA,this._stateRcdata(e))}handleSpecialEndTag(e){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();this.currentToken.tagName=this.lastStartTagName;switch(this.preprocessor.peek(this.lastStartTagName.length)){case tl.SPACE:case tl.LINE_FEED:case tl.TABULATION:case tl.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=Ql.BEFORE_ATTRIBUTE_NAME,!1;case tl.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=Ql.SELF_CLOSING_START_TAG,!1;case tl.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=Ql.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=Ql.RCDATA,this._stateRcdata(e))}_stateRawtextLessThanSign(e){e===tl.SOLIDUS?this.state=Ql.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=Ql.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagOpen(e){Zl(e)?(this.state=Ql.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(e)):(this._emitChars("</"),this.state=Ql.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=Ql.RAWTEXT,this._stateRawtext(e))}_stateScriptDataLessThanSign(e){switch(e){case tl.SOLIDUS:this.state=Ql.SCRIPT_DATA_END_TAG_OPEN;break;case tl.EXCLAMATION_MARK:this.state=Ql.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break;default:this._emitChars("<"),this.state=Ql.SCRIPT_DATA,this._stateScriptData(e)}}_stateScriptDataEndTagOpen(e){Zl(e)?(this.state=Ql.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(e)):(this._emitChars("</"),this.state=Ql.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=Ql.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStart(e){e===tl.HYPHEN_MINUS?(this.state=Ql.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=Ql.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStartDash(e){e===tl.HYPHEN_MINUS?(this.state=Ql.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=Ql.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscaped(e){switch(e){case tl.HYPHEN_MINUS:this.state=Ql.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break;case tl.LESS_THAN_SIGN:this.state=Ql.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case tl.NULL:this._err(pl.unexpectedNullCharacter),this._emitChars(el);break;case tl.EOF:this._err(pl.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataEscapedDash(e){switch(e){case tl.HYPHEN_MINUS:this.state=Ql.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break;case tl.LESS_THAN_SIGN:this.state=Ql.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case tl.NULL:this._err(pl.unexpectedNullCharacter),this.state=Ql.SCRIPT_DATA_ESCAPED,this._emitChars(el);break;case tl.EOF:this._err(pl.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Ql.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedDashDash(e){switch(e){case tl.HYPHEN_MINUS:this._emitChars("-");break;case tl.LESS_THAN_SIGN:this.state=Ql.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case tl.GREATER_THAN_SIGN:this.state=Ql.SCRIPT_DATA,this._emitChars(">");break;case tl.NULL:this._err(pl.unexpectedNullCharacter),this.state=Ql.SCRIPT_DATA_ESCAPED,this._emitChars(el);break;case tl.EOF:this._err(pl.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Ql.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===tl.SOLIDUS?this.state=Ql.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Zl(e)?(this._emitChars("<"),this.state=Ql.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=Ql.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){Zl(e)?(this.state=Ql.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("</"),this.state=Ql.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=Ql.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscapeStart(e){if(this.preprocessor.startsWith(ol,!1)&&nc(this.preprocessor.peek(ol.length))){this._emitCodePoint(e);for(let e=0;e<ol.length;e++)this._emitCodePoint(this._consume());this.state=Ql.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=Ql.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscaped(e){switch(e){case tl.HYPHEN_MINUS:this.state=Ql.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break;case tl.LESS_THAN_SIGN:this.state=Ql.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case tl.NULL:this._err(pl.unexpectedNullCharacter),this._emitChars(el);break;case tl.EOF:this._err(pl.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDash(e){switch(e){case tl.HYPHEN_MINUS:this.state=Ql.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break;case tl.LESS_THAN_SIGN:this.state=Ql.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case tl.NULL:this._err(pl.unexpectedNullCharacter),this.state=Ql.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(el);break;case tl.EOF:this._err(pl.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Ql.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDashDash(e){switch(e){case tl.HYPHEN_MINUS:this._emitChars("-");break;case tl.LESS_THAN_SIGN:this.state=Ql.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case tl.GREATER_THAN_SIGN:this.state=Ql.SCRIPT_DATA,this._emitChars(">");break;case tl.NULL:this._err(pl.unexpectedNullCharacter),this.state=Ql.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(el);break;case tl.EOF:this._err(pl.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Ql.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===tl.SOLIDUS?(this.state=Ql.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=Ql.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(ol,!1)&&nc(this.preprocessor.peek(ol.length))){this._emitCodePoint(e);for(let e=0;e<ol.length;e++)this._emitCodePoint(this._consume());this.state=Ql.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=Ql.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateBeforeAttributeName(e){switch(e){case tl.SPACE:case tl.LINE_FEED:case tl.TABULATION:case tl.FORM_FEED:break;case tl.SOLIDUS:case tl.GREATER_THAN_SIGN:case tl.EOF:this.state=Ql.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case tl.EQUALS_SIGN:this._err(pl.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=Ql.ATTRIBUTE_NAME;break;default:this._createAttr(""),this.state=Ql.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateAttributeName(e){switch(e){case tl.SPACE:case tl.LINE_FEED:case tl.TABULATION:case tl.FORM_FEED:case tl.SOLIDUS:case tl.GREATER_THAN_SIGN:case tl.EOF:this._leaveAttrName(),this.state=Ql.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case tl.EQUALS_SIGN:this._leaveAttrName(),this.state=Ql.BEFORE_ATTRIBUTE_VALUE;break;case tl.QUOTATION_MARK:case tl.APOSTROPHE:case tl.LESS_THAN_SIGN:this._err(pl.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(e);break;case tl.NULL:this._err(pl.unexpectedNullCharacter),this.currentAttr.name+=el;break;default:this.currentAttr.name+=String.fromCodePoint(Jl(e)?ec(e):e)}}_stateAfterAttributeName(e){switch(e){case tl.SPACE:case tl.LINE_FEED:case tl.TABULATION:case tl.FORM_FEED:break;case tl.SOLIDUS:this.state=Ql.SELF_CLOSING_START_TAG;break;case tl.EQUALS_SIGN:this.state=Ql.BEFORE_ATTRIBUTE_VALUE;break;case tl.GREATER_THAN_SIGN:this.state=Ql.DATA,this.emitCurrentTagToken();break;case tl.EOF:this._err(pl.eofInTag),this._emitEOFToken();break;default:this._createAttr(""),this.state=Ql.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateBeforeAttributeValue(e){switch(e){case tl.SPACE:case tl.LINE_FEED:case tl.TABULATION:case tl.FORM_FEED:break;case tl.QUOTATION_MARK:this.state=Ql.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break;case tl.APOSTROPHE:this.state=Ql.ATTRIBUTE_VALUE_SINGLE_QUOTED;break;case tl.GREATER_THAN_SIGN:this._err(pl.missingAttributeValue),this.state=Ql.DATA,this.emitCurrentTagToken();break;default:this.state=Ql.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(e)}}_stateAttributeValueDoubleQuoted(e){switch(e){case tl.QUOTATION_MARK:this.state=Ql.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case tl.AMPERSAND:this._startCharacterReference();break;case tl.NULL:this._err(pl.unexpectedNullCharacter),this.currentAttr.value+=el;break;case tl.EOF:this._err(pl.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueSingleQuoted(e){switch(e){case tl.APOSTROPHE:this.state=Ql.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case tl.AMPERSAND:this._startCharacterReference();break;case tl.NULL:this._err(pl.unexpectedNullCharacter),this.currentAttr.value+=el;break;case tl.EOF:this._err(pl.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueUnquoted(e){switch(e){case tl.SPACE:case tl.LINE_FEED:case tl.TABULATION:case tl.FORM_FEED:this._leaveAttrValue(),this.state=Ql.BEFORE_ATTRIBUTE_NAME;break;case tl.AMPERSAND:this._startCharacterReference();break;case tl.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=Ql.DATA,this.emitCurrentTagToken();break;case tl.NULL:this._err(pl.unexpectedNullCharacter),this.currentAttr.value+=el;break;case tl.QUOTATION_MARK:case tl.APOSTROPHE:case tl.LESS_THAN_SIGN:case tl.EQUALS_SIGN:case tl.GRAVE_ACCENT:this._err(pl.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(e);break;case tl.EOF:this._err(pl.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAfterAttributeValueQuoted(e){switch(e){case tl.SPACE:case tl.LINE_FEED:case tl.TABULATION:case tl.FORM_FEED:this._leaveAttrValue(),this.state=Ql.BEFORE_ATTRIBUTE_NAME;break;case tl.SOLIDUS:this._leaveAttrValue(),this.state=Ql.SELF_CLOSING_START_TAG;break;case tl.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=Ql.DATA,this.emitCurrentTagToken();break;case tl.EOF:this._err(pl.eofInTag),this._emitEOFToken();break;default:this._err(pl.missingWhitespaceBetweenAttributes),this.state=Ql.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateSelfClosingStartTag(e){switch(e){case tl.GREATER_THAN_SIGN:this.currentToken.selfClosing=!0,this.state=Ql.DATA,this.emitCurrentTagToken();break;case tl.EOF:this._err(pl.eofInTag),this._emitEOFToken();break;default:this._err(pl.unexpectedSolidusInTag),this.state=Ql.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateBogusComment(e){const t=this.currentToken;switch(e){case tl.GREATER_THAN_SIGN:this.state=Ql.DATA,this.emitCurrentComment(t);break;case tl.EOF:this.emitCurrentComment(t),this._emitEOFToken();break;case tl.NULL:this._err(pl.unexpectedNullCharacter),t.data+=el;break;default:t.data+=String.fromCodePoint(e)}}_stateMarkupDeclarationOpen(e){this._consumeSequenceIfMatch(rl,!0)?(this._createCommentToken(rl.length+1),this.state=Ql.COMMENT_START):this._consumeSequenceIfMatch(il,!1)?(this.currentLocation=this.getCurrentLocation(il.length+1),this.state=Ql.DOCTYPE):this._consumeSequenceIfMatch(al,!0)?this.inForeignNode?this.state=Ql.CDATA_SECTION:(this._err(pl.cdataInHtmlContent),this._createCommentToken(al.length+1),this.currentToken.data="[CDATA[",this.state=Ql.BOGUS_COMMENT):this._ensureHibernation()||(this._err(pl.incorrectlyOpenedComment),this._createCommentToken(2),this.state=Ql.BOGUS_COMMENT,this._stateBogusComment(e))}_stateCommentStart(e){switch(e){case tl.HYPHEN_MINUS:this.state=Ql.COMMENT_START_DASH;break;case tl.GREATER_THAN_SIGN:{this._err(pl.abruptClosingOfEmptyComment),this.state=Ql.DATA;const e=this.currentToken;this.emitCurrentComment(e);break}default:this.state=Ql.COMMENT,this._stateComment(e)}}_stateCommentStartDash(e){const t=this.currentToken;switch(e){case tl.HYPHEN_MINUS:this.state=Ql.COMMENT_END;break;case tl.GREATER_THAN_SIGN:this._err(pl.abruptClosingOfEmptyComment),this.state=Ql.DATA,this.emitCurrentComment(t);break;case tl.EOF:this._err(pl.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=Ql.COMMENT,this._stateComment(e)}}_stateComment(e){const t=this.currentToken;switch(e){case tl.HYPHEN_MINUS:this.state=Ql.COMMENT_END_DASH;break;case tl.LESS_THAN_SIGN:t.data+="<",this.state=Ql.COMMENT_LESS_THAN_SIGN;break;case tl.NULL:this._err(pl.unexpectedNullCharacter),t.data+=el;break;case tl.EOF:this._err(pl.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=String.fromCodePoint(e)}}_stateCommentLessThanSign(e){const t=this.currentToken;switch(e){case tl.EXCLAMATION_MARK:t.data+="!",this.state=Ql.COMMENT_LESS_THAN_SIGN_BANG;break;case tl.LESS_THAN_SIGN:t.data+="<";break;default:this.state=Ql.COMMENT,this._stateComment(e)}}_stateCommentLessThanSignBang(e){e===tl.HYPHEN_MINUS?this.state=Ql.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=Ql.COMMENT,this._stateComment(e))}_stateCommentLessThanSignBangDash(e){e===tl.HYPHEN_MINUS?this.state=Ql.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=Ql.COMMENT_END_DASH,this._stateCommentEndDash(e))}_stateCommentLessThanSignBangDashDash(e){e!==tl.GREATER_THAN_SIGN&&e!==tl.EOF&&this._err(pl.nestedComment),this.state=Ql.COMMENT_END,this._stateCommentEnd(e)}_stateCommentEndDash(e){const t=this.currentToken;switch(e){case tl.HYPHEN_MINUS:this.state=Ql.COMMENT_END;break;case tl.EOF:this._err(pl.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=Ql.COMMENT,this._stateComment(e)}}_stateCommentEnd(e){const t=this.currentToken;switch(e){case tl.GREATER_THAN_SIGN:this.state=Ql.DATA,this.emitCurrentComment(t);break;case tl.EXCLAMATION_MARK:this.state=Ql.COMMENT_END_BANG;break;case tl.HYPHEN_MINUS:t.data+="-";break;case tl.EOF:this._err(pl.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--",this.state=Ql.COMMENT,this._stateComment(e)}}_stateCommentEndBang(e){const t=this.currentToken;switch(e){case tl.HYPHEN_MINUS:t.data+="--!",this.state=Ql.COMMENT_END_DASH;break;case tl.GREATER_THAN_SIGN:this._err(pl.incorrectlyClosedComment),this.state=Ql.DATA,this.emitCurrentComment(t);break;case tl.EOF:this._err(pl.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--!",this.state=Ql.COMMENT,this._stateComment(e)}}_stateDoctype(e){switch(e){case tl.SPACE:case tl.LINE_FEED:case tl.TABULATION:case tl.FORM_FEED:this.state=Ql.BEFORE_DOCTYPE_NAME;break;case tl.GREATER_THAN_SIGN:this.state=Ql.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e);break;case tl.EOF:{this._err(pl.eofInDoctype),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._err(pl.missingWhitespaceBeforeDoctypeName),this.state=Ql.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e)}}_stateBeforeDoctypeName(e){if(Jl(e))this._createDoctypeToken(String.fromCharCode(ec(e))),this.state=Ql.DOCTYPE_NAME;else switch(e){case tl.SPACE:case tl.LINE_FEED:case tl.TABULATION:case tl.FORM_FEED:break;case tl.NULL:this._err(pl.unexpectedNullCharacter),this._createDoctypeToken(el),this.state=Ql.DOCTYPE_NAME;break;case tl.GREATER_THAN_SIGN:{this._err(pl.missingDoctypeName),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this.state=Ql.DATA;break}case tl.EOF:{this._err(pl.eofInDoctype),this._createDoctypeToken(null);const e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(e)),this.state=Ql.DOCTYPE_NAME}}_stateDoctypeName(e){const t=this.currentToken;switch(e){case tl.SPACE:case tl.LINE_FEED:case tl.TABULATION:case tl.FORM_FEED:this.state=Ql.AFTER_DOCTYPE_NAME;break;case tl.GREATER_THAN_SIGN:this.state=Ql.DATA,this.emitCurrentDoctype(t);break;case tl.NULL:this._err(pl.unexpectedNullCharacter),t.name+=el;break;case tl.EOF:this._err(pl.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.name+=String.fromCodePoint(Jl(e)?ec(e):e)}}_stateAfterDoctypeName(e){const t=this.currentToken;switch(e){case tl.SPACE:case tl.LINE_FEED:case tl.TABULATION:case tl.FORM_FEED:break;case tl.GREATER_THAN_SIGN:this.state=Ql.DATA,this.emitCurrentDoctype(t);break;case tl.EOF:this._err(pl.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._consumeSequenceIfMatch(sl,!1)?this.state=Ql.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(ll,!1)?this.state=Ql.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(pl.invalidCharacterSequenceAfterDoctypeName),t.forceQuirks=!0,this.state=Ql.BOGUS_DOCTYPE,this._stateBogusDoctype(e))}}_stateAfterDoctypePublicKeyword(e){const t=this.currentToken;switch(e){case tl.SPACE:case tl.LINE_FEED:case tl.TABULATION:case tl.FORM_FEED:this.state=Ql.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break;case tl.QUOTATION_MARK:this._err(pl.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=Ql.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case tl.APOSTROPHE:this._err(pl.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=Ql.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case tl.GREATER_THAN_SIGN:this._err(pl.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=Ql.DATA,this.emitCurrentDoctype(t);break;case tl.EOF:this._err(pl.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(pl.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=Ql.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){case tl.SPACE:case tl.LINE_FEED:case tl.TABULATION:case tl.FORM_FEED:break;case tl.QUOTATION_MARK:t.publicId="",this.state=Ql.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case tl.APOSTROPHE:t.publicId="",this.state=Ql.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case tl.GREATER_THAN_SIGN:this._err(pl.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=Ql.DATA,this.emitCurrentDoctype(t);break;case tl.EOF:this._err(pl.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(pl.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=Ql.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypePublicIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case tl.QUOTATION_MARK:this.state=Ql.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case tl.NULL:this._err(pl.unexpectedNullCharacter),t.publicId+=el;break;case tl.GREATER_THAN_SIGN:this._err(pl.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=Ql.DATA;break;case tl.EOF:this._err(pl.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateDoctypePublicIdentifierSingleQuoted(e){const t=this.currentToken;switch(e){case tl.APOSTROPHE:this.state=Ql.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case tl.NULL:this._err(pl.unexpectedNullCharacter),t.publicId+=el;break;case tl.GREATER_THAN_SIGN:this._err(pl.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=Ql.DATA;break;case tl.EOF:this._err(pl.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateAfterDoctypePublicIdentifier(e){const t=this.currentToken;switch(e){case tl.SPACE:case tl.LINE_FEED:case tl.TABULATION:case tl.FORM_FEED:this.state=Ql.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break;case tl.GREATER_THAN_SIGN:this.state=Ql.DATA,this.emitCurrentDoctype(t);break;case tl.QUOTATION_MARK:this._err(pl.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=Ql.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case tl.APOSTROPHE:this._err(pl.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=Ql.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case tl.EOF:this._err(pl.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(pl.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Ql.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBetweenDoctypePublicAndSystemIdentifiers(e){const t=this.currentToken;switch(e){case tl.SPACE:case tl.LINE_FEED:case tl.TABULATION:case tl.FORM_FEED:break;case tl.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=Ql.DATA;break;case tl.QUOTATION_MARK:t.systemId="",this.state=Ql.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case tl.APOSTROPHE:t.systemId="",this.state=Ql.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case tl.EOF:this._err(pl.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(pl.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Ql.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateAfterDoctypeSystemKeyword(e){const t=this.currentToken;switch(e){case tl.SPACE:case tl.LINE_FEED:case tl.TABULATION:case tl.FORM_FEED:this.state=Ql.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break;case tl.QUOTATION_MARK:this._err(pl.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=Ql.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case tl.APOSTROPHE:this._err(pl.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=Ql.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case tl.GREATER_THAN_SIGN:this._err(pl.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Ql.DATA,this.emitCurrentDoctype(t);break;case tl.EOF:this._err(pl.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(pl.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Ql.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){case tl.SPACE:case tl.LINE_FEED:case tl.TABULATION:case tl.FORM_FEED:break;case tl.QUOTATION_MARK:t.systemId="",this.state=Ql.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case tl.APOSTROPHE:t.systemId="",this.state=Ql.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case tl.GREATER_THAN_SIGN:this._err(pl.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Ql.DATA,this.emitCurrentDoctype(t);break;case tl.EOF:this._err(pl.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(pl.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=Ql.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypeSystemIdentifierDoubleQuoted(e){const t=this.currentToken;switch(e){case tl.QUOTATION_MARK:this.state=Ql.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case tl.NULL:this._err(pl.unexpectedNullCharacter),t.systemId+=el;break;case tl.GREATER_THAN_SIGN:this._err(pl.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=Ql.DATA;break;case tl.EOF:this._err(pl.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateDoctypeSystemIdentifierSingleQuoted(e){const t=this.currentToken;switch(e){case tl.APOSTROPHE:this.state=Ql.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case tl.NULL:this._err(pl.unexpectedNullCharacter),t.systemId+=el;break;case tl.GREATER_THAN_SIGN:this._err(pl.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=Ql.DATA;break;case tl.EOF:this._err(pl.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateAfterDoctypeSystemIdentifier(e){const t=this.currentToken;switch(e){case tl.SPACE:case tl.LINE_FEED:case tl.TABULATION:case tl.FORM_FEED:break;case tl.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=Ql.DATA;break;case tl.EOF:this._err(pl.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(pl.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=Ql.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBogusDoctype(e){const t=this.currentToken;switch(e){case tl.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=Ql.DATA;break;case tl.NULL:this._err(pl.unexpectedNullCharacter);break;case tl.EOF:this.emitCurrentDoctype(t),this._emitEOFToken()}}_stateCdataSection(e){switch(e){case tl.RIGHT_SQUARE_BRACKET:this.state=Ql.CDATA_SECTION_BRACKET;break;case tl.EOF:this._err(pl.eofInCdata),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateCdataSectionBracket(e){e===tl.RIGHT_SQUARE_BRACKET?this.state=Ql.CDATA_SECTION_END:(this._emitChars("]"),this.state=Ql.CDATA_SECTION,this._stateCdataSection(e))}_stateCdataSectionEnd(e){switch(e){case tl.GREATER_THAN_SIGN:this.state=Ql.DATA;break;case tl.RIGHT_SQUARE_BRACKET:this._emitChars("]");break;default:this._emitChars("]]"),this.state=Ql.CDATA_SECTION,this._stateCdataSection(e)}}_stateCharacterReference(){let e=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(e<0){if(!this.preprocessor.lastChunkWritten)return this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,void(this.preprocessor.endOfChunkHit=!0);e=this.entityDecoder.end()}0===e?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(tl.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&$l(this.preprocessor.peek(1))?Ql.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(e){$l(e)?this._flushCodePointConsumedAsCharacterReference(e):(e===tl.SEMICOLON&&this._err(pl.unknownNamedCharacterReference),this.state=this.returnState,this._callState(e))}}const ac=new Set([Ml.DD,Ml.DT,Ml.LI,Ml.OPTGROUP,Ml.OPTION,Ml.P,Ml.RB,Ml.RP,Ml.RT,Ml.RTC]),ic=new Set([...ac,Ml.CAPTION,Ml.COLGROUP,Ml.TBODY,Ml.TD,Ml.TFOOT,Ml.TH,Ml.THEAD,Ml.TR]),oc=new Set([Ml.APPLET,Ml.CAPTION,Ml.HTML,Ml.MARQUEE,Ml.OBJECT,Ml.TABLE,Ml.TD,Ml.TEMPLATE,Ml.TH]),sc=new Set([...oc,Ml.OL,Ml.UL]),lc=new Set([...oc,Ml.BUTTON]),cc=new Set([Ml.ANNOTATION_XML,Ml.MI,Ml.MN,Ml.MO,Ml.MS,Ml.MTEXT]),uc=new Set([Ml.DESC,Ml.FOREIGN_OBJECT,Ml.TITLE]),dc=new Set([Ml.TR,Ml.TEMPLATE,Ml.HTML]),pc=new Set([Ml.TBODY,Ml.TFOOT,Ml.THEAD,Ml.TEMPLATE,Ml.HTML]),hc=new Set([Ml.TABLE,Ml.TEMPLATE,Ml.HTML]),fc=new Set([Ml.TD,Ml.TH]);class mc{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(e,t,n){this.treeAdapter=t,this.handler=n,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=Ml.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===Ml.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Il.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(e,t){this.stackTop++,this.items[this.stackTop]=e,this.current=e,this.tagIDs[this.stackTop]=t,this.currentTagId=t,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(e,t,!0)}pop(){const e=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,t){const n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&(this.current=t)}insertAfter(e,t,n){const r=this._indexOf(e)+1;this.items.splice(r,0,t),this.tagIDs.splice(r,0,n),this.stackTop++,r===this.stackTop&&this._updateCurrentElement(),this.current&&void 0!==this.currentTagId&&this.handler.onItemPush(this.current,this.currentTagId,r===this.stackTop)}popUntilTagNamePopped(e){let t=this.stackTop+1;do{t=this.tagIDs.lastIndexOf(e,t-1)}while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==Il.HTML);this.shortenToLength(Math.max(t,0))}shortenToLength(e){for(;this.stackTop>=e;){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,this.stackTop<e)}}popUntilElementPopped(e){const t=this._indexOf(e);this.shortenToLength(Math.max(t,0))}popUntilPopped(e,t){const n=this._indexOfTagNames(e,t);this.shortenToLength(Math.max(n,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(Wl,Il.HTML)}popUntilTableCellPopped(){this.popUntilPopped(fc,Il.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(e,t){for(let n=this.stackTop;n>=0;n--)if(e.has(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===t)return n;return-1}clearBackTo(e,t){const n=this._indexOfTagNames(e,t);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo(hc,Il.HTML)}clearBackToTableBodyContext(){this.clearBackTo(pc,Il.HTML)}clearBackToTableRowContext(){this.clearBackTo(dc,Il.HTML)}remove(e){const t=this._indexOf(e);t>=0&&(t===this.stackTop?this.pop():(this.items.splice(t,1),this.tagIDs.splice(t,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===Ml.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){const t=this._indexOf(e)-1;return t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.tagIDs[0]===Ml.HTML}hasInDynamicScope(e,t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n];switch(this.treeAdapter.getNamespaceURI(this.items[n])){case Il.HTML:if(r===e)return!0;if(t.has(r))return!1;break;case Il.SVG:if(uc.has(r))return!1;break;case Il.MATHML:if(cc.has(r))return!1}}return!0}hasInScope(e){return this.hasInDynamicScope(e,oc)}hasInListItemScope(e){return this.hasInDynamicScope(e,sc)}hasInButtonScope(e){return this.hasInDynamicScope(e,lc)}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){const t=this.tagIDs[e];switch(this.treeAdapter.getNamespaceURI(this.items[e])){case Il.HTML:if(Wl.has(t))return!0;if(oc.has(t))return!1;break;case Il.SVG:if(uc.has(t))return!1;break;case Il.MATHML:if(cc.has(t))return!1}}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===Il.HTML)switch(this.tagIDs[t]){case e:return!0;case Ml.TABLE:case Ml.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--)if(this.treeAdapter.getNamespaceURI(this.items[e])===Il.HTML)switch(this.tagIDs[e]){case Ml.TBODY:case Ml.THEAD:case Ml.TFOOT:return!0;case Ml.TABLE:case Ml.HTML:return!1}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===Il.HTML)switch(this.tagIDs[t]){case e:return!0;case Ml.OPTION:case Ml.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;void 0!==this.currentTagId&&ac.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;void 0!==this.currentTagId&&ic.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;void 0!==this.currentTagId&&this.currentTagId!==e&&ic.has(this.currentTagId);)this.pop()}}var gc,Ec;(Ec=gc||(gc={}))[Ec.Marker=0]="Marker",Ec[Ec.Element=1]="Element";const Tc={type:gc.Marker};class yc{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,t){const n=[],r=t.length,a=this.treeAdapter.getTagName(e),i=this.treeAdapter.getNamespaceURI(e);for(let o=0;o<this.entries.length;o++){const e=this.entries[o];if(e.type===gc.Marker)break;const{element:t}=e;if(this.treeAdapter.getTagName(t)===a&&this.treeAdapter.getNamespaceURI(t)===i){const e=this.treeAdapter.getAttrList(t);e.length===r&&n.push({idx:o,attrs:e})}}return n}_ensureNoahArkCondition(e){if(this.entries.length<3)return;const t=this.treeAdapter.getAttrList(e),n=this._getNoahArkConditionCandidates(e,t);if(n.length<3)return;const r=new Map(t.map(e=>[e.name,e.value]));let a=0;for(let i=0;i<n.length;i++){const e=n[i];e.attrs.every(e=>r.get(e.name)===e.value)&&(a+=1,a>=3&&this.entries.splice(e.idx,1))}}insertMarker(){this.entries.unshift(Tc)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:gc.Element,element:e,token:t})}insertElementAfterBookmark(e,t){const n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:gc.Element,element:e,token:t})}removeEntry(e){const t=this.entries.indexOf(e);-1!==t&&this.entries.splice(t,1)}clearToLastMarker(){const e=this.entries.indexOf(Tc);-1===e?this.entries.length=0:this.entries.splice(0,e+1)}getElementEntryInScopeWithTagName(e){const t=this.entries.find(t=>t.type===gc.Marker||this.treeAdapter.getTagName(t.element)===e);return t&&t.type===gc.Element?t:null}getElementEntry(e){return this.entries.find(t=>t.type===gc.Element&&t.element===e)}}const bc={createDocument:()=>({nodeName:"#document",mode:Dl.NO_QUIRKS,childNodes:[]}),createDocumentFragment:()=>({nodeName:"#document-fragment",childNodes:[]}),createElement:(e,t,n)=>({nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}),createCommentNode:e=>({nodeName:"#comment",data:e,parentNode:null}),createTextNode:e=>({nodeName:"#text",value:e,parentNode:null}),appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent:e=>e.content,setDocumentType(e,t,n,r){const a=e.childNodes.find(e=>"#documentType"===e.nodeName);if(a)a.name=t,a.publicId=n,a.systemId=r;else{const a={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};bc.appendChild(e,a)}},setDocumentMode(e,t){e.mode=t},getDocumentMode:e=>e.mode,detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(bc.isTextNode(n))return void(n.value+=t)}bc.appendChild(e,bc.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&bc.isTextNode(r)?r.value+=t:bc.insertBefore(e,bc.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(e=>e.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild:e=>e.childNodes[0],getChildNodes:e=>e.childNodes,getParentNode:e=>e.parentNode,getAttrList:e=>e.attrs,getTagName:e=>e.tagName,getNamespaceURI:e=>e.namespaceURI,getTextNodeContent:e=>e.value,getCommentNodeContent:e=>e.data,getDocumentTypeNodeName:e=>e.name,getDocumentTypeNodePublicId:e=>e.publicId,getDocumentTypeNodeSystemId:e=>e.systemId,isTextNode:e=>"#text"===e.nodeName,isCommentNode:e=>"#comment"===e.nodeName,isDocumentTypeNode:e=>"#documentType"===e.nodeName,isElementNode:e=>Object.prototype.hasOwnProperty.call(e,"tagName"),setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation:e=>e.sourceCodeLocation,updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},vc="html",kc=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],Ac=[...kc,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],Sc=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),_c=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Cc=[..._c,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Nc(e,t){return t.some(t=>e.startsWith(t))}const Ic="text/html",wc="application/xhtml+xml",xc=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),Oc=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:Il.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:Il.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:Il.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:Il.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:Il.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:Il.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:Il.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:Il.XML}],["xml:space",{prefix:"xml",name:"space",namespace:Il.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:Il.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:Il.XMLNS}]]),Dc=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),Lc=new Set([Ml.B,Ml.BIG,Ml.BLOCKQUOTE,Ml.BODY,Ml.BR,Ml.CENTER,Ml.CODE,Ml.DD,Ml.DIV,Ml.DL,Ml.DT,Ml.EM,Ml.EMBED,Ml.H1,Ml.H2,Ml.H3,Ml.H4,Ml.H5,Ml.H6,Ml.HEAD,Ml.HR,Ml.I,Ml.IMG,Ml.LI,Ml.LISTING,Ml.MENU,Ml.META,Ml.NOBR,Ml.OL,Ml.P,Ml.PRE,Ml.RUBY,Ml.S,Ml.SMALL,Ml.SPAN,Ml.STRONG,Ml.STRIKE,Ml.SUB,Ml.SUP,Ml.TABLE,Ml.TT,Ml.U,Ml.UL,Ml.VAR]);function Rc(e){for(let t=0;t<e.attrs.length;t++)if("definitionurl"===e.attrs[t].name){e.attrs[t].name="definitionURL";break}}function Pc(e){for(let t=0;t<e.attrs.length;t++){const n=xc.get(e.attrs[t].name);null!=n&&(e.attrs[t].name=n)}}function Mc(e){for(let t=0;t<e.attrs.length;t++){const n=Oc.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function Fc(e,t,n,r){return(!r||r===Il.HTML)&&function(e,t,n){if(t===Il.MATHML&&e===Ml.ANNOTATION_XML)for(let r=0;r<n.length;r++)if(n[r].name===xl.ENCODING){const e=n[r].value.toLowerCase();return e===Ic||e===wc}return t===Il.SVG&&(e===Ml.FOREIGN_OBJECT||e===Ml.DESC||e===Ml.TITLE)}(e,t,n)||(!r||r===Il.MATHML)&&function(e,t){return t===Il.MATHML&&(e===Ml.MI||e===Ml.MO||e===Ml.MN||e===Ml.MS||e===Ml.MTEXT)}(e,t)}var Bc,Uc;(Uc=Bc||(Bc={}))[Uc.INITIAL=0]="INITIAL",Uc[Uc.BEFORE_HTML=1]="BEFORE_HTML",Uc[Uc.BEFORE_HEAD=2]="BEFORE_HEAD",Uc[Uc.IN_HEAD=3]="IN_HEAD",Uc[Uc.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",Uc[Uc.AFTER_HEAD=5]="AFTER_HEAD",Uc[Uc.IN_BODY=6]="IN_BODY",Uc[Uc.TEXT=7]="TEXT",Uc[Uc.IN_TABLE=8]="IN_TABLE",Uc[Uc.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",Uc[Uc.IN_CAPTION=10]="IN_CAPTION",Uc[Uc.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",Uc[Uc.IN_TABLE_BODY=12]="IN_TABLE_BODY",Uc[Uc.IN_ROW=13]="IN_ROW",Uc[Uc.IN_CELL=14]="IN_CELL",Uc[Uc.IN_SELECT=15]="IN_SELECT",Uc[Uc.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",Uc[Uc.IN_TEMPLATE=17]="IN_TEMPLATE",Uc[Uc.AFTER_BODY=18]="AFTER_BODY",Uc[Uc.IN_FRAMESET=19]="IN_FRAMESET",Uc[Uc.AFTER_FRAMESET=20]="AFTER_FRAMESET",Uc[Uc.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",Uc[Uc.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET";const Hc={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},jc=new Set([Ml.TABLE,Ml.TBODY,Ml.TFOOT,Ml.THEAD,Ml.TR]),zc={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:bc,onParseError:null};class Gc{constructor(e,t,n=null,r=null){this.fragmentContext=n,this.scriptHandler=r,this.currentToken=null,this.stopped=!1,this.insertionMode=Bc.INITIAL,this.originalInsertionMode=Bc.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...zc,...e},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=null!=t?t:this.treeAdapter.createDocument(),this.tokenizer=new rc(this.options,this),this.activeFormattingElements=new yc(this.treeAdapter),this.fragmentContextID=n?Yl(this.treeAdapter.getTagName(n)):Ml.UNKNOWN,this._setContextModes(null!=n?n:this.document,this.fragmentContextID),this.openElements=new mc(this.document,this.treeAdapter,this)}static parse(e,t){const n=new this(t);return n.tokenizer.write(e,!0),n.document}static getFragmentParser(e,t){const n={...zc,...t};null!=e||(e=n.treeAdapter.createElement(Rl.TEMPLATE,Il.HTML,[]));const r=n.treeAdapter.createElement("documentmock",Il.HTML,[]),a=new this(n,r,e);return a.fragmentContextID===Ml.TEMPLATE&&a.tmplInsertionModeStack.unshift(Bc.IN_TEMPLATE),a._initTokenizerForFragmentParsing(),a._insertFakeRootElement(),a._resetInsertionMode(),a._findFormInFragmentContext(),a}getFragment(){const e=this.treeAdapter.getFirstChild(this.document),t=this.treeAdapter.createDocumentFragment();return this._adoptNodes(e,t),t}_err(e,t,n){var r;if(!this.onParseError)return;const a=null!==(r=e.location)&&void 0!==r?r:Hc,i={code:t,startLine:a.startLine,startCol:a.startCol,startOffset:a.startOffset,endLine:n?a.startLine:a.endLine,endCol:n?a.startCol:a.endCol,endOffset:n?a.startOffset:a.endOffset};this.onParseError(i)}onItemPush(e,t,n){var r,a;null===(a=(r=this.treeAdapter).onItemPush)||void 0===a||a.call(r,e),n&&this.openElements.stackTop>0&&this._setContextModes(e,t)}onItemPop(e,t){var n,r;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),null===(r=(n=this.treeAdapter).onItemPop)||void 0===r||r.call(n,e,this.openElements.current),t){let e,t;0===this.openElements.stackTop&&this.fragmentContext?(e=this.fragmentContext,t=this.fragmentContextID):({current:e,currentTagId:t}=this.openElements),this._setContextModes(e,t)}}_setContextModes(e,t){const n=e===this.document||e&&this.treeAdapter.getNamespaceURI(e)===Il.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&void 0!==e&&void 0!==t&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,Il.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=Bc.TEXT}switchToPlaintextParsing(){this.insertionMode=Bc.TEXT,this.originalInsertionMode=Bc.IN_BODY,this.tokenizer.state=Xl.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){if(this.treeAdapter.getTagName(e)===Rl.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(this.fragmentContext&&this.treeAdapter.getNamespaceURI(this.fragmentContext)===Il.HTML)switch(this.fragmentContextID){case Ml.TITLE:case Ml.TEXTAREA:this.tokenizer.state=Xl.RCDATA;break;case Ml.STYLE:case Ml.XMP:case Ml.IFRAME:case Ml.NOEMBED:case Ml.NOFRAMES:case Ml.NOSCRIPT:this.tokenizer.state=Xl.RAWTEXT;break;case Ml.SCRIPT:this.tokenizer.state=Xl.SCRIPT_DATA;break;case Ml.PLAINTEXT:this.tokenizer.state=Xl.PLAINTEXT}}_setDocumentType(e){const t=e.name||"",n=e.publicId||"",r=e.systemId||"";if(this.treeAdapter.setDocumentType(this.document,t,n,r),e.location){const t=this.treeAdapter.getChildNodes(this.document).find(e=>this.treeAdapter.isDocumentTypeNode(e));t&&this.treeAdapter.setNodeSourceCodeLocation(t,e.location)}}_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){const n=t&&{...t,startTag:t};this.treeAdapter.setNodeSourceCodeLocation(e,n)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{const t=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(null!=t?t:this.document,e)}}_appendElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location)}_insertElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location),this.openElements.push(n,e.tagID)}_insertFakeElement(e,t){const n=this.treeAdapter.createElement(e,Il.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,t)}_insertTemplate(e){const t=this.treeAdapter.createElement(e.tagName,Il.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t,e.location),this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){const e=this.treeAdapter.createElement(Rl.HTML,Il.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,Ml.HTML)}_appendCommentNode(e,t){const n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,e.location)}_insertCharacters(e){let t,n;if(this._shouldFosterParentOnInsertion()?(({parent:t,beforeElement:n}=this._findFosterParentingLocation()),n?this.treeAdapter.insertTextBefore(t,e.chars,n):this.treeAdapter.insertText(t,e.chars)):(t=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(t,e.chars)),!e.location)return;const r=this.treeAdapter.getChildNodes(t),a=n?r.lastIndexOf(n):r.length,i=r[a-1];if(this.treeAdapter.getNodeSourceCodeLocation(i)){const{endLine:t,endCol:n,endOffset:r}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(i,{endLine:t,endCol:n,endOffset:r})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,e.location)}_adoptNodes(e,t){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){const n=t.location,r=this.treeAdapter.getTagName(e),a=t.type===ml.END_TAG&&r===t.tagName?{endTag:{...n},endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,a)}}shouldProcessStartTagTokenInForeignContent(e){if(!this.currentNotInHTML)return!1;let t,n;return 0===this.openElements.stackTop&&this.fragmentContext?(t=this.fragmentContext,n=this.fragmentContextID):({current:t,currentTagId:n}=this.openElements),(e.tagID!==Ml.SVG||this.treeAdapter.getTagName(t)!==Rl.ANNOTATION_XML||this.treeAdapter.getNamespaceURI(t)!==Il.MATHML)&&(this.tokenizer.inForeignNode||(e.tagID===Ml.MGLYPH||e.tagID===Ml.MALIGNMARK)&&void 0!==n&&!this._isIntegrationPoint(n,t,Il.HTML))}_processToken(e){switch(e.type){case ml.CHARACTER:this.onCharacter(e);break;case ml.NULL_CHARACTER:this.onNullCharacter(e);break;case ml.COMMENT:this.onComment(e);break;case ml.DOCTYPE:this.onDoctype(e);break;case ml.START_TAG:this._processStartTag(e);break;case ml.END_TAG:this.onEndTag(e);break;case ml.EOF:this.onEof(e);break;case ml.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e)}}_isIntegrationPoint(e,t,n){return Fc(e,this.treeAdapter.getNamespaceURI(t),this.treeAdapter.getAttrList(t),n)}_reconstructActiveFormattingElements(){const e=this.activeFormattingElements.entries.length;if(e){const t=this.activeFormattingElements.entries.findIndex(e=>e.type===gc.Marker||this.openElements.contains(e.element));for(let n=-1===t?e-1:t-1;n>=0;n--){const e=this.activeFormattingElements.entries[n];this._insertElement(e.token,this.treeAdapter.getNamespaceURI(e.element)),e.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=Bc.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(Ml.P),this.openElements.popUntilTagNamePopped(Ml.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(0===e&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case Ml.TR:return void(this.insertionMode=Bc.IN_ROW);case Ml.TBODY:case Ml.THEAD:case Ml.TFOOT:return void(this.insertionMode=Bc.IN_TABLE_BODY);case Ml.CAPTION:return void(this.insertionMode=Bc.IN_CAPTION);case Ml.COLGROUP:return void(this.insertionMode=Bc.IN_COLUMN_GROUP);case Ml.TABLE:return void(this.insertionMode=Bc.IN_TABLE);case Ml.BODY:return void(this.insertionMode=Bc.IN_BODY);case Ml.FRAMESET:return void(this.insertionMode=Bc.IN_FRAMESET);case Ml.SELECT:return void this._resetInsertionModeForSelect(e);case Ml.TEMPLATE:return void(this.insertionMode=this.tmplInsertionModeStack[0]);case Ml.HTML:return void(this.insertionMode=this.headElement?Bc.AFTER_HEAD:Bc.BEFORE_HEAD);case Ml.TD:case Ml.TH:if(e>0)return void(this.insertionMode=Bc.IN_CELL);break;case Ml.HEAD:if(e>0)return void(this.insertionMode=Bc.IN_HEAD)}this.insertionMode=Bc.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){const e=this.openElements.tagIDs[t];if(e===Ml.TEMPLATE)break;if(e===Ml.TABLE)return void(this.insertionMode=Bc.IN_SELECT_IN_TABLE)}this.insertionMode=Bc.IN_SELECT}_isElementCausesFosterParenting(e){return jc.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&void 0!==this.openElements.currentTagId&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){const t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case Ml.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===Il.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break;case Ml.TABLE:{const n=this.treeAdapter.getParentNode(t);return n?{parent:n,beforeElement:t}:{parent:this.openElements.items[e-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_isSpecialElement(e,t){const n=this.treeAdapter.getNamespaceURI(e);return ql[n].has(t)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(e,t){e._insertCharacters(t),e.framesetOk=!1}(this,e);else switch(this.insertionMode){case Bc.INITIAL:$c(this,e);break;case Bc.BEFORE_HTML:eu(this,e);break;case Bc.BEFORE_HEAD:tu(this,e);break;case Bc.IN_HEAD:au(this,e);break;case Bc.IN_HEAD_NO_SCRIPT:iu(this,e);break;case Bc.AFTER_HEAD:ou(this,e);break;case Bc.IN_BODY:case Bc.IN_CAPTION:case Bc.IN_CELL:case Bc.IN_TEMPLATE:cu(this,e);break;case Bc.TEXT:case Bc.IN_SELECT:case Bc.IN_SELECT_IN_TABLE:this._insertCharacters(e);break;case Bc.IN_TABLE:case Bc.IN_TABLE_BODY:case Bc.IN_ROW:Tu(this,e);break;case Bc.IN_TABLE_TEXT:Au(this,e);break;case Bc.IN_COLUMN_GROUP:Nu(this,e);break;case Bc.AFTER_BODY:Mu(this,e);break;case Bc.AFTER_AFTER_BODY:Fu(this,e)}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(e,t){t.chars=el,e._insertCharacters(t)}(this,e);else switch(this.insertionMode){case Bc.INITIAL:$c(this,e);break;case Bc.BEFORE_HTML:eu(this,e);break;case Bc.BEFORE_HEAD:tu(this,e);break;case Bc.IN_HEAD:au(this,e);break;case Bc.IN_HEAD_NO_SCRIPT:iu(this,e);break;case Bc.AFTER_HEAD:ou(this,e);break;case Bc.TEXT:this._insertCharacters(e);break;case Bc.IN_TABLE:case Bc.IN_TABLE_BODY:case Bc.IN_ROW:Tu(this,e);break;case Bc.IN_COLUMN_GROUP:Nu(this,e);break;case Bc.AFTER_BODY:Mu(this,e);break;case Bc.AFTER_AFTER_BODY:Fu(this,e)}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML)Jc(this,e);else switch(this.insertionMode){case Bc.INITIAL:case Bc.BEFORE_HTML:case Bc.BEFORE_HEAD:case Bc.IN_HEAD:case Bc.IN_HEAD_NO_SCRIPT:case Bc.AFTER_HEAD:case Bc.IN_BODY:case Bc.IN_TABLE:case Bc.IN_CAPTION:case Bc.IN_COLUMN_GROUP:case Bc.IN_TABLE_BODY:case Bc.IN_ROW:case Bc.IN_CELL:case Bc.IN_SELECT:case Bc.IN_SELECT_IN_TABLE:case Bc.IN_TEMPLATE:case Bc.IN_FRAMESET:case Bc.AFTER_FRAMESET:Jc(this,e);break;case Bc.IN_TABLE_TEXT:Su(this,e);break;case Bc.AFTER_BODY:!function(e,t){e._appendCommentNode(t,e.openElements.items[0])}(this,e);break;case Bc.AFTER_AFTER_BODY:case Bc.AFTER_AFTER_FRAMESET:!function(e,t){e._appendCommentNode(t,e.document)}(this,e)}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case Bc.INITIAL:!function(e,t){e._setDocumentType(t);const n=t.forceQuirks?Dl.QUIRKS:function(e){if(e.name!==vc)return Dl.QUIRKS;const{systemId:t}=e;if(t&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===t.toLowerCase())return Dl.QUIRKS;let{publicId:n}=e;if(null!==n){if(n=n.toLowerCase(),Sc.has(n))return Dl.QUIRKS;let e=null===t?Ac:kc;if(Nc(n,e))return Dl.QUIRKS;if(e=null===t?_c:Cc,Nc(n,e))return Dl.LIMITED_QUIRKS}return Dl.NO_QUIRKS}(t);(function(e){return e.name===vc&&null===e.publicId&&(null===e.systemId||"about:legacy-compat"===e.systemId)})(t)||e._err(t,pl.nonConformingDoctype);e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=Bc.BEFORE_HTML}(this,e);break;case Bc.BEFORE_HEAD:case Bc.IN_HEAD:case Bc.IN_HEAD_NO_SCRIPT:case Bc.AFTER_HEAD:this._err(e,pl.misplacedDoctype);break;case Bc.IN_TABLE_TEXT:Su(this,e)}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,pl.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?function(e,t){if(function(e){const t=e.tagID;return t===Ml.FONT&&e.attrs.some(({name:e})=>e===xl.COLOR||e===xl.SIZE||e===xl.FACE)||Lc.has(t)}(t))Bu(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===Il.MATHML?Rc(t):r===Il.SVG&&(!function(e){const t=Dc.get(e.tagName);null!=t&&(e.tagName=t,e.tagID=Yl(e.tagName))}(t),Pc(t)),Mc(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case Bc.INITIAL:$c(this,e);break;case Bc.BEFORE_HTML:!function(e,t){t.tagID===Ml.HTML?(e._insertElement(t,Il.HTML),e.insertionMode=Bc.BEFORE_HEAD):eu(e,t)}(this,e);break;case Bc.BEFORE_HEAD:!function(e,t){switch(t.tagID){case Ml.HTML:fu(e,t);break;case Ml.HEAD:e._insertElement(t,Il.HTML),e.headElement=e.openElements.current,e.insertionMode=Bc.IN_HEAD;break;default:tu(e,t)}}(this,e);break;case Bc.IN_HEAD:nu(this,e);break;case Bc.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case Ml.HTML:fu(e,t);break;case Ml.BASEFONT:case Ml.BGSOUND:case Ml.HEAD:case Ml.LINK:case Ml.META:case Ml.NOFRAMES:case Ml.STYLE:nu(e,t);break;case Ml.NOSCRIPT:e._err(t,pl.nestedNoscriptInHead);break;default:iu(e,t)}}(this,e);break;case Bc.AFTER_HEAD:!function(e,t){switch(t.tagID){case Ml.HTML:fu(e,t);break;case Ml.BODY:e._insertElement(t,Il.HTML),e.framesetOk=!1,e.insertionMode=Bc.IN_BODY;break;case Ml.FRAMESET:e._insertElement(t,Il.HTML),e.insertionMode=Bc.IN_FRAMESET;break;case Ml.BASE:case Ml.BASEFONT:case Ml.BGSOUND:case Ml.LINK:case Ml.META:case Ml.NOFRAMES:case Ml.SCRIPT:case Ml.STYLE:case Ml.TEMPLATE:case Ml.TITLE:e._err(t,pl.abandonedHeadElementChild),e.openElements.push(e.headElement,Ml.HEAD),nu(e,t),e.openElements.remove(e.headElement);break;case Ml.HEAD:e._err(t,pl.misplacedStartTagForHeadElement);break;default:ou(e,t)}}(this,e);break;case Bc.IN_BODY:fu(this,e);break;case Bc.IN_TABLE:yu(this,e);break;case Bc.IN_TABLE_TEXT:Su(this,e);break;case Bc.IN_CAPTION:!function(e,t){const n=t.tagID;_u.has(n)?e.openElements.hasInTableScope(Ml.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(Ml.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Bc.IN_TABLE,yu(e,t)):fu(e,t)}(this,e);break;case Bc.IN_COLUMN_GROUP:Cu(this,e);break;case Bc.IN_TABLE_BODY:Iu(this,e);break;case Bc.IN_ROW:xu(this,e);break;case Bc.IN_CELL:!function(e,t){const n=t.tagID;_u.has(n)?(e.openElements.hasInTableScope(Ml.TD)||e.openElements.hasInTableScope(Ml.TH))&&(e._closeTableCell(),xu(e,t)):fu(e,t)}(this,e);break;case Bc.IN_SELECT:Du(this,e);break;case Bc.IN_SELECT_IN_TABLE:!function(e,t){const n=t.tagID;n===Ml.CAPTION||n===Ml.TABLE||n===Ml.TBODY||n===Ml.TFOOT||n===Ml.THEAD||n===Ml.TR||n===Ml.TD||n===Ml.TH?(e.openElements.popUntilTagNamePopped(Ml.SELECT),e._resetInsertionMode(),e._processStartTag(t)):Du(e,t)}(this,e);break;case Bc.IN_TEMPLATE:!function(e,t){switch(t.tagID){case Ml.BASE:case Ml.BASEFONT:case Ml.BGSOUND:case Ml.LINK:case Ml.META:case Ml.NOFRAMES:case Ml.SCRIPT:case Ml.STYLE:case Ml.TEMPLATE:case Ml.TITLE:nu(e,t);break;case Ml.CAPTION:case Ml.COLGROUP:case Ml.TBODY:case Ml.TFOOT:case Ml.THEAD:e.tmplInsertionModeStack[0]=Bc.IN_TABLE,e.insertionMode=Bc.IN_TABLE,yu(e,t);break;case Ml.COL:e.tmplInsertionModeStack[0]=Bc.IN_COLUMN_GROUP,e.insertionMode=Bc.IN_COLUMN_GROUP,Cu(e,t);break;case Ml.TR:e.tmplInsertionModeStack[0]=Bc.IN_TABLE_BODY,e.insertionMode=Bc.IN_TABLE_BODY,Iu(e,t);break;case Ml.TD:case Ml.TH:e.tmplInsertionModeStack[0]=Bc.IN_ROW,e.insertionMode=Bc.IN_ROW,xu(e,t);break;default:e.tmplInsertionModeStack[0]=Bc.IN_BODY,e.insertionMode=Bc.IN_BODY,fu(e,t)}}(this,e);break;case Bc.AFTER_BODY:!function(e,t){t.tagID===Ml.HTML?fu(e,t):Mu(e,t)}(this,e);break;case Bc.IN_FRAMESET:!function(e,t){switch(t.tagID){case Ml.HTML:fu(e,t);break;case Ml.FRAMESET:e._insertElement(t,Il.HTML);break;case Ml.FRAME:e._appendElement(t,Il.HTML),t.ackSelfClosing=!0;break;case Ml.NOFRAMES:nu(e,t)}}(this,e);break;case Bc.AFTER_FRAMESET:!function(e,t){switch(t.tagID){case Ml.HTML:fu(e,t);break;case Ml.NOFRAMES:nu(e,t)}}(this,e);break;case Bc.AFTER_AFTER_BODY:!function(e,t){t.tagID===Ml.HTML?fu(e,t):Fu(e,t)}(this,e);break;case Bc.AFTER_AFTER_FRAMESET:!function(e,t){switch(t.tagID){case Ml.HTML:fu(e,t);break;case Ml.NOFRAMES:nu(e,t)}}(this,e)}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?function(e,t){if(t.tagID===Ml.P||t.tagID===Ml.BR)return Bu(e),void e._endTagOutsideForeignContent(t);for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===Il.HTML){e._endTagOutsideForeignContent(t);break}const a=e.treeAdapter.getTagName(r);if(a.toLowerCase()===t.tagName){t.tagName=a,e.openElements.shortenToLength(n);break}}}(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case Bc.INITIAL:$c(this,e);break;case Bc.BEFORE_HTML:!function(e,t){const n=t.tagID;n!==Ml.HTML&&n!==Ml.HEAD&&n!==Ml.BODY&&n!==Ml.BR||eu(e,t)}(this,e);break;case Bc.BEFORE_HEAD:!function(e,t){const n=t.tagID;n===Ml.HEAD||n===Ml.BODY||n===Ml.HTML||n===Ml.BR?tu(e,t):e._err(t,pl.endTagWithoutMatchingOpenElement)}(this,e);break;case Bc.IN_HEAD:!function(e,t){switch(t.tagID){case Ml.HEAD:e.openElements.pop(),e.insertionMode=Bc.AFTER_HEAD;break;case Ml.BODY:case Ml.BR:case Ml.HTML:au(e,t);break;case Ml.TEMPLATE:ru(e,t);break;default:e._err(t,pl.endTagWithoutMatchingOpenElement)}}(this,e);break;case Bc.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case Ml.NOSCRIPT:e.openElements.pop(),e.insertionMode=Bc.IN_HEAD;break;case Ml.BR:iu(e,t);break;default:e._err(t,pl.endTagWithoutMatchingOpenElement)}}(this,e);break;case Bc.AFTER_HEAD:!function(e,t){switch(t.tagID){case Ml.BODY:case Ml.HTML:case Ml.BR:ou(e,t);break;case Ml.TEMPLATE:ru(e,t);break;default:e._err(t,pl.endTagWithoutMatchingOpenElement)}}(this,e);break;case Bc.IN_BODY:gu(this,e);break;case Bc.TEXT:!function(e,t){var n;t.tagID===Ml.SCRIPT&&(null===(n=e.scriptHandler)||void 0===n||n.call(e,e.openElements.current));e.openElements.pop(),e.insertionMode=e.originalInsertionMode}(this,e);break;case Bc.IN_TABLE:bu(this,e);break;case Bc.IN_TABLE_TEXT:Su(this,e);break;case Bc.IN_CAPTION:!function(e,t){const n=t.tagID;switch(n){case Ml.CAPTION:case Ml.TABLE:e.openElements.hasInTableScope(Ml.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(Ml.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Bc.IN_TABLE,n===Ml.TABLE&&bu(e,t));break;case Ml.BODY:case Ml.COL:case Ml.COLGROUP:case Ml.HTML:case Ml.TBODY:case Ml.TD:case Ml.TFOOT:case Ml.TH:case Ml.THEAD:case Ml.TR:break;default:gu(e,t)}}(this,e);break;case Bc.IN_COLUMN_GROUP:!function(e,t){switch(t.tagID){case Ml.COLGROUP:e.openElements.currentTagId===Ml.COLGROUP&&(e.openElements.pop(),e.insertionMode=Bc.IN_TABLE);break;case Ml.TEMPLATE:ru(e,t);break;case Ml.COL:break;default:Nu(e,t)}}(this,e);break;case Bc.IN_TABLE_BODY:wu(this,e);break;case Bc.IN_ROW:Ou(this,e);break;case Bc.IN_CELL:!function(e,t){const n=t.tagID;switch(n){case Ml.TD:case Ml.TH:e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=Bc.IN_ROW);break;case Ml.TABLE:case Ml.TBODY:case Ml.TFOOT:case Ml.THEAD:case Ml.TR:e.openElements.hasInTableScope(n)&&(e._closeTableCell(),Ou(e,t));break;case Ml.BODY:case Ml.CAPTION:case Ml.COL:case Ml.COLGROUP:case Ml.HTML:break;default:gu(e,t)}}(this,e);break;case Bc.IN_SELECT:Lu(this,e);break;case Bc.IN_SELECT_IN_TABLE:!function(e,t){const n=t.tagID;n===Ml.CAPTION||n===Ml.TABLE||n===Ml.TBODY||n===Ml.TFOOT||n===Ml.THEAD||n===Ml.TR||n===Ml.TD||n===Ml.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(Ml.SELECT),e._resetInsertionMode(),e.onEndTag(t)):Lu(e,t)}(this,e);break;case Bc.IN_TEMPLATE:!function(e,t){t.tagID===Ml.TEMPLATE&&ru(e,t)}(this,e);break;case Bc.AFTER_BODY:Pu(this,e);break;case Bc.IN_FRAMESET:!function(e,t){t.tagID!==Ml.FRAMESET||e.openElements.isRootHtmlElementCurrent()||(e.openElements.pop(),e.fragmentContext||e.openElements.currentTagId===Ml.FRAMESET||(e.insertionMode=Bc.AFTER_FRAMESET))}(this,e);break;case Bc.AFTER_FRAMESET:!function(e,t){t.tagID===Ml.HTML&&(e.insertionMode=Bc.AFTER_AFTER_FRAMESET)}(this,e);break;case Bc.AFTER_AFTER_BODY:Fu(this,e)}}onEof(e){switch(this.insertionMode){case Bc.INITIAL:$c(this,e);break;case Bc.BEFORE_HTML:eu(this,e);break;case Bc.BEFORE_HEAD:tu(this,e);break;case Bc.IN_HEAD:au(this,e);break;case Bc.IN_HEAD_NO_SCRIPT:iu(this,e);break;case Bc.AFTER_HEAD:ou(this,e);break;case Bc.IN_BODY:case Bc.IN_TABLE:case Bc.IN_CAPTION:case Bc.IN_COLUMN_GROUP:case Bc.IN_TABLE_BODY:case Bc.IN_ROW:case Bc.IN_CELL:case Bc.IN_SELECT:case Bc.IN_SELECT_IN_TABLE:Eu(this,e);break;case Bc.TEXT:!function(e,t){e._err(t,pl.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}(this,e);break;case Bc.IN_TABLE_TEXT:Su(this,e);break;case Bc.IN_TEMPLATE:Ru(this,e);break;case Bc.AFTER_BODY:case Bc.IN_FRAMESET:case Bc.AFTER_FRAMESET:case Bc.AFTER_AFTER_BODY:case Bc.AFTER_AFTER_FRAMESET:Zc(this,e)}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===tl.LINE_FEED)){if(1===e.chars.length)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode)this._insertCharacters(e);else switch(this.insertionMode){case Bc.IN_HEAD:case Bc.IN_HEAD_NO_SCRIPT:case Bc.AFTER_HEAD:case Bc.TEXT:case Bc.IN_COLUMN_GROUP:case Bc.IN_SELECT:case Bc.IN_SELECT_IN_TABLE:case Bc.IN_FRAMESET:case Bc.AFTER_FRAMESET:this._insertCharacters(e);break;case Bc.IN_BODY:case Bc.IN_CAPTION:case Bc.IN_CELL:case Bc.IN_TEMPLATE:case Bc.AFTER_BODY:case Bc.AFTER_AFTER_BODY:case Bc.AFTER_AFTER_FRAMESET:lu(this,e);break;case Bc.IN_TABLE:case Bc.IN_TABLE_BODY:case Bc.IN_ROW:Tu(this,e);break;case Bc.IN_TABLE_TEXT:ku(this,e)}}}function Yc(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):mu(e,t),n}function Vc(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const a=e.openElements.items[r];if(a===t.element)break;e._isSpecialElement(a,e.openElements.tagIDs[r])&&(n=a)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function qc(e,t,n){let r=t,a=e.openElements.getCommonAncestor(t);for(let i=0,o=a;o!==n;i++,o=a){a=e.openElements.getCommonAncestor(o);const n=e.activeFormattingElements.getElementEntry(o),s=n&&i>=3;!n||s?(s&&e.activeFormattingElements.removeEntry(n),e.openElements.remove(o)):(o=Wc(e,n),r===t&&(e.activeFormattingElements.bookmark=n),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(o,r),r=o)}return r}function Wc(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function Qc(e,t,n){const r=Yl(e.treeAdapter.getTagName(t));if(e._isElementCausesFosterParenting(r))e._fosterParentElement(n);else{const a=e.treeAdapter.getNamespaceURI(t);r===Ml.TEMPLATE&&a===Il.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function Kc(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:a}=n,i=e.treeAdapter.createElement(a.tagName,r,a.attrs);e._adoptNodes(t,i),e.treeAdapter.appendChild(t,i),e.activeFormattingElements.insertElementAfterBookmark(i,a),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,i,a.tagID)}function Xc(e,t){for(let n=0;n<8;n++){const n=Yc(e,t);if(!n)break;const r=Vc(e,n);if(!r)break;e.activeFormattingElements.bookmark=n;const a=qc(e,r,n.element),i=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(a),i&&Qc(e,i,a),Kc(e,r,n)}}function Jc(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function Zc(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const n=e.openElements.items[0],r=e.treeAdapter.getNodeSourceCodeLocation(n);if(r&&!r.endTag&&(e._setEndLocation(n,t),e.openElements.stackTop>=1)){const n=e.openElements.items[1],r=e.treeAdapter.getNodeSourceCodeLocation(n);r&&!r.endTag&&e._setEndLocation(n,t)}}}}function $c(e,t){e._err(t,pl.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Dl.QUIRKS),e.insertionMode=Bc.BEFORE_HTML,e._processToken(t)}function eu(e,t){e._insertFakeRootElement(),e.insertionMode=Bc.BEFORE_HEAD,e._processToken(t)}function tu(e,t){e._insertFakeElement(Rl.HEAD,Ml.HEAD),e.headElement=e.openElements.current,e.insertionMode=Bc.IN_HEAD,e._processToken(t)}function nu(e,t){switch(t.tagID){case Ml.HTML:fu(e,t);break;case Ml.BASE:case Ml.BASEFONT:case Ml.BGSOUND:case Ml.LINK:case Ml.META:e._appendElement(t,Il.HTML),t.ackSelfClosing=!0;break;case Ml.TITLE:e._switchToTextParsing(t,Xl.RCDATA);break;case Ml.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,Xl.RAWTEXT):(e._insertElement(t,Il.HTML),e.insertionMode=Bc.IN_HEAD_NO_SCRIPT);break;case Ml.NOFRAMES:case Ml.STYLE:e._switchToTextParsing(t,Xl.RAWTEXT);break;case Ml.SCRIPT:e._switchToTextParsing(t,Xl.SCRIPT_DATA);break;case Ml.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=Bc.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(Bc.IN_TEMPLATE);break;case Ml.HEAD:e._err(t,pl.misplacedStartTagForHeadElement);break;default:au(e,t)}}function ru(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==Ml.TEMPLATE&&e._err(t,pl.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(Ml.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,pl.endTagWithoutMatchingOpenElement)}function au(e,t){e.openElements.pop(),e.insertionMode=Bc.AFTER_HEAD,e._processToken(t)}function iu(e,t){const n=t.type===ml.EOF?pl.openElementsLeftAfterEof:pl.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=Bc.IN_HEAD,e._processToken(t)}function ou(e,t){e._insertFakeElement(Rl.BODY,Ml.BODY),e.insertionMode=Bc.IN_BODY,su(e,t)}function su(e,t){switch(t.type){case ml.CHARACTER:cu(e,t);break;case ml.WHITESPACE_CHARACTER:lu(e,t);break;case ml.COMMENT:Jc(e,t);break;case ml.START_TAG:fu(e,t);break;case ml.END_TAG:gu(e,t);break;case ml.EOF:Eu(e,t)}}function lu(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function cu(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function uu(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Il.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function du(e){const t=El(e,xl.TYPE);return null!=t&&"hidden"===t.toLowerCase()}function pu(e,t){e._switchToTextParsing(t,Xl.RAWTEXT)}function hu(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Il.HTML)}function fu(e,t){switch(t.tagID){case Ml.I:case Ml.S:case Ml.B:case Ml.U:case Ml.EM:case Ml.TT:case Ml.BIG:case Ml.CODE:case Ml.FONT:case Ml.SMALL:case Ml.STRIKE:case Ml.STRONG:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Il.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case Ml.A:!function(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(Rl.A);n&&(Xc(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,Il.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case Ml.H1:case Ml.H2:case Ml.H3:case Ml.H4:case Ml.H5:case Ml.H6:!function(e,t){e.openElements.hasInButtonScope(Ml.P)&&e._closePElement(),void 0!==e.openElements.currentTagId&&Wl.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,Il.HTML)}(e,t);break;case Ml.P:case Ml.DL:case Ml.OL:case Ml.UL:case Ml.DIV:case Ml.DIR:case Ml.NAV:case Ml.MAIN:case Ml.MENU:case Ml.ASIDE:case Ml.CENTER:case Ml.FIGURE:case Ml.FOOTER:case Ml.HEADER:case Ml.HGROUP:case Ml.DIALOG:case Ml.DETAILS:case Ml.ADDRESS:case Ml.ARTICLE:case Ml.SEARCH:case Ml.SECTION:case Ml.SUMMARY:case Ml.FIELDSET:case Ml.BLOCKQUOTE:case Ml.FIGCAPTION:!function(e,t){e.openElements.hasInButtonScope(Ml.P)&&e._closePElement(),e._insertElement(t,Il.HTML)}(e,t);break;case Ml.LI:case Ml.DD:case Ml.DT:!function(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const t=e.openElements.tagIDs[r];if(n===Ml.LI&&t===Ml.LI||(n===Ml.DD||n===Ml.DT)&&(t===Ml.DD||t===Ml.DT)){e.openElements.generateImpliedEndTagsWithExclusion(t),e.openElements.popUntilTagNamePopped(t);break}if(t!==Ml.ADDRESS&&t!==Ml.DIV&&t!==Ml.P&&e._isSpecialElement(e.openElements.items[r],t))break}e.openElements.hasInButtonScope(Ml.P)&&e._closePElement(),e._insertElement(t,Il.HTML)}(e,t);break;case Ml.BR:case Ml.IMG:case Ml.WBR:case Ml.AREA:case Ml.EMBED:case Ml.KEYGEN:uu(e,t);break;case Ml.HR:!function(e,t){e.openElements.hasInButtonScope(Ml.P)&&e._closePElement(),e._appendElement(t,Il.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}(e,t);break;case Ml.RB:case Ml.RTC:!function(e,t){e.openElements.hasInScope(Ml.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,Il.HTML)}(e,t);break;case Ml.RT:case Ml.RP:!function(e,t){e.openElements.hasInScope(Ml.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(Ml.RTC),e._insertElement(t,Il.HTML)}(e,t);break;case Ml.PRE:case Ml.LISTING:!function(e,t){e.openElements.hasInButtonScope(Ml.P)&&e._closePElement(),e._insertElement(t,Il.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}(e,t);break;case Ml.XMP:!function(e,t){e.openElements.hasInButtonScope(Ml.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Xl.RAWTEXT)}(e,t);break;case Ml.SVG:!function(e,t){e._reconstructActiveFormattingElements(),Pc(t),Mc(t),t.selfClosing?e._appendElement(t,Il.SVG):e._insertElement(t,Il.SVG),t.ackSelfClosing=!0}(e,t);break;case Ml.HTML:!function(e,t){0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}(e,t);break;case Ml.BASE:case Ml.LINK:case Ml.META:case Ml.STYLE:case Ml.TITLE:case Ml.SCRIPT:case Ml.BGSOUND:case Ml.BASEFONT:case Ml.TEMPLATE:nu(e,t);break;case Ml.BODY:!function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}(e,t);break;case Ml.FORM:!function(e,t){const n=e.openElements.tmplCount>0;e.formElement&&!n||(e.openElements.hasInButtonScope(Ml.P)&&e._closePElement(),e._insertElement(t,Il.HTML),n||(e.formElement=e.openElements.current))}(e,t);break;case Ml.NOBR:!function(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(Ml.NOBR)&&(Xc(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,Il.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case Ml.MATH:!function(e,t){e._reconstructActiveFormattingElements(),Rc(t),Mc(t),t.selfClosing?e._appendElement(t,Il.MATHML):e._insertElement(t,Il.MATHML),t.ackSelfClosing=!0}(e,t);break;case Ml.TABLE:!function(e,t){e.treeAdapter.getDocumentMode(e.document)!==Dl.QUIRKS&&e.openElements.hasInButtonScope(Ml.P)&&e._closePElement(),e._insertElement(t,Il.HTML),e.framesetOk=!1,e.insertionMode=Bc.IN_TABLE}(e,t);break;case Ml.INPUT:!function(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Il.HTML),du(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}(e,t);break;case Ml.PARAM:case Ml.TRACK:case Ml.SOURCE:!function(e,t){e._appendElement(t,Il.HTML),t.ackSelfClosing=!0}(e,t);break;case Ml.IMAGE:!function(e,t){t.tagName=Rl.IMG,t.tagID=Ml.IMG,uu(e,t)}(e,t);break;case Ml.BUTTON:!function(e,t){e.openElements.hasInScope(Ml.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(Ml.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,Il.HTML),e.framesetOk=!1}(e,t);break;case Ml.APPLET:case Ml.OBJECT:case Ml.MARQUEE:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Il.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}(e,t);break;case Ml.IFRAME:!function(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Xl.RAWTEXT)}(e,t);break;case Ml.SELECT:!function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Il.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===Bc.IN_TABLE||e.insertionMode===Bc.IN_CAPTION||e.insertionMode===Bc.IN_TABLE_BODY||e.insertionMode===Bc.IN_ROW||e.insertionMode===Bc.IN_CELL?Bc.IN_SELECT_IN_TABLE:Bc.IN_SELECT}(e,t);break;case Ml.OPTION:case Ml.OPTGROUP:!function(e,t){e.openElements.currentTagId===Ml.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,Il.HTML)}(e,t);break;case Ml.NOEMBED:case Ml.NOFRAMES:pu(e,t);break;case Ml.FRAMESET:!function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,Il.HTML),e.insertionMode=Bc.IN_FRAMESET)}(e,t);break;case Ml.TEXTAREA:!function(e,t){e._insertElement(t,Il.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Xl.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=Bc.TEXT}(e,t);break;case Ml.NOSCRIPT:e.options.scriptingEnabled?pu(e,t):hu(e,t);break;case Ml.PLAINTEXT:!function(e,t){e.openElements.hasInButtonScope(Ml.P)&&e._closePElement(),e._insertElement(t,Il.HTML),e.tokenizer.state=Xl.PLAINTEXT}(e,t);break;case Ml.COL:case Ml.TH:case Ml.TD:case Ml.TR:case Ml.HEAD:case Ml.FRAME:case Ml.TBODY:case Ml.TFOOT:case Ml.THEAD:case Ml.CAPTION:case Ml.COLGROUP:break;default:hu(e,t)}}function mu(e,t){const n=t.tagName,r=t.tagID;for(let a=e.openElements.stackTop;a>0;a--){const t=e.openElements.items[a],i=e.openElements.tagIDs[a];if(r===i&&(r!==Ml.UNKNOWN||e.treeAdapter.getTagName(t)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=a&&e.openElements.shortenToLength(a);break}if(e._isSpecialElement(t,i))break}}function gu(e,t){switch(t.tagID){case Ml.A:case Ml.B:case Ml.I:case Ml.S:case Ml.U:case Ml.EM:case Ml.TT:case Ml.BIG:case Ml.CODE:case Ml.FONT:case Ml.NOBR:case Ml.SMALL:case Ml.STRIKE:case Ml.STRONG:Xc(e,t);break;case Ml.P:!function(e){e.openElements.hasInButtonScope(Ml.P)||e._insertFakeElement(Rl.P,Ml.P),e._closePElement()}(e);break;case Ml.DL:case Ml.UL:case Ml.OL:case Ml.DIR:case Ml.DIV:case Ml.NAV:case Ml.PRE:case Ml.MAIN:case Ml.MENU:case Ml.ASIDE:case Ml.BUTTON:case Ml.CENTER:case Ml.FIGURE:case Ml.FOOTER:case Ml.HEADER:case Ml.HGROUP:case Ml.DIALOG:case Ml.ADDRESS:case Ml.ARTICLE:case Ml.DETAILS:case Ml.SEARCH:case Ml.SECTION:case Ml.SUMMARY:case Ml.LISTING:case Ml.FIELDSET:case Ml.BLOCKQUOTE:case Ml.FIGCAPTION:!function(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}(e,t);break;case Ml.LI:!function(e){e.openElements.hasInListItemScope(Ml.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(Ml.LI),e.openElements.popUntilTagNamePopped(Ml.LI))}(e);break;case Ml.DD:case Ml.DT:!function(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}(e,t);break;case Ml.H1:case Ml.H2:case Ml.H3:case Ml.H4:case Ml.H5:case Ml.H6:!function(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}(e);break;case Ml.BR:!function(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(Rl.BR,Ml.BR),e.openElements.pop(),e.framesetOk=!1}(e);break;case Ml.BODY:!function(e,t){if(e.openElements.hasInScope(Ml.BODY)&&(e.insertionMode=Bc.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}(e,t);break;case Ml.HTML:!function(e,t){e.openElements.hasInScope(Ml.BODY)&&(e.insertionMode=Bc.AFTER_BODY,Pu(e,t))}(e,t);break;case Ml.FORM:!function(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(Ml.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(Ml.FORM):n&&e.openElements.remove(n))}(e);break;case Ml.APPLET:case Ml.OBJECT:case Ml.MARQUEE:!function(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}(e,t);break;case Ml.TEMPLATE:ru(e,t);break;default:mu(e,t)}}function Eu(e,t){e.tmplInsertionModeStack.length>0?Ru(e,t):Zc(e,t)}function Tu(e,t){if(void 0!==e.openElements.currentTagId&&jc.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=Bc.IN_TABLE_TEXT,t.type){case ml.CHARACTER:Au(e,t);break;case ml.WHITESPACE_CHARACTER:ku(e,t)}else vu(e,t)}function yu(e,t){switch(t.tagID){case Ml.TD:case Ml.TH:case Ml.TR:!function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Rl.TBODY,Ml.TBODY),e.insertionMode=Bc.IN_TABLE_BODY,Iu(e,t)}(e,t);break;case Ml.STYLE:case Ml.SCRIPT:case Ml.TEMPLATE:nu(e,t);break;case Ml.COL:!function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Rl.COLGROUP,Ml.COLGROUP),e.insertionMode=Bc.IN_COLUMN_GROUP,Cu(e,t)}(e,t);break;case Ml.FORM:!function(e,t){e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,Il.HTML),e.formElement=e.openElements.current,e.openElements.pop())}(e,t);break;case Ml.TABLE:!function(e,t){e.openElements.hasInTableScope(Ml.TABLE)&&(e.openElements.popUntilTagNamePopped(Ml.TABLE),e._resetInsertionMode(),e._processStartTag(t))}(e,t);break;case Ml.TBODY:case Ml.TFOOT:case Ml.THEAD:!function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Il.HTML),e.insertionMode=Bc.IN_TABLE_BODY}(e,t);break;case Ml.INPUT:!function(e,t){du(t)?e._appendElement(t,Il.HTML):vu(e,t),t.ackSelfClosing=!0}(e,t);break;case Ml.CAPTION:!function(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,Il.HTML),e.insertionMode=Bc.IN_CAPTION}(e,t);break;case Ml.COLGROUP:!function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Il.HTML),e.insertionMode=Bc.IN_COLUMN_GROUP}(e,t);break;default:vu(e,t)}}function bu(e,t){switch(t.tagID){case Ml.TABLE:e.openElements.hasInTableScope(Ml.TABLE)&&(e.openElements.popUntilTagNamePopped(Ml.TABLE),e._resetInsertionMode());break;case Ml.TEMPLATE:ru(e,t);break;case Ml.BODY:case Ml.CAPTION:case Ml.COL:case Ml.COLGROUP:case Ml.HTML:case Ml.TBODY:case Ml.TD:case Ml.TFOOT:case Ml.TH:case Ml.THEAD:case Ml.TR:break;default:vu(e,t)}}function vu(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,su(e,t),e.fosterParentingEnabled=n}function ku(e,t){e.pendingCharacterTokens.push(t)}function Au(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Su(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)vu(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const _u=new Set([Ml.CAPTION,Ml.COL,Ml.COLGROUP,Ml.TBODY,Ml.TD,Ml.TFOOT,Ml.TH,Ml.THEAD,Ml.TR]);function Cu(e,t){switch(t.tagID){case Ml.HTML:fu(e,t);break;case Ml.COL:e._appendElement(t,Il.HTML),t.ackSelfClosing=!0;break;case Ml.TEMPLATE:nu(e,t);break;default:Nu(e,t)}}function Nu(e,t){e.openElements.currentTagId===Ml.COLGROUP&&(e.openElements.pop(),e.insertionMode=Bc.IN_TABLE,e._processToken(t))}function Iu(e,t){switch(t.tagID){case Ml.TR:e.openElements.clearBackToTableBodyContext(),e._insertElement(t,Il.HTML),e.insertionMode=Bc.IN_ROW;break;case Ml.TH:case Ml.TD:e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(Rl.TR,Ml.TR),e.insertionMode=Bc.IN_ROW,xu(e,t);break;case Ml.CAPTION:case Ml.COL:case Ml.COLGROUP:case Ml.TBODY:case Ml.TFOOT:case Ml.THEAD:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Bc.IN_TABLE,yu(e,t));break;default:yu(e,t)}}function wu(e,t){const n=t.tagID;switch(t.tagID){case Ml.TBODY:case Ml.TFOOT:case Ml.THEAD:e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Bc.IN_TABLE);break;case Ml.TABLE:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=Bc.IN_TABLE,bu(e,t));break;case Ml.BODY:case Ml.CAPTION:case Ml.COL:case Ml.COLGROUP:case Ml.HTML:case Ml.TD:case Ml.TH:case Ml.TR:break;default:bu(e,t)}}function xu(e,t){switch(t.tagID){case Ml.TH:case Ml.TD:e.openElements.clearBackToTableRowContext(),e._insertElement(t,Il.HTML),e.insertionMode=Bc.IN_CELL,e.activeFormattingElements.insertMarker();break;case Ml.CAPTION:case Ml.COL:case Ml.COLGROUP:case Ml.TBODY:case Ml.TFOOT:case Ml.THEAD:case Ml.TR:e.openElements.hasInTableScope(Ml.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Bc.IN_TABLE_BODY,Iu(e,t));break;default:yu(e,t)}}function Ou(e,t){switch(t.tagID){case Ml.TR:e.openElements.hasInTableScope(Ml.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Bc.IN_TABLE_BODY);break;case Ml.TABLE:e.openElements.hasInTableScope(Ml.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Bc.IN_TABLE_BODY,wu(e,t));break;case Ml.TBODY:case Ml.TFOOT:case Ml.THEAD:(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(Ml.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=Bc.IN_TABLE_BODY,wu(e,t));break;case Ml.BODY:case Ml.CAPTION:case Ml.COL:case Ml.COLGROUP:case Ml.HTML:case Ml.TD:case Ml.TH:break;default:bu(e,t)}}function Du(e,t){switch(t.tagID){case Ml.HTML:fu(e,t);break;case Ml.OPTION:e.openElements.currentTagId===Ml.OPTION&&e.openElements.pop(),e._insertElement(t,Il.HTML);break;case Ml.OPTGROUP:e.openElements.currentTagId===Ml.OPTION&&e.openElements.pop(),e.openElements.currentTagId===Ml.OPTGROUP&&e.openElements.pop(),e._insertElement(t,Il.HTML);break;case Ml.HR:e.openElements.currentTagId===Ml.OPTION&&e.openElements.pop(),e.openElements.currentTagId===Ml.OPTGROUP&&e.openElements.pop(),e._appendElement(t,Il.HTML),t.ackSelfClosing=!0;break;case Ml.INPUT:case Ml.KEYGEN:case Ml.TEXTAREA:case Ml.SELECT:e.openElements.hasInSelectScope(Ml.SELECT)&&(e.openElements.popUntilTagNamePopped(Ml.SELECT),e._resetInsertionMode(),t.tagID!==Ml.SELECT&&e._processStartTag(t));break;case Ml.SCRIPT:case Ml.TEMPLATE:nu(e,t)}}function Lu(e,t){switch(t.tagID){case Ml.OPTGROUP:e.openElements.stackTop>0&&e.openElements.currentTagId===Ml.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===Ml.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===Ml.OPTGROUP&&e.openElements.pop();break;case Ml.OPTION:e.openElements.currentTagId===Ml.OPTION&&e.openElements.pop();break;case Ml.SELECT:e.openElements.hasInSelectScope(Ml.SELECT)&&(e.openElements.popUntilTagNamePopped(Ml.SELECT),e._resetInsertionMode());break;case Ml.TEMPLATE:ru(e,t)}}function Ru(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(Ml.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Zc(e,t)}function Pu(e,t){var n;if(t.tagID===Ml.HTML){if(e.fragmentContext||(e.insertionMode=Bc.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===Ml.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(null===(n=e.treeAdapter.getNodeSourceCodeLocation(r))||void 0===n?void 0:n.endTag)&&e._setEndLocation(r,t)}}else Mu(e,t)}function Mu(e,t){e.insertionMode=Bc.IN_BODY,su(e,t)}function Fu(e,t){e.insertionMode=Bc.IN_BODY,su(e,t)}function Bu(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Il.HTML&&void 0!==e.openElements.currentTagId&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}Rl.AREA,Rl.BASE,Rl.BASEFONT,Rl.BGSOUND,Rl.BR,Rl.COL,Rl.EMBED,Rl.FRAME,Rl.HR,Rl.IMG,Rl.INPUT,Rl.KEYGEN,Rl.LINK,Rl.META,Rl.PARAM,Rl.SOURCE,Rl.TRACK,Rl.WBR;const Uu=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,Hu=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),ju={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function zu(e,t){const n=function(e){const t="root"===e.type?e.children[0]:e;return Boolean(t&&("doctype"===t.type||"element"===t.type&&"html"===t.tagName.toLowerCase()))}(e),r=Eo("type",{handlers:{root:Yu,element:Vu,text:qu,comment:Ku,doctype:Wu,raw:Xu},unknown:Ju}),a={parser:n?new Gc(ju):Gc.getFragmentParser(void 0,ju),handle(e){r(e,a)},stitches:!1,options:t||{}};r(e,a),Zu(a,$t());const i=function(e,t){const n=t||{};return js({file:n.file||void 0,location:!1,schema:"svg"===n.space?Bt:Ft,verbose:n.verbose||!1},e)}(n?a.parser.document:a.parser.getFragment(),{file:a.options.file});return a.stitches&&Va(i,"comment",function(e,t,n){const r=e;if(r.value.stitch&&n&&void 0!==t){return n.children[t]=r.value.stitch,t}}),"root"===i.type&&1===i.children.length&&i.children[0].type===e.type?i.children[0]:i}function Gu(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function Yu(e,t){Gu(e.children,t)}function Vu(e,t){!function(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Xl.PLAINTEXT)return;Zu(t,$t(e));const r=t.parser.openElements.current;let a="namespaceURI"in r?r.namespaceURI:Bs.html;a===Bs.html&&"svg"===n&&(a=Bs.svg);const i=function(e,t){const n=(t||qs).space;return Qs(e,"svg"===n?Bt:Ft)}({...e,children:[]},{space:a===Bs.svg?"svg":"html"}),o={type:ml.START_TAG,tagName:n,tagID:Yl(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in i?i.attrs:[],location:ed(e)};t.parser.currentToken=o,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}(e,t),Gu(e.children,t),function(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&Zs.includes(n))return;if(t.parser.tokenizer.state===Xl.PLAINTEXT)return;Zu(t,Zt(e));const r={type:ml.END_TAG,tagName:n,tagID:Yl(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:ed(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n!==t.parser.tokenizer.lastStartTagName||t.parser.tokenizer.state!==Xl.RCDATA&&t.parser.tokenizer.state!==Xl.RAWTEXT&&t.parser.tokenizer.state!==Xl.SCRIPT_DATA||(t.parser.tokenizer.state=Xl.DATA)}(e,t)}function qu(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:ml.CHARACTER,chars:e.value,location:ed(e)};Zu(t,$t(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function Wu(e,t){const n={type:ml.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:ed(e)};Zu(t,$t(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function Qu(e,t){t.stitches=!0;const n=function(e){return Pa("children"in e?{...e,children:[]}:e)}(e);if("children"in e&&"children"in n){const r=zu({type:"root",children:e.children},t.options);n.children=r.children}Ku({type:"comment",value:{stitch:n}},t)}function Ku(e,t){const n=e.value,r={type:ml.COMMENT,data:n,location:ed(e)};Zu(t,$t(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function Xu(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,$u(t,$t(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(Uu,"&lt;$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),72===t.parser.tokenizer.state||78===t.parser.tokenizer.state){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const e=t.parser.tokenizer._consume();t.parser.tokenizer._callState(e)}}function Ju(e,t){const n=e;if(!t.options.passThrough||!t.options.passThrough.includes(n.type)){let e="";throw Hu.has(n.type)&&(e=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+e)}Qu(n,t)}function Zu(e,t){$u(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=Xl.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function $u(e,t){if(t&&void 0!==t.offset){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=1-t.column,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function ed(e){const t=$t(e)||{line:void 0,column:void 0,offset:void 0},n=Zt(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function td(e){return function(t,n){return zu(t,{...e,file:n})}}const nd=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],rd={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...nd,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...nd],h2:[["className","sr-only"]],img:[...nd,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...nd,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...nd],table:[...nd],ul:[...nd,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]},ad={}.hasOwnProperty;function id(e,t){if(t&&"object"==typeof t){const n=t;switch("string"==typeof n.type?n.type:""){case"comment":return function(e,t){if(e.schema.allowComments){const e="string"==typeof t.value?t.value:"",n=e.indexOf("--\x3e"),r={type:"comment",value:n<0?e:e.slice(0,n)};return cd(r,t),r}}(e,n);case"doctype":return function(e,t){if(e.schema.allowDoctypes){const e={type:"doctype"};return cd(e,t),e}}(e,n);case"element":return function(e,t){const n="string"==typeof t.tagName?t.tagName:"";e.stack.push(n);const r=od(e,t.children),a=function(e,t){const n=e.stack[e.stack.length-1],r=e.schema.attributes,a=e.schema.required,i=r&&ad.call(r,n)?r[n]:void 0,o=r&&ad.call(r,"*")?r["*"]:void 0,s=t&&"object"==typeof t?t:{},l={};let c;for(c in s)if(ad.call(s,c)){const t=s[c];let n=sd(e,ud(i,c),c,t);null==n&&(n=sd(e,ud(o,c),c,t)),null!=n&&(l[c]=n)}if(a&&ad.call(a,n)){const e=a[n];for(c in e)ad.call(e,c)&&!ad.call(l,c)&&(l[c]=e[c])}return l}(e,t.properties);e.stack.pop();let i=!1;if(n&&"*"!==n&&(!e.schema.tagNames||e.schema.tagNames.includes(n))&&(i=!0,e.schema.ancestors&&ad.call(e.schema.ancestors,n))){const t=e.schema.ancestors[n];let r=-1;for(i=!1;++r<t.length;)e.stack.includes(t[r])&&(i=!0)}if(!i)return e.schema.strip&&!e.schema.strip.includes(n)?r:void 0;const o={type:"element",tagName:n,properties:a,children:r};return cd(o,t),o}(e,n);case"root":return function(e,t){const n=od(e,t.children),r={type:"root",children:n};return cd(r,t),r}(e,n);case"text":return function(e,t){const n="string"==typeof t.value?t.value:"",r={type:"text",value:n};return cd(r,t),r}(0,n)}}}function od(e,t){const n=[];if(Array.isArray(t)){const r=t;let a=-1;for(;++a<r.length;){const t=id(e,r[a]);t&&(Array.isArray(t)?n.push(...t):n.push(t))}}return n}function sd(e,t,n,r){return t?Array.isArray(r)?function(e,t,n,r){let a=-1;const i=[];for(;++a<r.length;){const o=ld(e,t,n,r[a]);"number"!=typeof o&&"string"!=typeof o||i.push(o)}return i}(e,t,n,r):ld(e,t,n,r):void 0}function ld(e,t,n,r){if(("boolean"==typeof r||"number"==typeof r||"string"==typeof r)&&function(e,t,n){const r=e.schema.protocols&&ad.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;if(!r||0===r.length)return!0;const a=String(n),i=a.indexOf(":"),o=a.indexOf("?"),s=a.indexOf("#"),l=a.indexOf("/");if(i<0||l>-1&&i>l||o>-1&&i>o||s>-1&&i>s)return!0;let c=-1;for(;++c<r.length;){const e=r[c];if(i===e.length&&a.slice(0,e.length)===e)return!0}return!1}(e,n,r)){if("object"==typeof t&&t.length>1){let e=!1,n=0;for(;++n<t.length;){const a=t[n];if(a&&"object"==typeof a&&"flags"in a){if(a.test(String(r))){e=!0;break}}else if(a===r){e=!0;break}}if(!e)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(n)?e.schema.clobberPrefix+r:r}}function cd(e,t){const n=tn(t);t.data&&(e.data=Pa(t.data)),n&&(e.position=n)}function ud(e,t){let n,r=-1;if(e)for(;++r<e.length;){const a=e[r],i="string"==typeof a?a:a[0];if(i===t)return a;"data*"===i&&(n=a)}if(t.length>4&&"data"===t.slice(0,4).toLowerCase())return n}function dd(e){return function(t){const n=function(e,t){let n={type:"root",children:[]};const r=id({schema:t?{...rd,...t}:rd,stack:[]},e);return r&&(Array.isArray(r)?1===r.length?n=r[0]:n.children=r:n=r),n}(t,e);return n}}const pd=()=>{const{t:e}=G();return N.jsxs("div",{className:"gpc-typing-indicator",role:"status","aria-label":e("ui.typingIndicator.typing"),children:[N.jsx("span",{className:"gpc-typing-dot"}),N.jsx("span",{className:"gpc-typing-dot"}),N.jsx("span",{className:"gpc-typing-dot"})]})},hd={...rd,attributes:{...rd.attributes,td:[...rd.attributes?.td||[],"align"],th:[...rd.attributes?.th||[],"align"]}},fd=({message:e,showMetadata:t=!1,messageRef:n=null})=>{const{t:r}=G(),a="user"===e.role,i=!a&&e.isStreaming&&!e.content,[o,s]=l.useState(!1);return N.jsxs("div",{ref:n,className:"gpc-message "+(a?"gpc-message-user":"gpc-message-assistant"),role:"article","aria-label":r(a?"ui.message.userMessage":"ui.message.assistantMessage"),children:[N.jsx("div",{className:"gpc-message-content",children:i?N.jsx(pd,{}):a?e.content.trim():N.jsx(Di,{remarkPlugins:[[ws,{autoLinkLiterals:!0}]],rehypePlugins:[td,[dd,hd]],components:{a:({node:e,...t})=>N.jsx("a",{target:"_blank",rel:"noopener noreferrer",...t}),table:({node:e,...t})=>N.jsx("div",{className:"gpc-table-wrapper",children:N.jsx("table",{className:"gpc-table",...t})}),thead:({node:e,...t})=>N.jsx("thead",{className:"gpc-table-head",...t}),tbody:({node:e,...t})=>N.jsx("tbody",{className:"gpc-table-body",...t}),tr:({node:e,...t})=>N.jsx("tr",{className:"gpc-table-row",...t}),th:({node:e,...t})=>N.jsx("th",{className:"gpc-table-header",...t}),td:({node:e,...t})=>N.jsx("td",{className:"gpc-table-cell",...t})},children:e.content})}),N.jsxs("div",{className:"gpc-message-timestamp "+(a?"gpc-message-timestamp-user":""),children:[!a&&e.metadata?.modelUsed&&N.jsx("span",{className:"gpc-model-badge",children:e.metadata.modelUsed}),N.jsxs("span",{className:"gpc-timestamp-right",children:[N.jsx("span",{children:ze(e.timestamp)}),!i&&e.content&&N.jsx("button",{type:"button",onClick:async t=>{t.preventDefault(),t.stopPropagation();try{await navigator.clipboard.writeText(e.content),s(!0),setTimeout(()=>s(!1),2e3)}catch(n){}},className:"gpc-copy-button","aria-label":o?"Copiado":"Copiar mensaje",children:o?N.jsx(J,{size:14}):N.jsx(ee,{size:14})})]})]}),!a&&t&&e.metadata&&N.jsxs("div",{className:"gpc-message-metadata",children:[e.metadata.tokensUsed&&N.jsxs("div",{className:"gpc-metadata-item",children:[N.jsxs("strong",{children:[r("metadata.tokensUsed"),":"]})," ",e.metadata.tokensUsed]}),e.metadata.responseTimeMs&&N.jsxs("div",{className:"gpc-metadata-item",children:[N.jsxs("strong",{children:[r("metadata.responseTime"),":"]})," ",(c=e.metadata.responseTimeMs,c>=1e3?`${(c/1e3).toFixed(1)}s`:`${Math.round(c)}ms`)]}),e.metadata.modelUsed&&N.jsxs("div",{className:"gpc-metadata-item",children:[N.jsxs("strong",{children:[r("metadata.model"),":"]})," ",e.metadata.modelUsed]})]})]});var c},md=({messages:e,isLoading:t,showMetadata:n=!1,widgetConfig:r=null,hasMoreMessages:a=!1,isLoadingMoreMessages:i=!1,onLoadMoreMessages:o=null})=>{const{t:s}=G(),c=l.useRef(null),u=l.useRef(null),d=l.useRef(0),p=l.useRef(!1),h=l.useRef(null),f=l.useRef(null),m=l.useRef(0);l.useLayoutEffect(()=>{e.length>0&&!p.current&&(c.current?.scrollIntoView({behavior:"instant"}),p.current=!0,d.current=e.length)},[e.length]),l.useEffect(()=>{if(!o)return;const e=new IntersectionObserver(e=>{e[0].isIntersecting&&a&&!i&&(h.current&&(m.current=h.current.scrollHeight),o())},{threshold:1});return f.current&&e.observe(f.current),()=>{f.current&&e.unobserve(f.current)}},[a,i,o]),l.useEffect(()=>{if(!1===i&&m.current>0&&h.current){const e=h.current.scrollHeight-m.current;h.current.scrollTop=e,m.current=0}},[i]),l.useEffect(()=>{const t=e.length,n=d.current,r=e[t-1],a=t>n+1;t>0&&p.current&&(a?setTimeout(()=>{c.current?.scrollIntoView({behavior:"instant"})},150):t>n&&r&&("user"===r.role?c.current?.scrollIntoView({behavior:"smooth"}):"assistant"===r.role&&r.isStreaming&&setTimeout(()=>{u.current?.scrollIntoView({behavior:"smooth",block:"start"})},100))),d.current=t},[e]);const g=r?.widget_customization?.branding?.company_name||"TIA GPC",E=r?.widget_customization?.branding?.company_logo_base64,T=r?.widget_customization?.welcome_message,y=Ve(E),b=T||s("chat.welcome",{companyName:g});return 0!==e.length||t?N.jsxs("div",{ref:h,className:"gpc-messages-container gpc-scrollbar gpc-smooth-scroll",children:[a&&N.jsx("div",{style:{textAlign:"center",padding:"10px"},children:i?N.jsxs("div",{className:"gpc-loading-more-messages",children:[N.jsx("div",{className:"gpc-loading-spinner"}),N.jsx("span",{children:s("chat.loadingMore","Loading older messages...")})]}):N.jsx("div",{ref:f,style:{height:"1px"}})}),e.map((t,r)=>N.jsx(fd,{message:t,showMetadata:n,messageRef:r===e.length-1?u:null},t.id)),N.jsx("div",{ref:c})]}):N.jsx("div",{className:"gpc-messages-container",children:N.jsxs("div",{className:"gpc-empty-state",children:[y?N.jsx("div",{className:"gpc-welcome-logo",children:N.jsx("img",{src:y,alt:g,className:"gpc-welcome-company-logo"})}):N.jsx(le,{className:"gpc-empty-icon"}),N.jsx("h3",{className:"gpc-empty-title",children:b}),N.jsx("p",{className:"gpc-empty-text",children:s("chat.emptyState")})]})})},gd=({onTranscript:e,isLoading:t,disabled:n,onRecordingStateChange:r,onAnalyserChange:a})=>{const{t:i}=G(),[o,s]=l.useState(!1),[c,u]=l.useState(!1),d=l.useRef(null),p=l.useRef([]),h=l.useRef(null),f=l.useRef(null),m=l.useRef(null),g=l.useRef(null),E=l.useRef(null);l.useEffect(()=>()=>{"recording"===d.current?.state&&d.current.stop(),h.current&&"closed"!==h.current.state&&h.current.close(),E.current&&clearInterval(E.current)},[]),l.useEffect(()=>{r&&r(o||c)},[o,c,r]),l.useEffect(()=>{a&&a(f.current)},[f.current,a]);const T=async()=>{try{if(!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return void alert(i("voice.unsupported"));const t=await navigator.mediaDevices.getUserMedia({audio:{echoCancellation:!0,noiseSuppression:!0,autoGainControl:!0,sampleRate:48e3,channelCount:1}});h.current=new(window.AudioContext||window.webkitAudioContext),f.current=h.current.createAnalyser();h.current.createMediaStreamSource(t).connect(f.current),f.current.fftSize=1024,f.current.smoothingTimeConstant=.4,f.current.minDecibels=-85,f.current.maxDecibels=-15;const n=f.current.frequencyBinCount;m.current=new Uint8Array(n);const r=new MediaRecorder(t,{mimeType:"audio/webm;codecs=opus"});d.current=r,p.current=[],g.current=null,r.ondataavailable=e=>{e.data.size>0&&p.current.push(e.data)},r.onstop=async()=>{if(E.current&&(clearInterval(E.current),E.current=null),h.current&&"closed"!==h.current.state&&h.current.close(),g.current=null,0===p.current.length)return;const t=new Blob(p.current,{type:"audio/webm"});u(!0);try{await e(t)}catch(n){alert(i("voice.error"))}finally{u(!1),p.current=[]}},r.start(100),s(!0),E.current=setInterval(()=>{(()=>{if(!f.current||!m.current)return;f.current.getByteTimeDomainData(m.current);let e=0;for(let t=0;t<m.current.length;t++){const n=(m.current[t]-128)/128;e+=n*n}if(100*Math.sqrt(e/m.current.length)<1.2){if(g.current||(g.current=Date.now()),Date.now()-g.current>2e3)y()}else g.current=null})()},100)}catch(t){"NotAllowedError"===t.name||"PermissionDeniedError"===t.name?alert(i("voice.permissionDenied")):alert(i("voice.unsupported"))}},y=()=>{(o||"recording"===d.current?.state)&&(d.current&&"recording"===d.current.state&&d.current.stop(),E.current&&(clearInterval(E.current),E.current=null),g.current=null,s(!1),d.current&&d.current.stream&&d.current.stream.getTracks().forEach(e=>e.stop()))},b=n||t||c,v=i(c?"voice.processing":o?"voice.stop":"voice.record");return N.jsx("button",{type:"button",onClick:e=>{e.preventDefault(),e.stopPropagation(),o?y():T()},disabled:b,className:"gpc-voice-button "+(o?"gpc-voice-recording":""),"aria-label":v,title:v,children:c?N.jsx("span",{className:"gpc-spinner"}):o?N.jsx(ce,{className:"gpc-icon gpc-voice-icon-active"}):N.jsx(ue,{className:"gpc-icon"})})},Ed=({analyser:e,isRecording:t})=>{const n=l.useRef(null),r=l.useRef(null);return l.useEffect(()=>{if(!t||!e||!n.current)return;const a=n.current,i=a.getContext("2d"),o=e.frequencyBinCount,s=new Uint8Array(o),l=window.devicePixelRatio||1,c=a.getBoundingClientRect();a.width=c.width*l,a.height=c.height*l,i.scale(l,l);const u=c.width,d=c.height,p=()=>{if(!t)return;r.current=requestAnimationFrame(p),e.getByteFrequencyData(s),i.clearRect(0,0,u,d);const n=(u-200)/2;for(let e=0;e<40;e++){const t=Math.floor(e*o/40),r=s[t]/255,a=Math.max(2,r*d*.8),l=n+5*e,c=(d-a)/2,u=i.createLinearGradient(0,c,0,c+a);u.addColorStop(0,"rgba(59, 130, 246, 0.8)"),u.addColorStop(1,"rgba(96, 165, 250, 0.6)"),i.fillStyle=u,i.fillRect(l,c,3,a)}};return p(),()=>{r.current&&cancelAnimationFrame(r.current)}},[e,t]),t?N.jsx("div",{className:"gpc-audio-waveform-container",children:N.jsx("canvas",{ref:n,className:"gpc-audio-waveform-canvas","aria-label":"Audio waveform visualization"})}):null},Td=({onSendMessage:e,isLoading:t,disabled:n,gpcService:r,showBranding:a=!0})=>{const{t:i}=G(),[o,s]=l.useState(""),[c,u]=l.useState(!1),[d,p]=l.useState(null),h=l.useRef(null);l.useEffect(()=>{n||t||c||h.current?.focus()},[n,t,c]),l.useEffect(()=>{h.current&&(h.current.style.height="auto",h.current.style.height=`${Math.min(h.current.scrollHeight,120)}px`)},[o]);const f=async r=>{r.preventDefault();const a=(e=>e.trim().slice(0,2e3))(o);if(a&&!t&&!n&&!c)try{await e(a),s(""),h.current&&(h.current.style.height="auto")}catch(i){}},m=o.trim().length>0&&!t&&!n&&!c,g=t||n||c,E=n||o.trim().length>0;return N.jsxs("form",{onSubmit:f,className:"gpc-input-container",children:[N.jsxs("div",{className:"gpc-input-wrapper",children:[N.jsx("textarea",{ref:h,value:o,onChange:e=>s(e.target.value),onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||c||(e.preventDefault(),f(e))},placeholder:c?"":i("chat.placeholder"),disabled:g,maxLength:je,className:"gpc-input gpc-textarea "+(c?"gpc-input-recording":""),"aria-label":i("chat.placeholder"),"aria-describedby":"chat-input-help",rows:1}),N.jsx(Ed,{analyser:d,isRecording:c})]}),N.jsxs("div",{className:"gpc-input-actions-right",children:[N.jsx(gd,{onTranscript:async e=>{if(!r)throw new Error(i("toast.gpcServiceNotAvailable"));const t=await r.transcribeAudio(e);t.success&&t.text&&(s(t.text),h.current?.focus())},isLoading:t,disabled:E,onRecordingStateChange:e=>{u(e)},onAnalyserChange:e=>{p(e)}}),N.jsx("button",{type:"submit",disabled:!m,className:"gpc-send-button","aria-label":i("chat.send"),title:i("chat.send"),children:t?N.jsx("span",{className:"gpc-spinner"}):N.jsx(he,{className:"gpc-icon"})})]}),N.jsxs("div",{className:"gpc-footer-container",children:[N.jsx("span",{className:"gpc-ai-disclaimer",children:i("chat.aiDisclaimer")}),a&&N.jsx("span",{className:"gpc-powered-by",children:i("widget.poweredBy")})]}),N.jsxs("span",{id:"chat-input-help",className:"gpc-sr-only",children:[i("chat.placeholder"),"."," ",i("input.maxCharacters",{count:je})]})]})},yd=({isOpen:e,onClose:t,onConfirm:n,message:r,confirmText:a,cancelText:i,variant:o="danger"})=>{const{t:s}=G();if(!e)return null;return N.jsx("div",{className:"gpc-confirm-toast-container gpc-animate-slide-down",children:N.jsxs("div",{className:"gpc-confirm-toast "+("danger"===o?"gpc-confirm-toast-danger":""),children:[N.jsx("p",{className:"gpc-confirm-toast-message",children:r}),N.jsxs("div",{className:"gpc-confirm-toast-actions",children:[N.jsx("button",{type:"button",onClick:e=>{e.preventDefault(),e.stopPropagation(),t()},className:"gpc-confirm-toast-button gpc-confirm-toast-button-cancel gpc-focus-visible gpc-transition",children:i||s("conversations.cancel","Cancel")}),N.jsx("button",{type:"button",onClick:e=>{e.preventDefault(),e.stopPropagation(),n(),t()},className:"gpc-confirm-toast-button gpc-confirm-toast-button-confirm gpc-focus-visible gpc-transition",children:a||s("conversations.delete","Delete")})]})]})})},bd=({conversations:e,totalConversations:t,currentConversationId:n,onSelectConversation:r,onNewConversation:a,onRenameConversation:i,onDeleteConversation:o,isLoadingHistory:s,hasMoreConversations:c,isLoadingMoreConversations:u,onLoadMore:d})=>{const{t:p}=G(),h=l.useRef(null),[f,m]=l.useState(null),[g,E]=l.useState(""),[T,y]=l.useState({isOpen:!1,id:null,title:""});l.useEffect(()=>{const e=new IntersectionObserver(e=>{e[0].isIntersecting&&c&&!u&&!s&&d()},{threshold:1});return h.current&&e.observe(h.current),()=>{h.current&&e.unobserve(h.current)}},[c,u,s,d]);const b=e=>{const t=new Date(e),n=new Date-t,r=Math.floor(n/6e4),a=Math.floor(n/36e5),i=Math.floor(n/864e5);return r<1?p("time.justNow","Just now"):r<60?p("time.minutesAgo",`${r} min ago`,{count:r}):a<24?p("time.hoursAgo",`${a}h ago`,{count:a}):i<7?p("time.daysAgo",`${i}d ago`,{count:i}):t.toLocaleDateString()},v=()=>{m(null),E("")},k=e=>{g.trim()&&i&&(i(e,g.trim()),m(null),E(""))};return N.jsxs("div",{className:"gpc-conversations-container",children:[N.jsxs("div",{className:"gpc-conversations-header",children:[N.jsx("h3",{className:"gpc-conversations-title",children:p("conversations.title","Conversations")}),N.jsxs("button",{type:"button",onClick:e=>{e.preventDefault(),e.stopPropagation(),a()},className:"gpc-new-conversation-button gpc-focus-visible gpc-transition",disabled:s,"aria-label":p("conversations.new","New"),children:[N.jsx(le,{size:16}),N.jsx("span",{children:p("conversations.new","New")})]})]}),N.jsx("div",{className:"gpc-conversations-list",children:0===e.length?N.jsxs("div",{className:"gpc-conversations-empty",children:[N.jsx(le,{size:48,className:"gpc-conversations-empty-icon"}),N.jsx("p",{className:"gpc-conversations-empty-text",children:p("conversations.empty","No conversations yet")}),N.jsx("p",{className:"gpc-conversations-empty-hint",children:p("conversations.emptyHint","Start a conversation to see it here")})]}):N.jsxs("div",{className:"gpc-conversations-items",children:[e.map(e=>N.jsx("div",{className:`gpc-conversation-item gpc-animate-fade-in ${n===e.conversation_id?"gpc-conversation-item-active":""} ${s?"gpc-conversation-item-disabled":""}`,children:N.jsx("div",{className:"gpc-conversation-content gpc-transition",onClick:()=>f!==e.conversation_id&&!s&&r(e.conversation_id),children:f===e.conversation_id?N.jsxs("div",{className:"gpc-conversation-edit",children:[N.jsx("input",{type:"text",value:g,onChange:e=>E(e.target.value),onKeyDown:t=>{"Enter"===t.key&&k(e.conversation_id),"Escape"===t.key&&v()},className:"gpc-conversation-edit-input gpc-focus-visible",placeholder:p("conversations.untitled","Untitled conversation"),autoFocus:!0,maxLength:200}),N.jsxs("div",{className:"gpc-conversation-edit-actions",children:[N.jsx("button",{type:"button",onClick:t=>{t.preventDefault(),t.stopPropagation(),k(e.conversation_id)},className:"gpc-conversation-action-button gpc-conversation-action-save gpc-focus-visible gpc-transition",title:p("conversations.save","Save"),"aria-label":p("conversations.save","Save"),children:N.jsx(J,{size:16})}),N.jsx("button",{type:"button",onClick:e=>{e.preventDefault(),e.stopPropagation(),v()},className:"gpc-conversation-action-button gpc-conversation-action-cancel gpc-focus-visible gpc-transition",title:p("conversations.cancel","Cancel"),"aria-label":p("conversations.cancel","Cancel"),children:N.jsx(ge,{size:16})})]})]}):N.jsxs(N.Fragment,{children:[N.jsxs("div",{className:"gpc-conversation-header",children:[N.jsx("h4",{className:"gpc-conversation-title",children:e.title||p("conversations.untitled","Untitled conversation")}),N.jsxs("div",{className:"gpc-conversation-actions",children:[N.jsx("button",{type:"button",onClick:t=>{t.preventDefault(),t.stopPropagation(),(e=>{m(e.conversation_id),E(e.title||"")})(e)},className:"gpc-conversation-action-button gpc-focus-visible gpc-transition",disabled:s,title:p("conversations.rename","Rename"),"aria-label":p("conversations.rename","Rename"),children:N.jsx(pe,{size:16})}),N.jsx("button",{type:"button",onClick:t=>{var n,r;t.preventDefault(),t.stopPropagation(),n=e.conversation_id,r=e.title||p("conversations.untitled","Untitled conversation"),y({isOpen:!0,id:n,title:r||p("conversations.untitled","Untitled conversation")})},className:"gpc-conversation-action-button gpc-conversation-action-delete gpc-focus-visible gpc-transition",disabled:s,title:p("conversations.delete","Delete"),"aria-label":p("conversations.delete","Delete"),children:N.jsx(me,{size:16})})]})]}),N.jsxs("div",{className:"gpc-conversation-metadata",children:[N.jsxs("div",{className:"gpc-conversation-meta-item",children:[N.jsx(le,{size:12}),N.jsx("span",{children:e.total_messages})]}),N.jsxs("div",{className:"gpc-conversation-meta-item",children:[N.jsx($,{size:12}),N.jsx("span",{children:b(e.last_modification_date)})]})]})]})})},e.conversation_id)),u&&N.jsxs("div",{className:"gpc-conversations-loading",children:[N.jsx("div",{className:"gpc-loading-spinner"}),N.jsx("span",{children:p("conversations.loadingMore","Loading more...")})]}),c&&!u&&N.jsx("div",{ref:h,style:{height:"1px"}})]})}),N.jsx(yd,{isOpen:T.isOpen,onClose:()=>{y({isOpen:!1,id:null,title:""})},onConfirm:()=>{T.id&&o&&o(T.id),y({isOpen:!1,id:null,title:""})},message:p("conversations.confirmDelete",{title:T.title,defaultValue:`Delete "${T.title}"?`}),confirmText:p("conversations.delete","Delete"),cancelText:p("conversations.cancel","Cancel"),variant:"danger"})]})},vd=({version:e=ye})=>{const{t:t}=G();return N.jsxs("div",{className:"gpc-conversations-container",children:[N.jsx("div",{className:"gpc-conversations-header",children:N.jsx("h3",{className:"gpc-conversations-title",children:t("about.title")})}),N.jsxs("div",{className:"gpc-about-panel-content",children:[N.jsx("div",{className:"gpc-about-panel-logo",children:N.jsx("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOsAAADJCAYAAADCbsXoAAABN2lDQ1BBZG9iZSBSR0IgKDE5OTgpAAAokZWPv0rDUBSHvxtFxaFWCOLgcCdRUGzVwYxJW4ogWKtDkq1JQ5ViEm6uf/oQjm4dXNx9AidHwUHxCXwDxamDQ4QMBYvf9J3fORzOAaNi152GUYbzWKt205Gu58vZF2aYAoBOmKV2q3UAECdxxBjf7wiA10277jTG+38yH6ZKAyNguxtlIYgK0L/SqQYxBMygn2oQD4CpTto1EE9AqZf7G1AKcv8ASsr1fBBfgNlzPR+MOcAMcl8BTB1da4Bakg7UWe9Uy6plWdLuJkEkjweZjs4zuR+HiUoT1dFRF8jvA2AxH2w3HblWtay99X/+PRHX82Vun0cIQCw9F1lBeKEuf1UYO5PrYsdwGQ7vYXpUZLs3cLcBC7dFtlqF8hY8Dn8AwMZP/fNTP8gAAAAJcEhZcwAACxMAAAsTAQCanBgAAAa9aVRYdFhNTDpjb20uYWRvYmUueG1wAAAAAAA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA2LjAtYzAwNSA3OS4xNjQ1OTAsIDIwMjAvMTIvMDktMTE6NTc6NDQgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIiB4bWxuczpwaG90b3Nob3A9Imh0dHA6Ly9ucy5hZG9iZS5jb20vcGhvdG9zaG9wLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdEV2dD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlRXZlbnQjIiB4bXA6Q3JlYXRvclRvb2w9IkFkb2JlIFBob3Rvc2hvcCAyMi4xIChXaW5kb3dzKSIgeG1wOkNyZWF0ZURhdGU9IjIwMjUtMDctMDlUMTg6Mzc6MjAtMDU6MDAiIHhtcDpNb2RpZnlEYXRlPSIyMDI1LTA3LTEwVDE3OjA4OjU3LTA1OjAwIiB4bXA6TWV0YWRhdGFEYXRlPSIyMDI1LTA3LTEwVDE3OjA4OjU3LTA1OjAwIiBkYzpmb3JtYXQ9ImltYWdlL3BuZyIgcGhvdG9zaG9wOkNvbG9yTW9kZT0iMyIgcGhvdG9zaG9wOklDQ1Byb2ZpbGU9IkFkb2JlIFJHQiAoMTk5OCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6OGNiZjk1NDQtOTNkOC0xZTQzLWJkYTItYzFmNTc2NjA3NGNjIiB4bXBNTTpEb2N1bWVudElEPSJhZG9iZTpkb2NpZDpwaG90b3Nob3A6OTU2MTBmYjUtNTU3NS1mNTQ1LWFmOGEtZDM0YTlmMjI4NTUwIiB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6NGEzMmM4MDMtZDA2YS0yYjRiLWI1YzEtZDA1ZWQ3MzFhYTlkIj4gPHhtcE1NOkhpc3Rvcnk+IDxyZGY6U2VxPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0iY3JlYXRlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDo0YTMyYzgwMy1kMDZhLTJiNGItYjVjMS1kMDVlZDczMWFhOWQiIHN0RXZ0OndoZW49IjIwMjUtMDctMDlUMTg6Mzc6MjAtMDU6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCAyMi4xIChXaW5kb3dzKSIvPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6MjE0MzlhOTgtOWNkNS1lYzRjLWFhNjAtZjgxNGNmZWVlNmNkIiBzdEV2dDp3aGVuPSIyMDI1LTA3LTA5VDE4OjU0OjE4LTA1OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgMjIuMSAoV2luZG93cykiIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjhjYmY5NTQ0LTkzZDgtMWU0My1iZGEyLWMxZjU3NjYwNzRjYyIgc3RFdnQ6d2hlbj0iMjAyNS0wNy0xMFQxNzowODo1Ny0wNTowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIDIyLjEgKFdpbmRvd3MpIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDwvcmRmOlNlcT4gPC94bXBNTTpIaXN0b3J5PiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pl30aR8AACBpSURBVHic7Z15mBbFncc/PcAMYETkBtGAGiUGYhYliGFXJBoP1HCpicEQnNkY8TZq4nqFGI0RXaMoxuwMLEI8UMQo4hHvIISorBtYj6CAyn2M3McMTO8f9b5Md7/Vx/u+XX28b32e533e7urqX/3q+PZR3V1lmKaJRqNJPhVxO6DRaIKhxarRpISWYRozDjsvTHPlTgXQA+gF9M78OgEdM79OwMFAa6BNZp+DMvs1AVsyYbuA3cCXwEZgk+W3DFgOrABWZ/bThID5+czQbYYqVk1BGAghfhPoZ/nvDVQWaLMCIWQs/340IIS7GPhH5n8xQtC6YyMBaLFGTxtgAPCvwKDMr0OsHgkqgaMzv9GW8HpgQeb3V+AdxNlaEzFarNHQDzgdOAshzlbxupMXHYBhmR9AI0K4czO/xTH5VXYYYT660fes+2kJDEWcoc4AesbrjlJWAi8As4BXgb3xupMM9D1rsmkBDAHOBUYhOoDKgZ7Av2d+G4GngZnAG8C++NwqPbRYi+cw4CJgXGa5nOkE/DTz+wKYCtQBn8fpVKmgn7MWRgUwAnHPthy4FS1UJ4cCtyDKZy6ivHR7KwJdePnRFrgE+BhxuXcGugz9qECU09OIcrsEUY6aPNENLRgdgAnAZ8Bk4Mh43UktRyLK7zNEeSbhkVVq0GL15iDEJe4yxCVduXQaqaYTojyXAb9ClLPGBy1WOW2AX6Ibk2qsB8MbaH5tUiNBi9WOAfwQ+Aj4LfoyLSo6AHcgyv2HiHrQONBibeYEYD7wKLpnNy4OQ5T/fER9aCxosUJ74GF0A0kS2QPnHxH1o0GLdQTwf4iH+PrSK1kYiLei/g8YGbMviaBcxdoV8S7r04hvRjXJpQeirmYh6q1sKUexnon4XlMfrdPFSES9DfOLWKqUk1jbAA8Ac4AuMfuiKYwuwHOIeiy7xzzlItY+wLvApeh707RjIOrxXUS9lg3lINZRwN+BY+J2RBMqxyDqdVTcjkRFKYu1BXAn8CRwYMy+aNRwIKJ+70LUd0lTqmI9CPFZ1i/Ql72ljgFchxitoqRfCy1FsR4GzAO+F7cjmkg5FVHvJfv2WamJ9Tjgb0DfuB3RxEJfYCGiHZQcpSTW7wFvAt3jdkQTK90Q7aDkrqxKRazDEc/fDojZD00yOADRHobH7EeolIJYL0D0CBY6er2mNKlEtIsL4nYkLNI+umE14ouZaLrtu53BoNPGMeFcGHgUtGsdSaqRs2wtHHFiDezdGrcrxdISeATxtlNdzL4UTZrF+hPEJ1Tqrw46D+HpyeMZMVB5Song8G6wfGEtvQeWhGBbINrJPuC/43WlONIq1vOAWqIQ6qDHMJ8o+eftOfTqDCvfqaXngJIQbAWivewCnojZl4JJo1hPB6YTxaWvQ6gfroJj/v1TWHo/7FmjPPm4mP7oTMYMhkM6QudTa9nwQklMi9ICcUm8BXgxZl8KIm0dTAMQ3zWq70zqdoZNqKffDsd8ZwwsuaGkhQqwalPz8vqH4Wsjw5+3JSYqEe0nlTc0aRJrT8TH4pEMEP36tHH7l8++C156+Dxoaogi6dhZ57jq/efv4bgLSkawbYGnSOFkYWkRa/Zd32gKuOf5DPm6WPxwFcyZPCaSZJPC2i9zw969EwaNLRnB9kS0p1S9S5wGsbZAHAn7RZXgqcOav7o65mfryuaMmmXFBnn4/NvgtItLRrD9EO0qNb2HaRDrHcApUSZ43dmWlaUTo0w6EWzc5r7txRvh/KtmQkVJvINyCqJ9pYKki3UU4vOnSBlwhGVl99qok48d2WWwlcevgZ9cN6NUBHsdKfmAPcli/Tpifs/Iv0dtb33DuMwugQG27Wi0re9pzI0z9VIYf0tJCNYApiDaW6JJqljbIO4n9AgPcbDTPvfxouVgnPlpTrQHL4Jf3F4Sgm2HaG+JHoQtqWKdiB4zKT4a6m2r3Q8GltyAcdo/ME3Ttu3OH8GEu2dARVWEDirhGES7SyxJFOtZwPi4nShrTPt1b9fsA44Pf0PFKX/PEewto+HeB6aXgmDHI9pfIkmaWLsi3uHU4ybFyS77G1ptrFe5S++h4rtv5Aj2qrPgwYdTL1gD0f66xe2IjKSJdTJlPkVCImjcnhtmFeEnD1Ex5KWcjqfxp8G0adOhRaq7GroCD8bthIwkiXUkekqLZLBP8qDVcHQiLZ9C65Nm5Qj2xyfBU4/WQct26vxTTyLbYlLE2h6YFLcTmgx7JWdWQ3JnsvIJWp84ja277cGjBsHTj9WmXbCTSNh0k0kR6+/Qs7klB9mz5cr28rjrnueg7zycI9gRA+H5p2qhqlPo7kVED8Tg4YkhCWI9ATEPpyYpyD429+o42vAqB534ABs224PP7A+vzZ4MVanthqghQRNsxy3WCsTlhu79TRL79uSGtfQZOHLjW3Q5+V7W2B/RcnJfmP/8JKhK5QixBqJ9xq0TIH4nxgLHx+yDJod9uUEtArzcs2kBPYbcaft4HWDQUfDey/dB21QOln88op3GTpxibQv8Jsb0NW7slZxZgz4/3byIniffkfOZXf/esPiVu6Ftr6Ldi4HfENGgB17EKdYr0Z1KycQs8uOFze/T+6SbcwTbtyd89Ppd8JWvFWc/enog2musxCXWdsC1MaWtKYSqPI+r2z+m90k38rFjuKqju8PyN2+HdqmbjuhaYh5ZIi6xXg10iCltjS+mf5QgbF9Kn5OvZ9Fye3CvzrDyzVugff9w0omGDsBVcToQh1g7IMSqSSphfsO7cwXHnXEtC/5pDz6kI6x/65fQIVUDDcZ6kolDrFeRsoGqNECbIh697PycE4ddyRsf2oM7t4f1b/wcOg4qyrUIOYgYz67qxWr/MPkrwKUB4+aGuS0X6k+YH01XVDbbC2I3n/he5RLERjatPPLrfMHBNw3Zdqtve9Zw8jmX8/oSe5TO7eHLeVdD5++62/fzPd96lLUBtzRy83QZoh0XlnYRhC9Wa8OoqHReUo0DOuQUjLPhyvZ3FkpTQ24BByl45yWeX2P3smndZvUz65tsfy+fvfxx7pdNw/rvjJuN39TgfmnrcvDaIRnKRbqPjx2br41fMnTEeOYusm9ufwBsefti6Hxqrk1n2QY5KMmWnf545cfZ/uzrBwMX2cpWtp8CwhWrszFZwyoqK6iovMKWSWuBOBuUsxCcFSYrLGt6zkKWiSbovZnVRz+xOf122+aWT+e/TIjWf6sNN0G7+Wxd9zowArTtnruPmy0n1rDGrQw7fzyzFtijtGsNO98eCz3Pz61fZ/m51aszvXwOmrK8W/e32q6ovByo8DwgKEDdZXBu4Z0NHOm6PegZR5aO11kviI9eZ09nOn72/WwECfOL41d2QdJzK7NMWL3kwxtp2kHScdK4ldE/qmHGPHtwm0rY/eYo6Hmed3pByadN5Fc3RyLac2F+FUiUHUw/jTAtTZGsdgxHWhH2q4JNu7nwxzXUvWYPrmoFu18/B3rVhJte+ETenqMS62GI2d80KWHhx/b14d9WkEjTbmqqq5n8kj24qhU0vX4SHHG5gkRD43Tgq1EmGJVYL4owLU0I/Pdf7ev3/BiUfBxl7uHSn1Xzuz/bgw3DoOmVb8PR14efZjhUIDpMI00wijQuiiAdTYisfGeabb1XZ2h30nRl6f3y2vE8Pt8eZhgG5kvfhH53KEu3SC4iwrlyophMeQhwaATpaMJkwyssWj6W/r2bg7ZMg7GTZ/DI0++I4UqrukKLKiraisn9DusMrVrCIe3Fpezh3aCqBfToKDqPenUWR+4jukMrQ7zFVNXK3xXzucMwht8L7yfuxbdDEe371SgSM5xDShZlrJd0asQ/ABeHlkgEmCtm7F92yVN5cMTlmK8m53XAftfBkicTVx//haSzydqGwkL1ZXBLUjLpj0bCp5M46Za4nWhm8UQYeEH4IiiSEUCA64PiUS3WoUBqR8zSwFuPjKHF+fLJqeLgb3dAr7MSJdhOiHauHNX3rOcqtq+JgKaFY2h97FfpOeR27h8L3z1WhG/cDJt3iSkid+2BNVthx25YtxW27sj8b4d1W8Tri2s3w959+2DnGmjcAY2bYd8uaNgETXtgzzphuHGbWG/cDjSKkSvMBswVooPrxRuhz5wYCsKd0cBLvrGKRKVYDeBMhfY1UbLzM1bOHcPIuXE7Ij5gTxjnIPplmlQmovIyuC962BZNedAFGKA6EZViHabQtkaTNE71j1IcKsX6PYW2NZqkoby9qxJrG+A7imxrNElkIIqHK1Ul1gFANN8NaTTJoBLFA9arEqs+q2rKkcEqjWuxajThobTdq3g32AA2krRxgVu1gz7/wdXn9eSMY2HgUWIoEU36MU2T/1lhMHM+/O7xlfDRHdAomQlPPfWIN5pMFe8GqxBrb2BZaEaLxoB+d7N6Wle6J+vwoVHEmnroMXYdLL6W0AYsD87hwPK0vMj/TQU2C6OiNRPuno75nBZqOdG9A5jPdWXC3dOhIvLLp2+pMqxCrMcqsJk/RhW1tbXcMjpuRzRxcctoqK2tBSPgDHjh0E+V4ZDfDTYAs599+A+vyxDDEscIENeUrMvSMvi3C+uo9vgWYutu8SK6jMO7NS8vW+vhkiZS3OqlU3v3/ofqofDIhXW89Uj2O1hru3G2pyzO7X7bbGHKxKrgntX4EOjTHGoVlDVTTrG5CQ9HuCyuY1uP0Zjzh+ds2bAZuozbCUtugMZ6+z6WtLJfdzTnyeqHWx68fILgDUS27tdo/ML96gCXZb9yl+XFbT9nPDd/3crRdAwKcKF9c6sOcOztrK/9Cp3b5+5tnPgMrJ4ltZvrl1d5y7bbfP8IzK+n4J7VaAkc4QiTLDv/ncvZdUMSLotr3/bUPcNzQj9eA10G/xr+52Jo3JSzj3da1m1+/+5+eaflte4VP0i4Xx24LTsJUkdBytDLX7dy9Cnfxnp49xK6DP51zjSTgLRN2H0LEua23eb7ERkdhE7Y96yHEtFX864c3J9RjnmOTNOkz/enwvalmRA/YWlSy/al9DnrYZxXjKMGAQdHMsVkK8TQu6ETtlgPD9le3nQ6LndQrcumGrD+NUlsTUmyaZ6ocwedvx3ZgGtKdBC2WJUcUfLh2rNzwyZPeTZ6RzSxMrn2mZywn0c3FIKS0TzDvrbuGbK9vDlH9ir1ur9E7ocVa4eVKmr+AHV3ik6X2inTbT3hfa6Ej/98ocue7tz02+nc9sPm9UXL4biT87cTCxteBobbgs45Hn4ZTepKdBD2mbVjyPbypldn+/quBsRYP5r8aN3VJlSA/r2hzWD1B55QaNzG1t32oMO7RJa6kkECwxZrZ/8oamnj+DBv3ZZ4/Eg7R592tzR8UormVqjfZl8PMqB4SKRCrHrY0RLh0avk4dVDgR7DI/QklSjRQdj3rLFfBieRnAf4LrQZPJ2djmfpQfcNlSOvsE2bUfcatnvg6h+Pou7OZyJ3K0UoeRM97DOrfl2+BLip2j5QX80d79jWJ5wLtO4aoUepQ8lJK2yxHhCyPU3UODqWVm0CPrmfmx9rDjuko/s9bZJoFd8ko0pmlgs7O5F+3hCEGCssb1pGNnmgO33Ptovw1ifF/2+e2GALd7unTRKNSofc9qSdCqNhN+UDQ7anCYFWeQxdN228fb3uxYxI379GnGUz9O8NfOs/i/ZNJTEeqJW8zxp2dlJ0HtPk4OhYWrQceP+a/evj/mCPXntF7E/qkoqS20EtLs1+nB1LYyfbt//l+Wds69VDierl+LSRiq9uNGmldfecN5aWvHKvPWD1LOYusgedOjqyl+PTxF4VRsMWa3y39Jqi6Hv2Xbb1uteALxflxPvBffb1aZcArZM3rVvM7FBhNGyxbvOPokkizo6lmvs3SONtW3g9ayyDbHTvAAcOvEsat4xRMqRi2GLdA4Dh0v3oDM+uu4W74be9GIq17ZanMNLzKyejMr90s3EdHUtr6rF1LNn22b2Gm2fagx+/MliS+21Y/4PGz5dC9vPaJz+/lQxaHLZYm0//1sxll80G+7YsznC3eFlb1u1BG6hXQ7f6mrXtFc+Zttv+sjhePrn57dzfWQ5WW07/ndsltib8zN6x9L3fusTP2K57yv5G05n9gSOv8C8fpy8yf7zy7JUfv7J2EsQ/2XazIbfOc+Pv83cgf8IVq1FZLy1gawadRyhZuNe6dd+sbWs8uV/etp1x3HA7iGTDnBUpi+MlPr90nWkHadRWG7JtVR1zhmvd37Hkltanf8jpaLqpekBu/mUHrnzy4rThRNYO/JD5YbVlrUe3PLj534xzkK9QCPvMKncyyJEuX4KIK8y0ghy1VfkShl0XG9KOpc1LfM394jH7+m0/JPcxTqFXE874Qc+U+doNsq2wsq/3j5I/YT8P2hiyPY1inB1L1UOhenldQbb6nnI1S56qDsGr1KNEB2GfWeVdiJpk8rXLbR1LxfLyDeHZSjmpEKuSa3WNGib89Fuh2uveAQ78t8LOyiVGKsS6MmR7GlVIOpbC4N6x4dtMIUp0EPY96+ch29MowtmxtKYeehyX//1m39F1LJ7YvF49FGoO+T6s+nOxLqaZL1QYDfvMmqB5WTVeODuWxj1UmJ0lz99oe6MJ4JJx5xRmrHRQooOwxfoF0BiyTU3YSDqWXnqhwIHQd63lttn2oMnVQJtu0uhlQCOKrjDDFute4NOQbWpC5pLzv2Vbn7uIoi5bH3ri/ZywvsNuL9heyvmUlHx1A+D/RF0TH226iTOfBecLDnmzdJL4UN2C8zK7jFDW/lWIdbECm5qQcJ7x1tSL+85icX6o3r83cNx90rgljrL2r0Ks/6vApiYknGe822YDu4qf3l0m+NrxXynabgpJlVj/ocBmYPY4urc6tQMMPR8rIO1Ykt1vFsSutfz6KXuQGPblX8KxXwAdHMP3OduGIt5XZViFWFeg6EXmQIk73h2pagVUto/DlbxRfUhxdiwtWg4snRSa/Vsf356b5qWXhWY/L6oOzpn3yNk2FFCPaP9KUCFWE1jgulXlWc4weOE9SXi3s9SlmRT8ylXSseS8zyzIrnX7e1fmPHO9eQTxPMbpMSwnSNo2nOTbPu3x/4aiUSIg7DeYmh2fj2kOwzDANO0Zyq5b/3P3t8d3puEMs8S970W4yqHNq6uHcO+tM+Tpu6Xj5pNfPKtdt7iyfU2TrW9VYzhfrHcrO1m6mfWamhpqJPGN3tXy8vMKyycumbegZD561ZssH364iSqz/9XjTs7ZNPkVFzuyNL3yKfsXvJ1XHvIk/DOrcHReToYsjckR1/tolq3o7M9n24q/T80xcc8YE7qckptudtnqh9cBwy2eNY9ejdyZD9myzAe3xiQrD9m67N8tr05hOfeVxfMqF786c/NBFt+JW7l0PVXUuYOl86fmlkG2zpx1YRWhc5vsX/gzLycsRMIXq3D0HaBBmllrPFkhBE3DrZI3vs2sBc5gg49m/wAO+oa7YPwOGLJ0gwrPr0H65dGrgeRjzyvcL29u6XsdSPP1wcsfv/2yHPQNPpr9AwzHtlkLgI1vu6fnZjt4u2zAMN4NGrkQVI0bvAuYr8i2L6NvfD0n7OjusP71q6kYUKuHzixFWnenYkAt61+/mqMl1StrEyGzENipMgElI4dneAkYotC+Oyv+xPi6k3M6VDq3h31PANzG1t25M2PLWL6wVoGDmmKx1kuHA6Fda/e44+uAFX9S7dLLqhMwzBBvho3Da6yr/YjzmWuLA5g+9T7GDI7NA00CmDEPLhx3JexTMu62lRMQZ1cAzGXhH+RVTp+xBFgdqsV8Diz7dnDhuCuZ+FyoHmhSxMTnIhPqekQ/jVLCFau1Z9A0TUxzrq0n1fqz7uP8t9uR9656hWf/927n+mvG024sbNgcWi41CWfDZmg3Fq6/Zjzs3Z7blqzLsjaU3e61j51nMU3lU8eoObM2Z+ZJx7o9jkyocjvy/ZxhMjt797DtrWq6nHAtxoid3PwYfLgqr9xoUsCHq+Dmx8AYsZMuJ1zLtreqYe+e5giyE4QVmXi99rHHfyonTAHh3rP2zhkWpCWwBugUWiIRYFqG4pTkSRMTCa2XjUAPHIMumAUO5+qF6ikf9wKzFKeh0cTJbCIaHSWK+Vln+kfRaFLLE1ElFIVY30DRaG8aTcx8gWjfkRCFWJuAKRGko9FEzRRAyYxxMqIQK4hM6VnRNaVEE5D71YhCohLr58CLEaWl0UTBi8BnUSYYlVgB/hhhWhqNaiJvz1GK9TngkwjT02hU8QmiPUdKlGJtAu4HxGzSfjNVB4kj20e2HDZZ234+WuP5+VVoXmX7Of0qtCyC1kEYZe20oar+wvF1ErI+GJVtDlWfyMmcFjNIT8Vs+BXQwRbPOSW82/TzsunlreGyWardpqP32+aM4zUbttu09l5xZHn2ypuXTeu/zHe3+E5fnPtl48rqwJqel49u8fz89Ztx3C9uvrac/ri3wS+BKdIyUEy4YvU/y2wHHgRu9twv37OP21nG7azj7WP+24L45rUcdH+v7fnGK/Rsn8/+XvEKLc9C4hbSLtzL5AFEO5bnR+HZNcrL4Cy/B7bEkK5GUyxbEO03FuIQaz1wbwzpajTFci8xjokdh1gh5kxrNAVQT4xnVYhPrFuBu2NKW6MphLuJ+fYtLrEC3EfYw75oNGpYjWivsRKnWHcCN8WYvkYTlJtQPMxoEOIUK8A0QOnAyBpNkbyLaKexE7dYm4DLQd1kPhpNEZiI9pmIL8biFiuImbf+K24nNBoJtYj2mQiSIFaAX6A7mzTJYjVwfdxOWEmKWDcjLjc0mqRwOaJdJoakiBXg6cxPo4mbRLbFCMTq1nckDR8PrBPbvPqcnNus8Z3/hfiWb5wg+8j8yyePXnG80svHZhB/TJewfOsrH7zakMyffNO32VkH5qV5uRfYj+JQJFaZ824Ny7RuXwdmjVgxHNtM3O0alnXD8e/li9UftwZnkOu/zK7TH2d+nWGGw2+ZXdm6zFdZWTnjuYUF2W4tY1n61nC3OG5id/Pbul02R6qzXN3Kxm/ZWhemCdSAsdbdP1lazrJRQ8hi9TvCyCojZ/scYLJ/poNUQlDfgvgs22a16+WDl7CDVm7QfHnt6xbmt90rnbDK2RnuJXyv9P38cAszQbS7OfmXqVvdhEuS7lmtXAd8ELcTmrLiA0S7SyxJFesuYDQQYLpjjaZotiLa2664HfEiqWIF+BAYh+prCwmrNlnXZPdLmsgxqvYvbt0dqmUTuAjR3hJNksUKYlKriVEn+nfrGIxte0WdvEZGmx77F98Ld4zMiaRk8rSkixXgP4BXokxwypuWlaNviDJpjRtHXbF/8f4XQrP6CqJ9pYI0iHUf4n5icVQJznm+efKAxZPa2i7BNDFgVLH4gc77V5+Z81IYVhcj2lVkc9UUSxrECuIL/TOBlZGk9tmfmP+xWOzbE0ZeFv7EuJrgjLysjr49xfKCfwKfzSjW5EpEe0rVwH1pESuIAh5JJB8Bm3xnXPNtzKyfw/BLZ+gzbNQYVQy/dAazft4cdOJPZlFkn+NOxBk1mgN/iKRJrADvAKMAtUOfA6yeTdsxzauzr4MP5tVBv3ugdQ90L7EqDFG+/e7hg3l1zLY8+Ww7Blg9uxjjDYj2s7AoF2PCMM3wnowYvcb4RwqH84BHgRaqEzrkjBmsfEh1Kho/Dh0PK+cW1b72AT8iopnKzRVFX6rnkLYza5aZQA0RfMG/6oUxGCc8zpxFqlPSyJizCIwTHi9WqE2I9hKJUFWR1jNrlmrgYSI4w4IBPc/lrHPO4YrTYeBR0K61+lTLja27YeE/4f4XYc6zz8LKJynyHnUfcDEQaS+hijNr2sUKcAFiQCs1k2xp0sxeYCzililS9GWwnEeBc4mi00mTJhoQ7SJyoaqiFMQK8AxwNrAjZj80yWAHoj08E7MfoVIqYgV4GTgJWBO3I5pYWYtoBy/H7UjYlJJYAd4DTgCWxO2IJhaWAAMR7aDkiEasTT63k87t1vXsclOD/efO58BgghxZ3dLJdx+3dWu4cz8vO0HTl/kj2+6XN1l4kLy5pRUkHS9fC6mDpoa/0NQwGFH/wevGL06+bSSfusyT8HtQmxqgotK7sCoq7XGt2ysqc/d32swuV1Ta4zRvy75LfDti7Nfm141kvsl8DJoXN7+dPjq3Ofd188UvfaufbtutNvJtaMUI2asMZFjLxa0cc/NhImZ4uwHYtz+uV7l5tR9ZuQdpL0HLuAjCfXRz2Hmh2QqRUcBU4MC4HdGEzjbEAAWJ+x7V/Hxm6DZL7Z5Vxizg2+gxnUqNDxD1mjihqqIcxArwEXA88CAxDBOjCRUTUY/HI+q1bCgXsYIYDOsy4Cxgfcy+aApjPeL56WUkfHAzFZSTWLPMBb5JAqdH0HjyNKLeno/bkbgoR7ECrEN0PI1Ez16XdFYj6moUot7KlnIVa5bZwDeAP6LvZZOGiZi39xvoqyBAixXEtH4XAyeSoIlzy5y/IerjpyRs2sU40WJtJttALiD7Fowmaj5HlL8+cErQYrVjAo8BfRBvxNTH607ZUI8Yv7cPovz1LYkELVY5u4A7gcOBX5GyIStTxBZgAqKcf0sZPo7JBy1Wb6yN6dfAxnjdKRk2IspTHwzzQIs1GPXArcBXEbOzhzvbSvnwCaL8voooT32bkQdarPmxE3gIOBr4PuIFC+UjLKacJkQ5jUCU20NEMlB76aEHGSuMJuDZzO8wxJSB4zLLGsEXwJTMT/euh0A5fCIXFS2AIYhBukYBnWL1Jh42Il5gmAm8QYomfQobFZ/IabGqoSUwFDGnyhlAz3jdUcpK4AXEp2qvIob/LHtUiFVfBqthL2JYmezQMv2A0xFf/AwCWsXkVxg0AgsQ96FziXAqznJHizUaFmd+E4E2wADgXxHCHQR0iM81X+oR4lwA/BUxOZh+HhoDWqzRswt4K/MDMT5Ub8TnX/0s/70ByeBMymgAliMOKv+g+QCzDP1GUSLQYo0fEyGIZdgHpa4AegC9EMLtjei06pj5dQIOBqqAtpl9DkTU6V7E+EQgHpPsAb5EdABtsvyWIQS6AvEpmn4MlWBC7WDSaDTq0C9FaDQpQYtVo0kJ/w8Jp0VM/2YtjwAAAABJRU5ErkJggg==",alt:"TIA GPC Logo",className:"gpc-about-panel-icon",style:{width:"80px",height:"auto"}})}),N.jsxs("div",{className:"gpc-about-panel-items",children:[N.jsxs("div",{className:"gpc-about-panel-item",children:[N.jsxs("span",{className:"gpc-about-panel-label",children:[t("about.product"),":"]}),N.jsx("span",{className:"gpc-about-panel-value",children:"TIA GPC"}),N.jsx("a",{href:"https://www.softiabot.com",target:"_blank",rel:"noopener noreferrer",className:"gpc-about-panel-link",children:"www.softiabot.com"})]}),N.jsxs("div",{className:"gpc-about-panel-item",children:[N.jsxs("span",{className:"gpc-about-panel-label",children:[t("about.version"),":"]}),N.jsx("span",{className:"gpc-about-panel-value",children:e})]}),N.jsxs("div",{className:"gpc-about-panel-item",children:[N.jsxs("span",{className:"gpc-about-panel-label",children:[t("about.creator"),":"]}),N.jsx("span",{className:"gpc-about-panel-value",children:"SOFTIA Technologies Inc."}),N.jsx("a",{href:"https://www.softia.ca",target:"_blank",rel:"noopener noreferrer",className:"gpc-about-panel-link",children:"Softia.ca"})]}),N.jsx("div",{className:"gpc-about-panel-footer",children:N.jsx("p",{className:"gpc-about-panel-rights",children:t("about.rights")})})]})]})]})};let kd=null;const Ad="AES-GCM";async function Sd(){return kd||(kd=await crypto.subtle.generateKey({name:Ad,length:256},!1,["encrypt","decrypt"])),kd}function _d(e){const t=new Uint8Array(e);let n="";for(let r=0;r<t.byteLength;r++)n+=String.fromCharCode(t[r]);return btoa(n)}function Cd(e){const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n.buffer}async function Nd(e){try{const t=sessionStorage.getItem(e);if(!t)return null;const{iv:n,data:r}=JSON.parse(t),a=await Sd(),i=await crypto.subtle.decrypt({name:Ad,iv:new Uint8Array(Cd(n))},a,Cd(r));return JSON.parse((new TextDecoder).decode(i))}catch{return sessionStorage.removeItem(e),null}}function Id(e){return null!==sessionStorage.getItem(e)}const wd=({gpcService:e,licenseToken:t,widgetConfig:n,onClose:r,themeMode:a,onToggleTheme:i,showBranding:o=!0,showMetadata:s=!1,onError:c,version:u=ye,onRequestMcpLogin:d,mcpLoggedIn:p=!1})=>{const{t:h}=G(),[f,m]=l.useState(!1),[g,E]=l.useState(!1),[T,y]=l.useState(!1),b=n?.mcp?.enabled&&"credentials"===n?.mcp?.auth_mode,v=!!(n?.widget_customization?.tia_core_enabled||n?.widget_customization?.tia_core_url_backend||n?.widget_customization?.tia_core_url_frontend),k=a,A=i,S=l.useCallback(()=>{},[]),{messages:_,isLoading:C,sendMessage:I,currentConversationId:w,conversations:x,totalConversations:O,isLoadingHistory:D,startNewConversation:L,switchConversation:R,renameConversation:P,deleteConversation:M,isRestoringConversation:F,hasMoreConversations:B,isLoadingMoreConversations:U,loadMoreConversations:H,hasMoreMessages:j,isLoadingMoreMessages:z,loadMoreMessages:Y}=((e,t)=>{const{t:n}=G(),[r,a]=l.useState([]),[i,o]=l.useState(!1),[s,c]=l.useState(null),[u,d]=l.useState(null),[p,h]=l.useState([]),[f,m]=l.useState(0),[g,E]=l.useState(!1),[T,y]=l.useState(!0),[b,v]=l.useState(0),[k,A]=l.useState(!0),[S,_]=l.useState(!1),[C,N]=l.useState(0),[I,w]=l.useState(!1),[x,O]=l.useState(!1),D=l.useCallback(async r=>{if(!r.trim()||i)return;const s={id:Ge(),role:"user",content:r.trim(),timestamp:(new Date).toISOString()};a(e=>[...e,s]),o(!0),c(null);const l=Ge(),p={id:l,role:"assistant",content:"",timestamp:(new Date).toISOString(),isStreaming:!0};a(e=>[...e,p]);try{const t=await e.sendMessage(r,e=>{a(t=>t.map(t=>t.id===l?{...t,content:t.content+e}:t))},u);a(e=>e.map(e=>e.id===l?{id:t.data.message_id,role:"assistant",content:t.data.response,timestamp:t.data.created_at,isStreaming:!1,metadata:{responseTimeMs:t.data.response_time_ms,modelUsed:t.data.model_used}}:e)),t.data.conversation_id&&d(t.data.conversation_id),M()}catch(h){let e,r;a(e=>e.filter(e=>e.id!==l));try{e=JSON.parse(h.message)}catch{e={statusCode:500,message:h.message}}const i=e.statusCode||500,o=e.errorCode||"";switch(401===i&&"SESSION_EXPIRED"===o&&(r=n("toast.sessionExpired"),t&&t()),i){case 401:r||(r=n("errors.unauthorized"));break;case 402:r=n("errors.insufficientCredits");break;case 403:r=o.includes("DOMAIN")||o.includes("UNAUTHORIZED")?n("errors.domainUnauthorized"):n("errors.validation");break;case 422:r="LOW_RELEVANCE_SCORE"===o&&e.message?e.message:n("errors.noKnowledgeAvailable");break;case 429:r=n("errors.rateLimit");break;case 503:case 502:case 504:r=n("errors.aiServiceUnavailable");break;case 500:r=n("errors.serverError");break;default:r=n("errors.generic")}c(r);const s={id:Ge(),role:"assistant",content:r,timestamp:(new Date).toISOString()};a(e=>[...e,s])}finally{o(!1)}},[e,i,n,t,u]),L=l.useCallback(()=>{a([]),c(null)},[]),R=l.useCallback(()=>{c(null)},[]),P=l.useCallback(async(t,r=!0)=>{if(e&&t){E(!0);try{const n=r?0:C,i=await e.getConversationHistory(t,50,n);if(i.success&&i.data.messages){const e=i.data.messages.flatMap(e=>[{id:`${e.message_id}-question`,role:"user",content:e.question,timestamp:e.creation_date},{id:e.message_id,role:"assistant",content:e.answer,timestamp:e.creation_date,metadata:{modelUsed:e.model}}]);r?(a(e),N(i.data.count)):(a(t=>[...e,...t]),N(e=>e+i.data.count)),w(i.data.has_more),d(t)}}catch(i){a(e=>[...e,{id:Ge(),role:"assistant",content:n("toast.failedLoadHistory"),timestamp:(new Date).toISOString()}])}finally{E(!1)}}},[e,n,C]),M=l.useCallback(async(t=!0)=>{if(e)try{const n=t?0:b,r=await e.listConversations(20,n);r.success&&r.data.conversations&&(t?(h(r.data.conversations),v(r.data.count)):(h(e=>[...e,...r.data.conversations]),v(e=>e+r.data.count)),A(r.data.has_more),m(r.data.total||0))}catch(n){}},[e,b]),F=l.useCallback(async()=>{if(e&&!S&&k){_(!0);try{await M(!1)}finally{_(!1)}}},[e,S,k,M]),B=l.useCallback(async()=>{if(e&&u&&!x&&I){O(!0);try{await P(u,!1)}finally{O(!1)}}},[e,u,x,I,P]),U=l.useCallback(()=>{a([]),d(null),c(null),e&&e.clearLastConversation()},[n,e]),H=l.useCallback(async e=>{await P(e)},[P]),j=l.useCallback(async(t,r)=>{if(e)try{await e.updateConversationTitle(t,r),await M(!0)}catch(i){a(e=>[...e,{id:Ge(),role:"assistant",content:n("toast.failedRenameConversation"),timestamp:(new Date).toISOString()}])}},[e,M,n]),z=l.useCallback(async t=>{if(e)try{await e.deleteConversation(t),t===u&&(a([]),d(null)),await M(!0)}catch(r){a(e=>[...e,{id:Ge(),role:"assistant",content:n("toast.failedDeleteConversation"),timestamp:(new Date).toISOString()}])}},[e,u,M,n]);return l.useEffect(()=>{(async()=>{if(e)try{const t=e.getLastConversation();t&&(a(t.messages),d(t.conversationId))}catch(t){}finally{y(!1)}else y(!1)})()},[e]),l.useEffect(()=>{e&&!T&&M()},[e,M,T]),l.useEffect(()=>{e&&r.length>0&&!T&&e.saveLastConversation(u,r)},[e,r,u,T]),{messages:r,isLoading:i,error:s,sendMessage:D,clearMessages:L,clearError:R,currentConversationId:u,conversations:p,totalConversations:f,isLoadingHistory:g,loadConversationHistory:P,loadConversations:M,startNewConversation:U,switchConversation:H,renameConversation:j,deleteConversation:z,isRestoringConversation:T,hasMoreConversations:k,isLoadingMoreConversations:S,loadMoreConversations:F,hasMoreMessages:I,isLoadingMoreMessages:x,loadMoreMessages:B}})(e,S),V=l.useCallback(()=>{m(e=>!e),E(!1)},[]),q=l.useCallback(()=>{E(e=>!e),m(!1)},[]),W=l.useCallback(()=>{d?.(p?"logout":"login")},[p,d]),Q=l.useCallback(async()=>{if(v&&p){y(!0);try{const t=await Nd(Se);if(!t)return;let n=t.username||t.email||"";n&&!/^[^@]+@[^@]+\.[a-zA-Z]{2,}$/.test(n)&&(n=`${n.replace(/@.*$/,"")}@gmail.com`);const r={email:n,password:t.password},a=await e.httpClient.post("/tia-core/login",r);a.success&&a.data?.redirect_url&&window.open(a.data.redirect_url,"_blank")}catch(t){try{JSON.parse(t.message)}catch(n){}}finally{y(!1)}}},[v,p,e]),K=l.useCallback(e=>{R(e),m(!1)},[R]),X=l.useCallback(()=>{L(),m(!1)},[L]);l.useEffect(()=>()=>{e&&e.releaseSession().catch(e=>{})},[e]);const J=N.jsx(We,{onClose:r,theme:k,onToggleTheme:A,showBranding:o,widgetConfig:n,onToggleConversations:V,showConversations:f,conversationsCount:O,onToggleAbout:q,showAbout:g,version:u,onToggleMcpLogin:b?W:void 0,showMcpLogin:!1,mcpLoggedIn:p,onOpenTiaCore:Q,tiaCoreLoading:T,showTiaCoreButton:v});return f||g?N.jsxs("div",{className:"gpc-chat-window gpc-animate-fade-in "+("dark"===k?"gpc-dark":""),children:[J,N.jsxs("div",{className:"gpc-conversations-overlay-body",children:[f&&N.jsx(bd,{conversations:x,totalConversations:O,currentConversationId:w,onSelectConversation:K,onNewConversation:X,onRenameConversation:P,onDeleteConversation:M,isLoadingHistory:D,hasMoreConversations:B,isLoadingMoreConversations:U,onLoadMore:H}),g&&N.jsx(vd,{version:u})]})]}):N.jsxs("div",{className:"gpc-chat-window gpc-animate-fade-in "+("dark"===k?"gpc-dark":""),children:[J,N.jsx(md,{messages:_,isLoading:C||D||F,showMetadata:s,widgetConfig:n,hasMoreMessages:j,isLoadingMoreMessages:z,onLoadMoreMessages:Y}),N.jsx(Td,{onSendMessage:I,isLoading:C||F,disabled:F,gpcService:e,showBranding:o})]})},xd=({gpcService:e,mcpConfig:t,onSuccess:n,onSkip:r,onError:a,onClose:i,initialStep:o=null})=>{const{t:s}=G(),[c,u]=l.useState(null),[d,p]=l.useState(null),[h,f]=l.useState(""),[m,g]=l.useState(""),[E,T]=l.useState(!1),[y,b]=l.useState(!0),[v,k]=l.useState(null),[A,S]=l.useState("captcha"),[_,C]=l.useState({}),I=t?.login_fields?.length?t.login_fields:[{key:"username",label:"Usuario",type:"text"},{key:"password",label:"Contraseña",type:"password"}];l.useEffect(()=>{if("mcp"===o)return S("mcp"),void b(!1);Ye()?n&&n():w()},[]);const w=async()=>{b(!0),g(""),f("");try{const t=await e.generateCaptchaChallenge();if(!t.success||!t.challenge_id)throw new Error("Failed to generate challenge");u(t.question),p(t.challenge_id)}catch(t){g(s("captcha.errorGenerating","Error generating challenge. Please try again.")),a&&a(t)}finally{b(!1)}},x=async t=>{t.preventDefault();if(I.every(e=>_[e.key]?.trim())){T(!0),g("");try{(await e.verifyMcpCredentials(_)).success?(await async function(e,t){try{const n=await Sd(),r=crypto.getRandomValues(new Uint8Array(12)),a=(new TextEncoder).encode(JSON.stringify(t)),i=await crypto.subtle.encrypt({name:Ad,iv:r},n,a),o=JSON.stringify({iv:_d(r.buffer),data:_d(i)});return sessionStorage.setItem(e,o),!0}catch(m){return!1}}(Se,_),n&&n()):g(s("moodle.invalidCredentials","Credenciales incorrectas. Intenta nuevamente."))}catch(r){let e={};try{e=JSON.parse(r.message)}catch(i){}"INVALID_CREDENTIALS"===e.errorCode?g(s("moodle.invalidCredentials","Credenciales incorrectas. Intenta nuevamente.")):"NETWORK_ERROR"===e.errorCode?g(s("moodle.networkError","Error de conexión. Verifica tu red e intenta nuevamente.")):g(s("moodle.verificationError","Error al verificar. Intenta nuevamente.")),a&&a(r)}finally{T(!1)}}else g(s("moodle.requiredFields"))};if("mcp"===A){const e=t?.display_name||s("moodle.title");return N.jsxs("div",{className:"gpc-captcha-container",children:[i&&N.jsx("button",{type:"button",onClick:i,className:"gpc-captcha-close-btn","aria-label":s("chat.close"),title:s("chat.close"),children:N.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:N.jsx("polyline",{points:"6 9 12 15 18 9"})})}),N.jsxs("div",{className:"gpc-captcha-content",children:[N.jsxs("div",{className:"gpc-captcha-header",children:[N.jsx("svg",{className:"gpc-captcha-icon",width:"48",height:"48",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",children:N.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"})}),N.jsx("h3",{className:"gpc-captcha-title",children:e}),N.jsx("p",{className:"gpc-captcha-subtitle",children:s("moodle.subtitle")})]}),N.jsxs("form",{onSubmit:x,className:"gpc-captcha-form",children:[N.jsx("div",{className:"gpc-captcha-fields-scroll",children:I.map((e,t)=>N.jsxs("div",{className:"gpc-captcha-question",children:[N.jsx("label",{className:"gpc-captcha-label",children:e.label}),N.jsx("input",{type:e.type||"text",value:_[e.key]||"",onChange:t=>{C(n=>({...n,[e.key]:t.target.value})),g("")},className:"gpc-captcha-text-input",autoFocus:0===t,autoComplete:"password"===e.type?"current-password":e.key})]},e.key))}),m&&N.jsxs("div",{className:"gpc-captcha-error",children:[N.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",children:[N.jsx("circle",{cx:"12",cy:"12",r:"10",strokeWidth:2}),N.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"12",strokeWidth:2,strokeLinecap:"round"}),N.jsx("line",{x1:"12",y1:"16",x2:"12.01",y2:"16",strokeWidth:2,strokeLinecap:"round"})]}),N.jsx("span",{children:m})]}),N.jsx("button",{type:"submit",className:"gpc-captcha-button",disabled:E||!I.every(e=>_[e.key]?.trim()),children:E?N.jsxs(N.Fragment,{children:[N.jsx("div",{className:"gpc-spinner gpc-button-spinner"}),s("captcha.verifying")]}):s("moodle.submit")})]}),r&&N.jsx("button",{type:"button",className:"gpc-captcha-skip",onClick:r,children:s("moodle.skip")})]})]})}return y||!c?N.jsxs("div",{className:"gpc-captcha-loading",children:[N.jsx("div",{className:"gpc-spinner"}),N.jsx("p",{children:s("captcha.loading","Loading challenge...")})]}):N.jsxs("div",{className:"gpc-captcha-container",children:[i&&N.jsx("button",{type:"button",onClick:i,className:"gpc-captcha-close-btn","aria-label":s("chat.close"),title:s("chat.close"),children:N.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:N.jsx("polyline",{points:"6 9 12 15 18 9"})})}),N.jsxs("div",{className:"gpc-captcha-content",children:[N.jsxs("div",{className:"gpc-captcha-header",children:[N.jsx("svg",{className:"gpc-captcha-icon",width:"48",height:"48",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",children:N.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"})}),N.jsx("h3",{className:"gpc-captcha-title",children:s("captcha.title")}),N.jsx("p",{className:"gpc-captcha-subtitle",children:s("captcha.subtitle")})]}),N.jsxs("form",{onSubmit:async t=>{t.preventDefault(),g(""),T(!0);try{const t=parseInt(h,10);if(isNaN(t))return g(s("captcha.invalidNumber")),void T(!1);const r=await e.verifyCaptchaAnswer(d,t);if(r.success)localStorage.setItem(be,"true"),localStorage.setItem(ve,Date.now().toString()),n&&n();else{const e=r.attempts_remaining;k(e),g(void 0!==e&&e>0?s("captcha.incorrectAnswerWithAttempts",{attempts:e,defaultValue:"Incorrect answer. {{attempts}} attempts remaining"}):s("captcha.incorrectAnswer")),f(""),T(!1)}}catch(r){switch(r.error_code){case"CHALLENGE_NOT_FOUND":case"CHALLENGE_EXPIRED":g(s("captcha.challengeExpired","Challenge expired. Generating a new one...")),setTimeout(()=>w(),2e3);break;case"MAX_ATTEMPTS_EXCEEDED":g(s("captcha.maxAttemptsExceeded","Maximum attempts exceeded. Generating a new challenge...")),setTimeout(()=>w(),2e3);break;case"INVALID_SESSION":g(s("captcha.invalidSession","Invalid session. Please refresh the page."));break;default:g(s("captcha.error"))}T(!1),a&&a(r)}},className:"gpc-captcha-form",children:[N.jsxs("div",{className:"gpc-captcha-question",children:[N.jsx("label",{htmlFor:"captcha-answer",className:"gpc-captcha-label",children:s("captcha.question")}),N.jsxs("div",{className:"gpc-captcha-challenge",children:[N.jsx("span",{className:"gpc-captcha-math",children:c}),N.jsx("span",{className:"gpc-captcha-equals",children:"="}),N.jsx("input",{id:"captcha-answer",type:"text",inputMode:"numeric",pattern:"[0-9]*",value:h,onChange:e=>{const t=e.target.value;(""===t||/^\d+$/.test(t))&&(f(t),g(""))},placeholder:"?",className:"gpc-captcha-input "+(m?"gpc-captcha-input-error":""),disabled:E,autoFocus:!0,autoComplete:"off"})]})]}),m&&N.jsxs("div",{className:"gpc-captcha-error",children:[N.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",children:[N.jsx("circle",{cx:"12",cy:"12",r:"10",strokeWidth:2}),N.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"12",strokeWidth:2,strokeLinecap:"round"}),N.jsx("line",{x1:"12",y1:"16",x2:"12.01",y2:"16",strokeWidth:2,strokeLinecap:"round"})]}),N.jsx("span",{children:m})]}),null!==v&&v>0&&N.jsx("div",{className:"gpc-captcha-attempts",children:s("captcha.attemptsLeft",{count:v,defaultValue:"{{count}} attempts remaining"})}),N.jsx("button",{type:"submit",className:"gpc-captcha-button",disabled:E||!h,children:E?N.jsxs(N.Fragment,{children:[N.jsx("div",{className:"gpc-spinner gpc-button-spinner"}),s("captcha.verifying")]}):s("captcha.verify")})]}),N.jsx("p",{className:"gpc-captcha-info",children:s("captcha.info")})]})]})};function Od(e,t){return function(){return e.apply(t,arguments)}}const{toString:Dd}=Object.prototype,{getPrototypeOf:Ld}=Object,{iterator:Rd,toStringTag:Pd}=Symbol,Md=(e=>t=>{const n=Dd.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Fd=e=>(e=e.toLowerCase(),t=>Md(t)===e),Bd=e=>t=>typeof t===e,{isArray:Ud}=Array,Hd=Bd("undefined");function jd(e){return null!==e&&!Hd(e)&&null!==e.constructor&&!Hd(e.constructor)&&Yd(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const zd=Fd("ArrayBuffer");const Gd=Bd("string"),Yd=Bd("function"),Vd=Bd("number"),qd=e=>null!==e&&"object"==typeof e,Wd=e=>{if("object"!==Md(e))return!1;const t=Ld(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Pd in e||Rd in e)},Qd=Fd("Date"),Kd=Fd("File"),Xd=Fd("Blob"),Jd=Fd("FileList");const Zd="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},$d=void 0!==Zd.FormData?Zd.FormData:void 0,ep=Fd("URLSearchParams"),[tp,np,rp,ap]=["ReadableStream","Request","Response","Headers"].map(Fd);function ip(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,a;if("object"!=typeof e&&(e=[e]),Ud(e))for(r=0,a=e.length;r<a;r++)t.call(null,e[r],r,e);else{if(jd(e))return;const a=n?Object.getOwnPropertyNames(e):Object.keys(e),i=a.length;let o;for(r=0;r<i;r++)o=a[r],t.call(null,e[o],o,e)}}function op(e,t){if(jd(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,a=n.length;for(;a-- >0;)if(r=n[a],t===r.toLowerCase())return r;return null}const sp="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,lp=e=>!Hd(e)&&e!==sp;const cp=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&Ld(Uint8Array)),up=Fd("HTMLFormElement"),dp=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),pp=Fd("RegExp"),hp=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ip(n,(n,a)=>{let i;!1!==(i=t(n,a,e))&&(r[a]=i||n)}),Object.defineProperties(e,r)};const fp=Fd("AsyncFunction"),mp=(gp="function"==typeof setImmediate,Ep=Yd(sp.postMessage),gp?setImmediate:Ep?(Tp=`axios@${Math.random()}`,yp=[],sp.addEventListener("message",({source:e,data:t})=>{e===sp&&t===Tp&&yp.length&&yp.shift()()},!1),e=>{yp.push(e),sp.postMessage(Tp,"*")}):e=>setTimeout(e));var gp,Ep,Tp,yp;const bp="undefined"!=typeof queueMicrotask?queueMicrotask.bind(sp):"undefined"!=typeof process&&process.nextTick||mp,vp={isArray:Ud,isArrayBuffer:zd,isBuffer:jd,isFormData:e=>{let t;return e&&($d&&e instanceof $d||Yd(e.append)&&("formdata"===(t=Md(e))||"object"===t&&Yd(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&zd(e.buffer),t},isString:Gd,isNumber:Vd,isBoolean:e=>!0===e||!1===e,isObject:qd,isPlainObject:Wd,isEmptyObject:e=>{if(!qd(e)||jd(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(t){return!1}},isReadableStream:tp,isRequest:np,isResponse:rp,isHeaders:ap,isUndefined:Hd,isDate:Qd,isFile:Kd,isReactNativeBlob:e=>!(!e||void 0===e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:Xd,isRegExp:pp,isFunction:Yd,isStream:e=>qd(e)&&Yd(e.pipe),isURLSearchParams:ep,isTypedArray:cp,isFileList:Jd,forEach:ip,merge:function e(){const{caseless:t,skipUndefined:n}=lp(this)&&this||{},r={},a=(a,i)=>{if("__proto__"===i||"constructor"===i||"prototype"===i)return;const o=t&&op(r,i)||i;Wd(r[o])&&Wd(a)?r[o]=e(r[o],a):Wd(a)?r[o]=e({},a):Ud(a)?r[o]=a.slice():n&&Hd(a)||(r[o]=a)};for(let i=0,o=arguments.length;i<o;i++)arguments[i]&&ip(arguments[i],a);return r},extend:(e,t,n,{allOwnKeys:r}={})=>(ip(t,(t,r)=>{n&&Yd(t)?Object.defineProperty(e,r,{value:Od(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let a,i,o;const s={};if(t=t||{},null==e)return t;do{for(a=Object.getOwnPropertyNames(e),i=a.length;i-- >0;)o=a[i],r&&!r(o,e,t)||s[o]||(t[o]=e[o],s[o]=!0);e=!1!==n&&Ld(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Md,kindOfTest:Fd,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(Ud(e))return e;let t=e.length;if(!Vd(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Rd]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:up,hasOwnProperty:dp,hasOwnProp:dp,reduceDescriptors:hp,freezeMethods:e=>{hp(e,(t,n)=>{if(Yd(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];Yd(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return Ud(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:op,global:sp,isContextDefined:lp,isSpecCompliantForm:function(e){return!!(e&&Yd(e.append)&&"FormData"===e[Pd]&&e[Rd])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(qd(e)){if(t.indexOf(e)>=0)return;if(jd(e))return e;if(!("toJSON"in e)){t[r]=e;const a=Ud(e)?[]:{};return ip(e,(e,t)=>{const i=n(e,r+1);!Hd(i)&&(a[t]=i)}),t[r]=void 0,a}}return e};return n(e,0)},isAsyncFn:fp,isThenable:e=>e&&(qd(e)||Yd(e))&&Yd(e.then)&&Yd(e.catch),setImmediate:mp,asap:bp,isIterable:e=>null!=e&&Yd(e[Rd])};let kp=class e extends Error{static from(t,n,r,a,i,o){const s=new e(t.message,n||t.code,r,a,i);return s.cause=t,s.name=t.name,null!=t.status&&null==s.status&&(s.status=t.status),o&&Object.assign(s,o),s}constructor(e,t,n,r,a){super(e),Object.defineProperty(this,"message",{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),a&&(this.response=a,this.status=a.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:vp.toJSONObject(this.config),code:this.code,status:this.status}}};kp.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",kp.ERR_BAD_OPTION="ERR_BAD_OPTION",kp.ECONNABORTED="ECONNABORTED",kp.ETIMEDOUT="ETIMEDOUT",kp.ERR_NETWORK="ERR_NETWORK",kp.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",kp.ERR_DEPRECATED="ERR_DEPRECATED",kp.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",kp.ERR_BAD_REQUEST="ERR_BAD_REQUEST",kp.ERR_CANCELED="ERR_CANCELED",kp.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",kp.ERR_INVALID_URL="ERR_INVALID_URL";function Ap(e){return vp.isPlainObject(e)||vp.isArray(e)}function Sp(e){return vp.endsWith(e,"[]")?e.slice(0,-2):e}function _p(e,t,n){return e?e.concat(t).map(function(e,t){return e=Sp(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const Cp=vp.toFlatObject(vp,{},null,function(e){return/^is[A-Z]/.test(e)});function Np(e,t,n){if(!vp.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=vp.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!vp.isUndefined(t[e])})).metaTokens,a=n.visitor||c,i=n.dots,o=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&vp.isSpecCompliantForm(t);if(!vp.isFunction(a))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(vp.isDate(e))return e.toISOString();if(vp.isBoolean(e))return e.toString();if(!s&&vp.isBlob(e))throw new kp("Blob is not supported. Use a Buffer instead.");return vp.isArrayBuffer(e)||vp.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,a){let s=e;if(vp.isReactNative(t)&&vp.isReactNativeBlob(e))return t.append(_p(a,n,i),l(e)),!1;if(e&&!a&&"object"==typeof e)if(vp.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(vp.isArray(e)&&function(e){return vp.isArray(e)&&!e.some(Ap)}(e)||(vp.isFileList(e)||vp.endsWith(n,"[]"))&&(s=vp.toArray(e)))return n=Sp(n),s.forEach(function(e,r){!vp.isUndefined(e)&&null!==e&&t.append(!0===o?_p([n],r,i):null===o?n:n+"[]",l(e))}),!1;return!!Ap(e)||(t.append(_p(a,n,i),l(e)),!1)}const u=[],d=Object.assign(Cp,{defaultVisitor:c,convertValue:l,isVisitable:Ap});if(!vp.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!vp.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),vp.forEach(n,function(n,i){!0===(!(vp.isUndefined(n)||null===n)&&a.call(t,n,vp.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])}),u.pop()}}(e),t}function Ip(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function wp(e,t){this._pairs=[],e&&Np(e,this,t)}const xp=wp.prototype;function Op(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Dp(e,t,n){if(!t)return e;const r=n&&n.encode||Op,a=vp.isFunction(n)?{serialize:n}:n,i=a&&a.serialize;let o;if(o=i?i(t,a):vp.isURLSearchParams(t)?t.toString():new wp(t,a).toString(r),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}xp.append=function(e,t){this._pairs.push([e,t])},xp.toString=function(e){const t=e?function(t){return e.call(this,t,Ip)}:Ip;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class Lp{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){vp.forEach(this.handlers,function(t){null!==t&&e(t)})}}const Rp={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Pp={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:wp,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Mp="undefined"!=typeof window&&"undefined"!=typeof document,Fp="object"==typeof navigator&&navigator||void 0,Bp=Mp&&(!Fp||["ReactNative","NativeScript","NS"].indexOf(Fp.product)<0),Up="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Hp=Mp&&window.location.href||"http://localhost",jp={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Mp,hasStandardBrowserEnv:Bp,hasStandardBrowserWebWorkerEnv:Up,navigator:Fp,origin:Hp},Symbol.toStringTag,{value:"Module"})),...Pp};function zp(e){function t(e,n,r,a){let i=e[a++];if("__proto__"===i)return!0;const o=Number.isFinite(+i),s=a>=e.length;if(i=!i&&vp.isArray(r)?r.length:i,s)return vp.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!o;r[i]&&vp.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],a)&&vp.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const a=n.length;let i;for(r=0;r<a;r++)i=n[r],t[i]=e[i];return t}(r[i])),!o}if(vp.isFormData(e)&&vp.isFunction(e.entries)){const n={};return vp.forEachEntry(e,(e,r)=>{t(function(e){return vp.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null}const Gp={transitional:Rp,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,a=vp.isObject(e);a&&vp.isHTMLForm(e)&&(e=new FormData(e));if(vp.isFormData(e))return r?JSON.stringify(zp(e)):e;if(vp.isArrayBuffer(e)||vp.isBuffer(e)||vp.isStream(e)||vp.isFile(e)||vp.isBlob(e)||vp.isReadableStream(e))return e;if(vp.isArrayBufferView(e))return e.buffer;if(vp.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Np(e,new jp.classes.URLSearchParams,{visitor:function(e,t,n,r){return jp.isNode&&vp.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((i=vp.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Np(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return a||r?(t.setContentType("application/json",!1),function(e,t,n){if(vp.isString(e))try{return(t||JSON.parse)(e),vp.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Gp.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(vp.isResponse(e)||vp.isReadableStream(e))return e;if(e&&vp.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e,this.parseReviver)}catch(a){if(n){if("SyntaxError"===a.name)throw kp.from(a,kp.ERR_BAD_RESPONSE,this,null,this.response);throw a}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:jp.classes.FormData,Blob:jp.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};vp.forEach(["delete","get","head","post","put","patch"],e=>{Gp.headers[e]={}});const Yp=vp.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Vp=Symbol("internals");function qp(e){return e&&String(e).trim().toLowerCase()}function Wp(e){return!1===e||null==e?e:vp.isArray(e)?e.map(Wp):String(e)}function Qp(e,t,n,r,a){return vp.isFunction(r)?r.call(this,t,n):(a&&(t=n),vp.isString(t)?vp.isString(r)?-1!==t.indexOf(r):vp.isRegExp(r)?r.test(t):void 0:void 0)}let Kp=class{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function a(e,t,n){const a=qp(t);if(!a)throw new Error("header name must be a non-empty string");const i=vp.findKey(r,a);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=Wp(e))}const i=(e,t)=>vp.forEach(e,(e,n)=>a(e,n,t));if(vp.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(vp.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,a;return e&&e.split("\n").forEach(function(e){a=e.indexOf(":"),n=e.substring(0,a).trim().toLowerCase(),r=e.substring(a+1).trim(),!n||t[n]&&Yp[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t})(e),t);else if(vp.isObject(e)&&vp.isIterable(e)){let n,r,a={};for(const t of e){if(!vp.isArray(t))throw TypeError("Object iterator must return a key-value pair");a[r=t[0]]=(n=a[r])?vp.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}i(a,t)}else null!=e&&a(t,e,n);return this}get(e,t){if(e=qp(e)){const n=vp.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(vp.isFunction(t))return t.call(this,e,n);if(vp.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=qp(e)){const n=vp.findKey(this,e);return!(!n||void 0===this[n]||t&&!Qp(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function a(e){if(e=qp(e)){const a=vp.findKey(n,e);!a||t&&!Qp(0,n[a],a,t)||(delete n[a],r=!0)}}return vp.isArray(e)?e.forEach(a):a(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const a=t[n];e&&!Qp(0,this[a],a,e,!0)||(delete this[a],r=!0)}return r}normalize(e){const t=this,n={};return vp.forEach(this,(r,a)=>{const i=vp.findKey(n,a);if(i)return t[i]=Wp(r),void delete t[a];const o=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(a):String(a).trim();o!==a&&delete t[a],t[o]=Wp(r),n[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return vp.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&vp.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[Vp]=this[Vp]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=qp(e);t[r]||(!function(e,t){const n=vp.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,a){return this[r].call(this,t,e,n,a)},configurable:!0})})}(n,e),t[r]=!0)}return vp.isArray(e)?e.forEach(r):r(e),this}};function Xp(e,t){const n=this||Gp,r=t||n,a=Kp.from(r.headers);let i=r.data;return vp.forEach(e,function(e){i=e.call(n,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function Jp(e){return!(!e||!e.__CANCEL__)}Kp.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),vp.reduceDescriptors(Kp.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),vp.freezeMethods(Kp);let Zp=class extends kp{constructor(e,t,n){super(null==e?"canceled":e,kp.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function $p(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new kp("Request failed with status code "+n.status,[kp.ERR_BAD_REQUEST,kp.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const eh=(e,t,n=3)=>{let r=0;const a=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a,i=0,o=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[o];a||(a=l),n[i]=s,r[i]=l;let u=o,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),l-a<t)return;const p=c&&l-c;return p?Math.round(1e3*d/p):void 0}}(50,250);return function(e,t){let n,r,a=0,i=1e3/t;const o=(t,i=Date.now())=>{a=i,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),s=t-a;s>=i?o(e,t):(n=e,r||(r=setTimeout(()=>{r=null,o(n)},i-s)))},()=>n&&o(n)]}(n=>{const i=n.loaded,o=n.lengthComputable?n.total:void 0,s=i-r,l=a(s);r=i;e({loaded:i,total:o,progress:o?i/o:void 0,bytes:s,rate:l||void 0,estimated:l&&o&&i<=o?(o-i)/l:void 0,event:n,lengthComputable:null!=o,[t?"download":"upload"]:!0})},n)},th=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},nh=e=>(...t)=>vp.asap(()=>e(...t)),rh=jp.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,jp.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(jp.origin),jp.navigator&&/(msie|trident)/i.test(jp.navigator.userAgent)):()=>!0,ah=jp.hasStandardBrowserEnv?{write(e,t,n,r,a,i,o){if("undefined"==typeof document)return;const s=[`${e}=${encodeURIComponent(t)}`];vp.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),vp.isString(r)&&s.push(`path=${r}`),vp.isString(a)&&s.push(`domain=${a}`),!0===i&&s.push("secure"),vp.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function ih(e,t,n){let r=!("string"==typeof(a=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(a));var a;return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const oh=e=>e instanceof Kp?{...e}:e;function sh(e,t){t=t||{};const n={};function r(e,t,n,r){return vp.isPlainObject(e)&&vp.isPlainObject(t)?vp.merge.call({caseless:r},e,t):vp.isPlainObject(t)?vp.merge({},t):vp.isArray(t)?t.slice():t}function a(e,t,n,a){return vp.isUndefined(t)?vp.isUndefined(e)?void 0:r(void 0,e,0,a):r(e,t,0,a)}function i(e,t){if(!vp.isUndefined(t))return r(void 0,t)}function o(e,t){return vp.isUndefined(t)?vp.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,a,i){return i in t?r(n,a):i in e?r(void 0,n):void 0}const l={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(e,t,n)=>a(oh(e),oh(t),0,!0)};return vp.forEach(Object.keys({...e,...t}),function(r){if("__proto__"===r||"constructor"===r||"prototype"===r)return;const i=vp.hasOwnProp(l,r)?l[r]:a,o=i(e[r],t[r],r);vp.isUndefined(o)&&i!==s||(n[r]=o)}),n}const lh=e=>{const t=sh({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:a,xsrfCookieName:i,headers:o,auth:s}=t;if(t.headers=o=Kp.from(o),t.url=Dp(ih(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),vp.isFormData(n))if(jp.hasStandardBrowserEnv||jp.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(vp.isFunction(n.getHeaders)){const e=n.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&o.set(e,n)})}if(jp.hasStandardBrowserEnv&&(r&&vp.isFunction(r)&&(r=r(t)),r||!1!==r&&rh(t.url))){const e=a&&i&&ah.read(i);e&&o.set(a,e)}return t},ch="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=lh(e);let a=r.data;const i=Kp.from(r.headers).normalize();let o,s,l,c,u,{responseType:d,onUploadProgress:p,onDownloadProgress:h}=r;function f(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(o),r.signal&&r.signal.removeEventListener("abort",o)}let m=new XMLHttpRequest;function g(){if(!m)return;const r=Kp.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());$p(function(e){t(e),f()},function(e){n(e),f()},{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new kp("Request aborted",kp.ECONNABORTED,e,m)),m=null)},m.onerror=function(t){const r=t&&t.message?t.message:"Network Error",a=new kp(r,kp.ERR_NETWORK,e,m);a.event=t||null,n(a),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const a=r.transitional||Rp;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new kp(t,a.clarifyTimeoutError?kp.ETIMEDOUT:kp.ECONNABORTED,e,m)),m=null},void 0===a&&i.setContentType(null),"setRequestHeader"in m&&vp.forEach(i.toJSON(),function(e,t){m.setRequestHeader(t,e)}),vp.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),d&&"json"!==d&&(m.responseType=r.responseType),h&&([l,u]=eh(h,!0),m.addEventListener("progress",l)),p&&m.upload&&([s,c]=eh(p),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(o=t=>{m&&(n(!t||t.type?new Zp(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(o),r.signal&&(r.signal.aborted?o():r.signal.addEventListener("abort",o)));const E=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);E&&-1===jp.protocols.indexOf(E)?n(new kp("Unsupported protocol "+E+":",kp.ERR_BAD_REQUEST,e)):m.send(a||null)})},uh=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const a=function(e){if(!n){n=!0,o();const t=e instanceof Error?e:this.reason;r.abort(t instanceof kp?t:new Zp(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,a(new kp(`timeout of ${t}ms exceeded`,kp.ETIMEDOUT))},t);const o=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(a):e.removeEventListener("abort",a)}),e=null)};e.forEach(e=>e.addEventListener("abort",a));const{signal:s}=r;return s.unsubscribe=()=>vp.asap(o),s}},dh=function*(e,t){let n=e.byteLength;if(n<t)return void(yield e);let r,a=0;for(;a<n;)r=a+t,yield e.slice(a,r),a=r},ph=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},hh=(e,t,n,r)=>{const a=async function*(e,t){for await(const n of ph(e))yield*dh(n,t)}(e,t);let i,o=0,s=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await a.next();if(t)return s(),void e.close();let i=r.byteLength;if(n){let e=o+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(t){throw s(t),t}},cancel:e=>(s(e),a.return())},{highWaterMark:2})},{isFunction:fh}=vp,mh=(({Request:e,Response:t})=>({Request:e,Response:t}))(vp.global),{ReadableStream:gh,TextEncoder:Eh}=vp.global,Th=(e,...t)=>{try{return!!e(...t)}catch(n){return!1}},yh=e=>{e=vp.merge.call({skipUndefined:!0},mh,e);const{fetch:t,Request:n,Response:r}=e,a=t?fh(t):"function"==typeof fetch,i=fh(n),o=fh(r);if(!a)return!1;const s=a&&fh(gh),l=a&&("function"==typeof Eh?(e=>t=>e.encode(t))(new Eh):async e=>new Uint8Array(await new n(e).arrayBuffer())),c=i&&s&&Th(()=>{let e=!1;const t=new n(jp.origin,{body:new gh,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),u=o&&s&&Th(()=>vp.isReadableStream(new r("").body)),d={stream:u&&(e=>e.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!d[e]&&(d[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new kp(`Response type '${e}' is not supported`,kp.ERR_NOT_SUPPORT,n)})});const p=async(e,t)=>{const r=vp.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(vp.isBlob(e))return e.size;if(vp.isSpecCompliantForm(e)){const t=new n(jp.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return vp.isArrayBufferView(e)||vp.isArrayBuffer(e)?e.byteLength:(vp.isURLSearchParams(e)&&(e+=""),vp.isString(e)?(await l(e)).byteLength:void 0)})(t):r};return async e=>{let{url:a,method:o,data:s,signal:l,cancelToken:h,timeout:f,onDownloadProgress:m,onUploadProgress:g,responseType:E,headers:T,withCredentials:y="same-origin",fetchOptions:b}=lh(e),v=t||fetch;E=E?(E+"").toLowerCase():"text";let k=uh([l,h&&h.toAbortSignal()],f),A=null;const S=k&&k.unsubscribe&&(()=>{k.unsubscribe()});let _;try{if(g&&c&&"get"!==o&&"head"!==o&&0!==(_=await p(T,s))){let e,t=new n(a,{method:"POST",body:s,duplex:"half"});if(vp.isFormData(s)&&(e=t.headers.get("content-type"))&&T.setContentType(e),t.body){const[e,n]=th(_,eh(nh(g)));s=hh(t.body,65536,e,n)}}vp.isString(y)||(y=y?"include":"omit");const t=i&&"credentials"in n.prototype,l={...b,signal:k,method:o.toUpperCase(),headers:T.normalize().toJSON(),body:s,duplex:"half",credentials:t?y:void 0};A=i&&new n(a,l);let h=await(i?v(A,b):v(a,l));const f=u&&("stream"===E||"response"===E);if(u&&(m||f&&S)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=h[t]});const t=vp.toFiniteNumber(h.headers.get("content-length")),[n,a]=m&&th(t,eh(nh(m),!0))||[];h=new r(hh(h.body,65536,n,()=>{a&&a(),S&&S()}),e)}E=E||"text";let C=await d[vp.findKey(d,E)||"text"](h,e);return!f&&S&&S(),await new Promise((t,n)=>{$p(t,n,{data:C,headers:Kp.from(h.headers),status:h.status,statusText:h.statusText,config:e,request:A})})}catch(C){if(S&&S(),C&&"TypeError"===C.name&&/Load failed|fetch/i.test(C.message))throw Object.assign(new kp("Network Error",kp.ERR_NETWORK,e,A,C&&C.response),{cause:C.cause||C});throw kp.from(C,C&&C.code,e,A,C&&C.response)}}},bh=new Map,vh=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:a}=t,i=[r,a,n];let o,s,l=i.length,c=bh;for(;l--;)o=i[l],s=c.get(o),void 0===s&&c.set(o,s=l?new Map:yh(t)),c=s;return s};vh();const kh={http:null,xhr:ch,fetch:{get:vh}};vp.forEach(kh,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}});const Ah=e=>`- ${e}`,Sh=e=>vp.isFunction(e)||null===e||!1===e;const _h={getAdapter:function(e,t){e=vp.isArray(e)?e:[e];const{length:n}=e;let r,a;const i={};for(let o=0;o<n;o++){let n;if(r=e[o],a=r,!Sh(r)&&(a=kh[(n=String(r)).toLowerCase()],void 0===a))throw new kp(`Unknown adapter '${n}'`);if(a&&(vp.isFunction(a)||(a=a.get(t))))break;i[n||"#"+o]=a}if(!a){const e=Object.entries(i).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=n?e.length>1?"since :\n"+e.map(Ah).join("\n"):" "+Ah(e[0]):"as no adapter specified";throw new kp("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return a},adapters:kh};function Ch(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Zp(null,e)}function Nh(e){Ch(e),e.headers=Kp.from(e.headers),e.data=Xp.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return _h.getAdapter(e.adapter||Gp.adapter,e)(e).then(function(t){return Ch(e),t.data=Xp.call(e,e.transformResponse,t),t.headers=Kp.from(t.headers),t},function(t){return Jp(t)||(Ch(e),t&&t.response&&(t.response.data=Xp.call(e,e.transformResponse,t.response),t.response.headers=Kp.from(t.response.headers))),Promise.reject(t)})}const Ih="1.13.6",wh={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{wh[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const xh={};wh.transitional=function(e,t,n){return(r,a,i)=>{if(!1===e)throw new kp(function(e,t){return"[Axios v"+Ih+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}(a," has been removed"+(t?" in "+t:"")),kp.ERR_DEPRECATED);return t&&!xh[a]&&(xh[a]=!0),!e||e(r,a,i)}},wh.spelling=function(e){return(e,t)=>!0};const Oh={assertOptions:function(e,t,n){if("object"!=typeof e)throw new kp("options must be an object",kp.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const i=r[a],o=t[i];if(o){const t=e[i],n=void 0===t||o(t,i,e);if(!0!==n)throw new kp("option "+i+" must be "+n,kp.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new kp("Unknown option "+i,kp.ERR_BAD_OPTION)}},validators:wh},Dh=Oh.validators;let Lh=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Lp,response:new Lp}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(r){}}throw n}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=sh(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:a}=t;void 0!==n&&Oh.assertOptions(n,{silentJSONParsing:Dh.transitional(Dh.boolean),forcedJSONParsing:Dh.transitional(Dh.boolean),clarifyTimeoutError:Dh.transitional(Dh.boolean),legacyInterceptorReqResOrdering:Dh.transitional(Dh.boolean)},!1),null!=r&&(vp.isFunction(r)?t.paramsSerializer={serialize:r}:Oh.assertOptions(r,{encode:Dh.function,serialize:Dh.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Oh.assertOptions(t,{baseUrl:Dh.spelling("baseURL"),withXsrfToken:Dh.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=a&&vp.merge(a.common,a[t.method]);a&&vp.forEach(["delete","get","head","post","put","patch","common"],e=>{delete a[e]}),t.headers=Kp.concat(i,a);const o=[];let s=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;s=s&&e.synchronous;const n=t.transitional||Rp;n&&n.legacyInterceptorReqResOrdering?o.unshift(e.fulfilled,e.rejected):o.push(e.fulfilled,e.rejected)});const l=[];let c;this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let u,d=0;if(!s){const e=[Nh.bind(this),void 0];for(e.unshift(...o),e.push(...l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=o.length;let p=t;for(;d<u;){const e=o[d++],t=o[d++];try{p=e(p)}catch(h){t.call(this,h);break}}try{c=Nh.call(this,p)}catch(h){return Promise.reject(h)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return Dp(ih((e=sh(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};vp.forEach(["delete","get","head","options"],function(e){Lh.prototype[e]=function(t,n){return this.request(sh(n||{},{method:e,url:t,data:(n||{}).data}))}}),vp.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,a){return this.request(sh(a||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Lh.prototype[e]=t(),Lh.prototype[e+"Form"]=t(!0)});const Rh={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Rh).forEach(([e,t])=>{Rh[t]=e});const Ph=function e(t){const n=new Lh(t),r=Od(Lh.prototype.request,n);return vp.extend(r,Lh.prototype,n,{allOwnKeys:!0}),vp.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(sh(t,n))},r}(Gp);Ph.Axios=Lh,Ph.CanceledError=Zp,Ph.CancelToken=class e{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,a){n.reason||(n.reason=new Zp(e,r,a),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}},Ph.isCancel=Jp,Ph.VERSION=Ih,Ph.toFormData=Np,Ph.AxiosError=kp,Ph.Cancel=Ph.CanceledError,Ph.all=function(e){return Promise.all(e)},Ph.spread=function(e){return function(t){return e.apply(null,t)}},Ph.isAxiosError=function(e){return vp.isObject(e)&&!0===e.isAxiosError},Ph.mergeConfig=sh,Ph.AxiosHeaders=Kp,Ph.formToJSON=e=>zp(vp.isHTMLForm(e)?new FormData(e):e),Ph.getAdapter=_h.getAdapter,Ph.HttpStatusCode=Rh,Ph.default=Ph;const{Axios:Mh,AxiosError:Fh,CanceledError:Bh,isCancel:Uh,CancelToken:Hh,VERSION:jh,all:zh,Cancel:Gh,isAxiosError:Yh,spread:Vh,toFormData:qh,AxiosHeaders:Wh,HttpStatusCode:Qh,formToJSON:Kh,getAdapter:Xh,mergeConfig:Jh}=Ph;class Zh{constructor(e,t){this.licenseToken=t,this.baseURL=e||_e,this.client=Ph.create({baseURL:this.baseURL,timeout:He,headers:{"Content-Type":"application/json"}}),this.client.interceptors.request.use(e=>(this.licenseToken&&(e.headers.Authorization=`Bearer ${this.licenseToken}`),e))}handleError(e){if(e.response){const t=e.response.data,n={statusCode:e.response.status,errorCode:t.error_code||"UNKNOWN_ERROR",message:t.message||"Request failed",retryAfter:t.retry_after_seconds||null};throw new Error(JSON.stringify(n))}throw e.request?new Error(JSON.stringify({statusCode:503,errorCode:"NETWORK_ERROR",message:"No response from server",retryAfter:null})):new Error(JSON.stringify({statusCode:500,errorCode:"INTERNAL_ERROR",message:e.message,retryAfter:null}))}async get(e,t={}){try{return(await this.client.get(e,t)).data}catch(n){this.handleError(n)}}async post(e,t,n={}){try{return(await this.client.post(e,t,n)).data}catch(r){this.handleError(r)}}async put(e,t,n={}){try{return(await this.client.put(e,t,n)).data}catch(r){this.handleError(r)}}async patch(e,t,n={}){try{return(await this.client.patch(e,t,n)).data}catch(r){this.handleError(r)}}async delete(e,t={}){try{return(await this.client.delete(e,t)).data}catch(n){this.handleError(n)}}getClient(){return this.client}}class $h{constructor(e="tiagpc"){this.prefix=e}_getKey(e){return`${this.prefix}_${e}`}set(e,t){try{const n=this._getKey(e),r=JSON.stringify(t);return localStorage.setItem(n,r),!0}catch(n){return!1}}get(e){try{const t=this._getKey(e),n=localStorage.getItem(t);return null===n?null:JSON.parse(n)}catch(t){return this.remove(e),null}}remove(e){try{const t=this._getKey(e);return localStorage.removeItem(t),!0}catch(t){return!1}}has(e){const t=this._getKey(e);return null!==localStorage.getItem(t)}clear(){try{const e=Object.keys(localStorage);return e.filter(e=>e.startsWith(`${this.prefix}_`)).forEach(e=>{localStorage.removeItem(e)}),!0}catch(e){return!1}}setWithTimestamp(e,t){return this.set(e,{data:t,timestamp:Date.now()})}getWithExpiry(e,t){const n=this.get(e);if(!n||!n.timestamp)return null;return Date.now()-n.timestamp>t?(this.remove(e),null):n.data}}class ef{constructor(e,t){this.licenseToken=e,this.httpClient=t,this.storage=new $h("tiagpc"),this.sessionToken=this._getOrCreateSessionToken()}_generateSessionToken(){return"session_"+Array.from(crypto.getRandomValues(new Uint8Array(28))).map(e=>e.toString(16).padStart(2,"0")).join("")}_getSessionKey(){return`session_${qe(this.licenseToken)}`}_getOrCreateSessionToken(){const e=this._getSessionKey(),t=this.storage.get(e);if(t&&t.sessionToken)return t.sessionToken;const n=this._generateSessionToken();return this._saveSessionToken(n,!1),n}_saveSessionToken(e,t=!1){const n=this._getSessionKey();this.storage.set(n,{sessionToken:e,timestamp:Date.now(),validated:t})}hasValidCachedSession(){const e=this._getSessionKey(),t=this.storage.get(e);if(!t)return!1;const{validated:n,timestamp:r}=t,a=Date.now();return n&&a-r<Ae}async validateSession(){try{return await this.httpClient.post("/validate-session",{session_token:this.sessionToken})}catch(e){return this.clearSession(),{success:!1,valid:!1}}}validateSessionLocally(){this._saveSessionToken(this.sessionToken,!0)}resetValidation(){this._saveSessionToken(this.sessionToken,!1)}getSessionToken(){return this.sessionToken}renewSessionToken(){const e=this._generateSessionToken();return this.sessionToken=e,this._saveSessionToken(e,!1),e}clearSession(){const e=this._getSessionKey();this.storage.remove(e)}async releaseSession(){if(this.licenseToken)try{return await this.httpClient.post("/release-session",{session_token:this.sessionToken})}catch(e){}}}class tf{constructor(e,t,n){this.licenseToken=e,this.sessionToken=t,this.httpClient=n,this.storage=new $h("tiagpc")}_getLastConversationKey(){return`last_conversation_${qe(this.licenseToken)}`}async listConversations(e=20,t=0){return await this.httpClient.get("/conversations",{params:{limit:e,offset:t},headers:{"X-Session-Token":this.sessionToken}})}async getConversationHistory(e,t=50,n=0){return await this.httpClient.get(`/conversation/${e}/history`,{params:{limit:t,offset:n}})}async getCurrentConversation(){return await this.httpClient.get("/conversation/current",{headers:{"X-Session-Token":this.sessionToken}})}saveLastConversation(e,t){const n=this._getLastConversationKey();return this.storage.setWithTimestamp(n,{conversationId:e,messages:t})}getLastConversation(e=864e5){const t=this._getLastConversationKey();return this.storage.getWithExpiry(t,e)}clearLastConversation(){const e=this._getLastConversationKey();return this.storage.remove(e)}hasLastConversation(){const e=this._getLastConversationKey();return this.storage.has(e)}async updateConversationTitle(e,t){return await this.httpClient.patch(`/conversation/${e}/title`,{new_title:t},{headers:{"X-Session-Token":this.sessionToken}})}async deleteConversation(e){return await this.httpClient.delete(`/conversation/${e}`,{headers:{"X-Session-Token":this.sessionToken}})}}class nf{constructor(e,t,n){this.licenseToken=e,this.sessionToken=t,this.httpClient=n}async sendMessage(e,t,n=null){const r=`${this.httpClient.baseURL}/ask`,a=function(){const e={};return ke.forEach(t=>{e[t]=""}),{...e,client_timestamp:Date.now()/1e3,screen_resolution:`${window.screen.width}x${window.screen.height}`,timezone:-(new Date).getTimezoneOffset()/60,platform:navigator.platform||"unknown",language:navigator.language||"unknown",color_depth:window.screen.colorDepth||"unknown"}}(),i={message:e,session_token:this.sessionToken,request_metadata:a};n&&(i.conversation_id=n);const o=await Nd(Se);o&&(i.mcp_login_data=o);try{const e=await fetch(r,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.licenseToken}`},body:JSON.stringify(i)});if(!e.ok){const t=await e.json().catch(()=>({}));throw new Error(JSON.stringify({statusCode:e.status,errorCode:t.error_code||"UNKNOWN_ERROR",message:t.message||"Request failed",retryAfter:t.retry_after_seconds||null}))}return await this._processSSEResponse(e,t)}catch(s){if(s.message.startsWith("{"))throw s;throw new Error(JSON.stringify({statusCode:500,errorCode:"NETWORK_ERROR",message:s.message,retryAfter:null}))}}async _processSSEResponse(e,t){const n=e.body.getReader(),r=new TextDecoder;let a="",i="",o=null,s=null;for(;;){const{done:e,value:c}=await n.read();if(e)break;a+=r.decode(c,{stream:!0});const u=a.split("\n");a=u.pop();for(const n of u){if(!n.trim()||!n.startsWith("data: "))continue;const e=n.replace("data: ","").trim();if("[DONE]"!==e)try{const n=JSON.parse(e);if("content"===n.type)i+=n.text,t&&t(n.text);else if("metadata"===n.type)o=n;else if("summary"===n.type)s=n;else if("error"===n.type)throw new Error(JSON.stringify({statusCode:n.status_code||500,errorCode:n.error_code,message:n.message,retryAfter:null}))}catch(l){if(l.message&&l.message.startsWith("{"))throw l}}}if(!s)throw new Error("No summary received from server");return{success:!0,data:{message_id:s.message_id,conversation_id:s.conversation_id,response:i,response_time_ms:s.response_time_ms,model_used:s.model_used,created_at:s.created_at}}}async transcribeAudio(e){const t=new FormData;t.append("file",e,"audio.webm");const n=this.httpClient.getClient();return(await n.post("/transcribe",t,{headers:{"Content-Type":"multipart/form-data"}})).data}}class rf{constructor(e,t){if(!t)throw new Error("License token is required");this.licenseToken=t,this.httpClient=new Zh(e,t),this.sessionService=new ef(t,this.httpClient),this.conversationService=new tf(t,this.sessionService.getSessionToken(),this.httpClient),this.messageService=new nf(t,this.sessionService.getSessionToken(),this.httpClient)}getSessionToken(){return this.sessionService.getSessionToken()}hasValidCachedSession(){return this.sessionService.hasValidCachedSession()}async validateSession(){return await this.sessionService.validateSession()}validateSessionLocally(){this.sessionService.validateSessionLocally()}renewSessionToken(){const e=this.sessionService.renewSessionToken();return this.conversationService.sessionToken=e,this.messageService.sessionToken=e,e}async releaseSession(){return await this.sessionService.releaseSession()}async listConversations(e=20){return await this.conversationService.listConversations(e)}async getConversationHistory(e,t=50){return await this.conversationService.getConversationHistory(e,t)}async getCurrentConversation(){return await this.conversationService.getCurrentConversation()}saveLastConversation(e,t){return this.conversationService.saveLastConversation(e,t)}getLastConversation(e=864e5){return this.conversationService.getLastConversation(e)}clearLastConversation(){return this.conversationService.clearLastConversation()}async updateConversationTitle(e,t){return await this.conversationService.updateConversationTitle(e,t)}async deleteConversation(e){return await this.conversationService.deleteConversation(e)}async sendMessage(e,t,n=null){if(!this.licenseToken)throw new Error("License token is required.");return await this.messageService.sendMessage(e,t,n)}async transcribeAudio(e){if(!this.licenseToken)throw new Error("License token is required.");return await this.messageService.transcribeAudio(e)}async getInitConfig(){if(!this.licenseToken)throw new Error("License token is required.");return await this.httpClient.get("/init")}async checkHealth(){try{return await this.httpClient.get("/health")}catch(e){return{status:"unhealthy",error:e.message}}}async generateCaptchaChallenge(){if(!this.licenseToken)throw new Error("License token is required.");return await this.httpClient.post("/captcha/challenge",{session_token:this.getSessionToken()})}async verifyCaptchaAnswer(e,t){if(!this.licenseToken)throw new Error("License token is required.");return await this.httpClient.post("/captcha/verify",{challenge_id:e,answer:parseInt(t,10),session_token:this.getSessionToken()})}async verifyMcpCredentials(e){if(!this.licenseToken)throw new Error("License token is required.");return await this.httpClient.post("/mcp/verify-credentials",{login_data:e,session_token:this.getSessionToken()})}}const af=(e="auto")=>{const[t,n]=l.useState(e),[r,a]=l.useState("light"),i=l.useRef(!1);l.useEffect(()=>{i.current||n(e)},[e]),l.useEffect(()=>{if(a("auto"===t?window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":t),"auto"===t){const e=window.matchMedia("(prefers-color-scheme: dark)"),t=e=>{a(e.matches?"dark":"light")};return e.addEventListener("change",t),()=>{e.removeEventListener("change",t)}}},[t]);return{theme:r,themeMode:t,setThemeMode:n,toggleTheme:()=>{i.current=!0,n(e=>"auto"===e?"light"===r?"dark":"light":"light"===e?"dark":"light")}}},of=e=>"string"==typeof e,sf=()=>{let e,t;const n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},lf=e=>null==e?"":""+e,cf=/###/g,uf=e=>e&&e.indexOf("###")>-1?e.replace(cf,"."):e,df=e=>!e||of(e),pf=(e,t,n)=>{const r=of(t)?t.split("."):t;let a=0;for(;a<r.length-1;){if(df(e))return{};const t=uf(r[a]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++a}return df(e)?{}:{obj:e,k:uf(r[a])}},hf=(e,t,n)=>{const{obj:r,k:a}=pf(e,t,Object);if(void 0!==r||1===t.length)return void(r[a]=n);let i=t[t.length-1],o=t.slice(0,t.length-1),s=pf(e,o,Object);for(;void 0===s.obj&&o.length;)i=`${o[o.length-1]}.${i}`,o=o.slice(0,o.length-1),s=pf(e,o,Object),s?.obj&&void 0!==s.obj[`${s.k}.${i}`]&&(s.obj=void 0);s.obj[`${s.k}.${i}`]=n},ff=(e,t)=>{const{obj:n,k:r}=pf(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},mf=(e,t,n)=>{for(const r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?of(e[r])||e[r]instanceof String||of(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):mf(e[r],t[r],n):e[r]=t[r]);return e},gf=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Ef={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const Tf=e=>of(e)?e.replace(/[&<>"'\/]/g,e=>Ef[e]):e;const yf=[" ",",","?","!",";"],bf=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(void 0!==t)return t;const n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}(20),vf=(e,t,n=".")=>{if(!e)return;if(e[t]){if(!Object.prototype.hasOwnProperty.call(e,t))return;return e[t]}const r=t.split(n);let a=e;for(let i=0;i<r.length;){if(!a||"object"!=typeof a)return;let e,t="";for(let o=i;o<r.length;++o)if(o!==i&&(t+=n),t+=r[o],e=a[t],void 0!==e){if(["string","number","boolean"].indexOf(typeof e)>-1&&o<r.length-1)continue;i+=o-i+1;break}a=e}return a},kf=e=>e?.replace("_","-"),Af={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){}};class Sf{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||Af,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,n,r){return r&&!this.debug?null:(of(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new Sf(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new Sf(this.logger,e)}}var _f=new Sf;class Cf{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);const n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}emit(e,...t){if(this.observers[e]){Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let r=0;r<n;r++)e(...t)})}if(this.observers["*"]){Array.from(this.observers["*"].entries()).forEach(([n,r])=>{for(let a=0;a<r;a++)n.apply(n,[e,...t])})}}}class Nf extends Cf{constructor(e,t={ns:["translation"],defaultNS:"translation"}){super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n,r={}){const a=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let o;e.indexOf(".")>-1?o=e.split("."):(o=[e,t],n&&(Array.isArray(n)?o.push(...n):of(n)&&a?o.push(...n.split(a)):o.push(n)));const s=ff(this.data,o);return!s&&!t&&!n&&e.indexOf(".")>-1&&(e=o[0],t=o[1],n=o.slice(2).join(".")),!s&&i&&of(n)?vf(this.data?.[e]?.[t],n,a):s}addResource(e,t,n,r,a={silent:!1}){const i=void 0!==a.keySeparator?a.keySeparator:this.options.keySeparator;let o=[e,t];n&&(o=o.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(o=e.split("."),r=t,t=o[1]),this.addNamespaces(t),hf(this.data,o,r),a.silent||this.emit("added",e,t,n,r)}addResources(e,t,n,r={silent:!1}){for(const a in n)(of(n[a])||Array.isArray(n[a]))&&this.addResource(e,t,a,n[a],{silent:!0});r.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,r,a,i={silent:!1,skipCopy:!1}){let o=[e,t];e.indexOf(".")>-1&&(o=e.split("."),r=n,n=t,t=o[1]),this.addNamespaces(t);let s=ff(this.data,o)||{};i.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?mf(s,n,a):s={...s,...n},hf(this.data,o,s),i.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var If={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,a){return e.forEach(e=>{t=this.processors[e]?.process(t,n,r,a)??t}),t}};const wf=Symbol("i18next/PATH_KEY");function xf(e,t){const{[wf]:n}=e(function(){const e=[],t=Object.create(null);let n;return t.get=(r,a)=>(n?.revoke?.(),a===wf?e:(e.push(a),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}());return n.join(t?.keySeparator??".")}const Of={},Df=e=>!of(e)&&"boolean"!=typeof e&&"number"!=typeof e;class Lf extends Cf{constructor(e,t={}){var n,r;super(),n=e,r=this,["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach(e=>{n[e]&&(r[e]=n[e])}),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=_f.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){const n={...t};if(null==e)return!1;const r=this.resolve(e,n);if(void 0===r?.res)return!1;const a=Df(r.res);return!1!==n.returnObjects||!a}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");const r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let a=t.ns||this.options.defaultNS||[];const i=n&&e.indexOf(n)>-1,o=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||((e,t,n)=>{t=t||"",n=n||"";const r=yf.filter(e=>t.indexOf(e)<0&&n.indexOf(e)<0);if(0===r.length)return!0;const a=bf.getRegExp(`(${r.map(e=>"?"===e?"\\?":e).join("|")})`);let i=!a.test(e);if(!i){const t=e.indexOf(n);t>0&&!a.test(e.substring(0,t))&&(i=!0)}return i})(e,n,r));if(i&&!o){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:of(a)?[a]:a};const i=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(i[0])>-1)&&(a=i.shift()),e=i.join(r)}return{key:e,namespaces:of(a)?[a]:a}}translate(e,t,n){let r="object"==typeof t?{...t}:t;if("object"!=typeof r&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof r&&(r={...r}),r||(r={}),null==e)return"";"function"==typeof e&&(e=xf(e,{...this.options,...r})),Array.isArray(e)||(e=[String(e)]);const a=void 0!==r.returnDetails?r.returnDetails:this.options.returnDetails,i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,{key:o,namespaces:s}=this.extractFromKey(e[e.length-1],r),l=s[s.length-1];let c=void 0!==r.nsSeparator?r.nsSeparator:this.options.nsSeparator;void 0===c&&(c=":");const u=r.lng||this.language,d=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if("cimode"===u?.toLowerCase())return d?a?{res:`${l}${c}${o}`,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(r)}:`${l}${c}${o}`:a?{res:o,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(r)}:o;const p=this.resolve(e,r);let h=p?.res;const f=p?.usedKey||o,m=p?.exactUsedKey||o,g=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,E=!this.i18nFormat||this.i18nFormat.handleAsObject,T=void 0!==r.count&&!of(r.count),y=Lf.hasDefaultValue(r),b=T?this.pluralResolver.getSuffix(u,r.count,r):"",v=r.ordinal&&T?this.pluralResolver.getSuffix(u,r.count,{ordinal:!1}):"",k=T&&!r.ordinal&&0===r.count,A=k&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${b}`]||r[`defaultValue${v}`]||r.defaultValue;let S=h;E&&!h&&y&&(S=A);const _=Df(S),C=Object.prototype.toString.apply(S);if(!(E&&S&&_&&["[object Number]","[object Function]","[object RegExp]"].indexOf(C)<0)||of(g)&&Array.isArray(S))if(E&&of(g)&&Array.isArray(h))h=h.join(g),h&&(h=this.extendTranslation(h,e,r,n));else{let t=!1,a=!1;!this.isValidLookup(h)&&y&&(t=!0,h=A),this.isValidLookup(h)||(a=!0,h=o);const s=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&a?void 0:h,d=y&&A!==h&&this.options.updateMissing;if(a||t||d){if(this.logger.log(d?"updateKey":"missingKey",u,l,o,d?A:h),i){const e=this.resolve(o,{...r,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if("fallback"===this.options.saveMissingTo&&t&&t[0])for(let r=0;r<t.length;r++)e.push(t[r]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(r.lng||this.language):e.push(r.lng||this.language);const n=(e,t,n)=>{const a=y&&n!==h?n:s;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,t,a,d,r):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,l,t,a,d,r),this.emit("missingKey",e,l,t,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&T?e.forEach(e=>{const t=this.pluralResolver.getSuffixes(e,r);k&&r[`defaultValue${this.options.pluralSeparator}zero`]&&t.indexOf(`${this.options.pluralSeparator}zero`)<0&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],o+t,r[`defaultValue${t}`]||A)})}):n(e,o,A))}h=this.extendTranslation(h,e,r,p,n),a&&h===o&&this.options.appendNamespaceToMissingKey&&(h=`${l}${c}${o}`),(a||t)&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${c}${o}`:o,t?h:void 0,r))}else{if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,S,{...r,ns:s}):`key '${o} (${this.language})' returned an object instead of string.`;return a?(p.res=e,p.usedParams=this.getUsedParamsDetails(r),p):e}if(i){const e=Array.isArray(S),t=e?[]:{},n=e?m:f;for(const a in S)if(Object.prototype.hasOwnProperty.call(S,a)){const e=`${n}${i}${a}`;t[a]=y&&!h?this.translate(e,{...r,defaultValue:Df(A)?A[a]:void 0,joinArrays:!1,ns:s}):this.translate(e,{...r,joinArrays:!1,ns:s}),t[a]===e&&(t[a]=S[a])}h=t}}return a?(p.res=h,p.usedParams=this.getUsedParamsDetails(r),p):h}extendTranslation(e,t,n,r,a){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const i=of(e)&&(void 0!==n?.interpolation?.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let o;if(i){const t=e.match(this.interpolator.nestingRegexp);o=t&&t.length}let s=n.replace&&!of(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language||r.usedLng,n),i){const t=e.match(this.interpolator.nestingRegexp);o<(t&&t.length)&&(n.nest=!1)}!n.lng&&r&&r.res&&(n.lng=this.language||r.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,(...e)=>a?.[0]!==e[0]||n.context?this.translate(...e,t):(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null),n)),n.interpolation&&this.interpolator.reset()}const i=n.postProcess||this.options.postProcess,o=of(i)?[i]:i;return null!=e&&o?.length&&!1!==n.applyPostProcessor&&(e=If.handle(o,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,r,a,i,o;return of(e)&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(n))return;const s=this.extractFromKey(e,t),l=s.key;r=l;let c=s.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));const u=void 0!==t.count&&!of(t.count),d=u&&!t.ordinal&&0===t.count,p=void 0!==t.context&&(of(t.context)||"number"==typeof t.context)&&""!==t.context,h=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);c.forEach(e=>{this.isValidLookup(n)||(o=e,Of[`${h[0]}-${e}`]||!this.utils?.hasLoadedNamespace||this.utils?.hasLoadedNamespace(o)||(Of[`${h[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${h.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach(r=>{if(this.isValidLookup(n))return;i=r;const o=[l];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(o,l,r,e,t);else{let e;u&&(e=this.pluralResolver.getSuffix(r,t.count,t));const n=`${this.options.pluralSeparator}zero`,a=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(t.ordinal&&0===e.indexOf(a)&&o.push(l+e.replace(a,this.options.pluralSeparator)),o.push(l+e),d&&o.push(l+n)),p){const r=`${l}${this.options.contextSeparator||"_"}${t.context}`;o.push(r),u&&(t.ordinal&&0===e.indexOf(a)&&o.push(r+e.replace(a,this.options.pluralSeparator)),o.push(r+e),d&&o.push(r+n))}}let s;for(;s=o.pop();)this.isValidLookup(n)||(a=s,n=this.getResource(r,e,s,t))}))})}),{res:n,usedKey:r,exactUsedKey:a,usedLng:i,usedNS:o}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,n,r={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(e={}){const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&!of(e.replace);let r=n?e.replace:e;if(n&&void 0!==e.count&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(const e of t)delete r[e]}return r}static hasDefaultValue(e){const t="defaultValue";for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,12)&&void 0!==e[n])return!0;return!1}}class Rf{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=_f.create("languageUtils")}getScriptPartFromCode(e){if(!(e=kf(e))||e.indexOf("-")<0)return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=kf(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(of(e)&&e.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(e)[0]}catch(t){}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;const n=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(n)||(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;const n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;const r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>e===r?e:e.indexOf("-")<0&&r.indexOf("-")<0?void 0:e.indexOf("-")>0&&r.indexOf("-")<0&&e.substring(0,e.indexOf("-"))===r||0===e.indexOf(r)&&r.length>1?e:void 0)}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),of(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){const n=this.getFallbackCodes((!1===t?[]:t)||this.options.fallbackLng||[],e),r=[],a=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return of(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&a(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&a(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&a(this.getLanguagePartFromCode(e))):of(e)&&a(this.formatLanguageCode(e)),n.forEach(e=>{r.indexOf(e)<0&&a(this.formatLanguageCode(e))}),r}}const Pf={zero:0,one:1,two:2,few:3,many:4,other:5},Mf={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class Ff{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=_f.create("pluralResolver"),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){const n=kf("dev"===e?"en":e),r=t.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:n,type:r});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];let i;try{i=new Intl.PluralRules(n,{type:r})}catch(o){if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),Mf;if(!e.match(/-|_/))return Mf;const n=this.languageUtils.getLanguagePartFromCode(e);i=this.getRule(n,t)}return this.pluralRulesCache[a]=i,i}needsPlural(e,t={}){let n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),n?n.resolvedOptions().pluralCategories.sort((e,t)=>Pf[e]-Pf[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):[]}getSuffix(e,t,n={}){const r=this.getRule(e,n);return r?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,n))}}const Bf=(e,t,n,r=".",a=!0)=>{let i=((e,t,n)=>{const r=ff(e,n);return void 0!==r?r:ff(t,n)})(e,t,n);return!i&&a&&of(n)&&(i=vf(e,n,r),void 0===i&&(i=vf(t,n,r))),i},Uf=e=>e.replace(/\$/g,"$$$$");class Hf{constructor(e={}){this.logger=_f.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:a,prefixEscaped:i,suffix:o,suffixEscaped:s,formatSeparator:l,unescapeSuffix:c,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:p,nestingSuffix:h,nestingSuffixEscaped:f,nestingOptionsSeparator:m,maxReplaces:g,alwaysFormat:E}=e.interpolation;this.escape=void 0!==t?t:Tf,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==r&&r,this.prefix=a?gf(a):i||"{{",this.suffix=o?gf(o):s||"}}",this.formatSeparator=l||",",this.unescapePrefix=c?"":u||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=d?gf(d):p||gf("$t("),this.nestingSuffix=h?gf(h):f||gf(")"),this.nestingOptionsSeparator=m||",",this.maxReplaces=g||1e3,this.alwaysFormat=void 0!==E&&E,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(e,t)=>e?.source===t?(e.lastIndex=0,e):new RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let a,i,o;const s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},l=e=>{if(e.indexOf(this.formatSeparator)<0){const a=Bf(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(a,void 0,n,{...r,...t,interpolationkey:e}):a}const a=e.split(this.formatSeparator),i=a.shift().trim(),o=a.join(this.formatSeparator).trim();return this.format(Bf(t,s,i,this.options.keySeparator,this.options.ignoreJSONStructure),o,n,{...r,...t,interpolationkey:i})};this.resetRegExp();const c=r?.missingInterpolationHandler||this.options.missingInterpolationHandler,u=void 0!==r?.interpolation?.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>Uf(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?Uf(this.escape(e)):Uf(e)}].forEach(t=>{for(o=0;a=t.regex.exec(e);){const n=a[1].trim();if(i=l(n),void 0===i)if("function"==typeof c){const t=c(e,a,r);i=of(t)?t:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))i="";else{if(u){i=a[0];continue}this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),i=""}else of(i)||this.useRawValueToEscape||(i=lf(i));const s=t.safeValue(i);if(e=e.replace(a[0],s),u?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=a[0].length):t.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,t,n={}){let r,a,i;const o=(e,t)=>{const n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;const r=e.split(new RegExp(`${n}[ ]*{`));let a=`{${r[1]}`;e=r[0],a=this.interpolate(a,i);const o=a.match(/'/g),s=a.match(/"/g);((o?.length??0)%2==0&&!s||s.length%2!=0)&&(a=a.replace(/'/g,'"'));try{i=JSON.parse(a),t&&(i={...t,...i})}catch(l){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,l),`${e}${n}${a}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let s=[];i={...n},i=i.replace&&!of(i.replace)?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;const l=/{.*}/.test(r[1])?r[1].lastIndexOf("}")+1:r[1].indexOf(this.formatSeparator);if(-1!==l&&(s=r[1].slice(l).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),r[1]=r[1].slice(0,l)),a=t(o.call(this,r[1].trim(),i),i),a&&r[0]===e&&!of(a))return a;of(a)||(a=lf(a)),a||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),a=""),s.length&&(a=s.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:r[1].trim()}),a.trim())),e=e.replace(r[0],a),this.regexp.lastIndex=0}return e}}const jf=e=>{const t={};return(n,r,a)=>{let i=a;a&&a.interpolationkey&&a.formatParams&&a.formatParams[a.interpolationkey]&&a[a.interpolationkey]&&(i={...i,[a.interpolationkey]:void 0});const o=r+JSON.stringify(i);let s=t[o];return s||(s=e(kf(r),a),t[o]=s),s(n)}},zf=e=>(t,n,r)=>e(kf(n),r)(t);class Gf{constructor(e={}){this.logger=_f.create("formatter"),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";const n=t.cacheInBuiltFormats?jf:zf;this.formats={number:n((e,t)=>{const n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{const n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)}),datetime:n((e,t)=>{const n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{const n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")}),list:n((e,t)=>{const n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=jf(t)}format(e,t,n,r={}){const a=t.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(e=>e.indexOf(")")>-1)){const e=a.findIndex(e=>e.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,e)].join(this.formatSeparator)}return a.reduce((e,t)=>{const{formatName:a,formatOptions:i}=(e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const a=r[1].substring(0,r[1].length-1);"currency"===t&&a.indexOf(":")<0?n.currency||(n.currency=a.trim()):"relativetime"===t&&a.indexOf(":")<0?n.range||(n.range=a.trim()):a.split(";").forEach(e=>{if(e){const[t,...r]=e.split(":"),a=r.join(":").trim().replace(/^'+|'+$/g,""),i=t.trim();n[i]||(n[i]=a),"false"===a&&(n[i]=!1),"true"===a&&(n[i]=!0),isNaN(a)||(n[i]=parseInt(a,10))}})}return{formatName:t,formatOptions:n}})(t);if(this.formats[a]){let t=e;try{const o=r?.formatParams?.[r.interpolationkey]||{},s=o.locale||o.lng||r.locale||r.lng||n;t=this.formats[a](e,s,{...i,...r,...o})}catch(o){this.logger.warn(o)}return t}return this.logger.warn(`there was no format function for ${a}`),e},e)}}class Yf extends Cf{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=_f.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,r.backend,r)}queueLoad(e,t,n,r){const a={},i={},o={},s={};return e.forEach(e=>{let r=!0;t.forEach(t=>{const o=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[o]=2:this.state[o]<0||(1===this.state[o]?void 0===i[o]&&(i[o]=!0):(this.state[o]=1,r=!1,void 0===i[o]&&(i[o]=!0),void 0===a[o]&&(a[o]=!0),void 0===s[t]&&(s[t]=!0)))}),r||(o[e]=!0)}),(Object.keys(a).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(a),pending:Object.keys(i),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){const r=e.split("|"),a=r[0],i=r[1];t&&this.emit("failedLoading",a,i,t),!t&&n&&this.store.addResourceBundle(a,i,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);const o={};this.queue.forEach(n=>{((e,t,n)=>{const{obj:r,k:a}=pf(e,t,Object);r[a]=r[a]||[],r[a].push(n)})(n.loaded,[a],i),((e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)})(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(e=>{o[e]||(o[e]={});const t=n.loaded[e];t.length&&t.forEach(t=>{void 0===o[e][t]&&(o[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",o),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,r=0,a=this.retryTimeout,i){if(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:a,callback:i});this.readingCalls++;const o=(o,s)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}o&&s&&r<this.maxRetries?setTimeout(()=>{this.read.call(this,e,t,n,r+1,2*a,i)},a):i(o,s)},s=this.backend[n].bind(this.backend);if(2!==s.length)return s(e,t,o);try{const n=s(e,t);n&&"function"==typeof n.then?n.then(e=>o(null,e)).catch(o):o(null,n)}catch(l){o(l)}}prepareLoading(e,t,n={},r){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();of(e)&&(e=this.languageUtils.toResolveHierarchy(e)),of(t)&&(t=[t]);const a=this.queueLoad(e,t,n,r);if(!a.toLoad.length)return a.pending.length||r(),null;a.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=""){const n=e.split("|"),r=n[0],a=n[1];this.read(r,a,"read",void 0,void 0,(n,i)=>{n&&this.logger.warn(`${t}loading namespace ${a} for language ${r} failed`,n),!n&&i&&this.logger.log(`${t}loaded namespace ${a} for language ${r}`,i),this.loaded(e,n,i)})}saveMissing(e,t,n,r,a,i={},o=()=>{}){if(!this.services?.utils?.hasLoadedNamespace||this.services?.utils?.hasLoadedNamespace(t)){if(null!=n&&""!==n){if(this.backend?.create){const l={...i,isUpdate:a},c=this.backend.create.bind(this.backend);if(c.length<6)try{let a;a=5===c.length?c(e,t,n,r,l):c(e,t,n,r),a&&"function"==typeof a.then?a.then(e=>o(null,e)).catch(o):o(null,a)}catch(s){o(s)}else c(e,t,n,r,o,l)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}else this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")}}const Vf=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),of(e[1])&&(t.defaultValue=e[1]),of(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),qf=e=>(of(e.ns)&&(e.ns=[e.ns]),of(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),of(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),"boolean"==typeof e.initImmediate&&(e.initAsync=e.initImmediate),e),Wf=()=>{};class Qf extends Cf{constructor(e={},t){var n;if(super(),this.options=qf(e),this.services={},this.logger=_f,this.modules={external:[]},n=this,Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach(e=>{"function"==typeof n[e]&&(n[e]=n[e].bind(n))}),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,"function"==typeof e&&(t=e,e={}),null==e.defaultNS&&e.ns&&(of(e.ns)?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const n=Vf();this.options={...n,...this.options,...qf(e)},this.options.interpolation={...n.interpolation,...this.options.interpolation},void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator);const r=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let e;this.modules.logger?_f.init(r(this.modules.logger),this.options):_f.init(null,this.options),e=this.modules.formatter?this.modules.formatter:Gf;const t=new Rf(this.options);this.store=new Nf(this.options.resources,this.options);const a=this.services;a.logger=_f,a.resourceStore=this.store,a.languageUtils=t,a.pluralResolver=new Ff(t,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix});this.options.interpolation.format&&this.options.interpolation.format!==n.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),!e||this.options.interpolation.format&&this.options.interpolation.format!==n.interpolation.format||(a.formatter=r(e),a.formatter.init&&a.formatter.init(a,this.options),this.options.interpolation.format=a.formatter.format.bind(a.formatter)),a.interpolator=new Hf(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new Yf(r(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(a.languageDetector=r(this.modules.languageDetector),a.languageDetector.init&&a.languageDetector.init(a,this.options.detection,this.options)),this.modules.i18nFormat&&(a.i18nFormat=r(this.modules.i18nFormat),a.i18nFormat.init&&a.i18nFormat.init(this)),this.translator=new Lf(this.services,this.options),this.translator.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||(t=Wf),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(e=>{this[e]=(...t)=>this.store[e](...t)});["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});const a=sf(),i=()=>{const e=(e,n)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),a.resolve(n),t(e,n)};if(this.languages&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?i():setTimeout(i,0),a}loadResources(e,t=Wf){let n=t;const r=of(e)?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if("cimode"===r?.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return n();const e=[],t=t=>{if(!t)return;if("cimode"===t)return;this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&e.indexOf(t)<0&&e.push(t)})};if(r)t(r);else{this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e))}this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){const r=sf();return"function"==typeof e&&(n=e,e=void 0),"function"==typeof t&&(n=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),n||(n=Wf),this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&If.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1)){for(let e=0;e<this.languages.length;e++){const t=this.languages[e];if(!(["cimode","dev"].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&this.languages.indexOf(e)<0&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;const n=sf();this.emit("languageChanging",e);const r=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},a=(a,i)=>{i?this.isLanguageChangingTo===e&&(r(i),this.translator.changeLanguage(i),this.isLanguageChangingTo=void 0,this.emit("languageChanged",i),this.logger.log("languageChanged",i)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(a,(...e)=>this.t(...e))},i=t=>{e||t||!this.services.languageDetector||(t=[]);const n=of(t)?t:t&&t[0],i=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(of(t)?[t]:t);i&&(this.language||r(i),this.translator.language||this.translator.changeLanguage(i),this.services.languageDetector?.cacheUserLanguage?.(i)),this.loadResources(i,e=>{a(e,i)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(i):this.services.languageDetector.detect(i):i(e):i(this.services.languageDetector.detect()),n}getFixedT(e,t,n){const r=(e,t,...a)=>{let i;i="object"!=typeof t?this.options.overloadTranslationOptionHandler([e,t].concat(a)):{...t},i.lng=i.lng||r.lng,i.lngs=i.lngs||r.lngs,i.ns=i.ns||r.ns,""!==i.keyPrefix&&(i.keyPrefix=i.keyPrefix||n||r.keyPrefix);const o=this.options.keySeparator||".";let s;return i.keyPrefix&&Array.isArray(e)?s=e.map(e=>("function"==typeof e&&(e=xf(e,{...this.options,...t})),`${i.keyPrefix}${o}${e}`)):("function"==typeof e&&(e=xf(e,{...this.options,...t})),s=i.keyPrefix?`${i.keyPrefix}${o}${e}`:e),this.t(s,i)};return of(e)?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=n,r}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=t.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,a=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;const i=(e,t)=>{const n=this.services.backendConnector.state[`${e}|${t}`];return-1===n||0===n||2===n};if(t.precheck){const e=t.precheck(this,i);if(void 0!==e)return e}return!!this.hasResourceBundle(n,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!i(n,e)||r&&!i(a,e)))}loadNamespaces(e,t){const n=sf();return this.options.ns?(of(e)&&(e=[e]),e.forEach(e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){const n=sf();of(e)&&(e=[e]);const r=this.options.preload||[],a=e.filter(e=>r.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e));return a.length?(this.options.preload=r.concat(a),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"rtl";try{const t=new Intl.Locale(e);if(t&&t.getTextInfo){const e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch(n){}const t=this.services?.languageUtils||new Rf(Vf());return e.toLowerCase().indexOf("-latn")>1?"ltr":["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},t){return new Qf(e,t)}cloneInstance(e={},t=Wf){const n=e.forkResourceStore;n&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},a=new Qf(r);void 0===e.debug&&void 0===e.prefix||(a.logger=a.logger.clone(e));if(["store","services","language"].forEach(e=>{a[e]=this[e]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},n){const e=Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((n,r)=>(n[r]={...e[t][r]},n),e[t]),e),{});a.store=new Nf(e,r),a.services.resourceStore=a.store}return a.translator=new Lf(a.services,r),a.translator.on("*",(e,...t)=>{a.emit(e,...t)}),a.init(r,t),a.translator.options=r,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Kf=Qf.createInstance();Kf.createInstance=Qf.createInstance,Kf.createInstance,Kf.dir,Kf.init,Kf.loadResources,Kf.reloadResources,Kf.use,Kf.changeLanguage,Kf.getFixedT,Kf.t,Kf.exists,Kf.setDefaultNamespace,Kf.hasLoadedNamespace,Kf.loadNamespaces,Kf.loadLanguages;const{slice:Xf,forEach:Jf}=[];const Zf=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,$f={create(e,t,n,r){let a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{path:"/",sameSite:"strict"};n&&(a.expires=new Date,a.expires.setTime(a.expires.getTime()+60*n*1e3)),r&&(a.domain=r),document.cookie=function(e,t){const n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{path:"/"};let r=`${e}=${encodeURIComponent(t)}`;if(n.maxAge>0){const e=n.maxAge-0;if(Number.isNaN(e))throw new Error("maxAge should be a Number");r+=`; Max-Age=${Math.floor(e)}`}if(n.domain){if(!Zf.test(n.domain))throw new TypeError("option domain is invalid");r+=`; Domain=${n.domain}`}if(n.path){if(!Zf.test(n.path))throw new TypeError("option path is invalid");r+=`; Path=${n.path}`}if(n.expires){if("function"!=typeof n.expires.toUTCString)throw new TypeError("option expires is invalid");r+=`; Expires=${n.expires.toUTCString()}`}if(n.httpOnly&&(r+="; HttpOnly"),n.secure&&(r+="; Secure"),n.sameSite)switch("string"==typeof n.sameSite?n.sameSite.toLowerCase():n.sameSite){case!0:r+="; SameSite=Strict";break;case"lax":r+="; SameSite=Lax";break;case"strict":r+="; SameSite=Strict";break;case"none":r+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return n.partitioned&&(r+="; Partitioned"),r}(e,t,a)},read(e){const t=`${e}=`,n=document.cookie.split(";");for(let r=0;r<n.length;r++){let e=n[r];for(;" "===e.charAt(0);)e=e.substring(1,e.length);if(0===e.indexOf(t))return e.substring(t.length,e.length)}return null},remove(e,t){this.create(e,"",-1,t)}};var em={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&"undefined"!=typeof document)return $f.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:n,cookieMinutes:r,cookieDomain:a,cookieOptions:i}=t;n&&"undefined"!=typeof document&&$f.create(n,e,r,a,i)}},tm={name:"querystring",lookup(e){let t,{lookupQuerystring:n}=e;if("undefined"!=typeof window){let{search:e}=window.location;!window.location.search&&window.location.hash?.indexOf("?")>-1&&(e=window.location.hash.substring(window.location.hash.indexOf("?")));const r=e.substring(1).split("&");for(let a=0;a<r.length;a++){const e=r[a].indexOf("=");if(e>0){r[a].substring(0,e)===n&&(t=r[a].substring(e+1))}}}return t}},nm={name:"hash",lookup(e){let t,{lookupHash:n,lookupFromHashIndex:r}=e;if("undefined"!=typeof window){const{hash:e}=window.location;if(e&&e.length>2){const a=e.substring(1);if(n){const e=a.split("&");for(let r=0;r<e.length;r++){const a=e[r].indexOf("=");if(a>0){e[r].substring(0,a)===n&&(t=e[r].substring(a+1))}}}if(t)return t;if(!t&&r>-1){const t=e.match(/\/([a-zA-Z-]*)/g);if(!Array.isArray(t))return;const n="number"==typeof r?r:0;return t[n]?.replace("/","")}}}return t}};let rm=null;const am=()=>{if(null!==rm)return rm;try{if(rm="undefined"!=typeof window&&null!==window.localStorage,!rm)return!1;const e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch(e){rm=!1}return rm};var im={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&am())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:n}=t;n&&am()&&window.localStorage.setItem(n,e)}};let om=null;const sm=()=>{if(null!==om)return om;try{if(om="undefined"!=typeof window&&null!==window.sessionStorage,!om)return!1;const e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch(e){om=!1}return om};var lm={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&sm())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:n}=t;n&&sm()&&window.sessionStorage.setItem(n,e)}},cm={name:"navigator",lookup(e){const t=[];if("undefined"!=typeof navigator){const{languages:e,userLanguage:n,language:r}=navigator;if(e)for(let a=0;a<e.length;a++)t.push(e[a]);n&&t.push(n),r&&t.push(r)}return t.length>0?t:void 0}},um={name:"htmlTag",lookup(e){let t,{htmlTag:n}=e;const r=n||("undefined"!=typeof document?document.documentElement:null);return r&&"function"==typeof r.getAttribute&&(t=r.getAttribute("lang")),t}},dm={name:"path",lookup(e){let{lookupFromPathIndex:t}=e;if("undefined"==typeof window)return;const n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(!Array.isArray(n))return;const r="number"==typeof t?t:0;return n[r]?.replace("/","")}},pm={name:"subdomain",lookup(e){let{lookupFromSubdomainIndex:t}=e;const n="number"==typeof t?t+1:1,r="undefined"!=typeof window&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[n]}};let hm=!1;try{document.cookie,hm=!0}catch(km){}const fm=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];hm||fm.splice(1,1);class mm{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(e,t)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{languageUtils:{}},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e,this.options=function(e){return Jf.call(Xf.call(arguments,1),t=>{if(t)for(const n in t)void 0===e[n]&&(e[n]=t[n])}),e}(t,this.options||{},{order:fm,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e}),"string"==typeof this.options.convertDetectedLanguage&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=e=>e.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(em),this.addDetector(tm),this.addDetector(im),this.addDetector(lm),this.addDetector(cm),this.addDetector(um),this.addDetector(dm),this.addDetector(pm),this.addDetector(nm)}addDetector(e){return this.detectors[e.name]=e,this}detect(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.order,t=[];return e.forEach(e=>{if(this.detectors[e]){let n=this.detectors[e].lookup(this.options);n&&"string"==typeof n&&(n=[n]),n&&(t=t.concat(n))}}),t=t.filter(e=>{return null!=e&&!("string"==typeof(t=e)&&[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(e=>e.test(t)));var t}).map(e=>this.options.convertDetectedLanguage(e)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?t:t.length>0?t[0]:null}cacheUserLanguage(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.options.caches;t&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||t.forEach(t=>{this.detectors[t]&&this.detectors[t].cacheUserLanguage(e,this.options)}))}}mm.type="languageDetector";const gm={widget:{title:"TIA GPC",poweredBy:"Desarrollado por SOFTIA.ca",questionsTo:"Preguntas a",validatingSession:"Validando sesión..."},chat:{title:"Asistente",placeholder:"Escribe tu pregunta...",send:"Enviar",close:"Cerrar",aiDisclaimer:"La IA puede cometer errores. Considera verificar la información importante.",welcome:"¡Hola! Bienvenido a {{companyName}}. ¿En qué puedo ayudarte hoy?",emptyState:"Inicia una conversación escribiendo tu pregunta",validation:"Verificando seguridad...",retry:"Reintentar",loadingMore:"Cargando mensajes anteriores..."},voice:{record:"Grabar audio",recording:"Grabando...",stop:"Detener grabación",processing:"Transcribiendo audio...",error:"Error al transcribir audio",unsupported:"Tu navegador no soporta grabación de audio",permissionDenied:"Permiso de micrófono denegado"},theme:{light:"Claro",dark:"Oscuro",toggle:"Cambiar tema"},errors:{unauthorized:"Autenticación fallida. Por favor, verifica tu token de licencia e intenta nuevamente.",validation:"Verificación anti-bot fallida. Por favor, recarga la página e intenta nuevamente.",network:"No se pudo conectar al servidor. Verifica tu conexión a internet.",rateLimit:"Has realizado demasiadas consultas o se alcanzó el límite de usuarios concurrentes. Por favor, espera un momento antes de continuar.",session:"Tu sesión ha expirado por inactividad. Por favor, recarga la página para continuar.",insufficientCredits:"Créditos insuficientes. Por favor, recarga créditos desde tu panel de administración para continuar usando TIA GPC.",generic:"Ha ocurrido un error inesperado. Por favor, intenta nuevamente.",aiServiceUnavailable:"El asistente está temporalmente no disponible. Por favor, intenta de nuevo en unos momentos.",serverError:"El servidor encontró un problema. Por favor, intenta de nuevo más tarde.",domainUnauthorized:"Este dominio no está autorizado para usar este widget. Por favor, contacta a tu administrador.",noKnowledgeAvailable:"Lo siento, no tengo respuesta para tu consulta. ¿Podrías darme un poco más de detalle o decirlo de otra forma?"},metadata:{tokensUsed:"Tokens usados",responseTime:"Tiempo de respuesta",model:"Modelo"},conversations:{title:"Conversaciones",new:"Nueva",empty:"No hay conversaciones aún",emptyHint:"Inicia una conversación para verla aquí",untitled:"Conversación sin título",loadingMore:"Cargando más...",toggle:"Alternar conversaciones",rename:"Renombrar",delete:"Eliminar",save:"Guardar",cancel:"Cancelar",confirmDelete:'¿Eliminar "{{title}}"?'},time:{justNow:"Justo ahora",minutesAgo:"hace {{count}} min",minutesAgo_one:"hace 1 min",minutesAgo_other:"hace {{count}} min",hoursAgo:"hace {{count}}h",hoursAgo_one:"hace 1h",hoursAgo_other:"hace {{count}}h",daysAgo:"hace {{count}}d",daysAgo_one:"hace 1d",daysAgo_other:"hace {{count}}d"},ui:{languageSelector:{label:"Cambiar idioma"},menu:"Más opciones",spinner:{loading:"Cargando"},typingIndicator:{typing:"Escribiendo"},message:{userMessage:"Mensaje del usuario",assistantMessage:"Mensaje del asistente"}},languages:{english:"English",spanish:"Español",french:"Français"},input:{maxCharacters:"Máximo {{count}} caracteres"},captcha:{title:"Verificación de seguridad",subtitle:"Por favor, resuelve esta operación matemática para continuar",question:"¿Cuánto es?",verify:"Verificar",verifying:"Verificando...",loading:"Cargando desafío...",incorrectAnswer:"Respuesta incorrecta. Inténtalo de nuevo",incorrectAnswerWithAttempts:"Respuesta incorrecta. Te quedan {{attempts}} intentos",invalidNumber:"Por favor, ingresa un número válido",error:"Error al verificar. Por favor, intenta nuevamente",errorGenerating:"Error al generar el desafío. Por favor, intenta nuevamente",challengeExpired:"El desafío ha expirado. Generando uno nuevo...",maxAttemptsExceeded:"Se excedió el número máximo de intentos. Generando un nuevo desafío...",invalidSession:"Sesión inválida. Por favor, recarga la página",attemptsLeft:"Te quedan {{count}} intentos",info:"Esta verificación se realiza solo una vez para proteger el servicio"},toast:{antiBotValidationPending:"Validación anti-bot pendiente",newConversationStarted:"Nueva conversación iniciada",failedLoadHistory:"No se pudo cargar el historial de la conversación",sessionExpired:"Sesión expirada, por favor verifica nuevamente",gpcServiceNotAvailable:"Servicio GPC no disponible",conversationRenamed:"Conversación renombrada exitosamente",failedRenameConversation:"No se pudo renombrar la conversación",conversationDeleted:"Conversación eliminada exitosamente",failedDeleteConversation:"No se pudo eliminar la conversación"},moodle:{title:"Acceso a Moodle",subtitle:"Ingresa tus credenciales para acceder a tu contenido personalizado",username:"Usuario",password:"Contraseña",submit:"Ingresar",requiredFields:"Usuario y contraseña son requeridos",skip:"Continuar sin iniciar sesión",login:"Iniciar sesión en Moodle",logout:"Cerrar sesión de Moodle"},tiaCore:{openPortal:"Interactuar con tus documentos",redirecting:"Redirigiendo...",loginError:"Error al iniciar sesión en el portal",needsMcpLogin:"Inicia sesión primero para acceder al portal"},about:{title:"Acerca de",product:"Producto",version:"Versión",creator:"Creador",rights:"Todos los derechos reservados.",close:"Cerrar"}},Em={widget:{title:"TIA GPC",poweredBy:"Powered by SOFTIA.ca",questionsTo:"Questions to",validatingSession:"Validating session..."},chat:{title:"Assistant",placeholder:"Type your question...",send:"Send",close:"Close",aiDisclaimer:"AI can make mistakes. Consider verifying important information.",welcome:"Hello! Welcome to {{companyName}}. How can I help you today?",emptyState:"Start a conversation by typing your question",validation:"Verifying security...",retry:"Retry",loadingMore:"Loading older messages..."},voice:{record:"Record audio",recording:"Recording...",stop:"Stop recording",processing:"Transcribing audio...",error:"Error transcribing audio",unsupported:"Your browser does not support audio recording",permissionDenied:"Microphone permission denied"},theme:{light:"Light",dark:"Dark",toggle:"Toggle theme"},errors:{unauthorized:"Authentication failed. Please check your license token and try again.",validation:"Bot verification failed. Please reload the page and try again.",network:"Unable to connect to the server. Please check your internet connection.",rateLimit:"You've made too many requests or the concurrent user limit has been reached. Please wait a moment before continuing.",session:"Your session has expired due to inactivity. Please reload the page to continue.",insufficientCredits:"Insufficient credits. Please reload credits from your admin panel to continue using TIA GPC.",generic:"An unexpected error has occurred. Please try again.",aiServiceUnavailable:"The assistant is temporarily unavailable. Please try again in a few moments.",serverError:"The server encountered a problem. Please try again later.",domainUnauthorized:"This domain is not authorized to use this widget. Please contact your administrator.",noKnowledgeAvailable:"Sorry, I don't have an answer for your query. Could you provide a bit more detail or phrase it differently?"},metadata:{tokensUsed:"Tokens used",responseTime:"Response time",model:"Model"},conversations:{title:"Conversations",new:"New",empty:"No conversations yet",emptyHint:"Start a conversation to see it here",untitled:"Untitled conversation",loadingMore:"Loading more...",toggle:"Toggle conversations",rename:"Rename",delete:"Delete",save:"Save",cancel:"Cancel",confirmDelete:'Delete "{{title}}"?'},time:{justNow:"Just now",minutesAgo:"{{count}} min ago",minutesAgo_one:"1 min ago",minutesAgo_other:"{{count}} min ago",hoursAgo:"{{count}}h ago",hoursAgo_one:"1h ago",hoursAgo_other:"{{count}}h ago",daysAgo:"{{count}}d ago",daysAgo_one:"1d ago",daysAgo_other:"{{count}}d ago"},ui:{languageSelector:{label:"Change language"},menu:"More options",spinner:{loading:"Loading"},typingIndicator:{typing:"Typing"},message:{userMessage:"User message",assistantMessage:"Assistant message"}},languages:{english:"English",spanish:"Español",french:"Français"},input:{maxCharacters:"Maximum {{count}} characters"},captcha:{title:"Security verification",subtitle:"Please solve this math problem to continue",question:"What is?",verify:"Verify",verifying:"Verifying...",loading:"Loading challenge...",incorrectAnswer:"Incorrect answer. Please try again",incorrectAnswerWithAttempts:"Incorrect answer. {{attempts}} attempts remaining",invalidNumber:"Please enter a valid number",error:"Error verifying. Please try again",errorGenerating:"Error generating challenge. Please try again",challengeExpired:"Challenge expired. Generating a new one...",maxAttemptsExceeded:"Maximum attempts exceeded. Generating a new challenge...",invalidSession:"Invalid session. Please refresh the page",attemptsLeft:"{{count}} attempts remaining",info:"This verification is done only once to protect the service"},toast:{antiBotValidationPending:"Anti-bot validation pending",newConversationStarted:"New conversation started",failedLoadHistory:"Failed to load conversation history",sessionExpired:"Session expired, please verify again",gpcServiceNotAvailable:"GPC Service not available",conversationRenamed:"Conversation renamed successfully",failedRenameConversation:"Failed to rename conversation",conversationDeleted:"Conversation deleted successfully",failedDeleteConversation:"Failed to delete conversation"},moodle:{title:"Moodle Access",subtitle:"Enter your credentials to access your personalized content",username:"Username",password:"Password",submit:"Sign in",requiredFields:"Username and password are required",skip:"Continue without signing in",login:"Sign in to Moodle",logout:"Sign out of Moodle"},tiaCore:{openPortal:"Interact with your documents",redirecting:"Redirecting...",loginError:"Error signing in to the portal",needsMcpLogin:"Sign in first to access the portal"},about:{title:"About",product:"Product",version:"Version",creator:"Creator",rights:"All rights reserved.",close:"Close"}},Tm={widget:{title:"TIA GPC",poweredBy:"Propulsé par SOFTIA.ca",questionsTo:"Questions à",validatingSession:"Validation de la session..."},chat:{title:"Assistant",placeholder:"Tapez votre question...",send:"Envoyer",close:"Fermer",aiDisclaimer:"L'IA peut faire des erreurs. Pensez à vérifier les informations importantes.",welcome:"Bonjour ! Bienvenue à {{companyName}}. Comment puis-je vous aider aujourd'hui ?",emptyState:"Commencez une conversation en tapant votre question",validation:"Vérification de sécurité...",retry:"Réessayer",loadingMore:"Chargement des messages précédents..."},voice:{record:"Enregistrer audio",recording:"Enregistrement...",stop:"Arrêter l'enregistrement",processing:"Transcription audio...",error:"Erreur de transcription audio",unsupported:"Votre navigateur ne prend pas en charge l'enregistrement audio",permissionDenied:"Permission du microphone refusée"},theme:{light:"Clair",dark:"Sombre",toggle:"Changer de thème"},errors:{unauthorized:"Échec de l'authentification. Veuillez vérifier votre jeton de licence et réessayer.",validation:"La vérification anti-bot a échoué. Veuillez recharger la page et réessayer.",network:"Impossible de se connecter au serveur. Veuillez vérifier votre connexion internet.",rateLimit:"Vous avez fait trop de demandes ou la limite d'utilisateurs concurrents a été atteinte. Veuillez patienter un moment avant de continuer.",session:"Votre session a expiré en raison d'inactivité. Veuillez recharger la page pour continuer.",insufficientCredits:"Crédits insuffisants. Veuillez recharger des crédits depuis votre panneau d'administration pour continuer à utiliser TIA GPC.",generic:"Une erreur inattendue s'est produite. Veuillez réessayer.",aiServiceUnavailable:"L'assistant est temporairement indisponible. Veuillez réessayer dans quelques instants.",serverError:"Le serveur a rencontré un problème. Veuillez réessayer plus tard.",domainUnauthorized:"Ce domaine n'est pas autorisé à utiliser ce widget. Veuillez contacter votre administrateur.",noKnowledgeAvailable:"Désolé, je n'ai pas de réponse à votre requête. Pourriez-vous me donner un peu plus de détails ou le formuler autrement ?"},metadata:{tokensUsed:"Tokens utilisés",responseTime:"Temps de réponse",model:"Modèle"},conversations:{title:"Conversations",new:"Nouvelle",empty:"Aucune conversation pour le moment",emptyHint:"Démarrez une conversation pour la voir ici",untitled:"Conversation sans titre",loadingMore:"Chargement...",toggle:"Basculer les conversations",rename:"Renommer",delete:"Supprimer",save:"Enregistrer",cancel:"Annuler",confirmDelete:'Supprimer "{{title}}" ?'},time:{justNow:"À l'instant",minutesAgo:"il y a {{count}} min",minutesAgo_one:"il y a 1 min",minutesAgo_other:"il y a {{count}} min",hoursAgo:"il y a {{count}}h",hoursAgo_one:"il y a 1h",hoursAgo_other:"il y a {{count}}h",daysAgo:"il y a {{count}}j",daysAgo_one:"il y a 1j",daysAgo_other:"il y a {{count}}j"},ui:{languageSelector:{label:"Changer de langue"},menu:"Plus d'options",spinner:{loading:"Chargement"},typingIndicator:{typing:"Écriture en cours"},message:{userMessage:"Message de l'utilisateur",assistantMessage:"Message de l'assistant"}},languages:{english:"English",spanish:"Español",french:"Français"},input:{maxCharacters:"Maximum {{count}} caractères"},captcha:{title:"Vérification de sécurité",subtitle:"Veuillez résoudre ce problème mathématique pour continuer",question:"Combien fait?",verify:"Vérifier",verifying:"Vérification...",loading:"Chargement du défi...",incorrectAnswer:"Réponse incorrecte. Veuillez réessayer",incorrectAnswerWithAttempts:"Réponse incorrecte. {{attempts}} tentatives restantes",invalidNumber:"Veuillez entrer un nombre valide",error:"Erreur de vérification. Veuillez réessayer",errorGenerating:"Erreur lors de la génération du défi. Veuillez réessayer",challengeExpired:"Le défi a expiré. Génération d'un nouveau...",maxAttemptsExceeded:"Nombre maximum de tentatives dépassé. Génération d'un nouveau défi...",invalidSession:"Session invalide. Veuillez actualiser la page",attemptsLeft:"{{count}} tentatives restantes",info:"Cette vérification n'est effectuée qu'une seule fois pour protéger le service"},toast:{antiBotValidationPending:"Validation anti-bot en attente",newConversationStarted:"Nouvelle conversation démarrée",failedLoadHistory:"Échec du chargement de l'historique de la conversation",sessionExpired:"Session expirée, veuillez vérifier à nouveau",gpcServiceNotAvailable:"Service GPC non disponible",conversationRenamed:"Conversation renommée avec succès",failedRenameConversation:"Échec du renommage de la conversation",conversationDeleted:"Conversation supprimée avec succès",failedDeleteConversation:"Échec de la suppression de la conversation"},moodle:{title:"Accès Moodle",subtitle:"Entrez vos identifiants pour accéder à votre contenu personnalisé",username:"Nom d'utilisateur",password:"Mot de passe",submit:"Se connecter",requiredFields:"Le nom d'utilisateur et le mot de passe sont requis",skip:"Continuer sans se connecter",login:"Se connecter à Moodle",logout:"Se déconnecter de Moodle"},tiaCore:{openPortal:"Interagir avec vos documents",redirecting:"Redirection...",loginError:"Erreur de connexion au portail",needsMcpLogin:"Connectez-vous d'abord pour accéder au portail"},about:{title:"À propos",product:"Produit",version:"Version",creator:"Créateur",rights:"Tous droits réservés.",close:"Fermer"}};Kf.use(mm).use(U).init({resources:{en:{translation:Em},es:{translation:gm},fr:{translation:Tm}},fallbackLng:"en",supportedLngs:["en","es","fr"],interpolation:{escapeValue:!1},detection:{order:["localStorage","navigator"],caches:["localStorage"]}});const ym=({token:e,theme:t=De,position:n=Le,language:r=Re,primaryColor:a,size:i,width:o=Pe,height:s=Me,apiUrl:c=_e,onReady:u,onError:d,onClose:p,autoOpen:h=Fe,showBranding:f=Be,mobileFullscreen:m=Ue,...g})=>{const[E,T]=l.useState(!1),[y,b]=l.useState(null),[v,k]=l.useState(!0),[A,S]=l.useState(!1),[_,C]=l.useState(!1),[I,w]=l.useState(Id(Se)),[x,O]=l.useState(!1),[D,L]=l.useState(!1),R=l.useMemo(()=>new rf(c,e),[c,e]);if(l.useEffect(()=>{const e=()=>{T(window.innerWidth<we)};return e(),window.addEventListener("resize",e),Ye()?S(!0):(localStorage.removeItem(be),localStorage.removeItem(ve)),()=>window.removeEventListener("resize",e)},[]),l.useEffect(()=>{const e=y?.widget_customization?.language||r;e&&Kf.changeLanguage&&Kf.changeLanguage(e)},[r,y]),l.useEffect(()=>{(async()=>{if(e)try{const e=await R.getInitConfig();if(e.success){b(e.data);(e.data?.widget_customization?.behavior?.auto_open??h)&&L(!0),u&&u(e.data)}}catch(t){d&&d(t)}finally{k(!1)}else k(!1)})()},[e,R,u,d,h]),l.useEffect(()=>{const e=()=>{if(!R)return;const e=R.getSessionToken(),t=R.httpClient.baseURL,n=R.licenseToken;fetch(`${t}/release-session`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${n}`},body:JSON.stringify({session_token:e}),keepalive:!0}).catch(()=>{})};return window.addEventListener("beforeunload",e),()=>{window.removeEventListener("beforeunload",e)}},[R]),!e)return null;const P=()=>{L(!1),C(!1),O(!1),p?.()},M=e=>{d&&d(e)},F=l.useMemo(()=>y?.widget_customization?.behavior?.mobile_fullscreen??m,[y,m]),B=l.useMemo(()=>E&&F?"gpc-position-bottom-right":`gpc-position-${y?.widget_customization?.position||n}`,[y,E,n,F]),U=l.useMemo(()=>{const e={},t=y?.widget_customization?.colors?.primary||a,n=y?.widget_customization?.colors?.header_background,r=y?.widget_customization?.colors?.header_text;t&&(e["--gpc-color-primary"]=t),n&&(e["--gpc-header-bg"]=n),r&&(e["--gpc-header-text"]=r);const l=y?.widget_customization?.dimensions?.size||i,c=l&&Oe[l],u=y?.widget_customization?.dimensions?.width||c?.width||o,d=y?.widget_customization?.dimensions?.height||c?.height||s;return E&&F||(u&&(e["--gpc-widget-width"]=u),d&&(e["--gpc-widget-height"]=d)),e},[y,E,i,o,s,a,F]),H=y?.widget_customization?.theme||t,{theme:j,toggleTheme:z}=af(H);return N.jsx(Y,{i18n:Kf,children:N.jsxs("div",{className:`gpc-widget gpc-widget-container ${B} ${"dark"===j?"gpc-dark":""}`,style:U,children:[!D&&!v&&y&&N.jsx(Ee,{onClick:()=>{A||C(!0),L(!0)},widgetConfig:y}),D&&!v&&N.jsx(N.Fragment,{children:_&&!A?N.jsx("div",{className:"gpc-chat-window gpc-animate-fade-in",children:N.jsx(xd,{gpcService:R,mcpConfig:y?.mcp,onSuccess:()=>{S(!0),C(!1),w(Id(Se))},onSkip:()=>{C(!1)},onError:M,onClose:P})}):x?N.jsx("div",{className:"gpc-chat-window gpc-animate-fade-in",children:N.jsx(xd,{gpcService:R,mcpConfig:y?.mcp,onSuccess:()=>{w(Id(Se)),O(!1)},onSkip:()=>{O(!1)},onError:M,onClose:P,initialStep:"mcp"})}):N.jsx(wd,{gpcService:R,licenseToken:e,widgetConfig:y,onClose:P,themeMode:j,onToggleTheme:z,showBranding:f,showMetadata:g.showMetadata||!1,onError:d,version:ye,onRequestMcpLogin:e=>{var t;"logout"===e?(t=Se,sessionStorage.removeItem(t),w(!1)):O(!0)},mcpLoggedIn:I})})]})})};class bm extends HTMLElement{constructor(){super(),this.root=null,this.mountPoint=null}static get observedAttributes(){return["token","theme","position","language","primary-color","size","width","height","api-url","auto-open","show-branding","mobile-fullscreen"]}connectedCallback(){this.mountPoint=document.createElement("div"),this.mountPoint.className="tia-gpc-mount",this.appendChild(this.mountPoint),this.root=S.createRoot(this.mountPoint),this.render()}disconnectedCallback(){this.root&&(this.root.unmount(),this.root=null)}attributeChangedCallback(e,t,n){t!==n&&this.root&&this.render()}getProps(){const e={},t=(t,n=t)=>{const r=this.getAttribute(t);r&&(e[n]=r)},n=(t,n)=>{const r=this.getAttribute(t);null!==r&&(e[n]="false"!==r)};return t("token"),t("theme"),t("position"),t("language"),t("primary-color","primaryColor"),t("size"),t("width"),t("height"),t("api-url","apiUrl"),n("auto-open","autoOpen"),n("show-branding","showBranding"),n("mobile-fullscreen","mobileFullscreen"),e.onReady=()=>{this.dispatchEvent(new CustomEvent("ready",{bubbles:!0,composed:!0}))},e.onError=e=>{this.dispatchEvent(new CustomEvent("error",{bubbles:!0,composed:!0,detail:e}))},e.onClose=()=>{this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))},e}render(){if(!this.root)return;const e=this.getProps();this.root.render(c.createElement(ym,e))}open(){this.dispatchEvent(new CustomEvent("open-widget",{bubbles:!0,composed:!0}))}close(){this.dispatchEvent(new CustomEvent("close-widget",{bubbles:!0,composed:!0}))}}"undefined"==typeof window||customElements.get("tia-gpc-widget")||customElements.define("tia-gpc-widget",bm),window.TiaGPC={version:ye,POSITIONS:Ce,THEMES:Ne,LANGUAGES:Ie,SIZES:xe,SIZE_DIMENSIONS:Oe,create(e){if(!e||!e.token)throw new Error('TiaGPC.create(): El parámetro "token" es requerido');const t=document.createElement("tia-gpc-widget");t.setAttribute("token",e.token),e.theme&&t.setAttribute("theme",e.theme),e.position&&t.setAttribute("position",e.position),e.language&&t.setAttribute("language",e.language),e.primaryColor&&t.setAttribute("primary-color",e.primaryColor),e.size&&t.setAttribute("size",e.size),e.width&&t.setAttribute("width",e.width),e.height&&t.setAttribute("height",e.height),e.apiUrl&&t.setAttribute("api-url",e.apiUrl),void 0!==e.autoOpen&&t.setAttribute("auto-open",String(e.autoOpen)),void 0!==e.showBranding&&t.setAttribute("show-branding",String(e.showBranding)),void 0!==e.mobileFullscreen&&t.setAttribute("mobile-fullscreen",String(e.mobileFullscreen)),e.onReady&&t.addEventListener("ready",e.onReady),e.onError&&t.addEventListener("error",t=>e.onError(t.detail)),e.onClose&&t.addEventListener("close",e.onClose);return(e.container||document.body).appendChild(t),t},info(){return{version:this.version,positions:this.POSITIONS,themes:this.THEMES,languages:this.LANGUAGES,sizes:this.SIZES,sizeDimensions:this.SIZE_DIMENSIONS}}};const vm=window.TiaGPC;return e.TiaGPCWebComponent=bm,e.default=vm,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),e}({});
2
2
  //# sourceMappingURL=tia-gpc-widget.standalone.js.map